From: Vito Macchia Date: Thu, 12 Nov 2020 14:03:51 +0000 (+0100) Subject: Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0... X-Git-Url: http://repos.xcallymotion.com/base//%22angular-material.themes.css/%22?a=commitdiff_plain;h=1c00adb32108c4cce5179def0822b69defc1cdd1;p=motion-next.git Built motion from commit 973e3e332e1c8e2f84c4b0cd2e5af794131724f5. Version 3.0.0-alpha --- diff --git a/apidoc/api_data.js b/apidoc/api_data.js index ad59a34..378377a 100644 --- a/apidoc/api_data.js +++ b/apidoc/api_data.js @@ -2607,6 +2607,20 @@ define({ "api": [ "optional": true, "field": "readAt", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -2959,6 +2973,20 @@ define({ "api": [ "optional": true, "field": "readAt", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -19992,6 +20020,20 @@ define({ "api": [ "optional": true, "field": "readAt", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -20109,6 +20151,20 @@ define({ "api": [ "optional": true, "field": "readAt", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -25225,6 +25281,20 @@ define({ "api": [ "optional": true, "field": "secret", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -25356,6 +25426,20 @@ define({ "api": [ "optional": true, "field": "secret", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -26467,6 +26551,20 @@ define({ "api": [ "optional": false, "field": "direction", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -38447,6 +38545,20 @@ define({ "api": [ "optional": true, "field": "secret", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -38578,6 +38690,20 @@ define({ "api": [ "optional": true, "field": "secret", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } diff --git a/apidoc/api_data.json b/apidoc/api_data.json index ca1c39e..c766969 100644 --- a/apidoc/api_data.json +++ b/apidoc/api_data.json @@ -2607,6 +2607,20 @@ "optional": true, "field": "readAt", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -2959,6 +2973,20 @@ "optional": true, "field": "readAt", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -19992,6 +20020,20 @@ "optional": true, "field": "readAt", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -20109,6 +20151,20 @@ "optional": true, "field": "readAt", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -25225,6 +25281,20 @@ "optional": true, "field": "secret", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -25356,6 +25426,20 @@ "optional": true, "field": "secret", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -26467,6 +26551,20 @@ "optional": false, "field": "direction", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -38447,6 +38545,20 @@ "optional": true, "field": "secret", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } @@ -38578,6 +38690,20 @@ "optional": true, "field": "secret", "description": "" + }, + { + "group": "Body", + "type": "String", + "optional": true, + "field": "providerName", + "description": "" + }, + { + "group": "Body", + "type": "Text", + "optional": true, + "field": "providerResponse", + "description": "" } ] } diff --git a/apidoc/api_project.js b/apidoc/api_project.js index 74c54f6..d68a473 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-11T11:49:31.252Z", + "time": "2020-11-12T13:59:54.540Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/apidoc/api_project.json b/apidoc/api_project.json index 084b5ce..6f859a0 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-11T11:49:31.252Z", + "time": "2020-11-12T13:59:54.540Z", "url": "https://apidocjs.com", "version": "0.25.0" } diff --git a/package-lock.json b/package-lock.json index e4b7fb4..485c5c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45,6 +45,59 @@ "tslib": "^1.8.1" } }, + "@google-cloud/dialogflow": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/@google-cloud/dialogflow/-/dialogflow-3.3.0.tgz", + "integrity": "sha512-7Ke5BEDRkx7jHHQzKkrP8reIYS4RZr8+voXYiNs+h5LFoC7RXyZC7Q0Na0309ENEScllAyVvgRGJLLFbNHBSSg==", + "requires": { + "google-gax": "^2.4.1", + "protobufjs": "^6.8.9" + } + }, + "@grpc/grpc-js": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.1.8.tgz", + "integrity": "sha512-64hg5rmEm6F/NvlWERhHmmgxbWU8nD2TMWE+9TvG7/WcOrFT3fzg/Uu631pXRFwmJ4aWO/kp9vVSlr8FUjBDLA==", + "requires": { + "@grpc/proto-loader": "^0.6.0-pre14", + "@types/node": "^12.12.47", + "google-auth-library": "^6.0.0", + "semver": "^6.2.0" + }, + "dependencies": { + "@grpc/proto-loader": { + "version": "0.6.0-pre9", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.6.0-pre9.tgz", + "integrity": "sha512-oM+LjpEjNzW5pNJjt4/hq1HYayNeQT+eGrOPABJnYHv7TyNPDNzkQ76rDYZF86X5swJOa4EujEMzQ9iiTdPgww==", + "requires": { + "@types/long": "^4.0.1", + "lodash.camelcase": "^4.3.0", + "long": "^4.0.0", + "protobufjs": "^6.9.0", + "yargs": "^15.3.1" + } + }, + "@types/node": { + "version": "12.19.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.19.4.tgz", + "integrity": "sha512-o3oj1bETk8kBwzz1WlO6JWL/AfAA3Vm6J1B3C9CsdxHYp7XgPiH7OEXPUbZTndHlRaIElrANkQfe6ZmfJb3H2w==" + }, + "semver": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" + } + } + }, + "@grpc/proto-loader": { + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.5.5.tgz", + "integrity": "sha512-WwN9jVNdHRQoOBo9FDH7qU+mgfjPc8GygPYms3M+y3fbQLfnCe/Kv/E01t7JRgnrsOHH8euvSbed3mIalXhwqQ==", + "requires": { + "lodash.camelcase": "^4.3.0", + "protobufjs": "^6.8.6" + } + }, "@kwsites/file-exists": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@kwsites/file-exists/-/file-exists-1.1.1.tgz", @@ -399,6 +452,60 @@ } } }, + "@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + }, + "@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + }, + "@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "requires": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + }, + "@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + }, + "@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + }, + "@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + }, + "@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + }, "@types/body-parser": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.0.tgz", @@ -442,6 +549,11 @@ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.162.tgz", "integrity": "sha512-alvcho1kRUnnD1Gcl4J+hK0eencvzq9rmzvFPRmP5rPHx9VVsJj6bKLTATPVf9ktgv4ujzh7T+XWKp+jhuODig==" }, + "@types/long": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.1.tgz", + "integrity": "sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==" + }, "@types/mime": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz", @@ -494,6 +606,14 @@ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "requires": { + "event-target-shim": "^5.0.0" + } + }, "accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", @@ -719,6 +839,11 @@ "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.2.tgz", "integrity": "sha1-X8w3OSB3VyPP1k1lxkvvU7+eum0=" }, + "arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==" + }, "asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", @@ -924,6 +1049,11 @@ "tweetnacl": "^0.14.3" } }, + "bignumber.js": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.1.tgz", + "integrity": "sha512-IdZR9mh6ahOBv/hYGiXyVuyCetmGJhtYkqLBpTStdhEGjegpPlUawydyaF3pbIOFynJTpllEs+NP+CS9jKFLjA==" + }, "binary-extensions": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", @@ -1819,6 +1949,17 @@ } } }, + "duplexify": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-4.1.1.tgz", + "integrity": "sha512-DY3xVEmVHTv1wSzKNbwoU6nVjzI369Y6sPoqfYr0/xlx3IdX2n94xIszTcjPO8W8ZIv0Wb0PXNcjuZyT4wiICA==", + "requires": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.0" + } + }, "ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -2154,6 +2295,11 @@ "es5-ext": "~0.10.14" } }, + "event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + }, "eventemitter2": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-5.0.1.tgz", @@ -2314,6 +2460,11 @@ "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.7.tgz", "integrity": "sha512-Utm6CdzT+6xsDk2m8S6uL8VHxNwI6Jub+e9NYTcAms28T84pTa25GJQV9j0CY0N1rM8hK4x6grpF2BQf+2qwVA==" }, + "fast-text-encoding": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.3.tgz", + "integrity": "sha512-dtm4QZH9nZtcDt8qJiOH9fcQd1NAgi+K1O2DbE6GG1PPCK/BWfOH3idCTRQ4ImXRUOyopDEgDEnVEE7Y/2Wrig==" + }, "faye": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/faye/-/faye-1.4.0.tgz", @@ -2583,6 +2734,64 @@ } } }, + "gaxios": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-4.0.1.tgz", + "integrity": "sha512-jOin8xRZ/UytQeBpSXFqIzqU7Fi5TqgPNLlUsSB8kjJ76+FiGBfImF8KJu++c6J4jOldfJUtt0YmkRj2ZpSHTQ==", + "requires": { + "abort-controller": "^3.0.0", + "extend": "^3.0.2", + "https-proxy-agent": "^5.0.0", + "is-stream": "^2.0.0", + "node-fetch": "^2.3.0" + }, + "dependencies": { + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "requires": { + "debug": "4" + } + }, + "debug": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", + "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "requires": { + "ms": "2.1.2" + } + }, + "https-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", + "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "is-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", + "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==" + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } + } + }, + "gcp-metadata": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-4.2.1.tgz", + "integrity": "sha512-tSk+REe5iq/N+K+SK1XjZJUrFPuDqGZVzCy2vocIHIGmPlTGsa8owXMJwGkrXr73NO0AzhPW4MF2DEHz7P2AVw==", + "requires": { + "gaxios": "^4.0.0", + "json-bigint": "^1.0.0" + } + }, "generate-function": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz", @@ -2672,6 +2881,68 @@ "is-glob": "^4.0.1" } }, + "google-auth-library": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.1.3.tgz", + "integrity": "sha512-m9mwvY3GWbr7ZYEbl61isWmk+fvTmOt0YNUfPOUY2VH8K5pZlAIWJjxEi0PqR3OjMretyiQLI6GURMrPSwHQ2g==", + "requires": { + "arrify": "^2.0.0", + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "fast-text-encoding": "^1.0.0", + "gaxios": "^4.0.0", + "gcp-metadata": "^4.2.0", + "gtoken": "^5.0.4", + "jws": "^4.0.0", + "lru-cache": "^6.0.0" + }, + "dependencies": { + "jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "requires": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + } + } + }, + "google-gax": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-2.9.2.tgz", + "integrity": "sha512-Pve4osEzNKpBZqFXMfGKBbKCtgnHpUe5IQMh5Ou+Xtg8nLcba94L3gF0xgM5phMdGRRqJn0SMjcuEVmOYu7EBg==", + "requires": { + "@grpc/grpc-js": "~1.1.1", + "@grpc/proto-loader": "^0.5.1", + "@types/long": "^4.0.0", + "abort-controller": "^3.0.0", + "duplexify": "^4.0.0", + "google-auth-library": "^6.1.3", + "is-stream-ended": "^0.1.4", + "node-fetch": "^2.6.1", + "protobufjs": "^6.9.0", + "retry-request": "^4.0.0" + } + }, + "google-p12-pem": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-3.0.3.tgz", + "integrity": "sha512-wS0ek4ZtFx/ACKYF3JhyGe5kzH7pgiQ7J5otlumqR9psmWMYc+U9cErKlCYVYHoUaidXHdZ2xbo34kB+S+24hA==", + "requires": { + "node-forge": "^0.10.0" + } + }, "google-tts-api": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/google-tts-api/-/google-tts-api-0.0.5.tgz", @@ -2685,6 +2956,43 @@ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" }, + "gtoken": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-5.0.5.tgz", + "integrity": "sha512-wvjkecutFh8kVfbcdBdUWqDRrXb+WrgD79DBDEYf1Om8S1FluhylhtFjrL7Tx69vNhh259qA3Q1P4sPtb+kUYw==", + "requires": { + "gaxios": "^4.0.0", + "google-p12-pem": "^3.0.3", + "jws": "^4.0.0", + "mime": "^2.2.0" + }, + "dependencies": { + "jwa": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.0.tgz", + "integrity": "sha512-jrZ2Qx916EA+fq9cEAeCROWPTfCwi1IVHqT2tapuqLEVVDKFDENFw1oL+MwrTvH6msKxsd1YTDVw6uKEcsrLEA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz", + "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==", + "requires": { + "jwa": "^2.0.0", + "safe-buffer": "^5.0.1" + } + }, + "mime": { + "version": "2.4.6", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz", + "integrity": "sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA==" + } + } + }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", @@ -3088,6 +3396,11 @@ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" }, + "is-stream-ended": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz", + "integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==" + }, "is-symbol": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", @@ -3258,6 +3571,14 @@ } } }, + "json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "requires": { + "bignumber.js": "^9.0.0" + } + }, "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", @@ -3538,6 +3859,11 @@ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" }, + "lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" + }, "lodash.defaults": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz", @@ -4138,6 +4464,11 @@ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.1.tgz", "integrity": "sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==" }, + "node-forge": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", + "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==" + }, "node-pre-gyp": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.14.0.tgz", @@ -4911,6 +5242,33 @@ "read": "^1.0.4" } }, + "protobufjs": { + "version": "6.10.1", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.10.1.tgz", + "integrity": "sha512-pb8kTchL+1Ceg4lFd5XUpK8PdWacbvV5SK2ULH2ebrYtl4GjJmS24m6CKME67jzV53tbJxHlnNOSqQHbTsR9JQ==", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": "^13.7.0", + "long": "^4.0.0" + }, + "dependencies": { + "@types/node": { + "version": "13.13.30", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.30.tgz", + "integrity": "sha512-HmqFpNzp3TSELxU/bUuRK+xzarVOAsR00hzcvM0TXrMlt/+wcSLa5q6YhTb6/cA6wqDCZLDcfd8fSL95x5h7AA==" + } + } + }, "proxy-addr": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", @@ -5313,6 +5671,29 @@ "any-promise": "^1.3.0" } }, + "retry-request": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-4.1.3.tgz", + "integrity": "sha512-QnRZUpuPNgX0+D1xVxul6DbJ9slvo4Rm6iV/dn63e048MvGbUZiKySVt6Tenp04JqmchxjiLltGerOJys7kJYQ==", + "requires": { + "debug": "^4.1.1" + }, + "dependencies": { + "debug": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.2.0.tgz", + "integrity": "sha512-IX2ncY78vDTjZMFUdmsvIRFY2Cf4FnD0wRs+nQwJU8Lu99/tPFdb0VybiiMTPe3I6rQmwsqQqRBvxU+bZ/I8sg==", + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + } + } + }, "rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", @@ -5906,6 +6287,11 @@ "ip": "^1.0.0" } }, + "stream-shift": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.1.tgz", + "integrity": "sha512-AiisoFqQ0vbGcZgQPY1cdP2I76glaVA/RauYR4G4thNFgkTqr90yXTo4LYX60Jl+sIlPNHHdGSwo01AvbKUSVQ==" + }, "streamsearch": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz", diff --git a/package.json b/package.json index 1dd18cf..d2414a5 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "node": ">=12" }, "dependencies": { + "@google-cloud/dialogflow": "^3.3.0", "apiai-promise": "^1.0.0", "archiver": "^5.0.2", "asterisk-manager": "^0.1.16", @@ -116,10 +117,10 @@ "zip-dir": "^1.0.2" }, "xcally": { - "shortHash": "ecdc8e6", + "shortHash": "973e3e3", "branch": "develop", "tag": "", - "committedOn": "2020-11-11T11:49:20.000Z", - "buildDate": "2020-11-11T11:52:14.281Z" + "committedOn": "2020-11-12T13:59:23.000Z", + "buildDate": "2020-11-12T14:03:06.213Z" } } diff --git a/public/769-8e6d4f4f6390a0a4c67f.js b/public/769-8e6d4f4f6390a0a4c67f.js index 3907577..194906c 100644 --- a/public/769-8e6d4f4f6390a0a4c67f.js +++ b/public/769-8e6d4f4f6390a0a4c67f.js @@ -1,2 +1,2 @@ /*! For license information please see 769-8e6d4f4f6390a0a4c67f.js.LICENSE.txt */ -var a2_0x3bd6=["onScroll","Controller","%d мүнөт","pushR"," ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis","punch","SHORTMONTH",' ;text="',"[minulú stredu o] LT","СоздатьДиалогСохраненияФайла ","datasetIndex","$emit","onDone","enum",":not(svg) > body","SYSRES_CONST_ACTION_TYPE_MARK_AS_READED ","phy_collision_points phy_collision_x phy_collision_y ","%d ثوان","barPercentage","kissing_closed_eyes","md-panel-animate-scale","unu monato","backgroundColor",":\\w+","_onConnect",'"//"',"ttl","f5deb3","ISearchForObjectDescription "," වැනි"," poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list","vimeo","pageSize","Request","SYSRES_CONST_EDOC_KIND_REFERENCE_CODE ","СтрВерхРегистр ","blue_book",")\\s*=>","receiveRefer()","down","setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour ","localSearch",'\n","useClass","heapLimit heapSize jobHandle jobKill jobStatus jobTerminate ","één jaar","#9900FF","SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE ","engem Mount","Second argument must be a String","onPacket","dblclick","package default double public try this switch continue throws protected public private","ИзмеренийМассива "," complete_graph complex_number_p components compose_functions concan concat","Stop-VMGuest Stop-VMHost Stop-VMHostService Stop-VsanClusterRebalance Suspend-CIVApp Suspend-CIVM Suspend-HCXReplication Suspend-VM Suspend-VMGuest Suspend-VMHost ","collapse","HOOK",' Close\n',"md-calendar-date","beforeUpdate","module-def","[forrige] dddd [kl.] LT","%[qQwWx]?\\[","Конст ","selectedOptions","kissing_heart","typeQueue","ore","возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли ","lastInteractionTime","$$includeIndexes",", detail: ","JsSIP:RTCSession:ReferNotifier","päivän","invalidateLayout","physics_particle_group_box physics_particle_group_polygon ","$element","compiled","asWeeks","to_uri","Opera Mini","კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ","getConstraintHeight","mdBufferValue","отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования ","oc-lnc","received message with CRLF Keep Alive response","addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler ","oldColumn","md-no-autogrow","pipe","Decoder","sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo ","thoddea sekondamni","flex-order-lt-md","SYSRES_CONST_YES_VALUE ","$$createComment","audio_group_set_gain audio_create_buffer_sound ","cool","camera_set_update_script camera_set_begin_script ","%d muaj","NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY ","calculateBarY","dddd [ساعت] LT","attachRoute","DDDD","e61c","newMessage","_ncHex","Set-NsxLogicalRouterRouting Set-NsxManager Set-NsxManagerRole Set-NsxManagerTimeSettings Set-NsxSecurityPolicy Set-NsxSecurityPolicyFirewallRule Set-NsxSslVpn ","abstract alias align asm assert auto body break byte case cast catch class ","lastElementChild","SYSREF_FOLDER_HISTORY ","globals","يومان","/\\$",")[(]","='$resolve.","radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl ","Byte Short Char Int Long Boolean Float Double Void Unit Nothing","msgCalendar","eras","sctpmap","addClass","mesec","isSameOrAfter","includes","Global If In Local Next ReDim Return Select Static ","ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов ","ugc_visibility_friends_only ugc_visibility_private ","[اليوم عند الساعة] LT"," zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table","vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|","scrollTop","Broncho.*(N701|N708|N802|a710)","checkPull","%d ལོ","IRread setDNS endSMS getKey micros ","[lLfF]?","SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE ","mwFormImageBuilder","0ms","stepSize","alcuni secondi","clock4",' md-is-error="isError()">',"(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?","mdDiscrete","updateAnimation","authorization_jwt","seconds","-ms-user-select: none;","isArguments","%d уйӑх","un año","md-radio-group","UibDatepickerPopupController","\\b[a-z\\d_]*_t\\b","doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse ","ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ","SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE ","TRUE FALSE NAN INFINITY ","Nollaig",'
',"[u] [nedjelju] [u] LT","bangbang","model.showTemplate will be removed from model on next rlease, please use root config e.g. $mdDateRangePicker.show({showTemplate}) instead","^#!/usr/bin/env","eventNames","BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR ","ماي",")\\s*","_cseq",' \n',"defaultFormatUtc","JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ","ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ","yLabels","tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu","SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT ","nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId ","plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill ","getMinutes","koala","target in out common equivalence data","YYYY년 MMMM D일 A h:mm","undefined","below","services",'"sips"',"yield finally","onerror","SYSRES_CONST_PLATFORM_VERSION_COMMENT ","oncoming_police_car","[0-4]","st st0 st1 st2 st3 st4 st5 st6 st7 ","essmText essmCard ","(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?","1 周","rdtPick ","[Ontem às] LT","%d-мӗш","model","FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf ","mdFloatingLabel","lineNumbers","BINARY_NUMBER_MODE","rgba(255,255,255,1.0)","-ев","UPDATE","cleanup","%d시간","material.components.truncate","row_vector matrix cholesky_factor_corr cholesky_factor_cov ","IReferenceValue ","canceling session","$media is deprecated for is-locked-open. Use $mdMedia instead."," fill_density filled_func fixed_vertices flipflag float2bf font font_size","#00CC00","\\]\\[","#00c853","aria-hidden","lɛrɛ %d","background-color","videoServices","@mdContactImage","string-ci=? string-ci>? string-copy ","drag-scrollbar","HttpClient RobotMotor WiFiClient GSMScanner ","setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText ","setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos ","finnadie","LookUpSearch ","nonce","AppendToBody","rgb(255, 0, 255)","closeOnDateSelection","backoff","out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f ","[W niedzielę o] LT","isIos","md-overflow","let macro method mixin mod nil not notin object of or out proc ptr ","%d மாதங்கள்","abort","SYSRES_CONST_GROUPS_REFERENCE_CODE ","quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint ","anchor","movingItem","_route_set","_positions","pair? peek-char port? positive? procedure? quasiquote quote quotient ","getMatchingHooks"," scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second","deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter ","SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION ","pt-br","clientTransaction","asmYesButCustomize ","%d %d","mrcrtCustom ","Max ","translate3d(0,","TRANSFORM","Message Too Large","small_orange_diamond","އަހަރެއް","previousItem","max-height","राति","[We wtorek o] LT","tophat","iso val tag trn box ref","جانفي","SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE ","%d days","$$uibDestructionScheduled","AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks ","JOB_BLOCK_AFTER_FINISH_EVENT ","#ef9a9a","distinct drop foreign from group having index insert into in ",'(~)?"',"highByte writeRed setSpeed readBlue noStroke ","_delayedDragTouchMoveHandler","radio_button","MoveFile ",'src="https://gist.github.com/',"ühe tunni","nose","SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE ","[^%](","#\\s+[a-zA-Z\\ \\.]*","a8m.reverse","cschar cshort cint csize clonglong cfloat cdouble clongdouble ","STATUS_PROCEEDING","Тран ","UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE ","$parsers","buildOrUpdateControllers","branch","synstack pyeval prevnonblank readfile cindent filereadable changenr ",";[ \\t]*#","logarithmic","vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab ","minDate","activeIdx",'
Delete
Add Column
Delete
Add row
',"$ctrl","ก่อนเที่ยง"," icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form","mins","dependencies","Get-vRNIEntityName Get-vRNIFirewallRule Get-vRNIFlow Get-vRNIHost Get-vRNIHostVMKNic Get-vRNIIPSet Get-vRNIL2Network Get-vRNINSXManager Get-vRNINodes Get-vRNIProblem "," connected","grhX1 ","#0000CC","SYSREQ_ORIGINAL_RECORD ","#c5cae9","Provide Referrer Identity","sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|","scrollSensitivity","[Σήμερα {}] LT","vertex_create_buffer_from_buffer ","EventEmitter","flowDropEnabled","SYSRES_CONST_FOLDER_TYPE_USER ","en måned","isScrollbarXUsingBottom","toLocaleString","GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE ","traceUIViewEvent","a8m.stringular",",0.1)","SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE ","subscribe",'"|$',"margin-right","flags","Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2","SameAsPending","Hook aborted transition","audio_sound_get_listener_mask audio_emitter_get_listener_mask ","reduceRight","SYSREQ_MAIN_RECORD_ID ","TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN ","initCustomEvent","SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT ","betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|","run cmd entrypoint volume add copy workdir label healthcheck shell","delete","Su_Ll_Ma_Me_Ia_Gw_Sa","today","_bodyAlign","שעה","analogReference detachInterrupt countryNameRead ","%d Stunden","heartbeat","Tue","time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk ","LT [noong nakaraang] dddd","triggerHandler",'',"#e65100","minutami","availableConfig","фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs ","probe","$ngAnimatePin","lat","eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab","dateFilter","popstate","Week ","endIndex","sagittarius","#6200ea","toLower","ng-active","_status","none? nonlocal not not-in not? nth numeric? oct odd? open ","Symbol(src)_1.","$$attachId","getDatasetAtEvent","wfatFinish ","%d соат","localhost","Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis","записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom ",'
{{AgreementView.formItem.options[0].value}}
Must select {{AgreementView.formItem.maxSelections || 1}} items
',"observe","isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter "," dispfun dispJordan display disprule dispterms distrib divide divisors divsum","terminated","userLanguage","SwipeUp","РегУстЧсл ","режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения ","ЗаписьСправочника ","192.0.2.","SYSREF_EDOCUMENT_CARD_TYPES ","минут","#2e7d32","noRevert","uib-datepicker","arrow_backward","начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы ","HTTP/[12]\\.\\d","getPixelForDecimal","_triggerDragStart","z-index","StateParams","domain","allSelected()","row","onRetain","dseOnValidDelete ","%d iminyaka","onInputEvent","Manager","heart_decoration"," ',"milliseconds","bus","material.components.gridList","SYSRES_CONST_BTN_PART ","nsp",' \n',"uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos ","shader_set shader_get_name shader_reset shader_current ","onData","MediaDevices","clipboardAction","matrixView","$$unwrapTrustedValue","styles","Cancel","minSizeY","closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter ","පැය %d","off","directionY","[a-zA-Z_]+\\s*=>","DetectRTC","'n dag","types","chartjs-hidden-iframe","типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных ","Bad Extension","ckReport ",'document.getElementsByClassName("gist");for(var i=0,links;i\n'," jar","SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE ","supportsTouch","showSeconds","full_moon","FALLBACK_TABLET","rgb(0, 82, 163)",'',"%d ماه","lfm","_pf","appendToOpenClass","isDefined","layer_background_get_alpha layer_background_get_index ","SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE ","ExtractFileName ","(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)","SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE ",'',"FOLDER_LINK_KIND ",'height="',"TIMEZONE_MINUTE WEEK YEAR","sparkles","%d сехет","pushing","loron %d","articulated_lorry","Subscription does not exist","fallbackOnBody"," log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst","detach","TEST_DEV_SYSTEM_CODE ","Lúnasa","_url","SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE ","ctScript ","openCalendarPane","IS_BUILDER_APPLICATION_ROLE ","%d दिवसां","Tried to set ","%s бұрын","shirt","chipInputTemplate","NG_EMBED_FILTER_DEFAULT_OPTIONS","ìsẹjú %d","ui.bootstrap.dateparser","SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE ","blue_car","vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size ","пӗр уйӑх","#ffffff","коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид ","(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)","ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ","Couldn't add part, part name has to be a string!","inputc|inputn|int|intck|intnx|intrr|irr|jbessel|","eltPerConnection ","forceNew","libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 ","readonlyInput","mdPlaceholder","cloneObject",'ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ',"noInkBar","D MMMM YYYY h:mm A","\\.\\s*","_start","You must provide an axis to the update-scroll function","MM/D/YYYY","getChipIndex"," solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export","CreateFile ","unSelectAll","\\#[A-Za-z0-9_-]+","wdtSearchDescription ","listbox","md-origin-","isPrivateBrowsing","ILargeIntegerRequisite ","[eilen] [klo] LT","newIndex","SYSRES_CONST_AUTH_WINDOWS ","SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE ","YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]","бір ай","%d emalanga","Invalid value of sv-grid attribute","FORM","січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня","icDialogLookUpEventHandler ","%d anni","මාසය","SYSRES_CONST_SEARCHES_JOB_CONTENT ","состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс ","_transport","add8e6","mdCard","getErrorHandler","submitStatus","uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane ","^\\s*","addition","أقل من يوم","ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis ","ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean "," and ","after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if ","md-multiple","discard distinct div do elif else end enum except export finally ","insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance ","ਇੱਕ ਘੰਟਾ","rtcOfferConstraints","सांजे","maxes","dragend","InviteServerTransaction","^\\w","\\s*\\)","ariaValue","skeleton_bone_data_get skeleton_bone_data_set ","gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel ","ГрафическийФайл ","controllerProvider","synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd ","gift","trim|unquote|until|upcase|verify|while|window","onconnecting","a8m.conditions","ariaInvalid",'}" ',"TypeError","minutu bat","quelques secondes","(none)","getPolicy","u2029","e607","index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile ","ev_joystick2_button8 ev_outside ev_boundary ev_game_start ",' \n',"Отчет ",' for parameter "',"Category","hodin","toRgbString","closeAll","mouseup touchend","target_link_options target_sources try_compile try_run ","a9a9a9","$on",'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',"instance_id","Int Real Char Bool","getLocale","restarting UA","firstDayOfWeek","_registrator","setJitter","prepend","nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota","","$injector","wa’ DIS","int float while private char catch import module export virtual operator sizeof ","CN_T2_T3_T4_T5_T6_T7","peekHead","ug-cn","ИндикаторЗакрыть ","ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ","toFinite","_md-panel-animate-enter","SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE ","COMMENT","cronMonthName","embedTemplateUrl","бір күн","СпрОтменить ","SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR ","model not assignable","registrations theorems schemes requirements begin end definition ","dddd [klokka] LT","?title=0&byline=0&portrait=0","mdNoSticky","SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE ","sejam","php7","ng-href","isOnHold","%s päästä","cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className ",")\\s","$compile","mdWhiteframe",'aria-label="',"(X) ","busts_in_silhouette","os_browser os_version display_aa async_load delta_time ","randomizationFactor","Animate out","\\b(0[xX][a-fA-F0-9_]+[Lln]?|","causes","draw_light_get draw_get_lighting shop_leave_rating url_get_domain ","Session Interval Too Small","జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్","color: "," charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps","SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE ","IPickValue ","landscape","data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==","mdColumn","^^mdCalendarMonth","hasTransitionAll","Connect-Vmc Connect-vRAServer Connect-vRNIServer ConvertFrom-Markdown ConvertTo-MOFInstance Copy-DatastoreItem Copy-HardDisk Copy-NsxEdge ","\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()","ÆǼǢ","fⓕfḟƒꝼ",'emit "confirmed"',"rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|","en minut","stop()","IDataSigner ","isWebRTCSupported","instance_deactivate_region instance_activate_all ","SYSRES_CONST_COMPONENT_TYPE_SCRIPTS ","Меню ","domFragmentFromBlocks_","sprite_get_speed font_exists font_get_name font_get_fontname ","__thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__","gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext ","dancer","before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float ","SYSREQ_REF_REQ_STORED ","TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP ","' title=':","buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 ","Reports ","mousewheel","mdColorPickerAlpha","Argument '{0}' is {1}","bidi","JsSIP:ERROR:RTCSession:Info","IAttachment ","disableTemplates","getSelectedLabels","rgba(","ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast ","итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла ","D [de] MMMM [de] YYYY [às] HH:mm","январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь","libra","chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim ","sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound "," file_search file_type fillarray findde find_root find_root_abs find_root_error","SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE ","contentHeight","%d μήνες","missing or invalid JsSIP.Socket via_transport property","disableTheming","SwipeLeft","takeBinaryData","rgb(163, 163, 0)"," mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t","SYSREF_ALL_REPLICATING_COMPONENTS ","failed","onDemand","okta beaivi","anonymous","REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN ","enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation ","JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ","rgba(255, 0, 255, 1.000)","value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ","md-gutter","footerAlign","Resume-Job Resume-Service Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias Set-AuthenticodeSignature ","oldIndex","capital_abcd","ExceptionsOff ","pfx","'inji","ffdab9","callable calling-module-name car case cdr chain chr coll? combinations compile ","_call_id","hodinu","ui.router","infix infixl infixr","chartDatasetOverride","$mdColors","isNull","_getSelectedOptions","_algorithm","LOG_ERROR","hpwOS/[VER];","Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀","updateSeconds","^\\!","установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией ","achievement_filter_favorites_only ","next until do begin unless nil break not case cond alias while ensure or ","onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected ","column-gap",' ',"phy_particle_flag_colourmixing phy_particle_flag_colormixing ","%[Qwi]?\\|","maple_leaf","eight_spoked_asterisk","\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf","UNITS_PSEUDOREFERENCE_CODE "," %s","isBetween","getOwnPropertyNames","_injector","dddd, D. MMMM YYYY H:mm [Auer]","lazyLoad","РазнДатаВремя ","ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ","CSeq: ","_self"," colorbox columns commutative complex cone context contexts contour contour_levels","formSubmit","sequence shortint shortreal showcancelled signed small soft solve specify specparam "," Tagen","Set","SYSRES_CONST_USER_STATUS_DISABLED_NAME ","achievement_send_challenge achievement_load_progress ","spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString ",'
',"isTypedArray","material.components.slider","Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b","Read Repeat Restore Return Runtime Select Shared Static Step Structure "," type: ","md-menu-backdrop md-click-catcher","handshake","abstract as assert async await break case catch class const continue covariant default deferred do ","fontSmiley","Node","lastWeek","invalidAt","md-select-placeholder","listeners","&csvLabel","IWizardPickParam ","MaxListenersExceededWarning","gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits ","globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset ","$$parseAndValidate","STATUS_ANSWERED"," tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials","CreateCachedReference ","contain contains continue copy div does eighth else end equal ","x-google-flag:%s","некалькі секунд","g16","isObject","no Contact header in response to REGISTER, response ignored","_late_sdp","md-chips-wrap","abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy ","#2979ff","_definition","#ff9100","munud","soatUnknown ","\\]\\(","abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|","JⒿJĴɈ","[sür el] dddd [lasteu à] LT","စက္ကန်.အနည်းငယ်","getTable","E-Boda (Supreme|Impresspeed|Izzycomm|Essential)","puppet","556b2f","SUPERSEDED","break cd continue eval exec exit export getopts hash pwd readonly return shift test times ","setGroupMaxOpen","способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты ","_lastX","for function here if import in inline never new override package private get set ","FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM ","_meridiemParse","tra %s","getBrightness","renderLayerPostProcess renderLayerUnparent renderManip renderPartition ",'',"nekoliko sekundi","break continue throw assert dynamic if else switch case for while try ","toasty","cronStyle","[கடந்த வாரம்] dddd, LT","railBorderXWidth","MdChipCtrl","beginPath","SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE ","lineTension","facepunch","disappointed_relieved","Can't deregister state; not found: ","rippleOptions","IEvent ","TEST_EDMS_MAIN_DB_NAME ","scrollSpeed","SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE ","[asdkh g] LT","finally published procedure absolute reintroduce operator as is abstract alias assembler ",'"probation"',"critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user ","START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES ","pager","soatNumericCollection ","48d1cc","SELECTED_DATE_CLASS","SESSION_EXPIRES","importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel ","एक महीने","[#$=]\\d+","queryKey","[անցած] dddd [օրը ժամը] LT","tile_get_index tile_get_flip tile_get_mirror tile_get_rotate ","[ວັນ]dddd[ໜ້າເວລາ] LT","_onDisconnect","onInputFocus","reconnectionAttempts","|.)","στις","СпрТблСтрКол ","setOptions","onStatesChanged","хвіліну_хвіліны_хвілін","overrideSuggestions","Please specify at least one of the md-nav-click, md-nav-href, or md-nav-sref ","dateFormat","_lastY","acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока ","ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE ","\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b","SYSRES_CONST_STATUS_VALUE_SUSPEND ","removeFromSortableElements","mans_shoe","swap","#FF3366","місяць","getHeaders","suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate ","alias bind builtin caller command declare echo enable help let local logout mapfile printf ","keyup","secondaryPlaceholder","типномерадокумента типномеразадачи типформы удалениедвижений ","transform-origin","defaultFontColor",'^[^\\n";]+::(?!=)',"D MMMM [năm] YYYY","quoteStrings","установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса ","nsps","[Ieri a","ctDialog ","0 0","unbindEvents","ФмтЧсл ","CreateLock ","eaGet eaCopy eaCreate eaCreateStandardRoute ","regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy ","cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse ","scaleMerge","datepickerPopupTemplateUrl","еден ден"," gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide","$$isDocumentHidden",'"tcp"',"swapThreshold","isDateComplete","glBorderDash",'',"draw_roundrect draw_roundrect_ext draw_triangle draw_circle ","icon","built_in","description","bank","md-optgroup","SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE ","isElementTypeEnabled","en-gb","%d taun","toasty-new","userNameWrite readJoystickY readJoystickX mouseReleased ","append cap close complex copy imag len make new panic print println real recover delete","[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|","808080","diena_dienos_dieną","ttUser ","toLength","#ffcdd2","translate3d(0,0,0)","SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION "," has been stopped (disposed)","[Għada fil-]LT","isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn ","active","$viewContentLoaded","pan-x","updatePage","toPairsIn","toggleClass","Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən","getHwb","#ffd180","Request Timeout"," mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver","أقل من عام",'creating transport "%s"',"isRemoved","scissors","[a-z][a-zA-Z0-9_]*","un mes","Lumia 2520","_sortFn","kotlin","UibAlertController","дзень_дні_дзён","%d minut","Invalid argument.","en-ca","режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание ","Disable-PSBreakpoint Disable-PSRemoting Disable-PSSessionConfiguration Disable-WSManCredSSP Disconnect-PSSession Disconnect-WSMan ","SYSRES_CONST_IMPORTANCE_NORMAL ","Legend","IRequisiteDescription ","Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic ","rememberUpgrade","IEDocument ","border-color","vuosi","layer_background_alpha layer_background_index layer_background_speed ","SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE ","for true while long throw strictfp finally protected import native final return void ","chartColors","IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE ","\\#\\(","buildDateCell","IPanelGroup ","resolvables","mrOk ","raiseevent readonly redim rem removehandler resume return ","endSymbol","поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы ","beingDragged","sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone ","run say summarize write ","DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET ","loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log ","optionsFactory","horizontal","oxygene","noDecrementMinutes","$locale","key","setAttrMapping setAttrNiceNameResource setConstraintRestPosition ","invalidDate","_setACKTimer","ஒரு மாதம்","registerHeader",'',"info","stableSort","tokyo_tower","audioOutputDevices","Execute ","$sanitize","object-fit","dynamic","Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo","atan visualmode inputlist tabpagewinnr round getregtype mapcheck ","python","iap_refunded fb_login_default fb_login_fallback_to_webview ","fish_cake"," modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag","Interceptor callback must be a function, instead got ","","SYSREQ_USERS_CATEGORY ","unusedTokens","IHyperLinkControl ","couple","hideRelated","_evictListeners","preparse","Dolfin","$resource","isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv ","~?`[^`]*?`","ctUnknown ","trackBy","ValidateNoCircleInNodeResources ValidateNodeExclusiveResources ValidateNodeManager ValidateNodeResources ValidateNodeResourceSource ValidateNoNameNodeResources ThrowError IsHiddenResource","MAX_FORWARDS",'","uibBtnRadio","perl","COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR ","margins","xAxes","crown","clock3","\\b\\d+(\\.\\d+)?(DT|D|T)","MESSAGE","dg_dl_dm_dc_dj_dv_ds","dddd [{}] LT","dddd [куни соат] LT [да]","","plunkerEmbed","toHsv","mdSubheader","SYSRES_CONST_JOB_KIND_NOTICE ","_days"," Jahren","goto","ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line ","placeholder","[autofocus]","symbol","%r!",'
',"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt","size string url variant vector2d vector3d vector4d","SYSREQ_FUNC_GROUP ","$mdpTimePicker"," MMM","Zepto","part_particles_create_colour part_particles_create_color ","charset","[Завтра ","%s ਵਿੱਚ","viewMapper","IPropertyChangeEvent ","onTimestampSelected","%d dəqiqə","shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare ","eraYearOrdinalParse","willInsertAfter","SYSRES_CONST_FILTER_REQUISITE_CODE ","md-menu-bar-menu","$mdDateRangePicker","getDirection()","emExport ","handleWindowBlur","\\b(apart from|aside from|instead of|out of|greater than|","watchDigests","uib/template/modal/backdrop.html","%d წელი","_getEvents","[ihttin ti] LT","cuchar cushort cuint culonglong cstringarray semistatic","SYSREQ_EDOC_SESSION_KEY ",'"retry_after"',"#f44336","Unclosed tag at ","getRight","md-select-header","material.components.menu","enableMultiSelect","luni","mwFormUuid"," random_graph random_graph1 random_gumbel random_hypergeometric random_laplace","-чу","wind_chime","page_with_curl","expectAsync","$uiViewName","pointerType","openscad","draggable","klukkustundum"," alias allroots alphacharp alphanumericp amortization %and annuity_fv","zpty zregexparse zsocket zstyle ztcp","alias audit before loglevel noop require subscribe tag ",'md-svg-src="'," Jahre","bind","Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi","tag","confused","dayOfMonthValues",'\n',"querySelector","SYSREQ_WORK_RULES_FOLDER_ID ",'ng-click="ctrl.mdNavClick()"',"close_requested","capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base ","onping","ctDocument ",'',"REPORT_TYPE ","hasAttribute","achievement_show_achievements achievement_show_leaderboards ","struct enum service exception","600 700 800 900 A700","INVITE received but WebRTC is not supported","get_open_filename_ext get_save_filename_ext show_error ","päivä","move-row-up","_ws","SYSREF_UNITS ","generateTheme","older_man","pixelsToColumns","initDate","#ffea00","os_is_paused window_has_focus code_is_compiled http_get ","$$animateJs","devicePixelRatio"," \n","(?:/(","literal","pragma ifdef ifndef include","layout-no-wrap","baseHref","ثانيتان","Consent Needed","mobileBreakPoint","elapsedTime","a8m.uri-component-encode","wptEDocumentInfo ","tHead","fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper ","sql","scaleService"," ","Get-WmiObject Get-WSManCredSSP Get-WSManInstance Group-Object Import-Alias Import-Clixml Import-Counter Import-Csv Import-IseSnippet ","cos","[;}]","config) should only be used for creating a new locale ","NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY ","getDate","revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling ","SYSRES_CONST_FULL_SUBSTITUTE_TYPE ",'ng-model-options="',"\\b0b([01_]+)","_remote_target","$mdThemeName","resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget ","(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>","SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME ","targetEvent",'("|\\$[G-Zg-z]|\\/\\*||->)','/embed?html,js,output">Simple Animation Tests'," मिणटां",' ",'but "',"firstTick","$$willAnimate","SideNav '{0}' is not available! Did you use md-component-id='{0}'?","UA is in READY status, not restarted","კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი","SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE ","weak_odr appending dllimport dllexport common ","scrollbarX","SYSREF_EDOCUMENT_VIEWS ","600 700 800 900 A200 A400 A700",'"udp"',"wsControlled ","size createGraphics beginDraw createShape loadShape PShape arc ellipse line point ","order deny allow setenv rewriterule rewriteengine rewritecond documentroot ","[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)","isRegistered","$1-$2","
","#fff","ح_ن_ث_ر_خ_ج_س","backface-visibility","IPickRequisiteDescription ","(VZOFX|VZOFY|VZOFZ)","selectingYear","?^mdSliderContainer","select_container_","SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE ","unlock purge reset change stop analyze cache flush optimize repair kill ","local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat ","C CachedValue CacheGraphics CachePersistence CalendarConvert CalendarData CalendarType Callout CalloutMarker CalloutStyle CallPacket CanberraDistance Cancel CancelButton CandlestickChart CanonicalGraph CanonicalizePolygon CanonicalizePolyhedron CanonicalName CanonicalWarpingCorrespondence CanonicalWarpingDistance CantorMesh CantorStaircase Cap CapForm CapitalDifferentialD Capitalize CapsuleShape CaptureRunning CardinalBSplineBasis CarlemanLinearize CarmichaelLambda CaseOrdering Cases CaseSensitive Cashflow Casoratian Catalan CatalanNumber Catch Catenate CatenateLayer CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling CelestialSystem Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEvaluationLanguage CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellLabelStyle CellLabelTemplate CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterArray CenterDot CentralFeature CentralMoment CentralMomentGeneratingFunction Cepstrogram CepstrogramArray CepstrumArray CForm ChampernowneNumber ChangeOptions ChannelBase ChannelBrokerAction ChannelDatabin ChannelHistoryLength ChannelListen ChannelListener ChannelListeners ChannelListenerWait ChannelObject ChannelPreSendFunction ChannelReceiverFunction ChannelSend ChannelSubscribers ChanVeseBinarize Character CharacterCounts CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterName CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop ChromaticityPlot ChromaticityPlot3D ChromaticPolynomial Circle CircleBox CircleDot CircleMinus CirclePlus CirclePoints CircleThrough CircleTimes CirculantGraph CircularOrthogonalMatrixDistribution CircularQuaternionMatrixDistribution CircularRealMatrixDistribution CircularSymplecticMatrixDistribution CircularUnitaryMatrixDistribution Circumsphere CityData ClassifierFunction ClassifierInformation ClassifierMeasurements ClassifierMeasurementsObject Classify ClassPriors Clear ClearAll ClearAttributes ClearCookies ClearPermissions ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipPlanesStyle ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent CloudAccountData CloudBase CloudConnect CloudDeploy CloudDirectory CloudDisconnect CloudEvaluate CloudExport CloudExpression CloudExpressions CloudFunction CloudGet CloudImport CloudLoggingData CloudObject CloudObjectInformation CloudObjectInformationData CloudObjectNameFormat CloudObjects CloudObjectURLType CloudPublish CloudPut CloudRenderingMethod CloudSave CloudShare CloudSubmit CloudSymbol CloudUnshare ClusterClassify ClusterDissimilarityFunction ClusteringComponents ClusteringTree CMYKColor Coarse CodeAssistOptions Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorBalance ColorCombine ColorConvert ColorCoverage ColorData ColorDataFunction ColorDetect ColorDistance ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQ ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorsNear ColorSpace ColorToneMapping Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CombinedEntityClass CombinerFunction CometData CommonDefaultFormatTypes Commonest CommonestFilter CommonName CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompanyData CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledCodeFunction CompiledFunction CompilerOptions Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComplexListPlot ComplexPlot ComplexPlot3D ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries CompositeQ Composition CompoundElement CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData ComputeUncertainty Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath ConformAudio ConformImages Congruent ConicHullRegion ConicHullRegion3DBox ConicHullRegionBox ConicOptimization Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphComponents ConnectedGraphQ ConnectedMeshComponents ConnectedMoleculeComponents ConnectedMoleculeQ ConnectionSettings ConnectLibraryCallbackFunction ConnectSystemModelComponents ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray ConstantArrayLayer ConstantImage ConstantPlusLayer ConstantRegionQ Constants ConstantTimesLayer ConstellationData ConstrainedMax ConstrainedMin Construct Containing ContainsAll ContainsAny ContainsExactly ContainsNone ContainsOnly ContentFieldOptions ContentLocationFunction ContentObject ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTask ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean ContrastiveLossLayer Control ControlActive ControlAlignment ControlGroupContentsBox ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket ConvexHullMesh ConvexPolygonQ ConvexPolyhedronQ ConvolutionLayer Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CookieFunction Cookies CoordinateBoundingBox CoordinateBoundingBoxArray CoordinateBounds CoordinateBoundsArray CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDatabin CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CountDistinct CountDistinctBy CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Counts CountsBy Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateCellID CreateChannel CreateCloudExpression CreateDatabin CreateDataSystemModel CreateDialog CreateDirectory CreateDocument CreateFile CreateIntermediateDirectories CreateManagedLibraryExpression CreateNotebook CreatePalette CreatePalettePacket CreatePermissionsGroup CreateScheduledTask CreateSearchIndex CreateSystemModel CreateTemporary CreateUUID CreateWindow CriterionFunction CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossEntropyLossLayer CrossingCount CrossingDetect CrossingPolygon CrossMatrix Csc Csch CTCLossLayer Cube CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrencyConvert CurrentDate CurrentImage CurrentlySpeakingPacket CurrentNotebookImage CurrentScreenImage CurrentValue Curry CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition","hasListeners","then to try type val! val virtual when while with ",")|(?:","parseSimulcastStreamList","вс_пн_вт_ср_чт_пт_сб","ctGroupBox ","ISearchFolderInfo ","\\B('[A-Za-z])\\b","$$rAF","audio_falloff_none audio_falloff_inverse_distance ","\\bSamsung\\b|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","chipKeyDown","change","x-uib-accordion-header,","readOnly","sparkling_heart","(max-width: 600px)","SAS","mp_potential_step_object mp_potential_settings mp_linear_path ","getParentWithPointerEvents","في %s","lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit ","WAIT_BLOCK_DEADLINE_PROPERTY ","port","$$watchExpr","white_circle","[Demain à] LT","SYSREQ_REF_TYPE_REQ_IS_CONTROL ","типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных ","beforeBuildTicks","#b388ff","Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag","[Lo scorso] dddd [a","StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule ","CSelectSQL ","interface invariant is lazy macro mixin module new nothrow out override package ","remote_identity","%[a-zA-Z0-9#_$@]+%","increase limit","mdDateRangePickerCtrl","via","ary","file","","file:","[ယနေ.] LT [မှာ]","gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents ","Uint8Array","%d dias","scale({0},{1})","[У мінулую] dddd [ў] LT","qml","gridster-resizable-changed","viewDecl.controllerAs","onePanel","SYSRES_CONST ","art","%da",'("|#|/\\*|\\s+/\\w+)',"onShowing","недела_понеделник_вторник_среда_четврток_петок_сабота","md-icon","Retry-After:","SUMMARY","hasSpeakers","каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку ","unionBy","getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo ","END","transition-timing-function",'"terminated"',"\\b(\\.\\d+|\\d+\\.\\d+)\\b","leti","_reduceTranslateValues",'',"[Eelmine] dddd LT","minutama","auth-int","rgb(255, 128, 0)","[މިއަދު] LT"," graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph","ien dei","[Vakar pulksten] LT","_onunhold",'origin-scope="origScope" ',"traceUIViewConfigUpdated","a h:mm",'"audio"',"ર_સો_મં_બુ_ગુ_શુ_શ","D MMMM YYYY, A h:mm","onRemoved","cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro ","dddd [على الساعة] LT","autoSetItemPosition","[kesho saa] LT","MISSING_SDP","ERROR","closeReasons","convenience_store","modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move ","unexpectedChars","normalizeUIViewTarget","\\bforeign\\b","JsSIP:RTCSession:DTMF","_baseHref","doOpen","OFFSET_END","gada_gadiem_gads_gadi","BlackBerry.*Version/[VER]",".ne-code","D MMMM YYYY г., HH:mm","#80deea","Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des","-active","dolphin","dddd [paset da] LT","[uib-accordion-header],","addEventListeners","ui.bootstrap.timepicker","and or to union intersect instance of treat as castable cast map array ","browser","Default Dim Do Else ElseIf EndFunc EndIf EndSelect ","ensureScalesHaveIDs","(min-width: 960px)","localeCompare",' \n',"yearCtrl","ctListBox ","deprecationHandler","snail","isState","__uiNodeId","link_nextgroup link_nextrecord link_prevgroup link_prevrecord log ","simple","YYYYDDD","call class const dim do loop erase execute executeglobal exit for each next function ","resetInputFocused","formatMonth","probit|probnegb|probnorm|probt|put|putc|putn|qtr|","f4a460","paragraph","INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION ","एक मिनिट","getBackgroundPoint","IFolderDialog ","типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса ","%s క్రితం","layerelementtype_tile tile_rotate tile_flip tile_mirror ","md-autofocus","सकाळीं","xAxisID","extractelement insertelement shufflevector getresult ","ui-sref","addBox","setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo ","Get-NsxFirewallRuleMember Get-NsxFirewallSavedConfiguration Get-NsxFirewallSection Get-NsxFirewallThreshold Get-NsxIpPool Get-NsxIpSet Get-NsxLicense Get-NsxLoadBalancer ","1 分鐘","SYSREF_TASK_SIGNATURES ","createLinearGradient",'
',"__esModule","call-id","\\[/noprocess\\]","Ambiguous","emitter","mediaDevices","1e-","$filter","layout-lt-md","ПользовательИД ","
\n","Searches ","removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea ","Ai_Sm_Mo_Bu_Br_Su_Sn","cached"," trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars","invalid","[v] [nedeljo] [ob] LT","факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени ","_setTheming","%d يوم","C_LINE_COMMENT_MODE","-шы","Сценарий ","mdCell","kissing","buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 ","\\n$","next until do begin unless END rescue else break undef not super class case ","wdtFolderCollection ","Now ","USERS_PSEUDOREFERENCE_CODE ","out","ripples","uibModalAnimationClass","right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows ","hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified ","md-input-has-value","uma semana","JOB_BLOCK_BEFORE_START_EVENT ","=?mdAutoselect","un devezh",'class="md-datepicker-input" ',"button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), ","\\s+{","'iensa þora","vertex_format_add_position_3d vertex_format_add_colour ",'
',"Friday","iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]","wrap","shortcutPropagation","á ~móñ~th","setPaletteColor","device_mouse_check_button_pressed device_mouse_check_button_released ","crocodile","withCredentials","currentIndex_","%d ມື້","հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ","$extractResponseForPriorityQuestion","rgb(214, 214, 0)","_updatePosition","keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx ","_createPanel","protocol-less url %s","positionElements","telescope","engine.io-client:polling-xhr","fakeHandler","MatrixView.formItem.config.required","MIN_DURATION","formatArgs","countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity ","_titleFontStyle","dns","cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact ","global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime","//www.","ComSpec Clipboard ClipboardAll ErrorLevel","@[0-9]+","set_source_files_properties set_target_properties set_tests_properties source_group ","SYSRES_CONST_REQ_MODE_EDIT_CODE ",'document.body.scrollHeight + \'px\'" style="margin:10px 0;">','deselectSugarcrmAccounts','preventDefault','CannedAnswer\x20properly\x20saved!','GlobalCustomField','deleteSelectedIvrCampaignHopperBlacks','ilbc','timer','saveHopper','Delete\x20SmsQueue','saveMailCannedAnswer','ANALYTICS.RENAME','@id','contrast2','UserProfileController\x20as\x20vm','/users','advancedSearch','VoiceRecordingsController\x20as\x20vm','getDynamics365Accounts','IvrCampaignHoppersController','icon-account-multiple','api.intSugarcrmAccount.update','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog.html','startPredictive','usmoney','api.intFreshsalesAccount.update','voicemail','users/:id/whatsapp_accounts','Offline','whatsapp/applications/describe','compact','variables','addContactTab','intVtigerField','contrast4','EditSmsAccountAppqueueDialogController','preferredLanguage','selectAllChanSpies','addApplications','createOrEditOdbc','createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','api.condition.save','WhatsappAccountId','INTEGRATIONS.NEW_ZENDESKCONFIGURATION','addNewMailCannedAnswer','EditSmsAccountAppdialogflowDialogController','deleteSelectedODBC','minimize','trigger:browser:url','apps.callysquare','\x27newTab\x27','api.intSugarcrmConfiguration.update','onVoiceExtensionUpdate','createOrEditQueueCampaignHopper','openFromEditor','user_has_chat_interactions:remove','VOICE.ALL','Asia\x20Pacific\x20(Seoul)','noanswer','Hangup_Cause','deleteChatWebsiteInteraction','integrations/freshdesk/accounts/describe','src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog.html','faxStatus','/tools','error-500','exportSelectedMailAccountInteractions','setFormatTime','intSalesforceAccount','deleteSelectedFaxAccountInteractions','ERROR\x20OPEN\x20CONTACT','apps.home','autoAssociation','SYSTEM:GET_MAILACCOUNTS','deleteWhatsappAccountWhatsappCannedAnswer','none','daysOfMonth','auth/local','INTEGRATIONS.EDIT_DYNAMICS365CONFIGURATION','indigo-A100-fg','us-west-1','gotoFreshsalesAccounts','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog.html','agentreject','exportSelectedSounds','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','chat/groups/:id/clone'];(function(_0x102d26,_0x524827){const _0xde5e2c=function(_0x5355c3){while(--_0x5355c3){_0x102d26['push'](_0x102d26['shift']());}};_0xde5e2c(++_0x524827);}(a0_0x5248,0x106));const a0_0xde5e=function(_0x102d26,_0x524827){_0x102d26=_0x102d26-0x0;let _0xde5e2c=a0_0x5248[_0x102d26];return _0xde5e2c;};const _0x4d4e38=a0_0xde5e;(self[_0x4d4e38('0xc02')]=self[_0x4d4e38('0xc02')]||[])['push']([[0x8f],{0x1efd:(_0x5355c3,_0x43d8ad,_0x21a6a1)=>{const _0x566993=_0x4d4e38;'use strict';var _0x3ec913=_0x21a6a1(0x304);_0x516f1d[_0x566993('0x17bb')]=[_0x566993('0x605')];function _0x516f1d(_0x37e8d1){const _0x5aecbe=_0x566993;_0x37e8d1[_0x5aecbe('0x17ac')][_0x5aecbe('0x18bb')](_0x5aecbe('0x133f'));}const _0x303da4=_0x516f1d;_0x42f05d[_0x566993('0x17bb')]=[_0x566993('0x1f6e')];function _0x42f05d(_0x28e6eb){const _0x25b0f1=_0x566993,_0x41ab89={'to':function(_0xbd8b3){const _0xdecf5b=a0_0xde5e;return _0xbd8b3[_0xdecf5b('0x5c0')]===!![];}},_0x1b9985={'to':function(_0x4cf0d5){const _0x25189c=a0_0xde5e;return _0x4cf0d5['name']!==_0x25189c('0xb0a');}},_0x4e1737={'to':function(_0x207d53){return _0x207d53['permissionId'];}},_0x4f1c59={'to':function(_0x1a282b){const _0x1517df=a0_0xde5e;return _0x1a282b['parent'][_0x1517df('0x10ad')]===_0x1517df('0x1057');}},_0x5470d9=function(_0x415ae6){const _0x174444=a0_0xde5e,_0x3f6fc5=_0x415ae6['injector']()['get'](_0x174444('0x1600')),_0x2d6fd3=_0x415ae6[_0x174444('0x1b2f')][_0x174444('0x115b')];return!_0x3f6fc5['isLoggedIn']()?_0x2d6fd3[_0x174444('0x235')](_0x174444('0xb0a'),undefined,{'reload':!![]}):_0x3f6fc5['retrieveUser']()[_0x174444('0x103c')](function(){const _0x201233=_0x174444;return _0x2d6fd3[_0x201233('0x235')](_0x201233('0xb0a'),undefined,{'reload':!![]});});},_0x3afaa4=function(_0x19e017){const _0x3697f7=a0_0xde5e,_0x222603=_0x19e017[_0x3697f7('0x1a89')]()['get'](_0x3697f7('0x1600')),_0x57cb41=_0x19e017['router']['stateService'],_0x543aa6=_0x19e017[_0x3697f7('0x1be7')]();if(_0x222603[_0x3697f7('0x1b4e')](_0x3697f7('0x7b0'))&&_0x543aa6[_0x3697f7('0x10ad')]!=_0x3697f7('0x1057'))return _0x57cb41[_0x3697f7('0x235')](_0x3697f7('0x1057'),{'redirect':![]},{'reload':!![]});},_0x798133=function(_0x40db37){const _0x3aaa7c=a0_0xde5e,_0x458bbf=_0x40db37[_0x3aaa7c('0x1a89')]()[_0x3aaa7c('0x1d97')]('Auth'),_0x3b5d90=_0x40db37[_0x3aaa7c('0x1b2f')]['stateService'],_0x45ce53=_0x40db37[_0x3aaa7c('0x1be7')]();if(_0x458bbf['hasRole']('user')){if(!_0x458bbf[_0x3aaa7c('0x1f1b')](_0x45ce53[_0x3aaa7c('0x47e')]))return _0x3b5d90[_0x3aaa7c('0x235')](_0x3aaa7c('0x1057'),{'redirect':![]},{'reload':!![]});else{const _0x208213=_0x40db37[_0x3aaa7c('0x197a')]()['id']?Number(_0x40db37[_0x3aaa7c('0x197a')]()['id']):undefined;if(_0x208213)return _0x458bbf['hasResourcePermission'](_0x45ce53['permissionId'],_0x208213)[_0x3aaa7c('0x103c')](function(){const _0x116b3f=_0x3aaa7c;return _0x3b5d90[_0x116b3f('0x235')](_0x45ce53['parent'][_0x116b3f('0x10ad')],{'redirect':![]},{'reload':!![]});});}}},_0x25a4b4=function(_0x5d316e){const _0x10f8b1=a0_0xde5e,_0x4e07e2=_0x5d316e[_0x10f8b1('0x1a89')]()['get'](_0x10f8b1('0x1600')),_0x4e3cb5=_0x5d316e['router'][_0x10f8b1('0x115b')];if(_0x4e07e2[_0x10f8b1('0x1b4e')](_0x10f8b1('0x166f'))&&!_0x4e07e2[_0x10f8b1('0x1f1b')](0x64))return _0x4e3cb5['target'](_0x10f8b1('0x1057'),{'redirect':![]},{'reload':!![]});};_0x28e6eb['onBefore'](_0x41ab89,_0x5470d9),_0x28e6eb[_0x25b0f1('0x22c7')](_0x1b9985,_0x3afaa4),_0x28e6eb[_0x25b0f1('0x1f53')](_0x4e1737,_0x798133),_0x28e6eb[_0x25b0f1('0x1f53')](_0x4f1c59,_0x25a4b4);}const _0x10d20f=_0x42f05d;var _0x21897e=_0x21a6a1(0x1956),_0x3c8d8a=_0x21a6a1['n'](_0x21897e),_0x461657=_0x21a6a1(0x17d),_0x156524=_0x21a6a1['n'](_0x461657);const _0x307a33=_0x21a6a1['p']+'src/js/modules/auth/services/hotdesk/dialog.html/dialog.html';_0x354681[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0x2166'),'$q','api',_0x566993('0x1d31'),'$document'];function _0x354681(_0x572817,_0x53e471,_0x16218b,_0x4b2ad4,_0x281c6f,_0x4fa3da){let _0x5a6589;const _0x2a8531={'getToken':_0x14b9e8,'getCurrentUser':_0x3a8a2d,'getPermissions':_0x2f1648,'hasChildrenPermissions':_0x5530bd,'hasModulePermissions':_0x2cadef,'hasModulesPermissions':_0x583597,'hasRole':_0x20c616,'hasPermission':_0xf1eafc,'hasResourcePermission':_0x48e0af,'hasSectionPermissions':_0x19b9dc,'hasSectionsPermissions':_0x4e896e,'isAgent':_0xa0217d,'isAdmin':_0x497ed5,'isLoggedIn':_0x30bd43,'isTelephone':_0x341615,'isUser':_0x4b6bd3,'login':_0x2bdfaa,'logout':_0x115657,'parseCrudPermissions':_0x217998,'queueLogin':_0x14332a,'reloadPermissions':_0x52684c,'removeCookies':_0x591f91,'retrieveUser':_0x58a5c7,'setCurrentUser':_0x20e6a0,'getAuthenticationType':_0xa0ab9e,'loginSSO':_0x446241};return _0x2a8531;function _0x14b9e8(){const _0x489a59=a0_0xde5e;return _0x53e471['get'](_0x489a59('0x7c6'));}function _0x3a8a2d(){return _0x5a6589;}function _0x20e6a0(_0xf0b089){const _0x129ed2=a0_0xde5e;_0x5a6589=_0x3c8d8a()[_0x129ed2('0x9ef')](_0x5a6589,_0xf0b089);}function _0x14332a(_0x5797c7){return _0x16218b(function(_0xe2b70c,_0x1a9c1b){const _0x281737=a0_0xde5e;_0x4b2ad4['user'][_0x281737('0x1fee')]({'id':_0x5a6589['id'],'device':_0x281737('0x24e0'),'intrf':_0x5797c7})[_0x281737('0x1964')][_0x281737('0x173b')](function(_0x35af7c){_0xe2b70c(_0x35af7c);})[_0x281737('0x103c')](function(_0x37b50a){_0x1a9c1b(_0x37b50a);});});}function _0x53d4c5(){return _0x16218b(function(_0x7020e2,_0x9b6dde){const _0x1aacfd=a0_0xde5e;_0x4b2ad4[_0x1aacfd('0x166f')][_0x1aacfd('0x1037')]({'id':_0x5a6589['id'],'device':_0x1aacfd('0x24e0')})['$promise'][_0x1aacfd('0x173b')](function(){_0x7020e2();})[_0x1aacfd('0x103c')](function(_0x1bbe7c){_0x9b6dde(_0x1bbe7c);});});}function _0x506278(_0xc1c7fd){return _0x16218b(function(_0x55e9a5,_0x2e25ed){const _0x3c6810=a0_0xde5e,_0x440bd1={'online':_0xc1c7fd,'lastLoginAt':_0xc1c7fd?_0x156524()()['format'](_0x3c6810('0xf5f')):undefined};_0x4b2ad4[_0x3c6810('0x166f')]['update']({'id':_0x5a6589['id']},_0x440bd1)[_0x3c6810('0x1964')][_0x3c6810('0x173b')](function(_0x40be76){_0x55e9a5(_0x40be76);})[_0x3c6810('0x103c')](function(_0x11bad5){_0x2e25ed(_0x11bad5);});});}function _0x2bdfaa(_0x5cf047){return _0x16218b(function(_0x5ed448,_0x597084){const _0x56b4d6=a0_0xde5e;_0x4b2ad4['auth'][_0x56b4d6('0xa3c')](_0x5cf047)[_0x56b4d6('0x1964')][_0x56b4d6('0x173b')](function(_0x313c94){const _0x2a4c2b=_0x56b4d6;return _0x53e471['put'](_0x2a4c2b('0x7c6'),_0x313c94[_0x2a4c2b('0x1499')]),_0x4b2ad4['user'][_0x2a4c2b('0x1d97')]({'id':_0x313c94['id']})[_0x2a4c2b('0x1964')];})['then'](function(_0x5237e5){const _0x377af4=_0x56b4d6;_0x5a6589=_0x5237e5,_0x5a6589[_0x377af4('0x13f3')]=_0x156524()()[_0x377af4('0xddc')](_0x377af4('0xf5f')),_0x4ffcd3('LOCAL_LOGIN');})[_0x56b4d6('0x173b')](function(){const _0x10454e=_0x56b4d6;if(_0xa0217d()&&_0x5a6589[_0x10454e('0x18b')]===0x1&&_0x5a6589['hotdesk'])return _0x572817['show']({'controller':_0x10454e('0xb68'),'controllerAs':'vm','templateUrl':_0x307a33,'parent':angular[_0x10454e('0xb6d')](_0x4fa3da[_0x10454e('0x1a5')]),'clickOutsideToClose':![],'resolve':{'telephones':[_0x10454e('0x2401'),function(_0x416021){const _0x378796=_0x10454e;return _0x416021[_0x378796('0x155b')](_0x378796('0x15e6'),{'fields':_0x378796('0x27c'),'role':_0x378796('0x149c'),'nolimit':!![]});}]}});})['then'](function(_0x3cfc9c){const _0x6f5626=_0x56b4d6;if(_0xa0217d()&&_0x5a6589[_0x6f5626('0x18b')]!==0x0)return _0x14332a(_0x3cfc9c);else{if(_0x497ed5()||_0x4b6bd3())return _0x506278(!![]);else return;}})[_0x56b4d6('0x173b')](function(_0x49b231){const _0x45778e=_0x56b4d6;_0x5a6589=_0x3c8d8a()[_0x45778e('0x1b62')](_0x5a6589,_0x49b231),_0x5ed448();})['catch'](function(_0x2a2713){_0x597084(_0x2a2713);});});}function _0x591f91(){const _0x487e9c=a0_0xde5e;_0x53e471[_0x487e9c('0x1a8b')](_0x487e9c('0x7c6')),_0x5a6589&&(_0x281c6f['localStorage'][_0x487e9c('0x2813')](_0x487e9c('0x1b4b')+_0x5a6589['id']),_0x281c6f['localStorage'][_0x487e9c('0x2813')](_0x487e9c('0x4a9')),_0x5a6589=null);}function _0x115657(_0x1c07b7){return _0x16218b(function(_0xc1fa0b,_0xfdebc3){const _0x2b6a90=a0_0xde5e;_0x1c07b7?(_0x591f91(),_0xc1fa0b()):_0x16218b['resolve']()[_0x2b6a90('0x173b')](function(){const _0xe03495=_0x2b6a90;if(_0xa0217d()&&_0x5a6589[_0xe03495('0x18b')]!==0x0)return _0x53d4c5();else{if(_0x497ed5()||_0x4b6bd3())return _0x506278(![]);else return;}})[_0x2b6a90('0x173b')](function(){_0x591f91(),_0xc1fa0b();})[_0x2b6a90('0x103c')](function(_0x52dff3){_0xfdebc3(_0x52dff3);});});}function _0x30bd43(){return _0x14b9e8()?!![]:![];}function _0xa0217d(){const _0x47b48a=a0_0xde5e;return _0x5a6589['role']===_0x47b48a('0x7b0');}function _0x497ed5(){const _0x29a606=a0_0xde5e;return _0x5a6589[_0x29a606('0x14a')]===_0x29a606('0x79b');}function _0x4b6bd3(){const _0x4386c0=a0_0xde5e;return _0x5a6589[_0x4386c0('0x14a')]==='user';}function _0x341615(){const _0x2f6b5f=a0_0xde5e;return _0x5a6589['role']===_0x2f6b5f('0x149c');}function _0x58a5c7(){return _0x16218b(function(_0x11eef6,_0x169da1){const _0x2af7d6=a0_0xde5e;_0x4b2ad4[_0x2af7d6('0x166f')][_0x2af7d6('0x221e')]()[_0x2af7d6('0x1964')]['then'](function(_0x48ce0c){const _0x3b0550=_0x2af7d6;return _0x48ce0c['role']===_0x3b0550('0x166f')?_0x2f1648(_0x48ce0c[_0x3b0550('0x1946')])['then'](function(_0x1deed1){const _0x2fb284=_0x3b0550;return _0x48ce0c[_0x2fb284('0x23c1')]=_0x1deed1,_0x48ce0c;}):_0x48ce0c;})[_0x2af7d6('0x173b')](function(_0x5a3f51){_0x5a6589=_0x5a3f51,_0x11eef6(_0x5a6589);})[_0x2af7d6('0x103c')](function(_0x468af3){_0x169da1(_0x468af3);});});}function _0x20c616(_0xa533bf){const _0x5c1a7a=a0_0xde5e;return _0x5a6589?_0x5a6589[_0x5c1a7a('0x14a')]===_0xa533bf:![];}function _0xf1eafc(_0x27fba6){const _0x4703a5=a0_0xde5e;return _0x5a6589?_0x3c8d8a()[_0x4703a5('0x2814')](_0x5a6589[_0x4703a5('0x23c1')],_0x27fba6):![];}function _0x2f1648(_0x104cbc){let _0x52316a=[];return _0x16218b(function(_0x59a0a0,_0x578679){const _0x3c6e99=a0_0xde5e;return!_0x104cbc&&_0x59a0a0(_0x52316a),_0x4b2ad4[_0x3c6e99('0x257b')][_0x3c6e99('0x23e8')]({'id':_0x104cbc})[_0x3c6e99('0x1964')][_0x3c6e99('0x173b')](function(_0xbdeb2a){const _0x57746a=_0x3c6e99;for(let _0x4bb11c=0x0;_0x4bb11c<_0xbdeb2a[_0x57746a('0x543')];_0x4bb11c++){const _0x245f24=_0xbdeb2a[_0x4bb11c];_0x52316a[_0x57746a('0x18bb')](_0x245f24['sectionId']),_0x245f24['subsections']&&(_0x52316a=_0x3c8d8a()[_0x57746a('0x163f')](_0x52316a,_0x245f24[_0x57746a('0x145c')]));}return _0x52316a;})[_0x3c6e99('0x173b')](function(_0x7f1aaa){_0x59a0a0(_0x7f1aaa);})[_0x3c6e99('0x103c')](function(_0x57d20e){const _0x16fca1=_0x3c6e99;_0x578679(_0x16fca1('0x2256'),_0x57d20e);});});}function _0x5530bd(_0x4c6bd1){const _0x28ab02=a0_0xde5e;if(!_0x4c6bd1)return![];return _0x3c8d8a()[_0x28ab02('0x1ec')](_0x4c6bd1,function(_0x4acd1c){return _0xf1eafc(_0x4acd1c);});}function _0x52684c(){return _0x16218b(function(_0x11f882,_0x195ce7){const _0x2e8054=a0_0xde5e;_0x2f1648(_0x5a6589['userProfileId'])[_0x2e8054('0x173b')](function(_0x26b75e){const _0x1122cf=_0x2e8054;_0x5a6589[_0x1122cf('0x23c1')]=_0x26b75e,_0x11f882();})['catch'](function(_0x31796f){_0x195ce7(_0x31796f);});});}function _0x217998(_0x3d4333){const _0x4e33c3=a0_0xde5e;return _0x497ed5()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x3d4333?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x3c8d8a()[_0x4e33c3('0x2814')](_0x3d4333,'r')&&_0x3d4333['length']===0x1?!![]:![],'canEdit':_0x3c8d8a()['includes'](_0x3d4333,'e')?!![]:![],'canDelete':_0x3c8d8a()[_0x4e33c3('0x2814')](_0x3d4333,'d')?!![]:![]};}function _0x48e0af(_0x2ce3e4,_0x229846){return _0x16218b(function(_0x4b5136,_0x51100a){const _0x2edc5a=a0_0xde5e;return _0x4b2ad4[_0x2edc5a('0x170e')][_0x2edc5a('0x1d97')]({'userProfileId':_0x5a6589[_0x2edc5a('0x1946')],'sectionId':_0x2ce3e4})[_0x2edc5a('0x1964')][_0x2edc5a('0x173b')](function(_0x1f96d7){const _0x431f5c=_0x2edc5a,_0x29ba24=_0x1f96d7['rows'][0x0];if(_0x29ba24[_0x431f5c('0x273e')])_0x4b5136();else return _0x4b2ad4[_0x431f5c('0xda9')][_0x431f5c('0x1d97')]({'sectionId':_0x29ba24['id'],'nolimit':!![]})[_0x431f5c('0x1964')]['then'](function(_0x51f8d8){const _0x205a56=_0x431f5c,_0x2080e8=_0x51f8d8['rows'];_0x3c8d8a()[_0x205a56('0x1ec')](_0x2080e8,[_0x205a56('0x1ce0'),_0x229846])?_0x4b5136():_0x51100a();});})[_0x2edc5a('0x103c')](function(_0x31b71e){const _0x4147f9=_0x2edc5a;_0x51100a(_0x4147f9('0x2256'),_0x31b71e);});});}function _0x19b9dc(_0x43db10){return _0x16218b(function(_0x18a805,_0x7be0b1){const _0x11ffe5=a0_0xde5e,_0x211687={};return _0x52684c()[_0x11ffe5('0x173b')](function(){const _0x4aed77=_0x11ffe5;_0x3c8d8a()[_0x4aed77('0x2814')](_0x5a6589[_0x4aed77('0x23c1')],_0x43db10)&&(_0x211687[_0x43db10]=!![]),_0x18a805(_0x211687);})[_0x11ffe5('0x103c')](function(_0x5adccd){_0x7be0b1(_0x5adccd);});});}function _0x4e896e(_0xddd3a5){return _0x16218b(function(_0x262973,_0x436d41){const _0x2b38ee=a0_0xde5e,_0x5e6012={};if(_0x497ed5())_0xddd3a5[_0x2b38ee('0xa6a')](function(_0x590315){_0x5e6012[_0x590315]=!![];}),_0x262973(_0x5e6012);else return _0x52684c()['then'](function(){const _0xb3b86f=_0x2b38ee;_0xddd3a5[_0xb3b86f('0xa6a')](function(_0x31302d){const _0x3b6bc0=_0xb3b86f;_0x3c8d8a()[_0x3b6bc0('0x2814')](_0x5a6589['permissions'],_0x31302d)&&(_0x5e6012[_0x31302d]=!![]);}),_0x262973(_0x5e6012);})[_0x2b38ee('0x103c')](function(_0x5b9e56){_0x436d41(_0x5b9e56);});});}function _0x2cadef(_0x49308e){return _0x16218b(function(_0x17d878,_0x11143d){const _0x183df0=a0_0xde5e;_0x497ed5()?_0x17d878(!![]):_0x4b2ad4['userProfileSection'][_0x183df0('0x1d97')]({'userProfileId':_0x5a6589[_0x183df0('0x1946')]})['$promise'][_0x183df0('0x173b')](function(_0x4e138d){const _0x4ebdf1=_0x183df0,_0xfeca5b=_0x4e138d&&_0x4e138d[_0x4ebdf1('0x6aa')]?_0x4e138d[_0x4ebdf1('0x6aa')]:[];if(!_0x3c8d8a()[_0x4ebdf1('0x1a56')](_0xfeca5b)){const _0x5499b5=_0x3c8d8a()['filter'](_0xfeca5b,function(_0x19bae7){const _0x1bcf6e=_0x4ebdf1;return _0x19bae7[_0x1bcf6e('0x830')];});_0x17d878(_0x3c8d8a()['some'](_0x5499b5,[_0x4ebdf1('0xe26'),_0x49308e]));}else _0x17d878(![]);})['catch'](function(_0x5375eb){_0x11143d(_0x5375eb);});});}function _0x583597(_0x3f9c2a){return _0x16218b(function(_0x5c0ce7,_0x16aa47){const _0x3deffb=a0_0xde5e,_0x3d0509={};_0x497ed5()?(_0x3f9c2a[_0x3deffb('0xa6a')](function(_0x47560f){_0x3d0509[_0x47560f]=!![];}),_0x5c0ce7(_0x3d0509)):_0x4b2ad4[_0x3deffb('0x170e')][_0x3deffb('0x1d97')]({'userProfileId':_0x5a6589['userProfileId']})['$promise']['then'](function(_0x5ed03e){const _0x4986aa=_0x3deffb,_0x8789a=_0x5ed03e&&_0x5ed03e[_0x4986aa('0x6aa')]?_0x5ed03e['rows']:[];if(!_0x3c8d8a()[_0x4986aa('0x1a56')](_0x8789a)){const _0x55ad49=_0x3c8d8a()(_0x8789a)['filter'](function(_0x99d8d){const _0x57ce3e=_0x4986aa;return _0x99d8d[_0x57ce3e('0x830')]&&_0x3c8d8a()['includes'](_0x3f9c2a,_0x99d8d['category']);})[_0x4986aa('0x1fb4')](function(_0x13b098){const _0x1f1d24=_0x4986aa;return _0x13b098[_0x1f1d24('0xe26')];})[_0x4986aa('0x8a2')](function(_0x43a48e){return _0x43a48e['category'];})['value']();_0x55ad49[_0x4986aa('0xa6a')](function(_0x682cf7){_0x3d0509[_0x682cf7]=!![];}),_0x5c0ce7(_0x3d0509);}else _0x5c0ce7({});})[_0x3deffb('0x103c')](function(_0x23e41c){_0x16aa47(_0x23e41c);});});}function _0xa0ab9e(){const _0x2a996a=a0_0xde5e;return _0x281c6f[_0x2a996a('0x1937')][_0x2a996a('0x4a9')]||_0x2a996a('0x21ce');}function _0x4ffcd3(_0x16676f){const _0x4fb03e=a0_0xde5e;_0x281c6f['localStorage'][_0x4fb03e('0x4a9')]=_0x16676f;}function _0x446241(_0x1cd451){const _0x555f72=a0_0xde5e;return _0x4ffcd3(_0x555f72('0x1803')),'/api/auth/'+_0x1cd451;}}const _0x481308=_0x354681;_0x2e20f1[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'telephones'];function _0x2e20f1(_0x31e790,_0x315a25){const _0x51ab17=_0x566993,_0x40e74f=this;function _0x416ae4(_0x55ca9a){const _0x44f84c=a0_0xde5e;_0x31e790[_0x44f84c('0x1cf4')](_0x55ca9a);}_0x40e74f[_0x51ab17('0x1b80')]=_0x315a25,_0x40e74f[_0x51ab17('0x18e2')]=_0x416ae4,_0x315a25['count']&&(_0x40e74f[_0x51ab17('0x10ad')]=_0x315a25[_0x51ab17('0x6aa')][0x0]['name']);}const _0x507de2=_0x2e20f1;_0x34f213[_0x566993('0x17bb')]=[_0x566993('0xca5'),'$q',_0x566993('0x2166'),_0x566993('0x15be'),_0x566993('0x97d')];function _0x34f213(_0x3b43c1,_0x4ace4,_0x347deb,_0x370218,_0x3db98e){let _0x502b36;return{'request':function(_0x5eb1e6){const _0x58fbf2=a0_0xde5e,_0x2b6da1=_0x347deb[_0x58fbf2('0x1d97')](_0x58fbf2('0x7c6'));return _0x5eb1e6[_0x58fbf2('0x1670')]=_0x5eb1e6['headers']||{},(![]||_0x3db98e[_0x58fbf2('0x21ba')](_0x5eb1e6[_0x58fbf2('0xd1')]))&&_0x2b6da1&&(_0x5eb1e6[_0x58fbf2('0x1670')][_0x58fbf2('0x2699')]=_0x58fbf2('0x221')+_0x2b6da1),_0x5eb1e6;},'responseError':function(_0x3526bc){const _0x5f0fb7=a0_0xde5e;switch(_0x3526bc['status']){case 0x191:_0x347deb[_0x5f0fb7('0x1a8b')]('motion.token'),(_0x502b36||(_0x502b36=_0x370218['get']('$state')))['go'](_0x5f0fb7('0xb0a'));break;case 0x194:break;default:break;}return _0x4ace4[_0x5f0fb7('0x12a4')](_0x3526bc);}};}const _0xb1673d=_0x34f213;_0x7d263e[_0x566993('0x17bb')]=[_0x566993('0x1d31')];function _0x7d263e(_0x2d9be4){const _0x2aa2b0={'safeCb':function(_0x2a2a96){const _0x279ce1=a0_0xde5e;return angular[_0x279ce1('0x1c25')](_0x2a2a96)?_0x2a2a96:angular[_0x279ce1('0x1086')];},'urlParse':function(_0x1297cc){const _0x54eeb3=a0_0xde5e,_0x491030=document['createElement']('a');return _0x491030[_0x54eeb3('0x165c')]=_0x1297cc,_0x491030[_0x54eeb3('0x4d1')]===''&&(_0x491030[_0x54eeb3('0x165c')]=_0x491030['href']),_0x491030;},'isSameOrigin':function(_0x51b277,_0x24df21){const _0x71cb92=a0_0xde5e;return _0x51b277=_0x2aa2b0['urlParse'](_0x51b277),_0x24df21=_0x24df21&&[][_0x71cb92('0x163f')](_0x24df21)||[],_0x24df21=_0x24df21[_0x71cb92('0x8a2')](_0x2aa2b0[_0x71cb92('0x2092')]),_0x24df21['push'](_0x2d9be4['location']),_0x24df21=_0x24df21[_0x71cb92('0x278d')](function(_0x4b4ad2){const _0x24a5cd=_0x71cb92,_0x472779=_0x51b277[_0x24a5cd('0xc3c')]===_0x4b4ad2['hostname'],_0x56e52f=_0x51b277[_0x24a5cd('0x375')]===_0x4b4ad2[_0x24a5cd('0x375')],_0x174fe5=_0x51b277[_0x24a5cd('0xe0d')]===_0x4b4ad2[_0x24a5cd('0xe0d')]||_0x4b4ad2[_0x24a5cd('0xe0d')]===''&&(_0x51b277[_0x24a5cd('0xe0d')]==='80'||_0x51b277[_0x24a5cd('0xe0d')]===_0x24a5cd('0x963'));return _0x472779&&_0x56e52f&&_0x174fe5;}),_0x24df21[_0x71cb92('0x543')]>=0x1;}};return _0x2aa2b0;}const _0x1cb0c7=_0x7d263e;;angular[_0x566993('0x22c4')]('app.auth',[])['config'](_0x303da4)[_0x566993('0x24cf')](_0x10d20f)[_0x566993('0x235c')]('Auth',_0x481308)[_0x566993('0x1e65')](_0x566993('0xb68'),_0x507de2)[_0x566993('0x235c')](_0x566993('0x133f'),_0xb1673d)[_0x566993('0x235c')](_0x566993('0x97d'),_0x1cb0c7);var _0x339962=_0x21a6a1(0xca2),_0x3cf12b=_0x21a6a1(0x1e94),_0x730ae7=_0x21a6a1(0x1e80),_0x27e188=_0x21a6a1(0x11ee),_0xa94c64=_0x21a6a1(0x36e),_0x233306=_0x21a6a1(0x1bdb),_0x4283c3=_0x21a6a1(0x1c17),_0x5f4601=_0x21a6a1(0x813),_0x221865=_0x21a6a1(0xdff),_0xf62cfe=_0x21a6a1(0x251),_0x563ac4=_0x21a6a1(0xdf),_0x3dcb33=_0x21a6a1(0x1299),_0x30ca8f=_0x21a6a1(0x177),_0x3bd651=_0x21a6a1(0x573);function _0x59abaf(){const _0x5b325a=_0x566993;let _0xfb91d8={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x195c2d(_0x4d5218){_0xfb91d8=angular['extend']({},_0xfb91d8,_0x4d5218);}function _0x577d2d(_0x68a1c2){if(angular['isUndefined'](_0xfb91d8[_0x68a1c2]))return![];return _0xfb91d8[_0x68a1c2];}function _0x5e2eda(_0x1b5043,_0x4c6ffa){_0xfb91d8[_0x1b5043]=_0x4c6ffa;}this[_0x5b325a('0x2a8')]=function(){const _0x5cdb22={'getConfig':_0x577d2d,'setConfig':_0x5e2eda};return _0x5cdb22;},this[_0x5b325a('0xea9')]=_0x195c2d;}const _0x5abd78=_0x59abaf;_0x4cf4ec[_0x566993('0x17bb')]=[_0x566993('0x324'),_0x566993('0x18b3'),'msScrollConfigProvider','motionConfigProvider'];function _0x4cf4ec(_0x2b3e8c,_0x5d48a5,_0x155026,_0x30035d){const _0x417d4e=_0x566993;_0x5d48a5['debugEnabled'](!![]),_0x2b3e8c[_0x417d4e('0xea9')]({'tabindex':![]}),_0x30035d[_0x417d4e('0xea9')]({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x155026[_0x417d4e('0xea9')]({'wheelPropagation':!![]});}const _0x4412a4=_0x4cf4ec;_0x599e95[_0x566993('0x17bb')]=[_0x566993('0x1f9'),_0x566993('0x2427'),_0x566993('0x23b8')];function _0x599e95(_0x3a1814,_0x93ba5f,_0x5da44a){const _0x1f4db1=_0x566993;_0x93ba5f[_0x1f4db1('0x1566')]();if(_0x5da44a[_0x1f4db1('0x1f35')]('disableMdInkRippleOnMobile')&&_0x3a1814[_0x1f4db1('0x13d3')]()){const _0x2df251=angular[_0x1f4db1('0xb6d')](_0x1f4db1('0x1a5'));_0x2df251[_0x1f4db1('0x152f')](_0x1f4db1('0x1cc7'),!![]);}_0x3a1814[_0x1f4db1('0x13d3')]()&&angular[_0x1f4db1('0xb6d')](_0x1f4db1('0x267e'))['addClass'](_0x1f4db1('0x5b'));const _0xac76ae=_0x3a1814['detectBrowser']();if(_0xac76ae){const _0x37aecf=_0xac76ae[_0x1f4db1('0x244e')]+'\x20'+_0xac76ae['version']+'\x20'+_0xac76ae['os'];angular[_0x1f4db1('0xb6d')]('html')['addClass'](_0x37aecf);}}const _0x2a8a33=_0x599e95;_0x92befc[_0x566993('0x17bb')]=[_0x566993('0x1d31'),_0x566993('0x1fe5'),'Auth',_0x566993('0xd2d'),_0x566993('0x2340'),_0x566993('0x168e')];function _0x92befc(_0x1ad88a,_0x12a88c,_0xacdb5c,_0x30458a,_0x2a2fc8,_0x581816){const _0x39b4c9=_0x566993,_0x5c7a7b=this;_0x5c7a7b['currentUser']=_0xacdb5c[_0x39b4c9('0x14d4')](),_0x5c7a7b[_0x39b4c9('0x17cd')]={'matchType':_0x39b4c9('0x5ce'),'conditions':[],'fields':_0x2a2fc8},_0x5c7a7b['toolbarColor']=_0x30458a,_0x5c7a7b[_0x39b4c9('0x2535')]=_0x33ba93,_0x5c7a7b[_0x39b4c9('0x2213')]=_0x4090d1,_0x5c7a7b[_0x39b4c9('0x626')]=_0x44979e,_0x5c7a7b[_0x39b4c9('0x2725')]=_0x528133,_0x5c7a7b[_0x39b4c9('0x2151')]=_0x15442a;function _0x33ba93(){const _0x4876a5=_0x39b4c9;if(_0x581816){const _0x3c8833=_0xce682();typeof _0x3c8833[_0x4876a5('0x2706')]!==_0x4876a5('0x6e5')&&(_0x5c7a7b[_0x4876a5('0x17cd')]=_0x3c8d8a()[_0x4876a5('0x9ef')](_0x5c7a7b['searchOptions'],_0x3c8833[_0x4876a5('0x2706')]));}}function _0x4090d1(){const _0x157a18=_0x39b4c9,_0x334695=_0x3c8d8a()[_0x157a18('0x278d')](_0x5c7a7b['searchOptions'][_0x157a18('0x23c3')],[_0x157a18('0x6fc'),![]]);let _0x51f835='['+_0x5c7a7b['searchOptions']['matchType']+']';const _0x23c559=[];let _0x564b7f='';_0x3c8d8a()(_0x334695)[_0x157a18('0x470')](_0x157a18('0x10ad'))[_0x157a18('0xa6a')](function(_0x4e2e47){const _0x13f54c=_0x157a18,_0x2d3755=_0x4e2e47[0x0],_0x2916a9=_0x4e2e47[_0x13f54c('0x543')]>0x1?!![]:![],_0x41fdbf=_0x2d3755[_0x13f54c('0xc49')][_0x13f54c('0x260d')];if(_0x2916a9){const _0xef36d3=_0x3c8d8a()(_0x4e2e47)['groupBy'](function(_0x531d03){const _0x2e7003=_0x13f54c;return _0x531d03[_0x2e7003('0xc49')][_0x2e7003('0x16')];})[_0x13f54c('0xa88')](function(_0x48d9e7){const _0x2d40a7=_0x13f54c;return _0x3c8d8a()[_0x2d40a7('0x21ca')](_0x48d9e7)[_0x2d40a7('0x8a2')](function(_0x48de7c){const _0x3747f2=_0x2d40a7;return _0x48de7c[_0x3747f2('0xc49')][_0x3747f2('0xa7b')];})[_0x2d40a7('0x618')]()[_0x2d40a7('0xa7b')]();})[_0x13f54c('0xa7b')](),_0x412e80=[];_0x3c8d8a()[_0x13f54c('0x1d3e')](_0xef36d3)['forEach'](function(_0x1506e5){const _0x549c16=_0x13f54c,_0x26b276=_0xef36d3[_0x1506e5];let _0x382c36=_0x1506e5;_0x3c8d8a()[_0x549c16('0x2814')](['$between',_0x549c16('0xcf7'),'$notIn'],_0x1506e5)?_0x382c36+='['+_0x26b276+']':_0x26b276[_0x549c16('0xa6a')](function(_0x271422){_0x382c36+='['+_0x271422+']';}),_0x412e80[_0x549c16('0x18bb')](_0x382c36);}),_0x564b7f+=_0x41fdbf+':='+_0x412e80['join'](':=');}else _0x564b7f=_0x41fdbf+':='+_0x2d3755[_0x13f54c('0xc49')][_0x13f54c('0x16')]+'['+_0x2d3755[_0x13f54c('0xc49')][_0x13f54c('0xa7b')]+']';_0x23c559['push'](_0x564b7f);}),_0x51f835+=_0x23c559[_0x157a18('0x2259')]('||'),_0x4c644a(),_0x12a88c[_0x157a18('0x1cf4')](_0x51f835);}function _0x44979e(){const _0x683b06=_0x39b4c9;_0x5c7a7b[_0x683b06('0x17cd')][_0x683b06('0x23c3')]=[],_0x75573e();}function _0x528133(){const _0x109e0f=_0x39b4c9;_0x4c644a(),_0x12a88c[_0x109e0f('0x1cf4')]();}function _0x15442a(){const _0x2a3ba2=_0x39b4c9;_0x12a88c[_0x2a3ba2('0x1cf4')](![]);}function _0xce682(){const _0x5081ce=_0x39b4c9,_0x54328d=_0x1ad88a['localStorage'][_0x5081ce('0x1949')](_0x5081ce('0x1480')+_0x581816+':'+_0x5c7a7b[_0x5081ce('0x155f')]['id']);return _0x54328d?JSON[_0x5081ce('0x1d5e')](_0x54328d):{};}function _0x46a838(_0x2fc75c){const _0x2ffcdb=_0x39b4c9;_0x1ad88a[_0x2ffcdb('0x1937')][_0x2ffcdb('0x7e')](_0x2ffcdb('0x1480')+_0x581816+':'+_0x5c7a7b[_0x2ffcdb('0x155f')]['id'],JSON[_0x2ffcdb('0x100b')](_0x2fc75c));}function _0x4c644a(){const _0x57c807=_0x39b4c9;if(_0x581816){const _0x4d1e1d=_0xce682();_0x4d1e1d[_0x57c807('0x2706')]=_0x3c8d8a()[_0x57c807('0x2797')](_0x5c7a7b['searchOptions'],'fields'),_0x46a838(_0x4d1e1d);}}function _0x75573e(){const _0x4f1522=_0x39b4c9;if(_0x581816){const _0x165a28=_0xce682();delete _0x165a28[_0x4f1522('0x2706')];if(_0x165a28[_0x4f1522('0xc49')])delete _0x165a28[_0x4f1522('0xc49')][_0x4f1522('0x23e7')];_0x46a838(_0x165a28);}}}const _0x16e715=_0x92befc;_0x5e2fd0[_0x566993('0x17bb')]=[_0x566993('0x24b5')];function _0x5e2fd0(_0x245f68){return{'restrict':'A','link':function(_0x193ce9,_0x1d8d37,_0x1588e2){const _0x1f586d=a0_0xde5e;_0x193ce9[_0x1f586d('0x1bdb')](_0x1588e2[_0x1f586d('0x37')],function(_0x344e35){_0x245f68(function(){const _0x573348=a0_0xde5e;_0x344e35?_0x1d8d37[0x0][_0x573348('0x6ea')]():_0x1d8d37[0x0][_0x573348('0x1d8b')]();});});}};}const _0x452893=_0x5e2fd0;var _0x43bfb4=_0x21a6a1(0x1433),_0x4b93b4=_0x21a6a1['n'](_0x43bfb4);_0x2e0ec5['$inject']=[_0x566993('0x24b5'),'$q','$interpolate'];function _0x2e0ec5(_0x20792c,_0x4a6b98,_0x1f221c){return{'restrict':'E','compile':function(_0x2edbe2,_0x5c67f3){const _0x24e921=a0_0xde5e;let _0x57c7ab;return!_0x5c67f3[_0x24e921('0x20c6')]&&(_0x57c7ab=_0x2edbe2['html'](),_0x2edbe2[_0x24e921('0x728')]()),function(_0x368c27,_0x3ce161,_0x1a330c){const _0x5df1d2=_0x24e921;_0x1a330c[_0x5df1d2('0x20c6')]&&(_0x57c7ab=_0x368c27[_0x5df1d2('0x2ad')](_0x1a330c[_0x5df1d2('0x20c6')]));const _0x3b9c4b=_0x368c27[_0x5df1d2('0x2ad')](_0x1a330c[_0x5df1d2('0xcef')]);_0x4a6b98['when'](_0x57c7ab)[_0x5df1d2('0x173b')](function(_0xa2cbb0){const _0x248859=_0x5df1d2;if(_0xa2cbb0){_0x3b9c4b&&(_0xa2cbb0=_0x1f221c(_0xa2cbb0)(_0x368c27));const _0x3ba185=angular[_0x248859('0xb6d')]('
');_0x3ce161['append'](_0x3ba185),_0x20792c(function(){_0x1e947b(_0xa2cbb0,_0x3ba185);},0x22,![]);}});function _0x1e947b(_0x575ef8,_0x23ddae){const _0x3b198f=_0x5df1d2,_0x467c96=_0x23ddae['find'](_0x3b198f('0x20c6'));let _0x4108ba=_0x575ef8[_0x3b198f('0x43a')]('\x0a');_0x4108ba=_0x4108ba[_0x3b198f('0x278d')](function(_0x11ee92){return _0x11ee92['trim']()['length'];});const _0xcd3274=_0x4108ba[0x0][_0x3b198f('0x119a')](/^\s*/)[0x0],_0x1b1150=new RegExp('^'+_0xcd3274);_0x4108ba=_0x4108ba[_0x3b198f('0x8a2')](function(_0x89d457){const _0x1371a0=_0x3b198f;return _0x89d457[_0x1371a0('0x166c')](_0x1b1150,'')['replace'](/\s+$/,'');});const _0xa14208=_0x4b93b4()[_0x3b198f('0x10b5')](_0x1a330c[_0x3b198f('0x604')]||_0x1a330c[_0x3b198f('0x1460')],_0x4108ba[_0x3b198f('0x2259')]('\x0a'),!![]);_0xa14208['value']=_0xa14208[_0x3b198f('0xa7b')][_0x3b198f('0x166c')](/=""<\/span>/gi,'')[_0x3b198f('0x166c')]('','')['replace'](_0x3b198f('0x18eb'),''),_0x467c96[_0x3b198f('0xe53')](_0xa14208[_0x3b198f('0xa7b')])[_0x3b198f('0x88c')](_0x3b198f('0x10b5'));}};}};}const _0x55daea=_0x2e0ec5,_0x44e6ef=_0x21a6a1['p']+_0x566993('0xf6e');_0x54e5df['$inject']=[_0x566993('0x638'),'$q',_0x566993('0xbd4'),'toasty'];function _0xeb1491(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x54e5df,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x44e6ef};}function _0x54e5df(_0x2db48c,_0x17444c,_0x423085,_0x1c0abb){const _0x28a1c9=_0x566993,_0x47dcf0=this;_0x47dcf0[_0x28a1c9('0x1cbc')]=[{'type':_0x28a1c9('0xc0c'),'symbol':'=','translate':'EQUALS','excludeFrom':[_0x28a1c9('0x1c68')]},{'type':'$ne','symbol':'≠','translate':_0x28a1c9('0x991'),'excludeFrom':[_0x28a1c9('0x1c68')]},{'type':_0x28a1c9('0xcf7'),'symbol':'∈','translate':_0x28a1c9('0x210f'),'applyTo':[_0x28a1c9('0x1c68')]},{'type':_0x28a1c9('0x2232'),'symbol':'∉','translate':_0x28a1c9('0x1bdf'),'applyTo':[_0x28a1c9('0x1c68')]},{'type':_0x28a1c9('0x2694'),'symbol':'⊃','translate':_0x28a1c9('0x1837'),'applyTo':['text']},{'type':'$startsWith','symbol':_0x28a1c9('0x18fe'),'translate':_0x28a1c9('0xf88'),'applyTo':[_0x28a1c9('0x86e')]},{'type':_0x28a1c9('0x1fcb'),'symbol':_0x28a1c9('0x69e'),'translate':_0x28a1c9('0x210a'),'applyTo':[_0x28a1c9('0x86e')]},{'type':_0x28a1c9('0xeef'),'symbol':'<','translate':_0x28a1c9('0x1a6e'),'applyTo':[_0x28a1c9('0x22b6'),_0x28a1c9('0x1d81')]},{'type':_0x28a1c9('0x145'),'symbol':'>','translate':'IS_GREATER_THAN','applyTo':[_0x28a1c9('0x22b6'),_0x28a1c9('0x1d81')]},{'type':'$lte','symbol':'≤','translate':_0x28a1c9('0x12cf'),'applyTo':['date',_0x28a1c9('0x1d81')]},{'type':_0x28a1c9('0x1b41'),'symbol':'≥','translate':_0x28a1c9('0xe0'),'applyTo':['date',_0x28a1c9('0x1d81')]},{'type':_0x28a1c9('0x87a'),'symbol':'≬','translate':_0x28a1c9('0xc1a'),'applyTo':['date','number']}],_0x47dcf0[_0x28a1c9('0x1058')]=_0x47dcf0[_0x28a1c9('0x1cbc')],_0x47dcf0['addCondition']=_0x3846ee,_0x47dcf0[_0x28a1c9('0x71d')]=_0xc4d622,_0x47dcf0['updateCondition']=_0x3707cd,_0x47dcf0['cancelUpdateCondition']=_0xe60ff,_0x47dcf0['setConditionStatus']=_0x31972a,_0x47dcf0[_0x28a1c9('0x1d46')]=_0x2e6806,_0x47dcf0['getValues']=_0x3e524a,_0x47dcf0['onFieldChange']=_0x1fcc64,_0x47dcf0[_0x28a1c9('0x238d')]=_0x553910,_0x47dcf0[_0x28a1c9('0x2271')]=_0x90fdc,_0x47dcf0['checkRange']=_0x1bfd55,_0x47dcf0[_0x28a1c9('0xcea')]=_0x18a152;function _0x1fcc64(){const _0x1243cf=_0x28a1c9;_0x47dcf0[_0x1243cf('0xa7b')]=undefined,_0x47dcf0[_0x1243cf('0x2375')]=undefined,_0x47dcf0[_0x1243cf('0x7b7')]=undefined,_0x47dcf0['isValidCondition']=![],_0x3df54c(),_0x47dcf0[_0x1243cf('0x1af7')]=_0x47dcf0[_0x1243cf('0x1cbc')][_0x1243cf('0x543')]===0x1?!![]:![];if(!_0x47dcf0['autoSelectOperator'])_0x47dcf0[_0x1243cf('0x1af1')]=undefined;}function _0x553910(_0x1c2ab1){const _0x284f63=_0x28a1c9;_0x47dcf0[_0x284f63('0x1742')]=!![],_0x47dcf0[_0x284f63('0x1af1')]&&(_0x1c2ab1?_0x1c2ab1[_0x284f63('0x1db')]?_0x3c8d8a()[_0x284f63('0x1b31')](_0x47dcf0[_0x284f63('0x1af1')]['applyTo'],_0x1c2ab1[_0x284f63('0x1db')])[_0x284f63('0x543')]>0x0&&(_0x47dcf0[_0x284f63('0xa7b')]=null):_0x47dcf0['selectedOperator']['applyTo']&&(_0x47dcf0[_0x284f63('0xa7b')]=null):_0x47dcf0[_0x284f63('0xa7b')]=null,_0x47dcf0['selectedOperator'][_0x284f63('0x1810')]!=_0x284f63('0x27d3')&&(_0x47dcf0['endRangeValue']=null),_0x47dcf0[_0x284f63('0x20c')][_0x284f63('0x2010')]&&!_0x3c8d8a()['isEmpty'](_0x47dcf0[_0x284f63('0x20c')][_0x284f63('0x2010')][_0x284f63('0x1055')])&&(_0x47dcf0[_0x284f63('0x1af1')][_0x284f63('0x153d')]=_0x3c8d8a()[_0x284f63('0x1ec')](_0x47dcf0[_0x284f63('0x20c')]['options'][_0x284f63('0x1055')],function(_0x2a1246){const _0x2c047d=_0x284f63;return _0x2a1246===_0x47dcf0[_0x2c047d('0x1af1')][_0x2c047d('0x1810')];}))),_0x31c81b();}function _0x90fdc(){const _0x13a59b=_0x28a1c9;if(_0x47dcf0['selectedOperator']&&_0x47dcf0['selectedOperator'][_0x13a59b('0x1810')]===_0x13a59b('0x87a')){if(_0x47dcf0[_0x13a59b('0x20c')][_0x13a59b('0x1810')]===_0x13a59b('0x1d81'))_0x1bfd55();else _0x47dcf0[_0x13a59b('0x20c')][_0x13a59b('0x1810')]===_0x13a59b('0x22b6')&&(_0x47dcf0[_0x13a59b('0x634')]=_0x156524()(_0x47dcf0[_0x13a59b('0xa7b')])[_0x13a59b('0x623')](0x1,_0x13a59b('0x48d')),_0x31c81b());}else _0x31c81b();}function _0x3df54c(){const _0x38536c=_0x28a1c9,_0x30b50b=_0x47dcf0[_0x38536c('0x20c')][_0x38536c('0x2010')]&&!_0x3c8d8a()['isEmpty'](_0x47dcf0[_0x38536c('0x20c')]['options'][_0x38536c('0x1055')]),_0x2e1828=_0x47dcf0[_0x38536c('0x20c')][_0x38536c('0x2010')]&&!_0x3c8d8a()['isEmpty'](_0x47dcf0[_0x38536c('0x20c')][_0x38536c('0x2010')]['excludedOperators']);_0x47dcf0[_0x38536c('0x1cbc')]=_0x3c8d8a()[_0x38536c('0x278d')](_0x47dcf0['operators'],function(_0x3c7d6f){const _0x23a555=_0x38536c,_0x3c62ac=!_0x3c7d6f['applyTo']||_0x3c8d8a()[_0x23a555('0x2814')](_0x3c7d6f[_0x23a555('0x1db')],_0x47dcf0[_0x23a555('0x20c')]['type']);_0x3c7d6f[_0x23a555('0x153d')]=_0x30b50b&&_0x3c8d8a()[_0x23a555('0x1ec')](_0x47dcf0[_0x23a555('0x20c')]['options']['extraOperators'],function(_0x42b418){const _0xf8adc2=_0x23a555;return _0x42b418===_0x3c7d6f[_0xf8adc2('0x1810')];});const _0x3cb770=_0x3c8d8a()['includes'](_0x3c7d6f[_0x23a555('0xefe')],_0x47dcf0[_0x23a555('0x20c')][_0x23a555('0x1810')])||_0x2e1828&&_0x3c8d8a()['includes'](_0x47dcf0['selectedField'][_0x23a555('0x2010')]['excludedOperators'],_0x3c7d6f[_0x23a555('0x1810')]);if((_0x3c62ac||_0x3c7d6f['isExtra'])&&!_0x3cb770)return _0x3c7d6f;});}function _0x3e524a(){const _0x35850c=_0x28a1c9,_0x346111=angular[_0x35850c('0x2e3')](_0x47dcf0[_0x35850c('0x20c')]['options']['route']);if(_0x47dcf0['selectedField']['type']===_0x35850c('0xe92'))for(let _0x3e5d53=0x0;_0x3e5d53Number(_0x47dcf0['value'])?!![]:![]:_0x47dcf0[_0x2fc988('0x1742')]=!![];else _0x47dcf0[_0x2fc988('0x20c')][_0x2fc988('0x1810')]==='date'&&(_0x47dcf0[_0x2fc988('0x1cc2')]=_0x156524()(_0x47dcf0[_0x2fc988('0x2375')])[_0x2fc988('0x1931')](0x1,'day'),_0x47dcf0['isValidRange']=!![]);_0x31c81b();}function _0x3846ee(){const _0x5c110a=_0x28a1c9,_0x4b01ed=_0x12570b();_0x47dcf0[_0x5c110a('0x2010')][_0x5c110a('0x23c3')]['push'](_0x4b01ed),_0x15fe05();}function _0xc4d622(_0x143986){const _0x1e7c61=_0x28a1c9;_0x47dcf0['pendingCondition']=_0x143986,_0x47dcf0[_0x1e7c61('0x1682')][_0x1e7c61('0x1fa9')]='md-amber-200-bg',_0x47dcf0[_0x1e7c61('0x20c')]=_0x3c8d8a()[_0x1e7c61('0x18ab')](_0x47dcf0[_0x1e7c61('0x2010')]['fields'],['name',_0x47dcf0[_0x1e7c61('0x1682')]['name']]),_0x3df54c(),_0x47dcf0[_0x1e7c61('0x1af1')]=_0x3c8d8a()[_0x1e7c61('0x18ab')](_0x47dcf0['availableOperators'],['type',_0x47dcf0[_0x1e7c61('0x1682')][_0x1e7c61('0xc49')][_0x1e7c61('0x16')]]),_0x47dcf0[_0x1e7c61('0x20c')][_0x1e7c61('0x1810')]===_0x1e7c61('0x22b6')&&typeof _0x47dcf0[_0x1e7c61('0x1682')][_0x1e7c61('0xa7b')]===_0x1e7c61('0x1533')?(_0x47dcf0[_0x1e7c61('0xa7b')]=new Date(_0x47dcf0[_0x1e7c61('0x1682')]['value']),_0x47dcf0[_0x1e7c61('0x634')]=_0x156524()(_0x47dcf0['value'])['add'](0x1,_0x1e7c61('0x48d')),_0x47dcf0[_0x1e7c61('0x2375')]=_0x47dcf0[_0x1e7c61('0x1682')][_0x1e7c61('0x1c24')]?new Date(_0x47dcf0[_0x1e7c61('0x1682')][_0x1e7c61('0x1c24')]):undefined):(_0x47dcf0[_0x1e7c61('0xa7b')]=_0x47dcf0[_0x1e7c61('0x1682')][_0x1e7c61('0xa7b')],_0x47dcf0['endRangeValue']=_0x47dcf0[_0x1e7c61('0x1682')][_0x1e7c61('0x1c24')]),_0x47dcf0[_0x1e7c61('0x1742')]=!![],_0x47dcf0[_0x1e7c61('0x23c9')]=!![];}function _0x3707cd(){const _0x470c05=_0x28a1c9,_0x1b2e06=_0x12570b(),_0x5b21fe=_0x3c8d8a()[_0x470c05('0x26c3')](_0x47dcf0['options'][_0x470c05('0x23c3')],_0x470c05('0x1fa9'));_0x47dcf0[_0x470c05('0x2010')][_0x470c05('0x23c3')][_0x470c05('0x553')](_0x5b21fe,0x1,_0x1b2e06),_0x15fe05(),_0x47dcf0[_0x470c05('0x1682')][_0x470c05('0x1fa9')]=null,_0x47dcf0['pendingCondition']=undefined;}function _0xe60ff(){const _0x437032=_0x28a1c9;_0x47dcf0['pendingCondition']['style']=null,_0x47dcf0[_0x437032('0x1682')]=undefined;}function _0x31972a(_0xfb4fe4){const _0x25f3d2=_0x28a1c9;_0xfb4fe4['style']=_0xfb4fe4[_0x25f3d2('0x6fc')]?undefined:_0x25f3d2('0x25f0'),_0xfb4fe4[_0x25f3d2('0x6fc')]=!_0xfb4fe4[_0x25f3d2('0x6fc')];}function _0x2e6806(){const _0x205343=_0x28a1c9;if(_0x3c8d8a()[_0x205343('0x1a56')](_0x47dcf0[_0x205343('0x2010')][_0x205343('0x23c3')]))_0x47dcf0[_0x205343('0x27e1')]();}function _0x18a152(){const _0xe9a8b=_0x28a1c9;_0x47dcf0[_0xe9a8b('0x1682')]?_0x3707cd():_0x3846ee();}function _0x12570b(){const _0x514b80=_0x28a1c9;return{'name':_0x47dcf0['selectedField'][_0x514b80('0x10ad')],'operator':_0x2db48c[_0x514b80('0x1467')](_0x514b80('0x1178')+_0x47dcf0['selectedOperator'][_0x514b80('0xfda')]),'value':_0x47dcf0[_0x514b80('0xa7b')],'endValue':_0x47dcf0[_0x514b80('0x2375')],'displayValue':_0x123ae1(_0x47dcf0['value']),'displayEndValue':_0x123ae1(_0x47dcf0['endRangeValue']),'query':{'column':_0x47dcf0[_0x514b80('0x20c')]['column'],'operator':_0x47dcf0[_0x514b80('0x1af1')]['type'],'value':_0x5492f9()},'disabled':![]};}function _0x123ae1(_0x18a13b){const _0x42c351=_0x28a1c9;let _0x293dc4;if(!_0x18a13b)return undefined;switch(_0x47dcf0['selectedField'][_0x42c351('0x1810')]){case _0x42c351('0x22b6'):_0x293dc4=_0x156524()(_0x18a13b)[_0x42c351('0xddc')]('YYYY-MM-DD');break;case _0x42c351('0x1c68'):{const _0x9e8ac8=_0x3c8d8a()[_0x42c351('0x8a2')](_0x18a13b,function(_0x2274c1){const _0x2eea7c=_0x42c351;return _0x2274c1[_0x2eea7c('0x10ad')];});_0x293dc4=_0x47dcf0[_0x42c351('0x1af1')][_0x42c351('0x1810')]===_0x42c351('0xc0c')?_0x9e8ac8['join'](_0x42c351('0x1686')):_0x9e8ac8[_0x42c351('0x2259')](_0x42c351('0x1eb3'));}break;case _0x42c351('0xc65'):_0x293dc4=_0x18a13b[_0x42c351('0x10ad')];break;case _0x42c351('0xe92'):_0x293dc4=_0x47dcf0[_0x42c351('0x1af1')][_0x42c351('0x153d')]?_0x18a13b:_0x18a13b[_0x42c351('0x188d')];break;default:_0x293dc4=_0x18a13b;break;}return _0x293dc4;}function _0x5492f9(){const _0x5d67c3=_0x28a1c9,_0x464af7=_0x47dcf0['value'],_0x2a9c5c=_0x47dcf0[_0x5d67c3('0x2375')];let _0x35c929;switch(_0x47dcf0['selectedField'][_0x5d67c3('0x1810')]){case _0x5d67c3('0x22b6'):{const _0xc1001=_0x156524()(_0x464af7)[_0x5d67c3('0xaf5')](0x0,!![])[_0x5d67c3('0xddc')]('YYYY-MM-DD');if(_0x47dcf0[_0x5d67c3('0x1af1')][_0x5d67c3('0x1810')]==='$between'){const _0x45e20e=_0x156524()(_0x2a9c5c)['utcOffset'](0x0,!![])[_0x5d67c3('0xddc')]('YYYY-MM-DD');_0x35c929=[_0xc1001,_0x45e20e];}else _0x35c929=_0xc1001;}break;case _0x5d67c3('0x1d81'):_0x35c929=_0x47dcf0[_0x5d67c3('0x1af1')][_0x5d67c3('0x1810')]===_0x5d67c3('0x87a')?[_0x464af7,_0x2a9c5c]:_0x464af7;break;case _0x5d67c3('0x1c68'):{const _0xb1710f=_0x47dcf0[_0x5d67c3('0x20c')][_0x5d67c3('0x2010')][_0x5d67c3('0x81d')]||'id';_0x35c929=_0x3c8d8a()['map'](_0x464af7,_0xb1710f);}break;case _0x5d67c3('0xc65'):_0x35c929=_0x464af7['id'];break;case _0x5d67c3('0xe92'):_0x35c929=_0x47dcf0[_0x5d67c3('0x1af1')][_0x5d67c3('0x153d')]?_0x464af7:_0x464af7['id'];break;default:_0x35c929=_0x464af7;break;}return _0x35c929;}function _0x15fe05(){const _0x45a36c=_0x28a1c9;_0x47dcf0['value']=null,_0x47dcf0[_0x45a36c('0x2375')]=null,_0x47dcf0['minDateRange']=null,_0x47dcf0[_0x45a36c('0x1cc2')]=null,_0x47dcf0[_0x45a36c('0x23c9')]=![];}}const _0xd81912=_0xeb1491;function _0x3d7db9(){const _0x1fe8aa=_0x566993;return{'restrict':'E','scope':{'templatePath':_0x1fe8aa('0xe2d'),'card':'=ngModel','vm':_0x1fe8aa('0x192a')},'template':_0x1fe8aa('0x1149'),'compile':function(_0x1d7299){const _0x515879=_0x1fe8aa;return _0x1d7299[_0x515879('0x88c')](_0x515879('0x127b')),function _0x5e6d78(_0x5e8b8a,_0x4f8a48){const _0x28871b=_0x515879;function _0xe3a579(){const _0x1eba97=a0_0xde5e;_0x5e8b8a[_0x1eba97('0x1d12')](_0x1eba97('0x397'),_0x4f8a48);}_0x5e8b8a[_0x28871b('0x22e3')]=_0xe3a579;};}};}const _0x16fab5=_0x3d7db9;;function _0x4b95a6(){return{'restrict':'A','link':function(_0x34cf2a,_0x475f43,_0x5d433e){const _0xf71325=a0_0xde5e;_0x5d433e[_0xf71325('0x756')]('msChipColor',function(_0x2d74d2){const _0x303f8c=_0xf71325,_0x3ae29d=_0x475f43[_0x303f8c('0x941')]()[_0x303f8c('0x941')]();!_0x3ae29d['hasClass'](_0x303f8c('0x1b05'))&&_0x3ae29d[_0x303f8c('0x88c')](_0x303f8c('0x1b05'));if(!_0x3c8d8a()['isEmpty'](_0x2d74d2))_0x3ae29d[_0x303f8c('0x88c')](_0x2d74d2);else{const _0x10d26a=_0x3ae29d[0x0][_0x303f8c('0x215d')][_0x303f8c('0x43a')]('\x20'),_0x1760c6=_0x10d26a['indexOf'](_0x303f8c('0x1452'));_0x10d26a[_0x303f8c('0x543')]=_0x1760c6+0x1,_0x3ae29d[0x0][_0x303f8c('0x215d')]=_0x10d26a[_0x303f8c('0x2259')]('\x20');}});}};}const _0x16d004=_0x4b95a6,_0x41b44d=_0x21a6a1['p']+'src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call.html',_0x5933cc=_0x21a6a1['p']+_0x566993('0x161d');;function _0x450a41(){const _0x326627=_0x566993;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':[_0x326627('0x66f'),_0x326627('0xca5'),'$http','$translate',_0x326627('0x1b82'),'$mdDialog',_0x326627('0x1600'),'toasty',_0x326627('0xbd4'),function(_0x501c7c,_0x54ca08,_0x35e705,_0x1ac0e5,_0x2859d1,_0x23f32e,_0xd932fe,_0x1675a8,_0x140d96){const _0x534a32=_0x326627;_0x501c7c[_0x534a32('0x155f')]=_0xd932fe['getCurrentUser'](),_0x501c7c[_0x534a32('0x606')]=function(){const _0xec79f6=_0x534a32;return _0x501c7c['target']&&_0x501c7c[_0xec79f6('0x235')][_0xec79f6('0x2087')]('@')<0x0&&_0x501c7c[_0xec79f6('0x235')]!=_0x501c7c[_0xec79f6('0x155f')][_0xec79f6('0x138c')]&&_0x501c7c[_0xec79f6('0x235')]!=_0x501c7c['currentUser'][_0xec79f6('0x10ad')]&&(_0x501c7c[_0xec79f6('0x155f')][_0xec79f6('0x18b')]==0x0&&_0x501c7c[_0xec79f6('0x155f')][_0xec79f6('0x25be')]||_0x501c7c[_0xec79f6('0x155f')][_0xec79f6('0x18b')]==0x2&&_0x501c7c['license'][_0xec79f6('0x5c8')])&&!_0x501c7c[_0xec79f6('0x6fc')];};function _0x30f61d(_0x27a414){const _0x357f91=_0x534a32;return _0x140d96[_0x357f91('0x166f')]['getVoicePrefixes']({'id':_0x501c7c[_0x357f91('0x155f')]['id']})['$promise'][_0x357f91('0x173b')](function(_0x1d6464){const _0x1f7b14=_0x357f91;if(_0x1d6464[_0x1f7b14('0x1a2f')])return _0x23f32e['show']({'controller':'PrefixDialogController','controllerAs':'vm','templateUrl':_0x5933cc,'parent':angular['element'](_0x2859d1['body']),'clickOutsideToClose':!![],'locals':{'prefixes':_0x1d6464,'required':_0x501c7c['currentUser'][_0x1f7b14('0x1d90')]}});})[_0x357f91('0x173b')](function(_0xa23219){const _0x140ad8=_0x357f91;if(!_0x501c7c[_0x140ad8('0x155f')]['phoneBarPrefixRequired']){if(_0xa23219&&_0xa23219!==-0x1)_0x562e2c(_0xa23219+_0x27a414);else!_0xa23219&&_0x562e2c(_0x27a414);}else _0xa23219&&_0xa23219!==-0x1&&_0x562e2c(_0xa23219+_0x27a414);});}function _0x562e2c(_0x572a76){const _0x1cc5b6=_0x534a32;switch(_0x501c7c[_0x1cc5b6('0x155f')][_0x1cc5b6('0x18b')]){case 0x0:return _0x18b5c8(_0x1cc5b6('0x23eb')+(_0x501c7c['currentUser'][_0x1cc5b6('0x2520')]||'9888')+'/api/originate/'+_0x7fba33(_0x572a76));case 0x2:return _0x54ca08[_0x1cc5b6('0x21e8')](_0x1cc5b6('0x21a5'),{'target':_0x7fba33(_0x572a76)});default:break;}}_0x501c7c['call']=function(_0x1cf1f7){const _0x1d0945=_0x534a32;return _0x501c7c[_0x1d0945('0x155f')][_0x1d0945('0x18b')]!==0x2?_0x30f61d(_0x1cf1f7):_0x562e2c(_0x1cf1f7);},_0x501c7c[_0x534a32('0x617')]=function(_0x4ab685){const _0x437200=_0x534a32;switch(_0x501c7c[_0x437200('0x155f')][_0x437200('0x18b')]){case 0x0:return _0x18b5c8(_0x437200('0x23eb')+(_0x501c7c[_0x437200('0x155f')][_0x437200('0x2520')]||_0x437200('0x1549'))+'/api/transfer?number='+_0x7fba33(_0x4ab685));case 0x2:_0x54ca08[_0x437200('0x21e8')](_0x437200('0x2455'),{'target':_0x7fba33(_0x4ab685)});break;default:break;}};function _0x7fba33(_0x49f971){const _0x4513b4=_0x534a32;return!_0x3c8d8a()[_0x4513b4('0x7d5')](_0x49f971)?_0x49f971[_0x4513b4('0x166c')](/[^\w.+#*-]+/g,''):'';}function _0x18b5c8(_0x3699da){const _0x45f039=_0x534a32;return _0x35e705[_0x45f039('0x1d97')](_0x3699da)['success'](function(){const _0x1c63e1=_0x45f039;_0x1675a8[_0x1c63e1('0xdfe')]({'title':_0x1c63e1('0x157d'),'msg':_0x1c63e1('0x246d')});})[_0x45f039('0x15aa')](function(){const _0x21299d=_0x45f039;_0x1675a8[_0x21299d('0x15aa')]({'title':_0x21299d('0x6b0'),'msg':_0x1ac0e5[_0x21299d('0x1467')]('CONTACTMANAGER.ERRORS.PHONEBAR_API')});});}}],'templateUrl':_0x41b44d};}const _0xd14975=_0x450a41;_0x3356b2['$inject']=[_0x566993('0x169b')];function _0x22de97(){const _0x55c34c=_0x566993;_0x403992['$inject']=[_0x55c34c('0x1dde')];const _0xd0904d=this;let _0x51fbf8={'formatter':function(_0x2c777a){if(!_0x2c777a)return'';return _0x2c777a===''?_0x2c777a:new Date(_0x2c777a);},'parser':function(_0x255ef3){const _0x24726a=_0x55c34c;if(!_0x255ef3)return'';return _0x156524()(_0x255ef3)[_0x24726a('0x623')](_0x156524()(_0x255ef3)[_0x24726a('0xaf5')](),'m')[_0x24726a('0x1df0')]();}};function _0x403992(_0x1af4fb){const _0x2317f2=_0x55c34c;_0x51fbf8=angular[_0x2317f2('0x2d3')]({},_0x51fbf8,_0x1af4fb);}_0xd0904d[_0x55c34c('0xea9')]=_0x403992,_0xd0904d['$get']=function(){return _0x51fbf8;};}function _0x3356b2(_0x4cea9c){const _0x4810f8=_0x566993;return{'require':_0x4810f8('0x147e'),'priority':0x1,'link':function(_0x4231ec,_0x5953e8,_0x39dd85,_0xe22b46){const _0x284188=_0x4810f8;_0xe22b46[_0x284188('0x22a5')]['push'](_0x4cea9c[_0x284188('0x226d')]),_0xe22b46[_0x284188('0x2839')][_0x284188('0x18bb')](_0x4cea9c[_0x284188('0x10d4')]);}};}_0xd3450e[_0x566993('0x17bb')]=[_0x566993('0xbd4')];function _0xd3450e(_0x31ac1c){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function(_0x149f93,_0x3649df){const _0x44a55b=a0_0xde5e;let _0x4cb257=![];const _0x2f63b1={};_0x2f63b1['id']=_0x149f93['id'];!_0x3c8d8a()[_0x44a55b('0x7d5')](_0x149f93['path'])&&(_0x2f63b1[_0x44a55b('0x1da1')]=_0x149f93[_0x44a55b('0x1da1')]);const _0x206c68=document[_0x44a55b('0x1258')](_0x149f93[_0x44a55b('0xb6d')]);_0x206c68[_0x44a55b('0x11c3')](_0x44a55b('0x2123'),_0x44a55b('0x2741')),_0x206c68[_0x44a55b('0x11c3')]('controls',_0x44a55b('0x799')),_0x149f93[_0x44a55b('0xb6d')]===_0x44a55b('0x1f78')&&_0x206c68[_0x44a55b('0x11c3')](_0x44a55b('0x1fa9'),_0x44a55b('0xa43')),_0x149f93[_0x44a55b('0xb6d')]===_0x44a55b('0x52c')&&_0x206c68[_0x44a55b('0x11c3')](_0x44a55b('0x1fa9'),_0x44a55b('0x23a')),_0x206c68[_0x44a55b('0x11c3')](_0x44a55b('0x20d6'),_0x149f93[_0x44a55b('0x20d6')]),_0x206c68[_0x44a55b('0x11c3')](_0x44a55b('0x16df'),'\x20'),_0x206c68['onplay']=function(_0x5cd1ad){const _0xce307a=_0x44a55b;!_0x4cb257&&(_0x4cb257=!![],_0x5cd1ad['preventDefault'](),_0x31ac1c[_0x149f93[_0xce307a('0x1cdb')]][_0xce307a('0xfce')](_0x2f63b1)[_0xce307a('0x1964')][_0xce307a('0x173b')](function(_0x4bdcfb){const _0x489eb6=_0xce307a,_0x42e17c=[_0x4bdcfb['buffer']],_0x4d24ad=new Blob(_0x42e17c,{'type':_0x4bdcfb[_0x489eb6('0x1810')]});_0x206c68[_0x489eb6('0x11c3')](_0x489eb6('0x1810'),_0x4bdcfb[_0x489eb6('0x1810')]),_0x206c68['setAttribute'](_0x489eb6('0x16df'),URL[_0x489eb6('0x1466')](_0x4d24ad)),_0x206c68[_0x489eb6('0x1953')]();})[_0xce307a('0x103c')](function(_0x36995e){console['error'](_0x36995e);}));},_0x3649df['append'](_0x206c68);}};}const _0x111792=_0xd3450e,_0xf7eb91=_0x21a6a1['p']+_0x566993('0x1322');;function _0x50116c(){const _0x3dd266=_0x566993;return{'restrict':'E','scope':{'options':'='},'controller':[_0x3dd266('0x66f'),function(_0x2865d9){const _0xc40b10=_0x3dd266;_0x2865d9[_0xc40b10('0x3ab')]=function(_0x358040,_0x21b267,_0xbd32c7){const _0x54675e=_0xc40b10;if(_0x21b267[_0x54675e('0xdf7')])return;else{if(typeof _0x358040[_0x54675e('0xf02')]!==_0x54675e('0x6e5')&&_0x358040[_0x54675e('0xf02')])return _0xbd32c7?_0x2865d9[_0x54675e('0x617')](_0x21b267['selectedItems'],_0x21b267['items'],_0x21b267[_0x54675e('0x5f8')][_0x54675e('0x2087')](_0x358040),_0xbd32c7):_0x2865d9['transfer'](_0x21b267[_0x54675e('0x1b1f')],_0x21b267['selectedItems'],_0x21b267['items'][_0x54675e('0x2087')](_0x358040),_0xbd32c7);}},_0x2865d9[_0xc40b10('0x617')]=function(_0x4cb6f9,_0x1b412c,_0x136b9e,_0x3ed4e6){const _0x27d15e=_0xc40b10;let _0x21c2c2=[];if(_0x136b9e>=0x0)_0x21c2c2['push'](_0x4cb6f9[_0x136b9e]),_0x1b412c['push'](_0x4cb6f9[_0x136b9e]),_0x4cb6f9[_0x27d15e('0x553')](_0x136b9e,0x1);else{for(let _0x42bf48=0x0;_0x42bf48<_0x4cb6f9[_0x27d15e('0x543')];_0x42bf48++){typeof _0x4cb6f9[_0x42bf48][_0x27d15e('0xf02')]!==_0x27d15e('0x6e5')&&_0x4cb6f9[_0x42bf48][_0x27d15e('0xf02')]&&_0x1b412c[_0x27d15e('0x18bb')](_0x4cb6f9[_0x42bf48]);}for(let _0x1e79ba=_0x4cb6f9[_0x27d15e('0x543')]-0x1;_0x1e79ba>=0x0;_0x1e79ba--){_0x4cb6f9[_0x1e79ba][_0x27d15e('0xf02')]&&_0x4cb6f9['splice'](_0x1e79ba,0x1);}_0x21c2c2=_0x1b412c;}_0x2865d9['options']['transferCallback']&&_0x2865d9[_0x27d15e('0x2010')][_0x27d15e('0xdf2')](_0x21c2c2,_0x3ed4e6);},_0x2865d9[_0xc40b10('0xda7')]=function(_0x2c0655,_0x5ce832){const _0xfe1116=_0xc40b10;let _0xf174c2='';if(_0x3c8d8a()[_0xfe1116('0x7d5')](_0x5ce832))return _0xf174c2;if(_0x3c8d8a()[_0xfe1116('0x118')](_0x5ce832)){for(let _0x34d1d1=0x0;_0x34d1d1<_0x5ce832['length'];_0x34d1d1++){_0xf174c2+='\x20'+(_0x2c0655[_0x5ce832[_0x34d1d1]]?_0x2c0655[_0x5ce832[_0x34d1d1]]:'');}return _0xf174c2;}else return _0x2c0655[_0x5ce832]?_0x2c0655[_0x5ce832]:'';};}],'templateUrl':_0xf7eb91};}const _0x31bacb=_0x50116c;_0x4d587f['$inject']=[_0x566993('0x638')];function _0x4d587f(_0x4d0bf9){return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':'','link':function(_0x30fc18,_0x58ab5d){const _0x2001e8=a0_0xde5e,_0x39d130=_0x58ab5d[_0x2001e8('0x2457')]({'pickerPosition':_0x30fc18[_0x2001e8('0x18f1')],'search':_0x30fc18[_0x2001e8('0x23e7')],'recentEmojis':_0x30fc18[_0x2001e8('0x1595')],'placeholder':_0x4d0bf9[_0x2001e8('0x1467')](_0x30fc18['placeholder']||_0x2001e8('0xe49')),'attributes':{'spellcheck':!![]},'events':{'keypress':function(_0x3ed455,_0x7f271a){const _0x2a891c=_0x2001e8;_0x30fc18[_0x2a891c('0x147e')]=this[_0x2a891c('0x1121')](),_0x30fc18[_0x2a891c('0x368')]({'event':_0x7f271a,'body':this[_0x2a891c('0x1121')]()});},'emojibtn_click':function(){const _0xb98c16=_0x2001e8;_0x30fc18[_0xb98c16('0x147e')]=this[_0xb98c16('0x1121')]();}}});_0x30fc18[_0x2001e8('0x147e')]&&_0x39d130[0x0][_0x2001e8('0x2457')]['setText'](_0x30fc18[_0x2001e8('0x147e')]),_0x30fc18[_0x2001e8('0x2539')]=_0x30fc18[_0x2001e8('0xe30')]||{},_0x30fc18[_0x2001e8('0x2539')][_0x2001e8('0x1a5b')]=function(_0x5d82fa){const _0x381f31=_0x2001e8;_0x39d130[0x0][_0x381f31('0x2457')]['setText'](_0x5d82fa);},_0x30fc18[_0x2001e8('0x2539')][_0x2001e8('0x1121')]=function(){const _0x4e3110=_0x2001e8;return _0x39d130[0x0][_0x4e3110('0x2457')][_0x4e3110('0x1121')]();},_0x30fc18[_0x2001e8('0x1bdb')](_0x2001e8('0x147e'),function(_0x5f7f20){const _0x488b72=_0x2001e8;!_0x5f7f20&&_0x39d130[0x0][_0x488b72('0x2457')][_0x488b72('0x1a5b')]('');});}};}const _0x37f16a=_0x4d587f,_0x48dbea=_0x21a6a1['p']+_0x566993('0x1dce');;function _0x3920de(){const _0x27f4b3=_0x566993;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x27f4b3('0x66f'),function(_0xc58fa6){const _0x39edc3=_0x27f4b3;_0xc58fa6[_0x39edc3('0x159b')]=[{'option':'Arial','value':_0x39edc3('0x1495')},{'option':'Century\x20Gothic','value':'Century\x20Gothic,Futura,Didact\x20Gothic,san-serif'},{'option':_0x39edc3('0x117d'),'value':'Calibri,\x20Verdana,\x20Geneva,\x20sans-serif'},{'option':_0x39edc3('0x1612'),'value':'Comic\x20Sans\x20MS,cursive'},{'option':_0x39edc3('0x17d2'),'value':_0x39edc3('0x123e')},{'option':_0x39edc3('0x2447'),'value':'Georgia,serif'},{'option':_0x39edc3('0x2a2'),'value':'Lucida\x20Sans\x20Unicode,Lucida\x20Grande,sans-serif'},{'option':'Tahoma','value':_0x39edc3('0x1695')},{'option':_0x39edc3('0x19a9'),'value':'Times\x20New\x20Roman,Times,serif'},{'option':_0x39edc3('0x16c3'),'value':_0x39edc3('0x1ddf')},{'option':'Verdana','value':_0x39edc3('0x149b')}];}],'templateUrl':_0x48dbea};}const _0x596168=_0x3920de;function _0x2ab2f9(){const _0x4fe9d6=_0x566993,_0x23e0e3=this;_0x23e0e3[_0x4fe9d6('0x238')]=[],_0x23e0e3['selectedIndex']=0x0,_0x23e0e3[_0x4fe9d6('0x23d7')]=_0x30730d,_0x23e0e3[_0x4fe9d6('0x312')]=_0x3474b0,_0x23e0e3[_0x4fe9d6('0x24b2')]=_0x221848,_0x23e0e3[_0x4fe9d6('0x2394')]=_0x144d8e,_0x23e0e3[_0x4fe9d6('0xc2')]=_0x2fd62b,_0x23e0e3[_0x4fe9d6('0x1f38')]=_0x23b019,_0x23e0e3[_0x4fe9d6('0x26f4')]=_0x3874ea,_0x23e0e3[_0x4fe9d6('0x2425')]=_0x3484dc,_0x23e0e3[_0x4fe9d6('0x155d')]=_0x308f9d,_0x23e0e3[_0x4fe9d6('0x2082')]=_0x34a9d4,_0x23e0e3[_0x4fe9d6('0x920')]=_0x41a162,_0x23e0e3[_0x4fe9d6('0x114a')]=_0x412b03;function _0x30730d(_0x223456){const _0x28d375=_0x4fe9d6;_0x23e0e3['forms'][_0x28d375('0x18bb')](_0x223456);}function _0x3474b0(){const _0x2ea496=_0x4fe9d6;if(_0x3874ea())return;_0x23e0e3[_0x2ea496('0xa3d')]--;}function _0x221848(){const _0x236819=_0x4fe9d6;if(_0x3484dc())return;_0x23e0e3[_0x236819('0xa3d')]++;}function _0x144d8e(){_0x23e0e3['selectedIndex']=0x0;}function _0x2fd62b(){const _0x448a98=_0x4fe9d6;_0x23e0e3[_0x448a98('0xa3d')]=_0x23b019()-0x1;}function _0x23b019(){const _0x43412b=_0x4fe9d6;return _0x23e0e3[_0x43412b('0x238')][_0x43412b('0x543')];}function _0x3874ea(){const _0x33bcef=_0x4fe9d6;return _0x23e0e3[_0x33bcef('0xa3d')]===0x0;}function _0x3484dc(){const _0x2376ec=_0x4fe9d6;return _0x23e0e3[_0x2376ec('0xa3d')]===_0x23b019()-0x1;}function _0x308f9d(){const _0x130d00=_0x4fe9d6;return angular[_0x130d00('0x4a5')](_0x23e0e3[_0x130d00('0x238')][_0x23e0e3[_0x130d00('0xa3d')]])&&_0x23e0e3['forms'][_0x23e0e3[_0x130d00('0xa3d')]][_0x130d00('0x161a')];}function _0x34a9d4(){const _0x554714=_0x4fe9d6;return _0x23e0e3['selectedIndex']>0x0&&angular[_0x554714('0x4a5')](_0x23e0e3[_0x554714('0x238')][_0x23e0e3['selectedIndex']-0x1])&&_0x23e0e3[_0x554714('0x238')][_0x23e0e3[_0x554714('0xa3d')]-0x1][_0x554714('0x161a')];}function _0x41a162(){const _0x50c579=_0x4fe9d6;for(let _0x15798f=0x0;_0x15798f<_0x23e0e3[_0x50c579('0x238')]['length'];_0x15798f++){if(_0x23e0e3[_0x50c579('0x238')][_0x15798f][_0x50c579('0x161a')])return!![];}return![];}function _0x412b03(){const _0x33647e=_0x4fe9d6;_0x23e0e3[_0x33647e('0xa3d')]=0x0;for(let _0x4c86da=0x0;_0x4c86da<_0x23e0e3[_0x33647e('0x238')][_0x33647e('0x543')];_0x4c86da++){_0x23e0e3['forms'][_0x4c86da]['$setPristine'](),_0x23e0e3[_0x33647e('0x238')][_0x4c86da][_0x33647e('0x53d')]();}}}function _0x2ade8a(){const _0x429f64=_0x566993;return{'restrict':'E','scope':!![],'controller':_0x429f64('0x1564'),'compile':function(_0xebc9bc){const _0x25e6df=_0x429f64;return _0xebc9bc[_0x25e6df('0x88c')](_0x25e6df('0x1fb8')),function _0x3cbd93(){};}};}function _0x2fb8fa(){const _0x108c89=_0x566993;return{'restrict':'A','require':['form',_0x108c89('0xa8d')],'compile':function(_0x528928){const _0x43fc7c=_0x108c89;return _0x528928[_0x43fc7c('0x88c')](_0x43fc7c('0x1ddb')),function _0x43095a(_0x23e6ef,_0x2a6a39,_0x438ca7,_0x13f9c7){const _0x59c8ad=_0x43fc7c,_0x1dc22c=_0x13f9c7[0x0],_0x52474a=_0x13f9c7[0x1];_0x52474a[_0x59c8ad('0x23d7')](_0x1dc22c);};}};}const _0x47c001=_0x21a6a1['p']+'src/js/modules/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar.html';_0x10e664[_0x566993('0x17bb')]=[_0x566993('0x1b82')];function _0x10e664(_0x14372b){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x47c001,'link':function(_0xb88122,_0x281ccf){const _0x5657cf=a0_0xde5e,_0x41ef6f=_0x14372b[_0x5657cf('0x18ab')](_0x5657cf('0x54a')),_0x436223='ms-info-bar-active';_0x41ef6f['addClass'](_0x436223);function _0x36e4a4(){const _0x987fdc=_0x5657cf;_0x41ef6f['removeClass'](_0x436223),_0x281ccf[_0x987fdc('0x1a8b')](),_0xb88122['onClose']&&_0xb88122[_0x987fdc('0x27ce')](),_0xb88122[_0x987fdc('0x16d2')]();}_0xb88122[_0x5657cf('0x2470')]=_0x36e4a4;}};}const _0x31367f=_0x10e664;_0x395046[_0x566993('0x17bb')]=[_0x566993('0x24b5')],_0x44f8cb['$inject']=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0xf9b'),'$timeout'];function _0x44f8cb(_0x1098bc,_0xbef965,_0x4b9f78,_0x2ea7a6){const _0x2a7c64=_0x566993,_0x25d503=this,_0x247274={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}};let _0x3ccdec=!![];_0x25d503[_0x2a7c64('0x2010')]=null,_0x25d503[_0x2a7c64('0x1388')]=[],_0x25d503['containerPos']='',_0x25d503[_0x2a7c64('0x2578')]='',_0x25d503['items']=[],_0x25d503['reLayout']=_0x259af6,_0x25d503[_0x2a7c64('0x1468')]=_0x2197ff,_0x25d503['waitImagesLoaded']=_0x38cac5;function _0x2197ff(){const _0x7f67f2=_0x2a7c64;_0x25d503['options']=!_0x25d503[_0x7f67f2('0x2010')]?_0x247274:angular[_0x7f67f2('0x2d3')](_0x247274,_0x25d503['options']),_0x5a60();}_0x1098bc['$on'](_0x2a7c64('0xfc3'),function(){_0x259af6();});function _0x38cac5(_0x17f0e2,_0x4a5b43){const _0x3c4254=_0x2a7c64;if(typeof imagesLoaded!==_0x3c4254('0x6e5')){const _0x307f57=_0xbef965[_0x3c4254('0x7aa')](_0x17f0e2);_0x307f57['on']('done',function(){_0x4a5b43();});}else _0x4a5b43();}function _0x5a60(){const _0x2b4aaf=_0x2a7c64;_0x1098bc[_0x2b4aaf('0x1bdb')](function(){const _0x566842=_0x2b4aaf;return _0x25d503[_0x566842('0x1388')]['width']();},function(_0x3b66e4,_0x577f21){_0x3b66e4!==_0x577f21&&_0x259af6();});}function _0x259af6(){const _0x52581e=_0x2a7c64;_0x3ccdec&&_0x2ea7a6[_0x52581e('0x1e1f')](_0x3ccdec);_0x3ccdec=_0x2ea7a6(function(){const _0x970cf7=_0x52581e;_0x28bb0a(),_0x1098bc['$broadcast'](_0x970cf7('0x1251'));},_0x25d503['options'][_0x52581e('0xaa')]);function _0x28bb0a(){const _0x26feaf=_0x52581e;_0x25d503[_0x26feaf('0x1294')]=_0x25d503[_0x26feaf('0x1388')][0x0][_0x26feaf('0x23bf')](),_0x16742b(),_0x1098bc['$broadcast'](_0x26feaf('0x1534')),_0x25d503[_0x26feaf('0x1b1f')]=_0x25d503[_0x26feaf('0x1388')]['find'](_0x26feaf('0x1f75'));const _0x51f0e3=Array[_0x26feaf('0x25ea')](null,new Array(_0x25d503[_0x26feaf('0x4fe')]))['map'](function(){return 0x0;});for(let _0x5c259f=0x0;_0x5c259f<_0x25d503[_0x26feaf('0x1b1f')][_0x26feaf('0x543')];_0x5c259f++){let _0x4cd76e=_0x25d503[_0x26feaf('0x1b1f')][_0x5c259f],_0x151f57,_0x4b1e79;_0x4cd76e=angular[_0x26feaf('0xb6d')](_0x4cd76e);_0x4cd76e['scope']()&&_0x4cd76e['scope']()[_0x26feaf('0x21e8')](_0x26feaf('0x133a'));_0x4cd76e[_0x26feaf('0x17e4')]({'width':_0x25d503[_0x26feaf('0x2578')]});_0x25d503[_0x26feaf('0x2010')][_0x26feaf('0x1a5a')]?(_0x151f57=_0x5c259f%_0x25d503[_0x26feaf('0x4fe')],_0x4b1e79=_0x51f0e3[_0x151f57]):(_0x4b1e79=Math['min'][_0x26feaf('0x25ea')](Math,_0x51f0e3),_0x151f57=_0x51f0e3[_0x26feaf('0x2087')](_0x4b1e79));_0x51f0e3[_0x151f57]=_0x4b1e79+_0x4cd76e[0x0][_0x26feaf('0x23bf')]()[_0x26feaf('0x124a')];const _0x2100bd=Math['round'](_0x151f57*_0x25d503[_0x26feaf('0x2578')]),_0x1a94ce=_0x4b1e79;_0x4cd76e[_0x26feaf('0x17e4')]({'transform':'translate3d('+_0x2100bd+'px,'+_0x1a94ce+_0x26feaf('0x889')}),_0x4cd76e[_0x26feaf('0x88c')](_0x26feaf('0x15d9')),_0x4cd76e[_0x26feaf('0x1062')]()&&_0x4cd76e[_0x26feaf('0x1062')]()[_0x26feaf('0x21e8')](_0x26feaf('0x6e0'));}}}function _0x16742b(){const _0x2be288=_0x2a7c64;_0x25d503[_0x2be288('0x4fe')]=_0x25d503[_0x2be288('0x2010')][_0x2be288('0x4fe')];if(_0x4b9f78(_0x2be288('0x20b5')))_0x25d503[_0x2be288('0x4fe')]=_0x25d503[_0x2be288('0x2010')][_0x2be288('0x4fe')];else{if(_0x4b9f78('md'))_0x25d503[_0x2be288('0x4fe')]=_0x25d503[_0x2be288('0x4fe')]>_0x25d503[_0x2be288('0x2010')][_0x2be288('0xcd6')]['md']?_0x25d503[_0x2be288('0x2010')]['responsive']['md']:_0x25d503['columnCount'];else _0x4b9f78('sm')?_0x25d503['columnCount']=_0x25d503['columnCount']>_0x25d503['options'][_0x2be288('0xcd6')]['sm']?_0x25d503[_0x2be288('0x2010')][_0x2be288('0xcd6')]['sm']:_0x25d503['columnCount']:_0x25d503[_0x2be288('0x4fe')]=_0x25d503[_0x2be288('0x2010')][_0x2be288('0xcd6')]['xs'];}_0x25d503[_0x2be288('0x2578')]=_0x25d503[_0x2be288('0x1294')][_0x2be288('0x1f72')]/_0x25d503[_0x2be288('0x4fe')];}}function _0x395046(_0x407856){const _0x39902c=_0x566993;return{'restrict':'AEC','controller':_0x39902c('0x97e'),'compile':_0x85815a};function _0x85815a(_0x31d24a,_0x142824){return{'pre':function _0x58fc35(_0x5bf82d,_0x3f549f,_0x31e200,_0x5beb94){const _0x2b8ce1=a0_0xde5e;_0x5beb94['options']=angular['fromJson'](_0x142824['options']||'{}'),_0x5beb94[_0x2b8ce1('0x1388')]=_0x31d24a;},'post':function _0xcaf85f(_0x22d361,_0x4758cf,_0x194376,_0x302591){_0x407856(function(){const _0x17c4a1=a0_0xde5e;_0x302591[_0x17c4a1('0x1468')]();});}};}}function _0x3b8d6(){const _0x1a36a1=_0x566993;return{'restrict':_0x1a36a1('0x144e'),'require':_0x1a36a1('0x258c'),'priority':0x1,'link':_0x26a351};function _0x26a351(_0x57760a,_0x11b73e,_0x38ef2d,_0x5486f8){const _0x52c9d6=_0x1a36a1;_0x5486f8['waitImagesLoaded'](_0x11b73e,function(){_0x5486f8['reLayout']();}),_0x57760a[_0x52c9d6('0xbf6')](_0x52c9d6('0x6e0'),function(){const _0x171ebf=_0x52c9d6;_0x57760a[_0x171ebf('0x1bdb')](function(){const _0x9ebbb7=_0x171ebf;return _0x11b73e[_0x9ebbb7('0x124a')]();},function(_0x60f87c,_0x343f82){const _0x5a44c7=_0x171ebf;_0x60f87c!==_0x343f82&&_0x5486f8[_0x5a44c7('0x20e9')]();});}),_0x11b73e['on']('$destroy',function(){const _0x323709=_0x52c9d6;_0x5486f8[_0x323709('0x20e9')]();});}}const _0x4f1f99=_0x21a6a1['p']+_0x566993('0x2567');_0x56ff1a[_0x566993('0x17bb')]=['$scope',_0x566993('0x1428'),_0x566993('0x1968'),_0x566993('0x2427')];function _0x56ff1a(_0x5d1b0f,_0x12807c,_0x1b2e70,_0x3b824c){const _0x3fb178=_0x566993,_0x3292dc=this;_0x3292dc[_0x3fb178('0x73d')]=_0x12807c,_0x3292dc[_0x3fb178('0x6cd')]=![],_0x3292dc['selectedHues']=![],_0x5d1b0f['$selectedColor']={},_0x3292dc['activateHueSelection']=_0x5926f4,_0x3292dc[_0x3fb178('0x258e')]=_0xbc9ed7,_0x3292dc[_0x3fb178('0x1876')]=_0x1749a5,_0x5d1b0f[_0x3fb178('0x1bdb')]('ngModel',_0x85ed71);function _0x5926f4(_0x24e31d,_0x3e3fe6){const _0x3d0ee3=_0x3fb178;_0x3292dc[_0x3d0ee3('0x6cd')]=_0x24e31d,_0x3292dc[_0x3d0ee3('0x24b0')]=_0x3e3fe6;}function _0xbc9ed7(_0x194764,_0x31a0fc){const _0x2e14a6=_0x3fb178;_0x19df31(_0x194764,_0x31a0fc),_0x558d34(),_0x1b2e70[_0x2e14a6('0x1cf4')]();}function _0x1749a5(){const _0xa79add=_0x3fb178;_0x3292dc[_0xa79add('0x2335')]={'palette':'','hue':'','class':''},_0x5926f4(![],![]),_0x558d34();}function _0x85ed71(){const _0x4a9789=_0x3fb178;if(!_0x3292dc[_0x4a9789('0x2488')][_0x4a9789('0x12ff')]||_0x3292dc[_0x4a9789('0x2488')][_0x4a9789('0x12ff')]===''){_0x1749a5();return;}let _0x56c306,_0x17b1f4;if(_0x3292dc[_0x4a9789('0xfed')]===_0x4a9789('0x7c1')){const _0xaa9b67=_0x3292dc[_0x4a9789('0x2488')]['$viewValue'][_0x4a9789('0x43a')]('-');_0xaa9b67[_0x4a9789('0x543')]>=0x5?(_0x56c306=_0xaa9b67[0x1]+'-'+_0xaa9b67[0x2],_0x17b1f4=_0xaa9b67[0x3]):(_0x56c306=_0xaa9b67[0x1],_0x17b1f4=_0xaa9b67[0x2]);}else _0x3292dc['msModelType']==='obj'&&(_0x56c306=_0x3292dc[_0x4a9789('0x2488')]['$viewValue'][_0x4a9789('0xd02')],_0x17b1f4=_0x3292dc[_0x4a9789('0x2488')][_0x4a9789('0x12ff')][_0x4a9789('0x2041')]||0x1f4);_0x19df31(_0x56c306,_0x17b1f4);}function _0x19df31(_0x4c6e68,_0x1b7c22){const _0x1fd66d=_0x3fb178;_0x3292dc[_0x1fd66d('0x2335')]={'palette':_0x4c6e68,'hue':_0x1b7c22,'class':_0x1fd66d('0x10e5')+_0x4c6e68+'-'+_0x1b7c22+'-bg','bgColorValue':_0x3b824c[_0x1fd66d('0xbf3')](_0x3292dc['palettes'][_0x4c6e68][_0x1b7c22][_0x1fd66d('0xa7b')]),'fgColorValue':_0x3b824c['rgba'](_0x3292dc[_0x1fd66d('0x73d')][_0x4c6e68][_0x1b7c22][_0x1fd66d('0x2223')])},_0x3292dc[_0x1fd66d('0xfed')]===_0x1fd66d('0x1232')&&!angular[_0x1fd66d('0x1482')](_0x3292dc[_0x1fd66d('0x2335')],_0x3292dc['modelCtrl'][_0x1fd66d('0x12ff')])&&_0x558d34(),_0x5926f4(_0x4c6e68,_0x3292dc[_0x1fd66d('0x73d')][_0x4c6e68]),_0x5d1b0f[_0x1fd66d('0x8a4')]=_0x3292dc[_0x1fd66d('0x2335')];}function _0x558d34(){const _0x4bd3e9=_0x3fb178;if(_0x3292dc['msModelType']===_0x4bd3e9('0x7c1'))_0x3292dc['modelCtrl'][_0x4bd3e9('0xea6')](_0x3292dc[_0x4bd3e9('0x2335')][_0x4bd3e9('0x7c1')]);else _0x3292dc[_0x4bd3e9('0xfed')]==='obj'&&_0x3292dc['modelCtrl'][_0x4bd3e9('0xea6')](_0x3292dc[_0x4bd3e9('0x2335')]);}}function _0x31619b(){const _0x333c05=_0x566993;return{'require':[_0x333c05('0x867'),_0x333c05('0x147e')],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':_0x333c05('0xd33'),'transclude':!![],'templateUrl':_0x4f1f99,'link':function(_0x40544d,_0x26aa87,_0xec7a1b,_0x4850f8,_0x179c1a){const _0x901797=_0x333c05,_0xb79f7c=_0x4850f8[0x0];_0xb79f7c[_0x901797('0x2488')]=_0x4850f8[0x1],_0xb79f7c[_0x901797('0xfed')]=_0x40544d[_0x901797('0xfed')]||_0x901797('0x7c1'),_0x179c1a(_0x40544d,function(_0xf34f48){const _0x5e5039=_0x901797;_0xf34f48=_0xf34f48[_0x5e5039('0x278d')](function(_0x8e003d,_0x68e96){const _0x6935e1=_0x5e5039;return _0x68e96[_0x6935e1('0x276b')]===0x1?!![]:![];}),_0xf34f48[_0x5e5039('0x543')]&&_0x26aa87[_0x5e5039('0x18ab')](_0x5e5039('0x222'))[_0x5e5039('0x10f7')](_0xf34f48);});}};}_0x4003dc['$inject']=[_0x566993('0xca5'),'$q',_0x566993('0xa33'),_0x566993('0x2276')],_0x33e625['$inject']=['$rootScope',_0x566993('0x1a1c'),_0x566993('0x2810')],_0x27010c[_0x566993('0x17bb')]=[_0x566993('0x1b82'),_0x566993('0xca5'),_0x566993('0x2810')];function _0x548357(){let _0x6f517={};const _0x493817={'setFoldable':_0x5d7a54,'isNavFoldedOpen':_0x367454,'toggleFold':_0x105382,'openFolded':_0x47a4dc,'closeFolded':_0x495ae4};return _0x493817;function _0x5d7a54(_0x3cc9c1,_0x3f027d){_0x6f517={'scope':_0x3cc9c1,'element':_0x3f027d};}function _0x367454(){const _0xf378ef=a0_0xde5e;return _0x6f517[_0xf378ef('0x1062')][_0xf378ef('0xf40')]();}function _0x105382(){const _0x24e3fe=a0_0xde5e;_0x6f517['scope'][_0x24e3fe('0x1306')]();}function _0x47a4dc(){const _0x25d1db=a0_0xde5e;_0x6f517[_0x25d1db('0x1062')][_0x25d1db('0x1006')]();}function _0x495ae4(){const _0x489dcd=a0_0xde5e;_0x6f517[_0x489dcd('0x1062')][_0x489dcd('0x1a71')]();}}function _0x27010c(_0x525a7c,_0x3ec897,_0x4c755d){return{'restrict':'A','link':function(_0x1e21e7,_0x1af7cf,_0x1d0922){const _0x1fdf6f=a0_0xde5e;let _0x55dfb8=_0x1d0922[_0x1fdf6f('0x1c82')]===_0x1fdf6f('0x799'),_0x306ee4=![];const _0x52af04=angular[_0x1fdf6f('0xb6d')](_0x525a7c[0x0][_0x1fdf6f('0x1a5')]),_0x350387=angular[_0x1fdf6f('0xb6d')](_0x1fdf6f('0x1a96')),_0xf61995=angular['element']('
'),_0x540e1a=_0x1af7cf[_0x1fdf6f('0x941')]();_0x4c755d[_0x1fdf6f('0xec6')](_0x1e21e7,_0x1af7cf,_0x55dfb8);_0x55dfb8?_0x300cea():_0x4165ef();function _0x4e89d8(){return _0x306ee4;}function _0x5b27dd(){_0x55dfb8=!_0x55dfb8,_0x55dfb8?_0x300cea():_0x4165ef();}function _0x300cea(){const _0x4542b8=_0x1fdf6f;_0x52af04[_0x4542b8('0x88c')](_0x4542b8('0x19f9')),_0x3ec897[_0x4542b8('0x21e8')](_0x4542b8('0x24')),_0x1af7cf['scrollTop'](0x0),_0x540e1a[_0x4542b8('0xe53')](_0x350387),_0x350387['on']('mouseenter\x20touchstart',function(_0x539ab9){_0x5d1e68(_0x539ab9),_0x306ee4=!![];});}function _0x5d1e68(_0xd4d589){const _0x30f850=_0x1fdf6f;angular[_0x30f850('0x4a5')](_0xd4d589)&&_0xd4d589[_0x30f850('0x26f8')](),_0x52af04['addClass'](_0x30f850('0x2040')),_0x3ec897[_0x30f850('0x21e8')](_0x30f850('0x16aa')),_0x540e1a[_0x30f850('0x18ab')](_0x350387)[_0x30f850('0x1a8b')](),_0x540e1a['parent']()['append'](_0xf61995),_0xf61995['on'](_0x30f850('0xb44'),function(_0x3bb6b9){_0x1e6f68(_0x3bb6b9),_0x306ee4=![];});}function _0x1e6f68(_0x3e162d){const _0x16bc14=_0x1fdf6f;angular[_0x16bc14('0x4a5')](_0x3e162d)&&_0x3e162d['preventDefault'](),_0x3ec897[_0x16bc14('0x21e8')](_0x16bc14('0x24')),_0x1af7cf[_0x16bc14('0x2208')](0x0),_0x52af04['removeClass'](_0x16bc14('0x2040')),_0x540e1a[_0x16bc14('0x941')]()[_0x16bc14('0x18ab')](_0xf61995)['remove'](),_0x540e1a[_0x16bc14('0xe53')](_0x350387),_0x350387['on'](_0x16bc14('0xb44'),function(_0x55f4ce){_0x5d1e68(_0x55f4ce),_0x306ee4=!![];});}function _0x4165ef(){const _0x1da6eb=_0x1fdf6f;_0x52af04['removeClass']('ms-nav-folded\x20ms-nav-folded-open'),_0x3ec897[_0x1da6eb('0x21e8')](_0x1da6eb('0x16aa')),_0x1af7cf[_0x1da6eb('0x352')](_0x1da6eb('0xeea'));}_0x1e21e7[_0x1fdf6f('0x1306')]=_0x5b27dd,_0x1e21e7[_0x1fdf6f('0x1006')]=_0x5d1e68,_0x1e21e7['closeFolded']=_0x1e6f68,_0x1e21e7['isNavFoldedOpen']=_0x4e89d8,_0x1e21e7[_0x1fdf6f('0xbf6')](_0x1fdf6f('0x16d2'),function(){const _0x2a77c2=_0x1fdf6f;_0x350387[_0x2a77c2('0x352')](_0x2a77c2('0xb44')),_0xf61995[_0x2a77c2('0x352')]('mouseenter\x20touchstart'),_0x1af7cf['off']('mouseenter\x20mouseleave');});}};}function _0x378019(){const _0x2d96ce=_0x566993,_0xd829ae=this;let _0x41cfcf=![];const _0x179b0f=[];let _0x2e6186=[];_0xd829ae[_0x2d96ce('0x249a')]=_0x185c55,_0xd829ae[_0x2d96ce('0x11')]=_0x5878d9,_0xd829ae[_0x2d96ce('0x162')]=_0x384c1e,_0xd829ae['setToggleItem']=_0x915162,_0xd829ae[_0x2d96ce('0x9be')]=_0x5560cd,_0xd829ae[_0x2d96ce('0x1a0e')]=_0x3ad793,_0xd829ae[_0x2d96ce('0x1dc4')]=_0x23ba01;function _0x185c55(){return _0x41cfcf;}function _0x384c1e(){_0x41cfcf=!![];}function _0x5878d9(){_0x41cfcf=![];}function _0x915162(_0x26cf16,_0x2ae23c){const _0x2d7747=_0x2d96ce;_0x179b0f[_0x2d7747('0x18bb')]({'element':_0x26cf16,'scope':_0x2ae23c});}function _0x5560cd(){return _0x2e6186;}function _0x3ad793(_0x5aff44,_0x41a6f){const _0x2847aa=_0x2d96ce;_0x2e6186[_0x2847aa('0x18bb')]({'element':_0x5aff44,'scope':_0x41a6f});}function _0x23ba01(){_0x2e6186=[];}}function _0x33e625(_0x3a1d4c,_0x3ab9d3,_0x2fc052){return{'restrict':'E','scope':{},'controller':'MsNavController','compile':function(_0x2308e3){const _0x314252=a0_0xde5e;return _0x2308e3[_0x314252('0x88c')](_0x314252('0x1abc')),function _0x4c0334(_0x1f786f){const _0x3526ea=_0x314252;_0x3a1d4c[_0x3526ea('0x21e8')](_0x3526ea('0x16aa'));const _0x5af391=_0x3a1d4c[_0x3526ea('0xbf6')]('$stateChangeSuccess',function(){const _0x2787a6=_0x3526ea;_0x3a1d4c[_0x2787a6('0x21e8')](_0x2787a6('0x16aa')),_0x3ab9d3[_0x2787a6('0x1e58')](_0x2787a6('0x1ea9'))['then'](function(_0x5e9ad4){const _0x540821=_0x2787a6;_0x5e9ad4[_0x540821('0x2151')](),_0x2fc052[_0x540821('0xf40')]()&&_0x2fc052[_0x540821('0x1a71')]();});});_0x1f786f[_0x3526ea('0xbf6')](_0x3526ea('0x16d2'),function(){_0x5af391();});};}};}function _0x3f1fbd(){return{'restrict':'A','compile':function(_0x455402){const _0x15f1ab=a0_0xde5e;return _0x455402[_0x15f1ab('0x88c')](_0x15f1ab('0x1061')),function _0x43bbae(){};}};}function _0x5845b8(){return{'restrict':'AE','compile':function(_0x59777b){const _0x609919=a0_0xde5e;return _0x59777b[_0x609919('0x88c')](_0x609919('0x93b')),function _0x2f8cc5(){};}};}function _0x4003dc(_0x502c7c,_0x598f94,_0x9701df,_0x3ad0ef){return{'restrict':'A','require':'^msNav','scope':!![],'compile':function(_0x4eb602,_0x2c9eb6){const _0x36dcd7=a0_0xde5e;return _0x4eb602[_0x36dcd7('0x88c')](_0x36dcd7('0x2395')),angular[_0x36dcd7('0x8a8')](_0x2c9eb6[_0x36dcd7('0x2071')])&&(_0x2c9eb6[_0x36dcd7('0x2071')]=!![]),_0x4eb602['attr'](_0x36dcd7('0x2071'),_0x2c9eb6[_0x36dcd7('0x2071')]),function _0x124a3c(_0x4c0585,_0x5f371f,_0x16fe66,_0x135349){const _0x12dc69=_0x36dcd7,_0x7b53b1={'expanded':_0x12dc69('0xa79'),'expandAnimation':_0x12dc69('0x2588'),'collapseAnimation':_0x12dc69('0x3a4')},_0x3dd03f=_0x5f371f[_0x12dc69('0x18ab')]('a'),_0x28bbd6=[],_0x151dc6=/\(.*\)/g;angular[_0x12dc69('0xa6a')](_0x3dd03f,function(_0x16324f){const _0x4a5097=_0x12dc69;let _0x422247=angular[_0x4a5097('0xb6d')](_0x16324f)[_0x4a5097('0x152f')]('ui-sref');if(angular[_0x4a5097('0x8a8')](_0x422247))return;_0x422247=_0x422247[_0x4a5097('0x166c')](_0x151dc6,''),_0x28bbd6[_0x4a5097('0x18bb')](_0x422247);}),_0x135349[_0x12dc69('0x1919')](_0x5f371f,_0x4c0585),_0x5f371f[_0x12dc69('0x13da')](_0x12dc69('0xe71'))['on'](_0x12dc69('0x3cb'),_0x4db4fa);function _0x4db4fa(){const _0xccb0fb=_0x12dc69;if(_0x135349['isDisabled']())return;_0x135349[_0xccb0fb('0x162')](),_0x4c1500()?(_0x135349[_0xccb0fb('0x1dc4')](),_0x4c0585[_0xccb0fb('0x1d12')]('msNav::pushToLockedList'),_0x502c7c[_0xccb0fb('0x21e8')](_0xccb0fb('0xf86')),_0x203695()[_0xccb0fb('0x173b')](function(){const _0x1ef4ee=_0xccb0fb;_0x135349[_0x1ef4ee('0x11')]();})):_0x4c0585[_0xccb0fb('0x21e8')](_0xccb0fb('0x24'));}_0x4c0585[_0x12dc69('0xbf6')](_0x12dc69('0x16d2'),function(){const _0x51ff80=_0x12dc69;_0x5f371f[_0x51ff80('0x13da')](_0x51ff80('0xe71'))[_0x51ff80('0x352')](_0x51ff80('0x3cb'));}),_0x4c0585['$on']('msNav::collapse',function(){const _0x5a7809=_0x12dc69,_0x5db9a3=_0x135349[_0x5a7809('0x9be')]();let _0x278569=![];angular[_0x5a7809('0xa6a')](_0x5db9a3,function(_0x15b431){const _0x90c8e5=_0x5a7809;angular[_0x90c8e5('0x1482')](_0x15b431[_0x90c8e5('0x1062')],_0x4c0585)&&(_0x278569=!![]);});if(_0x278569)return;_0xe92654()[_0x5a7809('0x173b')](function(){const _0x373000=_0x5a7809;_0x135349[_0x373000('0x11')]();});}),_0x4c0585[_0x12dc69('0xbf6')]('msNav::forceCollapse',function(){_0xe92654()['then'](function(){const _0x3c013e=a0_0xde5e;_0x135349[_0x3c013e('0x11')]();});}),_0x4c0585[_0x12dc69('0xbf6')](_0x12dc69('0x16aa'),function(){const _0x39bba5=_0x12dc69,_0x522cc6=_0x3ad0ef[_0x39bba5('0x9fe')][_0x39bba5('0x10ad')];let _0x5664ea=![];angular[_0x39bba5('0xa6a')](_0x28bbd6,function(_0x171f57){_0x522cc6===_0x171f57&&(_0x5664ea=!![]);}),_0x5664ea?_0x203695():_0xe92654();}),_0x4c0585['$on'](_0x12dc69('0x2833'),function(){const _0x4f8eca=_0x12dc69;_0x135349[_0x4f8eca('0x1a0e')](_0x5f371f,_0x4c0585);});function _0x4c1500(){const _0x184951=_0x12dc69;return _0x5f371f[_0x184951('0x152f')](_0x184951('0x2071'))===_0x184951('0x799');}function _0x7fefa9(){return!_0x4c1500();}function _0x203695(){const _0x3b1f5a=_0x12dc69,_0x2236ec=_0x598f94['defer']();if(_0x7fefa9())return _0x2236ec[_0x3b1f5a('0x12a4')]({'error':!![]}),_0x2236ec[_0x3b1f5a('0x2219')];_0x5f371f['attr']('collapsed',![]);const _0x1d1503=angular[_0x3b1f5a('0xb6d')](_0x5f371f[_0x3b1f5a('0x18ab')](_0x3b1f5a('0x2501'))[0x0]);_0x1d1503[_0x3b1f5a('0x17e4')]({'position':'absolute','visibility':'hidden','display':'block','height':_0x3b1f5a('0x1afd')});const _0x2a9ece=_0x1d1503[0x0][_0x3b1f5a('0x5a9')];return _0x1d1503[_0x3b1f5a('0x17e4')]({'position':'','visibility':'','display':'','height':''}),_0x4c0585[_0x3b1f5a('0x1a4a')](function(){const _0x29c38f=_0x3b1f5a;_0x9701df[_0x29c38f('0x190d')](_0x1d1503,{'display':_0x29c38f('0x3eb'),'height':_0x29c38f('0x1345')},{'height':_0x2a9ece+'px'},_0x7b53b1[_0x29c38f('0x23a8')])[_0x29c38f('0x173b')](function(){const _0x449049=_0x29c38f;_0x1d1503[_0x449049('0x88c')](_0x7b53b1[_0x449049('0xa79')]),_0x1d1503[_0x449049('0x17e4')]({'height':''}),_0x2236ec[_0x449049('0x155b')]({'success':!![]});});}),_0x2236ec['promise'];}function _0xe92654(){const _0x5f5755=_0x12dc69,_0x17e06e=_0x598f94['defer']();if(_0x4c1500())return _0x17e06e[_0x5f5755('0x12a4')]({'error':!![]}),_0x17e06e[_0x5f5755('0x2219')];_0x5f371f['attr'](_0x5f5755('0x2071'),!![]);const _0x9c3270=angular['element'](_0x5f371f['find']('ms-nav-toggle-items')[0x0]),_0x7c56a3=_0x9c3270[0x0][_0x5f5755('0x5a9')];return _0x4c0585['$evalAsync'](function(){const _0x8ee2a=_0x5f5755;_0x9701df['animate'](_0x9c3270,{'height':_0x7c56a3+'px'},{'height':_0x8ee2a('0x1345')},_0x7b53b1[_0x8ee2a('0xc42')])['then'](function(){const _0x156e0a=_0x8ee2a;_0x9c3270['removeClass'](_0x7b53b1[_0x156e0a('0xa79')]),_0x9c3270[_0x156e0a('0x17e4')]({'display':'','height':''}),_0x17e06e[_0x156e0a('0x155b')]({'success':!![]});});}),_0x17e06e[_0x5f5755('0x2219')];}};}};}const _0x24a7e9=_0x21a6a1['p']+'src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal.html',_0x1164dc=_0x21a6a1['p']+_0x566993('0x1068');_0x279fca[_0x566993('0x17bb')]=[_0x566993('0xf9b')],_0x5b3fd8['$inject']=['$scope',_0x566993('0x1a7f'),_0x566993('0xca5'),_0x566993('0x2276'),_0x566993('0x1009')],_0x283674[_0x566993('0x17bb')]=[_0x566993('0x1009')],_0x405ec6[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$element',_0x566993('0xca5'),_0x566993('0xa33'),_0x566993('0x2276'),'msNavigationService'],_0x132b51[_0x566993('0x17bb')]=[_0x566993('0xca5'),_0x566993('0x24b5'),_0x566993('0xd24'),_0x566993('0x1009')],_0x25d3cf['$inject']=[_0x566993('0x66f'),_0x566993('0x1009')];function _0x12676a(){const _0x223e74=_0x566993,_0x42ff26=angular['injector'](['ng'])[_0x223e74('0x1d97')](_0x223e74('0x21d9'));let _0x5007f9=[];const _0x4e266f=this;_0x4e266f[_0x223e74('0x10e0')]=_0x184cc1,_0x4e266f['deleteItem']=_0x2962a1,_0x4e266f[_0x223e74('0xa36')]=_0x45d043;function _0x184cc1(_0x22ebf9,_0x33bb6b){const _0x3a95ae=_0x223e74;if(!angular['isString'](_0x22ebf9)){_0x42ff26[_0x3a95ae('0x15aa')](_0x3a95ae('0xedd'));return;}const _0x114fe6=_0x22ebf9[_0x3a95ae('0x43a')]('.'),_0x14907d=_0x114fe6[_0x114fe6[_0x3a95ae('0x543')]-0x1],_0x1de79f=_0x406590(_0x114fe6);let _0xa04ac9=![];for(let _0x33ea38=0x0;_0x33ea38<_0x1de79f[_0x3a95ae('0x543')];_0x33ea38++){if(_0x1de79f[_0x33ea38][_0x3a95ae('0x22c')]===_0x14907d){_0xa04ac9=_0x1de79f[_0x33ea38];break;}}_0xa04ac9?(angular['extend'](_0xa04ac9,_0x33bb6b),_0xa04ac9[_0x3a95ae('0x4e0')]=_0x221af9(_0xa04ac9)):(_0x33bb6b[_0x3a95ae('0x13da')]=[],(angular[_0x3a95ae('0x8a8')](_0x33bb6b[_0x3a95ae('0x1c3')])||!angular['isNumber'](_0x33bb6b[_0x3a95ae('0x1c3')]))&&(_0x33bb6b[_0x3a95ae('0x1c3')]=0x1),_0x33bb6b[_0x3a95ae('0x22c')]=_0x14907d,_0x33bb6b[_0x3a95ae('0xf0')]=_0x22ebf9,_0x33bb6b[_0x3a95ae('0x4e0')]=_0x221af9(_0x33bb6b),_0x1de79f[_0x3a95ae('0x18bb')](_0x33bb6b));}function _0x2962a1(_0x10762f){const _0x51ddc4=_0x223e74;if(!angular[_0x51ddc4('0x250b')](_0x10762f)){_0x42ff26[_0x51ddc4('0x15aa')]('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}let _0x1d933a=_0x5007f9;const _0x21b959=_0x10762f[_0x51ddc4('0x43a')]('.');for(let _0x4219b7=0x0;_0x4219b7<_0x21b959[_0x51ddc4('0x543')];_0x4219b7++){const _0x549b72=_0x21b959[_0x4219b7];for(let _0x22e736=0x0;_0x22e736<_0x1d933a[_0x51ddc4('0x543')];_0x22e736++){if(_0x1d933a[_0x22e736][_0x51ddc4('0x22c')]===_0x549b72){if(_0x1d933a[_0x22e736][_0x51ddc4('0xf0')]===_0x10762f)return _0x1d933a[_0x51ddc4('0x553')](_0x22e736,0x1),!![];_0x1d933a=_0x1d933a[_0x22e736]['children'];break;}}}return![];}function _0x45d043(_0x5f4bb4){const _0x23d07d=_0x223e74;!_0x5f4bb4&&(_0x5f4bb4=_0x5007f9,_0x5f4bb4[_0x23d07d('0xfbe')](_0x86b4e2));for(let _0x1df716=0x0;_0x1df716<_0x5f4bb4[_0x23d07d('0x543')];_0x1df716++){const _0x258415=_0x5f4bb4[_0x1df716]['children'];_0x258415[_0x23d07d('0x543')]>0x1&&_0x258415['sort'](_0x86b4e2),_0x258415[_0x23d07d('0x543')]>0x0&&_0x45d043(_0x258415);}}function _0x406590(_0x3603a4){const _0x47bff9=_0x223e74;let _0x486661=_0x5007f9;if(_0x3603a4[_0x47bff9('0x543')]===0x1)return _0x486661;_0x3603a4[_0x47bff9('0x362')]();for(let _0x12bf69=0x0;_0x12bf69<_0x3603a4[_0x47bff9('0x543')];_0x12bf69++){const _0x40bebd=_0x3603a4[_0x12bf69];let _0x336e72=!![];for(let _0x4a4139=0x0;_0x4a4139<_0x486661[_0x47bff9('0x543')];_0x4a4139++){if(_0x486661[_0x4a4139]['_id']===_0x40bebd){_0x486661=_0x486661[_0x4a4139][_0x47bff9('0x13da')],_0x336e72=![];break;}}if(_0x336e72){const _0x561c09={'_id':_0x40bebd,'_path':_0x3603a4[_0x47bff9('0x2259')]('.'),'title':_0x40bebd,'weight':0x1,'children':[]};_0x486661['push'](_0x561c09),_0x486661=_0x561c09[_0x47bff9('0x13da')];}}return _0x486661;}function _0x86b4e2(_0x3b32a8,_0x518abc){const _0x1f413f=_0x223e74;return parseInt(_0x3b32a8['weight'])-parseInt(_0x518abc[_0x1f413f('0x1c3')]);}function _0x221af9(_0x2a1963){const _0xb5bfdf=_0x223e74;let _0x3a12ce='';return angular[_0xb5bfdf('0x4a5')](_0x2a1963[_0xb5bfdf('0x1a49')])&&(_0x3a12ce=_0x2a1963[_0xb5bfdf('0x1a49')],angular[_0xb5bfdf('0x4a5')](_0x2a1963['stateParams'])&&angular[_0xb5bfdf('0x181')](_0x2a1963[_0xb5bfdf('0x819')])&&(_0x3a12ce=_0x3a12ce+'('+angular['toJson'](_0x2a1963[_0xb5bfdf('0x819')])+')')),_0x3a12ce;}this[_0x223e74('0x2a8')]=function(){let _0x22f59d=null,_0x1812d9=null,_0x1cc229=null,_0x1ea8ef=null;const _0x4e107c={'saveItem':_0x184cc1,'deleteItem':_0x2962a1,'sort':_0x45d043,'clearNavigation':_0x51d983,'setActiveItem':_0x106fee,'getActiveItem':_0x517c4f,'getNavigation':_0x2ebda8,'getFlatNavigation':_0x2495ac,'setNavigationScope':_0x41f4e7,'setFolded':_0x4ebd77,'getFolded':_0x5e21f6,'setFoldedOpen':_0x524cf4,'getFoldedOpen':_0x2b0857,'toggleFolded':_0x4c01cd};return _0x4e107c;function _0x51d983(){const _0x494fef=a0_0xde5e;_0x5007f9=[],_0x1812d9&&(_0x1812d9['vm'][_0x494fef('0x1ea9')]=_0x5007f9);}function _0x106fee(_0x320d22,_0x230e9a){_0x22f59d={'node':_0x320d22,'scope':_0x230e9a};}function _0x517c4f(){return _0x22f59d;}function _0x2ebda8(_0x1a0234){const _0x27bcfe=a0_0xde5e;if(_0x1a0234){for(let _0x2ef3ef=0x0;_0x2ef3ef<_0x5007f9[_0x27bcfe('0x543')];_0x2ef3ef++){if(_0x5007f9[_0x2ef3ef][_0x27bcfe('0x22c')]===_0x1a0234)return[_0x5007f9[_0x2ef3ef]];}return null;}return _0x5007f9;}function _0x2495ac(_0x32181c){const _0x550bbd=_0x2ebda8(_0x32181c);return _0x16ee10(_0x550bbd);}function _0x41f4e7(_0x5da782){_0x1812d9=_0x5da782;}function _0x4ebd77(_0x18d599){_0x1cc229=_0x18d599;}function _0x5e21f6(){return _0x1cc229;}function _0x524cf4(_0x40e14d){_0x1ea8ef=_0x40e14d;}function _0x2b0857(){return _0x1ea8ef;}function _0x4c01cd(){_0x1812d9['toggleFolded']();}function _0x16ee10(_0x21766e){const _0x25f7ba=a0_0xde5e;let _0x30e7bd=[];for(let _0xdf328d=0x0;_0xdf328d<_0x21766e[_0x25f7ba('0x543')];_0xdf328d++){const _0x3df201=angular[_0x25f7ba('0x2e3')](_0x21766e[_0xdf328d]);_0x3df201['children']=[],_0x30e7bd[_0x25f7ba('0x18bb')](_0x3df201),_0x21766e[_0xdf328d][_0x25f7ba('0x13da')][_0x25f7ba('0x543')]>0x0&&(_0x30e7bd=_0x30e7bd[_0x25f7ba('0x163f')](_0x16ee10(_0x21766e[_0xdf328d]['children'])));}return _0x30e7bd;}};}function _0x25d3cf(_0x2bf9cb,_0x21e441){const _0x1d9ca8=_0x566993,_0x198877=this;_0x2bf9cb['root']?_0x198877['navigation']=_0x21e441[_0x1d9ca8('0x22f3')](_0x2bf9cb[_0x1d9ca8('0x149')]):_0x198877[_0x1d9ca8('0x1ea9')]=_0x21e441[_0x1d9ca8('0x22f3')]();_0x198877[_0x1d9ca8('0x11b5')]=_0x49517e,_0x4295b3();function _0x4295b3(){const _0x2400c1=_0x1d9ca8;_0x21e441[_0x2400c1('0xfbe')]();}function _0x49517e(){const _0x41d52f=_0x1d9ca8;angular[_0x41d52f('0xb6d')](_0x41d52f('0x1a5'))[_0x41d52f('0xe0b')]('ms-navigation-horizontal-mobile-menu-active');}}function _0x132b51(_0x4fcf84,_0x39317b,_0x3a345b,_0x224e20){const _0x48083b=_0x566993;return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':_0x48083b('0xbc8'),'templateUrl':_0x1164dc,'transclude':!![],'compile':function(_0x3f0b2c){const _0x578397=_0x48083b;return _0x3f0b2c[_0x578397('0x88c')]('ms-navigation'),function _0x2d8d44(_0x44ad45,_0x5947e7){const _0x39b881=_0x578397,_0x2d4419=angular['element']('body'),_0x3e7cb6=angular[_0x39b881('0xb6d')](_0x39b881('0xe9b')),_0x88aca2=angular[_0x39b881('0xb6d')](_0x39b881('0x265')),_0x3c7555=_0x3a345b(_0x39b881('0x1ea9'));_0x224e20[_0x39b881('0x7f7')](_0x44ad45),_0x160ec6();function _0x160ec6(){const _0x1a7fa8=_0x39b881;_0x224e20[_0x1a7fa8('0x85a')]()===null&&_0x224e20[_0x1a7fa8('0x253')](_0x44ad45['folded']),_0x224e20[_0x1a7fa8('0x85a')]()&&(_0x39317b(function(){const _0x523555=_0x1a7fa8;_0x4fcf84[_0x523555('0x21e8')](_0x523555('0x1bd'));}),_0x2d4419[_0x1a7fa8('0x88c')](_0x1a7fa8('0x1291')),_0x56b847());}_0x44ad45['$watch'](function(){return _0x3c7555['isLockedOpen']();},function(_0x3625e2,_0x144cdf){const _0xfd9c7e=_0x39b881;if(angular[_0xfd9c7e('0x8a8')](_0x3625e2)||angular[_0xfd9c7e('0x1482')](_0x3625e2,_0x144cdf))return;const _0x20f36b=_0x224e20[_0xfd9c7e('0x85a')]();if(_0x20f36b){if(_0x3625e2)_0x4fcf84[_0xfd9c7e('0x21e8')](_0xfd9c7e('0x1bd'));else{const _0x3bdb82=_0x224e20[_0xfd9c7e('0xefc')]();_0x3bdb82&&_0x3bdb82['scope'][_0xfd9c7e('0x1d12')](_0xfd9c7e('0x666'));}}}),_0x44ad45['$watch'](_0x39b881('0x714'),function(_0x462d17,_0x57ad2e){const _0x246dc0=_0x39b881;if(angular[_0x246dc0('0x8a8')](_0x462d17)||angular[_0x246dc0('0x1482')](_0x462d17,_0x57ad2e))return;_0x387be1(_0x462d17);});function _0x387be1(_0x52a864){const _0x12d9d6=_0x39b881;_0x224e20['setFolded'](_0x52a864);if(_0x52a864)_0x4fcf84['$broadcast'](_0x12d9d6('0x1bd')),_0x2d4419[_0x12d9d6('0x88c')](_0x12d9d6('0x1291')),_0x56b847();else{const _0x3539d9=_0x224e20[_0x12d9d6('0xefc')]();_0x3539d9&&_0x3539d9['scope'][_0x12d9d6('0x1d12')](_0x12d9d6('0x666')),_0x2d4419[_0x12d9d6('0x3b3')]('ms-navigation-folded\x20ms-navigation-folded-open'),_0x11e5ac();}}function _0x56b847(){const _0x497700=_0x39b881;_0x5947e7['parent']()[_0x497700('0xe53')](_0x3e7cb6),_0x39317b(function(){const _0x2aa9f2=_0x497700;_0x3e7cb6['on'](_0x2aa9f2('0xb44'),_0xaf7e88);});}function _0x2a2768(){const _0x1cbf5b=_0x39b881;_0x2d4419[_0x1cbf5b('0x18ab')](_0x1cbf5b('0x1143'))[_0x1cbf5b('0xe53')](_0x88aca2),_0x88aca2['on']('mouseenter\x20touchstart',_0x5821ea);}function _0x11e5ac(){const _0x5b10b3=_0x39b881;_0x88aca2[_0x5b10b3('0x1a8b')]();}function _0xaf7e88(_0x5a697c){const _0x4e8d66=_0x39b881;_0x5a697c&&_0x5a697c[_0x4e8d66('0x26f8')]();_0x224e20[_0x4e8d66('0xbea')](!![]);const _0x17455c=_0x224e20[_0x4e8d66('0xefc')]();_0x17455c&&_0x17455c['scope'][_0x4e8d66('0x1d12')](_0x4e8d66('0x666')),_0x2d4419[_0x4e8d66('0x88c')](_0x4e8d66('0x1ce1')),_0x3e7cb6[_0x4e8d66('0x1a8b')](),_0x2a2768();}function _0x5821ea(_0xc4604e){const _0x44ece6=_0x39b881;_0xc4604e&&_0xc4604e[_0x44ece6('0x26f8')](),_0x224e20[_0x44ece6('0xbea')](![]),_0x4fcf84[_0x44ece6('0x21e8')](_0x44ece6('0x1bd')),_0x2d4419['removeClass']('ms-navigation-folded-open'),_0x88aca2[_0x44ece6('0x1a8b')](),_0x56b847();}_0x44ad45['toggleFolded']=function(){const _0x5744a1=_0x39b881,_0x402e39=_0x224e20[_0x5744a1('0x85a')]();_0x387be1(!_0x402e39);},_0x44ad45['$on'](_0x39b881('0xf9a'),function(){_0x3c7555['close']();}),_0x44ad45['$on']('$destroy',function(){const _0x57f3a2=_0x39b881;_0x88aca2[_0x57f3a2('0x352')](_0x57f3a2('0xb44')),_0x3e7cb6[_0x57f3a2('0x352')](_0x57f3a2('0xb44'));});};}};}function _0x405ec6(_0x433537,_0xd8cbe1,_0x20d1e6,_0x55f678,_0x24b977,_0x6c729e){const _0xabaa4b=_0x566993,_0x11f083=this;_0x11f083['element']=_0xd8cbe1,_0x11f083[_0xabaa4b('0x161b')]=_0x433537[_0xabaa4b('0x161b')],_0x11f083[_0xabaa4b('0x1e9')]=undefined,_0x11f083[_0xabaa4b('0x2071')]=undefined,_0x11f083[_0xabaa4b('0x1531')]=undefined,_0x11f083[_0xabaa4b('0x1ed6')]=undefined,_0x11f083[_0xabaa4b('0x1301')]=_0xabaa4b('0x76b'),_0x11f083[_0xabaa4b('0xe9a')]=_0x258538,_0x11f083[_0xabaa4b('0x7a0')]=_0x4f4a29,_0x11f083['expand']=_0xe3547,_0x11f083['getClass']=_0x370c0a,_0x11f083['isHidden']=_0x40efc7,_0x5dc4bc();function _0x5dc4bc(){const _0x3f1e27=_0xabaa4b;_0x11f083[_0x3f1e27('0x1e9')]=_0x11f083[_0x3f1e27('0x161b')]['children'][_0x3f1e27('0x543')]>0x0,_0x11f083['group']=!!(angular[_0x3f1e27('0x4a5')](_0x11f083[_0x3f1e27('0x161b')][_0x3f1e27('0x1ed6')])&&_0x11f083[_0x3f1e27('0x161b')][_0x3f1e27('0x1ed6')]===!![]);!_0x11f083[_0x3f1e27('0x1e9')]||_0x11f083['group']?_0x11f083[_0x3f1e27('0x1531')]=![]:_0x11f083[_0x3f1e27('0x1531')]=!!(angular[_0x3f1e27('0x8a8')](_0x11f083['node'][_0x3f1e27('0x1531')])||typeof _0x11f083[_0x3f1e27('0x161b')][_0x3f1e27('0x1531')]!=='boolean'||_0x11f083['node'][_0x3f1e27('0x1531')]===!![]);!_0x11f083[_0x3f1e27('0x1531')]?_0x11f083[_0x3f1e27('0x2071')]=![]:_0x11f083['collapsed']=!!(angular[_0x3f1e27('0x8a8')](_0x11f083['node'][_0x3f1e27('0x2071')])||typeof _0x11f083['node'][_0x3f1e27('0x2071')]!==_0x3f1e27('0x1e60')||_0x11f083[_0x3f1e27('0x161b')][_0x3f1e27('0x2071')]===!![]);if(_0x11f083[_0x3f1e27('0x161b')][_0x3f1e27('0x1a49')]===_0x24b977[_0x3f1e27('0x9fe')][_0x3f1e27('0x10ad')]||_0x24b977[_0x3f1e27('0x2814')](_0x11f083[_0x3f1e27('0x161b')][_0x3f1e27('0x1a49')])){if(angular['isDefined'](_0x11f083['node'][_0x3f1e27('0x819')])&&angular[_0x3f1e27('0x4a5')](_0x24b977[_0x3f1e27('0x197a')])&&!angular['equals'](_0x11f083[_0x3f1e27('0x161b')][_0x3f1e27('0x819')],_0x24b977[_0x3f1e27('0x197a')]))return;_0x433537[_0x3f1e27('0x1d12')](_0x3f1e27('0x666')),_0x6c729e['setActiveItem'](_0x11f083[_0x3f1e27('0x161b')],_0x433537);}_0x433537[_0x3f1e27('0xbf6')](_0x3f1e27('0x666'),function(){const _0x3dda6f=_0x3f1e27;_0x11f083['collapsable']&&_0x11f083[_0x3dda6f('0x2071')]&&_0x433537[_0x3dda6f('0x1a4a')](function(){const _0x4f4761=_0x3dda6f;_0x11f083[_0x4f4761('0x2071')]=![];});}),_0x433537['$on'](_0x3f1e27('0x1bd'),function(_0x494562,_0x5d612b){const _0x4e1343=_0x3f1e27;if(_0x11f083[_0x4e1343('0x2071')]||!_0x11f083[_0x4e1343('0x1531')])return;if(angular[_0x4e1343('0x8a8')](_0x5d612b))_0x11f083['collapse']();else{const _0x7c2156=_0x5d612b['split']('.');let _0x4b2305=[];const _0x1804d9=_0x6c729e[_0x4e1343('0xefc')]();_0x1804d9&&(_0x4b2305=_0x1804d9[_0x4e1343('0x161b')][_0x4e1343('0xf0')][_0x4e1343('0x43a')]('.'));if(_0x7c2156[_0x4e1343('0x2087')](_0x11f083[_0x4e1343('0x161b')][_0x4e1343('0x22c')])>-0x1)return;if(_0x4b2305[_0x4e1343('0x2087')](_0x11f083[_0x4e1343('0x161b')]['_id'])>-0x1)return;_0x11f083['collapse']();}}),_0x433537[_0x3f1e27('0xbf6')](_0x3f1e27('0x1d88'),function(){const _0x39c489=_0x3f1e27;if(_0x11f083['node'][_0x39c489('0x1a49')]===_0x24b977[_0x39c489('0x9fe')][_0x39c489('0x10ad')]){if(angular[_0x39c489('0x4a5')](_0x11f083[_0x39c489('0x161b')][_0x39c489('0x819')])&&angular[_0x39c489('0x4a5')](_0x24b977['params'])&&!angular['equals'](_0x11f083[_0x39c489('0x161b')]['stateParams'],_0x24b977[_0x39c489('0x197a')]))return;_0x6c729e[_0x39c489('0xc5')](_0x11f083[_0x39c489('0x161b')],_0x433537),_0x20d1e6[_0x39c489('0x21e8')](_0x39c489('0x1bd'),_0x11f083['node'][_0x39c489('0xf0')]);}if(_0x24b977['includes'](_0x11f083[_0x39c489('0x161b')][_0x39c489('0x1a49')])){if(angular['isDefined'](_0x11f083[_0x39c489('0x161b')][_0x39c489('0x819')])&&angular[_0x39c489('0x4a5')](_0x24b977[_0x39c489('0x197a')])&&!angular[_0x39c489('0x1482')](_0x11f083['node']['stateParams'],_0x24b977[_0x39c489('0x197a')]))return;_0x433537[_0x39c489('0x1d12')](_0x39c489('0x666'));}});}function _0x258538(){const _0x510a08=_0xabaa4b;_0x11f083[_0x510a08('0x2071')]?_0x11f083[_0x510a08('0x2344')]():_0x11f083['collapse']();}function _0x4f4a29(){const _0x55f177=_0xabaa4b,_0x229fa8=_0x11f083[_0x55f177('0xb6d')][_0x55f177('0x13da')]('ul'),_0x24fbe5=_0x229fa8[0x0][_0x55f177('0x5a9')];_0x433537[_0x55f177('0x1a4a')](function(){const _0x179d3e=_0x55f177;_0x11f083[_0x179d3e('0x2071')]=!![],_0x11f083[_0x179d3e('0xb6d')][_0x179d3e('0x88c')](_0x179d3e('0x1cd0')),_0x55f678['animate'](_0x229fa8,{'display':'block','height':_0x24fbe5+'px'},{'height':_0x179d3e('0x1345')},_0x11f083[_0x179d3e('0x1301')])[_0x179d3e('0x173b')](function(){const _0x415346=_0x179d3e;_0x229fa8[_0x415346('0x17e4')]({'display':'','height':''}),_0x11f083[_0x415346('0xb6d')][_0x415346('0x3b3')](_0x415346('0x1cd0'));}),_0x433537[_0x179d3e('0x21e8')]('msNavigation::collapse');});}function _0xe3547(){const _0x1addff=_0xabaa4b,_0x1c3536=_0x11f083[_0x1addff('0xb6d')][_0x1addff('0x13da')]('ul');_0x1c3536[_0x1addff('0x17e4')]({'position':_0x1addff('0xc2f'),'visibility':_0x1addff('0x202b'),'display':_0x1addff('0x3eb'),'height':_0x1addff('0x1afd')});const _0x1dd8f6=_0x1c3536[0x0][_0x1addff('0x5a9')];_0x1c3536[_0x1addff('0x17e4')]({'position':'','visibility':'','display':'','height':''}),_0x433537[_0x1addff('0x1a4a')](function(){const _0x5e1a04=_0x1addff;_0x11f083['collapsed']=![],_0x11f083[_0x5e1a04('0xb6d')]['addClass'](_0x5e1a04('0xdf1')),_0x55f678[_0x5e1a04('0x190d')](_0x1c3536,{'display':_0x5e1a04('0x3eb'),'height':_0x5e1a04('0x1345')},{'height':_0x1dd8f6+'px'},_0x11f083[_0x5e1a04('0x1301')])['then'](function(){const _0x362952=_0x5e1a04;_0x1c3536[_0x362952('0x17e4')]({'height':''}),_0x11f083[_0x362952('0xb6d')][_0x362952('0x3b3')](_0x362952('0xdf1'));}),_0x20d1e6['$broadcast'](_0x5e1a04('0x1bd'),_0x11f083[_0x5e1a04('0x161b')][_0x5e1a04('0xf0')]);});}function _0x370c0a(){const _0x2d4b66=_0xabaa4b;return _0x11f083[_0x2d4b66('0x161b')][_0x2d4b66('0x7c1')];}function _0x40efc7(){const _0x1710f8=_0xabaa4b;if(angular[_0x1710f8('0x4a5')](_0x11f083[_0x1710f8('0x161b')][_0x1710f8('0x202b')])&&angular[_0x1710f8('0x1c25')](_0x11f083[_0x1710f8('0x161b')][_0x1710f8('0x202b')]))return _0x11f083[_0x1710f8('0x161b')][_0x1710f8('0x202b')]();return![];}}function _0x25ecd9(){const _0x3ecd34=_0x566993;return{'restrict':'A','bindToController':{'node':_0x3ecd34('0x149f')},'controller':_0x3ecd34('0x20d'),'compile':function(_0xe6e64e){const _0x1f966f=_0x3ecd34;return _0xe6e64e['addClass'](_0x1f966f('0xaaf')),function _0x5fbf95(_0x383b9d,_0x140774,_0x25da49,_0x31319c){const _0x3d5651=_0x1f966f;_0x140774['addClass'](_0x31319c[_0x3d5651('0xb83')]()),_0x31319c[_0x3d5651('0x1ed6')]&&_0x140774[_0x3d5651('0x88c')](_0x3d5651('0x1ed6'));};}};}function _0x40d530(){const _0x11a93a=_0x566993;return{'restrict':'A','require':_0x11a93a('0xbe'),'compile':function(_0x4b089f){const _0x21856d=_0x11a93a;return _0x4b089f[_0x21856d('0x88c')](_0x21856d('0x744')),function _0x27cf6a(_0x22add9,_0x35c48a,_0x517c32,_0x350b3a){const _0x496cce=_0x21856d;_0x350b3a['collapsable']&&_0x35c48a['on']('click',_0x350b3a['toggleCollapsed']),_0x22add9[_0x496cce('0xbf6')]('$destroy',function(){const _0x582617=_0x496cce;_0x35c48a['off'](_0x582617('0x3cb'));});};}};}function _0x283674(_0x367459){const _0x3eebc8=_0x566993;return{'restrict':'E','scope':{'root':'@'},'controller':_0x3eebc8('0xbc8'),'templateUrl':_0x24a7e9,'transclude':!![],'compile':function(_0x47778b){const _0x2e5144=_0x3eebc8;return _0x47778b['addClass'](_0x2e5144('0x1bea')),function _0x4cc480(_0x2f1e1e){const _0x335731=_0x2e5144;_0x367459[_0x335731('0x7f7')](_0x2f1e1e);};}};}function _0x5b3fd8(_0x2ba78c,_0x219c2d,_0x3fce2a,_0x516c78,_0x14036e){const _0x259d19=_0x566993,_0x1ab3af=this;_0x1ab3af[_0x259d19('0xb6d')]=_0x219c2d,_0x1ab3af[_0x259d19('0x161b')]=_0x2ba78c['node'],_0x1ab3af['hasChildren']=undefined,_0x1ab3af[_0x259d19('0x1ed6')]=undefined,_0x1ab3af[_0x259d19('0xb83')]=_0x31f5b5,_0x4744df();function _0x4744df(){const _0x330b99=_0x259d19;_0x1ab3af[_0x330b99('0x1608')]=![],_0x1ab3af[_0x330b99('0x1e9')]=_0x1ab3af[_0x330b99('0x161b')][_0x330b99('0x13da')][_0x330b99('0x543')]>0x0,_0x1ab3af['group']=!!(angular[_0x330b99('0x4a5')](_0x1ab3af[_0x330b99('0x161b')][_0x330b99('0x1ed6')])&&_0x1ab3af[_0x330b99('0x161b')][_0x330b99('0x1ed6')]===!![]);if(_0x1ab3af[_0x330b99('0x161b')]['state']===_0x516c78[_0x330b99('0x9fe')][_0x330b99('0x10ad')]||_0x516c78[_0x330b99('0x2814')](_0x1ab3af['node']['state'])){if(angular[_0x330b99('0x4a5')](_0x1ab3af[_0x330b99('0x161b')]['stateParams'])&&angular['isDefined'](_0x516c78['params'])&&!angular[_0x330b99('0x1482')](_0x1ab3af[_0x330b99('0x161b')][_0x330b99('0x819')],_0x516c78[_0x330b99('0x197a')]))return;_0x2ba78c[_0x330b99('0x1d12')](_0x330b99('0x666')),_0x14036e['setActiveItem'](_0x1ab3af['node'],_0x2ba78c);}_0x2ba78c[_0x330b99('0xbf6')](_0x330b99('0x666'),function(){const _0x7985f5=_0x330b99;_0x1ab3af[_0x7985f5('0x1e9')]&&_0x2ba78c[_0x7985f5('0x1a4a')](function(){const _0x581afa=_0x7985f5;_0x1ab3af[_0x581afa('0x1608')]=!![];});}),_0x2ba78c[_0x330b99('0xbf6')](_0x330b99('0x17e7'),function(){const _0x54ff1c=_0x330b99;if(!_0x1ab3af[_0x54ff1c('0x1e9')])return;let _0x59489f=[];const _0x216b73=_0x14036e[_0x54ff1c('0xefc')]();_0x216b73&&(_0x59489f=_0x216b73['node']['_path'][_0x54ff1c('0x43a')]('.')),_0x59489f[_0x54ff1c('0x2087')](_0x1ab3af[_0x54ff1c('0x161b')][_0x54ff1c('0x22c')])>-0x1?_0x2ba78c[_0x54ff1c('0x1a4a')](function(){const _0x430e58=_0x54ff1c;_0x1ab3af[_0x430e58('0x1608')]=!![];}):_0x2ba78c['$evalAsync'](function(){const _0x2b5939=_0x54ff1c;_0x1ab3af[_0x2b5939('0x1608')]=![];});}),_0x2ba78c[_0x330b99('0xbf6')](_0x330b99('0x1d88'),function(){const _0x43c590=_0x330b99;if(_0x1ab3af[_0x43c590('0x161b')][_0x43c590('0x1a49')]===_0x516c78[_0x43c590('0x9fe')][_0x43c590('0x10ad')]||_0x516c78[_0x43c590('0x2814')](_0x1ab3af['node'][_0x43c590('0x1a49')])){if(angular['isDefined'](_0x1ab3af[_0x43c590('0x161b')]['stateParams'])&&angular['isDefined'](_0x516c78[_0x43c590('0x197a')])&&!angular[_0x43c590('0x1482')](_0x1ab3af[_0x43c590('0x161b')][_0x43c590('0x819')],_0x516c78[_0x43c590('0x197a')]))return;_0x14036e[_0x43c590('0xc5')](_0x1ab3af[_0x43c590('0x161b')],_0x2ba78c),_0x3fce2a[_0x43c590('0x21e8')]('msNavigation::clearActive');}});}function _0x31f5b5(){const _0x5d248e=_0x259d19;return _0x1ab3af[_0x5d248e('0x161b')][_0x5d248e('0x7c1')];}}function _0x240f33(){const _0x43c88f=_0x566993;return{'restrict':'A','bindToController':{'node':_0x43c88f('0x1e80')},'controller':_0x43c88f('0xa8a'),'compile':function(_0x38fb2e){const _0x1b7b30=_0x43c88f;return _0x38fb2e[_0x1b7b30('0x88c')](_0x1b7b30('0xbab')),function _0x32c95d(_0x47396b,_0x2e20f3,_0x28d317,_0x4c709a){const _0x5d1184=_0x1b7b30;_0x2e20f3[_0x5d1184('0x88c')](_0x4c709a[_0x5d1184('0xb83')]()),_0x4c709a[_0x5d1184('0x1ed6')]&&_0x2e20f3['addClass'](_0x5d1184('0x1ed6'));};}};}function _0x279fca(_0x357c1a){const _0x3e826a=_0x566993;return{'restrict':'A','require':_0x3e826a('0x53b'),'compile':function(_0x51d0bf){const _0x5cb90c=_0x3e826a;return _0x51d0bf[_0x5cb90c('0x88c')](_0x5cb90c('0x1331')),function _0x571d78(_0x45e947,_0x164634,_0x382c5b,_0x4bafa7){const _0x266448=_0x5cb90c;_0x164634['on']('click',_0x16607d);function _0x16607d(){const _0x2e0426=a0_0xde5e;if(!_0x4bafa7[_0x2e0426('0x1e9')]||_0x357c1a('gt-md'))return;_0x164634[_0x2e0426('0xe0b')](_0x2e0426('0xa79'));}_0x45e947['$on'](_0x266448('0x16d2'),function(){const _0x433798=_0x266448;_0x164634['off'](_0x433798('0x3cb'));});};}};}const _0x17eceb=_0x21a6a1['p']+'src/js/modules/core/directives/ms-phonebar/record/dialog.html/dialog.html',_0x569dee=_0x21a6a1['p']+'src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog.html',_0x519c5d=_0x21a6a1['p']+'src/js/modules/core/directives/ms-phonebar/settings/settings.html/settings.html',_0x110b61=_0x21a6a1['p']+_0x566993('0x1266');var _0x4285cb=_0x21a6a1(0x175b),_0x41f627=_0x21a6a1['n'](_0x4285cb),_0x31e12b=_0x21a6a1(0x26ba),_0x4223ce=_0x21a6a1['n'](_0x31e12b);_0x39fe2c[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$document',_0x566993('0x24b5'),_0x566993('0x1b13'),_0x566993('0x1fe5'),_0x566993('0x1276'),_0x566993('0x1d31'),'$translate','$http','toasty',_0x566993('0xbd4'),'motNotification',_0x566993('0x1600'),_0x566993('0x2fc')];function _0x39fe2c(_0x5af05c,_0xc7208c,_0x1771f7,_0xae0e2f,_0x15921e,_0x2127e7,_0x3bc1b2,_0x1d7c84,_0x30a3bd,_0x312ad8,_0x128c83,_0x143a05,_0x1cfd5f,_0x2d6a93){const _0xd4844=_0x566993,_0x6d5a09=this,_0x37ce95=window[_0xd4844('0x174b')];_0x6d5a09[_0xd4844('0x19d8')]=_0x128c83[_0xd4844('0x19d8')],_0x6d5a09[_0xd4844('0x11dd')]=_0x5af05c[_0xd4844('0x1d44')]['vm'][_0xd4844('0x11dd')];const _0x2ff912=[_0xd4844('0x20d8'),_0xd4844('0xb59'),_0xd4844('0x18db'),_0xd4844('0x14d7'),_0xd4844('0x1deb'),_0xd4844('0x2621'),_0xd4844('0x94d'),_0xd4844('0x1541'),'microphoneMute'],_0x2afa39=_0x6d5a09['conf']&&JSON[_0xd4844('0x1d5e')](_0x3bc1b2[_0xd4844('0x1937')][_0xd4844('0x1949')](_0xd4844('0x1ce5')+_0x6d5a09[_0xd4844('0x11dd')]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0xae0e2f(function(){},0x3e7),_0x6d5a09['direction']=_0xd4844('0x14af'),_0x6d5a09[_0xd4844('0x209')]=_0xd4844('0x18d7'),_0x6d5a09[_0xd4844('0x235')]='',_0x6d5a09[_0xd4844('0x141d')]=![],_0x6d5a09[_0xd4844('0x1211')]=document[_0xd4844('0x1258')]('audio'),_0x6d5a09[_0xd4844('0x135c')]=document[_0xd4844('0x1c4d')](_0x6d5a09[_0xd4844('0x11dd')][_0xd4844('0x1418')]),_0x6d5a09[_0xd4844('0x1211')]['volume']=0x1,_0x6d5a09[_0xd4844('0x1bda')]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x6d5a09[_0xd4844('0x94a')]=[],_0x6d5a09[_0xd4844('0x23d5')]=[],_0x6d5a09[_0xd4844('0x75c')]=[],_0x6d5a09[_0xd4844('0x12d2')]=![],_0x6d5a09['isInConference']=![],_0x6d5a09[_0xd4844('0x1c16')]=[],_0x6d5a09['ua']=new(_0x41f627())['UA']({'sockets':[new(_0x41f627())[(_0xd4844('0x9a0'))]('wss://'+_0x6d5a09[_0xd4844('0x11dd')][_0xd4844('0x4d1')]+':8089/ws')],'uri':new(_0x41f627())[(_0xd4844('0xed1'))](_0xd4844('0x1bef'),_0x6d5a09[_0xd4844('0x11dd')][_0xd4844('0x10ad')],_0x6d5a09[_0xd4844('0x11dd')]['host'],0x13c4,null,null)[_0xd4844('0x1b75')](),'authorization_user':_0x6d5a09[_0xd4844('0x11dd')]['name'],'ha1':_0x6d5a09[_0xd4844('0x11dd')][_0xd4844('0x8d9')],'realm':_0x6d5a09[_0xd4844('0x11dd')]['realm'],'user_agent':_0x6d5a09['conf']['ua'],'session_timers_refresh_method':_0xd4844('0x265a'),'register_expires':_0x6d5a09[_0xd4844('0x11dd')][_0xd4844('0x4e')]||0x3c,'register':!![]}),_0x6d5a09[_0xd4844('0x11dd')]=_0x3c8d8a()[_0xd4844('0x9ef')](_0x2afa39[_0xd4844('0x5c8')],_0x6d5a09[_0xd4844('0x11dd')]),_0x6d5a09[_0xd4844('0x355')]=![],_0x6d5a09[_0xd4844('0x9a5')]=![],_0x6d5a09[_0xd4844('0x210b')]=![],_0x6d5a09[_0xd4844('0x1861')]=null,_0x6d5a09[_0xd4844('0xadd')]=![],_0x6d5a09[_0xd4844('0x434')]=![],_0x6d5a09['originateInProgress']=![];function _0x2795be(){const _0x48a593=_0xd4844;_0x88476a(![]),navigator['mediaDevices'][_0x48a593('0x25b3')]=function(){const _0x528203=_0x48a593;!_0x6d5a09[_0x528203('0x355')]&&(_0x6d5a09[_0x528203('0x355')]=!![],_0x37ce95&&_0x6d5a09['isJabraInitialized']?_0x37ce95[_0x528203('0x886')]()[_0x528203('0x173b')](function(){const _0x2ae71f=_0x528203;_0x6d5a09[_0x2ae71f('0x210b')]=![],_0x6d5a09[_0x2ae71f('0x9a5')]=![],_0x88476a(!![]);})[_0x528203('0x103c')](function(_0x4840c5){const _0x37aec1=_0x528203;console[_0x37aec1('0x15aa')](_0x37aec1('0x1497'),_0x4840c5);}):_0x88476a(!![]));};const _0x2fa586=[_0x128c83['network'][_0x48a593('0x1d97')]({'type':_0x48a593('0x22b4'),'nolimit':!![]})['$promise'],_0x128c83[_0x48a593('0x1fd7')][_0x48a593('0x1d97')]({'type':_0x48a593('0x424'),'nolimit':!![]})[_0x48a593('0x1964')]];Promise[_0x48a593('0x27c8')](_0x2fa586)[_0x48a593('0x173b')](function(_0x25c580){const _0x2bd5af=_0x48a593,_0x23eafb=_0x25c580[0x0][_0x2bd5af('0x6aa')],_0x518577=_0x25c580[0x1][_0x2bd5af('0x6aa')],_0x3fc0c7=[],_0x423e3a=[];_0x518577['forEach'](function(_0x1d190d){const _0x27734d=_0x2bd5af;_0x423e3a[_0x27734d('0x18bb')](_0x27734d('0x6b5')+_0x1d190d[_0x27734d('0xa7b')]);}),_0x3fc0c7[_0x2bd5af('0x18bb')]({'urls':_0x423e3a}),_0x23eafb[_0x2bd5af('0xa6a')](function(_0x591bf1){const _0x2ad895=_0x2bd5af,_0x49ab95={'urls':'turn:'+_0x591bf1[_0x2ad895('0xa7b')]};_0x591bf1[_0x2ad895('0x22de')]&&(_0x49ab95[_0x2ad895('0x22de')]=_0x591bf1[_0x2ad895('0x22de')]),_0x591bf1['password']&&(_0x49ab95['credential']=_0x591bf1[_0x2ad895('0xdb6')]),_0x3fc0c7['push'](_0x49ab95);}),_0x6d5a09['sessionConf'][_0x2bd5af('0x1fa7')]={'iceServers':_0x3fc0c7};}),this['ua']['on'](_0x48a593('0x2614'),_0x1d12dd[_0x48a593('0xfa5')](this)),this['ua']['on'](_0x48a593('0x1d3b'),_0x606100[_0x48a593('0xfa5')](this)),this['ua']['on'](_0x48a593('0x27af'),_0x1e01c1[_0x48a593('0xfa5')](this)),_0x2d6a93['on']('webbar:originate',_0xf57738[_0x48a593('0xfa5')](this)),_0x2d6a93['on']('webbar:hangup',_0x39d840[_0x48a593('0xfa5')](this)),_0x2d6a93['on']('webbar:answer',_0x42bd25[_0x48a593('0xfa5')](this)),_0x2d6a93['on']('webbar:hold',_0x5e694d[_0x48a593('0xfa5')](this)),_0x2d6a93['on'](_0x48a593('0x2328'),_0x1eabf6['bind'](this)),_0x2d6a93['on'](_0x48a593('0x1e3f'),_0x1731a2[_0x48a593('0xfa5')](this));}function _0x88476a(_0x3e2e89){const _0x51f5f0=_0xd4844;let _0x3bcce8,_0x3d97f6,_0x367d77;return _0x6d5a09[_0x51f5f0('0x355')]=!![],navigator['mediaDevices'][_0x51f5f0('0x70f')]({'audio':!![]})[_0x51f5f0('0x173b')](function(_0x58cbdc){const _0x309ef4=_0x51f5f0;return _0x58cbdc[_0x309ef4('0x1264')]()['forEach'](function(_0x261a30){_0x261a30['stop']();}),navigator[_0x309ef4('0x220f')][_0x309ef4('0x10a4')]();})[_0x51f5f0('0x173b')](function(_0xb10475){const _0xc62863=_0x51f5f0,_0x4d1984=_0x3c8d8a()[_0xc62863('0x278d')](_0xb10475,function(_0x1150a6){const _0x4645c5=_0xc62863;return _0x1150a6[_0x4645c5('0x29e')]===_0x4645c5('0x4fc')&&_0x1150a6[_0x4645c5('0xdcb')]!==_0x4645c5('0x1ef2')&&_0x1150a6[_0x4645c5('0xdcb')]!==_0x4645c5('0x15cd');});if(_0x4d1984[_0xc62863('0x543')]>0x0){const _0x286906=_0x3c8d8a()[_0xc62863('0x18ab')](_0xb10475,function(_0x444938){const _0x391a7e=_0xc62863;return _0x444938[_0x391a7e('0xdcb')]===_0x391a7e('0x1ef2')&&_0x444938[_0x391a7e('0x29e')]==='audioinput';});_0x367d77=_0x3c8d8a()[_0xc62863('0x18ab')](_0x4d1984,function(_0xe433bd){const _0x1d6f6c=_0xc62863;return _0xe433bd[_0x1d6f6c('0x15fc')]===_0x286906[_0x1d6f6c('0x15fc')];});if(_0x6d5a09[_0xc62863('0x11dd')]['microphoneId']&&!_0x3e2e89){const _0x2f20fc=_0x3c8d8a()[_0xc62863('0x18ab')](_0x4d1984,function(_0x5c4350){const _0xd324a5=_0xc62863;return _0x5c4350[_0xd324a5('0xdcb')]===_0x6d5a09[_0xd324a5('0x11dd')][_0xd324a5('0x18db')];});_0x2f20fc&&(_0x367d77=_0x2f20fc);}_0x6d5a09[_0xc62863('0x11dd')][_0xc62863('0x18db')]=_0x367d77[_0xc62863('0xdcb')];}else _0x312ad8[_0xc62863('0xd50')]({'title':_0x1d7c84['instant'](_0xc62863('0x1284')),'msg':_0x1d7c84[_0xc62863('0x1467')]('TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0xc62863('0x16bb')});_0x6d5a09[_0xc62863('0x11dd')][_0xc62863('0x18db')]?_0x6d5a09[_0xc62863('0x1bda')][_0xc62863('0x1caa')][_0xc62863('0x1f78')]={'deviceId':_0x6d5a09['conf']['microphoneId']}:_0x6d5a09[_0xc62863('0x1bda')][_0xc62863('0x1caa')][_0xc62863('0x1f78')]=!![];_0x3e527a('microphone',![]);const _0x279855=_0x3c8d8a()[_0xc62863('0x278d')](_0xb10475,function(_0x353beb){const _0xbe8b80=_0xc62863;return _0x353beb[_0xbe8b80('0x29e')]===_0xbe8b80('0x1bcd')&&_0x353beb[_0xbe8b80('0xdcb')]!==_0xbe8b80('0x1ef2')&&_0x353beb[_0xbe8b80('0xdcb')]!=='communications';});if(_0x279855[_0xc62863('0x543')]>0x0){const _0x1f234f=_0x3c8d8a()[_0xc62863('0x18ab')](_0xb10475,function(_0x1deb45){const _0x35e7ec=_0xc62863;return _0x1deb45[_0x35e7ec('0xdcb')]===_0x35e7ec('0x1ef2')&&_0x1deb45['kind']===_0x35e7ec('0x1bcd');});_0x3bcce8=_0x3c8d8a()[_0xc62863('0x18ab')](_0x279855,function(_0x5d096e){const _0x3485cc=_0xc62863;return _0x5d096e[_0x3485cc('0x15fc')]===_0x1f234f[_0x3485cc('0x15fc')];}),_0x3d97f6=_0x3bcce8;if(_0x6d5a09[_0xc62863('0x11dd')][_0xc62863('0xb59')]&&!_0x3e2e89){const _0x153cb6=_0x3c8d8a()[_0xc62863('0x18ab')](_0x279855,function(_0x148453){const _0x3a39b2=_0xc62863;return _0x148453['deviceId']===_0x6d5a09[_0x3a39b2('0x11dd')][_0x3a39b2('0xb59')];});_0x153cb6&&(_0x3d97f6=_0x153cb6);}_0x6d5a09[_0xc62863('0x11dd')][_0xc62863('0xb59')]=_0x3d97f6['deviceId'];if(_0x6d5a09[_0xc62863('0x11dd')][_0xc62863('0x20d8')]&&!_0x3e2e89){const _0x4219cf=_0x3c8d8a()[_0xc62863('0x18ab')](_0x279855,function(_0x18d8f1){const _0x725eef=_0xc62863;return _0x18d8f1[_0x725eef('0xdcb')]===_0x6d5a09['conf'][_0x725eef('0x20d8')];});_0x4219cf&&(_0x3bcce8=_0x4219cf);}_0x6d5a09['conf'][_0xc62863('0x20d8')]=_0x3bcce8[_0xc62863('0xdcb')];}else _0x312ad8['warning']({'title':_0x1d7c84[_0xc62863('0x1467')](_0xc62863('0x1284')),'msg':_0x1d7c84[_0xc62863('0x1467')](_0xc62863('0x24eb')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0xc62863('0x16bb')});return _0x3e527a(_0xc62863('0x2078'),![]);})['then'](function(){const _0x5ef31f=_0x51f5f0;return _0x3e527a(_0x5ef31f('0x263b'),![]);})[_0x51f5f0('0x173b')](function(){const _0x439c5c=_0x51f5f0;if(_0x37ce95)return _0x37ce95['init']()['then'](function(){const _0x1bfd67=a0_0xde5e;return _0x6d5a09[_0x1bfd67('0x210b')]=!![],_0x37ce95[_0x1bfd67('0x2684')]();})['then'](function(){const _0x2b5b79=a0_0xde5e;return _0x37ce95[_0x2b5b79('0x25e4')]();})[_0x439c5c('0x173b')](function(_0x199beb){const _0x52d3e6=_0x439c5c;_0x367d77&&_0x3d97f6&&_0x3bcce8&&_0x199beb&&(_0x3c8d8a()[_0x52d3e6('0x2814')]([_0x367d77['groupId'],_0x3d97f6[_0x52d3e6('0x15fc')],_0x3bcce8[_0x52d3e6('0x15fc')]],_0x199beb['deviceInfo'][_0x52d3e6('0x1e22')])&&(console[_0x52d3e6('0xe37')](_0x52d3e6('0x24b7')),_0x6d5a09['isJabraEnabled']=!![],_0x37ce95['onHook'](),_0x37ce95[_0x52d3e6('0xe3d')](_0x52d3e6('0x6bd'),_0x4f36ed[_0x52d3e6('0xfa5')](this)),_0x37ce95['addEventListener'](_0x52d3e6('0x2292'),_0x4eba5d['bind'](this)),_0x37ce95[_0x52d3e6('0xe3d')](_0x52d3e6('0x27cc'),_0x3e6b7['bind'](this)),_0x37ce95[_0x52d3e6('0xe3d')](_0x52d3e6('0xab3'),_0xac4411[_0x52d3e6('0xfa5')](this)),_0x37ce95[_0x52d3e6('0xe3d')](_0x52d3e6('0x254'),_0x516073[_0x52d3e6('0xfa5')](this))));})[_0x439c5c('0x103c')](function(_0x1eccee){const _0x4c8f4f=_0x439c5c;console[_0x4c8f4f('0x16bd')]('Error\x20initializing\x20Jabra\x20integration',_0x1eccee);});})[_0x51f5f0('0x103c')](function(_0x587282){const _0x1c65e9=_0x51f5f0;console['error'](_0x1c65e9('0x178a'),_0x587282),_0x587282[_0x1c65e9('0x10ad')]==='NotFoundError'&&_0x312ad8['warning']({'title':_0x1d7c84[_0x1c65e9('0x1467')]('TOOLBAR.WARNING'),'msg':_0x1d7c84[_0x1c65e9('0x1467')](_0x1c65e9('0x326')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});})[_0x51f5f0('0xf25')](function(){const _0x33a76b=_0x51f5f0;_0x6d5a09[_0x33a76b('0x355')]=![],_0x174f4b(),_0x4223ce()[_0x33a76b('0xda0')](_0x5dde56[_0x33a76b('0xfa5')](this));});}function _0x4f36ed(_0x269ddb){const _0x348ffd=_0xd4844,_0x790027=_0x3c8d8a()[_0x348ffd('0x7f')](_0x6d5a09[_0x348ffd('0x94a')]);_0x790027?_0x790027[_0x348ffd('0x15f4')]==='incoming'&&_0x790027[_0x348ffd('0xf37')]()?_0x6d5a09[_0x348ffd('0x14a0')](_0x790027):console[_0x348ffd('0x15aa')]('Unable\x20to\x20find\x20a\x20valid\x20call\x20to\x20answer',_0x269ddb):console[_0x348ffd('0x15aa')]('Unable\x20to\x20answer\x20the\x20call',_0x269ddb);}function _0x4eba5d(){const _0x184af1=_0xd4844;_0x6d5a09[_0x184af1('0x11dd')][_0x184af1('0x13c')]=!![],_0x3e527a(_0x184af1('0x1584'),!![]);}function _0x3e6b7(){const _0x2b20f6=_0xd4844;_0x6d5a09['conf'][_0x2b20f6('0x13c')]=![],_0x3e527a('microphone',!![]);}function _0xac4411(){const _0x16b466=_0xd4844;_0x6d5a09[_0x16b466('0x1861')][_0x16b466('0x3a3')]?_0x6d5a09[_0x16b466('0x6fe')](_0x6d5a09['jabraSession']):_0x6d5a09['hold'](_0x6d5a09[_0x16b466('0x1861')]);}function _0x516073(){const _0x12fe91=_0xd4844;_0x2a0141()[_0x12fe91('0x173b')](function(_0x5dc45c){_0x5dc45c!==null&&_0x6d5a09['terminate'](_0x5dc45c);});}function _0x174f4b(){const _0x4c551a=_0xd4844;_0x2afa39[_0x4c551a('0x5c8')]=_0x3c8d8a()[_0x4c551a('0x2114')](_0x6d5a09[_0x4c551a('0x11dd')],_0x2ff912),_0x3bc1b2['localStorage'][_0x4c551a('0x7e')](_0x4c551a('0x1ce5')+_0x6d5a09[_0x4c551a('0x11dd')]['id'],JSON[_0x4c551a('0x100b')](_0x2afa39));}function _0x1d12dd(){this['registered']=!![];}function _0x606100(){const _0x999b65=_0xd4844;this[_0x999b65('0x2614')]=![];}function _0x5dde56(){const _0x48842c=_0xd4844;_0x6d5a09[_0x48842c('0x11dd')][_0x48842c('0x1aae')]=_0x4223ce()[_0x48842c('0x1aae')],_0x6d5a09[_0x48842c('0x11dd')]['hasSpeakers']=_0x4223ce()['browser'][_0x48842c('0x10ad')]===_0x48842c('0x18d8')||_0x4223ce()[_0x48842c('0x244e')][_0x48842c('0x10ad')]===_0x48842c('0x1b8')||_0x4223ce()[_0x48842c('0x244e')][_0x48842c('0x10ad')]==='Opera'?_0x4223ce()[_0x48842c('0x208e')]:!![],_0x6d5a09[_0x48842c('0x11dd')][_0x48842c('0x148')]=_0x4223ce()[_0x48842c('0x148')],_0x6d5a09[_0x48842c('0x11dd')][_0x48842c('0x2294')]=_0x4223ce()['osName'],_0x6d5a09[_0x48842c('0x11dd')][_0x48842c('0x1172')]=_0x4223ce()[_0x48842c('0x1172')],_0x6d5a09['conf'][_0x48842c('0x1e05')]=_0x4223ce()[_0x48842c('0x244e')][_0x48842c('0x10ad')],_0x6d5a09[_0x48842c('0x11dd')][_0x48842c('0x1cfd')]=_0x4223ce()[_0x48842c('0x244e')][_0x48842c('0x516')];if(_0x5d1def())!_0x6d5a09[_0x48842c('0x25b8')]&&_0x6d5a09['ua'][_0x48842c('0x17d1')]();else!_0x6d5a09[_0x48842c('0x11dd')]['license']&&_0x312ad8[_0x48842c('0xd50')]({'title':_0x1d7c84[_0x48842c('0x1467')](_0x48842c('0x1284')),'msg':_0x1d7c84['instant'](_0x48842c('0xfa9')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x48842c('0x16bb')});}function _0x5d1def(){const _0x4ee931=_0xd4844;return _0x6d5a09[_0x4ee931('0x11dd')]['license']&&_0x6d5a09[_0x4ee931('0x11dd')]['isWebRTCSupported']&&_0x6d5a09[_0x4ee931('0x11dd')][_0x4ee931('0x1aae')]&&_0x6d5a09['conf'][_0x4ee931('0x208e')]&&_0x6d5a09[_0x4ee931('0x11dd')][_0x4ee931('0x375')]===_0x4ee931('0x187')&&_0x3cd8e8();}function _0x3cd8e8(){const _0x3e2599=_0xd4844;return _0x6d5a09[_0x3e2599('0x11dd')][_0x3e2599('0x1e05')][_0x3e2599('0x1e68')]()===_0x3e2599('0x2478')||_0x6d5a09[_0x3e2599('0x11dd')][_0x3e2599('0x1e05')]['toLowerCase']()===_0x3e2599('0x22f5')||_0x6d5a09[_0x3e2599('0x11dd')][_0x3e2599('0x1e05')]['toLowerCase']()===_0x3e2599('0xa3f');}function _0x1e01c1(_0x2d6d16){const _0x1a620d=_0xd4844;console[_0x1a620d('0x1110')]('onNewRTCSession\x20->\x20data',_0x2d6d16);const _0x35ed79=_0x2d6d16[_0x1a620d('0x1a11')];let _0x153415=!![],_0x1f7751='',_0x354f2b=0x0,_0x3e9f6d;switch(_0x2d6d16[_0x1a620d('0x1131')]){case _0x1a620d('0xa3c'):{_0x35ed79[_0x1a620d('0x1834')]=!![],_0x35ed79[_0x1a620d('0x10ad')]=_0x2d6d16['request']['ruri']['user'],_0x35ed79[_0x1a620d('0x166f')]=_0x2d6d16[_0x1a620d('0x521')][_0x1a620d('0x905')][_0x1a620d('0x166f')],_0x397f65(_0x35ed79[_0x1a620d('0x166f')],![]);const _0x33a880=_0x1a620d('0x234d');_0x3e9f6d=_0x244e58(_0x2d6d16[_0x1a620d('0x521')][_0x1a620d('0x1e4c')],_0x33a880),_0x6d5a09[_0x1a620d('0x9a5')]&&(_0x6d5a09[_0x1a620d('0x1861')]&&_0x37ce95['resume'](),_0x6d5a09[_0x1a620d('0x1861')]=_0x35ed79,_0x37ce95[_0x1a620d('0x1b67')]());}break;case'remote':{const _0x5265b6=_0x1cfd5f[_0x1a620d('0x14d4')]();if(_0x5265b6[_0x1a620d('0x67c')]&&_0x5265b6[_0x1a620d('0x239e')]||_0x6d5a09[_0x1a620d('0x423')])_0x153415=![];else{_0x35ed79['incoming']=!![],_0x35ed79['name']=_0x2d6d16['request']['from'][_0x1a620d('0x9ba')],_0x35ed79[_0x1a620d('0x166f')]=_0x2d6d16[_0x1a620d('0x521')]['from'][_0x1a620d('0x14a4')][_0x1a620d('0x166f')],_0x1f7751=_0x2d6d16[_0x1a620d('0x521')]['getHeader'](_0x1a620d('0x96f'))||'',_0x354f2b=_0x2d6d16['request'][_0x1a620d('0x921')](_0x1a620d('0x176d'))||0x0,_0x512397(_0x2d6d16[_0x1a620d('0x1a11')]),_0x397f65(_0x2d6d16['session'][_0x1a620d('0x166f')],!![]);_0x6d5a09['isJabraEnabled']&&_0x37ce95[_0x1a620d('0x23cf')]();_0x6d5a09['conf'][_0x1a620d('0x19e0')]&&_0x1771f7(function(){const _0x44b11c=_0x1a620d;_0x35ed79[_0x44b11c('0xf37')]()&&(_0x35ed79[_0x44b11c('0x19e0')]=!![],_0x4c702e(_0x35ed79));},_0x6d5a09[_0x1a620d('0x11dd')][_0x1a620d('0x15d')]?_0x6d5a09[_0x1a620d('0x11dd')][_0x1a620d('0x15d')]*0x3e8:0x0);console[_0x1a620d('0x1110')](_0x1a620d('0xf84'),_0x1f7751),console[_0x1a620d('0x1110')](_0x1a620d('0x234e'),_0x354f2b);if(_0x1f7751[_0x1a620d('0x1e68')]()==_0x1a620d('0x1afd')){const _0x12fd29=_0x354f2b==0x0?0x1f4:_0x354f2b*0x3e8;console['debug'](_0x1a620d('0x2038')+_0x12fd29+_0x1a620d('0x14b7')),_0x1771f7(function(){const _0x22bff6=_0x1a620d;_0x35ed79[_0x22bff6('0xf37')]()&&(_0x35ed79[_0x22bff6('0x19e0')]=!![],_0x4c702e(_0x35ed79));},_0x12fd29);}}break;}default:}_0x153415?(_0x35ed79[_0x1a620d('0x23cb')]=_0x2d6d16[_0x1a620d('0x521')][_0x1a620d('0x23cb')],_0x3e9f6d&&(_0x6d5a09[_0x1a620d('0x75c')][_0x35ed79[_0x1a620d('0x23cb')]]=_0x3e9f6d,_0x112dc2(_0x3e9f6d,{'call_id':_0x35ed79[_0x1a620d('0x23cb')]})[_0x1a620d('0x173b')](function(){const _0x4489d1=_0x1a620d;console[_0x4489d1('0xe37')](_0x4489d1('0x21ff')+_0x3e9f6d+_0x4489d1('0x2112'));})['catch'](function(_0x140ca8){const _0x4ac326=_0x1a620d;console['log']('fail\x20callbackurl:\x22'+_0x3e9f6d+_0x4ac326('0xdbe'),_0x140ca8);})),_0x35ed79['connection']&&(_0x35ed79[_0x1a620d('0x20a6')][_0x1a620d('0x14a7')]=_0xf74e7a[_0x1a620d('0xfa5')](this)),_0x35ed79['iceCandidateTimeout']=null,_0x35ed79['on'](_0x1a620d('0x217f'),_0x38810a['bind'](this,_0x35ed79)),_0x35ed79['on'](_0x1a620d('0x1285'),_0x43f8a8[_0x1a620d('0xfa5')](this,_0x35ed79)),_0x35ed79['on']('hold',_0x3b93f3[_0x1a620d('0xfa5')](this,_0x35ed79)),_0x35ed79['on'](_0x1a620d('0x6fe'),_0x8f3556[_0x1a620d('0xfa5')](this,_0x35ed79)),_0x35ed79['on']('ended',_0x34f320['bind'](this,_0x35ed79)),_0x35ed79['on'](_0x1a620d('0x2780'),_0x3cb5bd['bind'](this,_0x35ed79)),_0x35ed79['on'](_0x1a620d('0xa2'),_0x4996a9[_0x1a620d('0xfa5')](this,_0x35ed79)),_0x6d5a09[_0x1a620d('0x94a')][_0x1a620d('0x18bb')](_0x35ed79),_0x1771f7(function(){const _0x290d5b=_0x1a620d;_0x5af05c[_0x290d5b('0x1517')](),console[_0x290d5b('0x1110')](_0x290d5b('0x99e'),_0x6d5a09[_0x290d5b('0x94a')]);})):_0x1b6797(_0x35ed79,0x1e6);}function _0x397f65(_0x5b5993,_0x526495,_0x4ac852){const _0x22cea9=_0xd4844;console[_0x22cea9('0x1110')](_0x22cea9('0x2553'),_0x5b5993,_0x526495,_0x4ac852),_0x6d5a09['calls'][_0x22cea9('0x1377')]({'target':_0x5b5993,'fullname':_0x4ac852||_0x5b5993,'inbound':_0x526495,'time':_0x156524()()[_0x22cea9('0xddc')]('HH:mm')}),_0x6d5a09['calls'][_0x22cea9('0x543')]>0x32&&_0x6d5a09[_0x22cea9('0x23d5')][_0x22cea9('0x362')]();}function _0x512397(_0x45a7d9){const _0x22b129=_0xd4844;console[_0x22b129('0x1110')]('getNotification\x20->\x20session',_0x45a7d9);const _0x3b5799=_0x45a7d9[_0x22b129('0x10ad')]?_0x45a7d9[_0x22b129('0x10ad')]+'\x20<'+_0x45a7d9['user']+'>':_0x45a7d9[_0x22b129('0x166f')];_0x143a05['create'](_0x22b129('0xeab'),_0x3b5799,null,function(){_0x4c702e(_0x45a7d9);},function(){_0x1b6797(_0x45a7d9);})[_0x22b129('0x173b')](function(_0x39064d){const _0x3815ee=_0x22b129;_0x45a7d9[_0x3815ee('0x15a7')]=_0x39064d;})[_0x22b129('0x103c')](function(_0x34fec4){console['error']('Error\x20creating\x20notification\x20for\x20incoming\x20call',_0x34fec4);});}function _0x4c702e(_0x3794a8){const _0x103428=_0xd4844;console[_0x103428('0x1110')](_0x103428('0x30d'),_0x3794a8),_0x6d5a09[_0x103428('0x11dd')][_0x103428('0x18db')]?_0x6d5a09[_0x103428('0x1bda')][_0x103428('0x1caa')][_0x103428('0x1f78')]={'deviceId':_0x6d5a09[_0x103428('0x11dd')]['microphoneId']}:_0x6d5a09[_0x103428('0x1bda')][_0x103428('0x1caa')]['audio']=!![],_0x3794a8['answer'](_0x6d5a09[_0x103428('0x1bda')]),_0x6d5a09[_0x103428('0x9a5')]&&(_0x37ce95['offHook'](),_0x6d5a09['jabraSession']=_0x3794a8);}function _0x1b6797(_0x1540a8,_0x359234){const _0x2da016=_0xd4844;console[_0x2da016('0x1110')](_0x2da016('0x1ffb'),_0x1540a8);const _0x4ad2a6={};if(_0x359234)_0x4ad2a6[_0x2da016('0x13ab')]=_0x359234;else!_0x1540a8['isEstablished']()&&(_0x4ad2a6[_0x2da016('0x13ab')]=0x25b);_0x1540a8[_0x2da016('0x183c')](_0x4ad2a6);if(_0x6d5a09['isJabraEnabled']){if(_0x6d5a09[_0x2da016('0x94a')]['length']===0x0)_0x1540a8[_0x2da016('0x3a3')]&&_0x37ce95[_0x2da016('0xb7b')](),_0x37ce95[_0x2da016('0x24ba')](),_0x6d5a09[_0x2da016('0x1861')]=null;else{const _0x3697b4=_0x3c8d8a()[_0x2da016('0x7f')](_0x6d5a09[_0x2da016('0x94a')]);_0x3697b4[_0x2da016('0x3a3')]?(_0x37ce95['onHook'](),_0x37ce95[_0x2da016('0x22c2')](),_0x6d5a09[_0x2da016('0x1861')]=_0x3697b4):_0x37ce95[_0x2da016('0x1b67')]();}}}function _0x38810a(_0x5238c7,_0x5be7d3){const _0x30883a=_0xd4844;console['debug'](_0x30883a('0x229e'),_0x5238c7,_0x5be7d3);let _0x2fb716=![];switch(_0x5be7d3[_0x30883a('0x1131')]){case _0x30883a('0xa3c'):!this[_0x30883a('0x11dd')][_0x30883a('0x94d')]&&(this['soundPlayer']['setAttribute'](_0x30883a('0x16df'),_0x30883a('0x39')),_0x2fb716=!![]);break;case _0x30883a('0x173'):this[_0x30883a('0xbdf')](_0x5238c7),this['soundPlayer']['setAttribute'](_0x30883a('0x16df'),_0x30883a('0x199e')),_0x2fb716=!![];break;}_0x6d5a09[_0x30883a('0x423')]&&(_0x6d5a09[_0x30883a('0x423')]=![]),_0x2fb716&&(this['soundPlayer'][_0x30883a('0x1548')]=_0x30883a('0x1548'),this['soundPlayer'][_0x30883a('0x1953')]()[_0x30883a('0x103c')](function(_0x1b5fd2){console['log'](_0x1b5fd2['message']);})),_0x437e9c(_0x5238c7)['then'](function(){const _0xef8813=_0x30883a,_0x515006=_0x6d5a09[_0xef8813('0x75c')][_0x5238c7[_0xef8813('0x23cb')]];_0x515006&&_0x112dc2(_0x515006,{'uniqueid':_0x5238c7[_0xef8813('0x207c')],'call_id':_0x5238c7[_0xef8813('0x23cb')],'number_called':_0x5238c7['user']})[_0xef8813('0x173b')](function(){const _0x3d74d8=_0xef8813;console['log'](_0x3d74d8('0x21ff')+_0x515006+_0x3d74d8('0x2112'));})[_0xef8813('0x103c')](function(_0x570cba){const _0x56354e=_0xef8813;console[_0x56354e('0xe37')](_0x56354e('0x1562')+_0x515006+_0x56354e('0xdbe'),_0x570cba);})[_0xef8813('0xf25')](function(){const _0x464926=_0xef8813;delete _0x6d5a09[_0x464926('0x75c')][_0x5238c7['call_id']];});})[_0x30883a('0x103c')](function(_0x72763c){const _0x4b09ca=_0x30883a;console[_0x4b09ca('0x15aa')](_0x4b09ca('0x1723'),_0x72763c);});}function _0x437e9c(_0x127ea7){const _0x5399f1=_0xd4844;return console[_0x5399f1('0x1110')]('getVoiceChannels\x20->\x20session',_0x127ea7),_0x128c83[_0x5399f1('0x48c')][_0x5399f1('0xc67')]()['$promise'][_0x5399f1('0x173b')](function(_0x442260){const _0x1b370d=_0x5399f1,_0x269522=_0x3c8d8a()[_0x1b370d('0x18ab')](_0x442260[_0x1b370d('0x6aa')],function(_0x21b7e5){const _0x153800=_0x1b370d;if(_0x21b7e5[_0x153800('0x178d')]===_0x127ea7[_0x153800('0x23cb')])return _0x21b7e5;if(_0x21b7e5[_0x153800('0x3a1')]===_0x127ea7['call_id'])return _0x21b7e5;return null;});_0x269522&&(_0x127ea7[_0x1b370d('0xfef')]=_0x269522[_0x1b370d('0xfef')],_0x127ea7[_0x1b370d('0x207c')]=_0x269522[_0x1b370d('0x207c')],_0x127ea7[_0x1b370d('0x531')]=_0x269522[_0x1b370d('0x531')]);return;});}function _0x43f8a8(_0x55e279,_0x14321a){const _0x4dfbde=_0xd4844;console[_0x4dfbde('0x1110')](_0x4dfbde('0x20f5'),_0x55e279,_0x14321a);const _0x16149b=document['getElementById'](_0x4dfbde('0x11da')+_0x55e279['id']['substr'](0x0,0x20));_0x16149b&&$(_0x16149b)[_0x4dfbde('0x1062')]()[_0x4dfbde('0x21e8')]('timer-start'),_0x55e279[_0x4dfbde('0x1285')]=!![],_0x14321a['originator']==='remote'&&_0x55e279['connection']&&(_0x55e279[_0x4dfbde('0x20a6')][_0x4dfbde('0x14a7')]=_0xf74e7a[_0x4dfbde('0xfa5')](this),_0x3c8d8a()[_0x4dfbde('0x1e85')](_0x55e279[_0x4dfbde('0x20a6')][_0x4dfbde('0x288')]())&&(this[_0x4dfbde('0x135c')][_0x4dfbde('0x1800')]=_0x3c8d8a()['head'](_0x55e279['connection'][_0x4dfbde('0x288')]()),this[_0x4dfbde('0x135c')]['play']())),this[_0x4dfbde('0x1211')][_0x4dfbde('0x1751')](),this['soundPlayer'][_0x4dfbde('0x1548')]=null,this[_0x4dfbde('0xbdf')](_0x55e279),_0x55e279[_0x4dfbde('0x19e0')]&&(this[_0x4dfbde('0x1211')][_0x4dfbde('0x11c3')]('src','app/core/directives/ms-phonebar/sounds/beep.ogg'),this[_0x4dfbde('0x1211')][_0x4dfbde('0x1953')]()[_0x4dfbde('0x103c')](function(_0x40d4eb){const _0x528101=_0x4dfbde;console['log'](_0x528101('0x2436'),_0x40d4eb);})),_0x6d5a09[_0x4dfbde('0x12d2')]=_0x6d5a09['sessions'][_0x4dfbde('0x543')]==0x2,_0x437e9c(_0x55e279)[_0x4dfbde('0x103c')](function(_0x350920){const _0x213cb0=_0x4dfbde;console[_0x213cb0('0x15aa')]('Unable\x20to\x20retrieve\x20voice\x20channels',_0x350920);});}function _0xf74e7a(_0x141c90){const _0x56e46b=_0xd4844;console[_0x56e46b('0x1110')]('onAddstream\x20->\x20data',_0x141c90),this[_0x56e46b('0x135c')]['srcObject']=_0x141c90[_0x56e46b('0x3ca')],this['remotePlayer'][_0x56e46b('0x1953')]();}function _0x3b93f3(_0x2abe14,_0x1d959b){const _0xbfe8e4=_0xd4844;console['debug'](_0xbfe8e4('0x10a8'),_0x2abe14,_0x1d959b),_0x1d959b[_0xbfe8e4('0x1131')]===_0xbfe8e4('0xa3c')&&(_0x2abe14['localHold']=!![]);}function _0x8f3556(_0x3a6edf,_0x4b7ca0){const _0x6bb062=_0xd4844;console[_0x6bb062('0x1110')](_0x6bb062('0x399'),_0x3a6edf,_0x4b7ca0),_0x4b7ca0[_0x6bb062('0x1131')]===_0x6bb062('0xa3c')&&(_0x3a6edf[_0x6bb062('0x3a3')]=![]);}function _0x34f320(_0x1ff6af,_0x3b7281){const _0x1ecf1c=_0xd4844;console['debug'](_0x1ecf1c('0x997'),_0x1ff6af,_0x3b7281);_0x6d5a09[_0x1ecf1c('0x1f4')]&&(_0x3c8d8a()[_0x1ecf1c('0x2814')](_0x6d5a09[_0x1ecf1c('0x1c16')],_0x1ff6af['id'])&&(_0x17b789(),_0x6d5a09[_0x1ecf1c('0x434')]=!![]));_0x3c8d8a()['remove'](this[_0x1ecf1c('0x94a')],{'id':_0x1ff6af['id']});_0x6d5a09['sessions'][_0x1ecf1c('0x543')]!==0x2&&(_0x6d5a09[_0x1ecf1c('0x12d2')]=![]);if(_0x6d5a09[_0x1ecf1c('0x9a5')]){if(_0x6d5a09[_0x1ecf1c('0x94a')][_0x1ecf1c('0x543')]===0x0)_0x1ff6af['localHold']&&_0x37ce95[_0x1ecf1c('0xb7b')](),_0x37ce95['onHook'](),_0x6d5a09['jabraSession']=null;else{const _0x487213=_0x3c8d8a()[_0x1ecf1c('0x7f')](_0x6d5a09['sessions']);_0x487213['localHold']?(_0x37ce95[_0x1ecf1c('0x24ba')](),_0x37ce95['hold'](),_0x6d5a09['jabraSession']=_0x487213):_0x37ce95[_0x1ecf1c('0x1b67')]();}}}function _0x17b789(){const _0x5ec25e=_0xd4844;_0x6d5a09[_0x5ec25e('0x12d2')]=![],_0x6d5a09[_0x5ec25e('0x1f4')]=![],_0x6d5a09[_0x5ec25e('0x25c9')]=[];}function _0x3cb5bd(_0xe79f63,_0x39c03e){const _0x72cd99=_0xd4844;console[_0x72cd99('0x1110')](_0x72cd99('0x26'),_0xe79f63,_0x39c03e),this[_0x72cd99('0x1211')][_0x72cd99('0x1751')](),this[_0x72cd99('0x1211')][_0x72cd99('0x1548')]=null;_0xe79f63[_0x72cd99('0x15a7')]&&_0xe79f63[_0x72cd99('0x15a7')][_0x72cd99('0x2151')]();_0x6d5a09[_0x72cd99('0x1f4')]&&(_0x3c8d8a()['includes'](_0x6d5a09[_0x72cd99('0x1c16')],_0xe79f63['id'])&&_0x17b789());_0x6d5a09[_0x72cd99('0x423')]&&(_0x6d5a09[_0x72cd99('0x423')]=![]);_0x3c8d8a()[_0x72cd99('0x1a8b')](this[_0x72cd99('0x94a')],{'id':_0xe79f63['id']});_0x6d5a09['sessions']['length']!==0x2&&(_0x6d5a09[_0x72cd99('0x12d2')]=![]);if(_0x6d5a09[_0x72cd99('0x9a5')]){if(_0x6d5a09[_0x72cd99('0x94a')][_0x72cd99('0x543')]===0x0)_0xe79f63['localHold']&&_0x37ce95[_0x72cd99('0xb7b')](),_0x37ce95[_0x72cd99('0x24ba')](),_0x6d5a09[_0x72cd99('0x1861')]=null;else{const _0x8e67f=_0x3c8d8a()['last'](_0x6d5a09[_0x72cd99('0x94a')]);_0x8e67f[_0x72cd99('0x3a3')]?(_0x37ce95[_0x72cd99('0x24ba')](),_0x37ce95[_0x72cd99('0x22c2')](),_0x6d5a09['jabraSession']=_0x8e67f):_0x37ce95[_0x72cd99('0x1b67')]();}}}function _0x4996a9(_0x14c1c1,_0xd4462d){const _0x5a801b=_0xd4844;console[_0x5a801b('0x1110')](_0x5a801b('0x19a'),_0x14c1c1,_0xd4462d),_0x14c1c1['iceCandidateTimeout']!==null&&clearTimeout(_0x14c1c1[_0x5a801b('0x1c06')]),_0x14c1c1[_0x5a801b('0x1c06')]=setTimeout(_0xd4462d[_0x5a801b('0x8a7')],0x1*0x3e8);}function _0x1a1187(){_0x6d5a09['showDialpad']=![];}function _0x35cad0(_0x44300b,_0x41d0c5){const _0x5da4e4=_0xd4844;let _0x3dd3e4=_0x44300b;!_0x6d5a09[_0x5da4e4('0x235')]&&(_0x6d5a09[_0x5da4e4('0x235')]='');_0x41d0c5&&(_0x6d5a09[_0x5da4e4('0x235')]+=_0x44300b,_0x5af05c[_0x5da4e4('0x21e8')](_0x5da4e4('0x1ec7'),'ms-target-wrap',_0x6d5a09[_0x5da4e4('0x235')]));switch(_0x44300b){case'*':_0x3dd3e4=_0x5da4e4('0x1de5');break;case'#':_0x3dd3e4='pound';break;default:}_0x6d5a09[_0x5da4e4('0x11dd')]['enableDtmfTone']&&(_0x6d5a09[_0x5da4e4('0x1211')][_0x5da4e4('0x11c3')](_0x5da4e4('0x16df'),_0x5da4e4('0x1b25')+_0x3dd3e4+'.ogg'),_0x6d5a09['soundPlayer']['play']()[_0x5da4e4('0x103c')](function(_0x750e7c){const _0x4eab85=_0x5da4e4;console['log'](_0x750e7c[_0x4eab85('0x67f')]);}));for(let _0x4de49d=0x0;_0x4de49d<_0x6d5a09[_0x5da4e4('0x94a')][_0x5da4e4('0x543')];_0x4de49d+=0x1){_0x6d5a09[_0x5da4e4('0x94a')][_0x4de49d]['isEstablished']()&&!_0x6d5a09[_0x5da4e4('0x94a')][_0x4de49d]['isOnHold']()[_0x5da4e4('0xa3c')]&&_0x6d5a09[_0x5da4e4('0x94a')][_0x4de49d][_0x5da4e4('0x14a8')](_0x44300b);}}function _0x3e527a(_0x2cd80a,_0x59855c){const _0x5458f7=_0xd4844;switch(_0x2cd80a){case _0x5458f7('0x263b'):_0x6d5a09[_0x5458f7('0x1211')][_0x5458f7('0x105b')]=_0x6d5a09[_0x5458f7('0x11dd')][_0x5458f7('0x94d')];_0x6d5a09[_0x5458f7('0x11dd')][_0x5458f7('0x20d8')]&&_0x6d5a09[_0x5458f7('0x1211')][_0x5458f7('0x2545')](_0x6d5a09[_0x5458f7('0x11dd')][_0x5458f7('0x20d8')])['then'](function(){const _0x21d753=_0x5458f7;_0x6d5a09['soundPlayer']['volume']=_0x6d5a09[_0x21d753('0x11dd')][_0x21d753('0x14d7')];})[_0x5458f7('0x173b')](function(){_0x59855c&&_0x174f4b();})[_0x5458f7('0x103c')](function(_0x5d29db){const _0x1805f9=_0x5458f7;console[_0x1805f9('0x2787')](_0x5d29db['message'],_0x6d5a09[_0x1805f9('0x11dd')][_0x1805f9('0x20d8')]);});break;case _0x5458f7('0x2078'):_0x6d5a09[_0x5458f7('0x135c')]['muted']=_0x6d5a09['conf'][_0x5458f7('0x1541')];_0x6d5a09[_0x5458f7('0x11dd')][_0x5458f7('0xb59')]&&_0x6d5a09[_0x5458f7('0x135c')][_0x5458f7('0x2545')](_0x6d5a09[_0x5458f7('0x11dd')][_0x5458f7('0xb59')])[_0x5458f7('0x173b')](function(){const _0x2e655f=_0x5458f7;_0x6d5a09['remotePlayer'][_0x2e655f('0x202f')]=_0x6d5a09['conf']['speakerVolume'];})[_0x5458f7('0x173b')](function(){_0x59855c&&_0x174f4b();})[_0x5458f7('0x103c')](function(_0x54337f){const _0x32299c=_0x5458f7;console[_0x32299c('0x2787')](_0x54337f['message'],_0x6d5a09[_0x32299c('0x11dd')][_0x32299c('0xb59')]);});break;case'microphone':for(let _0x56bfa3=0x0;_0x56bfa3<_0x6d5a09[_0x5458f7('0x94a')]['length'];_0x56bfa3+=0x1){_0x6d5a09[_0x5458f7('0x11dd')]['microphoneMute']?_0x6d5a09[_0x5458f7('0x94a')][_0x56bfa3][_0x5458f7('0x2292')]():_0x6d5a09[_0x5458f7('0x94a')][_0x56bfa3][_0x5458f7('0x27cc')]();}_0x37ce95&&_0x6d5a09[_0x5458f7('0x9a5')]&&(_0x6d5a09[_0x5458f7('0x11dd')][_0x5458f7('0x13c')]?_0x37ce95[_0x5458f7('0x2292')]():_0x37ce95['unmute']());_0x59855c&&_0x174f4b();break;default:console['log'](_0x5458f7('0x174c'));}}function _0x25aa25(_0x1594ac){const _0x3f5cad=_0xd4844;if(!_0x1594ac)_0x2086f4();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/[_0x3f5cad('0xf22')](_0x1594ac)?(_0x6d5a09['target']=_0x1594ac,_0x5af05c[_0x3f5cad('0x21e8')](_0x3f5cad('0x1ec7'),_0x3f5cad('0x18c9'),_0x6d5a09['target'])):_0x6d5a09[_0x3f5cad('0x235')]?_0x5af05c[_0x3f5cad('0x21e8')]('angucomplete-alt:changeInput','ms-target-wrap',_0x6d5a09[_0x3f5cad('0x235')]):_0x2086f4();}function _0x2086f4(){const _0x3c4b81=_0xd4844;_0x6d5a09[_0x3c4b81('0x235')]='',document[_0x3c4b81('0x1c4d')](_0x3c4b81('0x201e'))[_0x3c4b81('0x1d8b')](),document[_0x3c4b81('0x1c4d')](_0x3c4b81('0x201e'))[_0x3c4b81('0xa7b')]='',_0x5af05c[_0x3c4b81('0x21e8')]('angucomplete-alt:clearInput',_0x3c4b81('0x18c9'));}function _0x4cf64a(_0x5c74e9){const _0x553a38=_0xd4844;_0x5c74e9&&(_0x6d5a09[_0x553a38('0x235')]=_0x5c74e9[_0x553a38('0x2089')][_0x553a38('0x235')],_0x6d5a09[_0x553a38('0x67a')](),_0x2086f4());}function _0x13245f(){const _0x5ef92c=_0xd4844;if(_0x6d5a09[_0x5ef92c('0x235')]&&_0x6d5a09[_0x5ef92c('0x235')]!==_0x6d5a09[_0x5ef92c('0x11dd')]['name']&&_0x6d5a09[_0x5ef92c('0x235')]!==_0x6d5a09[_0x5ef92c('0x11dd')][_0x5ef92c('0x138c')]){_0x6d5a09[_0x5ef92c('0x11dd')][_0x5ef92c('0x18db')]?_0x6d5a09[_0x5ef92c('0x1bda')]['mediaConstraints'][_0x5ef92c('0x1f78')]={'deviceId':_0x6d5a09[_0x5ef92c('0x11dd')][_0x5ef92c('0x18db')]}:_0x6d5a09[_0x5ef92c('0x1bda')][_0x5ef92c('0x1caa')][_0x5ef92c('0x1f78')]=!![];let _0x19a7af=_0x6d5a09['target'][_0x5ef92c('0x166c')](/ /g,'');return _0x19a7af=_0x19a7af['replace'](/\(/g,''),_0x19a7af=_0x19a7af[_0x5ef92c('0x166c')](/\)/g,''),_0x3afc77(_0x19a7af)[_0x5ef92c('0x173b')](function(_0x4b85e0){const _0x28a38c=_0x5ef92c;_0x4b85e0&&_0x6d5a09['ua'][_0x28a38c('0x67a')](_0x4b85e0,_0x6d5a09[_0x28a38c('0x1bda')]);})[_0x5ef92c('0x173b')](function(){_0x2086f4();});}}function _0x3afc77(_0x1a4391){const _0x34e228=_0xd4844;return _0x128c83[_0x34e228('0x166f')][_0x34e228('0x9f5')]({'id':_0x6d5a09[_0x34e228('0x11dd')]['id']})[_0x34e228('0x1964')][_0x34e228('0x173b')](function(_0x2f5a42){const _0x38ee24=_0x34e228;if(_0x2f5a42['count'])return _0x15921e['show']({'controller':'PrefixDialogController','controllerAs':'vm','templateUrl':_0x5933cc,'parent':angular[_0x38ee24('0xb6d')](_0xc7208c['body']),'clickOutsideToClose':!![],'locals':{'prefixes':_0x2f5a42,'required':_0x6d5a09['conf']['phoneBarPrefixRequired']}});})[_0x34e228('0x173b')](function(_0x294019){if(!_0x6d5a09['conf']['phoneBarPrefixRequired']){if(_0x294019&&_0x294019!==-0x1)return _0x294019+_0x1a4391;else{if(!_0x294019)return _0x1a4391;}}else{if(_0x294019&&_0x294019!==-0x1)return _0x294019+_0x1a4391;}});}function _0x223daa(_0x18de8b){const _0x1159c5=_0xd4844;switch(_0x18de8b[_0x1159c5('0x237a')][_0x1159c5('0x1e68')]()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x6d5a09[_0x1159c5('0x1810')](_0x18de8b[_0x1159c5('0x237a')]);break;case _0x1159c5('0x27a7'):_0x6d5a09[_0x1159c5('0x67a')]();break;default:}}function _0x43775e(){const _0x12e593=_0xd4844;_0x6d5a09['showDialpad']=!_0x6d5a09[_0x12e593('0x141d')];}_0xc7208c[_0xd4844('0xfa5')]('keyup',function(_0xedf8b5){const _0x3a7ed3=_0xd4844;switch(_0xedf8b5[_0x3a7ed3('0x603')]){case 0x1b:_0x1771f7(function(){const _0x533e6c=_0x3a7ed3;_0x6d5a09[_0x533e6c('0x141d')]=![];});break;default:}});function _0x551a5c(){const _0x183e9d=_0xd4844;_0x6d5a09[_0x183e9d('0x1f4')]=!![],_0x6d5a09['canGoInConference']=![],_0x6d5a09[_0x183e9d('0x1c16')]['push'](_0x6d5a09[_0x183e9d('0x94a')][0x0]['id']),_0x6d5a09[_0x183e9d('0x1c16')]['push'](_0x6d5a09[_0x183e9d('0x94a')][0x1]['id']);const _0x34973a=_0x6d5a09[_0x183e9d('0x94a')][0x0][_0x183e9d('0x20a6')][_0x183e9d('0x1581')]()[0x0],_0x1fb582=_0x6d5a09[_0x183e9d('0x94a')][0x0][_0x183e9d('0x20a6')]['getReceivers']()[0x0];_0x1fb582[_0x183e9d('0x727')][_0x183e9d('0xe3d')](_0x183e9d('0x27cc'),function(){setTimeout(function(){_0x520af4();},0x3e8);},![]);const _0x2ba469=_0x6d5a09[_0x183e9d('0x94a')][0x1][_0x183e9d('0x20a6')]['getSenders']()[0x0],_0x2e4f2a=_0x6d5a09[_0x183e9d('0x94a')][0x1][_0x183e9d('0x20a6')][_0x183e9d('0x1433')]()[0x0];_0x2e4f2a[_0x183e9d('0x727')][_0x183e9d('0xe3d')](_0x183e9d('0x27cc'),function(){setTimeout(function(){_0x520af4();},0x3e8);},![]),_0x6d5a09['sessions'][0x0][_0x183e9d('0x6fe')]({'useUpdate':![]}),_0x6d5a09['sessions'][0x1][_0x183e9d('0x6fe')]({'useUpdate':![]}),_0x1fb582[_0x183e9d('0x727')]['enabled']=!![],_0x2e4f2a[_0x183e9d('0x727')]['enabled']=!![];const _0x29fecd=new MediaStream(),_0x250080=new AudioContext();let _0x2113d8=_0x250080['createMediaStreamDestination'](),_0x58b8d6=_0x250080[_0x183e9d('0xd69')](new MediaStream([_0x2e4f2a[_0x183e9d('0x727')]]));_0x58b8d6['connect'](_0x2113d8),_0x58b8d6=_0x250080[_0x183e9d('0xd69')](new MediaStream([_0x34973a['track']])),_0x58b8d6[_0x183e9d('0x45f')](_0x2113d8),_0x34973a[_0x183e9d('0x118c')](_0x2113d8['stream'][_0x183e9d('0x1264')]()[0x0])[_0x183e9d('0x173b')](function(){}),_0x2113d8=_0x250080[_0x183e9d('0xd2b')](),_0x58b8d6=_0x250080['createMediaStreamSource'](new MediaStream([_0x1fb582['track']])),_0x58b8d6[_0x183e9d('0x45f')](_0x2113d8),_0x58b8d6=_0x250080[_0x183e9d('0xd69')](new MediaStream([_0x2ba469[_0x183e9d('0x727')]])),_0x58b8d6[_0x183e9d('0x45f')](_0x2113d8),_0x2ba469['replaceTrack'](_0x2113d8[_0x183e9d('0x3ca')]['getTracks']()[0x0])['then'](function(){const _0x2607dd=_0x183e9d;_0x29fecd[_0x2607dd('0x230f')](_0x1fb582['track']),_0x29fecd[_0x2607dd('0x230f')](_0x2e4f2a[_0x2607dd('0x727')]);const _0x154474=document['getElementById'](_0x2607dd('0x1a3a'));_0x154474[_0x2607dd('0x1800')]=_0x29fecd;const _0x20e971=_0x154474[_0x2607dd('0x1953')]();_0x20e971!==undefined&&_0x20e971['then'](function(){})[_0x2607dd('0x103c')](function(_0x32e228){const _0x4523a6=_0x2607dd;console[_0x4523a6('0xe37')](_0x32e228);});});}function _0x520af4(){const _0x18fa3d=_0xd4844;if(_0x6d5a09['isInConference']){const _0x5cce7a=_0x6d5a09[_0x18fa3d('0x94a')][0x0][_0x18fa3d('0x20a6')]['getReceivers']()[0x0],_0x149e06=_0x6d5a09[_0x18fa3d('0x94a')][0x1]['connection'][_0x18fa3d('0x1433')]()[0x0],_0x2896ba=new MediaStream();_0x2896ba[_0x18fa3d('0x230f')](_0x5cce7a['track']),_0x2896ba['addTrack'](_0x149e06[_0x18fa3d('0x727')]);const _0x44e17e=document[_0x18fa3d('0x1c4d')](_0x18fa3d('0x1a3a'));_0x44e17e[_0x18fa3d('0x1800')]=_0x2896ba;const _0x17be72=_0x44e17e[_0x18fa3d('0x1953')]();_0x17be72!==undefined&&_0x17be72[_0x18fa3d('0x173b')](function(){})[_0x18fa3d('0x103c')](function(_0x252f9c){console['log'](_0x252f9c);});}}function _0x45588a(_0xb99e71){const _0x254a2c=_0xd4844;console[_0x254a2c('0x1110')](_0x254a2c('0x1ad1'),_0xb99e71),_0x6d5a09['unhold'](_0xb99e71);}function _0x37ada4(_0x40969d){const _0x929522=_0xd4844;console[_0x929522('0x1110')](_0x929522('0x1ff0'),_0x40969d),_0x40969d[_0x929522('0x6fe')]({'useUpdate':![]}),_0x6d5a09[_0x929522('0xbdf')](_0x40969d),_0x6d5a09[_0x929522('0x9a5')]&&(_0x37ce95[_0x929522('0x1b67')](),_0x37ce95['resume']());}function _0x1e480f(_0x562cc5){const _0x31ad59=_0xd4844;console['debug'](_0x31ad59('0x1fc9'),_0x562cc5),_0x15921e['show']({'controller':_0x31ad59('0x18b2'),'controllerAs':'vm','templateUrl':_0x17eceb,'parent':angular[_0x31ad59('0xb6d')](_0xc7208c[_0x31ad59('0x1a5')]),'clickOutsideToClose':!![],'locals':{'session':_0x562cc5,'sessions':_0x6d5a09[_0x31ad59('0x94a')]}});}function _0x123c16(_0x3f4ae8){const _0x20713e=_0xd4844;console[_0x20713e('0x1110')]('hold\x20->\x20session',_0x3f4ae8),_0x3f4ae8[_0x20713e('0x22c2')]({'useUpdate':![]}),_0x6d5a09[_0x20713e('0x9a5')]&&(_0x37ce95['hold'](),_0x37ce95[_0x20713e('0x24ba')]());}function _0x5eeb4b(_0x2ef9a2){const _0x34c030=_0xd4844;console[_0x34c030('0x1110')](_0x34c030('0x1e5'),_0x2ef9a2);const _0x4e9878=_0x15921e['prompt']()[_0x34c030('0x20d6')](_0x34c030('0xf47'))[_0x34c030('0x1f71')](_0x34c030('0x18bd'))['placeholder']('Target')['ariaLabel'](_0x34c030('0x140f'))['ok'](_0x34c030('0xf47'))['cancel'](_0x34c030('0x1d4e'));_0x15921e['show'](_0x4e9878)[_0x34c030('0x173b')](function(_0x2270bf){return _0x3afc77(_0x2270bf);})[_0x34c030('0x173b')](function(_0x2434c1){const _0x4bd343=_0x34c030;_0x2ef9a2[_0x4bd343('0x25b1')](_0x2434c1,{'eventHandlers':{'requestSucceeded':_0xc9d800(_0x2ef9a2,_0x4bd343('0x211d'),_0x4bd343('0x1bdd'),0xbb8),'requestFailed':_0xc9d800(_0x2ef9a2,_0x4bd343('0x24e1'),'top\x20right',0xbb8)}});});}function _0xc9d800(_0x1a675b,_0x3a0991,_0x1d73ad,_0x5dd2e8){const _0x320c26=_0xd4844;return console[_0x320c26('0x1110')](_0x320c26('0x15e9'),_0x1a675b,_0x3a0991,_0x1d73ad,_0x5dd2e8),function(){const _0x3e560c=_0x320c26;_0x2127e7[_0x3e560c('0x1cb7')](_0x2127e7['simple']()[_0x3e560c('0x1f71')](_0x3a0991)[_0x3e560c('0xf2c')](_0x1d73ad)[_0x3e560c('0x10ce')](_0x5dd2e8)),_0x1b6797(_0x1a675b);};}function _0x5a9a45(_0x4b1b14){const _0x158e75=_0xd4844;console[_0x158e75('0x1110')](_0x158e75('0x186b'),_0x4b1b14),_0x15921e['show']({'controller':_0x158e75('0x25c0'),'controllerAs':'vm','templateUrl':_0x569dee,'parent':angular[_0x158e75('0xb6d')](_0xc7208c[_0x158e75('0x1a5')]),'clickOutsideToClose':!![],'locals':{'session':_0x4b1b14,'sessions':_0x3c8d8a()[_0x158e75('0x12a4')](_0x6d5a09[_0x158e75('0x94a')],{'id':_0x4b1b14['id']}),'isJabraEnabled':_0x6d5a09[_0x158e75('0x9a5')]}});}function _0x2f95cc(_0x3c33b2){const _0x326dd9=_0xd4844;console[_0x326dd9('0x1110')](_0x326dd9('0x1b8d'),_0x3c33b2);if(_0x6d5a09[_0x326dd9('0x94a')][_0x326dd9('0x543')]>0x1)for(let _0x5c439a=0x0;_0x5c439a<_0x6d5a09[_0x326dd9('0x94a')][_0x326dd9('0x543')];_0x5c439a+=0x1){_0x6d5a09['sessions'][_0x5c439a]['id']!==_0x3c33b2['id']&&!_0x6d5a09[_0x326dd9('0x94a')][_0x5c439a]['isOnHold']()[_0x326dd9('0x173')]&&_0x6d5a09['sessions'][_0x5c439a][_0x326dd9('0x22c2')]({'useUpdate':![]});}}function _0x345b0c(_0xac8360){const _0x14cfd0=_0xd4844;_0x15921e[_0x14cfd0('0x1cb7')]({'controller':_0x14cfd0('0x17a9'),'controllerAs':'vm','templateUrl':_0x519c5d,'parent':angular['element'](_0xc7208c[_0x14cfd0('0x1a5')]),'targetEvent':_0xac8360,'clickOutsideToClose':!![],'resolve':{'devices':function(){const _0x5a7113=_0x14cfd0;return navigator[_0x5a7113('0x220f')][_0x5a7113('0x10a4')]();}},'locals':{'conf':_0x6d5a09[_0x14cfd0('0x11dd')]}})[_0x14cfd0('0x173b')](function(_0x4c9d30){const _0x155068=_0x14cfd0;_0x4c9d30&&(_0x6d5a09[_0x155068('0x11dd')]=_0x4c9d30,!_0x6d5a09[_0x155068('0x355')]&&(_0x6d5a09[_0x155068('0x355')]=!![],_0x37ce95&&_0x6d5a09[_0x155068('0x210b')]?_0x37ce95[_0x155068('0x886')]()['then'](function(){const _0x48eecd=_0x155068;_0x6d5a09[_0x48eecd('0x210b')]=![],_0x6d5a09[_0x48eecd('0x9a5')]=![],_0x88476a(![]);})['catch'](function(_0x48bb57){const _0x3aab80=_0x155068;console[_0x3aab80('0x15aa')](_0x3aab80('0x1497'),_0x48bb57);}):_0x88476a(![])));});}function _0x314b77(){const _0x2802f4=_0xd4844;_0x6d5a09['ua'][_0x2802f4('0x2279')](),_0x37ce95&&_0x6d5a09[_0x2802f4('0x210b')]&&_0x37ce95[_0x2802f4('0x886')](),navigator[_0x2802f4('0x220f')][_0x2802f4('0x25b3')]=function(){};}function _0x2c0b45(_0x80e4c5,_0x2d0921){const _0x25b382=_0xd4844;console[_0x25b382('0x1110')]('onRemoteCall\x20->\x20evt,\x20data',_0x80e4c5,_0x2d0921),_0x2d0921[_0x25b382('0x235')]&&(_0x6d5a09[_0x25b382('0x235')]=_0x2d0921[_0x25b382('0x235')],_0x6d5a09[_0x25b382('0x67a')]());}function _0x1c93ac(_0xeb2fc7,_0x592e33){const _0x133163=_0xd4844;console[_0x133163('0x1110')](_0x133163('0x1f98'),_0xeb2fc7,_0x592e33);if(_0x592e33['target'])for(let _0xb608d7=0x0;_0xb608d7<_0x6d5a09[_0x133163('0x94a')]['length'];_0xb608d7+=0x1){if(_0x6d5a09[_0x133163('0x94a')][_0xb608d7][_0x133163('0x4f9')]()&&!_0x6d5a09[_0x133163('0x94a')][_0xb608d7]['isOnHold']()[_0x133163('0xa3c')])return _0x3afc77(_0x592e33[_0x133163('0x235')])[_0x133163('0x173b')](function(_0x1c27eb){const _0x5c5cd3=_0x133163;_0x1c27eb&&_0x6d5a09[_0x5c5cd3('0x94a')][_0xb608d7][_0x5c5cd3('0x25b1')](_0x1c27eb,{'eventHandlers':{'requestSucceeded':_0xc9d800(_0x6d5a09[_0x5c5cd3('0x94a')][_0xb608d7],_0x5c5cd3('0x211d'),'top\x20right',0xbb8),'requestFailed':_0xc9d800(_0x6d5a09[_0x5c5cd3('0x94a')][_0xb608d7],'requestFailed',_0x5c5cd3('0x1bdd'),0xbb8)}});});}}function _0x2a0141(){return new Promise(function(_0x4f5070){const _0x5bb24d=a0_0xde5e;let _0x48ab78=null;for(let _0x3f00a4=0x0;_0x3f00a4<_0x6d5a09[_0x5bb24d('0x94a')]['length'];_0x3f00a4++){!_0x3c8d8a()['has'](_0x6d5a09[_0x5bb24d('0x94a')][_0x3f00a4],_0x5bb24d('0x3a3'))?_0x48ab78=_0x6d5a09[_0x5bb24d('0x94a')][_0x3f00a4]:!_0x6d5a09[_0x5bb24d('0x94a')][_0x3f00a4][_0x5bb24d('0x3a3')]&&(_0x48ab78=_0x6d5a09[_0x5bb24d('0x94a')][_0x3f00a4]);}_0x4f5070(_0x48ab78);});}function _0xf57738(_0x3ff0a4){const _0x5bdb4e=_0xd4844;console[_0x5bdb4e('0x1110')](_0x5bdb4e('0xf61'),_0x3ff0a4);const _0x59735a=_0x3ff0a4[_0x5bdb4e('0x188e')],_0x1cbd1b=_0x3ff0a4['callerId'],_0x54985f=_0x3ff0a4[_0x5bdb4e('0x18dd')];_0x6d5a09[_0x5bdb4e('0x11dd')]['microphoneId']?_0x6d5a09['sessionConf'][_0x5bdb4e('0x1caa')][_0x5bdb4e('0x1f78')]={'deviceId':_0x6d5a09['conf'][_0x5bdb4e('0x18db')]}:_0x6d5a09['sessionConf']['mediaConstraints']['audio']=!![];let _0x114ae0=_0x59735a['replace'](/ /g,'');_0x114ae0=_0x114ae0['replace'](/\(/g,''),_0x114ae0=_0x114ae0[_0x5bdb4e('0x166c')](/\)/g,'');if(_0x114ae0){const _0x169b2d=angular['copy'](_0x6d5a09['sessionConf']);_0x169b2d[_0x5bdb4e('0x1e4c')]=[],_0x1cbd1b&&_0x169b2d[_0x5bdb4e('0x1e4c')][_0x5bdb4e('0x18bb')](_0x5bdb4e('0x46')+_0x1cbd1b),_0x54985f&&_0x169b2d[_0x5bdb4e('0x1e4c')]['push'](_0x5bdb4e('0x2589')+_0x54985f),_0x6d5a09[_0x5bdb4e('0x423')]=!![],_0x6d5a09['ua']['call'](_0x114ae0,_0x169b2d);}}function _0x39d840(_0x13bed6){const _0xea6d6b=_0xd4844;console[_0xea6d6b('0x1110')](_0xea6d6b('0x26eb'),_0x13bed6);let _0x58b63a=_0x6d5a09[_0xea6d6b('0x94a')];if(_0x13bed6[_0xea6d6b('0x2789')]){_0x58b63a=[];const _0x251259=_0x13bed6[_0xea6d6b('0x2789')];_0x58b63a[_0xea6d6b('0x18bb')](_0x2fadd4(_0x13bed6[_0xea6d6b('0x2789')]));if(_0x58b63a[_0xea6d6b('0x543')]==0x0){console[_0xea6d6b('0x16bd')]('call\x20with\x20session\x20Id\x20'+_0x251259+_0xea6d6b('0x282c'));return;}}for(let _0x433758=0x0;_0x433758<_0x58b63a['length'];_0x433758++){const _0x45111e=_0x58b63a[_0x433758];console[_0xea6d6b('0xe37')](_0xea6d6b('0x259a'),_0x45111e),_0x6d5a09[_0xea6d6b('0x183c')](_0x45111e);}}function _0x42bd25(_0x4e3015){const _0x330d12=_0xd4844;console[_0x330d12('0x1110')](_0x330d12('0xe94'),_0x4e3015);let _0x1eb2d1=_0x212fb5();if(_0x4e3015['sessionId']){const _0x4d94d4=_0x4e3015['sessionId'],_0x5499ca=_0x2fadd4(_0x4e3015[_0x330d12('0x2789')]);if(!_0x5499ca){console[_0x330d12('0x16bd')]('call\x20with\x20session\x20Id\x20'+_0x4d94d4+'\x20not\x20found');return;}_0x1eb2d1=[_0x5499ca];}for(let _0x3394ed=0x0;_0x3394ed<_0x1eb2d1['length'];_0x3394ed++){const _0x40223d=_0x1eb2d1[_0x3394ed];_0x6d5a09[_0x330d12('0x14a0')](_0x40223d);}}function _0x212fb5(){const _0x1beeb9=_0xd4844,_0x104339=_0x3c8d8a()[_0x1beeb9('0x18ab')](_0x6d5a09[_0x1beeb9('0x94a')],function(_0x9175bc){const _0x13090b=_0x1beeb9;return _0x9175bc[_0x13090b('0xb7e')]&&!_0x9175bc[_0x13090b('0x1285')];});return _0x104339;}function _0x5e694d(_0xb8ae5c){const _0x10774d=_0xd4844;console[_0x10774d('0x1110')](_0x10774d('0x18c2'),_0xb8ae5c);let _0x4ea2aa=_0x6d5a09[_0x10774d('0x94a')];if(_0xb8ae5c[_0x10774d('0x2789')]){_0x4ea2aa=[],_0x4ea2aa['push'](_0x2fadd4(_0xb8ae5c[_0x10774d('0x2789')]));const _0x553f20=_0xb8ae5c[_0x10774d('0x2789')];if(_0x4ea2aa[_0x10774d('0x543')]==0x0){console[_0x10774d('0x16bd')](_0x10774d('0x1a7e')+_0x553f20+_0x10774d('0x282c'));return;}}for(let _0x484654=0x0;_0x484654<_0x4ea2aa['length'];_0x484654++){const _0x4b2a62=_0x4ea2aa[_0x484654];_0x6d5a09[_0x10774d('0x22c2')](_0x4b2a62);}}function _0x1eabf6(_0x138ae4){const _0x1fa07c=_0xd4844;console[_0x1fa07c('0x1110')](_0x1fa07c('0x18c2'),_0x138ae4);if(!_0x138ae4[_0x1fa07c('0x2789')]){console[_0x1fa07c('0x15aa')](_0x1fa07c('0xf32'));return;}const _0x19d147=_0x2fadd4(_0x138ae4[_0x1fa07c('0x2789')]);if(!_0x19d147){const _0x455180=_0x138ae4[_0x1fa07c('0x2789')];console[_0x1fa07c('0x16bd')]('call\x20with\x20session\x20Id\x20'+_0x455180+_0x1fa07c('0x282c'));return;}_0x6d5a09[_0x1fa07c('0x6fe')](_0x19d147);}function _0x1731a2(_0x2638b4){const _0x1033e6=_0xd4844;console[_0x1033e6('0x1110')](_0x1033e6('0x2803'),_0x2638b4);if(!_0x2638b4[_0x1033e6('0x2789')]){console[_0x1033e6('0x15aa')](_0x1033e6('0xf32'));return;}if(!_0x2638b4[_0x1033e6('0x704')]){console['error'](_0x1033e6('0x1586'));return;}const _0x16db0d=_0x2fadd4(_0x2638b4['sessionId']);if(!_0x16db0d){const _0x37c4d2=_0x2638b4[_0x1033e6('0x2789')];console[_0x1033e6('0x16bd')](_0x1033e6('0x1a7e')+_0x37c4d2+_0x1033e6('0x282c'));return;}_0x16db0d[_0x1033e6('0x25b1')](_0x2638b4['transferNumber'],{'eventHandlers':{'requestSucceeded':_0xc9d800(_0x16db0d,_0x1033e6('0x211d'),'top\x20right',0xbb8),'requestFailed':_0xc9d800(_0x16db0d,'requestFailed',_0x1033e6('0x1bdd'),0xbb8)}});}function _0x2fadd4(_0x43573b){const _0x5725b5=_0xd4844;console['debug'](_0x5725b5('0x58b'),_0x43573b,_0x6d5a09[_0x5725b5('0x94a')]);const _0x23757d=_0x3c8d8a()[_0x5725b5('0x18ab')](_0x6d5a09['sessions'],function(_0x1ad1ee){const _0x13e9e1=_0x5725b5;return _0x1ad1ee[_0x13e9e1('0x23cb')]==_0x43573b;});return _0x23757d;}function _0x112dc2(_0x106fb0,_0x286a18){const _0x519597=_0xd4844;return console[_0x519597('0x1110')]('callCallback\x20->\x20url,\x20params',_0x106fb0,_0x286a18),_0x30a3bd({'url':_0x106fb0,'method':_0x519597('0x2756'),'params':_0x286a18});}function _0x244e58(_0x1653cb,_0x21336e,_0x33c3f2){const _0x58fa47=_0xd4844,_0x2960f8=_0x3c8d8a()[_0x58fa47('0x18ab')](_0x1653cb,function(_0x403beb){const _0x41bc1d=_0x58fa47;return _0x3c8d8a()[_0x41bc1d('0x17b2')](_0x403beb,_0x21336e);});if(_0x2960f8)return _0x3c8d8a()[_0x58fa47('0x16b1')](_0x2960f8[_0x58fa47('0x166c')](_0x21336e,'')['replace'](_0x33c3f2||':',''));return![];}_0x6d5a09[_0xd4844('0x2444')]=_0x2795be['bind'](this),_0x6d5a09[_0xd4844('0x1810')]=_0x35cad0,_0x6d5a09[_0xd4844('0x67a')]=_0x13245f,_0x6d5a09['hold']=_0x123c16,_0x6d5a09['refer']=_0x5eeb4b,_0x6d5a09['record']=_0x1e480f,_0x6d5a09['unhold']=_0x37ada4,_0x6d5a09[_0xd4844('0x14a0')]=_0x4c702e,_0x6d5a09[_0xd4844('0x183c')]=_0x1b6797,_0x6d5a09[_0xd4844('0x22b3')]=_0x45588a,_0x6d5a09['typeWrapper']=_0x223daa,_0x6d5a09[_0xd4844('0x2172')]=_0x43775e,_0x6d5a09[_0xd4844('0x1f5a')]=_0x5a9a45,_0x6d5a09[_0xd4844('0x1c1e')]=_0x1a1187,_0x6d5a09[_0xd4844('0x1b')]=_0x3e527a,_0x6d5a09[_0xd4844('0xbdf')]=_0x2f95cc,_0x6d5a09[_0xd4844('0xe1d')]=_0x25aa25,_0x6d5a09['targetSelected']=_0x4cf64a,_0x6d5a09[_0xd4844('0x794')]=_0x551a5c,_0x6d5a09[_0xd4844('0xbfe')]=_0x520af4,_0x5af05c['$on'](_0xd4844('0xbe3'),_0x345b0c),_0x5af05c[_0xd4844('0xbf6')](_0xd4844('0x25de'),_0x314b77),_0x5af05c[_0xd4844('0xbf6')](_0xd4844('0x21a5'),_0x2c0b45),_0x5af05c['$on'](_0xd4844('0x2455'),_0x1c93ac),_0x5af05c['$on'](_0xd4844('0x16d2'),function(){const _0x12b3fd=_0xd4844;console['debug'](_0x12b3fd('0x1d1f')),_0x2d6a93['removeAllListeners'](_0x12b3fd('0x1e73')),_0x2d6a93['removeAllListeners'](_0x12b3fd('0xf23')),_0x2d6a93[_0x12b3fd('0x251c')](_0x12b3fd('0x2e2')),_0x2d6a93[_0x12b3fd('0x251c')](_0x12b3fd('0x185c')),_0x2d6a93[_0x12b3fd('0x251c')](_0x12b3fd('0x2328')),_0x2d6a93[_0x12b3fd('0x251c')](_0x12b3fd('0x1e3f'));});}function _0x31d1c8(){const _0x3ffa90=_0x566993;return{'restrict':'E','scope':{'conf':'='},'require':'msPhonebar','controller':_0x3ffa90('0x14bb'),'controllerAs':'vm_pb','bindToController':!![],'templateUrl':_0x110b61};}_0x4cc00b['$inject']=[_0x566993('0x1fe5'),_0x566993('0xf87'),_0x566993('0x2512')];function _0x4cc00b(_0x410425,_0x5681ae,_0x32b8c8){const _0xdeb33=_0x566993,_0x6179c9=this;function _0x480db2(){const _0x3772cc=a0_0xde5e;_0x410425[_0x3772cc('0x1cf4')](_0x6179c9[_0x3772cc('0x23f7')]);}function _0x51487a(_0x3478e7){_0x410425['hide'](_0x3478e7);}_0x6179c9[_0xdeb33('0xf87')]=_0x5681ae,_0x6179c9[_0xdeb33('0x2512')]=_0x32b8c8,_0x6179c9['closeDialog']=_0x51487a,_0x6179c9[_0xdeb33('0x67a')]=_0x480db2;}const _0x346ad0=_0x4cc00b;_0x4a0f20[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','api',_0x566993('0x94a'),_0x566993('0x1a11')],_0x5d93b4[_0x566993('0x17bb')]=[_0x566993('0x24b5')];function _0x5d93b4(_0x38c8be){const _0x2f7a09=_0x566993;return{'restrict':'C','controller':[_0x2f7a09('0x66f'),_0x2f7a09('0x1a7f'),function(_0x29b1ab,_0x331ab6){function _0x368767(){const _0x5e72b4=a0_0xde5e;_0x331ab6[_0x5e72b4('0x17e4')]('display','inline'),_0x38c8be(_0x266792,0x3e8);}function _0x266792(){const _0x54952b=a0_0xde5e;_0x331ab6[_0x54952b('0x17e4')]('display',_0x54952b('0x2741')),_0x38c8be(_0x368767,0x3e8);}_0x368767();}],'replace':!![]};}function _0x4a0f20(_0x56af18,_0x151970,_0x17987b,_0x3dfdec,_0x578f08){const _0xfaee04=_0x566993,_0x1fe946=this;_0x1fe946[_0xfaee04('0x20d6')]=_0xfaee04('0x42'),_0x1fe946['sessions']=_0x3dfdec,_0x1fe946[_0xfaee04('0x1a11')]=_0x578f08,_0x1fe946[_0xfaee04('0x18e2')]=_0x4d5a72,_0x1fe946['addRecording']=_0x374282,_0x1fe946[_0xfaee04('0x2279')]=_0x3c470d,_0x1fe946[_0xfaee04('0x17d1')]=_0x37c6b6;function _0x22a1e1(){function _0x2c6da9(){const _0x10cb36=a0_0xde5e;return Math[_0x10cb36('0x2207')]((0x1+Math['random']())*0x10000)[_0x10cb36('0x1b75')](0x10)[_0x10cb36('0x1a4d')](0x1);}return _0x2c6da9()+_0x2c6da9()+'-'+_0x2c6da9()+'-'+_0x2c6da9()+'-'+_0x2c6da9()+'-'+_0x2c6da9()+_0x2c6da9()+_0x2c6da9();}function _0x37c6b6(_0x27d00e,_0x5ab76a){const _0x206fe2=_0xfaee04;console['log'](_0x206fe2('0x2f2'));const _0x1d0189=_0x151970[_0x206fe2('0x112e')](),_0x2ef579=_0x5ab76a||_0x27d00e[_0x206fe2('0x84d')][_0x206fe2('0x166c')](/^.*[\\/]/,''),_0x52d27b=_0x2ef579[_0x206fe2('0x43a')]('.')[0x0];return _0x17987b['rpc'][_0x206fe2('0x2f2')]({'uniqueid':_0x1fe946[_0x206fe2('0x1a11')][_0x206fe2('0x207c')],'filename':_0x52d27b,'format':_0x206fe2('0x1362')})['$promise'][_0x206fe2('0x173b')](function(_0x343a8b){const _0x6576cf=_0x206fe2;_0x27d00e['filename']=_0x52d27b+_0x6576cf('0x880'),_0x27d00e[_0x6576cf('0x1be3')]=_0x343a8b[_0x6576cf('0x1be3')],_0x27d00e['status']=_0x6576cf('0x9a'),_0x1fe946[_0x6576cf('0x1a11')][_0x6576cf('0xfef')]=!![],_0x1d0189['resolve'](_0x27d00e);})[_0x206fe2('0x103c')](function(_0x269f2a){const _0x2daf0f=_0x206fe2;_0x1d0189[_0x2daf0f('0x12a4')](_0x269f2a);}),_0x1d0189[_0x206fe2('0x2219')];}function _0x3c470d(_0x37f655){const _0x24af54=_0xfaee04;return console[_0x24af54('0xe37')](_0x24af54('0x9b1')),_0x17987b[_0x24af54('0x48c')]['stopMonitor']({'uniqueid':_0x1fe946[_0x24af54('0x1a11')][_0x24af54('0x207c')],'mixmonitorid':_0x37f655[_0x24af54('0x1be3')]})['$promise'][_0x24af54('0x173b')](function(){const _0x176c06=_0x24af54;_0x37f655[_0x176c06('0x276f')]=_0x176c06('0x1751'),_0x1fe946[_0x176c06('0x1a11')][_0x176c06('0xfef')]=_0x3c8d8a()[_0x176c06('0x2814')](_0x1fe946['session'][_0x176c06('0x531')],{'status':'rec'});})[_0x24af54('0x103c')](function(_0x528c19){console['error'](_0x528c19);});}function _0x374282(){const _0x307790=_0xfaee04,_0x4eaa76=_0x56af18[_0x307790('0x1b38')]({'skipHide':!![]})['title'](_0x307790('0x3a5'))[_0x307790('0x1f71')](_0x307790('0x1e67'))[_0x307790('0x113b')](_0x307790('0x10c9'))[_0x307790('0x217')](_0x307790('0x10c9'))['initialValue'](_0x22a1e1())['ok'](_0x307790('0xfcf'))[_0x307790('0x1e1f')](_0x307790('0x1d4e'));_0x56af18['show'](_0x4eaa76)[_0x307790('0x173b')](function(_0x317073){return _0x37c6b6({},_0x317073);})[_0x307790('0x173b')](function(_0x363d06){const _0x47b671=_0x307790;_0x1fe946[_0x47b671('0x1a11')][_0x47b671('0x531')][_0x47b671('0x18bb')](_0x363d06);});}function _0x4d5a72(){_0x56af18['hide']();}}_0x2e37e4[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0x1276'),_0x566993('0x94a'),_0x566993('0x1a11'),_0x566993('0x9a5')];function _0x2e37e4(_0x2f96e4,_0x2f9da9,_0x4a6182,_0x44946a,_0x2bfc48){const _0x282267=_0x566993,_0x2cebc8=this,_0x5ecf7e=window[_0x282267('0x174b')];_0x2cebc8[_0x282267('0x20d6')]='Refer\x20Attended',_0x2cebc8['sessions']=_0x4a6182,_0x2cebc8[_0x282267('0x1a11')]=_0x44946a,_0x2cebc8['isJabraEnabled']=_0x2bfc48,_0x2cebc8[_0x282267('0x180d')]=null;_0x4a6182[_0x282267('0x543')]&&(_0x2cebc8['target']=_0x4a6182[0x0]['user']);_0x2cebc8[_0x282267('0x18e2')]=_0x417a72,_0x2cebc8[_0x282267('0x617')]=_0x1b67d7;function _0x1b67d7(){const _0x39340f=_0x282267;let _0x307533,_0x3968b4;const _0x327609=_0x3c8d8a()[_0x39340f('0x18ab')](_0x4a6182,function(_0x48cd22){const _0x41a66c=_0x39340f;if(_0x48cd22[_0x41a66c('0x166f')]===_0x2cebc8['target'])return _0x48cd22;});_0x327609[_0x39340f('0x1834')]?(_0x307533=_0x327609,_0x3968b4=_0x2cebc8['session']):(_0x307533=_0x2cebc8[_0x39340f('0x1a11')],_0x3968b4=_0x327609),_0x3968b4[_0x39340f('0x25b1')](_0x307533['user'],{'replaces':_0x307533,'eventHandlers':{'requestSucceeded':_0x3e5cf4(_0x44946a,_0x39340f('0x211d'),_0x39340f('0x1bdd'),0xbb8,_0x2cebc8[_0x39340f('0x9a5')]),'requestFailed':_0x3e5cf4(_0x44946a,_0x39340f('0x24e1'),_0x39340f('0x1bdd'),0xbb8,_0x2cebc8[_0x39340f('0x9a5')])}});}function _0x3e5cf4(_0x55d838,_0x4072a0,_0x484517,_0x2b8cef,_0x483b06){const _0x17cca4=_0x282267;return console[_0x17cca4('0x1110')]('onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay',_0x55d838,_0x4072a0,_0x484517,_0x2b8cef),function(){const _0x5de369=_0x17cca4;_0x2f9da9['show'](_0x2f9da9[_0x5de369('0x21c9')]()['textContent'](_0x4072a0)['position'](_0x484517)[_0x5de369('0x10ce')](_0x2b8cef)),_0x55d838[_0x5de369('0x183c')](),_0x5ecf7e&&_0x483b06&&_0x5ecf7e[_0x5de369('0x24ba')](),_0x417a72();};}function _0x417a72(_0x53e0b0){_0x2f96e4['hide'](_0x53e0b0);}}const _0xdddf38=_0x2e37e4;_0x37b0fd[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x11dd'),'devices'];function _0x37b0fd(_0x3de969,_0x96f0da,_0x2651fb){const _0x30914f=_0x566993,_0x3b140e=this;_0x3c8d8a()[_0x30914f('0x1a8b')](_0x2651fb,function(_0x3ebf1a){const _0x1ae3f7=_0x30914f;return _0x3ebf1a[_0x1ae3f7('0x29e')]===_0x1ae3f7('0x4fc')&&(_0x3ebf1a[_0x1ae3f7('0xdcb')]===_0x1ae3f7('0x1ef2')||_0x3ebf1a['deviceId']===_0x1ae3f7('0x15cd'))||_0x3ebf1a[_0x1ae3f7('0x29e')]===_0x1ae3f7('0x1bcd')&&(_0x3ebf1a[_0x1ae3f7('0xdcb')]===_0x1ae3f7('0x1ef2')||_0x3ebf1a[_0x1ae3f7('0xdcb')]===_0x1ae3f7('0x15cd'));}),_0x96f0da[_0x30914f('0x20d8')]=_0x53e142(_0x2651fb,_0x30914f('0x1bcd'),_0x30914f('0x20d8')),_0x96f0da[_0x30914f('0xb59')]=_0x53e142(_0x2651fb,_0x30914f('0x1bcd'),_0x30914f('0xb59')),_0x96f0da[_0x30914f('0x18db')]=_0x53e142(_0x2651fb,_0x30914f('0x4fc'),_0x30914f('0x18db')),_0x96f0da['ringingVolume']=_0x96f0da[_0x30914f('0x14d7')]||0.5,_0x96f0da['speakerVolume']=_0x96f0da[_0x30914f('0x1deb')]||0.5,_0x96f0da[_0x30914f('0x2621')]=_0x96f0da[_0x30914f('0x2621')]||0x1,_0x96f0da['ringingMute']=_0x96f0da[_0x30914f('0x94d')]||![],_0x96f0da['speakerMute']=_0x96f0da[_0x30914f('0x1541')]||![],_0x96f0da['microphoneMute']=_0x96f0da[_0x30914f('0x13c')]||![],_0x3b140e[_0x30914f('0x11dd')]=angular['copy'](_0x96f0da),_0x3b140e['devices']=_0x2651fb,_0x3b140e['saveSettings']=_0xf48e30,_0x3b140e['closeDialog']=_0x3eb35c,_0x3b140e[_0x30914f('0x735')]=_0x48d7d1;function _0x48d7d1(){const _0x187eb1=_0x30914f;return _0x3b140e[_0x187eb1('0x11dd')][_0x187eb1('0x1e05')][_0x187eb1('0x1e68')]()==='chrome'||_0x3b140e[_0x187eb1('0x11dd')][_0x187eb1('0x1e05')]['toLowerCase']()===_0x187eb1('0x22f5')||_0x3b140e[_0x187eb1('0x11dd')][_0x187eb1('0x1e05')][_0x187eb1('0x1e68')]()===_0x187eb1('0xa3f');}function _0x53e142(_0x2c3bb3,_0x8c79eb,_0xf676f4){const _0x2e495c=_0x30914f;let _0x12d457;if(!_0x96f0da[_0xf676f4])_0x12d457=_0x3c8d8a()[_0x2e495c('0x18ab')](_0x2c3bb3,function(_0x1b17cf){return _0x1b17cf['kind']===_0x8c79eb;}),_0x12d457&&(_0x96f0da[_0xf676f4]=_0x12d457[_0x2e495c('0xdcb')]);else{_0x12d457=_0x3c8d8a()[_0x2e495c('0x18ab')](_0x2c3bb3,function(_0x1c980a){const _0x1bba70=_0x2e495c;return _0x1c980a[_0x1bba70('0xdcb')]===_0x96f0da[_0xf676f4];});if(_0x12d457)return _0x12d457['deviceId'];const _0x1b88a=_0x3c8d8a()[_0x2e495c('0x26c3')](_0x2c3bb3,function(_0x5b6b55){const _0x39571b=_0x2e495c;return _0x5b6b55[_0x39571b('0x29e')]===_0x8c79eb;});if(_0x1b88a>=0x0)return _0x2c3bb3[_0x1b88a][_0x2e495c('0xdcb')];}return _0x96f0da[_0xf676f4]||null;}function _0xf48e30(){const _0x26e480=_0x30914f;_0x3de969[_0x26e480('0x1cf4')](_0x3b140e[_0x26e480('0x11dd')]);}function _0x3eb35c(){const _0x34c6d4=_0x30914f;_0x3de969[_0x34c6d4('0x1cf4')]();}}const _0x4eaba5=_0x37b0fd,_0x3390a9=_0x21a6a1['p']+'src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html/ms-quick-filter.html';_0x5c6830[_0x566993('0x17bb')]=[_0x566993('0x1537'),_0x566993('0x84a')],_0x31a7de[_0x566993('0x17bb')]=['dateRangeManager',_0x566993('0xab5')];function _0x2b1c24(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x31a7de,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x3390a9};}function _0x31a7de(_0x5ce038,_0x14698e){const _0x4e841f=_0x566993,_0x4df505=this;_0x4df505[_0x4e841f('0x1875')]={},_0x4df505['placeholders']={},_0x4df505[_0x4e841f('0xe93')]=_0x5ce038[_0x4e841f('0xe93')],_0x4df505['onMultiselectInit']=_0x507126,_0x4df505[_0x4e841f('0x8c0')]=_0x166e78,_0x4df505[_0x4e841f('0x1739')]=_0x129669,_0x4df505[_0x4e841f('0xb96')]=_0x2240cd,_0x4df505[_0x4e841f('0x10bf')]=_0x2f5658,_0x4df505[_0x4e841f('0x27a6')]=_0x2c9dca,_0x4df505[_0x4e841f('0x18b9')]=_0x39ce3e;function _0x507126(_0x2aeec6){_0x4360e7(_0x2aeec6);}function _0x166e78(_0x540815){const _0x472bf1=_0x4e841f,_0x1a4d51=_0x540815['key'];_0x4df505[_0x472bf1('0xc49')][_0x1a4d51]?_0x4df505[_0x472bf1('0x1875')][_0x1a4d51]=_0x5ce038[_0x472bf1('0x3ed')](_0x4df505[_0x472bf1('0xc49')][_0x1a4d51]):_0x4df505[_0x472bf1('0x1875')][_0x1a4d51]={'dateStart':null};}function _0x129669(_0x349963){const _0x5a3ddc=_0x4e841f;_0x4360e7(_0x349963),_0x4df505[_0x5a3ddc('0x23e7')]();}function _0x2240cd(_0x3c8204){const _0x105006=_0x4e841f,_0x1cc541=_0x3c8204[_0x105006('0x237a')];_0x4df505[_0x105006('0x1875')][_0x1cc541]['dateStart']?_0x4df505[_0x105006('0xc49')][_0x1cc541]={'$gte':_0x156524()(_0x4df505[_0x105006('0x1875')][_0x1cc541]['dateStart'])[_0x105006('0xaf5')](0x0,!![])[_0x105006('0xddc')](),'$lte':_0x156524()(_0x4df505[_0x105006('0x1875')][_0x1cc541][_0x105006('0x171b')])['utcOffset'](0x0,!![])[_0x105006('0x623')](0x17,_0x105006('0x26b6'))[_0x105006('0x623')](0x3b,_0x105006('0x893'))['add'](0x3b,_0x105006('0x1adf'))[_0x105006('0xddc')]()}:_0x4df505[_0x105006('0xc49')][_0x1cc541]=undefined,_0x4df505[_0x105006('0x23e7')]();}function _0x2f5658(_0x2ae398){const _0xc2bfb2=_0x4e841f,_0x32e64e=_0x2ae398[_0xc2bfb2('0x237a')];_0x4df505[_0xc2bfb2('0x1875')][_0x32e64e]={'dateStart':null},delete _0x4df505['query'][_0x32e64e],_0x4df505['search']();}function _0x39ce3e(_0x41b33a){const _0x1cc5ec=_0x4e841f,_0x4603b8=_0x41b33a[_0x1cc5ec('0x237a')],_0xbdccb0=_0x41b33a[_0x1cc5ec('0x156e')]||'id';_0x4df505[_0x1cc5ec('0xc49')][_0x4603b8]=_0x3c8d8a()['map'](_0x41b33a['options'],_0xbdccb0),_0x4360e7(_0x41b33a),_0x4df505['search']();}function _0x2c9dca(_0x2d6c35){const _0xd2333f=_0x4e841f,_0x5d7b2c=_0x2d6c35['key'],_0x49c64a=_0x2d6c35[_0xd2333f('0x156e')]||'id';_0x4df505[_0xd2333f('0xc49')][_0x5d7b2c]=_0x2d6c35[_0xd2333f('0xb11')]===![]?[_0x3c8d8a()[_0xd2333f('0x1e85')](_0x2d6c35[_0xd2333f('0x2010')])[_0x49c64a]]:[],_0x4360e7(_0x2d6c35),_0x4df505[_0xd2333f('0x23e7')]();}function _0x4360e7(_0x1429a8){const _0x1eff75=_0x4e841f,_0x2f20ab=_0x1429a8[_0x1eff75('0x237a')],_0x2a229e={'param':_0x4df505[_0x1eff75('0xc49')][_0x2f20ab],'resources':_0x1429a8[_0x1eff75('0x2010')],'placeholder':_0x1429a8[_0x1eff75('0x113b')],'ngValue':_0x1429a8['ngValue']};_0x14698e[_0x1eff75('0xe98')](_0x2a229e)[_0x1eff75('0x173b')](function(_0x1f7194){_0x4df505['placeholders'][_0x2f20ab]=_0x1f7194;});}}function _0x5c6830(_0x58b0c8,_0x1c84c8){const _0x27721f={'localizationMap':_0x1c84c8,'setSelectedDate':_0x3169c6};function _0x3169c6(_0x3cb8f4){const _0x104eb7=a0_0xde5e,_0x167191=new Date(_0x156524()[_0x104eb7('0x142c')](_0x3cb8f4[_0x104eb7('0x1b41')])['format']('YYYY-MM-DD')),_0x37626e=new Date(_0x156524()[_0x104eb7('0x142c')](_0x3cb8f4['$lte'])[_0x104eb7('0xddc')](_0x104eb7('0x1aa3'))),_0x4128c4={'dateStart':new Date(_0x167191[_0x104eb7('0x105a')](),_0x167191[_0x104eb7('0x164b')](),_0x167191[_0x104eb7('0x1587')]()),'dateEnd':new Date(_0x37626e[_0x104eb7('0x105a')](),_0x37626e['getMonth'](),_0x37626e['getDate']())};return _0x4128c4['selectedTemplateName']=_0x40c45c(_0x4128c4),_0x4128c4;}function _0x40c45c(_0x5df170){const _0x40b87a=a0_0xde5e;if(_0x156524()(_0x5df170['dateStart'])[_0x40b87a('0x24bc')](_0x5df170[_0x40b87a('0x171b')])){if(_0x29fea5(_0x5df170))return _0x27721f[_0x40b87a('0xe93')]['Today'];else return _0x22a725(_0x5df170)?_0x27721f[_0x40b87a('0xe93')][_0x40b87a('0x2084')]:_0x58b0c8('date')(_0x5df170[_0x40b87a('0x1168')],_0x40b87a('0x175e'));}else{if(_0x79abab(_0x5df170))return _0x27721f[_0x40b87a('0xe93')][_0x40b87a('0x2572')];else{if(_0x4548ea(_0x5df170))return _0x27721f[_0x40b87a('0xe93')][_0x40b87a('0x1e31')];else{if(_0x38da76(_0x5df170))return _0x27721f[_0x40b87a('0xe93')][_0x40b87a('0xd00')];else{if(_0xaa07ae(_0x5df170))return _0x27721f[_0x40b87a('0xe93')][_0x40b87a('0x7a7')];else{if(_0x2be2d2(_0x5df170))return _0x27721f[_0x40b87a('0xe93')][_0x40b87a('0x854')];else return _0xb01f25(_0x5df170)?_0x27721f['localizationMap'][_0x40b87a('0x79d')]:_0x58b0c8(_0x40b87a('0x22b6'))(_0x5df170[_0x40b87a('0x1168')],'dd'+(_0x5df170[_0x40b87a('0x1168')][_0x40b87a('0x164b')]()!==_0x5df170[_0x40b87a('0x171b')][_0x40b87a('0x164b')]()||_0x5df170[_0x40b87a('0x1168')][_0x40b87a('0x105a')]()!==_0x5df170[_0x40b87a('0x171b')][_0x40b87a('0x105a')]()?_0x40b87a('0x10e7'):'')+(_0x5df170[_0x40b87a('0x1168')][_0x40b87a('0x105a')]()!==_0x5df170[_0x40b87a('0x171b')][_0x40b87a('0x105a')]()?'\x20yyyy':''))+_0x40b87a('0x160c')+_0x58b0c8('date')(_0x5df170[_0x40b87a('0x171b')],'dd\x20MMM\x20yyyy');}}}}}}function _0x29fea5(_0x276b41){const _0x494476=a0_0xde5e;return _0x156524()()[_0x494476('0x2145')]('day')[_0x494476('0x24bc')](_0x276b41['dateStart']);}function _0x22a725(_0x35bec4){const _0x1fe234=a0_0xde5e;return _0x156524()()[_0x1fe234('0x1931')](0x1,_0x1fe234('0x1ce6'))[_0x1fe234('0x2145')](_0x1fe234('0x48d'))[_0x1fe234('0x24bc')](_0x35bec4[_0x1fe234('0x1168')]);}function _0x79abab(_0x5425c1){const _0x4deb29=a0_0xde5e;return _0x156524()()[_0x4deb29('0x2145')](_0x4deb29('0x607'))['isSame'](_0x5425c1[_0x4deb29('0x1168')],_0x4deb29('0x48d'))&&_0x156524()()[_0x4deb29('0x733')](_0x4deb29('0x607'))['isSame'](_0x5425c1[_0x4deb29('0x171b')],'day');}function _0x4548ea(_0xf8427e){const _0x4bb526=a0_0xde5e;return _0x156524()()[_0x4bb526('0x1931')](0x1,_0x4bb526('0x1cf5'))[_0x4bb526('0x2145')]('isoWeek')[_0x4bb526('0x24bc')](_0xf8427e[_0x4bb526('0x1168')],_0x4bb526('0x48d'))&&_0x156524()()['subtract'](0x1,'weeks')[_0x4bb526('0x733')](_0x4bb526('0x607'))[_0x4bb526('0x24bc')](_0xf8427e[_0x4bb526('0x171b')],_0x4bb526('0x48d'));}function _0x38da76(_0x1644eb){const _0xce681e=a0_0xde5e;return _0x156524()()['startOf'](_0xce681e('0x70b'))[_0xce681e('0x24bc')](_0x1644eb[_0xce681e('0x1168')],_0xce681e('0x48d'))&&_0x156524()()['endOf']('month')[_0xce681e('0x24bc')](_0x1644eb[_0xce681e('0x171b')],_0xce681e('0x48d'));}function _0xaa07ae(_0x7e9cf0){const _0x24f5d6=a0_0xde5e;return _0x156524()()[_0x24f5d6('0x1931')](0x1,'months')[_0x24f5d6('0x2145')]('month')[_0x24f5d6('0x24bc')](_0x7e9cf0[_0x24f5d6('0x1168')],_0x24f5d6('0x48d'))&&_0x156524()()[_0x24f5d6('0x1931')](0x1,_0x24f5d6('0x8f3'))[_0x24f5d6('0x733')]('month')[_0x24f5d6('0x24bc')](_0x7e9cf0[_0x24f5d6('0x171b')],_0x24f5d6('0x48d'));}function _0x2be2d2(_0x271e77){const _0x5f04ff=a0_0xde5e;return _0x156524()()['startOf'](_0x5f04ff('0x168f'))[_0x5f04ff('0x24bc')](_0x271e77[_0x5f04ff('0x1168')],_0x5f04ff('0x48d'))&&_0x156524()()['endOf'](_0x5f04ff('0x168f'))[_0x5f04ff('0x24bc')](_0x271e77[_0x5f04ff('0x171b')],'day');}function _0xb01f25(_0x30f1b7){const _0x99564f=a0_0xde5e;return _0x156524()()[_0x99564f('0x1931')](0x1,_0x99564f('0x19d7'))[_0x99564f('0x2145')](_0x99564f('0x168f'))['isSame'](_0x30f1b7[_0x99564f('0x1168')],_0x99564f('0x48d'))&&_0x156524()()[_0x99564f('0x1931')](0x1,_0x99564f('0x19d7'))[_0x99564f('0x733')](_0x99564f('0x168f'))['isSame'](_0x30f1b7['dateEnd'],'day');}return _0x27721f;}function _0x38d64a(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function(_0xb9f48f,_0x2f566b){const _0x1f94d7=a0_0xde5e,_0x16037f=_0xb9f48f[_0x1f94d7('0x390')][Math[_0x1f94d7('0x2207')](Math[_0x1f94d7('0x15ac')]()*_0xb9f48f[_0x1f94d7('0x390')][_0x1f94d7('0x543')])];_0x2f566b[_0x1f94d7('0x88c')](_0x16037f);}};}const _0x176b40=_0x38d64a;_0x3dfcc9[_0x566993('0x17bb')]=[_0x566993('0xbd4')];function _0x3dfcc9(_0x272b15){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function(_0x208074,_0x539d86){const _0x38599b=a0_0xde5e;let _0x3c4be0=![];const _0x243e5e=document[_0x38599b('0x1258')](_0x38599b('0x1f78'));!_0x208074['download']&&_0x243e5e[_0x38599b('0x11c3')](_0x38599b('0x23f'),_0x38599b('0x2792')),_0x243e5e[_0x38599b('0x11c3')](_0x38599b('0x2123'),_0x38599b('0x2741')),_0x243e5e['setAttribute'](_0x38599b('0x1257'),''),_0x243e5e['setAttribute']('style','width:\x20265px;'),_0x243e5e[_0x38599b('0x11c3')](_0x38599b('0x16df'),'\x20'),_0x243e5e[_0x38599b('0xdec')]=function(_0x43c5e4){const _0x3c99d1=_0x38599b;!_0x3c4be0&&(_0x3c4be0=!![],_0x43c5e4[_0x3c99d1('0x26f8')](),_0x272b15[_0x208074['model']||'voiceRecording'][_0x3c99d1('0xfce')]({'id':_0x208074['id']})[_0x3c99d1('0x1964')][_0x3c99d1('0x173b')](function(_0x2b24cc){const _0x2ed232=_0x3c99d1,_0x3a8ee3=[_0x2b24cc[_0x2ed232('0x1c22')]],_0x198c64=new Blob(_0x3a8ee3,{'type':_0x2b24cc[_0x2ed232('0x1810')]});_0x243e5e[_0x2ed232('0x11c3')](_0x2ed232('0x1810'),_0x2b24cc[_0x2ed232('0x1810')]),_0x243e5e[_0x2ed232('0x11c3')](_0x2ed232('0x16df'),URL[_0x2ed232('0x1466')](_0x198c64)),_0x243e5e['play']();})['catch'](function(_0x2647c1){const _0x61b4d2=_0x3c99d1;console[_0x61b4d2('0x15aa')](_0x2647c1);}));},_0x539d86[_0x38599b('0xe53')](_0x243e5e);}};}const _0x2425cc=_0x3dfcc9;function _0x148005(){return{'restrict':'A','link':function(_0x1d8b0c,_0x56ad4c){const _0x217d87=a0_0xde5e,_0x4b6732=angular['element'](_0x217d87('0x1eda'));_0x56ad4c['after'](_0x4b6732),_0x4b6732[_0x217d87('0xe53')](_0x56ad4c);}};}const _0x5866ed=_0x148005;var _0x2adec5=_0x21a6a1(0x1703),_0x2d5761=_0x21a6a1['n'](_0x2adec5);_0xcb9ba4['$inject']=[_0x566993('0x24b5'),_0x566993('0x1aaa'),'msUtils',_0x566993('0x23b8')];function _0x4af606(){const _0x4839be=_0x566993;let _0x4937fb={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this[_0x4839be('0x2a8')]=function(){function _0x267b05(){return _0x4937fb;}const _0x1befe4={'getConfig':_0x267b05};return _0x1befe4;};function _0x351191(_0x4549e3){_0x4937fb=angular['extend']({},_0x4937fb,_0x4549e3);}this[_0x4839be('0xea9')]=_0x351191;}function _0xcb9ba4(_0xd680fd,_0x4783ad,_0x437faa,_0x1ee9c1){return{'restrict':'AE','compile':function(_0x56ff42){const _0x32c3f1=a0_0xde5e;if(_0x1ee9c1[_0x32c3f1('0x1f35')]('disableCustomScrollbars'))return;if(_0x1ee9c1['getConfig']('disableCustomScrollbarsOnMobile')&&_0x437faa[_0x32c3f1('0x13d3')]())return;return _0x56ff42['addClass']('ms-scroll'),function _0xd7e445(_0x242dc0,_0x2ad021,_0x3982e9){const _0x18d4b8=_0x32c3f1;let _0x2a82e1={};_0x3982e9['msScroll']&&(_0x2a82e1=_0x242dc0[_0x18d4b8('0x2ad')](_0x3982e9['msScroll']));_0x2a82e1=angular['extend']({},_0x4783ad['getConfig'](),_0x2a82e1),_0x2d5761()[_0x18d4b8('0x1468')](_0x2ad021[0x0],_0x2a82e1);function _0x36a445(){const _0x418f33=_0x18d4b8;_0x2d5761()[_0x418f33('0x1842')](_0x2ad021[0x0]);}_0x2ad021['on'](_0x18d4b8('0x2518'),_0x36a445),_0x242dc0[_0x18d4b8('0x1bdb')](function(){const _0x30f2ba=_0x18d4b8;return _0x2ad021[_0x30f2ba('0x150e')](_0x30f2ba('0x10d5'));},function(_0x293585,_0x315b87){const _0x28b89e=_0x18d4b8;if(angular['isUndefined'](_0x293585)||angular[_0x28b89e('0x1482')](_0x293585,_0x315b87))return;_0x36a445();}),_0x242dc0[_0x18d4b8('0x1bdb')](function(){const _0x1f619e=_0x18d4b8;return _0x2ad021[_0x1f619e('0x150e')](_0x1f619e('0xe'));},function(_0x384b18,_0x23e5b8){const _0xcd64b9=_0x18d4b8;if(angular[_0xcd64b9('0x8a8')](_0x384b18)||angular['equals'](_0x384b18,_0x23e5b8))return;_0x36a445();}),_0x242dc0[_0x18d4b8('0xbf6')]('$destroy',function(){const _0x5d1cbd=_0x18d4b8;_0x2ad021[_0x5d1cbd('0x352')]('mouseenter'),_0x2d5761()[_0x5d1cbd('0x11ac')](_0x2ad021[0x0]);});};}};}const _0x5f0913=_0x21a6a1['p']+_0x566993('0x189d');_0x1db3a6[_0x566993('0x17bb')]=[_0x566993('0x1b82')],_0x4a5683[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1a7f'),'$timeout'];function _0x4a5683(_0x34e00e,_0x12b9f9,_0x20c3fe){const _0x3c3a3d=_0x566993,_0x2318ce=this;_0x2318ce[_0x3c3a3d('0x2071')]=!![],_0x2318ce[_0x3c3a3d('0xc49')]=undefined,_0x2318ce[_0x3c3a3d('0x2ec')]={'debounce':_0x2318ce['debounce']||0x0};const _0xc52c08=_0x2318ce[_0x3c3a3d('0x14e9')]&&_0x2318ce[_0x3c3a3d('0x14e9')]=='true'?!![]:![];_0x2318ce[_0x3c3a3d('0x1047')]=![],_0x2318ce[_0x3c3a3d('0x718')]=null,_0x2318ce['selectedResultIndex']=0x0,_0x2318ce[_0x3c3a3d('0x23a7')]=![],_0x2318ce[_0x3c3a3d('0x2535')]=_0x3c95cd,_0x2318ce[_0x3c3a3d('0x27ff')]=_0x4cc6be,_0x2318ce[_0x3c3a3d('0x2344')]=_0x52b93e,_0x2318ce[_0x3c3a3d('0x7a0')]=_0x1feb94,_0x2318ce[_0x3c3a3d('0x255c')]=_0x3b5c6d,_0x2318ce[_0x3c3a3d('0x1eb9')]=_0x4037d0,_0x2318ce[_0x3c3a3d('0x25a6')]=_0xe581e4,_0x2318ce[_0x3c3a3d('0x9ec')]=_0x4f42c4,_0x2318ce[_0x3c3a3d('0x123d')]=_0x1b4425,_0x2318ce[_0x3c3a3d('0x1ea5')]=_0x437e55,_0x2318ce['ensureSelectedResultIsVisible']=_0x5f2034;function _0x3c95cd(){const _0x5d0931=_0x3c3a3d;_0x34e00e[_0x5d0931('0x1bdb')](_0x5d0931('0x127a'),function(_0xaf4f63,_0x5eb1f6){const _0x33eb7f=_0x5d0931;if(angular[_0x33eb7f('0x8a8')](_0xaf4f63))return;if(angular[_0x33eb7f('0x1482')](_0xaf4f63,_0x5eb1f6))return;if(_0x2318ce['collapsed']){if(_0xaf4f63)_0x34e00e[_0x33eb7f('0x2344')]();else return;}const _0x1b42fa=_0x34e00e[_0x33eb7f('0x1d44')]['$eval'](_0x2318ce[_0x33eb7f('0x131')],{'query':_0xaf4f63}),_0x1fc685=angular[_0x33eb7f('0x118')](_0x1b42fa),_0x1eb1e9=_0x1b42fa&&!!_0x1b42fa[_0x33eb7f('0x173b')];_0x1fc685&&_0x2318ce[_0x33eb7f('0x27ff')](_0x1b42fa),_0x1eb1e9&&(_0x2318ce[_0x33eb7f('0x1047')]=!![],_0x1b42fa[_0x33eb7f('0x173b')](function(_0x52da17){const _0x1b0e98=_0x33eb7f;_0x2318ce[_0x1b0e98('0x27ff')](_0x52da17);},function(){const _0x1ddac9=_0x33eb7f;_0x2318ce[_0x1ddac9('0x27ff')]([]);})['finally'](function(){_0x2318ce['resultsLoading']=![];}));});}function _0x4cc6be(_0x171f5){const _0x45812b=_0x3c3a3d;if(_0x2318ce['collapsed'])return;const _0x4f8b6a=angular[_0x45812b('0x118')](_0x171f5),_0x4ba833=_0x171f5===null;if(!_0x4f8b6a&&!_0x4ba833)return;_0x2318ce[_0x45812b('0xdc8')]=0x0,_0x2318ce[_0x45812b('0x718')]=_0x171f5;}function _0x52b93e(){const _0x4b6499=_0x3c3a3d;_0x2318ce[_0x4b6499('0x2071')]=![],_0x34e00e[_0x4b6499('0x2344')](),_0x2318ce[_0x4b6499('0x13b5')]&&angular[_0x4b6499('0x1c25')](_0x2318ce[_0x4b6499('0x13b5')])&&_0x2318ce[_0x4b6499('0x13b5')]();}function _0x1feb94(){const _0x33a87b=_0x3c3a3d;_0x2318ce['query']='',_0x2318ce[_0x33a87b('0x27ff')](null),_0x2318ce[_0x33a87b('0x2071')]=!![],_0x34e00e[_0x33a87b('0x7a0')](),_0x2318ce[_0x33a87b('0x2030')]&&angular[_0x33a87b('0x1c25')](_0x2318ce[_0x33a87b('0x2030')])&&_0x2318ce[_0x33a87b('0x2030')]();}function _0x3b5c6d(){const _0x16d32f=_0x3c3a3d;if(!_0xc52c08)return;_0x2318ce[_0x16d32f('0x7a0')]();}function _0x4037d0(_0x42ad04){const _0x37a582=_0x3c3a3d;_0x42ad04[_0x37a582('0x26f8')]();}function _0xe581e4(_0x22b159){const _0xf028e=_0x3c3a3d,_0x2cab9a=_0x22b159['keyCode'],_0x212b49=[0x1b,0x26,0x28];_0x212b49[_0xf028e('0x2087')](_0x2cab9a)>-0x1&&_0x22b159[_0xf028e('0x26f8')]();switch(_0x2cab9a){case 0xd:if(!_0x2318ce['results'])return;_0x2318ce[_0xf028e('0x1ea5')](_0x2318ce[_0xf028e('0x718')][_0x2318ce[_0xf028e('0xdc8')]]);break;case 0x1b:_0x2318ce[_0xf028e('0x7a0')]();break;case 0x26:_0x2318ce['selectedResultIndex']-0x1>=0x0&&(_0x2318ce['selectedResultIndex']--,_0x2318ce['ensureSelectedResultIsVisible']());break;case 0x28:if(!_0x2318ce[_0xf028e('0x718')])return;_0x2318ce[_0xf028e('0xdc8')]+0x1<_0x2318ce['results'][_0xf028e('0x543')]&&(_0x2318ce[_0xf028e('0xdc8')]++,_0x2318ce[_0xf028e('0x1c2a')]());break;default:break;}}function _0x4f42c4(_0x370d25){const _0x54de42=_0x3c3a3d;if(_0x2318ce[_0x54de42('0x23a7')])return;_0x2318ce[_0x54de42('0xdc8')]=_0x370d25;}function _0x1b4425(){const _0x3bc0d3=_0x3c3a3d;_0x2318ce[_0x3bc0d3('0x23a7')]=!![],_0x20c3fe['cancel'](_0x2318ce['mouseEventIgnoreTimeout']),_0x2318ce['mouseEventIgnoreTimeout']=_0x20c3fe(function(){const _0x57fe32=_0x3bc0d3;_0x2318ce[_0x57fe32('0x23a7')]=![];},0xfa);}function _0x437e55(_0x2f5de3){const _0x2ba45d=_0x3c3a3d;_0x2318ce[_0x2ba45d('0xbf')]&&_0x2318ce[_0x2ba45d('0xbf')]({'item':_0x2f5de3}),_0x2318ce[_0x2ba45d('0x7a0')]();}function _0x5f2034(){const _0x52746e=_0x3c3a3d,_0x8ee78a=_0x12b9f9[_0x52746e('0x18ab')](_0x52746e('0xb9e')),_0x4782c7=angular[_0x52746e('0xb6d')](_0x8ee78a['find'](_0x52746e('0x2692'))[_0x2318ce[_0x52746e('0xdc8')]]);if(_0x8ee78a&&_0x4782c7){const _0x41e89d=_0x4782c7['position']()[_0x52746e('0x2047')]-0x8,_0x378d3e=_0x4782c7[_0x52746e('0xf2c')]()[_0x52746e('0x2047')]+_0x4782c7[_0x52746e('0x8be')]()+0x8;_0x2318ce[_0x52746e('0x123d')](),_0x8ee78a['scrollTop']()>_0x41e89d&&_0x8ee78a[_0x52746e('0x2208')](_0x41e89d),_0x378d3e>_0x8ee78a[_0x52746e('0x124a')]()+_0x8ee78a['scrollTop']()&&_0x8ee78a[_0x52746e('0x2208')](_0x378d3e-_0x8ee78a[_0x52746e('0x124a')]());}}}function _0x1db3a6(_0x5a9959){const _0x520b43=_0x566993;return{'restrict':'E','scope':{},'require':_0x520b43('0x91b'),'controller':_0x520b43('0x2161'),'bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0x5f0913,'compile':function(_0x12f88e){const _0x517b94=_0x520b43;return _0x12f88e[_0x517b94('0x88c')](_0x517b94('0x1af9')),function _0x3f433e(_0x592734,_0x4f1966){const _0x2b9fe3=_0x517b94,_0x2e8421=_0x5a9959[_0x2b9fe3('0x18ab')]('body');function _0x48063a(){const _0x402343=_0x2b9fe3;_0x4f1966[_0x402343('0x88c')](_0x402343('0xa79'));if(_0x592734['vm'][_0x402343('0x15f4')]===_0x402343('0x1f5b')){_0x4f1966[_0x402343('0x88c')](_0x402343('0x1f5b'));const _0x4062b1=_0x4f1966[_0x402343('0x2fb')](_0x402343('0x22b0'));if(_0x4062b1)_0x4062b1[_0x402343('0x88c')](_0x402343('0xc2d'));}_0x2e8421['addClass'](_0x402343('0xa83'));}function _0x5998d2(){const _0x8142ee=_0x2b9fe3;_0x4f1966[_0x8142ee('0x3b3')](_0x8142ee('0xa79'));if(_0x592734['vm']['direction']==='down'){_0x4f1966[_0x8142ee('0x3b3')](_0x8142ee('0x1f5b'));const _0x32d5ea=_0x4f1966[_0x8142ee('0x2fb')](_0x8142ee('0x22b0'));if(_0x32d5ea)_0x32d5ea[_0x8142ee('0x3b3')]('h-128');}_0x2e8421['removeClass'](_0x8142ee('0xa83'));}_0x592734[_0x2b9fe3('0x7a0')]=_0x5998d2,_0x592734[_0x2b9fe3('0x2344')]=_0x48063a;};}};}const _0x5adc21=_0x21a6a1['p']+'src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts.html';_0x3329a8['$inject']=[_0x566993('0x66f'),_0x566993('0x2166'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$q',_0x566993('0x1009')];function _0x3329a8(_0x114d4e,_0x35ead1,_0x32f297,_0x594b80,_0x53690e,_0x3d9056){const _0x579508=_0x566993,_0x218666=this;_0x218666['query']='',_0x218666[_0x579508('0x2ec')]={'debounce':0x12c},_0x218666['resultsLoading']=![],_0x218666[_0x579508('0xdc8')]=0x0,_0x218666['ignoreMouseEvents']=![],_0x218666[_0x579508('0x1e77')]=![],_0x218666[_0x579508('0x718')]=null,_0x218666[_0x579508('0xd7c')]=[],_0x218666[_0x579508('0x2592')]={'ghostClass':'ghost','forceFallback':!![],'fallbackClass':_0x579508('0x1f6b'),'onSort':function(){const _0x1eeb24=_0x579508;_0x218666[_0x1eeb24('0x16c1')]();}};function _0xa7d00a(){const _0x42b9d0=_0x579508;_0x218666['loadShortcuts']()['then'](function(_0x3a53be){const _0x43b68b=a0_0xde5e;_0x218666['shortcuts']=_0x3a53be,_0x218666[_0x43b68b('0xd7c')]['length']>0x0&&(_0x218666['results']=_0x3a53be);}),_0x114d4e['$watch'](_0x42b9d0('0x22d5'),function(_0x44e120,_0x2cdde9){const _0x2939d8=_0x42b9d0;if(angular[_0x2939d8('0x8a8')](_0x44e120))return;if(angular[_0x2939d8('0x1482')](_0x44e120,_0x2cdde9))return;_0x218666[_0x2939d8('0x1047')]=!![],_0x218666[_0x2939d8('0x27ff')]()[_0x2939d8('0x173b')](function(_0x581b20){const _0x4f1979=_0x2939d8;_0x218666[_0x4f1979('0x718')]=_0x581b20;},function(){_0x218666['results']=[];})[_0x2939d8('0xf25')](function(){const _0x2db1bf=_0x2939d8;_0x218666[_0x2db1bf('0x1047')]=![];});});}function _0x41dece(){const _0x38e7fe=_0x579508;let _0x2159b5=[];const _0x138fdb=_0x3d9056[_0x38e7fe('0x19e')](),_0x541326=_0x53690e['defer']();for(let _0x25a2e2=0x0;_0x25a2e2<_0x138fdb['length'];_0x25a2e2++){_0x138fdb[_0x25a2e2][_0x38e7fe('0x4e0')]&&_0x2159b5[_0x38e7fe('0x18bb')](_0x138fdb[_0x25a2e2]);}if(_0x218666[_0x38e7fe('0xc49')]){_0x2159b5=_0x2159b5[_0x38e7fe('0x278d')](function(_0x2232f8){const _0x19a707=_0x38e7fe;if(_0x2232f8[_0x19a707('0x20d6')][_0x19a707('0x1e68')]()[_0x19a707('0x2814')](_0x218666['query'][_0x19a707('0x1e68')]()))return!![];});for(let _0x2c97b4=0x0;_0x2c97b4<_0x2159b5[_0x38e7fe('0x543')];_0x2c97b4++){_0x2159b5[_0x2c97b4][_0x38e7fe('0x69d')]=![];for(let _0x58d124=0x0;_0x58d124<_0x218666[_0x38e7fe('0xd7c')][_0x38e7fe('0x543')];_0x58d124++){if(_0x218666[_0x38e7fe('0xd7c')][_0x58d124]['_id']===_0x2159b5[_0x2c97b4][_0x38e7fe('0x22c')]){_0x2159b5[_0x2c97b4]['hasShortcut']=!![];break;}}}}else _0x218666[_0x38e7fe('0xd7c')][_0x38e7fe('0x543')]>0x0&&(_0x2159b5=_0x218666[_0x38e7fe('0xd7c')]);return _0x218666[_0x38e7fe('0xdc8')]=0x0,_0x594b80(function(){const _0x219c28=_0x38e7fe;_0x541326[_0x219c28('0x155b')](_0x2159b5);},0xfa),_0x541326[_0x38e7fe('0x2219')];}function _0x1ed272(){const _0x3f9c7a=_0x579508,_0x3aba51=_0x53690e[_0x3f9c7a('0x112e')]();let _0x24ca1d=angular[_0x3f9c7a('0x19c5')](_0x35ead1[_0x3f9c7a('0x1d97')](_0x3f9c7a('0x414')));return angular[_0x3f9c7a('0x8a8')](_0x24ca1d)&&(_0x24ca1d=[{'title':_0x3f9c7a('0x1272'),'icon':_0x3f9c7a('0x270a'),'state':_0x3f9c7a('0x69f'),'weight':0x5,'children':[],'uisref':_0x3f9c7a('0x69f'),'hasShortcut':!![]},{'title':_0x3f9c7a('0x1e84'),'icon':_0x3f9c7a('0x147a'),'state':_0x3f9c7a('0x1203'),'weight':0xa,'children':[],'uisref':_0x3f9c7a('0x1203'),'hasShortcut':!![]}],_0x35ead1[_0x3f9c7a('0x14cd')](_0x3f9c7a('0x414'),angular['toJson'](_0x24ca1d))),_0x3aba51[_0x3f9c7a('0x155b')](_0x24ca1d),_0x3aba51['promise'];}function _0x1e410b(){const _0x37379e=_0x579508,_0x4c9dee=_0x53690e[_0x37379e('0x112e')]();return _0x35ead1['put'](_0x37379e('0x414'),angular[_0x37379e('0x36c')](_0x218666[_0x37379e('0xd7c')])),_0x594b80(function(){const _0x247754=_0x37379e;_0x4c9dee[_0x247754('0x155b')]({'success':!![]});},0xfa),_0x4c9dee[_0x37379e('0x2219')];}function _0x1d9d70(_0x1f4418){const _0x44de31=_0x579508;_0x1f4418['hasShortcut']=!![],_0x218666[_0x44de31('0xd7c')][_0x44de31('0x18bb')](_0x1f4418),_0x218666[_0x44de31('0x16c1')]();}function _0x2a7bfe(_0x454a9b){const _0x2fb20e=_0x579508;_0x454a9b['hasShortcut']=![];for(let _0x2923fb=0x0;_0x2923fb<_0x218666[_0x2fb20e('0xd7c')][_0x2fb20e('0x543')];_0x2923fb++){_0x218666[_0x2fb20e('0xd7c')][_0x2923fb][_0x2fb20e('0x22c')]===_0x454a9b[_0x2fb20e('0x22c')]&&(_0x218666['shortcuts']['splice'](_0x2923fb,0x1),!_0x218666[_0x2fb20e('0xc49')]&&(_0x218666[_0x2fb20e('0xd7c')]['length']===0x0?_0x218666[_0x2fb20e('0x718')]=null:_0x2923fb>=_0x218666[_0x2fb20e('0xd7c')]['length']&&(_0x218666[_0x2fb20e('0xdc8')]=_0x218666['shortcuts']['length']-0x1)));}_0x218666[_0x2fb20e('0x16c1')]();}function _0x3db047(_0x408eab){const _0x3e6d0=_0x579508;_0x408eab[_0x3e6d0('0x69d')]?_0x218666[_0x3e6d0('0x1b2c')](_0x408eab):_0x218666['addShortcut'](_0x408eab);}function _0x22bebd(_0x1c1f70){const _0x30d58a=_0x579508;_0x1c1f70[_0x30d58a('0x26f8')]();}function _0x41b540(_0x1acf78){const _0x32e512=_0x579508,_0x379e4e=_0x1acf78[_0x32e512('0x603')],_0x43bf8b=[0x26,0x28];_0x43bf8b[_0x32e512('0x2087')](_0x379e4e)>-0x1&&_0x1acf78['preventDefault']();switch(_0x379e4e){case 0xd:_0x218666['handleResultClick'](_0x218666['results'][_0x218666[_0x32e512('0xdc8')]]);break;case 0x26:_0x218666[_0x32e512('0xdc8')]-0x1>=0x0&&(_0x218666['selectedResultIndex']--,_0x218666[_0x32e512('0x1c2a')]());break;case 0x28:_0x218666['selectedResultIndex']+0x1<_0x218666[_0x32e512('0x718')]['length']&&(_0x218666[_0x32e512('0xdc8')]++,_0x218666[_0x32e512('0x1c2a')]());break;default:break;}}function _0x4bbf11(_0x175e10){const _0x4cc866=_0x579508;if(_0x218666['ignoreMouseEvents'])return;_0x218666[_0x4cc866('0xdc8')]=_0x175e10;}function _0xd3f9d4(){const _0x100f7f=_0x579508;_0x218666[_0x100f7f('0x23a7')]=!![],_0x594b80[_0x100f7f('0x1e1f')](_0x218666[_0x100f7f('0x1dd2')]),_0x218666[_0x100f7f('0x1dd2')]=_0x594b80(function(){const _0x1a609b=_0x100f7f;_0x218666[_0x1a609b('0x23a7')]=![];},0xfa);}function _0x4a9943(){const _0x4618b4=_0x579508,_0x5751dc=_0x32f297['find']('#ms-shortcut-add-menu')[_0x4618b4('0x18ab')](_0x4618b4('0x2771')),_0x3a66e0=angular['element'](_0x5751dc[_0x4618b4('0x18ab')](_0x4618b4('0x2692'))[_0x218666[_0x4618b4('0xdc8')]]);if(_0x5751dc&&_0x3a66e0){const _0x246843=_0x3a66e0[_0x4618b4('0xf2c')]()[_0x4618b4('0x2047')]-0x8,_0x5ca823=_0x3a66e0[_0x4618b4('0xf2c')]()['top']+_0x3a66e0[_0x4618b4('0x8be')]()+0x8;_0x218666[_0x4618b4('0x123d')](),_0x5751dc['scrollTop']()>_0x246843&&_0x5751dc[_0x4618b4('0x2208')](_0x246843),_0x5ca823>_0x5751dc[_0x4618b4('0x124a')]()+_0x5751dc[_0x4618b4('0x2208')]()&&_0x5751dc[_0x4618b4('0x2208')](_0x5ca823-_0x5751dc[_0x4618b4('0x124a')]());}}function _0x6d461b(){const _0x53d72c=_0x579508;_0x218666[_0x53d72c('0x1e77')]=!_0x218666['mobileBarActive'];}_0x218666['populateResults']=_0x41dece,_0x218666[_0x579508('0x23f9')]=_0x1ed272,_0x218666[_0x579508('0x16c1')]=_0x1e410b,_0x218666[_0x579508('0x5ee')]=_0x1d9d70,_0x218666[_0x579508('0x1b2c')]=_0x2a7bfe,_0x218666[_0x579508('0x1ea5')]=_0x3db047,_0x218666[_0x579508('0x1eb9')]=_0x22bebd,_0x218666[_0x579508('0x25a6')]=_0x41b540,_0x218666[_0x579508('0x9ec')]=_0x4bbf11,_0x218666[_0x579508('0x123d')]=_0xd3f9d4,_0x218666['ensureSelectedResultIsVisible']=_0x4a9943,_0x218666['toggleMobileBar']=_0x6d461b,_0xa7d00a();}function _0x320e51(){const _0x1a29e5=_0x566993;return{'restrict':'E','scope':{},'require':_0x1a29e5('0x2185'),'controller':_0x1a29e5('0x1079'),'bindToController':{},'templateUrl':_0x5adc21,'compile':function(_0x1556ed){const _0xd16675=_0x1a29e5;return _0x1556ed[_0xd16675('0x88c')](_0xd16675('0x168')),function _0x3812f0(){};}};}function _0x3cee4f(){const _0x2dcb09=_0x566993;return{'restrict':'A','require':_0x2dcb09('0x132c'),'link':function(_0x1e0434,_0x3fa590,_0x5a3cf5,_0x3dc1a8){_0x1e0434['$watch'](function(){const _0x3e6c1d=a0_0xde5e;return _0x3dc1a8['isOpen']()&&!_0x3dc1a8[_0x3e6c1d('0x116')]();},function(_0x640605){const _0x54c984=a0_0xde5e;if(angular['isUndefined'](_0x640605))return;_0x3fa590[_0x54c984('0x941')]()[_0x54c984('0xe0b')](_0x54c984('0xb21'),_0x640605),angular[_0x54c984('0xb6d')](_0x54c984('0x267e'))[_0x54c984('0xe0b')](_0x54c984('0x1883'),_0x640605);});}};}const _0x34c934=_0x3cee4f;_0xaadd45[_0x566993('0x17bb')]=[_0x566993('0xa33')];function _0xaadd45(_0x521575){return{'restrict':'E','link':function(_0xf15ffd,_0x985066){const _0x37a6fd=a0_0xde5e,_0x2e78a2=_0xf15ffd[_0x37a6fd('0xbf6')](_0x37a6fd('0x6c8'),function(){const _0x5baa0f=_0x37a6fd;_0x521575[_0x5baa0f('0x8af')](_0x985066)[_0x5baa0f('0x173b')](function(){_0x2e78a2(),_0xf15ffd=null,_0x985066=null;});});}};}const _0x1ab513=_0xaadd45,_0x52a1a4=_0x21a6a1['p']+_0x566993('0x7c'),_0x2bda1b=_0x21a6a1['p']+'src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html/vertical.html',_0x2d9a1d=_0x21a6a1['p']+_0x566993('0x530');_0x5e7483[_0x566993('0x17bb')]=[_0x566993('0x24b5')],_0x14b88b[_0x566993('0x17bb')]=['$timeout'];function _0x14b88b(_0x2c7563){const _0xfe4131=_0x566993,_0x143fc6=this;_0x143fc6[_0xfe4131('0x1a91')]=undefined,_0x143fc6['orientation']=_0xfe4131('0x9e1'),_0x143fc6[_0xfe4131('0x1038')]=[],_0x143fc6['currentStep']=undefined,_0x143fc6['currentStepNumber']=0x1;function _0x2f597d(_0xe7dca3){const _0x35af4c=_0xfe4131;return!(angular[_0x35af4c('0x8a8')](_0xe7dca3)||_0xe7dca3<0x1||_0xe7dca3>_0x143fc6[_0x35af4c('0x1038')][_0x35af4c('0x543')]);}function _0x2685f0(_0x57575b){const _0x107e4f=_0xfe4131;_0x143fc6['orientation']=_0x57575b||_0x107e4f('0x9e1');}function _0x1df4ac(_0x2d17f5){const _0x4b794e=_0xfe4131;_0x143fc6[_0x4b794e('0x1a91')]=_0x2d17f5;}function _0x20b696(){const _0x2df99e=_0xfe4131;_0x143fc6[_0x2df99e('0x1768')](0x1);}function _0x57160a(_0xf183fd){const _0x35557d=_0xfe4131;if(!_0x2f597d(_0xf183fd))return null;return!!_0x143fc6[_0x35557d('0x1038')][_0xf183fd-0x1][_0x35557d('0x1062')][_0x35557d('0xa3e')];}function _0x2e45c2(_0x2a6745,_0xf655e7,_0x398660){const _0x4abe5c=_0xfe4131,_0x32097d={'element':_0x2a6745,'scope':_0xf655e7,'form':_0x398660,'stepNumber':_0xf655e7[_0x4abe5c('0x1644')]||_0x143fc6[_0x4abe5c('0x1038')]['length']+0x1,'stepTitle':_0xf655e7[_0x4abe5c('0x207f')],'stepTitleTranslate':_0xf655e7[_0x4abe5c('0x1a1e')]};return _0x143fc6[_0x4abe5c('0x1038')][_0x4abe5c('0x18bb')](_0x32097d),_0x143fc6[_0x4abe5c('0x1038')][_0x4abe5c('0xfbe')](function(_0x5cc2af,_0x2edb0e){const _0x3e3d35=_0x4abe5c;return _0x5cc2af['stepNumber']-_0x2edb0e[_0x3e3d35('0x2559')];}),_0x32097d;}function _0x1f24d8(){const _0xea5430=_0xfe4131;_0x143fc6[_0xea5430('0x1768')](_0x143fc6[_0xea5430('0xb36')]);}function _0x42c631(){_0x2c7563(function(){const _0x4cbcd8=a0_0xde5e;for(let _0x3fe730=0x0;_0x3fe730<_0x143fc6[_0x4cbcd8('0x1038')][_0x4cbcd8('0x543')];_0x3fe730++){_0x143fc6['steps'][_0x3fe730][_0x4cbcd8('0x1556')][_0x4cbcd8('0x1f8')](),_0x143fc6['steps'][_0x3fe730][_0x4cbcd8('0x1556')][_0x4cbcd8('0x53d')]();}_0x143fc6[_0x4cbcd8('0x1a91')][_0x4cbcd8('0x1f8')](),_0x143fc6[_0x4cbcd8('0x1a91')][_0x4cbcd8('0x53d')](),_0x20b696();});}function _0x2b78fa(_0x1bc8da){const _0x72d803=_0xfe4131;if(!_0x2f597d(_0x1bc8da))return;_0x143fc6['currentStepNumber']=_0x1bc8da;if(_0x143fc6[_0x72d803('0x1b1b')]===_0x72d803('0x9e1')){for(let _0x24e669=0x0;_0x24e669<_0x143fc6[_0x72d803('0x1038')]['length'];_0x24e669++){_0x143fc6[_0x72d803('0x1038')][_0x24e669][_0x72d803('0xb6d')][_0x72d803('0x1cf4')]();}_0x143fc6[_0x72d803('0x1038')][_0x143fc6[_0x72d803('0xb36')]-0x1]['element'][_0x72d803('0x1cb7')]();}else{if(_0x143fc6[_0x72d803('0x1b1b')]===_0x72d803('0x1c4b')){for(let _0x1aec76=0x0;_0x1aec76<_0x143fc6['steps']['length'];_0x1aec76++){_0x143fc6[_0x72d803('0x1038')][_0x1aec76]['element'][_0x72d803('0x18ab')]('.ms-stepper-step-content')['hide']();}_0x143fc6['steps'][_0x143fc6[_0x72d803('0xb36')]-0x1]['element'][_0x72d803('0x18ab')](_0x72d803('0x1c31'))[_0x72d803('0x1cb7')]();}}}function _0xc1d6e1(_0x49bfa8){if(_0x57160a(_0x49bfa8))return;_0x143fc6['setCurrentStep'](_0x49bfa8);}function _0x5881d(){const _0x51ec06=_0xfe4131;let _0x2b4cb3=_0x143fc6[_0x51ec06('0xb36')]-0x1;for(let _0x597ab9=_0x2b4cb3;_0x597ab9>=0x1;_0x597ab9--){if(!_0x57160a(_0x597ab9)){_0x2b4cb3=_0x597ab9;break;}}_0x143fc6[_0x51ec06('0x1768')](_0x2b4cb3);}function _0x45c823(){const _0x1ade1d=_0xfe4131;let _0x457234=_0x143fc6[_0x1ade1d('0xb36')]+0x1;for(let _0x5db02a=_0x457234;_0x5db02a<=_0x143fc6[_0x1ade1d('0x1038')][_0x1ade1d('0x543')];_0x5db02a++){if(!_0x57160a(_0x5db02a)){_0x457234=_0x5db02a;break;}}_0x143fc6[_0x1ade1d('0x1768')](_0x457234);}function _0xff0ca9(){const _0x4c493e=_0xfe4131;_0x143fc6[_0x4c493e('0x1768')](_0x143fc6['steps']['length']);}function _0x457e04(){const _0x54f394=_0xfe4131;return _0x143fc6[_0x54f394('0xb36')]===0x1;}function _0x34e960(){const _0x5bd4a6=_0xfe4131;return _0x143fc6[_0x5bd4a6('0xb36')]===_0x143fc6[_0x5bd4a6('0x1038')][_0x5bd4a6('0x543')];}function _0x291a19(_0xe76076){const _0x5adff9=_0xfe4131;if(!_0x2f597d(_0xe76076))return null;return _0x143fc6[_0x5adff9('0xb36')]===_0xe76076;}function _0x303ff0(_0x4bc9f4){const _0x3d7d99=_0xfe4131;if(!_0x2f597d(_0x4bc9f4))return null;return _0x143fc6[_0x3d7d99('0x1038')][_0x4bc9f4-0x1][_0x3d7d99('0x1062')][_0x3d7d99('0xca9')];}function _0x3d86e2(_0x17879f){const _0xb5e2a7=_0xfe4131;if(!_0x2f597d(_0x17879f))return null;if(_0x303ff0(_0x17879f))return!![];return _0x143fc6['steps'][_0x17879f-0x1][_0xb5e2a7('0x1556')][_0xb5e2a7('0x4b8')];}function _0xd3bcc2(_0x3e83f6){if(!_0x2f597d(_0x3e83f6))return null;let _0xfd7462=![];for(let _0x2a81f2=0x1;_0x2a81f2<_0x3e83f6;_0x2a81f2++){if(!_0x3d86e2(_0x2a81f2)){_0xfd7462=!![];break;}}return _0xfd7462;}function _0x31526b(_0x101868){return!_0x57160a(_0x101868['stepNumber']);}function _0x2c84c9(){const _0x4d31d1=_0xfe4131;return _0x143fc6[_0x4d31d1('0x1a91')]['$valid'];}_0x143fc6[_0xfe4131('0x95d')]=_0x2685f0,_0x143fc6['registerMainForm']=_0x1df4ac,_0x143fc6[_0xfe4131('0x2586')]=_0x2e45c2,_0x143fc6['setupSteps']=_0x1f24d8,_0x143fc6[_0xfe4131('0x114a')]=_0x42c631,_0x143fc6[_0xfe4131('0x1768')]=_0x2b78fa,_0x143fc6[_0xfe4131('0x24a4')]=_0xc1d6e1,_0x143fc6[_0xfe4131('0x1128')]=_0x5881d,_0x143fc6[_0xfe4131('0x1b6f')]=_0x45c823,_0x143fc6[_0xfe4131('0xfa3')]=_0x20b696,_0x143fc6['gotoLastStep']=_0xff0ca9,_0x143fc6[_0xfe4131('0x26f4')]=_0x457e04,_0x143fc6[_0xfe4131('0x2425')]=_0x34e960,_0x143fc6[_0xfe4131('0x1c1d')]=_0x291a19,_0x143fc6[_0xfe4131('0x19dc')]=_0xd3bcc2,_0x143fc6[_0xfe4131('0x1181')]=_0x303ff0,_0x143fc6[_0xfe4131('0x1b9b')]=_0x57160a,_0x143fc6[_0xfe4131('0x2677')]=_0x31526b,_0x143fc6[_0xfe4131('0x179d')]=_0x3d86e2,_0x143fc6[_0xfe4131('0x197f')]=_0x2f597d,_0x143fc6[_0xfe4131('0x267d')]=_0x2c84c9;}function _0x5eef93(){const _0x425b62=_0x566993;return{'restrict':'A','scope':{},'require':['form',_0x425b62('0x1c12')],'priority':0x3e9,'controller':_0x425b62('0x229f'),'bindToController':{'model':_0x425b62('0x7b2')},'transclude':!![],'templateUrl':_0x52a1a4,'compile':function(_0x37d9ac){const _0x585503=_0x425b62;return _0x37d9ac[_0x585503('0x88c')]('ms-stepper'),function _0x1355ca(_0x3306de,_0x293b3a,_0x572b55,_0x54ce2e){const _0x2bd16d=_0x585503,_0x2c1c71=_0x54ce2e[0x0],_0x1f518a=_0x54ce2e[0x1];_0x1f518a[_0x2bd16d('0x95d')](_0x2bd16d('0x9e1')),_0x1f518a['registerMainForm'](_0x2c1c71),_0x1f518a[_0x2bd16d('0x8b3')]();};}};}function _0x7a3bb5(){const _0x53dc98=_0x566993;return{'restrict':'E','require':[_0x53dc98('0x1556'),'^msHorizontalStepper'],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function(_0x1808b2){const _0x519e8e=_0x53dc98;return _0x1808b2['addClass'](_0x519e8e('0xd7d')),function _0x6acb53(_0x5d5e01,_0x4b3e9a,_0x43b873,_0x2d351c){const _0x2e26ae=_0x519e8e,_0x143bc2=_0x2d351c[0x0],_0x5d0d72=_0x2d351c[0x1];_0x5d5e01['optionalStep']=angular[_0x2e26ae('0x4a5')](_0x43b873['optionalStep']),_0x5d0d72[_0x2e26ae('0x2586')](_0x4b3e9a,_0x5d5e01,_0x143bc2),_0x4b3e9a[_0x2e26ae('0x1cf4')]();};}};}function _0x5e7483(_0x5240d6){const _0x318411=_0x566993;return{'restrict':'A','scope':{},'require':['form',_0x318411('0x20fe')],'priority':0x3e9,'controller':_0x318411('0x229f'),'bindToController':{'model':_0x318411('0x7b2')},'transclude':!![],'templateUrl':_0x2bda1b,'compile':function(_0x32578c){const _0x1d4c99=_0x318411;return _0x32578c[_0x1d4c99('0x88c')](_0x1d4c99('0x1d07')),function _0x1d4bd1(_0xf73842,_0x297e48,_0x21e3c6,_0x227deb){const _0x273b00=_0x227deb[0x0],_0x18ed7b=_0x227deb[0x1];_0x5240d6(function(){const _0x5da582=a0_0xde5e;_0x18ed7b[_0x5da582('0x95d')]('vertical'),_0x18ed7b['registerMainForm'](_0x273b00),_0x18ed7b['setupSteps']();});};}};}function _0x43e1eb(){const _0x4156ab=_0x566993;return{'restrict':'E','require':[_0x4156ab('0x1556'),'^msVerticalStepper'],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x2d9a1d,'compile':function(_0x3a5d63){const _0x5491eb=_0x4156ab;return _0x3a5d63['addClass'](_0x5491eb('0xd7d')),function _0x25fbfb(_0x48f66f,_0x13df5b,_0x1889fd,_0x5d7474){const _0x5effc8=_0x5491eb,_0x1f1f6c=_0x5d7474[0x0],_0x39679e=_0x5d7474[0x1];_0x48f66f[_0x5effc8('0xca9')]=angular[_0x5effc8('0x4a5')](_0x1889fd['optionalStep']),_0x48f66f[_0x5effc8('0x1dd0')]=_0x39679e[_0x5effc8('0x2586')](_0x13df5b,_0x48f66f,_0x1f1f6c),_0x48f66f[_0x5effc8('0x7e6')]=_0x39679e,_0x13df5b[_0x5effc8('0x18ab')](_0x5effc8('0x1c31'))['hide']();};}};}const _0xbd0808=_0x21a6a1['p']+_0x566993('0x5bf');;function _0x3c6617(){const _0x6d10db=_0x566993,_0xcc9c16=this;_0xcc9c16[_0x6d10db('0x1be6')]=_0x59ee59,_0xcc9c16['canScroll']=_0x232154;function _0x59ee59(_0x4ed559){const _0x4c7e56=_0x6d10db;_0x4ed559==_0x4c7e56('0x292')?$(_0x4c7e56('0x87f'))[_0x4c7e56('0x2279')]()[_0x4c7e56('0x190d')]({'scrollLeft':_0x4c7e56('0x214e')},0x3e8):$(_0x4c7e56('0x87f'))[_0x4c7e56('0x2279')]()['animate']({'scrollLeft':'+=400'},0x3e8);}function _0x232154(_0x282b12){const _0x3c5aed=_0x6d10db;switch(_0x497a27()){case'both':return!![];case _0x3c5aed('0x292'):return _0x282b12==_0x3c5aed('0x292')?!![]:![];case'right':return _0x282b12==_0x3c5aed('0x14af')?!![]:![];case _0x3c5aed('0x2741'):return![];default:return![];}}function _0x497a27(){const _0x2c51cf=_0x6d10db,_0x49b4ab=document[_0x2c51cf('0x1c4d')]('bar-container'),_0x5bf612=document[_0x2c51cf('0x1c4d')](_0x2c51cf('0x2775'));if(_0x5bf612['scrollWidth']>_0x49b4ab[_0x2c51cf('0xe')]&&_0x49b4ab['scrollLeft']==0x0&&_0x5bf612[_0x2c51cf('0x1d98')]==0x0)return _0x2c51cf('0x14af');else{if(_0x5bf612['scrollWidth']>_0x49b4ab[_0x2c51cf('0xe')]&&_0x5bf612[_0x2c51cf('0x1d98')]>_0x49b4ab[_0x2c51cf('0x1d98')]&&_0x49b4ab[_0x2c51cf('0xe')]+_0x5bf612[_0x2c51cf('0x1d98')]>=_0x5bf612['scrollWidth'])return _0x2c51cf('0x292');else return _0x5bf612[_0x2c51cf('0xe')]>_0x49b4ab[_0x2c51cf('0xe')]&&_0x5bf612['scrollLeft']>_0x49b4ab[_0x2c51cf('0x1d98')]&&_0x49b4ab['scrollWidth']+_0x5bf612[_0x2c51cf('0x1d98')]<_0x5bf612[_0x2c51cf('0xe')]?_0x2c51cf('0x19b9'):'none';}}}function _0x179a13(){return{'restrict':'E','scope':{},'transclude':!![],'controller':'MsTabScrollController','controllerAs':'vm','bindToController':!![],'templateUrl':_0xbd0808,'compile':function(_0x57ca70){const _0x5ec9ca=a0_0xde5e;return _0x57ca70['addClass'](_0x5ec9ca('0xeca')),function _0x2934f6(){};}};}_0x1951f4['$inject']=[_0x566993('0x24b5'),'$q'];function _0x3f47a9(){const _0x31c6b3=_0x566993,_0x41eaf5=this;_0x41eaf5[_0x31c6b3('0x228d')]=undefined,_0x41eaf5[_0x31c6b3('0x191')]=_0x49a606,_0x41eaf5[_0x31c6b3('0x1891')]=_0x369191;function _0x49a606(_0x47cb3d){const _0xc58f87=_0x31c6b3;_0x41eaf5[_0xc58f87('0x228d')]=_0x47cb3d;}function _0x369191(){const _0x5dc3b1=_0x31c6b3;return _0x41eaf5[_0x5dc3b1('0x228d')];}}function _0x4e5c8d(){const _0x56f188=_0x566993;return{'scope':{'msTimeline':'=?','loadMore':'&?msTimelineLoadMore'},'controller':_0x56f188('0x1d6b'),'compile':function(_0x955885){const _0x334766=_0x56f188;return _0x955885[_0x334766('0x88c')](_0x334766('0xa13')),function _0x344f79(_0x5d5b28,_0x2a2dd3,_0x36a2cf,_0x1d589d){const _0x2862c7=_0x334766,_0x2c6274=angular[_0x2862c7('0xb6d')](_0x2862c7('0x1457'));_0x2a2dd3['append'](_0x2c6274);let _0xb7b70d={'scrollEl':_0x2862c7('0x4a7')};_0xb7b70d=angular[_0x2862c7('0x2d3')](_0xb7b70d,_0x5d5b28[_0x2862c7('0xd01')],{});const _0xa0d22a=angular[_0x2862c7('0xb6d')](_0xb7b70d[_0x2862c7('0x228d')]);_0x1d589d[_0x2862c7('0x191')](_0xa0d22a);const _0x43aaa5=0x90;_0x3999be();function _0x1b4926(){const _0x2c7c93=_0x2862c7;_0xa0d22a['scrollTop']()+_0xa0d22a[_0x2c7c93('0x124a')]()+_0x43aaa5>_0x2c6274[_0x2c7c93('0xf2c')]()[_0x2c7c93('0x2047')]&&(_0x2c6274[_0x2c7c93('0x88c')](_0x2c7c93('0x1cb7')),_0x9298a(),_0x5d5b28['loadMore']()[_0x2c7c93('0x173b')](function(){const _0x19a8e7=_0x2c7c93;_0x2c6274[_0x19a8e7('0x3b3')]('show'),_0x3999be();},function(){const _0x1b828f=_0x2c7c93;_0x2c6274[_0x1b828f('0x1a8b')]();}));}function _0x3999be(){const _0xf8f964=_0x2862c7;_0xa0d22a['on'](_0xf8f964('0x18f5'),_0x1b4926);}function _0x9298a(){const _0x33752c=_0x2862c7;_0xa0d22a[_0x33752c('0x352')](_0x33752c('0x18f5'),_0x1b4926);}_0x5d5b28['$on'](_0x2862c7('0x16d2'),function(){_0x9298a();});};}};}function _0x1951f4(_0x29bde9,_0x3e6a0f){const _0x199def=_0x566993;return{'scope':!![],'require':_0x199def('0x1417'),'compile':function(_0x1863cb){const _0x4c080e=_0x199def;return _0x1863cb['addClass']('ms-timeline-item')['addClass'](_0x4c080e('0x202b')),function _0x115938(_0x282cc9,_0x2c1612,_0x40b5bd,_0x3f5e86){const _0xeb711d=_0x4c080e,_0x13ae61=0x48;let _0x3ad156=![],_0x331c2c=![];const _0x471b6b=_0x3f5e86[_0xeb711d('0x1891')]();_0x1b0f7a();function _0x1b0f7a(){const _0x57ee62=_0xeb711d;_0x2c1612[_0x57ee62('0x18ab')](_0x57ee62('0x127b'))?_0x282cc9['$on'](_0x57ee62('0x397'),function(_0x5f0fff,_0x4a37f6){const _0x505698=_0x57ee62,_0x5dbad0=angular[_0x505698('0xb6d')](_0x4a37f6[0x0]);_0x4942bb(_0x5dbad0)['then'](function(){_0x29bde9(function(){_0x3ad156=!![];});});}):_0x4942bb(_0x2c1612)[_0x57ee62('0x173b')](function(){_0x29bde9(function(){_0x3ad156=!![];});}),_0x471b6b['on'](_0x57ee62('0x18f5'),_0x213502),_0x213502();}const _0x1918ca=_0x282cc9[_0xeb711d('0x1bdb')](function(){return _0x3ad156&&_0x331c2c;},function(_0x4fa3eb,_0x39cbbd){const _0x3da757=_0xeb711d;if(angular[_0x3da757('0x1482')](_0x4fa3eb,_0x39cbbd))return;_0x4fa3eb&&(_0x2c1612[_0x3da757('0x3b3')](_0x3da757('0x202b'))['addClass'](_0x3da757('0x190d')),_0x1918ca());},!![]);function _0x4942bb(_0x37b3f4){const _0x34a695=_0xeb711d,_0x849ae1=_0x3e6a0f['defer'](),_0x35b625=_0x37b3f4['find'](_0x34a695('0x201d'));return _0x35b625[_0x34a695('0x543')]>0x0?_0x35b625['on'](_0x34a695('0xda0'),function(){const _0x248c71=_0x34a695;_0x849ae1[_0x248c71('0x155b')](_0x248c71('0x450'));}):_0x849ae1[_0x34a695('0x155b')](_0x34a695('0x211e')),_0x849ae1[_0x34a695('0x2219')];}function _0x213502(){const _0x1ecddb=_0xeb711d;_0x471b6b[_0x1ecddb('0x2208')]()+_0x471b6b[_0x1ecddb('0x124a')]()>_0x2c1612[_0x1ecddb('0xf2c')]()[_0x1ecddb('0x2047')]+_0x13ae61&&(_0x29bde9(function(){_0x331c2c=!![];}),_0x471b6b[_0x1ecddb('0x352')]('scroll',_0x213502));}};}};}_0x5d4207[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x1b13'),_0x566993('0x1d31'),'$translate','$attrs',_0x566993('0x1a7f'),_0x566993('0x1acf')];function _0x5d4207(_0xaad3d7,_0x4ce28c,_0x2c7bf5,_0x1b271a,_0x1e61f0,_0x475c75,_0x2a5baf,_0x2b2b07,_0x15ad57){const _0x509437=_0x566993;typeof String[_0x509437('0x2356')][_0x509437('0x16b1')]!==_0x509437('0x8bc')&&(String[_0x509437('0x2356')][_0x509437('0x16b1')]=function(){const _0x4f3632=_0x509437;return this[_0x4f3632('0x166c')](/^\s+|\s+$/g,'');});_0xaad3d7[_0x509437('0xff9')]=_0x2a5baf[_0x509437('0xff9')]||_0x2a5baf['autostart'];_0x2b2b07[_0x509437('0x267e')]()['trim']()[_0x509437('0x543')]===0x0?_0x2b2b07['append'](_0x15ad57(_0x509437('0xe07'))(_0xaad3d7)):_0x2b2b07['append'](_0x15ad57(_0x2b2b07[_0x509437('0xd89')]())(_0xaad3d7));_0xaad3d7[_0x509437('0x55a')]=_0xaad3d7['intervalAttr']||0x3e8,_0xaad3d7[_0x509437('0x10b7')]=null,_0xaad3d7['endTime']=null,_0xaad3d7[_0x509437('0x216a')]=null,_0xaad3d7[_0x509437('0x16a3')]=_0xaad3d7[_0x509437('0xe7b')]&&parseInt(_0xaad3d7[_0x509437('0xe7b')],0xa)>=0x0?parseInt(_0xaad3d7['countdownAttr'],0xa):undefined,_0xaad3d7['isRunning']=![],_0xaad3d7['$watch'](_0x509437('0xd19'),function(_0x4885d4,_0x445eee){const _0x1ae41d=_0x509437;_0x4885d4!==_0x445eee&&_0xaad3d7[_0x1ae41d('0x6a9')]&&_0xaad3d7[_0x1ae41d('0x17d1')]();}),_0xaad3d7['$on'](_0x509437('0x2513'),function(){_0xaad3d7['start']();}),_0xaad3d7['$on']('timer-resume',function(){const _0x1483c8=_0x509437;_0xaad3d7[_0x1483c8('0xb7b')]();}),_0xaad3d7[_0x509437('0xbf6')](_0x509437('0x15d5'),function(){const _0x5da68e=_0x509437;_0xaad3d7[_0x5da68e('0x2279')]();}),_0xaad3d7['$on'](_0x509437('0xb18'),function(){const _0xa8e7fb=_0x509437;_0xaad3d7[_0xa8e7fb('0x1e1b')]();}),_0xaad3d7[_0x509437('0xbf6')](_0x509437('0x1f96'),function(_0x55ee38,_0x4e07b5){_0xaad3d7['countdown']=_0x4e07b5;});function _0x31d1af(){const _0x39c479=_0x509437;_0xaad3d7[_0x39c479('0x216a')]&&clearTimeout(_0xaad3d7[_0x39c479('0x216a')]);}_0xaad3d7[_0x509437('0x17d1')]=function(){const _0x571606=_0x509437,_0x3991b0=_0x156524()(),_0x170b69=_0xaad3d7['startTimeAttr']?_0x156524()(_0xaad3d7['startTimeAttr']):null;!_0x170b69||_0x170b69>_0x3991b0?_0xaad3d7[_0x571606('0x10b7')]=_0x3991b0:_0xaad3d7[_0x571606('0x10b7')]=_0x170b69;const _0x5ae08a=_0xaad3d7[_0x571606('0x2f0')]?_0x156524()(_0xaad3d7[_0x571606('0x2f0')]):null;!_0x5ae08a||_0x5ae08a<_0x3991b0?_0xaad3d7[_0x571606('0x25d1')]=null:_0xaad3d7[_0x571606('0x25d1')]=_0x5ae08a,!_0xaad3d7[_0x571606('0x16a3')]&&(_0xaad3d7[_0x571606('0x16a3')]=_0xaad3d7[_0x571606('0xe7b')]&&parseInt(_0xaad3d7['countdownAttr'],0xa)>0x0?parseInt(_0xaad3d7[_0x571606('0x200f')],0xa):undefined),_0x31d1af(),_0x27c414(),_0xaad3d7[_0x571606('0x6a9')]=!![];},_0x2b2b07[0x0][_0x509437('0x17d1')]=_0xaad3d7[_0x509437('0x17d1')],_0xaad3d7[_0x509437('0xb7b')]=function(){const _0x2ac42c=_0x509437;_0x31d1af(),_0xaad3d7[_0x2ac42c('0xe7b')]&&(_0xaad3d7[_0x2ac42c('0x16a3')]+=0x1),_0xaad3d7[_0x2ac42c('0x10b7')]=_0x156524()()[_0x2ac42c('0x22c6')](_0x156524()(_0xaad3d7[_0x2ac42c('0x17da')])['diff'](_0x156524()(_0xaad3d7['startTime']))),_0x27c414(),_0xaad3d7['isRunning']=!![];},_0x2b2b07[0x0]['resume']=_0xaad3d7[_0x509437('0xb7b')],_0xaad3d7[_0x509437('0x2279')]=function(){const _0x49148f=_0x509437;_0xaad3d7[_0x49148f('0x1e1b')](),_0xaad3d7[_0x49148f('0x1d12')](_0x49148f('0x20dd'),{'timeoutId':_0xaad3d7[_0x49148f('0x216a')],'millis':_0xaad3d7[_0x49148f('0x1d33')],'seconds':_0xaad3d7[_0x49148f('0x1adf')],'minutes':_0xaad3d7[_0x49148f('0x893')],'hours':_0xaad3d7['hours'],'days':_0xaad3d7[_0x49148f('0x1ce6')]});},_0xaad3d7[_0x509437('0x1751')]=_0xaad3d7[_0x509437('0x2279')],_0x2b2b07[0x0][_0x509437('0x2279')]=_0xaad3d7['stop'],_0x2b2b07[0x0][_0x509437('0x1751')]=_0xaad3d7['stop'],_0xaad3d7['clear']=function(){const _0x4bab47=_0x509437;_0xaad3d7[_0x4bab47('0x17da')]=_0x156524()(),_0x31d1af(),_0xaad3d7[_0x4bab47('0x216a')]=null,_0xaad3d7[_0x4bab47('0x6a9')]=![];},_0x2b2b07[0x0][_0x509437('0x1e1b')]=_0xaad3d7[_0x509437('0x1e1b')],_0x2b2b07[_0x509437('0xfa5')](_0x509437('0x16d2'),function(){_0x31d1af(),_0xaad3d7['isRunning']=![];});function _0x5c6dd0(){const _0x499056=_0x509437;_0x2a5baf['startTime']!==undefined&&(_0xaad3d7[_0x499056('0x1d33')]=_0x156524()()['diff'](_0x156524()(_0xaad3d7[_0x499056('0x10b7')])));if(!_0xaad3d7[_0x499056('0x1ee2')]||_0xaad3d7['maxTimeUnit']==='day')_0xaad3d7[_0x499056('0x1adf')]=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0x3e8%0x3c),_0xaad3d7[_0x499056('0x893')]=Math[_0x499056('0x2207')](_0xaad3d7['millis']/0xea60%0x3c),_0xaad3d7['hours']=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0x36ee80%0x18),_0xaad3d7[_0x499056('0x1ce6')]=Math[_0x499056('0x2207')](_0xaad3d7['millis']/0x36ee80/0x18),_0xaad3d7[_0x499056('0x8f3')]=0x0,_0xaad3d7[_0x499056('0x19d7')]=0x0;else{if(_0xaad3d7[_0x499056('0x1ee2')]===_0x499056('0x6f3'))_0xaad3d7[_0x499056('0x1adf')]=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0x3e8),_0xaad3d7[_0x499056('0x893')]=0x0,_0xaad3d7[_0x499056('0x26b6')]=0x0,_0xaad3d7[_0x499056('0x1ce6')]=0x0,_0xaad3d7['months']=0x0,_0xaad3d7[_0x499056('0x19d7')]=0x0;else{if(_0xaad3d7[_0x499056('0x1ee2')]===_0x499056('0x239f'))_0xaad3d7['seconds']=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0x3e8%0x3c),_0xaad3d7[_0x499056('0x893')]=Math['floor'](_0xaad3d7[_0x499056('0x1d33')]/0xea60),_0xaad3d7[_0x499056('0x26b6')]=0x0,_0xaad3d7[_0x499056('0x1ce6')]=0x0,_0xaad3d7['months']=0x0,_0xaad3d7[_0x499056('0x19d7')]=0x0;else{if(_0xaad3d7[_0x499056('0x1ee2')]===_0x499056('0xb74'))_0xaad3d7[_0x499056('0x1adf')]=Math[_0x499056('0x2207')](_0xaad3d7['millis']/0x3e8%0x3c),_0xaad3d7['minutes']=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0xea60%0x3c),_0xaad3d7[_0x499056('0x26b6')]=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0x36ee80),_0xaad3d7[_0x499056('0x1ce6')]=0x0,_0xaad3d7[_0x499056('0x8f3')]=0x0,_0xaad3d7[_0x499056('0x19d7')]=0x0;else{if(_0xaad3d7[_0x499056('0x1ee2')]===_0x499056('0x70b'))_0xaad3d7[_0x499056('0x1adf')]=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0x3e8%0x3c),_0xaad3d7[_0x499056('0x893')]=Math['floor'](_0xaad3d7[_0x499056('0x1d33')]/0xea60%0x3c),_0xaad3d7[_0x499056('0x26b6')]=Math['floor'](_0xaad3d7['millis']/0x36ee80%0x18),_0xaad3d7['days']=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0x36ee80/0x18%0x1e),_0xaad3d7['months']=Math[_0x499056('0x2207')](_0xaad3d7['millis']/0x36ee80/0x18/0x1e),_0xaad3d7['years']=0x0;else _0xaad3d7[_0x499056('0x1ee2')]===_0x499056('0x168f')&&(_0xaad3d7[_0x499056('0x1adf')]=Math[_0x499056('0x2207')](_0xaad3d7['millis']/0x3e8%0x3c),_0xaad3d7[_0x499056('0x893')]=Math[_0x499056('0x2207')](_0xaad3d7[_0x499056('0x1d33')]/0xea60%0x3c),_0xaad3d7[_0x499056('0x26b6')]=Math['floor'](_0xaad3d7[_0x499056('0x1d33')]/0x36ee80%0x18),_0xaad3d7[_0x499056('0x1ce6')]=Math[_0x499056('0x2207')](_0xaad3d7['millis']/0x36ee80/0x18%0x1e),_0xaad3d7[_0x499056('0x8f3')]=Math['floor'](_0xaad3d7[_0x499056('0x1d33')]/0x36ee80/0x18/0x1e%0xc),_0xaad3d7[_0x499056('0x19d7')]=Math[_0x499056('0x2207')](_0xaad3d7['millis']/0x36ee80/0x18/0x16d));}}}}_0xaad3d7[_0x499056('0xa9b')]=_0xaad3d7[_0x499056('0x1adf')]===0x1||_0xaad3d7[_0x499056('0x1adf')]===0x0?'':'s',_0xaad3d7[_0x499056('0x88d')]=_0xaad3d7[_0x499056('0x893')]===0x1||_0xaad3d7[_0x499056('0x893')]===0x0?'':'s',_0xaad3d7[_0x499056('0x789')]=_0xaad3d7[_0x499056('0x26b6')]===0x1||_0xaad3d7['hours']===0x0?'':'s',_0xaad3d7['daysS']=_0xaad3d7[_0x499056('0x1ce6')]===0x1||_0xaad3d7[_0x499056('0x1ce6')]===0x0?'':'s',_0xaad3d7['monthsS']=_0xaad3d7[_0x499056('0x8f3')]===0x1||_0xaad3d7[_0x499056('0x8f3')]===0x0?'':'s',_0xaad3d7[_0x499056('0xba')]=_0xaad3d7[_0x499056('0x19d7')]===0x1||_0xaad3d7[_0x499056('0x19d7')]===0x0?'':'s',_0xaad3d7[_0x499056('0xe6')]=_0xaad3d7['seconds']<0xa?'0'+_0xaad3d7[_0x499056('0x1adf')]:_0xaad3d7['seconds'],_0xaad3d7[_0x499056('0x6d')]=_0xaad3d7[_0x499056('0x893')]<0xa?'0'+_0xaad3d7['minutes']:_0xaad3d7[_0x499056('0x893')],_0xaad3d7[_0x499056('0xdc1')]=_0xaad3d7['hours']<0xa?'0'+_0xaad3d7[_0x499056('0x26b6')]:_0xaad3d7[_0x499056('0x26b6')],_0xaad3d7[_0x499056('0x265e')]=_0xaad3d7[_0x499056('0x1ce6')]<0xa?'0'+_0xaad3d7[_0x499056('0x1ce6')]:_0xaad3d7[_0x499056('0x1ce6')],_0xaad3d7[_0x499056('0x1b5a')]=_0xaad3d7[_0x499056('0x8f3')]<0xa?'0'+_0xaad3d7['months']:_0xaad3d7[_0x499056('0x8f3')],_0xaad3d7[_0x499056('0x777')]=_0xaad3d7[_0x499056('0x19d7')]<0xa?'0'+_0xaad3d7[_0x499056('0x19d7')]:_0xaad3d7[_0x499056('0x19d7')];}const _0x27c414=function(){const _0x3a7010=_0x509437;_0xaad3d7[_0x3a7010('0x1d33')]=_0x156524()()[_0x3a7010('0x22c6')](_0xaad3d7[_0x3a7010('0x10b7')]);let _0x1d9245=_0xaad3d7[_0x3a7010('0x1d33')]%0x3e8;_0xaad3d7[_0x3a7010('0x2f0')]&&(_0xaad3d7[_0x3a7010('0x1d33')]=_0x156524()(_0xaad3d7[_0x3a7010('0x25d1')])['diff'](_0x156524()()),_0x1d9245=_0xaad3d7[_0x3a7010('0x55a')]-_0xaad3d7['millis']%0x3e8);_0xaad3d7[_0x3a7010('0xe7b')]&&(_0xaad3d7[_0x3a7010('0x1d33')]=_0xaad3d7['countdown']*0x3e8);if(_0xaad3d7[_0x3a7010('0x1d33')]<0x0){_0xaad3d7['stop'](),_0xaad3d7[_0x3a7010('0x1d33')]=0x0,_0x5c6dd0();_0xaad3d7[_0x3a7010('0x4f3')]&&_0xaad3d7['$eval'](_0xaad3d7[_0x3a7010('0x4f3')]);return;}_0x5c6dd0(),_0xaad3d7['timeoutId']=setTimeout(function(){const _0x52c8f8=_0x3a7010;_0x27c414(),_0xaad3d7[_0x52c8f8('0x18df')]();},_0xaad3d7[_0x3a7010('0x55a')]-_0x1d9245),_0xaad3d7['$emit'](_0x3a7010('0x1bf0'),{'timeoutId':_0xaad3d7[_0x3a7010('0x216a')],'millis':_0xaad3d7[_0x3a7010('0x1d33')]});if(_0xaad3d7[_0x3a7010('0x16a3')]>0x0)_0xaad3d7['countdown']--;else _0xaad3d7[_0x3a7010('0x16a3')]<=0x0&&(_0xaad3d7[_0x3a7010('0x2279')](),_0xaad3d7[_0x3a7010('0x4f3')]&&_0xaad3d7[_0x3a7010('0x2ad')](_0xaad3d7[_0x3a7010('0x4f3')]));};(_0xaad3d7[_0x509437('0xff9')]===undefined||_0xaad3d7[_0x509437('0xff9')]===!![])&&_0xaad3d7[_0x509437('0x17d1')]();}function _0x5d6387(){const _0x28a675=_0x566993;return{'restrict':'EA','replace':![],'scope':{'intervalAttr':'=interval','startTimeAttr':_0x28a675('0xc81'),'endTimeAttr':'=endTime','countdownAttr':_0x28a675('0x1984'),'autoStart':_0x28a675('0x1a00'),'maxTimeUnit':'='},'controller':_0x28a675('0xb78')};}const _0x8a71a1=_0x21a6a1['p']+'src/js/modules/core/directives/ms-timezone/ms-timezone.html/ms-timezone.html';;function _0x24f175(){const _0x198994=_0x566993;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x198994('0x66f'),function(_0x30c922){const _0x425c2c=_0x198994;_0x30c922[_0x425c2c('0x183f')]=[{'name':_0x425c2c('0xce1'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['AD']},{'name':'Asia/Dubai','utcOffset':0xf0,'offsetStr':_0x425c2c('0xe29'),'countries':['AE','OM']},{'name':_0x425c2c('0x20cf'),'utcOffset':0x10e,'offsetStr':_0x425c2c('0x10c0'),'countries':['AF']},{'name':_0x425c2c('0xa64'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['AL']},{'name':'Asia/Yerevan','utcOffset':0xf0,'offsetStr':_0x425c2c('0xe29'),'countries':['AM']},{'name':_0x425c2c('0xc48'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AQ']},{'name':_0x425c2c('0xea3'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AQ']},{'name':_0x425c2c('0xc8d'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['AQ']},{'name':'Antarctica/Davis','utcOffset':0x1a4,'offsetStr':_0x425c2c('0x9af'),'countries':['AQ']},{'name':_0x425c2c('0x1a77'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AQ']},{'name':_0x425c2c('0x26dd'),'utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['AQ']},{'name':_0x425c2c('0x75a'),'utcOffset':0x258,'offsetStr':_0x425c2c('0x1126'),'countries':['AQ']},{'name':_0x425c2c('0x6c2'),'utcOffset':0xb4,'offsetStr':_0x425c2c('0x167c'),'countries':['AQ']},{'name':'Antarctica/Troll','utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['AQ']},{'name':_0x425c2c('0x271'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AR']},{'name':_0x425c2c('0x16a4'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AR']},{'name':_0x425c2c('0x653'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AR']},{'name':_0x425c2c('0x15b1'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Tucuman','utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AR']},{'name':'America/Argentina/Catamarca','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0x425c2c('0x120f'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AR']},{'name':_0x425c2c('0x244b'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AR']},{'name':_0x425c2c('0x8cf'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/San_Luis','utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AR']},{'name':'America/Argentina/Rio_Gallegos','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':'America/Argentina/Ushuaia','utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['AR']},{'name':_0x425c2c('0x13d0'),'utcOffset':-0x294,'offsetStr':_0x425c2c('0x505'),'countries':['AS','UM']},{'name':_0x425c2c('0x38c'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['AT']},{'name':_0x425c2c('0x7c3'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['AU']},{'name':_0x425c2c('0xe3c'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['AU']},{'name':_0x425c2c('0x244f'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['AU']},{'name':_0x425c2c('0x1ca4'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['AU']},{'name':_0x425c2c('0x14d8'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['AU']},{'name':_0x425c2c('0x95c'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['AU']},{'name':'Australia/Broken_Hill','utcOffset':0x276,'offsetStr':_0x425c2c('0x15ae'),'countries':['AU']},{'name':_0x425c2c('0x1f7f'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AU']},{'name':_0x425c2c('0xfee'),'utcOffset':0x258,'offsetStr':_0x425c2c('0x1126'),'countries':['AU']},{'name':_0x425c2c('0x2186'),'utcOffset':0x276,'offsetStr':_0x425c2c('0x15ae'),'countries':['AU']},{'name':_0x425c2c('0x206f'),'utcOffset':0x23a,'offsetStr':_0x425c2c('0x517'),'countries':['AU']},{'name':'Australia/Perth','utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['AU']},{'name':_0x425c2c('0x1a14'),'utcOffset':0x20d,'offsetStr':_0x425c2c('0xd3c'),'countries':['AU']},{'name':'Asia/Baku','utcOffset':0xf0,'offsetStr':_0x425c2c('0xe29'),'countries':['AZ']},{'name':'America/Barbados','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BB']},{'name':_0x425c2c('0x1d8c'),'utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['BD']},{'name':_0x425c2c('0x19a4'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['BE']},{'name':_0x425c2c('0x204c'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['BG']},{'name':_0x425c2c('0x2668'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['BM']},{'name':'Asia/Brunei','utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['BN']},{'name':_0x425c2c('0x7b1'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['BO']},{'name':_0x425c2c('0xa08'),'utcOffset':-0x78,'offsetStr':_0x425c2c('0x26ee'),'countries':['BR']},{'name':_0x425c2c('0x22df'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x425c2c('0x236f'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['BR']},{'name':'America/Recife','utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['BR']},{'name':'America/Araguaina','utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['BR']},{'name':_0x425c2c('0x25ff'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0x425c2c('0x17dc'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['BR']},{'name':_0x425c2c('0x5c5'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['BR']},{'name':_0x425c2c('0x2674'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['BR']},{'name':_0x425c2c('0x1f81'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['BR']},{'name':_0x425c2c('0x144f'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['BR']},{'name':'America/Porto_Velho','utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['BR']},{'name':_0x425c2c('0x1725'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['BR']},{'name':_0x425c2c('0x59e'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['BR']},{'name':_0x425c2c('0x229a'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['BR']},{'name':_0x425c2c('0x250a'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},{'name':_0x425c2c('0x49d'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BS']},{'name':_0x425c2c('0x10d1'),'utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['BT']},{'name':_0x425c2c('0x1e98'),'utcOffset':0xb4,'offsetStr':_0x425c2c('0x167c'),'countries':['BY']},{'name':_0x425c2c('0x1305'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['BZ']},{'name':_0x425c2c('0x33c'),'utcOffset':-0xd2,'offsetStr':_0x425c2c('0x444'),'countries':['CA']},{'name':_0x425c2c('0xc99'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['CA']},{'name':_0x425c2c('0x1a5f'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['CA']},{'name':_0x425c2c('0x1532'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['CA']},{'name':'America/Goose_Bay','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0x425c2c('0xd66'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['CA']},{'name':_0x425c2c('0x1c67'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['CA']},{'name':_0x425c2c('0x1327'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['CA']},{'name':'America/Thunder_Bay','utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['CA']},{'name':'America/Iqaluit','utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['CA']},{'name':'America/Pangnirtung','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':_0x425c2c('0x1a82'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['CA']},{'name':_0x425c2c('0x2b0'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['CA']},{'name':_0x425c2c('0x226a'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x425c2c('0xcd'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x425c2c('0x1b50'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0x425c2c('0x25bb'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['CA']},{'name':'America/Swift_Current','utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['CA']},{'name':_0x425c2c('0xc54'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':_0x425c2c('0x19c0'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['CA']},{'name':_0x425c2c('0x27d5'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['CA']},{'name':'America/Inuvik','utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['CA']},{'name':_0x425c2c('0x1e86'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['CA']},{'name':_0x425c2c('0x251f'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['CA']},{'name':_0x425c2c('0x274'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['CA']},{'name':_0x425c2c('0x2325'),'utcOffset':-0x1e0,'offsetStr':_0x425c2c('0x10b9'),'countries':['CA']},{'name':_0x425c2c('0x1283'),'utcOffset':-0x1e0,'offsetStr':_0x425c2c('0x10b9'),'countries':['CA']},{'name':_0x425c2c('0x1bc7'),'utcOffset':-0x1e0,'offsetStr':_0x425c2c('0x10b9'),'countries':['CA']},{'name':_0x425c2c('0x1033'),'utcOffset':0x186,'offsetStr':_0x425c2c('0x1920'),'countries':['CC']},{'name':_0x425c2c('0x21dd'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['CH','DE','LI']},{'name':'Africa/Abidjan','utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':'Pacific/Rarotonga','utcOffset':-0x258,'offsetStr':_0x425c2c('0x1e78'),'countries':['CK']},{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['CL']},{'name':_0x425c2c('0x141e'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['CL']},{'name':_0x425c2c('0x244c'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['CN']},{'name':'Asia/Urumqi','utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['CN']},{'name':'America/Bogota','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CO']},{'name':_0x425c2c('0x758'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['CR']},{'name':_0x425c2c('0x80c'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CU']},{'name':_0x425c2c('0x1707'),'utcOffset':-0x3c,'offsetStr':'-01:00','countries':['CV']},{'name':_0x425c2c('0x14a9'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['CW','AW','BQ','SX']},{'name':_0x425c2c('0xc97'),'utcOffset':0x1a4,'offsetStr':_0x425c2c('0x9af'),'countries':['CX']},{'name':_0x425c2c('0x2df'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['CY']},{'name':_0x425c2c('0x224e'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CZ','SK']},{'name':_0x425c2c('0xe48'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DE']},{'name':'Europe/Copenhagen','utcOffset':0x3c,'offsetStr':'+01:00','countries':['DK']},{'name':_0x425c2c('0x838'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['DO']},{'name':_0x425c2c('0x15c7'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['DZ']},{'name':_0x425c2c('0xff'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['EC']},{'name':_0x425c2c('0x125e'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['EC']},{'name':_0x425c2c('0xa09'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['EE']},{'name':_0x425c2c('0x143c'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['EG']},{'name':_0x425c2c('0x8db'),'utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['EH']},{'name':_0x425c2c('0x975'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['ES']},{'name':'Africa/Ceuta','utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['ES']},{'name':'Atlantic/Canary','utcOffset':0x0,'offsetStr':'+00:00','countries':['ES']},{'name':_0x425c2c('0x23f2'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['FI','AX']},{'name':_0x425c2c('0x394'),'utcOffset':0x2d0,'offsetStr':_0x425c2c('0x1637'),'countries':['FJ']},{'name':_0x425c2c('0x108c'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['FK']},{'name':_0x425c2c('0xa0b'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['FM']},{'name':_0x425c2c('0x502'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['FM']},{'name':'Pacific/Kosrae','utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['FM']},{'name':'Atlantic/Faroe','utcOffset':0x0,'offsetStr':'+00:00','countries':['FO']},{'name':_0x425c2c('0x198b'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['FR']},{'name':'Europe/London','utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['GB','GG','IM','JE']},{'name':_0x425c2c('0xda3'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['GE']},{'name':'America/Cayenne','utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['GF']},{'name':_0x425c2c('0x21ad'),'utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['GH']},{'name':_0x425c2c('0x26c5'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['GI']},{'name':_0x425c2c('0x2541'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['GL']},{'name':_0x425c2c('0x2446'),'utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['GL']},{'name':'America/Scoresbysund','utcOffset':-0x3c,'offsetStr':_0x425c2c('0x1863'),'countries':['GL']},{'name':_0x425c2c('0x103a'),'utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['GL']},{'name':_0x425c2c('0xdba'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['GR']},{'name':'Atlantic/South_Georgia','utcOffset':-0x78,'offsetStr':_0x425c2c('0x26ee'),'countries':['GS']},{'name':_0x425c2c('0xdeb'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['GT']},{'name':_0x425c2c('0x139'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['GU','MP']},{'name':'Africa/Bissau','utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['GW']},{'name':_0x425c2c('0xe69'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GY']},{'name':_0x425c2c('0x24d2'),'utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['HK']},{'name':_0x425c2c('0x1974'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['HN']},{'name':_0x425c2c('0x37e'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['HT']},{'name':_0x425c2c('0x1a55'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['HU']},{'name':'Asia/Jakarta','utcOffset':0x1a4,'offsetStr':_0x425c2c('0x9af'),'countries':['ID']},{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':_0x425c2c('0x9af'),'countries':['ID']},{'name':_0x425c2c('0x1426'),'utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['ID']},{'name':'Asia/Jayapura','utcOffset':0x21c,'offsetStr':_0x425c2c('0x310'),'countries':['ID']},{'name':_0x425c2c('0x56b'),'utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['IE']},{'name':_0x425c2c('0x195b'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['IL']},{'name':_0x425c2c('0x14ae'),'utcOffset':0x14a,'offsetStr':_0x425c2c('0x2234'),'countries':['IN']},{'name':_0x425c2c('0x2554'),'utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['IO']},{'name':_0x425c2c('0xf2d'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['IQ']},{'name':_0x425c2c('0x4e9'),'utcOffset':0xd2,'offsetStr':'+03:30','countries':['IR']},{'name':_0x425c2c('0x3db'),'utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['IS']},{'name':_0x425c2c('0x24c5'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['IT','SM','VA']},{'name':_0x425c2c('0x24f4'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['JM']},{'name':_0x425c2c('0x919'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['JO']},{'name':_0x425c2c('0x220d'),'utcOffset':0x21c,'offsetStr':_0x425c2c('0x310'),'countries':['JP']},{'name':'Africa/Nairobi','utcOffset':0xb4,'offsetStr':_0x425c2c('0x167c'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':'Asia/Bishkek','utcOffset':0x168,'offsetStr':'+06:00','countries':['KG']},{'name':'Pacific/Tarawa','utcOffset':0x2d0,'offsetStr':_0x425c2c('0x1637'),'countries':['KI']},{'name':_0x425c2c('0x665'),'utcOffset':0x30c,'offsetStr':_0x425c2c('0x26c7'),'countries':['KI']},{'name':'Pacific/Kiritimati','utcOffset':0x348,'offsetStr':'+14:00','countries':['KI']},{'name':'Asia/Pyongyang','utcOffset':0x1fe,'offsetStr':_0x425c2c('0x459'),'countries':['KP']},{'name':_0x425c2c('0x7ca'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['KR']},{'name':'America/Cayman','utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['KY']},{'name':_0x425c2c('0x186f'),'utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['KZ']},{'name':_0x425c2c('0x1799'),'utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['KZ']},{'name':_0x425c2c('0x32b'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['KZ']},{'name':_0x425c2c('0x1a97'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['KZ']},{'name':_0x425c2c('0x1b90'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['KZ']},{'name':_0x425c2c('0x1b26'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['LB']},{'name':'Asia/Colombo','utcOffset':0x14a,'offsetStr':'+05:30','countries':['LK']},{'name':_0x425c2c('0x2577'),'utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['LR']},{'name':_0x425c2c('0x6bb'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['LT']},{'name':'Europe/Luxembourg','utcOffset':0x3c,'offsetStr':'+01:00','countries':['LU']},{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':'+02:00','countries':['LV']},{'name':_0x425c2c('0x23ef'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['LY']},{'name':_0x425c2c('0x1fe7'),'utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['MA']},{'name':_0x425c2c('0x1eb1'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['MC']},{'name':_0x425c2c('0xd99'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['MD']},{'name':_0x425c2c('0x26b7'),'utcOffset':0x2d0,'offsetStr':_0x425c2c('0x1637'),'countries':['MH']},{'name':_0x425c2c('0x237d'),'utcOffset':0x2d0,'offsetStr':_0x425c2c('0x1637'),'countries':['MH']},{'name':_0x425c2c('0xfd'),'utcOffset':0x186,'offsetStr':'+06:30','countries':['MM']},{'name':'Asia/Ulaanbaatar','utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['MN']},{'name':_0x425c2c('0x2430'),'utcOffset':0x1a4,'offsetStr':_0x425c2c('0x9af'),'countries':['MN']},{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['MN']},{'name':_0x425c2c('0x23ca'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MO']},{'name':_0x425c2c('0x1d3c'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['MQ']},{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['MT']},{'name':_0x425c2c('0x2036'),'utcOffset':0xf0,'offsetStr':_0x425c2c('0xe29'),'countries':['MU']},{'name':_0x425c2c('0x1cd4'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['MV']},{'name':_0x425c2c('0x12bb'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0x425c2c('0xc11'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['MX']},{'name':'America/Merida','utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['MX']},{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0x425c2c('0x138f'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['MX']},{'name':_0x425c2c('0xea1'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['MX']},{'name':_0x425c2c('0x267c'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['MX']},{'name':_0x425c2c('0x9b6'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['MX']},{'name':_0x425c2c('0xe7a'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['MX']},{'name':_0x425c2c('0x1234'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},{'name':'America/Santa_Isabel','utcOffset':-0x1e0,'offsetStr':_0x425c2c('0x10b9'),'countries':['MX']},{'name':_0x425c2c('0x100'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':'Asia/Kuala_Lumpur','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0x425c2c('0x260e'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0x425c2c('0xee6'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':_0x425c2c('0x1108'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['NA']},{'name':_0x425c2c('0x1338'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['NC']},{'name':_0x425c2c('0x19c3'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['NF']},{'name':'Africa/Lagos','utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':'America/Managua','utcOffset':-0x168,'offsetStr':'-06:00','countries':['NI']},{'name':_0x425c2c('0xa9d'),'utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['NL']},{'name':'Europe/Oslo','utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['NO','SJ']},{'name':'Asia/Kathmandu','utcOffset':0x159,'offsetStr':'+05:45','countries':['NP']},{'name':'Pacific/Nauru','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['NR']},{'name':_0x425c2c('0xfcc'),'utcOffset':-0x294,'offsetStr':_0x425c2c('0x505'),'countries':['NU']},{'name':_0x425c2c('0x5af'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['NZ','AQ']},{'name':_0x425c2c('0x251a'),'utcOffset':0x339,'offsetStr':_0x425c2c('0x218f'),'countries':['NZ']},{'name':'America/Panama','utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['PA']},{'name':'America/Lima','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PE']},{'name':_0x425c2c('0x1a03'),'utcOffset':-0x258,'offsetStr':_0x425c2c('0x1e78'),'countries':['PF']},{'name':_0x425c2c('0x164'),'utcOffset':-0x23a,'offsetStr':_0x425c2c('0xc34'),'countries':['PF']},{'name':_0x425c2c('0x1fe6'),'utcOffset':-0x21c,'offsetStr':_0x425c2c('0x47'),'countries':['PF']},{'name':_0x425c2c('0x107e'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['PG']},{'name':_0x425c2c('0x276d'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['PG']},{'name':_0x425c2c('0xd43'),'utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['PH']},{'name':_0x425c2c('0xf67'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['PK']},{'name':'Europe/Warsaw','utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['PL']},{'name':_0x425c2c('0xe5'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['PM']},{'name':'Pacific/Pitcairn','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['PN']},{'name':_0x425c2c('0x1ffe'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['PR']},{'name':'Asia/Gaza','utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['PS']},{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['PS']},{'name':'Europe/Lisbon','utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['PT']},{'name':_0x425c2c('0x1fa0'),'utcOffset':0x0,'offsetStr':_0x425c2c('0x6b4'),'countries':['PT']},{'name':_0x425c2c('0xd3d'),'utcOffset':-0x3c,'offsetStr':_0x425c2c('0x1863'),'countries':['PT']},{'name':_0x425c2c('0x980'),'utcOffset':0x21c,'offsetStr':_0x425c2c('0x310'),'countries':['PW']},{'name':_0x425c2c('0x6b9'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['PY']},{'name':_0x425c2c('0x137a'),'utcOffset':0xb4,'offsetStr':_0x425c2c('0x167c'),'countries':['QA','BH']},{'name':'Indian/Reunion','utcOffset':0xf0,'offsetStr':_0x425c2c('0xe29'),'countries':['RE','TF']},{'name':_0x425c2c('0x1dad'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['RO']},{'name':_0x425c2c('0x1034'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['RS','BA','HR','ME','MK','SI']},{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['RU']},{'name':_0x425c2c('0x3bc'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':'Europe/Simferopol','utcOffset':0xb4,'offsetStr':_0x425c2c('0x167c'),'countries':['RU']},{'name':_0x425c2c('0x14b8'),'utcOffset':0xb4,'offsetStr':_0x425c2c('0x167c'),'countries':['RU']},{'name':_0x425c2c('0x23cd'),'utcOffset':0xf0,'offsetStr':_0x425c2c('0xe29'),'countries':['RU']},{'name':_0x425c2c('0x1694'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['RU']},{'name':_0x425c2c('0x114f'),'utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['RU']},{'name':_0x425c2c('0x91d'),'utcOffset':0x168,'offsetStr':_0x425c2c('0x24ef'),'countries':['RU']},{'name':_0x425c2c('0x51a'),'utcOffset':0x1a4,'offsetStr':_0x425c2c('0x9af'),'countries':['RU']},{'name':_0x425c2c('0x5bc'),'utcOffset':0x1a4,'offsetStr':_0x425c2c('0x9af'),'countries':['RU']},{'name':'Asia/Irkutsk','utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['RU']},{'name':_0x425c2c('0x217a'),'utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['RU']},{'name':_0x425c2c('0x9a1'),'utcOffset':0x21c,'offsetStr':_0x425c2c('0x310'),'countries':['RU']},{'name':'Asia/Khandyga','utcOffset':0x21c,'offsetStr':_0x425c2c('0x310'),'countries':['RU']},{'name':_0x425c2c('0xe14'),'utcOffset':0x258,'offsetStr':_0x425c2c('0x1126'),'countries':['RU']},{'name':_0x425c2c('0xda6'),'utcOffset':0x258,'offsetStr':_0x425c2c('0x1126'),'countries':['RU']},{'name':_0x425c2c('0x16ba'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':'Asia/Magadan','utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},{'name':_0x425c2c('0x9c'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['RU']},{'name':'Asia/Kamchatka','utcOffset':0x2d0,'offsetStr':_0x425c2c('0x1637'),'countries':['RU']},{'name':_0x425c2c('0x2069'),'utcOffset':0x2d0,'offsetStr':_0x425c2c('0x1637'),'countries':['RU']},{'name':_0x425c2c('0x1f31'),'utcOffset':0xb4,'offsetStr':_0x425c2c('0x167c'),'countries':['SA','KW','YE']},{'name':_0x425c2c('0x1cd3'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['SB']},{'name':'Indian/Mahe','utcOffset':0xf0,'offsetStr':_0x425c2c('0xe29'),'countries':['SC']},{'name':'Africa/Khartoum','utcOffset':0xb4,'offsetStr':_0x425c2c('0x167c'),'countries':['SD','SS']},{'name':_0x425c2c('0xca3'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['SE']},{'name':_0x425c2c('0x22cf'),'utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['SG']},{'name':_0x425c2c('0x1aa7'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['SR']},{'name':'America/El_Salvador','utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['SV']},{'name':_0x425c2c('0xa92'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['SY']},{'name':'America/Grand_Turk','utcOffset':-0xf0,'offsetStr':_0x425c2c('0x1e8e'),'countries':['TC']},{'name':'Africa/Ndjamena','utcOffset':0x3c,'offsetStr':_0x425c2c('0x6d9'),'countries':['TD']},{'name':_0x425c2c('0x171e'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['TF']},{'name':_0x425c2c('0x2548'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['TH','KH','LA','VN']},{'name':_0x425c2c('0x576'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['TJ']},{'name':_0x425c2c('0x1318'),'utcOffset':0x30c,'offsetStr':_0x425c2c('0x26c7'),'countries':['TK']},{'name':'Asia/Dili','utcOffset':0x21c,'offsetStr':_0x425c2c('0x310'),'countries':['TL']},{'name':_0x425c2c('0x180'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['TM']},{'name':'Africa/Tunis','utcOffset':0x3c,'offsetStr':'+01:00','countries':['TN']},{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':_0x425c2c('0x26c7'),'countries':['TO']},{'name':_0x425c2c('0x2352'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['TR']},{'name':_0x425c2c('0x1808'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':'Pacific/Funafuti','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['TV']},{'name':'Asia/Taipei','utcOffset':0x1e0,'offsetStr':_0x425c2c('0x1fab'),'countries':['TW']},{'name':'Europe/Kiev','utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':'Europe/Uzhgorod','utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['UA']},{'name':'Europe/Zaporozhye','utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['UA']},{'name':'Pacific/Wake','utcOffset':0x2d0,'offsetStr':_0x425c2c('0x1637'),'countries':['UM']},{'name':_0x425c2c('0x1737'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['US']},{'name':_0x425c2c('0x257d'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['US']},{'name':_0x425c2c('0x12fa'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['US']},{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Indiana/Indianapolis','utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['US']},{'name':_0x425c2c('0x73f'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['US']},{'name':'America/Indiana/Winamac','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0x425c2c('0x1c7c'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Indiana/Petersburg','utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['US']},{'name':_0x425c2c('0x26c0'),'utcOffset':-0x12c,'offsetStr':_0x425c2c('0xee4'),'countries':['US']},{'name':_0x425c2c('0x21d5'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['US']},{'name':_0x425c2c('0x7ec'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['US']},{'name':_0x425c2c('0x14bd'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['US']},{'name':_0x425c2c('0x565'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0x425c2c('0x4b4'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['US']},{'name':'America/North_Dakota/New_Salem','utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['US']},{'name':_0x425c2c('0x2306'),'utcOffset':-0x168,'offsetStr':_0x425c2c('0x1204'),'countries':['US']},{'name':_0x425c2c('0x2106'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0x425c2c('0x13d8'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['US']},{'name':_0x425c2c('0x1308'),'utcOffset':-0x1a4,'offsetStr':_0x425c2c('0x120'),'countries':['US']},{'name':_0x425c2c('0x2065'),'utcOffset':-0x1e0,'offsetStr':_0x425c2c('0x10b9'),'countries':['US']},{'name':'America/Metlakatla','utcOffset':-0x1e0,'offsetStr':_0x425c2c('0x10b9'),'countries':['US']},{'name':_0x425c2c('0x2529'),'utcOffset':-0x21c,'offsetStr':_0x425c2c('0x47'),'countries':['US']},{'name':_0x425c2c('0xd49'),'utcOffset':-0x21c,'offsetStr':_0x425c2c('0x47'),'countries':['US']},{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':'America/Yakutat','utcOffset':-0x21c,'offsetStr':_0x425c2c('0x47'),'countries':['US']},{'name':_0x425c2c('0x1f7a'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':_0x425c2c('0x15fb'),'utcOffset':-0x258,'offsetStr':_0x425c2c('0x1e78'),'countries':['US']},{'name':'Pacific/Honolulu','utcOffset':-0x258,'offsetStr':_0x425c2c('0x1e78'),'countries':['US','UM']},{'name':_0x425c2c('0xe44'),'utcOffset':-0xb4,'offsetStr':_0x425c2c('0x16c2'),'countries':['UY']},{'name':_0x425c2c('0x13f'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['UZ']},{'name':_0x425c2c('0x389'),'utcOffset':0x12c,'offsetStr':_0x425c2c('0x1e11'),'countries':['UZ']},{'name':'America/Caracas','utcOffset':-0x10e,'offsetStr':_0x425c2c('0x1b3e'),'countries':['VE']},{'name':_0x425c2c('0xa55'),'utcOffset':0x1a4,'offsetStr':_0x425c2c('0x9af'),'countries':['VN']},{'name':_0x425c2c('0xa77'),'utcOffset':0x294,'offsetStr':_0x425c2c('0x2046'),'countries':['VU']},{'name':_0x425c2c('0x1623'),'utcOffset':0x2d0,'offsetStr':_0x425c2c('0x1637'),'countries':['WF']},{'name':'Pacific/Apia','utcOffset':0x348,'offsetStr':_0x425c2c('0x62b'),'countries':['WS']},{'name':_0x425c2c('0x633'),'utcOffset':0x78,'offsetStr':_0x425c2c('0x1e90'),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x8a71a1};}const _0x349c73=_0x24f175;;function _0x5dd53a(){const _0xf6d6c9=_0x566993,_0x13a4c8=this;_0x13a4c8[_0xf6d6c9('0x278d')]=[],_0x13a4c8[_0xf6d6c9('0xa4a')]=![],_0x13a4c8[_0xf6d6c9('0x26d7')]=0x14;function _0x2fb0e6(_0x4dae7d){const _0x363142=_0xf6d6c9;let _0x276522=0x0;if(_0x4dae7d){_0x13a4c8['fontSize']=_0x4dae7d[_0x363142('0x24e2')][0x2]&&_0x4dae7d[_0x363142('0x24e2')][0x2]['value']?parseInt(_0x4dae7d[_0x363142('0x24e2')][0x2]['value'])-parseInt(_0x4dae7d[_0x363142('0x24e2')][0x2]['value'])%0x2:0x14;_0x4dae7d['attrs'][0x1][_0x363142('0xa7b')]&&_0x4dae7d[_0x363142('0x24e2')][0x1][_0x363142('0xa7b')][_0x363142('0x543')]?(_0x13a4c8[_0x363142('0xa4a')]=!![],_0x13a4c8[_0x363142('0x278d')]=_0x3c8d8a()[_0x363142('0x692')](_0x4dae7d[_0x363142('0x1683')],_0x4dae7d[_0x363142('0x24e2')][0x1][_0x363142('0xa7b')])):(_0x13a4c8['filtered']=![],_0x13a4c8[_0x363142('0x278d')]=_0x4dae7d[_0x363142('0x1683')]);for(let _0x2ee847=0x0;_0x2ee847<_0x4dae7d[_0x363142('0x19f0')][_0x363142('0x6aa')]['length'];_0x2ee847+=0x1){_0x3c8d8a()[_0x363142('0x2814')](_0x13a4c8['filter'],_0x4dae7d[_0x363142('0x19f0')][_0x363142('0x6aa')][_0x2ee847]['id'])&&(_0x276522+=_0x4dae7d[_0x363142('0x19f0')][_0x363142('0x6aa')][_0x2ee847][_0x4dae7d[_0x363142('0x24e2')][0x0][_0x363142('0xa7b')]]?parseInt(_0x4dae7d[_0x363142('0x19f0')][_0x363142('0x6aa')][_0x2ee847][_0x4dae7d['attrs'][0x0]['value']]):0x0);}}return _0x276522;}_0x13a4c8['getCount']=_0x2fb0e6;}const _0x23732e=_0x5dd53a;_0x42edff['$inject']=['$translate'];function _0x42edff(_0x417cd2){const _0x237f8e=_0x566993,_0x4751d3=this;_0x4751d3[_0x237f8e('0x278d')]=[],_0x4751d3[_0x237f8e('0xa4a')]=![],_0x4751d3[_0x237f8e('0x187d')]=[],_0x4751d3[_0x237f8e('0x4c')]={'labels':[_0x237f8e('0x658')],'series':[_0x237f8e('0x22f9')],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':'#2196f3'},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':'#2196f3','stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':_0x237f8e('0x1816')}}]}}};function _0x573d52(_0x2384a9){const _0x6b512e=_0x237f8e;_0x4751d3[_0x6b512e('0x187d')]=_0x3c8d8a()['map'](_0x3c8d8a()[_0x6b512e('0x278d')](_0x2384a9[_0x6b512e('0x24e2')],function(_0x2265dc){const _0x2ba5a5=_0x6b512e;return _0x2265dc[_0x2ba5a5('0x10ad')]&&_0x2265dc[_0x2ba5a5('0x10ad')][_0x2ba5a5('0x2087')](_0x2ba5a5('0x1022'))>=0x0&&_0x2265dc['value']&&_0x2265dc[_0x2ba5a5('0xa7b')]!=='null';}),_0x6b512e('0xa7b'));_0x2384a9[_0x6b512e('0x24e2')][0x3]['value']&&_0x2384a9['attrs'][0x3][_0x6b512e('0xa7b')][_0x6b512e('0x543')]?(_0x4751d3['filtered']=!![],_0x4751d3['filter']=_0x3c8d8a()[_0x6b512e('0x692')](_0x2384a9[_0x6b512e('0x1683')],_0x2384a9['attrs'][0x3][_0x6b512e('0xa7b')])):(_0x4751d3[_0x6b512e('0xa4a')]=![],_0x4751d3[_0x6b512e('0x278d')]=_0x2384a9[_0x6b512e('0x1683')]);if(_0x4751d3['multiBarChart']['series']['length']>_0x4751d3['properties'][_0x6b512e('0x543')]){const _0x17791e=_0x4751d3[_0x6b512e('0x4c')][_0x6b512e('0x1b66')]['length']-_0x4751d3[_0x6b512e('0x187d')][_0x6b512e('0x543')];_0x4751d3[_0x6b512e('0x4c')][_0x6b512e('0x1b66')]['splice'](0x0,_0x17791e),_0x4751d3['multiBarChart'][_0x6b512e('0x1e07')][_0x6b512e('0x553')](0x0,_0x17791e);}for(let _0x3376cd=0x0;_0x3376cd<_0x4751d3['properties'][_0x6b512e('0x543')];_0x3376cd+=0x1){_0x4751d3[_0x6b512e('0x4c')]['series'][_0x3376cd]=_0x417cd2['instant']('TOOLS.'+_0x4751d3['properties'][_0x3376cd]['toUpperCase']());_0x3c8d8a()['isNil'](_0x4751d3[_0x6b512e('0x4c')][_0x6b512e('0x1e07')][_0x3376cd])&&(_0x4751d3['multiBarChart'][_0x6b512e('0x1e07')][_0x3376cd]=[]);if(_0x4751d3[_0x6b512e('0x4c')][_0x6b512e('0x2177')][_0x6b512e('0x543')]>_0x4751d3[_0x6b512e('0x278d')][_0x6b512e('0x543')]){const _0x5b5bce=_0x4751d3['multiBarChart'][_0x6b512e('0x2177')]['length']-_0x4751d3[_0x6b512e('0x278d')][_0x6b512e('0x543')];_0x4751d3[_0x6b512e('0x4c')][_0x6b512e('0x2177')][_0x6b512e('0x553')](0x0,_0x5b5bce),_0x4751d3[_0x6b512e('0x4c')][_0x6b512e('0x1e07')][_0x3376cd][_0x6b512e('0x553')](0x0,_0x5b5bce);}for(let _0x25058=0x0,_0x3a2622=0x0;_0x25058<_0x2384a9['voiceQueues'][_0x6b512e('0x6aa')][_0x6b512e('0x543')];_0x25058+=0x1){_0x3c8d8a()[_0x6b512e('0x2814')](_0x4751d3[_0x6b512e('0x278d')],_0x2384a9['voiceQueues'][_0x6b512e('0x6aa')][_0x25058]['id'])&&(_0x4751d3[_0x6b512e('0x4c')]['labels'][_0x3a2622]=_0x2384a9[_0x6b512e('0x19f0')][_0x6b512e('0x6aa')][_0x25058]['name'],_0x4751d3['multiBarChart'][_0x6b512e('0x1e07')][_0x3376cd][_0x3a2622]=_0x2384a9[_0x6b512e('0x19f0')][_0x6b512e('0x6aa')][_0x25058][_0x4751d3[_0x6b512e('0x187d')][_0x3376cd]]?parseInt(_0x2384a9[_0x6b512e('0x19f0')]['rows'][_0x25058][_0x4751d3['properties'][_0x3376cd]]):0x0,_0x3a2622+=0x1);}}}function _0x4a4e51(_0x29fd72){const _0x2c7119=_0x237f8e;_0x4751d3['multiBarChart'][_0x2c7119('0x2010')][_0x2c7119('0x2561')][_0x2c7119('0x1833')]=_0x29fd72[_0x2c7119('0x879')];for(let _0x6e4fa2=0x0;_0x6e4fa2<_0x4751d3['multiBarChart']['options'][_0x2c7119('0x199')][_0x2c7119('0x11f')][_0x2c7119('0x543')];_0x6e4fa2+=0x1){_0x4751d3[_0x2c7119('0x4c')][_0x2c7119('0x2010')][_0x2c7119('0x199')][_0x2c7119('0x11f')][_0x6e4fa2]['ticks'][_0x2c7119('0x1833')]=_0x29fd72['foreground'];}for(let _0x47f95f=0x0;_0x47f95f<_0x4751d3[_0x2c7119('0x4c')][_0x2c7119('0x2010')][_0x2c7119('0x199')]['yAxes'][_0x2c7119('0x543')];_0x47f95f+=0x1){_0x4751d3[_0x2c7119('0x4c')][_0x2c7119('0x2010')][_0x2c7119('0x199')][_0x2c7119('0x1b3c')][_0x47f95f][_0x2c7119('0x16a')]['fontColor']=_0x29fd72[_0x2c7119('0x879')];}}function _0x3699ff(_0x37c738){const _0x3481fa=_0x237f8e;_0x37c738&&(_0x37c738['attrs']&&_0x573d52(_0x37c738),_0x37c738[_0x3481fa('0x879')]&&_0x4a4e51(_0x37c738));}_0x4751d3[_0x237f8e('0x1b40')]=_0x3699ff;}const _0x235ea3=_0x42edff;_0x333362[_0x566993('0x17bb')]=[_0x566993('0x638')];function _0x333362(_0x5e5453){const _0x5243af=_0x566993,_0x4ba6e6=this;_0x4ba6e6[_0x5243af('0x278d')]=[],_0x4ba6e6[_0x5243af('0xa4a')]=![],_0x4ba6e6[_0x5243af('0x187d')]=[],_0x4ba6e6[_0x5243af('0x21d')]={'labels':[_0x5243af('0x16db')],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x20fb79(_0x20e703){const _0x322962=_0x5243af;_0x4ba6e6[_0x322962('0x187d')]=_0x3c8d8a()[_0x322962('0x8a2')](_0x3c8d8a()[_0x322962('0x278d')](_0x20e703[_0x322962('0x24e2')],function(_0x40ffc1){const _0x334865=_0x322962;return _0x40ffc1[_0x334865('0x10ad')]&&_0x40ffc1['name'][_0x334865('0x2087')](_0x334865('0x1022'))>=0x0&&_0x40ffc1[_0x334865('0xa7b')]&&_0x40ffc1[_0x334865('0xa7b')]!=='null';}),_0x322962('0xa7b'));_0x20e703['attrs'][0x3][_0x322962('0xa7b')]&&_0x20e703[_0x322962('0x24e2')][0x3]['value'][_0x322962('0x543')]?(_0x4ba6e6[_0x322962('0xa4a')]=!![],_0x4ba6e6['filter']=_0x3c8d8a()[_0x322962('0x692')](_0x20e703[_0x322962('0x1683')],_0x20e703[_0x322962('0x24e2')][0x3][_0x322962('0xa7b')])):(_0x4ba6e6[_0x322962('0xa4a')]=![],_0x4ba6e6[_0x322962('0x278d')]=_0x20e703['voiceQueuesSelected']);if(_0x4ba6e6[_0x322962('0x21d')][_0x322962('0x2177')][_0x322962('0x543')]>_0x4ba6e6[_0x322962('0x187d')][_0x322962('0x543')]){const _0x44503c=_0x4ba6e6[_0x322962('0x21d')][_0x322962('0x2177')][_0x322962('0x543')]-_0x4ba6e6['properties'][_0x322962('0x543')];_0x4ba6e6[_0x322962('0x21d')][_0x322962('0x2177')]['splice'](0x0,_0x44503c),_0x4ba6e6[_0x322962('0x21d')]['data'][_0x322962('0x553')](0x0,_0x44503c);}for(let _0x5374b7=0x0,_0x282bb9=0x0;_0x5374b7<_0x4ba6e6['properties'][_0x322962('0x543')];_0x5374b7+=0x1){_0x4ba6e6['pieChart'][_0x322962('0x2177')][_0x5374b7]=_0x5e5453[_0x322962('0x1467')](_0x322962('0xb32')+_0x4ba6e6[_0x322962('0x187d')][_0x5374b7][_0x322962('0x1164')]());for(let _0x44f6da=0x0;_0x44f6da<_0x20e703[_0x322962('0x19f0')][_0x322962('0x6aa')][_0x322962('0x543')];_0x44f6da+=0x1){_0x3c8d8a()[_0x322962('0x2814')](_0x4ba6e6[_0x322962('0x278d')],_0x20e703[_0x322962('0x19f0')][_0x322962('0x6aa')][_0x44f6da]['id'])&&(_0x282bb9+=_0x20e703[_0x322962('0x19f0')]['rows'][_0x44f6da][_0x4ba6e6[_0x322962('0x187d')][_0x5374b7]]?parseInt(_0x20e703[_0x322962('0x19f0')][_0x322962('0x6aa')][_0x44f6da][_0x4ba6e6[_0x322962('0x187d')][_0x5374b7]]):0x0);}_0x4ba6e6[_0x322962('0x21d')]['data'][_0x5374b7]=_0x282bb9,_0x282bb9=0x0;}}function _0x2cbb35(_0x247c67){const _0x2b081f=_0x5243af;_0x4ba6e6[_0x2b081f('0x21d')]['options'][_0x2b081f('0x2561')][_0x2b081f('0x1833')]=_0x247c67['foreground'];}function _0x43ee37(_0x4191fc){_0x4191fc&&(_0x4191fc['attrs']&&_0x20fb79(_0x4191fc),_0x4191fc['foreground']&&_0x2cbb35(_0x4191fc));}_0x4ba6e6['getPieChart']=_0x43ee37;}const _0x23f254=_0x333362;_0x3e852b['$inject']=['$scope',_0x566993('0x24b5'),_0x566993('0x1b13'),_0x566993('0xbd4')];function _0x3e852b(_0x2932ed,_0x4c0949,_0x249b0b,_0x4405da){const _0x4248cb=_0x566993,_0x459dc7=this;_0x459dc7[_0x4248cb('0x23fb')]=0x0,_0x459dc7['refresh']=0x0,_0x459dc7[_0x4248cb('0x20d6')]='',_0x459dc7[_0x4248cb('0x284a')]=[],_0x459dc7[_0x4248cb('0x718')]={'rows':[],'count':0x0},_0x459dc7[_0x4248cb('0xc49')]={'limit':0xa,'page':0x1,'startDate':_0x156524()()[_0x4248cb('0x2145')](_0x4248cb('0x48d'))[_0x4248cb('0xddc')](_0x4248cb('0xf5f')),'endDate':_0x156524()()[_0x4248cb('0x733')](_0x4248cb('0x48d'))['format'](_0x4248cb('0xf5f')),'output':_0x4248cb('0x24e0')},_0x459dc7[_0x4248cb('0x2535')]=_0xfd5c1a,_0x459dc7[_0x4248cb('0x229c')]=_0x149cca,_0x459dc7[_0x4248cb('0x14c0')]=_0x385cea;function _0xfd5c1a(_0x56fbe7){const _0x7fb01f=_0x4248cb;_0x56fbe7&&(_0x56fbe7[_0x7fb01f('0x24e2')]&&(_0x56fbe7[_0x7fb01f('0x24e2')][0x0]&&_0x56fbe7[_0x7fb01f('0x24e2')][0x0][_0x7fb01f('0xa7b')]&&(_0x459dc7[_0x7fb01f('0xc49')]['id']=_0x56fbe7[_0x7fb01f('0x24e2')][0x0]['value'],_0x4405da[_0x7fb01f('0x1ddd')][_0x7fb01f('0x1d97')]({'fields':'field,alias','nolimit':!![],'DefaultReportId':_0x56fbe7[_0x7fb01f('0x24e2')][0x0][_0x7fb01f('0x1810')]===_0x7fb01f('0x1ef2')?_0x56fbe7['attrs'][0x0]['value']:undefined,'CustomReportId':_0x56fbe7[_0x7fb01f('0x24e2')][0x0][_0x7fb01f('0x1810')]===_0x7fb01f('0xbb4')?_0x56fbe7[_0x7fb01f('0x24e2')][0x0][_0x7fb01f('0xa7b')]:undefined})['$promise']['then'](function(_0x38fd8c){const _0x17c421=_0x7fb01f;_0x38fd8c&&_0x38fd8c[_0x17c421('0x6aa')]&&(_0x459dc7['columns']=_0x38fd8c['rows']);switch(_0x56fbe7[_0x17c421('0x24e2')][0x0][_0x17c421('0x1810')]){case _0x17c421('0x1ef2'):_0x459dc7[_0x17c421('0xc73')]=_0x17c421('0x1d73');break;case'custom':_0x459dc7['reportRoute']=_0x17c421('0x1ca6');break;}return _0x4405da[_0x459dc7[_0x17c421('0xc73')]][_0x17c421('0x1d97')]({'id':_0x56fbe7[_0x17c421('0x24e2')][0x0][_0x17c421('0xa7b')],'fields':_0x17c421('0xd52')})[_0x17c421('0x1964')];})[_0x7fb01f('0x173b')](function(_0x18c5e4){const _0x3fbc2f=_0x7fb01f;_0x18c5e4&&_0x18c5e4[_0x3fbc2f('0x10ad')]&&(_0x459dc7['title']=_0x18c5e4[_0x3fbc2f('0x10ad')]),_0x149cca();})['catch'](function(_0x2542ec){const _0x34e978=_0x7fb01f;console[_0x34e978('0xe37')](_0x2542ec);})),_0x56fbe7['attrs'][0x1]&&_0x56fbe7[_0x7fb01f('0x24e2')][0x1][_0x7fb01f('0xa7b')]&&(_0x459dc7[_0x7fb01f('0x1d82')]=parseInt(_0x56fbe7['attrs'][0x1]['value']),!_0x3c8d8a()[_0x7fb01f('0x12d7')](_0x459dc7[_0x7fb01f('0x1d82')])&&_0x459dc7[_0x7fb01f('0x1d82')]>0x0?(_0x459dc7['countDown']=parseInt(_0x56fbe7[_0x7fb01f('0x24e2')][0x1][_0x7fb01f('0xa7b')]),_0x459dc7[_0x7fb01f('0x55a')]=_0x249b0b(function(){_0x459dc7['countDown']-=0x1;},0x3e8,0x0),_0x459dc7[_0x7fb01f('0x1f84')]=_0x4c0949(function(){const _0x1e1d5f=_0x7fb01f;_0x459dc7[_0x1e1d5f('0x55a')]&&_0x249b0b[_0x1e1d5f('0x1e1f')](_0x459dc7[_0x1e1d5f('0x55a')]),_0xfd5c1a(_0x56fbe7);},_0x459dc7['refresh']*0x3e8)):(_0x459dc7[_0x7fb01f('0x55a')]&&_0x249b0b[_0x7fb01f('0x1e1f')](_0x459dc7['interval']),_0x459dc7[_0x7fb01f('0x1f84')]&&_0x4c0949[_0x7fb01f('0x1e1f')](_0x459dc7['timeout'])))));}function _0x59bcf3(_0x5d7f50){const _0x25eeda=_0x4248cb;_0x459dc7[_0x25eeda('0x718')]=_0x5d7f50||{'count':0x0,'rows':[]};}function _0x149cca(){const _0xee575b=_0x4248cb;_0x459dc7[_0xee575b('0xc49')][_0xee575b('0x17f0')]=(_0x459dc7[_0xee575b('0xc49')][_0xee575b('0x182e')]-0x1)*_0x459dc7['query'][_0xee575b('0x3e')],_0x459dc7[_0xee575b('0x2219')]=_0x4405da[_0x459dc7['reportRoute']][_0xee575b('0x24cf')](_0x459dc7[_0xee575b('0xc49')],_0x59bcf3)[_0xee575b('0x1964')];}function _0x385cea(_0x34dceb,_0x26c0b4){const _0x3b03a4=_0x4248cb;return _0x156524()(_0x26c0b4,_0x3b03a4('0x1a3d'),!![])['isValid']()&&(_0x26c0b4=_0x156524()(_0x26c0b4,'')[_0x3b03a4('0xddc')](_0x3b03a4('0xf5f'))),_0x26c0b4;}_0x2932ed[_0x4248cb('0xbf6')]('$destroy',function(){const _0x1d66d9=_0x4248cb;_0x459dc7[_0x1d66d9('0x55a')]&&_0x249b0b['cancel'](_0x459dc7[_0x1d66d9('0x55a')]),_0x459dc7['timeout']&&_0x4c0949['cancel'](_0x459dc7[_0x1d66d9('0x1f84')]);});}const _0x15d2e7=_0x3e852b,_0x1a2000=_0x21a6a1['p']+_0x566993('0x544');_0x12ccce[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0xb5a')];function _0x12ccce(_0x9fee0c,_0x295c62){const _0xfe1b38=this;function _0x2a59c8(_0x5c253f){const _0x3a5404=a0_0xde5e;return _0x295c62[_0x3a5404('0xb94')](_0x5c253f);}_0xfe1b38['getTrustedURL']=_0x2a59c8;}function _0x49de42(){const _0x56a599=_0x566993;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x56a599('0x4dc'),'controller':_0x56a599('0x866'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x1a2000};}_0x59c2f1[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1a7f')];function _0x59c2f1(_0x5c7d34,_0x4cbde4){const _0x363e39=_0x566993,_0x233fb1=this;_0x233fb1[_0x363e39('0x26bc')]=![];function _0x37754b(){const _0x3234c4=_0x363e39;return angular[_0x3234c4('0x4a5')](_0x5c7d34[_0x3234c4('0x9c9')])&&_0x5c7d34[_0x3234c4('0x9c9')]===!![];}function _0x5b1f50(){const _0x3bddf1=_0x363e39;if(!_0x37754b())return;_0x233fb1[_0x3bddf1('0x26bc')]=!_0x233fb1[_0x3bddf1('0x26bc')],_0x4cbde4[_0x3bddf1('0xe0b')](_0x3bddf1('0x26bc'),_0x233fb1[_0x3bddf1('0x26bc')]);}_0x233fb1[_0x363e39('0xf1b')]=_0x5b1f50;}function _0x14d6e9(){return{'restrict':'E','scope':{'flippable':'=?'},'controller':'MsWidgetController','transclude':!![],'compile':function(_0x4837ed){const _0x43eacb=a0_0xde5e;return _0x4837ed[_0x43eacb('0x88c')](_0x43eacb('0x182a')),function _0x3fb070(_0x25209d,_0x12130c,_0x142281,_0xc88dd1,_0x16ac39){_0x16ac39(function(_0x40641c){const _0x1b56ad=a0_0xde5e;_0x12130c['empty'](),_0x12130c[_0x1b56ad('0xe53')](_0x40641c);});};}};}function _0x5ee6a8(){const _0x34304f=_0x566993;return{'restrict':'E','require':_0x34304f('0x12d'),'transclude':!![],'compile':function(_0x3f8729){const _0x2c6bb9=_0x34304f;return _0x3f8729[_0x2c6bb9('0x88c')]('ms-widget-front'),function _0x51ec6a(_0x441945,_0x34f7d3,_0x2c55fa,_0xbacd2d,_0x3fba32){const _0x181224=_0x2c6bb9;_0x3fba32(function(_0x582fd3){_0x34f7d3['empty'](),_0x34f7d3['append'](_0x582fd3);}),_0x441945[_0x181224('0x1778')]=_0xbacd2d[_0x181224('0xf1b')];};}};}function _0x469d26(){const _0x1024b3=_0x566993;return{'restrict':'E','require':_0x1024b3('0x12d'),'transclude':!![],'compile':function(_0xe72df9){const _0x107bbf=_0x1024b3;return _0xe72df9[_0x107bbf('0x88c')](_0x107bbf('0x36e')),function _0x223094(_0x773271,_0x109b4b,_0x546915,_0xc54a5b,_0x58b733){_0x58b733(function(_0x2b77bb){const _0x549e3a=a0_0xde5e;_0x109b4b[_0x549e3a('0x728')](),_0x109b4b[_0x549e3a('0xe53')](_0x2b77bb);}),_0x773271['flipWidget']=_0xc54a5b['flip'];};}};};const _0x53005b=[['focusOn',_0x452893,_0x566993('0xd87')],[_0x566993('0x2695'),_0x55daea,_0x566993('0xd87')],[_0x566993('0x1de1'),_0xd81912,'directive'],['msCard',_0x16fab5,_0x566993('0xd87')],[_0x566993('0x1bb8'),_0x16d004,_0x566993('0xd87')],[_0x566993('0x613'),_0xd14975,_0x566993('0xd87')],[_0x566993('0x169b'),_0x22de97,_0x566993('0xeba')],[_0x566993('0x22d9'),_0x3356b2,_0x566993('0xd87')],[_0x566993('0x53e'),_0x111792,_0x566993('0xd87')],[_0x566993('0x13bd'),_0x31bacb,'directive'],['msEmojiArea',_0x37f16a,_0x566993('0xd87')],[_0x566993('0x1e74'),_0x596168,_0x566993('0xd87')],[_0x566993('0x378'),_0x2ab2f9,_0x566993('0x1e65')],['msFormWizard',_0x2ade8a,_0x566993('0xd87')],['msFormWizardForm',_0x2fb8fa,_0x566993('0xd87')],[_0x566993('0x281e'),_0x31367f,_0x566993('0xd87')],['msMasonryController',_0x44f8cb,'controller'],[_0x566993('0x196d'),_0x395046,'directive'],[_0x566993('0x2243'),_0x3b8d6,_0x566993('0xd87')],[_0x566993('0x18c3'),_0x56ff1a,'controller'],[_0x566993('0x867'),_0x31619b,_0x566993('0xd87')],[_0x566993('0x2810'),_0x548357,_0x566993('0x235c')],['msNavIsFolded',_0x27010c,_0x566993('0xd87')],[_0x566993('0x1fdd'),_0x378019,_0x566993('0x1e65')],[_0x566993('0xe67'),_0x33e625,_0x566993('0xd87')],['msNavTitle',_0x3f1fbd,'directive'],[_0x566993('0x2333'),_0x5845b8,_0x566993('0xd87')],[_0x566993('0x87b'),_0x4003dc,_0x566993('0xd87')],[_0x566993('0x1009'),_0x12676a,_0x566993('0xeba')],['MsNavigationController',_0x25d3cf,_0x566993('0x1e65')],['msNavigation',_0x132b51,_0x566993('0xd87')],[_0x566993('0x132e'),_0x405ec6,_0x566993('0x1e65')],['msNavigationNode',_0x25ecd9,'directive'],['msNavigationItem',_0x40d530,_0x566993('0xd87')],['msNavigationHorizontal',_0x283674,_0x566993('0xd87')],[_0x566993('0x109c'),_0x5b3fd8,_0x566993('0x1e65')],['msNavigationHorizontalNode',_0x240f33,_0x566993('0xd87')],[_0x566993('0x26a7'),_0x279fca,_0x566993('0xd87')],[_0x566993('0x14bb'),_0x39fe2c,_0x566993('0x1e65')],[_0x566993('0xe8a'),_0x31d1c8,_0x566993('0xd87')],[_0x566993('0x8cb'),_0x346ad0,_0x566993('0x1e65')],[_0x566993('0x1d03'),_0x5d93b4,_0x566993('0xd87')],[_0x566993('0x18b2'),_0x4a0f20,_0x566993('0x1e65')],[_0x566993('0x25c0'),_0xdddf38,_0x566993('0x1e65')],['SettingsController',_0x4eaba5,_0x566993('0x1e65')],[_0x566993('0xd7a'),_0x2b1c24,_0x566993('0xd87')],[_0x566993('0x1934'),_0x5c6830,_0x566993('0x235c')],[_0x566993('0x390'),_0x176b40,_0x566993('0xd87')],['msRecording',_0x2425cc,_0x566993('0xd87')],[_0x566993('0xe9c'),_0x5866ed,_0x566993('0xd87')],['msScrollConfig',_0x4af606,_0x566993('0xeba')],['msScroll',_0xcb9ba4,'directive'],[_0x566993('0x126e'),_0x4a5683,_0x566993('0x1e65')],['msSearchBar',_0x1db3a6,'directive'],['MsShortcutsController',_0x3329a8,_0x566993('0x1e65')],['msShortcuts',_0x320e51,_0x566993('0xd87')],[_0x566993('0x19e5'),_0x34c934,_0x566993('0xd87')],['msSplashScreen',_0x1ab513,_0x566993('0xd87')],[_0x566993('0x1123'),_0x14b88b,_0x566993('0x1e65')],[_0x566993('0x1c12'),_0x5eef93,'directive'],[_0x566993('0x1abb'),_0x7a3bb5,_0x566993('0xd87')],['msVerticalStepper',_0x5e7483,_0x566993('0xd87')],[_0x566993('0x757'),_0x43e1eb,_0x566993('0xd87')],[_0x566993('0x9f4'),_0x3c6617,_0x566993('0x1e65')],[_0x566993('0x178f'),_0x179a13,'directive'],[_0x566993('0x1d6b'),_0x3f47a9,_0x566993('0x1e65')],[_0x566993('0xd01'),_0x4e5c8d,_0x566993('0xd87')],[_0x566993('0x17a6'),_0x1951f4,_0x566993('0xd87')],[_0x566993('0xb78'),_0x5d4207,_0x566993('0x1e65')],[_0x566993('0x26fd'),_0x5d6387,_0x566993('0xd87')],[_0x566993('0xe13'),_0x349c73,'directive'],['MsWidgetEngineCounterController',_0x23732e,_0x566993('0x1e65')],[_0x566993('0xcb3'),_0x235ea3,_0x566993('0x1e65')],[_0x566993('0x309'),_0x23f254,_0x566993('0x1e65')],[_0x566993('0x1697'),_0x15d2e7,_0x566993('0x1e65')],[_0x566993('0x866'),_0x12ccce,'controller'],[_0x566993('0x4dc'),_0x49de42,_0x566993('0xd87')],[_0x566993('0x1107'),_0x59c2f1,_0x566993('0x1e65')],['msWidget',_0x14d6e9,_0x566993('0xd87')],[_0x566993('0x679'),_0x5ee6a8,_0x566993('0xd87')],['msWidgetBack',_0x469d26,_0x566993('0xd87')]],_0x4f4d2b=_0x53005b;_0x18d3c7['$inject']=['$q','$translate'];function _0x18d3c7(_0x15718b,_0x36e3d1){function _0x3fc4c9(_0x3bdeb3){let _0x731a1f;return _0x15718b(function(_0x54ae44){const _0x3f3e9a=a0_0xde5e;try{if(_0x3c8d8a()[_0x3f3e9a('0x1a56')](_0x3bdeb3[_0x3f3e9a('0x19d2')]))_0x731a1f=_0x36e3d1['instant']('DASHBOARDS.NONE');else{if(_0x3c8d8a()[_0x3f3e9a('0x1a56')](_0x3bdeb3[_0x3f3e9a('0x1ca8')]))_0x731a1f=_0x3bdeb3[_0x3f3e9a('0x113b')]?_0x36e3d1[_0x3f3e9a('0x1467')](_0x3bdeb3[_0x3f3e9a('0x113b')]):_0x36e3d1[_0x3f3e9a('0x1467')](_0x3f3e9a('0xfb4'));else{if(_0x3bdeb3['param'][_0x3f3e9a('0x543')]===_0x3bdeb3[_0x3f3e9a('0x19d2')]['length'])_0x731a1f=_0x36e3d1[_0x3f3e9a('0x1467')](_0x3f3e9a('0x47a'));else{const _0xcc91c=_0x3bdeb3[_0x3f3e9a('0x156e')]||'id';_0x731a1f=_0x3c8d8a()(_0x3bdeb3[_0x3f3e9a('0x19d2')])[_0x3f3e9a('0x278d')](function(_0x406713){const _0x10b23f=_0x3f3e9a;return _0x3c8d8a()[_0x10b23f('0x2814')](_0x3bdeb3[_0x10b23f('0x1ca8')],_0x406713[_0xcc91c]);})[_0x3f3e9a('0x8a2')](_0x3f3e9a('0x10ad'))[_0x3f3e9a('0xa7b')]()[_0x3f3e9a('0x2259')](',\x20');}}}_0x54ae44(_0x731a1f);}catch(_0x201cd0){console['log'](_0x3f3e9a('0x209f'),_0x201cd0),_0x54ae44(null);}});}const _0x2f814e={'setPlaceholder':_0x3fc4c9};return _0x2f814e;}const _0x21fac0=_0x18d3c7;;function _0x131d37(){return function(_0x4a45c5){const _0x38218f=a0_0xde5e,_0x3c9e74=Date[_0x38218f('0xb64')]()-new Date(_0x4a45c5);if(_0x3c9e74<0x3c*0x3c*0x3e8)return _0x156524()(_0x4a45c5)[_0x38218f('0x17ff')]();else{if(_0x3c9e74<0x3c*0x3c*0x18*0x3e8)return _0x156524()(_0x4a45c5)['format']('HH:mm');else return _0x3c9e74<0x3c*0x3c*0x18*0x7*0x3e8?_0x156524()(_0x4a45c5)[_0x38218f('0xddc')]('dddd'):_0x156524()(_0x4a45c5)[_0x38218f('0x85c')]();}};}const _0x28e38d=_0x131d37;_0x50d73b['$inject']=[_0x566993('0xb5a')];function _0x50d73b(_0x15d396){return function(_0x58d806){const _0x5d1242=a0_0xde5e;return _0x15d396[_0x5d1242('0xef6')](_0x58d806);};}function _0x4458ae(){return function(_0x39a107){const _0x53676c=a0_0xde5e;return String(_0x39a107)[_0x53676c('0x166c')](/<[^>]+>/gm,'');};}function _0xe46f1c(){return function(_0x4618eb){const _0x137462=a0_0xde5e;return!_0x4618eb?'':_0x4618eb[_0x137462('0x166c')](/ /g,'');};}function _0x33c331(){return function(_0x56765e){const _0x257fb4=a0_0xde5e;if(!_0x56765e)return;if(_0x56765e[_0x257fb4('0x1810')]===_0x257fb4('0xd87'))return _0x56765e['name'][_0x257fb4('0x166c')](/([A-Z])/g,function(_0x1c29e7){const _0x5580a1=_0x257fb4;return'-'+_0x1c29e7[_0x5580a1('0x1e68')]();});return _0x56765e[_0x257fb4('0x22d8')]||_0x56765e[_0x257fb4('0x10ad')];};};function _0x4467b6(){return function(_0x20f2fb){if(!_0x20f2fb)return'';return _0x3c8d8a()['capitalize'](_0x20f2fb);};}const _0x190221=_0x4467b6;function _0x295de2(){return function(_0x15dc02,_0x324d88){const _0x16b4e8=a0_0xde5e;if(_0x15dc02[_0x16b4e8('0x543')]===0x0||!_0x324d88)return _0x15dc02;if(_0x324d88[_0x16b4e8('0x543')]===0x0)return[];const _0xd906b7=[];for(let _0x184956=0x0;_0x184956<_0x15dc02[_0x16b4e8('0x543')];_0x184956++){const _0x45e372=_0x15dc02[_0x184956];let _0x1d73d8=![];for(let _0xf4a51e=0x0;_0xf4a51e<_0x324d88[_0x16b4e8('0x543')];_0xf4a51e++){const _0x1d413b=_0x324d88[_0xf4a51e];if(_0x45e372['id']===_0x1d413b){_0x1d73d8=!![];break;}}_0x1d73d8&&_0xd906b7['push'](_0x45e372);}return _0xd906b7;};}const _0x29d3a5=_0x295de2;function _0x234c79(){return function(_0x3934f0,_0x409e8e,_0x5dc8fc){const _0x170d08=a0_0xde5e;if(_0x3934f0[_0x170d08('0x543')]===0x0||!_0x5dc8fc||_0x5dc8fc[_0x170d08('0x543')]===0x0)return _0x3934f0;const _0x4942e8=[];for(let _0x47aa48=0x0;_0x47aa48<_0x3934f0[_0x170d08('0x543')];_0x47aa48++){const _0xc81ecf=_0x3934f0[_0x47aa48];let _0x3faa1d=![];for(let _0x3a0342=0x0;_0x3a0342<_0x5dc8fc[_0x170d08('0x543')];_0x3a0342++){const _0x5eee1e=_0x5dc8fc[_0x3a0342];if(_0xc81ecf[_0x409e8e]['indexOf'](_0x5eee1e)>-0x1){_0x3faa1d=!![];break;}}_0x3faa1d&&_0x4942e8[_0x170d08('0x18bb')](_0xc81ecf);}return _0x4942e8;};}const _0x3b6749=_0x234c79;;function _0x47661e(){return function(_0x4d207f){const _0x1db5a5=a0_0xde5e;if(!_0x4d207f)return'';return _0x3c8d8a()[_0x1db5a5('0x264a')](_0x4d207f);};}const _0x57605c=_0x47661e;;function _0xc090e5(){return function(_0x144c96){const _0x541839=a0_0xde5e;if(!_0x144c96)return'';return _0x3c8d8a()[_0x541839('0x10e')](_0x144c96);};}const _0x796d9a=_0xc090e5;function _0x6b2ea1(){return function(_0x266158,_0x30994f){const _0x34ab40=a0_0xde5e;if(_0x266158['length']===0x0||_0x30994f['length']===0x0)return _0x266158;const _0x3ef6d0=[];return _0x266158[_0x34ab40('0xa6a')](function(_0x2d346e){const _0x2d6052=_0x34ab40,_0xba6074=_0x30994f[_0x2d6052('0x3ff')](function(_0x2ebb42){const _0x39d278=_0x2d6052;let _0x294df8=![];return _0x2d346e[_0x39d278('0x22ac')][_0x39d278('0xa6a')](function(_0x474192){const _0x35795c=_0x39d278;if(_0x474192['name']===_0x2ebb42[_0x35795c('0x10ad')]){_0x294df8=!![];return;}}),_0x294df8;});_0xba6074&&_0x3ef6d0['push'](_0x2d346e);}),_0x3ef6d0;};}function _0x1f03cf(){return function(_0x231707,_0x1111fc){const _0x4b550c=a0_0xde5e;if(_0x231707['length']===0x0||_0x1111fc[_0x4b550c('0x543')]===0x0)return;if(_0x231707[_0x4b550c('0x543')]<_0x1111fc['length'])return[];const _0x730476=[],_0x329917=_0x1111fc[_0x4b550c('0x3ff')](function(_0x4f4e9e){let _0x4b2737=![];return _0x231707['forEach'](function(_0x323607){const _0x19f0bc=a0_0xde5e;if(_0x323607[_0x19f0bc('0x10ad')]===_0x4f4e9e[_0x19f0bc('0x10ad')]){_0x4b2737=!![];return;}}),_0x4b2737;});return _0x329917&&_0x730476[_0x4b550c('0x18bb')](_0x231707),_0x730476;};};class _0x34f4e6{constructor(_0x195ab9,_0x5c9930,_0x213b96,_0x330e27){const _0x4cf4b5=_0x566993;this['id']=Math['random']()[_0x4cf4b5('0x1b75')](0x24)[_0x4cf4b5('0x1a4d')](0x2,0xf)+Math['random']()[_0x4cf4b5('0x1b75')](0x24)[_0x4cf4b5('0x1a4d')](0x2,0xf),this['title']=_0x195ab9,this[_0x4cf4b5('0x1a5')]=_0x5c9930,this[_0x4cf4b5('0x1905')]=_0x213b96,this[_0x4cf4b5('0x12a4')]=_0x330e27,this[_0x4cf4b5('0x2151')]=_0x2d63e0;}}function _0x2c358e(){const _0x9de99c=_0x566993;return!(window[_0x9de99c('0x222a')]['hidden']||window[_0x9de99c('0x222a')][_0x9de99c('0x27ee')]||window[_0x9de99c('0x222a')][_0x9de99c('0x25b0')]);}function _0xe53214(){const _0x50b7d3=_0x566993;return/Chrome/[_0x50b7d3('0xf22')](navigator['userAgent'])&&/Google Inc/[_0x50b7d3('0xf22')](navigator['vendor']);}function _0x2d63e0(){const _0x359d54=_0x566993,_0x111fdc=this;navigator['serviceWorker'][_0x359d54('0x8a7')][_0x359d54('0x173b')](function(_0x54414b){const _0x3b15ea=_0x359d54;_0x54414b['getNotifications']()[_0x3b15ea('0x173b')](function(_0x25054e){const _0xdf8a64=_0x3b15ea,_0x192239=_0x3c8d8a()[_0xdf8a64('0x18ab')](_0x25054e,function(_0x59a8f9){const _0x1309ba=_0xdf8a64;return _0x59a8f9[_0x1309ba('0x1e07')]['id']===_0x111fdc['id'];});_0x192239&&_0x192239['close']();});});}function _0xaa60c3(){return{'$get':[_0x27aad7]};function _0x27aad7(){const _0x6e56b7=a0_0xde5e,_0x1b7ee9=[];let _0x32f14c,_0x2f26af;return _0x6e56b7('0x4f5')in navigator&&_0xe53214()?navigator['serviceWorker'][_0x6e56b7('0x25b8')]('service-worker.js')[_0x6e56b7('0x173b')](function(_0x2d7a29){const _0x5df985=_0x6e56b7;_0x32f14c=_0x2d7a29,_0x32f14c[_0x5df985('0x1842')]();if(_0x32f14c[_0x5df985('0xead')])_0x2f26af=_0x32f14c[_0x5df985('0xead')];else{if(_0x32f14c[_0x5df985('0x1b68')])_0x2f26af=_0x32f14c[_0x5df985('0x1b68')];else _0x32f14c[_0x5df985('0x1166')]&&(_0x2f26af=_0x32f14c[_0x5df985('0x1166')]);}})[_0x6e56b7('0x103c')](function(_0xf45509){const _0x4ef8ec=_0x6e56b7;console[_0x4ef8ec('0x15aa')](_0x4ef8ec('0x27dd'),_0xf45509);}):console['error'](_0x6e56b7('0xbd2')),navigator[_0x6e56b7('0x4f5')][_0x6e56b7('0xe3d')]('message',function(_0x2e4c78){const _0x370662=_0x6e56b7;if(_0x2e4c78[_0x370662('0x928')]!==_0x2f26af)return;const _0x39a150=_0x3c8d8a()['find'](_0x1b7ee9,{'id':_0x2e4c78['data']['id']});if(_0x39a150)switch(_0x2e4c78[_0x370662('0x1e07')][_0x370662('0x106d')]){case _0x370662('0x1905'):_0x39a150[_0x370662('0x1905')]&&_0x39a150[_0x370662('0x1905')]();break;case _0x370662('0x12a4'):_0x39a150[_0x370662('0x12a4')]&&_0x39a150[_0x370662('0x12a4')]();break;default:}}),{'create':function(_0x5e575e,_0x597576,_0x513f13,_0x5b7d91,_0x577a62){return new Promise(function(_0x2a861c,_0x461e67){const _0x20e59c=a0_0xde5e;let _0x6b64c0;_0xe53214()&&!_0x2c358e()?(_0x6b64c0=new _0x34f4e6(_0x5e575e||_0x20e59c('0x463'),_0x597576||_0x20e59c('0x51b'),_0x5b7d91,_0x577a62),_0x1b7ee9[_0x20e59c('0x18bb')](_0x6b64c0),_0x6b64c0?window['Notification'][_0x20e59c('0x11b8')]()[_0x20e59c('0x173b')](function(_0x41bbcb){const _0x47af04=_0x20e59c;if(_0x41bbcb===_0x47af04('0x2097'))return _0x32f14c[_0x47af04('0x2841')](_0x6b64c0['title'],{'body':_0x6b64c0[_0x47af04('0x1a5')],'requireInteraction':!![],'icon':_0x513f13||_0x47af04('0x19e1'),'data':{'id':_0x6b64c0['id']},'actions':[{'action':_0x47af04('0x1905'),'title':_0x47af04('0x9f')},{'action':_0x47af04('0x12a4'),'title':_0x47af04('0x1262')}]});})['then'](function(){_0x2a861c(_0x6b64c0);})['catch'](function(_0x4df0f5){_0x461e67(_0x4df0f5);}):_0x461e67(new Error(_0x20e59c('0x17e5')))):_0x2a861c();});}};}}const _0x20d1f3=_0xaa60c3;_0x421165[_0x566993('0x17bb')]=['$q',_0x566993('0x21d9'),_0x566993('0xbd4')];function _0x421165(_0x282b23,_0x394c02,_0x3800bf){const _0x9338d5={'resolve':_0x59040b};return _0x9338d5;function _0x59040b(_0xfcd1d8,_0x132e82){const _0xdfd339=a0_0xde5e,_0x26f5e2=_0xfcd1d8['split']('@'),_0x1ad855=_0x26f5e2[0x0],_0x1e2620=_0x26f5e2[0x1],_0x4b6d33=_0x132e82||{};if(!_0x1ad855||!_0x1e2620)return _0x394c02[_0xdfd339('0x15aa')](_0xdfd339('0x2566')),![];const _0x200fab=_0x282b23[_0xdfd339('0x112e')](),_0x395f41=_0x5cf47d(_0x1ad855);return!_0x395f41?(_0x394c02[_0xdfd339('0x15aa')](_0xdfd339('0x10a2')+_0x1ad855+_0xdfd339('0x25f1')),_0x200fab[_0xdfd339('0x12a4')](_0xdfd339('0x10a2')+_0x1ad855+_0xdfd339('0x25f1'))):_0x395f41[_0x1e2620](_0x4b6d33,function(_0x462a8d){_0x200fab['resolve'](_0x462a8d);},function(_0x14f2ca){_0x200fab['reject'](_0x14f2ca);}),_0x200fab[_0xdfd339('0x2219')];}function _0x5cf47d(_0x7d13a3){const _0x3fce48=a0_0xde5e,_0x33d46c=_0x7d13a3[_0x3fce48('0x43a')]('.');let _0x75611b=_0x3800bf;for(let _0x32f8dd=0x0;_0x32f8dd<_0x33d46c['length'];_0x32f8dd++){if(angular[_0x3fce48('0x8a8')](_0x75611b[_0x33d46c[_0x32f8dd]])){_0x394c02[_0x3fce48('0x15aa')]('Resource\x20part\x20\x22'+_0x33d46c[_0x32f8dd]+_0x3fce48('0xb66')),_0x75611b=![];break;}_0x75611b=_0x75611b[_0x33d46c[_0x32f8dd]];}if(!_0x75611b)return![];return _0x75611b;}}const _0x17c02f=_0x421165;_0x59dc80[_0x566993('0x17bb')]=['$rootScope'];function _0x59dc80(_0x50f3f4){function _0x595906(){const _0x3ed325=a0_0xde5e;_0x50f3f4[_0x3ed325('0x16a1')]=!![];}function _0x33bcb5(){const _0x1431e0=a0_0xde5e;_0x50f3f4[_0x1431e0('0x16a1')]=![];}const _0x1eb699={'showLoadingIndicator':_0x595906,'hideLoadingIndicator':_0x33bcb5};return _0x1eb699;}const _0x16087d=_0x59dc80;function _0x127dfc(){const _0x37da39=_0x566993,_0x4b2165=this,_0x1bf746=angular[_0x37da39('0x1a89')](['ng'])['get'](_0x37da39('0x21d9'));let _0x214d7a='';const _0x1a0076=[];_0x4b2165[_0x37da39('0xd56')]=_0x5aba20,_0x4b2165['getBaseUrl']=_0x38cca4,_0x4b2165['getApiObject']=_0x5c7c3,_0x4b2165[_0x37da39('0x25b8')]=_0x30829a;function _0x5aba20(_0x2a9b8e){_0x214d7a=_0x2a9b8e;}function _0x38cca4(){return _0x214d7a;}function _0x5c7c3(){return _0x1a0076;}function _0x30829a(_0x4bf61c,_0x4905a9){const _0x1a8f03=_0x37da39;if(!angular[_0x1a8f03('0x250b')](_0x4bf61c)){_0x1bf746[_0x1a8f03('0x15aa')](_0x1a8f03('0x211f'));return;}if(!angular[_0x1a8f03('0x118')](_0x4905a9)){_0x1bf746[_0x1a8f03('0x15aa')]('\x22resource\x22\x20must\x20be\x20an\x20array\x20and\x20it\x20must\x20follow\x20$resource\x20definition');return;}_0x1a0076[_0x4bf61c]={'url':_0x214d7a+(_0x4905a9[0x0]||''),'paramDefaults':_0x4905a9[0x1]||[],'actions':_0x4905a9[0x2]||[],'options':_0x4905a9[0x3]||{}};}this[_0x37da39('0x2a8')]=function(_0x43efb1,_0x5b4056,_0x57485d,_0x439a4f){const _0x590ce7={'setBaseUrl':_0x5aba20,'getBaseUrl':_0x38cca4,'register':_0x30829a,'resolve':_0x20016a,'request':_0x3f481c};return _0x590ce7;function _0x20016a(_0x5a75b5,_0x2aaabf){const _0x36218c=a0_0xde5e;_0x439a4f[_0x36218c('0x21e8')](_0x36218c('0x127d'));const _0x41da7e=_0x5a75b5[_0x36218c('0x43a')]('@'),_0x2cc46b=_0x41da7e[0x0],_0x521cb2=_0x41da7e[0x1],_0x185ca2=_0x2aaabf||{};if(!_0x2cc46b||!_0x521cb2)return _0x43efb1[_0x36218c('0x15aa')](_0x36218c('0xf1a')),![];const _0x38a7e6=_0x5b4056[_0x36218c('0x112e')](),_0x1e9e31=_0x1a0076[_0x2cc46b];if(!_0x1e9e31)_0x43efb1[_0x36218c('0x15aa')](_0x36218c('0x10a2')+_0x2cc46b+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x38a7e6[_0x36218c('0x12a4')]('Resource\x20\x22'+_0x2cc46b+_0x36218c('0x25f1'));else{const _0x3b36b6=_0x57485d(_0x1e9e31[_0x36218c('0xd1')],_0x1e9e31['paramDefaults'],_0x1e9e31[_0x36218c('0x39b')],_0x1e9e31['options']);_0x3b36b6[_0x521cb2](_0x185ca2,function(_0x46641c){const _0x8e731f=_0x36218c;_0x38a7e6[_0x8e731f('0x155b')](_0x46641c),_0x439a4f['$broadcast'](_0x8e731f('0xeda'));},function(_0x5076fc){const _0x28b9cc=_0x36218c;_0x38a7e6[_0x28b9cc('0x12a4')](_0x5076fc),_0x439a4f[_0x28b9cc('0x21e8')](_0x28b9cc('0x14ba'));});}return _0x38a7e6[_0x36218c('0x2219')];}function _0x3f481c(_0x5e4fb8,_0x3848a9,_0x589c67,_0x427af0){const _0x4ff5f0=a0_0xde5e;_0x439a4f[_0x4ff5f0('0x21e8')]('msApi::requestStart');const _0x2cd7a7=_0x5e4fb8[_0x4ff5f0('0x43a')]('@'),_0x1e62ff=_0x2cd7a7[0x0],_0x521dbb=_0x2cd7a7[0x1],_0xc49ad8=_0x3848a9||{};if(!_0x1e62ff||!_0x521dbb)return _0x43efb1[_0x4ff5f0('0x15aa')](_0x4ff5f0('0xf1a')),![];const _0x9a36af=_0x5b4056[_0x4ff5f0('0x112e')](),_0x367e63=_0x1a0076[_0x1e62ff];if(!_0x367e63)_0x43efb1[_0x4ff5f0('0x15aa')](_0x4ff5f0('0x10a2')+_0x1e62ff+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x9a36af[_0x4ff5f0('0x12a4')](_0x4ff5f0('0x10a2')+_0x1e62ff+_0x4ff5f0('0x25f1'));else{const _0x462367=_0x57485d(_0x367e63[_0x4ff5f0('0xd1')],_0x367e63[_0x4ff5f0('0x31a')],_0x367e63['actions'],_0x367e63[_0x4ff5f0('0x2010')]);_0x462367[_0x521dbb](_0xc49ad8,function(_0x54e154){const _0x1f2cb0=_0x4ff5f0;_0x439a4f[_0x1f2cb0('0x21e8')](_0x1f2cb0('0x1074')),_0x9a36af[_0x1f2cb0('0x155b')](_0x54e154),angular[_0x1f2cb0('0x4a5')](_0x589c67)&&angular[_0x1f2cb0('0x1c25')](_0x589c67)&&_0x589c67(_0x54e154);},function(_0x2d3c5a){const _0x538e85=_0x4ff5f0;_0x439a4f[_0x538e85('0x21e8')](_0x538e85('0xb9b')),_0x9a36af['reject'](_0x2d3c5a),angular[_0x538e85('0x4a5')](_0x427af0)&&angular[_0x538e85('0x1c25')](_0x427af0)&&_0x427af0(_0x2d3c5a);});}return _0x9a36af[_0x4ff5f0('0x2219')];}};}const _0x3652ef=_0x127dfc;var _0x583706=_0x21a6a1(0x985),_0x2cc4ea=_0x21a6a1['n'](_0x583706);_0x5a0d95[_0x566993('0x17bb')]=[_0x566993('0x1d31')];function _0x5a0d95(_0x18c477){const _0x232a2d=_0x566993,_0x51b016=new(_0x2cc4ea())(_0x18c477[_0x232a2d('0x1726')]['userAgent']);let _0x20730d=null;const _0x32d7b6={'exists':_0x59eff9,'detectBrowser':_0x3f7ebc,'guidGenerator':_0x206f9e,'isMobile':_0x5956fe,'toggleInArray':_0x11694b,'firstLastDayMonth':_0x528dbb};return _0x32d7b6;function _0x59eff9(_0x3f7eac,_0x48d546){const _0x5256a0=_0x232a2d;return _0x48d546[_0x5256a0('0x2087')](_0x3f7eac)>-0x1;}function _0x3f7ebc(){const _0x40e575=_0x232a2d;if(_0x20730d)return _0x20730d;const _0x5393b6=[{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0xc88')],'subString':_0x40e575('0x1b8'),'versionSearch':'Edge','identity':_0x40e575('0x1b8')},{'string':_0x18c477[_0x40e575('0x1726')]['userAgent'],'subString':'Chrome','identity':'Chrome'},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0xc88')],'subString':_0x40e575('0x11e2'),'versionSearch':'OmniWeb/','identity':_0x40e575('0x11e2')},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0x7bf')],'subString':_0x40e575('0x2685'),'versionSearch':_0x40e575('0xb8b'),'identity':_0x40e575('0x136d')},{'prop':_0x18c477[_0x40e575('0x22f5')],'identity':_0x40e575('0xfe8')},{'string':_0x18c477['navigator'][_0x40e575('0x7bf')],'subString':_0x40e575('0x976'),'identity':_0x40e575('0x976')},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0x7bf')],'subString':_0x40e575('0x267'),'identity':_0x40e575('0x315')},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0xc88')],'subString':_0x40e575('0x27b'),'identity':_0x40e575('0x27b')},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0x7bf')],'subString':_0x40e575('0x1728'),'identity':'Camino'},{'string':_0x18c477['navigator'][_0x40e575('0xc88')],'subString':_0x40e575('0x1629'),'identity':_0x40e575('0x1629')},{'string':_0x18c477['navigator']['userAgent'],'subString':_0x40e575('0x152a'),'identity':'Explorer','versionSearch':'MSIE'},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0xc88')],'subString':_0x40e575('0x120d'),'identity':'Explorer','versionSearch':'rv'},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0xc88')],'subString':_0x40e575('0xce7'),'identity':_0x40e575('0xa59'),'versionSearch':'rv'},{'string':_0x18c477[_0x40e575('0x1726')]['userAgent'],'subString':'Mozilla','identity':_0x40e575('0x1629'),'versionSearch':_0x40e575('0xa59')}],_0x13a628=[{'string':_0x18c477['navigator'][_0x40e575('0x471')],'subString':'Win','identity':'Windows'},{'string':_0x18c477[_0x40e575('0x1726')]['platform'],'subString':_0x40e575('0x19c8'),'identity':_0x40e575('0x19c8')},{'string':_0x18c477['navigator'][_0x40e575('0x471')],'subString':'Linux','identity':_0x40e575('0x5cf')},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0x471')],'subString':_0x40e575('0x1551'),'identity':_0x40e575('0x1551')},{'string':_0x18c477['navigator']['platform'],'subString':_0x40e575('0x136c'),'identity':_0x40e575('0x136c')},{'string':_0x18c477[_0x40e575('0x1726')][_0x40e575('0x471')],'subString':_0x40e575('0x2537'),'identity':'iPad'},{'string':_0x18c477[_0x40e575('0x1726')]['platform'],'subString':_0x40e575('0x260f'),'identity':_0x40e575('0x260f')}];let _0x6026e9='';function _0x13d022(_0x295bad){const _0x38492b=_0x40e575;for(let _0x1d95b5=0x0;_0x1d95b5<_0x295bad[_0x38492b('0x543')];_0x1d95b5++){const _0x5cfa9d=_0x295bad[_0x1d95b5][_0x38492b('0x1533')],_0xbceb0e=_0x295bad[_0x1d95b5][_0x38492b('0x150e')];_0x6026e9=_0x295bad[_0x1d95b5][_0x38492b('0x518')]||_0x295bad[_0x1d95b5][_0x38492b('0x1b1e')];if(_0x5cfa9d){if(_0x5cfa9d[_0x38492b('0x2087')](_0x295bad[_0x1d95b5][_0x38492b('0xbc0')])!==-0x1)return _0x295bad[_0x1d95b5][_0x38492b('0x1b1e')];}else{if(_0xbceb0e)return _0x295bad[_0x1d95b5][_0x38492b('0x1b1e')];}}}function _0x7a2e57(_0x32a1e3){const _0x575162=_0x40e575,_0x428342=_0x32a1e3[_0x575162('0x2087')](_0x6026e9);if(_0x428342===-0x1)return;return parseInt(_0x32a1e3['substring'](_0x428342+_0x6026e9[_0x575162('0x543')]+0x1));}let _0x1a2924=_0x13d022(_0x5393b6)||_0x40e575('0x70d'),_0x4a08c7=_0x7a2e57(_0x18c477[_0x40e575('0x1726')][_0x40e575('0xc88')])||_0x7a2e57(_0x18c477[_0x40e575('0x1726')][_0x40e575('0x222b')])||_0x40e575('0x148c'),_0x561f05=_0x13d022(_0x13a628)||_0x40e575('0x247c');return _0x1a2924=_0x1a2924[_0x40e575('0x1e68')](),_0x4a08c7=_0x1a2924+'-'+_0x4a08c7,_0x561f05=_0x561f05[_0x40e575('0x1e68')](),_0x20730d={'browser':_0x1a2924,'version':_0x4a08c7,'os':_0x561f05},_0x20730d;}function _0x206f9e(){const _0x3d18ce=function(){const _0x294527=a0_0xde5e;return((0x1+Math['random']())*0x10000||0x0)['toString'](0x10)[_0x294527('0x1a4d')](0x1);};return _0x3d18ce()+_0x3d18ce()+_0x3d18ce()+_0x3d18ce()+_0x3d18ce()+_0x3d18ce();}function _0x5956fe(){return _0x51b016['mobile']();}function _0x11694b(_0x5e2759,_0x556449){const _0x27b546=_0x232a2d;_0x556449['indexOf'](_0x5e2759)===-0x1?_0x556449['push'](_0x5e2759):_0x556449[_0x27b546('0x553')](_0x556449['indexOf'](_0x5e2759),0x1);}function _0x528dbb(){const _0x47aa1a=_0x232a2d;return{'$gte':_0x156524()()[_0x47aa1a('0x2145')](_0x47aa1a('0x70b'))['utcOffset'](0x0,!![])[_0x47aa1a('0xddc')](),'$lte':_0x156524()()[_0x47aa1a('0x733')]('month')[_0x47aa1a('0xaf5')](0x0,!![])[_0x47aa1a('0xddc')]()};}}const _0x42c1cb=_0x5a0d95,_0x4ae80c=_0x21a6a1['p']+_0x566993('0x1990');_0x283c3b['$inject']=[_0x566993('0xd24')],_0x2d2149[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0xbd6')];function _0x2d2149(_0x103012,_0x5bac98){const _0x2e92a5=_0x566993,_0x3befb7=this;_0x3befb7[_0x2e92a5('0x18a1')]=_0x5bac98['themes'],_0x3befb7[_0x2e92a5('0xf9e')]=[{'label':_0x2e92a5('0x7e7'),'value':_0x2e92a5('0xa46')},{'label':_0x2e92a5('0x18b6'),'value':_0x2e92a5('0x1c9b')}],_0x3befb7[_0x2e92a5('0x26d9')]=[{'label':_0x2e92a5('0x393'),'value':'verticalNavigation','figure':_0x2e92a5('0xc66')},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar','value':'verticalNavigationFullwidthToolbar','figure':_0x2e92a5('0x254e')},{'label':_0x2e92a5('0x1a25'),'value':_0x2e92a5('0x23d8'),'figure':'/assets/images/theme-options/vertical-nav-with-full-toolbar-2.jpg'},{'label':_0x2e92a5('0x13a4'),'value':'horizontalNavigation','figure':_0x2e92a5('0x1e52')},{'label':_0x2e92a5('0xf4e'),'value':_0x2e92a5('0x25db'),'figure':'/assets/images/theme-options/content-with-toolbar.jpg'},{'label':'Content\x20Only','value':_0x2e92a5('0x20c1'),'figure':_0x2e92a5('0x2812')}],_0x3befb7[_0x2e92a5('0xc8b')]=_0x2e92a5('0x1c9b'),_0x3befb7[_0x2e92a5('0x1845')]=_0x103012[_0x2e92a5('0x1d97')](_0x2e92a5('0x24a0'))||_0x2e92a5('0x1ff5'),_0x3befb7[_0x2e92a5('0x1b49')]=_0x5cd9e3,_0x3befb7[_0x2e92a5('0x1818')]=_0x34167d,_0x3befb7[_0x2e92a5('0xcb5')]=_0x3a99dc,_0x3befb7['updateLayoutStyle']=_0x16cf79;function _0x5cd9e3(_0x1748df){const _0x16ca6d=_0x2e92a5;_0x5bac98[_0x16ca6d('0x1b49')](_0x1748df);}function _0x34167d(){const _0x33ba67=_0x2e92a5;return _0x5bac98[_0x33ba67('0x18a1')][_0x33ba67('0x1166')];}function _0x3a99dc(){const _0x152304=_0x2e92a5,_0x1f6609=angular[_0x152304('0xb6d')]('body');_0x1f6609['toggleClass'](_0x152304('0xa46'),_0x3befb7[_0x152304('0xc8b')]==='boxed');}function _0x16cf79(){const _0x225f2e=_0x2e92a5;_0x103012['put']('motion.layoutStyle',_0x3befb7[_0x225f2e('0x1845')]),location['reload']();}}function _0x283c3b(_0x4d006b){const _0x48bf65=_0x566993;return{'restrict':'E','scope':{},'controller':_0x48bf65('0x218a'),'templateUrl':_0x4ae80c,'compile':function(_0x487750){const _0x195891=_0x48bf65;return _0x487750['addClass'](_0x195891('0xc4')),function _0x5333e0(_0x469be7){const _0x3a53cc=_0x195891;function _0x559c0b(){const _0xb81eb0=a0_0xde5e;_0x4d006b(_0xb81eb0('0x546'))[_0xb81eb0('0xa8')]();}_0x469be7[_0x3a53cc('0x16e9')]=_0x559c0b;};}};}_0x2e3fef['$inject']=[_0x566993('0x2166'),_0x566993('0x21d9'),_0x566993('0xbd6')];function _0x2e3fef(_0x37f799,_0x5ca029,_0x2fcc36){const _0x11dd92={},_0x20711e={'generate':_0x27eadd,'rgba':_0x25a59f};return _0x20711e;function _0x27eadd(){const _0x10eaa6=a0_0xde5e,_0x57b710=angular[_0x10eaa6('0x2e3')](_0x2fcc36[_0x10eaa6('0x349')]()),_0x5985ce=angular['copy'](_0x2fcc36[_0x10eaa6('0x2153')]());angular[_0x10eaa6('0xa6a')](_0x57b710,function(_0x5f38ac){const _0x5bd610=_0x10eaa6;_0x11dd92[_0x5f38ac['name']]={},angular[_0x5bd610('0xa6a')](_0x5f38ac[_0x5bd610('0x1267')],function(_0x5ed985,_0x49590d){const _0x5eca0e=_0x5bd610;_0x11dd92[_0x5f38ac['name']][_0x49590d]={'name':_0x5ed985[_0x5eca0e('0x10ad')],'levels':{'default':{'color':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985['hues']['default']][_0x5eca0e('0xa7b')]),'contrast1':_0x25a59f(_0x5985ce[_0x5ed985['name']][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x1ef2')]][_0x5eca0e('0x2223')],0x1),'contrast2':_0x25a59f(_0x5985ce[_0x5ed985['name']][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x1ef2')]][_0x5eca0e('0x2223')],0x2),'contrast3':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x1ef2')]][_0x5eca0e('0x2223')],0x3),'contrast4':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985['hues'][_0x5eca0e('0x1ef2')]][_0x5eca0e('0x2223')],0x4)},'hue1':{'color':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x1dd4')]]['value']),'contrast1':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985[_0x5eca0e('0x79')]['hue-1']][_0x5eca0e('0x2223')],0x1),'contrast2':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985['hues'][_0x5eca0e('0x1dd4')]][_0x5eca0e('0x2223')],0x2),'contrast3':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x1dd4')]][_0x5eca0e('0x2223')],0x3),'contrast4':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985[_0x5eca0e('0x79')]['hue-1']][_0x5eca0e('0x2223')],0x4)},'hue2':{'color':_0x25a59f(_0x5985ce[_0x5ed985['name']][_0x5ed985['hues'][_0x5eca0e('0x429')]][_0x5eca0e('0xa7b')]),'contrast1':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985['hues'][_0x5eca0e('0x429')]][_0x5eca0e('0x2223')],0x1),'contrast2':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x429')]]['contrast'],0x2),'contrast3':_0x25a59f(_0x5985ce[_0x5ed985['name']][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x429')]][_0x5eca0e('0x2223')],0x3),'contrast4':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x429')]][_0x5eca0e('0x2223')],0x4)},'hue3':{'color':_0x25a59f(_0x5985ce[_0x5ed985['name']][_0x5ed985[_0x5eca0e('0x79')][_0x5eca0e('0x1224')]][_0x5eca0e('0xa7b')]),'contrast1':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985['hues'][_0x5eca0e('0x1224')]]['contrast'],0x1),'contrast2':_0x25a59f(_0x5985ce[_0x5ed985[_0x5eca0e('0x10ad')]][_0x5ed985[_0x5eca0e('0x79')]['hue-3']][_0x5eca0e('0x2223')],0x2),'contrast3':_0x25a59f(_0x5985ce[_0x5ed985['name']][_0x5ed985['hues'][_0x5eca0e('0x1224')]]['contrast'],0x3),'contrast4':_0x25a59f(_0x5985ce[_0x5ed985['name']][_0x5ed985['hues'][_0x5eca0e('0x1224')]][_0x5eca0e('0x2223')],0x4)}}};});}),_0x38ec6b(_0x11dd92);let _0x1e63e6={};angular[_0x10eaa6('0xa6a')](_0x11dd92,function(_0xc204ee,_0x4cb7d1){const _0x169197=_0x10eaa6;_0x1e63e6={},_0x1e63e6[_0x169197('0x2b4')]=_0x4cb7d1,angular[_0x169197('0xa6a')](_0xc204ee,function(_0x1c4103,_0x3377d6){const _0x4d6a01=_0x169197;angular['forEach'](_0x1c4103[_0x4d6a01('0x1d14')],function(_0x1e3b79,_0x724b12){angular['forEach'](_0x1e3b79,function(_0xd36a33,_0x9f42e7){_0x1e63e6['@'+_0x3377d6+_0x16388c(_0x724b12)+_0x16388c(_0x9f42e7)]=_0xd36a33;});});}),_0xb1ab7a(_0x1e63e6);});}function _0x38ec6b(_0x2b5bbb){const _0x5b0d70=a0_0xde5e,_0x46a477=angular[_0x5b0d70('0x2e3')](_0x2b5bbb);angular[_0x5b0d70('0xa6a')](_0x46a477,function(_0x1edc4f){const _0x2073c2=_0x5b0d70;angular[_0x2073c2('0xa6a')](_0x1edc4f,function(_0x15f575,_0x1a3a85){const _0x194627=_0x2073c2;_0x1edc4f[_0x1a3a85]=_0x15f575[_0x194627('0x1d14')],_0x1edc4f[_0x1a3a85]['color']=_0x15f575['levels'][_0x194627('0x1ef2')][_0x194627('0xd2d')],_0x1edc4f[_0x1a3a85][_0x194627('0x1117')]=_0x15f575[_0x194627('0x1d14')][_0x194627('0x1ef2')][_0x194627('0x1117')],_0x1edc4f[_0x1a3a85][_0x194627('0x2703')]=_0x15f575['levels'][_0x194627('0x1ef2')][_0x194627('0x2703')],_0x1edc4f[_0x1a3a85][_0x194627('0x140e')]=_0x15f575[_0x194627('0x1d14')][_0x194627('0x1ef2')]['contrast3'],_0x1edc4f[_0x1a3a85][_0x194627('0x2718')]=_0x15f575['levels']['default'][_0x194627('0x2718')],delete _0x1edc4f[_0x1a3a85][_0x194627('0x1ef2')];});}),_0x2fcc36['setThemesList'](_0x46a477);const _0x20bc91=_0x37f799['get'](_0x5b0d70('0xf36'));_0x20bc91?_0x2fcc36['setActiveTheme'](_0x20bc91):_0x2fcc36[_0x5b0d70('0x1b49')]('default');}function _0xb1ab7a(_0x50a925){const _0x185d78=a0_0xde5e,_0x3ab43e=_0x185d78('0xcfa'),_0x1f9e88=new RegExp(Object[_0x185d78('0x1d3e')](_0x50a925)[_0x185d78('0x2259')]('|'),'gi'),_0x47df1a=_0x3ab43e[_0x185d78('0x166c')](_0x1f9e88,function(_0x2b9a28){return _0x50a925[_0x2b9a28];}),_0x3f2a8f=angular['element'](_0x185d78('0x1e85')),_0x41801b=angular[_0x185d78('0xb6d')](_0x185d78('0x1122'));_0x41801b[_0x185d78('0x267e')](_0x47df1a),_0x3f2a8f['append'](_0x41801b);}function _0x25a59f(_0x434750,_0x5e3a3e){const _0x21a0b1=a0_0xde5e,_0x3c816f=_0x5e3a3e||![];_0x434750[_0x21a0b1('0x543')]===0x4&&_0x434750[0x0]===0xff&&_0x434750[0x1]===0xff&&_0x434750[0x2]===0xff&&_0x434750[_0x21a0b1('0x553')](0x3,0x4);_0x3c816f&&(_0x434750=_0x2e30bf(_0x434750,_0x3c816f));if(_0x434750['length']===0x3)return _0x21a0b1('0x160e')+_0x434750['join'](',')+')';else{if(_0x434750[_0x21a0b1('0x543')]===0x4)return _0x21a0b1('0x1df3')+_0x434750[_0x21a0b1('0x2259')](',')+')';else _0x5ca029['error'](_0x21a0b1('0x134c')+_0x434750[_0x21a0b1('0x543')]+'\x0a'+'The\x20array\x20must\x20have\x203\x20or\x204\x20colors.');}}function _0x2e30bf(_0xbede85,_0x37ada9){const _0xe38543=a0_0xde5e,_0x11f37a={'white':{0x1:'1',0x2:_0xe38543('0xd13'),0x3:_0xe38543('0x1c10'),0x4:'0.12'},'black':{0x1:'0.87',0x2:_0xe38543('0x1c37'),0x3:'0.26',0x4:'0.12'}};if(_0xbede85[0x0]===0xff&&_0xbede85[0x1]===0xff&&_0xbede85[0x2]===0xff)_0xbede85[0x3]=_0x11f37a[_0xe38543('0x2300')][_0x37ada9];else _0xbede85[0x0]===0x0&&_0xbede85[0x1]===0x0&&_0xbede85[0x2]===0x0&&(_0xbede85[0x3]=_0x11f37a[_0xe38543('0x1757')][_0x37ada9]);return _0xbede85;}function _0x16388c(_0x4cf925){const _0x3b0ccd=a0_0xde5e;return _0x4cf925[_0x3b0ccd('0xba2')](0x0)['toUpperCase']()+_0x4cf925['slice'](0x1);}}const _0x55b4ee=_0x2e3fef,_0x58fbdc=[{'name':_0x566993('0x1e7f'),'options':{0x32:_0x566993('0x169f'),0x64:'#c2d4ef',0xc8:_0x566993('0x58d'),0x12c:_0x566993('0xc79'),0x190:_0x566993('0x8f8'),0x1f4:_0x566993('0xd4'),0x258:_0x566993('0x167d'),0x2bc:_0x566993('0x1c04'),0x320:_0x566993('0x25bf'),0x384:_0x566993('0x8f'),'A100':'#c2d4ef','A200':'#9ab8e5','A400':_0x566993('0x8f8'),'A700':_0x566993('0x1c04'),'contrastDefaultColor':'light','contrastDarkColors':'50\x20100\x20200\x20A100','contrastStrongLightColors':_0x566993('0xfde')}},{'name':_0x566993('0x1c9e'),'options':{0x32:_0x566993('0x11c5'),0x64:_0x566993('0xff0'),0xc8:_0x566993('0x1867'),0x12c:_0x566993('0x1b99'),0x190:_0x566993('0x75e'),0x1f4:_0x566993('0x2770'),0x258:_0x566993('0xafe'),0x2bc:'#2d323e',0x320:_0x566993('0x8df'),0x384:_0x566993('0x1c63'),'A100':_0x566993('0xff0'),'A200':_0x566993('0x1867'),'A400':_0x566993('0x75e'),'A700':_0x566993('0x2c9'),'contrastDefaultColor':_0x566993('0x1e1d'),'contrastDarkColors':_0x566993('0xaab'),'contrastStrongLightColors':'300\x20400'}}],_0x21a2fa=_0x58fbdc,_0x314d44={'default':{'primary':{'name':_0x566993('0x1c9e'),'hues':{'default':'700','hue-1':_0x566993('0x1b32'),'hue-2':'600','hue-3':_0x566993('0x569')}},'accent':{'name':_0x566993('0x241b'),'hues':{'default':'600','hue-1':_0x566993('0x569'),'hue-2':'700','hue-3':_0x566993('0x1781')}},'warn':{'name':_0x566993('0x191a')},'background':{'name':_0x566993('0x14eb'),'hues':{'default':_0x566993('0x1781'),'hue-1':'A100','hue-2':_0x566993('0x1ccb'),'hue-3':_0x566993('0x26cb')}}},'pinkTheme':{'primary':{'name':_0x566993('0x1f29'),'hues':{'default':_0x566993('0x1f7c'),'hue-1':_0x566993('0x34d'),'hue-2':_0x566993('0x569'),'hue-3':_0x566993('0x1781')}},'accent':{'name':_0x566993('0x259b'),'hues':{'default':_0x566993('0x569'),'hue-1':'300','hue-2':_0x566993('0x34d'),'hue-3':'A100'}},'warn':{'name':_0x566993('0xe19')},'background':{'name':_0x566993('0x14eb'),'hues':{'default':'A100','hue-1':_0x566993('0x1781'),'hue-2':_0x566993('0x1ccb'),'hue-3':_0x566993('0x26cb')}}},'tealTheme':{'primary':{'name':'motion-blue','hues':{'default':_0x566993('0x2603'),'hue-1':_0x566993('0x34d'),'hue-2':_0x566993('0x1b32'),'hue-3':_0x566993('0x1781')}},'accent':{'name':_0x566993('0x1dfa'),'hues':{'default':_0x566993('0x1b32'),'hue-1':_0x566993('0x569'),'hue-2':_0x566993('0x34d'),'hue-3':_0x566993('0x1781')}},'warn':{'name':_0x566993('0x12f8')},'background':{'name':_0x566993('0x14eb'),'hues':{'default':'A100','hue-1':'A100','hue-2':'100','hue-3':_0x566993('0x26cb')}}}},_0x13549d=_0x314d44;_0x44e241[_0x566993('0x17bb')]=[_0x566993('0xfaf'),_0x566993('0x73a'),'motionThemes'];function _0x44e241(_0x504757,_0x5cbd36,_0x265d52){const _0x5c8440=_0x566993;let _0x4a376c;angular[_0x5c8440('0x1a89')]([_0x5c8440('0x4d7')])[_0x5c8440('0x1b2e')]([_0x5c8440('0x2166'),function(_0x181ee2){_0x4a376c=_0x181ee2;}]);const _0x26ad6f=_0x4a376c[_0x5c8440('0x1772')](_0x5c8440('0x17f5'));_0x26ad6f&&(_0x265d52[_0x5c8440('0xbb4')]=_0x26ad6f),_0x504757[_0x5c8440('0x76e')](!![]),angular['forEach'](_0x5cbd36,function(_0x529a31){const _0x4f84b1=_0x5c8440;_0x504757[_0x4f84b1('0xda2')](_0x529a31['name'],_0x529a31[_0x4f84b1('0x2010')]);}),angular[_0x5c8440('0xa6a')](_0x265d52,function(_0x3f54fd,_0x3e31b8){const _0x117790=_0x5c8440;_0x504757[_0x117790('0x1f16')](_0x3e31b8)['primaryPalette'](_0x3f54fd[_0x117790('0xa6b')]['name'],_0x3f54fd[_0x117790('0xa6b')][_0x117790('0x79')])[_0x117790('0x1560')](_0x3f54fd['accent'][_0x117790('0x10ad')],_0x3f54fd['accent']['hues'])[_0x117790('0x5fc')](_0x3f54fd[_0x117790('0x16bd')][_0x117790('0x10ad')],_0x3f54fd['warn'][_0x117790('0x79')])['backgroundPalette'](_0x3f54fd[_0x117790('0xc1f')][_0x117790('0x10ad')],_0x3f54fd[_0x117790('0xc1f')][_0x117790('0x79')]);});}const _0x5ea711=_0x44e241;_0x2a2546[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x21d9'),_0x566993('0x1fdb')];function _0x2a2546(_0x3a2b18,_0x42faf5,_0x44bad4){const _0x5b74f4={'getRegisteredPalettes':_0x1ce307,'getRegisteredThemes':_0x456a9a,'setActiveTheme':_0x38703a,'setThemesList':_0x4a5b02,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x5b74f4;function _0x1ce307(){const _0x105c25=a0_0xde5e;return _0x44bad4[_0x105c25('0x9')];}function _0x456a9a(){return _0x44bad4['THEMES'];}function _0x38703a(_0x17b104){const _0x5450bf=a0_0xde5e;if(angular[_0x5450bf('0x8a8')](_0x5b74f4['themes'][_0x5450bf('0x3e3')][_0x17b104])){if(angular[_0x5450bf('0x8a8')](_0x5b74f4[_0x5450bf('0x18a1')][_0x5450bf('0x3e3')][_0x5450bf('0x1ef2')])){_0x42faf5[_0x5450bf('0x15aa')]('You\x20must\x20have\x20at\x20least\x20one\x20theme\x20named\x20\x22default\x22');return;}_0x42faf5['warn'](_0x5450bf('0x243b')+_0x17b104+_0x5450bf('0x262f')),_0x5b74f4[_0x5450bf('0x18a1')][_0x5450bf('0x1166')][_0x5450bf('0x10ad')]='default',_0x5b74f4[_0x5450bf('0x18a1')][_0x5450bf('0x1166')][_0x5450bf('0x1f16')]=_0x5b74f4[_0x5450bf('0x18a1')]['list']['default'],_0x3a2b18[_0x5450bf('0x14cd')](_0x5450bf('0xf36'),_0x5b74f4[_0x5450bf('0x18a1')][_0x5450bf('0x1166')][_0x5450bf('0x10ad')]);return;}_0x5b74f4[_0x5450bf('0x18a1')][_0x5450bf('0x1166')][_0x5450bf('0x10ad')]=_0x17b104,_0x5b74f4[_0x5450bf('0x18a1')][_0x5450bf('0x1166')][_0x5450bf('0x1f16')]=_0x5b74f4['themes']['list'][_0x17b104],_0x3a2b18[_0x5450bf('0x14cd')]('motion.selectedTheme',_0x17b104);}function _0x4a5b02(_0x422ac9){const _0x456a9f=a0_0xde5e;_0x5b74f4[_0x456a9f('0x18a1')]['list']=_0x422ac9;}}const _0x2cd347=_0x2a2546;;let _0x51853b=angular['module'](_0x566993('0x1e4e'),[_0x566993('0x8a3'),_0x566993('0x20fc'),_0x566993('0x4d7'),_0x566993('0x1f4d'),'ngResource',_0x566993('0x14c1'),_0x566993('0x23f3'),_0x566993('0xd8d'),_0x566993('0x2547'),'ui.router.state.events',_0x566993('0x108f'),_0x566993('0x1b3'),'angucomplete-alt'])[_0x566993('0xeba')]('motionConfig',_0x5abd78)[_0x566993('0xea9')](_0x4412a4)['run'](_0x2a8a33)[_0x566993('0x1e65')](_0x566993('0x1c5b'),_0x16e715);_0x51853b=_0x4f4d2b[_0x566993('0x1e28')]((_0x3080d6,[_0x27fe17,_0x46f71c,_0xef51a9])=>{const _0x980572=_0x566993;switch(_0xef51a9){case _0x980572('0xd87'):_0x3080d6[_0x980572('0xd87')](_0x27fe17,_0x46f71c);break;case _0x980572('0xeba'):_0x3080d6[_0x980572('0xeba')](_0x27fe17,_0x46f71c);break;case'controller':_0x3080d6[_0x980572('0x1e65')](_0x27fe17,_0x46f71c);break;case _0x980572('0x235c'):_0x3080d6[_0x980572('0x235c')](_0x27fe17,_0x46f71c);break;default:break;}return _0x3080d6;},_0x51853b),_0x51853b[_0x566993('0x235c')]('quickFilterManager',_0x21fac0)[_0x566993('0x278d')](_0x566993('0x2217'),_0x28e38d)[_0x566993('0x278d')](_0x566993('0x87d'),_0x50d73b)['filter'](_0x566993('0xc19'),_0x4458ae)['filter'](_0x566993('0xc78'),_0xe46f1c)[_0x566993('0x278d')](_0x566993('0x711'),_0x33c331)['filter'](_0x566993('0x587'),_0x190221)[_0x566993('0x278d')]('filterByIds',_0x29d3a5)[_0x566993('0x278d')](_0x566993('0x1733'),_0x3b6749)[_0x566993('0x278d')](_0x566993('0x2661'),_0x57605c)[_0x566993('0x278d')](_0x566993('0xdf6'),_0x796d9a)[_0x566993('0x278d')](_0x566993('0x2751'),_0x6b2ea1)[_0x566993('0x278d')](_0x566993('0x6e2'),_0x1f03cf)[_0x566993('0xeba')]('motNotification',_0x20d1f3)[_0x566993('0x235c')](_0x566993('0x2401'),_0x17c02f)[_0x566993('0x235c')](_0x566993('0x2616'),_0x16087d)[_0x566993('0xeba')]('msApi',_0x3652ef)[_0x566993('0x235c')](_0x566993('0x1f9'),_0x42c1cb)[_0x566993('0x1e65')]('MsThemeOptionsController',_0x2d2149)[_0x566993('0xd87')](_0x566993('0x13e0'),_0x283c3b)['factory'](_0x566993('0x2427'),_0x55b4ee)[_0x566993('0x1865')]('motionPalettes',_0x21a2fa)[_0x566993('0x1865')]('motionThemes',_0x13549d)['config'](_0x5ea711)[_0x566993('0xe66')](_0x566993('0xbd6'),_0x2cd347),_0x5c1af1[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2166'),_0x566993('0x251'),_0x566993('0x2fc'),'msNavigationService','Auth',_0x566993('0xbd4')];function _0x5c1af1(_0x3c2acf,_0x30e78b,_0x5a2923,_0x1d7df0,_0x3d8679,_0xc58974,_0x4e19f4){const _0x4c9353=_0x566993,_0x1213cb=this;_0x1213cb[_0x4c9353('0x693')]=angular[_0x4c9353('0xb6d')](_0x4c9353('0x1a5')),_0x1213cb[_0x4c9353('0x417')]={'suppressScrollX':!![]},_0x1213cb[_0x4c9353('0x251')]=_0x5a2923,_0x1213cb[_0x4c9353('0x19d8')]=_0x4e19f4[_0x4c9353('0x19d8')],_0x1213cb['$onInit']=_0x7d8c37,_0x1213cb[_0x4c9353('0x2173')]=_0x1d9523,_0x1213cb[_0x4c9353('0xd45')]=_0x534fab,_0x1d7df0['on']('dashboard:save',_0x40f76a),_0x1d7df0['on'](_0x4c9353('0x2fd'),_0x40f76a),_0x1d7df0['on'](_0x4c9353('0x14f4'),_0x4e58cf),_0x1d7df0['on'](_0x4c9353('0x5b4'),_0x1f770c),_0x1d7df0['on']('plugin:update',_0x1f770c),_0x1d7df0['on'](_0x4c9353('0x51f'),_0x2cf713);function _0x7d8c37(){const _0x17f327=_0x4c9353;_0x1213cb[_0x17f327('0x714')]=_0x30e78b[_0x17f327('0x1d97')]('motion.folded')===_0x17f327('0x799')||![];}function _0x1d9523(){const _0x4f6e12=_0x4c9353;_0x1213cb['folded']=!_0x1213cb[_0x4f6e12('0x714')],_0x30e78b['put']('motion.folded',_0x1213cb[_0x4f6e12('0x714')]);}function _0x534fab(){const _0x2e2cb2=_0x4c9353;return _0x1213cb[_0x2e2cb2('0x251')]['defaultHeaderWhiteLabel']?_0x2e2cb2('0x1d43'):_0x1213cb['setting'][_0x2e2cb2('0x26b4')];}function _0x40f76a(_0x36850c){const _0x31df6d=_0x4c9353;if(_0x36850c&&_0x36850c['id']){const _0x50a3be=0x1869f+_0x36850c['id'];_0x3d8679[_0x31df6d('0x10e0')]('apps.dashboards.custom_'+_0x50a3be,{'id':_0x50a3be,'title':_0x36850c['name']||'NONAME','state':_0x31df6d('0x2351'),'stateParams':_0x36850c,'weight':0x2,'hidden':function(){const _0x2309e6=_0x31df6d;return _0xc58974[_0x2309e6('0x1b4e')]('agent')||!_0xc58974[_0x2309e6('0x1f1b')](_0x50a3be)&&!_0xc58974[_0x2309e6('0x1b4e')]('admin');}});}}function _0x4e58cf(_0xb5ae8){const _0x4af099=_0x4c9353;if(_0xb5ae8&&_0xb5ae8['id']){const _0x44f084=0x1869f+_0xb5ae8['id'];_0x3d8679[_0x4af099('0x2157')](_0x4af099('0x25ae')+_0x44f084);}}function _0x1f770c(_0x11898b){const _0x2730af=_0x4c9353;if(_0x11898b&&_0x11898b['id']&&_0x11898b[_0x2730af('0x217d')]!=_0x2730af('0x1633')){if(_0x11898b['active']){if(_0x11898b[_0x2730af('0x217d')]==_0x2730af('0x17b3')||_0x11898b[_0x2730af('0x217d')]==_0x2730af('0xcd4')){_0x3d8679[_0x2730af('0x10e0')](_0x2730af('0xf33'),{'id':0x76c,'title':'Plugins','translate':_0x2730af('0x2454'),'icon':_0x2730af('0x108b'),'weight':0x11,'hidden':function(){const _0x2a8701=_0x2730af;return _0xc58974[_0x2a8701('0x1b4e')](_0x2a8701('0x7b0'))||!_0xc58974[_0x2a8701('0x1f1b')](0x76c)&&!_0xc58974[_0x2a8701('0x1b4e')](_0x2a8701('0x79b'));}});const _0x1ff638=0x15b38+_0x11898b['id'];_0x3d8679[_0x2730af('0x10e0')](_0x2730af('0xf6c')+_0x1ff638,{'id':_0x1ff638,'title':_0x11898b[_0x2730af('0x10ad')]||_0x2730af('0x1847'),'state':'app.plugins.plugin','stateParams':_0x11898b,'weight':0x2,'hidden':function(){const _0x245abb=_0x2730af;return _0xc58974[_0x245abb('0x1b4e')](_0x245abb('0x7b0'))||!_0xc58974[_0x245abb('0x1f1b')](_0x1ff638)&&!_0xc58974[_0x245abb('0x1b4e')](_0x245abb('0x79b'));}}),_0x3d8679[_0x2730af('0xfbe')]();}}else{const _0x1c2277=0x15b38+_0x11898b['id'];_0x5c888a(0x76c,_0x1c2277)&&(_0x11898b[_0x2730af('0x217d')]==_0x2730af('0x17b3')||_0x11898b[_0x2730af('0x217d')]==_0x2730af('0xcd4'))&&(_0x3d8679[_0x2730af('0x2157')](_0x2730af('0xf6c')+_0x1c2277),!_0x3e2454(0x76c)&&_0x3d8679[_0x2730af('0x10e0')](_0x2730af('0xf33'),{'id':0x76c,'title':_0x2730af('0x1e18'),'translate':_0x2730af('0x2454'),'icon':_0x2730af('0x108b'),'weight':0x11,'hidden':function(){return!![];}}));}}}function _0x2cf713(_0xdce121){const _0x3690e5=_0x4c9353;if(_0xdce121&&_0xdce121['id']&&_0xdce121[_0x3690e5('0x217d')]!=_0x3690e5('0x1633')){const _0x4c0625=0x15b38+_0xdce121['id'];(_0xdce121[_0x3690e5('0x217d')]==_0x3690e5('0x17b3')||_0xdce121[_0x3690e5('0x217d')]==_0x3690e5('0xcd4'))&&(_0x3d8679[_0x3690e5('0x2157')](_0x3690e5('0xf6c')+_0x4c0625),!_0x3e2454(0x76c)&&_0x3d8679['saveItem'](_0x3690e5('0xf33'),{'id':0x76c,'title':_0x3690e5('0x1e18'),'translate':_0x3690e5('0x2454'),'icon':_0x3690e5('0x108b'),'weight':0x11,'hidden':function(){return!![];}}));}}function _0x3e2454(_0x6fa66a){const _0x575093=_0x4c9353,_0x541dd4=_0x3d8679['getNavigation'](),_0x3b698d=_0x3c8d8a()[_0x575093('0x18ab')](_0x541dd4[0x0][_0x575093('0x13da')],{'id':_0x6fa66a});return _0x3b698d&&_0x3b698d[_0x575093('0x13da')][_0x575093('0x543')]>0x0?!![]:![];}function _0x5c888a(_0x11735b,_0xea53a6){const _0x4a3277=_0x4c9353,_0x146c12=_0x3d8679[_0x4a3277('0x22f3')](),_0x141f09=_0x3c8d8a()['find'](_0x146c12[0x0]['children'],{'id':_0x11735b});if(!_0x141f09)return![];return _0x3c8d8a()[_0x4a3277('0x1ec')](_0x141f09[_0x4a3277('0x13da')],{'id':_0xea53a6});}_0x3c2acf['$on'](_0x4c9353('0x1d88'),function(){const _0x55b57a=_0x4c9353;_0x1213cb[_0x55b57a('0x693')][_0x55b57a('0x3b3')]('ms-navigation-horizontal-mobile-menu-active');});}const _0x47bd1d=_0x5c1af1;;function _0x25d5ba(){}angular[_0x566993('0x22c4')]('app.navigation',[])['config'](_0x25d5ba)[_0x566993('0x1e65')](_0x566993('0x1bb'),_0x47bd1d),_0x314167['$inject']=[_0x566993('0x66f'),'$mdDialog',_0x566993('0x1276'),_0x566993('0xbd4'),_0x566993('0x166f'),_0x566993('0x251'),'reset'];function _0x314167(_0x2576b8,_0x1a555c,_0x10d891,_0xd86929,_0x1c4718,_0x359c05,_0x272b3b){const _0x4cb53c=_0x566993,_0x402daf=this;_0x402daf[_0x4cb53c('0x1d4a')]=[],_0x402daf[_0x4cb53c('0x166f')]=_0x1c4718,_0x402daf['setting']=_0x359c05,_0x402daf[_0x4cb53c('0x151')]=_0x272b3b,_0x402daf[_0x4cb53c('0x644')]=_0x402daf[_0x4cb53c('0x251')][_0x4cb53c('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x402daf[_0x4cb53c('0x2647')]=_0x5e6a72,_0x402daf[_0x4cb53c('0x18e2')]=_0x557323,_0x2576b8['$watch'](_0x4cb53c('0x2649'),function(_0x1bf732){const _0x29144f=_0x4cb53c;!_0x3c8d8a()[_0x29144f('0x7d5')](_0x402daf[_0x29144f('0xde8')])&&(_0x1bf732===_0x402daf['oldPassword']?_0x2576b8['changePasswordForm']['password'][_0x29144f('0x1869')](_0x29144f('0x137f'),![]):_0x2576b8['changePasswordForm'][_0x29144f('0xdb6')][_0x29144f('0x1869')](_0x29144f('0x137f'),!![]));});function _0x5e6a72(){const _0x5581c1=_0x4cb53c;_0x402daf[_0x5581c1('0x1d4a')]=[],_0xd86929['user']['changePassword']({'id':_0x402daf[_0x5581c1('0x166f')]['id']},{'oldPassword':_0x402daf[_0x5581c1('0xde8')],'newPassword':_0x402daf[_0x5581c1('0xdb6')]})[_0x5581c1('0x1964')][_0x5581c1('0x173b')](function(){const _0x4bd9a7=_0x5581c1;_0x10d891[_0x4bd9a7('0x1cb7')](_0x10d891[_0x4bd9a7('0x21c9')]()[_0x4bd9a7('0x1f71')](_0x4bd9a7('0x14ca'))[_0x4bd9a7('0xf2c')](_0x4bd9a7('0x1bdd'))[_0x4bd9a7('0x10ce')](0x1388)),_0x557323();})[_0x5581c1('0x103c')](function(_0x5ead20){const _0x5f2be8=_0x5581c1;console['error'](_0x5ead20),_0x402daf[_0x5f2be8('0x1d4a')]=_0x5ead20[_0x5f2be8('0x1e07')][_0x5f2be8('0x1d4a')]&&_0x5ead20[_0x5f2be8('0x1e07')]['errors']['length']?_0x5ead20[_0x5f2be8('0x1e07')]['errors']:[{'message':_0x5ead20['data'][_0x5f2be8('0x67f')]||_0x5f2be8('0x1dbe'),'type':'api.user.changePassword'}];});}function _0x557323(){const _0x3d57fd=_0x4cb53c;_0x1a555c[_0x3d57fd('0x1cf4')]();}}const _0x72f650=_0x314167;_0x4bbff7[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'toasty','api',_0x566993('0x14e1'),'customFields'];function _0x4bbff7(_0x2e41f4,_0x4340fb,_0x448e18,_0xbc0411,_0x417ba2,_0x10d3df,_0x18d5ee,_0x23a028){const _0x5d368d=_0x566993,_0x5ebac4=this;_0x5ebac4[_0x5d368d('0x2599')]=_0x23a028&&_0x23a028[_0x5d368d('0x6aa')]?_0x3c8d8a()['mapValues'](_0x3c8d8a()[_0x5d368d('0x128')](_0x23a028[_0x5d368d('0x6aa')],function(_0x7c5220){const _0x382f65=_0x5d368d;return _0x382f65('0x205b')+_0x7c5220['id'];}),_0x5d368d('0x10ad')):{},_0x5ebac4[_0x5d368d('0x1d4a')]=[],_0x5ebac4[_0x5d368d('0x1af6')]=[],_0x5ebac4[_0x5d368d('0x14e1')]=_0x18d5ee,_0x5ebac4[_0x5d368d('0x203d')]=![],_0x5ebac4[_0x5d368d('0x162')]=![],_0x5ebac4[_0x5d368d('0x3c2')]=![],_0x5ebac4['hopperIds'][_0x5d368d('0x18bb')](_0x5ebac4[_0x5d368d('0x14e1')]['id']),_0x5ebac4['originatePreview']=_0x2c6a15,_0x5ebac4[_0x5d368d('0x18e2')]=_0x22c9b3,_0x5ebac4[_0x5d368d('0x32e')]=_0x409ef0,_0x5ebac4[_0x5d368d('0x47f')]=_0x24ebea,_0x5ebac4[_0x5d368d('0xf43')]=_0x10d06f,_0x5ebac4['isCustomField']=_0x3d8e5d,_0x5ebac4['isHiddenField']=_0x4ebc00,_0x5ebac4['isNil']=_0x322280;function _0x322280(_0x8fdc92){const _0x314bd2=_0x5d368d;return _0x3c8d8a()[_0x314bd2('0x7d5')](_0x8fdc92);}function _0x3d8e5d(_0x2ed702){const _0x5bde4e=_0x5d368d;return _0x3c8d8a()[_0x5bde4e('0x17b2')](_0x2ed702,'cf_');}function _0x4ebc00(_0x1829a6){const _0x454f17=_0x5d368d;return _0x3c8d8a()[_0x454f17('0x2814')]([_0x454f17('0x25df'),_0x454f17('0x1d7e'),_0x454f17('0xef2'),_0x454f17('0x181c'),_0x454f17('0xda8'),_0x454f17('0xb7d'),'id',_0x454f17('0xb3'),_0x454f17('0x1b55'),_0x454f17('0x22ac'),_0x454f17('0xad'),_0x454f17('0x12ad'),_0x454f17('0x21e3'),_0x454f17('0xa2b'),_0x454f17('0x9f3'),_0x454f17('0x111f'),'viber',_0x454f17('0x25e8'),_0x454f17('0x10eb')],_0x1829a6);}function _0x2c6a15(){const _0x581fbe=_0x5d368d;_0x5ebac4[_0x581fbe('0x203d')]=!![],_0x5ebac4[_0x581fbe('0x162')]=!![],_0x3c8d8a()[_0x581fbe('0x1a56')](_0x5ebac4['preview'])?(_0x417ba2['error']({'title':_0x581fbe('0x1bd7'),'msg':_0x581fbe('0x4a2')}),_0x5ebac4[_0x581fbe('0x162')]=![],_0x5ebac4['hopperIds']=[],_0x22c9b3(!![])):_0x10d3df[_0x581fbe('0x48c')][_0x581fbe('0x24e9')]({'id':_0x5ebac4['preview']['id']})[_0x581fbe('0x1964')]['then'](function(){_0x22c9b3(!![]);})[_0x581fbe('0x103c')](function(_0x3fab84){const _0x37c433=_0x581fbe;_0x417ba2[_0x37c433('0x15aa')]({'title':_0x37c433('0x1bd7'),'msg':_0x3fab84[_0x37c433('0x1e07')]}),_0x22c9b3(!![]);})[_0x581fbe('0xf25')](function(){const _0x49a986=_0x581fbe;_0x5ebac4['disable']=![],_0x5ebac4[_0x49a986('0x1af6')]=[];});}function _0x22c9b3(_0x235467){const _0x2449be=_0x5d368d;_0x3c8d8a()[_0x2449be('0x7d5')](_0x235467)&&_0x10d3df[_0x2449be('0x1f4f')][_0x2449be('0x1842')]({'id':_0x5ebac4['preview']['id'],'UserId':null}),_0xbc0411[_0x2449be('0x1cf4')]();}_0x2e41f4[_0x5d368d('0xbf6')](_0x5d368d('0x16d2'),function(){const _0x4f2826=_0x5d368d;!_0x5ebac4[_0x4f2826('0x203d')]&&_0x10d3df[_0x4f2826('0x1f4f')][_0x4f2826('0x1842')]({'id':_0x5ebac4[_0x4f2826('0x14e1')]['id'],'UserId':null});});function _0x409ef0(){const _0x500759=_0x5d368d;return _0x5ebac4[_0x500759('0x3c2')]=!![],_0x10d3df[_0x500759('0x1f4f')][_0x500759('0x1854')]({'hopperIds':_0x5ebac4[_0x500759('0x1af6')],'direction':_0x500759('0x409')})[_0x500759('0x1964')][_0x500759('0x173b')](function(_0x4eae9e){const _0x797fee=_0x500759;_0x5ebac4[_0x797fee('0x3c2')]=![],!_0x3c8d8a()[_0x797fee('0x7d5')](_0x4eae9e)&&!_0x3c8d8a()[_0x797fee('0x7d5')](_0x4eae9e[_0x797fee('0x1436')])&&_0x4eae9e[_0x797fee('0x1436')][_0x797fee('0x3ba')]?(!_0x5ebac4['originated']&&_0x10d3df['cmHopper'][_0x797fee('0x1842')]({'id':_0x5ebac4[_0x797fee('0x14e1')]['id'],'UserId':null}),_0x5ebac4[_0x797fee('0x14e1')]=_0x4eae9e,_0x5ebac4[_0x797fee('0x1af6')][_0x797fee('0x18bb')](_0x5ebac4[_0x797fee('0x14e1')]['id'])):(_0x5ebac4[_0x797fee('0x1af6')]=[],_0xbc0411['hide'](),_0x417ba2[_0x797fee('0x2787')]({'title':_0x797fee('0x999'),'msg':_0x797fee('0x6c5')}));})[_0x500759('0x103c')](function(_0x31ce54){const _0x459ecf=_0x500759;_0x5ebac4[_0x459ecf('0x3c2')]=![],_0x5ebac4[_0x459ecf('0x1af6')]=[];if(_0x31ce54[_0x459ecf('0x276f')]===0x194)_0x5ebac4[_0x459ecf('0xf43')]();else{if(_0x31ce54['data']&&_0x31ce54[_0x459ecf('0x1e07')][_0x459ecf('0x1d4a')]&&_0x31ce54['data'][_0x459ecf('0x1d4a')]['length']){_0xbc0411[_0x459ecf('0x1cf4')]();for(let _0x25d6ad=0x0;_0x25d6ad<_0x31ce54['data'][_0x459ecf('0x1d4a')][_0x459ecf('0x543')];_0x25d6ad+=0x1){_0x417ba2[_0x459ecf('0x15aa')]({'title':_0x31ce54[_0x459ecf('0x1e07')]['errors'][_0x25d6ad][_0x459ecf('0x1810')],'msg':_0x31ce54[_0x459ecf('0x1e07')][_0x459ecf('0x1d4a')][_0x25d6ad][_0x459ecf('0x67f')]});}}else _0xbc0411[_0x459ecf('0x1cf4')](),_0x417ba2[_0x459ecf('0x15aa')]({'title':_0x31ce54[_0x459ecf('0x276f')]?'API:'+_0x31ce54[_0x459ecf('0x276f')]+'\x20-\x20'+_0x31ce54['statusText']:_0x459ecf('0x286'),'msg':_0x31ce54['data']?JSON[_0x459ecf('0x100b')](_0x31ce54[_0x459ecf('0x1e07')]['message']):_0x31ce54[_0x459ecf('0x1b75')]()});}});}function _0x24ebea(){const _0xef65bd=_0x5d368d;_0x5ebac4[_0xef65bd('0x3c2')]=!![];if(_0x5ebac4['hopperIds'][_0xef65bd('0x543')]>0x1){const _0xba7a40=_0x3c8d8a()['without'](_0x5ebac4[_0xef65bd('0x1af6')],_0x5ebac4[_0xef65bd('0x14e1')]['id']);return _0x10d3df[_0xef65bd('0x1f4f')][_0xef65bd('0x1854')]({'hopperIds':_0xba7a40,'direction':_0xef65bd('0x1826')})[_0xef65bd('0x1964')][_0xef65bd('0x173b')](function(_0x20df6a){const _0x4153e5=_0xef65bd;_0x5ebac4[_0x4153e5('0x3c2')]=![],!_0x3c8d8a()['isNil'](_0x20df6a)&&!_0x3c8d8a()[_0x4153e5('0x7d5')](_0x20df6a[_0x4153e5('0x1436')])&&_0x20df6a[_0x4153e5('0x1436')]['dialActive']?(_0x3c8d8a()[_0x4153e5('0x1a8b')](_0x5ebac4[_0x4153e5('0x1af6')],function(_0xaf9ba2){return _0xaf9ba2==_0x5ebac4['preview']['id'];}),!_0x5ebac4['originated']&&_0x10d3df[_0x4153e5('0x1f4f')][_0x4153e5('0x1842')]({'id':_0x5ebac4['preview']['id'],'UserId':null}),_0x5ebac4[_0x4153e5('0x14e1')]=_0x20df6a):(_0x5ebac4[_0x4153e5('0x1af6')]=[],_0xbc0411['hide'](),_0x417ba2[_0x4153e5('0x2787')]({'title':_0x4153e5('0x999'),'msg':_0x4153e5('0x6c5')}));})[_0xef65bd('0x103c')](function(_0x30931d){const _0x1c641e=_0xef65bd;if(_0x30931d['status']===0x194)_0x5ebac4[_0x1c641e('0x1af6')]=[_0x5ebac4['preview']['id']],_0x417ba2[_0x1c641e('0x2787')]({'title':_0x1c641e('0x999'),'msg':_0x1c641e('0x1945')});else{if(_0x30931d[_0x1c641e('0x1e07')]&&_0x30931d['data'][_0x1c641e('0x1d4a')]&&_0x30931d['data'][_0x1c641e('0x1d4a')][_0x1c641e('0x543')]){_0x5ebac4['hopperIds']=[],_0xbc0411[_0x1c641e('0x1cf4')]();for(let _0xe46b38=0x0;_0xe46b38<_0x30931d['data'][_0x1c641e('0x1d4a')]['length'];_0xe46b38+=0x1){_0x417ba2[_0x1c641e('0x15aa')]({'title':_0x30931d['data']['errors'][_0xe46b38][_0x1c641e('0x1810')],'msg':_0x30931d[_0x1c641e('0x1e07')][_0x1c641e('0x1d4a')][_0xe46b38][_0x1c641e('0x67f')]});}}else _0x5ebac4[_0x1c641e('0x1af6')]=[],_0xbc0411[_0x1c641e('0x1cf4')](),_0x417ba2['error']({'title':_0x30931d[_0x1c641e('0x276f')]?_0x1c641e('0x137')+_0x30931d['status']+_0x1c641e('0x160c')+_0x30931d[_0x1c641e('0x2696')]:_0x1c641e('0x286'),'msg':_0x30931d[_0x1c641e('0x1e07')]?JSON[_0x1c641e('0x100b')](_0x30931d[_0x1c641e('0x1e07')][_0x1c641e('0x67f')]):_0x30931d[_0x1c641e('0x1b75')]()});}});}}function _0x10d06f(){const _0x28ca83=_0x5d368d;return _0x5ebac4[_0x28ca83('0x3c2')]=!![],_0x417ba2[_0x28ca83('0x2787')]({'title':_0x28ca83('0x999'),'msg':_0x28ca83('0x1714')}),_0x10d3df[_0x28ca83('0x1f4f')][_0x28ca83('0x1854')]({'hopperIds':[_0x5ebac4[_0x28ca83('0x14e1')]['id']],'direction':_0x28ca83('0x409')})[_0x28ca83('0x1964')][_0x28ca83('0x173b')](function(_0x2f2944){const _0x52b14d=_0x28ca83;!_0x3c8d8a()['isNil'](_0x2f2944)&&!_0x3c8d8a()[_0x52b14d('0x7d5')](_0x2f2944[_0x52b14d('0x1436')])&&_0x2f2944['Queue'][_0x52b14d('0x3ba')]?(!_0x5ebac4[_0x52b14d('0x203d')]&&_0x10d3df[_0x52b14d('0x1f4f')][_0x52b14d('0x1842')]({'id':_0x5ebac4[_0x52b14d('0x14e1')]['id'],'UserId':null}),_0x5ebac4[_0x52b14d('0x14e1')]=_0x2f2944,_0x5ebac4[_0x52b14d('0x1af6')][_0x52b14d('0x18bb')](_0x5ebac4[_0x52b14d('0x14e1')]['id'])):(_0xbc0411[_0x52b14d('0x1cf4')](),_0x417ba2[_0x52b14d('0x2787')]({'title':_0x52b14d('0x999'),'msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})[_0x28ca83('0x103c')](function(_0x1ddc0e){const _0x36b106=_0x28ca83;_0xbc0411[_0x36b106('0x1cf4')]();if(_0x1ddc0e[_0x36b106('0x276f')]===0x194)_0x417ba2[_0x36b106('0x2787')]({'title':_0x36b106('0x999'),'msg':_0x36b106('0x44d')});else{if(_0x1ddc0e[_0x36b106('0x1e07')]&&_0x1ddc0e[_0x36b106('0x1e07')]['errors']&&_0x1ddc0e[_0x36b106('0x1e07')][_0x36b106('0x1d4a')][_0x36b106('0x543')])for(let _0x1aa027=0x0;_0x1aa027<_0x1ddc0e[_0x36b106('0x1e07')]['errors']['length'];_0x1aa027+=0x1){_0x417ba2['error']({'title':_0x1ddc0e[_0x36b106('0x1e07')]['errors'][_0x1aa027][_0x36b106('0x1810')],'msg':_0x1ddc0e[_0x36b106('0x1e07')]['errors'][_0x1aa027]['message']});}else _0x417ba2['error']({'title':_0x1ddc0e['status']?_0x36b106('0x137')+_0x1ddc0e[_0x36b106('0x276f')]+_0x36b106('0x160c')+_0x1ddc0e[_0x36b106('0x2696')]:_0x36b106('0x286'),'msg':_0x1ddc0e[_0x36b106('0x1e07')]?JSON['stringify'](_0x1ddc0e[_0x36b106('0x1e07')][_0x36b106('0x67f')]):_0x1ddc0e[_0x36b106('0x1b75')]()});}})[_0x28ca83('0xf25')](function(){const _0x5b3098=_0x28ca83;_0x5ebac4[_0x5b3098('0x3c2')]=![];});}}const _0x204a75=_0x4bbff7,_0x3c26f6=_0x21a6a1['p']+'src/js/modules/toolbar/preview/dialog.html/dialog.html',_0x381b9e=_0x21a6a1['p']+_0x566993('0x1822');_0x1bddf4['$inject']=[_0x566993('0x66f'),_0x566993('0xca5'),'$q',_0x566993('0x2276'),'$timeout',_0x566993('0x19df'),_0x566993('0xd24'),'$translate',_0x566993('0x1276'),_0x566993('0x1d31'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x2166'),_0x566993('0x1558'),_0x566993('0x1009'),'Auth',_0x566993('0x2fc'),_0x566993('0xbd4'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1b13')];function _0x1bddf4(_0xd210d8,_0x519873,_0x53a67c,_0x4585d5,_0x8dfe70,_0x3e416d,_0x554c74,_0x11e048,_0x4770a1,_0x375e0f,_0x1bc119,_0x455787,_0x421a9d,_0x2fc1ac,_0x198637,_0x4622ef,_0x216150,_0xa89cc0,_0x2699d9,_0x338d68,_0x2f320a){const _0x2e9b8c=_0x566993,_0xd457d5=this;_0xd457d5[_0x2e9b8c('0x19f0')]={},_0xd457d5[_0x2e9b8c('0x2a4')]=!![],_0xd457d5[_0x2e9b8c('0x19d8')]=_0xa89cc0[_0x2e9b8c('0x19d8')];let _0x44a979;_0x519873[_0x2e9b8c('0x18dc')]={'search':''},_0xd457d5[_0x2e9b8c('0x1d66')]=[],_0xd457d5['license']=_0x2699d9,_0xd457d5[_0x2e9b8c('0x155f')]=_0x4622ef['getCurrentUser'](),_0xd457d5[_0x2e9b8c('0x22f')]=0x0,_0xd457d5[_0x2e9b8c('0x65a')]=0x0,_0xd457d5[_0x2e9b8c('0x24f2')]=0x0;_0xd457d5[_0x2e9b8c('0x155f')][_0x2e9b8c('0x14a')]===_0x2e9b8c('0x7b0')&&(_0x44a979=_0x2f320a(_0x2e1b91,0x3a97));_0xd457d5[_0x2e9b8c('0x251')]=_0x338d68,_0xd457d5[_0x2e9b8c('0x693')]=angular[_0x2e9b8c('0xb6d')](_0x2e9b8c('0x1a5')),_0xd457d5[_0x2e9b8c('0x11dd')]={'realm':_0x2e9b8c('0x1de5'),'host':_0x3e416d[_0x2e9b8c('0x4d1')](),'protocol':_0x3e416d[_0x2e9b8c('0x375')](),'remotePlayerId':'remote-audio','ua':_0x2e9b8c('0x2490'),'license':_0xd457d5[_0x2e9b8c('0x1a29')][_0x2e9b8c('0x5c8')],'phoneBarExpires':_0xd457d5[_0x2e9b8c('0x155f')][_0x2e9b8c('0x4e')],'phoneBarPrefixRequired':_0xd457d5[_0x2e9b8c('0x155f')][_0x2e9b8c('0x1d90')]},_0xd457d5[_0x2e9b8c('0xc49')]={'id':_0x4622ef['getCurrentUser']()['id'],'fields':'id,name,type,dialMethod,dialActive','channel':_0x2e9b8c('0x21a8'),'nolimit':!![]},_0xd457d5[_0x2e9b8c('0xbad')]=[{'title':_0x2e9b8c('0x1cfc'),'icon':_0x2e9b8c('0x17c7'),'color':_0x2e9b8c('0x2835')},{'title':_0x2e9b8c('0x1456'),'icon':_0x2e9b8c('0x1a9e'),'color':_0x2e9b8c('0xc31')},{'title':_0x2e9b8c('0x8d3'),'icon':'icon-minus-circle','color':'#F44336'},{'title':'Invisible','icon':_0x2e9b8c('0x7d'),'color':_0x2e9b8c('0x101d')},{'title':_0x2e9b8c('0x2712'),'icon':'icon-checkbox-blank-circle-outline','color':'#616161'}],_0xd457d5[_0x2e9b8c('0x12e3')]={'ar':{'title':_0x2e9b8c('0x2678'),'translation':'TOOLBAR.ARABIC','code':'ar','flag':'ar'},'da':{'title':_0x2e9b8c('0xac'),'translation':_0x2e9b8c('0x1aed'),'code':'da','flag':'da'},'de':{'title':_0x2e9b8c('0x12d4'),'translation':_0x2e9b8c('0x227e'),'code':'de','flag':'de'},'en':{'title':_0x2e9b8c('0x22af'),'translation':_0x2e9b8c('0x171c'),'code':'en','flag':'us'},'es':{'title':_0x2e9b8c('0x30b'),'translation':'TOOLBAR.SPANISH','code':'es','flag':'es'},'fa':{'title':'Persian','translation':_0x2e9b8c('0x1b89'),'code':'fa','flag':'fa'},'fi':{'title':_0x2e9b8c('0x21ae'),'translation':'TOOLBAR.FINNISH','code':'fi','flag':'fi'},'fr':{'title':_0x2e9b8c('0xcdd'),'translation':_0x2e9b8c('0x24d8'),'code':'fr','flag':'fr'},'he':{'title':_0x2e9b8c('0x199f'),'translation':_0x2e9b8c('0x443'),'code':'he','flag':'he'},'hi':{'title':_0x2e9b8c('0x3fe'),'translation':'TOOLBAR.HINDI','code':'hi','flag':'hi'},'id':{'title':'Indonesian','translation':_0x2e9b8c('0x1645'),'code':'id','flag':'id'},'it':{'title':_0x2e9b8c('0x24e4'),'translation':_0x2e9b8c('0x71c'),'code':'it','flag':'it'},'ja':{'title':'Japanese','translation':_0x2e9b8c('0x101e'),'code':'ja','flag':'ja'},'ko':{'title':_0x2e9b8c('0x2267'),'translation':_0x2e9b8c('0x15a4'),'code':'ko','flag':'ko'},'lv':{'title':_0x2e9b8c('0x1c73'),'translation':_0x2e9b8c('0xc21'),'code':'lv','flag':'lv'},'nl':{'title':_0x2e9b8c('0x1734'),'translation':_0x2e9b8c('0x8a'),'code':'nl','flag':'nl'},'no':{'title':_0x2e9b8c('0x1930'),'translation':_0x2e9b8c('0x1b8e'),'code':'no','flag':'no'},'pl':{'title':'Polish','translation':_0x2e9b8c('0x1213'),'code':'pl','flag':'pl'},'pt-BR':{'title':_0x2e9b8c('0x2471'),'translation':'TOOLBAR.BRAZILIAN','code':_0x2e9b8c('0x1c75'),'flag':_0x2e9b8c('0x1c75')},'pt-PT':{'title':_0x2e9b8c('0x1944'),'translation':'TOOLBAR.PORTUGUESE','code':'pt-PT','flag':_0x2e9b8c('0x189')},'ru':{'title':'Russian','translation':_0x2e9b8c('0x22e5'),'code':'ru','flag':'ru'},'sv':{'title':_0x2e9b8c('0x25a9'),'translation':'TOOLBAR.SWEDISH','code':'sv','flag':'sv'},'tr':{'title':_0x2e9b8c('0xc52'),'translation':_0x2e9b8c('0xf0e'),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x2e9b8c('0x1f0b'),'translation':'TOOLBAR.CHINESESIMPLIFIED','code':_0x2e9b8c('0x4bf'),'flag':_0x2e9b8c('0x4bf')},'zh-TW':{'title':_0x2e9b8c('0x21b1'),'translation':_0x2e9b8c('0xaac'),'code':_0x2e9b8c('0xfa2'),'flag':_0x2e9b8c('0xfa2')}};const _0x3b1984=['ar','fa','he'];_0xd457d5['toggleSidenav']=_0x50471f,_0xd457d5[_0x2e9b8c('0x1037')]=_0x4d36d1,_0xd457d5[_0x2e9b8c('0x183d')]=_0x160547,_0xd457d5['setUserStatus']=_0x4a9391,_0xd457d5[_0x2e9b8c('0x11b5')]=_0x1e3415,_0xd457d5[_0x2e9b8c('0x2173')]=_0x41e5c6,_0xd457d5[_0x2e9b8c('0x23e7')]=_0x3f4bef,_0xd457d5['searchResultClick']=_0x400199,_0xd457d5[_0x2e9b8c('0xf9')]=_0x3e957b,_0xd457d5['changePassword']=_0x35d160,_0xd457d5[_0x2e9b8c('0x23c7')]=_0x5f0505,_0xd457d5['onUserUpdate']=_0x5e1168,_0xd457d5[_0x2e9b8c('0x5e0')]=_0x504b04,_0xd457d5[_0x2e9b8c('0x1751')]=_0x128261,_0xd457d5[_0x2e9b8c('0x9da')]=_0x59dad1,_0xd457d5[_0x2e9b8c('0x14e1')]=_0x30e6a7,_0xd457d5['getLogo']=_0x16752c,_0xd457d5[_0x2e9b8c('0xbbe')]=_0x7e34ec,_0xd457d5[_0x2e9b8c('0x1094')]=_0x2317a8,_0xd457d5[_0x2e9b8c('0x215e')]=_0x5f51ce,_0xd457d5['onUserVoiceQueue']=_0x358035,_0xd457d5[_0x2e9b8c('0x454')]=_0x2fead7,_0x4e5fc7(),_0x20ea04(),_0x12e610();function _0x4e5fc7(){const _0x3f7d85=_0x2e9b8c;_0xd457d5[_0x3f7d85('0x166f')]=_0x4622ef['getCurrentUser'](),_0xd457d5[_0x3f7d85('0x11dd')][_0x3f7d85('0x8d9')]=_0xd457d5[_0x3f7d85('0x166f')][_0x3f7d85('0x1f39')],_0xd457d5[_0x3f7d85('0x11dd')]['id']=_0xd457d5[_0x3f7d85('0x166f')]['id'],_0xd457d5[_0x3f7d85('0x11dd')]['name']=_0xd457d5[_0x3f7d85('0x166f')][_0x3f7d85('0x10ad')],_0xd457d5['conf']['fullname']=_0xd457d5['user'][_0x3f7d85('0x572')],_0xd457d5[_0x3f7d85('0x11dd')][_0x3f7d85('0x138c')]=_0xd457d5[_0x3f7d85('0x166f')][_0x3f7d85('0x138c')],_0xd457d5[_0x3f7d85('0x11dd')][_0x3f7d85('0x1c9f')]=_0xd457d5['user'][_0x3f7d85('0xc9f')],_0xd457d5[_0x3f7d85('0x11dd')][_0x3f7d85('0x19e0')]=_0xd457d5[_0x3f7d85('0x166f')]['phoneBarAutoAnswer'],_0xd457d5['conf']['enableSettings']=_0xd457d5[_0x3f7d85('0x166f')][_0x3f7d85('0x2365')],_0xd457d5[_0x3f7d85('0x11dd')][_0x3f7d85('0x23bc')]=_0xd457d5[_0x3f7d85('0x166f')][_0x3f7d85('0x1ecf')],_0xd457d5['conf']['autoAnswerDelay']=_0xd457d5['user'][_0x3f7d85('0x2635')],_0xd457d5[_0x3f7d85('0x1c3d')]=_0xd457d5[_0x3f7d85('0xbad')][0x0];const _0xa9d8d2=_0x421a9d[_0x3f7d85('0x1d97')]('motion.language');_0xa9d8d2&&typeof _0xd457d5[_0x3f7d85('0x12e3')][_0xa9d8d2]!=='undefined'?_0xd457d5[_0x3f7d85('0xdaf')]=_0xd457d5[_0x3f7d85('0x12e3')][_0xa9d8d2]:_0xd457d5['selectedLanguage']=_0xd457d5[_0x3f7d85('0x12e3')][_0x11e048[_0x3f7d85('0x271a')]()];_0xa89cc0['pause'][_0x3f7d85('0x1d97')]({'fields':'name','nolimit':!![]})[_0x3f7d85('0x1964')]['then'](function(_0x322632){const _0x249e45=_0x3f7d85;_0xd457d5[_0x249e45('0x1d66')]=_0x322632[_0x249e45('0x6aa')]?_0x322632[_0x249e45('0x6aa')]:[];})['catch'](function(_0x17d7fe){const _0x46ef23=_0x3f7d85;_0x2fc1ac['error']({'title':_0x17d7fe[_0x46ef23('0x276f')]?'API:'+_0x17d7fe[_0x46ef23('0x276f')]+_0x46ef23('0x160c')+_0x17d7fe[_0x46ef23('0x2696')]:_0x46ef23('0x909'),'msg':_0x17d7fe[_0x46ef23('0x276f')]?JSON['stringify'](_0x17d7fe['data']):_0x17d7fe[_0x46ef23('0x1b75')]()});});if(_0x4622ef['getAuthenticationType']()==_0x3f7d85('0x2507')){if(_0xd457d5[_0x3f7d85('0x251')]['securePassword']){if(!_0xd457d5[_0x3f7d85('0x166f')][_0x3f7d85('0x2550')])_0x35d160(null,!![]);else{const _0x194212=_0x156524()(_0xd457d5[_0x3f7d85('0x166f')][_0x3f7d85('0x2550')])[_0x3f7d85('0x623')](_0xd457d5['setting'][_0x3f7d85('0x1d9')]||0x5a,_0x3f7d85('0x48d'));if(_0x156524()()['isAfter'](_0x194212))_0x35d160(null,!![]);else _0x156524()()['add'](0xf,_0x3f7d85('0x48d'))[_0x3f7d85('0x21b3')](_0x194212)&&_0x2fc1ac[_0x3f7d85('0xd50')]({'title':_0x11e048[_0x3f7d85('0x1467')](_0x3f7d85('0x1284'))+'!','msg':_0x11e048[_0x3f7d85('0x1467')](_0x3f7d85('0xecf'))+':\x20'+Math[_0x3f7d85('0x1c08')](_0x194212[_0x3f7d85('0x22c6')](_0x156524()(),'days',!![])),'timeout':0x4e20});}}}}function _0x12e610(){const _0x1be2b2=_0x2e9b8c;_0x216150[_0x1be2b2('0x45f')](),_0x216150['on'](_0x1be2b2('0x2048'),_0xd457d5[_0x1be2b2('0x2679')]),_0x216150['on'](_0x1be2b2('0x3cf'),_0xd457d5[_0x1be2b2('0x5e0')]),_0x216150['on'](_0x1be2b2('0x1ec5'),_0xd457d5[_0x1be2b2('0x1094')]),_0x216150['on']('chatInternalMessage:update',_0xd457d5[_0x1be2b2('0x215e')]),_0x216150['on'](_0x1be2b2('0x1379'),_0xd457d5[_0x1be2b2('0x14db')]),_0x216150['on'](_0x1be2b2('0xc29'),_0xd457d5[_0x1be2b2('0x454')]),_0x216150['on'](_0x1be2b2('0x22b7'),_0xd457d5[_0x1be2b2('0x14db')]),_0x216150['on'](_0x1be2b2('0xeb8'),_0xd457d5[_0x1be2b2('0x454')]),_0x216150['on']('voiceQueue:update',_0xd457d5[_0x1be2b2('0x454')]),_0x216150['on']('user:forcelogout',_0x4eacbd),_0x216150['on'](_0x1be2b2('0x16a7'),_0x4094f0);}function _0x849fc9(){const _0x2818ba=_0x2e9b8c;_0x216150['removeAllListeners'](_0x2818ba('0x3cf')),_0x216150['removeAllListeners'](_0x2818ba('0x2048')),_0x216150[_0x2818ba('0x251c')](_0x2818ba('0x1ec5')),_0x216150[_0x2818ba('0x251c')](_0x2818ba('0x17ea')),_0x216150['removeAllListeners']('userVoiceQueue:save'),_0x216150['removeAllListeners'](_0x2818ba('0xc29')),_0x216150[_0x2818ba('0x251c')](_0x2818ba('0x22b7')),_0x216150[_0x2818ba('0x251c')]('voiceQueue:remove'),_0x216150[_0x2818ba('0x251c')](_0x2818ba('0x806')),_0x216150[_0x2818ba('0x251c')](_0x2818ba('0x15e2')),_0x216150[_0x2818ba('0x251c')](_0x2818ba('0x16a7')),_0x216150[_0x2818ba('0x1878')]();}function _0x4c2bcd(_0x416749){const _0x28953e=_0x2e9b8c;_0xd457d5[_0x28953e('0x19f0')]=_0x416749?_0x3c8d8a()[_0x28953e('0x128')](_0x416749['rows']?_0x416749[_0x28953e('0x6aa')]:[],'id'):{};}function _0x20ea04(){const _0x5c46ac=_0x2e9b8c;_0xd457d5['promise']=_0xa89cc0[_0x5c46ac('0x166f')]['getQueues'](_0xd457d5['query'],_0x4c2bcd)[_0x5c46ac('0x1964')];}function _0x2fead7(){_0x20ea04();}function _0x358035(_0x3d7af9){const _0x23c525=_0x2e9b8c;_0x3c8d8a()[_0x23c525('0x2f1')](_0x3d7af9[_0x23c525('0x181c')])===_0x4622ef[_0x23c525('0x14d4')]()['id']&&_0x20ea04();}function _0x128261(_0x1fa951){const _0x559b49=_0x2e9b8c;return _0xa89cc0['user'][_0x559b49('0x1751')]({'id':_0xd457d5[_0x559b49('0x166f')]['id'],'type':_0x1fa951||_0x559b49('0x2bc')})['$promise'][_0x559b49('0x103c')](function(_0xe4e528){const _0x2d3287=_0x559b49;_0x2fc1ac[_0x2d3287('0x15aa')]({'title':_0xe4e528[_0x2d3287('0x276f')]?_0x2d3287('0x137')+_0xe4e528[_0x2d3287('0x276f')]+_0x2d3287('0x160c')+_0xe4e528[_0x2d3287('0x2696')]:'SYSTEM:PAUSEUSER','msg':_0xe4e528[_0x2d3287('0x276f')]?JSON[_0x2d3287('0x100b')](_0xe4e528[_0x2d3287('0x1e07')]):_0xe4e528[_0x2d3287('0x1b75')]()});});}function _0x59dad1(){const _0x13dbd5=_0x2e9b8c;return _0xa89cc0['user'][_0x13dbd5('0x9da')]({'id':_0xd457d5[_0x13dbd5('0x166f')]['id']})[_0x13dbd5('0x1964')][_0x13dbd5('0x103c')](function(_0x199f0c){const _0x3e3f45=_0x13dbd5;_0x2fc1ac[_0x3e3f45('0x15aa')]({'title':_0x199f0c['status']?'API:'+_0x199f0c[_0x3e3f45('0x276f')]+'\x20-\x20'+_0x199f0c[_0x3e3f45('0x2696')]:_0x3e3f45('0x17c3'),'msg':_0x199f0c[_0x3e3f45('0x276f')]?JSON[_0x3e3f45('0x100b')](_0x199f0c[_0x3e3f45('0x1e07')]):_0x199f0c['toString']()});});}function _0x30e6a7(_0xbf20c4){const _0xb006fc=_0x2e9b8c;return _0xd457d5[_0xb006fc('0x162')]=!![],_0xa89cc0[_0xb006fc('0x1f4f')][_0xb006fc('0x1854')]()[_0xb006fc('0x1964')]['then'](function(_0x4d5cde){const _0x302f49=_0xb006fc;!_0x3c8d8a()[_0x302f49('0x7d5')](_0x4d5cde)&&!_0x3c8d8a()[_0x302f49('0x7d5')](_0x4d5cde[_0x302f49('0x1436')])&&_0x4d5cde[_0x302f49('0x1436')][_0x302f49('0x3ba')]?_0x1bc119[_0x302f49('0x1cb7')]({'controller':_0x302f49('0x1f33'),'controllerAs':'vm','templateUrl':_0x3c26f6,'parent':angular[_0x302f49('0xb6d')](_0x455787[_0x302f49('0x1a5')]),'targetEvent':_0xbf20c4,'clickOutsideToClose':!![],'locals':{'preview':_0x4d5cde},'resolve':{'customFields':['apiResolver',function(_0x2ba0c1){const _0x263456=_0x302f49;return _0x2ba0c1[_0x263456('0x155b')](_0x263456('0x2552'),{'nolimit':!![]});}]}}):_0x2fc1ac[_0x302f49('0x2787')]({'title':_0x302f49('0x999'),'msg':_0x302f49('0x6c5')});})['catch'](function(_0x15fd2f){const _0x5a3726=_0xb006fc;if(_0x15fd2f['status']===0x194)_0x2fc1ac['info']({'title':'PREVIEW','msg':'CONTACT\x20NOT\x20AVAILABLE'});else{if(_0x15fd2f[_0x5a3726('0x1e07')]&&_0x15fd2f[_0x5a3726('0x1e07')][_0x5a3726('0x1d4a')]&&_0x15fd2f[_0x5a3726('0x1e07')][_0x5a3726('0x1d4a')][_0x5a3726('0x543')]){_0xd457d5[_0x5a3726('0x1d4a')]=_0x15fd2f[_0x5a3726('0x1e07')]['errors']||[{'message':_0x15fd2f[_0x5a3726('0x1b75')](),'type':'api.openchannelMessage.accept'}];for(let _0x168217=0x0;_0x168217<_0x15fd2f[_0x5a3726('0x1e07')][_0x5a3726('0x1d4a')][_0x5a3726('0x543')];_0x168217+=0x1){_0x2fc1ac[_0x5a3726('0x15aa')]({'title':_0x15fd2f[_0x5a3726('0x1e07')][_0x5a3726('0x1d4a')][_0x168217][_0x5a3726('0x1810')],'msg':_0x15fd2f[_0x5a3726('0x1e07')]['errors'][_0x168217][_0x5a3726('0x67f')]});}}else _0x2fc1ac[_0x5a3726('0x15aa')]({'title':_0x15fd2f['status']?'API:'+_0x15fd2f[_0x5a3726('0x276f')]+_0x5a3726('0x160c')+_0x15fd2f[_0x5a3726('0x2696')]:_0x5a3726('0x20fb'),'msg':_0x15fd2f[_0x5a3726('0x1e07')]?JSON[_0x5a3726('0x100b')](_0x15fd2f[_0x5a3726('0x1e07')]['message']):_0x15fd2f['toString']()});}})['finally'](function(){const _0x5f11f9=_0xb006fc;_0xd457d5[_0x5f11f9('0x162')]=![];});}function _0x50471f(_0x55d940){const _0x4451e7=_0x2e9b8c;_0x554c74(_0x55d940)[_0x4451e7('0xa8')]();}function _0x7e34ec(){const _0x25b74e=_0x2e9b8c;return _0xd457d5[_0x25b74e('0x155f')][_0x25b74e('0x14a')]==='admin'||_0xd457d5[_0x25b74e('0x155f')][_0x25b74e('0x14a')]===_0x25b74e('0x166f')||_0xd457d5['currentUser'][_0x25b74e('0x14a')]==='agent'&&_0xd457d5['currentUser'][_0x25b74e('0x18b')]!==0x0;}_0xa89cc0[_0x2e9b8c('0xee5')][_0x2e9b8c('0x1d97')]({'fields':_0x2e9b8c('0x15e4'),'ToId':_0xd457d5['currentUser']['id'],'read':![],'nolimit':!![]})[_0x2e9b8c('0x1964')][_0x2e9b8c('0x173b')](function(_0x1776a5){const _0x2d5a07=_0x2e9b8c;_0xd457d5['unreadTotalMessages']=_0x1776a5[_0x2d5a07('0x6aa')]['length'];});function _0x2317a8(_0x2921cb){const _0x4f2fd5=_0x2e9b8c;_0x2921cb[_0x4f2fd5('0x2260')]===_0xd457d5[_0x4f2fd5('0x155f')]['id']&&!_0x2921cb['ChatGroupId']&&(_0xd457d5[_0x4f2fd5('0x22f')]+=0x1),_0x2921cb[_0x4f2fd5('0x2260')]===_0xd457d5[_0x4f2fd5('0x155f')]['id']&&_0x2921cb[_0x4f2fd5('0x15e4')]!==_0xd457d5[_0x4f2fd5('0x155f')]['id']&&!_0x2921cb['read']&&_0x2921cb[_0x4f2fd5('0x13ba')]&&_0xd457d5[_0x4f2fd5('0x65a')]++;}function _0x5f51ce(_0x1a4f20){const _0xa89f68=_0x2e9b8c;_0x1a4f20[_0xa89f68('0x2260')]===_0xd457d5['currentUser']['id']&&_0x1a4f20['read']&&_0xd457d5[_0xa89f68('0x22f')]>0x0&&!_0x1a4f20[_0xa89f68('0x13ba')]&&(_0xd457d5[_0xa89f68('0x22f')]-=0x1),_0x1a4f20[_0xa89f68('0x2260')]===_0xd457d5[_0xa89f68('0x155f')]['id']&&_0x1a4f20[_0xa89f68('0x69b')]&&_0x1a4f20[_0xa89f68('0x13ba')]&&_0xd457d5[_0xa89f68('0x65a')]>0x0&&_0xd457d5[_0xa89f68('0x65a')]--;}function _0x4a9391(_0x1f24ca){_0xd457d5['userStatus']=_0x1f24ca;}function _0x4d36d1(_0xa4909b){const _0x41eb67=_0x2e9b8c;return _0x849fc9(),_0x4622ef[_0x41eb67('0x1037')](_0xa4909b)['then'](function(){const _0x173909=_0x41eb67;return _0x519873[_0x173909('0x21e8')]('webrtc::logout'),_0x4585d5['go'](_0x173909('0xb0a'));})[_0x41eb67('0x103c')](function(_0x39b357){const _0x428058=_0x41eb67;console[_0x428058('0x15aa')](_0x39b357);});}function _0x160547(_0x363071){const _0x545664=_0x2e9b8c;if(typeof _0xd457d5[_0x545664('0x12e3')][_0x363071['code']]=='undefined'){const _0x4b8980='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.';_0x4770a1[_0x545664('0x1cb7')]({'template':_0x545664('0x1542')+_0x4b8980+'','hideDelay':0x1b58,'position':_0x545664('0x1bdd'),'parent':_0x545664('0x4a7')});return;}_0xd457d5[_0x545664('0xdaf')]=_0x363071,_0x421a9d[_0x545664('0x14cd')]('motion.language',_0x363071[_0x545664('0x20c6')]),_0x11e048[_0x545664('0x25')](_0x363071[_0x545664('0x20c6')]),_0x4585d5[_0x545664('0x9fe')][_0x545664('0x10ad')]===_0x545664('0x124b')&&_0x375e0f['location']['reload'](),_0x3b1984[_0x545664('0x2087')](_0x363071[_0x545664('0x20c6')])>=0x0?_0x2fc1ac['info']({'title':_0x11e048[_0x545664('0x1467')](_0x545664('0x9b7')),'msg':_0x11e048['instant'](_0x545664('0x17f4'))}):_0xd210d8[_0x545664('0x1d44')][_0x545664('0x1d44')]['vm'][_0x545664('0x15f4')]='ltr';}function _0x1e3415(){const _0x3654c7=_0x2e9b8c;_0xd457d5[_0x3654c7('0x693')][_0x3654c7('0xe0b')](_0x3654c7('0x1981'));}function _0x41e5c6(){const _0x4816bc=_0x2e9b8c;_0x198637[_0x4816bc('0x102f')]();}function _0x3f4bef(_0x37352b){const _0x3e2193=_0x2e9b8c;let _0x47e576=[];const _0x3dc03a=_0x198637[_0x3e2193('0x19e')](),_0x3abcbe=_0x53a67c[_0x3e2193('0x112e')]();for(let _0x825f3e=0x0;_0x825f3e<_0x3dc03a[_0x3e2193('0x543')];_0x825f3e++){_0x3dc03a[_0x825f3e]['uisref']&&_0x47e576['push'](_0x3dc03a[_0x825f3e]);}return _0x37352b&&(_0x47e576=_0x47e576[_0x3e2193('0x278d')](function(_0x175334){const _0x104049=_0x3e2193;if(_0x175334[_0x104049('0x20d6')][_0x104049('0x1e68')]()[_0x104049('0x2814')](_0x37352b['toLowerCase']()))return!![];})),_0x8dfe70(function(){const _0x341e6a=_0x3e2193;_0x3abcbe[_0x341e6a('0x155b')](_0x47e576);},0x3e8),_0x3abcbe[_0x3e2193('0x2219')];}function _0x400199(_0x2f0346){const _0x52b3a3=_0x2e9b8c;_0x2f0346[_0x52b3a3('0x4e0')]&&(_0x2f0346[_0x52b3a3('0x819')]?_0x4585d5['go'](_0x2f0346[_0x52b3a3('0x1a49')],_0x2f0346['stateParams']):_0x4585d5['go'](_0x2f0346[_0x52b3a3('0x1a49')]));}function _0x3e957b(){const _0x1987d9=_0x2e9b8c;_0x519873[_0x1987d9('0x21e8')]('webrtc::settings');}function _0x35d160(_0x4ab5e1,_0x1e77ac){const _0x582909=_0x2e9b8c;_0x1bc119[_0x582909('0x1cb7')]({'controller':_0x582909('0x1fa1'),'controllerAs':'vm','templateUrl':_0x381b9e,'parent':angular[_0x582909('0xb6d')](_0x455787[_0x582909('0x1a5')]),'targetEvent':_0x4ab5e1,'clickOutsideToClose':_0x1e77ac?![]:!![],'escapeToClose':_0x1e77ac?![]:!![],'locals':{'user':_0xd457d5['user'],'setting':_0x338d68,'reset':_0x1e77ac}});}function _0x5f0505(){const _0x107023=_0x2e9b8c;return _0x4622ef[_0x107023('0x14d4')]()&&_0x4622ef['hasRole'](_0x107023('0x7b0'));}function _0x5e1168(_0x25d516){const _0x9fff58=_0x2e9b8c;if(_0x25d516['id']===_0xd457d5['user']['id']){if(_0x25d516[_0x9fff58('0x14a')]===_0x9fff58('0x7b0')&&_0x3c8d8a()[_0x9fff58('0x2382')](_0x25d516[_0x9fff58('0xc7a')])&&!_0x25d516[_0x9fff58('0xc7a')]){if(_0xd457d5[_0x9fff58('0x166f')]['showWebBar']!==0x0){_0x849fc9();const _0x3005e7=_0x1bc119[_0x9fff58('0x1d02')]()[_0x9fff58('0x20d6')](_0x11e048[_0x9fff58('0x1467')]('TOOLBAR.WARNING')+'!')[_0x9fff58('0x1f71')](_0x11e048['instant'](_0x9fff58('0x201')))[_0x9fff58('0x217')](_0x11e048[_0x9fff58('0x1467')](_0x9fff58('0x1284'))+'!')['ok'](_0x11e048[_0x9fff58('0x1467')]('TOOLBAR.STAY_LOGGED'))[_0x9fff58('0x1e1f')](_0x9fff58('0xae8'));_0x1bc119['show'](_0x3005e7)['then'](function(){const _0x4a44e2=_0x9fff58;return _0x4622ef[_0x4a44e2('0x55b')]()[_0x4a44e2('0x173b')](function(){const _0x2583ba=_0x4a44e2;_0x12e610(),_0x3c8d8a()['merge'](_0xd457d5[_0x2583ba('0x166f')],_0x25d516),_0x4622ef[_0x2583ba('0x5fd')](_0xd457d5[_0x2583ba('0x166f')]);});})['catch'](function(){_0x4d36d1(!![]);});}else _0x4d36d1(!![]);}else _0x3c8d8a()[_0x9fff58('0x9ef')](_0xd457d5['user'],_0x25d516),_0x4622ef[_0x9fff58('0x5fd')](_0xd457d5[_0x9fff58('0x166f')]);}}function _0x504b04(_0x2f84f4){const _0x338669=_0x2e9b8c;_0xd457d5[_0x338669('0x155f')][_0x338669('0x18b')]===0x2&&_0xd457d5[_0x338669('0x155f')][_0x338669('0x14a')]===_0x338669('0x7b0')&&_0xd457d5['currentUser'][_0x338669('0x10ad')]===_0x2f84f4[_0x338669('0x562')]&&_0x2fc1ac[_0x338669('0x2787')]({'title':'WebRTC\x20Popup','msg':_0x338669('0x1d5')+_0x2f84f4[_0x338669('0x1c99')]+'
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20'+_0x2f84f4[_0x338669('0x172')]+_0x338669('0x33f')+(_0x2f84f4['variables']&&_0x2f84f4['variables'][_0x338669('0x26aa')]?_0x2f84f4[_0x338669('0x2715')]['extravar']:_0x338669('0xcd8'))+_0x338669('0x522'),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0x16752c(){const _0x5b5b5c=_0x2e9b8c;return _0xd457d5['setting'][_0x5b5b5c('0x1113')]?_0x5b5b5c('0x1d43'):_0xd457d5['setting'][_0x5b5b5c('0x26b4')];}function _0x2e1b91(){const _0x5a654a=_0x2e9b8c;_0x3c8d8a()[_0x5a654a('0x1ec')](_0xd457d5['voiceQueues'],{'dialMethod':_0x5a654a('0x14e1'),'dialActive':!![]})&&_0xd457d5['license']['dialer']&&_0xd457d5[_0x5a654a('0x2a4')]?(_0xd457d5[_0x5a654a('0x2a4')]=![],_0xa89cc0[_0x5a654a('0x1f4f')]['getOpenContacts']()['$promise'][_0x5a654a('0x173b')](function(_0x4ef3ca){const _0x2ae10d=_0x5a654a;_0x4ef3ca&&_0x3c8d8a()[_0x2ae10d('0x12aa')](_0x4ef3ca['contacts'])&&(_0xd457d5[_0x2ae10d('0xd53')]=_0x4ef3ca[_0x2ae10d('0xd53')]);})[_0x5a654a('0xf25')](function(){const _0x3f730a=_0x5a654a;_0xd457d5[_0x3f730a('0x2a4')]=!![];})):_0xd457d5['contacts']=0x0;}function _0x5e5142(){const _0x11ee99=_0x2e9b8c;_0x44a979&&(_0x2f320a[_0x11ee99('0x1e1f')](_0x44a979),_0x44a979=null);}function _0x4eacbd(_0x3864da){const _0x342c08=_0x2e9b8c;console[_0x342c08('0x1110')](_0x342c08('0x1c8f'),_0x3864da);if(_0xd457d5[_0x342c08('0x166f')]['showWebBar']!==0x0)return _0x849fc9(),_0x4622ef[_0x342c08('0x1037')](!![])['then'](function(){const _0x5b53b0=_0x342c08;_0x519873['$broadcast'](_0x5b53b0('0x25de')),_0x1bc119[_0x5b53b0('0x1cb7')](_0x1bc119[_0x5b53b0('0x5a4')]()[_0x5b53b0('0x941')](angular[_0x5b53b0('0xb6d')](_0x455787[_0x5b53b0('0x1a5')]))['clickOutsideToClose'](![])[_0x5b53b0('0x6e8')](![])[_0x5b53b0('0x20d6')](_0x11e048[_0x5b53b0('0x1467')](_0x5b53b0('0x1284')))[_0x5b53b0('0x1f71')](_0x11e048[_0x5b53b0('0x1467')](_0x5b53b0('0x1b08'),{'ip':_0x3864da['ip']}))['ok']('OK'))['then'](function(){return _0x4585d5['go']('app.login');});})[_0x342c08('0x103c')](function(_0x890630){const _0x16e0b7=_0x342c08;console[_0x16e0b7('0x15aa')](_0x890630);});}function _0x4094f0(_0xeb89e){const _0xb79a1f=_0x2e9b8c,_0xcd29cd=_0xeb89e;if(_0xd457d5[_0xb79a1f('0x155f')]['id']===_0xcd29cd[_0xb79a1f('0xb09')]){const _0x4fa9ef=_0x11e048[_0xb79a1f('0x1467')](_0xb79a1f('0x1a99'),{'sender':_0xcd29cd['sender']}),_0x52d10e=_0xcd29cd[_0xb79a1f('0x1c55')]?_0x11e048[_0xb79a1f('0x1467')]('TOOLBAR.NOTIFICATION_TITLE_RECIPIENT',{'recipient':_0xcd29cd[_0xb79a1f('0x1c55')]}):null;_0x2fc1ac[_0xb79a1f('0xb1d')]({'title':_0x52d10e?_0x4fa9ef+'\x20'+_0x52d10e:_0x4fa9ef,'msg':_0xcd29cd[_0xb79a1f('0x732')],'clickToClose':![],'timeout':![],'sound':_0xcd29cd['beep'],'html':!![]});}}_0xd210d8[_0x2e9b8c('0xbf6')](_0x2e9b8c('0x16d2'),function(){const _0x100a3c=_0x2e9b8c;_0x216150[_0x100a3c('0x251c')]('user:called'),_0x216150[_0x100a3c('0x251c')](_0x100a3c('0x2048')),_0x216150['removeAllListeners']('chatInternalMessage:save'),_0x216150['removeAllListeners'](_0x100a3c('0x17ea')),_0x216150['removeAllListeners'](_0x100a3c('0x1379')),_0x216150['removeAllListeners']('voiceQueue:save'),_0x216150[_0x100a3c('0x251c')](_0x100a3c('0x22b7')),_0x216150['removeAllListeners'](_0x100a3c('0xeb8')),_0x216150[_0x100a3c('0x251c')](_0x100a3c('0x806')),_0x216150[_0x100a3c('0x251c')](_0x100a3c('0x15e2')),_0x216150[_0x100a3c('0x251c')](_0x100a3c('0x16a7')),_0x5e5142();});}const _0x3a5cd1=_0x1bddf4;_0x3ba6b4[_0x566993('0x17bb')]=[_0x566993('0x8ca')];function _0x3ba6b4(_0x2e5b2b){const _0x1567b0=_0x566993;_0x2e5b2b[_0x1567b0('0x1b1a')]('app/toolbar');}angular[_0x566993('0x22c4')](_0x566993('0x2369'),[])[_0x566993('0xea9')](_0x3ba6b4)[_0x566993('0x1e65')](_0x566993('0x1fa1'),_0x72f650)['controller']('PreviewDialogController',_0x204a75)[_0x566993('0x1e65')]('ToolbarController',_0x3a5cd1),_0x5ee109[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x638'),'$q',_0x566993('0x1600'),_0x566993('0x2fc'),_0x566993('0xbd4'),_0x566993('0x1758'),_0x566993('0x1a29')];function _0x5ee109(_0x521d83,_0x5d21b1,_0x462c8c,_0x3fe129,_0x13cb16,_0x2b3386,_0x2f8c6,_0x390329){const _0x34bf2c=_0x566993,_0xdabbd5=this;_0xdabbd5['date']=_0x156524()()[_0x34bf2c('0xddc')](),_0xdabbd5[_0x34bf2c('0x155f')]=_0x3fe129['getCurrentUser'](),_0xdabbd5[_0x34bf2c('0x1a29')]=_0x390329,_0xdabbd5['unreadTotalMessages']=0x0,_0xdabbd5[_0x34bf2c('0x65a')]=0x0,_0xdabbd5[_0x34bf2c('0xbbe')]=_0x2e014b,_0xdabbd5[_0x34bf2c('0x1473')]=_0x2300a4,_0xdabbd5[_0x34bf2c('0x4c5')]=_0x5274f5,_0x13cb16['on']('chatInternalMessage:save',_0xdabbd5[_0x34bf2c('0x1473')]),_0x13cb16['on'](_0x34bf2c('0x17ea'),_0xdabbd5[_0x34bf2c('0x4c5')]),_0x2b3386[_0x34bf2c('0xee5')][_0x34bf2c('0x1d97')]({'fields':_0x34bf2c('0x15e4'),'ToId':_0xdabbd5['currentUser']['id'],'read':![],'nolimit':!![],'ChatGroupId':'null'})['$promise'][_0x34bf2c('0x173b')](function(_0x59fecc){const _0x1a0a90=_0x34bf2c;return _0x59fecc&&_0x59fecc[_0x1a0a90('0x1a2f')]&&(_0xdabbd5[_0x1a0a90('0x22f')]=_0x59fecc[_0x1a0a90('0x1a2f')]),_0x2b3386[_0x1a0a90('0x166f')]['getGroups']({'id':_0xdabbd5['currentUser']['id']})[_0x1a0a90('0x1964')];})['then'](function(_0x3e5428){const _0x1a23cc=_0x34bf2c,_0x4646e2=[],_0x3e311a=_0x3e5428['rows'];for(let _0x41d31a=0x0;_0x41d31a<_0x3e311a[_0x1a23cc('0x543')];_0x41d31a++){_0x4646e2[_0x1a23cc('0x18bb')](_0x2b3386['chatGroup'][_0x1a23cc('0x3d7')]({'id':_0x3e311a[_0x41d31a]['id']})['$promise']);}return _0x462c8c['all'](_0x4646e2);})['then'](function(_0x2e6b0d){const _0x1020a5=_0x34bf2c;for(let _0x2dbe28=0x0;_0x2dbe28<_0x2e6b0d['length'];_0x2dbe28++){_0xdabbd5[_0x1020a5('0x65a')]+=_0x2e6b0d[_0x2dbe28]['count'];}})['catch'](function(_0xef3a6b){const _0x3f947a=_0x34bf2c;console[_0x3f947a('0x15aa')](_0xef3a6b);});function _0xdaae80(_0x5d20b6){const _0x288239=_0x34bf2c,_0x234d3c={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x288239('0x3d6')+_0x5d20b6[_0x288239('0x15e4')]+'/avatar','body':_0x5d20b6[_0x288239('0x1a5')]||'','focusOnclick':!![],'closeOnClick':!![]};_0x2f8c6[_0x288239('0x1cb7')](_0x5d21b1[_0x288239('0x1467')]('QUICKPANEL.NEW_INTERNAL_MESSAGE'),_0x234d3c);}function _0xd97218(_0x2e92be){const _0xe6b619=_0x34bf2c;_0x2f8c6['isSupported']()?_0x2f8c6[_0xe6b619('0x11b8')]()[_0xe6b619('0x173b')](function(){_0xdaae80(_0x2e92be);},function(_0x2b53fb){const _0x3e72af=_0xe6b619;console['error'](_0x3e72af('0x2416'),_0x2b53fb);}):console['error']('Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.');}function _0x2e014b(){const _0x20e0aa=_0x34bf2c;return _0xdabbd5[_0x20e0aa('0x155f')][_0x20e0aa('0x14a')]===_0x20e0aa('0x79b')||_0xdabbd5[_0x20e0aa('0x155f')][_0x20e0aa('0x14a')]===_0x20e0aa('0x166f')||_0xdabbd5['currentUser'][_0x20e0aa('0x14a')]===_0x20e0aa('0x7b0')&&_0xdabbd5[_0x20e0aa('0x155f')][_0x20e0aa('0x18b')]!==0x0;}function _0x2300a4(_0x571f9d){const _0x282e9a=_0x34bf2c;_0x571f9d[_0x282e9a('0x2260')]===_0xdabbd5['currentUser']['id']&&_0x571f9d[_0x282e9a('0x15e4')]!==_0xdabbd5['currentUser']['id']&&!_0x571f9d[_0x282e9a('0x69b')]&&_0x571f9d['ChatGroupId']&&(_0xdabbd5[_0x282e9a('0x65a')]++,_0xd97218(_0x571f9d)),_0x571f9d['ToId']===_0xdabbd5[_0x282e9a('0x155f')]['id']&&!_0x571f9d[_0x282e9a('0x13ba')]&&(_0xdabbd5['unreadTotalMessages']+=0x1,_0xd97218(_0x571f9d));}function _0x5274f5(_0x3d10ca){const _0x4121e8=_0x34bf2c;_0x3d10ca[_0x4121e8('0x2260')]===_0xdabbd5['currentUser']['id']&&_0x3d10ca[_0x4121e8('0x69b')]&&_0xdabbd5[_0x4121e8('0x22f')]>0x0&&!_0x3d10ca[_0x4121e8('0x13ba')]&&(_0xdabbd5[_0x4121e8('0x22f')]-=0x1),_0x3d10ca['ToId']==_0xdabbd5[_0x4121e8('0x155f')]['id']&&_0x3d10ca['FromId']!==_0xdabbd5[_0x4121e8('0x155f')]['id']&&_0x3d10ca[_0x4121e8('0x13ba')]&&_0x3d10ca['read']&&(_0xdabbd5['unreadTotalGroupMessages']>0x0&&_0xdabbd5[_0x4121e8('0x65a')]--);}_0x521d83[_0x34bf2c('0xbf6')](_0x34bf2c('0x16d2'),function(){const _0x3fc4de=_0x34bf2c;_0x13cb16['removeAllListeners']('chatInternalMessage:save'),_0x13cb16[_0x3fc4de('0x251c')]('chatInternalMessage:update');});}const _0x208de7=_0x5ee109;_0x1726d8[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x24b5'),_0x566993('0x1600'),_0x566993('0x2fc'),_0x566993('0xd24'),'$q',_0x566993('0x1b13'),_0x566993('0x638'),_0x566993('0xca5'),_0x566993('0xa91')];function _0x1726d8(_0x36fafb,_0x19019b,_0x495246,_0x468419,_0x42140f,_0x50f3b9,_0x5db074,_0x368dce,_0x2688c9,_0x2c75eb,_0x28b593,_0xf5131f){const _0x39a089=_0x566993,_0x695cc8=this;_0x695cc8[_0x39a089('0x155f')]=_0x42140f['getCurrentUser'](),_0x695cc8[_0x39a089('0x166f')]=undefined,_0x695cc8[_0x39a089('0x1e14')]={'count':0x0,'rows':[]},_0x695cc8[_0x39a089('0x5b6')]=_0x156524()(0x0)[_0x39a089('0xddc')](_0x39a089('0xf5f')),_0x695cc8['unreadMessage']={},_0x695cc8[_0x39a089('0xa93')]='',_0x695cc8['disabled']=![],_0x695cc8[_0x39a089('0xb9c')]=_0x2a7345,_0x695cc8[_0x39a089('0x1d7')]=_0x16e535,_0x695cc8[_0x39a089('0x2252')]=_0x30c5b2,_0x695cc8[_0x39a089('0x1473')]=_0x3b9f5f,_0x695cc8[_0x39a089('0x4c5')]=_0x28c53e,_0x695cc8[_0x39a089('0x2679')]=_0x54b440,_0x695cc8[_0x39a089('0x265d')]=_0x30c90f,_0x695cc8['call']=_0x1b30bd,_0x695cc8[_0x39a089('0x617')]=_0x673334,_0x50f3b9['on'](_0x39a089('0x1ec5'),_0x695cc8[_0x39a089('0x1473')]),_0x50f3b9['on']('chatInternalMessage:update',_0x695cc8['onMessageUpdate']),_0x50f3b9['on'](_0x39a089('0x2048'),_0x695cc8[_0x39a089('0x2679')]),_0x5db074(_0x39a089('0x1511'))[_0x39a089('0x27ce')](function(){const _0x202822=_0x39a089;_0x695cc8[_0x202822('0x166f')]=undefined;}),_0x495246['chatInternalMessage']['get']({'fields':_0x39a089('0x15e4'),'ToId':_0x695cc8[_0x39a089('0x155f')]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x39a089('0x877')})['$promise'][_0x39a089('0x173b')](function(_0x5ce9b5){const _0x4c2eea=_0x39a089;_0x695cc8['unreadMessage']=_0x3c8d8a()[_0x4c2eea('0x283a')](_0x5ce9b5[_0x4c2eea('0x6aa')],'FromId');})['catch'](function(){}),_0x495246['chatInternalMessage']['getUsers']()['$promise'][_0x39a089('0x173b')](function(_0x12eb1c){_0x695cc8['users']=_0x12eb1c;})[_0x39a089('0x103c')](function(_0x2eb105){const _0x9ddf78=_0x39a089;console[_0x9ddf78('0x15aa')](_0x2eb105);});function _0x2a7345(_0xd8d5e3){_0x695cc8['license']=_0xd8d5e3;}function _0x3b9f5f(_0x3f1cf4){const _0x1a56ab=_0x39a089;if(_0x3f1cf4[_0x1a56ab('0x2260')]===_0x695cc8[_0x1a56ab('0x155f')]['id']&&!_0x3f1cf4[_0x1a56ab('0x13ba')]){_0x695cc8[_0x1a56ab('0x166f')]&&_0x695cc8[_0x1a56ab('0x166f')]['id']===_0x3f1cf4['FromId']?(_0x695cc8['user'][_0x1a56ab('0x558')][_0x1a56ab('0x6aa')]['push'](_0x3f1cf4),_0x39e43e(0x0),_0x495246[_0x1a56ab('0xee5')][_0x1a56ab('0x1842')]({'id':_0x3f1cf4['id'],'read':!![]})):_0x695cc8[_0x1a56ab('0x146')][_0x3f1cf4[_0x1a56ab('0x15e4')]]=_0x695cc8[_0x1a56ab('0x146')][_0x3f1cf4[_0x1a56ab('0x15e4')]]?_0x695cc8[_0x1a56ab('0x146')][_0x3f1cf4[_0x1a56ab('0x15e4')]]+0x1:0x1;const _0x577647=_0x3c8d8a()[_0x1a56ab('0x18ab')](_0x695cc8[_0x1a56ab('0x1e14')][_0x1a56ab('0x6aa')],{'id':_0x3f1cf4[_0x1a56ab('0x15e4')]});_0x577647&&(_0x577647['lastMessageAt']=_0x3f1cf4['createdAt'],_0x577647[_0x1a56ab('0x1642')]=_0x3f1cf4);}}function _0x28c53e(_0x3c8486){const _0x33d86b=_0x39a089;if((_0x3c8486[_0x33d86b('0x15e4')]===_0x695cc8[_0x33d86b('0x155f')]['id']||_0x3c8486[_0x33d86b('0x2260')]===_0x695cc8[_0x33d86b('0x155f')]['id'])&&!_0x3c8486[_0x33d86b('0x13ba')]){if(_0x695cc8['user']){const _0x31e9b2=_0x3c8d8a()[_0x33d86b('0x18ab')](_0x695cc8[_0x33d86b('0x166f')][_0x33d86b('0x558')][_0x33d86b('0x6aa')],{'id':_0x3c8486['id']});_0x31e9b2&&_0x3c8d8a()[_0x33d86b('0x9ef')](_0x31e9b2,_0x3c8486);}const _0x410fb5=_0x3c8d8a()['find'](_0x695cc8[_0x33d86b('0x1e14')][_0x33d86b('0x6aa')],{'id':_0x695cc8[_0x33d86b('0x155f')]['id']===_0x3c8486['FromId']?_0x3c8486[_0x33d86b('0x2260')]:_0x3c8486['FromId']});_0x410fb5&&_0x410fb5[_0x33d86b('0x1642')]&&_0x3c8d8a()[_0x33d86b('0x9ef')](_0x410fb5[_0x33d86b('0x1642')],_0x3c8486),_0x3c8486[_0x33d86b('0x2260')]===_0x695cc8[_0x33d86b('0x155f')]['id']&&(_0x3c8486[_0x33d86b('0x69b')]&&_0x695cc8[_0x33d86b('0x146')][_0x3c8486[_0x33d86b('0x15e4')]]>0x0&&(_0x695cc8[_0x33d86b('0x146')][_0x3c8486['FromId']]-=0x1));}}function _0x54b440(_0x34edee){const _0x1e1e58=_0x39a089,_0x44b860=_0x3c8d8a()[_0x1e1e58('0x18ab')](_0x695cc8[_0x1e1e58('0x1e14')]['rows'],{'id':_0x34edee['id']});_0x44b860&&(!_0x3c8d8a()[_0x1e1e58('0x7d5')](_0x34edee[_0x1e1e58('0xc7a')])&&_0x44b860[_0x1e1e58('0xc7a')]!==_0x34edee[_0x1e1e58('0xc7a')]&&(_0x44b860['online']=_0x34edee['online']),!_0x3c8d8a()[_0x1e1e58('0x7d5')](_0x34edee['allowmessenger'])&&_0x44b860['allowmessenger']!==_0x34edee[_0x1e1e58('0xc50')]&&(_0x44b860[_0x1e1e58('0xc50')]=_0x34edee[_0x1e1e58('0xc50')]));}function _0x16e535(_0x922af){const _0x1a0b25=_0x39a089;if(_0x922af){if(!_0x922af[_0x1a0b25('0xc50')]&&_0x922af['role']===_0x1a0b25('0x7b0')){_0x19019b[_0x1a0b25('0xd50')]({'title':_0x2c75eb[_0x1a0b25('0x1467')](_0x1a0b25('0xcc5')),'msg':_0x2c75eb['instant']('QUICKPANEL.MESSENGER_DISABLED')}),_0x695cc8[_0x1a0b25('0x166f')]=undefined;return;}_0x695cc8[_0x1a0b25('0x166f')]=_0x922af,_0x695cc8[_0x1a0b25('0xa93')]='',_0x495246[_0x1a0b25('0xee5')][_0x1a0b25('0x1d97')]({'sort':_0x1a0b25('0xda8'),'FromId':_0x695cc8[_0x1a0b25('0x155f')]['id']+','+_0x922af['id'],'ToId':_0x695cc8[_0x1a0b25('0x155f')]['id']+','+_0x922af['id'],'ChatGroupId':_0x1a0b25('0x877')})[_0x1a0b25('0x1964')][_0x1a0b25('0x173b')](function(_0x525660){const _0xd5b607=_0x1a0b25;if(_0x525660&&_0x525660['rows']){_0x695cc8[_0xd5b607('0x166f')][_0xd5b607('0x558')]=_0x525660;for(let _0x2dd8c2=0x0;_0x2dd8c2<_0x695cc8[_0xd5b607('0x166f')][_0xd5b607('0x558')][_0xd5b607('0x6aa')][_0xd5b607('0x543')];_0x2dd8c2+=0x1){_0x695cc8[_0xd5b607('0x166f')][_0xd5b607('0x558')]['rows'][_0x2dd8c2]['read']===![]&&_0x695cc8['user'][_0xd5b607('0x558')]['rows'][_0x2dd8c2][_0xd5b607('0x2260')]===_0x695cc8['currentUser']['id']&&_0x495246[_0xd5b607('0xee5')][_0xd5b607('0x1842')]({'id':_0x695cc8[_0xd5b607('0x166f')][_0xd5b607('0x558')][_0xd5b607('0x6aa')][_0x2dd8c2]['id'],'read':!![]});}}})['finally'](function(){_0x39e43e(0x0);});}else _0x695cc8[_0x1a0b25('0x166f')]=undefined;}function _0x30c5b2(){const _0x50a34a=_0x39a089;_0x695cc8[_0x50a34a('0x6fc')]=!![];if(_0x695cc8[_0x50a34a('0xa93')]===''){_0x695cc8['disabled']=![];return;}const _0x3b04b6={'FromId':_0x695cc8[_0x50a34a('0x155f')]['id'],'ToId':_0x695cc8['user']['id'],'body':_0x695cc8[_0x50a34a('0xa93')],'read':![]};_0x695cc8[_0x50a34a('0xa93')]='',_0x495246[_0x50a34a('0xee5')][_0x50a34a('0x1195')](_0x3b04b6)['$promise'][_0x50a34a('0x173b')](function(_0x4a0e87){const _0x45e09e=_0x50a34a;_0x695cc8['user'][_0x45e09e('0x558')][_0x45e09e('0x6aa')][_0x45e09e('0x18bb')](_0x4a0e87),_0x695cc8['user'][_0x45e09e('0x95a')]=_0x4a0e87['createdAt'],_0x695cc8[_0x45e09e('0x166f')][_0x45e09e('0x1642')]=_0x4a0e87,_0x39e43e(0x190);})[_0x50a34a('0x103c')](function(){})[_0x50a34a('0xf25')](function(){const _0x164ff7=_0x50a34a;_0x695cc8[_0x164ff7('0x6fc')]=![];});}function _0x39e43e(_0x277d16){const _0x3678f1=_0x39a089,_0x32a548=angular['element'](_0x3678f1('0x146e'));_0x468419(function(){const _0x4c7e8c=_0x3678f1;_0x32a548[_0x4c7e8c('0x190d')]({'scrollTop':_0x32a548[0x0]['scrollHeight']},_0x277d16);},0x0);}function _0x404c72(_0x8bf244){const _0x2eedd5=_0x39a089;return!_0x3c8d8a()[_0x2eedd5('0x7d5')](_0x8bf244)?_0x8bf244[_0x2eedd5('0x166c')](/[^\w.+#*-]+/g,''):'';}function _0x30c90f(_0x55e687){const _0x4b4d4f=_0x39a089;_0x28b593[_0x4b4d4f('0x21e8')](_0x4b4d4f('0x21a5'),{'target':_0x404c72(_0x55e687)});}function _0x1b30bd(_0x31d51d){const _0x4618c8=_0x39a089;return _0x3334f7(_0x4618c8('0x23eb')+(_0x695cc8[_0x4618c8('0x166f')][_0x4618c8('0x2520')]||_0x4618c8('0x1549'))+'/api/originate/'+_0x404c72(_0x31d51d));}function _0x673334(_0x127f67){const _0x4e97e9=_0x39a089;return _0x3334f7(_0x4e97e9('0x23eb')+(_0x695cc8['user'][_0x4e97e9('0x2520')]||_0x4e97e9('0x1549'))+_0x4e97e9('0xfbb')+_0x404c72(_0x127f67));}function _0x3334f7(_0x3c8200){const _0x5376c8=_0x39a089;return _0xf5131f[_0x5376c8('0x1d97')](_0x3c8200)[_0x5376c8('0xdfe')](function(){const _0x344d4f=_0x5376c8;_0x19019b[_0x344d4f('0xdfe')]({'title':'Successful\x20call','msg':'Call\x20properly\x20handled!'});})['error'](function(){const _0x5e7e5e=_0x5376c8;_0x19019b[_0x5e7e5e('0x15aa')]({'title':_0x5e7e5e('0x6b0'),'msg':_0x2c75eb['instant'](_0x5e7e5e('0x275c'))});});}_0x36fafb[_0x39a089('0xbf6')](_0x39a089('0x16d2'),function(){const _0x247f8d=_0x39a089;_0x50f3b9['removeAllListeners'](_0x247f8d('0x1ec5')),_0x50f3b9[_0x247f8d('0x251c')](_0x247f8d('0x17ea')),_0x50f3b9['removeAllListeners'](_0x247f8d('0x2048'));});}const _0x1b65f3=_0x1726d8;_0x2e9e08[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location','$mdDialog',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1ed6'),_0x566993('0x739')];function _0x2e9e08(_0x4611e4,_0x47878b,_0x4475e2,_0x4927ce,_0xe63c74,_0xf4cb9b,_0x5552b5,_0x1b427b,_0x3839cc){const _0x564b58=_0x566993,_0x32b535=this;_0x32b535[_0x564b58('0x1d4a')]=[],_0x32b535['title']='QUICKPANEL.EDIT_CHATGROUP',_0x32b535['group']=angular[_0x564b58('0x2e3')](_0x1b427b),_0x32b535[_0x564b58('0x155f')]=_0x5552b5[_0x564b58('0x14d4')](),_0x32b535['members']=_0x3839cc,_0x32b535[_0x564b58('0x1f88')]=!![];!_0x32b535['group']&&(_0x32b535[_0x564b58('0x1ed6')]={'write':!![],'members':[]},_0x32b535['title']=_0x564b58('0xb4f'));_0x32b535[_0x564b58('0x1a3b')]=_0x160819,_0x32b535['closeDialog']=_0x29ce8c,_0x32b535['querySearch']=_0x36f3cf;function _0x543395(_0x5b60cf){const _0x195367=_0x564b58,_0x1f3b32=_0x5b60cf[_0x195367('0x1e68')]();return function _0x54b6f9(_0x5c178b){const _0x11eebb=_0x195367,_0x3cfe5d=_0x5c178b[_0x11eebb('0x10ad')]['toLowerCase']();return _0x3cfe5d[_0x11eebb('0x2087')](_0x1f3b32)!=-0x1;};}function _0x36f3cf(_0x3188f3){const _0x39d091=_0x564b58;return _0x3188f3?_0x32b535[_0x39d091('0x739')][_0x39d091('0x6aa')][_0x39d091('0x278d')](_0x543395(_0x3188f3)):[];}function _0x160819(){const _0x136888=_0x564b58;let _0x4eaf34;return _0x32b535[_0x136888('0x1d4a')]=[],_0xf4cb9b['chatGroup'][_0x136888('0x1195')]({'name':_0x32b535['group'][_0x136888('0x10ad')],'write':_0x32b535[_0x136888('0x1ed6')]['write']})[_0x136888('0x1964')][_0x136888('0x173b')](function(_0x5d15c0){const _0x48afa5=_0x136888,_0x2eb498=_0x3c8d8a()[_0x48afa5('0x8a2')](_0x32b535[_0x48afa5('0x1ed6')][_0x48afa5('0x739')],'id');return _0x2eb498[_0x48afa5('0x1377')](_0x32b535[_0x48afa5('0x155f')]['id']),_0x4eaf34=_0x5d15c0,_0xf4cb9b[_0x48afa5('0x1462')][_0x48afa5('0x27c5')]({'id':_0x4eaf34['id'],'ids':_0x2eb498})[_0x48afa5('0x1964')];})[_0x136888('0x173b')](function(){const _0x1041e5=_0x136888;_0xe63c74[_0x1041e5('0xdfe')]({'title':_0x1041e5('0x92f'),'msg':_0x4eaf34[_0x1041e5('0x10ad')]+'\x20has\x20been\x20saved!'}),_0x29ce8c(_0x4eaf34);})['catch'](function(_0xac8f2f){const _0x2f3637=_0x136888;_0xe63c74[_0x2f3637('0x15aa')]({'title':_0xac8f2f[_0x2f3637('0x276f')]?_0x2f3637('0x137')+_0xac8f2f[_0x2f3637('0x276f')]+_0x2f3637('0x160c')+_0xac8f2f['statusText']:_0x2f3637('0x811'),'msg':_0xac8f2f['data']?JSON['stringify'](_0xac8f2f[_0x2f3637('0x1e07')][_0x2f3637('0x67f')]):_0xac8f2f['toString']()});});}function _0x29ce8c(_0x52f11a){const _0x2d81db=_0x564b58;_0x4927ce[_0x2d81db('0x1cf4')](_0x52f11a);}}const _0xca0dea=_0x2e9e08,_0x179089=_0x21a6a1['p']+_0x566993('0xe16'),_0x53d570=_0x21a6a1['p']+'src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog.html';_0x32b5b6[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0xd24'),'$q',_0x566993('0x1600'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1558')];function _0x32b5b6(_0x260e83,_0x456ede,_0x1f8b05,_0x247fd4,_0x52e840,_0x367650,_0x22350f,_0x3a14cf,_0x5c8b82,_0x90f449){const _0x5b822f=_0x566993,_0x43be1a=this;_0x43be1a[_0x5b822f('0x155f')]=_0x22350f[_0x5b822f('0x14d4')](),_0x43be1a[_0x5b822f('0xc2e')]={},_0x43be1a[_0x5b822f('0x11f8')]={},_0x43be1a[_0x5b822f('0x2693')],_0x43be1a['group'],_0x43be1a[_0x5b822f('0xb9c')]=_0x4efd2c,_0x43be1a[_0x5b822f('0x1ea7')]=_0xbfb1d3,_0x43be1a[_0x5b822f('0x275f')]=_0x5c9a4c,_0x43be1a[_0x5b822f('0xef5')]=_0x388e5e,_0x43be1a[_0x5b822f('0x27fe')]=_0x284587,_0x43be1a[_0x5b822f('0x16fc')]=_0x324adc,_0x43be1a[_0x5b822f('0x1d7')]=_0x3f86eb,_0x43be1a[_0x5b822f('0x2252')]=_0x4181bf,_0x5c8b82['on'](_0x5b822f('0x1ec5'),_0x3469fb),_0x5c8b82['on'](_0x5b822f('0x17ea'),_0x3ba55a),_0x5c8b82['on'](_0x5b822f('0x232e'),_0x36ded9),_0x52e840(_0x5b822f('0x1511'))[_0x5b822f('0x27ce')](_0xbfb1d3);function _0x36ded9(_0x2832e9){const _0x1c0e83=_0x5b822f;_0x43be1a[_0x1c0e83('0x11f8')][_0x2832e9['id']]&&delete _0x43be1a['groups'][_0x2832e9['id']];}function _0x3ba55a(_0x39ccd5){const _0x224f9a=_0x5b822f;_0x39ccd5['ToId']==_0x43be1a[_0x224f9a('0x155f')]['id']&&_0x39ccd5[_0x224f9a('0x15e4')]!==_0x43be1a['currentUser']['id']&&_0x39ccd5[_0x224f9a('0x13ba')]&&_0x39ccd5['read']&&(_0x43be1a[_0x224f9a('0x11f8')][_0x39ccd5[_0x224f9a('0x13ba')]][_0x224f9a('0xc2e')]>0x0&&_0x43be1a[_0x224f9a('0x11f8')][_0x39ccd5[_0x224f9a('0x13ba')]]['unreadGroupMessages']--,_0x43be1a['group']['messages'][_0x39ccd5['id']]&&(_0x43be1a[_0x224f9a('0x1ed6')][_0x224f9a('0x558')][_0x39ccd5['id']][_0x224f9a('0x69b')]=!![]));}function _0x3469fb(_0x519e96){const _0x4748a7=_0x5b822f;if(!_0x43be1a['group']&&_0x519e96[_0x4748a7('0x2260')]===_0x43be1a[_0x4748a7('0x155f')]['id']&&_0x519e96[_0x4748a7('0x15e4')]!==_0x43be1a[_0x4748a7('0x155f')]['id']&&!_0x519e96[_0x4748a7('0x69b')]&&_0x519e96[_0x4748a7('0x13ba')]){const _0x268b8e=_0x43be1a[_0x4748a7('0x11f8')][_0x519e96[_0x4748a7('0x13ba')]];if(_0x268b8e)!_0x268b8e['unreadGroupMessages']&&(_0x268b8e[_0x4748a7('0xc2e')]=0x0),_0x268b8e[_0x4748a7('0xc2e')]++;else return _0x3a14cf['chatGroup'][_0x4748a7('0x1d97')]({'id':_0x519e96[_0x4748a7('0x13ba')]})[_0x4748a7('0x1964')][_0x4748a7('0x173b')](function(_0x1b974e){const _0x12067b=_0x4748a7;_0x1b974e[_0x12067b('0xc2e')]=0x1,_0x43be1a[_0x12067b('0x11f8')][_0x1b974e['id']]=_0x1b974e;});}_0x43be1a[_0x4748a7('0x1ed6')]&&_0x519e96[_0x4748a7('0x13ba')]===_0x43be1a[_0x4748a7('0x1ed6')]['id']&&_0x519e96['ToId']===_0x43be1a['currentUser']['id']&&_0x3a14cf['chatInternalMessage'][_0x4748a7('0x1842')]({'id':_0x519e96['id'],'read':!![]})[_0x4748a7('0x1964')][_0x4748a7('0x173b')](function(){_0x3a4a55(_0x519e96);});}function _0x4efd2c(_0x47f04c){const _0x58fb5c=_0x5b822f;return _0x43be1a[_0x58fb5c('0x1a29')]=_0x47f04c,_0x3a14cf[_0x58fb5c('0x166f')]['getGroups']({'id':_0x43be1a['currentUser']['id']})[_0x58fb5c('0x1964')][_0x58fb5c('0x173b')](function(_0x23360c){const _0x331dcb=_0x58fb5c,_0x4ea049=[];for(let _0x1b0d86=0x0;_0x1b0d86<_0x23360c[_0x331dcb('0x6aa')][_0x331dcb('0x543')];_0x1b0d86++){_0x23360c[_0x331dcb('0x6aa')][_0x1b0d86][_0x331dcb('0xc2e')]=0x0,_0x43be1a['groups'][_0x23360c[_0x331dcb('0x6aa')][_0x1b0d86]['id']]=_0x23360c[_0x331dcb('0x6aa')][_0x1b0d86],_0x4ea049['push'](_0x3a14cf['chatGroup'][_0x331dcb('0x3d7')]({'id':_0x23360c[_0x331dcb('0x6aa')][_0x1b0d86]['id']})[_0x331dcb('0x1964')]);}return _0x367650[_0x331dcb('0x27c8')](_0x4ea049);})['then'](function(_0x45714f){const _0x4daa54=_0x58fb5c;for(let _0x51951f=0x0;_0x51951f<_0x45714f[_0x4daa54('0x543')];_0x51951f++){_0x43be1a[_0x4daa54('0x11f8')][_0x45714f[_0x51951f]['id']][_0x4daa54('0xc2e')]+=_0x45714f[_0x51951f][_0x4daa54('0x1a2f')];}})['catch'](function(_0x186acc){const _0x2d10c2=_0x58fb5c;console[_0x2d10c2('0x15aa')](_0x186acc);});}function _0x284587(){const _0x5ba45b=_0x5b822f;return _0x3c8d8a()[_0x5ba45b('0xcaf')](_0x43be1a[_0x5ba45b('0x11f8')]);}function _0x324adc(_0x244097,_0x435872){const _0x53f603=_0x5b822f;_0x247fd4[_0x53f603('0x1cb7')]({'controller':_0x53f603('0x214a'),'controllerAs':'vm','templateUrl':_0x53d570,'parent':angular[_0x53f603('0xb6d')](_0x456ede[_0x53f603('0x1a5')]),'targetEvent':_0x244097,'clickOutsideToClose':!![],'locals':{'message':_0x435872},'resolve':{'data':function(){const _0x5c20cc=_0x53f603,_0x56dad3={'messages':[]};return _0x3a14cf[_0x5c20cc('0xee5')]['get']({'ChatInternalMessageId':_0x435872['id']})[_0x5c20cc('0x1964')][_0x5c20cc('0x173b')](function(_0xe73358){const _0x2e07ec=_0x5c20cc,_0x6a31a0=[];_0x56dad3[_0x2e07ec('0x558')]=_0xe73358['rows'],_0x56dad3['messages'][_0x2e07ec('0x1377')](_0x435872);for(let _0x1d02b2=0x0;_0x1d02b2<_0x56dad3[_0x2e07ec('0x558')][_0x2e07ec('0x543')];_0x1d02b2++){_0x6a31a0[_0x2e07ec('0x18bb')](_0x3a14cf[_0x2e07ec('0x166f')][_0x2e07ec('0x1d97')]({'id':_0x56dad3[_0x2e07ec('0x558')][_0x1d02b2][_0x2e07ec('0x2260')],'fields':_0x2e07ec('0x1fed')})[_0x2e07ec('0x1964')]);}return _0x367650[_0x2e07ec('0x27c8')](_0x6a31a0);})[_0x5c20cc('0x173b')](function(_0xf3cca3){return _0x56dad3['users']=_0xf3cca3,_0x56dad3;})[_0x5c20cc('0x103c')](function(_0x256bd2){_0x256bd2&&console['error'](_0x256bd2);});}}})[_0x53f603('0x173b')](function(){})[_0x53f603('0x103c')](function(_0x52e31b){const _0x19232a=_0x53f603;_0x52e31b&&console[_0x19232a('0x15aa')](_0x52e31b[_0x19232a('0x67f')]);});}function _0x4181bf(){const _0x259d8f=_0x5b822f;if(!_0x43be1a['replyMessage'])return;const _0x163d73={'id':_0x43be1a[_0x259d8f('0x1ed6')]['id'],'FromId':_0x43be1a[_0x259d8f('0x155f')]['id'],'ToId':_0x43be1a[_0x259d8f('0x155f')]['id'],'body':_0x43be1a[_0x259d8f('0xa93')],'read':!![]},_0xdf2c37=[];_0x43be1a[_0x259d8f('0xa93')]='',_0x3a14cf[_0x259d8f('0x1462')][_0x259d8f('0x1722')](_0x163d73)[_0x259d8f('0x1964')]['then'](function(_0x22997f){const _0x4c79bc=_0x259d8f;_0x163d73[_0x4c79bc('0x69b')]=![],_0x163d73['ChatInternalMessageId']=_0x22997f['id'];for(let _0x55dce8=0x0;_0x55dce8<_0x43be1a['group']['members'][_0x4c79bc('0x543')];_0x55dce8++){_0x43be1a['group'][_0x4c79bc('0x739')][_0x55dce8]['id']!==_0x43be1a[_0x4c79bc('0x155f')]['id']&&(_0x163d73['ToId']=_0x43be1a[_0x4c79bc('0x1ed6')]['members'][_0x55dce8]['id'],_0xdf2c37[_0x4c79bc('0x18bb')](_0x3a14cf[_0x4c79bc('0x1462')][_0x4c79bc('0x1722')](angular['copy'](_0x163d73))[_0x4c79bc('0x1964')]));}return _0x367650['all'](_0xdf2c37);})[_0x259d8f('0x103c')](function(_0x2d391d){const _0x4cbfb5=_0x259d8f;console[_0x4cbfb5('0xe37')](_0x2d391d);});}function _0x3a4a55(_0x157881){const _0x499186=_0x5b822f;_0x43be1a[_0x499186('0x1ed6')]['messages'][_0x157881['id']]=_0x157881,_0x5ccafd(0x190);}function _0xbfb1d3(){delete _0x43be1a['group'];}function _0x5ccafd(_0x277429){const _0x324eb4=_0x5b822f,_0x40ac20=angular[_0x324eb4('0xb6d')]('#chat-group-dialog');_0x1f8b05(function(){const _0x4491c1=_0x324eb4;_0x40ac20[_0x4491c1('0x190d')]({'scrollTop':_0x40ac20[0x0]['scrollHeight']},_0x277429);},0x0);}function _0x3f86eb(_0x5d76a7){const _0x593549=_0x5b822f;_0x43be1a[_0x593549('0x1ed6')]={'id':_0x5d76a7['id'],'write':_0x5d76a7[_0x593549('0xfe5')],'messages':{}},_0x3a14cf[_0x593549('0x1462')][_0x593549('0x230a')]({'id':_0x5d76a7['id'],'fields':_0x593549('0x112d')})[_0x593549('0x1964')][_0x593549('0x173b')](function(_0x577470){const _0x2e0af=_0x593549;return _0x43be1a['group'][_0x2e0af('0xfe2')]=_0x3c8d8a()[_0x2e0af('0x128')](_0x577470[_0x2e0af('0x6aa')],'id'),_0x43be1a[_0x2e0af('0x1ed6')][_0x2e0af('0x739')]=_0x3c8d8a()['differenceBy'](_0x577470[_0x2e0af('0x6aa')],[{'id':_0x43be1a[_0x2e0af('0x155f')]['id']}],'id'),_0x43be1a[_0x2e0af('0x2693')]=_0x3c8d8a()[_0x2e0af('0x8a2')](_0x43be1a[_0x2e0af('0x1ed6')][_0x2e0af('0x739')],_0x2e0af('0x572'))[_0x2e0af('0x2259')](',\x20'),_0x3a14cf[_0x2e0af('0x1462')][_0x2e0af('0x24e5')]({'id':_0x5d76a7['id'],'nolimit':!![]})[_0x2e0af('0x1964')];})[_0x593549('0x173b')](function(_0x2bffda){const _0x16bba9=_0x593549,_0x1c06cc=[];let _0x103b3b;for(let _0x3aa40d=0x0;_0x3aa40d<_0x2bffda[_0x16bba9('0x1a2f')];_0x3aa40d++){_0x2bffda[_0x16bba9('0x6aa')][_0x3aa40d][_0x16bba9('0x2260')]===_0x43be1a['currentUser']['id']&&(_0x103b3b=_0x2bffda['rows'][_0x3aa40d],_0x43be1a[_0x16bba9('0x1ed6')][_0x16bba9('0x558')][_0x103b3b['id']]=_0x103b3b,_0x2bffda[_0x16bba9('0x6aa')][_0x3aa40d][_0x16bba9('0x2260')]==_0x43be1a['currentUser']['id']&&_0x2bffda[_0x16bba9('0x6aa')][_0x3aa40d][_0x16bba9('0x15e4')]!==_0x43be1a[_0x16bba9('0x155f')]['id']&&!_0x103b3b['read']&&_0x1c06cc[_0x16bba9('0x18bb')](_0x3a14cf[_0x16bba9('0xee5')]['update']({'id':_0x103b3b['id'],'read':!![]})));}return _0x367650[_0x16bba9('0x27c8')](_0x1c06cc);})[_0x593549('0x173b')](function(){_0x5ccafd(0x190);})[_0x593549('0x103c')](function(_0x207cfe){const _0x571dda=_0x593549;console[_0x571dda('0x15aa')](_0x207cfe[_0x571dda('0x67f')]);});}function _0x388e5e(_0x204d53,_0x1859d4){const _0x4e86c4=_0x5b822f,_0x14e6d4=_0x247fd4[_0x4e86c4('0x1d02')]()[_0x4e86c4('0x20d6')](_0x4e86c4('0x182d'))[_0x4e86c4('0xf8b')](_0x4e86c4('0x210c')+_0x204d53[_0x4e86c4('0x10ad')]+_0x4e86c4('0x24be')+_0x4e86c4('0xd23'))['ariaLabel'](_0x4e86c4('0x27d9'))[_0x4e86c4('0x21de')](_0x1859d4)['ok']('OK')[_0x4e86c4('0x1e1f')](_0x4e86c4('0x468'));_0x247fd4[_0x4e86c4('0x1cb7')](_0x14e6d4)[_0x4e86c4('0x173b')](function(){const _0x41529c=_0x4e86c4;return _0x3a14cf[_0x41529c('0x1462')][_0x41529c('0x15e8')]({'id':_0x204d53['id']})[_0x41529c('0x1964')];})[_0x4e86c4('0x173b')](function(){const _0x2235be=_0x4e86c4;delete _0x43be1a[_0x2235be('0x11f8')][_0x204d53['id']],_0x90f449[_0x2235be('0xdfe')]({'title':_0x2235be('0x11e7'),'msg':_0x204d53['name']+_0x2235be('0x25d2')});})[_0x4e86c4('0x103c')](function(_0x81a997){const _0x2e1faf=_0x4e86c4;_0x81a997&&_0x90f449[_0x2e1faf('0x15aa')]({'title':_0x81a997[_0x2e1faf('0x276f')]?_0x2e1faf('0x137')+_0x81a997['status']+'\x20-\x20'+_0x81a997[_0x2e1faf('0x2696')]:'api.chatGroup.delete','msg':_0x81a997[_0x2e1faf('0x1e07')]?JSON['stringify'](_0x81a997[_0x2e1faf('0x1e07')][_0x2e1faf('0x67f')]):_0x81a997['toString']()});});}function _0x5c9a4c(_0x4471c6,_0x47c6dc){const _0x3e346e=_0x5b822f;_0x247fd4[_0x3e346e('0x1cb7')]({'controller':_0x3e346e('0x177e'),'controllerAs':'vm','templateUrl':_0x179089,'parent':angular[_0x3e346e('0xb6d')](_0x456ede[_0x3e346e('0x1a5')]),'targetEvent':_0x47c6dc,'clickOutsideToClose':!![],'locals':{'group':_0x4471c6,'me':_0x43be1a[_0x3e346e('0x155f')],'license':null,'setting':null},'resolve':{'members':function(){const _0x2d1a3b=_0x3e346e;return _0x22350f[_0x2d1a3b('0x1b4e')](_0x2d1a3b('0x79b'))?_0x3a14cf[_0x2d1a3b('0x166f')][_0x2d1a3b('0x1d97')]({'role':_0x2d1a3b('0x7b0')})[_0x2d1a3b('0x1964')]:_0x3a14cf[_0x2d1a3b('0x257b')][_0x2d1a3b('0x135b')]({'id':_0x22350f[_0x2d1a3b('0x14d4')]()[_0x2d1a3b('0x1946')],'section':'Agents','role':_0x2d1a3b('0x7b0')})[_0x2d1a3b('0x1964')];}}})[_0x3e346e('0x173b')](function(_0x1f8f6b){const _0x1d2fb1=_0x3e346e;_0x1f8f6b&&(_0x43be1a[_0x1d2fb1('0x11f8')][_0x1f8f6b['id']]=_0x1f8f6b);})[_0x3e346e('0x103c')](function(_0x1bb6fe){const _0x2ef709=_0x3e346e;_0x1bb6fe&&console[_0x2ef709('0x15aa')](_0x1bb6fe['message']);});}_0x260e83[_0x5b822f('0xbf6')](_0x5b822f('0x16d2'),function(){const _0x4d5f5e=_0x5b822f;_0x5c8b82['removeAllListeners'](_0x4d5f5e('0x1ec5')),_0x5c8b82['removeAllListeners'](_0x4d5f5e('0x17ea')),_0x5c8b82['removeAllListeners'](_0x4d5f5e('0x232e'));});}const _0x2aebe0=_0x32b5b6;_0x9d4fbf[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600'),'data'];function _0x9d4fbf(_0x1004cd,_0x3fdeb2,_0x5f4edc,_0x328911,_0x362ad5,_0x15d4ae,_0x577379,_0x83f87){const _0x14410c=_0x566993,_0xfad8d1=this;_0xfad8d1['data']=_0x83f87,_0xfad8d1[_0x14410c('0x20d6')]=_0x14410c('0x1003');function _0x1354f5(){_0x328911['hide']();}_0xfad8d1[_0x14410c('0x18e2')]=_0x1354f5;}const _0x5ef2fa=_0x9d4fbf;_0x11ed66['$inject']=['$translatePartialLoaderProvider'];function _0x11ed66(_0x27c953){const _0x15750e=_0x566993;_0x27c953[_0x15750e('0x1b1a')]('app/quick-panel');}angular[_0x566993('0x22c4')]('app.quick-panel',[])[_0x566993('0xea9')](_0x11ed66)[_0x566993('0x1e65')](_0x566993('0x8ff'),_0x208de7)[_0x566993('0x1e65')]('ChatInternalController',_0x1b65f3)['controller'](_0x566993('0x177e'),_0xca0dea)[_0x566993('0x1e65')](_0x566993('0xfd7'),_0x2aebe0)['controller'](_0x566993('0x214a'),_0x5ef2fa),_0x541f29[_0x566993('0x17bb')]=[_0x566993('0x1600'),_0x566993('0x2166')];function _0x541f29(_0x276c92,_0x371acb){const _0x4eab09=_0x566993,_0x183e1b=this;function _0x9e0cc4(){const _0xc4a96d=a0_0xde5e;_0x371acb['put']('motion.newsAlertHide:'+_0x183e1b[_0xc4a96d('0x155f')]['id'],!![]);}_0x183e1b['currentUser']=_0x276c92['getCurrentUser'](),_0x183e1b[_0x4eab09('0x706')]=_0x371acb[_0x4eab09('0x1d97')](_0x4eab09('0x1ba6')+_0x183e1b[_0x4eab09('0x155f')]['id'])||![],_0x183e1b[_0x4eab09('0x86c')]=_0x9e0cc4;}const _0x377229=_0x541f29;_0xda601e[_0x566993('0x17bb')]=[_0x566993('0x8ca')];function _0xda601e(_0xe5d264){const _0x48d2e1=_0x566993;_0xe5d264[_0x48d2e1('0x1b1a')]('app/header');}angular[_0x566993('0x22c4')]('app.header',[])['config'](_0xda601e)[_0x566993('0x1e65')]('HeaderController',_0x377229),_0x546a74[_0x566993('0x17bb')]=[_0x566993('0x1600'),_0x566993('0x2166')];function _0x546a74(_0x5a66e,_0x23d512){const _0x15b41d=_0x566993,_0x398332=this;function _0x38361e(){const _0x38c0fc=a0_0xde5e;_0x23d512[_0x38c0fc('0x14cd')]('motion.cookieAlertHide:'+_0x398332[_0x38c0fc('0x155f')]['id'],!![]);}_0x398332[_0x15b41d('0x155f')]=_0x5a66e['getCurrentUser'](),_0x398332[_0x15b41d('0x6b3')]=_0x23d512[_0x15b41d('0x1d97')]('motion.cookieAlertHide:'+_0x398332['currentUser']['id'])||![],_0x398332[_0x15b41d('0x3bb')]=_0x38361e;}const _0x202a68=_0x546a74;_0x544882['$inject']=[_0x566993('0x8ca')];function _0x544882(_0x3419b1){const _0x4f2b4e=_0x566993;_0x3419b1[_0x4f2b4e('0x1b1a')](_0x4f2b4e('0xcbb'));}angular[_0x566993('0x22c4')](_0x566993('0x27e4'),[])['config'](_0x544882)[_0x566993('0x1e65')](_0x566993('0x1413'),_0x202a68);var _0x304517=_0x21a6a1(0x1cbe),_0x599e60=_0x21a6a1(0x2303),_0xa11c06=_0x21a6a1(0xde6),_0x120026=_0x21a6a1(0x321),_0x16bfb2=_0x21a6a1(0x1c92),_0x571439=_0x21a6a1(0x2361),_0x1d465a=_0x21a6a1(0xdd5),_0xe31c40=_0x21a6a1(0x9d6),_0x33f063=_0x21a6a1(0x20aa),_0x3c7afd=_0x21a6a1(0x1ac1),_0x2b1c95=_0x21a6a1(0x15c3),_0x1895e8=_0x21a6a1(0x154a),_0x218cc6=_0x21a6a1(0x2154),_0x1707dd=_0x21a6a1(0x23a1),_0x5d21ab=_0x21a6a1(0xa7c),_0x297b7d=_0x21a6a1(0x1eaf),_0x41547a=_0x21a6a1(0x444),_0x5e049a=_0x21a6a1(0x1c4),_0x5960fb=_0x21a6a1(0x121a),_0x14d1e0=_0x21a6a1(0x1be),_0x1c6a78=_0x21a6a1(0xd3e);const _0x39d991=_0x21a6a1['p']+'src/js/modules/main/apps/dashboards/views/general/user/user.general.html/user.general.html',_0x2990d2=_0x21a6a1['p']+_0x566993('0x1f54'),_0x76eb50=_0x21a6a1['p']+'src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html/user.general.chat.html',_0x27dda1=_0x21a6a1['p']+_0x566993('0x895'),_0x2f9fea=_0x21a6a1['p']+_0x566993('0x1329'),_0xbeda4b=_0x21a6a1['p']+_0x566993('0x802'),_0x4dc1f2=_0x21a6a1['p']+'src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax.html',_0xa86edf=_0x21a6a1['p']+_0x566993('0xe50');_0xdff92c[_0x566993('0x17bb')]=['$scope',_0x566993('0x2fc'),'chatInteractions',_0x566993('0x4e3')];function _0xdff92c(_0x2b31cc,_0x231f99,_0x163e3e,_0x25dfbc){const _0x4701a4=_0x566993,_0x572c68=this,_0x1aa9e3=[];_0x572c68['config']={'format':_0x4701a4('0x14e2'),'unit':'seconds','trim':![]},_0x572c68['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x4701a4('0x4fa'),'avgTalkTime':_0x4701a4('0x4fa'),'answerRate':0x0,'abandonRate':0x0},_0x572c68[_0x4701a4('0x4e3')]=_0x25dfbc?_0x3c8d8a()[_0x4701a4('0x128')](_0x25dfbc[_0x4701a4('0x6aa')]?_0x25dfbc[_0x4701a4('0x6aa')]:[],'id'):{},_0x572c68['onSaveChatInteraction']=_0x4386cc,_0x572c68[_0x4701a4('0x412')]=_0x226c31,_0x231f99['on'](_0x4701a4('0x1ae8'),_0x572c68['onSaveChatInteraction']),_0x231f99['on'](_0x4701a4('0x206c'),_0x572c68['onUpdateChatInteraction']),_0x58a6a2();function _0x15fe26(_0x56a55b,_0x518f2c){const _0xa2292b=_0x4701a4;!_0x56a55b['closed']&&!_0x56a55b[_0xa2292b('0x181c')]&&_0x518f2c&&(_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x1b68')]+=0x1);!_0x56a55b[_0xa2292b('0x1636')]&&_0x56a55b[_0xa2292b('0x181c')]&&!_0x3c8d8a()[_0xa2292b('0x2814')](_0x1aa9e3,_0x56a55b['id'])&&(_0x572c68[_0xa2292b('0x1755')]['talking']+=0x1,_0x1aa9e3[_0xa2292b('0x18bb')](_0x56a55b['id']),!_0x518f2c&&_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x1b68')]&&(_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x1b68')]-=0x1));if(_0x56a55b[_0xa2292b('0x1636')]&&_0x56a55b[_0xa2292b('0x2766')]==='abandoned')_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x3b9')]+=0x1,!_0x518f2c&&_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x1b68')]&&(_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x1b68')]-=0x1);else{if(_0x56a55b['closed']&&!_0x56a55b['UserId']&&_0x56a55b['disposition'])_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x50c')]+=0x1,!_0x518f2c&&_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x1b68')]&&(_0x572c68['inbound'][_0xa2292b('0x1b68')]-=0x1);else _0x56a55b[_0xa2292b('0x1636')]&&_0x56a55b[_0xa2292b('0x181c')]&&(_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x191d')]+=_0x156524()(_0x56a55b['closedAt'])[_0xa2292b('0x22c6')](_0x156524()(_0x56a55b[_0xa2292b('0x2314')]),_0x572c68[_0xa2292b('0xea9')][_0xa2292b('0xf11')]),_0x572c68['inbound']['sumHoldTime']+=_0x156524()(_0x56a55b[_0xa2292b('0x2314')])[_0xa2292b('0x22c6')](_0x156524()(_0x56a55b[_0xa2292b('0xda8')]),_0x572c68['config'][_0xa2292b('0xf11')]),_0x572c68['inbound'][_0xa2292b('0x163a')]+=0x1,!_0x518f2c&&_0x572c68[_0xa2292b('0x1755')][_0xa2292b('0x157c')]&&(_0x572c68['inbound'][_0xa2292b('0x157c')]-=0x1));}_0x518f2c&&(_0x572c68['inbound']['total']+=0x1);}function _0x5e6af0(){const _0x21277f=_0x4701a4;_0x572c68[_0x21277f('0x1755')][_0x21277f('0x18d2')]=Math['round']((_0x572c68[_0x21277f('0x1755')]['abandoned']+_0x572c68[_0x21277f('0x1755')]['unmanaged'])/(_0x572c68[_0x21277f('0x1755')][_0x21277f('0xa1f')]-_0x572c68[_0x21277f('0x1755')][_0x21277f('0x157c')]-_0x572c68[_0x21277f('0x1755')][_0x21277f('0x1b68')])*0x64,-0x2),_0x572c68['inbound']['answerRate']=Math['round'](_0x572c68['inbound'][_0x21277f('0x163a')]/(_0x572c68[_0x21277f('0x1755')][_0x21277f('0xa1f')]-_0x572c68[_0x21277f('0x1755')][_0x21277f('0x157c')]-_0x572c68[_0x21277f('0x1755')][_0x21277f('0x1b68')])*0x64,-0x2),_0x572c68['inbound'][_0x21277f('0x35c')]=_0x156524()[_0x21277f('0xa5d')](Math[_0x21277f('0x793')](_0x572c68[_0x21277f('0x1755')][_0x21277f('0x1c39')]/_0x572c68[_0x21277f('0x1755')][_0x21277f('0x163a')]),_0x572c68[_0x21277f('0xea9')][_0x21277f('0xf11')])[_0x21277f('0xddc')](_0x572c68[_0x21277f('0xea9')]['format'],_0x572c68[_0x21277f('0xea9')]),_0x572c68[_0x21277f('0x1755')][_0x21277f('0x223a')]=_0x156524()[_0x21277f('0xa5d')](Math[_0x21277f('0x793')](_0x572c68[_0x21277f('0x1755')][_0x21277f('0x191d')]/_0x572c68['inbound'][_0x21277f('0x163a')]),_0x572c68[_0x21277f('0xea9')][_0x21277f('0xf11')])[_0x21277f('0xddc')](_0x572c68['config'][_0x21277f('0xddc')],_0x572c68['config']);}function _0x58a6a2(){const _0x5e18f0=_0x4701a4;if(Object[_0x5e18f0('0x1d3e')](_0x572c68[_0x5e18f0('0x4e3')])[_0x5e18f0('0x543')]>0x0)for(let _0x246810=0x0;_0x246810<_0x163e3e[_0x5e18f0('0x6aa')][_0x5e18f0('0x543')];_0x246810+=0x1){if(_0x342305(_0x163e3e[_0x5e18f0('0x6aa')][_0x246810])){const _0x1242c6=_0x163e3e[_0x5e18f0('0x6aa')][_0x246810];_0x15fe26(_0x1242c6,!![]),_0x5e6af0();}}}function _0x342305(_0x3b598a){const _0x2ff457=_0x4701a4;if(_0x3c8d8a()['some'](_0x572c68[_0x2ff457('0x4e3')],{'id':_0x3c8d8a()[_0x2ff457('0x1acd')](_0x3b598a[_0x2ff457('0x1796')])}))return!![];return![];}function _0x2e7c6a(_0x112b21){const _0x9a386=_0x4701a4,_0x58b28e=_0x156524()()[_0x9a386('0xaf5')](0x0,!![])[_0x9a386('0x2145')](_0x9a386('0x48d')),_0x3ff64d=_0x156524()()[_0x9a386('0xaf5')](0x0,!![])[_0x9a386('0x733')](_0x9a386('0x48d'));return _0x156524()(_0x112b21)[_0x9a386('0xaf5')](0x0,!![])[_0x9a386('0xc1b')](_0x58b28e,_0x3ff64d);}function _0x4386cc(_0x2d8257){_0x342305(_0x2d8257)&&_0x2e7c6a(_0x2d8257['createdAt'])&&(_0x15fe26(_0x2d8257,!![]),_0x5e6af0());}function _0x226c31(_0x354dbb){const _0x1ec324=_0x4701a4;_0x342305(_0x354dbb)&&_0x2e7c6a(_0x354dbb[_0x1ec324('0xda8')])&&(_0x15fe26(_0x354dbb,![]),_0x5e6af0());}_0x2b31cc[_0x4701a4('0xbf6')](_0x4701a4('0x16d2'),function(){const _0x4d0f83=_0x4701a4;_0x231f99['removeAllListeners'](_0x4d0f83('0x1ae8')),_0x231f99[_0x4d0f83('0x251c')]('chatInteraction:update');});}const _0x1ad50c=_0xdff92c;_0x5b9f6e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1b13'),'socket',_0x566993('0x78f'),'rpcQueues',_0x566993('0xbf5'),_0x566993('0x14cf'),_0x566993('0x1c7e')];function _0x5b9f6e(_0x45776f,_0x563b63,_0x142452,_0x96c071,_0x490959,_0x408596,_0x22c6f7,_0x22e7d0){const _0x31a5b6=_0x566993,_0x599a61=this;_0x599a61[_0x31a5b6('0x78f')]=_0x96c071?_0x3c8d8a()[_0x31a5b6('0x128')](_0x96c071[_0x31a5b6('0x6aa')]?_0x96c071['rows']:[],'id'):{},_0x599a61[_0x31a5b6('0x2156')]=_0x490959?_0x3c8d8a()['keyBy'](_0x490959['rows']?_0x490959[_0x31a5b6('0x6aa')]:[],'id'):{},_0x599a61[_0x31a5b6('0x1c7e')]=_0x22e7d0?_0x3c8d8a()['keyBy'](_0x22e7d0[_0x31a5b6('0x6aa')]?_0x22e7d0[_0x31a5b6('0x6aa')]:[],'id'):{},_0x599a61['ivr']={'originated':0x0,'limitCalls':0x0},_0x599a61['inbound']={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x31a5b6('0x4fa'),'avgTalkTime':_0x31a5b6('0x4fa'),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x599a61['onSaveQueue']=_0x115ab2,_0x599a61[_0x31a5b6('0x1db6')]=_0x4a5a92,_0x142452[_0x31a5b6('0x165f')]('voice_queue:save',_0x599a61[_0x31a5b6('0xbb1')]),_0x599a61[_0x31a5b6('0x55a')]=_0x563b63(function(){_0xd16529(),_0x1e33c3();},0x3e7),_0x142452[_0x31a5b6('0x165f')](_0x31a5b6('0x255f'),_0x599a61[_0x31a5b6('0x1db6')]),_0xd16529(),_0x1e33c3();function _0xd16529(){const _0x1fdd6b=_0x31a5b6;_0x408596({'queues':_0x599a61[_0x1fdd6b('0x78f')],'rpcQueues':_0x599a61['rpcQueues']})['then'](function(_0x595e3d){const _0x26680c=_0x1fdd6b;_0x599a61[_0x26680c('0x1755')]=_0x595e3d;});}function _0x1e33c3(){const _0x7b59c5=_0x31a5b6;_0x22c6f7({'rpcCampaigns':_0x599a61[_0x7b59c5('0x1c7e')]})['then'](function(_0x1018be){const _0x5711fb=_0x7b59c5;_0x599a61[_0x5711fb('0x334')]=_0x1018be;});}function _0x115ab2(_0x2196f2){const _0x8471b4=_0x31a5b6;_0x599a61['outboundQueues'][_0x2196f2['id']]&&(_0x599a61[_0x8471b4('0x2156')][_0x2196f2['id']]&&(_0x599a61[_0x8471b4('0x2156')][_0x2196f2['id']]=_0x2196f2));}function _0x4a5a92(_0x19f082){const _0x546121=_0x31a5b6;_0x599a61['rpcCampaigns'][_0x19f082['id']]&&(_0x599a61[_0x546121('0x1c7e')][_0x19f082['id']]=_0x19f082);}_0x45776f[_0x31a5b6('0xbf6')](_0x31a5b6('0x16d2'),function(){const _0x5e4a96=_0x31a5b6;_0x142452['removeAllListeners'](_0x5e4a96('0x1414')),_0x142452['removeAllListeners'](_0x5e4a96('0x255f')),_0x599a61[_0x5e4a96('0x55a')]&&_0x563b63[_0x5e4a96('0x1e1f')](_0x599a61['interval']);});}const _0x9516fc=_0x5b9f6e;_0x53d0d5['$inject']=[_0x566993('0x66f'),_0x566993('0x2fc'),_0x566993('0x1c6b'),_0x566993('0x17f2')];function _0x53d0d5(_0xb86511,_0x56f339,_0x11a8bd,_0x2f4d88){const _0x18404d=_0x566993,_0x2f3264=this,_0xce5ac3=[];_0x2f3264[_0x18404d('0xea9')]={'format':_0x18404d('0x14e2'),'unit':'seconds','trim':![]},_0x2f3264[_0x18404d('0x1755')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x18404d('0x4fa'),'avgTalkTime':_0x18404d('0x4fa'),'answerRate':0x0,'abandonRate':0x0},_0x2f3264[_0x18404d('0x17f2')]=_0x2f4d88?_0x3c8d8a()[_0x18404d('0x128')](_0x2f4d88[_0x18404d('0x6aa')]?_0x2f4d88['rows']:[],'id'):{},_0x2f3264[_0x18404d('0xebd')]=_0x8918e2,_0x2f3264[_0x18404d('0x340')]=_0x5f4f02,_0x56f339['on'](_0x18404d('0x5a6'),_0x2f3264[_0x18404d('0xebd')]),_0x56f339['on'](_0x18404d('0x52'),_0x2f3264[_0x18404d('0x340')]),_0x581a2a();function _0xd85c3c(_0x5ec6aa,_0x1fad64){const _0x4b5ef3=_0x18404d;!_0x5ec6aa[_0x4b5ef3('0x1636')]&&!_0x5ec6aa['UserId']&&_0x1fad64&&(_0x2f3264[_0x4b5ef3('0x1755')][_0x4b5ef3('0x1b68')]+=0x1),!_0x5ec6aa[_0x4b5ef3('0x1636')]&&_0x5ec6aa[_0x4b5ef3('0x181c')]&&!_0x3c8d8a()[_0x4b5ef3('0x2814')](_0xce5ac3,_0x5ec6aa['id'])&&(_0x2f3264['inbound'][_0x4b5ef3('0x157c')]+=0x1,_0xce5ac3[_0x4b5ef3('0x18bb')](_0x5ec6aa['id']),!_0x1fad64&&_0x2f3264[_0x4b5ef3('0x1755')][_0x4b5ef3('0x1b68')]&&(_0x2f3264['inbound'][_0x4b5ef3('0x1b68')]-=0x1)),_0x5ec6aa[_0x4b5ef3('0x1636')]&&_0x5ec6aa[_0x4b5ef3('0x181c')]&&(_0x2f3264[_0x4b5ef3('0x1755')][_0x4b5ef3('0x191d')]+=_0x156524()(_0x5ec6aa[_0x4b5ef3('0x1eb5')])['diff'](_0x156524()(_0x5ec6aa[_0x4b5ef3('0x2314')]),_0x2f3264[_0x4b5ef3('0xea9')][_0x4b5ef3('0xf11')]),_0x2f3264[_0x4b5ef3('0x1755')]['sumHoldTime']+=_0x156524()(_0x5ec6aa[_0x4b5ef3('0x2314')])['diff'](_0x156524()(_0x5ec6aa[_0x4b5ef3('0xda8')]),_0x2f3264[_0x4b5ef3('0xea9')][_0x4b5ef3('0xf11')]),_0x2f3264['inbound'][_0x4b5ef3('0x163a')]+=0x1,!_0x1fad64&&_0x2f3264[_0x4b5ef3('0x1755')]['talking']&&(_0x2f3264['inbound'][_0x4b5ef3('0x157c')]-=0x1)),_0x5ec6aa['closed']&&!_0x5ec6aa['UserId']&&(_0x2f3264[_0x4b5ef3('0x1755')][_0x4b5ef3('0x50c')]+=0x1,!_0x1fad64&&_0x2f3264[_0x4b5ef3('0x1755')][_0x4b5ef3('0x1b68')]&&(_0x2f3264[_0x4b5ef3('0x1755')][_0x4b5ef3('0x1b68')]-=0x1)),_0x1fad64&&(_0x2f3264[_0x4b5ef3('0x1755')][_0x4b5ef3('0xa1f')]+=0x1);}function _0x1f61a2(){const _0x3c599e=_0x18404d;_0x2f3264['inbound'][_0x3c599e('0x18d2')]=Math[_0x3c599e('0x793')]((_0x2f3264['inbound'][_0x3c599e('0x3b9')]+_0x2f3264[_0x3c599e('0x1755')][_0x3c599e('0x50c')])/(_0x2f3264['inbound']['total']-_0x2f3264['inbound'][_0x3c599e('0x157c')]-_0x2f3264[_0x3c599e('0x1755')][_0x3c599e('0x1b68')])*0x64,-0x2),_0x2f3264[_0x3c599e('0x1755')][_0x3c599e('0x14fb')]=Math[_0x3c599e('0x793')](_0x2f3264[_0x3c599e('0x1755')][_0x3c599e('0x163a')]/(_0x2f3264[_0x3c599e('0x1755')]['total']-_0x2f3264[_0x3c599e('0x1755')][_0x3c599e('0x157c')]-_0x2f3264[_0x3c599e('0x1755')][_0x3c599e('0x1b68')])*0x64,-0x2),_0x2f3264['inbound'][_0x3c599e('0x35c')]=_0x156524()['duration'](Math['round'](_0x2f3264[_0x3c599e('0x1755')][_0x3c599e('0x1c39')]/_0x2f3264[_0x3c599e('0x1755')]['answered']),_0x2f3264[_0x3c599e('0xea9')][_0x3c599e('0xf11')])[_0x3c599e('0xddc')](_0x2f3264['config'][_0x3c599e('0xddc')],_0x2f3264['config']),_0x2f3264['inbound'][_0x3c599e('0x223a')]=_0x156524()[_0x3c599e('0xa5d')](Math['round'](_0x2f3264['inbound']['sumBillable']/_0x2f3264[_0x3c599e('0x1755')][_0x3c599e('0x163a')]),_0x2f3264[_0x3c599e('0xea9')][_0x3c599e('0xf11')])[_0x3c599e('0xddc')](_0x2f3264[_0x3c599e('0xea9')][_0x3c599e('0xddc')],_0x2f3264[_0x3c599e('0xea9')]);}function _0x581a2a(){const _0x18ed9c=_0x18404d;if(Object[_0x18ed9c('0x1d3e')](_0x2f3264['faxAccounts'])[_0x18ed9c('0x543')]>0x0)for(let _0x2b016e=0x0;_0x2b016e<_0x11a8bd[_0x18ed9c('0x6aa')]['length'];_0x2b016e+=0x1){if(_0x2ccee5(_0x11a8bd[_0x18ed9c('0x6aa')][_0x2b016e])){const _0x56744c=_0x11a8bd[_0x18ed9c('0x6aa')][_0x2b016e];_0xd85c3c(_0x56744c,!![]),_0x1f61a2();}}}function _0x2ccee5(_0x24da0d){const _0xe525d0=_0x18404d;if(_0x3c8d8a()[_0xe525d0('0x1ec')](_0x2f3264['faxAccounts'],{'id':_0x3c8d8a()[_0xe525d0('0x1acd')](_0x24da0d[_0xe525d0('0xcba')])}))return!![];return![];}function _0x34c46a(_0x5b3cba){const _0x53b93c=_0x18404d,_0x115d1a=_0x156524()()[_0x53b93c('0xaf5')](0x0,!![])[_0x53b93c('0x2145')]('day'),_0x48ce95=_0x156524()()['utcOffset'](0x0,!![])[_0x53b93c('0x733')](_0x53b93c('0x48d'));return _0x156524()(_0x5b3cba)[_0x53b93c('0xaf5')](0x0,!![])['isBetween'](_0x115d1a,_0x48ce95);}function _0x8918e2(_0x1c98c9){const _0x4d352a=_0x18404d;_0x2ccee5(_0x1c98c9)&&_0x34c46a(_0x1c98c9[_0x4d352a('0xda8')])&&(_0xd85c3c(_0x1c98c9,!![]),_0x1f61a2());}function _0x5f4f02(_0x437cd9){const _0x2c2367=_0x18404d;_0x2ccee5(_0x437cd9)&&_0x34c46a(_0x437cd9[_0x2c2367('0xda8')])&&(_0xd85c3c(_0x437cd9,![]),_0x1f61a2());}_0xb86511[_0x18404d('0xbf6')](_0x18404d('0x16d2'),function(){const _0x4f5e3a=_0x18404d;_0x56f339[_0x4f5e3a('0x251c')](_0x4f5e3a('0x5a6')),_0x56f339[_0x4f5e3a('0x251c')](_0x4f5e3a('0x52'));});}const _0x1b6bad=_0x53d0d5;_0x1ac528[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2fc'),_0x566993('0x1d7b'),_0x566993('0x2632')];function _0x1ac528(_0x554f8c,_0x17eb37,_0x2ccb53,_0x342166){const _0x3a8dc8=_0x566993,_0x60ee98=this,_0x628475=[];_0x60ee98[_0x3a8dc8('0xea9')]={'format':_0x3a8dc8('0x14e2'),'unit':_0x3a8dc8('0x1adf'),'trim':![]},_0x60ee98[_0x3a8dc8('0x1755')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x3a8dc8('0x4fa'),'avgTalkTime':_0x3a8dc8('0x4fa'),'answerRate':0x0,'abandonRate':0x0},_0x60ee98[_0x3a8dc8('0x2632')]=_0x342166?_0x3c8d8a()[_0x3a8dc8('0x128')](_0x342166[_0x3a8dc8('0x6aa')]?_0x342166[_0x3a8dc8('0x6aa')]:[],'id'):{},_0x60ee98['onSaveMailInteraction']=_0x6c3bbd,_0x60ee98['onUpdateMailInteraction']=_0x596d35,_0x17eb37['on'](_0x3a8dc8('0x130b'),_0x60ee98[_0x3a8dc8('0x203')]),_0x17eb37['on'](_0x3a8dc8('0x528'),_0x60ee98[_0x3a8dc8('0x1fb9')]),_0xa68545();function _0x19d37c(_0x2ec682,_0x246e19){const _0x1f0517=_0x3a8dc8;!_0x2ec682[_0x1f0517('0x1636')]&&!_0x2ec682[_0x1f0517('0x181c')]&&_0x246e19&&(_0x60ee98[_0x1f0517('0x1755')]['waiting']+=0x1),!_0x2ec682[_0x1f0517('0x1636')]&&_0x2ec682['UserId']&&!_0x3c8d8a()['includes'](_0x628475,_0x2ec682['id'])&&(_0x60ee98['inbound'][_0x1f0517('0x157c')]+=0x1,_0x628475['push'](_0x2ec682['id']),!_0x246e19&&_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0x1b68')]&&(_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0x1b68')]-=0x1)),_0x2ec682[_0x1f0517('0x1636')]&&_0x2ec682[_0x1f0517('0x181c')]&&(_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0x191d')]+=_0x156524()(_0x2ec682[_0x1f0517('0x1eb5')])[_0x1f0517('0x22c6')](_0x156524()(_0x2ec682[_0x1f0517('0x2314')]),_0x60ee98['config'][_0x1f0517('0xf11')]),_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0x1c39')]+=_0x156524()(_0x2ec682[_0x1f0517('0x2314')])[_0x1f0517('0x22c6')](_0x156524()(_0x2ec682[_0x1f0517('0xda8')]),_0x60ee98['config'][_0x1f0517('0xf11')]),_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0x163a')]+=0x1,!_0x246e19&&_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0x157c')]&&(_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0x157c')]-=0x1)),_0x2ec682[_0x1f0517('0x1636')]&&!_0x2ec682['UserId']&&(_0x60ee98[_0x1f0517('0x1755')]['unmanaged']+=0x1,!_0x246e19&&_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0x1b68')]&&(_0x60ee98['inbound']['waiting']-=0x1)),_0x246e19&&(_0x60ee98[_0x1f0517('0x1755')][_0x1f0517('0xa1f')]+=0x1);}function _0x53fd5d(){const _0x292eb8=_0x3a8dc8;_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0x18d2')]=Math['round']((_0x60ee98['inbound'][_0x292eb8('0x3b9')]+_0x60ee98['inbound'][_0x292eb8('0x50c')])/(_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0xa1f')]-_0x60ee98[_0x292eb8('0x1755')]['talking']-_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0x1b68')])*0x64,-0x2),_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0x14fb')]=Math[_0x292eb8('0x793')](_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0x163a')]/(_0x60ee98['inbound'][_0x292eb8('0xa1f')]-_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0x157c')]-_0x60ee98['inbound'][_0x292eb8('0x1b68')])*0x64,-0x2),_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0x35c')]=_0x156524()[_0x292eb8('0xa5d')](Math[_0x292eb8('0x793')](_0x60ee98['inbound'][_0x292eb8('0x1c39')]/_0x60ee98['inbound'][_0x292eb8('0x163a')]),_0x60ee98['config'][_0x292eb8('0xf11')])[_0x292eb8('0xddc')](_0x60ee98[_0x292eb8('0xea9')][_0x292eb8('0xddc')],_0x60ee98[_0x292eb8('0xea9')]),_0x60ee98['inbound']['avgTalkTime']=_0x156524()[_0x292eb8('0xa5d')](Math['round'](_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0x191d')]/_0x60ee98[_0x292eb8('0x1755')][_0x292eb8('0x163a')]),_0x60ee98['config'][_0x292eb8('0xf11')])[_0x292eb8('0xddc')](_0x60ee98[_0x292eb8('0xea9')][_0x292eb8('0xddc')],_0x60ee98[_0x292eb8('0xea9')]);}function _0xa68545(){const _0x5df5c8=_0x3a8dc8;if(Object[_0x5df5c8('0x1d3e')](_0x60ee98[_0x5df5c8('0x2632')])[_0x5df5c8('0x543')]>0x0)for(let _0x26fc81=0x0;_0x26fc81<_0x2ccb53[_0x5df5c8('0x6aa')][_0x5df5c8('0x543')];_0x26fc81+=0x1){if(_0x2c2339(_0x2ccb53[_0x5df5c8('0x6aa')][_0x26fc81])){const _0x2d1905=_0x2ccb53[_0x5df5c8('0x6aa')][_0x26fc81];_0x19d37c(_0x2d1905,!![]),_0x53fd5d();}}}function _0x2c2339(_0x51123b){const _0x50a49a=_0x3a8dc8;if(_0x3c8d8a()['some'](_0x60ee98[_0x50a49a('0x2632')],{'id':_0x3c8d8a()['toNumber'](_0x51123b[_0x50a49a('0x559')])}))return!![];return![];}function _0x533a7f(_0x27a2d3){const _0x660bcb=_0x3a8dc8,_0xcf7ef4=_0x156524()()[_0x660bcb('0xaf5')](0x0,!![])[_0x660bcb('0x2145')](_0x660bcb('0x48d')),_0x475c55=_0x156524()()['utcOffset'](0x0,!![])['endOf'](_0x660bcb('0x48d'));return _0x156524()(_0x27a2d3)['utcOffset'](0x0,!![])[_0x660bcb('0xc1b')](_0xcf7ef4,_0x475c55);}function _0x6c3bbd(_0x3953eb){const _0x13e844=_0x3a8dc8;_0x2c2339(_0x3953eb)&&_0x533a7f(_0x3953eb[_0x13e844('0xda8')])&&(_0x19d37c(_0x3953eb,!![]),_0x53fd5d());}function _0x596d35(_0x1a1c45){const _0x12a3c9=_0x3a8dc8;_0x2c2339(_0x1a1c45)&&_0x533a7f(_0x1a1c45[_0x12a3c9('0xda8')])&&(_0x19d37c(_0x1a1c45,![]),_0x53fd5d());}_0x554f8c[_0x3a8dc8('0xbf6')]('$destroy',function(){const _0x14a136=_0x3a8dc8;_0x17eb37[_0x14a136('0x251c')](_0x14a136('0x130b')),_0x17eb37[_0x14a136('0x251c')](_0x14a136('0x528'));});}const _0x90fda9=_0x1ac528;_0x2e3afc[_0x566993('0x17bb')]=['$scope',_0x566993('0x2fc'),_0x566993('0x6a2'),_0x566993('0x1a65')];function _0x2e3afc(_0x495df2,_0x3e2fa4,_0xdc2c5f,_0x4b4b19){const _0x1600f9=_0x566993,_0x397113=this,_0x124be1=[];_0x397113[_0x1600f9('0xea9')]={'format':_0x1600f9('0x14e2'),'unit':_0x1600f9('0x1adf'),'trim':![]},_0x397113[_0x1600f9('0x1755')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x1600f9('0x4fa'),'answerRate':0x0,'abandonRate':0x0},_0x397113[_0x1600f9('0x1a65')]=_0x4b4b19?_0x3c8d8a()['keyBy'](_0x4b4b19[_0x1600f9('0x6aa')]?_0x4b4b19[_0x1600f9('0x6aa')]:[],'id'):{},_0x397113[_0x1600f9('0x1ab9')]=_0x3276e8,_0x397113[_0x1600f9('0x1cf2')]=_0x53312c,_0x3e2fa4['on']('openchannelInteraction:save',_0x397113['onSaveOpenchannelInteraction']),_0x3e2fa4['on'](_0x1600f9('0x1432'),_0x397113[_0x1600f9('0x1cf2')]),_0x2f8422();function _0x505c6b(_0x223b17,_0x2308b3){const _0x53ccad=_0x1600f9;!_0x223b17[_0x53ccad('0x1636')]&&!_0x223b17[_0x53ccad('0x181c')]&&_0x2308b3&&(_0x397113[_0x53ccad('0x1755')][_0x53ccad('0x1b68')]+=0x1),!_0x223b17['closed']&&_0x223b17[_0x53ccad('0x181c')]&&!_0x3c8d8a()[_0x53ccad('0x2814')](_0x124be1,_0x223b17['id'])&&(_0x397113[_0x53ccad('0x1755')][_0x53ccad('0x157c')]+=0x1,_0x124be1[_0x53ccad('0x18bb')](_0x223b17['id']),!_0x2308b3&&_0x397113[_0x53ccad('0x1755')]['waiting']&&(_0x397113['inbound'][_0x53ccad('0x1b68')]-=0x1)),_0x223b17[_0x53ccad('0x1636')]&&_0x223b17['UserId']&&(_0x397113[_0x53ccad('0x1755')][_0x53ccad('0x191d')]+=_0x156524()(_0x223b17[_0x53ccad('0x1eb5')])[_0x53ccad('0x22c6')](_0x156524()(_0x223b17[_0x53ccad('0x2314')]),_0x397113[_0x53ccad('0xea9')][_0x53ccad('0xf11')]),_0x397113[_0x53ccad('0x1755')][_0x53ccad('0x1c39')]+=_0x156524()(_0x223b17[_0x53ccad('0x2314')])[_0x53ccad('0x22c6')](_0x156524()(_0x223b17[_0x53ccad('0xda8')]),_0x397113[_0x53ccad('0xea9')][_0x53ccad('0xf11')]),_0x397113[_0x53ccad('0x1755')]['answered']+=0x1,!_0x2308b3&&_0x397113[_0x53ccad('0x1755')][_0x53ccad('0x157c')]&&(_0x397113['inbound'][_0x53ccad('0x157c')]-=0x1)),_0x223b17[_0x53ccad('0x1636')]&&!_0x223b17[_0x53ccad('0x181c')]&&(_0x397113[_0x53ccad('0x1755')][_0x53ccad('0x50c')]+=0x1,!_0x2308b3&&_0x397113[_0x53ccad('0x1755')]['waiting']&&(_0x397113[_0x53ccad('0x1755')]['waiting']-=0x1)),_0x2308b3&&(_0x397113[_0x53ccad('0x1755')]['total']+=0x1);}function _0x146261(){const _0x1ae92a=_0x1600f9;_0x397113[_0x1ae92a('0x1755')]['abandonRate']=Math['round']((_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0x3b9')]+_0x397113[_0x1ae92a('0x1755')]['unmanaged'])/(_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0xa1f')]-_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0x157c')]-_0x397113[_0x1ae92a('0x1755')]['waiting'])*0x64,-0x2),_0x397113[_0x1ae92a('0x1755')]['answerRate']=Math[_0x1ae92a('0x793')](_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0x163a')]/(_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0xa1f')]-_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0x157c')]-_0x397113[_0x1ae92a('0x1755')]['waiting'])*0x64,-0x2),_0x397113['inbound'][_0x1ae92a('0x35c')]=_0x156524()['duration'](Math[_0x1ae92a('0x793')](_0x397113[_0x1ae92a('0x1755')]['sumHoldTime']/_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0x163a')]),_0x397113[_0x1ae92a('0xea9')][_0x1ae92a('0xf11')])[_0x1ae92a('0xddc')](_0x397113[_0x1ae92a('0xea9')][_0x1ae92a('0xddc')],_0x397113[_0x1ae92a('0xea9')]),_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0x223a')]=_0x156524()[_0x1ae92a('0xa5d')](Math[_0x1ae92a('0x793')](_0x397113[_0x1ae92a('0x1755')][_0x1ae92a('0x191d')]/_0x397113['inbound']['answered']),_0x397113[_0x1ae92a('0xea9')][_0x1ae92a('0xf11')])['format'](_0x397113[_0x1ae92a('0xea9')][_0x1ae92a('0xddc')],_0x397113[_0x1ae92a('0xea9')]);}function _0x2f8422(){const _0xb0e1f6=_0x1600f9;if(Object[_0xb0e1f6('0x1d3e')](_0x397113[_0xb0e1f6('0x1a65')])['length']>0x0)for(let _0x269b8a=0x0;_0x269b8a<_0xdc2c5f[_0xb0e1f6('0x6aa')][_0xb0e1f6('0x543')];_0x269b8a+=0x1){if(_0x54b4af(_0xdc2c5f['rows'][_0x269b8a])){const _0x32cc71=_0xdc2c5f[_0xb0e1f6('0x6aa')][_0x269b8a];_0x505c6b(_0x32cc71,!![]),_0x146261();}}}function _0x54b4af(_0x470f47){const _0x5bc2ba=_0x1600f9;if(_0x3c8d8a()[_0x5bc2ba('0x1ec')](_0x397113['openchannelAccounts'],{'id':_0x3c8d8a()[_0x5bc2ba('0x1acd')](_0x470f47[_0x5bc2ba('0xf5a')])}))return!![];return![];}function _0x540cd4(_0x3acdaf){const _0x580d8c=_0x1600f9,_0x296d05=_0x156524()()[_0x580d8c('0xaf5')](0x0,!![])[_0x580d8c('0x2145')]('day'),_0x5c51e9=_0x156524()()[_0x580d8c('0xaf5')](0x0,!![])[_0x580d8c('0x733')](_0x580d8c('0x48d'));return _0x156524()(_0x3acdaf)[_0x580d8c('0xaf5')](0x0,!![])[_0x580d8c('0xc1b')](_0x296d05,_0x5c51e9);}function _0x3276e8(_0x11d411){_0x54b4af(_0x11d411)&&_0x540cd4(_0x11d411['createdAt'])&&(_0x505c6b(_0x11d411,!![]),_0x146261());}function _0x53312c(_0x1ac2b1){const _0xc89e2b=_0x1600f9;_0x54b4af(_0x1ac2b1)&&_0x540cd4(_0x1ac2b1[_0xc89e2b('0xda8')])&&(_0x505c6b(_0x1ac2b1,![]),_0x146261());}_0x495df2['$on'](_0x1600f9('0x16d2'),function(){const _0x42a2b8=_0x1600f9;_0x3e2fa4['removeAllListeners'](_0x42a2b8('0x1c64')),_0x3e2fa4[_0x42a2b8('0x251c')](_0x42a2b8('0x1432'));});}const _0x221efd=_0x2e3afc;_0x4e398a[_0x566993('0x17bb')]=[_0x566993('0x66f'),'socket','smsInteractions',_0x566993('0x130a')];function _0x4e398a(_0x182d8d,_0x39eab4,_0x190040,_0x1c00d0){const _0x2fa024=_0x566993,_0x29177f=this,_0x2a6eb7=[];_0x29177f['config']={'format':'hh:mm:ss','unit':_0x2fa024('0x1adf'),'trim':![]},_0x29177f['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x2fa024('0x4fa'),'avgTalkTime':_0x2fa024('0x4fa'),'answerRate':0x0,'abandonRate':0x0},_0x29177f[_0x2fa024('0x130a')]=_0x1c00d0?_0x3c8d8a()[_0x2fa024('0x128')](_0x1c00d0[_0x2fa024('0x6aa')]?_0x1c00d0[_0x2fa024('0x6aa')]:[],'id'):{},_0x29177f['onSaveSmsInteraction']=_0x37a96b,_0x29177f['onUpdateSmsInteraction']=_0x46bebb,_0x39eab4['on'](_0x2fa024('0x2660'),_0x29177f[_0x2fa024('0x41d')]),_0x39eab4['on'](_0x2fa024('0x63f'),_0x29177f[_0x2fa024('0x1c0')]),_0x57d79d();function _0x4cac2e(_0x454565,_0x499875){const _0x37df75=_0x2fa024;!_0x454565[_0x37df75('0x1636')]&&!_0x454565[_0x37df75('0x181c')]&&_0x499875&&(_0x29177f[_0x37df75('0x1755')][_0x37df75('0x1b68')]+=0x1),!_0x454565[_0x37df75('0x1636')]&&_0x454565['UserId']&&!_0x3c8d8a()['includes'](_0x2a6eb7,_0x454565['id'])&&(_0x29177f[_0x37df75('0x1755')][_0x37df75('0x157c')]+=0x1,_0x2a6eb7['push'](_0x454565['id']),!_0x499875&&_0x29177f['inbound'][_0x37df75('0x1b68')]&&(_0x29177f[_0x37df75('0x1755')][_0x37df75('0x1b68')]-=0x1)),_0x454565['closed']&&_0x454565[_0x37df75('0x181c')]&&(_0x29177f[_0x37df75('0x1755')][_0x37df75('0x191d')]+=_0x156524()(_0x454565[_0x37df75('0x1eb5')])['diff'](_0x156524()(_0x454565['read1stAt']),_0x29177f[_0x37df75('0xea9')][_0x37df75('0xf11')]),_0x29177f[_0x37df75('0x1755')][_0x37df75('0x1c39')]+=_0x156524()(_0x454565[_0x37df75('0x2314')])['diff'](_0x156524()(_0x454565[_0x37df75('0xda8')]),_0x29177f[_0x37df75('0xea9')][_0x37df75('0xf11')]),_0x29177f[_0x37df75('0x1755')][_0x37df75('0x163a')]+=0x1,!_0x499875&&_0x29177f[_0x37df75('0x1755')]['talking']&&(_0x29177f[_0x37df75('0x1755')][_0x37df75('0x157c')]-=0x1)),_0x454565['closed']&&!_0x454565[_0x37df75('0x181c')]&&(_0x29177f['inbound'][_0x37df75('0x50c')]+=0x1,!_0x499875&&_0x29177f['inbound'][_0x37df75('0x1b68')]&&(_0x29177f[_0x37df75('0x1755')][_0x37df75('0x1b68')]-=0x1)),_0x499875&&(_0x29177f[_0x37df75('0x1755')]['total']+=0x1);}function _0x1e4d88(){const _0x576d8e=_0x2fa024;_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x18d2')]=Math[_0x576d8e('0x793')]((_0x29177f[_0x576d8e('0x1755')]['abandoned']+_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x50c')])/(_0x29177f['inbound']['total']-_0x29177f['inbound']['talking']-_0x29177f['inbound'][_0x576d8e('0x1b68')])*0x64,-0x2),_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x14fb')]=Math[_0x576d8e('0x793')](_0x29177f['inbound'][_0x576d8e('0x163a')]/(_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0xa1f')]-_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x157c')]-_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x1b68')])*0x64,-0x2),_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x35c')]=_0x156524()['duration'](Math[_0x576d8e('0x793')](_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x1c39')]/_0x29177f['inbound'][_0x576d8e('0x163a')]),_0x29177f[_0x576d8e('0xea9')][_0x576d8e('0xf11')])[_0x576d8e('0xddc')](_0x29177f[_0x576d8e('0xea9')][_0x576d8e('0xddc')],_0x29177f[_0x576d8e('0xea9')]),_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x223a')]=_0x156524()[_0x576d8e('0xa5d')](Math[_0x576d8e('0x793')](_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x191d')]/_0x29177f[_0x576d8e('0x1755')][_0x576d8e('0x163a')]),_0x29177f[_0x576d8e('0xea9')][_0x576d8e('0xf11')])['format'](_0x29177f[_0x576d8e('0xea9')][_0x576d8e('0xddc')],_0x29177f['config']);}function _0x57d79d(){const _0x5b940d=_0x2fa024;if(Object['keys'](_0x29177f[_0x5b940d('0x130a')])['length']>0x0)for(let _0x5f0e5e=0x0;_0x5f0e5e<_0x190040[_0x5b940d('0x6aa')]['length'];_0x5f0e5e+=0x1){if(_0x176509(_0x190040[_0x5b940d('0x6aa')][_0x5f0e5e])){const _0x564e5f=_0x190040[_0x5b940d('0x6aa')][_0x5f0e5e];_0x4cac2e(_0x564e5f,!![]),_0x1e4d88();}}}function _0x176509(_0x3b4c7a){const _0x5c8b42=_0x2fa024;if(_0x3c8d8a()['some'](_0x29177f[_0x5c8b42('0x130a')],{'id':_0x3c8d8a()['toNumber'](_0x3b4c7a[_0x5c8b42('0x23b1')])}))return!![];return![];}function _0x318b7b(_0x178c1d){const _0x103764=_0x2fa024,_0x121173=_0x156524()()[_0x103764('0xaf5')](0x0,!![])['startOf'](_0x103764('0x48d')),_0x3e46bb=_0x156524()()[_0x103764('0xaf5')](0x0,!![])['endOf']('day');return _0x156524()(_0x178c1d)['utcOffset'](0x0,!![])[_0x103764('0xc1b')](_0x121173,_0x3e46bb);}function _0x37a96b(_0x12a2c3){const _0x23c447=_0x2fa024;_0x176509(_0x12a2c3)&&_0x318b7b(_0x12a2c3[_0x23c447('0xda8')])&&(_0x4cac2e(_0x12a2c3,!![]),_0x1e4d88());}function _0x46bebb(_0x2c94ab){const _0x206280=_0x2fa024;_0x176509(_0x2c94ab)&&_0x318b7b(_0x2c94ab[_0x206280('0xda8')])&&(_0x4cac2e(_0x2c94ab,![]),_0x1e4d88());}_0x182d8d[_0x2fa024('0xbf6')]('$destroy',function(){const _0x340770=_0x2fa024;_0x39eab4[_0x340770('0x251c')](_0x340770('0x2660')),_0x39eab4[_0x340770('0x251c')](_0x340770('0x63f'));});}const _0x318cc1=_0x4e398a;_0x525e8b[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x1600'),_0x566993('0x1a29')],_0x3399fe[_0x566993('0x17bb')]=['$q'],_0x322745[_0x566993('0x17bb')]=['$q'];function _0x322745(_0x14156a){const _0x4ca853=[],_0xe1bd44=function(){const _0xada0d8=a0_0xde5e,_0x5e04ec=_0x4ca853[0x0],_0x1796cc={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0xada0d8('0x4fa'),'avgTalkTime':_0xada0d8('0x4fa'),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x3c8d8a()[_0xada0d8('0x33d')](_0x5e04ec['queues'],function(_0x21863e,_0x3642e2){const _0x3a9bcd=_0xada0d8;_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2]&&(_0x1796cc['waiting']+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2][_0x3a9bcd('0x1b68')]||0x0,_0x1796cc['talking']+=(_0x5e04ec['rpcQueues'][_0x3642e2][_0x3a9bcd('0x157c')]||0x0)+(_0x5e04ec['rpcQueues'][_0x3642e2][_0x3a9bcd('0x1e8d')]||0x0),_0x1796cc['answered']+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2]['answered']||0x0,_0x1796cc['abandoned']+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2]['abandoned']||0x0,_0x1796cc[_0x3a9bcd('0x1c39')]+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2]['sumHoldTime']||0x0,_0x1796cc['sumBillable']+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2][_0x3a9bcd('0x191d')]||0x0,_0x1796cc['total']+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2][_0x3a9bcd('0xa1f')]||0x0,_0x1796cc[_0x3a9bcd('0x203d')]+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2][_0x3a9bcd('0x203d')]||0x0,_0x1796cc['outboundDropCallsDayCallersExit']+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2][_0x3a9bcd('0x995')]||0x0,_0x1796cc[_0x3a9bcd('0x14e7')]+=_0x5e04ec[_0x3a9bcd('0x2156')][_0x3642e2]['outboundDropCallsDayTimeout']||0x0);});const _0xb66069=_0x1796cc[_0xada0d8('0xa1f')]-_0x1796cc[_0xada0d8('0x163a')]-_0x1796cc['abandoned'];_0x1796cc[_0xada0d8('0x50c')]=_0xb66069>0x0?_0xb66069:0x0,_0x1796cc['avgHoldTime']=Math[_0xada0d8('0x793')](_0x1796cc['total']>0x0?_0x1796cc[_0xada0d8('0x1c39')]/_0x1796cc[_0xada0d8('0xa1f')]:0x0),_0x1796cc[_0xada0d8('0x35c')]=new Date(_0x1796cc[_0xada0d8('0x35c')]*0x3e8)['toISOString']()[_0xada0d8('0x1b7d')](0xb,0x8),_0x1796cc['avgTalkTime']=Math[_0xada0d8('0x793')](_0x1796cc['answered']>0x0?_0x1796cc[_0xada0d8('0x191d')]/_0x1796cc['answered']:0x0),_0x1796cc[_0xada0d8('0x223a')]=new Date(_0x1796cc['avgTalkTime']*0x3e8)[_0xada0d8('0xad1')]()[_0xada0d8('0x1b7d')](0xb,0x8),_0x1796cc[_0xada0d8('0x14fb')]=Math['round']((_0x1796cc[_0xada0d8('0xa1f')]>0x0?_0x1796cc[_0xada0d8('0x163a')]/_0x1796cc[_0xada0d8('0xa1f')]*0x64:0x0)*Math[_0xada0d8('0x2480')](0xa,0x1))/Math[_0xada0d8('0x2480')](0xa,0x1),_0x1796cc[_0xada0d8('0x18d2')]=Math['round']((_0x1796cc[_0xada0d8('0xa1f')]>0x0?_0x1796cc['abandoned']/_0x1796cc[_0xada0d8('0xa1f')]*0x64:0x0)*Math[_0xada0d8('0x2480')](0xa,0x1))/Math[_0xada0d8('0x2480')](0xa,0x1),_0x1796cc[_0xada0d8('0x1d9d')]=Math['round']((_0x1796cc['total']>0x0?_0x1796cc['outboundDropCallsDayTimeout']/_0x1796cc['total']*0x64:0x0)*Math[_0xada0d8('0x2480')](0xa,0x1))/Math['pow'](0xa,0x1),_0x1796cc[_0xada0d8('0x19a5')]=Math['round']((_0x1796cc[_0xada0d8('0xa1f')]>0x0?_0x1796cc[_0xada0d8('0x995')]/_0x1796cc[_0xada0d8('0xa1f')]*0x64:0x0)*Math[_0xada0d8('0x2480')](0xa,0x1))/Math[_0xada0d8('0x2480')](0xa,0x1),_0x1796cc['outboundanswerRate']=0x64-_0x1796cc[_0xada0d8('0x1d9d')]-_0x1796cc[_0xada0d8('0x19a5')]>0x0&&(_0x1796cc[_0xada0d8('0xa1f')]||0x0>0x0)?0x64-_0x1796cc[_0xada0d8('0x1d9d')]-_0x1796cc[_0xada0d8('0x19a5')]:0x0,_0x4ca853[_0xada0d8('0xb7f')](),_0x5e04ec['defer']['resolve'](_0x1796cc),_0x4ca853[_0xada0d8('0x543')]>0x0&&_0xe1bd44();};return function(_0xde30e8){const _0x2a893e=a0_0xde5e,_0x4e4aaf=_0x14156a[_0x2a893e('0x112e')]();return _0x4ca853[_0x2a893e('0x18bb')]({'queues':_0xde30e8['queues'],'rpcQueues':_0xde30e8[_0x2a893e('0x2156')],'defer':_0x4e4aaf}),_0x4ca853[_0x2a893e('0x543')]===0x1&&_0xe1bd44(),_0x4e4aaf[_0x2a893e('0x2219')];};}function _0x3399fe(_0x2e9bf3){const _0x409820=[],_0x35ed87=function(){const _0x57131e=a0_0xde5e,_0x381455=_0x409820[0x0],_0x26d5b4={'originated':0x0,'limitCalls':0x0};_0x3c8d8a()[_0x57131e('0x33d')](_0x381455['rpcCampaigns'],function(_0x4ab081,_0x446121){const _0x206a72=_0x57131e;_0x381455[_0x206a72('0x1c7e')][_0x446121]&&(_0x26d5b4[_0x206a72('0x203d')]+=_0x381455[_0x206a72('0x1c7e')][_0x446121][_0x206a72('0x203d')]||0x0,_0x26d5b4['limitCalls']+=_0x381455['rpcCampaigns'][_0x446121][_0x206a72('0x142d')]||0x0);}),_0x409820[_0x57131e('0xb7f')](),_0x381455[_0x57131e('0x112e')]['resolve'](_0x26d5b4),_0x409820[_0x57131e('0x543')]>0x0&&_0x35ed87();};return function(_0x15bc48){const _0x5be50d=a0_0xde5e,_0xdf0a76=_0x2e9bf3[_0x5be50d('0x112e')]();return _0x409820[_0x5be50d('0x18bb')]({'rpcCampaigns':_0x15bc48[_0x5be50d('0x1c7e')],'defer':_0xdf0a76}),_0x409820[_0x5be50d('0x543')]===0x1&&_0x35ed87(),_0xdf0a76[_0x5be50d('0x2219')];};}function _0x21df89(){return function(_0x5af655){const _0x5868ad=a0_0xde5e;return new Date(_0x5af655*0x3e8)[_0x5868ad('0xad1')]()[_0x5868ad('0x1b7d')](0xb,0x8);};}function _0x525e8b(_0x3d5ab8,_0xd1dc3e,_0xae0faf){const _0xa10ef2=_0x566993,_0x493f4d=this;_0x493f4d[_0xa10ef2('0x1a29')]=_0xae0faf,_0x493f4d[_0xa10ef2('0x2535')]=_0x3dec9b;function _0x3dec9b(){const _0x2f92e5=_0xa10ef2;_0x493f4d[_0x2f92e5('0x1288')]=_0xd1dc3e[_0x2f92e5('0x1b4e')](_0x2f92e5('0x166f'))?_0xd1dc3e[_0x2f92e5('0x1f1b')](0x65):!![];if(_0x493f4d[_0x2f92e5('0x1288')]){const _0x3c3648=_0x3d5ab8[_0x2f92e5('0x9fe')]['name'];switch(_0x3c3648){case _0x2f92e5('0x1057'):_0x4b685e();break;case _0x2f92e5('0x124d'):_0x493f4d[_0x2f92e5('0xd5f')]=0x0;break;case _0x2f92e5('0x2105'):_0x493f4d[_0x2f92e5('0xd5f')]=0x1;break;case _0x2f92e5('0x172a'):_0x493f4d['selectedTab']=0x2;break;case _0x2f92e5('0xae3'):_0x493f4d[_0x2f92e5('0xd5f')]=0x3;break;case _0x2f92e5('0x805'):_0x493f4d[_0x2f92e5('0xd5f')]=0x4;break;case _0x2f92e5('0x17e9'):_0x493f4d['selectedTab']=0x5;break;case _0x2f92e5('0x1653'):_0x493f4d[_0x2f92e5('0xd5f')]=0x6;break;case _0x2f92e5('0x4c2'):_0x493f4d[_0x2f92e5('0xd5f')]=0x7;break;}}}function _0x4b685e(){const _0x46fa53=_0xa10ef2,_0x1e702a=[];_0x493f4d[_0x46fa53('0x1a29')][_0x46fa53('0x21a8')]&&_0x1e702a[_0x46fa53('0x18bb')](_0x46fa53('0x124d')),_0x493f4d[_0x46fa53('0x1a29')][_0x46fa53('0x707')]&&_0x1e702a['push']('app.dashboards.general.dialer'),_0x493f4d[_0x46fa53('0x1a29')][_0x46fa53('0x8c5')]&&_0x1e702a[_0x46fa53('0x18bb')](_0x46fa53('0x172a')),_0x493f4d[_0x46fa53('0x1a29')]['mail']&&_0x1e702a['push']('app.dashboards.general.mail'),_0x493f4d[_0x46fa53('0x1a29')]['messaging']&&_0x1e702a[_0x46fa53('0x18bb')](_0x46fa53('0x805')),_0x493f4d[_0x46fa53('0x1a29')]['openchannel']&&_0x1e702a[_0x46fa53('0x18bb')](_0x46fa53('0x17e9')),_0x493f4d[_0x46fa53('0x1a29')][_0x46fa53('0x16d')]&&_0x1e702a['push'](_0x46fa53('0x1653')),_0x493f4d[_0x46fa53('0x1a29')][_0x46fa53('0x245')]&&_0x1e702a[_0x46fa53('0x18bb')](_0x46fa53('0x4c2'));if(_0x1e702a[_0x46fa53('0x543')]>0x0)_0x3d5ab8['go'](_0x3c8d8a()[_0x46fa53('0x1f3c')](_0x1e702a));}}_0x45ee3c[_0x566993('0x17bb')]=[_0x566993('0x66f'),'socket',_0x566993('0x4ff'),_0x566993('0x2156'),_0x566993('0xb33'),_0x566993('0xbf5')];function _0x45ee3c(_0xffa2d5,_0x39d949,_0x180c53,_0x59bf42,_0x640f40,_0x3b3598){const _0x222ff7=_0x566993,_0x2da620=this;_0x2da620[_0x222ff7('0x4ff')]=_0x180c53?_0x3c8d8a()['keyBy'](_0x180c53['rows']?_0x180c53['rows']:[],'id'):{},_0x2da620['rpcQueues']=_0x59bf42?_0x3c8d8a()[_0x222ff7('0x128')](_0x59bf42[_0x222ff7('0x6aa')]?_0x59bf42['rows']:[],'id'):{},_0x2da620[_0x222ff7('0x1755')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x222ff7('0x4fa'),'avgTalkTime':_0x222ff7('0x4fa'),'answerRate':0x0,'abandonRate':0x0},_0x2da620[_0x222ff7('0xb33')]=_0x640f40||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x2da620[_0x222ff7('0xbb1')]=_0x3377e4,_0x2da620[_0x222ff7('0x952')]=_0x3ae5d7,_0x39d949['on'](_0x222ff7('0x1414'),_0x2da620[_0x222ff7('0xbb1')]),_0x39d949['on'](_0x222ff7('0x25d5'),_0x2da620[_0x222ff7('0x952')]),_0x14cc93();function _0x14cc93(){const _0x5bdc20=_0x222ff7;_0x3b3598({'queues':_0x2da620[_0x5bdc20('0x4ff')],'rpcQueues':_0x2da620['rpcQueues']})[_0x5bdc20('0x173b')](function(_0x2f8161){_0x2da620['inbound']=_0x2f8161;});}function _0x3377e4(_0x34d360){const _0x40a574=_0x222ff7;_0x2da620[_0x40a574('0x4ff')][_0x34d360['id']]&&(_0x2da620[_0x40a574('0x2156')][_0x34d360['id']]&&(_0x2da620[_0x40a574('0x2156')][_0x34d360['id']]=_0x34d360,_0x14cc93()));}function _0x3ae5d7(_0x3a93ab){const _0x48bc9a=_0x222ff7;_0x2da620[_0x48bc9a('0xb33')]=_0x3a93ab;}_0xffa2d5[_0x222ff7('0xbf6')]('$destroy',function(){const _0x997482=_0x222ff7;_0x39d949[_0x997482('0x251c')](_0x997482('0x1414')),_0x39d949[_0x997482('0x251c')](_0x997482('0x25d5'));});}const _0x479b16=_0x45ee3c;_0x53d485[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2fc'),_0x566993('0x742'),_0x566993('0x2154')];function _0x53d485(_0x46e54a,_0x3f9b26,_0x446d0d,_0xdf18f1){const _0xfe1b0e=_0x566993,_0x3d6251=this,_0x2d7e1d=[];_0x3d6251[_0xfe1b0e('0xea9')]={'format':_0xfe1b0e('0x14e2'),'unit':_0xfe1b0e('0x1adf'),'trim':![]},_0x3d6251['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0xfe1b0e('0x4fa'),'avgTalkTime':_0xfe1b0e('0x4fa'),'answerRate':0x0,'abandonRate':0x0},_0x3d6251[_0xfe1b0e('0x2154')]=_0xdf18f1?_0x3c8d8a()[_0xfe1b0e('0x128')](_0xdf18f1[_0xfe1b0e('0x6aa')]?_0xdf18f1['rows']:[],'id'):{},_0x3d6251['onSaveWhatsappInteraction']=_0x4b499c,_0x3d6251['onUpdateWhatsappInteraction']=_0x2d7784,_0x3f9b26['on'](_0xfe1b0e('0x1913'),_0x3d6251[_0xfe1b0e('0x2fa')]),_0x3f9b26['on'](_0xfe1b0e('0x172d'),_0x3d6251[_0xfe1b0e('0xde0')]),_0x592994();function _0x10532b(_0x4ac1ea,_0x54f9f4){const _0x59a25e=_0xfe1b0e;!_0x4ac1ea[_0x59a25e('0x1636')]&&!_0x4ac1ea[_0x59a25e('0x181c')]&&_0x54f9f4&&(_0x3d6251['inbound']['waiting']+=0x1),!_0x4ac1ea[_0x59a25e('0x1636')]&&_0x4ac1ea[_0x59a25e('0x181c')]&&!_0x3c8d8a()[_0x59a25e('0x2814')](_0x2d7e1d,_0x4ac1ea['id'])&&(_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x157c')]+=0x1,_0x2d7e1d[_0x59a25e('0x18bb')](_0x4ac1ea['id']),!_0x54f9f4&&_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x1b68')]&&(_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x1b68')]-=0x1)),_0x4ac1ea['closed']&&_0x4ac1ea[_0x59a25e('0x181c')]&&(_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x191d')]+=_0x156524()(_0x4ac1ea[_0x59a25e('0x1eb5')])['diff'](_0x156524()(_0x4ac1ea[_0x59a25e('0x2314')]),_0x3d6251['config'][_0x59a25e('0xf11')]),_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x1c39')]+=_0x156524()(_0x4ac1ea['read1stAt'])[_0x59a25e('0x22c6')](_0x156524()(_0x4ac1ea['createdAt']),_0x3d6251[_0x59a25e('0xea9')][_0x59a25e('0xf11')]),_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x163a')]+=0x1,!_0x54f9f4&&_0x3d6251['inbound'][_0x59a25e('0x157c')]&&(_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x157c')]-=0x1)),_0x4ac1ea[_0x59a25e('0x1636')]&&!_0x4ac1ea['UserId']&&(_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x50c')]+=0x1,!_0x54f9f4&&_0x3d6251['inbound'][_0x59a25e('0x1b68')]&&(_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0x1b68')]-=0x1)),_0x54f9f4&&(_0x3d6251[_0x59a25e('0x1755')][_0x59a25e('0xa1f')]+=0x1);}function _0x2cb3bc(){const _0x2283c0=_0xfe1b0e;_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0x18d2')]=Math['round']((_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0x3b9')]+_0x3d6251['inbound']['unmanaged'])/(_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0xa1f')]-_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0x157c')]-_0x3d6251['inbound']['waiting'])*0x64,-0x2),_0x3d6251['inbound'][_0x2283c0('0x14fb')]=Math['round'](_0x3d6251[_0x2283c0('0x1755')]['answered']/(_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0xa1f')]-_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0x157c')]-_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0x1b68')])*0x64,-0x2),_0x3d6251[_0x2283c0('0x1755')]['avgHoldTime']=_0x156524()['duration'](Math[_0x2283c0('0x793')](_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0x1c39')]/_0x3d6251['inbound'][_0x2283c0('0x163a')]),_0x3d6251[_0x2283c0('0xea9')][_0x2283c0('0xf11')])[_0x2283c0('0xddc')](_0x3d6251[_0x2283c0('0xea9')][_0x2283c0('0xddc')],_0x3d6251[_0x2283c0('0xea9')]),_0x3d6251[_0x2283c0('0x1755')]['avgTalkTime']=_0x156524()[_0x2283c0('0xa5d')](Math[_0x2283c0('0x793')](_0x3d6251[_0x2283c0('0x1755')]['sumBillable']/_0x3d6251[_0x2283c0('0x1755')][_0x2283c0('0x163a')]),_0x3d6251[_0x2283c0('0xea9')]['unit'])[_0x2283c0('0xddc')](_0x3d6251[_0x2283c0('0xea9')]['format'],_0x3d6251[_0x2283c0('0xea9')]);}function _0x592994(){const _0x4d0cf8=_0xfe1b0e;if(Object[_0x4d0cf8('0x1d3e')](_0x3d6251[_0x4d0cf8('0x2154')])[_0x4d0cf8('0x543')]>0x0)for(let _0x49f56d=0x0;_0x49f56d<_0x446d0d['rows'][_0x4d0cf8('0x543')];_0x49f56d+=0x1){if(_0x5cb00d(_0x446d0d['rows'][_0x49f56d])){const _0x594408=_0x446d0d['rows'][_0x49f56d];_0x10532b(_0x594408,!![]),_0x2cb3bc();}}}function _0x5cb00d(_0xa9655b){const _0x113448=_0xfe1b0e;if(_0x3c8d8a()[_0x113448('0x1ec')](_0x3d6251[_0x113448('0x2154')],{'id':_0x3c8d8a()[_0x113448('0x1acd')](_0xa9655b[_0x113448('0x2720')])}))return!![];return![];}function _0x47fe25(_0x3c75af){const _0x39a451=_0xfe1b0e,_0x1889c2=_0x156524()()[_0x39a451('0xaf5')](0x0,!![])[_0x39a451('0x2145')](_0x39a451('0x48d')),_0x605aa2=_0x156524()()[_0x39a451('0xaf5')](0x0,!![])[_0x39a451('0x733')](_0x39a451('0x48d'));return _0x156524()(_0x3c75af)[_0x39a451('0xaf5')](0x0,!![])[_0x39a451('0xc1b')](_0x1889c2,_0x605aa2);}function _0x4b499c(_0xe2a5a){const _0xda966e=_0xfe1b0e;_0x5cb00d(_0xe2a5a)&&_0x47fe25(_0xe2a5a[_0xda966e('0xda8')])&&(_0x10532b(_0xe2a5a,!![]),_0x2cb3bc());}function _0x2d7784(_0xa3e4c0){const _0x5ef6f5=_0xfe1b0e;_0x5cb00d(_0xa3e4c0)&&_0x47fe25(_0xa3e4c0[_0x5ef6f5('0xda8')])&&(_0x10532b(_0xa3e4c0,![]),_0x2cb3bc());}_0x46e54a['$on'](_0xfe1b0e('0x16d2'),function(){const _0x20484a=_0xfe1b0e;_0x3f9b26[_0x20484a('0x251c')](_0x20484a('0x1913')),_0x3f9b26[_0x20484a('0x251c')](_0x20484a('0x172d'));});}const _0x2d9be0=_0x53d485;_0x121e3a['$inject']=[_0x566993('0xccc')];function _0x121e3a(_0x30a118){const _0x4d64ae=_0x566993;_0x30a118[_0x4d64ae('0x1a49')](_0x4d64ae('0x124d'),{'url':_0x4d64ae('0xbe0'),'data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x39d991,'controller':_0x4d64ae('0xac8')}},'resolve':{'rpcQueues':[_0x4d64ae('0x2401'),function(_0x5d5789){const _0x4bcffe=_0x4d64ae;return _0x5d5789[_0x4bcffe('0x155b')](_0x4bcffe('0x7d8'));}],'inboundQueues':[_0x4d64ae('0x2401'),_0x4d64ae('0x1600'),function(_0x5895f3,_0xa8243){const _0x54b29c=_0x4d64ae;return _0xa8243[_0x54b29c('0x1b4e')]('admin')?_0x5895f3[_0x54b29c('0x155b')](_0x54b29c('0x17be'),{'fields':'id,name','type':'inbound','nolimit':!![]}):_0x5895f3[_0x54b29c('0x155b')](_0x54b29c('0x14b3'),{'id':_0xa8243[_0x54b29c('0x14d4')]()[_0x54b29c('0x1946')],'section':_0x54b29c('0x32a'),'fields':_0x54b29c('0xd52'),'type':_0x54b29c('0x1755'),'channel':'voice','nolimit':!![]});}],'outbound':[_0x4d64ae('0x2401'),function(_0x442619){return _0x442619['resolve']('rpc@getOutbound');}]},'authenticate':!![],'bodyClass':_0x4d64ae('0x9d5')})[_0x4d64ae('0x1a49')]('app.dashboards.general.dialer',{'url':_0x4d64ae('0x15d0'),'data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x2990d2,'controller':_0x4d64ae('0x275e')}},'resolve':{'rpcQueues':['apiResolver',function(_0x4ae208){const _0x1b3466=_0x4d64ae;return _0x4ae208[_0x1b3466('0x155b')](_0x1b3466('0x7d8'));}],'outboundQueues':['apiResolver','Auth',function(_0x2fc0de,_0x1a3aac){const _0x29826a=_0x4d64ae;return _0x1a3aac[_0x29826a('0x1b4e')](_0x29826a('0x79b'))?_0x2fc0de['resolve'](_0x29826a('0x17be'),{'fields':_0x29826a('0xd52'),'type':'outbound','nolimit':!![]}):_0x2fc0de[_0x29826a('0x155b')](_0x29826a('0x14b3'),{'id':_0x1a3aac[_0x29826a('0x14d4')]()[_0x29826a('0x1946')],'section':'QueueCampaigns','fields':_0x29826a('0xd52'),'type':_0x29826a('0xb33'),'channel':'voice','nolimit':!![]});}],'rpcCampaigns':[_0x4d64ae('0x2401'),function(_0x22d6cf){const _0x5ab6b1=_0x4d64ae;return _0x22d6cf[_0x5ab6b1('0x155b')](_0x5ab6b1('0x1c0b'));}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x4d64ae('0x1a49')](_0x4d64ae('0x172a'),{'url':'/chat','data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x76eb50,'controller':'UserChatDashboardGeneralController\x20as\x20vm'}},'resolve':{'chatInteractions':[_0x4d64ae('0x2401'),function(_0x13abf3){const _0xc546bb=_0x4d64ae;return _0x13abf3['resolve'](_0xc546bb('0x2257'),{'createdAt':{'$gte':_0x156524()()[_0xc546bb('0x2145')](_0xc546bb('0x48d'))[_0xc546bb('0xaf5')](0x0,!![])[_0xc546bb('0xddc')](),'$lte':_0x156524()()['endOf'](_0xc546bb('0x48d'))['utcOffset'](0x0,!![])['format']()},'nolimit':!![]});}],'chatWebsites':[_0x4d64ae('0x2401'),'Auth',function(_0xef1e16,_0x4b7e8e){const _0x21d387=_0x4d64ae;return _0x4b7e8e[_0x21d387('0x1b4e')](_0x21d387('0x79b'))?_0xef1e16[_0x21d387('0x155b')](_0x21d387('0x2600'),{'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':_0x21d387('0x1769'),'limit':0xa,'offset':0x0}):_0xef1e16[_0x21d387('0x155b')]('userProfile@getResources',{'id':_0x4b7e8e['getCurrentUser']()[_0x21d387('0x1946')],'section':_0x21d387('0x27'),'fields':_0x21d387('0x27fd'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x4d64ae('0x1a49')](_0x4d64ae('0xae3'),{'url':_0x4d64ae('0x1f0f'),'data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x27dda1,'controller':_0x4d64ae('0xe3e')}},'resolve':{'mailInteractions':['apiResolver',function(_0x165a65){const _0x34a2ea=_0x4d64ae;return _0x165a65[_0x34a2ea('0x155b')](_0x34a2ea('0x2327'),{'createdAt':{'$gte':_0x156524()()[_0x34a2ea('0x2145')]('day')[_0x34a2ea('0xaf5')](0x0,!![])[_0x34a2ea('0xddc')](),'$lte':_0x156524()()[_0x34a2ea('0x733')](_0x34a2ea('0x48d'))['utcOffset'](0x0,!![])[_0x34a2ea('0xddc')]()},'nolimit':!![]});}],'mailAccounts':['apiResolver',_0x4d64ae('0x1600'),function(_0x5d100e,_0x4574f7){const _0x11dfcf=_0x4d64ae;return _0x4574f7[_0x11dfcf('0x1b4e')]('admin')?_0x5d100e[_0x11dfcf('0x155b')]('mailAccount@get',{'fields':_0x11dfcf('0x2622'),'sort':_0x11dfcf('0x1769'),'limit':0xa,'offset':0x0}):_0x5d100e[_0x11dfcf('0x155b')](_0x11dfcf('0x14b3'),{'id':_0x4574f7[_0x11dfcf('0x14d4')]()[_0x11dfcf('0x1946')],'section':_0x11dfcf('0x15ab'),'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':'dashboards'})[_0x4d64ae('0x1a49')](_0x4d64ae('0x805'),{'url':_0x4d64ae('0x133'),'data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x2f9fea,'controller':_0x4d64ae('0x247')}},'resolve':{'smsInteractions':[_0x4d64ae('0x2401'),function(_0x5bb786){const _0x4cf3d2=_0x4d64ae;return _0x5bb786[_0x4cf3d2('0x155b')](_0x4cf3d2('0x284e'),{'createdAt':{'$gte':_0x156524()()[_0x4cf3d2('0x2145')](_0x4cf3d2('0x48d'))[_0x4cf3d2('0xaf5')](0x0,!![])[_0x4cf3d2('0xddc')](),'$lte':_0x156524()()[_0x4cf3d2('0x733')](_0x4cf3d2('0x48d'))[_0x4cf3d2('0xaf5')](0x0,!![])['format']()},'nolimit':!![]});}],'smsAccounts':[_0x4d64ae('0x2401'),_0x4d64ae('0x1600'),function(_0x4fa291,_0x31076e){const _0x5c6349=_0x4d64ae;return _0x31076e[_0x5c6349('0x1b4e')](_0x5c6349('0x79b'))?_0x4fa291[_0x5c6349('0x155b')](_0x5c6349('0x21ac'),{'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}):_0x4fa291['resolve'](_0x5c6349('0x14b3'),{'id':_0x31076e[_0x5c6349('0x14d4')]()['userProfileId'],'section':_0x5c6349('0x45'),'fields':_0x5c6349('0x4e6'),'sort':_0x5c6349('0x1769'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x4d64ae('0x9d5')})[_0x4d64ae('0x1a49')](_0x4d64ae('0x17e9'),{'url':_0x4d64ae('0x110e'),'data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0xbeda4b,'controller':_0x4d64ae('0x17a7')}},'resolve':{'openchannelInteractions':[_0x4d64ae('0x2401'),function(_0x31964f){const _0x317e54=_0x4d64ae;return _0x31964f['resolve'](_0x317e54('0x17f3'),{'createdAt':{'$gte':_0x156524()()['startOf'](_0x317e54('0x48d'))[_0x317e54('0xaf5')](0x0,!![])[_0x317e54('0xddc')](),'$lte':_0x156524()()[_0x317e54('0x733')]('day')[_0x317e54('0xaf5')](0x0,!![])[_0x317e54('0xddc')]()},'nolimit':!![]});}],'openchannelAccounts':[_0x4d64ae('0x2401'),_0x4d64ae('0x1600'),function(_0xc3b894,_0x2faccb){const _0x3a1745=_0x4d64ae;return _0x2faccb[_0x3a1745('0x1b4e')](_0x3a1745('0x79b'))?_0xc3b894['resolve']('openchannelAccount@get',{'fields':_0x3a1745('0x1987'),'sort':_0x3a1745('0x1769'),'nolimit':!![]}):_0xc3b894['resolve']('userProfile@getResources',{'id':_0x2faccb[_0x3a1745('0x14d4')]()[_0x3a1745('0x1946')],'section':_0x3a1745('0xecc'),'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','sort':_0x3a1745('0x1769'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0x4d64ae('0x1a49')](_0x4d64ae('0x1653'),{'url':'/fax','data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x4dc1f2,'controller':'UserFaxDashboardGeneralController\x20as\x20vm'}},'resolve':{'faxInteractions':['apiResolver',function(_0x4cbd1a){const _0x2d79ec=_0x4d64ae;return _0x4cbd1a[_0x2d79ec('0x155b')]('faxInteraction@get',{'createdAt':{'$gte':_0x156524()()[_0x2d79ec('0x2145')](_0x2d79ec('0x48d'))['utcOffset'](0x0,!![])['format'](),'$lte':_0x156524()()[_0x2d79ec('0x733')](_0x2d79ec('0x48d'))['utcOffset'](0x0,!![])[_0x2d79ec('0xddc')]()},'nolimit':!![]});}],'faxAccounts':[_0x4d64ae('0x2401'),_0x4d64ae('0x1600'),function(_0xe611d2,_0x37c938){const _0x5a0c08=_0x4d64ae;return _0x37c938[_0x5a0c08('0x1b4e')](_0x5a0c08('0x79b'))?_0xe611d2[_0x5a0c08('0x155b')]('faxAccount@get',{'fields':_0x5a0c08('0x2500'),'sort':_0x5a0c08('0x1769'),'limit':0xa,'offset':0x0}):_0xe611d2[_0x5a0c08('0x155b')](_0x5a0c08('0x14b3'),{'id':_0x37c938['getCurrentUser']()[_0x5a0c08('0x1946')],'section':_0x5a0c08('0x1ba2'),'fields':_0x5a0c08('0x2500'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0x4d64ae('0x9d5')})[_0x4d64ae('0x1a49')](_0x4d64ae('0x4c2'),{'url':_0x4d64ae('0x235e'),'data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0xa86edf,'controller':_0x4d64ae('0x2530')}},'resolve':{'whatsappInteractions':[_0x4d64ae('0x2401'),function(_0x752cc2){const _0x385c94=_0x4d64ae;return _0x752cc2[_0x385c94('0x155b')](_0x385c94('0x1208'),{'createdAt':{'$gte':_0x156524()()[_0x385c94('0x2145')](_0x385c94('0x48d'))[_0x385c94('0xaf5')](0x0,!![])['format'](),'$lte':_0x156524()()[_0x385c94('0x733')](_0x385c94('0x48d'))[_0x385c94('0xaf5')](0x0,!![])['format']()},'nolimit':!![]});}],'whatsappAccounts':['apiResolver',_0x4d64ae('0x1600'),function(_0x1c039e,_0x24a3c4){const _0x582f1e=_0x4d64ae;return _0x24a3c4[_0x582f1e('0x1b4e')](_0x582f1e('0x79b'))?_0x1c039e[_0x582f1e('0x155b')]('whatsappAccount@get',{'fields':_0x582f1e('0x274b'),'sort':_0x582f1e('0x1769'),'limit':0xa,'offset':0x0}):_0x1c039e['resolve'](_0x582f1e('0x14b3'),{'id':_0x24a3c4[_0x582f1e('0x14d4')]()[_0x582f1e('0x1946')],'section':'WhatsappAccounts','fields':'createdAt,updatedAt,id,name,key,token,remote,ListId,phone,type,accountSid,authId,authToken,whatsappMethod,username,password,senderString,deliveryReport,waitForTheAssignedAgent,description,receiveUrl,deliveryReportUrl,notificationSound,notificationShake,notificationTemplate','sort':_0x582f1e('0x1769'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular[_0x566993('0x22c4')](_0x566993('0x216b'),[])[_0x566993('0xea9')](_0x121e3a)[_0x566993('0x1e65')](_0x566993('0x228f'),_0x1ad50c)[_0x566993('0x1e65')](_0x566993('0x1616'),_0x9516fc)[_0x566993('0x1e65')](_0x566993('0x25bc'),_0x1b6bad)[_0x566993('0x1e65')]('UserMailDashboardGeneralController',_0x90fda9)[_0x566993('0x1e65')]('UserOpenchannelDashboardGeneralController',_0x221efd)[_0x566993('0x1e65')]('UserSmsDashboardGeneralController',_0x318cc1)[_0x566993('0x278d')](_0x566993('0xce9'),_0x21df89)[_0x566993('0x235c')](_0x566993('0xbf5'),_0x322745)[_0x566993('0x235c')]('initializeRealtimeCampaign',_0x3399fe)[_0x566993('0x1e65')](_0x566993('0x1eb0'),_0x525e8b)[_0x566993('0x1e65')](_0x566993('0x233e'),_0x479b16)[_0x566993('0x1e65')](_0x566993('0x1736'),_0x2d9be0);const _0x15060c=_0x21a6a1['p']+_0x566993('0x1f67'),_0x2574e6=_0x21a6a1['p']+_0x566993('0x1a95');var _0x2b2d3c=_0x21a6a1(0x1d2),_0x5df7ee=_0x21a6a1['n'](_0x2b2d3c);_0x1f1e4e[_0x566993('0x17bb')]=[_0x566993('0xca5'),_0x566993('0x638'),_0x566993('0x1d31'),_0x566993('0x1600')],_0x46a179[_0x566993('0x17bb')]=['$scope',_0x566993('0x24b5'),_0x566993('0x1fe5'),'$window',_0x566993('0x638'),_0x566993('0x1b82'),_0x566993('0x1600'),_0x566993('0xbd4'),'socket',_0x566993('0x1558'),_0x566993('0x14fa'),_0x566993('0x687'),'globalCompanies',_0x566993('0x1550'),_0x566993('0x1a29'),'setting',_0x566993('0x1758'),_0x566993('0x1f9')];function _0x46a179(_0x52c72c,_0x20431a,_0x6fd43f,_0x3363fd,_0x45a8fc,_0x24579a,_0x2de968,_0x19b20f,_0x5233a3,_0x70a8ee,_0x1da84a,_0x55a8e7,_0x8e0abe,_0x320394,_0x365ab5,_0x36a6e7,_0x5c8d8b,_0x548393){const _0x4241ec=_0x566993,_0x41dcd6=this;_0x41dcd6[_0x4241ec('0x1a29')]=_0x365ab5,_0x41dcd6[_0x4241ec('0x251')]=_0x36a6e7,_0x41dcd6[_0x4241ec('0x26e8')]=_0x548393['detectBrowser'](),_0x41dcd6['user']=_0x2de968[_0x4241ec('0x14d4')](),_0x41dcd6[_0x4241ec('0x157f')]=0x0,_0x41dcd6[_0x4241ec('0x1e20')]={},_0x41dcd6[_0x4241ec('0xa80')]={},_0x41dcd6[_0x4241ec('0x21e2')]={},_0x41dcd6['globalUserLists']=_0x1da84a||{'count':0x0,'rows':[]},_0x41dcd6[_0x4241ec('0x687')]=_0x55a8e7||{'count':0x0,'rows':[]},_0x41dcd6[_0x4241ec('0x1f94')]=_0x8e0abe||{'count':0x0,'rows':[]},_0x41dcd6[_0x4241ec('0x1550')]=_0x320394||{'count':0x0,'rows':[]},_0x41dcd6[_0x4241ec('0xc15')]=_0x16ab49,_0x41dcd6[_0x4241ec('0x1c50')]=_0x1e4693,_0x41dcd6['alreadyExistsTab']=_0x59bc15,_0x41dcd6[_0x4241ec('0x2716')]=_0x566840,_0x41dcd6[_0x4241ec('0xe63')]=_0x1ec9a9,_0x41dcd6[_0x4241ec('0x965')]=_0x13e618,_0x41dcd6[_0x4241ec('0xa1a')]=_0x2fbd32,_0x41dcd6['updateLocalStorage']=_0x3f6ca8,_0x41dcd6[_0x4241ec('0x26ab')]=_0x411a90,_0x5233a3['on'](_0x4241ec('0x869'),_0x14647d),_0x5233a3['on']('trigger:jscripty',_0x5818b4),_0x5233a3['on'](_0x4241ec('0x23a0'),_0x2b2642),_0x5233a3['on'](_0x4241ec('0x2726'),_0x5b692b),_0x5233a3['on'](_0x4241ec('0x138b'),_0x5f5563),_0x5233a3['on'](_0x4241ec('0x16f2'),_0x5830fd),_0x5233a3['on'](_0x4241ec('0x1544'),_0x126a33),_0x5233a3['on']('voice_queue_channel:remove',_0x290d5c),_0x5233a3['on'](_0x4241ec('0x815'),_0x290d5c),_0x27738d();function _0x27738d(){const _0x2e61fe=_0x4241ec;let _0x5019ae=_0x3363fd['localStorage'][_0x2e61fe('0x1949')]('motion2.user:'+_0x41dcd6[_0x2e61fe('0x166f')]['id']);if(_0x5019ae)try{_0x5019ae=JSON[_0x2e61fe('0x1d5e')](_0x5019ae),_0x41dcd6[_0x2e61fe('0xa80')]=_0x5019ae['tabs']?_0x5019ae[_0x2e61fe('0xa80')]:{},_0x41dcd6['currentTab']=_0x5019ae['currentTab']?_0x5019ae[_0x2e61fe('0x157f')]:0x0,_0x97c818(_0x41dcd6[_0x2e61fe('0xa80')][_0x41dcd6['currentTab']]);}catch(_0x4effff){console[_0x2e61fe('0x15aa')](_0x4effff);}}function _0x3f6ca8(_0x20a45a){const _0x5e9767=_0x4241ec,_0x36cd76={};for(const _0x29026e in _0x41dcd6['tabs']){typeof _0x41dcd6[_0x5e9767('0xa80')][_0x29026e]!==_0x5e9767('0x6e5')&&(_0x36cd76[_0x29026e]=_0x3c8d8a()[_0x5e9767('0x2114')](_0x41dcd6[_0x5e9767('0xa80')][_0x29026e],['type',_0x5e9767('0x20d6'),_0x5e9767('0x1134'),_0x5e9767('0x136f'),_0x5e9767('0xd2d'),_0x5e9767('0x1823'),'id',_0x5e9767('0x1049'),_0x5e9767('0x681')]),!_0x3c8d8a()[_0x5e9767('0x7d5')](_0x41dcd6[_0x5e9767('0xa80')][_0x29026e][_0x5e9767('0x82b')])&&(_0x36cd76[_0x29026e][_0x5e9767('0x82b')]=_0x3c8d8a()[_0x5e9767('0x2114')](_0x41dcd6[_0x5e9767('0xa80')][_0x29026e][_0x5e9767('0x82b')],['id','ListId'])),!_0x3c8d8a()[_0x5e9767('0x7d5')](_0x41dcd6[_0x5e9767('0xa80')][_0x29026e][_0x5e9767('0x23d5')])&&(_0x36cd76[_0x29026e][_0x5e9767('0x23d5')]=_0x41dcd6['tabs'][_0x29026e][_0x5e9767('0x23d5')]),_0x41dcd6[_0x5e9767('0xa80')][_0x29026e][_0x5e9767('0x8d6')]&&(_0x36cd76[_0x29026e][_0x5e9767('0x8d6')]=_0x3c8d8a()[_0x5e9767('0x2114')](_0x41dcd6['tabs'][_0x29026e][_0x5e9767('0x8d6')],['id',_0x5e9767('0xf5a'),_0x5e9767('0x559'),_0x5e9767('0x1796'),_0x5e9767('0xcba'),'SmsAccountId',_0x5e9767('0x2720'),_0x5e9767('0x1636'),'draft'])));}let _0x5dc1ed=JSON['parse'](_0x3363fd['localStorage']['getItem'](_0x5e9767('0x1ce5')+_0x41dcd6[_0x5e9767('0x166f')]['id']));_0x5dc1ed?(_0x5dc1ed[_0x5e9767('0xa80')]=_0x36cd76,_0x5dc1ed[_0x5e9767('0x157f')]=_0x41dcd6[_0x5e9767('0x157f')]):_0x5dc1ed={'tabs':_0x36cd76,'currentTab':_0x41dcd6[_0x5e9767('0x157f')]},_0x3363fd[_0x5e9767('0x1937')][_0x5e9767('0x7e')](_0x5e9767('0x1ce5')+_0x41dcd6['user']['id'],JSON[_0x5e9767('0x100b')](_0x5dc1ed)),_0x20a45a&&_0x97c818(_0x20a45a);}function _0x97c818(_0x26e135){const _0x2ca361=_0x4241ec;if(_0x3c8d8a()[_0x2ca361('0x7d5')](_0x26e135)||_0x26e135&&_0x26e135[_0x2ca361('0x1810')]===_0x2ca361('0x8d6')){const _0x9f0d0d={'id':_0x41dcd6[_0x2ca361('0x166f')]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(const _0x565589 in _0x41dcd6[_0x2ca361('0xa80')]){typeof _0x41dcd6[_0x2ca361('0xa80')][_0x565589]!==_0x2ca361('0x6e5')&&(typeof _0x9f0d0d[_0x2ca361('0x1a08')][_0x41dcd6[_0x2ca361('0xa80')][_0x565589][_0x2ca361('0x1134')]]!==_0x2ca361('0x6e5')&&_0x41dcd6[_0x2ca361('0xa80')][_0x565589]['interaction']&&!_0x41dcd6[_0x2ca361('0xa80')][_0x565589]['interaction'][_0x2ca361('0x1636')]&&(_0x9f0d0d[_0x2ca361('0x1a08')][_0x41dcd6[_0x2ca361('0xa80')][_0x565589]['channel']]+=0x1,_0x9f0d0d[_0x2ca361('0x8d6')][_0x41dcd6['tabs'][_0x565589][_0x2ca361('0x1134')]][_0x2ca361('0x18bb')](_0x41dcd6[_0x2ca361('0xa80')][_0x565589][_0x2ca361('0x8d6')]['id'])));}if(!_0x3c8d8a()[_0x2ca361('0xa90')](_0x41dcd6[_0x2ca361('0x21e2')],_0x9f0d0d[_0x2ca361('0x1a08')]))return _0x41dcd6[_0x2ca361('0x21e2')]=_0x9f0d0d[_0x2ca361('0x1a08')],_0x19b20f[_0x2ca361('0x48c')][_0x2ca361('0x912')](_0x9f0d0d);}}function _0x411a90(_0x97c8c6){const _0x50b9ac=_0x4241ec;let _0x1709e9=![];const _0x352235=_0x6fd43f['confirm']()[_0x50b9ac('0x20d6')](_0x97c8c6[_0x50b9ac('0x1810')]===_0x50b9ac('0x8d6')?_0x50b9ac('0xafc'):_0x50b9ac('0x15a9')+_0x97c8c6[_0x50b9ac('0x1810')]+'?')['textContent'](_0x97c8c6['type']===_0x50b9ac('0x8d6')?'':_0x50b9ac('0x1aa5')+_0x97c8c6['type']+_0x50b9ac('0x369'))[_0x50b9ac('0x217')](_0x50b9ac('0x23c5'))['ok'](_0x97c8c6[_0x50b9ac('0x1810')]===_0x50b9ac('0x8d6')?'YES':'OK')[_0x50b9ac('0x1e1f')](_0x97c8c6[_0x50b9ac('0x1810')]==='interaction'?'NO':'CANCEL');if(_0x97c8c6[_0x50b9ac('0x1049')]){let _0x5ba53b=![];_0x3c8d8a()[_0x50b9ac('0xa6a')](_0x97c8c6['calls'],function(_0x36f6bc){const _0x20684b=_0x50b9ac;_0x36f6bc[_0x20684b('0x130f')]&&(_0x5ba53b=!![]);});if(_0x97c8c6[_0x50b9ac('0x1810')]===_0x50b9ac('0x82b')&&_0x97c8c6['calls'][_0x50b9ac('0x543')]>0x0){let _0x40eef2=undefined;if(_0x5ba53b)_0x40eef2=_0x6fd43f['alert']()[_0x50b9ac('0x20d6')](_0x50b9ac('0x2de'))[_0x50b9ac('0x1f71')]('There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.')['ok']('OK'),_0x6fd43f[_0x50b9ac('0x1cb7')](_0x40eef2)['finally'](function(){_0x40eef2=undefined;});else return _0x352235['_options'][_0x50b9ac('0x1f71')]=_0x50b9ac('0x161c'),_0x6fd43f[_0x50b9ac('0x1cb7')](_0x352235)[_0x50b9ac('0x173b')](function(){_0x2fbd32(_0x97c8c6);});}else _0x2fbd32(_0x97c8c6);}else{const _0x12f0c1=_0x41dcd6[_0x50b9ac('0x166f')][_0x50b9ac('0x67c')]||_0x41dcd6[_0x50b9ac('0x166f')][_0x50b9ac('0x988')]||_0x41dcd6[_0x50b9ac('0x166f')][_0x50b9ac('0xf41')]||_0x41dcd6[_0x50b9ac('0x166f')][_0x50b9ac('0x106')]||_0x41dcd6[_0x50b9ac('0x166f')][_0x50b9ac('0x13eb')];return _0x1709e9=![],_0x97c8c6[_0x50b9ac('0x1810')]===_0x50b9ac('0x8d6')&&(_0x1709e9=_0x97c8c6[_0x50b9ac('0x8d6')]['Account'][_0x50b9ac('0x130f')]),_0x6fd43f[_0x50b9ac('0x1cb7')](_0x352235)[_0x50b9ac('0x173b')](function(){const _0x27fb80=_0x50b9ac;_0x97c8c6[_0x27fb80('0x1810')]===_0x27fb80('0x8d6')&&_0x6fd43f[_0x27fb80('0x1cb7')]({'controller':_0x27fb80('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular[_0x27fb80('0xb6d')](_0x24579a[_0x27fb80('0x1a5')]),'onRemoving':function(){const _0x35cd2e=_0x27fb80;_0x41dcd6['user']&&_0x1709e9&&!_0x12f0c1&&_0x19b20f['user'][_0x35cd2e('0x9da')]({'id':_0x41dcd6['user']['id']})['$promise']['catch'](function(_0x4d9d69){console['error'](_0x4d9d69);});},'clickOutsideToClose':!_0x1709e9,'escapeToClose':!_0x1709e9,'locals':{'user':_0x41dcd6['user'],'channel':_0x97c8c6[_0x27fb80('0x1134')],'interaction':_0x97c8c6['interaction']}}),_0x2fbd32(_0x97c8c6);})[_0x50b9ac('0x103c')](function(){const _0x5ec82b=_0x50b9ac;_0x97c8c6[_0x5ec82b('0x1810')]===_0x5ec82b('0x8d6')&&_0x2fbd32(_0x97c8c6);});}}function _0x394186(_0x4a7793){const _0x13a7f3=_0x4241ec;if(_0x4a7793['channel']&&_0x4a7793[_0x13a7f3('0x8d6')])return _0x19b20f['user']['remove'+_0x3c8d8a()[_0x13a7f3('0x5ba')](_0x4a7793[_0x13a7f3('0x1134')])+'Interactions']({'id':_0x41dcd6[_0x13a7f3('0x166f')]['id'],'ids':[_0x4a7793[_0x13a7f3('0x8d6')]['id']]})[_0x13a7f3('0x1964')]['catch'](function(_0x20ce28){const _0x3f31eb=_0x13a7f3;console[_0x3f31eb('0x15aa')](_0x20ce28);});}function _0x2fbd32(_0x357d96){const _0x18fbd4=_0x4241ec;if(_0x41dcd6[_0x18fbd4('0xa80')][_0x357d96['id']]){_0x394186(_0x41dcd6['tabs'][_0x357d96['id']]),delete _0x41dcd6[_0x18fbd4('0xa80')][_0x357d96['id']],_0x41dcd6[_0x18fbd4('0x157f')]=0x0,_0x3f6ca8(_0x357d96);if(_0x357d96[_0x18fbd4('0x1810')]===_0x18fbd4('0x8d6'))return _0x19b20f[_0x357d96['channel']+_0x18fbd4('0x3a9')][_0x18fbd4('0x1d97')]({'id':_0x357d96[_0x18fbd4('0x8d6')]['id']})['$promise']['then'](function(_0x4ee6ff){const _0x58cc50=_0x18fbd4;return _0x19b20f[_0x58cc50('0x166f')][_0x58cc50('0x1a8b')+_0x3c8d8a()[_0x58cc50('0x5ba')](_0x357d96[_0x58cc50('0x1134')])+_0x58cc50('0x916')]({'id':_0x41dcd6[_0x58cc50('0x166f')]['id'],'ids':[_0x4ee6ff['id']]})[_0x58cc50('0x1964')];})['catch'](function(_0x3584c7){const _0x52af2d=_0x18fbd4;console[_0x52af2d('0x15aa')](_0x3584c7);});}}function _0x13e618(_0x59344b){const _0x2c5df5=_0x4241ec;_0x59344b['id']=_0x3c8d8a()['random'](0x2540be400),_0x59344b[_0x2c5df5('0x24a9')]=new Date(),_0x59344b[_0x2c5df5('0x1049')]=![],_0x59344b[_0x2c5df5('0x681')]=0x0,_0x41dcd6[_0x2c5df5('0xa80')][_0x59344b['id']]=_0x59344b,_0x41dcd6[_0x2c5df5('0x157f')]=_0x59344b['id'],_0x3f6ca8(_0x59344b);}function _0x1e4693(_0x4ce358){const _0x4b735d=_0x4241ec;return _0x4ce358===_0x41dcd6[_0x4b735d('0x157f')];}function _0x16ab49(_0x9e73e3){const _0x5a4dee=_0x4241ec;_0x41dcd6[_0x5a4dee('0x157f')]=_0x9e73e3,_0x3f6ca8(_0x41dcd6[_0x5a4dee('0xa80')][_0x9e73e3]);}function _0x59bc15(_0x355235){const _0x7a999a=_0x4241ec;return _0x3c8d8a()[_0x7a999a('0x18ab')](_0x41dcd6[_0x7a999a('0xa80')],function(_0x4e18e9){const _0xfe02c5=_0x7a999a;return _0x4e18e9[_0xfe02c5('0x1810')]===_0xfe02c5('0x8d6')&&_0x4e18e9[_0xfe02c5('0x8d6')]&&_0x4e18e9['interaction']['id']==_0x355235[_0xfe02c5('0x1662')]&&_0x4e18e9[_0xfe02c5('0x1134')]==_0x355235['channel'];});}function _0x24088e(_0x4bde94){const _0x59c4f5=_0x4241ec;let _0x3bbb7e='';if(_0x4bde94){if(_0x4bde94['firstName']||_0x4bde94['lastName'])_0x4bde94[_0x59c4f5('0x1e50')]&&(_0x3bbb7e+=_0x4bde94[_0x59c4f5('0x1e50')]+'\x20'),_0x4bde94['lastName']&&(_0x3bbb7e+=_0x4bde94[_0x59c4f5('0x1806')]);else _0x4bde94['phone']&&(_0x3bbb7e=_0x4bde94['phone']);}return _0x3bbb7e;}function _0x50e776(_0x5f0610){const _0x29099f=_0x4241ec;switch(_0x5f0610){case _0x29099f('0x8c5'):return'icon-hangouts';case _0x29099f('0x108a'):return _0x29099f('0x16b4');case _0x29099f('0x1a8f'):return _0x29099f('0x1147');case _0x29099f('0xab2'):return _0x29099f('0x1f64');case _0x29099f('0x16d'):return _0x29099f('0x41c');case _0x29099f('0x245'):return _0x29099f('0xfdd');default:return _0x29099f('0x11d1');}}function _0x40e399(_0xd3552f){const _0xbf1189=_0x4241ec;switch(_0xd3552f){case _0xbf1189('0x8c5'):return _0xbf1189('0x77f');case'mail':return _0xbf1189('0x1dfa');case _0xbf1189('0x1a8f'):return _0xbf1189('0x1989');case _0xbf1189('0xab2'):return _0xbf1189('0x13c1');case'fax':return'blue-grey-A200';case'whatsapp':return _0xbf1189('0x332');default:return _0xbf1189('0x14eb');}}function _0x566840(_0x400a88,_0xb3e44a){const _0x5e1b9e=_0x4241ec,_0x33d12a={'type':_0x5e1b9e('0x82b'),'title':_0x400a88?_0x24088e(_0x400a88):_0x45a8fc[_0x5e1b9e('0x1467')](_0x5e1b9e('0x1b10')),'icon':_0x5e1b9e('0x150d'),'color':'red','contact':_0x400a88,'calls':_0xb3e44a?[_0xb3e44a]:[],'autoCreate':_0xb3e44a?_0xb3e44a['autoCreate']:0x0};if(_0xb3e44a){if(_0xb3e44a['xmd-cdrtype']&&_0xb3e44a[_0x5e1b9e('0x1ed2')]===_0x5e1b9e('0x707'))_0xb3e44a[_0x5e1b9e('0x71e')]=_0xb3e44a['agentcalledAt']?_0x156524()(_0xb3e44a[_0x5e1b9e('0x1372')],'YYYY-MM-DD\x20HH:mm:ss')['toDate']():new Date();else{if(_0xb3e44a[_0x5e1b9e('0x207c')]){const _0xc73447=_0xb3e44a[_0x5e1b9e('0x207c')][_0x5e1b9e('0x43a')]('.')[0x0];_0xb3e44a['answeredAt']=_0xc73447?new Date(parseInt(_0xc73447)*0x3e8):new Date();}}(_0xb3e44a[_0x5e1b9e('0xbce')]||_0xb3e44a[_0x5e1b9e('0x27b6')])&&_0x3f3150(_0xb3e44a);}if(_0x400a88){const _0x2b9c12=_0x3c8d8a()[_0x5e1b9e('0x18ab')](_0x41dcd6['tabs'],function(_0x1d83eb){const _0x4edd98=_0x5e1b9e;if(_0x1d83eb[_0x4edd98('0x82b')]&&_0x1d83eb[_0x4edd98('0x82b')]['id'])return _0x1d83eb['type']===_0x4edd98('0x82b')&&_0x1d83eb[_0x4edd98('0x82b')]&&_0x1d83eb['contact']['id']==_0x400a88['id'];return _0x1d83eb[_0x4edd98('0x1810')]===_0x4edd98('0x82b')&&_0x1d83eb['contact']&&_0x1d83eb[_0x4edd98('0x82b')][_0x4edd98('0xa04')]==_0x400a88['phone'];});if(_0x2b9c12){if(_0xb3e44a)return _0x19b20f[_0x5e1b9e('0x250f')][_0x5e1b9e('0x1d97')]({'uniqueid':_0xb3e44a[_0x5e1b9e('0x207c')]})[_0x5e1b9e('0x1964')][_0x5e1b9e('0x173b')](function(_0x2c19ef){const _0x984fb7=_0x5e1b9e;_0x2c19ef&&_0x2c19ef[_0x984fb7('0x6aa')][_0x984fb7('0x543')]>0x0&&(_0xb3e44a[_0x984fb7('0x582')]=_0x3c8d8a()[_0x984fb7('0x1f3c')](_0x2c19ef[_0x984fb7('0x6aa')])[_0x984fb7('0x27b6')]);if(_0x2b9c12[_0x984fb7('0x23d5')]){const _0x1a9c3e=_0x3c8d8a()[_0x984fb7('0x18ab')](_0x2b9c12[_0x984fb7('0x23d5')],function(_0x18abf7){const _0x58a5d3=_0x984fb7;return _0x18abf7[_0x58a5d3('0x207c')]===_0xb3e44a[_0x58a5d3('0x207c')];});!_0x1a9c3e&&_0x2b9c12[_0x984fb7('0x23d5')][_0x984fb7('0x18bb')](_0xb3e44a);}else _0x2b9c12[_0x984fb7('0x23d5')]=[_0xb3e44a];_0x41dcd6['currentTab']=_0x2b9c12['id'];});}else{if(_0x400a88[_0x5e1b9e('0xef2')])return _0x19b20f[_0x5e1b9e('0x2766')]['get']({'ListId':_0x400a88[_0x5e1b9e('0xef2')]})[_0x5e1b9e('0x1964')][_0x5e1b9e('0x173b')](function(_0x233475){const _0x549a99=_0x5e1b9e;return _0x33d12a[_0x549a99('0x9c6')]=_0x233475,_0x19b20f[_0x549a99('0xbb3')]['getCustomFields']({'id':_0x400a88['ListId']})['$promise'];})['then'](function(_0x103d2f){const _0x387861=_0x5e1b9e;_0x33d12a[_0x387861('0x179b')]=_0x103d2f;})[_0x5e1b9e('0x103c')](_0x4bb7ee())['finally'](function(){_0x13e618(_0x33d12a);});else _0x13e618(_0x33d12a);}}else _0x13e618(_0x33d12a);}function _0x1ec9a9(_0x47c559,_0x15d4fa){const _0x42f083=_0x4241ec;let _0x2dcd06=_0x3c8d8a()['find'](_0x41dcd6['tabs'],function(_0x5d4edb){const _0x58e632=a0_0xde5e;return _0x5d4edb['type']==='interaction'&&_0x5d4edb['interaction']&&_0x5d4edb[_0x58e632('0x8d6')]['id']===_0x15d4fa['id']&&_0x5d4edb[_0x58e632('0x1134')]===_0x47c559;});_0x2dcd06?(_0x2dcd06[_0x42f083('0x2418')]=_0x15d4fa[_0x42f083('0x2418')]||![],_0x41dcd6[_0x42f083('0x157f')]=_0x2dcd06['id']):(_0x2dcd06={'type':_0x42f083('0x8d6'),'title':_0x47c559?_0x47c559[_0x42f083('0x1164')]():_0x42f083('0xab2'),'icon':_0x50e776(_0x47c559),'color':_0x40e399(_0x47c559),'channel':_0x47c559,'interaction':_0x15d4fa,'isDraft':_0x15d4fa[_0x42f083('0x2418')]||![]},_0x13e618(_0x2dcd06));}function _0x44c793(_0x43d64f){const _0xdd806c=_0x4241ec,_0x5ad194={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0xdd806c('0x27d8'),'body':_0x43d64f[_0xdd806c('0x172')]?_0xdd806c('0x1158')+_0x43d64f[_0xdd806c('0x172')]:'','focusOnclick':!![],'closeOnClick':!![]};_0x5c8d8b['show'](_0x43d64f[_0xdd806c('0x20d6')],_0x5ad194);}function _0x33a899(_0xca68bf){const _0x37daea=_0x4241ec;_0x5c8d8b['isSupported']()?_0x5c8d8b['requestPermission']()[_0x37daea('0x173b')](function(){_0x44c793(_0xca68bf);},function(_0x24d3d2){const _0x9d0f94=_0x37daea;console[_0x9d0f94('0x15aa')]('Please\x20enable\x20browser\x20notifications!',_0x24d3d2);}):console[_0x37daea('0x15aa')](_0x37daea('0x177'));}function _0x5830fd(_0x2bb991){const _0x4cb1fa=_0x4241ec;if(_0x2bb991&&_0x2bb991['uniqueid']){_0x33a899(_0x2bb991);const _0x28a62f=_0x59bc15(_0x2bb991);if(_0x28a62f){if(_0x19b20f[_0x2bb991['channel']+_0x4cb1fa('0x1bd7')])return _0x41dcd6[_0x4cb1fa('0x157f')]!==_0x28a62f['id']&&(_0x28a62f[_0x4cb1fa('0x681')]+=0x1),_0x19b20f[_0x2bb991[_0x4cb1fa('0x1134')]+_0x4cb1fa('0x1bd7')][_0x4cb1fa('0x1905')]({'id':_0x2bb991['id'],'UserId':_0x41dcd6[_0x4cb1fa('0x166f')]['id']})['$promise'][_0x4cb1fa('0x103c')](_0x4bb7ee());}else _0x70a8ee[_0x4cb1fa('0xb1d')]({'title':_0x2bb991[_0x4cb1fa('0x20d6')],'msg':_0x2bb991[_0x4cb1fa('0x1453')]||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x2bb991[_0x4cb1fa('0x156f')],'html':!![],'shake':_0x2bb991[_0x4cb1fa('0x3c')]||![],'onAdd':function(){const _0x269a65=_0x4cb1fa;_0x41dcd6[_0x269a65('0x1e20')][_0x2bb991[_0x269a65('0x207c')]]=this['id'];},'onAccept':function(){const _0x1158ad=_0x4cb1fa;_0x126a33(_0x2bb991);if(_0x19b20f[_0x2bb991[_0x1158ad('0x1134')]+_0x1158ad('0x1bd7')])return _0x19b20f[_0x2bb991['channel']+_0x1158ad('0x1bd7')]['accept']({'id':_0x2bb991['id'],'UserId':_0x41dcd6[_0x1158ad('0x166f')]['id'],'manual':!![]})[_0x1158ad('0x1964')][_0x1158ad('0x173b')](function(_0x70467c){const _0x4d0d26=_0x1158ad;_0x1ec9a9(_0x70467c[_0x4d0d26('0x1134')],_0x70467c[_0x4d0d26('0x8d6')]),_0x70a8ee[_0x4d0d26('0xdfe')]({'title':'Message\x20properly\x20accepted!','msg':'Message\x20has\x20been\x20accepted!'});})[_0x1158ad('0x103c')](_0x4bb7ee());},'onReject':function(){const _0xfb5114=_0x4cb1fa;_0x126a33(_0x2bb991);if(_0x19b20f[_0x2bb991['channel']+_0xfb5114('0x1bd7')])return _0x19b20f[_0x2bb991[_0xfb5114('0x1134')]+_0xfb5114('0x1bd7')]['reject']({'id':_0x2bb991['id'],'UserId':_0x41dcd6[_0xfb5114('0x166f')]['id']})[_0xfb5114('0x1964')][_0xfb5114('0x173b')](function(){const _0x3527c3=_0xfb5114;_0x70a8ee[_0x3527c3('0xdfe')]({'title':_0x3527c3('0x214c'),'msg':'Message\x20has\x20been\x20rejected!'});})[_0xfb5114('0x103c')](_0x4bb7ee());}});}}function _0x126a33(_0x349d8b){const _0x3d95ac=_0x4241ec;_0x349d8b&&_0x349d8b[_0x3d95ac('0x207c')]&&(_0x41dcd6[_0x3d95ac('0x1e20')][_0x349d8b[_0x3d95ac('0x207c')]]&&(_0x70a8ee[_0x3d95ac('0x1e1b')](_0x41dcd6[_0x3d95ac('0x1e20')][_0x349d8b['uniqueid']]),delete _0x41dcd6['notifications'][_0x349d8b[_0x3d95ac('0x207c')]]));}function _0x14647d(_0x4e6165){const _0x496175=_0x4241ec;if(!_0x4e6165[_0x496175('0xd53')]){_0x566840(_0x4e6165[_0x496175('0x82b')],_0x4e6165[_0x496175('0x9d3')]);return;}_0x6fd43f['show']({'controller':_0x496175('0x154'),'controllerAs':'vm','templateUrl':_0x2574e6,'parent':angular[_0x496175('0xb6d')](_0x24579a[_0x496175('0x1a5')]),'locals':{'contacts':_0x4e6165['contacts'],'callNumber':_0x4e6165['evt'][_0x496175('0x14e8')]?_0x4e6165[_0x496175('0x9d3')][_0x496175('0x1b97')]:_0x4e6165[_0x496175('0x9d3')][_0x496175('0x1c99')]}})['then'](function(_0x19987b){_0x566840(_0x19987b,_0x4e6165['evt']);});}function _0x5818b4(_0x21ae17){const _0x10760e=_0x4241ec;return _0x19b20f[_0x10760e('0x46f')][_0x10760e('0x1d97')]({'id':_0x21ae17[_0x10760e('0x108')]})[_0x10760e('0x1964')]['then'](function(_0x37ef6b){const _0x49ecab=_0x10760e;if(_0x37ef6b){if(_0x3c8d8a()[_0x49ecab('0x8a8')](_0x21ae17['xmd-contactid'])){try{_0x37ef6b[_0x49ecab('0x232b')]=_0x5df7ee()['render'](_0x37ef6b[_0x49ecab('0x232b')],_0x3c8d8a()[_0x49ecab('0x9ef')](_0x21ae17,{'user':_0x41dcd6[_0x49ecab('0x166f')]}));}catch(_0x223752){console[_0x49ecab('0x15aa')](_0x223752);}_0x13e618({'type':_0x49ecab('0x25a1'),'title':_0x37ef6b[_0x49ecab('0x10ad')],'icon':_0x49ecab('0x3e6'),'color':_0x49ecab('0x14eb'),'project':_0x37ef6b,'call':_0x21ae17});}else return _0x19b20f[_0x49ecab('0x1197')][_0x49ecab('0x1d97')]({'id':_0x21ae17[_0x49ecab('0x220c')]})['$promise']['then'](function(_0x393a53){const _0x19ce53=_0x49ecab;try{_0x37ef6b[_0x19ce53('0x232b')]=_0x5df7ee()[_0x19ce53('0xa4c')](_0x37ef6b[_0x19ce53('0x232b')],_0x3c8d8a()['merge'](_0x21ae17,{'user':_0x41dcd6[_0x19ce53('0x166f')],'contact':_0x393a53}));}catch(_0x5090d2){console[_0x19ce53('0x15aa')](_0x5090d2);}_0x13e618({'type':_0x19ce53('0x25a1'),'title':_0x37ef6b['name'],'icon':_0x19ce53('0x3e6'),'color':_0x19ce53('0x14eb'),'project':_0x37ef6b,'call':_0x21ae17,'contact':_0x393a53});})[_0x49ecab('0x103c')](_0x4bb7ee());}})['catch'](_0x4bb7ee());}function _0x5b692b(_0x35a670){const _0x2bc11c=_0x4241ec;if(_0x35a670&&_0x35a670[_0x2bc11c('0x14a4')]){_0x35a670[_0x2bc11c('0x14a4')]=_0x3c8d8a()['replace'](_0x35a670[_0x2bc11c('0x14a4')],'<%3B',''),_0x35a670[_0x2bc11c('0x14a4')]=_0x3c8d8a()['replace'](_0x35a670[_0x2bc11c('0x14a4')],_0x2bc11c('0x20d7'),'');if(_0x35a670['uriLocation'])switch(_0x35a670[_0x2bc11c('0x7f9')]){case'0':_0x3363fd[_0x2bc11c('0x1c2')](_0x35a670['uri']);break;case'1':_0x3363fd[_0x2bc11c('0x1c2')](_0x35a670[_0x2bc11c('0x14a4')],_0x2bc11c('0x241'),_0x2bc11c('0x1a3f')+(_0x35a670[_0x2bc11c('0xe27')]||_0x2bc11c('0x1f7c'))+',height='+_0x35a670['windowHeight']||0x0);break;case'2':{const _0x1244a4={'type':_0x2bc11c('0x2464'),'title':_0x35a670[_0x2bc11c('0x14a4')],'icon':_0x2bc11c('0x1f64'),'color':_0x2bc11c('0xe19'),'src':_0x35a670['uri']};_0x13e618(_0x1244a4);}break;default:_0x3363fd[_0x2bc11c('0x1c2')](_0x35a670[_0x2bc11c('0x14a4')]);}else _0x3363fd[_0x2bc11c('0x1c2')](_0x35a670[_0x2bc11c('0x14a4')]);}}function _0x5f5563(_0x42240b){const _0xd56b59=_0x4241ec;_0x42240b&&_0x42240b[_0xd56b59('0x267e')]&&_0x13e618({'type':_0xd56b59('0xb25'),'title':_0x42240b[_0xd56b59('0x1c99')]||_0xd56b59('0xb25'),'icon':_0xd56b59('0xbd0'),'color':'grey','html':_0x42240b[_0xd56b59('0x267e')]});}function _0x2b2642(_0xad9cf){const _0x4b5308=_0x4241ec,_0x118977=_0xad9cf[_0x4b5308('0x1163')]&&_0xad9cf[_0x4b5308('0x1163')]!==''?_0xad9cf[_0x4b5308('0x1163')]:_0xad9cf[_0x4b5308('0x1c99')],_0x4faca9=_0xad9cf['calleridnum'];return _0x19b20f[_0x4b5308('0x25b6')][_0x4b5308('0x1d97')]({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0xad9cf[_0x4b5308('0x207c')]})[_0x4b5308('0x1964')][_0x4b5308('0x173b')](function(_0x3fa681){const _0x200e7c=_0x4b5308;_0x3fa681['count']&&_0x13e618({'type':_0x200e7c('0x65f'),'title':_0x118977+'\x20<'+_0x4faca9+'>','icon':'fas\x20fa-robot','color':_0x200e7c('0x259b'),'data':{'uniqueid':_0xad9cf[_0x200e7c('0x207c')]}});});}function _0x290d5c(_0x171489){const _0x4cca89=_0x4241ec;console[_0x4cca89('0x1110')](_0x4cca89('0x469'),_0x171489);for(const _0x24fa28 in _0x41dcd6[_0x4cca89('0xa80')]){if(typeof _0x41dcd6['tabs'][_0x24fa28]!=='undefined'){const _0x39f7f6=_0x41dcd6[_0x4cca89('0xa80')][_0x24fa28];if(_0x39f7f6[_0x4cca89('0x23d5')]){console['debug'](_0x4cca89('0x24e8'),_0x24fa28,_0x39f7f6,_0x39f7f6['calls']);const _0x551bd6=_0x3c8d8a()['findIndex'](_0x39f7f6[_0x4cca89('0x23d5')],function(_0x3d57d8){const _0x39b584=_0x4cca89;return _0x3d57d8[_0x39b584('0x207c')]===_0x171489[_0x39b584('0x207c')];});_0x551bd6>=0x0&&!_0x39f7f6[_0x4cca89('0x23d5')][_0x551bd6][_0x4cca89('0x582')]?(console['debug'](_0x4cca89('0x861'),_0x171489[_0x4cca89('0x207c')]),_0x3f3150(_0x39f7f6[_0x4cca89('0x23d5')][_0x551bd6])):console['debug'](_0x4cca89('0x5b7'),_0x171489[_0x4cca89('0x207c')]),_0x41dcd6[_0x4cca89('0x82b')]&&_0x41dcd6[_0x4cca89('0x82b')]['id']&&_0x20431a(_0x3127cd(_0x171489[_0x4cca89('0x207c')],_0x41dcd6[_0x4cca89('0x82b')]['id'],_0x39f7f6),0x3e8);}}}_0x3f6ca8();}function _0x3127cd(_0x4c4f9f,_0x4986c4,_0x2415f6){return function(){const _0x39a5d7=a0_0xde5e,_0x511fce=_0x3c8d8a()[_0x39a5d7('0x18ab')](_0x2415f6[_0x39a5d7('0x23d5')],function(_0x228d65){const _0x35214e=_0x39a5d7;return _0x228d65[_0x35214e('0x207c')]===_0x4c4f9f;});if(_0x511fce)return _0x19b20f[_0x39a5d7('0x250f')][_0x39a5d7('0x1842')]({'id':_0x4c4f9f,'ContactId':_0x4986c4})[_0x39a5d7('0x1964')][_0x39a5d7('0x103c')](function(_0x848e6b){console['error'](_0x848e6b);});};}function _0x3f3150(_0x43edd2){const _0x325741=_0x4241ec;_0x43edd2[_0x325741('0x582')]=new Date();}function _0x4bb7ee(){return function(_0x588fe7){const _0x36a217=a0_0xde5e;if(_0x588fe7[_0x36a217('0x276f')]===0x194)_0x70a8ee[_0x36a217('0xd50')]({'title':_0x45a8fc[_0x36a217('0x1467')](_0x36a217('0x1cb1')),'msg':_0x45a8fc[_0x36a217('0x1467')](_0x36a217('0x151b'))});else{if(_0x588fe7[_0x36a217('0x1e07')]&&_0x588fe7[_0x36a217('0x1e07')]['errors']&&_0x588fe7[_0x36a217('0x1e07')]['errors'][_0x36a217('0x543')]){_0x41dcd6[_0x36a217('0x1d4a')]=_0x588fe7['data'][_0x36a217('0x1d4a')]||[{'message':_0x588fe7['toString'](),'type':_0x36a217('0x20fb')}];for(let _0x4fc287=0x0;_0x4fc287<_0x588fe7[_0x36a217('0x1e07')][_0x36a217('0x1d4a')]['length'];_0x4fc287+=0x1){_0x70a8ee['error']({'title':_0x588fe7[_0x36a217('0x1e07')]['errors'][_0x4fc287][_0x36a217('0x1810')],'msg':_0x588fe7[_0x36a217('0x1e07')][_0x36a217('0x1d4a')][_0x4fc287]['message']});}}else _0x70a8ee[_0x36a217('0x15aa')]({'title':_0x588fe7[_0x36a217('0x276f')]?'API:'+_0x588fe7['status']+_0x36a217('0x160c')+_0x588fe7[_0x36a217('0x2696')]:_0x36a217('0x20fb'),'msg':_0x588fe7[_0x36a217('0x1e07')]?JSON['stringify'](_0x588fe7[_0x36a217('0x1e07')]['message']):_0x588fe7['toString']()});}};}_0x52c72c[_0x4241ec('0xbf6')]('$destroy',function(){const _0x122267=_0x4241ec;for(const _0x2ca8f4 in _0x41dcd6[_0x122267('0x1e20')]){typeof _0x41dcd6[_0x122267('0x1e20')][_0x2ca8f4]!=='undefined'&&_0x126a33({'uniqueid':_0x2ca8f4});}_0x5233a3['removeAllListeners'](_0x122267('0x869')),_0x5233a3[_0x122267('0x251c')]('trigger:jscripty'),_0x5233a3[_0x122267('0x251c')]('trigger:browser:url'),_0x5233a3[_0x122267('0x251c')]('trigger:browser:popup'),_0x5233a3[_0x122267('0x251c')]('notification:save'),_0x5233a3[_0x122267('0x251c')]('notification:remove'),_0x5233a3[_0x122267('0x251c')](_0x122267('0x1039')),_0x5233a3[_0x122267('0x251c')]('voice_outbound_channel:remove');});}function _0x1f1e4e(_0x33e9a8,_0x4ec067,_0xe4ff94,_0x557e2e){const _0x36763f=_0x566993,_0xde9dec={};let _0x220a11={},_0x3265c5={},_0x542c0f={};_0xde9dec[_0x36763f('0xb9c')]=function(){const _0x2e2e72=_0x36763f;_0xde9dec[_0x2e2e72('0x1996')]=_0x571365();},_0xde9dec[_0x36763f('0x1265')]=function(_0x1160e2){const _0x3756db=_0x36763f;return _0xde9dec[_0x3756db('0x1996')]=_0x571365(),_0x3c8d8a()[_0x3756db('0x18ab')](_0x3c8d8a()[_0x3756db('0xcaf')](_0xde9dec[_0x3756db('0x1996')]),function(_0x4e3699){const _0x53fdb1=_0x3756db;return _0x4e3699[_0x53fdb1('0x8d6')]&&_0x4e3699[_0x53fdb1('0x8d6')]['id']===_0x1160e2;});},_0xde9dec[_0x36763f('0x6a7')]=function(_0x2c3f32){const _0x1534cd=_0x36763f;_0xde9dec[_0x1534cd('0x1996')]=_0x571365();const _0x407714=_0x3c8d8a()[_0x1534cd('0x18ab')](_0x3c8d8a()['values'](_0xde9dec[_0x1534cd('0x1996')]),function(_0x573d18){const _0x5f3e96=_0x1534cd;return _0x573d18[_0x5f3e96('0x8d6')]&&_0x573d18[_0x5f3e96('0x8d6')]['id']===_0x2c3f32;});_0x407714&&(delete _0xde9dec[_0x1534cd('0x1996')][_0x407714['id']],_0x515051());},_0xde9dec['add']=function(_0x176c77){const _0x462d18=_0x36763f;_0xde9dec['drafts']=_0x571365();let _0x2acee6=_0x4ec067[_0x462d18('0x1467')](_0x462d18('0x2178'));if(_0x176c77[_0x462d18('0x82b')])_0x2acee6=_0x176c77[_0x462d18('0x82b')][_0x462d18('0x1e50')]||_0x176c77[_0x462d18('0x82b')]['email'];else!_0x3c8d8a()[_0x462d18('0x1a56')](_0x176c77['message']['subject'])&&(_0x2acee6=_0x176c77['message'][_0x462d18('0x11bc')]);const _0x514b97={'type':_0x462d18('0x892'),'title':_0x176c77['account']['key']+_0x462d18('0x160c')+_0x2acee6,'channel':_0x176c77[_0x462d18('0x1134')],'content':_0x176c77[_0x462d18('0x67f')],'account':_0x176c77[_0x462d18('0xde4')],'interaction':_0x176c77[_0x462d18('0x8d6')],'id':_0x3c8d8a()['random'](0x2540be400),'openedAt':new Date(),'saved':![]};_0xde9dec[_0x462d18('0x1996')][_0x514b97['id']]=_0x514b97,_0x515051();},_0xde9dec['update']=function(_0x4c589){const _0x374d5d=_0x36763f;_0xde9dec[_0x374d5d('0x1996')]=_0x571365();const _0x4ce8dc=_0xde9dec['drafts'][_0x4c589['id']];_0x4ce8dc&&(_0x4ce8dc[_0x374d5d('0x732')]=_0x4c589['message'],_0xde9dec[_0x374d5d('0x1996')][_0x4c589['id']]=_0x4ce8dc,_0x515051());},_0xde9dec[_0x36763f('0x1c2')]=function(_0x51854e){const _0x41f031=_0x36763f;_0xde9dec[_0x41f031('0x1996')]=_0x571365();const _0x322799=_0xde9dec[_0x41f031('0x1996')][_0x51854e];_0x322799&&_0x33e9a8['$broadcast'](_0x41f031('0x1c2')+_0x3c8d8a()[_0x41f031('0x10e')](_0x3265c5)+_0x41f031('0x2571'),_0x322799);},_0xde9dec[_0x36763f('0x1a8b')]=function(_0x59968e){const _0x367ed7=_0x36763f;_0xde9dec['drafts']=_0x571365(),_0xde9dec[_0x367ed7('0x1996')][_0x59968e]&&(delete _0xde9dec[_0x367ed7('0x1996')][_0x59968e],_0x515051());};function _0x571365(){const _0x4f991d=_0x36763f;_0x220a11=_0x557e2e[_0x4f991d('0x14d4')]();const _0x3059a8=_0xe4ff94[_0x4f991d('0x1937')][_0x4f991d('0x1949')](_0x4f991d('0xf58')+_0x220a11['id']);_0x3059a8?_0x3265c5=JSON['parse'](_0x3059a8)['currentSidebarTab']:_0x3265c5=_0x4f991d('0x10ea');_0x542c0f=_0xe4ff94[_0x4f991d('0x1937')][_0x4f991d('0x1949')](_0x4f991d('0x22a0')+_0x3265c5+':'+_0x220a11['id']);if(_0x542c0f){const _0x271e45=JSON[_0x4f991d('0x1d5e')](_0x542c0f);!_0x271e45[_0x4f991d('0x1996')]&&(_0x271e45[_0x4f991d('0x1996')]={}),_0x542c0f=_0x271e45;}else _0x542c0f={'drafts':{}};return _0x542c0f['drafts'];}function _0x515051(){const _0x3f4504=_0x36763f;_0x3c8d8a()[_0x3f4504('0x1a56')](_0xde9dec['drafts'])?delete _0x542c0f['drafts']:_0x542c0f[_0x3f4504('0x1996')]=_0xde9dec[_0x3f4504('0x1996')],_0xe4ff94[_0x3f4504('0x1937')]['setItem']('motion2.home.'+_0x3265c5+':'+_0x220a11['id'],JSON[_0x3f4504('0x100b')](_0x542c0f));}return _0xde9dec;}function _0x2a6d96(){const _0x2a04ba=_0x566993,_0x28b26e={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x1a8e6d,'$get':['$q',_0x2a04ba('0x24b5'),_0x2a04ba('0x1d31'),_0x2a04ba('0x25ac'),_0xbd2bb1]};function _0x1a8e6d(_0x142335){const _0x43fa82=_0x2a04ba;for(const _0x3ee728 in _0x142335){typeof _0x28b26e[_0x3ee728]!==_0x43fa82('0x6e5')&&typeof _0x142335[_0x3ee728]!==_0x43fa82('0x6e5')&&(_0x28b26e[_0x3ee728]=_0x142335[_0x3ee728]);}}function _0xbd2bb1(_0x3d4695,_0x172c7e,_0x45c311,_0x5103bd){const _0x105cc0=_0x2a04ba,_0x378e90=_0x45c311[_0x105cc0('0x25d8')]||_0x45c311['mozNotification']||_0x45c311[_0x105cc0('0x23')],_0x21b2b2={'isSupported':_0x5bdab5,'currentPermission':_0x4aaecf,'requestPermission':_0x71dfcb,'show':_0x416ea5,'permissions':{'default':_0x5103bd[_0x105cc0('0xbe9')],'granted':_0x5103bd[_0x105cc0('0x1d2c')],'denied':_0x5103bd[_0x105cc0('0x1e57')]}};return _0x21b2b2;function _0x5bdab5(){const _0x9c05ad=_0x105cc0;return!(typeof _0x378e90===_0x9c05ad('0x6e5'));}function _0x4aaecf(){const _0x48f82f=_0x105cc0;return(_0x378e90||{})[_0x48f82f('0x232d')];}function _0x71dfcb(){const _0x40e54a=_0x105cc0;if(!_0x5bdab5())return _0x3d4695[_0x40e54a('0x12a4')](_0x40e54a('0x9d8'));const _0x1e8ddd=_0x3d4695[_0x40e54a('0x112e')]();return Promise[_0x40e54a('0x155b')](_0x378e90[_0x40e54a('0x11b8')])==_0x378e90[_0x40e54a('0x11b8')]?_0x378e90[_0x40e54a('0x11b8')]()[_0x40e54a('0x173b')](function(_0x2eb6bf){const _0x1f9151=_0x40e54a;_0x5103bd[_0x1f9151('0x1d2c')]===_0x2eb6bf?_0x1e8ddd[_0x1f9151('0x155b')](_0x2eb6bf):_0x1e8ddd[_0x1f9151('0x12a4')](_0x2eb6bf);}):_0x378e90[_0x40e54a('0x11b8')](function(_0x5d977c){const _0x64ec82=_0x40e54a;_0x5103bd[_0x64ec82('0x1d2c')]===_0x5d977c?_0x1e8ddd['resolve'](_0x5d977c):_0x1e8ddd['reject'](_0x5d977c);}),_0x1e8ddd[_0x40e54a('0x2219')];}function _0x416ea5(_0x9fe5c1,_0x47ba8b){const _0x5216a7=_0x105cc0;_0x47ba8b=_0x47ba8b||{};if(!_0x5bdab5()||!_0xfc739e(_0x9fe5c1,_0x47ba8b)||_0x3fec08(_0x47ba8b[_0x5216a7('0x24c2')])||_0x4aaecf()!==_0x5103bd[_0x5216a7('0x1d2c')])return;const _0x45acc0=new _0x378e90(_0x9fe5c1,_0x47ba8b),_0x1f1d9c=_0x47ba8b[_0x5216a7('0xa5d')]||_0x28b26e[_0x5216a7('0xa5d')],_0x1cf4cc=_0x47ba8b[_0x5216a7('0x651')]===undefined?_0x28b26e[_0x5216a7('0x651')]:_0x47ba8b[_0x5216a7('0x651')];_0x45acc0[_0x5216a7('0x1d18')]=function(){const _0x28785b=_0x5216a7;_0x47ba8b[_0x28785b('0x800')]&&_0x47ba8b[_0x28785b('0x800')](),_0x47ba8b[_0x28785b('0x89c')]&&window[_0x28785b('0x6ea')](),_0x47ba8b[_0x28785b('0x10c5')]&&_0x45acc0[_0x28785b('0x2151')]();};if(_0x1cf4cc)_0x124595(_0x45acc0,_0x1f1d9c);return _0x45acc0;}function _0xfc739e(_0x42370b,_0x47afa1){const _0x5cf38e=_0x105cc0,_0x3b773b=angular[_0x5cf38e('0x250b')](_0x42370b),_0x197c60=!_0x47afa1['onClick']||angular[_0x5cf38e('0x1c25')](_0x47afa1[_0x5cf38e('0x800')]);return _0x3b773b&&_0x197c60;}function _0x3fec08(_0x3d7e67){const _0xe4124f=_0x105cc0;if(!_0x3d7e67&&!_0x28b26e[_0xe4124f('0x24c2')])return;return!(window['document'][_0xe4124f('0x202b')]||window[_0xe4124f('0x222a')][_0xe4124f('0x27ee')]||window[_0xe4124f('0x222a')][_0xe4124f('0x25b0')]);}function _0x124595(_0x3194b1,_0x44abb1){const _0x5a7dbc=_0x105cc0,_0x16d523=_0x44abb1*0x3e8;_0x172c7e(_0x3194b1['close'][_0x5a7dbc('0xfa5')](_0x3194b1),_0x16d523,![]);}}}function _0x5ae7f1(){const _0x1a4dcd=_0x566993,_0x5528a7=angular[_0x1a4dcd('0x1a89')](['ng'])[_0x1a4dcd('0x1d97')](_0x1a4dcd('0x21d9')),_0x1c557b=[],_0x32f86e=this;_0x32f86e[_0x1a4dcd('0x10e0')]=_0x27e34e,_0x32f86e[_0x1a4dcd('0x2157')]=_0x313b36;function _0x27e34e(_0x41a020,_0x55c285){const _0x42dfbc=_0x1a4dcd;if(!angular[_0x42dfbc('0x250b')](_0x41a020)){_0x5528a7[_0x42dfbc('0x15aa')](_0x42dfbc('0xedd'));return;}const _0x48fb9c=_0x41a020['split']('.'),_0x20f4c7=_0x48fb9c[_0x48fb9c[_0x42dfbc('0x543')]-0x1],_0x9ba997=_0x3b88be(_0x48fb9c);let _0x5a6575=![];for(let _0x30740f=0x0;_0x30740f<_0x9ba997[_0x42dfbc('0x543')];_0x30740f++){if(_0x9ba997[_0x30740f][_0x42dfbc('0x22c')]===_0x20f4c7){_0x5a6575=_0x9ba997[_0x30740f];break;}}_0x5a6575?(angular[_0x42dfbc('0x2d3')](_0x5a6575,_0x55c285),_0x5a6575[_0x42dfbc('0x4e0')]=_0x46f06e(_0x5a6575)):(_0x55c285[_0x42dfbc('0x13da')]=[],(angular[_0x42dfbc('0x8a8')](_0x55c285[_0x42dfbc('0x1c3')])||!angular[_0x42dfbc('0x12aa')](_0x55c285[_0x42dfbc('0x1c3')]))&&(_0x55c285[_0x42dfbc('0x1c3')]=0x1),_0x55c285[_0x42dfbc('0x22c')]=_0x20f4c7,_0x55c285[_0x42dfbc('0xf0')]=_0x41a020,_0x55c285['uisref']=_0x46f06e(_0x55c285),_0x9ba997['push'](_0x55c285));}function _0x313b36(_0x3f51e8){const _0x1fb047=_0x1a4dcd;if(!angular[_0x1fb047('0x250b')](_0x3f51e8)){_0x5528a7['error']('path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)');return;}let _0x39af8d=_0x1c557b;const _0x4773b5=_0x3f51e8[_0x1fb047('0x43a')]('.');for(let _0x404cea=0x0;_0x404cea<_0x4773b5['length'];_0x404cea++){const _0x622b49=_0x4773b5[_0x404cea];for(let _0x24efc7=0x0;_0x24efc7<_0x39af8d[_0x1fb047('0x543')];_0x24efc7++){if(_0x39af8d[_0x24efc7][_0x1fb047('0x22c')]===_0x622b49){if(_0x39af8d[_0x24efc7][_0x1fb047('0xf0')]===_0x3f51e8)return _0x39af8d['splice'](_0x24efc7,0x1),!![];_0x39af8d=_0x39af8d[_0x24efc7][_0x1fb047('0x13da')];break;}}}return![];}function _0x3b88be(_0x3e5201){const _0x27c726=_0x1a4dcd;let _0x32a7cd=_0x1c557b;if(_0x3e5201[_0x27c726('0x543')]===0x1)return _0x32a7cd;_0x3e5201[_0x27c726('0x362')]();for(let _0x50aaca=0x0;_0x50aaca<_0x3e5201['length'];_0x50aaca++){const _0x2d356f=_0x3e5201[_0x50aaca];let _0x5c94a8=!![];for(let _0xcbea53=0x0;_0xcbea53<_0x32a7cd[_0x27c726('0x543')];_0xcbea53++){if(_0x32a7cd[_0xcbea53][_0x27c726('0x22c')]===_0x2d356f){_0x32a7cd=_0x32a7cd[_0xcbea53][_0x27c726('0x13da')],_0x5c94a8=![];break;}}if(_0x5c94a8){const _0x2786ee={'_id':_0x2d356f,'_path':_0x3e5201['join']('.'),'title':_0x2d356f,'weight':0x1,'children':[]};_0x32a7cd['push'](_0x2786ee),_0x32a7cd=_0x2786ee[_0x27c726('0x13da')];}}return _0x32a7cd;}function _0x46f06e(_0x5c3379){const _0x4d505f=_0x1a4dcd;let _0x2f2e8e='';return angular[_0x4d505f('0x4a5')](_0x5c3379[_0x4d505f('0x1a49')])&&(_0x2f2e8e=_0x5c3379[_0x4d505f('0x1a49')],angular[_0x4d505f('0x4a5')](_0x5c3379[_0x4d505f('0x819')])&&angular['isObject'](_0x5c3379[_0x4d505f('0x819')])&&(_0x2f2e8e=_0x2f2e8e+'('+angular[_0x4d505f('0x36c')](_0x5c3379[_0x4d505f('0x819')])+')')),_0x2f2e8e;}this['$get']=function(){const _0x47255f={'saveItem':_0x27e34e,'getNavigation':_0x5bdf2a};return _0x47255f;function _0x5bdf2a(_0x21abee){const _0x4bcfb5=a0_0xde5e;if(_0x21abee){for(let _0x52ae66=0x0;_0x52ae66<_0x1c557b[_0x4bcfb5('0x543')];_0x52ae66++){if(_0x1c557b[_0x52ae66][_0x4bcfb5('0x22c')]===_0x21abee)return[_0x1c557b[_0x52ae66]];}return null;}return _0x1c557b;}};}const _0x21d887={'DEFAULT':_0x566993('0x1ef2'),'GRANTED':_0x566993('0x2097'),'DENIED':_0x566993('0x5dd')};_0x4e520c['$inject']=[_0x566993('0xbd4')];function _0x4e520c(_0x52efcb){const _0xb03131=_0x566993,_0x4976ac=this;_0x4976ac['setting']={},_0x4976ac['messages']={'count':0x0,'rows':[]},_0x4976ac['showInteraction']=![];function _0x84662f(_0x36bdd6,_0x4ad10d){const _0x5d11c6=a0_0xde5e;_0x4976ac[_0x5d11c6('0x251')]=_0x4ad10d,_0x4976ac[_0x5d11c6('0x1e66')]=_0x36bdd6,_0x4976ac['tab'][_0x5d11c6('0x1049')]=!![];if(_0x4976ac[_0x5d11c6('0x1e66')]&&_0x4976ac['tab'][_0x5d11c6('0x1e07')]&&_0x4976ac[_0x5d11c6('0x1e66')][_0x5d11c6('0x1e07')][_0x5d11c6('0x207c')])return _0x52efcb[_0x5d11c6('0x25b6')][_0x5d11c6('0x1d97')]({'uniqueid':_0x4976ac[_0x5d11c6('0x1e66')][_0x5d11c6('0x1e07')]['uniqueid']})[_0x5d11c6('0x1964')][_0x5d11c6('0x173b')](function(_0x29413e){const _0x3d5e31=_0x5d11c6;_0x4976ac[_0x3d5e31('0x558')]=_0x29413e;})[_0x5d11c6('0xf25')](function(){const _0x893ba1=_0x5d11c6;_0x4976ac[_0x893ba1('0x39d')]=!![];});else _0x4976ac[_0x5d11c6('0x39d')]=!![];}function _0x2c8d9d(_0xb2b93e){const _0x38f31e=a0_0xde5e;switch(_0x4976ac['setting']['messagesAlignment']){case'left':if(_0xb2b93e[_0x38f31e('0x15f4')]=='in')return _0xb2b93e[_0x38f31e('0x15f4')];return _0x38f31e('0x1a51');case _0x38f31e('0x14af'):if(_0xb2b93e[_0x38f31e('0x15f4')]=='in')return _0x38f31e('0x1f18');return _0xb2b93e[_0x38f31e('0x15f4')];default:return _0xb2b93e[_0x38f31e('0x15f4')];}}_0x4976ac[_0xb03131('0xb9c')]=_0x84662f,_0x4976ac[_0xb03131('0x1c5f')]=_0x2c8d9d;}const _0x36ffc2=_0x4e520c,_0xf36d4e=_0x21a6a1['p']+_0x566993('0x2734'),_0x373d52=_0x21a6a1['p']+_0x566993('0x2316'),_0x1b4212=_0x21a6a1['p']+_0x566993('0x15cb'),_0x6ad3a0=_0x21a6a1['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog.html',_0x322c80=_0x21a6a1['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog.html',_0x33b2a8=_0x21a6a1['p']+_0x566993('0x3e8'),_0x317183=_0x21a6a1['p']+_0x566993('0xbee'),_0x2bb9a1=_0x21a6a1['p']+_0x566993('0x1b27');_0x431e36[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x66f'),'$q',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),'$translate',_0x566993('0x1f9')];const _0x451c7f={'fax':_0x6ad3a0,'mail':_0x322c80,'openchannel':_0x33b2a8,'sms':_0x317183,'whatsapp':_0x2bb9a1};function _0x431e36(_0x54ef2d,_0x2e4651,_0x3fa066,_0x212c37,_0x20a633,_0x7974e6,_0x585335,_0x42c2a6,_0x54aab0,_0x1ef00a){const _0x469cb9=_0x566993,_0x14b8d8=this;_0x14b8d8['user']=_0x42c2a6[_0x469cb9('0x14d4')](),_0x14b8d8[_0x469cb9('0x26e8')]=_0x1ef00a[_0x469cb9('0x26e8')](),_0x14b8d8[_0x469cb9('0x276a')]=[],_0x14b8d8['queryHopper']={'fields':'id,phone,scheduledat','sort':'-updatedAt','limit':0xa,'page':0x1},_0x14b8d8[_0x469cb9('0x1d83')]={'fields':_0x469cb9('0x2fe'),'sort':_0x469cb9('0x1769'),'limit':0xa,'page':0x1},_0x14b8d8[_0x469cb9('0xa2c')]={'fields':_0x469cb9('0x372'),'sort':_0x469cb9('0x1769'),'limit':0xa,'page':0x1},_0x14b8d8[_0x469cb9('0x23dc')]={'rows':[],'count':0x0},_0x14b8d8[_0x469cb9('0x21ef')]={'rows':[],'count':0x0},_0x14b8d8['histories']={'rows':[],'count':0x0},_0x14b8d8[_0x469cb9('0x228e')]=new Date(_0x156524()()['startOf']('month')[_0x469cb9('0x1931')](0x1,'seconds')[_0x469cb9('0xaf5')](0x0,!![])[_0x469cb9('0xddc')]()),_0x14b8d8[_0x469cb9('0x2623')]=new Date(_0x156524()()[_0x469cb9('0x733')]('month')['subtract'](0x1,_0x469cb9('0x48d'))[_0x469cb9('0xaf5')](0x0,!![])['format']()),_0x14b8d8[_0x469cb9('0x929')]=_0x4039b4,_0x14b8d8[_0x469cb9('0x16dd')]=_0xc306e2,_0x14b8d8[_0x469cb9('0x26f3')]=_0x5f0846,_0x14b8d8[_0x469cb9('0x67a')]=_0x212c37[_0x469cb9('0x1d44')]['vm'][_0x469cb9('0x67a')],_0x14b8d8[_0x469cb9('0x2440')]=_0xbd1516,_0x14b8d8[_0x469cb9('0xe60')]=_0x1f392f,_0x14b8d8[_0x469cb9('0x2ed')]=_0x5ec384,_0x14b8d8['getDateFromString']=_0x921a43,_0x14b8d8[_0x469cb9('0x231c')]=_0x2b479d,_0x14b8d8['getHoppers']=_0x28fc6d,_0x14b8d8[_0x469cb9('0x26b5')]=_0x2b70a2,_0x14b8d8[_0x469cb9('0xbcb')]=_0x57f925,_0x14b8d8['getJscriptyProjects']=_0x6072bb,_0x14b8d8[_0x469cb9('0xdf3')]=_0x3a4584,_0x14b8d8['getFaxAccounts']=_0x3a8d07,_0x14b8d8[_0x469cb9('0x112b')]=_0x179623,_0x14b8d8[_0x469cb9('0xb90')]=_0x3d35e6,_0x14b8d8[_0x469cb9('0x133b')]=_0x104c96,_0x14b8d8[_0x469cb9('0x5c2')]=_0x3de682,_0x14b8d8['getLists']=_0x5f3650,_0x14b8d8[_0x469cb9('0x68a')]=_0x3d3215,_0x14b8d8[_0x469cb9('0xb9c')]=_0x5b6e53,_0x14b8d8[_0x469cb9('0x1f1b')]=_0x26e7e8,_0x14b8d8[_0x469cb9('0x257a')]=_0x9d3d3d,_0x14b8d8[_0x469cb9('0x1f51')]=_0x515e4d,_0x14b8d8[_0x469cb9('0x1f2d')]=_0x17c4c1,_0x14b8d8[_0x469cb9('0xee3')]();function _0x17c4c1(_0x5ef924){const _0x7f27c2=_0x469cb9;if(_0x5ef924['FaxAccountId'])return _0x3c8d8a()[_0x7f27c2('0x2814')](_0x3c8d8a()[_0x7f27c2('0x8a2')](_0x14b8d8[_0x7f27c2('0x17f2')]?_0x14b8d8['faxAccounts'][_0x7f27c2('0x6aa')]:[],'id'),_0x5ef924[_0x7f27c2('0xcba')]);else{if(_0x5ef924[_0x7f27c2('0xf5a')])return _0x3c8d8a()[_0x7f27c2('0x2814')](_0x3c8d8a()[_0x7f27c2('0x8a2')](_0x14b8d8[_0x7f27c2('0x1a65')]?_0x14b8d8[_0x7f27c2('0x1a65')]['rows']:[],'id'),_0x5ef924[_0x7f27c2('0xf5a')]);else{if(_0x5ef924[_0x7f27c2('0x23b1')])return _0x3c8d8a()['includes'](_0x3c8d8a()[_0x7f27c2('0x8a2')](_0x14b8d8[_0x7f27c2('0x130a')]?_0x14b8d8[_0x7f27c2('0x130a')]['rows']:[],'id'),_0x5ef924['SmsAccountId']);else{if(_0x5ef924[_0x7f27c2('0x2720')])return _0x3c8d8a()[_0x7f27c2('0x2814')](_0x3c8d8a()[_0x7f27c2('0x8a2')](_0x14b8d8[_0x7f27c2('0x2154')]?_0x14b8d8[_0x7f27c2('0x2154')]['rows']:[],'id'),_0x5ef924[_0x7f27c2('0x2720')]);else{if(_0x5ef924['MailAccountId'])return _0x3c8d8a()[_0x7f27c2('0x2814')](_0x3c8d8a()[_0x7f27c2('0x8a2')](_0x14b8d8[_0x7f27c2('0x2632')]?_0x14b8d8['mailAccounts']['rows']:[],'id'),_0x5ef924[_0x7f27c2('0x559')]);else{if(_0x5ef924[_0x7f27c2('0x1796')])return _0x3c8d8a()[_0x7f27c2('0x2814')](_0x3c8d8a()['map'](_0x14b8d8[_0x7f27c2('0x1e0e')]?_0x14b8d8[_0x7f27c2('0x1e0e')]['rows']:[],'id'),_0x5ef924[_0x7f27c2('0x1796')]);else{if(_0x5ef924['amaflags'])return!![];}}}}}}return![];}function _0x9d3d3d(_0x33844f,_0x3422c3){const _0x2b95b4=_0x469cb9;try{if(_0x3422c3[_0x2b95b4('0x559')])return _0x212c37[_0x2b95b4('0x1d44')][_0x2b95b4('0x1d44')]['$parent']['vm'][_0x2b95b4('0xe63')](_0x2b95b4('0x108a'),_0x3422c3);else{if(_0x3422c3[_0x2b95b4('0x1796')])return _0x212c37[_0x2b95b4('0x1d44')][_0x2b95b4('0x1d44')][_0x2b95b4('0x1d44')]['vm']['addInteractionTab'](_0x2b95b4('0x8c5'),_0x3422c3);else{if(_0x3422c3[_0x2b95b4('0x23b1')])return _0x212c37[_0x2b95b4('0x1d44')][_0x2b95b4('0x1d44')]['$parent']['vm'][_0x2b95b4('0xe63')](_0x2b95b4('0x1a8f'),_0x3422c3);else{if(_0x3422c3[_0x2b95b4('0x2720')])return _0x212c37[_0x2b95b4('0x1d44')]['$parent'][_0x2b95b4('0x1d44')]['vm']['addInteractionTab'](_0x2b95b4('0x245'),_0x3422c3);else{if(_0x3422c3[_0x2b95b4('0xf5a')])return _0x212c37[_0x2b95b4('0x1d44')][_0x2b95b4('0x1d44')][_0x2b95b4('0x1d44')]['vm'][_0x2b95b4('0xe63')](_0x2b95b4('0xab2'),_0x3422c3);else{if(_0x3422c3[_0x2b95b4('0xcba')])return _0x212c37[_0x2b95b4('0x1d44')][_0x2b95b4('0x1d44')][_0x2b95b4('0x1d44')]['vm'][_0x2b95b4('0xe63')](_0x2b95b4('0x16d'),_0x3422c3);}}}}}}catch(_0xf77a82){_0x585335[_0x2b95b4('0x15aa')]({'title':_0x2b95b4('0x219'),'msg':'Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction'});}}function _0x3a7c18(_0x1a62fe){const _0x30d4c3=_0x469cb9;if(!_0x1a62fe[_0x30d4c3('0x2766')])return'('+_0x54aab0[_0x30d4c3('0x1467')](_0x30d4c3('0x1f9d'))+')';const _0x26885a=_0x3c8d8a()[_0x30d4c3('0x2714')]([_0x1a62fe[_0x30d4c3('0x2766')],_0x1a62fe[_0x30d4c3('0x1a84')],_0x1a62fe[_0x30d4c3('0x19b7')]]);return'('+_0x26885a[_0x30d4c3('0x2259')](_0x30d4c3('0x160c'))+')';}function _0x4237ed(_0x5e3b12){const _0x4f36ce=_0x469cb9;_0x5e3b12&&_0x5e3b12['count']&&_0x5e3b12[_0x4f36ce('0x6aa')][_0x4f36ce('0x543')]&&(_0x14b8d8[_0x4f36ce('0x276a')]=_0x3c8d8a()[_0x4f36ce('0x163f')](_0x14b8d8[_0x4f36ce('0x276a')],_0x5e3b12[_0x4f36ce('0x6aa')]),_0x14b8d8[_0x4f36ce('0x276a')][_0x4f36ce('0xa6a')](function(_0x2babff){_0x2babff['dispositionsValues']=_0x3a7c18(_0x2babff);}));}function _0x3d4aa5(_0x179793){const _0x455b84=_0x469cb9,_0x32a9c8=['mail',_0x455b84('0x8c5'),_0x455b84('0x1a8f'),_0x455b84('0xab2'),_0x455b84('0x16d'),_0x455b84('0x245')];if(_0x179793&&_0x179793['id']){for(let _0x4e01e2=0x0;_0x4e01e2<_0x32a9c8[_0x455b84('0x543')];_0x4e01e2++){_0x7974e6[_0x32a9c8[_0x4e01e2]+_0x455b84('0x3a9')][_0x455b84('0x1d97')]({'ContactId':_0x179793['id'],'journey':!![],'includeAll':!![]})[_0x455b84('0x1964')][_0x455b84('0x173b')](_0x4237ed);}_0x7974e6[_0x455b84('0x250f')]['get']({'ContactId':_0x179793['id'],'includeAll':!![]})[_0x455b84('0x1964')][_0x455b84('0x173b')](_0x4237ed)[_0x455b84('0x103c')](function(_0x5f3e7a){console['error'](_0x5f3e7a);});}}function _0x3f9f88(_0x10aa4e){const _0x467b94=_0x469cb9;switch(_0x10aa4e){case _0x467b94('0x8c5'):return _0x467b94('0x77f');case'mail':return _0x467b94('0x1dfa');case'sms':return _0x467b94('0x1989');case _0x467b94('0xab2'):return'amber-A200';case _0x467b94('0x16d'):return _0x467b94('0x2195');case _0x467b94('0x245'):return _0x467b94('0x332');default:return _0x467b94('0x719');}}function _0x515e4d(_0x1fbe56){const _0x6de2d0=_0x469cb9;let _0x46f3a7='';if(_0x1fbe56[_0x6de2d0('0xcba')])_0x46f3a7=_0x6de2d0('0x16d');else{if(_0x1fbe56[_0x6de2d0('0xf5a')])_0x46f3a7='openchannel';else{if(_0x1fbe56[_0x6de2d0('0x23b1')])_0x46f3a7='sms';else{if(_0x1fbe56[_0x6de2d0('0x2720')])_0x46f3a7=_0x6de2d0('0x245');else{if(_0x1fbe56[_0x6de2d0('0x559')])_0x46f3a7=_0x6de2d0('0x108a');else{if(_0x1fbe56[_0x6de2d0('0x1796')])_0x46f3a7=_0x6de2d0('0x8c5');else _0x1fbe56[_0x6de2d0('0x610')]&&(_0x46f3a7=_0x6de2d0('0x21a8'));}}}}}return _0x3f9f88(_0x46f3a7);}function _0x5b6e53(_0x5022fd,_0x5eb411){const _0x131928=_0x469cb9;return _0x14b8d8[_0x131928('0x1e66')]=_0x5022fd,_0x212c37[_0x131928('0x217e')]([_0x131928('0x27f9'),_0x131928('0x1fd5')],function(_0x546143){const _0x373656=_0x131928;_0x14b8d8['tab'][_0x373656('0x1049')]=_0x546143[0x0]&&_0x546143[0x1];}),_0x14b8d8[_0x131928('0x1a29')]=_0x5eb411,_0x14b8d8['contact']=_0x14b8d8[_0x131928('0x1e66')][_0x131928('0x82b')],_0x14b8d8[_0x131928('0x764')]=![],_0x14b8d8[_0x131928('0x157f')]=0x0,_0x7974e6[_0x131928('0x166f')][_0x131928('0x1d97')]({'fields':_0x131928('0x27e5'),'nolimit':!![]})[_0x131928('0x1964')][_0x131928('0x173b')](function(_0x446a68){const _0x4a7067=_0x131928;_0x14b8d8[_0x4a7067('0x1e14')]=_0x446a68||{'count':0x0,'rows':[]},_0x14b8d8[_0x4a7067('0xa27')]=_0x3c8d8a()[_0x4a7067('0xa88')](_0x3c8d8a()[_0x4a7067('0x128')](_0x14b8d8['users'][_0x4a7067('0x6aa')],'id'),_0x4a7067('0x572'));return;})[_0x131928('0x173b')](function(){const _0x5922a4=_0x131928,_0x3e4883=[];for(let _0x28decd=0x0;_0x28decd<_0x14b8d8['tab'][_0x5922a4('0x23d5')][_0x5922a4('0x543')];_0x28decd++){const _0x4f46dd=_0x14b8d8[_0x5922a4('0x1e66')]['calls'][_0x28decd];_0x3e4883['push'](_0x7974e6[_0x5922a4('0x250f')]['get']({'uniqueid':_0x4f46dd[_0x5922a4('0x207c')]})[_0x5922a4('0x1964')]['then'](function(_0x2fe0a6){const _0x13d9e2=_0x5922a4;_0x2fe0a6&&_0x2fe0a6[_0x13d9e2('0x6aa')]['length']>0x0&&(_0x4f46dd['disposedAt']=_0x3c8d8a()[_0x13d9e2('0x1f3c')](_0x2fe0a6[_0x13d9e2('0x6aa')])[_0x13d9e2('0x27b6')]);return;}));}return _0x20a633['all'](_0x3e4883);})[_0x131928('0x173b')](function(){const _0x10dcd5=_0x131928;if(_0x14b8d8[_0x10dcd5('0x82b')]&&_0x14b8d8[_0x10dcd5('0x82b')]['id']){const _0x25597a={'id':_0x14b8d8['contact']['id'],'ListId':_0x14b8d8[_0x10dcd5('0x82b')][_0x10dcd5('0xef2')],'limit':0x1,'offset':0x0,'sort':_0x10dcd5('0x1769')};return _0x7974e6[_0x10dcd5('0x1197')][_0x10dcd5('0x1d97')](_0x25597a)[_0x10dcd5('0x1964')]['then'](function(_0xb3b936){const _0x401261=_0x10dcd5;return _0x14b8d8['contact']=_0xb3b936,_0x14b8d8[_0x401261('0x1e66')][_0x401261('0x82b')]=_0xb3b936,_0x7974e6['user'][_0x401261('0x1d71')]({'id':_0x14b8d8[_0x401261('0x166f')]['id'],'ids':[_0x14b8d8['contact']['id']]});})[_0x10dcd5('0x173b')](function(){const _0x44def5=_0x10dcd5;if(_0x14b8d8[_0x44def5('0x82b')][_0x44def5('0xef2')])return _0x7974e6['disposition'][_0x44def5('0x1d97')]({'ListId':_0x14b8d8[_0x44def5('0x82b')]['ListId']})[_0x44def5('0x1964')]['then'](function(_0x501f9d){const _0x592ca1=_0x44def5;return _0x14b8d8[_0x592ca1('0x1e66')][_0x592ca1('0x9c6')]=_0x501f9d,_0x7974e6[_0x592ca1('0xbb3')]['getCustomFields']({'id':_0x14b8d8[_0x592ca1('0x82b')]['ListId']})['$promise'];})[_0x44def5('0x173b')](function(_0x472d4d){const _0x127057=_0x44def5;_0x14b8d8[_0x127057('0x1e66')][_0x127057('0x179b')]=_0x472d4d;return;});return;})[_0x10dcd5('0x173b')](function(){const _0x2a67d6=_0x10dcd5;try{_0x14b8d8['tab'][_0x2a67d6('0x2472')]=_0x212c37[_0x2a67d6('0x1d44')]['$parent'][_0x2a67d6('0x1d44')]['vm'][_0x2a67d6('0x14fa')],_0x14b8d8[_0x2a67d6('0x1e66')][_0x2a67d6('0x9e8')]=_0x212c37[_0x2a67d6('0x1d44')][_0x2a67d6('0x1d44')][_0x2a67d6('0x1d44')]['vm'][_0x2a67d6('0x687')],_0x14b8d8[_0x2a67d6('0x1e66')][_0x2a67d6('0x13df')]=_0x212c37[_0x2a67d6('0x1d44')][_0x2a67d6('0x1d44')][_0x2a67d6('0x1d44')]['vm']['globalCompanies'],_0x14b8d8[_0x2a67d6('0x1e66')][_0x2a67d6('0x22ac')]=_0x212c37[_0x2a67d6('0x1d44')][_0x2a67d6('0x1d44')][_0x2a67d6('0x1d44')]['vm'][_0x2a67d6('0x1550')],_0x14b8d8['tab'][_0x2a67d6('0x1823')]=0x0,_0x14b8d8[_0x2a67d6('0x82b')][_0x2a67d6('0xef2')]&&(_0x14b8d8[_0x2a67d6('0x1e66')]['userLists'][_0x2a67d6('0x6aa')]=_0x3c8d8a()[_0x2a67d6('0x6ef')](_0x14b8d8[_0x2a67d6('0x1e66')][_0x2a67d6('0x2472')]['rows'],_0x3c8d8a()[_0x2a67d6('0x278d')](_0x14b8d8['tab'][_0x2a67d6('0x9e8')][_0x2a67d6('0x6aa')],{'id':_0x14b8d8[_0x2a67d6('0x82b')]['ListId']}),'id'),_0x14b8d8[_0x2a67d6('0x3e3')]=_0x3c8d8a()[_0x2a67d6('0x18ab')](_0x14b8d8[_0x2a67d6('0x1e66')][_0x2a67d6('0x2472')]['rows'],{'id':_0x14b8d8[_0x2a67d6('0x82b')][_0x2a67d6('0xef2')]}));}catch(_0x1f669e){}_0x14b8d8[_0x2a67d6('0x25af')](),_0x14b8d8[_0x2a67d6('0x26b5')](),_0x14b8d8[_0x2a67d6('0xbcb')](),_0x14b8d8[_0x2a67d6('0xdf3')](),_0x14b8d8[_0x2a67d6('0x2655')](),_0x14b8d8[_0x2a67d6('0x112b')](),_0x14b8d8['getWhatsappAccounts'](),_0x14b8d8[_0x2a67d6('0x133b')](),_0x14b8d8[_0x2a67d6('0x5c2')](),_0x14b8d8[_0x2a67d6('0xe91')]();return;})[_0x10dcd5('0x173b')](function(){const _0x9554fc=_0x10dcd5;return _0x7974e6[_0x9554fc('0x1197')]['getTags']({'id':_0x14b8d8[_0x9554fc('0x82b')]['id']})[_0x9554fc('0x1964')][_0x9554fc('0x173b')](function(_0x4dc73a){const _0x123a3b=_0x9554fc;_0x14b8d8['tab'][_0x123a3b('0xc38')]=_0x3c8d8a()[_0x123a3b('0x8a2')](_0x4dc73a[_0x123a3b('0x6aa')],'id');return;});});}else{_0x14b8d8[_0x10dcd5('0x764')]=!![];if(_0x5022fd[_0x10dcd5('0x1823')])return console[_0x10dcd5('0xe37')](_0x10dcd5('0x1823')),_0x14b8d8[_0x10dcd5('0x929')]();return;}})['then'](_0x3d4aa5(_0x14b8d8['contact']));}function _0x3d3215(_0x2bfaec,_0x4c24c7,_0x3e7f1e,_0x46ed88){const _0x31415e=_0x469cb9,_0xb964cf=_0x4c24c7[_0x31415e('0x1e68')]();_0x54ef2d['show']({'controller':'Compose'+_0x4c24c7+_0x31415e('0xcf9'),'controllerAs':'vm','templateUrl':_0x451c7f[_0xb964cf],'parent':angular[_0x31415e('0xb6d')](_0x2e4651['body']),'clickOutsideToClose':![],'locals':{'account':_0x3e7f1e,'message':{'to':_0xb964cf==_0x31415e('0x108a')?_0x46ed88:_0x46ed88[_0x31415e('0x43a')](',')},'type':_0x31415e('0x195f'),'interaction':{'Contact':_0x14b8d8[_0x31415e('0x82b')]}},'fullscreen':!![]})[_0x31415e('0x173b')](function(_0x1bee41){const _0x3dee73=_0x31415e;return _0x7974e6[_0xb964cf+_0x3dee73('0x1b91')][_0x3dee73('0x482')]({'id':_0x3e7f1e['id']},_0x1bee41)[_0x3dee73('0x1964')]['then'](function(_0x20b936){const _0x3204e9=_0x3dee73;if(_0x4c24c7===_0x3204e9('0x12c6')){const _0x19b2c3=_0x20b936;if(_0x19b2c3&&_0x19b2c3[_0x3204e9('0x2634')]&&_0x19b2c3[_0x3204e9('0x2634')][_0x3204e9('0x543')]){if(_0x1bee41['attachments']&&_0x1bee41['attachments'][_0x3204e9('0x543')])for(let _0x32523d=0x0;_0x32523d<_0x1bee41[_0x3204e9('0x178b')]['length'];_0x32523d+=0x1){_0x7974e6[_0x3204e9('0x1d9f')]['update']({'id':_0x1bee41[_0x3204e9('0x178b')][_0x32523d]['id']},{'MailMessageId':_0x3c8d8a()[_0x3204e9('0x1e85')](_0x19b2c3[_0x3204e9('0x2634')])['id']});}_0x585335[_0x3204e9('0xdfe')]({'title':_0x3204e9('0x2370'),'msg':'Message\x20has\x20been\x20sent!'});if(_0x19b2c3['closed']){_0x19b2c3['disposition']=null;const _0x47b479=!_0x3e7f1e[_0x3204e9('0x130f')],_0x5a1b9e=_0x14b8d8[_0x3204e9('0x166f')]['voicePause']||_0x14b8d8[_0x3204e9('0x166f')]['chatPause']||_0x14b8d8[_0x3204e9('0x166f')][_0x3204e9('0xf41')]||_0x14b8d8[_0x3204e9('0x166f')][_0x3204e9('0x106')]||_0x14b8d8[_0x3204e9('0x166f')][_0x3204e9('0x13eb')];_0x54ef2d[_0x3204e9('0x1cb7')]({'controller':_0x3204e9('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular[_0x3204e9('0xb6d')](_0x2e4651[_0x3204e9('0x1a5')]),'onRemoving':function(){const _0x4c0f9b=_0x3204e9;_0x14b8d8[_0x4c0f9b('0x166f')]&&_0x3e7f1e['mandatoryDisposition']&&!_0x5a1b9e&&_0x7974e6[_0x4c0f9b('0x166f')][_0x4c0f9b('0x9da')]({'id':_0x14b8d8[_0x4c0f9b('0x166f')]['id']})[_0x4c0f9b('0x1964')]['catch'](function(_0x3dc30a){const _0x3e1652=_0x4c0f9b;console[_0x3e1652('0x15aa')](_0x3dc30a);});},'clickOutsideToClose':_0x47b479,'escapeToClose':_0x47b479,'locals':{'user':_0x14b8d8[_0x3204e9('0x166f')],'channel':'mail','interaction':_0x19b2c3}});}else _0x212c37[_0x3204e9('0x1d44')]['vm']['addInteractionTab'](_0x3204e9('0x108a'),_0x19b2c3);}}else _0x585335[_0x3204e9('0xdfe')]({'title':_0x3204e9('0x2370'),'msg':_0x3204e9('0x1950')}),_0x212c37[_0x3204e9('0x1d44')]['vm'][_0x3204e9('0xe63')](_0xb964cf,_0x20b936);})['catch'](function(_0x1cf13e){const _0x606fbc=_0x3dee73;if(_0x1cf13e[_0x606fbc('0x1e07')]&&_0x1cf13e[_0x606fbc('0x1e07')][_0x606fbc('0x1d4a')]&&_0x1cf13e[_0x606fbc('0x1e07')][_0x606fbc('0x1d4a')][_0x606fbc('0x543')])for(let _0x14c9e8=0x0;_0x14c9e8<_0x1cf13e['data'][_0x606fbc('0x1d4a')][_0x606fbc('0x543')];_0x14c9e8+=0x1){_0x585335[_0x606fbc('0x15aa')]({'title':_0x1cf13e[_0x606fbc('0x1e07')]['errors'][_0x14c9e8][_0x606fbc('0x1810')],'msg':_0x1cf13e['data']['errors'][_0x14c9e8]['message']});}else _0xb964cf===_0x606fbc('0x16d')?_0x585335[_0x606fbc('0x15aa')]({'title':_0x606fbc('0xce5'),'msg':_0x1cf13e[_0x606fbc('0x1e07')]?JSON[_0x606fbc('0x100b')](_0x1cf13e[_0x606fbc('0x1e07')]):_0x1cf13e[_0x606fbc('0x67f')]||_0x1cf13e[_0x606fbc('0x1b75')]()}):_0x585335[_0x606fbc('0x15aa')]({'title':_0x1cf13e['status']?_0x606fbc('0x137')+_0x1cf13e[_0x606fbc('0x276f')]+_0x606fbc('0x160c')+_0x1cf13e[_0x606fbc('0x2696')]:_0x4c24c7['toUpperCase']()+_0x606fbc('0xfec'),'msg':_0x1cf13e[_0x606fbc('0x1e07')]?JSON[_0x606fbc('0x100b')](_0x1cf13e['data']['message']):_0x1cf13e['message']||_0x1cf13e[_0x606fbc('0x1b75')]()});});});}function _0x4039b4(){const _0x241edf=_0x469cb9;_0x14b8d8[_0x241edf('0x1d4a')]=[],_0x7974e6['cmContact'][_0x241edf('0x1195')](_0x14b8d8[_0x241edf('0x82b')])[_0x241edf('0x1964')][_0x241edf('0x173b')](function(_0x4203dd){const _0x3f0daa=_0x241edf;return _0x14b8d8[_0x3f0daa('0x82b')]['id']=_0x4203dd['id'],_0x14b8d8[_0x3f0daa('0x764')]=![],_0x14b8d8[_0x3f0daa('0x1e66')][_0x3f0daa('0x20d6')]=_0x4203dd[_0x3f0daa('0x1e50')]||_0x4203dd[_0x3f0daa('0xa04')],_0x14b8d8['tab'][_0x3f0daa('0x82b')]=_0x14b8d8[_0x3f0daa('0x82b')],_0x7974e6[_0x3f0daa('0x166f')][_0x3f0daa('0x1d71')]({'id':_0x42c2a6[_0x3f0daa('0x14d4')]()['id'],'ids':[_0x4203dd['id']]});})[_0x241edf('0x173b')](function(){const _0x49240f=_0x241edf;_0x14b8d8[_0x49240f('0x467')][_0x49240f('0x1d2b')]=!![],_0x14b8d8[_0x49240f('0x1e56')]['$pristine']=!![],_0x585335[_0x49240f('0xdfe')]({'title':'Contact\x20properly\x20created','msg':_0x14b8d8['contact'][_0x49240f('0x1e50')]?_0x14b8d8[_0x49240f('0x82b')][_0x49240f('0x1e50')]+_0x49240f('0x209a'):''});})[_0x241edf('0x173b')](function(){const _0x28ddd2=_0x241edf;return _0x7974e6[_0x28ddd2('0x1197')]['setTags']({'id':_0x14b8d8['contact']['id'],'ids':_0x14b8d8[_0x28ddd2('0x1e66')]['Tags']})['$promise'];})[_0x241edf('0x103c')](function(_0x264017){const _0x49434e=_0x241edf;if(_0x264017[_0x49434e('0x1e07')]&&_0x264017[_0x49434e('0x1e07')]['errors']&&_0x264017['data']['errors']['length']){_0x14b8d8[_0x49434e('0x1d4a')]=_0x264017[_0x49434e('0x1e07')][_0x49434e('0x1d4a')]||[{'message':_0x264017[_0x49434e('0x1b75')](),'type':_0x49434e('0x1f2f')}];for(let _0x445a25=0x0;_0x445a25<_0x264017['data']['errors'][_0x49434e('0x543')];_0x445a25+=0x1){_0x585335['error']({'title':_0x264017[_0x49434e('0x1e07')][_0x49434e('0x1d4a')][_0x445a25][_0x49434e('0x1810')],'msg':_0x264017[_0x49434e('0x1e07')][_0x49434e('0x1d4a')][_0x445a25]['message']});}}else _0x585335['error']({'title':_0x264017[_0x49434e('0x276f')]?_0x49434e('0x137')+_0x264017[_0x49434e('0x276f')]+_0x49434e('0x160c')+_0x264017[_0x49434e('0x2696')]:_0x49434e('0x1f2f'),'msg':_0x264017['data']?JSON[_0x49434e('0x100b')](_0x264017['data']['message']):_0x264017[_0x49434e('0x1b75')]()});});}function _0xc306e2(){const _0x59bc44=_0x469cb9;_0x14b8d8[_0x59bc44('0x1d4a')]=[],_0x7974e6['cmContact'][_0x59bc44('0x1842')]({'id':_0x14b8d8[_0x59bc44('0x82b')]['id']},_0x14b8d8['contact'])[_0x59bc44('0x1964')][_0x59bc44('0x173b')](function(_0x177c25){const _0x3f6406=_0x59bc44;return _0x14b8d8[_0x3f6406('0x1e66')][_0x3f6406('0x20d6')]=_0x177c25[_0x3f6406('0x1e50')]||_0x177c25[_0x3f6406('0xa04')],_0x14b8d8[_0x3f6406('0x1e66')][_0x3f6406('0x82b')]=_0x14b8d8[_0x3f6406('0x82b')],_0x212c37['$parent']['vm']['updateLocalStorage'](),_0x7974e6[_0x3f6406('0x166f')]['addContacts']({'id':_0x42c2a6[_0x3f6406('0x14d4')]()['id'],'ids':[_0x177c25['id']]});})[_0x59bc44('0x173b')](function(){const _0x9b51a8=_0x59bc44;return _0x7974e6[_0x9b51a8('0x1197')]['setTags']({'id':_0x14b8d8[_0x9b51a8('0x82b')]['id'],'ids':_0x14b8d8['tab'][_0x9b51a8('0xc38')]})[_0x9b51a8('0x1964')];})[_0x59bc44('0x173b')](function(){const _0x19ae79=_0x59bc44;_0x14b8d8[_0x19ae79('0x467')][_0x19ae79('0x1d2b')]=!![],_0x14b8d8[_0x19ae79('0x1e56')]['$pristine']=!![],_0x585335[_0x19ae79('0xdfe')]({'title':_0x19ae79('0xfcb'),'msg':_0x14b8d8[_0x19ae79('0x82b')]['name']?_0x14b8d8[_0x19ae79('0x82b')][_0x19ae79('0x10ad')]+'\x20has\x20been\x20updated!':''});})[_0x59bc44('0x103c')](function(_0x301299){const _0x450570=_0x59bc44;if(_0x301299[_0x450570('0x1e07')]&&_0x301299['data'][_0x450570('0x1d4a')]&&_0x301299[_0x450570('0x1e07')]['errors'][_0x450570('0x543')]){_0x14b8d8[_0x450570('0x1d4a')]=_0x301299[_0x450570('0x1e07')][_0x450570('0x1d4a')]||[{'message':_0x301299[_0x450570('0x1b75')](),'type':_0x450570('0x1f2f')}];for(let _0x4176f7=0x0;_0x4176f7<_0x301299[_0x450570('0x1e07')][_0x450570('0x1d4a')][_0x450570('0x543')];_0x4176f7+=0x1){_0x585335[_0x450570('0x15aa')]({'title':_0x301299['data']['errors'][_0x4176f7][_0x450570('0x1810')],'msg':_0x301299[_0x450570('0x1e07')][_0x450570('0x1d4a')][_0x4176f7][_0x450570('0x67f')]});}}else _0x585335[_0x450570('0x15aa')]({'title':_0x301299[_0x450570('0x276f')]?'API:'+_0x301299['status']+_0x450570('0x160c')+_0x301299[_0x450570('0x2696')]:_0x450570('0x1f2f'),'msg':_0x301299['data']?JSON[_0x450570('0x100b')](_0x301299[_0x450570('0x1e07')][_0x450570('0x67f')]):_0x301299[_0x450570('0x1b75')]()});});}_0x212c37[_0x469cb9('0x1bdb')](_0x469cb9('0x157f'),function(){const _0x3042fd=_0x469cb9;_0x14b8d8[_0x3042fd('0x157f')]===0x1&&(_0x14b8d8[_0x3042fd('0x25af')](),_0x14b8d8[_0x3042fd('0x26b5')](),_0x14b8d8['getHistories']());});let _0x5f4298=!![],_0x24ed34=0x1;_0x212c37['$watch'](_0x469cb9('0x9b8'),function(_0x498dd2,_0x2a5123){const _0x170181=_0x469cb9;_0x5f4298?_0x3fa066(function(){_0x5f4298=![];}):(!_0x2a5123&&(_0x24ed34=_0x14b8d8[_0x170181('0x13d2')]['page']),_0x498dd2!==_0x2a5123&&(_0x14b8d8[_0x170181('0x13d2')][_0x170181('0x182e')]=0x1),!_0x498dd2&&(_0x14b8d8[_0x170181('0x13d2')][_0x170181('0x182e')]=_0x24ed34),_0x14b8d8[_0x170181('0x25af')]());}),_0x212c37[_0x469cb9('0x1bdb')](_0x469cb9('0x18ce'),function(_0x112d6f,_0x26d910){const _0x182326=_0x469cb9;_0x5f4298?_0x3fa066(function(){_0x5f4298=![];}):(!_0x26d910&&(_0x24ed34=_0x14b8d8[_0x182326('0x1d83')]['page']),_0x112d6f!==_0x26d910&&(_0x14b8d8[_0x182326('0x1d83')][_0x182326('0x182e')]=0x1),!_0x112d6f&&(_0x14b8d8['queryFinal']['page']=_0x24ed34),_0x14b8d8[_0x182326('0x26b5')]());}),_0x212c37[_0x469cb9('0x1bdb')](_0x469cb9('0x924'),function(_0x18a764,_0x1c7315){const _0x50ef55=_0x469cb9;_0x5f4298?_0x3fa066(function(){_0x5f4298=![];}):(!_0x1c7315&&(_0x24ed34=_0x14b8d8[_0x50ef55('0xa2c')][_0x50ef55('0x182e')]),_0x18a764!==_0x1c7315&&(_0x14b8d8[_0x50ef55('0xa2c')]['page']=0x1),!_0x18a764&&(_0x14b8d8[_0x50ef55('0xa2c')][_0x50ef55('0x182e')]=_0x24ed34),_0x14b8d8[_0x50ef55('0xbcb')]());});function _0x284511(_0x242f74){return function(_0x5c30a1){_0x14b8d8[_0x242f74]=_0x5c30a1||{'count':0x0,'rows':[]};};}function _0x28fc6d(){const _0x4a3aa2=_0x469cb9;_0x14b8d8[_0x4a3aa2('0x82b')]&&_0x14b8d8['contact']['id']&&(_0x14b8d8['queryHopper'][_0x4a3aa2('0x283f')]=_0x14b8d8[_0x4a3aa2('0x82b')]['id'],_0x14b8d8['queryHopper'][_0x4a3aa2('0x17f0')]=(_0x14b8d8[_0x4a3aa2('0x13d2')][_0x4a3aa2('0x182e')]-0x1)*_0x14b8d8['queryHopper'][_0x4a3aa2('0x3e')],_0x14b8d8[_0x4a3aa2('0x2219')]=_0x7974e6[_0x4a3aa2('0x1f4f')][_0x4a3aa2('0x1d97')](_0x14b8d8[_0x4a3aa2('0x13d2')],_0x284511(_0x4a3aa2('0x23dc')))[_0x4a3aa2('0x1964')]);}function _0x2b70a2(){const _0x3588a4=_0x469cb9;_0x14b8d8['contact']&&_0x14b8d8[_0x3588a4('0x82b')]['id']&&(_0x14b8d8[_0x3588a4('0x1d83')][_0x3588a4('0x283f')]=_0x14b8d8[_0x3588a4('0x82b')]['id'],_0x14b8d8[_0x3588a4('0x1d83')][_0x3588a4('0x17f0')]=(_0x14b8d8[_0x3588a4('0x1d83')][_0x3588a4('0x182e')]-0x1)*_0x14b8d8[_0x3588a4('0x1d83')][_0x3588a4('0x3e')],_0x14b8d8[_0x3588a4('0x2219')]=_0x7974e6['cmHopperFinal'][_0x3588a4('0x1d97')](_0x14b8d8[_0x3588a4('0x1d83')],_0x284511('finals'))['$promise']);}function _0x57f925(){const _0x2b5191=_0x469cb9;_0x14b8d8['contact']&&_0x14b8d8[_0x2b5191('0x82b')]['id']&&(_0x14b8d8[_0x2b5191('0xa2c')][_0x2b5191('0x283f')]=_0x14b8d8[_0x2b5191('0x82b')]['id'],_0x14b8d8['queryHistory'][_0x2b5191('0x17f0')]=(_0x14b8d8[_0x2b5191('0xa2c')][_0x2b5191('0x182e')]-0x1)*_0x14b8d8[_0x2b5191('0xa2c')]['limit'],_0x14b8d8['promise']=_0x7974e6['cmHopperHistory'][_0x2b5191('0x1d97')](_0x14b8d8[_0x2b5191('0xa2c')],_0x284511('histories'))[_0x2b5191('0x1964')]);}function _0x6072bb(){const _0x1afdb0=_0x469cb9;_0x7974e6[_0x1afdb0('0x46f')][_0x1afdb0('0x1d97')]({'fields':'createdAt,updatedAt,id,name,description,createdAt,formData,enableUncompleteSave','sort':_0x1afdb0('0x1769'),'nolimit':!![]})['$promise'][_0x1afdb0('0x173b')](function(_0x564266){const _0x411ef2=_0x1afdb0;_0x14b8d8[_0x411ef2('0xc4f')]=_0x564266||{'count':0x0,'rows':[]};})[_0x1afdb0('0x103c')](function(_0x7c613b){const _0x1412fc=_0x1afdb0;if(_0x7c613b[_0x1412fc('0x1e07')]&&_0x7c613b[_0x1412fc('0x1e07')][_0x1412fc('0x1d4a')]&&_0x7c613b[_0x1412fc('0x1e07')]['errors'][_0x1412fc('0x543')]){_0x14b8d8[_0x1412fc('0x1d4a')]=_0x7c613b[_0x1412fc('0x1e07')][_0x1412fc('0x1d4a')]||[{'message':_0x7c613b[_0x1412fc('0x1b75')](),'type':_0x1412fc('0x12ec')}];for(let _0x2e6a63=0x0;_0x2e6a63<_0x7c613b['data']['errors'][_0x1412fc('0x543')];_0x2e6a63+=0x1){_0x585335['error']({'title':_0x7c613b['data'][_0x1412fc('0x1d4a')][_0x2e6a63][_0x1412fc('0x1810')],'msg':_0x7c613b['data'][_0x1412fc('0x1d4a')][_0x2e6a63][_0x1412fc('0x67f')]});}}else _0x585335[_0x1412fc('0x15aa')]({'title':_0x7c613b[_0x1412fc('0x276f')]?_0x1412fc('0x137')+_0x7c613b[_0x1412fc('0x276f')]+'\x20-\x20'+_0x7c613b[_0x1412fc('0x2696')]:'api.jscripty.account','msg':_0x7c613b[_0x1412fc('0x1e07')]?JSON[_0x1412fc('0x100b')](_0x7c613b[_0x1412fc('0x1e07')][_0x1412fc('0x67f')]):_0x7c613b[_0x1412fc('0x1b75')]()});});}function _0x3a4584(){const _0x293342=_0x469cb9;_0x7974e6['user'][_0x293342('0xdf3')]({'id':_0x14b8d8[_0x293342('0x166f')]['id'],'nolimit':!![]})[_0x293342('0x1964')][_0x293342('0x173b')](function(_0xa0bf6d){_0x14b8d8['mailAccounts']=_0xa0bf6d||{'count':0x0,'rows':[]};})[_0x293342('0x103c')](function(_0x403f9c){const _0xf3855f=_0x293342;if(_0x403f9c['data']&&_0x403f9c[_0xf3855f('0x1e07')][_0xf3855f('0x1d4a')]&&_0x403f9c[_0xf3855f('0x1e07')][_0xf3855f('0x1d4a')]['length']){_0x14b8d8[_0xf3855f('0x1d4a')]=_0x403f9c[_0xf3855f('0x1e07')][_0xf3855f('0x1d4a')]||[{'message':_0x403f9c[_0xf3855f('0x1b75')](),'type':'api.mail.account'}];for(let _0x139204=0x0;_0x139204<_0x403f9c[_0xf3855f('0x1e07')]['errors']['length'];_0x139204+=0x1){_0x585335['error']({'title':_0x403f9c[_0xf3855f('0x1e07')]['errors'][_0x139204][_0xf3855f('0x1810')],'msg':_0x403f9c[_0xf3855f('0x1e07')][_0xf3855f('0x1d4a')][_0x139204][_0xf3855f('0x67f')]});}}else _0x585335[_0xf3855f('0x15aa')]({'title':_0x403f9c[_0xf3855f('0x276f')]?_0xf3855f('0x137')+_0x403f9c[_0xf3855f('0x276f')]+_0xf3855f('0x160c')+_0x403f9c[_0xf3855f('0x2696')]:_0xf3855f('0x151e'),'msg':_0x403f9c[_0xf3855f('0x1e07')]?JSON[_0xf3855f('0x100b')](_0x403f9c[_0xf3855f('0x1e07')][_0xf3855f('0x67f')]):_0x403f9c['toString']()});});}function _0x3a8d07(){const _0x19db87=_0x469cb9;_0x7974e6[_0x19db87('0x166f')][_0x19db87('0x2655')]({'id':_0x14b8d8['user']['id'],'nolimit':!![]})['$promise'][_0x19db87('0x173b')](function(_0x5819fe){const _0x5e80c0=_0x19db87;_0x14b8d8[_0x5e80c0('0x17f2')]=_0x5819fe||{'count':0x0,'rows':[]};})[_0x19db87('0x103c')](function(_0x509b6d){const _0x1e58fd=_0x19db87;if(_0x509b6d['data']&&_0x509b6d[_0x1e58fd('0x1e07')][_0x1e58fd('0x1d4a')]&&_0x509b6d[_0x1e58fd('0x1e07')]['errors'][_0x1e58fd('0x543')]){_0x14b8d8[_0x1e58fd('0x1d4a')]=_0x509b6d[_0x1e58fd('0x1e07')]['errors']||[{'message':_0x509b6d[_0x1e58fd('0x1b75')](),'type':_0x1e58fd('0x17fc')}];for(let _0x37d898=0x0;_0x37d898<_0x509b6d[_0x1e58fd('0x1e07')][_0x1e58fd('0x1d4a')][_0x1e58fd('0x543')];_0x37d898+=0x1){_0x585335[_0x1e58fd('0x15aa')]({'title':_0x509b6d[_0x1e58fd('0x1e07')][_0x1e58fd('0x1d4a')][_0x37d898][_0x1e58fd('0x1810')],'msg':_0x509b6d[_0x1e58fd('0x1e07')][_0x1e58fd('0x1d4a')][_0x37d898][_0x1e58fd('0x67f')]});}}else _0x585335[_0x1e58fd('0x15aa')]({'title':_0x509b6d[_0x1e58fd('0x276f')]?'API:'+_0x509b6d['status']+_0x1e58fd('0x160c')+_0x509b6d[_0x1e58fd('0x2696')]:'api.fax.account','msg':_0x509b6d[_0x1e58fd('0x1e07')]?JSON[_0x1e58fd('0x100b')](_0x509b6d[_0x1e58fd('0x1e07')][_0x1e58fd('0x67f')]):_0x509b6d[_0x1e58fd('0x1b75')]()});});}function _0x179623(){const _0xda24ce=_0x469cb9;_0x7974e6[_0xda24ce('0x166f')][_0xda24ce('0x112b')]({'id':_0x14b8d8[_0xda24ce('0x166f')]['id'],'nolimit':!![]})[_0xda24ce('0x1964')]['then'](function(_0xab38be){_0x14b8d8['smsAccounts']=_0xab38be||{'count':0x0,'rows':[]};})['catch'](function(_0x38a433){const _0xa3fbcd=_0xda24ce;if(_0x38a433['data']&&_0x38a433['data'][_0xa3fbcd('0x1d4a')]&&_0x38a433['data'][_0xa3fbcd('0x1d4a')][_0xa3fbcd('0x543')]){_0x14b8d8[_0xa3fbcd('0x1d4a')]=_0x38a433[_0xa3fbcd('0x1e07')]['errors']||[{'message':_0x38a433['toString'](),'type':'api.sms.account'}];for(let _0x2611fa=0x0;_0x2611fa<_0x38a433[_0xa3fbcd('0x1e07')]['errors'][_0xa3fbcd('0x543')];_0x2611fa+=0x1){_0x585335['error']({'title':_0x38a433[_0xa3fbcd('0x1e07')][_0xa3fbcd('0x1d4a')][_0x2611fa][_0xa3fbcd('0x1810')],'msg':_0x38a433[_0xa3fbcd('0x1e07')][_0xa3fbcd('0x1d4a')][_0x2611fa][_0xa3fbcd('0x67f')]});}}else _0x585335[_0xa3fbcd('0x15aa')]({'title':_0x38a433[_0xa3fbcd('0x276f')]?_0xa3fbcd('0x137')+_0x38a433[_0xa3fbcd('0x276f')]+_0xa3fbcd('0x160c')+_0x38a433[_0xa3fbcd('0x2696')]:_0xa3fbcd('0x226'),'msg':_0x38a433[_0xa3fbcd('0x1e07')]?JSON[_0xa3fbcd('0x100b')](_0x38a433[_0xa3fbcd('0x1e07')][_0xa3fbcd('0x67f')]):_0x38a433[_0xa3fbcd('0x1b75')]()});});}function _0x3d35e6(){const _0x123305=_0x469cb9;_0x7974e6[_0x123305('0x166f')][_0x123305('0xb90')]({'id':_0x14b8d8[_0x123305('0x166f')]['id'],'nolimit':!![]})['$promise'][_0x123305('0x173b')](function(_0x208e60){_0x14b8d8['whatsappAccounts']=_0x208e60||{'count':0x0,'rows':[]};})[_0x123305('0x103c')](function(_0x2e78bd){const _0x47e602=_0x123305;if(_0x2e78bd[_0x47e602('0x1e07')]&&_0x2e78bd['data'][_0x47e602('0x1d4a')]&&_0x2e78bd[_0x47e602('0x1e07')][_0x47e602('0x1d4a')][_0x47e602('0x543')]){_0x14b8d8['errors']=_0x2e78bd[_0x47e602('0x1e07')][_0x47e602('0x1d4a')]||[{'message':_0x2e78bd[_0x47e602('0x1b75')](),'type':'api.whatsapp.account'}];for(let _0x1b3caa=0x0;_0x1b3caa<_0x2e78bd['data'][_0x47e602('0x1d4a')][_0x47e602('0x543')];_0x1b3caa+=0x1){_0x585335[_0x47e602('0x15aa')]({'title':_0x2e78bd['data'][_0x47e602('0x1d4a')][_0x1b3caa][_0x47e602('0x1810')],'msg':_0x2e78bd[_0x47e602('0x1e07')]['errors'][_0x1b3caa][_0x47e602('0x67f')]});}}else _0x585335['error']({'title':_0x2e78bd[_0x47e602('0x276f')]?_0x47e602('0x137')+_0x2e78bd[_0x47e602('0x276f')]+_0x47e602('0x160c')+_0x2e78bd[_0x47e602('0x2696')]:'api.whatsapp.account','msg':_0x2e78bd[_0x47e602('0x1e07')]?JSON[_0x47e602('0x100b')](_0x2e78bd['data'][_0x47e602('0x67f')]):_0x2e78bd['toString']()});});}function _0x104c96(){const _0x58cf97=_0x469cb9;_0x7974e6[_0x58cf97('0x166f')]['getOpenchannelAccounts']({'id':_0x14b8d8[_0x58cf97('0x166f')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x26cc37){_0x14b8d8['openchannelAccounts']=_0x26cc37||{'count':0x0,'rows':[]};})[_0x58cf97('0x103c')](function(_0x321145){const _0x3003e6=_0x58cf97;if(_0x321145[_0x3003e6('0x1e07')]&&_0x321145[_0x3003e6('0x1e07')][_0x3003e6('0x1d4a')]&&_0x321145[_0x3003e6('0x1e07')][_0x3003e6('0x1d4a')][_0x3003e6('0x543')]){_0x14b8d8[_0x3003e6('0x1d4a')]=_0x321145[_0x3003e6('0x1e07')][_0x3003e6('0x1d4a')]||[{'message':_0x321145[_0x3003e6('0x1b75')](),'type':_0x3003e6('0x1a10')}];for(let _0x367478=0x0;_0x367478<_0x321145['data'][_0x3003e6('0x1d4a')]['length'];_0x367478+=0x1){_0x585335[_0x3003e6('0x15aa')]({'title':_0x321145[_0x3003e6('0x1e07')][_0x3003e6('0x1d4a')][_0x367478]['type'],'msg':_0x321145[_0x3003e6('0x1e07')]['errors'][_0x367478][_0x3003e6('0x67f')]});}}else _0x585335[_0x3003e6('0x15aa')]({'title':_0x321145['status']?'API:'+_0x321145[_0x3003e6('0x276f')]+_0x3003e6('0x160c')+_0x321145[_0x3003e6('0x2696')]:_0x3003e6('0x1a10'),'msg':_0x321145['data']?JSON[_0x3003e6('0x100b')](_0x321145['data']['message']):_0x321145[_0x3003e6('0x1b75')]()});});}function _0x3de682(){const _0x50528e=_0x469cb9;_0x7974e6['user'][_0x50528e('0x5c2')]({'id':_0x14b8d8['user']['id'],'nolimit':!![]})[_0x50528e('0x1964')][_0x50528e('0x173b')](function(_0x5c4ff9){const _0x268e6b=_0x50528e;_0x14b8d8[_0x268e6b('0x1e0e')]=_0x5c4ff9||{'count':0x0,'rows':[]};})['catch'](function(_0x459b01){const _0x4ce539=_0x50528e;if(_0x459b01['data']&&_0x459b01[_0x4ce539('0x1e07')][_0x4ce539('0x1d4a')]&&_0x459b01['data'][_0x4ce539('0x1d4a')][_0x4ce539('0x543')]){_0x14b8d8[_0x4ce539('0x1d4a')]=_0x459b01[_0x4ce539('0x1e07')][_0x4ce539('0x1d4a')]||[{'message':_0x459b01[_0x4ce539('0x1b75')](),'type':_0x4ce539('0x10f9')}];for(let _0x2f5f63=0x0;_0x2f5f63<_0x459b01[_0x4ce539('0x1e07')][_0x4ce539('0x1d4a')][_0x4ce539('0x543')];_0x2f5f63+=0x1){_0x585335[_0x4ce539('0x15aa')]({'title':_0x459b01[_0x4ce539('0x1e07')][_0x4ce539('0x1d4a')][_0x2f5f63][_0x4ce539('0x1810')],'msg':_0x459b01[_0x4ce539('0x1e07')][_0x4ce539('0x1d4a')][_0x2f5f63][_0x4ce539('0x67f')]});}}else _0x585335['error']({'title':_0x459b01['status']?_0x4ce539('0x137')+_0x459b01['status']+_0x4ce539('0x160c')+_0x459b01[_0x4ce539('0x2696')]:_0x4ce539('0x10f9'),'msg':_0x459b01[_0x4ce539('0x1e07')]?JSON[_0x4ce539('0x100b')](_0x459b01[_0x4ce539('0x1e07')]['message']):_0x459b01[_0x4ce539('0x1b75')]()});});}function _0x5f3650(){const _0x2a9ea9=_0x469cb9;_0x7974e6[_0x2a9ea9('0x166f')][_0x2a9ea9('0xe91')]({'id':_0x14b8d8[_0x2a9ea9('0x166f')]['id'],'nolimit':!![]})['$promise'][_0x2a9ea9('0x173b')](function(_0x4a133d){const _0x48e199=_0x2a9ea9;_0x14b8d8[_0x48e199('0x9e8')]=_0x4a133d||{'count':0x0,'rows':[]};})[_0x2a9ea9('0x103c')](function(_0x3e704f){const _0x23a15a=_0x2a9ea9;if(_0x3e704f[_0x23a15a('0x1e07')]&&_0x3e704f['data'][_0x23a15a('0x1d4a')]&&_0x3e704f[_0x23a15a('0x1e07')][_0x23a15a('0x1d4a')][_0x23a15a('0x543')]){_0x14b8d8['errors']=_0x3e704f[_0x23a15a('0x1e07')][_0x23a15a('0x1d4a')]||[{'message':_0x3e704f[_0x23a15a('0x1b75')](),'type':'api.cm.lists'}];for(let _0x545bf1=0x0;_0x545bf1<_0x3e704f[_0x23a15a('0x1e07')][_0x23a15a('0x1d4a')][_0x23a15a('0x543')];_0x545bf1+=0x1){_0x585335[_0x23a15a('0x15aa')]({'title':_0x3e704f[_0x23a15a('0x1e07')][_0x23a15a('0x1d4a')][_0x545bf1]['type'],'msg':_0x3e704f['data'][_0x23a15a('0x1d4a')][_0x545bf1][_0x23a15a('0x67f')]});}}else _0x585335['error']({'title':_0x3e704f[_0x23a15a('0x276f')]?_0x23a15a('0x137')+_0x3e704f[_0x23a15a('0x276f')]+_0x23a15a('0x160c')+_0x3e704f[_0x23a15a('0x2696')]:_0x23a15a('0x216f'),'msg':_0x3e704f['data']?JSON['stringify'](_0x3e704f['data'][_0x23a15a('0x67f')]):_0x3e704f[_0x23a15a('0x1b75')]()});});}function _0x1f392f(_0x15fd66){const _0x444503=_0x469cb9;_0x54ef2d[_0x444503('0x1cb7')]({'controller':_0x444503('0x25ba'),'controllerAs':'vm','templateUrl':_0xf36d4e,'parent':angular[_0x444503('0xb6d')](_0x2e4651[_0x444503('0x1a5')]),'targetEvent':_0x15fd66,'clickOutsideToClose':!![],'resolve':{'contact':[_0x444503('0x2401'),function(_0x49ad2d){const _0x4d17cb=_0x444503;return _0x49ad2d[_0x4d17cb('0x155b')](_0x4d17cb('0x2778'),{'id':_0x14b8d8[_0x4d17cb('0x82b')]['id']});}],'lists':[_0x444503('0x2401'),function(_0x5f55c3){const _0x2c4b42=_0x444503;return _0x5f55c3[_0x2c4b42('0x155b')](_0x2c4b42('0x152e'),{'id':_0x42c2a6[_0x2c4b42('0x14d4')]()['id'],'fields':_0x2c4b42('0xd52')});}]},'locals':{'contacts':[]}});}function _0x5ec384(_0x59ff3d){const _0x6bb272=_0x469cb9;_0x54ef2d[_0x6bb272('0x1cb7')]({'controller':_0x6bb272('0x1e24'),'controllerAs':'vm','templateUrl':_0x373d52,'parent':angular[_0x6bb272('0xb6d')](_0x2e4651[_0x6bb272('0x1a5')]),'targetEvent':_0x59ff3d,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x263ac0){const _0x51ef93=_0x6bb272;return _0x263ac0['resolve'](_0x51ef93('0x2778'),{'id':_0x14b8d8[_0x51ef93('0x82b')]['id']});}],'lists':[_0x6bb272('0x2401'),function(_0x56ba54){const _0x3a00ff=_0x6bb272;return _0x56ba54['resolve'](_0x3a00ff('0x152e'),{'id':_0x42c2a6[_0x3a00ff('0x14d4')]()['id'],'fields':'id,name'});}]},'locals':{'contacts':[]}})['then'](function(_0x2c1dfe){const _0x4623eb=_0x6bb272;if(_0x2c1dfe){for(const _0x34cf98 in _0x212c37[_0x4623eb('0x1d44')]['$parent'][_0x4623eb('0x1d44')]['vm'][_0x4623eb('0xa80')]){if(typeof _0x212c37[_0x4623eb('0x1d44')][_0x4623eb('0x1d44')][_0x4623eb('0x1d44')]['vm'][_0x4623eb('0xa80')][_0x34cf98]!=='undefined'){const _0x56d189=_0x212c37['$parent'][_0x4623eb('0x1d44')]['$parent']['vm'][_0x4623eb('0xa80')][_0x34cf98];_0x56d189&&_0x56d189['contact']&&(_0x2c1dfe[_0x4623eb('0xd40')]&&_0x2c1dfe[_0x4623eb('0xd40')]['id']&&_0x2c1dfe['from']['id']===_0x56d189['contact']['id']&&_0x212c37[_0x4623eb('0x1d44')][_0x4623eb('0x1d44')][_0x4623eb('0x1d44')]['vm'][_0x4623eb('0xa1a')](_0x56d189),_0x2c1dfe['to']&&_0x2c1dfe['to']['id']&&_0x2c1dfe['to']['id']===_0x56d189[_0x4623eb('0x82b')]['id']&&_0x212c37[_0x4623eb('0x1d44')][_0x4623eb('0x1d44')]['$parent']['vm']['removeTab'](_0x56d189));}}_0x2c1dfe[_0x4623eb('0x195f')]&&_0x212c37[_0x4623eb('0x1d44')][_0x4623eb('0x1d44')][_0x4623eb('0x1d44')]['vm'][_0x4623eb('0x2716')](_0x2c1dfe[_0x4623eb('0x195f')]);}});}function _0xbd1516(_0x398b5c,_0x64d06d){const _0x52f80=_0x469cb9,_0x1130f5=_0x14b8d8[_0x52f80('0x166f')]['voicePause']||_0x14b8d8[_0x52f80('0x166f')][_0x52f80('0x988')]||_0x14b8d8[_0x52f80('0x166f')][_0x52f80('0xf41')]||_0x14b8d8[_0x52f80('0x166f')][_0x52f80('0x106')]||_0x14b8d8['user']['faxPause'],_0x353691=_0x64d06d[_0x52f80('0x130f')];if(_0x14b8d8[_0x52f80('0x764')]){_0x585335[_0x52f80('0x15aa')]({'title':_0x52f80('0x12'),'msg':_0x52f80('0x1843')});return;}_0x54ef2d[_0x52f80('0x1cb7')]({'controller':_0x52f80('0x10c2'),'controllerAs':'vm','templateUrl':_0x1b4212,'parent':angular[_0x52f80('0xb6d')](_0x2e4651[_0x52f80('0x1a5')]),'targetEvent':_0x64d06d,'clickOutsideToClose':!_0x64d06d[_0x52f80('0x130f')],'escapeToClose':!_0x64d06d['mandatoryDisposition'],'resolve':{'globalDispositions':[_0x52f80('0x2401'),function(_0x4d0592){const _0x2a0520=_0x52f80;return _0x4d0592['resolve'](_0x2a0520('0x16c5'),{'MailAccountId':_0x2a0520('0x877'),'FaxAccountId':_0x2a0520('0x877'),'SmsAccountId':'null','WhatsappAccountId':_0x2a0520('0x877'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x2a0520('0x877'),'ListId':_0x2a0520('0x877')});}]},'onRemoving':function(){const _0x344643=_0x52f80;_0x14b8d8[_0x344643('0x166f')]&&_0x353691&&!_0x1130f5&&_0x7974e6['user'][_0x344643('0x9da')]({'id':_0x14b8d8[_0x344643('0x166f')]['id']})[_0x344643('0x1964')][_0x344643('0x103c')](function(_0x13fba5){const _0xf5b6b3=_0x344643;console[_0xf5b6b3('0x15aa')](_0x13fba5);});},'locals':{'dispositions':_0x14b8d8[_0x52f80('0x1e66')][_0x52f80('0x9c6')],'contact':_0x14b8d8[_0x52f80('0x82b')],'call':_0x64d06d}})[_0x52f80('0x173b')](function(_0x5c8b43){const _0x19fd5a=_0x52f80;if(_0x5c8b43){if(_0x5c8b43===_0x19fd5a('0x1252'))_0x585335['success']({'title':_0x54aab0['instant'](_0x19fd5a('0x1dc2')),'msg':_0x54aab0['instant']('DASHBOARDS.CALL_DISPOSED')+'\x20'+_0x5c8b43});else{if(_0x5c8b43==='RECALLME'||_0x5c8b43==='RESCHEDULE'){}else _0x585335[_0x19fd5a('0xdfe')]({'title':_0x54aab0[_0x19fd5a('0x1467')](_0x19fd5a('0x1dc2')),'msg':_0x54aab0[_0x19fd5a('0x1467')](_0x19fd5a('0x5ab'))});}}for(const _0x3ac5a0 in _0x212c37['$parent'][_0x19fd5a('0x1d44')][_0x19fd5a('0x1d44')]['vm']['tabs']){if(typeof _0x212c37[_0x19fd5a('0x1d44')][_0x19fd5a('0x1d44')][_0x19fd5a('0x1d44')]['vm'][_0x19fd5a('0xa80')][_0x3ac5a0]!=='undefined'){const _0x367269=_0x212c37[_0x19fd5a('0x1d44')][_0x19fd5a('0x1d44')][_0x19fd5a('0x1d44')]['vm']['tabs'][_0x3ac5a0];_0x3c8d8a()[_0x19fd5a('0x1a8b')](_0x367269[_0x19fd5a('0x23d5')],function(_0x41e77c){const _0x3a0373=_0x19fd5a;return _0x41e77c[_0x3a0373('0x207c')]===_0x64d06d[_0x3a0373('0x207c')];});}}_0x212c37['$parent']['vm'][_0x19fd5a('0x257e')]();});}function _0x5f0846(_0x2212b0){const _0x3f9628=_0x469cb9;return _0x7974e6[_0x3f9628('0xbb3')][_0x3f9628('0x26f3')]({'id':_0x2212b0})[_0x3f9628('0x1964')][_0x3f9628('0x173b')](function(_0x35aeec){const _0x5b03a0=_0x3f9628;_0x14b8d8[_0x5b03a0('0x1e66')]['customFields']=_0x35aeec;})[_0x3f9628('0x103c')](function(_0x275a2){const _0xeec4fe=_0x3f9628;_0x585335[_0xeec4fe('0x15aa')]({'title':_0x275a2[_0xeec4fe('0x276f')]?'API:'+_0x275a2['status']+_0xeec4fe('0x160c')+_0x275a2[_0xeec4fe('0x2696')]:_0xeec4fe('0xe6a'),'msg':_0x275a2['data']?JSON[_0xeec4fe('0x100b')](_0x275a2[_0xeec4fe('0x1e07')]):_0x275a2[_0xeec4fe('0x1b75')]()});});}function _0x921a43(_0x1bf29a){return _0x1bf29a===null?undefined:new Date(_0x1bf29a);}function _0x2b479d(_0x56e714){const _0x2a7165=_0x469cb9;try{_0x56e714[_0x2a7165('0x232b')]=_0x5df7ee()['render'](_0x56e714['formData'],{'contact':_0x14b8d8[_0x2a7165('0x82b')],'user':_0x14b8d8[_0x2a7165('0x166f')]});}catch(_0x3b3c78){console[_0x2a7165('0x15aa')](_0x3b3c78);}try{_0x212c37[_0x2a7165('0x1d44')][_0x2a7165('0x1d44')][_0x2a7165('0x1d44')]['vm'][_0x2a7165('0x965')]({'type':_0x2a7165('0x25a1'),'title':_0x56e714[_0x2a7165('0x10ad')],'icon':'icon-script','color':_0x2a7165('0x14eb'),'project':_0x56e714,'contact':_0x14b8d8[_0x2a7165('0x82b')]});}catch(_0x3900ca){_0x585335[_0x2a7165('0x15aa')]({'title':_0x2a7165('0x1286'),'msg':_0x2a7165('0x8c')+JSON[_0x2a7165('0x100b')](_0x3900ca)});}}function _0x26e7e8(_0x4e3bdf){const _0x5886bc=_0x469cb9;return _0x42c2a6[_0x5886bc('0x1f1b')](_0x4e3bdf);}_0x212c37[_0x469cb9('0xbf6')](_0x469cb9('0x16d2'),function(){});}const _0x388cc1=_0x431e36;_0x7938c3['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'api',_0x566993('0x9c6'),_0x566993('0x1b71'),_0x566993('0x67a'),_0x566993('0x82b'),'Auth','$translate'];function _0x7938c3(_0x48bb33,_0x10f5ba,_0x5735ee,_0x32f08b,_0x140adc,_0x85f9f8,_0x52bd4d,_0x209643,_0x2a27ea,_0x3e31f1){const _0x569ef7=_0x566993,_0x554e18=this;_0x554e18[_0x569ef7('0x908')]=![],_0x554e18[_0x569ef7('0x5f1')]=![],_0x554e18['queueCampaign']=undefined,_0x554e18[_0x569ef7('0x5d6')]={'count':0x0,'rows':[]},_0x554e18[_0x569ef7('0x9c6')]=_0x140adc['rows'],_0x554e18[_0x569ef7('0x1b71')]=_0x85f9f8[_0x569ef7('0x6aa')],_0x554e18[_0x569ef7('0x82b')]=_0x209643,_0x554e18[_0x569ef7('0x67a')]=_0x52bd4d,_0x554e18[_0x569ef7('0x2564')]=_0x554e18[_0x569ef7('0x67a')][_0x569ef7('0x2564')]||undefined,_0x554e18['dialerCall']=![],_0x554e18['hasBlackLists']=![],_0x554e18[_0x569ef7('0x10f4')]={'minDate':new Date(),'dateTime':new Date()};_0x554e18[_0x569ef7('0x67a')]&&_0x554e18[_0x569ef7('0x67a')][_0x569ef7('0x2715')]&&_0x554e18[_0x569ef7('0x67a')][_0x569ef7('0x2715')][_0x569ef7('0x1369')]?(_0x554e18[_0x569ef7('0x1eca')]=!![],_0x32f08b[_0x569ef7('0x1282')][_0x569ef7('0xfd0')]({'id':_0x554e18['call'][_0x569ef7('0x2715')][_0x569ef7('0x1369')]})['$promise']['then'](function(_0x1afb65){const _0x5a1242=_0x569ef7;_0x1afb65&&_0x1afb65[_0x5a1242('0x6aa')]&&_0x1afb65[_0x5a1242('0x6aa')][_0x5a1242('0x543')]>0x0&&(_0x554e18[_0x5a1242('0xafa')]=!![]);})['catch'](function(_0x19f15c){const _0x12c6ca=_0x569ef7;_0x5735ee['error']({'title':_0x19f15c['status']?_0x12c6ca('0x137')+_0x19f15c[_0x12c6ca('0x276f')]+'\x20-\x20'+_0x19f15c[_0x12c6ca('0x2696')]:_0x12c6ca('0x30a'),'msg':_0x19f15c[_0x12c6ca('0x1e07')]?JSON['stringify'](_0x19f15c[_0x12c6ca('0x1e07')]):_0x19f15c[_0x12c6ca('0x1b75')]()});})):_0x32f08b[_0x569ef7('0x166f')][_0x569ef7('0x115e')]({'id':_0x2a27ea[_0x569ef7('0x14d4')]()['id'],'fields':_0x569ef7('0x3b1'),'channel':_0x569ef7('0x21a8'),'type':_0x569ef7('0xb33'),'nolimit':!![]})[_0x569ef7('0x1964')][_0x569ef7('0x173b')](function(_0x3197c9){const _0x78c1af=_0x569ef7;_0x554e18[_0x78c1af('0x5d6')]=_0x3197c9||{'count':0x0,'rows':[]};})[_0x569ef7('0x103c')](function(_0xeb2e22){const _0x3f5b1a=_0x569ef7;console[_0x3f5b1a('0x15aa')](_0xeb2e22);});_0x554e18[_0x569ef7('0x128b')]=_0x526ce7,_0x554e18[_0x569ef7('0x21d6')]=_0x1d4ef9,_0x554e18['saveDisposition']=_0xed5197,_0x554e18[_0x569ef7('0x18e2')]=_0x58813b,_0x554e18[_0x569ef7('0x906')]=_0x2cbfd9;function _0x526ce7(_0x10a2bd){const _0x8524d6=_0x569ef7,_0x3bfb56=_0x3c8d8a()[_0x8524d6('0x6ef')](_0x554e18[_0x8524d6('0x9c6')],_0x554e18['globalDispositions'],'id');switch(_0x10a2bd){case'first':_0x554e18['selectedDisposition']=_0x554e18['firstLevelDisposition'],_0x554e18[_0x8524d6('0xbd9')]=_0x3c8d8a()[_0x8524d6('0x1ec')](_0x3bfb56,[_0x8524d6('0x2644'),_0x554e18[_0x8524d6('0x6a8')]['id']]),_0x554e18[_0x8524d6('0x9a2')]=undefined,_0x554e18['thirdLevelDisposition']=undefined,_0x554e18[_0x8524d6('0x1619')]=![];break;case _0x8524d6('0x6f3'):_0x554e18[_0x8524d6('0x2773')]=_0x554e18[_0x8524d6('0x9a2')],_0x554e18[_0x8524d6('0x1619')]=_0x3c8d8a()[_0x8524d6('0x1ec')](_0x3bfb56,[_0x8524d6('0x2644'),_0x554e18[_0x8524d6('0x9a2')]['id']]);break;case'third':_0x554e18[_0x8524d6('0x2773')]=_0x554e18[_0x8524d6('0x2299')];break;}}function _0x1d4ef9(_0x1cd386){const _0x57c076=_0x569ef7;if(_0x1cd386===_0x57c076('0x6f3'))_0x554e18[_0x57c076('0x9a2')]=undefined,_0x554e18['thirdLevelDisposition']=undefined,_0x554e18[_0x57c076('0x2773')]=_0x554e18[_0x57c076('0x6a8')];else _0x1cd386===_0x57c076('0x263a')&&(_0x554e18[_0x57c076('0x2299')]=undefined,_0x554e18[_0x57c076('0x2773')]=_0x554e18[_0x57c076('0x9a2')]);}function _0x58ec0e(){const _0x45ed07=_0x569ef7,_0x2f7c38=_0x554e18[_0x45ed07('0x2773')]?_0x554e18[_0x45ed07('0x2773')][_0x45ed07('0x10ad')]['toLowerCase']():undefined;return{'id':_0x554e18[_0x45ed07('0x67a')][_0x45ed07('0x207c')],'disposition':_0x554e18['firstLevelDisposition']?_0x554e18[_0x45ed07('0x6a8')][_0x45ed07('0x10ad')]:null,'secondDisposition':_0x554e18[_0x45ed07('0x9a2')]?_0x554e18[_0x45ed07('0x9a2')]['name']:null,'thirdDisposition':_0x554e18[_0x45ed07('0x2299')]?_0x554e18['thirdLevelDisposition'][_0x45ed07('0x10ad')]:null,'dispositionat':_0x156524()(),'amd':_0x2f7c38===_0x45ed07('0x16cf'),'fax':_0x2f7c38==='fax','blacklist':_0x2f7c38==='blacklist','recallme':_0x2f7c38===_0x45ed07('0x5f1'),'UserId':_0x2f7c38===_0x45ed07('0x5f1')?_0x2a27ea[_0x45ed07('0x14d4')]()['id']:null,'OwnerId':_0x2a27ea[_0x45ed07('0x14d4')]()['id']};}function _0x1d26ab(){const _0x4ce844=_0x569ef7;return _0x32f08b[_0x4ce844('0x250f')][_0x4ce844('0x1842')]({'id':_0x554e18[_0x4ce844('0x67a')][_0x4ce844('0x207c')],'userDisposition':_0x554e18[_0x4ce844('0x6a8')]?_0x554e18['firstLevelDisposition'][_0x4ce844('0x10ad')]:null,'userSecondDisposition':_0x554e18['secondLevelDisposition']?_0x554e18['secondLevelDisposition'][_0x4ce844('0x10ad')]:null,'userThirdDisposition':_0x554e18[_0x4ce844('0x2299')]?_0x554e18['thirdLevelDisposition'][_0x4ce844('0x10ad')]:null,'note':_0x554e18['note'],'UserId':_0x2a27ea[_0x4ce844('0x14d4')]()['id'],'ContactId':_0x554e18[_0x4ce844('0x82b')]['id']})[_0x4ce844('0x1964')][_0x4ce844('0x103c')](function(_0x5560e6){const _0x590221=_0x4ce844;_0x5735ee[_0x590221('0x15aa')]({'title':_0x5560e6[_0x590221('0x276f')]?'API:'+_0x5560e6[_0x590221('0x276f')]+_0x590221('0x160c')+_0x5560e6[_0x590221('0x2696')]:_0x590221('0x2606'),'msg':_0x5560e6['data']?JSON[_0x590221('0x100b')](_0x5560e6[_0x590221('0x1e07')]):_0x5560e6[_0x590221('0x1b75')]()});});}function _0x6fade(){const _0x3fc0a7=_0x569ef7;return _0x32f08b[_0x3fc0a7('0x14c3')][_0x3fc0a7('0x1d97')]({'uniqueid':_0x554e18[_0x3fc0a7('0x67a')][_0x3fc0a7('0x207c')]})[_0x3fc0a7('0x1964')][_0x3fc0a7('0x173b')](function(_0x5e2168){const _0xe4af82=_0x3fc0a7;if(_0x5e2168)for(let _0x8c0dae=0x0;_0x8c0dae<_0x5e2168[_0xe4af82('0x6aa')]['length'];_0x8c0dae+=0x1){_0x32f08b[_0xe4af82('0x14c3')]['update']({'id':_0x5e2168[_0xe4af82('0x6aa')][_0x8c0dae]['id'],'userDisposition':_0x554e18['firstLevelDisposition']?_0x554e18[_0xe4af82('0x6a8')][_0xe4af82('0x10ad')]:null,'userSecondDisposition':_0x554e18['secondLevelDisposition']?_0x554e18[_0xe4af82('0x9a2')][_0xe4af82('0x10ad')]:null,'userThirdDisposition':_0x554e18['thirdLevelDisposition']?_0x554e18[_0xe4af82('0x2299')][_0xe4af82('0x10ad')]:null})[_0xe4af82('0x1964')]['catch'](function(_0x4af86c){const _0x29e945=_0xe4af82;_0x5735ee[_0x29e945('0x15aa')]({'title':_0x4af86c[_0x29e945('0x276f')]?_0x29e945('0x137')+_0x4af86c[_0x29e945('0x276f')]+_0x29e945('0x160c')+_0x4af86c[_0x29e945('0x2696')]:_0x29e945('0x169c'),'msg':_0x4af86c[_0x29e945('0x1e07')]?JSON[_0x29e945('0x100b')](_0x4af86c[_0x29e945('0x1e07')]):_0x4af86c['toString']()});});}})['catch'](function(_0x3fdb19){const _0x38495d=_0x3fc0a7;_0x5735ee[_0x38495d('0x15aa')]({'title':_0x3fdb19['status']?_0x38495d('0x137')+_0x3fdb19[_0x38495d('0x276f')]+_0x38495d('0x160c')+_0x3fdb19['statusText']:_0x38495d('0x169c'),'msg':_0x3fdb19['data']?JSON[_0x38495d('0x100b')](_0x3fdb19[_0x38495d('0x1e07')]):_0x3fdb19['toString']()});});}function _0x15c7c4(){const _0x457998=_0x569ef7;return _0x32f08b[_0x457998('0x1ccf')]['update'](_0x58ec0e())[_0x457998('0x1964')][_0x457998('0x103c')](function(_0x191adf){const _0x4c6c1a=_0x457998;_0x5735ee[_0x4c6c1a('0x15aa')]({'title':_0x191adf[_0x4c6c1a('0x276f')]?_0x4c6c1a('0x137')+_0x191adf[_0x4c6c1a('0x276f')]+_0x4c6c1a('0x160c')+_0x191adf['statusText']:'SYSTEM:UPDATECMHOPPERFINAL','msg':_0x191adf[_0x4c6c1a('0x1e07')]?JSON[_0x4c6c1a('0x100b')](_0x191adf[_0x4c6c1a('0x1e07')]):_0x191adf[_0x4c6c1a('0x1b75')]()});});}function _0x42a47e(){const _0x411975=_0x569ef7;return _0x32f08b[_0x411975('0x325')][_0x411975('0x1842')](_0x58ec0e())[_0x411975('0x1964')][_0x411975('0x103c')](function(_0xf93a02){const _0x5003f0=_0x411975;_0x5735ee[_0x5003f0('0x15aa')]({'title':_0xf93a02[_0x5003f0('0x276f')]?_0x5003f0('0x137')+_0xf93a02['status']+_0x5003f0('0x160c')+_0xf93a02[_0x5003f0('0x2696')]:_0x5003f0('0x938'),'msg':_0xf93a02[_0x5003f0('0x1e07')]?JSON[_0x5003f0('0x100b')](_0xf93a02[_0x5003f0('0x1e07')]):_0xf93a02[_0x5003f0('0x1b75')]()});});}function _0x406e77(_0x208762){const _0x196d3f=_0x569ef7;if(_0x208762)return _0x32f08b['voiceQueue'][_0x196d3f('0xfd0')]({'id':_0x208762,'type':_0x196d3f('0xb33'),'fields':'id'})['$promise'][_0x196d3f('0x173b')](function(_0x29e6d0){const _0x58a4f9=_0x196d3f,_0x47a54b=[];if(_0x29e6d0&&_0x29e6d0[_0x58a4f9('0x1a2f')]>0x0){for(let _0x489ff9=0x0;_0x489ff9<_0x29e6d0[_0x58a4f9('0x6aa')]['length'];_0x489ff9+=0x1){const _0x35264d=angular[_0x58a4f9('0x2e3')](_0x554e18['contact']);delete _0x35264d['id'],_0x35264d[_0x58a4f9('0xef2')]=_0x29e6d0[_0x58a4f9('0x6aa')][_0x489ff9]['id'],_0x47a54b['push'](_0x32f08b[_0x58a4f9('0x1197')][_0x58a4f9('0x1195')](_0x35264d)['$promise']);}return _0x10f5ba['all'](_0x47a54b);}_0x5735ee[_0x58a4f9('0xdfe')]({'title':_0x3e31f1['instant'](_0x58a4f9('0x1dc2')),'msg':_0x3e31f1[_0x58a4f9('0x1467')](_0x58a4f9('0x24ed'))+'\x20'+_0x554e18[_0x58a4f9('0x2773')]}),_0x554e18[_0x58a4f9('0x2773')]=undefined;return;})[_0x196d3f('0x173b')](function(_0x512b7c){const _0x2c24cf=_0x196d3f;_0x512b7c&&_0x48bb33[_0x2c24cf('0x1cf4')](_0x554e18[_0x2c24cf('0x2773')]?_0x554e18[_0x2c24cf('0x2773')][_0x2c24cf('0x10ad')]['toUpperCase']():'');})[_0x196d3f('0x103c')](function(_0x3d7747){const _0x388fa6=_0x196d3f;_0x5735ee[_0x388fa6('0x15aa')]({'title':_0x3d7747['status']?_0x388fa6('0x137')+_0x3d7747[_0x388fa6('0x276f')]+_0x388fa6('0x160c')+_0x3d7747[_0x388fa6('0x2696')]:_0x388fa6('0x15a'),'msg':_0x3d7747[_0x388fa6('0x1e07')]?JSON['stringify'](_0x3d7747[_0x388fa6('0x1e07')]):_0x3d7747[_0x388fa6('0x1b75')]()}),_0x48bb33[_0x388fa6('0x1cf4')](_0x554e18[_0x388fa6('0x2773')]?_0x554e18[_0x388fa6('0x2773')][_0x388fa6('0x10ad')][_0x388fa6('0x1164')]():'');});}function _0xed5197(_0x2203b7){const _0x5608b3=_0x569ef7;_0x554e18[_0x5608b3('0x2773')]=_0x3c8d8a()[_0x5608b3('0x7d5')](_0x2203b7)?_0x554e18['selectedDisposition']:{'name':_0x2203b7};_0x2203b7&&(_0x554e18[_0x5608b3('0x6a8')]=_0x554e18[_0x5608b3('0x2773')]);_0x554e18[_0x5608b3('0x67a')][_0x5608b3('0x2564')]=_0x554e18[_0x5608b3('0x2564')],_0x1d26ab(),_0x6fade();_0x554e18[_0x5608b3('0x1eca')]&&(_0x15c7c4(),_0x42a47e());if(!_0x3c8d8a()[_0x5608b3('0x7d5')](_0x554e18['selectedDisposition']))switch(_0x554e18['selectedDisposition']['name']['toLowerCase']()){case _0x5608b3('0x2117'):_0x554e18[_0x5608b3('0x67a')]&&_0x554e18['call'][_0x5608b3('0x2715')]&&_0x554e18[_0x5608b3('0x67a')][_0x5608b3('0x2715')][_0x5608b3('0x1369')]&&_0x406e77(_0x554e18[_0x5608b3('0x67a')][_0x5608b3('0x2715')][_0x5608b3('0x1369')]);break;case _0x5608b3('0x204f'):_0x554e18[_0x5608b3('0x908')]=!![],_0x554e18[_0x5608b3('0x5f1')]=![];break;case _0x5608b3('0x5f1'):_0x554e18[_0x5608b3('0x908')]=!![],_0x554e18[_0x5608b3('0x5f1')]=!![];break;default:_0x48bb33['hide'](_0x554e18[_0x5608b3('0x2773')]?_0x554e18[_0x5608b3('0x2773')][_0x5608b3('0x10ad')][_0x5608b3('0x1164')]():'');}else _0x48bb33[_0x5608b3('0x1cf4')](_0x554e18[_0x5608b3('0x2773')]?_0x554e18[_0x5608b3('0x2773')][_0x5608b3('0x10ad')][_0x5608b3('0x1164')]():'');}function _0x58813b(){const _0x304d66=_0x569ef7;_0x48bb33[_0x304d66('0x1e1f')]();}function _0x2cbfd9(){const _0x3fd214=_0x569ef7;return _0x554e18[_0x3fd214('0x162')]=!![],_0x32f08b[_0x3fd214('0x1f4f')]['save']({'phone':_0x554e18[_0x3fd214('0x82b')][_0x3fd214('0xa04')],'UserId':_0x554e18['recallme']?_0x2a27ea[_0x3fd214('0x14d4')]()['id']:null,'ContactId':_0x554e18[_0x3fd214('0x82b')]['id'],'ListId':_0x554e18[_0x3fd214('0x82b')]['ListId'],'VoiceQueueId':_0x554e18['dialerCall']?Number(_0x554e18[_0x3fd214('0x67a')]['xmd-voicequeueid']):_0x554e18[_0x3fd214('0x100f')]?_0x554e18[_0x3fd214('0x100f')]['id']:null,'scheduledat':_0x156524()(_0x554e18[_0x3fd214('0x10f4')]['dateTime'])[_0x3fd214('0xddc')](_0x3fd214('0xf5f')),'priority':0x3,'recallme':_0x554e18[_0x3fd214('0x5f1')],'OwnerId':_0x2a27ea[_0x3fd214('0x14d4')]()['id']})[_0x3fd214('0x1964')][_0x3fd214('0x173b')](function(){const _0x562a2e=_0x3fd214;_0x554e18[_0x562a2e('0x1eca')]&&_0x32f08b[_0x562a2e('0x1ccf')][_0x562a2e('0x1842')]({'id':_0x554e18[_0x562a2e('0x67a')]['uniqueid'],'rescheduled':!![],'rescheduledat':_0x156524()(_0x554e18['hopper'][_0x562a2e('0x2793')])[_0x562a2e('0xddc')]('YYYY-MM-DD\x20HH:mm:ss'),'recallme':_0x554e18[_0x562a2e('0x5f1')]})[_0x562a2e('0x1964')][_0x562a2e('0x103c')](function(_0x5f089a){console['log'](_0x5f089a);});})[_0x3fd214('0x173b')](function(){const _0x5b332d=_0x3fd214;_0x5735ee[_0x5b332d('0xdfe')]({'title':_0x3e31f1[_0x5b332d('0x1467')](_0x5b332d('0x1dc2')),'msg':_0x3e31f1[_0x5b332d('0x1467')]('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x554e18['recallme']?_0x3e31f1[_0x5b332d('0x1467')]('DASHBOARDS.RECALLME'):_0x3e31f1[_0x5b332d('0x1467')](_0x5b332d('0x247f')))});})['catch'](function(){const _0x59b466=_0x3fd214;_0x48bb33['hide'](_0x554e18['selectedDisposition']?_0x554e18[_0x59b466('0x2773')][_0x59b466('0x10ad')][_0x59b466('0x1164')]():'');})['finally'](function(){const _0x4358d3=_0x3fd214;_0x554e18['disable']=![],_0x48bb33[_0x4358d3('0x1cf4')](_0x554e18[_0x4358d3('0x2773')]?_0x554e18['selectedDisposition'][_0x4358d3('0x10ad')]['toUpperCase']():'');});}}const _0x592d0f=_0x7938c3;_0x4052e7[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),_0x566993('0x24b5'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x82b'),_0x566993('0x67a'),_0x566993('0x1600'),'recallme',_0x566993('0x638')];function _0x4052e7(_0xaaffed,_0x4a62de,_0x55ee46,_0x29c3ef,_0x3a9a95,_0xe95840,_0x308bc0,_0x5eb0a6,_0x30c0f5,_0xfbf732,_0x1c9ac4,_0x4d1545){const _0x531c0e=_0x566993,_0x37a1b3=this;_0x37a1b3['call']=_0x30c0f5,_0x37a1b3[_0x531c0e('0x82b')]=_0x5eb0a6,_0x37a1b3['hopper']={'minDate':new Date(),'dateTime':new Date()};function _0x201a72(){const _0x467e2d=_0x531c0e;return _0x37a1b3[_0x467e2d('0x162')]=!![],_0x308bc0['cmHopper'][_0x467e2d('0x1195')]({'phone':_0x37a1b3[_0x467e2d('0x82b')][_0x467e2d('0xa04')],'UserId':_0x1c9ac4?_0xfbf732[_0x467e2d('0x14d4')]()['id']:null,'ContactId':_0x37a1b3['contact']['id'],'ListId':_0x37a1b3[_0x467e2d('0x82b')][_0x467e2d('0xef2')],'VoiceQueueId':Number(_0x37a1b3[_0x467e2d('0x67a')][_0x467e2d('0x1369')]),'scheduledat':_0x156524()(_0x37a1b3[_0x467e2d('0x10f4')]['dateTime'])['format'](_0x467e2d('0xf5f')),'priority':0x3,'recallme':_0x1c9ac4,'OwnerId':_0xfbf732[_0x467e2d('0x14d4')]()['id']})[_0x467e2d('0x1964')][_0x467e2d('0x173b')](function(){const _0xa674f6=_0x467e2d;_0x308bc0[_0xa674f6('0x1ccf')][_0xa674f6('0x1842')]({'id':_0x37a1b3['call'][_0xa674f6('0x207c')],'rescheduled':!![],'rescheduledat':_0x156524()(_0x37a1b3[_0xa674f6('0x10f4')][_0xa674f6('0x2793')])['format']('YYYY-MM-DD\x20HH:mm:ss'),'recallme':_0x1c9ac4})[_0xa674f6('0x1964')];})['then'](function(){const _0xbeb918=_0x467e2d;_0xe95840[_0xbeb918('0xdfe')]({'title':_0x4d1545['instant'](_0xbeb918('0x1dc2')),'msg':_0x4d1545['instant'](_0xbeb918('0x1aab'))+'\x20'+(_0x1c9ac4?_0x4d1545[_0xbeb918('0x1467')](_0xbeb918('0x1aa2')):_0x4d1545[_0xbeb918('0x1467')](_0xbeb918('0x247f')))}),_0x29c3ef['hide']();})[_0x467e2d('0x103c')](function(_0x504c47){const _0x19d447=_0x467e2d;_0x29c3ef[_0x19d447('0x1e1f')](_0x504c47);})['finally'](function(){_0x37a1b3['disable']=![];});}function _0x429a54(){_0x29c3ef['cancel']();}_0x37a1b3[_0x531c0e('0x18e2')]=_0x429a54,_0x37a1b3[_0x531c0e('0x13a')]=_0x201a72;}const _0x3c28a9=_0x4052e7;_0x3a9e44[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x638'),'api',_0x566993('0xd53'),_0x566993('0x188e'),_0x566993('0x1558')];function _0x3a9e44(_0x11654d,_0x1d4864,_0x29159c,_0x3e9128,_0x2cdfc2,_0x15f764){const _0x29125a=_0x566993,_0x1d3722=this;_0x1d3722['callNumber']=_0x2cdfc2,_0x1d3722[_0x29125a('0x182e')]=0x1;function _0xd148f0(){const _0x30083d=_0x29125a;_0x29159c[_0x30083d('0xbb3')][_0x30083d('0x1d97')]({'fields':'id,name','nolimit':!![]})[_0x30083d('0x1964')][_0x30083d('0x173b')](function(_0x1f279a){const _0x3fa86e=_0x30083d;_0x1d3722[_0x3fa86e('0x9e8')]=_0x3c8d8a()[_0x3fa86e('0x21ca')](_0x1f279a[_0x3fa86e('0x6aa')])[_0x3fa86e('0x128')]('id')[_0x3fa86e('0xa88')](_0x3fa86e('0x10ad'))[_0x3fa86e('0xa7b')](),_0x29159c[_0x3fa86e('0x157a')][_0x3fa86e('0x1d97')]({'fields':_0x3fa86e('0x23e3'),'nolimit':!![]})['$promise']['then'](function(_0x894300){const _0x4c1640=_0x3fa86e;_0x1d3722[_0x4c1640('0x179b')]=_0x894300[_0x4c1640('0x6aa')],_0x1d3722['contacts']=_0x3c8d8a()[_0x4c1640('0x8a2')](_0x3e9128,function(_0x260103){const _0x5ba743=_0x4c1640;return Object['keys'](_0x260103)[_0x5ba743('0xa6a')](function(_0x4e7f64){const _0xf553fb=_0x5ba743;if(Number(_0x260103[_0x4e7f64])===Number(_0x1d3722['callNumber'])){if(_0x4e7f64[_0xf553fb('0x17b2')]('cf_')){const _0x3b2bcd=_0x3c8d8a()[_0xf553fb('0x18ab')](_0x1d3722[_0xf553fb('0x179b')],['id',Number(_0x3c8d8a()[_0xf553fb('0x161e')](_0x4e7f64,_0xf553fb('0x205b')))]);_0x260103[_0xf553fb('0x1b06')]=_0x3b2bcd?_0x3b2bcd[_0xf553fb('0xf1e')]:_0x1d4864[_0xf553fb('0x1467')](_0xf553fb('0x172b'));}else _0x260103[_0xf553fb('0x1b06')]=_0x4e7f64;}}),_0x260103;});});})[_0x30083d('0x173b')](function(){const _0x5d1a9f=_0x30083d;_0x1d3722[_0x5d1a9f('0x18aa')]=_0x3c8d8a()['chunk'](_0x3e9128,0x4);})[_0x30083d('0x103c')](function(_0x48045d){const _0x219270=_0x30083d;_0x15f764[_0x219270('0x15aa')]({'title':_0x48045d[_0x219270('0x276f')]?_0x219270('0x137')+_0x48045d[_0x219270('0x276f')]+_0x219270('0x160c')+_0x48045d['statusText']:'api.cmList.get','msg':_0x48045d['data']?JSON[_0x219270('0x100b')](_0x48045d['data'][_0x219270('0x67f')]):_0x48045d[_0x219270('0x1b75')]()});});}function _0x25bb81(){const _0x2ebb56=_0x29125a;_0x11654d[_0x2ebb56('0x1cf4')](_0x1d3722[_0x2ebb56('0x1b53')]);}_0x1d3722[_0x29125a('0x2535')]=_0xd148f0,_0x1d3722[_0x29125a('0x20b9')]=_0x25bb81;}const _0x4ef272=_0x3a9e44;_0x2a4613[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$interval'];function _0x2a4613(_0xe32783,_0x3f210c){const _0x1abe0c=_0x566993;let _0x575e77=_0x3f210c(function(){},0x3e7);_0xe32783[_0x1abe0c('0xbf6')](_0x1abe0c('0x16d2'),function(){const _0x2b850b=_0x1abe0c;_0x575e77&&(_0x3f210c[_0x2b850b('0x1e1f')](_0x575e77),_0x575e77=null);});}const _0x2253dc=_0x2a4613;_0x5eb151['$inject']=[_0x566993('0x66f'),_0x566993('0x24b5'),'$mdDialog','$document',_0x566993('0x1d31'),_0x566993('0x638'),'api','Auth',_0x566993('0x2fc')];function _0x5eb151(_0x1d8e8d,_0x38f653,_0x4620c2,_0x38e24c,_0x5354da,_0x3858fa,_0x40327d,_0x3a8fca,_0x330666){const _0x196772=_0x566993,_0x29e237=this;_0x29e237[_0x196772('0x1319')]=![],_0x29e237[_0x196772('0x1d82')]=!![],_0x29e237[_0x196772('0x162')]=[],_0x29e237[_0x196772('0x9c6')]={'count':0x0,'rows':[]},_0x29e237[_0x196772('0x155f')]=_0x3a8fca[_0x196772('0x14d4')](),_0x29e237[_0x196772('0xeae')]={},_0x29e237[_0x196772('0x3f')]={'count':0x0,'rows':[]},_0x29e237[_0x196772('0xc49')]={'fields':_0x196772('0x88f'),'type':_0x196772('0xb33'),'queuecallerexitreason':'TIMEOUT'+','+_0x196772('0x27e'),'sort':_0x196772('0x1769'),'limit':0xa,'page':0x1},_0x29e237[_0x196772('0xf4a')]=_0x49d10d,_0x29e237[_0x196772('0x25c1')]=_0x70adbb,_0x29e237['onInit']=_0x34b0e9,_0x29e237[_0x196772('0x4e5')]=_0x264dd0,_0x29e237[_0x196772('0x251e')]=_0x311c04,_0x29e237['call']=_0x1d8e8d[_0x196772('0x1d44')]['$parent'][_0x196772('0x1d44')]['$parent']['vm'][_0x196772('0x67a')],_0x29e237[_0x196772('0x617')]=_0x1d8e8d['$parent'][_0x196772('0x1d44')][_0x196772('0x1d44')][_0x196772('0x1d44')]['vm']['transfer'],_0x29e237[_0x196772('0x265d')]=_0x1d8e8d[_0x196772('0x1d44')][_0x196772('0x1d44')][_0x196772('0x1d44')]['$parent']['vm'][_0x196772('0x265d')],_0x29e237[_0x196772('0x350')]=_0x1d8e8d[_0x196772('0x1d44')][_0x196772('0x1d44')][_0x196772('0x1d44')][_0x196772('0x1d44')]['vm'][_0x196772('0x350')],_0x29e237[_0x196772('0x159d')]=_0xec08f1,_0x29e237[_0x196772('0x1691')]=_0x371be0,_0x330666[_0x196772('0x165f')](_0x196772('0x14b9'),_0x1b53be),_0x330666[_0x196772('0x165f')](_0x196772('0x20fa'),_0x1eda78),_0x34b0e9();function _0x34b0e9(){const _0x2bcd4d=_0x196772;return _0x40327d[_0x2bcd4d('0x2766')][_0x2bcd4d('0x1d97')]({'MailAccountId':_0x2bcd4d('0x877'),'FaxAccountId':_0x2bcd4d('0x877'),'SmsAccountId':'null','WhatsappAccountId':_0x2bcd4d('0x877'),'OpenchannelAccountId':_0x2bcd4d('0x877'),'ChatWebsiteId':_0x2bcd4d('0x877')})[_0x2bcd4d('0x1964')][_0x2bcd4d('0x173b')](function(_0x56c823){const _0x3fc485=_0x2bcd4d;return _0x29e237['dispositions']=_0x56c823?_0x56c823['rows']:[],_0x40327d['user'][_0x3fc485('0x115e')]({'id':_0x3a8fca[_0x3fc485('0x14d4')]()['id'],'fields':_0x3fc485('0xd52'),'channel':_0x3fc485('0x21a8'),'type':_0x3fc485('0xb33'),'nolimit':!![]})[_0x3fc485('0x1964')];})[_0x2bcd4d('0x173b')](function(_0x5f5bf1){const _0x34b46d=_0x2bcd4d;_0x29e237['queues']=_0x5f5bf1||{'count':0x0,'rows':[]},_0x29e237[_0x34b46d('0xd5c')]=_0x3c8d8a()[_0x34b46d('0xa88')](_0x3c8d8a()[_0x34b46d('0x128')](_0x29e237[_0x34b46d('0xeae')][_0x34b46d('0x6aa')],_0x34b46d('0x10ad')),_0x34b46d('0x10ad')),_0x29e237[_0x34b46d('0xc71')]=_0x29e237[_0x34b46d('0xeae')][_0x34b46d('0x6aa')]?_0x3c8d8a()[_0x34b46d('0x8a2')](_0x29e237['queues'][_0x34b46d('0x6aa')],'name')[_0x34b46d('0x2259')](','):undefined;})[_0x2bcd4d('0x173b')](function(){const _0x3a329d=_0x2bcd4d;_0x29e237[_0x3a329d('0x485')]=_0x3a999c();})[_0x2bcd4d('0x103c')](function(_0x58740a){const _0x2f27c7=_0x2bcd4d;console[_0x2f27c7('0xe37')](_0x58740a);})['finally'](function(){const _0x36886b=_0x2bcd4d;let _0x52493b=_0x5354da['localStorage'][_0x36886b('0x1949')]('motion2.home.abandoned.bull.calls:'+_0x29e237[_0x36886b('0x155f')]['id']);if(_0x52493b)_0x52493b=JSON[_0x36886b('0x1d5e')](_0x52493b),_0x52493b[_0x36886b('0xc49')]&&(_0x29e237[_0x36886b('0xc49')]=_0x3c8d8a()[_0x36886b('0x9ef')](_0x52493b[_0x36886b('0xc49')],_0x3c8d8a()[_0x36886b('0x2797')](_0x29e237[_0x36886b('0xc49')],[_0x36886b('0xfbe'),_0x36886b('0x3e'),_0x36886b('0x182e')])),_0x29e237[_0x36886b('0xc49')]=_0x3c8d8a()[_0x36886b('0x2797')](_0x29e237[_0x36886b('0xc49')],_0x36886b('0x278d')));else{const _0x30df85={'$gte':_0x156524()()['startOf'](_0x36886b('0x70b'))['utcOffset'](0x0,!![])[_0x36886b('0xddc')](),'$lte':_0x156524()()[_0x36886b('0x733')]('month')[_0x36886b('0xaf5')](0x0,!![])[_0x36886b('0xddc')]()};_0x29e237[_0x36886b('0xc49')][_0x36886b('0xda8')]=_0x30df85;}_0x29e237[_0x36886b('0x82f')]=_0x29e237['query'][_0x36886b('0x278d')]?!![]:![],_0x29e237[_0x36886b('0xf4a')]();});}function _0x3a999c(){const _0xb5f7f2=_0x196772;return[{'name':_0xb5f7f2('0x1406'),'key':'createdAt','type':_0xb5f7f2('0x22b6'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0xb5f7f2('0x1547'),'key':'UserId','type':_0xb5f7f2('0xc65'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x29e237['currentUser']['id'],'translate':_0xb5f7f2('0x2449')},{'value':_0xb5f7f2('0x24e6'),'translate':_0xb5f7f2('0x27a8')},{'value':undefined,'translate':_0xb5f7f2('0x47a')}]},{'name':_0xb5f7f2('0xde5'),'key':_0xb5f7f2('0x172'),'type':'multiselect','label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0x29e237[_0xb5f7f2('0xeae')][_0xb5f7f2('0x6aa')],'ngValue':_0xb5f7f2('0x10ad'),'clearAll':![]}];}function _0x49d10d(){const _0x43c83d=_0x196772;_0x29e237[_0x43c83d('0xc49')][_0x43c83d('0x172')]=_0x29e237[_0x43c83d('0xc49')][_0x43c83d('0x172')]||_0x29e237['defaultQueues'][_0x43c83d('0x43a')](','),_0x29e237[_0x43c83d('0xc49')][_0x43c83d('0x17f0')]=(_0x29e237[_0x43c83d('0xc49')][_0x43c83d('0x182e')]-0x1)*_0x29e237[_0x43c83d('0xc49')][_0x43c83d('0x3e')];const _0x1f0c2a={'query':_0x29e237['query']};_0x5354da['localStorage']['setItem'](_0x43c83d('0x20ac')+_0x29e237[_0x43c83d('0x155f')]['id'],JSON[_0x43c83d('0x100b')](_0x1f0c2a)),_0x29e237[_0x43c83d('0x2219')]=_0x40327d[_0x43c83d('0x1c98')][_0x43c83d('0x2bf')](_0x29e237[_0x43c83d('0xc49')],_0x5044da)[_0x43c83d('0x1964')];}function _0x5044da(_0x1ef05b){const _0x3b4628=_0x196772;_0x29e237[_0x3b4628('0x3f')]=_0x1ef05b||{'count':0x0,'rows':[]},_0x29e237[_0x3b4628('0x1d82')]=!![];}function _0x311c04(_0x6dbbc7){const _0x14893f=_0x196772;_0x4620c2['show']({'controller':_0x14893f('0xcd5'),'controllerAs':'vm','templateUrl':_0x14893f('0x162c'),'parent':angular[_0x14893f('0xb6d')](_0x38e24c['body']),'targetEvent':_0x6dbbc7,'resolve':{'globalDispositions':[_0x14893f('0x2401'),function(_0xff1bf8){const _0x3cbff4=_0x14893f;return _0xff1bf8['resolve'](_0x3cbff4('0x16c5'),{'MailAccountId':_0x3cbff4('0x877'),'FaxAccountId':_0x3cbff4('0x877'),'SmsAccountId':_0x3cbff4('0x877'),'WhatsappAccountId':_0x3cbff4('0x877'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x3cbff4('0x877'),'ListId':_0x3cbff4('0x877')});}]},'locals':{'dispositions':_0x29e237[_0x14893f('0x9c6')],'call':_0x6dbbc7}})[_0x14893f('0x173b')](function(_0xcee5fe){const _0x14b698=_0x14893f;if(_0xcee5fe){_0x29e237[_0x14b698('0x162')][_0x6dbbc7['id']]=!![];const _0x585879={'id':_0x6dbbc7['id'],'lastAssignedTo':_0x6dbbc7['assigned']?_0x29e237['currentUser'][_0x14b698('0x10ad')]:null,'assigned':_0x6dbbc7['assigned'],'disposition':_0xcee5fe[_0x14b698('0x11fb')]||null,'secondDisposition':_0xcee5fe[_0x14b698('0xd7')]||null,'thirdDisposition':_0xcee5fe[_0x14b698('0x1f1a')]||null};_0x40327d['voiceQueueReport'][_0x14b698('0x1842')](_0x585879)[_0x14b698('0x1964')][_0x14b698('0x103c')](function(_0x58a027){const _0x32ed6d=_0x14b698;console[_0x32ed6d('0xe37')](_0x58a027);})['finally'](function(){_0x29e237['disable'][_0x6dbbc7['id']]=![];});}});}function _0xec08f1(){const _0x50957c=_0x196772;_0x29e237[_0x50957c('0xc49')]['filter']=undefined,_0x29e237[_0x50957c('0x82f')]=![];}function _0x371be0(){const _0x515433=_0x196772;_0x29e237[_0x515433('0x82f')]=!![];}let _0x5577c6=!![],_0x1b066f=0x1;_0x1d8e8d[_0x196772('0x1bdb')]('vm_bull.query.filter',function(_0x243960,_0x477319){const _0x3ccc90=_0x196772;_0x5577c6?_0x38f653(function(){_0x5577c6=![];}):(!_0x477319&&(_0x1b066f=_0x29e237[_0x3ccc90('0xc49')][_0x3ccc90('0x182e')]),_0x243960!==_0x477319&&(_0x29e237[_0x3ccc90('0xc49')]['page']=0x1),!_0x243960&&(_0x29e237[_0x3ccc90('0xc49')][_0x3ccc90('0x182e')]=_0x1b066f),_0x29e237[_0x3ccc90('0xf4a')]());});function _0x70adbb(){_0x29e237['showTooltip']=![],_0x29e237['getAbandonedCalls']();}function _0x264dd0(_0x332585){const _0x2052ec=_0x196772;_0x332585&&(_0x29e237[_0x2052ec('0x162')][_0x332585['id']]=!![],_0x40327d['voiceQueueReport'][_0x2052ec('0x1842')]({'id':_0x332585['id'],'lastAssignedTo':_0x332585['assigned']?_0x29e237[_0x2052ec('0x155f')][_0x2052ec('0x10ad')]:null,'assigned':_0x332585['assigned']})['$promise'][_0x2052ec('0x103c')](function(_0x4386c9){const _0x3f0db8=_0x2052ec;console[_0x3f0db8('0xe37')](_0x4386c9);})[_0x2052ec('0xf25')](function(){_0x29e237['disable'][_0x332585['id']]=![];}));}function _0x1b53be(_0x1012ba){const _0x3b10c0=_0x196772;_0x29e237[_0x3b10c0('0xd5c')]&&_0x1012ba['type']===_0x3b10c0('0xb33')&&_0x29e237[_0x3b10c0('0xd5c')][_0x1012ba[_0x3b10c0('0x172')]]&&(_0x29e237[_0x3b10c0('0x1319')]=!![]);}function _0x1eda78(_0x154642){const _0x496fe4=_0x196772;if(_0x154642){const _0x368125=_0x3c8d8a()['findIndex'](_0x29e237['abandonedCalls'][_0x496fe4('0x6aa')],['id',_0x154642['id']]);_0x368125>=0x0&&_0x3c8d8a()[_0x496fe4('0x9ef')](_0x29e237[_0x496fe4('0x3f')][_0x496fe4('0x6aa')][_0x368125],_0x154642);}}_0x1d8e8d[_0x196772('0xbf6')]('$destroy',function(){const _0x5d8cbb=_0x196772;_0x330666[_0x5d8cbb('0x251c')](_0x5d8cbb('0x14b9')),_0x330666[_0x5d8cbb('0x251c')](_0x5d8cbb('0x20fa'));});}const _0x2b7aa8=_0x5eb151;_0x76c2ae[_0x566993('0x17bb')]=['$mdDialog','dispositions',_0x566993('0x1b71'),_0x566993('0x67a')];function _0x76c2ae(_0x471d95,_0x48b128,_0x235381,_0x31191a){const _0x6b466a=_0x566993,_0x4b4cf8=this;_0x4b4cf8['dispositions']=_0x48b128['rows'],_0x4b4cf8['globalDispositions']=_0x235381['rows'],_0x4b4cf8[_0x6b466a('0x67a')]=_0x31191a,_0x4b4cf8[_0x6b466a('0x2564')]=_0x4b4cf8[_0x6b466a('0x67a')][_0x6b466a('0x2564')]||undefined,_0x4b4cf8[_0x6b466a('0x128b')]=_0x496cb4,_0x4b4cf8['clearDispositionSelection']=_0x2b5947,_0x4b4cf8['saveDisposition']=_0x9e12c1,_0x4b4cf8['closeDialog']=_0x3b6fb9;function _0x496cb4(_0x361547){const _0x306fe8=_0x6b466a,_0x539675=_0x3c8d8a()[_0x306fe8('0x6ef')](_0x4b4cf8[_0x306fe8('0x9c6')],_0x4b4cf8[_0x306fe8('0x1b71')],'id');switch(_0x361547){case'first':_0x4b4cf8[_0x306fe8('0x2773')]=_0x4b4cf8[_0x306fe8('0x6a8')],_0x4b4cf8[_0x306fe8('0xbd9')]=_0x3c8d8a()[_0x306fe8('0x1ec')](_0x539675,[_0x306fe8('0x2644'),_0x4b4cf8[_0x306fe8('0x6a8')]['id']]),_0x4b4cf8[_0x306fe8('0x9a2')]=undefined,_0x4b4cf8[_0x306fe8('0x2299')]=undefined,_0x4b4cf8[_0x306fe8('0x1619')]=![];break;case _0x306fe8('0x6f3'):_0x4b4cf8[_0x306fe8('0x2773')]=_0x4b4cf8[_0x306fe8('0x9a2')],_0x4b4cf8[_0x306fe8('0x1619')]=_0x3c8d8a()[_0x306fe8('0x1ec')](_0x539675,[_0x306fe8('0x2644'),_0x4b4cf8[_0x306fe8('0x9a2')]['id']]);break;case _0x306fe8('0x263a'):_0x4b4cf8[_0x306fe8('0x2773')]=_0x4b4cf8[_0x306fe8('0x2299')];break;}}function _0x2b5947(_0xd13fbf){const _0x2e175c=_0x6b466a;if(_0xd13fbf==='second')_0x4b4cf8[_0x2e175c('0x9a2')]=undefined,_0x4b4cf8[_0x2e175c('0x2299')]=undefined,_0x4b4cf8[_0x2e175c('0x2773')]=_0x4b4cf8[_0x2e175c('0x6a8')];else _0xd13fbf===_0x2e175c('0x263a')&&(_0x4b4cf8[_0x2e175c('0x2299')]=undefined,_0x4b4cf8[_0x2e175c('0x2773')]=_0x4b4cf8[_0x2e175c('0x9a2')]);}function _0x9e12c1(){const _0x50d34e=_0x6b466a;_0x4b4cf8[_0x50d34e('0x67a')][_0x50d34e('0x2564')]=_0x4b4cf8[_0x50d34e('0x2564')];const _0x4077aa={'firstLevel':_0x4b4cf8['firstLevelDisposition']?_0x4b4cf8[_0x50d34e('0x6a8')][_0x50d34e('0x10ad')]:undefined,'secondLevel':_0x4b4cf8[_0x50d34e('0x9a2')]?_0x4b4cf8['secondLevelDisposition'][_0x50d34e('0x10ad')]:undefined,'thirdLevel':_0x4b4cf8[_0x50d34e('0x2299')]?_0x4b4cf8['thirdLevelDisposition'][_0x50d34e('0x10ad')]:undefined};_0x471d95[_0x50d34e('0x1cf4')](_0x4077aa);}function _0x3b6fb9(){const _0x2f2071=_0x6b466a;_0x471d95[_0x2f2071('0x1e1f')]();}}const _0x38391f=_0x76c2ae;_0x1631cc[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),'$mdDialog',_0x566993('0x1b82'),'$window',_0x566993('0x638'),'api','Auth','socket'];function _0x1631cc(_0x77b599,_0x4ca24,_0xc9ba6b,_0x5eea6f,_0x532002,_0x3554dc,_0x2eb343,_0x445be0,_0x1ed6f5){const _0x14e4f2=_0x566993,_0x11f619=this;_0x11f619['showTooltip']=![],_0x11f619['refresh']=!![],_0x11f619[_0x14e4f2('0x162')]=[],_0x11f619[_0x14e4f2('0x9c6')]={'count':0x0,'rows':[]},_0x11f619[_0x14e4f2('0x155f')]=_0x445be0['getCurrentUser'](),_0x11f619['queues']={},_0x11f619[_0x14e4f2('0x3f')]={'count':0x0,'rows':[]},_0x11f619['query']={'fields':'id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','type':_0x14e4f2('0x1755'),'queuecallerexitreason':_0x14e4f2('0x16ac')+','+'ABANDONED','sort':_0x14e4f2('0x1769'),'limit':0xa,'page':0x1},_0x11f619[_0x14e4f2('0xf4a')]=_0x2255eb,_0x11f619['refreshAbandonedCalls']=_0x40f42,_0x11f619[_0x14e4f2('0x2535')]=_0x3f7394,_0x11f619[_0x14e4f2('0x4e5')]=_0xcc30cb,_0x11f619[_0x14e4f2('0x251e')]=_0x312b21,_0x11f619[_0x14e4f2('0x67a')]=_0x77b599[_0x14e4f2('0x1d44')][_0x14e4f2('0x1d44')]['$parent'][_0x14e4f2('0x1d44')]['vm']['call'],_0x11f619[_0x14e4f2('0x617')]=_0x77b599[_0x14e4f2('0x1d44')][_0x14e4f2('0x1d44')]['$parent']['$parent']['vm'][_0x14e4f2('0x617')],_0x11f619[_0x14e4f2('0x265d')]=_0x77b599['$parent'][_0x14e4f2('0x1d44')][_0x14e4f2('0x1d44')][_0x14e4f2('0x1d44')]['vm'][_0x14e4f2('0x265d')],_0x11f619[_0x14e4f2('0x350')]=_0x77b599[_0x14e4f2('0x1d44')][_0x14e4f2('0x1d44')][_0x14e4f2('0x1d44')][_0x14e4f2('0x1d44')]['vm'][_0x14e4f2('0x350')],_0x11f619['onSearchBarCollapse']=_0x50e071,_0x11f619['onSearchBarExpand']=_0x29b70f,_0x1ed6f5['onWithoutApply'](_0x14e4f2('0x14b9'),_0xd3d09f),_0x1ed6f5[_0x14e4f2('0x165f')](_0x14e4f2('0x20fa'),_0x587dce),_0x3f7394();function _0x3f7394(){const _0x54ccd2=_0x14e4f2;return _0x2eb343[_0x54ccd2('0x2766')][_0x54ccd2('0x1d97')]({'MailAccountId':'null','FaxAccountId':_0x54ccd2('0x877'),'SmsAccountId':'null','WhatsappAccountId':_0x54ccd2('0x877'),'OpenchannelAccountId':_0x54ccd2('0x877'),'ChatWebsiteId':_0x54ccd2('0x877')})[_0x54ccd2('0x1964')][_0x54ccd2('0x173b')](function(_0x287c93){const _0x590365=_0x54ccd2;return _0x11f619['dispositions']=_0x287c93?_0x287c93[_0x590365('0x6aa')]:[],_0x2eb343[_0x590365('0x166f')][_0x590365('0x115e')]({'id':_0x445be0[_0x590365('0x14d4')]()['id'],'fields':_0x590365('0xd52'),'channel':_0x590365('0x21a8'),'type':_0x590365('0x1755'),'nolimit':!![]})[_0x590365('0x1964')];})[_0x54ccd2('0x173b')](function(_0x539c49){const _0x563e25=_0x54ccd2;_0x11f619[_0x563e25('0xeae')]=_0x539c49||{'count':0x0,'rows':[]},_0x11f619[_0x563e25('0xd5c')]=_0x3c8d8a()[_0x563e25('0xa88')](_0x3c8d8a()[_0x563e25('0x128')](_0x11f619['queues']['rows'],_0x563e25('0x10ad')),_0x563e25('0x10ad')),_0x11f619[_0x563e25('0xc71')]=_0x11f619[_0x563e25('0xeae')][_0x563e25('0x6aa')]?_0x3c8d8a()[_0x563e25('0x8a2')](_0x11f619[_0x563e25('0xeae')]['rows'],_0x563e25('0x10ad'))['join'](','):undefined;})['then'](function(){_0x11f619['quickFilters']=_0x36166d();})[_0x54ccd2('0x103c')](function(_0x290e59){const _0xb4775b=_0x54ccd2;console[_0xb4775b('0xe37')](_0x290e59);})[_0x54ccd2('0xf25')](function(){const _0x3854fa=_0x54ccd2;let _0x3ab9f1=_0x532002[_0x3854fa('0x1937')]['getItem'](_0x3854fa('0xdd6')+_0x11f619[_0x3854fa('0x155f')]['id']);if(_0x3ab9f1)_0x3ab9f1=JSON['parse'](_0x3ab9f1),_0x3ab9f1[_0x3854fa('0xc49')]&&(_0x11f619['query']=_0x3c8d8a()['merge'](_0x3ab9f1[_0x3854fa('0xc49')],_0x3c8d8a()[_0x3854fa('0x2797')](_0x11f619[_0x3854fa('0xc49')],[_0x3854fa('0xfbe'),_0x3854fa('0x3e'),_0x3854fa('0x182e')])),_0x11f619[_0x3854fa('0xc49')]=_0x3c8d8a()[_0x3854fa('0x2797')](_0x11f619[_0x3854fa('0xc49')],_0x3854fa('0x278d')));else{const _0x3a51de={'$gte':_0x156524()()[_0x3854fa('0x2145')]('month')[_0x3854fa('0xaf5')](0x0,!![])[_0x3854fa('0xddc')](),'$lte':_0x156524()()[_0x3854fa('0x733')]('month')[_0x3854fa('0xaf5')](0x0,!![])['format']()};_0x11f619[_0x3854fa('0xc49')]['createdAt']=_0x3a51de;}_0x11f619[_0x3854fa('0x82f')]=_0x11f619['query']['filter']?!![]:![],_0x11f619[_0x3854fa('0xf4a')]();});}function _0x36166d(){const _0x6eed2=_0x14e4f2;return[{'name':_0x6eed2('0x1406'),'key':'createdAt','type':_0x6eed2('0x22b6'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x6eed2('0x1547'),'key':_0x6eed2('0x181c'),'type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x11f619[_0x6eed2('0x155f')]['id'],'translate':_0x6eed2('0x2449')},{'value':'\x27null\x27','translate':_0x6eed2('0x27a8')},{'value':undefined,'translate':_0x6eed2('0x47a')}]},{'name':_0x6eed2('0xde5'),'key':_0x6eed2('0x172'),'type':'multiselect','label':_0x6eed2('0x2ca'),'options':_0x11f619[_0x6eed2('0xeae')][_0x6eed2('0x6aa')],'ngValue':_0x6eed2('0x10ad'),'clearAll':![]}];}function _0x2255eb(){const _0xaa0355=_0x14e4f2;_0x11f619[_0xaa0355('0xc49')][_0xaa0355('0x172')]=_0x11f619[_0xaa0355('0xc49')]['queue']||_0x11f619[_0xaa0355('0xc71')]['split'](','),_0x11f619[_0xaa0355('0xc49')][_0xaa0355('0x17f0')]=(_0x11f619['query']['page']-0x1)*_0x11f619[_0xaa0355('0xc49')][_0xaa0355('0x3e')];const _0x15cb0a={'query':_0x11f619[_0xaa0355('0xc49')]};_0x532002[_0xaa0355('0x1937')][_0xaa0355('0x7e')](_0xaa0355('0xdd6')+_0x11f619['currentUser']['id'],JSON[_0xaa0355('0x100b')](_0x15cb0a)),_0x11f619[_0xaa0355('0x2219')]=_0x2eb343['voiceQueueReport'][_0xaa0355('0x2bf')](_0x11f619[_0xaa0355('0xc49')],_0x4e4e02)['$promise'];}function _0x4e4e02(_0x2fdfde){const _0x126d51=_0x14e4f2;_0x11f619[_0x126d51('0x3f')]=_0x2fdfde||{'count':0x0,'rows':[]},_0x11f619[_0x126d51('0x1d82')]=!![];}function _0x312b21(_0xa31787){const _0x244efc=_0x14e4f2;_0xc9ba6b[_0x244efc('0x1cb7')]({'controller':_0x244efc('0xcd5'),'controllerAs':'vm','templateUrl':_0x244efc('0x162c'),'parent':angular['element'](_0x5eea6f[_0x244efc('0x1a5')]),'targetEvent':_0xa31787,'resolve':{'globalDispositions':[_0x244efc('0x2401'),function(_0x17293a){const _0xb566df=_0x244efc;return _0x17293a[_0xb566df('0x155b')]('disposition@get',{'MailAccountId':_0xb566df('0x877'),'FaxAccountId':_0xb566df('0x877'),'SmsAccountId':_0xb566df('0x877'),'WhatsappAccountId':'null','OpenchannelAccountId':_0xb566df('0x877'),'ChatWebsiteId':_0xb566df('0x877'),'ListId':_0xb566df('0x877')});}]},'locals':{'dispositions':_0x11f619[_0x244efc('0x9c6')],'call':_0xa31787}})[_0x244efc('0x173b')](function(_0x2dffb8){const _0x4f7236=_0x244efc;if(_0x2dffb8){_0x11f619[_0x4f7236('0x162')][_0xa31787['id']]=!![];const _0x3bee11={'id':_0xa31787['id'],'lastAssignedTo':_0xa31787[_0x4f7236('0x3f6')]?_0x11f619[_0x4f7236('0x155f')][_0x4f7236('0x10ad')]:null,'assigned':_0xa31787['assigned'],'disposition':_0x2dffb8[_0x4f7236('0x11fb')]||null,'secondDisposition':_0x2dffb8['secondLevel']||null,'thirdDisposition':_0x2dffb8[_0x4f7236('0x1f1a')]||null};_0x2eb343['voiceQueueReport'][_0x4f7236('0x1842')](_0x3bee11)[_0x4f7236('0x1964')]['catch'](function(_0x5b0f04){console['log'](_0x5b0f04);})[_0x4f7236('0xf25')](function(){const _0x4cf4dd=_0x4f7236;_0x11f619[_0x4cf4dd('0x162')][_0xa31787['id']]=![];});}});}function _0x50e071(){const _0x56c06b=_0x14e4f2;_0x11f619['query'][_0x56c06b('0x278d')]=undefined,_0x11f619['isSearchBarVisible']=![];}function _0x29b70f(){const _0x4c49c9=_0x14e4f2;_0x11f619[_0x4c49c9('0x82f')]=!![];}let _0xa16e9a=!![],_0xd8e336=0x1;_0x77b599[_0x14e4f2('0x1bdb')](_0x14e4f2('0x15bb'),function(_0x3ce675,_0x34bb3a){const _0x2e1453=_0x14e4f2;_0xa16e9a?_0x4ca24(function(){_0xa16e9a=![];}):(!_0x34bb3a&&(_0xd8e336=_0x11f619[_0x2e1453('0xc49')][_0x2e1453('0x182e')]),_0x3ce675!==_0x34bb3a&&(_0x11f619['query']['page']=0x1),!_0x3ce675&&(_0x11f619[_0x2e1453('0xc49')][_0x2e1453('0x182e')]=_0xd8e336),_0x11f619['getAbandonedCalls']());});function _0x40f42(){const _0x476653=_0x14e4f2;_0x11f619[_0x476653('0x1319')]=![],_0x11f619[_0x476653('0xf4a')]();}function _0xcc30cb(_0x27e753){const _0x3b7dc4=_0x14e4f2;_0x27e753&&(_0x11f619[_0x3b7dc4('0x162')][_0x27e753['id']]=!![],_0x2eb343[_0x3b7dc4('0x1c98')]['update']({'id':_0x27e753['id'],'lastAssignedTo':_0x27e753['assigned']?_0x11f619[_0x3b7dc4('0x155f')][_0x3b7dc4('0x10ad')]:null,'assigned':_0x27e753[_0x3b7dc4('0x3f6')]})[_0x3b7dc4('0x1964')][_0x3b7dc4('0x103c')](function(_0x301293){console['log'](_0x301293);})[_0x3b7dc4('0xf25')](function(){const _0x20e9b9=_0x3b7dc4;_0x11f619[_0x20e9b9('0x162')][_0x27e753['id']]=![];}));}function _0xd3d09f(_0x3ce8ac){const _0x445bf1=_0x14e4f2;_0x11f619[_0x445bf1('0xd5c')]&&_0x3ce8ac[_0x445bf1('0x1810')]===_0x445bf1('0x1755')&&_0x11f619[_0x445bf1('0xd5c')][_0x3ce8ac[_0x445bf1('0x172')]]&&(_0x11f619[_0x445bf1('0x1319')]=!![]);}function _0x587dce(_0x1b094f){const _0x47e30b=_0x14e4f2;if(_0x1b094f){const _0x27657c=_0x3c8d8a()['findIndex'](_0x11f619[_0x47e30b('0x3f')][_0x47e30b('0x6aa')],['id',_0x1b094f['id']]);_0x27657c>=0x0&&_0x3c8d8a()[_0x47e30b('0x9ef')](_0x11f619[_0x47e30b('0x3f')][_0x47e30b('0x6aa')][_0x27657c],_0x1b094f);}}_0x77b599[_0x14e4f2('0xbf6')]('$destroy',function(){const _0x7ecd34=_0x14e4f2;_0x1ed6f5[_0x7ecd34('0x251c')]('voiceQueueReport:save'),_0x1ed6f5[_0x7ecd34('0x251c')](_0x7ecd34('0x20fa'));});}const _0x5bd6d1=_0x1631cc;_0x3cd558['$inject']=[_0x566993('0x66f'),'$window','Auth','msNavigationAgentService','draftManager'];function _0x3cd558(_0x45893f,_0x446056,_0x557ed6,_0x212dcc,_0x2aa973){const _0x58df35=_0x566993,_0x5b4977=this;_0x5b4977[_0x58df35('0x166f')]=_0x557ed6[_0x58df35('0x14d4')](),_0x5b4977[_0x58df35('0x1a29')]={},_0x5b4977[_0x58df35('0x19f2')]={},_0x5b4977[_0x58df35('0x251')]={},_0x5b4977[_0x58df35('0x217d')]=_0x58df35('0x10ea'),_0x5b4977[_0x58df35('0x2b7')]=_0x2aa973,_0x5b4977[_0x58df35('0x1ea9')]=_0x212dcc[_0x58df35('0x22f3')](),_0x5b4977[_0x58df35('0x2716')]=_0x45893f[_0x58df35('0x1d44')]['vm']['addContactTab'],_0x5b4977[_0x58df35('0xe63')]=_0x45893f[_0x58df35('0x1d44')]['vm']['addInteractionTab'],_0x5b4977[_0x58df35('0xb9c')]=_0x114051,_0x5b4977[_0x58df35('0x17dd')]=_0x4c618d,_0x5b4977['hasPermission']=_0x25b86f;function _0x114051(_0x4274da,_0x43c6c9){const _0x81b048=_0x58df35;_0x5b4977[_0x81b048('0x1a29')]=_0x4274da,_0x5b4977[_0x81b048('0x251')]=_0x43c6c9;let _0x712e28=_0x446056[_0x81b048('0x1937')]['getItem'](_0x81b048('0xf58')+_0x5b4977[_0x81b048('0x166f')]['id']);if(_0x712e28){try{_0x712e28=JSON[_0x81b048('0x1d5e')](_0x712e28),_0x5b4977[_0x81b048('0x217d')]=_0x712e28['currentSidebarTab']?_0x712e28[_0x81b048('0x6d1')]:'dashboard';}catch(_0x40f3a9){console[_0x81b048('0x15aa')](_0x40f3a9),_0x5b4977['sidebar']=_0x81b048('0x10ea');}_0x5b4977[_0x81b048('0x217d')]==='mail'&&_0x5b4977[_0x81b048('0x2b7')]['init']();}}function _0x25b86f(_0x2b342e){const _0x4ad387=_0x58df35;return _0x557ed6[_0x4ad387('0x1f1b')](_0x2b342e);}function _0x4c618d(_0x19c2eb){const _0x310f64=_0x58df35;_0x5b4977[_0x310f64('0x217d')]=_0x19c2eb[_0x310f64('0x16cc')],_0x5b4977[_0x310f64('0x217d')]===_0x310f64('0x19f2')&&(_0x5b4977['plugin']=_0x19c2eb[_0x310f64('0x819')],_0x5b4977[_0x310f64('0x16b')]=_0x19c2eb['id'],_0x45893f[_0x310f64('0x21e8')](_0x310f64('0x20ee'),{'plugin':_0x5b4977[_0x310f64('0x19f2')]})),_0x446056['localStorage'][_0x310f64('0x7e')]('motion2.home:'+_0x5b4977[_0x310f64('0x166f')]['id'],JSON['stringify']({'currentSidebarTab':_0x19c2eb[_0x310f64('0x16cc')]}));}_0x45893f['$watch'](_0x58df35('0xb1f'),function(_0x23da7b){const _0x201ce3=_0x58df35;_0x23da7b===_0x201ce3('0x108a')?_0x5b4977['draftManager']['init']():_0x5b4977['draftManager'][_0x201ce3('0x1996')]={};});}const _0x3d7801=_0x3cd558,_0xe7b9fa=_0x21a6a1['p']+_0x566993('0x16f1');_0x2179d7[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1d31'),_0x566993('0x638'),'api',_0x566993('0x1600'),_0x566993('0x2fc'),'toasty'];function _0x2179d7(_0x5212a5,_0x516e27,_0x31bd2c,_0x1c969e,_0x111738,_0x992740,_0x3b481c,_0x1cbf5e,_0x3e33e5,_0x233b0e){const _0x316a09=_0x566993,_0x3bc4e4=this;_0x3bc4e4[_0x316a09('0x166f')]=_0x1cbf5e[_0x316a09('0x14d4')](),_0x3bc4e4[_0x316a09('0x1a29')]={},_0x3bc4e4[_0x316a09('0x251')]={},_0x3bc4e4[_0x316a09('0x22ac')]={'count':0x0,'rows':[]},_0x3bc4e4[_0x316a09('0x6e9')]={'count':0x0,'rows':[]},_0x3bc4e4[_0x316a09('0xc49')]={'includeAll':!![],'sort':_0x316a09('0x1769'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x3bc4e4[_0x316a09('0x2706')]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':'Contact','column':_0x316a09('0x1f70'),'type':_0x316a09('0xe92'),'options':{'searchFields':[_0x316a09('0x1e50'),_0x316a09('0x1806'),_0x316a09('0x28e')],'route':{'model':_0x316a09('0x1197'),'action':_0x316a09('0x1d97'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x316a09('0xdd7'),'nolimit':!![]}},'extraOperators':[_0x316a09('0x2694')],'excludedOperators':[_0x316a09('0x10be')]}},{'name':_0x316a09('0x176f'),'column':_0x316a09('0x1a5'),'type':'text','options':{'excludedOperators':[_0x316a09('0xc0c'),_0x316a09('0x10be')]}},{'name':'Status','column':_0x316a09('0x1636'),'type':_0x316a09('0xc65'),'values':[{'id':0x0,'translate':_0x316a09('0x163c')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':['$ne']}},{'name':'Customer\x20Ip','column':_0x316a09('0x1b52'),'type':_0x316a09('0x86e'),'options':{'excludedOperators':[_0x316a09('0xc0c'),_0x316a09('0x10be'),_0x316a09('0x7d2'),_0x316a09('0x1fcb')]}},{'name':_0x316a09('0x1547'),'column':_0x316a09('0x2265'),'type':_0x316a09('0xe92'),'options':{'table':'i','route':{'model':_0x316a09('0x166f'),'action':'get','params':{'role':_0x316a09('0x7b0'),'fields':_0x316a09('0x112d'),'nolimit':!![]}},'searchFields':[_0x316a09('0x572'),'name'],'extraOperators':[_0x316a09('0x2694')],'excludedOperators':[_0x316a09('0x10be')]}},{'name':'Website','column':_0x316a09('0x1796'),'type':_0x316a09('0x1c68'),'options':{'route':{'model':_0x316a09('0x166f'),'action':'getChatWebsites','params':{'id':_0x3bc4e4[_0x316a09('0x166f')]['id'],'nolimit':!![]}}}},{'name':_0x316a09('0xc38'),'column':_0x316a09('0x460'),'type':_0x316a09('0x1c68'),'options':{'route':{'model':_0x316a09('0x23b4'),'action':_0x316a09('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x316a09('0x1406'),'column':_0x316a09('0xda8'),'type':'date','options':{'excludedOperators':[_0x316a09('0x10be')]}},{'name':_0x316a09('0x247a'),'column':_0x316a09('0x25e9'),'type':'select','values':[{'id':0x1,'translate':_0x316a09('0x1170')},{'id':0x0,'translate':_0x316a09('0x1015')}],'options':{'excludedOperators':[_0x316a09('0x10be')]}}]},_0x3bc4e4[_0x316a09('0x1c9a')]=_0x316a09('0x77f'),_0x3bc4e4[_0x316a09('0x2535')]=_0x3fd296,_0x3bc4e4[_0x316a09('0xdfe')]=_0x1ac11e,_0x3bc4e4['getChatInteractions']=_0x37e9bc,_0x3bc4e4[_0x316a09('0x1b11')]=_0x533b72,_0x3bc4e4[_0x316a09('0x8f5')]=_0x29094d,_0x3bc4e4[_0x316a09('0x20f0')]=_0xe0ac72,_0x3bc4e4['getContactLabel']=_0x6d047a,_0x3bc4e4['getAgentLabel']=_0x36f697,_0x3bc4e4['getChatWebsiteLabel']=_0x923398,_0x3bc4e4[_0x316a09('0x159d')]=_0x4c9ab3,_0x3bc4e4[_0x316a09('0x1691')]=_0x4de1c2,_0x3bc4e4[_0x316a09('0x6f1')]=_0x17acd6;function _0x3fd296(_0x30c295,_0x6d6be2){const _0x2a70a5=_0x316a09;return _0x3bc4e4['license']=_0x30c295,_0x3bc4e4['setting']=_0x6d6be2,_0x3b481c[_0x2a70a5('0x166f')]['get'+_0x3c8d8a()['upperFirst']('ChatWebsites')]({'id':_0x3bc4e4[_0x2a70a5('0x166f')]['id'],'nolimit':!![]})[_0x2a70a5('0x1964')][_0x2a70a5('0x173b')](function(_0x137d26){const _0x4477ee=_0x2a70a5;return _0x3bc4e4[_0x4477ee('0x1e0e')]=_0x137d26||{'count':0x0,'rows':[]},_0x3b481c[_0x4477ee('0x23b4')]['get']()['$promise'];})[_0x2a70a5('0x173b')](function(_0x25bf1e){const _0x39e13f=_0x2a70a5;_0x3bc4e4[_0x39e13f('0x22ac')]=_0x25bf1e||{'count':0x0,'rows':[]};})[_0x2a70a5('0x173b')](function(){_0x3bc4e4['quickFilters']=_0x284e2a();})['catch'](function(_0x3535d2){console['error'](_0x3535d2);})[_0x2a70a5('0xf25')](function(){const _0x33fc2e=_0x2a70a5;let _0x137071=_0x111738['localStorage'][_0x33fc2e('0x1949')]('motion2.home.chat:'+_0x3bc4e4[_0x33fc2e('0x166f')]['id']);if(_0x137071)try{_0x137071=JSON['parse'](_0x137071);if(_0x137071['query']){_0x3bc4e4['query']=_0x3c8d8a()[_0x33fc2e('0x9ef')](_0x3bc4e4[_0x33fc2e('0xc49')],_0x137071[_0x33fc2e('0xc49')]);if(_0x3c8d8a()[_0x33fc2e('0x1a56')](_0x3bc4e4[_0x33fc2e('0x1e0e')][_0x33fc2e('0x6aa')]))_0x3bc4e4[_0x33fc2e('0xc49')][_0x33fc2e('0x1796')]=[];else _0x3c8d8a()['isEmpty'](_0x3bc4e4['query']['ChatWebsiteId'])&&(_0x3bc4e4[_0x33fc2e('0xc49')][_0x33fc2e('0x1796')]=_0x3c8d8a()(_0x3bc4e4[_0x33fc2e('0x1e0e')][_0x33fc2e('0x6aa')])[_0x33fc2e('0x8a2')]('id')[_0x33fc2e('0x1f6c')]()['value']());_0x3bc4e4[_0x33fc2e('0xc49')][_0x33fc2e('0xfbe')]&&_0x3bc4e4['query'][_0x33fc2e('0xfbe')][_0x33fc2e('0x2087')](_0x33fc2e('0x1642'))>=0x0&&(_0x3bc4e4['query']=_0x3c8d8a()['omit'](_0x3bc4e4['query'],'sort')),_0x3bc4e4[_0x33fc2e('0xc49')][_0x33fc2e('0x1dec')]=!![],_0x3bc4e4['isSearchBarVisible']=_0x3bc4e4[_0x33fc2e('0xc49')]['filter']?!![]:![];}}catch(_0x3fc2c0){console['error'](_0x3fc2c0);}else{const _0x1da925={'$gte':_0x156524()()['startOf'](_0x33fc2e('0x70b'))[_0x33fc2e('0xaf5')](0x0,!![])['format'](),'$lte':_0x156524()()[_0x33fc2e('0x733')](_0x33fc2e('0x70b'))[_0x33fc2e('0xaf5')](0x0,!![])[_0x33fc2e('0xddc')]()},_0x59f647={'ChatWebsiteId':_0x3c8d8a()[_0x33fc2e('0x8a2')](_0x3bc4e4[_0x33fc2e('0x1e0e')][_0x33fc2e('0x6aa')],'id'),'createdAt':_0x1da925};_0x3bc4e4[_0x33fc2e('0xc49')]=_0x3c8d8a()[_0x33fc2e('0x9ef')](_0x3bc4e4['query'],_0x59f647);}_0x3e33e5['on'](_0x33fc2e('0x1ae8'),_0x3e8ecf),_0x3e33e5['on'](_0x33fc2e('0x206c'),_0x3e8ecf),_0x3e33e5['on'](_0x33fc2e('0x1d3a'),_0x1a608e),_0x3e33e5['on'](_0x33fc2e('0x1b6c'),_0x961b1a),_0x3e33e5['on'](_0x33fc2e('0x1485'),_0x961b1a),_0x3e33e5['on']('user_has_chat_interactions:save',_0x5d6df1),_0x3e33e5['on'](_0x33fc2e('0x272d'),_0x46ed19),_0x37e9bc(_0x3bc4e4['query']['page']);});}function _0x284e2a(){const _0x207e04=_0x316a09;return[{'name':'Start\x20Date','key':_0x207e04('0xda8'),'type':'date','label':_0x207e04('0xa98')},{'name':_0x207e04('0x2634'),'key':_0x207e04('0x69b'),'type':_0x207e04('0xc65'),'label':_0x207e04('0x1881'),'customOptions':[{'value':0x0,'translate':_0x207e04('0x1015')},{'value':0x1,'translate':_0x207e04('0x1170')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x207e04('0xef8'),'key':_0x207e04('0x1636'),'type':_0x207e04('0xc65'),'label':_0x207e04('0x1647'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x207e04('0x1389')},{'value':null,'translate':_0x207e04('0x47a')}]},{'name':'Website','key':_0x207e04('0x1796'),'type':_0x207e04('0x1c68'),'label':'DASHBOARDS.SELECT_ACCOUNT','options':_0x3bc4e4['chatAccounts'][_0x207e04('0x6aa')],'clearAll':![]},{'name':_0x207e04('0x1547'),'key':_0x207e04('0x181c'),'type':'select','label':_0x207e04('0x956'),'customOptions':[{'value':_0x3bc4e4[_0x207e04('0x166f')]['id'],'translate':_0x207e04('0x2449')},{'value':_0x207e04('0x877'),'translate':_0x207e04('0x27a8')},{'value':undefined,'translate':_0x207e04('0x47a')}]},{'name':'Tag','key':'tag','type':_0x207e04('0x1c68'),'label':_0x207e04('0x1e6f'),'options':_0x3bc4e4['tags'][_0x207e04('0x6aa')],'placeholder':_0x207e04('0x96')}];}function _0x1ac11e(_0x2ce6a6){const _0x40eb71=_0x316a09;_0x3bc4e4[_0x40eb71('0x1e9c')]=![],_0x3bc4e4[_0x40eb71('0x6e9')]=_0x2ce6a6||{'count':0x0,'rows':[]};for(let _0x50e85d=0x0;_0x50e85d<_0x3bc4e4[_0x40eb71('0x6e9')]['rows']['length'];_0x50e85d+=0x1){_0x6d047a(_0x3bc4e4[_0x40eb71('0x6e9')]['rows'][_0x50e85d]);}}function _0x37e9bc(_0x386d5b){const _0x121524=_0x316a09;_0x3bc4e4[_0x121524('0x1e9c')]=!![];!_0x386d5b&&(_0x3bc4e4[_0x121524('0xc49')]['page']=0x1);_0x3bc4e4[_0x121524('0xc49')][_0x121524('0x17f0')]=(_0x3bc4e4[_0x121524('0xc49')][_0x121524('0x182e')]-0x1)*_0x3bc4e4[_0x121524('0xc49')]['limit'];let _0x30e41c=_0x111738[_0x121524('0x1937')][_0x121524('0x1949')](_0x121524('0x1cdf')+_0x3bc4e4[_0x121524('0x166f')]['id']);_0x30e41c=_0x30e41c?JSON['parse'](_0x30e41c):{},_0x30e41c['query']=_0x3bc4e4[_0x121524('0xc49')],_0x111738['localStorage'][_0x121524('0x7e')](_0x121524('0x1cdf')+_0x3bc4e4[_0x121524('0x166f')]['id'],JSON[_0x121524('0x100b')](_0x30e41c)),_0x3bc4e4[_0x121524('0x2219')]=_0x3b481c[_0x121524('0x22a3')][_0x121524('0x1d97')](_0x3bc4e4[_0x121524('0xc49')],_0x1ac11e)[_0x121524('0x1964')];}function _0x533b72(_0x2cd944,_0x58a923){const _0x2cb0fb=_0x316a09;_0x5212a5[_0x2cb0fb('0x1d44')]['vm'][_0x2cb0fb('0xe63')]('chat',_0x58a923);}function _0x29094d(_0x1faa69,_0x206b86,_0x373573){const _0x28e322=_0x316a09;_0x3b481c[_0x28e322('0x22a3')]['download']({'id':_0x206b86['id'],'attachments':_0x373573})[_0x28e322('0x1964')]['then'](function(_0x2b8312){const _0xb134db=_0x28e322,_0x444eaa=[_0x2b8312[_0xb134db('0x1c22')]],_0x575d62=_0xb134db('0x130d')+_0x206b86['id']+'.zip',_0x1d14aa=new Blob(_0x444eaa,{'type':_0x2b8312[_0xb134db('0x1810')]}),_0x2c76a8=window[_0xb134db('0x222a')][_0xb134db('0x1258')]('a');_0x2c76a8[_0xb134db('0x11c3')](_0xb134db('0x165c'),URL['createObjectURL'](_0x1d14aa)),_0x2c76a8[_0xb134db('0x11c3')](_0xb134db('0xfce'),_0x575d62),document[_0xb134db('0x1a5')]['appendChild'](_0x2c76a8),_0x2c76a8['click']();})[_0x28e322('0x103c')](function(_0x28bdba){const _0x1a796f=_0x28e322;if(_0x28bdba[_0x1a796f('0x1e07')]&&_0x28bdba[_0x1a796f('0x1e07')][_0x1a796f('0x1d4a')]&&_0x28bdba[_0x1a796f('0x1e07')]['errors']['length'])for(let _0x2e2073=0x0;_0x2e2073<_0x28bdba[_0x1a796f('0x1e07')][_0x1a796f('0x1d4a')][_0x1a796f('0x543')];_0x2e2073+=0x1){_0x233b0e[_0x1a796f('0x15aa')]({'title':_0x28bdba[_0x1a796f('0x1e07')][_0x1a796f('0x1d4a')][_0x2e2073][_0x1a796f('0x1810')],'msg':_0x28bdba['data']['errors'][_0x2e2073][_0x1a796f('0x67f')]});}else _0x233b0e[_0x1a796f('0x15aa')]({'title':_0x28bdba[_0x1a796f('0x276f')]?_0x1a796f('0x137')+_0x28bdba['status']+_0x1a796f('0x160c')+_0x28bdba['statusText']:_0x1a796f('0x8f5'),'msg':_0x28bdba[_0x1a796f('0x1e07')]?JSON['stringify'](_0x28bdba[_0x1a796f('0x1e07')][_0x1a796f('0x67f')]):_0x28bdba['toString']()});});}function _0xe0ac72(_0x5c26ab,_0x1ee784){const _0x3b7a89=_0x316a09,_0x4de275=_0x3bc4e4[_0x3b7a89('0x166f')][_0x3b7a89('0x67c')]||_0x3bc4e4[_0x3b7a89('0x166f')]['chatPause']||_0x3bc4e4[_0x3b7a89('0x166f')][_0x3b7a89('0xf41')]||_0x3bc4e4['user'][_0x3b7a89('0x106')]||_0x3bc4e4[_0x3b7a89('0x166f')][_0x3b7a89('0x13eb')],_0x4d58d7=!_0x1ee784[_0x3b7a89('0x1b91')][_0x3b7a89('0x130f')];_0x31bd2c[_0x3b7a89('0x1cb7')]({'controller':_0x3b7a89('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular['element'](_0x1c969e[_0x3b7a89('0x1a5')]),'clickOutsideToClose':_0x4d58d7,'escapeToClose':_0x4d58d7,'onRemoving':function(){const _0x4dc48c=_0x3b7a89;_0x3bc4e4[_0x4dc48c('0x166f')]&&_0x1ee784[_0x4dc48c('0x1b91')]['mandatoryDisposition']&&!_0x4de275&&_0x3b481c[_0x4dc48c('0x166f')]['unpause']({'id':_0x3bc4e4['user']['id']})[_0x4dc48c('0x1964')]['catch'](function(_0xd5b196){const _0x389521=_0x4dc48c;console[_0x389521('0x15aa')](_0xd5b196);});},'locals':{'user':_0x3bc4e4[_0x3b7a89('0x166f')],'channel':_0x3b7a89('0x8c5'),'interaction':_0x1ee784}});}function _0x6d047a(_0x15f9b7){const _0x4973fd=_0x316a09;_0x15f9b7[_0x4973fd('0x1f70')]?_0x15f9b7['contactName']=(_0x15f9b7['Contact'][_0x4973fd('0x1e50')]||'')+'\x20'+(_0x15f9b7['Contact']['lastName']||''):_0x15f9b7[_0x4973fd('0x98d')]=_0x992740[_0x4973fd('0x1467')](_0x4973fd('0x172b'));}function _0x36f697(_0x2929cb){const _0x13f2d6=_0x316a09;if(_0x2929cb[_0x13f2d6('0x181c')])return _0x2929cb[_0x13f2d6('0x181c')]===_0x3bc4e4[_0x13f2d6('0x166f')]['id']?_0x992740[_0x13f2d6('0x1467')](_0x13f2d6('0x2449')):_0x2929cb[_0x13f2d6('0x274f')][_0x13f2d6('0x572')]+'\x20<'+_0x2929cb[_0x13f2d6('0x274f')][_0x13f2d6('0x138c')]+'>';return _0x992740[_0x13f2d6('0x1467')](_0x13f2d6('0x27a8'));}function _0x923398(_0xe1b1d4){const _0x3af549=_0x316a09;if(_0xe1b1d4['Account'])return _0xe1b1d4[_0x3af549('0x1b91')][_0x3af549('0x237a')];return _0x992740[_0x3af549('0x1467')](_0x3af549('0x172b'));}function _0x5d6df1(_0x5ad245){const _0x2ca09f=_0x316a09;let _0x2ac4fb;const _0x345b32=_0x3c8d8a()[_0x2ca09f('0x18ab')](_0x3bc4e4[_0x2ca09f('0x6e9')][_0x2ca09f('0x6aa')],{'id':_0x5ad245[_0x2ca09f('0x109')]});_0x345b32&&_0x345b32[_0x2ca09f('0x1999')]&&(_0x2ac4fb=_0x3c8d8a()[_0x2ca09f('0x18ab')](_0x345b32[_0x2ca09f('0x1999')],{'id':_0x5ad245[_0x2ca09f('0x181c')]}),!_0x2ac4fb&&_0x345b32[_0x2ca09f('0x1999')]['push']({'id':_0x5ad245['UserId']}));}function _0x46ed19(_0x54306c){const _0x340916=_0x316a09,_0x1ffd0d=_0x3c8d8a()[_0x340916('0x18ab')](_0x3bc4e4[_0x340916('0x6e9')]['rows'],{'id':_0x54306c['ChatInteractionId']});_0x1ffd0d&&_0x1ffd0d['Users']&&_0x3c8d8a()[_0x340916('0x1a8b')](_0x1ffd0d[_0x340916('0x1999')],{'id':_0x54306c[_0x340916('0x181c')]});}function _0x3e8ecf(_0x2a5a64){const _0x4000b6=_0x316a09;if(_0x2a5a64){const _0x5b31f6=_0x3c8d8a()[_0x4000b6('0x18ab')](_0x3bc4e4[_0x4000b6('0x6e9')][_0x4000b6('0x6aa')],{'id':_0x2a5a64['id']});if(_0x5b31f6){_0x5b31f6['Users']=[];_0x2a5a64[_0x4000b6('0x1636')]&&(_0x5b31f6[_0x4000b6('0x25e9')]=0x0);if(_0x3bc4e4[_0x4000b6('0xc49')][_0x4000b6('0xfbe')]){const _0x27e792=_0x3c8d8a()['startsWith'](_0x3bc4e4[_0x4000b6('0xc49')][_0x4000b6('0xfbe')],'-')?'desc':'asc';_0x3bc4e4[_0x4000b6('0x6e9')]['rows']=_0x3c8d8a()[_0x4000b6('0x1d16')](_0x3bc4e4[_0x4000b6('0x6e9')][_0x4000b6('0x6aa')],_0x3c8d8a()[_0x4000b6('0x161e')](_0x3bc4e4[_0x4000b6('0xc49')][_0x4000b6('0xfbe')],'-'),_0x27e792);}_0x3c8d8a()['merge'](_0x5b31f6,_0x3c8d8a()[_0x4000b6('0x2114')](_0x2a5a64,_0x3c8d8a()[_0x4000b6('0x1d3e')](_0x5b31f6)));}else _0x37e9bc(_0x3bc4e4['query'][_0x4000b6('0x182e')]);}}function _0x1a608e(_0x4dda39){const _0x2ba576=_0x316a09;if(_0x4dda39){const _0x29c62d=_0x3c8d8a()[_0x2ba576('0x18ab')](_0x3bc4e4['chatInteractions'][_0x2ba576('0x6aa')],{'id':_0x4dda39['id']});_0x29c62d&&(_0x29c62d[_0x2ba576('0xc38')]=_0x4dda39[_0x2ba576('0x22ac')]||[],_0x3c8d8a()[_0x2ba576('0x9ef')](_0x29c62d,_0x3c8d8a()['pick'](_0x4dda39,_0x3c8d8a()[_0x2ba576('0x1d3e')](_0x29c62d))));}}function _0x961b1a(_0x1f1c9d){const _0x2860a0=_0x316a09;if(_0x1f1c9d&&!_0x1f1c9d['secret']){const _0x34d1dc=_0x3c8d8a()[_0x2860a0('0x18ab')](_0x3bc4e4['chatInteractions'][_0x2860a0('0x6aa')],{'id':_0x1f1c9d['ChatInteractionId']});if(_0x34d1dc){const _0xf9cd23=_0x3c8d8a()[_0x2860a0('0x18ab')](_0x34d1dc[_0x2860a0('0x2634')],{'id':_0x1f1c9d['id']});_0xf9cd23?_0x3c8d8a()['merge'](_0xf9cd23,_0x3c8d8a()[_0x2860a0('0x2114')](_0x1f1c9d,_0x3c8d8a()[_0x2860a0('0x1d3e')](_0xf9cd23))):(_0x3c8d8a()[_0x2860a0('0x7d5')](_0x34d1dc[_0x2860a0('0x2634')])&&(_0x34d1dc[_0x2860a0('0x2634')]={'count':0x0}),!_0x1f1c9d[_0x2860a0('0x69b')]&&(_0x34d1dc[_0x2860a0('0x2634')][_0x2860a0('0x1a2f')]+=0x1));}}}function _0x4c9ab3(){const _0x1b0b99=_0x316a09;_0x3bc4e4[_0x1b0b99('0x82f')]=![];}function _0x4de1c2(){const _0x242e86=_0x316a09;_0x3bc4e4[_0x242e86('0x82f')]=!![];}function _0x17acd6(){const _0x354ab8=_0x316a09;_0x3bc4e4[_0x354ab8('0x82f')]=![],_0x31bd2c[_0x354ab8('0x1cb7')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular['element'](_0x1c969e[_0x354ab8('0x1a5')]),'clickOutsideToClose':![],'locals':{'color':_0x3bc4e4[_0x354ab8('0x1c9a')],'fields':_0x3bc4e4[_0x354ab8('0x2706')][_0x354ab8('0x2340')],'storagePath':_0x354ab8('0x1d11')},'fullscreen':!![]})['then'](function(_0x3fcb11){const _0xa9e54d=_0x354ab8;_0x3bc4e4[_0xa9e54d('0xc49')][_0xa9e54d('0x23e7')]=_0x3fcb11===![]?undefined:_0x3fcb11;if(_0x3bc4e4['query'][_0xa9e54d('0x23e7')]||_0x3fcb11===![])_0x37e9bc();})[_0x354ab8('0x103c')](function(_0x3063a6){const _0x36b8bb=_0x354ab8;_0x233b0e['error']({'title':_0x36b8bb('0x280c'),'msg':_0x3063a6['data']?JSON[_0x36b8bb('0x100b')](_0x3063a6['data'][_0x36b8bb('0x67f')]):_0x3063a6[_0x36b8bb('0x1b75')]()});});}let _0x3e0584=!![],_0x4002b4=0x1;_0x5212a5[_0x316a09('0x1bdb')](_0x316a09('0x157b'),function(_0x5f186c,_0x25342c){const _0x130bab=_0x316a09;_0x3e0584?_0x516e27(function(){_0x3e0584=![];}):(!_0x25342c&&(_0x4002b4=_0x3bc4e4[_0x130bab('0xc49')][_0x130bab('0x182e')]),_0x5f186c!==_0x25342c&&(_0x3bc4e4[_0x130bab('0xc49')][_0x130bab('0x182e')]=0x1),!_0x5f186c&&(_0x3bc4e4['query'][_0x130bab('0x182e')]=_0x4002b4),_0x37e9bc(_0x3bc4e4[_0x130bab('0xc49')][_0x130bab('0x182e')]));}),_0x5212a5[_0x316a09('0xbf6')](_0x316a09('0x16d2'),function(){const _0x4734ab=_0x316a09;_0x3e33e5[_0x4734ab('0x251c')](_0x4734ab('0x1b6c')),_0x3e33e5[_0x4734ab('0x251c')](_0x4734ab('0x1485')),_0x3e33e5[_0x4734ab('0x251c')](_0x4734ab('0x1ae8')),_0x3e33e5[_0x4734ab('0x251c')]('chatInteractionTags:save'),_0x3e33e5[_0x4734ab('0x251c')](_0x4734ab('0x206c')),_0x3e33e5[_0x4734ab('0x251c')](_0x4734ab('0x1397')),_0x3e33e5[_0x4734ab('0x251c')](_0x4734ab('0x272d'));});}const _0x52e9f2=_0x2179d7;_0x3ee8b8[_0x566993('0x17bb')]=[_0x566993('0x1b82'),_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1d31'),_0x566993('0x1600'),_0x566993('0xbd4'),_0x566993('0x1558')];function _0x3ee8b8(_0x4c54a6,_0xf9d8b2,_0x14d4c3,_0x132bf8,_0x2be48e,_0x77fc73,_0x2ae86a,_0x3ec5a6){const _0x4024b4=_0x566993,_0x3f6d73=this;_0x3f6d73[_0x4024b4('0x155f')]=_0x77fc73[_0x4024b4('0x14d4')](),_0x3f6d73[_0x4024b4('0x9e8')]={},_0x3f6d73['contacts']={'count':0x0,'rows':[]},_0x3f6d73[_0x4024b4('0x22ac')]={'count':0x0,'rows':[]},_0x3f6d73['query']={'includeAll':!![],'sort':_0x4024b4('0x1769'),'limit':0xa,'page':0x1},_0x3f6d73[_0x4024b4('0x2706')]={'fields':[]},_0x3f6d73['sectionColor']=_0x4024b4('0x191a'),_0x3f6d73[_0x4024b4('0x2641')]=_0x22712c,_0x3f6d73[_0x4024b4('0x22db')]=_0x5c9ebd,_0x3f6d73[_0x4024b4('0x2ed')]=_0x35c291,_0x3f6d73[_0x4024b4('0xe60')]=_0x309fdf,_0x3f6d73[_0x4024b4('0x2388')]=_0x4ba38c,_0x3f6d73[_0x4024b4('0x67a')]=_0xf9d8b2['$parent']['vm']['call'],_0x3f6d73[_0x4024b4('0x2535')]=_0x520973,_0x3f6d73[_0x4024b4('0x159d')]=_0x19b341,_0x3f6d73[_0x4024b4('0x1691')]=_0x34e0a1,_0x3f6d73[_0x4024b4('0x6f1')]=_0x27cb27;function _0x520973(){const _0x2ed460=_0x4024b4;_0x2ae86a[_0x2ed460('0x166f')][_0x2ed460('0xe91')]({'id':_0x3f6d73[_0x2ed460('0x155f')]['id'],'fields':_0x2ed460('0xda4'),'sort':_0x2ed460('0x10ad'),'nolimit':!![]})['$promise'][_0x2ed460('0x173b')](function(_0x226195){const _0x5cd3eb=_0x2ed460;return _0x3f6d73[_0x5cd3eb('0x9e8')]=_0x226195||{'count':0x0,'rows':[]},_0x3f6d73['listsMap']=_0x3c8d8a()[_0x5cd3eb('0x128')](_0x3f6d73[_0x5cd3eb('0x9e8')][_0x5cd3eb('0x6aa')],'id'),_0x2ae86a[_0x5cd3eb('0x23b4')][_0x5cd3eb('0x1d97')]()[_0x5cd3eb('0x1964')];})[_0x2ed460('0x173b')](function(_0x369fab){const _0x15296f=_0x2ed460;_0x3f6d73[_0x15296f('0x22ac')]=_0x369fab||{'count':0x0,'rows':[]};})[_0x2ed460('0x173b')](function(){const _0x330d78=_0x2ed460;_0x3f6d73[_0x330d78('0x485')]=_0x5dfd38();})[_0x2ed460('0x103c')](function(_0x3b5d0a){const _0x2d8136=_0x2ed460;console[_0x2d8136('0x15aa')](_0x3b5d0a);})['finally'](function(){const _0x53403e=_0x2ed460;let _0x5b9c80=_0x2be48e[_0x53403e('0x1937')][_0x53403e('0x1949')](_0x53403e('0x448')+_0x3f6d73[_0x53403e('0x155f')]['id']);if(_0x5b9c80)try{_0x5b9c80=JSON[_0x53403e('0x1d5e')](_0x5b9c80);if(_0x5b9c80['query']){_0x3f6d73[_0x53403e('0xc49')]=_0x3c8d8a()['merge'](_0x3f6d73[_0x53403e('0xc49')],_0x5b9c80[_0x53403e('0xc49')]);if(_0x3c8d8a()['isEmpty'](_0x3f6d73[_0x53403e('0x9e8')][_0x53403e('0x6aa')]))_0x3f6d73['query'][_0x53403e('0xef2')]=[];else _0x3c8d8a()['isEmpty'](_0x3f6d73[_0x53403e('0xc49')][_0x53403e('0xef2')])&&(_0x3f6d73['query'][_0x53403e('0xef2')]=_0x3c8d8a()(_0x3f6d73['lists']['rows'])[_0x53403e('0x8a2')]('id')[_0x53403e('0x1f6c')]()[_0x53403e('0xa7b')]());}}catch(_0x544617){console[_0x53403e('0xe37')](_0x544617);}else _0x3f6d73[_0x53403e('0xc49')]['ListId']=_0x3c8d8a()['map'](_0x3f6d73['lists'][_0x53403e('0x6aa')],'id');_0x3f6d73['isSearchBarVisible']=_0x3f6d73['query'][_0x53403e('0x278d')]?!![]:![],_0x22712c();});}function _0x5dfd38(){const _0x3a8867=_0x4024b4;return[{'name':_0x3a8867('0x6bc'),'key':'ListId','type':_0x3a8867('0x1c68'),'label':_0x3a8867('0x1705'),'options':_0x3f6d73[_0x3a8867('0x9e8')]['rows'],'clearAll':![]},{'name':_0x3a8867('0x460'),'key':_0x3a8867('0x23b4'),'type':_0x3a8867('0x1c68'),'label':_0x3a8867('0x1e6f'),'options':_0x3f6d73['tags']['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x267a9b(_0x365687){_0x3f6d73['searchInProgress']=![],_0x3f6d73['contacts']=_0x365687||{'count':0x0,'rows':[]};}function _0x22712c(_0x31dc39){const _0x4b1e0c=_0x4024b4;_0x3f6d73[_0x4b1e0c('0x1e9c')]=!![],_0x1daa48();!_0x31dc39&&(_0x3f6d73['query'][_0x4b1e0c('0x182e')]=0x1);_0x3f6d73[_0x4b1e0c('0xc49')][_0x4b1e0c('0x17f0')]=(_0x3f6d73[_0x4b1e0c('0xc49')][_0x4b1e0c('0x182e')]-0x1)*_0x3f6d73[_0x4b1e0c('0xc49')]['limit'];let _0xa0d30d=_0x2be48e[_0x4b1e0c('0x1937')][_0x4b1e0c('0x1949')](_0x4b1e0c('0x448')+_0x3f6d73[_0x4b1e0c('0x155f')]['id']);_0xa0d30d=_0xa0d30d?JSON['parse'](_0xa0d30d):{},_0xa0d30d[_0x4b1e0c('0xc49')]=_0x3f6d73[_0x4b1e0c('0xc49')],_0x2be48e['localStorage'][_0x4b1e0c('0x7e')](_0x4b1e0c('0x448')+_0x3f6d73[_0x4b1e0c('0x155f')]['id'],JSON[_0x4b1e0c('0x100b')](_0xa0d30d)),_0x3f6d73['promise']=_0x2ae86a[_0x4b1e0c('0x1197')][_0x4b1e0c('0x1d97')](_0x3f6d73[_0x4b1e0c('0xc49')],_0x267a9b)[_0x4b1e0c('0x1964')];}function _0x4ba38c(_0xeffd18){const _0x2b1425=_0x4024b4;return _0x2ae86a[_0x2b1425('0x1197')]['get']({'id':_0xeffd18})[_0x2b1425('0x1964')][_0x2b1425('0x173b')](function(_0x30a687){const _0x3cf989=_0x2b1425;_0xf9d8b2['$parent']['vm'][_0x3cf989('0x2716')](_0x30a687);});}function _0x5c9ebd(){_0x22712c();}function _0x309fdf(_0x31237f,_0xe9edc){const _0x5782a0=_0x4024b4;_0x132bf8[_0x5782a0('0x1cb7')]({'controller':_0x5782a0('0x25ba'),'controllerAs':'vm','templateUrl':_0xf36d4e,'parent':angular[_0x5782a0('0xb6d')](_0x4c54a6['body']),'targetEvent':_0x31237f,'clickOutsideToClose':!![],'resolve':{'contact':[_0x5782a0('0x2401'),function(_0x57662d){const _0xbf5c32=_0x5782a0;return _0x57662d['resolve'](_0xbf5c32('0x2778'),{'id':_0xe9edc['id']});}],'lists':[_0x5782a0('0x2401'),function(_0x4a2562){const _0x248bc2=_0x5782a0;return _0x4a2562[_0x248bc2('0x155b')](_0x248bc2('0x152e'),{'id':_0x3f6d73[_0x248bc2('0x155f')]['id'],'fields':_0x248bc2('0xd52')});}]},'locals':{'contacts':_0x3f6d73[_0x5782a0('0xd53')][_0x5782a0('0x6aa')]}});}function _0x35c291(_0x491e1b,_0x1c6dee){const _0x1276e9=_0x4024b4;_0x132bf8[_0x1276e9('0x1cb7')]({'controller':_0x1276e9('0x1e24'),'controllerAs':'vm','templateUrl':_0x373d52,'parent':angular['element'](_0x4c54a6['body']),'targetEvent':_0x491e1b,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x4e492a){const _0xf1938=_0x1276e9;return _0x4e492a[_0xf1938('0x155b')](_0xf1938('0x2778'),{'id':_0x1c6dee['id']});}],'lists':[_0x1276e9('0x2401'),function(_0x3240fb){const _0x536276=_0x1276e9;return _0x3240fb[_0x536276('0x155b')](_0x536276('0x152e'),{'id':_0x3f6d73[_0x536276('0x155f')]['id'],'fields':_0x536276('0xd52')});}]},'locals':{'contacts':_0x3f6d73[_0x1276e9('0xd53')][_0x1276e9('0x6aa')]}});}function _0x19b341(){_0x3f6d73['isSearchBarVisible']=![];}function _0x34e0a1(){const _0x5dea18=_0x4024b4;_0x3f6d73[_0x5dea18('0x82f')]=!![];}function _0x1daa48(){const _0x5bdc7b=_0x4024b4;return _0x2ae86a[_0x5bdc7b('0x1197')]['describe']({'id':_0x3f6d73['query']['ListId']})[_0x5bdc7b('0x1964')][_0x5bdc7b('0x173b')](function(_0x244d2d){const _0x2964f8=_0x5bdc7b;return _0x3c8d8a()(_0x244d2d[_0x2964f8('0xf1f')]())['omit'](_0x2964f8('0x181c'))['values']()[_0x2964f8('0x8a2')](function(_0x1364bc){return _0xb7e7bf(_0x1364bc);})[_0x2964f8('0xa7b')]();})[_0x5bdc7b('0x173b')](function(_0x112837){const _0x1099b4=_0x5bdc7b;_0x3f6d73[_0x1099b4('0x2706')]['fields']=_0x112837;const _0x4aa17e={'name':_0x1099b4('0xc38'),'column':_0x1099b4('0x460'),'type':'multiselect','options':{'route':{'model':_0x1099b4('0x23b4'),'action':_0x1099b4('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':[_0x1099b4('0x2232')]}};let _0x38665e=_0x3c8d8a()['findIndex'](_0x112837,function(_0x21366d){const _0x597733=_0x1099b4;return _0x3c8d8a()['startsWith'](_0x21366d[_0x597733('0x260d')],_0x597733('0x205b'));})||_0x112837['length']-0x1;if(_0x38665e<0x0)_0x38665e=_0x112837[_0x1099b4('0x543')];_0x3f6d73['advancedSearch']['fields'][_0x1099b4('0x553')](_0x38665e,0x0,_0x4aa17e);})['catch'](function(_0xd45cad){const _0x4fad57=_0x5bdc7b;_0x3ec5a6[_0x4fad57('0x15aa')]({'title':_0xd45cad[_0x4fad57('0x276f')]?'API:'+_0xd45cad['status']+'\x20-\x20'+_0xd45cad[_0x4fad57('0x2696')]:_0x4fad57('0x1a44'),'msg':_0xd45cad['data']?JSON['stringify'](_0xd45cad[_0x4fad57('0x1e07')]['message']):_0xd45cad[_0x4fad57('0x1b75')]()});});}function _0xb7e7bf(_0x5195d1){const _0x21fa4d=_0x4024b4,_0x4e7746={'name':_0x3c8d8a()[_0x21fa4d('0x10e')](_0x5195d1[_0x21fa4d('0x1fc3')]),'column':_0x5195d1[_0x21fa4d('0xf4d')],'options':{}};if(_0x5195d1[_0x21fa4d('0xbb4')])switch(_0x5195d1[_0x21fa4d('0xbb4')][_0x21fa4d('0x1810')]){case'text':_0x4e7746[_0x21fa4d('0x1810')]=_0x21fa4d('0x86e');break;case _0x21fa4d('0xc65'):_0x4e7746[_0x21fa4d('0x1810')]='multiselect',_0x4e7746[_0x21fa4d('0xcaf')]=_0x3c8d8a()[_0x21fa4d('0x8a2')](JSON['parse'](_0x5195d1[_0x21fa4d('0xbb4')]['values']),function(_0xf7bdd0,_0x193b33){const _0xd87760=_0x21fa4d;return{'id':_0x193b33,'name':_0xf7bdd0[_0xd87760('0xa7b')],'value':_0xf7bdd0['value']};}),_0x4e7746[_0x21fa4d('0x2010')][_0x21fa4d('0x81d')]=_0x21fa4d('0x10ad');break;case _0x21fa4d('0x22f1'):_0x4e7746[_0x21fa4d('0x1810')]=_0x21fa4d('0xc65'),_0x4e7746[_0x21fa4d('0xcaf')]=[{'id':0x1,'translate':_0x21fa4d('0x1d24')},{'id':0x0,'translate':_0x21fa4d('0x1b00')}],_0x4e7746[_0x21fa4d('0x2010')][_0x21fa4d('0xdf5')]=[_0x21fa4d('0x10be')];break;case _0x21fa4d('0x1d81'):_0x4e7746[_0x21fa4d('0x1810')]=_0x21fa4d('0x1d81');break;case _0x21fa4d('0x11b0'):_0x4e7746[_0x21fa4d('0x1810')]='date';break;}else switch(_0x5195d1[_0x21fa4d('0xf4d')]){case _0x21fa4d('0x1182'):_0x4e7746['type']=_0x21fa4d('0x22b6');break;case'CompanyId':_0x4e7746[_0x21fa4d('0x10ad')]='Company',_0x4e7746[_0x21fa4d('0x1810')]='autocomplete',_0x4e7746[_0x21fa4d('0x2010')]['route']={'model':_0x21fa4d('0x1904'),'action':'get','params':{'fields':'id,name','nolimit':!![]}},_0x4e7746[_0x21fa4d('0x2010')][_0x21fa4d('0x1ba3')]=[_0x21fa4d('0x10ad')],_0x4e7746[_0x21fa4d('0x2010')][_0x21fa4d('0xdf5')]=[_0x21fa4d('0x10be')];break;case _0x21fa4d('0xef2'):_0x4e7746['name']=_0x21fa4d('0x6bc'),_0x4e7746[_0x21fa4d('0x1810')]=_0x21fa4d('0xe92'),_0x4e7746['options'][_0x21fa4d('0x26e9')]={'model':_0x21fa4d('0x166f'),'action':_0x21fa4d('0xe91'),'params':{'id':_0x3f6d73[_0x21fa4d('0x155f')]['id'],'fields':'id,name','nolimit':!![]}},_0x4e7746[_0x21fa4d('0x2010')][_0x21fa4d('0x1ba3')]=[_0x21fa4d('0x10ad')],_0x4e7746[_0x21fa4d('0x2010')]['excludedOperators']=['$ne'];break;default:if(_0x3c8d8a()[_0x21fa4d('0x2814')](_0x5195d1['type']['toLowerCase'](),'int'))_0x4e7746['type']='number';else _0x3c8d8a()['includes'](_0x5195d1[_0x21fa4d('0x1810')][_0x21fa4d('0x1e68')](),_0x21fa4d('0x22b6'))?_0x4e7746['type']=_0x21fa4d('0x22b6'):_0x4e7746['type']=_0x21fa4d('0x86e');break;}return _0x4e7746;}function _0x27cb27(){const _0x14c525=_0x4024b4;_0x3f6d73[_0x14c525('0x82f')]=![],_0x132bf8[_0x14c525('0x1cb7')]({'controller':_0x14c525('0x1c5b'),'controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x14c525('0xb6d')](_0x4c54a6['body']),'clickOutsideToClose':![],'locals':{'color':_0x3f6d73[_0x14c525('0x1c9a')],'fields':_0x3f6d73[_0x14c525('0x2706')][_0x14c525('0x2340')],'storagePath':_0x14c525('0x215a')},'fullscreen':!![]})[_0x14c525('0x173b')](function(_0x397f7d){const _0x27e416=_0x14c525;_0x3f6d73[_0x27e416('0xc49')][_0x27e416('0x23e7')]=_0x397f7d===![]?undefined:_0x397f7d;if(_0x3f6d73[_0x27e416('0xc49')][_0x27e416('0x23e7')]||_0x397f7d===![])_0x22712c();})[_0x14c525('0x103c')](function(_0x415f23){const _0x9bd41c=_0x14c525;_0x3ec5a6['error']({'title':_0x9bd41c('0x280c'),'msg':_0x415f23[_0x9bd41c('0x1e07')]?JSON['stringify'](_0x415f23[_0x9bd41c('0x1e07')][_0x9bd41c('0x67f')]):_0x415f23[_0x9bd41c('0x1b75')]()});});}let _0x33dd9f=!![],_0x1374cb=0x1;_0xf9d8b2[_0x4024b4('0x1bdb')]('vm.query.filter',function(_0x55c06c,_0x54324d){const _0x12d174=_0x4024b4;_0x33dd9f?_0x14d4c3(function(){_0x33dd9f=![];}):(!_0x54324d&&(_0x1374cb=_0x3f6d73[_0x12d174('0xc49')][_0x12d174('0x182e')]),_0x55c06c!==_0x54324d&&(_0x3f6d73[_0x12d174('0xc49')]['page']=0x1),!_0x55c06c&&(_0x3f6d73[_0x12d174('0xc49')][_0x12d174('0x182e')]=_0x1374cb),_0x22712c());});}const _0x71c0b2=_0x3ee8b8;_0x5c05bd['$inject']=['$scope',_0x566993('0x1b13')];function _0x5c05bd(_0x2d086b,_0x22ada5){const _0x3c58f6=_0x566993;let _0x4cfa36=_0x22ada5(function(){},0x3e7);_0x2d086b[_0x3c58f6('0xbf6')]('$destroy',function(){const _0x197a4e=_0x3c58f6;_0x4cfa36&&(_0x22ada5[_0x197a4e('0x1e1f')](_0x4cfa36),_0x4cfa36=null);});}const _0x38dc58=_0x5c05bd;_0x5c0146[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1d31'),'$translate',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x2fc')];function _0x5c0146(_0x4b7c2f,_0x59a375,_0x518b77,_0x12507d,_0x233300,_0x4741c1,_0x139997,_0x2399ed,_0x17283a){const _0x15a0bc=_0x566993,_0x36c599=this,_0x486ed4=[_0x15a0bc('0x1810'),_0x15a0bc('0x1b68'),_0x15a0bc('0xa87'),'dialActive'];_0x36c599[_0x15a0bc('0x19f0')]={},_0x36c599['voiceQueuesTotal']=0x0,_0x36c599[_0x15a0bc('0xdc5')]={},_0x36c599[_0x15a0bc('0xec3')]={},_0x36c599[_0x15a0bc('0x488')]={},_0x36c599[_0x15a0bc('0x7df')]={},_0x36c599[_0x15a0bc('0x480')]=[],_0x36c599[_0x15a0bc('0xda0')]=!![],_0x36c599[_0x15a0bc('0xc49')]={'id':_0x2399ed[_0x15a0bc('0x14d4')]()['id'],'fields':_0x15a0bc('0xc68'),'channel':_0x15a0bc('0x21a8'),'type':_0x15a0bc('0xb33'),'limit':0xa,'page':0x1},_0x36c599[_0x15a0bc('0x15f6')]={'limit':0xa,'page':0x1},_0x36c599[_0x15a0bc('0xdfe')]=_0x1f7146,_0x36c599['getVoiceQueues']=_0x35d97f,_0x36c599['getSize']=_0x4910e5,_0x36c599[_0x15a0bc('0xbb1')]=_0x35ac9b,_0x36c599[_0x15a0bc('0x18f3')]=_0x4a629a,_0x36c599[_0x15a0bc('0x14db')]=_0x281c01,_0x36c599[_0x15a0bc('0x23c')]=_0x570d43,_0x36c599[_0x15a0bc('0x1651')]=_0x26b899,_0x36c599['onRemoveVoiceQueue']=_0x40230d,_0x17283a['onWithoutApply']('voice_queue:save',_0x36c599[_0x15a0bc('0xbb1')]),_0x17283a[_0x15a0bc('0x165f')](_0x15a0bc('0xf10'),_0x36c599[_0x15a0bc('0x18f3')]),_0x17283a[_0x15a0bc('0x165f')](_0x15a0bc('0x1379'),_0x36c599[_0x15a0bc('0x14db')]),_0x17283a[_0x15a0bc('0x165f')]('userVoiceQueue:remove',_0x36c599[_0x15a0bc('0x14db')]),_0x17283a[_0x15a0bc('0x165f')]('voiceQueue:save',_0x36c599[_0x15a0bc('0x23c')]),_0x17283a[_0x15a0bc('0x165f')](_0x15a0bc('0xeb8'),_0x36c599[_0x15a0bc('0x2620')]),_0x17283a[_0x15a0bc('0x165f')](_0x15a0bc('0x806'),_0x36c599[_0x15a0bc('0x1651')]),_0x139997[_0x15a0bc('0x48c')]['getVoiceQueues']()[_0x15a0bc('0x1964')][_0x15a0bc('0x173b')](function(_0x1071bc){const _0x32ed3f=_0x15a0bc;return _0x36c599['rpcVoiceQueues']=_0x1071bc?_0x3c8d8a()[_0x32ed3f('0x128')](_0x1071bc['rows']?_0x1071bc[_0x32ed3f('0x6aa')]:[],'id'):{},_0x139997[_0x32ed3f('0x48c')][_0x32ed3f('0x85d')]()[_0x32ed3f('0x1964')];})['then'](function(_0x2ff06c){const _0x14ad7c=_0x15a0bc;_0x36c599[_0x14ad7c('0x488')]=_0x2ff06c?_0x3c8d8a()[_0x14ad7c('0x128')](_0x2ff06c[_0x14ad7c('0x6aa')]?_0x3c8d8a()[_0x14ad7c('0x278d')](_0x2ff06c[_0x14ad7c('0x6aa')],{'type':_0x14ad7c('0xb33'),'queuecallerleaveAt':null}):[],_0x14ad7c('0x207c')):{};})[_0x15a0bc('0x103c')](function(_0x3db7b6){const _0x31f38c=_0x15a0bc;console[_0x31f38c('0x15aa')](_0x3db7b6);})[_0x15a0bc('0xf25')](function(){const _0x527ca2=_0x15a0bc;_0x3c8d8a()[_0x527ca2('0x9ef')](_0x36c599[_0x527ca2('0x488')],_0x36c599[_0x527ca2('0x7df')]);for(let _0x4c18e4=0x0;_0x4c18e4<_0x36c599[_0x527ca2('0x480')][_0x527ca2('0x543')];_0x4c18e4+=0x1){delete _0x36c599['rpcVoiceQueuesChannels'][_0x36c599[_0x527ca2('0x480')][_0x4c18e4]];}_0x36c599[_0x527ca2('0xda0')]=![],_0x36c599[_0x527ca2('0x7df')]={},_0x36c599[_0x527ca2('0x480')]=[],_0x36c599[_0x527ca2('0xec3')]();});function _0x1f7146(_0x2ae9f6){const _0xeeb462=_0x15a0bc;_0x36c599['voiceQueuesTotal']=_0x2ae9f6[_0xeeb462('0x1a2f')]?_0x2ae9f6[_0xeeb462('0x1a2f')]:0x0,_0x36c599[_0xeeb462('0x19f0')]=_0x2ae9f6?_0x3c8d8a()[_0xeeb462('0x128')](_0x2ae9f6[_0xeeb462('0x6aa')]?_0x2ae9f6['rows']:[],'id'):{},_0x39093f();}function _0x35d97f(){const _0x185e84=_0x15a0bc;_0x36c599[_0x185e84('0xc49')][_0x185e84('0x17f0')]=(_0x36c599['query'][_0x185e84('0x182e')]-0x1)*_0x36c599[_0x185e84('0xc49')][_0x185e84('0x3e')],_0x36c599[_0x185e84('0x2219')]=_0x139997[_0x185e84('0x166f')]['getQueues'](_0x36c599['query'],_0x1f7146)[_0x185e84('0x1964')];}let _0xaded40=!![],_0xfa60a2=0x1;_0x4b7c2f[_0x15a0bc('0x1bdb')]('vm_dc.query.filter',function(_0xc68942,_0x35150f){const _0x11fc4d=_0x15a0bc;_0xaded40?_0x59a375(function(){_0xaded40=![];}):(!_0x35150f&&(_0xfa60a2=_0x36c599['query'][_0x11fc4d('0x182e')]),_0xc68942!==_0x35150f&&(_0x36c599[_0x11fc4d('0xc49')][_0x11fc4d('0x182e')]=0x1),!_0xc68942&&(_0x36c599[_0x11fc4d('0xc49')][_0x11fc4d('0x182e')]=_0xfa60a2),_0x36c599[_0x11fc4d('0xec3')]());});function _0x4910e5(_0x304cf9){const _0x331ad2=_0x15a0bc;return _0x3c8d8a()[_0x331ad2('0x2361')](_0x304cf9);}function _0x39093f(){const _0x546880=_0x15a0bc;_0x3c8d8a()[_0x546880('0x33d')](_0x36c599['voiceQueues'],function(_0x1a6b3e,_0x1a4362){const _0x5a04e3=_0x546880;_0x36c599[_0x5a04e3('0xdc5')][_0x1a4362]&&(_0x36c599[_0x5a04e3('0x19f0')][_0x1a4362][_0x5a04e3('0x1b68')]=_0x36c599[_0x5a04e3('0xdc5')][_0x1a4362]['waiting']||0x0);});}function _0x35ac9b(_0x50dcc8){const _0x1d526e=_0x15a0bc;_0x36c599['voiceQueues'][_0x50dcc8['id']]&&(_0x36c599[_0x1d526e('0xdc5')][_0x50dcc8['id']]&&(_0x36c599[_0x1d526e('0xdc5')][_0x50dcc8['id']]=_0x50dcc8,_0x3c8d8a()['merge'](_0x36c599[_0x1d526e('0x19f0')][_0x50dcc8['id']],_0x3c8d8a()[_0x1d526e('0x2114')](_0x50dcc8,_0x486ed4))));}function _0x4a629a(_0x2f05b6){const _0x5730da=_0x15a0bc;_0x2f05b6[_0x5730da('0x1810')]===_0x5730da('0xb33')&&(_0x2f05b6[_0x5730da('0x2458')]?(delete _0x36c599[_0x5730da('0x488')][_0x2f05b6[_0x5730da('0x207c')]],_0x36c599[_0x5730da('0xda0')]&&_0x36c599[_0x5730da('0x480')]['push'](_0x2f05b6['uniqueid'])):(_0x36c599[_0x5730da('0x488')][_0x2f05b6[_0x5730da('0x207c')]]=_0x2f05b6,_0x36c599['load']&&(_0x36c599[_0x5730da('0x7df')][_0x2f05b6[_0x5730da('0x207c')]]=_0x2f05b6)));}function _0x570d43(_0x3c66b9){const _0x2c42ca=_0x15a0bc;!_0x3c8d8a()['isNil'](_0x3c66b9)&&(_0x36c599[_0x2c42ca('0xdc5')][_0x3c66b9['id']]=_0x3c8d8a()[_0x2c42ca('0x2114')](_0x3c66b9,_0x486ed4));}function _0x26b899(_0x28ad99){const _0x5f0fb9=_0x15a0bc;!_0x3c8d8a()[_0x5f0fb9('0x7d5')](_0x28ad99)&&(_0x36c599[_0x5f0fb9('0xdc5')][_0x28ad99['id']]&&_0x3c8d8a()['merge'](_0x36c599[_0x5f0fb9('0xdc5')][_0x28ad99['id']],_0x3c8d8a()[_0x5f0fb9('0x2114')](_0x28ad99,_0x486ed4)),_0x36c599[_0x5f0fb9('0x19f0')][_0x28ad99['id']]&&_0x3c8d8a()[_0x5f0fb9('0x9ef')](_0x36c599[_0x5f0fb9('0x19f0')][_0x28ad99['id']],_0x3c8d8a()['pick'](_0x28ad99,_0x486ed4)));}function _0x40230d(_0x3a52f7){const _0x40fb41=_0x15a0bc;!_0x3c8d8a()[_0x40fb41('0x7d5')](_0x3a52f7)&&(delete _0x36c599[_0x40fb41('0xdc5')][_0x3a52f7['id']],delete _0x36c599[_0x40fb41('0x19f0')][_0x3a52f7['id']]);}function _0x281c01(_0x31eb79){const _0x3d30e9=_0x15a0bc;_0x3c8d8a()['toInteger'](_0x31eb79['UserId'])===_0x2399ed[_0x3d30e9('0x14d4')]()['id']&&_0x36c599[_0x3d30e9('0xec3')]();}_0x4b7c2f['$on'](_0x15a0bc('0x16d2'),function(){const _0x228707=_0x15a0bc;_0x17283a['removeAllListeners'](_0x228707('0x1414')),_0x17283a[_0x228707('0x251c')](_0x228707('0xf10')),_0x17283a[_0x228707('0x251c')](_0x228707('0x1379')),_0x17283a[_0x228707('0x251c')](_0x228707('0x22b7')),_0x17283a[_0x228707('0x251c')](_0x228707('0xc29')),_0x17283a[_0x228707('0x251c')](_0x228707('0x806')),_0x17283a['removeAllListeners'](_0x228707('0xeb8'));});}const _0x5c2d2e=_0x5c0146;_0x78613b[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),'$mdDialog',_0x566993('0x1b82'),'$window',_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x2fc')];function _0x78613b(_0x5654c0,_0x356b6c,_0x38416e,_0x2c7c12,_0x1ebf80,_0x15b902,_0x550416,_0x5c5c77,_0x244e8d){const _0xc5204d=_0x566993,_0x1f3dbf=this,_0x5cad35=['id',_0xc5204d('0x10ad'),_0xc5204d('0x1aff'),_0xc5204d('0x1b68')];let _0x578529=!![];_0x1f3dbf[_0xc5204d('0x2164')]={},_0x1f3dbf[_0xc5204d('0x1b4d')]=0x0,_0x1f3dbf[_0xc5204d('0x2629')]={},_0x1f3dbf['paginatedInteractions']=[],_0x1f3dbf[_0xc5204d('0x269d')]=[],_0x1f3dbf['rpcChatQueuesWaitingInteractions']={},_0x1f3dbf[_0xc5204d('0xc49')]={'id':_0x5c5c77[_0xc5204d('0x14d4')]()['id'],'channel':'chat','fields':_0xc5204d('0x249c'),'limit':0xa,'page':0x1},_0x1f3dbf[_0xc5204d('0x15f6')]={'limit':0xa,'page':0x1},_0x1f3dbf[_0xc5204d('0xdfe')]=_0x5d35cf,_0x1f3dbf['getChatQueues']=_0x2bab4f,_0x1f3dbf[_0xc5204d('0x12c')]=_0x45d138,_0x1f3dbf['getColorByChannel']=_0x1e6c43,_0x1f3dbf[_0xc5204d('0x5ec')]=_0x541809,_0x1f3dbf[_0xc5204d('0xbb1')]=_0x5504ca,_0x1f3dbf['onSaveChatQueue']=_0x400183,_0x1f3dbf[_0xc5204d('0x259c')]=_0x5d9bf4,_0x1f3dbf['onRemoveChatQueue']=_0x471f63,_0x1f3dbf[_0xc5204d('0x126a')]=_0x4c7431,_0x1f3dbf[_0xc5204d('0x6ff')]=_0x3b668b,_0x1f3dbf['onSaveChatQueueChannel']=_0x2631c0,_0x1f3dbf[_0xc5204d('0x21cc')]=_0x3eb3a5,_0x244e8d['onWithoutApply']('chat_queue:save',_0x1f3dbf[_0xc5204d('0xbb1')]),_0x244e8d[_0xc5204d('0x165f')](_0xc5204d('0xb8c'),_0x1f3dbf[_0xc5204d('0xbf7')]),_0x244e8d[_0xc5204d('0x165f')](_0xc5204d('0x1602'),_0x1f3dbf['onUpdateChatQueue']),_0x244e8d[_0xc5204d('0x165f')](_0xc5204d('0x1155'),_0x1f3dbf['onRemoveChatQueue']),_0x244e8d[_0xc5204d('0x165f')](_0xc5204d('0x1546'),_0x1f3dbf[_0xc5204d('0x126a')]),_0x244e8d[_0xc5204d('0x165f')](_0xc5204d('0x5ed'),_0x1f3dbf['onRemoveUserChatQueue']),_0x244e8d[_0xc5204d('0x165f')](_0xc5204d('0x248f'),_0x1f3dbf[_0xc5204d('0x1187')]),_0x244e8d['onWithoutApply']('chat_queue_waiting_interaction:remove',_0x1f3dbf[_0xc5204d('0x21cc')]),_0x550416[_0xc5204d('0x48c')][_0xc5204d('0xad4')]()[_0xc5204d('0x1964')][_0xc5204d('0x173b')](function(_0x57c564){const _0x31d70c=_0xc5204d;_0x1f3dbf[_0x31d70c('0x2629')]=_0x57c564?_0x3c8d8a()['keyBy'](_0x57c564[_0x31d70c('0x6aa')]?_0x57c564[_0x31d70c('0x6aa')]:[],'id'):{};})[_0xc5204d('0x173b')](function(){const _0x516a78=_0xc5204d;return _0x550416['user'][_0x516a78('0x115e')]({'id':_0x5c5c77['getCurrentUser']()['id'],'channel':_0x516a78('0x8c5')})[_0x516a78('0x1964')];})[_0xc5204d('0x173b')](function(_0x164083){const _0x2b9864=_0xc5204d;return _0x1f3dbf[_0x2b9864('0x1124')]=_0x164083['rows'],_0x550416[_0x2b9864('0x48c')]['getChatQueuesWaitingInteractions']()['$promise'];})[_0xc5204d('0x173b')](function(_0x3637b5){const _0x3631bd=_0xc5204d,_0x107727=_0x3c8d8a()[_0x3631bd('0x278d')](_0x3637b5['rows'],function(_0xc9482a){return _0x3c8d8a()['includes'](_0x1f3dbf['myQueues'],{'id':_0xc9482a['queue_id']});});_0x3637b5[_0x3631bd('0x6aa')]=_0x107727,_0x3637b5[_0x3631bd('0x1a2f')]=_0x107727['length'],_0x3c8d8a()['merge'](_0x1f3dbf[_0x3631bd('0x1295')],_0x3637b5?_0x3c8d8a()[_0x3631bd('0x128')](_0x3637b5['rows']?_0x3637b5['rows']:[],'id'):{});})[_0xc5204d('0x103c')](function(_0x412b02){console['error'](_0x412b02);})['finally'](function(){const _0x4ae0ab=_0xc5204d;for(let _0x4c43c7=0x0;_0x4c43c7<_0x1f3dbf[_0x4ae0ab('0x269d')][_0x4ae0ab('0x543')];_0x4c43c7+=0x1){delete _0x1f3dbf['rpcChatQueuesWaitingInteractions'][_0x1f3dbf[_0x4ae0ab('0x269d')][_0x4c43c7]];}_0x578529=![],_0x1f3dbf[_0x4ae0ab('0x269d')]=[],_0x2bab4f(),_0x541809();});function _0x541809(){const _0x2c4bd7=_0xc5204d,_0x5bb976=(_0x1f3dbf['queryChannels']['page']-0x1)*_0x1f3dbf[_0x2c4bd7('0x15f6')][_0x2c4bd7('0x3e')];_0x1f3dbf[_0x2c4bd7('0xfb8')]=_0x3c8d8a()[_0x2c4bd7('0x1d16')](_0x1f3dbf['rpcChatQueuesWaitingInteractions'],[_0x2c4bd7('0xd5b')],[_0x2c4bd7('0x231d')]),_0x1f3dbf[_0x2c4bd7('0x1594')]=_0x3c8d8a()[_0x2c4bd7('0xf69')](_0x1f3dbf['paginatedInteractions'],_0x5bb976)[_0x2c4bd7('0x2456')](0x0,_0x1f3dbf[_0x2c4bd7('0x15f6')][_0x2c4bd7('0x3e')]);}function _0x5d35cf(_0x30fc2a){const _0x5c6dda=_0xc5204d;_0x1f3dbf[_0x5c6dda('0x1b4d')]=_0x30fc2a[_0x5c6dda('0x1a2f')]?_0x30fc2a[_0x5c6dda('0x1a2f')]:0x0,_0x1f3dbf[_0x5c6dda('0x2164')]=_0x30fc2a?_0x3c8d8a()[_0x5c6dda('0x128')](_0x30fc2a[_0x5c6dda('0x6aa')]?_0x30fc2a[_0x5c6dda('0x6aa')]:[],'id'):{},_0x4e3cde();}function _0x2bab4f(){const _0x4e5028=_0xc5204d;_0x1f3dbf[_0x4e5028('0xc49')][_0x4e5028('0x17f0')]=(_0x1f3dbf[_0x4e5028('0xc49')][_0x4e5028('0x182e')]-0x1)*_0x1f3dbf[_0x4e5028('0xc49')][_0x4e5028('0x3e')],_0x1f3dbf[_0x4e5028('0x2219')]=_0x550416[_0x4e5028('0x166f')][_0x4e5028('0x115e')](_0x1f3dbf[_0x4e5028('0xc49')],_0x5d35cf)[_0x4e5028('0x1964')];}let _0x259557=!![],_0x3a3b5e=0x1;_0x5654c0[_0xc5204d('0x1bdb')](_0xc5204d('0x5b8'),function(_0x591028,_0x257643){const _0x4e5cbc=_0xc5204d;_0x259557?_0x356b6c(function(){_0x259557=![];}):(!_0x257643&&(_0x3a3b5e=_0x1f3dbf[_0x4e5cbc('0xc49')][_0x4e5cbc('0x182e')]),_0x591028!==_0x257643&&(_0x1f3dbf['query'][_0x4e5cbc('0x182e')]=0x1),!_0x591028&&(_0x1f3dbf[_0x4e5cbc('0xc49')][_0x4e5cbc('0x182e')]=_0x3a3b5e),_0x1f3dbf[_0x4e5cbc('0xad4')]());});function _0x45d138(_0x349d76){return _0x3c8d8a()['size'](_0x349d76);}function _0x4e3cde(){const _0x1c6abd=_0xc5204d;_0x3c8d8a()[_0x1c6abd('0x33d')](_0x1f3dbf[_0x1c6abd('0x2164')],function(_0x5ee673,_0x5a01ad){const _0x5853f5=_0x1c6abd;_0x1f3dbf[_0x5853f5('0x2629')][_0x5a01ad]&&(_0x1f3dbf[_0x5853f5('0x2164')][_0x5a01ad]['waiting']=_0x1f3dbf[_0x5853f5('0x2629')][_0x5a01ad][_0x5853f5('0x1b68')]||0x0);});}function _0x5504ca(_0x2d7d86){const _0x11839a=_0xc5204d;_0x1f3dbf[_0x11839a('0x2164')][_0x2d7d86['id']]&&(_0x1f3dbf[_0x11839a('0x2629')][_0x2d7d86['id']]&&(_0x3c8d8a()[_0x11839a('0x9ef')](_0x1f3dbf[_0x11839a('0x2629')][_0x2d7d86['id']],_0x3c8d8a()[_0x11839a('0x2114')](_0x2d7d86,_0x5cad35)),_0x3c8d8a()['merge'](_0x1f3dbf[_0x11839a('0x2164')][_0x2d7d86['id']],_0x3c8d8a()['pick'](_0x2d7d86,_0x5cad35))));}function _0x400183(_0x443469){const _0x5352ae=_0xc5204d;!_0x3c8d8a()[_0x5352ae('0x7d5')](_0x443469)&&(_0x1f3dbf[_0x5352ae('0x2629')][_0x443469['id']]=_0x3c8d8a()['pick'](_0x443469,_0x5cad35));}function _0x5d9bf4(_0xa0c523){const _0xe98964=_0xc5204d;!_0x3c8d8a()[_0xe98964('0x7d5')](_0xa0c523)&&(_0x1f3dbf[_0xe98964('0x2629')][_0xa0c523['id']]&&_0x3c8d8a()[_0xe98964('0x9ef')](_0x1f3dbf['rpcChatQueues'][_0xa0c523['id']],_0x3c8d8a()[_0xe98964('0x2114')](_0xa0c523,_0x5cad35)),_0x1f3dbf[_0xe98964('0x2164')][_0xa0c523['id']]&&_0x3c8d8a()[_0xe98964('0x9ef')](_0x1f3dbf[_0xe98964('0x2164')][_0xa0c523['id']],_0x3c8d8a()[_0xe98964('0x2114')](_0xa0c523,_0x5cad35)));}function _0x471f63(_0x6e87fd){const _0x29a3bf=_0xc5204d;!_0x3c8d8a()[_0x29a3bf('0x7d5')](_0x6e87fd)&&(delete _0x1f3dbf[_0x29a3bf('0x2629')][_0x6e87fd['id']],delete _0x1f3dbf[_0x29a3bf('0x2164')][_0x6e87fd['id']]);}function _0x4c7431(_0x360968){const _0x3bf8c3=_0xc5204d;_0x3c8d8a()[_0x3bf8c3('0x2f1')](_0x360968[_0x3bf8c3('0x181c')])===_0x5c5c77['getCurrentUser']()['id']&&_0x1f3dbf[_0x3bf8c3('0xad4')]();}function _0x3b668b(_0x4d2a33){const _0x38f7f7=_0xc5204d;_0x3c8d8a()[_0x38f7f7('0x2f1')](_0x4d2a33[_0x38f7f7('0x181c')])===_0x5c5c77['getCurrentUser']()['id']&&_0x1f3dbf[_0x38f7f7('0xad4')]();}function _0x2631c0(_0x1c5649){const _0x110096=_0xc5204d;_0x1f3dbf['chatQueues'][_0x1c5649[_0x110096('0x1a47')]]&&(_0x1f3dbf['rpcChatQueuesWaitingInteractions'][_0x1c5649['id']]=_0x1c5649,_0x541809());}function _0x3eb3a5(_0x198251){const _0x48fdb6=_0xc5204d;delete _0x1f3dbf[_0x48fdb6('0x1295')][_0x198251['id']],_0x578529&&_0x1f3dbf[_0x48fdb6('0x269d')][_0x48fdb6('0x18bb')](_0x198251['id']),_0x541809();}function _0x1e6c43(_0x43d158){const _0x3e84f0=_0xc5204d;switch(_0x43d158){case _0x3e84f0('0x8c5'):return _0x3e84f0('0x10c8');case'mail':return _0x3e84f0('0x319');case _0x3e84f0('0x1a8f'):return _0x3e84f0('0xc1c');case'whatsapp':return _0x3e84f0('0x1794');case _0x3e84f0('0xab2'):return _0x3e84f0('0x1ec4');case _0x3e84f0('0x16d'):return _0x3e84f0('0x1746');default:return _0x3e84f0('0x107f');}}_0x5654c0[_0xc5204d('0xbf6')](_0xc5204d('0x16d2'),function(){const _0x1841dc=_0xc5204d;_0x244e8d['removeAllListeners'](_0x1841dc('0x61b')),_0x244e8d[_0x1841dc('0x251c')](_0x1841dc('0xb8c')),_0x244e8d[_0x1841dc('0x251c')]('chatQueue:update'),_0x244e8d[_0x1841dc('0x251c')](_0x1841dc('0x1155')),_0x244e8d[_0x1841dc('0x251c')]('userChatQueue:save'),_0x244e8d[_0x1841dc('0x251c')](_0x1841dc('0x5ed')),_0x244e8d[_0x1841dc('0x251c')](_0x1841dc('0x248f')),_0x244e8d[_0x1841dc('0x251c')]('chat_queue_waiting_interaction:remove');});}const _0x4217c1=_0x78613b;_0x2ebff6[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x1d31'),_0x566993('0x638'),_0x566993('0xbd4'),'Auth','socket'];function _0x2ebff6(_0x56c8df,_0x196805,_0x192f03,_0x1acfaa,_0x422421,_0x28dd08,_0x30310f,_0x358683,_0x18aca8){const _0x406cb0=_0x566993,_0x372517=this,_0x45e454=['id',_0x406cb0('0x10ad'),_0x406cb0('0x1aff'),_0x406cb0('0x1b68')];let _0x2eead6=!![];_0x372517['faxQueues']={},_0x372517[_0x406cb0('0x1438')]=0x0,_0x372517[_0x406cb0('0x9f6')]={},_0x372517[_0x406cb0('0xfb8')]=[],_0x372517[_0x406cb0('0x1fda')]=[],_0x372517[_0x406cb0('0x9d6')]={},_0x372517[_0x406cb0('0xc49')]={'id':_0x358683['getCurrentUser']()['id'],'channel':_0x406cb0('0x16d'),'fields':_0x406cb0('0x249c'),'limit':0xa,'page':0x1},_0x372517[_0x406cb0('0x15f6')]={'limit':0xa,'page':0x1},_0x372517['success']=_0x20c4e4,_0x372517['getFaxQueues']=_0x39f51e,_0x372517[_0x406cb0('0x12c')]=_0x5aa1f5,_0x372517['getColorByChannel']=_0x54fc0d,_0x372517[_0x406cb0('0x5ec')]=_0x3fdb4,_0x372517[_0x406cb0('0xbb1')]=_0x3d2ba7,_0x372517[_0x406cb0('0x23b5')]=_0x50c857,_0x372517[_0x406cb0('0x223')]=_0xda0c7a,_0x372517['onRemoveFaxQueue']=_0x2fe2fd,_0x372517[_0x406cb0('0x1880')]=_0x4e1129,_0x372517['onRemoveUserFaxQueue']=_0x5b6550,_0x372517[_0x406cb0('0x9c8')]=_0x5475c2,_0x372517['onRemoveFaxQueueChannel']=_0x1f0c9b,_0x18aca8[_0x406cb0('0x165f')]('fax_queue:save',_0x372517[_0x406cb0('0xbb1')]),_0x18aca8['onWithoutApply'](_0x406cb0('0x1eea'),_0x372517[_0x406cb0('0x23b5')]),_0x18aca8['onWithoutApply'](_0x406cb0('0x1c0e'),_0x372517['onUpdateFaxQueue']),_0x18aca8[_0x406cb0('0x165f')](_0x406cb0('0x14f1'),_0x372517[_0x406cb0('0x1656')]),_0x18aca8[_0x406cb0('0x165f')](_0x406cb0('0x15'),_0x372517[_0x406cb0('0x1880')]),_0x18aca8[_0x406cb0('0x165f')](_0x406cb0('0x1de0'),_0x372517[_0x406cb0('0x4c1')]),_0x18aca8[_0x406cb0('0x165f')](_0x406cb0('0x847'),_0x372517[_0x406cb0('0x9c8')]),_0x18aca8['onWithoutApply'](_0x406cb0('0x7fa'),_0x372517[_0x406cb0('0x145e')]),_0x30310f[_0x406cb0('0x48c')]['getFaxQueues']()['$promise'][_0x406cb0('0x173b')](function(_0x326ab1){const _0xc1e293=_0x406cb0;_0x372517[_0xc1e293('0x9f6')]=_0x326ab1?_0x3c8d8a()['keyBy'](_0x326ab1[_0xc1e293('0x6aa')]?_0x326ab1[_0xc1e293('0x6aa')]:[],'id'):{};})[_0x406cb0('0x173b')](function(){const _0x310946=_0x406cb0;return _0x30310f[_0x310946('0x166f')][_0x310946('0x115e')]({'id':_0x358683[_0x310946('0x14d4')]()['id'],'channel':_0x310946('0x16d')})['$promise'];})[_0x406cb0('0x173b')](function(_0x94b6c7){const _0x354bef=_0x406cb0;return _0x372517[_0x354bef('0x1124')]=_0x94b6c7[_0x354bef('0x6aa')],_0x30310f[_0x354bef('0x48c')]['getFaxQueuesWaitingInteractions']()[_0x354bef('0x1964')];})[_0x406cb0('0x173b')](function(_0x335f4a){const _0x4f5b11=_0x406cb0,_0x22731b=_0x3c8d8a()[_0x4f5b11('0x278d')](_0x335f4a[_0x4f5b11('0x6aa')],function(_0x4a9eba){const _0x3ef25d=_0x4f5b11;return _0x3c8d8a()[_0x3ef25d('0x2814')](_0x372517['myQueues'],{'id':_0x4a9eba[_0x3ef25d('0x1a47')]});});_0x335f4a['rows']=_0x22731b,_0x335f4a[_0x4f5b11('0x1a2f')]=_0x22731b[_0x4f5b11('0x543')],_0x3c8d8a()[_0x4f5b11('0x9ef')](_0x372517[_0x4f5b11('0x9d6')],_0x335f4a?_0x3c8d8a()[_0x4f5b11('0x128')](_0x335f4a[_0x4f5b11('0x6aa')]?_0x335f4a['rows']:[],'id'):{});})[_0x406cb0('0x103c')](function(_0x45c6bf){console['error'](_0x45c6bf);})[_0x406cb0('0xf25')](function(){const _0x4f6ba4=_0x406cb0;for(let _0x1f839a=0x0;_0x1f839a<_0x372517[_0x4f6ba4('0x1fda')][_0x4f6ba4('0x543')];_0x1f839a+=0x1){delete _0x372517[_0x4f6ba4('0x9d6')][_0x372517[_0x4f6ba4('0x1fda')][_0x1f839a]];}_0x2eead6=![],_0x372517[_0x4f6ba4('0x1fda')]=[],_0x39f51e(),_0x3fdb4();});function _0x3fdb4(){const _0x4549d9=_0x406cb0,_0xfe70c4=(_0x372517[_0x4549d9('0x15f6')][_0x4549d9('0x182e')]-0x1)*_0x372517[_0x4549d9('0x15f6')][_0x4549d9('0x3e')];_0x372517[_0x4549d9('0xfb8')]=_0x3c8d8a()[_0x4549d9('0x1d16')](_0x372517[_0x4549d9('0x9d6')],[_0x4549d9('0xd5b')],['desc']),_0x372517[_0x4549d9('0x1594')]=_0x3c8d8a()[_0x4549d9('0xf69')](_0x372517['paginatedInteractions'],_0xfe70c4)['slice'](0x0,_0x372517[_0x4549d9('0x15f6')][_0x4549d9('0x3e')]);}function _0x20c4e4(_0x429e5c){const _0x2e17e8=_0x406cb0;_0x372517[_0x2e17e8('0x1438')]=_0x429e5c[_0x2e17e8('0x1a2f')]?_0x429e5c['count']:0x0,_0x372517[_0x2e17e8('0x264')]=_0x429e5c?_0x3c8d8a()[_0x2e17e8('0x128')](_0x429e5c[_0x2e17e8('0x6aa')]?_0x429e5c['rows']:[],'id'):{},_0x16a78();}function _0x39f51e(){const _0x5f09c6=_0x406cb0;_0x372517[_0x5f09c6('0xc49')][_0x5f09c6('0x17f0')]=(_0x372517['query']['page']-0x1)*_0x372517[_0x5f09c6('0xc49')][_0x5f09c6('0x3e')],_0x372517[_0x5f09c6('0x2219')]=_0x30310f['user'][_0x5f09c6('0x115e')](_0x372517['query'],_0x20c4e4)[_0x5f09c6('0x1964')];}let _0xd0dbcd=!![],_0x400efa=0x1;_0x56c8df[_0x406cb0('0x1bdb')](_0x406cb0('0x5b8'),function(_0x55aef8,_0x1161ce){const _0x35d608=_0x406cb0;_0xd0dbcd?_0x196805(function(){_0xd0dbcd=![];}):(!_0x1161ce&&(_0x400efa=_0x372517[_0x35d608('0xc49')][_0x35d608('0x182e')]),_0x55aef8!==_0x1161ce&&(_0x372517[_0x35d608('0xc49')][_0x35d608('0x182e')]=0x1),!_0x55aef8&&(_0x372517[_0x35d608('0xc49')][_0x35d608('0x182e')]=_0x400efa),_0x372517['getFaxQueues']());});function _0x5aa1f5(_0x292191){const _0x417aa3=_0x406cb0;return _0x3c8d8a()[_0x417aa3('0x2361')](_0x292191);}function _0x16a78(){const _0xae13db=_0x406cb0;_0x3c8d8a()[_0xae13db('0x33d')](_0x372517[_0xae13db('0x264')],function(_0x54ea62,_0x444fbd){const _0x37c89a=_0xae13db;_0x372517[_0x37c89a('0x9f6')][_0x444fbd]&&(_0x372517['faxQueues'][_0x444fbd][_0x37c89a('0x1b68')]=_0x372517[_0x37c89a('0x9f6')][_0x444fbd][_0x37c89a('0x1b68')]||0x0);});}function _0x3d2ba7(_0x3e9c5d){const _0x2da651=_0x406cb0;_0x372517[_0x2da651('0x264')][_0x3e9c5d['id']]&&(_0x372517[_0x2da651('0x9f6')][_0x3e9c5d['id']]&&(_0x3c8d8a()[_0x2da651('0x9ef')](_0x372517[_0x2da651('0x9f6')][_0x3e9c5d['id']],_0x3c8d8a()[_0x2da651('0x2114')](_0x3e9c5d,_0x45e454)),_0x3c8d8a()[_0x2da651('0x9ef')](_0x372517['faxQueues'][_0x3e9c5d['id']],_0x3c8d8a()[_0x2da651('0x2114')](_0x3e9c5d,_0x45e454))));}function _0x50c857(_0xcd458d){const _0xed93c4=_0x406cb0;!_0x3c8d8a()[_0xed93c4('0x7d5')](_0xcd458d)&&(_0x372517[_0xed93c4('0x9f6')][_0xcd458d['id']]=_0x3c8d8a()[_0xed93c4('0x2114')](_0xcd458d,_0x45e454));}function _0xda0c7a(_0x392411){const _0x488b94=_0x406cb0;!_0x3c8d8a()[_0x488b94('0x7d5')](_0x392411)&&(_0x372517['rpcFaxQueues'][_0x392411['id']]&&_0x3c8d8a()[_0x488b94('0x9ef')](_0x372517[_0x488b94('0x9f6')][_0x392411['id']],_0x3c8d8a()['pick'](_0x392411,_0x45e454)),_0x372517[_0x488b94('0x264')][_0x392411['id']]&&_0x3c8d8a()[_0x488b94('0x9ef')](_0x372517[_0x488b94('0x264')][_0x392411['id']],_0x3c8d8a()['pick'](_0x392411,_0x45e454)));}function _0x2fe2fd(_0xf3e051){const _0x512d73=_0x406cb0;!_0x3c8d8a()[_0x512d73('0x7d5')](_0xf3e051)&&(delete _0x372517[_0x512d73('0x9f6')][_0xf3e051['id']],delete _0x372517[_0x512d73('0x264')][_0xf3e051['id']]);}function _0x4e1129(_0x451351){const _0x530030=_0x406cb0;_0x3c8d8a()[_0x530030('0x2f1')](_0x451351[_0x530030('0x181c')])===_0x358683['getCurrentUser']()['id']&&_0x372517['getFaxQueues']();}function _0x5b6550(_0x3d156c){const _0x5fc42a=_0x406cb0;_0x3c8d8a()[_0x5fc42a('0x2f1')](_0x3d156c[_0x5fc42a('0x181c')])===_0x358683[_0x5fc42a('0x14d4')]()['id']&&_0x372517['getFaxQueues']();}function _0x5475c2(_0x4164d8){const _0x425c13=_0x406cb0;_0x372517[_0x425c13('0x264')][_0x4164d8[_0x425c13('0x1a47')]]&&(_0x372517[_0x425c13('0x9d6')][_0x4164d8['id']]=_0x4164d8,_0x3fdb4());}function _0x1f0c9b(_0x5308d8){const _0x3fb19c=_0x406cb0;delete _0x372517[_0x3fb19c('0x9d6')][_0x5308d8['id']],_0x2eead6&&_0x372517[_0x3fb19c('0x1fda')]['push'](_0x5308d8['id']),_0x3fdb4();}function _0x54fc0d(_0x31f4f4){const _0x204270=_0x406cb0;switch(_0x31f4f4){case _0x204270('0x8c5'):return _0x204270('0x10c8');case _0x204270('0x108a'):return _0x204270('0x319');case'sms':return'orange-bg';case'whatsapp':return _0x204270('0x1794');case _0x204270('0xab2'):return _0x204270('0x1ec4');case'fax':return _0x204270('0x1746');default:return _0x204270('0x107f');}}_0x56c8df[_0x406cb0('0xbf6')](_0x406cb0('0x16d2'),function(){const _0x3ef122=_0x406cb0;_0x18aca8['removeAllListeners'](_0x3ef122('0x1ead')),_0x18aca8['removeAllListeners']('faxQueue:save'),_0x18aca8[_0x3ef122('0x251c')]('faxQueue:update'),_0x18aca8[_0x3ef122('0x251c')](_0x3ef122('0x14f1')),_0x18aca8['removeAllListeners'](_0x3ef122('0x15')),_0x18aca8[_0x3ef122('0x251c')]('userFaxQueue:remove'),_0x18aca8[_0x3ef122('0x251c')](_0x3ef122('0x847')),_0x18aca8[_0x3ef122('0x251c')](_0x3ef122('0x7fa'));});}const _0x17190a=_0x2ebff6;_0x4a0236['$inject']=['$scope','$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1d31'),'$translate','api',_0x566993('0x1600'),'socket'];function _0x4a0236(_0x17cd12,_0x79b9c5,_0x240c68,_0x4367b9,_0x53187c,_0x3a070e,_0x43d236,_0x11dea2,_0x539571){const _0x3f2439=_0x566993,_0x599214=this,_0x132c0a=['id',_0x3f2439('0x10ad'),_0x3f2439('0x1aff'),_0x3f2439('0x1b68')];let _0x5b1737=!![];_0x599214[_0x3f2439('0x9dc')]={},_0x599214[_0x3f2439('0x20c0')]=0x0,_0x599214[_0x3f2439('0x2221')]={},_0x599214['paginatedInteractions']=[],_0x599214[_0x3f2439('0x256a')]=[],_0x599214[_0x3f2439('0x2280')]={},_0x599214[_0x3f2439('0xc49')]={'id':_0x11dea2[_0x3f2439('0x14d4')]()['id'],'channel':'mail','fields':_0x3f2439('0x249c'),'limit':0xa,'page':0x1},_0x599214[_0x3f2439('0x15f6')]={'limit':0xa,'page':0x1},_0x599214[_0x3f2439('0xdfe')]=_0x55fbb6,_0x599214['getMailQueues']=_0x299dac,_0x599214[_0x3f2439('0x12c')]=_0x537c98,_0x599214[_0x3f2439('0x1ba')]=_0x416e94,_0x599214[_0x3f2439('0x5ec')]=_0x507ebc,_0x599214[_0x3f2439('0xbb1')]=_0x18fb33,_0x599214['onSaveMailQueue']=_0x26365f,_0x599214[_0x3f2439('0x2199')]=_0x27e473,_0x599214['onRemoveMailQueue']=_0x323b1a,_0x599214[_0x3f2439('0x2776')]=_0x237f3f,_0x599214['onRemoveUserMailQueue']=_0x523c55,_0x599214[_0x3f2439('0x855')]=_0x3a6e66,_0x599214['onRemoveMailQueueChannel']=_0x5060e9,_0x539571['onWithoutApply']('mail_queue:save',_0x599214[_0x3f2439('0xbb1')]),_0x539571[_0x3f2439('0x165f')](_0x3f2439('0xc75'),_0x599214['onSaveMailQueue']),_0x539571['onWithoutApply'](_0x3f2439('0x42e'),_0x599214['onUpdateMailQueue']),_0x539571[_0x3f2439('0x165f')](_0x3f2439('0x1c0c'),_0x599214[_0x3f2439('0x25ca')]),_0x539571[_0x3f2439('0x165f')](_0x3f2439('0x9d'),_0x599214[_0x3f2439('0x2776')]),_0x539571[_0x3f2439('0x165f')]('userMailQueue:remove',_0x599214['onRemoveUserMailQueue']),_0x539571[_0x3f2439('0x165f')](_0x3f2439('0x21e9'),_0x599214[_0x3f2439('0x855')]),_0x539571['onWithoutApply'](_0x3f2439('0x1607'),_0x599214[_0x3f2439('0x1e93')]),_0x43d236[_0x3f2439('0x48c')][_0x3f2439('0x1a9c')]()[_0x3f2439('0x1964')][_0x3f2439('0x173b')](function(_0x52cd94){const _0x42abcd=_0x3f2439;_0x599214[_0x42abcd('0x2221')]=_0x52cd94?_0x3c8d8a()['keyBy'](_0x52cd94['rows']?_0x52cd94['rows']:[],'id'):{};})[_0x3f2439('0x173b')](function(){const _0x32fe24=_0x3f2439;return _0x43d236[_0x32fe24('0x166f')][_0x32fe24('0x115e')]({'id':_0x11dea2[_0x32fe24('0x14d4')]()['id'],'channel':_0x32fe24('0x108a')})[_0x32fe24('0x1964')];})[_0x3f2439('0x173b')](function(_0x3a1f27){const _0x148774=_0x3f2439;return _0x599214[_0x148774('0x1124')]=_0x3a1f27[_0x148774('0x6aa')],_0x43d236['rpc'][_0x148774('0x284d')]()[_0x148774('0x1964')];})[_0x3f2439('0x173b')](function(_0x26a408){const _0x24e438=_0x3f2439,_0x43bc49=_0x3c8d8a()[_0x24e438('0x278d')](_0x26a408['rows'],function(_0x8f9e59){const _0x3794e3=_0x24e438;return _0x3c8d8a()[_0x3794e3('0x2814')](_0x599214[_0x3794e3('0x1124')],{'id':_0x8f9e59['queue_id']});});_0x26a408[_0x24e438('0x6aa')]=_0x43bc49,_0x26a408[_0x24e438('0x1a2f')]=_0x43bc49[_0x24e438('0x543')],_0x3c8d8a()['merge'](_0x599214['rpcMailQueuesWaitingInteractions'],_0x26a408?_0x3c8d8a()[_0x24e438('0x128')](_0x26a408['rows']?_0x26a408[_0x24e438('0x6aa')]:[],'id'):{});})[_0x3f2439('0x103c')](function(_0x140b57){console['error'](_0x140b57);})[_0x3f2439('0xf25')](function(){const _0x298e1e=_0x3f2439;for(let _0x131cf3=0x0;_0x131cf3<_0x599214[_0x298e1e('0x256a')][_0x298e1e('0x543')];_0x131cf3+=0x1){delete _0x599214[_0x298e1e('0x2280')][_0x599214['deleteMailQueuesWaitingInteractions'][_0x131cf3]];}_0x5b1737=![],_0x599214[_0x298e1e('0x256a')]=[],_0x299dac(),_0x507ebc();});function _0x507ebc(){const _0x59abab=_0x3f2439,_0x7b579e=(_0x599214['queryChannels'][_0x59abab('0x182e')]-0x1)*_0x599214['queryChannels']['limit'];_0x599214['paginatedInteractions']=_0x3c8d8a()[_0x59abab('0x1d16')](_0x599214['rpcMailQueuesWaitingInteractions'],['joinAt'],['desc']),_0x599214['interactions']=_0x3c8d8a()[_0x59abab('0xf69')](_0x599214[_0x59abab('0xfb8')],_0x7b579e)[_0x59abab('0x2456')](0x0,_0x599214[_0x59abab('0x15f6')][_0x59abab('0x3e')]);}function _0x55fbb6(_0x12dc5d){const _0x1f0fb0=_0x3f2439;_0x599214[_0x1f0fb0('0x20c0')]=_0x12dc5d[_0x1f0fb0('0x1a2f')]?_0x12dc5d[_0x1f0fb0('0x1a2f')]:0x0,_0x599214[_0x1f0fb0('0x9dc')]=_0x12dc5d?_0x3c8d8a()[_0x1f0fb0('0x128')](_0x12dc5d[_0x1f0fb0('0x6aa')]?_0x12dc5d['rows']:[],'id'):{},_0x3d7914();}function _0x299dac(){const _0x38be63=_0x3f2439;_0x599214[_0x38be63('0xc49')][_0x38be63('0x17f0')]=(_0x599214[_0x38be63('0xc49')]['page']-0x1)*_0x599214[_0x38be63('0xc49')][_0x38be63('0x3e')],_0x599214['promise']=_0x43d236['user'][_0x38be63('0x115e')](_0x599214[_0x38be63('0xc49')],_0x55fbb6)[_0x38be63('0x1964')];}let _0x132700=!![],_0x18a9a9=0x1;_0x17cd12['$watch'](_0x3f2439('0x5b8'),function(_0x88d773,_0x32a971){const _0xee2fbe=_0x3f2439;_0x132700?_0x79b9c5(function(){_0x132700=![];}):(!_0x32a971&&(_0x18a9a9=_0x599214[_0xee2fbe('0xc49')][_0xee2fbe('0x182e')]),_0x88d773!==_0x32a971&&(_0x599214[_0xee2fbe('0xc49')]['page']=0x1),!_0x88d773&&(_0x599214[_0xee2fbe('0xc49')][_0xee2fbe('0x182e')]=_0x18a9a9),_0x599214[_0xee2fbe('0x1a9c')]());});function _0x537c98(_0x2b1491){const _0x8c62b4=_0x3f2439;return _0x3c8d8a()[_0x8c62b4('0x2361')](_0x2b1491);}function _0x3d7914(){const _0x164410=_0x3f2439;_0x3c8d8a()[_0x164410('0x33d')](_0x599214[_0x164410('0x9dc')],function(_0x15dbda,_0x1f18a8){const _0x5ca8e6=_0x164410;_0x599214[_0x5ca8e6('0x2221')][_0x1f18a8]&&(_0x599214[_0x5ca8e6('0x9dc')][_0x1f18a8]['waiting']=_0x599214[_0x5ca8e6('0x2221')][_0x1f18a8][_0x5ca8e6('0x1b68')]||0x0);});}function _0x18fb33(_0xd0188){const _0x3b486e=_0x3f2439;_0x599214['mailQueues'][_0xd0188['id']]&&(_0x599214[_0x3b486e('0x2221')][_0xd0188['id']]&&(_0x3c8d8a()[_0x3b486e('0x9ef')](_0x599214[_0x3b486e('0x2221')][_0xd0188['id']],_0x3c8d8a()[_0x3b486e('0x2114')](_0xd0188,_0x132c0a)),_0x3c8d8a()[_0x3b486e('0x9ef')](_0x599214[_0x3b486e('0x9dc')][_0xd0188['id']],_0x3c8d8a()[_0x3b486e('0x2114')](_0xd0188,_0x132c0a))));}function _0x26365f(_0x12d251){const _0x497d26=_0x3f2439;!_0x3c8d8a()['isNil'](_0x12d251)&&(_0x599214[_0x497d26('0x2221')][_0x12d251['id']]=_0x3c8d8a()[_0x497d26('0x2114')](_0x12d251,_0x132c0a));}function _0x27e473(_0xadd369){const _0xfed81b=_0x3f2439;!_0x3c8d8a()[_0xfed81b('0x7d5')](_0xadd369)&&(_0x599214['rpcMailQueues'][_0xadd369['id']]&&_0x3c8d8a()[_0xfed81b('0x9ef')](_0x599214['rpcMailQueues'][_0xadd369['id']],_0x3c8d8a()[_0xfed81b('0x2114')](_0xadd369,_0x132c0a)),_0x599214[_0xfed81b('0x9dc')][_0xadd369['id']]&&_0x3c8d8a()[_0xfed81b('0x9ef')](_0x599214['mailQueues'][_0xadd369['id']],_0x3c8d8a()['pick'](_0xadd369,_0x132c0a)));}function _0x323b1a(_0x188195){const _0x41a5ee=_0x3f2439;!_0x3c8d8a()[_0x41a5ee('0x7d5')](_0x188195)&&(delete _0x599214[_0x41a5ee('0x2221')][_0x188195['id']],delete _0x599214[_0x41a5ee('0x9dc')][_0x188195['id']]);}function _0x237f3f(_0x4b3794){_0x3c8d8a()['toInteger'](_0x4b3794['UserId'])===_0x11dea2['getCurrentUser']()['id']&&_0x599214['getMailQueues']();}function _0x523c55(_0x231f86){const _0x50378f=_0x3f2439;_0x3c8d8a()[_0x50378f('0x2f1')](_0x231f86[_0x50378f('0x181c')])===_0x11dea2[_0x50378f('0x14d4')]()['id']&&_0x599214[_0x50378f('0x1a9c')]();}function _0x3a6e66(_0x498e24){const _0x4374e1=_0x3f2439;_0x599214[_0x4374e1('0x9dc')][_0x498e24[_0x4374e1('0x1a47')]]&&(_0x599214[_0x4374e1('0x2280')][_0x498e24['id']]=_0x498e24,_0x507ebc());}function _0x5060e9(_0x4f92e5){const _0x366b21=_0x3f2439;delete _0x599214['rpcMailQueuesWaitingInteractions'][_0x4f92e5['id']],_0x5b1737&&_0x599214['deleteMailQueuesWaitingInteractions'][_0x366b21('0x18bb')](_0x4f92e5['id']),_0x507ebc();}function _0x416e94(_0x4eecb9){const _0x1193b8=_0x3f2439;switch(_0x4eecb9){case _0x1193b8('0x8c5'):return _0x1193b8('0x10c8');case _0x1193b8('0x108a'):return'teal-bg';case _0x1193b8('0x1a8f'):return _0x1193b8('0xc1c');case _0x1193b8('0x245'):return _0x1193b8('0x1794');case _0x1193b8('0xab2'):return _0x1193b8('0x1ec4');case _0x1193b8('0x16d'):return _0x1193b8('0x1746');default:return _0x1193b8('0x107f');}}_0x17cd12['$on'](_0x3f2439('0x16d2'),function(){const _0x329616=_0x3f2439;_0x539571['removeAllListeners'](_0x329616('0x19b6')),_0x539571[_0x329616('0x251c')](_0x329616('0xc75')),_0x539571[_0x329616('0x251c')]('mailQueue:update'),_0x539571[_0x329616('0x251c')](_0x329616('0x1c0c')),_0x539571[_0x329616('0x251c')](_0x329616('0x9d')),_0x539571[_0x329616('0x251c')](_0x329616('0xa34')),_0x539571[_0x329616('0x251c')]('mail_queue_waiting_interaction:save'),_0x539571['removeAllListeners'](_0x329616('0x1607'));});}const _0x433b7a=_0x4a0236;_0x5d6cec[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),'$window',_0x566993('0x638'),'api',_0x566993('0x1600'),_0x566993('0x2fc')];function _0x5d6cec(_0x48d198,_0x54a666,_0xdf1757,_0x42d62a,_0x4f82df,_0x59f197,_0x3a1ef8,_0xa0ca8e,_0x5a7e02){const _0x371f35=_0x566993,_0x1b57cc=this,_0x56b3d3=['id',_0x371f35('0x10ad'),_0x371f35('0x1aff'),_0x371f35('0x1b68')];let _0x19a7a5=!![];_0x1b57cc['openchannelQueues']={},_0x1b57cc[_0x371f35('0x17d3')]=0x0,_0x1b57cc[_0x371f35('0x1052')]={},_0x1b57cc[_0x371f35('0xfb8')]=[],_0x1b57cc['deleteOpenchannelQueuesWaitingInteractions']=[],_0x1b57cc[_0x371f35('0x21be')]={},_0x1b57cc['query']={'id':_0xa0ca8e['getCurrentUser']()['id'],'channel':_0x371f35('0xab2'),'fields':_0x371f35('0x249c'),'limit':0xa,'page':0x1},_0x1b57cc[_0x371f35('0x15f6')]={'limit':0xa,'page':0x1},_0x1b57cc[_0x371f35('0xdfe')]=_0xf61cd1,_0x1b57cc[_0x371f35('0x1dc7')]=_0x43d7cb,_0x1b57cc[_0x371f35('0x12c')]=_0x224fb9,_0x1b57cc[_0x371f35('0x1ba')]=_0x934643,_0x1b57cc['paginate']=_0x3f4eac,_0x1b57cc['onSaveQueue']=_0x54a984,_0x1b57cc[_0x371f35('0x202c')]=_0x29146e,_0x1b57cc[_0x371f35('0x2336')]=_0x1289a4,_0x1b57cc[_0x371f35('0xf62')]=_0x4c0b98,_0x1b57cc['onSaveUserOpenchannelQueue']=_0x3211bd,_0x1b57cc[_0x371f35('0xb37')]=_0x12ec99,_0x1b57cc[_0x371f35('0x6a3')]=_0x2d65ec,_0x1b57cc[_0x371f35('0xc70')]=_0x3edf28,_0x5a7e02[_0x371f35('0x165f')](_0x371f35('0x2609'),_0x1b57cc[_0x371f35('0xbb1')]),_0x5a7e02[_0x371f35('0x165f')](_0x371f35('0x792'),_0x1b57cc['onSaveOpenchannelQueue']),_0x5a7e02[_0x371f35('0x165f')]('openchannelQueue:update',_0x1b57cc[_0x371f35('0x2336')]),_0x5a7e02[_0x371f35('0x165f')](_0x371f35('0xef9'),_0x1b57cc[_0x371f35('0xf62')]),_0x5a7e02[_0x371f35('0x165f')](_0x371f35('0x7c9'),_0x1b57cc[_0x371f35('0x85f')]),_0x5a7e02[_0x371f35('0x165f')](_0x371f35('0x1b51'),_0x1b57cc['onRemoveUserOpenchannelQueue']),_0x5a7e02[_0x371f35('0x165f')](_0x371f35('0x115a'),_0x1b57cc[_0x371f35('0x6a3')]),_0x5a7e02[_0x371f35('0x165f')]('openchannel_queue_waiting_interaction:remove',_0x1b57cc[_0x371f35('0xc70')]),_0x3a1ef8[_0x371f35('0x48c')][_0x371f35('0x1dc7')]()[_0x371f35('0x1964')][_0x371f35('0x173b')](function(_0x1ca6b1){const _0x13ef6c=_0x371f35;_0x1b57cc[_0x13ef6c('0x1052')]=_0x1ca6b1?_0x3c8d8a()[_0x13ef6c('0x128')](_0x1ca6b1[_0x13ef6c('0x6aa')]?_0x1ca6b1[_0x13ef6c('0x6aa')]:[],'id'):{};})[_0x371f35('0x173b')](function(){const _0x4a2d8b=_0x371f35;return _0x3a1ef8['user'][_0x4a2d8b('0x115e')]({'id':_0xa0ca8e['getCurrentUser']()['id'],'channel':_0x4a2d8b('0xab2')})['$promise'];})[_0x371f35('0x173b')](function(_0x3fe2f6){const _0x3d416d=_0x371f35;return _0x1b57cc[_0x3d416d('0x1124')]=_0x3fe2f6[_0x3d416d('0x6aa')],_0x3a1ef8['rpc'][_0x3d416d('0x1bca')]()[_0x3d416d('0x1964')];})[_0x371f35('0x173b')](function(_0x45aa0a){const _0x1deaf7=_0x371f35,_0x44a260=_0x3c8d8a()[_0x1deaf7('0x278d')](_0x45aa0a[_0x1deaf7('0x6aa')],function(_0x5ad2b7){const _0x4cc185=_0x1deaf7;return _0x3c8d8a()[_0x4cc185('0x2814')](_0x1b57cc[_0x4cc185('0x1124')],{'id':_0x5ad2b7[_0x4cc185('0x1a47')]});});_0x45aa0a[_0x1deaf7('0x6aa')]=_0x44a260,_0x45aa0a[_0x1deaf7('0x1a2f')]=_0x44a260[_0x1deaf7('0x543')],_0x3c8d8a()['merge'](_0x1b57cc['rpcOpenchannelQueuesWaitingInteractions'],_0x45aa0a?_0x3c8d8a()[_0x1deaf7('0x128')](_0x45aa0a[_0x1deaf7('0x6aa')]?_0x45aa0a[_0x1deaf7('0x6aa')]:[],'id'):{});})['catch'](function(_0x4bb25f){const _0x1b08fa=_0x371f35;console[_0x1b08fa('0x15aa')](_0x4bb25f);})[_0x371f35('0xf25')](function(){const _0x484929=_0x371f35;for(let _0x5ce043=0x0;_0x5ce043<_0x1b57cc[_0x484929('0x26be')]['length'];_0x5ce043+=0x1){delete _0x1b57cc['rpcOpenchannelQueuesWaitingInteractions'][_0x1b57cc[_0x484929('0x26be')][_0x5ce043]];}_0x19a7a5=![],_0x1b57cc[_0x484929('0x26be')]=[],_0x43d7cb(),_0x3f4eac();});function _0x3f4eac(){const _0x4346d5=_0x371f35,_0x2f6bb7=(_0x1b57cc['queryChannels']['page']-0x1)*_0x1b57cc[_0x4346d5('0x15f6')][_0x4346d5('0x3e')];_0x1b57cc[_0x4346d5('0xfb8')]=_0x3c8d8a()[_0x4346d5('0x1d16')](_0x1b57cc[_0x4346d5('0x21be')],[_0x4346d5('0xd5b')],[_0x4346d5('0x231d')]),_0x1b57cc[_0x4346d5('0x1594')]=_0x3c8d8a()[_0x4346d5('0xf69')](_0x1b57cc[_0x4346d5('0xfb8')],_0x2f6bb7)[_0x4346d5('0x2456')](0x0,_0x1b57cc[_0x4346d5('0x15f6')][_0x4346d5('0x3e')]);}function _0xf61cd1(_0x2b0f6e){const _0x4c785e=_0x371f35;_0x1b57cc[_0x4c785e('0x17d3')]=_0x2b0f6e['count']?_0x2b0f6e[_0x4c785e('0x1a2f')]:0x0,_0x1b57cc['openchannelQueues']=_0x2b0f6e?_0x3c8d8a()[_0x4c785e('0x128')](_0x2b0f6e['rows']?_0x2b0f6e[_0x4c785e('0x6aa')]:[],'id'):{},_0x2e6d55();}function _0x43d7cb(){const _0x6c5f74=_0x371f35;_0x1b57cc['query']['offset']=(_0x1b57cc[_0x6c5f74('0xc49')][_0x6c5f74('0x182e')]-0x1)*_0x1b57cc['query']['limit'],_0x1b57cc[_0x6c5f74('0x2219')]=_0x3a1ef8[_0x6c5f74('0x166f')][_0x6c5f74('0x115e')](_0x1b57cc[_0x6c5f74('0xc49')],_0xf61cd1)[_0x6c5f74('0x1964')];}let _0x179374=!![],_0x1d71d7=0x1;_0x48d198[_0x371f35('0x1bdb')](_0x371f35('0x5b8'),function(_0x4799f0,_0x2a07b7){const _0x2e3291=_0x371f35;_0x179374?_0x54a666(function(){_0x179374=![];}):(!_0x2a07b7&&(_0x1d71d7=_0x1b57cc['query'][_0x2e3291('0x182e')]),_0x4799f0!==_0x2a07b7&&(_0x1b57cc[_0x2e3291('0xc49')][_0x2e3291('0x182e')]=0x1),!_0x4799f0&&(_0x1b57cc[_0x2e3291('0xc49')][_0x2e3291('0x182e')]=_0x1d71d7),_0x1b57cc[_0x2e3291('0x1dc7')]());});function _0x224fb9(_0x170006){return _0x3c8d8a()['size'](_0x170006);}function _0x2e6d55(){const _0xcdecf5=_0x371f35;_0x3c8d8a()['forIn'](_0x1b57cc[_0xcdecf5('0x1f89')],function(_0x49fe40,_0x47fa00){const _0x296dca=_0xcdecf5;_0x1b57cc[_0x296dca('0x1052')][_0x47fa00]&&(_0x1b57cc[_0x296dca('0x1f89')][_0x47fa00][_0x296dca('0x1b68')]=_0x1b57cc[_0x296dca('0x1052')][_0x47fa00][_0x296dca('0x1b68')]||0x0);});}function _0x54a984(_0x3375a3){const _0x53c8cb=_0x371f35;_0x1b57cc[_0x53c8cb('0x1f89')][_0x3375a3['id']]&&(_0x1b57cc[_0x53c8cb('0x1052')][_0x3375a3['id']]&&(_0x3c8d8a()[_0x53c8cb('0x9ef')](_0x1b57cc[_0x53c8cb('0x1052')][_0x3375a3['id']],_0x3c8d8a()['pick'](_0x3375a3,_0x56b3d3)),_0x3c8d8a()[_0x53c8cb('0x9ef')](_0x1b57cc[_0x53c8cb('0x1f89')][_0x3375a3['id']],_0x3c8d8a()['pick'](_0x3375a3,_0x56b3d3))));}function _0x29146e(_0x327644){const _0x10e2ce=_0x371f35;!_0x3c8d8a()['isNil'](_0x327644)&&(_0x1b57cc[_0x10e2ce('0x1052')][_0x327644['id']]=_0x3c8d8a()[_0x10e2ce('0x2114')](_0x327644,_0x56b3d3));}function _0x1289a4(_0x2c4ff9){const _0xf17fad=_0x371f35;!_0x3c8d8a()[_0xf17fad('0x7d5')](_0x2c4ff9)&&(_0x1b57cc[_0xf17fad('0x1052')][_0x2c4ff9['id']]&&_0x3c8d8a()[_0xf17fad('0x9ef')](_0x1b57cc[_0xf17fad('0x1052')][_0x2c4ff9['id']],_0x3c8d8a()[_0xf17fad('0x2114')](_0x2c4ff9,_0x56b3d3)),_0x1b57cc['openchannelQueues'][_0x2c4ff9['id']]&&_0x3c8d8a()[_0xf17fad('0x9ef')](_0x1b57cc[_0xf17fad('0x1f89')][_0x2c4ff9['id']],_0x3c8d8a()[_0xf17fad('0x2114')](_0x2c4ff9,_0x56b3d3)));}function _0x4c0b98(_0x2e8b76){const _0x5c6df3=_0x371f35;!_0x3c8d8a()[_0x5c6df3('0x7d5')](_0x2e8b76)&&(delete _0x1b57cc[_0x5c6df3('0x1052')][_0x2e8b76['id']],delete _0x1b57cc['openchannelQueues'][_0x2e8b76['id']]);}function _0x3211bd(_0xb28a3){const _0x9e4320=_0x371f35;_0x3c8d8a()[_0x9e4320('0x2f1')](_0xb28a3[_0x9e4320('0x181c')])===_0xa0ca8e[_0x9e4320('0x14d4')]()['id']&&_0x1b57cc[_0x9e4320('0x1dc7')]();}function _0x12ec99(_0x154f94){const _0x3816c3=_0x371f35;_0x3c8d8a()[_0x3816c3('0x2f1')](_0x154f94['UserId'])===_0xa0ca8e[_0x3816c3('0x14d4')]()['id']&&_0x1b57cc[_0x3816c3('0x1dc7')]();}function _0x2d65ec(_0x4c8868){const _0x5aa16c=_0x371f35;_0x1b57cc[_0x5aa16c('0x1f89')][_0x4c8868['queue_id']]&&(_0x1b57cc[_0x5aa16c('0x21be')][_0x4c8868['id']]=_0x4c8868,_0x3f4eac());}function _0x3edf28(_0x5af484){const _0x572046=_0x371f35;delete _0x1b57cc[_0x572046('0x21be')][_0x5af484['id']],_0x19a7a5&&_0x1b57cc[_0x572046('0x26be')][_0x572046('0x18bb')](_0x5af484['id']),_0x3f4eac();}function _0x934643(_0x28f6bb){const _0x491875=_0x371f35;switch(_0x28f6bb){case _0x491875('0x8c5'):return _0x491875('0x10c8');case _0x491875('0x108a'):return'teal-bg';case _0x491875('0x1a8f'):return'orange-bg';case _0x491875('0x245'):return'lime-A700-bg';case _0x491875('0xab2'):return _0x491875('0x1ec4');case _0x491875('0x16d'):return'blue-grey-A200-bg';default:return'white-bg';}}_0x48d198[_0x371f35('0xbf6')](_0x371f35('0x16d2'),function(){const _0x1fd944=_0x371f35;_0x5a7e02['removeAllListeners'](_0x1fd944('0x2609')),_0x5a7e02['removeAllListeners'](_0x1fd944('0x792')),_0x5a7e02['removeAllListeners'](_0x1fd944('0x2597')),_0x5a7e02[_0x1fd944('0x251c')](_0x1fd944('0xef9')),_0x5a7e02[_0x1fd944('0x251c')](_0x1fd944('0x7c9')),_0x5a7e02[_0x1fd944('0x251c')](_0x1fd944('0x1b51')),_0x5a7e02[_0x1fd944('0x251c')]('openchannel_queue_waiting_interaction:save'),_0x5a7e02[_0x1fd944('0x251c')](_0x1fd944('0x2350'));});}const _0x496b2d=_0x5d6cec;_0x1041c1['$inject']=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$document','$window',_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x1600'),'socket'];function _0x1041c1(_0x5306df,_0x455778,_0x2f33c3,_0x309f38,_0x16851c,_0x5e3963,_0x32ed5d,_0x45ab88,_0x1f07e0){const _0xde1c41=_0x566993,_0x3ed3c2=this,_0xb40ff2=['id',_0xde1c41('0x10ad'),'mapAgentsId',_0xde1c41('0x1b68')];let _0x2ee5f2=!![];_0x3ed3c2['smsQueues']={},_0x3ed3c2['smsQueuesTotal']=0x0,_0x3ed3c2[_0xde1c41('0x1442')]={},_0x3ed3c2[_0xde1c41('0xfb8')]=[],_0x3ed3c2['deleteSmsQueuesWaitingInteractions']=[],_0x3ed3c2['rpcSmsQueuesWaitingInteractions']={},_0x3ed3c2[_0xde1c41('0xc49')]={'id':_0x45ab88[_0xde1c41('0x14d4')]()['id'],'channel':_0xde1c41('0x1a8f'),'fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x3ed3c2['queryChannels']={'limit':0xa,'page':0x1},_0x3ed3c2[_0xde1c41('0xdfe')]=_0x47343d,_0x3ed3c2[_0xde1c41('0x11ba')]=_0x52438b,_0x3ed3c2[_0xde1c41('0x12c')]=_0x380beb,_0x3ed3c2[_0xde1c41('0x1ba')]=_0x196aa6,_0x3ed3c2[_0xde1c41('0x5ec')]=_0x60aa7f,_0x3ed3c2[_0xde1c41('0xbb1')]=_0x5b9930,_0x3ed3c2[_0xde1c41('0x27cb')]=_0x5a0776,_0x3ed3c2[_0xde1c41('0x1eeb')]=_0x1667a8,_0x3ed3c2[_0xde1c41('0xb98')]=_0x15d15d,_0x3ed3c2[_0xde1c41('0x25d7')]=_0x4e84d8,_0x3ed3c2[_0xde1c41('0xaa4')]=_0x4633ed,_0x3ed3c2['onSaveSmsQueueChannel']=_0x415efc,_0x3ed3c2['onRemoveSmsQueueChannel']=_0x4dc552,_0x1f07e0[_0xde1c41('0x165f')](_0xde1c41('0x3dc'),_0x3ed3c2[_0xde1c41('0xbb1')]),_0x1f07e0['onWithoutApply'](_0xde1c41('0xa7'),_0x3ed3c2[_0xde1c41('0x27cb')]),_0x1f07e0[_0xde1c41('0x165f')](_0xde1c41('0x1c6f'),_0x3ed3c2[_0xde1c41('0x1eeb')]),_0x1f07e0[_0xde1c41('0x165f')](_0xde1c41('0x2604'),_0x3ed3c2[_0xde1c41('0xb98')]),_0x1f07e0['onWithoutApply'](_0xde1c41('0x2824'),_0x3ed3c2[_0xde1c41('0x25d7')]),_0x1f07e0[_0xde1c41('0x165f')](_0xde1c41('0x1cc5'),_0x3ed3c2[_0xde1c41('0xaa4')]),_0x1f07e0[_0xde1c41('0x165f')](_0xde1c41('0x212f'),_0x3ed3c2[_0xde1c41('0x2138')]),_0x1f07e0[_0xde1c41('0x165f')](_0xde1c41('0xe6f'),_0x3ed3c2['onRemoveSmsQueueChannel']),_0x32ed5d[_0xde1c41('0x48c')]['getSmsQueues']()[_0xde1c41('0x1964')][_0xde1c41('0x173b')](function(_0x54b2b5){const _0x145cdc=_0xde1c41;_0x3ed3c2[_0x145cdc('0x1442')]=_0x54b2b5?_0x3c8d8a()[_0x145cdc('0x128')](_0x54b2b5[_0x145cdc('0x6aa')]?_0x54b2b5[_0x145cdc('0x6aa')]:[],'id'):{};})['then'](function(){const _0xdc2a23=_0xde1c41;return _0x32ed5d[_0xdc2a23('0x166f')][_0xdc2a23('0x115e')]({'id':_0x45ab88['getCurrentUser']()['id'],'channel':_0xdc2a23('0x1a8f')})[_0xdc2a23('0x1964')];})[_0xde1c41('0x173b')](function(_0x47ec12){const _0x5b5afa=_0xde1c41;return _0x3ed3c2[_0x5b5afa('0x1124')]=_0x47ec12[_0x5b5afa('0x6aa')],_0x32ed5d[_0x5b5afa('0x48c')][_0x5b5afa('0x939')]()['$promise'];})[_0xde1c41('0x173b')](function(_0x4c72cb){const _0x47edd3=_0xde1c41,_0x2910f3=_0x3c8d8a()[_0x47edd3('0x278d')](_0x4c72cb[_0x47edd3('0x6aa')],function(_0x332652){const _0x2b9c22=_0x47edd3;return _0x3c8d8a()[_0x2b9c22('0x2814')](_0x3ed3c2['myQueues'],{'id':_0x332652[_0x2b9c22('0x1a47')]});});_0x4c72cb[_0x47edd3('0x6aa')]=_0x2910f3,_0x4c72cb[_0x47edd3('0x1a2f')]=_0x2910f3[_0x47edd3('0x543')],_0x3c8d8a()['merge'](_0x3ed3c2[_0x47edd3('0x5cc')],_0x4c72cb?_0x3c8d8a()[_0x47edd3('0x128')](_0x4c72cb['rows']?_0x4c72cb[_0x47edd3('0x6aa')]:[],'id'):{});})[_0xde1c41('0x103c')](function(_0x42b73a){const _0x20f0f7=_0xde1c41;console[_0x20f0f7('0x15aa')](_0x42b73a);})[_0xde1c41('0xf25')](function(){const _0x26eede=_0xde1c41;for(let _0x5bec00=0x0;_0x5bec00<_0x3ed3c2[_0x26eede('0x212c')]['length'];_0x5bec00+=0x1){delete _0x3ed3c2[_0x26eede('0x5cc')][_0x3ed3c2[_0x26eede('0x212c')][_0x5bec00]];}_0x2ee5f2=![],_0x3ed3c2[_0x26eede('0x212c')]=[],_0x52438b(),_0x60aa7f();});function _0x60aa7f(){const _0x10e442=_0xde1c41,_0x45f53d=(_0x3ed3c2['queryChannels'][_0x10e442('0x182e')]-0x1)*_0x3ed3c2[_0x10e442('0x15f6')][_0x10e442('0x3e')];_0x3ed3c2[_0x10e442('0xfb8')]=_0x3c8d8a()[_0x10e442('0x1d16')](_0x3ed3c2[_0x10e442('0x5cc')],[_0x10e442('0xd5b')],[_0x10e442('0x231d')]),_0x3ed3c2[_0x10e442('0x1594')]=_0x3c8d8a()[_0x10e442('0xf69')](_0x3ed3c2[_0x10e442('0xfb8')],_0x45f53d)[_0x10e442('0x2456')](0x0,_0x3ed3c2['queryChannels'][_0x10e442('0x3e')]);}function _0x47343d(_0x7687f0){const _0x2004dc=_0xde1c41;_0x3ed3c2['smsQueuesTotal']=_0x7687f0['count']?_0x7687f0[_0x2004dc('0x1a2f')]:0x0,_0x3ed3c2[_0x2004dc('0x1f50')]=_0x7687f0?_0x3c8d8a()[_0x2004dc('0x128')](_0x7687f0[_0x2004dc('0x6aa')]?_0x7687f0[_0x2004dc('0x6aa')]:[],'id'):{},_0x1c9ed0();}function _0x52438b(){const _0x2e3ccb=_0xde1c41;_0x3ed3c2[_0x2e3ccb('0xc49')][_0x2e3ccb('0x17f0')]=(_0x3ed3c2[_0x2e3ccb('0xc49')]['page']-0x1)*_0x3ed3c2['query']['limit'],_0x3ed3c2[_0x2e3ccb('0x2219')]=_0x32ed5d[_0x2e3ccb('0x166f')][_0x2e3ccb('0x115e')](_0x3ed3c2[_0x2e3ccb('0xc49')],_0x47343d)[_0x2e3ccb('0x1964')];}let _0x11e4b6=!![],_0x3db257=0x1;_0x5306df[_0xde1c41('0x1bdb')](_0xde1c41('0x5b8'),function(_0x87dd99,_0x3be7c9){const _0x3e7a60=_0xde1c41;_0x11e4b6?_0x455778(function(){_0x11e4b6=![];}):(!_0x3be7c9&&(_0x3db257=_0x3ed3c2[_0x3e7a60('0xc49')][_0x3e7a60('0x182e')]),_0x87dd99!==_0x3be7c9&&(_0x3ed3c2['query'][_0x3e7a60('0x182e')]=0x1),!_0x87dd99&&(_0x3ed3c2['query'][_0x3e7a60('0x182e')]=_0x3db257),_0x3ed3c2[_0x3e7a60('0x11ba')]());});function _0x380beb(_0x44c841){return _0x3c8d8a()['size'](_0x44c841);}function _0x1c9ed0(){const _0xf16762=_0xde1c41;_0x3c8d8a()[_0xf16762('0x33d')](_0x3ed3c2['smsQueues'],function(_0x438f33,_0x10dec0){const _0x5da6d2=_0xf16762;_0x3ed3c2['rpcSmsQueues'][_0x10dec0]&&(_0x3ed3c2[_0x5da6d2('0x1f50')][_0x10dec0]['waiting']=_0x3ed3c2[_0x5da6d2('0x1442')][_0x10dec0][_0x5da6d2('0x1b68')]||0x0);});}function _0x5b9930(_0x21ee2d){const _0x518669=_0xde1c41;_0x3ed3c2[_0x518669('0x1f50')][_0x21ee2d['id']]&&(_0x3ed3c2[_0x518669('0x1442')][_0x21ee2d['id']]&&(_0x3c8d8a()[_0x518669('0x9ef')](_0x3ed3c2[_0x518669('0x1442')][_0x21ee2d['id']],_0x3c8d8a()[_0x518669('0x2114')](_0x21ee2d,_0xb40ff2)),_0x3c8d8a()[_0x518669('0x9ef')](_0x3ed3c2[_0x518669('0x1f50')][_0x21ee2d['id']],_0x3c8d8a()[_0x518669('0x2114')](_0x21ee2d,_0xb40ff2))));}function _0x5a0776(_0x7e0284){const _0x224db8=_0xde1c41;!_0x3c8d8a()['isNil'](_0x7e0284)&&(_0x3ed3c2[_0x224db8('0x1442')][_0x7e0284['id']]=_0x3c8d8a()['pick'](_0x7e0284,_0xb40ff2));}function _0x1667a8(_0x41f179){const _0x261156=_0xde1c41;!_0x3c8d8a()[_0x261156('0x7d5')](_0x41f179)&&(_0x3ed3c2[_0x261156('0x1442')][_0x41f179['id']]&&_0x3c8d8a()[_0x261156('0x9ef')](_0x3ed3c2[_0x261156('0x1442')][_0x41f179['id']],_0x3c8d8a()[_0x261156('0x2114')](_0x41f179,_0xb40ff2)),_0x3ed3c2[_0x261156('0x1f50')][_0x41f179['id']]&&_0x3c8d8a()[_0x261156('0x9ef')](_0x3ed3c2[_0x261156('0x1f50')][_0x41f179['id']],_0x3c8d8a()[_0x261156('0x2114')](_0x41f179,_0xb40ff2)));}function _0x15d15d(_0x590f47){const _0x3a79dc=_0xde1c41;!_0x3c8d8a()[_0x3a79dc('0x7d5')](_0x590f47)&&(delete _0x3ed3c2[_0x3a79dc('0x1442')][_0x590f47['id']],delete _0x3ed3c2[_0x3a79dc('0x1f50')][_0x590f47['id']]);}function _0x4e84d8(_0x3ebe7f){const _0x27282b=_0xde1c41;_0x3c8d8a()['toInteger'](_0x3ebe7f[_0x27282b('0x181c')])===_0x45ab88[_0x27282b('0x14d4')]()['id']&&_0x3ed3c2['getSmsQueues']();}function _0x4633ed(_0x3a20fa){_0x3c8d8a()['toInteger'](_0x3a20fa['UserId'])===_0x45ab88['getCurrentUser']()['id']&&_0x3ed3c2['getSmsQueues']();}function _0x415efc(_0x1d3661){const _0x1f74db=_0xde1c41;_0x3ed3c2[_0x1f74db('0x1f50')][_0x1d3661['queue_id']]&&(_0x3ed3c2[_0x1f74db('0x5cc')][_0x1d3661['id']]=_0x1d3661,_0x60aa7f());}function _0x4dc552(_0x4d12e0){const _0x4863f5=_0xde1c41;delete _0x3ed3c2['rpcSmsQueuesWaitingInteractions'][_0x4d12e0['id']],_0x2ee5f2&&_0x3ed3c2['deleteSmsQueuesWaitingInteractions'][_0x4863f5('0x18bb')](_0x4d12e0['id']),_0x60aa7f();}function _0x196aa6(_0x16cad3){const _0x5d0eba=_0xde1c41;switch(_0x16cad3){case'chat':return _0x5d0eba('0x10c8');case _0x5d0eba('0x108a'):return'teal-bg';case'sms':return _0x5d0eba('0xc1c');case _0x5d0eba('0x245'):return _0x5d0eba('0x1794');case'openchannel':return _0x5d0eba('0x1ec4');case _0x5d0eba('0x16d'):return'blue-grey-A200-bg';default:return'white-bg';}}_0x5306df['$on'](_0xde1c41('0x16d2'),function(){const _0x5d6cef=_0xde1c41;_0x1f07e0['removeAllListeners'](_0x5d6cef('0x3dc')),_0x1f07e0[_0x5d6cef('0x251c')](_0x5d6cef('0xa7')),_0x1f07e0[_0x5d6cef('0x251c')](_0x5d6cef('0x1c6f')),_0x1f07e0[_0x5d6cef('0x251c')]('smsQueue:remove'),_0x1f07e0['removeAllListeners'](_0x5d6cef('0x2824')),_0x1f07e0['removeAllListeners']('userSmsQueue:remove'),_0x1f07e0['removeAllListeners']('sms_queue_waiting_interaction:save'),_0x1f07e0[_0x5d6cef('0x251c')](_0x5d6cef('0xe6f'));});}const _0x1f5d0d=_0x1041c1;_0x33aade[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$document',_0x566993('0x1d31'),_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x2fc')];function _0x33aade(_0x57ca9f,_0x115a95,_0x5eea47,_0x1c7142,_0x39b716,_0x374e9c,_0x90291f,_0x5d7e34,_0x10edbd){const _0x4c779f=_0x566993,_0x255741=this,_0xc97a11=[_0x4c779f('0x1810'),'waiting',_0x4c779f('0xa87'),_0x4c779f('0x3ba')];_0x255741[_0x4c779f('0x19f0')]={},_0x255741[_0x4c779f('0xa7e')]=0x0,_0x255741[_0x4c779f('0xdc5')]={},_0x255741[_0x4c779f('0xec3')]={},_0x255741[_0x4c779f('0x488')]={},_0x255741[_0x4c779f('0x7df')]={},_0x255741[_0x4c779f('0x480')]=[],_0x255741[_0x4c779f('0xda0')]=!![],_0x255741[_0x4c779f('0xc49')]={'id':_0x5d7e34['getCurrentUser']()['id'],'fields':_0x4c779f('0xc68'),'channel':_0x4c779f('0x21a8'),'type':'inbound','limit':0xa,'page':0x1},_0x255741[_0x4c779f('0x15f6')]={'limit':0xa,'page':0x1},_0x255741[_0x4c779f('0xdfe')]=_0x5043c5,_0x255741['getVoiceQueues']=_0x47e7e1,_0x255741['getSize']=_0x1f2ac1,_0x255741[_0x4c779f('0xbb1')]=_0x3926ae,_0x255741['onSaveChannel']=_0x2af2e5,_0x255741[_0x4c779f('0x14db')]=_0x338247,_0x255741[_0x4c779f('0x23c')]=_0x978507,_0x255741[_0x4c779f('0x1651')]=_0x444324,_0x255741['onRemoveVoiceQueue']=_0x469234,_0x10edbd[_0x4c779f('0x165f')](_0x4c779f('0x1414'),_0x255741[_0x4c779f('0xbb1')]),_0x10edbd[_0x4c779f('0x165f')](_0x4c779f('0xf10'),_0x255741['onSaveChannel']),_0x10edbd[_0x4c779f('0x165f')](_0x4c779f('0x1379'),_0x255741['onUserVoiceQueue']),_0x10edbd[_0x4c779f('0x165f')](_0x4c779f('0x22b7'),_0x255741[_0x4c779f('0x14db')]),_0x10edbd[_0x4c779f('0x165f')](_0x4c779f('0xc29'),_0x255741['onSaveVoiceQueue']),_0x10edbd['onWithoutApply']('voiceQueue:remove',_0x255741['onRemoveVoiceQueue']),_0x10edbd[_0x4c779f('0x165f')]('voiceQueue:update',_0x255741[_0x4c779f('0x1651')]),_0x90291f[_0x4c779f('0x166f')][_0x4c779f('0x115e')](_0x255741[_0x4c779f('0xc49')])['$promise'][_0x4c779f('0x173b')](function(_0x183c6f){const _0x9f70b9=_0x4c779f;return _0x255741[_0x9f70b9('0x1124')]=_0x183c6f,_0x90291f[_0x9f70b9('0x48c')][_0x9f70b9('0xec3')]()[_0x9f70b9('0x1964')];})[_0x4c779f('0x173b')](function(_0x2a857b){const _0x439da9=_0x4c779f,_0x647e61=_0x2a857b[_0x439da9('0x6aa')],_0x171b46=_0x3c8d8a()[_0x439da9('0x128')](_0x647e61,'id');for(let _0x1934c5=0x0;_0x1934c5<_0x255741['myQueues'][_0x439da9('0x1a2f')];_0x1934c5++){const _0x30aa3d=_0x255741[_0x439da9('0x1124')][_0x439da9('0x6aa')][_0x1934c5];_0x255741['rpcVoiceQueues'][_0x30aa3d['id']]=_0x171b46[_0x30aa3d['id']];}return _0x90291f[_0x439da9('0x48c')][_0x439da9('0x85d')]()['$promise'];})[_0x4c779f('0x173b')](function(_0x20519e){const _0x1f4d75=_0x4c779f;_0x255741[_0x1f4d75('0x488')]=_0x20519e?_0x3c8d8a()[_0x1f4d75('0x128')](_0x20519e[_0x1f4d75('0x6aa')]?_0x3c8d8a()[_0x1f4d75('0x278d')](_0x20519e[_0x1f4d75('0x6aa')],function(_0x232d20){const _0x49fae0=_0x1f4d75;if(_0x232d20['type']===_0x49fae0('0x1755')&&!_0x232d20[_0x49fae0('0x2458')]&&_0x3c8d8a()[_0x49fae0('0x18ab')](_0x255741['myQueues'][_0x49fae0('0x6aa')],{'name':_0x232d20[_0x49fae0('0x172')]}))return!![];return![];}):[],'uniqueid'):{};})[_0x4c779f('0x103c')](function(_0x4331af){const _0x2a3944=_0x4c779f;console[_0x2a3944('0x15aa')](_0x4331af);})['finally'](function(){const _0x484ac4=_0x4c779f;_0x3c8d8a()['merge'](_0x255741[_0x484ac4('0x488')],_0x255741[_0x484ac4('0x7df')]);for(let _0x28cc5d=0x0;_0x28cc5d<_0x255741[_0x484ac4('0x480')][_0x484ac4('0x543')];_0x28cc5d+=0x1){delete _0x255741[_0x484ac4('0x488')][_0x255741[_0x484ac4('0x480')][_0x28cc5d]];}_0x255741[_0x484ac4('0xda0')]=![],_0x255741[_0x484ac4('0x7df')]={},_0x255741[_0x484ac4('0x480')]=[],_0x255741['getVoiceQueues']();});function _0x5043c5(_0x51ceef){const _0x4dbb1f=_0x4c779f;_0x255741[_0x4dbb1f('0xa7e')]=_0x51ceef[_0x4dbb1f('0x1a2f')]?_0x51ceef['count']:0x0,_0x255741[_0x4dbb1f('0x19f0')]=_0x51ceef?_0x3c8d8a()[_0x4dbb1f('0x128')](_0x51ceef[_0x4dbb1f('0x6aa')]?_0x51ceef['rows']:[],'id'):{},_0x5a6f63();}function _0x47e7e1(){const _0x57892c=_0x4c779f;_0x255741['query'][_0x57892c('0x17f0')]=(_0x255741[_0x57892c('0xc49')][_0x57892c('0x182e')]-0x1)*_0x255741['query'][_0x57892c('0x3e')],_0x255741[_0x57892c('0x2219')]=_0x90291f[_0x57892c('0x166f')][_0x57892c('0x115e')](_0x255741['query'],_0x5043c5)[_0x57892c('0x1964')];}let _0x34916a=!![],_0x13e8f7=0x1;_0x57ca9f[_0x4c779f('0x1bdb')](_0x4c779f('0x5b8'),function(_0x3ae8e5,_0x98a0ff){const _0x2ff832=_0x4c779f;_0x34916a?_0x115a95(function(){_0x34916a=![];}):(!_0x98a0ff&&(_0x13e8f7=_0x255741[_0x2ff832('0xc49')][_0x2ff832('0x182e')]),_0x3ae8e5!==_0x98a0ff&&(_0x255741[_0x2ff832('0xc49')]['page']=0x1),!_0x3ae8e5&&(_0x255741[_0x2ff832('0xc49')][_0x2ff832('0x182e')]=_0x13e8f7),_0x255741['getVoiceQueues']());});function _0x1f2ac1(_0x45a50c){const _0x1542f1=_0x4c779f;return _0x3c8d8a()[_0x1542f1('0x2361')](_0x45a50c);}function _0x5a6f63(){const _0x499901=_0x4c779f;_0x3c8d8a()[_0x499901('0x33d')](_0x255741[_0x499901('0x19f0')],function(_0x59d064,_0x5f0eeb){const _0x9bf103=_0x499901;_0x255741[_0x9bf103('0xdc5')][_0x5f0eeb]&&(_0x255741[_0x9bf103('0x19f0')][_0x5f0eeb][_0x9bf103('0x1b68')]=_0x255741[_0x9bf103('0xdc5')][_0x5f0eeb]['waiting']||0x0);});}function _0x3926ae(_0x1b8265){const _0x44483c=_0x4c779f;_0x255741[_0x44483c('0x19f0')][_0x1b8265['id']]&&(_0x255741[_0x44483c('0xdc5')][_0x1b8265['id']]&&(_0x255741[_0x44483c('0xdc5')][_0x1b8265['id']]=_0x1b8265,_0x3c8d8a()[_0x44483c('0x9ef')](_0x255741['voiceQueues'][_0x1b8265['id']],_0x3c8d8a()[_0x44483c('0x2114')](_0x1b8265,_0xc97a11))));}function _0x2af2e5(_0x383d77){const _0x2fdeec=_0x4c779f;_0x383d77[_0x2fdeec('0x1810')]===_0x2fdeec('0x1755')&&(_0x383d77['queuecallerleaveAt']?(delete _0x255741[_0x2fdeec('0x488')][_0x383d77['uniqueid']],_0x255741[_0x2fdeec('0xda0')]&&_0x255741[_0x2fdeec('0x480')][_0x2fdeec('0x18bb')](_0x383d77[_0x2fdeec('0x207c')])):(_0x255741['rpcVoiceQueuesChannels'][_0x383d77['uniqueid']]=_0x383d77,_0x255741[_0x2fdeec('0xda0')]&&(_0x255741[_0x2fdeec('0x7df')][_0x383d77[_0x2fdeec('0x207c')]]=_0x383d77)));}function _0x978507(_0x4e1faf){!_0x3c8d8a()['isNil'](_0x4e1faf)&&(_0x255741['rpcVoiceQueues'][_0x4e1faf['id']]=_0x3c8d8a()['pick'](_0x4e1faf,_0xc97a11));}function _0x444324(_0x49e3e6){const _0x615251=_0x4c779f;!_0x3c8d8a()[_0x615251('0x7d5')](_0x49e3e6)&&(_0x255741['rpcVoiceQueues'][_0x49e3e6['id']]&&_0x3c8d8a()[_0x615251('0x9ef')](_0x255741[_0x615251('0xdc5')][_0x49e3e6['id']],_0x3c8d8a()[_0x615251('0x2114')](_0x49e3e6,_0xc97a11)),_0x255741[_0x615251('0x19f0')][_0x49e3e6['id']]&&_0x3c8d8a()[_0x615251('0x9ef')](_0x255741['voiceQueues'][_0x49e3e6['id']],_0x3c8d8a()[_0x615251('0x2114')](_0x49e3e6,_0xc97a11)));}function _0x469234(_0x28c984){const _0x5ae591=_0x4c779f;!_0x3c8d8a()[_0x5ae591('0x7d5')](_0x28c984)&&(delete _0x255741[_0x5ae591('0xdc5')][_0x28c984['id']],delete _0x255741[_0x5ae591('0x19f0')][_0x28c984['id']]);}function _0x338247(_0x4b4f79){const _0x4ca11e=_0x4c779f;_0x3c8d8a()[_0x4ca11e('0x2f1')](_0x4b4f79['UserId'])===_0x5d7e34[_0x4ca11e('0x14d4')]()['id']&&_0x255741[_0x4ca11e('0xec3')]();}_0x57ca9f[_0x4c779f('0xbf6')](_0x4c779f('0x16d2'),function(){const _0x222f54=_0x4c779f;_0x10edbd[_0x222f54('0x251c')](_0x222f54('0x1414')),_0x10edbd[_0x222f54('0x251c')](_0x222f54('0xf10')),_0x10edbd['removeAllListeners']('userVoiceQueue:save'),_0x10edbd['removeAllListeners'](_0x222f54('0x22b7')),_0x10edbd[_0x222f54('0x251c')](_0x222f54('0xc29')),_0x10edbd[_0x222f54('0x251c')](_0x222f54('0x806')),_0x10edbd[_0x222f54('0x251c')](_0x222f54('0xeb8'));});}const _0x5a8a57=_0x33aade;_0x3f77c4['$inject']=['$scope',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1d31'),_0x566993('0x638'),'api',_0x566993('0x1600'),_0x566993('0x2fc')];function _0x3f77c4(_0x4e33e8,_0xaeca44,_0x47ee33,_0x41e67a,_0x4bb276,_0x575013,_0x4b31cb,_0x1e2515,_0x34faa6){const _0x176e84=_0x566993,_0x4b3bd7=this,_0x213954=['id',_0x176e84('0x10ad'),'mapAgentsId',_0x176e84('0x1b68')];let _0x204bc1=!![];_0x4b3bd7[_0x176e84('0xbbf')]={},_0x4b3bd7[_0x176e84('0x2015')]=0x0,_0x4b3bd7[_0x176e84('0x1a0d')]={},_0x4b3bd7[_0x176e84('0xfb8')]=[],_0x4b3bd7['deleteWhatsappQueuesWaitingInteractions']=[],_0x4b3bd7[_0x176e84('0xfca')]={},_0x4b3bd7['query']={'id':_0x1e2515[_0x176e84('0x14d4')]()['id'],'channel':'whatsapp','fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x4b3bd7[_0x176e84('0x15f6')]={'limit':0xa,'page':0x1},_0x4b3bd7['success']=_0x31ef39,_0x4b3bd7[_0x176e84('0x7a9')]=_0x254802,_0x4b3bd7[_0x176e84('0x12c')]=_0xa23ccb,_0x4b3bd7[_0x176e84('0x1ba')]=_0x2d3e7d,_0x4b3bd7['paginate']=_0x4d9bf2,_0x4b3bd7[_0x176e84('0xbb1')]=_0x48fdf1,_0x4b3bd7[_0x176e84('0x11a6')]=_0x31db40,_0x4b3bd7[_0x176e84('0x21f3')]=_0x463ed4,_0x4b3bd7[_0x176e84('0x2558')]=_0x179009,_0x4b3bd7[_0x176e84('0xbff')]=_0x315f89,_0x4b3bd7[_0x176e84('0x5c4')]=_0x22ea47,_0x4b3bd7['onSaveWhatsappQueueChannel']=_0x31e3df,_0x4b3bd7['onRemoveWhatsappQueueChannel']=_0x2da2b3,_0x34faa6[_0x176e84('0x165f')](_0x176e84('0xa28'),_0x4b3bd7['onSaveQueue']),_0x34faa6[_0x176e84('0x165f')](_0x176e84('0x2760'),_0x4b3bd7[_0x176e84('0x11a6')]),_0x34faa6[_0x176e84('0x165f')]('whatsappQueue:update',_0x4b3bd7[_0x176e84('0x21f3')]),_0x34faa6[_0x176e84('0x165f')](_0x176e84('0x2b6'),_0x4b3bd7[_0x176e84('0x2558')]),_0x34faa6[_0x176e84('0x165f')](_0x176e84('0x1846'),_0x4b3bd7['onSaveUserWhatsappQueue']),_0x34faa6[_0x176e84('0x165f')](_0x176e84('0x169a'),_0x4b3bd7[_0x176e84('0x5c4')]),_0x34faa6[_0x176e84('0x165f')](_0x176e84('0xe34'),_0x4b3bd7[_0x176e84('0x3c6')]),_0x34faa6['onWithoutApply'](_0x176e84('0x1a26'),_0x4b3bd7[_0x176e84('0x11ed')]),_0x4b31cb[_0x176e84('0x48c')][_0x176e84('0x7a9')]()[_0x176e84('0x1964')][_0x176e84('0x173b')](function(_0x4931ad){const _0x5bd5af=_0x176e84;_0x4b3bd7[_0x5bd5af('0x1a0d')]=_0x4931ad?_0x3c8d8a()[_0x5bd5af('0x128')](_0x4931ad[_0x5bd5af('0x6aa')]?_0x4931ad[_0x5bd5af('0x6aa')]:[],'id'):{};})[_0x176e84('0x173b')](function(){const _0x3c3333=_0x176e84;return _0x4b31cb['user'][_0x3c3333('0x115e')]({'id':_0x1e2515['getCurrentUser']()['id'],'channel':_0x3c3333('0x245')})[_0x3c3333('0x1964')];})[_0x176e84('0x173b')](function(_0x168f84){const _0x52e344=_0x176e84;return _0x4b3bd7[_0x52e344('0x1124')]=_0x168f84[_0x52e344('0x6aa')],_0x4b31cb[_0x52e344('0x48c')][_0x52e344('0x112')]()[_0x52e344('0x1964')];})[_0x176e84('0x173b')](function(_0x4f8668){const _0x4cde56=_0x176e84,_0x3c77e4=_0x3c8d8a()[_0x4cde56('0x278d')](_0x4f8668['rows'],function(_0x548e8d){const _0x4fd899=_0x4cde56;return _0x3c8d8a()[_0x4fd899('0x2814')](_0x4b3bd7[_0x4fd899('0x1124')],{'id':_0x548e8d['queue_id']});});_0x4f8668[_0x4cde56('0x6aa')]=_0x3c77e4,_0x4f8668[_0x4cde56('0x1a2f')]=_0x3c77e4['length'],_0x3c8d8a()[_0x4cde56('0x9ef')](_0x4b3bd7[_0x4cde56('0xfca')],_0x4f8668?_0x3c8d8a()[_0x4cde56('0x128')](_0x4f8668[_0x4cde56('0x6aa')]?_0x4f8668['rows']:[],'id'):{});})[_0x176e84('0x103c')](function(_0x24eedb){const _0x1ae406=_0x176e84;console[_0x1ae406('0x15aa')](_0x24eedb);})['finally'](function(){const _0x494333=_0x176e84;for(let _0x135880=0x0;_0x135880<_0x4b3bd7[_0x494333('0x16e3')][_0x494333('0x543')];_0x135880+=0x1){delete _0x4b3bd7[_0x494333('0xfca')][_0x4b3bd7[_0x494333('0x16e3')][_0x135880]];}_0x204bc1=![],_0x4b3bd7[_0x494333('0x16e3')]=[],_0x254802(),_0x4d9bf2();});function _0x4d9bf2(){const _0x483b36=_0x176e84,_0x40a921=(_0x4b3bd7['queryChannels'][_0x483b36('0x182e')]-0x1)*_0x4b3bd7[_0x483b36('0x15f6')][_0x483b36('0x3e')];_0x4b3bd7['paginatedInteractions']=_0x3c8d8a()[_0x483b36('0x1d16')](_0x4b3bd7[_0x483b36('0xfca')],[_0x483b36('0xd5b')],[_0x483b36('0x231d')]),_0x4b3bd7[_0x483b36('0x1594')]=_0x3c8d8a()[_0x483b36('0xf69')](_0x4b3bd7[_0x483b36('0xfb8')],_0x40a921)['slice'](0x0,_0x4b3bd7[_0x483b36('0x15f6')][_0x483b36('0x3e')]);}function _0x31ef39(_0x5e4998){const _0x121c4c=_0x176e84;_0x4b3bd7[_0x121c4c('0x2015')]=_0x5e4998[_0x121c4c('0x1a2f')]?_0x5e4998['count']:0x0,_0x4b3bd7['whatsappQueues']=_0x5e4998?_0x3c8d8a()[_0x121c4c('0x128')](_0x5e4998[_0x121c4c('0x6aa')]?_0x5e4998[_0x121c4c('0x6aa')]:[],'id'):{},_0x3df496();}function _0x254802(){const _0x284ef8=_0x176e84;_0x4b3bd7[_0x284ef8('0xc49')][_0x284ef8('0x17f0')]=(_0x4b3bd7[_0x284ef8('0xc49')][_0x284ef8('0x182e')]-0x1)*_0x4b3bd7['query']['limit'],_0x4b3bd7[_0x284ef8('0x2219')]=_0x4b31cb[_0x284ef8('0x166f')][_0x284ef8('0x115e')](_0x4b3bd7[_0x284ef8('0xc49')],_0x31ef39)['$promise'];}let _0x4d30d9=!![],_0x1d1d52=0x1;_0x4e33e8[_0x176e84('0x1bdb')](_0x176e84('0x5b8'),function(_0x2cbd00,_0x50c6d1){const _0x179811=_0x176e84;_0x4d30d9?_0xaeca44(function(){_0x4d30d9=![];}):(!_0x50c6d1&&(_0x1d1d52=_0x4b3bd7['query'][_0x179811('0x182e')]),_0x2cbd00!==_0x50c6d1&&(_0x4b3bd7['query'][_0x179811('0x182e')]=0x1),!_0x2cbd00&&(_0x4b3bd7['query'][_0x179811('0x182e')]=_0x1d1d52),_0x4b3bd7[_0x179811('0x7a9')]());});function _0xa23ccb(_0x47fc3c){const _0x3b72aa=_0x176e84;return _0x3c8d8a()[_0x3b72aa('0x2361')](_0x47fc3c);}function _0x3df496(){const _0x3a7118=_0x176e84;_0x3c8d8a()[_0x3a7118('0x33d')](_0x4b3bd7[_0x3a7118('0xbbf')],function(_0x47753c,_0x16a342){const _0x26e06c=_0x3a7118;_0x4b3bd7['rpcWhatsappQueues'][_0x16a342]&&(_0x4b3bd7[_0x26e06c('0xbbf')][_0x16a342][_0x26e06c('0x1b68')]=_0x4b3bd7['rpcWhatsappQueues'][_0x16a342][_0x26e06c('0x1b68')]||0x0);});}function _0x48fdf1(_0x57b485){const _0x4e665e=_0x176e84;_0x4b3bd7[_0x4e665e('0xbbf')][_0x57b485['id']]&&(_0x4b3bd7[_0x4e665e('0x1a0d')][_0x57b485['id']]&&(_0x3c8d8a()[_0x4e665e('0x9ef')](_0x4b3bd7[_0x4e665e('0x1a0d')][_0x57b485['id']],_0x3c8d8a()['pick'](_0x57b485,_0x213954)),_0x3c8d8a()[_0x4e665e('0x9ef')](_0x4b3bd7[_0x4e665e('0xbbf')][_0x57b485['id']],_0x3c8d8a()[_0x4e665e('0x2114')](_0x57b485,_0x213954))));}function _0x31db40(_0x2f4db9){const _0x4f75db=_0x176e84;!_0x3c8d8a()[_0x4f75db('0x7d5')](_0x2f4db9)&&(_0x4b3bd7['rpcWhatsappQueues'][_0x2f4db9['id']]=_0x3c8d8a()[_0x4f75db('0x2114')](_0x2f4db9,_0x213954));}function _0x463ed4(_0x6233e6){const _0x189af2=_0x176e84;!_0x3c8d8a()['isNil'](_0x6233e6)&&(_0x4b3bd7[_0x189af2('0x1a0d')][_0x6233e6['id']]&&_0x3c8d8a()['merge'](_0x4b3bd7['rpcWhatsappQueues'][_0x6233e6['id']],_0x3c8d8a()['pick'](_0x6233e6,_0x213954)),_0x4b3bd7[_0x189af2('0xbbf')][_0x6233e6['id']]&&_0x3c8d8a()['merge'](_0x4b3bd7[_0x189af2('0xbbf')][_0x6233e6['id']],_0x3c8d8a()[_0x189af2('0x2114')](_0x6233e6,_0x213954)));}function _0x179009(_0x421738){const _0x5aff5a=_0x176e84;!_0x3c8d8a()[_0x5aff5a('0x7d5')](_0x421738)&&(delete _0x4b3bd7['rpcWhatsappQueues'][_0x421738['id']],delete _0x4b3bd7[_0x5aff5a('0xbbf')][_0x421738['id']]);}function _0x315f89(_0x13f04c){const _0x467d73=_0x176e84;_0x3c8d8a()[_0x467d73('0x2f1')](_0x13f04c['UserId'])===_0x1e2515['getCurrentUser']()['id']&&_0x4b3bd7['getWhatsappQueues']();}function _0x22ea47(_0x1e6d93){const _0x30de3d=_0x176e84;_0x3c8d8a()[_0x30de3d('0x2f1')](_0x1e6d93[_0x30de3d('0x181c')])===_0x1e2515['getCurrentUser']()['id']&&_0x4b3bd7[_0x30de3d('0x7a9')]();}function _0x31e3df(_0xb3af9f){const _0x3d79e1=_0x176e84;_0x4b3bd7[_0x3d79e1('0xbbf')][_0xb3af9f['queue_id']]&&(_0x4b3bd7['rpcWhatsappQueuesWaitingInteractions'][_0xb3af9f['id']]=_0xb3af9f,_0x4d9bf2());}function _0x2da2b3(_0x201efc){const _0x160f96=_0x176e84;delete _0x4b3bd7['rpcWhatsappQueuesWaitingInteractions'][_0x201efc['id']],_0x204bc1&&_0x4b3bd7[_0x160f96('0x16e3')][_0x160f96('0x18bb')](_0x201efc['id']),_0x4d9bf2();}function _0x2d3e7d(_0x2a57d4){const _0x249955=_0x176e84;switch(_0x2a57d4){case _0x249955('0x8c5'):return _0x249955('0x10c8');case _0x249955('0x108a'):return'teal-bg';case _0x249955('0x1a8f'):return'orange-bg';case'whatsapp':return _0x249955('0x1794');case _0x249955('0xab2'):return _0x249955('0x1ec4');case _0x249955('0x16d'):return _0x249955('0x1746');default:return'white-bg';}}_0x4e33e8[_0x176e84('0xbf6')]('$destroy',function(){const _0x2f09ce=_0x176e84;_0x34faa6[_0x2f09ce('0x251c')](_0x2f09ce('0xa28')),_0x34faa6['removeAllListeners'](_0x2f09ce('0x2760')),_0x34faa6[_0x2f09ce('0x251c')](_0x2f09ce('0x1836')),_0x34faa6[_0x2f09ce('0x251c')](_0x2f09ce('0x2b6')),_0x34faa6[_0x2f09ce('0x251c')]('userWhatsappQueue:save'),_0x34faa6[_0x2f09ce('0x251c')](_0x2f09ce('0x169a')),_0x34faa6['removeAllListeners']('whatsapp_queue_waiting_interaction:save'),_0x34faa6[_0x2f09ce('0x251c')](_0x2f09ce('0x1a26'));});}const _0x1b6a7b=_0x3f77c4;_0x435696['$inject']=[_0x566993('0x66f'),'$timeout','$mdDialog',_0x566993('0x1b82'),_0x566993('0x1d31'),_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x2fc'),'toasty',_0x566993('0x2b7')];function _0x435696(_0x42daad,_0x208c12,_0x7a2f81,_0x1d0a31,_0x9e1edc,_0x4c8b27,_0x234705,_0x1c0f9d,_0x43420f,_0x3f2ea9,_0x30c560){const _0x10f3cd=_0x566993,_0x299e5a=this;_0x299e5a['user']=_0x1c0f9d[_0x10f3cd('0x14d4')](),_0x299e5a[_0x10f3cd('0x1a29')]={},_0x299e5a['setting']={},_0x299e5a[_0x10f3cd('0x22ac')]={'count':0x0,'rows':[]},_0x299e5a['faxInteractions']={'count':0x0,'rows':[]},_0x299e5a[_0x10f3cd('0xc49')]={'includeAll':!![],'sort':_0x10f3cd('0x1769'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x299e5a[_0x10f3cd('0x2706')]={'fields':[{'name':'Id','column':'id','type':_0x10f3cd('0x1d81')},{'name':'Contact','column':'Contact','type':_0x10f3cd('0xe92'),'options':{'searchFields':['firstName',_0x10f3cd('0x1806'),_0x10f3cd('0x28e')],'route':{'model':_0x10f3cd('0x1197'),'action':_0x10f3cd('0x1d97'),'params':{'fields':_0x10f3cd('0x1cf0'),'Contact':_0x10f3cd('0xdd7'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x10f3cd('0x10be')]}},{'name':_0x10f3cd('0x176f'),'column':'body','type':_0x10f3cd('0x86e'),'options':{'excludedOperators':[_0x10f3cd('0xc0c'),'$ne']}},{'name':_0x10f3cd('0xef8'),'column':'closed','type':_0x10f3cd('0xc65'),'values':[{'id':0x0,'translate':_0x10f3cd('0x163c')},{'id':0x1,'translate':_0x10f3cd('0x1389')}],'options':{'excludedOperators':['$ne']}},{'name':_0x10f3cd('0x1547'),'column':'User','type':_0x10f3cd('0xe92'),'options':{'table':'i','route':{'model':_0x10f3cd('0x166f'),'action':_0x10f3cd('0x1d97'),'params':{'role':_0x10f3cd('0x7b0'),'fields':_0x10f3cd('0x112d'),'nolimit':!![]}},'searchFields':[_0x10f3cd('0x572'),_0x10f3cd('0x10ad')],'extraOperators':[_0x10f3cd('0x2694')],'excludedOperators':[_0x10f3cd('0x10be')]}},{'name':_0x10f3cd('0x1b91'),'column':_0x10f3cd('0xcba'),'type':'multiselect','options':{'route':{'model':_0x10f3cd('0x166f'),'action':_0x10f3cd('0x2655'),'params':{'id':_0x299e5a[_0x10f3cd('0x166f')]['id'],'nolimit':!![]}}}},{'name':_0x10f3cd('0xc38'),'column':_0x10f3cd('0x460'),'type':'multiselect','options':{'route':{'model':_0x10f3cd('0x23b4'),'action':_0x10f3cd('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':[_0x10f3cd('0x2232')]}},{'name':_0x10f3cd('0x1406'),'column':_0x10f3cd('0xda8'),'type':'date','options':{'excludedOperators':['$ne']}},{'name':_0x10f3cd('0x247a'),'column':_0x10f3cd('0x25e9'),'type':_0x10f3cd('0xc65'),'values':[{'id':0x1,'translate':_0x10f3cd('0x1170')},{'id':0x0,'translate':_0x10f3cd('0x1015')}],'options':{'excludedOperators':[_0x10f3cd('0x10be')]}}]},_0x299e5a[_0x10f3cd('0x1c9a')]=_0x10f3cd('0x1f29'),_0x299e5a['onInit']=_0x26b952,_0x299e5a[_0x10f3cd('0xdfe')]=_0x4a78bf,_0x299e5a[_0x10f3cd('0xf46')]=_0x43386a,_0x299e5a['showFaxInteraction']=_0x4abd97,_0x299e5a[_0x10f3cd('0x1cb')]=_0x1f30e6,_0x299e5a['disposeInteraction']=_0x2c2b90,_0x299e5a[_0x10f3cd('0x150f')]=_0x3817cf,_0x299e5a[_0x10f3cd('0x25e3')]=_0x4fe274,_0x299e5a['getFaxAccountLabel']=_0x2281c2,_0x299e5a['composeFaxInteraction']=_0x323e5e,_0x299e5a[_0x10f3cd('0x159d')]=_0x3fb8eb,_0x299e5a[_0x10f3cd('0x1691')]=_0x1dfb82,_0x299e5a[_0x10f3cd('0x6f1')]=_0x18a900;function _0x26b952(_0x3774e9,_0x5e4df2){const _0x3ce7e8=_0x10f3cd;return _0x299e5a[_0x3ce7e8('0x1a29')]=_0x3774e9,_0x299e5a['setting']=_0x5e4df2,_0x234705[_0x3ce7e8('0x166f')][_0x3ce7e8('0x1d97')+_0x3c8d8a()[_0x3ce7e8('0x5ba')](_0x3ce7e8('0x17f2'))]({'id':_0x299e5a[_0x3ce7e8('0x166f')]['id'],'nolimit':!![]})['$promise'][_0x3ce7e8('0x173b')](function(_0x470fff){const _0x2576b9=_0x3ce7e8;return _0x299e5a[_0x2576b9('0x17f2')]=_0x470fff||{'count':0x0,'rows':[]},_0x234705[_0x2576b9('0x23b4')][_0x2576b9('0x1d97')]()[_0x2576b9('0x1964')];})['then'](function(_0x36be88){_0x299e5a['tags']=_0x36be88||{'count':0x0,'rows':[]};})[_0x3ce7e8('0x173b')](function(){const _0x409b6=_0x3ce7e8;_0x299e5a[_0x409b6('0x485')]=_0x447125();})['catch'](function(_0x2f6948){console['error'](_0x2f6948);})['finally'](function(){const _0x1bfaab=_0x3ce7e8;let _0x255205=_0x9e1edc[_0x1bfaab('0x1937')][_0x1bfaab('0x1949')](_0x1bfaab('0xd0f')+_0x299e5a[_0x1bfaab('0x166f')]['id']);if(_0x255205)try{_0x255205=JSON[_0x1bfaab('0x1d5e')](_0x255205);if(_0x255205[_0x1bfaab('0xc49')]){_0x299e5a[_0x1bfaab('0xc49')]=_0x3c8d8a()[_0x1bfaab('0x9ef')](_0x299e5a[_0x1bfaab('0xc49')],_0x255205[_0x1bfaab('0xc49')]);if(_0x3c8d8a()[_0x1bfaab('0x1a56')](_0x299e5a[_0x1bfaab('0x17f2')][_0x1bfaab('0x6aa')]))_0x299e5a[_0x1bfaab('0xc49')][_0x1bfaab('0xcba')]=[];else _0x3c8d8a()[_0x1bfaab('0x1a56')](_0x299e5a['query']['FaxAccountId'])&&(_0x299e5a[_0x1bfaab('0xc49')][_0x1bfaab('0xcba')]=_0x3c8d8a()(_0x299e5a[_0x1bfaab('0x17f2')][_0x1bfaab('0x6aa')])['map']('id')[_0x1bfaab('0x1f6c')]()[_0x1bfaab('0xa7b')]());_0x299e5a[_0x1bfaab('0xc49')][_0x1bfaab('0xfbe')]&&_0x299e5a['query']['sort'][_0x1bfaab('0x2087')](_0x1bfaab('0x1642'))>=0x0&&(_0x299e5a[_0x1bfaab('0xc49')]=_0x3c8d8a()[_0x1bfaab('0x2797')](_0x299e5a[_0x1bfaab('0xc49')],'sort')),_0x299e5a[_0x1bfaab('0xc49')][_0x1bfaab('0x1dec')]=!![],_0x299e5a[_0x1bfaab('0x82f')]=_0x299e5a[_0x1bfaab('0xc49')][_0x1bfaab('0x278d')]?!![]:![];}}catch(_0x57943e){console[_0x1bfaab('0x15aa')](_0x57943e);}else{const _0x2d797e={'$gte':_0x156524()()[_0x1bfaab('0x2145')](_0x1bfaab('0x70b'))[_0x1bfaab('0xaf5')](0x0,!![])['format'](),'$lte':_0x156524()()['endOf'](_0x1bfaab('0x70b'))[_0x1bfaab('0xaf5')](0x0,!![])[_0x1bfaab('0xddc')]()},_0x355923={'FaxAccountId':_0x3c8d8a()[_0x1bfaab('0x8a2')](_0x299e5a['faxAccounts'][_0x1bfaab('0x6aa')],'id'),'createdAt':_0x2d797e};_0x299e5a[_0x1bfaab('0xc49')]=_0x3c8d8a()[_0x1bfaab('0x9ef')](_0x299e5a[_0x1bfaab('0xc49')],_0x355923);}_0x43420f['on'](_0x1bfaab('0x5a6'),_0xe76f69),_0x43420f['on'](_0x1bfaab('0x52'),_0xe76f69),_0x43420f['on']('faxInteractionTags:save',_0x2dc37a),_0x43420f['on']('faxMessage:save',_0x394a74),_0x43420f['on'](_0x1bfaab('0x66d'),_0x394a74),_0x43420f['on'](_0x1bfaab('0x7be'),_0x433c72),_0x43420f['on'](_0x1bfaab('0x26b8'),_0x6ed89),_0x43386a(_0x299e5a[_0x1bfaab('0xc49')][_0x1bfaab('0x182e')]);});}function _0x447125(){const _0x2b5f48=_0x10f3cd;return[{'name':_0x2b5f48('0x1406'),'key':'createdAt','type':_0x2b5f48('0x22b6'),'label':_0x2b5f48('0xa98')},{'name':_0x2b5f48('0x2634'),'key':'read','type':_0x2b5f48('0xc65'),'label':_0x2b5f48('0x1881'),'customOptions':[{'value':0x0,'translate':_0x2b5f48('0x1015')},{'value':0x1,'translate':_0x2b5f48('0x1170')},{'value':null,'translate':_0x2b5f48('0x47a')}]},{'name':_0x2b5f48('0xef8'),'key':_0x2b5f48('0x1636'),'type':_0x2b5f48('0xc65'),'label':_0x2b5f48('0x1647'),'customOptions':[{'value':0x0,'translate':_0x2b5f48('0x163c')},{'value':0x1,'translate':_0x2b5f48('0x1389')},{'value':null,'translate':_0x2b5f48('0x47a')}]},{'name':_0x2b5f48('0x1b91'),'key':_0x2b5f48('0xcba'),'type':_0x2b5f48('0x1c68'),'label':'DASHBOARDS.SELECT_ACCOUNT','options':_0x299e5a['faxAccounts'][_0x2b5f48('0x6aa')],'clearAll':![]},{'name':_0x2b5f48('0x1547'),'key':_0x2b5f48('0x181c'),'type':_0x2b5f48('0xc65'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x299e5a[_0x2b5f48('0x166f')]['id'],'translate':_0x2b5f48('0x2449')},{'value':_0x2b5f48('0x877'),'translate':_0x2b5f48('0x27a8')},{'value':undefined,'translate':_0x2b5f48('0x47a')}]},{'name':_0x2b5f48('0x460'),'key':_0x2b5f48('0x23b4'),'type':_0x2b5f48('0x1c68'),'label':_0x2b5f48('0x1e6f'),'options':_0x299e5a[_0x2b5f48('0x22ac')]['rows'],'placeholder':_0x2b5f48('0x96')}];}function _0x4a78bf(_0x5707b5){const _0x5ed81a=_0x10f3cd;_0x299e5a[_0x5ed81a('0x1e9c')]=![],_0x299e5a[_0x5ed81a('0x1c6b')]=_0x5707b5||{'count':0x0,'rows':[]};for(let _0x23d328=0x0;_0x23d328<_0x299e5a['faxInteractions'][_0x5ed81a('0x6aa')][_0x5ed81a('0x543')];_0x23d328+=0x1){_0x3817cf(_0x299e5a[_0x5ed81a('0x1c6b')]['rows'][_0x23d328]);}}function _0x43386a(_0x3400c4){const _0x461e9b=_0x10f3cd;_0x299e5a[_0x461e9b('0x1e9c')]=!![];!_0x3400c4&&(_0x299e5a[_0x461e9b('0xc49')][_0x461e9b('0x182e')]=0x1);_0x299e5a[_0x461e9b('0xc49')][_0x461e9b('0x17f0')]=(_0x299e5a['query'][_0x461e9b('0x182e')]-0x1)*_0x299e5a[_0x461e9b('0xc49')][_0x461e9b('0x3e')];let _0x9a9aba=_0x9e1edc[_0x461e9b('0x1937')][_0x461e9b('0x1949')]('motion2.home.fax:'+_0x299e5a['user']['id']);_0x9a9aba=_0x9a9aba?JSON[_0x461e9b('0x1d5e')](_0x9a9aba):{},_0x9a9aba[_0x461e9b('0xc49')]=_0x299e5a[_0x461e9b('0xc49')],_0x9e1edc[_0x461e9b('0x1937')][_0x461e9b('0x7e')](_0x461e9b('0xd0f')+_0x299e5a[_0x461e9b('0x166f')]['id'],JSON[_0x461e9b('0x100b')](_0x9a9aba)),_0x299e5a[_0x461e9b('0x2219')]=_0x234705[_0x461e9b('0x2601')]['get'](_0x299e5a[_0x461e9b('0xc49')],_0x4a78bf)[_0x461e9b('0x1964')];}function _0x4abd97(_0x229282,_0x347170){const _0x167b83=_0x10f3cd;_0x42daad[_0x167b83('0x1d44')]['vm'][_0x167b83('0xe63')](_0x167b83('0x16d'),_0x347170);}function _0x1f30e6(_0x1357d0,_0x51730a,_0x1dbc12){const _0x26162c=_0x10f3cd;_0x234705[_0x26162c('0x2601')][_0x26162c('0xfce')]({'id':_0x51730a['id'],'attachments':_0x1dbc12})[_0x26162c('0x1964')][_0x26162c('0x173b')](function(_0xb5f29a){const _0x156b64=_0x26162c,_0x3cdf4e=[_0xb5f29a['buffer']],_0x1fea2e='fax-interaction'+_0x51730a['id']+'.zip',_0x1c75c7=new Blob(_0x3cdf4e,{'type':_0xb5f29a[_0x156b64('0x1810')]}),_0x30ceb0=window[_0x156b64('0x222a')][_0x156b64('0x1258')]('a');_0x30ceb0[_0x156b64('0x11c3')](_0x156b64('0x165c'),URL[_0x156b64('0x1466')](_0x1c75c7)),_0x30ceb0[_0x156b64('0x11c3')](_0x156b64('0xfce'),_0x1fea2e),document['body']['appendChild'](_0x30ceb0),_0x30ceb0[_0x156b64('0x3cb')]();})[_0x26162c('0x103c')](function(_0x26d177){const _0x4417c8=_0x26162c;if(_0x26d177[_0x4417c8('0x1e07')]&&_0x26d177[_0x4417c8('0x1e07')]['errors']&&_0x26d177[_0x4417c8('0x1e07')][_0x4417c8('0x1d4a')][_0x4417c8('0x543')])for(let _0x2ffbc2=0x0;_0x2ffbc2<_0x26d177[_0x4417c8('0x1e07')][_0x4417c8('0x1d4a')][_0x4417c8('0x543')];_0x2ffbc2+=0x1){_0x3f2ea9[_0x4417c8('0x15aa')]({'title':_0x26d177[_0x4417c8('0x1e07')]['errors'][_0x2ffbc2][_0x4417c8('0x1810')],'msg':_0x26d177[_0x4417c8('0x1e07')][_0x4417c8('0x1d4a')][_0x2ffbc2][_0x4417c8('0x67f')]});}else _0x3f2ea9[_0x4417c8('0x15aa')]({'title':_0x26d177[_0x4417c8('0x276f')]?_0x4417c8('0x137')+_0x26d177[_0x4417c8('0x276f')]+_0x4417c8('0x160c')+_0x26d177['statusText']:'downloadFaxInteraction','msg':_0x26d177[_0x4417c8('0x1e07')]?JSON[_0x4417c8('0x100b')](_0x26d177['data'][_0x4417c8('0x67f')]):_0x26d177[_0x4417c8('0x1b75')]()});});}function _0x2c2b90(_0x4ffcd0,_0xd00439){const _0x2f328b=_0x10f3cd,_0xf1c0ca=_0x299e5a[_0x2f328b('0x166f')][_0x2f328b('0x67c')]||_0x299e5a[_0x2f328b('0x166f')][_0x2f328b('0x988')]||_0x299e5a[_0x2f328b('0x166f')]['mailPause']||_0x299e5a[_0x2f328b('0x166f')]['openchannelPause']||_0x299e5a[_0x2f328b('0x166f')]['faxPause'],_0x3ce38b=!_0xd00439[_0x2f328b('0x1b91')][_0x2f328b('0x130f')];_0x7a2f81['show']({'controller':_0x2f328b('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular['element'](_0x1d0a31['body']),'clickOutsideToClose':_0x3ce38b,'escapeToClose':_0x3ce38b,'onRemoving':function(){const _0x36c202=_0x2f328b;_0x299e5a[_0x36c202('0x166f')]&&_0xd00439['Account'][_0x36c202('0x130f')]&&!_0xf1c0ca&&_0x234705[_0x36c202('0x166f')][_0x36c202('0x9da')]({'id':_0x299e5a[_0x36c202('0x166f')]['id']})[_0x36c202('0x1964')][_0x36c202('0x103c')](function(_0x266f56){const _0x11d736=_0x36c202;console[_0x11d736('0x15aa')](_0x266f56);});},'locals':{'user':_0x299e5a[_0x2f328b('0x166f')],'channel':_0x2f328b('0x16d'),'interaction':_0xd00439}});}function _0x3817cf(_0x3ca075){const _0x4cf28e=_0x10f3cd;_0x3ca075['Contact']?(_0x3ca075[_0x4cf28e('0x98d')]=(_0x3ca075['Contact'][_0x4cf28e('0x1e50')]||'')+'\x20'+(_0x3ca075[_0x4cf28e('0x1f70')][_0x4cf28e('0x1806')]||''),_0x3ca075[_0x4cf28e('0x2521')]=_0x3ca075['Contact'][_0x4cf28e('0x16d')]):_0x3ca075[_0x4cf28e('0x98d')]=_0x4c8b27[_0x4cf28e('0x1467')](_0x4cf28e('0x172b'));}function _0x4fe274(_0xb285b4){const _0x51de0c=_0x10f3cd;if(_0xb285b4[_0x51de0c('0x181c')])return _0xb285b4[_0x51de0c('0x181c')]===_0x299e5a['user']['id']?_0x4c8b27['instant']('DASHBOARDS.ME'):_0xb285b4['Owner'][_0x51de0c('0x572')]+'\x20<'+_0xb285b4['Owner'][_0x51de0c('0x138c')]+'>';return _0x4c8b27[_0x51de0c('0x1467')]('DASHBOARDS.NOT_ASSIGNED');}function _0x2281c2(_0x59ba4b){const _0x41cf57=_0x10f3cd;if(_0x59ba4b[_0x41cf57('0x1b91')])return _0x59ba4b[_0x41cf57('0x1b91')][_0x41cf57('0x237a')];return _0x4c8b27[_0x41cf57('0x1467')]('DASHBOARDS.UNKNOWN');}function _0x323e5e(_0x469efc,_0x57c1cf){const _0x5286c7=_0x10f3cd;_0x7a2f81[_0x5286c7('0x1cb7')]({'controller':_0x5286c7('0x27d6'),'controllerAs':'vm','templateUrl':_0x6ad3a0,'parent':angular[_0x5286c7('0xb6d')](_0x1d0a31[_0x5286c7('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x57c1cf,'message':{},'type':_0x5286c7('0x195f'),'interaction':{}},'fullscreen':!![]})['then'](function(_0x3e417a){const _0x208174=_0x5286c7;if(_0x3e417a){if(_0x3e417a[_0x208174('0x67f')]&&_0x3e417a[_0x208174('0x67f')][_0x208174('0x51')]){const _0x459ceb={'channel':_0x208174('0x16d'),'account':_0x57c1cf,'message':_0x3e417a['message'],'contact':_0x3e417a[_0x208174('0x82b')]};_0x30c560[_0x208174('0x623')](_0x459ceb);}else{const _0x1144b2=_0x3e417a;return _0x234705[_0x208174('0xe12')]['send']({'id':_0x57c1cf['id']},_0x1144b2)[_0x208174('0x1964')]['then'](function(_0x583ca4){const _0x5382fa=_0x208174;_0x3f2ea9[_0x5382fa('0xdfe')]({'title':'Message\x20properly\x20sent!','msg':_0x5382fa('0x1950')}),_0x42daad[_0x5382fa('0x1d44')]['vm']['addInteractionTab'](_0x5382fa('0x16d'),_0x583ca4);})[_0x208174('0x103c')](function(_0x2188fc){const _0x14a729=_0x208174;if(_0x2188fc['data']&&_0x2188fc['data'][_0x14a729('0x1d4a')]&&_0x2188fc[_0x14a729('0x1e07')][_0x14a729('0x1d4a')][_0x14a729('0x543')])for(let _0x4e2fe4=0x0;_0x4e2fe4<_0x2188fc['data'][_0x14a729('0x1d4a')]['length'];_0x4e2fe4++){_0x3f2ea9[_0x14a729('0x15aa')]({'title':_0x2188fc[_0x14a729('0x1e07')][_0x14a729('0x1d4a')][_0x4e2fe4][_0x14a729('0x1810')],'msg':_0x2188fc['data'][_0x14a729('0x1d4a')][_0x4e2fe4][_0x14a729('0x67f')]});}else _0x3f2ea9[_0x14a729('0x15aa')]({'title':_0x14a729('0xce5'),'msg':_0x2188fc[_0x14a729('0x1e07')]?JSON['stringify'](_0x2188fc[_0x14a729('0x1e07')]):_0x2188fc[_0x14a729('0x67f')]||_0x2188fc['toString']()});});}}});}function _0x433c72(_0x88e88c){const _0x4eeb14=_0x10f3cd;let _0x384544;const _0x278195=_0x3c8d8a()[_0x4eeb14('0x18ab')](_0x299e5a[_0x4eeb14('0x1c6b')][_0x4eeb14('0x6aa')],{'id':_0x88e88c[_0x4eeb14('0x455')]});_0x278195&&_0x278195[_0x4eeb14('0x1999')]&&(_0x384544=_0x3c8d8a()[_0x4eeb14('0x18ab')](_0x278195[_0x4eeb14('0x1999')],{'id':_0x88e88c[_0x4eeb14('0x181c')]}),!_0x384544&&_0x278195[_0x4eeb14('0x1999')]['push']({'id':_0x88e88c['UserId']}));}function _0x6ed89(_0x23ef14){const _0x56570e=_0x10f3cd,_0x5dbed5=_0x3c8d8a()[_0x56570e('0x18ab')](_0x299e5a[_0x56570e('0x1c6b')]['rows'],{'id':_0x23ef14['FaxInteractionId']});_0x5dbed5&&_0x5dbed5[_0x56570e('0x1999')]&&_0x3c8d8a()[_0x56570e('0x1a8b')](_0x5dbed5['Users'],{'id':_0x23ef14[_0x56570e('0x181c')]});}function _0xe76f69(_0xe5bc85){const _0x427660=_0x10f3cd;if(_0xe5bc85){const _0x62d191=_0x3c8d8a()[_0x427660('0x18ab')](_0x299e5a[_0x427660('0x1c6b')]['rows'],{'id':_0xe5bc85['id']});if(_0x62d191){_0x62d191[_0x427660('0x1999')]=[];_0xe5bc85[_0x427660('0x1636')]&&(_0x62d191[_0x427660('0x25e9')]=0x0);if(_0x299e5a['query'][_0x427660('0xfbe')]){const _0x46f68d=_0x3c8d8a()[_0x427660('0x17b2')](_0x299e5a['query']['sort'],'-')?_0x427660('0x231d'):_0x427660('0xcc1');_0x299e5a[_0x427660('0x1c6b')]['rows']=_0x3c8d8a()['orderBy'](_0x299e5a[_0x427660('0x1c6b')][_0x427660('0x6aa')],_0x3c8d8a()['trimStart'](_0x299e5a[_0x427660('0xc49')][_0x427660('0xfbe')],'-'),_0x46f68d);}_0x3c8d8a()['merge'](_0x62d191,_0x3c8d8a()[_0x427660('0x2114')](_0xe5bc85,_0x3c8d8a()[_0x427660('0x1d3e')](_0x62d191)));}else _0x43386a(_0x299e5a[_0x427660('0xc49')][_0x427660('0x182e')]);}}function _0x2dc37a(_0x56fa9a){const _0x59046e=_0x10f3cd;if(_0x56fa9a){const _0x37f599=_0x3c8d8a()[_0x59046e('0x18ab')](_0x299e5a[_0x59046e('0x1c6b')][_0x59046e('0x6aa')],{'id':_0x56fa9a['id']});_0x37f599&&(_0x37f599[_0x59046e('0xc38')]=_0x56fa9a[_0x59046e('0x22ac')]||[],_0x3c8d8a()[_0x59046e('0x9ef')](_0x37f599,_0x3c8d8a()[_0x59046e('0x2114')](_0x56fa9a,_0x3c8d8a()['keys'](_0x37f599))));}}function _0x394a74(_0x591a44){const _0x759c79=_0x10f3cd;if(_0x591a44&&!_0x591a44[_0x759c79('0x27ed')]){const _0x2b6cb8=_0x3c8d8a()[_0x759c79('0x18ab')](_0x299e5a['faxInteractions']['rows'],{'id':_0x591a44['FaxInteractionId']});if(_0x2b6cb8){const _0x25aaa2=_0x3c8d8a()[_0x759c79('0x18ab')](_0x2b6cb8[_0x759c79('0x2634')],{'id':_0x591a44['id']});_0x25aaa2?_0x3c8d8a()['merge'](_0x25aaa2,_0x3c8d8a()['pick'](_0x591a44,_0x3c8d8a()[_0x759c79('0x1d3e')](_0x25aaa2))):(_0x3c8d8a()[_0x759c79('0x7d5')](_0x2b6cb8['Messages'])&&(_0x2b6cb8[_0x759c79('0x2634')]={'count':0x0}),!_0x591a44[_0x759c79('0x69b')]&&(_0x2b6cb8['Messages']['count']+=0x1));}}}function _0x3fb8eb(){_0x299e5a['isSearchBarVisible']=![];}function _0x1dfb82(){const _0x4eee80=_0x10f3cd;_0x299e5a[_0x4eee80('0x82f')]=!![];}function _0x18a900(){const _0x2d6a0=_0x10f3cd;_0x299e5a[_0x2d6a0('0x82f')]=![],_0x7a2f81['show']({'controller':_0x2d6a0('0x1c5b'),'controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular['element'](_0x1d0a31[_0x2d6a0('0x1a5')]),'clickOutsideToClose':![],'locals':{'color':_0x299e5a[_0x2d6a0('0x1c9a')],'fields':_0x299e5a[_0x2d6a0('0x2706')]['fields'],'storagePath':_0x2d6a0('0xd73')},'fullscreen':!![]})[_0x2d6a0('0x173b')](function(_0x597619){const _0x3ea2d3=_0x2d6a0;_0x299e5a[_0x3ea2d3('0xc49')][_0x3ea2d3('0x23e7')]=_0x597619===![]?undefined:_0x597619;if(_0x299e5a[_0x3ea2d3('0xc49')][_0x3ea2d3('0x23e7')]||_0x597619===![])_0x43386a();})['catch'](function(_0x24f7fb){const _0x2e49f0=_0x2d6a0;_0x3f2ea9[_0x2e49f0('0x15aa')]({'title':_0x2e49f0('0x280c'),'msg':_0x24f7fb[_0x2e49f0('0x1e07')]?JSON[_0x2e49f0('0x100b')](_0x24f7fb['data'][_0x2e49f0('0x67f')]):_0x24f7fb[_0x2e49f0('0x1b75')]()});});}let _0x21f5dc=!![],_0x1d4853=0x1;_0x42daad[_0x10f3cd('0x1bdb')](_0x10f3cd('0x157b'),function(_0x5c767e,_0x226092){const _0x5af5f1=_0x10f3cd;_0x21f5dc?_0x208c12(function(){_0x21f5dc=![];}):(!_0x226092&&(_0x1d4853=_0x299e5a[_0x5af5f1('0xc49')][_0x5af5f1('0x182e')]),_0x5c767e!==_0x226092&&(_0x299e5a[_0x5af5f1('0xc49')][_0x5af5f1('0x182e')]=0x1),!_0x5c767e&&(_0x299e5a[_0x5af5f1('0xc49')][_0x5af5f1('0x182e')]=_0x1d4853),_0x43386a(_0x299e5a[_0x5af5f1('0xc49')]['page']));}),_0x42daad['$on'](_0x10f3cd('0x16d2'),function(){const _0x5ca51b=_0x10f3cd;_0x43420f[_0x5ca51b('0x251c')](_0x5ca51b('0xc5c')),_0x43420f[_0x5ca51b('0x251c')](_0x5ca51b('0x66d')),_0x43420f[_0x5ca51b('0x251c')](_0x5ca51b('0x5a6')),_0x43420f['removeAllListeners'](_0x5ca51b('0x1ad3')),_0x43420f[_0x5ca51b('0x251c')](_0x5ca51b('0x52')),_0x43420f[_0x5ca51b('0x251c')](_0x5ca51b('0x7be')),_0x43420f[_0x5ca51b('0x251c')]('user_has_fax_interactions:remove');});}const _0x411af1=_0x435696;_0x5e953b[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$document',_0x566993('0x1d31'),_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x2b7')];function _0x5e953b(_0x28ae2a,_0x310417,_0x2864de,_0x4e4307,_0x51761a,_0x4e7775,_0x7006a7,_0x39cc18,_0x2a0ad0,_0x2411ee,_0x105e20){const _0x3a2c58=_0x566993,_0x2e3dbf=this;_0x2e3dbf[_0x3a2c58('0x166f')]=_0x39cc18[_0x3a2c58('0x14d4')](),_0x2e3dbf[_0x3a2c58('0x1a29')]={},_0x2e3dbf['setting']={},_0x2e3dbf[_0x3a2c58('0x22ac')]={'count':0x0,'rows':[]},_0x2e3dbf[_0x3a2c58('0x1d7b')]={'count':0x0,'rows':[]},_0x2e3dbf[_0x3a2c58('0xc49')]={'includeAll':!![],'sort':_0x3a2c58('0x1769'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x2e3dbf[_0x3a2c58('0x2706')]={'fields':[{'name':'Id','column':'id','type':'number'},{'name':'Contact','column':_0x3a2c58('0x1f70'),'type':_0x3a2c58('0xe92'),'options':{'searchFields':['firstName',_0x3a2c58('0x1806'),_0x3a2c58('0x28e')],'route':{'model':_0x3a2c58('0x1197'),'action':_0x3a2c58('0x1d97'),'params':{'fields':_0x3a2c58('0x1cf0'),'Contact':_0x3a2c58('0xdd7'),'nolimit':!![]}},'extraOperators':[_0x3a2c58('0x2694')],'excludedOperators':[_0x3a2c58('0x10be')]}},{'name':'Subject','column':'subject','type':_0x3a2c58('0x86e'),'options':{'excludedOperators':['$eq','$ne']}},{'name':_0x3a2c58('0x176f'),'column':_0x3a2c58('0x1405'),'type':'text','options':{'excludedOperators':[_0x3a2c58('0xc0c'),_0x3a2c58('0x10be')]}},{'name':'Status','column':_0x3a2c58('0x1636'),'type':_0x3a2c58('0xc65'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x3a2c58('0x10be')]}},{'name':_0x3a2c58('0x89d'),'column':_0x3a2c58('0x1cae'),'type':_0x3a2c58('0x1c68'),'options':{'field':'name','route':{'model':_0x3a2c58('0x1f8e'),'action':_0x3a2c58('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x3a2c58('0x1547'),'column':_0x3a2c58('0x2265'),'type':_0x3a2c58('0xe92'),'options':{'table':'i','route':{'model':_0x3a2c58('0x166f'),'action':_0x3a2c58('0x1d97'),'params':{'role':_0x3a2c58('0x7b0'),'fields':_0x3a2c58('0x112d'),'nolimit':!![]}},'searchFields':[_0x3a2c58('0x572'),_0x3a2c58('0x10ad')],'extraOperators':[_0x3a2c58('0x2694')],'excludedOperators':[_0x3a2c58('0x10be')]}},{'name':_0x3a2c58('0x1b91'),'column':_0x3a2c58('0x559'),'type':_0x3a2c58('0x1c68'),'options':{'route':{'model':_0x3a2c58('0x166f'),'action':'getMailAccounts','params':{'id':_0x2e3dbf['user']['id'],'nolimit':!![]}}}},{'name':_0x3a2c58('0xc38'),'column':_0x3a2c58('0x460'),'type':_0x3a2c58('0x1c68'),'options':{'route':{'model':_0x3a2c58('0x23b4'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x3a2c58('0x2232')]}},{'name':_0x3a2c58('0x1406'),'column':'createdAt','type':_0x3a2c58('0x22b6'),'options':{'excludedOperators':[_0x3a2c58('0x10be')]}},{'name':_0x3a2c58('0x247a'),'column':'unreadMessages','type':_0x3a2c58('0xc65'),'values':[{'id':0x1,'translate':_0x3a2c58('0x1170')},{'id':0x0,'translate':_0x3a2c58('0x1015')}],'options':{'excludedOperators':['$ne']}}]},_0x2e3dbf['sectionColor']=_0x3a2c58('0x1dfa'),_0x2e3dbf[_0x3a2c58('0x2535')]=_0x4667bb,_0x2e3dbf[_0x3a2c58('0xdfe')]=_0x213fbe,_0x2e3dbf['getMailInteractions']=_0x4fb15a,_0x2e3dbf[_0x3a2c58('0x10a7')]=_0x1191de,_0x2e3dbf[_0x3a2c58('0x1051')]=_0x11b545,_0x2e3dbf['disposeInteraction']=_0x489bd6,_0x2e3dbf[_0x3a2c58('0x150f')]=_0x4f1019,_0x2e3dbf[_0x3a2c58('0x25e3')]=_0x24dcf0,_0x2e3dbf[_0x3a2c58('0x511')]=_0x3c2772,_0x2e3dbf[_0x3a2c58('0x13c8')]=_0x342b64,_0x2e3dbf[_0x3a2c58('0x159d')]=_0x1db8b,_0x2e3dbf[_0x3a2c58('0x1691')]=_0x2a9f1b,_0x2e3dbf[_0x3a2c58('0x6f1')]=_0x204516,_0x28ae2a[_0x3a2c58('0xbf6')](_0x3a2c58('0xb67'),_0x111df3);function _0x4667bb(_0x5502f6,_0x3789ab){const _0x383d75=_0x3a2c58;return _0x2e3dbf[_0x383d75('0x1a29')]=_0x5502f6,_0x2e3dbf[_0x383d75('0x251')]=_0x3789ab,_0x7006a7[_0x383d75('0x166f')][_0x383d75('0x1d97')+_0x3c8d8a()['upperFirst'](_0x383d75('0x2632'))]({'id':_0x2e3dbf['user']['id'],'nolimit':!![]})['$promise']['then'](function(_0x1a9404){const _0xcb2d71=_0x383d75;return _0x2e3dbf[_0xcb2d71('0x2632')]=_0x1a9404||{'count':0x0,'rows':[]},_0x7006a7[_0xcb2d71('0x23b4')][_0xcb2d71('0x1d97')]()[_0xcb2d71('0x1964')];})['then'](function(_0x51189){_0x2e3dbf['tags']=_0x51189||{'count':0x0,'rows':[]};})[_0x383d75('0x173b')](function(){const _0x2e931d=_0x383d75;return _0x7006a7[_0x2e931d('0x1f8e')][_0x2e931d('0x1d97')]({'nolimit':!![]})[_0x2e931d('0x1964')];})[_0x383d75('0x173b')](function(_0x42986a){_0x2e3dbf['subStatuses']=_0x42986a||{'count':0x0,'rows':[]};})[_0x383d75('0x173b')](function(){const _0x5a3098=_0x383d75;_0x2e3dbf[_0x5a3098('0x485')]=_0x404610();})[_0x383d75('0x103c')](function(_0x1b7a19){const _0x3d511d=_0x383d75;console[_0x3d511d('0x15aa')](_0x1b7a19);})[_0x383d75('0xf25')](function(){const _0x14dc5a=_0x383d75;let _0x3a3370=_0x51761a[_0x14dc5a('0x1937')][_0x14dc5a('0x1949')](_0x14dc5a('0x564')+_0x2e3dbf[_0x14dc5a('0x166f')]['id']);if(_0x3a3370)try{_0x3a3370=JSON[_0x14dc5a('0x1d5e')](_0x3a3370);if(_0x3a3370['query']){_0x2e3dbf[_0x14dc5a('0xc49')]=_0x3c8d8a()['merge'](_0x2e3dbf[_0x14dc5a('0xc49')],_0x3a3370[_0x14dc5a('0xc49')]);if(_0x3c8d8a()[_0x14dc5a('0x1a56')](_0x2e3dbf[_0x14dc5a('0x2632')]['rows']))_0x2e3dbf[_0x14dc5a('0xc49')]['MailAccountId']=[];else _0x3c8d8a()[_0x14dc5a('0x1a56')](_0x2e3dbf[_0x14dc5a('0xc49')][_0x14dc5a('0x559')])&&(_0x2e3dbf[_0x14dc5a('0xc49')][_0x14dc5a('0x559')]=_0x3c8d8a()(_0x2e3dbf[_0x14dc5a('0x2632')][_0x14dc5a('0x6aa')])[_0x14dc5a('0x8a2')]('id')[_0x14dc5a('0x1f6c')]()[_0x14dc5a('0xa7b')]());_0x2e3dbf['query'][_0x14dc5a('0xfbe')]&&_0x2e3dbf[_0x14dc5a('0xc49')][_0x14dc5a('0xfbe')][_0x14dc5a('0x2087')](_0x14dc5a('0x1642'))>=0x0&&(_0x2e3dbf[_0x14dc5a('0xc49')]=_0x3c8d8a()['omit'](_0x2e3dbf['query'],_0x14dc5a('0xfbe'))),_0x2e3dbf[_0x14dc5a('0xc49')][_0x14dc5a('0x1dec')]=!![],_0x2e3dbf[_0x14dc5a('0x82f')]=_0x2e3dbf[_0x14dc5a('0xc49')]['filter']?!![]:![];}}catch(_0x434415){console[_0x14dc5a('0x15aa')](_0x434415);}else{const _0x592d79={'$gte':_0x156524()()['startOf'](_0x14dc5a('0x70b'))[_0x14dc5a('0xaf5')](0x0,!![])[_0x14dc5a('0xddc')](),'$lte':_0x156524()()['endOf']('month')[_0x14dc5a('0xaf5')](0x0,!![])[_0x14dc5a('0xddc')]()},_0x19401f={'MailAccountId':_0x3c8d8a()[_0x14dc5a('0x8a2')](_0x2e3dbf[_0x14dc5a('0x2632')][_0x14dc5a('0x6aa')],'id'),'createdAt':_0x592d79};_0x2e3dbf[_0x14dc5a('0xc49')]=_0x3c8d8a()['merge'](_0x2e3dbf['query'],_0x19401f);}_0x2a0ad0['on'](_0x14dc5a('0x130b'),_0x2bf356),_0x2a0ad0['on'](_0x14dc5a('0x528'),_0x2bf356),_0x2a0ad0['on'](_0x14dc5a('0x1fff'),_0x1c6ca0),_0x2a0ad0['on'](_0x14dc5a('0x74f'),_0x1e4c3c),_0x2a0ad0['on'](_0x14dc5a('0x1b1c'),_0x1e4c3c),_0x2a0ad0['on']('user_has_mail_interactions:save',_0x5b21fa),_0x2a0ad0['on']('user_has_mail_interactions:remove',_0x5e43f8),_0x4fb15a(_0x2e3dbf[_0x14dc5a('0xc49')]['page']);});}function _0x404610(){const _0xab097c=_0x3a2c58;return[{'name':_0xab097c('0x1406'),'key':_0xab097c('0xda8'),'type':_0xab097c('0x22b6'),'label':_0xab097c('0xa98')},{'name':_0xab097c('0x2634'),'key':_0xab097c('0x69b'),'type':_0xab097c('0xc65'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0xab097c('0x1015')},{'value':0x1,'translate':_0xab097c('0x1170')},{'value':null,'translate':_0xab097c('0x47a')}]},{'name':_0xab097c('0xef8'),'key':_0xab097c('0x1636'),'type':_0xab097c('0xc65'),'label':_0xab097c('0x1647'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0xab097c('0x47a')}]},{'name':'Substatus','key':_0xab097c('0x1cae'),'type':_0xab097c('0xc65'),'label':_0xab097c('0x2289'),'options':_0x2e3dbf['subStatuses'][_0xab097c('0x6aa')],'customOptions':[{'value':'null','translate':_0xab097c('0x1a31')},{'value':undefined,'translate':'DASHBOARDS.ALL'}],'ngValue':_0xab097c('0x10ad'),'ngIf':_0xab097c('0x137e')},{'name':_0xab097c('0x1b91'),'key':_0xab097c('0x559'),'type':_0xab097c('0x1c68'),'label':_0xab097c('0x7b4'),'options':_0x2e3dbf[_0xab097c('0x2632')][_0xab097c('0x6aa')],'clearAll':![]},{'name':'Agent','key':_0xab097c('0x181c'),'type':_0xab097c('0xc65'),'label':_0xab097c('0x956'),'customOptions':[{'value':_0x2e3dbf[_0xab097c('0x166f')]['id'],'translate':_0xab097c('0x2449')},{'value':'null','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0xab097c('0x23b4'),'type':_0xab097c('0x1c68'),'label':'DASHBOARDS.SELECT_TAG','options':_0x2e3dbf[_0xab097c('0x22ac')][_0xab097c('0x6aa')],'placeholder':_0xab097c('0x96')}];}function _0x213fbe(_0x2465f0){const _0x36667e=_0x3a2c58;_0x2e3dbf[_0x36667e('0x1e9c')]=![],_0x2e3dbf[_0x36667e('0x1d7b')]=_0x2465f0||{'count':0x0,'rows':[]};for(let _0x34873d=0x0;_0x34873d<_0x2e3dbf['mailInteractions'][_0x36667e('0x6aa')]['length'];_0x34873d+=0x1){_0x4f1019(_0x2e3dbf[_0x36667e('0x1d7b')][_0x36667e('0x6aa')][_0x34873d]);}}function _0x4fb15a(_0x2ecd23){const _0x68b0b7=_0x3a2c58;_0x2e3dbf[_0x68b0b7('0x1e9c')]=!![];!_0x2ecd23&&(_0x2e3dbf[_0x68b0b7('0xc49')][_0x68b0b7('0x182e')]=0x1);_0x2e3dbf['query']['offset']=(_0x2e3dbf['query'][_0x68b0b7('0x182e')]-0x1)*_0x2e3dbf[_0x68b0b7('0xc49')][_0x68b0b7('0x3e')];let _0x21a100=_0x51761a[_0x68b0b7('0x1937')][_0x68b0b7('0x1949')](_0x68b0b7('0x564')+_0x2e3dbf[_0x68b0b7('0x166f')]['id']);_0x21a100=_0x21a100?JSON[_0x68b0b7('0x1d5e')](_0x21a100):{},_0x21a100[_0x68b0b7('0xc49')]=_0x2e3dbf['query'],_0x51761a[_0x68b0b7('0x1937')][_0x68b0b7('0x7e')](_0x68b0b7('0x564')+_0x2e3dbf[_0x68b0b7('0x166f')]['id'],JSON[_0x68b0b7('0x100b')](_0x21a100)),_0x2e3dbf[_0x68b0b7('0x2219')]=_0x7006a7[_0x68b0b7('0x763')]['get'](_0x2e3dbf['query'],_0x213fbe)[_0x68b0b7('0x1964')];}function _0x1191de(_0x43446e,_0x4b386f){const _0x17a6f4=_0x3a2c58;_0x28ae2a[_0x17a6f4('0x1d44')]['vm'][_0x17a6f4('0xe63')]('mail',_0x4b386f);}function _0x11b545(_0x2f385a,_0xcedbc3,_0x14ea49){const _0x3e440c=_0x3a2c58;_0x7006a7[_0x3e440c('0x763')][_0x3e440c('0xfce')]({'id':_0xcedbc3['id'],'attachments':_0x14ea49})['$promise'][_0x3e440c('0x173b')](function(_0x5497b8){const _0xbd0000=_0x3e440c,_0x34669e=[_0x5497b8[_0xbd0000('0x1c22')]],_0x518751=_0xbd0000('0x98')+_0xcedbc3['id']+'.zip',_0x95fa67=new Blob(_0x34669e,{'type':_0x5497b8['type']}),_0x30a00d=window['document'][_0xbd0000('0x1258')]('a');_0x30a00d[_0xbd0000('0x11c3')]('href',URL['createObjectURL'](_0x95fa67)),_0x30a00d[_0xbd0000('0x11c3')](_0xbd0000('0xfce'),_0x518751),document[_0xbd0000('0x1a5')]['appendChild'](_0x30a00d),_0x30a00d[_0xbd0000('0x3cb')]();})[_0x3e440c('0x103c')](function(_0x511928){const _0x381138=_0x3e440c;if(_0x511928[_0x381138('0x1e07')]&&_0x511928[_0x381138('0x1e07')][_0x381138('0x1d4a')]&&_0x511928['data'][_0x381138('0x1d4a')][_0x381138('0x543')])for(let _0x2e6437=0x0;_0x2e6437<_0x511928[_0x381138('0x1e07')]['errors']['length'];_0x2e6437+=0x1){_0x2411ee[_0x381138('0x15aa')]({'title':_0x511928[_0x381138('0x1e07')]['errors'][_0x2e6437][_0x381138('0x1810')],'msg':_0x511928['data'][_0x381138('0x1d4a')][_0x2e6437][_0x381138('0x67f')]});}else _0x2411ee[_0x381138('0x15aa')]({'title':_0x511928[_0x381138('0x276f')]?_0x381138('0x137')+_0x511928[_0x381138('0x276f')]+_0x381138('0x160c')+_0x511928['statusText']:_0x381138('0x1051'),'msg':_0x511928[_0x381138('0x1e07')]?JSON[_0x381138('0x100b')](_0x511928[_0x381138('0x1e07')][_0x381138('0x67f')]):_0x511928[_0x381138('0x1b75')]()});});}function _0x489bd6(_0x1b50a9,_0x5ca603){const _0x2f0428=_0x3a2c58,_0x3a49bf=_0x2e3dbf[_0x2f0428('0x166f')][_0x2f0428('0x67c')]||_0x2e3dbf['user'][_0x2f0428('0x988')]||_0x2e3dbf[_0x2f0428('0x166f')]['mailPause']||_0x2e3dbf['user'][_0x2f0428('0x106')]||_0x2e3dbf[_0x2f0428('0x166f')][_0x2f0428('0x13eb')],_0x1aa65c=!_0x5ca603[_0x2f0428('0x1b91')][_0x2f0428('0x130f')];_0x2864de[_0x2f0428('0x1cb7')]({'controller':_0x2f0428('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular[_0x2f0428('0xb6d')](_0x4e4307['body']),'clickOutsideToClose':_0x1aa65c,'escapeToClose':_0x1aa65c,'onRemoving':function(){const _0x3e67e3=_0x2f0428;_0x2e3dbf[_0x3e67e3('0x166f')]&&_0x5ca603[_0x3e67e3('0x1b91')][_0x3e67e3('0x130f')]&&!_0x3a49bf&&_0x7006a7[_0x3e67e3('0x166f')][_0x3e67e3('0x9da')]({'id':_0x2e3dbf[_0x3e67e3('0x166f')]['id']})[_0x3e67e3('0x1964')][_0x3e67e3('0x103c')](function(_0xcbca17){const _0x49f46a=_0x3e67e3;console[_0x49f46a('0x15aa')](_0xcbca17);});},'locals':{'user':_0x2e3dbf['user'],'channel':'mail','interaction':_0x5ca603}});}function _0x4f1019(_0x279ad2){const _0x4e1d9e=_0x3a2c58;if(!_0x3c8d8a()[_0x4e1d9e('0x1a56')](_0x279ad2['to'])&&_0x279ad2['Account']&&!_0x3c8d8a()['includes'](_0x279ad2['to'],_0x279ad2[_0x4e1d9e('0x1b91')][_0x4e1d9e('0x28e')]))_0x279ad2['contactName']=_0x279ad2['to'][_0x4e1d9e('0x43a')]('\x20<')[0x0],_0x279ad2[_0x4e1d9e('0x2521')]=_0x279ad2['to'][_0x4e1d9e('0x43a')]('<')[_0x4e1d9e('0x362')]()[_0x4e1d9e('0x43a')]('>')[0x0];else _0x279ad2[_0x4e1d9e('0x1f70')]?(_0x279ad2['contactName']=(_0x279ad2[_0x4e1d9e('0x1f70')][_0x4e1d9e('0x1e50')]||'')+'\x20'+(_0x279ad2[_0x4e1d9e('0x1f70')][_0x4e1d9e('0x1806')]||''),_0x279ad2[_0x4e1d9e('0x2521')]=_0x279ad2[_0x4e1d9e('0x1f70')]['email']||''):_0x279ad2[_0x4e1d9e('0x98d')]=_0x4e7775['instant']('DASHBOARDS.UNKNOWN');}function _0x24dcf0(_0x363a23){const _0x47873b=_0x3a2c58;if(_0x363a23[_0x47873b('0x181c')])return _0x363a23[_0x47873b('0x181c')]===_0x2e3dbf[_0x47873b('0x166f')]['id']?_0x4e7775[_0x47873b('0x1467')](_0x47873b('0x2449')):_0x363a23['Owner'][_0x47873b('0x572')]+'\x20<'+_0x363a23['Owner'][_0x47873b('0x138c')]+'>';return _0x4e7775['instant']('DASHBOARDS.NOT_ASSIGNED');}function _0x3c2772(_0x280fd6){const _0x406cd1=_0x3a2c58;if(_0x280fd6[_0x406cd1('0x1b91')])return _0x280fd6['Account']['key'];return _0x4e7775['instant'](_0x406cd1('0x172b'));}function _0x111df3(_0x3d56b1,_0x57c0cd){const _0x257ddf=_0x3a2c58;_0x57c0cd[_0x257ddf('0x8d6')]?(_0x57c0cd[_0x257ddf('0x8d6')][_0x257ddf('0x2418')]=!![],_0x1191de(null,_0x57c0cd[_0x257ddf('0x8d6')])):_0x2864de[_0x257ddf('0x1cb7')]({'controller':_0x257ddf('0x3be'),'controllerAs':'vm','templateUrl':_0x322c80,'parent':angular[_0x257ddf('0xb6d')](_0x4e4307[_0x257ddf('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x57c0cd[_0x257ddf('0xde4')],'message':_0x57c0cd[_0x257ddf('0x732')],'type':_0x257ddf('0x892'),'interaction':{}},'fullscreen':!![]})[_0x257ddf('0x173b')](function(_0x3a5992){const _0x7854db=_0x257ddf;if(_0x3a5992){if(_0x3a5992[_0x7854db('0x67f')]&&_0x3a5992[_0x7854db('0x67f')][_0x7854db('0x51')]){const _0xf92eee={'id':_0x57c0cd['id'],'channel':_0x7854db('0x108a'),'account':_0x3a5992[_0x7854db('0xde4')],'message':_0x3a5992[_0x7854db('0x67f')]};_0x105e20['update'](_0xf92eee);}else{const _0x477bfb=_0x3a5992;return _0x7006a7[_0x7854db('0x77b')][_0x7854db('0x482')]({'id':_0x57c0cd[_0x7854db('0xde4')]['id']},_0x477bfb)['$promise']['then'](function(_0x111ff4){const _0x4c9297=_0x7854db;_0x105e20[_0x4c9297('0x1a8b')](_0x57c0cd['id']);if(_0x111ff4&&_0x111ff4['Messages']&&_0x111ff4['Messages'][_0x4c9297('0x543')]){if(_0x477bfb[_0x4c9297('0x178b')]&&_0x477bfb[_0x4c9297('0x178b')][_0x4c9297('0x543')])for(let _0x39923c=0x0;_0x39923c<_0x477bfb['attachments'][_0x4c9297('0x543')];_0x39923c+=0x1){_0x7006a7[_0x4c9297('0x1d9f')]['update']({'id':_0x477bfb[_0x4c9297('0x178b')][_0x39923c]['id']},{'MailMessageId':_0x3c8d8a()[_0x4c9297('0x1e85')](_0x111ff4[_0x4c9297('0x2634')])['id']});}_0x2411ee[_0x4c9297('0xdfe')]({'title':_0x4c9297('0x2370'),'msg':_0x4c9297('0x1950')});if(_0x111ff4[_0x4c9297('0x1636')]){_0x111ff4['disposition']=null;const _0x288614=!_0x57c0cd[_0x4c9297('0xde4')][_0x4c9297('0x130f')],_0x7060ec=_0x2e3dbf[_0x4c9297('0x166f')]['voicePause']||_0x2e3dbf['user'][_0x4c9297('0x988')]||_0x2e3dbf[_0x4c9297('0x166f')][_0x4c9297('0xf41')]||_0x2e3dbf[_0x4c9297('0x166f')][_0x4c9297('0x106')]||_0x2e3dbf[_0x4c9297('0x166f')][_0x4c9297('0x13eb')];_0x2864de[_0x4c9297('0x1cb7')]({'controller':_0x4c9297('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular[_0x4c9297('0xb6d')](_0x4e4307[_0x4c9297('0x1a5')]),'onRemoving':function(){const _0x2532f9=_0x4c9297;_0x2e3dbf[_0x2532f9('0x166f')]&&_0x57c0cd['account'][_0x2532f9('0x130f')]&&!_0x7060ec&&_0x7006a7[_0x2532f9('0x166f')][_0x2532f9('0x9da')]({'id':_0x2e3dbf[_0x2532f9('0x166f')]['id']})[_0x2532f9('0x1964')][_0x2532f9('0x103c')](function(_0x12fffb){const _0x33401f=_0x2532f9;console[_0x33401f('0x15aa')](_0x12fffb);});},'clickOutsideToClose':_0x288614,'escapeToClose':_0x288614,'locals':{'user':_0x2e3dbf[_0x4c9297('0x166f')],'channel':_0x4c9297('0x108a'),'interaction':_0x111ff4}});}else _0x28ae2a[_0x4c9297('0x1d44')]['vm'][_0x4c9297('0xe63')](_0x4c9297('0x108a'),_0x111ff4);}})[_0x7854db('0x103c')](function(_0x4c63c3){const _0x498b60=_0x7854db;if(_0x4c63c3[_0x498b60('0x1e07')]&&_0x4c63c3['data'][_0x498b60('0x1d4a')]&&_0x4c63c3[_0x498b60('0x1e07')]['errors'][_0x498b60('0x543')])for(let _0x32aba7=0x0;_0x32aba7<_0x4c63c3['data'][_0x498b60('0x1d4a')][_0x498b60('0x543')];_0x32aba7++){_0x2411ee[_0x498b60('0x15aa')]({'title':_0x4c63c3['data'][_0x498b60('0x1d4a')][_0x32aba7][_0x498b60('0x1810')],'msg':_0x4c63c3[_0x498b60('0x1e07')][_0x498b60('0x1d4a')][_0x32aba7][_0x498b60('0x67f')]});}else _0x2411ee[_0x498b60('0x15aa')]({'title':_0x4c63c3[_0x498b60('0x276f')]?_0x498b60('0x137')+_0x4c63c3[_0x498b60('0x276f')]+_0x498b60('0x160c')+_0x4c63c3[_0x498b60('0x2696')]:_0x498b60('0xfb7'),'msg':_0x4c63c3[_0x498b60('0x1e07')]?JSON[_0x498b60('0x100b')](_0x4c63c3[_0x498b60('0x1e07')]['message']):_0x4c63c3[_0x498b60('0x67f')]||_0x4c63c3[_0x498b60('0x1b75')]()});});}}});}function _0x342b64(_0x4eb3dd,_0x3821a1){const _0x31bec6=_0x3a2c58;_0x2864de[_0x31bec6('0x1cb7')]({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x322c80,'parent':angular[_0x31bec6('0xb6d')](_0x4e4307[_0x31bec6('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x3821a1,'message':{},'type':_0x31bec6('0x195f'),'interaction':{}},'fullscreen':!![]})['then'](function(_0x1e1a02){const _0x39b957=_0x31bec6;if(_0x1e1a02){if(_0x1e1a02[_0x39b957('0x67f')]&&_0x1e1a02[_0x39b957('0x67f')][_0x39b957('0x51')]){const _0x4cffd0={'channel':_0x39b957('0x108a'),'account':_0x3821a1,'message':_0x1e1a02[_0x39b957('0x67f')],'contact':_0x1e1a02[_0x39b957('0x82b')]};_0x105e20[_0x39b957('0x623')](_0x4cffd0);}else{const _0x3ee711=_0x1e1a02;return _0x7006a7[_0x39b957('0x77b')][_0x39b957('0x482')]({'id':_0x3821a1['id']},_0x3ee711)[_0x39b957('0x1964')][_0x39b957('0x173b')](function(_0x1ada70){const _0x63fe10=_0x39b957;if(_0x1ada70&&_0x1ada70[_0x63fe10('0x2634')]&&_0x1ada70['Messages'][_0x63fe10('0x543')]){if(_0x3ee711[_0x63fe10('0x178b')]&&_0x3ee711['attachments'][_0x63fe10('0x543')])for(let _0x4d0739=0x0;_0x4d0739<_0x3ee711[_0x63fe10('0x178b')][_0x63fe10('0x543')];_0x4d0739+=0x1){_0x7006a7[_0x63fe10('0x1d9f')][_0x63fe10('0x1842')]({'id':_0x3ee711[_0x63fe10('0x178b')][_0x4d0739]['id']},{'MailMessageId':_0x3c8d8a()[_0x63fe10('0x1e85')](_0x1ada70[_0x63fe10('0x2634')])['id']});}_0x2411ee[_0x63fe10('0xdfe')]({'title':_0x63fe10('0x2370'),'msg':_0x63fe10('0x1950')});if(_0x1ada70['closed']){_0x1ada70[_0x63fe10('0x2766')]=null;const _0x2ae593=!_0x3821a1[_0x63fe10('0x130f')],_0x466fb0=_0x2e3dbf['user'][_0x63fe10('0x67c')]||_0x2e3dbf[_0x63fe10('0x166f')][_0x63fe10('0x988')]||_0x2e3dbf['user'][_0x63fe10('0xf41')]||_0x2e3dbf['user'][_0x63fe10('0x106')]||_0x2e3dbf[_0x63fe10('0x166f')][_0x63fe10('0x13eb')];_0x2864de['show']({'controller':_0x63fe10('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular[_0x63fe10('0xb6d')](_0x4e4307[_0x63fe10('0x1a5')]),'onRemoving':function(){const _0x191da3=_0x63fe10;_0x2e3dbf[_0x191da3('0x166f')]&&_0x3821a1[_0x191da3('0x130f')]&&!_0x466fb0&&_0x7006a7[_0x191da3('0x166f')][_0x191da3('0x9da')]({'id':_0x2e3dbf['user']['id']})[_0x191da3('0x1964')][_0x191da3('0x103c')](function(_0x5dd349){const _0xec5430=_0x191da3;console[_0xec5430('0x15aa')](_0x5dd349);});},'clickOutsideToClose':_0x2ae593,'escapeToClose':_0x2ae593,'locals':{'user':_0x2e3dbf['user'],'channel':_0x63fe10('0x108a'),'interaction':_0x1ada70}});}else _0x28ae2a[_0x63fe10('0x1d44')]['vm'][_0x63fe10('0xe63')]('mail',_0x1ada70);}})[_0x39b957('0x103c')](function(_0x498600){const _0x4c7b6c=_0x39b957;if(_0x498600['data']&&_0x498600[_0x4c7b6c('0x1e07')][_0x4c7b6c('0x1d4a')]&&_0x498600['data']['errors'][_0x4c7b6c('0x543')])for(let _0x42b0fa=0x0;_0x42b0fa<_0x498600[_0x4c7b6c('0x1e07')][_0x4c7b6c('0x1d4a')]['length'];_0x42b0fa++){_0x2411ee[_0x4c7b6c('0x15aa')]({'title':_0x498600[_0x4c7b6c('0x1e07')][_0x4c7b6c('0x1d4a')][_0x42b0fa]['type'],'msg':_0x498600[_0x4c7b6c('0x1e07')]['errors'][_0x42b0fa][_0x4c7b6c('0x67f')]});}else _0x2411ee[_0x4c7b6c('0x15aa')]({'title':_0x498600['status']?_0x4c7b6c('0x137')+_0x498600[_0x4c7b6c('0x276f')]+_0x4c7b6c('0x160c')+_0x498600[_0x4c7b6c('0x2696')]:_0x4c7b6c('0xfb7'),'msg':_0x498600['data']?JSON[_0x4c7b6c('0x100b')](_0x498600[_0x4c7b6c('0x1e07')][_0x4c7b6c('0x67f')]):_0x498600[_0x4c7b6c('0x67f')]||_0x498600[_0x4c7b6c('0x1b75')]()});});}}});}function _0x5b21fa(_0x5dd438){const _0x5e9442=_0x3a2c58;let _0x220072;const _0x309fcf=_0x3c8d8a()[_0x5e9442('0x18ab')](_0x2e3dbf[_0x5e9442('0x1d7b')][_0x5e9442('0x6aa')],{'id':_0x5dd438[_0x5e9442('0xe96')]});_0x309fcf&&_0x309fcf[_0x5e9442('0x1999')]&&(_0x220072=_0x3c8d8a()[_0x5e9442('0x18ab')](_0x309fcf['Users'],{'id':_0x5dd438['UserId']}),!_0x220072&&_0x309fcf['Users'][_0x5e9442('0x18bb')]({'id':_0x5dd438['UserId']}));}function _0x5e43f8(_0x352e5a){const _0x446df9=_0x3a2c58,_0x4f062f=_0x3c8d8a()[_0x446df9('0x18ab')](_0x2e3dbf['mailInteractions'][_0x446df9('0x6aa')],{'id':_0x352e5a['MailInteractionId']});_0x4f062f&&_0x4f062f[_0x446df9('0x1999')]&&_0x3c8d8a()[_0x446df9('0x1a8b')](_0x4f062f[_0x446df9('0x1999')],{'id':_0x352e5a[_0x446df9('0x181c')]});}function _0x2bf356(_0x51325d){const _0xbdcae7=_0x3a2c58;if(_0x51325d){const _0xfb760a=_0x3c8d8a()[_0xbdcae7('0x18ab')](_0x2e3dbf['mailInteractions']['rows'],{'id':_0x51325d['id']});if(_0xfb760a){_0xfb760a['Users']=[];_0x51325d[_0xbdcae7('0x1636')]&&(_0xfb760a[_0xbdcae7('0x25e9')]=0x0);if(_0x2e3dbf[_0xbdcae7('0xc49')]['sort']){const _0x73681a=_0x3c8d8a()[_0xbdcae7('0x17b2')](_0x2e3dbf[_0xbdcae7('0xc49')][_0xbdcae7('0xfbe')],'-')?'desc':_0xbdcae7('0xcc1');_0x2e3dbf['mailInteractions']['rows']=_0x3c8d8a()['orderBy'](_0x2e3dbf[_0xbdcae7('0x1d7b')][_0xbdcae7('0x6aa')],_0x3c8d8a()['trimStart'](_0x2e3dbf[_0xbdcae7('0xc49')][_0xbdcae7('0xfbe')],'-'),_0x73681a);}_0x3c8d8a()[_0xbdcae7('0x9ef')](_0xfb760a,_0x3c8d8a()[_0xbdcae7('0x2114')](_0x51325d,_0x3c8d8a()[_0xbdcae7('0x1d3e')](_0xfb760a)));}else _0x4fb15a(_0x2e3dbf[_0xbdcae7('0xc49')]['page']);}}function _0x1c6ca0(_0x46d1f7){const _0x2ea3e2=_0x3a2c58;if(_0x46d1f7){const _0x354170=_0x3c8d8a()[_0x2ea3e2('0x18ab')](_0x2e3dbf[_0x2ea3e2('0x1d7b')][_0x2ea3e2('0x6aa')],{'id':_0x46d1f7['id']});_0x354170&&(_0x354170[_0x2ea3e2('0xc38')]=_0x46d1f7[_0x2ea3e2('0x22ac')]||[],_0x3c8d8a()[_0x2ea3e2('0x9ef')](_0x354170,_0x3c8d8a()['pick'](_0x46d1f7,_0x3c8d8a()['keys'](_0x354170))));}}function _0x1e4c3c(_0x40ed3b){const _0x11984e=_0x3a2c58;if(_0x40ed3b&&!_0x40ed3b[_0x11984e('0x27ed')]){const _0x34e276=_0x3c8d8a()[_0x11984e('0x18ab')](_0x2e3dbf[_0x11984e('0x1d7b')]['rows'],{'id':_0x40ed3b[_0x11984e('0xe96')]});if(_0x34e276){const _0x282e4e=_0x3c8d8a()['find'](_0x34e276[_0x11984e('0x2634')],{'id':_0x40ed3b['id']});_0x282e4e?_0x3c8d8a()[_0x11984e('0x9ef')](_0x282e4e,_0x3c8d8a()[_0x11984e('0x2114')](_0x40ed3b,_0x3c8d8a()['keys'](_0x282e4e))):(_0x3c8d8a()[_0x11984e('0x7d5')](_0x34e276[_0x11984e('0x2634')])&&(_0x34e276[_0x11984e('0x2634')]={'count':0x0}),!_0x40ed3b['read']&&(_0x34e276['Messages'][_0x11984e('0x1a2f')]+=0x1));}}}function _0x1db8b(){const _0x53516b=_0x3a2c58;_0x2e3dbf[_0x53516b('0x82f')]=![];}function _0x2a9f1b(){const _0x222c28=_0x3a2c58;_0x2e3dbf[_0x222c28('0x82f')]=!![];}function _0x204516(){const _0x37b440=_0x3a2c58;_0x2e3dbf[_0x37b440('0x82f')]=![],_0x2864de[_0x37b440('0x1cb7')]({'controller':_0x37b440('0x1c5b'),'controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x37b440('0xb6d')](_0x4e4307[_0x37b440('0x1a5')]),'clickOutsideToClose':![],'locals':{'color':_0x2e3dbf[_0x37b440('0x1c9a')],'fields':_0x2e3dbf[_0x37b440('0x2706')][_0x37b440('0x2340')],'storagePath':_0x37b440('0x20ca')},'fullscreen':!![]})[_0x37b440('0x173b')](function(_0x580ab8){const _0x5aec1a=_0x37b440;_0x2e3dbf[_0x5aec1a('0xc49')]['search']=_0x580ab8===![]?undefined:_0x580ab8;if(_0x2e3dbf['query'][_0x5aec1a('0x23e7')]||_0x580ab8===![])_0x4fb15a();})[_0x37b440('0x103c')](function(_0x3c5b15){const _0x35ce11=_0x37b440;_0x2411ee[_0x35ce11('0x15aa')]({'title':'ERROR','msg':_0x3c5b15['data']?JSON[_0x35ce11('0x100b')](_0x3c5b15[_0x35ce11('0x1e07')]['message']):_0x3c5b15['toString']()});});}let _0x415470=!![],_0x1cd47c=0x1;_0x28ae2a[_0x3a2c58('0x1bdb')](_0x3a2c58('0x157b'),function(_0x1fd0b4,_0xb0f98d){const _0x52a14e=_0x3a2c58;_0x415470?_0x310417(function(){_0x415470=![];}):(!_0xb0f98d&&(_0x1cd47c=_0x2e3dbf[_0x52a14e('0xc49')][_0x52a14e('0x182e')]),_0x1fd0b4!==_0xb0f98d&&(_0x2e3dbf[_0x52a14e('0xc49')][_0x52a14e('0x182e')]=0x1),!_0x1fd0b4&&(_0x2e3dbf[_0x52a14e('0xc49')][_0x52a14e('0x182e')]=_0x1cd47c),_0x4fb15a(_0x2e3dbf[_0x52a14e('0xc49')]['page']));}),_0x28ae2a[_0x3a2c58('0xbf6')](_0x3a2c58('0x16d2'),function(){const _0x1b2786=_0x3a2c58;_0x2a0ad0[_0x1b2786('0x251c')]('mailMessage:save'),_0x2a0ad0[_0x1b2786('0x251c')](_0x1b2786('0x1b1c')),_0x2a0ad0[_0x1b2786('0x251c')]('mailInteraction:save'),_0x2a0ad0[_0x1b2786('0x251c')]('mailInteractionTags:save'),_0x2a0ad0['removeAllListeners'](_0x1b2786('0x528')),_0x2a0ad0[_0x1b2786('0x251c')]('user_has_mail_interactions:save'),_0x2a0ad0[_0x1b2786('0x251c')](_0x1b2786('0x2543'));});}const _0x475007=_0x5e953b;_0x1abbdb[_0x566993('0x17bb')]=['$document','$scope','$timeout',_0x566993('0x1fe5'),'Auth',_0x566993('0xbd4'),_0x566993('0x1d31'),_0x566993('0x1558')];function _0x1abbdb(_0x5b9b41,_0x4205f5,_0x2c630e,_0x1445b6,_0x7e8e56,_0x64d2e7,_0x49ba06,_0x4b03ea){const _0x38c2cc=_0x566993,_0x3c2f85=this;_0x3c2f85[_0x38c2cc('0x155f')]=_0x7e8e56[_0x38c2cc('0x14d4')](),_0x3c2f85[_0x38c2cc('0x9e8')]={},_0x3c2f85[_0x38c2cc('0xd53')]={'count':0x0,'rows':[]},_0x3c2f85[_0x38c2cc('0x22ac')]={'count':0x0,'rows':[]},_0x3c2f85[_0x38c2cc('0xc49')]={'includeAll':!![],'id':_0x3c2f85[_0x38c2cc('0x155f')]['id'],'sort':_0x38c2cc('0x1769'),'limit':0xa,'page':0x1},_0x3c2f85[_0x38c2cc('0x2706')]={'fields':[]},_0x3c2f85[_0x38c2cc('0x1c9a')]=_0x38c2cc('0x191a'),_0x3c2f85['getContacts']=_0x39b1ea,_0x3c2f85[_0x38c2cc('0x22db')]=_0x3262ce,_0x3c2f85[_0x38c2cc('0x2ed')]=_0x2eab02,_0x3c2f85[_0x38c2cc('0xe60')]=_0x927bf2,_0x3c2f85[_0x38c2cc('0x2388')]=_0x2f5da4,_0x3c2f85[_0x38c2cc('0x67a')]=_0x4205f5[_0x38c2cc('0x1d44')]['vm'][_0x38c2cc('0x67a')],_0x3c2f85[_0x38c2cc('0x2535')]=_0x34a57a,_0x3c2f85[_0x38c2cc('0x159d')]=_0x1ab6fb,_0x3c2f85['onSearchBarExpand']=_0x56505c,_0x3c2f85[_0x38c2cc('0x6f1')]=_0x591642;function _0x34a57a(){const _0xf35baf=_0x38c2cc;_0x64d2e7[_0xf35baf('0xbb3')][_0xf35baf('0x1d97')]({'fields':_0xf35baf('0xda4'),'sort':'name','nolimit':!![]})[_0xf35baf('0x1964')]['then'](function(_0x2c9f16){const _0x53816d=_0xf35baf;return _0x3c2f85[_0x53816d('0x9e8')]=_0x2c9f16||{'count':0x0,'rows':[]},_0x3c2f85[_0x53816d('0x2240')]=_0x3c8d8a()[_0x53816d('0x128')](_0x3c2f85[_0x53816d('0x9e8')]['rows'],'id'),_0x64d2e7[_0x53816d('0x23b4')]['get']()[_0x53816d('0x1964')];})[_0xf35baf('0x173b')](function(_0x4978e1){const _0x2c7722=_0xf35baf;_0x3c2f85[_0x2c7722('0x22ac')]=_0x4978e1||{'count':0x0,'rows':[]};})[_0xf35baf('0x173b')](function(){const _0x3922db=_0xf35baf;_0x3c2f85[_0x3922db('0x485')]=_0xca455d();})['catch'](function(_0x1e0445){console['error'](_0x1e0445);})['finally'](function(){const _0x125148=_0xf35baf;let _0x156629=_0x49ba06['localStorage'][_0x125148('0x1949')](_0x125148('0x25ef')+_0x3c2f85[_0x125148('0x155f')]['id']);if(_0x156629)try{_0x156629=JSON[_0x125148('0x1d5e')](_0x156629);if(_0x156629[_0x125148('0xc49')]){_0x3c2f85[_0x125148('0xc49')]=_0x3c8d8a()[_0x125148('0x9ef')](_0x3c2f85[_0x125148('0xc49')],_0x156629[_0x125148('0xc49')]);if(_0x3c8d8a()[_0x125148('0x1a56')](_0x3c2f85['lists'][_0x125148('0x6aa')]))_0x3c2f85[_0x125148('0xc49')][_0x125148('0xef2')]=[];else _0x3c8d8a()[_0x125148('0x1a56')](_0x3c2f85[_0x125148('0xc49')][_0x125148('0xef2')])&&(_0x3c2f85['query'][_0x125148('0xef2')]=_0x3c8d8a()(_0x3c2f85[_0x125148('0x9e8')][_0x125148('0x6aa')])[_0x125148('0x8a2')]('id')[_0x125148('0x1f6c')]()['value']());}}catch(_0x20bc29){console[_0x125148('0x15aa')](_0x20bc29);}else _0x3c2f85[_0x125148('0xc49')][_0x125148('0xef2')]=_0x3c8d8a()['map'](_0x3c2f85[_0x125148('0x9e8')]['rows'],'id');_0x3c2f85[_0x125148('0x82f')]=_0x3c2f85[_0x125148('0xc49')][_0x125148('0x278d')]?!![]:![],_0x39b1ea();});}function _0xca455d(){const _0x4152cb=_0x38c2cc;return[{'name':_0x4152cb('0x6bc'),'key':'ListId','type':'multiselect','label':'CONTACTMANAGER.SELECT_LIST','options':_0x3c2f85['lists'][_0x4152cb('0x6aa')],'clearAll':![]},{'name':_0x4152cb('0x460'),'key':_0x4152cb('0x23b4'),'type':'multiselect','label':'DASHBOARDS.SELECT_TAG','options':_0x3c2f85[_0x4152cb('0x22ac')]['rows'],'placeholder':_0x4152cb('0x96')}];}function _0x3e5162(_0x5b2797){const _0x4c3c1c=_0x38c2cc;_0x3c2f85['searchInProgress']=![],_0x3c2f85[_0x4c3c1c('0xd53')]=_0x5b2797||{'count':0x0,'rows':[]};}function _0x39b1ea(_0x2b2410){const _0x177c7f=_0x38c2cc;_0x3c2f85[_0x177c7f('0x1e9c')]=!![],_0x856a5f();!_0x2b2410&&(_0x3c2f85[_0x177c7f('0xc49')][_0x177c7f('0x182e')]=0x1);_0x3c2f85['query']['offset']=(_0x3c2f85['query'][_0x177c7f('0x182e')]-0x1)*_0x3c2f85[_0x177c7f('0xc49')][_0x177c7f('0x3e')];let _0x445106=_0x49ba06[_0x177c7f('0x1937')]['getItem'](_0x177c7f('0x25ef')+_0x3c2f85[_0x177c7f('0x155f')]['id']);_0x445106=_0x445106?JSON[_0x177c7f('0x1d5e')](_0x445106):{},_0x445106[_0x177c7f('0xc49')]=_0x3c2f85[_0x177c7f('0xc49')],_0x49ba06[_0x177c7f('0x1937')][_0x177c7f('0x7e')]('motion2.home.mycontacts:'+_0x3c2f85[_0x177c7f('0x155f')]['id'],JSON[_0x177c7f('0x100b')](_0x445106));if(_0x3c2f85['query']['search'])_0x3c2f85[_0x177c7f('0x1fbc')]=_0x3c8d8a()[_0x177c7f('0x2797')](_0x3c2f85[_0x177c7f('0xc49')],'id');_0x3c2f85[_0x177c7f('0x2219')]=_0x3c2f85['query'][_0x177c7f('0x23e7')]?_0x64d2e7[_0x177c7f('0x1197')]['get'](_0x3c2f85[_0x177c7f('0x1fbc')],_0x3e5162)[_0x177c7f('0x1964')]:_0x64d2e7['user'][_0x177c7f('0x2641')](_0x3c2f85[_0x177c7f('0xc49')],_0x3e5162)[_0x177c7f('0x1964')];}function _0x2f5da4(_0x18a86e,_0x3f0a3b){const _0x132162=_0x38c2cc;_0x4205f5[_0x132162('0x1d44')]['vm'][_0x132162('0x2716')](_0x3f0a3b);}function _0x3262ce(){_0x39b1ea();}function _0x927bf2(_0x5c8474,_0x364f31){const _0x2d1916=_0x38c2cc;_0x1445b6[_0x2d1916('0x1cb7')]({'controller':_0x2d1916('0x25ba'),'controllerAs':'vm','templateUrl':_0xf36d4e,'parent':angular[_0x2d1916('0xb6d')](_0x5b9b41[_0x2d1916('0x1a5')]),'targetEvent':_0x5c8474,'clickOutsideToClose':!![],'resolve':{'contact':[_0x2d1916('0x2401'),function(_0x3050ae){const _0x2b6c32=_0x2d1916;return _0x3050ae[_0x2b6c32('0x155b')](_0x2b6c32('0x2778'),{'id':_0x364f31['id']});}],'lists':[_0x2d1916('0x2401'),function(_0x3a9722){const _0x1b1169=_0x2d1916;return _0x3a9722[_0x1b1169('0x155b')]('user@getLists',{'id':_0x3c2f85[_0x1b1169('0x155f')]['id'],'fields':_0x1b1169('0xd52')});}]},'locals':{'contacts':_0x3c2f85[_0x2d1916('0xd53')][_0x2d1916('0x6aa')]}});}function _0x2eab02(_0x5ebb8d,_0xd66c1f){const _0x139245=_0x38c2cc;_0x1445b6[_0x139245('0x1cb7')]({'controller':_0x139245('0x1e24'),'controllerAs':'vm','templateUrl':_0x373d52,'parent':angular[_0x139245('0xb6d')](_0x5b9b41[_0x139245('0x1a5')]),'targetEvent':_0x5ebb8d,'clickOutsideToClose':!![],'resolve':{'contact':[_0x139245('0x2401'),function(_0xc2ad8a){const _0x14659f=_0x139245;return _0xc2ad8a[_0x14659f('0x155b')]('cmContact@get',{'id':_0xd66c1f['id']});}],'lists':[_0x139245('0x2401'),function(_0x244fe0){const _0x5dde5d=_0x139245;return _0x244fe0['resolve'](_0x5dde5d('0x152e'),{'id':_0x3c2f85[_0x5dde5d('0x155f')]['id'],'fields':_0x5dde5d('0xd52')});}]},'locals':{'contacts':_0x3c2f85[_0x139245('0xd53')]['rows']}});}function _0x1ab6fb(){const _0x1fa3f9=_0x38c2cc;_0x3c2f85[_0x1fa3f9('0x82f')]=![];}function _0x56505c(){_0x3c2f85['isSearchBarVisible']=!![];}function _0x856a5f(){const _0x42a0a2=_0x38c2cc;return _0x64d2e7['cmContact']['describe']({'id':_0x3c2f85[_0x42a0a2('0xc49')][_0x42a0a2('0xef2')]})['$promise'][_0x42a0a2('0x173b')](function(_0x20881e){const _0x4ae213=_0x42a0a2;return _0x3c8d8a()(_0x20881e[_0x4ae213('0xf1f')]())[_0x4ae213('0x2797')](_0x4ae213('0x181c'))[_0x4ae213('0xcaf')]()[_0x4ae213('0x8a2')](function(_0x36a36d){return _0x33df51(_0x36a36d);})['value']();})[_0x42a0a2('0x173b')](function(_0x141855){const _0x162c40=_0x42a0a2;_0x3c2f85[_0x162c40('0x2706')][_0x162c40('0x2340')]=_0x141855;const _0x2c20ae={'name':_0x162c40('0xc38'),'column':'Tag','type':_0x162c40('0x1c68'),'options':{'route':{'model':_0x162c40('0x23b4'),'action':_0x162c40('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':[_0x162c40('0x2232')]}};let _0x4016be=_0x3c8d8a()['findIndex'](_0x141855,function(_0x1dcbb9){const _0x16a834=_0x162c40;return _0x3c8d8a()[_0x16a834('0x17b2')](_0x1dcbb9[_0x16a834('0x260d')],_0x16a834('0x205b'));})||_0x141855[_0x162c40('0x543')]-0x1;if(_0x4016be<0x0)_0x4016be=_0x141855[_0x162c40('0x543')];_0x3c2f85[_0x162c40('0x2706')][_0x162c40('0x2340')][_0x162c40('0x553')](_0x4016be,0x0,_0x2c20ae);})[_0x42a0a2('0x103c')](function(_0x4753bf){const _0x328964=_0x42a0a2;_0x4b03ea['error']({'title':_0x4753bf['status']?_0x328964('0x137')+_0x4753bf[_0x328964('0x276f')]+_0x328964('0x160c')+_0x4753bf['statusText']:'DESCRIBE_CM_CONTACTS','msg':_0x4753bf[_0x328964('0x1e07')]?JSON[_0x328964('0x100b')](_0x4753bf[_0x328964('0x1e07')][_0x328964('0x67f')]):_0x4753bf[_0x328964('0x1b75')]()});});}function _0x33df51(_0x2a3a12){const _0x329536=_0x38c2cc,_0x381a20={'name':_0x3c8d8a()[_0x329536('0x10e')](_0x2a3a12[_0x329536('0x1fc3')]),'column':_0x2a3a12[_0x329536('0xf4d')],'options':{}};if(_0x2a3a12[_0x329536('0xbb4')])switch(_0x2a3a12[_0x329536('0xbb4')][_0x329536('0x1810')]){case _0x329536('0x86e'):_0x381a20[_0x329536('0x1810')]='text';break;case _0x329536('0xc65'):_0x381a20[_0x329536('0x1810')]='multiselect',_0x381a20['values']=_0x3c8d8a()[_0x329536('0x8a2')](JSON['parse'](_0x2a3a12['custom']['values']),function(_0x1d6baf,_0x4c1080){const _0x78a146=_0x329536;return{'id':_0x4c1080,'name':_0x1d6baf[_0x78a146('0xa7b')],'value':_0x1d6baf[_0x78a146('0xa7b')]};}),_0x381a20['options'][_0x329536('0x81d')]='name';break;case _0x329536('0x22f1'):_0x381a20[_0x329536('0x1810')]=_0x329536('0xc65'),_0x381a20[_0x329536('0xcaf')]=[{'id':0x1,'translate':_0x329536('0x1d24')},{'id':0x0,'translate':_0x329536('0x1b00')}],_0x381a20[_0x329536('0x2010')][_0x329536('0xdf5')]=[_0x329536('0x10be')];break;case'number':_0x381a20[_0x329536('0x1810')]='number';break;case _0x329536('0x11b0'):_0x381a20['type']=_0x329536('0x22b6');break;}else switch(_0x2a3a12[_0x329536('0xf4d')]){case _0x329536('0x1182'):_0x381a20[_0x329536('0x1810')]=_0x329536('0x22b6');break;case'CompanyId':_0x381a20[_0x329536('0x10ad')]=_0x329536('0x25df'),_0x381a20['type']=_0x329536('0xe92'),_0x381a20[_0x329536('0x2010')][_0x329536('0x26e9')]={'model':_0x329536('0x1904'),'action':_0x329536('0x1d97'),'params':{'fields':_0x329536('0xd52'),'nolimit':!![]}},_0x381a20[_0x329536('0x2010')][_0x329536('0x1ba3')]=[_0x329536('0x10ad')],_0x381a20[_0x329536('0x2010')][_0x329536('0xdf5')]=[_0x329536('0x10be')];break;case _0x329536('0xef2'):_0x381a20['name']=_0x329536('0x6bc'),_0x381a20[_0x329536('0x1810')]=_0x329536('0xe92'),_0x381a20[_0x329536('0x2010')][_0x329536('0x26e9')]={'model':_0x329536('0x166f'),'action':_0x329536('0xe91'),'params':{'id':_0x3c2f85['currentUser']['id'],'fields':_0x329536('0xd52'),'nolimit':!![]}},_0x381a20[_0x329536('0x2010')][_0x329536('0x1ba3')]=['name'],_0x381a20[_0x329536('0x2010')][_0x329536('0xdf5')]=[_0x329536('0x10be')];break;default:if(_0x3c8d8a()[_0x329536('0x2814')](_0x2a3a12[_0x329536('0x1810')][_0x329536('0x1e68')](),'int'))_0x381a20[_0x329536('0x1810')]='number';else _0x3c8d8a()[_0x329536('0x2814')](_0x2a3a12[_0x329536('0x1810')]['toLowerCase'](),_0x329536('0x22b6'))?_0x381a20[_0x329536('0x1810')]=_0x329536('0x22b6'):_0x381a20[_0x329536('0x1810')]=_0x329536('0x86e');break;}return _0x381a20;}function _0x591642(){const _0x2007a1=_0x38c2cc;_0x3c2f85[_0x2007a1('0x82f')]=![],_0x1445b6['show']({'controller':_0x2007a1('0x1c5b'),'controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x2007a1('0xb6d')](_0x5b9b41[_0x2007a1('0x1a5')]),'clickOutsideToClose':![],'locals':{'color':_0x3c2f85[_0x2007a1('0x1c9a')],'fields':_0x3c2f85[_0x2007a1('0x2706')][_0x2007a1('0x2340')],'storagePath':_0x2007a1('0x1743')},'fullscreen':!![]})['then'](function(_0x11c8e6){const _0x52cae3=_0x2007a1;_0x3c2f85[_0x52cae3('0xc49')][_0x52cae3('0x23e7')]=_0x11c8e6===![]?undefined:_0x11c8e6;if(_0x11c8e6===![])_0x39b1ea();else _0x3c2f85[_0x52cae3('0xc49')]['search']&&(_0x3c2f85[_0x52cae3('0xc49')]['search']+=_0x52cae3('0x43b')+_0x3c2f85[_0x52cae3('0x155f')]['id']+']',_0x39b1ea());})[_0x2007a1('0x103c')](function(_0x1b3862){const _0x39d8e4=_0x2007a1;_0x4b03ea[_0x39d8e4('0x15aa')]({'title':_0x39d8e4('0x280c'),'msg':_0x1b3862['data']?JSON[_0x39d8e4('0x100b')](_0x1b3862[_0x39d8e4('0x1e07')][_0x39d8e4('0x67f')]):_0x1b3862['toString']()});});}let _0x10b877=!![],_0xc3d0e0=0x1;_0x4205f5['$watch'](_0x38c2cc('0x157b'),function(_0x2f1528,_0x3bb7fe){const _0x1d640d=_0x38c2cc;_0x10b877?_0x2c630e(function(){_0x10b877=![];}):(!_0x3bb7fe&&(_0xc3d0e0=_0x3c2f85['query'][_0x1d640d('0x182e')]),_0x2f1528!==_0x3bb7fe&&(_0x3c2f85[_0x1d640d('0xc49')]['page']=0x1),!_0x2f1528&&(_0x3c2f85[_0x1d640d('0xc49')][_0x1d640d('0x182e')]=_0xc3d0e0),_0x39b1ea());});}const _0x3ab0ed=_0x1abbdb;_0x5c48dc['$inject']=['$scope',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1d31'),_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x2fc'),'toasty',_0x566993('0x2b7')];function _0x5c48dc(_0x31a922,_0x1bbde2,_0x199394,_0x5ecf9e,_0x17cf93,_0x36cd63,_0x3158ff,_0x194eb2,_0x590d7e,_0x1f37d2,_0xff685c){const _0x237122=_0x566993,_0x348591=this;_0x348591['user']=_0x194eb2[_0x237122('0x14d4')](),_0x348591[_0x237122('0x1a29')]={},_0x348591[_0x237122('0x251')]={},_0x348591[_0x237122('0x22ac')]={'count':0x0,'rows':[]},_0x348591[_0x237122('0x6a2')]={'count':0x0,'rows':[]},_0x348591['query']={'includeAll':!![],'sort':_0x237122('0x1769'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x348591['advancedSearch']={'fields':[{'name':'Id','column':'id','type':'number'},{'name':_0x237122('0x1f70'),'column':'Contact','type':_0x237122('0xe92'),'options':{'searchFields':[_0x237122('0x1e50'),_0x237122('0x1806'),_0x237122('0x28e')],'route':{'model':_0x237122('0x1197'),'action':'get','params':{'fields':_0x237122('0x1cf0'),'Contact':_0x237122('0xdd7'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x237122('0x10be')]}},{'name':_0x237122('0x176f'),'column':_0x237122('0x1a5'),'type':_0x237122('0x86e'),'options':{'excludedOperators':[_0x237122('0xc0c'),_0x237122('0x10be')]}},{'name':_0x237122('0xef8'),'column':_0x237122('0x1636'),'type':_0x237122('0xc65'),'values':[{'id':0x0,'translate':_0x237122('0x163c')},{'id':0x1,'translate':_0x237122('0x1389')}],'options':{'excludedOperators':[_0x237122('0x10be')]}},{'name':'Agent','column':_0x237122('0x2265'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x237122('0x166f'),'action':_0x237122('0x1d97'),'params':{'role':_0x237122('0x7b0'),'fields':_0x237122('0x112d'),'nolimit':!![]}},'searchFields':[_0x237122('0x572'),'name'],'extraOperators':['$substring'],'excludedOperators':[_0x237122('0x10be')]}},{'name':_0x237122('0x1b91'),'column':'OpenchannelAccountId','type':_0x237122('0x1c68'),'options':{'route':{'model':'user','action':_0x237122('0x133b'),'params':{'id':_0x348591[_0x237122('0x166f')]['id'],'nolimit':!![]}}}},{'name':_0x237122('0xc38'),'column':_0x237122('0x460'),'type':_0x237122('0x1c68'),'options':{'route':{'model':'tag','action':_0x237122('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':[_0x237122('0x2232')]}},{'name':_0x237122('0x1406'),'column':_0x237122('0xda8'),'type':'date','options':{'excludedOperators':[_0x237122('0x10be')]}},{'name':'Read','column':'unreadMessages','type':_0x237122('0xc65'),'values':[{'id':0x1,'translate':_0x237122('0x1170')},{'id':0x0,'translate':_0x237122('0x1015')}],'options':{'excludedOperators':[_0x237122('0x10be')]}}]},_0x348591[_0x237122('0x1c9a')]='amber',_0x348591[_0x237122('0x2535')]=_0x1a104c,_0x348591[_0x237122('0xdfe')]=_0x4ba5d2,_0x348591[_0x237122('0xfd9')]=_0x99d636,_0x348591[_0x237122('0x22ae')]=_0x34818c,_0x348591[_0x237122('0x21f8')]=_0x1c0b67,_0x348591[_0x237122('0x20f0')]=_0x27f828,_0x348591[_0x237122('0x150f')]=_0x254d9b,_0x348591['getAgentLabel']=_0x3dbfbf,_0x348591[_0x237122('0x1217')]=_0x3a7cb0,_0x348591['composeOpenchannelInteraction']=_0x12fccd,_0x348591[_0x237122('0x159d')]=_0x251c63,_0x348591[_0x237122('0x1691')]=_0x5ba216,_0x348591[_0x237122('0x6f1')]=_0x496cf7;function _0x1a104c(_0x3d1358,_0x534443){const _0x3717eb=_0x237122;return _0x348591[_0x3717eb('0x1a29')]=_0x3d1358,_0x348591['setting']=_0x534443,_0x3158ff['user'][_0x3717eb('0x1d97')+_0x3c8d8a()[_0x3717eb('0x5ba')](_0x3717eb('0x1a65'))]({'id':_0x348591[_0x3717eb('0x166f')]['id'],'nolimit':!![]})[_0x3717eb('0x1964')]['then'](function(_0x2bc493){const _0x10afcc=_0x3717eb;return _0x348591[_0x10afcc('0x1a65')]=_0x2bc493||{'count':0x0,'rows':[]},_0x3158ff[_0x10afcc('0x23b4')][_0x10afcc('0x1d97')]()[_0x10afcc('0x1964')];})[_0x3717eb('0x173b')](function(_0x22f92c){_0x348591['tags']=_0x22f92c||{'count':0x0,'rows':[]};})[_0x3717eb('0x173b')](function(){const _0xce3221=_0x3717eb;_0x348591[_0xce3221('0x485')]=_0x5e6b94();})['catch'](function(_0x5b859d){const _0x517418=_0x3717eb;console[_0x517418('0x15aa')](_0x5b859d);})[_0x3717eb('0xf25')](function(){const _0x1fd978=_0x3717eb;let _0x572244=_0x17cf93[_0x1fd978('0x1937')][_0x1fd978('0x1949')]('motion2.home.openchannel:'+_0x348591[_0x1fd978('0x166f')]['id']);if(_0x572244)try{_0x572244=JSON[_0x1fd978('0x1d5e')](_0x572244);if(_0x572244[_0x1fd978('0xc49')]){_0x348591[_0x1fd978('0xc49')]=_0x3c8d8a()[_0x1fd978('0x9ef')](_0x348591['query'],_0x572244[_0x1fd978('0xc49')]);if(_0x3c8d8a()[_0x1fd978('0x1a56')](_0x348591[_0x1fd978('0x1a65')][_0x1fd978('0x6aa')]))_0x348591['query'][_0x1fd978('0xf5a')]=[];else _0x3c8d8a()['isEmpty'](_0x348591[_0x1fd978('0xc49')]['OpenchannelAccountId'])&&(_0x348591[_0x1fd978('0xc49')][_0x1fd978('0xf5a')]=_0x3c8d8a()(_0x348591['openchannelAccounts'][_0x1fd978('0x6aa')])['map']('id')[_0x1fd978('0x1f6c')]()[_0x1fd978('0xa7b')]());_0x348591[_0x1fd978('0xc49')][_0x1fd978('0xfbe')]&&_0x348591[_0x1fd978('0xc49')][_0x1fd978('0xfbe')][_0x1fd978('0x2087')](_0x1fd978('0x1642'))>=0x0&&(_0x348591['query']=_0x3c8d8a()[_0x1fd978('0x2797')](_0x348591[_0x1fd978('0xc49')],_0x1fd978('0xfbe'))),_0x348591[_0x1fd978('0xc49')][_0x1fd978('0x1dec')]=!![],_0x348591['isSearchBarVisible']=_0x348591[_0x1fd978('0xc49')][_0x1fd978('0x278d')]?!![]:![];}}catch(_0x2f7ac4){console[_0x1fd978('0x15aa')](_0x2f7ac4);}else{const _0x2e5874={'$gte':_0x156524()()[_0x1fd978('0x2145')](_0x1fd978('0x70b'))['utcOffset'](0x0,!![])[_0x1fd978('0xddc')](),'$lte':_0x156524()()[_0x1fd978('0x733')](_0x1fd978('0x70b'))[_0x1fd978('0xaf5')](0x0,!![])[_0x1fd978('0xddc')]()},_0x4556bd={'OpenchannelAccountId':_0x3c8d8a()[_0x1fd978('0x8a2')](_0x348591['openchannelAccounts'][_0x1fd978('0x6aa')],'id'),'createdAt':_0x2e5874};_0x348591[_0x1fd978('0xc49')]=_0x3c8d8a()['merge'](_0x348591[_0x1fd978('0xc49')],_0x4556bd);}_0x590d7e['on'](_0x1fd978('0x1c64'),_0x2bc422),_0x590d7e['on'](_0x1fd978('0x1432'),_0x2bc422),_0x590d7e['on'](_0x1fd978('0x16cb'),_0x5ee614),_0x590d7e['on'](_0x1fd978('0xdab'),_0x454e55),_0x590d7e['on']('openchannelMessage:update',_0x454e55),_0x590d7e['on']('user_has_openchannel_interactions:save',_0x4e350c),_0x590d7e['on']('user_has_openchannel_interactions:remove',_0x4159bf),_0x99d636(_0x348591[_0x1fd978('0xc49')][_0x1fd978('0x182e')]);});}function _0x5e6b94(){const _0x513377=_0x237122;return[{'name':_0x513377('0x1406'),'key':_0x513377('0xda8'),'type':_0x513377('0x22b6'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x513377('0x2634'),'key':_0x513377('0x69b'),'type':_0x513377('0xc65'),'label':_0x513377('0x1881'),'customOptions':[{'value':0x0,'translate':_0x513377('0x1015')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x513377('0xef8'),'key':_0x513377('0x1636'),'type':'select','label':_0x513377('0x1647'),'customOptions':[{'value':0x0,'translate':_0x513377('0x163c')},{'value':0x1,'translate':_0x513377('0x1389')},{'value':null,'translate':_0x513377('0x47a')}]},{'name':_0x513377('0x1b91'),'key':'OpenchannelAccountId','type':'multiselect','label':_0x513377('0x7b4'),'options':_0x348591[_0x513377('0x1a65')][_0x513377('0x6aa')],'clearAll':![]},{'name':_0x513377('0x1547'),'key':_0x513377('0x181c'),'type':_0x513377('0xc65'),'label':_0x513377('0x956'),'customOptions':[{'value':_0x348591[_0x513377('0x166f')]['id'],'translate':'DASHBOARDS.ME'},{'value':_0x513377('0x877'),'translate':_0x513377('0x27a8')},{'value':undefined,'translate':_0x513377('0x47a')}]},{'name':_0x513377('0x460'),'key':_0x513377('0x23b4'),'type':_0x513377('0x1c68'),'label':_0x513377('0x1e6f'),'options':_0x348591['tags'][_0x513377('0x6aa')],'placeholder':_0x513377('0x96')}];}function _0x4ba5d2(_0x4b0222){const _0x1d3223=_0x237122;_0x348591['searchInProgress']=![],_0x348591[_0x1d3223('0x6a2')]=_0x4b0222||{'count':0x0,'rows':[]};for(let _0x380271=0x0;_0x380271<_0x348591['openchannelInteractions'][_0x1d3223('0x6aa')]['length'];_0x380271+=0x1){_0x254d9b(_0x348591['openchannelInteractions']['rows'][_0x380271]);}}function _0x99d636(_0x2411b6){const _0x1eb085=_0x237122;_0x348591[_0x1eb085('0x1e9c')]=!![];!_0x2411b6&&(_0x348591[_0x1eb085('0xc49')]['page']=0x1);_0x348591[_0x1eb085('0xc49')][_0x1eb085('0x17f0')]=(_0x348591[_0x1eb085('0xc49')][_0x1eb085('0x182e')]-0x1)*_0x348591[_0x1eb085('0xc49')][_0x1eb085('0x3e')];let _0x2f7445=_0x17cf93[_0x1eb085('0x1937')]['getItem'](_0x1eb085('0x11f1')+_0x348591[_0x1eb085('0x166f')]['id']);_0x2f7445=_0x2f7445?JSON[_0x1eb085('0x1d5e')](_0x2f7445):{},_0x2f7445[_0x1eb085('0xc49')]=_0x348591[_0x1eb085('0xc49')],_0x17cf93['localStorage'][_0x1eb085('0x7e')](_0x1eb085('0x11f1')+_0x348591[_0x1eb085('0x166f')]['id'],JSON[_0x1eb085('0x100b')](_0x2f7445)),_0x348591['promise']=_0x3158ff['openchannelInteraction']['get'](_0x348591['query'],_0x4ba5d2)['$promise'];}function _0x34818c(_0x15686a,_0x1a2b3f){const _0x5da6a2=_0x237122;_0x31a922[_0x5da6a2('0x1d44')]['vm'][_0x5da6a2('0xe63')]('openchannel',_0x1a2b3f);}function _0x1c0b67(_0x302bf0,_0x426a52,_0x2255c9){const _0x4958b8=_0x237122;_0x3158ff['openchannelInteraction'][_0x4958b8('0xfce')]({'id':_0x426a52['id'],'attachments':_0x2255c9})[_0x4958b8('0x1964')][_0x4958b8('0x173b')](function(_0x1a8855){const _0x511da2=_0x4958b8,_0x59410d=[_0x1a8855['buffer']],_0x3a774a='openchannel-interaction'+_0x426a52['id']+_0x511da2('0x1421'),_0x3cd329=new Blob(_0x59410d,{'type':_0x1a8855[_0x511da2('0x1810')]}),_0x2ecbeb=window[_0x511da2('0x222a')][_0x511da2('0x1258')]('a');_0x2ecbeb[_0x511da2('0x11c3')](_0x511da2('0x165c'),URL[_0x511da2('0x1466')](_0x3cd329)),_0x2ecbeb[_0x511da2('0x11c3')](_0x511da2('0xfce'),_0x3a774a),document['body'][_0x511da2('0x1f8d')](_0x2ecbeb),_0x2ecbeb[_0x511da2('0x3cb')]();})['catch'](function(_0x126d5d){const _0x5bc658=_0x4958b8;if(_0x126d5d[_0x5bc658('0x1e07')]&&_0x126d5d[_0x5bc658('0x1e07')][_0x5bc658('0x1d4a')]&&_0x126d5d[_0x5bc658('0x1e07')][_0x5bc658('0x1d4a')][_0x5bc658('0x543')])for(let _0x2ac806=0x0;_0x2ac806<_0x126d5d[_0x5bc658('0x1e07')][_0x5bc658('0x1d4a')]['length'];_0x2ac806+=0x1){_0x1f37d2['error']({'title':_0x126d5d['data'][_0x5bc658('0x1d4a')][_0x2ac806][_0x5bc658('0x1810')],'msg':_0x126d5d[_0x5bc658('0x1e07')][_0x5bc658('0x1d4a')][_0x2ac806]['message']});}else _0x1f37d2[_0x5bc658('0x15aa')]({'title':_0x126d5d[_0x5bc658('0x276f')]?'API:'+_0x126d5d['status']+_0x5bc658('0x160c')+_0x126d5d[_0x5bc658('0x2696')]:_0x5bc658('0x21f8'),'msg':_0x126d5d[_0x5bc658('0x1e07')]?JSON[_0x5bc658('0x100b')](_0x126d5d[_0x5bc658('0x1e07')]['message']):_0x126d5d[_0x5bc658('0x1b75')]()});});}function _0x27f828(_0xb0d3c0,_0x4e57c7){const _0x15fd10=_0x237122,_0x581344=_0x348591[_0x15fd10('0x166f')][_0x15fd10('0x67c')]||_0x348591[_0x15fd10('0x166f')]['chatPause']||_0x348591[_0x15fd10('0x166f')]['mailPause']||_0x348591[_0x15fd10('0x166f')][_0x15fd10('0x106')]||_0x348591[_0x15fd10('0x166f')][_0x15fd10('0x13eb')],_0x3249e5=!_0x4e57c7[_0x15fd10('0x1b91')][_0x15fd10('0x130f')];_0x199394[_0x15fd10('0x1cb7')]({'controller':_0x15fd10('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular[_0x15fd10('0xb6d')](_0x5ecf9e[_0x15fd10('0x1a5')]),'clickOutsideToClose':_0x3249e5,'escapeToClose':_0x3249e5,'onRemoving':function(){const _0x4c97b4=_0x15fd10;_0x348591[_0x4c97b4('0x166f')]&&_0x4e57c7[_0x4c97b4('0x1b91')][_0x4c97b4('0x130f')]&&!_0x581344&&_0x3158ff[_0x4c97b4('0x166f')]['unpause']({'id':_0x348591['user']['id']})[_0x4c97b4('0x1964')][_0x4c97b4('0x103c')](function(_0xf5a559){const _0x126c7d=_0x4c97b4;console[_0x126c7d('0x15aa')](_0xf5a559);});},'locals':{'user':_0x348591[_0x15fd10('0x166f')],'channel':'openchannel','interaction':_0x4e57c7}});}function _0x254d9b(_0x51a331){const _0xbdf02d=_0x237122;if(_0x51a331['from'])_0x51a331[_0xbdf02d('0x98d')]=_0x51a331[_0xbdf02d('0xd40')];else _0x51a331[_0xbdf02d('0x1f70')]?_0x51a331['contactName']=(_0x51a331[_0xbdf02d('0x1f70')]['firstName']||'')+'\x20'+(_0x51a331[_0xbdf02d('0x1f70')]['lastName']||''):_0x51a331[_0xbdf02d('0x98d')]=_0x36cd63[_0xbdf02d('0x1467')](_0xbdf02d('0x172b'));}function _0x3dbfbf(_0x29d413){const _0x47bebc=_0x237122;if(_0x29d413[_0x47bebc('0x181c')])return _0x29d413[_0x47bebc('0x181c')]===_0x348591[_0x47bebc('0x166f')]['id']?_0x36cd63[_0x47bebc('0x1467')](_0x47bebc('0x2449')):_0x29d413[_0x47bebc('0x274f')][_0x47bebc('0x572')]+'\x20<'+_0x29d413[_0x47bebc('0x274f')][_0x47bebc('0x138c')]+'>';return _0x36cd63['instant']('DASHBOARDS.NOT_ASSIGNED');}function _0x3a7cb0(_0x11b3fa){const _0x818948=_0x237122;if(_0x11b3fa[_0x818948('0x1b91')])return _0x11b3fa[_0x818948('0x1b91')][_0x818948('0x237a')];return _0x36cd63[_0x818948('0x1467')]('DASHBOARDS.UNKNOWN');}function _0x12fccd(_0x140439,_0x2ca66e){const _0x9d1640=_0x237122;_0x199394['show']({'controller':'ComposeOpenchannelInteractionDialogController','controllerAs':'vm','templateUrl':_0x33b2a8,'parent':angular['element'](_0x5ecf9e['body']),'clickOutsideToClose':![],'locals':{'account':_0x2ca66e,'message':{},'type':_0x9d1640('0x195f'),'interaction':{}},'fullscreen':!![]})[_0x9d1640('0x173b')](function(_0x20bf86){const _0x46ef63=_0x9d1640;if(_0x20bf86){if(_0x20bf86[_0x46ef63('0x67f')]&&_0x20bf86[_0x46ef63('0x67f')][_0x46ef63('0x51')]){const _0x5b363d={'channel':_0x46ef63('0xab2'),'account':_0x2ca66e,'message':_0x20bf86[_0x46ef63('0x67f')],'contact':_0x20bf86['contact']};_0xff685c['add'](_0x5b363d);}else{const _0x76ae0f=_0x20bf86;return _0x3158ff[_0x46ef63('0x13f1')][_0x46ef63('0x482')]({'id':_0x2ca66e['id']},_0x76ae0f)[_0x46ef63('0x1964')][_0x46ef63('0x173b')](function(_0x3212f9){const _0x4e61f3=_0x46ef63;_0x1f37d2['success']({'title':_0x4e61f3('0x2370'),'msg':_0x4e61f3('0x1950')}),_0x31a922[_0x4e61f3('0x1d44')]['vm'][_0x4e61f3('0xe63')]('openchannel',_0x3212f9);})[_0x46ef63('0x103c')](function(_0x31f168){const _0x54e33b=_0x46ef63;if(_0x31f168['data']&&_0x31f168['data'][_0x54e33b('0x1d4a')]&&_0x31f168['data'][_0x54e33b('0x1d4a')][_0x54e33b('0x543')])for(let _0x4c6425=0x0;_0x4c6425<_0x31f168[_0x54e33b('0x1e07')][_0x54e33b('0x1d4a')][_0x54e33b('0x543')];_0x4c6425++){_0x1f37d2[_0x54e33b('0x15aa')]({'title':_0x31f168[_0x54e33b('0x1e07')][_0x54e33b('0x1d4a')][_0x4c6425][_0x54e33b('0x1810')],'msg':_0x31f168[_0x54e33b('0x1e07')][_0x54e33b('0x1d4a')][_0x4c6425][_0x54e33b('0x67f')]});}else _0x1f37d2[_0x54e33b('0x15aa')]({'title':_0x31f168['status']?_0x54e33b('0x137')+_0x31f168[_0x54e33b('0x276f')]+_0x54e33b('0x160c')+_0x31f168[_0x54e33b('0x2696')]:_0x54e33b('0xa99'),'msg':_0x31f168['data']?JSON[_0x54e33b('0x100b')](_0x31f168[_0x54e33b('0x1e07')][_0x54e33b('0x67f')]):_0x31f168['message']||_0x31f168['toString']()});});}}});}function _0x4e350c(_0x177590){const _0x4fa0fc=_0x237122;let _0x42d3b3;const _0x2ccedd=_0x3c8d8a()['find'](_0x348591[_0x4fa0fc('0x6a2')][_0x4fa0fc('0x6aa')],{'id':_0x177590[_0x4fa0fc('0x330')]});_0x2ccedd&&_0x2ccedd['Users']&&(_0x42d3b3=_0x3c8d8a()[_0x4fa0fc('0x18ab')](_0x2ccedd[_0x4fa0fc('0x1999')],{'id':_0x177590[_0x4fa0fc('0x181c')]}),!_0x42d3b3&&_0x2ccedd[_0x4fa0fc('0x1999')][_0x4fa0fc('0x18bb')]({'id':_0x177590[_0x4fa0fc('0x181c')]}));}function _0x4159bf(_0x492427){const _0x460424=_0x237122,_0x2e0fc5=_0x3c8d8a()['find'](_0x348591['openchannelInteractions'][_0x460424('0x6aa')],{'id':_0x492427['OpenchannelInteractionId']});_0x2e0fc5&&_0x2e0fc5[_0x460424('0x1999')]&&_0x3c8d8a()[_0x460424('0x1a8b')](_0x2e0fc5[_0x460424('0x1999')],{'id':_0x492427[_0x460424('0x181c')]});}function _0x2bc422(_0x4316d4){const _0x2b6303=_0x237122;if(_0x4316d4){const _0x19a5dd=_0x3c8d8a()['find'](_0x348591[_0x2b6303('0x6a2')][_0x2b6303('0x6aa')],{'id':_0x4316d4['id']});if(_0x19a5dd){_0x19a5dd[_0x2b6303('0x1999')]=[];_0x4316d4[_0x2b6303('0x1636')]&&(_0x19a5dd[_0x2b6303('0x25e9')]=0x0);if(_0x348591[_0x2b6303('0xc49')][_0x2b6303('0xfbe')]){const _0x1d6b20=_0x3c8d8a()['startsWith'](_0x348591[_0x2b6303('0xc49')][_0x2b6303('0xfbe')],'-')?_0x2b6303('0x231d'):_0x2b6303('0xcc1');_0x348591[_0x2b6303('0x6a2')][_0x2b6303('0x6aa')]=_0x3c8d8a()[_0x2b6303('0x1d16')](_0x348591[_0x2b6303('0x6a2')][_0x2b6303('0x6aa')],_0x3c8d8a()[_0x2b6303('0x161e')](_0x348591[_0x2b6303('0xc49')][_0x2b6303('0xfbe')],'-'),_0x1d6b20);}_0x3c8d8a()[_0x2b6303('0x9ef')](_0x19a5dd,_0x3c8d8a()[_0x2b6303('0x2114')](_0x4316d4,_0x3c8d8a()[_0x2b6303('0x1d3e')](_0x19a5dd)));}else _0x99d636(_0x348591['query']['page']);}}function _0x5ee614(_0x2d2cb2){const _0x266dc8=_0x237122;if(_0x2d2cb2){const _0x5bf6f6=_0x3c8d8a()[_0x266dc8('0x18ab')](_0x348591[_0x266dc8('0x6a2')][_0x266dc8('0x6aa')],{'id':_0x2d2cb2['id']});_0x5bf6f6&&(_0x5bf6f6[_0x266dc8('0xc38')]=_0x2d2cb2[_0x266dc8('0x22ac')]||[],_0x3c8d8a()['merge'](_0x5bf6f6,_0x3c8d8a()[_0x266dc8('0x2114')](_0x2d2cb2,_0x3c8d8a()['keys'](_0x5bf6f6))));}}function _0x454e55(_0x57cc4b){const _0x533bed=_0x237122;if(_0x57cc4b&&!_0x57cc4b[_0x533bed('0x27ed')]){const _0x30369d=_0x3c8d8a()[_0x533bed('0x18ab')](_0x348591[_0x533bed('0x6a2')][_0x533bed('0x6aa')],{'id':_0x57cc4b[_0x533bed('0x330')]});if(_0x30369d){const _0x3739f4=_0x3c8d8a()[_0x533bed('0x18ab')](_0x30369d[_0x533bed('0x2634')],{'id':_0x57cc4b['id']});_0x3739f4?_0x3c8d8a()[_0x533bed('0x9ef')](_0x3739f4,_0x3c8d8a()[_0x533bed('0x2114')](_0x57cc4b,_0x3c8d8a()['keys'](_0x3739f4))):(_0x3c8d8a()[_0x533bed('0x7d5')](_0x30369d['Messages'])&&(_0x30369d[_0x533bed('0x2634')]={'count':0x0}),!_0x57cc4b[_0x533bed('0x69b')]&&(_0x30369d[_0x533bed('0x2634')][_0x533bed('0x1a2f')]+=0x1));}}}function _0x251c63(){const _0x5dcb85=_0x237122;_0x348591[_0x5dcb85('0x82f')]=![];}function _0x5ba216(){const _0x371fbd=_0x237122;_0x348591[_0x371fbd('0x82f')]=!![];}function _0x496cf7(){const _0x450ba2=_0x237122;_0x348591[_0x450ba2('0x82f')]=![],_0x199394[_0x450ba2('0x1cb7')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x450ba2('0xb6d')](_0x5ecf9e[_0x450ba2('0x1a5')]),'clickOutsideToClose':![],'locals':{'color':_0x348591[_0x450ba2('0x1c9a')],'fields':_0x348591['advancedSearch'][_0x450ba2('0x2340')],'storagePath':'home.openchannel'},'fullscreen':!![]})[_0x450ba2('0x173b')](function(_0xbc3113){const _0x1c81ce=_0x450ba2;_0x348591[_0x1c81ce('0xc49')][_0x1c81ce('0x23e7')]=_0xbc3113===![]?undefined:_0xbc3113;if(_0x348591[_0x1c81ce('0xc49')][_0x1c81ce('0x23e7')]||_0xbc3113===![])_0x99d636();})[_0x450ba2('0x103c')](function(_0x1f70c7){const _0x2c92cd=_0x450ba2;_0x1f37d2['error']({'title':'ERROR','msg':_0x1f70c7[_0x2c92cd('0x1e07')]?JSON[_0x2c92cd('0x100b')](_0x1f70c7['data'][_0x2c92cd('0x67f')]):_0x1f70c7[_0x2c92cd('0x1b75')]()});});}let _0x15755c=!![],_0x280c41=0x1;_0x31a922[_0x237122('0x1bdb')](_0x237122('0x157b'),function(_0x4953e0,_0x554421){const _0x104cdf=_0x237122;_0x15755c?_0x1bbde2(function(){_0x15755c=![];}):(!_0x554421&&(_0x280c41=_0x348591[_0x104cdf('0xc49')][_0x104cdf('0x182e')]),_0x4953e0!==_0x554421&&(_0x348591[_0x104cdf('0xc49')]['page']=0x1),!_0x4953e0&&(_0x348591['query']['page']=_0x280c41),_0x99d636(_0x348591['query'][_0x104cdf('0x182e')]));}),_0x31a922[_0x237122('0xbf6')]('$destroy',function(){const _0x1de1bf=_0x237122;_0x590d7e[_0x1de1bf('0x251c')]('openchannelMessage:save'),_0x590d7e[_0x1de1bf('0x251c')](_0x1de1bf('0x90d')),_0x590d7e[_0x1de1bf('0x251c')](_0x1de1bf('0x1c64')),_0x590d7e['removeAllListeners'](_0x1de1bf('0x16cb')),_0x590d7e[_0x1de1bf('0x251c')]('openchannelInteraction:update'),_0x590d7e[_0x1de1bf('0x251c')]('user_has_openchannel_interactions:save'),_0x590d7e['removeAllListeners'](_0x1de1bf('0x18f7'));});}const _0x544ef5=_0x5c48dc;_0x3683d8[_0x566993('0x17bb')]=[_0x566993('0x1b82'),_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1caf'),_0x566993('0xb5a'),'Auth'];function _0x3683d8(_0x3f57fd,_0x4db850,_0x538cb1,_0x104996,_0x33d175,_0x391f54,_0x2eb595){const _0x510096=_0x566993,_0x54d9f3=this;_0x54d9f3[_0x510096('0x155f')]=_0x2eb595[_0x510096('0x14d4')](),_0x54d9f3[_0x510096('0x19f2')]={};function _0x78f8c9(_0x4448a5,_0x23a546,_0x39e0a4){const _0x570e86=_0x510096;_0x54d9f3['license']=_0x4448a5,_0x54d9f3[_0x570e86('0x251')]=_0x23a546,_0x54d9f3[_0x570e86('0x19f2')]=_0x39e0a4;}function _0x161354(){const _0x459086=_0x510096;return _0x391f54[_0x459086('0xb94')](_0x54d9f3['plugin']['agentUrl']);}_0x4db850[_0x510096('0xbf6')]('pluginUpdated',function(_0x255a42,_0x86da43){const _0x1ed80d=_0x510096;_0x54d9f3[_0x1ed80d('0x19f2')]=_0x86da43[_0x1ed80d('0x19f2')];}),_0x54d9f3[_0x510096('0x2535')]=_0x78f8c9,_0x54d9f3[_0x510096('0x1f2b')]=_0x161354,_0x78f8c9();}const _0x44d357=_0x3683d8;_0x48950f[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x24b5'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600')];function _0x48950f(_0x59f4e2,_0x5258da,_0x14b15c,_0x4f5e23,_0x5f0ea2,_0xaaa412){const _0x3dcd04=_0x566993,_0x34e725=this;_0x34e725[_0x3dcd04('0x155f')]=_0xaaa412['getCurrentUser'](),_0x34e725[_0x3dcd04('0x1478')]={},_0x34e725['table']=_0x3dcd04('0x1478'),_0x34e725['query']={'UserId':_0x34e725['currentUser']['id'],'fields':_0x3dcd04('0xf15'),'sort':'-updatedAt','limit':0xa,'page':0x1,'type':null},_0x34e725['downloadfile']=_0x2ef383,_0x34e725[_0x3dcd04('0x16c9')]=_0x1162a2,_0x34e725[_0x3dcd04('0xdfe')]=_0x575666,_0x34e725[_0x3dcd04('0x506')]=_0x492664,_0x34e725['onInit']=_0x150864,_0x34e725[_0x3dcd04('0x159d')]=_0x54e8c0,_0x34e725[_0x3dcd04('0x1691')]=_0x382122;function _0x150864(){const _0xe0f2c4=_0x3dcd04;_0x34e725['quickFilters']=_0x1a07fe();let _0x43a932=_0x5258da[_0xe0f2c4('0x1937')][_0xe0f2c4('0x1949')](_0xe0f2c4('0xa9a')+_0x34e725[_0xe0f2c4('0x155f')]['id']);if(_0x43a932)try{_0x43a932=JSON[_0xe0f2c4('0x1d5e')](_0x43a932),_0x43a932[_0xe0f2c4('0xc49')]&&(_0x34e725[_0xe0f2c4('0xc49')]=_0x3c8d8a()['omit'](_0x43a932[_0xe0f2c4('0xc49')],[_0xe0f2c4('0x278d'),'id']),_0x34e725['query'][_0xe0f2c4('0x2340')]=_0xe0f2c4('0x1e82'),_0x34e725[_0xe0f2c4('0xc49')][_0xe0f2c4('0x181c')]=_0x34e725['currentUser']['id']);}catch(_0x369622){console[_0xe0f2c4('0x15aa')](_0x369622);}else{const _0x577710={'$gte':_0x156524()()[_0xe0f2c4('0x2145')](_0xe0f2c4('0x70b'))[_0xe0f2c4('0xaf5')](0x0,!![])[_0xe0f2c4('0xddc')](),'$lte':_0x156524()()['endOf']('month')[_0xe0f2c4('0xaf5')](0x0,!![])[_0xe0f2c4('0xddc')]()};_0x34e725[_0xe0f2c4('0xc49')][_0xe0f2c4('0xda8')]=_0x577710;}_0x34e725[_0xe0f2c4('0x82f')]=_0x34e725[_0xe0f2c4('0xc49')][_0xe0f2c4('0x278d')]?!![]:![],_0x34e725[_0xe0f2c4('0x506')]();}function _0x2ef383(_0xe9de69){const _0x1b4e63=_0x3dcd04;return _0x4f5e23[_0x1b4e63('0x14c3')][_0x1b4e63('0xfce')]({'id':_0xe9de69['id'],'exists':!![]})[_0x1b4e63('0x1964')][_0x1b4e63('0x173b')](function(_0x4ef83b){const _0x5726cd=_0x1b4e63,_0x116350=[_0x4ef83b[_0x5726cd('0x1c22')]],_0x14d417=new Blob(_0x116350,{'type':_0x4ef83b[_0x5726cd('0x1810')]}),_0x5034ff=window[_0x5726cd('0x222a')]['createElement']('a');_0x5034ff[_0x5726cd('0x11c3')](_0x5726cd('0x165c'),URL[_0x5726cd('0x1466')](_0x14d417)),_0x5034ff[_0x5726cd('0x11c3')](_0x5726cd('0xfce'),_0xe9de69[_0x5726cd('0x207c')]+_0xe9de69[_0x5726cd('0xddc')]),_0x5034ff[_0x5726cd('0x3cb')]();})[_0x1b4e63('0x103c')](function(_0x3bfa45){const _0x171dc9=_0x1b4e63;_0x5f0ea2[_0x171dc9('0x15aa')]({'title':_0x3bfa45['status']?'API:'+_0x3bfa45[_0x171dc9('0x276f')]+_0x171dc9('0x160c')+_0x3bfa45[_0x171dc9('0x2696')]:_0x171dc9('0x19b0'),'msg':_0x3bfa45[_0x171dc9('0x1e07')]?JSON[_0x171dc9('0x100b')](_0x3bfa45['data']):_0x3bfa45[_0x171dc9('0x1b75')]()});});}function _0x1162a2(_0xe3b8bf){const _0x1fc3a8=_0x3dcd04;return _0x4f5e23['voiceRecording'][_0x1fc3a8('0x1b42')]({'id':_0xe3b8bf['id']})[_0x1fc3a8('0x1964')][_0x1fc3a8('0x173b')](function(_0x1ee4e7){const _0x44c97d=_0x1fc3a8,_0x4850fd=[_0x1ee4e7[_0x44c97d('0x1c22')]];let _0x3887a6=_0x44c97d('0xfce');const _0x40a3fa=new Blob(_0x4850fd,{'type':_0x1ee4e7[_0x44c97d('0x1810')]});_0x3887a6=_0xe3b8bf[_0x44c97d('0x207c')];const _0x526d98=window['document'][_0x44c97d('0x1258')]('a');_0x526d98[_0x44c97d('0x11c3')](_0x44c97d('0x165c'),URL[_0x44c97d('0x1466')](_0x40a3fa)),_0x526d98['setAttribute'](_0x44c97d('0xfce'),_0x3887a6),document[_0x44c97d('0x1a5')]['appendChild'](_0x526d98),_0x526d98[_0x44c97d('0x3cb')]();})['catch'](function(_0x5a4b35){const _0x2a56b1=_0x1fc3a8;_0x5f0ea2[_0x2a56b1('0x15aa')]({'title':_0x5a4b35[_0x2a56b1('0x276f')]?_0x2a56b1('0x137')+_0x5a4b35['status']+_0x2a56b1('0x160c')+_0x5a4b35[_0x2a56b1('0x2696')]:_0x2a56b1('0x19b0'),'msg':_0x5a4b35[_0x2a56b1('0x1e07')]?JSON[_0x2a56b1('0x100b')](_0x5a4b35[_0x2a56b1('0x1e07')]):_0x5a4b35['toString']()});});}function _0x1a07fe(){const _0x565274=_0x3dcd04;return[{'name':_0x565274('0x1406'),'key':_0x565274('0xda8'),'type':_0x565274('0x22b6'),'label':_0x565274('0xa98')},{'name':_0x565274('0x1899'),'key':'type','type':_0x565274('0xc65'),'label':_0x565274('0x27f5'),'customOptions':[{'value':'internal','translate':_0x565274('0x13ad')},{'value':'inbound','translate':_0x565274('0x1364')},{'value':_0x565274('0xb33'),'translate':_0x565274('0x1fc')},{'value':_0x565274('0x707'),'translate':_0x565274('0x13de')},{'value':null,'translate':'VOICE.ALL'}]}];}function _0x575666(_0x23b8ce){const _0x1a2ac2=_0x3dcd04;_0x34e725[_0x1a2ac2('0x1e9c')]=![],_0x34e725[_0x1a2ac2('0x1478')]=_0x23b8ce||{'count':0x0,'rows':[]};}function _0x492664(){const _0x363c83=_0x3dcd04;_0x34e725[_0x363c83('0x1e9c')]=!![],_0x34e725[_0x363c83('0xc49')][_0x363c83('0x17f0')]=(_0x34e725[_0x363c83('0xc49')][_0x363c83('0x182e')]-0x1)*_0x34e725[_0x363c83('0xc49')][_0x363c83('0x3e')];const _0x5a3610={'query':_0x34e725[_0x363c83('0xc49')]};_0x5258da[_0x363c83('0x1937')][_0x363c83('0x7e')](_0x363c83('0xa9a')+_0x34e725[_0x363c83('0x155f')]['id'],JSON[_0x363c83('0x100b')](_0x5a3610)),_0x34e725[_0x363c83('0x2219')]=_0x4f5e23['voiceRecording'][_0x363c83('0x1d97')](_0x34e725[_0x363c83('0xc49')],_0x575666)[_0x363c83('0x1964')];}function _0x54e8c0(){const _0x35f932=_0x3dcd04;_0x34e725[_0x35f932('0xc49')][_0x35f932('0x278d')]=undefined,_0x34e725[_0x35f932('0x82f')]=![];}function _0x382122(){const _0x1feb89=_0x3dcd04;_0x34e725[_0x1feb89('0x82f')]=!![];}let _0x272625=!![],_0x1814b3=0x1;_0x59f4e2[_0x3dcd04('0x1bdb')](_0x3dcd04('0x157b'),function(_0x22178c,_0x223486){const _0x26d1db=_0x3dcd04;_0x272625?_0x14b15c(function(){_0x272625=![];}):(!_0x223486&&(_0x1814b3=_0x34e725[_0x26d1db('0xc49')]['page']),_0x22178c!==_0x223486&&(_0x34e725[_0x26d1db('0xc49')][_0x26d1db('0x182e')]=0x1),!_0x22178c&&(_0x34e725[_0x26d1db('0xc49')][_0x26d1db('0x182e')]=_0x1814b3),_0x34e725['getVoiceRecordings']());});}const _0xe92d9e=_0x48950f,_0x47467f=_0x21a6a1['p']+_0x566993('0xdc7');_0x521096[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$timeout',_0x566993('0x1fe5'),'$document',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x521096(_0x551f4a,_0xb7d148,_0x1e0f40,_0x25e5bc,_0x4b29fd,_0xce1280,_0x30237b,_0x5027f2){const _0x5da3ce=_0x566993,_0x304f3a=this;_0x304f3a[_0x5da3ce('0x155f')]=_0x5027f2[_0x5da3ce('0x14d4')](),_0x304f3a[_0x5da3ce('0x23e')]=[_0x5da3ce('0x13af'),_0x5da3ce('0x25a5'),_0x5da3ce('0x1897'),_0x5da3ce('0x4c9'),'Highest'],_0x304f3a[_0x5da3ce('0x1dc1')]={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x304f3a[_0x5da3ce('0xd22')]={},_0x304f3a['query']={'id':_0x304f3a['currentUser']['id'],'fields':_0x5da3ce('0x1366'),'sort':_0x5da3ce('0x1b55'),'limit':0xa,'page':0x1},_0x304f3a[_0x5da3ce('0x5d6')]={'rows':[],'count':0x0},_0x304f3a['success']=_0x5aac83,_0x304f3a['getScheduledCalls']=_0x4ae360,_0x304f3a['onInit']=_0x34d8d2,_0x304f3a['isDateBeforeToday']=_0x4e3506,_0x304f3a[_0x5da3ce('0x272b')]=_0x15c7dd,_0x304f3a['deleteConfirm']=_0x17873d;function _0x34d8d2(){const _0x308c5e=_0x5da3ce;_0x30237b['user']['getQueues']({'id':_0x5027f2[_0x308c5e('0x14d4')]()['id'],'fields':_0x308c5e('0xd52'),'channel':'voice','type':'outbound','nolimit':!![]})['$promise'][_0x308c5e('0x173b')](function(_0x19d9fc){const _0x1ed9a0=_0x308c5e;_0x304f3a[_0x1ed9a0('0x5d6')]=_0x19d9fc||{'count':0x0,'rows':[]};})[_0x308c5e('0x173b')](function(){const _0x4e900c=_0x308c5e;_0x304f3a[_0x4e900c('0x485')]=_0x39decd();})[_0x308c5e('0x103c')](function(_0x16b2cf){const _0x55735c=_0x308c5e;console[_0x55735c('0x15aa')](_0x16b2cf);})[_0x308c5e('0xf25')](function(){const _0x25d062=_0x308c5e;let _0x42c798=_0xb7d148[_0x25d062('0x1937')][_0x25d062('0x1949')]('motion2.home.scheduled:'+_0x304f3a[_0x25d062('0x155f')]['id']);if(_0x42c798)try{_0x42c798=JSON[_0x25d062('0x1d5e')](_0x42c798),_0x42c798[_0x25d062('0xc49')]&&(_0x304f3a[_0x25d062('0xc49')]=_0x3c8d8a()['omit'](_0x42c798[_0x25d062('0xc49')],[_0x25d062('0x278d')]));}catch(_0x580439){console['error'](_0x580439);}else{const _0x41e241={'$gte':_0x156524()()[_0x25d062('0x2145')]('month')[_0x25d062('0xaf5')](0x0,!![])[_0x25d062('0xddc')](),'$lte':_0x156524()()[_0x25d062('0x733')](_0x25d062('0x70b'))[_0x25d062('0xaf5')](0x0,!![])[_0x25d062('0xddc')]()};_0x304f3a['query']['createdAt']=_0x41e241;}_0x304f3a[_0x25d062('0x1f41')]();});}function _0x5aac83(_0x1572af){const _0x389f48=_0x5da3ce;_0x304f3a[_0x389f48('0x1e9c')]=![],_0x304f3a[_0x389f48('0xd22')]=_0x1572af||{'count':0x0,'rows':[]};}function _0x39decd(){const _0x3cb6aa=_0x5da3ce;return[{'name':_0x3cb6aa('0x1406'),'key':_0x3cb6aa('0xda8'),'type':_0x3cb6aa('0x22b6'),'label':_0x3cb6aa('0xa98')},{'name':_0x3cb6aa('0x1eb4'),'key':_0x3cb6aa('0x11c9'),'type':'multiselect','label':_0x3cb6aa('0x497'),'options':_0x304f3a[_0x3cb6aa('0x5d6')][_0x3cb6aa('0x6aa')]}];}function _0x4ae360(){const _0x20d671=_0x5da3ce;_0x304f3a[_0x20d671('0x1e9c')]=!![],_0x304f3a[_0x20d671('0xc49')]['id']=_0x304f3a[_0x20d671('0x155f')]['id'],_0x304f3a[_0x20d671('0xc49')][_0x20d671('0x1dec')]=!![],_0x304f3a['query'][_0x20d671('0x17f0')]=(_0x304f3a[_0x20d671('0xc49')]['page']-0x1)*_0x304f3a['query'][_0x20d671('0x3e')];const _0x2a696e={'query':_0x304f3a[_0x20d671('0xc49')]};_0xb7d148[_0x20d671('0x1937')][_0x20d671('0x7e')]('motion2.home.scheduled:'+_0x304f3a['currentUser']['id'],JSON[_0x20d671('0x100b')](_0x2a696e)),_0x304f3a[_0x20d671('0x2219')]=_0x30237b[_0x20d671('0x166f')]['getScheduledCalls'](_0x304f3a['query'],_0x5aac83)[_0x20d671('0x1964')];}function _0x15c7dd(_0x3ee064,_0x321164){const _0x9d61ec=_0x5da3ce;_0x25e5bc[_0x9d61ec('0x1cb7')]({'controller':_0x9d61ec('0x1b9c'),'controllerAs':'vm','templateUrl':_0x47467f,'parent':angular[_0x9d61ec('0xb6d')](_0x4b29fd[_0x9d61ec('0x1a5')]),'targetEvent':_0x3ee064,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x321164,'hoppers':_0x304f3a[_0x9d61ec('0xd22')]['rows'],'license':null,'setting':null,'crudPermissions':_0x304f3a[_0x9d61ec('0x1dc1')]}});}function _0x24a47c(_0x108ca5){const _0x162780=_0x5da3ce;_0x30237b['cmHopper']['delete']({'id':_0x108ca5['id']})[_0x162780('0x1964')][_0x162780('0x173b')](function(){const _0x580fb4=_0x162780;_0x3c8d8a()[_0x580fb4('0x1a8b')](_0x304f3a['scheduledCalls'][_0x580fb4('0x6aa')],{'id':_0x108ca5['id']}),_0x304f3a['scheduledCalls'][_0x580fb4('0x1a2f')]-=0x1,!_0x304f3a['scheduledCalls'][_0x580fb4('0x6aa')][_0x580fb4('0x543')]&&_0x304f3a[_0x580fb4('0x1f41')](),_0xce1280[_0x580fb4('0xdfe')]({'title':_0x580fb4('0x4eb'),'msg':_0x108ca5['name']?_0x580fb4('0x4ed'):''});})['catch'](function(_0x27ff03){const _0x4f507d=_0x162780;if(_0x27ff03[_0x4f507d('0x1e07')]&&_0x27ff03[_0x4f507d('0x1e07')][_0x4f507d('0x1d4a')]&&_0x27ff03[_0x4f507d('0x1e07')][_0x4f507d('0x1d4a')]['length']){_0x304f3a['errors']=_0x27ff03[_0x4f507d('0x1e07')][_0x4f507d('0x1d4a')]||[{'message':_0x27ff03['toString'](),'type':_0x4f507d('0x1e72')}];for(let _0x4f7d32=0x0;_0x4f7d32<_0x27ff03[_0x4f507d('0x1e07')][_0x4f507d('0x1d4a')][_0x4f507d('0x543')];_0x4f7d32++){_0xce1280[_0x4f507d('0x15aa')]({'title':_0x27ff03[_0x4f507d('0x1e07')][_0x4f507d('0x1d4a')][_0x4f7d32][_0x4f507d('0x1810')],'msg':_0x27ff03['data'][_0x4f507d('0x1d4a')][_0x4f7d32][_0x4f507d('0x67f')]});}}else _0xce1280['error']({'title':_0x27ff03[_0x4f507d('0x276f')]?'API:'+_0x27ff03[_0x4f507d('0x276f')]+'\x20-\x20'+_0x27ff03[_0x4f507d('0x2696')]:_0x4f507d('0x1e72'),'msg':_0x27ff03[_0x4f507d('0x1e07')]?JSON['stringify'](_0x27ff03[_0x4f507d('0x1e07')][_0x4f507d('0x67f')]):_0x27ff03[_0x4f507d('0x67f')]||_0x27ff03['toString']()});});}function _0x17873d(_0x2ec009,_0x42321d){const _0x2076d7=_0x5da3ce,_0x4905cf=_0x25e5bc['confirm']()[_0x2076d7('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20scheduled\x20call?')[_0x2076d7('0xf8b')](_0x2076d7('0x2190')+_0x2076d7('0xd23'))[_0x2076d7('0x217')](_0x2076d7('0x15ce'))[_0x2076d7('0x21de')](_0x42321d)['ok']('OK')[_0x2076d7('0x1e1f')]('CANCEL');_0x25e5bc[_0x2076d7('0x1cb7')](_0x4905cf)[_0x2076d7('0x173b')](function(){_0x24a47c(_0x2ec009);},function(){const _0x3d1fb2=_0x2076d7;console['log'](_0x3d1fb2('0x468'));});}function _0x4e3506(_0x58c3eb){return _0x156524()(_0x58c3eb)['isBefore'](_0x156524()());}let _0x2b29e3=!![],_0x34b210=0x1;_0x551f4a[_0x5da3ce('0x1bdb')]('vm.query.filter',function(_0x512181,_0x53d5a9){const _0x3a8ea6=_0x5da3ce;_0x2b29e3?_0x1e0f40(function(){_0x2b29e3=![];}):(!_0x53d5a9&&(_0x34b210=_0x304f3a[_0x3a8ea6('0xc49')]['page']),_0x512181!==_0x53d5a9&&(_0x304f3a[_0x3a8ea6('0xc49')]['page']=0x1),!_0x512181&&(_0x304f3a['query']['page']=_0x34b210),_0x304f3a[_0x3a8ea6('0x1f41')]());});}const _0xe732eb=_0x521096;_0x2b60fa[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),'$mdDialog','$document',_0x566993('0x1d31'),'$translate',_0x566993('0xbd4'),'Auth',_0x566993('0x2fc'),_0x566993('0x1558'),'draftManager'];function _0x2b60fa(_0x2461f9,_0x3e9e9d,_0x7cd35c,_0x5a8a64,_0x44f6ae,_0x2ddff2,_0x344900,_0x1839d3,_0x504bed,_0x4a1ee7,_0x3d160a){const _0x5a5f7f=_0x566993,_0x3103df=this;_0x3103df['user']=_0x1839d3['getCurrentUser'](),_0x3103df['license']={},_0x3103df['setting']={},_0x3103df[_0x5a5f7f('0x22ac')]={'count':0x0,'rows':[]},_0x3103df[_0x5a5f7f('0xa0d')]={'count':0x0,'rows':[]},_0x3103df['query']={'includeAll':!![],'sort':_0x5a5f7f('0x1769'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x3103df[_0x5a5f7f('0x2706')]={'fields':[{'name':'Id','column':'id','type':_0x5a5f7f('0x1d81')},{'name':'Contact','column':_0x5a5f7f('0x1f70'),'type':_0x5a5f7f('0xe92'),'options':{'searchFields':['firstName',_0x5a5f7f('0x1806'),'email'],'route':{'model':_0x5a5f7f('0x1197'),'action':_0x5a5f7f('0x1d97'),'params':{'fields':_0x5a5f7f('0x1cf0'),'Contact':_0x5a5f7f('0xdd7'),'nolimit':!![]}},'extraOperators':[_0x5a5f7f('0x2694')],'excludedOperators':[_0x5a5f7f('0x10be')]}},{'name':_0x5a5f7f('0x176f'),'column':_0x5a5f7f('0x1a5'),'type':_0x5a5f7f('0x86e'),'options':{'excludedOperators':[_0x5a5f7f('0xc0c'),_0x5a5f7f('0x10be')]}},{'name':'Status','column':_0x5a5f7f('0x1636'),'type':_0x5a5f7f('0xc65'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x5a5f7f('0x1389')}],'options':{'excludedOperators':['$ne']}},{'name':_0x5a5f7f('0x1547'),'column':_0x5a5f7f('0x2265'),'type':_0x5a5f7f('0xe92'),'options':{'table':'i','route':{'model':_0x5a5f7f('0x166f'),'action':'get','params':{'role':_0x5a5f7f('0x7b0'),'fields':_0x5a5f7f('0x112d'),'nolimit':!![]}},'searchFields':['fullname',_0x5a5f7f('0x10ad')],'extraOperators':[_0x5a5f7f('0x2694')],'excludedOperators':['$ne']}},{'name':_0x5a5f7f('0x1b91'),'column':_0x5a5f7f('0x23b1'),'type':_0x5a5f7f('0x1c68'),'options':{'route':{'model':_0x5a5f7f('0x166f'),'action':'getSmsAccounts','params':{'id':_0x3103df['user']['id'],'nolimit':!![]}}}},{'name':_0x5a5f7f('0xc38'),'column':_0x5a5f7f('0x460'),'type':'multiselect','options':{'route':{'model':_0x5a5f7f('0x23b4'),'action':_0x5a5f7f('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5a5f7f('0x2232')]}},{'name':_0x5a5f7f('0x1406'),'column':_0x5a5f7f('0xda8'),'type':_0x5a5f7f('0x22b6'),'options':{'excludedOperators':[_0x5a5f7f('0x10be')]}},{'name':_0x5a5f7f('0x247a'),'column':'unreadMessages','type':_0x5a5f7f('0xc65'),'values':[{'id':0x1,'translate':_0x5a5f7f('0x1170')},{'id':0x0,'translate':_0x5a5f7f('0x1015')}],'options':{'excludedOperators':[_0x5a5f7f('0x10be')]}}]},_0x3103df[_0x5a5f7f('0x1c9a')]=_0x5a5f7f('0x1989'),_0x3103df[_0x5a5f7f('0x2535')]=_0x5f4f7e,_0x3103df[_0x5a5f7f('0xdfe')]=_0x1b8eb7,_0x3103df[_0x5a5f7f('0x8e8')]=_0xf54efd,_0x3103df[_0x5a5f7f('0x1a7b')]=_0x3049f8,_0x3103df[_0x5a5f7f('0xb91')]=_0x45513f,_0x3103df['disposeInteraction']=_0x5db40b,_0x3103df['getContactLabel']=_0x4aa4c8,_0x3103df[_0x5a5f7f('0x25e3')]=_0x4e1d47,_0x3103df['getSmsAccountLabel']=_0x56c81d,_0x3103df[_0x5a5f7f('0x2645')]=_0xdb01ec,_0x3103df[_0x5a5f7f('0x159d')]=_0x25d7f0,_0x3103df[_0x5a5f7f('0x1691')]=_0x305668,_0x3103df[_0x5a5f7f('0x6f1')]=_0x2cdb2b;function _0x5f4f7e(_0x12f53d,_0x4a78ef){const _0x48de35=_0x5a5f7f;return _0x3103df[_0x48de35('0x1a29')]=_0x12f53d,_0x3103df[_0x48de35('0x251')]=_0x4a78ef,_0x344900[_0x48de35('0x166f')][_0x48de35('0x1d97')+_0x3c8d8a()['upperFirst'](_0x48de35('0x130a'))]({'id':_0x3103df[_0x48de35('0x166f')]['id'],'nolimit':!![]})['$promise'][_0x48de35('0x173b')](function(_0x2ca0c9){const _0x3d32af=_0x48de35;return _0x3103df[_0x3d32af('0x130a')]=_0x2ca0c9||{'count':0x0,'rows':[]},_0x344900['tag'][_0x3d32af('0x1d97')]()[_0x3d32af('0x1964')];})['then'](function(_0x3eb38a){const _0x508c58=_0x48de35;_0x3103df[_0x508c58('0x22ac')]=_0x3eb38a||{'count':0x0,'rows':[]};})['then'](function(){const _0x3259c2=_0x48de35;_0x3103df[_0x3259c2('0x485')]=_0x270e29();})['catch'](function(_0x3580bf){const _0x242c71=_0x48de35;console[_0x242c71('0x15aa')](_0x3580bf);})[_0x48de35('0xf25')](function(){const _0x9ca26b=_0x48de35;let _0x1d8837=_0x44f6ae[_0x9ca26b('0x1937')][_0x9ca26b('0x1949')]('motion2.home.sms:'+_0x3103df[_0x9ca26b('0x166f')]['id']);if(_0x1d8837)try{_0x1d8837=JSON[_0x9ca26b('0x1d5e')](_0x1d8837);if(_0x1d8837[_0x9ca26b('0xc49')]){_0x3103df[_0x9ca26b('0xc49')]=_0x3c8d8a()[_0x9ca26b('0x9ef')](_0x3103df[_0x9ca26b('0xc49')],_0x1d8837[_0x9ca26b('0xc49')]);if(_0x3c8d8a()[_0x9ca26b('0x1a56')](_0x3103df[_0x9ca26b('0x130a')]['rows']))_0x3103df['query']['SmsAccountId']=[];else _0x3c8d8a()[_0x9ca26b('0x1a56')](_0x3103df[_0x9ca26b('0xc49')][_0x9ca26b('0x23b1')])&&(_0x3103df[_0x9ca26b('0xc49')][_0x9ca26b('0x23b1')]=_0x3c8d8a()(_0x3103df['smsAccounts'][_0x9ca26b('0x6aa')])[_0x9ca26b('0x8a2')]('id')['take']()['value']());_0x3103df['query'][_0x9ca26b('0xfbe')]&&_0x3103df[_0x9ca26b('0xc49')][_0x9ca26b('0xfbe')][_0x9ca26b('0x2087')]('lastMessage')>=0x0&&(_0x3103df['query']=_0x3c8d8a()[_0x9ca26b('0x2797')](_0x3103df[_0x9ca26b('0xc49')],_0x9ca26b('0xfbe'))),_0x3103df[_0x9ca26b('0xc49')]['includeAll']=!![],_0x3103df['isSearchBarVisible']=_0x3103df['query']['filter']?!![]:![];}}catch(_0x5185cf){console[_0x9ca26b('0x15aa')](_0x5185cf);}else{const _0x79c11d={'$gte':_0x156524()()[_0x9ca26b('0x2145')]('month')[_0x9ca26b('0xaf5')](0x0,!![])['format'](),'$lte':_0x156524()()['endOf'](_0x9ca26b('0x70b'))[_0x9ca26b('0xaf5')](0x0,!![])[_0x9ca26b('0xddc')]()},_0x2e3d0f={'SmsAccountId':_0x3c8d8a()[_0x9ca26b('0x8a2')](_0x3103df['smsAccounts'][_0x9ca26b('0x6aa')],'id'),'createdAt':_0x79c11d};_0x3103df[_0x9ca26b('0xc49')]=_0x3c8d8a()[_0x9ca26b('0x9ef')](_0x3103df[_0x9ca26b('0xc49')],_0x2e3d0f);}_0x504bed['on'](_0x9ca26b('0x2660'),_0x1e5b37),_0x504bed['on']('smsInteraction:update',_0x1e5b37),_0x504bed['on']('smsInteractionTags:save',_0xa8286c),_0x504bed['on'](_0x9ca26b('0x255a'),_0x47aefe),_0x504bed['on'](_0x9ca26b('0x2438'),_0x47aefe),_0x504bed['on'](_0x9ca26b('0x74e'),_0x44d2a5),_0x504bed['on'](_0x9ca26b('0x1b2a'),_0x986af0),_0xf54efd(_0x3103df['query'][_0x9ca26b('0x182e')]);});}function _0x270e29(){const _0x3ec438=_0x5a5f7f;return[{'name':_0x3ec438('0x1406'),'key':_0x3ec438('0xda8'),'type':_0x3ec438('0x22b6'),'label':_0x3ec438('0xa98')},{'name':_0x3ec438('0x2634'),'key':'read','type':_0x3ec438('0xc65'),'label':_0x3ec438('0x1881'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':_0x3ec438('0x1170')},{'value':null,'translate':_0x3ec438('0x47a')}]},{'name':'Status','key':_0x3ec438('0x1636'),'type':_0x3ec438('0xc65'),'label':_0x3ec438('0x1647'),'customOptions':[{'value':0x0,'translate':_0x3ec438('0x163c')},{'value':0x1,'translate':_0x3ec438('0x1389')},{'value':null,'translate':_0x3ec438('0x47a')}]},{'name':'Account','key':'SmsAccountId','type':_0x3ec438('0x1c68'),'label':_0x3ec438('0x7b4'),'options':_0x3103df[_0x3ec438('0x130a')][_0x3ec438('0x6aa')],'clearAll':![]},{'name':_0x3ec438('0x1547'),'key':_0x3ec438('0x181c'),'type':_0x3ec438('0xc65'),'label':_0x3ec438('0x956'),'customOptions':[{'value':_0x3103df[_0x3ec438('0x166f')]['id'],'translate':_0x3ec438('0x2449')},{'value':_0x3ec438('0x877'),'translate':_0x3ec438('0x27a8')},{'value':undefined,'translate':_0x3ec438('0x47a')}]},{'name':'Tag','key':_0x3ec438('0x23b4'),'type':'multiselect','label':_0x3ec438('0x1e6f'),'options':_0x3103df[_0x3ec438('0x22ac')]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x1b8eb7(_0x114869){const _0x2e1f8a=_0x5a5f7f;_0x3103df[_0x2e1f8a('0x1e9c')]=![],_0x3103df['smsInteractions']=_0x114869||{'count':0x0,'rows':[]};for(let _0xbd3c01=0x0;_0xbd3c01<_0x3103df[_0x2e1f8a('0xa0d')][_0x2e1f8a('0x6aa')][_0x2e1f8a('0x543')];_0xbd3c01+=0x1){_0x4aa4c8(_0x3103df[_0x2e1f8a('0xa0d')][_0x2e1f8a('0x6aa')][_0xbd3c01]);}}function _0xf54efd(_0x1d9745){const _0x4a3a3c=_0x5a5f7f;_0x3103df['searchInProgress']=!![];!_0x1d9745&&(_0x3103df[_0x4a3a3c('0xc49')][_0x4a3a3c('0x182e')]=0x1);_0x3103df[_0x4a3a3c('0xc49')]['offset']=(_0x3103df['query'][_0x4a3a3c('0x182e')]-0x1)*_0x3103df[_0x4a3a3c('0xc49')][_0x4a3a3c('0x3e')];let _0x7d85e8=_0x44f6ae[_0x4a3a3c('0x1937')][_0x4a3a3c('0x1949')](_0x4a3a3c('0x1ed9')+_0x3103df['user']['id']);_0x7d85e8=_0x7d85e8?JSON[_0x4a3a3c('0x1d5e')](_0x7d85e8):{},_0x7d85e8[_0x4a3a3c('0xc49')]=_0x3103df[_0x4a3a3c('0xc49')],_0x44f6ae[_0x4a3a3c('0x1937')]['setItem'](_0x4a3a3c('0x1ed9')+_0x3103df[_0x4a3a3c('0x166f')]['id'],JSON[_0x4a3a3c('0x100b')](_0x7d85e8)),_0x3103df[_0x4a3a3c('0x2219')]=_0x344900[_0x4a3a3c('0x1145')][_0x4a3a3c('0x1d97')](_0x3103df['query'],_0x1b8eb7)[_0x4a3a3c('0x1964')];}function _0x3049f8(_0x1d2c0c,_0x1d2b7b){const _0x40e83e=_0x5a5f7f;_0x2461f9[_0x40e83e('0x1d44')]['vm']['addInteractionTab']('sms',_0x1d2b7b);}function _0x45513f(_0x3576f4,_0x3f9ded,_0x402eb5){const _0x1be9c6=_0x5a5f7f;_0x344900[_0x1be9c6('0x1145')]['download']({'id':_0x3f9ded['id'],'attachments':_0x402eb5})['$promise'][_0x1be9c6('0x173b')](function(_0x2b721b){const _0x41985e=_0x1be9c6,_0x297e2b=[_0x2b721b[_0x41985e('0x1c22')]],_0x1dc1bf='sms-interaction'+_0x3f9ded['id']+_0x41985e('0x1421'),_0x622c5=new Blob(_0x297e2b,{'type':_0x2b721b[_0x41985e('0x1810')]}),_0x4ae98c=window['document'][_0x41985e('0x1258')]('a');_0x4ae98c[_0x41985e('0x11c3')](_0x41985e('0x165c'),URL[_0x41985e('0x1466')](_0x622c5)),_0x4ae98c[_0x41985e('0x11c3')](_0x41985e('0xfce'),_0x1dc1bf),document['body'][_0x41985e('0x1f8d')](_0x4ae98c),_0x4ae98c[_0x41985e('0x3cb')]();})[_0x1be9c6('0x103c')](function(_0x342b10){const _0x50b8f4=_0x1be9c6;if(_0x342b10['data']&&_0x342b10[_0x50b8f4('0x1e07')][_0x50b8f4('0x1d4a')]&&_0x342b10[_0x50b8f4('0x1e07')]['errors'][_0x50b8f4('0x543')])for(let _0x285e95=0x0;_0x285e95<_0x342b10['data']['errors'][_0x50b8f4('0x543')];_0x285e95+=0x1){_0x4a1ee7['error']({'title':_0x342b10[_0x50b8f4('0x1e07')][_0x50b8f4('0x1d4a')][_0x285e95]['type'],'msg':_0x342b10[_0x50b8f4('0x1e07')][_0x50b8f4('0x1d4a')][_0x285e95][_0x50b8f4('0x67f')]});}else _0x4a1ee7[_0x50b8f4('0x15aa')]({'title':_0x342b10[_0x50b8f4('0x276f')]?_0x50b8f4('0x137')+_0x342b10['status']+_0x50b8f4('0x160c')+_0x342b10[_0x50b8f4('0x2696')]:_0x50b8f4('0xb91'),'msg':_0x342b10['data']?JSON[_0x50b8f4('0x100b')](_0x342b10[_0x50b8f4('0x1e07')][_0x50b8f4('0x67f')]):_0x342b10[_0x50b8f4('0x1b75')]()});});}function _0x5db40b(_0x6b3616,_0x17811a){const _0x3b8346=_0x5a5f7f,_0x326549=_0x3103df[_0x3b8346('0x166f')][_0x3b8346('0x67c')]||_0x3103df['user'][_0x3b8346('0x988')]||_0x3103df['user'][_0x3b8346('0xf41')]||_0x3103df[_0x3b8346('0x166f')]['openchannelPause']||_0x3103df[_0x3b8346('0x166f')][_0x3b8346('0x13eb')],_0x39612f=!_0x17811a['Account']['mandatoryDisposition'];_0x7cd35c[_0x3b8346('0x1cb7')]({'controller':_0x3b8346('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular['element'](_0x5a8a64[_0x3b8346('0x1a5')]),'clickOutsideToClose':_0x39612f,'escapeToClose':_0x39612f,'onRemoving':function(){const _0x260b7a=_0x3b8346;_0x3103df[_0x260b7a('0x166f')]&&_0x17811a[_0x260b7a('0x1b91')][_0x260b7a('0x130f')]&&!_0x326549&&_0x344900[_0x260b7a('0x166f')][_0x260b7a('0x9da')]({'id':_0x3103df[_0x260b7a('0x166f')]['id']})['$promise'][_0x260b7a('0x103c')](function(_0x4d331d){console['error'](_0x4d331d);});},'locals':{'user':_0x3103df['user'],'channel':_0x3b8346('0x1a8f'),'interaction':_0x17811a}});}function _0x4aa4c8(_0x964a33){const _0x1032e1=_0x5a5f7f;_0x964a33[_0x1032e1('0x1f70')]?(_0x964a33['contactName']=(_0x964a33[_0x1032e1('0x1f70')][_0x1032e1('0x1e50')]||'')+'\x20'+(_0x964a33['Contact'][_0x1032e1('0x1806')]||''),_0x964a33['contactInfo']=_0x964a33[_0x1032e1('0x1f70')][_0x1032e1('0x1c56')]):_0x964a33['contactName']=_0x2ddff2['instant'](_0x1032e1('0x172b'));}function _0x4e1d47(_0xb12ee0){const _0x15bc2a=_0x5a5f7f;if(_0xb12ee0[_0x15bc2a('0x181c')])return _0xb12ee0['UserId']===_0x3103df[_0x15bc2a('0x166f')]['id']?_0x2ddff2[_0x15bc2a('0x1467')](_0x15bc2a('0x2449')):_0xb12ee0[_0x15bc2a('0x274f')][_0x15bc2a('0x572')]+'\x20<'+_0xb12ee0[_0x15bc2a('0x274f')][_0x15bc2a('0x138c')]+'>';return _0x2ddff2['instant'](_0x15bc2a('0x27a8'));}function _0x56c81d(_0x5e571d){const _0x1ae708=_0x5a5f7f;if(_0x5e571d['Account'])return _0x5e571d['Account']['key'];return _0x2ddff2[_0x1ae708('0x1467')](_0x1ae708('0x172b'));}function _0xdb01ec(_0x188076,_0x443ee2){const _0x18cdca=_0x5a5f7f;_0x7cd35c['show']({'controller':_0x18cdca('0xd4b'),'controllerAs':'vm','templateUrl':_0x317183,'parent':angular[_0x18cdca('0xb6d')](_0x5a8a64['body']),'clickOutsideToClose':![],'locals':{'account':_0x443ee2,'message':{},'type':_0x18cdca('0x195f'),'interaction':{}},'fullscreen':!![]})[_0x18cdca('0x173b')](function(_0x3d48a3){const _0x18685d=_0x18cdca;if(_0x3d48a3){if(_0x3d48a3[_0x18685d('0x67f')]&&_0x3d48a3[_0x18685d('0x67f')]['savedAsDraft']){const _0x4e663f={'channel':_0x18685d('0x1a8f'),'account':_0x443ee2,'message':_0x3d48a3[_0x18685d('0x67f')],'contact':_0x3d48a3['contact']};_0x3d160a[_0x18685d('0x623')](_0x4e663f);}else{const _0x5b534c=_0x3d48a3;return _0x344900[_0x18685d('0x1e37')]['send']({'id':_0x443ee2['id']},_0x5b534c)[_0x18685d('0x1964')][_0x18685d('0x173b')](function(_0x2320cb){const _0x540b8c=_0x18685d;_0x4a1ee7[_0x540b8c('0xdfe')]({'title':_0x540b8c('0x2370'),'msg':_0x540b8c('0x1950')}),_0x2461f9[_0x540b8c('0x1d44')]['vm'][_0x540b8c('0xe63')](_0x540b8c('0x1a8f'),_0x2320cb);})[_0x18685d('0x103c')](function(_0x21289f){const _0x387eeb=_0x18685d;if(_0x21289f[_0x387eeb('0x1e07')]&&_0x21289f[_0x387eeb('0x1e07')]['errors']&&_0x21289f['data']['errors'][_0x387eeb('0x543')])for(let _0x4d4c7d=0x0;_0x4d4c7d<_0x21289f[_0x387eeb('0x1e07')][_0x387eeb('0x1d4a')]['length'];_0x4d4c7d++){_0x4a1ee7['error']({'title':_0x21289f[_0x387eeb('0x1e07')][_0x387eeb('0x1d4a')][_0x4d4c7d]['type'],'msg':_0x21289f[_0x387eeb('0x1e07')][_0x387eeb('0x1d4a')][_0x4d4c7d]['message']});}else _0x4a1ee7[_0x387eeb('0x15aa')]({'title':_0x21289f[_0x387eeb('0x276f')]?'API:'+_0x21289f['status']+_0x387eeb('0x160c')+_0x21289f['statusText']:_0x387eeb('0x790'),'msg':_0x21289f[_0x387eeb('0x1e07')]?JSON['stringify'](_0x21289f['data'][_0x387eeb('0x67f')]):_0x21289f[_0x387eeb('0x67f')]||_0x21289f[_0x387eeb('0x1b75')]()});});}}});}function _0x44d2a5(_0x4122e4){const _0x403873=_0x5a5f7f;let _0x24a2e0;const _0x152605=_0x3c8d8a()[_0x403873('0x18ab')](_0x3103df[_0x403873('0xa0d')]['rows'],{'id':_0x4122e4[_0x403873('0xdc')]});_0x152605&&_0x152605[_0x403873('0x1999')]&&(_0x24a2e0=_0x3c8d8a()[_0x403873('0x18ab')](_0x152605[_0x403873('0x1999')],{'id':_0x4122e4[_0x403873('0x181c')]}),!_0x24a2e0&&_0x152605[_0x403873('0x1999')][_0x403873('0x18bb')]({'id':_0x4122e4[_0x403873('0x181c')]}));}function _0x986af0(_0x3ed687){const _0x2cbd35=_0x5a5f7f,_0x42100a=_0x3c8d8a()['find'](_0x3103df[_0x2cbd35('0xa0d')][_0x2cbd35('0x6aa')],{'id':_0x3ed687[_0x2cbd35('0xdc')]});_0x42100a&&_0x42100a[_0x2cbd35('0x1999')]&&_0x3c8d8a()[_0x2cbd35('0x1a8b')](_0x42100a[_0x2cbd35('0x1999')],{'id':_0x3ed687[_0x2cbd35('0x181c')]});}function _0x1e5b37(_0x9e141){const _0x8dd48b=_0x5a5f7f;if(_0x9e141){const _0x91afff=_0x3c8d8a()[_0x8dd48b('0x18ab')](_0x3103df[_0x8dd48b('0xa0d')][_0x8dd48b('0x6aa')],{'id':_0x9e141['id']});if(_0x91afff){_0x91afff[_0x8dd48b('0x1999')]=[];_0x9e141['closed']&&(_0x91afff[_0x8dd48b('0x25e9')]=0x0);if(_0x3103df[_0x8dd48b('0xc49')][_0x8dd48b('0xfbe')]){const _0x3fb108=_0x3c8d8a()[_0x8dd48b('0x17b2')](_0x3103df[_0x8dd48b('0xc49')][_0x8dd48b('0xfbe')],'-')?'desc':_0x8dd48b('0xcc1');_0x3103df[_0x8dd48b('0xa0d')][_0x8dd48b('0x6aa')]=_0x3c8d8a()[_0x8dd48b('0x1d16')](_0x3103df[_0x8dd48b('0xa0d')][_0x8dd48b('0x6aa')],_0x3c8d8a()['trimStart'](_0x3103df[_0x8dd48b('0xc49')][_0x8dd48b('0xfbe')],'-'),_0x3fb108);}_0x3c8d8a()[_0x8dd48b('0x9ef')](_0x91afff,_0x3c8d8a()['pick'](_0x9e141,_0x3c8d8a()[_0x8dd48b('0x1d3e')](_0x91afff)));}else _0xf54efd(_0x3103df['query']['page']);}}function _0xa8286c(_0x48ea45){const _0x162722=_0x5a5f7f;if(_0x48ea45){const _0x56c6f7=_0x3c8d8a()[_0x162722('0x18ab')](_0x3103df['smsInteractions'][_0x162722('0x6aa')],{'id':_0x48ea45['id']});_0x56c6f7&&(_0x56c6f7[_0x162722('0xc38')]=_0x48ea45[_0x162722('0x22ac')]||[],_0x3c8d8a()['merge'](_0x56c6f7,_0x3c8d8a()['pick'](_0x48ea45,_0x3c8d8a()['keys'](_0x56c6f7))));}}function _0x47aefe(_0x57b9c4){const _0x1f4b39=_0x5a5f7f;if(_0x57b9c4&&!_0x57b9c4[_0x1f4b39('0x27ed')]){const _0x8864cf=_0x3c8d8a()['find'](_0x3103df[_0x1f4b39('0xa0d')][_0x1f4b39('0x6aa')],{'id':_0x57b9c4[_0x1f4b39('0xdc')]});if(_0x8864cf){const _0x38d4da=_0x3c8d8a()[_0x1f4b39('0x18ab')](_0x8864cf[_0x1f4b39('0x2634')],{'id':_0x57b9c4['id']});_0x38d4da?_0x3c8d8a()[_0x1f4b39('0x9ef')](_0x38d4da,_0x3c8d8a()[_0x1f4b39('0x2114')](_0x57b9c4,_0x3c8d8a()['keys'](_0x38d4da))):(_0x3c8d8a()['isNil'](_0x8864cf['Messages'])&&(_0x8864cf[_0x1f4b39('0x2634')]={'count':0x0}),!_0x57b9c4[_0x1f4b39('0x69b')]&&(_0x8864cf['Messages'][_0x1f4b39('0x1a2f')]+=0x1));}}}function _0x25d7f0(){const _0x53e76b=_0x5a5f7f;_0x3103df[_0x53e76b('0x82f')]=![];}function _0x305668(){const _0x1f94a6=_0x5a5f7f;_0x3103df[_0x1f94a6('0x82f')]=!![];}function _0x2cdb2b(){const _0x160a00=_0x5a5f7f;_0x3103df[_0x160a00('0x82f')]=![],_0x7cd35c[_0x160a00('0x1cb7')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x160a00('0xb6d')](_0x5a8a64['body']),'clickOutsideToClose':![],'locals':{'color':_0x3103df[_0x160a00('0x1c9a')],'fields':_0x3103df[_0x160a00('0x2706')]['fields'],'storagePath':'home.sms'},'fullscreen':!![]})['then'](function(_0x396449){const _0x163d3a=_0x160a00;_0x3103df['query']['search']=_0x396449===![]?undefined:_0x396449;if(_0x3103df['query'][_0x163d3a('0x23e7')]||_0x396449===![])_0xf54efd();})[_0x160a00('0x103c')](function(_0x513d50){const _0x2fcc9d=_0x160a00;_0x4a1ee7[_0x2fcc9d('0x15aa')]({'title':_0x2fcc9d('0x280c'),'msg':_0x513d50['data']?JSON[_0x2fcc9d('0x100b')](_0x513d50[_0x2fcc9d('0x1e07')]['message']):_0x513d50['toString']()});});}let _0x5e3e78=!![],_0x1d0645=0x1;_0x2461f9['$watch'](_0x5a5f7f('0x157b'),function(_0x30053d,_0x49580c){const _0x26233b=_0x5a5f7f;_0x5e3e78?_0x3e9e9d(function(){_0x5e3e78=![];}):(!_0x49580c&&(_0x1d0645=_0x3103df[_0x26233b('0xc49')][_0x26233b('0x182e')]),_0x30053d!==_0x49580c&&(_0x3103df[_0x26233b('0xc49')]['page']=0x1),!_0x30053d&&(_0x3103df[_0x26233b('0xc49')]['page']=_0x1d0645),_0xf54efd(_0x3103df[_0x26233b('0xc49')][_0x26233b('0x182e')]));}),_0x2461f9[_0x5a5f7f('0xbf6')]('$destroy',function(){const _0x26e2be=_0x5a5f7f;_0x504bed[_0x26e2be('0x251c')](_0x26e2be('0x255a')),_0x504bed[_0x26e2be('0x251c')](_0x26e2be('0x2438')),_0x504bed[_0x26e2be('0x251c')](_0x26e2be('0x2660')),_0x504bed['removeAllListeners']('smsInteractionTags:save'),_0x504bed[_0x26e2be('0x251c')](_0x26e2be('0x63f')),_0x504bed[_0x26e2be('0x251c')]('user_has_sms_interactions:save'),_0x504bed[_0x26e2be('0x251c')](_0x26e2be('0x1b2a'));});}const _0x9a6fdf=_0x2b60fa,_0xedbc79=_0x21a6a1['p']+_0x566993('0x438');_0x4a4fdf[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0x1b82'),_0x566993('0xbd4'),_0x566993('0x1558'),'Auth',_0x566993('0x1d31'),'$scope',_0x566993('0x24b5')];function _0x4a4fdf(_0x51200a,_0xf2fdf1,_0x401c82,_0x30a499,_0x459b89,_0x593b2f,_0x4d63c7,_0x3881c1){const _0x1fc7df=_0x566993,_0x194678=this;_0x194678[_0x1fc7df('0x155f')]=_0x459b89[_0x1fc7df('0x14d4')](),_0x194678[_0x1fc7df('0x1b83')]={},_0x194678[_0x1fc7df('0xdf9')]=_0x1fc7df('0x1b83'),_0x194678[_0x1fc7df('0xc49')]={'UserId':_0x194678[_0x1fc7df('0x155f')]['id'],'fields':_0x1fc7df('0x3'),'sort':_0x1fc7df('0x1769'),'limit':0xa,'page':0x1,'type':null},_0x194678[_0x1fc7df('0xdfe')]=_0x4f2c5a,_0x194678[_0x1fc7df('0xa7d')]=_0x22248c,_0x194678[_0x1fc7df('0x2535')]=_0x3ef5b3,_0x194678['showDetails']=_0x59a740,_0x194678[_0x1fc7df('0x159d')]=_0x4b0954,_0x194678[_0x1fc7df('0x1691')]=_0x3ac8eb;function _0x3ef5b3(){const _0x4f9e44=_0x1fc7df;return _0x401c82[_0x4f9e44('0x23b4')][_0x4f9e44('0x1d97')]()[_0x4f9e44('0x1964')][_0x4f9e44('0x173b')](function(_0x5cf02d){const _0x1ffc18=_0x4f9e44;_0x194678[_0x1ffc18('0x22ac')]=_0x5cf02d||{'count':0x0,'rows':[]};})[_0x4f9e44('0x173b')](function(){_0x194678['quickFilters']=_0x4000d9();})[_0x4f9e44('0x103c')](function(_0x4ddfe3){const _0x41ae48=_0x4f9e44;_0x30a499[_0x41ae48('0x15aa')]({'title':'Init\x20error','msg':_0x4ddfe3['data']?JSON[_0x41ae48('0x100b')](_0x4ddfe3[_0x41ae48('0x1e07')][_0x41ae48('0x67f')]):_0x4ddfe3[_0x41ae48('0x67f')]||_0x4ddfe3[_0x41ae48('0x1b75')]()}),_0x194678[_0x41ae48('0x22ac')]={'count':0x0,'rows':[]};})[_0x4f9e44('0xf25')](function(){const _0x3fd86c=_0x4f9e44;let _0x2902fe=_0x593b2f[_0x3fd86c('0x1937')][_0x3fd86c('0x1949')](_0x3fd86c('0x108e')+_0x194678[_0x3fd86c('0x155f')]['id']);if(_0x2902fe)try{_0x2902fe=JSON[_0x3fd86c('0x1d5e')](_0x2902fe),_0x2902fe[_0x3fd86c('0xc49')]&&(_0x194678[_0x3fd86c('0xc49')]=_0x3c8d8a()[_0x3fd86c('0x2797')](_0x2902fe['query'],_0x3fd86c('0x278d')));}catch(_0x408885){console[_0x3fd86c('0x15aa')](_0x408885);}else{const _0x1812f2={'$gte':_0x156524()()['startOf']('month')[_0x3fd86c('0xaf5')](0x0,!![])[_0x3fd86c('0xddc')](),'$lte':_0x156524()()[_0x3fd86c('0x733')](_0x3fd86c('0x70b'))['utcOffset'](0x0,!![])[_0x3fd86c('0xddc')]()};_0x194678[_0x3fd86c('0xc49')]['createdAt']=_0x1812f2;}_0x22248c();});}function _0x4000d9(){const _0x460439=_0x1fc7df;return[{'name':_0x460439('0x1406'),'key':_0x460439('0xda8'),'type':_0x460439('0x22b6'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x460439('0x1899'),'key':_0x460439('0x1810'),'type':'select','label':_0x460439('0x27f5'),'customOptions':[{'value':_0x460439('0x138c'),'translate':_0x460439('0x13ad')},{'value':_0x460439('0x1755'),'translate':_0x460439('0x1364')},{'value':_0x460439('0xb33'),'translate':_0x460439('0x1fc')},{'value':_0x460439('0x707'),'translate':_0x460439('0x13de')},{'value':null,'translate':_0x460439('0x272e')}]}];}function _0x4f2c5a(_0x118b55){const _0x1926f1=_0x1fc7df;_0x194678['searchInProgress']=![],_0x194678[_0x1926f1('0x1b83')]=_0x118b55||{'count':0x0,'rows':[]};}function _0x22248c(){const _0x44e7bc=_0x1fc7df;_0x194678['searchInProgress']=!![],_0x194678[_0x44e7bc('0xc49')][_0x44e7bc('0x17f0')]=(_0x194678[_0x44e7bc('0xc49')][_0x44e7bc('0x182e')]-0x1)*_0x194678[_0x44e7bc('0xc49')][_0x44e7bc('0x3e')];const _0x2358a7={'query':_0x194678[_0x44e7bc('0xc49')]};_0x593b2f[_0x44e7bc('0x1937')][_0x44e7bc('0x7e')](_0x44e7bc('0x108e')+_0x194678['currentUser']['id'],JSON[_0x44e7bc('0x100b')](_0x2358a7)),_0x194678[_0x44e7bc('0x2219')]=_0x401c82[_0x44e7bc('0x250f')][_0x44e7bc('0x1d97')](_0x194678['query'],_0x4f2c5a)[_0x44e7bc('0x1964')];}function _0x59a740(_0x1c458f){const _0x4ec768=_0x1fc7df;_0x51200a[_0x4ec768('0x1cb7')]({'controller':_0x4ec768('0x1b84'),'controllerAs':'vm','templateUrl':_0xedbc79,'parent':angular[_0x4ec768('0xb6d')](_0xf2fdf1['body']),'clickOutsideToClose':!![],'locals':{'call':_0x1c458f}});}function _0x4b0954(){const _0x552260=_0x1fc7df;_0x194678['query'][_0x552260('0x278d')]=undefined,_0x194678[_0x552260('0x82f')]=![];}function _0x3ac8eb(){const _0x272714=_0x1fc7df;_0x194678[_0x272714('0x82f')]=!![];}let _0x854f89=!![],_0x1c524b=0x1;_0x4d63c7[_0x1fc7df('0x1bdb')](_0x1fc7df('0x157b'),function(_0x10e0d4,_0x13d727){const _0x134e1d=_0x1fc7df;_0x854f89?_0x3881c1(function(){_0x854f89=![];}):(!_0x13d727&&(_0x1c524b=_0x194678[_0x134e1d('0xc49')][_0x134e1d('0x182e')]),_0x10e0d4!==_0x13d727&&(_0x194678[_0x134e1d('0xc49')][_0x134e1d('0x182e')]=0x1),!_0x10e0d4&&(_0x194678['query'][_0x134e1d('0x182e')]=_0x1c524b),_0x194678[_0x134e1d('0xa7d')]());});}const _0xbad01d=_0x4a4fdf;_0x45b0a3[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x67a')];function _0x45b0a3(_0x11de3e,_0x335dda){const _0x582499=_0x566993,_0x7e40d7=this;_0x7e40d7[_0x582499('0x67a')]=_0x335dda;function _0x563a17(){const _0x129559=_0x582499;_0x11de3e[_0x129559('0x1cf4')]();}_0x7e40d7[_0x582499('0x18e2')]=_0x563a17;}const _0x1a2a23=_0x45b0a3;_0x1f4be7[_0x566993('0x17bb')]=['$scope','$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1d31'),_0x566993('0x638'),_0x566993('0xbd4'),'Auth',_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x2b7')];function _0x1f4be7(_0x15968f,_0x5071fe,_0x3bcfe2,_0x3234e1,_0x1cb7fb,_0x3d73cf,_0x1370d6,_0x50ce13,_0x572de6,_0x29399d,_0x4aa5ad){const _0x23b1cc=_0x566993,_0x1d3511=this;_0x1d3511[_0x23b1cc('0x166f')]=_0x50ce13[_0x23b1cc('0x14d4')](),_0x1d3511[_0x23b1cc('0x1a29')]={},_0x1d3511[_0x23b1cc('0x251')]={},_0x1d3511[_0x23b1cc('0x22ac')]={'count':0x0,'rows':[]},_0x1d3511[_0x23b1cc('0x742')]={'count':0x0,'rows':[]},_0x1d3511[_0x23b1cc('0xc49')]={'includeAll':!![],'sort':_0x23b1cc('0x1769'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x1d3511[_0x23b1cc('0x2706')]={'fields':[{'name':'Id','column':'id','type':_0x23b1cc('0x1d81')},{'name':_0x23b1cc('0x1f70'),'column':_0x23b1cc('0x1f70'),'type':'autocomplete','options':{'searchFields':[_0x23b1cc('0x1e50'),_0x23b1cc('0x1806'),_0x23b1cc('0x28e')],'route':{'model':'cmContact','action':_0x23b1cc('0x1d97'),'params':{'fields':_0x23b1cc('0x1cf0'),'Contact':_0x23b1cc('0xdd7'),'nolimit':!![]}},'extraOperators':[_0x23b1cc('0x2694')],'excludedOperators':[_0x23b1cc('0x10be')]}},{'name':_0x23b1cc('0x176f'),'column':_0x23b1cc('0x1a5'),'type':_0x23b1cc('0x86e'),'options':{'excludedOperators':['$eq',_0x23b1cc('0x10be')]}},{'name':'Status','column':_0x23b1cc('0x1636'),'type':_0x23b1cc('0xc65'),'values':[{'id':0x0,'translate':_0x23b1cc('0x163c')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x23b1cc('0x10be')]}},{'name':_0x23b1cc('0x1547'),'column':_0x23b1cc('0x2265'),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':'get','params':{'role':_0x23b1cc('0x7b0'),'fields':_0x23b1cc('0x112d'),'nolimit':!![]}},'searchFields':[_0x23b1cc('0x572'),_0x23b1cc('0x10ad')],'extraOperators':[_0x23b1cc('0x2694')],'excludedOperators':['$ne']}},{'name':_0x23b1cc('0x1b91'),'column':_0x23b1cc('0x2720'),'type':_0x23b1cc('0x1c68'),'options':{'route':{'model':_0x23b1cc('0x166f'),'action':'getWhatsappAccounts','params':{'id':_0x1d3511['user']['id'],'nolimit':!![]}}}},{'name':_0x23b1cc('0xc38'),'column':'Tag','type':_0x23b1cc('0x1c68'),'options':{'route':{'model':_0x23b1cc('0x23b4'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x23b1cc('0x2232')]}},{'name':_0x23b1cc('0x1406'),'column':_0x23b1cc('0xda8'),'type':_0x23b1cc('0x22b6'),'options':{'excludedOperators':['$ne']}},{'name':_0x23b1cc('0x247a'),'column':_0x23b1cc('0x25e9'),'type':'select','values':[{'id':0x1,'translate':_0x23b1cc('0x1170')},{'id':0x0,'translate':_0x23b1cc('0x1015')}],'options':{'excludedOperators':[_0x23b1cc('0x10be')]}}]},_0x1d3511[_0x23b1cc('0x1c9a')]='lime-A700',_0x1d3511[_0x23b1cc('0x2535')]=_0x258c9a,_0x1d3511[_0x23b1cc('0xdfe')]=_0x5121ce,_0x1d3511[_0x23b1cc('0xffb')]=_0x289180,_0x1d3511[_0x23b1cc('0xc3d')]=_0x3d9c01,_0x1d3511[_0x23b1cc('0xa51')]=_0x4d3f36,_0x1d3511['disposeInteraction']=_0x1d584a,_0x1d3511[_0x23b1cc('0x150f')]=_0x2a74f3,_0x1d3511[_0x23b1cc('0x25e3')]=_0x7b8937,_0x1d3511[_0x23b1cc('0xfaa')]=_0x48333f,_0x1d3511[_0x23b1cc('0x3dd')]=_0x3e2e7f,_0x1d3511[_0x23b1cc('0x159d')]=_0x24e57c,_0x1d3511[_0x23b1cc('0x1691')]=_0x39492a,_0x1d3511[_0x23b1cc('0x6f1')]=_0xe02374;function _0x258c9a(_0xf11791,_0x4d7331){const _0x2ec120=_0x23b1cc;return _0x1d3511[_0x2ec120('0x1a29')]=_0xf11791,_0x1d3511[_0x2ec120('0x251')]=_0x4d7331,_0x1370d6[_0x2ec120('0x166f')][_0x2ec120('0x1d97')+_0x3c8d8a()['upperFirst'](_0x2ec120('0x2154'))]({'id':_0x1d3511[_0x2ec120('0x166f')]['id'],'nolimit':!![]})[_0x2ec120('0x1964')]['then'](function(_0x1851c1){const _0x56adbe=_0x2ec120;return _0x1d3511[_0x56adbe('0x2154')]=_0x1851c1||{'count':0x0,'rows':[]},_0x1370d6[_0x56adbe('0x23b4')][_0x56adbe('0x1d97')]()['$promise'];})[_0x2ec120('0x173b')](function(_0x1e26b4){const _0x39223d=_0x2ec120;_0x1d3511[_0x39223d('0x22ac')]=_0x1e26b4||{'count':0x0,'rows':[]};})['then'](function(){const _0x3237cc=_0x2ec120;_0x1d3511[_0x3237cc('0x485')]=_0x81f996();})[_0x2ec120('0x103c')](function(_0x12b8e0){const _0x5c5197=_0x2ec120;console[_0x5c5197('0x15aa')](_0x12b8e0);})['finally'](function(){const _0x384517=_0x2ec120;let _0xfae81c=_0x1cb7fb[_0x384517('0x1937')][_0x384517('0x1949')]('motion2.home.whatsapp:'+_0x1d3511[_0x384517('0x166f')]['id']);if(_0xfae81c)try{_0xfae81c=JSON[_0x384517('0x1d5e')](_0xfae81c);if(_0xfae81c[_0x384517('0xc49')]){_0x1d3511['query']=_0x3c8d8a()[_0x384517('0x9ef')](_0x1d3511[_0x384517('0xc49')],_0xfae81c[_0x384517('0xc49')]);if(_0x3c8d8a()[_0x384517('0x1a56')](_0x1d3511[_0x384517('0x2154')][_0x384517('0x6aa')]))_0x1d3511[_0x384517('0xc49')][_0x384517('0x2720')]=[];else _0x3c8d8a()[_0x384517('0x1a56')](_0x1d3511[_0x384517('0xc49')][_0x384517('0x2720')])&&(_0x1d3511['query'][_0x384517('0x2720')]=_0x3c8d8a()(_0x1d3511[_0x384517('0x2154')][_0x384517('0x6aa')])['map']('id')[_0x384517('0x1f6c')]()[_0x384517('0xa7b')]());_0x1d3511[_0x384517('0xc49')]['sort']&&_0x1d3511[_0x384517('0xc49')][_0x384517('0xfbe')][_0x384517('0x2087')]('lastMessage')>=0x0&&(_0x1d3511[_0x384517('0xc49')]=_0x3c8d8a()[_0x384517('0x2797')](_0x1d3511[_0x384517('0xc49')],_0x384517('0xfbe'))),_0x1d3511['query'][_0x384517('0x1dec')]=!![],_0x1d3511['isSearchBarVisible']=_0x1d3511[_0x384517('0xc49')][_0x384517('0x278d')]?!![]:![];}}catch(_0x5d162a){console['error'](_0x5d162a);}else{const _0x4b9a3c={'$gte':_0x156524()()[_0x384517('0x2145')](_0x384517('0x70b'))['utcOffset'](0x0,!![])[_0x384517('0xddc')](),'$lte':_0x156524()()[_0x384517('0x733')](_0x384517('0x70b'))[_0x384517('0xaf5')](0x0,!![])['format']()},_0xc16fb6={'WhatsappAccountId':_0x3c8d8a()[_0x384517('0x8a2')](_0x1d3511[_0x384517('0x2154')][_0x384517('0x6aa')],'id'),'createdAt':_0x4b9a3c};_0x1d3511[_0x384517('0xc49')]=_0x3c8d8a()[_0x384517('0x9ef')](_0x1d3511['query'],_0xc16fb6);}_0x572de6['on'](_0x384517('0x1913'),_0x59a2e1),_0x572de6['on'](_0x384517('0x172d'),_0x59a2e1),_0x572de6['on'](_0x384517('0x159'),_0x20e885),_0x572de6['on']('whatsappMessage:save',_0x2b1c98),_0x572de6['on'](_0x384517('0x256b'),_0x2b1c98),_0x572de6['on'](_0x384517('0xaa9'),_0x363ca6),_0x572de6['on']('user_has_whatsapp_interactions:remove',_0x1deb31),_0x289180(_0x1d3511[_0x384517('0xc49')]['page']);});}function _0x81f996(){const _0x1fac75=_0x23b1cc;return[{'name':_0x1fac75('0x1406'),'key':_0x1fac75('0xda8'),'type':_0x1fac75('0x22b6'),'label':_0x1fac75('0xa98')},{'name':_0x1fac75('0x2634'),'key':'read','type':_0x1fac75('0xc65'),'label':_0x1fac75('0x1881'),'customOptions':[{'value':0x0,'translate':_0x1fac75('0x1015')},{'value':0x1,'translate':_0x1fac75('0x1170')},{'value':null,'translate':_0x1fac75('0x47a')}]},{'name':_0x1fac75('0xef8'),'key':_0x1fac75('0x1636'),'type':_0x1fac75('0xc65'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x1fac75('0x163c')},{'value':0x1,'translate':_0x1fac75('0x1389')},{'value':null,'translate':_0x1fac75('0x47a')}]},{'name':_0x1fac75('0x1b91'),'key':_0x1fac75('0x2720'),'type':_0x1fac75('0x1c68'),'label':_0x1fac75('0x7b4'),'options':_0x1d3511[_0x1fac75('0x2154')][_0x1fac75('0x6aa')],'clearAll':![]},{'name':_0x1fac75('0x1547'),'key':_0x1fac75('0x181c'),'type':_0x1fac75('0xc65'),'label':_0x1fac75('0x956'),'customOptions':[{'value':_0x1d3511[_0x1fac75('0x166f')]['id'],'translate':_0x1fac75('0x2449')},{'value':'null','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x1fac75('0x47a')}]},{'name':'Tag','key':'tag','type':_0x1fac75('0x1c68'),'label':_0x1fac75('0x1e6f'),'options':_0x1d3511[_0x1fac75('0x22ac')]['rows'],'placeholder':_0x1fac75('0x96')}];}function _0x5121ce(_0x3b0aa1){const _0x585b1d=_0x23b1cc;_0x1d3511[_0x585b1d('0x1e9c')]=![],_0x1d3511[_0x585b1d('0x742')]=_0x3b0aa1||{'count':0x0,'rows':[]};for(let _0x5c10e7=0x0;_0x5c10e7<_0x1d3511[_0x585b1d('0x742')][_0x585b1d('0x6aa')][_0x585b1d('0x543')];_0x5c10e7+=0x1){_0x2a74f3(_0x1d3511[_0x585b1d('0x742')]['rows'][_0x5c10e7]);}}function _0x289180(_0x29afe0){const _0xad41a9=_0x23b1cc;_0x1d3511[_0xad41a9('0x1e9c')]=!![];!_0x29afe0&&(_0x1d3511[_0xad41a9('0xc49')][_0xad41a9('0x182e')]=0x1);_0x1d3511[_0xad41a9('0xc49')][_0xad41a9('0x17f0')]=(_0x1d3511[_0xad41a9('0xc49')]['page']-0x1)*_0x1d3511['query'][_0xad41a9('0x3e')];let _0x5da187=_0x1cb7fb[_0xad41a9('0x1937')][_0xad41a9('0x1949')](_0xad41a9('0x10fb')+_0x1d3511['user']['id']);_0x5da187=_0x5da187?JSON[_0xad41a9('0x1d5e')](_0x5da187):{},_0x5da187[_0xad41a9('0xc49')]=_0x1d3511[_0xad41a9('0xc49')],_0x1cb7fb[_0xad41a9('0x1937')][_0xad41a9('0x7e')](_0xad41a9('0x10fb')+_0x1d3511[_0xad41a9('0x166f')]['id'],JSON['stringify'](_0x5da187)),_0x1d3511[_0xad41a9('0x2219')]=_0x1370d6[_0xad41a9('0x818')][_0xad41a9('0x1d97')](_0x1d3511[_0xad41a9('0xc49')],_0x5121ce)[_0xad41a9('0x1964')];}function _0x3d9c01(_0x13c2c8,_0x41eee4){const _0x8f204b=_0x23b1cc;_0x15968f[_0x8f204b('0x1d44')]['vm'][_0x8f204b('0xe63')]('whatsapp',_0x41eee4);}function _0x4d3f36(_0x2c142d,_0x744d54,_0x38ea49){const _0x16f284=_0x23b1cc;_0x1370d6[_0x16f284('0x818')][_0x16f284('0xfce')]({'id':_0x744d54['id'],'attachments':_0x38ea49})['$promise'][_0x16f284('0x173b')](function(_0x148563){const _0x3034fa=_0x16f284,_0x124f53=[_0x148563[_0x3034fa('0x1c22')]],_0x579234=_0x3034fa('0x119b')+_0x744d54['id']+_0x3034fa('0x1421'),_0x45560b=new Blob(_0x124f53,{'type':_0x148563[_0x3034fa('0x1810')]}),_0x90e34c=window[_0x3034fa('0x222a')][_0x3034fa('0x1258')]('a');_0x90e34c[_0x3034fa('0x11c3')]('href',URL['createObjectURL'](_0x45560b)),_0x90e34c['setAttribute']('download',_0x579234),document[_0x3034fa('0x1a5')][_0x3034fa('0x1f8d')](_0x90e34c),_0x90e34c[_0x3034fa('0x3cb')]();})[_0x16f284('0x103c')](function(_0x2c1dfa){const _0x456628=_0x16f284;if(_0x2c1dfa['data']&&_0x2c1dfa[_0x456628('0x1e07')][_0x456628('0x1d4a')]&&_0x2c1dfa[_0x456628('0x1e07')]['errors'][_0x456628('0x543')])for(let _0x1e0d7a=0x0;_0x1e0d7a<_0x2c1dfa['data'][_0x456628('0x1d4a')][_0x456628('0x543')];_0x1e0d7a+=0x1){_0x29399d[_0x456628('0x15aa')]({'title':_0x2c1dfa['data'][_0x456628('0x1d4a')][_0x1e0d7a]['type'],'msg':_0x2c1dfa['data'][_0x456628('0x1d4a')][_0x1e0d7a][_0x456628('0x67f')]});}else _0x29399d[_0x456628('0x15aa')]({'title':_0x2c1dfa['status']?_0x456628('0x137')+_0x2c1dfa[_0x456628('0x276f')]+_0x456628('0x160c')+_0x2c1dfa[_0x456628('0x2696')]:_0x456628('0xa51'),'msg':_0x2c1dfa[_0x456628('0x1e07')]?JSON['stringify'](_0x2c1dfa['data'][_0x456628('0x67f')]):_0x2c1dfa[_0x456628('0x1b75')]()});});}function _0x1d584a(_0x613b56,_0x384a1b){const _0x555887=_0x23b1cc,_0x41ec1d=_0x1d3511[_0x555887('0x166f')][_0x555887('0x67c')]||_0x1d3511[_0x555887('0x166f')][_0x555887('0x988')]||_0x1d3511[_0x555887('0x166f')][_0x555887('0xf41')]||_0x1d3511['user'][_0x555887('0x106')]||_0x1d3511[_0x555887('0x166f')]['faxPause'],_0x364ef2=!_0x384a1b[_0x555887('0x1b91')][_0x555887('0x130f')];_0x3bcfe2[_0x555887('0x1cb7')]({'controller':_0x555887('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular[_0x555887('0xb6d')](_0x3234e1['body']),'clickOutsideToClose':_0x364ef2,'escapeToClose':_0x364ef2,'onRemoving':function(){const _0x480dc6=_0x555887;_0x1d3511[_0x480dc6('0x166f')]&&_0x384a1b['Account'][_0x480dc6('0x130f')]&&!_0x41ec1d&&_0x1370d6[_0x480dc6('0x166f')][_0x480dc6('0x9da')]({'id':_0x1d3511[_0x480dc6('0x166f')]['id']})[_0x480dc6('0x1964')][_0x480dc6('0x103c')](function(_0x31daee){const _0x40e8ea=_0x480dc6;console[_0x40e8ea('0x15aa')](_0x31daee);});},'locals':{'user':_0x1d3511[_0x555887('0x166f')],'channel':_0x555887('0x245'),'interaction':_0x384a1b}});}function _0x2a74f3(_0x538799){const _0x5d0f1f=_0x23b1cc;_0x538799[_0x5d0f1f('0x1f70')]?(_0x538799[_0x5d0f1f('0x98d')]=(_0x538799[_0x5d0f1f('0x1f70')][_0x5d0f1f('0x1e50')]||'')+'\x20'+(_0x538799[_0x5d0f1f('0x1f70')]['lastName']||''),_0x538799['contactInfo']=_0x538799[_0x5d0f1f('0x1f70')]['mobile']):_0x538799[_0x5d0f1f('0x98d')]=_0x3d73cf[_0x5d0f1f('0x1467')](_0x5d0f1f('0x172b'));}function _0x7b8937(_0x7a451e){const _0x1dfa74=_0x23b1cc;if(_0x7a451e[_0x1dfa74('0x181c')])return _0x7a451e[_0x1dfa74('0x181c')]===_0x1d3511[_0x1dfa74('0x166f')]['id']?_0x3d73cf[_0x1dfa74('0x1467')](_0x1dfa74('0x2449')):_0x7a451e[_0x1dfa74('0x274f')][_0x1dfa74('0x572')]+'\x20<'+_0x7a451e[_0x1dfa74('0x274f')][_0x1dfa74('0x138c')]+'>';return _0x3d73cf[_0x1dfa74('0x1467')](_0x1dfa74('0x27a8'));}function _0x48333f(_0x269ccd){const _0x4e79be=_0x23b1cc;if(_0x269ccd['Account'])return _0x269ccd['Account']['key'];return _0x3d73cf[_0x4e79be('0x1467')](_0x4e79be('0x172b'));}function _0x3e2e7f(_0x50439a,_0x55440e){const _0x85e9a=_0x23b1cc;_0x3bcfe2['show']({'controller':_0x85e9a('0xaf7'),'controllerAs':'vm','templateUrl':_0x2bb9a1,'parent':angular[_0x85e9a('0xb6d')](_0x3234e1[_0x85e9a('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x55440e,'message':{},'type':_0x85e9a('0x195f'),'interaction':{}},'fullscreen':!![]})[_0x85e9a('0x173b')](function(_0x3f3f4b){const _0x4b9ebd=_0x85e9a;if(_0x3f3f4b){if(_0x3f3f4b[_0x4b9ebd('0x67f')]&&_0x3f3f4b[_0x4b9ebd('0x67f')][_0x4b9ebd('0x51')]){const _0x46cdbf={'channel':_0x4b9ebd('0x245'),'account':_0x55440e,'message':_0x3f3f4b[_0x4b9ebd('0x67f')],'contact':_0x3f3f4b['contact']};_0x4aa5ad['add'](_0x46cdbf);}else{const _0x435242=_0x3f3f4b;return _0x1370d6[_0x4b9ebd('0x234')]['send']({'id':_0x55440e['id']},_0x435242)['$promise'][_0x4b9ebd('0x173b')](function(_0xca1532){const _0x3102b1=_0x4b9ebd;_0x29399d[_0x3102b1('0xdfe')]({'title':_0x3102b1('0x2370'),'msg':_0x3102b1('0x1950')}),_0x15968f['$parent']['vm'][_0x3102b1('0xe63')]('whatsapp',_0xca1532);})['catch'](function(_0x1e2198){const _0x3bb680=_0x4b9ebd;if(_0x1e2198[_0x3bb680('0x1e07')]&&_0x1e2198['data'][_0x3bb680('0x1d4a')]&&_0x1e2198['data']['errors'][_0x3bb680('0x543')])for(let _0xb78e37=0x0;_0xb78e37<_0x1e2198[_0x3bb680('0x1e07')][_0x3bb680('0x1d4a')][_0x3bb680('0x543')];_0xb78e37++){_0x29399d[_0x3bb680('0x15aa')]({'title':_0x1e2198[_0x3bb680('0x1e07')]['errors'][_0xb78e37][_0x3bb680('0x1810')],'msg':_0x1e2198[_0x3bb680('0x1e07')][_0x3bb680('0x1d4a')][_0xb78e37]['message']});}else _0x29399d['error']({'title':_0x1e2198[_0x3bb680('0x276f')]?_0x3bb680('0x137')+_0x1e2198[_0x3bb680('0x276f')]+'\x20-\x20'+_0x1e2198[_0x3bb680('0x2696')]:'WHATSAPPACCOUNT:SEND','msg':_0x1e2198['data']?JSON['stringify'](_0x1e2198['data'][_0x3bb680('0x67f')]):_0x1e2198[_0x3bb680('0x67f')]||_0x1e2198['toString']()});});}}});}function _0x363ca6(_0x4b0c5c){const _0x64e97b=_0x23b1cc;let _0x179fc4;const _0x25aa08=_0x3c8d8a()[_0x64e97b('0x18ab')](_0x1d3511['whatsappInteractions']['rows'],{'id':_0x4b0c5c['WhatsappInteractionId']});_0x25aa08&&_0x25aa08[_0x64e97b('0x1999')]&&(_0x179fc4=_0x3c8d8a()['find'](_0x25aa08[_0x64e97b('0x1999')],{'id':_0x4b0c5c[_0x64e97b('0x181c')]}),!_0x179fc4&&_0x25aa08[_0x64e97b('0x1999')][_0x64e97b('0x18bb')]({'id':_0x4b0c5c[_0x64e97b('0x181c')]}));}function _0x1deb31(_0x23a06b){const _0x54d401=_0x23b1cc,_0x29d67b=_0x3c8d8a()[_0x54d401('0x18ab')](_0x1d3511[_0x54d401('0x742')][_0x54d401('0x6aa')],{'id':_0x23a06b['WhatsappInteractionId']});_0x29d67b&&_0x29d67b[_0x54d401('0x1999')]&&_0x3c8d8a()['remove'](_0x29d67b[_0x54d401('0x1999')],{'id':_0x23a06b[_0x54d401('0x181c')]});}function _0x59a2e1(_0x3d307a){const _0xb0c32e=_0x23b1cc;if(_0x3d307a){const _0x12de83=_0x3c8d8a()[_0xb0c32e('0x18ab')](_0x1d3511['whatsappInteractions'][_0xb0c32e('0x6aa')],{'id':_0x3d307a['id']});if(_0x12de83){_0x12de83[_0xb0c32e('0x1999')]=[];_0x3d307a[_0xb0c32e('0x1636')]&&(_0x12de83[_0xb0c32e('0x25e9')]=0x0);if(_0x1d3511[_0xb0c32e('0xc49')][_0xb0c32e('0xfbe')]){const _0x2b4b93=_0x3c8d8a()[_0xb0c32e('0x17b2')](_0x1d3511['query']['sort'],'-')?'desc':'asc';_0x1d3511[_0xb0c32e('0x742')]['rows']=_0x3c8d8a()[_0xb0c32e('0x1d16')](_0x1d3511['whatsappInteractions']['rows'],_0x3c8d8a()[_0xb0c32e('0x161e')](_0x1d3511['query']['sort'],'-'),_0x2b4b93);}_0x3c8d8a()[_0xb0c32e('0x9ef')](_0x12de83,_0x3c8d8a()[_0xb0c32e('0x2114')](_0x3d307a,_0x3c8d8a()[_0xb0c32e('0x1d3e')](_0x12de83)));}else _0x289180(_0x1d3511['query'][_0xb0c32e('0x182e')]);}}function _0x20e885(_0x33bfe4){const _0x56f5cc=_0x23b1cc;if(_0x33bfe4){const _0xc69773=_0x3c8d8a()[_0x56f5cc('0x18ab')](_0x1d3511[_0x56f5cc('0x742')][_0x56f5cc('0x6aa')],{'id':_0x33bfe4['id']});_0xc69773&&(_0xc69773[_0x56f5cc('0xc38')]=_0x33bfe4[_0x56f5cc('0x22ac')]||[],_0x3c8d8a()[_0x56f5cc('0x9ef')](_0xc69773,_0x3c8d8a()[_0x56f5cc('0x2114')](_0x33bfe4,_0x3c8d8a()[_0x56f5cc('0x1d3e')](_0xc69773))));}}function _0x2b1c98(_0x28c7c8){const _0x277012=_0x23b1cc;if(_0x28c7c8&&!_0x28c7c8['secret']){const _0xe68606=_0x3c8d8a()[_0x277012('0x18ab')](_0x1d3511[_0x277012('0x742')][_0x277012('0x6aa')],{'id':_0x28c7c8['WhatsappInteractionId']});if(_0xe68606){const _0xd3df0=_0x3c8d8a()['find'](_0xe68606[_0x277012('0x2634')],{'id':_0x28c7c8['id']});_0xd3df0?_0x3c8d8a()[_0x277012('0x9ef')](_0xd3df0,_0x3c8d8a()['pick'](_0x28c7c8,_0x3c8d8a()['keys'](_0xd3df0))):(_0x3c8d8a()[_0x277012('0x7d5')](_0xe68606[_0x277012('0x2634')])&&(_0xe68606[_0x277012('0x2634')]={'count':0x0}),!_0x28c7c8[_0x277012('0x69b')]&&(_0xe68606[_0x277012('0x2634')][_0x277012('0x1a2f')]+=0x1));}}}function _0x24e57c(){_0x1d3511['isSearchBarVisible']=![];}function _0x39492a(){const _0x3268cf=_0x23b1cc;_0x1d3511[_0x3268cf('0x82f')]=!![];}function _0xe02374(){const _0xa1d532=_0x23b1cc;_0x1d3511['isSearchBarVisible']=![],_0x3bcfe2[_0xa1d532('0x1cb7')]({'controller':_0xa1d532('0x1c5b'),'controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0xa1d532('0xb6d')](_0x3234e1[_0xa1d532('0x1a5')]),'clickOutsideToClose':![],'locals':{'color':_0x1d3511[_0xa1d532('0x1c9a')],'fields':_0x1d3511[_0xa1d532('0x2706')][_0xa1d532('0x2340')],'storagePath':_0xa1d532('0x281')},'fullscreen':!![]})[_0xa1d532('0x173b')](function(_0x42d904){const _0x475dc6=_0xa1d532;_0x1d3511['query'][_0x475dc6('0x23e7')]=_0x42d904===![]?undefined:_0x42d904;if(_0x1d3511['query'][_0x475dc6('0x23e7')]||_0x42d904===![])_0x289180();})['catch'](function(_0x33b4a6){const _0x11113b=_0xa1d532;_0x29399d[_0x11113b('0x15aa')]({'title':'ERROR','msg':_0x33b4a6[_0x11113b('0x1e07')]?JSON[_0x11113b('0x100b')](_0x33b4a6[_0x11113b('0x1e07')][_0x11113b('0x67f')]):_0x33b4a6[_0x11113b('0x1b75')]()});});}let _0x102eb5=!![],_0x87f091=0x1;_0x15968f['$watch']('vm.query.filter',function(_0x1721a5,_0x8a02e){const _0x3476cb=_0x23b1cc;_0x102eb5?_0x5071fe(function(){_0x102eb5=![];}):(!_0x8a02e&&(_0x87f091=_0x1d3511[_0x3476cb('0xc49')]['page']),_0x1721a5!==_0x8a02e&&(_0x1d3511[_0x3476cb('0xc49')][_0x3476cb('0x182e')]=0x1),!_0x1721a5&&(_0x1d3511[_0x3476cb('0xc49')][_0x3476cb('0x182e')]=_0x87f091),_0x289180(_0x1d3511['query'][_0x3476cb('0x182e')]));}),_0x15968f[_0x23b1cc('0xbf6')](_0x23b1cc('0x16d2'),function(){const _0x4b517b=_0x23b1cc;_0x572de6[_0x4b517b('0x251c')](_0x4b517b('0x1339')),_0x572de6[_0x4b517b('0x251c')](_0x4b517b('0x256b')),_0x572de6[_0x4b517b('0x251c')](_0x4b517b('0x1913')),_0x572de6[_0x4b517b('0x251c')](_0x4b517b('0x159')),_0x572de6['removeAllListeners'](_0x4b517b('0x172d')),_0x572de6[_0x4b517b('0x251c')](_0x4b517b('0xaa9')),_0x572de6[_0x4b517b('0x251c')](_0x4b517b('0x264d'));});}const _0xec863e=_0x1f4be7;_0x808fd2['$inject']=[_0x566993('0x66f'),'$sce'];function _0x808fd2(_0x5dec7c,_0x692961){const _0x38b173=_0x566993,_0x1ea4e4=this;_0x1ea4e4[_0x38b173('0x251')]={},_0x1ea4e4[_0x38b173('0x558')]={'count':0x0,'rows':[]},_0x1ea4e4[_0x38b173('0x39d')]=![];function _0x2e1819(_0x22e16d,_0x57d7c7){const _0x3a7cf8=_0x38b173;_0x1ea4e4['setting']=_0x57d7c7,_0x1ea4e4['tab']=_0x22e16d,_0x1ea4e4[_0x3a7cf8('0x1e66')][_0x3a7cf8('0x1049')]=!![];}function _0x32dea8(){const _0x4efc72=_0x38b173;return _0x692961[_0x4efc72('0xb94')](_0x1ea4e4['tab'][_0x4efc72('0x16df')]);}_0x1ea4e4[_0x38b173('0xb9c')]=_0x2e1819,_0x1ea4e4[_0x38b173('0x1f2b')]=_0x32dea8;}const _0x7d01b7=_0x808fd2,_0x2b7313=_0x21a6a1['p']+'src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog.html',_0x468e08=_0x21a6a1['p']+_0x566993('0x1f0a');_0x3fc1d1[_0x566993('0x17bb')]=[_0x566993('0xb5a')],_0x53b181[_0x566993('0x17bb')]=['$cookies','$timeout',_0x566993('0x1b82'),_0x566993('0x66f'),_0x566993('0x1fe5'),'$q','$location','$translate','api',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x2fc'),_0x566993('0x1f9'),_0x566993('0x2b7')];function _0x53b181(_0x126212,_0x2f6a54,_0x21abb6,_0x2dabb1,_0x347774,_0x377374,_0x252fc5,_0x305706,_0x36ea55,_0x4ae628,_0x52cd05,_0x4b9a10,_0x190da0,_0x2fd06c){const _0x350b1d=_0x566993,_0x1414a1=this,_0x2ac657=0x19,_0x110bed=_0x2ac657*0x400*0x400;_0x1414a1[_0x350b1d('0x5d1')]=![],_0x1414a1[_0x350b1d('0x39d')]=![],_0x1414a1['user']=_0x52cd05['getCurrentUser'](),_0x1414a1[_0x350b1d('0x26e8')]=_0x190da0[_0x350b1d('0x26e8')](),_0x1414a1[_0x350b1d('0x276a')]=[],_0x1414a1[_0x350b1d('0x3fa')]=[],_0x1414a1[_0x350b1d('0x16d4')]=[_0x350b1d('0x108a'),_0x350b1d('0x8c5'),_0x350b1d('0x1a8f'),_0x350b1d('0xab2'),_0x350b1d('0x16d'),_0x350b1d('0x245')],_0x1414a1[_0x350b1d('0x8f9')]={'target':_0x350b1d('0x20c3'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x110bed,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1414a1[_0x350b1d('0x428')]={'flow':{}},_0x1414a1['selectedMailShowDetails']={},_0x1414a1[_0x350b1d('0xcac')]={},_0x1414a1[_0x350b1d('0x251')]={},_0x1414a1[_0x350b1d('0xe30')]={},_0x1414a1[_0x350b1d('0x18c5')]={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':'_blank'},_0x1414a1[_0x350b1d('0x228e')]=new Date(_0x156524()()['startOf'](_0x350b1d('0x70b'))['subtract'](0x1,_0x350b1d('0x1adf'))[_0x350b1d('0xaf5')](0x0,!![])[_0x350b1d('0xddc')]()),_0x1414a1[_0x350b1d('0x2623')]=new Date(_0x156524()()[_0x350b1d('0x733')](_0x350b1d('0x70b'))['subtract'](0x1,'day')[_0x350b1d('0xaf5')](0x0,!![])[_0x350b1d('0xddc')]()),_0x1414a1['init']=_0x509916,_0x1414a1[_0x350b1d('0xca0')]=_0x5a0398,_0x1414a1[_0x350b1d('0x2388')]=_0xddd505,_0x1414a1['openInteraction']=_0x179005,_0x1414a1[_0x350b1d('0x20f0')]=_0x4982ea,_0x1414a1['tagInteraction']=_0x48eeec,_0x1414a1['composeMailInteraction']=_0x11b6e4,_0x1414a1[_0x350b1d('0x631')]=_0x2e1dac,_0x1414a1[_0x350b1d('0x2645')]=_0xa8fbd3,_0x1414a1['composeWhatsappInteraction']=_0x42897d,_0x1414a1[_0x350b1d('0x25a7')]=_0x7e6930,_0x1414a1[_0x350b1d('0x1f55')]=_0x3ec3d0,_0x1414a1[_0x350b1d('0xd06')]=_0x53326c,_0x1414a1[_0x350b1d('0xcb1')]=_0x9982a7,_0x1414a1[_0x350b1d('0x230b')]=_0x30df30,_0x1414a1['getMailAccounts']=_0x49ad34,_0x1414a1['getFaxAccounts']=_0x1ce481,_0x1414a1[_0x350b1d('0x112b')]=_0x5c64c4,_0x1414a1['getWhatsappAccounts']=_0x16f697,_0x1414a1[_0x350b1d('0x133b')]=_0x2f7958,_0x1414a1['getChatWebsites']=_0x2acd12,_0x1414a1['getLists']=_0x46c35d,_0x1414a1[_0x350b1d('0x2252')]=_0x2e8336,_0x1414a1[_0x350b1d('0xb1e')]=_0x5addda,_0x1414a1[_0x350b1d('0x23a9')]=_0x45c363,_0x1414a1['fileSuccess']=_0x31aa87,_0x1414a1['onMessageSave']=_0x36814b,_0x1414a1[_0x350b1d('0xa37')]=_0x527301,_0x1414a1[_0x350b1d('0xb5e')]=_0x56ff30,_0x1414a1[_0x350b1d('0xa44')]=_0x49d9e2,_0x1414a1[_0x350b1d('0x97b')]=_0x4d1d13,_0x1414a1[_0x350b1d('0x1ba')]=_0x3ff1a2,_0x1414a1[_0x350b1d('0x1f51')]=_0x3dd50d,_0x1414a1[_0x350b1d('0x1c5f')]=_0x400acf,_0x1414a1[_0x350b1d('0x59b')]=![],_0x1414a1['changeDisplayCannedAnswerInputValue']=_0x2fab88,_0x1414a1['setAs']=_0x4ea861,_0x1414a1['markAsUnread']=_0x41d33f,_0x1414a1[_0x350b1d('0x1f2d')]=_0x523a06,_0x1414a1[_0x350b1d('0xc85')]=_0x812f04,_0x1414a1['getAttachment']=_0x533370,_0x1414a1[_0x350b1d('0xc19')]=_0x47cf75,_0x1414a1[_0x350b1d('0x24da')]=_0x4df736,_0x1414a1[_0x350b1d('0x24a6')]=_0x26fb5e,_0x1414a1[_0x350b1d('0x1c49')]=_0x34deb7,_0x1414a1[_0x350b1d('0x7b')]={'scrollEl':_0x350b1d('0x17f')};function _0x2acd12(){const _0x563612=_0x350b1d;_0x36ea55[_0x563612('0x166f')][_0x563612('0x5c2')]({'id':_0x1414a1[_0x563612('0x166f')]['id'],'nolimit':!![]})[_0x563612('0x1964')][_0x563612('0x173b')](function(_0x3dede2){_0x1414a1['chatAccounts']=_0x3dede2||{'count':0x0,'rows':[]};});}function _0x46c35d(){const _0x32cf47=_0x350b1d;_0x36ea55[_0x32cf47('0x166f')][_0x32cf47('0xe91')]({'id':_0x1414a1[_0x32cf47('0x166f')]['id'],'nolimit':!![]})[_0x32cf47('0x1964')][_0x32cf47('0x173b')](function(_0x171f19){const _0x15715d=_0x32cf47;_0x1414a1[_0x15715d('0xf9c')]=_0x171f19||{'count':0x0,'rows':[]};});}function _0x2f7958(){const _0xd6595f=_0x350b1d;_0x36ea55[_0xd6595f('0x166f')][_0xd6595f('0x133b')]({'id':_0x1414a1[_0xd6595f('0x166f')]['id'],'nolimit':!![]})[_0xd6595f('0x1964')][_0xd6595f('0x173b')](function(_0x3f883b){const _0x22e0c=_0xd6595f;_0x1414a1[_0x22e0c('0x1a65')]=_0x3f883b||{'count':0x0,'rows':[]};})[_0xd6595f('0x103c')](function(_0x1957ca){const _0x403aa4=_0xd6595f;if(_0x1957ca[_0x403aa4('0x1e07')]&&_0x1957ca[_0x403aa4('0x1e07')][_0x403aa4('0x1d4a')]&&_0x1957ca['data'][_0x403aa4('0x1d4a')][_0x403aa4('0x543')]){_0x1414a1[_0x403aa4('0x1d4a')]=_0x1957ca['data'][_0x403aa4('0x1d4a')]||[{'message':_0x1957ca[_0x403aa4('0x1b75')](),'type':'api.mail.account'}];for(let _0x1459b2=0x0;_0x1459b2<_0x1957ca[_0x403aa4('0x1e07')]['errors']['length'];_0x1459b2+=0x1){_0x4ae628['error']({'title':_0x1957ca['data'][_0x403aa4('0x1d4a')][_0x1459b2]['type'],'msg':_0x1957ca[_0x403aa4('0x1e07')][_0x403aa4('0x1d4a')][_0x1459b2][_0x403aa4('0x67f')]});}}else _0x4ae628[_0x403aa4('0x15aa')]({'title':_0x1957ca[_0x403aa4('0x276f')]?'API:'+_0x1957ca[_0x403aa4('0x276f')]+_0x403aa4('0x160c')+_0x1957ca[_0x403aa4('0x2696')]:_0x403aa4('0x151e'),'msg':_0x1957ca['data']?JSON[_0x403aa4('0x100b')](_0x1957ca[_0x403aa4('0x1e07')][_0x403aa4('0x67f')]):_0x1957ca[_0x403aa4('0x1b75')]()});});}function _0x49ad34(){const _0x5b44e4=_0x350b1d;_0x36ea55[_0x5b44e4('0x166f')]['getMailAccounts']({'id':_0x1414a1[_0x5b44e4('0x166f')]['id'],'nolimit':!![]})[_0x5b44e4('0x1964')]['then'](function(_0x12fe8e){const _0x519b11=_0x5b44e4;_0x1414a1[_0x519b11('0x2632')]=_0x12fe8e||{'count':0x0,'rows':[]};});}function _0x1ce481(){const _0x4afb5e=_0x350b1d;_0x36ea55[_0x4afb5e('0x166f')][_0x4afb5e('0x2655')]({'id':_0x1414a1[_0x4afb5e('0x166f')]['id'],'nolimit':!![]})[_0x4afb5e('0x1964')][_0x4afb5e('0x173b')](function(_0x34bbb3){const _0x14335c=_0x4afb5e;_0x1414a1[_0x14335c('0x17f2')]=_0x34bbb3||{'count':0x0,'rows':[]};});}function _0x5c64c4(){const _0x523b00=_0x350b1d;_0x36ea55[_0x523b00('0x166f')]['getSmsAccounts']({'id':_0x1414a1['user']['id'],'nolimit':!![]})[_0x523b00('0x1964')][_0x523b00('0x173b')](function(_0x254c12){const _0x37a291=_0x523b00;_0x1414a1[_0x37a291('0x130a')]=_0x254c12||{'count':0x0,'rows':[]};});}function _0x16f697(){const _0x329ce6=_0x350b1d;_0x36ea55[_0x329ce6('0x166f')][_0x329ce6('0xb90')]({'id':_0x1414a1[_0x329ce6('0x166f')]['id'],'nolimit':!![]})[_0x329ce6('0x1964')]['then'](function(_0x3996b0){const _0x35b420=_0x329ce6;_0x1414a1[_0x35b420('0x2154')]=_0x3996b0||{'count':0x0,'rows':[]};});}function _0x34deb7(){const _0x2df22a=_0x350b1d,_0x2ae426=_0x377374['defer']();if(_0x1414a1['queryMessage'])return _0x1414a1[_0x2df22a('0x13c2')]['offset']=_0x1414a1[_0x2df22a('0x558')]['rows'][_0x2df22a('0x543')],_0x36ea55[_0x1414a1[_0x2df22a('0x1e66')][_0x2df22a('0x1134')]+_0x2df22a('0x3a9')]['getMessages'](_0x1414a1['queryMessage'])[_0x2df22a('0x1964')]['then'](function(_0x559d71){const _0x4f51ff=_0x2df22a;for(let _0x572ffe=0x0;_0x572ffe<_0x559d71[_0x4f51ff('0x6aa')][_0x4f51ff('0x543')];_0x572ffe+=0x1){_0x1414a1[_0x4f51ff('0x558')][_0x4f51ff('0x6aa')]['push'](_0x559d71['rows'][_0x572ffe]),!_0x1414a1[_0x4f51ff('0x8d6')]['closed']&&_0x559d71[_0x4f51ff('0x6aa')][_0x572ffe][_0x4f51ff('0x15f4')]==='in'&&!_0x559d71['rows'][_0x572ffe][_0x4f51ff('0x69b')]&&(_0x36ea55[_0x1414a1[_0x4f51ff('0x1e66')][_0x4f51ff('0x1134')]+_0x4f51ff('0x1bd7')][_0x4f51ff('0x1905')]({'id':_0x559d71['rows'][_0x572ffe]['id'],'UserId':_0x1414a1['user']['id']}),_0x1414a1[_0x4f51ff('0x3fa')][_0x4f51ff('0x18bb')](_0x559d71[_0x4f51ff('0x6aa')][_0x572ffe]['id']));}return _0x2ae426[_0x4f51ff('0x155b')](_0x559d71);})[_0x2df22a('0x103c')](function(_0x3b1ce6){const _0x214713=_0x2df22a;return _0x2ae426[_0x214713('0x12a4')](_0x3b1ce6);});return _0x2ae426['reject']();}function _0x509916(_0x17a30b,_0x2053d1){const _0x5723e1=_0x350b1d;_0x1414a1[_0x5723e1('0x1e66')]=_0x17a30b,_0x1414a1['tab'][_0x5723e1('0x1049')]=!![],_0x1414a1[_0x5723e1('0x1e66')][_0x5723e1('0x681')]=0x0,_0x1414a1[_0x5723e1('0x251')]=_0x2053d1||{},_0x1414a1[_0x5723e1('0x1e66')]&&_0x1414a1[_0x5723e1('0x1e66')][_0x5723e1('0x1134')]&&_0x1414a1[_0x5723e1('0x1e66')]['interaction']&&(_0x1414a1[_0x5723e1('0x8d6')]=_0x1414a1[_0x5723e1('0x1e66')][_0x5723e1('0x8d6')],_0x36ea55[_0x1414a1[_0x5723e1('0x1e66')][_0x5723e1('0x1134')]+_0x5723e1('0x3a9')]['get']({'id':_0x1414a1['tab']['interaction']['id'],'includeAll':!![]})['$promise'][_0x5723e1('0x173b')](function(_0x4b3619){const _0x95f346=_0x5723e1;return _0x4b3619&&(_0x1414a1['interaction']=_0x4b3619,_0x1414a1[_0x95f346('0x1e66')][_0x95f346('0x8d6')]=_0x4b3619),_0x1414a1['tab'][_0x95f346('0x1049')]=_0x1414a1[_0x95f346('0x8d6')][_0x95f346('0x1636')],_0x1414a1['queryMessage']={'id':_0x1414a1[_0x95f346('0x8d6')]['id'],'includeAll':!![]},_0x1414a1[_0x95f346('0x1e66')]['channel']===_0x95f346('0x108a')?(_0x1414a1[_0x95f346('0x13c2')][_0x95f346('0xfbe')]=_0x95f346('0x9a8'),_0x1414a1[_0x95f346('0x13c2')][_0x95f346('0x17f0')]=0x0,_0x1414a1[_0x95f346('0x13c2')]['limit']=0x3):(_0x1414a1[_0x95f346('0x13c2')][_0x95f346('0xfbe')]='id',_0x1414a1[_0x95f346('0x13c2')][_0x95f346('0x1c7f')]=!![]),_0x36ea55[_0x1414a1[_0x95f346('0x1e66')][_0x95f346('0x1134')]+_0x95f346('0x3a9')][_0x95f346('0x24e5')](_0x1414a1[_0x95f346('0x13c2')])[_0x95f346('0x1964')];})['then'](function(_0x44f34a){const _0xe42ad9=_0x5723e1;return _0x1414a1[_0xe42ad9('0x558')]=_0x44f34a||{'count':0x0,'rows':[]},_0x36ea55[_0x1414a1[_0xe42ad9('0x1e66')]['channel']===_0xe42ad9('0x8c5')?_0xe42ad9('0x1740'):_0x1414a1[_0xe42ad9('0x1e66')][_0xe42ad9('0x1134')]+_0xe42ad9('0x1b91')]['get']({'id':_0x1414a1[_0xe42ad9('0x8d6')][_0x1414a1[_0xe42ad9('0x1e66')][_0xe42ad9('0x1134')]==='chat'?_0xe42ad9('0x1796'):_0x3c8d8a()[_0xe42ad9('0x587')](_0x1414a1['tab'][_0xe42ad9('0x1134')])+_0xe42ad9('0x90e')]})['$promise'];})[_0x5723e1('0x173b')](function(_0x2f8aa8){const _0x38a3b6=_0x5723e1;_0x1414a1['account']=_0x2f8aa8,_0x1414a1['tab'][_0x38a3b6('0x20d6')]=_0x1414a1['account'][_0x38a3b6('0x237a')]||_0x1414a1['account'][_0x38a3b6('0x10ad')];if(_0x1414a1[_0x38a3b6('0x8d6')][_0x38a3b6('0x283f')])return _0x36ea55[_0x38a3b6('0x1197')][_0x38a3b6('0x1d97')]({'id':_0x1414a1['interaction'][_0x38a3b6('0x283f')]})[_0x38a3b6('0x1964')];})[_0x5723e1('0x173b')](function(_0x102c7c){const _0x4c5bf8=_0x5723e1;return _0x102c7c&&(_0x1414a1[_0x4c5bf8('0x82b')]=_0x102c7c),_0x1414a1[_0x4c5bf8('0x39d')]=!![],_0x1414a1[_0x4c5bf8('0x82b')]?(_0x4866f2(_0x1414a1['contact']),_0x1414a1[_0x4c5bf8('0x1e66')]['title']+=_0x4c5bf8('0x160c')+_0x1414a1['contact'][_0x4c5bf8('0x1e50')]):_0x1414a1[_0x4c5bf8('0x1e66')][_0x4c5bf8('0x20d6')]+=_0x4c5bf8('0x160c')+_0x305706[_0x4c5bf8('0x1467')](_0x1414a1[_0x4c5bf8('0x1e66')][_0x4c5bf8('0x1134')]['toUpperCase']()+'.UNKNOWN'),_0x36ea55[_0x4c5bf8('0x166f')][_0x4c5bf8('0x1d97')]({'fields':_0x4c5bf8('0x27e5'),'nolimit':!![]})['$promise'];})[_0x5723e1('0x173b')](function(_0x4065cd){const _0x805163=_0x5723e1;_0x1414a1[_0x805163('0x1e14')]=_0x4065cd||{'count':0x0,'rows':[]},_0x1414a1['usersMap']=_0x3c8d8a()['mapValues'](_0x3c8d8a()[_0x805163('0x128')](_0x1414a1[_0x805163('0x1e14')][_0x805163('0x6aa')],'id'),_0x805163('0x572'));})['then'](function(){const _0x14e959=_0x5723e1;if(_0x1414a1['tab'][_0x14e959('0x1134')]&&_0x1414a1[_0x14e959('0x8d6')])return _0x36ea55[_0x14e959('0x166f')][_0x14e959('0x623')+_0x3c8d8a()[_0x14e959('0x5ba')](_0x1414a1[_0x14e959('0x1e66')][_0x14e959('0x1134')])+_0x14e959('0x916')]({'id':_0x1414a1[_0x14e959('0x166f')]['id'],'ids':[_0x1414a1[_0x14e959('0x8d6')]['id']]});})[_0x5723e1('0x173b')](function(){const _0x30c4a4=_0x5723e1;return _0x36ea55['mailSubstatus'][_0x30c4a4('0x1d97')]({'sort':_0x30c4a4('0x10ad'),'nolimit':!![]})[_0x30c4a4('0x1964')];})[_0x5723e1('0x173b')](function(_0x5589ef){const _0x392cb4=_0x5723e1;_0x1414a1[_0x392cb4('0xebe')]=_0x5589ef||{'count':0x0,'rows':[]};})[_0x5723e1('0x173b')](function(){const _0x10fc69=_0x5723e1;return _0x1414a1[_0x10fc69('0xdf3')]();})[_0x5723e1('0x173b')](function(){return _0x1414a1['getFaxAccounts']();})[_0x5723e1('0x173b')](function(){return _0x1414a1['getSmsAccounts']();})[_0x5723e1('0x173b')](function(){return _0x1414a1['getWhatsappAccounts']();})[_0x5723e1('0x173b')](function(){const _0xe47ee0=_0x5723e1;return _0x1414a1[_0xe47ee0('0x133b')]();})['then'](function(){const _0x139adb=_0x5723e1;return _0x1414a1[_0x139adb('0x5c2')]();})[_0x5723e1('0x173b')](function(){return _0x1414a1['getLists']();})['catch'](function(){const _0x3b09d=_0x5723e1;_0x1414a1[_0x3b09d('0x39d')]=!![];})[_0x5723e1('0xf25')](function(){const _0x3f0759=_0x5723e1;_0x297085(),_0x989625(),_0x4b9a10['on'](_0x1414a1[_0x3f0759('0x1e66')][_0x3f0759('0x1134')]+_0x3f0759('0x2128'),_0x1414a1[_0x3f0759('0x1473')]),_0x4b9a10['on'](_0x1414a1[_0x3f0759('0x1e66')][_0x3f0759('0x1134')]+_0x3f0759('0xd76'),_0x1414a1[_0x3f0759('0x1473')]),_0x4b9a10['on'](_0x1414a1['tab']['channel']+_0x3f0759('0x2815'),_0x1414a1[_0x3f0759('0xa37')]),_0x4b9a10['on'](_0x1414a1['tab'][_0x3f0759('0x1134')]+'Interaction:update',_0x1414a1[_0x3f0759('0xa37')]),_0x4b9a10['on'](_0x3f0759('0x1848')+_0x1414a1[_0x3f0759('0x1e66')][_0x3f0759('0x1134')]+'_interactions:save',_0x1414a1[_0x3f0759('0x24da')]),_0x4b9a10['on'](_0x3f0759('0x1848')+_0x1414a1['tab'][_0x3f0759('0x1134')]+_0x3f0759('0x177f'),_0x1414a1['onInteractionClose']),_0x1414a1['tab'][_0x3f0759('0x24ee')]=_0x1414a1[_0x3f0759('0x1e66')][_0x3f0759('0x24ee')]?_0x1414a1[_0x3f0759('0x1e66')][_0x3f0759('0x24ee')]:'',_0x1414a1['showFooter']=!![],_0x1414a1['tab'][_0x3f0759('0x1134')]===_0x3f0759('0x108a')&&(_0x1414a1[_0x3f0759('0x892')]=_0x2fd06c[_0x3f0759('0x1265')](_0x1414a1[_0x3f0759('0x1e66')]['interaction']['id']),_0x1414a1[_0x3f0759('0x1e66')][_0x3f0759('0x2418')]&&(_0x1414a1[_0x3f0759('0x1e66')][_0x3f0759('0x8d6')][_0x3f0759('0x1636')]?(_0x2fd06c[_0x3f0759('0x6a7')](_0x1414a1['tab'][_0x3f0759('0x8d6')]['id']),_0x1414a1['draft']=null):_0x9982a7()));}));}function _0x523a06(_0x22c896){const _0x55ef6c=_0x350b1d;if(_0x22c896[_0x55ef6c('0xcba')])return _0x3c8d8a()['includes'](_0x3c8d8a()[_0x55ef6c('0x8a2')](_0x1414a1[_0x55ef6c('0x17f2')]?_0x1414a1[_0x55ef6c('0x17f2')][_0x55ef6c('0x6aa')]:[],'id'),_0x22c896[_0x55ef6c('0xcba')]);else{if(_0x22c896['OpenchannelAccountId'])return _0x3c8d8a()[_0x55ef6c('0x2814')](_0x3c8d8a()[_0x55ef6c('0x8a2')](_0x1414a1['openchannelAccounts']?_0x1414a1[_0x55ef6c('0x1a65')][_0x55ef6c('0x6aa')]:[],'id'),_0x22c896[_0x55ef6c('0xf5a')]);else{if(_0x22c896['SmsAccountId'])return _0x3c8d8a()[_0x55ef6c('0x2814')](_0x3c8d8a()[_0x55ef6c('0x8a2')](_0x1414a1[_0x55ef6c('0x130a')]?_0x1414a1[_0x55ef6c('0x130a')][_0x55ef6c('0x6aa')]:[],'id'),_0x22c896[_0x55ef6c('0x23b1')]);else{if(_0x22c896[_0x55ef6c('0x2720')])return _0x3c8d8a()[_0x55ef6c('0x2814')](_0x3c8d8a()[_0x55ef6c('0x8a2')](_0x1414a1[_0x55ef6c('0x2154')]?_0x1414a1[_0x55ef6c('0x2154')][_0x55ef6c('0x6aa')]:[],'id'),_0x22c896[_0x55ef6c('0x2720')]);else{if(_0x22c896[_0x55ef6c('0x559')])return _0x3c8d8a()[_0x55ef6c('0x2814')](_0x3c8d8a()[_0x55ef6c('0x8a2')](_0x1414a1[_0x55ef6c('0x2632')]?_0x1414a1[_0x55ef6c('0x2632')]['rows']:[],'id'),_0x22c896[_0x55ef6c('0x559')]);else{if(_0x22c896[_0x55ef6c('0x1796')])return _0x3c8d8a()[_0x55ef6c('0x2814')](_0x3c8d8a()['map'](_0x1414a1[_0x55ef6c('0x1e0e')]?_0x1414a1['chatAccounts'][_0x55ef6c('0x6aa')]:[],'id'),_0x22c896['ChatWebsiteId']);else{if(_0x22c896[_0x55ef6c('0x610')])return!![];}}}}}}return![];}function _0x4df736(_0x1abe41){const _0x1c89d7=_0x350b1d;let _0x7470cd;_0x1414a1[_0x1c89d7('0x8d6')]['id']==_0x1abe41[_0x3c8d8a()[_0x1c89d7('0x5ba')](_0x1414a1[_0x1c89d7('0x1e66')]['channel'])+_0x1c89d7('0x223e')]&&(_0x1414a1[_0x1c89d7('0x8d6')][_0x1c89d7('0x1999')]&&(_0x7470cd=_0x3c8d8a()[_0x1c89d7('0x18ab')](_0x1414a1['interaction'][_0x1c89d7('0x1999')],{'id':_0x1abe41[_0x1c89d7('0x181c')]})),!_0x7470cd&&_0x1414a1[_0x1c89d7('0x8d6')][_0x1c89d7('0x1999')][_0x1c89d7('0x18bb')]({'id':_0x1abe41[_0x1c89d7('0x181c')]}));}function _0x26fb5e(_0x595b5f){const _0x4b1e3f=_0x350b1d;_0x1414a1[_0x4b1e3f('0x8d6')]['id']==_0x595b5f[_0x3c8d8a()[_0x4b1e3f('0x5ba')](_0x1414a1[_0x4b1e3f('0x1e66')]['channel'])+'InteractionId']&&(_0x1414a1[_0x4b1e3f('0x8d6')][_0x4b1e3f('0x1999')]&&_0x3c8d8a()[_0x4b1e3f('0x1a8b')](_0x1414a1['interaction'][_0x4b1e3f('0x1999')],{'id':_0x595b5f[_0x4b1e3f('0x181c')]}));}function _0x49d9e2(_0x2259e7){const _0x19a25b=_0x350b1d;if(_0x2259e7){try{_0x3c8d8a()[_0x19a25b('0x1a22')][_0x19a25b('0x493')]=/{{([\s\S]+?)}}/g;const _0x2c7c44=_0x3c8d8a()[_0x19a25b('0x1a98')](_0x2259e7[_0x19a25b('0xa7b')]),_0x15660b={'user':_0x1414a1[_0x19a25b('0x166f')],'account':_0x1414a1['account'],'interaction':_0x1414a1[_0x19a25b('0x8d6')],'contact':_0x1414a1[_0x19a25b('0x8d6')]&&_0x1414a1[_0x19a25b('0x8d6')]['Contact']?_0x1414a1[_0x19a25b('0x8d6')][_0x19a25b('0x1f70')]:{}};_0x1414a1[_0x19a25b('0x1e66')]['areaText']+='\x20'+_0x2c7c44(_0x15660b),_0x1414a1[_0x19a25b('0xe30')][_0x19a25b('0x1a5b')](_0x1414a1[_0x19a25b('0x1e66')][_0x19a25b('0x24ee')]);}catch(_0x15b108){_0x1414a1[_0x19a25b('0x1e66')][_0x19a25b('0x24ee')]+='\x20'+_0x2259e7[_0x19a25b('0xa7b')],_0x1414a1['ctrlMethods'][_0x19a25b('0x1a5b')](_0x1414a1[_0x19a25b('0x1e66')][_0x19a25b('0x24ee')]);}_0x1414a1[_0x19a25b('0x23e9')]=null,_0x1414a1[_0x19a25b('0x12e1')]();}}function _0x56ff30(_0x512517){const _0xd4f106=_0x350b1d,_0x464475=_0x377374[_0xd4f106('0x112e')]();let _0x2eff96=[];const _0x179f8f={},_0x2ef738=_0x1414a1[_0xd4f106('0x1e66')][_0xd4f106('0x1134')]===_0xd4f106('0x8c5')?_0xd4f106('0x1796'):_0x3c8d8a()[_0xd4f106('0x587')](_0x1414a1[_0xd4f106('0x1e66')][_0xd4f106('0x1134')])+_0xd4f106('0x90e');return _0x179f8f[_0xd4f106('0x278d')]=_0x512517,_0x179f8f[_0x2ef738]=_0x1414a1[_0xd4f106('0xde4')]['id'],_0x36ea55[_0xd4f106('0x2849')][_0xd4f106('0x1d97')](_0x179f8f)[_0xd4f106('0x1964')][_0xd4f106('0x173b')](function(_0x299a5b){const _0x2a3c3f=_0xd4f106;return _0x2eff96=_0x3c8d8a()[_0x2a3c3f('0x163f')](_0x2eff96,_0x299a5b[_0x2a3c3f('0x6aa')]),_0x36ea55[_0x2a3c3f('0x2849')][_0x2a3c3f('0x1d97')]({'filter':_0x512517})[_0x2a3c3f('0x1964')];})[_0xd4f106('0x173b')](function(_0x501248){const _0x350b2c=_0xd4f106;_0x2eff96=_0x3c8d8a()['concat'](_0x2eff96,_0x3c8d8a()[_0x350b2c('0x278d')](_0x501248['rows'],function(_0x5faf26){const _0x5a6794=_0x350b2c;return!_0x5faf26['MailAccountId']&&!_0x5faf26[_0x5a6794('0xcba')]&&!_0x5faf26[_0x5a6794('0x23b1')]&&!_0x5faf26[_0x5a6794('0x2720')]&&!_0x5faf26['OpenchannelAccountId']&&!_0x5faf26['ChatWebsiteId'];})),_0x464475[_0x350b2c('0x155b')](_0x2eff96);})[_0xd4f106('0x103c')](function(_0x1dabac){_0x464475['reject'](_0x1dabac);}),_0x464475[_0xd4f106('0x2219')];}function _0xddd505(_0x56aaed,_0x280f55){const _0x285a95=_0x350b1d;try{_0x1414a1[_0x285a95('0x1e66')]&&!_0x1414a1[_0x285a95('0x1e66')][_0x285a95('0x2100')]&&_0x2dabb1[_0x285a95('0x1d44')][_0x285a95('0x1d44')][_0x285a95('0x1d44')]['vm'][_0x285a95('0x2716')](_0x280f55||_0x1414a1[_0x285a95('0x82b')]);}catch(_0xc8c161){_0x4ae628['error']({'title':_0x285a95('0x273c'),'msg':_0x285a95('0x196e')});}}function _0x179005(_0x569b29,_0x5b9079){const _0x7a4be7=_0x350b1d;try{if(_0x5b9079[_0x7a4be7('0x559')])return _0x2dabb1[_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')]['vm'][_0x7a4be7('0xe63')]('mail',_0x5b9079);else{if(_0x5b9079['ChatWebsiteId'])return _0x2dabb1[_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')]['vm'][_0x7a4be7('0xe63')](_0x7a4be7('0x8c5'),_0x5b9079);else{if(_0x5b9079['SmsAccountId'])return _0x2dabb1[_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')]['vm']['addInteractionTab'](_0x7a4be7('0x1a8f'),_0x5b9079);else{if(_0x5b9079['WhatsappAccountId'])return _0x2dabb1[_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')]['vm']['addInteractionTab']('whatsapp',_0x5b9079);else{if(_0x5b9079[_0x7a4be7('0xf5a')])return _0x2dabb1[_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')]['vm']['addInteractionTab']('openchannel',_0x5b9079);else{if(_0x5b9079[_0x7a4be7('0xcba')])return _0x2dabb1[_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')][_0x7a4be7('0x1d44')]['vm']['addInteractionTab']('fax',_0x5b9079);}}}}}}catch(_0x1cc44a){_0x4ae628[_0x7a4be7('0x15aa')]({'title':_0x7a4be7('0x219'),'msg':_0x7a4be7('0x12f7')});}}function _0x48eeec(){const _0x43e2c9=_0x350b1d;_0x347774[_0x43e2c9('0x1cb7')]({'controller':_0x43e2c9('0xc01'),'controllerAs':'vm','templateUrl':_0x2b7313,'parent':angular[_0x43e2c9('0xb6d')](_0x21abb6[_0x43e2c9('0x1a5')]),'clickOutsideToClose':!![],'skipHide':Boolean(_0x1414a1['tab'][_0x43e2c9('0x2100')]),'resolve':{'tags':[_0x43e2c9('0x2401'),function(_0x437466){const _0x1a3f72=_0x43e2c9;return _0x437466[_0x1a3f72('0x155b')]('tag@get',{'sort':_0x1a3f72('0x10ad'),'nolimit':!![],'fields':'id,name,color'});}]},'locals':{'channel':_0x1414a1[_0x43e2c9('0x1e66')][_0x43e2c9('0x1134')],'interaction':_0x1414a1['tab'][_0x43e2c9('0x8d6')]}});}function _0x4982ea(){const _0x16580e=_0x350b1d,_0x2ba8a7=_0x1414a1[_0x16580e('0x166f')]['voicePause']||_0x1414a1['user'][_0x16580e('0x988')]||_0x1414a1[_0x16580e('0x166f')][_0x16580e('0xf41')]||_0x1414a1['user']['openchannelPause']||_0x1414a1[_0x16580e('0x166f')][_0x16580e('0x13eb')],_0x6cb1f5=!_0x1414a1[_0x16580e('0x1e66')][_0x16580e('0x8d6')][_0x16580e('0x1b91')][_0x16580e('0x130f')];_0x347774[_0x16580e('0x1cb7')]({'controller':_0x16580e('0x21f'),'controllerAs':'vm','templateUrl':_0x15060c,'parent':angular[_0x16580e('0xb6d')](_0x21abb6[_0x16580e('0x1a5')]),'clickOutsideToClose':_0x6cb1f5,'escapeToClose':_0x6cb1f5,'onRemoving':function(){const _0x21f668=_0x16580e;_0x1414a1[_0x21f668('0x166f')]&&_0x1414a1[_0x21f668('0x8d6')][_0x21f668('0x1b91')][_0x21f668('0x130f')]&&!_0x2ba8a7&&_0x36ea55[_0x21f668('0x166f')][_0x21f668('0x9da')]({'id':_0x1414a1[_0x21f668('0x166f')]['id']})[_0x21f668('0x1964')][_0x21f668('0x103c')](function(_0x11d7d5){const _0x1ee574=_0x21f668;console[_0x1ee574('0x15aa')](_0x11d7d5);});},'locals':{'user':_0x1414a1[_0x16580e('0x166f')],'channel':_0x1414a1[_0x16580e('0x1e66')][_0x16580e('0x1134')],'interaction':_0x1414a1[_0x16580e('0x1e66')][_0x16580e('0x8d6')]}})[_0x16580e('0x173b')](function(_0x22474c){const _0x527399=_0x16580e;_0x1414a1['tab'][_0x527399('0x1049')]=Boolean(_0x22474c),_0x22474c&&_0x2dabb1[_0x527399('0x1d44')][_0x527399('0x1d44')][_0x527399('0x1d44')]['vm']['closeTab'](_0x1414a1[_0x527399('0x1e66')]);});}function _0x46e5f3(_0x44a3ee,_0x58f826){const _0x4f332b=_0x350b1d;_0x1414a1[_0x4f332b('0x1e66')][_0x4f332b('0x67f')]=_0x58f826,_0x347774[_0x4f332b('0x1cb7')]({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x322c80,'parent':angular[_0x4f332b('0xb6d')](_0x21abb6[_0x4f332b('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x1414a1[_0x4f332b('0xde4')],'message':_0x1414a1[_0x4f332b('0x1e66')][_0x4f332b('0x67f')],'type':_0x44a3ee,'interaction':_0x1414a1[_0x4f332b('0x8d6')]},'fullscreen':!![],'skipHide':Boolean(_0x1414a1[_0x4f332b('0x1e66')]['spy'])})[_0x4f332b('0x173b')](function(_0x5eb4c9){const _0x1c50f5=_0x4f332b;if(_0x5eb4c9){if(_0x5eb4c9[_0x1c50f5('0x67f')]&&_0x5eb4c9[_0x1c50f5('0x67f')][_0x1c50f5('0x51')])_0x1414a1[_0x1c50f5('0x892')]?_0x2fd06c['update']({'id':_0x1414a1['draft']['id'],'channel':_0x1c50f5('0x108a'),'account':_0x1414a1[_0x1c50f5('0xde4')],'message':_0x5eb4c9['message'],'contact':_0x1414a1[_0x1c50f5('0x82b')],'interaction':_0x1414a1['interaction']}):_0x2fd06c['add']({'channel':_0x1c50f5('0x108a'),'account':_0x1414a1['account'],'message':_0x5eb4c9['message'],'contact':_0x1414a1[_0x1c50f5('0x82b')],'interaction':_0x1414a1[_0x1c50f5('0x8d6')]}),_0x1414a1[_0x1c50f5('0x892')]=_0x2fd06c[_0x1c50f5('0x1265')](_0x1414a1[_0x1c50f5('0x1e66')][_0x1c50f5('0x8d6')]['id']);else{const _0x3279b8=_0x5eb4c9;_0x3279b8&&_0x548f48(_0x3279b8),_0x3279b8[_0x1c50f5('0x3a9')]&&_0x1414a1[_0x1c50f5('0x8d6')]&&_0x1414a1[_0x1c50f5('0x8d6')]['id']&&(_0x3279b8['Interaction']['id']=_0x1414a1[_0x1c50f5('0x8d6')]['id'],_0x36ea55[_0x1c50f5('0x763')]['update'](_0x3279b8[_0x1c50f5('0x3a9')])[_0x1c50f5('0x1964')][_0x1c50f5('0x173b')](function(_0x6100a4){const _0x28c499=_0x1c50f5;if(_0x6100a4&&_0x6100a4[_0x28c499('0x1636')])_0x1414a1[_0x28c499('0x1e66')]['saved']=!![],_0x1414a1[_0x28c499('0x8d6')]['closed']=!![],_0x4982ea();else _0x3279b8['Interaction'][_0x28c499('0x1cae')]!==null&&(_0x1414a1['tab'][_0x28c499('0x1049')]=!![],_0x1414a1['tab'][_0x28c499('0x8d6')][_0x28c499('0x1cae')]=_0x3279b8[_0x28c499('0x3a9')]['substatus'],_0x2dabb1[_0x28c499('0x1d44')]['$parent'][_0x28c499('0x1d44')]['vm']['closeTab'](_0x1414a1['tab']));})[_0x1c50f5('0x103c')](function(_0x3a914f){console['error'](_0x3a914f);}));}}})['finally'](function(){const _0x1814ac=_0x4f332b;_0x1414a1['tab'][_0x1814ac('0x2418')]=![];});}function _0x11b6e4(_0x3e5d22,_0x216e32){const _0x592348=_0x350b1d;if(_0x216e32[_0x592348('0x102a')]){const _0x3648d1=_0x3c8d8a()[_0x592348('0x18ab')](_0x1414a1['messages'][_0x592348('0x6aa')],{'messageId':_0x216e32[_0x592348('0x102a')]});if(_0x3648d1)_0x46e5f3(_0x3e5d22,_0x3648d1);else return _0x36ea55[_0x592348('0x57')][_0x592348('0x1d97')]({'messageId':_0x216e32[_0x592348('0x102a')]})[_0x592348('0x1964')][_0x592348('0x173b')](function(_0x24c9ec){const _0x420fd4=_0x592348;_0x46e5f3(_0x3e5d22,_0x24c9ec&&_0x24c9ec[_0x420fd4('0x1a2f')]?_0x24c9ec['rows'][0x0]:undefined);})[_0x592348('0x103c')](function(_0x3a005b){console['error'](_0x3a005b),_0x46e5f3(_0x3e5d22,undefined);});}else _0x46e5f3(_0x3e5d22,_0x216e32);}function _0x2e1dac(_0x4cf86e){const _0x4ac1bc=_0x350b1d,_0x276bbf={'to':[]};_0x276bbf['to']['push'](_0x1414a1[_0x4ac1bc('0x82b')][_0x4ac1bc('0x16d')]),_0x347774[_0x4ac1bc('0x1cb7')]({'controller':_0x4ac1bc('0x27d6'),'controllerAs':'vm','templateUrl':_0x6ad3a0,'parent':angular['element'](_0x21abb6[_0x4ac1bc('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x1414a1['account'],'message':_0x276bbf,'type':_0x4cf86e},'fullscreen':!![]})[_0x4ac1bc('0x173b')](function(_0xaa036e){const _0x26ab61=_0x4ac1bc;return _0x36ea55['faxAccount'][_0x26ab61('0x482')]({'id':_0x1414a1[_0x26ab61('0xde4')]['id']},_0xaa036e)['$promise'][_0x26ab61('0x173b')](function(_0x16f612){const _0xf33ca9=_0x26ab61;_0x4ae628[_0xf33ca9('0xdfe')]({'title':_0xf33ca9('0x2370'),'msg':_0xf33ca9('0x1950')}),_0x2dabb1[_0xf33ca9('0x1d44')]['vm'][_0xf33ca9('0xe63')](_0xf33ca9('0x16d'),_0x16f612);})['catch'](function(_0x4f30cb){const _0x42d117=_0x26ab61;if(_0x4f30cb[_0x42d117('0x1e07')]&&_0x4f30cb['data'][_0x42d117('0x1d4a')]&&_0x4f30cb[_0x42d117('0x1e07')][_0x42d117('0x1d4a')]['length'])for(let _0x2fa862=0x0;_0x2fa862<_0x4f30cb['data']['errors'][_0x42d117('0x543')];_0x2fa862++){_0x4ae628[_0x42d117('0x15aa')]({'title':_0x4f30cb[_0x42d117('0x1e07')]['errors'][_0x2fa862][_0x42d117('0x1810')],'msg':_0x4f30cb['data'][_0x42d117('0x1d4a')][_0x2fa862][_0x42d117('0x67f')]});}else _0x4ae628[_0x42d117('0x15aa')]({'title':_0x42d117('0xce5'),'msg':_0x4f30cb[_0x42d117('0x1e07')]?JSON[_0x42d117('0x100b')](_0x4f30cb[_0x42d117('0x1e07')]):_0x4f30cb[_0x42d117('0x67f')]||_0x4f30cb[_0x42d117('0x1b75')]()});});});}function _0xa8fbd3(_0x574ea1,_0x1d84f0){const _0x288773=_0x350b1d;_0x347774['show']({'controller':_0x288773('0xd4b'),'controllerAs':'vm','templateUrl':_0x317183,'parent':angular['element'](_0x21abb6[_0x288773('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x1414a1[_0x288773('0xde4')],'message':_0x1d84f0,'type':_0x574ea1},'fullscreen':!![],'skipHide':Boolean(_0x1414a1[_0x288773('0x1e66')][_0x288773('0x2100')])})['then'](function(_0x2cd86c){_0x2cd86c&&_0x548f48(_0x2cd86c);});}function _0x42897d(_0x3d3575,_0x568d72){const _0x33f897=_0x350b1d;_0x347774[_0x33f897('0x1cb7')]({'controller':'ComposeWhatsappInteractionDialogController','controllerAs':'vm','templateUrl':_0x2bb9a1,'parent':angular[_0x33f897('0xb6d')](_0x21abb6[_0x33f897('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x1414a1[_0x33f897('0xde4')],'message':_0x568d72,'type':_0x3d3575},'fullscreen':!![],'skipHide':Boolean(_0x1414a1['tab'][_0x33f897('0x2100')])})[_0x33f897('0x173b')](function(_0x1f9dbd){_0x1f9dbd&&_0x548f48(_0x1f9dbd);});}function _0x7e6930(){const _0x2421e9=_0x350b1d;if(_0x1414a1[_0x2421e9('0x8d6')]){const _0x20617f=_0x3c8d8a()['findLast'](_0x1414a1[_0x2421e9('0x558')]['rows'],function(_0x415f01){const _0x3f3465=_0x2421e9;return _0x415f01[_0x3f3465('0x15f4')]==='in';});_0x20617f?_0x347774[_0x2421e9('0x1cb7')]({'controller':_0x2421e9('0x3b7'),'controllerAs':'vm','templateUrl':_0x468e08,'parent':angular[_0x2421e9('0xb6d')](_0x21abb6[_0x2421e9('0x1a5')]),'clickOutsideToClose':![],'locals':{'account':_0x1414a1[_0x2421e9('0xde4')],'interaction':_0x1414a1[_0x2421e9('0x8d6')],'message':_0x20617f,'channel':_0x1414a1['tab'][_0x2421e9('0x1134')]}})[_0x2421e9('0x173b')](function(_0x23d2a1){const _0x96fcff=_0x2421e9;_0x1414a1[_0x96fcff('0x1e66')][_0x96fcff('0x1049')]=Boolean(_0x23d2a1),_0x23d2a1&&_0x2dabb1[_0x96fcff('0x1d44')][_0x96fcff('0x1d44')][_0x96fcff('0x1d44')]['vm']['closeTab'](_0x1414a1['tab']);}):_0x4ae628[_0x2421e9('0x15aa')]({'title':'Invalid\x20transfer','msg':_0x2421e9('0xa02')});}}function _0x43075d(_0x457803){const _0x415fda=_0x350b1d,_0x3f62ee={},_0x3b8206=_0x1414a1[_0x415fda('0x1e66')][_0x415fda('0x1134')]===_0x415fda('0x8c5')?_0x415fda('0x1796'):_0x3c8d8a()[_0x415fda('0x587')](_0x1414a1['tab'][_0x415fda('0x1134')])+_0x415fda('0x90e');return _0x3f62ee[_0x3b8206]=_0x1414a1['interaction'][_0x3b8206][_0x415fda('0x1b75')](),_0x3f62ee[_0x3c8d8a()[_0x415fda('0x587')](_0x1414a1['tab'][_0x415fda('0x1134')])+_0x415fda('0x223e')]=_0x1414a1[_0x415fda('0x8d6')]['id'],(_0x1414a1[_0x415fda('0x1e66')][_0x415fda('0x1134')]===_0x415fda('0x1a8f')||_0x1414a1[_0x415fda('0x1e66')][_0x415fda('0x1134')]==='whatsapp')&&(_0x3f62ee[_0x415fda('0xa04')]=_0x1414a1['interaction'][_0x415fda('0xa04')]),_0x457803&&(_0x3f62ee['UserId']=_0x1414a1[_0x415fda('0x166f')]['id'],_0x3f62ee[_0x415fda('0x283f')]=_0x1414a1[_0x415fda('0x8d6')][_0x415fda('0x283f')],_0x3f62ee[_0x415fda('0x1a5')]=_0x457803),_0x3f62ee;}function _0x45c363(_0x3c3368){const _0x15f068=_0x350b1d;if(_0x3c3368[_0x15f068('0x2361')]>_0x110bed)return _0x4ae628['error']({'title':_0x15f068('0xd1e'),'msg':_0x15f068('0xdfc')+_0x2ac657+'MB'}),![];return!![];}function _0x31aa87(_0x3ae8be,_0x43f2d6){const _0x241412=_0x350b1d,_0x477a5f=JSON[_0x241412('0x1d5e')](_0x43f2d6);let _0xb24aed=_0x477a5f[_0x241412('0x10ad')];_0x1414a1[_0x241412('0x1e66')][_0x241412('0x1134')]===_0x241412('0x8c5')&&(_0xb24aed=_0x241412('0xc7f')+(_0x1414a1[_0x241412('0xde4')]['remote']?_0x1414a1['account'][_0x241412('0x173')]:_0x252fc5['protocol']()+_0x241412('0x122b')+_0x252fc5[_0x241412('0x4d1')]())+'/api/chat/interactions/'+_0x1414a1['interaction']['id']+_0x241412('0xfe0')+_0x477a5f['id']+'&token='+_0x1414a1[_0x241412('0xde4')]['token']+_0x241412('0x107c')+_0x477a5f[_0x241412('0x10ad')]+_0x241412('0x81a')),_0x548f48({'body':_0xb24aed,'AttachmentId':_0x477a5f['id']});}function _0x5addda(){const _0x3af8dd=_0x350b1d;_0x1414a1['ngFlow'][_0x3af8dd('0x1789')][_0x3af8dd('0x2431')][_0x3af8dd('0x1670')]={'X-Requested-With':_0x3af8dd('0x12c9'),'Authorization':_0x3af8dd('0x221')+_0x126212[_0x3af8dd('0x1d97')](_0x3af8dd('0x7c6'))},_0x1414a1[_0x3af8dd('0x428')]['flow'][_0x3af8dd('0xb1e')]();}function _0x2e8336(_0x44eb05,_0x2aea16){const _0x81a60=_0x350b1d;if(_0x44eb05&&_0x44eb05[_0x81a60('0x603')]===0xd&&_0x44eb05[_0x81a60('0x1eae')])return;if(_0x44eb05&&_0x44eb05['keyCode']!==0xd)return;if(_0x2aea16[_0x81a60('0x16b1')]()==='')return;_0x548f48(_0x43075d(_0x2aea16[_0x81a60('0x166c')](/\n$/,'')));}function _0x989625(){const _0x4be3c7=_0x350b1d;_0x1414a1[_0x4be3c7('0x1e66')][_0x4be3c7('0x1134')]!=='mail'&&_0x2f6a54(function(){const _0x550ea0=_0x4be3c7,_0x253255=angular['element'](_0x21abb6[_0x550ea0('0x18ab')](_0x550ea0('0x248c')+_0x1414a1[_0x550ea0('0x1e66')]['id']+'\x27]'));_0x253255&&_0x253255[0x0]&&(_0x253255[0x0][_0x550ea0('0x2208')]=_0x253255[0x0]['scrollHeight']);},0x0);}function _0x5a0398(_0x36077f){const _0x102bd5=_0x350b1d,_0x11667b=_0x102bd5('0xd62');if(_0x36077f){if(_0x36077f[_0x102bd5('0x15f4')]==='in')return _0x36077f[_0x102bd5('0x1f70')]?_0x36077f[_0x102bd5('0x1f70')][_0x102bd5('0x1e50')]||'Anonymous':_0x11667b;else{if(_0x36077f[_0x102bd5('0x181c')])return _0x1414a1[_0x102bd5('0xa27')]?_0x1414a1[_0x102bd5('0xa27')][_0x36077f[_0x102bd5('0x181c')]]:_0x11667b;}return _0x102bd5('0xc9b')||0x0;}}function _0x3ec3d0(_0x1a3780,_0x2af630){const _0x113965=_0x350b1d;_0x1414a1[_0x113965('0x1e66')][_0x113965('0x1134')]&&_0x1a3780['id']&&_0x36ea55[_0x1414a1[_0x113965('0x1e66')][_0x113965('0x1134')]+_0x113965('0x1bd7')]['download']({'id':_0x1a3780['id'],'attachments':_0x2af630})[_0x113965('0x1964')]['then'](function(_0x5f0074){const _0x4fd05b=_0x113965,_0x222945=[_0x5f0074[_0x4fd05b('0x1c22')]];let _0x5adc84=_0x4fd05b('0xfce');const _0x2ad717=new Blob(_0x222945,{'type':_0x5f0074[_0x4fd05b('0x1810')]});_0x5adc84=_0x1414a1['tab']['channel']+_0x4fd05b('0x2250')+_0x1a3780['id']+'.eml';const _0x4add6f=window[_0x4fd05b('0x222a')]['createElement']('a');_0x4add6f[_0x4fd05b('0x11c3')](_0x4fd05b('0x165c'),URL[_0x4fd05b('0x1466')](_0x2ad717)),_0x4add6f[_0x4fd05b('0x11c3')](_0x4fd05b('0xfce'),_0x5adc84),document[_0x4fd05b('0x1a5')]['appendChild'](_0x4add6f),_0x4add6f['click']();})[_0x113965('0x103c')](function(_0x3a7e3b){const _0x54e937=_0x113965;if(_0x3a7e3b[_0x54e937('0x1e07')]&&_0x3a7e3b[_0x54e937('0x1e07')][_0x54e937('0x1d4a')]&&_0x3a7e3b[_0x54e937('0x1e07')][_0x54e937('0x1d4a')]['length'])for(let _0x2fe9d0=0x0;_0x2fe9d0<_0x3a7e3b['data'][_0x54e937('0x1d4a')][_0x54e937('0x543')];_0x2fe9d0+=0x1){_0x4ae628[_0x54e937('0x15aa')]({'title':_0x3a7e3b[_0x54e937('0x1e07')][_0x54e937('0x1d4a')][_0x2fe9d0][_0x54e937('0x1810')],'msg':_0x3a7e3b[_0x54e937('0x1e07')]['errors'][_0x2fe9d0][_0x54e937('0x67f')]});}else _0x4ae628['error']({'title':_0x3a7e3b[_0x54e937('0x276f')]?_0x54e937('0x137')+_0x3a7e3b[_0x54e937('0x276f')]+_0x54e937('0x160c')+_0x3a7e3b[_0x54e937('0x2696')]:_0x54e937('0x15ef'),'msg':_0x3a7e3b[_0x54e937('0x1e07')]?JSON['stringify'](_0x3a7e3b[_0x54e937('0x1e07')][_0x54e937('0x67f')]):_0x3a7e3b['toString']()});});}function _0x53326c(_0x591726,_0x4b7478){const _0x548789=_0x350b1d;_0x1414a1['tab'][_0x548789('0x1134')]&&_0x591726['id']&&_0x36ea55[_0x1414a1['tab'][_0x548789('0x1134')]+'Interaction']['download']({'id':_0x591726['id'],'attachments':_0x4b7478})['$promise'][_0x548789('0x173b')](function(_0x120732){const _0x29791b=_0x548789,_0x1507a8=[_0x120732[_0x29791b('0x1c22')]],_0x212e7a=_0x1414a1[_0x29791b('0x1e66')][_0x29791b('0x1134')]+_0x29791b('0x1000')+_0x591726['id']+_0x29791b('0x1421'),_0x29b904=new Blob(_0x1507a8,{'type':_0x120732[_0x29791b('0x1810')]}),_0x2fb378=window['document'][_0x29791b('0x1258')]('a');_0x2fb378[_0x29791b('0x11c3')]('href',URL[_0x29791b('0x1466')](_0x29b904)),_0x2fb378[_0x29791b('0x11c3')](_0x29791b('0xfce'),_0x212e7a),document[_0x29791b('0x1a5')]['appendChild'](_0x2fb378),_0x2fb378[_0x29791b('0x3cb')]();})[_0x548789('0x103c')](function(_0x237f86){const _0x1f9e50=_0x548789;if(_0x237f86[_0x1f9e50('0x1e07')]&&_0x237f86[_0x1f9e50('0x1e07')][_0x1f9e50('0x1d4a')]&&_0x237f86[_0x1f9e50('0x1e07')]['errors'][_0x1f9e50('0x543')])for(let _0x2f6aea=0x0;_0x2f6aea<_0x237f86['data']['errors'][_0x1f9e50('0x543')];_0x2f6aea+=0x1){_0x4ae628['error']({'title':_0x237f86[_0x1f9e50('0x1e07')][_0x1f9e50('0x1d4a')][_0x2f6aea][_0x1f9e50('0x1810')],'msg':_0x237f86[_0x1f9e50('0x1e07')][_0x1f9e50('0x1d4a')][_0x2f6aea][_0x1f9e50('0x67f')]});}else _0x4ae628[_0x1f9e50('0x15aa')]({'title':_0x237f86[_0x1f9e50('0x276f')]?_0x1f9e50('0x137')+_0x237f86['status']+_0x1f9e50('0x160c')+_0x237f86[_0x1f9e50('0x2696')]:_0x1f9e50('0x2130'),'msg':_0x237f86[_0x1f9e50('0x1e07')]?JSON[_0x1f9e50('0x100b')](_0x237f86[_0x1f9e50('0x1e07')][_0x1f9e50('0x67f')]):_0x237f86[_0x1f9e50('0x1b75')]()});});}function _0x548f48(_0x5fef33){const _0x3d0aa4=_0x350b1d;if(_0x5fef33)return _0x5fef33[_0x1414a1[_0x3d0aa4('0x1e66')]['channel']===_0x3d0aa4('0x8c5')?_0x3d0aa4('0x1796'):_0x3c8d8a()[_0x3d0aa4('0x587')](_0x1414a1[_0x3d0aa4('0x1e66')][_0x3d0aa4('0x1134')])+_0x3d0aa4('0x90e')]=_0x1414a1[_0x3d0aa4('0x8d6')][_0x1414a1[_0x3d0aa4('0x1e66')][_0x3d0aa4('0x1134')]===_0x3d0aa4('0x8c5')?_0x3d0aa4('0x1796'):_0x3c8d8a()['capitalize'](_0x1414a1[_0x3d0aa4('0x1e66')][_0x3d0aa4('0x1134')])+_0x3d0aa4('0x90e')],_0x5fef33[_0x3c8d8a()[_0x3d0aa4('0x587')](_0x1414a1[_0x3d0aa4('0x1e66')][_0x3d0aa4('0x1134')])+_0x3d0aa4('0x223e')]=_0x1414a1[_0x3d0aa4('0x8d6')]['id'],_0x5fef33[_0x3d0aa4('0x181c')]=_0x1414a1[_0x3d0aa4('0x166f')]['id'],_0x5fef33[_0x3d0aa4('0x283f')]=_0x1414a1[_0x3d0aa4('0x8d6')][_0x3d0aa4('0x283f')],_0x5fef33[_0x3d0aa4('0x15f4')]=_0x3d0aa4('0xe0a'),_0x5fef33[_0x3d0aa4('0x27ed')]=Boolean(_0x1414a1['tab'][_0x3d0aa4('0x2100')]||_0x5fef33[_0x3d0aa4('0x27ed')]),_0x36ea55[_0x1414a1[_0x3d0aa4('0x1e66')]['channel']+_0x3d0aa4('0x1bd7')]['save'](_0x5fef33)[_0x3d0aa4('0x1964')]['then'](function(_0x276e05){const _0x588770=_0x3d0aa4;if(_0x276e05&&_0x276e05['id']){if(!_0x3c8d8a()[_0x588770('0x1a56')](_0x5fef33[_0x588770('0x178b')])){const _0x17e1f9=[];for(let _0x1acb37=0x0;_0x1acb37<_0x5fef33[_0x588770('0x178b')]['length'];_0x1acb37++){const _0xed1da4=_0x5fef33[_0x588770('0x178b')][_0x1acb37];_0xed1da4['MailMessageId']?_0x17e1f9[_0x588770('0x18bb')](_0x36ea55['attachment'][_0x588770('0x979')]({'id':_0xed1da4['id']},{'name':_0xed1da4[_0x588770('0x10ad')],'basename':_0xed1da4['basename'],'type':_0xed1da4[_0x588770('0x1810')],'MailMessageId':_0x276e05['id']})['$promise']):_0x17e1f9['push'](_0x36ea55['attachment'][_0x588770('0x1842')]({'id':_0xed1da4['id']},{'MailMessageId':_0x276e05['id']})[_0x588770('0x1964')]);}return _0x377374[_0x588770('0x27c8')](_0x17e1f9);}}})[_0x3d0aa4('0x103c')](function(_0x1fc74b){const _0x39ea65=_0x3d0aa4;_0x4ae628[_0x39ea65('0x15aa')]({'title':_0x1fc74b[_0x39ea65('0x276f')]?'API:'+_0x1fc74b[_0x39ea65('0x276f')]+_0x39ea65('0x160c')+_0x1fc74b[_0x39ea65('0x2696')]:'SYSTEM:SENDMESSAGE','msg':_0x1fc74b[_0x39ea65('0x1e07')]?JSON[_0x39ea65('0x100b')](_0x1fc74b[_0x39ea65('0x1e07')]):_0x1fc74b[_0x39ea65('0x1b75')]()});})[_0x3d0aa4('0xf25')](function(){const _0x2682c5=_0x3d0aa4;_0x1414a1[_0x2682c5('0x1e66')]['channel']==='mail'&&(_0x5fef33[_0x2682c5('0x2418')]&&(_0x2fd06c['removeByInteraction'](_0x1414a1[_0x2682c5('0x8d6')]['id']),_0x1414a1[_0x2682c5('0x892')]=null)),_0x1414a1[_0x2682c5('0x1e66')][_0x2682c5('0x24ee')]='',_0x989625();});}function _0x4ea861(_0x17f15b){const _0xb4f91e=_0x350b1d;_0x1414a1[_0xb4f91e('0x1e66')]['channel']&&_0x1414a1[_0xb4f91e('0x8d6')]&&_0x1414a1[_0xb4f91e('0x8d6')]['id']&&_0x36ea55[_0x1414a1['tab'][_0xb4f91e('0x1134')]+_0xb4f91e('0x3a9')]['update']({'id':_0x1414a1['interaction']['id'],'substatus':_0x17f15b})[_0xb4f91e('0x1964')][_0xb4f91e('0x103c')](function(_0x508d90){console['error'](_0x508d90);});}function _0x41d33f(){const _0x3fdd52=_0x350b1d;if(_0x1414a1[_0x3fdd52('0x1e66')][_0x3fdd52('0x1134')]&&_0x1414a1['interaction']&&_0x1414a1[_0x3fdd52('0x8d6')]['id']){if(_0x1414a1[_0x3fdd52('0x3fa')][_0x3fdd52('0x543')])for(let _0xec32fe=0x0;_0xec32fe<_0x1414a1['acceptedMessages'][_0x3fdd52('0x543')];_0xec32fe+=0x1){_0x36ea55[_0x1414a1[_0x3fdd52('0x1e66')][_0x3fdd52('0x1134')]+'Message']['update']({'id':_0x1414a1[_0x3fdd52('0x3fa')][_0xec32fe],'read':![],'UserId':null});}else for(let _0x4579fa=0x0;_0x4579fa<_0x1414a1[_0x3fdd52('0x558')][_0x3fdd52('0x6aa')][_0x3fdd52('0x543')];_0x4579fa+=0x1){if(_0x1414a1[_0x3fdd52('0x558')][_0x3fdd52('0x6aa')][_0x4579fa][_0x3fdd52('0x15f4')]==='in'){_0x1414a1[_0x3fdd52('0x558')][_0x3fdd52('0x6aa')][_0x4579fa]['UserId']===_0x1414a1[_0x3fdd52('0x166f')]['id']?_0x36ea55[_0x1414a1[_0x3fdd52('0x1e66')][_0x3fdd52('0x1134')]+'Message'][_0x3fdd52('0x1842')]({'id':_0x1414a1[_0x3fdd52('0x558')][_0x3fdd52('0x6aa')][_0x4579fa]['id'],'read':![],'UserId':null}):_0x4ae628[_0x3fdd52('0x15aa')]({'title':'You\x20can\x27t\x20mark\x20as\x20unread','msg':'You\x20are\x20not\x20the\x20owner\x20of\x20the\x20last\x20message!'});break;}}}_0x1414a1[_0x3fdd52('0x1e66')][_0x3fdd52('0x1049')]=!![],_0x2dabb1[_0x3fdd52('0x1d44')][_0x3fdd52('0x1d44')]['$parent']['vm'][_0x3fdd52('0x26ab')](_0x1414a1[_0x3fdd52('0x1e66')]);}function _0x527301(_0x426578){const _0x56bd4f=_0x350b1d;if(_0x426578&&_0x1414a1[_0x56bd4f('0x8d6')]['id']!==_0x426578['id'])return;_0x426578[_0x56bd4f('0x1636')]&&(_0x1414a1[_0x56bd4f('0x1e66')][_0x56bd4f('0x1049')]=!![]),_0x3c8d8a()['merge'](_0x1414a1[_0x56bd4f('0x8d6')],_0x426578);}function _0x36814b(_0x3e5518){const _0x5ab26c=_0x350b1d;if(_0x3e5518&&_0x1414a1[_0x5ab26c('0x8d6')]['id']!=_0x3e5518[_0x3c8d8a()[_0x5ab26c('0x587')](_0x1414a1[_0x5ab26c('0x1e66')]['channel'])+_0x5ab26c('0x223e')])return;let _0xb4bc44=![];_0x1414a1['messages']?_0xb4bc44=_0x3c8d8a()[_0x5ab26c('0x18ab')](_0x1414a1['messages']['rows'],{'id':_0x3e5518['id']}):_0x1414a1['messages']={'rows':[],'count':0x0},_0xb4bc44?_0x3c8d8a()['merge'](_0xb4bc44,_0x3e5518):(_0x1414a1['tab'][_0x5ab26c('0x1134')]===_0x5ab26c('0x108a')?_0x1414a1[_0x5ab26c('0x558')][_0x5ab26c('0x6aa')][_0x5ab26c('0x1377')](_0x3e5518):_0x1414a1[_0x5ab26c('0x558')][_0x5ab26c('0x6aa')][_0x5ab26c('0x18bb')](_0x3e5518),_0x989625());}function _0x4d1d13(_0x27b648){const _0x4bfcf0=_0x350b1d;switch(_0x27b648){case _0x4bfcf0('0x8c5'):return'icon-hangouts';case'mail':return _0x4bfcf0('0x16b4');case _0x4bfcf0('0x1a8f'):return _0x4bfcf0('0x1147');case _0x4bfcf0('0x245'):return _0x4bfcf0('0xfdd');case _0x4bfcf0('0xab2'):return _0x4bfcf0('0x1f64');case _0x4bfcf0('0x16d'):return _0x4bfcf0('0x41c');default:return _0x4bfcf0('0x11d1');}}function _0x3ff1a2(_0x44b13b){const _0x525f95=_0x350b1d;switch(_0x44b13b){case _0x525f95('0x8c5'):return _0x525f95('0x77f');case _0x525f95('0x108a'):return _0x525f95('0x1dfa');case _0x525f95('0x1a8f'):return _0x525f95('0x1989');case _0x525f95('0xab2'):return'amber-A200';case _0x525f95('0x16d'):return'blue-grey-A200';case _0x525f95('0x245'):return'lime-A700';default:return _0x525f95('0x719');}}function _0x3dd50d(_0x581a2c){const _0x1e6f15=_0x350b1d;let _0x241421='';if(_0x581a2c[_0x1e6f15('0xcba')])_0x241421=_0x1e6f15('0x16d');else{if(_0x581a2c[_0x1e6f15('0xf5a')])_0x241421=_0x1e6f15('0xab2');else{if(_0x581a2c['SmsAccountId'])_0x241421='sms';else{if(_0x581a2c[_0x1e6f15('0x2720')])_0x241421=_0x1e6f15('0x245');else{if(_0x581a2c[_0x1e6f15('0x559')])_0x241421='mail';else{if(_0x581a2c[_0x1e6f15('0x1796')])_0x241421=_0x1e6f15('0x8c5');else _0x581a2c[_0x1e6f15('0x610')]&&(_0x241421='voice');}}}}}return _0x3ff1a2(_0x241421);}function _0x400acf(_0x470826){const _0x472f9e=_0x350b1d;if(_0x470826[_0x472f9e('0x27ed')]&&_0x1414a1[_0x472f9e('0x166f')]['id']!=_0x470826[_0x472f9e('0x181c')])return'in';switch(_0x1414a1[_0x472f9e('0x251')][_0x472f9e('0x2e5')]){case _0x472f9e('0x292'):if(_0x470826['direction']=='in')return _0x470826[_0x472f9e('0x15f4')];return _0x472f9e('0x1a51');case _0x472f9e('0x14af'):if(_0x470826[_0x472f9e('0x15f4')]=='in')return'in-right-aligned';return _0x470826['direction'];default:return _0x470826[_0x472f9e('0x15f4')];}}function _0x2fab88(){const _0x2a061e=_0x350b1d;_0x1414a1[_0x2a061e('0x59b')]=!_0x1414a1[_0x2a061e('0x59b')];}function _0x812f04(_0x246acf){const _0x40dabe=_0x350b1d;return _0x36ea55[_0x40dabe('0x1d9f')][_0x40dabe('0x1d97')]({'MailMessageId':_0x246acf['id']})['$promise']['then'](function(_0x134154){const _0x10b46c=_0x40dabe;_0x134154&&_0x134154[_0x10b46c('0x6aa')]&&(_0x246acf[_0x10b46c('0x178b')]=_0x134154[_0x10b46c('0x6aa')]);})[_0x40dabe('0x103c')](function(_0xd71838){const _0x5f2a03=_0x40dabe;_0x4ae628[_0x5f2a03('0x15aa')]({'title':_0xd71838[_0x5f2a03('0x276f')]?'API:'+_0xd71838[_0x5f2a03('0x276f')]+_0x5f2a03('0x160c')+_0xd71838[_0x5f2a03('0x2696')]:_0x5f2a03('0x1207'),'msg':_0xd71838['data']?JSON['stringify'](_0xd71838['data']):_0xd71838['toString']()});});}function _0x533370(_0x44237b){const _0x362dc7=_0x350b1d;return _0x36ea55[_0x362dc7('0x1d9f')]['download']({'id':_0x44237b['id']})[_0x362dc7('0x1964')][_0x362dc7('0x173b')](function(_0x755873){const _0x28e8d4=_0x362dc7;if(_0x755873){const _0x169a3e=new Blob([_0x755873[_0x28e8d4('0x1c22')]],{'type':_0x755873[_0x28e8d4('0x1810')]}),_0x35a27f=document[_0x28e8d4('0x1258')]('a'),_0x32758b=window[_0x28e8d4('0x135a')]['createObjectURL'](_0x169a3e);_0x35a27f[_0x28e8d4('0x165c')]=_0x32758b,_0x35a27f[_0x28e8d4('0x235')]=_0x28e8d4('0x1edf'),_0x35a27f['download']=_0x44237b['name'],document[_0x28e8d4('0x1a5')][_0x28e8d4('0x1f8d')](_0x35a27f),_0x35a27f[_0x28e8d4('0x3cb')](),setTimeout(function(){const _0x56bfba=_0x28e8d4;document['body'][_0x56bfba('0x1519')](_0x35a27f),window[_0x56bfba('0x135a')][_0x56bfba('0x2510')](_0x32758b);},0x64);}})['catch'](function(_0x535bf0){const _0x408471=_0x362dc7;_0x4ae628[_0x408471('0x15aa')]({'title':_0x535bf0[_0x408471('0x276f')]?'API:'+_0x535bf0['status']+_0x408471('0x160c')+_0x535bf0[_0x408471('0x2696')]:_0x408471('0x1207'),'msg':_0x535bf0[_0x408471('0x1e07')]?JSON[_0x408471('0x100b')](_0x535bf0['data']):_0x535bf0[_0x408471('0x1b75')]()});});}function _0x297085(){const _0x542952=_0x350b1d;if(!_0x1414a1[_0x542952('0x1e66')][_0x542952('0x2100')]&&!_0x1414a1[_0x542952('0x8d6')][_0x542952('0x1636')])for(let _0x1921a3=0x0;_0x1921a3<_0x1414a1[_0x542952('0x558')][_0x542952('0x6aa')][_0x542952('0x543')];_0x1921a3+=0x1){_0x1414a1[_0x542952('0x558')][_0x542952('0x6aa')][_0x1921a3][_0x542952('0x15f4')]==='in'&&!_0x1414a1[_0x542952('0x558')][_0x542952('0x6aa')][_0x1921a3][_0x542952('0x69b')]&&(_0x36ea55[_0x1414a1['tab'][_0x542952('0x1134')]+_0x542952('0x1bd7')][_0x542952('0x1905')]({'id':_0x1414a1[_0x542952('0x558')]['rows'][_0x1921a3]['id'],'UserId':_0x1414a1[_0x542952('0x166f')]['id']}),_0x1414a1[_0x542952('0x3fa')][_0x542952('0x18bb')](_0x1414a1[_0x542952('0x558')]['rows'][_0x1921a3]['id']));}}function _0xd70513(_0x5c6243){const _0x2e221f=_0x350b1d;if(!_0x5c6243[_0x2e221f('0x2766')])return'('+_0x305706[_0x2e221f('0x1467')]('DASHBOARDS.NO_DISPOSITION_SET')+')';const _0x4e3bb4=_0x3c8d8a()[_0x2e221f('0x2714')]([_0x5c6243[_0x2e221f('0x2766')],_0x5c6243[_0x2e221f('0x1a84')],_0x5c6243['thirdDisposition']]);return'('+_0x4e3bb4['join']('\x20-\x20')+')';}function _0x46c68e(_0x63733d){const _0xa5a277=_0x350b1d;_0x63733d&&_0x63733d[_0xa5a277('0x1a2f')]&&_0x63733d[_0xa5a277('0x6aa')][_0xa5a277('0x543')]&&(_0x1414a1[_0xa5a277('0x276a')]=_0x3c8d8a()['concat'](_0x1414a1[_0xa5a277('0x276a')],_0x63733d[_0xa5a277('0x6aa')]),_0x1414a1[_0xa5a277('0x276a')][_0xa5a277('0xa6a')](function(_0x387e03){const _0x17de47=_0xa5a277;_0x387e03[_0x17de47('0x1a3')]=_0xd70513(_0x387e03);}));}function _0x4866f2(_0x13ecbb){const _0x5d4ebd=_0x350b1d;if(_0x13ecbb&&_0x13ecbb['id']){for(let _0x170011=0x0;_0x170011<_0x1414a1[_0x5d4ebd('0x16d4')][_0x5d4ebd('0x543')];_0x170011++){_0x36ea55[_0x1414a1[_0x5d4ebd('0x16d4')][_0x170011]+_0x5d4ebd('0x3a9')]['get']({'ContactId':_0x13ecbb['id'],'journey':!![],'includeAll':!![]})[_0x5d4ebd('0x1964')]['then'](_0x46c68e);}_0x36ea55[_0x5d4ebd('0x250f')][_0x5d4ebd('0x1d97')]({'ContactId':_0x13ecbb['id'],'includeAll':!![]})[_0x5d4ebd('0x1964')][_0x5d4ebd('0x173b')](_0x46c68e);}}function _0x47cf75(_0x2efefd){return _0x2efefd?String(_0x2efefd)['replace'](/<[^>]+>/gm,''):'';}function _0x9982a7(_0x1b099d){const _0x369353=_0x350b1d;switch(_0x1414a1[_0x369353('0x1e66')][_0x369353('0x1134')]){case _0x369353('0x108a'):_0x1414a1['draft'][_0x369353('0x732')][_0x369353('0xded')]=_0x1b099d?_0x3c8d8a()['find'](_0x1414a1[_0x369353('0x8d6')][_0x369353('0x2634')],['id',_0x1b099d]):_0x1414a1[_0x369353('0x8d6')][_0x369353('0x2634')][_0x1414a1[_0x369353('0x8d6')][_0x369353('0x2634')][_0x369353('0x543')]-0x1],_0x46e5f3(_0x1414a1['draft']['type'],_0x1414a1['draft']['content']);break;case _0x369353('0x16d'):break;case _0x369353('0xab2'):break;case _0x369353('0x1a8f'):break;case _0x369353('0x245'):break;}}_0x2dabb1['$on'](_0x350b1d('0x16d2'),function(){const _0x57ee28=_0x350b1d;_0x4b9a10[_0x57ee28('0x251c')](_0x1414a1[_0x57ee28('0x1e66')]['channel']+_0x57ee28('0x2128')),_0x4b9a10[_0x57ee28('0x251c')](_0x1414a1['tab'][_0x57ee28('0x1134')]+'Message:update'),_0x4b9a10[_0x57ee28('0x251c')](_0x1414a1[_0x57ee28('0x1e66')][_0x57ee28('0x1134')]+_0x57ee28('0x2815')),_0x4b9a10[_0x57ee28('0x251c')](_0x1414a1[_0x57ee28('0x1e66')][_0x57ee28('0x1134')]+_0x57ee28('0x2e4')),_0x4b9a10['removeAllListeners']('user_has_'+_0x1414a1['tab'][_0x57ee28('0x1134')]+_0x57ee28('0x165b')),_0x4b9a10[_0x57ee28('0x251c')]('user_has_'+_0x1414a1[_0x57ee28('0x1e66')]['channel']+_0x57ee28('0x177f'));});function _0x30df30(_0x1c52ee){const _0x354331=_0x350b1d,_0x53b62a={'id':_0x1c52ee['id']};return _0x36ea55[_0x354331('0x22a3')][_0x354331('0x230b')](_0x53b62a)['$promise']['then'](function(){const _0x4cf24d=_0x354331;_0x4ae628[_0x4cf24d('0xdfe')]({'title':_0x4cf24d('0x1994'),'msg':'Session\x20properly\x20created.'});})[_0x354331('0x103c')](function(){const _0x3dd658=_0x354331;_0x4ae628[_0x3dd658('0x15aa')]({'title':_0x3dd658('0x1994'),'msg':'Unable\x20to\x20create\x20session!'});});}}function _0x3fc1d1(_0x5c6cf1){const _0x37bda8=_0x566993;return{'scope':{'ngBindHtmlUnsafe':'='},'template':_0x37bda8('0x2e7'),'link':function(_0x2031a0){const _0x5c40e2=_0x37bda8;function _0x472d93(){const _0xc91404=a0_0xde5e,_0x7a9669='xm-mail-content-'+Math[_0xc91404('0x2207')](Math[_0xc91404('0x15ac')]()*0x270f+0x1);return'_0x57094d)return _0x24c25c[_0x146a49('0x15aa')]({'title':_0x146a49('0xd1e'),'msg':_0x146a49('0xdfc')+_0x329310+'MB'}),![];return!![];}function _0x4a2ec7(_0x49f5bc,_0x25d296){const _0xdbb170=_0x3c57a1;try{_0x25d296=JSON[_0xdbb170('0x1d5e')](_0x25d296),_0x25d296[_0xdbb170('0x2361')]=_0x49f5bc[_0xdbb170('0x2361')],_0x52f9c2['message']['attachments'][_0xdbb170('0x18bb')](_0x25d296);}catch(_0x45a9bc){console['error'](_0x45a9bc);}}function _0x4396ab(_0x57069a){const _0x39938f=_0x3c57a1;let _0x10433c='';return _0x57069a[_0x39938f('0x1e50')]&&_0x57069a['firstName']!==_0x57069a[_0x39938f('0x16d')]&&(_0x10433c+=_0x57069a['firstName']+'\x20'),_0x57069a[_0x39938f('0x1806')]&&_0x57069a[_0x39938f('0x1806')]!==_0x57069a[_0x39938f('0x16d')]&&(_0x10433c+=_0x57069a[_0x39938f('0x1806')]+'\x20'),_0x10433c+='<'+_0x57069a[_0x39938f('0x16d')]+'>';}function _0x3ac709(_0x33cc37){const _0x29a325=_0x3c57a1,_0x25de16=_0x33cc37;if(_0x3c8d8a()[_0x29a325('0x181')](_0x33cc37))return _0x33cc37[_0x29a325('0x16d')];if(_0x89a44(_0x25de16))return _0x25de16;return _0x24c25c['error'](_0x29a325('0x11fe')+_0x25de16+'\x20is\x20not\x20valid'),null;}function _0x89a44(_0x4e5591){const _0x5b8c2e=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x5b8c2e['test'](_0x4e5591);}function _0x1d0969(_0x5d9d61){const _0x1bf530=_0x3c57a1;return _0x51beda&&_0x51beda[_0x1bf530('0xef2')]?_0x3c488e['cmContact'][_0x1bf530('0x1d97')]({'ListId':_0x51beda[_0x1bf530('0xef2')],'nolimit':!![],'filter':_0x5d9d61,'fields':'firstName,lastName,fax'})[_0x1bf530('0x1964')][_0x1bf530('0x173b')](function(_0x2a8feb){return _0x2a8feb['rows'];}):[];}function _0x4b8437(){const _0x33621d=_0x3c57a1;_0x4e5104['draft']=_0x52f9c2['message'],_0x5041da[_0x33621d('0x1e1f')]();}}const _0x15d480=_0x3674e5;_0x24eea6[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x1d31'),_0x566993('0x1fe5'),_0x566993('0x175d'),_0x566993('0x638'),'account',_0x566993('0x67f'),_0x566993('0x1810'),_0x566993('0xbd4'),_0x566993('0x1558'),'$q','Auth',_0x566993('0x8d6'),_0x566993('0x2b7')];function _0x24eea6(_0x23113a,_0x5848fb,_0xe12c13,_0x4e9f77,_0x3effcb,_0xa76832,_0x132c30,_0x4740fc,_0x2f26d4,_0x313fd2,_0x5cbadb,_0xd4b02e,_0x8850a2,_0x4d12d1){const _0xd3dd45=_0x566993,_0xbad5a0=this,_0x47dea9=0x19,_0x46d510=_0x47dea9*0x400*0x400;_0xbad5a0[_0xd3dd45('0x155f')]=_0xd4b02e[_0xd3dd45('0x14d4')](),_0xbad5a0['secret']=_0x4740fc===_0xd3dd45('0x2564')?!![]:![],_0xbad5a0[_0xd3dd45('0x74c')]=!![],_0xbad5a0['hiddenBCC']=!![],_0xbad5a0[_0xd3dd45('0xab1')]=!![],_0xbad5a0[_0xd3dd45('0x1d4a')]=[],_0xbad5a0[_0xd3dd45('0x41f')]=[_0x4e9f77[_0xd3dd45('0x1d96')][_0xd3dd45('0x20e4')],_0x4e9f77['KEY_CODE'][_0xd3dd45('0xaae')],_0x4e9f77[_0xd3dd45('0x1d96')][_0xd3dd45('0x567')]],_0xbad5a0[_0xd3dd45('0xb5e')]=_0x1ec7ae,_0xbad5a0[_0xd3dd45('0xa44')]=_0xbf64ce,_0xbad5a0[_0xd3dd45('0x2024')]=_0x35cb6f,_0x3c8d8a()[_0xd3dd45('0x1a22')][_0xd3dd45('0x493')]=/{{([\s\S]+?)}}/g,_0xbad5a0[_0xd3dd45('0x1e25')]=_0x3c8d8a()[_0xd3dd45('0x1a98')]('{{\x20name\x20}}\x20<{{\x20email\x20}}>'),_0xbad5a0['replyTemplate']=_0x3c8d8a()[_0xd3dd45('0x1a98')](_0xd3dd45('0x189a')),_0xbad5a0[_0xd3dd45('0x2270')]=_0x3c8d8a()[_0xd3dd45('0x1a98')]('Begin\x20forwarded\x20message:

From:\x20{{\x20from\x20}}
Subject:\x20{{\x20subject\x20}}
Date:\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}}
To:\x20{{\x20to\x20}}'),_0xbad5a0[_0xd3dd45('0x67f')]={'from':_0xbad5a0[_0xd3dd45('0x1e25')]({'name':_0xa76832['name'],'email':_0xa76832['email']||_0xa76832[_0xd3dd45('0x2516')][_0xd3dd45('0x166f')]}),'to':[],'cc':[],'bcc':[],'body':_0x388915(),'type':_0x4740fc,'attachments':[],'showLastMessage':!![]},_0xbad5a0[_0xd3dd45('0x892')]=null,_0xbad5a0[_0xd3dd45('0x26f0')]={'skin':_0xd3dd45('0x20d1'),'startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0xd3dd45('0xfa7'),'toolbarGroups':[{'name':_0xd3dd45('0x9bd'),'groups':['styles']},{'name':_0xd3dd45('0x5ae'),'groups':[_0xd3dd45('0x456')]},{'name':_0xd3dd45('0x1267'),'groups':[_0xd3dd45('0x1267')]},{'name':_0xd3dd45('0x16d8'),'groups':[_0xd3dd45('0x16d8')]},{'name':_0xd3dd45('0xa2a'),'groups':[_0xd3dd45('0x3e3'),_0xd3dd45('0x117'),_0xd3dd45('0x227b')]}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0xbad5a0[_0xd3dd45('0x27ed')]?0xa0:0x12c,'autoGrow_maxHeight':_0x5848fb['innerHeight']-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window[_0xd3dd45('0x27bd')]['ENTER_BR'],'font_defaultLabel':_0xa76832[_0xd3dd45('0x1916')]?_0xa76832['fontFamily'][_0xd3dd45('0x43a')](',')[0x0]:_0xd3dd45('0x25a3'),'fontSize_defaultLabel':_0xa76832[_0xd3dd45('0x26d7')]||'12','removePlugins':_0xd3dd45('0xec2')};const _0x596b7b=[];for(let _0x3cf4c2=0x8;_0x3cf4c2<=0x48;_0x3cf4c2++){_0x596b7b[_0xd3dd45('0x18bb')](_0x3cf4c2+'/'+_0x3cf4c2+'pt');}_0xbad5a0[_0xd3dd45('0x26f0')][_0xd3dd45('0x91')]=_0x596b7b['join'](';'),_0xbad5a0[_0xd3dd45('0x8f9')]={'target':_0xd3dd45('0x20c3'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x46d510,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0xbad5a0['ngFlow']={'flow':{}},_0xbad5a0[_0xd3dd45('0x2252')]=_0x11f1ae,_0xbad5a0[_0xd3dd45('0x2837')]=_0x272f7f,_0xbad5a0[_0xd3dd45('0x1bf')]=_0x2f2f25,_0xbad5a0[_0xd3dd45('0x1821')]=_0x3e4e98,_0xbad5a0[_0xd3dd45('0x482')]=_0x6381b,_0xbad5a0[_0xd3dd45('0x2564')]=_0x2e1b16,_0xbad5a0[_0xd3dd45('0x1f6f')]=_0x75f23,_0xbad5a0[_0xd3dd45('0xb1e')]=_0x5a2c45,_0xbad5a0[_0xd3dd45('0x12b9')]=_0x31abf8,_0xbad5a0[_0xd3dd45('0x1e4f')]=_0x2b23a6,_0xbad5a0['fileAdded']=_0x4b0797,_0xbad5a0[_0xd3dd45('0xec7')]=_0x44ff6a,_0xbad5a0[_0xd3dd45('0x2653')]=_0x13caad,_0xbad5a0[_0xd3dd45('0x1bc1')]=_0x40a9f2,_0xbad5a0[_0xd3dd45('0x7f4')]=_0x5e7c60,_0xbad5a0[_0xd3dd45('0x18e2')]=_0x36fcb7,_0xbad5a0['loadLastMessage']=_0x420d82;switch(_0x4740fc){case _0xd3dd45('0x2252'):_0xbad5a0[_0xd3dd45('0x2252')](![]);break;case'replyAll':_0xbad5a0['reply'](!![]);break;case _0xd3dd45('0x1bf'):_0xbad5a0[_0xd3dd45('0x1bf')]();break;case _0xd3dd45('0x892'):_0xbad5a0[_0xd3dd45('0x1821')]();break;case'new':_0xbad5a0['newMail']();break;case _0xd3dd45('0x2564'):_0xbad5a0[_0xd3dd45('0x2564')]();break;}_0x2f26d4[_0xd3dd45('0x1f8e')][_0xd3dd45('0x1d97')]({'nolimit':!![]})[_0xd3dd45('0x1964')]['then'](function(_0x59c743){const _0x23eb6f=_0xd3dd45;_0xbad5a0[_0x23eb6f('0xebe')]=_0x59c743||{'count':0x0,'rows':[]};})['catch'](function(_0x12096a){console['error'](_0x12096a);});!_0xbad5a0[_0xd3dd45('0x27ed')]&&_0x24729e();function _0x11f1ae(_0x389f6e){const _0x17d2c8=_0xd3dd45;angular[_0x17d2c8('0x4a5')](_0x132c30)&&(_0xbad5a0[_0x17d2c8('0x67f')][_0x17d2c8('0x1810')]=_0x17d2c8('0x2252'),_0xbad5a0[_0x17d2c8('0x67f')]['to']=_0x132c30[_0x17d2c8('0x15f4')]==='in'?_0x132c30[_0x17d2c8('0xd40')]['split'](','):_0x132c30['to'][_0x17d2c8('0x43a')](','),_0xbad5a0['message'][_0x17d2c8('0x11bc')]=_0x3c8d8a()['startsWith'](_0x132c30['subject'],_0x17d2c8('0x1d6a'))?_0x132c30[_0x17d2c8('0x11bc')]:_0x17d2c8('0x1832')+_0x132c30[_0x17d2c8('0x11bc')],_0xbad5a0[_0x17d2c8('0x67f')][_0x17d2c8('0x102a')]=_0x132c30[_0x17d2c8('0xe11')],_0xbad5a0[_0x17d2c8('0x67f')][_0x17d2c8('0x1a5')]=_0x388915(),_0xbad5a0[_0x17d2c8('0x67f')][_0x17d2c8('0x178b')]=[],_0x389f6e&&_0x132c30['cc']&&(_0xbad5a0[_0x17d2c8('0x74c')]=![],_0xbad5a0['message']['cc']=_0x132c30['cc'][_0x17d2c8('0x43a')](',')),_0xbad5a0[_0x17d2c8('0x67f')][_0x17d2c8('0x1aa4')]=![]);}function _0x272f7f(){const _0x2ac942=_0xd3dd45;angular[_0x2ac942('0x4a5')](_0x132c30)&&(_0xbad5a0[_0x2ac942('0x67f')][_0x2ac942('0x1810')]=_0x2ac942('0x195f'),_0xbad5a0[_0x2ac942('0x67f')]['to']=_0x132c30['to']?_0x132c30['to'][_0x2ac942('0x43a')](','):[]);}function _0x3e4e98(){const _0x293815=_0xd3dd45;_0xbad5a0[_0x293815('0x2418')]=!![],angular[_0x293815('0x4a5')](_0x132c30)&&(_0x132c30['savedAsDraft']=![],_0xbad5a0[_0x293815('0x67f')]=angular[_0x293815('0x2e3')](_0x132c30),!_0x3c8d8a()[_0x293815('0x1a56')](_0xbad5a0[_0x293815('0x67f')]['cc'])&&(_0xbad5a0['hiddenCC']=![]),!_0x3c8d8a()[_0x293815('0x1a56')](_0xbad5a0[_0x293815('0x67f')][_0x293815('0x2366')])&&(_0xbad5a0['hiddenBCC']=![]));}function _0x2f2f25(){const _0x34b76a=_0xd3dd45;if(angular[_0x34b76a('0x4a5')](_0x132c30)){_0xbad5a0[_0x34b76a('0x67f')][_0x34b76a('0x1810')]=_0x34b76a('0x1bf'),_0xbad5a0[_0x34b76a('0x67f')][_0x34b76a('0x11bc')]=_0x3c8d8a()[_0x34b76a('0x17b2')](_0x132c30[_0x34b76a('0x11bc')],_0x34b76a('0xa1e'))?_0x132c30[_0x34b76a('0x11bc')]:'Fwd:\x20'+_0x132c30[_0x34b76a('0x11bc')],_0xbad5a0[_0x34b76a('0x67f')][_0x34b76a('0x1a5')]=_0x388915();if(_0x132c30['Attachments']&&_0x132c30[_0x34b76a('0x998')][_0x34b76a('0x543')])for(let _0x42294d=0x0;_0x42294d<_0x132c30[_0x34b76a('0x998')][_0x34b76a('0x543')];_0x42294d++){_0xbad5a0[_0x34b76a('0x67f')]['attachments'][_0x34b76a('0x18bb')](_0x132c30[_0x34b76a('0x998')][_0x42294d]);}_0xbad5a0[_0x34b76a('0x67f')]['showLastMessage']=![];}}function _0x2e1b16(){const _0x25315f=_0xd3dd45;_0xbad5a0[_0x25315f('0x1810')]=_0x25315f('0x2564'),_0xbad5a0['secret']=!![],_0xbad5a0[_0x25315f('0x67f')][_0x25315f('0x1a5')]=_0x25315f('0x3ec')+_0xa76832['fontFamily']+_0x25315f('0x23f0')+_0xa76832['fontSize']+_0x25315f('0x19db');}function _0x576fe8(_0xa97afe,_0x1b78a6){const _0x50a1bf=_0xd3dd45,_0xd104e7={'from':_0xbad5a0['message']['from'],'to':_0xbad5a0['message']['to'][_0x50a1bf('0x2259')](','),'cc':_0xbad5a0['message']['cc'][_0x50a1bf('0x2259')](','),'bcc':_0xbad5a0[_0x50a1bf('0x67f')][_0x50a1bf('0x2366')]['join'](','),'subject':_0xbad5a0[_0x50a1bf('0x67f')][_0x50a1bf('0x11bc')],'body':_0xbad5a0[_0x50a1bf('0x67f')][_0x50a1bf('0x1aa4')]?_0xbad5a0[_0x50a1bf('0x67f')][_0x50a1bf('0x1a5')]:_0xbad5a0['message']['body']+_0x1fc139(_0xbad5a0['message'][_0x50a1bf('0x1810')]),'inReplyTo':_0xbad5a0[_0x50a1bf('0x67f')]['inReplyTo'],'attach':_0xbad5a0['message'][_0x50a1bf('0x178b')][_0x50a1bf('0x543')],'attachments':_0xbad5a0[_0x50a1bf('0x67f')][_0x50a1bf('0x178b')],'Interaction':{'lastMsgDirection':_0x50a1bf('0xe0a'),'lastMsgBody':_0xbad5a0[_0x50a1bf('0x67f')][_0x50a1bf('0x1a5')],'substatus':_0x1b78a6},'isDraft':_0xbad5a0[_0x50a1bf('0x2418')]};_0xd104e7[_0x50a1bf('0x267e')]=_0x50a1bf('0x1e9f')+_0x3c8d8a()['replace'](_0xd104e7[_0x50a1bf('0x1a5')],_0x50a1bf('0x1552'),_0x50a1bf('0x4b0'))+_0x50a1bf('0xd55'),_0xa97afe&&(_0xd104e7[_0x50a1bf('0x3a9')][_0x50a1bf('0x1636')]=!![]),_0xe12c13[_0x50a1bf('0x1cf4')](_0xd104e7);}function _0x6381b(_0x4f001f,_0x38b5a5,_0x53345a){const _0x363785=_0xd3dd45;if(_0xbad5a0[_0x363785('0x67f')]['to']&&_0xbad5a0[_0x363785('0x67f')][_0x363785('0x1a5')]){if(_0xbad5a0[_0x363785('0x67f')]['to'][_0x363785('0x543')]){if(_0x3c8d8a()[_0x363785('0x1a56')](_0xbad5a0[_0x363785('0x67f')][_0x363785('0x11bc')])){const _0x963e85=_0xe12c13[_0x363785('0x1d02')]({'skipHide':!![]})[_0x363785('0x20d6')](_0x363785('0x2de'))['textContent']('This\x20message\x20has\x20no\x20subject.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20send\x20it?')['ariaLabel'](_0x363785('0x2de'))[_0x363785('0x21de')](_0x4f001f)['ok']('Send\x20Anyway')[_0x363785('0x1e1f')](_0x363785('0x1d4e'));_0xe12c13[_0x363785('0x1cb7')](_0x963e85)[_0x363785('0x173b')](function(){_0x576fe8(_0x38b5a5,_0x53345a);});}else _0x576fe8(_0x38b5a5,_0x53345a);}else _0x313fd2[_0x363785('0x15aa')](_0x363785('0x2127'));}}function _0x75f23(){const _0x435d66=_0xd3dd45;_0xbad5a0[_0x435d66('0x67f')][_0x435d66('0x1a5')]&&_0xe12c13[_0x435d66('0x1cf4')]({'secret':!![],'body':_0xbad5a0['message']['body'],'attach':_0xbad5a0[_0x435d66('0x67f')][_0x435d66('0x178b')][_0x435d66('0x543')],'attachments':_0xbad5a0[_0x435d66('0x67f')][_0x435d66('0x178b')]});}function _0xbf64ce(_0x4fcb17){const _0x598951=_0xd3dd45;if(_0x4fcb17&&_0x4fcb17[_0x598951('0xa7b')]&&_0xbad5a0[_0x598951('0x2534')])try{const _0x4c28de=_0x3c8d8a()[_0x598951('0x1a98')](_0x4fcb17[_0x598951('0xa7b')]),_0x290602={'user':_0xbad5a0['currentUser'],'account':_0xa76832,'interaction':_0x8850a2,'contact':_0x8850a2&&_0x8850a2[_0x598951('0x1f70')]?_0x8850a2[_0x598951('0x1f70')]:{}};_0xbad5a0['ckEditorInstance'][_0x598951('0x2268')](_0x4c28de(_0x290602));}catch(_0x45c1b6){console['error'](_0x45c1b6),_0xbad5a0[_0x598951('0x2534')][_0x598951('0x2268')](_0x4fcb17['value']);}document[_0x598951('0x1c4d')]('html-area')[_0x598951('0x6ea')](),_0xbad5a0['selectedItem']=null;}function _0x1ec7ae(_0x59f1af){const _0x5caf35=_0xd3dd45,_0x16a169=_0x5cbadb['defer']();let _0xcbfc7c=[];return _0x2f26d4[_0x5caf35('0x2849')][_0x5caf35('0x1d97')]({'filter':_0x59f1af,'MailAccountId':_0xa76832['id']})[_0x5caf35('0x1964')][_0x5caf35('0x173b')](function(_0x3d96f1){const _0x3e277c=_0x5caf35;return _0xcbfc7c=_0x3c8d8a()[_0x3e277c('0x163f')](_0xcbfc7c,_0x3d96f1[_0x3e277c('0x6aa')]),_0x2f26d4['cannedAnswer']['get']({'filter':_0x59f1af})[_0x3e277c('0x1964')];})[_0x5caf35('0x173b')](function(_0x3b5dcc){const _0x5d1305=_0x5caf35;_0xcbfc7c=_0x3c8d8a()[_0x5d1305('0x163f')](_0xcbfc7c,_0x3c8d8a()[_0x5d1305('0x278d')](_0x3b5dcc[_0x5d1305('0x6aa')],function(_0x10149c){const _0x5e8620=_0x5d1305;return!_0x10149c[_0x5e8620('0x559')]&&!_0x10149c['FaxAccountId']&&!_0x10149c[_0x5e8620('0x23b1')]&&!_0x10149c[_0x5e8620('0x2720')]&&!_0x10149c[_0x5e8620('0xf5a')]&&!_0x10149c[_0x5e8620('0x1796')];})),_0x16a169[_0x5d1305('0x155b')](_0xcbfc7c);})['catch'](function(_0x16177c){const _0x2d4cc2=_0x5caf35;_0x16a169[_0x2d4cc2('0x12a4')](_0x16177c);}),_0x16a169[_0x5caf35('0x2219')];}function _0x35cb6f(){const _0x2131e9=_0xd3dd45;try{_0xbad5a0['ckEditorInstance']=window[_0x2131e9('0x27bd')][_0x2131e9('0x1a2b')][_0x2131e9('0xe3a')];}catch(_0x846609){console[_0x2131e9('0x15aa')]('Unable\x20to\x20get\x20Html\x20Editor\x20instance',_0x846609);}}function _0x24729e(){const _0x3fb054=_0xd3dd45;return _0x2f26d4[_0x3fb054('0x77b')][_0x3fb054('0xab1')]({'id':_0xa76832['id']})['$promise']['catch'](function(_0x4ba072){const _0x16f5c3=_0x3fb054;_0xbad5a0[_0x16f5c3('0xab1')]=![],_0xbad5a0[_0x16f5c3('0x1d4a')][_0x16f5c3('0x18bb')]({'message':_0x4ba072['data'],'type':_0x4ba072['status']}),_0xbad5a0[_0x16f5c3('0x1d4a')][_0x16f5c3('0x18bb')]({'message':_0x16f5c3('0x1d9a'),'type':_0x16f5c3('0x1b32')});});}function _0x4b0797(_0xa48d6b){const _0x81ddcf=_0xd3dd45;if(_0xa48d6b[_0x81ddcf('0x2361')]>_0x46d510)return _0x313fd2[_0x81ddcf('0x15aa')]({'title':_0x81ddcf('0xd1e'),'msg':_0x81ddcf('0xdfc')+_0x47dea9+'MB'}),![];return!![];}function _0x5a2c45(){const _0x2e41ff=_0xd3dd45;_0xbad5a0[_0x2e41ff('0x428')][_0x2e41ff('0x1789')]['opts'][_0x2e41ff('0x1670')]={'X-Requested-With':_0x2e41ff('0x12c9'),'Authorization':_0x2e41ff('0x221')+_0x23113a[_0x2e41ff('0x1d97')]('motion.token')},_0xbad5a0['ngFlow'][_0x2e41ff('0x1789')][_0x2e41ff('0xb1e')]();}function _0x31abf8(_0x189b8c,_0x3f3eb5){const _0x38319b=_0xd3dd45;try{_0x3f3eb5=JSON[_0x38319b('0x1d5e')](_0x3f3eb5),_0x3f3eb5[_0x38319b('0x2361')]=_0x189b8c['size'],_0xbad5a0[_0x38319b('0x67f')][_0x38319b('0x178b')]['push'](_0x3f3eb5);}catch(_0x5e0c39){console[_0x38319b('0x15aa')](_0x5e0c39);}}function _0x2b23a6(_0x163a5c){const _0x586e22=_0xd3dd45;_0xbad5a0[_0x586e22('0x67f')]['attachments']=_0x3c8d8a()['reject'](_0xbad5a0[_0x586e22('0x67f')][_0x586e22('0x178b')],{'id':_0x163a5c['id']}),!_0x163a5c[_0x586e22('0x95b')]&&_0x2f26d4[_0x586e22('0x1d9f')][_0x586e22('0x15e8')]({'id':_0x163a5c['id']})[_0x586e22('0x1964')][_0x586e22('0x103c')](function(_0xe1058){const _0x28348f=_0x586e22;_0x313fd2['error']({'title':_0xe1058[_0x28348f('0x276f')]?_0x28348f('0x137')+_0xe1058[_0x28348f('0x276f')]+_0x28348f('0x160c')+_0xe1058['statusText']:_0x28348f('0xc13'),'msg':_0xe1058[_0x28348f('0x1e07')]?JSON[_0x28348f('0x100b')](_0xe1058['data'][_0x28348f('0x67f')]):_0xe1058[_0x28348f('0x1b75')]()});});}function _0x44ff6a(_0x222ec1){const _0x1244df=_0xd3dd45;let _0x3bfc37='';return _0x222ec1[_0x1244df('0x1e50')]&&_0x222ec1[_0x1244df('0x1e50')]!==_0x222ec1[_0x1244df('0x28e')]&&(_0x3bfc37+=_0x222ec1[_0x1244df('0x1e50')]+'\x20'),_0x222ec1[_0x1244df('0x1806')]&&_0x222ec1[_0x1244df('0x1806')]!==_0x222ec1[_0x1244df('0x28e')]&&(_0x3bfc37+=_0x222ec1[_0x1244df('0x1806')]+'\x20'),_0x3bfc37+='<'+_0x222ec1[_0x1244df('0x28e')]+'>';}function _0x40a9f2(_0xe306dd,_0x3db6a4){const _0x3471a1=_0xd3dd45;if(_0x3c8d8a()[_0x3471a1('0x181')](_0xe306dd))return _0xbad5a0['contact']=_0xe306dd,_0xe306dd[_0x3471a1('0x28e')];if(_0x3c8d8a()[_0x3471a1('0x250b')](_0xe306dd)){if(_0x302dba(_0xe306dd))return _0xbad5a0[_0x3471a1('0x82b')]={'email':_0xe306dd},_0xe306dd;else{const _0x1fa312=_0xe306dd[_0x3471a1('0x43a')](',');for(let _0x123969=0x0;_0x123969<_0x1fa312[_0x3471a1('0x543')];_0x123969+=0x1){_0x302dba(_0x1fa312[_0x123969])?_0x3c8d8a()[_0x3471a1('0x118')](_0x3db6a4)&&_0x3c8d8a()[_0x3471a1('0x2087')](_0x3db6a4,_0x1fa312[_0x123969])<0x0&&_0x3db6a4['push'](_0x1fa312[_0x123969]):_0x313fd2['error'](_0x3471a1('0x105f')+_0x1fa312[_0x123969]+'\x20is\x20not\x20valid');}return _0xbad5a0['contact']={'email':_0xe306dd[_0x3471a1('0x43a')](',')[0x0]},null;}}return _0x313fd2[_0x3471a1('0x15aa')]('Email\x20field\x20is\x20not\x20valid'),null;}function _0x13caad(_0x5bcbdd){const _0x4a6d5b=_0xd3dd45;return _0xa76832&&_0xa76832['ListId']?_0x2f26d4[_0x4a6d5b('0x1197')]['get']({'ListId':_0xa76832[_0x4a6d5b('0xef2')],'nolimit':!![],'filter':_0x5bcbdd,'fields':'firstName,lastName,email'})[_0x4a6d5b('0x1964')]['then'](function(_0x1e150d){const _0x2ce4ac=_0x4a6d5b;return _0x1e150d[_0x2ce4ac('0x6aa')];}):[];}function _0x5e7c60(){const _0x531541=_0xd3dd45;_0xbad5a0['message'][_0x531541('0x51')]=!![],_0xbad5a0[_0x531541('0x892')]=_0x4d12d1['getByInteraction'](_0x8850a2['id']);const _0x11a1d2={'account':_0xa76832,'message':_0xbad5a0[_0x531541('0x67f')],'contact':_0xbad5a0[_0x531541('0x82b')],'interaction':_0x8850a2};if(_0xbad5a0[_0x531541('0x892')]&&!_0xbad5a0['isDraft']){const _0x3fbd76=_0xe12c13[_0x531541('0x1d02')]({'skipHide':!![]})[_0x531541('0x20d6')](_0x3effcb[_0x531541('0x1467')](_0x531541('0x12d6')))[_0x531541('0x732')](_0x3effcb[_0x531541('0x1467')](_0x531541('0x1801')))['ariaLabel']('Save\x20draft')['ok'](_0x3effcb[_0x531541('0x1467')](_0x531541('0x2311')))[_0x531541('0x1e1f')](_0x3effcb[_0x531541('0x1467')](_0x531541('0x663')));_0xe12c13[_0x531541('0x1cb7')](_0x3fbd76)['then'](function(){const _0x498527=_0x531541;_0xe12c13[_0x498527('0x1cf4')](_0x11a1d2);});}else _0xe12c13[_0x531541('0x1cf4')](_0x11a1d2);}function _0x36fcb7(){const _0x1f101d=_0xd3dd45;_0xe12c13[_0x1f101d('0x1e1f')]();}function _0x302dba(_0xf6e8fb){const _0x2aab2e=_0xd3dd45,_0x199ac3=/^(([^<>()[\]\\.,;:\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 _0x199ac3[_0x2aab2e('0xf22')](_0xf6e8fb);}function _0x502e01(_0xcbc4a){const _0x15a211=/]*>([^]*)<\/body/m,_0x14f49b=_0xcbc4a['match'](_0x15a211);if(_0x14f49b)return _0x14f49b[0x1];return _0xcbc4a;}function _0x5d81cf(){const _0x37a537=_0xd3dd45;if(_0x3c8d8a()[_0x37a537('0x7d5')](_0xa76832[_0x37a537('0x1a98')]))return'';try{const _0xb9e0b9=_0x3c8d8a()['template'](_0xa76832[_0x37a537('0x1a98')]),_0x12ac14={'user':_0xbad5a0[_0x37a537('0x155f')],'account':_0xa76832,'interaction':_0x8850a2,'contact':_0x8850a2&&_0x8850a2[_0x37a537('0x1f70')]?_0x8850a2[_0x37a537('0x1f70')]:{}};return _0xb9e0b9(_0x12ac14);}catch(_0x3b7664){return console[_0x37a537('0x15aa')](_0x3b7664),'';}}function _0x388915(){const _0x4fcebe=_0xd3dd45;return _0x4fcebe('0x3ec')+_0xa76832[_0x4fcebe('0x1916')]+';font-size:'+_0xa76832[_0x4fcebe('0x26d7')]+_0x4fcebe('0xe00')+_0x5d81cf()+'';}function _0x1fc139(_0x5c41d2){const _0x256d0b=_0xd3dd45;let _0x7d80ed=_0x256d0b('0xb56');switch(_0x5c41d2){case'reply':case _0x256d0b('0x16f3'):_0x7d80ed+=_0xbad5a0[_0x256d0b('0x174f')]({'date':_0x156524()(_0x132c30[_0x256d0b('0xda8')])['format']('D\x20MMM\x20YYYY')||'','time':_0x156524()(_0x132c30[_0x256d0b('0xda8')])['format']('HH:mm')||'','from':_0x3c8d8a()[_0x256d0b('0x16f4')](_0x132c30[_0x256d0b('0xd40')])||''});break;case _0x256d0b('0x1bf'):_0x7d80ed+=_0xbad5a0[_0x256d0b('0x2270')]({'date':_0x156524()(_0x132c30[_0x256d0b('0xda8')])[_0x256d0b('0xddc')](_0x256d0b('0xd90'))||'','time':_0x156524()(_0x132c30[_0x256d0b('0xda8')])[_0x256d0b('0xddc')](_0x256d0b('0x11a2'))||'','from':_0x3c8d8a()[_0x256d0b('0x16f4')](_0x132c30['from'])||'','to':_0x3c8d8a()['escape'](_0x132c30['to'])||'','subject':_0x3c8d8a()[_0x256d0b('0x16f4')](_0x132c30[_0x256d0b('0x11bc')])||''});break;}const _0x2c1900=_0xbad5a0[_0x256d0b('0x67f')][_0x256d0b('0x1aa4')]&&_0x132c30[_0x256d0b('0xded')]?_0x132c30[_0x256d0b('0xded')][_0x256d0b('0x1a5')]:_0x132c30[_0x256d0b('0x1a5')];return _0x7d80ed+='

',_0x7d80ed+=_0x502e01(_0x2c1900?_0x3c8d8a()[_0x256d0b('0x166c')](_0x2c1900,_0x256d0b('0x1552'),_0x256d0b('0x4b0')):''),_0x7d80ed+=_0x256d0b('0x20ba'),_0x5c41d2?_0x7d80ed:'';}function _0x420d82(){const _0x583ce5=_0xd3dd45;_0xbad5a0['message'][_0x583ce5('0x1a5')]+=_0x1fc139(_0xbad5a0[_0x583ce5('0x67f')][_0x583ce5('0x1810')]);}}const _0x10eda5=_0x24eea6;_0x3feefd[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x24b5'),_0x566993('0x1d31'),'$mdDialog',_0x566993('0x175d'),_0x566993('0xde4'),_0x566993('0x67f'),_0x566993('0x1810'),_0x566993('0xbd4'),_0x566993('0x1558'),'$q','$translate',_0x566993('0x1600')];function _0x3feefd(_0x2eea5d,_0x4f51a2,_0xd6ce08,_0x282695,_0x26ad34,_0xfb8fab,_0x40e4dc,_0x510d9a,_0x24352e,_0x40450e,_0x2c6dc9,_0x45f33e,_0x2a18ff){const _0xc77f6c=_0x566993,_0x276f98=this;_0x276f98[_0xc77f6c('0x155f')]=_0x2a18ff[_0xc77f6c('0x14d4')](),_0x276f98[_0xc77f6c('0x1d4a')]=[],_0x276f98[_0xc77f6c('0x41f')]=[_0x26ad34[_0xc77f6c('0x1d96')]['ENTER'],_0x26ad34[_0xc77f6c('0x1d96')][_0xc77f6c('0xaae')],_0x26ad34[_0xc77f6c('0x1d96')][_0xc77f6c('0x567')]],_0x276f98[_0xc77f6c('0xb5e')]=_0x1fa9d0,_0x276f98[_0xc77f6c('0xa44')]=_0x246d39,_0x276f98[_0xc77f6c('0x2564')]=_0x4dd1e8,_0x276f98['addNote']=_0x363586,_0x276f98[_0xc77f6c('0xe30')]={},_0x276f98[_0xc77f6c('0x67f')]={'from':_0xfb8fab['phone'],'to':_0x3c8d8a()['isNil'](_0x40e4dc['to'])||_0x3c8d8a()['isEmpty'](_0x40e4dc['to'])?[]:_0x40e4dc['to'],'body':''},_0x276f98[_0xc77f6c('0x482')]=_0x29b571,_0x276f98[_0xc77f6c('0xec7')]=_0x5c9508,_0x276f98[_0xc77f6c('0x18e2')]=_0x3bd492,_0x276f98[_0xc77f6c('0x2653')]=_0x1c6051,_0x276f98['transformContact']=_0x435628;switch(_0x510d9a){case _0xc77f6c('0x2564'):_0x276f98[_0xc77f6c('0x2564')]();break;}function _0xa0e8d3(_0xbc5772){const _0xd92723=_0xc77f6c;_0x282695[_0xd92723('0x1cf4')]({'to':_0x276f98['message']['to'][_0xd92723('0x2259')](','),'body':_0xbc5772});}function _0x29b571(){const _0x1ee319=_0xc77f6c;_0x276f98[_0x1ee319('0x67f')]['to']&&_0x276f98[_0x1ee319('0x67f')][_0x1ee319('0x1a5')]&&(_0x276f98[_0x1ee319('0x67f')]['to'][_0x1ee319('0x543')]?_0xa0e8d3(_0x276f98[_0x1ee319('0x67f')][_0x1ee319('0x1a5')]):_0x40450e[_0x1ee319('0x15aa')](_0x1ee319('0x2127')));}function _0x246d39(_0x4d66c1){const _0x1b0dd7=_0xc77f6c;if(_0x4d66c1){try{_0x3c8d8a()[_0x1b0dd7('0x1a22')][_0x1b0dd7('0x493')]=/{{([\s\S]+?)}}/g;const _0x4e60d3=_0x3c8d8a()[_0x1b0dd7('0x1a98')](_0x4d66c1[_0x1b0dd7('0xa7b')]),_0x21ff45={'user':_0x276f98[_0x1b0dd7('0x155f')],'account':_0xfb8fab};_0x276f98[_0x1b0dd7('0x67f')][_0x1b0dd7('0x1a5')]+='\x20'+_0x4e60d3(_0x21ff45),_0x276f98[_0x1b0dd7('0xe30')][_0x1b0dd7('0x1a5b')](_0x276f98[_0x1b0dd7('0x67f')][_0x1b0dd7('0x1a5')]);}catch(_0x2fa63c){_0x276f98[_0x1b0dd7('0x67f')][_0x1b0dd7('0x1a5')]+='\x20'+_0x4d66c1[_0x1b0dd7('0xa7b')],_0x276f98['ctrlMethods'][_0x1b0dd7('0x1a5b')](_0x276f98[_0x1b0dd7('0x67f')][_0x1b0dd7('0x1a5')]);}_0x276f98[_0x1b0dd7('0x23e9')]=null;}}function _0x1fa9d0(_0x39ac68){const _0x1cbbbf=_0xc77f6c,_0x2ee4ab=_0x2c6dc9[_0x1cbbbf('0x112e')]();let _0x14fa78=[];return _0x24352e[_0x1cbbbf('0x2849')][_0x1cbbbf('0x1d97')]({'filter':_0x39ac68,'OpenchannelAccountId':_0xfb8fab['id']})[_0x1cbbbf('0x1964')][_0x1cbbbf('0x173b')](function(_0x392d70){const _0xef046a=_0x1cbbbf;return _0x14fa78=_0x3c8d8a()[_0xef046a('0x163f')](_0x14fa78,_0x392d70['rows']),_0x24352e[_0xef046a('0x2849')][_0xef046a('0x1d97')]({'filter':_0x39ac68})[_0xef046a('0x1964')];})[_0x1cbbbf('0x173b')](function(_0x2cf4d2){const _0x3e1315=_0x1cbbbf;_0x14fa78=_0x3c8d8a()[_0x3e1315('0x163f')](_0x14fa78,_0x3c8d8a()[_0x3e1315('0x278d')](_0x2cf4d2['rows'],function(_0x3c49f1){const _0x4b4572=_0x3e1315;return!_0x3c49f1[_0x4b4572('0x559')]&&!_0x3c49f1[_0x4b4572('0xcba')]&&!_0x3c49f1[_0x4b4572('0x23b1')]&&!_0x3c49f1[_0x4b4572('0x2720')]&&!_0x3c49f1[_0x4b4572('0xf5a')]&&!_0x3c49f1[_0x4b4572('0x1796')];})),_0x2ee4ab['resolve'](_0x14fa78);})[_0x1cbbbf('0x103c')](function(_0x5a9aa7){const _0x424e93=_0x1cbbbf;_0x2ee4ab[_0x424e93('0x12a4')](_0x5a9aa7);}),_0x2ee4ab[_0x1cbbbf('0x2219')];}function _0x5c9508(_0x1ee0e7){const _0x445218=_0xc77f6c;let _0x386ef4='';return _0x1ee0e7[_0x445218('0x1e50')]&&_0x1ee0e7[_0x445218('0x1e50')]!==_0x1ee0e7[_0xfb8fab[_0x445218('0x23d1')]]&&(_0x386ef4+=_0x1ee0e7[_0x445218('0x1e50')]+'\x20'),_0x1ee0e7[_0x445218('0x1806')]&&_0x1ee0e7[_0x445218('0x1806')]!==_0x1ee0e7[_0xfb8fab['mapKey']]&&(_0x386ef4+=_0x1ee0e7['lastName']+'\x20'),_0x386ef4+='<'+_0x1ee0e7[_0xfb8fab[_0x445218('0x23d1')]]+'>';}function _0x435628(_0x352c1a){const _0x11412e=_0xc77f6c,_0x5d3b94=_0x352c1a;if(_0x3c8d8a()[_0x11412e('0x181')](_0x5d3b94))return _0x352c1a[_0xfb8fab[_0x11412e('0x23d1')]];return _0x5d3b94;}function _0x1c6051(_0x3e0bc4){const _0x2139d8=_0xc77f6c;if(_0xfb8fab&&_0xfb8fab['ListId']){let _0x38b8bc=_0x2139d8('0xcb6');return _0xfb8fab[_0x2139d8('0x23d1')]&&(_0x38b8bc+=','+_0xfb8fab[_0x2139d8('0x23d1')]),_0x24352e[_0x2139d8('0x1197')][_0x2139d8('0x1d97')]({'ListId':_0xfb8fab[_0x2139d8('0xef2')],'nolimit':!![],'filter':_0x3e0bc4,'fields':_0x38b8bc})[_0x2139d8('0x1964')][_0x2139d8('0x173b')](function(_0x12fe4f){return _0x12fe4f['rows'];});}return[];}function _0x3bd492(){const _0x1dfdb0=_0xc77f6c;_0x282695[_0x1dfdb0('0x1e1f')]();}function _0x4dd1e8(){_0x276f98['secret']=!![];}function _0x363586(){const _0x402ae9=_0xc77f6c;_0x276f98[_0x402ae9('0x67f')][_0x402ae9('0x1a5')]&&_0x282695[_0x402ae9('0x1cf4')]({'secret':!![],'body':_0x276f98['message'][_0x402ae9('0x1a5')]});}}const _0x495610=_0x3feefd;_0x2f635e['$inject']=['$cookies',_0x566993('0x24b5'),_0x566993('0x1d31'),_0x566993('0x1fe5'),_0x566993('0x175d'),_0x566993('0xde4'),_0x566993('0x67f'),'type',_0x566993('0xbd4'),_0x566993('0x1558'),'$q',_0x566993('0x638'),_0x566993('0x1600')];function _0x2f635e(_0x19cd7b,_0x2ae04b,_0x46b71c,_0x51c7ee,_0x478f01,_0x15ea82,_0x21d748,_0x3948e8,_0x6d97fb,_0x43790b,_0x211174,_0x46731a,_0x5e4c29){const _0x28f974=_0x566993,_0x5531f5=this;_0x5531f5[_0x28f974('0x155f')]=_0x5e4c29['getCurrentUser'](),_0x5531f5['errors']=[],_0x5531f5[_0x28f974('0x41f')]=[_0x478f01[_0x28f974('0x1d96')]['ENTER'],_0x478f01[_0x28f974('0x1d96')][_0x28f974('0xaae')],_0x478f01[_0x28f974('0x1d96')]['TAB']],_0x5531f5[_0x28f974('0xb5e')]=_0x1daa8e,_0x5531f5[_0x28f974('0xa44')]=_0x1a5e1e,_0x5531f5[_0x28f974('0x2564')]=_0x54d05a,_0x5531f5['addNote']=_0x4da066,_0x5531f5[_0x28f974('0xe30')]={},_0x5531f5['message']={'from':_0x15ea82[_0x28f974('0xa04')],'to':_0x3c8d8a()[_0x28f974('0x7d5')](_0x21d748['to'])||_0x3c8d8a()['isEmpty'](_0x21d748['to'])?[]:_0x21d748['to'],'body':''},_0x5531f5[_0x28f974('0x482')]=_0x453546,_0x5531f5[_0x28f974('0xec7')]=_0x5127c4,_0x5531f5[_0x28f974('0x18e2')]=_0x546ac9,_0x5531f5[_0x28f974('0x2653')]=_0x5e15cf,_0x5531f5['transformContact']=_0x52f934;switch(_0x3948e8){case _0x28f974('0x2564'):_0x5531f5[_0x28f974('0x2564')]();break;}function _0x21326a(_0x5d8184){const _0x5b14cc=_0x28f974;_0x51c7ee[_0x5b14cc('0x1cf4')]({'to':_0x5531f5[_0x5b14cc('0x67f')]['to'][_0x5b14cc('0x2259')](','),'body':_0x5d8184});}function _0x453546(){const _0x148aac=_0x28f974;_0x5531f5[_0x148aac('0x67f')]['to']&&_0x5531f5[_0x148aac('0x67f')][_0x148aac('0x1a5')]&&(_0x5531f5[_0x148aac('0x67f')]['to'][_0x148aac('0x543')]?_0x21326a(_0x5531f5[_0x148aac('0x67f')][_0x148aac('0x1a5')]):_0x43790b[_0x148aac('0x15aa')]('To\x20is\x20mandatory'));}function _0x1a5e1e(_0x3947ee){const _0x252223=_0x28f974;if(_0x3947ee){try{_0x3c8d8a()[_0x252223('0x1a22')][_0x252223('0x493')]=/{{([\s\S]+?)}}/g;const _0x163fb0=_0x3c8d8a()[_0x252223('0x1a98')](_0x3947ee[_0x252223('0xa7b')]),_0x2889b0={'user':_0x5531f5['currentUser'],'account':_0x15ea82};_0x5531f5[_0x252223('0x67f')][_0x252223('0x1a5')]+='\x20'+_0x163fb0(_0x2889b0),_0x5531f5[_0x252223('0xe30')]['setText'](_0x5531f5[_0x252223('0x67f')][_0x252223('0x1a5')]);}catch(_0x4dd47f){_0x5531f5[_0x252223('0x67f')][_0x252223('0x1a5')]+='\x20'+_0x3947ee[_0x252223('0xa7b')],_0x5531f5['ctrlMethods'][_0x252223('0x1a5b')](_0x5531f5['message']['body']);}_0x5531f5[_0x252223('0x23e9')]=null;}}function _0x1daa8e(_0x48f740){const _0x16b7da=_0x28f974,_0x208c01=_0x211174[_0x16b7da('0x112e')]();let _0x532179=[];return _0x6d97fb[_0x16b7da('0x2849')][_0x16b7da('0x1d97')]({'filter':_0x48f740,'SmsAccountId':_0x15ea82['id']})['$promise'][_0x16b7da('0x173b')](function(_0x438e8f){const _0x39143e=_0x16b7da;return _0x532179=_0x3c8d8a()[_0x39143e('0x163f')](_0x532179,_0x438e8f['rows']),_0x6d97fb['cannedAnswer'][_0x39143e('0x1d97')]({'filter':_0x48f740})['$promise'];})[_0x16b7da('0x173b')](function(_0x1db055){const _0x242989=_0x16b7da;_0x532179=_0x3c8d8a()[_0x242989('0x163f')](_0x532179,_0x3c8d8a()[_0x242989('0x278d')](_0x1db055['rows'],function(_0x50ef9c){const _0x1ee4cc=_0x242989;return!_0x50ef9c[_0x1ee4cc('0x559')]&&!_0x50ef9c[_0x1ee4cc('0xcba')]&&!_0x50ef9c[_0x1ee4cc('0x23b1')]&&!_0x50ef9c[_0x1ee4cc('0xf5a')]&&!_0x50ef9c[_0x1ee4cc('0x1796')];})),_0x208c01[_0x242989('0x155b')](_0x532179);})[_0x16b7da('0x103c')](function(_0x4abb9c){const _0x3f076e=_0x16b7da;_0x208c01[_0x3f076e('0x12a4')](_0x4abb9c);}),_0x208c01[_0x16b7da('0x2219')];}function _0x5127c4(_0x25e6d6){const _0x1df1ba=_0x28f974;let _0x497965='';return _0x25e6d6[_0x1df1ba('0x1e50')]&&_0x25e6d6[_0x1df1ba('0x1e50')]!==_0x25e6d6['mobile']&&(_0x497965+=_0x25e6d6['firstName']+'\x20'),_0x25e6d6[_0x1df1ba('0x1806')]&&_0x25e6d6[_0x1df1ba('0x1806')]!==_0x25e6d6[_0x1df1ba('0x1c56')]&&(_0x497965+=_0x25e6d6[_0x1df1ba('0x1806')]+'\x20'),_0x497965+='<'+_0x25e6d6['mobile']+'>';}function _0x52f934(_0x13c0c6){const _0x3e4c8a=_0x28f974,_0x1bd6b8=_0x13c0c6;if(_0x3c8d8a()[_0x3e4c8a('0x181')](_0x1bd6b8))return _0x13c0c6['mobile'];if(_0x1b7d28(_0x1bd6b8))return _0x1bd6b8;return _0x43790b[_0x3e4c8a('0x15aa')](_0x3e4c8a('0x257c')+_0x1bd6b8+_0x3e4c8a('0x1303')),null;}function _0x5e15cf(_0x3a9e3b){const _0x43c2fa=_0x28f974;if(_0x15ea82&&_0x15ea82[_0x43c2fa('0xef2')])return _0x6d97fb[_0x43c2fa('0x1197')][_0x43c2fa('0x1d97')]({'ListId':_0x15ea82['ListId'],'nolimit':!![],'filter':_0x3a9e3b,'fields':'firstName,lastName,mobile'})['$promise']['then'](function(_0x5e237d){const _0x2c603b=_0x43c2fa;return _0x5e237d[_0x2c603b('0x6aa')];});return[];}function _0x546ac9(){const _0x5eacc4=_0x28f974;_0x51c7ee[_0x5eacc4('0x1e1f')]();}function _0x1b7d28(_0xa0463c){const _0x2cd7e0=/^(\+|\d)[0-9]{7,16}$/;return _0x2cd7e0['test'](_0xa0463c);}function _0x54d05a(){const _0x130f80=_0x28f974;_0x5531f5[_0x130f80('0x27ed')]=!![];}function _0x4da066(){const _0x19bf01=_0x28f974;_0x5531f5[_0x19bf01('0x67f')][_0x19bf01('0x1a5')]&&_0x51c7ee[_0x19bf01('0x1cf4')]({'secret':!![],'body':_0x5531f5[_0x19bf01('0x67f')][_0x19bf01('0x1a5')]});}}const _0x151009=_0x2f635e;_0x536597[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x24b5'),_0x566993('0x1d31'),_0x566993('0x1fe5'),_0x566993('0x175d'),_0x566993('0xde4'),_0x566993('0x67f'),_0x566993('0x1810'),_0x566993('0xbd4'),_0x566993('0x1558'),'$q',_0x566993('0x638'),'Auth'];function _0x536597(_0x240bfc,_0x333baf,_0xfddc80,_0x3a2dce,_0x41de27,_0x11b05c,_0x722934,_0x4e5b8a,_0x2ceb58,_0x57848f,_0x4c382f,_0x476ef9,_0x3b0b19){const _0x2fdaf5=_0x566993,_0x1edef3=this;_0x1edef3[_0x2fdaf5('0x155f')]=_0x3b0b19[_0x2fdaf5('0x14d4')](),_0x1edef3[_0x2fdaf5('0x1d4a')]=[],_0x1edef3['separatorKeys']=[_0x41de27[_0x2fdaf5('0x1d96')][_0x2fdaf5('0x20e4')],_0x41de27['KEY_CODE'][_0x2fdaf5('0xaae')],_0x41de27[_0x2fdaf5('0x1d96')][_0x2fdaf5('0x567')]],_0x1edef3[_0x2fdaf5('0xb5e')]=_0x5e3b05,_0x1edef3[_0x2fdaf5('0xa44')]=_0x310779,_0x1edef3[_0x2fdaf5('0x2564')]=_0x5eaac8,_0x1edef3['addNote']=_0x15bcb0,_0x1edef3[_0x2fdaf5('0xe30')]={},_0x1edef3[_0x2fdaf5('0x67f')]={'from':_0x11b05c[_0x2fdaf5('0xa04')],'to':_0x3c8d8a()[_0x2fdaf5('0x7d5')](_0x722934['to'])||_0x3c8d8a()[_0x2fdaf5('0x1a56')](_0x722934['to'])?[]:_0x722934['to'],'body':''},_0x1edef3['send']=_0xeeca24,_0x1edef3[_0x2fdaf5('0xec7')]=_0x1f1628,_0x1edef3[_0x2fdaf5('0x18e2')]=_0x1e8c0d,_0x1edef3[_0x2fdaf5('0x2653')]=_0x1534c8,_0x1edef3[_0x2fdaf5('0x1bc1')]=_0x69ecc7;switch(_0x4e5b8a){case'note':_0x1edef3[_0x2fdaf5('0x2564')]();break;}function _0x42461b(_0xbb0c8f){const _0x12a41c=_0x2fdaf5;_0x3a2dce[_0x12a41c('0x1cf4')]({'to':_0x1edef3[_0x12a41c('0x67f')]['to'][_0x12a41c('0x2259')](','),'body':_0xbb0c8f});}function _0xeeca24(){const _0x2c067d=_0x2fdaf5;_0x1edef3[_0x2c067d('0x67f')]['to']&&_0x1edef3[_0x2c067d('0x67f')][_0x2c067d('0x1a5')]&&(_0x1edef3['message']['to']['length']?_0x42461b(_0x1edef3[_0x2c067d('0x67f')][_0x2c067d('0x1a5')]):_0x57848f[_0x2c067d('0x15aa')](_0x2c067d('0x2127')));}function _0x310779(_0xc1704a){const _0x1573bb=_0x2fdaf5;if(_0xc1704a){try{_0x3c8d8a()[_0x1573bb('0x1a22')][_0x1573bb('0x493')]=/{{([\s\S]+?)}}/g;const _0x133b1c=_0x3c8d8a()[_0x1573bb('0x1a98')](_0xc1704a[_0x1573bb('0xa7b')]),_0x5712ec={'user':_0x1edef3[_0x1573bb('0x155f')],'account':_0x11b05c};_0x1edef3[_0x1573bb('0x67f')][_0x1573bb('0x1a5')]+='\x20'+_0x133b1c(_0x5712ec),_0x1edef3[_0x1573bb('0xe30')][_0x1573bb('0x1a5b')](_0x1edef3[_0x1573bb('0x67f')]['body']);}catch(_0x369186){_0x1edef3[_0x1573bb('0x67f')][_0x1573bb('0x1a5')]+='\x20'+_0xc1704a[_0x1573bb('0xa7b')],_0x1edef3[_0x1573bb('0xe30')][_0x1573bb('0x1a5b')](_0x1edef3['message'][_0x1573bb('0x1a5')]);}_0x1edef3[_0x1573bb('0x23e9')]=null;}}function _0x5e3b05(_0xa03202){const _0x47a6bb=_0x2fdaf5,_0x1fb3d1=_0x4c382f[_0x47a6bb('0x112e')]();let _0x400b51=[];return _0x2ceb58[_0x47a6bb('0x2849')][_0x47a6bb('0x1d97')]({'filter':_0xa03202,'WhatsappAccountId':_0x11b05c['id']})[_0x47a6bb('0x1964')][_0x47a6bb('0x173b')](function(_0x3195e2){const _0x5c62e5=_0x47a6bb;return _0x400b51=_0x3c8d8a()[_0x5c62e5('0x163f')](_0x400b51,_0x3195e2[_0x5c62e5('0x6aa')]),_0x2ceb58['cannedAnswer'][_0x5c62e5('0x1d97')]({'filter':_0xa03202})['$promise'];})['then'](function(_0x5caed3){const _0x46918b=_0x47a6bb;_0x400b51=_0x3c8d8a()[_0x46918b('0x163f')](_0x400b51,_0x3c8d8a()['filter'](_0x5caed3['rows'],function(_0x38454f){const _0x4b3730=_0x46918b;return!_0x38454f[_0x4b3730('0x559')]&&!_0x38454f[_0x4b3730('0xcba')]&&!_0x38454f[_0x4b3730('0x2720')]&&!_0x38454f[_0x4b3730('0xf5a')]&&!_0x38454f[_0x4b3730('0x1796')];})),_0x1fb3d1['resolve'](_0x400b51);})[_0x47a6bb('0x103c')](function(_0xd89c50){_0x1fb3d1['reject'](_0xd89c50);}),_0x1fb3d1[_0x47a6bb('0x2219')];}function _0x1f1628(_0x5aea13){const _0x215ce0=_0x2fdaf5;let _0x5fe1f2='';return _0x5aea13[_0x215ce0('0x1e50')]&&_0x5aea13['firstName']!==_0x5aea13[_0x215ce0('0x1c56')]&&(_0x5fe1f2+=_0x5aea13[_0x215ce0('0x1e50')]+'\x20'),_0x5aea13['lastName']&&_0x5aea13[_0x215ce0('0x1806')]!==_0x5aea13['mobile']&&(_0x5fe1f2+=_0x5aea13[_0x215ce0('0x1806')]+'\x20'),_0x5fe1f2+='<'+_0x5aea13[_0x215ce0('0x1c56')]+'>';}function _0x69ecc7(_0x524aab){const _0x29db73=_0x2fdaf5,_0x522de7=_0x524aab;if(_0x3c8d8a()['isObject'](_0x522de7))return _0x524aab['mobile'];if(_0x354e0b(_0x522de7))return _0x522de7;return _0x57848f[_0x29db73('0x15aa')](_0x29db73('0x257c')+_0x522de7+_0x29db73('0x1303')),null;}function _0x1534c8(_0x59a119){const _0x582bfc=_0x2fdaf5;if(_0x11b05c&&_0x11b05c[_0x582bfc('0xef2')])return _0x2ceb58['cmContact'][_0x582bfc('0x1d97')]({'ListId':_0x11b05c['ListId'],'nolimit':!![],'filter':_0x59a119,'fields':_0x582bfc('0x1856')})[_0x582bfc('0x1964')]['then'](function(_0x32b03a){const _0x3208c2=_0x582bfc;return _0x32b03a[_0x3208c2('0x6aa')];});return[];}function _0x1e8c0d(){_0x3a2dce['cancel']();}function _0x354e0b(_0x27f289){const _0x3c214f=_0x2fdaf5,_0x1341a2=/^(\+|\d)[0-9]{7,16}$/;return _0x1341a2[_0x3c214f('0xf22')](_0x27f289);}function _0x5eaac8(){_0x1edef3['secret']=!![];}function _0x15bcb0(){const _0x16c2a7=_0x2fdaf5;_0x1edef3[_0x16c2a7('0x67f')][_0x16c2a7('0x1a5')]&&_0x3a2dce['hide']({'secret':!![],'body':_0x1edef3[_0x16c2a7('0x67f')]['body']});}}const _0x2420ee=_0x536597;_0x55cdad[_0x566993('0x17bb')]=['$mdDialog','toasty',_0x566993('0xbd4'),'interaction',_0x566993('0x1134'),_0x566993('0x166f'),'draftManager'];function _0x55cdad(_0x4f8ea0,_0x52e07d,_0x45263c,_0x11b360,_0x5edb72,_0x59eda0,_0x323d7f){const _0x4a4138=_0x566993,_0x3cb3ac=this;_0x3cb3ac['errors']=[],_0x3cb3ac[_0x4a4138('0x9c6')]=[],_0x3cb3ac[_0x4a4138('0x8d6')]=angular[_0x4a4138('0x2e3')](_0x11b360);!_0x3cb3ac[_0x4a4138('0x8d6')][_0x4a4138('0x2766')]&&(_0x3cb3ac[_0x4a4138('0x8d6')][_0x4a4138('0x2766')]=null);_0x3cb3ac[_0x4a4138('0x1134')]=_0x5edb72,_0x3cb3ac['apiRoute']=_0x3cb3ac[_0x4a4138('0x1134')]+'Interaction',_0x3cb3ac[_0x4a4138('0x182c')]=_0x3cb3ac[_0x4a4138('0x1134')]+(_0x3cb3ac[_0x4a4138('0x1134')]==='chat'?_0x4a4138('0x2675'):_0x4a4138('0x1b91')),_0x3cb3ac['accountProperty']=_0x3c8d8a()[_0x4a4138('0x587')](_0x3cb3ac[_0x4a4138('0x1134')])+(_0x3cb3ac[_0x4a4138('0x1134')]===_0x4a4138('0x8c5')?'Website':_0x4a4138('0x1b91'))+'Id',_0x3cb3ac[_0x4a4138('0x6a8')]=null,_0x3cb3ac[_0x4a4138('0x130f')]=![],_0x3cb3ac[_0x4a4138('0x5b2')]='',_0x3cb3ac['wasUserInPause']=_0x59eda0['voicePause']||_0x59eda0['chatPause']||_0x59eda0[_0x4a4138('0xf41')]||_0x59eda0[_0x4a4138('0x106')]||_0x59eda0[_0x4a4138('0x13eb')],_0x3cb3ac['onDispositionChange']=_0x394e7e,_0x3cb3ac['clearDispositionSelection']=_0xe7397b,_0x3cb3ac['saveDisposition']=_0x3e9663,_0x3cb3ac['closeDialog']=_0x2b734e;function _0x37bac0(){const _0x26aefb=_0x4a4138;let _0x1650d5=[];const _0x4c7d36={'fields':_0x26aefb('0x8b6'),'sort':_0x26aefb('0x10ad'),'nolimit':!![]};_0x4c7d36[_0x3cb3ac[_0x26aefb('0x31e')]]=_0x11b360[_0x3cb3ac[_0x26aefb('0x31e')]],_0x45263c[_0x3cb3ac['apiAccountRoute']][_0x26aefb('0x1d97')]({'id':_0x11b360[_0x3cb3ac['accountProperty']]})[_0x26aefb('0x1964')][_0x26aefb('0x173b')](function(_0x525db3){const _0x17d5b6=_0x26aefb;return _0x3cb3ac[_0x17d5b6('0x130f')]=_0x525db3[_0x17d5b6('0x130f')],_0x3cb3ac[_0x17d5b6('0x130f')]&&(_0x3cb3ac[_0x17d5b6('0x5b2')]=_0x525db3[_0x17d5b6('0x5b2')][_0x17d5b6('0x10ad')]),_0x45263c[_0x17d5b6('0x2766')][_0x17d5b6('0x1d97')](_0x4c7d36)[_0x17d5b6('0x1964')];})[_0x26aefb('0x173b')](function(_0x4b1379){const _0x275cf3=_0x26aefb;return _0x4b1379['rows']['length']&&(_0x1650d5=_0x3c8d8a()[_0x275cf3('0x163f')](_0x1650d5,_0x4b1379[_0x275cf3('0x6aa')])),_0x45263c[_0x275cf3('0x2766')]['get']({'MailAccountId':_0x275cf3('0x877'),'FaxAccountId':_0x275cf3('0x877'),'SmsAccountId':_0x275cf3('0x877'),'WhatsappAccountId':_0x275cf3('0x877'),'OpenchannelAccountId':_0x275cf3('0x877'),'ChatWebsiteId':_0x275cf3('0x877'),'ListId':_0x275cf3('0x877')})[_0x275cf3('0x1964')];})[_0x26aefb('0x173b')](function(_0xd50d7d){const _0x52c680=_0x26aefb;_0xd50d7d[_0x52c680('0x6aa')][_0x52c680('0x543')]&&(_0x1650d5=_0x3c8d8a()[_0x52c680('0x163f')](_0x1650d5,_0xd50d7d['rows']));})[_0x26aefb('0x103c')](function(_0xd6305c){const _0x4b081e=_0x26aefb;console[_0x4b081e('0x15aa')](_0xd6305c);})[_0x26aefb('0xf25')](function(){const _0x396a52=_0x26aefb;_0x3cb3ac[_0x396a52('0x9c6')]=_0x3c8d8a()[_0x396a52('0x1d16')](_0x1650d5,[_0x396a52('0x10ad')],[_0x396a52('0xcc1')]),_0x14bbef();});}function _0x14bbef(){const _0x24c564=_0x4a4138;_0x3cb3ac['mandatoryDisposition']&&!_0x3cb3ac[_0x24c564('0x22e4')]&&_0x45263c['user']['pause']({'id':_0x59eda0['id'],'type':_0x3cb3ac[_0x24c564('0x5b2')]||'DEFAULT\x20PAUSE'})[_0x24c564('0x1964')]['then'](function(){})[_0x24c564('0x103c')](function(_0x5b00e6){const _0x415ede=_0x24c564;console[_0x415ede('0x15aa')](_0x5b00e6);});}function _0x394e7e(_0x37b381){const _0x195556=_0x4a4138;if(_0x37b381==='first'){_0x3cb3ac['anySecondLevelDisposition']=_0x3cb3ac[_0x195556('0x6a8')]?_0x3c8d8a()['some'](_0x3cb3ac[_0x195556('0x9c6')],['ParentId',_0x3cb3ac[_0x195556('0x6a8')]['id']]):![];if(!_0x3cb3ac[_0x195556('0x6a8')])_0x3cb3ac[_0x195556('0x9a2')]=undefined;}else _0x37b381===_0x195556('0x6f3')&&(_0x3cb3ac[_0x195556('0x1619')]=_0x3c8d8a()[_0x195556('0x1ec')](_0x3cb3ac[_0x195556('0x9c6')],[_0x195556('0x2644'),_0x3cb3ac[_0x195556('0x9a2')]['id']]));}function _0xe7397b(_0x53ee01){const _0x31571e=_0x4a4138;if(_0x53ee01==='second')_0x3cb3ac['secondLevelDisposition']=undefined,_0x3cb3ac[_0x31571e('0x2299')]=undefined;else _0x53ee01==='third'&&(_0x3cb3ac[_0x31571e('0x2299')]=undefined);}function _0x3e9663(){const _0x1251d9=_0x4a4138;_0x3cb3ac[_0x1251d9('0x1d4a')]=[],_0x3cb3ac[_0x1251d9('0x8d6')][_0x1251d9('0x181c')]=_0x59eda0['id'],_0x3cb3ac[_0x1251d9('0x8d6')][_0x1251d9('0x1636')]=!![],_0x3cb3ac[_0x1251d9('0x8d6')][_0x1251d9('0x1c6e')]=_0x1251d9('0x7b0'),_0x3cb3ac[_0x1251d9('0x8d6')][_0x1251d9('0x2766')]=_0x3cb3ac[_0x1251d9('0x6a8')]?_0x3cb3ac[_0x1251d9('0x6a8')][_0x1251d9('0x10ad')]:null,_0x3cb3ac['interaction'][_0x1251d9('0x1a84')]=_0x3cb3ac[_0x1251d9('0x9a2')]?_0x3cb3ac[_0x1251d9('0x9a2')]['name']:undefined,_0x3cb3ac['interaction'][_0x1251d9('0x19b7')]=_0x3cb3ac[_0x1251d9('0x2299')]?_0x3cb3ac[_0x1251d9('0x2299')][_0x1251d9('0x10ad')]:undefined,_0x45263c[_0x3cb3ac['apiRoute']]?_0x45263c[_0x3cb3ac[_0x1251d9('0x1cc1')]]['update'](_0x3c8d8a()[_0x1251d9('0x2114')](_0x3cb3ac['interaction'],[_0x1251d9('0x559'),_0x1251d9('0xcba'),_0x1251d9('0x23b1'),_0x1251d9('0x2720'),'ChatWebsiteId',_0x1251d9('0xf5a'),_0x1251d9('0x1636'),_0x1251d9('0x1c6e'),'disposition',_0x1251d9('0x1a84'),_0x1251d9('0x19b7'),'id',_0x1251d9('0x2564'),_0x1251d9('0x181c')]))[_0x1251d9('0x1964')][_0x1251d9('0x173b')](function(_0xb2f6){const _0x2129db=_0x1251d9;_0x3cb3ac['interaction']=_0xb2f6,_0x3cb3ac[_0x2129db('0x1134')]===_0x2129db('0x108a')&&_0x323d7f[_0x2129db('0x6a7')](_0x3cb3ac[_0x2129db('0x8d6')]['id']),_0x52e07d[_0x2129db('0xdfe')]({'title':_0x2129db('0xa71'),'msg':'Interaction\x20has\x20been\x20closed!'});})['then'](function(){_0x2b734e(!![]);})['catch'](function(_0x119b30){const _0x33e3f5=_0x1251d9;if(_0x119b30[_0x33e3f5('0x1e07')]&&_0x119b30[_0x33e3f5('0x1e07')]['errors']&&_0x119b30[_0x33e3f5('0x1e07')][_0x33e3f5('0x1d4a')][_0x33e3f5('0x543')]){_0x3cb3ac['errors']=_0x119b30[_0x33e3f5('0x1e07')][_0x33e3f5('0x1d4a')]||[{'message':_0x119b30['toString'](),'type':_0x33e3f5('0x2363')}];for(let _0x308e95=0x0;_0x308e95<_0x119b30[_0x33e3f5('0x1e07')][_0x33e3f5('0x1d4a')][_0x33e3f5('0x543')];_0x308e95++){_0x52e07d[_0x33e3f5('0x15aa')]({'title':_0x119b30[_0x33e3f5('0x1e07')]['errors'][_0x308e95][_0x33e3f5('0x1810')],'msg':_0x119b30[_0x33e3f5('0x1e07')][_0x33e3f5('0x1d4a')][_0x308e95]['message']});}}else _0x52e07d[_0x33e3f5('0x15aa')]({'title':_0x119b30[_0x33e3f5('0x276f')]?_0x33e3f5('0x137')+_0x119b30[_0x33e3f5('0x276f')]+_0x33e3f5('0x160c')+_0x119b30[_0x33e3f5('0x2696')]:_0x33e3f5('0x2363'),'msg':_0x119b30['data']?JSON[_0x33e3f5('0x100b')](_0x119b30[_0x33e3f5('0x1e07')][_0x33e3f5('0x67f')]):_0x119b30[_0x33e3f5('0x1b75')]()});}):_0x2b734e(![]);}function _0x2b734e(_0x33fdc8){_0x4f8ea0['hide'](_0x33fdc8);}_0x37bac0();}const _0x22af62=_0x55cdad;_0x10e993[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x8d6'),_0x566993('0x1134'),_0x566993('0x22ac')];function _0x10e993(_0x5875de,_0x858daa,_0x58d4a7,_0x4d721d,_0x50f458,_0x445b73){const _0x57e724=_0x566993,_0x4b80f1=this;_0x4b80f1[_0x57e724('0x1d4a')]=[],_0x4b80f1[_0x57e724('0x22ac')]=_0x445b73,_0x4b80f1['interaction']=angular[_0x57e724('0x2e3')](_0x4d721d),_0x4b80f1[_0x57e724('0x8d6')][_0x57e724('0xc38')]=_0x3c8d8a()[_0x57e724('0x8a2')](_0x4b80f1[_0x57e724('0x8d6')][_0x57e724('0xc38')],function(_0x3cf931){const _0x353a74=_0x57e724;return{'id':_0x3cf931['id'],'name':_0x3cf931[_0x353a74('0x10ad')],'color':_0x3cf931[_0x353a74('0xd2d')]};}),_0x4b80f1[_0x57e724('0x1134')]=_0x50f458,_0x4b80f1[_0x57e724('0x105e')]=!![],_0x4b80f1[_0x57e724('0x1dc8')]=_0x431d81,_0x4b80f1[_0x57e724('0x18e2')]=_0x323822,_0x4b80f1[_0x57e724('0x1cc1')]=_0x4b80f1[_0x57e724('0x1134')]+_0x57e724('0x3a9');function _0x431d81(){const _0x19cc38=_0x57e724;_0x4b80f1['errors']=[];if(_0x58d4a7[_0x4b80f1[_0x19cc38('0x1cc1')]])return _0x58d4a7[_0x4b80f1[_0x19cc38('0x1cc1')]][_0x19cc38('0x97a')]({'id':_0x4b80f1['interaction']['id'],'ids':_0x3c8d8a()[_0x19cc38('0x8a2')](_0x4b80f1[_0x19cc38('0x8d6')][_0x19cc38('0xc38')],'id')})['$promise'][_0x19cc38('0x173b')](function(){const _0x2963d6=_0x19cc38;_0x858daa[_0x2963d6('0xdfe')]({'title':_0x2963d6('0x244'),'msg':_0x2963d6('0x1d7d')}),_0x4d721d[_0x2963d6('0xc38')]=_0x4b80f1['interaction'][_0x2963d6('0xc38')],_0x323822(!![]);})[_0x19cc38('0x103c')](function(_0x18bb83){const _0x1373a5=_0x19cc38;if(_0x18bb83[_0x1373a5('0x1e07')]&&_0x18bb83[_0x1373a5('0x1e07')][_0x1373a5('0x1d4a')]&&_0x18bb83[_0x1373a5('0x1e07')][_0x1373a5('0x1d4a')]['length'])for(let _0x33a5f7=0x0;_0x33a5f7<_0x18bb83[_0x1373a5('0x1e07')][_0x1373a5('0x1d4a')][_0x1373a5('0x543')];_0x33a5f7+=0x1){_0x858daa[_0x1373a5('0x15aa')]({'title':_0x18bb83[_0x1373a5('0x1e07')][_0x1373a5('0x1d4a')][_0x33a5f7]['type'],'msg':_0x18bb83['data']['errors'][_0x33a5f7][_0x1373a5('0x67f')]});}else _0x858daa[_0x1373a5('0x15aa')]({'title':_0x18bb83['status']?_0x1373a5('0x137')+_0x18bb83[_0x1373a5('0x276f')]+_0x1373a5('0x160c')+_0x18bb83[_0x1373a5('0x2696')]:'api.variable.update','msg':_0x18bb83[_0x1373a5('0x1e07')]?JSON[_0x1373a5('0x100b')](_0x18bb83[_0x1373a5('0x1e07')]['message']):_0x18bb83[_0x1373a5('0x1b75')]()});});else _0x323822(![]);}function _0x323822(_0x611dea){const _0x18dcb8=_0x57e724;_0x5875de[_0x18dcb8('0x1cf4')](_0x611dea);}}const _0x4490f1=_0x10e993;_0x2178df[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x24b5'),_0x566993('0x1600'),_0x566993('0xbd4'),'toasty',_0x566993('0x1134'),_0x566993('0x67f'),_0x566993('0xde4')];function _0x2178df(_0x2007d2,_0x147268,_0x40db3b,_0x52c0a4,_0x58f175,_0x41a9ab,_0x533b67,_0x1a00fb){const _0x3e98c1=_0x566993,_0x204cba=this;_0x204cba[_0x3e98c1('0x155f')]=_0x40db3b['getCurrentUser'](),_0x204cba[_0x3e98c1('0x1134')]=_0x41a9ab[_0x3e98c1('0x1e68')](),_0x204cba[_0x3e98c1('0x67f')]=_0x533b67,_0x204cba['account']=_0x1a00fb,_0x204cba[_0x3e98c1('0x617')]={'id':0x0,'type':_0x3e98c1('0x172')},_0x204cba[_0x3e98c1('0xeae')]={'count':0x0,'rows':[]},_0x204cba[_0x3e98c1('0x11fa')]=_0x204cba[_0x3e98c1('0xeae')],_0x204cba[_0x3e98c1('0xf5b')]=_0x204cba[_0x3e98c1('0x1134')]+_0x3e98c1('0x1436'),_0x204cba[_0x3e98c1('0x1de9')]=_0x204cba[_0x3e98c1('0x1134')]+_0x3e98c1('0x98e'),_0x204cba[_0x3e98c1('0xd3')]=_0x856484,_0x204cba['closeDialog']=_0x426d28,_0x204cba[_0x3e98c1('0xb9c')]=_0x5f070f,_0x204cba['init']();function _0x5f070f(){const _0x539665=_0x3e98c1;return _0x52c0a4[_0x539665('0x166f')][_0x539665('0x1d97')]({'fields':'id,name','role':_0x539665('0x7b0'),'sort':'name','nolimit':!![]})[_0x539665('0x1964')]['then'](function(_0x4d324d){const _0x40950f=_0x539665;return _0x204cba[_0x40950f('0x11fa')]=_0x4d324d||{'count':0x0,'rows':[]},_0x52c0a4[_0x204cba[_0x40950f('0xf5b')]][_0x40950f('0x1d97')]({'fields':_0x40950f('0xd52'),'sort':_0x40950f('0x10ad'),'nolimit':!![]})['$promise'];})[_0x539665('0x173b')](function(_0x24c761){const _0x25135e=_0x539665;_0x204cba[_0x25135e('0xeae')]=_0x24c761||{'count':0x0,'rows':[]};})[_0x539665('0x103c')](function(_0xb89a41){console['error'](_0xb89a41);});}function _0x426d28(_0x57f329){const _0x39c53f=_0x3e98c1;_0x2007d2[_0x39c53f('0x1cf4')](_0x57f329);}function _0x856484(){_0x426d28(!![]),_0x147268(function(){const _0x5ed3e3=a0_0xde5e;return _0x52c0a4[_0x5ed3e3('0x48c')][_0x204cba['transfer'][_0x5ed3e3('0x1810')]===_0x5ed3e3('0x7b0')?_0x5ed3e3('0xf89'):_0x204cba[_0x5ed3e3('0x1de9')]]({'id':_0x204cba[_0x5ed3e3('0x617')]['id'],'messageId':_0x204cba[_0x5ed3e3('0x67f')]['id'],'channel':_0x204cba[_0x5ed3e3('0x1134')]})[_0x5ed3e3('0x1964')][_0x5ed3e3('0x173b')](function(){const _0xea9020=_0x5ed3e3;_0x58f175['success']({'title':_0xea9020('0x1d5b'),'msg':_0xea9020('0x7f3')+_0x204cba['transfer'][_0xea9020('0x1810')]+'\x20has\x20been\x20done!'});})[_0x5ed3e3('0x103c')](function(_0x152f42){const _0x2f8cad=_0x5ed3e3;if(_0x152f42[_0x2f8cad('0x1e07')]&&_0x152f42[_0x2f8cad('0x1e07')][_0x2f8cad('0x1d4a')]&&_0x152f42[_0x2f8cad('0x1e07')][_0x2f8cad('0x1d4a')][_0x2f8cad('0x543')]){_0x204cba[_0x2f8cad('0x1d4a')]=_0x152f42[_0x2f8cad('0x1e07')][_0x2f8cad('0x1d4a')]||[{'message':_0x152f42['toString'](),'type':_0x2f8cad('0x121d')}];for(let _0x5af383=0x0;_0x5af383<_0x152f42[_0x2f8cad('0x1e07')][_0x2f8cad('0x1d4a')][_0x2f8cad('0x543')];_0x5af383++){_0x58f175['error']({'title':_0x152f42['data'][_0x2f8cad('0x1d4a')][_0x5af383][_0x2f8cad('0x1810')],'msg':_0x152f42[_0x2f8cad('0x1e07')]['errors'][_0x5af383][_0x2f8cad('0x67f')]});}}else _0x58f175['error']({'title':_0x152f42['status']?_0x2f8cad('0x137')+_0x152f42[_0x2f8cad('0x276f')]+_0x2f8cad('0x160c')+_0x152f42['statusText']:_0x2f8cad('0x121d'),'msg':_0x152f42[_0x2f8cad('0x1e07')]?JSON[_0x2f8cad('0x100b')](_0x152f42[_0x2f8cad('0x1e07')][_0x2f8cad('0x67f')]):_0x152f42[_0x2f8cad('0x1b75')]()});});},0x1388);}}const _0x1be412=_0x2178df;_0x3bbcd9[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$q','$mdDialog',_0x566993('0x136'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x638'),_0x566993('0xca5'),_0x566993('0x24b5'),_0x566993('0x1f9')];function _0x3bbcd9(_0x459a20,_0x156889,_0x37ac17,_0xfe8a0d,_0x5ddedd,_0x7dd911,_0x275286,_0x2af658,_0x3b867b,_0x430fa7,_0x34a335){const _0x1cf86c=_0x566993,_0x4017df=this;_0x4017df[_0x1cf86c('0xe65')]={},_0x4017df[_0x1cf86c('0x1209')]=!![],_0x4017df[_0x1cf86c('0x439')]=![],_0x4017df['detectBrowser']=_0x34a335[_0x1cf86c('0x26e8')](),_0x4017df[_0x1cf86c('0x1c2d')]=_0x56beef,_0x4017df['openContact']=_0x15ad7f,_0x4017df[_0x1cf86c('0x363')]=_0x1adb82,_0x4017df[_0x1cf86c('0xc6e')]=_0x3a70be,_0x4017df[_0x1cf86c('0x9b')]=_0x38a635,_0x4017df['getResponseSheetHeaders']=_0x38eb70,_0x4017df[_0x1cf86c('0x8bf')]=_0x5cd7b4,_0x4017df['init']=_0x2549c5,_0x4017df[_0x1cf86c('0x1bd2')]=function(_0x19592a){const _0x7cfe7e=_0x1cf86c;if(_0x4017df['formViewer']['reset']){const _0x447d2a=_0x37ac17[_0x7cfe7e('0x1d02')]()[_0x7cfe7e('0x20d6')](_0x2af658[_0x7cfe7e('0x1467')]('JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION'))[_0x7cfe7e('0x732')](_0x2af658[_0x7cfe7e('0x1467')](_0x7cfe7e('0x18cd')))[_0x7cfe7e('0x1f71')]('')[_0x7cfe7e('0x217')](_0x7cfe7e('0x2800'))[_0x7cfe7e('0x21de')](_0x19592a)['ok'](_0x2af658[_0x7cfe7e('0x1467')](_0x7cfe7e('0x1223')))[_0x7cfe7e('0x1e1f')](_0x2af658['instant'](_0x7cfe7e('0x458')));_0x37ac17[_0x7cfe7e('0x1cb7')](_0x447d2a)[_0x7cfe7e('0x173b')](function(){const _0x25ca77=_0x7cfe7e;_0x4017df[_0x25ca77('0x439')]=![],_0x4017df['project'][_0x25ca77('0xf94')]=undefined,_0x1decae(),_0x4017df[_0x25ca77('0xe65')][_0x25ca77('0x151')]();});}};function _0x1decae(){const _0x4f8f22=_0x1cf86c;try{_0x459a20['$parent'][_0x4f8f22('0x1d44')][_0x4f8f22('0x1d44')]['vm'][_0x4f8f22('0x257e')]();}catch(_0x297474){_0x7dd911['error']({'title':_0x4f8f22('0x153b'),'msg':_0x4f8f22('0x1a6a')});}}function _0x2549c5(_0x16d37c){const _0x1c4462=_0x1cf86c;_0x4017df['tab']=_0x16d37c;if(_0x4017df[_0x1c4462('0x1e66')]){_0x4017df[_0x1c4462('0x67a')]=_0x4017df[_0x1c4462('0x1e66')][_0x1c4462('0x67a')],_0x4017df['starttime']=_0x4017df[_0x1c4462('0x1e66')][_0x1c4462('0x24a9')],_0x4017df[_0x1c4462('0x82b')]=_0x4017df[_0x1c4462('0x1e66')][_0x1c4462('0x82b')],_0x4017df[_0x1c4462('0x220b')]=_0x4017df[_0x1c4462('0x1e66')][_0x1c4462('0x220b')];if(_0x4017df['project']){if(_0x3c8d8a()[_0x1c4462('0xe62')](_0x4017df[_0x1c4462('0x220b')]['formData'])){}else _0x4017df['isJsonString'](_0x4017df['project'][_0x1c4462('0x232b')])?_0x4017df['project'][_0x1c4462('0x232b')]=JSON[_0x1c4462('0x1d5e')](_0x4017df[_0x1c4462('0x220b')][_0x1c4462('0x232b')]):_0x4017df[_0x1c4462('0x220b')][_0x1c4462('0x232b')]=undefined;_0x4017df[_0x1c4462('0x220b')][_0x1c4462('0x630')]=_0x4017df[_0x1c4462('0x220b')][_0x1c4462('0x630')]||{},_0x4017df[_0x1c4462('0x220b')][_0x1c4462('0xf94')]!==undefined&&_0x430fa7(function(){const _0x265146=_0x1c4462;_0x3b867b[_0x265146('0x21e8')](_0x265146('0xb06'),{'page':_0x4017df['project'][_0x265146('0xf94')]});}),_0x459a20[_0x1c4462('0xbf6')](_0x1c4462('0x44a'),function(_0x3aa169,_0x54147d){const _0x93a493=_0x1c4462;if(_0x54147d['currentPage']){_0x4017df[_0x93a493('0x220b')][_0x93a493('0xf94')]=_0x54147d[_0x93a493('0xf94')][_0x93a493('0x1d81')]-0x1,_0x1decae();_0x4017df[_0x93a493('0x220b')]['enableUncompleteSave']&&(_0x54147d[_0x93a493('0xf94')][_0x93a493('0x1d81')]>=0x1&&_0x54147d['currentPage']['number']<_0x4017df['project'][_0x93a493('0x232b')][_0x93a493('0x1afb')]['length']?_0x4017df['showIncompleteSubmitButton']=!![]:_0x4017df[_0x93a493('0x439')]=![]);if(_0x4017df[_0x93a493('0x220b')]['formData']&&_0x4017df[_0x93a493('0x220b')]['formData'][_0x93a493('0x1afb')])for(let _0x261535=0x0,_0x2b6005=_0x4017df[_0x93a493('0x220b')]['formData'][_0x93a493('0x1afb')][_0x93a493('0x543')];_0x261535<_0x2b6005;_0x261535++){if(_0x54147d[_0x93a493('0xf94')]['number']<_0x261535+0x1&&_0x4017df[_0x93a493('0x220b')][_0x93a493('0x232b')][_0x93a493('0x1afb')][_0x261535][_0x93a493('0x2113')])for(let _0x4e5645=0x0,_0x3f6897=_0x4017df[_0x93a493('0x220b')][_0x93a493('0x232b')][_0x93a493('0x1afb')][_0x261535][_0x93a493('0x2113')]['length'];_0x4e5645<_0x3f6897;_0x4e5645++){_0x4017df[_0x93a493('0x220b')][_0x93a493('0x232b')][_0x93a493('0x1afb')][_0x261535][_0x93a493('0x2113')][_0x4e5645]['type']==='question'&&_0x4017df['project'][_0x93a493('0x232b')][_0x93a493('0x1afb')][_0x261535][_0x93a493('0x2113')][_0x4e5645][_0x93a493('0xacf')]&&delete _0x4017df[_0x93a493('0x220b')][_0x93a493('0x630')][_0x4017df[_0x93a493('0x220b')][_0x93a493('0x232b')]['pages'][_0x261535][_0x93a493('0x2113')][_0x4e5645][_0x93a493('0xacf')]['id']];}}}});}}}function _0x1adb82(_0x2fe906){const _0x56361c=_0x1cf86c;if(_0x3c8d8a()[_0x56361c('0x7d5')](_0x2fe906))return![];try{JSON['parse'](_0x2fe906);}catch(_0x1cefeb){return![];}return!![];}function _0x15ad7f(_0x28653b,_0x3e5ce6){const _0x286f4b=_0x1cf86c;try{_0x459a20[_0x286f4b('0x1d44')][_0x286f4b('0x1d44')]['$parent']['vm']['addContactTab'](_0x3e5ce6);}catch(_0x101634){_0x7dd911[_0x286f4b('0x15aa')]({'title':_0x286f4b('0x273c'),'msg':_0x286f4b('0x1347')});}}function _0x1a3c8c(_0x35ce9d){const _0x4deeca=_0x1cf86c,_0x30400c=_0x156889[_0x4deeca('0x112e')]();return _0x4017df[_0x4deeca('0x220b')][_0x4deeca('0x1f28')]?_0x5ddedd[_0x4deeca('0x166f')][_0x4deeca('0x9da')]({'id':_0x35ce9d['id']})[_0x4deeca('0x1964')][_0x4deeca('0x173b')](function(){const _0x4d57a3=_0x4deeca;_0x30400c[_0x4d57a3('0x155b')]();})[_0x4deeca('0x103c')](function(){const _0x172176=_0x4deeca;console[_0x172176('0xe37')](_0x172176('0x2108')),_0x30400c[_0x172176('0x155b')]();}):_0x30400c[_0x4deeca('0x155b')](),_0x30400c[_0x4deeca('0x2219')];}function _0x4c6809(_0x9db78b,_0x39122f){const _0x521f0f=_0x1cf86c,_0x5bfd74=[],_0x26c0a5=[],_0x2a992d=_0x275286[_0x521f0f('0x14d4')]();_0x1a3c8c(_0x2a992d)[_0x521f0f('0x173b')](function(){const _0x1d3ad7=_0x521f0f;return _0x5ddedd[_0x1d3ad7('0xd95')]['save']({'starttime':_0x4017df[_0x1d3ad7('0x14bf')],'membername':_0x4017df[_0x1d3ad7('0x67a')]&&_0x4017df[_0x1d3ad7('0x67a')][_0x1d3ad7('0x562')]?_0x4017df[_0x1d3ad7('0x67a')]['membername']:_0x2a992d[_0x1d3ad7('0x10ad')],'calleridname':_0x4017df[_0x1d3ad7('0x67a')]&&_0x4017df[_0x1d3ad7('0x67a')]['calleridname']?_0x4017df[_0x1d3ad7('0x67a')][_0x1d3ad7('0x1163')]:undefined,'calleridnum':_0x4017df[_0x1d3ad7('0x67a')]&&_0x4017df[_0x1d3ad7('0x67a')][_0x1d3ad7('0x1c99')]?_0x4017df[_0x1d3ad7('0x67a')][_0x1d3ad7('0x1c99')]:undefined,'queue':_0x4017df[_0x1d3ad7('0x67a')]&&_0x4017df[_0x1d3ad7('0x67a')][_0x1d3ad7('0x172')]?_0x4017df[_0x1d3ad7('0x67a')][_0x1d3ad7('0x172')]:undefined,'uniqueid':_0x4017df['call']&&_0x4017df[_0x1d3ad7('0x67a')][_0x1d3ad7('0x207c')]?_0x4017df['call'][_0x1d3ad7('0x207c')]:undefined,'VoiceQueueId':_0x4017df['call']&&_0x4017df[_0x1d3ad7('0x67a')][_0x1d3ad7('0x1369')]?_0x4017df[_0x1d3ad7('0x67a')]['xmd-voicequeueid']:undefined,'ProjectId':_0x4017df[_0x1d3ad7('0x220b')]&&_0x4017df[_0x1d3ad7('0x220b')]['id']?_0x4017df[_0x1d3ad7('0x220b')]['id']:undefined,'projectname':_0x4017df[_0x1d3ad7('0x220b')]&&_0x4017df[_0x1d3ad7('0x220b')]['name']?_0x4017df[_0x1d3ad7('0x220b')][_0x1d3ad7('0x10ad')]:undefined,'ContactId':_0x4017df[_0x1d3ad7('0x82b')]&&_0x4017df[_0x1d3ad7('0x82b')]['id']?_0x4017df[_0x1d3ad7('0x82b')]['id']:undefined,'completed':_0x39122f})[_0x1d3ad7('0x1964')];})[_0x521f0f('0x173b')](function(_0x2ba237){const _0x3a5154=_0x521f0f;if(_0x2ba237){const _0x2d86ec=_0x4017df[_0x3a5154('0x2028')](),_0x27a826=_0x4017df[_0x3a5154('0x9b')](),_0x4940da=_0x4017df[_0x3a5154('0x8bf')]();for(let _0x4b2e80=0x0;_0x4b2e80<_0x2d86ec[_0x3a5154('0x543')];_0x4b2e80+=0x1){if(!_0x3c8d8a()[_0x3a5154('0x1a56')](String(_0x27a826[_0x4b2e80]))){try{_0x5bfd74['push'](_0x5ddedd['jscriptyQuestionReport'][_0x3a5154('0x1195')]({'question':_0x2d86ec[_0x4b2e80],'answer':_0x4940da[_0x4b2e80]['type']===_0x3a5154('0x22b6')?_0x156524()(String(_0x27a826[_0x4b2e80]))[_0x3a5154('0xddc')]('YYYY-MM-DD'):_0x4940da[_0x4b2e80][_0x3a5154('0x1810')]===_0x3a5154('0x953')?_0x156524()(String(_0x27a826[_0x4b2e80]))[_0x3a5154('0xddc')](_0x3a5154('0x11a2')):String(_0x27a826[_0x4b2e80]),'questionId':_0x4940da[_0x4b2e80]['id'],'membername':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x562')]?_0x4017df['call'][_0x3a5154('0x562')]:_0x2a992d[_0x3a5154('0x10ad')],'calleridname':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x1163')]?_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x1163')]:undefined,'calleridnum':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x1c99')]?_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x1c99')]:undefined,'queue':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x172')]?_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x172')]:undefined,'uniqueid':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x207c')]?_0x4017df[_0x3a5154('0x67a')]['uniqueid']:undefined,'SessionId':_0x2ba237['id'],'ProjectId':_0x4017df[_0x3a5154('0x220b')]['id'],'projectname':_0x4017df[_0x3a5154('0x220b')][_0x3a5154('0x10ad')]}));}catch(_0x1d65ae){console[_0x3a5154('0x15aa')]('Unable\x20to\x20convert\x20question',_0x1d65ae);}const _0x2d0b25=String(_0x27a826[_0x4b2e80])[_0x3a5154('0x43a')](';');for(let _0x17445d=0x0;_0x17445d<_0x2d0b25[_0x3a5154('0x543')];_0x17445d+=0x1){const _0x53b407=_0x2d0b25[_0x17445d][_0x3a5154('0x16b1')]();try{_0x26c0a5[_0x3a5154('0x18bb')](_0x5ddedd[_0x3a5154('0x22fc')][_0x3a5154('0x1195')]({'question':_0x2d86ec[_0x4b2e80],'questionId':_0x4940da[_0x4b2e80]['id'],'answer':_0x4940da[_0x4b2e80][_0x3a5154('0x1810')]===_0x3a5154('0x22b6')?_0x156524()(_0x53b407)[_0x3a5154('0xddc')]('YYYY-MM-DD'):_0x4940da[_0x4b2e80][_0x3a5154('0x1810')]==='time'?_0x156524()(_0x53b407)['format'](_0x3a5154('0x11a2')):_0x53b407,'membername':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x562')]?_0x4017df['call']['membername']:_0x2a992d[_0x3a5154('0x10ad')],'calleridname':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x1163')]?_0x4017df[_0x3a5154('0x67a')]['calleridname']:undefined,'calleridnum':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x1c99')]?_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x1c99')]:undefined,'queue':_0x4017df['call']&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x172')]?_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x172')]:undefined,'uniqueid':_0x4017df[_0x3a5154('0x67a')]&&_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x207c')]?_0x4017df[_0x3a5154('0x67a')][_0x3a5154('0x207c')]:undefined,'SessionId':_0x2ba237['id'],'ProjectId':_0x4017df['project']['id'],'projectname':_0x4017df[_0x3a5154('0x220b')][_0x3a5154('0x10ad')]}));}catch(_0x2f5c70){console[_0x3a5154('0x15aa')]('Unable\x20to\x20convert\x20answer',_0x2f5c70);}}}}}return _0x156889[_0x3a5154('0x27c8')](_0x5bfd74)[_0x3a5154('0x173b')](function(){const _0x31de33=_0x3a5154;return _0x156889[_0x31de33('0x27c8')](_0x26c0a5)[_0x31de33('0x173b')](function(){return _0x2ba237;});});})['then'](function(_0x5968b7){const _0x54e691=_0x521f0f;_0x5968b7?_0x9db78b[_0x54e691('0x155b')](!![]):_0x9db78b[_0x54e691('0x12a4')]();})[_0x521f0f('0x103c')](function(_0x2d403b){const _0x7c62c8=_0x521f0f;if(_0x2d403b[_0x7c62c8('0x1e07')]&&_0x2d403b[_0x7c62c8('0x1e07')][_0x7c62c8('0x1d4a')]&&_0x2d403b[_0x7c62c8('0x1e07')][_0x7c62c8('0x1d4a')][_0x7c62c8('0x543')]){_0x4017df[_0x7c62c8('0x1d4a')]=_0x2d403b[_0x7c62c8('0x1e07')]['errors']||[{'message':_0x2d403b[_0x7c62c8('0x1b75')](),'type':'api.contact.save'}];for(let _0xdd6682=0x0;_0xdd6682<_0x2d403b[_0x7c62c8('0x1e07')]['errors'][_0x7c62c8('0x543')];_0xdd6682+=0x1){_0x7dd911[_0x7c62c8('0x15aa')]({'title':_0x2d403b[_0x7c62c8('0x1e07')][_0x7c62c8('0x1d4a')][_0xdd6682][_0x7c62c8('0x1810')],'msg':_0x2d403b[_0x7c62c8('0x1e07')][_0x7c62c8('0x1d4a')][_0xdd6682]['message']});}}else _0x7dd911[_0x7c62c8('0x15aa')]({'title':_0x2d403b[_0x7c62c8('0x276f')]?_0x7c62c8('0x137')+_0x2d403b['status']+'\x20-\x20'+_0x2d403b[_0x7c62c8('0x2696')]:_0x7c62c8('0x1f2f'),'msg':_0x2d403b[_0x7c62c8('0x1e07')]?JSON[_0x7c62c8('0x100b')](_0x2d403b[_0x7c62c8('0x1e07')][_0x7c62c8('0x67f')]):_0x2d403b['toString']()});_0x9db78b[_0x7c62c8('0x12a4')]();});}function _0x218b1d(_0x1ca2b6){const _0x414a09=_0x1cf86c;try{_0x459a20['$parent'][_0x414a09('0x1d44')][_0x414a09('0x1d44')]['vm'][_0x414a09('0xa1a')](_0x1ca2b6);}catch(_0x119fef){_0x7dd911['error']({'title':_0x414a09('0x90'),'msg':_0x414a09('0xd0c')});}}function _0x56beef(_0x509255,_0x56e72d){const _0x287e8e=_0x1cf86c,_0x973bb5=_0x156889[_0x287e8e('0x112e')]();if(_0x56e72d){const _0x22d83b=_0x37ac17[_0x287e8e('0x1d02')]()[_0x287e8e('0x20d6')]('Would\x20you\x20like\x20to\x20save\x20your\x20survey?')['textContent']('')[_0x287e8e('0x217')]('survey')['targetEvent'](_0x509255)['ok'](_0x287e8e('0x7ba'))[_0x287e8e('0x1e1f')]('NO');_0x37ac17['show'](_0x22d83b)[_0x287e8e('0x173b')](function(){_0x4c6809(_0x973bb5,![]);},function(){const _0x5297d3=_0x287e8e;_0x973bb5[_0x5297d3('0x155b')]();});}else _0x4c6809(_0x973bb5,!![]);return _0x973bb5[_0x287e8e('0x2219')][_0x287e8e('0x173b')](function(_0x12168d){const _0x15ed62=_0x287e8e;_0x12168d&&(_0x7dd911[_0x15ed62('0xdfe')]({'title':_0x15ed62('0x6ae'),'msg':_0x15ed62('0x12b1')}),_0x218b1d(_0x4017df[_0x15ed62('0x1e66')]));})[_0x287e8e('0x103c')](function(){const _0x67212d=_0x287e8e;_0x7dd911[_0x67212d('0x15aa')]({'title':_0x67212d('0x27eb'),'msg':_0x67212d('0x182f')});});}function _0x3a70be(){const _0x46e6de=_0x1cf86c;return _0xfe8a0d[_0x46e6de('0xc6e')](_0x4017df['project']['formData'],_0x4017df[_0x46e6de('0x220b')][_0x46e6de('0x630')],![]);}function _0x38a635(){const _0x493f2b=_0x1cf86c;return _0xfe8a0d['getResponseSheetRow'](_0x4017df[_0x493f2b('0x220b')][_0x493f2b('0x232b')],_0x4017df['project']['responseData']);}function _0x38eb70(){const _0x5ebd77=_0x1cf86c;return _0xfe8a0d[_0x5ebd77('0x2028')](_0x4017df[_0x5ebd77('0x220b')][_0x5ebd77('0x232b')],![]);}function _0x5cd7b4(){const _0x82408f=_0x1cf86c;return _0xfe8a0d[_0x82408f('0x8bf')](_0x4017df[_0x82408f('0x220b')][_0x82408f('0x232b')],_0x4017df[_0x82408f('0x220b')]['responseData']);}}const _0x397624=_0x3bbcd9;_0xca7a86[_0x566993('0x17bb')]=[_0x566993('0x638'),'toasty',_0x566993('0x15a7'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0xca7a86(_0x22fd1d,_0xd5906a,_0x35e125,_0x1bab7f,_0x439ae0){const _0x12e107=_0x566993,_0x164b49=this;_0x164b49[_0x12e107('0x15a7')]=_0x35e125,_0x164b49[_0x12e107('0x166f')]=_0x439ae0['getCurrentUser']();function _0x343da9(){return function(_0x2d3ca6){const _0x1436ae=a0_0xde5e;if(_0x2d3ca6[_0x1436ae('0x276f')]===0x194)_0xd5906a['info']({'title':_0x22fd1d[_0x1436ae('0x1467')](_0x1436ae('0x1cb1')),'msg':_0x22fd1d[_0x1436ae('0x1467')](_0x1436ae('0x151b'))});else{if(_0x2d3ca6[_0x1436ae('0x1e07')]&&_0x2d3ca6['data'][_0x1436ae('0x1d4a')]&&_0x2d3ca6[_0x1436ae('0x1e07')]['errors']['length']){_0x164b49[_0x1436ae('0x1d4a')]=_0x2d3ca6['data'][_0x1436ae('0x1d4a')]||[{'message':_0x2d3ca6[_0x1436ae('0x1b75')](),'type':_0x1436ae('0x20fb')}];for(let _0x2cdb93=0x0;_0x2cdb93<_0x2d3ca6['data'][_0x1436ae('0x1d4a')][_0x1436ae('0x543')];_0x2cdb93+=0x1){_0xd5906a[_0x1436ae('0x15aa')]({'title':_0x2d3ca6['data'][_0x1436ae('0x1d4a')][_0x2cdb93]['type'],'msg':_0x2d3ca6[_0x1436ae('0x1e07')][_0x1436ae('0x1d4a')][_0x2cdb93][_0x1436ae('0x67f')]});}}else _0xd5906a[_0x1436ae('0x15aa')]({'title':_0x2d3ca6['status']?_0x1436ae('0x137')+_0x2d3ca6['status']+_0x1436ae('0x160c')+_0x2d3ca6[_0x1436ae('0x2696')]:'api.openchannelMessage.accept','msg':_0x2d3ca6[_0x1436ae('0x1e07')]?JSON[_0x1436ae('0x100b')](_0x2d3ca6[_0x1436ae('0x1e07')][_0x1436ae('0x67f')]):_0x2d3ca6[_0x1436ae('0x1b75')]()});}};}function _0x1f1c5f(){const _0x19535e=_0x12e107;if(_0x1bab7f[_0x164b49['notification'][_0x19535e('0x1134')]+'Message'])return _0x1bab7f[_0x164b49['notification'][_0x19535e('0x1134')]+_0x19535e('0x1bd7')][_0x19535e('0x1905')]({'id':_0x164b49[_0x19535e('0x15a7')]['id'],'UserId':_0x164b49[_0x19535e('0x166f')]['id'],'manual':!![]})[_0x19535e('0x1964')][_0x19535e('0x173b')](function(){const _0x25a2f9=_0x19535e;_0xd5906a['success']({'title':_0x25a2f9('0x194b'),'msg':'Message\x20has\x20been\x20accepted!'});})[_0x19535e('0x103c')](_0x343da9());else _0xd5906a[_0x19535e('0x15aa')]({'title':_0x19535e('0x242f'),'msg':_0x19535e('0x1985')+_0x164b49[_0x19535e('0x15a7')][_0x19535e('0x1134')]+'Message'});}function _0x50246b(){const _0x2e9a68=_0x12e107;if(_0x1bab7f[_0x164b49[_0x2e9a68('0x15a7')][_0x2e9a68('0x1134')]+_0x2e9a68('0x1bd7')])return _0x1bab7f[_0x164b49[_0x2e9a68('0x15a7')][_0x2e9a68('0x1134')]+_0x2e9a68('0x1bd7')][_0x2e9a68('0x12a4')]({'id':_0x164b49[_0x2e9a68('0x15a7')]['id'],'UserId':_0x164b49['user']['id']})[_0x2e9a68('0x1964')][_0x2e9a68('0x173b')](function(){const _0x232d57=_0x2e9a68;_0xd5906a['success']({'title':_0x232d57('0x214c'),'msg':_0x232d57('0x18e5')});})[_0x2e9a68('0x103c')](_0x343da9());else _0xd5906a[_0x2e9a68('0x15aa')]({'title':_0x2e9a68('0x242f'),'msg':_0x2e9a68('0x2657')+_0x164b49[_0x2e9a68('0x15a7')][_0x2e9a68('0x1134')]+_0x2e9a68('0x1bd7')});}_0x164b49[_0x12e107('0x1905')]=_0x1f1c5f,_0x164b49[_0x12e107('0x12a4')]=_0x50246b;}const _0x5d0f82=_0xca7a86;function _0x3dd968(){const _0x3df6fc=_0x566993,_0xa01680=this;function _0x2a0b9f(_0x2695ba){const _0x36a326=a0_0xde5e;_0xa01680[_0x36a326('0x1e66')]=_0x2695ba,_0xa01680[_0x36a326('0x1e66')]&&(_0xa01680[_0x36a326('0x1e66')]['saved']=!![],_0xa01680[_0x36a326('0x267e')]=_0xa01680[_0x36a326('0x1e66')]['html']);}_0xa01680[_0x3df6fc('0xb9c')]=_0x2a0b9f;}const _0xb8c5f0=_0x3dd968,_0x4054fc=_0x21a6a1['p']+'src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general.html';_0x74ed9[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x74ed9(_0xb11ba7){const _0x4e7cd2=_0x566993;_0xb11ba7['state']('app.dashboards.general',{'url':'/general','views':{'content@app':{'templateProvider':[_0x4e7cd2('0x1caf'),_0x4e7cd2('0x1250'),_0x4e7cd2('0x1600'),function(_0x2540fc,_0x2d6c61,_0x37cc58){const _0x188ca6=_0x4e7cd2;return _0x37cc58[_0x188ca6('0x23c7')]()?_0x2d6c61[_0x188ca6('0x54e')](_0x4054fc,_0x2540fc):_0x2d6c61[_0x188ca6('0x54e')](_0x39d991,_0x2540fc);}],'controllerProvider':[_0x4e7cd2('0x1600'),function(_0x5bc003){const _0x1c473e=_0x4e7cd2;return _0x5bc003[_0x1c473e('0x23c7')]()?_0x1c473e('0xc95'):'UserDashboardGeneralController\x20as\x20vm';}]}},'resolve':{'globalUserLists':[_0x4e7cd2('0x2401'),_0x4e7cd2('0x1600'),function(_0x1157ec,_0x5c3fb7){const _0x30dd5b=_0x4e7cd2;return _0x1157ec['resolve'](_0x30dd5b('0x152e'),{'id':_0x5c3fb7['getCurrentUser']()['id'],'sort':_0x30dd5b('0x10ad'),'nolimit':!![]});}],'globalLists':[_0x4e7cd2('0x2401'),function(_0x849ad4){const _0x2c2c12=_0x4e7cd2;return _0x849ad4[_0x2c2c12('0x155b')]('cmList@get',{'sort':_0x2c2c12('0x10ad'),'nolimit':!![]});}],'globalTags':[_0x4e7cd2('0x2401'),function(_0x266307){const _0x4fd6ce=_0x4e7cd2;return _0x266307['resolve'](_0x4fd6ce('0x2549'),{'sort':_0x4fd6ce('0x10ad'),'nolimit':!![]});}],'globalCompanies':[_0x4e7cd2('0x2401'),function(_0x7301be){const _0x9915ce=_0x4e7cd2;return _0x7301be['resolve'](_0x9915ce('0x8d8'),{'sort':_0x9915ce('0x10ad'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x4e7cd2('0x9d5')});}angular[_0x566993('0x22c4')]('app.dashboards.general',[_0x566993('0x8b'),_0x566993('0x216b')])[_0x566993('0xea9')](_0x74ed9)[_0x566993('0x1e65')](_0x566993('0x8ea'),_0x46a179)[_0x566993('0x235c')]('draftManager',_0x1f1e4e)[_0x566993('0xeba')](_0x566993('0x1758'),_0x2a6d96)['provider'](_0x566993('0x38'),_0x5ae7f1)[_0x566993('0x1865')](_0x566993('0x25ac'),_0x21d887)[_0x566993('0x1e65')](_0x566993('0x2642'),_0x36ffc2)[_0x566993('0x1e65')](_0x566993('0xc3b'),_0x388cc1)[_0x566993('0x1e65')](_0x566993('0x10c2'),_0x592d0f)['controller'](_0x566993('0xb77'),_0x3c28a9)[_0x566993('0x1e65')](_0x566993('0x154'),_0x4ef272)[_0x566993('0x1e65')](_0x566993('0x507'),_0x2253dc)['controller'](_0x566993('0x1886'),_0x2b7aa8)[_0x566993('0x1e65')](_0x566993('0xcd5'),_0x38391f)[_0x566993('0x1e65')](_0x566993('0x1101'),_0x5bd6d1)[_0x566993('0x1e65')]('AgentGeneralHomeController',_0x3d7801)[_0x566993('0x1e65')](_0x566993('0x1536'),_0x52e9f2)[_0x566993('0x1e65')]('AgentHomeContactsController',_0x71c0b2)[_0x566993('0x1e65')]('AgentHomeDashboardController',_0x38dc58)['controller'](_0x566993('0x59d'),_0x5c2d2e)[_0x566993('0x1e65')](_0x566993('0x1954'),_0x4217c1)[_0x566993('0x1e65')](_0x566993('0x17f7'),_0x17190a)['controller'](_0x566993('0x18c7'),_0x433b7a)[_0x566993('0x1e65')]('AgentHomeDashboardMultiChannelOpenchannelController',_0x496b2d)[_0x566993('0x1e65')]('AgentHomeDashboardMultiChannelSmsController',_0x1f5d0d)[_0x566993('0x1e65')](_0x566993('0x138'),_0x5a8a57)[_0x566993('0x1e65')](_0x566993('0xa48'),_0x1b6a7b)['controller'](_0x566993('0x1e4d'),_0x411af1)[_0x566993('0x1e65')](_0x566993('0x33'),_0x475007)[_0x566993('0x1e65')](_0x566993('0x113c'),_0x3ab0ed)[_0x566993('0x1e65')](_0x566993('0xf6'),_0x544ef5)['controller'](_0x566993('0x1967'),_0x44d357)['controller'](_0x566993('0xe8c'),_0xe92d9e)[_0x566993('0x1e65')](_0x566993('0x24d4'),_0xe732eb)[_0x566993('0x1e65')](_0x566993('0xc39'),_0x9a6fdf)['controller'](_0x566993('0x7f5'),_0xbad01d)['controller'](_0x566993('0x1b84'),_0x1a2a23)['controller'](_0x566993('0x179c'),_0xec863e)[_0x566993('0x1e65')]('AgentGeneralIframeController',_0x7d01b7)[_0x566993('0xd87')]('ngBindHtmlUnsafe',_0x3fc1d1)[_0x566993('0x278d')](_0x566993('0x26f1'),_0x44c2f2)['controller'](_0x566993('0x58c'),_0x53b181)[_0x566993('0x235c')](_0x566993('0x1764'),_0x52057b)[_0x566993('0x1e65')](_0x566993('0x27d6'),_0x15d480)['controller'](_0x566993('0x3be'),_0x10eda5)[_0x566993('0x1e65')](_0x566993('0x26b9'),_0x495610)[_0x566993('0x1e65')](_0x566993('0xd4b'),_0x151009)[_0x566993('0x1e65')]('ComposeWhatsappInteractionDialogController',_0x2420ee)['controller'](_0x566993('0x21f'),_0x22af62)['controller'](_0x566993('0xc01'),_0x4490f1)[_0x566993('0x1e65')](_0x566993('0x3b7'),_0x1be412)[_0x566993('0x1e65')](_0x566993('0xbda'),_0x397624)[_0x566993('0x1e65')](_0x566993('0xe8e'),_0x5d0f82)[_0x566993('0x1e65')](_0x566993('0x2f4'),_0xb8c5f0);const _0x28990b=_0x21a6a1['p']+_0x566993('0x258f');_0x4f882b[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x1b13'),'$scope',_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1600'),_0x566993('0x19f0'),'userProfile',_0x566993('0x170e')];function _0x4f882b(_0x518fbf,_0x37d313,_0x2bcbe9,_0x5001c4,_0x338aa3,_0xffb991,_0x5f1e5c,_0xc8cb66,_0x7bc6b4){const _0x3e73f1=_0x566993,_0x58246a=this;_0x58246a[_0x3e73f1('0x155f')]=_0xffb991['getCurrentUser'](),_0x58246a[_0x3e73f1('0x257b')]=_0xc8cb66,_0x58246a[_0x3e73f1('0x170e')]=_0x7bc6b4&&_0x7bc6b4[_0x3e73f1('0x1a2f')]==0x1?_0x7bc6b4[_0x3e73f1('0x6aa')][0x0]:null,_0x58246a['crudPermissions']=_0xffb991['parseCrudPermissions'](_0x58246a[_0x3e73f1('0x170e')]?_0x58246a['userProfileSection']['crudPermissions']:null),_0x58246a[_0x3e73f1('0x46c')]={},_0x58246a['voiceQueues']=_0x5f1e5c&&_0x5f1e5c[_0x3e73f1('0x1a2f')]?_0x5f1e5c:{'count':0x0,'rows':[]},_0x58246a[_0x3e73f1('0x1683')]=_0x5f1e5c&&_0x5f1e5c[_0x3e73f1('0x1a2f')]?_0x3c8d8a()['map'](_0x5f1e5c[_0x3e73f1('0x6aa')],'id'):[],_0x58246a[_0x3e73f1('0x55a')]=_0x37d313(function(){},0x3e8),_0x58246a[_0x3e73f1('0x166d')]=_0x4311ee,_0x58246a['goToEdit']=_0x25654a,_0x338aa3[_0x3e73f1('0x165f')]('voice_queue:save',_0x499093),_0x5001c4[_0x3e73f1('0x10ea')][_0x3e73f1('0x1d97')]({'id':_0x518fbf['params']['id']})[_0x3e73f1('0x1964')][_0x3e73f1('0x173b')](function(_0x386fb0){const _0x5655c0=_0x3e73f1;if(_0x386fb0)return _0x58246a[_0x5655c0('0x46c')]=_0x386fb0,_0x58246a[_0x5655c0('0x46c')][_0x5655c0('0x190a')]=[],_0x58246a[_0x5655c0('0x46c')]['preview']=!![],_0x58246a[_0x5655c0('0x46c')]['draggable']={'enabled':![]},_0x58246a[_0x5655c0('0x46c')][_0x5655c0('0xe77')]={'enabled':![]},_0x5001c4['dashboard'][_0x5655c0('0x1e8b')]({'id':_0x58246a[_0x5655c0('0x46c')]['id']})['$promise'];})[_0x3e73f1('0x173b')](function(_0xe97543){const _0x4ccb01=_0x3e73f1;if(_0xe97543&&_0xe97543[_0x4ccb01('0x1a2f')]&&_0xe97543[_0x4ccb01('0x6aa')])for(let _0x3fd6eb=0x0;_0x3fd6eb<_0xe97543['rows'][_0x4ccb01('0x543')];_0x3fd6eb+=0x1){_0xe97543['rows'][_0x3fd6eb][_0x4ccb01('0x23d2')]=_0x4ccb01('0x2214')+_0xe97543[_0x4ccb01('0x6aa')][_0x3fd6eb][_0x4ccb01('0x1810')]+_0x4ccb01('0x206e')+_0xe97543[_0x4ccb01('0x6aa')][_0x3fd6eb][_0x4ccb01('0x1810')]+_0x4ccb01('0x21d8'),_0xe97543[_0x4ccb01('0x6aa')][_0x3fd6eb][_0x4ccb01('0x19f0')]=_0x58246a['voiceQueues'],_0xe97543[_0x4ccb01('0x6aa')][_0x3fd6eb]['voiceQueuesSelected']=_0x58246a['voiceQueuesSelected'],_0x58246a['customDashboard'][_0x4ccb01('0x190a')][_0x4ccb01('0x18bb')](_0xe97543[_0x4ccb01('0x6aa')][_0x3fd6eb]);}})[_0x3e73f1('0x103c')](function(){const _0x140b64=_0x3e73f1;_0x58246a[_0x140b64('0x46c')]=undefined;});function _0x499093(_0x267956){const _0x42ec55=_0x3e73f1,_0x3a83c5=_0x3c8d8a()[_0x42ec55('0x18ab')](_0x58246a[_0x42ec55('0x19f0')]['rows'],{'id':_0x267956['id']});_0x3a83c5&&_0x3c8d8a()['merge'](_0x3a83c5,_0x3c8d8a()[_0x42ec55('0x2114')](_0x267956,_0x3c8d8a()[_0x42ec55('0x1d3e')](_0x3a83c5)));}function _0x4311ee(){const _0x4b4f8a=_0x3e73f1;for(let _0x567eee=0x0;_0x567eee<_0x58246a[_0x4b4f8a('0x46c')][_0x4b4f8a('0x190a')][_0x4b4f8a('0x543')];_0x567eee+=0x1){_0x58246a[_0x4b4f8a('0x46c')][_0x4b4f8a('0x190a')][_0x567eee][_0x4b4f8a('0x1683')]=_0x58246a['voiceQueuesSelected'];}}function _0x25654a(){const _0x48e678=_0x3e73f1;_0x518fbf['go'](_0x48e678('0x2204'),{'id':_0x58246a[_0x48e678('0x46c')]['id'],'tab':0x1});}_0x2bcbe9[_0x3e73f1('0xbf6')](_0x3e73f1('0x16d2'),function(){const _0x8c6cd7=_0x3e73f1;_0x338aa3[_0x8c6cd7('0x251c')]('voice_queue:save'),_0x58246a[_0x8c6cd7('0x55a')]&&_0x37d313[_0x8c6cd7('0x1e1f')](_0x58246a['interval']);});}const _0x2998ac=_0x4f882b;_0x34d07d[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x34d07d(_0x1a7616){const _0x17d11f=_0x566993;_0x1a7616['state'](_0x17d11f('0x2351'),{'url':_0x17d11f('0x21d0'),'views':{'content@app':{'templateUrl':_0x28990b,'controller':_0x17d11f('0x15b5')}},'resolve':{'voiceQueues':[_0x17d11f('0x2401'),_0x17d11f('0x1600'),function(_0x3964f6,_0x3194d2){const _0x1057d6=_0x17d11f;let _0x3be8bb;const _0x21b2ec=_0x3194d2[_0x1057d6('0x1b4e')](_0x1057d6('0x79b'))?_0x3964f6[_0x1057d6('0x155b')](_0x1057d6('0x17be'),{'fields':_0x1057d6('0xd52'),'nolimit':!![]}):_0x3964f6[_0x1057d6('0x155b')](_0x1057d6('0x14b3'),{'id':_0x3194d2[_0x1057d6('0x14d4')]()[_0x1057d6('0x1946')],'section':_0x1057d6('0x32a'),'mergeResources':!![],'fields':_0x1057d6('0xd52'),'channel':_0x1057d6('0x21a8'),'nolimit':!![]});return _0x21b2ec[_0x1057d6('0x173b')](function(_0x306621){const _0x29f6e0=_0x1057d6;return _0x3be8bb=_0x306621,_0x3964f6['resolve'](_0x29f6e0('0x7d8'));})[_0x1057d6('0x173b')](function(_0x4f149d){const _0x31bc1f=_0x1057d6;if(_0x4f149d)for(let _0x470b7b=0x0,_0xd88a8f;_0x470b7b<_0x4f149d[_0x31bc1f('0x6aa')][_0x31bc1f('0x543')];_0x470b7b+=0x1){_0xd88a8f=_0x3c8d8a()[_0x31bc1f('0x18ab')](_0x3be8bb[_0x31bc1f('0x6aa')],{'id':_0x4f149d[_0x31bc1f('0x6aa')][_0x470b7b]['id']}),_0xd88a8f&&_0x3c8d8a()[_0x31bc1f('0x9ef')](_0xd88a8f,_0x3c8d8a()[_0x31bc1f('0x2114')](_0x4f149d[_0x31bc1f('0x6aa')][_0x470b7b],[_0x31bc1f('0x1b68'),_0x31bc1f('0xa1f'),'talking',_0x31bc1f('0x163a'),_0x31bc1f('0x50c'),'abandoned']));}return _0x3be8bb;});}],'userProfile':[_0x17d11f('0x2401'),_0x17d11f('0x1600'),function(_0x9d5942,_0x3537ad){const _0x298373=_0x17d11f;return _0x9d5942[_0x298373('0x155b')](_0x298373('0x1f20'),{'fields':_0x298373('0x19dd'),'id':_0x3537ad[_0x298373('0x14d4')]()[_0x298373('0x1946')]});}],'userProfileSection':[_0x17d11f('0x2401'),_0x17d11f('0x1600'),function(_0x40d71a,_0x16fae3){const _0x17fbd3=_0x17d11f;return _0x40d71a[_0x17fbd3('0x155b')](_0x17fbd3('0x40'),{'fields':_0x17fbd3('0x1348'),'userProfileId':_0x16fae3[_0x17fbd3('0x14d4')]()['userProfileId'],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x17d11f('0x9d5')});}angular[_0x566993('0x22c4')](_0x566993('0x2351'),[])['config'](_0x34d07d)[_0x566993('0x1e65')](_0x566993('0x519'),_0x2998ac),_0x19f1c1[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x19f1c1(_0x3c863b,_0x54980b){const _0x428f1c=_0x566993;_0x3c863b[_0x428f1c('0x1a49')](_0x428f1c('0x10cb'),{'abstract':!![],'url':_0x428f1c('0xa75')}),_0x54980b[_0x428f1c('0x1b1a')](_0x428f1c('0x14c4'));}angular['module'](_0x566993('0x10cb'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),_0x566993('0x1663'),'flow',_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),'ngAria','ngAnimate','mdPickers',_0x566993('0x1698'),_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),'angular-cron-jobs',_0x566993('0x1ce7'),'angularMaterialFormBuilder',_0x566993('0xcfd'),_0x566993('0x1eab'),'angular.filter',_0x566993('0x1057'),_0x566993('0x2351')])[_0x566993('0xea9')](_0x19f1c1);const _0x2d8532=_0x21a6a1['p']+_0x566993('0x1bcc'),_0x21d593=_0x21a6a1['p']+'src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog.html';_0x1d6f2b[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state',_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x11fa'),_0x566993('0x257b'),'userProfileSection',_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x1d6f2b(_0x4e43ce,_0x497205,_0x32d54e,_0x330078,_0x2b8f9a,_0x206d28,_0x110890,_0x27acfa,_0x3be65f,_0x21e9cb,_0x4185a7,_0x2e7d0b,_0x52a55b,_0x34fb08,_0x5f1efc,_0x3abcad,_0x4d28de){const _0x55a775=_0x566993,_0x450df3=this;_0x450df3[_0x55a775('0x1a29')]=_0x3abcad,_0x450df3[_0x55a775('0x251')]=_0x4d28de,_0x450df3[_0x55a775('0x155f')]=_0x5f1efc['getCurrentUser'](),_0x450df3[_0x55a775('0x11fa')]=_0x3be65f||{'count':0x0,'rows':[]},_0x450df3['userProfile']=_0x21e9cb,_0x450df3[_0x55a775('0x170e')]=_0x4185a7&&_0x4185a7[_0x55a775('0x1a2f')]==0x1?_0x4185a7[_0x55a775('0x6aa')][0x0]:null,_0x450df3['crudPermissions']=_0x5f1efc[_0x55a775('0xde6')](_0x450df3['userProfileSection']?_0x450df3[_0x55a775('0x170e')]['crudPermissions']:null),_0x450df3['table']=_0x55a775('0x11fa'),_0x450df3[_0x55a775('0x14d6')]='',_0x450df3['listOrderAsc']=null,_0x450df3[_0x55a775('0xf2')]=[],_0x450df3[_0x55a775('0xc49')]={'fields':_0x55a775('0x1b6d'),'role':_0x55a775('0x7b0'),'sort':_0x55a775('0x1769'),'limit':0xa,'page':0x1},_0x450df3[_0x55a775('0x1463')]=_0x3c8d8a()['keyBy']([{'option':_0x55a775('0x233b'),'value':'0'},{'option':_0x55a775('0x161f'),'value':'1'},{'option':_0x55a775('0x891'),'value':'2'}],function(_0x57c1e6){const _0x345423=_0x55a775;return _0x3c8d8a()[_0x345423('0x166c')](_0x57c1e6[_0x345423('0xa7b')],new RegExp('\x27','g'),'');}),_0x450df3['arraytransport']=_0x3c8d8a()[_0x55a775('0x128')]([{'option':'udp','value':_0x55a775('0x8d0')},{'option':_0x55a775('0x1923'),'value':_0x55a775('0x1373')},{'option':'ws','value':'\x27ws\x27','ngIf':_0x55a775('0x2511')},{'option':'wss','value':_0x55a775('0x24fc'),'ngIf':_0x55a775('0x2511')},{'option':_0x55a775('0x11ea'),'value':'\x27tls\x27','ngIf':_0x55a775('0x2511')}],function(_0x205f8d){const _0x485021=_0x55a775;return _0x3c8d8a()[_0x485021('0x166c')](_0x205f8d['value'],new RegExp('\x27','g'),'');}),_0x450df3[_0x55a775('0x29b')]=_0x3c8d8a()[_0x55a775('0x128')]([{'option':_0x55a775('0x339'),'value':'\x27force_rport\x27'},{'option':_0x55a775('0x281b'),'value':_0x55a775('0x1043')},{'option':_0x55a775('0x1d41'),'value':_0x55a775('0x26ec')},{'option':'no','value':'\x27no\x27'},{'option':_0x55a775('0x1633'),'value':_0x55a775('0x885')},{'option':_0x55a775('0x26e9'),'value':_0x55a775('0x41a')}],function(_0x12e12e){const _0xc897ee=_0x55a775;return _0x3c8d8a()['replace'](_0x12e12e[_0xc897ee('0xa7b')],new RegExp('\x27','g'),'');}),_0x450df3[_0x55a775('0x1f90')]=_0x3c8d8a()[_0x55a775('0x128')]([{'option':_0x55a775('0x1090'),'value':_0x55a775('0x1f69')},{'option':_0x55a775('0x2265'),'value':'\x27user\x27'},{'option':_0x55a775('0x721'),'value':'\x27peer\x27'}],function(_0x1aae15){const _0x24343d=_0x55a775;return _0x3c8d8a()[_0x24343d('0x166c')](_0x1aae15[_0x24343d('0xa7b')],new RegExp('\x27','g'),'');}),_0x450df3['arrayallow']=_0x3c8d8a()[_0x55a775('0x128')]([{'option':_0x55a775('0x1710'),'value':_0x55a775('0xc61')},{'option':'alaw','value':_0x55a775('0x1179')},{'option':_0x55a775('0x2aa'),'value':'\x27gsm\x27'},{'option':_0x55a775('0x12ac'),'value':'\x27g722\x27'},{'option':_0x55a775('0x2769'),'value':'\x27g729\x27'},{'option':_0x55a775('0x27d1'),'value':'\x27opus\x27'},{'option':_0x55a775('0xbe8'),'value':'\x27h264\x27'}],function(_0xd2bf39){const _0x1d15b0=_0x55a775;return _0x3c8d8a()[_0x1d15b0('0x166c')](_0xd2bf39[_0x1d15b0('0xa7b')],new RegExp('\x27','g'),'');}),_0x450df3['arrayvideosupport']=_0x3c8d8a()[_0x55a775('0x128')]([{'option':_0x55a775('0x1029'),'value':_0x55a775('0x26ec')},{'option':'No','value':'\x27no\x27'},{'option':_0x55a775('0x2322'),'value':_0x55a775('0x1484')}],function(_0xabcfc5){return _0x3c8d8a()['replace'](_0xabcfc5['value'],new RegExp('\x27','g'),'');}),_0x450df3[_0x55a775('0x2514')]=_0x3c8d8a()[_0x55a775('0x128')]([{'option':_0x55a775('0x1776'),'value':'\x27\x27'},{'option':'wav','value':_0x55a775('0x675')},{'option':_0x55a775('0x165'),'value':_0x55a775('0x1890')},{'option':'gsm','value':'\x27gsm\x27'}],function(_0xa00627){const _0x113c7f=_0x55a775;return _0x3c8d8a()['replace'](_0xa00627[_0x113c7f('0xa7b')],new RegExp('\x27','g'),'');}),_0x450df3[_0x55a775('0x222e')]=_0x146a9a,_0x450df3[_0x55a775('0x17d4')]=_0x27504a,_0x450df3[_0x55a775('0x1a20')]=_0x532f2b,_0x450df3['success']=_0x18d5f1,_0x450df3['getAgents']=_0x1151c0,_0x450df3[_0x55a775('0x24cc')]=_0x46f0cc,_0x450df3[_0x55a775('0x213b')]=_0x422ddf,_0x450df3[_0x55a775('0x1435')]=_0x3ce284,_0x450df3['deleteSelectedAgents']=_0x653365,_0x450df3[_0x55a775('0x41')]=_0x2485b7,_0x450df3[_0x55a775('0x2538')]=_0x5f318b;function _0x146a9a(_0xff5ce3){const _0x36c0d1=_0x55a775;_0x32d54e['go'](_0x36c0d1('0x38f'),{'id':_0xff5ce3['id'],'agent':_0xff5ce3,'crudPermissions':_0x450df3[_0x36c0d1('0x1dc1')]});}function _0x27504a(_0x11b741,_0x2c52cf){const _0xc996b5=_0x55a775;_0x2b8f9a[_0xc996b5('0x1cb7')]({'controller':_0xc996b5('0x2076'),'controllerAs':'vm','templateUrl':_0x2d8532,'parent':angular[_0xc996b5('0xb6d')](_0x206d28[_0xc996b5('0x1a5')]),'targetEvent':_0x2c52cf,'clickOutsideToClose':!![],'locals':{'agent':_0x11b741,'agents':_0x450df3[_0xc996b5('0x11fa')]?_0x450df3[_0xc996b5('0x11fa')][_0xc996b5('0x6aa')]:[],'crudPermissions':_0x450df3[_0xc996b5('0x1dc1')]}});}function _0x532f2b(_0x2ca203,_0x21f85b){const _0x2889cf=_0x55a775,_0x448e72=_0x2b8f9a[_0x2889cf('0x1d02')]()[_0x2889cf('0x20d6')](_0x2889cf('0x5bb')+_0x3c8d8a()[_0x2889cf('0x10e')](_0x2889cf('0x7b0'))+'?')[_0x2889cf('0xf8b')](''+(_0x2ca203[_0x2889cf('0x10ad')]||_0x2889cf('0x7b0'))+_0x2889cf('0x24be')+_0x2889cf('0xd23'))[_0x2889cf('0x217')]('delete\x20agent')[_0x2889cf('0x21de')](_0x21f85b)['ok']('OK')[_0x2889cf('0x1e1f')](_0x2889cf('0x468'));_0x2b8f9a['show'](_0x448e72)[_0x2889cf('0x173b')](function(){_0x422ddf(_0x2ca203);},function(){const _0x16c270=_0x2889cf;console[_0x16c270('0xe37')](_0x16c270('0x468'));});}let _0x3218e2=!![],_0x54432f=0x1;_0x4e43ce[_0x55a775('0x1bdb')](_0x55a775('0x157b'),function(_0x2791c5,_0x4de251){const _0x4be2c2=_0x55a775;_0x3218e2?_0x110890(function(){_0x3218e2=![];}):(!_0x4de251&&(_0x54432f=_0x450df3[_0x4be2c2('0xc49')][_0x4be2c2('0x182e')]),_0x2791c5!==_0x4de251&&(_0x450df3[_0x4be2c2('0xc49')][_0x4be2c2('0x182e')]=0x1),!_0x2791c5&&(_0x450df3[_0x4be2c2('0xc49')]['page']=_0x54432f),_0x450df3[_0x4be2c2('0x1903')]());});function _0x18d5f1(_0xba9c28){const _0x2c684a=_0x55a775;_0x450df3[_0x2c684a('0x11fa')]=_0xba9c28||{'count':0x0,'rows':[]};}function _0x1151c0(){const _0x2d4429=_0x55a775;_0x450df3[_0x2d4429('0xc49')][_0x2d4429('0x17f0')]=(_0x450df3['query'][_0x2d4429('0x182e')]-0x1)*_0x450df3['query'][_0x2d4429('0x3e')],_0x5f1efc[_0x2d4429('0x1b4e')](_0x2d4429('0x79b'))?_0x450df3['promise']=_0x2e7d0b['user']['get'](_0x450df3['query'],_0x18d5f1)['$promise']:(_0x450df3[_0x2d4429('0xc49')]['id']=_0x450df3[_0x2d4429('0x257b')]['id'],_0x450df3[_0x2d4429('0xc49')][_0x2d4429('0x17c9')]='Agents',_0x450df3['promise']=_0x2e7d0b[_0x2d4429('0x257b')][_0x2d4429('0x135b')](_0x450df3[_0x2d4429('0xc49')],_0x18d5f1)['$promise']);}function _0x46f0cc(_0x15c666,_0x368e5d){const _0x4775f1=_0x55a775;_0x2b8f9a[_0x4775f1('0x1cb7')]({'controller':_0x4775f1('0x70'),'controllerAs':'vm','templateUrl':_0x21d593,'parent':angular[_0x4775f1('0xb6d')](_0x206d28[_0x4775f1('0x1a5')]),'targetEvent':_0x15c666,'clickOutsideToClose':!![],'locals':{'agent':_0x368e5d,'agents':_0x450df3[_0x4775f1('0x11fa')]['rows'],'license':_0x450df3[_0x4775f1('0x1a29')],'setting':_0x450df3[_0x4775f1('0x251')],'crudPermissions':_0x450df3[_0x4775f1('0x1dc1')]}});}function _0x422ddf(_0x5baafa){const _0x2fb862=_0x55a775;_0x2e7d0b[_0x2fb862('0x166f')][_0x2fb862('0x15e8')]({'id':_0x5baafa['id']})['$promise']['then'](function(){const _0x59b919=_0x2fb862;_0x3c8d8a()[_0x59b919('0x1a8b')](_0x450df3['agents'][_0x59b919('0x6aa')],{'id':_0x5baafa['id']}),_0x450df3[_0x59b919('0x11fa')][_0x59b919('0x1a2f')]-=0x1,!_0x450df3[_0x59b919('0x11fa')]['rows'][_0x59b919('0x543')]&&_0x450df3[_0x59b919('0x1903')](),_0x34fb08['success']({'title':_0x3c8d8a()[_0x59b919('0x10e')](_0x59b919('0x1547'))+_0x59b919('0x1c5e'),'msg':_0x5baafa[_0x59b919('0x10ad')]?_0x5baafa['name']+_0x59b919('0x25d2'):''});})[_0x2fb862('0x103c')](function(_0x2f7c82){const _0x5ce604=_0x2fb862;if(_0x2f7c82[_0x5ce604('0x1e07')]&&_0x2f7c82[_0x5ce604('0x1e07')][_0x5ce604('0x1d4a')]&&_0x2f7c82[_0x5ce604('0x1e07')][_0x5ce604('0x1d4a')][_0x5ce604('0x543')]){_0x450df3[_0x5ce604('0x1d4a')]=_0x2f7c82[_0x5ce604('0x1e07')][_0x5ce604('0x1d4a')]||[{'message':_0x2f7c82[_0x5ce604('0x1b75')](),'type':_0x5ce604('0x932')}];for(let _0x4ed207=0x0;_0x4ed207<_0x2f7c82[_0x5ce604('0x1e07')][_0x5ce604('0x1d4a')][_0x5ce604('0x543')];_0x4ed207++){_0x34fb08[_0x5ce604('0x15aa')]({'title':_0x2f7c82[_0x5ce604('0x1e07')]['errors'][_0x4ed207][_0x5ce604('0x1810')],'msg':_0x2f7c82['data'][_0x5ce604('0x1d4a')][_0x4ed207][_0x5ce604('0x67f')]});}}else _0x34fb08['error']({'title':_0x2f7c82[_0x5ce604('0x276f')]?_0x5ce604('0x137')+_0x2f7c82[_0x5ce604('0x276f')]+_0x5ce604('0x160c')+_0x2f7c82[_0x5ce604('0x2696')]:_0x5ce604('0x932'),'msg':_0x2f7c82[_0x5ce604('0x1e07')]?JSON['stringify'](_0x2f7c82[_0x5ce604('0x1e07')]['message']):_0x2f7c82[_0x5ce604('0x67f')]||_0x2f7c82['toString']()});});}function _0x3ce284(){const _0xf95195=_0x55a775,_0x2ccf22=angular[_0xf95195('0x2e3')](_0x450df3[_0xf95195('0xf2')]);return _0x450df3[_0xf95195('0xf2')]=[],_0x2ccf22;}function _0x653365(_0x33610b){const _0x311a64=_0x55a775,_0x4ff5f1=_0x2b8f9a['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20agents?')['htmlContent'](_0x311a64('0x15b9')+_0x450df3['selectedAgents']['length']+_0x311a64('0xcb4')+_0x311a64('0xd23'))[_0x311a64('0x217')]('delete\x20Agents')[_0x311a64('0x21de')](_0x33610b)['ok']('OK')[_0x311a64('0x1e1f')](_0x311a64('0x468'));_0x2b8f9a[_0x311a64('0x1cb7')](_0x4ff5f1)[_0x311a64('0x173b')](function(){const _0x4e1106=_0x311a64;_0x450df3[_0x4e1106('0xf2')][_0x4e1106('0xa6a')](function(_0x5316a8){_0x422ddf(_0x5316a8);}),_0x450df3[_0x4e1106('0xf2')]=[];});}function _0x2485b7(){const _0x387402=_0x55a775;_0x450df3[_0x387402('0xf2')]=[];}function _0x5f318b(){const _0x3be3b3=_0x55a775;_0x450df3[_0x3be3b3('0xf2')]=_0x450df3['agents'][_0x3be3b3('0x6aa')];}}const _0x49d2e4=_0x1d6f2b;_0x15645b[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),'agents',_0x566993('0x7b0'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x15645b(_0x349ff2,_0x1a55d5,_0xd9b408,_0x4f8e71,_0x31d3f9,_0x512c4e,_0x4df124,_0x187a21,_0x3e2d2a,_0x53f527,_0x43a856,_0x1a509e,_0x24299f,_0x4b16ed){const _0x44dd16=_0x566993,_0x9b3bd5=this;_0x9b3bd5[_0x44dd16('0x155f')]=_0x43a856[_0x44dd16('0x14d4')](),_0x9b3bd5[_0x44dd16('0x1d4a')]=[],_0x9b3bd5[_0x44dd16('0x251')]=_0x24299f,_0x9b3bd5[_0x44dd16('0x1a29')]=_0x1a509e,_0x9b3bd5['crudPermissions']=_0x4b16ed,_0x9b3bd5['hasModulePermissions']={},_0x9b3bd5['passwordPattern']=_0x9b3bd5['setting']&&_0x9b3bd5['setting'][_0x44dd16('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x9b3bd5[_0x44dd16('0x20d6')]=_0x44dd16('0x5c1'),_0x9b3bd5[_0x44dd16('0x7b0')]=angular['copy'](_0x3e2d2a),_0x9b3bd5[_0x44dd16('0x11fa')]=_0x187a21,_0x9b3bd5['newAgent']=![];!_0x9b3bd5[_0x44dd16('0x7b0')]&&(_0x9b3bd5[_0x44dd16('0x7b0')]={'role':_0x44dd16('0x7b0'),'showWebBar':'0','autointernal':!![],'type':_0x44dd16('0x1424'),'context':_0x44dd16('0x13d6'),'phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0x9b3bd5[_0x44dd16('0x20d6')]=_0x44dd16('0xf68'),_0x9b3bd5['newAgent']=!![]);_0x9b3bd5[_0x44dd16('0x836')]=_0x59cf9,_0x9b3bd5[_0x44dd16('0x6e')]=_0x4e6882,_0x9b3bd5[_0x44dd16('0x213b')]=_0x18f4bb,_0x9b3bd5[_0x44dd16('0x11ae')]=_0x54cc7a,_0x9b3bd5[_0x44dd16('0x18e2')]=_0x90f31f;function _0x59cf9(){const _0x41e770=_0x44dd16;_0x9b3bd5[_0x41e770('0x1d4a')]=[],_0x53f527[_0x41e770('0x166f')][_0x41e770('0x1195')](_0x9b3bd5[_0x41e770('0x7b0')])['$promise'][_0x41e770('0x173b')](function(_0x47348e){const _0x10e8e7=_0x41e770;_0x9b3bd5[_0x10e8e7('0x11fa')][_0x10e8e7('0x1377')](_0x47348e[_0x10e8e7('0xf1f')]()),_0x4df124[_0x10e8e7('0xdfe')]({'title':'Agent\x20properly\x20created','msg':_0x9b3bd5[_0x10e8e7('0x7b0')][_0x10e8e7('0x10ad')]?_0x9b3bd5[_0x10e8e7('0x7b0')][_0x10e8e7('0x10ad')]+_0x10e8e7('0x209a'):''}),_0x90f31f(_0x47348e);})[_0x41e770('0x103c')](function(_0x4109b0){const _0x216df5=_0x41e770;if(_0x4109b0[_0x216df5('0x1e07')]&&_0x4109b0[_0x216df5('0x1e07')]['errors']&&_0x4109b0[_0x216df5('0x1e07')][_0x216df5('0x1d4a')][_0x216df5('0x543')]){_0x9b3bd5[_0x216df5('0x1d4a')]=_0x4109b0[_0x216df5('0x1e07')][_0x216df5('0x1d4a')]||[{'message':_0x4109b0[_0x216df5('0x1b75')](),'type':_0x216df5('0x27d7')}];for(let _0x4c0fac=0x0;_0x4c0fac<_0x4109b0[_0x216df5('0x1e07')][_0x216df5('0x1d4a')][_0x216df5('0x543')];_0x4c0fac+=0x1){_0x4df124[_0x216df5('0x15aa')]({'title':_0x4109b0['data']['errors'][_0x4c0fac]['type'],'msg':_0x4109b0[_0x216df5('0x1e07')]['errors'][_0x4c0fac][_0x216df5('0x67f')]});}}else _0x4df124[_0x216df5('0x15aa')]({'title':_0x4109b0['status']?_0x216df5('0x137')+_0x4109b0['status']+_0x216df5('0x160c')+_0x4109b0[_0x216df5('0x2696')]:_0x216df5('0x27d7'),'msg':_0x4109b0[_0x216df5('0x1e07')]?JSON[_0x216df5('0x100b')](_0x4109b0[_0x216df5('0x1e07')][_0x216df5('0x67f')]):_0x4109b0[_0x216df5('0x1b75')]()});});}function _0x4e6882(){const _0x284d6a=_0x44dd16;_0x9b3bd5[_0x284d6a('0x1d4a')]=[],_0x53f527[_0x284d6a('0x166f')][_0x284d6a('0x1842')]({'id':_0x9b3bd5['agent']['id']},_0x9b3bd5[_0x284d6a('0x7b0')])[_0x284d6a('0x1964')][_0x284d6a('0x173b')](function(_0x13d977){const _0x22bcd2=_0x284d6a,_0x21a424=_0x3c8d8a()['find'](_0x9b3bd5[_0x22bcd2('0x11fa')],{'id':_0x13d977['id']});_0x21a424&&_0x3c8d8a()[_0x22bcd2('0x9ef')](_0x21a424,_0x3c8d8a()[_0x22bcd2('0x2114')](_0x13d977[_0x22bcd2('0xf1f')](),_0x3c8d8a()['keys'](_0x21a424))),_0x4df124[_0x22bcd2('0xdfe')]({'title':_0x22bcd2('0x15dc'),'msg':_0x9b3bd5['agent'][_0x22bcd2('0x10ad')]?_0x9b3bd5[_0x22bcd2('0x7b0')][_0x22bcd2('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x90f31f(_0x13d977);})[_0x284d6a('0x103c')](function(_0x34a7cc){const _0x1ff5ba=_0x284d6a;if(_0x34a7cc[_0x1ff5ba('0x1e07')]&&_0x34a7cc[_0x1ff5ba('0x1e07')][_0x1ff5ba('0x1d4a')]&&_0x34a7cc[_0x1ff5ba('0x1e07')][_0x1ff5ba('0x1d4a')][_0x1ff5ba('0x543')]){_0x9b3bd5[_0x1ff5ba('0x1d4a')]=_0x34a7cc[_0x1ff5ba('0x1e07')][_0x1ff5ba('0x1d4a')]||[{'message':_0x34a7cc['toString'](),'type':_0x1ff5ba('0x2134')}];for(let _0x99dc19=0x0;_0x99dc19<_0x34a7cc[_0x1ff5ba('0x1e07')][_0x1ff5ba('0x1d4a')]['length'];_0x99dc19++){_0x4df124['error']({'title':_0x34a7cc[_0x1ff5ba('0x1e07')][_0x1ff5ba('0x1d4a')][_0x99dc19][_0x1ff5ba('0x1810')],'msg':_0x34a7cc['data']['errors'][_0x99dc19][_0x1ff5ba('0x67f')]});}}else _0x4df124[_0x1ff5ba('0x15aa')]({'title':_0x34a7cc[_0x1ff5ba('0x276f')]?_0x1ff5ba('0x137')+_0x34a7cc['status']+_0x1ff5ba('0x160c')+_0x34a7cc[_0x1ff5ba('0x2696')]:_0x1ff5ba('0x2134'),'msg':_0x34a7cc[_0x1ff5ba('0x1e07')]?JSON[_0x1ff5ba('0x100b')](_0x34a7cc[_0x1ff5ba('0x1e07')][_0x1ff5ba('0x67f')]):_0x34a7cc[_0x1ff5ba('0x1b75')]()});});}function _0x18f4bb(_0x437057){const _0x2cc1da=_0x44dd16;_0x9b3bd5[_0x2cc1da('0x1d4a')]=[];const _0x19a809=_0x4f8e71[_0x2cc1da('0x1d02')]()[_0x2cc1da('0x20d6')](_0x2cc1da('0x8ef'))[_0x2cc1da('0x732')](_0x2cc1da('0x12b8'))[_0x2cc1da('0x217')](_0x2cc1da('0x1ec0'))['ok'](_0x2cc1da('0x2373'))['cancel'](_0x2cc1da('0x1d4e'))['targetEvent'](_0x437057);_0x4f8e71['show'](_0x19a809)[_0x2cc1da('0x173b')](function(){const _0x54faa7=_0x2cc1da;_0x53f527[_0x54faa7('0x166f')][_0x54faa7('0x15e8')]({'id':_0x9b3bd5['agent']['id']})[_0x54faa7('0x1964')][_0x54faa7('0x173b')](function(){const _0x46b7ff=_0x54faa7;_0x3c8d8a()[_0x46b7ff('0x1a8b')](_0x9b3bd5[_0x46b7ff('0x11fa')],{'id':_0x9b3bd5['agent']['id']}),_0x4df124[_0x46b7ff('0xdfe')]({'title':_0x46b7ff('0xb5c'),'msg':(_0x9b3bd5[_0x46b7ff('0x7b0')][_0x46b7ff('0x10ad')]||_0x46b7ff('0x7b0'))+_0x46b7ff('0x25d2')}),_0x90f31f(_0x9b3bd5['agent']);})[_0x54faa7('0x103c')](function(_0x49112f){const _0x217fb4=_0x54faa7;if(_0x49112f[_0x217fb4('0x1e07')]&&_0x49112f[_0x217fb4('0x1e07')][_0x217fb4('0x1d4a')]&&_0x49112f[_0x217fb4('0x1e07')][_0x217fb4('0x1d4a')]['length']){_0x9b3bd5[_0x217fb4('0x1d4a')]=_0x49112f[_0x217fb4('0x1e07')][_0x217fb4('0x1d4a')]||[{'message':_0x49112f[_0x217fb4('0x1b75')](),'type':_0x217fb4('0x17ec')}];for(let _0x584fac=0x0;_0x584fac<_0x49112f[_0x217fb4('0x1e07')][_0x217fb4('0x1d4a')][_0x217fb4('0x543')];_0x584fac++){_0x4df124[_0x217fb4('0x15aa')]({'title':_0x49112f[_0x217fb4('0x1e07')][_0x217fb4('0x1d4a')][_0x584fac][_0x217fb4('0x1810')],'msg':_0x49112f[_0x217fb4('0x1e07')]['errors'][_0x584fac][_0x217fb4('0x67f')]});}}else _0x4df124[_0x217fb4('0x15aa')]({'title':_0x49112f[_0x217fb4('0x276f')]?_0x217fb4('0x137')+_0x49112f[_0x217fb4('0x276f')]+_0x217fb4('0x160c')+_0x49112f[_0x217fb4('0x2696')]:'api.user.delete','msg':_0x49112f[_0x217fb4('0x1e07')]?JSON[_0x217fb4('0x100b')](_0x49112f['data'][_0x217fb4('0x67f')]):_0x49112f[_0x217fb4('0x67f')]||_0x49112f['toString']()});});},function(){});}function _0x54cc7a(_0x5293df){return _0x5293df===null?undefined:new Date(_0x5293df);}function _0x90f31f(_0x914cc7){const _0x1f441f=_0x44dd16;_0x4f8e71[_0x1f441f('0x1cf4')](_0x914cc7);}}const _0x16856e=_0x15645b;_0x5da269[_0x566993('0x17bb')]=['$cookies',_0x566993('0x1558')];function _0x5da269(_0x2ca634,_0x2db520){const _0x2d3c40=_0x566993,_0x5ee133=this,_0x184b8a=0x8,_0x4714b7=_0x184b8a*0x400*0x400;_0x5ee133[_0x2d3c40('0x7b0')]={},_0x5ee133['crudPermissions'],_0x5ee133['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4714b7,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x5ee133['ngFlow']={'flow':{}},_0x5ee133['dropping']=![],_0x5ee133[_0x2d3c40('0x23a9')]=_0x339b3d,_0x5ee133[_0x2d3c40('0xb1e')]=_0x5a09c6,_0x5ee133[_0x2d3c40('0x12b9')]=_0x236a8e,_0x5ee133[_0x2d3c40('0xb9c')]=_0x46d3a6;function _0x46d3a6(_0x42fff0,_0x5eace0){const _0xd2ba29=_0x2d3c40;_0x5ee133['agent']=angular[_0xd2ba29('0x2e3')](_0x42fff0),_0x5ee133[_0xd2ba29('0x1dc1')]=typeof _0x5eace0!==_0xd2ba29('0x6e5')?_0x5eace0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5ee133[_0xd2ba29('0x8f9')]['target']=_0xd2ba29('0x3d6')+_0x5ee133[_0xd2ba29('0x7b0')]['id']+_0xd2ba29('0x1f77'),_0x5ee133[_0xd2ba29('0x7b0')][_0xd2ba29('0x1f73')]=[];}function _0x339b3d(_0x4da381){const _0x5538b0=_0x2d3c40,_0x31d971=['png',_0x5538b0('0xa5a')];if(!_0x3c8d8a()[_0x5538b0('0x2814')](_0x31d971,_0x4da381[_0x5538b0('0x131a')]()))return _0x2db520[_0x5538b0('0x15aa')]({'title':_0x5538b0('0xc5d')+_0x4da381[_0x5538b0('0x131a')](),'msg':_0x5538b0('0x10cc')+_0x31d971[_0x5538b0('0x2259')]()}),![];if(_0x4da381[_0x5538b0('0x2361')]>_0x4714b7)return _0x2db520[_0x5538b0('0x15aa')]({'title':'File\x20too\x20big','msg':_0x5538b0('0xdfc')+_0x184b8a+'MB'}),![];const _0x281623={'id':_0x4da381['uniqueIdentifier'],'file':_0x4da381,'type':_0x5538b0('0x2175')};return _0x5ee133[_0x5538b0('0x7b0')][_0x5538b0('0x1f73')]['unshift'](_0x281623),!![];}function _0x5a09c6(){const _0x504434=_0x2d3c40;_0x5ee133[_0x504434('0x428')][_0x504434('0x1789')][_0x504434('0x2431')][_0x504434('0x1670')]={'X-Requested-With':_0x504434('0x12c9'),'Authorization':_0x504434('0x221')+_0x2ca634[_0x504434('0x1d97')](_0x504434('0x7c6'))},_0x5ee133[_0x504434('0x428')][_0x504434('0x1789')][_0x504434('0xb1e')]();}function _0x236a8e(_0x26266f){const _0xf1e58d=_0x2d3c40;angular['forEach'](_0x5ee133[_0xf1e58d('0x7b0')][_0xf1e58d('0x1f73')],function(_0x1113e2){const _0x42ae37=_0xf1e58d;if(_0x1113e2['id']===_0x26266f['uniqueIdentifier']){const _0x3c2a3e=new FileReader();_0x3c2a3e['readAsDataURL'](_0x1113e2[_0x42ae37('0x2522')][_0x42ae37('0x2522')]),_0x3c2a3e[_0x42ae37('0x147d')]=function(_0x5a179c){const _0x196a9c=_0x42ae37;_0x1113e2[_0x196a9c('0xd1')]=_0x5a179c[_0x196a9c('0x235')][_0x196a9c('0xd09')];},_0x1113e2['type']=_0x42ae37('0x204b');}});}}const _0x2e353f=_0x5da269;_0xa2dfb4['$inject']=[_0x566993('0x66f'),_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x7b0'),_0x566993('0x251'),_0x566993('0x1600')];function _0xa2dfb4(_0x454ce4,_0x401936,_0x53a29b,_0x544c25,_0x42d813,_0x435b00,_0x27c3f1){const _0xf1bb31=_0x566993,_0x4b3a92=this;_0x4b3a92['currentUser']=_0x27c3f1['getCurrentUser'](),_0x4b3a92[_0xf1bb31('0x1d4a')]=[],_0x4b3a92[_0xf1bb31('0x251')]=_0x435b00,_0x4b3a92['passwordPattern']=_0x4b3a92[_0xf1bb31('0x251')][_0xf1bb31('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4b3a92[_0xf1bb31('0x7b0')]=_0x42d813,_0x4b3a92['password']='',_0x4b3a92[_0xf1bb31('0xde8')]='',_0x4b3a92[_0xf1bb31('0x2647')]=_0x681ae5,_0x4b3a92[_0xf1bb31('0x18e2')]=_0x2af1d4,_0x454ce4[_0xf1bb31('0x1bdb')](_0xf1bb31('0x2649'),function(_0x275863){const _0x10d605=_0xf1bb31;!_0x3c8d8a()[_0x10d605('0x7d5')](_0x4b3a92[_0x10d605('0xde8')])&&(_0x275863===_0x4b3a92['oldPassword']?_0x454ce4[_0x10d605('0x11d4')][_0x10d605('0xdb6')][_0x10d605('0x1869')](_0x10d605('0x137f'),![]):_0x454ce4[_0x10d605('0x11d4')]['password'][_0x10d605('0x1869')](_0x10d605('0x137f'),!![]));});function _0x681ae5(){const _0x3e8fba=_0xf1bb31;_0x4b3a92[_0x3e8fba('0x1d4a')]=[];const _0x1d1c3b={'id':_0x4b3a92[_0x3e8fba('0x7b0')]['id'],'newPassword':_0x4b3a92['password']};_0x4b3a92['currentUser']['id']==_0x4b3a92[_0x3e8fba('0x7b0')]['id']&&(_0x1d1c3b[_0x3e8fba('0xde8')]=_0x4b3a92['oldPassword']),_0x544c25['user']['changePassword'](_0x1d1c3b)[_0x3e8fba('0x1964')][_0x3e8fba('0x173b')](function(){const _0x28f78e=_0x3e8fba;_0x53a29b[_0x28f78e('0xdfe')]({'title':_0x28f78e('0x181b')}),_0x2af1d4();})['catch'](function(_0x413483){const _0x3f0281=_0x3e8fba;_0x53a29b['error']({'title':_0x413483['status']?_0x3f0281('0x137')+_0x413483[_0x3f0281('0x276f')]+'\x20-\x20'+_0x413483[_0x3f0281('0x2696')]:'api.agent.save','msg':_0x413483[_0x3f0281('0x1e07')]?JSON[_0x3f0281('0x100b')](_0x413483[_0x3f0281('0x1e07')][_0x3f0281('0x67f')]):_0x413483[_0x3f0281('0x1b75')]()}),_0x4b3a92['errors']=_0x413483[_0x3f0281('0x1e07')][_0x3f0281('0x1d4a')]||[{'message':_0x413483[_0x3f0281('0x1b75')](),'type':_0x3f0281('0xad7')}];});}function _0x2af1d4(){const _0x2195c6=_0xf1bb31;_0x401936[_0x2195c6('0x1cf4')]();}}const _0x222d35=_0xa2dfb4;_0x4ecfdb[_0x566993('0x17bb')]=[_0x566993('0x1b82'),_0x566993('0x1fe5'),_0x566993('0xbd4'),_0x566993('0x38'),_0x566993('0x1558')];function _0x4ecfdb(_0x1c6639,_0x4a9f6f,_0x244bc5,_0x4901be,_0x5bee52){const _0x59f363=_0x566993,_0x5624b5=this;_0x5624b5[_0x59f363('0x7b0')]={},_0x5624b5[_0x59f363('0x1ea9')]=_0x4901be[_0x59f363('0x22f3')](),_0x5624b5['crudPermissions'],_0x5624b5[_0x59f363('0xb9c')]=_0x1d5cd3,_0x5624b5[_0x59f363('0x50f')]=_0x462679;function _0x1d5cd3(_0x3bbd70,_0x17b3d5){const _0x3874cd=_0x59f363;_0x5624b5[_0x3874cd('0x7b0')]=_0x3bbd70,_0x5624b5[_0x3874cd('0x1dc1')]=typeof _0x17b3d5!=='undefined'?_0x17b3d5:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0x462679(_0x2d4707,_0x72d8b2){const _0x13c17f=_0x59f363,_0x1ae135=_0x72d8b2||_0x2d4707;if(_0x1ae135['enabled']){if(_0x72d8b2)_0x72d8b2['enabled']=!![],_0x5624b5[_0x13c17f('0x7b0')][_0x13c17f('0x23c1')][_0x13c17f('0x18bb')](_0x72d8b2['id']);else for(let _0x61b6cc=0x0;_0x61b6cc<_0x2d4707['children']['length'];_0x61b6cc++){_0x2d4707[_0x13c17f('0x13da')][_0x61b6cc]['enabled']=!![],_0x5624b5['agent']['permissions'][_0x13c17f('0x18bb')](_0x2d4707[_0x13c17f('0x13da')][_0x61b6cc]['id']);}_0x2d4707[_0x13c17f('0x830')]=!![],_0x5624b5[_0x13c17f('0x7b0')][_0x13c17f('0x23c1')]['push'](_0x2d4707['id']);}else{if(_0x72d8b2)_0x72d8b2[_0x13c17f('0x830')]=![],_0x3c8d8a()[_0x13c17f('0x1a8b')](_0x5624b5['agent'][_0x13c17f('0x23c1')],function(_0x4e5c2d){return _0x72d8b2['id']===_0x4e5c2d;}),_0x3c8d8a()[_0x13c17f('0x278d')](_0x2d4707[_0x13c17f('0x13da')],{'enabled':![]})[_0x13c17f('0x543')]===_0x2d4707[_0x13c17f('0x13da')][_0x13c17f('0x543')]&&(_0x2d4707[_0x13c17f('0x830')]=![],_0x3c8d8a()[_0x13c17f('0x1a8b')](_0x5624b5['agent'][_0x13c17f('0x23c1')],function(_0x198273){return _0x2d4707['id']===_0x198273;}));else{_0x2d4707[_0x13c17f('0x830')]=![],_0x3c8d8a()[_0x13c17f('0x1a8b')](_0x5624b5[_0x13c17f('0x7b0')][_0x13c17f('0x23c1')],function(_0x427ad5){return _0x2d4707['id']===_0x427ad5;});for(let _0x185fe7=0x0;_0x185fe7<_0x2d4707[_0x13c17f('0x13da')][_0x13c17f('0x543')];_0x185fe7++){_0x2d4707[_0x13c17f('0x13da')][_0x185fe7][_0x13c17f('0x830')]=![],_0x3c8d8a()[_0x13c17f('0x1a8b')](_0x5624b5[_0x13c17f('0x7b0')][_0x13c17f('0x23c1')],function(_0x5343fc){return _0x2d4707['children'][_0x185fe7]['id']===_0x5343fc;});}}}return _0x244bc5['user'][_0x13c17f('0x1842')]({'id':_0x5624b5[_0x13c17f('0x7b0')]['id'],'permissions':_0x3c8d8a()[_0x13c17f('0x9f0')](_0x5624b5['agent']['permissions'])})['$promise'][_0x13c17f('0x173b')](function(){const _0x44db1c=_0x13c17f;_0x5bee52[_0x44db1c('0xdfe')]({'title':'agent\x20updated!','msg':_0x5624b5[_0x44db1c('0x7b0')]['name']?_0x5624b5[_0x44db1c('0x7b0')]['name']+'\x20has\x20been\x20updated!':''});})[_0x13c17f('0x103c')](function(_0x304514){console['error'](_0x304514);});}}const _0xa2f756=_0x4ecfdb;_0x56ddf8[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'api',_0x566993('0x7b0'),_0x566993('0x1134'),'direction','$translate','Auth',_0x566993('0x1dc1')];function _0x56ddf8(_0x293c20,_0x4489a9,_0x3d4605,_0x4b6183,_0x4c59e7,_0x57dec3,_0x5671a9,_0x308932,_0x336394,_0x1ede4b){const _0x5247da=_0x566993,_0x2e4127=this;_0x2e4127[_0x5247da('0x155f')]=_0x336394[_0x5247da('0x14d4')](),_0x2e4127[_0x5247da('0x7b0')]=_0x4c59e7,_0x2e4127[_0x5247da('0x1dc1')]=_0x1ede4b,_0x2e4127[_0x5247da('0x1692')]=0x0,_0x2e4127['channel']=_0x57dec3,_0x2e4127[_0x5247da('0x15f4')]=_0x5671a9,_0x2e4127['apiName']=_0x2e4127[_0x5247da('0x1134')]+_0x5247da('0x1436'),_0x2e4127['title']=_0x308932[_0x5247da('0x1467')]('STAFF.QUEUEADD_AGENT_'+_0x2e4127[_0x5247da('0x1134')][_0x5247da('0x1164')]()+'_'+_0x2e4127['direction'][_0x5247da('0x1164')]()),_0x2e4127['items']=[],_0x2e4127['allowedItems']=[],_0x2e4127[_0x5247da('0x5f8')]=[],_0x2e4127[_0x5247da('0x1493')]=[],_0x2e4127[_0x5247da('0x15c9')]=[],_0x2e4127[_0x5247da('0x277e')]=![],_0x2e4127[_0x5247da('0x52e')]={'readOnly':!_0x2e4127[_0x5247da('0x1dc1')][_0x5247da('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5247da('0x10ad'),'line1':'name','line2':_0x5247da('0x1810'),'line3':_0x2e4127[_0x5247da('0x1134')]===_0x5247da('0x21a8')?_0x5247da('0x1692'):'','labelAll':_0x308932[_0x5247da('0x1467')](_0x5247da('0x781')+_0x2e4127['channel']['toUpperCase']()+'_'+_0x2e4127[_0x5247da('0x15f4')][_0x5247da('0x1164')]()),'labelSelected':_0x308932['instant'](_0x5247da('0x11bf')+_0x2e4127[_0x5247da('0x1134')][_0x5247da('0x1164')]()+'_'+_0x2e4127[_0x5247da('0x15f4')][_0x5247da('0x1164')]()),'transferCallback':function(_0x445868,_0x487042){const _0xc75eae=_0x5247da;_0x487042?_0x445868[_0xc75eae('0xa6a')](function(_0x470d80){const _0x55b118=_0xc75eae;_0x470d80[_0x55b118('0x1692')]=undefined;}):_0x445868[_0xc75eae('0xa6a')](function(_0x3666d6){const _0x192e06=_0xc75eae;_0x3666d6[_0x192e06('0x1692')]=_0x192e06('0x1929')+_0x2e4127[_0x192e06('0x1692')];});const _0x12c02f=_0x3c8d8a()[_0xc75eae('0x461')](_0x2e4127[_0xc75eae('0x15c9')],_0x2e4127[_0xc75eae('0x5f8')],function(_0x4f96a3,_0x416381){const _0x55b6b2=_0xc75eae;return _0x4f96a3['id']===_0x416381['id']&&_0x4f96a3[_0x55b6b2('0x1692')]===_0x416381[_0x55b6b2('0x1692')];});_0x2e4127[_0xc75eae('0x277e')]=_0x3c8d8a()['isEmpty'](_0x12c02f)?![]:!![];}},_0x2e4127[_0x5247da('0x2535')]=_0x4c4909,_0x2e4127[_0x5247da('0x1aa')]=_0x42c9bf,_0x2e4127['closeDialog']=_0x242f6d;function _0x4c4909(){const _0x1596f4=_0x5247da;return _0x336394['hasRole'](_0x1596f4('0x79b'))?_0x38d0fd()[_0x1596f4('0x103c')](function(_0x13d696){const _0x562050=_0x1596f4;_0x3d4605[_0x562050('0x15aa')]({'title':_0x13d696['status']?_0x562050('0x137')+_0x13d696[_0x562050('0x276f')]+_0x562050('0x160c')+_0x13d696[_0x562050('0x2696')]:'SYSTEM:GET_QUEUES','msg':_0x13d696[_0x562050('0x276f')]?JSON[_0x562050('0x100b')](_0x13d696[_0x562050('0x1e07')]):_0x13d696[_0x562050('0x1b75')]()});}):_0x48dc9d()[_0x1596f4('0x173b')](function(_0x36bccb){const _0x3cbbdf=_0x1596f4;return _0x2e4127[_0x3cbbdf('0x17c9')]=_0x36bccb,_0x38d0fd();})[_0x1596f4('0x103c')](function(_0x4934cb){const _0x5e3775=_0x1596f4;_0x3d4605[_0x5e3775('0x15aa')]({'title':_0x4934cb[_0x5e3775('0x276f')]?_0x5e3775('0x137')+_0x4934cb['status']+_0x5e3775('0x160c')+_0x4934cb[_0x5e3775('0x2696')]:'SYSTEM:GET_QUEUES','msg':_0x4934cb[_0x5e3775('0x276f')]?JSON[_0x5e3775('0x100b')](_0x4934cb[_0x5e3775('0x1e07')]):_0x4934cb['toString']()});});}function _0x48dc9d(){return _0x4489a9(function(_0x10c88b,_0x30e601){const _0x4fe246=a0_0xde5e;let _0x4d7e2d;switch(_0x2e4127[_0x4fe246('0x1134')]){case'voice':switch(_0x2e4127[_0x4fe246('0x15f4')]){case'inbound':_0x4d7e2d='VoiceQueues';break;case _0x4fe246('0xb33'):_0x4d7e2d=_0x4fe246('0x16ad');break;}break;case _0x4fe246('0x8c5'):_0x4d7e2d='ChatQueues';break;case'mail':_0x4d7e2d=_0x4fe246('0x233d');break;case _0x4fe246('0x1a8f'):_0x4d7e2d=_0x4fe246('0x2d8');break;case'openchannel':_0x4d7e2d=_0x4fe246('0xd97');break;case'fax':_0x4d7e2d=_0x4fe246('0x1f23');break;}_0x4b6183[_0x4fe246('0x170e')][_0x4fe246('0x1d97')]({'userProfileId':_0x2e4127[_0x4fe246('0x155f')][_0x4fe246('0x1946')],'name':_0x4d7e2d})[_0x4fe246('0x1964')]['then'](function(_0x585c9a){const _0x4ca024=_0x4fe246,_0x21f8c5=_0x585c9a&&_0x585c9a[_0x4ca024('0x6aa')]?_0x585c9a[_0x4ca024('0x6aa')][0x0]:null;_0x10c88b(_0x21f8c5);})['catch'](function(_0x1581e9){_0x30e601(_0x1581e9);});});}function _0x38d0fd(){return _0x4489a9(function(_0x20c5e0,_0x50e88b){const _0xf7d8a2=a0_0xde5e;return _0x2ec7b6()['then'](function(_0x1c49dd){const _0x5e7a19=a0_0xde5e;return _0x2e4127['items']=_0x1c49dd[_0x5e7a19('0x6aa')]?_0x1c49dd[_0x5e7a19('0x6aa')]:[],_0x336394[_0x5e7a19('0x1b4e')](_0x5e7a19('0x79b'))?_0x1c49dd:_0x2e4127[_0x5e7a19('0x17c9')]?_0x2e4127[_0x5e7a19('0x17c9')][_0x5e7a19('0x273e')]?_0x1c49dd:_0x3ebb19():null;})[_0xf7d8a2('0x173b')](function(_0x84c6ac){const _0x3afd2c=_0xf7d8a2,_0x157ca1=_0x84c6ac&&_0x84c6ac[_0x3afd2c('0x6aa')]?_0x84c6ac[_0x3afd2c('0x6aa')]:[];return _0x2e4127[_0x3afd2c('0x203e')]=_0x3c8d8a()[_0x3afd2c('0x8a2')](_0x157ca1,function(_0x3dc649){const _0x1afc27=_0x3afd2c;return _0x3c8d8a()[_0x1afc27('0x18ab')](_0x2e4127[_0x1afc27('0x1b1f')],{'id':_0x336394[_0x1afc27('0x1b4e')](_0x1afc27('0x79b'))||_0x2e4127['section'][_0x1afc27('0x273e')]?_0x3dc649['id']:_0x3dc649['resourceId']});}),_0x2e4127[_0x3afd2c('0x1493')]=angular[_0x3afd2c('0x2e3')](_0x2e4127['allowedItems']),_0x2e4127[_0x3afd2c('0x1b1f')][_0x3afd2c('0xa6a')](function(_0x33f255){const _0x2e5531=_0x3afd2c,_0x42e9ce=_0x3c8d8a()[_0x2e5531('0x18ab')](_0x2e4127[_0x2e5531('0x203e')],{'id':_0x33f255['id']});_0x336394[_0x2e5531('0x1b4e')](_0x2e5531('0x79b'))?_0x33f255[_0x2e5531('0xf02')]=!![]:_0x33f255['isValid']=typeof _0x42e9ce!==_0x2e5531('0x6e5')?!![]:![];}),_0x326325();})[_0xf7d8a2('0x173b')](function(_0x3195fb){const _0x1cf5b6=_0xf7d8a2,_0x26c1f5=_0x3195fb&&_0x3195fb[_0x1cf5b6('0x6aa')]?_0x3195fb['rows']:[];_0x2e4127[_0x1cf5b6('0x5f8')]=_0x3c8d8a()[_0x1cf5b6('0x8a2')](_0x26c1f5,function(_0x2bc955){const _0x33cf1f=_0x1cf5b6,_0x1ddc13=_0x3c8d8a()[_0x33cf1f('0x18ab')](_0x2e4127[_0x33cf1f('0x1b1f')],{'id':_0x2bc955['id']});return _0x2e4127[_0x33cf1f('0x1134')]==='voice'&&(_0x1ddc13['penalty']=typeof _0x1ddc13!==_0x33cf1f('0x6e5')&&typeof _0x2bc955['UserVoiceQueue']!==_0x33cf1f('0x6e5')?_0x33cf1f('0x1929')+_0x2bc955[_0x33cf1f('0x2639')][_0x33cf1f('0x1692')]:_0x33cf1f('0x1929')+0x0),_0x1ddc13;}),_0x2e4127['startingSelectedItems']=angular[_0x1cf5b6('0x2e3')](_0x2e4127['selectedItems']),_0x2e4127['dualMultiselectOptions'][_0x1cf5b6('0x5f8')]=_0x2e4127[_0x1cf5b6('0x5f8')],_0x2e4127[_0x1cf5b6('0x52e')][_0x1cf5b6('0x1b1f')]=_0x3c8d8a()[_0x1cf5b6('0x1bd3')](_0x2e4127[_0x1cf5b6('0x203e')],_0x2e4127[_0x1cf5b6('0x52e')][_0x1cf5b6('0x5f8')],'id'),_0x20c5e0();})[_0xf7d8a2('0x103c')](function(_0x5928f){_0x50e88b(_0x5928f);});});}function _0x3ebb19(){return _0x4489a9(function(_0xcf628c,_0x55acaa){const _0x199fcb=a0_0xde5e;return _0x4b6183['userProfileResource']['get']({'sectionId':_0x2e4127[_0x199fcb('0x17c9')]['id'],'nolimit':!![]})[_0x199fcb('0x1964')]['then'](function(_0x305429){_0xcf628c(_0x305429);})[_0x199fcb('0x103c')](function(_0x1e81b6){_0x55acaa(_0x1e81b6);});});}function _0x326325(){return _0x4489a9(function(_0x4e8723,_0x375553){const _0x2c5e55=a0_0xde5e;return _0x4b6183[_0x2c5e55('0x166f')][_0x2c5e55('0x115e')]({'id':_0x2e4127[_0x2c5e55('0x7b0')]['id'],'fields':_0x2c5e55('0x1b58'),'nolimit':!![],'type':_0x2e4127[_0x2c5e55('0x15f4')],'channel':_0x2e4127[_0x2c5e55('0x1134')]})[_0x2c5e55('0x1964')][_0x2c5e55('0x173b')](function(_0x2ba6ba){_0x4e8723(_0x2ba6ba);})[_0x2c5e55('0x103c')](function(_0x226761){_0x375553(_0x226761);});});}function _0x2ec7b6(){return _0x4489a9(function(_0x2c606c,_0x177ea6){const _0x447832=a0_0xde5e;return _0x4b6183[_0x2e4127['apiName']][_0x447832('0x1d97')]({'fields':'id,name,strategy,type','channel':_0x2e4127[_0x447832('0x1134')]===_0x447832('0xce4')?_0x447832('0x21a8'):_0x2e4127[_0x447832('0x1134')],'type':_0x2e4127['direction'],'nolimit':!![]})[_0x447832('0x1964')][_0x447832('0x173b')](function(_0x35ca26){_0x2c606c(_0x35ca26);})[_0x447832('0x103c')](function(_0x15d7b0){_0x177ea6(_0x15d7b0);});});}function _0x3aba4c(_0xbc7190){return _0x4489a9(function(_0x2a4b77,_0x2efabd){const _0x2ce634=a0_0xde5e;if(_0x3c8d8a()[_0x2ce634('0x1a56')](_0xbc7190))_0x2a4b77();else{if(_0x2e4127[_0x2ce634('0x1134')]==='voice'){const _0x334e2b=[],_0x305f65=_0x3c8d8a()[_0x2ce634('0x470')](_0xbc7190,'penalty');for(let _0x514d35=0x0;_0x514d35':'',_0xb35812;}),_0x5d0046[_0x2504bc('0x15c9')]=angular['copy'](_0x5d0046[_0x2504bc('0x5f8')]),_0x5d0046[_0x2504bc('0x52e')][_0x2504bc('0x5f8')]=_0x5d0046[_0x2504bc('0x5f8')],_0x5d0046[_0x2504bc('0x52e')]['items']=_0x3c8d8a()[_0x2504bc('0x1bd3')](_0x5d0046[_0x2504bc('0x203e')],_0x5d0046['dualMultiselectOptions']['selectedItems'],'id'),_0x25bbbc();})['catch'](function(_0x507acf){_0x47d505(_0x507acf);});});}function _0x2e836c(){return _0xb26041(function(_0x4ce35a,_0x5eda35){const _0x392a23=a0_0xde5e;return _0x4946ef[_0x392a23('0xda9')][_0x392a23('0x1d97')]({'sectionId':_0x5d0046['section']['id'],'nolimit':!![]})[_0x392a23('0x1964')]['then'](function(_0x40ca7f){_0x4ce35a(_0x40ca7f);})[_0x392a23('0x103c')](function(_0x198f79){_0x5eda35(_0x198f79);});});}function _0x3c8e5b(){return _0xb26041(function(_0x82c1bc,_0x4b11e9){const _0x399133=a0_0xde5e;return _0x4946ef[_0x399133('0xe10')][_0x399133('0x1903')]({'id':_0x5d0046[_0x399133('0xe10')]['id'],'fields':_0x399133('0x1d65'),'nolimit':!![],'role':_0x399133('0x7b0')})[_0x399133('0x1964')][_0x399133('0x173b')](function(_0x54786c){_0x82c1bc(_0x54786c);})[_0x399133('0x103c')](function(_0x327dd5){_0x4b11e9(_0x327dd5);});});}function _0xa9daf5(){return _0xb26041(function(_0x1bf02a,_0x88a53d){const _0x1b734e=a0_0xde5e;return _0x4946ef[_0x1b734e('0x166f')][_0x1b734e('0x1d97')]({'fields':_0x1b734e('0x1d65'),'nolimit':!![],'role':_0x1b734e('0x7b0')})[_0x1b734e('0x1964')][_0x1b734e('0x173b')](function(_0x5c080c){_0x1bf02a(_0x5c080c);})[_0x1b734e('0x103c')](function(_0x4b4a8f){_0x88a53d(_0x4b4a8f);});});}function _0x406341(_0x742bd5){return _0xb26041(function(_0x6f380b,_0x209289){const _0x13cbc2=a0_0xde5e;_0x3c8d8a()[_0x13cbc2('0x1a56')](_0x742bd5)?_0x6f380b():_0x4946ef[_0x13cbc2('0xe10')][_0x13cbc2('0x1ff1')]({'id':_0x5d0046[_0x13cbc2('0xe10')]['id'],'ids':_0x3c8d8a()[_0x13cbc2('0x8a2')](_0x742bd5,'id')})[_0x13cbc2('0x1964')][_0x13cbc2('0x173b')](function(){_0x6f380b();})[_0x13cbc2('0x103c')](function(_0x57ee36){_0x209289(_0x57ee36);});});}function _0x35bf1a(_0x1e273d){return _0xb26041(function(_0x341bbc,_0x1c27d1){const _0x4a417d=a0_0xde5e;_0x3c8d8a()[_0x4a417d('0x1a56')](_0x1e273d)?_0x341bbc():_0x4946ef[_0x4a417d('0xe10')][_0x4a417d('0x2017')]({'id':_0x5d0046['team']['id'],'ids':_0x3c8d8a()[_0x4a417d('0x8a2')](_0x1e273d,'id')})['$promise']['then'](function(){_0x341bbc();})[_0x4a417d('0x103c')](function(_0x2f088d){_0x1c27d1(_0x2f088d);});});}function _0x3528c0(){const _0x4f3ab7=_0x3fb544,_0x196d3e=_0x3c8d8a()['differenceBy'](_0x5d0046[_0x4f3ab7('0x15c9')],_0x5d0046['selectedItems'],'id'),_0x460b8c=_0x3c8d8a()[_0x4f3ab7('0x1bd3')](_0x5d0046[_0x4f3ab7('0x5f8')],_0x5d0046[_0x4f3ab7('0x15c9')],'id');return _0x35bf1a(_0x196d3e)[_0x4f3ab7('0x173b')](function(){return _0x406341(_0x460b8c);})['then'](function(){const _0x3bc63b=_0x4f3ab7;_0x5d0046[_0x3bc63b('0x277e')]=![],_0x5d0046[_0x3bc63b('0x1493')]=angular[_0x3bc63b('0x2e3')](_0x5d0046[_0x3bc63b('0x203e')]),_0x5d0046[_0x3bc63b('0x15c9')]=angular[_0x3bc63b('0x2e3')](_0x5d0046[_0x3bc63b('0x5f8')]),_0x1a4d17[_0x3bc63b('0xdfe')]({'title':_0x3bc63b('0x23db'),'msg':_0x3bc63b('0x2027')});})[_0x4f3ab7('0x103c')](function(_0x155d63){const _0x3a7ec6=_0x4f3ab7;_0x1a4d17[_0x3a7ec6('0x15aa')]({'title':_0x155d63[_0x3a7ec6('0x276f')]?'API:'+_0x155d63[_0x3a7ec6('0x276f')]+_0x3a7ec6('0x160c')+_0x155d63[_0x3a7ec6('0x2696')]:_0x3a7ec6('0x1f48'),'msg':_0x155d63[_0x3a7ec6('0x276f')]?JSON[_0x3a7ec6('0x100b')](_0x155d63[_0x3a7ec6('0x1e07')]):_0x155d63[_0x3a7ec6('0x1b75')]()});});}function _0x485b25(){const _0x288f6a=_0x3fb544;_0x50d981[_0x288f6a('0x1cf4')]();}}const _0x17e61f=_0x559597,_0x341e18=_0x21a6a1['p']+_0x566993('0x1b7f'),_0x3e7757=_0x21a6a1['p']+_0x566993('0x24e3');_0x36789e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x111f'),'userProfile','userProfileSection',_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x36789e(_0x2bed28,_0x9e6561,_0x9c2d4d,_0x1622c3,_0x550893,_0x2abfe9,_0x137c6d,_0x1c5119,_0x3ad76e,_0x4127d8,_0x35b7d3,_0x67ec3d,_0x436031,_0x2fa8c5,_0x26c2ae,_0x588a52,_0x52d696){const _0xe67833=_0x566993,_0x1b2aef=this;_0x1b2aef['license']=_0x588a52,_0x1b2aef[_0xe67833('0x251')]=_0x52d696,_0x1b2aef[_0xe67833('0x155f')]=_0x26c2ae[_0xe67833('0x14d4')](),_0x1b2aef[_0xe67833('0x111f')]=_0x3ad76e||{'count':0x0,'rows':[]},_0x1b2aef[_0xe67833('0x257b')]=_0x4127d8,_0x1b2aef[_0xe67833('0x170e')]=_0x35b7d3&&_0x35b7d3['count']==0x1?_0x35b7d3[_0xe67833('0x6aa')][0x0]:null,_0x1b2aef['crudPermissions']=_0x26c2ae['parseCrudPermissions'](_0x1b2aef['userProfileSection']?_0x1b2aef[_0xe67833('0x170e')][_0xe67833('0x1dc1')]:null),_0x1b2aef[_0xe67833('0xdf9')]=_0xe67833('0x111f'),_0x1b2aef[_0xe67833('0x14d6')]='',_0x1b2aef[_0xe67833('0x2303')]=null,_0x1b2aef[_0xe67833('0x1cfa')]=[],_0x1b2aef['query']={'fields':_0xe67833('0x2275'),'sort':_0xe67833('0x1769'),'limit':0xa,'page':0x1},_0x1b2aef['editdialog']=_0x190fa3,_0x1b2aef['agentadddialog']=_0x190a8b,_0x1b2aef[_0xe67833('0x1a20')]=_0x1f2b38,_0x1b2aef[_0xe67833('0xdfe')]=_0x6daf29,_0x1b2aef[_0xe67833('0x1592')]=_0x4437a9,_0x1b2aef[_0xe67833('0x25f4')]=_0x48bf7,_0x1b2aef[_0xe67833('0x1d00')]=_0x1270ec,_0x1b2aef['exportSelectedTeams']=_0x426a27,_0x1b2aef[_0xe67833('0x948')]=_0x30e238,_0x1b2aef[_0xe67833('0x1e0f')]=_0x2d2b9e,_0x1b2aef['selectAllTeams']=_0x52ef47;function _0x190fa3(_0x1e0f0f,_0x5a5a36){const _0x529c07=_0xe67833;_0x550893[_0x529c07('0x1cb7')]({'controller':_0x529c07('0x1eff'),'controllerAs':'vm','templateUrl':_0x341e18,'parent':angular[_0x529c07('0xb6d')](_0x2abfe9[_0x529c07('0x1a5')]),'targetEvent':_0x5a5a36,'clickOutsideToClose':!![],'locals':{'team':_0x1e0f0f,'teams':_0x1b2aef['teams'][_0x529c07('0x6aa')],'license':_0x1b2aef[_0x529c07('0x1a29')],'setting':null,'crudPermissions':_0x1b2aef[_0x529c07('0x1dc1')]}});}function _0x190a8b(_0x9c9e71,_0x17dd11){const _0x48249c=_0xe67833;_0x550893[_0x48249c('0x1cb7')]({'controller':_0x48249c('0x263c'),'controllerAs':'vm','templateUrl':_0x3e7757,'parent':angular[_0x48249c('0xb6d')](_0x2abfe9[_0x48249c('0x1a5')]),'targetEvent':_0x17dd11,'clickOutsideToClose':!![],'locals':{'team':_0x9c9e71,'teams':_0x1b2aef[_0x48249c('0x111f')]?_0x1b2aef[_0x48249c('0x111f')][_0x48249c('0x6aa')]:[],'crudPermissions':_0x1b2aef['crudPermissions'],'realtime':![]}});}function _0x1f2b38(_0x39e7d3,_0x392cb6){const _0x143e3b=_0xe67833,_0x3f7866=_0x550893[_0x143e3b('0x1d02')]()[_0x143e3b('0x20d6')](_0x143e3b('0x5bb')+_0x3c8d8a()[_0x143e3b('0x10e')](_0x143e3b('0xe10'))+'?')['htmlContent'](_0x143e3b('0x15b9')+(_0x39e7d3[_0x143e3b('0x10ad')]||'team')+_0x143e3b('0x24be')+_0x143e3b('0xd23'))['ariaLabel'](_0x143e3b('0x166b'))[_0x143e3b('0x21de')](_0x392cb6)['ok']('OK')[_0x143e3b('0x1e1f')](_0x143e3b('0x468'));_0x550893[_0x143e3b('0x1cb7')](_0x3f7866)[_0x143e3b('0x173b')](function(){_0x1270ec(_0x39e7d3);},function(){const _0xf76446=_0x143e3b;console[_0xf76446('0xe37')](_0xf76446('0x468'));});}let _0x453b6f=!![],_0x2d8724=0x1;_0x2bed28[_0xe67833('0x1bdb')](_0xe67833('0x157b'),function(_0x344c4b,_0x135eab){const _0x22aef3=_0xe67833;_0x453b6f?_0x137c6d(function(){_0x453b6f=![];}):(!_0x135eab&&(_0x2d8724=_0x1b2aef[_0x22aef3('0xc49')][_0x22aef3('0x182e')]),_0x344c4b!==_0x135eab&&(_0x1b2aef[_0x22aef3('0xc49')]['page']=0x1),!_0x344c4b&&(_0x1b2aef[_0x22aef3('0xc49')][_0x22aef3('0x182e')]=_0x2d8724),_0x1b2aef[_0x22aef3('0x1592')]());});function _0x6daf29(_0x355041){const _0x1624cd=_0xe67833;_0x1b2aef[_0x1624cd('0x111f')]=_0x355041||{'count':0x0,'rows':[]};}function _0x4437a9(){const _0x2eb856=_0xe67833;_0x1b2aef['query']['offset']=(_0x1b2aef['query'][_0x2eb856('0x182e')]-0x1)*_0x1b2aef[_0x2eb856('0xc49')][_0x2eb856('0x3e')],_0x26c2ae[_0x2eb856('0x1b4e')](_0x2eb856('0x79b'))?_0x1b2aef[_0x2eb856('0x2219')]=_0x67ec3d[_0x2eb856('0xe10')][_0x2eb856('0x1d97')](_0x1b2aef['query'],_0x6daf29)['$promise']:(_0x1b2aef[_0x2eb856('0xc49')]['id']=_0x1b2aef[_0x2eb856('0x257b')]['id'],_0x1b2aef['query'][_0x2eb856('0x17c9')]='Teams',_0x1b2aef[_0x2eb856('0x2219')]=_0x67ec3d[_0x2eb856('0x257b')][_0x2eb856('0x135b')](_0x1b2aef[_0x2eb856('0xc49')],_0x6daf29)[_0x2eb856('0x1964')]);}function _0x48bf7(_0x524279,_0x814b28){const _0x207a11=_0xe67833;_0x550893['show']({'controller':'CreateOrEditTeamDialogController','controllerAs':'vm','templateUrl':_0x341e18,'parent':angular[_0x207a11('0xb6d')](_0x2abfe9[_0x207a11('0x1a5')]),'targetEvent':_0x524279,'clickOutsideToClose':!![],'locals':{'team':_0x814b28,'teams':_0x1b2aef[_0x207a11('0x111f')]['rows'],'license':_0x1b2aef[_0x207a11('0x1a29')],'setting':_0x1b2aef['setting'],'crudPermissions':_0x1b2aef[_0x207a11('0x1dc1')]}});}function _0x1270ec(_0x2f97e2){const _0x48f400=_0xe67833;_0x67ec3d[_0x48f400('0xe10')][_0x48f400('0x15e8')]({'id':_0x2f97e2['id']})[_0x48f400('0x1964')]['then'](function(){const _0x5df2e1=_0x48f400;_0x3c8d8a()[_0x5df2e1('0x1a8b')](_0x1b2aef[_0x5df2e1('0x111f')]['rows'],{'id':_0x2f97e2['id']}),_0x1b2aef['teams'][_0x5df2e1('0x1a2f')]-=0x1,!_0x1b2aef[_0x5df2e1('0x111f')]['rows'][_0x5df2e1('0x543')]&&_0x1b2aef[_0x5df2e1('0x1592')](),_0x2fa8c5['success']({'title':_0x3c8d8a()['startCase'](_0x5df2e1('0x211a'))+'\x20deleted!','msg':_0x2f97e2[_0x5df2e1('0x10ad')]?_0x2f97e2[_0x5df2e1('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x48f400('0x103c')](function(_0x2a5956){const _0x12a305=_0x48f400;if(_0x2a5956[_0x12a305('0x1e07')]&&_0x2a5956[_0x12a305('0x1e07')][_0x12a305('0x1d4a')]&&_0x2a5956[_0x12a305('0x1e07')][_0x12a305('0x1d4a')][_0x12a305('0x543')]){_0x1b2aef['errors']=_0x2a5956[_0x12a305('0x1e07')]['errors']||[{'message':_0x2a5956[_0x12a305('0x1b75')](),'type':_0x12a305('0x13b0')}];for(let _0x103d3d=0x0;_0x103d3d<_0x2a5956[_0x12a305('0x1e07')][_0x12a305('0x1d4a')][_0x12a305('0x543')];_0x103d3d++){_0x2fa8c5[_0x12a305('0x15aa')]({'title':_0x2a5956['data'][_0x12a305('0x1d4a')][_0x103d3d][_0x12a305('0x1810')],'msg':_0x2a5956[_0x12a305('0x1e07')][_0x12a305('0x1d4a')][_0x103d3d]['message']});}}else _0x2fa8c5[_0x12a305('0x15aa')]({'title':_0x2a5956[_0x12a305('0x276f')]?_0x12a305('0x137')+_0x2a5956[_0x12a305('0x276f')]+_0x12a305('0x160c')+_0x2a5956[_0x12a305('0x2696')]:_0x12a305('0x13b0'),'msg':_0x2a5956[_0x12a305('0x1e07')]?JSON[_0x12a305('0x100b')](_0x2a5956['data'][_0x12a305('0x67f')]):_0x2a5956[_0x12a305('0x67f')]||_0x2a5956[_0x12a305('0x1b75')]()});});}function _0x426a27(){const _0x10e71f=_0xe67833,_0x33b5f2=angular[_0x10e71f('0x2e3')](_0x1b2aef[_0x10e71f('0x1cfa')]);return _0x1b2aef[_0x10e71f('0x1cfa')]=[],_0x33b5f2;}function _0x30e238(_0x5a1aa7){const _0x402fdd=_0xe67833,_0x45f0c9=_0x550893[_0x402fdd('0x1d02')]()[_0x402fdd('0x20d6')](_0x402fdd('0x1fca'))[_0x402fdd('0xf8b')](_0x402fdd('0x15b9')+_0x1b2aef[_0x402fdd('0x1cfa')][_0x402fdd('0x543')]+_0x402fdd('0xcb4')+_0x402fdd('0xd23'))[_0x402fdd('0x217')](_0x402fdd('0x1abd'))['targetEvent'](_0x5a1aa7)['ok']('OK')[_0x402fdd('0x1e1f')]('CANCEL');_0x550893[_0x402fdd('0x1cb7')](_0x45f0c9)[_0x402fdd('0x173b')](function(){const _0x41a1a7=_0x402fdd;_0x1b2aef['selectedTeams'][_0x41a1a7('0xa6a')](function(_0x2e77a8){_0x1270ec(_0x2e77a8);}),_0x1b2aef[_0x41a1a7('0x1cfa')]=[];});}function _0x2d2b9e(){const _0x49aa35=_0xe67833;_0x1b2aef[_0x49aa35('0x1cfa')]=[];}function _0x52ef47(){const _0x381ab3=_0xe67833;_0x1b2aef['selectedTeams']=_0x1b2aef[_0x381ab3('0x111f')][_0x381ab3('0x6aa')];}}const _0x1574c5=_0x36789e;_0x50fcce[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x1b80'),_0x566993('0x149c'),_0x566993('0xbd4'),'Auth','license',_0x566993('0x251'),'crudPermissions'];function _0x50fcce(_0x1d3d48,_0x471ff1,_0x12fa29,_0x121db4,_0x44f9b4,_0x46be03,_0x16c24f,_0x886ac0,_0x12ed19,_0x472927,_0x9b159e,_0x465b6a,_0x522cee,_0x5d05f9){const _0x445959=_0x566993,_0xe13a70=this;_0xe13a70[_0x445959('0x155f')]=_0x9b159e[_0x445959('0x14d4')](),_0xe13a70[_0x445959('0x1d4a')]=[],_0xe13a70[_0x445959('0x251')]=_0x522cee,_0xe13a70[_0x445959('0x1a29')]=_0x465b6a,_0xe13a70[_0x445959('0x1dc1')]=_0x5d05f9,_0xe13a70[_0x445959('0xb0')]={},_0xe13a70[_0x445959('0x644')]=_0xe13a70[_0x445959('0x251')]&&_0xe13a70[_0x445959('0x251')][_0x445959('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe13a70[_0x445959('0x20d6')]=_0x445959('0x1d7a'),_0xe13a70[_0x445959('0x149c')]=angular[_0x445959('0x2e3')](_0x12ed19),_0xe13a70[_0x445959('0x1b80')]=_0x886ac0,_0xe13a70[_0x445959('0x1ca5')]=![];!_0xe13a70[_0x445959('0x149c')]&&(_0xe13a70[_0x445959('0x149c')]={'role':'telephone','autointernal':!![],'context':'from-sip'},_0xe13a70[_0x445959('0x20d6')]=_0x445959('0x1218'),_0xe13a70['newTelephone']=!![]);_0xe13a70[_0x445959('0x1415')]=_0x582835,_0xe13a70['saveTelephone']=_0x3f16a1,_0xe13a70[_0x445959('0x1a23')]=_0x3178e7,_0xe13a70['getDateFromString']=_0x2c2be0,_0xe13a70[_0x445959('0x18e2')]=_0x18eb86;function _0x582835(){const _0x5cfe2f=_0x445959;_0xe13a70[_0x5cfe2f('0x1d4a')]=[],_0x472927[_0x5cfe2f('0x166f')][_0x5cfe2f('0x1195')](_0xe13a70[_0x5cfe2f('0x149c')])[_0x5cfe2f('0x1964')]['then'](function(_0xd4b717){const _0x34800c=_0x5cfe2f;_0xe13a70[_0x34800c('0x1b80')][_0x34800c('0x1377')](_0xd4b717[_0x34800c('0xf1f')]()),_0x16c24f[_0x34800c('0xdfe')]({'title':_0x34800c('0x50b'),'msg':_0xe13a70['telephone'][_0x34800c('0x10ad')]?_0xe13a70[_0x34800c('0x149c')][_0x34800c('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x18eb86(_0xd4b717);})['catch'](function(_0x438327){const _0x3004c9=_0x5cfe2f;if(_0x438327[_0x3004c9('0x1e07')]&&_0x438327['data'][_0x3004c9('0x1d4a')]&&_0x438327['data'][_0x3004c9('0x1d4a')]['length']){_0xe13a70[_0x3004c9('0x1d4a')]=_0x438327[_0x3004c9('0x1e07')][_0x3004c9('0x1d4a')]||[{'message':_0x438327[_0x3004c9('0x1b75')](),'type':_0x3004c9('0x27d7')}];for(let _0x5335d3=0x0;_0x5335d3<_0x438327[_0x3004c9('0x1e07')][_0x3004c9('0x1d4a')][_0x3004c9('0x543')];_0x5335d3+=0x1){_0x16c24f[_0x3004c9('0x15aa')]({'title':_0x438327[_0x3004c9('0x1e07')][_0x3004c9('0x1d4a')][_0x5335d3][_0x3004c9('0x1810')],'msg':_0x438327['data']['errors'][_0x5335d3][_0x3004c9('0x67f')]});}}else _0x16c24f['error']({'title':_0x438327[_0x3004c9('0x276f')]?_0x3004c9('0x137')+_0x438327[_0x3004c9('0x276f')]+_0x3004c9('0x160c')+_0x438327[_0x3004c9('0x2696')]:'api.user.save','msg':_0x438327[_0x3004c9('0x1e07')]?JSON[_0x3004c9('0x100b')](_0x438327[_0x3004c9('0x1e07')][_0x3004c9('0x67f')]):_0x438327[_0x3004c9('0x1b75')]()});});}function _0x3f16a1(){const _0x44dd75=_0x445959;_0xe13a70[_0x44dd75('0x1d4a')]=[],_0x472927[_0x44dd75('0x166f')][_0x44dd75('0x1842')]({'id':_0xe13a70[_0x44dd75('0x149c')]['id']},_0xe13a70[_0x44dd75('0x149c')])[_0x44dd75('0x1964')][_0x44dd75('0x173b')](function(_0x1f1046){const _0x2e8d0a=_0x44dd75,_0x2b1eed=_0x3c8d8a()['find'](_0xe13a70[_0x2e8d0a('0x1b80')],{'id':_0x1f1046['id']});_0x2b1eed&&_0x3c8d8a()[_0x2e8d0a('0x9ef')](_0x2b1eed,_0x3c8d8a()[_0x2e8d0a('0x2114')](_0x1f1046['toJSON'](),_0x3c8d8a()[_0x2e8d0a('0x1d3e')](_0x2b1eed))),_0x16c24f['success']({'title':_0x2e8d0a('0x5f6'),'msg':_0xe13a70[_0x2e8d0a('0x149c')][_0x2e8d0a('0x10ad')]?_0xe13a70[_0x2e8d0a('0x149c')][_0x2e8d0a('0x10ad')]+_0x2e8d0a('0x2788'):''}),_0x18eb86(_0x1f1046);})[_0x44dd75('0x103c')](function(_0x47454b){const _0x23d081=_0x44dd75;if(_0x47454b[_0x23d081('0x1e07')]&&_0x47454b[_0x23d081('0x1e07')]['errors']&&_0x47454b['data'][_0x23d081('0x1d4a')][_0x23d081('0x543')]){_0xe13a70[_0x23d081('0x1d4a')]=_0x47454b[_0x23d081('0x1e07')][_0x23d081('0x1d4a')]||[{'message':_0x47454b[_0x23d081('0x1b75')](),'type':_0x23d081('0x2134')}];for(let _0x1a51c5=0x0;_0x1a51c5<_0x47454b[_0x23d081('0x1e07')][_0x23d081('0x1d4a')][_0x23d081('0x543')];_0x1a51c5++){_0x16c24f['error']({'title':_0x47454b[_0x23d081('0x1e07')][_0x23d081('0x1d4a')][_0x1a51c5][_0x23d081('0x1810')],'msg':_0x47454b[_0x23d081('0x1e07')]['errors'][_0x1a51c5][_0x23d081('0x67f')]});}}else _0x16c24f[_0x23d081('0x15aa')]({'title':_0x47454b[_0x23d081('0x276f')]?_0x23d081('0x137')+_0x47454b[_0x23d081('0x276f')]+'\x20-\x20'+_0x47454b[_0x23d081('0x2696')]:_0x23d081('0x2134'),'msg':_0x47454b[_0x23d081('0x1e07')]?JSON[_0x23d081('0x100b')](_0x47454b[_0x23d081('0x1e07')][_0x23d081('0x67f')]):_0x47454b[_0x23d081('0x1b75')]()});});}function _0x3178e7(_0x1873e9){const _0x1d8e10=_0x445959;_0xe13a70[_0x1d8e10('0x1d4a')]=[];const _0x5e3110=_0x121db4[_0x1d8e10('0x1d02')]()[_0x1d8e10('0x20d6')](_0x1d8e10('0x8ef'))[_0x1d8e10('0x732')]('The\x20telephone\x20will\x20be\x20deleted.')[_0x1d8e10('0x217')](_0x1d8e10('0x1614'))['ok']('Delete')['cancel'](_0x1d8e10('0x1d4e'))[_0x1d8e10('0x21de')](_0x1873e9);_0x121db4[_0x1d8e10('0x1cb7')](_0x5e3110)[_0x1d8e10('0x173b')](function(){const _0x4f1652=_0x1d8e10;_0x472927['user'][_0x4f1652('0x15e8')]({'id':_0xe13a70['telephone']['id']})['$promise'][_0x4f1652('0x173b')](function(){const _0x38c197=_0x4f1652;_0x3c8d8a()[_0x38c197('0x1a8b')](_0xe13a70[_0x38c197('0x1b80')],{'id':_0xe13a70[_0x38c197('0x149c')]['id']}),_0x16c24f['success']({'title':_0x38c197('0x1381'),'msg':(_0xe13a70[_0x38c197('0x149c')]['name']||_0x38c197('0x149c'))+_0x38c197('0x25d2')}),_0x18eb86(_0xe13a70['telephone']);})['catch'](function(_0x4680a1){const _0x5ec971=_0x4f1652;if(_0x4680a1[_0x5ec971('0x1e07')]&&_0x4680a1[_0x5ec971('0x1e07')][_0x5ec971('0x1d4a')]&&_0x4680a1[_0x5ec971('0x1e07')]['errors']['length']){_0xe13a70[_0x5ec971('0x1d4a')]=_0x4680a1['data']['errors']||[{'message':_0x4680a1[_0x5ec971('0x1b75')](),'type':_0x5ec971('0x17ec')}];for(let _0x16501c=0x0;_0x16501c<_0x4680a1[_0x5ec971('0x1e07')][_0x5ec971('0x1d4a')][_0x5ec971('0x543')];_0x16501c++){_0x16c24f[_0x5ec971('0x15aa')]({'title':_0x4680a1['data'][_0x5ec971('0x1d4a')][_0x16501c][_0x5ec971('0x1810')],'msg':_0x4680a1[_0x5ec971('0x1e07')]['errors'][_0x16501c][_0x5ec971('0x67f')]});}}else _0x16c24f['error']({'title':_0x4680a1[_0x5ec971('0x276f')]?_0x5ec971('0x137')+_0x4680a1[_0x5ec971('0x276f')]+'\x20-\x20'+_0x4680a1[_0x5ec971('0x2696')]:_0x5ec971('0x17ec'),'msg':_0x4680a1[_0x5ec971('0x1e07')]?JSON[_0x5ec971('0x100b')](_0x4680a1[_0x5ec971('0x1e07')]['message']):_0x4680a1[_0x5ec971('0x67f')]||_0x4680a1[_0x5ec971('0x1b75')]()});});},function(){});}function _0x2c2be0(_0x5d8e25){return _0x5d8e25===null?undefined:new Date(_0x5d8e25);}function _0x18eb86(_0x5499cd){const _0x4729e1=_0x445959;_0x121db4[_0x4729e1('0x1cf4')](_0x5499cd);}}const _0x4a169e=_0x50fcce;_0xa097bc[_0x566993('0x17bb')]=['$scope',_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x149c'),_0x566993('0x251'),'Auth'];function _0xa097bc(_0x57538d,_0x20e6a3,_0x4d9c73,_0x522b42,_0x1b9630,_0x8bd74c,_0x1d1412){const _0x184443=_0x566993,_0x508230=this;_0x508230[_0x184443('0x155f')]=_0x1d1412[_0x184443('0x14d4')](),_0x508230[_0x184443('0x1d4a')]=[],_0x508230[_0x184443('0x251')]=_0x8bd74c,_0x508230[_0x184443('0x644')]=_0x508230[_0x184443('0x251')][_0x184443('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x508230['telephone']=_0x1b9630,_0x508230[_0x184443('0xdb6')]='',_0x508230[_0x184443('0xde8')]='',_0x508230[_0x184443('0x2647')]=_0x3da97f,_0x508230[_0x184443('0x18e2')]=_0x3ddc00,_0x57538d[_0x184443('0x1bdb')](_0x184443('0x2649'),function(_0x64ae95){const _0x2b0b9d=_0x184443;!_0x3c8d8a()[_0x2b0b9d('0x7d5')](_0x508230['oldPassword'])&&(_0x64ae95===_0x508230['oldPassword']?_0x57538d['telephoneForm']['password'][_0x2b0b9d('0x1869')](_0x2b0b9d('0x137f'),![]):_0x57538d['telephoneForm'][_0x2b0b9d('0xdb6')][_0x2b0b9d('0x1869')]('oldPasswordMatch',!![]));});function _0x3da97f(){const _0x5a534f=_0x184443;_0x508230['errors']=[];const _0x484f99={'id':_0x508230[_0x5a534f('0x149c')]['id'],'newPassword':_0x508230[_0x5a534f('0xdb6')]};_0x508230[_0x5a534f('0x155f')]['id']==_0x508230['telephone']['id']&&(_0x484f99[_0x5a534f('0xde8')]=_0x508230[_0x5a534f('0xde8')]),_0x522b42['user'][_0x5a534f('0x18a7')](_0x484f99)[_0x5a534f('0x1964')]['then'](function(){const _0x47d18f=_0x5a534f;_0x4d9c73[_0x47d18f('0xdfe')]({'title':_0x47d18f('0xd05')}),_0x3ddc00();})[_0x5a534f('0x103c')](function(_0x1d3917){const _0x35bd71=_0x5a534f;_0x4d9c73['error']({'title':_0x1d3917[_0x35bd71('0x276f')]?_0x35bd71('0x137')+_0x1d3917[_0x35bd71('0x276f')]+_0x35bd71('0x160c')+_0x1d3917[_0x35bd71('0x2696')]:_0x35bd71('0x18e0'),'msg':_0x1d3917[_0x35bd71('0x1e07')]?JSON[_0x35bd71('0x100b')](_0x1d3917[_0x35bd71('0x1e07')][_0x35bd71('0x67f')]):_0x1d3917['toString']()}),_0x508230[_0x35bd71('0x1d4a')]=_0x1d3917[_0x35bd71('0x1e07')][_0x35bd71('0x1d4a')]||[{'message':_0x1d3917['toString'](),'type':_0x35bd71('0x83b')}];});}function _0x3ddc00(){const _0x4eb9d5=_0x184443;_0x20e6a3[_0x4eb9d5('0x1cf4')]();}}const _0x151d5f=_0xa097bc,_0xd4dd91=_0x21a6a1['p']+_0x566993('0xfc8');_0x2b817a[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x149c'),_0x566993('0x170e')];function _0x2b817a(_0x2c492b,_0x4ddf9f,_0x499a0b,_0x1ebb42,_0x41def4,_0x22afeb,_0x240d00,_0x34aeca,_0x5dbc08,_0x23c48d,_0x4d7c7e,_0x3ee185){const _0x54cd2d=_0x566993,_0x55f08f=this;_0x55f08f[_0x54cd2d('0x155f')]=_0x23c48d[_0x54cd2d('0x14d4')](),_0x55f08f[_0x54cd2d('0x1a29')]=_0x22afeb,_0x55f08f[_0x54cd2d('0x251')]=_0x240d00,_0x55f08f[_0x54cd2d('0x644')]=_0x55f08f['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x55f08f[_0x54cd2d('0x614')]=_0x4ddf9f[_0x54cd2d('0x375')]()+'://'+_0x4ddf9f[_0x54cd2d('0x4d1')](),_0x55f08f[_0x54cd2d('0x149c')]=_0x4d7c7e||_0x2c492b[_0x54cd2d('0x197a')][_0x54cd2d('0x149c')]||{},_0x55f08f[_0x54cd2d('0x170e')]=_0x3ee185&&_0x3ee185['count']==0x1?_0x3ee185['rows'][0x0]:null,_0x55f08f[_0x54cd2d('0x1dc1')]=_0x23c48d[_0x54cd2d('0xde6')](_0x55f08f[_0x54cd2d('0x170e')]?_0x55f08f[_0x54cd2d('0x170e')]['crudPermissions']:null),_0x55f08f['hasModulePermissions']={},_0x55f08f[_0x54cd2d('0xd5f')]=_0x2c492b[_0x54cd2d('0x197a')][_0x54cd2d('0x1e66')]||0x0,_0x55f08f['changepassworddialog']=_0x136beb,_0x55f08f['alert']=_0x5dbc08[_0x54cd2d('0x2787')],_0x55f08f[_0x54cd2d('0xbd1')]=_0x3f1edb,_0x55f08f[_0x54cd2d('0x1dc6')]=_0x3f71e0,_0x23c48d[_0x54cd2d('0x1b4e')]('admin')?_0x34aeca['voiceContext'][_0x54cd2d('0x1d97')]({'fields':'id,name','sort':'name'})['$promise']['then'](function(_0x183559){_0x55f08f['contexts']=_0x183559['rows']||[];})[_0x54cd2d('0x103c')](function(_0xb53562){const _0x1f1f3f=_0x54cd2d;_0x5dbc08['error']({'title':_0xb53562[_0x1f1f3f('0x276f')]?'API:'+_0xb53562[_0x1f1f3f('0x276f')]+_0x1f1f3f('0x160c')+_0xb53562[_0x1f1f3f('0x2696')]:'SYSTEM:GET_CONTEXTS','msg':_0xb53562[_0x1f1f3f('0x1e07')]?JSON['stringify'](_0xb53562[_0x1f1f3f('0x1e07')]):_0xb53562[_0x1f1f3f('0x1b75')]()});}):_0x34aeca[_0x54cd2d('0xf01')][_0x54cd2d('0x1d97')]({'fields':'id,name','sort':_0x54cd2d('0x10ad')})[_0x54cd2d('0x1964')][_0x54cd2d('0x173b')](function(_0x186dc0){const _0x5c5f4e=_0x54cd2d;_0x55f08f[_0x5c5f4e('0x22a9')]=_0x186dc0[_0x5c5f4e('0x6aa')]||[];})[_0x54cd2d('0x173b')](function(){const _0x40f4e4=_0x54cd2d;return _0x34aeca['userProfileSection'][_0x40f4e4('0x1d97')]({'userProfileId':_0x55f08f[_0x40f4e4('0x155f')][_0x40f4e4('0x1946')],'sectionId':0x195})[_0x40f4e4('0x1964')];})[_0x54cd2d('0x173b')](function(_0x363a25){const _0x1f040b=_0x54cd2d,_0x3dd6e2=_0x363a25&&_0x363a25['rows']?_0x363a25[_0x1f040b('0x6aa')][0x0]:null;if(!_0x3dd6e2)return _0x34aeca[_0x1f040b('0xf01')]['get']({'fields':_0x1f040b('0xd52'),'sort':'name','defaultEntry':0x1})[_0x1f040b('0x1964')]['then'](function(_0x3b8445){const _0x28db4e=_0x1f040b;_0x55f08f[_0x28db4e('0x22a9')]=_0x3b8445[_0x28db4e('0x6aa')]||[];});else{if(!_0x3dd6e2[_0x1f040b('0x273e')])return _0x34aeca[_0x1f040b('0xda9')][_0x1f040b('0x1d97')]({'sectionId':_0x3dd6e2['id']})[_0x1f040b('0x1964')][_0x1f040b('0x173b')](function(_0x56e564){const _0x473932=_0x1f040b,_0x3d6679=_0x3c8d8a()[_0x473932('0x8a2')](_0x56e564[_0x473932('0x6aa')],function(_0xff8db9){const _0x468218=_0x473932;return _0x3c8d8a()['find'](_0x55f08f[_0x468218('0x22a9')],{'id':_0xff8db9['resourceId']});});let _0x56a7c3=null;_0x55f08f['telephone']&&(_0x56a7c3=_0x3c8d8a()[_0x473932('0x18ab')](_0x55f08f[_0x473932('0x22a9')],{'name':_0x55f08f[_0x473932('0x149c')][_0x473932('0x2b9')]}));if(_0x56a7c3&&!_0x3c8d8a()[_0x473932('0x1ec')](_0x3d6679,['id',_0x56a7c3['id']])){const _0x3f042a=_0x3c8d8a()[_0x473932('0x18ab')](_0x55f08f['contexts'],{'id':_0x56a7c3['id']});_0x3f042a['canSelect']=![],_0x3d6679[_0x473932('0x18bb')](_0x3f042a);}_0x55f08f[_0x473932('0x22a9')]=_0x3d6679;});}})[_0x54cd2d('0x103c')](function(_0x209aa8){const _0x1b5602=_0x54cd2d;_0x5dbc08[_0x1b5602('0x15aa')]({'title':_0x209aa8['status']?_0x1b5602('0x137')+_0x209aa8[_0x1b5602('0x276f')]+_0x1b5602('0x160c')+_0x209aa8[_0x1b5602('0x2696')]:_0x1b5602('0x18fd'),'msg':_0x209aa8[_0x1b5602('0x1e07')]?JSON['stringify'](_0x209aa8[_0x1b5602('0x1e07')]):_0x209aa8[_0x1b5602('0x1b75')]()});});function _0x136beb(_0xcecf8e,_0x26f140){const _0x3fd9d6=_0x54cd2d;_0x499a0b['show']({'controller':'TelephonechangepasswordController','controllerAs':'vm','templateUrl':_0xd4dd91,'parent':angular[_0x3fd9d6('0xb6d')](_0x1ebb42[_0x3fd9d6('0x1a5')]),'targetEvent':_0x26f140,'clickOutsideToClose':!![],'locals':{'telephone':_0xcecf8e,'setting':_0x240d00,'telephones':_0x55f08f['telephones']?_0x55f08f[_0x3fd9d6('0x1b80')][_0x3fd9d6('0x6aa')]:[],'crudPermissions':_0x55f08f[_0x3fd9d6('0x1dc1')]}});}function _0x3f1edb(){const _0x29bf2c=_0x54cd2d;_0x2c492b['go'](_0x29bf2c('0x1ce2'),{},{'reload':_0x29bf2c('0x1ce2')});}function _0x3f71e0(){const _0x23124c=_0x54cd2d;_0x34aeca[_0x23124c('0x166f')]['update']({'id':_0x55f08f['telephone']['id']},_0x55f08f[_0x23124c('0x149c')])['$promise'][_0x23124c('0x173b')](function(){const _0x5a36be=_0x23124c;_0x5dbc08['success']({'title':_0x5a36be('0x249e'),'msg':_0x55f08f[_0x5a36be('0x149c')][_0x5a36be('0x10ad')]?_0x55f08f[_0x5a36be('0x149c')][_0x5a36be('0x10ad')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x26438d){const _0x32048c=_0x23124c;_0x5dbc08[_0x32048c('0x15aa')]({'title':_0x26438d[_0x32048c('0x276f')]?_0x32048c('0x137')+_0x26438d[_0x32048c('0x276f')]+_0x32048c('0x160c')+_0x26438d[_0x32048c('0x2696')]:_0x32048c('0x1ccd'),'msg':_0x26438d['data']?JSON['stringify'](_0x26438d[_0x32048c('0x1e07')]):_0x26438d[_0x32048c('0x1b75')]()});});}}const _0x37d272=_0x2b817a,_0x14084f=_0x21a6a1['p']+'src/js/modules/main/apps/staff/views/telephones/create/dialog.html/dialog.html';_0xe68caf[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x1b80'),_0x566993('0x257b'),'userProfileSection',_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0xe68caf(_0x2c91e3,_0x5a693e,_0x1e12e8,_0x731e8a,_0x1d5b1f,_0x45e226,_0x12196a,_0x14cab7,_0xb893b5,_0x280906,_0x56baf9,_0x52caab,_0x5ea964,_0x2bfdbc,_0x9ec737,_0x47a760,_0x3631e0){const _0x1c7e9c=_0x566993,_0x131ee9=this;_0x131ee9[_0x1c7e9c('0x1a29')]=_0x47a760,_0x131ee9['setting']=_0x3631e0,_0x131ee9[_0x1c7e9c('0x155f')]=_0x9ec737['getCurrentUser'](),_0x131ee9[_0x1c7e9c('0x1b80')]=_0xb893b5||{'count':0x0,'rows':[]},_0x131ee9[_0x1c7e9c('0x257b')]=_0x280906,_0x131ee9[_0x1c7e9c('0x170e')]=_0x56baf9&&_0x56baf9['count']==0x1?_0x56baf9[_0x1c7e9c('0x6aa')][0x0]:null,_0x131ee9['crudPermissions']=_0x9ec737['parseCrudPermissions'](_0x131ee9[_0x1c7e9c('0x170e')]?_0x131ee9[_0x1c7e9c('0x170e')][_0x1c7e9c('0x1dc1')]:null),_0x131ee9[_0x1c7e9c('0xdf9')]=_0x1c7e9c('0x1b80'),_0x131ee9[_0x1c7e9c('0x14d6')]='',_0x131ee9['listOrderAsc']=null,_0x131ee9[_0x1c7e9c('0x1b6a')]=[],_0x131ee9[_0x1c7e9c('0xc49')]={'fields':_0x1c7e9c('0x253d'),'role':_0x1c7e9c('0x149c'),'sort':_0x1c7e9c('0x1769'),'limit':0xa,'page':0x1},_0x131ee9['arraytransport']=_0x3c8d8a()[_0x1c7e9c('0x128')]([{'option':_0x1c7e9c('0x3e2'),'value':_0x1c7e9c('0x8d0')},{'option':_0x1c7e9c('0x1923'),'value':_0x1c7e9c('0x1373')},{'option':'ws','value':'\x27ws\x27'},{'option':_0x1c7e9c('0x197b'),'value':'\x27wss\x27'},{'option':_0x1c7e9c('0x11ea'),'value':_0x1c7e9c('0x1889')}],function(_0x4c5d3a){const _0x2b8c75=_0x1c7e9c;return _0x3c8d8a()[_0x2b8c75('0x166c')](_0x4c5d3a[_0x2b8c75('0xa7b')],new RegExp('\x27','g'),'');}),_0x131ee9['arraynat']=_0x3c8d8a()['keyBy']([{'option':_0x1c7e9c('0x339'),'value':_0x1c7e9c('0xa9f')},{'option':_0x1c7e9c('0x281b'),'value':_0x1c7e9c('0x1043')},{'option':_0x1c7e9c('0x1d41'),'value':_0x1c7e9c('0x26ec')},{'option':'no','value':_0x1c7e9c('0x13d1')},{'option':_0x1c7e9c('0x1633'),'value':_0x1c7e9c('0x885')},{'option':_0x1c7e9c('0x26e9'),'value':_0x1c7e9c('0x41a')}],function(_0x176091){const _0x58937f=_0x1c7e9c;return _0x3c8d8a()['replace'](_0x176091[_0x58937f('0xa7b')],new RegExp('\x27','g'),'');}),_0x131ee9[_0x1c7e9c('0x1be4')]=_0x3c8d8a()[_0x1c7e9c('0x128')]([{'option':_0x1c7e9c('0x1710'),'value':_0x1c7e9c('0xc61')},{'option':_0x1c7e9c('0xf90'),'value':_0x1c7e9c('0x1179')},{'option':_0x1c7e9c('0x2aa'),'value':'\x27gsm\x27'},{'option':_0x1c7e9c('0x12ac'),'value':_0x1c7e9c('0x1e48')},{'option':'g729','value':_0x1c7e9c('0x1b24')},{'option':'opus','value':_0x1c7e9c('0x2321')},{'option':_0x1c7e9c('0xbe8'),'value':_0x1c7e9c('0xb88')}],function(_0x56ef94){const _0x1e6d13=_0x1c7e9c;return _0x3c8d8a()['replace'](_0x56ef94[_0x1e6d13('0xa7b')],new RegExp('\x27','g'),'');}),_0x131ee9['arrayvideosupport']=_0x3c8d8a()[_0x1c7e9c('0x128')]([{'option':'Yes','value':_0x1c7e9c('0x26ec')},{'option':'No','value':_0x1c7e9c('0x13d1')},{'option':_0x1c7e9c('0x2322'),'value':'\x27always\x27'}],function(_0x15c8a8){const _0x194917=_0x1c7e9c;return _0x3c8d8a()[_0x194917('0x166c')](_0x15c8a8['value'],new RegExp('\x27','g'),'');}),_0x131ee9[_0x1c7e9c('0x1539')]=_0x3c8d8a()['keyBy']([{'option':_0x1c7e9c('0x1d41'),'value':'\x27yes\x27'},{'option':'no','value':_0x1c7e9c('0x13d1')}],function(_0x12c69f){const _0xccc47d=_0x1c7e9c;return _0x3c8d8a()[_0xccc47d('0x166c')](_0x12c69f[_0xccc47d('0xa7b')],new RegExp('\x27','g'),'');}),_0x131ee9[_0x1c7e9c('0x222e')]=_0x2ddef4,_0x131ee9[_0x1c7e9c('0x1a20')]=_0x149b77,_0x131ee9[_0x1c7e9c('0xdfe')]=_0x1a057a,_0x131ee9[_0x1c7e9c('0xda5')]=_0x597160,_0x131ee9[_0x1c7e9c('0x156a')]=_0x58b593,_0x131ee9[_0x1c7e9c('0x1a23')]=_0x15a1c0,_0x131ee9['exportSelectedTelephones']=_0x327b5d,_0x131ee9[_0x1c7e9c('0x185a')]=_0x254780,_0x131ee9[_0x1c7e9c('0x1685')]=_0x42963d,_0x131ee9[_0x1c7e9c('0x1aef')]=_0x1e9858;function _0x2ddef4(_0xe54cb8){const _0x46bc55=_0x1c7e9c;_0x1e12e8['go'](_0x46bc55('0x931'),{'id':_0xe54cb8['id'],'telephone':_0xe54cb8,'crudPermissions':_0x131ee9[_0x46bc55('0x1dc1')]});}function _0x149b77(_0x3f1b98,_0x562646){const _0x17acea=_0x1c7e9c,_0x467d24=_0x1d5b1f[_0x17acea('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x17acea('0x10e')](_0x17acea('0x149c'))+'?')[_0x17acea('0xf8b')](''+(_0x3f1b98[_0x17acea('0x10ad')]||_0x17acea('0x149c'))+_0x17acea('0x24be')+'\x20will\x20be\x20deleted.')[_0x17acea('0x217')](_0x17acea('0xcec'))[_0x17acea('0x21de')](_0x562646)['ok']('OK')[_0x17acea('0x1e1f')](_0x17acea('0x468'));_0x1d5b1f['show'](_0x467d24)[_0x17acea('0x173b')](function(){_0x15a1c0(_0x3f1b98);},function(){const _0x15c6af=_0x17acea;console[_0x15c6af('0xe37')](_0x15c6af('0x468'));});}let _0x3d4c77=!![],_0x5a0a9b=0x1;_0x2c91e3[_0x1c7e9c('0x1bdb')](_0x1c7e9c('0x157b'),function(_0x352201,_0x3e9c6c){const _0x322594=_0x1c7e9c;_0x3d4c77?_0x12196a(function(){_0x3d4c77=![];}):(!_0x3e9c6c&&(_0x5a0a9b=_0x131ee9['query']['page']),_0x352201!==_0x3e9c6c&&(_0x131ee9['query']['page']=0x1),!_0x352201&&(_0x131ee9[_0x322594('0xc49')][_0x322594('0x182e')]=_0x5a0a9b),_0x131ee9[_0x322594('0xda5')]());});function _0x1a057a(_0x11b252){const _0x428df4=_0x1c7e9c;_0x131ee9[_0x428df4('0x1b80')]=_0x11b252||{'count':0x0,'rows':[]};}function _0x597160(){const _0x5160d9=_0x1c7e9c;_0x131ee9[_0x5160d9('0xc49')]['offset']=(_0x131ee9[_0x5160d9('0xc49')][_0x5160d9('0x182e')]-0x1)*_0x131ee9['query']['limit'],_0x9ec737[_0x5160d9('0x1b4e')](_0x5160d9('0x79b'))?_0x131ee9[_0x5160d9('0x2219')]=_0x52caab[_0x5160d9('0x166f')][_0x5160d9('0x1d97')](_0x131ee9[_0x5160d9('0xc49')],_0x1a057a)[_0x5160d9('0x1964')]:(_0x131ee9[_0x5160d9('0xc49')]['id']=_0x131ee9[_0x5160d9('0x257b')]['id'],_0x131ee9[_0x5160d9('0xc49')][_0x5160d9('0x17c9')]=_0x5160d9('0x76'),_0x131ee9[_0x5160d9('0x2219')]=_0x52caab[_0x5160d9('0x257b')][_0x5160d9('0x135b')](_0x131ee9[_0x5160d9('0xc49')],_0x1a057a)[_0x5160d9('0x1964')]);}function _0x58b593(_0x9e06c3,_0x93946d){const _0xbf03e2=_0x1c7e9c;_0x1d5b1f[_0xbf03e2('0x1cb7')]({'controller':_0xbf03e2('0x873'),'controllerAs':'vm','templateUrl':_0x14084f,'parent':angular[_0xbf03e2('0xb6d')](_0x45e226[_0xbf03e2('0x1a5')]),'targetEvent':_0x9e06c3,'clickOutsideToClose':!![],'locals':{'telephone':_0x93946d,'telephones':_0x131ee9[_0xbf03e2('0x1b80')]['rows'],'license':_0x131ee9['license'],'setting':_0x131ee9[_0xbf03e2('0x251')],'crudPermissions':_0x131ee9['crudPermissions']}});}function _0x15a1c0(_0x4ae70f){const _0x2731d0=_0x1c7e9c;_0x52caab[_0x2731d0('0x166f')][_0x2731d0('0x15e8')]({'id':_0x4ae70f['id']})[_0x2731d0('0x1964')][_0x2731d0('0x173b')](function(){const _0xccec6f=_0x2731d0;_0x3c8d8a()[_0xccec6f('0x1a8b')](_0x131ee9['telephones'][_0xccec6f('0x6aa')],{'id':_0x4ae70f['id']}),_0x131ee9[_0xccec6f('0x1b80')]['count']-=0x1,!_0x131ee9['telephones'][_0xccec6f('0x6aa')][_0xccec6f('0x543')]&&_0x131ee9['getTelephones'](),_0x2bfdbc[_0xccec6f('0xdfe')]({'title':_0x3c8d8a()[_0xccec6f('0x10e')]('Telephone')+_0xccec6f('0x1c5e'),'msg':_0x4ae70f[_0xccec6f('0x10ad')]?_0x4ae70f[_0xccec6f('0x10ad')]+_0xccec6f('0x25d2'):''});})['catch'](function(_0x3699b5){const _0x12281f=_0x2731d0;if(_0x3699b5[_0x12281f('0x1e07')]&&_0x3699b5[_0x12281f('0x1e07')][_0x12281f('0x1d4a')]&&_0x3699b5['data'][_0x12281f('0x1d4a')][_0x12281f('0x543')]){_0x131ee9['errors']=_0x3699b5[_0x12281f('0x1e07')][_0x12281f('0x1d4a')]||[{'message':_0x3699b5[_0x12281f('0x1b75')](),'type':_0x12281f('0x932')}];for(let _0x33b10e=0x0;_0x33b10e<_0x3699b5['data']['errors'][_0x12281f('0x543')];_0x33b10e++){_0x2bfdbc[_0x12281f('0x15aa')]({'title':_0x3699b5[_0x12281f('0x1e07')][_0x12281f('0x1d4a')][_0x33b10e][_0x12281f('0x1810')],'msg':_0x3699b5[_0x12281f('0x1e07')][_0x12281f('0x1d4a')][_0x33b10e]['message']});}}else _0x2bfdbc[_0x12281f('0x15aa')]({'title':_0x3699b5['status']?_0x12281f('0x137')+_0x3699b5[_0x12281f('0x276f')]+_0x12281f('0x160c')+_0x3699b5[_0x12281f('0x2696')]:_0x12281f('0x932'),'msg':_0x3699b5[_0x12281f('0x1e07')]?JSON[_0x12281f('0x100b')](_0x3699b5[_0x12281f('0x1e07')][_0x12281f('0x67f')]):_0x3699b5['message']||_0x3699b5[_0x12281f('0x1b75')]()});});}function _0x327b5d(){const _0x16b70c=_0x1c7e9c,_0x4ce8bd=angular[_0x16b70c('0x2e3')](_0x131ee9[_0x16b70c('0x1b6a')]);return _0x131ee9[_0x16b70c('0x1b6a')]=[],_0x4ce8bd;}function _0x254780(_0x31cacd){const _0x557a24=_0x1c7e9c,_0x2de3df=_0x1d5b1f[_0x557a24('0x1d02')]()[_0x557a24('0x20d6')](_0x557a24('0xfdc'))['htmlContent'](_0x557a24('0x15b9')+_0x131ee9[_0x557a24('0x1b6a')][_0x557a24('0x543')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x557a24('0x217')](_0x557a24('0x20e2'))[_0x557a24('0x21de')](_0x31cacd)['ok']('OK')[_0x557a24('0x1e1f')](_0x557a24('0x468'));_0x1d5b1f[_0x557a24('0x1cb7')](_0x2de3df)['then'](function(){const _0x48e82f=_0x557a24;_0x131ee9[_0x48e82f('0x1b6a')][_0x48e82f('0xa6a')](function(_0x1a1da1){_0x15a1c0(_0x1a1da1);}),_0x131ee9[_0x48e82f('0x1b6a')]=[];});}function _0x42963d(){const _0x5f3fbb=_0x1c7e9c;_0x131ee9[_0x5f3fbb('0x1b6a')]=[];}function _0x1e9858(){const _0x2fcb97=_0x1c7e9c;_0x131ee9[_0x2fcb97('0x1b6a')]=_0x131ee9[_0x2fcb97('0x1b80')][_0x2fcb97('0x6aa')];}}const _0x3387ea=_0xe68caf;_0xc3283e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1ed5'),_0x566993('0x257b'),_0x566993('0xbd4'),'Auth',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0xc3283e(_0x4b7b3d,_0x11c64d,_0x1bb53f,_0x15d103,_0x284c87,_0x508c49,_0x54f10,_0x475ca5,_0x34c92b,_0x50ba32,_0x52c61d,_0x13a73,_0x4076f3,_0x462570){const _0x214085=_0x566993,_0x551ba4=this;_0x551ba4[_0x214085('0x155f')]=_0x52c61d['getCurrentUser'](),_0x551ba4['errors']=[],_0x551ba4[_0x214085('0x251')]=_0x4076f3,_0x551ba4[_0x214085('0x1a29')]=_0x13a73,_0x551ba4[_0x214085('0x1dc1')]=_0x462570,_0x551ba4[_0x214085('0xb0')]={},_0x551ba4['passwordPattern']=_0x551ba4['setting']&&_0x551ba4[_0x214085('0x251')][_0x214085('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x551ba4['title']='STAFF.EDIT_USERPROFILE',_0x551ba4[_0x214085('0x257b')]=angular['copy'](_0x34c92b),_0x551ba4['userProfiles']=_0x475ca5,_0x551ba4[_0x214085('0xff7')]=![];!_0x551ba4[_0x214085('0x257b')]&&(_0x551ba4[_0x214085('0x257b')]={'crudPermissions':['r']},_0x551ba4[_0x214085('0x20d6')]=_0x214085('0x1d2f'),_0x551ba4[_0x214085('0xff7')]=!![]);_0x551ba4[_0x214085('0x44b')]=_0x33f7e5,_0x551ba4[_0x214085('0x1b93')]=_0x43346c,_0x551ba4['deleteUserProfile']=_0x39b7be,_0x551ba4[_0x214085('0x11ae')]=_0x1804c2,_0x551ba4[_0x214085('0x18e2')]=_0x45b443;function _0x33f7e5(){const _0x1f532f=_0x214085;_0x551ba4[_0x1f532f('0x1d4a')]=[],_0x50ba32['userProfile'][_0x1f532f('0x1195')](_0x551ba4[_0x1f532f('0x257b')])['$promise'][_0x1f532f('0x173b')](function(_0x735ae3){const _0x3d8fd8=_0x1f532f;_0x4d3741(_0x735ae3),_0x551ba4[_0x3d8fd8('0x1ed5')][_0x3d8fd8('0x1377')](_0x735ae3[_0x3d8fd8('0xf1f')]()),_0x54f10[_0x3d8fd8('0xdfe')]({'title':_0x3d8fd8('0x1ab2'),'msg':_0x551ba4[_0x3d8fd8('0x257b')]['name']?_0x551ba4[_0x3d8fd8('0x257b')][_0x3d8fd8('0x10ad')]+_0x3d8fd8('0x209a'):''}),_0x45b443(_0x735ae3);})['catch'](function(_0x84dcd9){const _0x560b18=_0x1f532f;if(_0x84dcd9[_0x560b18('0x1e07')]&&_0x84dcd9[_0x560b18('0x1e07')]['errors']&&_0x84dcd9[_0x560b18('0x1e07')][_0x560b18('0x1d4a')][_0x560b18('0x543')]){_0x551ba4[_0x560b18('0x1d4a')]=_0x84dcd9['data'][_0x560b18('0x1d4a')]||[{'message':_0x84dcd9[_0x560b18('0x1b75')](),'type':_0x560b18('0x1ee1')}];for(let _0x53f2d8=0x0;_0x53f2d8<_0x84dcd9[_0x560b18('0x1e07')][_0x560b18('0x1d4a')][_0x560b18('0x543')];_0x53f2d8+=0x1){_0x54f10[_0x560b18('0x15aa')]({'title':_0x84dcd9[_0x560b18('0x1e07')][_0x560b18('0x1d4a')][_0x53f2d8]['type'],'msg':_0x84dcd9['data'][_0x560b18('0x1d4a')][_0x53f2d8]['message']});}}else _0x54f10[_0x560b18('0x15aa')]({'title':_0x84dcd9[_0x560b18('0x276f')]?_0x560b18('0x137')+_0x84dcd9[_0x560b18('0x276f')]+'\x20-\x20'+_0x84dcd9['statusText']:_0x560b18('0x1ee1'),'msg':_0x84dcd9[_0x560b18('0x1e07')]?JSON[_0x560b18('0x100b')](_0x84dcd9[_0x560b18('0x1e07')][_0x560b18('0x67f')]):_0x84dcd9[_0x560b18('0x1b75')]()});});}function _0x43346c(){const _0x11e3a6=_0x214085;_0x551ba4[_0x11e3a6('0x1d4a')]=[],_0x50ba32['userProfile'][_0x11e3a6('0x1842')]({'id':_0x551ba4['userProfile']['id']},_0x551ba4[_0x11e3a6('0x257b')])[_0x11e3a6('0x1964')][_0x11e3a6('0x173b')](function(_0x3d2a82){const _0x3ef68b=_0x11e3a6,_0x2efeeb=_0x3c8d8a()[_0x3ef68b('0x18ab')](_0x551ba4[_0x3ef68b('0x1ed5')],{'id':_0x3d2a82['id']});_0x2efeeb&&_0x3c8d8a()[_0x3ef68b('0x9ef')](_0x2efeeb,_0x3c8d8a()[_0x3ef68b('0x2114')](_0x3d2a82[_0x3ef68b('0xf1f')](),_0x3c8d8a()[_0x3ef68b('0x1d3e')](_0x2efeeb))),_0x54f10['success']({'title':_0x3ef68b('0x92c'),'msg':_0x551ba4['userProfile'][_0x3ef68b('0x10ad')]?_0x551ba4['userProfile'][_0x3ef68b('0x10ad')]+_0x3ef68b('0x2788'):''}),_0x45b443(_0x3d2a82);})[_0x11e3a6('0x103c')](function(_0x4c3ce8){const _0xa27893=_0x11e3a6;if(_0x4c3ce8[_0xa27893('0x1e07')]&&_0x4c3ce8['data'][_0xa27893('0x1d4a')]&&_0x4c3ce8['data']['errors'][_0xa27893('0x543')]){_0x551ba4[_0xa27893('0x1d4a')]=_0x4c3ce8['data'][_0xa27893('0x1d4a')]||[{'message':_0x4c3ce8[_0xa27893('0x1b75')](),'type':'api.userProfile.update'}];for(let _0xe64c7f=0x0;_0xe64c7f<_0x4c3ce8[_0xa27893('0x1e07')][_0xa27893('0x1d4a')][_0xa27893('0x543')];_0xe64c7f++){_0x54f10[_0xa27893('0x15aa')]({'title':_0x4c3ce8['data'][_0xa27893('0x1d4a')][_0xe64c7f][_0xa27893('0x1810')],'msg':_0x4c3ce8[_0xa27893('0x1e07')]['errors'][_0xe64c7f][_0xa27893('0x67f')]});}}else _0x54f10[_0xa27893('0x15aa')]({'title':_0x4c3ce8['status']?_0xa27893('0x137')+_0x4c3ce8['status']+_0xa27893('0x160c')+_0x4c3ce8['statusText']:_0xa27893('0x12d9'),'msg':_0x4c3ce8[_0xa27893('0x1e07')]?JSON[_0xa27893('0x100b')](_0x4c3ce8[_0xa27893('0x1e07')]['message']):_0x4c3ce8[_0xa27893('0x1b75')]()});});}function _0x39b7be(_0x335800){const _0x156aec=_0x214085;_0x551ba4['errors']=[];const _0xcba1db=_0x15d103[_0x156aec('0x1d02')]()[_0x156aec('0x20d6')](_0x156aec('0x8ef'))[_0x156aec('0x732')](_0x156aec('0x141a'))[_0x156aec('0x217')]('Delete\x20UserProfile')['ok'](_0x156aec('0x2373'))[_0x156aec('0x1e1f')](_0x156aec('0x1d4e'))[_0x156aec('0x21de')](_0x335800);_0x15d103[_0x156aec('0x1cb7')](_0xcba1db)['then'](function(){const _0x3dca42=_0x156aec;_0x50ba32['userProfile'][_0x3dca42('0x15e8')]({'id':_0x551ba4['userProfile']['id']})[_0x3dca42('0x1964')]['then'](function(){const _0x19d9b5=_0x3dca42;_0x3c8d8a()[_0x19d9b5('0x1a8b')](_0x551ba4['userProfiles'],{'id':_0x551ba4['userProfile']['id']}),_0x54f10['success']({'title':_0x19d9b5('0x12e8'),'msg':(_0x551ba4[_0x19d9b5('0x257b')][_0x19d9b5('0x10ad')]||_0x19d9b5('0x257b'))+_0x19d9b5('0x25d2')}),_0x45b443(_0x551ba4[_0x19d9b5('0x257b')]);})['catch'](function(_0x3cf1e4){const _0x3c0dc7=_0x3dca42;if(_0x3cf1e4['data']&&_0x3cf1e4['data']['errors']&&_0x3cf1e4[_0x3c0dc7('0x1e07')][_0x3c0dc7('0x1d4a')]['length']){_0x551ba4[_0x3c0dc7('0x1d4a')]=_0x3cf1e4[_0x3c0dc7('0x1e07')][_0x3c0dc7('0x1d4a')]||[{'message':_0x3cf1e4[_0x3c0dc7('0x1b75')](),'type':_0x3c0dc7('0x1cdc')}];for(let _0x536ba7=0x0;_0x536ba7<_0x3cf1e4[_0x3c0dc7('0x1e07')][_0x3c0dc7('0x1d4a')]['length'];_0x536ba7++){_0x54f10['error']({'title':_0x3cf1e4[_0x3c0dc7('0x1e07')][_0x3c0dc7('0x1d4a')][_0x536ba7]['type'],'msg':_0x3cf1e4[_0x3c0dc7('0x1e07')][_0x3c0dc7('0x1d4a')][_0x536ba7][_0x3c0dc7('0x67f')]});}}else _0x54f10[_0x3c0dc7('0x15aa')]({'title':_0x3cf1e4['status']?_0x3c0dc7('0x137')+_0x3cf1e4[_0x3c0dc7('0x276f')]+_0x3c0dc7('0x160c')+_0x3cf1e4[_0x3c0dc7('0x2696')]:'api.userProfile.delete','msg':_0x3cf1e4[_0x3c0dc7('0x1e07')]?JSON[_0x3c0dc7('0x100b')](_0x3cf1e4[_0x3c0dc7('0x1e07')][_0x3c0dc7('0x67f')]):_0x3cf1e4[_0x3c0dc7('0x67f')]||_0x3cf1e4[_0x3c0dc7('0x1b75')]()});});},function(){});}function _0x4d3741(_0x3b3eb8){const _0x5d9549=_0x214085,_0x5307ff=[];_0x3b3eb8[_0x5d9549('0x1dc1')][_0x5d9549('0xa6a')](function(_0x14e2dd){const _0x499bc1=_0x5d9549;let _0x3faa60;switch(_0x14e2dd){case'r':_0x3faa60=_0x499bc1('0xb80');break;case'e':_0x3faa60='EDIT_PERMISSION';break;case'd':_0x3faa60=_0x499bc1('0x2504');break;}_0x5307ff[_0x499bc1('0x18bb')](_0x508c49[_0x499bc1('0x1467')](_0x499bc1('0x2029')+_0x3faa60));}),_0x3b3eb8[_0x5d9549('0x2378')]=_0x5307ff['join'](',\x20');}function _0x1804c2(_0x4f98e3){return _0x4f98e3===null?undefined:new Date(_0x4f98e3);}function _0x45b443(_0x3b085e){_0x15d103['hide'](_0x3b085e);}}const _0x4dee85=_0xc3283e;_0x2f650a[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x2276'),_0x566993('0x1558'),_0x566993('0xbd4'),'userProfile',_0x566993('0x1ed5'),_0x566993('0x638')];function _0x2f650a(_0x13ac91,_0x1e4c39,_0xb5672a,_0x59feec,_0x362efc,_0x154c2c,_0x475bf2){const _0x4fbcf5=_0x566993,_0x4df53a=this;_0x4df53a['newUserProfile']=!![],_0x4df53a[_0x4fbcf5('0x257b')]=angular[_0x4fbcf5('0x2e3')](_0x362efc),_0x4df53a[_0x4fbcf5('0x1ed5')]=_0x154c2c,_0x4df53a[_0x4fbcf5('0x20d6')]=_0x475bf2[_0x4fbcf5('0x1467')](_0x4fbcf5('0x23e6'));_0x362efc&&_0x362efc[_0x4fbcf5('0x10ad')]&&(_0x4df53a[_0x4fbcf5('0x20d6')]+=':\x20'+_0x362efc[_0x4fbcf5('0x10ad')]);_0x4df53a[_0x4fbcf5('0x1a21')]=_0x4170c0,_0x4df53a['closeDialog']=_0x5fc4f6;function _0x4170c0(){const _0x502fce=_0x4fbcf5;return _0x59feec[_0x502fce('0x257b')][_0x502fce('0x979')]({'id':_0x362efc['id']},_0x4df53a[_0x502fce('0x257b')])[_0x502fce('0x1964')][_0x502fce('0x173b')](function(_0x329dc){const _0x5b92c9=_0x502fce;_0x233639(_0x329dc),_0x4df53a[_0x5b92c9('0x1ed5')]['unshift'](_0x329dc[_0x5b92c9('0xf1f')]()),_0xb5672a[_0x5b92c9('0xdfe')]({'title':_0x5b92c9('0x2039'),'msg':_0x4df53a['userProfile'][_0x5b92c9('0x10ad')]?_0x4df53a[_0x5b92c9('0x257b')][_0x5b92c9('0x10ad')]+_0x5b92c9('0x648'):''}),_0x1e4c39['go'](_0x5b92c9('0x1acc'),{'id':_0x329dc['id']}),_0x5fc4f6(_0x329dc);})[_0x502fce('0x103c')](function(_0x51be42){const _0x5af67f=_0x502fce;if(_0x51be42[_0x5af67f('0x1e07')]&&_0x51be42[_0x5af67f('0x1e07')][_0x5af67f('0x1d4a')]&&_0x51be42[_0x5af67f('0x1e07')][_0x5af67f('0x1d4a')][_0x5af67f('0x543')]){_0x4df53a[_0x5af67f('0x1d4a')]=_0x51be42[_0x5af67f('0x1e07')][_0x5af67f('0x1d4a')]||[{'message':_0x51be42[_0x5af67f('0x1b75')](),'type':_0x5af67f('0x25f6')}];for(let _0x330ab4=0x0;_0x330ab4<_0x51be42[_0x5af67f('0x1e07')][_0x5af67f('0x1d4a')]['length'];_0x330ab4+=0x1){_0xb5672a[_0x5af67f('0x15aa')]({'title':_0x51be42[_0x5af67f('0x1e07')][_0x5af67f('0x1d4a')][_0x330ab4][_0x5af67f('0x1810')],'msg':_0x51be42['data']['errors'][_0x330ab4][_0x5af67f('0x67f')]});}}else _0xb5672a[_0x5af67f('0x15aa')]({'title':_0x51be42['status']?_0x5af67f('0x137')+_0x51be42[_0x5af67f('0x276f')]+'\x20-\x20'+_0x51be42['statusText']:_0x5af67f('0x25f6'),'msg':_0x51be42[_0x5af67f('0x1e07')]?JSON[_0x5af67f('0x100b')](_0x51be42[_0x5af67f('0x1e07')][_0x5af67f('0x67f')]):_0x51be42[_0x5af67f('0x1b75')]()});});}function _0x233639(_0x71395a){const _0x3845be=_0x4fbcf5,_0x43c404=[];_0x71395a['crudPermissions'][_0x3845be('0xa6a')](function(_0x361ada){const _0x385219=_0x3845be;let _0x5dfbb7;switch(_0x361ada){case'r':_0x5dfbb7=_0x385219('0xb80');break;case'e':_0x5dfbb7=_0x385219('0xba3');break;case'd':_0x5dfbb7='DELETE_PERMISSION';break;}_0x43c404[_0x385219('0x18bb')](_0x475bf2[_0x385219('0x1467')](_0x385219('0x2029')+_0x5dfbb7));}),_0x71395a[_0x3845be('0x2378')]=_0x43c404[_0x3845be('0x2259')](',\x20');}function _0x5fc4f6(_0x3c4861){const _0x5b758d=_0x4fbcf5;_0x13ac91[_0x5b758d('0x1cf4')](_0x3c4861);}}const _0x43a2a9=_0x2f650a,_0x3d9804=_0x21a6a1['p']+_0x566993('0x25f9');_0x5fa952['$inject']=['$document',_0x566993('0x1fe5'),'$translate','$q','api',_0x566993('0x1009'),'Auth',_0x566993('0x1558')];function _0x5fa952(_0x35d55c,_0x2d611d,_0x1507b8,_0xe37a12,_0x350066,_0x23cb9c,_0x55f903,_0x30aa79){const _0x78124f=_0x566993,_0x1bbf32=this;_0x1bbf32[_0x78124f('0x257b')]={},_0x1bbf32[_0x78124f('0x1a29')]={},_0x1bbf32[_0x78124f('0x1ea9')]=_0x23cb9c[_0x78124f('0x22f3')](),_0x1bbf32[_0x78124f('0x2018')]=_0x1bbf32[_0x78124f('0x1ea9')][0x0][_0x78124f('0x13da')],_0x1bbf32[_0x78124f('0x1f17')]=[{'id':0x0,'name':'Fully\x20Enabled','color':_0x78124f('0x10c8'),'info':'All\x20resources\x20enabled','tag':_0x78124f('0x233a')},{'id':0x1,'name':'Partially\x20Enabled','color':_0x78124f('0x135'),'info':_0x78124f('0x2139'),'tag':_0x78124f('0x785')},{'id':0x2,'name':_0x78124f('0x40f'),'color':'grey-A400-bg','info':_0x78124f('0x15ee'),'tag':'disabled'},{'id':0x3,'name':_0x78124f('0xdea'),'color':_0x78124f('0x5c7'),'info':_0x78124f('0x143d'),'tag':'unlicensed'},{'id':0x4,'name':_0x78124f('0x19a0'),'color':_0x78124f('0x19f5'),'info':_0x78124f('0x1af3'),'tag':_0x78124f('0x1b77')}],_0x1bbf32['dashboardSections']=[{'title':_0x78124f('0x154a'),'translate':_0x78124f('0x57d'),'id':0x64}],_0x1bbf32[_0x78124f('0xb9c')]=_0x5c1a5c,_0x1bbf32[_0x78124f('0x14c2')]=_0x8a8c41,_0x1bbf32['manageResources']=_0x197239,_0x1bbf32[_0x78124f('0x1481')]=_0x188ea3;function _0x5c1a5c(_0x51e96e,_0x3dca23){const _0x101219=_0x78124f;_0x1bbf32[_0x101219('0x257b')]=_0x51e96e,_0x1bbf32['license']=_0x3dca23;}function _0x8a8c41(_0x2651ce){const _0x579ea8=_0x78124f,_0x482590=typeof _0x2651ce['permissions']!==_0x579ea8('0x6e5')&&!_0x2651ce[_0x579ea8('0x23c1')][_0x579ea8('0x1b7b')]?!![]:![],_0x242018=_0x2651ce[_0x579ea8('0x20d6')]===_0x579ea8('0x5f7')?_0x579ea8('0x1d06'):_0x2651ce[_0x579ea8('0x20d6')];if(_0x2651ce[_0x579ea8('0x276f')]['name']!==_0x579ea8('0x2556')){const _0x2a3b69=[];if(!_0x482590){const _0xcab4e8=_0x2d611d[_0x579ea8('0x1d02')]({'skipHide':!![]})[_0x579ea8('0x20d6')](_0x579ea8('0x2de'))[_0x579ea8('0x1f71')](_0x1507b8[_0x579ea8('0x1467')](_0x579ea8('0xdcc'),{'sectionName':_0x1507b8[_0x579ea8('0x1467')](_0x2651ce['translate'])}))['ariaLabel'](_0x579ea8('0x2de'))['ok'](_0x1507b8['instant']('STAFF.CONFIRM'))['cancel'](_0x1507b8[_0x579ea8('0x1467')](_0x579ea8('0x478')));_0x2d611d['show'](_0xcab4e8)[_0x579ea8('0x173b')](function(){const _0x3e536f=_0x579ea8;switch(_0x242018){case _0x3e536f('0x154a'):_0x3c8d8a()[_0x3e536f('0x8a2')](_0x1bbf32[_0x3e536f('0xc80')],function(_0x19cf71){const _0xab5cde=_0x3e536f;_0x2a3b69[_0xab5cde('0x18bb')]({'category':_0x242018,'sectionId':_0x19cf71['id'],'name':_0x19cf71[_0xab5cde('0x20d6')],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x3c8d8a()['map'](_0x1bbf32[_0xab5cde('0x257b')][_0xab5cde('0x1dc1')])[_0xab5cde('0x2259')]('')});});break;default:_0x3c8d8a()['map'](_0x2651ce[_0x3e536f('0x13da')],function(_0x9c0a60){const _0x1d30b7=_0x3e536f,_0x3849e2=typeof _0x9c0a60[_0x1d30b7('0x23c1')]!=_0x1d30b7('0x6e5')&&_0x9c0a60[_0x1d30b7('0x23c1')]['hidden']?!![]:![];if(!_0x3849e2){let _0x52642f=_0x9c0a60['title'];switch(_0x242018){case _0x1d30b7('0x27e7'):_0x52642f=_0x52642f===_0x1d30b7('0x557')?_0x1d30b7('0x24fe'):_0x52642f;break;}_0x2a3b69[_0x1d30b7('0x18bb')]({'category':_0x242018,'sectionId':_0x9c0a60['id'],'name':_0x52642f,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x3c8d8a()['map'](_0x1bbf32['userProfile'][_0x1d30b7('0x1dc1')])[_0x1d30b7('0x2259')]('')});}});break;}return _0x350066[_0x3e536f('0x257b')]['addSections']({'id':_0x1bbf32[_0x3e536f('0x257b')]['id']},_0x2a3b69)[_0x3e536f('0x1964')][_0x3e536f('0x173b')](function(){const _0x4a158e=_0x3e536f;_0x2651ce[_0x4a158e('0x276f')]=_0x2188e0(_0x2651ce,_0x4a158e('0x233a')),_0x30aa79['success']({'title':_0x1507b8['instant']('STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE',{'sectionName':_0x1507b8[_0x4a158e('0x1467')](_0x2651ce[_0x4a158e('0xfda')]),'userProfileName':_0x1bbf32['userProfile'][_0x4a158e('0x10ad')]}),'msg':_0x1507b8['instant'](_0x4a158e('0x1a4b'),{'sectionName':_0x1507b8[_0x4a158e('0x1467')](_0x2651ce[_0x4a158e('0xfda')]),'userProfileName':_0x1bbf32[_0x4a158e('0x257b')][_0x4a158e('0x10ad')]})});});})[_0x579ea8('0x103c')](function(_0x237b84){const _0x3e8597=_0x579ea8;_0x237b84?_0x30aa79[_0x3e8597('0x15aa')]({'title':_0x237b84[_0x3e8597('0x276f')]?_0x3e8597('0x137')+_0x237b84[_0x3e8597('0x276f')]+_0x3e8597('0x160c')+_0x237b84[_0x3e8597('0x2696')]:_0x3e8597('0x19e3'),'msg':_0x237b84[_0x3e8597('0x276f')]?JSON[_0x3e8597('0x100b')](_0x237b84[_0x3e8597('0x1e07')]):_0x237b84[_0x3e8597('0x1b75')]()}):_0x2651ce[_0x3e8597('0x276f')]=_0x2188e0(_0x2651ce,_0x2651ce['status'][_0x3e8597('0x23b4')]);});}else return _0x2a3b69[_0x579ea8('0x18bb')]({'category':_0x242018,'sectionId':_0x2651ce['id'],'name':_0x242018,'enabled':!![],'crudPermissions':_0x579ea8('0x191a')}),_0x350066[_0x579ea8('0x257b')]['addSections']({'id':_0x1bbf32[_0x579ea8('0x257b')]['id']},_0x2a3b69)[_0x579ea8('0x1964')][_0x579ea8('0x173b')](function(){const _0x42dd3f=_0x579ea8;_0x2651ce['status']=_0x2188e0(_0x2651ce,_0x42dd3f('0x233a')),_0x30aa79[_0x42dd3f('0xdfe')]({'title':_0x1507b8[_0x42dd3f('0x1467')](_0x42dd3f('0xe87'),{'sectionName':_0x1507b8[_0x42dd3f('0x1467')](_0x2651ce[_0x42dd3f('0xfda')]),'userProfileName':_0x1bbf32[_0x42dd3f('0x257b')][_0x42dd3f('0x10ad')]}),'msg':_0x1507b8[_0x42dd3f('0x1467')](_0x42dd3f('0x1cc3'),{'sectionName':_0x1507b8[_0x42dd3f('0x1467')](_0x2651ce[_0x42dd3f('0xfda')]),'userProfileName':_0x1bbf32[_0x42dd3f('0x257b')][_0x42dd3f('0x10ad')]})});})[_0x579ea8('0x103c')](function(_0x331484){const _0x27364e=_0x579ea8;_0x30aa79[_0x27364e('0x15aa')]({'title':_0x331484[_0x27364e('0x276f')]?_0x27364e('0x137')+_0x331484[_0x27364e('0x276f')]+'\x20-\x20'+_0x331484[_0x27364e('0x2696')]:_0x27364e('0x19e3'),'msg':_0x331484[_0x27364e('0x276f')]?JSON['stringify'](_0x331484[_0x27364e('0x1e07')]):_0x331484['toString']()});});}else{if(_0x2651ce[_0x579ea8('0x276f')][_0x579ea8('0x10ad')]===_0x579ea8('0x2556')){_0x2651ce['status']=_0x2188e0(_0x2651ce,'disabled');let _0x4d0b49=[];switch(_0x242018){case _0x579ea8('0x72'):case _0x579ea8('0xa12'):_0x4d0b49=[_0x2651ce['id']];break;case'Dashboards':_0x4d0b49=_0x3c8d8a()['map'](_0x1bbf32[_0x579ea8('0xc80')],function(_0x4badd9){return _0x4badd9['id'];});break;default:_0x4d0b49=_0x3c8d8a()[_0x579ea8('0x8a2')](_0x2651ce[_0x579ea8('0x13da')],function(_0x140db6){return _0x140db6['id'];});break;}return _0x350066[_0x579ea8('0x257b')]['removeSections']({'id':_0x1bbf32['userProfile']['id'],'ids':_0x4d0b49})[_0x579ea8('0x1964')][_0x579ea8('0x173b')](function(){const _0x3e681e=_0x579ea8;_0x30aa79[_0x3e681e('0xdfe')]({'title':_0x1507b8['instant'](_0x3e681e('0xc6a'),{'sectionName':_0x1507b8[_0x3e681e('0x1467')](_0x2651ce[_0x3e681e('0xfda')]),'userProfileName':_0x1bbf32[_0x3e681e('0x257b')]['name']}),'msg':_0x1507b8[_0x3e681e('0x1467')](_0x3e681e('0x2182'),{'sectionName':_0x1507b8[_0x3e681e('0x1467')](_0x2651ce['translate']),'userProfileName':_0x1bbf32['userProfile'][_0x3e681e('0x10ad')]})});})['catch'](function(_0x58524a){const _0x4d80dd=_0x579ea8;_0x30aa79[_0x4d80dd('0x15aa')]({'title':_0x58524a[_0x4d80dd('0x276f')]?_0x4d80dd('0x137')+_0x58524a['status']+'\x20-\x20'+_0x58524a[_0x4d80dd('0x2696')]:_0x4d80dd('0x219c'),'msg':_0x58524a[_0x4d80dd('0x276f')]?JSON[_0x4d80dd('0x100b')](_0x58524a[_0x4d80dd('0x1e07')]):_0x58524a[_0x4d80dd('0x1b75')]()});});}}}function _0x197239(_0x441467,_0x20cfd0){const _0x3ca710=_0x78124f,_0x5ceaaf=_0x2d611d[_0x3ca710('0x1cb7')]({'controller':_0x3ca710('0x2676'),'controllerAs':'vm','templateUrl':_0x3d9804,'parent':angular[_0x3ca710('0xb6d')](_0x35d55c[_0x3ca710('0x1a5')]),'targetEvent':_0x20cfd0,'clickOutsideToClose':![],'locals':{'userProfile':_0x1bbf32[_0x3ca710('0x257b')],'userProfiles':[],'section':_0x441467}});_0x5ceaaf[_0x3ca710('0x173b')](function(){_0x188ea3(_0x441467);});}function _0x2188e0(_0x4dfeb2,_0x11a473){const _0x207e0f=_0x78124f;_0x4dfeb2['allResourcesEnabled']=_0x5afaed(_0x11a473);switch(_0x11a473){case _0x207e0f('0x233a'):return _0x3c8d8a()[_0x207e0f('0x18ab')](_0x1bbf32[_0x207e0f('0x1f17')],['tag','full']);case _0x207e0f('0x785'):return _0x3c8d8a()[_0x207e0f('0x18ab')](_0x1bbf32[_0x207e0f('0x1f17')],[_0x207e0f('0x23b4'),_0x207e0f('0x785')]);case _0x207e0f('0x6fc'):return _0x3c8d8a()[_0x207e0f('0x18ab')](_0x1bbf32['statusList'],[_0x207e0f('0x23b4'),_0x207e0f('0x6fc')]);case _0x207e0f('0xbc5'):return _0x3c8d8a()[_0x207e0f('0x18ab')](_0x1bbf32[_0x207e0f('0x1f17')],[_0x207e0f('0x23b4'),_0x207e0f('0xbc5')]);case _0x207e0f('0x1b77'):return _0x3c8d8a()[_0x207e0f('0x18ab')](_0x1bbf32[_0x207e0f('0x1f17')],[_0x207e0f('0x23b4'),_0x207e0f('0x1b77')]);default:return _0x3c8d8a()['find'](_0x1bbf32[_0x207e0f('0x1f17')],[_0x207e0f('0x23b4'),_0x207e0f('0x1b77')]);}}function _0x203003(_0x349a66){return _0xe37a12(function(_0x5f14e6,_0x37c42){const _0x2700d0=a0_0xde5e,_0x1c6b0e=typeof _0x349a66[_0x2700d0('0x1134')]!==_0x2700d0('0x6e5')&&_0x3c8d8a()[_0x2700d0('0x2814')](_0x349a66['route'],_0x2700d0('0x1436'));_0x1c6b0e?_0x4434df(_0x349a66)['then'](function(_0x1e1b73){_0x5f14e6(_0x1e1b73);})[_0x2700d0('0x103c')](function(_0x770a3){_0x37c42(_0x770a3);}):_0x2a1026(_0x349a66)[_0x2700d0('0x173b')](function(_0x54cd3e){_0x5f14e6(_0x54cd3e);})[_0x2700d0('0x103c')](function(_0x4bc685){_0x37c42(_0x4bc685);});});}function _0x4434df(_0xfd75ff){return _0xe37a12(function(_0x121dce,_0x33e286){const _0x2e7617=a0_0xde5e,_0x42a210=typeof _0xfd75ff['channel']!==_0x2e7617('0x6e5')&&_0xfd75ff[_0x2e7617('0x1134')]===_0x2e7617('0xce4')?_0x2e7617('0xb33'):_0x2e7617('0x1755');return _0x350066[_0xfd75ff[_0x2e7617('0x26e9')]]['get']({'fields':_0x2e7617('0x2148'),'channel':_0xfd75ff[_0x2e7617('0x1134')]===_0x2e7617('0xce4')?'voice':_0xfd75ff[_0x2e7617('0x1134')],'type':_0x42a210,'nolimit':!![]})[_0x2e7617('0x1964')][_0x2e7617('0x173b')](function(_0x4f7978){_0x121dce(_0x4f7978);})['catch'](function(_0x4537dc){_0x33e286(_0x4537dc);});});}function _0x2a1026(_0x5ae017){return _0xe37a12(function(_0x6f7bf5,_0x582b65){const _0x541215=a0_0xde5e;let _0x5c0bb6,_0x186097,_0x3ac958=![],_0x19d722=![];switch(_0x5ae017[_0x541215('0x26e9')]){case _0x541215('0x1630'):switch(_0x5ae017[_0x541215('0x20d6')]){case'InboundRoutes':_0x5c0bb6=_0x541215('0x1755');break;case'OutboundRoutes':_0x5c0bb6='outbound';break;case'InternalRoutes':_0x5c0bb6=_0x541215('0x138c');break;}break;case'interval':_0x3ac958=!![];break;case _0x541215('0x2766'):_0x19d722=!![];break;case'user':switch(_0x5ae017[_0x541215('0x20d6')]){case'Agents':_0x186097=_0x541215('0x7b0');break;case'Telephones':_0x186097=_0x541215('0x149c');break;case _0x541215('0x1999'):_0x186097=_0x541215('0x166f');break;}break;}if(_0x5ae017[_0x541215('0x20d6')]===_0x541215('0x163b')){if(_0x5ae017['reportType'])switch(_0x5ae017[_0x541215('0x50a')]){case _0x541215('0x1ef2'):_0x5ae017[_0x541215('0x26e9')]=_0x541215('0x1d73');break;case'custom':_0x5ae017[_0x541215('0x26e9')]='analyticCustomReport';break;}else return _0x350066[_0x541215('0x1d73')][_0x541215('0x1d97')]({'nolimit':!![]})[_0x541215('0x1964')]['then'](function(_0x580d9e){const _0x329b0d=_0x541215;_0x350066[_0x329b0d('0x1ca6')][_0x329b0d('0x1d97')]({'nolimit':!![]})[_0x329b0d('0x1964')]['then'](function(_0x5f0744){const _0xc986e3=_0x329b0d,_0x8296f2=_0x3c8d8a()['union'](_0x580d9e[_0xc986e3('0x6aa')],_0x5f0744[_0xc986e3('0x6aa')]);_0x6f7bf5({'count':_0x8296f2['length'],'rows':_0x8296f2['rows']});});})['catch'](function(_0x439b36){_0x582b65(_0x439b36);});}return _0x350066[_0x5ae017['route']][_0x541215('0x1d97')]({'role':_0x186097?_0x186097:undefined,'type':_0x5c0bb6?_0x5c0bb6:undefined,'VoiceExtensionId':_0x5c0bb6?'null':undefined,'IntervalId':_0x3ac958?_0x541215('0x877'):undefined,'MailAccountId':_0x19d722?_0x541215('0x877'):undefined,'FaxAccountId':_0x19d722?'null':undefined,'SmsAccountId':_0x19d722?'null':undefined,'OpenchannelAccountId':_0x19d722?_0x541215('0x877'):undefined,'ChatWebsiteId':_0x19d722?'null':undefined,'WhatsappAccountId':_0x19d722?'null':undefined,'ListId':_0x19d722?_0x541215('0x877'):undefined,'nolimit':!![]})['$promise'][_0x541215('0x173b')](function(_0x5b6f22){_0x6f7bf5(_0x5b6f22);})['catch'](function(_0xb0a723){_0x582b65(_0xb0a723);});});}function _0x11e010(_0x2bc246,_0x4cfd9a){return _0xe37a12(function(_0x3cdaa4,_0xfd569f){const _0x33643e=a0_0xde5e;_0x350066[_0x33643e('0xda9')]['get']({'sectionId':_0x4cfd9a})[_0x33643e('0x1964')]['then'](function(_0x374494){const _0x2e3353=_0x33643e;return _0x203003(_0x2bc246)[_0x2e3353('0x173b')](function(_0x460eac){const _0x17098d=_0x2e3353;return _0x3c8d8a()[_0x17098d('0x1bd3')](_0x374494[_0x17098d('0x6aa')],_0x460eac['rows'],'id');});})[_0x33643e('0x173b')](function(_0xb71c30){const _0x19e5fc=_0x33643e;_0x3c8d8a()[_0x19e5fc('0x1a56')](_0xb71c30)?_0x3cdaa4():_0xfd569f();})['catch'](function(_0x4b2345){_0xfd569f(_0x4b2345);});});}function _0x6b9d8(_0xcc935a,_0x16e53a,_0x1be8a7){const _0x54cf20=_0x78124f,_0x89a352=_0xcc935a&&_0xcc935a['length']>0x0?_0xcc935a[0x0]:null;if(!_0x89a352)return _0x1be8a7;const _0x12110e=_0x3c8d8a()[_0x54cf20('0x18ab')](_0x16e53a,[_0x54cf20('0x15fe'),_0x89a352['id']]);if(_0x12110e)return _0x16e53a=_0x3c8d8a()[_0x54cf20('0x1a8b')](_0x16e53a,[_0x54cf20('0x15fe'),_0x89a352['id']]),_0x11e010(_0x89a352,_0x12110e['id'])[_0x54cf20('0x173b')](function(){const _0x515e43=_0x54cf20;return _0x1be8a7=_0x515e43('0x233a'),_0x6b9d8(_0xcc935a[_0x515e43('0xb7f')](),_0x16e53a,_0x1be8a7);})[_0x54cf20('0x103c')](function(_0x8dae9c){const _0x858afe=_0x54cf20;return _0xe37a12[_0x858afe('0x12a4')](_0x8dae9c);});}function _0x188ea3(_0x28fdea){const _0x55edba=_0x78124f,_0x45ed57=_0x28fdea[_0x55edba('0x20d6')]==='Marketplace'?_0x55edba('0x1d06'):_0x28fdea[_0x55edba('0x20d6')];if(!_0x1bbf32[_0x55edba('0x1a29')]){_0x28fdea[_0x55edba('0x276f')]=_0x2188e0(_0x28fdea,_0x55edba('0x1b77'));return;}typeof _0x28fdea['permissions']!==_0x55edba('0x6e5')&&!_0x28fdea[_0x55edba('0x23c1')]['association']?_0x350066[_0x55edba('0x170e')][_0x55edba('0x1d97')]({'userProfileId':_0x1bbf32[_0x55edba('0x257b')]['id'],'sectionId':_0x28fdea['id']})[_0x55edba('0x1964')][_0x55edba('0x173b')](function(_0x12436b){const _0x39eb0=_0x55edba,_0x4c6c7c=_0x12436b&&_0x12436b[_0x39eb0('0x6aa')][_0x39eb0('0x543')]===0x1?_0x12436b[_0x39eb0('0x6aa')][0x0]:null,_0x578911=_0x4c6c7c?'full':_0x39eb0('0x6fc');_0x28fdea[_0x39eb0('0x276f')]=_0x2188e0(_0x28fdea,_0x578911);}):typeof _0x28fdea[_0x55edba('0x1a29')]!==_0x55edba('0x6e5')&&!_0x1bbf32[_0x55edba('0x1a29')][_0x28fdea[_0x55edba('0x1a29')]]?_0x28fdea[_0x55edba('0x276f')]=_0x2188e0(_0x28fdea,_0x55edba('0xbc5')):_0x350066[_0x55edba('0x170e')]['get']({'userProfileId':_0x1bbf32[_0x55edba('0x257b')]['id'],'category':_0x45ed57})[_0x55edba('0x1964')][_0x55edba('0x173b')](function(_0x226f4f){const _0x3fb2f2=_0x55edba,_0x1b7562=_0x226f4f&&_0x226f4f[_0x3fb2f2('0x6aa')]&&_0x226f4f[_0x3fb2f2('0x6aa')][_0x3fb2f2('0x543')]>0x0?_0x226f4f['rows']:[];if(_0x28fdea[_0x3fb2f2('0x20d6')]===_0x3fb2f2('0x154a'))return _0x3c8d8a()[_0x3fb2f2('0x1a56')](_0x1b7562)?_0x3fb2f2('0x6fc'):_0x1b7562[0x0][_0x3fb2f2('0x273e')]?_0x3fb2f2('0x233a'):_0x350066[_0x3fb2f2('0xda9')][_0x3fb2f2('0x1d97')]({'sectionId':_0x1b7562[0x0]['id'],'resourceId':0x65})[_0x3fb2f2('0x1964')][_0x3fb2f2('0x173b')](function(_0x1b4b39){const _0x38b4bb=_0x3fb2f2,_0x244e8f=_0x1b4b39&&_0x1b4b39[_0x38b4bb('0x6aa')]?_0x1b4b39[_0x38b4bb('0x6aa')][0x0]:null;return _0x244e8f?_0x38b4bb('0x233a'):_0x38b4bb('0x785');});else{const _0x5e4e4a=_0x3c8d8a()[_0x3fb2f2('0x278d')](_0x28fdea['children'],function(_0x17985e){const _0x475ce9=_0x3fb2f2;return typeof _0x17985e[_0x475ce9('0x23c1')]!=='undefined'&&_0x17985e[_0x475ce9('0x23c1')][_0x475ce9('0x202b')]?undefined:_0x17985e;});if(_0x1b7562[_0x3fb2f2('0x543')]===_0x5e4e4a['length']){if(_0x3c8d8a()['every'](_0x1b7562,['autoAssociation',!![]]))return _0x3fb2f2('0x233a');else{const _0x4bf28f=_0x3c8d8a()['filter'](_0x5e4e4a,function(_0x3932e2){const _0x4d8cd6=_0x3fb2f2;return typeof _0x3932e2[_0x4d8cd6('0x23c1')]!==_0x4d8cd6('0x6e5')&&!_0x3932e2[_0x4d8cd6('0x23c1')][_0x4d8cd6('0x1b7b')]?undefined:_0x3932e2;});return _0x6b9d8(_0x4bf28f,_0x1b7562,'partial');}}else return _0x1b7562[_0x3fb2f2('0x543')]===0x0?'disabled':_0x3fb2f2('0x785');}})[_0x55edba('0x173b')](function(_0x131c47){_0x28fdea['status']=_0x2188e0(_0x28fdea,_0x131c47);})[_0x55edba('0x103c')](function(_0x4cf20b){const _0x3c4247=_0x55edba,_0x246e0e=_0x4cf20b?'unknown':_0x3c4247('0x785');_0x28fdea[_0x3c4247('0x276f')]=_0x2188e0(_0x28fdea,_0x246e0e),_0x4cf20b&&_0x30aa79[_0x3c4247('0x15aa')]({'title':_0x4cf20b['status']?_0x3c4247('0x137')+_0x4cf20b['status']+_0x3c4247('0x160c')+_0x4cf20b[_0x3c4247('0x2696')]:_0x3c4247('0x188')+_0x45ed57[_0x3c4247('0x1164')]()+')','msg':_0x4cf20b[_0x3c4247('0x276f')]?JSON['stringify'](_0x4cf20b[_0x3c4247('0x1e07')]):_0x4cf20b[_0x3c4247('0x1b75')]()});});}function _0x5afaed(_0x392326){const _0x25d8e6=_0x78124f;return _0x392326===_0x25d8e6('0x233a')?!![]:![];}}const _0x541598=_0x5fa952;_0x4ee2cd[_0x566993('0x17bb')]=['$scope',_0x566993('0x1fe5'),'$q','toasty','api',_0x566993('0x257b'),_0x566993('0x1ed5'),_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x17c9')];function _0x4ee2cd(_0x295b75,_0x21e9a4,_0x48e3a6,_0x1982bf,_0x44b480,_0x3911d2,_0x25b5d2,_0x2b6a48,_0x2c2ae3,_0x411a70){const _0x60552=_0x566993,_0x1944c2=this;_0x1944c2[_0x60552('0x257b')]=_0x3911d2,_0x1944c2[_0x60552('0x1692')]=0x0,_0x1944c2[_0x60552('0x17c9')]=angular[_0x60552('0x2e3')](_0x411a70),_0x1944c2['title']=_0x2b6a48[_0x60552('0x1467')](_0x60552('0x9d9'),{'sectionName':_0x2b6a48[_0x60552('0x1467')](_0x1944c2[_0x60552('0x17c9')][_0x60552('0xfda')])}),_0x1944c2[_0x60552('0x1b1f')]=[],_0x1944c2['selectedItems']=[],_0x1944c2[_0x60552('0x145c')]=_0x3c8d8a()[_0x60552('0x278d')](_0x1944c2[_0x60552('0x17c9')][_0x60552('0x13da')],function(_0x5badbb){const _0x2b4279=_0x60552;return typeof _0x5badbb[_0x2b4279('0x23c1')]!=_0x2b4279('0x6e5')&&_0x5badbb[_0x2b4279('0x23c1')][_0x2b4279('0x202b')]?undefined:_0x5badbb;}),_0x1944c2[_0x60552('0xc80')]=[{'title':_0x60552('0x154a'),'translate':_0x60552('0x57d'),'id':0x64}],_0x1944c2[_0x60552('0x5ef')]=[];_0x1944c2[_0x60552('0x17c9')]['title']===_0x60552('0x154a')&&(_0x1944c2[_0x60552('0x5ef')]=_0x1944c2[_0x60552('0x145c')],_0x1944c2[_0x60552('0x145c')]=_0x1944c2[_0x60552('0xc80')]);_0x1944c2[_0x60552('0xa7f')]=null,_0x1944c2['loadedSection']=null,_0x1944c2[_0x60552('0xb2f')]=[],_0x1944c2['closeDialog']=_0x401be4,_0x1944c2[_0x60552('0x1f0c')]=_0x47f7a9,_0x1944c2['onChangeVisibility']=_0x261de9,_0x1944c2[_0x60552('0x2509')]=_0x249b1d,_0x1944c2[_0x60552('0x828')]=_0x2a8827,_0x1944c2[_0x60552('0x1dc')]=_0x3e62c1,_0x1944c2['saveSection']=_0x429d4c,_0x1944c2[_0x60552('0x52e')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x60552('0x10ad'),'line1':_0x60552('0x10ad'),'line2':'','line3':'','line4':'fullPath','labelAll':_0x2b6a48['instant'](_0x60552('0x68d')),'labelSelected':_0x2b6a48[_0x60552('0x1467')]('STAFF.PERMISSIONS_SELECTED_RESOURCES'),'labelSearch':_0x2b6a48['instant'](_0x60552('0xf48')),'transferCallback':function(_0x5012cd,_0x2b0679){const _0x28c6da=_0x60552;_0x49167b(!![]),_0x2b0679?(_0x1944c2['selectedSection'][_0x28c6da('0x5f8')]=_0x3c8d8a()[_0x28c6da('0x169')](_0x1944c2[_0x28c6da('0xa7f')][_0x28c6da('0x5f8')],_0x5012cd,'id'),_0x1944c2[_0x28c6da('0xa7f')][_0x28c6da('0x273e')]=![]):_0x1944c2[_0x28c6da('0xa7f')][_0x28c6da('0x5f8')]=_0x3c8d8a()['unionBy'](_0x1944c2[_0x28c6da('0xa7f')]['selectedItems'],_0x5012cd,'id'),_0x1944c2['selectedSection']['title']===_0x28c6da('0x163b')&&_0x2e4c43();}};function _0x3ca25c(){return _0x48e3a6(function(_0x91abe7,_0x38263b){const _0x352361=a0_0xde5e,_0xedd880=typeof _0x1944c2[_0x352361('0xa7f')][_0x352361('0x1134')]!==_0x352361('0x6e5')&&_0x1944c2[_0x352361('0xa7f')]['channel']===_0x352361('0xce4')?_0x352361('0xb33'):_0x352361('0x1755');return _0x44b480[_0x1944c2['selectedSection'][_0x352361('0x26e9')]][_0x352361('0x1d97')]({'fields':_0x352361('0x2148'),'channel':_0x1944c2[_0x352361('0xa7f')][_0x352361('0x1134')]==='bull'?_0x352361('0x21a8'):_0x1944c2['selectedSection'][_0x352361('0x1134')],'type':_0xedd880,'nolimit':!![]})[_0x352361('0x1964')][_0x352361('0x173b')](function(_0x2a8c3c){_0x91abe7(_0x2a8c3c);})['catch'](function(_0x301563){_0x38263b(_0x301563);});});}function _0x191484(){return _0x48e3a6(function(_0x4dd85b,_0xa1dd6f){const _0x44d429=a0_0xde5e;let _0x2e1e39,_0x16fd1,_0x1a310e=![],_0x2303d6=![];if(_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x26e9')]===_0x44d429('0x1630'))switch(_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x20d6')]){case _0x44d429('0x2286'):_0x2e1e39=_0x44d429('0x1755');break;case _0x44d429('0xf0b'):_0x2e1e39=_0x44d429('0xb33');break;case _0x44d429('0x1c72'):_0x2e1e39=_0x44d429('0x138c');break;}if(_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x26e9')]==='user')switch(_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x20d6')]){case _0x44d429('0x1272'):_0x16fd1=_0x44d429('0x7b0');break;case _0x44d429('0x76'):_0x16fd1=_0x44d429('0x149c');break;case _0x44d429('0x1999'):_0x16fd1=_0x44d429('0x166f');break;}_0x1944c2[_0x44d429('0xa7f')]['route']===_0x44d429('0x55a')&&(_0x1a310e=!![]);_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x26e9')]==='disposition'&&(_0x2303d6=!![]);_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x20d6')]===_0x44d429('0x163b')&&(_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x26e9')]=_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x50a')]==='default'?'analyticDefaultReport':_0x44d429('0x1ca6'));if(_0x1944c2[_0x44d429('0xa7f')][_0x44d429('0x20d6')]===_0x44d429('0x154a'))_0x4dd85b({'count':0x1,'rows':[{'id':0x65,'name':_0x2b6a48['instant'](_0x44d429('0xe47'))}]});else return _0x44b480[_0x1944c2['selectedSection']['route']]['get']({'role':_0x16fd1?_0x16fd1:undefined,'type':_0x2e1e39?_0x2e1e39:undefined,'VoiceExtensionId':_0x2e1e39?_0x44d429('0x877'):undefined,'IntervalId':_0x1a310e?'null':undefined,'MailAccountId':_0x2303d6?_0x44d429('0x877'):undefined,'FaxAccountId':_0x2303d6?_0x44d429('0x877'):undefined,'SmsAccountId':_0x2303d6?'null':undefined,'OpenchannelAccountId':_0x2303d6?'null':undefined,'ChatWebsiteId':_0x2303d6?_0x44d429('0x877'):undefined,'WhatsappAccountId':_0x2303d6?_0x44d429('0x877'):undefined,'ListId':_0x2303d6?_0x44d429('0x877'):undefined,'nolimit':!![]})[_0x44d429('0x1964')]['then'](function(_0x20ace7){_0x4dd85b(_0x20ace7);})[_0x44d429('0x103c')](function(_0x3062f1){_0xa1dd6f(_0x3062f1);});});}function _0x197a9f(){const _0x3f9f56=_0x60552,_0x7de89b=typeof _0x1944c2[_0x3f9f56('0xa7f')][_0x3f9f56('0x1ac1')]!='undefined'?_0x1944c2[_0x3f9f56('0xa7f')][_0x3f9f56('0x1ac1')]:![];return _0x48e3a6(function(_0x421e59,_0x5c8e85){const _0x5d78aa=_0x3f9f56;_0x44b480[_0x5d78aa('0x170e')][_0x5d78aa('0x1d97')]({'userProfileId':_0x1944c2['userProfile']['id'],'sectionId':_0x1944c2[_0x5d78aa('0xa7f')]['id']})[_0x5d78aa('0x1964')][_0x5d78aa('0x173b')](function(_0x30ea4c){const _0xa9c9f6=_0x5d78aa,_0x2e915d=_0x30ea4c&&_0x30ea4c['rows']?_0x30ea4c['rows'][0x0]:null;!_0x7de89b&&(_0x1944c2['selectedSection'][_0xa9c9f6('0x830')]=_0x2e915d?!!_0x2e915d[_0xa9c9f6('0x830')]:![],_0x1944c2[_0xa9c9f6('0xa7f')][_0xa9c9f6('0x273e')]=_0x2e915d?!!_0x2e915d[_0xa9c9f6('0x273e')]:![],_0x1944c2[_0xa9c9f6('0xa7f')][_0xa9c9f6('0x1dc1')]=_0x2e915d?_0x15e5ca(_0x2e915d['crudPermissions']):_0x15e5ca(_0x1944c2[_0xa9c9f6('0x257b')]['crudPermissions'])),_0x421e59(_0x2e915d);})[_0x5d78aa('0x103c')](function(_0x19343b){_0x5c8e85(_0x19343b);});});}function _0x5297b1(){return _0x48e3a6(function(_0x319628,_0x4eb03d){const _0x181417=a0_0xde5e;!_0x1944c2['loadedSection']?_0x319628(null):_0x44b480[_0x181417('0xda9')][_0x181417('0x1d97')]({'sectionId':_0x1944c2[_0x181417('0x1249')]['id'],'nolimit':!![]})[_0x181417('0x1964')]['then'](function(_0x1144e3){_0x319628(_0x1144e3);})['catch'](function(_0x5ab88c){_0x4eb03d(_0x5ab88c);});});}function _0x4a2782(){return _0x48e3a6(function(_0x23cb27,_0x2b67c9){const _0x38e03d=a0_0xde5e,_0x32ac7e=typeof _0x1944c2[_0x38e03d('0xa7f')][_0x38e03d('0x1134')]!=='undefined'&&_0x3c8d8a()[_0x38e03d('0x2814')](_0x1944c2['selectedSection'][_0x38e03d('0x26e9')],'Queue');_0x32ac7e?_0x3ca25c()[_0x38e03d('0x173b')](function(_0x49288b){_0x23cb27(_0x49288b);})[_0x38e03d('0x103c')](function(_0x28c3be){_0x2b67c9(_0x28c3be);}):_0x191484()[_0x38e03d('0x173b')](function(_0x2e9a59){_0x23cb27(_0x2e9a59);})[_0x38e03d('0x103c')](function(_0x4260af){_0x2b67c9(_0x4260af);});});}function _0xd8f613(){const _0x4a27db=_0x60552,_0x333430=typeof _0x1944c2[_0x4a27db('0xa7f')][_0x4a27db('0x1ac1')]!=_0x4a27db('0x6e5')?_0x1944c2[_0x4a27db('0xa7f')][_0x4a27db('0x1ac1')]:![];let _0x384bd1=[];return _0x5297b1()['then'](function(_0x4807ad){const _0x112e15=_0x4a27db;return _0x384bd1=_0x4807ad&&_0x4807ad['rows']?_0x4807ad[_0x112e15('0x6aa')]:[],_0x1944c2[_0x112e15('0xa7f')]['title']===_0x112e15('0x163b')&&(_0x1944c2[_0x112e15('0x12c7')]=!_0x1944c2['associatedReports']?_0x384bd1:_0x1944c2['associatedReports'],_0x384bd1=_0x3eee4a(_0x1944c2[_0x112e15('0x12c7')])),typeof _0x1944c2[_0x112e15('0xa7f')]['permissions']!==_0x112e15('0x6e5')&&!_0x1944c2[_0x112e15('0xa7f')]['permissions']['association']?{'rows':[]}:_0x4a2782();})[_0x4a27db('0x173b')](function(_0x209b41){const _0x5d636a=_0x4a27db;_0x1944c2[_0x5d636a('0x1b1f')]=_0x209b41['rows']?_0x3c8d8a()[_0x5d636a('0x8a2')](_0x209b41['rows'],function(_0x1f7734){const _0x3bd7b4=_0x5d636a;return _0x1944c2['selectedSection'][_0x3bd7b4('0x20d6')]===_0x3bd7b4('0x163b')&&(_0x1f7734[_0x3bd7b4('0x983')]=_0x4fab10(_0x1f7734[_0x3bd7b4('0x941')])['replace']('\x20','_')),_0x1f7734[_0x3bd7b4('0xf02')]=!![],_0x1f7734;}):[];!_0x333430&&(_0x1944c2['selectedSection'][_0x5d636a('0x5f8')]=_0x3c8d8a()[_0x5d636a('0x8a2')](_0x384bd1,function(_0x553f8b){const _0x55693b=_0x5d636a;return _0x3c8d8a()[_0x55693b('0x18ab')](_0x1944c2['items'],{'id':_0x553f8b[_0x55693b('0x1ce0')]});}));const _0x29289e=_0x3c8d8a()[_0x5d636a('0x1bd3')](_0x1944c2['selectedSection'][_0x5d636a('0x5f8')],_0x1944c2[_0x5d636a('0x1b1f')],'id');!_0x3c8d8a()[_0x5d636a('0x1a56')](_0x29289e)&&(_0x1944c2[_0x5d636a('0xa7f')]['selectedItems']=_0x3c8d8a()[_0x5d636a('0x169')](_0x1944c2[_0x5d636a('0xa7f')][_0x5d636a('0x5f8')],_0x29289e,'id'));let _0x392b93;switch(_0x1944c2[_0x5d636a('0xa7f')]['title']){case _0x5d636a('0x38a'):_0x1944c2[_0x5d636a('0xa7f')][_0x5d636a('0x5f8')]=_0x3c8d8a()[_0x5d636a('0x278d')](_0x1944c2[_0x5d636a('0x1b1f')],function(_0x35b0a3){const _0x3e5705=_0x5d636a;if(_0x35b0a3[_0x3e5705('0x20b8')])return _0x35b0a3['isValid']=![],_0x35b0a3;else{const _0x2b592b=_0x3c8d8a()[_0x3e5705('0x18ab')](_0x384bd1,{'resourceId':_0x35b0a3['id']});if(typeof _0x2b592b!=='undefined')return _0x35b0a3[_0x3e5705('0xf02')]=!![],_0x35b0a3;}});break;case _0x5d636a('0x1139'):_0x1944c2[_0x5d636a('0xa7f')][_0x5d636a('0x5f8')]=_0x3c8d8a()[_0x5d636a('0x278d')](_0x1944c2['items'],function(_0x41e926){const _0x39ae69=_0x5d636a;if(_0x41e926['defaultEntry'])return _0x41e926[_0x39ae69('0xf02')]=![],_0x41e926;else{const _0x4dc96f=_0x3c8d8a()[_0x39ae69('0x18ab')](_0x384bd1,{'resourceId':_0x41e926['id']});if(typeof _0x4dc96f!==_0x39ae69('0x6e5'))return _0x41e926[_0x39ae69('0xf02')]=!![],_0x41e926;}});break;case _0x5d636a('0x163b'):_0x392b93=_0x661e35(_0x1944c2[_0x5d636a('0xb2f')]),_0x1944c2[_0x5d636a('0xa7f')][_0x5d636a('0x5f8')]=_0x4460e8(_0x1944c2[_0x5d636a('0xa7f')][_0x5d636a('0x5f8')]),_0x1944c2[_0x5d636a('0xa7f')][_0x5d636a('0x5f8')]=_0x3c8d8a()[_0x5d636a('0x6ef')](_0x1944c2[_0x5d636a('0xa7f')][_0x5d636a('0x5f8')],_0x392b93,'id');break;}_0x1944c2['dualMultiselectOptions'][_0x5d636a('0x5f8')]=_0x1944c2['selectedSection'][_0x5d636a('0x5f8')],_0x1944c2[_0x5d636a('0x52e')][_0x5d636a('0x1b1f')]=_0x3c8d8a()[_0x5d636a('0x1bd3')](_0x1944c2[_0x5d636a('0x1b1f')],_0x1944c2[_0x5d636a('0x52e')][_0x5d636a('0x5f8')],'id');})['catch'](function(_0x148471){const _0x11b9b2=_0x4a27db;_0x1982bf[_0x11b9b2('0x15aa')]({'title':_0x148471[_0x11b9b2('0x276f')]?_0x11b9b2('0x137')+_0x148471[_0x11b9b2('0x276f')]+_0x11b9b2('0x160c')+_0x148471['statusText']:'SYSTEM:GET'+_0x1944c2['selectedSection'][_0x11b9b2('0x20d6')]['toUpperCase'](),'msg':_0x148471[_0x11b9b2('0x276f')]?JSON['stringify'](_0x148471[_0x11b9b2('0x1e07')]):_0x148471[_0x11b9b2('0x1b75')]()});});}function _0x47f7a9(){const _0x4b012c=_0x60552;return _0x197a9f()['then'](function(_0x54fda2){const _0xec5478=a0_0xde5e;_0x1944c2['loadedSection']=_0x54fda2;if(_0x1944c2[_0xec5478('0xa7f')]['title']==='Reports')return _0x32b4e4()[_0xec5478('0x173b')](function(){const _0x217742=_0xec5478;if(!_0x1944c2[_0x217742('0xa7f')][_0x217742('0x50a')])return _0x5297b1()[_0x217742('0x173b')](function(_0x2c2f4c){const _0xfd8948=_0x217742;_0x1944c2['allReportsSelected']=_0x2c2f4c?_0x3c8d8a()['map'](_0x2c2f4c[_0xfd8948('0x6aa')],function(_0x5566d4){const _0x430666=_0xfd8948;return{'id':_0x5566d4['resourceId'],'name':_0x5566d4[_0x430666('0x10ad')],'type':_0x5566d4['type']};}):[];});})[_0xec5478('0x103c')](function(_0x46951a){const _0x573f11=_0xec5478;_0x1982bf[_0x573f11('0x15aa')]({'title':_0x46951a['status']?_0x573f11('0x137')+_0x46951a[_0x573f11('0x276f')]+'\x20-\x20'+_0x46951a['statusText']:_0x573f11('0x16e2'),'msg':_0x46951a[_0x573f11('0x1e07')]?JSON[_0x573f11('0x100b')](_0x46951a[_0x573f11('0x1e07')]):_0x46951a['toString']()});});else _0xd8f613();})[_0x4b012c('0x103c')](function(_0x1257f8){const _0x2cfbd1=_0x4b012c;_0x1982bf[_0x2cfbd1('0x15aa')]({'title':_0x1257f8['status']?_0x2cfbd1('0x137')+_0x1257f8['status']+_0x2cfbd1('0x160c')+_0x1257f8['statusText']:_0x2cfbd1('0x4b2')+_0x1944c2[_0x2cfbd1('0xa7f')][_0x2cfbd1('0x20d6')][_0x2cfbd1('0x1164')](),'msg':_0x1257f8['status']?JSON[_0x2cfbd1('0x100b')](_0x1257f8[_0x2cfbd1('0x1e07')]):_0x1257f8['toString']()});});}function _0x15e5ca(_0x4adc4f){const _0xeea5d0=_0x60552;return _0x4adc4f&&(_0x1944c2[_0xeea5d0('0xa7f')]['allowEdit']=_0x3c8d8a()['includes'](_0x4adc4f,'e')?!![]:![],_0x1944c2['selectedSection'][_0xeea5d0('0x1598')]=_0x3c8d8a()[_0xeea5d0('0x2814')](_0x4adc4f,'d')?!![]:![]),_0x296f61();}function _0x296f61(){const _0xe43bd1=_0x60552,_0x53382d=['r'];if(_0x1944c2[_0xe43bd1('0xa7f')][_0xe43bd1('0x766')])_0x53382d['push']('e');else{const _0x3f65f7=_0x3c8d8a()[_0xe43bd1('0x2087')](_0x53382d,['e']);_0x3f65f7>0x0&&_0x1944c2[_0xe43bd1('0xa7f')][_0xe43bd1('0x1dc1')][_0xe43bd1('0x166c')]('e','');}if(_0x1944c2[_0xe43bd1('0xa7f')]['allowDelete'])_0x53382d[_0xe43bd1('0x18bb')]('d');else{const _0x4d55e2=_0x3c8d8a()[_0xe43bd1('0x2087')](_0x53382d,['d']);_0x4d55e2>0x0&&_0x1944c2['selectedSection'][_0xe43bd1('0x1dc1')]['replace']('d','');}return _0x53382d;}function _0x261de9(){const _0xe8b0a9=_0x60552;_0x1944c2[_0xe8b0a9('0xa7f')][_0xe8b0a9('0x830')]=!_0x1944c2[_0xe8b0a9('0xa7f')][_0xe8b0a9('0x830')],_0x49167b(!![]);}function _0x249b1d(){const _0x4f4772=_0x60552;if(!_0x1944c2['selectedSection']['autoAssociation']){const _0x4d6605=[];for(let _0x349405=0x0;_0x349405<_0x1944c2['dualMultiselectOptions'][_0x4f4772('0x1b1f')][_0x4f4772('0x543')];_0x349405++){_0x4d6605[_0x4f4772('0x18bb')](_0x1944c2['dualMultiselectOptions'][_0x4f4772('0x1b1f')][_0x349405]),_0x1944c2[_0x4f4772('0x52e')][_0x4f4772('0x5f8')][_0x4f4772('0x18bb')](_0x1944c2[_0x4f4772('0x52e')][_0x4f4772('0x1b1f')][_0x349405]);}_0x1944c2[_0x4f4772('0x52e')][_0x4f4772('0x1b1f')]=[],_0x1944c2['dualMultiselectOptions'][_0x4f4772('0xdf2')](_0x4d6605,![]);}_0x49167b(!![]);}function _0x2a8827(){const _0x3d231b=_0x60552;_0x1944c2[_0x3d231b('0x1744')]=_0xba8de6(),_0x1944c2[_0x3d231b('0xa7f')][_0x3d231b('0x5f8')]&&(_0x1944c2['allReportsSelected']=_0x4460e8(_0x1944c2[_0x3d231b('0xb2f')]),_0x2e4c43()),_0xd8f613();}function _0x3e62c1(_0x171a22){const _0x33ff08=_0x60552;if(_0x171a22===_0x33ff08('0x331'))_0x1944c2[_0x33ff08('0xa7f')][_0x33ff08('0x766')]=!_0x1944c2['selectedSection'][_0x33ff08('0x766')];else _0x171a22===_0x33ff08('0x15e8')&&(_0x1944c2[_0x33ff08('0xa7f')][_0x33ff08('0x1598')]=!_0x1944c2['selectedSection']['allowDelete']);_0x1944c2['selectedSection'][_0x33ff08('0x1dc1')]=_0x15e5ca(),_0x49167b(!![]);}function _0x429d4c(){const _0x2e59b5=_0x60552,_0x5062cd=_0x1944c2[_0x2e59b5('0x17c9')][_0x2e59b5('0x20d6')]===_0x2e59b5('0x5f7')?_0x2e59b5('0x1d06'):_0x1944c2[_0x2e59b5('0x17c9')][_0x2e59b5('0x20d6')],_0x26cfba=_0x3c8d8a()(_0x1944c2[_0x2e59b5('0x145c')])[_0x2e59b5('0x278d')]({'pending':!![]})['map'](function(_0x5c1ab7){const _0x2afdc8=_0x2e59b5,_0x4ef169=_0x5062cd==='CallySquare'&&_0x5c1ab7[_0x2afdc8('0x20d6')]===_0x2afdc8('0x557')?_0x2afdc8('0x24fe'):_0x5c1ab7[_0x2afdc8('0x20d6')],_0x4ddabc=_0x4ef169===_0x2afdc8('0x163b')?_0x1944c2['allReportsSelected']:_0x5c1ab7[_0x2afdc8('0x5f8')];return _0x5062cd===_0x2afdc8('0x198')&&(_0x5c1ab7[_0x2afdc8('0x273e')]=!![]),{'category':_0x5062cd,'sectionId':_0x5c1ab7['id'],'name':_0x4ef169,'enabled':_0x5c1ab7['enabled'],'autoAssociation':_0x5c1ab7['autoAssociation'],'crudPermissions':_0x3c8d8a()[_0x2afdc8('0x8a2')](_0x5c1ab7[_0x2afdc8('0x1dc1')])[_0x2afdc8('0x2259')](''),'Resources':_0x3c8d8a()[_0x2afdc8('0x8a2')](_0x4ddabc,function(_0x44bd94){const _0x3d1998=_0x2afdc8;return{'name':_0x44bd94[_0x3d1998('0x10ad')],'resourceId':_0x44bd94['id'],'type':_0xbb4259(_0x4ef169,_0x44bd94)};})};})['value']();return _0x44b480[_0x2e59b5('0x257b')][_0x2e59b5('0x4c0')]({'id':_0x1944c2[_0x2e59b5('0x257b')]['id']},_0x26cfba)[_0x2e59b5('0x1964')]['then'](function(){const _0x40eb40=_0x2e59b5;_0x1944c2[_0x40eb40('0x145c')][_0x40eb40('0xa6a')](function(_0x1e34eb){const _0x3183da=_0x40eb40;_0x1e34eb[_0x3183da('0x1ac1')]=undefined;}),_0x1944c2[_0x40eb40('0x12c7')]=null,_0x53fd14(),_0x1944c2[_0x40eb40('0xa7f')][_0x40eb40('0x20d6')]===_0x40eb40('0x163b')&&!_0x1944c2['selectedSection'][_0x40eb40('0x50a')]&&_0x295b75[_0x40eb40('0x12c0')][_0x40eb40('0x1f8')](),_0x1982bf[_0x40eb40('0xdfe')]({'title':_0x2b6a48['instant'](_0x40eb40('0x2163'),{'sectionName':_0x2b6a48[_0x40eb40('0x1467')](_0x5062cd[_0x40eb40('0xfda')])}),'msg':_0x2b6a48[_0x40eb40('0x1467')]('STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE')});})[_0x2e59b5('0x173b')](function(){const _0x25f3f4=_0x2e59b5;return _0x197a9f()[_0x25f3f4('0x173b')](function(_0x2a3f4d){const _0x254433=_0x25f3f4;_0x1944c2[_0x254433('0x1249')]=_0x2a3f4d;});})['catch'](function(_0x892a8e){const _0x3ae826=_0x2e59b5;_0x1982bf[_0x3ae826('0x15aa')]({'title':_0x892a8e[_0x3ae826('0x276f')]?_0x3ae826('0x137')+_0x892a8e[_0x3ae826('0x276f')]+_0x3ae826('0x160c')+_0x892a8e[_0x3ae826('0x2696')]:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x892a8e['status']?JSON[_0x3ae826('0x100b')](_0x892a8e[_0x3ae826('0x1e07')]):_0x892a8e[_0x3ae826('0x1b75')]()});});}function _0x49167b(_0x13ea94){const _0x1cabf5=_0x60552,_0x1f87ec=_0x3c8d8a()['findIndex'](_0x1944c2[_0x1cabf5('0x145c')],function(_0x686439){return _0x686439['id']==_0x1944c2['selectedSection']['id'];});_0x1944c2['subsections'][_0x1f87ec][_0x1cabf5('0x1ac1')]=_0x13ea94,_0x53fd14();}function _0x53fd14(){const _0x156d20=_0x60552;return _0x1944c2[_0x156d20('0x277e')]=_0x3c8d8a()[_0x156d20('0x1ec')](_0x1944c2['subsections'],[_0x156d20('0x1ac1'),!![]]);}function _0xba8de6(){const _0x1c66bb=_0x60552;let _0x4803a3={};return _0x1944c2[_0x1c66bb('0xa7f')][_0x1c66bb('0x50a')]===_0x1c66bb('0x1ef2')?_0x4803a3=_0x1944c2[_0x1c66bb('0x1f76')][0x0]?angular[_0x1c66bb('0x19c5')](_0x1944c2['treeReports'][0x0][_0x1c66bb('0x1328')]):[]:_0x4803a3=_0x1944c2[_0x1c66bb('0x1f76')][0x1]?angular[_0x1c66bb('0x19c5')](_0x1944c2[_0x1c66bb('0x1f76')][0x1][_0x1c66bb('0x1328')]):[],_0x4803a3;}function _0x32b4e4(){return _0x48e3a6(function(_0x438046,_0x513f3d){const _0x27de74=a0_0xde5e;_0x44b480[_0x27de74('0x8de')][_0x27de74('0x1d97')]({})['$promise'][_0x27de74('0x173b')](function(_0x5b11a0){const _0x30e1c2=_0x27de74;_0x1944c2['treeReports']=_0x5b11a0[_0x30e1c2('0x6aa')]||[],_0x438046(_0x1944c2['treeReports']);})[_0x27de74('0x103c')](function(_0x168ccb){_0x513f3d(_0x168ccb);});});}function _0x4fab10(_0x9ec7a2){const _0x37bd27=_0x60552;let _0x390d57=_0x1944c2[_0x37bd27('0x1744')][0x0][_0x37bd27('0x86e')];return _0x390d57=_0x56c703(_0x390d57,_0x9ec7a2,_0x1944c2[_0x37bd27('0x1744')][0x0]),_0x390d57;}function _0x56c703(_0x19d30e,_0x45b64e,_0x5f3a32){const _0x45720b=_0x60552;if(_0x5f3a32&&!_0x3c8d8a()[_0x45720b('0x1a56')](_0x5f3a32[_0x45720b('0x13da')]))_0x5f3a32=_0x3c8d8a()[_0x45720b('0x18ab')](_0x5f3a32[_0x45720b('0x13da')],function(_0xdc0677){const _0x596eae=_0x45720b;return _0x3c8d8a()[_0x596eae('0x2814')](_0x45b64e,_0xdc0677['id'])?_0xdc0677:undefined;}),_0x19d30e+=_0x5f3a32?'/'+_0x5f3a32['text']:'';else return _0x19d30e;return _0x56c703(_0x19d30e,_0x45b64e,_0x5f3a32);}function _0x3eee4a(_0x93c9f9){const _0x9d7fd9=_0x60552;return _0x3c8d8a()['filter'](_0x93c9f9,{'type':_0x1944c2[_0x9d7fd9('0xa7f')]['reportType']==='default'?_0x9d7fd9('0x1489'):_0x9d7fd9('0x151d')});}function _0x661e35(_0x5be186){const _0x21ad72=_0x60552;return _0x3c8d8a()[_0x21ad72('0x278d')](_0x5be186,function(_0x41e9ad){const _0x10d555=_0x21ad72;return _0x3c8d8a()[_0x10d555('0x17b2')](_0x41e9ad[_0x10d555('0x941')],_0x1944c2[_0x10d555('0xa7f')]['reportType']===_0x10d555('0x1ef2')?_0x10d555('0x27a0'):_0x10d555('0xbb4'));});}function _0x4460e8(_0x1ed712){const _0x46cb48=_0x60552;return _0x3c8d8a()[_0x46cb48('0x1a8b')](_0x1ed712,function(_0x378a65){const _0x4d7f8b=_0x46cb48;return _0x3c8d8a()[_0x4d7f8b('0x17b2')](_0x378a65[_0x4d7f8b('0x941')],_0x1944c2[_0x4d7f8b('0xa7f')][_0x4d7f8b('0x50a')]===_0x4d7f8b('0x1ef2')?'motion':_0x4d7f8b('0xbb4'));});}function _0x2e4c43(){const _0x4ba2eb=_0x60552;_0x3c8d8a()['isEmpty'](_0x1944c2[_0x4ba2eb('0xa7f')][_0x4ba2eb('0x5f8')])?_0x1944c2[_0x4ba2eb('0xb2f')]=_0x3c8d8a()[_0x4ba2eb('0x1a8b')](_0x1944c2['allReportsSelected'],function(_0x57674b){const _0x900bfe=_0x4ba2eb;return _0x57674b[_0x900bfe('0x1810')]===(_0x1944c2[_0x900bfe('0xa7f')]['reportType']===_0x900bfe('0x1ef2')?_0x900bfe('0x151d'):_0x900bfe('0x1489'));}):_0x1944c2[_0x4ba2eb('0xa7f')][_0x4ba2eb('0x5f8')][_0x4ba2eb('0xa6a')](function(_0x30a43e){const _0x1988ac=_0x4ba2eb,_0x348372=_0x3c8d8a()['some'](_0x1944c2[_0x1988ac('0xb2f')],{'id':_0x30a43e['id'],'parent':_0x30a43e['parent']});!_0x348372&&_0x1944c2[_0x1988ac('0xb2f')][_0x1988ac('0x18bb')](_0x30a43e);});}function _0xbb4259(_0x43102a,_0x1f4d53){const _0x1e86cd=_0x60552;if(_0x43102a===_0x1e86cd('0x163b')){if(_0x1f4d53[_0x1e86cd('0x941')]){const _0x4883b8=_0x3c8d8a()['startsWith'](_0x1f4d53[_0x1e86cd('0x941')],'motion')?_0x1e86cd('0x11cf'):_0x1e86cd('0x1cf8');return _0x4883b8+_0x43102a;}else return _0x1f4d53[_0x1e86cd('0x1810')];}return _0x43102a;}function _0x401be4(_0x33a7da){const _0x3abce2=_0x60552;if(_0x1944c2[_0x3abce2('0x277e')]){const _0xccede4=_0x21e9a4[_0x3abce2('0x1d02')]({'skipHide':!![]})[_0x3abce2('0x20d6')]('Warning')[_0x3abce2('0x1f71')](_0x2b6a48[_0x3abce2('0x1467')](_0x3abce2('0x13d7')))['ariaLabel']('Warning')['targetEvent'](_0x33a7da)['ok'](_0x2b6a48[_0x3abce2('0x1467')](_0x3abce2('0x1326')))[_0x3abce2('0x1e1f')](_0x2b6a48['instant']('STAFF.CANCEL'));_0x21e9a4[_0x3abce2('0x1cb7')](_0xccede4)[_0x3abce2('0x173b')](function(){_0x21e9a4['hide']();});}else _0x21e9a4[_0x3abce2('0x1cf4')]();}}const _0x5c121f=_0x4ee2cd,_0x2e31ed=_0x21a6a1['p']+'src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html/clone.html';_0x4b1a8e['$inject']=[_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x257b'),'userProfileSection'];function _0x4b1a8e(_0x506148,_0x44163a,_0x203dc1,_0x295086,_0x1fdacb,_0x2c58d2,_0x53eeb8,_0x26a290,_0x3bda86,_0x2cf725,_0x72bf1c,_0x4ba5be){const _0x6d2c60=_0x566993,_0x374827=this;_0x374827[_0x6d2c60('0x155f')]=_0x2cf725['getCurrentUser'](),_0x374827[_0x6d2c60('0x1a29')]=_0x2c58d2,_0x374827['setting']=_0x53eeb8,_0x374827[_0x6d2c60('0x644')]=_0x374827[_0x6d2c60('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x374827['location']=_0x44163a[_0x6d2c60('0x375')]()+_0x6d2c60('0x122b')+_0x44163a[_0x6d2c60('0x4d1')](),_0x374827['userProfile']=_0x72bf1c||_0x506148[_0x6d2c60('0x197a')][_0x6d2c60('0x257b')]||{},_0x374827['userProfileSection']=_0x4ba5be&&_0x4ba5be[_0x6d2c60('0x1a2f')]==0x1?_0x4ba5be[_0x6d2c60('0x6aa')][0x0]:null,_0x374827[_0x6d2c60('0x1dc1')]=_0x2cf725[_0x6d2c60('0xde6')](_0x374827[_0x6d2c60('0x170e')]?_0x374827['userProfileSection'][_0x6d2c60('0x1dc1')]:null),_0x374827[_0x6d2c60('0xb0')]={},_0x374827[_0x6d2c60('0xd5f')]=_0x506148['params'][_0x6d2c60('0x1e66')]||0x0,_0x374827[_0x6d2c60('0xb73')]=_0x214f84,_0x374827['clonedialog']=_0x477131,_0x374827[_0x6d2c60('0x5a4')]=_0x3bda86[_0x6d2c60('0x2787')],_0x374827[_0x6d2c60('0x128f')]=_0x11f2da,_0x374827[_0x6d2c60('0x1b93')]=_0x115e8e;function _0x214f84(_0x118746,_0x52b249){const _0x513041=_0x6d2c60;_0x203dc1[_0x513041('0x1cb7')]({'controller':_0x513041('0x2676'),'controllerAs':'vm','templateUrl':_0x3d9804,'parent':angular[_0x513041('0xb6d')](_0x295086[_0x513041('0x1a5')]),'targetEvent':_0x52b249,'clickOutsideToClose':!![],'locals':{'userProfile':_0x118746,'userProfiles':_0x374827[_0x513041('0x1ed5')]?_0x374827[_0x513041('0x1ed5')][_0x513041('0x6aa')]:[],'crudPermissions':_0x374827[_0x513041('0x1dc1')]}});}function _0x477131(_0x82512f,_0x103bd6){const _0x3cb975=_0x6d2c60;_0x203dc1[_0x3cb975('0x1cb7')]({'controller':_0x3cb975('0x78'),'controllerAs':'vm','templateUrl':_0x2e31ed,'parent':angular['element'](_0x295086['body']),'targetEvent':_0x103bd6,'clickOutsideToClose':!![],'locals':{'userProfile':_0x82512f,'userProfiles':_0x374827[_0x3cb975('0x1ed5')]?_0x374827[_0x3cb975('0x1ed5')][_0x3cb975('0x6aa')]:[],'crudPermissions':_0x374827[_0x3cb975('0x1dc1')]}});}function _0x11f2da(){const _0x33ed86=_0x6d2c60;_0x506148['go'](_0x33ed86('0x11aa'),{},{'reload':'app.staff.userProfiles'});}function _0x115e8e(){const _0x1501ab=_0x6d2c60;_0x26a290['userProfile'][_0x1501ab('0x1842')]({'id':_0x374827[_0x1501ab('0x257b')]['id']},_0x374827[_0x1501ab('0x257b')])[_0x1501ab('0x1964')][_0x1501ab('0x173b')](function(){const _0x147df3=_0x1501ab;_0x3bda86[_0x147df3('0xdfe')]({'title':_0x147df3('0xca8'),'msg':_0x374827[_0x147df3('0x257b')][_0x147df3('0x10ad')]?_0x374827[_0x147df3('0x257b')][_0x147df3('0x10ad')]+_0x147df3('0x1fd6'):''});})[_0x1501ab('0x103c')](function(_0x5df241){const _0x42fe92=_0x1501ab;_0x3bda86[_0x42fe92('0x15aa')]({'title':_0x5df241[_0x42fe92('0x276f')]?'API:'+_0x5df241['status']+_0x42fe92('0x160c')+_0x5df241[_0x42fe92('0x2696')]:_0x42fe92('0xe58'),'msg':_0x5df241['data']?JSON['stringify'](_0x5df241[_0x42fe92('0x1e07')]):_0x5df241[_0x42fe92('0x1b75')]()});});}}const _0x588c90=_0x4b1a8e,_0x415afb=_0x21a6a1['p']+_0x566993('0x22');_0x874f10[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate','userProfiles',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),'Auth','license','setting'];function _0x874f10(_0x7d20a4,_0x24a035,_0x44728a,_0x3fe1fa,_0x3fd5c3,_0x19b5b2,_0x372c5e,_0x45b9e3,_0x1c238c,_0x59a9b7,_0x4a21cc,_0x5aae6e,_0x23f879,_0x3ae61f,_0x5f4c79,_0x303091,_0x56abec){const _0x2d12e2=_0x566993,_0xd1085=this;_0xd1085['license']=_0x303091,_0xd1085[_0x2d12e2('0x251')]=_0x56abec,_0xd1085[_0x2d12e2('0x155f')]=_0x5f4c79[_0x2d12e2('0x14d4')](),_0xd1085[_0x2d12e2('0x1ed5')]=_0x1c238c||{'count':0x0,'rows':[]},_0xd1085['userProfile']=_0x59a9b7,_0xd1085['userProfileSection']=_0x4a21cc&&_0x4a21cc[_0x2d12e2('0x1a2f')]==0x1?_0x4a21cc[_0x2d12e2('0x6aa')][0x0]:null,_0xd1085['crudPermissions']=_0x5f4c79[_0x2d12e2('0xde6')](_0xd1085[_0x2d12e2('0x170e')]?_0xd1085[_0x2d12e2('0x170e')]['crudPermissions']:null),_0xd1085['table']=_0x2d12e2('0x1ed5'),_0xd1085['listOrder']='',_0xd1085['listOrderAsc']=null,_0xd1085['selectedUserProfiles']=[],_0xd1085['query']={'fields':_0x2d12e2('0xeb9'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0xd1085[_0x2d12e2('0x888')]=_0x3c8d8a()['keyBy']([{'option':_0x2d12e2('0x3f5'),'value':'\x27r\x27','disabled':!![]},{'option':'Edit_permission','value':'\x27e\x27'},{'option':_0x2d12e2('0x26a8'),'value':_0x2d12e2('0x311')}],function(_0x4aae3c){const _0x409692=_0x2d12e2;return _0x3c8d8a()[_0x409692('0x166c')](_0x4aae3c[_0x409692('0xa7b')],new RegExp('\x27','g'),'');});_0xd1085['userProfiles']&&_0xd1085[_0x2d12e2('0x1ed5')][_0x2d12e2('0x1a2f')]>0x0&&_0xd1085[_0x2d12e2('0x1ed5')]['rows'][_0x2d12e2('0xa6a')](function(_0x991f40){const _0x25f390=_0x2d12e2,_0x3a620e=[];_0x991f40[_0x25f390('0x1dc1')][_0x25f390('0xa6a')](function(_0x2b52e0){const _0x290bf7=_0x25f390;_0x3a620e[_0x290bf7('0x18bb')](_0xd1085[_0x290bf7('0x888')][_0x2b52e0][_0x290bf7('0xe8b')]);});const _0x5c8832=[];_0x3a620e[_0x25f390('0xa6a')](function(_0x31b74e){const _0x28db82=_0x25f390;_0x5c8832['push'](_0x45b9e3[_0x28db82('0x1467')]('STAFF.'+_0x31b74e[_0x28db82('0x1164')]()));}),_0x991f40['selectedcrudPermissions']=_0x5c8832[_0x25f390('0x2259')](',\x20');});_0xd1085[_0x2d12e2('0x222e')]=_0x16a4d1,_0xd1085[_0x2d12e2('0x28a')]=_0x5cb1fa,_0xd1085[_0x2d12e2('0x1a20')]=_0xadfdd4,_0xd1085[_0x2d12e2('0xdfe')]=_0xe43e70,_0xd1085[_0x2d12e2('0x1014')]=_0x120351,_0xd1085['createOrEditUserProfile']=_0x70d8bf,_0xd1085['deleteUserProfile']=_0x366b6b,_0xd1085[_0x2d12e2('0x168d')]=_0x5cb3ae,_0xd1085[_0x2d12e2('0xfc4')]=_0x56fe12,_0xd1085['deselectUserProfiles']=_0x5d22a7,_0xd1085['selectAllUserProfiles']=_0x2538e4;function _0x16a4d1(_0x58b852){const _0x29b0e6=_0x2d12e2;_0x44728a['go'](_0x29b0e6('0x1acc'),{'id':_0x58b852['id'],'userProfile':_0x58b852,'crudPermissions':_0xd1085[_0x29b0e6('0x1dc1')]});}function _0x5cb1fa(_0x164b5c,_0x24bc64){const _0x5d57fe=_0x2d12e2;_0x3fd5c3[_0x5d57fe('0x1cb7')]({'controller':_0x5d57fe('0x78'),'controllerAs':'vm','templateUrl':_0x2e31ed,'parent':angular['element'](_0x19b5b2[_0x5d57fe('0x1a5')]),'targetEvent':_0x24bc64,'clickOutsideToClose':!![],'locals':{'userProfile':_0x164b5c,'userProfiles':_0xd1085[_0x5d57fe('0x1ed5')]?_0xd1085['userProfiles'][_0x5d57fe('0x6aa')]:[],'crudPermissions':_0xd1085['crudPermissions']}});}function _0xadfdd4(_0x4651a7,_0x3b07e5){const _0x491468=_0x2d12e2,_0x417fc4=_0x3fd5c3[_0x491468('0x1d02')]()[_0x491468('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x491468('0x10e')](_0x491468('0x257b'))+'?')[_0x491468('0xf8b')](_0x491468('0x15b9')+(_0x4651a7[_0x491468('0x10ad')]||'userProfile')+''+'\x20will\x20be\x20deleted.')[_0x491468('0x217')](_0x491468('0x13a8'))[_0x491468('0x21de')](_0x3b07e5)['ok']('OK')[_0x491468('0x1e1f')](_0x491468('0x468'));_0x3fd5c3[_0x491468('0x1cb7')](_0x417fc4)[_0x491468('0x173b')](function(){_0x366b6b(_0x4651a7);},function(){const _0xf6b61d=_0x491468;console[_0xf6b61d('0xe37')](_0xf6b61d('0x468'));});}let _0x373e17=!![],_0x1139a0=0x1;_0x7d20a4[_0x2d12e2('0x1bdb')](_0x2d12e2('0x157b'),function(_0x552d44,_0x5da034){const _0x34c2d7=_0x2d12e2;_0x373e17?_0x372c5e(function(){_0x373e17=![];}):(!_0x5da034&&(_0x1139a0=_0xd1085[_0x34c2d7('0xc49')]['page']),_0x552d44!==_0x5da034&&(_0xd1085['query'][_0x34c2d7('0x182e')]=0x1),!_0x552d44&&(_0xd1085[_0x34c2d7('0xc49')][_0x34c2d7('0x182e')]=_0x1139a0),_0xd1085['getUserProfiles']());});function _0xe43e70(_0x1ff8a1){const _0x5bc29a=_0x2d12e2;_0xd1085[_0x5bc29a('0x1ed5')]=_0x1ff8a1||{'count':0x0,'rows':[]};}function _0x120351(){const _0x4107d7=_0x2d12e2;_0xd1085[_0x4107d7('0xc49')]['offset']=(_0xd1085[_0x4107d7('0xc49')][_0x4107d7('0x182e')]-0x1)*_0xd1085[_0x4107d7('0xc49')][_0x4107d7('0x3e')],_0x5f4c79[_0x4107d7('0x1b4e')](_0x4107d7('0x79b'))?_0xd1085[_0x4107d7('0x2219')]=_0x5aae6e[_0x4107d7('0x257b')][_0x4107d7('0x1d97')](_0xd1085['query'],_0xe43e70)['$promise']:(_0xd1085[_0x4107d7('0xc49')]['id']=_0xd1085[_0x4107d7('0x257b')]['id'],_0xd1085['query'][_0x4107d7('0x17c9')]='UserProfiles',_0xd1085[_0x4107d7('0x2219')]=_0x5aae6e[_0x4107d7('0x257b')][_0x4107d7('0x135b')](_0xd1085['query'],_0xe43e70)[_0x4107d7('0x1964')]);}function _0x70d8bf(_0x307268,_0x2b5136){const _0x2a0418=_0x2d12e2;_0x3fd5c3[_0x2a0418('0x1cb7')]({'controller':_0x2a0418('0x29f'),'controllerAs':'vm','templateUrl':_0x415afb,'parent':angular['element'](_0x19b5b2[_0x2a0418('0x1a5')]),'targetEvent':_0x307268,'clickOutsideToClose':!![],'locals':{'userProfile':_0x2b5136,'userProfiles':_0xd1085['userProfiles']['rows'],'license':_0xd1085[_0x2a0418('0x1a29')],'setting':_0xd1085[_0x2a0418('0x251')],'crudPermissions':_0xd1085[_0x2a0418('0x1dc1')]}});}function _0x366b6b(_0x19bb91){const _0x4b78ff=_0x2d12e2;_0x5aae6e[_0x4b78ff('0x257b')][_0x4b78ff('0x15e8')]({'id':_0x19bb91['id']})[_0x4b78ff('0x1964')][_0x4b78ff('0x173b')](function(){const _0xa1c9b9=_0x4b78ff;_0x3c8d8a()[_0xa1c9b9('0x1a8b')](_0xd1085[_0xa1c9b9('0x1ed5')][_0xa1c9b9('0x6aa')],{'id':_0x19bb91['id']}),_0xd1085[_0xa1c9b9('0x1ed5')]['count']-=0x1,!_0xd1085[_0xa1c9b9('0x1ed5')]['rows']['length']&&_0xd1085[_0xa1c9b9('0x1014')](),_0x3ae61f[_0xa1c9b9('0xdfe')]({'title':_0x3c8d8a()[_0xa1c9b9('0x10e')](_0xa1c9b9('0x2664'))+_0xa1c9b9('0x1c5e'),'msg':_0x19bb91[_0xa1c9b9('0x10ad')]?_0x19bb91['name']+_0xa1c9b9('0x25d2'):''});})[_0x4b78ff('0x103c')](function(_0x5dee80){const _0x8ff0ee=_0x4b78ff;if(_0x5dee80[_0x8ff0ee('0x1e07')]&&_0x5dee80[_0x8ff0ee('0x1e07')][_0x8ff0ee('0x1d4a')]&&_0x5dee80[_0x8ff0ee('0x1e07')][_0x8ff0ee('0x1d4a')][_0x8ff0ee('0x543')]){_0xd1085[_0x8ff0ee('0x1d4a')]=_0x5dee80['data']['errors']||[{'message':_0x5dee80[_0x8ff0ee('0x1b75')](),'type':'SYSTEM:DELETEuserProfile'}];for(let _0x32d444=0x0;_0x32d444<_0x5dee80[_0x8ff0ee('0x1e07')][_0x8ff0ee('0x1d4a')][_0x8ff0ee('0x543')];_0x32d444++){_0x3ae61f[_0x8ff0ee('0x15aa')]({'title':_0x5dee80['data'][_0x8ff0ee('0x1d4a')][_0x32d444]['type'],'msg':_0x5dee80[_0x8ff0ee('0x1e07')]['errors'][_0x32d444][_0x8ff0ee('0x67f')]});}}else _0x3ae61f[_0x8ff0ee('0x15aa')]({'title':_0x5dee80[_0x8ff0ee('0x276f')]?_0x8ff0ee('0x137')+_0x5dee80[_0x8ff0ee('0x276f')]+_0x8ff0ee('0x160c')+_0x5dee80[_0x8ff0ee('0x2696')]:_0x8ff0ee('0xdaa'),'msg':_0x5dee80[_0x8ff0ee('0x1e07')]?JSON[_0x8ff0ee('0x100b')](_0x5dee80[_0x8ff0ee('0x1e07')][_0x8ff0ee('0x67f')]):_0x5dee80['message']||_0x5dee80[_0x8ff0ee('0x1b75')]()});});}function _0x5cb3ae(){const _0x207eae=_0x2d12e2,_0x5eb917=angular['copy'](_0xd1085['selectedUserProfiles']);return _0xd1085[_0x207eae('0xbe2')]=[],_0x5eb917;}function _0x56fe12(_0xffc055){const _0x1ff8f8=_0x2d12e2,_0xed62c9=_0x3fd5c3[_0x1ff8f8('0x1d02')]()[_0x1ff8f8('0x20d6')](_0x1ff8f8('0x10c3'))[_0x1ff8f8('0xf8b')](_0x1ff8f8('0x15b9')+_0xd1085[_0x1ff8f8('0xbe2')][_0x1ff8f8('0x543')]+_0x1ff8f8('0xcb4')+_0x1ff8f8('0xd23'))[_0x1ff8f8('0x217')](_0x1ff8f8('0x1c4c'))[_0x1ff8f8('0x21de')](_0xffc055)['ok']('OK')[_0x1ff8f8('0x1e1f')]('CANCEL');_0x3fd5c3['show'](_0xed62c9)[_0x1ff8f8('0x173b')](function(){const _0x4ee863=_0x1ff8f8;_0xd1085[_0x4ee863('0xbe2')][_0x4ee863('0xa6a')](function(_0x11f05b){_0x366b6b(_0x11f05b);}),_0xd1085[_0x4ee863('0xbe2')]=[];});}function _0x5d22a7(){const _0x32077b=_0x2d12e2;_0xd1085[_0x32077b('0xbe2')]=[];}function _0x2538e4(){const _0x507f27=_0x2d12e2;_0xd1085[_0x507f27('0xbe2')]=_0xd1085[_0x507f27('0x1ed5')][_0x507f27('0x6aa')];}}const _0x1d1a3e=_0x874f10;_0x18ed20[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty','users',_0x566993('0x166f'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting','crudPermissions'];function _0x18ed20(_0x4694d0,_0x1ff942,_0x40be4b,_0x311db7,_0x2fe867,_0x36cd95,_0x510447,_0x69b7d4,_0x5bcdf6,_0x32426e,_0x34fcbb,_0x72c7a1,_0x41fb07,_0x396143){const _0x4c2444=_0x566993,_0xa92a36=this;_0xa92a36[_0x4c2444('0x155f')]=_0x34fcbb[_0x4c2444('0x14d4')](),_0xa92a36[_0x4c2444('0x1d4a')]=[],_0xa92a36[_0x4c2444('0x251')]=_0x41fb07,_0xa92a36[_0x4c2444('0x1a29')]=_0x72c7a1,_0xa92a36[_0x4c2444('0x1dc1')]=_0x396143,_0xa92a36['hasModulePermissions']={},_0xa92a36['passwordPattern']=_0xa92a36[_0x4c2444('0x251')]&&_0xa92a36[_0x4c2444('0x251')][_0x4c2444('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa92a36[_0x4c2444('0x20d6')]='STAFF.EDIT_USER',_0xa92a36[_0x4c2444('0x166f')]=angular[_0x4c2444('0x2e3')](_0x5bcdf6),_0xa92a36[_0x4c2444('0x1e14')]=_0x69b7d4,_0xa92a36[_0x4c2444('0x720')]=![];!_0xa92a36[_0x4c2444('0x166f')]&&(_0xa92a36[_0x4c2444('0x166f')]={'role':_0x4c2444('0x166f'),'autointernal':!![],'context':'from-sip'},_0xa92a36[_0x4c2444('0x20d6')]='STAFF.NEW_USER',_0xa92a36[_0x4c2444('0x720')]=!![]);_0xa92a36[_0x4c2444('0x283')]=_0x17a5e1,_0xa92a36[_0x4c2444('0x10df')]=_0x363252,_0xa92a36['deleteUser']=_0x49a50b,_0xa92a36[_0x4c2444('0x11ae')]=_0x3824be,_0xa92a36[_0x4c2444('0x18e2')]=_0x5c52bd,_0x32426e[_0x4c2444('0x257b')][_0x4c2444('0x1d97')]({'fields':'id,name','sort':'name'})[_0x4c2444('0x1964')][_0x4c2444('0x173b')](function(_0xb00b25){const _0x5aa708=_0x4c2444;_0xa92a36['userProfiles']=_0xb00b25[_0x5aa708('0x6aa')]||[];})[_0x4c2444('0x103c')](function(_0x24e02f){const _0x45e227=_0x4c2444;_0x510447['error']({'title':_0x24e02f[_0x45e227('0x276f')]?_0x45e227('0x137')+_0x24e02f['status']+_0x45e227('0x160c')+_0x24e02f[_0x45e227('0x2696')]:_0x45e227('0x1ced'),'msg':_0x24e02f['data']?JSON[_0x45e227('0x100b')](_0x24e02f[_0x45e227('0x1e07')]):_0x24e02f[_0x45e227('0x1b75')]()});});function _0x17a5e1(){const _0x311bac=_0x4c2444;_0xa92a36[_0x311bac('0x1d4a')]=[],_0x32426e[_0x311bac('0x166f')]['save'](_0xa92a36[_0x311bac('0x166f')])[_0x311bac('0x1964')]['then'](function(_0x54e90e){const _0x3896a9=_0x311bac;_0xa92a36[_0x3896a9('0x1e14')][_0x3896a9('0x1377')](_0x54e90e['toJSON']()),_0x510447[_0x3896a9('0xdfe')]({'title':'User\x20properly\x20created','msg':_0xa92a36[_0x3896a9('0x166f')]['name']?_0xa92a36[_0x3896a9('0x166f')][_0x3896a9('0x10ad')]+_0x3896a9('0x209a'):''}),_0x5c52bd(_0x54e90e);})[_0x311bac('0x103c')](function(_0x1cf47f){const _0x1c87d8=_0x311bac;if(_0x1cf47f[_0x1c87d8('0x1e07')]&&_0x1cf47f[_0x1c87d8('0x1e07')][_0x1c87d8('0x1d4a')]&&_0x1cf47f['data'][_0x1c87d8('0x1d4a')]['length']){_0xa92a36['errors']=_0x1cf47f[_0x1c87d8('0x1e07')][_0x1c87d8('0x1d4a')]||[{'message':_0x1cf47f[_0x1c87d8('0x1b75')](),'type':_0x1c87d8('0x27d7')}];for(let _0x485363=0x0;_0x485363<_0x1cf47f[_0x1c87d8('0x1e07')][_0x1c87d8('0x1d4a')][_0x1c87d8('0x543')];_0x485363+=0x1){_0x510447[_0x1c87d8('0x15aa')]({'title':_0x1cf47f['data']['errors'][_0x485363]['type'],'msg':_0x1cf47f[_0x1c87d8('0x1e07')][_0x1c87d8('0x1d4a')][_0x485363][_0x1c87d8('0x67f')]});}}else _0x510447[_0x1c87d8('0x15aa')]({'title':_0x1cf47f[_0x1c87d8('0x276f')]?_0x1c87d8('0x137')+_0x1cf47f[_0x1c87d8('0x276f')]+_0x1c87d8('0x160c')+_0x1cf47f[_0x1c87d8('0x2696')]:_0x1c87d8('0x27d7'),'msg':_0x1cf47f[_0x1c87d8('0x1e07')]?JSON['stringify'](_0x1cf47f[_0x1c87d8('0x1e07')][_0x1c87d8('0x67f')]):_0x1cf47f['toString']()});});}function _0x363252(){const _0x44d56e=_0x4c2444;_0xa92a36[_0x44d56e('0x1d4a')]=[],_0x32426e[_0x44d56e('0x166f')][_0x44d56e('0x1842')]({'id':_0xa92a36[_0x44d56e('0x166f')]['id']},_0xa92a36[_0x44d56e('0x166f')])[_0x44d56e('0x1964')][_0x44d56e('0x173b')](function(_0x2228c0){const _0x29b6f1=_0x44d56e,_0x23f2a4=_0x3c8d8a()[_0x29b6f1('0x18ab')](_0xa92a36[_0x29b6f1('0x1e14')],{'id':_0x2228c0['id']});_0x23f2a4&&_0x3c8d8a()['merge'](_0x23f2a4,_0x3c8d8a()[_0x29b6f1('0x2114')](_0x2228c0[_0x29b6f1('0xf1f')](),_0x3c8d8a()[_0x29b6f1('0x1d3e')](_0x23f2a4))),_0x510447[_0x29b6f1('0xdfe')]({'title':'User\x20properly\x20saved!','msg':_0xa92a36[_0x29b6f1('0x166f')]['name']?_0xa92a36[_0x29b6f1('0x166f')]['name']+_0x29b6f1('0x2788'):''}),_0x5c52bd(_0x2228c0);})[_0x44d56e('0x103c')](function(_0x34fda3){const _0x2c5752=_0x44d56e;if(_0x34fda3[_0x2c5752('0x1e07')]&&_0x34fda3[_0x2c5752('0x1e07')][_0x2c5752('0x1d4a')]&&_0x34fda3[_0x2c5752('0x1e07')][_0x2c5752('0x1d4a')][_0x2c5752('0x543')]){_0xa92a36[_0x2c5752('0x1d4a')]=_0x34fda3[_0x2c5752('0x1e07')]['errors']||[{'message':_0x34fda3[_0x2c5752('0x1b75')](),'type':_0x2c5752('0x2134')}];for(let _0x56822c=0x0;_0x56822c<_0x34fda3[_0x2c5752('0x1e07')][_0x2c5752('0x1d4a')]['length'];_0x56822c++){_0x510447[_0x2c5752('0x15aa')]({'title':_0x34fda3['data']['errors'][_0x56822c][_0x2c5752('0x1810')],'msg':_0x34fda3[_0x2c5752('0x1e07')][_0x2c5752('0x1d4a')][_0x56822c]['message']});}}else _0x510447['error']({'title':_0x34fda3[_0x2c5752('0x276f')]?_0x2c5752('0x137')+_0x34fda3[_0x2c5752('0x276f')]+_0x2c5752('0x160c')+_0x34fda3['statusText']:'api.user.update','msg':_0x34fda3['data']?JSON['stringify'](_0x34fda3[_0x2c5752('0x1e07')]['message']):_0x34fda3[_0x2c5752('0x1b75')]()});});}function _0x49a50b(_0x3a3340){const _0x3aee1c=_0x4c2444,_0x39a475=_0x34fcbb[_0x3aee1c('0x14d4')]();if(_0x39a475['id']===_0xa92a36[_0x3aee1c('0x166f')]['id'])return _0x510447[_0x3aee1c('0x15aa')]({'title':_0x3aee1c('0x4d5'),'msg':_0x3aee1c('0x1d79')});_0xa92a36[_0x3aee1c('0x1d4a')]=[];const _0x54565b=_0x311db7[_0x3aee1c('0x1d02')]()[_0x3aee1c('0x20d6')](_0x3aee1c('0x8ef'))[_0x3aee1c('0x732')](_0x3aee1c('0x17'))[_0x3aee1c('0x217')](_0x3aee1c('0x248'))['ok'](_0x3aee1c('0x2373'))['cancel'](_0x3aee1c('0x1d4e'))[_0x3aee1c('0x21de')](_0x3a3340);_0x311db7[_0x3aee1c('0x1cb7')](_0x54565b)[_0x3aee1c('0x173b')](function(){const _0x41445a=_0x3aee1c;_0x32426e[_0x41445a('0x166f')][_0x41445a('0x15e8')]({'id':_0xa92a36[_0x41445a('0x166f')]['id']})[_0x41445a('0x1964')][_0x41445a('0x173b')](function(){const _0x891b15=_0x41445a;_0x3c8d8a()[_0x891b15('0x1a8b')](_0xa92a36[_0x891b15('0x1e14')],{'id':_0xa92a36['user']['id']}),_0x510447[_0x891b15('0xdfe')]({'title':_0x891b15('0x112f'),'msg':(_0xa92a36[_0x891b15('0x166f')]['name']||'user')+_0x891b15('0x25d2')}),_0x5c52bd(_0xa92a36['user']);})['catch'](function(_0x2645aa){const _0x40228d=_0x41445a;if(_0x2645aa[_0x40228d('0x1e07')]&&_0x2645aa[_0x40228d('0x1e07')][_0x40228d('0x1d4a')]&&_0x2645aa[_0x40228d('0x1e07')][_0x40228d('0x1d4a')][_0x40228d('0x543')]){_0xa92a36[_0x40228d('0x1d4a')]=_0x2645aa[_0x40228d('0x1e07')][_0x40228d('0x1d4a')]||[{'message':_0x2645aa[_0x40228d('0x1b75')](),'type':_0x40228d('0x17ec')}];for(let _0x589e1b=0x0;_0x589e1b<_0x2645aa[_0x40228d('0x1e07')][_0x40228d('0x1d4a')][_0x40228d('0x543')];_0x589e1b++){_0x510447['error']({'title':_0x2645aa[_0x40228d('0x1e07')][_0x40228d('0x1d4a')][_0x589e1b][_0x40228d('0x1810')],'msg':_0x2645aa[_0x40228d('0x1e07')][_0x40228d('0x1d4a')][_0x589e1b]['message']});}}else _0x510447['error']({'title':_0x2645aa[_0x40228d('0x276f')]?'API:'+_0x2645aa[_0x40228d('0x276f')]+_0x40228d('0x160c')+_0x2645aa[_0x40228d('0x2696')]:_0x40228d('0x17ec'),'msg':_0x2645aa[_0x40228d('0x1e07')]?JSON[_0x40228d('0x100b')](_0x2645aa[_0x40228d('0x1e07')][_0x40228d('0x67f')]):_0x2645aa[_0x40228d('0x67f')]||_0x2645aa[_0x40228d('0x1b75')]()});});},function(){});}function _0x3824be(_0x38a9f6){return _0x38a9f6===null?undefined:new Date(_0x38a9f6);}function _0x5c52bd(_0x55634e){const _0x49d585=_0x4c2444;_0x311db7[_0x49d585('0x1cf4')](_0x55634e);}}const _0x4e8b69=_0x18ed20;_0x51dcee['$inject']=[_0x566993('0x1fe5'),'toasty','api',_0x566993('0x166f'),_0x566993('0x1600')];function _0x51dcee(_0x8f6a2e,_0xc64c13,_0x4ba7ad,_0x52ea4a,_0x2478c4){const _0x3e19d9=_0x566993,_0x19a99e=this;_0x19a99e[_0x3e19d9('0x155f')]=_0x2478c4[_0x3e19d9('0x14d4')](),_0x19a99e['errors']=[],_0x19a99e['user']=_0x52ea4a,_0x19a99e[_0x3e19d9('0x21fd')]=_0xa31cb7,_0x19a99e[_0x3e19d9('0xae')]=_0xfca2d9,_0x19a99e['closeDialog']=_0x1c08a4;function _0xa31cb7(){const _0x363220=_0x3e19d9;_0x19a99e[_0x363220('0x1d4a')]=[],_0x4ba7ad[_0x363220('0x166f')][_0x363220('0x2658')]({'id':_0x19a99e[_0x363220('0x166f')]['id']})[_0x363220('0x1964')][_0x363220('0x173b')](function(_0x559edb){const _0x410103=_0x363220;_0x19a99e[_0x410103('0x166f')][_0x410103('0x200a')]=_0x559edb['api_key']||_0x410103('0xf3f'),_0xc64c13['success']({'title':_0x410103('0x26c1')}),_0x1c08a4();})['catch'](function(_0x5a7716){const _0x2b4951=_0x363220;_0xc64c13['error']({'title':_0x5a7716[_0x2b4951('0x276f')]?'API:'+_0x5a7716[_0x2b4951('0x276f')]+_0x2b4951('0x160c')+_0x5a7716[_0x2b4951('0x2696')]:_0x2b4951('0x12f5'),'msg':_0x5a7716[_0x2b4951('0x1e07')]?JSON['stringify'](_0x5a7716[_0x2b4951('0x1e07')][_0x2b4951('0x67f')]):_0x5a7716[_0x2b4951('0x1b75')]()}),_0x19a99e[_0x2b4951('0x1d4a')]=_0x5a7716[_0x2b4951('0x1e07')][_0x2b4951('0x1d4a')]||[{'message':_0x5a7716[_0x2b4951('0x1b75')](),'type':_0x2b4951('0x12f5')}];});}function _0xfca2d9(){const _0x33875c=_0x3e19d9;_0x19a99e['errors']=[],_0x4ba7ad[_0x33875c('0x166f')][_0x33875c('0xae')]({'id':_0x19a99e[_0x33875c('0x166f')]['id']})[_0x33875c('0x1964')][_0x33875c('0x173b')](function(){const _0x36e81c=_0x33875c;_0x19a99e[_0x36e81c('0x166f')][_0x36e81c('0x200a')]=_0x36e81c('0xf3f'),_0xc64c13[_0x36e81c('0xdfe')]({'title':_0x36e81c('0xc8f')}),_0x1c08a4();})[_0x33875c('0x103c')](function(_0x40a08e){const _0x30a562=_0x33875c;_0xc64c13[_0x30a562('0x15aa')]({'title':_0x40a08e[_0x30a562('0x276f')]?'API:'+_0x40a08e[_0x30a562('0x276f')]+_0x30a562('0x160c')+_0x40a08e['statusText']:'api.user.removeApiKey','msg':_0x40a08e[_0x30a562('0x1e07')]?JSON['stringify'](_0x40a08e[_0x30a562('0x1e07')][_0x30a562('0x67f')]):_0x40a08e[_0x30a562('0x1b75')]()}),_0x19a99e[_0x30a562('0x1d4a')]=_0x40a08e[_0x30a562('0x1e07')][_0x30a562('0x1d4a')]||[{'message':_0x40a08e[_0x30a562('0x1b75')](),'type':_0x30a562('0x5a')}];});}function _0x1c08a4(){_0x8f6a2e['hide']();}}const _0x2e7514=_0x51dcee;_0x4927ee[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x1558')];function _0x4927ee(_0xb7c8f5,_0x359750){const _0x580b1b=_0x566993,_0x420e95=this,_0xfabb1a=0x8,_0x47d761=_0xfabb1a*0x400*0x400;_0x420e95[_0x580b1b('0x166f')]={},_0x420e95[_0x580b1b('0x1dc1')],_0x420e95['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x47d761,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x420e95['ngFlow']={'flow':{}},_0x420e95[_0x580b1b('0x134a')]=![],_0x420e95['fileAdded']=_0x2ebcc4,_0x420e95[_0x580b1b('0xb1e')]=_0x4ea074,_0x420e95[_0x580b1b('0x12b9')]=_0x134d0e,_0x420e95[_0x580b1b('0xb9c')]=_0x4a93cb;function _0x4a93cb(_0x5ea482,_0x5e895e){const _0x2b4462=_0x580b1b;_0x420e95[_0x2b4462('0x166f')]=angular[_0x2b4462('0x2e3')](_0x5ea482),_0x420e95[_0x2b4462('0x1dc1')]=typeof _0x5e895e!==_0x2b4462('0x6e5')?_0x5e895e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x420e95[_0x2b4462('0x8f9')]['target']=_0x2b4462('0x3d6')+_0x420e95['user']['id']+_0x2b4462('0x1f77'),_0x420e95[_0x2b4462('0x166f')][_0x2b4462('0x1f73')]=[];}function _0x2ebcc4(_0x19a83a){const _0x7e44dc=_0x580b1b,_0x334129=[_0x7e44dc('0x13f0'),_0x7e44dc('0xa5a')];if(!_0x3c8d8a()[_0x7e44dc('0x2814')](_0x334129,_0x19a83a[_0x7e44dc('0x131a')]()))return _0x359750[_0x7e44dc('0x15aa')]({'title':'Invalid\x20extension:\x20'+_0x19a83a[_0x7e44dc('0x131a')](),'msg':'Supported\x20extension:\x20'+_0x334129[_0x7e44dc('0x2259')]()}),![];if(_0x19a83a[_0x7e44dc('0x2361')]>_0x47d761)return _0x359750['error']({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0xfabb1a+'MB'}),![];const _0x1720dc={'id':_0x19a83a[_0x7e44dc('0x1b98')],'file':_0x19a83a,'type':'uploading'};return _0x420e95['user']['images'][_0x7e44dc('0x1377')](_0x1720dc),!![];}function _0x4ea074(){const _0x4a0d27=_0x580b1b;_0x420e95[_0x4a0d27('0x428')]['flow'][_0x4a0d27('0x2431')]['headers']={'X-Requested-With':_0x4a0d27('0x12c9'),'Authorization':_0x4a0d27('0x221')+_0xb7c8f5[_0x4a0d27('0x1d97')](_0x4a0d27('0x7c6'))},_0x420e95[_0x4a0d27('0x428')][_0x4a0d27('0x1789')][_0x4a0d27('0xb1e')]();}function _0x134d0e(_0x3fa94f){const _0x46d02b=_0x580b1b;angular[_0x46d02b('0xa6a')](_0x420e95[_0x46d02b('0x166f')]['images'],function(_0x4298bf){const _0x32ffb2=_0x46d02b;if(_0x4298bf['id']===_0x3fa94f[_0x32ffb2('0x1b98')]){const _0x3df27c=new FileReader();_0x3df27c[_0x32ffb2('0x427')](_0x4298bf[_0x32ffb2('0x2522')][_0x32ffb2('0x2522')]),_0x3df27c[_0x32ffb2('0x147d')]=function(_0x27a3e9){const _0xf36fa6=_0x32ffb2;_0x4298bf[_0xf36fa6('0xd1')]=_0x27a3e9[_0xf36fa6('0x235')][_0xf36fa6('0xd09')];},_0x4298bf['type']=_0x32ffb2('0x204b');}});}}const _0x2f479f=_0x4927ee;_0x10e4e9['$inject']=[_0x566993('0x66f'),_0x566993('0x1fe5'),_0x566993('0x1558'),'api',_0x566993('0x166f'),'setting','Auth'];function _0x10e4e9(_0x42a815,_0x9dc4db,_0x30abc9,_0x20c6e0,_0x27be14,_0x294257,_0xf71f38){const _0x58a28c=_0x566993,_0x5f163a=this;_0x5f163a[_0x58a28c('0x155f')]=_0xf71f38['getCurrentUser'](),_0x5f163a[_0x58a28c('0x1d4a')]=[],_0x5f163a[_0x58a28c('0x251')]=_0x294257,_0x5f163a[_0x58a28c('0x644')]=_0x5f163a[_0x58a28c('0x251')][_0x58a28c('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5f163a['user']=_0x27be14,_0x5f163a[_0x58a28c('0xdb6')]='',_0x5f163a['oldPassword']='',_0x5f163a[_0x58a28c('0x2647')]=_0x493a3a,_0x5f163a[_0x58a28c('0x18e2')]=_0x571237,_0x42a815[_0x58a28c('0x1bdb')]('vm.password',function(_0x443285){const _0x41408e=_0x58a28c;!_0x3c8d8a()[_0x41408e('0x7d5')](_0x5f163a[_0x41408e('0xde8')])&&(_0x443285===_0x5f163a[_0x41408e('0xde8')]?_0x42a815[_0x41408e('0x316')][_0x41408e('0xdb6')][_0x41408e('0x1869')](_0x41408e('0x137f'),![]):_0x42a815[_0x41408e('0x316')][_0x41408e('0xdb6')][_0x41408e('0x1869')](_0x41408e('0x137f'),!![]));});function _0x493a3a(){const _0x342fd9=_0x58a28c;_0x5f163a[_0x342fd9('0x1d4a')]=[];const _0x1a5755={'id':_0x5f163a[_0x342fd9('0x166f')]['id'],'newPassword':_0x5f163a[_0x342fd9('0xdb6')]};_0x5f163a[_0x342fd9('0x155f')]['id']==_0x5f163a[_0x342fd9('0x166f')]['id']&&(_0x1a5755['oldPassword']=_0x5f163a[_0x342fd9('0xde8')]),_0x20c6e0[_0x342fd9('0x166f')][_0x342fd9('0x18a7')](_0x1a5755)['$promise'][_0x342fd9('0x173b')](function(){const _0x1f9d9f=_0x342fd9;_0x30abc9[_0x1f9d9f('0xdfe')]({'title':_0x1f9d9f('0x1f62')}),_0x571237();})[_0x342fd9('0x103c')](function(_0x424eb7){const _0xad7902=_0x342fd9;_0x30abc9[_0xad7902('0x15aa')]({'title':_0x424eb7[_0xad7902('0x276f')]?'API:'+_0x424eb7[_0xad7902('0x276f')]+_0xad7902('0x160c')+_0x424eb7['statusText']:_0xad7902('0x27d7'),'msg':_0x424eb7[_0xad7902('0x1e07')]?JSON[_0xad7902('0x100b')](_0x424eb7[_0xad7902('0x1e07')][_0xad7902('0x67f')]):_0x424eb7[_0xad7902('0x1b75')]()}),_0x5f163a[_0xad7902('0x1d4a')]=_0x424eb7[_0xad7902('0x1e07')][_0xad7902('0x1d4a')]||[{'message':_0x424eb7[_0xad7902('0x1b75')](),'type':_0xad7902('0xcdb')}];});}function _0x571237(){const _0x22c936=_0x58a28c;_0x9dc4db[_0x22c936('0x1cf4')]();}}const _0x2843b4=_0x10e4e9,_0x293e63=_0x21a6a1['p']+_0x566993('0xaf0'),_0x4b5ad9=_0x21a6a1['p']+_0x566993('0x68b');_0x233a92[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),'setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),'user',_0x566993('0x170e')];function _0x233a92(_0x2156ba,_0x2ed2a3,_0x3f921f,_0x498632,_0x417b64,_0x1597f0,_0x30ba43,_0x1526dc,_0x5a8bc8,_0x316006,_0x5c8b9d,_0x378402){const _0x466dc6=_0x566993,_0x1ce112=this;_0x1ce112['currentUser']=_0x316006[_0x466dc6('0x14d4')](),_0x1ce112[_0x466dc6('0x1a29')]=_0x1597f0,_0x1ce112['setting']=_0x30ba43,_0x1ce112[_0x466dc6('0x644')]=_0x1ce112['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ce112[_0x466dc6('0x614')]=_0x2ed2a3['protocol']()+'://'+_0x2ed2a3[_0x466dc6('0x4d1')](),_0x1ce112[_0x466dc6('0x166f')]=_0x5c8b9d||_0x2156ba[_0x466dc6('0x197a')][_0x466dc6('0x166f')]||{},_0x1ce112[_0x466dc6('0x170e')]=_0x378402&&_0x378402[_0x466dc6('0x1a2f')]==0x1?_0x378402[_0x466dc6('0x6aa')][0x0]:null,_0x1ce112[_0x466dc6('0x1dc1')]=_0x316006[_0x466dc6('0xde6')](_0x1ce112[_0x466dc6('0x170e')]?_0x1ce112[_0x466dc6('0x170e')][_0x466dc6('0x1dc1')]:null),_0x1ce112[_0x466dc6('0xb0')]={},_0x1ce112['selectedTab']=_0x2156ba[_0x466dc6('0x197a')][_0x466dc6('0x1e66')]||0x0,_0x1ce112['apikeymanagerdialog']=_0x21f89c,_0x1ce112['changepassworddialog']=_0x6c032b,_0x1ce112[_0x466dc6('0x5a4')]=_0x5a8bc8[_0x466dc6('0x2787')],_0x1ce112[_0x466dc6('0x181d')]=_0x395ea0,_0x1ce112[_0x466dc6('0x10df')]=_0x16aa36,_0x1526dc['voiceContext'][_0x466dc6('0x1d97')]({'fields':_0x466dc6('0xd52'),'sort':_0x466dc6('0x10ad')})[_0x466dc6('0x1964')]['then'](function(_0x48c931){const _0x206011=_0x466dc6;_0x1ce112[_0x206011('0x22a9')]=_0x48c931[_0x206011('0x6aa')]||[];})['catch'](function(_0x255cd1){const _0x4433c5=_0x466dc6;_0x5a8bc8[_0x4433c5('0x15aa')]({'title':_0x255cd1['status']?'API:'+_0x255cd1[_0x4433c5('0x276f')]+_0x4433c5('0x160c')+_0x255cd1[_0x4433c5('0x2696')]:'SYSTEM:GET_CONTEXTS','msg':_0x255cd1[_0x4433c5('0x1e07')]?JSON['stringify'](_0x255cd1[_0x4433c5('0x1e07')]):_0x255cd1[_0x4433c5('0x1b75')]()});}),_0x1526dc[_0x466dc6('0x257b')]['get']({'fields':_0x466dc6('0xd52'),'sort':_0x466dc6('0x10ad')})['$promise'][_0x466dc6('0x173b')](function(_0x352445){const _0x39bbf5=_0x466dc6;_0x1ce112['userProfiles']=_0x352445[_0x39bbf5('0x6aa')]||[];})['catch'](function(_0xf970ff){const _0x33ee45=_0x466dc6;_0x5a8bc8['error']({'title':_0xf970ff[_0x33ee45('0x276f')]?_0x33ee45('0x137')+_0xf970ff[_0x33ee45('0x276f')]+_0x33ee45('0x160c')+_0xf970ff['statusText']:_0x33ee45('0x1ced'),'msg':_0xf970ff[_0x33ee45('0x1e07')]?JSON[_0x33ee45('0x100b')](_0xf970ff[_0x33ee45('0x1e07')]):_0xf970ff[_0x33ee45('0x1b75')]()});}),_0x1526dc[_0x466dc6('0x166f')][_0x466dc6('0xc91')]({'id':_0x1ce112[_0x466dc6('0x166f')]['id']})['$promise'][_0x466dc6('0x173b')](function(_0x52c222){const _0x568547=_0x466dc6;_0x1ce112[_0x568547('0x166f')][_0x568547('0x200a')]=_0x52c222[_0x568547('0x15cc')]?_0x52c222[_0x568547('0x15cc')]:_0x568547('0xf3f');})[_0x466dc6('0x103c')](function(_0x47d9cf){const _0x1373ec=_0x466dc6;_0x5a8bc8[_0x1373ec('0x15aa')]({'title':_0x47d9cf[_0x1373ec('0x276f')]?_0x1373ec('0x137')+_0x47d9cf['status']+_0x1373ec('0x160c')+_0x47d9cf[_0x1373ec('0x2696')]:_0x1373ec('0x1fb5'),'msg':_0x47d9cf[_0x1373ec('0x1e07')]?JSON['stringify'](_0x47d9cf[_0x1373ec('0x1e07')]):_0x47d9cf[_0x1373ec('0x1b75')]()});});function _0x21f89c(_0x25004c,_0x357b75){const _0x899af6=_0x466dc6;_0x3f921f[_0x899af6('0x1cb7')]({'controller':_0x899af6('0x1ada'),'controllerAs':'vm','templateUrl':_0x293e63,'parent':angular[_0x899af6('0xb6d')](_0x498632['body']),'targetEvent':_0x357b75,'clickOutsideToClose':!![],'locals':{'user':_0x25004c,'users':_0x1ce112[_0x899af6('0x1e14')]?_0x1ce112['users'][_0x899af6('0x6aa')]:[],'crudPermissions':_0x1ce112[_0x899af6('0x1dc1')]}});}function _0x6c032b(_0x1f6b1c,_0x5b2fa3){const _0x2bf46b=_0x466dc6;_0x3f921f[_0x2bf46b('0x1cb7')]({'controller':_0x2bf46b('0x18e7'),'controllerAs':'vm','templateUrl':_0x4b5ad9,'parent':angular[_0x2bf46b('0xb6d')](_0x498632[_0x2bf46b('0x1a5')]),'targetEvent':_0x5b2fa3,'clickOutsideToClose':!![],'locals':{'user':_0x1f6b1c,'setting':_0x30ba43,'users':_0x1ce112[_0x2bf46b('0x1e14')]?_0x1ce112['users'][_0x2bf46b('0x6aa')]:[],'crudPermissions':_0x1ce112[_0x2bf46b('0x1dc1')]}});}function _0x395ea0(){const _0x5e157f=_0x466dc6;_0x2156ba['go'](_0x5e157f('0xfc1'),{},{'reload':_0x5e157f('0xfc1')});}function _0x16aa36(){const _0x2578e5=_0x466dc6;_0x1ce112['user']=_0x3c8d8a()[_0x2578e5('0x2797')](_0x1ce112[_0x2578e5('0x166f')],_0x2578e5('0x1def')),_0x1526dc[_0x2578e5('0x166f')][_0x2578e5('0x1842')]({'id':_0x1ce112[_0x2578e5('0x166f')]['id']},_0x1ce112[_0x2578e5('0x166f')])[_0x2578e5('0x1964')][_0x2578e5('0x173b')](function(){const _0x5b73b8=_0x2578e5;_0x5a8bc8[_0x5b73b8('0xdfe')]({'title':'User\x20updated!','msg':_0x1ce112['user']['name']?_0x1ce112[_0x5b73b8('0x166f')][_0x5b73b8('0x10ad')]+_0x5b73b8('0x1fd6'):''});})[_0x2578e5('0x103c')](function(_0x355595){const _0x398f19=_0x2578e5;_0x5a8bc8[_0x398f19('0x15aa')]({'title':_0x355595[_0x398f19('0x276f')]?_0x398f19('0x137')+_0x355595[_0x398f19('0x276f')]+'\x20-\x20'+_0x355595[_0x398f19('0x2696')]:_0x398f19('0x1ccd'),'msg':_0x355595[_0x398f19('0x1e07')]?JSON[_0x398f19('0x100b')](_0x355595[_0x398f19('0x1e07')]):_0x355595['toString']()});});}}const _0x1712b3=_0x233a92,_0x3c2c5f=_0x21a6a1['p']+_0x566993('0x21f1');_0x16c28b['$inject']=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state',_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x1e14'),'userProfile',_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x16c28b(_0xe8fe36,_0x120c15,_0x28bfbf,_0xd16851,_0x16046a,_0x2a94fc,_0xe200ef,_0x3d2061,_0x3f523e,_0x577046,_0x31f07f,_0x8af2e3,_0x5c3d7c,_0x118132,_0x430b5b,_0x59a0ca,_0x45e083){const _0x3cc20f=_0x566993,_0x7015b=this;_0x7015b['license']=_0x59a0ca,_0x7015b[_0x3cc20f('0x251')]=_0x45e083,_0x7015b['currentUser']=_0x430b5b[_0x3cc20f('0x14d4')](),_0x7015b[_0x3cc20f('0x1e14')]=_0x3f523e||{'count':0x0,'rows':[]},_0x7015b['userProfile']=_0x577046,_0x7015b[_0x3cc20f('0x170e')]=_0x31f07f&&_0x31f07f[_0x3cc20f('0x1a2f')]==0x1?_0x31f07f[_0x3cc20f('0x6aa')][0x0]:null,_0x7015b['crudPermissions']=_0x430b5b['parseCrudPermissions'](_0x7015b[_0x3cc20f('0x170e')]?_0x7015b['userProfileSection'][_0x3cc20f('0x1dc1')]:null),_0x7015b[_0x3cc20f('0xdf9')]='users',_0x7015b['listOrder']='',_0x7015b[_0x3cc20f('0x2303')]=null,_0x7015b['selectedUsers']=[],_0x7015b[_0x3cc20f('0xc49')]={'fields':_0x3cc20f('0x3c5'),'role':_0x3cc20f('0x2b5'),'sort':_0x3cc20f('0x1769'),'limit':0xa,'page':0x1},_0x7015b[_0x3cc20f('0x1298')]=_0x3c8d8a()[_0x3cc20f('0x128')]([{'option':_0x3cc20f('0x2353'),'value':_0x3cc20f('0x224a')},{'option':_0x3cc20f('0x2265'),'value':_0x3cc20f('0xdd5')}],function(_0x8d000b){const _0x52c37e=_0x3cc20f;return _0x3c8d8a()[_0x52c37e('0x166c')](_0x8d000b[_0x52c37e('0xa7b')],new RegExp('\x27','g'),'');}),_0x7015b[_0x3cc20f('0x188c')]=_0x3c8d8a()[_0x3cc20f('0x128')]([{'option':_0x3cc20f('0x3e2'),'value':_0x3cc20f('0x8d0')},{'option':_0x3cc20f('0x1923'),'value':_0x3cc20f('0x1373')},{'option':'ws','value':_0x3cc20f('0x7e1')},{'option':_0x3cc20f('0x197b'),'value':_0x3cc20f('0x24fc')},{'option':_0x3cc20f('0x11ea'),'value':_0x3cc20f('0x1889')}],function(_0x32301c){const _0x125a62=_0x3cc20f;return _0x3c8d8a()[_0x125a62('0x166c')](_0x32301c[_0x125a62('0xa7b')],new RegExp('\x27','g'),'');}),_0x7015b['arraynat']=_0x3c8d8a()[_0x3cc20f('0x128')]([{'option':_0x3cc20f('0x339'),'value':_0x3cc20f('0xa9f')},{'option':_0x3cc20f('0x281b'),'value':_0x3cc20f('0x1043')},{'option':_0x3cc20f('0x1d41'),'value':_0x3cc20f('0x26ec')},{'option':'no','value':'\x27no\x27'},{'option':_0x3cc20f('0x1633'),'value':_0x3cc20f('0x885')},{'option':'route','value':'\x27route\x27'}],function(_0x2564e5){const _0x183f3b=_0x3cc20f;return _0x3c8d8a()[_0x183f3b('0x166c')](_0x2564e5['value'],new RegExp('\x27','g'),'');}),_0x7015b[_0x3cc20f('0x1be4')]=_0x3c8d8a()['keyBy']([{'option':_0x3cc20f('0x1710'),'value':_0x3cc20f('0xc61')},{'option':_0x3cc20f('0xf90'),'value':_0x3cc20f('0x1179')},{'option':_0x3cc20f('0x2aa'),'value':_0x3cc20f('0x3e4')},{'option':_0x3cc20f('0x12ac'),'value':_0x3cc20f('0x1e48')},{'option':'g729','value':'\x27g729\x27'},{'option':_0x3cc20f('0x27d1'),'value':_0x3cc20f('0x2321')},{'option':_0x3cc20f('0xbe8'),'value':_0x3cc20f('0xb88')}],function(_0x77777c){const _0x55fb15=_0x3cc20f;return _0x3c8d8a()[_0x55fb15('0x166c')](_0x77777c[_0x55fb15('0xa7b')],new RegExp('\x27','g'),'');}),_0x7015b['arrayvideosupport']=_0x3c8d8a()[_0x3cc20f('0x128')]([{'option':_0x3cc20f('0x1029'),'value':_0x3cc20f('0x26ec')},{'option':'No','value':_0x3cc20f('0x13d1')},{'option':_0x3cc20f('0x2322'),'value':_0x3cc20f('0x1484')}],function(_0x467838){return _0x3c8d8a()['replace'](_0x467838['value'],new RegExp('\x27','g'),'');}),_0x7015b[_0x3cc20f('0x222e')]=_0x28a8e2,_0x7015b[_0x3cc20f('0x1a20')]=_0x21bfa7,_0x7015b[_0x3cc20f('0xdfe')]=_0x47bfb5,_0x7015b[_0x3cc20f('0x2050')]=_0x37b4d8,_0x7015b['createOrEditUser']=_0x1ffbda,_0x7015b[_0x3cc20f('0x11f3')]=_0x37ccfe,_0x7015b[_0x3cc20f('0x123')]=_0x5b059b,_0x7015b['deleteSelectedUsers']=_0x5e134e,_0x7015b[_0x3cc20f('0xe2c')]=_0x197fa9,_0x7015b[_0x3cc20f('0x25b4')]=_0xf294d8,_0x8af2e3[_0x3cc20f('0x257b')][_0x3cc20f('0x1d97')]({'fields':'id,name','sort':'name'})[_0x3cc20f('0x1964')][_0x3cc20f('0x173b')](function(_0x3a7563){const _0x1ab298=_0x3cc20f;_0x7015b[_0x1ab298('0x1ed5')]=_0x3a7563[_0x1ab298('0x6aa')]||[];})[_0x3cc20f('0x103c')](function(_0xb30d09){const _0x1fcefd=_0x3cc20f;_0x118132[_0x1fcefd('0x15aa')]({'title':_0xb30d09[_0x1fcefd('0x276f')]?_0x1fcefd('0x137')+_0xb30d09[_0x1fcefd('0x276f')]+_0x1fcefd('0x160c')+_0xb30d09['statusText']:'SYSTEM:GET_USERPROFILES','msg':_0xb30d09[_0x1fcefd('0x1e07')]?JSON[_0x1fcefd('0x100b')](_0xb30d09[_0x1fcefd('0x1e07')]):_0xb30d09['toString']()});});function _0x28a8e2(_0x18be7d){const _0x329fed=_0x3cc20f;_0x28bfbf['go']('app.staff.users.edit',{'id':_0x18be7d['id'],'user':_0x18be7d,'crudPermissions':_0x7015b[_0x329fed('0x1dc1')]});}function _0x21bfa7(_0x963830,_0x1c9383){const _0x35f32e=_0x3cc20f,_0x3c372e=_0x16046a[_0x35f32e('0x1d02')]()[_0x35f32e('0x20d6')](_0x35f32e('0x5bb')+_0x3c8d8a()[_0x35f32e('0x10e')](_0x35f32e('0x166f'))+'?')['htmlContent'](_0x35f32e('0x15b9')+(_0x963830['name']||_0x35f32e('0x166f'))+''+_0x35f32e('0xd23'))[_0x35f32e('0x217')](_0x35f32e('0x26ed'))['targetEvent'](_0x1c9383)['ok']('OK')['cancel'](_0x35f32e('0x468'));_0x16046a[_0x35f32e('0x1cb7')](_0x3c372e)[_0x35f32e('0x173b')](function(){_0x37ccfe(_0x963830);},function(){const _0x1acc99=_0x35f32e;console[_0x1acc99('0xe37')](_0x1acc99('0x468'));});}let _0xa8b19e=!![],_0x1939ca=0x1;_0xe8fe36['$watch'](_0x3cc20f('0x157b'),function(_0x284db1,_0x5c2c3c){const _0x3bb1da=_0x3cc20f;_0xa8b19e?_0xe200ef(function(){_0xa8b19e=![];}):(!_0x5c2c3c&&(_0x1939ca=_0x7015b['query'][_0x3bb1da('0x182e')]),_0x284db1!==_0x5c2c3c&&(_0x7015b[_0x3bb1da('0xc49')][_0x3bb1da('0x182e')]=0x1),!_0x284db1&&(_0x7015b['query'][_0x3bb1da('0x182e')]=_0x1939ca),_0x7015b[_0x3bb1da('0x2050')]());});function _0x47bfb5(_0x21f494){_0x7015b['users']=_0x21f494||{'count':0x0,'rows':[]};}function _0x37b4d8(){const _0x176ab1=_0x3cc20f;_0x7015b[_0x176ab1('0xc49')][_0x176ab1('0x17f0')]=(_0x7015b[_0x176ab1('0xc49')]['page']-0x1)*_0x7015b['query'][_0x176ab1('0x3e')],_0x430b5b[_0x176ab1('0x1b4e')](_0x176ab1('0x79b'))?_0x7015b[_0x176ab1('0x2219')]=_0x8af2e3['user'][_0x176ab1('0x1d97')](_0x7015b['query'],_0x47bfb5)[_0x176ab1('0x1964')]:(_0x7015b[_0x176ab1('0xc49')]['id']=_0x7015b[_0x176ab1('0x257b')]['id'],_0x7015b[_0x176ab1('0xc49')][_0x176ab1('0x17c9')]=_0x176ab1('0x1999'),_0x7015b[_0x176ab1('0x2219')]=_0x8af2e3[_0x176ab1('0x257b')]['getResources'](_0x7015b[_0x176ab1('0xc49')],_0x47bfb5)['$promise']);}function _0x1ffbda(_0x25ed56,_0x583b13){const _0x3b25f0=_0x3cc20f;_0x16046a[_0x3b25f0('0x1cb7')]({'controller':_0x3b25f0('0x126'),'controllerAs':'vm','templateUrl':_0x3c2c5f,'parent':angular['element'](_0x2a94fc[_0x3b25f0('0x1a5')]),'targetEvent':_0x25ed56,'clickOutsideToClose':!![],'locals':{'user':_0x583b13,'users':_0x7015b['users'][_0x3b25f0('0x6aa')],'license':_0x7015b['license'],'setting':_0x7015b[_0x3b25f0('0x251')],'crudPermissions':_0x7015b['crudPermissions']}});}function _0x37ccfe(_0x329048){const _0x26d1e5=_0x3cc20f;_0x8af2e3[_0x26d1e5('0x166f')][_0x26d1e5('0x15e8')]({'id':_0x329048['id']})[_0x26d1e5('0x1964')][_0x26d1e5('0x173b')](function(){const _0x9d5467=_0x26d1e5;_0x3c8d8a()['remove'](_0x7015b[_0x9d5467('0x1e14')]['rows'],{'id':_0x329048['id']}),_0x7015b[_0x9d5467('0x1e14')][_0x9d5467('0x1a2f')]-=0x1,!_0x7015b[_0x9d5467('0x1e14')][_0x9d5467('0x6aa')][_0x9d5467('0x543')]&&_0x7015b[_0x9d5467('0x2050')](),_0x118132[_0x9d5467('0xdfe')]({'title':_0x3c8d8a()[_0x9d5467('0x10e')](_0x9d5467('0x2265'))+'\x20deleted!','msg':_0x329048['name']?_0x329048['name']+_0x9d5467('0x25d2'):''});})[_0x26d1e5('0x103c')](function(_0x2c31f1){const _0x280315=_0x26d1e5;if(_0x2c31f1[_0x280315('0x1e07')]&&_0x2c31f1[_0x280315('0x1e07')]['errors']&&_0x2c31f1[_0x280315('0x1e07')][_0x280315('0x1d4a')][_0x280315('0x543')]){_0x7015b['errors']=_0x2c31f1[_0x280315('0x1e07')][_0x280315('0x1d4a')]||[{'message':_0x2c31f1[_0x280315('0x1b75')](),'type':'SYSTEM:DELETEuser'}];for(let _0x4c8fcf=0x0;_0x4c8fcf<_0x2c31f1[_0x280315('0x1e07')][_0x280315('0x1d4a')][_0x280315('0x543')];_0x4c8fcf++){_0x118132[_0x280315('0x15aa')]({'title':_0x2c31f1[_0x280315('0x1e07')]['errors'][_0x4c8fcf][_0x280315('0x1810')],'msg':_0x2c31f1[_0x280315('0x1e07')][_0x280315('0x1d4a')][_0x4c8fcf][_0x280315('0x67f')]});}}else _0x118132[_0x280315('0x15aa')]({'title':_0x2c31f1[_0x280315('0x276f')]?_0x280315('0x137')+_0x2c31f1['status']+_0x280315('0x160c')+_0x2c31f1[_0x280315('0x2696')]:_0x280315('0x932'),'msg':_0x2c31f1[_0x280315('0x1e07')]?JSON['stringify'](_0x2c31f1[_0x280315('0x1e07')][_0x280315('0x67f')]):_0x2c31f1['message']||_0x2c31f1[_0x280315('0x1b75')]()});});}function _0x5b059b(){const _0x2b7ff1=_0x3cc20f,_0x2f0db3=angular[_0x2b7ff1('0x2e3')](_0x7015b[_0x2b7ff1('0x436')]);return _0x7015b['selectedUsers']=[],_0x2f0db3;}function _0x5e134e(_0x31ec65){const _0x440ef7=_0x3cc20f,_0x35bc52=_0x16046a[_0x440ef7('0x1d02')]()[_0x440ef7('0x20d6')](_0x440ef7('0x1935'))[_0x440ef7('0xf8b')](''+_0x7015b[_0x440ef7('0x436')][_0x440ef7('0x543')]+_0x440ef7('0xcb4')+_0x440ef7('0xd23'))[_0x440ef7('0x217')]('delete\x20Users')[_0x440ef7('0x21de')](_0x31ec65)['ok']('OK')['cancel'](_0x440ef7('0x468'));_0x16046a[_0x440ef7('0x1cb7')](_0x35bc52)['then'](function(){const _0x50f85e=_0x440ef7;_0x7015b[_0x50f85e('0x436')][_0x50f85e('0xa6a')](function(_0x495586){_0x37ccfe(_0x495586);}),_0x7015b[_0x50f85e('0x436')]=[];});}function _0x197fa9(){const _0x29740f=_0x3cc20f;_0x7015b[_0x29740f('0x436')]=[];}function _0xf294d8(){const _0x1a4b13=_0x3cc20f;_0x7015b[_0x1a4b13('0x436')]=_0x7015b[_0x1a4b13('0x1e14')][_0x1a4b13('0x6aa')];}}const _0x7609b8=_0x16c28b,_0x5db635=_0x21a6a1['p']+_0x566993('0x1ad4'),_0x234d07=_0x21a6a1['p']+_0x566993('0x201c'),_0x2341a1=_0x21a6a1['p']+_0x566993('0xd8f'),_0x402c7f=_0x21a6a1['p']+_0x566993('0x561'),_0x1d27ae=_0x21a6a1['p']+_0x566993('0x3f2'),_0x293215=_0x21a6a1['p']+_0x566993('0x1951'),_0x471418=_0x21a6a1['p']+'src/js/modules/main/apps/staff/views/teams/teams.html/teams.html',_0x2008a7=_0x21a6a1['p']+_0x566993('0x2290'),_0x440836=_0x21a6a1['p']+_0x566993('0x228c');_0x3caf27[_0x566993('0x17bb')]=[_0x566993('0xccc'),'$translatePartialLoaderProvider'];function _0x3caf27(_0x5b975f,_0x466712){const _0x3923ac=_0x566993;_0x5b975f[_0x3923ac('0x1a49')]('app.staff',{'abstract':!![],'url':_0x3923ac('0x1151')})['state']('app.staff.users',{'url':_0x3923ac('0x2705'),'views':{'content@app':{'templateUrl':_0x5db635,'controller':_0x3923ac('0x194e')}},'resolve':{'users':['apiResolver',function(_0x1e62c7){const _0x58e945=_0x3923ac;return _0x1e62c7['resolve'](_0x58e945('0x15e6'),{'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':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3923ac('0x2401'),_0x3923ac('0x1600'),function(_0x1f5c2e,_0x1e3869){const _0x1889ad=_0x3923ac;return _0x1e3869[_0x1889ad('0x1b4e')](_0x1889ad('0x79b'))?null:_0x1f5c2e[_0x1889ad('0x155b')](_0x1889ad('0x1f20'),{'fields':_0x1889ad('0x19dd'),'id':_0x1e3869['getCurrentUser']()[_0x1889ad('0x1946')]});}],'userProfileSection':[_0x3923ac('0x2401'),'Auth',function(_0x201369,_0x5a50cd){const _0x2fccef=_0x3923ac;return _0x5a50cd['hasRole'](_0x2fccef('0x79b'))?null:_0x201369[_0x2fccef('0x155b')](_0x2fccef('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5a50cd[_0x2fccef('0x14d4')]()[_0x2fccef('0x1946')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x3923ac('0x2238')})[_0x3923ac('0x1a49')]('app.staff.users.edit',{'url':_0x3923ac('0xb4c'),'params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x234d07,'controller':_0x3923ac('0x1290')}},'resolve':{'user':[_0x3923ac('0x2401'),_0x3923ac('0x1caf'),function(_0xd70dd5,_0x2b85ba){const _0x58f8bf=_0x3923ac;return _0xd70dd5[_0x58f8bf('0x155b')](_0x58f8bf('0x15e6'),{'fields':_0x58f8bf('0x3c5'),'id':_0x2b85ba['id']});}],'userProfileSection':[_0x3923ac('0x2401'),'Auth',function(_0x13218d,_0x2f3deb){const _0x2a8222=_0x3923ac;return _0x13218d[_0x2a8222('0x155b')](_0x2a8222('0x40'),{'fields':_0x2a8222('0x1348'),'userProfileId':_0x2f3deb[_0x2a8222('0x14d4')]()[_0x2a8222('0x1946')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x3923ac('0x2238')})[_0x3923ac('0x1a49')]('app.staff.agents',{'url':_0x3923ac('0x1943'),'views':{'content@app':{'templateUrl':_0x2341a1,'controller':_0x3923ac('0x1689')}},'resolve':{'agents':[_0x3923ac('0x2401'),'Auth',function(_0x172c13,_0x8b1c63){const _0x1de3d3=_0x3923ac;return _0x8b1c63[_0x1de3d3('0x1b4e')]('admin')?_0x172c13['resolve'](_0x1de3d3('0x15e6'),{'fields':_0x1de3d3('0x1b6d'),'role':'agent','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x172c13['resolve'](_0x1de3d3('0x14b3'),{'id':_0x8b1c63[_0x1de3d3('0x14d4')]()[_0x1de3d3('0x1946')],'section':_0x1de3d3('0x1272'),'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':'agent','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3923ac('0x2401'),'Auth',function(_0x52dafd,_0x15ca72){const _0x977134=_0x3923ac;return _0x15ca72[_0x977134('0x1b4e')]('admin')?null:_0x52dafd[_0x977134('0x155b')](_0x977134('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x15ca72['getCurrentUser']()[_0x977134('0x1946')]});}],'userProfileSection':[_0x3923ac('0x2401'),_0x3923ac('0x1600'),function(_0x3efe33,_0x292efa){const _0x1ac9b6=_0x3923ac;return _0x292efa[_0x1ac9b6('0x1b4e')](_0x1ac9b6('0x79b'))?null:_0x3efe33[_0x1ac9b6('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x292efa[_0x1ac9b6('0x14d4')]()[_0x1ac9b6('0x1946')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':'staff'})[_0x3923ac('0x1a49')]('app.staff.agents.edit',{'url':_0x3923ac('0xb4c'),'params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x402c7f,'controller':_0x3923ac('0x1976')}},'resolve':{'agent':['apiResolver',_0x3923ac('0x1caf'),function(_0x2597ee,_0x53df2c){const _0x33445c=_0x3923ac;return _0x2597ee[_0x33445c('0x155b')](_0x33445c('0x15e6'),{'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','id':_0x53df2c['id']});}],'userProfileSection':[_0x3923ac('0x2401'),'Auth',function(_0x3565e1,_0x435485){const _0x3b3227=_0x3923ac;return _0x3565e1[_0x3b3227('0x155b')](_0x3b3227('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x435485[_0x3b3227('0x14d4')]()[_0x3b3227('0x1946')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x3923ac('0x2238')})[_0x3923ac('0x1a49')]('app.staff.telephones',{'url':'/telephones','views':{'content@app':{'templateUrl':_0x1d27ae,'controller':_0x3923ac('0x2759')}},'resolve':{'telephones':['apiResolver',_0x3923ac('0x1600'),function(_0x5b4574,_0x21b2fc){const _0x269fd4=_0x3923ac;return _0x21b2fc[_0x269fd4('0x1b4e')]('admin')?_0x5b4574['resolve'](_0x269fd4('0x15e6'),{'fields':'createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','role':_0x269fd4('0x149c'),'sort':_0x269fd4('0x1769'),'limit':0xa,'offset':0x0}):_0x5b4574[_0x269fd4('0x155b')](_0x269fd4('0x14b3'),{'id':_0x21b2fc[_0x269fd4('0x14d4')]()[_0x269fd4('0x1946')],'section':'Telephones','fields':_0x269fd4('0x253d'),'role':'telephone','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3923ac('0x1600'),function(_0x281da6,_0x154a96){const _0x3bd53d=_0x3923ac;return _0x154a96[_0x3bd53d('0x1b4e')](_0x3bd53d('0x79b'))?null:_0x281da6[_0x3bd53d('0x155b')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x154a96[_0x3bd53d('0x14d4')]()[_0x3bd53d('0x1946')]});}],'userProfileSection':[_0x3923ac('0x2401'),_0x3923ac('0x1600'),function(_0x2a429a,_0x3434c3){const _0x42f9b6=_0x3923ac;return _0x3434c3[_0x42f9b6('0x1b4e')](_0x42f9b6('0x79b'))?null:_0x2a429a[_0x42f9b6('0x155b')](_0x42f9b6('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3434c3[_0x42f9b6('0x14d4')]()[_0x42f9b6('0x1946')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x3923ac('0x2238')})[_0x3923ac('0x1a49')]('app.staff.telephones.edit',{'url':_0x3923ac('0xb4c'),'params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x293215,'controller':'TelephoneController\x20as\x20vm'}},'resolve':{'telephone':['apiResolver',_0x3923ac('0x1caf'),function(_0x45b77c,_0x188d28){const _0x267aa0=_0x3923ac;return _0x45b77c[_0x267aa0('0x155b')]('user@get',{'fields':_0x267aa0('0x253d'),'id':_0x188d28['id']});}],'userProfileSection':['apiResolver',_0x3923ac('0x1600'),function(_0x5f05e4,_0x4d528c){const _0x4d6d03=_0x3923ac;return _0x5f05e4['resolve'](_0x4d6d03('0x40'),{'fields':_0x4d6d03('0x1348'),'userProfileId':_0x4d528c[_0x4d6d03('0x14d4')]()[_0x4d6d03('0x1946')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x3923ac('0x2238')})[_0x3923ac('0x1a49')](_0x3923ac('0x1a86'),{'url':'/teams','views':{'content@app':{'templateUrl':_0x471418,'controller':_0x3923ac('0xbf1')}},'resolve':{'teams':[_0x3923ac('0x2401'),'Auth',function(_0x2a7e64,_0x5b4acf){const _0x1b5b01=_0x3923ac;return _0x5b4acf[_0x1b5b01('0x1b4e')]('admin')?_0x2a7e64[_0x1b5b01('0x155b')](_0x1b5b01('0x4a0'),{'fields':_0x1b5b01('0x2275'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2a7e64[_0x1b5b01('0x155b')]('userProfile@getResources',{'id':_0x5b4acf[_0x1b5b01('0x14d4')]()[_0x1b5b01('0x1946')],'section':_0x1b5b01('0x1e5c'),'fields':_0x1b5b01('0x2275'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3923ac('0x1600'),function(_0x28329a,_0x16ddf8){const _0x2ad459=_0x3923ac;return _0x16ddf8[_0x2ad459('0x1b4e')]('admin')?null:_0x28329a[_0x2ad459('0x155b')](_0x2ad459('0x1f20'),{'fields':_0x2ad459('0x19dd'),'id':_0x16ddf8[_0x2ad459('0x14d4')]()[_0x2ad459('0x1946')]});}],'userProfileSection':[_0x3923ac('0x2401'),_0x3923ac('0x1600'),function(_0x356a29,_0x27d618){const _0x388863=_0x3923ac;return _0x27d618[_0x388863('0x1b4e')]('admin')?null:_0x356a29[_0x388863('0x155b')](_0x388863('0x40'),{'fields':_0x388863('0x1348'),'userProfileId':_0x27d618[_0x388863('0x14d4')]()[_0x388863('0x1946')],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x3923ac('0x2238')})[_0x3923ac('0x1a49')](_0x3923ac('0x11aa'),{'url':'/userProfiles','views':{'content@app':{'templateUrl':_0x2008a7,'controller':_0x3923ac('0xac0')}},'resolve':{'userProfiles':[_0x3923ac('0x2401'),function(_0x5ae6a5){const _0x337b6d=_0x3923ac;return _0x5ae6a5['resolve'](_0x337b6d('0x1f20'),{'fields':'createdAt,updatedAt,id,name,description,crudPermissions','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3923ac('0x2401'),_0x3923ac('0x1600'),function(_0x15dd70,_0x19a50c){const _0x5e7f0a=_0x3923ac;return _0x19a50c['hasRole'](_0x5e7f0a('0x79b'))?null:_0x15dd70[_0x5e7f0a('0x155b')]('userProfile@get',{'fields':_0x5e7f0a('0x19dd'),'id':_0x19a50c['getCurrentUser']()[_0x5e7f0a('0x1946')]});}],'userProfileSection':['apiResolver',_0x3923ac('0x1600'),function(_0x1f728d,_0x4f0e12){const _0x159846=_0x3923ac;return _0x4f0e12[_0x159846('0x1b4e')](_0x159846('0x79b'))?null:_0x1f728d[_0x159846('0x155b')](_0x159846('0x40'),{'fields':_0x159846('0x1348'),'userProfileId':_0x4f0e12[_0x159846('0x14d4')]()['userProfileId'],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':'staff'})['state']('app.staff.userProfiles.edit',{'url':_0x3923ac('0xb4c'),'params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x440836,'controller':_0x3923ac('0x2704')}},'resolve':{'userProfile':['apiResolver','$stateParams',function(_0x5bcfe9,_0x2c7af5){const _0x16041f=_0x3923ac;return _0x5bcfe9['resolve']('userProfile@get',{'fields':_0x16041f('0xeb9'),'id':_0x2c7af5['id']});}],'userProfileSection':[_0x3923ac('0x2401'),_0x3923ac('0x1600'),function(_0xdab89c,_0x48c407){const _0x39979d=_0x3923ac;return _0xdab89c[_0x39979d('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x48c407['getCurrentUser']()[_0x39979d('0x1946')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x3923ac('0x2238')}),_0x466712[_0x3923ac('0x1b1a')](_0x3923ac('0x1d39'));}angular[_0x566993('0x22c4')]('app.staff',[_0x566993('0x2a9'),_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),'ng-sortable',_0x566993('0x20fc'),_0x566993('0x8a3'),'mdPickers',_0x566993('0x1698'),_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),'angular-cron-jobs','ngEmbed',_0x566993('0x11c7'),'material.components.expansionPanels',_0x566993('0x1eab'),_0x566993('0x2392')])[_0x566993('0xea9')](_0x3caf27)[_0x566993('0x1e65')]('AgentsController',_0x49d2e4)[_0x566993('0x1e65')]('CreateOrEditAgentDialogController',_0x16856e)[_0x566993('0x1e65')](_0x566993('0x106f'),_0x2e353f)[_0x566993('0x1e65')](_0x566993('0x1287'),_0x222d35)[_0x566993('0x1e65')](_0x566993('0x11d9'),_0xa2f756)['controller'](_0x566993('0xfba'),_0x4cd427)[_0x566993('0x1e65')](_0x566993('0x2076'),_0x29d23a)[_0x566993('0x1e65')](_0x566993('0x1200'),_0x2e4121)[_0x566993('0x1e65')]('CreateOrEditTeamDialogController',_0x3d9512)[_0x566993('0x1e65')](_0x566993('0x263c'),_0x17e61f)['controller'](_0x566993('0x3e9'),_0x1574c5)[_0x566993('0x1e65')](_0x566993('0x873'),_0x4a169e)[_0x566993('0x1e65')](_0x566993('0x2049'),_0x151d5f)[_0x566993('0x1e65')]('TelephoneController',_0x37d272)[_0x566993('0x1e65')](_0x566993('0x14dc'),_0x3387ea)[_0x566993('0x1e65')]('CreateOrEditUserProfileDialogController',_0x4dee85)[_0x566993('0x1e65')](_0x566993('0x78'),_0x43a2a9)[_0x566993('0x1e65')]('UserProfilePermissionsController',_0x541598)[_0x566993('0x1e65')]('UserProfilepermissionsmanageController',_0x5c121f)[_0x566993('0x1e65')]('UserProfileController',_0x588c90)[_0x566993('0x1e65')](_0x566993('0x1fa3'),_0x1d1a3e)[_0x566993('0x1e65')](_0x566993('0x126'),_0x4e8b69)['controller'](_0x566993('0x1ada'),_0x2e7514)[_0x566993('0x1e65')](_0x566993('0x19ef'),_0x2f479f)['controller'](_0x566993('0x18e7'),_0x2843b4)[_0x566993('0x1e65')]('UserController',_0x1712b3)[_0x566993('0x1e65')](_0x566993('0x10a3'),_0x7609b8);const _0x51a41c=_0x21a6a1['p']+_0x566993('0xbb0'),_0x5e790e=_0x21a6a1['p']+_0x566993('0x1f3e');_0xaa0cec[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$state','$stateParams',_0x566993('0x1fe5'),'$q',_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0xd53'),'lists',_0x566993('0x2240'),_0x566993('0x13df'),_0x566993('0x20b7'),_0x566993('0x22ac'),'toasty',_0x566993('0x1600'),_0x566993('0x1a29')];function _0xaa0cec(_0x5ed4b9,_0x102a3c,_0x42e16e,_0x14c49c,_0x439e81,_0x24043b,_0x2d469c,_0x279d0d,_0x4d7a38,_0x5cc63f,_0xbfc484,_0x5242c5,_0x596ff8,_0x49b91e,_0x4414e0,_0x2e8ca7,_0x5ab635,_0x285e09,_0x3a55e8){const _0x2373b5=_0x566993,_0x3ea256=this;_0x3ea256[_0x2373b5('0x155f')]=_0x285e09[_0x2373b5('0x14d4')](),_0x3ea256['license']=_0x3a55e8,_0x3ea256[_0x2373b5('0x257b')]=_0x279d0d,_0x3ea256[_0x2373b5('0x170e')]=_0x4d7a38&&_0x4d7a38[_0x2373b5('0x1a2f')]==0x1?_0x4d7a38['rows'][0x0]:null,_0x3ea256[_0x2373b5('0x1dc1')]=_0x285e09['parseCrudPermissions'](_0x3ea256[_0x2373b5('0x170e')]?_0x3ea256['userProfileSection'][_0x2373b5('0x1dc1')]:null);const _0x17d008=0x3c,_0x2c9f21=_0x17d008*0x400*0x400;_0x3ea256[_0x2373b5('0x8f9')]={'target':_0x2373b5('0xfa0'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2c9f21,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3ea256[_0x2373b5('0xd53')]=_0xbfc484||{'count':0x0,'rows':[]},_0x3ea256[_0x2373b5('0x2010')]={'hidden':![],'hover':![],'isOpen':![]},_0x3ea256['table']='cm_contacts',_0x3ea256[_0x2373b5('0x101f')]=[],_0x3ea256[_0x2373b5('0x9e8')]=_0x5242c5||{'rows':[],'count':0x0},_0x3ea256['companies']=_0x49b91e||{'rows':[],'count':0x0},_0x3ea256[_0x2373b5('0x22ac')]=_0x2e8ca7||{'rows':[],'count':0x0},_0x3ea256[_0x2373b5('0x2240')]=_0x596ff8,_0x3ea256[_0x2373b5('0x20b7')]=_0x4414e0,_0x3ea256['selectedTags']=[],_0x3ea256['selectedList']=null,_0x3ea256['selectedCompany']=null,_0x3ea256['query']=_0x3c8d8a()[_0x2373b5('0x9ef')]({'includeAll':!![],'sort':_0x2373b5('0x1769'),'limit':0xa,'offset':0x0,'page':0x1},_0x439e81),_0x3ea256[_0x2373b5('0x19eb')]=_0x4ffb95,_0x3ea256['deleteconfirm']=_0x49b383,_0x3ea256[_0x2373b5('0xdfe')]=_0x2e80d3,_0x3ea256[_0x2373b5('0x2641')]=_0x51754d,_0x3ea256[_0x2373b5('0x123f')]=_0x46f50d,_0x3ea256[_0x2373b5('0x2ed')]=_0x2c1e64,_0x3ea256['duplicateContact']=_0x5ed384,_0x3ea256[_0x2373b5('0x5da')]=_0x17fc1f,_0x3ea256[_0x2373b5('0x110')]=_0x89c9df,_0x3ea256['exportSelectedContacts']=_0x3a0270,_0x3ea256[_0x2373b5('0x16e8')]=_0x3c6b02,_0x3ea256[_0x2373b5('0x2235')]=_0xac16ed,_0x3ea256[_0x2373b5('0x18c6')]=_0x3da881,_0x3ea256[_0x2373b5('0x1437')]=_0x3f76cd,_0x3ea256[_0x2373b5('0xf18')]=_0x57c6db,_0x3ea256[_0x2373b5('0x143')]=_0x25a6c1,_0x3ea256['importContacts']=_0x3d3f4c,_0x3ea256[_0x2373b5('0x1f1b')]=_0x45982d,_0x3ea256['fileAdded']=_0x1c2f66;_0x14c49c[_0x2373b5('0x197a')]['ListId']&&(_0x3ea256[_0x2373b5('0x240e')]=_0x14c49c[_0x2373b5('0x197a')][_0x2373b5('0xef2')]);_0x14c49c[_0x2373b5('0x197a')][_0x2373b5('0x1d7e')]&&(_0x3ea256[_0x2373b5('0x80e')]=_0x14c49c['params']['CompanyId']);_0x5ed4b9[_0x2373b5('0x1bdb')](_0x2373b5('0x1e09'),function(_0x26f202){const _0x2c8e1c=_0x2373b5;_0x26f202?_0x42e16e(function(){const _0x5ab5a0=a0_0xde5e;_0x5ed4b9['tooltipVisible']=_0x3ea256[_0x5ab5a0('0x2010')][_0x5ab5a0('0x21f4')];},0x258):_0x5ed4b9[_0x2c8e1c('0x359')]=_0x3ea256['options'][_0x2c8e1c('0x21f4')];});function _0x46f50d(){const _0x197e79=_0x2373b5;if(!_0x285e09[_0x197e79('0x1b4e')](_0x197e79('0x79b'))){const _0x3ab645=_0x3c8d8a()(_0x3ea256[_0x197e79('0xd53')][_0x197e79('0x6aa')])[_0x197e79('0x8a2')](function(_0x2412a7){const _0x5e5d0d=_0x197e79;return{'id':_0x2412a7[_0x5e5d0d('0x1d7e')]};})['uniqBy']('id')[_0x197e79('0x278d')](function(_0x4fa309){return _0x4fa309['id']&&_0x4fa309['id']>0x0;})[_0x197e79('0x169')](_0x3ea256[_0x197e79('0x13df')]['rows'],'id')['value']();if(!_0x3c8d8a()[_0x197e79('0x1a56')](_0x3ab645)){const _0x14a17b=[];_0x3ab645['forEach'](function(_0x4ff834){const _0x3e3b28=_0x197e79;_0x14a17b[_0x3e3b28('0x18bb')](_0x5cc63f[_0x3e3b28('0x1904')][_0x3e3b28('0x1d97')]({'id':_0x4ff834['id'],'fields':_0x3e3b28('0xd52')})[_0x3e3b28('0x1964')]);}),_0x2d469c[_0x197e79('0x27c8')](_0x14a17b)[_0x197e79('0x173b')](function(_0x23a4a5){const _0x1e8d0d=_0x197e79;_0x23a4a5[_0x1e8d0d('0xa6a')](function(_0x85e5ec){const _0x12c0fa=_0x1e8d0d,_0x4d87e8=_0x85e5ec[_0x12c0fa('0xf1f')]();_0x4d87e8[_0x12c0fa('0x268e')]=![],_0x3ea256[_0x12c0fa('0x13df')][_0x12c0fa('0x6aa')][_0x12c0fa('0x18bb')](_0x4d87e8);const _0x5c3907={};_0x5c3907[_0x4d87e8['id']]=_0x4d87e8[_0x12c0fa('0x10ad')],_0x3ea256['companiesMap']=_0x3c8d8a()[_0x12c0fa('0x26ca')](_0x3ea256[_0x12c0fa('0x20b7')],_0x5c3907);});})[_0x197e79('0x103c')](function(_0x867d28){const _0x40ebbf=_0x197e79;_0x5ab635[_0x40ebbf('0x15aa')]({'title':_0x867d28['status']?_0x40ebbf('0x137')+_0x867d28[_0x40ebbf('0x276f')]+_0x40ebbf('0x160c')+_0x867d28['statusText']:'GET_COMPANY','msg':_0x867d28[_0x40ebbf('0x1e07')]?JSON[_0x40ebbf('0x100b')](_0x867d28['data']['message']):_0x867d28[_0x40ebbf('0x1b75')]()});});}}}function _0x57c6db(_0x3bf053){const _0x5f46da=_0x2373b5,_0x5ef461=_0x24043b[_0x5f46da('0x1b38')]()[_0x5f46da('0x20d6')]('What\x20would\x20you\x20name\x20your\x20list?')[_0x5f46da('0x113b')](_0x5f46da('0x2499'))['ariaLabel'](_0x5f46da('0x2499'))['targetEvent'](_0x3bf053)['ok']('Ok')['cancel'](_0x5f46da('0x1d4e'));return _0x24043b['show'](_0x5ef461)[_0x5f46da('0x173b')](function(_0xd6e65d){const _0x5696ae=_0x5f46da;if(_0xd6e65d)return _0x5cc63f[_0x5696ae('0xbb3')][_0x5696ae('0x1195')]({'name':_0xd6e65d});else _0x5ab635[_0x5696ae('0x15aa')]({'title':_0x5696ae('0x15bc'),'msg':_0x5696ae('0x1b54')});})['then'](function(_0x495eee){const _0x588171=_0x5f46da;_0x495eee&&(_0x3ea256[_0x588171('0x9e8')][_0x588171('0x6aa')][_0x588171('0x18bb')](_0x495eee),_0x5ab635[_0x588171('0xdfe')]({'title':_0x588171('0x1241'),'msg':_0x495eee['name']?_0x495eee[_0x588171('0x10ad')]+_0x588171('0x209a'):''}));});}function _0x45982d(){const _0x3daecd=_0x2373b5;return _0x285e09['hasPermission'](0x12f)||_0x285e09['hasRole'](_0x3daecd('0x79b'));}function _0x25a6c1(_0x54dbdb){const _0x347ed0=_0x2373b5,_0x32a8b9=_0x24043b[_0x347ed0('0x1b38')]()[_0x347ed0('0x20d6')](_0x347ed0('0x2115'))['placeholder'](_0x347ed0('0x797'))[_0x347ed0('0x217')](_0x347ed0('0x797'))[_0x347ed0('0x21de')](_0x54dbdb)['ok']('Ok')[_0x347ed0('0x1e1f')]('Cancel');return _0x24043b[_0x347ed0('0x1cb7')](_0x32a8b9)[_0x347ed0('0x173b')](function(_0x510d0c){const _0x368527=_0x347ed0;if(_0x510d0c)return _0x5cc63f[_0x368527('0x1904')][_0x368527('0x1195')]({'name':_0x510d0c});else _0x5ab635[_0x368527('0x15aa')]({'title':_0x368527('0xdd8'),'msg':_0x368527('0x1330')});})[_0x347ed0('0x173b')](function(_0x118d0f){const _0x582e77=_0x347ed0;_0x118d0f&&(_0x3ea256[_0x582e77('0x13df')][_0x582e77('0x6aa')][_0x582e77('0x18bb')](_0x118d0f),_0x5ab635[_0x582e77('0xdfe')]({'title':_0x582e77('0x2318'),'msg':_0x118d0f[_0x582e77('0x10ad')]?_0x118d0f['name']+'\x20has\x20been\x20created!':''}));});}function _0x3f76cd(_0x3fb91c){const _0x108068=_0x2373b5,_0x1ac857=_0x24043b['prompt']()[_0x108068('0x20d6')](_0x108068('0x14c7'))[_0x108068('0x113b')](_0x108068('0x1a66'))['ariaLabel']('Tag\x20name')[_0x108068('0x21de')](_0x3fb91c)['ok']('Ok')[_0x108068('0x1e1f')](_0x108068('0x1d4e'));return _0x24043b[_0x108068('0x1cb7')](_0x1ac857)[_0x108068('0x173b')](function(_0xed3872){const _0x1a2d50=_0x108068;if(_0xed3872)return _0x5cc63f[_0x1a2d50('0x23b4')]['save']({'name':_0xed3872});else _0x5ab635[_0x1a2d50('0x15aa')]({'title':'Error\x20creating\x20tag!','msg':_0x1a2d50('0x253a')});})[_0x108068('0x173b')](function(_0x23343b){const _0x5ed740=_0x108068;_0x23343b&&(_0x3ea256[_0x5ed740('0x22ac')][_0x5ed740('0x6aa')][_0x5ed740('0x18bb')](_0x23343b),_0x5ab635['success']({'title':_0x5ed740('0xb43'),'msg':_0x23343b[_0x5ed740('0x23b4')]?_0x23343b[_0x5ed740('0x10ad')]+'\x20has\x20been\x20created!':''}));});}function _0x3d3f4c(_0x4290be,_0x3eceb1){const _0x28873b=_0x2373b5,_0x1b05b2=JSON[_0x28873b('0x1d5e')](_0x3eceb1);_0x24043b[_0x28873b('0x1cb7')]({'controller':'ImportContactsDialogController','controllerAs':'vm','templateUrl':_0x51a41c,'parent':angular['element'](_0x102a3c[_0x28873b('0x1a5')]),'clickOutsideToClose':![],'locals':{'lists':_0x5242c5,'companies':_0x49b91e,'file':_0x1b05b2[_0x28873b('0x2522')],'fields':_0x1b05b2[_0x28873b('0x2340')],'license':_0x3ea256[_0x28873b('0x1a29')]}})['then'](function(){_0x3ea256['getContacts']();})['catch'](function(){const _0x4c8677=_0x28873b;console[_0x4c8677('0x15aa')]();});}function _0x4ffb95(_0x527756){const _0x4d7190=_0x2373b5;_0x14c49c['go'](_0x4d7190('0x24d0'),{'id':_0x527756['id'],'crudPermissions':_0x3ea256[_0x4d7190('0x1dc1')]});}function _0x49b383(_0x40d865,_0x281423){const _0x4d2a0c=_0x2373b5,_0x1e1b14=_0x24043b[_0x4d2a0c('0x1d02')]()[_0x4d2a0c('0x20d6')](_0x4d2a0c('0xa39'))[_0x4d2a0c('0xf8b')](_0x4d2a0c('0x15b9')+(_0x40d865[_0x4d2a0c('0x1e50')]||_0x40d865['email']||_0x40d865[_0x4d2a0c('0xa04')]||'Contact')+_0x4d2a0c('0x24be')+'\x20will\x20be\x20deleted.')[_0x4d2a0c('0x217')](_0x4d2a0c('0x2ae'))[_0x4d2a0c('0x21de')](_0x281423)['ok']('OK')['cancel']('CANCEL');_0x24043b[_0x4d2a0c('0x1cb7')](_0x1e1b14)['then'](function(){_0x89c9df(_0x40d865);});}function _0x1c2f66(_0x4054df){const _0x321ca1=_0x2373b5,_0x3edbab=[_0x321ca1('0x246f')];if(!_0x3c8d8a()[_0x321ca1('0x2814')](_0x3edbab,_0x4054df[_0x321ca1('0x131a')]()))return _0x5ab635[_0x321ca1('0x15aa')]({'title':_0x321ca1('0xc5d')+_0x4054df[_0x321ca1('0x131a')](),'msg':'Supported\x20extension:\x20'+_0x3edbab[_0x321ca1('0x2259')]()}),![];if(_0x4054df[_0x321ca1('0x2361')]>_0x2c9f21)return _0x5ab635[_0x321ca1('0x15aa')]({'title':_0x321ca1('0xd1e'),'msg':_0x321ca1('0xdfc')+_0x17d008+'MB'}),![];return!![];}let _0x5bcdbc=!![],_0x22f8ff=0x1;_0x5ed4b9[_0x2373b5('0x1bdb')](_0x2373b5('0x157b'),function(_0x1e940c,_0x2309b8){const _0x40135e=_0x2373b5;_0x5bcdbc?_0x42e16e(function(){_0x5bcdbc=![];}):(!_0x2309b8&&(_0x22f8ff=_0x3ea256['query']['page']),_0x1e940c!==_0x2309b8&&(_0x3ea256[_0x40135e('0xc49')]['page']=0x1),!_0x1e940c&&(_0x3ea256[_0x40135e('0xc49')][_0x40135e('0x182e')]=_0x22f8ff),_0x3ea256[_0x40135e('0x2641')]());},!![]),_0x5ed4b9[_0x2373b5('0x1bdb')](_0x2373b5('0xc3a'),function(_0x4aa187,_0x3a1dd2){const _0x84a2c7=_0x2373b5;_0x4aa187!==_0x3a1dd2&&(_0x3ea256[_0x84a2c7('0xc49')]['ListId']=_0x3ea256['selectedList']||undefined,_0x3ea256['getContacts']());}),_0x5ed4b9[_0x2373b5('0x1bdb')](_0x2373b5('0x1083'),function(_0x2650f0,_0x52f073){const _0x39ade6=_0x2373b5;_0x2650f0!==_0x52f073&&(_0x3ea256['query']['CompanyId']=_0x3ea256[_0x39ade6('0x80e')]||undefined,_0x3ea256[_0x39ade6('0x2641')]());}),_0x5ed4b9[_0x2373b5('0x1bdb')]('vm.selectedTags',function(_0x356edf,_0x157db2){const _0x57833f=_0x2373b5;(_0x356edf[_0x57833f('0x543')]||_0x157db2['length'])&&_0x3ea256[_0x57833f('0x2641')]();});function _0x2e80d3(_0x3979c8){const _0xd8b078=_0x2373b5;_0x3ea256[_0xd8b078('0xd53')]=_0x3979c8||{'count':0x0,'rows':[]};}function _0x51754d(){const _0x328caa=_0x2373b5;_0x3ea256[_0x328caa('0xc49')]['offset']=(_0x3ea256[_0x328caa('0xc49')][_0x328caa('0x182e')]-0x1)*_0x3ea256[_0x328caa('0xc49')][_0x328caa('0x3e')],_0x285e09[_0x328caa('0x1b4e')](_0x328caa('0x79b'))?_0x3ea256[_0x328caa('0x2219')]=_0x5cc63f['cmContact']['get'](_0x3ea256[_0x328caa('0xc49')],_0x2e80d3)['$promise']:(_0x3ea256[_0x328caa('0xc49')]['id']=_0x3ea256[_0x328caa('0x257b')]['id'],_0x3ea256[_0x328caa('0xc49')][_0x328caa('0xef2')]=!_0x3ea256[_0x328caa('0xc49')][_0x328caa('0xef2')]?_0x3c8d8a()[_0x328caa('0x8a2')](_0x3ea256[_0x328caa('0x9e8')][_0x328caa('0x6aa')],'id'):_0x3ea256[_0x328caa('0xc49')][_0x328caa('0xef2')],_0x3ea256[_0x328caa('0xc49')][_0x328caa('0x1d7e')]=!_0x3ea256['query'][_0x328caa('0x1d7e')]?_0x3c8d8a()(_0x3ea256[_0x328caa('0x13df')][_0x328caa('0x6aa')])[_0x328caa('0x278d')]({'canSelect':undefined})['map']('id')[_0x328caa('0xa7b')]():_0x3ea256[_0x328caa('0xc49')][_0x328caa('0x1d7e')],_0x3ea256[_0x328caa('0xc49')][_0x328caa('0x17c9')]='Contacts',_0x3ea256['promise']=_0x5cc63f[_0x328caa('0x257b')][_0x328caa('0x135b')](_0x3ea256[_0x328caa('0xc49')],_0x2e80d3)['$promise']);}function _0x17fc1f(_0x19af1b,_0x4454c9){const _0x4e9f56=_0x2373b5;_0x4454c9&&_0x4454c9[_0x4e9f56('0x1182')]&&(_0x4454c9[_0x4e9f56('0x1182')]=new Date(_0x4454c9[_0x4e9f56('0x1182')])),_0x24043b['show']({'controller':_0x4e9f56('0xcc9'),'controllerAs':'vm','templateUrl':_0x5e790e,'parent':angular['element'](_0x102a3c[_0x4e9f56('0x1a5')]),'targetEvent':_0x19af1b,'clickOutsideToClose':!![],'locals':{'ListId':_0x3ea256[_0x4e9f56('0xc49')]['ListId']||_0x14c49c[_0x4e9f56('0x197a')][_0x4e9f56('0xef2')],'CompanyId':_0x3ea256[_0x4e9f56('0xc49')][_0x4e9f56('0x1d7e')]||_0x14c49c[_0x4e9f56('0x197a')][_0x4e9f56('0x1d7e')],'contact':_0x4454c9,'contacts':_0x3ea256[_0x4e9f56('0xd53')][_0x4e9f56('0x6aa')],'companies':_0x3ea256[_0x4e9f56('0x13df')],'lists':_0x3ea256[_0x4e9f56('0x9e8')],'setting':null,'crudPermissions':_0x3ea256[_0x4e9f56('0x1dc1')]}});}function _0x5ed384(_0x1ed410,_0x2ad845){const _0x55a482=_0x2373b5;_0x24043b[_0x55a482('0x1cb7')]({'controller':_0x55a482('0x25ba'),'controllerAs':'vm','templateUrl':_0xf36d4e,'parent':angular[_0x55a482('0xb6d')](_0x102a3c[_0x55a482('0x1a5')]),'targetEvent':_0x1ed410,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x55d599){const _0x545c57=_0x55a482;return _0x55d599[_0x545c57('0x155b')]('cmContact@get',{'id':_0x2ad845['id']});}],'lists':[_0x55a482('0x2401'),_0x55a482('0x1600'),function(_0x2a2586,_0x122999){const _0x4c2945=_0x55a482;return _0x122999['hasRole'](_0x4c2945('0x79b'))?_0x2a2586['resolve'](_0x4c2945('0x1b8b'),{'fields':_0x4c2945('0xd52'),'nolimit':!![]}):_0x2a2586[_0x4c2945('0x155b')](_0x4c2945('0x14b3'),{'id':_0x122999[_0x4c2945('0x14d4')]()[_0x4c2945('0x1946')],'section':_0x4c2945('0xd8b'),'fields':_0x4c2945('0xd52'),'nolimit':!![]});}]},'locals':{'contacts':_0x3ea256['contacts'][_0x55a482('0x6aa')]}});}function _0x2c1e64(_0x2af2ae,_0x41094f){const _0xd1da32=_0x2373b5;_0x24043b[_0xd1da32('0x1cb7')]({'controller':'MergeContactDialogController','controllerAs':'vm','templateUrl':_0x373d52,'parent':angular[_0xd1da32('0xb6d')](_0x102a3c[_0xd1da32('0x1a5')]),'targetEvent':_0x2af2ae,'clickOutsideToClose':!![],'resolve':{'contact':[_0xd1da32('0x2401'),function(_0x3038ef){const _0xf2a5bb=_0xd1da32;return _0x3038ef[_0xf2a5bb('0x155b')](_0xf2a5bb('0x2778'),{'id':_0x41094f['id']});}],'lists':['apiResolver',_0xd1da32('0x1600'),function(_0x386cd4,_0x2fcacb){const _0x336486=_0xd1da32;return _0x2fcacb[_0x336486('0x1b4e')](_0x336486('0x79b'))?_0x386cd4[_0x336486('0x155b')](_0x336486('0x1b8b'),{'fields':_0x336486('0xd52'),'nolimit':!![]}):_0x386cd4[_0x336486('0x155b')](_0x336486('0x14b3'),{'id':_0x2fcacb[_0x336486('0x14d4')]()[_0x336486('0x1946')],'section':_0x336486('0xd8b'),'fields':_0x336486('0xd52'),'nolimit':!![]});}]},'locals':{'contacts':_0x3ea256[_0xd1da32('0xd53')]['rows']}});}function _0x89c9df(_0x35618b){const _0x21fb93=_0x2373b5;_0x5cc63f[_0x21fb93('0x1197')][_0x21fb93('0x15e8')]({'id':_0x35618b['id']})[_0x21fb93('0x1964')][_0x21fb93('0x173b')](function(){const _0xbc1dfb=_0x21fb93;_0x3c8d8a()[_0xbc1dfb('0x1a8b')](_0x3ea256[_0xbc1dfb('0xd53')]['rows'],{'id':_0x35618b['id']}),_0x3ea256[_0xbc1dfb('0xd53')][_0xbc1dfb('0x1a2f')]-=0x1,!_0x3ea256[_0xbc1dfb('0xd53')]['rows'][_0xbc1dfb('0x543')]&&_0x3ea256[_0xbc1dfb('0x2641')](),_0x5ab635[_0xbc1dfb('0xdfe')]({'title':_0xbc1dfb('0x1675'),'msg':_0x35618b[_0xbc1dfb('0x10ad')]?_0x35618b[_0xbc1dfb('0x10ad')]+_0xbc1dfb('0x25d2'):''});})[_0x21fb93('0x103c')](function(_0x12f022){const _0x10f656=_0x21fb93;if(_0x12f022[_0x10f656('0x1e07')]&&_0x12f022['data'][_0x10f656('0x1d4a')]&&_0x12f022['data']['errors'][_0x10f656('0x543')]){_0x3ea256[_0x10f656('0x1d4a')]=_0x12f022[_0x10f656('0x1e07')][_0x10f656('0x1d4a')]||[{'message':_0x12f022[_0x10f656('0x1b75')](),'type':'api.contact.delete'}];for(let _0x3cfab2=0x0;_0x3cfab2<_0x12f022[_0x10f656('0x1e07')][_0x10f656('0x1d4a')][_0x10f656('0x543')];_0x3cfab2++){_0x5ab635[_0x10f656('0x15aa')]({'title':_0x12f022[_0x10f656('0x1e07')]['errors'][_0x3cfab2][_0x10f656('0x1810')],'msg':_0x12f022[_0x10f656('0x1e07')][_0x10f656('0x1d4a')][_0x3cfab2]['message']});}}else _0x5ab635['error']({'title':_0x12f022[_0x10f656('0x276f')]?_0x10f656('0x137')+_0x12f022['status']+_0x10f656('0x160c')+_0x12f022[_0x10f656('0x2696')]:_0x10f656('0x18ad'),'msg':_0x12f022[_0x10f656('0x1e07')]?JSON[_0x10f656('0x100b')](_0x12f022['data'][_0x10f656('0x67f')]):_0x12f022[_0x10f656('0x67f')]||_0x12f022['toString']()});});}function _0x3a0270(){const _0x99ed89=angular['copy'](_0x3ea256['selectedContacts']);return _0x3ea256['selectedContacts']=[],_0x99ed89;}function _0x3c6b02(_0x286dc9){const _0x5db247=_0x2373b5,_0x896747=_0x24043b['confirm']()[_0x5db247('0x20d6')](_0x5db247('0x72d'))['htmlContent'](''+_0x3ea256[_0x5db247('0x101f')][_0x5db247('0x543')]+_0x5db247('0xcb4')+_0x5db247('0xd23'))[_0x5db247('0x217')](_0x5db247('0x1b37'))[_0x5db247('0x21de')](_0x286dc9)['ok']('OK')['cancel'](_0x5db247('0x468'));_0x24043b[_0x5db247('0x1cb7')](_0x896747)[_0x5db247('0x173b')](function(){const _0x107170=_0x5db247;_0x3ea256[_0x107170('0x101f')][_0x107170('0xa6a')](function(_0x340bcf){_0x89c9df(_0x340bcf);}),_0x3ea256[_0x107170('0x101f')]=[];});}function _0xac16ed(){_0x3ea256['selectedContacts']=[];}function _0x3da881(){const _0x5a0484=_0x2373b5;_0x3ea256[_0x5a0484('0x101f')]=_0x3ea256['contacts']['rows'];}}const _0xb32ab6=_0xaa0cec;_0x3a9339['$inject']=[_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xd53'),_0x566993('0x9e8'),_0x566993('0x13df'),_0x566993('0x82b'),_0x566993('0xef2'),'CompanyId',_0x566993('0xbd4'),_0x566993('0x1dc1')];function _0x3a9339(_0x22bc38,_0x29a779,_0x132d5d,_0x49ae7f,_0x58c35d,_0x39496f,_0x3b33e2,_0x485a0b,_0x55aee3,_0x21f0cf){const _0x457d23=_0x566993,_0x52d772=this;_0x52d772[_0x457d23('0x1d4a')]=[],_0x52d772[_0x457d23('0x20d6')]=_0x457d23('0x1496'),_0x52d772[_0x457d23('0x1dc1')]=_0x21f0cf,_0x52d772['contact']=angular[_0x457d23('0x2e3')](_0x39496f),_0x52d772[_0x457d23('0xd53')]=_0x132d5d||{'rows':[],'count':0x0},_0x52d772[_0x457d23('0x9e8')]=_0x49ae7f||{'rows':[],'count':0x0},_0x52d772[_0x457d23('0x13df')]=_0x58c35d||{'rows':[],'count':0x0},_0x52d772[_0x457d23('0x179b')]={'rows':[],'count':0x0},_0x52d772['newContact']=![];!_0x52d772[_0x457d23('0x82b')]?(_0x52d772[_0x457d23('0x82b')]={'ListId':_0x3b33e2?parseInt(_0x3b33e2,0xa):undefined,'CompanyId':_0x485a0b?parseInt(_0x485a0b,0xa):undefined},_0x52d772[_0x457d23('0x20d6')]='CONTACTMANAGER.NEW_CONTACT',_0x52d772[_0x457d23('0x764')]=!![]):(delete _0x52d772[_0x457d23('0x82b')]['List'],_0x52d772['ListId']=_0x52d772[_0x457d23('0x82b')]['ListId']||undefined);_0x52d772[_0x457d23('0x929')]=_0x1257e5,_0x52d772[_0x457d23('0x16dd')]=_0x46f177,_0x52d772[_0x457d23('0x110')]=_0x4d47ef,_0x52d772[_0x457d23('0x18e2')]=_0x26e93d,_0x52d772[_0x457d23('0x26f3')]=_0x4a2838,_0x52d772['getDateFromString']=_0x43fc01;function _0x1257e5(){const _0x4eb212=_0x457d23;_0x52d772['errors']=[],_0x55aee3['cmContact'][_0x4eb212('0x1195')](_0x52d772['contact'])[_0x4eb212('0x1964')][_0x4eb212('0x173b')](function(_0x136fc2){const _0x5e8800=_0x4eb212;_0x52d772['contacts']['unshift'](_0x136fc2),_0x29a779[_0x5e8800('0xdfe')]({'title':_0x5e8800('0xef'),'msg':_0x52d772[_0x5e8800('0x82b')][_0x5e8800('0x10ad')]?_0x52d772[_0x5e8800('0x82b')]['name']+_0x5e8800('0x209a'):''}),_0x26e93d();})[_0x4eb212('0x103c')](function(_0x5cc930){const _0x2edd57=_0x4eb212;if(_0x5cc930[_0x2edd57('0x1e07')]&&_0x5cc930[_0x2edd57('0x1e07')][_0x2edd57('0x1d4a')]&&_0x5cc930['data']['errors']['length']){_0x52d772['errors']=_0x5cc930['data']['errors']||[{'message':_0x5cc930[_0x2edd57('0x1b75')](),'type':_0x2edd57('0x27d7')}];for(let _0x31e250=0x0;_0x31e250<_0x5cc930['data'][_0x2edd57('0x1d4a')]['length'];_0x31e250++){_0x29a779[_0x2edd57('0x15aa')]({'title':_0x5cc930[_0x2edd57('0x1e07')][_0x2edd57('0x1d4a')][_0x31e250][_0x2edd57('0x1810')],'msg':_0x5cc930[_0x2edd57('0x1e07')][_0x2edd57('0x1d4a')][_0x31e250][_0x2edd57('0x67f')]});}}else _0x29a779[_0x2edd57('0x15aa')]({'title':_0x5cc930[_0x2edd57('0x276f')]?'API:'+_0x5cc930[_0x2edd57('0x276f')]+_0x2edd57('0x160c')+_0x5cc930[_0x2edd57('0x2696')]:'api.contacts.save','msg':_0x5cc930[_0x2edd57('0x1e07')]?JSON['stringify'](_0x5cc930[_0x2edd57('0x1e07')][_0x2edd57('0x67f')]):_0x5cc930[_0x2edd57('0x1b75')]()});});}function _0x46f177(){const _0x416f6a=_0x457d23;_0x52d772[_0x416f6a('0x1d4a')]=[],_0x55aee3[_0x416f6a('0x1197')][_0x416f6a('0x1842')]({'id':_0x52d772[_0x416f6a('0x82b')]['id']},_0x52d772[_0x416f6a('0x82b')])[_0x416f6a('0x1964')][_0x416f6a('0x173b')](function(_0x438cde){const _0x51dc00=_0x416f6a,_0x1c0274=_0x3c8d8a()[_0x51dc00('0x18ab')](_0x52d772[_0x51dc00('0xd53')],{'id':_0x438cde['id']});_0x1c0274&&_0x3c8d8a()['merge'](_0x1c0274,_0x438cde),_0x29a779[_0x51dc00('0xdfe')]({'title':_0x51dc00('0x11ef'),'msg':_0x52d772['contact'][_0x51dc00('0x10ad')]?_0x52d772[_0x51dc00('0x82b')]['name']+'\x20has\x20been\x20saved!':''}),_0x26e93d();})[_0x416f6a('0x103c')](function(_0x19d874){const _0x440b92=_0x416f6a;if(_0x19d874['data']&&_0x19d874[_0x440b92('0x1e07')][_0x440b92('0x1d4a')]&&_0x19d874[_0x440b92('0x1e07')][_0x440b92('0x1d4a')]['length']){_0x52d772[_0x440b92('0x1d4a')]=_0x19d874[_0x440b92('0x1e07')][_0x440b92('0x1d4a')]||[{'message':_0x19d874[_0x440b92('0x1b75')](),'type':_0x440b92('0x14ed')}];for(let _0x32b7fe=0x0;_0x32b7fe<_0x19d874[_0x440b92('0x1e07')][_0x440b92('0x1d4a')][_0x440b92('0x543')];_0x32b7fe++){_0x29a779['error']({'title':_0x19d874[_0x440b92('0x1e07')][_0x440b92('0x1d4a')][_0x32b7fe]['type'],'msg':_0x19d874['data'][_0x440b92('0x1d4a')][_0x32b7fe][_0x440b92('0x67f')]});}}else _0x29a779[_0x440b92('0x15aa')]({'title':_0x19d874[_0x440b92('0x276f')]?_0x440b92('0x137')+_0x19d874[_0x440b92('0x276f')]+_0x440b92('0x160c')+_0x19d874['statusText']:_0x440b92('0x14ed'),'msg':_0x19d874[_0x440b92('0x1e07')]?JSON[_0x440b92('0x100b')](_0x19d874[_0x440b92('0x1e07')][_0x440b92('0x67f')]):_0x19d874[_0x440b92('0x1b75')]()});});}function _0x4a2838(_0x42fb16){const _0x510c0d=_0x457d23;if(_0x42fb16)return _0x55aee3[_0x510c0d('0xbb3')][_0x510c0d('0x26f3')]({'id':_0x42fb16})[_0x510c0d('0x1964')][_0x510c0d('0x173b')](function(_0x29524f){const _0x36a0f5=_0x510c0d;if(_0x29524f){_0x52d772[_0x36a0f5('0x179b')]=_0x29524f;const _0x52ce72=_0x3c8d8a()['map'](_0x52d772['customFields'][_0x36a0f5('0x6aa')],function(_0x98bd72){const _0x46f297=_0x36a0f5;return _0x46f297('0x205b')+_0x98bd72['id'];});_0x55aee3[_0x36a0f5('0x1197')][_0x36a0f5('0x1d97')]({'id':_0x52d772[_0x36a0f5('0x82b')]['id'],'attributes':_0x52ce72,'raw':!![]})['$promise'][_0x36a0f5('0x173b')](function(_0x26de9c){const _0x5362fe=_0x36a0f5;_0x52d772['contact']=_0x3c8d8a()['merge'](_0x52d772[_0x5362fe('0x82b')],_0x26de9c);});}})[_0x510c0d('0x103c')](function(_0x41526d){const _0x3a0fd7=_0x510c0d;console[_0x3a0fd7('0x15aa')](_0x41526d);});else _0x52d772[_0x510c0d('0x179b')]={'rows':[],'count':0x0};}function _0x4d47ef(_0x2d2597){const _0x4ea4f2=_0x457d23;_0x52d772['errors']=[];const _0x39a516=_0x22bc38[_0x4ea4f2('0x1d02')]()[_0x4ea4f2('0x20d6')](_0x4ea4f2('0x8ef'))['content'](_0x4ea4f2('0x261b'))[_0x4ea4f2('0x217')](_0x4ea4f2('0x10d8'))['ok'](_0x4ea4f2('0x2373'))['cancel'](_0x4ea4f2('0x1d4e'))[_0x4ea4f2('0x21de')](_0x2d2597);_0x22bc38[_0x4ea4f2('0x1cb7')](_0x39a516)['then'](function(){const _0x652530=_0x4ea4f2;_0x55aee3[_0x652530('0x1197')][_0x652530('0x15e8')]({'id':_0x52d772[_0x652530('0x82b')]['id']})[_0x652530('0x1964')]['then'](function(){const _0x33a45f=_0x652530;_0x3c8d8a()[_0x33a45f('0x1a8b')](_0x52d772[_0x33a45f('0xd53')],{'id':_0x52d772[_0x33a45f('0x82b')]['id']}),_0x29a779[_0x33a45f('0xdfe')]({'title':_0x33a45f('0x1efb'),'msg':_0x52d772[_0x33a45f('0x82b')][_0x33a45f('0x10ad')]?_0x52d772[_0x33a45f('0x82b')][_0x33a45f('0x10ad')]+_0x33a45f('0x25d2'):''}),_0x26e93d();})[_0x652530('0x103c')](function(_0x3df39a){const _0x44ecec=_0x652530;console[_0x44ecec('0x15aa')](_0x3df39a),_0x52d772[_0x44ecec('0x1d4a')]=_0x3df39a[_0x44ecec('0x1e07')][_0x44ecec('0x1d4a')]||[{'message':_0x3df39a['toString'](),'type':_0x44ecec('0x18ad')}];});},function(){});}function _0x43fc01(_0x3905b6){return _0x3905b6===null?undefined:new Date(_0x3905b6);}function _0x26e93d(){const _0x32806c=_0x457d23;_0x22bc38[_0x32806c('0x1cf4')]();}}const _0x565f6f=_0x3a9339;_0x574f31[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'toasty',_0x566993('0x82b'),_0x566993('0xd53'),_0x566993('0x9e8'),'api'];function _0x574f31(_0x25c861,_0xbf6890,_0x451cce,_0x2f3a04,_0x19cd58,_0x47dadd){const _0x44b2c4=_0x566993,_0x407197=this;_0x407197[_0x44b2c4('0x1d4a')]=[],_0x407197[_0x44b2c4('0x20d6')]=_0x44b2c4('0x944'),_0x407197[_0x44b2c4('0x82b')]=angular[_0x44b2c4('0x2e3')](_0x451cce),_0x407197[_0x44b2c4('0x9e8')]=_0x19cd58||{'rows':[],'count':0x0},_0x407197[_0x44b2c4('0x929')]=_0x44ae97,_0x407197['closeDialog']=_0x26e39d;function _0x44ae97(){const _0x3ac843=_0x44b2c4;_0x407197['errors']=[],delete _0x407197['contact']['id'],_0x407197[_0x3ac843('0x82b')][_0x3ac843('0x22ac')]&&!_0x407197[_0x3ac843('0x82b')][_0x3ac843('0x22ac')][_0x3ac843('0x543')]&&delete _0x407197[_0x3ac843('0x82b')][_0x3ac843('0x22ac')],_0x47dadd[_0x3ac843('0x1197')][_0x3ac843('0x1195')](_0x407197[_0x3ac843('0x82b')])[_0x3ac843('0x1964')][_0x3ac843('0x173b')](function(_0x1f943c){const _0x536bca=_0x3ac843;_0x2f3a04['unshift'](_0x1f943c),_0xbf6890[_0x536bca('0xdfe')]({'title':'Contact\x20properly\x20created','msg':_0x407197[_0x536bca('0x82b')][_0x536bca('0x10ad')]?_0x407197[_0x536bca('0x82b')][_0x536bca('0x10ad')]+_0x536bca('0x209a'):''}),_0x26e39d();})[_0x3ac843('0x103c')](function(_0x14ac2e){const _0x5db052=_0x3ac843;console[_0x5db052('0x15aa')](_0x14ac2e),_0x407197[_0x5db052('0x1d4a')]=_0x14ac2e[_0x5db052('0x1e07')][_0x5db052('0x1d4a')]||[{'message':_0x14ac2e[_0x5db052('0x1b75')](),'type':_0x5db052('0x1f2f')}];});}function _0x26e39d(){_0x25c861['hide']();}}const _0x3fd77e=_0x574f31;_0x572938[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'toasty',_0x566993('0x23dc'),'hopper',_0x566993('0xbd4'),'crudPermissions'];function _0x572938(_0x519fec,_0x3d4ed8,_0x28c942,_0x36afdf,_0x3a834e,_0x4c1ae2,_0x49b3c3,_0x5042bf,_0x212ac7){const _0x21161b=_0x566993,_0x10e428=this;_0x10e428['errors']=[],_0x10e428[_0x21161b('0x20d6')]=_0x21161b('0x2229'),_0x10e428[_0x21161b('0x10f4')]=angular[_0x21161b('0x2e3')](_0x49b3c3),_0x10e428[_0x21161b('0x23dc')]=_0x4c1ae2,_0x10e428[_0x21161b('0x1627')]=![],_0x10e428[_0x21161b('0x1dc1')]=_0x212ac7;!_0x10e428['hopper']&&(_0x10e428[_0x21161b('0x10f4')]={},_0x10e428[_0x21161b('0x20d6')]=_0x21161b('0x22f2'),_0x10e428[_0x21161b('0x1627')]=!![]);_0x10e428['saveHopper']=_0x331a8c,_0x10e428[_0x21161b('0x11ae')]=_0x4704a9,_0x10e428[_0x21161b('0x18e2')]=_0x403afa;function _0x331a8c(){const _0x540bb2=_0x21161b;_0x10e428[_0x540bb2('0x1d4a')]=[],_0x5042bf[_0x540bb2('0x1f4f')][_0x540bb2('0x1842')]({'id':_0x10e428[_0x540bb2('0x10f4')]['id']},_0x10e428['hopper'])[_0x540bb2('0x1964')][_0x540bb2('0x173b')](function(_0x1fc673){const _0x5a65a6=_0x540bb2,_0x576dd8=_0x3c8d8a()[_0x5a65a6('0x18ab')](_0x10e428[_0x5a65a6('0x23dc')],{'id':_0x1fc673['id']});_0x576dd8&&_0x3c8d8a()[_0x5a65a6('0x9ef')](_0x576dd8,_0x1fc673),_0x3a834e[_0x5a65a6('0xdfe')]({'title':_0x5a65a6('0xa68'),'msg':_0x10e428[_0x5a65a6('0x10f4')][_0x5a65a6('0x10ad')]?_0x10e428[_0x5a65a6('0x10f4')][_0x5a65a6('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x403afa(_0x1fc673);})[_0x540bb2('0x103c')](function(_0x1bb20f){const _0x40cab4=_0x540bb2;console['error'](_0x1bb20f),_0x10e428[_0x40cab4('0x1d4a')]=_0x1bb20f[_0x40cab4('0x1e07')][_0x40cab4('0x1d4a')]||[{'message':_0x1bb20f[_0x40cab4('0x1b75')](),'type':_0x40cab4('0x2124')}];});}function _0x4704a9(_0x5b3d64){return _0x5b3d64===null?undefined:new Date(_0x5b3d64);}function _0x403afa(_0x4a1fb5){_0x36afdf['hide'](_0x4a1fb5);}}const _0x7b2c0a=_0x572938,_0x2f719e=_0x21a6a1['p']+_0x566993('0x8fd');_0x5f4d5c[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),'$state','$document',_0x566993('0x1fe5'),_0x566993('0x638'),'toasty','api','contact',_0x566993('0x23dc'),_0x566993('0x21ef'),'histories',_0x566993('0xd53'),_0x566993('0x13df'),'lists',_0x566993('0x179b'),_0x566993('0x22ac'),_0x566993('0x2211'),'license',_0x566993('0x1600'),_0x566993('0x170e')];function _0x5f4d5c(_0x394139,_0x1fdc84,_0x393033,_0x560785,_0x1e1c9f,_0x2e8c07,_0x5b7344,_0x43014f,_0x5b2d67,_0x260757,_0x3cabef,_0x3de6db,_0x927f8f,_0x4afddb,_0x3483e8,_0xa17f,_0x26aad2,_0x42cc60,_0x49b0b8,_0x21d1b2,_0x1c2ee5){const _0x614833=_0x566993,_0x48deae=this;_0x48deae['currentUser']=_0x21d1b2[_0x614833('0x14d4')](),_0x48deae['license']=_0x49b0b8,_0x48deae[_0x614833('0x276a')]=[],_0x48deae[_0x614833('0x82b')]=_0x5b2d67||{},_0x48deae[_0x614833('0x23dc')]=_0x260757||{'rows':[],'count':0x0},_0x48deae[_0x614833('0x21ef')]=_0x3cabef||{'rows':[],'count':0x0},_0x48deae['histories']=_0x3de6db||{'rows':[],'count':0x0},_0x48deae[_0x614833('0x13df')]=_0x4afddb||{'rows':[],'count':0x0},_0x48deae[_0x614833('0x9e8')]=_0x3483e8||{'rows':[],'count':0x0},_0x48deae[_0x614833('0x179b')]=_0xa17f||{'rows':[],'count':0x0},_0x48deae[_0x614833('0x22ac')]=_0x26aad2||{'rows':[],'count':0x0},_0x48deae[_0x614833('0x2211')]=_0x42cc60||{'rows':[],'count':0x0},_0x48deae['timelineOptions']={'scrollEl':_0x614833('0x17f')},_0x48deae[_0x614833('0x228e')]=new Date(_0x156524()()['startOf'](_0x614833('0x70b'))[_0x614833('0x1931')](0x1,_0x614833('0x1adf'))[_0x614833('0xaf5')](0x0,!![])['format']()),_0x48deae[_0x614833('0x2623')]=new Date(_0x156524()()['endOf']('month')[_0x614833('0x1931')](0x1,_0x614833('0x48d'))['utcOffset'](0x0,!![])[_0x614833('0xddc')]()),_0x48deae[_0x614833('0x170e')]=_0x1c2ee5&&_0x1c2ee5['count']==0x1?_0x1c2ee5[_0x614833('0x6aa')][0x0]:null,_0x48deae['crudPermissions']=_0x21d1b2['parseCrudPermissions'](_0x48deae[_0x614833('0x170e')]?_0x48deae['userProfileSection'][_0x614833('0x1dc1')]:null),_0x48deae[_0x614833('0x149e')]=_0x3c8d8a()[_0x614833('0x128')]([{'option':_0x614833('0x1091'),'value':_0x614833('0x164c')},{'option':_0x614833('0x4c9'),'value':_0x614833('0x62d')},{'option':_0x614833('0x1897'),'value':'\x272\x27'},{'option':_0x614833('0x25a5'),'value':_0x614833('0x1d26')},{'option':'Lowest','value':'\x270\x27'}],function(_0x3b7f3b){const _0x2c5a61=_0x614833;return _0x3c8d8a()[_0x2c5a61('0x166c')](_0x3b7f3b[_0x2c5a61('0xa7b')],new RegExp('\x27','g'),'');}),_0x48deae[_0x614833('0x13d2')]={'fields':_0x614833('0x16eb'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x48deae[_0x614833('0x1d83')]={'fields':_0x614833('0x24f0'),'sort':_0x614833('0x9a8'),'limit':0xa,'page':0x1},_0x48deae[_0x614833('0xa2c')]={'fields':_0x614833('0x1d5d'),'sort':_0x614833('0x9a8'),'limit':0xa,'page':0x1},_0x48deae[_0x614833('0x25ed')]={'fields':_0x614833('0x15d7'),'sort':_0x614833('0x243a'),'limit':0xa,'page':0x1},_0x48deae[_0x614833('0xd5f')]=_0x393033['params'][_0x614833('0x1e66')]||0x0,_0x48deae[_0x614833('0x2535')]=_0x59420a,_0x48deae['gotoContacts']=_0x25cae9,_0x48deae[_0x614833('0xe60')]=_0x392c29,_0x48deae[_0x614833('0x16dd')]=_0x3dfc43,_0x48deae['editCompany']=_0x528681,_0x48deae[_0x614833('0x86')]=_0xe803c8,_0x48deae[_0x614833('0x2180')]=_0x5e305b,_0x48deae[_0x614833('0x11ae')]=_0x113d6d,_0x48deae[_0x614833('0x25af')]=_0x389b77,_0x48deae[_0x614833('0x26b5')]=_0x19d093,_0x48deae[_0x614833('0xbcb')]=_0xac1e5c,_0x48deae[_0x614833('0x379')]=_0x1bd587,_0x48deae['deleteconfirm']=_0x146c50,_0x48deae[_0x614833('0xeb5')]=_0x45fe1f,_0x48deae['createOrEditIvrCampaignHopper']=_0x469c3d,_0x48deae[_0x614833('0x1f51')]=_0x2f73a0;let _0x1d550e=!![],_0x180984=0x1;_0x394139[_0x614833('0x1bdb')]('vm.queryHopper.filter',function(_0x3788c7,_0x3e795a){const _0x1f8392=_0x614833;_0x1d550e?_0x1fdc84(function(){_0x1d550e=![];}):(!_0x3e795a&&(_0x180984=_0x48deae[_0x1f8392('0x13d2')][_0x1f8392('0x182e')]),_0x3788c7!==_0x3e795a&&(_0x48deae[_0x1f8392('0x13d2')][_0x1f8392('0x182e')]=0x1),!_0x3788c7&&(_0x48deae[_0x1f8392('0x13d2')][_0x1f8392('0x182e')]=_0x180984),_0x48deae[_0x1f8392('0x25af')]());}),_0x394139['$watch'](_0x614833('0x142e'),function(_0x247bb5,_0x40e5cc){const _0x4d93e4=_0x614833;_0x1d550e?_0x1fdc84(function(){_0x1d550e=![];}):(!_0x40e5cc&&(_0x180984=_0x48deae['queryFinal'][_0x4d93e4('0x182e')]),_0x247bb5!==_0x40e5cc&&(_0x48deae[_0x4d93e4('0x1d83')][_0x4d93e4('0x182e')]=0x1),!_0x247bb5&&(_0x48deae[_0x4d93e4('0x1d83')]['page']=_0x180984),_0x48deae['getFinals']());}),_0x394139[_0x614833('0x1bdb')](_0x614833('0x4e7'),function(_0x31a127,_0x3edafa){const _0x2c51bd=_0x614833;_0x1d550e?_0x1fdc84(function(){_0x1d550e=![];}):(!_0x3edafa&&(_0x180984=_0x48deae[_0x2c51bd('0xa2c')][_0x2c51bd('0x182e')]),_0x31a127!==_0x3edafa&&(_0x48deae[_0x2c51bd('0xa2c')][_0x2c51bd('0x182e')]=0x1),!_0x31a127&&(_0x48deae['queryHistory'][_0x2c51bd('0x182e')]=_0x180984),_0x48deae[_0x2c51bd('0xbcb')]());});function _0x5b1ba4(_0x5b5506){const _0x43914d=_0x614833;switch(_0x5b5506){case'chat':return _0x43914d('0x77f');case'mail':return'teal';case _0x43914d('0x1a8f'):return'orange';case _0x43914d('0xab2'):return'amber-A200';case'fax':return _0x43914d('0x2195');case'whatsapp':return _0x43914d('0x332');default:return _0x43914d('0x719');}}function _0x2f73a0(_0x3db07a){const _0x59a089=_0x614833;let _0x6d5df9='';if(_0x3db07a['FaxAccountId'])_0x6d5df9=_0x59a089('0x16d');else{if(_0x3db07a[_0x59a089('0xf5a')])_0x6d5df9='openchannel';else{if(_0x3db07a[_0x59a089('0x23b1')])_0x6d5df9='sms';else{if(_0x3db07a[_0x59a089('0x559')])_0x6d5df9='mail';else{if(_0x3db07a['ChatWebsiteId'])_0x6d5df9=_0x59a089('0x8c5');else _0x3db07a['amaflags']&&(_0x6d5df9=_0x59a089('0x21a8'));}}}}return _0x5b1ba4(_0x6d5df9);}function _0x9e0e2d(_0x557f17){return function(_0xce8d0b){_0x48deae[_0x557f17]=_0xce8d0b||{'count':0x0,'rows':[]};};}function _0x59420a(){const _0x50d9f3=_0x614833;return!_0x21d1b2['hasRole'](_0x50d9f3('0x79b'))&&(_0x3c39e9(),_0x409045()),_0x43014f['user'][_0x50d9f3('0x1d97')]({'fields':_0x50d9f3('0x27e5'),'nolimit':!![]})[_0x50d9f3('0x1964')][_0x50d9f3('0x173b')](function(_0x277e12){const _0x56068e=_0x50d9f3;_0x48deae[_0x56068e('0x1e14')]=_0x277e12||{'count':0x0,'rows':[]},_0x48deae[_0x56068e('0xa27')]=_0x3c8d8a()[_0x56068e('0xa88')](_0x3c8d8a()[_0x56068e('0x128')](_0x48deae[_0x56068e('0x1e14')]['rows'],'id'),'fullname'),_0x48deae[_0x56068e('0xc38')]=_0x3c8d8a()[_0x56068e('0x8a2')](_0x48deae[_0x56068e('0x82b')][_0x56068e('0xc38')],'id');})[_0x50d9f3('0x173b')](_0x277811(_0x5b2d67));}function _0x3c39e9(){const _0x3c40ed=_0x614833,_0x26f3d9=_0x3c8d8a()[_0x3c40ed('0x1ec')](_0x48deae[_0x3c40ed('0x13df')][_0x3c40ed('0x6aa')],{'id':_0x48deae[_0x3c40ed('0x82b')]['CompanyId']});if(!_0x26f3d9)return _0x43014f[_0x3c40ed('0x1904')]['get']({'id':_0x48deae['contact']['CompanyId'],'fields':_0x3c40ed('0xd52')})['$promise'][_0x3c40ed('0x173b')](function(_0x1d5d27){const _0x56e10b=_0x3c40ed,_0x58a225=_0x1d5d27[_0x56e10b('0xf1f')]();_0x58a225[_0x56e10b('0x268e')]=![],_0x48deae[_0x56e10b('0x13df')][_0x56e10b('0x6aa')]['push'](_0x58a225);})[_0x3c40ed('0x103c')](function(_0x3f379f){const _0x346855=_0x3c40ed;_0x5b7344['error']({'title':_0x3f379f[_0x346855('0x276f')]?'API:'+_0x3f379f['status']+_0x346855('0x160c')+_0x3f379f['statusText']:'GET_COMPANY','msg':_0x3f379f[_0x346855('0x1e07')]?JSON['stringify'](_0x3f379f[_0x346855('0x1e07')]['message']):_0x3f379f[_0x346855('0x1b75')]()});});}function _0x409045(){const _0x31ed1f=_0x614833,_0x17426d=_0x3c8d8a()[_0x31ed1f('0x8a2')](_0x48deae['contact'][_0x31ed1f('0xc38')],function(_0x19f7ab){return{'id':_0x19f7ab['id'],'name':_0x19f7ab['name']};});if(!_0x3c8d8a()[_0x31ed1f('0x1a56')](_0x17426d))for(let _0x5f3aa=0x0;_0x5f3aa<_0x17426d[_0x31ed1f('0x543')];_0x5f3aa++){!_0x3c8d8a()[_0x31ed1f('0x1ec')](_0x48deae[_0x31ed1f('0x22ac')][_0x31ed1f('0x6aa')],{'id':_0x17426d['id']})&&(_0x17426d[_0x5f3aa][_0x31ed1f('0x268e')]=![],_0x48deae[_0x31ed1f('0x22ac')]['rows'][_0x31ed1f('0x18bb')](_0x17426d[_0x5f3aa]));}}function _0xb6f728(_0x33fe5b){const _0x5bb9d8=_0x614833;if(!_0x33fe5b[_0x5bb9d8('0x2766')])return'('+_0x2e8c07['instant'](_0x5bb9d8('0x1f9d'))+')';const _0x5b8839=_0x3c8d8a()[_0x5bb9d8('0x2714')]([_0x33fe5b[_0x5bb9d8('0x2766')],_0x33fe5b['secondDisposition'],_0x33fe5b['thirdDisposition']]);return'('+_0x5b8839[_0x5bb9d8('0x2259')]('\x20-\x20')+')';}function _0x259128(_0x3f7889){const _0x493198=_0x614833;_0x3f7889&&_0x3f7889[_0x493198('0x1a2f')]&&_0x3f7889[_0x493198('0x6aa')][_0x493198('0x543')]&&(_0x48deae[_0x493198('0x276a')]=_0x3c8d8a()[_0x493198('0x163f')](_0x48deae[_0x493198('0x276a')],_0x3f7889['rows']),_0x48deae[_0x493198('0x276a')][_0x493198('0xa6a')](function(_0x3e7e20){const _0x4cb4b8=_0x493198;_0x3e7e20[_0x4cb4b8('0x1a3')]=_0xb6f728(_0x3e7e20);}));}function _0x277811(_0x73d7f4){const _0xfd2a12=_0x614833,_0x39ea1f=[_0xfd2a12('0x108a'),_0xfd2a12('0x8c5'),_0xfd2a12('0x1a8f'),_0xfd2a12('0xab2'),_0xfd2a12('0x16d')];if(_0x73d7f4&&_0x73d7f4['id']){for(let _0x612c0b=0x0;_0x612c0b<_0x39ea1f['length'];_0x612c0b++){_0x43014f[_0x39ea1f[_0x612c0b]+'Interaction'][_0xfd2a12('0x1d97')]({'ContactId':_0x73d7f4['id'],'includeAll':!![]})[_0xfd2a12('0x1964')][_0xfd2a12('0x173b')](_0x259128);}_0x43014f[_0xfd2a12('0x250f')][_0xfd2a12('0x1d97')]({'ContactId':_0x73d7f4['id'],'includeAll':!![]})['$promise'][_0xfd2a12('0x173b')](_0x259128)[_0xfd2a12('0x103c')](function(_0x505f2e){const _0x12ca0c=_0xfd2a12;console[_0x12ca0c('0x15aa')](_0x505f2e);});}}function _0x45fe1f(_0x31519e,_0x4cabf3){const _0xe887e1=_0x614833;_0x1e1c9f[_0xe887e1('0x1cb7')]({'controller':_0xe887e1('0x1b9c'),'controllerAs':'vm','templateUrl':_0x47467f,'parent':angular[_0xe887e1('0xb6d')](_0x560785[_0xe887e1('0x1a5')]),'targetEvent':_0x31519e,'clickOutsideToClose':!![],'locals':{'hopper':_0x4cabf3,'hoppers':_0x48deae['hoppers'][_0xe887e1('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x48deae[_0xe887e1('0x1dc1')]}});}function _0x469c3d(_0x5d083d,_0x3247de){const _0x284274=_0x614833;_0x1e1c9f[_0x284274('0x1cb7')]({'controller':_0x284274('0x686'),'controllerAs':'vm','templateUrl':_0x2f719e,'parent':angular[_0x284274('0xb6d')](_0x560785[_0x284274('0x1a5')]),'targetEvent':_0x5d083d,'clickOutsideToClose':!![],'locals':{'hopper':_0x3247de,'hoppers':_0x48deae['hoppers'][_0x284274('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x48deae[_0x284274('0x1dc1')]}});}function _0x146c50(_0xe83653,_0x1a3716){const _0x31f897=_0x614833,_0x34561d=_0x1e1c9f[_0x31f897('0x1d02')]()[_0x31f897('0x20d6')](_0x31f897('0xd47'))[_0x31f897('0xf8b')](_0x31f897('0x15b9')+(_0xe83653[_0x31f897('0xa04')]||'hopper')+_0x31f897('0x24be')+_0x31f897('0xd23'))['ariaLabel'](_0x31f897('0x7fd'))[_0x31f897('0x21de')](_0x1a3716)['ok']('OK')[_0x31f897('0x1e1f')](_0x31f897('0x468'));_0x1e1c9f[_0x31f897('0x1cb7')](_0x34561d)[_0x31f897('0x173b')](function(){_0x1bdea8(_0xe83653);},function(){console['log']('CANCEL');});}function _0x1bdea8(_0xa89401){const _0x5b7ce8=_0x614833;return _0x43014f['cmHopper'][_0x5b7ce8('0x15e8')]({'id':_0xa89401['id']})[_0x5b7ce8('0x1964')]['then'](function(){const _0x285e11=_0x5b7ce8;_0x3c8d8a()[_0x285e11('0x1a8b')](_0x48deae[_0x285e11('0x23dc')][_0x285e11('0x6aa')],{'id':_0xa89401['id']}),_0x48deae[_0x285e11('0x23dc')][_0x285e11('0x1a2f')]--,!_0x48deae[_0x285e11('0x23dc')][_0x285e11('0x6aa')]['length']&&_0x48deae['getHoppers'](),_0x5b7344['success']({'title':_0x285e11('0xa6e'),'msg':_0xa89401[_0x285e11('0xa04')]?_0xa89401[_0x285e11('0xa04')]+_0x285e11('0x25d2'):''});})['catch'](function(_0x5041ae){const _0x4833d8=_0x5b7ce8;_0x5b7344[_0x4833d8('0x15aa')]({'title':_0x5041ae['status']?'API:'+_0x5041ae[_0x4833d8('0x276f')]+'\x20-\x20'+_0x5041ae[_0x4833d8('0x2696')]:_0x4833d8('0x19d4'),'msg':_0x5041ae[_0x4833d8('0x1e07')]?JSON[_0x4833d8('0x100b')](_0x5041ae[_0x4833d8('0x1e07')]):_0x5041ae[_0x4833d8('0x1b75')]()});});}function _0x389b77(){const _0x3a667f=_0x614833;_0x48deae[_0x3a667f('0x13d2')][_0x3a667f('0x17f0')]=(_0x48deae[_0x3a667f('0x13d2')][_0x3a667f('0x182e')]-0x1)*_0x48deae['queryHopper'][_0x3a667f('0x3e')],_0x48deae['queryHopper']['id']=_0x48deae[_0x3a667f('0x82b')]['id'],_0x48deae[_0x3a667f('0x2219')]=_0x43014f['cmContact'][_0x3a667f('0x25af')](_0x48deae[_0x3a667f('0x13d2')],_0x9e0e2d(_0x3a667f('0x23dc')))[_0x3a667f('0x1964')];}function _0x19d093(){const _0x55569c=_0x614833;_0x48deae['queryFinal'][_0x55569c('0x17f0')]=(_0x48deae[_0x55569c('0x1d83')][_0x55569c('0x182e')]-0x1)*_0x48deae['queryFinal'][_0x55569c('0x3e')],_0x48deae[_0x55569c('0x1d83')]['id']=_0x48deae[_0x55569c('0x82b')]['id'],_0x48deae['promise']=_0x43014f[_0x55569c('0x1197')][_0x55569c('0x1256')](_0x48deae[_0x55569c('0x1d83')],_0x9e0e2d(_0x55569c('0x21ef')))[_0x55569c('0x1964')];}function _0xac1e5c(){const _0x2205b6=_0x614833;_0x48deae[_0x2205b6('0xa2c')][_0x2205b6('0x17f0')]=(_0x48deae['queryHistory'][_0x2205b6('0x182e')]-0x1)*_0x48deae[_0x2205b6('0xa2c')]['limit'],_0x48deae[_0x2205b6('0xa2c')]['id']=_0x48deae[_0x2205b6('0x82b')]['id'],_0x48deae[_0x2205b6('0x2219')]=_0x43014f[_0x2205b6('0x1197')][_0x2205b6('0x4c4')](_0x48deae[_0x2205b6('0xa2c')],_0x9e0e2d(_0x2205b6('0x1902')))[_0x2205b6('0x1964')];}function _0x1bd587(){const _0x46c510=_0x614833;_0x48deae[_0x46c510('0x25ed')][_0x46c510('0x17f0')]=(_0x48deae[_0x46c510('0x25ed')][_0x46c510('0x182e')]-0x1)*_0x48deae[_0x46c510('0x25ed')]['limit'],_0x48deae[_0x46c510('0x25ed')]['id']=_0x48deae[_0x46c510('0x82b')]['id'],_0x48deae[_0x46c510('0x2219')]=_0x43014f['cmContact'][_0x46c510('0x379')](_0x48deae['queryJscriptySession'],_0x9e0e2d(_0x46c510('0x2211')))[_0x46c510('0x1964')];}function _0xe803c8(_0x4dd815){const _0x3bbff8=_0x614833;if(_0x48deae[_0x3bbff8('0x82b')]['ListId']){const _0x42cfa9=_0x1e1c9f['confirm']()['title'](_0x3bbff8('0xd94')+_0x48deae[_0x3bbff8('0x82b')][_0x3bbff8('0xef2')])['textContent'](_0x3bbff8('0xaa2')+_0x48deae['contact'][_0x3bbff8('0x1e50')]||0x0||0x0)[_0x3bbff8('0x21de')](_0x4dd815)['ok']('Ok')[_0x3bbff8('0x1e1f')](_0x3bbff8('0x1d4e'));return _0x1e1c9f[_0x3bbff8('0x1cb7')](_0x42cfa9)[_0x3bbff8('0x173b')](_0x48deae[_0x3bbff8('0x2180')])[_0x3bbff8('0x103c')](function(){const _0x2fd8b8=_0x3bbff8;_0x48deae[_0x2fd8b8('0x82b')][_0x2fd8b8('0xef2')]=null;});}}function _0x5e305b(){const _0x254d1e=_0x614833;return _0x43014f[_0x254d1e('0xbb3')][_0x254d1e('0x26f3')]({'id':_0x48deae[_0x254d1e('0x82b')]['ListId']})['$promise']['then'](function(_0x4bef40){const _0x5bb489=_0x254d1e;_0x48deae[_0x5bb489('0x179b')]=_0x4bef40||{'rows':[],'count':0x0};})[_0x254d1e('0x103c')](function(_0x37aadd){const _0x3781da=_0x254d1e;console[_0x3781da('0x15aa')](_0x37aadd);});}function _0x25e32c(){const _0x4aafd1=_0x614833;return _0x43014f[_0x4aafd1('0x170e')][_0x4aafd1('0x1d97')]({'userProfileId':_0x48deae['currentUser'][_0x4aafd1('0x1946')],'sectionId':0x12e})[_0x4aafd1('0x1964')]['then'](function(_0x528b7c){const _0x1c5662=_0x4aafd1,_0x1f62dd=_0x528b7c[_0x1c5662('0x6aa')]?_0x528b7c[_0x1c5662('0x6aa')][0x0]:null;return _0x21d1b2[_0x1c5662('0xde6')](_0x1f62dd?_0x1f62dd[_0x1c5662('0x1dc1')]:null);})['catch'](function(_0x3d04b0){const _0xaa4273=_0x4aafd1;_0x5b7344[_0xaa4273('0x15aa')]({'title':_0x3d04b0[_0xaa4273('0x276f')]?_0xaa4273('0x137')+_0x3d04b0['status']+_0xaa4273('0x160c')+_0x3d04b0['statusText']:_0xaa4273('0x1c02'),'msg':_0x3d04b0[_0xaa4273('0x1e07')]?JSON[_0xaa4273('0x100b')](_0x3d04b0[_0xaa4273('0x1e07')]):_0x3d04b0['toString']()});});}function _0x528681(_0x53450b,_0xac4f47){const _0x45e20c=_0x614833,_0xb2e020=_0x3c8d8a()[_0x45e20c('0x18ab')](_0x48deae[_0x45e20c('0x13df')][_0x45e20c('0x6aa')],{'id':_0xac4f47});_0x1e1c9f[_0x45e20c('0x1cb7')]({'controller':_0x45e20c('0x532'),'controllerAs':'vm','templateUrl':_0x5e790e,'parent':angular[_0x45e20c('0xb6d')](_0x560785[_0x45e20c('0x1a5')]),'targetEvent':_0x53450b,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0xb2e020[_0x45e20c('0x268e')]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0x25e32c()},'resolve':{'company':[_0x45e20c('0x2401'),function(_0x5d7302){const _0x2e7018=_0x45e20c;return _0x5d7302[_0x2e7018('0x155b')]('cmCompany@get',{'id':_0xac4f47});}]}});}function _0x392c29(_0x34e509){const _0x3e05e8=_0x614833;_0x1e1c9f[_0x3e05e8('0x1cb7')]({'controller':_0x3e05e8('0x25ba'),'controllerAs':'vm','templateUrl':_0xf36d4e,'parent':angular[_0x3e05e8('0xb6d')](_0x560785[_0x3e05e8('0x1a5')]),'targetEvent':_0x34e509,'clickOutsideToClose':!![],'resolve':{'lists':[_0x3e05e8('0x2401'),'Auth',function(_0x87d44c,_0x4b9af8){const _0x3b290c=_0x3e05e8;return _0x4b9af8[_0x3b290c('0x1b4e')]('admin')?_0x87d44c[_0x3b290c('0x155b')](_0x3b290c('0x1b8b'),{'fields':_0x3b290c('0xd52')}):_0x87d44c[_0x3b290c('0x155b')]('userProfile@getResources',{'id':_0x48deae[_0x3b290c('0x155f')]['userProfileId'],'section':_0x3b290c('0xd8b'),'fields':_0x3b290c('0xd52')});}]},'locals':{'contacts':_0x927f8f[_0x3e05e8('0x6aa')],'contact':_0x5b2d67}});}function _0x3dfc43(){const _0x55bd2e=_0x614833;_0x43014f[_0x55bd2e('0x1197')][_0x55bd2e('0x1842')]({'id':_0x48deae[_0x55bd2e('0x82b')]['id']},_0x48deae[_0x55bd2e('0x82b')])['$promise'][_0x55bd2e('0x173b')](function(){const _0x475f5a=_0x55bd2e;_0x5b7344[_0x475f5a('0xdfe')]({'title':_0x475f5a('0xe4e'),'msg':_0x48deae[_0x475f5a('0x82b')]['name']?_0x48deae[_0x475f5a('0x82b')][_0x475f5a('0x10ad')]+_0x475f5a('0x1fd6'):''});})[_0x55bd2e('0x173b')](function(){const _0xeb0d1e=_0x55bd2e;return _0x43014f['cmContact']['setTags']({'id':_0x48deae['contact']['id'],'ids':_0x48deae[_0xeb0d1e('0xc38')]})[_0xeb0d1e('0x1964')];})[_0x55bd2e('0x103c')](function(_0x46442b){const _0x46219a=_0x55bd2e;_0x5b7344[_0x46219a('0x15aa')]({'title':_0x46442b[_0x46219a('0x276f')]?'API:'+_0x46442b['status']+_0x46219a('0x160c')+_0x46442b[_0x46219a('0x2696')]:'SYSTEM:UPDATEcontact','msg':_0x46442b[_0x46219a('0x1e07')]?JSON[_0x46219a('0x100b')](_0x46442b[_0x46219a('0x1e07')]):_0x46442b[_0x46219a('0x1b75')]()});});}function _0x113d6d(_0x32f3b3){return _0x32f3b3===null?undefined:new Date(_0x32f3b3);}function _0x25cae9(){const _0x5e68f7=_0x614833;_0x393033['go'](_0x5e68f7('0xaf8'),{},{'reload':!![],'notify':!![]});}}const _0x3c83ed=_0x5f4d5c;_0x190013[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x1fe5'),_0x566993('0x1b13'),'$q','$timeout',_0x566993('0x9e8'),_0x566993('0x13df'),'toasty',_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x66f'),_0x566993('0x2522'),_0x566993('0x2340'),_0x566993('0x1a29')];function _0x190013(_0x2306b6,_0x5bd7f6,_0x113ee0,_0x24f583,_0x405c06,_0x3546b3,_0x2407b7,_0x10103a,_0x4c6f98,_0x589d3,_0x273148,_0x4b6ed5,_0x120759,_0x49101f){const _0x1de3e9=_0x566993,_0x12e453=this;_0x12e453['processing']=![],_0x12e453[_0x1de3e9('0xc0a')]=!![],_0x12e453['license']=_0x49101f,_0x12e453[_0x1de3e9('0x1ce8')]=0x0,_0x12e453[_0x1de3e9('0xd09')]={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x12e453[_0x1de3e9('0x1a7a')]=[{'key':_0x1de3e9('0x1e50'),'required':!![]},{'key':_0x1de3e9('0x1806'),'required':![]},{'key':_0x1de3e9('0xa04'),'required':!![]},{'key':_0x1de3e9('0x1c56'),'required':![]},{'key':_0x1de3e9('0x28e'),'required':![]},{'key':_0x1de3e9('0x1182'),'required':![]},{'key':_0x1de3e9('0x11a9'),'required':![]},{'key':'city','required':![]},{'key':_0x1de3e9('0x113e'),'required':![]},{'key':'postalCode','required':![]},{'key':'fax','required':![]}],_0x12e453[_0x1de3e9('0x1569')]=[{'key':_0x1de3e9('0x181c'),'required':![]},{'key':_0x1de3e9('0x1b55'),'required':![]},{'key':_0x1de3e9('0xb3'),'required':![]}],_0x12e453['binding']={},_0x12e453[_0x1de3e9('0x16ea')]=[],_0x12e453['lists']=_0x3546b3||{'rows':[],'count':0x0},_0x12e453['companies']=_0x2407b7||{'rows':[],'count':0x0},_0x12e453[_0x1de3e9('0x179b')]={'rows':[],'count':0x0},_0x12e453[_0x1de3e9('0x2340')]=_0x120759||[],_0x12e453['closeDialog']=_0x25bdd8,_0x12e453[_0x1de3e9('0x198f')]=_0x29e84a,_0x12e453[_0x1de3e9('0x2654')]=_0xa93d60,_0x12e453['getHeaderErrors']=_0x5d2354,_0x12e453[_0x1de3e9('0x1127')]=_0x142361,_0x12e453[_0x1de3e9('0xaff')]=_0x735125;const _0x1fd7c3=_0x156524()()[_0x1de3e9('0xb99')]();_0x589d3['on']('contact:import:'+_0x1fd7c3,_0x1d37fe);function _0x29e84a(){const _0xd1e735=_0x1de3e9;return _0x4c6f98['cmList'][_0xd1e735('0x26f3')]({'id':_0x12e453[_0xd1e735('0xef2')]})[_0xd1e735('0x1964')][_0xd1e735('0x173b')](function(_0x2a969f){_0x12e453['customFields']=_0x2a969f;})['catch'](function(_0x536952){console['error'](_0x536952);});}function _0xa93d60(){const _0x57a268=_0x1de3e9;_0x12e453[_0x57a268('0x958')]=_0x156524()(),_0x4c6f98['cmContact'][_0x57a268('0x19cc')]({'id':_0x4b6ed5[_0x57a268('0x84d')],'binding':_0x12e453['binding'],'ListId':_0x12e453['ListId'],'CompanyId':_0x12e453[_0x57a268('0x1d7e')],'duplicates':_0x12e453[_0x57a268('0x10a0')],'socket_timestamp':_0x1fd7c3})[_0x57a268('0x1964')][_0x57a268('0x173b')](function(_0xe4cbb){const _0x3dac03=_0x57a268;_0x12e453[_0x3dac03('0xc0a')]=![],_0xe4cbb&&_0xe4cbb[_0x3dac03('0x1ce8')]&&(_0x12e453[_0x3dac03('0x1ce8')]=_0xe4cbb['pid']);})[_0x57a268('0x103c')](function(){const _0x216a43=_0x57a268;_0x12e453[_0x216a43('0x958')]=![],_0x10103a[_0x216a43('0x15aa')]({'title':'Import\x20process\x20failed!','msg':_0x216a43('0xef1')});});}function _0x1d37fe(_0x104ea3){_0x405c06(function(){const _0x70170=a0_0xde5e;_0x12e453[_0x70170('0xd09')]['rows']=_0x104ea3[_0x70170('0x6aa')];if(_0x104ea3[_0x70170('0x1d4a')])for(let _0x576b8f=0x0;_0x576b8f<_0x104ea3['errors']['length'];_0x576b8f++){_0x12e453[_0x70170('0xd09')]['errors'][_0x70170('0x18bb')](_0x104ea3['errors'][_0x576b8f]);}if(_0x104ea3[_0x70170('0x75')]){_0x12e453[_0x70170('0xd09')][_0x70170('0x75')]=!![],_0x12e453[_0x70170('0xd09')][_0x70170('0x1343')]=_0x104ea3[_0x70170('0x1343')],_0x12e453[_0x70170('0xd09')][_0x70170('0xb14')]=_0x12e453[_0x70170('0xd09')][_0x70170('0x1d4a')][_0x70170('0x543')];const _0x4c87fc=_0x12e453[_0x70170('0xd09')][_0x70170('0x6aa')]-_0x12e453[_0x70170('0xd09')][_0x70170('0x1343')]-_0x12e453[_0x70170('0xd09')][_0x70170('0x1d4a')][_0x70170('0x543')];_0x4c87fc&&_0x4c87fc>0x0&&(_0x12e453[_0x70170('0x10a0')]['length']?_0x12e453['result'][_0x70170('0x104')]=_0x4c87fc:_0x12e453[_0x70170('0xd09')]['failedRows']+=_0x4c87fc),_0x12e453[_0x70170('0xd09')][_0x70170('0x18c8')]=_0x156524()()[_0x70170('0x22c6')](_0x12e453[_0x70170('0x958')],_0x70170('0x1adf'));}});}function _0x5d2354(){const _0x5c5bd9=_0x1de3e9,_0x4a3ef7=_0x120759;return _0x4a3ef7[_0x5c5bd9('0x18bb')](_0x5c5bd9('0x970')),_0x4a3ef7;}function _0x142361(){const _0x287d0b=_0x1de3e9,_0x3ea21b=[];for(let _0x2c8aa5=0x0;_0x2c8aa5<_0x12e453[_0x287d0b('0xd09')]['errors'][_0x287d0b('0x543')];_0x2c8aa5+=0x1){const _0x36e70d=_0x12e453['result'][_0x287d0b('0x1d4a')][_0x2c8aa5][_0x287d0b('0x4ca')];_0x36e70d[_0x287d0b('0x970')]=_0x12e453['result'][_0x287d0b('0x1d4a')][_0x2c8aa5][_0x287d0b('0x67f')],_0x3ea21b[_0x287d0b('0x18bb')](_0x36e70d);}return _0x3ea21b;}function _0x735125(){const _0x4ef850=_0x1de3e9;_0x12e453[_0x4ef850('0xc0a')]=!![];if(_0x12e453[_0x4ef850('0x1ce8')])return _0x4c6f98[_0x4ef850('0x1ed')]['killProcess']({'pid':_0x12e453['pid']})[_0x4ef850('0x1964')]['then'](function(){const _0x373fc0=_0x4ef850;_0x10103a[_0x373fc0('0xdfe')]({'title':_0x373fc0('0x1e3'),'msg':_0x373fc0('0x2628')});})[_0x4ef850('0x103c')](function(){const _0x9f68d3=_0x4ef850;_0x10103a['error']({'title':'CSV\x20stop\x20import\x20process\x20failed!','msg':_0x9f68d3('0x67d')});});}_0x273148[_0x1de3e9('0xbf6')](_0x1de3e9('0x16d2'),function(){const _0x33979d=_0x1de3e9;_0x589d3['removeAllListeners'](_0x33979d('0x2433')+_0x1fd7c3);});function _0x25bdd8(){const _0x1b480e=_0x1de3e9;_0x589d3['removeAllListeners'](_0x1b480e('0x2433')+_0x1fd7c3),_0x5bd7f6[_0x1b480e('0x1cf4')]();}}const _0x4d8f93=_0x190013;_0x25158b[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$scope','toasty',_0x566993('0x82b'),_0x566993('0xd53'),_0x566993('0x9e8'),_0x566993('0xbd4')];function _0x25158b(_0x358601,_0x5e4bd6,_0x5f17bc,_0x967f80,_0x517182,_0x5e4e13,_0x3c5946){const _0x1d1dba=_0x566993,_0x10b03b=this;_0x10b03b['errors']=[],_0x10b03b[_0x1d1dba('0x20d6')]=_0x1d1dba('0x1f7b'),_0x10b03b[_0x1d1dba('0x82b')]=angular['copy'](_0x967f80),_0x10b03b[_0x1d1dba('0x9e8')]=_0x5e4e13||[],_0x10b03b['change']=function(){const _0x1b3406=_0x1d1dba;_0x10b03b[_0x1b3406('0x1b5e')]?_0x3c5946[_0x1b3406('0x1197')][_0x1b3406('0x1d97')]({'fields':_0x1b3406('0x14b'),'filter':_0x10b03b[_0x1b3406('0x1b5e')],'ListId':_0x967f80[_0x1b3406('0xef2')]})['$promise']['then'](function(_0x5baf76){const _0x5eaa0f=_0x1b3406;_0x10b03b[_0x5eaa0f('0xd53')]=_0x5baf76[_0x5eaa0f('0x6aa')];})['catch'](function(_0x4a8d66){const _0x254a59=_0x1b3406;console[_0x254a59('0x15aa')](_0x4a8d66);}):_0x10b03b['contacts']=[];},_0x10b03b['showConfirm']=_0x39055d,_0x10b03b[_0x1d1dba('0x18e2')]=_0x361181;function _0x39055d(_0x1e46d4,_0x2a5e6f,_0x5ea436){const _0x1c5ddf=_0x1d1dba,_0x199da1=_0x358601['confirm']({'skipHide':!![]})['title'](_0x1c5ddf('0x9e2'))[_0x1c5ddf('0x1f71')](_0x1c5ddf('0x27e2')+_0x5ea436['id']+_0x1c5ddf('0xad2')+_0x2a5e6f['id']+'.')['targetEvent'](_0x1e46d4)['ok']('Ok')[_0x1c5ddf('0x1e1f')]('Cancel');_0x358601[_0x1c5ddf('0x1cb7')](_0x199da1)[_0x1c5ddf('0x173b')](function(){const _0xc0022d=_0x1c5ddf;return _0x3c5946[_0xc0022d('0x1197')][_0xc0022d('0x9ef')]({'to':_0x5ea436['id'],'from':_0x2a5e6f['id']})[_0xc0022d('0x1964')];})[_0x1c5ddf('0x173b')](function(_0x15a299){const _0x20df61=_0x1c5ddf;_0x358601[_0x20df61('0x1cf4')]({'new':_0x15a299,'to':_0x5ea436,'from':_0x2a5e6f}),_0x3c8d8a()[_0x20df61('0x1a8b')](_0x517182,{'id':_0x5ea436['id']}),_0x3c8d8a()[_0x20df61('0x1a8b')](_0x517182,{'id':_0x2a5e6f['id']}),_0x517182[_0x20df61('0x1377')](_0x15a299);})[_0x1c5ddf('0x173b')](function(){const _0x3daf31=_0x1c5ddf;_0x5f17bc[_0x3daf31('0xdfe')]({'title':_0x3daf31('0x12cd')});})[_0x1c5ddf('0x103c')](function(_0x17fd76){const _0x6775c4=_0x1c5ddf;_0x17fd76&&_0x17fd76[_0x6775c4('0x276f')]&&_0x5f17bc['error']({'title':_0x17fd76['status']?_0x6775c4('0x137')+_0x17fd76[_0x6775c4('0x276f')]+_0x6775c4('0x160c')+_0x17fd76[_0x6775c4('0x2696')]:_0x6775c4('0x2f6'),'msg':_0x17fd76['data']?JSON[_0x6775c4('0x100b')](_0x17fd76[_0x6775c4('0x1e07')]):_0x17fd76['toString']()});});}function _0x361181(){_0x358601['hide']();}}const _0x5adac2=_0x25158b,_0x70c83d=_0x21a6a1['p']+_0x566993('0x7c7'),_0x113f70=_0x21a6a1['p']+_0x566993('0x125b');_0x2e3bee['$inject']=[_0x566993('0xccc')];function _0x2e3bee(_0x3a7cd7){const _0x3a4ac4=_0x566993;_0x3a7cd7[_0x3a4ac4('0x1a49')](_0x3a4ac4('0xaf8'),{'url':'/contacts?ListId&CompanyId','views':{'content@app':{'templateUrl':_0x70c83d,'controller':_0x3a4ac4('0x7ed')}},'resolve':{'contacts':[_0x3a4ac4('0x2401'),'Auth','$stateParams',function(_0x2deb13,_0x30030a,_0xf093dc){const _0x7ce00=_0x3a4ac4;return _0x30030a[_0x7ce00('0x1b4e')](_0x7ce00('0x79b'))?_0x2deb13[_0x7ce00('0x155b')](_0x7ce00('0x2778'),_0x3c8d8a()[_0x7ce00('0x9ef')]({'includeAll':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0},_0xf093dc)):_0x2deb13[_0x7ce00('0x155b')]('userProfile@getResources',_0x3c8d8a()[_0x7ce00('0x9ef')]({'id':_0x30030a[_0x7ce00('0x14d4')]()[_0x7ce00('0x1946')],'section':'Contacts','includeAll':!![],'sort':_0x7ce00('0x1769'),'limit':0xa,'offset':0x0},_0xf093dc));}],'lists':['apiResolver','Auth',function(_0x2a511a,_0x3586b7){const _0x1104ea=_0x3a4ac4;return _0x3586b7['hasRole'](_0x1104ea('0x79b'))?_0x2a511a[_0x1104ea('0x155b')](_0x1104ea('0x1b8b'),{'fields':_0x1104ea('0xd52'),'sort':_0x1104ea('0x10ad'),'nolimit':!![]}):_0x2a511a['resolve'](_0x1104ea('0x14b3'),{'id':_0x3586b7['getCurrentUser']()[_0x1104ea('0x1946')],'section':_0x1104ea('0xd8b'),'fields':_0x1104ea('0xd52'),'sort':'-updatedAt','nolimit':!![]});}],'listsMap':[_0x3a4ac4('0x9e8'),function(_0x34a1d2){const _0x3f336f=_0x3a4ac4,_0x2012b5={};for(let _0x3e5d43=0x0;_0x3e5d43<_0x34a1d2[_0x3f336f('0x6aa')]['length'];_0x3e5d43++){_0x2012b5[_0x34a1d2[_0x3f336f('0x6aa')][_0x3e5d43]['id']]=_0x34a1d2[_0x3f336f('0x6aa')][_0x3e5d43][_0x3f336f('0x10ad')];}return _0x2012b5;}],'companies':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x1600'),function(_0x3516c6,_0x15a7a6){const _0x182ee4=_0x3a4ac4;return _0x15a7a6[_0x182ee4('0x1b4e')](_0x182ee4('0x79b'))?_0x3516c6[_0x182ee4('0x155b')]('cmCompany@get',{'fields':'id,name','sort':_0x182ee4('0x10ad'),'nolimit':!![]}):_0x3516c6[_0x182ee4('0x155b')](_0x182ee4('0x14b3'),{'id':_0x15a7a6['getCurrentUser']()[_0x182ee4('0x1946')],'section':_0x182ee4('0x254c'),'fields':_0x182ee4('0xd52'),'sort':_0x182ee4('0x10ad'),'nolimit':!![]});}],'companiesMap':[_0x3a4ac4('0x13df'),function(_0xd490ad){const _0x545967=_0x3a4ac4,_0x2aac0d={};for(let _0x5a40b8=0x0;_0x5a40b8<_0xd490ad['rows'][_0x545967('0x543')];_0x5a40b8++){_0x2aac0d[_0xd490ad['rows'][_0x5a40b8]['id']]=_0xd490ad['rows'][_0x5a40b8]['name'];}return _0x2aac0d;}],'tags':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x1600'),function(_0x454bba,_0xb360d8){const _0x98b10c=_0x3a4ac4;return _0xb360d8['hasRole']('admin')?_0x454bba['resolve'](_0x98b10c('0x2549'),{'fields':_0x98b10c('0xd52'),'sort':'name','nolimit':!![]}):_0x454bba['resolve'](_0x98b10c('0x14b3'),{'id':_0xb360d8[_0x98b10c('0x14d4')]()['userProfileId'],'section':_0x98b10c('0xc38'),'fields':_0x98b10c('0xd52'),'sort':_0x98b10c('0x10ad'),'nolimit':!![]});}],'userProfile':[_0x3a4ac4('0x2401'),'Auth',function(_0xc7e12d,_0x41b855){const _0x1ec684=_0x3a4ac4;return _0xc7e12d[_0x1ec684('0x155b')](_0x1ec684('0x1f20'),{'fields':_0x1ec684('0x19dd'),'id':_0x41b855[_0x1ec684('0x14d4')]()[_0x1ec684('0x1946')]});}],'userProfileSection':[_0x3a4ac4('0x2401'),'Auth',function(_0xf1872b,_0x49683a){const _0x195145=_0x3a4ac4;return _0xf1872b['resolve'](_0x195145('0x40'),{'fields':_0x195145('0x1348'),'userProfileId':_0x49683a[_0x195145('0x14d4')]()[_0x195145('0x1946')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x3a4ac4('0x279')})[_0x3a4ac4('0x1a49')](_0x3a4ac4('0x24d0'),{'url':'/:id?tab','params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x113f70,'controller':'ContactController\x20as\x20vm'}},'resolve':{'contact':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x1caf'),function(_0x197436,_0x4d44c7){const _0x3d059c=_0x3a4ac4;return _0x197436[_0x3d059c('0x155b')](_0x3d059c('0x2778'),{'id':_0x4d44c7['id']})[_0x3d059c('0x173b')](function(_0x2cc3a0){const _0xf909d1=_0x3d059c;return _0x2cc3a0[_0xf909d1('0x1182')]&&(_0x2cc3a0[_0xf909d1('0x1182')]=new Date(_0x2cc3a0[_0xf909d1('0x1182')])),_0x2cc3a0;})['catch'](function(_0x3647e5){console['error'](_0x3647e5);});}],'hoppers':['apiResolver','$stateParams',function(_0x5a7fc0,_0x5953ab){const _0x356278=_0x3a4ac4;return _0x5a7fc0[_0x356278('0x155b')]('cmContact@getHoppers',{'id':_0x5953ab['id'],'fields':_0x356278('0x16eb'),'sort':_0x356278('0x1769'),'limit':0xa,'offset':0x0});}],'finals':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x1caf'),function(_0x594ab0,_0x1d5964){const _0x52c46d=_0x3a4ac4;return _0x594ab0[_0x52c46d('0x155b')](_0x52c46d('0x1b8a'),{'id':_0x1d5964['id'],'fields':_0x52c46d('0x24f0'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'histories':[_0x3a4ac4('0x2401'),'$stateParams',function(_0x3dd851,_0x24ef7e){const _0x44e6b1=_0x3a4ac4;return _0x3dd851[_0x44e6b1('0x155b')]('cmContact@getHopperHistories',{'id':_0x24ef7e['id'],'fields':_0x44e6b1('0x1d5d'),'sort':_0x44e6b1('0x1769'),'limit':0xa,'offset':0x0});}],'jscriptySessions':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x1caf'),function(_0x5d7590,_0x4648b5){const _0x589673=_0x3a4ac4;return _0x5d7590[_0x589673('0x155b')](_0x589673('0xc07'),{'id':_0x4648b5['id'],'fields':'id,starttime,endtime,membername,projectname','sort':_0x589673('0x243a'),'limit':0xa,'offset':0x0});}],'companies':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x1600'),function(_0x423048,_0x4a0103){const _0x1e3b00=_0x3a4ac4;return _0x4a0103['hasRole'](_0x1e3b00('0x79b'))?_0x423048[_0x1e3b00('0x155b')](_0x1e3b00('0x8d8')):_0x423048[_0x1e3b00('0x155b')](_0x1e3b00('0x14b3'),{'id':_0x4a0103['getCurrentUser']()['userProfileId'],'section':_0x1e3b00('0x254c')});}],'lists':['apiResolver','Auth',function(_0x4abab8,_0x2d2e30){const _0x1257d7=_0x3a4ac4;return _0x2d2e30['hasRole'](_0x1257d7('0x79b'))?_0x4abab8[_0x1257d7('0x155b')](_0x1257d7('0x1b8b'),{'fields':_0x1257d7('0xd52'),'sort':_0x1257d7('0x1769'),'nolimit':!![]}):_0x4abab8[_0x1257d7('0x155b')](_0x1257d7('0x14b3'),{'id':_0x2d2e30['getCurrentUser']()[_0x1257d7('0x1946')],'section':'Lists','fields':_0x1257d7('0xd52'),'sort':_0x1257d7('0x1769'),'nolimit':!![]});}],'customFields':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x82b'),function(_0x4ad799,_0x2f712d){const _0x1f6535=_0x3a4ac4;return _0x2f712d[_0x1f6535('0xef2')]?_0x4ad799['resolve'](_0x1f6535('0x1802'),{'id':_0x2f712d['ListId']}):null;}],'tags':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x1600'),function(_0x24780e,_0x5a4f83){const _0x317bba=_0x3a4ac4;return _0x5a4f83[_0x317bba('0x1b4e')](_0x317bba('0x79b'))?_0x24780e[_0x317bba('0x155b')](_0x317bba('0x2549')):_0x24780e[_0x317bba('0x155b')]('userProfile@getResources',{'id':_0x5a4f83[_0x317bba('0x14d4')]()[_0x317bba('0x1946')],'section':'Tags'});}],'userProfileSection':[_0x3a4ac4('0x2401'),_0x3a4ac4('0x1600'),function(_0xaa5d25,_0x18ac35){const _0x411892=_0x3a4ac4;return _0xaa5d25[_0x411892('0x155b')](_0x411892('0x40'),{'fields':_0x411892('0x1348'),'userProfileId':_0x18ac35[_0x411892('0x14d4')]()[_0x411892('0x1946')],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0x3a4ac4('0x279')});}angular[_0x566993('0x22c4')](_0x566993('0xaf8'),[])[_0x566993('0xea9')](_0x2e3bee)[_0x566993('0x1e65')]('ContactsController',_0xb32ab6)[_0x566993('0x1e65')]('CreateOrEditContactDialogController',_0x565f6f)[_0x566993('0x1e65')](_0x566993('0x25ba'),_0x3fd77e)[_0x566993('0x1e65')](_0x566993('0x1fd'),_0x7b2c0a)[_0x566993('0x1e65')](_0x566993('0x2686'),_0x3c83ed)[_0x566993('0x1e65')](_0x566993('0x212b'),_0x4d8f93)[_0x566993('0x1e65')](_0x566993('0x1e24'),_0x5adac2);const _0x32bdb7=_0x21a6a1['p']+_0x566993('0x7e3');_0x1941f3['$inject']=['$scope','$window',_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog',_0x566993('0x1b82'),'$timeout',_0x566993('0x638'),_0x566993('0x13df'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),'license','setting'];function _0x1941f3(_0x2b9b34,_0xebbea1,_0x3b32ad,_0x26bc45,_0x39d407,_0x394fac,_0x510219,_0x38b024,_0x53067c,_0x3ee60b,_0x5670a3,_0x1b44c6,_0x7b6797,_0x51f19c,_0x1d9e2a,_0x185f37,_0x2f77c8){const _0x2421e8=_0x566993,_0x60808f=this;_0x60808f[_0x2421e8('0x1a29')]=_0x185f37,_0x60808f[_0x2421e8('0x251')]=_0x2f77c8,_0x60808f[_0x2421e8('0x155f')]=_0x1d9e2a['getCurrentUser'](),_0x60808f[_0x2421e8('0x13df')]=_0x53067c||{'count':0x0,'rows':[]},_0x60808f['userProfile']=_0x3ee60b,_0x60808f[_0x2421e8('0x170e')]=_0x5670a3&&_0x5670a3['count']==0x1?_0x5670a3[_0x2421e8('0x6aa')][0x0]:null,_0x60808f[_0x2421e8('0x1dc1')]=_0x1d9e2a[_0x2421e8('0xde6')](_0x60808f['userProfileSection']?_0x60808f['userProfileSection'][_0x2421e8('0x1dc1')]:null),_0x60808f[_0x2421e8('0xdf9')]=_0x2421e8('0x13df'),_0x60808f[_0x2421e8('0x14d6')]='',_0x60808f[_0x2421e8('0x2303')]=null,_0x60808f['selectedCompanies']=[],_0x60808f['query']={'fields':_0x2421e8('0x21b7'),'sort':_0x2421e8('0x1769'),'limit':0xa,'page':0x1},_0x60808f['editstate']=_0x1ab23d,_0x60808f[_0x2421e8('0x5db')]=_0x56f4ea,_0x60808f[_0x2421e8('0x1a20')]=_0x58f3f2,_0x60808f[_0x2421e8('0xdfe')]=_0x4151ec,_0x60808f[_0x2421e8('0x1c2c')]=_0x41107f,_0x60808f['createOrEditCompany']=_0x43a9ca,_0x60808f[_0x2421e8('0x132f')]=_0x1fd5b6,_0x60808f[_0x2421e8('0x15a1')]=_0x245ad0,_0x60808f[_0x2421e8('0xfd2')]=_0x4bf907,_0x60808f[_0x2421e8('0x200b')]=_0x1d4335,_0x60808f[_0x2421e8('0x182b')]=_0x417413;function _0x1ab23d(_0x217706){const _0x441740=_0x2421e8;_0x3b32ad['go'](_0x441740('0x12d8'),{'id':_0x217706['id'],'company':_0x217706,'crudPermissions':_0x60808f[_0x441740('0x1dc1')]});}function _0x56f4ea(_0x2bf39e){const _0x527359=_0x2421e8;if(_0x1d9e2a['hasRole'](_0x527359('0x79b')))_0x3b32ad['go'](_0x527359('0xaf8'),{'CompanyId':_0x2bf39e['id']});else return _0x1b44c6['userProfileSection']['get']({'userProfileId':_0x1d9e2a[_0x527359('0x14d4')]()[_0x527359('0x1946')],'sectionId':0x12f})['$promise'][_0x527359('0x173b')](function(_0x4fcfaa){const _0x56ca15=_0x527359,_0x561af0=_0x4fcfaa&&_0x4fcfaa['rows']?_0x4fcfaa[_0x56ca15('0x6aa')][0x0]:null;_0x561af0&&_0x561af0['enabled']?_0x3b32ad['go'](_0x56ca15('0xaf8'),{'CompanyId':_0x2bf39e['id']}):_0x51f19c['info']({'title':_0x38b024[_0x56ca15('0x1467')](_0x56ca15('0x4aa')),'msg':_0x38b024[_0x56ca15('0x1467')](_0x56ca15('0x7d4'))});})['catch'](function(_0x4f88e8){const _0x5829f8=_0x527359;_0x51f19c[_0x5829f8('0x15aa')]({'title':_0x4f88e8[_0x5829f8('0x276f')]?_0x5829f8('0x137')+_0x4f88e8[_0x5829f8('0x276f')]+'\x20-\x20'+_0x4f88e8['statusText']:'USERPROFILE:GET_SECTION','msg':_0x4f88e8[_0x5829f8('0x276f')]?JSON['stringify'](_0x4f88e8[_0x5829f8('0x1e07')]):_0x4f88e8[_0x5829f8('0x1b75')]()});});}function _0x58f3f2(_0x35b59d,_0x8049fe){const _0x37b590=_0x2421e8,_0x2d5fce=_0x39d407[_0x37b590('0x1d02')]()[_0x37b590('0x20d6')](_0x37b590('0x5bb')+_0x3c8d8a()[_0x37b590('0x10e')](_0x37b590('0x196c'))+'?')[_0x37b590('0xf8b')](_0x37b590('0x15b9')+(_0x35b59d[_0x37b590('0x10ad')]||_0x37b590('0x196c'))+_0x37b590('0x24be')+_0x37b590('0xd23'))[_0x37b590('0x217')](_0x37b590('0x1a46'))['targetEvent'](_0x8049fe)['ok']('OK')[_0x37b590('0x1e1f')](_0x37b590('0x468'));_0x39d407[_0x37b590('0x1cb7')](_0x2d5fce)[_0x37b590('0x173b')](function(){_0x1fd5b6(_0x35b59d);},function(){const _0x468e75=_0x37b590;console[_0x468e75('0xe37')](_0x468e75('0x468'));});}let _0x1f696d=!![],_0x99f23d=0x1;_0x2b9b34[_0x2421e8('0x1bdb')](_0x2421e8('0x157b'),function(_0x4c3065,_0x3ce63c){const _0x366326=_0x2421e8;_0x1f696d?_0x510219(function(){_0x1f696d=![];}):(!_0x3ce63c&&(_0x99f23d=_0x60808f['query'][_0x366326('0x182e')]),_0x4c3065!==_0x3ce63c&&(_0x60808f[_0x366326('0xc49')][_0x366326('0x182e')]=0x1),!_0x4c3065&&(_0x60808f[_0x366326('0xc49')][_0x366326('0x182e')]=_0x99f23d),_0x60808f[_0x366326('0x1c2c')]());});function _0x4151ec(_0x58c15b){const _0x2ca8de=_0x2421e8;_0x60808f[_0x2ca8de('0x13df')]=_0x58c15b||{'count':0x0,'rows':[]};}function _0x41107f(){const _0x1c23c4=_0x2421e8;_0x60808f[_0x1c23c4('0xc49')][_0x1c23c4('0x17f0')]=(_0x60808f[_0x1c23c4('0xc49')][_0x1c23c4('0x182e')]-0x1)*_0x60808f[_0x1c23c4('0xc49')][_0x1c23c4('0x3e')],_0x1d9e2a[_0x1c23c4('0x1b4e')](_0x1c23c4('0x79b'))?_0x60808f[_0x1c23c4('0x2219')]=_0x1b44c6['cmCompany'][_0x1c23c4('0x1d97')](_0x60808f[_0x1c23c4('0xc49')],_0x4151ec)['$promise']:(_0x60808f[_0x1c23c4('0xc49')]['id']=_0x60808f[_0x1c23c4('0x257b')]['id'],_0x60808f['query']['section']=_0x1c23c4('0x254c'),_0x60808f['promise']=_0x1b44c6[_0x1c23c4('0x257b')]['getResources'](_0x60808f['query'],_0x4151ec)[_0x1c23c4('0x1964')]);}function _0x43a9ca(_0x33cf6e,_0x262878){const _0xd32f33=_0x2421e8;_0x39d407['show']({'controller':_0xd32f33('0x532'),'controllerAs':'vm','templateUrl':_0x32bdb7,'parent':angular['element'](_0x394fac[_0xd32f33('0x1a5')]),'targetEvent':_0x33cf6e,'clickOutsideToClose':!![],'locals':{'company':_0x262878,'companies':_0x60808f[_0xd32f33('0x13df')][_0xd32f33('0x6aa')],'license':_0x60808f['license'],'setting':_0x60808f[_0xd32f33('0x251')],'crudPermissions':_0x60808f[_0xd32f33('0x1dc1')]}});}function _0x1fd5b6(_0x4ad0f5){const _0x4a7fc1=_0x2421e8;_0x1b44c6[_0x4a7fc1('0x1904')]['delete']({'id':_0x4ad0f5['id']})[_0x4a7fc1('0x1964')]['then'](function(){const _0x541651=_0x4a7fc1;_0x3c8d8a()[_0x541651('0x1a8b')](_0x60808f[_0x541651('0x13df')][_0x541651('0x6aa')],{'id':_0x4ad0f5['id']}),_0x60808f['companies'][_0x541651('0x1a2f')]-=0x1,!_0x60808f['companies'][_0x541651('0x6aa')][_0x541651('0x543')]&&_0x60808f[_0x541651('0x1c2c')](),_0x51f19c[_0x541651('0xdfe')]({'title':_0x3c8d8a()[_0x541651('0x10e')](_0x541651('0x25df'))+_0x541651('0x1c5e'),'msg':_0x4ad0f5['name']?_0x4ad0f5[_0x541651('0x10ad')]+_0x541651('0x25d2'):''});})[_0x4a7fc1('0x103c')](function(_0x5ad256){const _0x56ca5d=_0x4a7fc1;if(_0x5ad256[_0x56ca5d('0x1e07')]&&_0x5ad256[_0x56ca5d('0x1e07')][_0x56ca5d('0x1d4a')]&&_0x5ad256['data']['errors'][_0x56ca5d('0x543')]){_0x60808f[_0x56ca5d('0x1d4a')]=_0x5ad256['data'][_0x56ca5d('0x1d4a')]||[{'message':_0x5ad256[_0x56ca5d('0x1b75')](),'type':'SYSTEM:DELETEcmCompany'}];for(let _0x3302fe=0x0;_0x3302fe<_0x5ad256[_0x56ca5d('0x1e07')]['errors'][_0x56ca5d('0x543')];_0x3302fe++){_0x51f19c[_0x56ca5d('0x15aa')]({'title':_0x5ad256[_0x56ca5d('0x1e07')][_0x56ca5d('0x1d4a')][_0x3302fe]['type'],'msg':_0x5ad256['data'][_0x56ca5d('0x1d4a')][_0x3302fe]['message']});}}else _0x51f19c[_0x56ca5d('0x15aa')]({'title':_0x5ad256[_0x56ca5d('0x276f')]?_0x56ca5d('0x137')+_0x5ad256[_0x56ca5d('0x276f')]+_0x56ca5d('0x160c')+_0x5ad256[_0x56ca5d('0x2696')]:'SYSTEM:DELETEcmCompany','msg':_0x5ad256[_0x56ca5d('0x1e07')]?JSON[_0x56ca5d('0x100b')](_0x5ad256[_0x56ca5d('0x1e07')][_0x56ca5d('0x67f')]):_0x5ad256[_0x56ca5d('0x67f')]||_0x5ad256[_0x56ca5d('0x1b75')]()});});}function _0x245ad0(){const _0x106eb9=angular['copy'](_0x60808f['selectedCompanies']);return _0x60808f['selectedCompanies']=[],_0x106eb9;}function _0x4bf907(_0x2f3eaf){const _0x744e73=_0x2421e8,_0x27e49b=_0x39d407[_0x744e73('0x1d02')]()[_0x744e73('0x20d6')](_0x744e73('0x282b'))[_0x744e73('0xf8b')](''+_0x60808f[_0x744e73('0x6a1')][_0x744e73('0x543')]+_0x744e73('0xcb4')+'\x20will\x20be\x20deleted.')[_0x744e73('0x217')](_0x744e73('0x20bf'))[_0x744e73('0x21de')](_0x2f3eaf)['ok']('OK')[_0x744e73('0x1e1f')](_0x744e73('0x468'));_0x39d407[_0x744e73('0x1cb7')](_0x27e49b)['then'](function(){const _0x4c4806=_0x744e73;_0x60808f[_0x4c4806('0x6a1')][_0x4c4806('0xa6a')](function(_0x2b8f1d){_0x1fd5b6(_0x2b8f1d);}),_0x60808f[_0x4c4806('0x6a1')]=[];});}function _0x1d4335(){const _0x1e7dfa=_0x2421e8;_0x60808f[_0x1e7dfa('0x6a1')]=[];}function _0x417413(){const _0x8cf48=_0x2421e8;_0x60808f[_0x8cf48('0x6a1')]=_0x60808f['companies'][_0x8cf48('0x6aa')];}}const _0x120544=_0x1941f3;_0x258fda[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),'companies','company',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x258fda(_0x517910,_0x406d75,_0xf3cbdf,_0x27564a,_0x248897,_0x566373,_0x96c9aa,_0x5053fd,_0x410379,_0x4b8280,_0x302ecc,_0x23b0ec,_0x393574,_0x34660a){const _0x3adc38=_0x566993,_0x4a1d34=this;_0x4a1d34['currentUser']=_0x302ecc[_0x3adc38('0x14d4')](),_0x4a1d34[_0x3adc38('0x1d4a')]=[],_0x4a1d34[_0x3adc38('0x251')]=_0x393574,_0x4a1d34[_0x3adc38('0x1a29')]=_0x23b0ec,_0x4a1d34['crudPermissions']=_0x34660a,_0x4a1d34[_0x3adc38('0xb0')]={},_0x4a1d34[_0x3adc38('0x644')]=_0x4a1d34[_0x3adc38('0x251')]&&_0x4a1d34[_0x3adc38('0x251')][_0x3adc38('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a1d34[_0x3adc38('0x20d6')]=_0x3adc38('0xf8f'),_0x4a1d34[_0x3adc38('0x196c')]=angular['copy'](_0x410379),_0x4a1d34[_0x3adc38('0x13df')]=_0x5053fd,_0x4a1d34['newCompany']=![];!_0x4a1d34[_0x3adc38('0x196c')]&&(_0x4a1d34['company']={},_0x4a1d34[_0x3adc38('0x20d6')]=_0x3adc38('0x1316'),_0x4a1d34[_0x3adc38('0x19d0')]=!![]);_0x4a1d34[_0x3adc38('0x1a68')]=_0x37dcda,_0x4a1d34[_0x3adc38('0x23af')]=_0x4feef2,_0x4a1d34[_0x3adc38('0x132f')]=_0x3a465b,_0x4a1d34[_0x3adc38('0x11ae')]=_0x38c161,_0x4a1d34[_0x3adc38('0x18e2')]=_0x578387;function _0x37dcda(){const _0x2b33f5=_0x3adc38;_0x4a1d34[_0x2b33f5('0x1d4a')]=[],_0x4b8280['cmCompany']['save'](_0x4a1d34[_0x2b33f5('0x196c')])[_0x2b33f5('0x1964')]['then'](function(_0x40829b){const _0x5c488e=_0x2b33f5;_0x4a1d34[_0x5c488e('0x13df')][_0x5c488e('0x1377')](_0x40829b[_0x5c488e('0xf1f')]()),_0x96c9aa['success']({'title':'Company\x20properly\x20created','msg':_0x4a1d34[_0x5c488e('0x196c')][_0x5c488e('0x10ad')]?_0x4a1d34['company'][_0x5c488e('0x10ad')]+_0x5c488e('0x209a'):''}),_0x578387(_0x40829b);})[_0x2b33f5('0x103c')](function(_0x1d3080){const _0x47b124=_0x2b33f5;if(_0x1d3080['data']&&_0x1d3080['data']['errors']&&_0x1d3080['data'][_0x47b124('0x1d4a')][_0x47b124('0x543')]){_0x4a1d34[_0x47b124('0x1d4a')]=_0x1d3080[_0x47b124('0x1e07')]['errors']||[{'message':_0x1d3080[_0x47b124('0x1b75')](),'type':_0x47b124('0xbe1')}];for(let _0x3d2e2a=0x0;_0x3d2e2a<_0x1d3080[_0x47b124('0x1e07')]['errors'][_0x47b124('0x543')];_0x3d2e2a+=0x1){_0x96c9aa[_0x47b124('0x15aa')]({'title':_0x1d3080[_0x47b124('0x1e07')][_0x47b124('0x1d4a')][_0x3d2e2a]['type'],'msg':_0x1d3080[_0x47b124('0x1e07')][_0x47b124('0x1d4a')][_0x3d2e2a][_0x47b124('0x67f')]});}}else _0x96c9aa['error']({'title':_0x1d3080[_0x47b124('0x276f')]?'API:'+_0x1d3080[_0x47b124('0x276f')]+_0x47b124('0x160c')+_0x1d3080[_0x47b124('0x2696')]:_0x47b124('0xbe1'),'msg':_0x1d3080['data']?JSON['stringify'](_0x1d3080['data']['message']):_0x1d3080['toString']()});});}function _0x4feef2(){const _0x14e038=_0x3adc38;_0x4a1d34[_0x14e038('0x1d4a')]=[],_0x4b8280[_0x14e038('0x1904')][_0x14e038('0x1842')]({'id':_0x4a1d34[_0x14e038('0x196c')]['id']},_0x4a1d34[_0x14e038('0x196c')])[_0x14e038('0x1964')][_0x14e038('0x173b')](function(_0x4a1231){const _0x915e0c=_0x14e038,_0x1372f3=_0x3c8d8a()[_0x915e0c('0x18ab')](_0x4a1d34[_0x915e0c('0x13df')],{'id':_0x4a1231['id']});_0x1372f3&&_0x3c8d8a()['merge'](_0x1372f3,_0x3c8d8a()[_0x915e0c('0x2114')](_0x4a1231[_0x915e0c('0xf1f')](),_0x3c8d8a()[_0x915e0c('0x1d3e')](_0x1372f3))),_0x96c9aa[_0x915e0c('0xdfe')]({'title':_0x915e0c('0x1c0d'),'msg':_0x4a1d34[_0x915e0c('0x196c')]['name']?_0x4a1d34[_0x915e0c('0x196c')][_0x915e0c('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x578387(_0x4a1231);})[_0x14e038('0x103c')](function(_0x2b7be1){const _0x553b46=_0x14e038;if(_0x2b7be1[_0x553b46('0x1e07')]&&_0x2b7be1[_0x553b46('0x1e07')][_0x553b46('0x1d4a')]&&_0x2b7be1[_0x553b46('0x1e07')][_0x553b46('0x1d4a')][_0x553b46('0x543')]){_0x4a1d34['errors']=_0x2b7be1[_0x553b46('0x1e07')][_0x553b46('0x1d4a')]||[{'message':_0x2b7be1[_0x553b46('0x1b75')](),'type':'api.cmCompany.update'}];for(let _0x51b717=0x0;_0x51b717<_0x2b7be1[_0x553b46('0x1e07')][_0x553b46('0x1d4a')][_0x553b46('0x543')];_0x51b717++){_0x96c9aa[_0x553b46('0x15aa')]({'title':_0x2b7be1[_0x553b46('0x1e07')]['errors'][_0x51b717][_0x553b46('0x1810')],'msg':_0x2b7be1[_0x553b46('0x1e07')][_0x553b46('0x1d4a')][_0x51b717][_0x553b46('0x67f')]});}}else _0x96c9aa[_0x553b46('0x15aa')]({'title':_0x2b7be1[_0x553b46('0x276f')]?_0x553b46('0x137')+_0x2b7be1[_0x553b46('0x276f')]+'\x20-\x20'+_0x2b7be1[_0x553b46('0x2696')]:'api.cmCompany.update','msg':_0x2b7be1[_0x553b46('0x1e07')]?JSON[_0x553b46('0x100b')](_0x2b7be1['data'][_0x553b46('0x67f')]):_0x2b7be1[_0x553b46('0x1b75')]()});});}function _0x3a465b(_0x42a00a){const _0x5111ba=_0x3adc38;_0x4a1d34['errors']=[];const _0x4a39bd=_0x27564a[_0x5111ba('0x1d02')]()['title'](_0x5111ba('0x8ef'))['content'](_0x5111ba('0x803'))[_0x5111ba('0x217')]('Delete\x20Company')['ok'](_0x5111ba('0x2373'))[_0x5111ba('0x1e1f')](_0x5111ba('0x1d4e'))['targetEvent'](_0x42a00a);_0x27564a[_0x5111ba('0x1cb7')](_0x4a39bd)[_0x5111ba('0x173b')](function(){const _0x9e346f=_0x5111ba;_0x4b8280[_0x9e346f('0x1904')][_0x9e346f('0x15e8')]({'id':_0x4a1d34[_0x9e346f('0x196c')]['id']})[_0x9e346f('0x1964')][_0x9e346f('0x173b')](function(){const _0x1984c6=_0x9e346f;_0x3c8d8a()[_0x1984c6('0x1a8b')](_0x4a1d34[_0x1984c6('0x13df')],{'id':_0x4a1d34[_0x1984c6('0x196c')]['id']}),_0x96c9aa[_0x1984c6('0xdfe')]({'title':_0x1984c6('0x769'),'msg':(_0x4a1d34[_0x1984c6('0x196c')][_0x1984c6('0x10ad')]||'company')+_0x1984c6('0x25d2')}),_0x578387(_0x4a1d34[_0x1984c6('0x196c')]);})[_0x9e346f('0x103c')](function(_0x4d01fb){const _0x69d2b4=_0x9e346f;if(_0x4d01fb[_0x69d2b4('0x1e07')]&&_0x4d01fb[_0x69d2b4('0x1e07')][_0x69d2b4('0x1d4a')]&&_0x4d01fb[_0x69d2b4('0x1e07')][_0x69d2b4('0x1d4a')]['length']){_0x4a1d34[_0x69d2b4('0x1d4a')]=_0x4d01fb['data']['errors']||[{'message':_0x4d01fb[_0x69d2b4('0x1b75')](),'type':_0x69d2b4('0xabf')}];for(let _0x424594=0x0;_0x424594<_0x4d01fb[_0x69d2b4('0x1e07')]['errors'][_0x69d2b4('0x543')];_0x424594++){_0x96c9aa[_0x69d2b4('0x15aa')]({'title':_0x4d01fb['data'][_0x69d2b4('0x1d4a')][_0x424594][_0x69d2b4('0x1810')],'msg':_0x4d01fb[_0x69d2b4('0x1e07')]['errors'][_0x424594][_0x69d2b4('0x67f')]});}}else _0x96c9aa[_0x69d2b4('0x15aa')]({'title':_0x4d01fb[_0x69d2b4('0x276f')]?_0x69d2b4('0x137')+_0x4d01fb[_0x69d2b4('0x276f')]+_0x69d2b4('0x160c')+_0x4d01fb['statusText']:'api.cmCompany.delete','msg':_0x4d01fb[_0x69d2b4('0x1e07')]?JSON['stringify'](_0x4d01fb[_0x69d2b4('0x1e07')][_0x69d2b4('0x67f')]):_0x4d01fb[_0x69d2b4('0x67f')]||_0x4d01fb['toString']()});});},function(){});}function _0x38c161(_0x4acc4a){return _0x4acc4a===null?undefined:new Date(_0x4acc4a);}function _0x578387(_0x348989){const _0x9486e2=_0x3adc38;_0x27564a[_0x9486e2('0x1cf4')](_0x348989);}}const _0x372802=_0x258fda;_0x24442a['$inject']=[_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$document',_0x566993('0x638'),_0x566993('0x1a29'),'setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x196c'),_0x566993('0x170e')];function _0x24442a(_0x4c12b0,_0xde9b14,_0x321301,_0x1f8d30,_0x3b6c1d,_0x18e792,_0x28f740,_0x5d3acb,_0x3bb25d,_0x3c8d49,_0x4fcd19,_0x566d4c){const _0x328a5d=_0x566993,_0x589950=this;_0x589950[_0x328a5d('0x155f')]=_0x3c8d49[_0x328a5d('0x14d4')](),_0x589950[_0x328a5d('0x1a29')]=_0x18e792,_0x589950[_0x328a5d('0x251')]=_0x28f740,_0x589950[_0x328a5d('0x644')]=_0x589950['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x589950[_0x328a5d('0x614')]=_0xde9b14[_0x328a5d('0x375')]()+_0x328a5d('0x122b')+_0xde9b14[_0x328a5d('0x4d1')](),_0x589950[_0x328a5d('0x196c')]=_0x4fcd19||_0x4c12b0[_0x328a5d('0x197a')][_0x328a5d('0x196c')]||{},_0x589950[_0x328a5d('0x170e')]=_0x566d4c&&_0x566d4c[_0x328a5d('0x1a2f')]==0x1?_0x566d4c[_0x328a5d('0x6aa')][0x0]:null,_0x589950[_0x328a5d('0x1dc1')]=_0x3c8d49[_0x328a5d('0xde6')](_0x589950['userProfileSection']?_0x589950[_0x328a5d('0x170e')]['crudPermissions']:null),_0x589950[_0x328a5d('0xb0')]={},_0x589950[_0x328a5d('0xd5f')]=_0x4c12b0[_0x328a5d('0x197a')][_0x328a5d('0x1e66')]||0x0,_0x589950[_0x328a5d('0xa47')]=_0x3be0da,_0x589950[_0x328a5d('0x5a4')]=_0x3bb25d[_0x328a5d('0x2787')],_0x589950['gotoCompanies']=_0x2e9e23,_0x589950[_0x328a5d('0x23af')]=_0x40aae8;function _0x3be0da(_0x1eefde){const _0x1640cf=_0x328a5d;if(_0x3c8d49[_0x1640cf('0x1b4e')](_0x1640cf('0x79b')))_0x4c12b0['go'](_0x1640cf('0xaf8'),{'CompanyId':_0x1eefde['id']});else return _0x5d3acb[_0x1640cf('0x170e')][_0x1640cf('0x1d97')]({'userProfileId':_0x3c8d49[_0x1640cf('0x14d4')]()[_0x1640cf('0x1946')],'sectionId':0x12f})[_0x1640cf('0x1964')]['then'](function(_0xd2c6fc){const _0x5ad0dd=_0x1640cf,_0x2a91b0=_0xd2c6fc&&_0xd2c6fc['rows']?_0xd2c6fc['rows'][0x0]:null;_0x2a91b0&&_0x2a91b0['enabled']?_0x4c12b0['go'](_0x5ad0dd('0xaf8'),{'CompanyId':_0x1eefde['id']}):_0x3bb25d[_0x5ad0dd('0x2787')]({'title':_0x3b6c1d[_0x5ad0dd('0x1467')](_0x5ad0dd('0x4aa')),'msg':_0x3b6c1d[_0x5ad0dd('0x1467')](_0x5ad0dd('0x7d4'))});})[_0x1640cf('0x103c')](function(_0x5381e7){const _0x2a028c=_0x1640cf;_0x3bb25d[_0x2a028c('0x15aa')]({'title':_0x5381e7[_0x2a028c('0x276f')]?'API:'+_0x5381e7[_0x2a028c('0x276f')]+_0x2a028c('0x160c')+_0x5381e7[_0x2a028c('0x2696')]:_0x2a028c('0x144d'),'msg':_0x5381e7[_0x2a028c('0x276f')]?JSON[_0x2a028c('0x100b')](_0x5381e7[_0x2a028c('0x1e07')]):_0x5381e7['toString']()});});}function _0x2e9e23(){const _0xde467e=_0x328a5d;_0x4c12b0['go']('app.contactmanager.companies',{},{'reload':_0xde467e('0xbcc')});}function _0x40aae8(){const _0x4d2bea=_0x328a5d;_0x5d3acb['cmCompany']['update']({'id':_0x589950[_0x4d2bea('0x196c')]['id']},_0x589950[_0x4d2bea('0x196c')])[_0x4d2bea('0x1964')]['then'](function(){const _0x24aeea=_0x4d2bea;_0x3bb25d['success']({'title':_0x24aeea('0x1ceb'),'msg':_0x589950[_0x24aeea('0x196c')][_0x24aeea('0x10ad')]?_0x589950['company'][_0x24aeea('0x10ad')]+_0x24aeea('0x1fd6'):''});})['catch'](function(_0x57e9f2){const _0x244718=_0x4d2bea;_0x3bb25d[_0x244718('0x15aa')]({'title':_0x57e9f2[_0x244718('0x276f')]?_0x244718('0x137')+_0x57e9f2['status']+'\x20-\x20'+_0x57e9f2[_0x244718('0x2696')]:_0x244718('0x1a76'),'msg':_0x57e9f2[_0x244718('0x1e07')]?JSON[_0x244718('0x100b')](_0x57e9f2[_0x244718('0x1e07')]):_0x57e9f2[_0x244718('0x1b75')]()});});}}const _0x39dcf6=_0x24442a;_0x7ab2eb[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x2407'),_0x566993('0x15ff'),_0x566993('0xbd4'),_0x566993('0x1600'),'license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x7ab2eb(_0x2ddb0c,_0xde6b53,_0x4c6db1,_0x5a26ef,_0x321c98,_0x22aed1,_0x306468,_0x3cce37,_0x5a53d7,_0x5f581d,_0x1019b6,_0x11dca8,_0x39b545,_0x18e2b0){const _0x35763a=_0x566993,_0x5e1c1b=this;_0x5e1c1b[_0x35763a('0x155f')]=_0x1019b6['getCurrentUser'](),_0x5e1c1b[_0x35763a('0x1d4a')]=[],_0x5e1c1b[_0x35763a('0x251')]=_0x39b545,_0x5e1c1b[_0x35763a('0x1a29')]=_0x11dca8,_0x5e1c1b[_0x35763a('0x1dc1')]=_0x18e2b0,_0x5e1c1b['hasModulePermissions']={},_0x5e1c1b[_0x35763a('0x644')]=_0x5e1c1b['setting']&&_0x5e1c1b[_0x35763a('0x251')][_0x35763a('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e1c1b[_0x35763a('0x20d6')]='CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD',_0x5e1c1b['sortable']={'animation':0x320,'sort':!![],'onSort':function(){const _0x1ef51a=_0x35763a;_0x2ddb0c[_0x1ef51a('0x857')][_0x1ef51a('0x1d2b')]=![];}},_0x5e1c1b[_0x35763a('0x15ff')]=_0x5a53d7,_0x5e1c1b[_0x35763a('0x2407')]=_0x3cce37,_0x5e1c1b['newGlobalCustomField']=![];!_0x5e1c1b[_0x35763a('0x15ff')]&&(_0x5e1c1b[_0x35763a('0x15ff')]={'type':'text','actionType':_0x35763a('0x21a8')},_0x5e1c1b['title']=_0x35763a('0xd14'),_0x5e1c1b[_0x35763a('0xe97')]=!![]);_0x2ddb0c[_0x35763a('0x1bdb')]('vm.globalCustomField.type',function(_0x310864,_0x370e14){const _0x4bf87e=_0x35763a;if(_0x310864!==_0x370e14)switch(_0x310864){case _0x4bf87e('0x86e'):_0x5e1c1b[_0x4bf87e('0x15ff')][_0x4bf87e('0xcaf')]='';break;case _0x4bf87e('0xc65'):_0x5e1c1b[_0x4bf87e('0x15ff')][_0x4bf87e('0xcaf')]=[];break;default:}}),_0x5e1c1b[_0x35763a('0xb2b')]=_0x5fb779,_0x5e1c1b[_0x35763a('0x1759')]=_0x1bd0cf,_0x5e1c1b[_0x35763a('0x281c')]=_0x3d84e4,_0x5e1c1b[_0x35763a('0x11ae')]=_0xbd5c5f,_0x5e1c1b[_0x35763a('0xbc4')]=_0x4257e4,_0x5e1c1b[_0x35763a('0x2813')]=_0x1f4194,_0x5e1c1b['removeItems']=_0xf347de,_0x5e1c1b[_0x35763a('0x18e2')]=_0x2afbde;function _0x4257e4(_0xe475e3){const _0x4e8078=_0x35763a;_0xe475e3[_0x4e8078('0x18bb')]({'value':_0x4e8078('0x18f')}),_0x2ddb0c[_0x4e8078('0x857')][_0x4e8078('0x1d2b')]=![];}function _0x1f4194(_0x1e269a,_0x13db49){const _0x668000=_0x35763a;_0x1e269a[_0x668000('0x553')](_0x13db49,0x1),_0x2ddb0c[_0x668000('0x857')][_0x668000('0x1d2b')]=![];}function _0xf347de(_0x454207){const _0x1820c0=_0x35763a,_0x2240ca=_0x454207['length'];for(let _0x49603b=0x0;_0x49603b<_0x2240ca;_0x49603b++){_0x454207[_0x1820c0('0x553')](0x0,0x1);}_0x2ddb0c['globalCustomFieldForm'][_0x1820c0('0x1d2b')]=![];}function _0x5fb779(){const _0x6b070f=_0x35763a;_0x5e1c1b[_0x6b070f('0x1d4a')]=[],_0x5f581d[_0x6b070f('0x157a')][_0x6b070f('0x1195')](_0x5e1c1b[_0x6b070f('0x15ff')])[_0x6b070f('0x1964')][_0x6b070f('0x173b')](function(_0x3bdc6a){const _0x4507c9=_0x6b070f;_0x5e1c1b[_0x4507c9('0x2407')][_0x4507c9('0x1377')](_0x3bdc6a[_0x4507c9('0xf1f')]()),_0x306468[_0x4507c9('0xdfe')]({'title':'GlobalCustomField\x20properly\x20created','msg':_0x5e1c1b[_0x4507c9('0x15ff')]['name']?_0x5e1c1b[_0x4507c9('0x15ff')]['name']+'\x20has\x20been\x20created!':''}),_0x2afbde(_0x3bdc6a);})[_0x6b070f('0x103c')](function(_0x1ee17c){const _0x16db01=_0x6b070f;if(_0x1ee17c[_0x16db01('0x1e07')]&&_0x1ee17c[_0x16db01('0x1e07')][_0x16db01('0x1d4a')]&&_0x1ee17c[_0x16db01('0x1e07')][_0x16db01('0x1d4a')][_0x16db01('0x543')]){_0x5e1c1b[_0x16db01('0x1d4a')]=_0x1ee17c[_0x16db01('0x1e07')][_0x16db01('0x1d4a')]||[{'message':_0x1ee17c[_0x16db01('0x1b75')](),'type':_0x16db01('0x654')}];for(let _0x49a89b=0x0;_0x49a89b<_0x1ee17c[_0x16db01('0x1e07')][_0x16db01('0x1d4a')]['length'];_0x49a89b+=0x1){_0x306468[_0x16db01('0x15aa')]({'title':_0x1ee17c[_0x16db01('0x1e07')]['errors'][_0x49a89b][_0x16db01('0x1810')],'msg':_0x1ee17c[_0x16db01('0x1e07')]['errors'][_0x49a89b][_0x16db01('0x67f')]});}}else _0x306468[_0x16db01('0x15aa')]({'title':_0x1ee17c[_0x16db01('0x276f')]?_0x16db01('0x137')+_0x1ee17c[_0x16db01('0x276f')]+_0x16db01('0x160c')+_0x1ee17c[_0x16db01('0x2696')]:_0x16db01('0x654'),'msg':_0x1ee17c[_0x16db01('0x1e07')]?JSON[_0x16db01('0x100b')](_0x1ee17c[_0x16db01('0x1e07')][_0x16db01('0x67f')]):_0x1ee17c['toString']()});});}function _0x1bd0cf(){const _0x4a4655=_0x35763a;_0x5e1c1b[_0x4a4655('0x1d4a')]=[],_0x5f581d[_0x4a4655('0x157a')][_0x4a4655('0x1842')]({'id':_0x5e1c1b[_0x4a4655('0x15ff')]['id']},_0x5e1c1b[_0x4a4655('0x15ff')])[_0x4a4655('0x1964')][_0x4a4655('0x173b')](function(_0x121871){const _0x10e0fd=_0x4a4655,_0x49f9c2=_0x3c8d8a()[_0x10e0fd('0x18ab')](_0x5e1c1b[_0x10e0fd('0x2407')],{'id':_0x121871['id']});_0x49f9c2&&_0x3c8d8a()['merge'](_0x49f9c2,_0x3c8d8a()[_0x10e0fd('0x2114')](_0x121871[_0x10e0fd('0xf1f')](),_0x3c8d8a()['keys'](_0x49f9c2))),_0x306468['success']({'title':_0x10e0fd('0xdff'),'msg':_0x5e1c1b[_0x10e0fd('0x15ff')]['name']?_0x5e1c1b[_0x10e0fd('0x15ff')][_0x10e0fd('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x2afbde(_0x121871);})[_0x4a4655('0x103c')](function(_0x3a8f66){const _0x49134e=_0x4a4655;if(_0x3a8f66[_0x49134e('0x1e07')]&&_0x3a8f66[_0x49134e('0x1e07')][_0x49134e('0x1d4a')]&&_0x3a8f66[_0x49134e('0x1e07')][_0x49134e('0x1d4a')][_0x49134e('0x543')]){_0x5e1c1b[_0x49134e('0x1d4a')]=_0x3a8f66[_0x49134e('0x1e07')][_0x49134e('0x1d4a')]||[{'message':_0x3a8f66['toString'](),'type':_0x49134e('0x957')}];for(let _0x3dbc06=0x0;_0x3dbc06<_0x3a8f66[_0x49134e('0x1e07')][_0x49134e('0x1d4a')][_0x49134e('0x543')];_0x3dbc06++){_0x306468['error']({'title':_0x3a8f66[_0x49134e('0x1e07')][_0x49134e('0x1d4a')][_0x3dbc06]['type'],'msg':_0x3a8f66['data'][_0x49134e('0x1d4a')][_0x3dbc06][_0x49134e('0x67f')]});}}else _0x306468[_0x49134e('0x15aa')]({'title':_0x3a8f66[_0x49134e('0x276f')]?_0x49134e('0x137')+_0x3a8f66[_0x49134e('0x276f')]+'\x20-\x20'+_0x3a8f66[_0x49134e('0x2696')]:_0x49134e('0x957'),'msg':_0x3a8f66['data']?JSON[_0x49134e('0x100b')](_0x3a8f66[_0x49134e('0x1e07')][_0x49134e('0x67f')]):_0x3a8f66[_0x49134e('0x1b75')]()});});}function _0x3d84e4(_0x104dd2){const _0x2ccd01=_0x35763a;_0x5e1c1b[_0x2ccd01('0x1d4a')]=[];const _0x565a28=_0x5a26ef[_0x2ccd01('0x1d02')]()[_0x2ccd01('0x20d6')](_0x2ccd01('0x8ef'))[_0x2ccd01('0x732')](_0x2ccd01('0x1275'))[_0x2ccd01('0x217')](_0x2ccd01('0x1f66'))['ok'](_0x2ccd01('0x2373'))['cancel'](_0x2ccd01('0x1d4e'))[_0x2ccd01('0x21de')](_0x104dd2);_0x5a26ef['show'](_0x565a28)['then'](function(){const _0x36491b=_0x2ccd01;_0x5f581d[_0x36491b('0x157a')][_0x36491b('0x15e8')]({'id':_0x5e1c1b[_0x36491b('0x15ff')]['id']})['$promise'][_0x36491b('0x173b')](function(){const _0x2b5ac4=_0x36491b;_0x3c8d8a()[_0x2b5ac4('0x1a8b')](_0x5e1c1b[_0x2b5ac4('0x2407')],{'id':_0x5e1c1b['globalCustomField']['id']}),_0x306468[_0x2b5ac4('0xdfe')]({'title':_0x2b5ac4('0x181a'),'msg':(_0x5e1c1b['globalCustomField'][_0x2b5ac4('0x10ad')]||'globalCustomField')+_0x2b5ac4('0x25d2')}),_0x2afbde(_0x5e1c1b[_0x2b5ac4('0x15ff')]);})[_0x36491b('0x103c')](function(_0xe9b318){const _0xaacd3b=_0x36491b;if(_0xe9b318['data']&&_0xe9b318['data'][_0xaacd3b('0x1d4a')]&&_0xe9b318[_0xaacd3b('0x1e07')][_0xaacd3b('0x1d4a')][_0xaacd3b('0x543')]){_0x5e1c1b['errors']=_0xe9b318['data'][_0xaacd3b('0x1d4a')]||[{'message':_0xe9b318[_0xaacd3b('0x1b75')](),'type':'api.cmCustomField.delete'}];for(let _0x112a69=0x0;_0x112a69<_0xe9b318[_0xaacd3b('0x1e07')]['errors'][_0xaacd3b('0x543')];_0x112a69++){_0x306468['error']({'title':_0xe9b318[_0xaacd3b('0x1e07')][_0xaacd3b('0x1d4a')][_0x112a69][_0xaacd3b('0x1810')],'msg':_0xe9b318[_0xaacd3b('0x1e07')][_0xaacd3b('0x1d4a')][_0x112a69]['message']});}}else _0x306468['error']({'title':_0xe9b318[_0xaacd3b('0x276f')]?_0xaacd3b('0x137')+_0xe9b318[_0xaacd3b('0x276f')]+'\x20-\x20'+_0xe9b318[_0xaacd3b('0x2696')]:_0xaacd3b('0x285'),'msg':_0xe9b318[_0xaacd3b('0x1e07')]?JSON[_0xaacd3b('0x100b')](_0xe9b318[_0xaacd3b('0x1e07')]['message']):_0xe9b318['message']||_0xe9b318[_0xaacd3b('0x1b75')]()});});},function(){});}function _0xbd5c5f(_0x2c93ae){return _0x2c93ae===null?undefined:new Date(_0x2c93ae);}function _0x2afbde(_0x1a74d0){_0x5a26ef['hide'](_0x1a74d0);}}const _0x15d5a2=_0x7ab2eb,_0x58ef57=_0x21a6a1['p']+_0x566993('0xe5f');_0x3431f3[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window','$state',_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x2407'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty',_0x566993('0x1600'),'license',_0x566993('0x251')];function _0x3431f3(_0x274125,_0x5ac3fd,_0x3da4b2,_0x1af3d6,_0x2d4045,_0x4c55bb,_0x3abbc1,_0x10d66f,_0x1f11d9,_0x487cc2,_0x46d447,_0x2362ac,_0x156283,_0x182c93,_0x26d9f8,_0x50df92,_0x11f653){const _0x49aa26=_0x566993,_0x56c4be=this;_0x56c4be[_0x49aa26('0x1a29')]=_0x50df92,_0x56c4be[_0x49aa26('0x251')]=_0x11f653,_0x56c4be['currentUser']=_0x26d9f8['getCurrentUser'](),_0x56c4be[_0x49aa26('0x2407')]=_0x1f11d9||{'count':0x0,'rows':[]},_0x56c4be[_0x49aa26('0x257b')]=_0x487cc2,_0x56c4be[_0x49aa26('0x170e')]=_0x46d447&&_0x46d447[_0x49aa26('0x1a2f')]==0x1?_0x46d447[_0x49aa26('0x6aa')][0x0]:null,_0x56c4be[_0x49aa26('0x1dc1')]=_0x26d9f8[_0x49aa26('0xde6')](_0x56c4be[_0x49aa26('0x170e')]?_0x56c4be[_0x49aa26('0x170e')][_0x49aa26('0x1dc1')]:null),_0x56c4be[_0x49aa26('0xdf9')]='globalCustomFields',_0x56c4be[_0x49aa26('0x14d6')]='',_0x56c4be['listOrderAsc']=null,_0x56c4be[_0x49aa26('0x2850')]=[],_0x56c4be[_0x49aa26('0xc49')]={'fields':_0x49aa26('0x271e'),'sort':'-updatedAt','ListId':_0x49aa26('0x877'),'limit':0xa,'page':0x1},_0x56c4be[_0x49aa26('0x1f90')]=_0x3c8d8a()['keyBy']([{'option':_0x49aa26('0x381'),'value':_0x49aa26('0xd58')},{'option':_0x49aa26('0x1fe1'),'value':_0x49aa26('0x92a')},{'option':_0x49aa26('0x1c7d'),'value':_0x49aa26('0x2e1')},{'option':_0x49aa26('0x7ac'),'value':_0x49aa26('0x2196')},{'option':_0x49aa26('0x2397'),'value':_0x49aa26('0x1765')}],function(_0x4f4555){const _0x11ef5f=_0x49aa26;return _0x3c8d8a()['replace'](_0x4f4555[_0x11ef5f('0xa7b')],new RegExp('\x27','g'),'');}),_0x56c4be[_0x49aa26('0x20df')]=_0x3c8d8a()[_0x49aa26('0x128')]([{'option':_0x49aa26('0x20b1'),'value':_0x49aa26('0x2d1')}],function(_0x5bb43a){const _0x47ecc7=_0x49aa26;return _0x3c8d8a()['replace'](_0x5bb43a[_0x47ecc7('0xa7b')],new RegExp('\x27','g'),'');}),_0x56c4be['editdialog']=_0x1fe46f,_0x56c4be['deleteconfirm']=_0x184abc,_0x56c4be[_0x49aa26('0xdfe')]=_0x598f2f,_0x56c4be['getGlobalCustomFields']=_0x4f03b2,_0x56c4be[_0x49aa26('0x1c8c')]=_0x2d64a9,_0x56c4be['deleteGlobalCustomField']=_0x3ff521,_0x56c4be[_0x49aa26('0x1d0f')]=_0x35247a,_0x56c4be[_0x49aa26('0xdb4')]=_0x3be432,_0x56c4be[_0x49aa26('0xc60')]=_0x337654,_0x56c4be[_0x49aa26('0x1304')]=_0x4bae2e;function _0x1fe46f(_0x181a35,_0x2ef0a5){const _0xeed3e3=_0x49aa26;_0x2d4045[_0xeed3e3('0x1cb7')]({'controller':_0xeed3e3('0xde'),'controllerAs':'vm','templateUrl':_0x58ef57,'parent':angular['element'](_0x4c55bb[_0xeed3e3('0x1a5')]),'targetEvent':_0x2ef0a5,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x181a35,'globalCustomFields':_0x56c4be[_0xeed3e3('0x2407')]['rows'],'license':_0x56c4be['license'],'setting':null,'crudPermissions':_0x56c4be[_0xeed3e3('0x1dc1')]}});}function _0x184abc(_0x48b8d3,_0x5af74a){const _0x140746=_0x49aa26,_0x2c5d42=_0x2d4045['confirm']()[_0x140746('0x20d6')](_0x140746('0x5bb')+_0x3c8d8a()['startCase'](_0x140746('0x15ff'))+'?')[_0x140746('0xf8b')](_0x140746('0x15b9')+(_0x48b8d3[_0x140746('0x10ad')]||_0x140746('0x15ff'))+_0x140746('0x24be')+_0x140746('0xd23'))[_0x140746('0x217')](_0x140746('0x13f4'))[_0x140746('0x21de')](_0x5af74a)['ok']('OK')[_0x140746('0x1e1f')](_0x140746('0x468'));_0x2d4045[_0x140746('0x1cb7')](_0x2c5d42)['then'](function(){_0x3ff521(_0x48b8d3);},function(){const _0xed8302=_0x140746;console[_0xed8302('0xe37')]('CANCEL');});}let _0x1c08f0=!![],_0x2911b3=0x1;_0x274125[_0x49aa26('0x1bdb')](_0x49aa26('0x157b'),function(_0x178c6f,_0x311e97){const _0x5e50b4=_0x49aa26;_0x1c08f0?_0x3abbc1(function(){_0x1c08f0=![];}):(!_0x311e97&&(_0x2911b3=_0x56c4be[_0x5e50b4('0xc49')][_0x5e50b4('0x182e')]),_0x178c6f!==_0x311e97&&(_0x56c4be[_0x5e50b4('0xc49')][_0x5e50b4('0x182e')]=0x1),!_0x178c6f&&(_0x56c4be['query'][_0x5e50b4('0x182e')]=_0x2911b3),_0x56c4be[_0x5e50b4('0x12d5')]());});function _0x598f2f(_0x1744d1){_0x56c4be['globalCustomFields']=_0x1744d1||{'count':0x0,'rows':[]};}function _0x4f03b2(){const _0x2fc834=_0x49aa26;_0x56c4be[_0x2fc834('0xc49')][_0x2fc834('0x17f0')]=(_0x56c4be[_0x2fc834('0xc49')][_0x2fc834('0x182e')]-0x1)*_0x56c4be[_0x2fc834('0xc49')]['limit'],_0x26d9f8[_0x2fc834('0x1b4e')](_0x2fc834('0x79b'))?_0x56c4be['promise']=_0x2362ac[_0x2fc834('0x157a')]['get'](_0x56c4be['query'],_0x598f2f)[_0x2fc834('0x1964')]:(_0x56c4be['query']['id']=_0x56c4be['userProfile']['id'],_0x56c4be[_0x2fc834('0xc49')]['section']=_0x2fc834('0x541'),_0x56c4be['promise']=_0x2362ac[_0x2fc834('0x257b')][_0x2fc834('0x135b')](_0x56c4be[_0x2fc834('0xc49')],_0x598f2f)[_0x2fc834('0x1964')]);}function _0x2d64a9(_0x24a897,_0x3819de){const _0x1eacd8=_0x49aa26;_0x2d4045['show']({'controller':'CreateOrEditGlobalCustomFieldDialogController','controllerAs':'vm','templateUrl':_0x58ef57,'parent':angular[_0x1eacd8('0xb6d')](_0x4c55bb[_0x1eacd8('0x1a5')]),'targetEvent':_0x24a897,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x3819de,'globalCustomFields':_0x56c4be[_0x1eacd8('0x2407')]['rows'],'license':_0x56c4be['license'],'setting':_0x56c4be[_0x1eacd8('0x251')],'crudPermissions':_0x56c4be['crudPermissions']}});}function _0x3ff521(_0x10eb7d){const _0xa2b46c=_0x49aa26;_0x2362ac[_0xa2b46c('0x157a')][_0xa2b46c('0x15e8')]({'id':_0x10eb7d['id']})['$promise']['then'](function(){const _0x3ab6b5=_0xa2b46c;_0x3c8d8a()[_0x3ab6b5('0x1a8b')](_0x56c4be['globalCustomFields'][_0x3ab6b5('0x6aa')],{'id':_0x10eb7d['id']}),_0x56c4be[_0x3ab6b5('0x2407')][_0x3ab6b5('0x1a2f')]-=0x1,!_0x56c4be[_0x3ab6b5('0x2407')][_0x3ab6b5('0x6aa')][_0x3ab6b5('0x543')]&&_0x56c4be[_0x3ab6b5('0x12d5')](),_0x182c93[_0x3ab6b5('0xdfe')]({'title':_0x3c8d8a()[_0x3ab6b5('0x10e')](_0x3ab6b5('0x26fa'))+_0x3ab6b5('0x1c5e'),'msg':_0x10eb7d[_0x3ab6b5('0x10ad')]?_0x10eb7d[_0x3ab6b5('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0xa2b46c('0x103c')](function(_0x3cba54){const _0x276a01=_0xa2b46c;if(_0x3cba54[_0x276a01('0x1e07')]&&_0x3cba54[_0x276a01('0x1e07')]['errors']&&_0x3cba54[_0x276a01('0x1e07')]['errors'][_0x276a01('0x543')]){_0x56c4be[_0x276a01('0x1d4a')]=_0x3cba54[_0x276a01('0x1e07')]['errors']||[{'message':_0x3cba54[_0x276a01('0x1b75')](),'type':_0x276a01('0x23be')}];for(let _0x51130e=0x0;_0x51130e<_0x3cba54['data'][_0x276a01('0x1d4a')]['length'];_0x51130e++){_0x182c93[_0x276a01('0x15aa')]({'title':_0x3cba54[_0x276a01('0x1e07')][_0x276a01('0x1d4a')][_0x51130e]['type'],'msg':_0x3cba54[_0x276a01('0x1e07')][_0x276a01('0x1d4a')][_0x51130e][_0x276a01('0x67f')]});}}else _0x182c93['error']({'title':_0x3cba54[_0x276a01('0x276f')]?'API:'+_0x3cba54[_0x276a01('0x276f')]+_0x276a01('0x160c')+_0x3cba54[_0x276a01('0x2696')]:_0x276a01('0x23be'),'msg':_0x3cba54['data']?JSON['stringify'](_0x3cba54[_0x276a01('0x1e07')][_0x276a01('0x67f')]):_0x3cba54['message']||_0x3cba54[_0x276a01('0x1b75')]()});});}function _0x35247a(){const _0x437058=_0x49aa26,_0xe67a10=angular[_0x437058('0x2e3')](_0x56c4be[_0x437058('0x2850')]);return _0x56c4be[_0x437058('0x2850')]=[],_0xe67a10;}function _0x3be432(_0x4cf9c5){const _0xfe78f8=_0x49aa26,_0x477cf0=_0x2d4045['confirm']()['title'](_0xfe78f8('0xa50'))[_0xfe78f8('0xf8b')](_0xfe78f8('0x15b9')+_0x56c4be[_0xfe78f8('0x2850')][_0xfe78f8('0x543')]+_0xfe78f8('0xcb4')+_0xfe78f8('0xd23'))[_0xfe78f8('0x217')](_0xfe78f8('0x1c07'))[_0xfe78f8('0x21de')](_0x4cf9c5)['ok']('OK')[_0xfe78f8('0x1e1f')](_0xfe78f8('0x468'));_0x2d4045[_0xfe78f8('0x1cb7')](_0x477cf0)[_0xfe78f8('0x173b')](function(){const _0xd5f07a=_0xfe78f8;_0x56c4be['selectedGlobalCustomFields']['forEach'](function(_0x1355b5){_0x3ff521(_0x1355b5);}),_0x56c4be[_0xd5f07a('0x2850')]=[];});}function _0x337654(){const _0x146369=_0x49aa26;_0x56c4be[_0x146369('0x2850')]=[];}function _0x4bae2e(){const _0x397981=_0x49aa26;_0x56c4be[_0x397981('0x2850')]=_0x56c4be['globalCustomFields']['rows'];}}const _0x12f37b=_0x3431f3;_0x3657d8[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x9e8'),'list',_0x566993('0xbd4'),'Auth',_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x3657d8(_0x31f7c4,_0x138547,_0x15c7fc,_0x1b8af2,_0x512636,_0x489a0d,_0x1c24b7,_0xab1b17,_0x1ca57c,_0x3f876f,_0x3af71b,_0x57b08d,_0x530cbd,_0x5393b1){const _0x2e5092=_0x566993,_0x41270c=this;_0x41270c[_0x2e5092('0x155f')]=_0x3af71b['getCurrentUser'](),_0x41270c[_0x2e5092('0x1d4a')]=[],_0x41270c['setting']=_0x530cbd,_0x41270c[_0x2e5092('0x1a29')]=_0x57b08d,_0x41270c[_0x2e5092('0x1dc1')]=_0x5393b1,_0x41270c[_0x2e5092('0xb0')]={},_0x41270c[_0x2e5092('0x644')]=_0x41270c[_0x2e5092('0x251')]&&_0x41270c[_0x2e5092('0x251')][_0x2e5092('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41270c[_0x2e5092('0x20d6')]=_0x2e5092('0x2477'),_0x41270c[_0x2e5092('0x3e3')]=angular[_0x2e5092('0x2e3')](_0x1ca57c),_0x41270c[_0x2e5092('0x9e8')]=_0xab1b17,_0x41270c[_0x2e5092('0x484')]=![];!_0x41270c[_0x2e5092('0x3e3')]&&(_0x41270c[_0x2e5092('0x3e3')]={},_0x41270c[_0x2e5092('0x20d6')]=_0x2e5092('0x14dd'),_0x41270c['newList']=!![]);_0x41270c[_0x2e5092('0x1e9d')]=_0x1e667b,_0x41270c[_0x2e5092('0x62c')]=_0x447cd2,_0x41270c[_0x2e5092('0x2244')]=_0x26aaff,_0x41270c[_0x2e5092('0x11ae')]=_0x79bc08,_0x41270c[_0x2e5092('0x18e2')]=_0x4d0d3a;function _0x1e667b(){const _0x42fbd6=_0x2e5092;_0x41270c[_0x42fbd6('0x1d4a')]=[],_0x3f876f[_0x42fbd6('0xbb3')][_0x42fbd6('0x1195')](_0x41270c[_0x42fbd6('0x3e3')])[_0x42fbd6('0x1964')][_0x42fbd6('0x173b')](function(_0x2294d1){const _0x4a4639=_0x42fbd6;_0x41270c[_0x4a4639('0x9e8')][_0x4a4639('0x1377')](_0x2294d1['toJSON']()),_0x1c24b7[_0x4a4639('0xdfe')]({'title':_0x4a4639('0x154e'),'msg':_0x41270c['list']['name']?_0x41270c[_0x4a4639('0x3e3')][_0x4a4639('0x10ad')]+_0x4a4639('0x209a'):''}),_0x4d0d3a(_0x2294d1);})[_0x42fbd6('0x103c')](function(_0x2a0e4a){const _0x83fced=_0x42fbd6;if(_0x2a0e4a[_0x83fced('0x1e07')]&&_0x2a0e4a[_0x83fced('0x1e07')][_0x83fced('0x1d4a')]&&_0x2a0e4a[_0x83fced('0x1e07')][_0x83fced('0x1d4a')][_0x83fced('0x543')]){_0x41270c[_0x83fced('0x1d4a')]=_0x2a0e4a[_0x83fced('0x1e07')]['errors']||[{'message':_0x2a0e4a[_0x83fced('0x1b75')](),'type':'api.cmList.save'}];for(let _0x2314dd=0x0;_0x2314dd<_0x2a0e4a['data'][_0x83fced('0x1d4a')][_0x83fced('0x543')];_0x2314dd+=0x1){_0x1c24b7[_0x83fced('0x15aa')]({'title':_0x2a0e4a['data']['errors'][_0x2314dd][_0x83fced('0x1810')],'msg':_0x2a0e4a[_0x83fced('0x1e07')]['errors'][_0x2314dd][_0x83fced('0x67f')]});}}else _0x1c24b7[_0x83fced('0x15aa')]({'title':_0x2a0e4a[_0x83fced('0x276f')]?_0x83fced('0x137')+_0x2a0e4a[_0x83fced('0x276f')]+_0x83fced('0x160c')+_0x2a0e4a[_0x83fced('0x2696')]:_0x83fced('0x126d'),'msg':_0x2a0e4a['data']?JSON[_0x83fced('0x100b')](_0x2a0e4a[_0x83fced('0x1e07')][_0x83fced('0x67f')]):_0x2a0e4a[_0x83fced('0x1b75')]()});});}function _0x447cd2(){const _0x32ba83=_0x2e5092;_0x41270c['errors']=[],_0x3f876f['cmList'][_0x32ba83('0x1842')]({'id':_0x41270c[_0x32ba83('0x3e3')]['id']},_0x41270c[_0x32ba83('0x3e3')])[_0x32ba83('0x1964')][_0x32ba83('0x173b')](function(_0xfa13c9){const _0xbef62a=_0x32ba83,_0x281fa2=_0x3c8d8a()['find'](_0x41270c['lists'],{'id':_0xfa13c9['id']});_0x281fa2&&_0x3c8d8a()[_0xbef62a('0x9ef')](_0x281fa2,_0x3c8d8a()['pick'](_0xfa13c9[_0xbef62a('0xf1f')](),_0x3c8d8a()[_0xbef62a('0x1d3e')](_0x281fa2))),_0x1c24b7[_0xbef62a('0xdfe')]({'title':_0xbef62a('0x9eb'),'msg':_0x41270c[_0xbef62a('0x3e3')][_0xbef62a('0x10ad')]?_0x41270c['list'][_0xbef62a('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x4d0d3a(_0xfa13c9);})[_0x32ba83('0x103c')](function(_0x32585c){const _0x5349d6=_0x32ba83;if(_0x32585c[_0x5349d6('0x1e07')]&&_0x32585c['data'][_0x5349d6('0x1d4a')]&&_0x32585c[_0x5349d6('0x1e07')][_0x5349d6('0x1d4a')][_0x5349d6('0x543')]){_0x41270c[_0x5349d6('0x1d4a')]=_0x32585c[_0x5349d6('0x1e07')]['errors']||[{'message':_0x32585c[_0x5349d6('0x1b75')](),'type':_0x5349d6('0x249b')}];for(let _0x2f35ca=0x0;_0x2f35ca<_0x32585c['data']['errors'][_0x5349d6('0x543')];_0x2f35ca++){_0x1c24b7[_0x5349d6('0x15aa')]({'title':_0x32585c[_0x5349d6('0x1e07')][_0x5349d6('0x1d4a')][_0x2f35ca]['type'],'msg':_0x32585c[_0x5349d6('0x1e07')]['errors'][_0x2f35ca]['message']});}}else _0x1c24b7['error']({'title':_0x32585c['status']?'API:'+_0x32585c['status']+_0x5349d6('0x160c')+_0x32585c[_0x5349d6('0x2696')]:'api.cmList.update','msg':_0x32585c[_0x5349d6('0x1e07')]?JSON['stringify'](_0x32585c[_0x5349d6('0x1e07')][_0x5349d6('0x67f')]):_0x32585c[_0x5349d6('0x1b75')]()});});}function _0x26aaff(_0x52df15){const _0x376b28=_0x2e5092;_0x41270c[_0x376b28('0x1d4a')]=[];const _0x2318aa=_0x1b8af2[_0x376b28('0x1d02')]()['title'](_0x376b28('0x8ef'))['content'](_0x376b28('0xe75'))['ariaLabel'](_0x376b28('0x1571'))['ok'](_0x376b28('0x2373'))['cancel'](_0x376b28('0x1d4e'))['targetEvent'](_0x52df15);_0x1b8af2[_0x376b28('0x1cb7')](_0x2318aa)[_0x376b28('0x173b')](function(){const _0xc082cc=_0x376b28;_0x3f876f[_0xc082cc('0xbb3')][_0xc082cc('0x15e8')]({'id':_0x41270c[_0xc082cc('0x3e3')]['id']})[_0xc082cc('0x1964')][_0xc082cc('0x173b')](function(){const _0x4fd6b0=_0xc082cc;_0x3c8d8a()[_0x4fd6b0('0x1a8b')](_0x41270c[_0x4fd6b0('0x9e8')],{'id':_0x41270c['list']['id']}),_0x1c24b7[_0x4fd6b0('0xdfe')]({'title':_0x4fd6b0('0x1eaa'),'msg':(_0x41270c['list'][_0x4fd6b0('0x10ad')]||'list')+_0x4fd6b0('0x25d2')}),_0x4d0d3a(_0x41270c[_0x4fd6b0('0x3e3')]);})[_0xc082cc('0x103c')](function(_0xaa85ee){const _0x15d358=_0xc082cc;if(_0xaa85ee[_0x15d358('0x1e07')]&&_0xaa85ee[_0x15d358('0x1e07')][_0x15d358('0x1d4a')]&&_0xaa85ee[_0x15d358('0x1e07')]['errors'][_0x15d358('0x543')]){_0x41270c[_0x15d358('0x1d4a')]=_0xaa85ee[_0x15d358('0x1e07')]['errors']||[{'message':_0xaa85ee[_0x15d358('0x1b75')](),'type':_0x15d358('0x1908')}];for(let _0x13973c=0x0;_0x13973c<_0xaa85ee[_0x15d358('0x1e07')][_0x15d358('0x1d4a')]['length'];_0x13973c++){_0x1c24b7[_0x15d358('0x15aa')]({'title':_0xaa85ee[_0x15d358('0x1e07')]['errors'][_0x13973c][_0x15d358('0x1810')],'msg':_0xaa85ee[_0x15d358('0x1e07')][_0x15d358('0x1d4a')][_0x13973c][_0x15d358('0x67f')]});}}else _0x1c24b7[_0x15d358('0x15aa')]({'title':_0xaa85ee['status']?_0x15d358('0x137')+_0xaa85ee[_0x15d358('0x276f')]+_0x15d358('0x160c')+_0xaa85ee[_0x15d358('0x2696')]:_0x15d358('0x1908'),'msg':_0xaa85ee[_0x15d358('0x1e07')]?JSON['stringify'](_0xaa85ee[_0x15d358('0x1e07')]['message']):_0xaa85ee[_0x15d358('0x67f')]||_0xaa85ee['toString']()});});},function(){});}function _0x79bc08(_0x26b625){return _0x26b625===null?undefined:new Date(_0x26b625);}function _0x4d0d3a(_0x555bfe){const _0x186741=_0x2e5092;_0x1b8af2[_0x186741('0x1cf4')](_0x555bfe);}}const _0x512dba=_0x3657d8;_0x7fdbb3[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),'list',_0x566993('0x9e8'),_0x566993('0x12a7'),_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x7fdbb3(_0x3300ac,_0x2d99b2,_0x2ab068,_0xd64b4f,_0x17815a,_0x578d7e,_0x34e845,_0x5873b6,_0x2f618d,_0xfaed0a){const _0x52c7ab=_0x566993,_0x51525d=this;_0x51525d[_0x52c7ab('0x155f')]=_0x2f618d[_0x52c7ab('0x14d4')](),_0x51525d['list']=_0x17815a,_0x51525d['crudPermissions']=_0xfaed0a,_0x51525d[_0x52c7ab('0x12a7')]=_0x34e845,_0x51525d[_0x52c7ab('0x1b1f')]=[],_0x51525d[_0x52c7ab('0x203e')]=[],_0x51525d[_0x52c7ab('0x5f8')]=[],_0x51525d[_0x52c7ab('0x1493')]=[],_0x51525d['startingSelectedItems']=[],_0x51525d[_0x52c7ab('0x277e')]=![],_0x51525d['onInit']=_0x2fa4df,_0x51525d[_0x52c7ab('0x21dc')]=_0x3f46c0,_0x51525d['closeDialog']=_0x21811d,_0x51525d[_0x52c7ab('0x52e')]={'readOnly':!_0x51525d[_0x52c7ab('0x1dc1')][_0x52c7ab('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x52c7ab('0x10ad'),'line1':'fullname','line2':['name','internal'],'line3':'','labelAll':_0x5873b6[_0x52c7ab('0x1467')](_0x52c7ab('0x48f')),'labelSelected':_0x5873b6[_0x52c7ab('0x1467')](_0x52c7ab('0x327')),'transferCallback':function(){const _0x424b1a=_0x52c7ab,_0x315d65=_0x3c8d8a()[_0x424b1a('0x226b')](_0x51525d['startingSelectedItems'],_0x51525d[_0x424b1a('0x5f8')],'id');_0x51525d['pendingChanges']=_0x3c8d8a()['isEmpty'](_0x315d65)?![]:!![];}};function _0x2fa4df(){const _0x42b201=_0x52c7ab;return _0x2f618d[_0x42b201('0x1b4e')](_0x42b201('0x79b'))?_0x19f946()['catch'](function(_0x108359){const _0x361fa8=_0x42b201;_0x2ab068[_0x361fa8('0x15aa')]({'title':_0x108359[_0x361fa8('0x276f')]?_0x361fa8('0x137')+_0x108359['status']+_0x361fa8('0x160c')+_0x108359['statusText']:_0x361fa8('0x152b'),'msg':_0x108359[_0x361fa8('0x276f')]?JSON[_0x361fa8('0x100b')](_0x108359['data']):_0x108359['toString']()});}):_0x7111ac()[_0x42b201('0x173b')](function(_0xe64aa1){const _0x2ccc90=_0x42b201;return _0x51525d[_0x2ccc90('0x17c9')]=_0xe64aa1,_0x19f946();})[_0x42b201('0x103c')](function(_0x46fa0c){const _0x443a08=_0x42b201;_0x2ab068['error']({'title':_0x46fa0c[_0x443a08('0x276f')]?_0x443a08('0x137')+_0x46fa0c[_0x443a08('0x276f')]+_0x443a08('0x160c')+_0x46fa0c[_0x443a08('0x2696')]:_0x443a08('0x152b'),'msg':_0x46fa0c['status']?JSON[_0x443a08('0x100b')](_0x46fa0c[_0x443a08('0x1e07')]):_0x46fa0c[_0x443a08('0x1b75')]()});});}function _0x7111ac(){return _0x2d99b2(function(_0x155271,_0x14912d){const _0x153e93=a0_0xde5e;_0xd64b4f['userProfileSection'][_0x153e93('0x1d97')]({'userProfileId':_0x51525d[_0x153e93('0x155f')][_0x153e93('0x1946')],'name':_0x153e93('0x1272')})[_0x153e93('0x1964')][_0x153e93('0x173b')](function(_0x18c023){const _0x535ea9=_0x18c023&&_0x18c023['rows']?_0x18c023['rows'][0x0]:null;_0x155271(_0x535ea9);})[_0x153e93('0x103c')](function(_0x1eb4e9){_0x14912d(_0x1eb4e9);});});}function _0x19f946(){return _0x2d99b2(function(_0xac8642,_0x3e6c5a){const _0x1fb271=a0_0xde5e;return _0x492bd2()[_0x1fb271('0x173b')](function(_0x52313f){const _0x245033=_0x1fb271;return _0x51525d['items']=_0x52313f['rows']?_0x52313f['rows']:[],_0x2f618d[_0x245033('0x1b4e')](_0x245033('0x79b'))?_0x52313f:_0x51525d[_0x245033('0x17c9')]?_0x51525d['section'][_0x245033('0x273e')]?_0x52313f:_0x58ede9():null;})['then'](function(_0x265dfa){const _0x398fff=_0x1fb271,_0x45d5c5=_0x265dfa&&_0x265dfa['rows']?_0x265dfa[_0x398fff('0x6aa')]:[];return _0x51525d[_0x398fff('0x203e')]=_0x3c8d8a()['map'](_0x45d5c5,function(_0x5a75b4){const _0x172b11=_0x398fff;return _0x3c8d8a()['find'](_0x51525d[_0x172b11('0x1b1f')],{'id':_0x2f618d[_0x172b11('0x1b4e')](_0x172b11('0x79b'))||_0x51525d[_0x172b11('0x17c9')][_0x172b11('0x273e')]?_0x5a75b4['id']:_0x5a75b4[_0x172b11('0x1ce0')]});}),_0x51525d[_0x398fff('0x1493')]=angular[_0x398fff('0x2e3')](_0x51525d[_0x398fff('0x203e')]),_0x51525d['items']['forEach'](function(_0x124729){const _0x2a1dbe=_0x398fff,_0xefb7a8=_0x3c8d8a()['find'](_0x51525d[_0x2a1dbe('0x203e')],{'id':_0x124729['id']});_0x2f618d['hasRole']('admin')?_0x124729[_0x2a1dbe('0xf02')]=!![]:_0x124729[_0x2a1dbe('0xf02')]=typeof _0xefb7a8!==_0x2a1dbe('0x6e5')?!![]:![];}),_0x22902c();})[_0x1fb271('0x173b')](function(_0x851e){const _0x332eeb=_0x1fb271,_0x5d7ca9=_0x851e&&_0x851e['rows']?_0x851e[_0x332eeb('0x6aa')]:[];_0x51525d['selectedItems']=_0x3c8d8a()[_0x332eeb('0x8a2')](_0x5d7ca9,function(_0x5634c0){const _0x5945d5=_0x332eeb,_0x464d75=_0x3c8d8a()[_0x5945d5('0x18ab')](_0x51525d[_0x5945d5('0x1b1f')],{'id':_0x5634c0['id']});return _0x464d75[_0x5945d5('0x1692')]=_0x5634c0[_0x5945d5('0x2026')]?_0x5945d5('0x1929')+_0x5634c0['UserList'][_0x5945d5('0x1692')]:'',_0x464d75[_0x5945d5('0x138c')]=typeof _0x5634c0[_0x5945d5('0x138c')]!=='undefined'?'<'+_0x5634c0['internal']+'>':'',_0x464d75;}),_0x51525d[_0x332eeb('0x15c9')]=angular[_0x332eeb('0x2e3')](_0x51525d[_0x332eeb('0x5f8')]),_0x51525d[_0x332eeb('0x52e')][_0x332eeb('0x5f8')]=_0x51525d['selectedItems'],_0x51525d['dualMultiselectOptions'][_0x332eeb('0x1b1f')]=_0x3c8d8a()[_0x332eeb('0x1bd3')](_0x51525d['allowedItems'],_0x51525d['dualMultiselectOptions'][_0x332eeb('0x5f8')],'id'),_0xac8642();})[_0x1fb271('0x103c')](function(_0xca5f7b){_0x3e6c5a(_0xca5f7b);});});}function _0x58ede9(){return _0x2d99b2(function(_0x4a1e7d,_0x4d9944){const _0x2167a3=a0_0xde5e;return _0xd64b4f['userProfileResource'][_0x2167a3('0x1d97')]({'sectionId':_0x51525d['section']['id'],'nolimit':!![]})[_0x2167a3('0x1964')][_0x2167a3('0x173b')](function(_0x35d7b0){_0x4a1e7d(_0x35d7b0);})['catch'](function(_0x421f49){_0x4d9944(_0x421f49);});});}function _0x22902c(){return _0x2d99b2(function(_0x241c7a,_0x4875c0){const _0x5a0114=a0_0xde5e;return _0xd64b4f['cmList']['getAgents']({'id':_0x51525d['list']['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x5a0114('0x7b0')})[_0x5a0114('0x1964')][_0x5a0114('0x173b')](function(_0x202980){_0x241c7a(_0x202980);})[_0x5a0114('0x103c')](function(_0x4f0065){_0x4875c0(_0x4f0065);});});}function _0x492bd2(){return _0x2d99b2(function(_0x1514d3,_0x4972e1){const _0x475690=a0_0xde5e;return _0xd64b4f[_0x475690('0x166f')][_0x475690('0x1d97')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x475690('0x1964')][_0x475690('0x173b')](function(_0x5f25e7){_0x1514d3(_0x5f25e7);})[_0x475690('0x103c')](function(_0x382645){_0x4972e1(_0x382645);});});}function _0x466bd5(_0x1d4db2){return _0x2d99b2(function(_0x5b4be2,_0x3080b6){const _0x58f6d1=a0_0xde5e;_0x3c8d8a()[_0x58f6d1('0x1a56')](_0x1d4db2)?_0x5b4be2():_0xd64b4f[_0x58f6d1('0xbb3')][_0x58f6d1('0x1ff1')]({'id':_0x51525d[_0x58f6d1('0x3e3')]['id'],'ids':_0x3c8d8a()['map'](_0x1d4db2,'id')})[_0x58f6d1('0x1964')][_0x58f6d1('0x173b')](function(){_0x5b4be2();})[_0x58f6d1('0x103c')](function(_0x54f4b5){_0x3080b6(_0x54f4b5);});});}function _0x4b49a1(_0x111b57){return _0x2d99b2(function(_0x3ecb13,_0x5c8deb){const _0x197fbc=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x111b57)?_0x3ecb13():_0xd64b4f[_0x197fbc('0xbb3')][_0x197fbc('0x2017')]({'id':_0x51525d[_0x197fbc('0x3e3')]['id'],'ids':_0x3c8d8a()['map'](_0x111b57,'id')})[_0x197fbc('0x1964')][_0x197fbc('0x173b')](function(){_0x3ecb13();})[_0x197fbc('0x103c')](function(_0x114adb){_0x5c8deb(_0x114adb);});});}function _0x3f46c0(){const _0x15836b=_0x52c7ab,_0x359a66=_0x3c8d8a()[_0x15836b('0x1bd3')](_0x51525d['startingSelectedItems'],_0x51525d[_0x15836b('0x5f8')],'id'),_0x2665f5=_0x3c8d8a()['differenceBy'](_0x51525d[_0x15836b('0x5f8')],_0x51525d[_0x15836b('0x15c9')],'id');return _0x4b49a1(_0x359a66)[_0x15836b('0x173b')](function(){return _0x466bd5(_0x2665f5);})[_0x15836b('0x173b')](function(){const _0x507fe3=_0x15836b;_0x51525d[_0x507fe3('0x277e')]=![],_0x51525d[_0x507fe3('0x1493')]=angular[_0x507fe3('0x2e3')](_0x51525d[_0x507fe3('0x203e')]),_0x51525d[_0x507fe3('0x15c9')]=angular[_0x507fe3('0x2e3')](_0x51525d[_0x507fe3('0x5f8')]),_0x2ab068[_0x507fe3('0xdfe')]({'title':'SUCCESS','msg':_0x507fe3('0x2027')});})[_0x15836b('0x103c')](function(_0x198216){const _0x4024b7=_0x15836b;_0x2ab068[_0x4024b7('0x15aa')]({'title':_0x198216[_0x4024b7('0x276f')]?_0x4024b7('0x137')+_0x198216[_0x4024b7('0x276f')]+_0x4024b7('0x160c')+_0x198216[_0x4024b7('0x2696')]:_0x4024b7('0x1f48'),'msg':_0x198216['status']?JSON['stringify'](_0x198216['data']):_0x198216[_0x4024b7('0x1b75')]()});});}function _0x21811d(){const _0x195d8a=_0x52c7ab;_0x3300ac[_0x195d8a('0x1cf4')]();}}const _0x56ef22=_0x7fdbb3,_0x36025a=_0x21a6a1['p']+_0x566993('0x2129');_0x34bcf8[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q','$translate','$timeout','$mdDialog','$document','toasty',_0x566993('0xbd4'),_0x566993('0x1600')];function _0x34bcf8(_0x1bf5d6,_0x292214,_0x242fef,_0x28c68f,_0x369492,_0x59120a,_0x3fef9b,_0x28fa09,_0x28fd55,_0x159960,_0x370e4d){const _0x14c66e=_0x566993,_0x1a5101=this;_0x1a5101[_0x14c66e('0x155f')]=_0x370e4d[_0x14c66e('0x14d4')](),_0x1a5101[_0x14c66e('0x3e3')]={},_0x1a5101[_0x14c66e('0x25b2')]={'count':0x0,'rows':[]},_0x1a5101[_0x14c66e('0x870')]=[],_0x1a5101[_0x14c66e('0x1dc1')],_0x1a5101[_0x14c66e('0xc49')]={'fields':_0x14c66e('0x271e'),'limit':0xa,'page':0x1},_0x1a5101[_0x14c66e('0x1f90')]=_0x3c8d8a()[_0x14c66e('0x128')]([{'option':_0x14c66e('0x381'),'value':_0x14c66e('0xd58')},{'option':_0x14c66e('0x1fe1'),'value':_0x14c66e('0x92a')},{'option':_0x14c66e('0x1c7d'),'value':_0x14c66e('0x2e1')},{'option':_0x14c66e('0x7ac'),'value':_0x14c66e('0x2196')},{'option':_0x14c66e('0x2397'),'value':_0x14c66e('0x1765')}],function(_0x252d02){const _0x2d4670=_0x14c66e;return _0x3c8d8a()[_0x2d4670('0x166c')](_0x252d02['value'],new RegExp('\x27','g'),'');}),_0x1a5101[_0x14c66e('0x20df')]=_0x3c8d8a()['keyBy']([{'option':_0x14c66e('0x20b1'),'value':_0x14c66e('0x2d1')}],function(_0xd8bade){const _0x5b92a7=_0x14c66e;return _0x3c8d8a()[_0x5b92a7('0x166c')](_0xd8bade[_0x5b92a7('0xa7b')],new RegExp('\x27','g'),'');}),_0x1a5101[_0x14c66e('0xb9c')]=_0x1afde5,_0x1a5101[_0x14c66e('0x2051')]=_0x5216f8,_0x1a5101[_0x14c66e('0xdfe')]=_0x13ceba,_0x1a5101['getListCustomFields']=_0x388f3d,_0x1a5101[_0x14c66e('0x2626')]=_0x547578,_0x1a5101[_0x14c66e('0x232c')]=_0x33a0b9,_0x1a5101['deleteListCustomField']=_0x56b4fb,_0x1a5101[_0x14c66e('0x1fc2')]=_0x4e00d7;function _0x1afde5(_0x577535,_0x4ebd3c){const _0x4ce174=_0x14c66e;_0x1a5101[_0x4ce174('0x3e3')]=_0x577535,_0x1a5101[_0x4ce174('0x1dc1')]=typeof _0x4ebd3c!==_0x4ce174('0x6e5')?_0x4ebd3c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1a5101['query'][_0x4ce174('0xef2')]=_0x1a5101['list']['id'],_0x1a5101[_0x4ce174('0xc49')]['id']=_0x1a5101[_0x4ce174('0x3e3')]['id'],_0x388f3d();}function _0x5216f8(_0x31ee30,_0x5599ff){const _0x41b285=_0x14c66e,_0x7eb1e6=_0x3fef9b[_0x41b285('0x1d02')]()[_0x41b285('0x20d6')](_0x41b285('0x1360'))[_0x41b285('0xf8b')](_0x41b285('0x15b9')+(_0x31ee30[_0x41b285('0x10ad')]||_0x31ee30['id']&&_0x3c8d8a()[_0x41b285('0x5ba')](_0x41b285('0x2119'))+_0x31ee30['id']||_0x41b285('0x894'))+_0x41b285('0x24be')+_0x41b285('0xd23'))['ariaLabel'](_0x41b285('0x205d'))[_0x41b285('0x21de')](_0x5599ff)['ok']('OK')[_0x41b285('0x1e1f')]('CANCEL');_0x3fef9b[_0x41b285('0x1cb7')](_0x7eb1e6)[_0x41b285('0x173b')](function(){_0x56b4fb(_0x31ee30);},function(){const _0x173ce4=_0x41b285;console[_0x173ce4('0xe37')]('CANCEL');});}function _0x13ceba(_0x293fcf){const _0x2b8560=_0x14c66e;_0x1a5101[_0x2b8560('0x25b2')]=_0x293fcf||{'count':0x0,'rows':[]};}function _0x388f3d(){const _0x5ac4df=_0x14c66e;_0x1a5101[_0x5ac4df('0xc49')][_0x5ac4df('0x17f0')]=(_0x1a5101[_0x5ac4df('0xc49')][_0x5ac4df('0x182e')]-0x1)*_0x1a5101['query'][_0x5ac4df('0x3e')],_0x1a5101[_0x5ac4df('0x2219')]=_0x159960[_0x5ac4df('0xbb3')]['getCustomFields'](_0x1a5101[_0x5ac4df('0xc49')],_0x13ceba)[_0x5ac4df('0x1964')];}function _0x547578(_0x6e2c53,_0x3d6913){const _0x248c79=_0x14c66e;_0x3fef9b[_0x248c79('0x1cb7')]({'controller':_0x248c79('0x2498'),'controllerAs':'vm','templateUrl':_0x36025a,'parent':angular[_0x248c79('0xb6d')](_0x28fa09[_0x248c79('0x1a5')]),'targetEvent':_0x6e2c53,'clickOutsideToClose':!![],'locals':{'list':_0x1a5101[_0x248c79('0x3e3')],'customField':_0x3d6913,'customFields':_0x1a5101[_0x248c79('0x25b2')]['rows'],'license':null,'setting':null,'crudPermissions':_0x1a5101['crudPermissions']}});}function _0x56b4fb(_0x43cdcc){const _0x5b3f43=_0x14c66e;_0x159960[_0x5b3f43('0x157a')][_0x5b3f43('0x15e8')]({'id':_0x43cdcc['id']})[_0x5b3f43('0x1964')][_0x5b3f43('0x173b')](function(){const _0x11903e=_0x5b3f43;_0x3c8d8a()[_0x11903e('0x1a8b')](_0x1a5101['listCustomFields'][_0x11903e('0x6aa')],{'id':_0x43cdcc['id']}),_0x1a5101[_0x11903e('0x25b2')][_0x11903e('0x1a2f')]-=0x1,!_0x1a5101['listCustomFields'][_0x11903e('0x6aa')]['length']&&_0x388f3d(),_0x28fd55[_0x11903e('0xdfe')]({'title':'CustomField\x20deleted!','msg':_0x43cdcc[_0x11903e('0x10ad')]?_0x43cdcc[_0x11903e('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x5b3f43('0x103c')](function(_0x456f81){const _0x242ac7=_0x5b3f43;if(_0x456f81[_0x242ac7('0x1e07')]&&_0x456f81[_0x242ac7('0x1e07')][_0x242ac7('0x1d4a')]&&_0x456f81['data']['errors']['length']){_0x1a5101[_0x242ac7('0x1d4a')]=_0x456f81[_0x242ac7('0x1e07')]['errors']||[{'message':_0x456f81[_0x242ac7('0x1b75')](),'type':_0x242ac7('0x23d6')}];for(let _0x26d232=0x0;_0x26d232<_0x456f81[_0x242ac7('0x1e07')][_0x242ac7('0x1d4a')][_0x242ac7('0x543')];_0x26d232++){_0x28fd55[_0x242ac7('0x15aa')]({'title':_0x456f81[_0x242ac7('0x1e07')]['errors'][_0x26d232][_0x242ac7('0x1810')],'msg':_0x456f81[_0x242ac7('0x1e07')][_0x242ac7('0x1d4a')][_0x26d232][_0x242ac7('0x67f')]});}}else _0x28fd55[_0x242ac7('0x15aa')]({'title':_0x456f81['status']?_0x242ac7('0x137')+_0x456f81[_0x242ac7('0x276f')]+_0x242ac7('0x160c')+_0x456f81[_0x242ac7('0x2696')]:_0x242ac7('0x23d6'),'msg':_0x456f81[_0x242ac7('0x1e07')]?JSON[_0x242ac7('0x100b')](_0x456f81[_0x242ac7('0x1e07')][_0x242ac7('0x67f')]):_0x456f81[_0x242ac7('0x67f')]||_0x456f81[_0x242ac7('0x1b75')]()});});}function _0x33a0b9(){const _0x507ec6=_0x14c66e,_0x248301=angular[_0x507ec6('0x2e3')](_0x1a5101[_0x507ec6('0x870')]);return _0x1a5101[_0x507ec6('0x870')]=[],_0x248301;}function _0x4e00d7(_0x3e8f74){const _0x8996c2=_0x14c66e,_0x29dc1d=_0x3fef9b[_0x8996c2('0x1d02')]()[_0x8996c2('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customFields?')[_0x8996c2('0xf8b')](_0x8996c2('0x15b9')+_0x1a5101[_0x8996c2('0x870')][_0x8996c2('0x543')]+_0x8996c2('0xcb4')+_0x8996c2('0xd23'))[_0x8996c2('0x217')](_0x8996c2('0x1dbd'))['targetEvent'](_0x3e8f74)['ok']('OK')[_0x8996c2('0x1e1f')](_0x8996c2('0x468'));_0x3fef9b['show'](_0x29dc1d)[_0x8996c2('0x173b')](function(){const _0x2f3703=_0x8996c2;_0x1a5101[_0x2f3703('0x870')][_0x2f3703('0xa6a')](function(_0x5504de){_0x56b4fb(_0x5504de);}),_0x1a5101[_0x2f3703('0x870')]=[];});}let _0x387313=!![],_0x2caf63=0x1;_0x292214[_0x14c66e('0x1bdb')]('vm_dc.query.filter',function(_0x200203,_0x324765){const _0x31939a=_0x14c66e;_0x387313?_0x59120a(function(){_0x387313=![];}):(!_0x324765&&(_0x2caf63=_0x1a5101[_0x31939a('0xc49')][_0x31939a('0x182e')]),_0x200203!==_0x324765&&(_0x1a5101[_0x31939a('0xc49')][_0x31939a('0x182e')]=0x1),!_0x200203&&(_0x1a5101[_0x31939a('0xc49')][_0x31939a('0x182e')]=_0x2caf63),_0x388f3d());});}const _0xddeb36=_0x34bcf8;_0x3aa475[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x179b'),_0x566993('0x894'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x3aa475(_0x43ec43,_0x1e9530,_0xac5305,_0x26e6dd,_0x213c77,_0x14cbd4,_0x2591e9,_0x2dd50f,_0x5dbe56,_0x50d94c,_0x302026,_0x3db24c,_0x397bf5,_0x33014a){const _0x2ea977=_0x566993,_0x451f4e=this;_0x451f4e[_0x2ea977('0x155f')]=_0x302026[_0x2ea977('0x14d4')](),_0x451f4e[_0x2ea977('0x1d4a')]=[],_0x451f4e['setting']=_0x397bf5,_0x451f4e[_0x2ea977('0x1a29')]=_0x3db24c,_0x451f4e[_0x2ea977('0x1dc1')]=_0x33014a,_0x451f4e['hasModulePermissions']={},_0x451f4e[_0x2ea977('0x644')]=_0x451f4e[_0x2ea977('0x251')]&&_0x451f4e[_0x2ea977('0x251')][_0x2ea977('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x451f4e['title']=_0x2ea977('0x27c9'),_0x451f4e[_0x2ea977('0x3b2')]={'animation':0x320,'sort':!![],'onSort':function(){_0x43ec43['customFieldForm']['$pristine']=![];}},_0x451f4e['customField']=_0x5dbe56,_0x451f4e[_0x2ea977('0x179b')]=_0x2dd50f,_0x451f4e[_0x2ea977('0x1813')]=![];!_0x451f4e[_0x2ea977('0x894')]&&(_0x451f4e['customField']={'type':_0x2ea977('0x86e'),'actionType':_0x2ea977('0x21a8')},_0x451f4e[_0x2ea977('0x20d6')]='CONTACTMANAGER.NEW_CUSTOMFIELD',_0x451f4e[_0x2ea977('0x1813')]=!![]);_0x1e9530[_0x2ea977('0x197a')]['id']&&(_0x451f4e[_0x2ea977('0x894')]['ListId']=_0x1e9530[_0x2ea977('0x197a')]['id']);_0x43ec43[_0x2ea977('0x1bdb')](_0x2ea977('0x2462'),function(_0x4b9b3a,_0x89a051){const _0x3cc3f8=_0x2ea977;if(_0x4b9b3a!==_0x89a051)switch(_0x4b9b3a){case _0x3cc3f8('0x86e'):_0x451f4e[_0x3cc3f8('0x894')][_0x3cc3f8('0xcaf')]='';break;case _0x3cc3f8('0xc65'):_0x451f4e[_0x3cc3f8('0x894')][_0x3cc3f8('0xcaf')]=[];break;default:}}),_0x451f4e['addNewCustomField']=_0x3b84cc,_0x451f4e[_0x2ea977('0x1e1a')]=_0x31f16c,_0x451f4e[_0x2ea977('0x2399')]=_0x3928d9,_0x451f4e[_0x2ea977('0x11ae')]=_0x33b327,_0x451f4e[_0x2ea977('0xbc4')]=_0x456f38,_0x451f4e[_0x2ea977('0x2813')]=_0x37e72e,_0x451f4e['removeItems']=_0x50373b,_0x451f4e[_0x2ea977('0x18e2')]=_0x1cf9df;function _0x456f38(_0x24e95b){const _0xe6d168=_0x2ea977;_0x24e95b[_0xe6d168('0x18bb')]({'value':'New\x20Item'}),_0x43ec43[_0xe6d168('0x1b7a')][_0xe6d168('0x1d2b')]=![];}function _0x37e72e(_0x424bac,_0x4adf1d){const _0x3df051=_0x2ea977;_0x424bac[_0x3df051('0x553')](_0x4adf1d,0x1),_0x43ec43['customFieldForm']['$pristine']=![];}function _0x50373b(_0x5d6d26){const _0xa1b30c=_0x2ea977,_0x54d832=_0x5d6d26['length'];for(let _0x997fb1=0x0;_0x997fb1<_0x54d832;_0x997fb1++){_0x5d6d26[_0xa1b30c('0x553')](0x0,0x1);}_0x43ec43['customFieldForm']['$pristine']=![];}function _0x3b84cc(){const _0x11a6d6=_0x2ea977;_0x451f4e['errors']=[],_0x50d94c[_0x11a6d6('0xbb3')][_0x11a6d6('0x169e')]({'id':_0x1e9530[_0x11a6d6('0x197a')]['id']},_0x451f4e[_0x11a6d6('0x894')])['$promise'][_0x11a6d6('0x173b')](function(_0x40cf3e){const _0x5061a8=_0x11a6d6;_0x451f4e[_0x5061a8('0x179b')][_0x5061a8('0x1377')](_0x40cf3e[_0x5061a8('0xf1f')]()),_0x2591e9[_0x5061a8('0xdfe')]({'title':_0x5061a8('0x1385'),'msg':_0x451f4e[_0x5061a8('0x894')][_0x5061a8('0x10ad')]?_0x451f4e['customField'][_0x5061a8('0x10ad')]+_0x5061a8('0x209a'):''}),_0x1cf9df(_0x40cf3e);})['catch'](function(_0x595152){const _0x4c24de=_0x11a6d6;if(_0x595152[_0x4c24de('0x1e07')]&&_0x595152['data'][_0x4c24de('0x1d4a')]&&_0x595152[_0x4c24de('0x1e07')]['errors'][_0x4c24de('0x543')]){_0x451f4e['errors']=_0x595152[_0x4c24de('0x1e07')][_0x4c24de('0x1d4a')]||[{'message':_0x595152[_0x4c24de('0x1b75')](),'type':_0x4c24de('0x654')}];for(let _0x191952=0x0;_0x191952<_0x595152[_0x4c24de('0x1e07')]['errors'][_0x4c24de('0x543')];_0x191952+=0x1){_0x2591e9[_0x4c24de('0x15aa')]({'title':_0x595152[_0x4c24de('0x1e07')][_0x4c24de('0x1d4a')][_0x191952][_0x4c24de('0x1810')],'msg':_0x595152[_0x4c24de('0x1e07')][_0x4c24de('0x1d4a')][_0x191952][_0x4c24de('0x67f')]});}}else _0x2591e9[_0x4c24de('0x15aa')]({'title':_0x595152['status']?_0x4c24de('0x137')+_0x595152[_0x4c24de('0x276f')]+_0x4c24de('0x160c')+_0x595152[_0x4c24de('0x2696')]:_0x4c24de('0x654'),'msg':_0x595152[_0x4c24de('0x1e07')]?JSON[_0x4c24de('0x100b')](_0x595152[_0x4c24de('0x1e07')][_0x4c24de('0x67f')]):_0x595152[_0x4c24de('0x1b75')]()});});}function _0x31f16c(){const _0x16d4ea=_0x2ea977;_0x451f4e[_0x16d4ea('0x1d4a')]=[],_0x50d94c['cmCustomField']['update']({'id':_0x451f4e[_0x16d4ea('0x894')]['id']},_0x451f4e['customField'])[_0x16d4ea('0x1964')][_0x16d4ea('0x173b')](function(_0x56fc55){const _0x2b5275=_0x16d4ea,_0x596d59=_0x3c8d8a()[_0x2b5275('0x18ab')](_0x451f4e[_0x2b5275('0x179b')],{'id':_0x56fc55['id']});_0x596d59&&_0x3c8d8a()[_0x2b5275('0x9ef')](_0x596d59,_0x3c8d8a()[_0x2b5275('0x2114')](_0x56fc55['toJSON'](),_0x3c8d8a()[_0x2b5275('0x1d3e')](_0x596d59))),_0x2591e9[_0x2b5275('0xdfe')]({'title':_0x2b5275('0x246c'),'msg':_0x451f4e['customField'][_0x2b5275('0x10ad')]?_0x451f4e['customField'][_0x2b5275('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x1cf9df(_0x56fc55);})[_0x16d4ea('0x103c')](function(_0x240e87){const _0x27b51a=_0x16d4ea;if(_0x240e87[_0x27b51a('0x1e07')]&&_0x240e87[_0x27b51a('0x1e07')][_0x27b51a('0x1d4a')]&&_0x240e87[_0x27b51a('0x1e07')][_0x27b51a('0x1d4a')][_0x27b51a('0x543')]){_0x451f4e['errors']=_0x240e87[_0x27b51a('0x1e07')][_0x27b51a('0x1d4a')]||[{'message':_0x240e87['toString'](),'type':_0x27b51a('0x957')}];for(let _0x258253=0x0;_0x258253<_0x240e87['data'][_0x27b51a('0x1d4a')][_0x27b51a('0x543')];_0x258253++){_0x2591e9[_0x27b51a('0x15aa')]({'title':_0x240e87[_0x27b51a('0x1e07')][_0x27b51a('0x1d4a')][_0x258253][_0x27b51a('0x1810')],'msg':_0x240e87[_0x27b51a('0x1e07')][_0x27b51a('0x1d4a')][_0x258253][_0x27b51a('0x67f')]});}}else _0x2591e9[_0x27b51a('0x15aa')]({'title':_0x240e87[_0x27b51a('0x276f')]?_0x27b51a('0x137')+_0x240e87[_0x27b51a('0x276f')]+'\x20-\x20'+_0x240e87[_0x27b51a('0x2696')]:_0x27b51a('0x957'),'msg':_0x240e87[_0x27b51a('0x1e07')]?JSON[_0x27b51a('0x100b')](_0x240e87[_0x27b51a('0x1e07')][_0x27b51a('0x67f')]):_0x240e87[_0x27b51a('0x1b75')]()});});}function _0x3928d9(_0x27df46){const _0x362a4b=_0x2ea977;_0x451f4e[_0x362a4b('0x1d4a')]=[];const _0xd907f7=_0x26e6dd[_0x362a4b('0x1d02')]()[_0x362a4b('0x20d6')](_0x362a4b('0x8ef'))['content']('The\x20customField\x20will\x20be\x20deleted.')[_0x362a4b('0x217')](_0x362a4b('0x11dc'))['ok'](_0x362a4b('0x2373'))[_0x362a4b('0x1e1f')](_0x362a4b('0x1d4e'))[_0x362a4b('0x21de')](_0x27df46);_0x26e6dd[_0x362a4b('0x1cb7')](_0xd907f7)[_0x362a4b('0x173b')](function(){const _0x31dd33=_0x362a4b;_0x50d94c[_0x31dd33('0x157a')]['delete']({'id':_0x451f4e[_0x31dd33('0x894')]['id']})['$promise'][_0x31dd33('0x173b')](function(){const _0x4fdc32=_0x31dd33;_0x3c8d8a()[_0x4fdc32('0x1a8b')](_0x451f4e[_0x4fdc32('0x179b')],{'id':_0x451f4e[_0x4fdc32('0x894')]['id']}),_0x2591e9[_0x4fdc32('0xdfe')]({'title':'CustomField\x20properly\x20deleted!','msg':(_0x451f4e['customField'][_0x4fdc32('0x10ad')]||'customField')+_0x4fdc32('0x25d2')}),_0x1cf9df(_0x451f4e[_0x4fdc32('0x894')]);})[_0x31dd33('0x103c')](function(_0xb37444){const _0x556133=_0x31dd33;if(_0xb37444[_0x556133('0x1e07')]&&_0xb37444[_0x556133('0x1e07')][_0x556133('0x1d4a')]&&_0xb37444['data'][_0x556133('0x1d4a')][_0x556133('0x543')]){_0x451f4e[_0x556133('0x1d4a')]=_0xb37444['data'][_0x556133('0x1d4a')]||[{'message':_0xb37444[_0x556133('0x1b75')](),'type':'api.cmCustomField.delete'}];for(let _0x44c1b8=0x0;_0x44c1b8<_0xb37444[_0x556133('0x1e07')][_0x556133('0x1d4a')][_0x556133('0x543')];_0x44c1b8++){_0x2591e9[_0x556133('0x15aa')]({'title':_0xb37444['data']['errors'][_0x44c1b8][_0x556133('0x1810')],'msg':_0xb37444['data'][_0x556133('0x1d4a')][_0x44c1b8][_0x556133('0x67f')]});}}else _0x2591e9[_0x556133('0x15aa')]({'title':_0xb37444['status']?_0x556133('0x137')+_0xb37444[_0x556133('0x276f')]+_0x556133('0x160c')+_0xb37444[_0x556133('0x2696')]:_0x556133('0x285'),'msg':_0xb37444['data']?JSON[_0x556133('0x100b')](_0xb37444['data']['message']):_0xb37444[_0x556133('0x67f')]||_0xb37444[_0x556133('0x1b75')]()});});},function(){});}function _0x33b327(_0x591cb3){return _0x591cb3===null?undefined:new Date(_0x591cb3);}function _0x1cf9df(_0x114bca){_0x26e6dd['hide'](_0x114bca);}}const _0x5f3109=_0x3aa475,_0x3d15f7=_0x21a6a1['p']+'src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd.html';_0x1cfd73[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),'setting',_0x566993('0xbd4'),_0x566993('0x1558'),'Auth',_0x566993('0x3e3'),_0x566993('0x170e')];function _0x1cfd73(_0x104192,_0x162148,_0x1de5ae,_0x18d748,_0x45745f,_0x4d67c8,_0x43080b,_0x5e9332,_0x43246f,_0x54c2c7,_0x2096e8,_0x420c98){const _0x16d77c=_0x566993,_0xa20135=this;_0xa20135['currentUser']=_0x54c2c7[_0x16d77c('0x14d4')](),_0xa20135[_0x16d77c('0x1a29')]=_0x4d67c8,_0xa20135[_0x16d77c('0x251')]=_0x43080b,_0xa20135[_0x16d77c('0x644')]=_0xa20135[_0x16d77c('0x251')][_0x16d77c('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa20135[_0x16d77c('0x614')]=_0x162148[_0x16d77c('0x375')]()+'://'+_0x162148[_0x16d77c('0x4d1')](),_0xa20135['list']=_0x2096e8||_0x104192[_0x16d77c('0x197a')][_0x16d77c('0x3e3')]||{},_0xa20135[_0x16d77c('0x170e')]=_0x420c98&&_0x420c98[_0x16d77c('0x1a2f')]==0x1?_0x420c98[_0x16d77c('0x6aa')][0x0]:null,_0xa20135[_0x16d77c('0x1dc1')]=_0x54c2c7[_0x16d77c('0xde6')](_0xa20135[_0x16d77c('0x170e')]?_0xa20135[_0x16d77c('0x170e')]['crudPermissions']:null),_0xa20135[_0x16d77c('0xb0')]={},_0xa20135['selectedTab']=_0x104192[_0x16d77c('0x197a')][_0x16d77c('0x1e66')]||0x0,_0xa20135[_0x16d77c('0xa47')]=_0x3aa07b,_0xa20135[_0x16d77c('0x2118')]=_0x657ee8,_0xa20135['alert']=_0x43246f['info'],_0xa20135['gotoLists']=_0x3477fe,_0xa20135[_0x16d77c('0x62c')]=_0x42ddf3;function _0x3aa07b(_0x3ea83f){const _0x11a1da=_0x16d77c;if(_0x54c2c7[_0x11a1da('0x1b4e')](_0x11a1da('0x79b')))_0x104192['go']('app.contactmanager.contacts',{'ListId':_0x3ea83f['id']});else return _0x5e9332['userProfileSection'][_0x11a1da('0x1d97')]({'userProfileId':_0x54c2c7['getCurrentUser']()[_0x11a1da('0x1946')],'sectionId':0x12f})[_0x11a1da('0x1964')][_0x11a1da('0x173b')](function(_0x4ffdfe){const _0xbfb72=_0x11a1da,_0x9cad74=_0x4ffdfe&&_0x4ffdfe[_0xbfb72('0x6aa')]?_0x4ffdfe[_0xbfb72('0x6aa')][0x0]:null;_0x9cad74&&_0x9cad74[_0xbfb72('0x830')]?_0x104192['go'](_0xbfb72('0xaf8'),{'ListId':_0x3ea83f['id']}):_0x43246f[_0xbfb72('0x2787')]({'title':_0x45745f[_0xbfb72('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x45745f[_0xbfb72('0x1467')](_0xbfb72('0x7d4'))});})[_0x11a1da('0x103c')](function(_0x3f229e){const _0x37850f=_0x11a1da;_0x43246f[_0x37850f('0x15aa')]({'title':_0x3f229e[_0x37850f('0x276f')]?'API:'+_0x3f229e[_0x37850f('0x276f')]+'\x20-\x20'+_0x3f229e[_0x37850f('0x2696')]:_0x37850f('0x144d'),'msg':_0x3f229e[_0x37850f('0x276f')]?JSON['stringify'](_0x3f229e['data']):_0x3f229e['toString']()});});}function _0x657ee8(_0x43476e,_0x3a0c17){const _0xd406c=_0x16d77c;_0x1de5ae[_0xd406c('0x1cb7')]({'controller':_0xd406c('0xa49'),'controllerAs':'vm','templateUrl':_0x3d15f7,'parent':angular['element'](_0x18d748[_0xd406c('0x1a5')]),'targetEvent':_0x3a0c17,'clickOutsideToClose':!![],'locals':{'list':_0x43476e,'lists':_0xa20135[_0xd406c('0x9e8')]?_0xa20135[_0xd406c('0x9e8')][_0xd406c('0x6aa')]:[],'crudPermissions':_0xa20135[_0xd406c('0x1dc1')],'realtime':![]}});}function _0x3477fe(){const _0x5e0339=_0x16d77c;_0x104192['go'](_0x5e0339('0x1c87'),{},{'reload':_0x5e0339('0x1c87')});}function _0x42ddf3(){const _0x1f9a56=_0x16d77c;_0x5e9332[_0x1f9a56('0xbb3')][_0x1f9a56('0x1842')]({'id':_0xa20135[_0x1f9a56('0x3e3')]['id']},_0xa20135[_0x1f9a56('0x3e3')])['$promise'][_0x1f9a56('0x173b')](function(){const _0x3cd023=_0x1f9a56;_0x43246f['success']({'title':_0x3cd023('0x1e55'),'msg':_0xa20135[_0x3cd023('0x3e3')][_0x3cd023('0x10ad')]?_0xa20135[_0x3cd023('0x3e3')][_0x3cd023('0x10ad')]+_0x3cd023('0x1fd6'):''});})['catch'](function(_0x5e4d97){const _0x15e393=_0x1f9a56;_0x43246f[_0x15e393('0x15aa')]({'title':_0x5e4d97[_0x15e393('0x276f')]?_0x15e393('0x137')+_0x5e4d97[_0x15e393('0x276f')]+_0x15e393('0x160c')+_0x5e4d97['statusText']:_0x15e393('0x23d6'),'msg':_0x5e4d97[_0x15e393('0x1e07')]?JSON[_0x15e393('0x100b')](_0x5e4d97[_0x15e393('0x1e07')]):_0x5e4d97[_0x15e393('0x1b75')]()});});}}const _0x49d256=_0x1cfd73,_0x1db9b3=_0x21a6a1['p']+'src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html';_0x546e0f[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),'api','toasty',_0x566993('0x1600')];function _0x546e0f(_0x1d532a,_0x3ce641,_0x25a379,_0x4f5546,_0x2f2637,_0x950335,_0x4f3c0a,_0x42066e,_0x47dd20,_0x24157f,_0x599584){const _0x178edd=_0x566993,_0x233f7d=this;_0x233f7d['currentUser']=_0x599584[_0x178edd('0x14d4')](),_0x233f7d[_0x178edd('0x9c6')]={'count':0x0,'rows':[]},_0x233f7d['selectedDispositions']=[],_0x233f7d[_0x178edd('0x1dc1')],_0x233f7d[_0x178edd('0x1d14')]={'first':'1st','second':_0x178edd('0x1136'),'third':_0x178edd('0x1486')},_0x233f7d[_0x178edd('0xc49')]={'fields':_0x178edd('0xf3'),'sort':_0x178edd('0x1769'),'limit':0xa,'page':0x1},_0x233f7d[_0x178edd('0xb9c')]=_0x2b1396,_0x233f7d[_0x178edd('0x2051')]=_0x1805ee,_0x233f7d['success']=_0x1637cc,_0x233f7d['getDispositions']=_0x40e38a,_0x233f7d[_0x178edd('0xfb1')]=_0x414fc8,_0x233f7d[_0x178edd('0x1d5a')]=_0x282c4e,_0x233f7d[_0x178edd('0x1a6b')]=_0x2b1d9c,_0x233f7d['deleteSelectedDispositions']=_0x1790f4,_0x233f7d['deselectDispositions']=_0x6208db,_0x233f7d['selectAllDispositions']=_0x4bc731;function _0x2b1396(_0x2ef033,_0x525b16){const _0x62c1ee=_0x178edd;_0x233f7d['list']=_0x2ef033||{},_0x233f7d[_0x62c1ee('0x1dc1')]=typeof _0x525b16!=='undefined'?_0x525b16:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x233f7d[_0x62c1ee('0xc49')][_0x62c1ee('0xef2')]=_0x233f7d[_0x62c1ee('0x3e3')]['id'],_0x233f7d[_0x62c1ee('0xc49')]['id']=_0x233f7d[_0x62c1ee('0x3e3')]['id'],_0x40e38a();}function _0x414fc8(_0xf0b9ba,_0x2baf46){const _0x427588=_0x178edd;_0x2f2637['show']({'controller':_0x427588('0x19ff'),'controllerAs':'vm','templateUrl':_0x1db9b3,'parent':angular[_0x427588('0xb6d')](_0x950335['body']),'targetEvent':_0xf0b9ba,'clickOutsideToClose':!![],'locals':{'disposition':_0x2baf46,'dispositions':_0x233f7d['dispositions'][_0x427588('0x6aa')],'model':{'id':_0x233f7d['list']['id'],'field':'ListId'},'license':null,'setting':null,'crudPermissions':_0x233f7d[_0x427588('0x1dc1')]}})[_0x427588('0x173b')](function(_0x4da78c){if(_0x4da78c)_0x40e38a();});}function _0x1805ee(_0x36e6dc,_0x26a0c4){const _0x579fe4=_0x178edd,_0x472f86=_0x3c8d8a()['some'](_0x233f7d[_0x579fe4('0x9c6')][_0x579fe4('0x6aa')],[_0x579fe4('0x2644'),_0x36e6dc['id']]),_0x75fa0a=_0x2f2637[_0x579fe4('0x1d02')]()[_0x579fe4('0x20d6')](_0x42066e[_0x579fe4('0x1467')](_0x579fe4('0xf13')))[_0x579fe4('0x732')](_0x42066e[_0x579fe4('0x1467')](_0x579fe4('0x15d6')+(_0x472f86?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x579fe4('0xee2')),{'name':_0x36e6dc['name']}))[_0x579fe4('0x217')](_0x579fe4('0x843'))['targetEvent'](_0x26a0c4)['ok']('OK')[_0x579fe4('0x1e1f')](_0x42066e[_0x579fe4('0x1467')](_0x579fe4('0x2224')));_0x2f2637[_0x579fe4('0x1cb7')](_0x75fa0a)[_0x579fe4('0x173b')](function(){_0x282c4e(_0x36e6dc);});}function _0x1637cc(_0x43ea6a){_0x233f7d['dispositions']=_0x43ea6a||{'count':0x0,'rows':[]};}function _0x40e38a(){const _0x3ffcb5=_0x178edd;_0x233f7d[_0x3ffcb5('0xc49')][_0x3ffcb5('0x17f0')]=(_0x233f7d[_0x3ffcb5('0xc49')][_0x3ffcb5('0x182e')]-0x1)*_0x233f7d[_0x3ffcb5('0xc49')][_0x3ffcb5('0x3e')],_0x233f7d[_0x3ffcb5('0x2219')]=_0x47dd20[_0x3ffcb5('0xbb3')][_0x3ffcb5('0x251d')](_0x233f7d[_0x3ffcb5('0xc49')],_0x1637cc)[_0x3ffcb5('0x1964')];}function _0x282c4e(_0x4f6e8f){const _0x2393a=_0x178edd;_0x47dd20[_0x2393a('0x2766')][_0x2393a('0x15e8')]({'id':_0x4f6e8f['id']})[_0x2393a('0x1964')][_0x2393a('0x173b')](function(){const _0x8c18ff=_0x2393a;_0x40e38a(),_0x24157f[_0x8c18ff('0xdfe')]({'title':_0x42066e[_0x8c18ff('0x1467')](_0x8c18ff('0x34b'))});})['catch'](function(_0x598166){const _0x4acf33=_0x2393a;if(_0x598166[_0x4acf33('0x1e07')]&&_0x598166[_0x4acf33('0x1e07')][_0x4acf33('0x1d4a')]&&_0x598166[_0x4acf33('0x1e07')][_0x4acf33('0x1d4a')][_0x4acf33('0x543')]){_0x233f7d['errors']=_0x598166[_0x4acf33('0x1e07')][_0x4acf33('0x1d4a')]||[{'message':_0x598166['toString'](),'type':_0x4acf33('0x6af')}];for(let _0x1c3332=0x0;_0x1c3332<_0x598166[_0x4acf33('0x1e07')]['errors'][_0x4acf33('0x543')];_0x1c3332++){_0x24157f['error']({'title':_0x598166[_0x4acf33('0x1e07')][_0x4acf33('0x1d4a')][_0x1c3332][_0x4acf33('0x1810')],'msg':_0x598166[_0x4acf33('0x1e07')][_0x4acf33('0x1d4a')][_0x1c3332][_0x4acf33('0x67f')]});}}else _0x24157f['error']({'title':_0x598166['status']?_0x4acf33('0x137')+_0x598166['status']+_0x4acf33('0x160c')+_0x598166['statusText']:_0x4acf33('0x6af'),'msg':_0x598166[_0x4acf33('0x1e07')]?JSON[_0x4acf33('0x100b')](_0x598166[_0x4acf33('0x1e07')][_0x4acf33('0x67f')]):_0x598166[_0x4acf33('0x67f')]||_0x598166[_0x4acf33('0x1b75')]()});});}function _0x2b1d9c(){const _0xf7454a=_0x178edd,_0x2c8ceb=angular['copy'](_0x233f7d[_0xf7454a('0x451')]);return _0x233f7d['selectedDispositions']=[],_0x2c8ceb;}function _0x1790f4(_0x1e4575){const _0x908f3f=_0x178edd,_0x8ddad7=_0x2f2637[_0x908f3f('0x1d02')]()[_0x908f3f('0x20d6')](_0x42066e[_0x908f3f('0x1467')](_0x908f3f('0xa25')))[_0x908f3f('0x732')](_0x42066e[_0x908f3f('0x1467')](_0x908f3f('0x25a'),{'total':_0x233f7d[_0x908f3f('0x451')][_0x908f3f('0x543')]}))[_0x908f3f('0x217')](_0x908f3f('0x6b8'))[_0x908f3f('0x21de')](_0x1e4575)['ok']('OK')['cancel'](_0x42066e[_0x908f3f('0x1467')](_0x908f3f('0x2224')));_0x2f2637[_0x908f3f('0x1cb7')](_0x8ddad7)['then'](function(){const _0x139f07=_0x908f3f;_0x233f7d[_0x139f07('0x451')][_0x139f07('0xa6a')](function(_0xed2a67){_0x282c4e(_0xed2a67);}),_0x233f7d[_0x139f07('0x451')]=[];});}function _0x6208db(){_0x233f7d['selectedDispositions']=[];}function _0x4bc731(){const _0x188d30=_0x178edd;_0x233f7d['selectedDispositions']=_0x233f7d[_0x188d30('0x9c6')][_0x188d30('0x6aa')];}let _0x48b84d=!![],_0x43b01f=0x1;_0x1d532a[_0x178edd('0x1bdb')]('vm_dc.query.filter',function(_0x2b8dce,_0x418ed5){const _0xd2064=_0x178edd;_0x48b84d?_0x4f3c0a(function(){_0x48b84d=![];}):(!_0x418ed5&&(_0x43b01f=_0x233f7d[_0xd2064('0xc49')]['page']),_0x2b8dce!==_0x418ed5&&(_0x233f7d[_0xd2064('0xc49')][_0xd2064('0x182e')]=0x1),!_0x2b8dce&&(_0x233f7d[_0xd2064('0xc49')][_0xd2064('0x182e')]=_0x43b01f),_0x40e38a());});}const _0x5c3108=_0x546e0f,_0x1a2615=_0x21a6a1['p']+_0x566993('0x21db');_0x16af8b[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),'lists',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x16af8b(_0x266dc1,_0x1254f9,_0x2dd476,_0x1d14a8,_0x4c77db,_0xa45036,_0x103939,_0x276dad,_0x3bfd2c,_0x2e0cbe,_0x549321,_0x136d1c,_0x4162f5,_0x538803,_0x584ca0,_0x2dbfca,_0x2a6047){const _0x3a1cc4=_0x566993,_0x67e444=this;_0x67e444[_0x3a1cc4('0x1a29')]=_0x2dbfca,_0x67e444[_0x3a1cc4('0x251')]=_0x2a6047,_0x67e444[_0x3a1cc4('0x155f')]=_0x584ca0[_0x3a1cc4('0x14d4')](),_0x67e444[_0x3a1cc4('0x9e8')]=_0x3bfd2c||{'count':0x0,'rows':[]},_0x67e444[_0x3a1cc4('0x257b')]=_0x2e0cbe,_0x67e444['userProfileSection']=_0x549321&&_0x549321[_0x3a1cc4('0x1a2f')]==0x1?_0x549321['rows'][0x0]:null,_0x67e444['crudPermissions']=_0x584ca0[_0x3a1cc4('0xde6')](_0x67e444[_0x3a1cc4('0x170e')]?_0x67e444[_0x3a1cc4('0x170e')][_0x3a1cc4('0x1dc1')]:null),_0x67e444[_0x3a1cc4('0xdf9')]=_0x3a1cc4('0x9e8'),_0x67e444[_0x3a1cc4('0x14d6')]='',_0x67e444[_0x3a1cc4('0x2303')]=null,_0x67e444['selectedLists']=[],_0x67e444[_0x3a1cc4('0xc49')]={'fields':_0x3a1cc4('0xd9'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x67e444[_0x3a1cc4('0x222e')]=_0x288836,_0x67e444['gotocontactsgoto']=_0x4cbbd4,_0x67e444['exportcsvcontactsexport']=_0x5da4b6,_0x67e444[_0x3a1cc4('0x2118')]=_0x559b15,_0x67e444[_0x3a1cc4('0x1a20')]=_0x402f4b,_0x67e444[_0x3a1cc4('0xdfe')]=_0x4c445f,_0x67e444[_0x3a1cc4('0xe91')]=_0x84992f,_0x67e444[_0x3a1cc4('0xba4')]=_0x5955a5,_0x67e444[_0x3a1cc4('0x2244')]=_0x40b741,_0x67e444[_0x3a1cc4('0x49b')]=_0x486297,_0x67e444['deleteSelectedLists']=_0x1431eb,_0x67e444[_0x3a1cc4('0x1ad7')]=_0x445b43,_0x67e444[_0x3a1cc4('0x19b8')]=_0xf61b50;function _0x288836(_0x29a869){const _0x11f58b=_0x3a1cc4;_0x2dd476['go']('app.contactmanager.lists.edit',{'id':_0x29a869['id'],'list':_0x29a869,'crudPermissions':_0x67e444[_0x11f58b('0x1dc1')]});}function _0x4cbbd4(_0x39f5f0){const _0x290e5d=_0x3a1cc4;if(_0x584ca0[_0x290e5d('0x1b4e')](_0x290e5d('0x79b')))_0x2dd476['go'](_0x290e5d('0xaf8'),{'ListId':_0x39f5f0['id']});else return _0x136d1c[_0x290e5d('0x170e')][_0x290e5d('0x1d97')]({'userProfileId':_0x584ca0[_0x290e5d('0x14d4')]()[_0x290e5d('0x1946')],'sectionId':0x12f})['$promise']['then'](function(_0x12777d){const _0x5b852b=_0x290e5d,_0x3542e6=_0x12777d&&_0x12777d[_0x5b852b('0x6aa')]?_0x12777d[_0x5b852b('0x6aa')][0x0]:null;_0x3542e6&&_0x3542e6[_0x5b852b('0x830')]?_0x2dd476['go'](_0x5b852b('0xaf8'),{'ListId':_0x39f5f0['id']}):_0x538803[_0x5b852b('0x2787')]({'title':_0x276dad['instant'](_0x5b852b('0x4aa')),'msg':_0x276dad[_0x5b852b('0x1467')](_0x5b852b('0x7d4'))});})[_0x290e5d('0x103c')](function(_0x199892){const _0x431a36=_0x290e5d;_0x538803[_0x431a36('0x15aa')]({'title':_0x199892['status']?_0x431a36('0x137')+_0x199892[_0x431a36('0x276f')]+'\x20-\x20'+_0x199892[_0x431a36('0x2696')]:_0x431a36('0x144d'),'msg':_0x199892[_0x431a36('0x276f')]?JSON['stringify'](_0x199892['data']):_0x199892[_0x431a36('0x1b75')]()});});}function _0x5da4b6(_0x2d3c7c){const _0x362c94=_0x3a1cc4;return _0x136d1c[_0x362c94('0xbb3')][_0x362c94('0x74d')]({'id':_0x2d3c7c['id'],'nolimit':!![]})['$promise'][_0x362c94('0x173b')](function(_0x5b1665){const _0xb1bb50=_0x362c94;if(typeof _0x5b1665['length']!=='undefined'){const _0x1b135b=[_0x5b1665[_0xb1bb50('0x1c22')]],_0x314a5e=new Blob(_0x1b135b,{'type':_0x5b1665['type']}),_0x55060b=window[_0xb1bb50('0x222a')][_0xb1bb50('0x1258')]('a');_0x55060b[_0xb1bb50('0x11c3')]('href',URL[_0xb1bb50('0x1466')](_0x314a5e)),_0x55060b['setAttribute'](_0xb1bb50('0xfce'),'exportContacts_'+_0x2d3c7c['id']+'.csv'),_0x55060b[_0xb1bb50('0x3cb')]();}else _0x538803[_0xb1bb50('0x2787')]({'title':'EXPORT','msg':_0xb1bb50('0xf85')});})[_0x362c94('0x103c')](function(_0x392234){const _0x5dfcbf=_0x362c94;_0x538803[_0x5dfcbf('0x15aa')]({'title':_0x392234[_0x5dfcbf('0x276f')]?_0x5dfcbf('0x137')+_0x392234[_0x5dfcbf('0x276f')]+_0x5dfcbf('0x160c')+_0x392234[_0x5dfcbf('0x2696')]:_0x5dfcbf('0x23d6'),'msg':_0x392234[_0x5dfcbf('0x1e07')]?JSON[_0x5dfcbf('0x100b')](_0x392234[_0x5dfcbf('0x1e07')]):_0x392234[_0x5dfcbf('0x1b75')]()});});}function _0x559b15(_0x5d4eb9,_0x29aa2a){const _0x3c6902=_0x3a1cc4;_0x4c77db['show']({'controller':_0x3c6902('0xa49'),'controllerAs':'vm','templateUrl':_0x3d15f7,'parent':angular['element'](_0xa45036['body']),'targetEvent':_0x29aa2a,'clickOutsideToClose':!![],'locals':{'list':_0x5d4eb9,'lists':_0x67e444[_0x3c6902('0x9e8')]?_0x67e444['lists'][_0x3c6902('0x6aa')]:[],'crudPermissions':_0x67e444[_0x3c6902('0x1dc1')],'realtime':![]}});}function _0x402f4b(_0x5a9687,_0x58bc88){const _0x16e0ce=_0x3a1cc4,_0x1b2deb=_0x4c77db[_0x16e0ce('0x1d02')]()[_0x16e0ce('0x20d6')](_0x16e0ce('0x5bb')+_0x3c8d8a()[_0x16e0ce('0x10e')]('list')+'?')[_0x16e0ce('0xf8b')](_0x16e0ce('0x15b9')+(_0x5a9687[_0x16e0ce('0x10ad')]||_0x16e0ce('0x3e3'))+_0x16e0ce('0x24be')+'\x20will\x20be\x20deleted.')[_0x16e0ce('0x217')]('delete\x20list')[_0x16e0ce('0x21de')](_0x58bc88)['ok']('OK')['cancel'](_0x16e0ce('0x468'));_0x4c77db[_0x16e0ce('0x1cb7')](_0x1b2deb)[_0x16e0ce('0x173b')](function(){_0x40b741(_0x5a9687);},function(){const _0x22ab8b=_0x16e0ce;console['log'](_0x22ab8b('0x468'));});}let _0x320e7c=!![],_0x47de93=0x1;_0x266dc1[_0x3a1cc4('0x1bdb')](_0x3a1cc4('0x157b'),function(_0x439f5c,_0x208511){const _0x2a9792=_0x3a1cc4;_0x320e7c?_0x103939(function(){_0x320e7c=![];}):(!_0x208511&&(_0x47de93=_0x67e444[_0x2a9792('0xc49')][_0x2a9792('0x182e')]),_0x439f5c!==_0x208511&&(_0x67e444[_0x2a9792('0xc49')][_0x2a9792('0x182e')]=0x1),!_0x439f5c&&(_0x67e444['query'][_0x2a9792('0x182e')]=_0x47de93),_0x67e444['getLists']());});function _0x4c445f(_0x24dfe7){const _0x4202de=_0x3a1cc4;_0x67e444[_0x4202de('0x9e8')]=_0x24dfe7||{'count':0x0,'rows':[]};}function _0x84992f(){const _0x53c20e=_0x3a1cc4;_0x67e444[_0x53c20e('0xc49')]['offset']=(_0x67e444['query'][_0x53c20e('0x182e')]-0x1)*_0x67e444[_0x53c20e('0xc49')]['limit'],_0x584ca0['hasRole'](_0x53c20e('0x79b'))?_0x67e444[_0x53c20e('0x2219')]=_0x136d1c[_0x53c20e('0xbb3')][_0x53c20e('0x1d97')](_0x67e444[_0x53c20e('0xc49')],_0x4c445f)[_0x53c20e('0x1964')]:(_0x67e444['query']['id']=_0x67e444['userProfile']['id'],_0x67e444[_0x53c20e('0xc49')][_0x53c20e('0x17c9')]='Lists',_0x67e444[_0x53c20e('0x2219')]=_0x136d1c[_0x53c20e('0x257b')]['getResources'](_0x67e444[_0x53c20e('0xc49')],_0x4c445f)['$promise']);}function _0x5955a5(_0x1f767d,_0x327ac6){const _0x3d5a7b=_0x3a1cc4;_0x4c77db[_0x3d5a7b('0x1cb7')]({'controller':_0x3d5a7b('0x2777'),'controllerAs':'vm','templateUrl':_0x1a2615,'parent':angular[_0x3d5a7b('0xb6d')](_0xa45036[_0x3d5a7b('0x1a5')]),'targetEvent':_0x1f767d,'clickOutsideToClose':!![],'locals':{'list':_0x327ac6,'lists':_0x67e444[_0x3d5a7b('0x9e8')][_0x3d5a7b('0x6aa')],'license':_0x67e444[_0x3d5a7b('0x1a29')],'setting':_0x67e444[_0x3d5a7b('0x251')],'crudPermissions':_0x67e444[_0x3d5a7b('0x1dc1')]}});}function _0x40b741(_0x4cfb43){const _0x51af4b=_0x3a1cc4;_0x136d1c['cmList'][_0x51af4b('0x15e8')]({'id':_0x4cfb43['id']})[_0x51af4b('0x1964')][_0x51af4b('0x173b')](function(){const _0x50af41=_0x51af4b;_0x3c8d8a()[_0x50af41('0x1a8b')](_0x67e444[_0x50af41('0x9e8')]['rows'],{'id':_0x4cfb43['id']}),_0x67e444['lists'][_0x50af41('0x1a2f')]-=0x1,!_0x67e444[_0x50af41('0x9e8')]['rows'][_0x50af41('0x543')]&&_0x67e444[_0x50af41('0xe91')](),_0x538803[_0x50af41('0xdfe')]({'title':_0x3c8d8a()[_0x50af41('0x10e')](_0x50af41('0x6bc'))+_0x50af41('0x1c5e'),'msg':_0x4cfb43[_0x50af41('0x10ad')]?_0x4cfb43[_0x50af41('0x10ad')]+_0x50af41('0x25d2'):''});})[_0x51af4b('0x103c')](function(_0x50fa60){const _0xd65617=_0x51af4b;if(_0x50fa60[_0xd65617('0x1e07')]&&_0x50fa60[_0xd65617('0x1e07')][_0xd65617('0x1d4a')]&&_0x50fa60[_0xd65617('0x1e07')][_0xd65617('0x1d4a')][_0xd65617('0x543')]){_0x67e444[_0xd65617('0x1d4a')]=_0x50fa60['data'][_0xd65617('0x1d4a')]||[{'message':_0x50fa60[_0xd65617('0x1b75')](),'type':_0xd65617('0x6fb')}];for(let _0x9be264=0x0;_0x9be264<_0x50fa60['data'][_0xd65617('0x1d4a')][_0xd65617('0x543')];_0x9be264++){_0x538803['error']({'title':_0x50fa60[_0xd65617('0x1e07')][_0xd65617('0x1d4a')][_0x9be264]['type'],'msg':_0x50fa60[_0xd65617('0x1e07')][_0xd65617('0x1d4a')][_0x9be264]['message']});}}else _0x538803[_0xd65617('0x15aa')]({'title':_0x50fa60[_0xd65617('0x276f')]?_0xd65617('0x137')+_0x50fa60[_0xd65617('0x276f')]+_0xd65617('0x160c')+_0x50fa60[_0xd65617('0x2696')]:_0xd65617('0x6fb'),'msg':_0x50fa60[_0xd65617('0x1e07')]?JSON[_0xd65617('0x100b')](_0x50fa60['data']['message']):_0x50fa60['message']||_0x50fa60[_0xd65617('0x1b75')]()});});}function _0x486297(){const _0x1ed47e=_0x3a1cc4,_0x56673b=angular[_0x1ed47e('0x2e3')](_0x67e444[_0x1ed47e('0xa56')]);return _0x67e444['selectedLists']=[],_0x56673b;}function _0x1431eb(_0x4b4bd8){const _0x31e033=_0x3a1cc4,_0x2afa4e=_0x4c77db['confirm']()[_0x31e033('0x20d6')](_0x31e033('0x60'))[_0x31e033('0xf8b')](_0x31e033('0x15b9')+_0x67e444[_0x31e033('0xa56')]['length']+_0x31e033('0xcb4')+_0x31e033('0xd23'))[_0x31e033('0x217')](_0x31e033('0x272'))[_0x31e033('0x21de')](_0x4b4bd8)['ok']('OK')['cancel'](_0x31e033('0x468'));_0x4c77db[_0x31e033('0x1cb7')](_0x2afa4e)[_0x31e033('0x173b')](function(){const _0x2af341=_0x31e033;_0x67e444[_0x2af341('0xa56')][_0x2af341('0xa6a')](function(_0x571d60){_0x40b741(_0x571d60);}),_0x67e444['selectedLists']=[];});}function _0x445b43(){const _0x1697b8=_0x3a1cc4;_0x67e444[_0x1697b8('0xa56')]=[];}function _0xf61b50(){const _0x32cf6d=_0x3a1cc4;_0x67e444[_0x32cf6d('0xa56')]=_0x67e444['lists'][_0x32cf6d('0x6aa')];}}const _0x2ff9ea=_0x16af8b,_0x109660=_0x21a6a1['p']+'src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists.html',_0x37ab7a=_0x21a6a1['p']+_0x566993('0xb75'),_0x3b155b=_0x21a6a1['p']+'src/js/modules/main/apps/contactmanager/views/companies/companies.html/companies.html',_0x56f5aa=_0x21a6a1['p']+_0x566993('0x101'),_0x4a23b9=_0x21a6a1['p']+_0x566993('0x1e91');_0x3e8cff['$inject']=['$stateProvider',_0x566993('0x8ca')];function _0x3e8cff(_0x2ae29a,_0x16ec33){const _0x527865=_0x566993;_0x2ae29a[_0x527865('0x1a49')](_0x527865('0x20bc'),{'abstract':!![],'url':_0x527865('0x29d')})['state'](_0x527865('0x1c87'),{'url':'/lists','views':{'content@app':{'templateUrl':_0x109660,'controller':_0x527865('0xc6')}},'resolve':{'lists':[_0x527865('0x2401'),_0x527865('0x1600'),function(_0x16a355,_0x3328b3){const _0x485e99=_0x527865;return _0x3328b3[_0x485e99('0x1b4e')]('admin')?_0x16a355[_0x485e99('0x155b')](_0x485e99('0x1b8b'),{'fields':_0x485e99('0xd9'),'sort':_0x485e99('0x1769'),'limit':0xa,'offset':0x0}):_0x16a355['resolve'](_0x485e99('0x14b3'),{'id':_0x3328b3[_0x485e99('0x14d4')]()[_0x485e99('0x1946')],'section':_0x485e99('0xd8b'),'fields':_0x485e99('0xd9'),'sort':_0x485e99('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x527865('0x1600'),function(_0x4b507b,_0x2bd99c){const _0x49c745=_0x527865;return _0x2bd99c[_0x49c745('0x1b4e')](_0x49c745('0x79b'))?null:_0x4b507b[_0x49c745('0x155b')](_0x49c745('0x1f20'),{'fields':_0x49c745('0x19dd'),'id':_0x2bd99c[_0x49c745('0x14d4')]()[_0x49c745('0x1946')]});}],'userProfileSection':[_0x527865('0x2401'),_0x527865('0x1600'),function(_0x3eb714,_0x15ffb1){const _0x5f2960=_0x527865;return _0x15ffb1['hasRole']('admin')?null:_0x3eb714[_0x5f2960('0x155b')](_0x5f2960('0x40'),{'fields':_0x5f2960('0x1348'),'userProfileId':_0x15ffb1['getCurrentUser']()[_0x5f2960('0x1946')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x527865('0x279')})[_0x527865('0x1a49')]('app.contactmanager.lists.edit',{'url':_0x527865('0xb4c'),'params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x37ab7a,'controller':_0x527865('0xb38')}},'resolve':{'list':[_0x527865('0x2401'),_0x527865('0x1caf'),function(_0x2a1835,_0x1d2a57){const _0xa42b38=_0x527865;return _0x2a1835[_0xa42b38('0x155b')](_0xa42b38('0x1b8b'),{'fields':_0xa42b38('0xd9'),'id':_0x1d2a57['id']});}],'userProfileSection':[_0x527865('0x2401'),_0x527865('0x1600'),function(_0x304a27,_0x4211e6){const _0x154371=_0x527865;return _0x304a27['resolve'](_0x154371('0x40'),{'fields':_0x154371('0x1348'),'userProfileId':_0x4211e6[_0x154371('0x14d4')]()[_0x154371('0x1946')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x527865('0x279')})[_0x527865('0x1a49')](_0x527865('0xbcc'),{'url':_0x527865('0x9ea'),'views':{'content@app':{'templateUrl':_0x3b155b,'controller':'CompaniesController\x20as\x20vm'}},'resolve':{'companies':[_0x527865('0x2401'),_0x527865('0x1600'),function(_0x42edda,_0x5d2bda){const _0x257f7d=_0x527865;return _0x5d2bda['hasRole'](_0x257f7d('0x79b'))?_0x42edda['resolve'](_0x257f7d('0x8d8'),{'fields':_0x257f7d('0x21b7'),'sort':_0x257f7d('0x1769'),'limit':0xa,'offset':0x0}):_0x42edda['resolve'](_0x257f7d('0x14b3'),{'id':_0x5d2bda[_0x257f7d('0x14d4')]()['userProfileId'],'section':'Companies','fields':'createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x527865('0x2401'),_0x527865('0x1600'),function(_0x7e58b,_0x52a272){const _0x5ada06=_0x527865;return _0x52a272[_0x5ada06('0x1b4e')](_0x5ada06('0x79b'))?null:_0x7e58b['resolve'](_0x5ada06('0x1f20'),{'fields':_0x5ada06('0x19dd'),'id':_0x52a272['getCurrentUser']()[_0x5ada06('0x1946')]});}],'userProfileSection':[_0x527865('0x2401'),_0x527865('0x1600'),function(_0x404704,_0x3771dc){const _0x1dfa5b=_0x527865;return _0x3771dc[_0x1dfa5b('0x1b4e')](_0x1dfa5b('0x79b'))?null:_0x404704[_0x1dfa5b('0x155b')]('userProfileSection@get',{'fields':_0x1dfa5b('0x1348'),'userProfileId':_0x3771dc[_0x1dfa5b('0x14d4')]()[_0x1dfa5b('0x1946')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x527865('0x279')})[_0x527865('0x1a49')](_0x527865('0x12d8'),{'url':_0x527865('0xb4c'),'params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x56f5aa,'controller':_0x527865('0x13ef')}},'resolve':{'company':[_0x527865('0x2401'),_0x527865('0x1caf'),function(_0x4dfb84,_0x503489){const _0x1ff2a2=_0x527865;return _0x4dfb84[_0x1ff2a2('0x155b')](_0x1ff2a2('0x8d8'),{'fields':'createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','id':_0x503489['id']});}],'userProfileSection':[_0x527865('0x2401'),_0x527865('0x1600'),function(_0x1bba22,_0x5e7360){const _0x182949=_0x527865;return _0x1bba22[_0x182949('0x155b')]('userProfileSection@get',{'fields':_0x182949('0x1348'),'userProfileId':_0x5e7360[_0x182949('0x14d4')]()[_0x182949('0x1946')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x527865('0x279')})['state'](_0x527865('0xe9e'),{'url':_0x527865('0x2c4'),'views':{'content@app':{'templateUrl':_0x4a23b9,'controller':_0x527865('0x1116')}},'resolve':{'globalCustomFields':[_0x527865('0x2401'),function(_0x2f58d6){const _0x4ac2fa=_0x527865;return _0x2f58d6[_0x4ac2fa('0x155b')](_0x4ac2fa('0x2552'),{'fields':_0x4ac2fa('0x271e'),'sort':_0x4ac2fa('0x1769'),'ListId':_0x4ac2fa('0x877'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x527865('0x2401'),'Auth',function(_0x42f58e,_0x1f653d){const _0x593c5a=_0x527865;return _0x1f653d[_0x593c5a('0x1b4e')](_0x593c5a('0x79b'))?null:_0x42f58e['resolve'](_0x593c5a('0x1f20'),{'fields':_0x593c5a('0x19dd'),'id':_0x1f653d['getCurrentUser']()[_0x593c5a('0x1946')]});}],'userProfileSection':[_0x527865('0x2401'),_0x527865('0x1600'),function(_0x1ea447,_0xc72b26){const _0x56cae9=_0x527865;return _0xc72b26[_0x56cae9('0x1b4e')]('admin')?null:_0x1ea447['resolve'](_0x56cae9('0x40'),{'fields':_0x56cae9('0x1348'),'userProfileId':_0xc72b26[_0x56cae9('0x14d4')]()[_0x56cae9('0x1946')],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':_0x527865('0x279')}),_0x16ec33[_0x527865('0x1b1a')]('app/main/apps/contactmanager');}angular[_0x566993('0x22c4')](_0x566993('0x20bc'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),'mdColorPicker',_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),_0x566993('0x8a3'),'mdPickers',_0x566993('0x1698'),_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),'angular-cron-jobs',_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),'angular.filter',_0x566993('0xaf8')])[_0x566993('0xea9')](_0x3e8cff)[_0x566993('0x1e65')](_0x566993('0x142f'),_0x120544)[_0x566993('0x1e65')](_0x566993('0x532'),_0x372802)['controller'](_0x566993('0x18ac'),_0x39dcf6)[_0x566993('0x1e65')](_0x566993('0xde'),_0x15d5a2)['controller'](_0x566993('0x10b3'),_0x12f37b)[_0x566993('0x1e65')]('CreateOrEditListDialogController',_0x512dba)['controller']('ListagentaddController',_0x56ef22)[_0x566993('0x1e65')]('ListCustomFieldsController',_0xddeb36)[_0x566993('0x1e65')](_0x566993('0x2498'),_0x5f3109)[_0x566993('0x1e65')](_0x566993('0x2107'),_0x49d256)[_0x566993('0x1e65')](_0x566993('0x22bb'),_0x5c3108)['controller'](_0x566993('0xfad'),_0x2ff9ea),_0x2efcdb['$inject']=[_0x566993('0x66f'),'$timeout',_0x566993('0x1fe5'),'$document',_0x566993('0x1d31'),_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600'),_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x11fa'),'dispositions'];function _0x2efcdb(_0x2e5971,_0x216289,_0x47c3c8,_0x13029b,_0x5a9bbb,_0x4bdcde,_0x47be77,_0x4b08b7,_0x69dedd,_0x320e85,_0x5ce9b6,_0x5703a1,_0x2dee1b,_0x52032c){const _0x3620af=_0x566993,_0x266186=this;_0x266186[_0x3620af('0x155f')]=_0x320e85[_0x3620af('0x14d4')](),_0x266186[_0x3620af('0x11fa')]=_0x2dee1b?_0x2dee1b:[],_0x266186[_0x3620af('0x9c6')]=_0x52032c,_0x266186['abandonedCalls']={'count':0x0,'rows':[]},_0x266186[_0x3620af('0x1319')]=![],_0x266186['refresh']=!![],_0x266186['userProfile']=_0x4b08b7,_0x266186['userProfileSection']=_0x69dedd&&_0x69dedd[_0x3620af('0x1a2f')]==0x1?_0x69dedd[_0x3620af('0x6aa')][0x0]:null,_0x266186[_0x3620af('0x1dc1')]=_0x320e85[_0x3620af('0xde6')](_0x266186['userProfileSection']?_0x266186[_0x3620af('0x170e')][_0x3620af('0x1dc1')]:null),_0x266186[_0x3620af('0xc49')]={'fields':_0x3620af('0x88f'),'type':_0x3620af('0x1755'),'queuecallerexitreason':_0x3620af('0x16ac')+','+_0x3620af('0x27e'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x266186[_0x3620af('0xf4a')]=_0x5e7747,_0x266186[_0x3620af('0x25c1')]=_0x3f6628,_0x266186[_0x3620af('0x2094')]=_0x22da94,_0x266186[_0x3620af('0x251e')]=_0x122393,_0x266186[_0x3620af('0x876')]=_0x23ac45,_0x266186[_0x3620af('0x10f3')]=_0x5642a1,_0x5ce9b6[_0x3620af('0x165f')](_0x3620af('0x14b9'),_0x266186[_0x3620af('0x876')]),_0x5ce9b6['on'](_0x3620af('0x20fa'),_0x266186[_0x3620af('0x10f3')]),_0x41be03();function _0x41be03(){const _0x136cc2=_0x3620af;let _0x42e556=_0x5a9bbb[_0x136cc2('0x1937')]['getItem']('motion2.realtime.abandoned.voice.abandonedCalls:'+_0x266186[_0x136cc2('0x155f')]['id']);if(_0x42e556)_0x42e556=JSON[_0x136cc2('0x1d5e')](_0x42e556),_0x42e556&&_0x42e556[_0x136cc2('0xc49')]&&(_0x266186['query']=_0x3c8d8a()[_0x136cc2('0x9ef')](_0x42e556[_0x136cc2('0xc49')],_0x3c8d8a()[_0x136cc2('0x2797')](_0x266186[_0x136cc2('0xc49')],[_0x136cc2('0xfbe'),_0x136cc2('0x3e'),'page'])),_0x266186['query']=_0x3c8d8a()[_0x136cc2('0x2797')](_0x266186[_0x136cc2('0xc49')],_0x136cc2('0x278d')));else{const _0x255b64={'$gte':_0x156524()()[_0x136cc2('0x2145')](_0x136cc2('0x70b'))[_0x136cc2('0xaf5')](0x0,!![])['format'](),'$lte':_0x156524()()['endOf'](_0x136cc2('0x70b'))[_0x136cc2('0xaf5')](0x0,!![])[_0x136cc2('0xddc')]()};_0x266186[_0x136cc2('0xc49')][_0x136cc2('0xda8')]=_0x255b64;}_0x320e85[_0x136cc2('0x1b4e')](_0x136cc2('0x79b'))?_0x47be77[_0x136cc2('0x166f')][_0x136cc2('0x115e')]({'id':_0x320e85[_0x136cc2('0x14d4')]()['id'],'fields':_0x136cc2('0xd52'),'channel':_0x136cc2('0x21a8'),'type':'inbound','nolimit':!![]})['$promise'][_0x136cc2('0x173b')](function(_0x334962){const _0x3c4c36=_0x136cc2;_0x266186[_0x3c4c36('0xeae')]=_0x334962||{'count':0x0,'rows':[]},_0x266186[_0x3c4c36('0xd5c')]=_0x3c8d8a()[_0x3c4c36('0xa88')](_0x3c8d8a()[_0x3c4c36('0x128')](_0x266186['queues']['rows'],_0x3c4c36('0x10ad')),_0x3c4c36('0x10ad'));})['catch'](function(_0x11aec8){console['error'](_0x11aec8);})[_0x136cc2('0xf25')](function(){const _0x14340b=_0x136cc2;_0x266186[_0x14340b('0x485')]=_0x55b927(),_0x266186['getAbandonedCalls']();}):_0x47be77[_0x136cc2('0x257b')][_0x136cc2('0x135b')]({'id':_0x266186[_0x136cc2('0x155f')][_0x136cc2('0x1946')],'section':_0x136cc2('0x32a'),'channel':_0x136cc2('0x21a8'),'type':'inbound','sort':_0x136cc2('0x1769'),'nolimit':!![]})[_0x136cc2('0x1964')][_0x136cc2('0x173b')](function(_0x424d9c){const _0xd338fe=_0x136cc2;_0x266186['queues']=_0x424d9c||{'count':0x0,'rows':[]},_0x266186[_0xd338fe('0xd5c')]=_0x3c8d8a()[_0xd338fe('0xa88')](_0x3c8d8a()[_0xd338fe('0x128')](_0x266186['queues'][_0xd338fe('0x6aa')],_0xd338fe('0x10ad')),_0xd338fe('0x10ad'));})[_0x136cc2('0x103c')](function(_0x3573ef){const _0x1c14a0=_0x136cc2;console[_0x1c14a0('0x15aa')](_0x3573ef);})[_0x136cc2('0xf25')](function(){const _0x3a7393=_0x136cc2;_0x266186[_0x3a7393('0x485')]=_0x55b927(),_0x266186[_0x3a7393('0xf4a')]();});}function _0x55b927(){const _0x5724b1=_0x3620af;return[{'name':_0x5724b1('0x1406'),'key':_0x5724b1('0xda8'),'type':_0x5724b1('0x22b6'),'label':'DASHBOARDS.SELECT_DATE'},{'name':'Agent','key':_0x5724b1('0xde7'),'type':_0x5724b1('0xc65'),'label':_0x5724b1('0x956'),'options':_0x266186['agents'][_0x5724b1('0x6aa')],'customOptions':[{'value':'\x27null\x27','translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x5724b1('0x47a')}]},{'name':'Campaign','key':_0x5724b1('0x172'),'type':_0x5724b1('0x1c68'),'label':_0x5724b1('0x6b'),'options':_0x266186[_0x5724b1('0xeae')][_0x5724b1('0x6aa')]}];}function _0x5e7747(){const _0x275977=_0x3620af;_0x266186[_0x275977('0x1d82')]=![],_0x266186[_0x275977('0xeae')][_0x275977('0x1a2f')]>0x0?(_0x266186[_0x275977('0xc49')][_0x275977('0x172')]=_0x266186[_0x275977('0xeae')][_0x275977('0x1a2f')]===0x1?_0x266186[_0x275977('0xeae')][_0x275977('0x6aa')][0x0]['name']:_0x266186['query']['queue'],_0x266186['query'][_0x275977('0x17f0')]=(_0x266186[_0x275977('0xc49')]['page']-0x1)*_0x266186['query'][_0x275977('0x3e')],_0x5a9bbb['localStorage']['setItem'](_0x275977('0xae9')+_0x266186[_0x275977('0x155f')]['id'],JSON[_0x275977('0x100b')]({'query':_0x3c8d8a()[_0x275977('0x2797')](_0x266186[_0x275977('0xc49')],_0x275977('0x172'))})),_0x266186[_0x275977('0x2219')]=_0x47be77['voiceQueueReport']['getVoiceQueuesReport'](_0x266186['query'],_0x461531)[_0x275977('0x1964')]):_0x461531(null);}function _0x461531(_0x22b760){const _0x3aa034=_0x3620af;_0x266186['abandonedCalls']=_0x22b760||{'count':0x0,'rows':[]},_0x266186[_0x3aa034('0x1d82')]=!![];}function _0x3f6628(){const _0x429d14=_0x3620af;_0x266186[_0x429d14('0x1319')]=![],_0x266186[_0x429d14('0xf4a')]();}function _0x23ac45(_0x410361){const _0x4ce26a=_0x3620af,_0x455abb=_0x4ce26a('0x1755');_0x410361&&_0x266186['queuesMap']&&_0x266186['query']['type']===_0x455abb&&_0x266186['queuesMap'][_0x410361[_0x4ce26a('0x172')]]&&(_0x266186[_0x4ce26a('0x1319')]=!![]);}function _0x5642a1(_0x153add){const _0xdf0c72=_0x3620af;if(_0x153add){const _0x5540a8=_0x3c8d8a()['findIndex'](_0x266186[_0xdf0c72('0x3f')][_0xdf0c72('0x6aa')],['id',_0x153add['id']]);_0x5540a8>=0x0&&_0x3c8d8a()[_0xdf0c72('0x9ef')](_0x266186['abandonedCalls']['rows'][_0x5540a8],_0x153add);}}function _0x22da94(_0x243a52,_0x39de09){const _0x11e796=_0x3620af;_0x243a52&&_0x47be77[_0x11e796('0x1c98')]['update']({'id':_0x243a52['id'],'lastAssignedTo':_0x39de09?_0x39de09[_0x11e796('0x10ad')]:null,'assigned':_0x39de09?!![]:![]})[_0x11e796('0x1964')]['catch'](function(_0x2d997b){const _0xc4744=_0x11e796;console[_0xc4744('0xe37')](_0x2d997b);});}function _0x122393(_0x5650dd){const _0x3634b9=_0x3620af;_0x47c3c8[_0x3634b9('0x1cb7')]({'controller':_0x3634b9('0xcd5'),'controllerAs':'vm','templateUrl':_0x3634b9('0x162c'),'parent':angular[_0x3634b9('0xb6d')](_0x13029b[_0x3634b9('0x1a5')]),'targetEvent':_0x5650dd,'resolve':{'globalDispositions':[_0x3634b9('0x2401'),function(_0x3fdfeb){const _0x27c772=_0x3634b9;return _0x3fdfeb[_0x27c772('0x155b')](_0x27c772('0x16c5'),{'MailAccountId':'null','FaxAccountId':_0x27c772('0x877'),'SmsAccountId':'null','WhatsappAccountId':_0x27c772('0x877'),'OpenchannelAccountId':_0x27c772('0x877'),'ChatWebsiteId':_0x27c772('0x877'),'ListId':_0x27c772('0x877')});}]},'locals':{'dispositions':_0x266186[_0x3634b9('0x9c6')],'call':_0x5650dd}})[_0x3634b9('0x173b')](function(_0x4f93bd){const _0x6fb5ae=_0x3634b9;if(_0x4f93bd){const _0x768a79={'id':_0x5650dd['id'],'disposition':_0x4f93bd[_0x6fb5ae('0x11fb')]||null,'secondDisposition':_0x4f93bd[_0x6fb5ae('0xd7')]||null,'thirdDisposition':_0x4f93bd[_0x6fb5ae('0x1f1a')]||null};_0x47be77[_0x6fb5ae('0x1c98')]['update'](_0x768a79)[_0x6fb5ae('0x1964')][_0x6fb5ae('0x103c')](function(_0x35ea1d){const _0x5c6a50=_0x6fb5ae;console[_0x5c6a50('0xe37')](_0x35ea1d);});}});}let _0x7b0542=!![],_0x432ff6=0x1;_0x2e5971[_0x3620af('0x1bdb')](_0x3620af('0x157b'),function(_0x4a4ec2,_0x13d039){const _0x3dbf64=_0x3620af;_0x7b0542?_0x216289(function(){_0x7b0542=![];}):(!_0x13d039&&(_0x432ff6=_0x266186[_0x3dbf64('0xc49')][_0x3dbf64('0x182e')]),_0x4a4ec2!==_0x13d039&&(_0x266186['query'][_0x3dbf64('0x182e')]=0x1),!_0x4a4ec2&&(_0x266186[_0x3dbf64('0xc49')]['page']=_0x432ff6),_0x266186[_0x3dbf64('0xf4a')]());}),_0x2e5971[_0x3620af('0xbf6')](_0x3620af('0x16d2'),function(){const _0x30bb20=_0x3620af;_0x5ce9b6[_0x30bb20('0x251c')](_0x30bb20('0x14b9')),_0x5ce9b6[_0x30bb20('0x251c')](_0x30bb20('0x20fa'));});}const _0x45f68a=_0x2efcdb;_0x21a661[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$q',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1537'),'pauses',_0x566993('0x11fa'),_0x566993('0x61d'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x1bf5'),_0x566993('0x257b'),'userProfileSection',_0x566993('0x1600'),_0x566993('0x1a29'),'$interval'];function _0x21a661(_0x5cd21e,_0x75bf02,_0x53aa6f,_0x135eb9,_0x4b3404,_0x3abb13,_0x39c605,_0x3615a9,_0x4d6196,_0x37fed3,_0x3abb93,_0x37d661,_0x23bc66,_0x2bb31b,_0x41207c,_0x599529,_0x56687b,_0x20aeb0){const _0x420507=_0x566993,_0x1975b4=this,_0x173cd8=[_0x420507('0x1def'),_0x420507('0xc7a'),_0x420507('0x13f3'),_0x420507('0x20a0'),_0x420507('0xd63'),_0x420507('0x20a0'),'internal',_0x420507('0x1e8'),_0x420507('0x988'),_0x420507('0x106'),_0x420507('0xf41'),_0x420507('0x2ea'),_0x420507('0x852'),_0x420507('0x13eb'),_0x420507('0x67c'),'chatCapacity',_0x420507('0xa4'),_0x420507('0xcc8'),_0x420507('0x784'),'whatsappCapacity','faxCapacity',_0x420507('0x1791'),_0x420507('0x24df'),_0x420507('0x1d75'),_0x420507('0x1ade'),'whatsappCurrentCapacity',_0x420507('0x114b'),'chatStatus','openchannelStatus',_0x420507('0x1120'),_0x420507('0x18e9'),'whatsappStatus',_0x420507('0x2735'),_0x420507('0x1b47'),_0x420507('0x2816'),_0x420507('0x205'),_0x420507('0x22a'),_0x420507('0x2176'),_0x420507('0x15b6'),'faxStatusTime','voiceStatusTime',_0x420507('0x172'),_0x420507('0x146b'),_0x420507('0x1fcd'),_0x420507('0x23ee'),'phoneBarEnableAutomaticScreenRecording'],_0x1e4a17=[_0x420507('0x988'),_0x420507('0x106'),'mailPause',_0x420507('0x2ea'),_0x420507('0x852'),_0x420507('0x13eb'),_0x420507('0x67c'),_0x420507('0xc7a')];_0x1975b4['currentUser']=_0x599529[_0x420507('0x14d4')](),_0x1975b4[_0x420507('0x150')]=[_0x420507('0x263b'),_0x420507('0x1d20'),'busy',_0x420507('0x1c3f'),_0x420507('0x273')],_0x1975b4[_0x420507('0x1d66')]=_0x39c605||{'count':0x0,'rows':[]},_0x1975b4[_0x420507('0x1a29')]=_0x56687b,_0x1975b4['userProfile']=_0x2bb31b,_0x1975b4[_0x420507('0x170e')]=_0x41207c&&_0x41207c[_0x420507('0x1a2f')]==0x1?_0x41207c[_0x420507('0x6aa')][0x0]:null,_0x1975b4[_0x420507('0x1dc1')]=_0x599529[_0x420507('0xde6')](_0x1975b4[_0x420507('0x170e')]?_0x1975b4[_0x420507('0x170e')][_0x420507('0x1dc1')]:null),_0x1975b4[_0x420507('0x11fa')]=_0x3615a9?_0x3c8d8a()[_0x420507('0x128')](_0x3615a9[_0x420507('0x6aa')]?_0x3615a9[_0x420507('0x6aa')]:[],'id'):{},_0x1975b4[_0x420507('0x61d')]=_0x4d6196?_0x3c8d8a()[_0x420507('0x128')](_0x4d6196[_0x420507('0x6aa')]?_0x4d6196[_0x420507('0x6aa')]:[],'id'):{},_0x1975b4[_0x420507('0x2cb')]={},_0x1975b4[_0x420507('0xda0')]=![],_0x1975b4[_0x420507('0x144a')]=[],_0x1975b4[_0x420507('0xa53')]={};for(const _0xda51b4 in _0x1975b4[_0x420507('0x11fa')]){typeof _0x1975b4[_0x420507('0x11fa')][_0xda51b4]!==_0x420507('0x6e5')&&(_0x1975b4[_0x420507('0x11fa')][_0xda51b4][_0x420507('0xb9c')]=!![]);}_0x1975b4[_0x420507('0xc49')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x1975b4['logout']=_0x32d600,_0x1975b4[_0x420507('0x1b81')]=_0xbda9b9,_0x1975b4['pause']=_0x439997,_0x1975b4[_0x420507('0x705')]=_0x2c1c4c,_0x1975b4[_0x420507('0x2230')]=_0x1347d8,_0x1975b4['getAgentStatus']=_0x58a8e8,_0x1975b4[_0x420507('0xc8c')]=_0x51f06f,_0x1975b4[_0x420507('0x1263')]=_0x25d42e,_0x1975b4[_0x420507('0xe1')]=_0x4a1ba5,_0x1975b4['isPartialPause']=_0x131fc2,_0x1975b4[_0x420507('0x689')]=_0x596ca1,_0x1975b4[_0x420507('0x2805')]=_0x3bb5b9,_0x1975b4[_0x420507('0x2535')]=_0x3addd7,_0x1975b4[_0x420507('0xc04')]=_0x12833f,_0x1975b4[_0x420507('0xa6f')]=_0x25bf93,_0x1975b4['screenRecording']=_0x5924f2,_0x3abb93['on']('user:save',_0x1975b4[_0x420507('0x689')]),_0x3abb93['on'](_0x420507('0x2048'),_0x1975b4[_0x420507('0x2805')]),_0x3abb93['on'](_0x420507('0x1bd5'),_0x1975b4['onConnect']),_0x3abb93['on'](_0x420507('0xa73'),_0x1975b4[_0x420507('0xa6f')]),_0x3addd7();let _0x24ec52=_0x20aeb0(function(){const _0x3b60c2=_0x420507;_0x1975b4[_0x3b60c2('0xda0')]&&(_0x1975b4[_0x3b60c2('0xda0')]=![],_0x3addd7());},0x3e7);function _0x3addd7(){const _0x314223=_0x420507;_0x1975b4[_0x314223('0xda0')]=![];const _0x2ab83e=_0x75bf02[_0x314223('0x112e')]();_0x1975b4[_0x314223('0x2219')]=_0x2ab83e[_0x314223('0x2219')],_0x1975b4['filteredAgents']=[],_0x1975b4[_0x314223('0x144a')]=[],_0x3c8d8a()['forIn'](_0x1975b4[_0x314223('0x11fa')],function(_0x47732f,_0x5a296e){const _0x2a6afe=_0x314223;_0x1975b4[_0x2a6afe('0x61d')][_0x5a296e]&&_0x3c8d8a()[_0x2a6afe('0x9ef')](_0x47732f,_0x3c8d8a()[_0x2a6afe('0x2114')](_0x3c8d8a()[_0x2a6afe('0x2797')](_0x1975b4[_0x2a6afe('0x61d')][_0x5a296e],_0x1e4a17),_0x173cd8)),_0x51f06f(_0x47732f),_0x47732f[_0x2a6afe('0xc7a')]?(_0x1975b4[_0x2a6afe('0x3b')][_0x2a6afe('0x18bb')](_0x47732f),_0x1975b4[_0x2a6afe('0xa53')][_0x47732f[_0x2a6afe('0x138c')]]=_0x5a296e):_0x47732f['globalStatusTime']=_0x3c8d8a()[_0x2a6afe('0x1acd')](_0x156524()()['format']('x'));});_0x1975b4[_0x314223('0xc49')][_0x314223('0x1f52')]&&_0x3c8d8a()[_0x314223('0x1a8b')](_0x1975b4[_0x314223('0x3b')],function(_0x336bf7){const _0x295038=_0x314223;return _0x336bf7[_0x295038('0xd7e')]!==_0x1975b4['query'][_0x295038('0x1f52')];});_0x1975b4['query']['pauseTypeFilter']&&_0x3c8d8a()[_0x314223('0x1a8b')](_0x1975b4[_0x314223('0x3b')],function(_0x36991e){const _0x30bc70=_0x314223;return _0x36991e[_0x30bc70('0xd63')]!==_0x1975b4[_0x30bc70('0xc49')][_0x30bc70('0x6a')];});_0x1975b4[_0x314223('0xc49')][_0x314223('0x278d')]&&_0x3c8d8a()[_0x314223('0x1a8b')](_0x1975b4['filteredAgents'],function(_0x3134b9){const _0x46f9f3=_0x314223;return _0x3134b9[_0x46f9f3('0x572')][_0x46f9f3('0x1e68')]()[_0x46f9f3('0x2087')](_0x1975b4[_0x46f9f3('0xc49')][_0x46f9f3('0x278d')][_0x46f9f3('0x1e68')]())<0x0;});_0x1975b4[_0x314223('0x3b')]=_0x2438e2(_0x1975b4[_0x314223('0x3b')]);const _0x432b77=(_0x1975b4['query'][_0x314223('0x182e')]-0x1)*_0x1975b4[_0x314223('0xc49')][_0x314223('0x3e')];_0x1975b4[_0x314223('0x2cb')]=_0x3c8d8a()['drop'](_0x1975b4[_0x314223('0x3b')],_0x432b77)[_0x314223('0x2456')](0x0,_0x1975b4[_0x314223('0xc49')][_0x314223('0x3e')]);for(let _0x1b1034=0x0;_0x1b1034<_0x1975b4[_0x314223('0x2cb')]['length'];_0x1b1034+=0x1){_0x1975b4['order'][_0x314223('0x18bb')](_0x1975b4[_0x314223('0x2cb')][_0x1b1034]['id']);}_0x2ab83e[_0x314223('0x155b')](),_0x1975b4[_0x314223('0xda0')]=!![];}function _0x596ca1(_0x432590){const _0x46b888=_0x420507;_0x1975b4[_0x46b888('0x11fa')][_0x432590['id']]&&(_0x3c8d8a()['merge'](_0x1975b4[_0x46b888('0x11fa')][_0x432590['id']],_0x3c8d8a()['pick'](_0x3c8d8a()['omit'](_0x432590,_0x1e4a17),_0x173cd8)),_0x3c8d8a()[_0x46b888('0x9ef')](_0x1975b4['rpcAgents'][_0x432590['id']],_0x3c8d8a()['pick'](_0x3c8d8a()['omit'](_0x432590,_0x1e4a17),_0x173cd8)),_0x51f06f(_0x1975b4[_0x46b888('0x11fa')][_0x432590['id']]));}function _0x3bb5b9(_0x54c350){const _0x693cfe=_0x420507;_0x1975b4[_0x693cfe('0x11fa')][_0x54c350['id']]&&(_0x3c8d8a()[_0x693cfe('0x9ef')](_0x1975b4['agents'][_0x54c350['id']],_0x3c8d8a()[_0x693cfe('0x2114')](_0x54c350,_0x173cd8)),_0x3c8d8a()['merge'](_0x1975b4[_0x693cfe('0x61d')][_0x54c350['id']],_0x3c8d8a()[_0x693cfe('0x2114')](_0x54c350,_0x173cd8)),_0x54c350[_0x693cfe('0x20a0')]&&(_0x1975b4[_0x693cfe('0x11fa')][_0x54c350['id']][_0x693cfe('0x1cd8')]=_0x54c350['lastPauseAt'],_0x1975b4[_0x693cfe('0x61d')][_0x54c350['id']][_0x693cfe('0x1cd8')]=_0x54c350[_0x693cfe('0x20a0')]),_0x51f06f(_0x1975b4['agents'][_0x54c350['id']]));}function _0x12833f(_0x53fcf0){const _0xb739d5=_0x420507;_0x1975b4[_0xb739d5('0x11fa')][_0x1975b4['agentInternal'][_0x53fcf0[_0xb739d5('0x203b')]]]&&(_0x3c8d8a()[_0xb739d5('0x9ef')](_0x1975b4['agents'][_0x1975b4[_0xb739d5('0xa53')][_0x53fcf0[_0xb739d5('0x203b')]]],_0x3c8d8a()[_0xb739d5('0x2114')](_0x53fcf0,[_0xb739d5('0x172'),_0xb739d5('0x146b')])),_0x3c8d8a()[_0xb739d5('0x9ef')](_0x1975b4[_0xb739d5('0x61d')][_0x1975b4[_0xb739d5('0xa53')][_0x53fcf0['destaccountcode']]],_0x3c8d8a()['pick'](_0x53fcf0,[_0xb739d5('0x172'),_0xb739d5('0x146b')])));}function _0x25bf93(_0x15a3a3){const _0x16d6c2=_0x420507;_0x1975b4[_0x16d6c2('0x11fa')][_0x1975b4[_0x16d6c2('0xa53')][_0x15a3a3[_0x16d6c2('0x203b')]]]&&(_0x1975b4[_0x16d6c2('0x11fa')][_0x1975b4['agentInternal'][_0x15a3a3[_0x16d6c2('0x203b')]]]=_0x3c8d8a()[_0x16d6c2('0x2797')](_0x1975b4['agents'][_0x1975b4[_0x16d6c2('0xa53')][_0x15a3a3['destaccountcode']]],[_0x16d6c2('0x172'),_0x16d6c2('0x146b')]),_0x1975b4[_0x16d6c2('0x61d')][_0x1975b4[_0x16d6c2('0xa53')][_0x15a3a3['destaccountcode']]]=_0x3c8d8a()[_0x16d6c2('0x2797')](_0x1975b4['rpcAgents'][_0x1975b4[_0x16d6c2('0xa53')][_0x15a3a3['destaccountcode']]],[_0x16d6c2('0x172'),_0x16d6c2('0x146b')]));}function _0x32d600(_0x55b648){const _0x2bdd95=_0x420507;return _0x37fed3[_0x2bdd95('0x166f')][_0x2bdd95('0x1037')]({'id':_0x55b648['id'],'device':'realtime','agent_id':_0x55b648['id'],'agent_name':_0x55b648[_0x2bdd95('0x10ad')]})['$promise'][_0x2bdd95('0x173b')](function(){const _0x1134eb=_0x2bdd95;_0x37d661[_0x1134eb('0xdfe')]({'title':'Agent\x20logout','msg':_0x55b648['fullname']+'\x20\x20properly\x20logout'}),_0x1975b4[_0x1134eb('0x11fa')][_0x55b648['id']]&&(_0x1975b4[_0x1134eb('0x11fa')][_0x55b648['id']][_0x1134eb('0xc7a')]=![]),_0x1975b4[_0x1134eb('0x61d')][_0x55b648['id']]&&(_0x1975b4['rpcAgents'][_0x55b648['id']][_0x1134eb('0xc7a')]=![]),_0x3addd7();})[_0x2bdd95('0x103c')](function(_0x18e5bf){const _0x3b8d49=_0x2bdd95;_0x37d661['error']({'title':_0x18e5bf[_0x3b8d49('0x276f')]?'API:'+_0x18e5bf['status']+_0x3b8d49('0x160c')+_0x18e5bf[_0x3b8d49('0x2696')]:'api.staff.save','msg':_0x18e5bf[_0x3b8d49('0x1e07')]?JSON[_0x3b8d49('0x100b')](_0x18e5bf[_0x3b8d49('0x1e07')][_0x3b8d49('0x67f')]):_0x18e5bf[_0x3b8d49('0x1b75')]()});});}function _0x439997(_0x1fa670,_0x447725){const _0x1277a7=_0x420507;return _0x37fed3[_0x1277a7('0x166f')]['pause']({'id':_0x1fa670['id'],'type':_0x447725})[_0x1277a7('0x1964')][_0x1277a7('0x173b')](function(_0x1eb2c5){const _0x3a9ed2=_0x1277a7;_0x1975b4[_0x3a9ed2('0x11fa')][_0x1fa670['id']]&&_0x3c8d8a()[_0x3a9ed2('0x9ef')](_0x1975b4[_0x3a9ed2('0x11fa')][_0x1fa670['id']],_0x3c8d8a()[_0x3a9ed2('0x2114')](_0x1eb2c5,_0x173cd8)),_0x1975b4[_0x3a9ed2('0x61d')][_0x1fa670['id']]&&_0x3c8d8a()[_0x3a9ed2('0x9ef')](_0x1975b4[_0x3a9ed2('0x61d')][_0x1fa670['id']],_0x3c8d8a()[_0x3a9ed2('0x2114')](_0x1eb2c5,_0x173cd8)),_0x51f06f(_0x1975b4[_0x3a9ed2('0x11fa')][_0x1fa670['id']]);})[_0x1277a7('0x103c')](function(_0x321df3){const _0x1fabb0=_0x1277a7;_0x37d661[_0x1fabb0('0x15aa')]({'title':_0x321df3['status']?_0x1fabb0('0x137')+_0x321df3[_0x1fabb0('0x276f')]+_0x1fabb0('0x160c')+_0x321df3[_0x1fabb0('0x2696')]:_0x1fabb0('0x1e36'),'msg':_0x321df3[_0x1fabb0('0x1e07')]?JSON['stringify'](_0x321df3[_0x1fabb0('0x1e07')]['message']):_0x321df3[_0x1fabb0('0x1b75')]()});});}function _0x2c1c4c(_0x5c8f0f){const _0x3a6ce9=_0x420507;return _0x37fed3[_0x3a6ce9('0x166f')][_0x3a6ce9('0x9da')]({'id':_0x5c8f0f['id']})[_0x3a6ce9('0x1964')]['then'](function(_0x1782c5){const _0x169344=_0x3a6ce9;_0x1975b4[_0x169344('0x11fa')][_0x5c8f0f['id']]&&_0x3c8d8a()[_0x169344('0x9ef')](_0x1975b4[_0x169344('0x11fa')][_0x5c8f0f['id']],_0x3c8d8a()[_0x169344('0x2114')](_0x1782c5,_0x173cd8)),_0x1975b4[_0x169344('0x61d')][_0x5c8f0f['id']]&&_0x3c8d8a()['merge'](_0x1975b4[_0x169344('0x61d')][_0x5c8f0f['id']],_0x3c8d8a()[_0x169344('0x2114')](_0x1782c5,_0x173cd8)),_0x51f06f(_0x1975b4[_0x169344('0x11fa')][_0x5c8f0f['id']]);})['catch'](function(_0x30c9f1){const _0x2f17f6=_0x3a6ce9;_0x37d661[_0x2f17f6('0x15aa')]({'title':_0x30c9f1['status']?'API:'+_0x30c9f1[_0x2f17f6('0x276f')]+_0x2f17f6('0x160c')+_0x30c9f1[_0x2f17f6('0x2696')]:'api.staff.save','msg':_0x30c9f1[_0x2f17f6('0x1e07')]?JSON[_0x2f17f6('0x100b')](_0x30c9f1[_0x2f17f6('0x1e07')][_0x2f17f6('0x67f')]):_0x30c9f1[_0x2f17f6('0x1b75')]()});});}function _0x1347d8(_0x3aafd5){const _0x4504ba=_0x420507;_0x135eb9[_0x4504ba('0x1cb7')](_0x135eb9[_0x4504ba('0x5a4')]()['clickOutsideToClose'](!![])[_0x4504ba('0x20d6')](_0x4504ba('0x526'))[_0x4504ba('0xf8b')](_0x4504ba('0x22f0'))['ok']('Ok')[_0x4504ba('0x21de')](_0x3aafd5));}function _0xbda9b9(_0x5d5a7f,_0x4261af){const _0x5060b6=_0x420507;_0x135eb9['show']({'controller':_0x5060b6('0xfba'),'controllerAs':'vm','templateUrl':_0x66272d,'parent':angular[_0x5060b6('0xb6d')](_0x4b3404['body']),'targetEvent':_0x4261af,'clickOutsideToClose':!![],'locals':{'agent':_0x5d5a7f,'agents':[],'channel':_0x5060b6('0x21a8'),'direction':'inbound','crudPermissions':_0x1975b4[_0x5060b6('0x1dc1')]}});}function _0x25d42e(_0x315f0b){const _0x1e56ee=_0x420507;return _0x315f0b===_0x1e56ee('0x1751')||_0x315f0b===_0x1e56ee('0xb3e');}function _0x4a1ba5(_0x1259c1){return _0x1259c1==='pause';}function _0x131fc2(_0x44df68){const _0x3f9a83=_0x420507;return _0x44df68===_0x3f9a83('0xb3e');}function _0x4f0f93(_0x435a84){const _0x1fe980=_0x420507;return _0x435a84===_0x1fe980('0x23b')||_0x435a84===_0x1fe980('0x1b77')||_0x435a84===_0x1fe980('0x1d8e')||_0x435a84===_0x1fe980('0x263b')||_0x3c8d8a()['isNil'](_0x435a84);}function _0x58a8e8(_0x5a4153,_0x1aa1fe){const _0xda12bc=_0x420507;if(_0x1aa1fe==='voice'){if(_0x5a4153[_0x1aa1fe+'Status']!==_0xda12bc('0x23b'))return _0x5a4153[_0x1aa1fe+_0xda12bc('0xef8')];if(_0x5a4153[_0x1aa1fe+'Pause'])return _0x5a4153[_0x1aa1fe+_0xda12bc('0xef8')]=_0xda12bc('0x1751'),_0xda12bc('0x1751');return _0xda12bc('0x23b');}else{if(_0x5a4153[_0x1aa1fe+_0xda12bc('0x2408')])return _0x5a4153[_0x1aa1fe+_0xda12bc('0xef8')]=_0xda12bc('0x1751'),_0xda12bc('0x1751');return _0x5a4153[_0x1aa1fe+'Status'];}}function _0x51f06f(_0x1e8a0b){const _0x3774ee=_0x420507;let _0x1d3630=_0x3774ee('0x1b77');if(_0x3c8d8a()[_0x3774ee('0x3ff')]([_0x58a8e8(_0x1e8a0b,'voice'),_0x58a8e8(_0x1e8a0b,'chat'),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x108a')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0xab2')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x1a8f')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x245')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x16d'))],_0x25d42e))_0x1d3630=_0x3774ee('0x1751');else{if(_0x3c8d8a()[_0x3774ee('0x1ec')]([_0x58a8e8(_0x1e8a0b,_0x3774ee('0x21a8')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x8c5')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x108a')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0xab2')),_0x58a8e8(_0x1e8a0b,'sms'),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x245')),_0x58a8e8(_0x1e8a0b,'fax')],_0x25d42e))_0x1d3630='*pause';else _0x3c8d8a()[_0x3774ee('0x3ff')]([_0x58a8e8(_0x1e8a0b,_0x3774ee('0x21a8')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x8c5')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x108a')),_0x58a8e8(_0x1e8a0b,'openchannel'),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x1a8f')),_0x58a8e8(_0x1e8a0b,_0x3774ee('0x245')),_0x58a8e8(_0x1e8a0b,'fax')],_0x4f0f93)?_0x1d3630='idle':_0x1d3630=_0x3774ee('0xe2b');}_0x1e8a0b[_0x3774ee('0xd7e')]!==_0x1d3630&&(_0x1e8a0b[_0x3774ee('0xd7e')]=_0x1d3630,_0x1e8a0b[_0x3774ee('0xb9c')]?(_0x1e8a0b[_0x3774ee('0xb9c')]=![],_0x1e8a0b[_0x3774ee('0x1cd8')]=_0x25d42e(_0x1d3630)?_0x3c8d8a()[_0x3774ee('0x1acd')](_0x156524()(_0x1e8a0b['lastPauseAt'])[_0x3774ee('0xddc')]('x')):_0x3c8d8a()[_0x3774ee('0x18be')]([_0x1e8a0b[_0x3774ee('0x1c89')],_0x1e8a0b['chatStatusTime'],_0x1e8a0b[_0x3774ee('0x22a')],_0x1e8a0b[_0x3774ee('0x2176')],_0x1e8a0b['whatsappStatusTime'],_0x1e8a0b['openchannelStatusTime'],_0x1e8a0b[_0x3774ee('0xbc9')]])):_0x1e8a0b[_0x3774ee('0x1cd8')]=_0x3c8d8a()[_0x3774ee('0x1acd')](_0x156524()()['format']('x')));}function _0x2438e2(_0x196169){const _0x266618=_0x420507,_0x2d4ce7=_0x3c8d8a()[_0x266618('0x17b2')](_0x1975b4[_0x266618('0xc49')][_0x266618('0x144a')],'-')?_0x266618('0x231d'):_0x266618('0xcc1');return _0x3c8d8a()[_0x266618('0x1d16')](_0x196169,[_0x1975b4[_0x266618('0xc49')][_0x266618('0x144a')][_0x266618('0x166c')]('-','')],[_0x2d4ce7]);}function _0x38b9c6(){const _0x479d14=_0x420507;_0x24ec52&&(_0x20aeb0[_0x479d14('0x1e1f')](_0x24ec52),_0x24ec52=null);}function _0x5924f2(_0x29c6f5,_0x120079){const _0x2c0423=_0x420507;return _0x37fed3[_0x2c0423('0x166f')]['update']({'id':_0x29c6f5['id']},{'screenrecording':_0x120079})[_0x2c0423('0x1964')][_0x2c0423('0x103c')](function(_0x263407){const _0x548ae2=_0x2c0423;_0x37d661[_0x548ae2('0x15aa')]({'title':_0x263407['status']?'API:'+_0x263407['status']+_0x548ae2('0x160c')+_0x263407[_0x548ae2('0x2696')]:'api.user.update','msg':_0x263407['data']?JSON[_0x548ae2('0x100b')](_0x263407[_0x548ae2('0x1e07')][_0x548ae2('0x67f')]):_0x263407[_0x548ae2('0x1b75')]()});});}_0x5cd21e[_0x420507('0xbf6')]('$destroy',function(){const _0x225f78=_0x420507;_0x3abb93[_0x225f78('0x251c')]('user:save'),_0x3abb93[_0x225f78('0x251c')](_0x225f78('0x2048')),_0x3abb93[_0x225f78('0x251c')](_0x225f78('0x1bd5')),_0x3abb93[_0x225f78('0x251c')](_0x225f78('0xa73')),_0x38b9c6();});}const _0x1a885a=_0x21a661;_0x13033a[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),'api',_0x566993('0x2fc'),_0x566993('0x590'),_0x566993('0x1bf5')];function _0x13033a(_0x45ce3c,_0x379457,_0x138df8,_0x97c222,_0x2db160,_0x5324c1){const _0x5a4adb=_0x566993,_0x10be29=this;_0x10be29[_0x5a4adb('0x23d5')]=_0x2db160||{'rows':[],'count':0x0},_0x10be29['query']={'limit':0xa,'page':0x1},_0x10be29[_0x5a4adb('0x5d8')]=_0x5324c1[_0x5a4adb('0x2077')],_0x97c222['on']('voice_outbound_channel:save',_0x10be29[_0x5a4adb('0x689')]),_0x97c222['on'](_0x5a4adb('0x815'),_0x10be29[_0x5a4adb('0x261')]);function _0x2ca146(_0x382651){const _0x270469=_0x5a4adb,_0x144ddb=_0x3c8d8a()[_0x270469('0x18ab')](_0x10be29[_0x270469('0x23d5')][_0x270469('0x6aa')],{'channel':_0x382651[_0x270469('0x1134')]});_0x382651['channelstatedesc']=_0x382651[_0x270469('0xf3b')]?'up':_0x270469('0x23cf');if(_0x144ddb)_0x3c8d8a()[_0x270469('0x9ef')](_0x144ddb,_0x382651);else _0x382651[_0x270469('0x1134')]&&_0x10be29[_0x270469('0x23d5')]['rows'][_0x270469('0x18bb')](_0x382651);}function _0xc55c(_0x3e17b0){const _0x2f8c71=_0x5a4adb,_0x53665f=_0x3c8d8a()[_0x2f8c71('0x26c3')](_0x10be29['calls'][_0x2f8c71('0x6aa')],{'channel':_0x3e17b0['channel']});_0x53665f>=0x0&&(_0x10be29['calls']['rows'][_0x53665f][_0x2f8c71('0x276f')]=_0x2f8c71('0x13cc')),_0x379457(function(){const _0x36271f=_0x2f8c71;_0x10be29[_0x36271f('0x23d5')][_0x36271f('0x6aa')][_0x36271f('0x553')](_0x53665f,0x1);},0x1388);}_0x45ce3c['$on']('$destroy',function(){const _0x2074d2=_0x5a4adb;_0x97c222[_0x2074d2('0x251c')](_0x2074d2('0x20ae')),_0x97c222[_0x2074d2('0x251c')](_0x2074d2('0x815'));}),_0x10be29[_0x5a4adb('0x689')]=_0x2ca146,_0x10be29[_0x5a4adb('0x261')]=_0xc55c;}const _0x285d6e=_0x13033a;_0x3fc775[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x11fa'),_0x566993('0xeae'),_0x566993('0x488'),_0x566993('0xbd4'),'socket','helperClasses','toasty',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600')];function _0x3fc775(_0x74a65a,_0x2389d5,_0x19e636,_0x514ef2,_0x3337da,_0x4a1935,_0xa9a02d,_0x15784e,_0x456901,_0x476287,_0x41c9ea,_0x5eb827,_0x40b0d){const _0x416b0c=_0x566993,_0x4757cf=this;_0x4757cf[_0x416b0c('0x155f')]=_0x40b0d['getCurrentUser'](),_0x4757cf[_0x416b0c('0x11fa')]=_0x514ef2||{'count':0x0,'rows':[]},_0x4757cf['queues']=_0x3337da?_0x3c8d8a()[_0x416b0c('0x128')](_0x3337da[_0x416b0c('0x6aa')]?_0x3337da[_0x416b0c('0x6aa')]:[],_0x416b0c('0x10ad')):{},_0x4757cf[_0x416b0c('0xb08')]=_0x4a1935?_0x3c8d8a()[_0x416b0c('0x128')](_0x4a1935[_0x416b0c('0x6aa')]?_0x3c8d8a()[_0x416b0c('0x278d')](_0x4a1935[_0x416b0c('0x6aa')],{'type':_0x416b0c('0x1755')}):[],'uniqueid'):{},_0x4757cf[_0x416b0c('0x488')]={},_0x4757cf[_0x416b0c('0x257b')]=_0x41c9ea,_0x4757cf['userProfileSection']=_0x5eb827&&_0x5eb827['count']==0x1?_0x5eb827['rows'][0x0]:null,_0x4757cf[_0x416b0c('0x1dc1')]=_0x40b0d[_0x416b0c('0xde6')](_0x4757cf[_0x416b0c('0x170e')]?_0x4757cf[_0x416b0c('0x170e')][_0x416b0c('0x1dc1')]:null),_0x4757cf[_0x416b0c('0x15f6')]={'limit':0xa,'page':0x1},_0x4757cf[_0x416b0c('0x12c')]=_0x387769,_0x4757cf['$onInit']=_0x31d32f,_0x4757cf[_0x416b0c('0x689')]=_0x18758c,_0x4757cf[_0x416b0c('0x261')]=_0x2bf3a1,_0x4757cf[_0x416b0c('0x13cc')]=_0x5da0e5,_0x4757cf[_0x416b0c('0xee7')]=_0x346367,_0x4757cf[_0x416b0c('0x115d')]=_0x2aff01,_0x15784e['on'](_0x416b0c('0xf10'),_0x4757cf[_0x416b0c('0x689')]),_0x15784e['on'](_0x416b0c('0x1039'),_0x4757cf[_0x416b0c('0x261')]);function _0x387769(_0x49cb72){const _0x435cfd=_0x416b0c;return _0x3c8d8a()[_0x435cfd('0x2361')](_0x49cb72);}function _0x31d32f(){const _0x3789e7=_0x416b0c;_0x3c8d8a()[_0x3789e7('0x33d')](_0x4757cf[_0x3789e7('0xb08')],function(_0x5ea86f,_0x1f8605){const _0x178d15=_0x3789e7;_0x3c8d8a()[_0x178d15('0x18ab')](_0x4757cf[_0x178d15('0xeae')],{'name':_0x5ea86f[_0x178d15('0x10ad')]})&&(_0x4757cf[_0x178d15('0x488')][_0x1f8605]=_0x5ea86f);});}function _0x18758c(_0xa07823){const _0x497067=_0x416b0c;_0xa07823[_0x497067('0x1810')]==='inbound'&&(_0x3c8d8a()[_0x497067('0x18ab')](_0x4757cf[_0x497067('0xeae')],{'name':_0xa07823[_0x497067('0x10ad')]})&&(_0x4757cf['rpcVoiceQueuesChannels'][_0xa07823['uniqueid']]=_0xa07823));}function _0x2bf3a1(_0x5d1deb){const _0x180adc=_0x416b0c;_0x4757cf[_0x180adc('0x488')][_0x5d1deb[_0x180adc('0x207c')]]&&delete _0x4757cf['rpcVoiceQueuesChannels'][_0x5d1deb[_0x180adc('0x207c')]];}function _0x5da0e5(_0xcfd831){const _0x3dfaf0=_0x416b0c;return _0xa9a02d[_0x3dfaf0('0x48c')][_0x3dfaf0('0x464')]({'uniqueid':_0xcfd831})['$promise'][_0x3dfaf0('0x173b')](function(_0x47fbbd){const _0x52aa0d=_0x3dfaf0;_0x476287[_0x52aa0d('0xdfe')]({'title':_0x52aa0d('0x1df1')+_0xcfd831+_0x52aa0d('0x17ae'),'msg':_0x47fbbd['message']||''});})[_0x3dfaf0('0x103c')](function(_0x1cd226){const _0x25c623=_0x3dfaf0;_0x476287[_0x25c623('0x15aa')]({'title':_0x1cd226[_0x25c623('0x276f')]+'\x20-\x20'+_0x1cd226[_0x25c623('0x2696')],'msg':JSON[_0x25c623('0x100b')](_0x1cd226[_0x25c623('0x1e07')])||_0x1cd226[_0x25c623('0x67f')][_0x25c623('0x2259')]('\x20')});});}function _0x346367(_0x4345c6,_0x107f5a,_0x17373b){const _0x690917=_0x416b0c;return _0xa9a02d[_0x690917('0x48c')]['getVoiceQueuesChannelRedirect']({'uniqueid':_0x4345c6,'exten':_0x107f5a,'context':_0x17373b})[_0x690917('0x1964')]['then'](function(_0x3ff304){const _0x373875=_0x690917;_0x476287['success']({'title':_0x373875('0x1df1')+_0x4345c6+_0x373875('0x89f'),'msg':_0x3ff304[_0x373875('0x67f')]||''});})['catch'](function(_0x37f2f3){const _0x4e0088=_0x690917;_0x476287[_0x4e0088('0x15aa')]({'title':_0x37f2f3[_0x4e0088('0x276f')]+_0x4e0088('0x160c')+_0x37f2f3[_0x4e0088('0x2696')],'msg':JSON[_0x4e0088('0x100b')](_0x37f2f3[_0x4e0088('0x1e07')])||_0x37f2f3[_0x4e0088('0x67f')][_0x4e0088('0x2259')]('\x20')});});}function _0x2aff01(_0x1c231b,_0x2ab77f){const _0x192807=_0x416b0c,_0x341748=_0x19e636[_0x192807('0x1b38')]()['title'](_0x192807('0xa24'))[_0x192807('0x113b')]('Number')['targetEvent'](_0x1c231b)['ok']('Ok')[_0x192807('0x1e1f')](_0x192807('0x1d4e'));return _0x19e636[_0x192807('0x1cb7')](_0x341748)[_0x192807('0x173b')](function(_0x5969c6){const _0x23438c=_0x192807;return _0xa9a02d[_0x23438c('0x48c')]['getVoiceQueuesChannelRedirect']({'uniqueid':_0x2ab77f,'exten':_0x5969c6})[_0x23438c('0x1964')];})['then'](function(_0x51fd97){const _0x55b361=_0x192807;_0x476287[_0x55b361('0xdfe')]({'title':'Channel\x20'+_0x2ab77f+_0x55b361('0x89f'),'msg':_0x51fd97[_0x55b361('0x67f')]||''});})[_0x192807('0x103c')](function(_0x4920f5){const _0x3a0abe=_0x192807;_0x476287['error']({'title':_0x4920f5[_0x3a0abe('0x276f')]+'\x20-\x20'+_0x4920f5[_0x3a0abe('0x2696')],'msg':JSON[_0x3a0abe('0x100b')](_0x4920f5[_0x3a0abe('0x1e07')])||_0x4920f5[_0x3a0abe('0x67f')][_0x3a0abe('0x2259')]('\x20')});});}_0x74a65a[_0x416b0c('0xbf6')](_0x416b0c('0x16d2'),function(){const _0x26ec95=_0x416b0c;_0x15784e[_0x26ec95('0x251c')](_0x26ec95('0xf10')),_0x15784e['removeAllListeners']('voice_queue_channel:remove');});}const _0x3bc85f=_0x3fc775;_0x259396['$inject']=['$scope','$timeout',_0x566993('0x1b13'),_0x566993('0xeae'),_0x566993('0x2156'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600')];function _0x259396(_0x14a50f,_0x2e1cfe,_0x2c72ba,_0x2ed4a5,_0xfe6788,_0x5d257a,_0x2fcb3a,_0x590df9,_0x474d21,_0x234f1e){const _0x2f8784=_0x566993,_0x2a7ce5=this,_0xcb999b=['total','answered',_0x2f8784('0x50c'),_0x2f8784('0x3b9'),_0x2f8784('0x1c39'),_0x2f8784('0x186e'),'sumBillable'];_0x2a7ce5['count']=_0x2ed4a5['count'],_0x2a7ce5[_0x2f8784('0xeae')]=_0x2ed4a5?_0x3c8d8a()[_0x2f8784('0x128')](_0x2ed4a5['rows']?_0x2ed4a5['rows']:[],'id'):{},_0x2a7ce5[_0x2f8784('0x2156')]=_0xfe6788?_0x3c8d8a()['keyBy'](_0xfe6788[_0x2f8784('0x6aa')]?_0xfe6788[_0x2f8784('0x6aa')]:[],'id'):{},_0x2a7ce5[_0x2f8784('0x257b')]=_0x590df9,_0x2a7ce5[_0x2f8784('0x170e')]=_0x474d21&&_0x474d21[_0x2f8784('0x1a2f')]==0x1?_0x474d21[_0x2f8784('0x6aa')][0x0]:null,_0x2a7ce5[_0x2f8784('0x1dc1')]=_0x234f1e['parseCrudPermissions'](_0x2a7ce5[_0x2f8784('0x170e')]?_0x2a7ce5[_0x2f8784('0x170e')][_0x2f8784('0x1dc1')]:null);_0x234f1e[_0x2f8784('0x1b4e')](_0x2f8784('0x79b'))?_0x2a7ce5[_0x2f8784('0xc49')]={'type':_0x2f8784('0x1755'),'fields':_0x2f8784('0xd52'),'sort':_0x2f8784('0x1769'),'limit':0xa,'page':0x1}:_0x2a7ce5[_0x2f8784('0xc49')]={'id':_0x234f1e[_0x2f8784('0x14d4')]()['id'],'channel':_0x2f8784('0x21a8'),'type':_0x2f8784('0x1755'),'fields':_0x2f8784('0xd52'),'sort':_0x2f8784('0x1769'),'limit':0xa,'page':0x1};_0x2a7ce5[_0x2f8784('0xdfe')]=_0x366cd6,_0x2a7ce5[_0x2f8784('0x115e')]=_0x35a325,_0x2a7ce5[_0x2f8784('0x689')]=_0x51816c,_0x2a7ce5[_0x2f8784('0x2444')]=_0x1fa15a,_0x2fcb3a[_0x2f8784('0x165f')]('voice_queue:save',_0x2a7ce5['onSave']),_0x2a7ce5[_0x2f8784('0x55a')]=_0x2c72ba(function(){},0x3e7);function _0x1fa15a(){_0x3c8d8a()['forIn'](_0x2a7ce5['queues'],function(_0x22b8f4,_0x1af399){const _0x467edc=a0_0xde5e;_0x2a7ce5[_0x467edc('0x2156')][_0x1af399]&&_0x3c8d8a()[_0x467edc('0x9ef')](_0x22b8f4,_0x3c8d8a()[_0x467edc('0x2114')](_0x2a7ce5[_0x467edc('0x2156')][_0x1af399],_0xcb999b));});}function _0x51816c(_0x424335){const _0x37b625=_0x2f8784;_0x2a7ce5[_0x37b625('0xeae')][_0x424335['id']]&&_0x3c8d8a()['merge'](_0x2a7ce5[_0x37b625('0xeae')][_0x424335['id']],_0x3c8d8a()['pick'](_0x424335,_0xcb999b));}let _0x3cb3c7=!![],_0x3daf36=0x1;_0x14a50f[_0x2f8784('0x1bdb')](_0x2f8784('0x157b'),function(_0x3b42d6,_0x13d75f){const _0x5567aa=_0x2f8784;_0x3cb3c7?_0x2e1cfe(function(){_0x3cb3c7=![];}):(!_0x13d75f&&(_0x3daf36=_0x2a7ce5[_0x5567aa('0xc49')][_0x5567aa('0x182e')]),_0x3b42d6!==_0x13d75f&&(_0x2a7ce5[_0x5567aa('0xc49')][_0x5567aa('0x182e')]=0x1),!_0x3b42d6&&(_0x2a7ce5[_0x5567aa('0xc49')][_0x5567aa('0x182e')]=_0x3daf36),_0x2a7ce5[_0x5567aa('0x115e')]());});function _0x366cd6(_0x4a3c1c){const _0x11e1f9=_0x2f8784;_0x2a7ce5[_0x11e1f9('0x1a2f')]=_0x4a3c1c[_0x11e1f9('0x1a2f')],_0x2a7ce5[_0x11e1f9('0xeae')]=_0x4a3c1c?_0x3c8d8a()[_0x11e1f9('0x128')](_0x4a3c1c[_0x11e1f9('0x6aa')]?_0x4a3c1c[_0x11e1f9('0x6aa')]:[],'id'):{},_0x1fa15a();}function _0x35a325(){const _0xb91e39=_0x2f8784;_0x2a7ce5['query'][_0xb91e39('0x17f0')]=(_0x2a7ce5[_0xb91e39('0xc49')]['page']-0x1)*_0x2a7ce5['query'][_0xb91e39('0x3e')],_0x234f1e[_0xb91e39('0x1b4e')]('admin')?_0x2a7ce5['promise']=_0x5d257a[_0xb91e39('0x1282')][_0xb91e39('0x1d97')](_0x2a7ce5[_0xb91e39('0xc49')],_0x366cd6)[_0xb91e39('0x1964')]:(_0x2a7ce5[_0xb91e39('0xc49')]['id']=_0x2a7ce5[_0xb91e39('0x257b')]['id'],_0x2a7ce5['query'][_0xb91e39('0x17c9')]='VoiceQueues',_0x2a7ce5[_0xb91e39('0x2219')]=_0x5d257a[_0xb91e39('0x257b')][_0xb91e39('0x135b')](_0x2a7ce5[_0xb91e39('0xc49')],_0x366cd6)[_0xb91e39('0x1964')]);}_0x14a50f['$on'](_0x2f8784('0x16d2'),function(){const _0x5307b6=_0x2f8784;_0x2fcb3a[_0x5307b6('0x251c')](_0x5307b6('0x1414')),_0x2a7ce5[_0x5307b6('0x55a')]&&_0x2c72ba[_0x5307b6('0x1e1f')](_0x2a7ce5['interval']);});}const _0x370dec=_0x259396,_0x4bfbe4=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog.html',_0x1f52f8=_0x21a6a1['p']+_0x566993('0x186');_0xb97058[_0x566993('0x17bb')]=['$scope',_0x566993('0x24b5'),_0x566993('0x1fe5'),'$q',_0x566993('0x1b82'),'$interval',_0x566993('0xeae'),_0x566993('0x2156'),_0x566993('0xbd4'),_0x566993('0x2fc'),'toasty','userProfile',_0x566993('0x170e'),'Auth'];function _0xb97058(_0x2ab4f7,_0x4787f0,_0x209813,_0x525986,_0x2e6d98,_0x418682,_0x5435c1,_0x445046,_0x9c7f4c,_0x3b9235,_0x2b2fc6,_0x5a065e,_0x55c311,_0x34249f){const _0x3d4bb8=_0x566993,_0x31688b=this,_0x561d14=[_0x3d4bb8('0x34e'),_0x3d4bb8('0x825'),_0x3d4bb8('0x1b68'),_0x3d4bb8('0x157c'),'pTalking',_0x3d4bb8('0x203d'),_0x3d4bb8('0x67f'),_0x3d4bb8('0x3ba'),_0x3d4bb8('0xa87'),_0x3d4bb8('0x183a'),_0x3d4bb8('0x1898')];_0x31688b[_0x3d4bb8('0x155f')]=_0x34249f[_0x3d4bb8('0x14d4')](),_0x31688b[_0x3d4bb8('0x1a2f')]=_0x5435c1[_0x3d4bb8('0x1a2f')]?_0x5435c1[_0x3d4bb8('0x1a2f')]:0x0,_0x31688b[_0x3d4bb8('0xeae')]=_0x5435c1?_0x3c8d8a()[_0x3d4bb8('0x128')](_0x5435c1[_0x3d4bb8('0x6aa')]?_0x5435c1['rows']:[],'id'):{},_0x31688b[_0x3d4bb8('0x2156')]=_0x445046?_0x3c8d8a()['keyBy'](_0x445046[_0x3d4bb8('0x6aa')]?_0x445046[_0x3d4bb8('0x6aa')]:[],'id'):{},_0x31688b[_0x3d4bb8('0x257b')]=_0x5a065e,_0x31688b[_0x3d4bb8('0x170e')]=_0x55c311&&_0x55c311[_0x3d4bb8('0x1a2f')]==0x1?_0x55c311[_0x3d4bb8('0x6aa')][0x0]:null,_0x31688b['crudPermissions']=_0x34249f[_0x3d4bb8('0xde6')](_0x31688b[_0x3d4bb8('0x170e')]?_0x31688b[_0x3d4bb8('0x170e')][_0x3d4bb8('0x1dc1')]:null);_0x34249f['hasRole'](_0x3d4bb8('0x79b'))?_0x31688b[_0x3d4bb8('0xc49')]={'type':_0x3d4bb8('0x1755'),'sort':_0x3d4bb8('0x1769'),'limit':0xa,'page':0x1}:_0x31688b['query']={'id':_0x31688b[_0x3d4bb8('0x155f')]['id'],'channel':'voice','type':_0x3d4bb8('0x1755'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x31688b[_0x3d4bb8('0xdfe')]=_0x4585c0,_0x31688b[_0x3d4bb8('0x115e')]=_0x147a94,_0x31688b[_0x3d4bb8('0x2687')]=_0x1300eb,_0x31688b[_0x3d4bb8('0x24f8')]=_0x984e08,_0x31688b[_0x3d4bb8('0x578')]=_0x49eabb,_0x31688b[_0x3d4bb8('0x689')]=_0xa3b92e,_0x31688b['onPause']=_0x1d9969,_0x31688b[_0x3d4bb8('0x5')]=_0x420e1e,_0x31688b[_0x3d4bb8('0x1e70')]=_0x2e22d9,_0x31688b['$onInit']=_0x34a3f4,_0x31688b[_0x3d4bb8('0x144a')]=[],_0x3c8d8a()[_0x3d4bb8('0x33d')](_0x31688b[_0x3d4bb8('0xeae')],function(_0xeaef25){const _0x4816c1=_0x3d4bb8;_0x31688b[_0x4816c1('0x144a')][_0x4816c1('0x18bb')](_0xeaef25['id']);}),_0x3b9235[_0x3d4bb8('0x165f')](_0x3d4bb8('0x1414'),_0x31688b['onSave']),_0x31688b[_0x3d4bb8('0x55a')]=_0x418682(function(){},0x3e7),_0x3b9235['on'](_0x3d4bb8('0x2048'),_0x31688b['onPause']),_0x3b9235['on'](_0x3d4bb8('0x22b7'),_0x31688b[_0x3d4bb8('0x1e70')]),_0x3b9235['on'](_0x3d4bb8('0x1379'),_0x31688b[_0x3d4bb8('0x5')]);function _0x34a3f4(){const _0x5cdce8=_0x3d4bb8,_0x541727=[];return _0x3c8d8a()[_0x5cdce8('0x33d')](_0x31688b[_0x5cdce8('0xeae')],function(_0x1634cf,_0x456093){const _0x982f26=_0x5cdce8;_0x1634cf[_0x982f26('0x1898')]=0x0,_0x1634cf['loggedInDb']=0x0,_0x31688b[_0x982f26('0xeae')][_0x456093][_0x982f26('0x11fa')]={},_0x541727[_0x982f26('0x18bb')](_0x9c7f4c['voiceQueue'][_0x982f26('0x230a')]({'id':_0x456093})[_0x982f26('0x1964')]),_0x31688b[_0x982f26('0x2156')][_0x456093]&&_0x3c8d8a()['merge'](_0x1634cf,_0x3c8d8a()[_0x982f26('0x2114')](_0x31688b['rpcQueues'][_0x456093],_0x561d14));}),_0x525986[_0x5cdce8('0x27c8')](_0x541727)['then'](function(_0x545ad7){const _0x35f814=_0x5cdce8;for(let _0x2cf642=0x0;_0x2cf642<_0x545ad7['length'];_0x2cf642+=0x1){for(let _0x2ec414=0x0;_0x2ec414<_0x545ad7[_0x2cf642]['rows']['length'];_0x2ec414++){_0x545ad7[_0x2cf642][_0x35f814('0x6aa')][_0x2ec414][_0x35f814('0x1898')]&&_0x31688b[_0x35f814('0xeae')][_0x545ad7[_0x2cf642][_0x35f814('0x6aa')][_0x2ec414]['VoiceQueueId']][_0x35f814('0x1898')]++,_0x31688b['queues'][_0x545ad7[_0x2cf642][_0x35f814('0x6aa')][_0x2ec414][_0x35f814('0x11c9')]][_0x35f814('0x1307')]++,_0x31688b[_0x35f814('0xeae')][_0x545ad7[_0x2cf642][_0x35f814('0x6aa')][_0x2ec414][_0x35f814('0x11c9')]]['agents'][_0x545ad7[_0x2cf642]['rows'][_0x2ec414][_0x35f814('0x181c')]]=_0x545ad7[_0x2cf642][_0x35f814('0x6aa')][_0x2ec414][_0x35f814('0x11c9')];}}})[_0x5cdce8('0x103c')](function(_0x54424b){const _0x5ad3c6=_0x5cdce8;console[_0x5ad3c6('0x15aa')](_0x54424b);});}function _0xa3b92e(_0x482153){const _0x37de42=_0x3d4bb8;_0x31688b['queues'][_0x482153['id']]&&_0x3c8d8a()[_0x37de42('0x9ef')](_0x31688b[_0x37de42('0xeae')][_0x482153['id']],_0x3c8d8a()[_0x37de42('0x2114')](_0x482153,_0x561d14));}function _0x1d9969(_0xbc1f59){const _0xbaeafe=_0x3d4bb8;console[_0xbaeafe('0xe37')]('onPause',_0xbc1f59);if(_0xbc1f59[_0xbaeafe('0x67c')])_0x3c8d8a()[_0xbaeafe('0x33d')](_0x31688b[_0xbaeafe('0xeae')],function(_0x3bfe0d){const _0x20c3d4=_0xbaeafe;_0x3bfe0d[_0x20c3d4('0x11fa')][_0xbc1f59['id']]&&(_0x3bfe0d[_0x20c3d4('0x1898')]+=0x1,console[_0x20c3d4('0xe37')]('pause'));});else!_0xbc1f59[_0xbaeafe('0x67c')]&&_0x3c8d8a()[_0xbaeafe('0x33d')](_0x31688b[_0xbaeafe('0xeae')],function(_0xf35e43){const _0x5228a2=_0xbaeafe;_0xf35e43[_0x5228a2('0x11fa')][_0xbc1f59['id']]&&(_0xf35e43['paused']>0x0&&(_0xf35e43[_0x5228a2('0x1898')]-=0x1,console[_0x5228a2('0xe37')](_0x5228a2('0x9da'))));});}function _0x420e1e(_0x3ec857){const _0x590e2f=_0x3d4bb8;console[_0x590e2f('0xe37')](_0x590e2f('0x1e15'),_0x3ec857),_0x31688b[_0x590e2f('0xeae')][_0x3ec857[_0x590e2f('0x11c9')]]&&(_0x31688b[_0x590e2f('0xeae')][_0x3ec857[_0x590e2f('0x11c9')]][_0x590e2f('0x1307')]+=0x1,_0x31688b[_0x590e2f('0xeae')][_0x3ec857[_0x590e2f('0x11c9')]][_0x590e2f('0x11fa')][_0x3ec857['UserId']]=_0x3ec857[_0x590e2f('0x11c9')]);}function _0x2e22d9(_0x3e7c27){const _0x15b4f2=_0x3d4bb8;console[_0x15b4f2('0xe37')](_0x15b4f2('0x1e70'),_0x3e7c27),_0x31688b[_0x15b4f2('0xeae')][_0x3e7c27[_0x15b4f2('0x11c9')]]&&_0x31688b[_0x15b4f2('0xeae')][_0x3e7c27[_0x15b4f2('0x11c9')]]['loggedInDb']>0x0&&(_0x31688b['queues'][_0x3e7c27[_0x15b4f2('0x11c9')]][_0x15b4f2('0x1307')]-=0x1,delete _0x31688b[_0x15b4f2('0xeae')][_0x3e7c27['VoiceQueueId']][_0x15b4f2('0x11fa')][_0x3e7c27[_0x15b4f2('0x181c')]]);}let _0xaae4ff=!![],_0x31d66f=0x1;_0x2ab4f7[_0x3d4bb8('0x1bdb')](_0x3d4bb8('0x157b'),function(_0x4836bd,_0x35850d){const _0x5c1877=_0x3d4bb8;_0xaae4ff?_0x4787f0(function(){_0xaae4ff=![];}):(!_0x35850d&&(_0x31d66f=_0x31688b[_0x5c1877('0xc49')][_0x5c1877('0x182e')]),_0x4836bd!==_0x35850d&&(_0x31688b[_0x5c1877('0xc49')][_0x5c1877('0x182e')]=0x1),!_0x4836bd&&(_0x31688b[_0x5c1877('0xc49')][_0x5c1877('0x182e')]=_0x31d66f),_0x31688b[_0x5c1877('0x115e')]());});function _0x4585c0(_0x3cef95){const _0x576d07=_0x3d4bb8;_0x31688b[_0x576d07('0x1a2f')]=_0x3cef95['count'],_0x31688b[_0x576d07('0xeae')]=_0x3cef95?_0x3c8d8a()[_0x576d07('0x128')](_0x3cef95[_0x576d07('0x6aa')]?_0x3cef95['rows']:[],'id'):{};if(_0x3cef95[_0x576d07('0x6aa')]){_0x31688b[_0x576d07('0x144a')]=[];for(let _0x5dfc42=0x0;_0x5dfc42<_0x3cef95['rows'][_0x576d07('0x543')];_0x5dfc42++){_0x31688b[_0x576d07('0x144a')]['push'](_0x3cef95[_0x576d07('0x6aa')][_0x5dfc42]['id']);}}_0x34a3f4();}function _0x147a94(){const _0x36bbc1=_0x3d4bb8;_0x31688b[_0x36bbc1('0xc49')][_0x36bbc1('0x17f0')]=(_0x31688b[_0x36bbc1('0xc49')][_0x36bbc1('0x182e')]-0x1)*_0x31688b[_0x36bbc1('0xc49')]['limit'],_0x34249f[_0x36bbc1('0x1b4e')](_0x36bbc1('0x79b'))?_0x31688b[_0x36bbc1('0x2219')]=_0x9c7f4c['voiceQueue']['get'](_0x31688b[_0x36bbc1('0xc49')],_0x4585c0)[_0x36bbc1('0x1964')]:(_0x31688b[_0x36bbc1('0xc49')]['id']=_0x31688b[_0x36bbc1('0x257b')]['id'],_0x31688b[_0x36bbc1('0xc49')]['section']='VoiceQueues',_0x31688b[_0x36bbc1('0x2219')]=_0x9c7f4c[_0x36bbc1('0x257b')][_0x36bbc1('0x135b')](_0x31688b[_0x36bbc1('0xc49')],_0x4585c0)['$promise']);}function _0x1300eb(_0x3512e6,_0x5c326d){const _0x2604cf=_0x3d4bb8;_0x209813['show']({'controller':_0x2604cf('0x22aa'),'controllerAs':'vm','templateUrl':_0x4bfbe4,'parent':angular[_0x2604cf('0xb6d')](_0x2e6d98[_0x2604cf('0x1a5')]),'targetEvent':_0x3512e6,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x5c326d,'voiceQueues':_0x3c8d8a()[_0x2604cf('0xcaf')](_0x31688b['queues']),'license':null,'setting':null,'crudPermissions':_0x31688b['crudPermissions']}});}function _0x984e08(_0x4fdd5e,_0x1eb5c2){const _0x3cfb51=_0x3d4bb8;_0x209813[_0x3cfb51('0x1cb7')]({'controller':_0x3cfb51('0xb76'),'controllerAs':'vm','templateUrl':_0x1f52f8,'parent':angular[_0x3cfb51('0xb6d')](_0x2e6d98[_0x3cfb51('0x1a5')]),'targetEvent':_0x4fdd5e,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x1eb5c2,'voiceQueues':_0x31688b[_0x3cfb51('0xeae')]?_0x31688b[_0x3cfb51('0xeae')][_0x3cfb51('0x6aa')]:[],'realtime':!![],'crudPermissions':_0x31688b[_0x3cfb51('0x1dc1')]}});}function _0x49eabb(_0xf3fecf){const _0x2e8c57=_0x3d4bb8;return _0x9c7f4c[_0x2e8c57('0x1282')][_0x2e8c57('0x1842')](_0xf3fecf)[_0x2e8c57('0x1964')][_0x2e8c57('0x173b')](function(){const _0x55f13e=_0x2e8c57;_0x2b2fc6[_0x55f13e('0xdfe')]({'title':_0x55f13e('0x22bc'),'msg':_0xf3fecf[_0x55f13e('0x10ad')]?_0xf3fecf['name']+_0x55f13e('0x1fd6'):''});})[_0x2e8c57('0x103c')](function(_0x52a3c7){const _0x44bea2=_0x2e8c57;_0x2b2fc6['error']({'title':_0x44bea2('0xb5f'),'msg':_0x52a3c7[_0x44bea2('0x67f')]});});}_0x2ab4f7[_0x3d4bb8('0xbf6')](_0x3d4bb8('0x16d2'),function(){const _0x3033ca=_0x3d4bb8;_0x3b9235[_0x3033ca('0x251c')]('voice_queue:save'),_0x31688b[_0x3033ca('0x55a')]&&_0x418682[_0x3033ca('0x1e1f')](_0x31688b[_0x3033ca('0x55a')]),_0x3b9235['removeAllListeners'](_0x3033ca('0x2048')),_0x3b9235[_0x3033ca('0x251c')](_0x3033ca('0x22b7')),_0x3b9235[_0x3033ca('0x251c')](_0x3033ca('0x1379'));});}const _0x316b89=_0xb97058;function _0x54e8d5(){const _0x45aa7c=_0x566993;return{'status':{'registered':_0x45aa7c('0xdcf'),'unregistered':_0x45aa7c('0xc5a'),'lagged':_0x45aa7c('0xc5a'),'reachable':_0x45aa7c('0xdcf'),'unreachable':_0x45aa7c('0xc5a'),'unknown':_0x45aa7c('0x3c7')},'state':{'unknown':_0x45aa7c('0xd0a'),'not_inuse':_0x45aa7c('0x1dd'),'inuse':_0x45aa7c('0x2205'),'busy':_0x45aa7c('0x90c'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x45aa7c('0xd0a'),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x45aa7c('0x4da'),'onhold':_0x45aa7c('0x244d')},'channelStatus':{'ring':_0x45aa7c('0x4da'),'up':_0x45aa7c('0x6ed'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0x45aa7c('0x1766'),'up':_0x45aa7c('0x6ed'),'hangup':_0x45aa7c('0x1797')}};}const _0x1cad21=_0x54e8d5;_0xe5f42[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x2fc')];function _0xe5f42(_0x2c36c0,_0x40e2fb,_0x4ed701){const _0x2a2805=_0x566993,_0x1e7178=this;_0x4ed701[_0x2a2805('0x1878')](),_0x4ed701['connect'](),_0x1e7178[_0x2a2805('0xd5f')]=0x0;switch(_0x40e2fb[_0x2a2805('0x9fe')][_0x2a2805('0x10ad')]){case _0x2a2805('0x774'):_0x1e7178[_0x2a2805('0xd5f')]=0x0;break;case _0x2a2805('0x22a1'):_0x1e7178[_0x2a2805('0xd5f')]=0x1;break;case _0x2a2805('0x218d'):_0x1e7178[_0x2a2805('0xd5f')]=0x2;break;case _0x2a2805('0xd3e'):_0x1e7178[_0x2a2805('0xd5f')]=0x3;break;case _0x2a2805('0x47c'):_0x1e7178[_0x2a2805('0xd5f')]=0x4;break;case _0x2a2805('0x1aee'):_0x1e7178[_0x2a2805('0xd5f')]=0x5;break;case _0x2a2805('0x18b1'):_0x1e7178['selectedTab']=0x6;break;case _0x2a2805('0x3ae'):_0x1e7178['selectedTab']=0x7;break;default:_0x1e7178[_0x2a2805('0xd5f')]=0x0,_0x40e2fb['go']('app.voice.realtime.agents');}_0x2c36c0[_0x2a2805('0x1bdb')](_0x2a2805('0x1a1'),function(_0x43c026,_0x51136d){const _0x4898bf=_0x2a2805;if(_0x43c026!==_0x51136d)switch(_0x43c026){case 0x0:_0x40e2fb['go'](_0x4898bf('0x774'));break;case 0x1:_0x40e2fb['go'](_0x4898bf('0x22a1'));break;case 0x2:_0x40e2fb['go'](_0x4898bf('0x218d'));break;case 0x3:_0x40e2fb['go']('app.voice.realtime.queues');break;case 0x4:_0x40e2fb['go'](_0x4898bf('0x47c'));break;case 0x5:_0x40e2fb['go'](_0x4898bf('0x1aee'));break;case 0x6:_0x40e2fb['go'](_0x4898bf('0x18b1'));break;case 0x7:_0x40e2fb['go'](_0x4898bf('0x3ae'));break;default:_0x40e2fb['go']('app.voice.realtime.agents');}});}const _0x20a19c=_0xe5f42;_0xc2d01[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b80'),'rpcTelephones',_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1bf5'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600')];function _0xc2d01(_0x2355e4,_0x201a8a,_0x15ef03,_0x560a07,_0x510d74,_0xf8063a,_0x38f71d,_0x19bf95,_0x3e3e7f,_0x21aef9,_0x3397d7){const _0x133555=_0x566993,_0x13eaf9=this,_0x435566=[_0x133555('0x572'),_0x133555('0x138c'),'state','status'];_0x13eaf9['count']=_0x560a07['count'],_0x13eaf9[_0x133555('0x19b3')]=['fullname','internal','state',_0x133555('0x276f'),_0x133555('0x1e8')],_0x13eaf9[_0x133555('0x1b80')]=_0x560a07?_0x3c8d8a()['keyBy'](_0x560a07[_0x133555('0x6aa')]?_0x560a07[_0x133555('0x6aa')]:[],'id'):{},_0x13eaf9['rpcTelephones']=_0x510d74?_0x3c8d8a()[_0x133555('0x128')](_0x510d74[_0x133555('0x6aa')]?_0x510d74[_0x133555('0x6aa')]:[],'id'):{},_0x13eaf9[_0x133555('0x257b')]=_0x3e3e7f,_0x13eaf9[_0x133555('0x170e')]=_0x21aef9&&_0x21aef9[_0x133555('0x1a2f')]==0x1?_0x21aef9[_0x133555('0x6aa')][0x0]:null,_0x13eaf9[_0x133555('0x1dc1')]=_0x3397d7['parseCrudPermissions'](_0x13eaf9['userProfileSection']?_0x13eaf9['userProfileSection'][_0x133555('0x1dc1')]:null),_0x13eaf9['query']={'fields':_0x133555('0x230e'),'role':_0x133555('0x149c'),'sort':_0x133555('0x1769'),'limit':0xa,'page':0x1},_0x13eaf9['statusClass']=_0x19bf95['status'],_0x13eaf9[_0x133555('0xe1c')]=_0x19bf95[_0x133555('0x1a49')],_0x13eaf9['success']=_0x4f2484,_0x13eaf9[_0x133555('0x2444')]=_0x279895,_0x13eaf9['showInfo']=_0x20ff99,_0x13eaf9[_0x133555('0xda5')]=_0x2bb4b8,_0x13eaf9['onSave']=_0x49e172,_0x38f71d['on'](_0x133555('0x35a'),_0x13eaf9[_0x133555('0x689')]);function _0x279895(){_0x3c8d8a()['forIn'](_0x13eaf9['telephones'],function(_0xc340d5,_0x393bec){const _0x1d90ac=a0_0xde5e;_0x13eaf9[_0x1d90ac('0xd11')][_0x393bec]&&_0x3c8d8a()[_0x1d90ac('0x9ef')](_0xc340d5,_0x3c8d8a()['pick'](_0x13eaf9[_0x1d90ac('0xd11')][_0x393bec],_0x435566));});}function _0x20ff99(_0x28a21f){const _0x48fae0=_0x133555;_0x15ef03[_0x48fae0('0x1cb7')](_0x15ef03[_0x48fae0('0x5a4')]()[_0x48fae0('0x226c')](!![])[_0x48fae0('0x20d6')](_0x48fae0('0x526'))[_0x48fae0('0xf8b')](_0x48fae0('0x22f0'))['ok']('Ok')[_0x48fae0('0x21de')](_0x28a21f));}function _0x49e172(_0x465b3b){const _0x31eb55=_0x133555;_0x13eaf9[_0x31eb55('0x1b80')][_0x465b3b['id']]&&_0x3c8d8a()[_0x31eb55('0x9ef')](_0x13eaf9[_0x31eb55('0x1b80')][_0x465b3b['id']],_0x3c8d8a()[_0x31eb55('0x2114')](_0x465b3b,_0x435566));}let _0x434be4=!![],_0x5547c6=0x1;_0x2355e4[_0x133555('0x1bdb')](_0x133555('0x157b'),function(_0x1fc3d4,_0x456acc){const _0xfb5c62=_0x133555;_0x434be4?_0x201a8a(function(){_0x434be4=![];}):(!_0x456acc&&(_0x5547c6=_0x13eaf9[_0xfb5c62('0xc49')][_0xfb5c62('0x182e')]),_0x1fc3d4!==_0x456acc&&(_0x13eaf9[_0xfb5c62('0xc49')][_0xfb5c62('0x182e')]=0x1),!_0x1fc3d4&&(_0x13eaf9[_0xfb5c62('0xc49')][_0xfb5c62('0x182e')]=_0x5547c6),_0x13eaf9[_0xfb5c62('0xda5')]());});function _0x4f2484(_0x15069e){const _0x23201b=_0x133555;_0x13eaf9[_0x23201b('0x1b80')]=_0x15069e?_0x3c8d8a()[_0x23201b('0x128')](_0x15069e[_0x23201b('0x6aa')]?_0x15069e[_0x23201b('0x6aa')]:[],'id'):{},_0x279895();}function _0x2bb4b8(){const _0x3f390e=_0x133555;_0x13eaf9[_0x3f390e('0xc49')]['offset']=(_0x13eaf9[_0x3f390e('0xc49')][_0x3f390e('0x182e')]-0x1)*_0x13eaf9['query'][_0x3f390e('0x3e')],_0x3397d7[_0x3f390e('0x1b4e')](_0x3f390e('0x79b'))?_0x13eaf9[_0x3f390e('0x2219')]=_0xf8063a[_0x3f390e('0x166f')][_0x3f390e('0x1d97')](_0x13eaf9[_0x3f390e('0xc49')],_0x4f2484)['$promise']:(_0x13eaf9[_0x3f390e('0xc49')]['id']=_0x13eaf9['userProfile']['id'],_0x13eaf9['query'][_0x3f390e('0x17c9')]='Telephones',_0x13eaf9[_0x3f390e('0x2219')]=_0xf8063a['userProfile'][_0x3f390e('0x135b')](_0x13eaf9[_0x3f390e('0xc49')],_0x4f2484)['$promise']);}_0x2355e4[_0x133555('0xbf6')](_0x133555('0x16d2'),function(){const _0x277aab=_0x133555;_0x38f71d[_0x277aab('0x251c')](_0x277aab('0x35a'));});}const _0x913767=_0xc2d01;_0x5ebb00[_0x566993('0x17bb')]=['$scope',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x673'),_0x566993('0x537'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1bf5'),'$state',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600')];function _0x5ebb00(_0x5381c6,_0x2c0098,_0x949dd9,_0x528f62,_0x2dfa13,_0x53d7c2,_0x18f9a7,_0x10beec,_0x5c7f55,_0x86adfd,_0x5e358e,_0x5c502a){const _0x98a09a=_0x566993,_0x5d6a3a=this,_0x4008fa=[_0x98a09a('0x276f'),'stateRegistry',_0x98a09a('0x9df'),_0x98a09a('0x4d1'),_0x98a09a('0xe0d'),_0x98a09a('0x138c'),_0x98a09a('0x1a49'),_0x98a09a('0x276f')];_0x5d6a3a['currentUser']=_0x5c502a[_0x98a09a('0x14d4')](),_0x5d6a3a['count']=_0x528f62[_0x98a09a('0x1a2f')],_0x5d6a3a[_0x98a09a('0x673')]=_0x528f62?_0x528f62[_0x98a09a('0x6aa')]:[],_0x5d6a3a[_0x98a09a('0x537')]=_0x2dfa13?_0x2dfa13[_0x98a09a('0x6aa')]?_0x2dfa13[_0x98a09a('0x6aa')]:[]:[],_0x5d6a3a[_0x98a09a('0xc49')]={'fields':'id,name','active':!![],'sort':_0x98a09a('0x1769'),'limit':0xa,'page':0x1},_0x5d6a3a[_0x98a09a('0x142a')]=_0x10beec[_0x98a09a('0x276f')],_0x5d6a3a[_0x98a09a('0xe1c')]=_0x10beec[_0x98a09a('0x1a49')],_0x5d6a3a[_0x98a09a('0x257b')]=_0x86adfd,_0x5d6a3a[_0x98a09a('0x170e')]=_0x5e358e&&_0x5e358e['count']==0x1?_0x5e358e[_0x98a09a('0x6aa')][0x0]:null,_0x5d6a3a[_0x98a09a('0x1dc1')]=_0x5c502a[_0x98a09a('0xde6')](_0x5d6a3a[_0x98a09a('0x170e')]?_0x5d6a3a[_0x98a09a('0x170e')][_0x98a09a('0x1dc1')]:null),_0x5d6a3a[_0x98a09a('0xdfe')]=_0x4507fc,_0x5d6a3a[_0x98a09a('0x2444')]=_0x4442e1,_0x5d6a3a[_0x98a09a('0x2230')]=_0xb9f4ec,_0x5d6a3a[_0x98a09a('0x44e')]=_0x45b476,_0x5d6a3a[_0x98a09a('0x13c0')]=_0x59c0c6,_0x5d6a3a[_0x98a09a('0x689')]=_0x1e3088,_0x18f9a7['on'](_0x98a09a('0x1947'),_0x5d6a3a[_0x98a09a('0x689')]);function _0x4442e1(){const _0x476ee3=_0x98a09a;let _0x1bc14;for(let _0x5ec268=0x0;_0x5ec268<_0x5d6a3a[_0x476ee3('0x673')][_0x476ee3('0x543')];_0x5ec268+=0x1){_0x1bc14=_0x3c8d8a()[_0x476ee3('0x26c3')](_0x5d6a3a[_0x476ee3('0x537')],['id',_0x5d6a3a[_0x476ee3('0x673')][_0x5ec268]['id']]),_0x1bc14>=0x0&&_0x3c8d8a()[_0x476ee3('0x9ef')](_0x5d6a3a[_0x476ee3('0x673')][_0x5ec268],_0x3c8d8a()[_0x476ee3('0x2114')](_0x5d6a3a[_0x476ee3('0x537')][_0x1bc14],_0x4008fa));}}function _0xb9f4ec(_0x2b4988){const _0x4fe981=_0x98a09a;_0x949dd9[_0x4fe981('0x1cb7')](_0x949dd9[_0x4fe981('0x5a4')]()[_0x4fe981('0x226c')](!![])['title'](_0x4fe981('0x526'))[_0x4fe981('0xf8b')](_0x4fe981('0x22f0'))['ok']('Ok')[_0x4fe981('0x21de')](_0x2b4988));}function _0x15adf5(_0x542568,_0x456986,_0x4d8095){const _0x4e9b54=_0x98a09a;_0x456986>=0x0&&_0x3c8d8a()['merge'](_0x542568[_0x456986],_0x3c8d8a()[_0x4e9b54('0x2114')](_0x4d8095,_0x4008fa));}function _0x1e3088(_0x195c7d){const _0x4827a1=_0x98a09a,_0xab5079=_0x3c8d8a()[_0x4827a1('0x26c3')](_0x5d6a3a[_0x4827a1('0x673')],['id',_0x195c7d['id']]),_0x402bea=_0x3c8d8a()[_0x4827a1('0x26c3')](_0x5d6a3a[_0x4827a1('0x537')],['id',_0x195c7d['id']]);_0x15adf5(_0x5d6a3a['trunks'],_0xab5079,_0x195c7d),_0x15adf5(_0x5d6a3a['rpcTrunks'],_0x402bea,_0x195c7d);}let _0x426ab6=!![],_0x3c7689=0x1;_0x5381c6[_0x98a09a('0x1bdb')](_0x98a09a('0x157b'),function(_0x127c15,_0x4acd0){const _0x175dee=_0x98a09a;_0x426ab6?_0x2c0098(function(){_0x426ab6=![];}):(!_0x4acd0&&(_0x3c7689=_0x5d6a3a['query'][_0x175dee('0x182e')]),_0x127c15!==_0x4acd0&&(_0x5d6a3a[_0x175dee('0xc49')]['page']=0x1),!_0x127c15&&(_0x5d6a3a['query'][_0x175dee('0x182e')]=_0x3c7689),_0x5d6a3a[_0x175dee('0x44e')]());});function _0x4507fc(_0x9880db){const _0x397f89=_0x98a09a;_0x5d6a3a['count']=_0x9880db[_0x397f89('0x1a2f')],_0x5d6a3a[_0x397f89('0x673')]=_0x9880db?_0x9880db[_0x397f89('0x6aa')]?_0x9880db[_0x397f89('0x6aa')]:[]:[],_0x4442e1();}function _0x45b476(){const _0x53c425=_0x98a09a;_0x5d6a3a[_0x53c425('0xc49')][_0x53c425('0x17f0')]=(_0x5d6a3a['query'][_0x53c425('0x182e')]-0x1)*_0x5d6a3a[_0x53c425('0xc49')]['limit'],_0x5c502a[_0x53c425('0x1b4e')]('admin')?_0x5d6a3a[_0x53c425('0x2219')]=_0x53d7c2[_0x53c425('0x15b7')][_0x53c425('0x1d97')](_0x5d6a3a['query'],_0x4507fc)[_0x53c425('0x1964')]:(_0x5d6a3a[_0x53c425('0xc49')]['id']=_0x5d6a3a[_0x53c425('0x257b')]['id'],_0x5d6a3a[_0x53c425('0xc49')][_0x53c425('0x17c9')]=_0x53c425('0x241e'),_0x5d6a3a[_0x53c425('0x2219')]=_0x53d7c2[_0x53c425('0x257b')][_0x53c425('0x135b')](_0x5d6a3a[_0x53c425('0xc49')],_0x4507fc)[_0x53c425('0x1964')]);}_0x5381c6[_0x98a09a('0xbf6')](_0x98a09a('0x16d2'),function(){const _0x3628c1=_0x98a09a;_0x18f9a7['removeAllListeners'](_0x3628c1('0x1947'));});function _0x59c0c6(_0x49a211,_0x3b0a29){const _0x29f9f9=_0x98a09a;_0x5c7f55['go'](_0x29f9f9('0x1d9e'),{'id':_0x3b0a29['id']});}}const _0x3ef641=_0x5ebb00,_0x47aedf=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/realtime/realtime.html/realtime.html',_0x36cea4=_0x21a6a1['p']+_0x566993('0x1650'),_0x5ae275=_0x21a6a1['p']+_0x566993('0xac9'),_0x4f62ee=_0x21a6a1['p']+_0x566993('0x1d21'),_0x315824=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/realtime/queues/view.html/view.html',_0xdab2a8=_0x21a6a1['p']+_0x566993('0x24c9'),_0x5eae75=_0x21a6a1['p']+_0x566993('0x2081'),_0xde34e1=_0x21a6a1['p']+_0x566993('0x1887'),_0x49e9d3=_0x21a6a1['p']+_0x566993('0x27b0');_0x4d650a[_0x566993('0x17bb')]=['$stateProvider'];function _0x4d650a(_0x4009bd){const _0x594be8=_0x566993;_0x4009bd[_0x594be8('0x1a49')](_0x594be8('0x20a4'),{'url':_0x594be8('0x213'),'views':{'content@app':{'templateUrl':_0x47aedf,'controller':_0x594be8('0x1ab1')}},'resolve':{'userProfile':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x1f95d5,_0x22f3a6){const _0x1eba7f=_0x594be8;return _0x22f3a6['hasRole'](_0x1eba7f('0x79b'))?null:_0x1f95d5[_0x1eba7f('0x155b')](_0x1eba7f('0x1f20'),{'fields':_0x1eba7f('0x19dd'),'id':_0x22f3a6[_0x1eba7f('0x14d4')]()[_0x1eba7f('0x1946')]});}],'userProfileSection':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x30c064,_0x5a5295){const _0x5a2cc7=_0x594be8;return _0x5a5295[_0x5a2cc7('0x1b4e')]('admin')?null:_0x30c064[_0x5a2cc7('0x155b')]('userProfileSection@get',{'fields':_0x5a2cc7('0x1348'),'userProfileId':_0x5a5295[_0x5a2cc7('0x14d4')]()[_0x5a2cc7('0x1946')],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})[_0x594be8('0x1a49')](_0x594be8('0x774'),{'url':_0x594be8('0x1943'),'controller':_0x594be8('0xe8d'),'templateUrl':_0x36cea4,'resolve':{'pauses':['apiResolver',function(_0x38f123){const _0x171b0f=_0x594be8;return _0x38f123[_0x171b0f('0x155b')]('pause@get',{'nolimit':!![]});}],'agents':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x99401c,_0x3bf098){const _0x446829=_0x594be8;return _0x3bf098[_0x446829('0x1b4e')]('admin')?_0x99401c[_0x446829('0x155b')](_0x446829('0x15e6'),{'fields':_0x446829('0xd6b'),'role':_0x446829('0x7b0'),'sort':_0x446829('0x572'),'nolimit':!![]}):_0x99401c[_0x446829('0x155b')](_0x446829('0x14b3'),{'id':_0x3bf098[_0x446829('0x14d4')]()[_0x446829('0x1946')],'section':_0x446829('0x1272'),'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':_0x446829('0x7b0'),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x358b79,_0x189e73){const _0x4702fd=_0x594be8;return _0x189e73[_0x4702fd('0x1b4e')]('admin')?null:_0x358b79[_0x4702fd('0x155b')]('userProfile@get',{'fields':_0x4702fd('0x19dd'),'id':_0x189e73[_0x4702fd('0x14d4')]()[_0x4702fd('0x1946')]});}],'userProfileSection':['apiResolver',_0x594be8('0x1600'),function(_0x53ecb0,_0x4e7425){const _0xaa192c=_0x594be8;return _0x4e7425[_0xaa192c('0x1b4e')](_0xaa192c('0x79b'))?null:_0x53ecb0[_0xaa192c('0x155b')](_0xaa192c('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4e7425['getCurrentUser']()['userProfileId'],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x4e094b){const _0x3b250d=_0x594be8;return _0x4e094b[_0x3b250d('0x155b')](_0x3b250d('0x58'));}]},'authenticate':!![],'permissionId':0x19b})['state'](_0x594be8('0x22a1'),{'url':_0x594be8('0x13e3'),'controller':_0x594be8('0xc44'),'templateUrl':_0x5ae275,'resolve':{'telephones':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x2589af,_0x25686b){const _0x15a6fa=_0x594be8;return _0x25686b['hasRole'](_0x15a6fa('0x79b'))?_0x2589af[_0x15a6fa('0x155b')](_0x15a6fa('0x15e6'),{'fields':_0x15a6fa('0x19f7'),'role':_0x15a6fa('0x149c'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x2589af[_0x15a6fa('0x155b')](_0x15a6fa('0x14b3'),{'id':_0x25686b['getCurrentUser']()['userProfileId'],'section':_0x15a6fa('0x76'),'fields':_0x15a6fa('0x19f7'),'role':_0x15a6fa('0x149c'),'sort':_0x15a6fa('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x7b140b,_0xd382e3){const _0x1744da=_0x594be8;return _0xd382e3[_0x1744da('0x1b4e')](_0x1744da('0x79b'))?null:_0x7b140b[_0x1744da('0x155b')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0xd382e3['getCurrentUser']()[_0x1744da('0x1946')]});}],'userProfileSection':[_0x594be8('0x2401'),'Auth',function(_0x1b79f1,_0x6b5529){const _0x356bdc=_0x594be8;return _0x6b5529[_0x356bdc('0x1b4e')](_0x356bdc('0x79b'))?null:_0x1b79f1[_0x356bdc('0x155b')](_0x356bdc('0x40'),{'fields':_0x356bdc('0x1348'),'userProfileId':_0x6b5529[_0x356bdc('0x14d4')]()[_0x356bdc('0x1946')],'sectionId':0xcb});}],'rpcTelephones':['apiResolver',function(_0x113ab2){const _0x10dbe3=_0x594be8;return _0x113ab2[_0x10dbe3('0x155b')](_0x10dbe3('0xb0d'));}]},'authenticate':!![],'permissionId':0x19b})[_0x594be8('0x1a49')](_0x594be8('0x218d'),{'url':_0x594be8('0x108d'),'controller':_0x594be8('0x24cb'),'templateUrl':_0x4f62ee,'resolve':{'trunks':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x38dc0c,_0x556729){const _0x5f4674=_0x594be8;return _0x556729[_0x5f4674('0x1b4e')]('admin')?_0x38dc0c[_0x5f4674('0x155b')](_0x5f4674('0x1a6f'),{'fields':'id,name','active':!![],'sort':_0x5f4674('0x1769'),'limit':0xa,'offset':0x0}):_0x38dc0c[_0x5f4674('0x155b')]('userProfile@getResources',{'id':_0x556729[_0x5f4674('0x14d4')]()[_0x5f4674('0x1946')],'section':'Trunks','fields':_0x5f4674('0xd52'),'active':!![],'sort':_0x5f4674('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x594be8('0x1600'),function(_0x4a7565,_0x704873){const _0x380476=_0x594be8;return _0x704873[_0x380476('0x1b4e')](_0x380476('0x79b'))?null:_0x4a7565[_0x380476('0x155b')]('userProfile@get',{'fields':_0x380476('0x19dd'),'id':_0x704873[_0x380476('0x14d4')]()[_0x380476('0x1946')]});}],'userProfileSection':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x302651,_0xbca323){const _0x138b2a=_0x594be8;return _0xbca323['hasRole'](_0x138b2a('0x79b'))?null:_0x302651[_0x138b2a('0x155b')](_0x138b2a('0x40'),{'fields':_0x138b2a('0x1348'),'userProfileId':_0xbca323['getCurrentUser']()[_0x138b2a('0x1946')],'sectionId':0x3f3});}],'rpcTrunks':['apiResolver',function(_0x4c085d){const _0xe96d75=_0x594be8;return _0x4c085d['resolve'](_0xe96d75('0x4ce'));}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.queues',{'url':_0x594be8('0x1bb0'),'controller':_0x594be8('0x823'),'templateUrl':_0x315824,'resolve':{'queues':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0xd55161,_0x114c61){const _0x20ad3e=_0x594be8;return _0x114c61[_0x20ad3e('0x1b4e')](_0x20ad3e('0x79b'))?_0xd55161['resolve'](_0x20ad3e('0x17be'),{'type':_0x20ad3e('0x1755'),'sort':_0x20ad3e('0x1769'),'limit':0xa,'offset':0x0}):_0xd55161['resolve'](_0x20ad3e('0x14b3'),{'id':_0x114c61[_0x20ad3e('0x14d4')]()[_0x20ad3e('0x1946')],'section':'VoiceQueues','channel':'voice','type':_0x20ad3e('0x1755'),'sort':_0x20ad3e('0x1769'),'limit':0xa,'page':0x1});}],'userProfile':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x186fe0,_0x70aedc){const _0x499a44=_0x594be8;return _0x70aedc['hasRole'](_0x499a44('0x79b'))?null:_0x186fe0['resolve'](_0x499a44('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x70aedc[_0x499a44('0x14d4')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x594be8('0x1600'),function(_0x758722,_0x1ecf2f){const _0x49ba1=_0x594be8;return _0x1ecf2f[_0x49ba1('0x1b4e')](_0x49ba1('0x79b'))?null:_0x758722[_0x49ba1('0x155b')](_0x49ba1('0x40'),{'fields':_0x49ba1('0x1348'),'userProfileId':_0x1ecf2f[_0x49ba1('0x14d4')]()['userProfileId'],'sectionId':0x191});}],'rpcQueues':[_0x594be8('0x2401'),function(_0x565aed){const _0x234639=_0x594be8;return _0x565aed[_0x234639('0x155b')](_0x234639('0x7d8'));}]},'authenticate':!![],'permissionId':0x19b})[_0x594be8('0x1a49')](_0x594be8('0x47c'),{'url':_0x594be8('0xbca'),'controller':_0x594be8('0x16d7'),'templateUrl':_0xdab2a8,'resolve':{'agents':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x12a29b,_0x4050b7){const _0x48ae2c=_0x594be8;return _0x4050b7[_0x48ae2c('0x1b4e')](_0x48ae2c('0x79b'))?_0x12a29b[_0x48ae2c('0x155b')](_0x48ae2c('0x15e6'),{'fields':_0x48ae2c('0x16d6'),'role':'agent','nolimit':!![]}):_0x12a29b['resolve'](_0x48ae2c('0x14b3'),{'id':_0x4050b7[_0x48ae2c('0x14d4')]()['userProfileId'],'section':_0x48ae2c('0x1272'),'fields':_0x48ae2c('0x16d6'),'role':_0x48ae2c('0x7b0'),'nolimit':!![]});}],'queues':['apiResolver',_0x594be8('0x1600'),function(_0x2b6bbd,_0x4f31f1){const _0x462c92=_0x594be8;return _0x4f31f1[_0x462c92('0x1b4e')](_0x462c92('0x79b'))?_0x2b6bbd[_0x462c92('0x155b')]('voiceQueue@get',{'type':_0x462c92('0x1755'),'sort':'-updatedAt','nolimit':!![]}):_0x2b6bbd[_0x462c92('0x155b')](_0x462c92('0x14b3'),{'id':_0x4f31f1[_0x462c92('0x14d4')]()[_0x462c92('0x1946')],'section':_0x462c92('0x32a'),'channel':_0x462c92('0x21a8'),'type':'inbound','sort':_0x462c92('0x1769'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x594be8('0x1600'),function(_0x1de2e5,_0x8f4e30){const _0x20cd51=_0x594be8;return _0x8f4e30['hasRole'](_0x20cd51('0x79b'))?null:_0x1de2e5[_0x20cd51('0x155b')](_0x20cd51('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x8f4e30[_0x20cd51('0x14d4')]()[_0x20cd51('0x1946')]});}],'userProfileSection':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x49f81c,_0x48890d){const _0x553136=_0x594be8;return _0x48890d[_0x553136('0x1b4e')](_0x553136('0x79b'))?null:_0x49f81c[_0x553136('0x155b')]('userProfileSection@get',{'fields':_0x553136('0x1348'),'userProfileId':_0x48890d[_0x553136('0x14d4')]()['userProfileId'],'sectionId':0x191});}],'rpcVoiceQueuesChannels':['apiResolver',function(_0x236f0c){const _0x10924d=_0x594be8;return _0x236f0c[_0x10924d('0x155b')](_0x10924d('0x964'));}]},'authenticate':!![],'permissionId':0x19b})[_0x594be8('0x1a49')](_0x594be8('0x1aee'),{'url':_0x594be8('0xc5b'),'controller':_0x594be8('0x13fa'),'templateUrl':_0x5eae75,'resolve':{'agents':['apiResolver',_0x594be8('0x1600'),function(_0x1f73e6,_0x520aea){const _0x13b8bf=_0x594be8;return _0x520aea[_0x13b8bf('0x1b4e')](_0x13b8bf('0x79b'))?_0x1f73e6['resolve'](_0x13b8bf('0x15e6'),{'fields':_0x13b8bf('0x16d6'),'role':_0x13b8bf('0x7b0'),'nolimit':!![]}):_0x1f73e6[_0x13b8bf('0x155b')]('userProfile@getResources',{'id':_0x520aea[_0x13b8bf('0x14d4')]()['userProfileId'],'section':_0x13b8bf('0x1272'),'fields':_0x13b8bf('0x16d6'),'role':'agent','nolimit':!![]});}],'queues':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x3537c4,_0x4c4c53){const _0x51a66e=_0x594be8;return _0x4c4c53[_0x51a66e('0x1b4e')](_0x51a66e('0x79b'))?_0x3537c4[_0x51a66e('0x155b')](_0x51a66e('0x17be'),{'type':_0x51a66e('0x1755'),'sort':'-updatedAt','nolimit':!![]}):_0x3537c4[_0x51a66e('0x155b')](_0x51a66e('0x14b3'),{'id':_0x4c4c53[_0x51a66e('0x14d4')]()[_0x51a66e('0x1946')],'section':'VoiceQueues','channel':_0x51a66e('0x21a8'),'type':_0x51a66e('0x1755'),'sort':_0x51a66e('0x1769'),'nolimit':!![]});}],'dispositions':[_0x594be8('0x2401'),'Auth',function(_0x2b513e,_0x287237){const _0x37e69a=_0x594be8;return _0x287237[_0x37e69a('0x1b4e')](_0x37e69a('0x79b'))?_0x2b513e[_0x37e69a('0x155b')](_0x37e69a('0x16c5'),{'fields':_0x37e69a('0xd78'),'sort':_0x37e69a('0x1769'),'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x37e69a('0x877'),'WhatsappAccountId':_0x37e69a('0x877'),'OpenchannelAccountId':_0x37e69a('0x877'),'ChatWebsiteId':_0x37e69a('0x877'),'ListId':_0x37e69a('0x877'),'nolimit':!![]}):_0x2b513e[_0x37e69a('0x155b')](_0x37e69a('0x14b3'),{'id':_0x287237[_0x37e69a('0x14d4')]()[_0x37e69a('0x1946')],'section':_0x37e69a('0x1bbf'),'fields':'createdAt,updatedAt,id,name','sort':_0x37e69a('0x1769'),'MailAccountId':_0x37e69a('0x877'),'FaxAccountId':'null','SmsAccountId':_0x37e69a('0x877'),'WhatsappAccountId':_0x37e69a('0x877'),'OpenchannelAccountId':_0x37e69a('0x877'),'ChatWebsiteId':_0x37e69a('0x877'),'ListId':_0x37e69a('0x877'),'nolimit':!![]});}],'userProfile':[_0x594be8('0x2401'),_0x594be8('0x1600'),function(_0x3b5945,_0x15b09f){const _0x1b1076=_0x594be8;return _0x15b09f[_0x1b1076('0x1b4e')](_0x1b1076('0x79b'))?null:_0x3b5945[_0x1b1076('0x155b')](_0x1b1076('0x1f20'),{'fields':_0x1b1076('0x19dd'),'id':_0x15b09f[_0x1b1076('0x14d4')]()[_0x1b1076('0x1946')]});}],'userProfileSection':[_0x594be8('0x2401'),'Auth',function(_0x106c2d,_0x4f89c8){const _0x3f3b8a=_0x594be8;return _0x4f89c8['hasRole'](_0x3f3b8a('0x79b'))?null:_0x106c2d['resolve'](_0x3f3b8a('0x40'),{'fields':_0x3f3b8a('0x1348'),'userProfileId':_0x4f89c8[_0x3f3b8a('0x14d4')]()['userProfileId'],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})[_0x594be8('0x1a49')](_0x594be8('0x18b1'),{'url':'/queue_params','controller':_0x594be8('0x6cc'),'templateUrl':_0xde34e1,'resolve':{'queues':['apiResolver','Auth',function(_0x4df4db,_0x4bd45f){const _0x16848a=_0x594be8;return _0x4bd45f[_0x16848a('0x1b4e')](_0x16848a('0x79b'))?_0x4df4db[_0x16848a('0x155b')](_0x16848a('0x17be'),{'type':'inbound','fields':_0x16848a('0xd52'),'sort':_0x16848a('0x1769'),'limit':0xa,'offset':0x0}):_0x4df4db['resolve'](_0x16848a('0x14b3'),{'id':_0x4bd45f['getCurrentUser']()['userProfileId'],'section':_0x16848a('0x32a'),'channel':'voice','type':_0x16848a('0x1755'),'sort':_0x16848a('0x1769'),'nolimit':!![]});}],'userProfile':[_0x594be8('0x2401'),'Auth',function(_0x5d7bc8,_0xc7a6cc){const _0xf8f43b=_0x594be8;return _0xc7a6cc[_0xf8f43b('0x1b4e')]('admin')?null:_0x5d7bc8[_0xf8f43b('0x155b')](_0xf8f43b('0x1f20'),{'fields':'id,name,crudPermissions','id':_0xc7a6cc[_0xf8f43b('0x14d4')]()[_0xf8f43b('0x1946')]});}],'userProfileSection':['apiResolver',_0x594be8('0x1600'),function(_0x5a90c7,_0x3b1b76){const _0x2232c8=_0x594be8;return _0x3b1b76[_0x2232c8('0x1b4e')]('admin')?null:_0x5a90c7[_0x2232c8('0x155b')]('userProfileSection@get',{'fields':_0x2232c8('0x1348'),'userProfileId':_0x3b1b76[_0x2232c8('0x14d4')]()[_0x2232c8('0x1946')],'sectionId':0x191});}],'rpcQueues':[_0x594be8('0x2401'),function(_0x4ce07c){const _0x13abc8=_0x594be8;return _0x4ce07c[_0x13abc8('0x155b')](_0x13abc8('0x7d8'));}]},'authenticate':!![],'permissionId':0x19b})[_0x594be8('0x1a49')](_0x594be8('0x3ae'),{'url':'/outbound_calls','controller':_0x594be8('0x7cd'),'templateUrl':_0x49e9d3,'resolve':{'rpcCalls':[_0x594be8('0x2401'),function(_0x5ccb4d){const _0x12fe65=_0x594be8;return _0x5ccb4d[_0x12fe65('0x155b')]('rpc@getOutboundChannels');}]},'authenticate':!![],'permissionId':0x19b});}angular['module'](_0x566993('0x20a4'),[])[_0x566993('0xea9')](_0x4d650a)['controller'](_0x566993('0x6f7'),_0x45f68a)[_0x566993('0x1e65')](_0x566993('0x945'),_0x1a885a)['controller'](_0x566993('0x2398'),_0x285d6e)[_0x566993('0x1e65')](_0x566993('0x25e5'),_0x3bc85f)[_0x566993('0x1e65')](_0x566993('0x2579'),_0x370dec)[_0x566993('0x1e65')]('QueuesVoiceRealtimeController',_0x316b89)['factory'](_0x566993('0x1bf5'),_0x1cad21)[_0x566993('0x1e65')](_0x566993('0x1a48'),_0x20a19c)[_0x566993('0x1e65')](_0x566993('0x235b'),_0x913767)[_0x566993('0x1e65')]('TrunksVoiceRealtimeController',_0x3ef641);const _0xa1378a=_0x21a6a1['p']+_0x566993('0x212d');_0x40c5af[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),'chanSpies',_0x566993('0x257b'),'userProfileSection','api',_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),'license',_0x566993('0x251')];function _0x40c5af(_0x148e83,_0x5cb8a1,_0x965030,_0x36acc1,_0x215edb,_0x597598,_0x44b721,_0x379a66,_0x501895,_0x937984,_0x457e4f,_0x23a409,_0x4ba047,_0x51c1fa,_0x4a0ba0,_0x2e366e,_0x295c59){const _0x589cef=_0x566993,_0x28ef54=this;_0x28ef54['license']=_0x2e366e,_0x28ef54['setting']=_0x295c59,_0x28ef54['currentUser']=_0x4a0ba0[_0x589cef('0x14d4')](),_0x28ef54[_0x589cef('0x1336')]=_0x501895||{'count':0x0,'rows':[]},_0x28ef54[_0x589cef('0x257b')]=_0x937984,_0x28ef54[_0x589cef('0x170e')]=_0x457e4f&&_0x457e4f[_0x589cef('0x1a2f')]==0x1?_0x457e4f[_0x589cef('0x6aa')][0x0]:null,_0x28ef54[_0x589cef('0x1dc1')]=_0x4a0ba0['parseCrudPermissions'](_0x28ef54[_0x589cef('0x170e')]?_0x28ef54[_0x589cef('0x170e')][_0x589cef('0x1dc1')]:null),_0x28ef54[_0x589cef('0xdf9')]=_0x589cef('0x1336'),_0x28ef54[_0x589cef('0x14d6')]='',_0x28ef54['listOrderAsc']=null,_0x28ef54[_0x589cef('0x60d')]=[],_0x28ef54[_0x589cef('0xc49')]={'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':_0x589cef('0x1769'),'limit':0xa,'page':0x1},_0x28ef54[_0x589cef('0xac2')]=_0x3c8d8a()[_0x589cef('0x128')]([{'option':_0x589cef('0x25b7'),'value':_0x589cef('0x19b5')},{'option':_0x589cef('0x196b'),'value':_0x589cef('0x148d')},{'option':_0x589cef('0x145d'),'value':_0x589cef('0x16f9')},{'option':'o:\x20Only\x20listen\x20to\x20audio\x20coming\x20from\x20this\x20channel.','value':_0x589cef('0x1d85')},{'option':_0x589cef('0x1b0f'),'value':'\x27q\x27'},{'option':_0x589cef('0x2533'),'value':'\x27s\x27'},{'option':_0x589cef('0x2ef'),'value':'\x27S\x27'},{'option':'w:\x20Enable\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel.','value':_0x589cef('0x9cc')},{'option':'W:\x20Enable\x20private\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel\x20but\x20cannot\x20listen\x20to\x20that\x20channel.','value':_0x589cef('0x184a')}],function(_0x2e5e6e){const _0x15af1f=_0x589cef;return _0x3c8d8a()[_0x15af1f('0x166c')](_0x2e5e6e[_0x15af1f('0xa7b')],new RegExp('\x27','g'),'');}),_0x28ef54['arrayrecordingFormat']=_0x3c8d8a()[_0x589cef('0x128')]([{'option':'wav','value':_0x589cef('0x675')},{'option':_0x589cef('0x2aa'),'value':_0x589cef('0x3e4')},{'option':'wav49','value':_0x589cef('0x1890')}],function(_0x28bd59){const _0x57ea53=_0x589cef;return _0x3c8d8a()[_0x57ea53('0x166c')](_0x28bd59['value'],new RegExp('\x27','g'),'');}),_0x28ef54[_0x589cef('0x19eb')]=_0x5a3eb3,_0x28ef54['deleteconfirm']=_0x883522,_0x28ef54['success']=_0xe24fcd,_0x28ef54['getChanSpies']=_0x5b9fa8,_0x28ef54[_0x589cef('0x21e5')]=_0x452d7e,_0x28ef54[_0x589cef('0xeb6')]=_0x3c3ebb,_0x28ef54[_0x589cef('0x1657')]=_0x1fcd5d,_0x28ef54[_0x589cef('0x1f5c')]=_0x43a8bb,_0x28ef54[_0x589cef('0x16ec')]=_0x364980,_0x28ef54[_0x589cef('0x271b')]=_0x2f9f8d;function _0x5a3eb3(_0xfb9cb0,_0x59dbdf){const _0x24dba3=_0x589cef;_0x215edb[_0x24dba3('0x1cb7')]({'controller':_0x24dba3('0xac7'),'controllerAs':'vm','templateUrl':_0xa1378a,'parent':angular['element'](_0x597598[_0x24dba3('0x1a5')]),'targetEvent':_0x59dbdf,'clickOutsideToClose':!![],'locals':{'chanSpy':_0xfb9cb0,'chanSpies':_0x28ef54[_0x24dba3('0x1336')][_0x24dba3('0x6aa')],'license':_0x28ef54[_0x24dba3('0x1a29')],'setting':null,'crudPermissions':_0x28ef54[_0x24dba3('0x1dc1')]}});}function _0x883522(_0x5ced3b,_0x2c197f){const _0x2bbd67=_0x589cef,_0x56d285=_0x215edb['confirm']()[_0x2bbd67('0x20d6')](_0x2bbd67('0x5bb')+_0x3c8d8a()[_0x2bbd67('0x10e')](_0x2bbd67('0x1784'))+'?')['htmlContent'](_0x2bbd67('0x15b9')+(_0x5ced3b[_0x2bbd67('0x10ad')]||_0x2bbd67('0x1784'))+''+_0x2bbd67('0xd23'))['ariaLabel'](_0x2bbd67('0x2099'))[_0x2bbd67('0x21de')](_0x2c197f)['ok']('OK')[_0x2bbd67('0x1e1f')](_0x2bbd67('0x468'));_0x215edb[_0x2bbd67('0x1cb7')](_0x56d285)[_0x2bbd67('0x173b')](function(){_0x3c3ebb(_0x5ced3b);},function(){const _0x37b6d8=_0x2bbd67;console[_0x37b6d8('0xe37')](_0x37b6d8('0x468'));});}let _0x53b74b=!![],_0x1d602b=0x1;_0x148e83[_0x589cef('0x1bdb')](_0x589cef('0x157b'),function(_0x4da596,_0x28a27d){const _0x56a12f=_0x589cef;_0x53b74b?_0x44b721(function(){_0x53b74b=![];}):(!_0x28a27d&&(_0x1d602b=_0x28ef54[_0x56a12f('0xc49')]['page']),_0x4da596!==_0x28a27d&&(_0x28ef54[_0x56a12f('0xc49')]['page']=0x1),!_0x4da596&&(_0x28ef54[_0x56a12f('0xc49')][_0x56a12f('0x182e')]=_0x1d602b),_0x28ef54[_0x56a12f('0x1446')]());});function _0xe24fcd(_0x4a75b2){const _0x3e2730=_0x589cef;_0x28ef54[_0x3e2730('0x1336')]=_0x4a75b2||{'count':0x0,'rows':[]};}function _0x5b9fa8(){const _0x25179b=_0x589cef;_0x28ef54[_0x25179b('0xc49')][_0x25179b('0x17f0')]=(_0x28ef54[_0x25179b('0xc49')][_0x25179b('0x182e')]-0x1)*_0x28ef54['query']['limit'],_0x4a0ba0[_0x25179b('0x1b4e')](_0x25179b('0x79b'))?_0x28ef54[_0x25179b('0x2219')]=_0x23a409[_0x25179b('0x103b')][_0x25179b('0x1d97')](_0x28ef54['query'],_0xe24fcd)[_0x25179b('0x1964')]:(_0x28ef54[_0x25179b('0xc49')]['id']=_0x28ef54['userProfile']['id'],_0x28ef54['query'][_0x25179b('0x17c9')]=_0x25179b('0x3c4'),_0x28ef54[_0x25179b('0x2219')]=_0x23a409['userProfile'][_0x25179b('0x135b')](_0x28ef54[_0x25179b('0xc49')],_0xe24fcd)[_0x25179b('0x1964')]);}function _0x452d7e(_0x46d97b,_0x1a33eb){const _0xdd455f=_0x589cef;_0x215edb[_0xdd455f('0x1cb7')]({'controller':_0xdd455f('0xac7'),'controllerAs':'vm','templateUrl':_0xa1378a,'parent':angular[_0xdd455f('0xb6d')](_0x597598['body']),'targetEvent':_0x46d97b,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x1a33eb,'chanSpies':_0x28ef54[_0xdd455f('0x1336')]['rows'],'license':_0x28ef54[_0xdd455f('0x1a29')],'setting':_0x28ef54[_0xdd455f('0x251')],'crudPermissions':_0x28ef54[_0xdd455f('0x1dc1')]}});}function _0x3c3ebb(_0x3d8d89){const _0x42eab7=_0x589cef;_0x23a409[_0x42eab7('0x103b')][_0x42eab7('0x15e8')]({'id':_0x3d8d89['id']})[_0x42eab7('0x1964')]['then'](function(){const _0x326726=_0x42eab7;_0x3c8d8a()['remove'](_0x28ef54[_0x326726('0x1336')]['rows'],{'id':_0x3d8d89['id']}),_0x28ef54[_0x326726('0x1336')][_0x326726('0x1a2f')]-=0x1,!_0x28ef54['chanSpies'][_0x326726('0x6aa')][_0x326726('0x543')]&&_0x28ef54[_0x326726('0x1446')](),_0x51c1fa[_0x326726('0xdfe')]({'title':_0x3c8d8a()[_0x326726('0x10e')](_0x326726('0x1784'))+_0x326726('0x1c5e'),'msg':_0x3d8d89[_0x326726('0x10ad')]?_0x3d8d89[_0x326726('0x10ad')]+_0x326726('0x25d2'):''});})[_0x42eab7('0x103c')](function(_0x4bf958){const _0x42e177=_0x42eab7;if(_0x4bf958[_0x42e177('0x1e07')]&&_0x4bf958[_0x42e177('0x1e07')][_0x42e177('0x1d4a')]&&_0x4bf958['data']['errors'][_0x42e177('0x543')]){_0x28ef54['errors']=_0x4bf958['data'][_0x42e177('0x1d4a')]||[{'message':_0x4bf958[_0x42e177('0x1b75')](),'type':_0x42e177('0x15d4')}];for(let _0x4a6120=0x0;_0x4a6120<_0x4bf958['data']['errors'][_0x42e177('0x543')];_0x4a6120++){_0x51c1fa[_0x42e177('0x15aa')]({'title':_0x4bf958['data'][_0x42e177('0x1d4a')][_0x4a6120][_0x42e177('0x1810')],'msg':_0x4bf958[_0x42e177('0x1e07')][_0x42e177('0x1d4a')][_0x4a6120]['message']});}}else _0x51c1fa[_0x42e177('0x15aa')]({'title':_0x4bf958[_0x42e177('0x276f')]?_0x42e177('0x137')+_0x4bf958[_0x42e177('0x276f')]+'\x20-\x20'+_0x4bf958['statusText']:'SYSTEM:DELETEvoiceChanSpy','msg':_0x4bf958[_0x42e177('0x1e07')]?JSON[_0x42e177('0x100b')](_0x4bf958['data'][_0x42e177('0x67f')]):_0x4bf958[_0x42e177('0x67f')]||_0x4bf958[_0x42e177('0x1b75')]()});});}function _0x1fcd5d(){const _0x456bc5=_0x589cef,_0x25b94f=angular[_0x456bc5('0x2e3')](_0x28ef54['selectedChanSpies']);return _0x28ef54[_0x456bc5('0x60d')]=[],_0x25b94f;}function _0x43a8bb(_0x1ee1ff){const _0x5831d1=_0x589cef,_0x33ea1d=_0x215edb[_0x5831d1('0x1d02')]()[_0x5831d1('0x20d6')](_0x5831d1('0x10d3'))[_0x5831d1('0xf8b')](_0x5831d1('0x15b9')+_0x28ef54['selectedChanSpies'][_0x5831d1('0x543')]+_0x5831d1('0xcb4')+_0x5831d1('0xd23'))[_0x5831d1('0x217')](_0x5831d1('0xd10'))[_0x5831d1('0x21de')](_0x1ee1ff)['ok']('OK')[_0x5831d1('0x1e1f')](_0x5831d1('0x468'));_0x215edb[_0x5831d1('0x1cb7')](_0x33ea1d)[_0x5831d1('0x173b')](function(){const _0x16ff16=_0x5831d1;_0x28ef54[_0x16ff16('0x60d')][_0x16ff16('0xa6a')](function(_0x1879f7){_0x3c3ebb(_0x1879f7);}),_0x28ef54[_0x16ff16('0x60d')]=[];});}function _0x364980(){const _0x2c0e77=_0x589cef;_0x28ef54[_0x2c0e77('0x60d')]=[];}function _0x2f9f8d(){const _0x2407c3=_0x589cef;_0x28ef54['selectedChanSpies']=_0x28ef54['chanSpies'][_0x2407c3('0x6aa')];}}const _0x58694d=_0x40c5af;_0x4991e8[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),'chanSpies',_0x566993('0x1784'),_0x566993('0xbd4'),'Auth',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x4991e8(_0x10b098,_0x23c63d,_0xf3905f,_0x5f2b4e,_0x48eba7,_0x36d295,_0x249c86,_0x85965c,_0x59aa88,_0x213fdc,_0x206bb3,_0x5c0b27,_0x49e741,_0x482840){const _0x119eab=_0x566993,_0x1180ae=this;_0x1180ae[_0x119eab('0x155f')]=_0x206bb3[_0x119eab('0x14d4')](),_0x1180ae[_0x119eab('0x1d4a')]=[],_0x1180ae[_0x119eab('0x251')]=_0x49e741,_0x1180ae[_0x119eab('0x1a29')]=_0x5c0b27,_0x1180ae[_0x119eab('0x1dc1')]=_0x482840,_0x1180ae[_0x119eab('0xb0')]={},_0x1180ae[_0x119eab('0x644')]=_0x1180ae[_0x119eab('0x251')]&&_0x1180ae[_0x119eab('0x251')][_0x119eab('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1180ae[_0x119eab('0x20d6')]='VOICE.EDIT_CHANSPY',_0x1180ae['chanSpy']=angular['copy'](_0x59aa88),_0x1180ae['chanSpies']=_0x85965c,_0x1180ae[_0x119eab('0x26cc')]=![];!_0x1180ae[_0x119eab('0x1784')]&&(_0x1180ae[_0x119eab('0x1784')]={'recordingFormat':_0x119eab('0x1362')},_0x1180ae[_0x119eab('0x20d6')]=_0x119eab('0x148f'),_0x1180ae[_0x119eab('0x26cc')]=!![]);_0x1180ae[_0x119eab('0x1ff4')]=_0x357b07,_0x1180ae['savechanSpy']=_0x3a39e3,_0x1180ae[_0x119eab('0xeb6')]=_0x4ee781,_0x1180ae[_0x119eab('0x11ae')]=_0x1cac24,_0x1180ae['closeDialog']=_0x228a0a;function _0x357b07(){const _0x14c490=_0x119eab;_0x1180ae[_0x14c490('0x1d4a')]=[],_0x213fdc['voiceChanSpy'][_0x14c490('0x1195')](_0x1180ae['chanSpy'])['$promise'][_0x14c490('0x173b')](function(_0x39433c){const _0x2e5b0d=_0x14c490;_0x1180ae[_0x2e5b0d('0x1336')][_0x2e5b0d('0x1377')](_0x39433c[_0x2e5b0d('0xf1f')]()),_0x249c86[_0x2e5b0d('0xdfe')]({'title':'chanSpy\x20properly\x20created','msg':_0x1180ae[_0x2e5b0d('0x1784')][_0x2e5b0d('0x10ad')]?_0x1180ae[_0x2e5b0d('0x1784')][_0x2e5b0d('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x228a0a(_0x39433c);})[_0x14c490('0x103c')](function(_0x47f34b){const _0x453f19=_0x14c490;if(_0x47f34b['data']&&_0x47f34b['data'][_0x453f19('0x1d4a')]&&_0x47f34b[_0x453f19('0x1e07')][_0x453f19('0x1d4a')][_0x453f19('0x543')]){_0x1180ae[_0x453f19('0x1d4a')]=_0x47f34b['data']['errors']||[{'message':_0x47f34b[_0x453f19('0x1b75')](),'type':_0x453f19('0x19a3')}];for(let _0x35128b=0x0;_0x35128b<_0x47f34b[_0x453f19('0x1e07')][_0x453f19('0x1d4a')][_0x453f19('0x543')];_0x35128b+=0x1){_0x249c86[_0x453f19('0x15aa')]({'title':_0x47f34b[_0x453f19('0x1e07')][_0x453f19('0x1d4a')][_0x35128b]['type'],'msg':_0x47f34b[_0x453f19('0x1e07')]['errors'][_0x35128b][_0x453f19('0x67f')]});}}else _0x249c86[_0x453f19('0x15aa')]({'title':_0x47f34b[_0x453f19('0x276f')]?_0x453f19('0x137')+_0x47f34b['status']+'\x20-\x20'+_0x47f34b[_0x453f19('0x2696')]:'api.voiceChanSpy.save','msg':_0x47f34b[_0x453f19('0x1e07')]?JSON[_0x453f19('0x100b')](_0x47f34b[_0x453f19('0x1e07')][_0x453f19('0x67f')]):_0x47f34b[_0x453f19('0x1b75')]()});});}function _0x3a39e3(){const _0x2a3a2a=_0x119eab;_0x1180ae[_0x2a3a2a('0x1d4a')]=[],_0x213fdc['voiceChanSpy'][_0x2a3a2a('0x1842')]({'id':_0x1180ae['chanSpy']['id']},_0x1180ae[_0x2a3a2a('0x1784')])[_0x2a3a2a('0x1964')]['then'](function(_0x36d628){const _0x8f9103=_0x2a3a2a,_0x2e34ba=_0x3c8d8a()[_0x8f9103('0x18ab')](_0x1180ae[_0x8f9103('0x1336')],{'id':_0x36d628['id']});_0x2e34ba&&_0x3c8d8a()[_0x8f9103('0x9ef')](_0x2e34ba,_0x3c8d8a()[_0x8f9103('0x2114')](_0x36d628[_0x8f9103('0xf1f')](),_0x3c8d8a()[_0x8f9103('0x1d3e')](_0x2e34ba))),_0x249c86[_0x8f9103('0xdfe')]({'title':_0x8f9103('0x231a'),'msg':_0x1180ae[_0x8f9103('0x1784')]['name']?_0x1180ae['chanSpy']['name']+_0x8f9103('0x2788'):''}),_0x228a0a(_0x36d628);})['catch'](function(_0x38c24b){const _0x2558d5=_0x2a3a2a;if(_0x38c24b[_0x2558d5('0x1e07')]&&_0x38c24b[_0x2558d5('0x1e07')]['errors']&&_0x38c24b[_0x2558d5('0x1e07')][_0x2558d5('0x1d4a')][_0x2558d5('0x543')]){_0x1180ae[_0x2558d5('0x1d4a')]=_0x38c24b[_0x2558d5('0x1e07')][_0x2558d5('0x1d4a')]||[{'message':_0x38c24b[_0x2558d5('0x1b75')](),'type':_0x2558d5('0xdfd')}];for(let _0xfd6400=0x0;_0xfd6400<_0x38c24b[_0x2558d5('0x1e07')][_0x2558d5('0x1d4a')][_0x2558d5('0x543')];_0xfd6400++){_0x249c86['error']({'title':_0x38c24b[_0x2558d5('0x1e07')][_0x2558d5('0x1d4a')][_0xfd6400]['type'],'msg':_0x38c24b[_0x2558d5('0x1e07')][_0x2558d5('0x1d4a')][_0xfd6400]['message']});}}else _0x249c86[_0x2558d5('0x15aa')]({'title':_0x38c24b[_0x2558d5('0x276f')]?_0x2558d5('0x137')+_0x38c24b['status']+_0x2558d5('0x160c')+_0x38c24b[_0x2558d5('0x2696')]:_0x2558d5('0xdfd'),'msg':_0x38c24b[_0x2558d5('0x1e07')]?JSON[_0x2558d5('0x100b')](_0x38c24b[_0x2558d5('0x1e07')][_0x2558d5('0x67f')]):_0x38c24b[_0x2558d5('0x1b75')]()});});}function _0x4ee781(_0x37c63d){const _0x303fbc=_0x119eab;_0x1180ae[_0x303fbc('0x1d4a')]=[];const _0x26d03e=_0x5f2b4e[_0x303fbc('0x1d02')]()[_0x303fbc('0x20d6')](_0x303fbc('0x8ef'))[_0x303fbc('0x732')](_0x303fbc('0x730'))[_0x303fbc('0x217')](_0x303fbc('0x1310'))['ok'](_0x303fbc('0x2373'))[_0x303fbc('0x1e1f')](_0x303fbc('0x1d4e'))[_0x303fbc('0x21de')](_0x37c63d);_0x5f2b4e[_0x303fbc('0x1cb7')](_0x26d03e)[_0x303fbc('0x173b')](function(){const _0x44dc87=_0x303fbc;_0x213fdc[_0x44dc87('0x103b')][_0x44dc87('0x15e8')]({'id':_0x1180ae[_0x44dc87('0x1784')]['id']})[_0x44dc87('0x1964')][_0x44dc87('0x173b')](function(){const _0x2a0eb8=_0x44dc87;_0x3c8d8a()[_0x2a0eb8('0x1a8b')](_0x1180ae[_0x2a0eb8('0x1336')],{'id':_0x1180ae['chanSpy']['id']}),_0x249c86[_0x2a0eb8('0xdfe')]({'title':'chanSpy\x20properly\x20deleted!','msg':(_0x1180ae[_0x2a0eb8('0x1784')]['name']||_0x2a0eb8('0x1784'))+'\x20has\x20been\x20deleted!'}),_0x228a0a(_0x1180ae[_0x2a0eb8('0x1784')]);})[_0x44dc87('0x103c')](function(_0x2482cb){const _0x47e4ea=_0x44dc87;if(_0x2482cb[_0x47e4ea('0x1e07')]&&_0x2482cb[_0x47e4ea('0x1e07')][_0x47e4ea('0x1d4a')]&&_0x2482cb[_0x47e4ea('0x1e07')]['errors']['length']){_0x1180ae[_0x47e4ea('0x1d4a')]=_0x2482cb[_0x47e4ea('0x1e07')][_0x47e4ea('0x1d4a')]||[{'message':_0x2482cb[_0x47e4ea('0x1b75')](),'type':'api.voiceChanSpy.delete'}];for(let _0x24cdb5=0x0;_0x24cdb5<_0x2482cb[_0x47e4ea('0x1e07')][_0x47e4ea('0x1d4a')][_0x47e4ea('0x543')];_0x24cdb5++){_0x249c86[_0x47e4ea('0x15aa')]({'title':_0x2482cb[_0x47e4ea('0x1e07')][_0x47e4ea('0x1d4a')][_0x24cdb5]['type'],'msg':_0x2482cb[_0x47e4ea('0x1e07')][_0x47e4ea('0x1d4a')][_0x24cdb5]['message']});}}else _0x249c86[_0x47e4ea('0x15aa')]({'title':_0x2482cb[_0x47e4ea('0x276f')]?_0x47e4ea('0x137')+_0x2482cb['status']+'\x20-\x20'+_0x2482cb['statusText']:_0x47e4ea('0x2319'),'msg':_0x2482cb[_0x47e4ea('0x1e07')]?JSON[_0x47e4ea('0x100b')](_0x2482cb[_0x47e4ea('0x1e07')][_0x47e4ea('0x67f')]):_0x2482cb[_0x47e4ea('0x67f')]||_0x2482cb[_0x47e4ea('0x1b75')]()});});},function(){});}function _0x1cac24(_0x53c684){return _0x53c684===null?undefined:new Date(_0x53c684);}function _0x228a0a(_0x53e517){const _0x3bfb24=_0x119eab;_0x5f2b4e[_0x3bfb24('0x1cf4')](_0x53e517);}}const _0x2a9d78=_0x4991e8,_0x1d5d44=_0x21a6a1['p']+_0x566993('0x26a5');_0x5e32a9[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x22a9'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x5e32a9(_0x347250,_0x3eb571,_0x347a15,_0x2e9007,_0x50772a,_0x4d1dde,_0x5accf5,_0x2bf6f6,_0x25f561,_0x26b403,_0x3cbb6e,_0x57c1c3,_0x41a174,_0x111b4d,_0x3952db,_0x5676db,_0x2890b9){const _0x149818=_0x566993,_0x1a1834=this;_0x1a1834[_0x149818('0x1a29')]=_0x5676db,_0x1a1834[_0x149818('0x251')]=_0x2890b9,_0x1a1834[_0x149818('0x155f')]=_0x3952db['getCurrentUser'](),_0x1a1834['contexts']=_0x25f561||{'count':0x0,'rows':[]},_0x1a1834['userProfile']=_0x26b403,_0x1a1834['userProfileSection']=_0x3cbb6e&&_0x3cbb6e[_0x149818('0x1a2f')]==0x1?_0x3cbb6e[_0x149818('0x6aa')][0x0]:null,_0x1a1834[_0x149818('0x1dc1')]=_0x3952db[_0x149818('0xde6')](_0x1a1834['userProfileSection']?_0x1a1834[_0x149818('0x170e')][_0x149818('0x1dc1')]:null),_0x1a1834[_0x149818('0xdf9')]=_0x149818('0x22a9'),_0x1a1834[_0x149818('0x14d6')]='',_0x1a1834[_0x149818('0x2303')]=null,_0x1a1834['selectedContexts']=[],_0x1a1834[_0x149818('0xc49')]={'fields':_0x149818('0x2275'),'sort':_0x149818('0x1769'),'defaultEntry':_0x149818('0xdcd'),'limit':0xa,'page':0x1},_0x1a1834[_0x149818('0x19eb')]=_0x1d2382,_0x1a1834['deleteconfirm']=_0x89653c,_0x1a1834[_0x149818('0xdfe')]=_0x38c228,_0x1a1834['getContexts']=_0x238cf2,_0x1a1834[_0x149818('0x34a')]=_0x877567,_0x1a1834['deleteContext']=_0x40ae11,_0x1a1834[_0x149818('0xb3d')]=_0x235544,_0x1a1834[_0x149818('0x2385')]=_0xe46d15,_0x1a1834[_0x149818('0x1567')]=_0x5984a7,_0x1a1834[_0x149818('0x1085')]=_0x1e7df3;function _0x1d2382(_0x547758,_0x156aa4){const _0x579f88=_0x149818;_0x50772a[_0x579f88('0x1cb7')]({'controller':_0x579f88('0xed5'),'controllerAs':'vm','templateUrl':_0x1d5d44,'parent':angular[_0x579f88('0xb6d')](_0x4d1dde[_0x579f88('0x1a5')]),'targetEvent':_0x156aa4,'clickOutsideToClose':!![],'locals':{'context':_0x547758,'contexts':_0x1a1834[_0x579f88('0x22a9')][_0x579f88('0x6aa')],'license':_0x1a1834[_0x579f88('0x1a29')],'setting':null,'crudPermissions':_0x1a1834[_0x579f88('0x1dc1')]}});}function _0x89653c(_0x1b15aa,_0x21b04b){const _0x2ed395=_0x149818,_0x5f03b0=_0x50772a[_0x2ed395('0x1d02')]()[_0x2ed395('0x20d6')](_0x2ed395('0x5bb')+_0x3c8d8a()[_0x2ed395('0x10e')]('context')+'?')[_0x2ed395('0xf8b')](_0x2ed395('0x15b9')+(_0x1b15aa[_0x2ed395('0x10ad')]||'context')+''+'\x20will\x20be\x20deleted.')[_0x2ed395('0x217')](_0x2ed395('0x118a'))[_0x2ed395('0x21de')](_0x21b04b)['ok']('OK')['cancel'](_0x2ed395('0x468'));_0x50772a[_0x2ed395('0x1cb7')](_0x5f03b0)[_0x2ed395('0x173b')](function(){_0x40ae11(_0x1b15aa);},function(){const _0x3c7ba2=_0x2ed395;console['log'](_0x3c7ba2('0x468'));});}let _0x4c0702=!![],_0x27feb3=0x1;_0x347250[_0x149818('0x1bdb')]('vm.query.filter',function(_0x32c135,_0x5afc90){const _0x248960=_0x149818;_0x4c0702?_0x5accf5(function(){_0x4c0702=![];}):(!_0x5afc90&&(_0x27feb3=_0x1a1834['query'][_0x248960('0x182e')]),_0x32c135!==_0x5afc90&&(_0x1a1834[_0x248960('0xc49')][_0x248960('0x182e')]=0x1),!_0x32c135&&(_0x1a1834['query']['page']=_0x27feb3),_0x1a1834[_0x248960('0x1019')]());});function _0x38c228(_0x7fc0f4){_0x1a1834['contexts']=_0x7fc0f4||{'count':0x0,'rows':[]};}function _0x238cf2(){const _0x632220=_0x149818;_0x1a1834[_0x632220('0xc49')][_0x632220('0x17f0')]=(_0x1a1834['query'][_0x632220('0x182e')]-0x1)*_0x1a1834[_0x632220('0xc49')]['limit'],_0x3952db['hasRole'](_0x632220('0x79b'))?_0x1a1834[_0x632220('0x2219')]=_0x57c1c3[_0x632220('0xf01')][_0x632220('0x1d97')](_0x1a1834[_0x632220('0xc49')],_0x38c228)['$promise']:(_0x1a1834['query']['id']=_0x1a1834[_0x632220('0x257b')]['id'],_0x1a1834[_0x632220('0xc49')][_0x632220('0x17c9')]=_0x632220('0x38a'),_0x1a1834[_0x632220('0x2219')]=_0x57c1c3[_0x632220('0x257b')][_0x632220('0x135b')](_0x1a1834['query'],_0x38c228)['$promise']);}function _0x877567(_0x45dd00,_0x4ddf3a){const _0x370d0a=_0x149818;_0x50772a[_0x370d0a('0x1cb7')]({'controller':_0x370d0a('0xed5'),'controllerAs':'vm','templateUrl':_0x1d5d44,'parent':angular['element'](_0x4d1dde[_0x370d0a('0x1a5')]),'targetEvent':_0x45dd00,'clickOutsideToClose':!![],'locals':{'context':_0x4ddf3a,'contexts':_0x1a1834[_0x370d0a('0x22a9')]['rows'],'license':_0x1a1834[_0x370d0a('0x1a29')],'setting':_0x1a1834[_0x370d0a('0x251')],'crudPermissions':_0x1a1834[_0x370d0a('0x1dc1')]}});}function _0x40ae11(_0x172961){const _0x3b4235=_0x149818;_0x57c1c3[_0x3b4235('0xf01')]['delete']({'id':_0x172961['id']})[_0x3b4235('0x1964')]['then'](function(){const _0x470e2e=_0x3b4235;_0x3c8d8a()['remove'](_0x1a1834[_0x470e2e('0x22a9')][_0x470e2e('0x6aa')],{'id':_0x172961['id']}),_0x1a1834[_0x470e2e('0x22a9')][_0x470e2e('0x1a2f')]-=0x1,!_0x1a1834[_0x470e2e('0x22a9')]['rows'][_0x470e2e('0x543')]&&_0x1a1834['getContexts'](),_0x111b4d[_0x470e2e('0xdfe')]({'title':_0x3c8d8a()[_0x470e2e('0x10e')](_0x470e2e('0x1089'))+_0x470e2e('0x1c5e'),'msg':_0x172961['name']?_0x172961[_0x470e2e('0x10ad')]+_0x470e2e('0x25d2'):''});})['catch'](function(_0x3b6934){const _0x2711b5=_0x3b4235;if(_0x3b6934[_0x2711b5('0x1e07')]&&_0x3b6934[_0x2711b5('0x1e07')][_0x2711b5('0x1d4a')]&&_0x3b6934[_0x2711b5('0x1e07')][_0x2711b5('0x1d4a')][_0x2711b5('0x543')]){_0x1a1834[_0x2711b5('0x1d4a')]=_0x3b6934[_0x2711b5('0x1e07')][_0x2711b5('0x1d4a')]||[{'message':_0x3b6934['toString'](),'type':'SYSTEM:DELETEvoiceContext'}];for(let _0x44564e=0x0;_0x44564e<_0x3b6934[_0x2711b5('0x1e07')][_0x2711b5('0x1d4a')][_0x2711b5('0x543')];_0x44564e++){_0x111b4d['error']({'title':_0x3b6934[_0x2711b5('0x1e07')]['errors'][_0x44564e][_0x2711b5('0x1810')],'msg':_0x3b6934[_0x2711b5('0x1e07')]['errors'][_0x44564e][_0x2711b5('0x67f')]});}}else _0x111b4d[_0x2711b5('0x15aa')]({'title':_0x3b6934[_0x2711b5('0x276f')]?_0x2711b5('0x137')+_0x3b6934[_0x2711b5('0x276f')]+_0x2711b5('0x160c')+_0x3b6934[_0x2711b5('0x2696')]:_0x2711b5('0x1e6b'),'msg':_0x3b6934['data']?JSON[_0x2711b5('0x100b')](_0x3b6934[_0x2711b5('0x1e07')][_0x2711b5('0x67f')]):_0x3b6934[_0x2711b5('0x67f')]||_0x3b6934['toString']()});});}function _0x235544(){const _0xb1a299=_0x149818,_0x866e80=angular[_0xb1a299('0x2e3')](_0x1a1834['selectedContexts']);return _0x1a1834['selectedContexts']=[],_0x866e80;}function _0xe46d15(_0x396e5a){const _0x394233=_0x149818,_0x32ce8c=_0x50772a['confirm']()['title'](_0x394233('0x143f'))[_0x394233('0xf8b')](_0x394233('0x15b9')+_0x1a1834[_0x394233('0x8e7')][_0x394233('0x543')]+_0x394233('0xcb4')+_0x394233('0xd23'))['ariaLabel'](_0x394233('0x1c8a'))['targetEvent'](_0x396e5a)['ok']('OK')['cancel'](_0x394233('0x468'));_0x50772a['show'](_0x32ce8c)[_0x394233('0x173b')](function(){const _0x1f93e5=_0x394233;_0x1a1834[_0x1f93e5('0x8e7')]['forEach'](function(_0x443255){_0x40ae11(_0x443255);}),_0x1a1834['selectedContexts']=[];});}function _0x5984a7(){const _0x31ec68=_0x149818;_0x1a1834[_0x31ec68('0x8e7')]=[];}function _0x1e7df3(){const _0x2a3700=_0x149818;_0x1a1834[_0x2a3700('0x8e7')]=_0x1a1834[_0x2a3700('0x22a9')][_0x2a3700('0x6aa')];}}const _0x369b5c=_0x5e32a9;_0x45b5fc[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q','$translate','toasty',_0x566993('0x22a9'),_0x566993('0x2b9'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x45b5fc(_0x89794e,_0x530c93,_0x361184,_0x551924,_0x2c2fef,_0x283daf,_0x528e54,_0x555347,_0xb242b4,_0x23d4cd,_0xa33ae7,_0x5f0327,_0x4d6f98,_0x1f95cf){const _0x234006=_0x566993,_0x417c85=this;_0x417c85['currentUser']=_0xa33ae7[_0x234006('0x14d4')](),_0x417c85[_0x234006('0x1d4a')]=[],_0x417c85[_0x234006('0x251')]=_0x4d6f98,_0x417c85[_0x234006('0x1a29')]=_0x5f0327,_0x417c85[_0x234006('0x1dc1')]=_0x1f95cf,_0x417c85[_0x234006('0xb0')]={},_0x417c85[_0x234006('0x644')]=_0x417c85['setting']&&_0x417c85[_0x234006('0x251')][_0x234006('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x417c85[_0x234006('0x20d6')]=_0x234006('0x193'),_0x417c85[_0x234006('0x2b9')]=angular[_0x234006('0x2e3')](_0xb242b4),_0x417c85[_0x234006('0x22a9')]=_0x555347,_0x417c85['newContext']=![];!_0x417c85[_0x234006('0x2b9')]&&(_0x417c85[_0x234006('0x2b9')]={},_0x417c85['title']='VOICE.NEW_CONTEXT',_0x417c85['newContext']=!![]);_0x417c85[_0x234006('0x1a43')]=_0x452c87,_0x417c85[_0x234006('0x726')]=_0x2f3cab,_0x417c85[_0x234006('0x2630')]=_0x460778,_0x417c85[_0x234006('0x11ae')]=_0x58ebe8,_0x417c85[_0x234006('0x18e2')]=_0x2cf9b5;function _0x452c87(){const _0x467eba=_0x234006;_0x417c85[_0x467eba('0x1d4a')]=[],_0x23d4cd[_0x467eba('0xf01')]['save'](_0x417c85['context'])[_0x467eba('0x1964')]['then'](function(_0x41262a){const _0x141422=_0x467eba;_0x417c85[_0x141422('0x22a9')][_0x141422('0x1377')](_0x41262a['toJSON']()),_0x528e54['success']({'title':_0x141422('0x22c1'),'msg':_0x417c85[_0x141422('0x2b9')][_0x141422('0x10ad')]?_0x417c85[_0x141422('0x2b9')]['name']+_0x141422('0x209a'):''}),_0x2cf9b5(_0x41262a);})[_0x467eba('0x103c')](function(_0x1cf237){const _0x178dbb=_0x467eba;if(_0x1cf237[_0x178dbb('0x1e07')]&&_0x1cf237['data'][_0x178dbb('0x1d4a')]&&_0x1cf237['data'][_0x178dbb('0x1d4a')]['length']){_0x417c85['errors']=_0x1cf237[_0x178dbb('0x1e07')][_0x178dbb('0x1d4a')]||[{'message':_0x1cf237['toString'](),'type':_0x178dbb('0x1b7e')}];for(let _0x59defe=0x0;_0x59defe<_0x1cf237[_0x178dbb('0x1e07')][_0x178dbb('0x1d4a')]['length'];_0x59defe+=0x1){_0x528e54[_0x178dbb('0x15aa')]({'title':_0x1cf237[_0x178dbb('0x1e07')][_0x178dbb('0x1d4a')][_0x59defe]['type'],'msg':_0x1cf237[_0x178dbb('0x1e07')][_0x178dbb('0x1d4a')][_0x59defe][_0x178dbb('0x67f')]});}}else _0x528e54[_0x178dbb('0x15aa')]({'title':_0x1cf237[_0x178dbb('0x276f')]?_0x178dbb('0x137')+_0x1cf237[_0x178dbb('0x276f')]+_0x178dbb('0x160c')+_0x1cf237[_0x178dbb('0x2696')]:_0x178dbb('0x1b7e'),'msg':_0x1cf237['data']?JSON[_0x178dbb('0x100b')](_0x1cf237[_0x178dbb('0x1e07')][_0x178dbb('0x67f')]):_0x1cf237['toString']()});});}function _0x2f3cab(){const _0x4ea343=_0x234006;_0x417c85['errors']=[],_0x23d4cd['voiceContext'][_0x4ea343('0x1842')]({'id':_0x417c85[_0x4ea343('0x2b9')]['id']},_0x417c85[_0x4ea343('0x2b9')])[_0x4ea343('0x1964')]['then'](function(_0xc00121){const _0x511f16=_0x4ea343,_0x82c9eb=_0x3c8d8a()[_0x511f16('0x18ab')](_0x417c85['contexts'],{'id':_0xc00121['id']});_0x82c9eb&&_0x3c8d8a()[_0x511f16('0x9ef')](_0x82c9eb,_0x3c8d8a()[_0x511f16('0x2114')](_0xc00121[_0x511f16('0xf1f')](),_0x3c8d8a()['keys'](_0x82c9eb))),_0x528e54[_0x511f16('0xdfe')]({'title':_0x511f16('0x15db'),'msg':_0x417c85[_0x511f16('0x2b9')][_0x511f16('0x10ad')]?_0x417c85['context'][_0x511f16('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x2cf9b5(_0xc00121);})[_0x4ea343('0x103c')](function(_0x40eaf9){const _0xaa0078=_0x4ea343;if(_0x40eaf9[_0xaa0078('0x1e07')]&&_0x40eaf9['data']['errors']&&_0x40eaf9['data'][_0xaa0078('0x1d4a')]['length']){_0x417c85['errors']=_0x40eaf9[_0xaa0078('0x1e07')][_0xaa0078('0x1d4a')]||[{'message':_0x40eaf9[_0xaa0078('0x1b75')](),'type':_0xaa0078('0xab0')}];for(let _0x437f05=0x0;_0x437f05<_0x40eaf9[_0xaa0078('0x1e07')][_0xaa0078('0x1d4a')]['length'];_0x437f05++){_0x528e54[_0xaa0078('0x15aa')]({'title':_0x40eaf9[_0xaa0078('0x1e07')]['errors'][_0x437f05]['type'],'msg':_0x40eaf9[_0xaa0078('0x1e07')]['errors'][_0x437f05][_0xaa0078('0x67f')]});}}else _0x528e54['error']({'title':_0x40eaf9[_0xaa0078('0x276f')]?_0xaa0078('0x137')+_0x40eaf9[_0xaa0078('0x276f')]+_0xaa0078('0x160c')+_0x40eaf9[_0xaa0078('0x2696')]:_0xaa0078('0xab0'),'msg':_0x40eaf9['data']?JSON['stringify'](_0x40eaf9[_0xaa0078('0x1e07')]['message']):_0x40eaf9[_0xaa0078('0x1b75')]()});});}function _0x460778(_0x127682){const _0x437b9a=_0x234006;_0x417c85['errors']=[];const _0x15e7e8=_0x551924[_0x437b9a('0x1d02')]()[_0x437b9a('0x20d6')](_0x437b9a('0x8ef'))[_0x437b9a('0x732')]('The\x20context\x20will\x20be\x20deleted.')[_0x437b9a('0x217')]('Delete\x20Context')['ok'](_0x437b9a('0x2373'))[_0x437b9a('0x1e1f')](_0x437b9a('0x1d4e'))[_0x437b9a('0x21de')](_0x127682);_0x551924[_0x437b9a('0x1cb7')](_0x15e7e8)['then'](function(){const _0x451cfc=_0x437b9a;_0x23d4cd['voiceContext'][_0x451cfc('0x15e8')]({'id':_0x417c85['context']['id']})[_0x451cfc('0x1964')][_0x451cfc('0x173b')](function(){const _0xebcb1f=_0x451cfc;_0x3c8d8a()[_0xebcb1f('0x1a8b')](_0x417c85['contexts'],{'id':_0x417c85['context']['id']}),_0x528e54['success']({'title':_0xebcb1f('0x1c'),'msg':(_0x417c85[_0xebcb1f('0x2b9')]['name']||_0xebcb1f('0x2b9'))+_0xebcb1f('0x25d2')}),_0x2cf9b5(_0x417c85['context']);})[_0x451cfc('0x103c')](function(_0x512c0c){const _0x1483ab=_0x451cfc;if(_0x512c0c[_0x1483ab('0x1e07')]&&_0x512c0c[_0x1483ab('0x1e07')]['errors']&&_0x512c0c['data'][_0x1483ab('0x1d4a')][_0x1483ab('0x543')]){_0x417c85[_0x1483ab('0x1d4a')]=_0x512c0c[_0x1483ab('0x1e07')][_0x1483ab('0x1d4a')]||[{'message':_0x512c0c['toString'](),'type':'api.voiceContext.delete'}];for(let _0x215091=0x0;_0x215091<_0x512c0c['data']['errors'][_0x1483ab('0x543')];_0x215091++){_0x528e54[_0x1483ab('0x15aa')]({'title':_0x512c0c['data'][_0x1483ab('0x1d4a')][_0x215091][_0x1483ab('0x1810')],'msg':_0x512c0c[_0x1483ab('0x1e07')][_0x1483ab('0x1d4a')][_0x215091]['message']});}}else _0x528e54[_0x1483ab('0x15aa')]({'title':_0x512c0c['status']?_0x1483ab('0x137')+_0x512c0c[_0x1483ab('0x276f')]+_0x1483ab('0x160c')+_0x512c0c[_0x1483ab('0x2696')]:_0x1483ab('0x1f99'),'msg':_0x512c0c['data']?JSON[_0x1483ab('0x100b')](_0x512c0c[_0x1483ab('0x1e07')][_0x1483ab('0x67f')]):_0x512c0c[_0x1483ab('0x67f')]||_0x512c0c[_0x1483ab('0x1b75')]()});});},function(){});}function _0x58ebe8(_0x437981){return _0x437981===null?undefined:new Date(_0x437981);}function _0x2cf9b5(_0x49fab2){const _0x29c9b8=_0x234006;_0x551924[_0x29c9b8('0x1cf4')](_0x49fab2);}}const _0xc432c1=_0x45b5fc;_0x22af14[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x973'),_0x566993('0xd57'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0x22af14(_0x566914,_0x35d1e7,_0xe9410b,_0x4efdae,_0x5ab185,_0x453c0b,_0x57f477,_0x5f3d19,_0x4677ee,_0x17e8e6,_0x1279e0,_0x223688,_0x1daded,_0x1b3359){const _0x5b2b9e=_0x566993,_0xe704b7=this;_0xe704b7[_0x5b2b9e('0x155f')]=_0x1279e0[_0x5b2b9e('0x14d4')](),_0xe704b7[_0x5b2b9e('0x1d4a')]=[],_0xe704b7[_0x5b2b9e('0x251')]=_0x1daded,_0xe704b7[_0x5b2b9e('0x1a29')]=_0x223688,_0xe704b7[_0x5b2b9e('0x1dc1')]=_0x1b3359,_0xe704b7['hasModulePermissions']={},_0xe704b7[_0x5b2b9e('0x644')]=_0xe704b7[_0x5b2b9e('0x251')]&&_0xe704b7[_0x5b2b9e('0x251')][_0x5b2b9e('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe704b7[_0x5b2b9e('0x20d6')]=_0x5b2b9e('0x21bd'),_0xe704b7[_0x5b2b9e('0xd57')]=angular[_0x5b2b9e('0x2e3')](_0x4677ee),_0xe704b7[_0x5b2b9e('0x973')]=_0x5f3d19,_0xe704b7[_0x5b2b9e('0x9b0')]=![];!_0xe704b7['inboundroute']&&(_0xe704b7[_0x5b2b9e('0xd57')]={'appdata':_0x5b2b9e('0x701'),'type':_0x5b2b9e('0x1755'),'context':_0x5b2b9e('0x220a')},_0xe704b7[_0x5b2b9e('0x20d6')]=_0x5b2b9e('0x1367'),_0xe704b7[_0x5b2b9e('0x9b0')]=!![]);_0xe704b7[_0x5b2b9e('0x1a6d')]=_0x3f1447,_0xe704b7[_0x5b2b9e('0x747')]=_0x43d989,_0xe704b7[_0x5b2b9e('0x18e3')]=_0x4a2c79,_0xe704b7[_0x5b2b9e('0x11ae')]=_0x558c05,_0xe704b7[_0x5b2b9e('0x18e2')]=_0x23a972,_0x1279e0[_0x5b2b9e('0x1b4e')](_0x5b2b9e('0x79b'))?_0x17e8e6[_0x5b2b9e('0xf01')][_0x5b2b9e('0x1d97')]({'fields':_0x5b2b9e('0xd52'),'sort':_0x5b2b9e('0x10ad'),'nolimit':'true'})['$promise'][_0x5b2b9e('0x173b')](function(_0x472cf0){const _0x846b2f=_0x5b2b9e;_0xe704b7[_0x846b2f('0x22a9')]=_0x472cf0[_0x846b2f('0x6aa')]||[];})[_0x5b2b9e('0x103c')](function(_0x32b916){const _0x2be1f4=_0x5b2b9e;_0x57f477[_0x2be1f4('0x15aa')]({'title':_0x32b916['status']?_0x2be1f4('0x137')+_0x32b916[_0x2be1f4('0x276f')]+_0x2be1f4('0x160c')+_0x32b916[_0x2be1f4('0x2696')]:_0x2be1f4('0x2064'),'msg':_0x32b916['data']?JSON[_0x2be1f4('0x100b')](_0x32b916['data']):_0x32b916['toString']()});}):_0x17e8e6['voiceContext'][_0x5b2b9e('0x1d97')]({'fields':'id,name','sort':_0x5b2b9e('0x10ad'),'nolimit':'true'})[_0x5b2b9e('0x1964')][_0x5b2b9e('0x173b')](function(_0x461c15){const _0x3cdd30=_0x5b2b9e;_0xe704b7[_0x3cdd30('0x22a9')]=_0x461c15[_0x3cdd30('0x6aa')]||[];})[_0x5b2b9e('0x173b')](function(){const _0x225d3a=_0x5b2b9e;return _0x17e8e6[_0x225d3a('0x170e')]['get']({'userProfileId':_0xe704b7[_0x225d3a('0x155f')][_0x225d3a('0x1946')],'sectionId':0x195})['$promise'];})[_0x5b2b9e('0x173b')](function(_0x3ee391){const _0x48b098=_0x5b2b9e,_0xdfe8fb=_0x3ee391&&_0x3ee391[_0x48b098('0x6aa')]?_0x3ee391[_0x48b098('0x6aa')][0x0]:null;if(!_0xdfe8fb)return _0x17e8e6['voiceContext'][_0x48b098('0x1d97')]({'fields':'id,name','sort':_0x48b098('0x10ad'),'nolimit':_0x48b098('0x799'),'defaultEntry':0x1})[_0x48b098('0x1964')][_0x48b098('0x173b')](function(_0x27c399){const _0x335c49=_0x48b098;_0xe704b7['contexts']=_0x27c399[_0x335c49('0x6aa')]||[];});else{if(!_0xdfe8fb[_0x48b098('0x273e')])return _0x17e8e6[_0x48b098('0xda9')]['get']({'sectionId':_0xdfe8fb['id']})[_0x48b098('0x1964')][_0x48b098('0x173b')](function(_0x268121){const _0x118576=_0x48b098,_0x1a4750=_0x3c8d8a()[_0x118576('0x8a2')](_0x268121['rows'],function(_0x2f6c2a){const _0x2da62d=_0x118576;return _0x3c8d8a()[_0x2da62d('0x18ab')](_0xe704b7['contexts'],{'id':_0x2f6c2a['resourceId']});});let _0x40cbe2=null;_0xe704b7[_0x118576('0xd57')]&&(_0x40cbe2=_0x3c8d8a()['find'](_0xe704b7[_0x118576('0x22a9')],{'name':_0xe704b7[_0x118576('0xd57')][_0x118576('0x2b9')]}));if(_0x40cbe2&&!_0x3c8d8a()[_0x118576('0x1ec')](_0x1a4750,['id',_0x40cbe2['id']])){const _0x1121f1=_0x3c8d8a()['find'](_0xe704b7[_0x118576('0x22a9')],{'id':_0x40cbe2['id']});_0x1121f1[_0x118576('0x268e')]=![],_0x1a4750['push'](_0x1121f1);}_0xe704b7[_0x118576('0x22a9')]=_0x1a4750;});}})['catch'](function(_0x38bc91){const _0x115c15=_0x5b2b9e;_0x57f477[_0x115c15('0x15aa')]({'title':_0x38bc91[_0x115c15('0x276f')]?_0x115c15('0x137')+_0x38bc91['status']+_0x115c15('0x160c')+_0x38bc91[_0x115c15('0x2696')]:_0x115c15('0x18fd'),'msg':_0x38bc91['data']?JSON[_0x115c15('0x100b')](_0x38bc91[_0x115c15('0x1e07')]):_0x38bc91[_0x115c15('0x1b75')]()});});function _0x3f1447(){const _0xf3da9f=_0x5b2b9e;_0xe704b7['errors']=[],_0x17e8e6[_0xf3da9f('0x1630')][_0xf3da9f('0x1195')](_0xe704b7['inboundroute'])['$promise']['then'](function(_0x40ad59){const _0x110458=_0xf3da9f;_0xe704b7[_0x110458('0x973')][_0x110458('0x1377')](_0x40ad59[_0x110458('0xf1f')]()),_0x57f477[_0x110458('0xdfe')]({'title':_0x110458('0x2251'),'msg':_0xe704b7['inboundroute'][_0x110458('0x10ad')]?_0xe704b7[_0x110458('0xd57')][_0x110458('0x10ad')]+_0x110458('0x209a'):''}),_0x23a972(_0x40ad59);})['catch'](function(_0x11d3bd){const _0x297c11=_0xf3da9f;if(_0x11d3bd[_0x297c11('0x1e07')]&&_0x11d3bd[_0x297c11('0x1e07')][_0x297c11('0x1d4a')]&&_0x11d3bd[_0x297c11('0x1e07')]['errors'][_0x297c11('0x543')]){_0xe704b7[_0x297c11('0x1d4a')]=_0x11d3bd[_0x297c11('0x1e07')]['errors']||[{'message':_0x11d3bd[_0x297c11('0x1b75')](),'type':_0x297c11('0x1870')}];for(let _0x3dfce6=0x0;_0x3dfce6<_0x11d3bd[_0x297c11('0x1e07')]['errors']['length'];_0x3dfce6+=0x1){_0x57f477[_0x297c11('0x15aa')]({'title':_0x11d3bd[_0x297c11('0x1e07')][_0x297c11('0x1d4a')][_0x3dfce6][_0x297c11('0x1810')],'msg':_0x11d3bd[_0x297c11('0x1e07')][_0x297c11('0x1d4a')][_0x3dfce6][_0x297c11('0x67f')]});}}else _0x57f477[_0x297c11('0x15aa')]({'title':_0x11d3bd[_0x297c11('0x276f')]?'API:'+_0x11d3bd['status']+_0x297c11('0x160c')+_0x11d3bd['statusText']:_0x297c11('0x1870'),'msg':_0x11d3bd['data']?JSON[_0x297c11('0x100b')](_0x11d3bd[_0x297c11('0x1e07')][_0x297c11('0x67f')]):_0x11d3bd[_0x297c11('0x1b75')]()});});}function _0x43d989(){const _0x1ec229=_0x5b2b9e;_0xe704b7[_0x1ec229('0x1d4a')]=[],_0x17e8e6[_0x1ec229('0x1630')][_0x1ec229('0x1842')]({'id':_0xe704b7[_0x1ec229('0xd57')]['id']},_0xe704b7[_0x1ec229('0xd57')])[_0x1ec229('0x1964')][_0x1ec229('0x173b')](function(_0x2cca73){const _0x2fbc0e=_0x1ec229,_0xbd23ef=_0x3c8d8a()['find'](_0xe704b7['inboundroutes'],{'id':_0x2cca73['id']});_0xbd23ef&&_0x3c8d8a()[_0x2fbc0e('0x9ef')](_0xbd23ef,_0x3c8d8a()[_0x2fbc0e('0x2114')](_0x2cca73['toJSON'](),_0x3c8d8a()[_0x2fbc0e('0x1d3e')](_0xbd23ef))),_0x57f477[_0x2fbc0e('0xdfe')]({'title':_0x2fbc0e('0x1fa4'),'msg':_0xe704b7[_0x2fbc0e('0xd57')][_0x2fbc0e('0x10ad')]?_0xe704b7['inboundroute']['name']+_0x2fbc0e('0x2788'):''}),_0x23a972(_0x2cca73);})[_0x1ec229('0x103c')](function(_0x2cead5){const _0x577eea=_0x1ec229;if(_0x2cead5[_0x577eea('0x1e07')]&&_0x2cead5[_0x577eea('0x1e07')]['errors']&&_0x2cead5[_0x577eea('0x1e07')][_0x577eea('0x1d4a')][_0x577eea('0x543')]){_0xe704b7[_0x577eea('0x1d4a')]=_0x2cead5[_0x577eea('0x1e07')][_0x577eea('0x1d4a')]||[{'message':_0x2cead5[_0x577eea('0x1b75')](),'type':'api.voiceExtension.update'}];for(let _0x470e83=0x0;_0x470e83<_0x2cead5[_0x577eea('0x1e07')]['errors'][_0x577eea('0x543')];_0x470e83++){_0x57f477[_0x577eea('0x15aa')]({'title':_0x2cead5[_0x577eea('0x1e07')]['errors'][_0x470e83][_0x577eea('0x1810')],'msg':_0x2cead5[_0x577eea('0x1e07')][_0x577eea('0x1d4a')][_0x470e83]['message']});}}else _0x57f477[_0x577eea('0x15aa')]({'title':_0x2cead5[_0x577eea('0x276f')]?_0x577eea('0x137')+_0x2cead5['status']+'\x20-\x20'+_0x2cead5[_0x577eea('0x2696')]:'api.voiceExtension.update','msg':_0x2cead5[_0x577eea('0x1e07')]?JSON[_0x577eea('0x100b')](_0x2cead5['data'][_0x577eea('0x67f')]):_0x2cead5['toString']()});});}function _0x4a2c79(_0x3230bc){const _0x358f3e=_0x5b2b9e;_0xe704b7['errors']=[];const _0x201f23=_0x4efdae[_0x358f3e('0x1d02')]()['title']('Are\x20you\x20sure?')[_0x358f3e('0x732')]('The\x20inboundroute\x20will\x20be\x20deleted.')['ariaLabel'](_0x358f3e('0x15c'))['ok'](_0x358f3e('0x2373'))[_0x358f3e('0x1e1f')](_0x358f3e('0x1d4e'))[_0x358f3e('0x21de')](_0x3230bc);_0x4efdae['show'](_0x201f23)[_0x358f3e('0x173b')](function(){const _0x13766f=_0x358f3e;_0x17e8e6[_0x13766f('0x1630')][_0x13766f('0x15e8')]({'id':_0xe704b7['inboundroute']['id']})[_0x13766f('0x1964')][_0x13766f('0x173b')](function(){const _0x4ce2b9=_0x13766f;_0x3c8d8a()[_0x4ce2b9('0x1a8b')](_0xe704b7[_0x4ce2b9('0x973')],{'id':_0xe704b7[_0x4ce2b9('0xd57')]['id']}),_0x57f477['success']({'title':_0x4ce2b9('0x1313'),'msg':(_0xe704b7['inboundroute'][_0x4ce2b9('0x10ad')]||_0x4ce2b9('0xd57'))+'\x20has\x20been\x20deleted!'}),_0x23a972(_0xe704b7[_0x4ce2b9('0xd57')]);})[_0x13766f('0x103c')](function(_0x358eb3){const _0x4df595=_0x13766f;if(_0x358eb3[_0x4df595('0x1e07')]&&_0x358eb3[_0x4df595('0x1e07')][_0x4df595('0x1d4a')]&&_0x358eb3[_0x4df595('0x1e07')]['errors']['length']){_0xe704b7['errors']=_0x358eb3[_0x4df595('0x1e07')][_0x4df595('0x1d4a')]||[{'message':_0x358eb3[_0x4df595('0x1b75')](),'type':'api.voiceExtension.delete'}];for(let _0x2958c7=0x0;_0x2958c7<_0x358eb3[_0x4df595('0x1e07')][_0x4df595('0x1d4a')]['length'];_0x2958c7++){_0x57f477['error']({'title':_0x358eb3[_0x4df595('0x1e07')]['errors'][_0x2958c7][_0x4df595('0x1810')],'msg':_0x358eb3[_0x4df595('0x1e07')]['errors'][_0x2958c7][_0x4df595('0x67f')]});}}else _0x57f477[_0x4df595('0x15aa')]({'title':_0x358eb3['status']?'API:'+_0x358eb3[_0x4df595('0x276f')]+'\x20-\x20'+_0x358eb3['statusText']:_0x4df595('0x917'),'msg':_0x358eb3[_0x4df595('0x1e07')]?JSON['stringify'](_0x358eb3[_0x4df595('0x1e07')]['message']):_0x358eb3['message']||_0x358eb3[_0x4df595('0x1b75')]()});});},function(){});}function _0x558c05(_0x3b258a){return _0x3b258a===null?undefined:new Date(_0x3b258a);}function _0x23a972(_0x370d11){const _0x1cb270=_0x5b2b9e;_0x4efdae[_0x1cb270('0x1cf4')](_0x370d11);}}const _0x5a2fcb=_0x22af14,_0x497a02=_0x21a6a1['p']+_0x566993('0x16f8'),_0xf2061b=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog.html',_0x1b8795=_0x21a6a1['p']+_0x566993('0x15cf'),_0x29b0d8=_0x21a6a1['p']+_0x566993('0x22da'),_0x50a556=_0x21a6a1['p']+_0x566993('0x1b5d'),_0x653eb7=_0x21a6a1['p']+_0x566993('0x1a2'),_0x2529c1=_0x21a6a1['p']+_0x566993('0xb34'),_0x110b2a=_0x21a6a1['p']+_0x566993('0x1678'),_0x1dc204=_0x21a6a1['p']+_0x566993('0x365'),_0x1211ac=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html/dialog.html',_0x327764=_0x21a6a1['p']+_0x566993('0x1bc0'),_0x5b7f80=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog.html',_0x18ec1b=_0x21a6a1['p']+_0x566993('0x283c');_0x359131[_0x566993('0x17bb')]=[_0x566993('0xbd4'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0x1600')];const _0x37087f={'agi':_0x497a02,'custom':_0xf2061b,'dial':_0x1b8795,'externaldial':_0x29b0d8,'goto':_0x50a556,'hangup':_0x653eb7,'internaldial':_0x2529c1,'interval':_0x110b2a,'playback':_0x1dc204,'queue':_0x1211ac,'ringgroup':_0x327764,'set':_0x5b7f80,'voicemail':_0x18ec1b};function _0x359131(_0x179992,_0xfa4f97,_0x580fd5,_0xd8fef7,_0x413064){const _0x164510=_0x566993,_0x2998cc=this;_0x2998cc[_0x164510('0x155f')]=_0x413064[_0x164510('0x14d4')](),_0x2998cc[_0x164510('0xd57')]={},_0x2998cc[_0x164510('0x1138')]={'count':0x0,'rows':[]},_0x2998cc[_0x164510('0x131d')]=[],_0x2998cc[_0x164510('0x1dc1')],_0x2998cc[_0x164510('0xc49')]={'sort':_0x164510('0xb3')},_0x2998cc['apps']=_0x3c8d8a()['reject'](_0x3c8d8a()[_0x164510('0x1b45')]([{'app':_0x164510('0x1d55'),'appType':_0x164510('0x55a'),'types':[_0x164510('0x17b3'),_0x164510('0xbb4'),_0x164510('0x3e3')],'fields':[],'isApp':![]},{'app':'Queue','appType':'queue','context':_0x164510('0x220a'),'type':_0x164510('0x10b4'),'appdata':_0x164510('0x24c3'),'icon':_0x164510('0x108b'),'options':'xX','interval':'*,*,*,*','answer':!![],'isApp':!![],'extraApi':[{'name':'sounds','field':{'name':_0x164510('0x156f'),'key':'save_name','prefix':_0x164510('0x1afc')},'route':'sound','filters':{'fields':_0x164510('0xda1'),'sort':_0x164510('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':'queue','key':_0x164510('0x10ad')},'route':_0x164510('0x1282'),'filters':{'type':_0x164510('0x1755'),'fields':_0x164510('0x1c66'),'sort':_0x164510('0x10ad'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x164510('0x1436'),'name':_0x164510('0x172'),'type':'apiselect','values':_0x164510('0xeae'),'value':_0x164510('0x26db'),'option':_0x164510('0x26db'),'required':!![],'param':0x0},{'title':'Options','name':'options','type':'text','param':0x1},{'title':_0x164510('0x1e59'),'name':_0x164510('0x135a'),'type':_0x164510('0x86e'),'param':0x2},{'title':_0x164510('0xa45'),'name':'sound','type':_0x164510('0x23fd'),'values':_0x164510('0x1230'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','option':_0x164510('0x1279'),'defaultValues':[{'value':'\x27\x27','option':_0x164510('0x2187')}],'param':0x3},{'title':'Timeout','name':_0x164510('0x1f84'),'type':_0x164510('0x1d81'),'min':0x0,'param':0x4},{'title':_0x164510('0x430'),'name':_0x164510('0x2426'),'type':'text','param':0x5},{'title':_0x164510('0x209b'),'name':'macro','type':_0x164510('0x86e'),'param':0x6},{'title':_0x164510('0x122c'),'name':_0x164510('0x18ef'),'type':'text','param':0x7},{'title':'Rule','name':_0x164510('0x2136'),'type':'text','param':0x8},{'title':'Position','name':_0x164510('0xf2c'),'type':_0x164510('0x1d81'),'min':0x0,'param':0x9},{'title':_0x164510('0xa76'),'name':'answer','type':_0x164510('0x22f1'),'general':!![]}]},{'app':'Playback','appType':_0x164510('0x119d'),'context':'from-voip-provider','type':'Inbound','icon':_0x164510('0x108b'),'interval':_0x164510('0x17c5'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x164510('0x1230'),'field':{'name':_0x164510('0x156f'),'key':_0x164510('0x14c8'),'prefix':_0x164510('0x1afc')},'route':_0x164510('0x156f'),'filters':{'fields':_0x164510('0xda1'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':'Audio_Files','name':_0x164510('0x1c00'),'type':'apiselect','values':_0x164510('0x1230'),'value':_0x164510('0x2101'),'option':_0x164510('0xdb2'),'required':!![],'param':0x0},{'title':'Options','name':_0x164510('0x2010'),'type':_0x164510('0x86e'),'param':0x1},{'title':_0x164510('0xa76'),'name':_0x164510('0x14a0'),'type':_0x164510('0x22f1'),'general':!![]}]},{'app':'Dial','appType':_0x164510('0x284f'),'context':_0x164510('0x220a'),'type':_0x164510('0x10b4'),'icon':_0x164510('0x108b'),'interval':_0x164510('0x17c5'),'options':'xX','isApp':!![],'fields':[{'title':_0x164510('0x786'),'name':_0x164510('0xde3'),'type':_0x164510('0x86e'),'required':!![],'param':0x0},{'title':_0x164510('0x1b9a'),'name':'timeout','type':_0x164510('0x1d81'),'min':0x0,'param':0x1},{'title':_0x164510('0x17eb'),'name':'options','type':'text','param':0x2},{'title':'Url','name':_0x164510('0xd1'),'type':_0x164510('0x86e'),'param':0x3}]},{'app':_0x164510('0x1020'),'appType':_0x164510('0x1da8'),'context':_0x164510('0x220a'),'type':_0x164510('0x10b4'),'icon':_0x164510('0x108b'),'interval':_0x164510('0x17c5'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x164510('0x1e14'),'field':{'name':_0x164510('0x166f'),'key':_0x164510('0x10ad'),'prefix':_0x164510('0x1a58')},'route':_0x164510('0x166f'),'filters':{'fields':_0x164510('0x2799'),'sort':_0x164510('0x10ad'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x164510('0x7b0')},{'id':0xcb,'role':_0x164510('0x149c')}]}}],'fields':[{'title':_0x164510('0x2265'),'name':_0x164510('0x166f'),'type':_0x164510('0x23fd'),'values':_0x164510('0x1e14'),'value':'\x27SIP/{{user.name}}\x27','option':_0x164510('0x807'),'required':!![],'param':0x0},{'title':_0x164510('0x1b9a'),'name':_0x164510('0x1f84'),'type':_0x164510('0x1d81'),'min':0x0,'param':0x1},{'title':'Options','name':_0x164510('0x2010'),'type':_0x164510('0x86e'),'param':0x2},{'title':_0x164510('0x1e59'),'name':_0x164510('0xd1'),'type':_0x164510('0x86e'),'param':0x3}]},{'app':_0x164510('0x1020'),'appType':_0x164510('0x10f8'),'context':_0x164510('0x220a'),'type':_0x164510('0x1755'),'icon':_0x164510('0x108b'),'interval':_0x164510('0x17c5'),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x164510('0x15b7'),'key':_0x164510('0x10ad')},'route':_0x164510('0x15b7'),'filters':{'fields':'id,name','sort':_0x164510('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x164510('0x183a'),'name':'trunk','type':_0x164510('0x23fd'),'values':_0x164510('0x673'),'value':_0x164510('0xd41'),'option':_0x164510('0xd41'),'required':!![],'param':0x0},{'title':_0x164510('0x27a3'),'name':_0x164510('0xa04'),'required':!![],'type':_0x164510('0x86e')},{'title':_0x164510('0x1b9a'),'name':_0x164510('0x1f84'),'type':_0x164510('0x1d81'),'min':0x0,'param':0x1},{'title':_0x164510('0x17eb'),'name':_0x164510('0x2010'),'type':_0x164510('0x86e'),'param':0x2},{'title':_0x164510('0x1e59'),'name':'url','type':'text','param':0x3}]},{'app':'Dial','appType':_0x164510('0x123a'),'context':_0x164510('0x220a'),'type':'inbound','icon':_0x164510('0x108b'),'interval':_0x164510('0x17c5'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x164510('0x1e14'),'field':{'name':_0x164510('0x237c'),'key':_0x164510('0x10ad'),'prefix':'SIP/'},'route':_0x164510('0x166f'),'filters':{'fields':_0x164510('0x2799'),'sort':_0x164510('0x10ad'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x164510('0x7b0')},{'id':0xcb,'role':_0x164510('0x149c')}]}}],'fields':[{'title':_0x164510('0x2265'),'name':_0x164510('0x237c'),'type':_0x164510('0x23fd'),'multiple':!![],'values':_0x164510('0x1e14'),'value':_0x164510('0x8f7'),'option':_0x164510('0x1c44'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x164510('0x1f84'),'type':_0x164510('0x1d81'),'min':0x0,'param':0x1},{'title':'Options','name':_0x164510('0x2010'),'type':'text','param':0x2},{'title':_0x164510('0x1e59'),'name':_0x164510('0xd1'),'type':'text','param':0x3}]},{'app':_0x164510('0x175'),'alias':_0x164510('0x27e7'),'appType':_0x164510('0x2426'),'context':_0x164510('0x220a'),'type':_0x164510('0x1755'),'icon':_0x164510('0x108b'),'interval':_0x164510('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x164510('0x23a1'),'field':{'name':'project','key':_0x164510('0x10ad'),'prefix':'agi://127.0.0.1/square,'},'route':_0x164510('0x550'),'filters':{'fields':_0x164510('0xd52'),'sort':'name','nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':'Project','name':'project','type':'apiselect','values':_0x164510('0x23a1'),'value':'\x27agi://127.0.0.1/square,{{project.name}}\x27','option':_0x164510('0x293'),'required':!![],'param':0x0}]},{'app':_0x164510('0x2016'),'appType':_0x164510('0x863'),'context':_0x164510('0x220a'),'type':_0x164510('0x10b4'),'icon':_0x164510('0x108b'),'interval':_0x164510('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x164510('0x22a9'),'field':{'name':_0x164510('0x2b9'),'key':'name'},'route':_0x164510('0xf01'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x164510('0x1089'),'name':_0x164510('0x2b9'),'type':_0x164510('0x23fd'),'values':_0x164510('0x22a9'),'value':_0x164510('0x1654'),'option':_0x164510('0x1654'),'required':!![],'param':0x0},{'title':'Extension','name':_0x164510('0x22ce'),'type':_0x164510('0x86e'),'required':!![],'param':0x1},{'title':_0x164510('0x1162'),'name':'priority','type':_0x164510('0x86e'),'required':!![],'param':0x2}]},{'app':_0x164510('0x13cc'),'appType':'hangup','context':_0x164510('0x220a'),'type':'Inbound','icon':_0x164510('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x164510('0x2731'),'name':_0x164510('0x1c00'),'type':_0x164510('0xc65'),'param':0x0,'values':[{'option':'HANGUPCAUSE_1','value':_0x164510('0x1d26')},{'option':_0x164510('0x10ec'),'value':_0x164510('0x858')},{'option':'HANGUPCAUSE_17','value':_0x164510('0x1027')},{'option':_0x164510('0x2410'),'value':_0x164510('0x259f')},{'option':_0x164510('0x277d'),'value':'\x2721\x27'},{'option':_0x164510('0x18b7'),'value':_0x164510('0xb47')},{'option':_0x164510('0x1c45'),'value':_0x164510('0x2840')},{'option':_0x164510('0x11af'),'value':_0x164510('0x8f4')},{'option':_0x164510('0x1412'),'value':_0x164510('0x13e4')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x164510('0x11b6'),'appType':_0x164510('0x256d'),'context':_0x164510('0x220a'),'type':_0x164510('0x10b4'),'separator':'=','icon':_0x164510('0x108b'),'interval':_0x164510('0x17c5'),'extraApi':[{'name':_0x164510('0x2715'),'field':{'name':_0x164510('0x10ad'),'key':_0x164510('0x10ad')},'route':_0x164510('0x1b56'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':'Variable','name':_0x164510('0x10ad'),'type':'apiselect','values':_0x164510('0x2715'),'value':_0x164510('0x11eb'),'option':_0x164510('0x11eb'),'required':!![],'param':0x0},{'title':_0x164510('0x1997'),'name':_0x164510('0xa7b'),'type':_0x164510('0x86e'),'required':!![],'param':0x1}]},{'app':null,'appType':_0x164510('0xbb4'),'icon':_0x164510('0x108b'),'type':'Inbound','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x164510('0x206d'),'name':'app','type':'text','required':!![],'param':0x0},{'title':'Arguments','name':_0x164510('0x1c00'),'type':_0x164510('0x86e'),'param':0x1}]},{'app':_0x164510('0x11ce'),'appType':_0x164510('0x2710'),'context':'from-voip-provider','icon':_0x164510('0x108b'),'type':_0x164510('0x10b4'),'interval':_0x164510('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x164510('0x2698'),'field':{'name':_0x164510('0x579'),'key':_0x164510('0x14d3'),'suffix':'@from-voicemail'},'route':_0x164510('0x579'),'filters':{'fields':_0x164510('0x354'),'sort':_0x164510('0x14d3'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':'Mailbox@Context','name':_0x164510('0x579'),'type':'apiselect','values':'voiceMails','value':_0x164510('0x2247'),'option':_0x164510('0x1cd1'),'required':!![],'param':0x0},{'title':_0x164510('0x17eb'),'name':_0x164510('0x2010'),'type':_0x164510('0x86e'),'param':0x1}]}],[_0x164510('0x17e')]),{'isApp':![]}),_0x2998cc[_0x164510('0x3e3')]={'group':{'name':_0x164510('0x1749'),'pull':_0x164510('0x979')},'animation':0x64,'sort':![]},_0x2998cc['applications']={'group':{'name':_0x164510('0x1fb7'),'put':_0x164510('0x1749')},'animation':0x64,'onAdd':function(_0x3001f8){_0x3f2fda(_0x3001f8,_0x3001f8['newIndex']);},'onSort':function(){_0x4f9cc1();}},_0x2998cc[_0x164510('0xb9c')]=_0x29800b,_0x2998cc[_0x164510('0x2051')]=_0x3258aa,_0x2998cc[_0x164510('0xdfa')]=_0x5ea506,_0x2998cc[_0x164510('0xcd0')]=_0x3f2fda,_0x2998cc[_0x164510('0xc28')]=_0x39b7f3,_0x2998cc[_0x164510('0x741')]=_0x237f5d,_0x2998cc[_0x164510('0x27d')]=_0x163783,_0x2998cc[_0x164510('0x131f')]=_0x4f9cc1,_0x2998cc['getIntervals']=_0x12f57a;function _0x29800b(_0x5ac568,_0x5e8e71){const _0xf7b24e=_0x164510;_0x2998cc[_0xf7b24e('0xd57')]=_0x5ac568,_0x2998cc['crudPermissions']=typeof _0x5e8e71!==_0xf7b24e('0x6e5')?_0x5e8e71:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2998cc[_0xf7b24e('0x1f7e')][_0xf7b24e('0x6fc')]=!_0x2998cc[_0xf7b24e('0x1dc1')][_0xf7b24e('0x1f3d')]?!![]:![],_0x2998cc[_0xf7b24e('0xc49')][_0xf7b24e('0x1011')]=_0x5ac568['id'],_0x2998cc[_0xf7b24e('0xc49')]['isApp']=!![],_0x2998cc['query']['nolimit']=!![],_0x2998cc['getInboundRouteApps'](),_0x2998cc['getIntervals']();}function _0x3258aa(_0x178683,_0x28662e,_0x523a17){const _0x5a8c04=_0x164510,_0x298aa4=_0xfa4f97[_0x5a8c04('0x1d02')]()[_0x5a8c04('0x20d6')](_0x5a8c04('0xbac'))[_0x5a8c04('0xf8b')](_0x5a8c04('0x15b9')+_0x178683[_0x5a8c04('0x17e')]+''+_0x5a8c04('0xd23'))['ariaLabel'](_0x5a8c04('0x499'))[_0x5a8c04('0x21de')](_0x523a17)['ok']('OK')[_0x5a8c04('0x1e1f')]('CANCEL');_0xfa4f97['show'](_0x298aa4)[_0x5a8c04('0x173b')](function(){const _0x39c503=_0x5a8c04;_0x2998cc[_0x39c503('0x1138')][_0x39c503('0x6aa')][_0x39c503('0x553')](_0x28662e,0x1),_0x4f9cc1();},function(){const _0x2854fa=_0x5a8c04;console[_0x2854fa('0xe37')](_0x2854fa('0x468'));});}function _0x3f2fda(_0x3d9249,_0x28e95a){const _0x2ddd4c=_0x164510;if(_0x2998cc['inboundrouteApps'][_0x2ddd4c('0x6aa')][_0x2ddd4c('0x543')]){const _0xd115b8=_0x2998cc[_0x2ddd4c('0x1138')][_0x2ddd4c('0x6aa')][_0x28e95a]?_0x2998cc['inboundrouteApps'][_0x2ddd4c('0x6aa')][_0x28e95a]:_0x2998cc['inboundrouteApps'][_0x2ddd4c('0x6aa')][0x0],_0x2ea3f9=(_0xd115b8['appType']||_0xd115b8['app'])[_0x2ddd4c('0x1e68')]();_0xfa4f97[_0x2ddd4c('0x1cb7')]({'controller':_0x2ddd4c('0x380')+_0x2ea3f9+_0x2ddd4c('0x1c96'),'controllerAs':'vm','templateUrl':_0x37087f[_0x2ea3f9],'parent':angular[_0x2ddd4c('0xb6d')](_0x580fd5[_0x2ddd4c('0x1a5')]),'targetEvent':_0x3d9249,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0xd115b8,'inboundroute':_0x2998cc['inboundroute'],'crudPermissions':_0x2998cc[_0x2ddd4c('0x1dc1')]}})[_0x2ddd4c('0x173b')](function(_0x22b3f3){const _0x303bcb=_0x2ddd4c;_0x22b3f3&&(_0x22b3f3['id']?_0x2998cc[_0x303bcb('0x1138')][_0x303bcb('0x6aa')][_0x28e95a]=_0x22b3f3:_0x2998cc['inboundrouteApps'][_0x303bcb('0x6aa')][_0x303bcb('0x553')](_0x28e95a,0x0,_0x22b3f3),_0x4f9cc1());})[_0x2ddd4c('0x103c')](function(_0x29fe89){const _0x45393d=_0x2ddd4c;_0x29fe89&&_0xd8fef7['error']({'title':_0x29fe89[_0x45393d('0x276f')]?'API:'+_0x29fe89['status']+'\x20-\x20'+_0x29fe89[_0x45393d('0x2696')]:_0x45393d('0x974'),'msg':_0x29fe89[_0x45393d('0x1e07')]?JSON[_0x45393d('0x100b')](_0x29fe89['data']):_0x29fe89['toString']()});});}}function _0x39b7f3(_0x3e6281,_0x42f435){const _0x33e723=_0x164510;if(_0x2998cc['inboundrouteApps'][_0x33e723('0x6aa')][_0x33e723('0x543')]){const _0x498bc3=_0x2998cc[_0x33e723('0x1138')][_0x33e723('0x6aa')][_0x42f435]?_0x2998cc[_0x33e723('0x1138')]['rows'][_0x42f435]:_0x2998cc[_0x33e723('0x1138')][_0x33e723('0x6aa')][0x0];_0xfa4f97[_0x33e723('0x1cb7')]({'controller':_0x33e723('0x2339'),'controllerAs':'vm','templateUrl':_0x110b2a,'parent':angular['element'](_0x580fd5['body']),'targetEvent':_0x3e6281,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x498bc3[_0x33e723('0x55a')],'IntervalId':_0x498bc3[_0x33e723('0x600')],'application':!![]},'intervals':[],'crudPermissions':_0x2998cc[_0x33e723('0x1dc1')]}})[_0x33e723('0x173b')](function(_0x7e60){const _0x517e9e=_0x33e723;_0x7e60&&(_0x498bc3[_0x517e9e('0x55a')]=_0x7e60[_0x517e9e('0x55a')]||_0x517e9e('0x17c5'),_0x498bc3['IntervalId']=_0x7e60[_0x517e9e('0x600')]||null,_0x4f9cc1());});}}function _0x4f9cc1(){const _0x3b54d5=_0x164510,_0x2d565b=[_0x3b54d5('0x172'),'playback'];let _0x3463a2=0x2,_0x4c48b3=[];_0x4c48b3[_0x3b54d5('0x18bb')]({'type':'inbound','app':_0x3b54d5('0x11b6'),'appdata':'CDR(type)=inbound','context':_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x2b9')],'exten':_0x2998cc['inboundroute'][_0x3b54d5('0x1a60')],'priority':_0x3463a2++,'VoiceExtensionId':_0x2998cc[_0x3b54d5('0xd57')]['id']}),_0x4c48b3[_0x3b54d5('0x18bb')]({'type':_0x3b54d5('0x1755'),'app':_0x3b54d5('0x11b6'),'appdata':'XCALLY-MOTION-ANSWER=0','context':_0x2998cc['inboundroute']['context'],'exten':_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x1a60')],'priority':_0x3463a2++,'VoiceExtensionId':_0x2998cc[_0x3b54d5('0xd57')]['id']}),_0x4c48b3['push']({'type':_0x3b54d5('0x1755'),'app':_0x3b54d5('0x11b6'),'appdata':_0x3b54d5('0x4b3'),'context':_0x2998cc['inboundroute'][_0x3b54d5('0x2b9')],'exten':_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x1a60')],'priority':_0x3463a2++,'VoiceExtensionId':_0x2998cc['inboundroute']['id']}),_0x4c48b3[_0x3b54d5('0x18bb')]({'type':_0x3b54d5('0x1755'),'app':_0x3b54d5('0x11b6'),'appdata':'MONITOR_OPTIONS=ab','context':_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x2b9')],'exten':_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x1a60')],'priority':_0x3463a2++,'VoiceExtensionId':_0x2998cc[_0x3b54d5('0xd57')]['id']});for(let _0xd2325=0x0,_0x1c2589=0x0;_0xd2325<_0x2998cc['inboundrouteApps'][_0x3b54d5('0x6aa')]['length'];_0xd2325++,_0x1c2589=0x0){const _0x475d72=_0x2998cc[_0x3b54d5('0x1138')]['rows'][_0xd2325],_0x2aa99a=[],_0x522ec8=[];_0x475d72['intervals']=_0x475d72[_0x3b54d5('0x55a')]!=='*,*,*,*'?[_0x475d72[_0x3b54d5('0x55a')]]:_0x475d72['IntervalId']?_0x3c8d8a()['map'](_0x3c8d8a()['filter'](_0x2998cc[_0x3b54d5('0x21c4')][_0x3b54d5('0x6aa')],{'IntervalId':_0x475d72[_0x3b54d5('0x600')]}),_0x3b54d5('0x55a')):[],_0x475d72[_0x3b54d5('0x2b9')]=_0x2998cc[_0x3b54d5('0xd57')]['context'],_0x475d72[_0x3b54d5('0x1a60')]=_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x1a60')];_0x475d72[_0x3b54d5('0x1810')]&&(_0x475d72['type']=_0x475d72[_0x3b54d5('0x1810')][_0x3b54d5('0x1e68')]());typeof _0x475d72[_0x3b54d5('0x14a0')]!==_0x3b54d5('0x6e5')&&(_0x2d565b[_0x3b54d5('0x2814')](_0x475d72[_0x3b54d5('0x17e')]['toLowerCase']())&&_0x475d72[_0x3b54d5('0x9d7')]!==_0x3b54d5('0xbb4')&&(_0x475d72['answer']?(_0x2aa99a[_0x3b54d5('0x18bb')]({'type':_0x475d72['type'][_0x3b54d5('0x1e68')](),'app':_0x3b54d5('0x2795'),'appdata':_0x3b54d5('0x1031'),'context':_0x2998cc[_0x3b54d5('0xd57')]['context'],'exten':_0x2998cc[_0x3b54d5('0xd57')]['exten'],'priority':_0x475d72[_0x3b54d5('0x21c4')][_0x3b54d5('0x543')]+_0x3463a2+_0x1c2589++,'VoiceExtensionId':_0x2998cc['inboundroute']['id']}),_0x2aa99a[_0x3b54d5('0x18bb')]({'type':_0x475d72[_0x3b54d5('0x1810')][_0x3b54d5('0x1e68')](),'app':_0x3b54d5('0x11b6'),'appdata':'XCALLY-MOTION-ANSWER=1','context':_0x2998cc[_0x3b54d5('0xd57')]['context'],'exten':_0x2998cc['inboundroute'][_0x3b54d5('0x1a60')],'priority':_0x475d72[_0x3b54d5('0x21c4')][_0x3b54d5('0x543')]+_0x3463a2+_0x1c2589++,'VoiceExtensionId':_0x2998cc[_0x3b54d5('0xd57')]['id']})):(_0x2aa99a[_0x3b54d5('0x18bb')]({'type':_0x475d72[_0x3b54d5('0x1810')][_0x3b54d5('0x1e68')](),'app':_0x3b54d5('0x2795'),'appdata':_0x3b54d5('0xd4c'),'context':_0x2998cc[_0x3b54d5('0xd57')]['context'],'exten':_0x2998cc['inboundroute'][_0x3b54d5('0x1a60')],'priority':_0x475d72[_0x3b54d5('0x21c4')][_0x3b54d5('0x543')]+_0x3463a2+_0x1c2589++,'VoiceExtensionId':_0x2998cc[_0x3b54d5('0xd57')]['id']}),_0x2aa99a['push']({'type':_0x475d72[_0x3b54d5('0x1810')]['toLowerCase'](),'app':_0x3b54d5('0x11b6'),'appdata':_0x3b54d5('0x186d'),'context':_0x2998cc['inboundroute'][_0x3b54d5('0x2b9')],'exten':_0x2998cc['inboundroute']['exten'],'priority':_0x475d72['intervals'][_0x3b54d5('0x543')]+_0x3463a2+_0x1c2589++,'VoiceExtensionId':_0x2998cc[_0x3b54d5('0xd57')]['id']}))));for(let _0x5abd15=0x0;_0x5abd15<_0x475d72[_0x3b54d5('0x21c4')][_0x3b54d5('0x543')];_0x5abd15++){const _0x5b51de=_0x3463a2+_0x475d72[_0x3b54d5('0x21c4')][_0x3b54d5('0x543')],_0x4b5770=_0x5abd15===_0x475d72['intervals'][_0x3b54d5('0x543')]-0x1?_0x3463a2+_0x2aa99a[_0x3b54d5('0x543')]+_0x522ec8['length']+0x2:_0x3463a2+_0x5abd15+0x1;_0x2aa99a[_0x3b54d5('0x553')](_0x5abd15,0x0,{'type':_0x3b54d5('0x1755'),'app':_0x3b54d5('0x25f'),'appdata':_0x475d72['intervals'][_0x5abd15]+'?'+_0x2998cc[_0x3b54d5('0xd57')]['context']+_0x3b54d5('0x2680')+_0x5b51de+':'+_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x2b9')]+',${EXTEN},'+_0x4b5770,'exten':_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x1a60')],'context':_0x2998cc[_0x3b54d5('0xd57')][_0x3b54d5('0x2b9')],'priority':_0x3463a2+_0x5abd15,'VoiceExtensionId':_0x2998cc[_0x3b54d5('0xd57')]['id']});}_0x475d72[_0x3b54d5('0xb3')]=_0x2aa99a[_0x3b54d5('0x543')]?_0x3c8d8a()[_0x3b54d5('0x7f')](_0x2aa99a)['priority']+0x1:_0x3463a2,_0x3463a2=(_0x522ec8[_0x3b54d5('0x543')]?_0x3c8d8a()['last'](_0x522ec8)['priority']:_0x475d72['priority'])+0x1,_0x4c48b3=_0x3c8d8a()[_0x3b54d5('0x163f')](_0x4c48b3,_0x2aa99a,[_0x475d72],_0x522ec8);}_0x4c48b3[_0x3b54d5('0x18bb')]({'type':_0x3b54d5('0x1755'),'app':_0x3b54d5('0x1665'),'exten':_0x2998cc['inboundroute'][_0x3b54d5('0x1a60')],'context':_0x2998cc['inboundroute'][_0x3b54d5('0x2b9')],'priority':_0x3463a2,'VoiceExtensionId':_0x2998cc[_0x3b54d5('0xd57')]['id']}),_0x179992[_0x3b54d5('0x1630')][_0x3b54d5('0x271c')]({'id':_0x2998cc[_0x3b54d5('0xd57')]['id']},_0x3c8d8a()['sortBy'](_0x4c48b3,_0x3b54d5('0xb3')))[_0x3b54d5('0x1964')][_0x3b54d5('0x173b')](function(_0xfdd68d){const _0x2f3b25=_0x3b54d5;_0x2998cc[_0x2f3b25('0x1138')]['rows']=_0xfdd68d[_0x2f3b25('0x6aa')];})[_0x3b54d5('0x103c')](function(_0x4dd3db){const _0x46790c=_0x3b54d5;console[_0x46790c('0x15aa')](_0x4dd3db);});}function _0x3edfaa(_0x426f88){const _0xcdc35c=_0x164510;_0x2998cc[_0xcdc35c('0x1138')]=_0x426f88||{'count':0x0,'rows':[]};}function _0x12f57a(){const _0x16b293=_0x164510;return _0x179992[_0x16b293('0x55a')]['get']({'fields':_0x16b293('0x23e4')})[_0x16b293('0x1964')][_0x16b293('0x173b')](function(_0x2faa32){const _0x334643=_0x16b293;_0x2998cc[_0x334643('0x21c4')]=_0x2faa32;})[_0x16b293('0x103c')](function(_0x5c9913){const _0x32196b=_0x16b293;console[_0x32196b('0x15aa')](_0x5c9913);});}function _0x5ea506(){const _0x316da2=_0x164510;_0x2998cc['promise']=_0x179992[_0x316da2('0x1630')][_0x316da2('0x1d97')](_0x2998cc[_0x316da2('0xc49')],_0x3edfaa)[_0x316da2('0x1964')];}function _0x237f5d(_0x14b39b){const _0x2a2c7d=_0x164510;_0x3c8d8a()[_0x2a2c7d('0x1a8b')](_0x2998cc['inboundrouteApps'][_0x2a2c7d('0x6aa')],{'id':_0x14b39b['id']}),_0x4f9cc1(),_0xd8fef7['success']({'title':'App\x20deleted!','msg':_0x14b39b[_0x2a2c7d('0x17e')]?_0x14b39b[_0x2a2c7d('0x17e')]+_0x2a2c7d('0x25d2'):''});}function _0x163783(_0x3e7707){const _0x2b0eef=_0x164510,_0x83f5a0=_0xfa4f97[_0x2b0eef('0x1d02')]()['title'](_0x2b0eef('0x8a0'))[_0x2b0eef('0xf8b')](_0x2b0eef('0x15b9')+_0x2998cc[_0x2b0eef('0x131d')][_0x2b0eef('0x543')]+'\x20selected'+_0x2b0eef('0xd23'))[_0x2b0eef('0x217')](_0x2b0eef('0x296'))[_0x2b0eef('0x21de')](_0x3e7707)['ok']('OK')[_0x2b0eef('0x1e1f')]('CANCEL');_0xfa4f97['show'](_0x83f5a0)[_0x2b0eef('0x173b')](function(){const _0xe0123=_0x2b0eef;_0x2998cc['selectedInboundRouteApps'][_0xe0123('0xa6a')](function(_0x34b44d){const _0x1c346a=_0xe0123;_0x3c8d8a()[_0x1c346a('0x1a8b')](_0x2998cc[_0x1c346a('0x1138')]['rows'],{'id':_0x34b44d['id']});}),_0x2998cc[_0xe0123('0x131d')]=[],_0x4f9cc1();});}}const _0x5b4d18=_0x359131;_0x3b2bea[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x1db0'),_0x566993('0xd57'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x3b2bea(_0x5bf898,_0x480b7,_0x2e16ec,_0x263b41,_0x3cb282,_0x5c1202,_0x38b5fa,_0x5cad5e){const _0x45cf2d=_0x566993,_0x3d0232=this;_0x3d0232['currentUser']=_0x38b5fa['getCurrentUser'](),_0x3d0232[_0x45cf2d('0x1d4a')]=[],_0x3d0232['title']=_0x45cf2d('0xcee')+(_0x263b41[_0x45cf2d('0x9d7')]||_0x263b41[_0x45cf2d('0x17e')])[_0x45cf2d('0x1164')](),_0x3d0232[_0x45cf2d('0x2426')]=angular[_0x45cf2d('0x2e3')](_0x263b41),_0x3d0232[_0x45cf2d('0x1dc1')]=_0x5cad5e,_0x3d0232['hasModulePermissions']={};if(_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1c00')])switch(_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x9d7')]?_0x3d0232[_0x45cf2d('0x2426')]['appType'][_0x45cf2d('0x1e68')]():_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x17e')][_0x45cf2d('0x1e68')]()){case _0x45cf2d('0xbb4'):break;case _0x45cf2d('0x1601'):{const _0x1cb5cd=_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1c00')][_0x45cf2d('0x43a')](',');_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x237a')]=_0x1cb5cd[0x0],_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x604')]=_0x1cb5cd[0x1],_0x3d0232['agi'][_0x45cf2d('0x1a7')]=_0x1cb5cd[_0x45cf2d('0x2456')](0x2,_0x1cb5cd[_0x45cf2d('0x543')])[_0x45cf2d('0x2259')](',');}break;case'amazonlex':{const _0x32e38d=_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1c00')][_0x45cf2d('0x43a')](',');_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x2e0')]=_0x32e38d[0x0],_0x3d0232['agi'][_0x45cf2d('0x1d93')]=_0x32e38d[0x1],_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x10fc')]=_0x32e38d[0x2],_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x53')]=_0x32e38d[0x3],_0x3d0232['agi']['welcomemessage']=_0x32e38d[_0x45cf2d('0x2456')](0x4,_0x32e38d[_0x45cf2d('0x543')])[_0x45cf2d('0x2259')](',');}break;case _0x45cf2d('0x23fe'):{const _0x2aa5cf=_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1c00')][_0x45cf2d('0x43a')](',');_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x611')]=isNaN(_0x2aa5cf[0x0])?_0x2aa5cf[0x0]:parseInt(_0x2aa5cf[0x0],0xa),_0x3d0232[_0x45cf2d('0x2426')]['text']=_0x2aa5cf['slice'](0x1,_0x2aa5cf[_0x45cf2d('0x543')])[_0x45cf2d('0x2259')](',');}break;case'message':_0x3d0232['agi']['text']=_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1c00')];break;case _0x45cf2d('0x256d'):_0x3d0232['agi'][_0x45cf2d('0x10ad')]=_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1c00')][_0x45cf2d('0x43a')]('=')[0x0],_0x3d0232[_0x45cf2d('0x2426')]['value']=_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1c00')][_0x45cf2d('0x43a')]('=')[0x1];break;case _0x45cf2d('0x2426'):_0x3d0232['agi'][_0x45cf2d('0x220b')]=_0x3d0232['agi'][_0x45cf2d('0x1c00')];break;default:{const _0x230b6f=_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1c00')][_0x45cf2d('0x43a')](',');_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x220b')]=_0x3c8d8a()[_0x45cf2d('0x1a56')](_0x230b6f[0x0])?_0x230b6f[0x0]:isNaN(_0x230b6f[0x0])?_0x230b6f[0x0]:parseInt(_0x230b6f[0x0],0xa);}break;}else{}_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1810')]&&_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1810')][_0x45cf2d('0x1e68')]()===_0x45cf2d('0xb33')&&_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x9d7')][_0x45cf2d('0x1e68')]()===_0x45cf2d('0x1edc')&&(_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x23f7')]=_0x3d0232[_0x45cf2d('0x2426')]['phone']?_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0xa04')][_0x45cf2d('0x43a')]('$')[0x0]:undefined,_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0x1961')]=_0x3d0232[_0x45cf2d('0x2426')][_0x45cf2d('0xe95')]?'CALLERID(all)='+_0x3d0232[_0x45cf2d('0x2426')]['callerID']:undefined);_0x3d0232[_0x45cf2d('0x820')]=_0x1b6094,_0x3d0232[_0x45cf2d('0x18e2')]=_0x434082,_0x38b5fa[_0x45cf2d('0x1b4e')](_0x45cf2d('0x79b'))?_0x5c1202['squareProject'][_0x45cf2d('0x1d97')]({'fields':_0x45cf2d('0xd52'),'sort':_0x45cf2d('0x10ad'),'nolimit':_0x45cf2d('0x799')})[_0x45cf2d('0x1964')]['then'](function(_0x55bf82){const _0x587b61=_0x45cf2d;_0x3d0232['projects']=_0x55bf82[_0x587b61('0x6aa')]||[];})[_0x45cf2d('0x103c')](function(_0x389959){const _0x19f60e=_0x45cf2d;_0x2e16ec['error']({'title':_0x389959['status']?_0x19f60e('0x137')+_0x389959['status']+'\x20-\x20'+_0x389959[_0x19f60e('0x2696')]:'SYSTEM:GET_PROJECTS','msg':_0x389959['data']?JSON[_0x19f60e('0x100b')](_0x389959[_0x19f60e('0x1e07')]):_0x389959[_0x19f60e('0x1b75')]()});}):_0x5c1202[_0x45cf2d('0x550')]['get']({'fields':_0x45cf2d('0xd52'),'sort':_0x45cf2d('0x10ad'),'nolimit':_0x45cf2d('0x799')})[_0x45cf2d('0x1964')]['then'](function(_0x580168){const _0xa0330c=_0x45cf2d;_0x3d0232['projects']=_0x580168[_0xa0330c('0x6aa')]||[];})[_0x45cf2d('0x173b')](function(){const _0x544523=_0x45cf2d;return _0x5c1202[_0x544523('0x170e')]['get']({'userProfileId':_0x3d0232['currentUser'][_0x544523('0x1946')],'sectionId':0x44f})[_0x544523('0x1964')];})[_0x45cf2d('0x173b')](function(_0x2c1ba3){const _0x4a461a=_0x45cf2d,_0x19a9db=_0x2c1ba3&&_0x2c1ba3['rows']?_0x2c1ba3[_0x4a461a('0x6aa')][0x0]:null;if(!_0x19a9db){const _0x49f1d1=[];let _0x16439e=null;_0x3d0232[_0x4a461a('0x2426')]&&(_0x16439e=_0x3c8d8a()[_0x4a461a('0x18ab')](_0x3d0232['projects'],{'name':_0x3d0232[_0x4a461a('0x2426')][_0x4a461a('0x220b')]}));for(let _0x1b1b6f=0x0;_0x1b1b6f<_0x3d0232[_0x4a461a('0x23a1')][_0x4a461a('0x543')];_0x1b1b6f++){_0x16439e&&_0x3d0232[_0x4a461a('0x23a1')][_0x1b1b6f]['id']===_0x16439e['id']&&(_0x3d0232['projects'][_0x1b1b6f][_0x4a461a('0x268e')]=![],_0x49f1d1['push'](_0x3d0232[_0x4a461a('0x23a1')][_0x1b1b6f]));}_0x3d0232[_0x4a461a('0x23a1')]=_0x49f1d1;}else{if(!_0x19a9db[_0x4a461a('0x273e')])return _0x5c1202['userProfileResource'][_0x4a461a('0x1d97')]({'sectionId':_0x19a9db['id']})[_0x4a461a('0x1964')][_0x4a461a('0x173b')](function(_0x448ef5){const _0x30733a=_0x4a461a,_0x5c3345=_0x3c8d8a()[_0x30733a('0x8a2')](_0x448ef5[_0x30733a('0x6aa')],function(_0x501521){const _0x3a726d=_0x30733a;return _0x3c8d8a()[_0x3a726d('0x18ab')](_0x3d0232[_0x3a726d('0x23a1')],{'id':_0x501521[_0x3a726d('0x1ce0')]});});let _0x38b7c2=null;_0x3d0232[_0x30733a('0x2426')]&&(_0x38b7c2=_0x3c8d8a()['find'](_0x3d0232['projects'],{'name':_0x3d0232[_0x30733a('0x2426')][_0x30733a('0x220b')]}));if(_0x38b7c2&&!_0x3c8d8a()[_0x30733a('0x1ec')](_0x5c3345,['id',_0x38b7c2['id']])){const _0x542d62=_0x3c8d8a()['find'](_0x3d0232[_0x30733a('0x23a1')],{'id':_0x38b7c2['id']});_0x542d62[_0x30733a('0x268e')]=![],_0x5c3345[_0x30733a('0x18bb')](_0x542d62);}_0x3d0232[_0x30733a('0x23a1')]=_0x5c3345;});}})[_0x45cf2d('0x103c')](function(_0x257a04){const _0xf181ec=_0x45cf2d;_0x2e16ec['error']({'title':_0x257a04['status']?_0xf181ec('0x137')+_0x257a04[_0xf181ec('0x276f')]+'\x20-\x20'+_0x257a04[_0xf181ec('0x2696')]:'SYSTEM:GETprojects','msg':_0x257a04[_0xf181ec('0x1e07')]?JSON[_0xf181ec('0x100b')](_0x257a04[_0xf181ec('0x1e07')]):_0x257a04['toString']()});});function _0x1b6094(){const _0x17de21=_0x45cf2d;_0x3d0232[_0x17de21('0x1d4a')]=[];const _0x2aa612=[];_0x3d0232['agi']['type']&&_0x3d0232[_0x17de21('0x2426')]['type'][_0x17de21('0x1e68')]()==='outbound'&&_0x3d0232[_0x17de21('0x2426')][_0x17de21('0x9d7')]==='outboundDial'&&(_0x3d0232[_0x17de21('0x2426')][_0x17de21('0xa04')]=_0x3cb282[_0x17de21('0x1429')]?(_0x3d0232[_0x17de21('0x2426')][_0x17de21('0x23f7')]||'')+_0x17de21('0x1957')+_0x3cb282['cutdigits']+'}':(_0x3d0232[_0x17de21('0x2426')]['prefix']||'')+_0x17de21('0x1dc5'),_0x3cb282['recordingFormat']!==_0x17de21('0x2741')?_0x3d0232[_0x17de21('0x2426')][_0x17de21('0x2010')]['indexOf'](_0x17de21('0x2474'))<0x0&&(_0x3d0232[_0x17de21('0x2426')][_0x17de21('0x2010')]+=_0x17de21('0x2474')):_0x3d0232[_0x17de21('0x2426')]['options']=_0x3d0232[_0x17de21('0x2426')]['options'][_0x17de21('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x3d0232[_0x17de21('0x2426')]['appType']&&_0x3d0232[_0x17de21('0x2426')][_0x17de21('0x9d7')]===_0x17de21('0xbb4')){}else switch((_0x3d0232[_0x17de21('0x2426')][_0x17de21('0x17e')]||_0x3d0232[_0x17de21('0x2426')][_0x17de21('0x9d7')])[_0x17de21('0x1e68')]()){case _0x17de21('0x256d'):_0x3d0232['agi'][_0x17de21('0x1c00')]=_0x3d0232['agi'][_0x17de21('0x10ad')]+'='+_0x3d0232[_0x17de21('0x2426')][_0x17de21('0xa7b')];break;case _0x17de21('0xbb4'):break;default:_0x2aa612[0x0]=_0x3d0232['agi'][_0x17de21('0x220b')],_0x3d0232[_0x17de21('0x2426')][_0x17de21('0x1c00')]=_0x2aa612[_0x17de21('0x2259')](',');}_0x434082(_0x3d0232[_0x17de21('0x2426')]);}function _0x434082(_0x5f3f2e){const _0x3dfbd9=_0x45cf2d;_0x5bf898[_0x3dfbd9('0x1cf4')](_0x5f3f2e);}}const _0x1f53c3=_0x3b2bea;_0x17938f[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x1db0'),_0x566993('0xd57'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x17938f(_0x5a908,_0x4cd6fc,_0x3b90d4,_0xeb52f1,_0x246c03,_0x5d2d86,_0x281398,_0x5e3d48){const _0xae95fa=_0x566993,_0x453bd8=this;_0x453bd8[_0xae95fa('0x155f')]=_0x281398[_0xae95fa('0x14d4')](),_0x453bd8[_0xae95fa('0x1d4a')]=[],_0x453bd8[_0xae95fa('0x20d6')]='VOICE.EDIT_'+(_0xeb52f1['appType']||_0xeb52f1[_0xae95fa('0x17e')])[_0xae95fa('0x1164')](),_0x453bd8['custom']=angular[_0xae95fa('0x2e3')](_0xeb52f1),_0x453bd8['crudPermissions']=_0x5e3d48,_0x453bd8[_0xae95fa('0xb0')]={};if(_0x453bd8['custom']['appdata'])switch(_0x453bd8['custom'][_0xae95fa('0x9d7')]?_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x9d7')][_0xae95fa('0x1e68')]():_0x453bd8[_0xae95fa('0xbb4')]['app']['toLowerCase']()){case'custom':break;case _0xae95fa('0x1601'):{const _0x4d6a20=_0x453bd8['custom'][_0xae95fa('0x1c00')][_0xae95fa('0x43a')](',');_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x237a')]=_0x4d6a20[0x0],_0x453bd8[_0xae95fa('0xbb4')]['language']=_0x4d6a20[0x1],_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1a7')]=_0x4d6a20['slice'](0x2,_0x4d6a20[_0xae95fa('0x543')])[_0xae95fa('0x2259')](',');}break;case'amazonlex':{const _0x28be9a=_0x453bd8['custom'][_0xae95fa('0x1c00')]['split'](',');_0x453bd8['custom'][_0xae95fa('0x2e0')]=_0x28be9a[0x0],_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1d93')]=_0x28be9a[0x1],_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x10fc')]=_0x28be9a[0x2],_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x53')]=_0x28be9a[0x3],_0x453bd8['custom'][_0xae95fa('0x1a7')]=_0x28be9a[_0xae95fa('0x2456')](0x4,_0x28be9a[_0xae95fa('0x543')])[_0xae95fa('0x2259')](',');}break;case _0xae95fa('0x23fe'):{const _0x1749e3=_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1c00')]['split'](',');_0x453bd8[_0xae95fa('0xbb4')]['times']=isNaN(_0x1749e3[0x0])?_0x1749e3[0x0]:parseInt(_0x1749e3[0x0],0xa),_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x86e')]=_0x1749e3['slice'](0x1,_0x1749e3[_0xae95fa('0x543')])[_0xae95fa('0x2259')](',');}break;case'message':_0x453bd8[_0xae95fa('0xbb4')]['text']=_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1c00')];break;case _0xae95fa('0x256d'):_0x453bd8['custom']['name']=_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1c00')][_0xae95fa('0x43a')]('=')[0x0],_0x453bd8['custom']['value']=_0x453bd8['custom'][_0xae95fa('0x1c00')][_0xae95fa('0x43a')]('=')[0x1];break;case _0xae95fa('0x2426'):_0x453bd8['custom'][_0xae95fa('0x220b')]=_0x453bd8[_0xae95fa('0xbb4')]['appdata'];break;default:{const _0x35e182=_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1c00')]['split'](',');_0x453bd8['custom'][_0xae95fa('0x17e')]=_0x3c8d8a()[_0xae95fa('0x1a56')](_0x35e182[0x0])?_0x35e182[0x0]:isNaN(_0x35e182[0x0])?_0x35e182[0x0]:parseInt(_0x35e182[0x0],0xa),_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1c00')]=_0x3c8d8a()[_0xae95fa('0x1a56')](_0x35e182[0x1])?_0x35e182[0x1]:isNaN(_0x35e182[0x1])?_0x35e182[0x1]:parseInt(_0x35e182[0x1],0xa);}break;}else{}_0x453bd8[_0xae95fa('0xbb4')]['type']&&_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1810')][_0xae95fa('0x1e68')]()==='outbound'&&_0x453bd8['custom']['appType'][_0xae95fa('0x1e68')]()===_0xae95fa('0x1edc')&&(_0x453bd8['custom'][_0xae95fa('0x23f7')]=_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0xa04')]?_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0xa04')][_0xae95fa('0x43a')]('$')[0x0]:undefined,_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0x1961')]=_0x453bd8[_0xae95fa('0xbb4')]['callerID']?_0xae95fa('0x20a8')+_0x453bd8[_0xae95fa('0xbb4')][_0xae95fa('0xe95')]:undefined);_0x453bd8[_0xae95fa('0x820')]=_0x5afa7f,_0x453bd8[_0xae95fa('0x18e2')]=_0x530e31;function _0x5afa7f(){const _0x5632e4=_0xae95fa;_0x453bd8[_0x5632e4('0x1d4a')]=[];const _0x45f6d2=[];_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x1810')]&&_0x453bd8['custom']['type']['toLowerCase']()===_0x5632e4('0xb33')&&_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x9d7')]===_0x5632e4('0x2150')&&(_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0xa04')]=_0x246c03[_0x5632e4('0x1429')]?(_0x453bd8[_0x5632e4('0xbb4')]['prefix']||'')+_0x5632e4('0x1957')+_0x246c03['cutdigits']+'}':(_0x453bd8['custom']['prefix']||'')+_0x5632e4('0x1dc5'),_0x246c03['recordingFormat']!==_0x5632e4('0x2741')?_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x2010')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x453bd8['custom'][_0x5632e4('0x2010')]+=_0x5632e4('0x2474')):_0x453bd8['custom'][_0x5632e4('0x2010')]=_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x2010')][_0x5632e4('0x166c')](_0x5632e4('0x2474'),''));if(_0x453bd8['custom'][_0x5632e4('0x9d7')]&&_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x9d7')]===_0x5632e4('0xbb4')){}else switch((_0x453bd8['custom'][_0x5632e4('0x17e')]||_0x453bd8['custom'][_0x5632e4('0x9d7')])[_0x5632e4('0x1e68')]()){case _0x5632e4('0x256d'):_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x1c00')]=_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x10ad')]+'='+_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0xa7b')];break;case'custom':break;default:_0x45f6d2[0x0]=_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x17e')],_0x45f6d2[0x1]=_0x453bd8[_0x5632e4('0xbb4')]['appdata'],_0x453bd8[_0x5632e4('0xbb4')][_0x5632e4('0x1c00')]=_0x45f6d2[_0x5632e4('0x2259')](',');}_0x530e31(_0x453bd8[_0x5632e4('0xbb4')]);}function _0x530e31(_0xc74042){_0x5a908['hide'](_0xc74042);}}const _0x2aaa3f=_0x17938f;_0x4d4026[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),'inboundrouteApp',_0x566993('0xd57'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x4d4026(_0x584b44,_0x55c9af,_0x5ebf17,_0x5d947a,_0x2e7ce9,_0x93c618,_0x19e7f7,_0x12d173){const _0x42c0b2=_0x566993,_0x3aeacd=this;_0x3aeacd[_0x42c0b2('0x155f')]=_0x19e7f7[_0x42c0b2('0x14d4')](),_0x3aeacd[_0x42c0b2('0x1d4a')]=[],_0x3aeacd[_0x42c0b2('0x20d6')]=_0x42c0b2('0xcee')+(_0x5d947a[_0x42c0b2('0x9d7')]||_0x5d947a[_0x42c0b2('0x17e')])[_0x42c0b2('0x1164')](),_0x3aeacd[_0x42c0b2('0x284f')]=angular['copy'](_0x5d947a),_0x3aeacd[_0x42c0b2('0x1dc1')]=_0x12d173,_0x3aeacd['hasModulePermissions']={};if(_0x3aeacd['dial'][_0x42c0b2('0x1c00')])switch(_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x9d7')]?_0x3aeacd[_0x42c0b2('0x284f')]['appType'][_0x42c0b2('0x1e68')]():_0x3aeacd['dial'][_0x42c0b2('0x17e')][_0x42c0b2('0x1e68')]()){case _0x42c0b2('0xbb4'):break;case _0x42c0b2('0x1601'):{const _0x4b1016=_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x1c00')][_0x42c0b2('0x43a')](',');_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x237a')]=_0x4b1016[0x0],_0x3aeacd[_0x42c0b2('0x284f')]['language']=_0x4b1016[0x1],_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x1a7')]=_0x4b1016[_0x42c0b2('0x2456')](0x2,_0x4b1016[_0x42c0b2('0x543')])['join'](',');}break;case _0x42c0b2('0x1680'):{const _0x4b439d=_0x3aeacd['dial'][_0x42c0b2('0x1c00')][_0x42c0b2('0x43a')](',');_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x2e0')]=_0x4b439d[0x0],_0x3aeacd['dial'][_0x42c0b2('0x1d93')]=_0x4b439d[0x1],_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x10fc')]=_0x4b439d[0x2],_0x3aeacd['dial'][_0x42c0b2('0x53')]=_0x4b439d[0x3],_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x1a7')]=_0x4b439d['slice'](0x4,_0x4b439d[_0x42c0b2('0x543')])['join'](',');}break;case _0x42c0b2('0x23fe'):{const _0x4c615f=_0x3aeacd[_0x42c0b2('0x284f')]['appdata']['split'](',');_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x611')]=isNaN(_0x4c615f[0x0])?_0x4c615f[0x0]:parseInt(_0x4c615f[0x0],0xa),_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x86e')]=_0x4c615f[_0x42c0b2('0x2456')](0x1,_0x4c615f[_0x42c0b2('0x543')])[_0x42c0b2('0x2259')](',');}break;case'message':_0x3aeacd['dial'][_0x42c0b2('0x86e')]=_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x1c00')];break;case'set':_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x10ad')]=_0x3aeacd[_0x42c0b2('0x284f')]['appdata'][_0x42c0b2('0x43a')]('=')[0x0],_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0xa7b')]=_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x1c00')][_0x42c0b2('0x43a')]('=')[0x1];break;case'agi':_0x3aeacd[_0x42c0b2('0x284f')]['project']=_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x1c00')];break;default:{const _0x14c644=_0x3aeacd[_0x42c0b2('0x284f')]['appdata'][_0x42c0b2('0x43a')](',');_0x3aeacd['dial'][_0x42c0b2('0xde3')]=_0x3c8d8a()[_0x42c0b2('0x1a56')](_0x14c644[0x0])?_0x14c644[0x0]:isNaN(_0x14c644[0x0])?_0x14c644[0x0]:parseInt(_0x14c644[0x0],0xa),_0x3aeacd[_0x42c0b2('0x284f')]['timeout']=_0x3c8d8a()['isEmpty'](_0x14c644[0x1])?_0x14c644[0x1]:isNaN(_0x14c644[0x1])?_0x14c644[0x1]:parseInt(_0x14c644[0x1],0xa),_0x3aeacd['dial'][_0x42c0b2('0x2010')]=_0x3c8d8a()['isEmpty'](_0x14c644[0x2])?_0x14c644[0x2]:isNaN(_0x14c644[0x2])?_0x14c644[0x2]:parseInt(_0x14c644[0x2],0xa),_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0xd1')]=_0x3c8d8a()[_0x42c0b2('0x1a56')](_0x14c644[0x3])?_0x14c644[0x3]:isNaN(_0x14c644[0x3])?_0x14c644[0x3]:parseInt(_0x14c644[0x3],0xa);}break;}else{}_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x1810')]&&_0x3aeacd['dial']['type'][_0x42c0b2('0x1e68')]()===_0x42c0b2('0xb33')&&_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x9d7')][_0x42c0b2('0x1e68')]()==='outbounddial'&&(_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x23f7')]=_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0xa04')]?_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0xa04')][_0x42c0b2('0x43a')]('$')[0x0]:undefined,_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0x1961')]=_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0xe95')]?_0x42c0b2('0x20a8')+_0x3aeacd[_0x42c0b2('0x284f')][_0x42c0b2('0xe95')]:undefined);_0x3aeacd['saveInboundRouteApp']=_0x3850d9,_0x3aeacd['closeDialog']=_0x26249f;function _0x3850d9(){const _0x1d7753=_0x42c0b2;_0x3aeacd[_0x1d7753('0x1d4a')]=[];const _0x5c00a1=[];_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x1810')]&&_0x3aeacd['dial'][_0x1d7753('0x1810')][_0x1d7753('0x1e68')]()===_0x1d7753('0xb33')&&_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x9d7')]===_0x1d7753('0x2150')&&(_0x3aeacd[_0x1d7753('0x284f')]['phone']=_0x2e7ce9[_0x1d7753('0x1429')]?(_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x23f7')]||'')+_0x1d7753('0x1957')+_0x2e7ce9[_0x1d7753('0x1429')]+'}':(_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x23f7')]||'')+_0x1d7753('0x1dc5'),_0x2e7ce9[_0x1d7753('0x76c')]!==_0x1d7753('0x2741')?_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x2010')][_0x1d7753('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x2010')]+='U(xcally-mixmonitor-context)'):_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x2010')]=_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x2010')][_0x1d7753('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x9d7')]&&_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x9d7')]==='custom'){}else switch((_0x3aeacd[_0x1d7753('0x284f')]['app']||_0x3aeacd['dial'][_0x1d7753('0x9d7')])[_0x1d7753('0x1e68')]()){case _0x1d7753('0x256d'):_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x1c00')]=_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x10ad')]+'='+_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0xa7b')];break;case'custom':break;default:_0x5c00a1[0x0]=_0x3aeacd['dial'][_0x1d7753('0xde3')],_0x5c00a1[0x1]=_0x3aeacd[_0x1d7753('0x284f')]['timeout'],_0x5c00a1[0x2]=_0x3aeacd[_0x1d7753('0x284f')][_0x1d7753('0x2010')],_0x5c00a1[0x3]=_0x3aeacd[_0x1d7753('0x284f')]['url'],_0x3aeacd['dial'][_0x1d7753('0x1c00')]=_0x5c00a1[_0x1d7753('0x2259')](',');}_0x26249f(_0x3aeacd[_0x1d7753('0x284f')]);}function _0x26249f(_0x2af021){const _0x4f2db7=_0x42c0b2;_0x584b44[_0x4f2db7('0x1cf4')](_0x2af021);}}const _0x4a1041=_0x4d4026;_0x195be2[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x1db0'),_0x566993('0xd57'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x195be2(_0x3f1a04,_0x486a15,_0x16bea1,_0x4dea5e,_0x1035ff,_0x14e22e,_0x85960d,_0x5ecee6){const _0xf61e9b=_0x566993,_0x14a779=this;_0x14a779[_0xf61e9b('0x155f')]=_0x85960d[_0xf61e9b('0x14d4')](),_0x14a779['errors']=[],_0x14a779[_0xf61e9b('0x20d6')]='VOICE.EDIT_'+(_0x4dea5e[_0xf61e9b('0x9d7')]||_0x4dea5e[_0xf61e9b('0x17e')])[_0xf61e9b('0x1164')](),_0x14a779[_0xf61e9b('0x1a4f')]=angular['copy'](_0x4dea5e),_0x14a779['crudPermissions']=_0x5ecee6,_0x14a779['hasModulePermissions']={};if(_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1c00')])switch(_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x9d7')]?_0x14a779['externaldial'][_0xf61e9b('0x9d7')][_0xf61e9b('0x1e68')]():_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x17e')][_0xf61e9b('0x1e68')]()){case _0xf61e9b('0xbb4'):break;case'dialogflow':{const _0x10a6e6=_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1c00')][_0xf61e9b('0x43a')](',');_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x237a')]=_0x10a6e6[0x0],_0x14a779[_0xf61e9b('0x1a4f')]['language']=_0x10a6e6[0x1],_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1a7')]=_0x10a6e6[_0xf61e9b('0x2456')](0x2,_0x10a6e6[_0xf61e9b('0x543')])[_0xf61e9b('0x2259')](',');}break;case _0xf61e9b('0x1680'):{const _0x5712ca=_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1c00')][_0xf61e9b('0x43a')](',');_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x2e0')]=_0x5712ca[0x0],_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1d93')]=_0x5712ca[0x1],_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x10fc')]=_0x5712ca[0x2],_0x14a779['externaldial'][_0xf61e9b('0x53')]=_0x5712ca[0x3],_0x14a779[_0xf61e9b('0x1a4f')]['welcomemessage']=_0x5712ca['slice'](0x4,_0x5712ca[_0xf61e9b('0x543')])[_0xf61e9b('0x2259')](',');}break;case _0xf61e9b('0x23fe'):{const _0x415c0c=_0x14a779[_0xf61e9b('0x1a4f')]['appdata'][_0xf61e9b('0x43a')](',');_0x14a779['externaldial'][_0xf61e9b('0x611')]=isNaN(_0x415c0c[0x0])?_0x415c0c[0x0]:parseInt(_0x415c0c[0x0],0xa),_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x86e')]=_0x415c0c[_0xf61e9b('0x2456')](0x1,_0x415c0c[_0xf61e9b('0x543')])[_0xf61e9b('0x2259')](',');}break;case'message':_0x14a779[_0xf61e9b('0x1a4f')]['text']=_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1c00')];break;case _0xf61e9b('0x256d'):_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x10ad')]=_0x14a779[_0xf61e9b('0x1a4f')]['appdata'][_0xf61e9b('0x43a')]('=')[0x0],_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0xa7b')]=_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1c00')][_0xf61e9b('0x43a')]('=')[0x1];break;case'agi':_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x220b')]=_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1c00')];break;default:{const _0x5a5714=_0x14a779['externaldial'][_0xf61e9b('0x1c00')]['split'](',');_0x14a779['externaldial'][_0xf61e9b('0x15b7')]=_0x5a5714[0x0][_0xf61e9b('0x43a')]('/')[0x1],_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0xa04')]=_0x5a5714[0x0]['split']('/')[0x2],_0x14a779['externaldial'][_0xf61e9b('0x1f84')]=_0x3c8d8a()[_0xf61e9b('0x1a56')](_0x5a5714[0x1])?_0x5a5714[0x1]:isNaN(_0x5a5714[0x1])?_0x5a5714[0x1]:parseInt(_0x5a5714[0x1],0xa),_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x2010')]=_0x3c8d8a()[_0xf61e9b('0x1a56')](_0x5a5714[0x2])?_0x5a5714[0x2]:isNaN(_0x5a5714[0x2])?_0x5a5714[0x2]:parseInt(_0x5a5714[0x2],0xa),_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0xd1')]=_0x3c8d8a()[_0xf61e9b('0x1a56')](_0x5a5714[0x3])?_0x5a5714[0x3]:isNaN(_0x5a5714[0x3])?_0x5a5714[0x3]:parseInt(_0x5a5714[0x3],0xa);}break;}else{}_0x14a779['externaldial'][_0xf61e9b('0x1810')]&&_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1810')][_0xf61e9b('0x1e68')]()===_0xf61e9b('0xb33')&&_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x9d7')][_0xf61e9b('0x1e68')]()===_0xf61e9b('0x1edc')&&(_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x23f7')]=_0x14a779[_0xf61e9b('0x1a4f')]['phone']?_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0xa04')][_0xf61e9b('0x43a')]('$')[0x0]:undefined,_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0x1961')]=_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0xe95')]?'CALLERID(all)='+_0x14a779[_0xf61e9b('0x1a4f')][_0xf61e9b('0xe95')]:undefined);_0x14a779['saveInboundRouteApp']=_0x5085d0,_0x14a779[_0xf61e9b('0x18e2')]=_0x284178,_0x85960d['hasRole']('admin')?_0x14e22e[_0xf61e9b('0x15b7')][_0xf61e9b('0x1d97')]({'fields':_0xf61e9b('0xd52'),'sort':_0xf61e9b('0x10ad'),'nolimit':'true'})[_0xf61e9b('0x1964')][_0xf61e9b('0x173b')](function(_0x31bea6){const _0x53b9b8=_0xf61e9b;_0x14a779[_0x53b9b8('0x673')]=_0x31bea6[_0x53b9b8('0x6aa')]||[];})['catch'](function(_0x13f2ee){const _0x31f516=_0xf61e9b;_0x16bea1[_0x31f516('0x15aa')]({'title':_0x13f2ee['status']?_0x31f516('0x137')+_0x13f2ee['status']+'\x20-\x20'+_0x13f2ee[_0x31f516('0x2696')]:_0x31f516('0xbd8'),'msg':_0x13f2ee['data']?JSON[_0x31f516('0x100b')](_0x13f2ee[_0x31f516('0x1e07')]):_0x13f2ee[_0x31f516('0x1b75')]()});}):_0x14e22e['trunk']['get']({'fields':_0xf61e9b('0xd52'),'sort':_0xf61e9b('0x10ad'),'nolimit':'true'})[_0xf61e9b('0x1964')][_0xf61e9b('0x173b')](function(_0x1b7721){const _0x11396d=_0xf61e9b;_0x14a779[_0x11396d('0x673')]=_0x1b7721[_0x11396d('0x6aa')]||[];})[_0xf61e9b('0x173b')](function(){const _0x5b2021=_0xf61e9b;return _0x14e22e[_0x5b2021('0x170e')]['get']({'userProfileId':_0x14a779[_0x5b2021('0x155f')][_0x5b2021('0x1946')],'sectionId':0x3f3})[_0x5b2021('0x1964')];})['then'](function(_0x2e8010){const _0x457c14=_0xf61e9b,_0x2dd95c=_0x2e8010&&_0x2e8010[_0x457c14('0x6aa')]?_0x2e8010[_0x457c14('0x6aa')][0x0]:null;if(!_0x2dd95c){const _0x1964cb=[];let _0x388e44=null;_0x14a779['externaldial']&&(_0x388e44=_0x3c8d8a()['find'](_0x14a779[_0x457c14('0x673')],{'name':_0x14a779[_0x457c14('0x1a4f')]['trunk']}));for(let _0x322ca9=0x0;_0x322ca9<_0x14a779['trunks'][_0x457c14('0x543')];_0x322ca9++){_0x388e44&&_0x14a779[_0x457c14('0x673')][_0x322ca9]['id']===_0x388e44['id']&&(_0x14a779[_0x457c14('0x673')][_0x322ca9][_0x457c14('0x268e')]=![],_0x1964cb['push'](_0x14a779[_0x457c14('0x673')][_0x322ca9]));}_0x14a779[_0x457c14('0x673')]=_0x1964cb;}else{if(!_0x2dd95c[_0x457c14('0x273e')])return _0x14e22e[_0x457c14('0xda9')][_0x457c14('0x1d97')]({'sectionId':_0x2dd95c['id']})['$promise'][_0x457c14('0x173b')](function(_0x333c4a){const _0x5a3d2b=_0x457c14,_0x4681a7=_0x3c8d8a()[_0x5a3d2b('0x8a2')](_0x333c4a[_0x5a3d2b('0x6aa')],function(_0x490936){const _0x190fa7=_0x5a3d2b;return _0x3c8d8a()[_0x190fa7('0x18ab')](_0x14a779[_0x190fa7('0x673')],{'id':_0x490936[_0x190fa7('0x1ce0')]});});let _0x502fa6=null;_0x14a779['externaldial']&&(_0x502fa6=_0x3c8d8a()[_0x5a3d2b('0x18ab')](_0x14a779[_0x5a3d2b('0x673')],{'name':_0x14a779[_0x5a3d2b('0x1a4f')]['trunk']}));if(_0x502fa6&&!_0x3c8d8a()[_0x5a3d2b('0x1ec')](_0x4681a7,['id',_0x502fa6['id']])){const _0x5162e6=_0x3c8d8a()['find'](_0x14a779[_0x5a3d2b('0x673')],{'id':_0x502fa6['id']});_0x5162e6[_0x5a3d2b('0x268e')]=![],_0x4681a7[_0x5a3d2b('0x18bb')](_0x5162e6);}_0x14a779[_0x5a3d2b('0x673')]=_0x4681a7;});}})[_0xf61e9b('0x103c')](function(_0x593f4e){const _0xebf621=_0xf61e9b;_0x16bea1[_0xebf621('0x15aa')]({'title':_0x593f4e[_0xebf621('0x276f')]?_0xebf621('0x137')+_0x593f4e[_0xebf621('0x276f')]+_0xebf621('0x160c')+_0x593f4e[_0xebf621('0x2696')]:_0xebf621('0x21ed'),'msg':_0x593f4e['data']?JSON[_0xebf621('0x100b')](_0x593f4e['data']):_0x593f4e[_0xebf621('0x1b75')]()});});function _0x5085d0(){const _0x34a260=_0xf61e9b;_0x14a779[_0x34a260('0x1d4a')]=[];const _0x38bcf5=[];_0x14a779['externaldial'][_0x34a260('0x1810')]&&_0x14a779['externaldial'][_0x34a260('0x1810')]['toLowerCase']()===_0x34a260('0xb33')&&_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x9d7')]==='outboundDial'&&(_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0xa04')]=_0x1035ff[_0x34a260('0x1429')]?(_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x23f7')]||'')+'${EXTEN:'+_0x1035ff[_0x34a260('0x1429')]+'}':(_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x23f7')]||'')+'${EXTEN}',_0x1035ff[_0x34a260('0x76c')]!=='none'?_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x2010')][_0x34a260('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x14a779[_0x34a260('0x1a4f')]['options']+='U(xcally-mixmonitor-context)'):_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x2010')]=_0x14a779['externaldial']['options'][_0x34a260('0x166c')](_0x34a260('0x2474'),''));if(_0x14a779['externaldial']['appType']&&_0x14a779[_0x34a260('0x1a4f')]['appType']===_0x34a260('0xbb4')){}else switch((_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x17e')]||_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x9d7')])[_0x34a260('0x1e68')]()){case _0x34a260('0x256d'):_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x1c00')]=_0x14a779[_0x34a260('0x1a4f')]['name']+'='+_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0xa7b')];break;case'custom':break;default:_0x38bcf5[0x0]=[_0x34a260('0x9e6'),_0x14a779['externaldial']['trunk'],_0x14a779[_0x34a260('0x1a4f')]['phone']][_0x34a260('0x2259')]('/'),_0x38bcf5[0x1]=_0x14a779['externaldial'][_0x34a260('0x1f84')],_0x38bcf5[0x2]=_0x14a779[_0x34a260('0x1a4f')][_0x34a260('0x2010')],_0x38bcf5[0x3]=_0x14a779['externaldial'][_0x34a260('0xd1')],_0x14a779['externaldial'][_0x34a260('0x1c00')]=_0x38bcf5[_0x34a260('0x2259')](',');}_0x284178(_0x14a779[_0x34a260('0x1a4f')]);}function _0x284178(_0x2642d0){const _0x5ae168=_0xf61e9b;_0x3f1a04[_0x5ae168('0x1cf4')](_0x2642d0);}}const _0x2b8370=_0x195be2;_0x430903['$inject']=[_0x566993('0x1fe5'),'$q','toasty','inboundrouteApp','inboundroute',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x430903(_0x22f103,_0x4ff2d3,_0x4469c0,_0x166696,_0x7b209,_0x4fd7f5,_0x4d2aa5,_0x1b2809){const _0x2f5dae=_0x566993,_0x1edb99=this;_0x1edb99[_0x2f5dae('0x155f')]=_0x4d2aa5[_0x2f5dae('0x14d4')](),_0x1edb99[_0x2f5dae('0x1d4a')]=[],_0x1edb99[_0x2f5dae('0x20d6')]=_0x2f5dae('0xcee')+(_0x166696[_0x2f5dae('0x9d7')]||_0x166696['app'])[_0x2f5dae('0x1164')](),_0x1edb99[_0x2f5dae('0x2016')]=angular[_0x2f5dae('0x2e3')](_0x166696),_0x1edb99['crudPermissions']=_0x1b2809,_0x1edb99[_0x2f5dae('0xb0')]={};if(_0x1edb99['goto'][_0x2f5dae('0x1c00')])switch(_0x1edb99['goto'][_0x2f5dae('0x9d7')]?_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x9d7')]['toLowerCase']():_0x1edb99[_0x2f5dae('0x2016')]['app'][_0x2f5dae('0x1e68')]()){case _0x2f5dae('0xbb4'):break;case _0x2f5dae('0x1601'):{const _0x4c3c7d=_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x1c00')][_0x2f5dae('0x43a')](',');_0x1edb99['goto']['key']=_0x4c3c7d[0x0],_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x604')]=_0x4c3c7d[0x1],_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x1a7')]=_0x4c3c7d[_0x2f5dae('0x2456')](0x2,_0x4c3c7d[_0x2f5dae('0x543')])[_0x2f5dae('0x2259')](',');}break;case _0x2f5dae('0x1680'):{const _0x242ed7=_0x1edb99[_0x2f5dae('0x2016')]['appdata']['split'](',');_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x2e0')]=_0x242ed7[0x0],_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x1d93')]=_0x242ed7[0x1],_0x1edb99[_0x2f5dae('0x2016')]['lexregion']=_0x242ed7[0x2],_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x53')]=_0x242ed7[0x3],_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x1a7')]=_0x242ed7[_0x2f5dae('0x2456')](0x4,_0x242ed7[_0x2f5dae('0x543')])[_0x2f5dae('0x2259')](',');}break;case'autoreply':{const _0x48efa0=_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x1c00')]['split'](',');_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x611')]=isNaN(_0x48efa0[0x0])?_0x48efa0[0x0]:parseInt(_0x48efa0[0x0],0xa),_0x1edb99['goto'][_0x2f5dae('0x86e')]=_0x48efa0['slice'](0x1,_0x48efa0[_0x2f5dae('0x543')])['join'](',');}break;case _0x2f5dae('0x67f'):_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x86e')]=_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x1c00')];break;case _0x2f5dae('0x256d'):_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x10ad')]=_0x1edb99['goto']['appdata'][_0x2f5dae('0x43a')]('=')[0x0],_0x1edb99['goto']['value']=_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x1c00')]['split']('=')[0x1];break;case _0x2f5dae('0x2426'):_0x1edb99['goto'][_0x2f5dae('0x220b')]=_0x1edb99['goto'][_0x2f5dae('0x1c00')];break;default:{const _0xb35d5d=_0x1edb99['goto'][_0x2f5dae('0x1c00')]['split'](',');_0x1edb99[_0x2f5dae('0x2016')]['context']=_0x3c8d8a()[_0x2f5dae('0x1a56')](_0xb35d5d[0x0])?_0xb35d5d[0x0]:isNaN(_0xb35d5d[0x0])?_0xb35d5d[0x0]:parseInt(_0xb35d5d[0x0],0xa),_0x1edb99['goto'][_0x2f5dae('0x22ce')]=_0x3c8d8a()[_0x2f5dae('0x1a56')](_0xb35d5d[0x1])?_0xb35d5d[0x1]:isNaN(_0xb35d5d[0x1])?_0xb35d5d[0x1]:parseInt(_0xb35d5d[0x1],0xa),_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0xb3')]=_0x3c8d8a()['isEmpty'](_0xb35d5d[0x2])?_0xb35d5d[0x2]:isNaN(_0xb35d5d[0x2])?_0xb35d5d[0x2]:parseInt(_0xb35d5d[0x2],0xa);}break;}else{}_0x1edb99[_0x2f5dae('0x2016')]['type']&&_0x1edb99['goto']['type'][_0x2f5dae('0x1e68')]()===_0x2f5dae('0xb33')&&_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0x9d7')][_0x2f5dae('0x1e68')]()==='outbounddial'&&(_0x1edb99[_0x2f5dae('0x2016')]['prefix']=_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0xa04')]?_0x1edb99['goto']['phone'][_0x2f5dae('0x43a')]('$')[0x0]:undefined,_0x1edb99['goto'][_0x2f5dae('0x1961')]=_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0xe95')]?_0x2f5dae('0x20a8')+_0x1edb99[_0x2f5dae('0x2016')][_0x2f5dae('0xe95')]:undefined);_0x1edb99['saveInboundRouteApp']=_0x16c7b5,_0x1edb99[_0x2f5dae('0x18e2')]=_0x71d985,_0x4d2aa5[_0x2f5dae('0x1b4e')]('admin')?_0x4fd7f5['voiceContext'][_0x2f5dae('0x1d97')]({'fields':'id,name','sort':_0x2f5dae('0x10ad'),'nolimit':_0x2f5dae('0x799')})[_0x2f5dae('0x1964')]['then'](function(_0x40338d){const _0x35f07f=_0x2f5dae;_0x1edb99[_0x35f07f('0x22a9')]=_0x40338d['rows']||[];})[_0x2f5dae('0x103c')](function(_0x11fee7){const _0x44b55f=_0x2f5dae;_0x4469c0[_0x44b55f('0x15aa')]({'title':_0x11fee7['status']?_0x44b55f('0x137')+_0x11fee7[_0x44b55f('0x276f')]+'\x20-\x20'+_0x11fee7['statusText']:'SYSTEM:GET_CONTEXTS','msg':_0x11fee7[_0x44b55f('0x1e07')]?JSON[_0x44b55f('0x100b')](_0x11fee7[_0x44b55f('0x1e07')]):_0x11fee7[_0x44b55f('0x1b75')]()});}):_0x4fd7f5[_0x2f5dae('0xf01')]['get']({'fields':_0x2f5dae('0xd52'),'sort':_0x2f5dae('0x10ad'),'nolimit':'true'})[_0x2f5dae('0x1964')][_0x2f5dae('0x173b')](function(_0x4b528b){const _0x3ec672=_0x2f5dae;_0x1edb99[_0x3ec672('0x22a9')]=_0x4b528b[_0x3ec672('0x6aa')]||[];})['then'](function(){const _0x49ef21=_0x2f5dae;return _0x4fd7f5[_0x49ef21('0x170e')][_0x49ef21('0x1d97')]({'userProfileId':_0x1edb99['currentUser'][_0x49ef21('0x1946')],'sectionId':0x195})['$promise'];})['then'](function(_0x4ec740){const _0x3a3089=_0x2f5dae,_0x16d1c8=_0x4ec740&&_0x4ec740[_0x3a3089('0x6aa')]?_0x4ec740[_0x3a3089('0x6aa')][0x0]:null;if(!_0x16d1c8)return _0x4fd7f5[_0x3a3089('0xf01')][_0x3a3089('0x1d97')]({'fields':'id,name','sort':_0x3a3089('0x10ad'),'nolimit':_0x3a3089('0x799'),'defaultEntry':0x1})[_0x3a3089('0x1964')][_0x3a3089('0x173b')](function(_0x52dafb){const _0x3a8c14=_0x3a3089;_0x1edb99[_0x3a8c14('0x22a9')]=_0x52dafb[_0x3a8c14('0x6aa')]||[];});else{if(!_0x16d1c8[_0x3a3089('0x273e')])return _0x4fd7f5[_0x3a3089('0xda9')][_0x3a3089('0x1d97')]({'sectionId':_0x16d1c8['id']})[_0x3a3089('0x1964')][_0x3a3089('0x173b')](function(_0x24b39d){const _0x4456b5=_0x3a3089,_0x5de69a=_0x3c8d8a()['map'](_0x24b39d[_0x4456b5('0x6aa')],function(_0x138180){const _0xe13a8=_0x4456b5;return _0x3c8d8a()['find'](_0x1edb99[_0xe13a8('0x22a9')],{'id':_0x138180['resourceId']});});let _0x5c3399=null;_0x1edb99['goto']&&(_0x5c3399=_0x3c8d8a()[_0x4456b5('0x18ab')](_0x1edb99['contexts'],{'name':_0x1edb99[_0x4456b5('0x2016')][_0x4456b5('0x2b9')]}));if(_0x5c3399&&!_0x3c8d8a()['some'](_0x5de69a,['id',_0x5c3399['id']])){const _0x4cfff4=_0x3c8d8a()[_0x4456b5('0x18ab')](_0x1edb99[_0x4456b5('0x22a9')],{'id':_0x5c3399['id']});_0x4cfff4[_0x4456b5('0x268e')]=![],_0x5de69a[_0x4456b5('0x18bb')](_0x4cfff4);}_0x1edb99[_0x4456b5('0x22a9')]=_0x5de69a;});}})[_0x2f5dae('0x103c')](function(_0x31e554){const _0x19b8ca=_0x2f5dae;_0x4469c0[_0x19b8ca('0x15aa')]({'title':_0x31e554[_0x19b8ca('0x276f')]?'API:'+_0x31e554['status']+_0x19b8ca('0x160c')+_0x31e554[_0x19b8ca('0x2696')]:_0x19b8ca('0x18fd'),'msg':_0x31e554['data']?JSON['stringify'](_0x31e554[_0x19b8ca('0x1e07')]):_0x31e554[_0x19b8ca('0x1b75')]()});});function _0x16c7b5(){const _0x270f2c=_0x2f5dae;_0x1edb99[_0x270f2c('0x1d4a')]=[];const _0x496978=[];_0x1edb99[_0x270f2c('0x2016')]['type']&&_0x1edb99[_0x270f2c('0x2016')]['type'][_0x270f2c('0x1e68')]()===_0x270f2c('0xb33')&&_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x9d7')]===_0x270f2c('0x2150')&&(_0x1edb99['goto'][_0x270f2c('0xa04')]=_0x7b209[_0x270f2c('0x1429')]?(_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x23f7')]||'')+_0x270f2c('0x1957')+_0x7b209['cutdigits']+'}':(_0x1edb99[_0x270f2c('0x2016')]['prefix']||'')+_0x270f2c('0x1dc5'),_0x7b209['recordingFormat']!==_0x270f2c('0x2741')?_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x2010')][_0x270f2c('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x1edb99[_0x270f2c('0x2016')]['options']+=_0x270f2c('0x2474')):_0x1edb99['goto']['options']=_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x2010')][_0x270f2c('0x166c')](_0x270f2c('0x2474'),''));if(_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x9d7')]&&_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x9d7')]===_0x270f2c('0xbb4')){}else switch((_0x1edb99['goto'][_0x270f2c('0x17e')]||_0x1edb99['goto'][_0x270f2c('0x9d7')])['toLowerCase']()){case _0x270f2c('0x256d'):_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x1c00')]=_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x10ad')]+'='+_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0xa7b')];break;case _0x270f2c('0xbb4'):break;default:_0x496978[0x0]=_0x1edb99['goto']['context'],_0x496978[0x1]=_0x1edb99['goto']['extension'],_0x496978[0x2]=_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0xb3')],_0x1edb99[_0x270f2c('0x2016')][_0x270f2c('0x1c00')]=_0x496978[_0x270f2c('0x2259')](',');}_0x71d985(_0x1edb99[_0x270f2c('0x2016')]);}function _0x71d985(_0x7cc416){_0x22f103['hide'](_0x7cc416);}}const _0x4d42de=_0x430903;_0x1ec898[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x1db0'),'inboundroute',_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x1ec898(_0x51c163,_0x20c477,_0x42d9b3,_0x1ce9cd,_0x2bf6d2,_0x4d4354,_0x230b5b,_0x154e89){const _0x10d396=_0x566993,_0x59774b=this;_0x59774b[_0x10d396('0x155f')]=_0x230b5b[_0x10d396('0x14d4')](),_0x59774b[_0x10d396('0x1d4a')]=[],_0x59774b['title']=_0x10d396('0xcee')+(_0x1ce9cd['appType']||_0x1ce9cd[_0x10d396('0x17e')])[_0x10d396('0x1164')](),_0x59774b[_0x10d396('0x13cc')]=angular['copy'](_0x1ce9cd),_0x59774b[_0x10d396('0x1dc1')]=_0x154e89,_0x59774b['hasModulePermissions']={};if(_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1c00')])switch(_0x59774b['hangup'][_0x10d396('0x9d7')]?_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x9d7')][_0x10d396('0x1e68')]():_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x17e')][_0x10d396('0x1e68')]()){case _0x10d396('0xbb4'):break;case _0x10d396('0x1601'):{const _0x1a5e50=_0x59774b[_0x10d396('0x13cc')]['appdata'][_0x10d396('0x43a')](',');_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x237a')]=_0x1a5e50[0x0],_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x604')]=_0x1a5e50[0x1],_0x59774b['hangup'][_0x10d396('0x1a7')]=_0x1a5e50['slice'](0x2,_0x1a5e50[_0x10d396('0x543')])[_0x10d396('0x2259')](',');}break;case'amazonlex':{const _0x21aea0=_0x59774b['hangup'][_0x10d396('0x1c00')]['split'](',');_0x59774b['hangup'][_0x10d396('0x2e0')]=_0x21aea0[0x0],_0x59774b['hangup']['secretaccesskey']=_0x21aea0[0x1],_0x59774b['hangup'][_0x10d396('0x10fc')]=_0x21aea0[0x2],_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x53')]=_0x21aea0[0x3],_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1a7')]=_0x21aea0['slice'](0x4,_0x21aea0[_0x10d396('0x543')])[_0x10d396('0x2259')](',');}break;case _0x10d396('0x23fe'):{const _0xe361cd=_0x59774b[_0x10d396('0x13cc')]['appdata'][_0x10d396('0x43a')](',');_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x611')]=isNaN(_0xe361cd[0x0])?_0xe361cd[0x0]:parseInt(_0xe361cd[0x0],0xa),_0x59774b['hangup'][_0x10d396('0x86e')]=_0xe361cd[_0x10d396('0x2456')](0x1,_0xe361cd['length'])[_0x10d396('0x2259')](',');}break;case'message':_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x86e')]=_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1c00')];break;case _0x10d396('0x256d'):_0x59774b[_0x10d396('0x13cc')]['name']=_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1c00')]['split']('=')[0x0],_0x59774b[_0x10d396('0x13cc')][_0x10d396('0xa7b')]=_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1c00')]['split']('=')[0x1];break;case _0x10d396('0x2426'):_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x220b')]=_0x59774b[_0x10d396('0x13cc')]['appdata'];break;default:{const _0x417a4e=_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1c00')][_0x10d396('0x43a')](',');_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1c00')]=_0x3c8d8a()['isEmpty'](_0x417a4e[0x0])?_0x417a4e[0x0]:isNaN(_0x417a4e[0x0])?_0x417a4e[0x0]:parseInt(_0x417a4e[0x0],0xa);}break;}else{}_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1810')]&&_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1810')][_0x10d396('0x1e68')]()===_0x10d396('0xb33')&&_0x59774b['hangup'][_0x10d396('0x9d7')][_0x10d396('0x1e68')]()===_0x10d396('0x1edc')&&(_0x59774b[_0x10d396('0x13cc')]['prefix']=_0x59774b['hangup'][_0x10d396('0xa04')]?_0x59774b['hangup'][_0x10d396('0xa04')][_0x10d396('0x43a')]('$')[0x0]:undefined,_0x59774b[_0x10d396('0x13cc')][_0x10d396('0x1961')]=_0x59774b[_0x10d396('0x13cc')][_0x10d396('0xe95')]?_0x10d396('0x20a8')+_0x59774b[_0x10d396('0x13cc')]['callerID']:undefined);_0x59774b['saveInboundRouteApp']=_0x699d9a,_0x59774b[_0x10d396('0x18e2')]=_0x141e95;function _0x699d9a(){const _0x51a0f3=_0x10d396;_0x59774b[_0x51a0f3('0x1d4a')]=[];const _0x41233c=[];_0x59774b[_0x51a0f3('0x13cc')]['type']&&_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0x1810')][_0x51a0f3('0x1e68')]()===_0x51a0f3('0xb33')&&_0x59774b[_0x51a0f3('0x13cc')]['appType']===_0x51a0f3('0x2150')&&(_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0xa04')]=_0x2bf6d2[_0x51a0f3('0x1429')]?(_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0x23f7')]||'')+_0x51a0f3('0x1957')+_0x2bf6d2['cutdigits']+'}':(_0x59774b['hangup']['prefix']||'')+_0x51a0f3('0x1dc5'),_0x2bf6d2[_0x51a0f3('0x76c')]!=='none'?_0x59774b[_0x51a0f3('0x13cc')]['options']['indexOf'](_0x51a0f3('0x2474'))<0x0&&(_0x59774b['hangup'][_0x51a0f3('0x2010')]+='U(xcally-mixmonitor-context)'):_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0x2010')]=_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0x2010')][_0x51a0f3('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x59774b[_0x51a0f3('0x13cc')]['appType']&&_0x59774b[_0x51a0f3('0x13cc')]['appType']===_0x51a0f3('0xbb4')){}else switch((_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0x17e')]||_0x59774b[_0x51a0f3('0x13cc')]['appType'])[_0x51a0f3('0x1e68')]()){case _0x51a0f3('0x256d'):_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0x1c00')]=_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0x10ad')]+'='+_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0xa7b')];break;case'custom':break;default:_0x41233c[0x0]=_0x59774b[_0x51a0f3('0x13cc')][_0x51a0f3('0x1c00')],_0x59774b[_0x51a0f3('0x13cc')]['appdata']=_0x41233c[_0x51a0f3('0x2259')](',');}_0x141e95(_0x59774b[_0x51a0f3('0x13cc')]);}function _0x141e95(_0x428206){_0x51c163['hide'](_0x428206);}}const _0x63ea4=_0x1ec898;_0x25bce4[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x1db0'),'inboundroute',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x25bce4(_0x3450e7,_0x16bf9b,_0xad56ab,_0x209c65,_0x212d0b,_0x45fd25,_0x14ee8e,_0x2b503b){const _0x224e98=_0x566993,_0x3fe4c6=this;_0x3fe4c6[_0x224e98('0x155f')]=_0x14ee8e[_0x224e98('0x14d4')](),_0x3fe4c6[_0x224e98('0x1d4a')]=[],_0x3fe4c6['title']=_0x224e98('0xcee')+(_0x209c65[_0x224e98('0x9d7')]||_0x209c65[_0x224e98('0x17e')])[_0x224e98('0x1164')](),_0x3fe4c6[_0x224e98('0x1382')]=angular['copy'](_0x209c65),_0x3fe4c6[_0x224e98('0x1dc1')]=_0x2b503b,_0x3fe4c6[_0x224e98('0xb0')]={};if(_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1c00')])switch(_0x3fe4c6['internaldial'][_0x224e98('0x9d7')]?_0x3fe4c6['internaldial'][_0x224e98('0x9d7')][_0x224e98('0x1e68')]():_0x3fe4c6['internaldial'][_0x224e98('0x17e')][_0x224e98('0x1e68')]()){case _0x224e98('0xbb4'):break;case _0x224e98('0x1601'):{const _0x56933c=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1c00')]['split'](',');_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x237a')]=_0x56933c[0x0],_0x3fe4c6[_0x224e98('0x1382')]['language']=_0x56933c[0x1],_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1a7')]=_0x56933c[_0x224e98('0x2456')](0x2,_0x56933c['length'])[_0x224e98('0x2259')](',');}break;case _0x224e98('0x1680'):{const _0x194ff6=_0x3fe4c6[_0x224e98('0x1382')]['appdata'][_0x224e98('0x43a')](',');_0x3fe4c6['internaldial'][_0x224e98('0x2e0')]=_0x194ff6[0x0],_0x3fe4c6[_0x224e98('0x1382')]['secretaccesskey']=_0x194ff6[0x1],_0x3fe4c6['internaldial']['lexregion']=_0x194ff6[0x2],_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x53')]=_0x194ff6[0x3],_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1a7')]=_0x194ff6[_0x224e98('0x2456')](0x4,_0x194ff6['length'])[_0x224e98('0x2259')](',');}break;case _0x224e98('0x23fe'):{const _0x27a18e=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1c00')]['split'](',');_0x3fe4c6['internaldial']['times']=isNaN(_0x27a18e[0x0])?_0x27a18e[0x0]:parseInt(_0x27a18e[0x0],0xa),_0x3fe4c6[_0x224e98('0x1382')]['text']=_0x27a18e['slice'](0x1,_0x27a18e[_0x224e98('0x543')])[_0x224e98('0x2259')](',');}break;case _0x224e98('0x67f'):_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x86e')]=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1c00')];break;case _0x224e98('0x256d'):_0x3fe4c6['internaldial'][_0x224e98('0x10ad')]=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1c00')][_0x224e98('0x43a')]('=')[0x0],_0x3fe4c6['internaldial']['value']=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1c00')][_0x224e98('0x43a')]('=')[0x1];break;case _0x224e98('0x2426'):_0x3fe4c6[_0x224e98('0x1382')]['project']=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1c00')];break;default:{const _0x250d85=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1c00')]['split'](',');_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x166f')]=_0x3c8d8a()['isEmpty'](_0x250d85[0x0])?_0x250d85[0x0]:isNaN(_0x250d85[0x0])?_0x250d85[0x0]:parseInt(_0x250d85[0x0],0xa),_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1f84')]=_0x3c8d8a()[_0x224e98('0x1a56')](_0x250d85[0x1])?_0x250d85[0x1]:isNaN(_0x250d85[0x1])?_0x250d85[0x1]:parseInt(_0x250d85[0x1],0xa),_0x3fe4c6[_0x224e98('0x1382')]['options']=_0x3c8d8a()[_0x224e98('0x1a56')](_0x250d85[0x2])?_0x250d85[0x2]:isNaN(_0x250d85[0x2])?_0x250d85[0x2]:parseInt(_0x250d85[0x2],0xa),_0x3fe4c6['internaldial'][_0x224e98('0xd1')]=_0x3c8d8a()[_0x224e98('0x1a56')](_0x250d85[0x3])?_0x250d85[0x3]:isNaN(_0x250d85[0x3])?_0x250d85[0x3]:parseInt(_0x250d85[0x3],0xa);}break;}else{}_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1810')]&&_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x1810')]['toLowerCase']()==='outbound'&&_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0x9d7')][_0x224e98('0x1e68')]()===_0x224e98('0x1edc')&&(_0x3fe4c6['internaldial']['prefix']=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0xa04')]?_0x3fe4c6[_0x224e98('0x1382')]['phone'][_0x224e98('0x43a')]('$')[0x0]:undefined,_0x3fe4c6[_0x224e98('0x1382')]['callerId']=_0x3fe4c6[_0x224e98('0x1382')][_0x224e98('0xe95')]?_0x224e98('0x20a8')+_0x3fe4c6[_0x224e98('0x1382')]['callerID']:undefined);_0x3fe4c6[_0x224e98('0x820')]=_0x1e334b,_0x3fe4c6[_0x224e98('0x18e2')]=_0xb20f1b;const _0x150f3d=[{'id':0xca,'role':_0x224e98('0x7b0')},{'id':0xcb,'role':_0x224e98('0x149c')}];let _0x55373a=null;_0x14ee8e['hasRole']('admin')?_0x45fd25['user']['get']({'fields':_0x224e98('0x2799'),'sort':_0x224e98('0x10ad'),'nolimit':_0x224e98('0x799')})['$promise']['then'](function(_0x5bd020){const _0x51761f=_0x224e98;_0x3fe4c6[_0x51761f('0x1e14')]=_0x5bd020[_0x51761f('0x6aa')]||[];})['catch'](function(_0x32ab63){const _0x66d9d9=_0x224e98;_0xad56ab[_0x66d9d9('0x15aa')]({'title':_0x32ab63[_0x66d9d9('0x276f')]?_0x66d9d9('0x137')+_0x32ab63['status']+'\x20-\x20'+_0x32ab63[_0x66d9d9('0x2696')]:'SYSTEM:GET_USERS','msg':_0x32ab63[_0x66d9d9('0x1e07')]?JSON[_0x66d9d9('0x100b')](_0x32ab63[_0x66d9d9('0x1e07')]):_0x32ab63[_0x66d9d9('0x1b75')]()});}):_0x45fd25[_0x224e98('0x166f')][_0x224e98('0x1d97')]({'fields':_0x224e98('0x2799'),'sort':_0x224e98('0x10ad'),'nolimit':_0x224e98('0x799')})['$promise'][_0x224e98('0x173b')](function(_0x4c1831){const _0x2e16d9=_0x224e98;_0x55373a=_0x4c1831[_0x2e16d9('0x6aa')]||[];})[_0x224e98('0x173b')](function(){const _0x1d7814=_0x224e98,_0x435d0f=[];for(let _0x391de4=0x0;_0x391de4<_0x150f3d['length'];_0x391de4++){_0x435d0f['push'](_0x45fd25[_0x1d7814('0x170e')][_0x1d7814('0x1d97')]({'userProfileId':_0x3fe4c6[_0x1d7814('0x155f')][_0x1d7814('0x1946')],'sectionId':_0x150f3d[_0x391de4]['id']})[_0x1d7814('0x1964')]);}return _0x16bf9b[_0x1d7814('0x27c8')](_0x435d0f);})['then'](function(_0x1cce4f){const _0x32f637=_0x224e98,_0x39d417=_0x3c8d8a()[_0x32f637('0x8a2')](_0x1cce4f,function(_0x3b1498){const _0x551e54=_0x32f637;return _0x3b1498&&_0x3b1498['rows']?_0x3b1498[_0x551e54('0x6aa')][0x0]:null;}),_0x29af3f=[];for(let _0xa8680=0x0;_0xa8680<_0x150f3d['length'];_0xa8680++){const _0x11b1e5=_0x3c8d8a()[_0x32f637('0x18ab')](_0x39d417,[_0x32f637('0x15fe'),_0x150f3d[_0xa8680]['id']]);if(_0x11b1e5){if(!_0x11b1e5['autoAssociation'])_0x29af3f[_0x32f637('0x18bb')](_0x45fd25[_0x32f637('0xda9')][_0x32f637('0x1d97')]({'sectionId':_0x11b1e5['id']})[_0x32f637('0x1964')]);else{const _0x5bcb45=[];_0x55373a[_0x32f637('0xa6a')](function(_0x254e23){const _0x15875e=_0x32f637;_0x254e23[_0x15875e('0x14a')]===_0x150f3d[_0xa8680][_0x15875e('0x14a')]&&_0x5bcb45[_0x15875e('0x18bb')](_0x254e23);}),_0x29af3f[_0x32f637('0x18bb')]({'rows':_0x5bcb45,'count':_0x5bcb45[_0x32f637('0x543')]});}}}return _0x16bf9b[_0x32f637('0x27c8')](_0x29af3f);})[_0x224e98('0x173b')](function(_0x1731d6){const _0x1f1e08=_0x224e98,_0x4ffad5=[];let _0x548f37=null;_0x3fe4c6[_0x1f1e08('0x1382')]&&(_0x548f37=_0x3c8d8a()[_0x1f1e08('0x18ab')](_0x55373a,{'name':_0x3fe4c6['internaldial'][_0x1f1e08('0x166f')]}));for(let _0x4bb10d=0x0;_0x4bb10d<_0x1731d6['length'];_0x4bb10d++){const _0x21e94f=_0x1731d6[_0x4bb10d][_0x1f1e08('0x6aa')]||[];_0x21e94f[_0x1f1e08('0xa6a')](function(_0x3935c0){const _0x228342=_0x1f1e08;_0x4ffad5[_0x228342('0x18bb')](_0x3935c0);});}_0x548f37&&!_0x3c8d8a()[_0x1f1e08('0x1ec')](_0x4ffad5,[_0x1f1e08('0x1ce0'),_0x548f37['id']])&&_0x55373a['forEach'](function(_0x4b9e27){const _0x53683c=_0x1f1e08;_0x4b9e27['id']===_0x548f37['id']&&(_0x4b9e27[_0x53683c('0x268e')]=![],_0x4ffad5[_0x53683c('0x18bb')](_0x4b9e27));}),_0x3fe4c6['users']=_0x4ffad5;})[_0x224e98('0x103c')](function(_0x53780d){const _0x16d26b=_0x224e98;_0xad56ab[_0x16d26b('0x15aa')]({'title':_0x53780d[_0x16d26b('0x276f')]?_0x16d26b('0x137')+_0x53780d[_0x16d26b('0x276f')]+_0x16d26b('0x160c')+_0x53780d[_0x16d26b('0x2696')]:'SYSTEM:GETusers','msg':_0x53780d[_0x16d26b('0x1e07')]?JSON['stringify'](_0x53780d['data']):_0x53780d[_0x16d26b('0x1b75')]()});});function _0x1e334b(){const _0x451182=_0x224e98;_0x3fe4c6['errors']=[];const _0x4f947b=[];_0x3fe4c6['internaldial']['type']&&_0x3fe4c6[_0x451182('0x1382')]['type'][_0x451182('0x1e68')]()===_0x451182('0xb33')&&_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x9d7')]==='outboundDial'&&(_0x3fe4c6[_0x451182('0x1382')][_0x451182('0xa04')]=_0x212d0b[_0x451182('0x1429')]?(_0x3fe4c6['internaldial']['prefix']||'')+_0x451182('0x1957')+_0x212d0b[_0x451182('0x1429')]+'}':(_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x23f7')]||'')+'${EXTEN}',_0x212d0b[_0x451182('0x76c')]!=='none'?_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x2010')]['indexOf'](_0x451182('0x2474'))<0x0&&(_0x3fe4c6['internaldial'][_0x451182('0x2010')]+=_0x451182('0x2474')):_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x2010')]=_0x3fe4c6[_0x451182('0x1382')]['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x9d7')]&&_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x9d7')]===_0x451182('0xbb4')){}else switch((_0x3fe4c6['internaldial'][_0x451182('0x17e')]||_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x9d7')])[_0x451182('0x1e68')]()){case'set':_0x3fe4c6[_0x451182('0x1382')]['appdata']=_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x10ad')]+'='+_0x3fe4c6[_0x451182('0x1382')][_0x451182('0xa7b')];break;case'custom':break;default:_0x4f947b[0x0]=_0x3fe4c6['internaldial'][_0x451182('0x166f')],_0x4f947b[0x1]=_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x1f84')],_0x4f947b[0x2]=_0x3fe4c6['internaldial'][_0x451182('0x2010')],_0x4f947b[0x3]=_0x3fe4c6['internaldial'][_0x451182('0xd1')],_0x3fe4c6[_0x451182('0x1382')][_0x451182('0x1c00')]=_0x4f947b['join'](',');}_0xb20f1b(_0x3fe4c6[_0x451182('0x1382')]);}function _0xb20f1b(_0x13c469){_0x3450e7['hide'](_0x13c469);}}const _0x3e7bcf=_0x25bce4;_0x382f12[_0x566993('0x17bb')]=['$state',_0x566993('0x1fe5'),_0x566993('0x1276'),_0x566993('0x1975'),'interval',_0x566993('0x21c4'),_0x566993('0x1558'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x382f12(_0x14de9e,_0x3fbd9b,_0x3d69a8,_0x4a4a09,_0x173331,_0x223c11,_0x223477,_0x5cc20c,_0x2a7807,_0x3fd6bc){const _0x105130=_0x566993,_0x17434a=this;_0x17434a[_0x105130('0x155f')]=_0x2a7807['getCurrentUser'](),_0x17434a['errors']=[],_0x17434a['title']=_0x105130('0x117b'),_0x17434a['interval']=angular[_0x105130('0x2e3')](_0x173331),_0x17434a[_0x105130('0x21c4')]=_0x223c11,_0x17434a['newInterval']=![],_0x17434a[_0x105130('0xf00')]=[_0x105130('0x17b3'),_0x105130('0xbb4'),_0x105130('0x3e3')],_0x17434a['crudPermissions']=_0x3fd6bc,_0x17434a[_0x105130('0x1626')]=_0x4a4a09[_0x105130('0x89e')](),_0x17434a['monthNumber']=_0x4a4a09['getMonthNumber'](),_0x17434a[_0x105130('0x1d95')]=_0x4a4a09['getMonthName'](),_0x17434a[_0x105130('0x2742')]=_0x4a4a09['getDaysOfMonth']();if(!_0x17434a['interval'])_0x17434a[_0x105130('0x55a')]={'interval':_0x105130('0x17c5')},_0x17434a[_0x105130('0x1810')]='always',_0x17434a[_0x105130('0x20d6')]=_0x105130('0xbb5'),_0x17434a['newInterval']=!![];else{if(_0x17434a[_0x105130('0x55a')]['interval']!==_0x105130('0x17c5')){_0x17434a[_0x105130('0x1810')]=_0x105130('0xbb4');const _0x207f5a=_0x17434a[_0x105130('0x55a')][_0x105130('0x55a')]['split'](','),_0x424f13=_0x207f5a[0x0],_0x2ccce9=_0x207f5a[0x1],_0x338f84=_0x207f5a[0x2],_0x29fa58=_0x207f5a[0x3];if(_0x424f13!=='*'){const _0x28904e=_0x424f13[_0x105130('0x43a')]('-')[0x0],_0x28043f=_0x424f13[_0x105130('0x43a')]('-')[0x1];let _0x5ad24a;_0x5ad24a=new Date(),_0x5ad24a['setHours'](Number(_0x28904e['split'](':')[0x0])),_0x5ad24a[_0x105130('0x14f9')](Number(_0x28904e['split'](':')[0x1])),_0x17434a[_0x105130('0x2515')]=_0x5ad24a,_0x5ad24a=new Date(),_0x5ad24a[_0x105130('0xd32')](Number(_0x28043f[_0x105130('0x43a')](':')[0x0])),_0x5ad24a['setMinutes'](Number(_0x28043f[_0x105130('0x43a')](':')[0x1])),_0x17434a['timeRangeTo']=_0x5ad24a;}_0x2ccce9!=='*'&&(_0x17434a['dayOfWeekFrom']=_0x2ccce9['split']('-')[0x0],_0x17434a[_0x105130('0x269e')]=_0x2ccce9[_0x105130('0x43a')]('-')[0x1]),_0x338f84!=='*'&&(_0x17434a[_0x105130('0x6df')]=_0x338f84[_0x105130('0x43a')]('-')[0x0],_0x17434a[_0x105130('0x185e')]=_0x338f84[_0x105130('0x43a')]('-')[0x1]),_0x29fa58!=='*'&&(_0x17434a[_0x105130('0x1f34')]=_0x29fa58[_0x105130('0x43a')]('-')[0x0],_0x17434a['monthTo']=_0x29fa58[_0x105130('0x43a')]('-')[0x1]);}else _0x17434a[_0x105130('0x1810')]='always';}_0x14de9e[_0x105130('0x197a')]['id']&&!_0x17434a[_0x105130('0x55a')]['application']&&(_0x17434a['interval'][_0x105130('0x600')]=_0x14de9e[_0x105130('0x197a')]['id']);_0x17434a[_0x105130('0x55a')][_0x105130('0x600')]&&_0x17434a[_0x105130('0x55a')][_0x105130('0x17c2')]&&(_0x17434a['type']=_0x105130('0x3e3'));_0x17434a[_0x105130('0x11fc')]=_0x226879,_0x17434a['saveInterval']=_0x4c3c0c,_0x17434a['closeDialog']=_0x39e082;_0x17434a[_0x105130('0x55a')][_0x105130('0x17c2')]&&(_0x2a7807[_0x105130('0x1b4e')](_0x105130('0x79b'))?_0x5cc20c[_0x105130('0x55a')][_0x105130('0x1d97')]({'fields':_0x105130('0x2666'),'IntervalId':_0x105130('0x877'),'nolimit':!![]})[_0x105130('0x1964')][_0x105130('0x173b')](function(_0x3914b9){const _0x224380=_0x105130;_0x17434a[_0x224380('0x21c4')]=_0x3914b9[_0x224380('0x6aa')]||[];})['catch'](function(_0x589ebd){const _0x1962dc=_0x105130;_0x223477[_0x1962dc('0x15aa')]({'title':_0x589ebd[_0x1962dc('0x276f')]?_0x1962dc('0x137')+_0x589ebd[_0x1962dc('0x276f')]+_0x1962dc('0x160c')+_0x589ebd[_0x1962dc('0x2696')]:_0x1962dc('0x1daf'),'msg':_0x589ebd[_0x1962dc('0x1e07')]?JSON[_0x1962dc('0x100b')](_0x589ebd[_0x1962dc('0x1e07')]):_0x589ebd[_0x1962dc('0x1b75')]()});}):_0x5cc20c[_0x105130('0x55a')]['get']({'fields':_0x105130('0x2666'),'IntervalId':_0x105130('0x877'),'nolimit':!![]})[_0x105130('0x1964')]['then'](function(_0x4feabe){const _0x48673d=_0x105130;_0x17434a['intervals']=_0x4feabe[_0x48673d('0x6aa')]||[];})[_0x105130('0x173b')](function(){const _0x331fe3=_0x105130;return _0x5cc20c['userProfileSection'][_0x331fe3('0x1d97')]({'userProfileId':_0x17434a[_0x331fe3('0x155f')][_0x331fe3('0x1946')],'sectionId':0x3ec})[_0x331fe3('0x1964')];})[_0x105130('0x173b')](function(_0x1a7927){const _0x375dc4=_0x105130,_0x337540=_0x1a7927&&_0x1a7927[_0x375dc4('0x6aa')]?_0x1a7927[_0x375dc4('0x6aa')][0x0]:null;if(!_0x337540)_0x17434a[_0x375dc4('0x21c4')]=[];else{if(!_0x337540[_0x375dc4('0x273e')])return _0x5cc20c['userProfileResource'][_0x375dc4('0x1d97')]({'sectionId':_0x337540['id']})[_0x375dc4('0x1964')][_0x375dc4('0x173b')](function(_0x2d66e5){const _0x30efaf=_0x375dc4,_0x32641a=_0x2d66e5&&_0x2d66e5[_0x30efaf('0x6aa')]?_0x2d66e5[_0x30efaf('0x6aa')]:[],_0x4c7ca8=[];let _0x51890e=null;_0x17434a[_0x30efaf('0x55a')]&&(_0x51890e=_0x3c8d8a()[_0x30efaf('0x18ab')](_0x17434a['intervals'],{'name':_0x17434a[_0x30efaf('0x55a')][_0x30efaf('0x600')]})),_0x51890e&&!_0x3c8d8a()[_0x30efaf('0x1ec')](_0x32641a,[_0x30efaf('0x1ce0'),_0x51890e['id']])&&_0x17434a[_0x30efaf('0x21c4')][_0x30efaf('0xa6a')](function(_0x1e568c){const _0x21bc89=_0x30efaf;_0x1e568c['id']===_0x51890e['id']&&(_0x1e568c[_0x21bc89('0x268e')]=![],_0x4c7ca8['push'](_0x1e568c));}),_0x17434a[_0x30efaf('0x21c4')]=_0x4c7ca8;});}})['catch'](function(_0x496fec){const _0xf6a894=_0x105130;_0x223477['error']({'title':_0x496fec[_0xf6a894('0x276f')]?_0xf6a894('0x137')+_0x496fec['status']+'\x20-\x20'+_0x496fec[_0xf6a894('0x2696')]:_0xf6a894('0x1daf'),'msg':_0x496fec[_0xf6a894('0x1e07')]?JSON[_0xf6a894('0x100b')](_0x496fec[_0xf6a894('0x1e07')]):_0x496fec[_0xf6a894('0x1b75')]()});}));function _0x43afa1(){const _0x5bcad8=_0x105130;switch(_0x17434a[_0x5bcad8('0x1810')]){case _0x5bcad8('0x17b3'):case _0x5bcad8('0x3e3'):return _0x5bcad8('0x17c5');case _0x5bcad8('0xbb4'):{const _0x8ced55=[];if(_0x17434a[_0x5bcad8('0x2515')]!=='*'&&_0x17434a['timeRangeFrom']&&_0x17434a[_0x5bcad8('0x437')]){const _0x1e925c=(_0x17434a['timeRangeFrom'][_0x5bcad8('0x1a28')]()<0xa?'0':'')+_0x17434a[_0x5bcad8('0x2515')][_0x5bcad8('0x1a28')]()+':'+((_0x17434a[_0x5bcad8('0x2515')][_0x5bcad8('0x1d2a')]()<0xa?'0':'')+_0x17434a['timeRangeFrom'][_0x5bcad8('0x1d2a')]()),_0x22c906=(_0x17434a[_0x5bcad8('0x437')][_0x5bcad8('0x1a28')]()<0xa?'0':'')+_0x17434a['timeRangeTo']['getHours']()+':'+((_0x17434a[_0x5bcad8('0x437')]['getMinutes']()<0xa?'0':'')+_0x17434a[_0x5bcad8('0x437')]['getMinutes']());_0x8ced55[_0x5bcad8('0x18bb')](_0x1e925c+'-'+_0x22c906);}else _0x8ced55['push']('*');return _0x17434a['dayOfWeekFrom']?_0x17434a[_0x5bcad8('0x269e')]?_0x8ced55['push'](_0x17434a[_0x5bcad8('0x37a')]+'-'+_0x17434a['dayOfWeekTo']):_0x8ced55[_0x5bcad8('0x18bb')](_0x17434a['dayOfWeekFrom']):_0x8ced55[_0x5bcad8('0x18bb')]('*'),_0x17434a[_0x5bcad8('0x6df')]?_0x17434a[_0x5bcad8('0x185e')]?_0x8ced55[_0x5bcad8('0x18bb')](_0x17434a[_0x5bcad8('0x6df')]+'-'+_0x17434a[_0x5bcad8('0x185e')]):_0x8ced55[_0x5bcad8('0x18bb')](_0x17434a[_0x5bcad8('0x6df')]):_0x8ced55[_0x5bcad8('0x18bb')]('*'),_0x17434a[_0x5bcad8('0x1f34')]?_0x17434a[_0x5bcad8('0xf74')]?_0x8ced55[_0x5bcad8('0x18bb')](_0x17434a[_0x5bcad8('0x1f34')]+'-'+_0x17434a['monthTo']):_0x8ced55[_0x5bcad8('0x18bb')](_0x17434a[_0x5bcad8('0x1f34')]):_0x8ced55['push']('*'),_0x8ced55[_0x5bcad8('0x2259')]();}}}function _0x226879(){const _0x402295=_0x105130;_0x17434a[_0x402295('0x1d4a')]=[],_0x17434a['interval'][_0x402295('0x55a')]=_0x43afa1(),_0x5cc20c[_0x402295('0x55a')][_0x402295('0x1195')](_0x17434a[_0x402295('0x55a')])[_0x402295('0x1964')]['then'](function(_0x3f0e36){const _0x53c6f3=_0x402295;_0x17434a[_0x53c6f3('0x21c4')][_0x53c6f3('0x18bb')](_0x3f0e36),_0x223477[_0x53c6f3('0xdfe')]({'title':_0x53c6f3('0x17fa'),'msg':_0x17434a[_0x53c6f3('0x55a')][_0x53c6f3('0x10ad')]?_0x17434a[_0x53c6f3('0x55a')][_0x53c6f3('0x10ad')]+_0x53c6f3('0x209a'):''}),_0x39e082();})[_0x402295('0x103c')](function(_0x539df1){const _0x3a0441=_0x402295;console[_0x3a0441('0x15aa')](_0x539df1),_0x17434a[_0x3a0441('0x1d4a')]=_0x539df1['data'][_0x3a0441('0x1d4a')]||[{'message':_0x539df1[_0x3a0441('0x1b75')](),'type':_0x3a0441('0xbde')}];});}function _0x4c3c0c(){const _0x2df586=_0x105130;_0x17434a['errors']=[],_0x17434a[_0x2df586('0x55a')]['interval']=_0x43afa1(),_0x17434a[_0x2df586('0x55a')][_0x2df586('0x17c2')]?(_0x17434a[_0x2df586('0x1810')]!==_0x2df586('0x3e3')&&(_0x17434a['interval'][_0x2df586('0x600')]=null),_0x39e082(_0x17434a[_0x2df586('0x55a')])):_0x5cc20c[_0x2df586('0x55a')][_0x2df586('0x1842')]({'id':_0x17434a[_0x2df586('0x55a')]['id']},_0x17434a['interval'])[_0x2df586('0x1964')]['then'](function(_0x1c4f72){const _0x2e7297=_0x2df586,_0x34b77b=_0x3c8d8a()[_0x2e7297('0x18ab')](_0x17434a[_0x2e7297('0x21c4')],{'id':_0x1c4f72['id']});_0x34b77b&&_0x3c8d8a()[_0x2e7297('0x9ef')](_0x34b77b,_0x1c4f72),_0x223477[_0x2e7297('0xdfe')]({'title':_0x2e7297('0x39a'),'msg':_0x2e7297('0x227f')}),_0x39e082();})['catch'](function(_0x103704){const _0x2bc70b=_0x2df586;console[_0x2bc70b('0x15aa')](_0x103704),_0x17434a[_0x2bc70b('0x1d4a')]=_0x103704[_0x2bc70b('0x1e07')][_0x2bc70b('0x1d4a')]||[{'message':_0x103704[_0x2bc70b('0x1b75')](),'type':'api.interval.update'}];});}function _0x39e082(_0x2215ed){const _0x574b6c=_0x105130;_0x3fbd9b[_0x574b6c('0x1cf4')](_0x2215ed);}}const _0x27bddc=_0x382f12;_0x53adee[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x1db0'),_0x566993('0xd57'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x53adee(_0x41f923,_0x2e4c3b,_0x183568,_0x2f634e,_0x350d65,_0x5131bb,_0xb35dca,_0x3ac499){const _0x1ec8b6=_0x566993,_0x48b587=this;_0x48b587[_0x1ec8b6('0x155f')]=_0xb35dca[_0x1ec8b6('0x14d4')](),_0x48b587['errors']=[],_0x48b587[_0x1ec8b6('0x20d6')]=_0x1ec8b6('0xcee')+(_0x2f634e['appType']||_0x2f634e[_0x1ec8b6('0x17e')])['toUpperCase'](),_0x48b587[_0x1ec8b6('0x119d')]=angular[_0x1ec8b6('0x2e3')](_0x2f634e),_0x48b587['crudPermissions']=_0x3ac499,_0x48b587['hasModulePermissions']={};if(_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1c00')])switch(_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x9d7')]?_0x48b587[_0x1ec8b6('0x119d')]['appType'][_0x1ec8b6('0x1e68')]():_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x17e')][_0x1ec8b6('0x1e68')]()){case'custom':break;case _0x1ec8b6('0x1601'):{const _0x38ee6f=_0x48b587['playback'][_0x1ec8b6('0x1c00')][_0x1ec8b6('0x43a')](',');_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x237a')]=_0x38ee6f[0x0],_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x604')]=_0x38ee6f[0x1],_0x48b587[_0x1ec8b6('0x119d')]['welcomemessage']=_0x38ee6f[_0x1ec8b6('0x2456')](0x2,_0x38ee6f[_0x1ec8b6('0x543')])[_0x1ec8b6('0x2259')](',');}break;case _0x1ec8b6('0x1680'):{const _0x433f2b=_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1c00')][_0x1ec8b6('0x43a')](',');_0x48b587['playback'][_0x1ec8b6('0x2e0')]=_0x433f2b[0x0],_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1d93')]=_0x433f2b[0x1],_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x10fc')]=_0x433f2b[0x2],_0x48b587['playback'][_0x1ec8b6('0x53')]=_0x433f2b[0x3],_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1a7')]=_0x433f2b[_0x1ec8b6('0x2456')](0x4,_0x433f2b[_0x1ec8b6('0x543')])['join'](',');}break;case'autoreply':{const _0x29b89a=_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1c00')][_0x1ec8b6('0x43a')](',');_0x48b587[_0x1ec8b6('0x119d')]['times']=isNaN(_0x29b89a[0x0])?_0x29b89a[0x0]:parseInt(_0x29b89a[0x0],0xa),_0x48b587['playback']['text']=_0x29b89a[_0x1ec8b6('0x2456')](0x1,_0x29b89a[_0x1ec8b6('0x543')])['join'](',');}break;case'message':_0x48b587['playback'][_0x1ec8b6('0x86e')]=_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1c00')];break;case _0x1ec8b6('0x256d'):_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x10ad')]=_0x48b587['playback'][_0x1ec8b6('0x1c00')][_0x1ec8b6('0x43a')]('=')[0x0],_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0xa7b')]=_0x48b587[_0x1ec8b6('0x119d')]['appdata'][_0x1ec8b6('0x43a')]('=')[0x1];break;case _0x1ec8b6('0x2426'):_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x220b')]=_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1c00')];break;default:{const _0x2aacca=_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1c00')][_0x1ec8b6('0x43a')](',');_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1c00')]=_0x3c8d8a()[_0x1ec8b6('0x1a56')](_0x2aacca[0x0])?_0x2aacca[0x0]:isNaN(_0x2aacca[0x0])?_0x2aacca[0x0]:parseInt(_0x2aacca[0x0],0xa),_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x2010')]=_0x3c8d8a()[_0x1ec8b6('0x1a56')](_0x2aacca[0x1])?_0x2aacca[0x1]:isNaN(_0x2aacca[0x1])?_0x2aacca[0x1]:parseInt(_0x2aacca[0x1],0xa);}break;}else{}_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1810')]&&_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1810')][_0x1ec8b6('0x1e68')]()===_0x1ec8b6('0xb33')&&_0x48b587[_0x1ec8b6('0x119d')]['appType'][_0x1ec8b6('0x1e68')]()===_0x1ec8b6('0x1edc')&&(_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x23f7')]=_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0xa04')]?_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0xa04')][_0x1ec8b6('0x43a')]('$')[0x0]:undefined,_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0x1961')]=_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0xe95')]?'CALLERID(all)='+_0x48b587[_0x1ec8b6('0x119d')][_0x1ec8b6('0xe95')]:undefined);_0x48b587[_0x1ec8b6('0x820')]=_0x59b787,_0x48b587[_0x1ec8b6('0x18e2')]=_0x4ea75e,_0xb35dca['hasRole'](_0x1ec8b6('0x79b'))?_0x5131bb[_0x1ec8b6('0x156f')][_0x1ec8b6('0x1d97')]({'fields':_0x1ec8b6('0xda1'),'sort':_0x1ec8b6('0x10ad'),'nolimit':_0x1ec8b6('0x799')})[_0x1ec8b6('0x1964')]['then'](function(_0x3725ae){const _0x41659f=_0x1ec8b6;_0x48b587['sounds']=_0x3725ae[_0x41659f('0x6aa')]||[];})[_0x1ec8b6('0x103c')](function(_0x555326){const _0x16f5d3=_0x1ec8b6;_0x183568[_0x16f5d3('0x15aa')]({'title':_0x555326[_0x16f5d3('0x276f')]?'API:'+_0x555326[_0x16f5d3('0x276f')]+'\x20-\x20'+_0x555326[_0x16f5d3('0x2696')]:_0x16f5d3('0xf44'),'msg':_0x555326[_0x16f5d3('0x1e07')]?JSON[_0x16f5d3('0x100b')](_0x555326[_0x16f5d3('0x1e07')]):_0x555326[_0x16f5d3('0x1b75')]()});}):_0x5131bb[_0x1ec8b6('0x156f')][_0x1ec8b6('0x1d97')]({'fields':_0x1ec8b6('0xda1'),'sort':_0x1ec8b6('0x10ad'),'nolimit':_0x1ec8b6('0x799')})[_0x1ec8b6('0x1964')]['then'](function(_0x3e1a7c){const _0x20bb64=_0x1ec8b6;_0x48b587[_0x20bb64('0x1230')]=_0x3e1a7c[_0x20bb64('0x6aa')]||[];})['then'](function(){const _0x4a78e7=_0x1ec8b6;return _0x5131bb['userProfileSection'][_0x4a78e7('0x1d97')]({'userProfileId':_0x48b587['currentUser'][_0x4a78e7('0x1946')],'sectionId':0x3ef})[_0x4a78e7('0x1964')];})[_0x1ec8b6('0x173b')](function(_0x3d1a24){const _0x442d4c=_0x1ec8b6,_0xb1cde=_0x3d1a24&&_0x3d1a24[_0x442d4c('0x6aa')]?_0x3d1a24[_0x442d4c('0x6aa')][0x0]:null;if(!_0xb1cde){const _0x57ce53=[];let _0x3122b7=null;_0x48b587[_0x442d4c('0x119d')]&&(_0x3122b7=_0x3c8d8a()['find'](_0x48b587[_0x442d4c('0x1230')],{'save_name':_0x48b587[_0x442d4c('0x119d')][_0x442d4c('0x156f')]}));for(let _0x38848f=0x0;_0x38848f<_0x48b587['sounds'][_0x442d4c('0x543')];_0x38848f++){_0x3122b7&&_0x48b587['sounds'][_0x38848f]['id']===_0x3122b7['id']&&(_0x48b587[_0x442d4c('0x1230')][_0x38848f]['canSelect']=![],_0x57ce53['push'](_0x48b587[_0x442d4c('0x1230')][_0x38848f]));}_0x48b587['sounds']=_0x57ce53;}else{if(!_0xb1cde[_0x442d4c('0x273e')])return _0x5131bb[_0x442d4c('0xda9')][_0x442d4c('0x1d97')]({'sectionId':_0xb1cde['id']})['$promise'][_0x442d4c('0x173b')](function(_0x4258dd){const _0x42da1e=_0x442d4c,_0x29b9b4=_0x3c8d8a()['map'](_0x4258dd['rows'],function(_0x6828aa){const _0x40d59e=a0_0xde5e;return _0x3c8d8a()[_0x40d59e('0x18ab')](_0x48b587['sounds'],{'id':_0x6828aa['resourceId']});});let _0x2a0285=null;_0x48b587[_0x42da1e('0x119d')]&&(_0x2a0285=_0x3c8d8a()[_0x42da1e('0x18ab')](_0x48b587[_0x42da1e('0x1230')],{'save_name':_0x48b587[_0x42da1e('0x119d')][_0x42da1e('0x156f')]}));if(_0x2a0285&&!_0x3c8d8a()[_0x42da1e('0x1ec')](_0x29b9b4,['id',_0x2a0285['id']])){const _0x3d1050=_0x3c8d8a()[_0x42da1e('0x18ab')](_0x48b587[_0x42da1e('0x1230')],{'id':_0x2a0285['id']});_0x3d1050[_0x42da1e('0x268e')]=![],_0x29b9b4[_0x42da1e('0x18bb')](_0x3d1050);}_0x48b587[_0x42da1e('0x1230')]=_0x29b9b4;});}})[_0x1ec8b6('0x103c')](function(_0x1d5fc3){const _0xed6e5c=_0x1ec8b6;_0x183568['error']({'title':_0x1d5fc3[_0xed6e5c('0x276f')]?_0xed6e5c('0x137')+_0x1d5fc3[_0xed6e5c('0x276f')]+_0xed6e5c('0x160c')+_0x1d5fc3['statusText']:'SYSTEM:GETsounds','msg':_0x1d5fc3[_0xed6e5c('0x1e07')]?JSON[_0xed6e5c('0x100b')](_0x1d5fc3['data']):_0x1d5fc3[_0xed6e5c('0x1b75')]()});});function _0x59b787(){const _0x1f117=_0x1ec8b6;_0x48b587['errors']=[];const _0x4a351e=[];_0x48b587['playback'][_0x1f117('0x1810')]&&_0x48b587[_0x1f117('0x119d')][_0x1f117('0x1810')][_0x1f117('0x1e68')]()===_0x1f117('0xb33')&&_0x48b587[_0x1f117('0x119d')][_0x1f117('0x9d7')]===_0x1f117('0x2150')&&(_0x48b587[_0x1f117('0x119d')][_0x1f117('0xa04')]=_0x350d65[_0x1f117('0x1429')]?(_0x48b587[_0x1f117('0x119d')][_0x1f117('0x23f7')]||'')+_0x1f117('0x1957')+_0x350d65[_0x1f117('0x1429')]+'}':(_0x48b587[_0x1f117('0x119d')][_0x1f117('0x23f7')]||'')+'${EXTEN}',_0x350d65[_0x1f117('0x76c')]!==_0x1f117('0x2741')?_0x48b587[_0x1f117('0x119d')]['options'][_0x1f117('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x48b587[_0x1f117('0x119d')][_0x1f117('0x2010')]+=_0x1f117('0x2474')):_0x48b587[_0x1f117('0x119d')][_0x1f117('0x2010')]=_0x48b587[_0x1f117('0x119d')]['options']['replace'](_0x1f117('0x2474'),''));if(_0x48b587['playback'][_0x1f117('0x9d7')]&&_0x48b587['playback'][_0x1f117('0x9d7')]===_0x1f117('0xbb4')){}else switch((_0x48b587[_0x1f117('0x119d')][_0x1f117('0x17e')]||_0x48b587[_0x1f117('0x119d')][_0x1f117('0x9d7')])[_0x1f117('0x1e68')]()){case _0x1f117('0x256d'):_0x48b587[_0x1f117('0x119d')][_0x1f117('0x1c00')]=_0x48b587[_0x1f117('0x119d')][_0x1f117('0x10ad')]+'='+_0x48b587[_0x1f117('0x119d')]['value'];break;case _0x1f117('0xbb4'):break;default:_0x4a351e[0x0]=_0x48b587['playback']['appdata'],_0x4a351e[0x1]=_0x48b587[_0x1f117('0x119d')][_0x1f117('0x2010')],_0x48b587[_0x1f117('0x119d')]['appdata']=_0x4a351e['join'](',');}_0x4ea75e(_0x48b587[_0x1f117('0x119d')]);}function _0x4ea75e(_0x5e05b7){_0x41f923['hide'](_0x5e05b7);}}const _0x516ccf=_0x53adee;_0xfc09b[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x1db0'),_0x566993('0xd57'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0xfc09b(_0x4490de,_0x512bd3,_0x37345e,_0x1cc1dd,_0x5c6b6c,_0x5a8d39,_0x29c373,_0x2e494b){const _0x35eb0d=_0x566993,_0x1b1670=this;_0x1b1670[_0x35eb0d('0x155f')]=_0x29c373[_0x35eb0d('0x14d4')](),_0x1b1670[_0x35eb0d('0x1d4a')]=[],_0x1b1670[_0x35eb0d('0x20d6')]='VOICE.EDIT_'+(_0x1cc1dd[_0x35eb0d('0x9d7')]||_0x1cc1dd['app'])['toUpperCase'](),_0x1b1670[_0x35eb0d('0x172')]=angular['copy'](_0x1cc1dd),_0x1b1670[_0x35eb0d('0x1dc1')]=_0x2e494b,_0x1b1670[_0x35eb0d('0xb0')]={};if(_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1c00')])switch(_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x9d7')]?_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x9d7')][_0x35eb0d('0x1e68')]():_0x1b1670['queue'][_0x35eb0d('0x17e')][_0x35eb0d('0x1e68')]()){case _0x35eb0d('0xbb4'):break;case _0x35eb0d('0x1601'):{const _0x12f47f=_0x1b1670[_0x35eb0d('0x172')]['appdata'][_0x35eb0d('0x43a')](',');_0x1b1670['queue']['key']=_0x12f47f[0x0],_0x1b1670[_0x35eb0d('0x172')]['language']=_0x12f47f[0x1],_0x1b1670[_0x35eb0d('0x172')]['welcomemessage']=_0x12f47f[_0x35eb0d('0x2456')](0x2,_0x12f47f['length'])[_0x35eb0d('0x2259')](',');}break;case _0x35eb0d('0x1680'):{const _0x8a305b=_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1c00')][_0x35eb0d('0x43a')](',');_0x1b1670['queue'][_0x35eb0d('0x2e0')]=_0x8a305b[0x0],_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1d93')]=_0x8a305b[0x1],_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x10fc')]=_0x8a305b[0x2],_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x53')]=_0x8a305b[0x3],_0x1b1670['queue']['welcomemessage']=_0x8a305b[_0x35eb0d('0x2456')](0x4,_0x8a305b['length'])[_0x35eb0d('0x2259')](',');}break;case _0x35eb0d('0x23fe'):{const _0x11c79e=_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1c00')]['split'](',');_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x611')]=isNaN(_0x11c79e[0x0])?_0x11c79e[0x0]:parseInt(_0x11c79e[0x0],0xa),_0x1b1670['queue'][_0x35eb0d('0x86e')]=_0x11c79e[_0x35eb0d('0x2456')](0x1,_0x11c79e[_0x35eb0d('0x543')])['join'](',');}break;case _0x35eb0d('0x67f'):_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x86e')]=_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1c00')];break;case _0x35eb0d('0x256d'):_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x10ad')]=_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1c00')][_0x35eb0d('0x43a')]('=')[0x0],_0x1b1670[_0x35eb0d('0x172')]['value']=_0x1b1670[_0x35eb0d('0x172')]['appdata']['split']('=')[0x1];break;case _0x35eb0d('0x2426'):_0x1b1670['queue'][_0x35eb0d('0x220b')]=_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1c00')];break;default:{const _0x1a9f3a=_0x1b1670['queue']['appdata'][_0x35eb0d('0x43a')](',');_0x1b1670[_0x35eb0d('0x172')]['queue']=_0x3c8d8a()['isEmpty'](_0x1a9f3a[0x0])?_0x1a9f3a[0x0]:isNaN(_0x1a9f3a[0x0])?_0x1a9f3a[0x0]:parseInt(_0x1a9f3a[0x0],0xa),_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x2010')]=_0x3c8d8a()[_0x35eb0d('0x1a56')](_0x1a9f3a[0x1])?_0x1a9f3a[0x1]:isNaN(_0x1a9f3a[0x1])?_0x1a9f3a[0x1]:parseInt(_0x1a9f3a[0x1],0xa),_0x1b1670['queue']['URL']=_0x3c8d8a()[_0x35eb0d('0x1a56')](_0x1a9f3a[0x2])?_0x1a9f3a[0x2]:isNaN(_0x1a9f3a[0x2])?_0x1a9f3a[0x2]:parseInt(_0x1a9f3a[0x2],0xa),_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x156f')]=_0x3c8d8a()[_0x35eb0d('0x1a56')](_0x1a9f3a[0x3])?_0x1a9f3a[0x3]:isNaN(_0x1a9f3a[0x3])?_0x1a9f3a[0x3]:parseInt(_0x1a9f3a[0x3],0xa),_0x1b1670['queue'][_0x35eb0d('0x1f84')]=_0x3c8d8a()[_0x35eb0d('0x1a56')](_0x1a9f3a[0x4])?_0x1a9f3a[0x4]:isNaN(_0x1a9f3a[0x4])?_0x1a9f3a[0x4]:parseInt(_0x1a9f3a[0x4],0xa),_0x1b1670['queue'][_0x35eb0d('0x2426')]=_0x3c8d8a()['isEmpty'](_0x1a9f3a[0x5])?_0x1a9f3a[0x5]:isNaN(_0x1a9f3a[0x5])?_0x1a9f3a[0x5]:parseInt(_0x1a9f3a[0x5],0xa),_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x212e')]=_0x3c8d8a()[_0x35eb0d('0x1a56')](_0x1a9f3a[0x6])?_0x1a9f3a[0x6]:isNaN(_0x1a9f3a[0x6])?_0x1a9f3a[0x6]:parseInt(_0x1a9f3a[0x6],0xa),_0x1b1670[_0x35eb0d('0x172')]['gosub']=_0x3c8d8a()[_0x35eb0d('0x1a56')](_0x1a9f3a[0x7])?_0x1a9f3a[0x7]:isNaN(_0x1a9f3a[0x7])?_0x1a9f3a[0x7]:parseInt(_0x1a9f3a[0x7],0xa),_0x1b1670[_0x35eb0d('0x172')]['rule']=_0x3c8d8a()[_0x35eb0d('0x1a56')](_0x1a9f3a[0x8])?_0x1a9f3a[0x8]:isNaN(_0x1a9f3a[0x8])?_0x1a9f3a[0x8]:parseInt(_0x1a9f3a[0x8],0xa),_0x1b1670['queue'][_0x35eb0d('0xf2c')]=_0x3c8d8a()['isEmpty'](_0x1a9f3a[0x9])?_0x1a9f3a[0x9]:isNaN(_0x1a9f3a[0x9])?_0x1a9f3a[0x9]:parseInt(_0x1a9f3a[0x9],0xa);}break;}else{}_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1810')]&&_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1810')][_0x35eb0d('0x1e68')]()===_0x35eb0d('0xb33')&&_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x9d7')][_0x35eb0d('0x1e68')]()===_0x35eb0d('0x1edc')&&(_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x23f7')]=_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0xa04')]?_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0xa04')]['split']('$')[0x0]:undefined,_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0x1961')]=_0x1b1670[_0x35eb0d('0x172')]['callerID']?_0x35eb0d('0x20a8')+_0x1b1670[_0x35eb0d('0x172')][_0x35eb0d('0xe95')]:undefined);_0x1b1670[_0x35eb0d('0x820')]=_0x2a028f,_0x1b1670[_0x35eb0d('0x18e2')]=_0x3ff0ee,_0x29c373[_0x35eb0d('0x1b4e')](_0x35eb0d('0x79b'))?_0x5a8d39[_0x35eb0d('0x156f')][_0x35eb0d('0x1d97')]({'fields':_0x35eb0d('0xda1'),'sort':_0x35eb0d('0x10ad'),'nolimit':_0x35eb0d('0x799')})[_0x35eb0d('0x1964')][_0x35eb0d('0x173b')](function(_0x5d98e2){const _0x3ad66b=_0x35eb0d;_0x1b1670[_0x3ad66b('0x1230')]=_0x5d98e2[_0x3ad66b('0x6aa')]||[];})['catch'](function(_0x360ec2){const _0x3bc3a3=_0x35eb0d;_0x37345e['error']({'title':_0x360ec2[_0x3bc3a3('0x276f')]?_0x3bc3a3('0x137')+_0x360ec2['status']+_0x3bc3a3('0x160c')+_0x360ec2['statusText']:_0x3bc3a3('0xf44'),'msg':_0x360ec2[_0x3bc3a3('0x1e07')]?JSON[_0x3bc3a3('0x100b')](_0x360ec2[_0x3bc3a3('0x1e07')]):_0x360ec2['toString']()});}):_0x5a8d39['sound']['get']({'fields':_0x35eb0d('0xda1'),'sort':'name','nolimit':'true'})['$promise'][_0x35eb0d('0x173b')](function(_0x354adc){const _0x22828f=_0x35eb0d;_0x1b1670[_0x22828f('0x1230')]=_0x354adc[_0x22828f('0x6aa')]||[];})[_0x35eb0d('0x173b')](function(){const _0x1f58d7=_0x35eb0d;return _0x5a8d39['userProfileSection']['get']({'userProfileId':_0x1b1670[_0x1f58d7('0x155f')]['userProfileId'],'sectionId':0x3ef})[_0x1f58d7('0x1964')];})['then'](function(_0x143e5d){const _0x456fff=_0x35eb0d,_0x239b3d=_0x143e5d&&_0x143e5d['rows']?_0x143e5d[_0x456fff('0x6aa')][0x0]:null;if(!_0x239b3d){const _0x15d60b=[];let _0x405fb8=null;_0x1b1670[_0x456fff('0x172')]&&(_0x405fb8=_0x3c8d8a()[_0x456fff('0x18ab')](_0x1b1670[_0x456fff('0x1230')],{'save_name':_0x1b1670[_0x456fff('0x172')][_0x456fff('0x156f')]}));for(let _0x4628fb=0x0;_0x4628fb<_0x1b1670[_0x456fff('0x1230')][_0x456fff('0x543')];_0x4628fb++){_0x405fb8&&_0x1b1670[_0x456fff('0x1230')][_0x4628fb]['id']===_0x405fb8['id']&&(_0x1b1670[_0x456fff('0x1230')][_0x4628fb][_0x456fff('0x268e')]=![],_0x15d60b[_0x456fff('0x18bb')](_0x1b1670[_0x456fff('0x1230')][_0x4628fb]));}_0x1b1670[_0x456fff('0x1230')]=_0x15d60b;}else{if(!_0x239b3d[_0x456fff('0x273e')])return _0x5a8d39[_0x456fff('0xda9')][_0x456fff('0x1d97')]({'sectionId':_0x239b3d['id']})[_0x456fff('0x1964')]['then'](function(_0x391e00){const _0x234108=_0x456fff,_0x22c379=_0x3c8d8a()[_0x234108('0x8a2')](_0x391e00[_0x234108('0x6aa')],function(_0x402369){const _0x46b976=_0x234108;return _0x3c8d8a()[_0x46b976('0x18ab')](_0x1b1670[_0x46b976('0x1230')],{'id':_0x402369[_0x46b976('0x1ce0')]});});let _0x541cae=null;_0x1b1670[_0x234108('0x172')]&&(_0x541cae=_0x3c8d8a()[_0x234108('0x18ab')](_0x1b1670[_0x234108('0x1230')],{'save_name':_0x1b1670[_0x234108('0x172')][_0x234108('0x156f')]}));if(_0x541cae&&!_0x3c8d8a()[_0x234108('0x1ec')](_0x22c379,['id',_0x541cae['id']])){const _0x8124ac=_0x3c8d8a()['find'](_0x1b1670['sounds'],{'id':_0x541cae['id']});_0x8124ac[_0x234108('0x268e')]=![],_0x22c379['push'](_0x8124ac);}_0x1b1670[_0x234108('0x1230')]=_0x22c379;});}})['catch'](function(_0x3488fe){const _0x34390f=_0x35eb0d;_0x37345e[_0x34390f('0x15aa')]({'title':_0x3488fe['status']?_0x34390f('0x137')+_0x3488fe[_0x34390f('0x276f')]+_0x34390f('0x160c')+_0x3488fe['statusText']:_0x34390f('0x56a'),'msg':_0x3488fe['data']?JSON[_0x34390f('0x100b')](_0x3488fe[_0x34390f('0x1e07')]):_0x3488fe['toString']()});}),_0x29c373[_0x35eb0d('0x1b4e')](_0x35eb0d('0x79b'))?_0x5a8d39['voiceQueue'][_0x35eb0d('0x1d97')]({'type':_0x35eb0d('0x1755'),'fields':_0x35eb0d('0x1c66'),'sort':_0x35eb0d('0x10ad'),'nolimit':'true'})['$promise'][_0x35eb0d('0x173b')](function(_0x568040){const _0x34d385=_0x35eb0d;_0x1b1670[_0x34d385('0xeae')]=_0x568040['rows']||[];})[_0x35eb0d('0x103c')](function(_0x1aaae7){const _0x863fc=_0x35eb0d;_0x37345e[_0x863fc('0x15aa')]({'title':_0x1aaae7[_0x863fc('0x276f')]?_0x863fc('0x137')+_0x1aaae7[_0x863fc('0x276f')]+_0x863fc('0x160c')+_0x1aaae7['statusText']:_0x863fc('0x1e3c'),'msg':_0x1aaae7[_0x863fc('0x1e07')]?JSON[_0x863fc('0x100b')](_0x1aaae7[_0x863fc('0x1e07')]):_0x1aaae7[_0x863fc('0x1b75')]()});}):_0x5a8d39[_0x35eb0d('0x1282')]['get']({'type':'inbound','fields':'id,name,type','sort':_0x35eb0d('0x10ad'),'nolimit':_0x35eb0d('0x799')})['$promise'][_0x35eb0d('0x173b')](function(_0x3bd0ae){const _0xda545e=_0x35eb0d;_0x1b1670[_0xda545e('0xeae')]=_0x3bd0ae[_0xda545e('0x6aa')]||[];})[_0x35eb0d('0x173b')](function(){const _0x1eb89f=_0x35eb0d;return _0x5a8d39['userProfileSection'][_0x1eb89f('0x1d97')]({'userProfileId':_0x1b1670[_0x1eb89f('0x155f')][_0x1eb89f('0x1946')],'sectionId':0x191})[_0x1eb89f('0x1964')];})[_0x35eb0d('0x173b')](function(_0x188d74){const _0xe1d965=_0x35eb0d,_0x1e7236=_0x188d74&&_0x188d74['rows']?_0x188d74[_0xe1d965('0x6aa')][0x0]:null;if(!_0x1e7236){const _0x5c300c=[];let _0x559ee7=null;_0x1b1670[_0xe1d965('0x172')]&&(_0x559ee7=_0x3c8d8a()['find'](_0x1b1670['queues'],{'name':_0x1b1670[_0xe1d965('0x172')][_0xe1d965('0x172')]}));for(let _0x31be66=0x0;_0x31be66<_0x1b1670[_0xe1d965('0xeae')][_0xe1d965('0x543')];_0x31be66++){_0x559ee7&&_0x1b1670['queues'][_0x31be66]['id']===_0x559ee7['id']&&(_0x1b1670['queues'][_0x31be66][_0xe1d965('0x268e')]=![],_0x5c300c[_0xe1d965('0x18bb')](_0x1b1670[_0xe1d965('0xeae')][_0x31be66]));}_0x1b1670['queues']=_0x5c300c;}else{if(!_0x1e7236[_0xe1d965('0x273e')])return _0x5a8d39[_0xe1d965('0xda9')][_0xe1d965('0x1d97')]({'sectionId':_0x1e7236['id']})[_0xe1d965('0x1964')][_0xe1d965('0x173b')](function(_0x16b9af){const _0x357fc8=_0xe1d965,_0x55055c=_0x3c8d8a()['map'](_0x16b9af[_0x357fc8('0x6aa')],function(_0x5348a5){const _0x1edf0c=_0x357fc8;return _0x3c8d8a()[_0x1edf0c('0x18ab')](_0x1b1670[_0x1edf0c('0xeae')],{'id':_0x5348a5[_0x1edf0c('0x1ce0')]});});let _0x3ec7c1=null;_0x1b1670[_0x357fc8('0x172')]&&(_0x3ec7c1=_0x3c8d8a()[_0x357fc8('0x18ab')](_0x1b1670[_0x357fc8('0xeae')],{'name':_0x1b1670['queue'][_0x357fc8('0x172')]}));if(_0x3ec7c1&&!_0x3c8d8a()[_0x357fc8('0x1ec')](_0x55055c,['id',_0x3ec7c1['id']])){const _0x2f9033=_0x3c8d8a()['find'](_0x1b1670[_0x357fc8('0xeae')],{'id':_0x3ec7c1['id']});_0x2f9033[_0x357fc8('0x268e')]=![],_0x55055c[_0x357fc8('0x18bb')](_0x2f9033);}_0x1b1670['queues']=_0x55055c;});}})['catch'](function(_0x28724d){const _0x3f1cec=_0x35eb0d;_0x37345e[_0x3f1cec('0x15aa')]({'title':_0x28724d[_0x3f1cec('0x276f')]?_0x3f1cec('0x137')+_0x28724d['status']+_0x3f1cec('0x160c')+_0x28724d['statusText']:_0x3f1cec('0x75f'),'msg':_0x28724d[_0x3f1cec('0x1e07')]?JSON[_0x3f1cec('0x100b')](_0x28724d['data']):_0x28724d[_0x3f1cec('0x1b75')]()});});function _0x2a028f(){const _0x1386d0=_0x35eb0d;_0x1b1670[_0x1386d0('0x1d4a')]=[];const _0x7ec026=[];_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x1810')]&&_0x1b1670[_0x1386d0('0x172')]['type'][_0x1386d0('0x1e68')]()===_0x1386d0('0xb33')&&_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x9d7')]===_0x1386d0('0x2150')&&(_0x1b1670['queue'][_0x1386d0('0xa04')]=_0x5c6b6c[_0x1386d0('0x1429')]?(_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x23f7')]||'')+'${EXTEN:'+_0x5c6b6c['cutdigits']+'}':(_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x23f7')]||'')+'${EXTEN}',_0x5c6b6c[_0x1386d0('0x76c')]!=='none'?_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x2010')][_0x1386d0('0x2087')](_0x1386d0('0x2474'))<0x0&&(_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x2010')]+=_0x1386d0('0x2474')):_0x1b1670['queue']['options']=_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x2010')][_0x1386d0('0x166c')](_0x1386d0('0x2474'),''));if(_0x1b1670[_0x1386d0('0x172')]['appType']&&_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x9d7')]===_0x1386d0('0xbb4')){}else switch((_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x17e')]||_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x9d7')])[_0x1386d0('0x1e68')]()){case'set':_0x1b1670[_0x1386d0('0x172')]['appdata']=_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x10ad')]+'='+_0x1b1670['queue'][_0x1386d0('0xa7b')];break;case _0x1386d0('0xbb4'):break;default:_0x7ec026[0x0]=_0x1b1670['queue'][_0x1386d0('0x172')],_0x7ec026[0x1]=_0x1b1670['queue']['options'],_0x7ec026[0x2]=_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x135a')],_0x7ec026[0x3]=_0x1b1670['queue']['sound'],_0x7ec026[0x4]=_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x1f84')],_0x7ec026[0x5]=_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x2426')],_0x7ec026[0x6]=_0x1b1670[_0x1386d0('0x172')]['macro'],_0x7ec026[0x7]=_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x18ef')],_0x7ec026[0x8]=_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x2136')],_0x7ec026[0x9]=_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0xf2c')],_0x1b1670[_0x1386d0('0x172')][_0x1386d0('0x1c00')]=_0x7ec026[_0x1386d0('0x2259')](',');}_0x3ff0ee(_0x1b1670['queue']);}function _0x3ff0ee(_0x510ee6){const _0x588243=_0x35eb0d;_0x4490de[_0x588243('0x1cf4')](_0x510ee6);}}const _0x401ca5=_0xfc09b;_0x2f47d5[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x1db0'),_0x566993('0xd57'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x2f47d5(_0x98fc97,_0x2c9036,_0x5ae318,_0x3d20d1,_0x2dc02d,_0x42ac4f,_0x3f3652,_0x35850a){const _0xa7e9e9=_0x566993,_0x1b4049=this;_0x1b4049[_0xa7e9e9('0x155f')]=_0x3f3652[_0xa7e9e9('0x14d4')](),_0x1b4049[_0xa7e9e9('0x1d4a')]=[],_0x1b4049[_0xa7e9e9('0x20d6')]=_0xa7e9e9('0xcee')+(_0x3d20d1[_0xa7e9e9('0x9d7')]||_0x3d20d1[_0xa7e9e9('0x17e')])[_0xa7e9e9('0x1164')](),_0x1b4049['ringgroup']=angular[_0xa7e9e9('0x2e3')](_0x3d20d1),_0x1b4049[_0xa7e9e9('0x1dc1')]=_0x35850a,_0x1b4049[_0xa7e9e9('0xb0')]={};if(_0x1b4049['ringgroup'][_0xa7e9e9('0x1c00')])switch(_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x9d7')]?_0x1b4049[_0xa7e9e9('0x1174')]['appType'][_0xa7e9e9('0x1e68')]():_0x1b4049['ringgroup'][_0xa7e9e9('0x17e')][_0xa7e9e9('0x1e68')]()){case'custom':break;case'dialogflow':{const _0x18df70=_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x1c00')][_0xa7e9e9('0x43a')](',');_0x1b4049[_0xa7e9e9('0x1174')]['key']=_0x18df70[0x0],_0x1b4049[_0xa7e9e9('0x1174')]['language']=_0x18df70[0x1],_0x1b4049['ringgroup'][_0xa7e9e9('0x1a7')]=_0x18df70[_0xa7e9e9('0x2456')](0x2,_0x18df70['length'])[_0xa7e9e9('0x2259')](',');}break;case _0xa7e9e9('0x1680'):{const _0x5b9672=_0x1b4049['ringgroup'][_0xa7e9e9('0x1c00')]['split'](',');_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x2e0')]=_0x5b9672[0x0],_0x1b4049[_0xa7e9e9('0x1174')]['secretaccesskey']=_0x5b9672[0x1],_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x10fc')]=_0x5b9672[0x2],_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x53')]=_0x5b9672[0x3],_0x1b4049[_0xa7e9e9('0x1174')]['welcomemessage']=_0x5b9672[_0xa7e9e9('0x2456')](0x4,_0x5b9672[_0xa7e9e9('0x543')])[_0xa7e9e9('0x2259')](',');}break;case'autoreply':{const _0x28b31c=_0x1b4049[_0xa7e9e9('0x1174')]['appdata']['split'](',');_0x1b4049[_0xa7e9e9('0x1174')]['times']=isNaN(_0x28b31c[0x0])?_0x28b31c[0x0]:parseInt(_0x28b31c[0x0],0xa),_0x1b4049['ringgroup'][_0xa7e9e9('0x86e')]=_0x28b31c['slice'](0x1,_0x28b31c[_0xa7e9e9('0x543')])['join'](',');}break;case _0xa7e9e9('0x67f'):_0x1b4049['ringgroup'][_0xa7e9e9('0x86e')]=_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x1c00')];break;case _0xa7e9e9('0x256d'):_0x1b4049['ringgroup'][_0xa7e9e9('0x10ad')]=_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x1c00')]['split']('=')[0x0],_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0xa7b')]=_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x1c00')]['split']('=')[0x1];break;case _0xa7e9e9('0x2426'):_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x220b')]=_0x1b4049[_0xa7e9e9('0x1174')]['appdata'];break;default:{const _0x172a64=_0x1b4049['ringgroup']['appdata'][_0xa7e9e9('0x43a')](',');_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x237c')]=_0x172a64[0x0][_0xa7e9e9('0x43a')]('&'),_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x1f84')]=_0x3c8d8a()[_0xa7e9e9('0x1a56')](_0x172a64[0x1])?_0x172a64[0x1]:isNaN(_0x172a64[0x1])?_0x172a64[0x1]:parseInt(_0x172a64[0x1],0xa),_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x2010')]=_0x3c8d8a()[_0xa7e9e9('0x1a56')](_0x172a64[0x2])?_0x172a64[0x2]:isNaN(_0x172a64[0x2])?_0x172a64[0x2]:parseInt(_0x172a64[0x2],0xa),_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0xd1')]=_0x3c8d8a()[_0xa7e9e9('0x1a56')](_0x172a64[0x3])?_0x172a64[0x3]:isNaN(_0x172a64[0x3])?_0x172a64[0x3]:parseInt(_0x172a64[0x3],0xa);}break;}else{}_0x1b4049[_0xa7e9e9('0x1174')]['type']&&_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x1810')][_0xa7e9e9('0x1e68')]()===_0xa7e9e9('0xb33')&&_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x9d7')][_0xa7e9e9('0x1e68')]()==='outbounddial'&&(_0x1b4049['ringgroup'][_0xa7e9e9('0x23f7')]=_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0xa04')]?_0x1b4049['ringgroup'][_0xa7e9e9('0xa04')][_0xa7e9e9('0x43a')]('$')[0x0]:undefined,_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0x1961')]=_0x1b4049[_0xa7e9e9('0x1174')][_0xa7e9e9('0xe95')]?_0xa7e9e9('0x20a8')+_0x1b4049['ringgroup']['callerID']:undefined);_0x1b4049['saveInboundRouteApp']=_0x4c024c,_0x1b4049['closeDialog']=_0x95c142;const _0x4479ef=[{'id':0xca,'role':_0xa7e9e9('0x7b0')},{'id':0xcb,'role':_0xa7e9e9('0x149c')}];let _0x52faf1=null;_0x3f3652[_0xa7e9e9('0x1b4e')](_0xa7e9e9('0x79b'))?_0x42ac4f[_0xa7e9e9('0x166f')]['get']({'fields':_0xa7e9e9('0x2799'),'sort':_0xa7e9e9('0x10ad'),'nolimit':_0xa7e9e9('0x799')})['$promise'][_0xa7e9e9('0x173b')](function(_0x1923b4){const _0x48a9af=_0xa7e9e9;_0x1b4049[_0x48a9af('0x1e14')]=_0x1923b4[_0x48a9af('0x6aa')]||[];})[_0xa7e9e9('0x103c')](function(_0x13eeec){const _0x5460b8=_0xa7e9e9;_0x5ae318['error']({'title':_0x13eeec['status']?_0x5460b8('0x137')+_0x13eeec['status']+_0x5460b8('0x160c')+_0x13eeec[_0x5460b8('0x2696')]:_0x5460b8('0xbdd'),'msg':_0x13eeec[_0x5460b8('0x1e07')]?JSON[_0x5460b8('0x100b')](_0x13eeec['data']):_0x13eeec[_0x5460b8('0x1b75')]()});}):_0x42ac4f[_0xa7e9e9('0x166f')][_0xa7e9e9('0x1d97')]({'fields':'id,name,role','sort':_0xa7e9e9('0x10ad'),'nolimit':_0xa7e9e9('0x799')})[_0xa7e9e9('0x1964')]['then'](function(_0x3bdd4c){const _0x26324d=_0xa7e9e9;_0x52faf1=_0x3bdd4c[_0x26324d('0x6aa')]||[];})[_0xa7e9e9('0x173b')](function(){const _0xaa70db=_0xa7e9e9,_0x22f625=[];for(let _0x3eac27=0x0;_0x3eac27<_0x4479ef['length'];_0x3eac27++){_0x22f625['push'](_0x42ac4f[_0xaa70db('0x170e')][_0xaa70db('0x1d97')]({'userProfileId':_0x1b4049[_0xaa70db('0x155f')][_0xaa70db('0x1946')],'sectionId':_0x4479ef[_0x3eac27]['id']})[_0xaa70db('0x1964')]);}return _0x2c9036[_0xaa70db('0x27c8')](_0x22f625);})[_0xa7e9e9('0x173b')](function(_0x48fe44){const _0x69a413=_0xa7e9e9,_0x4534bc=_0x3c8d8a()[_0x69a413('0x8a2')](_0x48fe44,function(_0x488be1){return _0x488be1&&_0x488be1['rows']?_0x488be1['rows'][0x0]:null;}),_0x35b20a=[];for(let _0x3097ec=0x0;_0x3097ec<_0x4479ef[_0x69a413('0x543')];_0x3097ec++){const _0x980651=_0x3c8d8a()[_0x69a413('0x18ab')](_0x4534bc,['sectionId',_0x4479ef[_0x3097ec]['id']]);if(_0x980651){if(!_0x980651[_0x69a413('0x273e')])_0x35b20a[_0x69a413('0x18bb')](_0x42ac4f[_0x69a413('0xda9')]['get']({'sectionId':_0x980651['id']})[_0x69a413('0x1964')]);else{const _0x4d8fd9=[];_0x52faf1[_0x69a413('0xa6a')](function(_0x22f3a2){const _0x51e327=_0x69a413;_0x22f3a2[_0x51e327('0x14a')]===_0x4479ef[_0x3097ec]['role']&&_0x4d8fd9['push'](_0x22f3a2);}),_0x35b20a[_0x69a413('0x18bb')]({'rows':_0x4d8fd9,'count':_0x4d8fd9['length']});}}}return _0x2c9036[_0x69a413('0x27c8')](_0x35b20a);})[_0xa7e9e9('0x173b')](function(_0x402d1d){const _0x468ca2=_0xa7e9e9,_0x52fc7d=[];let _0xd95628=null;_0x1b4049[_0x468ca2('0x1174')]&&(_0xd95628=_0x3c8d8a()[_0x468ca2('0x18ab')](_0x52faf1,{'name':_0x1b4049[_0x468ca2('0x1174')][_0x468ca2('0x237c')]}));for(let _0x58b100=0x0;_0x58b100<_0x402d1d[_0x468ca2('0x543')];_0x58b100++){const _0x2a3098=_0x402d1d[_0x58b100][_0x468ca2('0x6aa')]||[];_0x2a3098[_0x468ca2('0xa6a')](function(_0x206c24){const _0xbf2b=_0x468ca2;_0x52fc7d[_0xbf2b('0x18bb')](_0x206c24);});}_0xd95628&&!_0x3c8d8a()['some'](_0x52fc7d,[_0x468ca2('0x1ce0'),_0xd95628['id']])&&_0x52faf1[_0x468ca2('0xa6a')](function(_0x4b72b1){const _0x2fc256=_0x468ca2;_0x4b72b1['id']===_0xd95628['id']&&(_0x4b72b1[_0x2fc256('0x268e')]=![],_0x52fc7d['push'](_0x4b72b1));}),_0x1b4049[_0x468ca2('0x1e14')]=_0x52fc7d;})[_0xa7e9e9('0x103c')](function(_0x116353){const _0x5a26df=_0xa7e9e9;_0x5ae318[_0x5a26df('0x15aa')]({'title':_0x116353[_0x5a26df('0x276f')]?_0x5a26df('0x137')+_0x116353[_0x5a26df('0x276f')]+_0x5a26df('0x160c')+_0x116353['statusText']:_0x5a26df('0x1543'),'msg':_0x116353['data']?JSON[_0x5a26df('0x100b')](_0x116353[_0x5a26df('0x1e07')]):_0x116353['toString']()});});function _0x4c024c(){const _0x1cd665=_0xa7e9e9;_0x1b4049[_0x1cd665('0x1d4a')]=[];const _0x32c111=[];_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x1810')]&&_0x1b4049['ringgroup'][_0x1cd665('0x1810')][_0x1cd665('0x1e68')]()===_0x1cd665('0xb33')&&_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x9d7')]==='outboundDial'&&(_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0xa04')]=_0x2dc02d[_0x1cd665('0x1429')]?(_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x23f7')]||'')+_0x1cd665('0x1957')+_0x2dc02d[_0x1cd665('0x1429')]+'}':(_0x1b4049[_0x1cd665('0x1174')]['prefix']||'')+_0x1cd665('0x1dc5'),_0x2dc02d[_0x1cd665('0x76c')]!==_0x1cd665('0x2741')?_0x1b4049[_0x1cd665('0x1174')]['options'][_0x1cd665('0x2087')](_0x1cd665('0x2474'))<0x0&&(_0x1b4049['ringgroup'][_0x1cd665('0x2010')]+=_0x1cd665('0x2474')):_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x2010')]=_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x2010')]['replace'](_0x1cd665('0x2474'),''));if(_0x1b4049[_0x1cd665('0x1174')]['appType']&&_0x1b4049[_0x1cd665('0x1174')]['appType']===_0x1cd665('0xbb4')){}else switch((_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x17e')]||_0x1b4049[_0x1cd665('0x1174')]['appType'])[_0x1cd665('0x1e68')]()){case'set':_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x1c00')]=_0x1b4049['ringgroup']['name']+'='+_0x1b4049['ringgroup'][_0x1cd665('0xa7b')];break;case _0x1cd665('0xbb4'):break;default:_0x32c111[0x0]=_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x237c')][_0x1cd665('0x2259')]('&'),_0x32c111[0x1]=_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0x1f84')],_0x32c111[0x2]=_0x1b4049['ringgroup'][_0x1cd665('0x2010')],_0x32c111[0x3]=_0x1b4049[_0x1cd665('0x1174')][_0x1cd665('0xd1')],_0x1b4049['ringgroup'][_0x1cd665('0x1c00')]=_0x32c111[_0x1cd665('0x2259')](',');}_0x95c142(_0x1b4049[_0x1cd665('0x1174')]);}function _0x95c142(_0x102f08){const _0x5060e0=_0xa7e9e9;_0x98fc97[_0x5060e0('0x1cf4')](_0x102f08);}}const _0x5c560d=_0x2f47d5;_0xc99dbd[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty','inboundrouteApp',_0x566993('0xd57'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0xc99dbd(_0x136d0e,_0x123864,_0x220212,_0x54b7ce,_0x2752f9,_0x5209ff,_0x30b7a6,_0x2e576d){const _0x5c66b8=_0x566993,_0x456833=this;_0x456833[_0x5c66b8('0x155f')]=_0x30b7a6[_0x5c66b8('0x14d4')](),_0x456833['errors']=[],_0x456833['title']=_0x5c66b8('0xcee')+(_0x54b7ce['appType']||_0x54b7ce['app'])[_0x5c66b8('0x1164')](),_0x456833[_0x5c66b8('0x256d')]=angular[_0x5c66b8('0x2e3')](_0x54b7ce),_0x456833[_0x5c66b8('0x1dc1')]=_0x2e576d,_0x456833[_0x5c66b8('0xb0')]={};if(_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x1c00')])switch(_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x9d7')]?_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x9d7')]['toLowerCase']():_0x456833[_0x5c66b8('0x256d')]['app'][_0x5c66b8('0x1e68')]()){case _0x5c66b8('0xbb4'):break;case _0x5c66b8('0x1601'):{const _0x2083de=_0x456833['set'][_0x5c66b8('0x1c00')]['split'](',');_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x237a')]=_0x2083de[0x0],_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x604')]=_0x2083de[0x1],_0x456833['set'][_0x5c66b8('0x1a7')]=_0x2083de[_0x5c66b8('0x2456')](0x2,_0x2083de[_0x5c66b8('0x543')])[_0x5c66b8('0x2259')](',');}break;case _0x5c66b8('0x1680'):{const _0x3f935=_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x1c00')][_0x5c66b8('0x43a')](',');_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x2e0')]=_0x3f935[0x0],_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x1d93')]=_0x3f935[0x1],_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x10fc')]=_0x3f935[0x2],_0x456833[_0x5c66b8('0x256d')]['botname']=_0x3f935[0x3],_0x456833['set']['welcomemessage']=_0x3f935[_0x5c66b8('0x2456')](0x4,_0x3f935[_0x5c66b8('0x543')])[_0x5c66b8('0x2259')](',');}break;case _0x5c66b8('0x23fe'):{const _0x2a9ffe=_0x456833['set']['appdata'][_0x5c66b8('0x43a')](',');_0x456833['set'][_0x5c66b8('0x611')]=isNaN(_0x2a9ffe[0x0])?_0x2a9ffe[0x0]:parseInt(_0x2a9ffe[0x0],0xa),_0x456833[_0x5c66b8('0x256d')]['text']=_0x2a9ffe[_0x5c66b8('0x2456')](0x1,_0x2a9ffe[_0x5c66b8('0x543')])['join'](',');}break;case _0x5c66b8('0x67f'):_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x86e')]=_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x1c00')];break;case _0x5c66b8('0x256d'):_0x456833['set'][_0x5c66b8('0x10ad')]=_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x1c00')][_0x5c66b8('0x43a')]('=')[0x0],_0x456833['set'][_0x5c66b8('0xa7b')]=_0x456833['set']['appdata'][_0x5c66b8('0x43a')]('=')[0x1];break;case _0x5c66b8('0x2426'):_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x220b')]=_0x456833['set']['appdata'];break;default:{const _0x46d2f9=_0x456833[_0x5c66b8('0x256d')]['appdata'][_0x5c66b8('0x43a')]('=');_0x456833[_0x5c66b8('0x256d')]['name']=_0x3c8d8a()[_0x5c66b8('0x1a56')](_0x46d2f9[0x0])?_0x46d2f9[0x0]:isNaN(_0x46d2f9[0x0])?_0x46d2f9[0x0]:parseInt(_0x46d2f9[0x0],0xa),_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0xa7b')]=_0x3c8d8a()[_0x5c66b8('0x1a56')](_0x46d2f9[0x1])?_0x46d2f9[0x1]:isNaN(_0x46d2f9[0x1])?_0x46d2f9[0x1]:parseInt(_0x46d2f9[0x1],0xa);}break;}else{}_0x456833['set'][_0x5c66b8('0x1810')]&&_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x1810')][_0x5c66b8('0x1e68')]()===_0x5c66b8('0xb33')&&_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0x9d7')][_0x5c66b8('0x1e68')]()===_0x5c66b8('0x1edc')&&(_0x456833['set']['prefix']=_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0xa04')]?_0x456833['set'][_0x5c66b8('0xa04')][_0x5c66b8('0x43a')]('$')[0x0]:undefined,_0x456833['set'][_0x5c66b8('0x1961')]=_0x456833[_0x5c66b8('0x256d')][_0x5c66b8('0xe95')]?_0x5c66b8('0x20a8')+_0x456833[_0x5c66b8('0x256d')]['callerID']:undefined);_0x456833['saveInboundRouteApp']=_0x4b0081,_0x456833['closeDialog']=_0x3672e0,_0x30b7a6[_0x5c66b8('0x1b4e')]('admin')?_0x5209ff[_0x5c66b8('0x1b56')]['get']({'fields':'id,name','sort':_0x5c66b8('0x10ad'),'nolimit':_0x5c66b8('0x799')})[_0x5c66b8('0x1964')]['then'](function(_0x21e0b4){const _0x80e7fa=_0x5c66b8;_0x456833[_0x80e7fa('0x2715')]=_0x21e0b4[_0x80e7fa('0x6aa')]||[];})[_0x5c66b8('0x103c')](function(_0x52f873){const _0x34953d=_0x5c66b8;_0x220212['error']({'title':_0x52f873[_0x34953d('0x276f')]?_0x34953d('0x137')+_0x52f873['status']+_0x34953d('0x160c')+_0x52f873[_0x34953d('0x2696')]:_0x34953d('0x1d22'),'msg':_0x52f873[_0x34953d('0x1e07')]?JSON['stringify'](_0x52f873[_0x34953d('0x1e07')]):_0x52f873['toString']()});}):_0x5209ff[_0x5c66b8('0x1b56')][_0x5c66b8('0x1d97')]({'fields':_0x5c66b8('0xd52'),'sort':'name','nolimit':_0x5c66b8('0x799')})[_0x5c66b8('0x1964')]['then'](function(_0x26c4df){const _0x1b9e92=_0x5c66b8;_0x456833[_0x1b9e92('0x2715')]=_0x26c4df[_0x1b9e92('0x6aa')]||[];})[_0x5c66b8('0x173b')](function(){const _0x478276=_0x5c66b8;return _0x5209ff[_0x478276('0x170e')][_0x478276('0x1d97')]({'userProfileId':_0x456833[_0x478276('0x155f')]['userProfileId'],'sectionId':0x3f4})[_0x478276('0x1964')];})['then'](function(_0x400ed7){const _0x3d748c=_0x5c66b8,_0x5ecbcf=_0x400ed7&&_0x400ed7[_0x3d748c('0x6aa')]?_0x400ed7[_0x3d748c('0x6aa')][0x0]:null;if(!_0x5ecbcf){const _0x114cc6=[];let _0x35f76e=null;_0x456833['set']&&(_0x35f76e=_0x3c8d8a()[_0x3d748c('0x18ab')](_0x456833[_0x3d748c('0x2715')],{'name':_0x456833[_0x3d748c('0x256d')][_0x3d748c('0x10ad')]}));for(let _0x19cd3e=0x0;_0x19cd3e<_0x456833[_0x3d748c('0x2715')][_0x3d748c('0x543')];_0x19cd3e++){_0x35f76e&&_0x456833['variables'][_0x19cd3e]['id']===_0x35f76e['id']&&(_0x456833['variables'][_0x19cd3e][_0x3d748c('0x268e')]=![],_0x114cc6['push'](_0x456833[_0x3d748c('0x2715')][_0x19cd3e]));}_0x456833[_0x3d748c('0x2715')]=_0x114cc6;}else{if(!_0x5ecbcf['autoAssociation'])return _0x5209ff[_0x3d748c('0xda9')]['get']({'sectionId':_0x5ecbcf['id']})['$promise'][_0x3d748c('0x173b')](function(_0x3ac2f1){const _0x22da7a=_0x3d748c,_0x51079e=_0x3c8d8a()['map'](_0x3ac2f1[_0x22da7a('0x6aa')],function(_0x3b73a6){const _0x33c225=_0x22da7a;return _0x3c8d8a()[_0x33c225('0x18ab')](_0x456833[_0x33c225('0x2715')],{'id':_0x3b73a6[_0x33c225('0x1ce0')]});});let _0x49754d=null;_0x456833['set']&&(_0x49754d=_0x3c8d8a()['find'](_0x456833[_0x22da7a('0x2715')],{'name':_0x456833[_0x22da7a('0x256d')][_0x22da7a('0x10ad')]}));if(_0x49754d&&!_0x3c8d8a()[_0x22da7a('0x1ec')](_0x51079e,['id',_0x49754d['id']])){const _0x16ff1d=_0x3c8d8a()['find'](_0x456833[_0x22da7a('0x2715')],{'id':_0x49754d['id']});_0x16ff1d[_0x22da7a('0x268e')]=![],_0x51079e[_0x22da7a('0x18bb')](_0x16ff1d);}_0x456833[_0x22da7a('0x2715')]=_0x51079e;});}})[_0x5c66b8('0x103c')](function(_0x5664eb){const _0x35746a=_0x5c66b8;_0x220212[_0x35746a('0x15aa')]({'title':_0x5664eb[_0x35746a('0x276f')]?_0x35746a('0x137')+_0x5664eb['status']+_0x35746a('0x160c')+_0x5664eb[_0x35746a('0x2696')]:_0x35746a('0x27a'),'msg':_0x5664eb[_0x35746a('0x1e07')]?JSON[_0x35746a('0x100b')](_0x5664eb['data']):_0x5664eb['toString']()});});function _0x4b0081(){const _0x4d7aeb=_0x5c66b8;_0x456833[_0x4d7aeb('0x1d4a')]=[];const _0x5b388d=[];_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x1810')]&&_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x1810')][_0x4d7aeb('0x1e68')]()===_0x4d7aeb('0xb33')&&_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x9d7')]===_0x4d7aeb('0x2150')&&(_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0xa04')]=_0x2752f9[_0x4d7aeb('0x1429')]?(_0x456833['set'][_0x4d7aeb('0x23f7')]||'')+_0x4d7aeb('0x1957')+_0x2752f9['cutdigits']+'}':(_0x456833['set'][_0x4d7aeb('0x23f7')]||'')+_0x4d7aeb('0x1dc5'),_0x2752f9[_0x4d7aeb('0x76c')]!==_0x4d7aeb('0x2741')?_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x2010')][_0x4d7aeb('0x2087')](_0x4d7aeb('0x2474'))<0x0&&(_0x456833['set'][_0x4d7aeb('0x2010')]+=_0x4d7aeb('0x2474')):_0x456833[_0x4d7aeb('0x256d')]['options']=_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x2010')][_0x4d7aeb('0x166c')](_0x4d7aeb('0x2474'),''));if(_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x9d7')]&&_0x456833['set'][_0x4d7aeb('0x9d7')]==='custom'){}else switch((_0x456833['set'][_0x4d7aeb('0x17e')]||_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x9d7')])[_0x4d7aeb('0x1e68')]()){case _0x4d7aeb('0x256d'):_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x1c00')]=_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0x10ad')]+'='+_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0xa7b')];break;case _0x4d7aeb('0xbb4'):break;default:_0x5b388d[0x0]=_0x456833['set'][_0x4d7aeb('0x10ad')],_0x5b388d[0x1]=_0x456833[_0x4d7aeb('0x256d')][_0x4d7aeb('0xa7b')],_0x456833['set'][_0x4d7aeb('0x1c00')]=_0x5b388d[_0x4d7aeb('0x2259')]('=');}_0x3672e0(_0x456833[_0x4d7aeb('0x256d')]);}function _0x3672e0(_0x9f391d){const _0x158e4e=_0x5c66b8;_0x136d0e[_0x158e4e('0x1cf4')](_0x9f391d);}}const _0x48e0b=_0xc99dbd;_0x48f2d3[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x1db0'),_0x566993('0xd57'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x48f2d3(_0x2935f0,_0x26b3d5,_0x3f3b87,_0x531b2f,_0x41a46e,_0x5a0ea7,_0x2bed09,_0x29cdd7){const _0x4bc79b=_0x566993,_0x157186=this;_0x157186['currentUser']=_0x2bed09[_0x4bc79b('0x14d4')](),_0x157186['errors']=[],_0x157186[_0x4bc79b('0x20d6')]='VOICE.EDIT_'+(_0x531b2f[_0x4bc79b('0x9d7')]||_0x531b2f[_0x4bc79b('0x17e')])[_0x4bc79b('0x1164')](),_0x157186[_0x4bc79b('0x2710')]=angular[_0x4bc79b('0x2e3')](_0x531b2f),_0x157186['crudPermissions']=_0x29cdd7,_0x157186[_0x4bc79b('0xb0')]={};if(_0x157186['voicemail'][_0x4bc79b('0x1c00')])switch(_0x157186[_0x4bc79b('0x2710')]['appType']?_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x9d7')][_0x4bc79b('0x1e68')]():_0x157186[_0x4bc79b('0x2710')]['app'][_0x4bc79b('0x1e68')]()){case _0x4bc79b('0xbb4'):break;case _0x4bc79b('0x1601'):{const _0x1ca88c=_0x157186[_0x4bc79b('0x2710')]['appdata'][_0x4bc79b('0x43a')](',');_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x237a')]=_0x1ca88c[0x0],_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x604')]=_0x1ca88c[0x1],_0x157186['voicemail'][_0x4bc79b('0x1a7')]=_0x1ca88c['slice'](0x2,_0x1ca88c[_0x4bc79b('0x543')])[_0x4bc79b('0x2259')](',');}break;case _0x4bc79b('0x1680'):{const _0x158905=_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x1c00')][_0x4bc79b('0x43a')](',');_0x157186[_0x4bc79b('0x2710')]['accesskeyid']=_0x158905[0x0],_0x157186[_0x4bc79b('0x2710')]['secretaccesskey']=_0x158905[0x1],_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x10fc')]=_0x158905[0x2],_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x53')]=_0x158905[0x3],_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x1a7')]=_0x158905[_0x4bc79b('0x2456')](0x4,_0x158905[_0x4bc79b('0x543')])[_0x4bc79b('0x2259')](',');}break;case _0x4bc79b('0x23fe'):{const _0xcb8025=_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x1c00')][_0x4bc79b('0x43a')](',');_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x611')]=isNaN(_0xcb8025[0x0])?_0xcb8025[0x0]:parseInt(_0xcb8025[0x0],0xa),_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x86e')]=_0xcb8025[_0x4bc79b('0x2456')](0x1,_0xcb8025[_0x4bc79b('0x543')])[_0x4bc79b('0x2259')](',');}break;case _0x4bc79b('0x67f'):_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x86e')]=_0x157186['voicemail'][_0x4bc79b('0x1c00')];break;case _0x4bc79b('0x256d'):_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x10ad')]=_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x1c00')][_0x4bc79b('0x43a')]('=')[0x0],_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0xa7b')]=_0x157186['voicemail'][_0x4bc79b('0x1c00')][_0x4bc79b('0x43a')]('=')[0x1];break;case _0x4bc79b('0x2426'):_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x220b')]=_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x1c00')];break;default:{const _0x123074=_0x157186['voicemail'][_0x4bc79b('0x1c00')][_0x4bc79b('0x43a')](',');_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x579')]=_0x3c8d8a()[_0x4bc79b('0x1a56')](_0x123074[0x0])?_0x123074[0x0]:isNaN(_0x123074[0x0])?_0x123074[0x0]:parseInt(_0x123074[0x0],0xa),_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0x2010')]=_0x3c8d8a()[_0x4bc79b('0x1a56')](_0x123074[0x1])?_0x123074[0x1]:isNaN(_0x123074[0x1])?_0x123074[0x1]:parseInt(_0x123074[0x1],0xa);}break;}else{}_0x157186['voicemail'][_0x4bc79b('0x1810')]&&_0x157186['voicemail'][_0x4bc79b('0x1810')]['toLowerCase']()===_0x4bc79b('0xb33')&&_0x157186['voicemail'][_0x4bc79b('0x9d7')][_0x4bc79b('0x1e68')]()===_0x4bc79b('0x1edc')&&(_0x157186[_0x4bc79b('0x2710')]['prefix']=_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0xa04')]?_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0xa04')]['split']('$')[0x0]:undefined,_0x157186[_0x4bc79b('0x2710')]['callerId']=_0x157186[_0x4bc79b('0x2710')][_0x4bc79b('0xe95')]?_0x4bc79b('0x20a8')+_0x157186['voicemail'][_0x4bc79b('0xe95')]:undefined);_0x157186[_0x4bc79b('0x820')]=_0x4b24c6,_0x157186[_0x4bc79b('0x18e2')]=_0x54b287,_0x2bed09['hasRole'](_0x4bc79b('0x79b'))?_0x5a0ea7[_0x4bc79b('0x579')][_0x4bc79b('0x1d97')]({'fields':_0x4bc79b('0x354'),'sort':_0x4bc79b('0x14d3'),'nolimit':_0x4bc79b('0x799')})[_0x4bc79b('0x1964')]['then'](function(_0x961da1){const _0x2747ec=_0x4bc79b;_0x157186[_0x2747ec('0x2698')]=_0x961da1[_0x2747ec('0x6aa')]||[];})[_0x4bc79b('0x103c')](function(_0x14f95d){const _0x4fdf24=_0x4bc79b;_0x3f3b87[_0x4fdf24('0x15aa')]({'title':_0x14f95d[_0x4fdf24('0x276f')]?_0x4fdf24('0x137')+_0x14f95d[_0x4fdf24('0x276f')]+_0x4fdf24('0x160c')+_0x14f95d[_0x4fdf24('0x2696')]:_0x4fdf24('0x1333'),'msg':_0x14f95d[_0x4fdf24('0x1e07')]?JSON['stringify'](_0x14f95d[_0x4fdf24('0x1e07')]):_0x14f95d['toString']()});}):_0x5a0ea7[_0x4bc79b('0x579')][_0x4bc79b('0x1d97')]({'fields':_0x4bc79b('0x354'),'sort':'mailbox','nolimit':_0x4bc79b('0x799')})[_0x4bc79b('0x1964')]['then'](function(_0x162682){_0x157186['voiceMails']=_0x162682['rows']||[];})[_0x4bc79b('0x173b')](function(){const _0x304c10=_0x4bc79b;return _0x5a0ea7[_0x304c10('0x170e')][_0x304c10('0x1d97')]({'userProfileId':_0x157186[_0x304c10('0x155f')][_0x304c10('0x1946')],'sectionId':0x196})[_0x304c10('0x1964')];})[_0x4bc79b('0x173b')](function(_0x1407ec){const _0x191874=_0x4bc79b,_0x4a1475=_0x1407ec&&_0x1407ec[_0x191874('0x6aa')]?_0x1407ec[_0x191874('0x6aa')][0x0]:null;if(!_0x4a1475){const _0x2ef512=[];let _0xb37eff=null;_0x157186['voicemail']&&(_0xb37eff=_0x3c8d8a()['find'](_0x157186[_0x191874('0x2698')],{'mailbox':_0x157186['voicemail'][_0x191874('0x579')]}));for(let _0x450629=0x0;_0x450629<_0x157186[_0x191874('0x2698')][_0x191874('0x543')];_0x450629++){_0xb37eff&&_0x157186[_0x191874('0x2698')][_0x450629]['id']===_0xb37eff['id']&&(_0x157186[_0x191874('0x2698')][_0x450629][_0x191874('0x268e')]=![],_0x2ef512[_0x191874('0x18bb')](_0x157186['voiceMails'][_0x450629]));}_0x157186[_0x191874('0x2698')]=_0x2ef512;}else{if(!_0x4a1475[_0x191874('0x273e')])return _0x5a0ea7[_0x191874('0xda9')]['get']({'sectionId':_0x4a1475['id']})[_0x191874('0x1964')]['then'](function(_0x496ff5){const _0x1f4f65=_0x191874,_0x5449a6=_0x3c8d8a()[_0x1f4f65('0x8a2')](_0x496ff5[_0x1f4f65('0x6aa')],function(_0x1c3423){const _0x3a1124=_0x1f4f65;return _0x3c8d8a()[_0x3a1124('0x18ab')](_0x157186[_0x3a1124('0x2698')],{'id':_0x1c3423[_0x3a1124('0x1ce0')]});});let _0x3cbe37=null;_0x157186[_0x1f4f65('0x2710')]&&(_0x3cbe37=_0x3c8d8a()[_0x1f4f65('0x18ab')](_0x157186[_0x1f4f65('0x2698')],{'mailbox':_0x157186['voicemail'][_0x1f4f65('0x579')]}));if(_0x3cbe37&&!_0x3c8d8a()[_0x1f4f65('0x1ec')](_0x5449a6,['id',_0x3cbe37['id']])){const _0x21eb49=_0x3c8d8a()[_0x1f4f65('0x18ab')](_0x157186[_0x1f4f65('0x2698')],{'id':_0x3cbe37['id']});_0x21eb49[_0x1f4f65('0x268e')]=![],_0x5449a6['push'](_0x21eb49);}_0x157186['voiceMails']=_0x5449a6;});}})[_0x4bc79b('0x103c')](function(_0x114295){const _0x384c0e=_0x4bc79b;_0x3f3b87[_0x384c0e('0x15aa')]({'title':_0x114295[_0x384c0e('0x276f')]?'API:'+_0x114295['status']+_0x384c0e('0x160c')+_0x114295['statusText']:'SYSTEM:GETvoiceMails','msg':_0x114295[_0x384c0e('0x1e07')]?JSON[_0x384c0e('0x100b')](_0x114295[_0x384c0e('0x1e07')]):_0x114295['toString']()});});function _0x4b24c6(){const _0x50a697=_0x4bc79b;_0x157186[_0x50a697('0x1d4a')]=[];const _0x7c3bf=[];_0x157186['voicemail'][_0x50a697('0x1810')]&&_0x157186[_0x50a697('0x2710')]['type']['toLowerCase']()===_0x50a697('0xb33')&&_0x157186[_0x50a697('0x2710')][_0x50a697('0x9d7')]==='outboundDial'&&(_0x157186[_0x50a697('0x2710')][_0x50a697('0xa04')]=_0x41a46e[_0x50a697('0x1429')]?(_0x157186[_0x50a697('0x2710')][_0x50a697('0x23f7')]||'')+_0x50a697('0x1957')+_0x41a46e[_0x50a697('0x1429')]+'}':(_0x157186['voicemail'][_0x50a697('0x23f7')]||'')+_0x50a697('0x1dc5'),_0x41a46e[_0x50a697('0x76c')]!==_0x50a697('0x2741')?_0x157186[_0x50a697('0x2710')][_0x50a697('0x2010')][_0x50a697('0x2087')](_0x50a697('0x2474'))<0x0&&(_0x157186[_0x50a697('0x2710')][_0x50a697('0x2010')]+=_0x50a697('0x2474')):_0x157186['voicemail'][_0x50a697('0x2010')]=_0x157186[_0x50a697('0x2710')][_0x50a697('0x2010')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x157186[_0x50a697('0x2710')][_0x50a697('0x9d7')]&&_0x157186['voicemail'][_0x50a697('0x9d7')]===_0x50a697('0xbb4')){}else switch((_0x157186[_0x50a697('0x2710')]['app']||_0x157186[_0x50a697('0x2710')][_0x50a697('0x9d7')])[_0x50a697('0x1e68')]()){case'set':_0x157186[_0x50a697('0x2710')]['appdata']=_0x157186[_0x50a697('0x2710')][_0x50a697('0x10ad')]+'='+_0x157186['voicemail'][_0x50a697('0xa7b')];break;case _0x50a697('0xbb4'):break;default:_0x7c3bf[0x0]=_0x157186['voicemail'][_0x50a697('0x579')],_0x7c3bf[0x1]=_0x157186[_0x50a697('0x2710')][_0x50a697('0x2010')],_0x157186['voicemail'][_0x50a697('0x1c00')]=_0x7c3bf['join'](',');}_0x54b287(_0x157186[_0x50a697('0x2710')]);}function _0x54b287(_0x4c5a55){const _0x588f37=_0x4bc79b;_0x2935f0[_0x588f37('0x1cf4')](_0x4c5a55);}}const _0x40d5a4=_0x48f2d3;_0x590340[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$translate',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),'toasty','Auth','inboundroute',_0x566993('0x170e')];function _0x590340(_0x48fc8a,_0x55789c,_0x153796,_0x159837,_0x4fdd15,_0x101ed6,_0xcdde24,_0xf4c355,_0x583b91,_0x5a8ef4,_0x9e41c2,_0x37fd87){const _0x524486=_0x566993,_0x591f4a=this;_0x591f4a[_0x524486('0x155f')]=_0x5a8ef4[_0x524486('0x14d4')](),_0x591f4a[_0x524486('0x1a29')]=_0x101ed6,_0x591f4a[_0x524486('0x251')]=_0xcdde24,_0x591f4a['passwordPattern']=_0x591f4a[_0x524486('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x591f4a['location']=_0x55789c[_0x524486('0x375')]()+_0x524486('0x122b')+_0x55789c[_0x524486('0x4d1')](),_0x591f4a['inboundroute']=_0x9e41c2||_0x48fc8a['params'][_0x524486('0xd57')]||{},_0x591f4a['userProfileSection']=_0x37fd87&&_0x37fd87[_0x524486('0x1a2f')]==0x1?_0x37fd87['rows'][0x0]:null,_0x591f4a['crudPermissions']=_0x5a8ef4['parseCrudPermissions'](_0x591f4a[_0x524486('0x170e')]?_0x591f4a['userProfileSection']['crudPermissions']:null),_0x591f4a[_0x524486('0xb0')]={},_0x591f4a[_0x524486('0xd5f')]=_0x48fc8a[_0x524486('0x197a')]['tab']||0x0,_0x591f4a[_0x524486('0x5a4')]=_0x583b91[_0x524486('0x2787')],_0x591f4a[_0x524486('0x1b8f')]=_0x2dc7f1,_0x591f4a[_0x524486('0x747')]=_0x1dedb5,_0x5a8ef4['hasRole'](_0x524486('0x79b'))?_0xf4c355[_0x524486('0xf01')][_0x524486('0x1d97')]({'fields':_0x524486('0xd52'),'sort':'name','nolimit':_0x524486('0x799')})[_0x524486('0x1964')][_0x524486('0x173b')](function(_0x1fba99){const _0x423889=_0x524486;_0x591f4a[_0x423889('0x22a9')]=_0x1fba99['rows']||[];})['catch'](function(_0x12ebc8){const _0x3dbf9f=_0x524486;_0x583b91[_0x3dbf9f('0x15aa')]({'title':_0x12ebc8[_0x3dbf9f('0x276f')]?_0x3dbf9f('0x137')+_0x12ebc8[_0x3dbf9f('0x276f')]+_0x3dbf9f('0x160c')+_0x12ebc8['statusText']:'SYSTEM:GET_CONTEXTS','msg':_0x12ebc8[_0x3dbf9f('0x1e07')]?JSON[_0x3dbf9f('0x100b')](_0x12ebc8[_0x3dbf9f('0x1e07')]):_0x12ebc8[_0x3dbf9f('0x1b75')]()});}):_0xf4c355[_0x524486('0xf01')][_0x524486('0x1d97')]({'fields':_0x524486('0xd52'),'sort':_0x524486('0x10ad'),'nolimit':_0x524486('0x799')})[_0x524486('0x1964')][_0x524486('0x173b')](function(_0x1204a1){const _0x25192e=_0x524486;_0x591f4a[_0x25192e('0x22a9')]=_0x1204a1[_0x25192e('0x6aa')]||[];})['then'](function(){const _0x4a5d57=_0x524486;return _0xf4c355[_0x4a5d57('0x170e')][_0x4a5d57('0x1d97')]({'userProfileId':_0x591f4a['currentUser'][_0x4a5d57('0x1946')],'sectionId':0x195})[_0x4a5d57('0x1964')];})['then'](function(_0x25573c){const _0x500e75=_0x524486,_0x469858=_0x25573c&&_0x25573c['rows']?_0x25573c[_0x500e75('0x6aa')][0x0]:null;if(!_0x469858)return _0xf4c355[_0x500e75('0xf01')]['get']({'fields':_0x500e75('0xd52'),'sort':_0x500e75('0x10ad'),'nolimit':'true','defaultEntry':0x1})['$promise'][_0x500e75('0x173b')](function(_0xfa2361){const _0x82ec48=_0x500e75;_0x591f4a['contexts']=_0xfa2361[_0x82ec48('0x6aa')]||[];});else{if(!_0x469858[_0x500e75('0x273e')])return _0xf4c355['userProfileResource'][_0x500e75('0x1d97')]({'sectionId':_0x469858['id']})[_0x500e75('0x1964')][_0x500e75('0x173b')](function(_0x32a3ee){const _0x41dc07=_0x500e75,_0x579481=_0x3c8d8a()['map'](_0x32a3ee[_0x41dc07('0x6aa')],function(_0x42e71e){const _0x5057c2=_0x41dc07;return _0x3c8d8a()[_0x5057c2('0x18ab')](_0x591f4a[_0x5057c2('0x22a9')],{'id':_0x42e71e[_0x5057c2('0x1ce0')]});});let _0x1fc030=null;_0x591f4a['inboundroute']&&(_0x1fc030=_0x3c8d8a()['find'](_0x591f4a[_0x41dc07('0x22a9')],{'name':_0x591f4a[_0x41dc07('0xd57')][_0x41dc07('0x2b9')]}));if(_0x1fc030&&!_0x3c8d8a()['some'](_0x579481,['id',_0x1fc030['id']])){const _0x3ae61e=_0x3c8d8a()[_0x41dc07('0x18ab')](_0x591f4a[_0x41dc07('0x22a9')],{'id':_0x1fc030['id']});_0x3ae61e[_0x41dc07('0x268e')]=![],_0x579481['push'](_0x3ae61e);}_0x591f4a[_0x41dc07('0x22a9')]=_0x579481;});}})[_0x524486('0x103c')](function(_0x4e9832){const _0x3b9e3a=_0x524486;_0x583b91['error']({'title':_0x4e9832[_0x3b9e3a('0x276f')]?'API:'+_0x4e9832['status']+_0x3b9e3a('0x160c')+_0x4e9832[_0x3b9e3a('0x2696')]:_0x3b9e3a('0x18fd'),'msg':_0x4e9832[_0x3b9e3a('0x1e07')]?JSON[_0x3b9e3a('0x100b')](_0x4e9832[_0x3b9e3a('0x1e07')]):_0x4e9832[_0x3b9e3a('0x1b75')]()});});function _0x2dc7f1(){_0x48fc8a['go']('app.voice.inboundroutes',{},{'reload':'app.voice.inboundroutes'});}function _0x1dedb5(){const _0x12c0fb=_0x524486;_0xf4c355[_0x12c0fb('0x1630')][_0x12c0fb('0x1842')]({'id':_0x591f4a[_0x12c0fb('0xd57')]['id']},_0x591f4a[_0x12c0fb('0xd57')])[_0x12c0fb('0x1964')][_0x12c0fb('0x173b')](function(){const _0x14c314=_0x12c0fb;_0x583b91['success']({'title':_0x14c314('0x44'),'msg':_0x591f4a[_0x14c314('0xd57')][_0x14c314('0x10ad')]?_0x591f4a[_0x14c314('0xd57')]['name']+'\x20has\x20been\x20updated!':''});})[_0x12c0fb('0x103c')](function(_0xdc8429){const _0x450a0d=_0x12c0fb;_0x583b91[_0x450a0d('0x15aa')]({'title':_0xdc8429[_0x450a0d('0x276f')]?_0x450a0d('0x137')+_0xdc8429['status']+'\x20-\x20'+_0xdc8429['statusText']:_0x450a0d('0x1ab5'),'msg':_0xdc8429[_0x450a0d('0x1e07')]?JSON['stringify'](_0xdc8429[_0x450a0d('0x1e07')]):_0xdc8429['toString']()});});}}const _0x4d4317=_0x590340,_0x1f8e54=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog.html';_0x12adf5[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window','$state','$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),'$timeout','$translate','inboundroutes','userProfile',_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),'license','setting'];function _0x12adf5(_0x5e6c41,_0x21829e,_0x31ed85,_0x3a1669,_0x568978,_0x5cbd8b,_0x151208,_0x10640d,_0x3f9de3,_0xfa5312,_0x1ac450,_0x3a3f32,_0x2680a2,_0x388789,_0x2c0b20,_0x1c4dfa,_0x12782c){const _0x3981df=_0x566993,_0x467d3d=this;_0x467d3d[_0x3981df('0x1a29')]=_0x1c4dfa,_0x467d3d[_0x3981df('0x251')]=_0x12782c,_0x467d3d[_0x3981df('0x155f')]=_0x2c0b20['getCurrentUser'](),_0x467d3d[_0x3981df('0x973')]=_0x3f9de3||{'count':0x0,'rows':[]},_0x467d3d[_0x3981df('0x257b')]=_0xfa5312,_0x467d3d[_0x3981df('0x170e')]=_0x1ac450&&_0x1ac450[_0x3981df('0x1a2f')]==0x1?_0x1ac450[_0x3981df('0x6aa')][0x0]:null,_0x467d3d[_0x3981df('0x1dc1')]=_0x2c0b20[_0x3981df('0xde6')](_0x467d3d[_0x3981df('0x170e')]?_0x467d3d[_0x3981df('0x170e')][_0x3981df('0x1dc1')]:null),_0x467d3d[_0x3981df('0xdf9')]=_0x3981df('0x973'),_0x467d3d[_0x3981df('0x14d6')]='',_0x467d3d['listOrderAsc']=null,_0x467d3d[_0x3981df('0x943')]=[],_0x467d3d['query']={'fields':_0x3981df('0xbdc'),'type':_0x3981df('0x1755'),'sort':_0x3981df('0x1769'),'VoiceExtensionId':_0x3981df('0x877'),'limit':0xa,'page':0x1},_0x467d3d['editstate']=_0x13d105,_0x467d3d[_0x3981df('0x1a20')]=_0x226d5f,_0x467d3d['success']=_0x15f2e0,_0x467d3d['getInboundRoutes']=_0x400448,_0x467d3d[_0x3981df('0x788')]=_0x5ba647,_0x467d3d[_0x3981df('0x18e3')]=_0x2fefee,_0x467d3d[_0x3981df('0x15f2')]=_0x48dd97,_0x467d3d[_0x3981df('0x22b2')]=_0x14532e,_0x467d3d[_0x3981df('0x1baf')]=_0x59fc71,_0x467d3d[_0x3981df('0x1859')]=_0x1f4016,_0x2c0b20['hasRole'](_0x3981df('0x79b'))?_0x3a3f32[_0x3981df('0xf01')][_0x3981df('0x1d97')]({'fields':'id,name','sort':_0x3981df('0x10ad'),'nolimit':_0x3981df('0x799')})[_0x3981df('0x1964')][_0x3981df('0x173b')](function(_0x42e378){const _0x1428c2=_0x3981df;_0x467d3d['contexts']=_0x42e378[_0x1428c2('0x6aa')]||[];})['catch'](function(_0x35a2e3){const _0x5a6028=_0x3981df;_0x388789[_0x5a6028('0x15aa')]({'title':_0x35a2e3[_0x5a6028('0x276f')]?'API:'+_0x35a2e3[_0x5a6028('0x276f')]+_0x5a6028('0x160c')+_0x35a2e3[_0x5a6028('0x2696')]:_0x5a6028('0x2064'),'msg':_0x35a2e3[_0x5a6028('0x1e07')]?JSON['stringify'](_0x35a2e3[_0x5a6028('0x1e07')]):_0x35a2e3[_0x5a6028('0x1b75')]()});}):_0x3a3f32['voiceContext'][_0x3981df('0x1d97')]({'fields':_0x3981df('0xd52'),'sort':_0x3981df('0x10ad'),'nolimit':_0x3981df('0x799')})[_0x3981df('0x1964')][_0x3981df('0x173b')](function(_0x3651bf){const _0x1f3394=_0x3981df;_0x467d3d[_0x1f3394('0x22a9')]=_0x3651bf[_0x1f3394('0x6aa')]||[];})['then'](function(){const _0x2b6f8f=_0x3981df;return _0x3a3f32['userProfileSection'][_0x2b6f8f('0x1d97')]({'userProfileId':_0x467d3d[_0x2b6f8f('0x155f')][_0x2b6f8f('0x1946')],'sectionId':0x195})[_0x2b6f8f('0x1964')];})[_0x3981df('0x173b')](function(_0x3fcf34){const _0x399a0a=_0x3981df,_0x52a17b=_0x3fcf34&&_0x3fcf34[_0x399a0a('0x6aa')]?_0x3fcf34[_0x399a0a('0x6aa')][0x0]:null;if(!_0x52a17b)return _0x3a3f32['voiceContext'][_0x399a0a('0x1d97')]({'fields':_0x399a0a('0xd52'),'sort':_0x399a0a('0x10ad'),'nolimit':_0x399a0a('0x799'),'defaultEntry':0x1})['$promise']['then'](function(_0x3fe860){const _0x589b6e=_0x399a0a;_0x467d3d[_0x589b6e('0x22a9')]=_0x3fe860[_0x589b6e('0x6aa')]||[];});else{if(!_0x52a17b[_0x399a0a('0x273e')])return _0x3a3f32[_0x399a0a('0xda9')]['get']({'sectionId':_0x52a17b['id']})[_0x399a0a('0x1964')][_0x399a0a('0x173b')](function(_0x18d52d){const _0x2b53c4=_0x399a0a,_0x3e9214=_0x3c8d8a()[_0x2b53c4('0x8a2')](_0x18d52d[_0x2b53c4('0x6aa')],function(_0x86da1b){const _0x5ee054=_0x2b53c4;return _0x3c8d8a()[_0x5ee054('0x18ab')](_0x467d3d['contexts'],{'id':_0x86da1b[_0x5ee054('0x1ce0')]});});let _0x33ed78=null;_0x467d3d['inboundroute']&&(_0x33ed78=_0x3c8d8a()['find'](_0x467d3d['contexts'],{'name':_0x467d3d[_0x2b53c4('0xd57')][_0x2b53c4('0x2b9')]}));if(_0x33ed78&&!_0x3c8d8a()[_0x2b53c4('0x1ec')](_0x3e9214,['id',_0x33ed78['id']])){const _0x120b80=_0x3c8d8a()[_0x2b53c4('0x18ab')](_0x467d3d[_0x2b53c4('0x22a9')],{'id':_0x33ed78['id']});_0x120b80[_0x2b53c4('0x268e')]=![],_0x3e9214[_0x2b53c4('0x18bb')](_0x120b80);}_0x467d3d['contexts']=_0x3e9214;});}})[_0x3981df('0x103c')](function(_0xf637b4){const _0x14a9c5=_0x3981df;_0x388789[_0x14a9c5('0x15aa')]({'title':_0xf637b4[_0x14a9c5('0x276f')]?_0x14a9c5('0x137')+_0xf637b4['status']+'\x20-\x20'+_0xf637b4['statusText']:'SYSTEM:GETcontexts','msg':_0xf637b4[_0x14a9c5('0x1e07')]?JSON[_0x14a9c5('0x100b')](_0xf637b4[_0x14a9c5('0x1e07')]):_0xf637b4[_0x14a9c5('0x1b75')]()});});function _0x13d105(_0x526e0c){const _0x51e9a8=_0x3981df;_0x31ed85['go'](_0x51e9a8('0x9d1'),{'id':_0x526e0c['id'],'inboundroute':_0x526e0c,'crudPermissions':_0x467d3d[_0x51e9a8('0x1dc1')]});}function _0x226d5f(_0x403c7c,_0x38a6e0){const _0x22bffd=_0x3981df,_0x2241d2=_0x568978[_0x22bffd('0x1d02')]()['title'](_0x22bffd('0x5bb')+_0x3c8d8a()[_0x22bffd('0x10e')](_0x22bffd('0xd57'))+'?')[_0x22bffd('0xf8b')](_0x22bffd('0x15b9')+(_0x403c7c[_0x22bffd('0x10ad')]||_0x22bffd('0xd57'))+_0x22bffd('0x24be')+'\x20will\x20be\x20deleted.')[_0x22bffd('0x217')](_0x22bffd('0x710'))[_0x22bffd('0x21de')](_0x38a6e0)['ok']('OK')['cancel'](_0x22bffd('0x468'));_0x568978[_0x22bffd('0x1cb7')](_0x2241d2)[_0x22bffd('0x173b')](function(){_0x2fefee(_0x403c7c);},function(){const _0x5ca933=_0x22bffd;console[_0x5ca933('0xe37')](_0x5ca933('0x468'));});}let _0xa74fb0=!![],_0x588fcd=0x1;_0x5e6c41[_0x3981df('0x1bdb')](_0x3981df('0x157b'),function(_0x503c58,_0x52e367){const _0x1e6a65=_0x3981df;_0xa74fb0?_0x151208(function(){_0xa74fb0=![];}):(!_0x52e367&&(_0x588fcd=_0x467d3d[_0x1e6a65('0xc49')][_0x1e6a65('0x182e')]),_0x503c58!==_0x52e367&&(_0x467d3d[_0x1e6a65('0xc49')][_0x1e6a65('0x182e')]=0x1),!_0x503c58&&(_0x467d3d[_0x1e6a65('0xc49')]['page']=_0x588fcd),_0x467d3d[_0x1e6a65('0x1f6d')]());});function _0x15f2e0(_0x2084a4){const _0x12147a=_0x3981df;_0x467d3d[_0x12147a('0x973')]=_0x2084a4||{'count':0x0,'rows':[]};}function _0x400448(){const _0x4df87b=_0x3981df;_0x467d3d[_0x4df87b('0xc49')]['offset']=(_0x467d3d[_0x4df87b('0xc49')][_0x4df87b('0x182e')]-0x1)*_0x467d3d[_0x4df87b('0xc49')][_0x4df87b('0x3e')],_0x2c0b20[_0x4df87b('0x1b4e')](_0x4df87b('0x79b'))?_0x467d3d[_0x4df87b('0x2219')]=_0x3a3f32[_0x4df87b('0x1630')][_0x4df87b('0x1d97')](_0x467d3d[_0x4df87b('0xc49')],_0x15f2e0)['$promise']:(_0x467d3d['query']['id']=_0x467d3d[_0x4df87b('0x257b')]['id'],_0x467d3d['query'][_0x4df87b('0x17c9')]=_0x4df87b('0x2286'),_0x467d3d[_0x4df87b('0x2219')]=_0x3a3f32[_0x4df87b('0x257b')][_0x4df87b('0x135b')](_0x467d3d['query'],_0x15f2e0)[_0x4df87b('0x1964')]);}function _0x5ba647(_0x513eb4,_0x4c173b){const _0x95ddb3=_0x3981df;_0x568978[_0x95ddb3('0x1cb7')]({'controller':_0x95ddb3('0x13c9'),'controllerAs':'vm','templateUrl':_0x1f8e54,'parent':angular[_0x95ddb3('0xb6d')](_0x5cbd8b['body']),'targetEvent':_0x513eb4,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x4c173b,'inboundroutes':_0x467d3d[_0x95ddb3('0x973')][_0x95ddb3('0x6aa')],'license':_0x467d3d[_0x95ddb3('0x1a29')],'setting':_0x467d3d[_0x95ddb3('0x251')],'crudPermissions':_0x467d3d[_0x95ddb3('0x1dc1')]}});}function _0x2fefee(_0x20cc9c){const _0x3e94f0=_0x3981df;_0x3a3f32[_0x3e94f0('0x1630')][_0x3e94f0('0x15e8')]({'id':_0x20cc9c['id']})['$promise']['then'](function(){const _0x5e5089=_0x3e94f0;_0x3c8d8a()[_0x5e5089('0x1a8b')](_0x467d3d[_0x5e5089('0x973')][_0x5e5089('0x6aa')],{'id':_0x20cc9c['id']}),_0x467d3d[_0x5e5089('0x973')][_0x5e5089('0x1a2f')]-=0x1,!_0x467d3d[_0x5e5089('0x973')][_0x5e5089('0x6aa')][_0x5e5089('0x543')]&&_0x467d3d[_0x5e5089('0x1f6d')](),_0x388789['success']({'title':_0x3c8d8a()[_0x5e5089('0x10e')](_0x5e5089('0x129c'))+_0x5e5089('0x1c5e'),'msg':_0x20cc9c[_0x5e5089('0x10ad')]?_0x20cc9c[_0x5e5089('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x3e94f0('0x103c')](function(_0x2dfe1d){const _0x37bd73=_0x3e94f0;if(_0x2dfe1d['data']&&_0x2dfe1d[_0x37bd73('0x1e07')][_0x37bd73('0x1d4a')]&&_0x2dfe1d['data'][_0x37bd73('0x1d4a')][_0x37bd73('0x543')]){_0x467d3d['errors']=_0x2dfe1d[_0x37bd73('0x1e07')]['errors']||[{'message':_0x2dfe1d[_0x37bd73('0x1b75')](),'type':_0x37bd73('0x2093')}];for(let _0x55ee03=0x0;_0x55ee03<_0x2dfe1d[_0x37bd73('0x1e07')][_0x37bd73('0x1d4a')][_0x37bd73('0x543')];_0x55ee03++){_0x388789[_0x37bd73('0x15aa')]({'title':_0x2dfe1d[_0x37bd73('0x1e07')][_0x37bd73('0x1d4a')][_0x55ee03][_0x37bd73('0x1810')],'msg':_0x2dfe1d[_0x37bd73('0x1e07')][_0x37bd73('0x1d4a')][_0x55ee03]['message']});}}else _0x388789[_0x37bd73('0x15aa')]({'title':_0x2dfe1d[_0x37bd73('0x276f')]?'API:'+_0x2dfe1d[_0x37bd73('0x276f')]+_0x37bd73('0x160c')+_0x2dfe1d[_0x37bd73('0x2696')]:'SYSTEM:DELETEvoiceExtension','msg':_0x2dfe1d[_0x37bd73('0x1e07')]?JSON[_0x37bd73('0x100b')](_0x2dfe1d['data']['message']):_0x2dfe1d['message']||_0x2dfe1d[_0x37bd73('0x1b75')]()});});}function _0x48dd97(){const _0x2dcb92=_0x3981df,_0x305e53=angular[_0x2dcb92('0x2e3')](_0x467d3d[_0x2dcb92('0x943')]);return _0x467d3d[_0x2dcb92('0x943')]=[],_0x305e53;}function _0x14532e(_0x397818){const _0x5ee26d=_0x3981df,_0x49a9bd=_0x568978[_0x5ee26d('0x1d02')]()[_0x5ee26d('0x20d6')](_0x5ee26d('0x208b'))[_0x5ee26d('0xf8b')](''+_0x467d3d[_0x5ee26d('0x943')][_0x5ee26d('0x543')]+'\x20selected'+_0x5ee26d('0xd23'))['ariaLabel'](_0x5ee26d('0xd5e'))[_0x5ee26d('0x21de')](_0x397818)['ok']('OK')[_0x5ee26d('0x1e1f')]('CANCEL');_0x568978[_0x5ee26d('0x1cb7')](_0x49a9bd)[_0x5ee26d('0x173b')](function(){const _0x1660a5=_0x5ee26d;_0x467d3d['selectedInboundRoutes'][_0x1660a5('0xa6a')](function(_0x3f34c8){_0x2fefee(_0x3f34c8);}),_0x467d3d[_0x1660a5('0x943')]=[];});}function _0x59fc71(){const _0x553b6f=_0x3981df;_0x467d3d[_0x553b6f('0x943')]=[];}function _0x1f4016(){const _0x337986=_0x3981df;_0x467d3d[_0x337986('0x943')]=_0x467d3d[_0x337986('0x973')]['rows'];}}const _0x36df81=_0x12adf5;_0x4f5cf1[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),'$location','$mdDialog','$q',_0x566993('0x638'),'toasty',_0x566993('0x9cd'),_0x566993('0x1afe'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x4f5cf1(_0x1b0c97,_0x224677,_0x49dea6,_0x114d74,_0x13dc33,_0x2edaf5,_0x1fe790,_0x56f003,_0x43725d,_0x2bc671,_0x124491,_0x4ea1d8,_0x44ecab,_0x49b299){const _0x3ad41f=_0x566993,_0x11582d=this;_0x11582d[_0x3ad41f('0x155f')]=_0x124491['getCurrentUser'](),_0x11582d[_0x3ad41f('0x1d4a')]=[],_0x11582d['setting']=_0x44ecab,_0x11582d[_0x3ad41f('0x1a29')]=_0x4ea1d8,_0x11582d[_0x3ad41f('0x1dc1')]=_0x49b299,_0x11582d['hasModulePermissions']={},_0x11582d[_0x3ad41f('0x644')]=_0x11582d[_0x3ad41f('0x251')]&&_0x11582d['setting'][_0x3ad41f('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x11582d[_0x3ad41f('0x20d6')]='VOICE.EDIT_INTERNALROUTE',_0x11582d[_0x3ad41f('0x1afe')]=angular[_0x3ad41f('0x2e3')](_0x43725d),_0x11582d[_0x3ad41f('0x9cd')]=_0x56f003,_0x11582d[_0x3ad41f('0x1711')]=![];!_0x11582d[_0x3ad41f('0x1afe')]&&(_0x11582d[_0x3ad41f('0x1afe')]={'appdata':'Internal\x20Call','type':'internal','context':_0x3ad41f('0x13d6')},_0x11582d[_0x3ad41f('0x20d6')]=_0x3ad41f('0x26a6'),_0x11582d[_0x3ad41f('0x1711')]=!![]);_0x11582d[_0x3ad41f('0x1545')]=_0x2cac46,_0x11582d[_0x3ad41f('0xba8')]=_0x28c148,_0x11582d[_0x3ad41f('0x2495')]=_0x246797,_0x11582d[_0x3ad41f('0x11ae')]=_0x3c3ed7,_0x11582d['closeDialog']=_0x1c3db3,_0x124491['hasRole'](_0x3ad41f('0x79b'))?_0x2bc671[_0x3ad41f('0xf01')][_0x3ad41f('0x1d97')]({'fields':_0x3ad41f('0xd52'),'sort':_0x3ad41f('0x10ad'),'nolimit':'true'})[_0x3ad41f('0x1964')]['then'](function(_0x583ae6){const _0x15cbe7=_0x3ad41f;_0x11582d[_0x15cbe7('0x22a9')]=_0x583ae6[_0x15cbe7('0x6aa')]||[];})[_0x3ad41f('0x103c')](function(_0x100640){const _0x510621=_0x3ad41f;_0x1fe790[_0x510621('0x15aa')]({'title':_0x100640[_0x510621('0x276f')]?'API:'+_0x100640[_0x510621('0x276f')]+_0x510621('0x160c')+_0x100640[_0x510621('0x2696')]:_0x510621('0x2064'),'msg':_0x100640[_0x510621('0x1e07')]?JSON[_0x510621('0x100b')](_0x100640[_0x510621('0x1e07')]):_0x100640[_0x510621('0x1b75')]()});}):_0x2bc671[_0x3ad41f('0xf01')][_0x3ad41f('0x1d97')]({'fields':_0x3ad41f('0xd52'),'sort':_0x3ad41f('0x10ad'),'nolimit':_0x3ad41f('0x799')})[_0x3ad41f('0x1964')]['then'](function(_0xf1a1b1){const _0x3f3e0c=_0x3ad41f;_0x11582d['contexts']=_0xf1a1b1[_0x3f3e0c('0x6aa')]||[];})[_0x3ad41f('0x173b')](function(){const _0x336d37=_0x3ad41f;return _0x2bc671[_0x336d37('0x170e')][_0x336d37('0x1d97')]({'userProfileId':_0x11582d[_0x336d37('0x155f')]['userProfileId'],'sectionId':0x195})[_0x336d37('0x1964')];})[_0x3ad41f('0x173b')](function(_0x5eed8a){const _0x3d3682=_0x3ad41f,_0x2263d1=_0x5eed8a&&_0x5eed8a[_0x3d3682('0x6aa')]?_0x5eed8a[_0x3d3682('0x6aa')][0x0]:null;if(!_0x2263d1)return _0x2bc671[_0x3d3682('0xf01')][_0x3d3682('0x1d97')]({'fields':_0x3d3682('0xd52'),'sort':'name','nolimit':'true','defaultEntry':0x1})[_0x3d3682('0x1964')][_0x3d3682('0x173b')](function(_0xd3a08a){const _0x41e4ee=_0x3d3682;_0x11582d[_0x41e4ee('0x22a9')]=_0xd3a08a[_0x41e4ee('0x6aa')]||[];});else{if(!_0x2263d1[_0x3d3682('0x273e')])return _0x2bc671[_0x3d3682('0xda9')][_0x3d3682('0x1d97')]({'sectionId':_0x2263d1['id']})[_0x3d3682('0x1964')][_0x3d3682('0x173b')](function(_0x5e5b43){const _0x4b8f93=_0x3d3682,_0x535de2=_0x3c8d8a()['map'](_0x5e5b43['rows'],function(_0x4a0f50){const _0x4d8b8d=a0_0xde5e;return _0x3c8d8a()[_0x4d8b8d('0x18ab')](_0x11582d[_0x4d8b8d('0x22a9')],{'id':_0x4a0f50[_0x4d8b8d('0x1ce0')]});});let _0x1aa9ab=null;_0x11582d[_0x4b8f93('0x1afe')]&&(_0x1aa9ab=_0x3c8d8a()[_0x4b8f93('0x18ab')](_0x11582d[_0x4b8f93('0x22a9')],{'name':_0x11582d['internalroute'][_0x4b8f93('0x2b9')]}));if(_0x1aa9ab&&!_0x3c8d8a()[_0x4b8f93('0x1ec')](_0x535de2,['id',_0x1aa9ab['id']])){const _0x389763=_0x3c8d8a()[_0x4b8f93('0x18ab')](_0x11582d[_0x4b8f93('0x22a9')],{'id':_0x1aa9ab['id']});_0x389763[_0x4b8f93('0x268e')]=![],_0x535de2[_0x4b8f93('0x18bb')](_0x389763);}_0x11582d['contexts']=_0x535de2;});}})[_0x3ad41f('0x103c')](function(_0x5691bd){const _0x1f9c62=_0x3ad41f;_0x1fe790[_0x1f9c62('0x15aa')]({'title':_0x5691bd[_0x1f9c62('0x276f')]?_0x1f9c62('0x137')+_0x5691bd[_0x1f9c62('0x276f')]+_0x1f9c62('0x160c')+_0x5691bd[_0x1f9c62('0x2696')]:_0x1f9c62('0x18fd'),'msg':_0x5691bd[_0x1f9c62('0x1e07')]?JSON[_0x1f9c62('0x100b')](_0x5691bd[_0x1f9c62('0x1e07')]):_0x5691bd[_0x1f9c62('0x1b75')]()});});function _0x2cac46(){const _0x5e06bc=_0x3ad41f;_0x11582d['errors']=[],_0x2bc671['voiceExtension'][_0x5e06bc('0x1195')](_0x11582d[_0x5e06bc('0x1afe')])[_0x5e06bc('0x1964')][_0x5e06bc('0x173b')](function(_0x5bcdc0){const _0x3ac4c4=_0x5e06bc;_0x11582d[_0x3ac4c4('0x9cd')][_0x3ac4c4('0x1377')](_0x5bcdc0['toJSON']()),_0x1fe790[_0x3ac4c4('0xdfe')]({'title':'InternalRoute\x20properly\x20created','msg':_0x11582d['internalroute'][_0x3ac4c4('0x10ad')]?_0x11582d['internalroute'][_0x3ac4c4('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x1c3db3(_0x5bcdc0);})[_0x5e06bc('0x103c')](function(_0xdbca0d){const _0x7a8715=_0x5e06bc;if(_0xdbca0d[_0x7a8715('0x1e07')]&&_0xdbca0d['data'][_0x7a8715('0x1d4a')]&&_0xdbca0d[_0x7a8715('0x1e07')]['errors']['length']){_0x11582d[_0x7a8715('0x1d4a')]=_0xdbca0d[_0x7a8715('0x1e07')]['errors']||[{'message':_0xdbca0d[_0x7a8715('0x1b75')](),'type':'api.voiceExtension.save'}];for(let _0x484312=0x0;_0x484312<_0xdbca0d[_0x7a8715('0x1e07')][_0x7a8715('0x1d4a')][_0x7a8715('0x543')];_0x484312+=0x1){_0x1fe790['error']({'title':_0xdbca0d[_0x7a8715('0x1e07')][_0x7a8715('0x1d4a')][_0x484312][_0x7a8715('0x1810')],'msg':_0xdbca0d[_0x7a8715('0x1e07')][_0x7a8715('0x1d4a')][_0x484312][_0x7a8715('0x67f')]});}}else _0x1fe790[_0x7a8715('0x15aa')]({'title':_0xdbca0d[_0x7a8715('0x276f')]?_0x7a8715('0x137')+_0xdbca0d[_0x7a8715('0x276f')]+_0x7a8715('0x160c')+_0xdbca0d[_0x7a8715('0x2696')]:_0x7a8715('0x1870'),'msg':_0xdbca0d[_0x7a8715('0x1e07')]?JSON[_0x7a8715('0x100b')](_0xdbca0d[_0x7a8715('0x1e07')][_0x7a8715('0x67f')]):_0xdbca0d[_0x7a8715('0x1b75')]()});});}function _0x28c148(){const _0x5cf3cf=_0x3ad41f;_0x11582d[_0x5cf3cf('0x1d4a')]=[],_0x2bc671[_0x5cf3cf('0x1630')][_0x5cf3cf('0x1842')]({'id':_0x11582d[_0x5cf3cf('0x1afe')]['id']},_0x11582d[_0x5cf3cf('0x1afe')])[_0x5cf3cf('0x1964')][_0x5cf3cf('0x173b')](function(_0x2c2acb){const _0x57979a=_0x5cf3cf,_0x2fc51b=_0x3c8d8a()[_0x57979a('0x18ab')](_0x11582d[_0x57979a('0x9cd')],{'id':_0x2c2acb['id']});_0x2fc51b&&_0x3c8d8a()[_0x57979a('0x9ef')](_0x2fc51b,_0x3c8d8a()[_0x57979a('0x2114')](_0x2c2acb[_0x57979a('0xf1f')](),_0x3c8d8a()[_0x57979a('0x1d3e')](_0x2fc51b))),_0x1fe790['success']({'title':_0x57979a('0x91f'),'msg':_0x11582d[_0x57979a('0x1afe')][_0x57979a('0x10ad')]?_0x11582d['internalroute'][_0x57979a('0x10ad')]+_0x57979a('0x2788'):''}),_0x1c3db3(_0x2c2acb);})[_0x5cf3cf('0x103c')](function(_0x40477a){const _0x19190b=_0x5cf3cf;if(_0x40477a[_0x19190b('0x1e07')]&&_0x40477a[_0x19190b('0x1e07')][_0x19190b('0x1d4a')]&&_0x40477a['data'][_0x19190b('0x1d4a')][_0x19190b('0x543')]){_0x11582d['errors']=_0x40477a[_0x19190b('0x1e07')]['errors']||[{'message':_0x40477a[_0x19190b('0x1b75')](),'type':_0x19190b('0x1fe2')}];for(let _0x22ee96=0x0;_0x22ee96<_0x40477a[_0x19190b('0x1e07')]['errors'][_0x19190b('0x543')];_0x22ee96++){_0x1fe790[_0x19190b('0x15aa')]({'title':_0x40477a[_0x19190b('0x1e07')][_0x19190b('0x1d4a')][_0x22ee96]['type'],'msg':_0x40477a[_0x19190b('0x1e07')][_0x19190b('0x1d4a')][_0x22ee96][_0x19190b('0x67f')]});}}else _0x1fe790[_0x19190b('0x15aa')]({'title':_0x40477a[_0x19190b('0x276f')]?_0x19190b('0x137')+_0x40477a[_0x19190b('0x276f')]+'\x20-\x20'+_0x40477a[_0x19190b('0x2696')]:_0x19190b('0x1fe2'),'msg':_0x40477a['data']?JSON[_0x19190b('0x100b')](_0x40477a[_0x19190b('0x1e07')][_0x19190b('0x67f')]):_0x40477a['toString']()});});}function _0x246797(_0x47bd8c){const _0x1f23c6=_0x3ad41f;_0x11582d[_0x1f23c6('0x1d4a')]=[];const _0x2ee459=_0x114d74['confirm']()[_0x1f23c6('0x20d6')](_0x1f23c6('0x8ef'))['content'](_0x1f23c6('0x1986'))[_0x1f23c6('0x217')](_0x1f23c6('0x136b'))['ok'](_0x1f23c6('0x2373'))[_0x1f23c6('0x1e1f')]('Cancel')[_0x1f23c6('0x21de')](_0x47bd8c);_0x114d74[_0x1f23c6('0x1cb7')](_0x2ee459)[_0x1f23c6('0x173b')](function(){const _0x43dc39=_0x1f23c6;_0x2bc671[_0x43dc39('0x1630')][_0x43dc39('0x15e8')]({'id':_0x11582d[_0x43dc39('0x1afe')]['id']})[_0x43dc39('0x1964')][_0x43dc39('0x173b')](function(){const _0x3e1c57=_0x43dc39;_0x3c8d8a()[_0x3e1c57('0x1a8b')](_0x11582d[_0x3e1c57('0x9cd')],{'id':_0x11582d[_0x3e1c57('0x1afe')]['id']}),_0x1fe790[_0x3e1c57('0xdfe')]({'title':_0x3e1c57('0x11ab'),'msg':(_0x11582d[_0x3e1c57('0x1afe')][_0x3e1c57('0x10ad')]||_0x3e1c57('0x1afe'))+_0x3e1c57('0x25d2')}),_0x1c3db3(_0x11582d['internalroute']);})[_0x43dc39('0x103c')](function(_0x23158e){const _0x15b733=_0x43dc39;if(_0x23158e[_0x15b733('0x1e07')]&&_0x23158e[_0x15b733('0x1e07')][_0x15b733('0x1d4a')]&&_0x23158e[_0x15b733('0x1e07')]['errors'][_0x15b733('0x543')]){_0x11582d['errors']=_0x23158e[_0x15b733('0x1e07')]['errors']||[{'message':_0x23158e['toString'](),'type':'api.voiceExtension.delete'}];for(let _0x23cb33=0x0;_0x23cb33<_0x23158e['data'][_0x15b733('0x1d4a')][_0x15b733('0x543')];_0x23cb33++){_0x1fe790['error']({'title':_0x23158e['data'][_0x15b733('0x1d4a')][_0x23cb33][_0x15b733('0x1810')],'msg':_0x23158e[_0x15b733('0x1e07')][_0x15b733('0x1d4a')][_0x23cb33][_0x15b733('0x67f')]});}}else _0x1fe790['error']({'title':_0x23158e[_0x15b733('0x276f')]?_0x15b733('0x137')+_0x23158e[_0x15b733('0x276f')]+_0x15b733('0x160c')+_0x23158e[_0x15b733('0x2696')]:_0x15b733('0x917'),'msg':_0x23158e[_0x15b733('0x1e07')]?JSON[_0x15b733('0x100b')](_0x23158e[_0x15b733('0x1e07')][_0x15b733('0x67f')]):_0x23158e[_0x15b733('0x67f')]||_0x23158e[_0x15b733('0x1b75')]()});});},function(){});}function _0x3c3ed7(_0x5e8c9a){return _0x5e8c9a===null?undefined:new Date(_0x5e8c9a);}function _0x1c3db3(_0x26431f){const _0xa87e39=_0x3ad41f;_0x114d74[_0xa87e39('0x1cf4')](_0x26431f);}}const _0x1f407b=_0x4f5cf1,_0x470166=_0x21a6a1['p']+_0x566993('0x197d'),_0x5e1931=_0x21a6a1['p']+_0x566993('0x1311'),_0x6bfffb=_0x21a6a1['p']+_0x566993('0x237e'),_0x24cda8=_0x21a6a1['p']+_0x566993('0x25cf'),_0xac169a=_0x21a6a1['p']+_0x566993('0xc87'),_0x54b6f4=_0x21a6a1['p']+_0x566993('0x2248'),_0x33a132=_0x21a6a1['p']+_0x566993('0xc59'),_0x4e4c69=_0x21a6a1['p']+_0x566993('0x1d4b'),_0x4f1f9f=_0x21a6a1['p']+_0x566993('0x4'),_0x219d53=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog.html',_0x3cf431=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html/dialog.html',_0x3da0bc=_0x21a6a1['p']+_0x566993('0x2d0'),_0x540e4c=_0x21a6a1['p']+_0x566993('0x12e4');_0x4e287a[_0x566993('0x17bb')]=['api',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),'Auth'];const _0x18ba68={'agi':_0x470166,'custom':_0x5e1931,'dial':_0x6bfffb,'externaldial':_0x24cda8,'goto':_0xac169a,'hangup':_0x54b6f4,'internaldial':_0x33a132,'interval':_0x4e4c69,'playback':_0x4f1f9f,'queue':_0x219d53,'ringgroup':_0x3cf431,'set':_0x3da0bc,'voicemail':_0x540e4c};function _0x4e287a(_0x31e081,_0xd6fbe1,_0x20e85b,_0x48feb1,_0x5331ea){const _0x4ea310=_0x566993,_0xa919c=this;_0xa919c['currentUser']=_0x5331ea['getCurrentUser'](),_0xa919c['internalroute']={},_0xa919c[_0x4ea310('0x1d54')]={'count':0x0,'rows':[]},_0xa919c['selectedInternalRouteApps']=[],_0xa919c[_0x4ea310('0x1dc1')],_0xa919c['query']={'sort':'priority'},_0xa919c[_0x4ea310('0x5cb')]=_0x3c8d8a()[_0x4ea310('0x12a4')](_0x3c8d8a()[_0x4ea310('0x1b45')]([{'app':_0x4ea310('0x1d55'),'appType':_0x4ea310('0x55a'),'type':'Internal','types':[_0x4ea310('0x17b3'),_0x4ea310('0xbb4'),_0x4ea310('0x3e3')],'fields':[],'isApp':![]},{'app':_0x4ea310('0x1436'),'appType':_0x4ea310('0x172'),'context':_0x4ea310('0x13d6'),'type':'Internal','options':'xX','appdata':_0x4ea310('0x24c3'),'icon':'icon-apps','interval':_0x4ea310('0x17c5'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x4ea310('0x1230'),'field':{'name':_0x4ea310('0x156f'),'key':_0x4ea310('0x14c8'),'prefix':_0x4ea310('0x1afc')},'route':_0x4ea310('0x156f'),'filters':{'fields':'id,name,save_name','sort':_0x4ea310('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x4ea310('0xeae'),'field':{'name':_0x4ea310('0x172'),'key':_0x4ea310('0x10ad')},'route':_0x4ea310('0x1282'),'filters':{'type':_0x4ea310('0x1755'),'fields':_0x4ea310('0x1c66'),'sort':_0x4ea310('0x10ad'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x4ea310('0x1436'),'name':_0x4ea310('0x172'),'type':'apiselect','values':_0x4ea310('0xeae'),'value':'queue.name','option':_0x4ea310('0x26db'),'required':!![],'param':0x0},{'title':'Options','name':_0x4ea310('0x2010'),'type':_0x4ea310('0x86e'),'param':0x1},{'title':_0x4ea310('0x1e59'),'name':_0x4ea310('0x135a'),'type':_0x4ea310('0x86e'),'param':0x2},{'title':_0x4ea310('0xa45'),'name':'sound','type':_0x4ea310('0x23fd'),'values':_0x4ea310('0x1230'),'value':_0x4ea310('0x1001'),'option':_0x4ea310('0x1279'),'defaultValues':[{'value':'\x27\x27','option':_0x4ea310('0x2187')}],'param':0x3},{'title':'Timeout','name':_0x4ea310('0x1f84'),'type':'number','min':0x0,'param':0x4},{'title':_0x4ea310('0x430'),'name':_0x4ea310('0x2426'),'type':'text','param':0x5},{'title':_0x4ea310('0x209b'),'name':'macro','type':'text','param':0x6},{'title':_0x4ea310('0x122c'),'name':_0x4ea310('0x18ef'),'type':_0x4ea310('0x86e'),'param':0x7},{'title':_0x4ea310('0x2283'),'name':_0x4ea310('0x2136'),'type':'text','param':0x8},{'title':_0x4ea310('0x8f1'),'name':_0x4ea310('0xf2c'),'type':_0x4ea310('0x1d81'),'min':0x0,'param':0x9},{'title':_0x4ea310('0xa76'),'name':_0x4ea310('0x14a0'),'type':_0x4ea310('0x22f1'),'general':!![]}]},{'app':'Playback','appType':_0x4ea310('0x119d'),'context':_0x4ea310('0x13d6'),'type':_0x4ea310('0x20e1'),'icon':'icon-apps','interval':'*,*,*,*','answer':!![],'isApp':!![],'extraApi':[{'name':'sounds','field':{'name':'appdata','key':_0x4ea310('0x14c8'),'prefix':_0x4ea310('0x1afc')},'route':_0x4ea310('0x156f'),'filters':{'fields':_0x4ea310('0xda1'),'sort':_0x4ea310('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x4ea310('0x226e'),'name':'appdata','type':_0x4ea310('0x23fd'),'values':_0x4ea310('0x1230'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','option':_0x4ea310('0xdb2'),'required':!![],'param':0x0},{'title':_0x4ea310('0x17eb'),'name':_0x4ea310('0x2010'),'type':_0x4ea310('0x86e'),'param':0x1},{'title':'Answer','name':_0x4ea310('0x14a0'),'type':_0x4ea310('0x22f1'),'general':!![]}]},{'app':_0x4ea310('0x1020'),'appType':_0x4ea310('0x284f'),'context':_0x4ea310('0x13d6'),'type':_0x4ea310('0x20e1'),'icon':_0x4ea310('0x108b'),'options':'xX','interval':_0x4ea310('0x17c5'),'isApp':!![],'fields':[{'title':_0x4ea310('0x786'),'name':_0x4ea310('0xde3'),'type':'text','required':!![],'param':0x0},{'title':_0x4ea310('0x1b9a'),'name':_0x4ea310('0x1f84'),'type':_0x4ea310('0x1d81'),'min':0x0,'param':0x1},{'title':_0x4ea310('0x17eb'),'name':_0x4ea310('0x2010'),'type':'text','param':0x2},{'title':_0x4ea310('0x1e59'),'name':_0x4ea310('0xd1'),'type':'text','param':0x3}]},{'app':_0x4ea310('0x1020'),'appType':_0x4ea310('0x1da8'),'context':'from-sip','type':_0x4ea310('0x20e1'),'icon':_0x4ea310('0x108b'),'options':'xX','interval':_0x4ea310('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x4ea310('0x1e14'),'field':{'name':_0x4ea310('0x166f'),'key':_0x4ea310('0x10ad'),'prefix':_0x4ea310('0x1a58')},'route':_0x4ea310('0x166f'),'filters':{'fields':_0x4ea310('0x2799'),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x4ea310('0x7b0')},{'id':0xcb,'role':_0x4ea310('0x149c')}]}}],'fields':[{'title':_0x4ea310('0x2265'),'name':_0x4ea310('0x166f'),'type':_0x4ea310('0x23fd'),'values':_0x4ea310('0x1e14'),'value':'\x27SIP/{{user.name}}\x27','option':_0x4ea310('0x807'),'required':!![],'param':0x0},{'title':_0x4ea310('0x1b9a'),'name':'timeout','type':_0x4ea310('0x1d81'),'min':0x0,'param':0x1},{'title':_0x4ea310('0x17eb'),'name':_0x4ea310('0x2010'),'type':_0x4ea310('0x86e'),'param':0x2},{'title':_0x4ea310('0x1e59'),'name':_0x4ea310('0xd1'),'type':_0x4ea310('0x86e'),'param':0x3}]},{'app':'Dial','appType':_0x4ea310('0x10f8'),'context':_0x4ea310('0x13d6'),'type':_0x4ea310('0x20e1'),'icon':_0x4ea310('0x108b'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x4ea310('0x673'),'field':{'name':_0x4ea310('0x15b7'),'key':_0x4ea310('0x10ad')},'route':'trunk','filters':{'fields':_0x4ea310('0xd52'),'sort':_0x4ea310('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x4ea310('0x183a'),'name':_0x4ea310('0x15b7'),'type':_0x4ea310('0x23fd'),'values':_0x4ea310('0x673'),'value':_0x4ea310('0xd41'),'option':'trunk.name','required':!![],'param':0x0},{'title':_0x4ea310('0x27a3'),'name':_0x4ea310('0xa04'),'type':_0x4ea310('0x86e')},{'title':'Timeout','name':_0x4ea310('0x1f84'),'type':_0x4ea310('0x1d81'),'min':0x0,'param':0x1},{'title':_0x4ea310('0x17eb'),'name':_0x4ea310('0x2010'),'type':_0x4ea310('0x86e'),'param':0x2},{'title':_0x4ea310('0x1e59'),'name':'url','type':_0x4ea310('0x86e'),'param':0x3}]},{'app':_0x4ea310('0x1020'),'appType':_0x4ea310('0x123a'),'context':'from-sip','type':'Internal','icon':_0x4ea310('0x108b'),'interval':_0x4ea310('0x17c5'),'options':'xX','isApp':!![],'extraApi':[{'name':'users','field':{'name':'multipleUsers','key':_0x4ea310('0x10ad'),'prefix':_0x4ea310('0x1a58')},'route':_0x4ea310('0x166f'),'filters':{'fields':_0x4ea310('0x2799'),'sort':_0x4ea310('0x10ad'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x4ea310('0x7b0')},{'id':0xcb,'role':_0x4ea310('0x149c')}]}}],'fields':[{'title':_0x4ea310('0x2265'),'name':_0x4ea310('0x237c'),'type':'apiselect','multiple':!![],'values':_0x4ea310('0x1e14'),'value':_0x4ea310('0x8f7'),'option':_0x4ea310('0x1c44'),'required':!![],'param':0x0},{'title':_0x4ea310('0x1b9a'),'name':_0x4ea310('0x1f84'),'type':_0x4ea310('0x1d81'),'min':0x0,'param':0x1},{'title':_0x4ea310('0x17eb'),'name':_0x4ea310('0x2010'),'type':_0x4ea310('0x86e'),'param':0x2},{'title':_0x4ea310('0x1e59'),'name':_0x4ea310('0xd1'),'type':_0x4ea310('0x86e'),'param':0x3}]},{'app':_0x4ea310('0x175'),'alias':_0x4ea310('0x27e7'),'appType':_0x4ea310('0x2426'),'context':_0x4ea310('0x13d6'),'type':_0x4ea310('0x20e1'),'icon':_0x4ea310('0x108b'),'interval':_0x4ea310('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x4ea310('0x23a1'),'field':{'name':_0x4ea310('0x220b'),'key':_0x4ea310('0x10ad'),'prefix':_0x4ea310('0xabd')},'route':_0x4ea310('0x550'),'filters':{'fields':_0x4ea310('0xd52'),'sort':'name','nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x4ea310('0x383'),'name':_0x4ea310('0x220b'),'type':_0x4ea310('0x23fd'),'values':_0x4ea310('0x23a1'),'value':'\x27agi://127.0.0.1/square,{{project.name}}\x27','option':_0x4ea310('0x293'),'required':!![],'param':0x0}]},{'app':'goto','appType':_0x4ea310('0x863'),'context':_0x4ea310('0x13d6'),'type':_0x4ea310('0x20e1'),'icon':'icon-apps','interval':_0x4ea310('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x4ea310('0x22a9'),'field':{'name':_0x4ea310('0x2b9'),'key':_0x4ea310('0x10ad')},'route':_0x4ea310('0xf01'),'filters':{'fields':_0x4ea310('0xd52'),'sort':_0x4ea310('0x10ad'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':'Context','name':_0x4ea310('0x2b9'),'type':'apiselect','values':_0x4ea310('0x22a9'),'value':_0x4ea310('0x1654'),'option':_0x4ea310('0x1654'),'required':!![],'param':0x0},{'title':_0x4ea310('0x1d2'),'name':_0x4ea310('0x22ce'),'type':_0x4ea310('0x86e'),'required':!![],'param':0x1},{'title':_0x4ea310('0x1162'),'name':_0x4ea310('0xb3'),'type':_0x4ea310('0x86e'),'required':!![],'param':0x2}]},{'app':_0x4ea310('0x13cc'),'appType':_0x4ea310('0x13cc'),'context':_0x4ea310('0x13d6'),'type':_0x4ea310('0x20e1'),'icon':_0x4ea310('0x108b'),'interval':_0x4ea310('0x17c5'),'isApp':!![],'fields':[{'title':_0x4ea310('0x2731'),'name':'appdata','type':_0x4ea310('0xc65'),'param':0x0,'values':[{'option':_0x4ea310('0x19bd'),'value':_0x4ea310('0x1d26')},{'option':_0x4ea310('0x10ec'),'value':_0x4ea310('0x858')},{'option':_0x4ea310('0x1e1e'),'value':'\x2717\x27'},{'option':_0x4ea310('0x2410'),'value':_0x4ea310('0x259f')},{'option':_0x4ea310('0x277d'),'value':'\x2721\x27'},{'option':_0x4ea310('0x18b7'),'value':'\x2722\x27'},{'option':_0x4ea310('0x1c45'),'value':'\x2727\x27'},{'option':_0x4ea310('0x11af'),'value':'\x2738\x27'},{'option':_0x4ea310('0x1412'),'value':_0x4ea310('0x13e4')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x4ea310('0x11b6'),'appType':_0x4ea310('0x256d'),'context':_0x4ea310('0x13d6'),'type':_0x4ea310('0x20e1'),'separator':'=','icon':'icon-apps','interval':_0x4ea310('0x17c5'),'extraApi':[{'name':'variables','field':{'name':'name','key':_0x4ea310('0x10ad')},'route':_0x4ea310('0x1b56'),'filters':{'fields':_0x4ea310('0xd52'),'sort':_0x4ea310('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x4ea310('0xae6'),'name':_0x4ea310('0x10ad'),'type':_0x4ea310('0x23fd'),'values':_0x4ea310('0x2715'),'value':'name.name','option':_0x4ea310('0x11eb'),'required':!![],'param':0x0},{'title':'Value','name':_0x4ea310('0xa7b'),'type':_0x4ea310('0x86e'),'required':!![],'param':0x1}]},{'app':null,'appType':_0x4ea310('0xbb4'),'icon':_0x4ea310('0x108b'),'type':'Internal','interval':_0x4ea310('0x17c5'),'isApp':!![],'fields':[{'title':_0x4ea310('0x206d'),'name':_0x4ea310('0x17e'),'type':'text','required':!![],'param':0x0},{'title':_0x4ea310('0xeb3'),'name':_0x4ea310('0x1c00'),'type':_0x4ea310('0x86e'),'param':0x1}]},{'app':_0x4ea310('0x11ce'),'appType':_0x4ea310('0x2710'),'context':_0x4ea310('0x13d6'),'icon':_0x4ea310('0x108b'),'type':'Internal','interval':_0x4ea310('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x4ea310('0x2698'),'field':{'name':_0x4ea310('0x579'),'key':_0x4ea310('0x14d3'),'suffix':_0x4ea310('0xf79')},'route':'voiceMail','filters':{'fields':_0x4ea310('0x354'),'sort':_0x4ea310('0x14d3'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':'Mailbox@Context','name':_0x4ea310('0x579'),'type':_0x4ea310('0x23fd'),'values':_0x4ea310('0x2698'),'value':_0x4ea310('0x2247'),'option':_0x4ea310('0x1cd1'),'required':!![],'param':0x0},{'title':_0x4ea310('0x17eb'),'name':_0x4ea310('0x2010'),'type':_0x4ea310('0x86e'),'param':0x1}]}],[_0x4ea310('0x17e')]),{'isApp':![]}),_0xa919c[_0x4ea310('0x3e3')]={'group':{'name':_0x4ea310('0x1749'),'pull':_0x4ea310('0x979')},'animation':0x64,'sort':![]},_0xa919c[_0x4ea310('0x1f7e')]={'group':{'name':_0x4ea310('0x1fb7'),'put':_0x4ea310('0x1749')},'animation':0x64,'onAdd':function(_0x5afea0){const _0x1ffb15=_0x4ea310;_0x64e519(_0x5afea0,_0x5afea0[_0x1ffb15('0x1c1b')]);},'onSort':function(){_0x386671();}},_0xa919c[_0x4ea310('0xb9c')]=_0x27c458,_0xa919c[_0x4ea310('0x2051')]=_0xa07fb2,_0xa919c[_0x4ea310('0xb89')]=_0x378746,_0xa919c[_0x4ea310('0xc4a')]=_0x64e519,_0xa919c[_0x4ea310('0xc28')]=_0x3644b4,_0xa919c['deleteInternalRouteApp']=_0x3275f9,_0xa919c['deleteSelectedInternalRouteApps']=_0x1ca437,_0xa919c[_0x4ea310('0x131f')]=_0x386671,_0xa919c['getIntervals']=_0x171e5e;function _0x27c458(_0x23f418,_0x356a52){const _0x4bb45e=_0x4ea310;_0xa919c[_0x4bb45e('0x1afe')]=_0x23f418,_0xa919c[_0x4bb45e('0x1dc1')]=typeof _0x356a52!==_0x4bb45e('0x6e5')?_0x356a52:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xa919c[_0x4bb45e('0x1f7e')][_0x4bb45e('0x6fc')]=!_0xa919c[_0x4bb45e('0x1dc1')][_0x4bb45e('0x1f3d')]?!![]:![],_0xa919c[_0x4bb45e('0xc49')][_0x4bb45e('0x1011')]=_0x23f418['id'],_0xa919c['query'][_0x4bb45e('0xbb6')]=!![],_0xa919c[_0x4bb45e('0xc49')][_0x4bb45e('0x1c7f')]=!![],_0xa919c[_0x4bb45e('0xb89')](),_0xa919c[_0x4bb45e('0xf77')]();}function _0xa07fb2(_0x1dc11f,_0x360703,_0x29bda8){const _0x55c42a=_0x4ea310,_0x3b141a=_0xd6fbe1['confirm']()[_0x55c42a('0x20d6')](_0x55c42a('0xbac'))['htmlContent'](_0x55c42a('0x15b9')+_0x1dc11f[_0x55c42a('0x17e')]+_0x55c42a('0x24be')+_0x55c42a('0xd23'))[_0x55c42a('0x217')]('delete\x20application')['targetEvent'](_0x29bda8)['ok']('OK')[_0x55c42a('0x1e1f')](_0x55c42a('0x468'));_0xd6fbe1[_0x55c42a('0x1cb7')](_0x3b141a)[_0x55c42a('0x173b')](function(){const _0x488afc=_0x55c42a;_0xa919c[_0x488afc('0x1d54')][_0x488afc('0x6aa')]['splice'](_0x360703,0x1),_0x386671();},function(){const _0x5c4d8c=_0x55c42a;console['log'](_0x5c4d8c('0x468'));});}function _0x64e519(_0xf8fd0b,_0x5290c7){const _0x4dfcc6=_0x4ea310;if(_0xa919c['internalrouteApps'][_0x4dfcc6('0x6aa')]['length']){const _0x416442=_0xa919c['internalrouteApps'][_0x4dfcc6('0x6aa')][_0x5290c7]?_0xa919c['internalrouteApps']['rows'][_0x5290c7]:_0xa919c['internalrouteApps'][_0x4dfcc6('0x6aa')][0x0],_0x42f080=(_0x416442[_0x4dfcc6('0x9d7')]||_0x416442[_0x4dfcc6('0x17e')])[_0x4dfcc6('0x1e68')]();_0xd6fbe1[_0x4dfcc6('0x1cb7')]({'controller':_0x4dfcc6('0x1351')+_0x42f080+'DialogController','controllerAs':'vm','templateUrl':_0x18ba68[_0x42f080],'parent':angular[_0x4dfcc6('0xb6d')](_0x20e85b[_0x4dfcc6('0x1a5')]),'targetEvent':_0xf8fd0b,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0x416442,'internalroute':_0xa919c['internalroute'],'crudPermissions':_0xa919c['crudPermissions']}})[_0x4dfcc6('0x173b')](function(_0xd2230f){const _0x53c572=_0x4dfcc6;_0xd2230f&&(_0xd2230f['id']?_0xa919c['internalrouteApps'][_0x53c572('0x6aa')][_0x5290c7]=_0xd2230f:_0xa919c['internalrouteApps'][_0x53c572('0x6aa')]['splice'](_0x5290c7,0x0,_0xd2230f),_0x386671());})['catch'](function(_0x673158){const _0x47d1ea=_0x4dfcc6;_0x673158&&_0x48feb1[_0x47d1ea('0x15aa')]({'title':_0x673158['status']?'API:'+_0x673158[_0x47d1ea('0x276f')]+_0x47d1ea('0x160c')+_0x673158['statusText']:_0x47d1ea('0x974'),'msg':_0x673158[_0x47d1ea('0x1e07')]?JSON['stringify'](_0x673158[_0x47d1ea('0x1e07')]):_0x673158[_0x47d1ea('0x1b75')]()});});}}function _0x3644b4(_0x2ea6d8,_0x3da114){const _0x4c181e=_0x4ea310;if(_0xa919c['internalrouteApps'][_0x4c181e('0x6aa')]['length']){const _0x1ca340=_0xa919c[_0x4c181e('0x1d54')][_0x4c181e('0x6aa')][_0x3da114]?_0xa919c[_0x4c181e('0x1d54')][_0x4c181e('0x6aa')][_0x3da114]:_0xa919c[_0x4c181e('0x1d54')][_0x4c181e('0x6aa')][0x0];_0xd6fbe1['show']({'controller':_0x4c181e('0x1593'),'controllerAs':'vm','templateUrl':_0x4e4c69,'parent':angular[_0x4c181e('0xb6d')](_0x20e85b['body']),'targetEvent':_0x2ea6d8,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1ca340[_0x4c181e('0x55a')],'IntervalId':_0x1ca340[_0x4c181e('0x600')],'application':!![]},'intervals':[],'crudPermissions':_0xa919c[_0x4c181e('0x1dc1')]}})['then'](function(_0x434eb0){const _0x29b229=_0x4c181e;_0x434eb0&&(_0x1ca340[_0x29b229('0x55a')]=_0x434eb0[_0x29b229('0x55a')]||_0x29b229('0x17c5'),_0x1ca340[_0x29b229('0x600')]=_0x434eb0['IntervalId']||null,_0x386671());});}}function _0x386671(){const _0x241f8b=_0x4ea310,_0x245163=[_0x241f8b('0x172'),_0x241f8b('0x119d')];let _0x4a3b68=0x2,_0x3a3905=[];_0x3a3905[_0x241f8b('0x18bb')]({'type':_0x241f8b('0x138c'),'app':_0x241f8b('0x11b6'),'appdata':_0x241f8b('0x1ca1'),'context':_0xa919c[_0x241f8b('0x1afe')]['context'],'exten':_0xa919c['internalroute']['exten'],'priority':_0x4a3b68++,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']}),_0x3a3905[_0x241f8b('0x18bb')]({'type':_0x241f8b('0x138c'),'app':_0x241f8b('0x11b6'),'appdata':'XCALLY-MOTION-ANSWER=0','context':_0xa919c[_0x241f8b('0x1afe')]['context'],'exten':_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x1a60')],'priority':_0x4a3b68++,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']}),_0x3a3905['push']({'type':'internal','app':_0x241f8b('0x11b6'),'appdata':_0x241f8b('0x4b3'),'context':_0xa919c[_0x241f8b('0x1afe')]['context'],'exten':_0xa919c['internalroute'][_0x241f8b('0x1a60')],'priority':_0x4a3b68++,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']}),_0x3a3905['push']({'type':_0x241f8b('0x138c'),'app':_0x241f8b('0x11b6'),'appdata':_0x241f8b('0x1d42'),'context':_0xa919c['internalroute'][_0x241f8b('0x2b9')],'exten':_0xa919c[_0x241f8b('0x1afe')]['exten'],'priority':_0x4a3b68++,'VoiceExtensionId':_0xa919c['internalroute']['id']});for(let _0x23e90f=0x0,_0x3cfd69=0x0;_0x23e90f<_0xa919c[_0x241f8b('0x1d54')][_0x241f8b('0x6aa')][_0x241f8b('0x543')];_0x23e90f++,_0x3cfd69=0x0){const _0x19eca2=_0xa919c['internalrouteApps'][_0x241f8b('0x6aa')][_0x23e90f],_0x177088=[],_0x966bd4=[];_0x19eca2['intervals']=_0x19eca2['interval']!==_0x241f8b('0x17c5')?[_0x19eca2[_0x241f8b('0x55a')]]:_0x19eca2[_0x241f8b('0x600')]?_0x3c8d8a()[_0x241f8b('0x8a2')](_0x3c8d8a()[_0x241f8b('0x278d')](_0xa919c[_0x241f8b('0x21c4')]['rows'],{'IntervalId':_0x19eca2[_0x241f8b('0x600')]}),'interval'):[],_0x19eca2[_0x241f8b('0x2b9')]=_0xa919c[_0x241f8b('0x1afe')]['context'],_0x19eca2[_0x241f8b('0x1a60')]=_0xa919c['internalroute'][_0x241f8b('0x1a60')];_0x19eca2[_0x241f8b('0x1810')]&&(_0x19eca2['type']=_0x19eca2[_0x241f8b('0x1810')][_0x241f8b('0x1e68')]());typeof _0x19eca2['answer']!==_0x241f8b('0x6e5')&&(_0x245163[_0x241f8b('0x2814')](_0x19eca2[_0x241f8b('0x17e')][_0x241f8b('0x1e68')]())&&_0x19eca2[_0x241f8b('0x9d7')]!==_0x241f8b('0xbb4')&&(_0x19eca2['answer']?(_0x177088[_0x241f8b('0x18bb')]({'type':_0x19eca2[_0x241f8b('0x1810')]['toLowerCase'](),'app':_0x241f8b('0x2795'),'appdata':_0x241f8b('0x1031'),'context':_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x2b9')],'exten':_0xa919c['internalroute'][_0x241f8b('0x1a60')],'priority':_0x19eca2[_0x241f8b('0x21c4')][_0x241f8b('0x543')]+_0x4a3b68+_0x3cfd69++,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']}),_0x177088[_0x241f8b('0x18bb')]({'type':_0x19eca2[_0x241f8b('0x1810')][_0x241f8b('0x1e68')](),'app':_0x241f8b('0x11b6'),'appdata':_0x241f8b('0x27c4'),'context':_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x2b9')],'exten':_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x1a60')],'priority':_0x19eca2[_0x241f8b('0x21c4')][_0x241f8b('0x543')]+_0x4a3b68+_0x3cfd69++,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']})):(_0x177088[_0x241f8b('0x18bb')]({'type':_0x19eca2[_0x241f8b('0x1810')]['toLowerCase'](),'app':'ExecIf','appdata':_0x241f8b('0xd4c'),'context':_0xa919c[_0x241f8b('0x1afe')]['context'],'exten':_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x1a60')],'priority':_0x19eca2[_0x241f8b('0x21c4')][_0x241f8b('0x543')]+_0x4a3b68+_0x3cfd69++,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']}),_0x177088[_0x241f8b('0x18bb')]({'type':_0x19eca2['type'][_0x241f8b('0x1e68')](),'app':_0x241f8b('0x11b6'),'appdata':'XCALLY-MOTION-PROGRESS=1','context':_0xa919c[_0x241f8b('0x1afe')]['context'],'exten':_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x1a60')],'priority':_0x19eca2['intervals'][_0x241f8b('0x543')]+_0x4a3b68+_0x3cfd69++,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']}))));for(let _0x22c927=0x0;_0x22c927<_0x19eca2[_0x241f8b('0x21c4')][_0x241f8b('0x543')];_0x22c927++){const _0x43bde1=_0x4a3b68+_0x19eca2[_0x241f8b('0x21c4')][_0x241f8b('0x543')],_0x3b7877=_0x22c927===_0x19eca2[_0x241f8b('0x21c4')][_0x241f8b('0x543')]-0x1?_0x4a3b68+_0x177088['length']+_0x966bd4[_0x241f8b('0x543')]+0x2:_0x4a3b68+_0x22c927+0x1;_0x177088[_0x241f8b('0x553')](_0x22c927,0x0,{'type':'internal','app':_0x241f8b('0x25f'),'appdata':_0x19eca2[_0x241f8b('0x21c4')][_0x22c927]+'?'+_0xa919c['internalroute'][_0x241f8b('0x2b9')]+',${EXTEN},'+_0x43bde1+':'+_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x2b9')]+_0x241f8b('0x2680')+_0x3b7877,'exten':_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x1a60')],'context':_0xa919c[_0x241f8b('0x1afe')][_0x241f8b('0x2b9')],'priority':_0x4a3b68+_0x22c927,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']});}_0x19eca2[_0x241f8b('0xb3')]=_0x177088['length']?_0x3c8d8a()['last'](_0x177088)['priority']+0x1:_0x4a3b68,_0x4a3b68=(_0x966bd4[_0x241f8b('0x543')]?_0x3c8d8a()[_0x241f8b('0x7f')](_0x966bd4)[_0x241f8b('0xb3')]:_0x19eca2['priority'])+0x1,_0x3a3905=_0x3c8d8a()['concat'](_0x3a3905,_0x177088,[_0x19eca2],_0x966bd4);}_0x3a3905[_0x241f8b('0x18bb')]({'type':_0x241f8b('0x138c'),'app':_0x241f8b('0x1665'),'exten':_0xa919c['internalroute'][_0x241f8b('0x1a60')],'context':_0xa919c[_0x241f8b('0x1afe')]['context'],'priority':_0x4a3b68,'VoiceExtensionId':_0xa919c[_0x241f8b('0x1afe')]['id']}),_0x31e081['voiceExtension'][_0x241f8b('0x271c')]({'id':_0xa919c[_0x241f8b('0x1afe')]['id']},_0x3c8d8a()[_0x241f8b('0x1b45')](_0x3a3905,_0x241f8b('0xb3')))[_0x241f8b('0x1964')][_0x241f8b('0x173b')](function(_0x43a67d){const _0x187290=_0x241f8b;_0xa919c[_0x187290('0x1d54')]['rows']=_0x43a67d['rows'];})[_0x241f8b('0x103c')](function(_0x3f0ef4){const _0x31c4f7=_0x241f8b;console[_0x31c4f7('0x15aa')](_0x3f0ef4);});}function _0x4912f6(_0x395a4b){const _0x10f05c=_0x4ea310;_0xa919c[_0x10f05c('0x1d54')]=_0x395a4b||{'count':0x0,'rows':[]};}function _0x171e5e(){const _0x14b008=_0x4ea310;return _0x31e081[_0x14b008('0x55a')][_0x14b008('0x1d97')]({'fields':_0x14b008('0x23e4')})[_0x14b008('0x1964')][_0x14b008('0x173b')](function(_0x30fe00){const _0x1af5a9=_0x14b008;_0xa919c[_0x1af5a9('0x21c4')]=_0x30fe00;})['catch'](function(_0x2db601){console['error'](_0x2db601);});}function _0x378746(){const _0x591f5c=_0x4ea310;_0xa919c[_0x591f5c('0x2219')]=_0x31e081[_0x591f5c('0x1630')][_0x591f5c('0x1d97')](_0xa919c['query'],_0x4912f6)[_0x591f5c('0x1964')];}function _0x3275f9(_0x405ea3){const _0x171207=_0x4ea310;_0x3c8d8a()[_0x171207('0x1a8b')](_0xa919c[_0x171207('0x1d54')][_0x171207('0x6aa')],{'id':_0x405ea3['id']}),_0x386671(),_0x48feb1[_0x171207('0xdfe')]({'title':_0x171207('0x236d'),'msg':_0x405ea3[_0x171207('0x17e')]?_0x405ea3[_0x171207('0x17e')]+_0x171207('0x25d2'):''});}function _0x1ca437(_0x5c0d12){const _0x123819=_0x4ea310,_0x1ef2d8=_0xd6fbe1['confirm']()[_0x123819('0x20d6')](_0x123819('0x8a0'))['htmlContent'](_0x123819('0x15b9')+_0xa919c[_0x123819('0x1c30')][_0x123819('0x543')]+_0x123819('0xcb4')+'\x20will\x20be\x20deleted.')[_0x123819('0x217')]('delete\x20applications')[_0x123819('0x21de')](_0x5c0d12)['ok']('OK')[_0x123819('0x1e1f')](_0x123819('0x468'));_0xd6fbe1[_0x123819('0x1cb7')](_0x1ef2d8)[_0x123819('0x173b')](function(){const _0x2af281=_0x123819;_0xa919c[_0x2af281('0x1c30')][_0x2af281('0xa6a')](function(_0x54ee8e){const _0x1d95d9=_0x2af281;_0x3c8d8a()['remove'](_0xa919c['internalrouteApps'][_0x1d95d9('0x6aa')],{'id':_0x54ee8e['id']});}),_0xa919c[_0x2af281('0x1c30')]=[],_0x386671();});}}const _0xc9774e=_0x4e287a;_0x59d224[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xa31'),_0x566993('0x1afe'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x59d224(_0x4a3b1b,_0x509960,_0x432e2d,_0x701e12,_0x1ba078,_0x145074,_0x525eca,_0x4b5e07){const _0x4c9c1c=_0x566993,_0x50343f=this;_0x50343f['currentUser']=_0x525eca['getCurrentUser'](),_0x50343f['errors']=[],_0x50343f['title']=_0x4c9c1c('0xcee')+(_0x701e12[_0x4c9c1c('0x9d7')]||_0x701e12['app'])[_0x4c9c1c('0x1164')](),_0x50343f['agi']=angular[_0x4c9c1c('0x2e3')](_0x701e12),_0x50343f[_0x4c9c1c('0x1dc1')]=_0x4b5e07,_0x50343f[_0x4c9c1c('0xb0')]={};if(_0x50343f['agi'][_0x4c9c1c('0x1c00')])switch(_0x50343f['agi'][_0x4c9c1c('0x9d7')]?_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x9d7')]['toLowerCase']():_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x17e')]['toLowerCase']()){case _0x4c9c1c('0xbb4'):break;case _0x4c9c1c('0x1601'):{const _0x1986b6=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1c00')][_0x4c9c1c('0x43a')](',');_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x237a')]=_0x1986b6[0x0],_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x604')]=_0x1986b6[0x1],_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1a7')]=_0x1986b6['slice'](0x2,_0x1986b6['length'])[_0x4c9c1c('0x2259')](',');}break;case _0x4c9c1c('0x1680'):{const _0x5f4556=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1c00')]['split'](',');_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x2e0')]=_0x5f4556[0x0],_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1d93')]=_0x5f4556[0x1],_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x10fc')]=_0x5f4556[0x2],_0x50343f['agi'][_0x4c9c1c('0x53')]=_0x5f4556[0x3],_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1a7')]=_0x5f4556['slice'](0x4,_0x5f4556['length'])['join'](',');}break;case'autoreply':{const _0x598bbe=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1c00')]['split'](',');_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x611')]=isNaN(_0x598bbe[0x0])?_0x598bbe[0x0]:parseInt(_0x598bbe[0x0],0xa),_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x86e')]=_0x598bbe[_0x4c9c1c('0x2456')](0x1,_0x598bbe[_0x4c9c1c('0x543')])['join'](',');}break;case _0x4c9c1c('0x67f'):_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x86e')]=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1c00')];break;case _0x4c9c1c('0x256d'):_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x10ad')]=_0x50343f['agi']['appdata'][_0x4c9c1c('0x43a')]('=')[0x0],_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0xa7b')]=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1c00')][_0x4c9c1c('0x43a')]('=')[0x1];break;case _0x4c9c1c('0x2426'):_0x50343f['agi'][_0x4c9c1c('0x220b')]=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1c00')];break;default:{const _0x821ec9=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1c00')][_0x4c9c1c('0x43a')](',');_0x50343f[_0x4c9c1c('0x2426')]['project']=_0x3c8d8a()['isEmpty'](_0x821ec9[0x0])?_0x821ec9[0x0]:isNaN(_0x821ec9[0x0])?_0x821ec9[0x0]:parseInt(_0x821ec9[0x0],0xa);}break;}else{}_0x50343f['agi'][_0x4c9c1c('0x1810')]&&_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x1810')][_0x4c9c1c('0x1e68')]()===_0x4c9c1c('0xb33')&&_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x9d7')][_0x4c9c1c('0x1e68')]()==='outbounddial'&&(_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0x23f7')]=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0xa04')]?_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0xa04')][_0x4c9c1c('0x43a')]('$')[0x0]:undefined,_0x50343f['agi']['callerId']=_0x50343f[_0x4c9c1c('0x2426')][_0x4c9c1c('0xe95')]?_0x4c9c1c('0x20a8')+_0x50343f[_0x4c9c1c('0x2426')]['callerID']:undefined);_0x50343f[_0x4c9c1c('0x926')]=_0x14d8c3,_0x50343f[_0x4c9c1c('0x18e2')]=_0x21c837,_0x525eca[_0x4c9c1c('0x1b4e')](_0x4c9c1c('0x79b'))?_0x145074[_0x4c9c1c('0x550')]['get']({'fields':_0x4c9c1c('0xd52'),'sort':_0x4c9c1c('0x10ad'),'nolimit':_0x4c9c1c('0x799')})[_0x4c9c1c('0x1964')]['then'](function(_0x293cd6){const _0x19fc1c=_0x4c9c1c;_0x50343f['projects']=_0x293cd6[_0x19fc1c('0x6aa')]||[];})[_0x4c9c1c('0x103c')](function(_0x4eb22e){const _0x1a8db5=_0x4c9c1c;_0x432e2d[_0x1a8db5('0x15aa')]({'title':_0x4eb22e['status']?_0x1a8db5('0x137')+_0x4eb22e['status']+'\x20-\x20'+_0x4eb22e['statusText']:_0x1a8db5('0x24bb'),'msg':_0x4eb22e['data']?JSON[_0x1a8db5('0x100b')](_0x4eb22e[_0x1a8db5('0x1e07')]):_0x4eb22e['toString']()});}):_0x145074[_0x4c9c1c('0x550')][_0x4c9c1c('0x1d97')]({'fields':_0x4c9c1c('0xd52'),'sort':_0x4c9c1c('0x10ad'),'nolimit':_0x4c9c1c('0x799')})[_0x4c9c1c('0x1964')][_0x4c9c1c('0x173b')](function(_0x546957){const _0x59c468=_0x4c9c1c;_0x50343f[_0x59c468('0x23a1')]=_0x546957[_0x59c468('0x6aa')]||[];})[_0x4c9c1c('0x173b')](function(){const _0x329801=_0x4c9c1c;return _0x145074[_0x329801('0x170e')][_0x329801('0x1d97')]({'userProfileId':_0x50343f[_0x329801('0x155f')][_0x329801('0x1946')],'sectionId':0x44f})[_0x329801('0x1964')];})[_0x4c9c1c('0x173b')](function(_0x1e5e11){const _0x5c1323=_0x4c9c1c,_0x4a5ba6=_0x1e5e11&&_0x1e5e11[_0x5c1323('0x6aa')]?_0x1e5e11['rows'][0x0]:null;if(!_0x4a5ba6){const _0x533d22=[];let _0xde933=null;_0x50343f['agi']&&(_0xde933=_0x3c8d8a()[_0x5c1323('0x18ab')](_0x50343f['projects'],{'name':_0x50343f[_0x5c1323('0x2426')][_0x5c1323('0x220b')]}));for(let _0x26f7dc=0x0;_0x26f7dc<_0x50343f[_0x5c1323('0x23a1')][_0x5c1323('0x543')];_0x26f7dc++){_0xde933&&_0x50343f[_0x5c1323('0x23a1')][_0x26f7dc]['id']===_0xde933['id']&&(_0x50343f['projects'][_0x26f7dc][_0x5c1323('0x268e')]=![],_0x533d22[_0x5c1323('0x18bb')](_0x50343f[_0x5c1323('0x23a1')][_0x26f7dc]));}_0x50343f[_0x5c1323('0x23a1')]=_0x533d22;}else{if(!_0x4a5ba6[_0x5c1323('0x273e')])return _0x145074[_0x5c1323('0xda9')][_0x5c1323('0x1d97')]({'sectionId':_0x4a5ba6['id']})[_0x5c1323('0x1964')][_0x5c1323('0x173b')](function(_0x233a3a){const _0x18113d=_0x5c1323,_0x3ef9e7=_0x3c8d8a()['map'](_0x233a3a[_0x18113d('0x6aa')],function(_0x254821){const _0x32fa88=_0x18113d;return _0x3c8d8a()['find'](_0x50343f[_0x32fa88('0x23a1')],{'id':_0x254821[_0x32fa88('0x1ce0')]});});let _0x205089=null;_0x50343f['agi']&&(_0x205089=_0x3c8d8a()[_0x18113d('0x18ab')](_0x50343f['projects'],{'name':_0x50343f[_0x18113d('0x2426')][_0x18113d('0x220b')]}));if(_0x205089&&!_0x3c8d8a()['some'](_0x3ef9e7,['id',_0x205089['id']])){const _0xd45bc6=_0x3c8d8a()[_0x18113d('0x18ab')](_0x50343f['projects'],{'id':_0x205089['id']});_0xd45bc6[_0x18113d('0x268e')]=![],_0x3ef9e7[_0x18113d('0x18bb')](_0xd45bc6);}_0x50343f[_0x18113d('0x23a1')]=_0x3ef9e7;});}})[_0x4c9c1c('0x103c')](function(_0x12ecfa){const _0xedfce6=_0x4c9c1c;_0x432e2d['error']({'title':_0x12ecfa['status']?_0xedfce6('0x137')+_0x12ecfa[_0xedfce6('0x276f')]+'\x20-\x20'+_0x12ecfa[_0xedfce6('0x2696')]:'SYSTEM:GETprojects','msg':_0x12ecfa[_0xedfce6('0x1e07')]?JSON[_0xedfce6('0x100b')](_0x12ecfa[_0xedfce6('0x1e07')]):_0x12ecfa[_0xedfce6('0x1b75')]()});});function _0x14d8c3(){const _0x1cc84b=_0x4c9c1c;_0x50343f[_0x1cc84b('0x1d4a')]=[];const _0x5001cd=[];_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x1810')]&&_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x1810')][_0x1cc84b('0x1e68')]()===_0x1cc84b('0xb33')&&_0x50343f['agi'][_0x1cc84b('0x9d7')]===_0x1cc84b('0x2150')&&(_0x50343f[_0x1cc84b('0x2426')]['phone']=_0x1ba078[_0x1cc84b('0x1429')]?(_0x50343f['agi'][_0x1cc84b('0x23f7')]||'')+_0x1cc84b('0x1957')+_0x1ba078[_0x1cc84b('0x1429')]+'}':(_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x23f7')]||'')+'${EXTEN}',_0x1ba078[_0x1cc84b('0x76c')]!==_0x1cc84b('0x2741')?_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x2010')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x2010')]+=_0x1cc84b('0x2474')):_0x50343f['agi'][_0x1cc84b('0x2010')]=_0x50343f[_0x1cc84b('0x2426')]['options'][_0x1cc84b('0x166c')](_0x1cc84b('0x2474'),''));if(_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x9d7')]&&_0x50343f[_0x1cc84b('0x2426')]['appType']==='custom'){}else switch((_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x17e')]||_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x9d7')])['toLowerCase']()){case _0x1cc84b('0x256d'):_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x1c00')]=_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x10ad')]+'='+_0x50343f['agi']['value'];break;case _0x1cc84b('0xbb4'):break;default:_0x5001cd[0x0]=_0x50343f['agi'][_0x1cc84b('0x220b')],_0x50343f[_0x1cc84b('0x2426')][_0x1cc84b('0x1c00')]=_0x5001cd[_0x1cc84b('0x2259')](',');}_0x21c837(_0x50343f[_0x1cc84b('0x2426')]);}function _0x21c837(_0xf75ecd){_0x4a3b1b['hide'](_0xf75ecd);}}const _0x4e0fd6=_0x59d224;_0x4bd529[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xa31'),_0x566993('0x1afe'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4bd529(_0x1a248c,_0x2b14a5,_0x54b793,_0x37cb68,_0x47cec8,_0x3a5d41,_0x14875e,_0x2b5cf2){const _0xa4e7d1=_0x566993,_0xf948ee=this;_0xf948ee[_0xa4e7d1('0x155f')]=_0x14875e[_0xa4e7d1('0x14d4')](),_0xf948ee[_0xa4e7d1('0x1d4a')]=[],_0xf948ee[_0xa4e7d1('0x20d6')]=_0xa4e7d1('0xcee')+(_0x37cb68[_0xa4e7d1('0x9d7')]||_0x37cb68[_0xa4e7d1('0x17e')])['toUpperCase'](),_0xf948ee['custom']=angular[_0xa4e7d1('0x2e3')](_0x37cb68),_0xf948ee[_0xa4e7d1('0x1dc1')]=_0x2b5cf2,_0xf948ee[_0xa4e7d1('0xb0')]={};if(_0xf948ee['custom'][_0xa4e7d1('0x1c00')])switch(_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x9d7')]?_0xf948ee['custom']['appType'][_0xa4e7d1('0x1e68')]():_0xf948ee['custom']['app'][_0xa4e7d1('0x1e68')]()){case'custom':break;case _0xa4e7d1('0x1601'):{const _0x358155=_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1c00')][_0xa4e7d1('0x43a')](',');_0xf948ee[_0xa4e7d1('0xbb4')]['key']=_0x358155[0x0],_0xf948ee['custom'][_0xa4e7d1('0x604')]=_0x358155[0x1],_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1a7')]=_0x358155['slice'](0x2,_0x358155[_0xa4e7d1('0x543')])['join'](',');}break;case _0xa4e7d1('0x1680'):{const _0x441d70=_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1c00')]['split'](',');_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x2e0')]=_0x441d70[0x0],_0xf948ee['custom'][_0xa4e7d1('0x1d93')]=_0x441d70[0x1],_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x10fc')]=_0x441d70[0x2],_0xf948ee['custom'][_0xa4e7d1('0x53')]=_0x441d70[0x3],_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1a7')]=_0x441d70['slice'](0x4,_0x441d70['length'])['join'](',');}break;case _0xa4e7d1('0x23fe'):{const _0x3fd9c2=_0xf948ee['custom'][_0xa4e7d1('0x1c00')]['split'](',');_0xf948ee['custom'][_0xa4e7d1('0x611')]=isNaN(_0x3fd9c2[0x0])?_0x3fd9c2[0x0]:parseInt(_0x3fd9c2[0x0],0xa),_0xf948ee['custom'][_0xa4e7d1('0x86e')]=_0x3fd9c2[_0xa4e7d1('0x2456')](0x1,_0x3fd9c2[_0xa4e7d1('0x543')])[_0xa4e7d1('0x2259')](',');}break;case _0xa4e7d1('0x67f'):_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x86e')]=_0xf948ee[_0xa4e7d1('0xbb4')]['appdata'];break;case _0xa4e7d1('0x256d'):_0xf948ee[_0xa4e7d1('0xbb4')]['name']=_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1c00')]['split']('=')[0x0],_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0xa7b')]=_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1c00')][_0xa4e7d1('0x43a')]('=')[0x1];break;case _0xa4e7d1('0x2426'):_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x220b')]=_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1c00')];break;default:{const _0x2c2f83=_0xf948ee['custom'][_0xa4e7d1('0x1c00')][_0xa4e7d1('0x43a')](',');_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x17e')]=_0x3c8d8a()[_0xa4e7d1('0x1a56')](_0x2c2f83[0x0])?_0x2c2f83[0x0]:isNaN(_0x2c2f83[0x0])?_0x2c2f83[0x0]:parseInt(_0x2c2f83[0x0],0xa),_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1c00')]=_0x3c8d8a()[_0xa4e7d1('0x1a56')](_0x2c2f83[0x1])?_0x2c2f83[0x1]:isNaN(_0x2c2f83[0x1])?_0x2c2f83[0x1]:parseInt(_0x2c2f83[0x1],0xa);}break;}else{}_0xf948ee['custom']['type']&&_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x1810')][_0xa4e7d1('0x1e68')]()==='outbound'&&_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0x9d7')][_0xa4e7d1('0x1e68')]()===_0xa4e7d1('0x1edc')&&(_0xf948ee[_0xa4e7d1('0xbb4')]['prefix']=_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0xa04')]?_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0xa04')][_0xa4e7d1('0x43a')]('$')[0x0]:undefined,_0xf948ee['custom'][_0xa4e7d1('0x1961')]=_0xf948ee[_0xa4e7d1('0xbb4')][_0xa4e7d1('0xe95')]?_0xa4e7d1('0x20a8')+_0xf948ee['custom'][_0xa4e7d1('0xe95')]:undefined);_0xf948ee[_0xa4e7d1('0x926')]=_0x1f7b69,_0xf948ee[_0xa4e7d1('0x18e2')]=_0x5e4999;function _0x1f7b69(){const _0x204fe6=_0xa4e7d1;_0xf948ee['errors']=[];const _0x52777d=[];_0xf948ee[_0x204fe6('0xbb4')]['type']&&_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x1810')][_0x204fe6('0x1e68')]()==='outbound'&&_0xf948ee[_0x204fe6('0xbb4')]['appType']===_0x204fe6('0x2150')&&(_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0xa04')]=_0x47cec8[_0x204fe6('0x1429')]?(_0xf948ee[_0x204fe6('0xbb4')]['prefix']||'')+_0x204fe6('0x1957')+_0x47cec8[_0x204fe6('0x1429')]+'}':(_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x23f7')]||'')+'${EXTEN}',_0x47cec8[_0x204fe6('0x76c')]!==_0x204fe6('0x2741')?_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x2010')][_0x204fe6('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0xf948ee['custom'][_0x204fe6('0x2010')]+=_0x204fe6('0x2474')):_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x2010')]=_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x2010')][_0x204fe6('0x166c')](_0x204fe6('0x2474'),''));if(_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x9d7')]&&_0xf948ee[_0x204fe6('0xbb4')]['appType']===_0x204fe6('0xbb4')){}else switch((_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x17e')]||_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x9d7')])['toLowerCase']()){case'set':_0xf948ee[_0x204fe6('0xbb4')]['appdata']=_0xf948ee['custom']['name']+'='+_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0xa7b')];break;case'custom':break;default:_0x52777d[0x0]=_0xf948ee[_0x204fe6('0xbb4')]['app'],_0x52777d[0x1]=_0xf948ee[_0x204fe6('0xbb4')]['appdata'],_0xf948ee[_0x204fe6('0xbb4')][_0x204fe6('0x1c00')]=_0x52777d['join'](',');}_0x5e4999(_0xf948ee[_0x204fe6('0xbb4')]);}function _0x5e4999(_0x40d81e){_0x1a248c['hide'](_0x40d81e);}}const _0x2f4904=_0x4bd529;_0x4a0bf0[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xa31'),_0x566993('0x1afe'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4a0bf0(_0x268380,_0x346dd5,_0x437d31,_0x44de22,_0x4cce5e,_0x197019,_0xfd78f2,_0x29f56c){const _0xe20089=_0x566993,_0x3a295c=this;_0x3a295c[_0xe20089('0x155f')]=_0xfd78f2[_0xe20089('0x14d4')](),_0x3a295c[_0xe20089('0x1d4a')]=[],_0x3a295c[_0xe20089('0x20d6')]=_0xe20089('0xcee')+(_0x44de22[_0xe20089('0x9d7')]||_0x44de22[_0xe20089('0x17e')])[_0xe20089('0x1164')](),_0x3a295c[_0xe20089('0x284f')]=angular[_0xe20089('0x2e3')](_0x44de22),_0x3a295c[_0xe20089('0x1dc1')]=_0x29f56c,_0x3a295c['hasModulePermissions']={};if(_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1c00')])switch(_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x9d7')]?_0x3a295c['dial']['appType']['toLowerCase']():_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x17e')][_0xe20089('0x1e68')]()){case'custom':break;case'dialogflow':{const _0x47c7bf=_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1c00')][_0xe20089('0x43a')](',');_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x237a')]=_0x47c7bf[0x0],_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x604')]=_0x47c7bf[0x1],_0x3a295c[_0xe20089('0x284f')]['welcomemessage']=_0x47c7bf[_0xe20089('0x2456')](0x2,_0x47c7bf[_0xe20089('0x543')])[_0xe20089('0x2259')](',');}break;case _0xe20089('0x1680'):{const _0x109d4b=_0x3a295c[_0xe20089('0x284f')]['appdata'][_0xe20089('0x43a')](',');_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x2e0')]=_0x109d4b[0x0],_0x3a295c['dial'][_0xe20089('0x1d93')]=_0x109d4b[0x1],_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x10fc')]=_0x109d4b[0x2],_0x3a295c['dial'][_0xe20089('0x53')]=_0x109d4b[0x3],_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1a7')]=_0x109d4b[_0xe20089('0x2456')](0x4,_0x109d4b[_0xe20089('0x543')])[_0xe20089('0x2259')](',');}break;case'autoreply':{const _0x111bfd=_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1c00')]['split'](',');_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x611')]=isNaN(_0x111bfd[0x0])?_0x111bfd[0x0]:parseInt(_0x111bfd[0x0],0xa),_0x3a295c['dial'][_0xe20089('0x86e')]=_0x111bfd[_0xe20089('0x2456')](0x1,_0x111bfd[_0xe20089('0x543')])[_0xe20089('0x2259')](',');}break;case _0xe20089('0x67f'):_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x86e')]=_0x3a295c['dial'][_0xe20089('0x1c00')];break;case _0xe20089('0x256d'):_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x10ad')]=_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1c00')][_0xe20089('0x43a')]('=')[0x0],_0x3a295c[_0xe20089('0x284f')][_0xe20089('0xa7b')]=_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1c00')][_0xe20089('0x43a')]('=')[0x1];break;case'agi':_0x3a295c['dial'][_0xe20089('0x220b')]=_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1c00')];break;default:{const _0x4d3249=_0x3a295c['dial'][_0xe20089('0x1c00')][_0xe20089('0x43a')](',');_0x3a295c[_0xe20089('0x284f')][_0xe20089('0xde3')]=_0x3c8d8a()[_0xe20089('0x1a56')](_0x4d3249[0x0])?_0x4d3249[0x0]:isNaN(_0x4d3249[0x0])?_0x4d3249[0x0]:parseInt(_0x4d3249[0x0],0xa),_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1f84')]=_0x3c8d8a()[_0xe20089('0x1a56')](_0x4d3249[0x1])?_0x4d3249[0x1]:isNaN(_0x4d3249[0x1])?_0x4d3249[0x1]:parseInt(_0x4d3249[0x1],0xa),_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x2010')]=_0x3c8d8a()[_0xe20089('0x1a56')](_0x4d3249[0x2])?_0x4d3249[0x2]:isNaN(_0x4d3249[0x2])?_0x4d3249[0x2]:parseInt(_0x4d3249[0x2],0xa),_0x3a295c[_0xe20089('0x284f')][_0xe20089('0xd1')]=_0x3c8d8a()['isEmpty'](_0x4d3249[0x3])?_0x4d3249[0x3]:isNaN(_0x4d3249[0x3])?_0x4d3249[0x3]:parseInt(_0x4d3249[0x3],0xa);}break;}else{}_0x3a295c[_0xe20089('0x284f')]['type']&&_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x1810')][_0xe20089('0x1e68')]()==='outbound'&&_0x3a295c[_0xe20089('0x284f')][_0xe20089('0x9d7')][_0xe20089('0x1e68')]()===_0xe20089('0x1edc')&&(_0x3a295c[_0xe20089('0x284f')]['prefix']=_0x3a295c[_0xe20089('0x284f')]['phone']?_0x3a295c[_0xe20089('0x284f')][_0xe20089('0xa04')][_0xe20089('0x43a')]('$')[0x0]:undefined,_0x3a295c['dial']['callerId']=_0x3a295c[_0xe20089('0x284f')][_0xe20089('0xe95')]?_0xe20089('0x20a8')+_0x3a295c[_0xe20089('0x284f')][_0xe20089('0xe95')]:undefined);_0x3a295c[_0xe20089('0x926')]=_0x1d8d53,_0x3a295c[_0xe20089('0x18e2')]=_0x2c021d;function _0x1d8d53(){const _0x13fbfa=_0xe20089;_0x3a295c[_0x13fbfa('0x1d4a')]=[];const _0x1ac017=[];_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x1810')]&&_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x1810')][_0x13fbfa('0x1e68')]()===_0x13fbfa('0xb33')&&_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x9d7')]==='outboundDial'&&(_0x3a295c[_0x13fbfa('0x284f')]['phone']=_0x4cce5e[_0x13fbfa('0x1429')]?(_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x23f7')]||'')+_0x13fbfa('0x1957')+_0x4cce5e[_0x13fbfa('0x1429')]+'}':(_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x23f7')]||'')+_0x13fbfa('0x1dc5'),_0x4cce5e[_0x13fbfa('0x76c')]!==_0x13fbfa('0x2741')?_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x2010')][_0x13fbfa('0x2087')](_0x13fbfa('0x2474'))<0x0&&(_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x2010')]+='U(xcally-mixmonitor-context)'):_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x2010')]=_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x2010')][_0x13fbfa('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x3a295c['dial']['appType']&&_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x9d7')]===_0x13fbfa('0xbb4')){}else switch((_0x3a295c['dial']['app']||_0x3a295c['dial']['appType'])['toLowerCase']()){case'set':_0x3a295c[_0x13fbfa('0x284f')]['appdata']=_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x10ad')]+'='+_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0xa7b')];break;case _0x13fbfa('0xbb4'):break;default:_0x1ac017[0x0]=_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0xde3')],_0x1ac017[0x1]=_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x1f84')],_0x1ac017[0x2]=_0x3a295c[_0x13fbfa('0x284f')]['options'],_0x1ac017[0x3]=_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0xd1')],_0x3a295c[_0x13fbfa('0x284f')][_0x13fbfa('0x1c00')]=_0x1ac017['join'](',');}_0x2c021d(_0x3a295c[_0x13fbfa('0x284f')]);}function _0x2c021d(_0x296ca7){_0x268380['hide'](_0x296ca7);}}const _0x2bb1a6=_0x4a0bf0;_0x51adbd[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xa31'),'internalroute',_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x51adbd(_0x3991b7,_0x160b47,_0x25575d,_0x19ff58,_0x34e6ea,_0x4e3919,_0xf67dff,_0x1d1faa){const _0x5c5ba9=_0x566993,_0x3e8166=this;_0x3e8166[_0x5c5ba9('0x155f')]=_0xf67dff[_0x5c5ba9('0x14d4')](),_0x3e8166[_0x5c5ba9('0x1d4a')]=[],_0x3e8166[_0x5c5ba9('0x20d6')]=_0x5c5ba9('0xcee')+(_0x19ff58[_0x5c5ba9('0x9d7')]||_0x19ff58[_0x5c5ba9('0x17e')])['toUpperCase'](),_0x3e8166['externaldial']=angular[_0x5c5ba9('0x2e3')](_0x19ff58),_0x3e8166[_0x5c5ba9('0x1dc1')]=_0x1d1faa,_0x3e8166[_0x5c5ba9('0xb0')]={};if(_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x1c00')])switch(_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x9d7')]?_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x9d7')]['toLowerCase']():_0x3e8166['externaldial']['app'][_0x5c5ba9('0x1e68')]()){case _0x5c5ba9('0xbb4'):break;case'dialogflow':{const _0x513486=_0x3e8166[_0x5c5ba9('0x1a4f')]['appdata'][_0x5c5ba9('0x43a')](',');_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x237a')]=_0x513486[0x0],_0x3e8166['externaldial'][_0x5c5ba9('0x604')]=_0x513486[0x1],_0x3e8166['externaldial'][_0x5c5ba9('0x1a7')]=_0x513486[_0x5c5ba9('0x2456')](0x2,_0x513486[_0x5c5ba9('0x543')])[_0x5c5ba9('0x2259')](',');}break;case _0x5c5ba9('0x1680'):{const _0x5a44d3=_0x3e8166['externaldial'][_0x5c5ba9('0x1c00')]['split'](',');_0x3e8166[_0x5c5ba9('0x1a4f')]['accesskeyid']=_0x5a44d3[0x0],_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x1d93')]=_0x5a44d3[0x1],_0x3e8166[_0x5c5ba9('0x1a4f')]['lexregion']=_0x5a44d3[0x2],_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x53')]=_0x5a44d3[0x3],_0x3e8166[_0x5c5ba9('0x1a4f')]['welcomemessage']=_0x5a44d3[_0x5c5ba9('0x2456')](0x4,_0x5a44d3[_0x5c5ba9('0x543')])[_0x5c5ba9('0x2259')](',');}break;case _0x5c5ba9('0x23fe'):{const _0x1cadf4=_0x3e8166['externaldial'][_0x5c5ba9('0x1c00')][_0x5c5ba9('0x43a')](',');_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x611')]=isNaN(_0x1cadf4[0x0])?_0x1cadf4[0x0]:parseInt(_0x1cadf4[0x0],0xa),_0x3e8166[_0x5c5ba9('0x1a4f')]['text']=_0x1cadf4[_0x5c5ba9('0x2456')](0x1,_0x1cadf4[_0x5c5ba9('0x543')])[_0x5c5ba9('0x2259')](',');}break;case _0x5c5ba9('0x67f'):_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x86e')]=_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x1c00')];break;case _0x5c5ba9('0x256d'):_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x10ad')]=_0x3e8166['externaldial'][_0x5c5ba9('0x1c00')]['split']('=')[0x0],_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0xa7b')]=_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x1c00')][_0x5c5ba9('0x43a')]('=')[0x1];break;case _0x5c5ba9('0x2426'):_0x3e8166['externaldial'][_0x5c5ba9('0x220b')]=_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x1c00')];break;default:{const _0xdff546=_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x1c00')][_0x5c5ba9('0x43a')](',');_0x3e8166['externaldial'][_0x5c5ba9('0x15b7')]=_0xdff546[0x0][_0x5c5ba9('0x43a')]('/')[0x1],_0x3e8166['externaldial'][_0x5c5ba9('0xa04')]=_0xdff546[0x0]['split']('/')[0x2],_0x3e8166['externaldial'][_0x5c5ba9('0x1f84')]=_0x3c8d8a()[_0x5c5ba9('0x1a56')](_0xdff546[0x1])?_0xdff546[0x1]:isNaN(_0xdff546[0x1])?_0xdff546[0x1]:parseInt(_0xdff546[0x1],0xa),_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x2010')]=_0x3c8d8a()['isEmpty'](_0xdff546[0x2])?_0xdff546[0x2]:isNaN(_0xdff546[0x2])?_0xdff546[0x2]:parseInt(_0xdff546[0x2],0xa),_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0xd1')]=_0x3c8d8a()[_0x5c5ba9('0x1a56')](_0xdff546[0x3])?_0xdff546[0x3]:isNaN(_0xdff546[0x3])?_0xdff546[0x3]:parseInt(_0xdff546[0x3],0xa);}break;}else{}_0x3e8166['externaldial'][_0x5c5ba9('0x1810')]&&_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x1810')][_0x5c5ba9('0x1e68')]()===_0x5c5ba9('0xb33')&&_0x3e8166['externaldial'][_0x5c5ba9('0x9d7')]['toLowerCase']()===_0x5c5ba9('0x1edc')&&(_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x23f7')]=_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0xa04')]?_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0xa04')][_0x5c5ba9('0x43a')]('$')[0x0]:undefined,_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0x1961')]=_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0xe95')]?_0x5c5ba9('0x20a8')+_0x3e8166[_0x5c5ba9('0x1a4f')][_0x5c5ba9('0xe95')]:undefined);_0x3e8166[_0x5c5ba9('0x926')]=_0x31763b,_0x3e8166[_0x5c5ba9('0x18e2')]=_0x28ddb6,_0xf67dff[_0x5c5ba9('0x1b4e')]('admin')?_0x4e3919['trunk'][_0x5c5ba9('0x1d97')]({'fields':_0x5c5ba9('0xd52'),'sort':_0x5c5ba9('0x10ad'),'nolimit':'true'})[_0x5c5ba9('0x1964')]['then'](function(_0x2e04a6){const _0x269bbf=_0x5c5ba9;_0x3e8166[_0x269bbf('0x673')]=_0x2e04a6[_0x269bbf('0x6aa')]||[];})[_0x5c5ba9('0x103c')](function(_0x2fb194){const _0x559a85=_0x5c5ba9;_0x25575d[_0x559a85('0x15aa')]({'title':_0x2fb194[_0x559a85('0x276f')]?_0x559a85('0x137')+_0x2fb194[_0x559a85('0x276f')]+'\x20-\x20'+_0x2fb194[_0x559a85('0x2696')]:'SYSTEM:GET_TRUNKS','msg':_0x2fb194[_0x559a85('0x1e07')]?JSON[_0x559a85('0x100b')](_0x2fb194[_0x559a85('0x1e07')]):_0x2fb194['toString']()});}):_0x4e3919[_0x5c5ba9('0x15b7')][_0x5c5ba9('0x1d97')]({'fields':_0x5c5ba9('0xd52'),'sort':'name','nolimit':_0x5c5ba9('0x799')})[_0x5c5ba9('0x1964')][_0x5c5ba9('0x173b')](function(_0x5ee0bc){const _0x5ca50d=_0x5c5ba9;_0x3e8166[_0x5ca50d('0x673')]=_0x5ee0bc['rows']||[];})['then'](function(){const _0x5e27b0=_0x5c5ba9;return _0x4e3919[_0x5e27b0('0x170e')][_0x5e27b0('0x1d97')]({'userProfileId':_0x3e8166[_0x5e27b0('0x155f')][_0x5e27b0('0x1946')],'sectionId':0x3f3})['$promise'];})['then'](function(_0x14a54d){const _0x50a832=_0x5c5ba9,_0x27eeda=_0x14a54d&&_0x14a54d[_0x50a832('0x6aa')]?_0x14a54d[_0x50a832('0x6aa')][0x0]:null;if(!_0x27eeda){const _0x19bf08=[];let _0x31f5c7=null;_0x3e8166[_0x50a832('0x1a4f')]&&(_0x31f5c7=_0x3c8d8a()[_0x50a832('0x18ab')](_0x3e8166[_0x50a832('0x673')],{'name':_0x3e8166[_0x50a832('0x1a4f')]['trunk']}));for(let _0x14cbc0=0x0;_0x14cbc0<_0x3e8166[_0x50a832('0x673')]['length'];_0x14cbc0++){_0x31f5c7&&_0x3e8166[_0x50a832('0x673')][_0x14cbc0]['id']===_0x31f5c7['id']&&(_0x3e8166[_0x50a832('0x673')][_0x14cbc0][_0x50a832('0x268e')]=![],_0x19bf08[_0x50a832('0x18bb')](_0x3e8166['trunks'][_0x14cbc0]));}_0x3e8166[_0x50a832('0x673')]=_0x19bf08;}else{if(!_0x27eeda[_0x50a832('0x273e')])return _0x4e3919[_0x50a832('0xda9')][_0x50a832('0x1d97')]({'sectionId':_0x27eeda['id']})[_0x50a832('0x1964')][_0x50a832('0x173b')](function(_0x683cce){const _0x298cf0=_0x50a832,_0x1f84c8=_0x3c8d8a()['map'](_0x683cce['rows'],function(_0x2b8953){const _0x14f527=a0_0xde5e;return _0x3c8d8a()['find'](_0x3e8166[_0x14f527('0x673')],{'id':_0x2b8953['resourceId']});});let _0x18af92=null;_0x3e8166[_0x298cf0('0x1a4f')]&&(_0x18af92=_0x3c8d8a()[_0x298cf0('0x18ab')](_0x3e8166['trunks'],{'name':_0x3e8166[_0x298cf0('0x1a4f')][_0x298cf0('0x15b7')]}));if(_0x18af92&&!_0x3c8d8a()[_0x298cf0('0x1ec')](_0x1f84c8,['id',_0x18af92['id']])){const _0x287a38=_0x3c8d8a()['find'](_0x3e8166[_0x298cf0('0x673')],{'id':_0x18af92['id']});_0x287a38[_0x298cf0('0x268e')]=![],_0x1f84c8[_0x298cf0('0x18bb')](_0x287a38);}_0x3e8166[_0x298cf0('0x673')]=_0x1f84c8;});}})['catch'](function(_0x536a32){const _0x3202db=_0x5c5ba9;_0x25575d[_0x3202db('0x15aa')]({'title':_0x536a32[_0x3202db('0x276f')]?'API:'+_0x536a32[_0x3202db('0x276f')]+_0x3202db('0x160c')+_0x536a32[_0x3202db('0x2696')]:_0x3202db('0x21ed'),'msg':_0x536a32[_0x3202db('0x1e07')]?JSON['stringify'](_0x536a32[_0x3202db('0x1e07')]):_0x536a32[_0x3202db('0x1b75')]()});});function _0x31763b(){const _0x4f6511=_0x5c5ba9;_0x3e8166[_0x4f6511('0x1d4a')]=[];const _0x3c0f4e=[];_0x3e8166[_0x4f6511('0x1a4f')]['type']&&_0x3e8166['externaldial'][_0x4f6511('0x1810')][_0x4f6511('0x1e68')]()===_0x4f6511('0xb33')&&_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x9d7')]===_0x4f6511('0x2150')&&(_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0xa04')]=_0x34e6ea[_0x4f6511('0x1429')]?(_0x3e8166[_0x4f6511('0x1a4f')]['prefix']||'')+'${EXTEN:'+_0x34e6ea[_0x4f6511('0x1429')]+'}':(_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x23f7')]||'')+_0x4f6511('0x1dc5'),_0x34e6ea[_0x4f6511('0x76c')]!==_0x4f6511('0x2741')?_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x2010')][_0x4f6511('0x2087')](_0x4f6511('0x2474'))<0x0&&(_0x3e8166['externaldial']['options']+='U(xcally-mixmonitor-context)'):_0x3e8166[_0x4f6511('0x1a4f')]['options']=_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x2010')]['replace'](_0x4f6511('0x2474'),''));if(_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x9d7')]&&_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x9d7')]===_0x4f6511('0xbb4')){}else switch((_0x3e8166[_0x4f6511('0x1a4f')]['app']||_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x9d7')])[_0x4f6511('0x1e68')]()){case _0x4f6511('0x256d'):_0x3e8166[_0x4f6511('0x1a4f')]['appdata']=_0x3e8166[_0x4f6511('0x1a4f')]['name']+'='+_0x3e8166['externaldial'][_0x4f6511('0xa7b')];break;case _0x4f6511('0xbb4'):break;default:_0x3c0f4e[0x0]=['SIP',_0x3e8166[_0x4f6511('0x1a4f')]['trunk'],_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0xa04')]]['join']('/'),_0x3c0f4e[0x1]=_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x1f84')],_0x3c0f4e[0x2]=_0x3e8166['externaldial']['options'],_0x3c0f4e[0x3]=_0x3e8166['externaldial'][_0x4f6511('0xd1')],_0x3e8166[_0x4f6511('0x1a4f')][_0x4f6511('0x1c00')]=_0x3c0f4e['join'](',');}_0x28ddb6(_0x3e8166[_0x4f6511('0x1a4f')]);}function _0x28ddb6(_0x98580){const _0x457398=_0x5c5ba9;_0x3991b7[_0x457398('0x1cf4')](_0x98580);}}const _0x338381=_0x51adbd;_0x37f397[_0x566993('0x17bb')]=['$mdDialog','$q','toasty',_0x566993('0xa31'),'internalroute',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x37f397(_0x187d85,_0x347094,_0x419286,_0x29a3c8,_0x47088b,_0x54e67e,_0x29d118,_0x5379fb){const _0x2088a0=_0x566993,_0x3baef9=this;_0x3baef9[_0x2088a0('0x155f')]=_0x29d118[_0x2088a0('0x14d4')](),_0x3baef9[_0x2088a0('0x1d4a')]=[],_0x3baef9[_0x2088a0('0x20d6')]=_0x2088a0('0xcee')+(_0x29a3c8[_0x2088a0('0x9d7')]||_0x29a3c8['app'])[_0x2088a0('0x1164')](),_0x3baef9[_0x2088a0('0x2016')]=angular[_0x2088a0('0x2e3')](_0x29a3c8),_0x3baef9[_0x2088a0('0x1dc1')]=_0x5379fb,_0x3baef9[_0x2088a0('0xb0')]={};if(_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1c00')])switch(_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x9d7')]?_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x9d7')][_0x2088a0('0x1e68')]():_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x17e')][_0x2088a0('0x1e68')]()){case _0x2088a0('0xbb4'):break;case _0x2088a0('0x1601'):{const _0x387271=_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1c00')][_0x2088a0('0x43a')](',');_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x237a')]=_0x387271[0x0],_0x3baef9['goto'][_0x2088a0('0x604')]=_0x387271[0x1],_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1a7')]=_0x387271['slice'](0x2,_0x387271['length'])['join'](',');}break;case _0x2088a0('0x1680'):{const _0xa91539=_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1c00')][_0x2088a0('0x43a')](',');_0x3baef9[_0x2088a0('0x2016')]['accesskeyid']=_0xa91539[0x0],_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1d93')]=_0xa91539[0x1],_0x3baef9[_0x2088a0('0x2016')]['lexregion']=_0xa91539[0x2],_0x3baef9[_0x2088a0('0x2016')]['botname']=_0xa91539[0x3],_0x3baef9[_0x2088a0('0x2016')]['welcomemessage']=_0xa91539[_0x2088a0('0x2456')](0x4,_0xa91539['length'])[_0x2088a0('0x2259')](',');}break;case _0x2088a0('0x23fe'):{const _0x1e7917=_0x3baef9['goto'][_0x2088a0('0x1c00')][_0x2088a0('0x43a')](',');_0x3baef9['goto'][_0x2088a0('0x611')]=isNaN(_0x1e7917[0x0])?_0x1e7917[0x0]:parseInt(_0x1e7917[0x0],0xa),_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x86e')]=_0x1e7917[_0x2088a0('0x2456')](0x1,_0x1e7917[_0x2088a0('0x543')])[_0x2088a0('0x2259')](',');}break;case _0x2088a0('0x67f'):_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x86e')]=_0x3baef9[_0x2088a0('0x2016')]['appdata'];break;case _0x2088a0('0x256d'):_0x3baef9['goto'][_0x2088a0('0x10ad')]=_0x3baef9['goto'][_0x2088a0('0x1c00')][_0x2088a0('0x43a')]('=')[0x0],_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0xa7b')]=_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1c00')][_0x2088a0('0x43a')]('=')[0x1];break;case _0x2088a0('0x2426'):_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x220b')]=_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1c00')];break;default:{const _0x4a1df3=_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1c00')][_0x2088a0('0x43a')](',');_0x3baef9[_0x2088a0('0x2016')]['context']=_0x3c8d8a()[_0x2088a0('0x1a56')](_0x4a1df3[0x0])?_0x4a1df3[0x0]:isNaN(_0x4a1df3[0x0])?_0x4a1df3[0x0]:parseInt(_0x4a1df3[0x0],0xa),_0x3baef9['goto'][_0x2088a0('0x22ce')]=_0x3c8d8a()[_0x2088a0('0x1a56')](_0x4a1df3[0x1])?_0x4a1df3[0x1]:isNaN(_0x4a1df3[0x1])?_0x4a1df3[0x1]:parseInt(_0x4a1df3[0x1],0xa),_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0xb3')]=_0x3c8d8a()[_0x2088a0('0x1a56')](_0x4a1df3[0x2])?_0x4a1df3[0x2]:isNaN(_0x4a1df3[0x2])?_0x4a1df3[0x2]:parseInt(_0x4a1df3[0x2],0xa);}break;}else{}_0x3baef9[_0x2088a0('0x2016')]['type']&&_0x3baef9[_0x2088a0('0x2016')]['type'][_0x2088a0('0x1e68')]()==='outbound'&&_0x3baef9['goto'][_0x2088a0('0x9d7')][_0x2088a0('0x1e68')]()===_0x2088a0('0x1edc')&&(_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x23f7')]=_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0xa04')]?_0x3baef9[_0x2088a0('0x2016')]['phone'][_0x2088a0('0x43a')]('$')[0x0]:undefined,_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0x1961')]=_0x3baef9[_0x2088a0('0x2016')]['callerID']?_0x2088a0('0x20a8')+_0x3baef9[_0x2088a0('0x2016')][_0x2088a0('0xe95')]:undefined);_0x3baef9[_0x2088a0('0x926')]=_0x4aacf3,_0x3baef9[_0x2088a0('0x18e2')]=_0x51bfe1,_0x29d118[_0x2088a0('0x1b4e')]('admin')?_0x54e67e[_0x2088a0('0xf01')]['get']({'fields':_0x2088a0('0xd52'),'sort':_0x2088a0('0x10ad'),'nolimit':_0x2088a0('0x799')})[_0x2088a0('0x1964')][_0x2088a0('0x173b')](function(_0x2b8dd2){const _0x491faf=_0x2088a0;_0x3baef9[_0x491faf('0x22a9')]=_0x2b8dd2[_0x491faf('0x6aa')]||[];})['catch'](function(_0x1530d4){const _0x5ee2b4=_0x2088a0;_0x419286['error']({'title':_0x1530d4['status']?_0x5ee2b4('0x137')+_0x1530d4['status']+_0x5ee2b4('0x160c')+_0x1530d4['statusText']:'SYSTEM:GET_CONTEXTS','msg':_0x1530d4['data']?JSON[_0x5ee2b4('0x100b')](_0x1530d4[_0x5ee2b4('0x1e07')]):_0x1530d4[_0x5ee2b4('0x1b75')]()});}):_0x54e67e[_0x2088a0('0xf01')][_0x2088a0('0x1d97')]({'fields':_0x2088a0('0xd52'),'sort':_0x2088a0('0x10ad'),'nolimit':'true'})['$promise']['then'](function(_0x80e1d5){_0x3baef9['contexts']=_0x80e1d5['rows']||[];})['then'](function(){const _0x2264df=_0x2088a0;return _0x54e67e[_0x2264df('0x170e')][_0x2264df('0x1d97')]({'userProfileId':_0x3baef9['currentUser'][_0x2264df('0x1946')],'sectionId':0x195})[_0x2264df('0x1964')];})[_0x2088a0('0x173b')](function(_0x12351c){const _0x5b1869=_0x2088a0,_0x162d36=_0x12351c&&_0x12351c['rows']?_0x12351c[_0x5b1869('0x6aa')][0x0]:null;if(!_0x162d36)return _0x54e67e[_0x5b1869('0xf01')][_0x5b1869('0x1d97')]({'fields':'id,name','sort':_0x5b1869('0x10ad'),'nolimit':_0x5b1869('0x799'),'defaultEntry':0x1})[_0x5b1869('0x1964')][_0x5b1869('0x173b')](function(_0x5f48fe){_0x3baef9['contexts']=_0x5f48fe['rows']||[];});else{if(!_0x162d36[_0x5b1869('0x273e')])return _0x54e67e['userProfileResource'][_0x5b1869('0x1d97')]({'sectionId':_0x162d36['id']})[_0x5b1869('0x1964')][_0x5b1869('0x173b')](function(_0x15083d){const _0x32e07a=_0x5b1869,_0x1258d2=_0x3c8d8a()[_0x32e07a('0x8a2')](_0x15083d[_0x32e07a('0x6aa')],function(_0x3de2d2){const _0x244248=_0x32e07a;return _0x3c8d8a()[_0x244248('0x18ab')](_0x3baef9[_0x244248('0x22a9')],{'id':_0x3de2d2[_0x244248('0x1ce0')]});});let _0x1566ba=null;_0x3baef9[_0x32e07a('0x2016')]&&(_0x1566ba=_0x3c8d8a()[_0x32e07a('0x18ab')](_0x3baef9[_0x32e07a('0x22a9')],{'name':_0x3baef9[_0x32e07a('0x2016')]['context']}));if(_0x1566ba&&!_0x3c8d8a()[_0x32e07a('0x1ec')](_0x1258d2,['id',_0x1566ba['id']])){const _0x41e838=_0x3c8d8a()[_0x32e07a('0x18ab')](_0x3baef9[_0x32e07a('0x22a9')],{'id':_0x1566ba['id']});_0x41e838['canSelect']=![],_0x1258d2['push'](_0x41e838);}_0x3baef9[_0x32e07a('0x22a9')]=_0x1258d2;});}})[_0x2088a0('0x103c')](function(_0x5fe8bb){const _0x13c75d=_0x2088a0;_0x419286['error']({'title':_0x5fe8bb[_0x13c75d('0x276f')]?_0x13c75d('0x137')+_0x5fe8bb[_0x13c75d('0x276f')]+'\x20-\x20'+_0x5fe8bb[_0x13c75d('0x2696')]:'SYSTEM:GETcontexts','msg':_0x5fe8bb[_0x13c75d('0x1e07')]?JSON[_0x13c75d('0x100b')](_0x5fe8bb['data']):_0x5fe8bb[_0x13c75d('0x1b75')]()});});function _0x4aacf3(){const _0x317cb5=_0x2088a0;_0x3baef9[_0x317cb5('0x1d4a')]=[];const _0x41ab79=[];_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x1810')]&&_0x3baef9[_0x317cb5('0x2016')]['type'][_0x317cb5('0x1e68')]()===_0x317cb5('0xb33')&&_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x9d7')]===_0x317cb5('0x2150')&&(_0x3baef9['goto'][_0x317cb5('0xa04')]=_0x47088b[_0x317cb5('0x1429')]?(_0x3baef9[_0x317cb5('0x2016')]['prefix']||'')+'${EXTEN:'+_0x47088b[_0x317cb5('0x1429')]+'}':(_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x23f7')]||'')+'${EXTEN}',_0x47088b[_0x317cb5('0x76c')]!==_0x317cb5('0x2741')?_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x2010')][_0x317cb5('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x2010')]+=_0x317cb5('0x2474')):_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x2010')]=_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x2010')][_0x317cb5('0x166c')](_0x317cb5('0x2474'),''));if(_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x9d7')]&&_0x3baef9[_0x317cb5('0x2016')]['appType']==='custom'){}else switch((_0x3baef9[_0x317cb5('0x2016')]['app']||_0x3baef9['goto'][_0x317cb5('0x9d7')])[_0x317cb5('0x1e68')]()){case _0x317cb5('0x256d'):_0x3baef9['goto']['appdata']=_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x10ad')]+'='+_0x3baef9['goto'][_0x317cb5('0xa7b')];break;case _0x317cb5('0xbb4'):break;default:_0x41ab79[0x0]=_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x2b9')],_0x41ab79[0x1]=_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x22ce')],_0x41ab79[0x2]=_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0xb3')],_0x3baef9[_0x317cb5('0x2016')][_0x317cb5('0x1c00')]=_0x41ab79[_0x317cb5('0x2259')](',');}_0x51bfe1(_0x3baef9['goto']);}function _0x51bfe1(_0x100d32){_0x187d85['hide'](_0x100d32);}}const _0x5e1076=_0x37f397;_0x303b05['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'internalrouteApp',_0x566993('0x1afe'),'api','Auth','crudPermissions'];function _0x303b05(_0x5fb5ab,_0x2c9dac,_0x448c08,_0x2a1025,_0xeb91e4,_0x1415ff,_0x5e69fe,_0x54f551){const _0x49a02a=_0x566993,_0xabd97d=this;_0xabd97d[_0x49a02a('0x155f')]=_0x5e69fe['getCurrentUser'](),_0xabd97d[_0x49a02a('0x1d4a')]=[],_0xabd97d[_0x49a02a('0x20d6')]=_0x49a02a('0xcee')+(_0x2a1025[_0x49a02a('0x9d7')]||_0x2a1025[_0x49a02a('0x17e')])[_0x49a02a('0x1164')](),_0xabd97d[_0x49a02a('0x13cc')]=angular['copy'](_0x2a1025),_0xabd97d[_0x49a02a('0x1dc1')]=_0x54f551,_0xabd97d[_0x49a02a('0xb0')]={};if(_0xabd97d['hangup'][_0x49a02a('0x1c00')])switch(_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x9d7')]?_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x9d7')][_0x49a02a('0x1e68')]():_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x17e')][_0x49a02a('0x1e68')]()){case _0x49a02a('0xbb4'):break;case'dialogflow':{const _0x2bbcce=_0xabd97d[_0x49a02a('0x13cc')]['appdata']['split'](',');_0xabd97d['hangup'][_0x49a02a('0x237a')]=_0x2bbcce[0x0],_0xabd97d['hangup'][_0x49a02a('0x604')]=_0x2bbcce[0x1],_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x1a7')]=_0x2bbcce[_0x49a02a('0x2456')](0x2,_0x2bbcce['length'])[_0x49a02a('0x2259')](',');}break;case'amazonlex':{const _0x4e042e=_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x1c00')]['split'](',');_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x2e0')]=_0x4e042e[0x0],_0xabd97d[_0x49a02a('0x13cc')]['secretaccesskey']=_0x4e042e[0x1],_0xabd97d[_0x49a02a('0x13cc')]['lexregion']=_0x4e042e[0x2],_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x53')]=_0x4e042e[0x3],_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x1a7')]=_0x4e042e[_0x49a02a('0x2456')](0x4,_0x4e042e['length'])[_0x49a02a('0x2259')](',');}break;case _0x49a02a('0x23fe'):{const _0x2f8ac3=_0xabd97d[_0x49a02a('0x13cc')]['appdata']['split'](',');_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x611')]=isNaN(_0x2f8ac3[0x0])?_0x2f8ac3[0x0]:parseInt(_0x2f8ac3[0x0],0xa),_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x86e')]=_0x2f8ac3[_0x49a02a('0x2456')](0x1,_0x2f8ac3['length'])[_0x49a02a('0x2259')](',');}break;case'message':_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x86e')]=_0xabd97d['hangup'][_0x49a02a('0x1c00')];break;case _0x49a02a('0x256d'):_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x10ad')]=_0xabd97d['hangup'][_0x49a02a('0x1c00')]['split']('=')[0x0],_0xabd97d['hangup'][_0x49a02a('0xa7b')]=_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x1c00')][_0x49a02a('0x43a')]('=')[0x1];break;case _0x49a02a('0x2426'):_0xabd97d[_0x49a02a('0x13cc')]['project']=_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x1c00')];break;default:{const _0xd4329a=_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x1c00')][_0x49a02a('0x43a')](',');_0xabd97d[_0x49a02a('0x13cc')]['appdata']=_0x3c8d8a()[_0x49a02a('0x1a56')](_0xd4329a[0x0])?_0xd4329a[0x0]:isNaN(_0xd4329a[0x0])?_0xd4329a[0x0]:parseInt(_0xd4329a[0x0],0xa);}break;}else{}_0xabd97d['hangup'][_0x49a02a('0x1810')]&&_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x1810')][_0x49a02a('0x1e68')]()===_0x49a02a('0xb33')&&_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x9d7')]['toLowerCase']()==='outbounddial'&&(_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x23f7')]=_0xabd97d[_0x49a02a('0x13cc')]['phone']?_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0xa04')][_0x49a02a('0x43a')]('$')[0x0]:undefined,_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0x1961')]=_0xabd97d[_0x49a02a('0x13cc')]['callerID']?_0x49a02a('0x20a8')+_0xabd97d[_0x49a02a('0x13cc')][_0x49a02a('0xe95')]:undefined);_0xabd97d[_0x49a02a('0x926')]=_0xf457af,_0xabd97d['closeDialog']=_0x5accee;function _0xf457af(){const _0x5989cc=_0x49a02a;_0xabd97d[_0x5989cc('0x1d4a')]=[];const _0x4ce439=[];_0xabd97d['hangup']['type']&&_0xabd97d['hangup'][_0x5989cc('0x1810')][_0x5989cc('0x1e68')]()===_0x5989cc('0xb33')&&_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0x9d7')]==='outboundDial'&&(_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0xa04')]=_0xeb91e4['cutdigits']?(_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0x23f7')]||'')+_0x5989cc('0x1957')+_0xeb91e4[_0x5989cc('0x1429')]+'}':(_0xabd97d['hangup']['prefix']||'')+_0x5989cc('0x1dc5'),_0xeb91e4['recordingFormat']!==_0x5989cc('0x2741')?_0xabd97d[_0x5989cc('0x13cc')]['options'][_0x5989cc('0x2087')](_0x5989cc('0x2474'))<0x0&&(_0xabd97d[_0x5989cc('0x13cc')]['options']+='U(xcally-mixmonitor-context)'):_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0x2010')]=_0xabd97d['hangup'][_0x5989cc('0x2010')]['replace'](_0x5989cc('0x2474'),''));if(_0xabd97d['hangup'][_0x5989cc('0x9d7')]&&_0xabd97d['hangup']['appType']===_0x5989cc('0xbb4')){}else switch((_0xabd97d['hangup'][_0x5989cc('0x17e')]||_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0x9d7')])[_0x5989cc('0x1e68')]()){case _0x5989cc('0x256d'):_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0x1c00')]=_0xabd97d['hangup'][_0x5989cc('0x10ad')]+'='+_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0xa7b')];break;case _0x5989cc('0xbb4'):break;default:_0x4ce439[0x0]=_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0x1c00')],_0xabd97d[_0x5989cc('0x13cc')][_0x5989cc('0x1c00')]=_0x4ce439['join'](',');}_0x5accee(_0xabd97d[_0x5989cc('0x13cc')]);}function _0x5accee(_0x18b9eb){_0x5fb5ab['hide'](_0x18b9eb);}}const _0x50fe2c=_0x303b05;_0x26fa5d[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'internalrouteApp',_0x566993('0x1afe'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x26fa5d(_0x552d59,_0x596600,_0x6ff534,_0x518132,_0x28f6e3,_0x261fed,_0x1f48b6,_0x13cd9a){const _0x3952f1=_0x566993,_0x2ecd2a=this;_0x2ecd2a[_0x3952f1('0x155f')]=_0x1f48b6[_0x3952f1('0x14d4')](),_0x2ecd2a[_0x3952f1('0x1d4a')]=[],_0x2ecd2a['title']='VOICE.EDIT_'+(_0x518132[_0x3952f1('0x9d7')]||_0x518132['app'])['toUpperCase'](),_0x2ecd2a[_0x3952f1('0x1382')]=angular[_0x3952f1('0x2e3')](_0x518132),_0x2ecd2a[_0x3952f1('0x1dc1')]=_0x13cd9a,_0x2ecd2a['hasModulePermissions']={};if(_0x2ecd2a[_0x3952f1('0x1382')]['appdata'])switch(_0x2ecd2a[_0x3952f1('0x1382')]['appType']?_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x9d7')][_0x3952f1('0x1e68')]():_0x2ecd2a[_0x3952f1('0x1382')]['app'][_0x3952f1('0x1e68')]()){case'custom':break;case _0x3952f1('0x1601'):{const _0xfe2dec=_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x1c00')][_0x3952f1('0x43a')](',');_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x237a')]=_0xfe2dec[0x0],_0x2ecd2a[_0x3952f1('0x1382')]['language']=_0xfe2dec[0x1],_0x2ecd2a[_0x3952f1('0x1382')]['welcomemessage']=_0xfe2dec[_0x3952f1('0x2456')](0x2,_0xfe2dec[_0x3952f1('0x543')])['join'](',');}break;case _0x3952f1('0x1680'):{const _0x19c083=_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x1c00')][_0x3952f1('0x43a')](',');_0x2ecd2a[_0x3952f1('0x1382')]['accesskeyid']=_0x19c083[0x0],_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x1d93')]=_0x19c083[0x1],_0x2ecd2a[_0x3952f1('0x1382')]['lexregion']=_0x19c083[0x2],_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x53')]=_0x19c083[0x3],_0x2ecd2a[_0x3952f1('0x1382')]['welcomemessage']=_0x19c083[_0x3952f1('0x2456')](0x4,_0x19c083[_0x3952f1('0x543')])[_0x3952f1('0x2259')](',');}break;case _0x3952f1('0x23fe'):{const _0x299ca1=_0x2ecd2a[_0x3952f1('0x1382')]['appdata'][_0x3952f1('0x43a')](',');_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x611')]=isNaN(_0x299ca1[0x0])?_0x299ca1[0x0]:parseInt(_0x299ca1[0x0],0xa),_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x86e')]=_0x299ca1[_0x3952f1('0x2456')](0x1,_0x299ca1[_0x3952f1('0x543')])['join'](',');}break;case _0x3952f1('0x67f'):_0x2ecd2a['internaldial'][_0x3952f1('0x86e')]=_0x2ecd2a[_0x3952f1('0x1382')]['appdata'];break;case _0x3952f1('0x256d'):_0x2ecd2a['internaldial'][_0x3952f1('0x10ad')]=_0x2ecd2a['internaldial']['appdata']['split']('=')[0x0],_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0xa7b')]=_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x1c00')][_0x3952f1('0x43a')]('=')[0x1];break;case _0x3952f1('0x2426'):_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x220b')]=_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x1c00')];break;default:{const _0x4f2a5d=_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x1c00')]['split'](',');_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x166f')]=_0x3c8d8a()[_0x3952f1('0x1a56')](_0x4f2a5d[0x0])?_0x4f2a5d[0x0]:isNaN(_0x4f2a5d[0x0])?_0x4f2a5d[0x0]:parseInt(_0x4f2a5d[0x0],0xa),_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x1f84')]=_0x3c8d8a()['isEmpty'](_0x4f2a5d[0x1])?_0x4f2a5d[0x1]:isNaN(_0x4f2a5d[0x1])?_0x4f2a5d[0x1]:parseInt(_0x4f2a5d[0x1],0xa),_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x2010')]=_0x3c8d8a()[_0x3952f1('0x1a56')](_0x4f2a5d[0x2])?_0x4f2a5d[0x2]:isNaN(_0x4f2a5d[0x2])?_0x4f2a5d[0x2]:parseInt(_0x4f2a5d[0x2],0xa),_0x2ecd2a[_0x3952f1('0x1382')]['url']=_0x3c8d8a()[_0x3952f1('0x1a56')](_0x4f2a5d[0x3])?_0x4f2a5d[0x3]:isNaN(_0x4f2a5d[0x3])?_0x4f2a5d[0x3]:parseInt(_0x4f2a5d[0x3],0xa);}break;}else{}_0x2ecd2a[_0x3952f1('0x1382')]['type']&&_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x1810')][_0x3952f1('0x1e68')]()===_0x3952f1('0xb33')&&_0x2ecd2a['internaldial']['appType'][_0x3952f1('0x1e68')]()===_0x3952f1('0x1edc')&&(_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0x23f7')]=_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0xa04')]?_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0xa04')][_0x3952f1('0x43a')]('$')[0x0]:undefined,_0x2ecd2a['internaldial'][_0x3952f1('0x1961')]=_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0xe95')]?'CALLERID(all)='+_0x2ecd2a[_0x3952f1('0x1382')][_0x3952f1('0xe95')]:undefined);_0x2ecd2a[_0x3952f1('0x926')]=_0x3c1b70,_0x2ecd2a[_0x3952f1('0x18e2')]=_0x5ab870;const _0xa819cd=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x3952f1('0x149c')}];let _0x46bc0e=null;_0x1f48b6[_0x3952f1('0x1b4e')](_0x3952f1('0x79b'))?_0x261fed['user']['get']({'fields':_0x3952f1('0x2799'),'sort':'name','nolimit':'true'})[_0x3952f1('0x1964')][_0x3952f1('0x173b')](function(_0x4350ca){const _0x3778ce=_0x3952f1;_0x2ecd2a[_0x3778ce('0x1e14')]=_0x4350ca[_0x3778ce('0x6aa')]||[];})['catch'](function(_0x3f56da){const _0x51ad33=_0x3952f1;_0x6ff534[_0x51ad33('0x15aa')]({'title':_0x3f56da[_0x51ad33('0x276f')]?_0x51ad33('0x137')+_0x3f56da[_0x51ad33('0x276f')]+_0x51ad33('0x160c')+_0x3f56da['statusText']:_0x51ad33('0xbdd'),'msg':_0x3f56da['data']?JSON[_0x51ad33('0x100b')](_0x3f56da[_0x51ad33('0x1e07')]):_0x3f56da[_0x51ad33('0x1b75')]()});}):_0x261fed[_0x3952f1('0x166f')]['get']({'fields':_0x3952f1('0x2799'),'sort':_0x3952f1('0x10ad'),'nolimit':_0x3952f1('0x799')})['$promise'][_0x3952f1('0x173b')](function(_0x2cf74a){const _0x39508d=_0x3952f1;_0x46bc0e=_0x2cf74a[_0x39508d('0x6aa')]||[];})[_0x3952f1('0x173b')](function(){const _0x231a71=_0x3952f1,_0x19c495=[];for(let _0x27085f=0x0;_0x27085f<_0xa819cd[_0x231a71('0x543')];_0x27085f++){_0x19c495[_0x231a71('0x18bb')](_0x261fed[_0x231a71('0x170e')][_0x231a71('0x1d97')]({'userProfileId':_0x2ecd2a[_0x231a71('0x155f')]['userProfileId'],'sectionId':_0xa819cd[_0x27085f]['id']})[_0x231a71('0x1964')]);}return _0x596600[_0x231a71('0x27c8')](_0x19c495);})[_0x3952f1('0x173b')](function(_0x5ad098){const _0x4d5bf3=_0x3952f1,_0x1fa71a=_0x3c8d8a()['map'](_0x5ad098,function(_0x52b5a2){return _0x52b5a2&&_0x52b5a2['rows']?_0x52b5a2['rows'][0x0]:null;}),_0x4bd0a1=[];for(let _0x561fa9=0x0;_0x561fa9<_0xa819cd[_0x4d5bf3('0x543')];_0x561fa9++){const _0x1cc75b=_0x3c8d8a()[_0x4d5bf3('0x18ab')](_0x1fa71a,[_0x4d5bf3('0x15fe'),_0xa819cd[_0x561fa9]['id']]);if(_0x1cc75b){if(!_0x1cc75b[_0x4d5bf3('0x273e')])_0x4bd0a1[_0x4d5bf3('0x18bb')](_0x261fed['userProfileResource']['get']({'sectionId':_0x1cc75b['id']})['$promise']);else{const _0x3806dc=[];_0x46bc0e['forEach'](function(_0x1bfaba){const _0x4489fb=_0x4d5bf3;_0x1bfaba[_0x4489fb('0x14a')]===_0xa819cd[_0x561fa9][_0x4489fb('0x14a')]&&_0x3806dc[_0x4489fb('0x18bb')](_0x1bfaba);}),_0x4bd0a1[_0x4d5bf3('0x18bb')]({'rows':_0x3806dc,'count':_0x3806dc['length']});}}}return _0x596600[_0x4d5bf3('0x27c8')](_0x4bd0a1);})[_0x3952f1('0x173b')](function(_0x5608e1){const _0x5c5da7=_0x3952f1,_0x4da27c=[];let _0x5dcdcc=null;_0x2ecd2a[_0x5c5da7('0x1382')]&&(_0x5dcdcc=_0x3c8d8a()[_0x5c5da7('0x18ab')](_0x46bc0e,{'name':_0x2ecd2a[_0x5c5da7('0x1382')][_0x5c5da7('0x166f')]}));for(let _0x4ae38c=0x0;_0x4ae38c<_0x5608e1['length'];_0x4ae38c++){const _0xff6be=_0x5608e1[_0x4ae38c][_0x5c5da7('0x6aa')]||[];_0xff6be[_0x5c5da7('0xa6a')](function(_0x48abcf){const _0x2cc789=_0x5c5da7;_0x4da27c[_0x2cc789('0x18bb')](_0x48abcf);});}_0x5dcdcc&&!_0x3c8d8a()['some'](_0x4da27c,[_0x5c5da7('0x1ce0'),_0x5dcdcc['id']])&&_0x46bc0e[_0x5c5da7('0xa6a')](function(_0xbc7ddf){const _0x6515c9=_0x5c5da7;_0xbc7ddf['id']===_0x5dcdcc['id']&&(_0xbc7ddf[_0x6515c9('0x268e')]=![],_0x4da27c[_0x6515c9('0x18bb')](_0xbc7ddf));}),_0x2ecd2a[_0x5c5da7('0x1e14')]=_0x4da27c;})['catch'](function(_0x154aa6){const _0x4d1cae=_0x3952f1;_0x6ff534[_0x4d1cae('0x15aa')]({'title':_0x154aa6[_0x4d1cae('0x276f')]?_0x4d1cae('0x137')+_0x154aa6['status']+_0x4d1cae('0x160c')+_0x154aa6[_0x4d1cae('0x2696')]:_0x4d1cae('0x1543'),'msg':_0x154aa6[_0x4d1cae('0x1e07')]?JSON[_0x4d1cae('0x100b')](_0x154aa6[_0x4d1cae('0x1e07')]):_0x154aa6[_0x4d1cae('0x1b75')]()});});function _0x3c1b70(){const _0x20f0b4=_0x3952f1;_0x2ecd2a[_0x20f0b4('0x1d4a')]=[];const _0x2e45eb=[];_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x1810')]&&_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x1810')]['toLowerCase']()===_0x20f0b4('0xb33')&&_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x9d7')]===_0x20f0b4('0x2150')&&(_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0xa04')]=_0x28f6e3[_0x20f0b4('0x1429')]?(_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x23f7')]||'')+_0x20f0b4('0x1957')+_0x28f6e3[_0x20f0b4('0x1429')]+'}':(_0x2ecd2a['internaldial'][_0x20f0b4('0x23f7')]||'')+_0x20f0b4('0x1dc5'),_0x28f6e3[_0x20f0b4('0x76c')]!==_0x20f0b4('0x2741')?_0x2ecd2a[_0x20f0b4('0x1382')]['options'][_0x20f0b4('0x2087')](_0x20f0b4('0x2474'))<0x0&&(_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x2010')]+=_0x20f0b4('0x2474')):_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x2010')]=_0x2ecd2a[_0x20f0b4('0x1382')]['options'][_0x20f0b4('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x2ecd2a['internaldial'][_0x20f0b4('0x9d7')]&&_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x9d7')]==='custom'){}else switch((_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x17e')]||_0x2ecd2a[_0x20f0b4('0x1382')]['appType'])['toLowerCase']()){case _0x20f0b4('0x256d'):_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x1c00')]=_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x10ad')]+'='+_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0xa7b')];break;case'custom':break;default:_0x2e45eb[0x0]=_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x166f')],_0x2e45eb[0x1]=_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x1f84')],_0x2e45eb[0x2]=_0x2ecd2a[_0x20f0b4('0x1382')][_0x20f0b4('0x2010')],_0x2e45eb[0x3]=_0x2ecd2a['internaldial'][_0x20f0b4('0xd1')],_0x2ecd2a['internaldial']['appdata']=_0x2e45eb[_0x20f0b4('0x2259')](',');}_0x5ab870(_0x2ecd2a[_0x20f0b4('0x1382')]);}function _0x5ab870(_0x43acbd){const _0x55a93d=_0x3952f1;_0x552d59[_0x55a93d('0x1cf4')](_0x43acbd);}}const _0x11d249=_0x26fa5d;_0x3c8ef0[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x1fe5'),_0x566993('0x1276'),_0x566993('0x1975'),'interval','intervals',_0x566993('0x1558'),'api','Auth',_0x566993('0x1dc1')];function _0x3c8ef0(_0x3e8005,_0x3009b6,_0xfd72b8,_0x1399f2,_0x43634e,_0x532b6e,_0x1e6ce2,_0x257f32,_0x237d8c,_0x53c3ab){const _0x5c40e3=_0x566993,_0x2c478c=this;_0x2c478c[_0x5c40e3('0x155f')]=_0x237d8c[_0x5c40e3('0x14d4')](),_0x2c478c['errors']=[],_0x2c478c[_0x5c40e3('0x20d6')]=_0x5c40e3('0x117b'),_0x2c478c[_0x5c40e3('0x55a')]=angular[_0x5c40e3('0x2e3')](_0x43634e),_0x2c478c[_0x5c40e3('0x21c4')]=_0x532b6e,_0x2c478c['newInterval']=![],_0x2c478c[_0x5c40e3('0xf00')]=[_0x5c40e3('0x17b3'),_0x5c40e3('0xbb4'),_0x5c40e3('0x3e3')],_0x2c478c['crudPermissions']=_0x53c3ab,_0x2c478c['daysOfWeek']=_0x1399f2['getDaysOfWeek'](),_0x2c478c['monthNumber']=_0x1399f2['getMonthNumber'](),_0x2c478c['monthName']=_0x1399f2['getMonthName'](),_0x2c478c[_0x5c40e3('0x2742')]=_0x1399f2[_0x5c40e3('0x1c80')]();if(!_0x2c478c[_0x5c40e3('0x55a')])_0x2c478c[_0x5c40e3('0x55a')]={'interval':'*,*,*,*'},_0x2c478c[_0x5c40e3('0x1810')]=_0x5c40e3('0x17b3'),_0x2c478c[_0x5c40e3('0x20d6')]=_0x5c40e3('0xbb5'),_0x2c478c['newInterval']=!![];else{if(_0x2c478c['interval']['interval']!==_0x5c40e3('0x17c5')){_0x2c478c[_0x5c40e3('0x1810')]=_0x5c40e3('0xbb4');const _0x196989=_0x2c478c[_0x5c40e3('0x55a')]['interval'][_0x5c40e3('0x43a')](','),_0x1c8113=_0x196989[0x0],_0x2ccd29=_0x196989[0x1],_0x64a904=_0x196989[0x2],_0x3d4fa8=_0x196989[0x3];if(_0x1c8113!=='*'){const _0x18d6c1=_0x1c8113['split']('-')[0x0],_0x3ee5b5=_0x1c8113['split']('-')[0x1];let _0x9929d4;_0x9929d4=new Date(),_0x9929d4[_0x5c40e3('0xd32')](Number(_0x18d6c1[_0x5c40e3('0x43a')](':')[0x0])),_0x9929d4[_0x5c40e3('0x14f9')](Number(_0x18d6c1[_0x5c40e3('0x43a')](':')[0x1])),_0x2c478c[_0x5c40e3('0x2515')]=_0x9929d4,_0x9929d4=new Date(),_0x9929d4[_0x5c40e3('0xd32')](Number(_0x3ee5b5[_0x5c40e3('0x43a')](':')[0x0])),_0x9929d4[_0x5c40e3('0x14f9')](Number(_0x3ee5b5[_0x5c40e3('0x43a')](':')[0x1])),_0x2c478c[_0x5c40e3('0x437')]=_0x9929d4;}_0x2ccd29!=='*'&&(_0x2c478c[_0x5c40e3('0x37a')]=_0x2ccd29['split']('-')[0x0],_0x2c478c[_0x5c40e3('0x269e')]=_0x2ccd29[_0x5c40e3('0x43a')]('-')[0x1]),_0x64a904!=='*'&&(_0x2c478c[_0x5c40e3('0x6df')]=_0x64a904[_0x5c40e3('0x43a')]('-')[0x0],_0x2c478c[_0x5c40e3('0x185e')]=_0x64a904['split']('-')[0x1]),_0x3d4fa8!=='*'&&(_0x2c478c[_0x5c40e3('0x1f34')]=_0x3d4fa8[_0x5c40e3('0x43a')]('-')[0x0],_0x2c478c[_0x5c40e3('0xf74')]=_0x3d4fa8[_0x5c40e3('0x43a')]('-')[0x1]);}else _0x2c478c[_0x5c40e3('0x1810')]='always';}_0x3e8005[_0x5c40e3('0x197a')]['id']&&!_0x2c478c[_0x5c40e3('0x55a')][_0x5c40e3('0x17c2')]&&(_0x2c478c[_0x5c40e3('0x55a')][_0x5c40e3('0x600')]=_0x3e8005[_0x5c40e3('0x197a')]['id']);_0x2c478c[_0x5c40e3('0x55a')]['IntervalId']&&_0x2c478c['interval'][_0x5c40e3('0x17c2')]&&(_0x2c478c[_0x5c40e3('0x1810')]=_0x5c40e3('0x3e3'));_0x2c478c[_0x5c40e3('0x11fc')]=_0x2b34a1,_0x2c478c[_0x5c40e3('0x1401')]=_0x355fef,_0x2c478c[_0x5c40e3('0x18e2')]=_0x421951;_0x2c478c[_0x5c40e3('0x55a')][_0x5c40e3('0x17c2')]&&(_0x237d8c[_0x5c40e3('0x1b4e')](_0x5c40e3('0x79b'))?_0x257f32[_0x5c40e3('0x55a')][_0x5c40e3('0x1d97')]({'fields':_0x5c40e3('0x2666'),'IntervalId':_0x5c40e3('0x877'),'nolimit':!![]})[_0x5c40e3('0x1964')][_0x5c40e3('0x173b')](function(_0x116a6e){_0x2c478c['intervals']=_0x116a6e['rows']||[];})[_0x5c40e3('0x103c')](function(_0x252781){const _0x1f2a08=_0x5c40e3;_0x1e6ce2[_0x1f2a08('0x15aa')]({'title':_0x252781[_0x1f2a08('0x276f')]?'API:'+_0x252781[_0x1f2a08('0x276f')]+_0x1f2a08('0x160c')+_0x252781[_0x1f2a08('0x2696')]:'SYSTEM:GET_INTERVALS','msg':_0x252781[_0x1f2a08('0x1e07')]?JSON['stringify'](_0x252781[_0x1f2a08('0x1e07')]):_0x252781['toString']()});}):_0x257f32[_0x5c40e3('0x55a')][_0x5c40e3('0x1d97')]({'fields':_0x5c40e3('0x2666'),'IntervalId':'null','nolimit':!![]})[_0x5c40e3('0x1964')][_0x5c40e3('0x173b')](function(_0x12c103){const _0x306859=_0x5c40e3;_0x2c478c[_0x306859('0x21c4')]=_0x12c103[_0x306859('0x6aa')]||[];})['then'](function(){const _0x916dd6=_0x5c40e3;return _0x257f32[_0x916dd6('0x170e')][_0x916dd6('0x1d97')]({'userProfileId':_0x2c478c['currentUser'][_0x916dd6('0x1946')],'sectionId':0x3ec})[_0x916dd6('0x1964')];})[_0x5c40e3('0x173b')](function(_0x2a0f8a){const _0x31c923=_0x5c40e3,_0x5fd5f6=_0x2a0f8a&&_0x2a0f8a[_0x31c923('0x6aa')]?_0x2a0f8a['rows'][0x0]:null;if(!_0x5fd5f6)_0x2c478c[_0x31c923('0x21c4')]=[];else{if(!_0x5fd5f6['autoAssociation'])return _0x257f32['userProfileResource'][_0x31c923('0x1d97')]({'sectionId':_0x5fd5f6['id']})[_0x31c923('0x1964')]['then'](function(_0x5cea0d){const _0x533995=_0x31c923,_0x40747a=_0x5cea0d&&_0x5cea0d['rows']?_0x5cea0d[_0x533995('0x6aa')]:[],_0x492627=[];let _0x4edc88=null;_0x2c478c['interval']&&(_0x4edc88=_0x3c8d8a()[_0x533995('0x18ab')](_0x2c478c['intervals'],{'name':_0x2c478c['interval'][_0x533995('0x600')]})),_0x4edc88&&!_0x3c8d8a()[_0x533995('0x1ec')](_0x40747a,[_0x533995('0x1ce0'),_0x4edc88['id']])&&_0x2c478c['intervals']['forEach'](function(_0x970ff5){const _0x286b7d=_0x533995;_0x970ff5['id']===_0x4edc88['id']&&(_0x970ff5[_0x286b7d('0x268e')]=![],_0x492627[_0x286b7d('0x18bb')](_0x970ff5));}),_0x2c478c[_0x533995('0x21c4')]=_0x492627;});}})[_0x5c40e3('0x103c')](function(_0x2259e8){const _0x3549b1=_0x5c40e3;_0x1e6ce2[_0x3549b1('0x15aa')]({'title':_0x2259e8[_0x3549b1('0x276f')]?_0x3549b1('0x137')+_0x2259e8[_0x3549b1('0x276f')]+_0x3549b1('0x160c')+_0x2259e8[_0x3549b1('0x2696')]:_0x3549b1('0x1daf'),'msg':_0x2259e8[_0x3549b1('0x1e07')]?JSON[_0x3549b1('0x100b')](_0x2259e8[_0x3549b1('0x1e07')]):_0x2259e8[_0x3549b1('0x1b75')]()});}));function _0xa82a76(){const _0x162d56=_0x5c40e3;switch(_0x2c478c[_0x162d56('0x1810')]){case _0x162d56('0x17b3'):case'list':return _0x162d56('0x17c5');case _0x162d56('0xbb4'):{const _0x52572e=[];if(_0x2c478c['timeRangeFrom']!=='*'&&_0x2c478c[_0x162d56('0x2515')]&&_0x2c478c[_0x162d56('0x437')]){const _0x2adcac=(_0x2c478c[_0x162d56('0x2515')]['getHours']()<0xa?'0':'')+_0x2c478c[_0x162d56('0x2515')][_0x162d56('0x1a28')]()+':'+((_0x2c478c[_0x162d56('0x2515')][_0x162d56('0x1d2a')]()<0xa?'0':'')+_0x2c478c[_0x162d56('0x2515')][_0x162d56('0x1d2a')]()),_0x5af249=(_0x2c478c[_0x162d56('0x437')][_0x162d56('0x1a28')]()<0xa?'0':'')+_0x2c478c[_0x162d56('0x437')][_0x162d56('0x1a28')]()+':'+((_0x2c478c[_0x162d56('0x437')]['getMinutes']()<0xa?'0':'')+_0x2c478c[_0x162d56('0x437')][_0x162d56('0x1d2a')]());_0x52572e[_0x162d56('0x18bb')](_0x2adcac+'-'+_0x5af249);}else _0x52572e[_0x162d56('0x18bb')]('*');return _0x2c478c[_0x162d56('0x37a')]?_0x2c478c[_0x162d56('0x269e')]?_0x52572e[_0x162d56('0x18bb')](_0x2c478c[_0x162d56('0x37a')]+'-'+_0x2c478c[_0x162d56('0x269e')]):_0x52572e[_0x162d56('0x18bb')](_0x2c478c['dayOfWeekFrom']):_0x52572e['push']('*'),_0x2c478c[_0x162d56('0x6df')]?_0x2c478c['monthDayTo']?_0x52572e[_0x162d56('0x18bb')](_0x2c478c[_0x162d56('0x6df')]+'-'+_0x2c478c[_0x162d56('0x185e')]):_0x52572e['push'](_0x2c478c[_0x162d56('0x6df')]):_0x52572e[_0x162d56('0x18bb')]('*'),_0x2c478c[_0x162d56('0x1f34')]?_0x2c478c['monthTo']?_0x52572e[_0x162d56('0x18bb')](_0x2c478c[_0x162d56('0x1f34')]+'-'+_0x2c478c[_0x162d56('0xf74')]):_0x52572e[_0x162d56('0x18bb')](_0x2c478c['monthFrom']):_0x52572e[_0x162d56('0x18bb')]('*'),_0x52572e[_0x162d56('0x2259')]();}}}function _0x2b34a1(){const _0xa6acb1=_0x5c40e3;_0x2c478c[_0xa6acb1('0x1d4a')]=[],_0x2c478c[_0xa6acb1('0x55a')][_0xa6acb1('0x55a')]=_0xa82a76(),_0x257f32[_0xa6acb1('0x55a')][_0xa6acb1('0x1195')](_0x2c478c['interval'])['$promise'][_0xa6acb1('0x173b')](function(_0x490ba8){const _0x3c3558=_0xa6acb1;_0x2c478c[_0x3c3558('0x21c4')]['push'](_0x490ba8),_0x1e6ce2[_0x3c3558('0xdfe')]({'title':'Interval\x20properly\x20created','msg':_0x2c478c[_0x3c3558('0x55a')][_0x3c3558('0x10ad')]?_0x2c478c[_0x3c3558('0x55a')][_0x3c3558('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x421951();})[_0xa6acb1('0x103c')](function(_0x52d882){const _0x38d1ad=_0xa6acb1;console[_0x38d1ad('0x15aa')](_0x52d882),_0x2c478c[_0x38d1ad('0x1d4a')]=_0x52d882[_0x38d1ad('0x1e07')][_0x38d1ad('0x1d4a')]||[{'message':_0x52d882[_0x38d1ad('0x1b75')](),'type':_0x38d1ad('0xbde')}];});}function _0x355fef(){const _0x1fce57=_0x5c40e3;_0x2c478c[_0x1fce57('0x1d4a')]=[],_0x2c478c[_0x1fce57('0x55a')][_0x1fce57('0x55a')]=_0xa82a76(),_0x2c478c[_0x1fce57('0x55a')][_0x1fce57('0x17c2')]?(_0x2c478c['type']!==_0x1fce57('0x3e3')&&(_0x2c478c[_0x1fce57('0x55a')]['IntervalId']=null),_0x421951(_0x2c478c[_0x1fce57('0x55a')])):_0x257f32[_0x1fce57('0x55a')][_0x1fce57('0x1842')]({'id':_0x2c478c[_0x1fce57('0x55a')]['id']},_0x2c478c[_0x1fce57('0x55a')])[_0x1fce57('0x1964')][_0x1fce57('0x173b')](function(_0x2b7dac){const _0xc8f5f1=_0x1fce57,_0x99dbb2=_0x3c8d8a()[_0xc8f5f1('0x18ab')](_0x2c478c[_0xc8f5f1('0x21c4')],{'id':_0x2b7dac['id']});_0x99dbb2&&_0x3c8d8a()[_0xc8f5f1('0x9ef')](_0x99dbb2,_0x2b7dac),_0x1e6ce2[_0xc8f5f1('0xdfe')]({'title':'Interval\x20properly\x20saved!','msg':_0xc8f5f1('0x227f')}),_0x421951();})[_0x1fce57('0x103c')](function(_0x19864b){const _0x1a2bd3=_0x1fce57;console['error'](_0x19864b),_0x2c478c[_0x1a2bd3('0x1d4a')]=_0x19864b['data'][_0x1a2bd3('0x1d4a')]||[{'message':_0x19864b[_0x1a2bd3('0x1b75')](),'type':_0x1a2bd3('0xe20')}];});}function _0x421951(_0xa31155){const _0x194a11=_0x5c40e3;_0x3009b6[_0x194a11('0x1cf4')](_0xa31155);}}const _0x50caef=_0x3c8ef0;_0x3afb44['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xa31'),_0x566993('0x1afe'),'api',_0x566993('0x1600'),'crudPermissions'];function _0x3afb44(_0x172fc2,_0x3a9c5b,_0x15a9e2,_0x132efe,_0x512f70,_0x19aa57,_0x186b24,_0x3d6084){const _0x802f29=_0x566993,_0x3a9b7f=this;_0x3a9b7f[_0x802f29('0x155f')]=_0x186b24[_0x802f29('0x14d4')](),_0x3a9b7f[_0x802f29('0x1d4a')]=[],_0x3a9b7f[_0x802f29('0x20d6')]=_0x802f29('0xcee')+(_0x132efe[_0x802f29('0x9d7')]||_0x132efe[_0x802f29('0x17e')])[_0x802f29('0x1164')](),_0x3a9b7f['playback']=angular['copy'](_0x132efe),_0x3a9b7f['crudPermissions']=_0x3d6084,_0x3a9b7f[_0x802f29('0xb0')]={};if(_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1c00')])switch(_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x9d7')]?_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x9d7')]['toLowerCase']():_0x3a9b7f[_0x802f29('0x119d')]['app'][_0x802f29('0x1e68')]()){case _0x802f29('0xbb4'):break;case _0x802f29('0x1601'):{const _0x436727=_0x3a9b7f[_0x802f29('0x119d')]['appdata'][_0x802f29('0x43a')](',');_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x237a')]=_0x436727[0x0],_0x3a9b7f[_0x802f29('0x119d')]['language']=_0x436727[0x1],_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1a7')]=_0x436727[_0x802f29('0x2456')](0x2,_0x436727[_0x802f29('0x543')])[_0x802f29('0x2259')](',');}break;case _0x802f29('0x1680'):{const _0x438200=_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1c00')][_0x802f29('0x43a')](',');_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x2e0')]=_0x438200[0x0],_0x3a9b7f['playback'][_0x802f29('0x1d93')]=_0x438200[0x1],_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x10fc')]=_0x438200[0x2],_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x53')]=_0x438200[0x3],_0x3a9b7f['playback'][_0x802f29('0x1a7')]=_0x438200[_0x802f29('0x2456')](0x4,_0x438200[_0x802f29('0x543')])[_0x802f29('0x2259')](',');}break;case _0x802f29('0x23fe'):{const _0x574d07=_0x3a9b7f[_0x802f29('0x119d')]['appdata'][_0x802f29('0x43a')](',');_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x611')]=isNaN(_0x574d07[0x0])?_0x574d07[0x0]:parseInt(_0x574d07[0x0],0xa),_0x3a9b7f[_0x802f29('0x119d')]['text']=_0x574d07[_0x802f29('0x2456')](0x1,_0x574d07[_0x802f29('0x543')])[_0x802f29('0x2259')](',');}break;case _0x802f29('0x67f'):_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x86e')]=_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1c00')];break;case _0x802f29('0x256d'):_0x3a9b7f[_0x802f29('0x119d')]['name']=_0x3a9b7f[_0x802f29('0x119d')]['appdata'][_0x802f29('0x43a')]('=')[0x0],_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0xa7b')]=_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1c00')][_0x802f29('0x43a')]('=')[0x1];break;case _0x802f29('0x2426'):_0x3a9b7f['playback'][_0x802f29('0x220b')]=_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1c00')];break;default:{const _0x3120a8=_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1c00')][_0x802f29('0x43a')](',');_0x3a9b7f['playback'][_0x802f29('0x1c00')]=_0x3c8d8a()[_0x802f29('0x1a56')](_0x3120a8[0x0])?_0x3120a8[0x0]:isNaN(_0x3120a8[0x0])?_0x3120a8[0x0]:parseInt(_0x3120a8[0x0],0xa),_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x2010')]=_0x3c8d8a()[_0x802f29('0x1a56')](_0x3120a8[0x1])?_0x3120a8[0x1]:isNaN(_0x3120a8[0x1])?_0x3120a8[0x1]:parseInt(_0x3120a8[0x1],0xa);}break;}else{}_0x3a9b7f[_0x802f29('0x119d')]['type']&&_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1810')][_0x802f29('0x1e68')]()===_0x802f29('0xb33')&&_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x9d7')][_0x802f29('0x1e68')]()==='outbounddial'&&(_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x23f7')]=_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0xa04')]?_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0xa04')][_0x802f29('0x43a')]('$')[0x0]:undefined,_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0x1961')]=_0x3a9b7f[_0x802f29('0x119d')][_0x802f29('0xe95')]?_0x802f29('0x20a8')+_0x3a9b7f['playback'][_0x802f29('0xe95')]:undefined);_0x3a9b7f['saveInternalRouteApp']=_0x2489cd,_0x3a9b7f[_0x802f29('0x18e2')]=_0x2d1575,_0x186b24[_0x802f29('0x1b4e')](_0x802f29('0x79b'))?_0x19aa57['sound']['get']({'fields':_0x802f29('0xda1'),'sort':_0x802f29('0x10ad'),'nolimit':_0x802f29('0x799')})[_0x802f29('0x1964')][_0x802f29('0x173b')](function(_0x382614){const _0x5df52a=_0x802f29;_0x3a9b7f[_0x5df52a('0x1230')]=_0x382614['rows']||[];})[_0x802f29('0x103c')](function(_0x4a02af){const _0xa23388=_0x802f29;_0x15a9e2[_0xa23388('0x15aa')]({'title':_0x4a02af[_0xa23388('0x276f')]?_0xa23388('0x137')+_0x4a02af[_0xa23388('0x276f')]+_0xa23388('0x160c')+_0x4a02af[_0xa23388('0x2696')]:_0xa23388('0xf44'),'msg':_0x4a02af[_0xa23388('0x1e07')]?JSON['stringify'](_0x4a02af[_0xa23388('0x1e07')]):_0x4a02af[_0xa23388('0x1b75')]()});}):_0x19aa57[_0x802f29('0x156f')][_0x802f29('0x1d97')]({'fields':_0x802f29('0xda1'),'sort':'name','nolimit':_0x802f29('0x799')})[_0x802f29('0x1964')][_0x802f29('0x173b')](function(_0x4a123e){const _0x2f85b9=_0x802f29;_0x3a9b7f['sounds']=_0x4a123e[_0x2f85b9('0x6aa')]||[];})['then'](function(){const _0x3e3bc2=_0x802f29;return _0x19aa57['userProfileSection'][_0x3e3bc2('0x1d97')]({'userProfileId':_0x3a9b7f[_0x3e3bc2('0x155f')][_0x3e3bc2('0x1946')],'sectionId':0x3ef})[_0x3e3bc2('0x1964')];})[_0x802f29('0x173b')](function(_0x69258d){const _0x3b7e79=_0x802f29,_0x51e08a=_0x69258d&&_0x69258d[_0x3b7e79('0x6aa')]?_0x69258d['rows'][0x0]:null;if(!_0x51e08a){const _0x16cbd0=[];let _0x3866af=null;_0x3a9b7f['playback']&&(_0x3866af=_0x3c8d8a()['find'](_0x3a9b7f[_0x3b7e79('0x1230')],{'save_name':_0x3a9b7f[_0x3b7e79('0x119d')]['appdata']}));for(let _0x4f2fe4=0x0;_0x4f2fe4<_0x3a9b7f['sounds'][_0x3b7e79('0x543')];_0x4f2fe4++){_0x3866af&&_0x3a9b7f[_0x3b7e79('0x1230')][_0x4f2fe4]['id']===_0x3866af['id']&&(_0x3a9b7f[_0x3b7e79('0x1230')][_0x4f2fe4]['canSelect']=![],_0x16cbd0[_0x3b7e79('0x18bb')](_0x3a9b7f[_0x3b7e79('0x1230')][_0x4f2fe4]));}_0x3a9b7f['sounds']=_0x16cbd0;}else{if(!_0x51e08a[_0x3b7e79('0x273e')])return _0x19aa57[_0x3b7e79('0xda9')][_0x3b7e79('0x1d97')]({'sectionId':_0x51e08a['id']})[_0x3b7e79('0x1964')][_0x3b7e79('0x173b')](function(_0x18d31a){const _0x304e73=_0x3b7e79,_0x17b37c=_0x3c8d8a()[_0x304e73('0x8a2')](_0x18d31a[_0x304e73('0x6aa')],function(_0x41c897){const _0x197b35=_0x304e73;return _0x3c8d8a()[_0x197b35('0x18ab')](_0x3a9b7f['sounds'],{'id':_0x41c897[_0x197b35('0x1ce0')]});});let _0x19c6e4=null;_0x3a9b7f[_0x304e73('0x119d')]&&(_0x19c6e4=_0x3c8d8a()[_0x304e73('0x18ab')](_0x3a9b7f[_0x304e73('0x1230')],{'save_name':_0x3a9b7f[_0x304e73('0x119d')]['appdata']}));if(_0x19c6e4&&!_0x3c8d8a()['some'](_0x17b37c,['id',_0x19c6e4['id']])){const _0xaed2d5=_0x3c8d8a()[_0x304e73('0x18ab')](_0x3a9b7f[_0x304e73('0x1230')],{'id':_0x19c6e4['id']});_0xaed2d5[_0x304e73('0x268e')]=![],_0x17b37c[_0x304e73('0x18bb')](_0xaed2d5);}_0x3a9b7f['sounds']=_0x17b37c;});}})[_0x802f29('0x103c')](function(_0x481eea){const _0x4a1e72=_0x802f29;_0x15a9e2['error']({'title':_0x481eea[_0x4a1e72('0x276f')]?_0x4a1e72('0x137')+_0x481eea[_0x4a1e72('0x276f')]+_0x4a1e72('0x160c')+_0x481eea[_0x4a1e72('0x2696')]:_0x4a1e72('0x56a'),'msg':_0x481eea[_0x4a1e72('0x1e07')]?JSON['stringify'](_0x481eea['data']):_0x481eea[_0x4a1e72('0x1b75')]()});});function _0x2489cd(){const _0x5c6ec1=_0x802f29;_0x3a9b7f[_0x5c6ec1('0x1d4a')]=[];const _0x504914=[];_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0x1810')]&&_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0x1810')]['toLowerCase']()==='outbound'&&_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0x9d7')]===_0x5c6ec1('0x2150')&&(_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0xa04')]=_0x512f70[_0x5c6ec1('0x1429')]?(_0x3a9b7f['playback'][_0x5c6ec1('0x23f7')]||'')+_0x5c6ec1('0x1957')+_0x512f70[_0x5c6ec1('0x1429')]+'}':(_0x3a9b7f['playback']['prefix']||'')+_0x5c6ec1('0x1dc5'),_0x512f70[_0x5c6ec1('0x76c')]!==_0x5c6ec1('0x2741')?_0x3a9b7f['playback'][_0x5c6ec1('0x2010')][_0x5c6ec1('0x2087')](_0x5c6ec1('0x2474'))<0x0&&(_0x3a9b7f['playback']['options']+=_0x5c6ec1('0x2474')):_0x3a9b7f[_0x5c6ec1('0x119d')]['options']=_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0x2010')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0x9d7')]&&_0x3a9b7f[_0x5c6ec1('0x119d')]['appType']===_0x5c6ec1('0xbb4')){}else switch((_0x3a9b7f['playback']['app']||_0x3a9b7f[_0x5c6ec1('0x119d')]['appType'])['toLowerCase']()){case'set':_0x3a9b7f['playback'][_0x5c6ec1('0x1c00')]=_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0x10ad')]+'='+_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0xa7b')];break;case _0x5c6ec1('0xbb4'):break;default:_0x504914[0x0]=_0x3a9b7f['playback'][_0x5c6ec1('0x1c00')],_0x504914[0x1]=_0x3a9b7f['playback'][_0x5c6ec1('0x2010')],_0x3a9b7f[_0x5c6ec1('0x119d')][_0x5c6ec1('0x1c00')]=_0x504914['join'](',');}_0x2d1575(_0x3a9b7f['playback']);}function _0x2d1575(_0x568b2f){const _0x3aceb9=_0x802f29;_0x172fc2[_0x3aceb9('0x1cf4')](_0x568b2f);}}const _0x3f64a0=_0x3afb44;_0xad8bb2['$inject']=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0xa31'),'internalroute',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0xad8bb2(_0x4679c8,_0x567b14,_0xc48279,_0x35890d,_0x490fbe,_0x4407de,_0x5cf553,_0x1df5c1){const _0x5e7350=_0x566993,_0x33057d=this;_0x33057d[_0x5e7350('0x155f')]=_0x5cf553[_0x5e7350('0x14d4')](),_0x33057d[_0x5e7350('0x1d4a')]=[],_0x33057d[_0x5e7350('0x20d6')]=_0x5e7350('0xcee')+(_0x35890d[_0x5e7350('0x9d7')]||_0x35890d[_0x5e7350('0x17e')])['toUpperCase'](),_0x33057d[_0x5e7350('0x172')]=angular['copy'](_0x35890d),_0x33057d[_0x5e7350('0x1dc1')]=_0x1df5c1,_0x33057d[_0x5e7350('0xb0')]={};if(_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1c00')])switch(_0x33057d['queue']['appType']?_0x33057d[_0x5e7350('0x172')]['appType']['toLowerCase']():_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x17e')][_0x5e7350('0x1e68')]()){case _0x5e7350('0xbb4'):break;case _0x5e7350('0x1601'):{const _0x54119a=_0x33057d['queue'][_0x5e7350('0x1c00')][_0x5e7350('0x43a')](',');_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x237a')]=_0x54119a[0x0],_0x33057d[_0x5e7350('0x172')]['language']=_0x54119a[0x1],_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1a7')]=_0x54119a[_0x5e7350('0x2456')](0x2,_0x54119a[_0x5e7350('0x543')])[_0x5e7350('0x2259')](',');}break;case'amazonlex':{const _0x99b7fe=_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1c00')][_0x5e7350('0x43a')](',');_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x2e0')]=_0x99b7fe[0x0],_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1d93')]=_0x99b7fe[0x1],_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x10fc')]=_0x99b7fe[0x2],_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x53')]=_0x99b7fe[0x3],_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1a7')]=_0x99b7fe['slice'](0x4,_0x99b7fe[_0x5e7350('0x543')])[_0x5e7350('0x2259')](',');}break;case'autoreply':{const _0x32fd23=_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1c00')][_0x5e7350('0x43a')](',');_0x33057d['queue'][_0x5e7350('0x611')]=isNaN(_0x32fd23[0x0])?_0x32fd23[0x0]:parseInt(_0x32fd23[0x0],0xa),_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x86e')]=_0x32fd23[_0x5e7350('0x2456')](0x1,_0x32fd23[_0x5e7350('0x543')])[_0x5e7350('0x2259')](',');}break;case _0x5e7350('0x67f'):_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x86e')]=_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1c00')];break;case _0x5e7350('0x256d'):_0x33057d[_0x5e7350('0x172')]['name']=_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1c00')]['split']('=')[0x0],_0x33057d[_0x5e7350('0x172')]['value']=_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1c00')]['split']('=')[0x1];break;case _0x5e7350('0x2426'):_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x220b')]=_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1c00')];break;default:{const _0x42fbfd=_0x33057d['queue'][_0x5e7350('0x1c00')]['split'](',');_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x172')]=_0x3c8d8a()[_0x5e7350('0x1a56')](_0x42fbfd[0x0])?_0x42fbfd[0x0]:isNaN(_0x42fbfd[0x0])?_0x42fbfd[0x0]:parseInt(_0x42fbfd[0x0],0xa),_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x2010')]=_0x3c8d8a()[_0x5e7350('0x1a56')](_0x42fbfd[0x1])?_0x42fbfd[0x1]:isNaN(_0x42fbfd[0x1])?_0x42fbfd[0x1]:parseInt(_0x42fbfd[0x1],0xa),_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x135a')]=_0x3c8d8a()[_0x5e7350('0x1a56')](_0x42fbfd[0x2])?_0x42fbfd[0x2]:isNaN(_0x42fbfd[0x2])?_0x42fbfd[0x2]:parseInt(_0x42fbfd[0x2],0xa),_0x33057d['queue'][_0x5e7350('0x156f')]=_0x3c8d8a()[_0x5e7350('0x1a56')](_0x42fbfd[0x3])?_0x42fbfd[0x3]:isNaN(_0x42fbfd[0x3])?_0x42fbfd[0x3]:parseInt(_0x42fbfd[0x3],0xa),_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1f84')]=_0x3c8d8a()[_0x5e7350('0x1a56')](_0x42fbfd[0x4])?_0x42fbfd[0x4]:isNaN(_0x42fbfd[0x4])?_0x42fbfd[0x4]:parseInt(_0x42fbfd[0x4],0xa),_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x2426')]=_0x3c8d8a()[_0x5e7350('0x1a56')](_0x42fbfd[0x5])?_0x42fbfd[0x5]:isNaN(_0x42fbfd[0x5])?_0x42fbfd[0x5]:parseInt(_0x42fbfd[0x5],0xa),_0x33057d[_0x5e7350('0x172')]['macro']=_0x3c8d8a()['isEmpty'](_0x42fbfd[0x6])?_0x42fbfd[0x6]:isNaN(_0x42fbfd[0x6])?_0x42fbfd[0x6]:parseInt(_0x42fbfd[0x6],0xa),_0x33057d[_0x5e7350('0x172')]['gosub']=_0x3c8d8a()['isEmpty'](_0x42fbfd[0x7])?_0x42fbfd[0x7]:isNaN(_0x42fbfd[0x7])?_0x42fbfd[0x7]:parseInt(_0x42fbfd[0x7],0xa),_0x33057d[_0x5e7350('0x172')]['rule']=_0x3c8d8a()[_0x5e7350('0x1a56')](_0x42fbfd[0x8])?_0x42fbfd[0x8]:isNaN(_0x42fbfd[0x8])?_0x42fbfd[0x8]:parseInt(_0x42fbfd[0x8],0xa),_0x33057d['queue'][_0x5e7350('0xf2c')]=_0x3c8d8a()['isEmpty'](_0x42fbfd[0x9])?_0x42fbfd[0x9]:isNaN(_0x42fbfd[0x9])?_0x42fbfd[0x9]:parseInt(_0x42fbfd[0x9],0xa);}break;}else{}_0x33057d['queue'][_0x5e7350('0x1810')]&&_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1810')][_0x5e7350('0x1e68')]()==='outbound'&&_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x9d7')]['toLowerCase']()==='outbounddial'&&(_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x23f7')]=_0x33057d[_0x5e7350('0x172')][_0x5e7350('0xa04')]?_0x33057d[_0x5e7350('0x172')][_0x5e7350('0xa04')][_0x5e7350('0x43a')]('$')[0x0]:undefined,_0x33057d[_0x5e7350('0x172')][_0x5e7350('0x1961')]=_0x33057d[_0x5e7350('0x172')]['callerID']?_0x5e7350('0x20a8')+_0x33057d[_0x5e7350('0x172')][_0x5e7350('0xe95')]:undefined);_0x33057d[_0x5e7350('0x926')]=_0x3bf89e,_0x33057d[_0x5e7350('0x18e2')]=_0x3b4b40,_0x5cf553[_0x5e7350('0x1b4e')](_0x5e7350('0x79b'))?_0x4407de[_0x5e7350('0x156f')][_0x5e7350('0x1d97')]({'fields':'id,name,save_name','sort':'name','nolimit':_0x5e7350('0x799')})[_0x5e7350('0x1964')][_0x5e7350('0x173b')](function(_0x82c2b3){const _0x3180bc=_0x5e7350;_0x33057d['sounds']=_0x82c2b3[_0x3180bc('0x6aa')]||[];})[_0x5e7350('0x103c')](function(_0xda6061){const _0x4d4c11=_0x5e7350;_0xc48279[_0x4d4c11('0x15aa')]({'title':_0xda6061[_0x4d4c11('0x276f')]?'API:'+_0xda6061[_0x4d4c11('0x276f')]+'\x20-\x20'+_0xda6061[_0x4d4c11('0x2696')]:'SYSTEM:GET_SOUNDS','msg':_0xda6061['data']?JSON[_0x4d4c11('0x100b')](_0xda6061[_0x4d4c11('0x1e07')]):_0xda6061[_0x4d4c11('0x1b75')]()});}):_0x4407de[_0x5e7350('0x156f')][_0x5e7350('0x1d97')]({'fields':_0x5e7350('0xda1'),'sort':_0x5e7350('0x10ad'),'nolimit':_0x5e7350('0x799')})[_0x5e7350('0x1964')][_0x5e7350('0x173b')](function(_0x191c56){const _0x5d8b9c=_0x5e7350;_0x33057d['sounds']=_0x191c56[_0x5d8b9c('0x6aa')]||[];})[_0x5e7350('0x173b')](function(){const _0x113da3=_0x5e7350;return _0x4407de['userProfileSection'][_0x113da3('0x1d97')]({'userProfileId':_0x33057d[_0x113da3('0x155f')]['userProfileId'],'sectionId':0x3ef})['$promise'];})['then'](function(_0x164a46){const _0x3b5977=_0x5e7350,_0x40e88e=_0x164a46&&_0x164a46['rows']?_0x164a46[_0x3b5977('0x6aa')][0x0]:null;if(!_0x40e88e){const _0x2f6b11=[];let _0x317fe7=null;_0x33057d[_0x3b5977('0x172')]&&(_0x317fe7=_0x3c8d8a()[_0x3b5977('0x18ab')](_0x33057d[_0x3b5977('0x1230')],{'save_name':_0x33057d[_0x3b5977('0x172')][_0x3b5977('0x156f')]}));for(let _0x5343b0=0x0;_0x5343b0<_0x33057d[_0x3b5977('0x1230')]['length'];_0x5343b0++){_0x317fe7&&_0x33057d['sounds'][_0x5343b0]['id']===_0x317fe7['id']&&(_0x33057d['sounds'][_0x5343b0][_0x3b5977('0x268e')]=![],_0x2f6b11['push'](_0x33057d['sounds'][_0x5343b0]));}_0x33057d[_0x3b5977('0x1230')]=_0x2f6b11;}else{if(!_0x40e88e[_0x3b5977('0x273e')])return _0x4407de[_0x3b5977('0xda9')][_0x3b5977('0x1d97')]({'sectionId':_0x40e88e['id']})[_0x3b5977('0x1964')]['then'](function(_0xd2b889){const _0x2cf78f=_0x3b5977,_0x3bf6b3=_0x3c8d8a()[_0x2cf78f('0x8a2')](_0xd2b889[_0x2cf78f('0x6aa')],function(_0x43eb4a){const _0xa0f4fd=_0x2cf78f;return _0x3c8d8a()[_0xa0f4fd('0x18ab')](_0x33057d['sounds'],{'id':_0x43eb4a[_0xa0f4fd('0x1ce0')]});});let _0x42366b=null;_0x33057d[_0x2cf78f('0x172')]&&(_0x42366b=_0x3c8d8a()['find'](_0x33057d[_0x2cf78f('0x1230')],{'save_name':_0x33057d[_0x2cf78f('0x172')]['sound']}));if(_0x42366b&&!_0x3c8d8a()[_0x2cf78f('0x1ec')](_0x3bf6b3,['id',_0x42366b['id']])){const _0x2edab0=_0x3c8d8a()['find'](_0x33057d[_0x2cf78f('0x1230')],{'id':_0x42366b['id']});_0x2edab0[_0x2cf78f('0x268e')]=![],_0x3bf6b3[_0x2cf78f('0x18bb')](_0x2edab0);}_0x33057d[_0x2cf78f('0x1230')]=_0x3bf6b3;});}})['catch'](function(_0x2d3831){const _0x5eced8=_0x5e7350;_0xc48279[_0x5eced8('0x15aa')]({'title':_0x2d3831[_0x5eced8('0x276f')]?_0x5eced8('0x137')+_0x2d3831[_0x5eced8('0x276f')]+_0x5eced8('0x160c')+_0x2d3831[_0x5eced8('0x2696')]:_0x5eced8('0x56a'),'msg':_0x2d3831[_0x5eced8('0x1e07')]?JSON[_0x5eced8('0x100b')](_0x2d3831[_0x5eced8('0x1e07')]):_0x2d3831[_0x5eced8('0x1b75')]()});}),_0x5cf553[_0x5e7350('0x1b4e')](_0x5e7350('0x79b'))?_0x4407de['voiceQueue'][_0x5e7350('0x1d97')]({'type':_0x5e7350('0x1755'),'fields':'id,name,type','sort':_0x5e7350('0x10ad'),'nolimit':_0x5e7350('0x799')})['$promise'][_0x5e7350('0x173b')](function(_0x45ab5f){const _0x7f1289=_0x5e7350;_0x33057d[_0x7f1289('0xeae')]=_0x45ab5f[_0x7f1289('0x6aa')]||[];})['catch'](function(_0x566a71){const _0x4900d5=_0x5e7350;_0xc48279[_0x4900d5('0x15aa')]({'title':_0x566a71[_0x4900d5('0x276f')]?_0x4900d5('0x137')+_0x566a71['status']+_0x4900d5('0x160c')+_0x566a71[_0x4900d5('0x2696')]:_0x4900d5('0x1e3c'),'msg':_0x566a71[_0x4900d5('0x1e07')]?JSON[_0x4900d5('0x100b')](_0x566a71[_0x4900d5('0x1e07')]):_0x566a71['toString']()});}):_0x4407de[_0x5e7350('0x1282')][_0x5e7350('0x1d97')]({'type':'inbound','fields':_0x5e7350('0x1c66'),'sort':_0x5e7350('0x10ad'),'nolimit':'true'})[_0x5e7350('0x1964')][_0x5e7350('0x173b')](function(_0x13efac){const _0x1a060d=_0x5e7350;_0x33057d[_0x1a060d('0xeae')]=_0x13efac[_0x1a060d('0x6aa')]||[];})['then'](function(){const _0x40f56a=_0x5e7350;return _0x4407de['userProfileSection'][_0x40f56a('0x1d97')]({'userProfileId':_0x33057d[_0x40f56a('0x155f')][_0x40f56a('0x1946')],'sectionId':0x191})[_0x40f56a('0x1964')];})[_0x5e7350('0x173b')](function(_0x1771a7){const _0x1eba0a=_0x5e7350,_0x46f00a=_0x1771a7&&_0x1771a7['rows']?_0x1771a7[_0x1eba0a('0x6aa')][0x0]:null;if(!_0x46f00a){const _0x50cbdc=[];let _0x29a038=null;_0x33057d[_0x1eba0a('0x172')]&&(_0x29a038=_0x3c8d8a()[_0x1eba0a('0x18ab')](_0x33057d[_0x1eba0a('0xeae')],{'name':_0x33057d[_0x1eba0a('0x172')][_0x1eba0a('0x172')]}));for(let _0x10be07=0x0;_0x10be07<_0x33057d['queues'][_0x1eba0a('0x543')];_0x10be07++){_0x29a038&&_0x33057d['queues'][_0x10be07]['id']===_0x29a038['id']&&(_0x33057d[_0x1eba0a('0xeae')][_0x10be07][_0x1eba0a('0x268e')]=![],_0x50cbdc[_0x1eba0a('0x18bb')](_0x33057d[_0x1eba0a('0xeae')][_0x10be07]));}_0x33057d[_0x1eba0a('0xeae')]=_0x50cbdc;}else{if(!_0x46f00a[_0x1eba0a('0x273e')])return _0x4407de[_0x1eba0a('0xda9')][_0x1eba0a('0x1d97')]({'sectionId':_0x46f00a['id']})[_0x1eba0a('0x1964')]['then'](function(_0x535985){const _0x4e72a5=_0x1eba0a,_0x178b44=_0x3c8d8a()['map'](_0x535985[_0x4e72a5('0x6aa')],function(_0x354bfe){const _0x3a047a=_0x4e72a5;return _0x3c8d8a()[_0x3a047a('0x18ab')](_0x33057d[_0x3a047a('0xeae')],{'id':_0x354bfe[_0x3a047a('0x1ce0')]});});let _0xec4825=null;_0x33057d['queue']&&(_0xec4825=_0x3c8d8a()['find'](_0x33057d[_0x4e72a5('0xeae')],{'name':_0x33057d[_0x4e72a5('0x172')][_0x4e72a5('0x172')]}));if(_0xec4825&&!_0x3c8d8a()['some'](_0x178b44,['id',_0xec4825['id']])){const _0xa89515=_0x3c8d8a()['find'](_0x33057d['queues'],{'id':_0xec4825['id']});_0xa89515[_0x4e72a5('0x268e')]=![],_0x178b44[_0x4e72a5('0x18bb')](_0xa89515);}_0x33057d[_0x4e72a5('0xeae')]=_0x178b44;});}})[_0x5e7350('0x103c')](function(_0x17e4fb){const _0x5b98e0=_0x5e7350;_0xc48279[_0x5b98e0('0x15aa')]({'title':_0x17e4fb[_0x5b98e0('0x276f')]?_0x5b98e0('0x137')+_0x17e4fb[_0x5b98e0('0x276f')]+'\x20-\x20'+_0x17e4fb[_0x5b98e0('0x2696')]:'SYSTEM:GETqueues','msg':_0x17e4fb[_0x5b98e0('0x1e07')]?JSON[_0x5b98e0('0x100b')](_0x17e4fb[_0x5b98e0('0x1e07')]):_0x17e4fb[_0x5b98e0('0x1b75')]()});});function _0x3bf89e(){const _0x25839d=_0x5e7350;_0x33057d[_0x25839d('0x1d4a')]=[];const _0xf22c08=[];_0x33057d[_0x25839d('0x172')][_0x25839d('0x1810')]&&_0x33057d[_0x25839d('0x172')][_0x25839d('0x1810')]['toLowerCase']()==='outbound'&&_0x33057d[_0x25839d('0x172')][_0x25839d('0x9d7')]==='outboundDial'&&(_0x33057d[_0x25839d('0x172')][_0x25839d('0xa04')]=_0x490fbe[_0x25839d('0x1429')]?(_0x33057d[_0x25839d('0x172')][_0x25839d('0x23f7')]||'')+_0x25839d('0x1957')+_0x490fbe[_0x25839d('0x1429')]+'}':(_0x33057d[_0x25839d('0x172')][_0x25839d('0x23f7')]||'')+_0x25839d('0x1dc5'),_0x490fbe[_0x25839d('0x76c')]!==_0x25839d('0x2741')?_0x33057d[_0x25839d('0x172')]['options'][_0x25839d('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x33057d['queue'][_0x25839d('0x2010')]+=_0x25839d('0x2474')):_0x33057d[_0x25839d('0x172')][_0x25839d('0x2010')]=_0x33057d[_0x25839d('0x172')][_0x25839d('0x2010')][_0x25839d('0x166c')](_0x25839d('0x2474'),''));if(_0x33057d[_0x25839d('0x172')][_0x25839d('0x9d7')]&&_0x33057d[_0x25839d('0x172')]['appType']===_0x25839d('0xbb4')){}else switch((_0x33057d[_0x25839d('0x172')][_0x25839d('0x17e')]||_0x33057d[_0x25839d('0x172')][_0x25839d('0x9d7')])[_0x25839d('0x1e68')]()){case _0x25839d('0x256d'):_0x33057d[_0x25839d('0x172')][_0x25839d('0x1c00')]=_0x33057d[_0x25839d('0x172')][_0x25839d('0x10ad')]+'='+_0x33057d['queue'][_0x25839d('0xa7b')];break;case'custom':break;default:_0xf22c08[0x0]=_0x33057d[_0x25839d('0x172')][_0x25839d('0x172')],_0xf22c08[0x1]=_0x33057d[_0x25839d('0x172')]['options'],_0xf22c08[0x2]=_0x33057d[_0x25839d('0x172')][_0x25839d('0x135a')],_0xf22c08[0x3]=_0x33057d[_0x25839d('0x172')]['sound'],_0xf22c08[0x4]=_0x33057d[_0x25839d('0x172')][_0x25839d('0x1f84')],_0xf22c08[0x5]=_0x33057d['queue']['agi'],_0xf22c08[0x6]=_0x33057d[_0x25839d('0x172')][_0x25839d('0x212e')],_0xf22c08[0x7]=_0x33057d[_0x25839d('0x172')][_0x25839d('0x18ef')],_0xf22c08[0x8]=_0x33057d[_0x25839d('0x172')][_0x25839d('0x2136')],_0xf22c08[0x9]=_0x33057d[_0x25839d('0x172')][_0x25839d('0xf2c')],_0x33057d['queue']['appdata']=_0xf22c08[_0x25839d('0x2259')](',');}_0x3b4b40(_0x33057d['queue']);}function _0x3b4b40(_0x135d29){const _0x342d7d=_0x5e7350;_0x4679c8[_0x342d7d('0x1cf4')](_0x135d29);}}const _0x12c946=_0xad8bb2;_0x31a0a1[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xa31'),_0x566993('0x1afe'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x31a0a1(_0x14a281,_0x316136,_0x4a6542,_0x4f839f,_0x2f188b,_0x240920,_0x3cc3f5,_0x128f1b){const _0x16b552=_0x566993,_0x176dbb=this;_0x176dbb[_0x16b552('0x155f')]=_0x3cc3f5[_0x16b552('0x14d4')](),_0x176dbb[_0x16b552('0x1d4a')]=[],_0x176dbb[_0x16b552('0x20d6')]=_0x16b552('0xcee')+(_0x4f839f['appType']||_0x4f839f[_0x16b552('0x17e')])[_0x16b552('0x1164')](),_0x176dbb[_0x16b552('0x1174')]=angular[_0x16b552('0x2e3')](_0x4f839f),_0x176dbb[_0x16b552('0x1dc1')]=_0x128f1b,_0x176dbb['hasModulePermissions']={};if(_0x176dbb[_0x16b552('0x1174')]['appdata'])switch(_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x9d7')]?_0x176dbb['ringgroup'][_0x16b552('0x9d7')]['toLowerCase']():_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x17e')][_0x16b552('0x1e68')]()){case'custom':break;case _0x16b552('0x1601'):{const _0x54ad7e=_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x1c00')][_0x16b552('0x43a')](',');_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x237a')]=_0x54ad7e[0x0],_0x176dbb['ringgroup'][_0x16b552('0x604')]=_0x54ad7e[0x1],_0x176dbb['ringgroup'][_0x16b552('0x1a7')]=_0x54ad7e[_0x16b552('0x2456')](0x2,_0x54ad7e[_0x16b552('0x543')])[_0x16b552('0x2259')](',');}break;case _0x16b552('0x1680'):{const _0x2b8fc4=_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x1c00')][_0x16b552('0x43a')](',');_0x176dbb['ringgroup'][_0x16b552('0x2e0')]=_0x2b8fc4[0x0],_0x176dbb['ringgroup'][_0x16b552('0x1d93')]=_0x2b8fc4[0x1],_0x176dbb[_0x16b552('0x1174')]['lexregion']=_0x2b8fc4[0x2],_0x176dbb[_0x16b552('0x1174')]['botname']=_0x2b8fc4[0x3],_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x1a7')]=_0x2b8fc4[_0x16b552('0x2456')](0x4,_0x2b8fc4[_0x16b552('0x543')])[_0x16b552('0x2259')](',');}break;case _0x16b552('0x23fe'):{const _0x2c5200=_0x176dbb['ringgroup'][_0x16b552('0x1c00')][_0x16b552('0x43a')](',');_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x611')]=isNaN(_0x2c5200[0x0])?_0x2c5200[0x0]:parseInt(_0x2c5200[0x0],0xa),_0x176dbb[_0x16b552('0x1174')]['text']=_0x2c5200['slice'](0x1,_0x2c5200[_0x16b552('0x543')])[_0x16b552('0x2259')](',');}break;case'message':_0x176dbb['ringgroup'][_0x16b552('0x86e')]=_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x1c00')];break;case _0x16b552('0x256d'):_0x176dbb['ringgroup']['name']=_0x176dbb['ringgroup'][_0x16b552('0x1c00')]['split']('=')[0x0],_0x176dbb['ringgroup']['value']=_0x176dbb[_0x16b552('0x1174')]['appdata'][_0x16b552('0x43a')]('=')[0x1];break;case _0x16b552('0x2426'):_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x220b')]=_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x1c00')];break;default:{const _0x244667=_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x1c00')][_0x16b552('0x43a')](',');_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x237c')]=_0x244667[0x0][_0x16b552('0x43a')]('&'),_0x176dbb[_0x16b552('0x1174')]['timeout']=_0x3c8d8a()[_0x16b552('0x1a56')](_0x244667[0x1])?_0x244667[0x1]:isNaN(_0x244667[0x1])?_0x244667[0x1]:parseInt(_0x244667[0x1],0xa),_0x176dbb[_0x16b552('0x1174')]['options']=_0x3c8d8a()[_0x16b552('0x1a56')](_0x244667[0x2])?_0x244667[0x2]:isNaN(_0x244667[0x2])?_0x244667[0x2]:parseInt(_0x244667[0x2],0xa),_0x176dbb['ringgroup']['url']=_0x3c8d8a()[_0x16b552('0x1a56')](_0x244667[0x3])?_0x244667[0x3]:isNaN(_0x244667[0x3])?_0x244667[0x3]:parseInt(_0x244667[0x3],0xa);}break;}else{}_0x176dbb[_0x16b552('0x1174')]['type']&&_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x1810')][_0x16b552('0x1e68')]()===_0x16b552('0xb33')&&_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x9d7')][_0x16b552('0x1e68')]()==='outbounddial'&&(_0x176dbb[_0x16b552('0x1174')][_0x16b552('0x23f7')]=_0x176dbb['ringgroup']['phone']?_0x176dbb[_0x16b552('0x1174')]['phone']['split']('$')[0x0]:undefined,_0x176dbb['ringgroup'][_0x16b552('0x1961')]=_0x176dbb[_0x16b552('0x1174')][_0x16b552('0xe95')]?_0x16b552('0x20a8')+_0x176dbb['ringgroup'][_0x16b552('0xe95')]:undefined);_0x176dbb[_0x16b552('0x926')]=_0x2949f0,_0x176dbb[_0x16b552('0x18e2')]=_0x82cbce;const _0xe8278b=[{'id':0xca,'role':_0x16b552('0x7b0')},{'id':0xcb,'role':_0x16b552('0x149c')}];let _0x1dbfeb=null;_0x3cc3f5[_0x16b552('0x1b4e')]('admin')?_0x240920[_0x16b552('0x166f')]['get']({'fields':_0x16b552('0x2799'),'sort':_0x16b552('0x10ad'),'nolimit':_0x16b552('0x799')})[_0x16b552('0x1964')][_0x16b552('0x173b')](function(_0x239112){const _0x52bbed=_0x16b552;_0x176dbb[_0x52bbed('0x1e14')]=_0x239112[_0x52bbed('0x6aa')]||[];})[_0x16b552('0x103c')](function(_0xb79842){const _0x222f42=_0x16b552;_0x4a6542[_0x222f42('0x15aa')]({'title':_0xb79842[_0x222f42('0x276f')]?'API:'+_0xb79842['status']+'\x20-\x20'+_0xb79842[_0x222f42('0x2696')]:_0x222f42('0xbdd'),'msg':_0xb79842[_0x222f42('0x1e07')]?JSON[_0x222f42('0x100b')](_0xb79842[_0x222f42('0x1e07')]):_0xb79842['toString']()});}):_0x240920['user'][_0x16b552('0x1d97')]({'fields':'id,name,role','sort':_0x16b552('0x10ad'),'nolimit':'true'})[_0x16b552('0x1964')][_0x16b552('0x173b')](function(_0x389737){const _0x5959ad=_0x16b552;_0x1dbfeb=_0x389737[_0x5959ad('0x6aa')]||[];})[_0x16b552('0x173b')](function(){const _0x3cf00c=_0x16b552,_0x1e5bd7=[];for(let _0x47fefc=0x0;_0x47fefc<_0xe8278b[_0x3cf00c('0x543')];_0x47fefc++){_0x1e5bd7[_0x3cf00c('0x18bb')](_0x240920[_0x3cf00c('0x170e')][_0x3cf00c('0x1d97')]({'userProfileId':_0x176dbb[_0x3cf00c('0x155f')][_0x3cf00c('0x1946')],'sectionId':_0xe8278b[_0x47fefc]['id']})[_0x3cf00c('0x1964')]);}return _0x316136[_0x3cf00c('0x27c8')](_0x1e5bd7);})['then'](function(_0x289b09){const _0x50a295=_0x16b552,_0x3e2b80=_0x3c8d8a()[_0x50a295('0x8a2')](_0x289b09,function(_0x36b860){const _0x368908=_0x50a295;return _0x36b860&&_0x36b860[_0x368908('0x6aa')]?_0x36b860[_0x368908('0x6aa')][0x0]:null;}),_0x232ca8=[];for(let _0x5f2d3c=0x0;_0x5f2d3c<_0xe8278b['length'];_0x5f2d3c++){const _0x48e1ed=_0x3c8d8a()[_0x50a295('0x18ab')](_0x3e2b80,['sectionId',_0xe8278b[_0x5f2d3c]['id']]);if(_0x48e1ed){if(!_0x48e1ed[_0x50a295('0x273e')])_0x232ca8[_0x50a295('0x18bb')](_0x240920[_0x50a295('0xda9')][_0x50a295('0x1d97')]({'sectionId':_0x48e1ed['id']})[_0x50a295('0x1964')]);else{const _0x51b7fa=[];_0x1dbfeb[_0x50a295('0xa6a')](function(_0x1f413d){const _0x5dc794=_0x50a295;_0x1f413d[_0x5dc794('0x14a')]===_0xe8278b[_0x5f2d3c][_0x5dc794('0x14a')]&&_0x51b7fa[_0x5dc794('0x18bb')](_0x1f413d);}),_0x232ca8[_0x50a295('0x18bb')]({'rows':_0x51b7fa,'count':_0x51b7fa[_0x50a295('0x543')]});}}}return _0x316136[_0x50a295('0x27c8')](_0x232ca8);})[_0x16b552('0x173b')](function(_0x56ef5e){const _0x5c6aaf=_0x16b552,_0x354016=[];let _0x28dbce=null;_0x176dbb[_0x5c6aaf('0x1174')]&&(_0x28dbce=_0x3c8d8a()[_0x5c6aaf('0x18ab')](_0x1dbfeb,{'name':_0x176dbb[_0x5c6aaf('0x1174')][_0x5c6aaf('0x237c')]}));for(let _0x11c843=0x0;_0x11c843<_0x56ef5e[_0x5c6aaf('0x543')];_0x11c843++){const _0x19603b=_0x56ef5e[_0x11c843]['rows']||[];_0x19603b[_0x5c6aaf('0xa6a')](function(_0x461af2){_0x354016['push'](_0x461af2);});}_0x28dbce&&!_0x3c8d8a()['some'](_0x354016,[_0x5c6aaf('0x1ce0'),_0x28dbce['id']])&&_0x1dbfeb[_0x5c6aaf('0xa6a')](function(_0x32c1e7){const _0x3bd27a=_0x5c6aaf;_0x32c1e7['id']===_0x28dbce['id']&&(_0x32c1e7[_0x3bd27a('0x268e')]=![],_0x354016['push'](_0x32c1e7));}),_0x176dbb[_0x5c6aaf('0x1e14')]=_0x354016;})[_0x16b552('0x103c')](function(_0x5802ac){const _0x51082c=_0x16b552;_0x4a6542[_0x51082c('0x15aa')]({'title':_0x5802ac[_0x51082c('0x276f')]?_0x51082c('0x137')+_0x5802ac['status']+'\x20-\x20'+_0x5802ac[_0x51082c('0x2696')]:'SYSTEM:GETusers','msg':_0x5802ac['data']?JSON[_0x51082c('0x100b')](_0x5802ac['data']):_0x5802ac[_0x51082c('0x1b75')]()});});function _0x2949f0(){const _0x4220c6=_0x16b552;_0x176dbb[_0x4220c6('0x1d4a')]=[];const _0xa7eecd=[];_0x176dbb[_0x4220c6('0x1174')]['type']&&_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x1810')]['toLowerCase']()===_0x4220c6('0xb33')&&_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x9d7')]===_0x4220c6('0x2150')&&(_0x176dbb['ringgroup'][_0x4220c6('0xa04')]=_0x2f188b['cutdigits']?(_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x23f7')]||'')+_0x4220c6('0x1957')+_0x2f188b['cutdigits']+'}':(_0x176dbb['ringgroup']['prefix']||'')+'${EXTEN}',_0x2f188b[_0x4220c6('0x76c')]!=='none'?_0x176dbb['ringgroup'][_0x4220c6('0x2010')][_0x4220c6('0x2087')](_0x4220c6('0x2474'))<0x0&&(_0x176dbb[_0x4220c6('0x1174')]['options']+=_0x4220c6('0x2474')):_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x2010')]=_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x2010')][_0x4220c6('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x9d7')]&&_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x9d7')]==='custom'){}else switch((_0x176dbb[_0x4220c6('0x1174')]['app']||_0x176dbb[_0x4220c6('0x1174')]['appType'])[_0x4220c6('0x1e68')]()){case'set':_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x1c00')]=_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x10ad')]+'='+_0x176dbb['ringgroup'][_0x4220c6('0xa7b')];break;case'custom':break;default:_0xa7eecd[0x0]=_0x176dbb[_0x4220c6('0x1174')]['multipleUsers']['join']('&'),_0xa7eecd[0x1]=_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x1f84')],_0xa7eecd[0x2]=_0x176dbb['ringgroup'][_0x4220c6('0x2010')],_0xa7eecd[0x3]=_0x176dbb['ringgroup'][_0x4220c6('0xd1')],_0x176dbb[_0x4220c6('0x1174')][_0x4220c6('0x1c00')]=_0xa7eecd['join'](',');}_0x82cbce(_0x176dbb[_0x4220c6('0x1174')]);}function _0x82cbce(_0x3056c7){_0x14a281['hide'](_0x3056c7);}}const _0x399468=_0x31a0a1;_0x1446d2[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xa31'),_0x566993('0x1afe'),_0x566993('0xbd4'),'Auth','crudPermissions'];function _0x1446d2(_0x3e80cd,_0x164390,_0x5e6de2,_0xa2bc84,_0x5062f5,_0x3637b9,_0x2bad9c,_0x54f199){const _0x307b7f=_0x566993,_0x3c8624=this;_0x3c8624[_0x307b7f('0x155f')]=_0x2bad9c[_0x307b7f('0x14d4')](),_0x3c8624[_0x307b7f('0x1d4a')]=[],_0x3c8624[_0x307b7f('0x20d6')]=_0x307b7f('0xcee')+(_0xa2bc84[_0x307b7f('0x9d7')]||_0xa2bc84[_0x307b7f('0x17e')])[_0x307b7f('0x1164')](),_0x3c8624[_0x307b7f('0x256d')]=angular[_0x307b7f('0x2e3')](_0xa2bc84),_0x3c8624[_0x307b7f('0x1dc1')]=_0x54f199,_0x3c8624[_0x307b7f('0xb0')]={};if(_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1c00')])switch(_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x9d7')]?_0x3c8624['set'][_0x307b7f('0x9d7')][_0x307b7f('0x1e68')]():_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x17e')][_0x307b7f('0x1e68')]()){case _0x307b7f('0xbb4'):break;case'dialogflow':{const _0x54a36e=_0x3c8624['set'][_0x307b7f('0x1c00')][_0x307b7f('0x43a')](',');_0x3c8624[_0x307b7f('0x256d')]['key']=_0x54a36e[0x0],_0x3c8624['set'][_0x307b7f('0x604')]=_0x54a36e[0x1],_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1a7')]=_0x54a36e[_0x307b7f('0x2456')](0x2,_0x54a36e[_0x307b7f('0x543')])[_0x307b7f('0x2259')](',');}break;case _0x307b7f('0x1680'):{const _0x3ac2bf=_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1c00')][_0x307b7f('0x43a')](',');_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x2e0')]=_0x3ac2bf[0x0],_0x3c8624['set'][_0x307b7f('0x1d93')]=_0x3ac2bf[0x1],_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x10fc')]=_0x3ac2bf[0x2],_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x53')]=_0x3ac2bf[0x3],_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1a7')]=_0x3ac2bf[_0x307b7f('0x2456')](0x4,_0x3ac2bf[_0x307b7f('0x543')])[_0x307b7f('0x2259')](',');}break;case'autoreply':{const _0x40f794=_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1c00')][_0x307b7f('0x43a')](',');_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x611')]=isNaN(_0x40f794[0x0])?_0x40f794[0x0]:parseInt(_0x40f794[0x0],0xa),_0x3c8624['set'][_0x307b7f('0x86e')]=_0x40f794[_0x307b7f('0x2456')](0x1,_0x40f794['length'])[_0x307b7f('0x2259')](',');}break;case _0x307b7f('0x67f'):_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x86e')]=_0x3c8624[_0x307b7f('0x256d')]['appdata'];break;case _0x307b7f('0x256d'):_0x3c8624['set']['name']=_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1c00')]['split']('=')[0x0],_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0xa7b')]=_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1c00')]['split']('=')[0x1];break;case _0x307b7f('0x2426'):_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x220b')]=_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1c00')];break;default:{const _0x4289e5=_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x1c00')]['split']('=');_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x10ad')]=_0x3c8d8a()[_0x307b7f('0x1a56')](_0x4289e5[0x0])?_0x4289e5[0x0]:isNaN(_0x4289e5[0x0])?_0x4289e5[0x0]:parseInt(_0x4289e5[0x0],0xa),_0x3c8624[_0x307b7f('0x256d')]['value']=_0x3c8d8a()['isEmpty'](_0x4289e5[0x1])?_0x4289e5[0x1]:isNaN(_0x4289e5[0x1])?_0x4289e5[0x1]:parseInt(_0x4289e5[0x1],0xa);}break;}else{}_0x3c8624[_0x307b7f('0x256d')]['type']&&_0x3c8624[_0x307b7f('0x256d')]['type'][_0x307b7f('0x1e68')]()==='outbound'&&_0x3c8624['set'][_0x307b7f('0x9d7')][_0x307b7f('0x1e68')]()===_0x307b7f('0x1edc')&&(_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0x23f7')]=_0x3c8624['set'][_0x307b7f('0xa04')]?_0x3c8624[_0x307b7f('0x256d')][_0x307b7f('0xa04')][_0x307b7f('0x43a')]('$')[0x0]:undefined,_0x3c8624['set'][_0x307b7f('0x1961')]=_0x3c8624['set'][_0x307b7f('0xe95')]?_0x307b7f('0x20a8')+_0x3c8624['set']['callerID']:undefined);_0x3c8624['saveInternalRouteApp']=_0x3f2a95,_0x3c8624['closeDialog']=_0x34810f,_0x2bad9c[_0x307b7f('0x1b4e')]('admin')?_0x3637b9['variable']['get']({'fields':_0x307b7f('0xd52'),'sort':'name','nolimit':_0x307b7f('0x799')})['$promise'][_0x307b7f('0x173b')](function(_0x25d07){const _0xcef55b=_0x307b7f;_0x3c8624[_0xcef55b('0x2715')]=_0x25d07[_0xcef55b('0x6aa')]||[];})[_0x307b7f('0x103c')](function(_0x28bcf0){const _0x4f52b8=_0x307b7f;_0x5e6de2[_0x4f52b8('0x15aa')]({'title':_0x28bcf0[_0x4f52b8('0x276f')]?_0x4f52b8('0x137')+_0x28bcf0[_0x4f52b8('0x276f')]+_0x4f52b8('0x160c')+_0x28bcf0[_0x4f52b8('0x2696')]:_0x4f52b8('0x1d22'),'msg':_0x28bcf0['data']?JSON[_0x4f52b8('0x100b')](_0x28bcf0[_0x4f52b8('0x1e07')]):_0x28bcf0[_0x4f52b8('0x1b75')]()});}):_0x3637b9['variable'][_0x307b7f('0x1d97')]({'fields':_0x307b7f('0xd52'),'sort':_0x307b7f('0x10ad'),'nolimit':_0x307b7f('0x799')})[_0x307b7f('0x1964')][_0x307b7f('0x173b')](function(_0x5ee999){const _0x5887a8=_0x307b7f;_0x3c8624['variables']=_0x5ee999[_0x5887a8('0x6aa')]||[];})[_0x307b7f('0x173b')](function(){const _0x689ea0=_0x307b7f;return _0x3637b9[_0x689ea0('0x170e')][_0x689ea0('0x1d97')]({'userProfileId':_0x3c8624[_0x689ea0('0x155f')][_0x689ea0('0x1946')],'sectionId':0x3f4})[_0x689ea0('0x1964')];})['then'](function(_0x33a7bb){const _0x2394aa=_0x307b7f,_0x14f405=_0x33a7bb&&_0x33a7bb['rows']?_0x33a7bb[_0x2394aa('0x6aa')][0x0]:null;if(!_0x14f405){const _0x383ebf=[];let _0xba57cd=null;_0x3c8624[_0x2394aa('0x256d')]&&(_0xba57cd=_0x3c8d8a()[_0x2394aa('0x18ab')](_0x3c8624[_0x2394aa('0x2715')],{'name':_0x3c8624[_0x2394aa('0x256d')][_0x2394aa('0x10ad')]}));for(let _0x2740b8=0x0;_0x2740b8<_0x3c8624['variables'][_0x2394aa('0x543')];_0x2740b8++){_0xba57cd&&_0x3c8624[_0x2394aa('0x2715')][_0x2740b8]['id']===_0xba57cd['id']&&(_0x3c8624[_0x2394aa('0x2715')][_0x2740b8]['canSelect']=![],_0x383ebf[_0x2394aa('0x18bb')](_0x3c8624[_0x2394aa('0x2715')][_0x2740b8]));}_0x3c8624[_0x2394aa('0x2715')]=_0x383ebf;}else{if(!_0x14f405[_0x2394aa('0x273e')])return _0x3637b9[_0x2394aa('0xda9')][_0x2394aa('0x1d97')]({'sectionId':_0x14f405['id']})[_0x2394aa('0x1964')][_0x2394aa('0x173b')](function(_0x5bf85b){const _0x2cf562=_0x2394aa,_0x1aa855=_0x3c8d8a()['map'](_0x5bf85b[_0x2cf562('0x6aa')],function(_0x38c4ff){const _0x1dfcbd=_0x2cf562;return _0x3c8d8a()[_0x1dfcbd('0x18ab')](_0x3c8624['variables'],{'id':_0x38c4ff[_0x1dfcbd('0x1ce0')]});});let _0x2d7a5d=null;_0x3c8624[_0x2cf562('0x256d')]&&(_0x2d7a5d=_0x3c8d8a()[_0x2cf562('0x18ab')](_0x3c8624[_0x2cf562('0x2715')],{'name':_0x3c8624['set'][_0x2cf562('0x10ad')]}));if(_0x2d7a5d&&!_0x3c8d8a()[_0x2cf562('0x1ec')](_0x1aa855,['id',_0x2d7a5d['id']])){const _0x1407cb=_0x3c8d8a()[_0x2cf562('0x18ab')](_0x3c8624[_0x2cf562('0x2715')],{'id':_0x2d7a5d['id']});_0x1407cb[_0x2cf562('0x268e')]=![],_0x1aa855[_0x2cf562('0x18bb')](_0x1407cb);}_0x3c8624[_0x2cf562('0x2715')]=_0x1aa855;});}})['catch'](function(_0x3bd49b){const _0x137ec2=_0x307b7f;_0x5e6de2['error']({'title':_0x3bd49b[_0x137ec2('0x276f')]?_0x137ec2('0x137')+_0x3bd49b[_0x137ec2('0x276f')]+_0x137ec2('0x160c')+_0x3bd49b[_0x137ec2('0x2696')]:'SYSTEM:GETvariables','msg':_0x3bd49b[_0x137ec2('0x1e07')]?JSON[_0x137ec2('0x100b')](_0x3bd49b[_0x137ec2('0x1e07')]):_0x3bd49b['toString']()});});function _0x3f2a95(){const _0x3bf9b0=_0x307b7f;_0x3c8624[_0x3bf9b0('0x1d4a')]=[];const _0x1258fd=[];_0x3c8624['set']['type']&&_0x3c8624[_0x3bf9b0('0x256d')]['type'][_0x3bf9b0('0x1e68')]()==='outbound'&&_0x3c8624['set'][_0x3bf9b0('0x9d7')]==='outboundDial'&&(_0x3c8624[_0x3bf9b0('0x256d')]['phone']=_0x5062f5['cutdigits']?(_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0x23f7')]||'')+_0x3bf9b0('0x1957')+_0x5062f5[_0x3bf9b0('0x1429')]+'}':(_0x3c8624[_0x3bf9b0('0x256d')]['prefix']||'')+'${EXTEN}',_0x5062f5[_0x3bf9b0('0x76c')]!==_0x3bf9b0('0x2741')?_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0x2010')][_0x3bf9b0('0x2087')](_0x3bf9b0('0x2474'))<0x0&&(_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0x2010')]+=_0x3bf9b0('0x2474')):_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0x2010')]=_0x3c8624['set'][_0x3bf9b0('0x2010')][_0x3bf9b0('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0x9d7')]&&_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0x9d7')]===_0x3bf9b0('0xbb4')){}else switch((_0x3c8624[_0x3bf9b0('0x256d')]['app']||_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0x9d7')])['toLowerCase']()){case'set':_0x3c8624['set'][_0x3bf9b0('0x1c00')]=_0x3c8624['set'][_0x3bf9b0('0x10ad')]+'='+_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0xa7b')];break;case'custom':break;default:_0x1258fd[0x0]=_0x3c8624[_0x3bf9b0('0x256d')][_0x3bf9b0('0x10ad')],_0x1258fd[0x1]=_0x3c8624[_0x3bf9b0('0x256d')]['value'],_0x3c8624['set']['appdata']=_0x1258fd[_0x3bf9b0('0x2259')]('=');}_0x34810f(_0x3c8624[_0x3bf9b0('0x256d')]);}function _0x34810f(_0x4d7201){const _0x13e959=_0x307b7f;_0x3e80cd[_0x13e959('0x1cf4')](_0x4d7201);}}const _0x482bce=_0x1446d2;_0x2f7a61[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0xa31'),'internalroute','api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x2f7a61(_0x36a4e2,_0x24cc8f,_0xc26740,_0x3ff537,_0x454524,_0x4485be,_0x679309,_0xc99f06){const _0x32ccdd=_0x566993,_0x43a4fc=this;_0x43a4fc['currentUser']=_0x679309[_0x32ccdd('0x14d4')](),_0x43a4fc[_0x32ccdd('0x1d4a')]=[],_0x43a4fc[_0x32ccdd('0x20d6')]=_0x32ccdd('0xcee')+(_0x3ff537[_0x32ccdd('0x9d7')]||_0x3ff537[_0x32ccdd('0x17e')])[_0x32ccdd('0x1164')](),_0x43a4fc[_0x32ccdd('0x2710')]=angular[_0x32ccdd('0x2e3')](_0x3ff537),_0x43a4fc[_0x32ccdd('0x1dc1')]=_0xc99f06,_0x43a4fc['hasModulePermissions']={};if(_0x43a4fc['voicemail'][_0x32ccdd('0x1c00')])switch(_0x43a4fc['voicemail'][_0x32ccdd('0x9d7')]?_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x9d7')]['toLowerCase']():_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x17e')][_0x32ccdd('0x1e68')]()){case _0x32ccdd('0xbb4'):break;case _0x32ccdd('0x1601'):{const _0x18c341=_0x43a4fc['voicemail'][_0x32ccdd('0x1c00')]['split'](',');_0x43a4fc['voicemail'][_0x32ccdd('0x237a')]=_0x18c341[0x0],_0x43a4fc[_0x32ccdd('0x2710')]['language']=_0x18c341[0x1],_0x43a4fc[_0x32ccdd('0x2710')]['welcomemessage']=_0x18c341[_0x32ccdd('0x2456')](0x2,_0x18c341[_0x32ccdd('0x543')])['join'](',');}break;case _0x32ccdd('0x1680'):{const _0x44cd3e=_0x43a4fc[_0x32ccdd('0x2710')]['appdata'][_0x32ccdd('0x43a')](',');_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x2e0')]=_0x44cd3e[0x0],_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x1d93')]=_0x44cd3e[0x1],_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x10fc')]=_0x44cd3e[0x2],_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x53')]=_0x44cd3e[0x3],_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x1a7')]=_0x44cd3e[_0x32ccdd('0x2456')](0x4,_0x44cd3e[_0x32ccdd('0x543')])[_0x32ccdd('0x2259')](',');}break;case _0x32ccdd('0x23fe'):{const _0x169ca9=_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x1c00')]['split'](',');_0x43a4fc[_0x32ccdd('0x2710')]['times']=isNaN(_0x169ca9[0x0])?_0x169ca9[0x0]:parseInt(_0x169ca9[0x0],0xa),_0x43a4fc['voicemail']['text']=_0x169ca9['slice'](0x1,_0x169ca9[_0x32ccdd('0x543')])['join'](',');}break;case _0x32ccdd('0x67f'):_0x43a4fc['voicemail']['text']=_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x1c00')];break;case'set':_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x10ad')]=_0x43a4fc[_0x32ccdd('0x2710')]['appdata'][_0x32ccdd('0x43a')]('=')[0x0],_0x43a4fc[_0x32ccdd('0x2710')]['value']=_0x43a4fc['voicemail'][_0x32ccdd('0x1c00')][_0x32ccdd('0x43a')]('=')[0x1];break;case _0x32ccdd('0x2426'):_0x43a4fc[_0x32ccdd('0x2710')]['project']=_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x1c00')];break;default:{const _0x259413=_0x43a4fc['voicemail'][_0x32ccdd('0x1c00')][_0x32ccdd('0x43a')](',');_0x43a4fc[_0x32ccdd('0x2710')]['voiceMail']=_0x3c8d8a()[_0x32ccdd('0x1a56')](_0x259413[0x0])?_0x259413[0x0]:isNaN(_0x259413[0x0])?_0x259413[0x0]:parseInt(_0x259413[0x0],0xa),_0x43a4fc[_0x32ccdd('0x2710')]['options']=_0x3c8d8a()[_0x32ccdd('0x1a56')](_0x259413[0x1])?_0x259413[0x1]:isNaN(_0x259413[0x1])?_0x259413[0x1]:parseInt(_0x259413[0x1],0xa);}break;}else{}_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x1810')]&&_0x43a4fc['voicemail']['type']['toLowerCase']()===_0x32ccdd('0xb33')&&_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x9d7')][_0x32ccdd('0x1e68')]()===_0x32ccdd('0x1edc')&&(_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0x23f7')]=_0x43a4fc['voicemail'][_0x32ccdd('0xa04')]?_0x43a4fc['voicemail'][_0x32ccdd('0xa04')][_0x32ccdd('0x43a')]('$')[0x0]:undefined,_0x43a4fc['voicemail'][_0x32ccdd('0x1961')]=_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0xe95')]?_0x32ccdd('0x20a8')+_0x43a4fc[_0x32ccdd('0x2710')][_0x32ccdd('0xe95')]:undefined);_0x43a4fc[_0x32ccdd('0x926')]=_0x48ab4c,_0x43a4fc[_0x32ccdd('0x18e2')]=_0x3d23ed,_0x679309[_0x32ccdd('0x1b4e')](_0x32ccdd('0x79b'))?_0x4485be[_0x32ccdd('0x579')]['get']({'fields':'id,mailbox','sort':_0x32ccdd('0x14d3'),'nolimit':'true'})[_0x32ccdd('0x1964')]['then'](function(_0x57b57c){const _0x121557=_0x32ccdd;_0x43a4fc[_0x121557('0x2698')]=_0x57b57c[_0x121557('0x6aa')]||[];})['catch'](function(_0x4e7d2b){const _0x55ebd6=_0x32ccdd;_0xc26740[_0x55ebd6('0x15aa')]({'title':_0x4e7d2b[_0x55ebd6('0x276f')]?_0x55ebd6('0x137')+_0x4e7d2b[_0x55ebd6('0x276f')]+_0x55ebd6('0x160c')+_0x4e7d2b[_0x55ebd6('0x2696')]:_0x55ebd6('0x1333'),'msg':_0x4e7d2b[_0x55ebd6('0x1e07')]?JSON[_0x55ebd6('0x100b')](_0x4e7d2b[_0x55ebd6('0x1e07')]):_0x4e7d2b[_0x55ebd6('0x1b75')]()});}):_0x4485be[_0x32ccdd('0x579')]['get']({'fields':_0x32ccdd('0x354'),'sort':_0x32ccdd('0x14d3'),'nolimit':_0x32ccdd('0x799')})['$promise'][_0x32ccdd('0x173b')](function(_0xb878e3){const _0x8cb986=_0x32ccdd;_0x43a4fc[_0x8cb986('0x2698')]=_0xb878e3[_0x8cb986('0x6aa')]||[];})['then'](function(){const _0x19392e=_0x32ccdd;return _0x4485be['userProfileSection']['get']({'userProfileId':_0x43a4fc[_0x19392e('0x155f')][_0x19392e('0x1946')],'sectionId':0x196})[_0x19392e('0x1964')];})[_0x32ccdd('0x173b')](function(_0x3a073f){const _0xb619ee=_0x32ccdd,_0x1df68e=_0x3a073f&&_0x3a073f[_0xb619ee('0x6aa')]?_0x3a073f[_0xb619ee('0x6aa')][0x0]:null;if(!_0x1df68e){const _0x3615b8=[];let _0x4ef1cc=null;_0x43a4fc['voicemail']&&(_0x4ef1cc=_0x3c8d8a()[_0xb619ee('0x18ab')](_0x43a4fc[_0xb619ee('0x2698')],{'mailbox':_0x43a4fc[_0xb619ee('0x2710')][_0xb619ee('0x579')]}));for(let _0x31845b=0x0;_0x31845b<_0x43a4fc[_0xb619ee('0x2698')][_0xb619ee('0x543')];_0x31845b++){_0x4ef1cc&&_0x43a4fc['voiceMails'][_0x31845b]['id']===_0x4ef1cc['id']&&(_0x43a4fc[_0xb619ee('0x2698')][_0x31845b][_0xb619ee('0x268e')]=![],_0x3615b8[_0xb619ee('0x18bb')](_0x43a4fc[_0xb619ee('0x2698')][_0x31845b]));}_0x43a4fc[_0xb619ee('0x2698')]=_0x3615b8;}else{if(!_0x1df68e['autoAssociation'])return _0x4485be[_0xb619ee('0xda9')]['get']({'sectionId':_0x1df68e['id']})[_0xb619ee('0x1964')]['then'](function(_0x290168){const _0x1823ff=_0xb619ee,_0x547263=_0x3c8d8a()[_0x1823ff('0x8a2')](_0x290168[_0x1823ff('0x6aa')],function(_0x2fa07f){const _0x242913=_0x1823ff;return _0x3c8d8a()['find'](_0x43a4fc[_0x242913('0x2698')],{'id':_0x2fa07f[_0x242913('0x1ce0')]});});let _0x42841a=null;_0x43a4fc[_0x1823ff('0x2710')]&&(_0x42841a=_0x3c8d8a()[_0x1823ff('0x18ab')](_0x43a4fc[_0x1823ff('0x2698')],{'mailbox':_0x43a4fc[_0x1823ff('0x2710')]['voiceMail']}));if(_0x42841a&&!_0x3c8d8a()[_0x1823ff('0x1ec')](_0x547263,['id',_0x42841a['id']])){const _0x514c96=_0x3c8d8a()[_0x1823ff('0x18ab')](_0x43a4fc['voiceMails'],{'id':_0x42841a['id']});_0x514c96[_0x1823ff('0x268e')]=![],_0x547263['push'](_0x514c96);}_0x43a4fc[_0x1823ff('0x2698')]=_0x547263;});}})[_0x32ccdd('0x103c')](function(_0x319539){const _0xb67527=_0x32ccdd;_0xc26740[_0xb67527('0x15aa')]({'title':_0x319539[_0xb67527('0x276f')]?_0xb67527('0x137')+_0x319539['status']+_0xb67527('0x160c')+_0x319539['statusText']:_0xb67527('0xc41'),'msg':_0x319539[_0xb67527('0x1e07')]?JSON[_0xb67527('0x100b')](_0x319539[_0xb67527('0x1e07')]):_0x319539[_0xb67527('0x1b75')]()});});function _0x48ab4c(){const _0x19173b=_0x32ccdd;_0x43a4fc[_0x19173b('0x1d4a')]=[];const _0x453a45=[];_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x1810')]&&_0x43a4fc[_0x19173b('0x2710')]['type']['toLowerCase']()===_0x19173b('0xb33')&&_0x43a4fc[_0x19173b('0x2710')]['appType']===_0x19173b('0x2150')&&(_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0xa04')]=_0x454524[_0x19173b('0x1429')]?(_0x43a4fc['voicemail'][_0x19173b('0x23f7')]||'')+'${EXTEN:'+_0x454524[_0x19173b('0x1429')]+'}':(_0x43a4fc['voicemail']['prefix']||'')+'${EXTEN}',_0x454524[_0x19173b('0x76c')]!==_0x19173b('0x2741')?_0x43a4fc[_0x19173b('0x2710')]['options']['indexOf'](_0x19173b('0x2474'))<0x0&&(_0x43a4fc['voicemail'][_0x19173b('0x2010')]+='U(xcally-mixmonitor-context)'):_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x2010')]=_0x43a4fc[_0x19173b('0x2710')]['options'][_0x19173b('0x166c')](_0x19173b('0x2474'),''));if(_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x9d7')]&&_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x9d7')]==='custom'){}else switch((_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x17e')]||_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x9d7')])[_0x19173b('0x1e68')]()){case _0x19173b('0x256d'):_0x43a4fc[_0x19173b('0x2710')]['appdata']=_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x10ad')]+'='+_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0xa7b')];break;case _0x19173b('0xbb4'):break;default:_0x453a45[0x0]=_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x579')],_0x453a45[0x1]=_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x2010')],_0x43a4fc[_0x19173b('0x2710')][_0x19173b('0x1c00')]=_0x453a45[_0x19173b('0x2259')](',');}_0x3d23ed(_0x43a4fc[_0x19173b('0x2710')]);}function _0x3d23ed(_0x2cbe38){const _0x1f8390=_0x32ccdd;_0x36a4e2[_0x1f8390('0x1cf4')](_0x2cbe38);}}const _0x35b159=_0x2f7a61;_0x382dcc['$inject']=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$translate',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1afe'),_0x566993('0x170e')];function _0x382dcc(_0x52e1d2,_0x2265c8,_0x9447cb,_0x257c03,_0x3e1fd4,_0x1e1b68,_0x3d4973,_0x40ca43,_0x21a700,_0x4fed46,_0x25ed18,_0x135314){const _0xaf3c60=_0x566993,_0x4f3681=this;_0x4f3681['currentUser']=_0x4fed46['getCurrentUser'](),_0x4f3681[_0xaf3c60('0x1a29')]=_0x1e1b68,_0x4f3681[_0xaf3c60('0x251')]=_0x3d4973,_0x4f3681[_0xaf3c60('0x644')]=_0x4f3681[_0xaf3c60('0x251')][_0xaf3c60('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4f3681[_0xaf3c60('0x614')]=_0x2265c8[_0xaf3c60('0x375')]()+_0xaf3c60('0x122b')+_0x2265c8[_0xaf3c60('0x4d1')](),_0x4f3681['internalroute']=_0x25ed18||_0x52e1d2[_0xaf3c60('0x197a')][_0xaf3c60('0x1afe')]||{},_0x4f3681[_0xaf3c60('0x170e')]=_0x135314&&_0x135314[_0xaf3c60('0x1a2f')]==0x1?_0x135314[_0xaf3c60('0x6aa')][0x0]:null,_0x4f3681[_0xaf3c60('0x1dc1')]=_0x4fed46[_0xaf3c60('0xde6')](_0x4f3681[_0xaf3c60('0x170e')]?_0x4f3681[_0xaf3c60('0x170e')][_0xaf3c60('0x1dc1')]:null),_0x4f3681['hasModulePermissions']={},_0x4f3681['selectedTab']=_0x52e1d2[_0xaf3c60('0x197a')][_0xaf3c60('0x1e66')]||0x0,_0x4f3681[_0xaf3c60('0x5a4')]=_0x21a700[_0xaf3c60('0x2787')],_0x4f3681[_0xaf3c60('0x2818')]=_0x33ec2b,_0x4f3681[_0xaf3c60('0xba8')]=_0x11d583,_0x4fed46[_0xaf3c60('0x1b4e')](_0xaf3c60('0x79b'))?_0x40ca43[_0xaf3c60('0xf01')][_0xaf3c60('0x1d97')]({'fields':_0xaf3c60('0xd52'),'sort':_0xaf3c60('0x10ad'),'nolimit':_0xaf3c60('0x799')})[_0xaf3c60('0x1964')][_0xaf3c60('0x173b')](function(_0x4db62f){_0x4f3681['contexts']=_0x4db62f['rows']||[];})[_0xaf3c60('0x103c')](function(_0x5ebc4f){const _0x12d4d9=_0xaf3c60;_0x21a700[_0x12d4d9('0x15aa')]({'title':_0x5ebc4f[_0x12d4d9('0x276f')]?'API:'+_0x5ebc4f[_0x12d4d9('0x276f')]+_0x12d4d9('0x160c')+_0x5ebc4f[_0x12d4d9('0x2696')]:_0x12d4d9('0x2064'),'msg':_0x5ebc4f[_0x12d4d9('0x1e07')]?JSON['stringify'](_0x5ebc4f[_0x12d4d9('0x1e07')]):_0x5ebc4f[_0x12d4d9('0x1b75')]()});}):_0x40ca43[_0xaf3c60('0xf01')][_0xaf3c60('0x1d97')]({'fields':'id,name','sort':_0xaf3c60('0x10ad'),'nolimit':_0xaf3c60('0x799')})[_0xaf3c60('0x1964')][_0xaf3c60('0x173b')](function(_0x45d1d1){const _0x12e63b=_0xaf3c60;_0x4f3681['contexts']=_0x45d1d1[_0x12e63b('0x6aa')]||[];})[_0xaf3c60('0x173b')](function(){const _0x403f10=_0xaf3c60;return _0x40ca43['userProfileSection'][_0x403f10('0x1d97')]({'userProfileId':_0x4f3681[_0x403f10('0x155f')][_0x403f10('0x1946')],'sectionId':0x195})[_0x403f10('0x1964')];})[_0xaf3c60('0x173b')](function(_0x4a7ee5){const _0x2370f0=_0xaf3c60,_0x55c28d=_0x4a7ee5&&_0x4a7ee5[_0x2370f0('0x6aa')]?_0x4a7ee5[_0x2370f0('0x6aa')][0x0]:null;if(!_0x55c28d)return _0x40ca43[_0x2370f0('0xf01')]['get']({'fields':_0x2370f0('0xd52'),'sort':'name','nolimit':_0x2370f0('0x799'),'defaultEntry':0x1})['$promise'][_0x2370f0('0x173b')](function(_0x1edfe3){const _0x2c3cbb=_0x2370f0;_0x4f3681[_0x2c3cbb('0x22a9')]=_0x1edfe3['rows']||[];});else{if(!_0x55c28d[_0x2370f0('0x273e')])return _0x40ca43['userProfileResource'][_0x2370f0('0x1d97')]({'sectionId':_0x55c28d['id']})[_0x2370f0('0x1964')][_0x2370f0('0x173b')](function(_0x334adf){const _0x31214d=_0x2370f0,_0x2b82f2=_0x3c8d8a()[_0x31214d('0x8a2')](_0x334adf[_0x31214d('0x6aa')],function(_0x17ac91){const _0x9e6687=_0x31214d;return _0x3c8d8a()[_0x9e6687('0x18ab')](_0x4f3681[_0x9e6687('0x22a9')],{'id':_0x17ac91['resourceId']});});let _0x1e8abf=null;_0x4f3681[_0x31214d('0x1afe')]&&(_0x1e8abf=_0x3c8d8a()['find'](_0x4f3681['contexts'],{'name':_0x4f3681[_0x31214d('0x1afe')][_0x31214d('0x2b9')]}));if(_0x1e8abf&&!_0x3c8d8a()['some'](_0x2b82f2,['id',_0x1e8abf['id']])){const _0x580d01=_0x3c8d8a()[_0x31214d('0x18ab')](_0x4f3681[_0x31214d('0x22a9')],{'id':_0x1e8abf['id']});_0x580d01[_0x31214d('0x268e')]=![],_0x2b82f2[_0x31214d('0x18bb')](_0x580d01);}_0x4f3681['contexts']=_0x2b82f2;});}})[_0xaf3c60('0x103c')](function(_0x5ed3f8){const _0xc92da6=_0xaf3c60;_0x21a700[_0xc92da6('0x15aa')]({'title':_0x5ed3f8[_0xc92da6('0x276f')]?_0xc92da6('0x137')+_0x5ed3f8[_0xc92da6('0x276f')]+_0xc92da6('0x160c')+_0x5ed3f8[_0xc92da6('0x2696')]:'SYSTEM:GETcontexts','msg':_0x5ed3f8[_0xc92da6('0x1e07')]?JSON[_0xc92da6('0x100b')](_0x5ed3f8['data']):_0x5ed3f8[_0xc92da6('0x1b75')]()});});function _0x33ec2b(){const _0x208b8c=_0xaf3c60;_0x52e1d2['go'](_0x208b8c('0x1de7'),{},{'reload':_0x208b8c('0x1de7')});}function _0x11d583(){const _0x3e5cf6=_0xaf3c60;_0x40ca43[_0x3e5cf6('0x1630')][_0x3e5cf6('0x1842')]({'id':_0x4f3681['internalroute']['id']},_0x4f3681[_0x3e5cf6('0x1afe')])[_0x3e5cf6('0x1964')]['then'](function(){const _0x39b4e9=_0x3e5cf6;_0x21a700[_0x39b4e9('0xdfe')]({'title':'InternalRoute\x20updated!','msg':_0x4f3681['internalroute'][_0x39b4e9('0x10ad')]?_0x4f3681[_0x39b4e9('0x1afe')][_0x39b4e9('0x10ad')]+'\x20has\x20been\x20updated!':''});})[_0x3e5cf6('0x103c')](function(_0x3587ff){const _0x13e282=_0x3e5cf6;_0x21a700[_0x13e282('0x15aa')]({'title':_0x3587ff['status']?_0x13e282('0x137')+_0x3587ff[_0x13e282('0x276f')]+_0x13e282('0x160c')+_0x3587ff[_0x13e282('0x2696')]:_0x13e282('0x1ab5'),'msg':_0x3587ff['data']?JSON['stringify'](_0x3587ff['data']):_0x3587ff[_0x13e282('0x1b75')]()});});}}const _0x18d3c0=_0x382dcc,_0x5843c4=_0x21a6a1['p']+_0x566993('0x420');_0x3f8bf5[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document','$timeout',_0x566993('0x638'),'internalroutes',_0x566993('0x257b'),'userProfileSection',_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),'Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0x3f8bf5(_0x3af83c,_0x121d29,_0x4c23f8,_0x2ba24b,_0x55a495,_0x20f8c2,_0x189826,_0x19883e,_0x90f254,_0x2c0fed,_0x4a3384,_0x1cf3b4,_0x231f6e,_0x3c3e71,_0x4e2e51,_0x3a5eca,_0xf8e6b7){const _0x6332ab=_0x566993,_0x3b14fb=this;_0x3b14fb[_0x6332ab('0x1a29')]=_0x3a5eca,_0x3b14fb[_0x6332ab('0x251')]=_0xf8e6b7,_0x3b14fb[_0x6332ab('0x155f')]=_0x4e2e51[_0x6332ab('0x14d4')](),_0x3b14fb['internalroutes']=_0x90f254||{'count':0x0,'rows':[]},_0x3b14fb[_0x6332ab('0x257b')]=_0x2c0fed,_0x3b14fb[_0x6332ab('0x170e')]=_0x4a3384&&_0x4a3384[_0x6332ab('0x1a2f')]==0x1?_0x4a3384[_0x6332ab('0x6aa')][0x0]:null,_0x3b14fb[_0x6332ab('0x1dc1')]=_0x4e2e51['parseCrudPermissions'](_0x3b14fb[_0x6332ab('0x170e')]?_0x3b14fb[_0x6332ab('0x170e')][_0x6332ab('0x1dc1')]:null),_0x3b14fb[_0x6332ab('0xdf9')]=_0x6332ab('0x9cd'),_0x3b14fb[_0x6332ab('0x14d6')]='',_0x3b14fb[_0x6332ab('0x2303')]=null,_0x3b14fb[_0x6332ab('0xc4c')]=[],_0x3b14fb[_0x6332ab('0xc49')]={'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x6332ab('0x138c'),'sort':_0x6332ab('0x1769'),'VoiceExtensionId':_0x6332ab('0x877'),'limit':0xa,'page':0x1},_0x3b14fb['editstate']=_0x28d1c5,_0x3b14fb['deleteconfirm']=_0x63154,_0x3b14fb['success']=_0xf0c7b6,_0x3b14fb['getInternalRoutes']=_0x40c615,_0x3b14fb[_0x6332ab('0x10c7')]=_0x229e14,_0x3b14fb[_0x6332ab('0x2495')]=_0x518c52,_0x3b14fb['exportSelectedInternalRoutes']=_0x358bfb,_0x3b14fb[_0x6332ab('0x17ab')]=_0xd93d4,_0x3b14fb['deselectInternalRoutes']=_0x326468,_0x3b14fb['selectAllInternalRoutes']=_0x1c2dac,_0x4e2e51[_0x6332ab('0x1b4e')](_0x6332ab('0x79b'))?_0x1cf3b4[_0x6332ab('0xf01')]['get']({'fields':_0x6332ab('0xd52'),'sort':_0x6332ab('0x10ad'),'nolimit':'true'})['$promise'][_0x6332ab('0x173b')](function(_0x46db7c){const _0x38ba38=_0x6332ab;_0x3b14fb[_0x38ba38('0x22a9')]=_0x46db7c[_0x38ba38('0x6aa')]||[];})[_0x6332ab('0x103c')](function(_0x46bb90){const _0x72e9da=_0x6332ab;_0x3c3e71[_0x72e9da('0x15aa')]({'title':_0x46bb90['status']?_0x72e9da('0x137')+_0x46bb90[_0x72e9da('0x276f')]+'\x20-\x20'+_0x46bb90['statusText']:_0x72e9da('0x2064'),'msg':_0x46bb90['data']?JSON[_0x72e9da('0x100b')](_0x46bb90[_0x72e9da('0x1e07')]):_0x46bb90['toString']()});}):_0x1cf3b4[_0x6332ab('0xf01')][_0x6332ab('0x1d97')]({'fields':_0x6332ab('0xd52'),'sort':_0x6332ab('0x10ad'),'nolimit':_0x6332ab('0x799')})[_0x6332ab('0x1964')][_0x6332ab('0x173b')](function(_0x3714a4){const _0x2ebcbb=_0x6332ab;_0x3b14fb[_0x2ebcbb('0x22a9')]=_0x3714a4[_0x2ebcbb('0x6aa')]||[];})['then'](function(){const _0x3bb8f7=_0x6332ab;return _0x1cf3b4['userProfileSection'][_0x3bb8f7('0x1d97')]({'userProfileId':_0x3b14fb[_0x3bb8f7('0x155f')][_0x3bb8f7('0x1946')],'sectionId':0x195})['$promise'];})['then'](function(_0x1ff2dc){const _0x58c57e=_0x6332ab,_0x50571c=_0x1ff2dc&&_0x1ff2dc[_0x58c57e('0x6aa')]?_0x1ff2dc[_0x58c57e('0x6aa')][0x0]:null;if(!_0x50571c)return _0x1cf3b4[_0x58c57e('0xf01')][_0x58c57e('0x1d97')]({'fields':_0x58c57e('0xd52'),'sort':_0x58c57e('0x10ad'),'nolimit':_0x58c57e('0x799'),'defaultEntry':0x1})[_0x58c57e('0x1964')][_0x58c57e('0x173b')](function(_0x5c413f){_0x3b14fb['contexts']=_0x5c413f['rows']||[];});else{if(!_0x50571c['autoAssociation'])return _0x1cf3b4[_0x58c57e('0xda9')][_0x58c57e('0x1d97')]({'sectionId':_0x50571c['id']})[_0x58c57e('0x1964')][_0x58c57e('0x173b')](function(_0x31acb3){const _0x596478=_0x58c57e,_0x25e323=_0x3c8d8a()[_0x596478('0x8a2')](_0x31acb3[_0x596478('0x6aa')],function(_0x4f89e9){const _0x1769c6=_0x596478;return _0x3c8d8a()['find'](_0x3b14fb[_0x1769c6('0x22a9')],{'id':_0x4f89e9[_0x1769c6('0x1ce0')]});});let _0x2504c8=null;_0x3b14fb[_0x596478('0x1afe')]&&(_0x2504c8=_0x3c8d8a()[_0x596478('0x18ab')](_0x3b14fb[_0x596478('0x22a9')],{'name':_0x3b14fb['internalroute'][_0x596478('0x2b9')]}));if(_0x2504c8&&!_0x3c8d8a()['some'](_0x25e323,['id',_0x2504c8['id']])){const _0x48a04f=_0x3c8d8a()[_0x596478('0x18ab')](_0x3b14fb[_0x596478('0x22a9')],{'id':_0x2504c8['id']});_0x48a04f[_0x596478('0x268e')]=![],_0x25e323['push'](_0x48a04f);}_0x3b14fb[_0x596478('0x22a9')]=_0x25e323;});}})[_0x6332ab('0x103c')](function(_0x42c9db){const _0x4dbf7c=_0x6332ab;_0x3c3e71[_0x4dbf7c('0x15aa')]({'title':_0x42c9db[_0x4dbf7c('0x276f')]?_0x4dbf7c('0x137')+_0x42c9db[_0x4dbf7c('0x276f')]+'\x20-\x20'+_0x42c9db['statusText']:_0x4dbf7c('0x18fd'),'msg':_0x42c9db['data']?JSON['stringify'](_0x42c9db[_0x4dbf7c('0x1e07')]):_0x42c9db[_0x4dbf7c('0x1b75')]()});});function _0x28d1c5(_0x45e80c){const _0x21c957=_0x6332ab;_0x4c23f8['go'](_0x21c957('0x1a81'),{'id':_0x45e80c['id'],'internalroute':_0x45e80c,'crudPermissions':_0x3b14fb[_0x21c957('0x1dc1')]});}function _0x63154(_0x2cc6f7,_0x3b80fe){const _0x38d9b8=_0x6332ab,_0x543add=_0x55a495[_0x38d9b8('0x1d02')]()[_0x38d9b8('0x20d6')](_0x38d9b8('0x5bb')+_0x3c8d8a()['startCase'](_0x38d9b8('0x1afe'))+'?')[_0x38d9b8('0xf8b')](_0x38d9b8('0x15b9')+(_0x2cc6f7[_0x38d9b8('0x10ad')]||_0x38d9b8('0x1afe'))+_0x38d9b8('0x24be')+_0x38d9b8('0xd23'))[_0x38d9b8('0x217')](_0x38d9b8('0x10c4'))[_0x38d9b8('0x21de')](_0x3b80fe)['ok']('OK')[_0x38d9b8('0x1e1f')]('CANCEL');_0x55a495[_0x38d9b8('0x1cb7')](_0x543add)[_0x38d9b8('0x173b')](function(){_0x518c52(_0x2cc6f7);},function(){const _0x235c2f=_0x38d9b8;console[_0x235c2f('0xe37')](_0x235c2f('0x468'));});}let _0x1707e5=!![],_0x428c1d=0x1;_0x3af83c[_0x6332ab('0x1bdb')](_0x6332ab('0x157b'),function(_0xcf5680,_0x573f6e){const _0x2ddf8c=_0x6332ab;_0x1707e5?_0x189826(function(){_0x1707e5=![];}):(!_0x573f6e&&(_0x428c1d=_0x3b14fb[_0x2ddf8c('0xc49')]['page']),_0xcf5680!==_0x573f6e&&(_0x3b14fb['query'][_0x2ddf8c('0x182e')]=0x1),!_0xcf5680&&(_0x3b14fb[_0x2ddf8c('0xc49')]['page']=_0x428c1d),_0x3b14fb[_0x2ddf8c('0x145b')]());});function _0xf0c7b6(_0x4d8d9b){_0x3b14fb['internalroutes']=_0x4d8d9b||{'count':0x0,'rows':[]};}function _0x40c615(){const _0x4130f8=_0x6332ab;_0x3b14fb[_0x4130f8('0xc49')][_0x4130f8('0x17f0')]=(_0x3b14fb[_0x4130f8('0xc49')][_0x4130f8('0x182e')]-0x1)*_0x3b14fb[_0x4130f8('0xc49')][_0x4130f8('0x3e')],_0x4e2e51[_0x4130f8('0x1b4e')](_0x4130f8('0x79b'))?_0x3b14fb['promise']=_0x1cf3b4['voiceExtension']['get'](_0x3b14fb[_0x4130f8('0xc49')],_0xf0c7b6)['$promise']:(_0x3b14fb['query']['id']=_0x3b14fb['userProfile']['id'],_0x3b14fb[_0x4130f8('0xc49')][_0x4130f8('0x17c9')]=_0x4130f8('0x1c72'),_0x3b14fb[_0x4130f8('0x2219')]=_0x1cf3b4['userProfile']['getResources'](_0x3b14fb[_0x4130f8('0xc49')],_0xf0c7b6)['$promise']);}function _0x229e14(_0x26da7c,_0x2ce7cb){const _0x506426=_0x6332ab;_0x55a495[_0x506426('0x1cb7')]({'controller':_0x506426('0x821'),'controllerAs':'vm','templateUrl':_0x5843c4,'parent':angular[_0x506426('0xb6d')](_0x20f8c2[_0x506426('0x1a5')]),'targetEvent':_0x26da7c,'clickOutsideToClose':!![],'locals':{'internalroute':_0x2ce7cb,'internalroutes':_0x3b14fb[_0x506426('0x9cd')][_0x506426('0x6aa')],'license':_0x3b14fb['license'],'setting':_0x3b14fb['setting'],'crudPermissions':_0x3b14fb[_0x506426('0x1dc1')]}});}function _0x518c52(_0x24679a){const _0xf1a279=_0x6332ab;_0x1cf3b4[_0xf1a279('0x1630')][_0xf1a279('0x15e8')]({'id':_0x24679a['id']})[_0xf1a279('0x1964')][_0xf1a279('0x173b')](function(){const _0x341cb7=_0xf1a279;_0x3c8d8a()['remove'](_0x3b14fb[_0x341cb7('0x9cd')][_0x341cb7('0x6aa')],{'id':_0x24679a['id']}),_0x3b14fb[_0x341cb7('0x9cd')][_0x341cb7('0x1a2f')]-=0x1,!_0x3b14fb[_0x341cb7('0x9cd')][_0x341cb7('0x6aa')][_0x341cb7('0x543')]&&_0x3b14fb[_0x341cb7('0x145b')](),_0x3c3e71[_0x341cb7('0xdfe')]({'title':_0x3c8d8a()[_0x341cb7('0x10e')](_0x341cb7('0xa40'))+_0x341cb7('0x1c5e'),'msg':_0x24679a['name']?_0x24679a[_0x341cb7('0x10ad')]+_0x341cb7('0x25d2'):''});})[_0xf1a279('0x103c')](function(_0x3328a1){const _0x35477f=_0xf1a279;if(_0x3328a1['data']&&_0x3328a1[_0x35477f('0x1e07')][_0x35477f('0x1d4a')]&&_0x3328a1[_0x35477f('0x1e07')][_0x35477f('0x1d4a')][_0x35477f('0x543')]){_0x3b14fb[_0x35477f('0x1d4a')]=_0x3328a1[_0x35477f('0x1e07')][_0x35477f('0x1d4a')]||[{'message':_0x3328a1[_0x35477f('0x1b75')](),'type':_0x35477f('0x2093')}];for(let _0x5511c1=0x0;_0x5511c1<_0x3328a1['data'][_0x35477f('0x1d4a')][_0x35477f('0x543')];_0x5511c1++){_0x3c3e71['error']({'title':_0x3328a1[_0x35477f('0x1e07')]['errors'][_0x5511c1][_0x35477f('0x1810')],'msg':_0x3328a1[_0x35477f('0x1e07')]['errors'][_0x5511c1][_0x35477f('0x67f')]});}}else _0x3c3e71[_0x35477f('0x15aa')]({'title':_0x3328a1[_0x35477f('0x276f')]?_0x35477f('0x137')+_0x3328a1[_0x35477f('0x276f')]+_0x35477f('0x160c')+_0x3328a1[_0x35477f('0x2696')]:_0x35477f('0x2093'),'msg':_0x3328a1[_0x35477f('0x1e07')]?JSON[_0x35477f('0x100b')](_0x3328a1[_0x35477f('0x1e07')][_0x35477f('0x67f')]):_0x3328a1['message']||_0x3328a1[_0x35477f('0x1b75')]()});});}function _0x358bfb(){const _0x5487b0=_0x6332ab,_0x3511f=angular['copy'](_0x3b14fb[_0x5487b0('0xc4c')]);return _0x3b14fb[_0x5487b0('0xc4c')]=[],_0x3511f;}function _0xd93d4(_0x422d1c){const _0x4024fd=_0x6332ab,_0x1fff5d=_0x55a495[_0x4024fd('0x1d02')]()[_0x4024fd('0x20d6')](_0x4024fd('0x9c0'))[_0x4024fd('0xf8b')](''+_0x3b14fb['selectedInternalRoutes']['length']+_0x4024fd('0xcb4')+_0x4024fd('0xd23'))[_0x4024fd('0x217')](_0x4024fd('0xf08'))['targetEvent'](_0x422d1c)['ok']('OK')[_0x4024fd('0x1e1f')](_0x4024fd('0x468'));_0x55a495['show'](_0x1fff5d)[_0x4024fd('0x173b')](function(){const _0xc8d3e6=_0x4024fd;_0x3b14fb[_0xc8d3e6('0xc4c')][_0xc8d3e6('0xa6a')](function(_0x1a5595){_0x518c52(_0x1a5595);}),_0x3b14fb[_0xc8d3e6('0xc4c')]=[];});}function _0x326468(){_0x3b14fb['selectedInternalRoutes']=[];}function _0x1c2dac(){const _0x2acfd5=_0x6332ab;_0x3b14fb[_0x2acfd5('0xc4c')]=_0x3b14fb['internalroutes'][_0x2acfd5('0x6aa')];}}const _0x2556da=_0x3f8bf5;_0x13db04[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x5b9'),_0x566993('0x1a78'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x13db04(_0x133d3d,_0x364ce9,_0x51ff9e,_0x378bd6,_0x2684b0,_0x1dccee,_0x3c6930,_0x25c256,_0x29034f,_0x341e7b,_0x2290ac,_0x1881cc,_0x26e0ef,_0x909955){const _0x465652=_0x566993,_0x3fecb9=this;_0x3fecb9[_0x465652('0x155f')]=_0x2290ac[_0x465652('0x14d4')](),_0x3fecb9[_0x465652('0x1d4a')]=[],_0x3fecb9[_0x465652('0x251')]=_0x26e0ef,_0x3fecb9['license']=_0x1881cc,_0x3fecb9[_0x465652('0x1dc1')]=_0x909955,_0x3fecb9['hasModulePermissions']={},_0x3fecb9[_0x465652('0x644')]=_0x3fecb9[_0x465652('0x251')]&&_0x3fecb9[_0x465652('0x251')][_0x465652('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3fecb9[_0x465652('0x20d6')]='VOICE.EDIT_MUSICONHOLD',_0x3fecb9[_0x465652('0x1a78')]=angular[_0x465652('0x2e3')](_0x29034f),_0x3fecb9[_0x465652('0x5b9')]=_0x25c256,_0x3fecb9[_0x465652('0x1f49')]=![];!_0x3fecb9[_0x465652('0x1a78')]&&(_0x3fecb9[_0x465652('0x1a78')]={'mode':_0x465652('0x2670')},_0x3fecb9['title']=_0x465652('0xb10'),_0x3fecb9['newMusicOnHold']=!![]);_0x3fecb9[_0x465652('0x1ed7')]=_0x5a207d,_0x3fecb9[_0x465652('0x1beb')]=_0x5cd875,_0x3fecb9[_0x465652('0xd26')]=_0x5df7d4,_0x3fecb9[_0x465652('0x11ae')]=_0x3f8df,_0x3fecb9['closeDialog']=_0xc2d82d;function _0x5a207d(){const _0xb43300=_0x465652;_0x3fecb9['errors']=[],_0x341e7b[_0xb43300('0x1bb5')][_0xb43300('0x1195')](_0x3fecb9[_0xb43300('0x1a78')])['$promise']['then'](function(_0x21ccc1){const _0x583f6e=_0xb43300;_0x3fecb9[_0x583f6e('0x5b9')][_0x583f6e('0x1377')](_0x21ccc1[_0x583f6e('0xf1f')]()),_0x3c6930['success']({'title':_0x583f6e('0x1762'),'msg':_0x3fecb9[_0x583f6e('0x1a78')][_0x583f6e('0x10ad')]?_0x3fecb9[_0x583f6e('0x1a78')][_0x583f6e('0x10ad')]+_0x583f6e('0x209a'):''}),_0xc2d82d(_0x21ccc1);})[_0xb43300('0x103c')](function(_0x21d89e){const _0x54f531=_0xb43300;if(_0x21d89e[_0x54f531('0x1e07')]&&_0x21d89e[_0x54f531('0x1e07')][_0x54f531('0x1d4a')]&&_0x21d89e['data'][_0x54f531('0x1d4a')][_0x54f531('0x543')]){_0x3fecb9[_0x54f531('0x1d4a')]=_0x21d89e[_0x54f531('0x1e07')][_0x54f531('0x1d4a')]||[{'message':_0x21d89e['toString'](),'type':_0x54f531('0xfc5')}];for(let _0x40ab1d=0x0;_0x40ab1d<_0x21d89e[_0x54f531('0x1e07')]['errors'][_0x54f531('0x543')];_0x40ab1d+=0x1){_0x3c6930[_0x54f531('0x15aa')]({'title':_0x21d89e[_0x54f531('0x1e07')][_0x54f531('0x1d4a')][_0x40ab1d][_0x54f531('0x1810')],'msg':_0x21d89e[_0x54f531('0x1e07')][_0x54f531('0x1d4a')][_0x40ab1d][_0x54f531('0x67f')]});}}else _0x3c6930[_0x54f531('0x15aa')]({'title':_0x21d89e[_0x54f531('0x276f')]?_0x54f531('0x137')+_0x21d89e[_0x54f531('0x276f')]+_0x54f531('0x160c')+_0x21d89e[_0x54f531('0x2696')]:_0x54f531('0xfc5'),'msg':_0x21d89e['data']?JSON['stringify'](_0x21d89e[_0x54f531('0x1e07')][_0x54f531('0x67f')]):_0x21d89e[_0x54f531('0x1b75')]()});});}function _0x5cd875(){const _0x46c97b=_0x465652;_0x3fecb9[_0x46c97b('0x1d4a')]=[],_0x341e7b['voiceMusicOnHold'][_0x46c97b('0x1842')]({'id':_0x3fecb9['musiconhold']['id']},_0x3fecb9['musiconhold'])[_0x46c97b('0x1964')][_0x46c97b('0x173b')](function(_0xb5eba4){const _0x1f4747=_0x46c97b,_0x1123f2=_0x3c8d8a()['find'](_0x3fecb9[_0x1f4747('0x5b9')],{'id':_0xb5eba4['id']});_0x1123f2&&_0x3c8d8a()[_0x1f4747('0x9ef')](_0x1123f2,_0x3c8d8a()['pick'](_0xb5eba4[_0x1f4747('0xf1f')](),_0x3c8d8a()['keys'](_0x1123f2))),_0x3c6930[_0x1f4747('0xdfe')]({'title':'MusicOnHold\x20properly\x20saved!','msg':_0x3fecb9[_0x1f4747('0x1a78')]['name']?_0x3fecb9[_0x1f4747('0x1a78')][_0x1f4747('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0xc2d82d(_0xb5eba4);})[_0x46c97b('0x103c')](function(_0x240625){const _0x17045d=_0x46c97b;if(_0x240625[_0x17045d('0x1e07')]&&_0x240625['data']['errors']&&_0x240625[_0x17045d('0x1e07')][_0x17045d('0x1d4a')][_0x17045d('0x543')]){_0x3fecb9[_0x17045d('0x1d4a')]=_0x240625[_0x17045d('0x1e07')][_0x17045d('0x1d4a')]||[{'message':_0x240625[_0x17045d('0x1b75')](),'type':'api.voiceMusicOnHold.update'}];for(let _0xb7e10b=0x0;_0xb7e10b<_0x240625[_0x17045d('0x1e07')][_0x17045d('0x1d4a')]['length'];_0xb7e10b++){_0x3c6930[_0x17045d('0x15aa')]({'title':_0x240625[_0x17045d('0x1e07')][_0x17045d('0x1d4a')][_0xb7e10b][_0x17045d('0x1810')],'msg':_0x240625[_0x17045d('0x1e07')][_0x17045d('0x1d4a')][_0xb7e10b][_0x17045d('0x67f')]});}}else _0x3c6930[_0x17045d('0x15aa')]({'title':_0x240625[_0x17045d('0x276f')]?_0x17045d('0x137')+_0x240625[_0x17045d('0x276f')]+_0x17045d('0x160c')+_0x240625[_0x17045d('0x2696')]:_0x17045d('0x1c48'),'msg':_0x240625[_0x17045d('0x1e07')]?JSON[_0x17045d('0x100b')](_0x240625[_0x17045d('0x1e07')]['message']):_0x240625[_0x17045d('0x1b75')]()});});}function _0x5df7d4(_0x1a3382){const _0xbf3ace=_0x465652;_0x3fecb9[_0xbf3ace('0x1d4a')]=[];const _0x29cc10=_0x378bd6['confirm']()['title'](_0xbf3ace('0x8ef'))[_0xbf3ace('0x732')]('The\x20musiconhold\x20will\x20be\x20deleted.')[_0xbf3ace('0x217')](_0xbf3ace('0xd29'))['ok'](_0xbf3ace('0x2373'))[_0xbf3ace('0x1e1f')](_0xbf3ace('0x1d4e'))[_0xbf3ace('0x21de')](_0x1a3382);_0x378bd6['show'](_0x29cc10)['then'](function(){const _0x711a6b=_0xbf3ace;_0x341e7b[_0x711a6b('0x1bb5')][_0x711a6b('0x15e8')]({'id':_0x3fecb9[_0x711a6b('0x1a78')]['id']})[_0x711a6b('0x1964')][_0x711a6b('0x173b')](function(){const _0x417dde=_0x711a6b;_0x3c8d8a()['remove'](_0x3fecb9[_0x417dde('0x5b9')],{'id':_0x3fecb9[_0x417dde('0x1a78')]['id']}),_0x3c6930[_0x417dde('0xdfe')]({'title':_0x417dde('0x10fd'),'msg':(_0x3fecb9[_0x417dde('0x1a78')]['name']||_0x417dde('0x1a78'))+_0x417dde('0x25d2')}),_0xc2d82d(_0x3fecb9[_0x417dde('0x1a78')]);})[_0x711a6b('0x103c')](function(_0x15b894){const _0x5133f2=_0x711a6b;if(_0x15b894[_0x5133f2('0x1e07')]&&_0x15b894[_0x5133f2('0x1e07')][_0x5133f2('0x1d4a')]&&_0x15b894['data'][_0x5133f2('0x1d4a')][_0x5133f2('0x543')]){_0x3fecb9[_0x5133f2('0x1d4a')]=_0x15b894[_0x5133f2('0x1e07')]['errors']||[{'message':_0x15b894[_0x5133f2('0x1b75')](),'type':_0x5133f2('0x2181')}];for(let _0x11a7ca=0x0;_0x11a7ca<_0x15b894[_0x5133f2('0x1e07')][_0x5133f2('0x1d4a')][_0x5133f2('0x543')];_0x11a7ca++){_0x3c6930[_0x5133f2('0x15aa')]({'title':_0x15b894[_0x5133f2('0x1e07')][_0x5133f2('0x1d4a')][_0x11a7ca][_0x5133f2('0x1810')],'msg':_0x15b894[_0x5133f2('0x1e07')]['errors'][_0x11a7ca]['message']});}}else _0x3c6930[_0x5133f2('0x15aa')]({'title':_0x15b894[_0x5133f2('0x276f')]?_0x5133f2('0x137')+_0x15b894[_0x5133f2('0x276f')]+_0x5133f2('0x160c')+_0x15b894[_0x5133f2('0x2696')]:_0x5133f2('0x2181'),'msg':_0x15b894['data']?JSON['stringify'](_0x15b894[_0x5133f2('0x1e07')][_0x5133f2('0x67f')]):_0x15b894['message']||_0x15b894['toString']()});});},function(){});}function _0x3f8df(_0x11853c){return _0x11853c===null?undefined:new Date(_0x11853c);}function _0xc2d82d(_0x180dde){const _0x357573=_0x465652;_0x378bd6[_0x357573('0x1cf4')](_0x180dde);}}const _0x1b4719=_0x13db04,_0x4ab18e=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html/dialog.html';_0xfdda6c[_0x566993('0x17bb')]=['$cookies',_0x566993('0x66f'),'$state','$q',_0x566993('0x638'),'$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),'toasty',_0x566993('0xbd4'),_0x566993('0x1600')];function _0xfdda6c(_0x5082ca,_0x501804,_0x35cfdb,_0x512a77,_0x557e06,_0x1cb134,_0x267bc0,_0x5ab413,_0x43625c,_0x317415,_0x3e1a4a){const _0x30e7d2=_0x566993,_0x4352f2=this;_0x4352f2[_0x30e7d2('0x155f')]=_0x3e1a4a[_0x30e7d2('0x14d4')](),_0x4352f2[_0x30e7d2('0x1a78')]={},_0x4352f2['musiconholdMohSounds']={'count':0x0,'rows':[]},_0x4352f2[_0x30e7d2('0xfa4')]=[],_0x4352f2['crudPermissions'],_0x4352f2[_0x30e7d2('0xc49')]={'fields':'createdAt,updatedAt,id,save_name,converted_format,audio','limit':0xa,'page':0x1},_0x4352f2[_0x30e7d2('0xb9c')]=_0x11c02f,_0x4352f2[_0x30e7d2('0x2051')]=_0x1ef596,_0x4352f2[_0x30e7d2('0x20ec')]=_0x50d781,_0x4352f2[_0x30e7d2('0xdfe')]=_0x1c6f60,_0x4352f2[_0x30e7d2('0x1021')]=_0x5738a9,_0x4352f2[_0x30e7d2('0xc92')]=_0x5a1f03,_0x4352f2['exportSelectedMusicOnHoldMohSounds']=_0x142219,_0x4352f2['deleteMusicOnHoldMohSound']=_0x3fff49,_0x4352f2[_0x30e7d2('0x246a')]=_0x533110,_0x3e1a4a[_0x30e7d2('0x1b4e')](_0x30e7d2('0x79b'))?_0x317415[_0x30e7d2('0x156f')][_0x30e7d2('0x1d97')]({'fields':_0x30e7d2('0xd52'),'sort':_0x30e7d2('0x10ad')})[_0x30e7d2('0x1964')][_0x30e7d2('0x173b')](function(_0xf0390c){const _0x28d1ba=_0x30e7d2;_0x4352f2[_0x28d1ba('0x1230')]=_0xf0390c[_0x28d1ba('0x6aa')]||[];})[_0x30e7d2('0x103c')](function(_0x3ccb95){const _0x1ec19e=_0x30e7d2;_0x43625c[_0x1ec19e('0x15aa')]({'title':_0x3ccb95[_0x1ec19e('0x276f')]?_0x1ec19e('0x137')+_0x3ccb95[_0x1ec19e('0x276f')]+'\x20-\x20'+_0x3ccb95[_0x1ec19e('0x2696')]:'SYSTEM:GET_SOUNDS','msg':_0x3ccb95[_0x1ec19e('0x1e07')]?JSON[_0x1ec19e('0x100b')](_0x3ccb95[_0x1ec19e('0x1e07')]):_0x3ccb95[_0x1ec19e('0x1b75')]()});}):_0x317415[_0x30e7d2('0x156f')][_0x30e7d2('0x1d97')]({'fields':_0x30e7d2('0xd52'),'sort':_0x30e7d2('0x10ad')})[_0x30e7d2('0x1964')][_0x30e7d2('0x173b')](function(_0x329d9b){const _0x295a57=_0x30e7d2;_0x4352f2[_0x295a57('0x1230')]=_0x329d9b[_0x295a57('0x6aa')]||[];})[_0x30e7d2('0x173b')](function(){const _0x9ea7b=_0x30e7d2;return _0x317415['userProfileSection']['get']({'userProfileId':_0x4352f2['currentUser'][_0x9ea7b('0x1946')],'sectionId':0x3ef})[_0x9ea7b('0x1964')];})['then'](function(_0x38c21d){const _0x5b597d=_0x30e7d2,_0x210790=_0x38c21d&&_0x38c21d['rows']?_0x38c21d[_0x5b597d('0x6aa')][0x0]:null;if(!_0x210790){const _0x59144a=[];let _0x406ed3=null;_0x4352f2[_0x5b597d('0x1a78')]&&(_0x406ed3=_0x3c8d8a()['find'](_0x4352f2[_0x5b597d('0x1230')],{'id':Number(_0x4352f2[_0x5b597d('0x1a78')]['id'])}));for(let _0x364f7a=0x0;_0x364f7a<_0x4352f2[_0x5b597d('0x1230')][_0x5b597d('0x543')];_0x364f7a++){_0x406ed3&&_0x4352f2[_0x5b597d('0x1230')][_0x364f7a]['id']===_0x406ed3['id']&&(_0x4352f2[_0x5b597d('0x1230')][_0x364f7a][_0x5b597d('0x268e')]=![],_0x59144a[_0x5b597d('0x18bb')](_0x4352f2['sounds'][_0x364f7a]));}_0x4352f2[_0x5b597d('0x1230')]=_0x59144a;}else{if(!_0x210790[_0x5b597d('0x273e')])return _0x317415[_0x5b597d('0xda9')][_0x5b597d('0x1d97')]({'sectionId':_0x210790['id']})['$promise']['then'](function(_0x5bd597){const _0x4578cc=_0x5b597d,_0x1c9773=_0x3c8d8a()[_0x4578cc('0x8a2')](_0x5bd597[_0x4578cc('0x6aa')],function(_0x4a559a){const _0x18d55d=_0x4578cc;return _0x3c8d8a()[_0x18d55d('0x18ab')](_0x4352f2[_0x18d55d('0x1230')],{'id':_0x4a559a[_0x18d55d('0x1ce0')]});});let _0x12acf3=null;_0x4352f2[_0x4578cc('0x1a78')]&&(_0x12acf3=_0x3c8d8a()['find'](_0x4352f2[_0x4578cc('0x1230')],{'id':Number(_0x4352f2[_0x4578cc('0x1a78')]['id'])}));if(_0x12acf3&&!_0x3c8d8a()[_0x4578cc('0x1ec')](_0x1c9773,['id',_0x12acf3['id']])){const _0x4a59eb=_0x3c8d8a()[_0x4578cc('0x18ab')](_0x4352f2[_0x4578cc('0x1230')],{'id':_0x12acf3['id']});_0x4a59eb['canSelect']=![],_0x1c9773[_0x4578cc('0x18bb')](_0x4a59eb);}_0x4352f2[_0x4578cc('0x1230')]=_0x1c9773;});}})[_0x30e7d2('0x103c')](function(_0x3ebc41){const _0x5825a6=_0x30e7d2;_0x43625c[_0x5825a6('0x15aa')]({'title':_0x3ebc41['status']?_0x5825a6('0x137')+_0x3ebc41[_0x5825a6('0x276f')]+'\x20-\x20'+_0x3ebc41[_0x5825a6('0x2696')]:'SYSTEM:GETsounds','msg':_0x3ebc41['data']?JSON[_0x5825a6('0x100b')](_0x3ebc41['data']):_0x3ebc41[_0x5825a6('0x1b75')]()});});function _0x11c02f(_0x29b47e,_0x50a3fe){const _0x5f1879=_0x30e7d2;_0x4352f2[_0x5f1879('0x1a78')]=_0x29b47e,_0x4352f2[_0x5f1879('0x1dc1')]=typeof _0x50a3fe!=='undefined'?_0x50a3fe:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4352f2['query'][_0x5f1879('0x274e')]=_0x4352f2[_0x5f1879('0x1a78')]['id'],_0x4352f2[_0x5f1879('0xc49')]['id']=_0x4352f2['musiconhold']['id'],_0x5738a9();}function _0x50d781(_0xfb9163,_0x48c0b4,_0x14a25c){const _0x4bda54=_0x30e7d2;return _0x317415[_0x4bda54('0x156f')][_0x4bda54('0xfce')]({'id':_0xfb9163['id'],'exists':!![],'attachments':_0x14a25c})[_0x4bda54('0x1964')]['then'](function(_0x2bc563){const _0x5a99f1=_0x4bda54,_0x3a2f6d=[_0x2bc563[_0x5a99f1('0x1c22')]];let _0x8f6287=_0x5a99f1('0x2804')+_0xfb9163['id'];const _0x456bd9=new Blob(_0x3a2f6d,{'type':_0x2bc563[_0x5a99f1('0x1810')]});_0x8f6287=_0xfb9163['converted_format']?_0xfb9163[_0x5a99f1('0x14c8')]+'.'+_0xfb9163[_0x5a99f1('0x260b')]:_0xfb9163['save_name'];const _0x34e1fb=window[_0x5a99f1('0x222a')][_0x5a99f1('0x1258')]('a');_0x34e1fb[_0x5a99f1('0x11c3')](_0x5a99f1('0x165c'),URL[_0x5a99f1('0x1466')](_0x456bd9)),_0x34e1fb['setAttribute'](_0x5a99f1('0xfce'),_0x8f6287),document['body']['appendChild'](_0x34e1fb),_0x34e1fb[_0x5a99f1('0x3cb')]();})[_0x4bda54('0x103c')](function(_0x20c246){const _0x8116b8=_0x4bda54;if(_0x20c246[_0x8116b8('0x1e07')]&&_0x20c246[_0x8116b8('0x1e07')]['errors']&&_0x20c246[_0x8116b8('0x1e07')][_0x8116b8('0x1d4a')]['length'])for(let _0x5075ff=0x0;_0x5075ff<_0x20c246[_0x8116b8('0x1e07')]['errors'][_0x8116b8('0x543')];_0x5075ff+=0x1){_0x43625c['error']({'title':_0x20c246[_0x8116b8('0x1e07')][_0x8116b8('0x1d4a')][_0x5075ff][_0x8116b8('0x1810')],'msg':_0x20c246['data'][_0x8116b8('0x1d4a')][_0x5075ff][_0x8116b8('0x67f')]});}else _0x43625c[_0x8116b8('0x15aa')]({'title':_0x20c246[_0x8116b8('0x276f')]?_0x8116b8('0x137')+_0x20c246[_0x8116b8('0x276f')]+'\x20-\x20'+_0x20c246[_0x8116b8('0x2696')]:_0x8116b8('0xfc5'),'msg':_0x20c246[_0x8116b8('0x1e07')]?JSON[_0x8116b8('0x100b')](_0x20c246['data'][_0x8116b8('0x67f')]):_0x20c246[_0x8116b8('0x1b75')]()});});}function _0x1ef596(_0x2b9de0,_0x34f80b){const _0x15c396=_0x30e7d2,_0x75a3c5=_0x267bc0['confirm']()[_0x15c396('0x20d6')](_0x15c396('0x17f1'))[_0x15c396('0xf8b')](_0x15c396('0x15b9')+(_0x2b9de0[_0x15c396('0x10ad')]||_0x2b9de0['id']&&_0x3c8d8a()['upperFirst'](_0x15c396('0xc45'))+_0x2b9de0['id']||'mohSound')+_0x15c396('0x24be')+_0x15c396('0xd23'))[_0x15c396('0x217')]('delete\x20mohSound')[_0x15c396('0x21de')](_0x34f80b)['ok']('OK')[_0x15c396('0x1e1f')](_0x15c396('0x468'));_0x267bc0[_0x15c396('0x1cb7')](_0x75a3c5)[_0x15c396('0x173b')](function(){_0x3fff49(_0x2b9de0);},function(){const _0x2b0c01=_0x15c396;console[_0x2b0c01('0xe37')]('CANCEL');});}function _0x1c6f60(_0x196b8b){const _0x95b8aa=_0x30e7d2;_0x4352f2[_0x95b8aa('0x81e')]=_0x196b8b||{'count':0x0,'rows':[]};}function _0x5738a9(){const _0x97dfdc=_0x30e7d2;_0x4352f2['query'][_0x97dfdc('0x17f0')]=(_0x4352f2[_0x97dfdc('0xc49')][_0x97dfdc('0x182e')]-0x1)*_0x4352f2[_0x97dfdc('0xc49')][_0x97dfdc('0x3e')],_0x4352f2[_0x97dfdc('0x2219')]=_0x317415[_0x97dfdc('0x1bb5')][_0x97dfdc('0x1eb')](_0x4352f2[_0x97dfdc('0xc49')],_0x1c6f60)[_0x97dfdc('0x1964')];}function _0x5a1f03(_0x591b20,_0xd9f04c){const _0x502399=_0x30e7d2;_0x267bc0['show']({'controller':'CreateOrEditMohSoundDialogController','controllerAs':'vm','templateUrl':_0x4ab18e,'parent':angular['element'](_0x5ab413['body']),'targetEvent':_0x591b20,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x4352f2[_0x502399('0x1a78')],'mohSound':_0xd9f04c,'mohSounds':_0x4352f2['musiconholdMohSounds'][_0x502399('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x4352f2[_0x502399('0x1dc1')]}});}function _0x3fff49(_0x96e408){const _0x28bbbb=_0x30e7d2;_0x317415['voiceMusicOnHold'][_0x28bbbb('0xe03')]({'id':_0x35cfdb[_0x28bbbb('0x197a')]['id'],'id2':_0x96e408['id']})[_0x28bbbb('0x1964')][_0x28bbbb('0x173b')](function(){const _0x4e4bff=_0x28bbbb;_0x3c8d8a()[_0x4e4bff('0x1a8b')](_0x4352f2[_0x4e4bff('0x81e')]['rows'],{'id':_0x96e408['id']}),_0x4352f2[_0x4e4bff('0x81e')][_0x4e4bff('0x1a2f')]-=0x1,!_0x4352f2[_0x4e4bff('0x81e')][_0x4e4bff('0x6aa')][_0x4e4bff('0x543')]&&_0x5738a9(),_0x43625c[_0x4e4bff('0xdfe')]({'title':_0x4e4bff('0x2073'),'msg':_0x96e408[_0x4e4bff('0x10ad')]?_0x96e408[_0x4e4bff('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x28bbbb('0x103c')](function(_0x2b6a8f){const _0x4a9a6b=_0x28bbbb;if(_0x2b6a8f[_0x4a9a6b('0x1e07')]&&_0x2b6a8f[_0x4a9a6b('0x1e07')][_0x4a9a6b('0x1d4a')]&&_0x2b6a8f['data'][_0x4a9a6b('0x1d4a')][_0x4a9a6b('0x543')]){_0x4352f2[_0x4a9a6b('0x1d4a')]=_0x2b6a8f[_0x4a9a6b('0x1e07')][_0x4a9a6b('0x1d4a')]||[{'message':_0x2b6a8f[_0x4a9a6b('0x1b75')](),'type':_0x4a9a6b('0x13a9')}];for(let _0x123e81=0x0;_0x123e81<_0x2b6a8f[_0x4a9a6b('0x1e07')][_0x4a9a6b('0x1d4a')][_0x4a9a6b('0x543')];_0x123e81++){_0x43625c[_0x4a9a6b('0x15aa')]({'title':_0x2b6a8f[_0x4a9a6b('0x1e07')][_0x4a9a6b('0x1d4a')][_0x123e81][_0x4a9a6b('0x1810')],'msg':_0x2b6a8f['data'][_0x4a9a6b('0x1d4a')][_0x123e81][_0x4a9a6b('0x67f')]});}}else _0x43625c[_0x4a9a6b('0x15aa')]({'title':_0x2b6a8f[_0x4a9a6b('0x276f')]?'API:'+_0x2b6a8f[_0x4a9a6b('0x276f')]+_0x4a9a6b('0x160c')+_0x2b6a8f[_0x4a9a6b('0x2696')]:_0x4a9a6b('0x13a9'),'msg':_0x2b6a8f[_0x4a9a6b('0x1e07')]?JSON[_0x4a9a6b('0x100b')](_0x2b6a8f[_0x4a9a6b('0x1e07')][_0x4a9a6b('0x67f')]):_0x2b6a8f[_0x4a9a6b('0x67f')]||_0x2b6a8f[_0x4a9a6b('0x1b75')]()});});}function _0x142219(){const _0x520c57=_0x30e7d2,_0x1ddc5a=angular['copy'](_0x4352f2[_0x520c57('0xfa4')]);return _0x4352f2['selectedMusicOnHoldMohSounds']=[],_0x1ddc5a;}function _0x533110(_0x57c4e1){const _0x5a9747=_0x30e7d2,_0xfedb4d=_0x267bc0['confirm']()[_0x5a9747('0x20d6')](_0x5a9747('0x4b7'))[_0x5a9747('0xf8b')](_0x5a9747('0x15b9')+_0x4352f2['selectedMusicOnHoldMohSounds']['length']+_0x5a9747('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5a9747('0xc1d'))[_0x5a9747('0x21de')](_0x57c4e1)['ok']('OK')[_0x5a9747('0x1e1f')](_0x5a9747('0x468'));_0x267bc0[_0x5a9747('0x1cb7')](_0xfedb4d)[_0x5a9747('0x173b')](function(){const _0x2ad626=_0x5a9747;_0x4352f2[_0x2ad626('0xfa4')]['forEach'](function(_0x42ca55){_0x3fff49(_0x42ca55);}),_0x4352f2[_0x2ad626('0xfa4')]=[];});}let _0x2e63ef=!![],_0x139ef1=0x1;_0x501804[_0x30e7d2('0x1bdb')](_0x30e7d2('0x5b8'),function(_0x17c2dc,_0xb6c242){const _0x16ecbe=_0x30e7d2;_0x2e63ef?_0x1cb134(function(){_0x2e63ef=![];}):(!_0xb6c242&&(_0x139ef1=_0x4352f2[_0x16ecbe('0xc49')][_0x16ecbe('0x182e')]),_0x17c2dc!==_0xb6c242&&(_0x4352f2[_0x16ecbe('0xc49')][_0x16ecbe('0x182e')]=0x1),!_0x17c2dc&&(_0x4352f2[_0x16ecbe('0xc49')][_0x16ecbe('0x182e')]=_0x139ef1),_0x5738a9());});}const _0xfc97c5=_0xfdda6c;_0x29e2e1[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0xf29'),_0x566993('0x2804'),_0x566993('0xbd4'),_0x566993('0x1600'),'license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x29e2e1(_0x4e0b62,_0x47aa9e,_0x43d1eb,_0xf5b6fb,_0x195459,_0x5ea840,_0x43e1f8,_0x1cad18,_0x127415,_0x4b9047,_0xda3848,_0x53b326,_0x316924,_0x2fe3e8){const _0x512c5c=_0x566993,_0x55fa5e=this;_0x55fa5e[_0x512c5c('0x155f')]=_0xda3848['getCurrentUser'](),_0x55fa5e[_0x512c5c('0x1d4a')]=[],_0x55fa5e[_0x512c5c('0x251')]=_0x316924,_0x55fa5e[_0x512c5c('0x1a29')]=_0x53b326,_0x55fa5e[_0x512c5c('0x1dc1')]=_0x2fe3e8,_0x55fa5e['hasModulePermissions']={},_0x55fa5e['passwordPattern']=_0x55fa5e[_0x512c5c('0x251')]&&_0x55fa5e['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x55fa5e[_0x512c5c('0x20d6')]='VOICE.EDIT_MOHSOUND',_0x55fa5e[_0x512c5c('0x2804')]=angular['copy'](_0x127415),_0x55fa5e[_0x512c5c('0xf29')]=_0x1cad18,_0x55fa5e['newMohSound']=![];!_0x55fa5e[_0x512c5c('0x2804')]&&(_0x55fa5e[_0x512c5c('0x2804')]={},_0x55fa5e[_0x512c5c('0x20d6')]=_0x512c5c('0x25d9'),_0x55fa5e[_0x512c5c('0x17c4')]=!![]);_0x47aa9e['params']['id']&&(_0x55fa5e[_0x512c5c('0x2804')][_0x512c5c('0x274e')]=_0x47aa9e[_0x512c5c('0x197a')]['id']);_0x55fa5e[_0x512c5c('0x1ab4')]=_0x226f07,_0x55fa5e[_0x512c5c('0xa9')]=_0x405c5d,_0x55fa5e[_0x512c5c('0xea7')]=_0x5790ba,_0x55fa5e[_0x512c5c('0x11ae')]=_0x332adc,_0x55fa5e['closeDialog']=_0x42c46b,_0xda3848[_0x512c5c('0x1b4e')](_0x512c5c('0x79b'))?_0x4b9047[_0x512c5c('0x156f')][_0x512c5c('0x1d97')]({'fields':_0x512c5c('0xd52'),'sort':_0x512c5c('0x10ad')})[_0x512c5c('0x1964')][_0x512c5c('0x173b')](function(_0x25b4d0){const _0x5c814a=_0x512c5c;_0x55fa5e[_0x5c814a('0x1230')]=_0x25b4d0[_0x5c814a('0x6aa')]||[];})['catch'](function(_0x525cf8){const _0x26d3eb=_0x512c5c;_0x43e1f8['error']({'title':_0x525cf8[_0x26d3eb('0x276f')]?_0x26d3eb('0x137')+_0x525cf8[_0x26d3eb('0x276f')]+_0x26d3eb('0x160c')+_0x525cf8[_0x26d3eb('0x2696')]:_0x26d3eb('0xf44'),'msg':_0x525cf8[_0x26d3eb('0x1e07')]?JSON[_0x26d3eb('0x100b')](_0x525cf8['data']):_0x525cf8[_0x26d3eb('0x1b75')]()});}):_0x4b9047['sound'][_0x512c5c('0x1d97')]({'fields':_0x512c5c('0xd52'),'sort':_0x512c5c('0x10ad')})[_0x512c5c('0x1964')]['then'](function(_0x263005){const _0x420743=_0x512c5c;_0x55fa5e['sounds']=_0x263005[_0x420743('0x6aa')]||[];})['then'](function(){const _0x4eef3c=_0x512c5c;return _0x4b9047[_0x4eef3c('0x170e')][_0x4eef3c('0x1d97')]({'userProfileId':_0x55fa5e['currentUser']['userProfileId'],'sectionId':0x3ef})[_0x4eef3c('0x1964')];})[_0x512c5c('0x173b')](function(_0x38a0c3){const _0x4cf29f=_0x512c5c,_0x4357aa=_0x38a0c3&&_0x38a0c3['rows']?_0x38a0c3[_0x4cf29f('0x6aa')][0x0]:null;if(!_0x4357aa){const _0x5130cf=[];let _0xf7967b=null;_0x55fa5e['mohSound']&&(_0xf7967b=_0x3c8d8a()[_0x4cf29f('0x18ab')](_0x55fa5e[_0x4cf29f('0x1230')],{'id':Number(_0x55fa5e[_0x4cf29f('0x2804')]['id'])}));for(let _0x57e4ac=0x0;_0x57e4ac<_0x55fa5e[_0x4cf29f('0x1230')][_0x4cf29f('0x543')];_0x57e4ac++){_0xf7967b&&_0x55fa5e[_0x4cf29f('0x1230')][_0x57e4ac]['id']===_0xf7967b['id']&&(_0x55fa5e[_0x4cf29f('0x1230')][_0x57e4ac]['canSelect']=![],_0x5130cf['push'](_0x55fa5e[_0x4cf29f('0x1230')][_0x57e4ac]));}_0x55fa5e[_0x4cf29f('0x1230')]=_0x5130cf;}else{if(!_0x4357aa['autoAssociation'])return _0x4b9047[_0x4cf29f('0xda9')][_0x4cf29f('0x1d97')]({'sectionId':_0x4357aa['id']})[_0x4cf29f('0x1964')][_0x4cf29f('0x173b')](function(_0x1602ef){const _0x2cf8f4=_0x4cf29f,_0x17b291=_0x3c8d8a()[_0x2cf8f4('0x8a2')](_0x1602ef[_0x2cf8f4('0x6aa')],function(_0x5346f0){const _0xde6686=_0x2cf8f4;return _0x3c8d8a()[_0xde6686('0x18ab')](_0x55fa5e[_0xde6686('0x1230')],{'id':_0x5346f0['resourceId']});});let _0x680e85=null;_0x55fa5e[_0x2cf8f4('0x2804')]&&(_0x680e85=_0x3c8d8a()['find'](_0x55fa5e[_0x2cf8f4('0x1230')],{'id':Number(_0x55fa5e[_0x2cf8f4('0x2804')]['id'])}));if(_0x680e85&&!_0x3c8d8a()['some'](_0x17b291,['id',_0x680e85['id']])){const _0x220502=_0x3c8d8a()[_0x2cf8f4('0x18ab')](_0x55fa5e[_0x2cf8f4('0x1230')],{'id':_0x680e85['id']});_0x220502[_0x2cf8f4('0x268e')]=![],_0x17b291[_0x2cf8f4('0x18bb')](_0x220502);}_0x55fa5e[_0x2cf8f4('0x1230')]=_0x17b291;});}})[_0x512c5c('0x103c')](function(_0x10e398){const _0x5ce07e=_0x512c5c;_0x43e1f8[_0x5ce07e('0x15aa')]({'title':_0x10e398[_0x5ce07e('0x276f')]?_0x5ce07e('0x137')+_0x10e398['status']+_0x5ce07e('0x160c')+_0x10e398['statusText']:_0x5ce07e('0x56a'),'msg':_0x10e398[_0x5ce07e('0x1e07')]?JSON[_0x5ce07e('0x100b')](_0x10e398[_0x5ce07e('0x1e07')]):_0x10e398['toString']()});});function _0x226f07(){const _0x1db8bf=_0x512c5c;_0x55fa5e[_0x1db8bf('0x1d4a')]=[],_0x4b9047[_0x1db8bf('0x1bb5')]['addSound']({'id':_0x47aa9e[_0x1db8bf('0x197a')]['id']},_0x55fa5e[_0x1db8bf('0x2804')])[_0x1db8bf('0x1964')][_0x1db8bf('0x173b')](function(_0x5016cc){const _0x3a3eb0=_0x1db8bf;_0x55fa5e[_0x3a3eb0('0xf29')][_0x3a3eb0('0x1377')](_0x5016cc[_0x3a3eb0('0xf1f')]()),_0x43e1f8[_0x3a3eb0('0xdfe')]({'title':_0x3a3eb0('0x283b'),'msg':_0x55fa5e[_0x3a3eb0('0x2804')][_0x3a3eb0('0x10ad')]?_0x55fa5e[_0x3a3eb0('0x2804')]['name']+_0x3a3eb0('0x209a'):''}),_0x42c46b(_0x5016cc);})[_0x1db8bf('0x103c')](function(_0x751f3a){const _0xe6b16f=_0x1db8bf;if(_0x751f3a[_0xe6b16f('0x1e07')]&&_0x751f3a[_0xe6b16f('0x1e07')]['errors']&&_0x751f3a[_0xe6b16f('0x1e07')]['errors'][_0xe6b16f('0x543')]){_0x55fa5e[_0xe6b16f('0x1d4a')]=_0x751f3a[_0xe6b16f('0x1e07')]['errors']||[{'message':_0x751f3a[_0xe6b16f('0x1b75')](),'type':_0xe6b16f('0xfc5')}];for(let _0x39d45e=0x0;_0x39d45e<_0x751f3a['data']['errors'][_0xe6b16f('0x543')];_0x39d45e+=0x1){_0x43e1f8[_0xe6b16f('0x15aa')]({'title':_0x751f3a[_0xe6b16f('0x1e07')][_0xe6b16f('0x1d4a')][_0x39d45e][_0xe6b16f('0x1810')],'msg':_0x751f3a[_0xe6b16f('0x1e07')][_0xe6b16f('0x1d4a')][_0x39d45e]['message']});}}else _0x43e1f8[_0xe6b16f('0x15aa')]({'title':_0x751f3a[_0xe6b16f('0x276f')]?'API:'+_0x751f3a[_0xe6b16f('0x276f')]+_0xe6b16f('0x160c')+_0x751f3a['statusText']:_0xe6b16f('0xfc5'),'msg':_0x751f3a[_0xe6b16f('0x1e07')]?JSON[_0xe6b16f('0x100b')](_0x751f3a['data'][_0xe6b16f('0x67f')]):_0x751f3a[_0xe6b16f('0x1b75')]()});});}function _0x405c5d(){const _0x316f13=_0x512c5c;_0x55fa5e['errors']=[],_0x4b9047[_0x316f13('0x1bb5')][_0x316f13('0x1842')]({'id':_0x55fa5e[_0x316f13('0x2804')]['id']},_0x55fa5e['mohSound'])[_0x316f13('0x1964')][_0x316f13('0x173b')](function(_0x2238c7){const _0xdd403e=_0x316f13,_0x10226e=_0x3c8d8a()[_0xdd403e('0x18ab')](_0x55fa5e[_0xdd403e('0xf29')],{'id':_0x2238c7['id']});_0x10226e&&_0x3c8d8a()[_0xdd403e('0x9ef')](_0x10226e,_0x3c8d8a()[_0xdd403e('0x2114')](_0x2238c7[_0xdd403e('0xf1f')](),_0x3c8d8a()[_0xdd403e('0x1d3e')](_0x10226e))),_0x43e1f8[_0xdd403e('0xdfe')]({'title':_0xdd403e('0x17b4'),'msg':_0x55fa5e['mohSound'][_0xdd403e('0x10ad')]?_0x55fa5e[_0xdd403e('0x2804')]['name']+_0xdd403e('0x2788'):''}),_0x42c46b(_0x2238c7);})[_0x316f13('0x103c')](function(_0x8b6c7d){const _0x3e33c3=_0x316f13;if(_0x8b6c7d[_0x3e33c3('0x1e07')]&&_0x8b6c7d['data'][_0x3e33c3('0x1d4a')]&&_0x8b6c7d[_0x3e33c3('0x1e07')][_0x3e33c3('0x1d4a')][_0x3e33c3('0x543')]){_0x55fa5e[_0x3e33c3('0x1d4a')]=_0x8b6c7d[_0x3e33c3('0x1e07')][_0x3e33c3('0x1d4a')]||[{'message':_0x8b6c7d[_0x3e33c3('0x1b75')](),'type':'api.voiceMusicOnHold.update'}];for(let _0x2ddf39=0x0;_0x2ddf39<_0x8b6c7d['data'][_0x3e33c3('0x1d4a')][_0x3e33c3('0x543')];_0x2ddf39++){_0x43e1f8[_0x3e33c3('0x15aa')]({'title':_0x8b6c7d[_0x3e33c3('0x1e07')]['errors'][_0x2ddf39][_0x3e33c3('0x1810')],'msg':_0x8b6c7d[_0x3e33c3('0x1e07')][_0x3e33c3('0x1d4a')][_0x2ddf39][_0x3e33c3('0x67f')]});}}else _0x43e1f8[_0x3e33c3('0x15aa')]({'title':_0x8b6c7d['status']?'API:'+_0x8b6c7d[_0x3e33c3('0x276f')]+_0x3e33c3('0x160c')+_0x8b6c7d['statusText']:_0x3e33c3('0x1c48'),'msg':_0x8b6c7d[_0x3e33c3('0x1e07')]?JSON['stringify'](_0x8b6c7d[_0x3e33c3('0x1e07')][_0x3e33c3('0x67f')]):_0x8b6c7d[_0x3e33c3('0x1b75')]()});});}function _0x5790ba(_0x1e4972){const _0x4f7227=_0x512c5c;_0x55fa5e[_0x4f7227('0x1d4a')]=[];const _0xd1cde3=_0xf5b6fb[_0x4f7227('0x1d02')]()[_0x4f7227('0x20d6')](_0x4f7227('0x8ef'))[_0x4f7227('0x732')](_0x4f7227('0x903'))[_0x4f7227('0x217')](_0x4f7227('0x1ecd'))['ok'](_0x4f7227('0x2373'))[_0x4f7227('0x1e1f')](_0x4f7227('0x1d4e'))[_0x4f7227('0x21de')](_0x1e4972);_0xf5b6fb['show'](_0xd1cde3)[_0x4f7227('0x173b')](function(){const _0x3e45cd=_0x4f7227;_0x4b9047[_0x3e45cd('0x1bb5')][_0x3e45cd('0x15e8')]({'id':_0x55fa5e['mohSound']['id']})[_0x3e45cd('0x1964')][_0x3e45cd('0x173b')](function(){const _0x4316b8=_0x3e45cd;_0x3c8d8a()[_0x4316b8('0x1a8b')](_0x55fa5e[_0x4316b8('0xf29')],{'id':_0x55fa5e[_0x4316b8('0x2804')]['id']}),_0x43e1f8[_0x4316b8('0xdfe')]({'title':_0x4316b8('0x1589'),'msg':(_0x55fa5e[_0x4316b8('0x2804')][_0x4316b8('0x10ad')]||_0x4316b8('0x2804'))+_0x4316b8('0x25d2')}),_0x42c46b(_0x55fa5e[_0x4316b8('0x2804')]);})[_0x3e45cd('0x103c')](function(_0x3912f6){const _0x4b451f=_0x3e45cd;if(_0x3912f6[_0x4b451f('0x1e07')]&&_0x3912f6[_0x4b451f('0x1e07')]['errors']&&_0x3912f6[_0x4b451f('0x1e07')]['errors']['length']){_0x55fa5e[_0x4b451f('0x1d4a')]=_0x3912f6[_0x4b451f('0x1e07')][_0x4b451f('0x1d4a')]||[{'message':_0x3912f6[_0x4b451f('0x1b75')](),'type':_0x4b451f('0x2181')}];for(let _0x43fb58=0x0;_0x43fb58<_0x3912f6['data'][_0x4b451f('0x1d4a')][_0x4b451f('0x543')];_0x43fb58++){_0x43e1f8[_0x4b451f('0x15aa')]({'title':_0x3912f6[_0x4b451f('0x1e07')][_0x4b451f('0x1d4a')][_0x43fb58]['type'],'msg':_0x3912f6[_0x4b451f('0x1e07')][_0x4b451f('0x1d4a')][_0x43fb58][_0x4b451f('0x67f')]});}}else _0x43e1f8[_0x4b451f('0x15aa')]({'title':_0x3912f6[_0x4b451f('0x276f')]?'API:'+_0x3912f6['status']+_0x4b451f('0x160c')+_0x3912f6[_0x4b451f('0x2696')]:_0x4b451f('0x2181'),'msg':_0x3912f6[_0x4b451f('0x1e07')]?JSON[_0x4b451f('0x100b')](_0x3912f6['data'][_0x4b451f('0x67f')]):_0x3912f6[_0x4b451f('0x67f')]||_0x3912f6[_0x4b451f('0x1b75')]()});});},function(){});}function _0x332adc(_0x14899a){return _0x14899a===null?undefined:new Date(_0x14899a);}function _0x42c46b(_0x10fad6){const _0x429edc=_0x512c5c;_0xf5b6fb[_0x429edc('0x1cf4')](_0x10fad6);}}const _0xfcf4ea=_0x29e2e1;_0x57e925['$inject']=[_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$document',_0x566993('0x638'),_0x566993('0x1a29'),'setting','api','toasty',_0x566993('0x1600'),'musiconhold',_0x566993('0x170e')];function _0x57e925(_0x17958f,_0x4714dc,_0x5e1d8a,_0x43c853,_0x2374fc,_0x5bcf26,_0x337df9,_0x3d3382,_0x41119d,_0x182cd1,_0x1328aa,_0x4b45f7){const _0x24adb7=_0x566993,_0x4f8303=this;_0x4f8303[_0x24adb7('0x155f')]=_0x182cd1[_0x24adb7('0x14d4')](),_0x4f8303[_0x24adb7('0x1a29')]=_0x5bcf26,_0x4f8303[_0x24adb7('0x251')]=_0x337df9,_0x4f8303[_0x24adb7('0x644')]=_0x4f8303[_0x24adb7('0x251')][_0x24adb7('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4f8303[_0x24adb7('0x614')]=_0x4714dc[_0x24adb7('0x375')]()+_0x24adb7('0x122b')+_0x4714dc[_0x24adb7('0x4d1')](),_0x4f8303[_0x24adb7('0x1a78')]=_0x1328aa||_0x17958f[_0x24adb7('0x197a')][_0x24adb7('0x1a78')]||{},_0x4f8303['userProfileSection']=_0x4b45f7&&_0x4b45f7[_0x24adb7('0x1a2f')]==0x1?_0x4b45f7[_0x24adb7('0x6aa')][0x0]:null,_0x4f8303[_0x24adb7('0x1dc1')]=_0x182cd1[_0x24adb7('0xde6')](_0x4f8303[_0x24adb7('0x170e')]?_0x4f8303[_0x24adb7('0x170e')][_0x24adb7('0x1dc1')]:null),_0x4f8303[_0x24adb7('0xb0')]={},_0x4f8303['selectedTab']=_0x17958f[_0x24adb7('0x197a')][_0x24adb7('0x1e66')]||0x0,_0x4f8303[_0x24adb7('0x5a4')]=_0x41119d[_0x24adb7('0x2787')],_0x4f8303[_0x24adb7('0x19d3')]=_0x320bba,_0x4f8303[_0x24adb7('0x1beb')]=_0xfab402;function _0x320bba(){const _0x1b7c3b=_0x24adb7;_0x17958f['go'](_0x1b7c3b('0xb3a'),{},{'reload':_0x1b7c3b('0xb3a')});}function _0xfab402(){const _0x4cb598=_0x24adb7;_0x3d3382[_0x4cb598('0x1bb5')][_0x4cb598('0x1842')]({'id':_0x4f8303[_0x4cb598('0x1a78')]['id']},_0x4f8303[_0x4cb598('0x1a78')])[_0x4cb598('0x1964')][_0x4cb598('0x173b')](function(){const _0x5a838e=_0x4cb598;_0x41119d[_0x5a838e('0xdfe')]({'title':_0x5a838e('0x9a3'),'msg':_0x4f8303[_0x5a838e('0x1a78')][_0x5a838e('0x10ad')]?_0x4f8303[_0x5a838e('0x1a78')][_0x5a838e('0x10ad')]+_0x5a838e('0x1fd6'):''});})[_0x4cb598('0x103c')](function(_0x505899){const _0x52acc9=_0x4cb598;_0x41119d[_0x52acc9('0x15aa')]({'title':_0x505899[_0x52acc9('0x276f')]?_0x52acc9('0x137')+_0x505899[_0x52acc9('0x276f')]+'\x20-\x20'+_0x505899['statusText']:_0x52acc9('0x13a9'),'msg':_0x505899[_0x52acc9('0x1e07')]?JSON[_0x52acc9('0x100b')](_0x505899[_0x52acc9('0x1e07')]):_0x505899[_0x52acc9('0x1b75')]()});});}}const _0x5d9804=_0x57e925,_0xbb124f=_0x21a6a1['p']+_0x566993('0x1f2e');_0x48765d[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x5b9'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x48765d(_0xd455c,_0x22fb3b,_0xdd2858,_0x375998,_0x1d74a0,_0x3333d1,_0x38b822,_0x3e6dd7,_0x1ccf6b,_0x1979ee,_0x467886,_0x3cdb79,_0x456a91,_0x36fb8d,_0x5b804a,_0x2f7d04,_0x5649ab){const _0xc3978b=_0x566993,_0x3f18c3=this;_0x3f18c3['license']=_0x2f7d04,_0x3f18c3[_0xc3978b('0x251')]=_0x5649ab,_0x3f18c3[_0xc3978b('0x155f')]=_0x5b804a[_0xc3978b('0x14d4')](),_0x3f18c3[_0xc3978b('0x5b9')]=_0x1ccf6b||{'count':0x0,'rows':[]},_0x3f18c3[_0xc3978b('0x257b')]=_0x1979ee,_0x3f18c3[_0xc3978b('0x170e')]=_0x467886&&_0x467886[_0xc3978b('0x1a2f')]==0x1?_0x467886[_0xc3978b('0x6aa')][0x0]:null,_0x3f18c3[_0xc3978b('0x1dc1')]=_0x5b804a[_0xc3978b('0xde6')](_0x3f18c3[_0xc3978b('0x170e')]?_0x3f18c3[_0xc3978b('0x170e')][_0xc3978b('0x1dc1')]:null),_0x3f18c3[_0xc3978b('0xdf9')]=_0xc3978b('0x5b9'),_0x3f18c3[_0xc3978b('0x14d6')]='',_0x3f18c3[_0xc3978b('0x2303')]=null,_0x3f18c3[_0xc3978b('0x1ee3')]=[],_0x3f18c3[_0xc3978b('0xc49')]={'fields':_0xc3978b('0x81'),'defaultEntry':_0xc3978b('0xdcd'),'limit':0xa,'page':0x1},_0x3f18c3[_0xc3978b('0x99')]=_0x3c8d8a()[_0xc3978b('0x128')]([{'option':'Files','value':_0xc3978b('0x114')},{'option':_0xc3978b('0x1cf8'),'value':_0xc3978b('0x1c90')}],function(_0x349ba2){const _0x2b28bc=_0xc3978b;return _0x3c8d8a()[_0x2b28bc('0x166c')](_0x349ba2[_0x2b28bc('0xa7b')],new RegExp('\x27','g'),'');}),_0x3f18c3['arraysort']=_0x3c8d8a()[_0xc3978b('0x128')]([{'option':_0xc3978b('0xcf'),'value':_0xc3978b('0x8e')},{'option':_0xc3978b('0x5a0'),'value':_0xc3978b('0xdbf')}],function(_0x3ad2dc){const _0x3a6db5=_0xc3978b;return _0x3c8d8a()[_0x3a6db5('0x166c')](_0x3ad2dc['value'],new RegExp('\x27','g'),'');}),_0x3f18c3[_0xc3978b('0x222e')]=_0x1d4bf1,_0x3f18c3[_0xc3978b('0x1a20')]=_0x218643,_0x3f18c3[_0xc3978b('0xdfe')]=_0x34f053,_0x3f18c3[_0xc3978b('0x111e')]=_0x1037db,_0x3f18c3[_0xc3978b('0xd0b')]=_0x4708db,_0x3f18c3['deleteMusicOnHold']=_0x57640b,_0x3f18c3[_0xc3978b('0x1e63')]=_0x5343ba,_0x3f18c3[_0xc3978b('0x868')]=_0x5ecacc,_0x3f18c3[_0xc3978b('0x844')]=_0x450e2a,_0x3f18c3['selectAllMusicOnHolds']=_0x47c44d;function _0x1d4bf1(_0x3929b0){const _0x462c0d=_0xc3978b;_0xdd2858['go'](_0x462c0d('0x116c'),{'id':_0x3929b0['id'],'musiconhold':_0x3929b0,'crudPermissions':_0x3f18c3[_0x462c0d('0x1dc1')]});}function _0x218643(_0x418d7f,_0x159a53){const _0x422b15=_0xc3978b,_0x20b4f7=_0x1d74a0[_0x422b15('0x1d02')]()[_0x422b15('0x20d6')](_0x422b15('0x5bb')+_0x3c8d8a()['startCase']('musiconhold')+'?')[_0x422b15('0xf8b')](_0x422b15('0x15b9')+(_0x418d7f[_0x422b15('0x10ad')]||'musiconhold')+''+_0x422b15('0xd23'))[_0x422b15('0x217')](_0x422b15('0x515'))[_0x422b15('0x21de')](_0x159a53)['ok']('OK')[_0x422b15('0x1e1f')](_0x422b15('0x468'));_0x1d74a0['show'](_0x20b4f7)[_0x422b15('0x173b')](function(){_0x57640b(_0x418d7f);},function(){const _0x7ad692=_0x422b15;console[_0x7ad692('0xe37')](_0x7ad692('0x468'));});}let _0x855a7d=!![],_0x11db17=0x1;_0xd455c['$watch'](_0xc3978b('0x157b'),function(_0x44aaf9,_0x1b0089){const _0xdcca77=_0xc3978b;_0x855a7d?_0x38b822(function(){_0x855a7d=![];}):(!_0x1b0089&&(_0x11db17=_0x3f18c3['query']['page']),_0x44aaf9!==_0x1b0089&&(_0x3f18c3[_0xdcca77('0xc49')]['page']=0x1),!_0x44aaf9&&(_0x3f18c3[_0xdcca77('0xc49')][_0xdcca77('0x182e')]=_0x11db17),_0x3f18c3[_0xdcca77('0x111e')]());});function _0x34f053(_0x5d6d90){const _0x1ad4d0=_0xc3978b;_0x3f18c3[_0x1ad4d0('0x5b9')]=_0x5d6d90||{'count':0x0,'rows':[]};}function _0x1037db(){const _0x4cabf0=_0xc3978b;_0x3f18c3[_0x4cabf0('0xc49')][_0x4cabf0('0x17f0')]=(_0x3f18c3[_0x4cabf0('0xc49')][_0x4cabf0('0x182e')]-0x1)*_0x3f18c3['query'][_0x4cabf0('0x3e')],_0x5b804a[_0x4cabf0('0x1b4e')](_0x4cabf0('0x79b'))?_0x3f18c3[_0x4cabf0('0x2219')]=_0x3cdb79['voiceMusicOnHold'][_0x4cabf0('0x1d97')](_0x3f18c3['query'],_0x34f053)[_0x4cabf0('0x1964')]:(_0x3f18c3[_0x4cabf0('0xc49')]['id']=_0x3f18c3[_0x4cabf0('0x257b')]['id'],_0x3f18c3['query'][_0x4cabf0('0x17c9')]=_0x4cabf0('0x1139'),_0x3f18c3[_0x4cabf0('0x2219')]=_0x3cdb79[_0x4cabf0('0x257b')][_0x4cabf0('0x135b')](_0x3f18c3['query'],_0x34f053)['$promise']);}function _0x4708db(_0x203d34,_0x215439){const _0x122ff5=_0xc3978b;_0x1d74a0[_0x122ff5('0x1cb7')]({'controller':'CreateOrEditMusicOnHoldDialogController','controllerAs':'vm','templateUrl':_0xbb124f,'parent':angular[_0x122ff5('0xb6d')](_0x3333d1['body']),'targetEvent':_0x203d34,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x215439,'musiconholds':_0x3f18c3[_0x122ff5('0x5b9')][_0x122ff5('0x6aa')],'license':_0x3f18c3['license'],'setting':_0x3f18c3[_0x122ff5('0x251')],'crudPermissions':_0x3f18c3[_0x122ff5('0x1dc1')]}});}function _0x57640b(_0x1959ad){const _0x2d59fb=_0xc3978b;_0x3cdb79[_0x2d59fb('0x1bb5')][_0x2d59fb('0x15e8')]({'id':_0x1959ad['id']})['$promise'][_0x2d59fb('0x173b')](function(){const _0x503841=_0x2d59fb;_0x3c8d8a()[_0x503841('0x1a8b')](_0x3f18c3[_0x503841('0x5b9')][_0x503841('0x6aa')],{'id':_0x1959ad['id']}),_0x3f18c3[_0x503841('0x5b9')]['count']-=0x1,!_0x3f18c3[_0x503841('0x5b9')][_0x503841('0x6aa')][_0x503841('0x543')]&&_0x3f18c3[_0x503841('0x111e')](),_0x36fb8d[_0x503841('0xdfe')]({'title':_0x3c8d8a()[_0x503841('0x10e')]('MusicOnHold')+'\x20deleted!','msg':_0x1959ad[_0x503841('0x10ad')]?_0x1959ad[_0x503841('0x10ad')]+_0x503841('0x25d2'):''});})[_0x2d59fb('0x103c')](function(_0x13cbe0){const _0xa9b997=_0x2d59fb;if(_0x13cbe0[_0xa9b997('0x1e07')]&&_0x13cbe0['data'][_0xa9b997('0x1d4a')]&&_0x13cbe0['data'][_0xa9b997('0x1d4a')][_0xa9b997('0x543')]){_0x3f18c3[_0xa9b997('0x1d4a')]=_0x13cbe0[_0xa9b997('0x1e07')]['errors']||[{'message':_0x13cbe0[_0xa9b997('0x1b75')](),'type':'SYSTEM:DELETEvoiceMusicOnHold'}];for(let _0xfd2203=0x0;_0xfd2203<_0x13cbe0[_0xa9b997('0x1e07')][_0xa9b997('0x1d4a')][_0xa9b997('0x543')];_0xfd2203++){_0x36fb8d[_0xa9b997('0x15aa')]({'title':_0x13cbe0[_0xa9b997('0x1e07')][_0xa9b997('0x1d4a')][_0xfd2203][_0xa9b997('0x1810')],'msg':_0x13cbe0['data'][_0xa9b997('0x1d4a')][_0xfd2203]['message']});}}else _0x36fb8d['error']({'title':_0x13cbe0[_0xa9b997('0x276f')]?_0xa9b997('0x137')+_0x13cbe0['status']+_0xa9b997('0x160c')+_0x13cbe0[_0xa9b997('0x2696')]:_0xa9b997('0x1892'),'msg':_0x13cbe0[_0xa9b997('0x1e07')]?JSON[_0xa9b997('0x100b')](_0x13cbe0[_0xa9b997('0x1e07')][_0xa9b997('0x67f')]):_0x13cbe0[_0xa9b997('0x67f')]||_0x13cbe0[_0xa9b997('0x1b75')]()});});}function _0x5343ba(){const _0x5c9d3b=_0xc3978b,_0x1f5054=angular[_0x5c9d3b('0x2e3')](_0x3f18c3[_0x5c9d3b('0x1ee3')]);return _0x3f18c3[_0x5c9d3b('0x1ee3')]=[],_0x1f5054;}function _0x5ecacc(_0x59a86a){const _0x2f13b7=_0xc3978b,_0x116207=_0x1d74a0['confirm']()[_0x2f13b7('0x20d6')](_0x2f13b7('0x219d'))['htmlContent'](''+_0x3f18c3[_0x2f13b7('0x1ee3')]['length']+_0x2f13b7('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x2f13b7('0x12a0'))['targetEvent'](_0x59a86a)['ok']('OK')['cancel'](_0x2f13b7('0x468'));_0x1d74a0[_0x2f13b7('0x1cb7')](_0x116207)[_0x2f13b7('0x173b')](function(){const _0x21fb57=_0x2f13b7;_0x3f18c3['selectedMusicOnHolds'][_0x21fb57('0xa6a')](function(_0x2cd0db){_0x57640b(_0x2cd0db);}),_0x3f18c3[_0x21fb57('0x1ee3')]=[];});}function _0x450e2a(){const _0x360519=_0xc3978b;_0x3f18c3[_0x360519('0x1ee3')]=[];}function _0x47c44d(){const _0x59c3b5=_0xc3978b;_0x3f18c3['selectedMusicOnHolds']=_0x3f18c3[_0x59c3b5('0x5b9')]['rows'];}}const _0x412e71=_0x48765d;_0x13c17b[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1ab7'),_0x566993('0xade'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x13c17b(_0x1929d1,_0x2d7ee3,_0x2180eb,_0xc1455a,_0x38bfec,_0x4e0665,_0x4e8b83,_0x5b824e,_0x5bb1b5,_0x401b5a,_0x309064,_0x4a45be,_0x2e20cf,_0xf217ad){const _0xd27258=_0x566993,_0x11901e=this;_0x11901e['currentUser']=_0x309064[_0xd27258('0x14d4')](),_0x11901e[_0xd27258('0x1d4a')]=[],_0x11901e[_0xd27258('0x251')]=_0x2e20cf,_0x11901e[_0xd27258('0x1a29')]=_0x4a45be,_0x11901e[_0xd27258('0x1dc1')]=_0xf217ad,_0x11901e['hasModulePermissions']={},_0x11901e[_0xd27258('0x644')]=_0x11901e[_0xd27258('0x251')]&&_0x11901e[_0xd27258('0x251')][_0xd27258('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x11901e[_0xd27258('0x20d6')]='VOICE.EDIT_OUTBOUNDROUTE',_0x11901e[_0xd27258('0xade')]=angular[_0xd27258('0x2e3')](_0x5bb1b5),_0x11901e['outboundroutes']=_0x5b824e,_0x11901e[_0xd27258('0x1988')]=![],_0x11901e['outboundrouteApps']={'count':0x0,'rows':[]},_0x11901e['apps']=_0x3c8d8a()[_0xd27258('0x12a4')](_0x3c8d8a()[_0xd27258('0x1b45')]([{'app':_0xd27258('0x1d55'),'appType':_0xd27258('0x55a'),'type':_0xd27258('0x2132'),'types':['always',_0xd27258('0xbb4'),'list'],'fields':[],'isApp':![]},{'app':_0xd27258('0x1020'),'appType':_0xd27258('0x2150'),'context':'from-sip','type':'Outbound','icon':_0xd27258('0x108b'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0xd27258('0x673'),'route':_0xd27258('0x15b7'),'filters':{'fields':_0xd27258('0x10ad'),'sort':_0xd27258('0x10ad')}},{'name':'tags','route':_0xd27258('0x23b4'),'filters':{'fields':_0xd27258('0x10ad'),'sort':_0xd27258('0x10ad'),'nolimit':!![]}}],'fields':[{'title':'Trunk','name':_0xd27258('0x15b7'),'type':_0xd27258('0x23fd'),'values':_0xd27258('0x673'),'value':_0xd27258('0xd41'),'option':_0xd27258('0xd41'),'required':!![],'param':0x0},{'title':_0xd27258('0x1cf6'),'name':_0xd27258('0xe95'),'type':_0xd27258('0x86e'),'ngPattern':'/"(.*)"\x5cs<(.*?)>$/','help':!![]},{'title':_0xd27258('0xfe3'),'name':_0xd27258('0x23f7'),'type':_0xd27258('0x86e')},{'title':_0xd27258('0xc38'),'name':_0xd27258('0x23b4'),'type':'apiselect','values':_0xd27258('0x22ac'),'value':_0xd27258('0x2648'),'option':'tag.name','defaultValues':[{'value':_0xd27258('0x1bf9'),'option':_0xd27258('0x2187')}]},{'title':_0xd27258('0x1b9a'),'name':_0xd27258('0x1f84'),'type':_0xd27258('0x1d81'),'min':0x0,'param':0x1},{'title':_0xd27258('0x17eb'),'name':_0xd27258('0x2010'),'type':_0xd27258('0x86e'),'param':0x2},{'title':_0xd27258('0x1e59'),'name':_0xd27258('0xd1'),'type':_0xd27258('0x86e'),'param':0x3}]},{'app':null,'type':_0xd27258('0x2132'),'appType':'custom','icon':_0xd27258('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xd27258('0x206d'),'name':_0xd27258('0x17e'),'type':_0xd27258('0x86e'),'required':!![],'param':0x0},{'title':_0xd27258('0xeb3'),'name':_0xd27258('0x1c00'),'type':'text','param':0x1}]}],[_0xd27258('0x17e')]),{'isApp':![]});!_0x11901e[_0xd27258('0xade')]&&(_0x11901e[_0xd27258('0xade')]={'appdata':_0xd27258('0x2380'),'type':'outbound','context':_0xd27258('0x13d6'),'recordingFormat':_0xd27258('0x2741')},_0x11901e[_0xd27258('0x20d6')]=_0xd27258('0x49f'),_0x11901e['newOutboundRoute']=!![]);_0x11901e[_0xd27258('0x103f')]=_0x20d94a,_0x11901e['saveOutboundRoute']=_0x3698d3,_0x11901e[_0xd27258('0x59f')]=_0x4914b1,_0x11901e[_0xd27258('0x11ae')]=_0x49c961,_0x11901e['rewriteRouting']=_0x7b9866,_0x11901e[_0xd27258('0x18e2')]=_0x4cfd81,_0x309064[_0xd27258('0x1b4e')](_0xd27258('0x79b'))?_0x401b5a['voiceContext'][_0xd27258('0x1d97')]({'fields':_0xd27258('0xd52'),'sort':_0xd27258('0x10ad'),'nolimit':'true'})[_0xd27258('0x1964')][_0xd27258('0x173b')](function(_0x44c723){const _0x43f30e=_0xd27258;_0x11901e[_0x43f30e('0x22a9')]=_0x44c723[_0x43f30e('0x6aa')]||[];})[_0xd27258('0x103c')](function(_0x1f7c24){const _0x8c6c57=_0xd27258;_0x4e8b83[_0x8c6c57('0x15aa')]({'title':_0x1f7c24[_0x8c6c57('0x276f')]?_0x8c6c57('0x137')+_0x1f7c24[_0x8c6c57('0x276f')]+_0x8c6c57('0x160c')+_0x1f7c24['statusText']:'SYSTEM:GET_CONTEXTS','msg':_0x1f7c24[_0x8c6c57('0x1e07')]?JSON[_0x8c6c57('0x100b')](_0x1f7c24[_0x8c6c57('0x1e07')]):_0x1f7c24[_0x8c6c57('0x1b75')]()});}):_0x401b5a['voiceContext']['get']({'fields':_0xd27258('0xd52'),'sort':'name','nolimit':'true'})[_0xd27258('0x1964')][_0xd27258('0x173b')](function(_0x3b866f){const _0x164ccc=_0xd27258;_0x11901e[_0x164ccc('0x22a9')]=_0x3b866f[_0x164ccc('0x6aa')]||[];})['then'](function(){const _0x3aae10=_0xd27258;return _0x401b5a[_0x3aae10('0x170e')][_0x3aae10('0x1d97')]({'userProfileId':_0x11901e[_0x3aae10('0x155f')]['userProfileId'],'sectionId':0x195})[_0x3aae10('0x1964')];})[_0xd27258('0x173b')](function(_0x4ee98d){const _0x578210=_0xd27258,_0x28e09f=_0x4ee98d&&_0x4ee98d['rows']?_0x4ee98d['rows'][0x0]:null;if(!_0x28e09f)return _0x401b5a[_0x578210('0xf01')][_0x578210('0x1d97')]({'fields':'id,name','sort':_0x578210('0x10ad'),'nolimit':_0x578210('0x799'),'defaultEntry':0x1})[_0x578210('0x1964')][_0x578210('0x173b')](function(_0x3c12db){const _0x387dc5=_0x578210;_0x11901e[_0x387dc5('0x22a9')]=_0x3c12db[_0x387dc5('0x6aa')]||[];});else{if(!_0x28e09f[_0x578210('0x273e')])return _0x401b5a[_0x578210('0xda9')]['get']({'sectionId':_0x28e09f['id']})['$promise'][_0x578210('0x173b')](function(_0x211323){const _0x3ab270=_0x578210,_0x68aeba=_0x3c8d8a()[_0x3ab270('0x8a2')](_0x211323[_0x3ab270('0x6aa')],function(_0x40f415){const _0x1b2d27=_0x3ab270;return _0x3c8d8a()[_0x1b2d27('0x18ab')](_0x11901e[_0x1b2d27('0x22a9')],{'id':_0x40f415[_0x1b2d27('0x1ce0')]});});let _0x2f9f4e=null;_0x11901e['outboundroute']&&(_0x2f9f4e=_0x3c8d8a()[_0x3ab270('0x18ab')](_0x11901e[_0x3ab270('0x22a9')],{'name':_0x11901e[_0x3ab270('0xade')][_0x3ab270('0x2b9')]}));if(_0x2f9f4e&&!_0x3c8d8a()[_0x3ab270('0x1ec')](_0x68aeba,['id',_0x2f9f4e['id']])){const _0x11127a=_0x3c8d8a()['find'](_0x11901e[_0x3ab270('0x22a9')],{'id':_0x2f9f4e['id']});_0x11127a['canSelect']=![],_0x68aeba['push'](_0x11127a);}_0x11901e[_0x3ab270('0x22a9')]=_0x68aeba;});}})[_0xd27258('0x103c')](function(_0x5a0c2b){const _0x51c4fa=_0xd27258;_0x4e8b83[_0x51c4fa('0x15aa')]({'title':_0x5a0c2b['status']?_0x51c4fa('0x137')+_0x5a0c2b['status']+_0x51c4fa('0x160c')+_0x5a0c2b[_0x51c4fa('0x2696')]:_0x51c4fa('0x18fd'),'msg':_0x5a0c2b[_0x51c4fa('0x1e07')]?JSON['stringify'](_0x5a0c2b['data']):_0x5a0c2b['toString']()});});function _0x20d94a(){const _0x13bcb8=_0xd27258;_0x11901e['errors']=[],_0x401b5a[_0x13bcb8('0x1630')][_0x13bcb8('0x1195')](_0x11901e['outboundroute'])['$promise'][_0x13bcb8('0x173b')](function(_0x237395){const _0x3825fe=_0x13bcb8;_0x11901e[_0x3825fe('0x1ab7')][_0x3825fe('0x1377')](_0x237395[_0x3825fe('0xf1f')]()),_0x4e8b83['success']({'title':'OutboundRoute\x20properly\x20created','msg':_0x11901e['outboundroute'][_0x3825fe('0x10ad')]?_0x11901e[_0x3825fe('0xade')][_0x3825fe('0x10ad')]+_0x3825fe('0x209a'):''}),_0x4cfd81(_0x237395);})['catch'](function(_0x346eb6){const _0x5aca46=_0x13bcb8;if(_0x346eb6[_0x5aca46('0x1e07')]&&_0x346eb6[_0x5aca46('0x1e07')]['errors']&&_0x346eb6['data']['errors'][_0x5aca46('0x543')]){_0x11901e['errors']=_0x346eb6[_0x5aca46('0x1e07')][_0x5aca46('0x1d4a')]||[{'message':_0x346eb6[_0x5aca46('0x1b75')](),'type':_0x5aca46('0x1870')}];for(let _0x39f8f2=0x0;_0x39f8f2<_0x346eb6['data']['errors'][_0x5aca46('0x543')];_0x39f8f2+=0x1){_0x4e8b83[_0x5aca46('0x15aa')]({'title':_0x346eb6[_0x5aca46('0x1e07')]['errors'][_0x39f8f2]['type'],'msg':_0x346eb6[_0x5aca46('0x1e07')][_0x5aca46('0x1d4a')][_0x39f8f2][_0x5aca46('0x67f')]});}}else _0x4e8b83[_0x5aca46('0x15aa')]({'title':_0x346eb6['status']?'API:'+_0x346eb6[_0x5aca46('0x276f')]+'\x20-\x20'+_0x346eb6['statusText']:_0x5aca46('0x1870'),'msg':_0x346eb6['data']?JSON[_0x5aca46('0x100b')](_0x346eb6[_0x5aca46('0x1e07')][_0x5aca46('0x67f')]):_0x346eb6['toString']()});});}function _0x3698d3(){const _0x208a3a=_0xd27258;_0x11901e['errors']=[],_0x401b5a[_0x208a3a('0x1630')][_0x208a3a('0x1842')]({'id':_0x11901e[_0x208a3a('0xade')]['id']},_0x11901e[_0x208a3a('0xade')])['$promise']['then'](function(_0x6a9c66){const _0x36a9a0=_0x208a3a,_0xf5bfb2=_0x3c8d8a()[_0x36a9a0('0x18ab')](_0x11901e[_0x36a9a0('0x1ab7')],{'id':_0x6a9c66['id']});_0xf5bfb2&&(_0x3c8d8a()[_0x36a9a0('0x9ef')](_0xf5bfb2,_0x3c8d8a()['pick'](_0x6a9c66[_0x36a9a0('0xf1f')](),_0x3c8d8a()[_0x36a9a0('0x1d3e')](_0xf5bfb2))),_0x401b5a[_0x36a9a0('0x1630')][_0x36a9a0('0x1d97')]({'sort':'priority','VoiceExtensionId':_0xf5bfb2['id'],'isApp':!![],'nolimit':!![]})[_0x36a9a0('0x1964')][_0x36a9a0('0x173b')](function(_0x31fa07){const _0x170cae=_0x36a9a0;_0x11901e[_0x170cae('0x259')]=_0x31fa07,_0x7b9866();})),_0x4e8b83[_0x36a9a0('0xdfe')]({'title':_0x36a9a0('0x18cb'),'msg':_0x11901e[_0x36a9a0('0xade')][_0x36a9a0('0x10ad')]?_0x11901e[_0x36a9a0('0xade')][_0x36a9a0('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x4cfd81(_0x6a9c66);})['catch'](function(_0x212106){const _0x7f2934=_0x208a3a;if(_0x212106['data']&&_0x212106['data'][_0x7f2934('0x1d4a')]&&_0x212106[_0x7f2934('0x1e07')][_0x7f2934('0x1d4a')][_0x7f2934('0x543')]){_0x11901e[_0x7f2934('0x1d4a')]=_0x212106['data'][_0x7f2934('0x1d4a')]||[{'message':_0x212106[_0x7f2934('0x1b75')](),'type':_0x7f2934('0x1fe2')}];for(let _0x3011d2=0x0;_0x3011d2<_0x212106[_0x7f2934('0x1e07')][_0x7f2934('0x1d4a')]['length'];_0x3011d2++){_0x4e8b83[_0x7f2934('0x15aa')]({'title':_0x212106['data']['errors'][_0x3011d2][_0x7f2934('0x1810')],'msg':_0x212106[_0x7f2934('0x1e07')][_0x7f2934('0x1d4a')][_0x3011d2][_0x7f2934('0x67f')]});}}else _0x4e8b83[_0x7f2934('0x15aa')]({'title':_0x212106['status']?'API:'+_0x212106[_0x7f2934('0x276f')]+_0x7f2934('0x160c')+_0x212106[_0x7f2934('0x2696')]:_0x7f2934('0x1fe2'),'msg':_0x212106[_0x7f2934('0x1e07')]?JSON[_0x7f2934('0x100b')](_0x212106[_0x7f2934('0x1e07')][_0x7f2934('0x67f')]):_0x212106[_0x7f2934('0x1b75')]()});});}function _0x4914b1(_0x32e106){const _0x1fa3ea=_0xd27258;_0x401b5a['voicePrefix']['get']({'VoiceExtensionId':_0x5bb1b5['id']})[_0x1fa3ea('0x1964')]['then'](function(_0x527aab){const _0x569a78=_0x1fa3ea;if(_0x527aab&&_0x527aab[_0x569a78('0x6aa')]&&_0x527aab[_0x569a78('0x6aa')][_0x569a78('0x543')]>0x0)return _0x4e8b83[_0x569a78('0x15aa')]({'title':_0x569a78('0x1b0d'),'msg':_0x569a78('0x17ef')});else{_0x11901e['errors']=[];const _0x582409=_0xc1455a['confirm']()[_0x569a78('0x20d6')](_0x569a78('0x8ef'))[_0x569a78('0x732')]('The\x20outboundroute\x20will\x20be\x20deleted.')[_0x569a78('0x217')](_0x569a78('0x10ab'))['ok']('Delete')[_0x569a78('0x1e1f')](_0x569a78('0x1d4e'))['targetEvent'](_0x32e106);_0xc1455a[_0x569a78('0x1cb7')](_0x582409)[_0x569a78('0x173b')](function(){const _0x35bf31=_0x569a78;_0x401b5a[_0x35bf31('0x1630')]['delete']({'id':_0x11901e[_0x35bf31('0xade')]['id']})[_0x35bf31('0x1964')]['then'](function(){const _0x53870e=_0x35bf31;_0x3c8d8a()[_0x53870e('0x1a8b')](_0x11901e['outboundroutes'],{'id':_0x11901e['outboundroute']['id']}),_0x4e8b83[_0x53870e('0xdfe')]({'title':_0x53870e('0xd83'),'msg':(_0x11901e[_0x53870e('0xade')][_0x53870e('0x10ad')]||_0x53870e('0xade'))+_0x53870e('0x25d2')}),_0x4cfd81(_0x11901e[_0x53870e('0xade')]);})[_0x35bf31('0x103c')](function(_0x46ef05){const _0x1a35b9=_0x35bf31;if(_0x46ef05[_0x1a35b9('0x1e07')]&&_0x46ef05['data']['errors']&&_0x46ef05['data']['errors'][_0x1a35b9('0x543')]){_0x11901e[_0x1a35b9('0x1d4a')]=_0x46ef05[_0x1a35b9('0x1e07')][_0x1a35b9('0x1d4a')]||[{'message':_0x46ef05[_0x1a35b9('0x1b75')](),'type':_0x1a35b9('0x917')}];for(let _0x58461e=0x0;_0x58461e<_0x46ef05['data'][_0x1a35b9('0x1d4a')][_0x1a35b9('0x543')];_0x58461e++){_0x4e8b83[_0x1a35b9('0x15aa')]({'title':_0x46ef05['data']['errors'][_0x58461e]['type'],'msg':_0x46ef05['data'][_0x1a35b9('0x1d4a')][_0x58461e][_0x1a35b9('0x67f')]});}}else _0x4e8b83[_0x1a35b9('0x15aa')]({'title':_0x46ef05['status']?_0x1a35b9('0x137')+_0x46ef05[_0x1a35b9('0x276f')]+_0x1a35b9('0x160c')+_0x46ef05[_0x1a35b9('0x2696')]:_0x1a35b9('0x917'),'msg':_0x46ef05[_0x1a35b9('0x1e07')]?JSON['stringify'](_0x46ef05[_0x1a35b9('0x1e07')]['message']):_0x46ef05[_0x1a35b9('0x67f')]||_0x46ef05['toString']()});});},function(){});}});}function _0x7b9866(){const _0x166be4=_0xd27258;let _0x28438a=0x2,_0x26fb47=[];_0x26fb47[_0x166be4('0x18bb')]({'type':_0x166be4('0xb33'),'app':_0x166be4('0x11b6'),'appdata':_0x166be4('0x1792'),'context':_0x11901e[_0x166be4('0xade')][_0x166be4('0x2b9')],'exten':_0x11901e[_0x166be4('0xade')]['exten'],'priority':_0x28438a++,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}),_0x26fb47[_0x166be4('0x18bb')]({'type':_0x166be4('0xb33'),'app':_0x166be4('0x11b6'),'appdata':_0x166be4('0x2091')+(_0x11901e[_0x166be4('0xade')][_0x166be4('0x1429')]?_0x166be4('0x1957')+_0x11901e[_0x166be4('0xade')]['cutdigits']+'}':'${EXTEN}'),'context':_0x11901e['outboundroute'][_0x166be4('0x2b9')],'exten':_0x11901e['outboundroute'][_0x166be4('0x1a60')],'priority':_0x28438a++,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}),_0x26fb47['push']({'type':_0x166be4('0xb33'),'app':_0x166be4('0x11b6'),'appdata':_0x166be4('0xfd5'),'context':_0x11901e[_0x166be4('0xade')][_0x166be4('0x2b9')],'exten':_0x11901e['outboundroute'][_0x166be4('0x1a60')],'priority':_0x28438a++,'VoiceExtensionId':_0x11901e['outboundroute']['id']}),_0x26fb47['push']({'type':_0x166be4('0xb33'),'app':_0x166be4('0x11b6'),'appdata':_0x166be4('0x4b3'),'context':_0x11901e['outboundroute'][_0x166be4('0x2b9')],'exten':_0x11901e[_0x166be4('0xade')][_0x166be4('0x1a60')],'priority':_0x28438a++,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}),_0x26fb47[_0x166be4('0x18bb')]({'type':_0x166be4('0xb33'),'app':'Set','appdata':_0x166be4('0x1d42'),'context':_0x11901e['outboundroute']['context'],'exten':_0x11901e[_0x166be4('0xade')]['exten'],'priority':_0x28438a++,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}),_0x26fb47[_0x166be4('0x18bb')]({'type':_0x166be4('0xb33'),'app':_0x166be4('0x11b6'),'appdata':_0x166be4('0x21ab')+_0x11901e[_0x166be4('0xade')]['id'],'context':_0x11901e[_0x166be4('0xade')][_0x166be4('0x2b9')],'exten':_0x11901e['outboundroute'][_0x166be4('0x1a60')],'priority':_0x28438a++,'VoiceExtensionId':_0x11901e['outboundroute']['id']});typeof _0x11901e[_0x166be4('0xade')][_0x166be4('0x76c')]!==_0x166be4('0x6e5')&&_0x11901e['outboundroute'][_0x166be4('0x76c')]!==_0x166be4('0x2741')&&(_0x26fb47[_0x166be4('0x18bb')]({'type':_0x166be4('0xb33'),'app':_0x166be4('0x11b6'),'appdata':_0x166be4('0x1b4c'),'context':_0x11901e['outboundroute'][_0x166be4('0x2b9')],'exten':_0x11901e[_0x166be4('0xade')]['exten'],'priority':_0x28438a++,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}),_0x26fb47[_0x166be4('0x18bb')]({'type':_0x166be4('0xb33'),'app':_0x166be4('0x11b6'),'appdata':_0x166be4('0x19c')+_0x11901e['outboundroute'][_0x166be4('0x76c')]||0x0,'context':_0x11901e[_0x166be4('0xade')]['context'],'exten':_0x11901e['outboundroute'][_0x166be4('0x1a60')],'priority':_0x28438a++,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}));for(let _0x515819=0x0,_0x899f69=0x0;_0x515819<_0x11901e['outboundrouteApps'][_0x166be4('0x6aa')][_0x166be4('0x543')];_0x515819++,_0x899f69=0x0){const _0x5e6ed7=_0x11901e[_0x166be4('0x259')][_0x166be4('0x6aa')][_0x515819],_0x1addd3=[],_0x3b6e8a=[];_0x5e6ed7[_0x166be4('0x21c4')]=_0x5e6ed7[_0x166be4('0x55a')]!==_0x166be4('0x17c5')?[_0x5e6ed7[_0x166be4('0x55a')]]:_0x5e6ed7[_0x166be4('0x600')]?_0x3c8d8a()[_0x166be4('0x8a2')](_0x3c8d8a()[_0x166be4('0x278d')](_0x11901e[_0x166be4('0x21c4')]['rows'],{'IntervalId':_0x5e6ed7[_0x166be4('0x600')]}),_0x166be4('0x55a')):[],_0x5e6ed7[_0x166be4('0x2b9')]=_0x11901e[_0x166be4('0xade')][_0x166be4('0x2b9')],_0x5e6ed7[_0x166be4('0x1a60')]=_0x11901e[_0x166be4('0xade')]['exten'];_0x5e6ed7[_0x166be4('0x1810')]&&(_0x5e6ed7[_0x166be4('0x1810')]=_0x5e6ed7[_0x166be4('0x1810')]['toLowerCase']());typeof _0x5e6ed7[_0x166be4('0x23b4')]!==_0x166be4('0x6e5')&&(_0x5e6ed7[_0x166be4('0x23b4')]&&_0x5e6ed7[_0x166be4('0x23b4')]!=='--'&&_0x1addd3['push']({'type':_0x5e6ed7['type'][_0x166be4('0x1e68')](),'app':'Set','appdata':_0x166be4('0x21af')+_0x5e6ed7[_0x166be4('0x23b4')],'context':_0x11901e[_0x166be4('0xade')][_0x166be4('0x2b9')],'exten':_0x11901e[_0x166be4('0xade')][_0x166be4('0x1a60')],'priority':_0x5e6ed7['intervals']['length']+_0x28438a+_0x899f69++,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}));_0x5e6ed7[_0x166be4('0xe95')]?_0x1addd3['push']({'type':_0x5e6ed7[_0x166be4('0x1810')][_0x166be4('0x1e68')](),'app':'ExecIf','appdata':_0x166be4('0x1fe3')+_0x5e6ed7['callerID']+')','context':_0x11901e[_0x166be4('0xade')][_0x166be4('0x2b9')],'exten':_0x11901e['outboundroute'][_0x166be4('0x1a60')],'priority':_0x5e6ed7[_0x166be4('0x21c4')][_0x166be4('0x543')]+_0x28438a+_0x899f69++,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}):_0x1addd3[_0x166be4('0x18bb')]({'type':_0x5e6ed7['type'][_0x166be4('0x1e68')](),'app':_0x166be4('0x2795'),'appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','context':_0x11901e[_0x166be4('0xade')]['context'],'exten':_0x11901e[_0x166be4('0xade')]['exten'],'priority':_0x5e6ed7[_0x166be4('0x21c4')][_0x166be4('0x543')]+_0x28438a+_0x899f69++,'VoiceExtensionId':_0x11901e['outboundroute']['id']});for(let _0x5d244c=0x0;_0x5d244c<_0x5e6ed7['intervals']['length'];_0x5d244c++){const _0x2dccd1=_0x28438a+_0x5e6ed7['intervals']['length'],_0x2dae97=_0x5d244c===_0x5e6ed7[_0x166be4('0x21c4')][_0x166be4('0x543')]-0x1?_0x28438a+_0x1addd3['length']+_0x3b6e8a[_0x166be4('0x543')]+0x2:_0x28438a+_0x5d244c+0x1;_0x1addd3['splice'](_0x5d244c,0x0,{'type':_0x166be4('0xb33'),'app':'GotoIfTime','appdata':_0x5e6ed7[_0x166be4('0x21c4')][_0x5d244c]+'?'+_0x11901e['outboundroute'][_0x166be4('0x2b9')]+_0x166be4('0x2680')+_0x2dccd1+':'+_0x11901e[_0x166be4('0xade')][_0x166be4('0x2b9')]+_0x166be4('0x2680')+_0x2dae97,'exten':_0x11901e['outboundroute']['exten'],'context':_0x11901e[_0x166be4('0xade')][_0x166be4('0x2b9')],'priority':_0x28438a+_0x5d244c,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']});}if(_0x5e6ed7[_0x166be4('0x9d7')]===_0x166be4('0x2150')){const _0x1c29a6=_0x3c8d8a()[_0x166be4('0x18ab')](_0x11901e[_0x166be4('0x5cb')],{'appType':_0x166be4('0x2150')});if(_0x1c29a6&&_0x1c29a6[_0x166be4('0x2340')]){const _0xd79870={},_0x4ac015=_0x5e6ed7[_0x166be4('0x1c00')][_0x166be4('0x43a')](','),_0x298c61=[];for(let _0x17ce86=0x0,_0x430f05=_0x1c29a6['fields'][_0x166be4('0x543')];_0x17ce86<_0x430f05;_0x17ce86++){if(typeof _0x1c29a6[_0x166be4('0x2340')][_0x17ce86][_0x166be4('0x1ca8')]!=='undefined')switch(_0x1c29a6[_0x166be4('0x2340')][_0x17ce86][_0x166be4('0x10ad')]){case _0x166be4('0x15b7'):_0xd79870[_0x166be4('0x15b7')]=_0x4ac015[_0x1c29a6[_0x166be4('0x2340')][_0x17ce86][_0x166be4('0x1ca8')]][_0x166be4('0x43a')]('/')[0x1],_0xd79870[_0x166be4('0xa04')]=_0x4ac015[_0x1c29a6[_0x166be4('0x2340')][_0x17ce86][_0x166be4('0x1ca8')]]['split']('/')[0x2],_0xd79870['prefix']=_0xd79870['phone']?_0xd79870[_0x166be4('0xa04')]['split']('$')[0x0]:undefined,_0xd79870[_0x166be4('0xa04')]=_0x11901e[_0x166be4('0xade')][_0x166be4('0x1429')]?(_0xd79870[_0x166be4('0x23f7')]||'')+_0x166be4('0x1957')+_0x11901e[_0x166be4('0xade')][_0x166be4('0x1429')]+'}':(_0xd79870[_0x166be4('0x23f7')]||'')+'${EXTEN}',_0x298c61[_0x1c29a6[_0x166be4('0x2340')][_0x17ce86][_0x166be4('0x1ca8')]]=['SIP',_0xd79870[_0x166be4('0x15b7')],_0xd79870['phone']][_0x166be4('0x2259')]('/');break;case _0x166be4('0x2010'):_0xd79870[_0x166be4('0x2010')]=_0x4ac015[_0x1c29a6['fields'][_0x17ce86][_0x166be4('0x1ca8')]];_0x11901e[_0x166be4('0xade')][_0x166be4('0x76c')]!=='none'?_0xd79870[_0x166be4('0x2010')][_0x166be4('0x2087')](_0x166be4('0x2474'))<0x0&&(_0xd79870[_0x166be4('0x2010')]+='U(xcally-mixmonitor-context)'):_0xd79870[_0x166be4('0x2010')]=_0xd79870[_0x166be4('0x2010')][_0x166be4('0x166c')](_0x166be4('0x2474'),'');_0x298c61[_0x1c29a6[_0x166be4('0x2340')][_0x17ce86][_0x166be4('0x1ca8')]]=_0xd79870[_0x166be4('0x2010')];break;default:_0x298c61[_0x1c29a6[_0x166be4('0x2340')][_0x17ce86][_0x166be4('0x1ca8')]]=_0x4ac015[_0x1c29a6[_0x166be4('0x2340')][_0x17ce86][_0x166be4('0x1ca8')]];}}_0x5e6ed7[_0x166be4('0x1c00')]=_0x298c61['join'](',');}}_0x5e6ed7[_0x166be4('0xb3')]=_0x1addd3['length']?_0x3c8d8a()[_0x166be4('0x7f')](_0x1addd3)[_0x166be4('0xb3')]+0x1:_0x28438a,_0x28438a=(_0x3b6e8a[_0x166be4('0x543')]?_0x3c8d8a()['last'](_0x3b6e8a)[_0x166be4('0xb3')]:_0x5e6ed7['priority'])+0x1,_0x26fb47=_0x3c8d8a()[_0x166be4('0x163f')](_0x26fb47,_0x1addd3,[_0x5e6ed7],_0x3b6e8a);}_0x26fb47['push']({'type':_0x166be4('0xb33'),'app':'Hangup','exten':_0x11901e[_0x166be4('0xade')][_0x166be4('0x1a60')],'context':_0x11901e['outboundroute']['context'],'priority':_0x28438a,'VoiceExtensionId':_0x11901e[_0x166be4('0xade')]['id']}),_0x401b5a[_0x166be4('0x1630')][_0x166be4('0x271c')]({'id':_0x11901e[_0x166be4('0xade')]['id']},_0x3c8d8a()[_0x166be4('0x1b45')](_0x26fb47,_0x166be4('0xb3')))[_0x166be4('0x1964')]['then'](function(_0x575f2d){const _0x263902=_0x166be4;_0x11901e[_0x263902('0x259')][_0x263902('0x6aa')]=_0x575f2d['rows'];})[_0x166be4('0x103c')](function(_0x57bd20){const _0x781f8f=_0x166be4;console[_0x781f8f('0x15aa')](_0x57bd20);});}function _0x49c961(_0x51d5fe){return _0x51d5fe===null?undefined:new Date(_0x51d5fe);}function _0x4cfd81(_0x5c5cfb){const _0x552f58=_0xd27258;_0xc1455a[_0x552f58('0x1cf4')](_0x5c5cfb);}}const _0x536e4d=_0x13c17b,_0x34da09=_0x21a6a1['p']+_0x566993('0x1248'),_0x5d0658=_0x21a6a1['p']+_0x566993('0xf64'),_0x371455=_0x21a6a1['p']+_0x566993('0x6f5');_0x15461b[_0x566993('0x17bb')]=[_0x566993('0xbd4'),_0x566993('0x1fe5'),'$document',_0x566993('0x1558'),_0x566993('0x2fc'),_0x566993('0x66f'),_0x566993('0x1600')];const _0x27f603={'custom':_0x34da09,'interval':_0x5d0658,'outbounddial':_0x371455};function _0x15461b(_0x1217aa,_0x4e68c8,_0x43e885,_0xedff32,_0x4e3766,_0x510d62,_0x12d36d){const _0x3d027a=_0x566993,_0x5efaad=this;_0x5efaad[_0x3d027a('0x155f')]=_0x12d36d[_0x3d027a('0x14d4')](),_0x5efaad[_0x3d027a('0xade')]={},_0x5efaad[_0x3d027a('0x259')]={'count':0x0,'rows':[]},_0x5efaad[_0x3d027a('0x236c')]=[],_0x5efaad[_0x3d027a('0x1dc1')],_0x5efaad[_0x3d027a('0xc49')]={'sort':_0x3d027a('0xb3')},_0x5efaad[_0x3d027a('0x5cb')]=_0x3c8d8a()[_0x3d027a('0x12a4')](_0x3c8d8a()['sortBy']([{'app':_0x3d027a('0x1d55'),'appType':_0x3d027a('0x55a'),'type':'Outbound','types':[_0x3d027a('0x17b3'),_0x3d027a('0xbb4'),'list'],'fields':[],'isApp':![]},{'app':_0x3d027a('0x1020'),'appType':_0x3d027a('0x2150'),'context':_0x3d027a('0x13d6'),'type':_0x3d027a('0x2132'),'icon':_0x3d027a('0x108b'),'interval':_0x3d027a('0x17c5'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x3d027a('0x673'),'field':{'name':_0x3d027a('0x15b7'),'key':_0x3d027a('0x10ad')},'route':_0x3d027a('0x15b7'),'filters':{'fields':_0x3d027a('0xd52'),'sort':_0x3d027a('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f3}},{'name':_0x3d027a('0x22ac'),'field':{'name':_0x3d027a('0x23b4'),'key':_0x3d027a('0x10ad')},'route':_0x3d027a('0x23b4'),'filters':{'fields':_0x3d027a('0xd52'),'sort':_0x3d027a('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x3d027a('0x183a'),'name':'trunk','type':_0x3d027a('0x23fd'),'values':_0x3d027a('0x673'),'value':_0x3d027a('0xd41'),'option':_0x3d027a('0xd41'),'required':!![],'param':0x0},{'title':'Caller_ID','name':_0x3d027a('0xe95'),'type':_0x3d027a('0x86e'),'help':!![]},{'title':_0x3d027a('0xfe3'),'name':_0x3d027a('0x23f7'),'type':_0x3d027a('0x86e')},{'title':_0x3d027a('0xc38'),'name':_0x3d027a('0x23b4'),'type':_0x3d027a('0x23fd'),'values':_0x3d027a('0x22ac'),'value':'tag.name','option':_0x3d027a('0x2648'),'defaultValues':[{'value':_0x3d027a('0x1bf9'),'option':_0x3d027a('0x2187')}]},{'title':_0x3d027a('0x1b9a'),'name':_0x3d027a('0x1f84'),'type':_0x3d027a('0x1d81'),'min':0x0,'param':0x1},{'title':_0x3d027a('0x17eb'),'name':_0x3d027a('0x2010'),'type':_0x3d027a('0x86e'),'param':0x2},{'title':_0x3d027a('0x1e59'),'name':_0x3d027a('0xd1'),'type':_0x3d027a('0x86e'),'param':0x3}]},{'app':null,'type':_0x3d027a('0x2132'),'appType':_0x3d027a('0xbb4'),'icon':_0x3d027a('0x108b'),'interval':_0x3d027a('0x17c5'),'isApp':!![],'fields':[{'title':_0x3d027a('0x206d'),'name':_0x3d027a('0x17e'),'type':'text','required':!![],'param':0x0},{'title':_0x3d027a('0xeb3'),'name':_0x3d027a('0x1c00'),'type':'text','param':0x1}]}],[_0x3d027a('0x17e')]),{'isApp':![]}),_0x5efaad[_0x3d027a('0x3e3')]={'group':{'name':_0x3d027a('0x1749'),'pull':_0x3d027a('0x979')},'animation':0x64,'sort':![]},_0x5efaad[_0x3d027a('0x1f7e')]={'group':{'name':'opt2','put':_0x3d027a('0x1749')},'animation':0x64,'onAdd':function(_0x33c921){const _0xd1b08e=_0x3d027a;_0x2a868f(_0x33c921,_0x33c921[_0xd1b08e('0x1c1b')]);},'onSort':function(){_0x1cc970();}},_0x5efaad[_0x3d027a('0xb9c')]=_0x178d97,_0x5efaad[_0x3d027a('0x2051')]=_0x5be9c8,_0x5efaad[_0x3d027a('0x422')]=_0x2962d4,_0x5efaad['editOutboundRouteApp']=_0x2a868f,_0x5efaad['editInterval']=_0x53b540,_0x5efaad[_0x3d027a('0xe9f')]=_0x2179d0,_0x5efaad[_0x3d027a('0x2d5')]=_0x4576bf,_0x5efaad[_0x3d027a('0x131f')]=_0x1cc970,_0x5efaad[_0x3d027a('0xf77')]=_0x2fc63f,_0x5efaad[_0x3d027a('0x272a')]=_0x207a3c;function _0x178d97(_0x15b1bd,_0x4cc9a6){const _0xaf6d8e=_0x3d027a;_0x5efaad['outboundroute']=_0x15b1bd,_0x5efaad[_0xaf6d8e('0x1dc1')]=typeof _0x4cc9a6!==_0xaf6d8e('0x6e5')?_0x4cc9a6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5efaad['applications'][_0xaf6d8e('0x6fc')]=!_0x5efaad[_0xaf6d8e('0x1dc1')]['canEdit']?!![]:![],_0x4e3766['on'](_0xaf6d8e('0x252c'),_0x5efaad[_0xaf6d8e('0x272a')]),_0x5efaad[_0xaf6d8e('0xc49')][_0xaf6d8e('0x1011')]=_0x15b1bd['id'],_0x5efaad[_0xaf6d8e('0xc49')][_0xaf6d8e('0xbb6')]=!![],_0x5efaad['query'][_0xaf6d8e('0x1c7f')]=!![],_0x5efaad['getOutboundRouteApps'](),_0x5efaad[_0xaf6d8e('0xf77')]();}function _0x207a3c(_0x44f387){const _0x454a01=_0x3d027a;_0x44f387[_0x454a01('0x1011')]===_0x5efaad[_0x454a01('0xade')]['id']&&_0x1cc970(!![]);}function _0x5be9c8(_0x368a17,_0x403965,_0x1f2613){const _0x2ea0af=_0x3d027a,_0x519ba3=_0x4e68c8['confirm']()[_0x2ea0af('0x20d6')](_0x2ea0af('0xbac'))[_0x2ea0af('0xf8b')](''+_0x368a17[_0x2ea0af('0x17e')]+_0x2ea0af('0x24be')+_0x2ea0af('0xd23'))[_0x2ea0af('0x217')](_0x2ea0af('0x499'))[_0x2ea0af('0x21de')](_0x1f2613)['ok']('OK')[_0x2ea0af('0x1e1f')](_0x2ea0af('0x468'));_0x4e68c8[_0x2ea0af('0x1cb7')](_0x519ba3)['then'](function(){const _0x102b3e=_0x2ea0af;_0x5efaad[_0x102b3e('0x259')][_0x102b3e('0x6aa')][_0x102b3e('0x553')](_0x403965,0x1),_0x1cc970();},function(){const _0x462c79=_0x2ea0af;console[_0x462c79('0xe37')]('CANCEL');});}function _0x2a868f(_0x351a11,_0x5de41a){const _0x35b120=_0x3d027a;if(_0x5efaad['outboundrouteApps'][_0x35b120('0x6aa')][_0x35b120('0x543')]){const _0x447061=_0x5efaad[_0x35b120('0x259')][_0x35b120('0x6aa')][_0x5de41a]?_0x5efaad[_0x35b120('0x259')]['rows'][_0x5de41a]:_0x5efaad[_0x35b120('0x259')][_0x35b120('0x6aa')][0x0],_0x29c2ab=(_0x447061['appType']||_0x447061[_0x35b120('0x17e')])['toLowerCase']();_0x4e68c8[_0x35b120('0x1cb7')]({'controller':'EditoutboundApp'+_0x29c2ab+_0x35b120('0x1c96'),'controllerAs':'vm','templateUrl':_0x27f603[_0x29c2ab],'parent':angular['element'](_0x43e885[_0x35b120('0x1a5')]),'targetEvent':_0x351a11,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x447061,'outboundroute':_0x5efaad['outboundroute'],'crudPermissions':_0x5efaad['crudPermissions']}})[_0x35b120('0x173b')](function(_0x4a01db){const _0xa11313=_0x35b120;_0x4a01db&&(_0x4a01db['id']?_0x5efaad[_0xa11313('0x259')][_0xa11313('0x6aa')][_0x5de41a]=_0x4a01db:_0x5efaad[_0xa11313('0x259')]['rows'][_0xa11313('0x553')](_0x5de41a,0x0,_0x4a01db),_0x1cc970());})[_0x35b120('0x103c')](function(_0x4d4c02){const _0x598943=_0x35b120;_0x4d4c02&&_0xedff32[_0x598943('0x15aa')]({'title':_0x4d4c02[_0x598943('0x276f')]?_0x598943('0x137')+_0x4d4c02[_0x598943('0x276f')]+_0x598943('0x160c')+_0x4d4c02[_0x598943('0x2696')]:_0x598943('0x974'),'msg':_0x4d4c02[_0x598943('0x1e07')]?JSON[_0x598943('0x100b')](_0x4d4c02[_0x598943('0x1e07')]):_0x4d4c02[_0x598943('0x1b75')]()});});}}function _0x53b540(_0x5d440e,_0x28a078){const _0x4d86e6=_0x3d027a;if(_0x5efaad['outboundrouteApps'][_0x4d86e6('0x6aa')][_0x4d86e6('0x543')]){const _0x4a60fe=_0x5efaad[_0x4d86e6('0x259')][_0x4d86e6('0x6aa')][_0x28a078]?_0x5efaad[_0x4d86e6('0x259')][_0x4d86e6('0x6aa')][_0x28a078]:_0x5efaad[_0x4d86e6('0x259')][_0x4d86e6('0x6aa')][0x0];_0x4e68c8[_0x4d86e6('0x1cb7')]({'controller':'EditoutboundAppintervalDialogController','controllerAs':'vm','templateUrl':_0x5d0658,'parent':angular['element'](_0x43e885['body']),'targetEvent':_0x5d440e,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x4a60fe[_0x4d86e6('0x55a')],'IntervalId':_0x4a60fe[_0x4d86e6('0x600')],'application':!![]},'intervals':[],'crudPermissions':_0x5efaad[_0x4d86e6('0x1dc1')]}})['then'](function(_0x6e2210){const _0x24f191=_0x4d86e6;_0x6e2210&&(_0x4a60fe['interval']=_0x6e2210[_0x24f191('0x55a')]||_0x24f191('0x17c5'),_0x4a60fe[_0x24f191('0x600')]=_0x6e2210[_0x24f191('0x600')]||null,_0x1cc970());});}}function _0x1cc970(_0x4f5b31){const _0x19820d=_0x3d027a;let _0x4a809a=0x2,_0x50e68c=[];_0x50e68c['push']({'type':_0x19820d('0xb33'),'app':_0x19820d('0x11b6'),'appdata':'CDR(type)=outbound','context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}),_0x50e68c[_0x19820d('0x18bb')]({'type':'outbound','app':'Set','appdata':_0x19820d('0x2091')+(_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1429')]?_0x19820d('0x1957')+_0x5efaad['outboundroute'][_0x19820d('0x1429')]+'}':_0x19820d('0x1dc5')),'context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}),_0x50e68c[_0x19820d('0x18bb')]({'type':_0x19820d('0xb33'),'app':_0x19820d('0x11b6'),'appdata':_0x19820d('0x646')+_0x5efaad[_0x19820d('0xade')]['id'],'context':_0x5efaad['outboundroute'][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']});const _0x3585d9=_0x4a809a++;_0x50e68c[_0x19820d('0x18bb')]({'type':_0x19820d('0xb33'),'app':_0x19820d('0x2795'),'appdata':_0x19820d('0x94')+(_0x3585d9+0x2)+'):Goto('+(_0x3585d9+0x1)+')','context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x3585d9,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}),_0x50e68c[_0x19820d('0x18bb')]({'type':_0x19820d('0xb33'),'app':_0x19820d('0x11b6'),'appdata':_0x5efaad[_0x19820d('0xade')]['cutdigits']?_0x19820d('0xfdf')+_0x5efaad['outboundroute']['cutdigits']+'}':_0x19820d('0x1206'),'context':_0x5efaad['outboundroute'][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}),_0x50e68c[_0x19820d('0x18bb')]({'type':_0x19820d('0xb33'),'app':_0x19820d('0x11b6'),'appdata':_0x19820d('0xfd5'),'context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}),_0x50e68c[_0x19820d('0x18bb')]({'type':_0x19820d('0xb33'),'app':_0x19820d('0x11b6'),'appdata':_0x19820d('0x4b3'),'context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')]['exten'],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad['outboundroute']['id']}),_0x50e68c[_0x19820d('0x18bb')]({'type':'outbound','app':_0x19820d('0x11b6'),'appdata':_0x19820d('0x1d42'),'context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}),_0x50e68c['push']({'type':_0x19820d('0xb33'),'app':_0x19820d('0x11b6'),'appdata':_0x19820d('0x21ab')+_0x5efaad[_0x19820d('0xade')]['id'],'context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']});typeof _0x5efaad[_0x19820d('0xade')][_0x19820d('0x76c')]==='undefined'&&_0x5efaad[_0x19820d('0xade')]['recordingFormat']!==_0x19820d('0x2741')&&(_0x50e68c[_0x19820d('0x18bb')]({'type':'outbound','app':'Set','appdata':_0x19820d('0x1b4c'),'context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad['outboundroute']['id']}),_0x50e68c[_0x19820d('0x18bb')]({'type':_0x19820d('0xb33'),'app':'Set','appdata':_0x19820d('0x19c')+_0x5efaad['outboundroute']['recordingFormat']||0x0,'context':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],'exten':_0x5efaad['outboundroute'][_0x19820d('0x1a60')],'priority':_0x4a809a++,'VoiceExtensionId':_0x5efaad['outboundroute']['id']}));for(let _0x46ec54=0x0,_0x367c08=0x0;_0x46ec54<_0x5efaad[_0x19820d('0x259')][_0x19820d('0x6aa')]['length'];_0x46ec54++,_0x367c08=0x0){const _0x3be563=_0x5efaad[_0x19820d('0x259')][_0x19820d('0x6aa')][_0x46ec54],_0x53ba46=[],_0x4120cd=[];_0x3be563[_0x19820d('0x21c4')]=_0x3be563[_0x19820d('0x55a')]!==_0x19820d('0x17c5')?[_0x3be563[_0x19820d('0x55a')]]:_0x3be563[_0x19820d('0x600')]?_0x3c8d8a()[_0x19820d('0x8a2')](_0x3c8d8a()[_0x19820d('0x278d')](_0x5efaad[_0x19820d('0x21c4')][_0x19820d('0x6aa')],{'IntervalId':_0x3be563['IntervalId']}),_0x19820d('0x55a')):[],_0x3be563['context']=_0x5efaad[_0x19820d('0xade')][_0x19820d('0x2b9')],_0x3be563[_0x19820d('0x1a60')]=_0x5efaad['outboundroute'][_0x19820d('0x1a60')];_0x3be563[_0x19820d('0x1810')]&&(_0x3be563[_0x19820d('0x1810')]=_0x3be563[_0x19820d('0x1810')][_0x19820d('0x1e68')]());typeof _0x3be563[_0x19820d('0x23b4')]!=='undefined'&&(_0x3be563['tag']&&_0x3be563['tag']!=='--'&&_0x53ba46[_0x19820d('0x18bb')]({'type':_0x3be563[_0x19820d('0x1810')][_0x19820d('0x1e68')](),'app':'Set','appdata':_0x19820d('0x21af')+_0x3be563[_0x19820d('0x23b4')],'context':_0x5efaad[_0x19820d('0xade')]['context'],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x3be563['intervals'][_0x19820d('0x543')]+_0x4a809a+_0x367c08++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}));_0x3be563[_0x19820d('0xe95')]?_0x53ba46['push']({'type':_0x3be563['type'][_0x19820d('0x1e68')](),'app':_0x19820d('0x2795'),'appdata':_0x19820d('0x1fe3')+_0x3be563['callerID']+')','context':_0x5efaad[_0x19820d('0xade')]['context'],'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'priority':_0x3be563[_0x19820d('0x21c4')]['length']+_0x4a809a+_0x367c08++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}):_0x53ba46[_0x19820d('0x18bb')]({'type':_0x3be563[_0x19820d('0x1810')][_0x19820d('0x1e68')](),'app':_0x19820d('0x2795'),'appdata':_0x19820d('0x2784'),'context':_0x5efaad['outboundroute'][_0x19820d('0x2b9')],'exten':_0x5efaad[_0x19820d('0xade')]['exten'],'priority':_0x3be563['intervals']['length']+_0x4a809a+_0x367c08++,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']});for(let _0x494d9f=0x0;_0x494d9f<_0x3be563[_0x19820d('0x21c4')][_0x19820d('0x543')];_0x494d9f++){const _0x4cbd96=_0x4a809a+_0x3be563['intervals']['length'],_0x1af9cd=_0x494d9f===_0x3be563['intervals'][_0x19820d('0x543')]-0x1?_0x4a809a+_0x53ba46[_0x19820d('0x543')]+_0x4120cd[_0x19820d('0x543')]+0x2:_0x4a809a+_0x494d9f+0x1;_0x53ba46[_0x19820d('0x553')](_0x494d9f,0x0,{'type':_0x19820d('0xb33'),'app':_0x19820d('0x25f'),'appdata':_0x3be563['intervals'][_0x494d9f]+'?'+_0x5efaad['outboundroute'][_0x19820d('0x2b9')]+_0x19820d('0x2680')+_0x4cbd96+':'+_0x5efaad['outboundroute'][_0x19820d('0x2b9')]+',${EXTEN},'+_0x1af9cd,'exten':_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1a60')],'context':_0x5efaad[_0x19820d('0xade')]['context'],'priority':_0x4a809a+_0x494d9f,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']});}if(_0x4f5b31&&_0x3be563[_0x19820d('0x9d7')]==='outboundDial'){const _0x5a39c9=_0x3c8d8a()[_0x19820d('0x18ab')](_0x5efaad[_0x19820d('0x5cb')],{'appType':_0x19820d('0x2150')});if(_0x5a39c9&&_0x5a39c9[_0x19820d('0x2340')]){const _0x5e1f9d={},_0x4bf395=_0x3be563[_0x19820d('0x1c00')][_0x19820d('0x43a')](','),_0x11f9c7=[];for(let _0x552a35=0x0,_0x417b5f=_0x5a39c9[_0x19820d('0x2340')][_0x19820d('0x543')];_0x552a35<_0x417b5f;_0x552a35++){if(typeof _0x5a39c9[_0x19820d('0x2340')][_0x552a35][_0x19820d('0x1ca8')]!==_0x19820d('0x6e5'))switch(_0x5a39c9['fields'][_0x552a35][_0x19820d('0x10ad')]){case _0x19820d('0x15b7'):_0x5e1f9d[_0x19820d('0x15b7')]=_0x4bf395[_0x5a39c9[_0x19820d('0x2340')][_0x552a35][_0x19820d('0x1ca8')]][_0x19820d('0x43a')]('/')[0x1],_0x5e1f9d[_0x19820d('0xa04')]=_0x4bf395[_0x5a39c9[_0x19820d('0x2340')][_0x552a35][_0x19820d('0x1ca8')]]['split']('/')[0x2],_0x5e1f9d[_0x19820d('0x23f7')]=_0x5e1f9d['phone']?_0x5e1f9d[_0x19820d('0xa04')][_0x19820d('0x43a')]('$')[0x0]:undefined,_0x5e1f9d[_0x19820d('0xa04')]=_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1429')]?(_0x5e1f9d['prefix']||'')+_0x19820d('0x1957')+_0x5efaad[_0x19820d('0xade')][_0x19820d('0x1429')]+'}':(_0x5e1f9d[_0x19820d('0x23f7')]||'')+'${EXTEN}',_0x11f9c7[_0x5a39c9['fields'][_0x552a35]['param']]=[_0x19820d('0x9e6'),_0x5e1f9d[_0x19820d('0x15b7')],_0x5e1f9d[_0x19820d('0xa04')]][_0x19820d('0x2259')]('/');break;case _0x19820d('0x2010'):_0x5e1f9d['options']=_0x4bf395[_0x5a39c9[_0x19820d('0x2340')][_0x552a35][_0x19820d('0x1ca8')]];_0x5efaad['outboundroute'][_0x19820d('0x76c')]!==_0x19820d('0x2741')?_0x5e1f9d['options'][_0x19820d('0x2087')](_0x19820d('0x2474'))<0x0&&(_0x5e1f9d[_0x19820d('0x2010')]+=_0x19820d('0x2474')):_0x5e1f9d[_0x19820d('0x2010')]=_0x5e1f9d[_0x19820d('0x2010')][_0x19820d('0x166c')](_0x19820d('0x2474'),'');_0x11f9c7[_0x5a39c9[_0x19820d('0x2340')][_0x552a35][_0x19820d('0x1ca8')]]=_0x5e1f9d['options'];break;default:_0x11f9c7[_0x5a39c9[_0x19820d('0x2340')][_0x552a35]['param']]=_0x4bf395[_0x5a39c9[_0x19820d('0x2340')][_0x552a35][_0x19820d('0x1ca8')]];}}_0x3be563['appdata']=_0x11f9c7['join'](',');}}_0x3be563['priority']=_0x53ba46['length']?_0x3c8d8a()[_0x19820d('0x7f')](_0x53ba46)[_0x19820d('0xb3')]+0x1:_0x4a809a,_0x4a809a=(_0x4120cd[_0x19820d('0x543')]?_0x3c8d8a()['last'](_0x4120cd)[_0x19820d('0xb3')]:_0x3be563['priority'])+0x1,_0x50e68c=_0x3c8d8a()[_0x19820d('0x163f')](_0x50e68c,_0x53ba46,[_0x3be563],_0x4120cd);}_0x50e68c[_0x19820d('0x18bb')]({'type':_0x19820d('0xb33'),'app':_0x19820d('0x1665'),'exten':_0x5efaad['outboundroute'][_0x19820d('0x1a60')],'context':_0x5efaad[_0x19820d('0xade')]['context'],'priority':_0x4a809a,'VoiceExtensionId':_0x5efaad[_0x19820d('0xade')]['id']}),_0x1217aa[_0x19820d('0x1630')][_0x19820d('0x271c')]({'id':_0x5efaad[_0x19820d('0xade')]['id']},_0x3c8d8a()[_0x19820d('0x1b45')](_0x50e68c,'priority'))[_0x19820d('0x1964')][_0x19820d('0x173b')](function(_0x1bc8e8){const _0x3ffec8=_0x19820d;_0x5efaad['outboundrouteApps'][_0x3ffec8('0x6aa')]=_0x1bc8e8[_0x3ffec8('0x6aa')];})[_0x19820d('0x103c')](function(_0x42f8da){const _0x290273=_0x19820d;console[_0x290273('0x15aa')](_0x42f8da);});}function _0x463f34(_0xdcefd0){_0x5efaad['outboundrouteApps']=_0xdcefd0||{'count':0x0,'rows':[]};}function _0x2fc63f(){const _0x561929=_0x3d027a;return _0x1217aa[_0x561929('0x55a')][_0x561929('0x1d97')]({'fields':_0x561929('0x23e4')})[_0x561929('0x1964')]['then'](function(_0x8a72b2){const _0x405a93=_0x561929;_0x5efaad[_0x405a93('0x21c4')]=_0x8a72b2;})['catch'](function(_0x4ab431){const _0x256097=_0x561929;console[_0x256097('0x15aa')](_0x4ab431);});}function _0x2962d4(){const _0x3af523=_0x3d027a;_0x5efaad[_0x3af523('0x2219')]=_0x1217aa[_0x3af523('0x1630')][_0x3af523('0x1d97')](_0x5efaad[_0x3af523('0xc49')],_0x463f34)['$promise'];}function _0x2179d0(_0x5de335){const _0x5d7256=_0x3d027a;_0x3c8d8a()['remove'](_0x5efaad[_0x5d7256('0x259')][_0x5d7256('0x6aa')],{'id':_0x5de335['id']}),_0x1cc970(),_0xedff32[_0x5d7256('0xdfe')]({'title':_0x5d7256('0x236d'),'msg':_0x5de335[_0x5d7256('0x17e')]?_0x5de335[_0x5d7256('0x17e')]+_0x5d7256('0x25d2'):''});}function _0x4576bf(_0x2ffe80){const _0x141df9=_0x3d027a,_0x196f75=_0x4e68c8['confirm']()['title'](_0x141df9('0x8a0'))[_0x141df9('0xf8b')](''+_0x5efaad['selectedOutboundRouteApps']['length']+'\x20selected'+_0x141df9('0xd23'))['ariaLabel']('delete\x20applications')[_0x141df9('0x21de')](_0x2ffe80)['ok']('OK')[_0x141df9('0x1e1f')]('CANCEL');_0x4e68c8[_0x141df9('0x1cb7')](_0x196f75)[_0x141df9('0x173b')](function(){const _0x14d0e9=_0x141df9;_0x5efaad['selectedOutboundRouteApps'][_0x14d0e9('0xa6a')](function(_0x5ddf11){const _0x1794eb=_0x14d0e9;_0x3c8d8a()[_0x1794eb('0x1a8b')](_0x5efaad[_0x1794eb('0x259')][_0x1794eb('0x6aa')],{'id':_0x5ddf11['id']});}),_0x5efaad['selectedOutboundRouteApps']=[],_0x1cc970();});}_0x510d62[_0x3d027a('0xbf6')](_0x3d027a('0x16d2'),function(){const _0x4c2f72=_0x3d027a;_0x4e3766['removeAllListeners'](_0x4c2f72('0x252c'));});}const _0x2002be=_0x15461b;_0xf4069c[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),'outboundrouteApp',_0x566993('0xade'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0xf4069c(_0x16fe7a,_0x403da0,_0x450bb3,_0x331785,_0x265243,_0x49c9e2,_0x1960b3,_0x2ede17){const _0x5b42c9=_0x566993,_0x4e2bb1=this;_0x4e2bb1[_0x5b42c9('0x155f')]=_0x1960b3[_0x5b42c9('0x14d4')](),_0x4e2bb1[_0x5b42c9('0x1d4a')]=[],_0x4e2bb1[_0x5b42c9('0x20d6')]='VOICE.EDIT_'+(_0x331785['appType']||_0x331785[_0x5b42c9('0x17e')])[_0x5b42c9('0x1164')](),_0x4e2bb1[_0x5b42c9('0xbb4')]=angular['copy'](_0x331785),_0x4e2bb1['crudPermissions']=_0x2ede17,_0x4e2bb1['hasModulePermissions']={};if(_0x4e2bb1[_0x5b42c9('0xbb4')]['appdata'])switch(_0x4e2bb1['custom'][_0x5b42c9('0x9d7')]?_0x4e2bb1['custom'][_0x5b42c9('0x9d7')]['toLowerCase']():_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x17e')][_0x5b42c9('0x1e68')]()){case _0x5b42c9('0xbb4'):break;case _0x5b42c9('0x1601'):{const _0x1d5e4f=_0x4e2bb1['custom'][_0x5b42c9('0x1c00')][_0x5b42c9('0x43a')](',');_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x237a')]=_0x1d5e4f[0x0],_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x604')]=_0x1d5e4f[0x1],_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1a7')]=_0x1d5e4f[_0x5b42c9('0x2456')](0x2,_0x1d5e4f[_0x5b42c9('0x543')])[_0x5b42c9('0x2259')](',');}break;case'amazonlex':{const _0x4a1111=_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1c00')]['split'](',');_0x4e2bb1['custom'][_0x5b42c9('0x2e0')]=_0x4a1111[0x0],_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1d93')]=_0x4a1111[0x1],_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x10fc')]=_0x4a1111[0x2],_0x4e2bb1[_0x5b42c9('0xbb4')]['botname']=_0x4a1111[0x3],_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1a7')]=_0x4a1111[_0x5b42c9('0x2456')](0x4,_0x4a1111[_0x5b42c9('0x543')])[_0x5b42c9('0x2259')](',');}break;case'autoreply':{const _0xa08390=_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1c00')][_0x5b42c9('0x43a')](',');_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x611')]=isNaN(_0xa08390[0x0])?_0xa08390[0x0]:parseInt(_0xa08390[0x0],0xa),_0x4e2bb1['custom'][_0x5b42c9('0x86e')]=_0xa08390[_0x5b42c9('0x2456')](0x1,_0xa08390[_0x5b42c9('0x543')])[_0x5b42c9('0x2259')](',');}break;case _0x5b42c9('0x67f'):_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x86e')]=_0x4e2bb1['custom'][_0x5b42c9('0x1c00')];break;case _0x5b42c9('0x256d'):_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x10ad')]=_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1c00')]['split']('=')[0x0],_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0xa7b')]=_0x4e2bb1['custom']['appdata'][_0x5b42c9('0x43a')]('=')[0x1];break;case _0x5b42c9('0x2426'):_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x220b')]=_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1c00')];break;default:{const _0x4a2265=_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1c00')][_0x5b42c9('0x43a')](',');_0x4e2bb1['custom']['app']=_0x3c8d8a()['isEmpty'](_0x4a2265[0x0])?_0x4a2265[0x0]:isNaN(_0x4a2265[0x0])?_0x4a2265[0x0]:parseInt(_0x4a2265[0x0],0xa),_0x4e2bb1['custom'][_0x5b42c9('0x1c00')]=_0x3c8d8a()['isEmpty'](_0x4a2265[0x1])?_0x4a2265[0x1]:isNaN(_0x4a2265[0x1])?_0x4a2265[0x1]:parseInt(_0x4a2265[0x1],0xa);}break;}else{}_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1810')]&&_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x1810')][_0x5b42c9('0x1e68')]()===_0x5b42c9('0xb33')&&_0x4e2bb1[_0x5b42c9('0xbb4')]['appType'][_0x5b42c9('0x1e68')]()==='outbounddial'&&(_0x4e2bb1[_0x5b42c9('0xbb4')][_0x5b42c9('0x23f7')]=_0x4e2bb1['custom']['phone']?_0x4e2bb1[_0x5b42c9('0xbb4')]['phone'][_0x5b42c9('0x43a')]('$')[0x0]:undefined,_0x4e2bb1['custom'][_0x5b42c9('0x1961')]=_0x4e2bb1['custom'][_0x5b42c9('0xe95')]?_0x5b42c9('0x20a8')+_0x4e2bb1[_0x5b42c9('0xbb4')]['callerID']:undefined);_0x4e2bb1[_0x5b42c9('0x1095')]=_0x318958,_0x4e2bb1[_0x5b42c9('0x18e2')]=_0xf40cca;function _0x318958(){const _0x2189ca=_0x5b42c9;_0x4e2bb1[_0x2189ca('0x1d4a')]=[];const _0x21f311=[];_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x1810')]&&_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x1810')][_0x2189ca('0x1e68')]()===_0x2189ca('0xb33')&&_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x9d7')]===_0x2189ca('0x2150')&&(_0x4e2bb1['custom'][_0x2189ca('0xa04')]=_0x265243[_0x2189ca('0x1429')]?(_0x4e2bb1['custom'][_0x2189ca('0x23f7')]||'')+'${EXTEN:'+_0x265243[_0x2189ca('0x1429')]+'}':(_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x23f7')]||'')+_0x2189ca('0x1dc5'),_0x265243['recordingFormat']!==_0x2189ca('0x2741')?_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x2010')][_0x2189ca('0x2087')](_0x2189ca('0x2474'))<0x0&&(_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x2010')]+='U(xcally-mixmonitor-context)'):_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x2010')]=_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x2010')][_0x2189ca('0x166c')](_0x2189ca('0x2474'),''));if(_0x4e2bb1['custom'][_0x2189ca('0x9d7')]&&_0x4e2bb1['custom']['appType']===_0x2189ca('0xbb4')){}else switch((_0x4e2bb1['custom'][_0x2189ca('0x17e')]||_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x9d7')])[_0x2189ca('0x1e68')]()){case _0x2189ca('0x256d'):_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x1c00')]=_0x4e2bb1['custom'][_0x2189ca('0x10ad')]+'='+_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0xa7b')];break;case _0x2189ca('0xbb4'):break;default:_0x21f311[0x0]=_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x17e')],_0x21f311[0x1]=_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x1c00')],_0x4e2bb1[_0x2189ca('0xbb4')][_0x2189ca('0x1c00')]=_0x21f311['join'](',');}_0xf40cca(_0x4e2bb1['custom']);}function _0xf40cca(_0x3206d1){const _0xfb8566=_0x5b42c9;_0x16fe7a[_0xfb8566('0x1cf4')](_0x3206d1);}}const _0x10f1c3=_0xf4069c;_0x135edd['$inject']=[_0x566993('0x2276'),'$mdDialog',_0x566993('0x1276'),_0x566993('0x1975'),_0x566993('0x55a'),_0x566993('0x21c4'),'toasty',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x135edd(_0x201f62,_0x220f67,_0x461dac,_0x31e5af,_0x4e475a,_0x41e859,_0x358792,_0x173410,_0x386f62,_0x64143b){const _0x3392c9=_0x566993,_0x44d998=this;_0x44d998[_0x3392c9('0x155f')]=_0x386f62['getCurrentUser'](),_0x44d998[_0x3392c9('0x1d4a')]=[],_0x44d998['title']=_0x3392c9('0x117b'),_0x44d998['interval']=angular['copy'](_0x4e475a),_0x44d998[_0x3392c9('0x21c4')]=_0x41e859,_0x44d998['newInterval']=![],_0x44d998['types']=[_0x3392c9('0x17b3'),_0x3392c9('0xbb4'),_0x3392c9('0x3e3')],_0x44d998[_0x3392c9('0x1dc1')]=_0x64143b,_0x44d998[_0x3392c9('0x1626')]=_0x31e5af[_0x3392c9('0x89e')](),_0x44d998[_0x3392c9('0x8e4')]=_0x31e5af[_0x3392c9('0x266c')](),_0x44d998[_0x3392c9('0x1d95')]=_0x31e5af['getMonthName'](),_0x44d998[_0x3392c9('0x2742')]=_0x31e5af[_0x3392c9('0x1c80')]();if(!_0x44d998['interval'])_0x44d998[_0x3392c9('0x55a')]={'interval':_0x3392c9('0x17c5')},_0x44d998[_0x3392c9('0x1810')]='always',_0x44d998[_0x3392c9('0x20d6')]=_0x3392c9('0xbb5'),_0x44d998['newInterval']=!![];else{if(_0x44d998[_0x3392c9('0x55a')][_0x3392c9('0x55a')]!=='*,*,*,*'){_0x44d998[_0x3392c9('0x1810')]=_0x3392c9('0xbb4');const _0x3b52cf=_0x44d998[_0x3392c9('0x55a')][_0x3392c9('0x55a')][_0x3392c9('0x43a')](','),_0x3ee5d0=_0x3b52cf[0x0],_0x4f1a9a=_0x3b52cf[0x1],_0x38af1f=_0x3b52cf[0x2],_0x275000=_0x3b52cf[0x3];if(_0x3ee5d0!=='*'){const _0x394509=_0x3ee5d0[_0x3392c9('0x43a')]('-')[0x0],_0x21e0ad=_0x3ee5d0['split']('-')[0x1];let _0x3efc75;_0x3efc75=new Date(),_0x3efc75['setHours'](Number(_0x394509['split'](':')[0x0])),_0x3efc75[_0x3392c9('0x14f9')](Number(_0x394509[_0x3392c9('0x43a')](':')[0x1])),_0x44d998['timeRangeFrom']=_0x3efc75,_0x3efc75=new Date(),_0x3efc75['setHours'](Number(_0x21e0ad[_0x3392c9('0x43a')](':')[0x0])),_0x3efc75['setMinutes'](Number(_0x21e0ad[_0x3392c9('0x43a')](':')[0x1])),_0x44d998[_0x3392c9('0x437')]=_0x3efc75;}_0x4f1a9a!=='*'&&(_0x44d998[_0x3392c9('0x37a')]=_0x4f1a9a[_0x3392c9('0x43a')]('-')[0x0],_0x44d998[_0x3392c9('0x269e')]=_0x4f1a9a[_0x3392c9('0x43a')]('-')[0x1]),_0x38af1f!=='*'&&(_0x44d998[_0x3392c9('0x6df')]=_0x38af1f[_0x3392c9('0x43a')]('-')[0x0],_0x44d998[_0x3392c9('0x185e')]=_0x38af1f['split']('-')[0x1]),_0x275000!=='*'&&(_0x44d998[_0x3392c9('0x1f34')]=_0x275000[_0x3392c9('0x43a')]('-')[0x0],_0x44d998[_0x3392c9('0xf74')]=_0x275000['split']('-')[0x1]);}else _0x44d998[_0x3392c9('0x1810')]=_0x3392c9('0x17b3');}_0x201f62[_0x3392c9('0x197a')]['id']&&!_0x44d998[_0x3392c9('0x55a')]['application']&&(_0x44d998[_0x3392c9('0x55a')][_0x3392c9('0x600')]=_0x201f62[_0x3392c9('0x197a')]['id']);_0x44d998['interval']['IntervalId']&&_0x44d998[_0x3392c9('0x55a')]['application']&&(_0x44d998['type']='list');_0x44d998[_0x3392c9('0x11fc')]=_0x21352a,_0x44d998[_0x3392c9('0x1401')]=_0x5885aa,_0x44d998[_0x3392c9('0x18e2')]=_0x1e7251;_0x44d998[_0x3392c9('0x55a')][_0x3392c9('0x17c2')]&&(_0x386f62[_0x3392c9('0x1b4e')](_0x3392c9('0x79b'))?_0x173410[_0x3392c9('0x55a')][_0x3392c9('0x1d97')]({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})[_0x3392c9('0x1964')][_0x3392c9('0x173b')](function(_0x2c054c){const _0x3cb6ab=_0x3392c9;_0x44d998[_0x3cb6ab('0x21c4')]=_0x2c054c[_0x3cb6ab('0x6aa')]||[];})['catch'](function(_0x1ba2cb){const _0x2c0a9c=_0x3392c9;_0x358792[_0x2c0a9c('0x15aa')]({'title':_0x1ba2cb[_0x2c0a9c('0x276f')]?_0x2c0a9c('0x137')+_0x1ba2cb[_0x2c0a9c('0x276f')]+_0x2c0a9c('0x160c')+_0x1ba2cb[_0x2c0a9c('0x2696')]:_0x2c0a9c('0x1daf'),'msg':_0x1ba2cb[_0x2c0a9c('0x1e07')]?JSON['stringify'](_0x1ba2cb[_0x2c0a9c('0x1e07')]):_0x1ba2cb[_0x2c0a9c('0x1b75')]()});}):_0x173410[_0x3392c9('0x55a')][_0x3392c9('0x1d97')]({'fields':_0x3392c9('0x2666'),'IntervalId':_0x3392c9('0x877'),'nolimit':!![]})[_0x3392c9('0x1964')][_0x3392c9('0x173b')](function(_0x2ea17d){const _0x298f69=_0x3392c9;_0x44d998[_0x298f69('0x21c4')]=_0x2ea17d[_0x298f69('0x6aa')]||[];})['then'](function(){const _0x5b416b=_0x3392c9;return _0x173410[_0x5b416b('0x170e')][_0x5b416b('0x1d97')]({'userProfileId':_0x44d998['currentUser']['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x3392c9('0x173b')](function(_0x493e73){const _0x43af29=_0x3392c9,_0x597a34=_0x493e73&&_0x493e73[_0x43af29('0x6aa')]?_0x493e73['rows'][0x0]:null;if(!_0x597a34)_0x44d998[_0x43af29('0x21c4')]=[];else{if(!_0x597a34['autoAssociation'])return _0x173410['userProfileResource'][_0x43af29('0x1d97')]({'sectionId':_0x597a34['id']})[_0x43af29('0x1964')][_0x43af29('0x173b')](function(_0x105d2b){const _0xac4ed4=_0x43af29,_0x670b34=_0x105d2b&&_0x105d2b['rows']?_0x105d2b[_0xac4ed4('0x6aa')]:[],_0x3c111a=[];let _0x431a61=null;_0x44d998['interval']&&(_0x431a61=_0x3c8d8a()['find'](_0x44d998[_0xac4ed4('0x21c4')],{'name':_0x44d998[_0xac4ed4('0x55a')]['IntervalId']})),_0x431a61&&!_0x3c8d8a()[_0xac4ed4('0x1ec')](_0x670b34,['resourceId',_0x431a61['id']])&&_0x44d998['intervals'][_0xac4ed4('0xa6a')](function(_0x3291dc){const _0x2157b9=_0xac4ed4;_0x3291dc['id']===_0x431a61['id']&&(_0x3291dc[_0x2157b9('0x268e')]=![],_0x3c111a[_0x2157b9('0x18bb')](_0x3291dc));}),_0x44d998[_0xac4ed4('0x21c4')]=_0x3c111a;});}})['catch'](function(_0x344081){const _0x2b678b=_0x3392c9;_0x358792[_0x2b678b('0x15aa')]({'title':_0x344081['status']?_0x2b678b('0x137')+_0x344081[_0x2b678b('0x276f')]+'\x20-\x20'+_0x344081[_0x2b678b('0x2696')]:_0x2b678b('0x1daf'),'msg':_0x344081['data']?JSON[_0x2b678b('0x100b')](_0x344081['data']):_0x344081['toString']()});}));function _0x4fa17d(){const _0x3e6f63=_0x3392c9;switch(_0x44d998[_0x3e6f63('0x1810')]){case _0x3e6f63('0x17b3'):case'list':return'*,*,*,*';case _0x3e6f63('0xbb4'):{const _0x23f6f5=[];if(_0x44d998['timeRangeFrom']!=='*'&&_0x44d998[_0x3e6f63('0x2515')]&&_0x44d998[_0x3e6f63('0x437')]){const _0x1cb103=(_0x44d998['timeRangeFrom']['getHours']()<0xa?'0':'')+_0x44d998['timeRangeFrom'][_0x3e6f63('0x1a28')]()+':'+((_0x44d998[_0x3e6f63('0x2515')][_0x3e6f63('0x1d2a')]()<0xa?'0':'')+_0x44d998['timeRangeFrom'][_0x3e6f63('0x1d2a')]()),_0x2ddf7d=(_0x44d998['timeRangeTo']['getHours']()<0xa?'0':'')+_0x44d998[_0x3e6f63('0x437')][_0x3e6f63('0x1a28')]()+':'+((_0x44d998[_0x3e6f63('0x437')][_0x3e6f63('0x1d2a')]()<0xa?'0':'')+_0x44d998['timeRangeTo'][_0x3e6f63('0x1d2a')]());_0x23f6f5[_0x3e6f63('0x18bb')](_0x1cb103+'-'+_0x2ddf7d);}else _0x23f6f5[_0x3e6f63('0x18bb')]('*');return _0x44d998[_0x3e6f63('0x37a')]?_0x44d998[_0x3e6f63('0x269e')]?_0x23f6f5['push'](_0x44d998[_0x3e6f63('0x37a')]+'-'+_0x44d998['dayOfWeekTo']):_0x23f6f5['push'](_0x44d998[_0x3e6f63('0x37a')]):_0x23f6f5[_0x3e6f63('0x18bb')]('*'),_0x44d998[_0x3e6f63('0x6df')]?_0x44d998['monthDayTo']?_0x23f6f5['push'](_0x44d998[_0x3e6f63('0x6df')]+'-'+_0x44d998[_0x3e6f63('0x185e')]):_0x23f6f5['push'](_0x44d998[_0x3e6f63('0x6df')]):_0x23f6f5[_0x3e6f63('0x18bb')]('*'),_0x44d998[_0x3e6f63('0x1f34')]?_0x44d998['monthTo']?_0x23f6f5[_0x3e6f63('0x18bb')](_0x44d998[_0x3e6f63('0x1f34')]+'-'+_0x44d998['monthTo']):_0x23f6f5[_0x3e6f63('0x18bb')](_0x44d998[_0x3e6f63('0x1f34')]):_0x23f6f5[_0x3e6f63('0x18bb')]('*'),_0x23f6f5['join']();}}}function _0x21352a(){const _0xa6958b=_0x3392c9;_0x44d998[_0xa6958b('0x1d4a')]=[],_0x44d998[_0xa6958b('0x55a')]['interval']=_0x4fa17d(),_0x173410[_0xa6958b('0x55a')][_0xa6958b('0x1195')](_0x44d998[_0xa6958b('0x55a')])[_0xa6958b('0x1964')][_0xa6958b('0x173b')](function(_0x2c1526){const _0x2b096f=_0xa6958b;_0x44d998[_0x2b096f('0x21c4')]['push'](_0x2c1526),_0x358792[_0x2b096f('0xdfe')]({'title':_0x2b096f('0x17fa'),'msg':_0x44d998['interval']['name']?_0x44d998[_0x2b096f('0x55a')][_0x2b096f('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x1e7251();})[_0xa6958b('0x103c')](function(_0x108a48){const _0x57cda2=_0xa6958b;console['error'](_0x108a48),_0x44d998[_0x57cda2('0x1d4a')]=_0x108a48[_0x57cda2('0x1e07')][_0x57cda2('0x1d4a')]||[{'message':_0x108a48['toString'](),'type':_0x57cda2('0xbde')}];});}function _0x5885aa(){const _0x42e3e2=_0x3392c9;_0x44d998[_0x42e3e2('0x1d4a')]=[],_0x44d998[_0x42e3e2('0x55a')][_0x42e3e2('0x55a')]=_0x4fa17d(),_0x44d998[_0x42e3e2('0x55a')][_0x42e3e2('0x17c2')]?(_0x44d998[_0x42e3e2('0x1810')]!==_0x42e3e2('0x3e3')&&(_0x44d998[_0x42e3e2('0x55a')][_0x42e3e2('0x600')]=null),_0x1e7251(_0x44d998[_0x42e3e2('0x55a')])):_0x173410[_0x42e3e2('0x55a')][_0x42e3e2('0x1842')]({'id':_0x44d998[_0x42e3e2('0x55a')]['id']},_0x44d998['interval'])['$promise'][_0x42e3e2('0x173b')](function(_0x44cc65){const _0x572260=_0x42e3e2,_0x29ed56=_0x3c8d8a()[_0x572260('0x18ab')](_0x44d998[_0x572260('0x21c4')],{'id':_0x44cc65['id']});_0x29ed56&&_0x3c8d8a()['merge'](_0x29ed56,_0x44cc65),_0x358792['success']({'title':'Interval\x20properly\x20saved!','msg':'Interval\x20has\x20been\x20saved!'}),_0x1e7251();})[_0x42e3e2('0x103c')](function(_0x31d858){const _0x26adcd=_0x42e3e2;console['error'](_0x31d858),_0x44d998[_0x26adcd('0x1d4a')]=_0x31d858[_0x26adcd('0x1e07')][_0x26adcd('0x1d4a')]||[{'message':_0x31d858[_0x26adcd('0x1b75')](),'type':_0x26adcd('0xe20')}];});}function _0x1e7251(_0x216589){const _0xdc9c3d=_0x3392c9;_0x220f67[_0xdc9c3d('0x1cf4')](_0x216589);}}const _0x130024=_0x135edd;_0x584f2a[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x1790'),_0x566993('0xade'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x584f2a(_0x5e1a08,_0x21a932,_0x24abf9,_0x196378,_0x4d2658,_0x3cea25,_0xd9e5ef,_0x50d712){const _0x135ca9=_0x566993,_0x43e9ca=this;_0x43e9ca[_0x135ca9('0x155f')]=_0xd9e5ef['getCurrentUser'](),_0x43e9ca[_0x135ca9('0x1d4a')]=[],_0x43e9ca['title']=_0x135ca9('0xcee')+(_0x196378['appType']||_0x196378[_0x135ca9('0x17e')])['toUpperCase'](),_0x43e9ca[_0x135ca9('0x1edc')]=angular['copy'](_0x196378),_0x43e9ca[_0x135ca9('0x1dc1')]=_0x50d712,_0x43e9ca[_0x135ca9('0xb0')]={};if(_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x1c00')])switch(_0x43e9ca[_0x135ca9('0x1edc')]['appType']?_0x43e9ca['outbounddial']['appType'][_0x135ca9('0x1e68')]():_0x43e9ca['outbounddial'][_0x135ca9('0x17e')]['toLowerCase']()){case _0x135ca9('0xbb4'):break;case _0x135ca9('0x1601'):{const _0x23a7c2=_0x43e9ca['outbounddial'][_0x135ca9('0x1c00')]['split'](',');_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x237a')]=_0x23a7c2[0x0],_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x604')]=_0x23a7c2[0x1],_0x43e9ca['outbounddial'][_0x135ca9('0x1a7')]=_0x23a7c2[_0x135ca9('0x2456')](0x2,_0x23a7c2['length'])[_0x135ca9('0x2259')](',');}break;case _0x135ca9('0x1680'):{const _0x2b3492=_0x43e9ca['outbounddial'][_0x135ca9('0x1c00')][_0x135ca9('0x43a')](',');_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x2e0')]=_0x2b3492[0x0],_0x43e9ca['outbounddial'][_0x135ca9('0x1d93')]=_0x2b3492[0x1],_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x10fc')]=_0x2b3492[0x2],_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x53')]=_0x2b3492[0x3],_0x43e9ca['outbounddial']['welcomemessage']=_0x2b3492[_0x135ca9('0x2456')](0x4,_0x2b3492[_0x135ca9('0x543')])[_0x135ca9('0x2259')](',');}break;case _0x135ca9('0x23fe'):{const _0x5664c9=_0x43e9ca['outbounddial'][_0x135ca9('0x1c00')][_0x135ca9('0x43a')](',');_0x43e9ca['outbounddial']['times']=isNaN(_0x5664c9[0x0])?_0x5664c9[0x0]:parseInt(_0x5664c9[0x0],0xa),_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x86e')]=_0x5664c9[_0x135ca9('0x2456')](0x1,_0x5664c9['length'])[_0x135ca9('0x2259')](',');}break;case _0x135ca9('0x67f'):_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x86e')]=_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x1c00')];break;case'set':_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x10ad')]=_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x1c00')]['split']('=')[0x0],_0x43e9ca[_0x135ca9('0x1edc')]['value']=_0x43e9ca['outbounddial'][_0x135ca9('0x1c00')][_0x135ca9('0x43a')]('=')[0x1];break;case _0x135ca9('0x2426'):_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x220b')]=_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x1c00')];break;default:{const _0x40f9e8=_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x1c00')]['split'](',');_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x15b7')]=_0x40f9e8[0x0][_0x135ca9('0x43a')]('/')[0x1],_0x43e9ca[_0x135ca9('0x1edc')]['phone']=_0x40f9e8[0x0]['split']('/')[0x2],_0x43e9ca[_0x135ca9('0x1edc')]['timeout']=_0x3c8d8a()[_0x135ca9('0x1a56')](_0x40f9e8[0x1])?_0x40f9e8[0x1]:isNaN(_0x40f9e8[0x1])?_0x40f9e8[0x1]:parseInt(_0x40f9e8[0x1],0xa),_0x43e9ca['outbounddial']['options']=_0x3c8d8a()['isEmpty'](_0x40f9e8[0x2])?_0x40f9e8[0x2]:isNaN(_0x40f9e8[0x2])?_0x40f9e8[0x2]:parseInt(_0x40f9e8[0x2],0xa),_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0xd1')]=_0x3c8d8a()['isEmpty'](_0x40f9e8[0x3])?_0x40f9e8[0x3]:isNaN(_0x40f9e8[0x3])?_0x40f9e8[0x3]:parseInt(_0x40f9e8[0x3],0xa);}break;}else{}_0x43e9ca['outbounddial']['type']&&_0x43e9ca['outbounddial']['type'][_0x135ca9('0x1e68')]()===_0x135ca9('0xb33')&&_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x9d7')][_0x135ca9('0x1e68')]()==='outbounddial'&&(_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0x23f7')]=_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0xa04')]?_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0xa04')][_0x135ca9('0x43a')]('$')[0x0]:undefined,_0x43e9ca['outbounddial'][_0x135ca9('0x1961')]=_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0xe95')]?_0x135ca9('0x20a8')+_0x43e9ca[_0x135ca9('0x1edc')][_0x135ca9('0xe95')]:undefined);_0x43e9ca[_0x135ca9('0x1095')]=_0x17b5dd,_0x43e9ca[_0x135ca9('0x18e2')]=_0x41d0b0,_0xd9e5ef[_0x135ca9('0x1b4e')]('admin')?_0x3cea25[_0x135ca9('0x15b7')][_0x135ca9('0x1d97')]({'fields':_0x135ca9('0xd52'),'sort':_0x135ca9('0x10ad'),'nolimit':_0x135ca9('0x799')})[_0x135ca9('0x1964')]['then'](function(_0x4c2947){const _0x1c88b3=_0x135ca9;_0x43e9ca[_0x1c88b3('0x673')]=_0x4c2947[_0x1c88b3('0x6aa')]||[];})['catch'](function(_0x4b41d0){const _0x519646=_0x135ca9;_0x24abf9['error']({'title':_0x4b41d0[_0x519646('0x276f')]?'API:'+_0x4b41d0[_0x519646('0x276f')]+_0x519646('0x160c')+_0x4b41d0['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x4b41d0[_0x519646('0x1e07')]?JSON[_0x519646('0x100b')](_0x4b41d0[_0x519646('0x1e07')]):_0x4b41d0[_0x519646('0x1b75')]()});}):_0x3cea25[_0x135ca9('0x15b7')][_0x135ca9('0x1d97')]({'fields':_0x135ca9('0xd52'),'sort':_0x135ca9('0x10ad'),'nolimit':_0x135ca9('0x799')})[_0x135ca9('0x1964')][_0x135ca9('0x173b')](function(_0x66b832){const _0x1f2ba1=_0x135ca9;_0x43e9ca[_0x1f2ba1('0x673')]=_0x66b832[_0x1f2ba1('0x6aa')]||[];})[_0x135ca9('0x173b')](function(){const _0xa9b69b=_0x135ca9;return _0x3cea25[_0xa9b69b('0x170e')][_0xa9b69b('0x1d97')]({'userProfileId':_0x43e9ca[_0xa9b69b('0x155f')][_0xa9b69b('0x1946')],'sectionId':0x3f3})[_0xa9b69b('0x1964')];})[_0x135ca9('0x173b')](function(_0x247eb5){const _0x215721=_0x135ca9,_0x7b212a=_0x247eb5&&_0x247eb5[_0x215721('0x6aa')]?_0x247eb5[_0x215721('0x6aa')][0x0]:null;if(!_0x7b212a){const _0x320dc0=[];let _0x3e1d7b=null;_0x43e9ca[_0x215721('0x1edc')]&&(_0x3e1d7b=_0x3c8d8a()[_0x215721('0x18ab')](_0x43e9ca[_0x215721('0x673')],{'name':_0x43e9ca['outbounddial']['trunk']}));for(let _0x43653d=0x0;_0x43653d<_0x43e9ca['trunks'][_0x215721('0x543')];_0x43653d++){_0x3e1d7b&&_0x43e9ca['trunks'][_0x43653d]['id']===_0x3e1d7b['id']&&(_0x43e9ca['trunks'][_0x43653d][_0x215721('0x268e')]=![],_0x320dc0[_0x215721('0x18bb')](_0x43e9ca[_0x215721('0x673')][_0x43653d]));}_0x43e9ca[_0x215721('0x673')]=_0x320dc0;}else{if(!_0x7b212a[_0x215721('0x273e')])return _0x3cea25['userProfileResource'][_0x215721('0x1d97')]({'sectionId':_0x7b212a['id']})[_0x215721('0x1964')][_0x215721('0x173b')](function(_0x3c1cd3){const _0x4e5650=_0x215721,_0x20fef3=_0x3c8d8a()[_0x4e5650('0x8a2')](_0x3c1cd3[_0x4e5650('0x6aa')],function(_0x396734){const _0x2a0e0a=_0x4e5650;return _0x3c8d8a()['find'](_0x43e9ca[_0x2a0e0a('0x673')],{'id':_0x396734[_0x2a0e0a('0x1ce0')]});});let _0x284902=null;_0x43e9ca[_0x4e5650('0x1edc')]&&(_0x284902=_0x3c8d8a()['find'](_0x43e9ca[_0x4e5650('0x673')],{'name':_0x43e9ca[_0x4e5650('0x1edc')][_0x4e5650('0x15b7')]}));if(_0x284902&&!_0x3c8d8a()['some'](_0x20fef3,['id',_0x284902['id']])){const _0x311f9e=_0x3c8d8a()['find'](_0x43e9ca[_0x4e5650('0x673')],{'id':_0x284902['id']});_0x311f9e[_0x4e5650('0x268e')]=![],_0x20fef3[_0x4e5650('0x18bb')](_0x311f9e);}_0x43e9ca[_0x4e5650('0x673')]=_0x20fef3;});}})[_0x135ca9('0x103c')](function(_0x4c197d){const _0xe73b1b=_0x135ca9;_0x24abf9[_0xe73b1b('0x15aa')]({'title':_0x4c197d['status']?'API:'+_0x4c197d[_0xe73b1b('0x276f')]+'\x20-\x20'+_0x4c197d[_0xe73b1b('0x2696')]:_0xe73b1b('0x21ed'),'msg':_0x4c197d[_0xe73b1b('0x1e07')]?JSON[_0xe73b1b('0x100b')](_0x4c197d[_0xe73b1b('0x1e07')]):_0x4c197d[_0xe73b1b('0x1b75')]()});}),_0xd9e5ef[_0x135ca9('0x1b4e')](_0x135ca9('0x79b'))?_0x3cea25[_0x135ca9('0x23b4')][_0x135ca9('0x1d97')]({'fields':'id,name','sort':_0x135ca9('0x10ad'),'nolimit':'true'})[_0x135ca9('0x1964')][_0x135ca9('0x173b')](function(_0x2ba44b){const _0x5de3be=_0x135ca9;_0x43e9ca[_0x5de3be('0x22ac')]=_0x2ba44b[_0x5de3be('0x6aa')]||[];})[_0x135ca9('0x103c')](function(_0x2b62a6){const _0xcbd4c3=_0x135ca9;_0x24abf9[_0xcbd4c3('0x15aa')]({'title':_0x2b62a6['status']?_0xcbd4c3('0x137')+_0x2b62a6[_0xcbd4c3('0x276f')]+_0xcbd4c3('0x160c')+_0x2b62a6['statusText']:_0xcbd4c3('0x1a9b'),'msg':_0x2b62a6[_0xcbd4c3('0x1e07')]?JSON[_0xcbd4c3('0x100b')](_0x2b62a6[_0xcbd4c3('0x1e07')]):_0x2b62a6[_0xcbd4c3('0x1b75')]()});}):_0x3cea25['tag'][_0x135ca9('0x1d97')]({'fields':_0x135ca9('0xd52'),'sort':'name','nolimit':_0x135ca9('0x799')})[_0x135ca9('0x1964')][_0x135ca9('0x173b')](function(_0x3f3d87){const _0x3bf266=_0x135ca9;_0x43e9ca[_0x3bf266('0x22ac')]=_0x3f3d87[_0x3bf266('0x6aa')]||[];})['then'](function(){const _0x228aa6=_0x135ca9;return _0x3cea25['userProfileSection']['get']({'userProfileId':_0x43e9ca[_0x228aa6('0x155f')][_0x228aa6('0x1946')],'sectionId':0x3f0})[_0x228aa6('0x1964')];})[_0x135ca9('0x173b')](function(_0x5c3e53){const _0xe45475=_0x135ca9,_0x5196c1=_0x5c3e53&&_0x5c3e53[_0xe45475('0x6aa')]?_0x5c3e53[_0xe45475('0x6aa')][0x0]:null;if(!_0x5196c1){const _0x40d270=[];let _0x1f692c=null;_0x43e9ca[_0xe45475('0x1edc')]&&(_0x1f692c=_0x3c8d8a()[_0xe45475('0x18ab')](_0x43e9ca['tags'],{'name':_0x43e9ca['outbounddial'][_0xe45475('0x23b4')]}));for(let _0x2d3bd5=0x0;_0x2d3bd5<_0x43e9ca[_0xe45475('0x22ac')][_0xe45475('0x543')];_0x2d3bd5++){_0x1f692c&&_0x43e9ca[_0xe45475('0x22ac')][_0x2d3bd5]['id']===_0x1f692c['id']&&(_0x43e9ca[_0xe45475('0x22ac')][_0x2d3bd5][_0xe45475('0x268e')]=![],_0x40d270['push'](_0x43e9ca['tags'][_0x2d3bd5]));}_0x43e9ca['tags']=_0x40d270;}else{if(!_0x5196c1['autoAssociation'])return _0x3cea25[_0xe45475('0xda9')][_0xe45475('0x1d97')]({'sectionId':_0x5196c1['id']})['$promise'][_0xe45475('0x173b')](function(_0x1c52fe){const _0x18fedc=_0xe45475,_0x3e7f5e=_0x3c8d8a()[_0x18fedc('0x8a2')](_0x1c52fe[_0x18fedc('0x6aa')],function(_0x3823c9){const _0x38f1de=_0x18fedc;return _0x3c8d8a()[_0x38f1de('0x18ab')](_0x43e9ca[_0x38f1de('0x22ac')],{'id':_0x3823c9[_0x38f1de('0x1ce0')]});});let _0xa4e614=null;_0x43e9ca[_0x18fedc('0x1edc')]&&(_0xa4e614=_0x3c8d8a()[_0x18fedc('0x18ab')](_0x43e9ca['tags'],{'name':_0x43e9ca[_0x18fedc('0x1edc')][_0x18fedc('0x23b4')]}));if(_0xa4e614&&!_0x3c8d8a()[_0x18fedc('0x1ec')](_0x3e7f5e,['id',_0xa4e614['id']])){const _0x13e381=_0x3c8d8a()['find'](_0x43e9ca['tags'],{'id':_0xa4e614['id']});_0x13e381[_0x18fedc('0x268e')]=![],_0x3e7f5e[_0x18fedc('0x18bb')](_0x13e381);}_0x43e9ca[_0x18fedc('0x22ac')]=_0x3e7f5e;});}})[_0x135ca9('0x103c')](function(_0x2d1483){const _0x1d31a4=_0x135ca9;_0x24abf9[_0x1d31a4('0x15aa')]({'title':_0x2d1483[_0x1d31a4('0x276f')]?'API:'+_0x2d1483['status']+'\x20-\x20'+_0x2d1483[_0x1d31a4('0x2696')]:_0x1d31a4('0x1cc0'),'msg':_0x2d1483['data']?JSON['stringify'](_0x2d1483[_0x1d31a4('0x1e07')]):_0x2d1483[_0x1d31a4('0x1b75')]()});});function _0x17b5dd(){const _0x48f9a4=_0x135ca9;_0x43e9ca[_0x48f9a4('0x1d4a')]=[];const _0x21c338=[];_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x1810')]&&_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x1810')][_0x48f9a4('0x1e68')]()==='outbound'&&_0x43e9ca['outbounddial']['appType']===_0x48f9a4('0x2150')&&(_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0xa04')]=_0x4d2658[_0x48f9a4('0x1429')]?(_0x43e9ca['outbounddial'][_0x48f9a4('0x23f7')]||'')+_0x48f9a4('0x1957')+_0x4d2658[_0x48f9a4('0x1429')]+'}':(_0x43e9ca['outbounddial']['prefix']||'')+'${EXTEN}',_0x4d2658[_0x48f9a4('0x76c')]!==_0x48f9a4('0x2741')?_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x2010')][_0x48f9a4('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x2010')]+='U(xcally-mixmonitor-context)'):_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x2010')]=_0x43e9ca[_0x48f9a4('0x1edc')]['options'][_0x48f9a4('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x43e9ca[_0x48f9a4('0x1edc')]['appType']&&_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x9d7')]==='custom'){}else switch((_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x17e')]||_0x43e9ca[_0x48f9a4('0x1edc')]['appType'])[_0x48f9a4('0x1e68')]()){case _0x48f9a4('0x256d'):_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x1c00')]=_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x10ad')]+'='+_0x43e9ca['outbounddial']['value'];break;case _0x48f9a4('0xbb4'):break;default:_0x21c338[0x0]=[_0x48f9a4('0x9e6'),_0x43e9ca['outbounddial'][_0x48f9a4('0x15b7')],_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0xa04')]]['join']('/'),_0x21c338[0x1]=_0x43e9ca['outbounddial'][_0x48f9a4('0x1f84')],_0x21c338[0x2]=_0x43e9ca['outbounddial']['options'],_0x21c338[0x3]=_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0xd1')],_0x43e9ca[_0x48f9a4('0x1edc')][_0x48f9a4('0x1c00')]=_0x21c338[_0x48f9a4('0x2259')](',');}_0x41d0b0(_0x43e9ca[_0x48f9a4('0x1edc')]);}function _0x41d0b0(_0x574edb){const _0x4b2906=_0x135ca9;_0x5e1a08[_0x4b2906('0x1cf4')](_0x574edb);}}const _0x354d4f=_0x584f2a;_0x1ac73c[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$translate',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),'toasty',_0x566993('0x1600'),_0x566993('0xade'),_0x566993('0x170e')];function _0x1ac73c(_0x47a0d6,_0x55ac6a,_0x124ac1,_0x335f77,_0x58609b,_0x18f1f9,_0x37e04c,_0x5b3b1a,_0xedb6bc,_0x3dd90a,_0x48b638,_0x10c5fc){const _0x432540=_0x566993,_0x507cdc=this;_0x507cdc['currentUser']=_0x3dd90a[_0x432540('0x14d4')](),_0x507cdc[_0x432540('0x1a29')]=_0x18f1f9,_0x507cdc[_0x432540('0x251')]=_0x37e04c,_0x507cdc[_0x432540('0x644')]=_0x507cdc[_0x432540('0x251')][_0x432540('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x507cdc['location']=_0x55ac6a[_0x432540('0x375')]()+'://'+_0x55ac6a[_0x432540('0x4d1')](),_0x507cdc[_0x432540('0xade')]=_0x48b638||_0x47a0d6[_0x432540('0x197a')][_0x432540('0xade')]||{},_0x507cdc[_0x432540('0x170e')]=_0x10c5fc&&_0x10c5fc['count']==0x1?_0x10c5fc['rows'][0x0]:null,_0x507cdc['crudPermissions']=_0x3dd90a['parseCrudPermissions'](_0x507cdc[_0x432540('0x170e')]?_0x507cdc['userProfileSection'][_0x432540('0x1dc1')]:null),_0x507cdc[_0x432540('0xb0')]={},_0x507cdc[_0x432540('0xd5f')]=_0x47a0d6[_0x432540('0x197a')][_0x432540('0x1e66')]||0x0,_0x507cdc[_0x432540('0x5a4')]=_0xedb6bc[_0x432540('0x2787')],_0x507cdc['gotoOutboundRoutes']=_0x13cdf9,_0x507cdc[_0x432540('0x2754')]=_0x2ade87,_0x3dd90a['hasRole'](_0x432540('0x79b'))?_0x5b3b1a[_0x432540('0xf01')]['get']({'fields':'id,name','sort':_0x432540('0x10ad'),'nolimit':'true'})['$promise'][_0x432540('0x173b')](function(_0x5352e0){const _0xa14f70=_0x432540;_0x507cdc['contexts']=_0x5352e0[_0xa14f70('0x6aa')]||[];})['catch'](function(_0x1eb3e5){const _0x262ab3=_0x432540;_0xedb6bc[_0x262ab3('0x15aa')]({'title':_0x1eb3e5['status']?_0x262ab3('0x137')+_0x1eb3e5[_0x262ab3('0x276f')]+_0x262ab3('0x160c')+_0x1eb3e5['statusText']:_0x262ab3('0x2064'),'msg':_0x1eb3e5[_0x262ab3('0x1e07')]?JSON['stringify'](_0x1eb3e5['data']):_0x1eb3e5[_0x262ab3('0x1b75')]()});}):_0x5b3b1a[_0x432540('0xf01')]['get']({'fields':'id,name','sort':_0x432540('0x10ad'),'nolimit':_0x432540('0x799')})[_0x432540('0x1964')][_0x432540('0x173b')](function(_0x8ede60){const _0x286d00=_0x432540;_0x507cdc['contexts']=_0x8ede60[_0x286d00('0x6aa')]||[];})[_0x432540('0x173b')](function(){const _0xdf96d6=_0x432540;return _0x5b3b1a[_0xdf96d6('0x170e')][_0xdf96d6('0x1d97')]({'userProfileId':_0x507cdc[_0xdf96d6('0x155f')][_0xdf96d6('0x1946')],'sectionId':0x195})[_0xdf96d6('0x1964')];})[_0x432540('0x173b')](function(_0x3baa5d){const _0x10fdc3=_0x432540,_0x18b28c=_0x3baa5d&&_0x3baa5d[_0x10fdc3('0x6aa')]?_0x3baa5d['rows'][0x0]:null;if(!_0x18b28c)return _0x5b3b1a[_0x10fdc3('0xf01')][_0x10fdc3('0x1d97')]({'fields':_0x10fdc3('0xd52'),'sort':_0x10fdc3('0x10ad'),'nolimit':_0x10fdc3('0x799'),'defaultEntry':0x1})[_0x10fdc3('0x1964')][_0x10fdc3('0x173b')](function(_0x507f20){_0x507cdc['contexts']=_0x507f20['rows']||[];});else{if(!_0x18b28c[_0x10fdc3('0x273e')])return _0x5b3b1a[_0x10fdc3('0xda9')][_0x10fdc3('0x1d97')]({'sectionId':_0x18b28c['id']})[_0x10fdc3('0x1964')][_0x10fdc3('0x173b')](function(_0x5514fb){const _0x59318e=_0x10fdc3,_0x2abfeb=_0x3c8d8a()[_0x59318e('0x8a2')](_0x5514fb[_0x59318e('0x6aa')],function(_0x35d503){const _0x1dea89=_0x59318e;return _0x3c8d8a()[_0x1dea89('0x18ab')](_0x507cdc[_0x1dea89('0x22a9')],{'id':_0x35d503[_0x1dea89('0x1ce0')]});});let _0x33f699=null;_0x507cdc[_0x59318e('0xade')]&&(_0x33f699=_0x3c8d8a()[_0x59318e('0x18ab')](_0x507cdc[_0x59318e('0x22a9')],{'name':_0x507cdc[_0x59318e('0xade')][_0x59318e('0x2b9')]}));if(_0x33f699&&!_0x3c8d8a()[_0x59318e('0x1ec')](_0x2abfeb,['id',_0x33f699['id']])){const _0x18349c=_0x3c8d8a()[_0x59318e('0x18ab')](_0x507cdc[_0x59318e('0x22a9')],{'id':_0x33f699['id']});_0x18349c[_0x59318e('0x268e')]=![],_0x2abfeb[_0x59318e('0x18bb')](_0x18349c);}_0x507cdc[_0x59318e('0x22a9')]=_0x2abfeb;});}})['catch'](function(_0xc5ee94){const _0x4937eb=_0x432540;_0xedb6bc[_0x4937eb('0x15aa')]({'title':_0xc5ee94[_0x4937eb('0x276f')]?_0x4937eb('0x137')+_0xc5ee94['status']+_0x4937eb('0x160c')+_0xc5ee94[_0x4937eb('0x2696')]:_0x4937eb('0x18fd'),'msg':_0xc5ee94['data']?JSON['stringify'](_0xc5ee94[_0x4937eb('0x1e07')]):_0xc5ee94[_0x4937eb('0x1b75')]()});});function _0x13cdf9(){const _0x4dfe54=_0x432540;_0x47a0d6['go'](_0x4dfe54('0x533'),{},{'reload':_0x4dfe54('0x533')});}function _0x2ade87(){const _0x5e28c4=_0x432540;_0x5b3b1a[_0x5e28c4('0x1630')][_0x5e28c4('0x1842')]({'id':_0x507cdc[_0x5e28c4('0xade')]['id']},_0x507cdc[_0x5e28c4('0xade')])[_0x5e28c4('0x1964')][_0x5e28c4('0x173b')](function(){const _0x1c8a80=_0x5e28c4;_0xedb6bc['success']({'title':_0x1c8a80('0x237f'),'msg':_0x507cdc[_0x1c8a80('0xade')]['name']?_0x507cdc[_0x1c8a80('0xade')]['name']+_0x1c8a80('0x1fd6'):''});})[_0x5e28c4('0x103c')](function(_0xc66d4c){const _0x591108=_0x5e28c4;_0xedb6bc[_0x591108('0x15aa')]({'title':_0xc66d4c['status']?_0x591108('0x137')+_0xc66d4c[_0x591108('0x276f')]+_0x591108('0x160c')+_0xc66d4c[_0x591108('0x2696')]:_0x591108('0x1ab5'),'msg':_0xc66d4c[_0x591108('0x1e07')]?JSON['stringify'](_0xc66d4c[_0x591108('0x1e07')]):_0xc66d4c['toString']()});});}}const _0x19f905=_0x1ac73c,_0x3b779a=_0x21a6a1['p']+_0x566993('0xaa7');_0x2cf994[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x1ab7'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x2cf994(_0x1b55c1,_0xd7d4e0,_0xff49d,_0x550223,_0x2ef482,_0x4f0429,_0x29c423,_0x2e2305,_0x1d3ba2,_0x3eca15,_0x444ce7,_0x596a25,_0x48593e,_0x1d488f,_0x6614ef,_0x4654b9,_0x21b144){const _0x47d016=_0x566993,_0x5e5bce=this;_0x5e5bce[_0x47d016('0x1a29')]=_0x4654b9,_0x5e5bce[_0x47d016('0x251')]=_0x21b144,_0x5e5bce[_0x47d016('0x155f')]=_0x6614ef[_0x47d016('0x14d4')](),_0x5e5bce['outboundroutes']=_0x1d3ba2||{'count':0x0,'rows':[]},_0x5e5bce[_0x47d016('0x257b')]=_0x3eca15,_0x5e5bce[_0x47d016('0x170e')]=_0x444ce7&&_0x444ce7[_0x47d016('0x1a2f')]==0x1?_0x444ce7['rows'][0x0]:null,_0x5e5bce[_0x47d016('0x1dc1')]=_0x6614ef[_0x47d016('0xde6')](_0x5e5bce[_0x47d016('0x170e')]?_0x5e5bce[_0x47d016('0x170e')]['crudPermissions']:null),_0x5e5bce['table']=_0x47d016('0x1ab7'),_0x5e5bce[_0x47d016('0x14d6')]='',_0x5e5bce[_0x47d016('0x2303')]=null,_0x5e5bce[_0x47d016('0xc74')]=[],_0x5e5bce[_0x47d016('0xc49')]={'fields':_0x47d016('0x599'),'type':'outbound','sort':_0x47d016('0x1769'),'VoiceExtensionId':'null','limit':0xa,'page':0x1},_0x5e5bce[_0x47d016('0x462')]=_0x3c8d8a()[_0x47d016('0x128')]([{'option':'none','value':'\x27none\x27'},{'option':_0x47d016('0x1362'),'value':_0x47d016('0x675')},{'option':_0x47d016('0x165'),'value':_0x47d016('0x1890')},{'option':_0x47d016('0x2aa'),'value':_0x47d016('0x3e4')}],function(_0x132a2d){return _0x3c8d8a()['replace'](_0x132a2d['value'],new RegExp('\x27','g'),'');}),_0x5e5bce[_0x47d016('0x222e')]=_0x367df7,_0x5e5bce['deleteconfirm']=_0x4a12df,_0x5e5bce[_0x47d016('0xdfe')]=_0x3d48f3,_0x5e5bce['getOutboundRoutes']=_0x29ce6e,_0x5e5bce[_0x47d016('0xab7')]=_0x19a0a1,_0x5e5bce['deleteOutboundRoute']=_0x476573,_0x5e5bce[_0x47d016('0x125f')]=_0x4ab503,_0x5e5bce[_0x47d016('0x14fc')]=_0xf33893,_0x5e5bce[_0x47d016('0x22c8')]=_0x276a07,_0x5e5bce[_0x47d016('0x1bd9')]=_0xee6ff7,_0x6614ef['hasRole'](_0x47d016('0x79b'))?_0x596a25['voiceContext'][_0x47d016('0x1d97')]({'fields':_0x47d016('0xd52'),'sort':_0x47d016('0x10ad'),'nolimit':_0x47d016('0x799')})[_0x47d016('0x1964')][_0x47d016('0x173b')](function(_0x234458){const _0x2407dd=_0x47d016;_0x5e5bce['contexts']=_0x234458[_0x2407dd('0x6aa')]||[];})[_0x47d016('0x103c')](function(_0x1f5e2a){const _0x537ce7=_0x47d016;_0x1d488f[_0x537ce7('0x15aa')]({'title':_0x1f5e2a['status']?_0x537ce7('0x137')+_0x1f5e2a[_0x537ce7('0x276f')]+_0x537ce7('0x160c')+_0x1f5e2a['statusText']:_0x537ce7('0x2064'),'msg':_0x1f5e2a['data']?JSON[_0x537ce7('0x100b')](_0x1f5e2a[_0x537ce7('0x1e07')]):_0x1f5e2a[_0x537ce7('0x1b75')]()});}):_0x596a25[_0x47d016('0xf01')][_0x47d016('0x1d97')]({'fields':_0x47d016('0xd52'),'sort':_0x47d016('0x10ad'),'nolimit':_0x47d016('0x799')})[_0x47d016('0x1964')]['then'](function(_0x257037){const _0x44485b=_0x47d016;_0x5e5bce[_0x44485b('0x22a9')]=_0x257037[_0x44485b('0x6aa')]||[];})[_0x47d016('0x173b')](function(){const _0x31b35a=_0x47d016;return _0x596a25[_0x31b35a('0x170e')][_0x31b35a('0x1d97')]({'userProfileId':_0x5e5bce[_0x31b35a('0x155f')][_0x31b35a('0x1946')],'sectionId':0x195})[_0x31b35a('0x1964')];})[_0x47d016('0x173b')](function(_0x5ee3cd){const _0x396811=_0x47d016,_0x575a86=_0x5ee3cd&&_0x5ee3cd[_0x396811('0x6aa')]?_0x5ee3cd[_0x396811('0x6aa')][0x0]:null;if(!_0x575a86)return _0x596a25['voiceContext']['get']({'fields':_0x396811('0xd52'),'sort':_0x396811('0x10ad'),'nolimit':'true','defaultEntry':0x1})[_0x396811('0x1964')]['then'](function(_0x1be536){const _0xb88d1f=_0x396811;_0x5e5bce[_0xb88d1f('0x22a9')]=_0x1be536[_0xb88d1f('0x6aa')]||[];});else{if(!_0x575a86[_0x396811('0x273e')])return _0x596a25[_0x396811('0xda9')][_0x396811('0x1d97')]({'sectionId':_0x575a86['id']})[_0x396811('0x1964')][_0x396811('0x173b')](function(_0x2472e6){const _0x3ea44b=_0x396811,_0x40ad26=_0x3c8d8a()[_0x3ea44b('0x8a2')](_0x2472e6[_0x3ea44b('0x6aa')],function(_0x44cc63){const _0x5c15ec=_0x3ea44b;return _0x3c8d8a()['find'](_0x5e5bce[_0x5c15ec('0x22a9')],{'id':_0x44cc63[_0x5c15ec('0x1ce0')]});});let _0x2bbb63=null;_0x5e5bce['outboundroute']&&(_0x2bbb63=_0x3c8d8a()[_0x3ea44b('0x18ab')](_0x5e5bce[_0x3ea44b('0x22a9')],{'name':_0x5e5bce[_0x3ea44b('0xade')][_0x3ea44b('0x2b9')]}));if(_0x2bbb63&&!_0x3c8d8a()['some'](_0x40ad26,['id',_0x2bbb63['id']])){const _0x141fba=_0x3c8d8a()[_0x3ea44b('0x18ab')](_0x5e5bce[_0x3ea44b('0x22a9')],{'id':_0x2bbb63['id']});_0x141fba['canSelect']=![],_0x40ad26[_0x3ea44b('0x18bb')](_0x141fba);}_0x5e5bce[_0x3ea44b('0x22a9')]=_0x40ad26;});}})[_0x47d016('0x103c')](function(_0x568d97){const _0x496bc2=_0x47d016;_0x1d488f[_0x496bc2('0x15aa')]({'title':_0x568d97[_0x496bc2('0x276f')]?_0x496bc2('0x137')+_0x568d97[_0x496bc2('0x276f')]+_0x496bc2('0x160c')+_0x568d97['statusText']:_0x496bc2('0x18fd'),'msg':_0x568d97[_0x496bc2('0x1e07')]?JSON[_0x496bc2('0x100b')](_0x568d97['data']):_0x568d97[_0x496bc2('0x1b75')]()});});function _0x367df7(_0x54c886){const _0x6de388=_0x47d016;_0xff49d['go'](_0x6de388('0x713'),{'id':_0x54c886['id'],'outboundroute':_0x54c886,'crudPermissions':_0x5e5bce[_0x6de388('0x1dc1')]});}function _0x4a12df(_0x414eb3,_0x57cd58){const _0x6c6608=_0x47d016,_0x31bd46=_0x2ef482[_0x6c6608('0x1d02')]()[_0x6c6608('0x20d6')](_0x6c6608('0x5bb')+_0x3c8d8a()['startCase']('outboundroute')+'?')[_0x6c6608('0xf8b')](_0x6c6608('0x15b9')+(_0x414eb3[_0x6c6608('0x10ad')]||'outboundroute')+_0x6c6608('0x24be')+_0x6c6608('0xd23'))['ariaLabel'](_0x6c6608('0x15c0'))[_0x6c6608('0x21de')](_0x57cd58)['ok']('OK')['cancel'](_0x6c6608('0x468'));_0x2ef482[_0x6c6608('0x1cb7')](_0x31bd46)[_0x6c6608('0x173b')](function(){_0x476573(_0x414eb3);},function(){const _0x17f65d=_0x6c6608;console[_0x17f65d('0xe37')](_0x17f65d('0x468'));});}let _0x38d1d1=!![],_0x4fb4ed=0x1;_0x1b55c1[_0x47d016('0x1bdb')](_0x47d016('0x157b'),function(_0x135b75,_0x3ee7d0){const _0x247d81=_0x47d016;_0x38d1d1?_0x29c423(function(){_0x38d1d1=![];}):(!_0x3ee7d0&&(_0x4fb4ed=_0x5e5bce['query']['page']),_0x135b75!==_0x3ee7d0&&(_0x5e5bce[_0x247d81('0xc49')]['page']=0x1),!_0x135b75&&(_0x5e5bce['query'][_0x247d81('0x182e')]=_0x4fb4ed),_0x5e5bce[_0x247d81('0x222c')]());});function _0x3d48f3(_0x2e9e34){const _0x28df18=_0x47d016;_0x5e5bce[_0x28df18('0x1ab7')]=_0x2e9e34||{'count':0x0,'rows':[]};}function _0x29ce6e(){const _0x94c1f5=_0x47d016;_0x5e5bce['query']['offset']=(_0x5e5bce[_0x94c1f5('0xc49')][_0x94c1f5('0x182e')]-0x1)*_0x5e5bce[_0x94c1f5('0xc49')]['limit'],_0x6614ef[_0x94c1f5('0x1b4e')](_0x94c1f5('0x79b'))?_0x5e5bce['promise']=_0x596a25['voiceExtension'][_0x94c1f5('0x1d97')](_0x5e5bce[_0x94c1f5('0xc49')],_0x3d48f3)[_0x94c1f5('0x1964')]:(_0x5e5bce[_0x94c1f5('0xc49')]['id']=_0x5e5bce[_0x94c1f5('0x257b')]['id'],_0x5e5bce['query']['section']='OutboundRoutes',_0x5e5bce[_0x94c1f5('0x2219')]=_0x596a25[_0x94c1f5('0x257b')][_0x94c1f5('0x135b')](_0x5e5bce[_0x94c1f5('0xc49')],_0x3d48f3)[_0x94c1f5('0x1964')]);}function _0x19a0a1(_0x455485,_0x3fac3d){const _0x52cf88=_0x47d016;_0x2ef482[_0x52cf88('0x1cb7')]({'controller':_0x52cf88('0x896'),'controllerAs':'vm','templateUrl':_0x3b779a,'parent':angular[_0x52cf88('0xb6d')](_0x4f0429[_0x52cf88('0x1a5')]),'targetEvent':_0x455485,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x3fac3d,'outboundroutes':_0x5e5bce[_0x52cf88('0x1ab7')][_0x52cf88('0x6aa')],'license':_0x5e5bce[_0x52cf88('0x1a29')],'setting':_0x5e5bce['setting'],'crudPermissions':_0x5e5bce[_0x52cf88('0x1dc1')]}});}function _0x476573(_0x4a8676){const _0x115d09=_0x47d016;_0x596a25[_0x115d09('0x1e12')][_0x115d09('0x1d97')]({'VoiceExtensionId':_0x4a8676['id']})[_0x115d09('0x1964')][_0x115d09('0x173b')](function(_0x32f0bb){const _0xd2e0b2=_0x115d09;if(_0x32f0bb&&_0x32f0bb[_0xd2e0b2('0x6aa')]&&_0x32f0bb[_0xd2e0b2('0x6aa')][_0xd2e0b2('0x543')]>0x0)return _0x1d488f[_0xd2e0b2('0x15aa')]({'title':_0xd2e0b2('0x1b0d'),'msg':_0xd2e0b2('0x17ef')});else _0x596a25['voiceExtension'][_0xd2e0b2('0x15e8')]({'id':_0x4a8676['id']})[_0xd2e0b2('0x1964')][_0xd2e0b2('0x173b')](function(){const _0x2af857=_0xd2e0b2;_0x3c8d8a()[_0x2af857('0x1a8b')](_0x5e5bce['outboundroutes'][_0x2af857('0x6aa')],{'id':_0x4a8676['id']}),_0x5e5bce[_0x2af857('0x1ab7')][_0x2af857('0x1a2f')]-=0x1,!_0x5e5bce[_0x2af857('0x1ab7')]['rows'][_0x2af857('0x543')]&&_0x5e5bce[_0x2af857('0x222c')](),_0x1d488f['success']({'title':_0x3c8d8a()[_0x2af857('0x10e')](_0x2af857('0x1a4'))+_0x2af857('0x1c5e'),'msg':_0x4a8676[_0x2af857('0x10ad')]?_0x4a8676[_0x2af857('0x10ad')]+_0x2af857('0x25d2'):''});})[_0xd2e0b2('0x103c')](function(_0x2143fc){const _0x37cca1=_0xd2e0b2;if(_0x2143fc[_0x37cca1('0x1e07')]&&_0x2143fc[_0x37cca1('0x1e07')]['errors']&&_0x2143fc[_0x37cca1('0x1e07')][_0x37cca1('0x1d4a')][_0x37cca1('0x543')]){_0x5e5bce[_0x37cca1('0x1d4a')]=_0x2143fc['data'][_0x37cca1('0x1d4a')]||[{'message':_0x2143fc[_0x37cca1('0x1b75')](),'type':'SYSTEM:DELETEvoiceExtension'}];for(let _0x28dd67=0x0;_0x28dd67<_0x2143fc[_0x37cca1('0x1e07')]['errors']['length'];_0x28dd67++){_0x1d488f[_0x37cca1('0x15aa')]({'title':_0x2143fc[_0x37cca1('0x1e07')][_0x37cca1('0x1d4a')][_0x28dd67][_0x37cca1('0x1810')],'msg':_0x2143fc['data'][_0x37cca1('0x1d4a')][_0x28dd67][_0x37cca1('0x67f')]});}}else _0x1d488f['error']({'title':_0x2143fc[_0x37cca1('0x276f')]?_0x37cca1('0x137')+_0x2143fc[_0x37cca1('0x276f')]+'\x20-\x20'+_0x2143fc['statusText']:'SYSTEM:DELETEvoiceExtension','msg':_0x2143fc[_0x37cca1('0x1e07')]?JSON[_0x37cca1('0x100b')](_0x2143fc[_0x37cca1('0x1e07')][_0x37cca1('0x67f')]):_0x2143fc['message']||_0x2143fc[_0x37cca1('0x1b75')]()});});});}function _0x4ab503(){const _0x19e90e=_0x47d016,_0x3bfe9a=angular['copy'](_0x5e5bce[_0x19e90e('0xc74')]);return _0x5e5bce[_0x19e90e('0xc74')]=[],_0x3bfe9a;}function _0xf33893(_0x5bef15){const _0x283f66=_0x47d016,_0x25d2a2=_0x2ef482[_0x283f66('0x1d02')]()['title'](_0x283f66('0x7fe'))[_0x283f66('0xf8b')](_0x283f66('0x15b9')+_0x5e5bce[_0x283f66('0xc74')][_0x283f66('0x543')]+'\x20selected'+_0x283f66('0xd23'))[_0x283f66('0x217')](_0x283f66('0x19c4'))[_0x283f66('0x21de')](_0x5bef15)['ok']('OK')['cancel'](_0x283f66('0x468'));_0x2ef482[_0x283f66('0x1cb7')](_0x25d2a2)[_0x283f66('0x173b')](function(){const _0x24b816=_0x283f66;_0x5e5bce['selectedOutboundRoutes'][_0x24b816('0xa6a')](function(_0x1e1a23){_0x476573(_0x1e1a23);}),_0x5e5bce[_0x24b816('0xc74')]=[];});}function _0x276a07(){const _0x50faee=_0x47d016;_0x5e5bce[_0x50faee('0xc74')]=[];}function _0xee6ff7(){const _0x1a0e7e=_0x47d016;_0x5e5bce['selectedOutboundRoutes']=_0x5e5bce['outboundroutes'][_0x1a0e7e('0x6aa')];}}const _0x1726d7=_0x2cf994;_0x2be472[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x264e'),_0x566993('0x2710'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x2be472(_0x4357ff,_0x4996eb,_0x5b0290,_0x27fedc,_0x47080b,_0x329cba,_0x3f719b,_0x122b46,_0x3ea051,_0x218254,_0x2813e8,_0x50ed8a,_0x2d61ae,_0x324c96){const _0x562a7d=_0x566993,_0x210405=this;_0x210405[_0x562a7d('0x155f')]=_0x2813e8[_0x562a7d('0x14d4')](),_0x210405[_0x562a7d('0x1d4a')]=[],_0x210405[_0x562a7d('0x251')]=_0x2d61ae,_0x210405[_0x562a7d('0x1a29')]=_0x50ed8a,_0x210405[_0x562a7d('0x1dc1')]=_0x324c96,_0x210405[_0x562a7d('0xb0')]={},_0x210405[_0x562a7d('0x644')]=_0x210405[_0x562a7d('0x251')]&&_0x210405[_0x562a7d('0x251')][_0x562a7d('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x210405[_0x562a7d('0x20d6')]=_0x562a7d('0x1cfe'),_0x210405[_0x562a7d('0x2710')]=angular[_0x562a7d('0x2e3')](_0x3ea051),_0x210405[_0x562a7d('0x264e')]=_0x122b46,_0x210405['newVoicemail']=![];!_0x210405[_0x562a7d('0x2710')]&&(_0x210405[_0x562a7d('0x2710')]={'attach':'no'},_0x210405['title']='VOICE.NEW_VOICEMAIL',_0x210405[_0x562a7d('0x18bf')]=!![]);_0x210405[_0x562a7d('0xba5')]=_0x59d8a3,_0x210405[_0x562a7d('0x1dcd')]=_0x23b9af,_0x210405[_0x562a7d('0xed6')]=_0x1f5ec1,_0x210405[_0x562a7d('0x11ae')]=_0x5e30fc,_0x210405[_0x562a7d('0x18e2')]=_0x1b337f;function _0x59d8a3(){const _0xba2747=_0x562a7d;_0x210405[_0xba2747('0x1d4a')]=[],_0x218254[_0xba2747('0x579')][_0xba2747('0x1195')](_0x210405[_0xba2747('0x2710')])[_0xba2747('0x1964')][_0xba2747('0x173b')](function(_0x41df5d){const _0x29d9a7=_0xba2747;_0x210405['voicemails'][_0x29d9a7('0x1377')](_0x41df5d[_0x29d9a7('0xf1f')]()),_0x3f719b[_0x29d9a7('0xdfe')]({'title':_0x29d9a7('0x19f8'),'msg':_0x210405[_0x29d9a7('0x2710')][_0x29d9a7('0x10ad')]?_0x210405[_0x29d9a7('0x2710')][_0x29d9a7('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x1b337f(_0x41df5d);})[_0xba2747('0x103c')](function(_0x22dd02){const _0xc851d6=_0xba2747;if(_0x22dd02['data']&&_0x22dd02[_0xc851d6('0x1e07')][_0xc851d6('0x1d4a')]&&_0x22dd02[_0xc851d6('0x1e07')][_0xc851d6('0x1d4a')][_0xc851d6('0x543')]){_0x210405[_0xc851d6('0x1d4a')]=_0x22dd02[_0xc851d6('0x1e07')][_0xc851d6('0x1d4a')]||[{'message':_0x22dd02['toString'](),'type':_0xc851d6('0x93f')}];for(let _0x5b5e86=0x0;_0x5b5e86<_0x22dd02[_0xc851d6('0x1e07')][_0xc851d6('0x1d4a')][_0xc851d6('0x543')];_0x5b5e86+=0x1){_0x3f719b['error']({'title':_0x22dd02[_0xc851d6('0x1e07')]['errors'][_0x5b5e86][_0xc851d6('0x1810')],'msg':_0x22dd02[_0xc851d6('0x1e07')][_0xc851d6('0x1d4a')][_0x5b5e86][_0xc851d6('0x67f')]});}}else _0x3f719b['error']({'title':_0x22dd02[_0xc851d6('0x276f')]?_0xc851d6('0x137')+_0x22dd02[_0xc851d6('0x276f')]+'\x20-\x20'+_0x22dd02[_0xc851d6('0x2696')]:_0xc851d6('0x93f'),'msg':_0x22dd02[_0xc851d6('0x1e07')]?JSON['stringify'](_0x22dd02[_0xc851d6('0x1e07')][_0xc851d6('0x67f')]):_0x22dd02['toString']()});});}function _0x23b9af(){const _0x41c4e3=_0x562a7d;_0x210405[_0x41c4e3('0x1d4a')]=[],_0x218254[_0x41c4e3('0x579')][_0x41c4e3('0x1842')]({'id':_0x210405['voicemail']['id']},_0x210405['voicemail'])[_0x41c4e3('0x1964')][_0x41c4e3('0x173b')](function(_0x5ff1e8){const _0x57329a=_0x41c4e3,_0x279d3c=_0x3c8d8a()[_0x57329a('0x18ab')](_0x210405['voicemails'],{'id':_0x5ff1e8['id']});_0x279d3c&&_0x3c8d8a()[_0x57329a('0x9ef')](_0x279d3c,_0x3c8d8a()['pick'](_0x5ff1e8['toJSON'](),_0x3c8d8a()['keys'](_0x279d3c))),_0x3f719b[_0x57329a('0xdfe')]({'title':_0x57329a('0x118d'),'msg':_0x210405['voicemail'][_0x57329a('0x10ad')]?_0x210405['voicemail'][_0x57329a('0x10ad')]+_0x57329a('0x2788'):''}),_0x1b337f(_0x5ff1e8);})[_0x41c4e3('0x103c')](function(_0x59a29f){const _0x13f914=_0x41c4e3;if(_0x59a29f[_0x13f914('0x1e07')]&&_0x59a29f[_0x13f914('0x1e07')]['errors']&&_0x59a29f[_0x13f914('0x1e07')]['errors'][_0x13f914('0x543')]){_0x210405[_0x13f914('0x1d4a')]=_0x59a29f['data'][_0x13f914('0x1d4a')]||[{'message':_0x59a29f[_0x13f914('0x1b75')](),'type':'api.voiceMail.update'}];for(let _0x2005f7=0x0;_0x2005f7<_0x59a29f[_0x13f914('0x1e07')][_0x13f914('0x1d4a')][_0x13f914('0x543')];_0x2005f7++){_0x3f719b[_0x13f914('0x15aa')]({'title':_0x59a29f['data'][_0x13f914('0x1d4a')][_0x2005f7][_0x13f914('0x1810')],'msg':_0x59a29f['data'][_0x13f914('0x1d4a')][_0x2005f7][_0x13f914('0x67f')]});}}else _0x3f719b[_0x13f914('0x15aa')]({'title':_0x59a29f[_0x13f914('0x276f')]?_0x13f914('0x137')+_0x59a29f['status']+_0x13f914('0x160c')+_0x59a29f[_0x13f914('0x2696')]:_0x13f914('0x1e08'),'msg':_0x59a29f[_0x13f914('0x1e07')]?JSON[_0x13f914('0x100b')](_0x59a29f['data']['message']):_0x59a29f[_0x13f914('0x1b75')]()});});}function _0x1f5ec1(_0x3ebb3f){const _0x21c1dc=_0x562a7d;_0x210405[_0x21c1dc('0x1d4a')]=[];const _0x521b5e=_0x27fedc['confirm']()[_0x21c1dc('0x20d6')]('Are\x20you\x20sure?')[_0x21c1dc('0x732')]('The\x20voicemail\x20will\x20be\x20deleted.')[_0x21c1dc('0x217')](_0x21c1dc('0x22a6'))['ok'](_0x21c1dc('0x2373'))[_0x21c1dc('0x1e1f')](_0x21c1dc('0x1d4e'))[_0x21c1dc('0x21de')](_0x3ebb3f);_0x27fedc[_0x21c1dc('0x1cb7')](_0x521b5e)[_0x21c1dc('0x173b')](function(){const _0x46538b=_0x21c1dc;_0x218254[_0x46538b('0x579')][_0x46538b('0x15e8')]({'id':_0x210405[_0x46538b('0x2710')]['id']})['$promise']['then'](function(){const _0x1416d8=_0x46538b;_0x3c8d8a()[_0x1416d8('0x1a8b')](_0x210405[_0x1416d8('0x264e')],{'id':_0x210405['voicemail']['id']}),_0x3f719b['success']({'title':_0x1416d8('0xdb1'),'msg':(_0x210405['voicemail'][_0x1416d8('0x10ad')]||_0x1416d8('0x2710'))+_0x1416d8('0x25d2')}),_0x1b337f(_0x210405[_0x1416d8('0x2710')]);})['catch'](function(_0x382838){const _0x3455f5=_0x46538b;if(_0x382838[_0x3455f5('0x1e07')]&&_0x382838[_0x3455f5('0x1e07')][_0x3455f5('0x1d4a')]&&_0x382838[_0x3455f5('0x1e07')][_0x3455f5('0x1d4a')]['length']){_0x210405[_0x3455f5('0x1d4a')]=_0x382838[_0x3455f5('0x1e07')][_0x3455f5('0x1d4a')]||[{'message':_0x382838[_0x3455f5('0x1b75')](),'type':_0x3455f5('0x277c')}];for(let _0xd6d8=0x0;_0xd6d8<_0x382838[_0x3455f5('0x1e07')][_0x3455f5('0x1d4a')][_0x3455f5('0x543')];_0xd6d8++){_0x3f719b['error']({'title':_0x382838['data'][_0x3455f5('0x1d4a')][_0xd6d8][_0x3455f5('0x1810')],'msg':_0x382838[_0x3455f5('0x1e07')][_0x3455f5('0x1d4a')][_0xd6d8][_0x3455f5('0x67f')]});}}else _0x3f719b['error']({'title':_0x382838[_0x3455f5('0x276f')]?'API:'+_0x382838[_0x3455f5('0x276f')]+_0x3455f5('0x160c')+_0x382838[_0x3455f5('0x2696')]:_0x3455f5('0x277c'),'msg':_0x382838[_0x3455f5('0x1e07')]?JSON[_0x3455f5('0x100b')](_0x382838[_0x3455f5('0x1e07')][_0x3455f5('0x67f')]):_0x382838[_0x3455f5('0x67f')]||_0x382838[_0x3455f5('0x1b75')]()});});},function(){});}function _0x5e30fc(_0x2da6f0){return _0x2da6f0===null?undefined:new Date(_0x2da6f0);}function _0x1b337f(_0x40eea5){const _0x5219f5=_0x562a7d;_0x27fedc[_0x5219f5('0x1cf4')](_0x40eea5);}}const _0x4cb5db=_0x2be472;_0x321c3c[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),'$timeout','$mdDialog',_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x321c3c(_0x283f85,_0x5b3b0c,_0x20f710,_0x48a7b4,_0x4a68cd,_0x3a34a4,_0x2d1d17,_0x51e191,_0xde7853,_0x5721c2,_0x596464){const _0x1462fb=_0x566993,_0x581d3f=this;_0x581d3f['currentUser']=_0x596464[_0x1462fb('0x14d4')](),_0x581d3f[_0x1462fb('0x2710')]={},_0x581d3f[_0x1462fb('0x205a')]={'count':0x0,'rows':[]},_0x581d3f[_0x1462fb('0x2605')]=[],_0x581d3f[_0x1462fb('0x1dc1')],_0x581d3f['query']={'fields':_0x1462fb('0x1337'),'sort':_0x1462fb('0x20cc'),'limit':0xa,'page':0x1},_0x581d3f[_0x1462fb('0xb9c')]=_0x3f2772,_0x581d3f[_0x1462fb('0x2051')]=_0x4c15eb,_0x581d3f[_0x1462fb('0x261a')]=_0x13baca,_0x581d3f[_0x1462fb('0xdfe')]=_0x3480aa,_0x581d3f[_0x1462fb('0x137c')]=_0x1c2701,_0x581d3f[_0x1462fb('0xfb')]=_0x5b177c,_0x581d3f['deleteVoicemailMessage']=_0x4d9bd7,_0x581d3f[_0x1462fb('0x1e4b')]=_0x2c3c43;function _0x3f2772(_0x2a5503,_0x24a9bf){const _0x1b7559=_0x1462fb;_0x581d3f[_0x1b7559('0x2710')]=_0x2a5503,_0x581d3f[_0x1b7559('0x1dc1')]=typeof _0x24a9bf!==_0x1b7559('0x6e5')?_0x24a9bf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x581d3f[_0x1b7559('0xc49')]['id']=_0x581d3f[_0x1b7559('0x2710')]['id'],_0x1c2701();}function _0x13baca(_0x49995a,_0x8d1547,_0x52ea64){const _0x21fb30=_0x1462fb;return _0x5721c2[_0x21fb30('0x26af')][_0x21fb30('0xfce')]({'id':_0x49995a['id'],'exists':!![],'attachments':_0x52ea64})['$promise']['then'](function(_0x1fc02a){const _0x5005cd=_0x21fb30,_0x794fa0=[_0x1fc02a[_0x5005cd('0x1c22')]];let _0x3b122c=_0x5005cd('0x67f')+_0x49995a['id'];const _0x599dee=new Blob(_0x794fa0,{'type':_0x1fc02a['type']});_0x3b122c=_0x49995a[_0x5005cd('0x280d')]+_0x5005cd('0x880');const _0x3a9f00=window[_0x5005cd('0x222a')]['createElement']('a');_0x3a9f00[_0x5005cd('0x11c3')](_0x5005cd('0x165c'),URL[_0x5005cd('0x1466')](_0x599dee)),_0x3a9f00[_0x5005cd('0x11c3')](_0x5005cd('0xfce'),_0x3b122c),document[_0x5005cd('0x1a5')][_0x5005cd('0x1f8d')](_0x3a9f00),_0x3a9f00['click']();})[_0x21fb30('0x103c')](function(_0x1b3e42){const _0x27a0f7=_0x21fb30;if(_0x1b3e42[_0x27a0f7('0x1e07')]&&_0x1b3e42[_0x27a0f7('0x1e07')]['errors']&&_0x1b3e42[_0x27a0f7('0x1e07')][_0x27a0f7('0x1d4a')][_0x27a0f7('0x543')])for(let _0x1993a1=0x0;_0x1993a1<_0x1b3e42[_0x27a0f7('0x1e07')][_0x27a0f7('0x1d4a')]['length'];_0x1993a1+=0x1){_0xde7853[_0x27a0f7('0x15aa')]({'title':_0x1b3e42[_0x27a0f7('0x1e07')]['errors'][_0x1993a1][_0x27a0f7('0x1810')],'msg':_0x1b3e42['data'][_0x27a0f7('0x1d4a')][_0x1993a1][_0x27a0f7('0x67f')]});}else _0xde7853[_0x27a0f7('0x15aa')]({'title':_0x1b3e42[_0x27a0f7('0x276f')]?_0x27a0f7('0x137')+_0x1b3e42['status']+_0x27a0f7('0x160c')+_0x1b3e42['statusText']:_0x27a0f7('0x93f'),'msg':_0x1b3e42[_0x27a0f7('0x1e07')]?JSON['stringify'](_0x1b3e42[_0x27a0f7('0x1e07')]['message']):_0x1b3e42[_0x27a0f7('0x1b75')]()});});}function _0x4c15eb(_0x3cfb8c,_0x26e7b0){const _0x44ec46=_0x1462fb,_0x550bd0=_0x2d1d17[_0x44ec46('0x1d02')]()[_0x44ec46('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?')[_0x44ec46('0xf8b')](_0x44ec46('0x15b9')+(_0x3cfb8c[_0x44ec46('0x10ad')]||_0x3cfb8c['id']&&_0x3c8d8a()[_0x44ec46('0x5ba')](_0x44ec46('0x124f'))+_0x3cfb8c['id']||_0x44ec46('0x67f'))+_0x44ec46('0x24be')+'\x20will\x20be\x20deleted.')[_0x44ec46('0x217')](_0x44ec46('0x14b1'))['targetEvent'](_0x26e7b0)['ok']('OK')[_0x44ec46('0x1e1f')](_0x44ec46('0x468'));_0x2d1d17[_0x44ec46('0x1cb7')](_0x550bd0)[_0x44ec46('0x173b')](function(){_0x4d9bd7(_0x3cfb8c);},function(){const _0x3d11c6=_0x44ec46;console[_0x3d11c6('0xe37')]('CANCEL');});}function _0x3480aa(_0x3a578f){const _0x1bdab7=_0x1462fb;_0x581d3f[_0x1bdab7('0x205a')]=_0x3a578f||{'count':0x0,'rows':[]};}function _0x1c2701(){const _0x2ad7e0=_0x1462fb;_0x581d3f[_0x2ad7e0('0xc49')]['offset']=(_0x581d3f[_0x2ad7e0('0xc49')][_0x2ad7e0('0x182e')]-0x1)*_0x581d3f[_0x2ad7e0('0xc49')]['limit'],_0x581d3f[_0x2ad7e0('0x2219')]=_0x5721c2[_0x2ad7e0('0x579')]['getMessages'](_0x581d3f[_0x2ad7e0('0xc49')],_0x3480aa)[_0x2ad7e0('0x1964')];}function _0x4d9bd7(_0x49aadf){const _0x1f54b5=_0x1462fb;_0x5721c2[_0x1f54b5('0x26af')][_0x1f54b5('0x15e8')]({'id':_0x49aadf['id']})['$promise'][_0x1f54b5('0x173b')](function(){const _0x24262b=_0x1f54b5;_0x3c8d8a()[_0x24262b('0x1a8b')](_0x581d3f[_0x24262b('0x205a')][_0x24262b('0x6aa')],{'id':_0x49aadf['id']}),_0x581d3f['voicemailMessages']['count']-=0x1,!_0x581d3f[_0x24262b('0x205a')][_0x24262b('0x6aa')][_0x24262b('0x543')]&&_0x1c2701(),_0xde7853[_0x24262b('0xdfe')]({'title':_0x24262b('0x1b59'),'msg':_0x49aadf[_0x24262b('0x10ad')]?_0x49aadf[_0x24262b('0x10ad')]+_0x24262b('0x25d2'):''});})['catch'](function(_0x54ea5f){const _0x2aadb1=_0x1f54b5;if(_0x54ea5f[_0x2aadb1('0x1e07')]&&_0x54ea5f[_0x2aadb1('0x1e07')][_0x2aadb1('0x1d4a')]&&_0x54ea5f[_0x2aadb1('0x1e07')][_0x2aadb1('0x1d4a')]['length']){_0x581d3f['errors']=_0x54ea5f[_0x2aadb1('0x1e07')][_0x2aadb1('0x1d4a')]||[{'message':_0x54ea5f[_0x2aadb1('0x1b75')](),'type':_0x2aadb1('0x1ef5')}];for(let _0x2ce06a=0x0;_0x2ce06a<_0x54ea5f['data']['errors'][_0x2aadb1('0x543')];_0x2ce06a++){_0xde7853[_0x2aadb1('0x15aa')]({'title':_0x54ea5f['data'][_0x2aadb1('0x1d4a')][_0x2ce06a][_0x2aadb1('0x1810')],'msg':_0x54ea5f[_0x2aadb1('0x1e07')][_0x2aadb1('0x1d4a')][_0x2ce06a][_0x2aadb1('0x67f')]});}}else _0xde7853[_0x2aadb1('0x15aa')]({'title':_0x54ea5f[_0x2aadb1('0x276f')]?_0x2aadb1('0x137')+_0x54ea5f['status']+_0x2aadb1('0x160c')+_0x54ea5f[_0x2aadb1('0x2696')]:_0x2aadb1('0x1ef5'),'msg':_0x54ea5f[_0x2aadb1('0x1e07')]?JSON['stringify'](_0x54ea5f['data'][_0x2aadb1('0x67f')]):_0x54ea5f['message']||_0x54ea5f[_0x2aadb1('0x1b75')]()});});}function _0x5b177c(){const _0xe5f2fa=_0x1462fb,_0x5714d8=angular[_0xe5f2fa('0x2e3')](_0x581d3f[_0xe5f2fa('0x2605')]);return _0x581d3f[_0xe5f2fa('0x2605')]=[],_0x5714d8;}function _0x2c3c43(_0x10aac4){const _0x581fd8=_0x1462fb,_0x2a1856=_0x2d1d17[_0x581fd8('0x1d02')]()[_0x581fd8('0x20d6')](_0x581fd8('0xd88'))[_0x581fd8('0xf8b')](_0x581fd8('0x15b9')+_0x581d3f[_0x581fd8('0x2605')][_0x581fd8('0x543')]+_0x581fd8('0xcb4')+_0x581fd8('0xd23'))[_0x581fd8('0x217')]('delete\x20messages')[_0x581fd8('0x21de')](_0x10aac4)['ok']('OK')[_0x581fd8('0x1e1f')]('CANCEL');_0x2d1d17[_0x581fd8('0x1cb7')](_0x2a1856)['then'](function(){const _0x26f7a5=_0x581fd8;_0x581d3f[_0x26f7a5('0x2605')][_0x26f7a5('0xa6a')](function(_0x5e1f00){_0x4d9bd7(_0x5e1f00);}),_0x581d3f[_0x26f7a5('0x2605')]=[];});}let _0x3e0086=!![],_0x26321c=0x1;_0x5b3b0c['$watch']('vm_dc.query.filter',function(_0x28211a,_0x2b6753){const _0x527208=_0x1462fb;_0x3e0086?_0x3a34a4(function(){_0x3e0086=![];}):(!_0x2b6753&&(_0x26321c=_0x581d3f[_0x527208('0xc49')][_0x527208('0x182e')]),_0x28211a!==_0x2b6753&&(_0x581d3f[_0x527208('0xc49')][_0x527208('0x182e')]=0x1),!_0x28211a&&(_0x581d3f[_0x527208('0xc49')][_0x527208('0x182e')]=_0x26321c),_0x1c2701());});}const _0x5abc79=_0x321c3c;_0x39335c['$inject']=[_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),'setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x2710'),'userProfileSection'];function _0x39335c(_0x58048b,_0x332568,_0x2029a0,_0x2439a2,_0x1e6ec0,_0x1cca56,_0x10ef2b,_0x125b28,_0x5b8c60,_0x165a25,_0x540b50,_0x1046e6){const _0x492dcc=_0x566993,_0x3ff7e1=this;_0x3ff7e1[_0x492dcc('0x155f')]=_0x165a25[_0x492dcc('0x14d4')](),_0x3ff7e1['license']=_0x1cca56,_0x3ff7e1[_0x492dcc('0x251')]=_0x10ef2b,_0x3ff7e1[_0x492dcc('0x644')]=_0x3ff7e1[_0x492dcc('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ff7e1[_0x492dcc('0x614')]=_0x332568[_0x492dcc('0x375')]()+_0x492dcc('0x122b')+_0x332568[_0x492dcc('0x4d1')](),_0x3ff7e1[_0x492dcc('0x2710')]=_0x540b50||_0x58048b['params'][_0x492dcc('0x2710')]||{},_0x3ff7e1[_0x492dcc('0x170e')]=_0x1046e6&&_0x1046e6[_0x492dcc('0x1a2f')]==0x1?_0x1046e6[_0x492dcc('0x6aa')][0x0]:null,_0x3ff7e1[_0x492dcc('0x1dc1')]=_0x165a25[_0x492dcc('0xde6')](_0x3ff7e1[_0x492dcc('0x170e')]?_0x3ff7e1[_0x492dcc('0x170e')]['crudPermissions']:null),_0x3ff7e1[_0x492dcc('0xb0')]={},_0x3ff7e1[_0x492dcc('0xd5f')]=_0x58048b['params'][_0x492dcc('0x1e66')]||0x0,_0x3ff7e1['alert']=_0x5b8c60[_0x492dcc('0x2787')],_0x3ff7e1[_0x492dcc('0x1451')]=_0x4b830c,_0x3ff7e1[_0x492dcc('0x1dcd')]=_0x34271a,_0x165a25[_0x492dcc('0x1b4e')](_0x492dcc('0x79b'))?_0x125b28[_0x492dcc('0xf01')]['get']({'fields':_0x492dcc('0xd52'),'sort':_0x492dcc('0x10ad')})[_0x492dcc('0x1964')][_0x492dcc('0x173b')](function(_0x416819){_0x3ff7e1['contexts']=_0x416819['rows']||[];})[_0x492dcc('0x103c')](function(_0x1007cd){const _0x29389d=_0x492dcc;_0x5b8c60[_0x29389d('0x15aa')]({'title':_0x1007cd[_0x29389d('0x276f')]?_0x29389d('0x137')+_0x1007cd[_0x29389d('0x276f')]+_0x29389d('0x160c')+_0x1007cd[_0x29389d('0x2696')]:_0x29389d('0x2064'),'msg':_0x1007cd[_0x29389d('0x1e07')]?JSON[_0x29389d('0x100b')](_0x1007cd[_0x29389d('0x1e07')]):_0x1007cd[_0x29389d('0x1b75')]()});}):_0x125b28['voiceContext'][_0x492dcc('0x1d97')]({'fields':_0x492dcc('0xd52'),'sort':_0x492dcc('0x10ad')})[_0x492dcc('0x1964')][_0x492dcc('0x173b')](function(_0x1b6ebf){const _0x30ae94=_0x492dcc;_0x3ff7e1[_0x30ae94('0x22a9')]=_0x1b6ebf[_0x30ae94('0x6aa')]||[];})['then'](function(){const _0x4c46a4=_0x492dcc;return _0x125b28[_0x4c46a4('0x170e')]['get']({'userProfileId':_0x3ff7e1[_0x4c46a4('0x155f')]['userProfileId'],'sectionId':0x195})['$promise'];})[_0x492dcc('0x173b')](function(_0x48734d){const _0x411d4c=_0x492dcc,_0x4bb9e8=_0x48734d&&_0x48734d[_0x411d4c('0x6aa')]?_0x48734d[_0x411d4c('0x6aa')][0x0]:null;if(!_0x4bb9e8)return _0x125b28[_0x411d4c('0xf01')][_0x411d4c('0x1d97')]({'fields':_0x411d4c('0xd52'),'sort':'name','defaultEntry':0x1})[_0x411d4c('0x1964')]['then'](function(_0x545215){const _0x2e8527=_0x411d4c;_0x3ff7e1[_0x2e8527('0x22a9')]=_0x545215[_0x2e8527('0x6aa')]||[];});else{if(!_0x4bb9e8[_0x411d4c('0x273e')])return _0x125b28[_0x411d4c('0xda9')]['get']({'sectionId':_0x4bb9e8['id']})[_0x411d4c('0x1964')][_0x411d4c('0x173b')](function(_0x2299b6){const _0x4bb667=_0x411d4c,_0x10b82a=_0x3c8d8a()['map'](_0x2299b6[_0x4bb667('0x6aa')],function(_0x5bc752){const _0x3c4c54=_0x4bb667;return _0x3c8d8a()[_0x3c4c54('0x18ab')](_0x3ff7e1[_0x3c4c54('0x22a9')],{'id':_0x5bc752[_0x3c4c54('0x1ce0')]});});let _0xf29b3f=null;_0x3ff7e1['voicemail']&&(_0xf29b3f=_0x3c8d8a()[_0x4bb667('0x18ab')](_0x3ff7e1[_0x4bb667('0x22a9')],{'name':_0x3ff7e1[_0x4bb667('0x2710')][_0x4bb667('0x2b9')]}));if(_0xf29b3f&&!_0x3c8d8a()[_0x4bb667('0x1ec')](_0x10b82a,['id',_0xf29b3f['id']])){const _0x320c0a=_0x3c8d8a()[_0x4bb667('0x18ab')](_0x3ff7e1[_0x4bb667('0x22a9')],{'id':_0xf29b3f['id']});_0x320c0a['canSelect']=![],_0x10b82a[_0x4bb667('0x18bb')](_0x320c0a);}_0x3ff7e1['contexts']=_0x10b82a;});}})[_0x492dcc('0x103c')](function(_0x103acd){const _0x524907=_0x492dcc;_0x5b8c60['error']({'title':_0x103acd['status']?_0x524907('0x137')+_0x103acd[_0x524907('0x276f')]+'\x20-\x20'+_0x103acd['statusText']:'SYSTEM:GETcontexts','msg':_0x103acd['data']?JSON['stringify'](_0x103acd[_0x524907('0x1e07')]):_0x103acd[_0x524907('0x1b75')]()});});function _0x4b830c(){const _0x1775c7=_0x492dcc;_0x58048b['go'](_0x1775c7('0x10b1'),{},{'reload':_0x1775c7('0x10b1')});}function _0x34271a(){const _0x2625e6=_0x492dcc;_0x125b28['voiceMail'][_0x2625e6('0x1842')]({'id':_0x3ff7e1['voicemail']['id']},_0x3ff7e1[_0x2625e6('0x2710')])['$promise'][_0x2625e6('0x173b')](function(){const _0x515161=_0x2625e6;_0x5b8c60['success']({'title':_0x515161('0x6d4'),'msg':_0x3ff7e1[_0x515161('0x2710')][_0x515161('0x10ad')]?_0x3ff7e1[_0x515161('0x2710')][_0x515161('0x10ad')]+_0x515161('0x1fd6'):''});})[_0x2625e6('0x103c')](function(_0x569c58){const _0x372e59=_0x2625e6;_0x5b8c60[_0x372e59('0x15aa')]({'title':_0x569c58[_0x372e59('0x276f')]?'API:'+_0x569c58['status']+'\x20-\x20'+_0x569c58['statusText']:_0x372e59('0x1ef5'),'msg':_0x569c58[_0x372e59('0x1e07')]?JSON[_0x372e59('0x100b')](_0x569c58[_0x372e59('0x1e07')]):_0x569c58[_0x372e59('0x1b75')]()});});}}const _0x328a85=_0x39335c,_0x851c78=_0x21a6a1['p']+_0x566993('0x1bb9');_0x3a4cd7[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog','$document',_0x566993('0x24b5'),_0x566993('0x638'),'voicemails',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty','Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0x3a4cd7(_0x376d87,_0x3e3f5a,_0x1f1a86,_0x547325,_0x2e1a73,_0x1159b1,_0x5072a8,_0xc4cb99,_0x3a54e2,_0x51dc3c,_0x9355c0,_0x4dbcf7,_0x39e23e,_0x598b61,_0x31ebff,_0x38b921,_0x455eee){const _0x33b551=_0x566993,_0x5b12ee=this;_0x5b12ee['license']=_0x38b921,_0x5b12ee[_0x33b551('0x251')]=_0x455eee,_0x5b12ee['currentUser']=_0x31ebff[_0x33b551('0x14d4')](),_0x5b12ee[_0x33b551('0x264e')]=_0x3a54e2||{'count':0x0,'rows':[]},_0x5b12ee[_0x33b551('0x257b')]=_0x51dc3c,_0x5b12ee[_0x33b551('0x170e')]=_0x9355c0&&_0x9355c0[_0x33b551('0x1a2f')]==0x1?_0x9355c0['rows'][0x0]:null,_0x5b12ee[_0x33b551('0x1dc1')]=_0x31ebff[_0x33b551('0xde6')](_0x5b12ee[_0x33b551('0x170e')]?_0x5b12ee['userProfileSection'][_0x33b551('0x1dc1')]:null),_0x5b12ee['table']=_0x33b551('0x264e'),_0x5b12ee['listOrder']='',_0x5b12ee[_0x33b551('0x2303')]=null,_0x5b12ee[_0x33b551('0xc0d')]=[],_0x5b12ee[_0x33b551('0xc49')]={'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','sort':_0x33b551('0x1769'),'limit':0xa,'page':0x1},_0x5b12ee[_0x33b551('0x1d60')]=_0x3c8d8a()[_0x33b551('0x128')]([{'option':_0x33b551('0x1029'),'value':_0x33b551('0x26ec')},{'option':'No','value':'\x27no\x27'}],function(_0x6c0f21){const _0x5de475=_0x33b551;return _0x3c8d8a()[_0x5de475('0x166c')](_0x6c0f21[_0x5de475('0xa7b')],new RegExp('\x27','g'),'');}),_0x5b12ee['arrayenvelope']=_0x3c8d8a()[_0x33b551('0x128')]([{'option':_0x33b551('0x1029'),'value':_0x33b551('0x26ec')},{'option':'No','value':_0x33b551('0x13d1')}],function(_0x290e55){const _0x38cb2f=_0x33b551;return _0x3c8d8a()[_0x38cb2f('0x166c')](_0x290e55[_0x38cb2f('0xa7b')],new RegExp('\x27','g'),'');}),_0x5b12ee[_0x33b551('0x2360')]=_0x3c8d8a()['keyBy']([{'option':_0x33b551('0x1029'),'value':_0x33b551('0x26ec')},{'option':'No','value':_0x33b551('0x13d1')}],function(_0x5015ba){const _0xb54692=_0x33b551;return _0x3c8d8a()[_0xb54692('0x166c')](_0x5015ba[_0xb54692('0xa7b')],new RegExp('\x27','g'),'');}),_0x5b12ee[_0x33b551('0x222e')]=_0x5ebe96,_0x5b12ee['deleteconfirm']=_0x474787,_0x5b12ee['success']=_0x66cd22,_0x5b12ee[_0x33b551('0x1e2a')]=_0x4f1856,_0x5b12ee['createOrEditVoicemail']=_0xf10458,_0x5b12ee['deleteVoicemail']=_0x3d11f8,_0x5b12ee[_0x33b551('0xd68')]=_0x29f7c7,_0x5b12ee['deleteSelectedVoicemails']=_0xc9113f,_0x5b12ee[_0x33b551('0x16d1')]=_0x2f9195,_0x5b12ee[_0x33b551('0x15d1')]=_0xa9da23;function _0x5ebe96(_0xf38bc3){const _0x24f9be=_0x33b551;_0x1f1a86['go']('app.voice.voicemails.edit',{'id':_0xf38bc3['id'],'voicemail':_0xf38bc3,'crudPermissions':_0x5b12ee[_0x24f9be('0x1dc1')]});}function _0x474787(_0x1cb80a,_0xe42c00){const _0x57c88a=_0x33b551,_0x302197=_0x2e1a73[_0x57c88a('0x1d02')]()['title'](_0x57c88a('0x5bb')+_0x3c8d8a()[_0x57c88a('0x10e')](_0x57c88a('0x2710'))+'?')[_0x57c88a('0xf8b')](_0x57c88a('0x15b9')+(_0x1cb80a['name']||_0x57c88a('0x2710'))+_0x57c88a('0x24be')+_0x57c88a('0xd23'))[_0x57c88a('0x217')]('delete\x20voicemail')[_0x57c88a('0x21de')](_0xe42c00)['ok']('OK')['cancel'](_0x57c88a('0x468'));_0x2e1a73[_0x57c88a('0x1cb7')](_0x302197)['then'](function(){_0x3d11f8(_0x1cb80a);},function(){const _0x5eabca=_0x57c88a;console[_0x5eabca('0xe37')](_0x5eabca('0x468'));});}let _0x3d1b18=!![],_0x4f1e02=0x1;_0x376d87[_0x33b551('0x1bdb')](_0x33b551('0x157b'),function(_0x42e7fd,_0x130246){const _0xabffcf=_0x33b551;_0x3d1b18?_0x5072a8(function(){_0x3d1b18=![];}):(!_0x130246&&(_0x4f1e02=_0x5b12ee[_0xabffcf('0xc49')][_0xabffcf('0x182e')]),_0x42e7fd!==_0x130246&&(_0x5b12ee[_0xabffcf('0xc49')][_0xabffcf('0x182e')]=0x1),!_0x42e7fd&&(_0x5b12ee['query'][_0xabffcf('0x182e')]=_0x4f1e02),_0x5b12ee[_0xabffcf('0x1e2a')]());});function _0x66cd22(_0x2632b5){const _0x5847c9=_0x33b551;_0x5b12ee[_0x5847c9('0x264e')]=_0x2632b5||{'count':0x0,'rows':[]};}function _0x4f1856(){const _0xa616cd=_0x33b551;_0x5b12ee[_0xa616cd('0xc49')][_0xa616cd('0x17f0')]=(_0x5b12ee[_0xa616cd('0xc49')][_0xa616cd('0x182e')]-0x1)*_0x5b12ee[_0xa616cd('0xc49')]['limit'],_0x31ebff[_0xa616cd('0x1b4e')](_0xa616cd('0x79b'))?_0x5b12ee['promise']=_0x4dbcf7[_0xa616cd('0x579')][_0xa616cd('0x1d97')](_0x5b12ee['query'],_0x66cd22)[_0xa616cd('0x1964')]:(_0x5b12ee[_0xa616cd('0xc49')]['id']=_0x5b12ee[_0xa616cd('0x257b')]['id'],_0x5b12ee[_0xa616cd('0xc49')]['section']=_0xa616cd('0x1b6'),_0x5b12ee[_0xa616cd('0x2219')]=_0x4dbcf7[_0xa616cd('0x257b')][_0xa616cd('0x135b')](_0x5b12ee[_0xa616cd('0xc49')],_0x66cd22)[_0xa616cd('0x1964')]);}function _0xf10458(_0x348a88,_0x1fba24){const _0x1b6a58=_0x33b551;_0x2e1a73['show']({'controller':'CreateOrEditVoicemailDialogController','controllerAs':'vm','templateUrl':_0x851c78,'parent':angular[_0x1b6a58('0xb6d')](_0x1159b1[_0x1b6a58('0x1a5')]),'targetEvent':_0x348a88,'clickOutsideToClose':!![],'locals':{'voicemail':_0x1fba24,'voicemails':_0x5b12ee[_0x1b6a58('0x264e')][_0x1b6a58('0x6aa')],'license':_0x5b12ee[_0x1b6a58('0x1a29')],'setting':_0x5b12ee[_0x1b6a58('0x251')],'crudPermissions':_0x5b12ee['crudPermissions']}});}function _0x3d11f8(_0x4fdea9){const _0x323639=_0x33b551;_0x4dbcf7[_0x323639('0x579')][_0x323639('0x15e8')]({'id':_0x4fdea9['id']})[_0x323639('0x1964')][_0x323639('0x173b')](function(){const _0x57694=_0x323639;_0x3c8d8a()['remove'](_0x5b12ee[_0x57694('0x264e')]['rows'],{'id':_0x4fdea9['id']}),_0x5b12ee['voicemails'][_0x57694('0x1a2f')]-=0x1,!_0x5b12ee['voicemails'][_0x57694('0x6aa')][_0x57694('0x543')]&&_0x5b12ee['getVoicemails'](),_0x598b61[_0x57694('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x57694('0x11ce'))+_0x57694('0x1c5e'),'msg':_0x4fdea9[_0x57694('0x10ad')]?_0x4fdea9['name']+_0x57694('0x25d2'):''});})[_0x323639('0x103c')](function(_0x324bd3){const _0x1981b3=_0x323639;if(_0x324bd3[_0x1981b3('0x1e07')]&&_0x324bd3['data']['errors']&&_0x324bd3[_0x1981b3('0x1e07')][_0x1981b3('0x1d4a')][_0x1981b3('0x543')]){_0x5b12ee[_0x1981b3('0x1d4a')]=_0x324bd3[_0x1981b3('0x1e07')]['errors']||[{'message':_0x324bd3[_0x1981b3('0x1b75')](),'type':_0x1981b3('0x24c7')}];for(let _0x30deb2=0x0;_0x30deb2<_0x324bd3['data']['errors']['length'];_0x30deb2++){_0x598b61[_0x1981b3('0x15aa')]({'title':_0x324bd3[_0x1981b3('0x1e07')][_0x1981b3('0x1d4a')][_0x30deb2][_0x1981b3('0x1810')],'msg':_0x324bd3['data'][_0x1981b3('0x1d4a')][_0x30deb2][_0x1981b3('0x67f')]});}}else _0x598b61['error']({'title':_0x324bd3[_0x1981b3('0x276f')]?_0x1981b3('0x137')+_0x324bd3[_0x1981b3('0x276f')]+_0x1981b3('0x160c')+_0x324bd3[_0x1981b3('0x2696')]:_0x1981b3('0x24c7'),'msg':_0x324bd3[_0x1981b3('0x1e07')]?JSON[_0x1981b3('0x100b')](_0x324bd3[_0x1981b3('0x1e07')][_0x1981b3('0x67f')]):_0x324bd3[_0x1981b3('0x67f')]||_0x324bd3['toString']()});});}function _0x29f7c7(){const _0x2f9b64=_0x33b551,_0x3b459e=angular[_0x2f9b64('0x2e3')](_0x5b12ee['selectedVoicemails']);return _0x5b12ee['selectedVoicemails']=[],_0x3b459e;}function _0xc9113f(_0x5dd1fd){const _0xfa2512=_0x33b551,_0x5e5c00=_0x2e1a73[_0xfa2512('0x1d02')]()[_0xfa2512('0x20d6')](_0xfa2512('0x201f'))[_0xfa2512('0xf8b')](''+_0x5b12ee[_0xfa2512('0xc0d')][_0xfa2512('0x543')]+_0xfa2512('0xcb4')+_0xfa2512('0xd23'))[_0xfa2512('0x217')]('delete\x20Voicemails')[_0xfa2512('0x21de')](_0x5dd1fd)['ok']('OK')[_0xfa2512('0x1e1f')](_0xfa2512('0x468'));_0x2e1a73[_0xfa2512('0x1cb7')](_0x5e5c00)['then'](function(){const _0x112aa9=_0xfa2512;_0x5b12ee['selectedVoicemails'][_0x112aa9('0xa6a')](function(_0x1b4a88){_0x3d11f8(_0x1b4a88);}),_0x5b12ee['selectedVoicemails']=[];});}function _0x2f9195(){const _0x578c1e=_0x33b551;_0x5b12ee[_0x578c1e('0xc0d')]=[];}function _0xa9da23(){const _0x1c80e0=_0x33b551;_0x5b12ee[_0x1c80e0('0xc0d')]=_0x5b12ee['voicemails']['rows'];}}const _0x1dfc7b=_0x3a4cd7;_0xaf0d8b['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),'$location','$mdDialog','$q','$translate',_0x566993('0x1558'),_0x566993('0x1ef1'),_0x566993('0x1e12'),_0x566993('0xbd4'),_0x566993('0x1600'),'license',_0x566993('0x251'),'crudPermissions'];function _0xaf0d8b(_0x1203ae,_0x189e12,_0x33e425,_0x1ed0e7,_0x2c0a51,_0x9dad4e,_0x2db96e,_0x23136b,_0x5c98c2,_0x4c2022,_0x48a11a,_0x5052e0,_0x42d5c9,_0x53d52f){const _0x1ea9ed=_0x566993,_0x13b2b4=this;_0x13b2b4[_0x1ea9ed('0x155f')]=_0x48a11a[_0x1ea9ed('0x14d4')](),_0x13b2b4[_0x1ea9ed('0x1d4a')]=[],_0x13b2b4[_0x1ea9ed('0x251')]=_0x42d5c9,_0x13b2b4[_0x1ea9ed('0x1a29')]=_0x5052e0,_0x13b2b4['crudPermissions']=_0x53d52f,_0x13b2b4[_0x1ea9ed('0xb0')]={},_0x13b2b4[_0x1ea9ed('0x644')]=_0x13b2b4[_0x1ea9ed('0x251')]&&_0x13b2b4['setting'][_0x1ea9ed('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x13b2b4[_0x1ea9ed('0x20d6')]=_0x1ea9ed('0x76a'),_0x13b2b4[_0x1ea9ed('0x1e12')]=angular[_0x1ea9ed('0x2e3')](_0x5c98c2),_0x13b2b4[_0x1ea9ed('0x1ef1')]=_0x23136b,_0x13b2b4[_0x1ea9ed('0xf28')]=![];!_0x13b2b4[_0x1ea9ed('0x1e12')]&&(_0x13b2b4['voicePrefix']={},_0x13b2b4[_0x1ea9ed('0x20d6')]='VOICE.NEW_VOICEPREFIX',_0x13b2b4[_0x1ea9ed('0xf28')]=!![]);_0x13b2b4['addNewvoicePrefix']=_0x256065,_0x13b2b4['savevoicePrefix']=_0x323325,_0x13b2b4[_0x1ea9ed('0x1099')]=_0xd47717,_0x13b2b4[_0x1ea9ed('0x11ae')]=_0x19cb33,_0x13b2b4[_0x1ea9ed('0x18e2')]=_0x489bb7,_0x48a11a[_0x1ea9ed('0x1b4e')](_0x1ea9ed('0x79b'))?_0x4c2022['voiceExtension']['get']({'fields':_0x1ea9ed('0x1378'),'type':'outbound','VoiceExtensionId':'null','nolimit':'true'})[_0x1ea9ed('0x1964')][_0x1ea9ed('0x173b')](function(_0x44df7f){const _0x5176e1=_0x1ea9ed;_0x13b2b4[_0x5176e1('0x26f')]=_0x44df7f['rows']||[];})[_0x1ea9ed('0x103c')](function(_0x5bd277){const _0x560ee2=_0x1ea9ed;_0x2db96e[_0x560ee2('0x15aa')]({'title':_0x5bd277[_0x560ee2('0x276f')]?'API:'+_0x5bd277[_0x560ee2('0x276f')]+_0x560ee2('0x160c')+_0x5bd277['statusText']:_0x560ee2('0x11d2'),'msg':_0x5bd277[_0x560ee2('0x1e07')]?JSON['stringify'](_0x5bd277[_0x560ee2('0x1e07')]):_0x5bd277[_0x560ee2('0x1b75')]()});}):_0x4c2022[_0x1ea9ed('0x1630')][_0x1ea9ed('0x1d97')]({'fields':'id,exten','type':_0x1ea9ed('0xb33'),'VoiceExtensionId':_0x1ea9ed('0x877'),'nolimit':_0x1ea9ed('0x799')})[_0x1ea9ed('0x1964')][_0x1ea9ed('0x173b')](function(_0x12e60b){const _0x43be59=_0x1ea9ed;_0x13b2b4[_0x43be59('0x26f')]=_0x12e60b['rows']||[];})[_0x1ea9ed('0x173b')](function(){const _0x4a5b91=_0x1ea9ed;return _0x4c2022[_0x4a5b91('0x170e')][_0x4a5b91('0x1d97')]({'userProfileId':_0x13b2b4[_0x4a5b91('0x155f')]['userProfileId'],'sectionId':0x193})['$promise'];})['then'](function(_0x380fd4){const _0x40eb78=_0x1ea9ed,_0x5419ad=_0x380fd4&&_0x380fd4[_0x40eb78('0x6aa')]?_0x380fd4[_0x40eb78('0x6aa')][0x0]:null;if(!_0x5419ad){const _0x4ca4a4=[];let _0x5dca3a=null;_0x13b2b4[_0x40eb78('0x1e12')]&&(_0x5dca3a=_0x3c8d8a()[_0x40eb78('0x18ab')](_0x13b2b4[_0x40eb78('0x26f')],{'id':Number(_0x13b2b4['voicePrefix'][_0x40eb78('0x1011')])}));for(let _0x4e397b=0x0;_0x4e397b<_0x13b2b4[_0x40eb78('0x26f')][_0x40eb78('0x543')];_0x4e397b++){_0x5dca3a&&_0x13b2b4['outboundRoutes'][_0x4e397b]['id']===_0x5dca3a['id']&&(_0x13b2b4[_0x40eb78('0x26f')][_0x4e397b]['canSelect']=![],_0x4ca4a4[_0x40eb78('0x18bb')](_0x13b2b4[_0x40eb78('0x26f')][_0x4e397b]));}_0x13b2b4['outboundRoutes']=_0x4ca4a4;}else{if(!_0x5419ad[_0x40eb78('0x273e')])return _0x4c2022[_0x40eb78('0xda9')][_0x40eb78('0x1d97')]({'sectionId':_0x5419ad['id']})[_0x40eb78('0x1964')][_0x40eb78('0x173b')](function(_0x4f0b1e){const _0x25094a=_0x40eb78,_0xbe9cfb=_0x3c8d8a()['map'](_0x4f0b1e[_0x25094a('0x6aa')],function(_0x1db429){const _0x65b76d=_0x25094a;return _0x3c8d8a()[_0x65b76d('0x18ab')](_0x13b2b4['outboundRoutes'],{'id':_0x1db429[_0x65b76d('0x1ce0')]});});let _0x2c7aad=null;_0x13b2b4['voicePrefix']&&(_0x2c7aad=_0x3c8d8a()[_0x25094a('0x18ab')](_0x13b2b4['outboundRoutes'],{'id':Number(_0x13b2b4[_0x25094a('0x1e12')][_0x25094a('0x1011')])}));if(_0x2c7aad&&!_0x3c8d8a()[_0x25094a('0x1ec')](_0xbe9cfb,['id',_0x2c7aad['id']])){const _0x3e35d3=_0x3c8d8a()['find'](_0x13b2b4['outboundRoutes'],{'id':_0x2c7aad['id']});_0x3e35d3[_0x25094a('0x268e')]=![],_0xbe9cfb[_0x25094a('0x18bb')](_0x3e35d3);}_0x13b2b4[_0x25094a('0x26f')]=_0xbe9cfb;});}})[_0x1ea9ed('0x103c')](function(_0x7d5786){const _0x42f60f=_0x1ea9ed;_0x2db96e[_0x42f60f('0x15aa')]({'title':_0x7d5786['status']?_0x42f60f('0x137')+_0x7d5786[_0x42f60f('0x276f')]+_0x42f60f('0x160c')+_0x7d5786['statusText']:_0x42f60f('0x164e'),'msg':_0x7d5786[_0x42f60f('0x1e07')]?JSON[_0x42f60f('0x100b')](_0x7d5786[_0x42f60f('0x1e07')]):_0x7d5786['toString']()});});function _0x256065(){const _0x388720=_0x1ea9ed;_0x13b2b4[_0x388720('0x1d4a')]=[],_0x4c2022[_0x388720('0x1e12')]['save'](_0x13b2b4[_0x388720('0x1e12')])[_0x388720('0x1964')][_0x388720('0x173b')](function(_0x4cb41f){const _0x2f58bf=_0x388720;_0x13b2b4[_0x2f58bf('0x1ef1')][_0x2f58bf('0x1377')](_0x4cb41f[_0x2f58bf('0xf1f')]()),_0x2db96e['success']({'title':_0x2f58bf('0x1cff'),'msg':_0x13b2b4['voicePrefix']['name']?_0x13b2b4['voicePrefix'][_0x2f58bf('0x10ad')]+_0x2f58bf('0x209a'):''}),_0x489bb7(_0x4cb41f);})[_0x388720('0x103c')](function(_0x386930){const _0x18c486=_0x388720;if(_0x386930[_0x18c486('0x1e07')]&&_0x386930[_0x18c486('0x1e07')]['errors']&&_0x386930[_0x18c486('0x1e07')]['errors'][_0x18c486('0x543')]){_0x13b2b4[_0x18c486('0x1d4a')]=_0x386930[_0x18c486('0x1e07')][_0x18c486('0x1d4a')]||[{'message':_0x386930[_0x18c486('0x1b75')](),'type':_0x18c486('0xc82')}];for(let _0x3cd3a5=0x0;_0x3cd3a5<_0x386930[_0x18c486('0x1e07')][_0x18c486('0x1d4a')]['length'];_0x3cd3a5+=0x1){_0x2db96e[_0x18c486('0x15aa')]({'title':_0x386930['data']['errors'][_0x3cd3a5][_0x18c486('0x1810')],'msg':_0x386930[_0x18c486('0x1e07')][_0x18c486('0x1d4a')][_0x3cd3a5][_0x18c486('0x67f')]});}}else _0x2db96e['error']({'title':_0x386930['status']?_0x18c486('0x137')+_0x386930[_0x18c486('0x276f')]+_0x18c486('0x160c')+_0x386930['statusText']:_0x18c486('0xc82'),'msg':_0x386930[_0x18c486('0x1e07')]?JSON[_0x18c486('0x100b')](_0x386930['data'][_0x18c486('0x67f')]):_0x386930['toString']()});});}function _0x323325(){const _0x53c0ee=_0x1ea9ed;_0x13b2b4[_0x53c0ee('0x1d4a')]=[],_0x4c2022[_0x53c0ee('0x1e12')][_0x53c0ee('0x1842')]({'id':_0x13b2b4['voicePrefix']['id']},_0x13b2b4['voicePrefix'])[_0x53c0ee('0x1964')][_0x53c0ee('0x173b')](function(_0xd9df14){const _0x1a57ed=_0x53c0ee,_0x422a0e=_0x3c8d8a()[_0x1a57ed('0x18ab')](_0x13b2b4[_0x1a57ed('0x1ef1')],{'id':_0xd9df14['id']});_0x422a0e&&_0x3c8d8a()['merge'](_0x422a0e,_0x3c8d8a()[_0x1a57ed('0x2114')](_0xd9df14[_0x1a57ed('0xf1f')](),_0x3c8d8a()[_0x1a57ed('0x1d3e')](_0x422a0e))),_0x2db96e[_0x1a57ed('0xdfe')]({'title':_0x1a57ed('0x1e75'),'msg':_0x13b2b4[_0x1a57ed('0x1e12')]['name']?_0x13b2b4[_0x1a57ed('0x1e12')][_0x1a57ed('0x10ad')]+_0x1a57ed('0x2788'):''}),_0x489bb7(_0xd9df14);})['catch'](function(_0x41ee76){const _0x1c7816=_0x53c0ee;if(_0x41ee76[_0x1c7816('0x1e07')]&&_0x41ee76['data'][_0x1c7816('0x1d4a')]&&_0x41ee76[_0x1c7816('0x1e07')][_0x1c7816('0x1d4a')][_0x1c7816('0x543')]){_0x13b2b4[_0x1c7816('0x1d4a')]=_0x41ee76[_0x1c7816('0x1e07')][_0x1c7816('0x1d4a')]||[{'message':_0x41ee76['toString'](),'type':_0x1c7816('0x2b8')}];for(let _0xed2bb4=0x0;_0xed2bb4<_0x41ee76[_0x1c7816('0x1e07')][_0x1c7816('0x1d4a')]['length'];_0xed2bb4++){_0x2db96e[_0x1c7816('0x15aa')]({'title':_0x41ee76['data'][_0x1c7816('0x1d4a')][_0xed2bb4]['type'],'msg':_0x41ee76[_0x1c7816('0x1e07')]['errors'][_0xed2bb4][_0x1c7816('0x67f')]});}}else _0x2db96e[_0x1c7816('0x15aa')]({'title':_0x41ee76[_0x1c7816('0x276f')]?_0x1c7816('0x137')+_0x41ee76[_0x1c7816('0x276f')]+_0x1c7816('0x160c')+_0x41ee76[_0x1c7816('0x2696')]:_0x1c7816('0x2b8'),'msg':_0x41ee76[_0x1c7816('0x1e07')]?JSON[_0x1c7816('0x100b')](_0x41ee76['data'][_0x1c7816('0x67f')]):_0x41ee76[_0x1c7816('0x1b75')]()});});}function _0xd47717(_0x380652){const _0x5e8f87=_0x1ea9ed;_0x13b2b4['errors']=[];const _0x4f0d24=_0x1ed0e7[_0x5e8f87('0x1d02')]()[_0x5e8f87('0x20d6')](_0x5e8f87('0x8ef'))[_0x5e8f87('0x732')]('The\x20voicePrefix\x20will\x20be\x20deleted.')[_0x5e8f87('0x217')]('Delete\x20voicePrefix')['ok'](_0x5e8f87('0x2373'))[_0x5e8f87('0x1e1f')](_0x5e8f87('0x1d4e'))['targetEvent'](_0x380652);_0x1ed0e7[_0x5e8f87('0x1cb7')](_0x4f0d24)[_0x5e8f87('0x173b')](function(){const _0x170bf2=_0x5e8f87;_0x4c2022['voicePrefix'][_0x170bf2('0x15e8')]({'id':_0x13b2b4['voicePrefix']['id']})[_0x170bf2('0x1964')]['then'](function(){const _0x5e4fc6=_0x170bf2;_0x3c8d8a()[_0x5e4fc6('0x1a8b')](_0x13b2b4[_0x5e4fc6('0x1ef1')],{'id':_0x13b2b4[_0x5e4fc6('0x1e12')]['id']}),_0x2db96e[_0x5e4fc6('0xdfe')]({'title':_0x5e4fc6('0x1828'),'msg':(_0x13b2b4[_0x5e4fc6('0x1e12')][_0x5e4fc6('0x10ad')]||_0x5e4fc6('0x1e12'))+_0x5e4fc6('0x25d2')}),_0x489bb7(_0x13b2b4[_0x5e4fc6('0x1e12')]);})[_0x170bf2('0x103c')](function(_0x236683){const _0x3f96a6=_0x170bf2;if(_0x236683[_0x3f96a6('0x1e07')]&&_0x236683[_0x3f96a6('0x1e07')]['errors']&&_0x236683['data'][_0x3f96a6('0x1d4a')][_0x3f96a6('0x543')]){_0x13b2b4[_0x3f96a6('0x1d4a')]=_0x236683[_0x3f96a6('0x1e07')][_0x3f96a6('0x1d4a')]||[{'message':_0x236683[_0x3f96a6('0x1b75')](),'type':_0x3f96a6('0xd9b')}];for(let _0x4669e0=0x0;_0x4669e0<_0x236683['data']['errors'][_0x3f96a6('0x543')];_0x4669e0++){_0x2db96e[_0x3f96a6('0x15aa')]({'title':_0x236683[_0x3f96a6('0x1e07')][_0x3f96a6('0x1d4a')][_0x4669e0]['type'],'msg':_0x236683['data'][_0x3f96a6('0x1d4a')][_0x4669e0]['message']});}}else _0x2db96e['error']({'title':_0x236683[_0x3f96a6('0x276f')]?_0x3f96a6('0x137')+_0x236683[_0x3f96a6('0x276f')]+_0x3f96a6('0x160c')+_0x236683['statusText']:_0x3f96a6('0xd9b'),'msg':_0x236683[_0x3f96a6('0x1e07')]?JSON[_0x3f96a6('0x100b')](_0x236683[_0x3f96a6('0x1e07')][_0x3f96a6('0x67f')]):_0x236683[_0x3f96a6('0x67f')]||_0x236683['toString']()});});},function(){});}function _0x19cb33(_0x3a97af){return _0x3a97af===null?undefined:new Date(_0x3a97af);}function _0x489bb7(_0x7375d5){const _0x3995bd=_0x1ea9ed;_0x1ed0e7[_0x3995bd('0x1cf4')](_0x7375d5);}}const _0x46ca0e=_0xaf0d8b;_0x251812[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1e12'),_0x566993('0x1ef1'),'realtime',_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x251812(_0x10dbeb,_0x5ec61d,_0x4f6ecb,_0x5f55f7,_0x3744d1,_0x47eaf2,_0x52dda4,_0x4aa9fe,_0x2f7d88,_0x2f7ef3){const _0x2ae964=_0x566993,_0x2485bc=this;_0x2485bc['currentUser']=_0x2f7d88[_0x2ae964('0x14d4')](),_0x2485bc['voicePrefix']=_0x3744d1,_0x2485bc['crudPermissions']=_0x2f7ef3,_0x2485bc[_0x2ae964('0x12a7')]=_0x52dda4,_0x2485bc['items']=[],_0x2485bc['allowedItems']=[],_0x2485bc[_0x2ae964('0x5f8')]=[],_0x2485bc[_0x2ae964('0x1493')]=[],_0x2485bc[_0x2ae964('0x15c9')]=[],_0x2485bc['pendingChanges']=![],_0x2485bc[_0x2ae964('0x2535')]=_0x7038b4,_0x2485bc[_0x2ae964('0x21dc')]=_0x5105a8,_0x2485bc[_0x2ae964('0x18e2')]=_0x36536c,_0x2485bc[_0x2ae964('0x52e')]={'readOnly':!_0x2485bc[_0x2ae964('0x1dc1')][_0x2ae964('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2ae964('0x10ad'),'line1':'fullname','line2':[_0x2ae964('0x10ad'),'internal'],'line3':'','labelAll':_0x4aa9fe['instant'](_0x2ae964('0xb45')),'labelSelected':_0x4aa9fe[_0x2ae964('0x1467')](_0x2ae964('0x682')),'transferCallback':function(){const _0x569712=_0x2ae964,_0x7cbe40=_0x3c8d8a()[_0x569712('0x226b')](_0x2485bc['startingSelectedItems'],_0x2485bc[_0x569712('0x5f8')],'id');_0x2485bc['pendingChanges']=_0x3c8d8a()[_0x569712('0x1a56')](_0x7cbe40)?![]:!![];}};function _0x7038b4(){const _0x4d584c=_0x2ae964;return _0x2f7d88[_0x4d584c('0x1b4e')]('admin')?_0x532ded()[_0x4d584c('0x103c')](function(_0xaecce1){const _0x53ffd1=_0x4d584c;_0x4f6ecb[_0x53ffd1('0x15aa')]({'title':_0xaecce1[_0x53ffd1('0x276f')]?_0x53ffd1('0x137')+_0xaecce1['status']+_0x53ffd1('0x160c')+_0xaecce1[_0x53ffd1('0x2696')]:_0x53ffd1('0x152b'),'msg':_0xaecce1[_0x53ffd1('0x276f')]?JSON[_0x53ffd1('0x100b')](_0xaecce1[_0x53ffd1('0x1e07')]):_0xaecce1[_0x53ffd1('0x1b75')]()});}):_0x3d7a8c()[_0x4d584c('0x173b')](function(_0x2bf3c9){const _0x3d7fc6=_0x4d584c;return _0x2485bc[_0x3d7fc6('0x17c9')]=_0x2bf3c9,_0x532ded();})[_0x4d584c('0x103c')](function(_0x349fe6){const _0x3a2032=_0x4d584c;_0x4f6ecb[_0x3a2032('0x15aa')]({'title':_0x349fe6[_0x3a2032('0x276f')]?_0x3a2032('0x137')+_0x349fe6[_0x3a2032('0x276f')]+_0x3a2032('0x160c')+_0x349fe6[_0x3a2032('0x2696')]:_0x3a2032('0x152b'),'msg':_0x349fe6[_0x3a2032('0x276f')]?JSON['stringify'](_0x349fe6[_0x3a2032('0x1e07')]):_0x349fe6[_0x3a2032('0x1b75')]()});});}function _0x3d7a8c(){return _0x5ec61d(function(_0x3294f8,_0x564be8){const _0x3e88ac=a0_0xde5e;_0x5f55f7['userProfileSection']['get']({'userProfileId':_0x2485bc[_0x3e88ac('0x155f')][_0x3e88ac('0x1946')],'name':_0x3e88ac('0x1272')})[_0x3e88ac('0x1964')][_0x3e88ac('0x173b')](function(_0x19f792){const _0xf6a516=_0x3e88ac,_0xe2a3b8=_0x19f792&&_0x19f792[_0xf6a516('0x6aa')]?_0x19f792[_0xf6a516('0x6aa')][0x0]:null;_0x3294f8(_0xe2a3b8);})[_0x3e88ac('0x103c')](function(_0x328f33){_0x564be8(_0x328f33);});});}function _0x532ded(){return _0x5ec61d(function(_0x3a19c7,_0xdf1528){const _0x262e14=a0_0xde5e;return _0x504c1a()['then'](function(_0x5e2bac){const _0x541eb4=a0_0xde5e;return _0x2485bc[_0x541eb4('0x1b1f')]=_0x5e2bac[_0x541eb4('0x6aa')]?_0x5e2bac[_0x541eb4('0x6aa')]:[],_0x2f7d88[_0x541eb4('0x1b4e')](_0x541eb4('0x79b'))?_0x5e2bac:_0x2485bc[_0x541eb4('0x17c9')]?_0x2485bc['section'][_0x541eb4('0x273e')]?_0x5e2bac:_0x2d1771():null;})[_0x262e14('0x173b')](function(_0x5e4f06){const _0x56151f=_0x262e14,_0x34b689=_0x5e4f06&&_0x5e4f06[_0x56151f('0x6aa')]?_0x5e4f06[_0x56151f('0x6aa')]:[];return _0x2485bc[_0x56151f('0x203e')]=_0x3c8d8a()[_0x56151f('0x8a2')](_0x34b689,function(_0x19f2ac){const _0x2d447c=_0x56151f;return _0x3c8d8a()['find'](_0x2485bc[_0x2d447c('0x1b1f')],{'id':_0x2f7d88['hasRole'](_0x2d447c('0x79b'))||_0x2485bc[_0x2d447c('0x17c9')]['autoAssociation']?_0x19f2ac['id']:_0x19f2ac[_0x2d447c('0x1ce0')]});}),_0x2485bc[_0x56151f('0x1493')]=angular[_0x56151f('0x2e3')](_0x2485bc[_0x56151f('0x203e')]),_0x2485bc['items'][_0x56151f('0xa6a')](function(_0x79d7a3){const _0x4de646=_0x56151f,_0x1225a4=_0x3c8d8a()['find'](_0x2485bc[_0x4de646('0x203e')],{'id':_0x79d7a3['id']});_0x2f7d88[_0x4de646('0x1b4e')](_0x4de646('0x79b'))?_0x79d7a3[_0x4de646('0xf02')]=!![]:_0x79d7a3[_0x4de646('0xf02')]=typeof _0x1225a4!==_0x4de646('0x6e5')?!![]:![];}),_0x27d86a();})[_0x262e14('0x173b')](function(_0x33662d){const _0x12d816=_0x262e14,_0x532b30=_0x33662d&&_0x33662d['rows']?_0x33662d['rows']:[];_0x2485bc[_0x12d816('0x5f8')]=_0x3c8d8a()[_0x12d816('0x8a2')](_0x532b30,function(_0x52f695){const _0x211688=_0x12d816,_0x4c5502=_0x3c8d8a()[_0x211688('0x18ab')](_0x2485bc['items'],{'id':_0x52f695['id']});return _0x4c5502[_0x211688('0x1692')]=_0x52f695[_0x211688('0x42c')]?_0x211688('0x1929')+_0x52f695[_0x211688('0x42c')]['penalty']:'',_0x4c5502['internal']=typeof _0x52f695[_0x211688('0x138c')]!==_0x211688('0x6e5')?'<'+_0x52f695[_0x211688('0x138c')]+'>':'',_0x4c5502;}),_0x2485bc[_0x12d816('0x15c9')]=angular[_0x12d816('0x2e3')](_0x2485bc[_0x12d816('0x5f8')]),_0x2485bc[_0x12d816('0x52e')][_0x12d816('0x5f8')]=_0x2485bc[_0x12d816('0x5f8')],_0x2485bc[_0x12d816('0x52e')][_0x12d816('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x2485bc[_0x12d816('0x203e')],_0x2485bc[_0x12d816('0x52e')][_0x12d816('0x5f8')],'id'),_0x3a19c7();})[_0x262e14('0x103c')](function(_0x18aaf2){_0xdf1528(_0x18aaf2);});});}function _0x2d1771(){return _0x5ec61d(function(_0x351c64,_0x2e4598){const _0x1af40f=a0_0xde5e;return _0x5f55f7[_0x1af40f('0xda9')]['get']({'sectionId':_0x2485bc[_0x1af40f('0x17c9')]['id'],'nolimit':!![]})[_0x1af40f('0x1964')][_0x1af40f('0x173b')](function(_0x9b5372){_0x351c64(_0x9b5372);})[_0x1af40f('0x103c')](function(_0x2746a6){_0x2e4598(_0x2746a6);});});}function _0x27d86a(){return _0x5ec61d(function(_0x5abca1,_0x178a53){const _0xf521e2=a0_0xde5e;return _0x5f55f7[_0xf521e2('0x1e12')]['getAgents']({'id':_0x2485bc[_0xf521e2('0x1e12')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0xf521e2('0x7b0')})[_0xf521e2('0x1964')]['then'](function(_0x558a85){_0x5abca1(_0x558a85);})[_0xf521e2('0x103c')](function(_0x33b496){_0x178a53(_0x33b496);});});}function _0x504c1a(){return _0x5ec61d(function(_0x485d04,_0xc65b6f){const _0x4f70b8=a0_0xde5e;return _0x5f55f7[_0x4f70b8('0x166f')][_0x4f70b8('0x1d97')]({'fields':_0x4f70b8('0x1d65'),'nolimit':!![],'role':_0x4f70b8('0x7b0')})[_0x4f70b8('0x1964')][_0x4f70b8('0x173b')](function(_0x134fd9){_0x485d04(_0x134fd9);})[_0x4f70b8('0x103c')](function(_0x4e2949){_0xc65b6f(_0x4e2949);});});}function _0x2216d4(_0x5c89cd){return _0x5ec61d(function(_0x8a0abd,_0x1ee641){const _0x379861=a0_0xde5e;_0x3c8d8a()[_0x379861('0x1a56')](_0x5c89cd)?_0x8a0abd():_0x5f55f7[_0x379861('0x1e12')]['addAgents']({'id':_0x2485bc[_0x379861('0x1e12')]['id'],'ids':_0x3c8d8a()[_0x379861('0x8a2')](_0x5c89cd,'id')})[_0x379861('0x1964')]['then'](function(){_0x8a0abd();})[_0x379861('0x103c')](function(_0x38dd64){_0x1ee641(_0x38dd64);});});}function _0x595b93(_0x11fab3){return _0x5ec61d(function(_0x19d199,_0x1c06b0){const _0x2a1371=a0_0xde5e;_0x3c8d8a()[_0x2a1371('0x1a56')](_0x11fab3)?_0x19d199():_0x5f55f7[_0x2a1371('0x1e12')][_0x2a1371('0x2017')]({'id':_0x2485bc[_0x2a1371('0x1e12')]['id'],'ids':_0x3c8d8a()[_0x2a1371('0x8a2')](_0x11fab3,'id')})[_0x2a1371('0x1964')][_0x2a1371('0x173b')](function(){_0x19d199();})[_0x2a1371('0x103c')](function(_0x4da7bb){_0x1c06b0(_0x4da7bb);});});}function _0x5105a8(){const _0x4d0a3c=_0x2ae964,_0x5662d9=_0x3c8d8a()[_0x4d0a3c('0x1bd3')](_0x2485bc[_0x4d0a3c('0x15c9')],_0x2485bc['selectedItems'],'id'),_0x3fda93=_0x3c8d8a()[_0x4d0a3c('0x1bd3')](_0x2485bc[_0x4d0a3c('0x5f8')],_0x2485bc['startingSelectedItems'],'id');return _0x595b93(_0x5662d9)[_0x4d0a3c('0x173b')](function(){return _0x2216d4(_0x3fda93);})['then'](function(){const _0x1b0409=_0x4d0a3c;_0x2485bc['pendingChanges']=![],_0x2485bc['startingAllowedItems']=angular[_0x1b0409('0x2e3')](_0x2485bc[_0x1b0409('0x203e')]),_0x2485bc[_0x1b0409('0x15c9')]=angular[_0x1b0409('0x2e3')](_0x2485bc[_0x1b0409('0x5f8')]),_0x4f6ecb['success']({'title':'SUCCESS','msg':_0x1b0409('0x2027')});})[_0x4d0a3c('0x103c')](function(_0x4f7513){const _0x5196ac=_0x4d0a3c;_0x4f6ecb['error']({'title':_0x4f7513[_0x5196ac('0x276f')]?_0x5196ac('0x137')+_0x4f7513[_0x5196ac('0x276f')]+_0x5196ac('0x160c')+_0x4f7513['statusText']:_0x5196ac('0x1f48'),'msg':_0x4f7513[_0x5196ac('0x276f')]?JSON[_0x5196ac('0x100b')](_0x4f7513[_0x5196ac('0x1e07')]):_0x4f7513['toString']()});});}function _0x36536c(){const _0x4292ac=_0x2ae964;_0x10dbeb[_0x4292ac('0x1cf4')]();}}const _0x32e032=_0x251812,_0x5488a7=_0x21a6a1['p']+_0x566993('0xc22'),_0x4f14a7=_0x21a6a1['p']+_0x566993('0x2575');_0xdfaa3[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x1ef1'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty','Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0xdfaa3(_0x10d81c,_0x3d9f12,_0x45851e,_0x43d3b3,_0x48e654,_0x39bcc6,_0x40b4bc,_0x53ddd5,_0x5f0b96,_0x5739b8,_0x3f10b0,_0x345dcc,_0x11b55c,_0x491e56,_0x533f61,_0x5ed4f0,_0x36e01f){const _0x282ae9=_0x566993,_0x56f0b1=this;_0x56f0b1[_0x282ae9('0x1a29')]=_0x5ed4f0,_0x56f0b1['setting']=_0x36e01f,_0x56f0b1[_0x282ae9('0x155f')]=_0x533f61['getCurrentUser'](),_0x56f0b1[_0x282ae9('0x1ef1')]=_0x5f0b96||{'count':0x0,'rows':[]},_0x56f0b1[_0x282ae9('0x257b')]=_0x5739b8,_0x56f0b1[_0x282ae9('0x170e')]=_0x3f10b0&&_0x3f10b0[_0x282ae9('0x1a2f')]==0x1?_0x3f10b0[_0x282ae9('0x6aa')][0x0]:null,_0x56f0b1['crudPermissions']=_0x533f61[_0x282ae9('0xde6')](_0x56f0b1[_0x282ae9('0x170e')]?_0x56f0b1[_0x282ae9('0x170e')][_0x282ae9('0x1dc1')]:null),_0x56f0b1[_0x282ae9('0xdf9')]=_0x282ae9('0x1ef1'),_0x56f0b1[_0x282ae9('0x14d6')]='',_0x56f0b1[_0x282ae9('0x2303')]=null,_0x56f0b1[_0x282ae9('0x1aa8')]=[],_0x56f0b1[_0x282ae9('0xc49')]={'fields':'createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','limit':0xa,'page':0x1},_0x56f0b1[_0x282ae9('0x19eb')]=_0x605e6,_0x56f0b1['agentadddialog']=_0x28198,_0x56f0b1[_0x282ae9('0x1a20')]=_0x197879,_0x56f0b1['success']=_0x323b28,_0x56f0b1['getVoicePrefixes']=_0x3cc92a,_0x56f0b1[_0x282ae9('0xc7d')]=_0x59df69,_0x56f0b1[_0x282ae9('0x1099')]=_0x12d10a,_0x56f0b1['exportSelectedVoicePrefixes']=_0x214960,_0x56f0b1['deleteSelectedVoicePrefixes']=_0x31b23d,_0x56f0b1['deselectVoicePrefixes']=_0x54d0f0,_0x56f0b1['selectAllVoicePrefixes']=_0x579eb3,_0x533f61[_0x282ae9('0x1b4e')](_0x282ae9('0x79b'))?_0x345dcc[_0x282ae9('0x1630')][_0x282ae9('0x1d97')]({'fields':'id,exten','type':_0x282ae9('0xb33'),'VoiceExtensionId':_0x282ae9('0x877'),'nolimit':_0x282ae9('0x799')})[_0x282ae9('0x1964')][_0x282ae9('0x173b')](function(_0x51bc70){const _0x59e167=_0x282ae9;_0x56f0b1[_0x59e167('0x26f')]=_0x51bc70[_0x59e167('0x6aa')]||[];})['catch'](function(_0x4cc18f){const _0x31f767=_0x282ae9;_0x491e56[_0x31f767('0x15aa')]({'title':_0x4cc18f['status']?_0x31f767('0x137')+_0x4cc18f[_0x31f767('0x276f')]+_0x31f767('0x160c')+_0x4cc18f[_0x31f767('0x2696')]:_0x31f767('0x11d2'),'msg':_0x4cc18f[_0x31f767('0x1e07')]?JSON[_0x31f767('0x100b')](_0x4cc18f[_0x31f767('0x1e07')]):_0x4cc18f[_0x31f767('0x1b75')]()});}):_0x345dcc[_0x282ae9('0x1630')][_0x282ae9('0x1d97')]({'fields':'id,exten','type':_0x282ae9('0xb33'),'VoiceExtensionId':_0x282ae9('0x877'),'nolimit':_0x282ae9('0x799')})[_0x282ae9('0x1964')][_0x282ae9('0x173b')](function(_0x4e78e7){const _0x467c9b=_0x282ae9;_0x56f0b1[_0x467c9b('0x26f')]=_0x4e78e7[_0x467c9b('0x6aa')]||[];})[_0x282ae9('0x173b')](function(){const _0x16bfc6=_0x282ae9;return _0x345dcc[_0x16bfc6('0x170e')][_0x16bfc6('0x1d97')]({'userProfileId':_0x56f0b1[_0x16bfc6('0x155f')][_0x16bfc6('0x1946')],'sectionId':0x193})[_0x16bfc6('0x1964')];})[_0x282ae9('0x173b')](function(_0x9b318c){const _0x3d1d56=_0x282ae9,_0xd97e00=_0x9b318c&&_0x9b318c['rows']?_0x9b318c[_0x3d1d56('0x6aa')][0x0]:null;if(!_0xd97e00){const _0x1cbc15=[];let _0x33ac70=null;_0x56f0b1[_0x3d1d56('0x1e12')]&&(_0x33ac70=_0x3c8d8a()[_0x3d1d56('0x18ab')](_0x56f0b1[_0x3d1d56('0x26f')],{'id':Number(_0x56f0b1[_0x3d1d56('0x1e12')]['VoiceExtensionId'])}));for(let _0x206e12=0x0;_0x206e12<_0x56f0b1[_0x3d1d56('0x26f')][_0x3d1d56('0x543')];_0x206e12++){_0x33ac70&&_0x56f0b1[_0x3d1d56('0x26f')][_0x206e12]['id']===_0x33ac70['id']&&(_0x56f0b1['outboundRoutes'][_0x206e12][_0x3d1d56('0x268e')]=![],_0x1cbc15['push'](_0x56f0b1[_0x3d1d56('0x26f')][_0x206e12]));}_0x56f0b1[_0x3d1d56('0x26f')]=_0x1cbc15;}else{if(!_0xd97e00[_0x3d1d56('0x273e')])return _0x345dcc[_0x3d1d56('0xda9')]['get']({'sectionId':_0xd97e00['id']})['$promise'][_0x3d1d56('0x173b')](function(_0x231c01){const _0x2f5e66=_0x3d1d56,_0x1e2ec2=_0x3c8d8a()[_0x2f5e66('0x8a2')](_0x231c01[_0x2f5e66('0x6aa')],function(_0x37f14a){const _0xa67371=_0x2f5e66;return _0x3c8d8a()[_0xa67371('0x18ab')](_0x56f0b1[_0xa67371('0x26f')],{'id':_0x37f14a['resourceId']});});let _0x4b0ae3=null;_0x56f0b1['voicePrefix']&&(_0x4b0ae3=_0x3c8d8a()[_0x2f5e66('0x18ab')](_0x56f0b1[_0x2f5e66('0x26f')],{'id':Number(_0x56f0b1[_0x2f5e66('0x1e12')][_0x2f5e66('0x1011')])}));if(_0x4b0ae3&&!_0x3c8d8a()[_0x2f5e66('0x1ec')](_0x1e2ec2,['id',_0x4b0ae3['id']])){const _0x30f2bd=_0x3c8d8a()[_0x2f5e66('0x18ab')](_0x56f0b1[_0x2f5e66('0x26f')],{'id':_0x4b0ae3['id']});_0x30f2bd['canSelect']=![],_0x1e2ec2['push'](_0x30f2bd);}_0x56f0b1[_0x2f5e66('0x26f')]=_0x1e2ec2;});}})[_0x282ae9('0x103c')](function(_0x5d30d4){const _0x2d5a52=_0x282ae9;_0x491e56[_0x2d5a52('0x15aa')]({'title':_0x5d30d4[_0x2d5a52('0x276f')]?_0x2d5a52('0x137')+_0x5d30d4[_0x2d5a52('0x276f')]+_0x2d5a52('0x160c')+_0x5d30d4['statusText']:'SYSTEM:GEToutboundRoutes','msg':_0x5d30d4[_0x2d5a52('0x1e07')]?JSON[_0x2d5a52('0x100b')](_0x5d30d4[_0x2d5a52('0x1e07')]):_0x5d30d4['toString']()});});function _0x605e6(_0x1aa457,_0x5d0eae){const _0x2fd590=_0x282ae9;_0x48e654[_0x2fd590('0x1cb7')]({'controller':_0x2fd590('0x2202'),'controllerAs':'vm','templateUrl':_0x5488a7,'parent':angular[_0x2fd590('0xb6d')](_0x39bcc6[_0x2fd590('0x1a5')]),'targetEvent':_0x5d0eae,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x1aa457,'voicePrefixes':_0x56f0b1[_0x2fd590('0x1ef1')]['rows'],'license':_0x56f0b1[_0x2fd590('0x1a29')],'setting':null,'crudPermissions':_0x56f0b1[_0x2fd590('0x1dc1')]}});}function _0x28198(_0x2f6392,_0x2a53e4){const _0x9b2046=_0x282ae9;_0x48e654['show']({'controller':'voicePrefixagentaddController','controllerAs':'vm','templateUrl':_0x4f14a7,'parent':angular[_0x9b2046('0xb6d')](_0x39bcc6[_0x9b2046('0x1a5')]),'targetEvent':_0x2a53e4,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x2f6392,'voicePrefixes':_0x56f0b1['voicePrefixes']?_0x56f0b1['voicePrefixes'][_0x9b2046('0x6aa')]:[],'crudPermissions':_0x56f0b1[_0x9b2046('0x1dc1')],'realtime':![]}});}function _0x197879(_0x24cb52,_0x23c463){const _0x50ea05=_0x282ae9,_0x1f511f=_0x48e654[_0x50ea05('0x1d02')]()[_0x50ea05('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x50ea05('0x10e')](_0x50ea05('0x1e12'))+'?')[_0x50ea05('0xf8b')](_0x50ea05('0x15b9')+(_0x24cb52['name']||_0x50ea05('0x1e12'))+_0x50ea05('0x24be')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x50ea05('0x49a'))[_0x50ea05('0x21de')](_0x23c463)['ok']('OK')['cancel']('CANCEL');_0x48e654[_0x50ea05('0x1cb7')](_0x1f511f)[_0x50ea05('0x173b')](function(){_0x12d10a(_0x24cb52);},function(){const _0x794e13=_0x50ea05;console['log'](_0x794e13('0x468'));});}let _0x15eea7=!![],_0x50ff11=0x1;_0x10d81c[_0x282ae9('0x1bdb')](_0x282ae9('0x157b'),function(_0x4297b7,_0x3c5ac5){const _0x3111ab=_0x282ae9;_0x15eea7?_0x40b4bc(function(){_0x15eea7=![];}):(!_0x3c5ac5&&(_0x50ff11=_0x56f0b1[_0x3111ab('0xc49')][_0x3111ab('0x182e')]),_0x4297b7!==_0x3c5ac5&&(_0x56f0b1[_0x3111ab('0xc49')][_0x3111ab('0x182e')]=0x1),!_0x4297b7&&(_0x56f0b1['query'][_0x3111ab('0x182e')]=_0x50ff11),_0x56f0b1[_0x3111ab('0x9f5')]());});function _0x323b28(_0x107640){const _0x35429b=_0x282ae9;_0x56f0b1[_0x35429b('0x1ef1')]=_0x107640||{'count':0x0,'rows':[]};}function _0x3cc92a(){const _0x152d23=_0x282ae9;_0x56f0b1[_0x152d23('0xc49')][_0x152d23('0x17f0')]=(_0x56f0b1[_0x152d23('0xc49')]['page']-0x1)*_0x56f0b1[_0x152d23('0xc49')][_0x152d23('0x3e')],_0x533f61[_0x152d23('0x1b4e')](_0x152d23('0x79b'))?_0x56f0b1['promise']=_0x345dcc[_0x152d23('0x1e12')]['get'](_0x56f0b1[_0x152d23('0xc49')],_0x323b28)[_0x152d23('0x1964')]:(_0x56f0b1[_0x152d23('0xc49')]['id']=_0x56f0b1[_0x152d23('0x257b')]['id'],_0x56f0b1[_0x152d23('0xc49')]['section']='VoicePrefixes',_0x56f0b1[_0x152d23('0x2219')]=_0x345dcc[_0x152d23('0x257b')][_0x152d23('0x135b')](_0x56f0b1['query'],_0x323b28)[_0x152d23('0x1964')]);}function _0x59df69(_0x486710,_0x1fefff){const _0x2d2eb1=_0x282ae9;_0x48e654['show']({'controller':'CreateOrEditvoicePrefixDialogController','controllerAs':'vm','templateUrl':_0x5488a7,'parent':angular[_0x2d2eb1('0xb6d')](_0x39bcc6[_0x2d2eb1('0x1a5')]),'targetEvent':_0x486710,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x1fefff,'voicePrefixes':_0x56f0b1[_0x2d2eb1('0x1ef1')][_0x2d2eb1('0x6aa')],'license':_0x56f0b1[_0x2d2eb1('0x1a29')],'setting':_0x56f0b1[_0x2d2eb1('0x251')],'crudPermissions':_0x56f0b1[_0x2d2eb1('0x1dc1')]}});}function _0x12d10a(_0x44e280){const _0x7ba2fc=_0x282ae9;_0x345dcc[_0x7ba2fc('0x1e12')][_0x7ba2fc('0x15e8')]({'id':_0x44e280['id']})['$promise']['then'](function(){const _0x4544a2=_0x7ba2fc;_0x3c8d8a()[_0x4544a2('0x1a8b')](_0x56f0b1[_0x4544a2('0x1ef1')][_0x4544a2('0x6aa')],{'id':_0x44e280['id']}),_0x56f0b1[_0x4544a2('0x1ef1')][_0x4544a2('0x1a2f')]-=0x1,!_0x56f0b1[_0x4544a2('0x1ef1')][_0x4544a2('0x6aa')]['length']&&_0x56f0b1['getVoicePrefixes'](),_0x491e56[_0x4544a2('0xdfe')]({'title':_0x3c8d8a()[_0x4544a2('0x10e')](_0x4544a2('0x1e12'))+_0x4544a2('0x1c5e'),'msg':_0x44e280[_0x4544a2('0x10ad')]?_0x44e280[_0x4544a2('0x10ad')]+_0x4544a2('0x25d2'):''});})[_0x7ba2fc('0x103c')](function(_0x487efa){const _0x55658e=_0x7ba2fc;if(_0x487efa[_0x55658e('0x1e07')]&&_0x487efa[_0x55658e('0x1e07')]['errors']&&_0x487efa[_0x55658e('0x1e07')][_0x55658e('0x1d4a')]['length']){_0x56f0b1[_0x55658e('0x1d4a')]=_0x487efa[_0x55658e('0x1e07')][_0x55658e('0x1d4a')]||[{'message':_0x487efa[_0x55658e('0x1b75')](),'type':_0x55658e('0x187a')}];for(let _0x3c29da=0x0;_0x3c29da<_0x487efa['data'][_0x55658e('0x1d4a')][_0x55658e('0x543')];_0x3c29da++){_0x491e56[_0x55658e('0x15aa')]({'title':_0x487efa[_0x55658e('0x1e07')][_0x55658e('0x1d4a')][_0x3c29da][_0x55658e('0x1810')],'msg':_0x487efa[_0x55658e('0x1e07')][_0x55658e('0x1d4a')][_0x3c29da][_0x55658e('0x67f')]});}}else _0x491e56[_0x55658e('0x15aa')]({'title':_0x487efa[_0x55658e('0x276f')]?_0x55658e('0x137')+_0x487efa[_0x55658e('0x276f')]+_0x55658e('0x160c')+_0x487efa[_0x55658e('0x2696')]:_0x55658e('0x187a'),'msg':_0x487efa[_0x55658e('0x1e07')]?JSON['stringify'](_0x487efa[_0x55658e('0x1e07')][_0x55658e('0x67f')]):_0x487efa[_0x55658e('0x67f')]||_0x487efa[_0x55658e('0x1b75')]()});});}function _0x214960(){const _0x21ff91=_0x282ae9,_0x1a6aba=angular['copy'](_0x56f0b1[_0x21ff91('0x1aa8')]);return _0x56f0b1[_0x21ff91('0x1aa8')]=[],_0x1a6aba;}function _0x31b23d(_0x1e836b){const _0xb05b04=_0x282ae9,_0x3703ac=_0x48e654['confirm']()[_0xb05b04('0x20d6')](_0xb05b04('0x65'))['htmlContent'](_0xb05b04('0x15b9')+_0x56f0b1[_0xb05b04('0x1aa8')][_0xb05b04('0x543')]+_0xb05b04('0xcb4')+_0xb05b04('0xd23'))[_0xb05b04('0x217')](_0xb05b04('0xaf'))[_0xb05b04('0x21de')](_0x1e836b)['ok']('OK')[_0xb05b04('0x1e1f')](_0xb05b04('0x468'));_0x48e654[_0xb05b04('0x1cb7')](_0x3703ac)['then'](function(){const _0x23378f=_0xb05b04;_0x56f0b1[_0x23378f('0x1aa8')]['forEach'](function(_0x552f5c){_0x12d10a(_0x552f5c);}),_0x56f0b1[_0x23378f('0x1aa8')]=[];});}function _0x54d0f0(){const _0x312808=_0x282ae9;_0x56f0b1[_0x312808('0x1aa8')]=[];}function _0x579eb3(){const _0x21a735=_0x282ae9;_0x56f0b1['selectedVoicePrefixes']=_0x56f0b1['voicePrefixes'][_0x21a735('0x6aa')];}}const _0x4ff027=_0xdfaa3;_0x2b53ed['$inject']=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x19f0'),_0x566993('0x1282'),_0x566993('0xbd4'),'Auth',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x2b53ed(_0x19acd5,_0x22ee40,_0x19208f,_0x186208,_0x2ad926,_0x263018,_0x8e63d7,_0x1e7956,_0x2d12b8,_0x36349c,_0x306fa9,_0xaa9ea4,_0x2a97da,_0xc222f){const _0x5eb881=_0x566993,_0x33fc49=this;_0x33fc49[_0x5eb881('0x155f')]=_0x306fa9[_0x5eb881('0x14d4')](),_0x33fc49[_0x5eb881('0x1d4a')]=[],_0x33fc49[_0x5eb881('0x251')]=_0x2a97da,_0x33fc49[_0x5eb881('0x1a29')]=_0xaa9ea4,_0x33fc49[_0x5eb881('0x1dc1')]=_0xc222f,_0x33fc49[_0x5eb881('0xb0')]={},_0x33fc49[_0x5eb881('0x644')]=_0x33fc49[_0x5eb881('0x251')]&&_0x33fc49[_0x5eb881('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x33fc49[_0x5eb881('0x20d6')]=_0x5eb881('0x11e6'),_0x33fc49[_0x5eb881('0x1282')]=angular[_0x5eb881('0x2e3')](_0x2d12b8),_0x33fc49[_0x5eb881('0x19f0')]=_0x1e7956,_0x33fc49[_0x5eb881('0x1575')]=![];!_0x33fc49['voiceQueue']&&(_0x33fc49[_0x5eb881('0x1282')]={'type':_0x5eb881('0x1755'),'strategy':_0x5eb881('0x641'),'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'},_0x33fc49[_0x5eb881('0x20d6')]=_0x5eb881('0x1077'),_0x33fc49['newVoiceQueue']=!![]);_0x33fc49[_0x5eb881('0x27c7')]=_0x5c04e3,_0x33fc49['saveVoiceQueue']=_0x1ed0a7,_0x33fc49[_0x5eb881('0x113f')]=_0x3245d0,_0x33fc49[_0x5eb881('0x11ae')]=_0x1d3243,_0x33fc49[_0x5eb881('0x18e2')]=_0x51a7d5;function _0x5c04e3(){const _0xa17d56=_0x5eb881;_0x33fc49[_0xa17d56('0x1d4a')]=[],_0x36349c[_0xa17d56('0x1282')][_0xa17d56('0x1195')](_0x33fc49['voiceQueue'])['$promise'][_0xa17d56('0x173b')](function(_0x1000c2){const _0x8a56bf=_0xa17d56;_0x33fc49[_0x8a56bf('0x19f0')][_0x8a56bf('0x1377')](_0x1000c2[_0x8a56bf('0xf1f')]()),_0x8e63d7[_0x8a56bf('0xdfe')]({'title':_0x8a56bf('0x1fb2'),'msg':_0x33fc49[_0x8a56bf('0x1282')]['name']?_0x33fc49[_0x8a56bf('0x1282')]['name']+'\x20has\x20been\x20created!':''}),_0x51a7d5(_0x1000c2);})['catch'](function(_0x3768cf){const _0x21127e=_0xa17d56;if(_0x3768cf['data']&&_0x3768cf[_0x21127e('0x1e07')][_0x21127e('0x1d4a')]&&_0x3768cf['data'][_0x21127e('0x1d4a')][_0x21127e('0x543')]){_0x33fc49['errors']=_0x3768cf[_0x21127e('0x1e07')][_0x21127e('0x1d4a')]||[{'message':_0x3768cf[_0x21127e('0x1b75')](),'type':_0x21127e('0x347')}];for(let _0xa7a490=0x0;_0xa7a490<_0x3768cf['data'][_0x21127e('0x1d4a')][_0x21127e('0x543')];_0xa7a490+=0x1){_0x8e63d7['error']({'title':_0x3768cf['data'][_0x21127e('0x1d4a')][_0xa7a490]['type'],'msg':_0x3768cf['data'][_0x21127e('0x1d4a')][_0xa7a490][_0x21127e('0x67f')]});}}else _0x8e63d7[_0x21127e('0x15aa')]({'title':_0x3768cf[_0x21127e('0x276f')]?_0x21127e('0x137')+_0x3768cf[_0x21127e('0x276f')]+'\x20-\x20'+_0x3768cf[_0x21127e('0x2696')]:_0x21127e('0x347'),'msg':_0x3768cf[_0x21127e('0x1e07')]?JSON['stringify'](_0x3768cf[_0x21127e('0x1e07')][_0x21127e('0x67f')]):_0x3768cf[_0x21127e('0x1b75')]()});});}function _0x1ed0a7(){const _0x2da583=_0x5eb881;_0x33fc49[_0x2da583('0x1d4a')]=[],_0x36349c[_0x2da583('0x1282')][_0x2da583('0x1842')]({'id':_0x33fc49['voiceQueue']['id']},_0x33fc49['voiceQueue'])[_0x2da583('0x1964')][_0x2da583('0x173b')](function(_0x3cfff7){const _0x487831=_0x2da583,_0x2d37ea=_0x3c8d8a()[_0x487831('0x18ab')](_0x33fc49[_0x487831('0x19f0')],{'id':_0x3cfff7['id']});_0x2d37ea&&_0x3c8d8a()[_0x487831('0x9ef')](_0x2d37ea,_0x3c8d8a()[_0x487831('0x2114')](_0x3cfff7[_0x487831('0xf1f')](),_0x3c8d8a()[_0x487831('0x1d3e')](_0x2d37ea))),_0x8e63d7[_0x487831('0xdfe')]({'title':_0x487831('0x1e92'),'msg':_0x33fc49[_0x487831('0x1282')][_0x487831('0x10ad')]?_0x33fc49['voiceQueue'][_0x487831('0x10ad')]+_0x487831('0x2788'):''}),_0x51a7d5(_0x3cfff7);})[_0x2da583('0x103c')](function(_0x1a5e86){const _0x4b9625=_0x2da583;if(_0x1a5e86['data']&&_0x1a5e86[_0x4b9625('0x1e07')]['errors']&&_0x1a5e86['data']['errors'][_0x4b9625('0x543')]){_0x33fc49[_0x4b9625('0x1d4a')]=_0x1a5e86['data']['errors']||[{'message':_0x1a5e86['toString'](),'type':'api.voiceQueue.update'}];for(let _0x40ea7e=0x0;_0x40ea7e<_0x1a5e86['data']['errors']['length'];_0x40ea7e++){_0x8e63d7[_0x4b9625('0x15aa')]({'title':_0x1a5e86['data'][_0x4b9625('0x1d4a')][_0x40ea7e][_0x4b9625('0x1810')],'msg':_0x1a5e86[_0x4b9625('0x1e07')][_0x4b9625('0x1d4a')][_0x40ea7e][_0x4b9625('0x67f')]});}}else _0x8e63d7[_0x4b9625('0x15aa')]({'title':_0x1a5e86['status']?_0x4b9625('0x137')+_0x1a5e86['status']+_0x4b9625('0x160c')+_0x1a5e86[_0x4b9625('0x2696')]:_0x4b9625('0x210'),'msg':_0x1a5e86[_0x4b9625('0x1e07')]?JSON[_0x4b9625('0x100b')](_0x1a5e86[_0x4b9625('0x1e07')][_0x4b9625('0x67f')]):_0x1a5e86[_0x4b9625('0x1b75')]()});});}function _0x3245d0(_0x1bc223){const _0x2d32cc=_0x5eb881;_0x33fc49[_0x2d32cc('0x1d4a')]=[];const _0xab27e6=_0x186208[_0x2d32cc('0x1d02')]()[_0x2d32cc('0x20d6')](_0x2d32cc('0x8ef'))['content'](_0x2d32cc('0x12ed'))['ariaLabel'](_0x2d32cc('0x12fd'))['ok'](_0x2d32cc('0x2373'))[_0x2d32cc('0x1e1f')](_0x2d32cc('0x1d4e'))['targetEvent'](_0x1bc223);_0x186208[_0x2d32cc('0x1cb7')](_0xab27e6)[_0x2d32cc('0x173b')](function(){const _0x4d1957=_0x2d32cc;_0x36349c[_0x4d1957('0x1282')][_0x4d1957('0x15e8')]({'id':_0x33fc49[_0x4d1957('0x1282')]['id']})[_0x4d1957('0x1964')][_0x4d1957('0x173b')](function(){const _0x50ad11=_0x4d1957;_0x3c8d8a()['remove'](_0x33fc49[_0x50ad11('0x19f0')],{'id':_0x33fc49[_0x50ad11('0x1282')]['id']}),_0x8e63d7[_0x50ad11('0xdfe')]({'title':'VoiceQueue\x20properly\x20deleted!','msg':(_0x33fc49['voiceQueue'][_0x50ad11('0x10ad')]||_0x50ad11('0x1282'))+_0x50ad11('0x25d2')}),_0x51a7d5(_0x33fc49['voiceQueue']);})[_0x4d1957('0x103c')](function(_0x1e8510){const _0x1dea51=_0x4d1957;if(_0x1e8510[_0x1dea51('0x1e07')]&&_0x1e8510[_0x1dea51('0x1e07')][_0x1dea51('0x1d4a')]&&_0x1e8510[_0x1dea51('0x1e07')]['errors'][_0x1dea51('0x543')]){_0x33fc49[_0x1dea51('0x1d4a')]=_0x1e8510[_0x1dea51('0x1e07')][_0x1dea51('0x1d4a')]||[{'message':_0x1e8510[_0x1dea51('0x1b75')](),'type':_0x1dea51('0x221b')}];for(let _0x46f2e2=0x0;_0x46f2e2<_0x1e8510[_0x1dea51('0x1e07')]['errors']['length'];_0x46f2e2++){_0x8e63d7[_0x1dea51('0x15aa')]({'title':_0x1e8510[_0x1dea51('0x1e07')][_0x1dea51('0x1d4a')][_0x46f2e2]['type'],'msg':_0x1e8510[_0x1dea51('0x1e07')][_0x1dea51('0x1d4a')][_0x46f2e2][_0x1dea51('0x67f')]});}}else _0x8e63d7[_0x1dea51('0x15aa')]({'title':_0x1e8510[_0x1dea51('0x276f')]?_0x1dea51('0x137')+_0x1e8510[_0x1dea51('0x276f')]+_0x1dea51('0x160c')+_0x1e8510[_0x1dea51('0x2696')]:_0x1dea51('0x221b'),'msg':_0x1e8510[_0x1dea51('0x1e07')]?JSON['stringify'](_0x1e8510['data'][_0x1dea51('0x67f')]):_0x1e8510['message']||_0x1e8510['toString']()});});},function(){});}function _0x1d3243(_0x28cff0){return _0x28cff0===null?undefined:new Date(_0x28cff0);}function _0x51a7d5(_0x4c0b3c){const _0x2ad45d=_0x5eb881;_0x186208[_0x2ad45d('0x1cf4')](_0x4c0b3c);}}const _0x575501=_0x2b53ed;_0x2c72eb[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),'voiceQueue',_0x566993('0x19f0'),_0x566993('0x12a7'),'$translate',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x2c72eb(_0x3a99b2,_0x26490a,_0x1aa8fa,_0x58ed92,_0x26f4c6,_0x41dca7,_0x4ff297,_0x5889bf,_0x32b020,_0x1de42c){const _0x446963=_0x566993,_0x1b7be9=this;_0x1b7be9['currentUser']=_0x32b020[_0x446963('0x14d4')](),_0x1b7be9['voiceQueue']=_0x26f4c6,_0x1b7be9[_0x446963('0x1dc1')]=_0x1de42c,_0x1b7be9[_0x446963('0x1692')]=0x0,_0x1b7be9['realtime']=_0x4ff297,_0x1b7be9[_0x446963('0x1b1f')]=[],_0x1b7be9['allowedItems']=[],_0x1b7be9[_0x446963('0x5f8')]=[],_0x1b7be9['startingAllowedItems']=[],_0x1b7be9[_0x446963('0x15c9')]=[],_0x1b7be9[_0x446963('0x277e')]=![],_0x1b7be9['onInit']=_0x3aa96c,_0x1b7be9[_0x446963('0x21dc')]=_0x238e95,_0x1b7be9[_0x446963('0x18e2')]=_0x29511b,_0x1b7be9[_0x446963('0x52e')]={'readOnly':!_0x1b7be9[_0x446963('0x1dc1')][_0x446963('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x446963('0x10ad'),'line1':'fullname','line2':[_0x446963('0x10ad'),'internal'],'line3':_0x446963('0x1692'),'labelAll':_0x5889bf[_0x446963('0x1467')]('VOICE.ALL_AGENTS'),'labelSelected':_0x5889bf[_0x446963('0x1467')](_0x446963('0x682')),'transferCallback':function(_0x512225,_0x5565d5){const _0x2c42f5=_0x446963;_0x5565d5?_0x512225[_0x2c42f5('0xa6a')](function(_0x3f9672){const _0x5333cf=_0x2c42f5;_0x3f9672[_0x5333cf('0x1692')]=undefined;}):_0x512225['forEach'](function(_0x1b018d){const _0x54b543=_0x2c42f5;_0x1b018d[_0x54b543('0x1692')]=_0x54b543('0x1929')+_0x1b7be9[_0x54b543('0x1692')];});const _0x16a1a1=_0x3c8d8a()['xorWith'](_0x1b7be9[_0x2c42f5('0x15c9')],_0x1b7be9[_0x2c42f5('0x5f8')],function(_0x1363a8,_0x2c8f85){const _0x4de07f=_0x2c42f5;return _0x1363a8['id']===_0x2c8f85['id']&&_0x1363a8[_0x4de07f('0x1692')]===_0x2c8f85[_0x4de07f('0x1692')];});_0x1b7be9[_0x2c42f5('0x277e')]=_0x3c8d8a()[_0x2c42f5('0x1a56')](_0x16a1a1)?![]:!![];}};function _0x3aa96c(){const _0x1c9843=_0x446963;return _0x32b020[_0x1c9843('0x1b4e')]('admin')?_0x2f8238()[_0x1c9843('0x103c')](function(_0x4f0fd3){const _0x3b06d7=_0x1c9843;_0x1aa8fa[_0x3b06d7('0x15aa')]({'title':_0x4f0fd3['status']?_0x3b06d7('0x137')+_0x4f0fd3[_0x3b06d7('0x276f')]+_0x3b06d7('0x160c')+_0x4f0fd3[_0x3b06d7('0x2696')]:'SYSTEM:GET_AGENTS','msg':_0x4f0fd3[_0x3b06d7('0x276f')]?JSON[_0x3b06d7('0x100b')](_0x4f0fd3[_0x3b06d7('0x1e07')]):_0x4f0fd3[_0x3b06d7('0x1b75')]()});}):_0x471bee()[_0x1c9843('0x173b')](function(_0x3d3543){const _0x978f17=_0x1c9843;return _0x1b7be9[_0x978f17('0x17c9')]=_0x3d3543,_0x2f8238();})['catch'](function(_0x4f9fdb){const _0x4c6911=_0x1c9843;_0x1aa8fa['error']({'title':_0x4f9fdb[_0x4c6911('0x276f')]?_0x4c6911('0x137')+_0x4f9fdb['status']+'\x20-\x20'+_0x4f9fdb['statusText']:_0x4c6911('0x152b'),'msg':_0x4f9fdb[_0x4c6911('0x276f')]?JSON[_0x4c6911('0x100b')](_0x4f9fdb[_0x4c6911('0x1e07')]):_0x4f9fdb[_0x4c6911('0x1b75')]()});});}function _0x471bee(){return _0x26490a(function(_0x4aae87,_0x3d52a1){const _0x524743=a0_0xde5e;_0x58ed92[_0x524743('0x170e')]['get']({'userProfileId':_0x1b7be9[_0x524743('0x155f')][_0x524743('0x1946')],'name':_0x524743('0x1272')})[_0x524743('0x1964')][_0x524743('0x173b')](function(_0x2adae1){const _0xada4c8=_0x524743,_0x225c18=_0x2adae1&&_0x2adae1[_0xada4c8('0x6aa')]?_0x2adae1[_0xada4c8('0x6aa')][0x0]:null;_0x4aae87(_0x225c18);})[_0x524743('0x103c')](function(_0x4f3b87){_0x3d52a1(_0x4f3b87);});});}function _0x2f8238(){return _0x26490a(function(_0x231e53,_0x305fac){const _0xe658e6=a0_0xde5e;return _0x4754f0()[_0xe658e6('0x173b')](function(_0x53214d){const _0x4279f8=_0xe658e6;return _0x1b7be9[_0x4279f8('0x1b1f')]=_0x53214d[_0x4279f8('0x6aa')]?_0x53214d[_0x4279f8('0x6aa')]:[],_0x32b020[_0x4279f8('0x1b4e')]('admin')?_0x53214d:_0x1b7be9['section']?_0x1b7be9['section'][_0x4279f8('0x273e')]?_0x53214d:_0x49573f():null;})['then'](function(_0xce4508){const _0x358eda=_0xe658e6,_0x3253c4=_0xce4508&&_0xce4508[_0x358eda('0x6aa')]?_0xce4508['rows']:[];return _0x1b7be9[_0x358eda('0x203e')]=_0x3c8d8a()['map'](_0x3253c4,function(_0x470f02){const _0x26d23b=_0x358eda;return _0x3c8d8a()[_0x26d23b('0x18ab')](_0x1b7be9[_0x26d23b('0x1b1f')],{'id':_0x32b020[_0x26d23b('0x1b4e')](_0x26d23b('0x79b'))||_0x1b7be9['section']['autoAssociation']?_0x470f02['id']:_0x470f02['resourceId']});}),_0x1b7be9[_0x358eda('0x1493')]=angular[_0x358eda('0x2e3')](_0x1b7be9[_0x358eda('0x203e')]),_0x1b7be9[_0x358eda('0x1b1f')][_0x358eda('0xa6a')](function(_0xb273bc){const _0x40c166=_0x358eda,_0x343fdd=_0x3c8d8a()[_0x40c166('0x18ab')](_0x1b7be9[_0x40c166('0x203e')],{'id':_0xb273bc['id']});_0x32b020['hasRole']('admin')?_0xb273bc[_0x40c166('0xf02')]=!![]:_0xb273bc[_0x40c166('0xf02')]=typeof _0x343fdd!==_0x40c166('0x6e5')?!![]:![];}),_0x5c9b1a();})[_0xe658e6('0x173b')](function(_0x3a1a66){const _0x219ccf=_0xe658e6,_0x1795c1=_0x3a1a66&&_0x3a1a66[_0x219ccf('0x6aa')]?_0x3a1a66[_0x219ccf('0x6aa')]:[];_0x1b7be9[_0x219ccf('0x5f8')]=_0x3c8d8a()[_0x219ccf('0x8a2')](_0x1795c1,function(_0x2da7e8){const _0x3530b1=_0x219ccf,_0x2d499e=_0x3c8d8a()[_0x3530b1('0x18ab')](_0x1b7be9[_0x3530b1('0x1b1f')],{'id':_0x2da7e8['id']});return _0x2d499e['penalty']=_0x2da7e8[_0x3530b1('0x2639')]?'penalty\x20'+_0x2da7e8['UserVoiceQueue'][_0x3530b1('0x1692')]:'',_0x2d499e[_0x3530b1('0x138c')]=typeof _0x2da7e8['internal']!==_0x3530b1('0x6e5')?'<'+_0x2da7e8[_0x3530b1('0x138c')]+'>':'',_0x2d499e;}),_0x1b7be9[_0x219ccf('0x15c9')]=angular['copy'](_0x1b7be9['selectedItems']),_0x1b7be9[_0x219ccf('0x52e')]['selectedItems']=_0x1b7be9[_0x219ccf('0x5f8')],_0x1b7be9[_0x219ccf('0x52e')][_0x219ccf('0x1b1f')]=_0x3c8d8a()[_0x219ccf('0x1bd3')](_0x1b7be9['allowedItems'],_0x1b7be9[_0x219ccf('0x52e')][_0x219ccf('0x5f8')],'id'),_0x231e53();})[_0xe658e6('0x103c')](function(_0x546b96){_0x305fac(_0x546b96);});});}function _0x49573f(){return _0x26490a(function(_0x2d5a9e,_0x1e181f){const _0x3c855d=a0_0xde5e;return _0x58ed92[_0x3c855d('0xda9')][_0x3c855d('0x1d97')]({'sectionId':_0x1b7be9[_0x3c855d('0x17c9')]['id'],'nolimit':!![]})[_0x3c855d('0x1964')][_0x3c855d('0x173b')](function(_0x1afb28){_0x2d5a9e(_0x1afb28);})[_0x3c855d('0x103c')](function(_0x2e2c87){_0x1e181f(_0x2e2c87);});});}function _0x5c9b1a(){return _0x26490a(function(_0x4373af,_0x10b16c){const _0x2a4bd5=a0_0xde5e;return _0x58ed92[_0x2a4bd5('0x1282')]['getAgents']({'id':_0x1b7be9[_0x2a4bd5('0x1282')]['id'],'fields':_0x2a4bd5('0x1d65'),'nolimit':!![],'role':_0x2a4bd5('0x7b0')})['$promise']['then'](function(_0x573815){_0x4373af(_0x573815);})['catch'](function(_0x250dec){_0x10b16c(_0x250dec);});});}function _0x4754f0(){return _0x26490a(function(_0x778716,_0x55a898){const _0x44473b=a0_0xde5e;return _0x58ed92['user']['get']({'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})[_0x44473b('0x1964')][_0x44473b('0x173b')](function(_0x722f96){_0x778716(_0x722f96);})['catch'](function(_0x7e87a0){_0x55a898(_0x7e87a0);});});}function _0x634a95(_0x3d3eae){return _0x26490a(function(_0x35b808,_0x3af0d7){const _0x26cfa0=a0_0xde5e;if(_0x3c8d8a()[_0x26cfa0('0x1a56')](_0x3d3eae))_0x35b808();else{const _0x1722f2=[],_0x503bf0=_0x3c8d8a()[_0x26cfa0('0x470')](_0x3d3eae,_0x26cfa0('0x1692'));for(let _0x402ddf=0x0;_0x402ddf'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x35bc90('0x1998'))['targetEvent'](_0x48d668)['ok']('OK')[_0x35bc90('0x1e1f')]('CANCEL');_0x5783b9[_0x35bc90('0x1cb7')](_0x2be0d6)[_0x35bc90('0x173b')](function(){const _0x322a75=_0x35bc90;_0x2a3669[_0x322a75('0x2808')][_0x322a75('0xa6a')](function(_0x44015f){_0x297ed4(_0x44015f);}),_0x2a3669[_0x322a75('0x2808')]=[];});}function _0x2cc457(){_0x2a3669['selectedVoiceQueues']=[];}function _0x33bf4b(){const _0x29ac8a=_0x37ec6d;_0x2a3669['selectedVoiceQueues']=_0x2a3669[_0x29ac8a('0x19f0')][_0x29ac8a('0x6aa')];}}const _0x4eed4a=_0x4e4dc9;_0x5c738e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1478'),'voiceRecording','api','Auth',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x5c738e(_0x330492,_0x202925,_0x4233cf,_0x1bdb7a,_0x3d2ce8,_0x2e2c3c,_0x46b19f,_0x2fa97d,_0x62c084,_0xd3c1d0,_0x7e263e,_0x25e961,_0x577838,_0x5a238b){const _0x589d94=_0x566993,_0x388810=this;_0x388810[_0x589d94('0x155f')]=_0x7e263e[_0x589d94('0x14d4')](),_0x388810['errors']=[],_0x388810[_0x589d94('0x251')]=_0x577838,_0x388810['license']=_0x25e961,_0x388810[_0x589d94('0x1dc1')]=_0x5a238b,_0x388810[_0x589d94('0xb0')]={},_0x388810[_0x589d94('0x644')]=_0x388810[_0x589d94('0x251')]&&_0x388810[_0x589d94('0x251')][_0x589d94('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x388810[_0x589d94('0x20d6')]=_0x589d94('0xdda'),_0x388810[_0x589d94('0x14c3')]=angular[_0x589d94('0x2e3')](_0x62c084),_0x388810['voiceRecordings']=_0x2fa97d,_0x388810[_0x589d94('0x1084')]=![];!_0x388810[_0x589d94('0x14c3')]&&(_0x388810[_0x589d94('0x14c3')]={},_0x388810[_0x589d94('0x20d6')]='VOICE.NEW_VOICERECORDING',_0x388810['newVoiceRecording']=!![]);_0x388810['addNewVoiceRecording']=_0x54ee04,_0x388810[_0x589d94('0x1430')]=_0x3c61b2,_0x388810[_0x589d94('0x1972')]=_0x3cbd94,_0x388810['getDateFromString']=_0x5201f3,_0x388810[_0x589d94('0x18e2')]=_0x4bce24;function _0x54ee04(){const _0x2e0a14=_0x589d94;_0x388810[_0x2e0a14('0x1d4a')]=[],_0xd3c1d0[_0x2e0a14('0x14c3')]['save'](_0x388810[_0x2e0a14('0x14c3')])[_0x2e0a14('0x1964')][_0x2e0a14('0x173b')](function(_0x5e0da9){const _0x278cab=_0x2e0a14;_0x388810[_0x278cab('0x1478')]['unshift'](_0x5e0da9[_0x278cab('0xf1f')]()),_0x46b19f[_0x278cab('0xdfe')]({'title':_0x278cab('0x1dfc'),'msg':_0x388810[_0x278cab('0x14c3')][_0x278cab('0x10ad')]?_0x388810[_0x278cab('0x14c3')][_0x278cab('0x10ad')]+_0x278cab('0x209a'):''}),_0x4bce24(_0x5e0da9);})['catch'](function(_0x4527a0){const _0xd6867a=_0x2e0a14;if(_0x4527a0[_0xd6867a('0x1e07')]&&_0x4527a0[_0xd6867a('0x1e07')][_0xd6867a('0x1d4a')]&&_0x4527a0[_0xd6867a('0x1e07')]['errors']['length']){_0x388810['errors']=_0x4527a0[_0xd6867a('0x1e07')][_0xd6867a('0x1d4a')]||[{'message':_0x4527a0[_0xd6867a('0x1b75')](),'type':_0xd6867a('0x14a2')}];for(let _0x1d1441=0x0;_0x1d1441<_0x4527a0[_0xd6867a('0x1e07')][_0xd6867a('0x1d4a')]['length'];_0x1d1441+=0x1){_0x46b19f[_0xd6867a('0x15aa')]({'title':_0x4527a0[_0xd6867a('0x1e07')][_0xd6867a('0x1d4a')][_0x1d1441]['type'],'msg':_0x4527a0[_0xd6867a('0x1e07')][_0xd6867a('0x1d4a')][_0x1d1441][_0xd6867a('0x67f')]});}}else _0x46b19f[_0xd6867a('0x15aa')]({'title':_0x4527a0['status']?_0xd6867a('0x137')+_0x4527a0['status']+'\x20-\x20'+_0x4527a0[_0xd6867a('0x2696')]:_0xd6867a('0x14a2'),'msg':_0x4527a0[_0xd6867a('0x1e07')]?JSON[_0xd6867a('0x100b')](_0x4527a0[_0xd6867a('0x1e07')][_0xd6867a('0x67f')]):_0x4527a0[_0xd6867a('0x1b75')]()});});}function _0x3c61b2(){const _0x21c73f=_0x589d94;_0x388810[_0x21c73f('0x1d4a')]=[],_0xd3c1d0[_0x21c73f('0x14c3')][_0x21c73f('0x1842')]({'id':_0x388810[_0x21c73f('0x14c3')]['id']},_0x388810[_0x21c73f('0x14c3')])[_0x21c73f('0x1964')][_0x21c73f('0x173b')](function(_0x469856){const _0x260d53=_0x21c73f,_0x49f306=_0x3c8d8a()[_0x260d53('0x18ab')](_0x388810['voiceRecordings'],{'id':_0x469856['id']});_0x49f306&&_0x3c8d8a()[_0x260d53('0x9ef')](_0x49f306,_0x3c8d8a()[_0x260d53('0x2114')](_0x469856[_0x260d53('0xf1f')](),_0x3c8d8a()[_0x260d53('0x1d3e')](_0x49f306))),_0x46b19f[_0x260d53('0xdfe')]({'title':_0x260d53('0x84f'),'msg':_0x388810[_0x260d53('0x14c3')][_0x260d53('0x10ad')]?_0x388810['voiceRecording'][_0x260d53('0x10ad')]+_0x260d53('0x2788'):''}),_0x4bce24(_0x469856);})['catch'](function(_0x34d89d){const _0x4b4fdc=_0x21c73f;if(_0x34d89d[_0x4b4fdc('0x1e07')]&&_0x34d89d[_0x4b4fdc('0x1e07')][_0x4b4fdc('0x1d4a')]&&_0x34d89d['data']['errors'][_0x4b4fdc('0x543')]){_0x388810[_0x4b4fdc('0x1d4a')]=_0x34d89d[_0x4b4fdc('0x1e07')][_0x4b4fdc('0x1d4a')]||[{'message':_0x34d89d[_0x4b4fdc('0x1b75')](),'type':_0x4b4fdc('0xd07')}];for(let _0x5cb9c7=0x0;_0x5cb9c7<_0x34d89d['data'][_0x4b4fdc('0x1d4a')][_0x4b4fdc('0x543')];_0x5cb9c7++){_0x46b19f[_0x4b4fdc('0x15aa')]({'title':_0x34d89d[_0x4b4fdc('0x1e07')][_0x4b4fdc('0x1d4a')][_0x5cb9c7][_0x4b4fdc('0x1810')],'msg':_0x34d89d[_0x4b4fdc('0x1e07')]['errors'][_0x5cb9c7][_0x4b4fdc('0x67f')]});}}else _0x46b19f[_0x4b4fdc('0x15aa')]({'title':_0x34d89d[_0x4b4fdc('0x276f')]?_0x4b4fdc('0x137')+_0x34d89d[_0x4b4fdc('0x276f')]+_0x4b4fdc('0x160c')+_0x34d89d[_0x4b4fdc('0x2696')]:_0x4b4fdc('0xd07'),'msg':_0x34d89d[_0x4b4fdc('0x1e07')]?JSON[_0x4b4fdc('0x100b')](_0x34d89d[_0x4b4fdc('0x1e07')][_0x4b4fdc('0x67f')]):_0x34d89d['toString']()});});}function _0x3cbd94(_0x3a65d0){const _0x50d34b=_0x589d94;_0x388810[_0x50d34b('0x1d4a')]=[];const _0x55865d=_0x1bdb7a['confirm']()[_0x50d34b('0x20d6')](_0x50d34b('0x8ef'))[_0x50d34b('0x732')](_0x50d34b('0x261e'))[_0x50d34b('0x217')](_0x50d34b('0xfdb'))['ok'](_0x50d34b('0x2373'))[_0x50d34b('0x1e1f')]('Cancel')[_0x50d34b('0x21de')](_0x3a65d0);_0x1bdb7a['show'](_0x55865d)['then'](function(){const _0x4a4a19=_0x50d34b;_0xd3c1d0[_0x4a4a19('0x14c3')][_0x4a4a19('0x15e8')]({'id':_0x388810[_0x4a4a19('0x14c3')]['id']})[_0x4a4a19('0x1964')][_0x4a4a19('0x173b')](function(){const _0x3339b0=_0x4a4a19;_0x3c8d8a()[_0x3339b0('0x1a8b')](_0x388810[_0x3339b0('0x1478')],{'id':_0x388810[_0x3339b0('0x14c3')]['id']}),_0x46b19f['success']({'title':_0x3339b0('0x7b5'),'msg':(_0x388810[_0x3339b0('0x14c3')][_0x3339b0('0x10ad')]||_0x3339b0('0x14c3'))+_0x3339b0('0x25d2')}),_0x4bce24(_0x388810[_0x3339b0('0x14c3')]);})['catch'](function(_0x21d27f){const _0x382613=_0x4a4a19;if(_0x21d27f[_0x382613('0x1e07')]&&_0x21d27f['data']['errors']&&_0x21d27f[_0x382613('0x1e07')]['errors'][_0x382613('0x543')]){_0x388810['errors']=_0x21d27f[_0x382613('0x1e07')]['errors']||[{'message':_0x21d27f[_0x382613('0x1b75')](),'type':_0x382613('0x21ea')}];for(let _0xdb3142=0x0;_0xdb3142<_0x21d27f['data'][_0x382613('0x1d4a')]['length'];_0xdb3142++){_0x46b19f[_0x382613('0x15aa')]({'title':_0x21d27f[_0x382613('0x1e07')][_0x382613('0x1d4a')][_0xdb3142][_0x382613('0x1810')],'msg':_0x21d27f[_0x382613('0x1e07')]['errors'][_0xdb3142]['message']});}}else _0x46b19f[_0x382613('0x15aa')]({'title':_0x21d27f[_0x382613('0x276f')]?'API:'+_0x21d27f[_0x382613('0x276f')]+_0x382613('0x160c')+_0x21d27f['statusText']:_0x382613('0x21ea'),'msg':_0x21d27f[_0x382613('0x1e07')]?JSON[_0x382613('0x100b')](_0x21d27f[_0x382613('0x1e07')]['message']):_0x21d27f[_0x382613('0x67f')]||_0x21d27f[_0x382613('0x1b75')]()});});},function(){});}function _0x5201f3(_0xdfa2ad){return _0xdfa2ad===null?undefined:new Date(_0xdfa2ad);}function _0x4bce24(_0x11c73e){const _0x442460=_0x589d94;_0x1bdb7a[_0x442460('0x1cf4')](_0x11c73e);}}const _0x28dd34=_0x5c738e;function _0x1279ce(){const _0x5deef6=_0x566993,_0x4b0110=this;_0x4b0110[_0x5deef6('0x14c3')]={},_0x4b0110[_0x5deef6('0xb9c')]=_0x412ce0;function _0x412ce0(_0x478d8a){const _0x986670=_0x5deef6;_0x4b0110[_0x986670('0x14c3')]=_0x478d8a;}}const _0x432a34=_0x1279ce;_0x14f656[_0x566993('0x17bb')]=['$state','$location',_0x566993('0x1fe5'),'$document',_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x14c3'),'userProfileSection'];function _0x14f656(_0x56fa0a,_0x1308ac,_0x14b690,_0x358dfa,_0xaee55,_0x3065fa,_0x1349c7,_0x2f652c,_0x5a0ba7,_0x20845d,_0x3daf8f,_0x1d9f8b){const _0x2d4225=_0x566993,_0x475c3e=this;_0x475c3e[_0x2d4225('0x155f')]=_0x20845d['getCurrentUser'](),_0x475c3e['license']=_0x3065fa,_0x475c3e['setting']=_0x1349c7,_0x475c3e[_0x2d4225('0x644')]=_0x475c3e[_0x2d4225('0x251')][_0x2d4225('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x475c3e['location']=_0x1308ac['protocol']()+_0x2d4225('0x122b')+_0x1308ac[_0x2d4225('0x4d1')](),_0x475c3e[_0x2d4225('0x14c3')]=_0x3daf8f||_0x56fa0a['params']['voiceRecording']||{},_0x475c3e[_0x2d4225('0x170e')]=_0x1d9f8b&&_0x1d9f8b[_0x2d4225('0x1a2f')]==0x1?_0x1d9f8b['rows'][0x0]:null,_0x475c3e[_0x2d4225('0x1dc1')]=_0x20845d[_0x2d4225('0xde6')](_0x475c3e[_0x2d4225('0x170e')]?_0x475c3e[_0x2d4225('0x170e')][_0x2d4225('0x1dc1')]:null),_0x475c3e['hasModulePermissions']={},_0x475c3e[_0x2d4225('0xd5f')]=_0x56fa0a['params'][_0x2d4225('0x1e66')]||0x0,_0x475c3e[_0x2d4225('0x5a4')]=_0x5a0ba7[_0x2d4225('0x2787')],_0x475c3e['gotoVoiceRecordings']=_0x39b1bc,_0x475c3e[_0x2d4225('0x1430')]=_0x33ce99;function _0x39b1bc(){const _0x343056=_0x2d4225;_0x56fa0a['go'](_0x343056('0x1faa'),{},{'reload':'app.voice.voiceRecordings'});}function _0x33ce99(){const _0x43dceb=_0x2d4225;_0x2f652c['voiceRecording'][_0x43dceb('0x1842')]({'id':_0x475c3e['voiceRecording']['id']},_0x475c3e[_0x43dceb('0x14c3')])['$promise'][_0x43dceb('0x173b')](function(){const _0x2e0e33=_0x43dceb;_0x5a0ba7[_0x2e0e33('0xdfe')]({'title':'VoiceRecording\x20updated!','msg':_0x475c3e[_0x2e0e33('0x14c3')]['name']?_0x475c3e[_0x2e0e33('0x14c3')][_0x2e0e33('0x10ad')]+'\x20has\x20been\x20updated!':''});})[_0x43dceb('0x103c')](function(_0x4f42cc){const _0x31b76a=_0x43dceb;_0x5a0ba7[_0x31b76a('0x15aa')]({'title':_0x4f42cc['status']?_0x31b76a('0x137')+_0x4f42cc['status']+_0x31b76a('0x160c')+_0x4f42cc[_0x31b76a('0x2696')]:'SYSTEM:GETvoiceRecording','msg':_0x4f42cc[_0x31b76a('0x1e07')]?JSON[_0x31b76a('0x100b')](_0x4f42cc[_0x31b76a('0x1e07')]):_0x4f42cc[_0x31b76a('0x1b75')]()});});}}const _0x3ff0cc=_0x14f656,_0x3faf6a=_0x21a6a1['p']+_0x566993('0xf91');_0x24ef1b['$inject']=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state','$mdSidenav','$mdDialog',_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x1478'),'userProfile',_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),'Auth',_0x566993('0x1a29'),'setting'];function _0x24ef1b(_0x1a16f0,_0xa8aa6c,_0x4cd7ef,_0x1f5ad1,_0xb67da2,_0x15dca5,_0x2b5862,_0x145f75,_0x3fbe23,_0x31dc43,_0x5b6d86,_0x4ac3c0,_0x9e702,_0xf49bf0,_0x28062a,_0x5263a1,_0x4bba6d){const _0x2e6618=_0x566993,_0x403b1a=this;_0x403b1a[_0x2e6618('0x1a29')]=_0x5263a1,_0x403b1a['setting']=_0x4bba6d,_0x403b1a['currentUser']=_0x28062a[_0x2e6618('0x14d4')](),_0x403b1a[_0x2e6618('0x1478')]=_0x3fbe23||{'count':0x0,'rows':[]},_0x403b1a['userProfile']=_0x31dc43,_0x403b1a[_0x2e6618('0x170e')]=_0x5b6d86&&_0x5b6d86[_0x2e6618('0x1a2f')]==0x1?_0x5b6d86['rows'][0x0]:null,_0x403b1a[_0x2e6618('0x1dc1')]=_0x28062a['parseCrudPermissions'](_0x403b1a[_0x2e6618('0x170e')]?_0x403b1a['userProfileSection'][_0x2e6618('0x1dc1')]:null),_0x403b1a[_0x2e6618('0xdf9')]=_0x2e6618('0x1478'),_0x403b1a[_0x2e6618('0x14d6')]='',_0x403b1a[_0x2e6618('0x2303')]=null,_0x403b1a[_0x2e6618('0x2ff')]=[],_0x403b1a['query']={'fields':_0x2e6618('0xbf8'),'sort':'-updatedAt','createdAt':_0x2e6618('0x1ea0'),'limit':0xa,'page':0x1},_0x403b1a[_0x2e6618('0xc49')][_0x2e6618('0xda8')]=_0x9e702[_0x2e6618('0x25c3')](),_0x403b1a[_0x2e6618('0x485')]=_0x57ef99();function _0x57ef99(){const _0x44773e=_0x2e6618;return[{'name':_0x44773e('0x1406'),'key':'createdAt','type':_0x44773e('0x22b6'),'label':_0x44773e('0x1aac')}];}_0x403b1a['editstate']=_0x1c56e0,_0x403b1a[_0x2e6618('0x1f85')]=_0x3c61b3,_0x403b1a['runtranscribesentimentruntranscribesentiment']=_0x201cae,_0x403b1a['runsentimentruntranscribesentiment']=_0x1a8831,_0x403b1a[_0x2e6618('0x760')]=_0x5f5203,_0x403b1a[_0x2e6618('0x1302')]=_0x5dd0d2,_0x403b1a['deleteconfirm']=_0x476ec0,_0x403b1a[_0x2e6618('0xdfe')]=_0xd4b7cd,_0x403b1a['getVoiceRecordings']=_0x2fe1ad,_0x403b1a[_0x2e6618('0x98c')]=_0x33aa3c,_0x403b1a[_0x2e6618('0x1972')]=_0x4522d6,_0x403b1a[_0x2e6618('0x1bc9')]=_0x2dce52,_0x403b1a[_0x2e6618('0x1fdc')]=_0x3edef4,_0x403b1a[_0x2e6618('0x1579')]=_0xe8db97,_0x403b1a[_0x2e6618('0x1ec8')]=_0x5a1545;function _0x1c56e0(_0x3f7c67){const _0x1cdadb=_0x2e6618;_0x4cd7ef['go'](_0x1cdadb('0x1359'),{'id':_0x3f7c67['id'],'voiceRecording':_0x3f7c67,'crudPermissions':_0x403b1a[_0x1cdadb('0x1dc1')]});}_0x403b1a['runtranscribeSelectedVoiceRecordings']=_0x1cbebe;function _0x3c61b3(_0x447df0){const _0x4acf2e=_0x2e6618;return _0x4ac3c0[_0x4acf2e('0x14c3')][_0x4acf2e('0x1fa5')]({'id':_0x447df0['id'],'runSentiment':![]})[_0x4acf2e('0x1964')][_0x4acf2e('0x173b')](function(_0x2c124d){const _0x5b01be=_0x4acf2e;_0xf49bf0['success']({'title':_0x145f75[_0x5b01be('0x1467')](_0x5b01be('0xf2e')),'msg':_0x145f75[_0x5b01be('0x1467')](_0x5b01be('0xf2e'))+_0x5b01be('0x17af')}),_0x447df0[_0x5b01be('0x2479')]=_0x2c124d['transcribeStatus'];})[_0x4acf2e('0x103c')](function(_0x1db5c3){const _0x4e84ce=_0x4acf2e;_0xf49bf0[_0x4e84ce('0x15aa')]({'title':_0x145f75['instant']('VOICE.RUNTRANSCRIBE_VOICERECORDING'),'msg':_0x1db5c3[_0x4e84ce('0x1e07')]?_0x1db5c3[_0x4e84ce('0x1e07')][_0x4e84ce('0x67f')]?_0x1db5c3[_0x4e84ce('0x1e07')]['message']:JSON[_0x4e84ce('0x100b')](_0x1db5c3[_0x4e84ce('0x1e07')]):_0x1db5c3['toString']()});});}function _0x1cbebe(){const _0x43ca03=_0x2e6618;_0x403b1a[_0x43ca03('0x2ff')]['forEach'](function(_0x584e01){_0x3c61b3(_0x584e01);}),_0x403b1a[_0x43ca03('0x2ff')]=[];}_0x403b1a[_0x2e6618('0xea')]=_0x268f3b;function _0x201cae(_0x527ab0){const _0x188898=_0x2e6618;return _0x4ac3c0['voiceRecording'][_0x188898('0x1fa5')]({'id':_0x527ab0['id'],'runSentiment':!![]})[_0x188898('0x1964')][_0x188898('0x173b')](function(_0x4b1f03){const _0x339b9b=_0x188898;_0xf49bf0['success']({'title':_0x145f75['instant'](_0x339b9b('0xa5f')),'msg':_0x145f75[_0x339b9b('0x1467')]('VOICE.RUNTRANSCRIBESENTIMENT_VOICERECORDING')+_0x339b9b('0x17af')}),_0x527ab0[_0x339b9b('0x2479')]=_0x4b1f03['transcribeStatus'];})[_0x188898('0x103c')](function(_0x214d75){const _0x4fb599=_0x188898;_0xf49bf0[_0x4fb599('0x15aa')]({'title':_0x145f75[_0x4fb599('0x1467')](_0x4fb599('0xa5f')),'msg':_0x214d75[_0x4fb599('0x1e07')]?_0x214d75[_0x4fb599('0x1e07')][_0x4fb599('0x67f')]?_0x214d75[_0x4fb599('0x1e07')][_0x4fb599('0x67f')]:JSON[_0x4fb599('0x100b')](_0x214d75[_0x4fb599('0x1e07')]):_0x214d75[_0x4fb599('0x1b75')]()});});}function _0x268f3b(){const _0x5548ea=_0x2e6618;_0x403b1a[_0x5548ea('0x2ff')]['forEach'](function(_0x26e001){_0x201cae(_0x26e001);}),_0x403b1a[_0x5548ea('0x2ff')]=[];}_0x403b1a['runsentimentSelectedVoiceRecordings']=_0x4045da;function _0x1a8831(_0x2b6440){const _0x38ddb0=_0x2e6618;return _0x4ac3c0[_0x38ddb0('0x14c3')][_0x38ddb0('0x1fa5')]({'id':_0x2b6440['id'],'runSentiment':!![]})[_0x38ddb0('0x1964')][_0x38ddb0('0x173b')](function(){const _0x45d9a8=_0x38ddb0;_0xf49bf0['success']({'title':_0x145f75[_0x45d9a8('0x1467')](_0x45d9a8('0x2527')),'msg':_0x145f75[_0x45d9a8('0x1467')](_0x45d9a8('0x2527'))+_0x45d9a8('0x17af')});})[_0x38ddb0('0x103c')](function(_0x5505e0){const _0x119e4a=_0x38ddb0;_0xf49bf0['error']({'title':_0x145f75['instant'](_0x119e4a('0x2527')),'msg':_0x5505e0[_0x119e4a('0x1e07')]?_0x5505e0[_0x119e4a('0x1e07')][_0x119e4a('0x67f')]?_0x5505e0[_0x119e4a('0x1e07')][_0x119e4a('0x67f')]:JSON[_0x119e4a('0x100b')](_0x5505e0[_0x119e4a('0x1e07')]):_0x5505e0[_0x119e4a('0x1b75')]()});});}function _0x4045da(){const _0x2c3b74=_0x2e6618;_0x403b1a[_0x2c3b74('0x2ff')][_0x2c3b74('0xa6a')](function(_0x6cde85){_0x1a8831(_0x6cde85);}),_0x403b1a[_0x2c3b74('0x2ff')]=[];}function _0x5f5203(_0x2ffcad){const _0x57f9ea=_0x2e6618;let _0x31f778=![];const _0x4c6c6f=!_0x3c8d8a()[_0x57f9ea('0x7d5')](_0x2ffcad[_0x57f9ea('0xddc')])?_0x2ffcad[_0x57f9ea('0xddc')]:_0x2ffcad[_0x57f9ea('0xa7b')][_0x57f9ea('0x1a4d')](_0x2ffcad['value'][_0x57f9ea('0x24a8')]('.'));return _0x31f778=_0x4c6c6f===_0x57f9ea('0x21ec')?!![]:![],_0x4ac3c0[_0x57f9ea('0x14c3')]['downloadTranscribe']({'id':_0x2ffcad['id']})['$promise'][_0x57f9ea('0x173b')](function(_0x491db0){const _0x1bca9f=_0x57f9ea,_0x4c8500=[_0x491db0[_0x1bca9f('0x1c22')]];let _0x52398d='download';const _0x3799e2=new Blob(_0x4c8500,{'type':_0x491db0['type']});_0x52398d=_0x2ffcad[_0x1bca9f('0x207c')]+_0x1bca9f('0x21b6');const _0x1f6604=window['document'][_0x1bca9f('0x1258')]('a');_0x1f6604[_0x1bca9f('0x11c3')](_0x1bca9f('0x165c'),URL[_0x1bca9f('0x1466')](_0x3799e2)),_0x1f6604[_0x1bca9f('0x11c3')](_0x1bca9f('0xfce'),_0x52398d),document[_0x1bca9f('0x1a5')][_0x1bca9f('0x1f8d')](_0x1f6604),_0x1f6604['click']();})[_0x57f9ea('0x103c')](function(_0x2d4f30){const _0x5a3e88=_0x57f9ea;if(_0x2d4f30[_0x5a3e88('0x1e07')]&&_0x2d4f30['data'][_0x5a3e88('0x1d4a')]&&_0x2d4f30[_0x5a3e88('0x1e07')][_0x5a3e88('0x1d4a')]['length'])for(let _0x4b27bc=0x0;_0x4b27bc<_0x2d4f30[_0x5a3e88('0x1e07')][_0x5a3e88('0x1d4a')]['length'];_0x4b27bc++){_0xf49bf0[_0x5a3e88('0x15aa')]({'title':_0x2d4f30[_0x5a3e88('0x1e07')][_0x5a3e88('0x1d4a')][_0x4b27bc][_0x5a3e88('0x1810')],'msg':_0x2d4f30[_0x5a3e88('0x1e07')][_0x5a3e88('0x1d4a')][_0x4b27bc]['message']});}else{if(String(_0x2d4f30[_0x5a3e88('0x276f')])===_0x5a3e88('0x197')&&_0x31f778===![])_0xf49bf0[_0x5a3e88('0x2787')]({'title':_0x145f75[_0x5a3e88('0x1467')](_0x5a3e88('0x7cc')),'msg':_0x145f75[_0x5a3e88('0x1467')]('VOICE.WRONG_EXTENSION')});else String(_0x2d4f30[_0x5a3e88('0x276f')])==='404'?_0xf49bf0[_0x5a3e88('0x2787')]({'title':_0x145f75[_0x5a3e88('0x1467')](_0x5a3e88('0x7cc')),'msg':_0x145f75[_0x5a3e88('0x1467')](_0x5a3e88('0x30e'))}):_0xf49bf0[_0x5a3e88('0x15aa')]({'title':_0x2d4f30[_0x5a3e88('0x276f')]?'API:'+_0x2d4f30[_0x5a3e88('0x276f')]+'\x20-\x20'+_0x2d4f30['statusText']:_0x5a3e88('0x14a2'),'msg':_0x2d4f30[_0x5a3e88('0x1e07')]?JSON['stringify'](_0x2d4f30[_0x5a3e88('0x1e07')][_0x5a3e88('0x67f')]):_0x2d4f30['toString']()});}});}function _0x386eed(_0x408a0d){const _0x489a71=_0x2e6618;let _0x4b31dd=_0x408a0d['lastIndexOf']('/')>-0x1?_0x408a0d['substring'](_0x408a0d[_0x489a71('0x24a8')]('/')+0x1):_0x408a0d['lastIndexOf']('\x5c')>-0x1?_0x408a0d[_0x489a71('0x1a4d')](_0x408a0d['lastIndexOf']('\x5c')+0x1):_0x408a0d;return _0x4b31dd=_0x4b31dd[_0x489a71('0x1a4d')](0x0,_0x4b31dd[_0x489a71('0x24a8')]('.')),_0x4b31dd;}function _0x5dd0d2(_0x3ce844){const _0x32b756=_0x2e6618;let _0x3f16a0=![];const _0x4108c8=!_0x3c8d8a()[_0x32b756('0x7d5')](_0x3ce844[_0x32b756('0xddc')])?_0x3ce844[_0x32b756('0xddc')]:_0x3ce844[_0x32b756('0xa7b')][_0x32b756('0x1a4d')](_0x3ce844[_0x32b756('0xa7b')][_0x32b756('0x24a8')]('.'));return _0x3f16a0=_0x4108c8==='.mp4'?!![]:![],_0x4ac3c0['voiceRecording'][_0x32b756('0xfce')]({'id':_0x3ce844['id']})[_0x32b756('0x1964')][_0x32b756('0x173b')](function(_0xdb6a36){const _0x2ee6b1=_0x32b756,_0x4132a9=[_0xdb6a36[_0x2ee6b1('0x1c22')]];let _0x502802=_0x2ee6b1('0xfce');const _0x4227b6=new Blob(_0x4132a9,{'type':_0xdb6a36[_0x2ee6b1('0x1810')]});_0x502802=_0x386eed(_0x3ce844['value'])+_0x3ce844[_0x2ee6b1('0xddc')];const _0x1f63db=window[_0x2ee6b1('0x222a')]['createElement']('a');_0x1f63db['setAttribute'](_0x2ee6b1('0x165c'),URL[_0x2ee6b1('0x1466')](_0x4227b6)),_0x1f63db[_0x2ee6b1('0x11c3')](_0x2ee6b1('0xfce'),_0x502802),document[_0x2ee6b1('0x1a5')][_0x2ee6b1('0x1f8d')](_0x1f63db),_0x1f63db[_0x2ee6b1('0x3cb')]();})['catch'](function(_0x1ebc0e){const _0x3aa45c=_0x32b756;if(_0x1ebc0e[_0x3aa45c('0x1e07')]&&_0x1ebc0e[_0x3aa45c('0x1e07')]['errors']&&_0x1ebc0e[_0x3aa45c('0x1e07')][_0x3aa45c('0x1d4a')]['length'])for(let _0x44d748=0x0;_0x44d748<_0x1ebc0e[_0x3aa45c('0x1e07')][_0x3aa45c('0x1d4a')][_0x3aa45c('0x543')];_0x44d748++){_0xf49bf0[_0x3aa45c('0x15aa')]({'title':_0x1ebc0e[_0x3aa45c('0x1e07')][_0x3aa45c('0x1d4a')][_0x44d748][_0x3aa45c('0x1810')],'msg':_0x1ebc0e[_0x3aa45c('0x1e07')][_0x3aa45c('0x1d4a')][_0x44d748][_0x3aa45c('0x67f')]});}else{if(String(_0x1ebc0e['status'])===_0x3aa45c('0x197')&&_0x3f16a0===![])_0xf49bf0['info']({'title':_0x145f75[_0x3aa45c('0x1467')](_0x3aa45c('0x7cc')),'msg':_0x145f75[_0x3aa45c('0x1467')](_0x3aa45c('0x159a'))});else String(_0x1ebc0e['status'])===_0x3aa45c('0x197')?_0xf49bf0[_0x3aa45c('0x2787')]({'title':_0x145f75[_0x3aa45c('0x1467')](_0x3aa45c('0x7cc')),'msg':_0x145f75['instant'](_0x3aa45c('0x30e'))}):_0xf49bf0['error']({'title':_0x1ebc0e[_0x3aa45c('0x276f')]?_0x3aa45c('0x137')+_0x1ebc0e['status']+_0x3aa45c('0x160c')+_0x1ebc0e['statusText']:'api.voiceRecording.save','msg':_0x1ebc0e['data']?JSON['stringify'](_0x1ebc0e['data'][_0x3aa45c('0x67f')]):_0x1ebc0e[_0x3aa45c('0x1b75')]()});}});}function _0x476ec0(_0x4f0ba5,_0x4e51f2){const _0x59d9b7=_0x2e6618,_0x17620e=_0xb67da2[_0x59d9b7('0x1d02')]()[_0x59d9b7('0x20d6')](_0x59d9b7('0x5bb')+_0x3c8d8a()['startCase'](_0x59d9b7('0x14c3'))+'?')[_0x59d9b7('0xf8b')](_0x59d9b7('0x15b9')+(_0x4f0ba5[_0x59d9b7('0x10ad')]||_0x59d9b7('0x14c3'))+_0x59d9b7('0x24be')+_0x59d9b7('0xd23'))['ariaLabel'](_0x59d9b7('0x13a2'))[_0x59d9b7('0x21de')](_0x4e51f2)['ok']('OK')[_0x59d9b7('0x1e1f')]('CANCEL');_0xb67da2[_0x59d9b7('0x1cb7')](_0x17620e)[_0x59d9b7('0x173b')](function(){_0x4522d6(_0x4f0ba5);},function(){const _0x55e82f=_0x59d9b7;console['log'](_0x55e82f('0x468'));});}let _0x3d927a=!![],_0x189c4a=0x1;_0x1a16f0[_0x2e6618('0x1bdb')]('vm.query.filter',function(_0x2af5ee,_0x21f003){const _0x68775f=_0x2e6618;_0x3d927a?_0x2b5862(function(){_0x3d927a=![];}):(!_0x21f003&&(_0x189c4a=_0x403b1a[_0x68775f('0xc49')][_0x68775f('0x182e')]),_0x2af5ee!==_0x21f003&&(_0x403b1a['query'][_0x68775f('0x182e')]=0x1),!_0x2af5ee&&(_0x403b1a[_0x68775f('0xc49')][_0x68775f('0x182e')]=_0x189c4a),_0x403b1a[_0x68775f('0x506')]());});function _0xd4b7cd(_0x8dc2fd){const _0xfa1b76=_0x2e6618;_0x403b1a[_0xfa1b76('0x1478')]=_0x8dc2fd||{'count':0x0,'rows':[]};}function _0x2fe1ad(){const _0xca15f7=_0x2e6618;_0x403b1a[_0xca15f7('0xc49')]['offset']=(_0x403b1a['query']['page']-0x1)*_0x403b1a[_0xca15f7('0xc49')][_0xca15f7('0x3e')],_0x28062a[_0xca15f7('0x1b4e')](_0xca15f7('0x79b'))?_0x403b1a[_0xca15f7('0x2219')]=_0x4ac3c0[_0xca15f7('0x14c3')]['get'](_0x403b1a[_0xca15f7('0xc49')],_0xd4b7cd)[_0xca15f7('0x1964')]:(_0x403b1a[_0xca15f7('0xc49')]['id']=_0x403b1a[_0xca15f7('0x257b')]['id'],_0x403b1a[_0xca15f7('0xc49')][_0xca15f7('0x17c9')]=_0xca15f7('0x7a3'),_0x403b1a['promise']=_0x4ac3c0[_0xca15f7('0x257b')][_0xca15f7('0x135b')](_0x403b1a[_0xca15f7('0xc49')],_0xd4b7cd)[_0xca15f7('0x1964')]);}function _0x33aa3c(_0x1d88dd,_0x34f859){const _0x57c709=_0x2e6618;_0xb67da2['show']({'controller':_0x57c709('0xe1f'),'controllerAs':'vm','templateUrl':_0x3faf6a,'parent':angular['element'](_0x15dca5[_0x57c709('0x1a5')]),'targetEvent':_0x1d88dd,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x34f859,'voiceRecordings':_0x403b1a['voiceRecordings'][_0x57c709('0x6aa')],'license':_0x403b1a[_0x57c709('0x1a29')],'setting':_0x403b1a['setting'],'crudPermissions':_0x403b1a['crudPermissions']}});}function _0x4522d6(_0x4d1ec7){const _0x41a699=_0x2e6618;_0x4ac3c0[_0x41a699('0x14c3')][_0x41a699('0x15e8')]({'id':_0x4d1ec7['id']})[_0x41a699('0x1964')]['then'](function(){const _0x3727fe=_0x41a699;_0x3c8d8a()['remove'](_0x403b1a[_0x3727fe('0x1478')][_0x3727fe('0x6aa')],{'id':_0x4d1ec7['id']}),_0x403b1a['voiceRecordings'][_0x3727fe('0x1a2f')]-=0x1,!_0x403b1a[_0x3727fe('0x1478')]['rows'][_0x3727fe('0x543')]&&_0x403b1a[_0x3727fe('0x506')](),_0xf49bf0[_0x3727fe('0xdfe')]({'title':_0x3c8d8a()[_0x3727fe('0x10e')](_0x3727fe('0x66c'))+'\x20deleted!','msg':_0x4d1ec7[_0x3727fe('0x10ad')]?_0x4d1ec7[_0x3727fe('0x10ad')]+_0x3727fe('0x25d2'):''});})[_0x41a699('0x103c')](function(_0x2e4a6a){const _0x11c2e7=_0x41a699;if(_0x2e4a6a[_0x11c2e7('0x1e07')]&&_0x2e4a6a[_0x11c2e7('0x1e07')]['errors']&&_0x2e4a6a[_0x11c2e7('0x1e07')]['errors'][_0x11c2e7('0x543')]){_0x403b1a['errors']=_0x2e4a6a['data'][_0x11c2e7('0x1d4a')]||[{'message':_0x2e4a6a['toString'](),'type':_0x11c2e7('0x1d74')}];for(let _0x1a96be=0x0;_0x1a96be<_0x2e4a6a[_0x11c2e7('0x1e07')][_0x11c2e7('0x1d4a')]['length'];_0x1a96be++){_0xf49bf0[_0x11c2e7('0x15aa')]({'title':_0x2e4a6a[_0x11c2e7('0x1e07')][_0x11c2e7('0x1d4a')][_0x1a96be][_0x11c2e7('0x1810')],'msg':_0x2e4a6a['data']['errors'][_0x1a96be][_0x11c2e7('0x67f')]});}}else _0xf49bf0[_0x11c2e7('0x15aa')]({'title':_0x2e4a6a[_0x11c2e7('0x276f')]?_0x11c2e7('0x137')+_0x2e4a6a[_0x11c2e7('0x276f')]+_0x11c2e7('0x160c')+_0x2e4a6a['statusText']:'SYSTEM:DELETEvoiceRecording','msg':_0x2e4a6a['data']?JSON[_0x11c2e7('0x100b')](_0x2e4a6a[_0x11c2e7('0x1e07')][_0x11c2e7('0x67f')]):_0x2e4a6a['message']||_0x2e4a6a[_0x11c2e7('0x1b75')]()});});}function _0x2dce52(){const _0x25704c=_0x2e6618,_0x143134=angular[_0x25704c('0x2e3')](_0x403b1a[_0x25704c('0x2ff')]);return _0x403b1a[_0x25704c('0x2ff')]=[],_0x143134;}function _0x3edef4(_0xb62296){const _0x418d57=_0x2e6618,_0xd59800=_0xb67da2[_0x418d57('0x1d02')]()['title'](_0x418d57('0x12cb'))[_0x418d57('0xf8b')](''+_0x403b1a['selectedVoiceRecordings'][_0x418d57('0x543')]+_0x418d57('0xcb4')+_0x418d57('0xd23'))[_0x418d57('0x217')]('delete\x20VoiceRecordings')[_0x418d57('0x21de')](_0xb62296)['ok']('OK')[_0x418d57('0x1e1f')](_0x418d57('0x468'));_0xb67da2[_0x418d57('0x1cb7')](_0xd59800)['then'](function(){const _0x581893=_0x418d57;_0x403b1a[_0x581893('0x2ff')]['forEach'](function(_0x3a517c){_0x4522d6(_0x3a517c);}),_0x403b1a['selectedVoiceRecordings']=[];});}function _0xe8db97(){const _0x6fe026=_0x2e6618;_0x403b1a[_0x6fe026('0x2ff')]=[];}function _0x5a1545(){const _0x12a3b3=_0x2e6618;_0x403b1a[_0x12a3b3('0x2ff')]=_0x403b1a['voiceRecordings'][_0x12a3b3('0x6aa')];}}const _0xe203b7=_0x24ef1b,_0x5c9461=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.html/voiceQueues.html',_0x112f9b=_0x21a6a1['p']+_0x566993('0x64b'),_0x558c3d=_0x21a6a1['p']+_0x566993('0x22ba'),_0x33b51c=_0x21a6a1['p']+_0x566993('0x2179'),_0x31e2b4=_0x21a6a1['p']+_0x566993('0x2372'),_0x58c20f=_0x21a6a1['p']+_0x566993('0x770'),_0x5cae63=_0x21a6a1['p']+_0x566993('0x262a'),_0x538be4=_0x21a6a1['p']+_0x566993('0x2486'),_0x2d664f=_0x21a6a1['p']+_0x566993('0x2255'),_0x36f3c7=_0x21a6a1['p']+_0x566993('0x1f93'),_0x279203=_0x21a6a1['p']+_0x566993('0x19e9'),_0x4632eb=_0x21a6a1['p']+_0x566993('0x8'),_0x1bd7e8=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view.html',_0x1c358d=_0x21a6a1['p']+_0x566993('0x1e2b'),_0x26164e=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html/view.html',_0x528c3e=_0x21a6a1['p']+'src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies.html',_0x4908a3=_0x21a6a1['p']+_0x566993('0x146c');_0x507aac[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x507aac(_0x3eb059,_0x54fd41){const _0x3e0fa5=_0x566993;_0x3eb059[_0x3e0fa5('0x1a49')](_0x3e0fa5('0xadc'),{'abstract':!![],'url':_0x3e0fa5('0xbe0')})[_0x3e0fa5('0x1a49')]('app.voice.voiceQueues',{'url':_0x3e0fa5('0x684'),'views':{'content@app':{'templateUrl':_0x5c9461,'controller':'VoiceQueuesController\x20as\x20vm'}},'resolve':{'voiceQueues':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x22ebe0,_0x1c3891){const _0x5ca754=_0x3e0fa5;return _0x1c3891[_0x5ca754('0x1b4e')](_0x5ca754('0x79b'))?_0x22ebe0[_0x5ca754('0x155b')](_0x5ca754('0x17be'),{'fields':_0x5ca754('0x1fbe'),'type':'inbound','sort':_0x5ca754('0x1769'),'channel':'voice','limit':0xa,'offset':0x0}):_0x22ebe0['resolve'](_0x5ca754('0x14b3'),{'id':_0x1c3891['getCurrentUser']()[_0x5ca754('0x1946')],'section':_0x5ca754('0x32a'),'fields':_0x5ca754('0x1fbe'),'type':_0x5ca754('0x1755'),'sort':_0x5ca754('0x1769'),'channel':_0x5ca754('0x21a8'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3e0fa5('0x1600'),function(_0x4604bc,_0x3ebb58){const _0x387581=_0x3e0fa5;return _0x3ebb58[_0x387581('0x1b4e')](_0x387581('0x79b'))?null:_0x4604bc[_0x387581('0x155b')](_0x387581('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x3ebb58['getCurrentUser']()[_0x387581('0x1946')]});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x52ef27,_0x475e69){const _0x5f4bbc=_0x3e0fa5;return _0x475e69[_0x5f4bbc('0x1b4e')](_0x5f4bbc('0x79b'))?null:_0x52ef27['resolve'](_0x5f4bbc('0x40'),{'fields':_0x5f4bbc('0x1348'),'userProfileId':_0x475e69['getCurrentUser']()[_0x5f4bbc('0x1946')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':_0x3e0fa5('0x21a8')})['state'](_0x3e0fa5('0x14b6'),{'url':_0x3e0fa5('0xb4c'),'params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x112f9b,'controller':'VoiceQueueController\x20as\x20vm'}},'resolve':{'voiceQueue':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1caf'),function(_0x32a047,_0x162ced){const _0x229935=_0x3e0fa5;return _0x32a047[_0x229935('0x155b')](_0x229935('0x17be'),{'fields':_0x229935('0x1fbe'),'id':_0x162ced['id']});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x4dde9f,_0x486016){const _0x97515b=_0x3e0fa5;return _0x4dde9f['resolve'](_0x97515b('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x486016[_0x97515b('0x14d4')]()[_0x97515b('0x1946')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':'voice'})[_0x3e0fa5('0x1a49')]('app.voice.inboundroutes',{'url':_0x3e0fa5('0x674'),'views':{'content@app':{'templateUrl':_0x558c3d,'controller':'InboundRoutesController\x20as\x20vm'}},'resolve':{'inboundroutes':[_0x3e0fa5('0x2401'),'Auth',function(_0x343b2c,_0x540e3d){const _0x229f2c=_0x3e0fa5;return _0x540e3d[_0x229f2c('0x1b4e')](_0x229f2c('0x79b'))?_0x343b2c[_0x229f2c('0x155b')]('voiceExtension@get',{'fields':_0x229f2c('0xbdc'),'type':'inbound','sort':_0x229f2c('0x1769'),'VoiceExtensionId':_0x229f2c('0x877'),'limit':0xa,'offset':0x0}):_0x343b2c[_0x229f2c('0x155b')](_0x229f2c('0x14b3'),{'id':_0x540e3d['getCurrentUser']()[_0x229f2c('0x1946')],'section':'InboundRoutes','fields':_0x229f2c('0xbdc'),'type':_0x229f2c('0x1755'),'sort':_0x229f2c('0x1769'),'VoiceExtensionId':_0x229f2c('0x877'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x46ad90,_0x447f41){const _0x46d327=_0x3e0fa5;return _0x447f41['hasRole'](_0x46d327('0x79b'))?null:_0x46ad90['resolve']('userProfile@get',{'fields':_0x46d327('0x19dd'),'id':_0x447f41[_0x46d327('0x14d4')]()[_0x46d327('0x1946')]});}],'userProfileSection':['apiResolver',_0x3e0fa5('0x1600'),function(_0x4325d2,_0x2fe1b7){const _0x1d3b01=_0x3e0fa5;return _0x2fe1b7[_0x1d3b01('0x1b4e')](_0x1d3b01('0x79b'))?null:_0x4325d2[_0x1d3b01('0x155b')](_0x1d3b01('0x40'),{'fields':_0x1d3b01('0x1348'),'userProfileId':_0x2fe1b7[_0x1d3b01('0x14d4')]()[_0x1d3b01('0x1946')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x9d1'),{'url':_0x3e0fa5('0xb4c'),'params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x33b51c,'controller':_0x3e0fa5('0x26e5')}},'resolve':{'inboundroute':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1caf'),function(_0x263314,_0x130072){const _0x3a183c=_0x3e0fa5;return _0x263314[_0x3a183c('0x155b')]('voiceExtension@get',{'fields':_0x3a183c('0xbdc'),'id':_0x130072['id']});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x4065ff,_0x200304){const _0x6f7592=_0x3e0fa5;return _0x4065ff[_0x6f7592('0x155b')](_0x6f7592('0x40'),{'fields':_0x6f7592('0x1348'),'userProfileId':_0x200304[_0x6f7592('0x14d4')]()[_0x6f7592('0x1946')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x533'),{'url':_0x3e0fa5('0x220'),'views':{'content@app':{'templateUrl':_0x31e2b4,'controller':_0x3e0fa5('0xa65')}},'resolve':{'outboundroutes':['apiResolver',_0x3e0fa5('0x1600'),function(_0x545d0e,_0xa78f42){const _0x15cb87=_0x3e0fa5;return _0xa78f42[_0x15cb87('0x1b4e')](_0x15cb87('0x79b'))?_0x545d0e['resolve']('voiceExtension@get',{'fields':_0x15cb87('0x599'),'type':'outbound','sort':_0x15cb87('0x1769'),'VoiceExtensionId':_0x15cb87('0x877'),'limit':0xa,'offset':0x0}):_0x545d0e[_0x15cb87('0x155b')]('userProfile@getResources',{'id':_0xa78f42[_0x15cb87('0x14d4')]()[_0x15cb87('0x1946')],'section':_0x15cb87('0xf0b'),'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','type':'outbound','sort':_0x15cb87('0x1769'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0xdf29ab,_0x42f278){const _0x4933d8=_0x3e0fa5;return _0x42f278[_0x4933d8('0x1b4e')](_0x4933d8('0x79b'))?null:_0xdf29ab[_0x4933d8('0x155b')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x42f278[_0x4933d8('0x14d4')]()[_0x4933d8('0x1946')]});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x497ab6,_0x27f133){const _0x9b0bf3=_0x3e0fa5;return _0x27f133[_0x9b0bf3('0x1b4e')](_0x9b0bf3('0x79b'))?null:_0x497ab6[_0x9b0bf3('0x155b')](_0x9b0bf3('0x40'),{'fields':_0x9b0bf3('0x1348'),'userProfileId':_0x27f133[_0x9b0bf3('0x14d4')]()[_0x9b0bf3('0x1946')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x713'),{'url':_0x3e0fa5('0xb4c'),'params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x58c20f,'controller':_0x3e0fa5('0x10fa')}},'resolve':{'outboundroute':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1caf'),function(_0x36bb13,_0x211441){const _0x161720=_0x3e0fa5;return _0x36bb13[_0x161720('0x155b')](_0x161720('0x2288'),{'fields':_0x161720('0x599'),'id':_0x211441['id']});}],'userProfileSection':['apiResolver',_0x3e0fa5('0x1600'),function(_0x3c299f,_0x942aab){const _0x3938b5=_0x3e0fa5;return _0x3c299f[_0x3938b5('0x155b')](_0x3938b5('0x40'),{'fields':_0x3938b5('0x1348'),'userProfileId':_0x942aab[_0x3938b5('0x14d4')]()[_0x3938b5('0x1946')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x1de7'),{'url':_0x3e0fa5('0x1ede'),'views':{'content@app':{'templateUrl':_0x5cae63,'controller':'InternalRoutesController\x20as\x20vm'}},'resolve':{'internalroutes':[_0x3e0fa5('0x2401'),'Auth',function(_0x7ea9ed,_0x5279a0){const _0x5797d4=_0x3e0fa5;return _0x5279a0['hasRole'](_0x5797d4('0x79b'))?_0x7ea9ed['resolve'](_0x5797d4('0x2288'),{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x5797d4('0x138c'),'sort':'-updatedAt','VoiceExtensionId':'null','limit':0xa,'offset':0x0}):_0x7ea9ed['resolve'](_0x5797d4('0x14b3'),{'id':_0x5279a0['getCurrentUser']()[_0x5797d4('0x1946')],'section':'InternalRoutes','fields':_0x5797d4('0xbdc'),'type':'internal','sort':_0x5797d4('0x1769'),'VoiceExtensionId':_0x5797d4('0x877'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x5eae97,_0x598ba2){const _0x2bfd51=_0x3e0fa5;return _0x598ba2[_0x2bfd51('0x1b4e')](_0x2bfd51('0x79b'))?null:_0x5eae97[_0x2bfd51('0x155b')](_0x2bfd51('0x1f20'),{'fields':_0x2bfd51('0x19dd'),'id':_0x598ba2[_0x2bfd51('0x14d4')]()[_0x2bfd51('0x1946')]});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x9d7378,_0x1e146a){const _0x8db8e=_0x3e0fa5;return _0x1e146a[_0x8db8e('0x1b4e')](_0x8db8e('0x79b'))?null:_0x9d7378['resolve'](_0x8db8e('0x40'),{'fields':_0x8db8e('0x1348'),'userProfileId':_0x1e146a['getCurrentUser']()['userProfileId'],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':'voice'})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x1a81'),{'url':_0x3e0fa5('0xb4c'),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x538be4,'controller':_0x3e0fa5('0x2014')}},'resolve':{'internalroute':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1caf'),function(_0x26235d,_0x1b6adc){const _0x350be3=_0x3e0fa5;return _0x26235d[_0x350be3('0x155b')]('voiceExtension@get',{'fields':_0x350be3('0xbdc'),'id':_0x1b6adc['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x4c783e,_0x464903){const _0x27dce3=_0x3e0fa5;return _0x4c783e['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x464903['getCurrentUser']()[_0x27dce3('0x1946')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x1f1d'),{'url':_0x3e0fa5('0x193b'),'views':{'content@app':{'templateUrl':_0x2d664f,'controller':'ContextsController\x20as\x20vm'}},'resolve':{'contexts':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x16e094,_0x550c70){const _0x24d808=_0x3e0fa5;return _0x550c70[_0x24d808('0x1b4e')](_0x24d808('0x79b'))?_0x16e094[_0x24d808('0x155b')](_0x24d808('0x1b22'),{'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','defaultEntry':_0x24d808('0xdcd'),'limit':0xa,'offset':0x0}):_0x16e094[_0x24d808('0x155b')](_0x24d808('0x14b3'),{'id':_0x550c70[_0x24d808('0x14d4')]()['userProfileId'],'section':_0x24d808('0x38a'),'fields':_0x24d808('0x2275'),'sort':'-updatedAt','defaultEntry':_0x24d808('0xdcd'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x49bb6e,_0x2b3204){const _0x269847=_0x3e0fa5;return _0x2b3204[_0x269847('0x1b4e')]('admin')?null:_0x49bb6e[_0x269847('0x155b')](_0x269847('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x2b3204[_0x269847('0x14d4')]()[_0x269847('0x1946')]});}],'userProfileSection':[_0x3e0fa5('0x2401'),'Auth',function(_0x5f459a,_0xc7017e){const _0x4d3247=_0x3e0fa5;return _0xc7017e['hasRole'](_0x4d3247('0x79b'))?null:_0x5f459a[_0x4d3247('0x155b')](_0x4d3247('0x40'),{'fields':_0x4d3247('0x1348'),'userProfileId':_0xc7017e[_0x4d3247('0x14d4')]()[_0x4d3247('0x1946')],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')]('app.voice.voicemails',{'url':_0x3e0fa5('0x2608'),'views':{'content@app':{'templateUrl':_0x36f3c7,'controller':_0x3e0fa5('0x63a')}},'resolve':{'voicemails':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0xb1949a,_0x261caf){const _0x3afdcf=_0x3e0fa5;return _0x261caf['hasRole'](_0x3afdcf('0x79b'))?_0xb1949a[_0x3afdcf('0x155b')](_0x3afdcf('0x35e'),{'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0xb1949a[_0x3afdcf('0x155b')](_0x3afdcf('0x14b3'),{'id':_0x261caf[_0x3afdcf('0x14d4')]()['userProfileId'],'section':_0x3afdcf('0x1b6'),'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','sort':_0x3afdcf('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x31ddcc,_0x391177){const _0x5cf44e=_0x3e0fa5;return _0x391177[_0x5cf44e('0x1b4e')](_0x5cf44e('0x79b'))?null:_0x31ddcc['resolve'](_0x5cf44e('0x1f20'),{'fields':_0x5cf44e('0x19dd'),'id':_0x391177[_0x5cf44e('0x14d4')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x3e0fa5('0x1600'),function(_0x27624,_0x553f4a){const _0xed68cc=_0x3e0fa5;return _0x553f4a[_0xed68cc('0x1b4e')](_0xed68cc('0x79b'))?null:_0x27624[_0xed68cc('0x155b')](_0xed68cc('0x40'),{'fields':_0xed68cc('0x1348'),'userProfileId':_0x553f4a['getCurrentUser']()[_0xed68cc('0x1946')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x3e0fa5('0x21a8')})['state'](_0x3e0fa5('0x195'),{'url':_0x3e0fa5('0xb4c'),'params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x279203,'controller':_0x3e0fa5('0x26c2')}},'resolve':{'voicemail':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1caf'),function(_0xdd796e,_0x16f787){const _0x4fabe4=_0x3e0fa5;return _0xdd796e[_0x4fabe4('0x155b')](_0x4fabe4('0x35e'),{'fields':_0x4fabe4('0x172e'),'id':_0x16f787['id']});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x2048fb,_0x1d43b4){const _0x24cb3d=_0x3e0fa5;return _0x2048fb[_0x24cb3d('0x155b')](_0x24cb3d('0x40'),{'fields':_0x24cb3d('0x1348'),'userProfileId':_0x1d43b4[_0x24cb3d('0x14d4')]()[_0x24cb3d('0x1946')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':'voice'})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0xb3a'),{'url':_0x3e0fa5('0x1df2'),'views':{'content@app':{'templateUrl':_0x4632eb,'controller':_0x3e0fa5('0x1617')}},'resolve':{'musiconholds':['apiResolver',_0x3e0fa5('0x1600'),function(_0x22cd5f,_0x45d77d){const _0x35ce2f=_0x3e0fa5;return _0x45d77d[_0x35ce2f('0x1b4e')](_0x35ce2f('0x79b'))?_0x22cd5f['resolve'](_0x35ce2f('0x2330'),{'fields':_0x35ce2f('0x81'),'defaultEntry':_0x35ce2f('0xdcd'),'limit':0xa,'offset':0x0}):_0x22cd5f[_0x35ce2f('0x155b')](_0x35ce2f('0x14b3'),{'id':_0x45d77d[_0x35ce2f('0x14d4')]()['userProfileId'],'section':_0x35ce2f('0x1139'),'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','defaultEntry':'false','limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x2ed3f8,_0x8154f3){const _0xf181c2=_0x3e0fa5;return _0x8154f3[_0xf181c2('0x1b4e')]('admin')?null:_0x2ed3f8[_0xf181c2('0x155b')](_0xf181c2('0x1f20'),{'fields':_0xf181c2('0x19dd'),'id':_0x8154f3['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x3d4acb,_0x52a0d9){const _0x183418=_0x3e0fa5;return _0x52a0d9['hasRole'](_0x183418('0x79b'))?null:_0x3d4acb['resolve'](_0x183418('0x40'),{'fields':_0x183418('0x1348'),'userProfileId':_0x52a0d9[_0x183418('0x14d4')]()[_0x183418('0x1946')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x116c'),{'url':_0x3e0fa5('0xb4c'),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1bd7e8,'controller':_0x3e0fa5('0x1dcb')}},'resolve':{'musiconhold':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1caf'),function(_0x28d9ff,_0x165c15){const _0x297d66=_0x3e0fa5;return _0x28d9ff[_0x297d66('0x155b')](_0x297d66('0x2330'),{'fields':'createdAt,updatedAt,id,name,mode,directory,application,format,sort','id':_0x165c15['id']});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x195621,_0x305563){const _0x1026a0=_0x3e0fa5;return _0x195621[_0x1026a0('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x305563[_0x1026a0('0x14d4')]()['userProfileId'],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')]('app.voice.voiceRecordings',{'url':_0x3e0fa5('0x111d'),'views':{'content@app':{'templateUrl':_0x1c358d,'controller':_0x3e0fa5('0x2707')}},'resolve':{'voiceRecordings':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),'msUtils',function(_0x1b9f3d,_0x555ab7,_0x50b016){const _0x1e8f4b=_0x3e0fa5;return _0x555ab7[_0x1e8f4b('0x1b4e')](_0x1e8f4b('0x79b'))?_0x1b9f3d[_0x1e8f4b('0x155b')]('voiceRecording@get',{'fields':_0x1e8f4b('0xbf8'),'sort':_0x1e8f4b('0x1769'),'createdAt':_0x50b016[_0x1e8f4b('0x25c3')](),'limit':0xa,'offset':0x0}):_0x1b9f3d[_0x1e8f4b('0x155b')]('userProfile@getResources',{'id':_0x555ab7[_0x1e8f4b('0x14d4')]()[_0x1e8f4b('0x1946')],'section':'VoiceRecordings','fields':_0x1e8f4b('0xbf8'),'sort':_0x1e8f4b('0x1769'),'createdAt':_0x50b016[_0x1e8f4b('0x25c3')](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x318071,_0x3b5891){const _0x445333=_0x3e0fa5;return _0x3b5891[_0x445333('0x1b4e')]('admin')?null:_0x318071['resolve'](_0x445333('0x1f20'),{'fields':_0x445333('0x19dd'),'id':_0x3b5891[_0x445333('0x14d4')]()[_0x445333('0x1946')]});}],'userProfileSection':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x4c926c,_0x2545f2){const _0x575710=_0x3e0fa5;return _0x2545f2[_0x575710('0x1b4e')](_0x575710('0x79b'))?null:_0x4c926c[_0x575710('0x155b')](_0x575710('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2545f2[_0x575710('0x14d4')]()[_0x575710('0x1946')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')]('app.voice.voiceRecordings.edit',{'url':'/:id?tab','params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x26164e,'controller':_0x3e0fa5('0xe25')}},'resolve':{'voiceRecording':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1caf'),function(_0x258a1f,_0x1d6a6e){const _0x172389=_0x3e0fa5;return _0x258a1f[_0x172389('0x155b')](_0x172389('0x1e62'),{'fields':_0x172389('0xbf8'),'id':_0x1d6a6e['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x2b8950,_0x162606){const _0x1cf0b0=_0x3e0fa5;return _0x2b8950[_0x1cf0b0('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x162606['getCurrentUser']()[_0x1cf0b0('0x1946')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x1aca'),{'url':_0x3e0fa5('0xe84'),'views':{'content@app':{'templateUrl':_0x528c3e,'controller':'ChanSpiesController\x20as\x20vm'}},'resolve':{'chanSpies':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0x334aa4,_0xfb1f3e){const _0x3dc37f=_0x3e0fa5;return _0xfb1f3e['hasRole'](_0x3dc37f('0x79b'))?_0x334aa4['resolve'](_0x3dc37f('0x166a'),{'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x334aa4['resolve']('userProfile@getResources',{'id':_0xfb1f3e[_0x3dc37f('0x14d4')]()[_0x3dc37f('0x1946')],'section':'ChanSpies','fields':_0x3dc37f('0x10d2'),'sort':_0x3dc37f('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),'Auth',function(_0x44ab36,_0x1092d7){const _0x58705e=_0x3e0fa5;return _0x1092d7[_0x58705e('0x1b4e')](_0x58705e('0x79b'))?null:_0x44ab36[_0x58705e('0x155b')](_0x58705e('0x1f20'),{'fields':_0x58705e('0x19dd'),'id':_0x1092d7[_0x58705e('0x14d4')]()[_0x58705e('0x1946')]});}],'userProfileSection':['apiResolver',_0x3e0fa5('0x1600'),function(_0x438539,_0x1ada3e){const _0x23ab24=_0x3e0fa5;return _0x1ada3e[_0x23ab24('0x1b4e')](_0x23ab24('0x79b'))?null:_0x438539['resolve']('userProfileSection@get',{'fields':_0x23ab24('0x1348'),'userProfileId':_0x1ada3e['getCurrentUser']()[_0x23ab24('0x1946')],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':_0x3e0fa5('0x21a8')})[_0x3e0fa5('0x1a49')](_0x3e0fa5('0x20ce'),{'url':_0x3e0fa5('0x4f'),'views':{'content@app':{'templateUrl':_0x4908a3,'controller':_0x3e0fa5('0x6ba')}},'resolve':{'voicePrefixes':['apiResolver','Auth',function(_0x483f72,_0x3afcc5){const _0x392645=_0x3e0fa5;return _0x3afcc5[_0x392645('0x1b4e')]('admin')?_0x483f72['resolve'](_0x392645('0x1e87'),{'fields':_0x392645('0x175c'),'limit':0xa,'offset':0x0}):_0x483f72[_0x392645('0x155b')](_0x392645('0x14b3'),{'id':_0x3afcc5['getCurrentUser']()['userProfileId'],'section':'VoicePrefixes','fields':'createdAt,updatedAt,id,name,VoiceExtensionId,callerIdAll,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x3e0fa5('0x2401'),_0x3e0fa5('0x1600'),function(_0xd729e3,_0x5216d9){const _0x588911=_0x3e0fa5;return _0x5216d9['hasRole'](_0x588911('0x79b'))?null:_0xd729e3[_0x588911('0x155b')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x5216d9['getCurrentUser']()[_0x588911('0x1946')]});}],'userProfileSection':['apiResolver',_0x3e0fa5('0x1600'),function(_0x51cfe9,_0x48e970){const _0x21faf6=_0x3e0fa5;return _0x48e970['hasRole'](_0x21faf6('0x79b'))?null:_0x51cfe9['resolve'](_0x21faf6('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x48e970[_0x21faf6('0x14d4')]()[_0x21faf6('0x1946')],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':_0x3e0fa5('0x21a8')}),_0x54fd41[_0x3e0fa5('0x1b1a')]('app/main/apps/voice');}angular[_0x566993('0x22c4')](_0x566993('0xadc'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),'md.data.table',_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),'ngAria',_0x566993('0x8a3'),_0x566993('0x1146'),'mwFormBuilder',_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),'ngEmbed',_0x566993('0x11c7'),'material.components.expansionPanels',_0x566993('0x1eab'),_0x566993('0x2392'),'app.voice.realtime'])['config'](_0x507aac)['controller']('ChanSpiesController',_0x58694d)['controller'](_0x566993('0xac7'),_0x2a9d78)[_0x566993('0x1e65')](_0x566993('0x1cf1'),_0x369b5c)[_0x566993('0x1e65')](_0x566993('0xed5'),_0xc432c1)[_0x566993('0x1e65')]('CreateOrEditInboundRouteDialogController',_0x5a2fcb)[_0x566993('0x1e65')](_0x566993('0x219a'),_0x5b4d18)[_0x566993('0x1e65')](_0x566993('0x2652'),_0x1f53c3)[_0x566993('0x1e65')](_0x566993('0x1c58'),_0x2aaa3f)[_0x566993('0x1e65')]('EditInboundAppdialDialogController',_0x4a1041)['controller'](_0x566993('0x1ff2'),_0x2b8370)[_0x566993('0x1e65')](_0x566993('0x1852'),_0x4d42de)['controller'](_0x566993('0x1e33'),_0x63ea4)[_0x566993('0x1e65')](_0x566993('0x140c'),_0x3e7bcf)['controller'](_0x566993('0x2339'),_0x27bddc)[_0x566993('0x1e65')]('EditInboundAppplaybackDialogController',_0x516ccf)[_0x566993('0x1e65')](_0x566993('0x15f7'),_0x401ca5)[_0x566993('0x1e65')](_0x566993('0xa58'),_0x5c560d)[_0x566993('0x1e65')](_0x566993('0x1525'),_0x48e0b)[_0x566993('0x1e65')](_0x566993('0x10d'),_0x40d5a4)[_0x566993('0x1e65')](_0x566993('0x17fb'),_0x4d4317)['controller'](_0x566993('0x61c'),_0x36df81)[_0x566993('0x1e65')](_0x566993('0x821'),_0x1f407b)[_0x566993('0x1e65')](_0x566993('0x2481'),_0xc9774e)[_0x566993('0x1e65')](_0x566993('0x2624'),_0x4e0fd6)['controller']('EditInternalAppcustomDialogController',_0x2f4904)[_0x566993('0x1e65')]('EditInternalAppdialDialogController',_0x2bb1a6)[_0x566993('0x1e65')](_0x566993('0x187f'),_0x338381)[_0x566993('0x1e65')](_0x566993('0x1a6'),_0x5e1076)['controller']('EditInternalApphangupDialogController',_0x50fe2c)[_0x566993('0x1e65')](_0x566993('0xa0a'),_0x11d249)[_0x566993('0x1e65')]('EditInternalAppintervalDialogController',_0x50caef)[_0x566993('0x1e65')](_0x566993('0x16f6'),_0x3f64a0)[_0x566993('0x1e65')](_0x566993('0xd2a'),_0x12c946)[_0x566993('0x1e65')](_0x566993('0x11a4'),_0x399468)[_0x566993('0x1e65')](_0x566993('0x11be'),_0x482bce)['controller'](_0x566993('0x1b79'),_0x35b159)[_0x566993('0x1e65')]('InternalRouteController',_0x18d3c0)[_0x566993('0x1e65')](_0x566993('0x2381'),_0x2556da)['controller'](_0x566993('0x1b18'),_0x1b4719)[_0x566993('0x1e65')](_0x566993('0x1eb8'),_0xfc97c5)['controller'](_0x566993('0x88b'),_0xfcf4ea)[_0x566993('0x1e65')](_0x566993('0x1d8d'),_0x5d9804)[_0x566993('0x1e65')]('MusicOnHoldsController',_0x412e71),angular[_0x566993('0x22c4')]('app.voice')[_0x566993('0x1e65')](_0x566993('0x896'),_0x536e4d)[_0x566993('0x1e65')](_0x566993('0x2f9'),_0x2002be)[_0x566993('0x1e65')](_0x566993('0x539'),_0x10f1c3)[_0x566993('0x1e65')](_0x566993('0x8a1'),_0x130024)[_0x566993('0x1e65')](_0x566993('0x74a'),_0x354d4f)[_0x566993('0x1e65')](_0x566993('0x779'),_0x19f905)[_0x566993('0x1e65')](_0x566993('0x115c'),_0x1726d7)[_0x566993('0x1e65')](_0x566993('0x1ec2'),_0x4cb5db)[_0x566993('0x1e65')](_0x566993('0x1498'),_0x5abc79)[_0x566993('0x1e65')]('VoicemailController',_0x328a85)['controller'](_0x566993('0x91a'),_0x1dfc7b)[_0x566993('0x1e65')](_0x566993('0x2202'),_0x46ca0e)['controller'](_0x566993('0x1c23'),_0x32e032)[_0x566993('0x1e65')](_0x566993('0x715'),_0x4ff027)[_0x566993('0x1e65')](_0x566993('0x22aa'),_0x575501)[_0x566993('0x1e65')](_0x566993('0xb76'),_0x47e0a4)[_0x566993('0x1e65')](_0x566993('0x101c'),_0x3912cb)[_0x566993('0x1e65')](_0x566993('0x1e2c'),_0xb7536f)[_0x566993('0x1e65')](_0x566993('0x982'),_0x4eed4a)[_0x566993('0x1e65')](_0x566993('0xe1f'),_0x28dd34)[_0x566993('0x1e65')]('VoiceRecordingSentimentStatisticsController',_0x432a34)[_0x566993('0x1e65')](_0x566993('0x114c'),_0x3ff0cc)[_0x566993('0x1e65')](_0x566993('0xb31'),_0xe203b7);const _0xe825ee=_0x21a6a1['p']+_0x566993('0x4b9'),_0x5858c8=_0x21a6a1['p']+'src/js/modules/main/apps/chat/views/chatQueues/edit/view.html/view.html',_0x55e82a=_0x21a6a1['p']+_0x566993('0x12c5'),_0xe5f784=_0x21a6a1['p']+_0x566993('0x8ce'),_0x3787f9=_0x21a6a1['p']+_0x566993('0x25da'),_0x331197=_0x21a6a1['p']+'src/js/modules/main/apps/chat/views/realtime/agents/view.html/view.html',_0x135d91=_0x21a6a1['p']+_0x566993('0x17a2');_0x40d136[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$q',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1537'),_0x566993('0x1d66'),_0x566993('0x11fa'),_0x566993('0x61d'),_0x566993('0xbd4'),'socket','toasty','helperClasses','userProfile','userProfileSection',_0x566993('0x1600'),'license','$interval'];function _0x40d136(_0x249202,_0x1136e8,_0x22dc87,_0x3981c9,_0x39a2c0,_0x1b35ce,_0x5b3737,_0x51511c,_0xa9ee71,_0x7b75c8,_0xd92c0c,_0xbc5d55,_0x483b08,_0x35814e,_0x1f4dbf,_0x13a953,_0x2d1b48,_0x21c364){const _0x454d0f=_0x566993,_0x1f13ae=this,_0x3de358=[_0x454d0f('0x1def'),_0x454d0f('0xc7a'),'lastLoginAt','lastPauseAt','pauseType',_0x454d0f('0x20a0'),'internal',_0x454d0f('0x1e8'),'chatPause',_0x454d0f('0x106'),_0x454d0f('0xf41'),_0x454d0f('0x2ea'),'whatsappPause',_0x454d0f('0x13eb'),_0x454d0f('0x67c'),_0x454d0f('0x266d'),'openchannelCapacity',_0x454d0f('0xcc8'),'smsCapacity',_0x454d0f('0x1502'),_0x454d0f('0x2761'),_0x454d0f('0x1791'),_0x454d0f('0x24df'),_0x454d0f('0x1d75'),_0x454d0f('0x1ade'),_0x454d0f('0x1932'),_0x454d0f('0x114b'),_0x454d0f('0x10ee'),'openchannelStatus','mailStatus',_0x454d0f('0x18e9'),_0x454d0f('0x14be'),'faxStatus','voiceStatus',_0x454d0f('0x2816'),_0x454d0f('0x205'),_0x454d0f('0x22a'),_0x454d0f('0x2176'),_0x454d0f('0x15b6'),'faxStatusTime','voiceStatusTime',_0x454d0f('0x172'),_0x454d0f('0x146b'),_0x454d0f('0x1fcd'),_0x454d0f('0x23ee'),_0x454d0f('0x1386')],_0x1f8b57=[_0x454d0f('0x988'),'openchannelPause',_0x454d0f('0xf41'),_0x454d0f('0x2ea'),'whatsappPause','faxPause',_0x454d0f('0x67c'),'online'];_0x1f13ae[_0x454d0f('0x155f')]=_0x13a953[_0x454d0f('0x14d4')](),_0x1f13ae[_0x454d0f('0x150')]=[_0x454d0f('0x263b'),'inuse',_0x454d0f('0xe2b'),'onhold',_0x454d0f('0x273')],_0x1f13ae['pauses']=_0x5b3737||{'count':0x0,'rows':[]},_0x1f13ae['license']=_0x2d1b48,_0x1f13ae[_0x454d0f('0x257b')]=_0x35814e,_0x1f13ae[_0x454d0f('0x170e')]=_0x1f4dbf&&_0x1f4dbf['count']==0x1?_0x1f4dbf[_0x454d0f('0x6aa')][0x0]:null,_0x1f13ae[_0x454d0f('0x1dc1')]=_0x13a953[_0x454d0f('0xde6')](_0x1f13ae[_0x454d0f('0x170e')]?_0x1f13ae[_0x454d0f('0x170e')][_0x454d0f('0x1dc1')]:null),_0x1f13ae[_0x454d0f('0x11fa')]=_0x51511c?_0x3c8d8a()[_0x454d0f('0x128')](_0x51511c['rows']?_0x51511c[_0x454d0f('0x6aa')]:[],'id'):{},_0x1f13ae[_0x454d0f('0x61d')]=_0xa9ee71?_0x3c8d8a()[_0x454d0f('0x128')](_0xa9ee71[_0x454d0f('0x6aa')]?_0xa9ee71[_0x454d0f('0x6aa')]:[],'id'):{},_0x1f13ae[_0x454d0f('0x2cb')]={},_0x1f13ae[_0x454d0f('0xda0')]=![],_0x1f13ae[_0x454d0f('0x144a')]=[],_0x1f13ae[_0x454d0f('0xa53')]={};for(const _0x43a48b in _0x1f13ae['agents']){typeof _0x1f13ae[_0x454d0f('0x11fa')][_0x43a48b]!==_0x454d0f('0x6e5')&&(_0x1f13ae[_0x454d0f('0x11fa')][_0x43a48b][_0x454d0f('0xb9c')]=!![]);}_0x1f13ae['query']={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x1f13ae['logout']=_0x9976d2,_0x1f13ae[_0x454d0f('0x1b81')]=_0x28d8b1,_0x1f13ae['pause']=_0x28a3f0,_0x1f13ae['unPause']=_0x5a811b,_0x1f13ae['showInfo']=_0x156820,_0x1f13ae[_0x454d0f('0x8da')]=_0x1b3b55,_0x1f13ae[_0x454d0f('0xc8c')]=_0x4224a9,_0x1f13ae[_0x454d0f('0x1263')]=_0x5e5e69,_0x1f13ae[_0x454d0f('0xe1')]=_0x32deef,_0x1f13ae[_0x454d0f('0x83e')]=_0x30a228,_0x1f13ae[_0x454d0f('0x689')]=_0x3b9694,_0x1f13ae['onUpdate']=_0x5250bc,_0x1f13ae[_0x454d0f('0x2535')]=_0x28be53,_0x1f13ae[_0x454d0f('0xc04')]=_0x1da54a,_0x1f13ae[_0x454d0f('0xa6f')]=_0xeb9acf,_0x1f13ae[_0x454d0f('0x195a')]=_0xeb3a43,_0xd92c0c['on'](_0x454d0f('0x1f4c'),_0x1f13ae[_0x454d0f('0x689')]),_0xd92c0c['on'](_0x454d0f('0x2048'),_0x1f13ae[_0x454d0f('0x2805')]),_0xd92c0c['on'](_0x454d0f('0x1bd5'),_0x1f13ae['onConnect']),_0xd92c0c['on'](_0x454d0f('0xa73'),_0x1f13ae[_0x454d0f('0xa6f')]),_0x28be53();let _0x50563c=_0x21c364(function(){const _0xe2da06=_0x454d0f;_0x1f13ae[_0xe2da06('0xda0')]&&(_0x1f13ae[_0xe2da06('0xda0')]=![],_0x28be53());},0x3e7);function _0x28be53(){const _0x4ab01f=_0x454d0f;_0x1f13ae[_0x4ab01f('0xda0')]=![];const _0x155d84=_0x1136e8[_0x4ab01f('0x112e')]();_0x1f13ae[_0x4ab01f('0x2219')]=_0x155d84[_0x4ab01f('0x2219')],_0x1f13ae[_0x4ab01f('0x3b')]=[],_0x1f13ae[_0x4ab01f('0x144a')]=[],_0x3c8d8a()[_0x4ab01f('0x33d')](_0x1f13ae[_0x4ab01f('0x11fa')],function(_0x316ac4,_0x4676ef){const _0x5b4216=_0x4ab01f;_0x1f13ae[_0x5b4216('0x61d')][_0x4676ef]&&_0x3c8d8a()[_0x5b4216('0x9ef')](_0x316ac4,_0x3c8d8a()[_0x5b4216('0x2114')](_0x3c8d8a()['omit'](_0x1f13ae[_0x5b4216('0x61d')][_0x4676ef],_0x1f8b57),_0x3de358)),_0x4224a9(_0x316ac4),_0x316ac4[_0x5b4216('0xc7a')]?(_0x1f13ae[_0x5b4216('0x3b')][_0x5b4216('0x18bb')](_0x316ac4),_0x1f13ae[_0x5b4216('0xa53')][_0x316ac4[_0x5b4216('0x138c')]]=_0x4676ef):_0x316ac4[_0x5b4216('0x1cd8')]=_0x3c8d8a()['toNumber'](_0x156524()()[_0x5b4216('0xddc')]('x'));});_0x1f13ae[_0x4ab01f('0xc49')][_0x4ab01f('0x1f52')]&&_0x3c8d8a()['remove'](_0x1f13ae[_0x4ab01f('0x3b')],function(_0x27b0ba){const _0x3f30a7=_0x4ab01f;return _0x27b0ba[_0x3f30a7('0xd7e')]!==_0x1f13ae[_0x3f30a7('0xc49')][_0x3f30a7('0x1f52')];});_0x1f13ae[_0x4ab01f('0xc49')]['pauseTypeFilter']&&_0x3c8d8a()[_0x4ab01f('0x1a8b')](_0x1f13ae[_0x4ab01f('0x3b')],function(_0x21e737){const _0x429442=_0x4ab01f;return _0x21e737[_0x429442('0xd63')]!==_0x1f13ae[_0x429442('0xc49')][_0x429442('0x6a')];});_0x1f13ae[_0x4ab01f('0xc49')][_0x4ab01f('0x278d')]&&_0x3c8d8a()[_0x4ab01f('0x1a8b')](_0x1f13ae[_0x4ab01f('0x3b')],function(_0x1becda){const _0x34ea44=_0x4ab01f;return _0x1becda[_0x34ea44('0x572')][_0x34ea44('0x1e68')]()[_0x34ea44('0x2087')](_0x1f13ae[_0x34ea44('0xc49')][_0x34ea44('0x278d')][_0x34ea44('0x1e68')]())<0x0;});_0x1f13ae[_0x4ab01f('0x3b')]=_0x240d77(_0x1f13ae['filteredAgents']);const _0x5487e8=(_0x1f13ae[_0x4ab01f('0xc49')][_0x4ab01f('0x182e')]-0x1)*_0x1f13ae['query'][_0x4ab01f('0x3e')];_0x1f13ae['paginatedAgents']=_0x3c8d8a()['drop'](_0x1f13ae['filteredAgents'],_0x5487e8)[_0x4ab01f('0x2456')](0x0,_0x1f13ae[_0x4ab01f('0xc49')][_0x4ab01f('0x3e')]);for(let _0x1c12a7=0x0;_0x1c12a7<_0x1f13ae[_0x4ab01f('0x2cb')]['length'];_0x1c12a7+=0x1){_0x1f13ae[_0x4ab01f('0x144a')][_0x4ab01f('0x18bb')](_0x1f13ae[_0x4ab01f('0x2cb')][_0x1c12a7]['id']);}_0x155d84[_0x4ab01f('0x155b')](),_0x1f13ae[_0x4ab01f('0xda0')]=!![];}function _0x3b9694(_0x1e9863){const _0x5183c3=_0x454d0f;_0x1f13ae[_0x5183c3('0x11fa')][_0x1e9863['id']]&&(_0x3c8d8a()[_0x5183c3('0x9ef')](_0x1f13ae[_0x5183c3('0x11fa')][_0x1e9863['id']],_0x3c8d8a()[_0x5183c3('0x2114')](_0x3c8d8a()[_0x5183c3('0x2797')](_0x1e9863,_0x1f8b57),_0x3de358)),_0x3c8d8a()[_0x5183c3('0x9ef')](_0x1f13ae[_0x5183c3('0x61d')][_0x1e9863['id']],_0x3c8d8a()['pick'](_0x3c8d8a()[_0x5183c3('0x2797')](_0x1e9863,_0x1f8b57),_0x3de358)),_0x4224a9(_0x1f13ae[_0x5183c3('0x11fa')][_0x1e9863['id']]));}function _0x5250bc(_0x31cbbc){const _0x3f2fb4=_0x454d0f;_0x1f13ae[_0x3f2fb4('0x11fa')][_0x31cbbc['id']]&&(_0x3c8d8a()[_0x3f2fb4('0x9ef')](_0x1f13ae[_0x3f2fb4('0x11fa')][_0x31cbbc['id']],_0x3c8d8a()['pick'](_0x31cbbc,_0x3de358)),_0x3c8d8a()[_0x3f2fb4('0x9ef')](_0x1f13ae['rpcAgents'][_0x31cbbc['id']],_0x3c8d8a()[_0x3f2fb4('0x2114')](_0x31cbbc,_0x3de358)),_0x31cbbc[_0x3f2fb4('0x20a0')]&&(_0x1f13ae[_0x3f2fb4('0x11fa')][_0x31cbbc['id']][_0x3f2fb4('0x1cd8')]=_0x31cbbc[_0x3f2fb4('0x20a0')],_0x1f13ae['rpcAgents'][_0x31cbbc['id']][_0x3f2fb4('0x1cd8')]=_0x31cbbc['lastPauseAt']),_0x4224a9(_0x1f13ae[_0x3f2fb4('0x11fa')][_0x31cbbc['id']]));}function _0x1da54a(_0x575e9a){const _0x5c12ef=_0x454d0f;_0x1f13ae[_0x5c12ef('0x11fa')][_0x1f13ae[_0x5c12ef('0xa53')][_0x575e9a[_0x5c12ef('0x203b')]]]&&(_0x3c8d8a()[_0x5c12ef('0x9ef')](_0x1f13ae['agents'][_0x1f13ae[_0x5c12ef('0xa53')][_0x575e9a[_0x5c12ef('0x203b')]]],_0x3c8d8a()[_0x5c12ef('0x2114')](_0x575e9a,[_0x5c12ef('0x172'),_0x5c12ef('0x146b')])),_0x3c8d8a()[_0x5c12ef('0x9ef')](_0x1f13ae[_0x5c12ef('0x61d')][_0x1f13ae['agentInternal'][_0x575e9a[_0x5c12ef('0x203b')]]],_0x3c8d8a()[_0x5c12ef('0x2114')](_0x575e9a,['queue','destconnectedlinenum'])));}function _0xeb9acf(_0x4a9dbf){const _0x36bca1=_0x454d0f;_0x1f13ae['agents'][_0x1f13ae['agentInternal'][_0x4a9dbf[_0x36bca1('0x203b')]]]&&(_0x1f13ae[_0x36bca1('0x11fa')][_0x1f13ae[_0x36bca1('0xa53')][_0x4a9dbf[_0x36bca1('0x203b')]]]=_0x3c8d8a()[_0x36bca1('0x2797')](_0x1f13ae[_0x36bca1('0x11fa')][_0x1f13ae[_0x36bca1('0xa53')][_0x4a9dbf['destaccountcode']]],['queue',_0x36bca1('0x146b')]),_0x1f13ae[_0x36bca1('0x61d')][_0x1f13ae[_0x36bca1('0xa53')][_0x4a9dbf[_0x36bca1('0x203b')]]]=_0x3c8d8a()[_0x36bca1('0x2797')](_0x1f13ae[_0x36bca1('0x61d')][_0x1f13ae[_0x36bca1('0xa53')][_0x4a9dbf['destaccountcode']]],[_0x36bca1('0x172'),'destconnectedlinenum']));}function _0x9976d2(_0x463b1f){const _0x636280=_0x454d0f;return _0x7b75c8[_0x636280('0x166f')][_0x636280('0x1037')]({'id':_0x463b1f['id'],'device':_0x636280('0x12a7'),'agent_id':_0x463b1f['id'],'agent_name':_0x463b1f['name']})[_0x636280('0x1964')][_0x636280('0x173b')](function(){const _0x38fccd=_0x636280;_0xbc5d55[_0x38fccd('0xdfe')]({'title':'Agent\x20logout','msg':_0x463b1f['fullname']+'\x20\x20properly\x20logout'}),_0x1f13ae[_0x38fccd('0x11fa')][_0x463b1f['id']]&&(_0x1f13ae[_0x38fccd('0x11fa')][_0x463b1f['id']][_0x38fccd('0xc7a')]=![]),_0x1f13ae[_0x38fccd('0x61d')][_0x463b1f['id']]&&(_0x1f13ae['rpcAgents'][_0x463b1f['id']][_0x38fccd('0xc7a')]=![]),_0x28be53();})[_0x636280('0x103c')](function(_0x154a86){const _0x50e9f3=_0x636280;_0xbc5d55[_0x50e9f3('0x15aa')]({'title':_0x154a86[_0x50e9f3('0x276f')]?_0x50e9f3('0x137')+_0x154a86['status']+'\x20-\x20'+_0x154a86['statusText']:'api.staff.save','msg':_0x154a86['data']?JSON['stringify'](_0x154a86['data'][_0x50e9f3('0x67f')]):_0x154a86[_0x50e9f3('0x1b75')]()});});}function _0x28a3f0(_0x35626b,_0xc1d217){const _0x2d86b1=_0x454d0f;return _0x7b75c8[_0x2d86b1('0x166f')][_0x2d86b1('0x1751')]({'id':_0x35626b['id'],'type':_0xc1d217})['$promise'][_0x2d86b1('0x173b')](function(_0x1c82a6){const _0x39d28d=_0x2d86b1;_0x1f13ae[_0x39d28d('0x11fa')][_0x35626b['id']]&&_0x3c8d8a()[_0x39d28d('0x9ef')](_0x1f13ae[_0x39d28d('0x11fa')][_0x35626b['id']],_0x3c8d8a()[_0x39d28d('0x2114')](_0x1c82a6,_0x3de358)),_0x1f13ae[_0x39d28d('0x61d')][_0x35626b['id']]&&_0x3c8d8a()[_0x39d28d('0x9ef')](_0x1f13ae[_0x39d28d('0x61d')][_0x35626b['id']],_0x3c8d8a()[_0x39d28d('0x2114')](_0x1c82a6,_0x3de358)),_0x4224a9(_0x1f13ae[_0x39d28d('0x11fa')][_0x35626b['id']]);})['catch'](function(_0x4f5633){const _0x440a69=_0x2d86b1;_0xbc5d55['error']({'title':_0x4f5633['status']?_0x440a69('0x137')+_0x4f5633[_0x440a69('0x276f')]+_0x440a69('0x160c')+_0x4f5633[_0x440a69('0x2696')]:_0x440a69('0x1e36'),'msg':_0x4f5633[_0x440a69('0x1e07')]?JSON['stringify'](_0x4f5633[_0x440a69('0x1e07')]['message']):_0x4f5633['toString']()});});}function _0x5a811b(_0x24ae5c){const _0x408ddc=_0x454d0f;return _0x7b75c8[_0x408ddc('0x166f')]['unpause']({'id':_0x24ae5c['id']})[_0x408ddc('0x1964')][_0x408ddc('0x173b')](function(_0x242a69){const _0x366491=_0x408ddc;_0x1f13ae[_0x366491('0x11fa')][_0x24ae5c['id']]&&_0x3c8d8a()[_0x366491('0x9ef')](_0x1f13ae[_0x366491('0x11fa')][_0x24ae5c['id']],_0x3c8d8a()[_0x366491('0x2114')](_0x242a69,_0x3de358)),_0x1f13ae[_0x366491('0x61d')][_0x24ae5c['id']]&&_0x3c8d8a()[_0x366491('0x9ef')](_0x1f13ae[_0x366491('0x61d')][_0x24ae5c['id']],_0x3c8d8a()['pick'](_0x242a69,_0x3de358)),_0x4224a9(_0x1f13ae[_0x366491('0x11fa')][_0x24ae5c['id']]);})[_0x408ddc('0x103c')](function(_0x55e3de){const _0x5aee1d=_0x408ddc;_0xbc5d55[_0x5aee1d('0x15aa')]({'title':_0x55e3de['status']?_0x5aee1d('0x137')+_0x55e3de[_0x5aee1d('0x276f')]+_0x5aee1d('0x160c')+_0x55e3de[_0x5aee1d('0x2696')]:_0x5aee1d('0x1e36'),'msg':_0x55e3de[_0x5aee1d('0x1e07')]?JSON['stringify'](_0x55e3de[_0x5aee1d('0x1e07')][_0x5aee1d('0x67f')]):_0x55e3de[_0x5aee1d('0x1b75')]()});});}function _0x156820(_0x293089){const _0x320077=_0x454d0f;_0x3981c9['show'](_0x3981c9[_0x320077('0x5a4')]()['clickOutsideToClose'](!![])[_0x320077('0x20d6')](_0x320077('0x526'))[_0x320077('0xf8b')](_0x320077('0x22f0'))['ok']('Ok')[_0x320077('0x21de')](_0x293089));}function _0x28d8b1(_0x4d20b3,_0x225c6e){const _0x7c11b8=_0x454d0f;_0x3981c9[_0x7c11b8('0x1cb7')]({'controller':_0x7c11b8('0xfba'),'controllerAs':'vm','templateUrl':_0x66272d,'parent':angular[_0x7c11b8('0xb6d')](_0x39a2c0[_0x7c11b8('0x1a5')]),'targetEvent':_0x225c6e,'clickOutsideToClose':!![],'locals':{'agent':_0x4d20b3,'agents':[],'channel':_0x7c11b8('0x8c5'),'direction':'inbound','crudPermissions':_0x1f13ae[_0x7c11b8('0x1dc1')]}});}function _0x5e5e69(_0x53ab35){const _0x406cf9=_0x454d0f;return _0x53ab35===_0x406cf9('0x1751')||_0x53ab35===_0x406cf9('0xb3e');}function _0x32deef(_0x4ee7d5){return _0x4ee7d5==='pause';}function _0x30a228(_0x42637e){const _0x3db748=_0x454d0f;return _0x42637e===_0x3db748('0xb3e');}function _0x317e15(_0xcdd0b3){const _0x557992=_0x454d0f;return _0xcdd0b3===_0x557992('0x23b')||_0xcdd0b3===_0x557992('0x1b77')||_0xcdd0b3===_0x557992('0x1d8e')||_0xcdd0b3==='ringing'||_0x3c8d8a()['isNil'](_0xcdd0b3);}function _0x1b3b55(_0x28e100,_0x6d9238){const _0x1ca39b=_0x454d0f;if(_0x6d9238===_0x1ca39b('0x21a8')){if(_0x28e100[_0x6d9238+_0x1ca39b('0xef8')]!=='idle')return _0x28e100[_0x6d9238+_0x1ca39b('0xef8')];if(_0x28e100[_0x6d9238+_0x1ca39b('0x2408')])return _0x28e100[_0x6d9238+_0x1ca39b('0xef8')]=_0x1ca39b('0x1751'),_0x1ca39b('0x1751');return _0x1ca39b('0x23b');}else{if(_0x28e100[_0x6d9238+_0x1ca39b('0x2408')])return _0x28e100[_0x6d9238+'Status']=_0x1ca39b('0x1751'),_0x1ca39b('0x1751');return _0x28e100[_0x6d9238+_0x1ca39b('0xef8')];}}function _0x4224a9(_0x375f4c){const _0x20036e=_0x454d0f;let _0xaa4869=_0x20036e('0x1b77');if(_0x3c8d8a()[_0x20036e('0x3ff')]([_0x1b3b55(_0x375f4c,_0x20036e('0x21a8')),_0x1b3b55(_0x375f4c,'chat'),_0x1b3b55(_0x375f4c,'mail'),_0x1b3b55(_0x375f4c,_0x20036e('0xab2')),_0x1b3b55(_0x375f4c,_0x20036e('0x1a8f')),_0x1b3b55(_0x375f4c,'whatsapp'),_0x1b3b55(_0x375f4c,_0x20036e('0x16d'))],_0x5e5e69))_0xaa4869=_0x20036e('0x1751');else{if(_0x3c8d8a()[_0x20036e('0x1ec')]([_0x1b3b55(_0x375f4c,_0x20036e('0x21a8')),_0x1b3b55(_0x375f4c,_0x20036e('0x8c5')),_0x1b3b55(_0x375f4c,'mail'),_0x1b3b55(_0x375f4c,'openchannel'),_0x1b3b55(_0x375f4c,_0x20036e('0x1a8f')),_0x1b3b55(_0x375f4c,_0x20036e('0x245')),_0x1b3b55(_0x375f4c,'fax')],_0x5e5e69))_0xaa4869=_0x20036e('0xb3e');else _0x3c8d8a()['every']([_0x1b3b55(_0x375f4c,_0x20036e('0x21a8')),_0x1b3b55(_0x375f4c,_0x20036e('0x8c5')),_0x1b3b55(_0x375f4c,'mail'),_0x1b3b55(_0x375f4c,'openchannel'),_0x1b3b55(_0x375f4c,_0x20036e('0x1a8f')),_0x1b3b55(_0x375f4c,_0x20036e('0x245')),_0x1b3b55(_0x375f4c,_0x20036e('0x16d'))],_0x317e15)?_0xaa4869=_0x20036e('0x23b'):_0xaa4869=_0x20036e('0xe2b');}_0x375f4c[_0x20036e('0xd7e')]!==_0xaa4869&&(_0x375f4c[_0x20036e('0xd7e')]=_0xaa4869,_0x375f4c[_0x20036e('0xb9c')]?(_0x375f4c['init']=![],_0x375f4c[_0x20036e('0x1cd8')]=_0x5e5e69(_0xaa4869)?_0x3c8d8a()['toNumber'](_0x156524()(_0x375f4c[_0x20036e('0x20a0')])[_0x20036e('0xddc')]('x')):_0x3c8d8a()['max']([_0x375f4c['voiceStatusTime'],_0x375f4c[_0x20036e('0x2816')],_0x375f4c['mailStatusTime'],_0x375f4c[_0x20036e('0x2176')],_0x375f4c[_0x20036e('0x15b6')],_0x375f4c[_0x20036e('0x205')],_0x375f4c[_0x20036e('0xbc9')]])):_0x375f4c[_0x20036e('0x1cd8')]=_0x3c8d8a()[_0x20036e('0x1acd')](_0x156524()()[_0x20036e('0xddc')]('x')));}function _0x240d77(_0x1a8364){const _0x583af2=_0x454d0f,_0x469b0c=_0x3c8d8a()['startsWith'](_0x1f13ae[_0x583af2('0xc49')]['order'],'-')?_0x583af2('0x231d'):'asc';return _0x3c8d8a()['orderBy'](_0x1a8364,[_0x1f13ae[_0x583af2('0xc49')][_0x583af2('0x144a')][_0x583af2('0x166c')]('-','')],[_0x469b0c]);}function _0x41df82(){const _0x18cc64=_0x454d0f;_0x50563c&&(_0x21c364[_0x18cc64('0x1e1f')](_0x50563c),_0x50563c=null);}function _0xeb3a43(_0x3056e9,_0x161461){const _0x1d75d0=_0x454d0f;return _0x7b75c8['user'][_0x1d75d0('0x1842')]({'id':_0x3056e9['id']},{'screenrecording':_0x161461})[_0x1d75d0('0x1964')][_0x1d75d0('0x103c')](function(_0x1f5730){const _0xc4c8df=_0x1d75d0;_0xbc5d55[_0xc4c8df('0x15aa')]({'title':_0x1f5730[_0xc4c8df('0x276f')]?_0xc4c8df('0x137')+_0x1f5730[_0xc4c8df('0x276f')]+_0xc4c8df('0x160c')+_0x1f5730[_0xc4c8df('0x2696')]:_0xc4c8df('0x2134'),'msg':_0x1f5730['data']?JSON[_0xc4c8df('0x100b')](_0x1f5730[_0xc4c8df('0x1e07')][_0xc4c8df('0x67f')]):_0x1f5730['toString']()});});}_0x249202[_0x454d0f('0xbf6')](_0x454d0f('0x16d2'),function(){const _0x2a62cc=_0x454d0f;_0xd92c0c[_0x2a62cc('0x251c')](_0x2a62cc('0x1f4c')),_0xd92c0c[_0x2a62cc('0x251c')](_0x2a62cc('0x2048')),_0xd92c0c['removeAllListeners'](_0x2a62cc('0x1bd5')),_0xd92c0c[_0x2a62cc('0x251c')](_0x2a62cc('0xa73')),_0x41df82();});}const _0x1fb610=_0x40d136,_0x2a0924=_0x21a6a1['p']+_0x566993('0x240d'),_0x210b22=_0x21a6a1['p']+_0x566993('0x1d47');_0x3565e6[_0x566993('0x17bb')]=['$scope',_0x566993('0x24b5'),'$mdDialog','$q',_0x566993('0x1b82'),_0x566993('0x1b13'),_0x566993('0xeae'),_0x566993('0x2156'),_0x566993('0xbd4'),'socket',_0x566993('0x1558'),'userProfile',_0x566993('0x170e'),'Auth'];function _0x3565e6(_0x4d4090,_0x9df362,_0xfb4497,_0x56b90e,_0x56e8c3,_0x12aacf,_0xe3e118,_0x1c76f9,_0x1eef6c,_0x5a2e05,_0x30c95e,_0x400e0e,_0x5b0cd4,_0xc1d6ce){const _0x25ec86=_0x566993,_0x42073e=this,_0x5664f3=[_0x25ec86('0x34e'),_0x25ec86('0x825'),_0x25ec86('0x1b68'),_0x25ec86('0x157c'),_0x25ec86('0x1e8d'),_0x25ec86('0x203d'),_0x25ec86('0x67f'),'dialActive',_0x25ec86('0xa87'),_0x25ec86('0x183a'),_0x25ec86('0x1898')];_0x42073e[_0x25ec86('0x155f')]=_0xc1d6ce[_0x25ec86('0x14d4')](),_0x42073e[_0x25ec86('0x1a2f')]=_0xe3e118[_0x25ec86('0x1a2f')]?_0xe3e118[_0x25ec86('0x1a2f')]:0x0,_0x42073e[_0x25ec86('0xeae')]=_0xe3e118?_0x3c8d8a()[_0x25ec86('0x128')](_0xe3e118['rows']?_0xe3e118[_0x25ec86('0x6aa')]:[],'id'):{},_0x42073e[_0x25ec86('0x2156')]=_0x1c76f9?_0x3c8d8a()['keyBy'](_0x1c76f9[_0x25ec86('0x6aa')]?_0x1c76f9[_0x25ec86('0x6aa')]:[],'id'):{},_0x42073e[_0x25ec86('0x257b')]=_0x400e0e,_0x42073e[_0x25ec86('0x170e')]=_0x5b0cd4&&_0x5b0cd4['count']==0x1?_0x5b0cd4[_0x25ec86('0x6aa')][0x0]:null,_0x42073e[_0x25ec86('0x1dc1')]=_0xc1d6ce[_0x25ec86('0xde6')](_0x42073e['userProfileSection']?_0x42073e[_0x25ec86('0x170e')][_0x25ec86('0x1dc1')]:null);_0xc1d6ce['hasRole']('admin')?_0x42073e['query']={'type':_0x25ec86('0x1755'),'sort':_0x25ec86('0x1769'),'limit':0xa,'page':0x1}:_0x42073e[_0x25ec86('0xc49')]={'id':_0x42073e['currentUser']['id'],'channel':'chat','type':'inbound','sort':_0x25ec86('0x1769'),'limit':0xa,'page':0x1};_0x42073e[_0x25ec86('0xdfe')]=_0x121a31,_0x42073e[_0x25ec86('0x115e')]=_0x4cea2e,_0x42073e['createOrEditChatQueue']=_0x483fe4,_0x42073e[_0x25ec86('0x24f8')]=_0x447536,_0x42073e[_0x25ec86('0x578')]=_0x5c3c14,_0x42073e[_0x25ec86('0x689')]=_0x4543ad,_0x42073e['onSaveMember']=_0x46c042,_0x42073e[_0x25ec86('0xc12')]=_0x46f5e4,_0x42073e['onPause']=_0x2de891,_0x42073e[_0x25ec86('0x5')]=_0x4f26f8,_0x42073e[_0x25ec86('0x1e70')]=_0x481fe1,_0x42073e[_0x25ec86('0x2444')]=_0x226029,_0x42073e[_0x25ec86('0x144a')]=[],_0x3c8d8a()[_0x25ec86('0x33d')](_0x42073e['queues'],function(_0x40a1b7){const _0x3d3f50=_0x25ec86;_0x42073e['order'][_0x3d3f50('0x18bb')](_0x40a1b7['id']);}),_0x5a2e05['on']('chat_queue:save',_0x42073e[_0x25ec86('0x689')]),_0x5a2e05['on'](_0x25ec86('0x1546'),_0x42073e[_0x25ec86('0x6f6')]),_0x5a2e05['on'](_0x25ec86('0x5ed'),_0x42073e[_0x25ec86('0xc12')]),_0x5a2e05['on'](_0x25ec86('0x2048'),_0x42073e[_0x25ec86('0x255')]),_0x5a2e05['on'](_0x25ec86('0x22b7'),_0x42073e[_0x25ec86('0x1e70')]),_0x5a2e05['on']('userVoiceQueue:save',_0x42073e[_0x25ec86('0x5')]);function _0x226029(){const _0x6ee68e=_0x25ec86,_0x582fa9=[];return _0x3c8d8a()['forIn'](_0x42073e['queues'],function(_0x8c9d5,_0x4198c5){const _0xb5a9b3=a0_0xde5e;_0x8c9d5[_0xb5a9b3('0x1898')]=0x0,_0x8c9d5[_0xb5a9b3('0x1307')]=0x0,_0x42073e['queues'][_0x4198c5][_0xb5a9b3('0x11fa')]={},_0x582fa9[_0xb5a9b3('0x18bb')](_0x1eef6c['chatQueue'][_0xb5a9b3('0x230a')]({'id':_0x4198c5})[_0xb5a9b3('0x1964')]),_0x42073e[_0xb5a9b3('0x2156')][_0x4198c5]&&_0x3c8d8a()[_0xb5a9b3('0x9ef')](_0x8c9d5,_0x3c8d8a()['pick'](_0x42073e['rpcQueues'][_0x4198c5],_0x5664f3));}),_0x56b90e[_0x6ee68e('0x27c8')](_0x582fa9)['then'](function(_0xafacff){const _0x286405=_0x6ee68e;for(let _0x40cdb7=0x0;_0x40cdb7<_0xafacff[_0x286405('0x543')];_0x40cdb7+=0x1){for(let _0x4b84e4=0x0;_0x4b84e4<_0xafacff[_0x40cdb7][_0x286405('0x6aa')][_0x286405('0x543')];_0x4b84e4++){_0xafacff[_0x40cdb7][_0x286405('0x6aa')][_0x4b84e4]['paused']&&_0x42073e['queues'][_0xafacff[_0x40cdb7][_0x286405('0x6aa')][_0x4b84e4]['ChatQueueId']][_0x286405('0x1898')]++,_0x42073e[_0x286405('0xeae')][_0xafacff[_0x40cdb7]['rows'][_0x4b84e4][_0x286405('0xf3d')]][_0x286405('0x1307')]++,_0x42073e[_0x286405('0xeae')][_0xafacff[_0x40cdb7][_0x286405('0x6aa')][_0x4b84e4][_0x286405('0xf3d')]][_0x286405('0x11fa')][_0xafacff[_0x40cdb7][_0x286405('0x6aa')][_0x4b84e4][_0x286405('0x181c')]]=_0xafacff[_0x40cdb7][_0x286405('0x6aa')][_0x4b84e4][_0x286405('0xf3d')];}}})['catch'](function(_0x247590){const _0x309453=_0x6ee68e;console[_0x309453('0x15aa')](_0x247590);});}function _0x4543ad(_0x1aa5dc){const _0x5a3fcb=_0x25ec86;_0x42073e[_0x5a3fcb('0xeae')][_0x1aa5dc['id']]&&_0x3c8d8a()[_0x5a3fcb('0x9ef')](_0x42073e[_0x5a3fcb('0xeae')][_0x1aa5dc['id']],_0x3c8d8a()[_0x5a3fcb('0x2114')](_0x1aa5dc,_0x5664f3));}function _0x46c042(_0x3294e1){const _0x59c0c3=_0x25ec86;_0x42073e[_0x59c0c3('0xeae')][_0x3294e1[_0x59c0c3('0xf3d')]]&&_0x42073e[_0x59c0c3('0xeae')][_0x3294e1['ChatQueueId']][_0x59c0c3('0x1307')]++;}function _0x46f5e4(_0x2c528b){const _0x4aed80=_0x25ec86;_0x42073e[_0x4aed80('0xeae')][_0x2c528b[_0x4aed80('0xf3d')]]&&_0x42073e[_0x4aed80('0xeae')][_0x2c528b['ChatQueueId']][_0x4aed80('0x1307')]--;}function _0x2de891(_0x4bbe37){const _0x112275=_0x25ec86;console['log']('onPause',_0x4bbe37);if(_0x4bbe37[_0x112275('0x67c')])_0x3c8d8a()[_0x112275('0x33d')](_0x42073e['queues'],function(_0x32fe80){const _0x43e9f6=_0x112275;_0x32fe80['agents'][_0x4bbe37['id']]&&(_0x32fe80[_0x43e9f6('0x1898')]+=0x1,console[_0x43e9f6('0xe37')](_0x43e9f6('0x1751')));});else!_0x4bbe37[_0x112275('0x67c')]&&_0x3c8d8a()[_0x112275('0x33d')](_0x42073e[_0x112275('0xeae')],function(_0x5b6bfc){const _0x526624=_0x112275;_0x5b6bfc[_0x526624('0x11fa')][_0x4bbe37['id']]&&(_0x5b6bfc['paused']>0x0&&(_0x5b6bfc[_0x526624('0x1898')]-=0x1,console[_0x526624('0xe37')](_0x526624('0x9da'))));});}function _0x4f26f8(_0x184664){const _0x254f2d=_0x25ec86;console[_0x254f2d('0xe37')](_0x254f2d('0x1e15'),_0x184664),_0x42073e[_0x254f2d('0xeae')][_0x184664[_0x254f2d('0xf3d')]]&&(_0x42073e['queues'][_0x184664['ChatQueueId']][_0x254f2d('0x1307')]+=0x1,_0x42073e['queues'][_0x184664[_0x254f2d('0xf3d')]][_0x254f2d('0x11fa')][_0x184664[_0x254f2d('0x181c')]]=_0x184664[_0x254f2d('0xf3d')]);}function _0x481fe1(_0x4cda84){const _0x43233c=_0x25ec86;console['log'](_0x43233c('0x1e70'),_0x4cda84),_0x42073e['queues'][_0x4cda84[_0x43233c('0xf3d')]]&&_0x42073e[_0x43233c('0xeae')][_0x4cda84[_0x43233c('0xf3d')]][_0x43233c('0x1307')]>0x0&&(_0x42073e[_0x43233c('0xeae')][_0x4cda84['ChatQueueId']][_0x43233c('0x1307')]-=0x1,delete _0x42073e[_0x43233c('0xeae')][_0x4cda84[_0x43233c('0xf3d')]][_0x43233c('0x11fa')][_0x4cda84[_0x43233c('0x181c')]]);}let _0x4ea038=!![],_0x3d83a2=0x1;_0x4d4090[_0x25ec86('0x1bdb')]('vm.query.filter',function(_0x4d10b6,_0x14e82e){const _0x128e3e=_0x25ec86;_0x4ea038?_0x9df362(function(){_0x4ea038=![];}):(!_0x14e82e&&(_0x3d83a2=_0x42073e[_0x128e3e('0xc49')][_0x128e3e('0x182e')]),_0x4d10b6!==_0x14e82e&&(_0x42073e['query'][_0x128e3e('0x182e')]=0x1),!_0x4d10b6&&(_0x42073e[_0x128e3e('0xc49')][_0x128e3e('0x182e')]=_0x3d83a2),_0x42073e['getQueues']());});function _0x121a31(_0xb89b16){const _0x4e6e83=_0x25ec86;_0x42073e[_0x4e6e83('0x1a2f')]=_0xb89b16[_0x4e6e83('0x1a2f')],_0x42073e[_0x4e6e83('0xeae')]=_0xb89b16?_0x3c8d8a()[_0x4e6e83('0x128')](_0xb89b16[_0x4e6e83('0x6aa')]?_0xb89b16['rows']:[],'id'):{};if(_0xb89b16['rows']){_0x42073e[_0x4e6e83('0x144a')]=[];for(let _0x4383c0=0x0;_0x4383c0<_0xb89b16[_0x4e6e83('0x6aa')][_0x4e6e83('0x543')];_0x4383c0++){_0x42073e[_0x4e6e83('0x144a')]['push'](_0xb89b16[_0x4e6e83('0x6aa')][_0x4383c0]['id']);}}_0x226029();}function _0x4cea2e(){const _0x203306=_0x25ec86;_0x42073e[_0x203306('0xc49')][_0x203306('0x17f0')]=(_0x42073e[_0x203306('0xc49')][_0x203306('0x182e')]-0x1)*_0x42073e[_0x203306('0xc49')][_0x203306('0x3e')],_0xc1d6ce[_0x203306('0x1b4e')](_0x203306('0x79b'))?_0x42073e['promise']=_0x1eef6c[_0x203306('0x940')][_0x203306('0x1d97')](_0x42073e[_0x203306('0xc49')],_0x121a31)[_0x203306('0x1964')]:(_0x42073e[_0x203306('0xc49')]['id']=_0x42073e[_0x203306('0x257b')]['id'],_0x42073e[_0x203306('0xc49')][_0x203306('0x17c9')]=_0x203306('0x80a'),_0x42073e[_0x203306('0x2219')]=_0x1eef6c['userProfile']['getResources'](_0x42073e[_0x203306('0xc49')],_0x121a31)[_0x203306('0x1964')]);}function _0x483fe4(_0x2a6878,_0x14cd8f){const _0x374aa5=_0x25ec86;_0xfb4497[_0x374aa5('0x1cb7')]({'controller':_0x374aa5('0x4a8'),'controllerAs':'vm','templateUrl':_0x2a0924,'parent':angular['element'](_0x56e8c3['body']),'targetEvent':_0x2a6878,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x14cd8f,'chatQueues':_0x3c8d8a()[_0x374aa5('0xcaf')](_0x42073e[_0x374aa5('0xeae')]),'license':null,'setting':null,'crudPermissions':_0x42073e['crudPermissions']}});}function _0x447536(_0xf5548a,_0x17ecc4){const _0x96e704=_0x25ec86;_0xfb4497['show']({'controller':'ChatQueueagentaddController','controllerAs':'vm','templateUrl':_0x210b22,'parent':angular[_0x96e704('0xb6d')](_0x56e8c3[_0x96e704('0x1a5')]),'targetEvent':_0xf5548a,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x17ecc4,'chatQueues':_0x42073e[_0x96e704('0xeae')]?_0x42073e[_0x96e704('0xeae')]['rows']:[],'realtime':![],'crudPermissions':_0x42073e[_0x96e704('0x1dc1')]}});}function _0x5c3c14(_0x1f7094){const _0xcfa22c=_0x25ec86;return _0x1eef6c[_0xcfa22c('0x940')][_0xcfa22c('0x1842')](_0x1f7094)[_0xcfa22c('0x1964')][_0xcfa22c('0x173b')](function(){const _0x1b9eb8=_0xcfa22c;_0x30c95e['success']({'title':_0x1b9eb8('0x22bc'),'msg':_0x1f7094[_0x1b9eb8('0x10ad')]?_0x1f7094[_0x1b9eb8('0x10ad')]+_0x1b9eb8('0x1fd6'):''});})['catch'](function(_0x2f9955){const _0x5c7365=_0xcfa22c;_0x30c95e['error']({'title':_0x5c7365('0xb5f'),'msg':_0x2f9955['message']});});}_0x4d4090[_0x25ec86('0xbf6')]('$destroy',function(){const _0x7cb543=_0x25ec86;_0x5a2e05['removeAllListeners'](_0x7cb543('0x61b')),_0x5a2e05[_0x7cb543('0x251c')](_0x7cb543('0x5ed')),_0x5a2e05[_0x7cb543('0x251c')]('userChatQueue:save'),_0x5a2e05['removeAllListeners']('user:update'),_0x5a2e05[_0x7cb543('0x251c')]('userVoiceQueue:remove'),_0x5a2e05['removeAllListeners'](_0x7cb543('0x1379'));});}const _0x16ca96=_0x3565e6;function _0x5a89ed(){const _0x3655dd=_0x566993;return{'status':{'registered':_0x3655dd('0xdcf'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x3655dd('0xc5a'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x3655dd('0xc5a'),'unknown':_0x3655dd('0x3c7')},'state':{'unknown':_0x3655dd('0xd0a'),'not_inuse':_0x3655dd('0x1dd'),'inuse':_0x3655dd('0x2205'),'busy':_0x3655dd('0x90c'),'invalid':_0x3655dd('0xd0a'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x3655dd('0x4da'),'ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x3655dd('0x244d')},'channelStatus':{'ring':_0x3655dd('0x4da'),'up':_0x3655dd('0x6ed'),'hangup':_0x3655dd('0x1797')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x3655dd('0x6ed'),'hangup':_0x3655dd('0x1797')}};}const _0x50118f=_0x5a89ed;_0x1520fd[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x2fc')];function _0x1520fd(_0x5c1ae0,_0x38858e,_0xebcce8){const _0x3e045d=_0x566993,_0x18c085=this;_0xebcce8[_0x3e045d('0x1878')](),_0xebcce8[_0x3e045d('0x45f')](),_0x18c085[_0x3e045d('0xd5f')]=0x0;switch(_0x38858e[_0x3e045d('0x9fe')]['name']){case'app.chat.realtime.agents':_0x18c085[_0x3e045d('0xd5f')]=0x0;break;case _0x3e045d('0x1d0'):_0x18c085[_0x3e045d('0xd5f')]=0x1;break;default:_0x18c085[_0x3e045d('0xd5f')]=0x0,_0x38858e['go']('app.chat.realtime.agents');}_0x5c1ae0[_0x3e045d('0x1bdb')](_0x3e045d('0x1a1'),function(_0x385776,_0x4951b2){const _0x15ab5e=_0x3e045d;if(_0x385776!==_0x4951b2)switch(_0x385776){case 0x0:_0x38858e['go'](_0x15ab5e('0x5e9'));break;case 0x1:_0x38858e['go'](_0x15ab5e('0x1d0'));break;default:_0x38858e['go'](_0x15ab5e('0x5e9'));}});}const _0x18c666=_0x1520fd;_0x4b79c2[_0x566993('0x17bb')]=['$stateProvider'];function _0x4b79c2(_0x47b387){const _0x104a6b=_0x566993;_0x47b387[_0x104a6b('0x1a49')]('app.chat.realtime',{'url':_0x104a6b('0x213'),'views':{'content@app':{'templateUrl':_0x3787f9,'controller':_0x104a6b('0x153f')}},'resolve':{'userProfile':[_0x104a6b('0x2401'),_0x104a6b('0x1600'),function(_0xf98246,_0x464272){const _0x276769=_0x104a6b;return _0x464272[_0x276769('0x1b4e')](_0x276769('0x79b'))?null:_0xf98246[_0x276769('0x155b')](_0x276769('0x1f20'),{'fields':_0x276769('0x19dd'),'id':_0x464272['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x104a6b('0x2401'),_0x104a6b('0x1600'),function(_0x786230,_0x14b774){const _0x215d4a=_0x104a6b;return _0x14b774[_0x215d4a('0x1b4e')](_0x215d4a('0x79b'))?null:_0x786230[_0x215d4a('0x155b')](_0x215d4a('0x40'),{'fields':_0x215d4a('0x1348'),'userProfileId':_0x14b774[_0x215d4a('0x14d4')]()[_0x215d4a('0x1946')],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})['state'](_0x104a6b('0x5e9'),{'url':_0x104a6b('0x1943'),'controller':_0x104a6b('0x109a'),'templateUrl':_0x331197,'resolve':{'pauses':['apiResolver',function(_0x57d8f2){const _0x2c9512=_0x104a6b;return _0x57d8f2[_0x2c9512('0x155b')](_0x2c9512('0x176a'),{'nolimit':!![]});}],'agents':[_0x104a6b('0x2401'),_0x104a6b('0x1600'),function(_0x3d25f1,_0x462b48){const _0x3b9b7d=_0x104a6b;return _0x462b48['hasRole']('admin')?_0x3d25f1[_0x3b9b7d('0x155b')](_0x3b9b7d('0x15e6'),{'fields':_0x3b9b7d('0xd6b'),'role':'agent','sort':_0x3b9b7d('0x572'),'nolimit':!![]}):_0x3d25f1['resolve']('userProfile@getResources',{'id':_0x462b48[_0x3b9b7d('0x14d4')]()['userProfileId'],'section':_0x3b9b7d('0x1272'),'fields':_0x3b9b7d('0xd6b'),'role':_0x3b9b7d('0x7b0'),'sort':_0x3b9b7d('0x572'),'nolimit':!![]});}],'userProfile':[_0x104a6b('0x2401'),_0x104a6b('0x1600'),function(_0x444791,_0x43bfb1){const _0x5b8db2=_0x104a6b;return _0x43bfb1['hasRole'](_0x5b8db2('0x79b'))?null:_0x444791['resolve'](_0x5b8db2('0x1f20'),{'fields':_0x5b8db2('0x19dd'),'id':_0x43bfb1[_0x5b8db2('0x14d4')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x104a6b('0x1600'),function(_0x206798,_0x4928fc){const _0xf7b98f=_0x104a6b;return _0x4928fc[_0xf7b98f('0x1b4e')](_0xf7b98f('0x79b'))?null:_0x206798[_0xf7b98f('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4928fc[_0xf7b98f('0x14d4')]()[_0xf7b98f('0x1946')],'sectionId':0xca});}],'rpcAgents':[_0x104a6b('0x2401'),function(_0x3f6458){const _0x34e2f6=_0x104a6b;return _0x3f6458[_0x34e2f6('0x155b')](_0x34e2f6('0x58'));}]},'authenticate':!![],'permissionId':0x1fe})[_0x104a6b('0x1a49')](_0x104a6b('0x1d0'),{'url':_0x104a6b('0x1bb0'),'controller':_0x104a6b('0x2022'),'templateUrl':_0x135d91,'resolve':{'queues':[_0x104a6b('0x2401'),'Auth',function(_0x1f47dd,_0x372fe7){const _0x4a8934=_0x104a6b;return _0x372fe7[_0x4a8934('0x1b4e')](_0x4a8934('0x79b'))?_0x1f47dd[_0x4a8934('0x155b')](_0x4a8934('0x1971'),{'type':'inbound','sort':_0x4a8934('0x1769'),'limit':0xa,'offset':0x0}):_0x1f47dd[_0x4a8934('0x155b')]('userProfile@getResources',{'id':_0x372fe7[_0x4a8934('0x14d4')]()[_0x4a8934('0x1946')],'section':_0x4a8934('0x80a'),'channel':_0x4a8934('0x8c5'),'type':'inbound','sort':_0x4a8934('0x1769'),'limit':0xa,'page':0x1});}],'userProfile':[_0x104a6b('0x2401'),_0x104a6b('0x1600'),function(_0x1fa234,_0x18cb08){const _0x1fc24c=_0x104a6b;return _0x18cb08['hasRole'](_0x1fc24c('0x79b'))?null:_0x1fa234[_0x1fc24c('0x155b')]('userProfile@get',{'fields':_0x1fc24c('0x19dd'),'id':_0x18cb08['getCurrentUser']()[_0x1fc24c('0x1946')]});}],'userProfileSection':[_0x104a6b('0x2401'),_0x104a6b('0x1600'),function(_0x3c0803,_0x583d33){const _0x2b4228=_0x104a6b;return _0x583d33[_0x2b4228('0x1b4e')](_0x2b4228('0x79b'))?null:_0x3c0803[_0x2b4228('0x155b')](_0x2b4228('0x40'),{'fields':_0x2b4228('0x1348'),'userProfileId':_0x583d33['getCurrentUser']()[_0x2b4228('0x1946')],'sectionId':0x1f5});}],'rpcQueues':[_0x104a6b('0x2401'),function(_0xa56391){const _0x4955c1=_0x104a6b;return _0xa56391[_0x4955c1('0x155b')](_0x4955c1('0xa35'));}]},'authenticate':!![],'permissionId':0x1fe});}angular[_0x566993('0x22c4')](_0x566993('0x346'),[])[_0x566993('0xea9')](_0x4b79c2)[_0x566993('0x1e65')](_0x566993('0x21b2'),_0x1fb610)['controller']('QueuesChatRealtimeController',_0x16ca96)[_0x566993('0x235c')](_0x566993('0x1bf5'),_0x50118f)['controller'](_0x566993('0x12a2'),_0x18c666);const _0x58dc04=_0x21a6a1['p']+_0x566993('0x13f9');_0x4347f9[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),'$translate',_0x566993('0x2164'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty',_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x4347f9(_0x39fdcf,_0x57409c,_0x1e8dd6,_0x3c856b,_0x6097e,_0x207fe1,_0x43d953,_0x2b4f62,_0x2c0fa3,_0x2127f2,_0x490931,_0x27f589,_0x2a426e,_0x3c3ae4,_0x29aa58,_0x3bbc30,_0x2490c5){const _0x4d828e=_0x566993,_0x1848eb=this;_0x1848eb[_0x4d828e('0x1a29')]=_0x3bbc30,_0x1848eb[_0x4d828e('0x251')]=_0x2490c5,_0x1848eb[_0x4d828e('0x155f')]=_0x29aa58[_0x4d828e('0x14d4')](),_0x1848eb[_0x4d828e('0x2164')]=_0x2c0fa3||{'count':0x0,'rows':[]},_0x1848eb[_0x4d828e('0x257b')]=_0x2127f2,_0x1848eb[_0x4d828e('0x170e')]=_0x490931&&_0x490931['count']==0x1?_0x490931[_0x4d828e('0x6aa')][0x0]:null,_0x1848eb['crudPermissions']=_0x29aa58[_0x4d828e('0xde6')](_0x1848eb['userProfileSection']?_0x1848eb['userProfileSection']['crudPermissions']:null),_0x1848eb[_0x4d828e('0xdf9')]=_0x4d828e('0x2164'),_0x1848eb['listOrder']='',_0x1848eb[_0x4d828e('0x2303')]=null,_0x1848eb[_0x4d828e('0x6e7')]=[],_0x1848eb[_0x4d828e('0xc49')]={'fields':_0x4d828e('0xab9'),'sort':'-updatedAt','channel':_0x4d828e('0x8c5'),'limit':0xa,'page':0x1},_0x1848eb['arraystrategy']=_0x3c8d8a()[_0x4d828e('0x128')]([{'option':_0x4d828e('0x27db'),'value':_0x4d828e('0x6ac')},{'option':_0x4d828e('0xd86'),'value':'\x27rrmemory\x27'}],function(_0x1fa48a){const _0x2531cb=_0x4d828e;return _0x3c8d8a()[_0x2531cb('0x166c')](_0x1fa48a[_0x2531cb('0xa7b')],new RegExp('\x27','g'),'');}),_0x1848eb[_0x4d828e('0x222e')]=_0x58c7fb,_0x1848eb[_0x4d828e('0x17d4')]=_0x17f1bf,_0x1848eb[_0x4d828e('0x2118')]=_0x47a0ea,_0x1848eb[_0x4d828e('0x1a20')]=_0x2ec4c9,_0x1848eb[_0x4d828e('0x1c9c')]=_0xb1354e,_0x1848eb[_0x4d828e('0xdfe')]=_0x46f809,_0x1848eb[_0x4d828e('0xad4')]=_0x500bd4,_0x1848eb[_0x4d828e('0x1ad8')]=_0x87523c,_0x1848eb[_0x4d828e('0x1610')]=_0x232d34,_0x1848eb['exportSelectedChatQueues']=_0x3d9ec1,_0x1848eb['deleteSelectedChatQueues']=_0x10bc40,_0x1848eb['deselectChatQueues']=_0x34ba25,_0x1848eb[_0x4d828e('0x2249')]=_0x17ab44;function _0x58c7fb(_0x271c56){const _0x3c26b9=_0x4d828e;_0x1e8dd6['go']('app.chat.chatQueues.edit',{'id':_0x271c56['id'],'chatQueue':_0x271c56,'crudPermissions':_0x1848eb[_0x3c26b9('0x1dc1')]});}function _0x17f1bf(_0x17372,_0x536513){const _0x14e3a9=_0x4d828e;_0x6097e[_0x14e3a9('0x1cb7')]({'controller':'ChatQueueteamaddController','controllerAs':'vm','templateUrl':_0x58dc04,'parent':angular[_0x14e3a9('0xb6d')](_0x207fe1[_0x14e3a9('0x1a5')]),'targetEvent':_0x536513,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x17372,'chatQueues':_0x1848eb[_0x14e3a9('0x2164')]?_0x1848eb[_0x14e3a9('0x2164')][_0x14e3a9('0x6aa')]:[],'crudPermissions':_0x1848eb[_0x14e3a9('0x1dc1')]}});}function _0x47a0ea(_0x1c0ba6,_0x46941a){const _0x2ee9c5=_0x4d828e;_0x6097e['show']({'controller':_0x2ee9c5('0x6d6'),'controllerAs':'vm','templateUrl':_0x210b22,'parent':angular[_0x2ee9c5('0xb6d')](_0x207fe1[_0x2ee9c5('0x1a5')]),'targetEvent':_0x46941a,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x1c0ba6,'chatQueues':_0x1848eb[_0x2ee9c5('0x2164')]?_0x1848eb[_0x2ee9c5('0x2164')]['rows']:[],'crudPermissions':_0x1848eb[_0x2ee9c5('0x1dc1')],'realtime':![]}});}function _0x2ec4c9(_0x4041b3,_0x5e7504){const _0x5a2492=_0x4d828e,_0x41409c=_0x6097e[_0x5a2492('0x1d02')]()[_0x5a2492('0x20d6')](_0x5a2492('0x5bb')+_0x3c8d8a()[_0x5a2492('0x10e')]('chatQueue')+'?')[_0x5a2492('0xf8b')](_0x5a2492('0x15b9')+(_0x4041b3[_0x5a2492('0x10ad')]||_0x5a2492('0x940'))+_0x5a2492('0x24be')+_0x5a2492('0xd23'))[_0x5a2492('0x217')](_0x5a2492('0x18ea'))['targetEvent'](_0x5e7504)['ok']('OK')[_0x5a2492('0x1e1f')](_0x5a2492('0x468'));_0x6097e[_0x5a2492('0x1cb7')](_0x41409c)[_0x5a2492('0x173b')](function(){_0x232d34(_0x4041b3);},function(){const _0x3ea32c=_0x5a2492;console[_0x3ea32c('0xe37')](_0x3ea32c('0x468'));});}function _0xb1354e(){const _0x8a40d9=_0x4d828e;if(_0x29aa58['hasRole']('admin'))_0x1e8dd6['go']('app.chat.realtime.queues',{});else return _0x27f589[_0x8a40d9('0x170e')][_0x8a40d9('0x1d97')]({'userProfileId':_0x29aa58[_0x8a40d9('0x14d4')]()[_0x8a40d9('0x1946')],'sectionId':0x1fe})[_0x8a40d9('0x1964')]['then'](function(_0x35450d){const _0x489c16=_0x8a40d9,_0x2d2b40=_0x35450d&&_0x35450d['rows']?_0x35450d[_0x489c16('0x6aa')][0x0]:null;_0x2d2b40&&_0x2d2b40[_0x489c16('0x830')]?_0x1e8dd6['go'](_0x489c16('0x1d0'),{}):_0x3c3ae4[_0x489c16('0x2787')]({'title':_0x2b4f62[_0x489c16('0x1467')](_0x489c16('0x4aa')),'msg':_0x2b4f62['instant'](_0x489c16('0x7d4'))});})[_0x8a40d9('0x103c')](function(_0x34826e){const _0x321438=_0x8a40d9;_0x3c3ae4[_0x321438('0x15aa')]({'title':_0x34826e[_0x321438('0x276f')]?_0x321438('0x137')+_0x34826e[_0x321438('0x276f')]+_0x321438('0x160c')+_0x34826e[_0x321438('0x2696')]:_0x321438('0x144d'),'msg':_0x34826e['status']?JSON['stringify'](_0x34826e[_0x321438('0x1e07')]):_0x34826e['toString']()});});}let _0x34da79=!![],_0x31450f=0x1;_0x39fdcf['$watch']('vm.query.filter',function(_0x12430b,_0x255be3){const _0x4fc36f=_0x4d828e;_0x34da79?_0x43d953(function(){_0x34da79=![];}):(!_0x255be3&&(_0x31450f=_0x1848eb[_0x4fc36f('0xc49')][_0x4fc36f('0x182e')]),_0x12430b!==_0x255be3&&(_0x1848eb[_0x4fc36f('0xc49')][_0x4fc36f('0x182e')]=0x1),!_0x12430b&&(_0x1848eb['query'][_0x4fc36f('0x182e')]=_0x31450f),_0x1848eb[_0x4fc36f('0xad4')]());});function _0x46f809(_0x5a4ea5){const _0x3891f6=_0x4d828e;_0x1848eb[_0x3891f6('0x2164')]=_0x5a4ea5||{'count':0x0,'rows':[]};}function _0x500bd4(){const _0x35ef88=_0x4d828e;_0x1848eb[_0x35ef88('0xc49')][_0x35ef88('0x17f0')]=(_0x1848eb['query'][_0x35ef88('0x182e')]-0x1)*_0x1848eb['query']['limit'],_0x29aa58[_0x35ef88('0x1b4e')]('admin')?_0x1848eb[_0x35ef88('0x2219')]=_0x27f589[_0x35ef88('0x940')][_0x35ef88('0x1d97')](_0x1848eb[_0x35ef88('0xc49')],_0x46f809)['$promise']:(_0x1848eb[_0x35ef88('0xc49')]['id']=_0x1848eb[_0x35ef88('0x257b')]['id'],_0x1848eb['query'][_0x35ef88('0x17c9')]='ChatQueues',_0x1848eb[_0x35ef88('0x2219')]=_0x27f589[_0x35ef88('0x257b')]['getResources'](_0x1848eb[_0x35ef88('0xc49')],_0x46f809)[_0x35ef88('0x1964')]);}function _0x87523c(_0x2a21b0,_0x21cb03){const _0x19964f=_0x4d828e;_0x6097e[_0x19964f('0x1cb7')]({'controller':_0x19964f('0x4a8'),'controllerAs':'vm','templateUrl':_0x2a0924,'parent':angular[_0x19964f('0xb6d')](_0x207fe1[_0x19964f('0x1a5')]),'targetEvent':_0x2a21b0,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x21cb03,'chatQueues':_0x1848eb['chatQueues'][_0x19964f('0x6aa')],'license':_0x1848eb['license'],'setting':_0x1848eb[_0x19964f('0x251')],'crudPermissions':_0x1848eb[_0x19964f('0x1dc1')]}});}function _0x232d34(_0x37d14a){const _0x33cc49=_0x4d828e;_0x27f589[_0x33cc49('0x940')][_0x33cc49('0x15e8')]({'id':_0x37d14a['id']})[_0x33cc49('0x1964')][_0x33cc49('0x173b')](function(){const _0x4da628=_0x33cc49;_0x3c8d8a()['remove'](_0x1848eb[_0x4da628('0x2164')][_0x4da628('0x6aa')],{'id':_0x37d14a['id']}),_0x1848eb['chatQueues']['count']-=0x1,!_0x1848eb['chatQueues'][_0x4da628('0x6aa')][_0x4da628('0x543')]&&_0x1848eb[_0x4da628('0xad4')](),_0x3c3ae4[_0x4da628('0xdfe')]({'title':_0x3c8d8a()[_0x4da628('0x10e')](_0x4da628('0x2836'))+'\x20deleted!','msg':_0x37d14a['name']?_0x37d14a[_0x4da628('0x10ad')]+_0x4da628('0x25d2'):''});})[_0x33cc49('0x103c')](function(_0x522fb5){const _0x49764a=_0x33cc49;if(_0x522fb5[_0x49764a('0x1e07')]&&_0x522fb5[_0x49764a('0x1e07')][_0x49764a('0x1d4a')]&&_0x522fb5[_0x49764a('0x1e07')]['errors'][_0x49764a('0x543')]){_0x1848eb[_0x49764a('0x1d4a')]=_0x522fb5['data'][_0x49764a('0x1d4a')]||[{'message':_0x522fb5['toString'](),'type':_0x49764a('0xab6')}];for(let _0x380868=0x0;_0x380868<_0x522fb5[_0x49764a('0x1e07')][_0x49764a('0x1d4a')][_0x49764a('0x543')];_0x380868++){_0x3c3ae4[_0x49764a('0x15aa')]({'title':_0x522fb5[_0x49764a('0x1e07')][_0x49764a('0x1d4a')][_0x380868][_0x49764a('0x1810')],'msg':_0x522fb5[_0x49764a('0x1e07')][_0x49764a('0x1d4a')][_0x380868][_0x49764a('0x67f')]});}}else _0x3c3ae4['error']({'title':_0x522fb5[_0x49764a('0x276f')]?_0x49764a('0x137')+_0x522fb5[_0x49764a('0x276f')]+_0x49764a('0x160c')+_0x522fb5[_0x49764a('0x2696')]:_0x49764a('0xab6'),'msg':_0x522fb5['data']?JSON[_0x49764a('0x100b')](_0x522fb5['data'][_0x49764a('0x67f')]):_0x522fb5[_0x49764a('0x67f')]||_0x522fb5[_0x49764a('0x1b75')]()});});}function _0x3d9ec1(){const _0x3e4c35=_0x4d828e,_0x41b0f1=angular['copy'](_0x1848eb[_0x3e4c35('0x6e7')]);return _0x1848eb['selectedChatQueues']=[],_0x41b0f1;}function _0x10bc40(_0x2f04da){const _0x4ada54=_0x4d828e,_0x4f666d=_0x6097e[_0x4ada54('0x1d02')]()[_0x4ada54('0x20d6')](_0x4ada54('0x265f'))[_0x4ada54('0xf8b')](_0x4ada54('0x15b9')+_0x1848eb['selectedChatQueues'][_0x4ada54('0x543')]+_0x4ada54('0xcb4')+_0x4ada54('0xd23'))['ariaLabel'](_0x4ada54('0x2562'))[_0x4ada54('0x21de')](_0x2f04da)['ok']('OK')[_0x4ada54('0x1e1f')](_0x4ada54('0x468'));_0x6097e[_0x4ada54('0x1cb7')](_0x4f666d)[_0x4ada54('0x173b')](function(){const _0x16bb74=_0x4ada54;_0x1848eb[_0x16bb74('0x6e7')]['forEach'](function(_0x586f2e){_0x232d34(_0x586f2e);}),_0x1848eb[_0x16bb74('0x6e7')]=[];});}function _0x34ba25(){_0x1848eb['selectedChatQueues']=[];}function _0x17ab44(){const _0x38dae2=_0x4d828e;_0x1848eb[_0x38dae2('0x6e7')]=_0x1848eb[_0x38dae2('0x2164')]['rows'];}}const _0x27fad1=_0x4347f9;_0x245ee7[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),'chatQueues','chatQueue',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0x245ee7(_0x1d2a75,_0x2c65e9,_0x1da262,_0x5b9293,_0x34856d,_0x1035f7,_0x34254d,_0x3c9d08,_0x41378b,_0x2502ec,_0x36cfa9,_0x2afb4d,_0x247c21,_0x48f777){const _0x5f1d0f=_0x566993,_0x1406de=this;_0x1406de['currentUser']=_0x36cfa9['getCurrentUser'](),_0x1406de[_0x5f1d0f('0x1d4a')]=[],_0x1406de['setting']=_0x247c21,_0x1406de[_0x5f1d0f('0x1a29')]=_0x2afb4d,_0x1406de[_0x5f1d0f('0x1dc1')]=_0x48f777,_0x1406de['hasModulePermissions']={},_0x1406de[_0x5f1d0f('0x644')]=_0x1406de[_0x5f1d0f('0x251')]&&_0x1406de[_0x5f1d0f('0x251')][_0x5f1d0f('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1406de[_0x5f1d0f('0x20d6')]=_0x5f1d0f('0x1e10'),_0x1406de[_0x5f1d0f('0x940')]=angular[_0x5f1d0f('0x2e3')](_0x41378b),_0x1406de[_0x5f1d0f('0x2164')]=_0x3c9d08,_0x1406de[_0x5f1d0f('0x1082')]=![];!_0x1406de[_0x5f1d0f('0x940')]&&(_0x1406de[_0x5f1d0f('0x940')]={'strategy':_0x5f1d0f('0x61'),'timeout':0xa},_0x1406de['title']='CHAT.NEW_CHATQUEUE',_0x1406de['newChatQueue']=!![]);_0x1406de['addNewChatQueue']=_0x13b949,_0x1406de[_0x5f1d0f('0x215f')]=_0x1e64c7,_0x1406de['deleteChatQueue']=_0x2930c9,_0x1406de['getDateFromString']=_0x5d518b,_0x1406de['closeDialog']=_0x42c210;function _0x13b949(){const _0x393f61=_0x5f1d0f;_0x1406de[_0x393f61('0x1d4a')]=[],_0x2502ec[_0x393f61('0x940')][_0x393f61('0x1195')](_0x1406de['chatQueue'])[_0x393f61('0x1964')][_0x393f61('0x173b')](function(_0x37d2f7){const _0x362bca=_0x393f61;_0x1406de[_0x362bca('0x2164')][_0x362bca('0x1377')](_0x37d2f7['toJSON']()),_0x34254d[_0x362bca('0xdfe')]({'title':_0x362bca('0x1bb1'),'msg':_0x1406de[_0x362bca('0x940')][_0x362bca('0x10ad')]?_0x1406de['chatQueue'][_0x362bca('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x42c210(_0x37d2f7);})[_0x393f61('0x103c')](function(_0x22b806){const _0x27e3e4=_0x393f61;if(_0x22b806[_0x27e3e4('0x1e07')]&&_0x22b806[_0x27e3e4('0x1e07')]['errors']&&_0x22b806[_0x27e3e4('0x1e07')][_0x27e3e4('0x1d4a')][_0x27e3e4('0x543')]){_0x1406de[_0x27e3e4('0x1d4a')]=_0x22b806[_0x27e3e4('0x1e07')]['errors']||[{'message':_0x22b806['toString'](),'type':'api.chatQueue.save'}];for(let _0x330310=0x0;_0x330310<_0x22b806[_0x27e3e4('0x1e07')]['errors'][_0x27e3e4('0x543')];_0x330310+=0x1){_0x34254d['error']({'title':_0x22b806[_0x27e3e4('0x1e07')][_0x27e3e4('0x1d4a')][_0x330310]['type'],'msg':_0x22b806[_0x27e3e4('0x1e07')][_0x27e3e4('0x1d4a')][_0x330310][_0x27e3e4('0x67f')]});}}else _0x34254d['error']({'title':_0x22b806[_0x27e3e4('0x276f')]?'API:'+_0x22b806[_0x27e3e4('0x276f')]+_0x27e3e4('0x160c')+_0x22b806[_0x27e3e4('0x2696')]:_0x27e3e4('0x25c8'),'msg':_0x22b806[_0x27e3e4('0x1e07')]?JSON['stringify'](_0x22b806[_0x27e3e4('0x1e07')][_0x27e3e4('0x67f')]):_0x22b806[_0x27e3e4('0x1b75')]()});});}function _0x1e64c7(){const _0x210b8f=_0x5f1d0f;_0x1406de[_0x210b8f('0x1d4a')]=[],_0x2502ec[_0x210b8f('0x940')][_0x210b8f('0x1842')]({'id':_0x1406de['chatQueue']['id']},_0x1406de[_0x210b8f('0x940')])[_0x210b8f('0x1964')][_0x210b8f('0x173b')](function(_0x2aa020){const _0xe80f68=_0x210b8f,_0x25ccce=_0x3c8d8a()[_0xe80f68('0x18ab')](_0x1406de['chatQueues'],{'id':_0x2aa020['id']});_0x25ccce&&_0x3c8d8a()['merge'](_0x25ccce,_0x3c8d8a()['pick'](_0x2aa020[_0xe80f68('0xf1f')](),_0x3c8d8a()[_0xe80f68('0x1d3e')](_0x25ccce))),_0x34254d[_0xe80f68('0xdfe')]({'title':_0xe80f68('0x18c4'),'msg':_0x1406de[_0xe80f68('0x940')][_0xe80f68('0x10ad')]?_0x1406de[_0xe80f68('0x940')]['name']+_0xe80f68('0x2788'):''}),_0x42c210(_0x2aa020);})[_0x210b8f('0x103c')](function(_0x466b18){const _0xc1df74=_0x210b8f;if(_0x466b18[_0xc1df74('0x1e07')]&&_0x466b18['data']['errors']&&_0x466b18[_0xc1df74('0x1e07')][_0xc1df74('0x1d4a')][_0xc1df74('0x543')]){_0x1406de[_0xc1df74('0x1d4a')]=_0x466b18[_0xc1df74('0x1e07')][_0xc1df74('0x1d4a')]||[{'message':_0x466b18[_0xc1df74('0x1b75')](),'type':_0xc1df74('0x811')}];for(let _0x4a4ca7=0x0;_0x4a4ca7<_0x466b18['data'][_0xc1df74('0x1d4a')][_0xc1df74('0x543')];_0x4a4ca7++){_0x34254d[_0xc1df74('0x15aa')]({'title':_0x466b18['data']['errors'][_0x4a4ca7]['type'],'msg':_0x466b18[_0xc1df74('0x1e07')][_0xc1df74('0x1d4a')][_0x4a4ca7][_0xc1df74('0x67f')]});}}else _0x34254d[_0xc1df74('0x15aa')]({'title':_0x466b18[_0xc1df74('0x276f')]?_0xc1df74('0x137')+_0x466b18[_0xc1df74('0x276f')]+_0xc1df74('0x160c')+_0x466b18['statusText']:_0xc1df74('0x811'),'msg':_0x466b18[_0xc1df74('0x1e07')]?JSON[_0xc1df74('0x100b')](_0x466b18['data'][_0xc1df74('0x67f')]):_0x466b18[_0xc1df74('0x1b75')]()});});}function _0x2930c9(_0x1abb85){const _0x931015=_0x5f1d0f;_0x1406de[_0x931015('0x1d4a')]=[];const _0x3a6847=_0x5b9293[_0x931015('0x1d02')]()[_0x931015('0x20d6')](_0x931015('0x8ef'))['content'](_0x931015('0x18f8'))[_0x931015('0x217')](_0x931015('0x2627'))['ok'](_0x931015('0x2373'))['cancel'](_0x931015('0x1d4e'))[_0x931015('0x21de')](_0x1abb85);_0x5b9293[_0x931015('0x1cb7')](_0x3a6847)[_0x931015('0x173b')](function(){const _0x543955=_0x931015;_0x2502ec[_0x543955('0x940')][_0x543955('0x15e8')]({'id':_0x1406de[_0x543955('0x940')]['id']})[_0x543955('0x1964')][_0x543955('0x173b')](function(){const _0x1a7043=_0x543955;_0x3c8d8a()['remove'](_0x1406de[_0x1a7043('0x2164')],{'id':_0x1406de[_0x1a7043('0x940')]['id']}),_0x34254d[_0x1a7043('0xdfe')]({'title':'ChatQueue\x20properly\x20deleted!','msg':(_0x1406de['chatQueue']['name']||_0x1a7043('0x940'))+_0x1a7043('0x25d2')}),_0x42c210(_0x1406de[_0x1a7043('0x940')]);})['catch'](function(_0x56788c){const _0x3d9a1e=_0x543955;if(_0x56788c['data']&&_0x56788c[_0x3d9a1e('0x1e07')]['errors']&&_0x56788c['data'][_0x3d9a1e('0x1d4a')][_0x3d9a1e('0x543')]){_0x1406de['errors']=_0x56788c['data']['errors']||[{'message':_0x56788c[_0x3d9a1e('0x1b75')](),'type':_0x3d9a1e('0x10a6')}];for(let _0x33ea63=0x0;_0x33ea63<_0x56788c[_0x3d9a1e('0x1e07')][_0x3d9a1e('0x1d4a')][_0x3d9a1e('0x543')];_0x33ea63++){_0x34254d[_0x3d9a1e('0x15aa')]({'title':_0x56788c[_0x3d9a1e('0x1e07')][_0x3d9a1e('0x1d4a')][_0x33ea63][_0x3d9a1e('0x1810')],'msg':_0x56788c[_0x3d9a1e('0x1e07')]['errors'][_0x33ea63]['message']});}}else _0x34254d['error']({'title':_0x56788c['status']?_0x3d9a1e('0x137')+_0x56788c['status']+_0x3d9a1e('0x160c')+_0x56788c[_0x3d9a1e('0x2696')]:'api.chatQueue.delete','msg':_0x56788c['data']?JSON[_0x3d9a1e('0x100b')](_0x56788c[_0x3d9a1e('0x1e07')]['message']):_0x56788c[_0x3d9a1e('0x67f')]||_0x56788c[_0x3d9a1e('0x1b75')]()});});},function(){});}function _0x5d518b(_0x57b780){return _0x57b780===null?undefined:new Date(_0x57b780);}function _0x42c210(_0x3816f7){const _0xa53caa=_0x5f1d0f;_0x5b9293[_0xa53caa('0x1cf4')](_0x3816f7);}}const _0xad2850=_0x245ee7;_0x509007[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),'chatQueue','chatQueues','realtime','$translate','Auth',_0x566993('0x1dc1')];function _0x509007(_0x457d8b,_0x3a4d82,_0x1f43be,_0x1eef7c,_0x2e95e3,_0x1bb792,_0x145dbc,_0x39a289,_0x465990,_0x4a0658){const _0x1921fd=_0x566993,_0x3ca739=this;_0x3ca739[_0x1921fd('0x155f')]=_0x465990[_0x1921fd('0x14d4')](),_0x3ca739[_0x1921fd('0x940')]=_0x2e95e3,_0x3ca739[_0x1921fd('0x1dc1')]=_0x4a0658,_0x3ca739[_0x1921fd('0x12a7')]=_0x145dbc,_0x3ca739[_0x1921fd('0x1b1f')]=[],_0x3ca739[_0x1921fd('0x203e')]=[],_0x3ca739[_0x1921fd('0x5f8')]=[],_0x3ca739[_0x1921fd('0x1493')]=[],_0x3ca739[_0x1921fd('0x15c9')]=[],_0x3ca739[_0x1921fd('0x277e')]=![],_0x3ca739[_0x1921fd('0x2535')]=_0x2d9535,_0x3ca739['saveAgents']=_0x4afc87,_0x3ca739[_0x1921fd('0x18e2')]=_0x18f310,_0x3ca739[_0x1921fd('0x52e')]={'readOnly':!_0x3ca739[_0x1921fd('0x1dc1')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x1921fd('0x572'),'line2':[_0x1921fd('0x10ad'),_0x1921fd('0x138c')],'line3':'','labelAll':_0x39a289['instant'](_0x1921fd('0xcd9')),'labelSelected':_0x39a289[_0x1921fd('0x1467')](_0x1921fd('0x570')),'transferCallback':function(){const _0xfc0b75=_0x1921fd,_0x24afff=_0x3c8d8a()[_0xfc0b75('0x226b')](_0x3ca739[_0xfc0b75('0x15c9')],_0x3ca739[_0xfc0b75('0x5f8')],'id');_0x3ca739[_0xfc0b75('0x277e')]=_0x3c8d8a()['isEmpty'](_0x24afff)?![]:!![];}};function _0x2d9535(){const _0x59562c=_0x1921fd;return _0x465990[_0x59562c('0x1b4e')](_0x59562c('0x79b'))?_0x414690()['catch'](function(_0x120c7e){const _0x28553f=_0x59562c;_0x1f43be[_0x28553f('0x15aa')]({'title':_0x120c7e[_0x28553f('0x276f')]?_0x28553f('0x137')+_0x120c7e[_0x28553f('0x276f')]+_0x28553f('0x160c')+_0x120c7e[_0x28553f('0x2696')]:_0x28553f('0x152b'),'msg':_0x120c7e['status']?JSON[_0x28553f('0x100b')](_0x120c7e[_0x28553f('0x1e07')]):_0x120c7e['toString']()});}):_0x2efc89()['then'](function(_0x459292){const _0x584ea3=_0x59562c;return _0x3ca739[_0x584ea3('0x17c9')]=_0x459292,_0x414690();})[_0x59562c('0x103c')](function(_0x3aaa10){const _0x461525=_0x59562c;_0x1f43be[_0x461525('0x15aa')]({'title':_0x3aaa10[_0x461525('0x276f')]?_0x461525('0x137')+_0x3aaa10[_0x461525('0x276f')]+_0x461525('0x160c')+_0x3aaa10[_0x461525('0x2696')]:'SYSTEM:GET_AGENTS','msg':_0x3aaa10[_0x461525('0x276f')]?JSON[_0x461525('0x100b')](_0x3aaa10[_0x461525('0x1e07')]):_0x3aaa10[_0x461525('0x1b75')]()});});}function _0x2efc89(){return _0x3a4d82(function(_0x380c13,_0x23f713){const _0x480a9d=a0_0xde5e;_0x1eef7c[_0x480a9d('0x170e')]['get']({'userProfileId':_0x3ca739[_0x480a9d('0x155f')][_0x480a9d('0x1946')],'name':'Agents'})[_0x480a9d('0x1964')][_0x480a9d('0x173b')](function(_0x39b51b){const _0x546f10=_0x480a9d,_0x29990a=_0x39b51b&&_0x39b51b[_0x546f10('0x6aa')]?_0x39b51b['rows'][0x0]:null;_0x380c13(_0x29990a);})['catch'](function(_0x2b6bfc){_0x23f713(_0x2b6bfc);});});}function _0x414690(){return _0x3a4d82(function(_0x53e0e7,_0x33a827){const _0x28e992=a0_0xde5e;return _0x397f23()[_0x28e992('0x173b')](function(_0x1eab3e){const _0x167287=_0x28e992;return _0x3ca739[_0x167287('0x1b1f')]=_0x1eab3e[_0x167287('0x6aa')]?_0x1eab3e[_0x167287('0x6aa')]:[],_0x465990[_0x167287('0x1b4e')](_0x167287('0x79b'))?_0x1eab3e:_0x3ca739[_0x167287('0x17c9')]?_0x3ca739[_0x167287('0x17c9')]['autoAssociation']?_0x1eab3e:_0xcb77():null;})['then'](function(_0x27540f){const _0xe273e3=_0x28e992,_0xe637e5=_0x27540f&&_0x27540f[_0xe273e3('0x6aa')]?_0x27540f[_0xe273e3('0x6aa')]:[];return _0x3ca739[_0xe273e3('0x203e')]=_0x3c8d8a()[_0xe273e3('0x8a2')](_0xe637e5,function(_0x597a8b){const _0x5d513f=_0xe273e3;return _0x3c8d8a()['find'](_0x3ca739[_0x5d513f('0x1b1f')],{'id':_0x465990[_0x5d513f('0x1b4e')](_0x5d513f('0x79b'))||_0x3ca739[_0x5d513f('0x17c9')][_0x5d513f('0x273e')]?_0x597a8b['id']:_0x597a8b[_0x5d513f('0x1ce0')]});}),_0x3ca739['startingAllowedItems']=angular[_0xe273e3('0x2e3')](_0x3ca739[_0xe273e3('0x203e')]),_0x3ca739['items'][_0xe273e3('0xa6a')](function(_0x13e456){const _0x3956a0=_0xe273e3,_0x161128=_0x3c8d8a()[_0x3956a0('0x18ab')](_0x3ca739[_0x3956a0('0x203e')],{'id':_0x13e456['id']});_0x465990['hasRole']('admin')?_0x13e456['isValid']=!![]:_0x13e456[_0x3956a0('0xf02')]=typeof _0x161128!==_0x3956a0('0x6e5')?!![]:![];}),_0x4e64df();})[_0x28e992('0x173b')](function(_0x5cd8a2){const _0xe16029=_0x28e992,_0x431c85=_0x5cd8a2&&_0x5cd8a2['rows']?_0x5cd8a2[_0xe16029('0x6aa')]:[];_0x3ca739[_0xe16029('0x5f8')]=_0x3c8d8a()[_0xe16029('0x8a2')](_0x431c85,function(_0x301d32){const _0x48b190=_0xe16029,_0x262264=_0x3c8d8a()[_0x48b190('0x18ab')](_0x3ca739['items'],{'id':_0x301d32['id']});return _0x262264[_0x48b190('0x1692')]=_0x301d32[_0x48b190('0x16af')]?_0x48b190('0x1929')+_0x301d32[_0x48b190('0x16af')][_0x48b190('0x1692')]:'',_0x262264['internal']=typeof _0x301d32[_0x48b190('0x138c')]!==_0x48b190('0x6e5')?'<'+_0x301d32[_0x48b190('0x138c')]+'>':'',_0x262264;}),_0x3ca739['startingSelectedItems']=angular[_0xe16029('0x2e3')](_0x3ca739[_0xe16029('0x5f8')]),_0x3ca739['dualMultiselectOptions'][_0xe16029('0x5f8')]=_0x3ca739[_0xe16029('0x5f8')],_0x3ca739[_0xe16029('0x52e')][_0xe16029('0x1b1f')]=_0x3c8d8a()[_0xe16029('0x1bd3')](_0x3ca739[_0xe16029('0x203e')],_0x3ca739[_0xe16029('0x52e')]['selectedItems'],'id'),_0x53e0e7();})['catch'](function(_0x4c2d80){_0x33a827(_0x4c2d80);});});}function _0xcb77(){return _0x3a4d82(function(_0x23feba,_0x329a66){const _0x672b5d=a0_0xde5e;return _0x1eef7c[_0x672b5d('0xda9')]['get']({'sectionId':_0x3ca739['section']['id'],'nolimit':!![]})[_0x672b5d('0x1964')][_0x672b5d('0x173b')](function(_0x3d2e05){_0x23feba(_0x3d2e05);})[_0x672b5d('0x103c')](function(_0xbaa9f2){_0x329a66(_0xbaa9f2);});});}function _0x4e64df(){return _0x3a4d82(function(_0x399d88,_0x176534){const _0x11ec09=a0_0xde5e;return _0x1eef7c[_0x11ec09('0x940')][_0x11ec09('0x1903')]({'id':_0x3ca739[_0x11ec09('0x940')]['id'],'fields':_0x11ec09('0x1d65'),'nolimit':!![],'role':'agent'})[_0x11ec09('0x1964')][_0x11ec09('0x173b')](function(_0x2894ac){_0x399d88(_0x2894ac);})[_0x11ec09('0x103c')](function(_0x3164e5){_0x176534(_0x3164e5);});});}function _0x397f23(){return _0x3a4d82(function(_0x3bc6e6,_0x149b38){const _0x4e0b21=a0_0xde5e;return _0x1eef7c[_0x4e0b21('0x166f')][_0x4e0b21('0x1d97')]({'fields':_0x4e0b21('0x1d65'),'nolimit':!![],'role':'agent'})[_0x4e0b21('0x1964')][_0x4e0b21('0x173b')](function(_0x5552a5){_0x3bc6e6(_0x5552a5);})[_0x4e0b21('0x103c')](function(_0x23de68){_0x149b38(_0x23de68);});});}function _0x12adb6(_0x3f5e4e){return _0x3a4d82(function(_0x5b1c12,_0x1acb90){const _0x44f770=a0_0xde5e;_0x3c8d8a()[_0x44f770('0x1a56')](_0x3f5e4e)?_0x5b1c12():_0x1eef7c[_0x44f770('0x940')][_0x44f770('0x1ff1')]({'id':_0x3ca739[_0x44f770('0x940')]['id'],'ids':_0x3c8d8a()[_0x44f770('0x8a2')](_0x3f5e4e,'id')})['$promise'][_0x44f770('0x173b')](function(){_0x5b1c12();})[_0x44f770('0x103c')](function(_0x70dd41){_0x1acb90(_0x70dd41);});});}function _0xd391c7(_0x2cf763){return _0x3a4d82(function(_0x176150,_0x49ad03){const _0x4f0d75=a0_0xde5e;_0x3c8d8a()[_0x4f0d75('0x1a56')](_0x2cf763)?_0x176150():_0x1eef7c[_0x4f0d75('0x940')]['removeAgents']({'id':_0x3ca739[_0x4f0d75('0x940')]['id'],'ids':_0x3c8d8a()[_0x4f0d75('0x8a2')](_0x2cf763,'id')})[_0x4f0d75('0x1964')][_0x4f0d75('0x173b')](function(){_0x176150();})[_0x4f0d75('0x103c')](function(_0x23ff1f){_0x49ad03(_0x23ff1f);});});}function _0x4afc87(){const _0x54e288=_0x1921fd,_0x2ff62e=_0x3c8d8a()[_0x54e288('0x1bd3')](_0x3ca739[_0x54e288('0x15c9')],_0x3ca739[_0x54e288('0x5f8')],'id'),_0x360d8c=_0x3c8d8a()[_0x54e288('0x1bd3')](_0x3ca739[_0x54e288('0x5f8')],_0x3ca739[_0x54e288('0x15c9')],'id');return _0xd391c7(_0x2ff62e)[_0x54e288('0x173b')](function(){return _0x12adb6(_0x360d8c);})[_0x54e288('0x173b')](function(){const _0x5def6b=_0x54e288;_0x3ca739[_0x5def6b('0x277e')]=![],_0x3ca739[_0x5def6b('0x1493')]=angular[_0x5def6b('0x2e3')](_0x3ca739['allowedItems']),_0x3ca739[_0x5def6b('0x15c9')]=angular['copy'](_0x3ca739['selectedItems']),_0x1f43be['success']({'title':_0x5def6b('0x23db'),'msg':_0x5def6b('0x2027')});})[_0x54e288('0x103c')](function(_0x5c2326){const _0x4a345c=_0x54e288;_0x1f43be[_0x4a345c('0x15aa')]({'title':_0x5c2326[_0x4a345c('0x276f')]?_0x4a345c('0x137')+_0x5c2326[_0x4a345c('0x276f')]+_0x4a345c('0x160c')+_0x5c2326[_0x4a345c('0x2696')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x5c2326['status']?JSON[_0x4a345c('0x100b')](_0x5c2326[_0x4a345c('0x1e07')]):_0x5c2326[_0x4a345c('0x1b75')]()});});}function _0x18f310(){const _0x17f540=_0x1921fd;_0x457d8b[_0x17f540('0x1cf4')]();}}const _0x4ea746=_0x509007;_0x5eb1ef[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x940'),_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x5eb1ef(_0x472796,_0x191d31,_0x2a04d5,_0x23a8f1,_0x878782,_0x4f50db,_0x151871,_0x5c11fa){const _0x38b996=_0x566993,_0x5c5c83=this;_0x5c5c83[_0x38b996('0x155f')]=_0x151871[_0x38b996('0x14d4')](),_0x5c5c83[_0x38b996('0x940')]=_0x878782,_0x5c5c83[_0x38b996('0x1dc1')]=_0x5c11fa,_0x5c5c83[_0x38b996('0x1b1f')]=[],_0x5c5c83[_0x38b996('0x203e')]=[],_0x5c5c83[_0x38b996('0x5f8')]=[],_0x5c5c83[_0x38b996('0x1493')]=[],_0x5c5c83[_0x38b996('0x15c9')]=[],_0x5c5c83[_0x38b996('0x277e')]=![],_0x5c5c83['dualMultiselectOptions']={'readOnly':!_0x5c5c83[_0x38b996('0x1dc1')][_0x38b996('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x38b996('0x10ad'),'line2':'','line3':'','labelAll':_0x4f50db[_0x38b996('0x1467')](_0x38b996('0xe1a')),'labelSelected':_0x4f50db[_0x38b996('0x1467')](_0x38b996('0x1cb0')),'transferCallback':function(){const _0x18a183=_0x38b996,_0x2f6f50=_0x3c8d8a()[_0x18a183('0x226b')](_0x5c5c83['startingSelectedItems'],_0x5c5c83[_0x18a183('0x5f8')],'id');_0x5c5c83[_0x18a183('0x277e')]=_0x3c8d8a()[_0x18a183('0x1a56')](_0x2f6f50)?![]:!![];}},_0x5c5c83['onInit']=_0x1b7f36,_0x5c5c83[_0x38b996('0x2421')]=_0x388162,_0x5c5c83[_0x38b996('0x18e2')]=_0x954ab0;function _0x1b7f36(){const _0xd09c07=_0x38b996;return _0x151871[_0xd09c07('0x1b4e')]('admin')?_0x1e8afc()['catch'](function(_0x1d72af){const _0x43a62c=_0xd09c07;_0x2a04d5['error']({'title':_0x1d72af[_0x43a62c('0x276f')]?_0x43a62c('0x137')+_0x1d72af['status']+_0x43a62c('0x160c')+_0x1d72af['statusText']:_0x43a62c('0x15d3'),'msg':_0x1d72af[_0x43a62c('0x276f')]?JSON[_0x43a62c('0x100b')](_0x1d72af[_0x43a62c('0x1e07')]):_0x1d72af[_0x43a62c('0x1b75')]()});}):_0x44ce2b()[_0xd09c07('0x173b')](function(_0x490c21){const _0x247273=_0xd09c07;return _0x5c5c83[_0x247273('0x17c9')]=_0x490c21,_0x1e8afc();})[_0xd09c07('0x103c')](function(_0x18512e){const _0x2489ce=_0xd09c07;_0x2a04d5[_0x2489ce('0x15aa')]({'title':_0x18512e[_0x2489ce('0x276f')]?'API:'+_0x18512e[_0x2489ce('0x276f')]+_0x2489ce('0x160c')+_0x18512e['statusText']:_0x2489ce('0x15d3'),'msg':_0x18512e[_0x2489ce('0x276f')]?JSON['stringify'](_0x18512e[_0x2489ce('0x1e07')]):_0x18512e['toString']()});});}function _0x44ce2b(){return _0x191d31(function(_0x554b22,_0x53b643){const _0x5abd00=a0_0xde5e;_0x23a8f1[_0x5abd00('0x170e')]['get']({'userProfileId':_0x5c5c83[_0x5abd00('0x155f')][_0x5abd00('0x1946')],'name':_0x5abd00('0x1e5c')})['$promise'][_0x5abd00('0x173b')](function(_0x4bbf0d){const _0x2bf6b5=_0x5abd00,_0x114666=_0x4bbf0d&&_0x4bbf0d[_0x2bf6b5('0x6aa')]?_0x4bbf0d['rows'][0x0]:null;_0x554b22(_0x114666);})['catch'](function(_0x86df56){_0x53b643(_0x86df56);});});}function _0x1e8afc(){return _0x191d31(function(_0x121881,_0x129cb5){const _0xdab21f=a0_0xde5e;return _0x1c438b()[_0xdab21f('0x173b')](function(_0x52b280){const _0x4d7cc0=_0xdab21f;return _0x5c5c83[_0x4d7cc0('0x1b1f')]=_0x52b280[_0x4d7cc0('0x6aa')]?_0x52b280['rows']:[],_0x151871['hasRole']('admin')?_0x52b280:_0x5c5c83[_0x4d7cc0('0x17c9')]?_0x5c5c83[_0x4d7cc0('0x17c9')][_0x4d7cc0('0x273e')]?_0x52b280:_0x28d5fb():null;})[_0xdab21f('0x173b')](function(_0x43d770){const _0x2aef6b=_0xdab21f,_0x41ec02=_0x43d770&&_0x43d770[_0x2aef6b('0x6aa')]?_0x43d770[_0x2aef6b('0x6aa')]:[];return _0x5c5c83['allowedItems']=_0x3c8d8a()[_0x2aef6b('0x8a2')](_0x41ec02,function(_0x500ba2){const _0x45ab95=_0x2aef6b;return _0x3c8d8a()[_0x45ab95('0x18ab')](_0x5c5c83[_0x45ab95('0x1b1f')],{'id':_0x151871[_0x45ab95('0x1b4e')](_0x45ab95('0x79b'))||_0x5c5c83[_0x45ab95('0x17c9')][_0x45ab95('0x273e')]?_0x500ba2['id']:_0x500ba2[_0x45ab95('0x1ce0')]});}),_0x5c5c83[_0x2aef6b('0x1b1f')]['forEach'](function(_0x4ae8ae){const _0x3ed855=_0x2aef6b,_0x164e19=_0x3c8d8a()[_0x3ed855('0x18ab')](_0x5c5c83[_0x3ed855('0x203e')],{'id':_0x4ae8ae['id']});_0x151871['hasRole'](_0x3ed855('0x79b'))?_0x4ae8ae['isValid']=!![]:_0x4ae8ae[_0x3ed855('0xf02')]=typeof _0x164e19!==_0x3ed855('0x6e5')?!![]:![];}),_0x6c309f();})[_0xdab21f('0x173b')](function(_0x5a44b9){const _0x4cc718=_0xdab21f,_0x26bc74=_0x5a44b9&&_0x5a44b9[_0x4cc718('0x6aa')]?_0x5a44b9[_0x4cc718('0x6aa')]:[];_0x5c5c83[_0x4cc718('0x5f8')]=_0x3c8d8a()['map'](_0x26bc74,function(_0x46d6e5){const _0x50d251=_0x4cc718;return _0x3c8d8a()[_0x50d251('0x18ab')](_0x5c5c83[_0x50d251('0x1b1f')],{'id':_0x46d6e5['id']});}),_0x5c5c83[_0x4cc718('0x15c9')]=angular[_0x4cc718('0x2e3')](_0x5c5c83['selectedItems']),_0x5c5c83[_0x4cc718('0x52e')][_0x4cc718('0x5f8')]=_0x5c5c83[_0x4cc718('0x5f8')],_0x5c5c83[_0x4cc718('0x52e')][_0x4cc718('0x1b1f')]=_0x3c8d8a()[_0x4cc718('0x1bd3')](_0x5c5c83[_0x4cc718('0x203e')],_0x5c5c83[_0x4cc718('0x52e')][_0x4cc718('0x5f8')],'id'),_0x121881();})[_0xdab21f('0x103c')](function(_0x57d333){_0x129cb5(_0x57d333);});});}function _0x28d5fb(){return _0x191d31(function(_0x158841,_0x29bfe1){const _0x9e69a9=a0_0xde5e;return _0x23a8f1[_0x9e69a9('0xda9')][_0x9e69a9('0x1d97')]({'sectionId':_0x5c5c83[_0x9e69a9('0x17c9')]['id'],'nolimit':!![]})[_0x9e69a9('0x1964')][_0x9e69a9('0x173b')](function(_0x459a34){_0x158841(_0x459a34);})[_0x9e69a9('0x103c')](function(_0x3a2c57){_0x29bfe1(_0x3a2c57);});});}function _0x6c309f(){return _0x191d31(function(_0x3a5c51,_0x10bb91){const _0x155ad9=a0_0xde5e;return _0x23a8f1[_0x155ad9('0x940')][_0x155ad9('0x1592')]({'id':_0x5c5c83['chatQueue']['id'],'fields':'id,name','nolimit':!![]})['$promise']['then'](function(_0x47ee9f){_0x3a5c51(_0x47ee9f);})[_0x155ad9('0x103c')](function(_0xf11da3){_0x10bb91(_0xf11da3);});});}function _0x1c438b(){return _0x191d31(function(_0x560029,_0x5af394){const _0x511521=a0_0xde5e;return _0x23a8f1[_0x511521('0xe10')][_0x511521('0x1d97')]({'fields':_0x511521('0xd52'),'nolimit':!![]})[_0x511521('0x1964')][_0x511521('0x173b')](function(_0x3da20f){_0x560029(_0x3da20f);})[_0x511521('0x103c')](function(_0x551dcd){_0x5af394(_0x551dcd);});});}function _0x8061a9(_0x471909){return _0x191d31(function(_0x5a19c3,_0x48e6d0){const _0x12a448=a0_0xde5e;_0x3c8d8a()[_0x12a448('0x1a56')](_0x471909)?_0x5a19c3():_0x23a8f1[_0x12a448('0x940')][_0x12a448('0x500')]({'id':_0x5c5c83[_0x12a448('0x940')]['id'],'ids':_0x3c8d8a()[_0x12a448('0x8a2')](_0x471909,'id')})[_0x12a448('0x1964')]['then'](function(){_0x5a19c3();})[_0x12a448('0x103c')](function(_0x194703){_0x48e6d0(_0x194703);});});}function _0x991969(_0x371963){return _0x191d31(function(_0x3317e8,_0x4c5cbf){const _0x39b6ea=a0_0xde5e;_0x3c8d8a()[_0x39b6ea('0x1a56')](_0x371963)?_0x3317e8():_0x23a8f1['chatQueue'][_0x39b6ea('0x7a')]({'id':_0x5c5c83[_0x39b6ea('0x940')]['id'],'ids':_0x3c8d8a()['map'](_0x371963,'id')})[_0x39b6ea('0x1964')]['then'](function(){_0x3317e8();})['catch'](function(_0x1be21e){_0x4c5cbf(_0x1be21e);});});}function _0x388162(){const _0x4162fe=_0x38b996,_0x46ccb9=_0x3c8d8a()['differenceBy'](_0x5c5c83[_0x4162fe('0x15c9')],_0x5c5c83['selectedItems'],'id'),_0x334971=_0x3c8d8a()[_0x4162fe('0x1bd3')](_0x5c5c83[_0x4162fe('0x5f8')],_0x5c5c83[_0x4162fe('0x15c9')],'id');return _0x991969(_0x46ccb9)[_0x4162fe('0x173b')](function(){return _0x8061a9(_0x334971);})[_0x4162fe('0x173b')](function(){const _0x3dc6e6=_0x4162fe;_0x5c5c83[_0x3dc6e6('0x277e')]=![],_0x5c5c83[_0x3dc6e6('0x1493')]=angular['copy'](_0x5c5c83['allowedItems']),_0x5c5c83[_0x3dc6e6('0x15c9')]=angular[_0x3dc6e6('0x2e3')](_0x5c5c83[_0x3dc6e6('0x5f8')]),_0x2a04d5['success']({'title':_0x3dc6e6('0x23db'),'msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x4162fe('0x103c')](function(_0x563f5a){const _0x3cb289=_0x4162fe;_0x2a04d5[_0x3cb289('0x15aa')]({'title':_0x563f5a[_0x3cb289('0x276f')]?_0x3cb289('0x137')+_0x563f5a['status']+_0x3cb289('0x160c')+_0x563f5a[_0x3cb289('0x2696')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x563f5a['status']?JSON[_0x3cb289('0x100b')](_0x563f5a[_0x3cb289('0x1e07')]):_0x563f5a[_0x3cb289('0x1b75')]()});});}function _0x954ab0(){const _0x5ad922=_0x38b996;_0x472796[_0x5ad922('0x1cf4')]();}}const _0x44ba7b=_0x5eb1ef;_0x2df590[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x940'),_0x566993('0x170e')];function _0x2df590(_0x3ba411,_0x26c85b,_0x1794dc,_0x5191f5,_0x5e7656,_0xc1e0af,_0x596408,_0x18b5dd,_0x4a37cb,_0x51fc4c,_0x5027d2,_0x653229){const _0x339122=_0x566993,_0x31204a=this;_0x31204a[_0x339122('0x155f')]=_0x51fc4c[_0x339122('0x14d4')](),_0x31204a[_0x339122('0x1a29')]=_0xc1e0af,_0x31204a[_0x339122('0x251')]=_0x596408,_0x31204a[_0x339122('0x644')]=_0x31204a['setting'][_0x339122('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x31204a[_0x339122('0x614')]=_0x26c85b['protocol']()+'://'+_0x26c85b[_0x339122('0x4d1')](),_0x31204a[_0x339122('0x940')]=_0x5027d2||_0x3ba411[_0x339122('0x197a')]['chatQueue']||{},_0x31204a[_0x339122('0x170e')]=_0x653229&&_0x653229['count']==0x1?_0x653229['rows'][0x0]:null,_0x31204a[_0x339122('0x1dc1')]=_0x51fc4c['parseCrudPermissions'](_0x31204a[_0x339122('0x170e')]?_0x31204a[_0x339122('0x170e')][_0x339122('0x1dc1')]:null),_0x31204a[_0x339122('0xb0')]={},_0x31204a[_0x339122('0xd5f')]=_0x3ba411['params']['tab']||0x0,_0x31204a[_0x339122('0x17d4')]=_0x1cf75b,_0x31204a['agentadddialog']=_0x314e6e,_0x31204a[_0x339122('0x5a4')]=_0x4a37cb['info'],_0x31204a[_0x339122('0x18f4')]=_0x489b81,_0x31204a[_0x339122('0x215f')]=_0x521b63;function _0x1cf75b(_0x37e1be,_0x2480b4){const _0x3257a9=_0x339122;_0x1794dc[_0x3257a9('0x1cb7')]({'controller':_0x3257a9('0x1973'),'controllerAs':'vm','templateUrl':_0x58dc04,'parent':angular[_0x3257a9('0xb6d')](_0x5191f5[_0x3257a9('0x1a5')]),'targetEvent':_0x2480b4,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x37e1be,'chatQueues':_0x31204a[_0x3257a9('0x2164')]?_0x31204a[_0x3257a9('0x2164')][_0x3257a9('0x6aa')]:[],'crudPermissions':_0x31204a[_0x3257a9('0x1dc1')]}});}function _0x314e6e(_0x5656ac,_0x1e947e){const _0x464f4f=_0x339122;_0x1794dc[_0x464f4f('0x1cb7')]({'controller':'ChatQueueagentaddController','controllerAs':'vm','templateUrl':_0x210b22,'parent':angular['element'](_0x5191f5[_0x464f4f('0x1a5')]),'targetEvent':_0x1e947e,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x5656ac,'chatQueues':_0x31204a[_0x464f4f('0x2164')]?_0x31204a[_0x464f4f('0x2164')]['rows']:[],'crudPermissions':_0x31204a[_0x464f4f('0x1dc1')],'realtime':![]}});}function _0x489b81(){const _0x304299=_0x339122;_0x3ba411['go'](_0x304299('0x1380'),{},{'reload':_0x304299('0x1380')});}function _0x521b63(){const _0x2e5c79=_0x339122;_0x18b5dd[_0x2e5c79('0x940')]['update']({'id':_0x31204a[_0x2e5c79('0x940')]['id']},_0x31204a[_0x2e5c79('0x940')])[_0x2e5c79('0x1964')][_0x2e5c79('0x173b')](function(){const _0xf75d94=_0x2e5c79;_0x4a37cb[_0xf75d94('0xdfe')]({'title':_0xf75d94('0x22d7'),'msg':_0x31204a[_0xf75d94('0x940')][_0xf75d94('0x10ad')]?_0x31204a[_0xf75d94('0x940')][_0xf75d94('0x10ad')]+_0xf75d94('0x1fd6'):''});})[_0x2e5c79('0x103c')](function(_0x1a8cb1){const _0x26cf55=_0x2e5c79;_0x4a37cb[_0x26cf55('0x15aa')]({'title':_0x1a8cb1[_0x26cf55('0x276f')]?_0x26cf55('0x137')+_0x1a8cb1[_0x26cf55('0x276f')]+_0x26cf55('0x160c')+_0x1a8cb1[_0x26cf55('0x2696')]:_0x26cf55('0x1613'),'msg':_0x1a8cb1[_0x26cf55('0x1e07')]?JSON['stringify'](_0x1a8cb1[_0x26cf55('0x1e07')]):_0x1a8cb1[_0x26cf55('0x1b75')]()});});}}const _0x4c63b5=_0x2df590,_0x5ea18f=_0x21a6a1['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd.html',_0x3e0678=_0x21a6a1['p']+_0x566993('0x5b0');_0x2cebc6[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate','chatWebsites','userProfile','userProfileSection',_0x566993('0xbd4'),'msUtils','toasty',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x2cebc6(_0x35b622,_0x35adbc,_0x4180c4,_0x2cfbee,_0x389af8,_0xe9471a,_0x5915a2,_0x9c8b92,_0x3144cc,_0x25c5e5,_0x3ba94f,_0x3f9286,_0x25c5c0,_0x3d92fc,_0x5293f6,_0x576df6,_0x11495c){const _0x1348f3=_0x566993,_0x1850e3=this;_0x1850e3[_0x1348f3('0x1a29')]=_0x576df6,_0x1850e3['setting']=_0x11495c,_0x1850e3[_0x1348f3('0x155f')]=_0x5293f6['getCurrentUser'](),_0x1850e3['chatWebsites']=_0x3144cc||{'count':0x0,'rows':[]},_0x1850e3['userProfile']=_0x25c5e5,_0x1850e3[_0x1348f3('0x170e')]=_0x3ba94f&&_0x3ba94f['count']==0x1?_0x3ba94f['rows'][0x0]:null,_0x1850e3['crudPermissions']=_0x5293f6[_0x1348f3('0xde6')](_0x1850e3['userProfileSection']?_0x1850e3[_0x1348f3('0x170e')][_0x1348f3('0x1dc1')]:null),_0x1850e3[_0x1348f3('0xdf9')]='chatWebsites',_0x1850e3['listOrder']='',_0x1850e3[_0x1348f3('0x2303')]=null,_0x1850e3[_0x1348f3('0x874')]=[],_0x1850e3['query']={'fields':_0x1348f3('0x25ee'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x1850e3['arrayagentIdentifier']=_0x3c8d8a()[_0x1348f3('0x128')]([{'option':'WebsiteAlias','value':'\x27website_alias\x27'},{'option':_0x1348f3('0x1450'),'value':_0x1348f3('0x598')},{'option':_0x1348f3('0x22e'),'value':'\x27agent_fullname\x27'}],function(_0x57b4f1){const _0x19e787=_0x1348f3;return _0x3c8d8a()['replace'](_0x57b4f1[_0x19e787('0xa7b')],new RegExp('\x27','g'),'');}),_0x1850e3[_0x1348f3('0x1b88')]=_0x3c8d8a()[_0x1348f3('0x128')]([{'option':_0x1348f3('0x14f0'),'value':'\x27rounded\x27'},{'option':_0x1348f3('0x15b4'),'value':_0x1348f3('0x243c')}],function(_0x1daf80){const _0x3ef18e=_0x1348f3;return _0x3c8d8a()[_0x3ef18e('0x166c')](_0x1daf80[_0x3ef18e('0xa7b')],new RegExp('\x27','g'),'');}),_0x1850e3[_0x1348f3('0x1c8e')]=_0x3c8d8a()['keyBy']([{'option':'bottom_right','value':'\x27bottom_right\x27'},{'option':'right','value':_0x1348f3('0x1130')},{'option':_0x1348f3('0x292'),'value':_0x1348f3('0x192b')}],function(_0x25f3ee){const _0x437f63=_0x1348f3;return _0x3c8d8a()[_0x437f63('0x166c')](_0x25f3ee[_0x437f63('0xa7b')],new RegExp('\x27','g'),'');}),_0x1850e3[_0x1348f3('0x2476')]=_0x3c8d8a()[_0x1348f3('0x128')]([{'option':_0x1348f3('0xf35'),'value':'\x27alternate\x27'},{'option':_0x1348f3('0x2194'),'value':_0x1348f3('0xe45')}],function(_0x4c32e7){const _0x40e6e7=_0x1348f3;return _0x3c8d8a()[_0x40e6e7('0x166c')](_0x4c32e7[_0x40e6e7('0xa7b')],new RegExp('\x27','g'),'');}),_0x1850e3[_0x1348f3('0x846')]=_0x3c8d8a()['keyBy']([{'option':_0x1348f3('0x21a2'),'value':_0x1348f3('0x4e2')},{'option':_0x1348f3('0x16c6'),'value':_0x1348f3('0xf12')}],function(_0x37db03){const _0x54e262=_0x1348f3;return _0x3c8d8a()[_0x54e262('0x166c')](_0x37db03[_0x54e262('0xa7b')],new RegExp('\x27','g'),'');}),_0x1850e3[_0x1348f3('0x222e')]=_0x3ccd85,_0x1850e3[_0x1348f3('0x426')]=_0x5d3cef,_0x1850e3[_0x1348f3('0x198a')]=_0x406a13,_0x1850e3['agentadddialog']=_0x98810f,_0x1850e3['deleteconfirm']=_0x538ab0,_0x1850e3['success']=_0x2f8243,_0x1850e3['getChatWebsites']=_0x5a79e7,_0x1850e3[_0x1348f3('0x83d')]=_0x26a60b,_0x1850e3['deleteChatWebsite']=_0x18e772,_0x1850e3['exportSelectedChatWebsites']=_0x563851,_0x1850e3['deleteSelectedChatWebsites']=_0x2bd118,_0x1850e3[_0x1348f3('0x6de')]=_0x3c0886,_0x1850e3[_0x1348f3('0x1ae2')]=_0x3893c6,_0x5293f6[_0x1348f3('0x1b4e')](_0x1348f3('0x79b'))?_0x3f9286[_0x1348f3('0xbb3')][_0x1348f3('0x1d97')]({'fields':'id,name','sort':_0x1348f3('0x10ad')})[_0x1348f3('0x1964')]['then'](function(_0x4d41ef){const _0x441723=_0x1348f3;_0x1850e3[_0x441723('0x9e8')]=_0x4d41ef[_0x441723('0x6aa')]||[];})[_0x1348f3('0x103c')](function(_0xca96cf){const _0x991704=_0x1348f3;_0x3d92fc[_0x991704('0x15aa')]({'title':_0xca96cf[_0x991704('0x276f')]?_0x991704('0x137')+_0xca96cf[_0x991704('0x276f')]+_0x991704('0x160c')+_0xca96cf['statusText']:_0x991704('0x1d5c'),'msg':_0xca96cf[_0x991704('0x1e07')]?JSON[_0x991704('0x100b')](_0xca96cf[_0x991704('0x1e07')]):_0xca96cf[_0x991704('0x1b75')]()});}):_0x3f9286[_0x1348f3('0xbb3')][_0x1348f3('0x1d97')]({'fields':_0x1348f3('0xd52'),'sort':_0x1348f3('0x10ad')})[_0x1348f3('0x1964')]['then'](function(_0x5ea0c9){const _0x49f6f7=_0x1348f3;_0x1850e3[_0x49f6f7('0x9e8')]=_0x5ea0c9['rows']||[];})[_0x1348f3('0x173b')](function(){const _0x416e59=_0x1348f3;return _0x3f9286[_0x416e59('0x170e')][_0x416e59('0x1d97')]({'userProfileId':_0x1850e3[_0x416e59('0x155f')]['userProfileId'],'sectionId':0x12d})[_0x416e59('0x1964')];})[_0x1348f3('0x173b')](function(_0x598337){const _0x37543b=_0x1348f3,_0x474f83=_0x598337&&_0x598337[_0x37543b('0x6aa')]?_0x598337[_0x37543b('0x6aa')][0x0]:null;if(!_0x474f83){const _0x599e41=[];let _0xd14f5b=null;_0x1850e3[_0x37543b('0x1740')]&&(_0xd14f5b=_0x3c8d8a()['find'](_0x1850e3[_0x37543b('0x9e8')],{'id':Number(_0x1850e3[_0x37543b('0x1740')]['ListId'])}));for(let _0x51fb82=0x0;_0x51fb82<_0x1850e3[_0x37543b('0x9e8')][_0x37543b('0x543')];_0x51fb82++){_0xd14f5b&&_0x1850e3[_0x37543b('0x9e8')][_0x51fb82]['id']===_0xd14f5b['id']&&(_0x1850e3[_0x37543b('0x9e8')][_0x51fb82][_0x37543b('0x268e')]=![],_0x599e41['push'](_0x1850e3['lists'][_0x51fb82]));}_0x1850e3['lists']=_0x599e41;}else{if(!_0x474f83['autoAssociation'])return _0x3f9286[_0x37543b('0xda9')][_0x37543b('0x1d97')]({'sectionId':_0x474f83['id']})[_0x37543b('0x1964')][_0x37543b('0x173b')](function(_0x12caca){const _0xd77bd=_0x37543b,_0x1c7222=_0x3c8d8a()[_0xd77bd('0x8a2')](_0x12caca['rows'],function(_0x432b5b){const _0xb1b3e1=_0xd77bd;return _0x3c8d8a()[_0xb1b3e1('0x18ab')](_0x1850e3['lists'],{'id':_0x432b5b[_0xb1b3e1('0x1ce0')]});});let _0x45cc29=null;_0x1850e3[_0xd77bd('0x1740')]&&(_0x45cc29=_0x3c8d8a()[_0xd77bd('0x18ab')](_0x1850e3['lists'],{'id':Number(_0x1850e3[_0xd77bd('0x1740')][_0xd77bd('0xef2')])}));if(_0x45cc29&&!_0x3c8d8a()[_0xd77bd('0x1ec')](_0x1c7222,['id',_0x45cc29['id']])){const _0x538f6e=_0x3c8d8a()['find'](_0x1850e3[_0xd77bd('0x9e8')],{'id':_0x45cc29['id']});_0x538f6e[_0xd77bd('0x268e')]=![],_0x1c7222[_0xd77bd('0x18bb')](_0x538f6e);}_0x1850e3[_0xd77bd('0x9e8')]=_0x1c7222;});}})[_0x1348f3('0x103c')](function(_0x5a7a4a){const _0x173f23=_0x1348f3;_0x3d92fc[_0x173f23('0x15aa')]({'title':_0x5a7a4a[_0x173f23('0x276f')]?_0x173f23('0x137')+_0x5a7a4a['status']+_0x173f23('0x160c')+_0x5a7a4a[_0x173f23('0x2696')]:'SYSTEM:GETlists','msg':_0x5a7a4a[_0x173f23('0x1e07')]?JSON[_0x173f23('0x100b')](_0x5a7a4a['data']):_0x5a7a4a[_0x173f23('0x1b75')]()});}),_0x5293f6[_0x1348f3('0x1b4e')](_0x1348f3('0x79b'))?_0x3f9286[_0x1348f3('0x55a')][_0x1348f3('0x1d97')]({'fields':'id,name','sort':'name','IntervalId':_0x1348f3('0x877')})[_0x1348f3('0x1964')][_0x1348f3('0x173b')](function(_0x3750c9){const _0x50442c=_0x1348f3;_0x1850e3[_0x50442c('0x55a')]=_0x3750c9[_0x50442c('0x6aa')]||[];})[_0x1348f3('0x103c')](function(_0x375a7e){const _0x298843=_0x1348f3;_0x3d92fc['error']({'title':_0x375a7e[_0x298843('0x276f')]?'API:'+_0x375a7e[_0x298843('0x276f')]+_0x298843('0x160c')+_0x375a7e[_0x298843('0x2696')]:_0x298843('0x1f4b'),'msg':_0x375a7e[_0x298843('0x1e07')]?JSON[_0x298843('0x100b')](_0x375a7e['data']):_0x375a7e['toString']()});}):_0x3f9286['interval'][_0x1348f3('0x1d97')]({'fields':_0x1348f3('0xd52'),'sort':_0x1348f3('0x10ad'),'IntervalId':_0x1348f3('0x877')})[_0x1348f3('0x1964')][_0x1348f3('0x173b')](function(_0x19f444){const _0x45de12=_0x1348f3;_0x1850e3['interval']=_0x19f444[_0x45de12('0x6aa')]||[];})['then'](function(){const _0x5164fa=_0x1348f3;return _0x3f9286[_0x5164fa('0x170e')][_0x5164fa('0x1d97')]({'userProfileId':_0x1850e3[_0x5164fa('0x155f')][_0x5164fa('0x1946')],'sectionId':0x3ec})['$promise'];})[_0x1348f3('0x173b')](function(_0x4483d5){const _0x1da057=_0x1348f3,_0x20d336=_0x4483d5&&_0x4483d5[_0x1da057('0x6aa')]?_0x4483d5[_0x1da057('0x6aa')][0x0]:null;if(!_0x20d336){const _0x46e279=[];let _0x45da90=null;_0x1850e3[_0x1da057('0x1740')]&&(_0x45da90=_0x3c8d8a()[_0x1da057('0x18ab')](_0x1850e3['interval'],{'id':Number(_0x1850e3[_0x1da057('0x1740')][_0x1da057('0x600')])}));for(let _0x2dd2a7=0x0;_0x2dd2a7<_0x1850e3[_0x1da057('0x55a')][_0x1da057('0x543')];_0x2dd2a7++){_0x45da90&&_0x1850e3[_0x1da057('0x55a')][_0x2dd2a7]['id']===_0x45da90['id']&&(_0x1850e3[_0x1da057('0x55a')][_0x2dd2a7][_0x1da057('0x268e')]=![],_0x46e279['push'](_0x1850e3['interval'][_0x2dd2a7]));}_0x1850e3[_0x1da057('0x55a')]=_0x46e279;}else{if(!_0x20d336[_0x1da057('0x273e')])return _0x3f9286['userProfileResource'][_0x1da057('0x1d97')]({'sectionId':_0x20d336['id']})[_0x1da057('0x1964')][_0x1da057('0x173b')](function(_0x191d00){const _0x64b691=_0x1da057,_0x5d2e0a=_0x3c8d8a()['map'](_0x191d00[_0x64b691('0x6aa')],function(_0x43208c){const _0x2f0828=_0x64b691;return _0x3c8d8a()['find'](_0x1850e3[_0x2f0828('0x55a')],{'id':_0x43208c[_0x2f0828('0x1ce0')]});});let _0x3c0ae9=null;_0x1850e3[_0x64b691('0x1740')]&&(_0x3c0ae9=_0x3c8d8a()[_0x64b691('0x18ab')](_0x1850e3['interval'],{'id':Number(_0x1850e3[_0x64b691('0x1740')][_0x64b691('0x600')])}));if(_0x3c0ae9&&!_0x3c8d8a()[_0x64b691('0x1ec')](_0x5d2e0a,['id',_0x3c0ae9['id']])){const _0x5d547d=_0x3c8d8a()[_0x64b691('0x18ab')](_0x1850e3[_0x64b691('0x55a')],{'id':_0x3c0ae9['id']});_0x5d547d['canSelect']=![],_0x5d2e0a[_0x64b691('0x18bb')](_0x5d547d);}_0x1850e3[_0x64b691('0x55a')]=_0x5d2e0a;});}})[_0x1348f3('0x103c')](function(_0xe20f86){const _0x51f9a9=_0x1348f3;_0x3d92fc[_0x51f9a9('0x15aa')]({'title':_0xe20f86[_0x51f9a9('0x276f')]?'API:'+_0xe20f86['status']+_0x51f9a9('0x160c')+_0xe20f86[_0x51f9a9('0x2696')]:_0x51f9a9('0x2419'),'msg':_0xe20f86[_0x51f9a9('0x1e07')]?JSON[_0x51f9a9('0x100b')](_0xe20f86[_0x51f9a9('0x1e07')]):_0xe20f86['toString']()});});function _0x3ccd85(_0x3b59cf){const _0x920ade=_0x1348f3;_0x4180c4['go'](_0x920ade('0x1efd'),{'id':_0x3b59cf['id'],'chatWebsite':_0x3b59cf,'crudPermissions':_0x1850e3[_0x920ade('0x1dc1')]});}function _0x5d3cef(_0x365d56){const _0x1f320e=_0x1348f3;_0x4180c4['go'](_0x1f320e('0x1efd'),{'id':_0x365d56['id'],'tab':0xa});}function _0x406a13(_0x565349){const _0x2b98ba=_0x1348f3;_0x4180c4['go'](_0x2b98ba('0x1efd'),{'id':_0x565349['id'],'tab':0xb});}function _0x98810f(_0x2a9e1e,_0x2a3bb0){const _0x1626c4=_0x1348f3;_0x389af8[_0x1626c4('0x1cb7')]({'controller':_0x1626c4('0x274d'),'controllerAs':'vm','templateUrl':_0x5ea18f,'parent':angular[_0x1626c4('0xb6d')](_0xe9471a[_0x1626c4('0x1a5')]),'targetEvent':_0x2a3bb0,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x2a9e1e,'chatWebsites':_0x1850e3[_0x1626c4('0x4e3')]?_0x1850e3['chatWebsites'][_0x1626c4('0x6aa')]:[],'crudPermissions':_0x1850e3[_0x1626c4('0x1dc1')],'realtime':![]}});}function _0x538ab0(_0x5d558c,_0x2932d9){const _0x46219c=_0x1348f3,_0x1d79a2=_0x389af8['confirm']()[_0x46219c('0x20d6')](_0x46219c('0x5bb')+_0x3c8d8a()[_0x46219c('0x10e')](_0x46219c('0x1740'))+'?')[_0x46219c('0xf8b')](''+(_0x5d558c[_0x46219c('0x10ad')]||_0x46219c('0x1740'))+_0x46219c('0x24be')+'\x20will\x20be\x20deleted.')[_0x46219c('0x217')](_0x46219c('0x571'))[_0x46219c('0x21de')](_0x2932d9)['ok']('OK')[_0x46219c('0x1e1f')](_0x46219c('0x468'));_0x389af8[_0x46219c('0x1cb7')](_0x1d79a2)[_0x46219c('0x173b')](function(){_0x18e772(_0x5d558c);},function(){const _0x14e3a0=_0x46219c;console[_0x14e3a0('0xe37')]('CANCEL');});}let _0x499d3d=!![],_0x12c134=0x1;_0x35b622['$watch'](_0x1348f3('0x157b'),function(_0x218f59,_0x5617e8){const _0xf3ac04=_0x1348f3;_0x499d3d?_0x5915a2(function(){_0x499d3d=![];}):(!_0x5617e8&&(_0x12c134=_0x1850e3[_0xf3ac04('0xc49')]['page']),_0x218f59!==_0x5617e8&&(_0x1850e3['query']['page']=0x1),!_0x218f59&&(_0x1850e3[_0xf3ac04('0xc49')][_0xf3ac04('0x182e')]=_0x12c134),_0x1850e3[_0xf3ac04('0x5c2')]());});function _0x2f8243(_0x3e360a){const _0x512529=_0x1348f3;_0x1850e3[_0x512529('0x4e3')]=_0x3e360a||{'count':0x0,'rows':[]};}function _0x5a79e7(){const _0x484e14=_0x1348f3;_0x1850e3[_0x484e14('0xc49')]['offset']=(_0x1850e3[_0x484e14('0xc49')][_0x484e14('0x182e')]-0x1)*_0x1850e3['query'][_0x484e14('0x3e')],_0x5293f6[_0x484e14('0x1b4e')](_0x484e14('0x79b'))?_0x1850e3['promise']=_0x3f9286[_0x484e14('0x1740')][_0x484e14('0x1d97')](_0x1850e3[_0x484e14('0xc49')],_0x2f8243)['$promise']:(_0x1850e3[_0x484e14('0xc49')]['id']=_0x1850e3['userProfile']['id'],_0x1850e3[_0x484e14('0xc49')][_0x484e14('0x17c9')]=_0x484e14('0x27'),_0x1850e3[_0x484e14('0x2219')]=_0x3f9286[_0x484e14('0x257b')][_0x484e14('0x135b')](_0x1850e3['query'],_0x2f8243)['$promise']);}function _0x26a60b(_0xaa6dca,_0x3edae7){const _0xad5155=_0x1348f3;_0x389af8[_0xad5155('0x1cb7')]({'controller':_0xad5155('0xad3'),'controllerAs':'vm','templateUrl':_0x3e0678,'parent':angular[_0xad5155('0xb6d')](_0xe9471a[_0xad5155('0x1a5')]),'targetEvent':_0xaa6dca,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x3edae7,'chatWebsites':_0x1850e3['chatWebsites'][_0xad5155('0x6aa')],'license':_0x1850e3[_0xad5155('0x1a29')],'setting':_0x1850e3[_0xad5155('0x251')],'crudPermissions':_0x1850e3[_0xad5155('0x1dc1')]}});}function _0x18e772(_0x287575){const _0x39c3c8=_0x1348f3;_0x3f9286[_0x39c3c8('0x1740')][_0x39c3c8('0x15e8')]({'id':_0x287575['id']})[_0x39c3c8('0x1964')][_0x39c3c8('0x173b')](function(){const _0x3accec=_0x39c3c8;_0x3c8d8a()[_0x3accec('0x1a8b')](_0x1850e3[_0x3accec('0x4e3')][_0x3accec('0x6aa')],{'id':_0x287575['id']}),_0x1850e3[_0x3accec('0x4e3')]['count']-=0x1,!_0x1850e3[_0x3accec('0x4e3')][_0x3accec('0x6aa')][_0x3accec('0x543')]&&_0x1850e3['getChatWebsites'](),_0x3d92fc[_0x3accec('0xdfe')]({'title':_0x3c8d8a()[_0x3accec('0x10e')](_0x3accec('0x281a'))+_0x3accec('0x1c5e'),'msg':_0x287575['name']?_0x287575[_0x3accec('0x10ad')]+_0x3accec('0x25d2'):''});})[_0x39c3c8('0x103c')](function(_0x566684){const _0x50fe35=_0x39c3c8;if(_0x566684[_0x50fe35('0x1e07')]&&_0x566684[_0x50fe35('0x1e07')][_0x50fe35('0x1d4a')]&&_0x566684[_0x50fe35('0x1e07')]['errors'][_0x50fe35('0x543')]){_0x1850e3[_0x50fe35('0x1d4a')]=_0x566684['data'][_0x50fe35('0x1d4a')]||[{'message':_0x566684['toString'](),'type':_0x50fe35('0xaba')}];for(let _0x566a11=0x0;_0x566a11<_0x566684[_0x50fe35('0x1e07')][_0x50fe35('0x1d4a')][_0x50fe35('0x543')];_0x566a11++){_0x3d92fc[_0x50fe35('0x15aa')]({'title':_0x566684['data']['errors'][_0x566a11]['type'],'msg':_0x566684[_0x50fe35('0x1e07')][_0x50fe35('0x1d4a')][_0x566a11][_0x50fe35('0x67f')]});}}else _0x3d92fc[_0x50fe35('0x15aa')]({'title':_0x566684[_0x50fe35('0x276f')]?'API:'+_0x566684[_0x50fe35('0x276f')]+_0x50fe35('0x160c')+_0x566684[_0x50fe35('0x2696')]:_0x50fe35('0xaba'),'msg':_0x566684[_0x50fe35('0x1e07')]?JSON[_0x50fe35('0x100b')](_0x566684[_0x50fe35('0x1e07')]['message']):_0x566684[_0x50fe35('0x67f')]||_0x566684[_0x50fe35('0x1b75')]()});});}function _0x563851(){const _0x554cf7=_0x1348f3,_0x1599dc=angular[_0x554cf7('0x2e3')](_0x1850e3[_0x554cf7('0x874')]);return _0x1850e3['selectedChatWebsites']=[],_0x1599dc;}function _0x2bd118(_0x380d58){const _0x39a371=_0x1348f3,_0x1df438=_0x389af8[_0x39a371('0x1d02')]()[_0x39a371('0x20d6')](_0x39a371('0xc55'))[_0x39a371('0xf8b')](_0x39a371('0x15b9')+_0x1850e3[_0x39a371('0x874')]['length']+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x39a371('0x217')](_0x39a371('0x1b4'))[_0x39a371('0x21de')](_0x380d58)['ok']('OK')[_0x39a371('0x1e1f')](_0x39a371('0x468'));_0x389af8['show'](_0x1df438)['then'](function(){const _0x572518=_0x39a371;_0x1850e3[_0x572518('0x874')][_0x572518('0xa6a')](function(_0x477be7){_0x18e772(_0x477be7);}),_0x1850e3[_0x572518('0x874')]=[];});}function _0x3c0886(){const _0x2a1526=_0x1348f3;_0x1850e3[_0x2a1526('0x874')]=[];}function _0x3893c6(){const _0x40e3d8=_0x1348f3;_0x1850e3[_0x40e3d8('0x874')]=_0x1850e3['chatWebsites'][_0x40e3d8('0x6aa')];}}const _0x4ab1c4=_0x2cebc6;_0x19ab86[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q','$translate','toasty',_0x566993('0x4e3'),_0x566993('0x1740'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x19ab86(_0x1ef1c4,_0x1b8849,_0x18d87b,_0xf04612,_0xbdb80f,_0x12dffc,_0x515f0f,_0xfd0b55,_0x320dda,_0x5ec2cc,_0x47d865,_0x34075d,_0x3e84d2,_0x490e03){const _0x5cc40c=_0x566993,_0x4591eb=this;_0x4591eb[_0x5cc40c('0x155f')]=_0x47d865[_0x5cc40c('0x14d4')](),_0x4591eb[_0x5cc40c('0x1d4a')]=[],_0x4591eb[_0x5cc40c('0x251')]=_0x3e84d2,_0x4591eb[_0x5cc40c('0x1a29')]=_0x34075d,_0x4591eb['crudPermissions']=_0x490e03,_0x4591eb[_0x5cc40c('0xb0')]={},_0x4591eb[_0x5cc40c('0x644')]=_0x4591eb[_0x5cc40c('0x251')]&&_0x4591eb[_0x5cc40c('0x251')][_0x5cc40c('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4591eb['title']=_0x5cc40c('0xb71'),_0x4591eb[_0x5cc40c('0x1740')]=angular[_0x5cc40c('0x2e3')](_0x320dda),_0x4591eb[_0x5cc40c('0x4e3')]=_0xfd0b55,_0x4591eb['newChatWebsite']=![];!_0x4591eb[_0x5cc40c('0x1740')]&&(_0x4591eb[_0x5cc40c('0x1740')]={'remote':_0x18d87b[_0x5cc40c('0x375')]()+_0x5cc40c('0x122b')+_0x18d87b[_0x5cc40c('0x4d1')]()+(_0x18d87b[_0x5cc40c('0xe0d')]()?':'+_0x18d87b['port']():''),'header_shape':'rounded','alignment':_0x5cc40c('0x205e'),'verticalAlignment':0x1e,'messagesAlignment':_0x5cc40c('0xf35'),'IntervalId':_0x5cc40c('0x877'),'timezone':_0x5cc40c('0x877'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x4591eb[_0x5cc40c('0x20d6')]=_0x5cc40c('0x128a'),_0x4591eb[_0x5cc40c('0x46a')]=!![]);_0x1b8849[_0x5cc40c('0x197a')]['id']&&(_0x4591eb[_0x5cc40c('0x1740')][_0x5cc40c('0x1796')]=_0x1b8849[_0x5cc40c('0x197a')]['id']);_0x4591eb[_0x5cc40c('0xac1')]=_0x2a2544,_0x4591eb[_0x5cc40c('0x152d')]=_0x22a78b,_0x4591eb[_0x5cc40c('0x155e')]=_0x27f3fc,_0x4591eb['getDateFromString']=_0x1867fe,_0x4591eb[_0x5cc40c('0x18e2')]=_0x394464,_0x47d865[_0x5cc40c('0x1b4e')](_0x5cc40c('0x79b'))?_0x5ec2cc['cmList'][_0x5cc40c('0x1d97')]({'fields':_0x5cc40c('0xd52'),'sort':_0x5cc40c('0x10ad')})[_0x5cc40c('0x1964')]['then'](function(_0x144a6a){const _0x1943f6=_0x5cc40c;_0x4591eb[_0x1943f6('0x9e8')]=_0x144a6a[_0x1943f6('0x6aa')]||[];})[_0x5cc40c('0x103c')](function(_0x4a4a94){const _0x196474=_0x5cc40c;_0x515f0f[_0x196474('0x15aa')]({'title':_0x4a4a94[_0x196474('0x276f')]?_0x196474('0x137')+_0x4a4a94[_0x196474('0x276f')]+'\x20-\x20'+_0x4a4a94[_0x196474('0x2696')]:_0x196474('0x1d5c'),'msg':_0x4a4a94[_0x196474('0x1e07')]?JSON['stringify'](_0x4a4a94[_0x196474('0x1e07')]):_0x4a4a94[_0x196474('0x1b75')]()});}):_0x5ec2cc[_0x5cc40c('0xbb3')][_0x5cc40c('0x1d97')]({'fields':_0x5cc40c('0xd52'),'sort':_0x5cc40c('0x10ad')})[_0x5cc40c('0x1964')][_0x5cc40c('0x173b')](function(_0x3475a6){const _0x42e311=_0x5cc40c;_0x4591eb[_0x42e311('0x9e8')]=_0x3475a6['rows']||[];})[_0x5cc40c('0x173b')](function(){const _0x1543a5=_0x5cc40c;return _0x5ec2cc[_0x1543a5('0x170e')][_0x1543a5('0x1d97')]({'userProfileId':_0x4591eb[_0x1543a5('0x155f')]['userProfileId'],'sectionId':0x12d})[_0x1543a5('0x1964')];})[_0x5cc40c('0x173b')](function(_0x39ed0b){const _0x187ffb=_0x5cc40c,_0x438fe9=_0x39ed0b&&_0x39ed0b[_0x187ffb('0x6aa')]?_0x39ed0b[_0x187ffb('0x6aa')][0x0]:null;if(!_0x438fe9){const _0x4a281c=[];let _0x10afe9=null;_0x4591eb['chatWebsite']&&(_0x10afe9=_0x3c8d8a()[_0x187ffb('0x18ab')](_0x4591eb[_0x187ffb('0x9e8')],{'id':Number(_0x4591eb[_0x187ffb('0x1740')][_0x187ffb('0xef2')])}));for(let _0x5e7a44=0x0;_0x5e7a44<_0x4591eb[_0x187ffb('0x9e8')][_0x187ffb('0x543')];_0x5e7a44++){_0x10afe9&&_0x4591eb[_0x187ffb('0x9e8')][_0x5e7a44]['id']===_0x10afe9['id']&&(_0x4591eb[_0x187ffb('0x9e8')][_0x5e7a44][_0x187ffb('0x268e')]=![],_0x4a281c[_0x187ffb('0x18bb')](_0x4591eb[_0x187ffb('0x9e8')][_0x5e7a44]));}_0x4591eb[_0x187ffb('0x9e8')]=_0x4a281c;}else{if(!_0x438fe9['autoAssociation'])return _0x5ec2cc[_0x187ffb('0xda9')][_0x187ffb('0x1d97')]({'sectionId':_0x438fe9['id']})[_0x187ffb('0x1964')][_0x187ffb('0x173b')](function(_0x4a147f){const _0x3e08d4=_0x187ffb,_0x475d85=_0x3c8d8a()[_0x3e08d4('0x8a2')](_0x4a147f[_0x3e08d4('0x6aa')],function(_0x14c7d6){const _0x88a7a=_0x3e08d4;return _0x3c8d8a()[_0x88a7a('0x18ab')](_0x4591eb[_0x88a7a('0x9e8')],{'id':_0x14c7d6['resourceId']});});let _0x3c7b63=null;_0x4591eb[_0x3e08d4('0x1740')]&&(_0x3c7b63=_0x3c8d8a()[_0x3e08d4('0x18ab')](_0x4591eb[_0x3e08d4('0x9e8')],{'id':Number(_0x4591eb['chatWebsite']['ListId'])}));if(_0x3c7b63&&!_0x3c8d8a()[_0x3e08d4('0x1ec')](_0x475d85,['id',_0x3c7b63['id']])){const _0x509309=_0x3c8d8a()['find'](_0x4591eb[_0x3e08d4('0x9e8')],{'id':_0x3c7b63['id']});_0x509309[_0x3e08d4('0x268e')]=![],_0x475d85['push'](_0x509309);}_0x4591eb['lists']=_0x475d85;});}})[_0x5cc40c('0x103c')](function(_0x407ed0){const _0x4a8e51=_0x5cc40c;_0x515f0f[_0x4a8e51('0x15aa')]({'title':_0x407ed0[_0x4a8e51('0x276f')]?'API:'+_0x407ed0[_0x4a8e51('0x276f')]+_0x4a8e51('0x160c')+_0x407ed0[_0x4a8e51('0x2696')]:_0x4a8e51('0x1292'),'msg':_0x407ed0['data']?JSON[_0x4a8e51('0x100b')](_0x407ed0[_0x4a8e51('0x1e07')]):_0x407ed0[_0x4a8e51('0x1b75')]()});}),_0x47d865[_0x5cc40c('0x1b4e')](_0x5cc40c('0x79b'))?_0x5ec2cc[_0x5cc40c('0x55a')][_0x5cc40c('0x1d97')]({'fields':_0x5cc40c('0xd52'),'sort':_0x5cc40c('0x10ad'),'IntervalId':_0x5cc40c('0x877')})[_0x5cc40c('0x1964')]['then'](function(_0x546f27){const _0x30cd94=_0x5cc40c;_0x4591eb[_0x30cd94('0x55a')]=_0x546f27[_0x30cd94('0x6aa')]||[];})['catch'](function(_0x5096a9){const _0x4fc3db=_0x5cc40c;_0x515f0f[_0x4fc3db('0x15aa')]({'title':_0x5096a9[_0x4fc3db('0x276f')]?'API:'+_0x5096a9[_0x4fc3db('0x276f')]+_0x4fc3db('0x160c')+_0x5096a9[_0x4fc3db('0x2696')]:_0x4fc3db('0x1f4b'),'msg':_0x5096a9['data']?JSON[_0x4fc3db('0x100b')](_0x5096a9[_0x4fc3db('0x1e07')]):_0x5096a9['toString']()});}):_0x5ec2cc['interval']['get']({'fields':_0x5cc40c('0xd52'),'sort':_0x5cc40c('0x10ad'),'IntervalId':_0x5cc40c('0x877')})[_0x5cc40c('0x1964')]['then'](function(_0x5848c2){const _0x5267a3=_0x5cc40c;_0x4591eb[_0x5267a3('0x55a')]=_0x5848c2[_0x5267a3('0x6aa')]||[];})[_0x5cc40c('0x173b')](function(){const _0x46feff=_0x5cc40c;return _0x5ec2cc[_0x46feff('0x170e')][_0x46feff('0x1d97')]({'userProfileId':_0x4591eb[_0x46feff('0x155f')][_0x46feff('0x1946')],'sectionId':0x3ec})[_0x46feff('0x1964')];})['then'](function(_0x2c7148){const _0x3b095b=_0x5cc40c,_0x457c58=_0x2c7148&&_0x2c7148[_0x3b095b('0x6aa')]?_0x2c7148[_0x3b095b('0x6aa')][0x0]:null;if(!_0x457c58){const _0x28acc6=[];let _0x3326a3=null;_0x4591eb[_0x3b095b('0x1740')]&&(_0x3326a3=_0x3c8d8a()[_0x3b095b('0x18ab')](_0x4591eb[_0x3b095b('0x55a')],{'id':Number(_0x4591eb[_0x3b095b('0x1740')][_0x3b095b('0x600')])}));for(let _0x4c8e7e=0x0;_0x4c8e7e<_0x4591eb[_0x3b095b('0x55a')]['length'];_0x4c8e7e++){_0x3326a3&&_0x4591eb['interval'][_0x4c8e7e]['id']===_0x3326a3['id']&&(_0x4591eb['interval'][_0x4c8e7e][_0x3b095b('0x268e')]=![],_0x28acc6['push'](_0x4591eb[_0x3b095b('0x55a')][_0x4c8e7e]));}_0x4591eb[_0x3b095b('0x55a')]=_0x28acc6;}else{if(!_0x457c58[_0x3b095b('0x273e')])return _0x5ec2cc[_0x3b095b('0xda9')][_0x3b095b('0x1d97')]({'sectionId':_0x457c58['id']})[_0x3b095b('0x1964')]['then'](function(_0x3a2b9c){const _0x5d2ab7=_0x3b095b,_0x3c7e40=_0x3c8d8a()[_0x5d2ab7('0x8a2')](_0x3a2b9c[_0x5d2ab7('0x6aa')],function(_0xef85f6){const _0x11e8f1=_0x5d2ab7;return _0x3c8d8a()[_0x11e8f1('0x18ab')](_0x4591eb['interval'],{'id':_0xef85f6[_0x11e8f1('0x1ce0')]});});let _0x4f0ef0=null;_0x4591eb[_0x5d2ab7('0x1740')]&&(_0x4f0ef0=_0x3c8d8a()[_0x5d2ab7('0x18ab')](_0x4591eb[_0x5d2ab7('0x55a')],{'id':Number(_0x4591eb[_0x5d2ab7('0x1740')]['IntervalId'])}));if(_0x4f0ef0&&!_0x3c8d8a()[_0x5d2ab7('0x1ec')](_0x3c7e40,['id',_0x4f0ef0['id']])){const _0x3251fa=_0x3c8d8a()[_0x5d2ab7('0x18ab')](_0x4591eb[_0x5d2ab7('0x55a')],{'id':_0x4f0ef0['id']});_0x3251fa[_0x5d2ab7('0x268e')]=![],_0x3c7e40[_0x5d2ab7('0x18bb')](_0x3251fa);}_0x4591eb[_0x5d2ab7('0x55a')]=_0x3c7e40;});}})[_0x5cc40c('0x103c')](function(_0x791ca){const _0x1ccfa0=_0x5cc40c;_0x515f0f[_0x1ccfa0('0x15aa')]({'title':_0x791ca[_0x1ccfa0('0x276f')]?_0x1ccfa0('0x137')+_0x791ca['status']+_0x1ccfa0('0x160c')+_0x791ca[_0x1ccfa0('0x2696')]:_0x1ccfa0('0x2419'),'msg':_0x791ca[_0x1ccfa0('0x1e07')]?JSON[_0x1ccfa0('0x100b')](_0x791ca[_0x1ccfa0('0x1e07')]):_0x791ca['toString']()});});function _0x2a2544(){const _0x4e61ed=_0x5cc40c;_0x4591eb[_0x4e61ed('0x1d4a')]=[],_0x5ec2cc[_0x4e61ed('0x1740')]['save'](_0x4591eb[_0x4e61ed('0x1740')])[_0x4e61ed('0x1964')][_0x4e61ed('0x173b')](function(_0x410156){const _0x2adbe2=_0x4e61ed;_0x4591eb[_0x2adbe2('0x4e3')][_0x2adbe2('0x1377')](_0x410156[_0x2adbe2('0xf1f')]()),_0x515f0f['success']({'title':'ChatWebsite\x20properly\x20created','msg':_0x4591eb[_0x2adbe2('0x1740')][_0x2adbe2('0x10ad')]?_0x4591eb[_0x2adbe2('0x1740')][_0x2adbe2('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x394464(_0x410156);})[_0x4e61ed('0x103c')](function(_0xda6334){const _0x551fd1=_0x4e61ed;if(_0xda6334[_0x551fd1('0x1e07')]&&_0xda6334[_0x551fd1('0x1e07')]['errors']&&_0xda6334[_0x551fd1('0x1e07')]['errors'][_0x551fd1('0x543')]){_0x4591eb[_0x551fd1('0x1d4a')]=_0xda6334['data']['errors']||[{'message':_0xda6334['toString'](),'type':_0x551fd1('0x1e40')}];for(let _0x5b7638=0x0;_0x5b7638<_0xda6334[_0x551fd1('0x1e07')][_0x551fd1('0x1d4a')][_0x551fd1('0x543')];_0x5b7638+=0x1){_0x515f0f[_0x551fd1('0x15aa')]({'title':_0xda6334[_0x551fd1('0x1e07')][_0x551fd1('0x1d4a')][_0x5b7638][_0x551fd1('0x1810')],'msg':_0xda6334[_0x551fd1('0x1e07')][_0x551fd1('0x1d4a')][_0x5b7638][_0x551fd1('0x67f')]});}}else _0x515f0f[_0x551fd1('0x15aa')]({'title':_0xda6334[_0x551fd1('0x276f')]?'API:'+_0xda6334[_0x551fd1('0x276f')]+_0x551fd1('0x160c')+_0xda6334[_0x551fd1('0x2696')]:_0x551fd1('0x1e40'),'msg':_0xda6334[_0x551fd1('0x1e07')]?JSON['stringify'](_0xda6334[_0x551fd1('0x1e07')]['message']):_0xda6334[_0x551fd1('0x1b75')]()});});}function _0x22a78b(){const _0xde21e9=_0x5cc40c;_0x4591eb[_0xde21e9('0x1d4a')]=[],_0x5ec2cc[_0xde21e9('0x1740')]['update']({'id':_0x4591eb[_0xde21e9('0x1740')]['id']},_0x4591eb[_0xde21e9('0x1740')])[_0xde21e9('0x1964')][_0xde21e9('0x173b')](function(_0x12d92d){const _0x5a6291=_0xde21e9,_0x2eb819=_0x3c8d8a()['find'](_0x4591eb['chatWebsites'],{'id':_0x12d92d['id']});_0x2eb819&&_0x3c8d8a()[_0x5a6291('0x9ef')](_0x2eb819,_0x3c8d8a()['pick'](_0x12d92d[_0x5a6291('0xf1f')](),_0x3c8d8a()[_0x5a6291('0x1d3e')](_0x2eb819))),_0x515f0f['success']({'title':_0x5a6291('0x140b'),'msg':_0x4591eb['chatWebsite']['name']?_0x4591eb[_0x5a6291('0x1740')][_0x5a6291('0x10ad')]+_0x5a6291('0x2788'):''}),_0x394464(_0x12d92d);})[_0xde21e9('0x103c')](function(_0x1117ae){const _0x34fc8c=_0xde21e9;if(_0x1117ae[_0x34fc8c('0x1e07')]&&_0x1117ae['data'][_0x34fc8c('0x1d4a')]&&_0x1117ae[_0x34fc8c('0x1e07')][_0x34fc8c('0x1d4a')][_0x34fc8c('0x543')]){_0x4591eb['errors']=_0x1117ae[_0x34fc8c('0x1e07')]['errors']||[{'message':_0x1117ae['toString'](),'type':_0x34fc8c('0x36f')}];for(let _0x34ba9d=0x0;_0x34ba9d<_0x1117ae[_0x34fc8c('0x1e07')][_0x34fc8c('0x1d4a')][_0x34fc8c('0x543')];_0x34ba9d++){_0x515f0f[_0x34fc8c('0x15aa')]({'title':_0x1117ae[_0x34fc8c('0x1e07')][_0x34fc8c('0x1d4a')][_0x34ba9d][_0x34fc8c('0x1810')],'msg':_0x1117ae[_0x34fc8c('0x1e07')][_0x34fc8c('0x1d4a')][_0x34ba9d][_0x34fc8c('0x67f')]});}}else _0x515f0f['error']({'title':_0x1117ae[_0x34fc8c('0x276f')]?_0x34fc8c('0x137')+_0x1117ae[_0x34fc8c('0x276f')]+'\x20-\x20'+_0x1117ae['statusText']:_0x34fc8c('0x36f'),'msg':_0x1117ae['data']?JSON[_0x34fc8c('0x100b')](_0x1117ae['data']['message']):_0x1117ae[_0x34fc8c('0x1b75')]()});});}function _0x27f3fc(_0x3d4e80){const _0x2dedca=_0x5cc40c;_0x4591eb[_0x2dedca('0x1d4a')]=[];const _0x528a2c=_0xf04612['confirm']()[_0x2dedca('0x20d6')](_0x2dedca('0x8ef'))['content']('The\x20chatWebsite\x20will\x20be\x20deleted.')[_0x2dedca('0x217')](_0x2dedca('0xf51'))['ok'](_0x2dedca('0x2373'))[_0x2dedca('0x1e1f')](_0x2dedca('0x1d4e'))[_0x2dedca('0x21de')](_0x3d4e80);_0xf04612[_0x2dedca('0x1cb7')](_0x528a2c)[_0x2dedca('0x173b')](function(){const _0x6b15b8=_0x2dedca;_0x5ec2cc[_0x6b15b8('0x1740')][_0x6b15b8('0x15e8')]({'id':_0x4591eb[_0x6b15b8('0x1740')]['id']})[_0x6b15b8('0x1964')]['then'](function(){const _0x4a712d=_0x6b15b8;_0x3c8d8a()['remove'](_0x4591eb[_0x4a712d('0x4e3')],{'id':_0x4591eb['chatWebsite']['id']}),_0x515f0f[_0x4a712d('0xdfe')]({'title':_0x4a712d('0x10fe'),'msg':(_0x4591eb[_0x4a712d('0x1740')][_0x4a712d('0x10ad')]||'chatWebsite')+_0x4a712d('0x25d2')}),_0x394464(_0x4591eb[_0x4a712d('0x1740')]);})[_0x6b15b8('0x103c')](function(_0x46661f){const _0x356085=_0x6b15b8;if(_0x46661f['data']&&_0x46661f['data']['errors']&&_0x46661f['data'][_0x356085('0x1d4a')][_0x356085('0x543')]){_0x4591eb[_0x356085('0x1d4a')]=_0x46661f[_0x356085('0x1e07')]['errors']||[{'message':_0x46661f[_0x356085('0x1b75')](),'type':_0x356085('0x13e1')}];for(let _0x2f5dca=0x0;_0x2f5dca<_0x46661f[_0x356085('0x1e07')][_0x356085('0x1d4a')][_0x356085('0x543')];_0x2f5dca++){_0x515f0f[_0x356085('0x15aa')]({'title':_0x46661f[_0x356085('0x1e07')][_0x356085('0x1d4a')][_0x2f5dca]['type'],'msg':_0x46661f[_0x356085('0x1e07')][_0x356085('0x1d4a')][_0x2f5dca][_0x356085('0x67f')]});}}else _0x515f0f[_0x356085('0x15aa')]({'title':_0x46661f[_0x356085('0x276f')]?_0x356085('0x137')+_0x46661f[_0x356085('0x276f')]+'\x20-\x20'+_0x46661f['statusText']:_0x356085('0x13e1'),'msg':_0x46661f[_0x356085('0x1e07')]?JSON['stringify'](_0x46661f[_0x356085('0x1e07')][_0x356085('0x67f')]):_0x46661f[_0x356085('0x67f')]||_0x46661f[_0x356085('0x1b75')]()});});},function(){});}function _0x1867fe(_0x1cb93b){return _0x1cb93b===null?undefined:new Date(_0x1cb93b);}function _0x394464(_0x6c1d8a){const _0x5ddff6=_0x5cc40c;_0xf04612[_0x5ddff6('0x1cf4')](_0x6c1d8a);}}const _0x4ac4fa=_0x19ab86,_0x5a58ff=_0x21a6a1['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog.html',_0x55444c=_0x21a6a1['p']+_0x566993('0x1167'),_0x1ae2fb=_0x21a6a1['p']+_0x566993('0xf07'),_0x404358=_0x21a6a1['p']+_0x566993('0x2846'),_0x429d45=_0x21a6a1['p']+_0x566993('0x1a0c'),_0x3bdf36=_0x21a6a1['p']+_0x566993('0x2b3'),_0x39a687=_0x21a6a1['p']+_0x566993('0x2264'),_0x293d83=_0x21a6a1['p']+_0x566993('0x2212'),_0x50e1e6=_0x21a6a1['p']+_0x566993('0x245b'),_0x325991=_0x21a6a1['p']+_0x566993('0x229'),_0x5eafe1=_0x21a6a1['p']+_0x566993('0x95'),_0x522601=_0x21a6a1['p']+_0x566993('0xf8');_0x1c2be8['$inject']=[_0x566993('0xbd4'),'$mdDialog','$document','toasty',_0x566993('0x1600')];const _0x5537e8={'agent':_0x5a58ff,'amazonlex':_0x55444c,'autoreply':_0x1ae2fb,'close':_0x404358,'dialogflow':_0x429d45,'gotoif':_0x3bdf36,'gotop':_0x39a687,'interval':_0x293d83,'noop':_0x50e1e6,'queue':_0x325991,'system':_0x5eafe1,'tag':_0x522601};function _0x1c2be8(_0x296c3e,_0x1dd0fe,_0x168bd9,_0xdd1b6f,_0x32afa3){const _0x39a74b=_0x566993,_0x447eeb=this;_0x447eeb[_0x39a74b('0x155f')]=_0x32afa3[_0x39a74b('0x14d4')](),_0x447eeb['chatWebsite']={},_0x447eeb[_0x39a74b('0x24a2')]={'count':0x0,'rows':[]},_0x447eeb[_0x39a74b('0x862')]=[],_0x447eeb['crudPermissions'],_0x447eeb['query']={'sort':_0x39a74b('0xb3')},_0x447eeb['apps']=_0x3c8d8a()[_0x39a74b('0x12a4')](_0x3c8d8a()[_0x39a74b('0x1b45')]([{'app':_0x39a74b('0x1d55'),'appType':_0x39a74b('0x55a'),'types':[_0x39a74b('0x17b3'),_0x39a74b('0xbb4'),_0x39a74b('0x3e3')],'fields':[],'isApp':![]},{'app':'noop','appType':_0x39a74b('0x1086'),'type':'noop','icon':'icon-apps','interval':_0x39a74b('0x17c5'),'required':!![],'isApp':!![],'fields':[{'title':_0x39a74b('0x1997'),'name':_0x39a74b('0xa7b'),'type':_0x39a74b('0x86e'),'param':0x0}]},{'app':_0x39a74b('0x1ed'),'appType':_0x39a74b('0x1ed'),'type':'system','icon':_0x39a74b('0x108b'),'interval':_0x39a74b('0x17c5'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x39a74b('0x1b56'),'key':_0x39a74b('0x10ad')},'route':_0x39a74b('0x1b56'),'filters':{'fields':_0x39a74b('0xd52'),'sort':_0x39a74b('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x39a74b('0x1bfd'),'name':_0x39a74b('0xdc4'),'type':_0x39a74b('0x86e'),'required':!![],'param':0x0},{'title':_0x39a74b('0xae6'),'name':_0x39a74b('0x1b56'),'type':_0x39a74b('0x23fd'),'values':_0x39a74b('0x2715'),'value':_0x39a74b('0x1fd4'),'option':_0x39a74b('0x1fd4'),'defaultValues':[{'value':'\x27\x27','option':_0x39a74b('0x2187')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x39a74b('0x2ac'),'appType':_0x39a74b('0x2ac'),'type':_0x39a74b('0x2016'),'icon':_0x39a74b('0x108b'),'interval':_0x39a74b('0x17c5'),'isApp':!![],'fields':[{'title':_0x39a74b('0x1162'),'name':_0x39a74b('0xb3'),'type':_0x39a74b('0x1d81'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x39a74b('0xf5d'),'appType':'gotoif','type':'gotoif','icon':_0x39a74b('0x108b'),'interval':_0x39a74b('0x17c5'),'isApp':!![],'fields':[{'title':_0x39a74b('0x5f4'),'name':_0x39a74b('0x1adb'),'type':_0x39a74b('0x86e'),'required':!![],'param':0x0},{'title':_0x39a74b('0x1cd7'),'name':_0x39a74b('0x1cd7'),'type':_0x39a74b('0x1d81'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x39a74b('0x1ec9'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x39a74b('0x172'),'appType':_0x39a74b('0x172'),'foreignKey':'ChatQueueId','type':'queue','icon':'icon-apps','interval':_0x39a74b('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x39a74b('0xeae'),'field':{'name':_0x39a74b('0x172'),'key':_0x39a74b('0x10ad')},'route':_0x39a74b('0x940'),'filters':{'fields':_0x39a74b('0x1c66'),'sort':'name','nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':'Queue','name':'queue','type':_0x39a74b('0x23fd'),'values':'queues','value':_0x39a74b('0x26db'),'option':_0x39a74b('0x26db'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x39a74b('0x1b9a'),'name':_0x39a74b('0x1f84'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x39a74b('0x7b0'),'appType':_0x39a74b('0x7b0'),'type':_0x39a74b('0x7b0'),'foreignKey':_0x39a74b('0x181c'),'icon':_0x39a74b('0x108b'),'interval':_0x39a74b('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x39a74b('0x11fa'),'field':{'name':_0x39a74b('0x7b0'),'key':_0x39a74b('0x10ad')},'route':'user','filters':{'fields':_0x39a74b('0xd52'),'role':_0x39a74b('0x7b0'),'sort':_0x39a74b('0x10ad'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x39a74b('0x7b0'),'type':_0x39a74b('0x23fd'),'values':_0x39a74b('0x11fa'),'value':_0x39a74b('0x660'),'option':_0x39a74b('0x660'),'required':!![],'param':0x0},{'title':_0x39a74b('0x1b9a'),'name':_0x39a74b('0x1f84'),'type':_0x39a74b('0x1d81'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x39a74b('0x2151'),'appType':'close','type':_0x39a74b('0x2151'),'icon':_0x39a74b('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Disposition','name':_0x39a74b('0x2766'),'type':_0x39a74b('0x86e'),'required':!![],'param':0x0}]},{'app':_0x39a74b('0x23fe'),'appType':_0x39a74b('0x23fe'),'type':'autoreply','icon':_0x39a74b('0x108b'),'interval':_0x39a74b('0x17c5'),'isApp':!![],'fields':[{'title':_0x39a74b('0x611'),'name':_0x39a74b('0x611'),'type':_0x39a74b('0xc65'),'defaultValue':'1','values':[{'option':_0x39a74b('0x1f24'),'value':'1'},{'option':'Always','value':'0'}],'required':!![],'param':0x0},{'title':_0x39a74b('0x381'),'name':_0x39a74b('0x86e'),'type':_0x39a74b('0x5de'),'required':!![],'param':0x1}]},{'app':_0x39a74b('0x23b4'),'appType':_0x39a74b('0x23b4'),'type':'tag','foreignKey':_0x39a74b('0xe46'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x39a74b('0x22ac'),'field':{'name':_0x39a74b('0x23b4'),'key':_0x39a74b('0x10ad')},'route':'tag','filters':{'fields':_0x39a74b('0xd52'),'sort':_0x39a74b('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x39a74b('0x460'),'name':_0x39a74b('0x23b4'),'type':_0x39a74b('0x23fd'),'values':_0x39a74b('0x22ac'),'value':_0x39a74b('0x2648'),'option':_0x39a74b('0x2648'),'required':!![],'param':0x0}]},{'app':_0x39a74b('0x1601'),'appType':'dialogflow','type':_0x39a74b('0x1601'),'icon':'icon-apps','interval':_0x39a74b('0x17c5'),'isApp':!![],'fields':[{'title':_0x39a74b('0x1e9b'),'name':_0x39a74b('0x237a'),'type':_0x39a74b('0x86e'),'required':!![],'param':0x0},{'title':_0x39a74b('0x604'),'name':_0x39a74b('0x604'),'type':'select','defaultValue':_0x39a74b('0x910'),'values':[{'option':'Danish','value':'\x27da\x27'},{'option':'English','value':_0x39a74b('0x910')},{'option':_0x39a74b('0x12d4'),'value':_0x39a74b('0x5ac')},{'option':_0x39a74b('0x24e4'),'value':'\x27it\x27'},{'option':'Spanish','value':'\x27es\x27'},{'option':_0x39a74b('0xcdd'),'value':_0x39a74b('0x2293')},{'option':'Indonesian','value':_0x39a74b('0x1c9d')},{'option':_0x39a74b('0x191f'),'value':_0x39a74b('0xa78')},{'option':'Korean\x20(South\x20Korea)','value':_0x39a74b('0x176b')},{'option':'Dutch','value':'\x27nl\x27'},{'option':_0x39a74b('0x1930'),'value':_0x39a74b('0x13d1')},{'option':'Portuguese\x20(European)','value':_0x39a74b('0x6db')},{'option':_0x39a74b('0x1827'),'value':_0x39a74b('0xfc7')},{'option':_0x39a74b('0x1992'),'value':_0x39a74b('0x2332')},{'option':_0x39a74b('0x25a9'),'value':_0x39a74b('0x804')},{'option':_0x39a74b('0x1320'),'value':'\x27th\x27'},{'option':_0x39a74b('0x302'),'value':'\x27uk\x27'},{'option':_0x39a74b('0x92d'),'value':'\x27zh-CN\x27'},{'option':_0x39a74b('0xc9'),'value':_0x39a74b('0x2218')},{'option':_0x39a74b('0x1b43'),'value':_0x39a74b('0x1e6')}],'required':!![],'param':0x1},{'title':_0x39a74b('0x1a7'),'name':_0x39a74b('0x1a7'),'type':_0x39a74b('0x5de'),'maxlength':0xff,'param':0x2,'help':!![]}]},{'app':_0x39a74b('0x1680'),'appType':_0x39a74b('0x1680'),'type':_0x39a74b('0x1680'),'icon':_0x39a74b('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x39a74b('0x2e0'),'name':_0x39a74b('0x2e0'),'type':_0x39a74b('0x86e'),'required':!![],'param':0x0},{'title':_0x39a74b('0x1d93'),'name':'secretaccesskey','type':'text','required':!![],'param':0x1},{'title':_0x39a74b('0x10fc'),'name':'lexregion','type':'select','defaultValue':_0x39a74b('0x1ee4'),'values':[{'option':_0x39a74b('0x225b'),'value':_0x39a74b('0x1ee4')},{'option':'US\x20West\x20(Oregon)','value':_0x39a74b('0x116a')},{'option':_0x39a74b('0x1d48'),'value':'\x27eu-west-1\x27'},{'option':_0x39a74b('0x146a'),'value':_0x39a74b('0xd64')}],'required':!![],'param':0x2},{'title':_0x39a74b('0x53'),'name':_0x39a74b('0x53'),'type':'text','required':!![],'param':0x3},{'title':_0x39a74b('0x1a7'),'name':_0x39a74b('0x1a7'),'type':_0x39a74b('0x5de'),'maxlength':0xff,'param':0x4,'help':!![]}]}],[_0x39a74b('0x17e')]),{'isApp':![]}),_0x447eeb['list']={'group':{'name':_0x39a74b('0x1749'),'pull':_0x39a74b('0x979')},'animation':0x64,'sort':![]},_0x447eeb[_0x39a74b('0x1f7e')]={'group':{'name':_0x39a74b('0x1fb7'),'put':_0x39a74b('0x1749')},'animation':0x64,'onAdd':function(_0x179bd5){_0x44ff19(_0x179bd5,_0x179bd5['newIndex']);},'onSort':function(){_0x487c6b();}},_0x447eeb['init']=_0x166306,_0x447eeb[_0x39a74b('0x2051')]=_0x4c74a7,_0x447eeb[_0x39a74b('0xc77')]=_0x55d3e4,_0x447eeb[_0x39a74b('0x74')]=_0x44ff19,_0x447eeb[_0x39a74b('0xc28')]=_0x38ff39,_0x447eeb[_0x39a74b('0x19cb')]=_0x2fc982,_0x447eeb[_0x39a74b('0x9bf')]=_0x1b4aa8,_0x447eeb[_0x39a74b('0x131f')]=_0x487c6b,_0x447eeb[_0x39a74b('0xf77')]=_0x2608c8;function _0x166306(_0x4a6053,_0x34a125){const _0x29a38d=_0x39a74b;_0x447eeb[_0x29a38d('0x1740')]=_0x4a6053,_0x447eeb[_0x29a38d('0x1dc1')]=typeof _0x34a125!==_0x29a38d('0x6e5')?_0x34a125:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x447eeb['applications'][_0x29a38d('0x6fc')]=!_0x447eeb[_0x29a38d('0x1dc1')][_0x29a38d('0x1f3d')]?!![]:![],_0x447eeb[_0x29a38d('0xc49')]['id']=_0x4a6053['id'],_0x447eeb[_0x29a38d('0xc49')]['isApp']=!![],_0x447eeb[_0x29a38d('0xc49')][_0x29a38d('0x1c7f')]=!![],_0x447eeb[_0x29a38d('0xc77')](),_0x447eeb['getIntervals']();}function _0x4c74a7(_0xa4c4b0,_0x37533f,_0xe821be){const _0x3bbead=_0x39a74b,_0x51bb2b=_0x1dd0fe['confirm']()['title'](_0x3bbead('0xbac'))[_0x3bbead('0xf8b')](_0x3bbead('0x15b9')+_0xa4c4b0[_0x3bbead('0x17e')]+_0x3bbead('0x24be')+_0x3bbead('0xd23'))['ariaLabel'](_0x3bbead('0x499'))[_0x3bbead('0x21de')](_0xe821be)['ok']('OK')[_0x3bbead('0x1e1f')](_0x3bbead('0x468'));_0x1dd0fe[_0x3bbead('0x1cb7')](_0x51bb2b)['then'](function(){const _0xfa7639=_0x3bbead;_0x447eeb['chatWebsiteApps'][_0xfa7639('0x6aa')][_0xfa7639('0x553')](_0x37533f,0x1),_0x487c6b();},function(){const _0x48e1d5=_0x3bbead;console[_0x48e1d5('0xe37')](_0x48e1d5('0x468'));});}function _0x44ff19(_0x6624c7,_0x55e707){const _0x523e50=_0x39a74b;if(_0x447eeb[_0x523e50('0x24a2')][_0x523e50('0x6aa')]['length']){const _0x252e98=_0x447eeb[_0x523e50('0x24a2')]['rows'][_0x55e707]?_0x447eeb['chatWebsiteApps']['rows'][_0x55e707]:_0x447eeb[_0x523e50('0x24a2')]['rows'][0x0],_0x1a5d44=(_0x252e98[_0x523e50('0x9d7')]||_0x252e98[_0x523e50('0x17e')])[_0x523e50('0x1e68')]();_0x1dd0fe[_0x523e50('0x1cb7')]({'controller':_0x523e50('0x7eb')+_0x1a5d44+_0x523e50('0x1c96'),'controllerAs':'vm','templateUrl':_0x5537e8[_0x1a5d44],'parent':angular[_0x523e50('0xb6d')](_0x168bd9['body']),'targetEvent':_0x6624c7,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x252e98,'chatWebsite':_0x447eeb[_0x523e50('0x1740')],'crudPermissions':_0x447eeb[_0x523e50('0x1dc1')]}})['then'](function(_0x395a5e){const _0x6e497f=_0x523e50;_0x395a5e&&(_0x395a5e['id']?_0x447eeb[_0x6e497f('0x24a2')][_0x6e497f('0x6aa')][_0x55e707]=_0x395a5e:_0x447eeb[_0x6e497f('0x24a2')][_0x6e497f('0x6aa')]['splice'](_0x55e707,0x0,_0x395a5e),_0x487c6b());})[_0x523e50('0x103c')](function(_0x3ee598){const _0x2a9050=_0x523e50;_0x3ee598&&_0xdd1b6f['error']({'title':_0x3ee598[_0x2a9050('0x276f')]?_0x2a9050('0x137')+_0x3ee598['status']+_0x2a9050('0x160c')+_0x3ee598[_0x2a9050('0x2696')]:'SYSTEM:EDITMODALSHOW','msg':_0x3ee598[_0x2a9050('0x1e07')]?JSON[_0x2a9050('0x100b')](_0x3ee598[_0x2a9050('0x1e07')]):_0x3ee598[_0x2a9050('0x1b75')]()});});}}function _0x38ff39(_0x54547e,_0x539a13){const _0x41eb15=_0x39a74b;if(_0x447eeb[_0x41eb15('0x24a2')][_0x41eb15('0x6aa')][_0x41eb15('0x543')]){const _0x2dda7a=_0x447eeb[_0x41eb15('0x24a2')]['rows'][_0x539a13]?_0x447eeb[_0x41eb15('0x24a2')][_0x41eb15('0x6aa')][_0x539a13]:_0x447eeb[_0x41eb15('0x24a2')][_0x41eb15('0x6aa')][0x0];_0x1dd0fe[_0x41eb15('0x1cb7')]({'controller':_0x41eb15('0xa4f'),'controllerAs':'vm','templateUrl':_0x293d83,'parent':angular[_0x41eb15('0xb6d')](_0x168bd9['body']),'targetEvent':_0x54547e,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2dda7a[_0x41eb15('0x55a')],'IntervalId':_0x2dda7a[_0x41eb15('0x600')],'application':!![]},'intervals':[],'crudPermissions':_0x447eeb[_0x41eb15('0x1dc1')]}})[_0x41eb15('0x173b')](function(_0x42dbc7){const _0xfdcb05=_0x41eb15;_0x42dbc7&&(_0x2dda7a['interval']=_0x42dbc7[_0xfdcb05('0x55a')]||_0xfdcb05('0x17c5'),_0x2dda7a[_0xfdcb05('0x600')]=_0x42dbc7['IntervalId']||null,_0x487c6b());});}}function _0x487c6b(){const _0x29715c=_0x39a74b;let _0x12168b=0x1,_0x556279=[];for(let _0x441d5d=0x0;_0x441d5d<_0x447eeb['chatWebsiteApps']['rows']['length'];_0x441d5d++){const _0x2a0419=_0x447eeb[_0x29715c('0x24a2')]['rows'][_0x441d5d],_0x49e5cf=[],_0x43f149=[];_0x2a0419['intervals']=_0x2a0419[_0x29715c('0x55a')]!=='*,*,*,*'?[_0x2a0419[_0x29715c('0x55a')]]:_0x2a0419[_0x29715c('0x600')]?_0x3c8d8a()['map'](_0x3c8d8a()[_0x29715c('0x278d')](_0x447eeb[_0x29715c('0x21c4')][_0x29715c('0x6aa')],{'IntervalId':_0x2a0419[_0x29715c('0x600')]}),_0x29715c('0x55a')):[],_0x2a0419[_0x29715c('0x2b9')]=_0x447eeb[_0x29715c('0x1740')]['context'],_0x2a0419[_0x29715c('0x1a60')]=_0x447eeb[_0x29715c('0x1740')][_0x29715c('0x1a60')],_0x2a0419['type']&&(_0x2a0419[_0x29715c('0x1810')]=_0x2a0419[_0x29715c('0x1810')]['toLowerCase']()),_0x2a0419[_0x29715c('0xb3')]=_0x49e5cf[_0x29715c('0x543')]?_0x3c8d8a()['last'](_0x49e5cf)[_0x29715c('0xb3')]+0x1:_0x12168b,_0x12168b=(_0x43f149[_0x29715c('0x543')]?_0x3c8d8a()[_0x29715c('0x7f')](_0x43f149)['priority']:_0x2a0419['priority'])+0x1,_0x556279=_0x3c8d8a()[_0x29715c('0x163f')](_0x556279,_0x49e5cf,[_0x2a0419],_0x43f149);}_0x296c3e['chatWebsite'][_0x29715c('0x271c')]({'id':_0x447eeb['chatWebsite']['id']},_0x3c8d8a()[_0x29715c('0x1b45')](_0x556279,_0x29715c('0xb3')))[_0x29715c('0x1964')][_0x29715c('0x173b')](function(_0x11ecfe){const _0x1f8dea=_0x29715c;_0x447eeb[_0x1f8dea('0x24a2')]['rows']=_0x11ecfe[_0x1f8dea('0x6aa')];})[_0x29715c('0x103c')](function(_0x18f081){const _0x355c25=_0x29715c;console[_0x355c25('0x15aa')](_0x18f081);});}function _0x472c5e(_0x560177){_0x447eeb['chatWebsiteApps']=_0x560177||{'count':0x0,'rows':[]};}function _0x2608c8(){const _0x53f7df=_0x39a74b;return _0x296c3e[_0x53f7df('0x55a')][_0x53f7df('0x1d97')]({'fields':_0x53f7df('0x23e4')})[_0x53f7df('0x1964')]['then'](function(_0x41dc76){const _0x323b56=_0x53f7df;_0x447eeb[_0x323b56('0x21c4')]=_0x41dc76;})[_0x53f7df('0x103c')](function(_0x1fb73a){const _0x42fc15=_0x53f7df;console[_0x42fc15('0x15aa')](_0x1fb73a);});}function _0x55d3e4(){const _0x3f1870=_0x39a74b;_0x447eeb[_0x3f1870('0x2219')]=_0x296c3e[_0x3f1870('0x1740')]['getApplications'](_0x447eeb[_0x3f1870('0xc49')],_0x472c5e)[_0x3f1870('0x1964')];}function _0x2fc982(_0x31c3e3){const _0x5e39a6=_0x39a74b;_0x3c8d8a()[_0x5e39a6('0x1a8b')](_0x447eeb['chatWebsiteApps']['rows'],{'id':_0x31c3e3['id']}),_0x487c6b(),_0xdd1b6f[_0x5e39a6('0xdfe')]({'title':_0x5e39a6('0x236d'),'msg':_0x31c3e3['app']?_0x31c3e3[_0x5e39a6('0x17e')]+_0x5e39a6('0x25d2'):''});}function _0x1b4aa8(_0x35e5c8){const _0x5cf778=_0x39a74b,_0x1d6105=_0x1dd0fe[_0x5cf778('0x1d02')]()[_0x5cf778('0x20d6')](_0x5cf778('0x8a0'))[_0x5cf778('0xf8b')](_0x5cf778('0x15b9')+_0x447eeb['selectedChatWebsiteApps'][_0x5cf778('0x543')]+_0x5cf778('0xcb4')+_0x5cf778('0xd23'))[_0x5cf778('0x217')](_0x5cf778('0x296'))[_0x5cf778('0x21de')](_0x35e5c8)['ok']('OK')[_0x5cf778('0x1e1f')](_0x5cf778('0x468'));_0x1dd0fe[_0x5cf778('0x1cb7')](_0x1d6105)[_0x5cf778('0x173b')](function(){const _0x1ec171=_0x5cf778;_0x447eeb[_0x1ec171('0x862')][_0x1ec171('0xa6a')](function(_0x3267d5){const _0x326a72=_0x1ec171;_0x3c8d8a()[_0x326a72('0x1a8b')](_0x447eeb[_0x326a72('0x24a2')]['rows'],{'id':_0x3267d5['id']});}),_0x447eeb['selectedChatWebsiteApps']=[],_0x487c6b();});}}const _0x1bd408=_0x1c2be8;_0x1ffb50[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),'api',_0x566993('0x1740'),'chatWebsites','realtime','$translate',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x1ffb50(_0x35acdb,_0x29ff84,_0x7bd2a6,_0x19672a,_0x19c6dd,_0x5c8fd0,_0x3af9d0,_0x14c55e,_0x2ae1d0,_0x5d4caa){const _0x4302d0=_0x566993,_0x3b7196=this;_0x3b7196['currentUser']=_0x2ae1d0[_0x4302d0('0x14d4')](),_0x3b7196[_0x4302d0('0x1740')]=_0x19c6dd,_0x3b7196['crudPermissions']=_0x5d4caa,_0x3b7196['realtime']=_0x3af9d0,_0x3b7196['items']=[],_0x3b7196[_0x4302d0('0x203e')]=[],_0x3b7196[_0x4302d0('0x5f8')]=[],_0x3b7196[_0x4302d0('0x1493')]=[],_0x3b7196[_0x4302d0('0x15c9')]=[],_0x3b7196['pendingChanges']=![],_0x3b7196[_0x4302d0('0x2535')]=_0x3d92b7,_0x3b7196['saveAgents']=_0x454671,_0x3b7196[_0x4302d0('0x18e2')]=_0x2455a0,_0x3b7196[_0x4302d0('0x52e')]={'readOnly':!_0x3b7196[_0x4302d0('0x1dc1')][_0x4302d0('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4302d0('0x10ad'),'line1':_0x4302d0('0x572'),'line2':[_0x4302d0('0x10ad'),_0x4302d0('0x138c')],'line3':'','labelAll':_0x14c55e[_0x4302d0('0x1467')](_0x4302d0('0xcd9')),'labelSelected':_0x14c55e[_0x4302d0('0x1467')](_0x4302d0('0x570')),'transferCallback':function(){const _0x4ad864=_0x4302d0,_0x39b1f5=_0x3c8d8a()['xorBy'](_0x3b7196[_0x4ad864('0x15c9')],_0x3b7196[_0x4ad864('0x5f8')],'id');_0x3b7196[_0x4ad864('0x277e')]=_0x3c8d8a()['isEmpty'](_0x39b1f5)?![]:!![];}};function _0x3d92b7(){const _0x2b3b6b=_0x4302d0;return _0x2ae1d0[_0x2b3b6b('0x1b4e')](_0x2b3b6b('0x79b'))?_0x59a7bf()['catch'](function(_0x2e5dab){const _0x5f404e=_0x2b3b6b;_0x7bd2a6[_0x5f404e('0x15aa')]({'title':_0x2e5dab[_0x5f404e('0x276f')]?'API:'+_0x2e5dab['status']+'\x20-\x20'+_0x2e5dab['statusText']:'SYSTEM:GET_AGENTS','msg':_0x2e5dab[_0x5f404e('0x276f')]?JSON[_0x5f404e('0x100b')](_0x2e5dab[_0x5f404e('0x1e07')]):_0x2e5dab['toString']()});}):_0x530495()['then'](function(_0x5993ee){const _0x2ae514=_0x2b3b6b;return _0x3b7196[_0x2ae514('0x17c9')]=_0x5993ee,_0x59a7bf();})['catch'](function(_0xefe29a){const _0x5a200f=_0x2b3b6b;_0x7bd2a6['error']({'title':_0xefe29a['status']?_0x5a200f('0x137')+_0xefe29a[_0x5a200f('0x276f')]+'\x20-\x20'+_0xefe29a['statusText']:_0x5a200f('0x152b'),'msg':_0xefe29a[_0x5a200f('0x276f')]?JSON['stringify'](_0xefe29a[_0x5a200f('0x1e07')]):_0xefe29a[_0x5a200f('0x1b75')]()});});}function _0x530495(){return _0x29ff84(function(_0x7a0109,_0x3d542a){const _0x4ff0e0=a0_0xde5e;_0x19672a[_0x4ff0e0('0x170e')][_0x4ff0e0('0x1d97')]({'userProfileId':_0x3b7196[_0x4ff0e0('0x155f')][_0x4ff0e0('0x1946')],'name':_0x4ff0e0('0x1272')})[_0x4ff0e0('0x1964')][_0x4ff0e0('0x173b')](function(_0x16795a){const _0x3a1446=_0x4ff0e0,_0x5cd04b=_0x16795a&&_0x16795a[_0x3a1446('0x6aa')]?_0x16795a[_0x3a1446('0x6aa')][0x0]:null;_0x7a0109(_0x5cd04b);})[_0x4ff0e0('0x103c')](function(_0x2a9f68){_0x3d542a(_0x2a9f68);});});}function _0x59a7bf(){return _0x29ff84(function(_0x2bb5f4,_0x5e8f6c){const _0x3dfc67=a0_0xde5e;return _0x209009()['then'](function(_0x152b76){const _0x3d721e=a0_0xde5e;return _0x3b7196[_0x3d721e('0x1b1f')]=_0x152b76[_0x3d721e('0x6aa')]?_0x152b76[_0x3d721e('0x6aa')]:[],_0x2ae1d0[_0x3d721e('0x1b4e')](_0x3d721e('0x79b'))?_0x152b76:_0x3b7196[_0x3d721e('0x17c9')]?_0x3b7196[_0x3d721e('0x17c9')]['autoAssociation']?_0x152b76:_0x188e8e():null;})[_0x3dfc67('0x173b')](function(_0x5635c0){const _0x5297b4=_0x3dfc67,_0x4d82ab=_0x5635c0&&_0x5635c0[_0x5297b4('0x6aa')]?_0x5635c0['rows']:[];return _0x3b7196[_0x5297b4('0x203e')]=_0x3c8d8a()[_0x5297b4('0x8a2')](_0x4d82ab,function(_0x687956){const _0x14cf85=_0x5297b4;return _0x3c8d8a()[_0x14cf85('0x18ab')](_0x3b7196[_0x14cf85('0x1b1f')],{'id':_0x2ae1d0[_0x14cf85('0x1b4e')](_0x14cf85('0x79b'))||_0x3b7196[_0x14cf85('0x17c9')][_0x14cf85('0x273e')]?_0x687956['id']:_0x687956[_0x14cf85('0x1ce0')]});}),_0x3b7196['startingAllowedItems']=angular[_0x5297b4('0x2e3')](_0x3b7196[_0x5297b4('0x203e')]),_0x3b7196['items'][_0x5297b4('0xa6a')](function(_0x5818f7){const _0x361ab6=_0x5297b4,_0x30f0a6=_0x3c8d8a()[_0x361ab6('0x18ab')](_0x3b7196[_0x361ab6('0x203e')],{'id':_0x5818f7['id']});_0x2ae1d0[_0x361ab6('0x1b4e')]('admin')?_0x5818f7[_0x361ab6('0xf02')]=!![]:_0x5818f7['isValid']=typeof _0x30f0a6!==_0x361ab6('0x6e5')?!![]:![];}),_0x2b632d();})[_0x3dfc67('0x173b')](function(_0x16f55a){const _0xad43dc=_0x3dfc67,_0x4f2a0b=_0x16f55a&&_0x16f55a[_0xad43dc('0x6aa')]?_0x16f55a[_0xad43dc('0x6aa')]:[];_0x3b7196[_0xad43dc('0x5f8')]=_0x3c8d8a()[_0xad43dc('0x8a2')](_0x4f2a0b,function(_0xe24664){const _0x22840d=_0xad43dc,_0x1d338d=_0x3c8d8a()[_0x22840d('0x18ab')](_0x3b7196[_0x22840d('0x1b1f')],{'id':_0xe24664['id']});return _0x1d338d[_0x22840d('0x1692')]=_0xe24664[_0x22840d('0x1422')]?_0x22840d('0x1929')+_0xe24664[_0x22840d('0x1422')][_0x22840d('0x1692')]:'',_0x1d338d[_0x22840d('0x138c')]=typeof _0xe24664[_0x22840d('0x138c')]!==_0x22840d('0x6e5')?'<'+_0xe24664[_0x22840d('0x138c')]+'>':'',_0x1d338d;}),_0x3b7196[_0xad43dc('0x15c9')]=angular['copy'](_0x3b7196[_0xad43dc('0x5f8')]),_0x3b7196['dualMultiselectOptions'][_0xad43dc('0x5f8')]=_0x3b7196['selectedItems'],_0x3b7196[_0xad43dc('0x52e')][_0xad43dc('0x1b1f')]=_0x3c8d8a()[_0xad43dc('0x1bd3')](_0x3b7196[_0xad43dc('0x203e')],_0x3b7196[_0xad43dc('0x52e')][_0xad43dc('0x5f8')],'id'),_0x2bb5f4();})['catch'](function(_0x1fbdd8){_0x5e8f6c(_0x1fbdd8);});});}function _0x188e8e(){return _0x29ff84(function(_0xaa1e90,_0x5e194e){const _0x253048=a0_0xde5e;return _0x19672a[_0x253048('0xda9')][_0x253048('0x1d97')]({'sectionId':_0x3b7196[_0x253048('0x17c9')]['id'],'nolimit':!![]})[_0x253048('0x1964')][_0x253048('0x173b')](function(_0x5a745e){_0xaa1e90(_0x5a745e);})[_0x253048('0x103c')](function(_0x5a2726){_0x5e194e(_0x5a2726);});});}function _0x2b632d(){return _0x29ff84(function(_0x528ef7,_0x54af65){const _0x965273=a0_0xde5e;return _0x19672a[_0x965273('0x1740')][_0x965273('0x1903')]({'id':_0x3b7196[_0x965273('0x1740')]['id'],'fields':_0x965273('0x1d65'),'nolimit':!![],'role':_0x965273('0x7b0')})[_0x965273('0x1964')]['then'](function(_0x337849){_0x528ef7(_0x337849);})['catch'](function(_0x2d9805){_0x54af65(_0x2d9805);});});}function _0x209009(){return _0x29ff84(function(_0x24d6ea,_0x2065c4){const _0x51737b=a0_0xde5e;return _0x19672a[_0x51737b('0x166f')][_0x51737b('0x1d97')]({'fields':_0x51737b('0x1d65'),'nolimit':!![],'role':_0x51737b('0x7b0')})[_0x51737b('0x1964')][_0x51737b('0x173b')](function(_0x2c2bc6){_0x24d6ea(_0x2c2bc6);})['catch'](function(_0x174cb8){_0x2065c4(_0x174cb8);});});}function _0x2c20c0(_0x148642){return _0x29ff84(function(_0x9167b5,_0x16c684){const _0xecefd2=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x148642)?_0x9167b5():_0x19672a[_0xecefd2('0x1740')][_0xecefd2('0x1ff1')]({'id':_0x3b7196[_0xecefd2('0x1740')]['id'],'ids':_0x3c8d8a()[_0xecefd2('0x8a2')](_0x148642,'id')})[_0xecefd2('0x1964')][_0xecefd2('0x173b')](function(){_0x9167b5();})[_0xecefd2('0x103c')](function(_0x533366){_0x16c684(_0x533366);});});}function _0x3ce40d(_0x23286f){return _0x29ff84(function(_0x251171,_0x4dc852){const _0x3f5656=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x23286f)?_0x251171():_0x19672a[_0x3f5656('0x1740')]['removeAgents']({'id':_0x3b7196[_0x3f5656('0x1740')]['id'],'ids':_0x3c8d8a()['map'](_0x23286f,'id')})[_0x3f5656('0x1964')][_0x3f5656('0x173b')](function(){_0x251171();})[_0x3f5656('0x103c')](function(_0x146d1b){_0x4dc852(_0x146d1b);});});}function _0x454671(){const _0x2301d2=_0x4302d0,_0x330633=_0x3c8d8a()['differenceBy'](_0x3b7196[_0x2301d2('0x15c9')],_0x3b7196[_0x2301d2('0x5f8')],'id'),_0x43d45e=_0x3c8d8a()[_0x2301d2('0x1bd3')](_0x3b7196[_0x2301d2('0x5f8')],_0x3b7196['startingSelectedItems'],'id');return _0x3ce40d(_0x330633)[_0x2301d2('0x173b')](function(){return _0x2c20c0(_0x43d45e);})[_0x2301d2('0x173b')](function(){const _0xdaf3ea=_0x2301d2;_0x3b7196['pendingChanges']=![],_0x3b7196['startingAllowedItems']=angular['copy'](_0x3b7196[_0xdaf3ea('0x203e')]),_0x3b7196['startingSelectedItems']=angular[_0xdaf3ea('0x2e3')](_0x3b7196[_0xdaf3ea('0x5f8')]),_0x7bd2a6['success']({'title':_0xdaf3ea('0x23db'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x2301d2('0x103c')](function(_0x1f137a){const _0x280a02=_0x2301d2;_0x7bd2a6[_0x280a02('0x15aa')]({'title':_0x1f137a[_0x280a02('0x276f')]?_0x280a02('0x137')+_0x1f137a[_0x280a02('0x276f')]+_0x280a02('0x160c')+_0x1f137a['statusText']:_0x280a02('0x1f48'),'msg':_0x1f137a[_0x280a02('0x276f')]?JSON[_0x280a02('0x100b')](_0x1f137a[_0x280a02('0x1e07')]):_0x1f137a[_0x280a02('0x1b75')]()});});}function _0x2455a0(){const _0x259f68=_0x4302d0;_0x35acdb[_0x259f68('0x1cf4')]();}}const _0x277a9c=_0x1ffb50;_0x30e9a5[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x1558')];function _0x30e9a5(_0x438015,_0x5075d4){const _0x21f998=_0x566993,_0x38391e=this,_0x3e190d=0x8,_0x32be35=_0x3e190d*0x400*0x400;_0x38391e[_0x21f998('0x1740')]={},_0x38391e[_0x21f998('0x1dc1')],_0x38391e[_0x21f998('0x8f9')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x32be35,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x38391e[_0x21f998('0x428')]={'flow':{}},_0x38391e['dropping']=![],_0x38391e[_0x21f998('0x23a9')]=_0x294855,_0x38391e[_0x21f998('0xb1e')]=_0x118f7b,_0x38391e[_0x21f998('0x12b9')]=_0x44c79f,_0x38391e[_0x21f998('0xb9c')]=_0x591a0d;function _0x591a0d(_0x1b2f2a,_0xe7c33f){const _0x68fab7=_0x21f998;_0x38391e[_0x68fab7('0x1740')]=angular[_0x68fab7('0x2e3')](_0x1b2f2a),_0x38391e['crudPermissions']=typeof _0xe7c33f!==_0x68fab7('0x6e5')?_0xe7c33f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x38391e[_0x68fab7('0x8f9')][_0x68fab7('0x235')]=_0x68fab7('0x1eef')['replace'](_0x68fab7('0x17d5'),_0x38391e[_0x68fab7('0x1740')]['id']),_0x38391e[_0x68fab7('0x1740')]['images']=[];}function _0x294855(_0x40a0b2){const _0x11f697=_0x21f998,_0x2a9353=[_0x11f697('0x13f0'),_0x11f697('0xa5a')];if(!_0x3c8d8a()[_0x11f697('0x2814')](_0x2a9353,_0x40a0b2[_0x11f697('0x131a')]()))return _0x5075d4[_0x11f697('0x15aa')]({'title':_0x11f697('0xc5d')+_0x40a0b2[_0x11f697('0x131a')](),'msg':_0x11f697('0x10cc')+_0x2a9353['join']()}),![];if(_0x40a0b2['size']>_0x32be35)return _0x5075d4[_0x11f697('0x15aa')]({'title':_0x11f697('0xd1e'),'msg':_0x11f697('0xdfc')+_0x3e190d+'MB'}),![];const _0x1f6ab6={'id':_0x40a0b2[_0x11f697('0x1b98')],'file':_0x40a0b2,'type':_0x11f697('0x2175')};return _0x38391e[_0x11f697('0x1740')]['images'][_0x11f697('0x1377')](_0x1f6ab6),!![];}function _0x118f7b(){const _0x25dbc2=_0x21f998;_0x38391e[_0x25dbc2('0x428')]['flow'][_0x25dbc2('0x2431')][_0x25dbc2('0x1670')]={'X-Requested-With':_0x25dbc2('0x12c9'),'Authorization':_0x25dbc2('0x221')+_0x438015[_0x25dbc2('0x1d97')]('motion.token')},_0x38391e[_0x25dbc2('0x428')]['flow'][_0x25dbc2('0xb1e')]();}function _0x44c79f(_0x224081){const _0x3f4c03=_0x21f998;angular[_0x3f4c03('0xa6a')](_0x38391e[_0x3f4c03('0x1740')][_0x3f4c03('0x1f73')],function(_0x3bbf63){const _0x54951c=_0x3f4c03;if(_0x3bbf63['id']===_0x224081[_0x54951c('0x1b98')]){const _0x32e7f7=new FileReader();_0x32e7f7[_0x54951c('0x427')](_0x3bbf63[_0x54951c('0x2522')][_0x54951c('0x2522')]),_0x32e7f7[_0x54951c('0x147d')]=function(_0x7fe1dc){const _0x373427=_0x54951c;_0x3bbf63[_0x373427('0xd1')]=_0x7fe1dc[_0x373427('0x235')][_0x373427('0xd09')];},_0x3bbf63['type']=_0x54951c('0x204b');}});}}const _0x50339e=_0x30e9a5;_0x27e739[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x7d6'),_0x566993('0x1740'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x27e739(_0x5fabd4,_0x12c898,_0x491565,_0x549800,_0x5b9c0e,_0x16faa3,_0x127f30,_0x3de471){const _0x1df68c=_0x566993,_0x4cc964=this;_0x4cc964[_0x1df68c('0x155f')]=_0x127f30['getCurrentUser'](),_0x4cc964[_0x1df68c('0x1d4a')]=[],_0x4cc964[_0x1df68c('0x20d6')]=_0x1df68c('0x38b')+(_0x549800['appType']||_0x549800[_0x1df68c('0x17e')])[_0x1df68c('0x1164')](),_0x4cc964['agent']=angular[_0x1df68c('0x2e3')](_0x549800),_0x4cc964[_0x1df68c('0x1dc1')]=_0x3de471,_0x4cc964[_0x1df68c('0xb0')]={};if(_0x4cc964[_0x1df68c('0x7b0')]['appdata'])switch(_0x4cc964[_0x1df68c('0x7b0')]['appType']?_0x4cc964[_0x1df68c('0x7b0')]['appType'][_0x1df68c('0x1e68')]():_0x4cc964['agent'][_0x1df68c('0x17e')][_0x1df68c('0x1e68')]()){case'custom':break;case _0x1df68c('0x1601'):{const _0x366caa=_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1c00')][_0x1df68c('0x43a')](',');_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x237a')]=_0x366caa[0x0],_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x604')]=_0x366caa[0x1],_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1a7')]=_0x366caa[_0x1df68c('0x2456')](0x2,_0x366caa['length'])['join'](',');}break;case _0x1df68c('0x1680'):{const _0xadc783=_0x4cc964['agent'][_0x1df68c('0x1c00')][_0x1df68c('0x43a')](',');_0x4cc964['agent'][_0x1df68c('0x2e0')]=_0xadc783[0x0],_0x4cc964['agent'][_0x1df68c('0x1d93')]=_0xadc783[0x1],_0x4cc964['agent'][_0x1df68c('0x10fc')]=_0xadc783[0x2],_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x53')]=_0xadc783[0x3],_0x4cc964[_0x1df68c('0x7b0')]['welcomemessage']=_0xadc783['slice'](0x4,_0xadc783[_0x1df68c('0x543')])[_0x1df68c('0x2259')](',');}break;case'autoreply':{const _0x44fb61=_0x4cc964[_0x1df68c('0x7b0')]['appdata'][_0x1df68c('0x43a')](',');_0x4cc964[_0x1df68c('0x7b0')]['times']=isNaN(_0x44fb61[0x0])?_0x44fb61[0x0]:parseInt(_0x44fb61[0x0],0xa),_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x86e')]=_0x44fb61[_0x1df68c('0x2456')](0x1,_0x44fb61['length'])[_0x1df68c('0x2259')](',');}break;case _0x1df68c('0x67f'):_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x86e')]=_0x4cc964[_0x1df68c('0x7b0')]['appdata'];break;case _0x1df68c('0x256d'):_0x4cc964[_0x1df68c('0x7b0')]['name']=_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1c00')]['split']('=')[0x0],_0x4cc964[_0x1df68c('0x7b0')]['value']=_0x4cc964[_0x1df68c('0x7b0')]['appdata']['split']('=')[0x1];break;case'agi':_0x4cc964['agent']['project']=_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1c00')];break;default:{const _0x2789e3=_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1c00')][_0x1df68c('0x43a')](',');_0x4cc964['agent'][_0x1df68c('0x7b0')]=_0x3c8d8a()[_0x1df68c('0x1a56')](_0x2789e3[0x0])?_0x2789e3[0x0]:isNaN(_0x2789e3[0x0])?_0x2789e3[0x0]:parseInt(_0x2789e3[0x0],0xa),_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1f84')]=_0x3c8d8a()[_0x1df68c('0x1a56')](_0x2789e3[0x1])?_0x2789e3[0x1]:isNaN(_0x2789e3[0x1])?_0x2789e3[0x1]:parseInt(_0x2789e3[0x1],0xa);}break;}else _0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1f84')]=0x1e;_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1810')]&&_0x4cc964[_0x1df68c('0x7b0')]['type'][_0x1df68c('0x1e68')]()===_0x1df68c('0xb33')&&_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x9d7')][_0x1df68c('0x1e68')]()===_0x1df68c('0x1edc')&&(_0x4cc964[_0x1df68c('0x7b0')]['prefix']=_0x4cc964['agent'][_0x1df68c('0xa04')]?_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0xa04')][_0x1df68c('0x43a')]('$')[0x0]:undefined,_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0x1961')]=_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0xe95')]?_0x1df68c('0x20a8')+_0x4cc964[_0x1df68c('0x7b0')][_0x1df68c('0xe95')]:undefined);_0x4cc964[_0x1df68c('0x1420')]=_0x11be8e,_0x4cc964['closeDialog']=_0x14175d,_0x127f30[_0x1df68c('0x1b4e')](_0x1df68c('0x79b'))?_0x16faa3['user'][_0x1df68c('0x1d97')]({'fields':_0x1df68c('0xd52'),'role':'agent','sort':_0x1df68c('0x10ad'),'nolimit':_0x1df68c('0x799')})[_0x1df68c('0x1964')][_0x1df68c('0x173b')](function(_0x3cb5fd){const _0xb6c4a6=_0x1df68c;_0x4cc964[_0xb6c4a6('0x11fa')]=_0x3cb5fd['rows']||[];})['catch'](function(_0x5ca0e1){const _0x376b3c=_0x1df68c;_0x491565[_0x376b3c('0x15aa')]({'title':_0x5ca0e1[_0x376b3c('0x276f')]?_0x376b3c('0x137')+_0x5ca0e1[_0x376b3c('0x276f')]+_0x376b3c('0x160c')+_0x5ca0e1[_0x376b3c('0x2696')]:_0x376b3c('0x152b'),'msg':_0x5ca0e1[_0x376b3c('0x1e07')]?JSON[_0x376b3c('0x100b')](_0x5ca0e1[_0x376b3c('0x1e07')]):_0x5ca0e1[_0x376b3c('0x1b75')]()});}):_0x16faa3[_0x1df68c('0x166f')][_0x1df68c('0x1d97')]({'fields':'id,name','role':_0x1df68c('0x7b0'),'sort':'name','nolimit':_0x1df68c('0x799')})[_0x1df68c('0x1964')][_0x1df68c('0x173b')](function(_0x3ddfcc){const _0x4d65d0=_0x1df68c;_0x4cc964[_0x4d65d0('0x11fa')]=_0x3ddfcc[_0x4d65d0('0x6aa')]||[];})['then'](function(){const _0x4ba9a7=_0x1df68c;return _0x16faa3[_0x4ba9a7('0x170e')][_0x4ba9a7('0x1d97')]({'userProfileId':_0x4cc964['currentUser'][_0x4ba9a7('0x1946')],'sectionId':0xca})['$promise'];})[_0x1df68c('0x173b')](function(_0x12d2ad){const _0xba2206=_0x1df68c,_0x1dc16a=_0x12d2ad&&_0x12d2ad[_0xba2206('0x6aa')]?_0x12d2ad[_0xba2206('0x6aa')][0x0]:null;if(!_0x1dc16a){const _0x28b138=[];let _0x1d9ee5=null;_0x4cc964[_0xba2206('0x7b0')]&&(_0x1d9ee5=_0x3c8d8a()[_0xba2206('0x18ab')](_0x4cc964[_0xba2206('0x11fa')],{'name':_0x4cc964[_0xba2206('0x7b0')][_0xba2206('0x7b0')]}));for(let _0x4e96b3=0x0;_0x4e96b3<_0x4cc964['agents']['length'];_0x4e96b3++){_0x1d9ee5&&_0x4cc964['agents'][_0x4e96b3]['id']===_0x1d9ee5['id']&&(_0x4cc964[_0xba2206('0x11fa')][_0x4e96b3]['canSelect']=![],_0x28b138['push'](_0x4cc964['agents'][_0x4e96b3]));}_0x4cc964[_0xba2206('0x11fa')]=_0x28b138;}else{if(!_0x1dc16a[_0xba2206('0x273e')])return _0x16faa3[_0xba2206('0xda9')]['get']({'sectionId':_0x1dc16a['id']})[_0xba2206('0x1964')][_0xba2206('0x173b')](function(_0x56db91){const _0x20fe8d=_0xba2206,_0x3a45e9=_0x3c8d8a()['map'](_0x56db91[_0x20fe8d('0x6aa')],function(_0x57f86e){const _0x4c3f21=_0x20fe8d;return _0x3c8d8a()[_0x4c3f21('0x18ab')](_0x4cc964['agents'],{'id':_0x57f86e['resourceId']});});let _0x1a1aa8=null;_0x4cc964[_0x20fe8d('0x7b0')]&&(_0x1a1aa8=_0x3c8d8a()['find'](_0x4cc964[_0x20fe8d('0x11fa')],{'name':_0x4cc964[_0x20fe8d('0x7b0')][_0x20fe8d('0x7b0')]}));if(_0x1a1aa8&&!_0x3c8d8a()[_0x20fe8d('0x1ec')](_0x3a45e9,['id',_0x1a1aa8['id']])){const _0xff004e=_0x3c8d8a()[_0x20fe8d('0x18ab')](_0x4cc964[_0x20fe8d('0x11fa')],{'id':_0x1a1aa8['id']});_0xff004e[_0x20fe8d('0x268e')]=![],_0x3a45e9['push'](_0xff004e);}_0x4cc964['agents']=_0x3a45e9;});}})[_0x1df68c('0x103c')](function(_0x8c4b50){const _0x5bf154=_0x1df68c;_0x491565[_0x5bf154('0x15aa')]({'title':_0x8c4b50[_0x5bf154('0x276f')]?_0x5bf154('0x137')+_0x8c4b50[_0x5bf154('0x276f')]+'\x20-\x20'+_0x8c4b50['statusText']:_0x5bf154('0xceb'),'msg':_0x8c4b50[_0x5bf154('0x1e07')]?JSON[_0x5bf154('0x100b')](_0x8c4b50[_0x5bf154('0x1e07')]):_0x8c4b50[_0x5bf154('0x1b75')]()});});function _0x11be8e(){const _0x971bd4=_0x1df68c;_0x4cc964['errors']=[];const _0x596879=[];_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x1810')]&&_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x1810')]['toLowerCase']()===_0x971bd4('0xb33')&&_0x4cc964['agent'][_0x971bd4('0x9d7')]===_0x971bd4('0x2150')&&(_0x4cc964['agent'][_0x971bd4('0xa04')]=_0x5b9c0e['cutdigits']?(_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x23f7')]||'')+_0x971bd4('0x1957')+_0x5b9c0e[_0x971bd4('0x1429')]+'}':(_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x23f7')]||'')+_0x971bd4('0x1dc5'),_0x5b9c0e[_0x971bd4('0x76c')]!=='none'?_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x2010')][_0x971bd4('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x2010')]+=_0x971bd4('0x2474')):_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x2010')]=_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x2010')][_0x971bd4('0x166c')](_0x971bd4('0x2474'),''));const _0x57f12d=_0x3c8d8a()[_0x971bd4('0x18ab')](_0x4cc964[_0x971bd4('0x11fa')],{'name':_0x4cc964[_0x971bd4('0x7b0')]['agent']});_0x57f12d&&(_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x181c')]=_0x57f12d['id']);if(_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x9d7')]&&_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x9d7')]===_0x971bd4('0xbb4')){}else switch((_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x17e')]||_0x4cc964['agent'][_0x971bd4('0x9d7')])[_0x971bd4('0x1e68')]()){case'set':_0x4cc964['agent']['appdata']=_0x4cc964[_0x971bd4('0x7b0')][_0x971bd4('0x10ad')]+'='+_0x4cc964['agent']['value'];break;case _0x971bd4('0xbb4'):break;default:_0x596879[0x0]=_0x4cc964['agent']['agent'],_0x596879[0x1]=_0x4cc964['agent']['timeout'],_0x4cc964['agent'][_0x971bd4('0x1c00')]=_0x596879[_0x971bd4('0x2259')](',');}_0x14175d(_0x4cc964[_0x971bd4('0x7b0')]);}function _0x14175d(_0x212717){const _0x440a41=_0x1df68c;_0x5fabd4[_0x440a41('0x1cf4')](_0x212717);}}const _0x192363=_0x27e739;_0x2418dd[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x7d6'),_0x566993('0x1740'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x2418dd(_0x35459f,_0x568426,_0x39e3bb,_0x558045,_0x2cc272,_0x1da7bf,_0x42e390,_0x23b7bd){const _0xd149db=_0x566993,_0x5e2d7e=this;_0x5e2d7e[_0xd149db('0x155f')]=_0x42e390[_0xd149db('0x14d4')](),_0x5e2d7e[_0xd149db('0x1d4a')]=[],_0x5e2d7e[_0xd149db('0x20d6')]=_0xd149db('0x38b')+(_0x558045['appType']||_0x558045['app'])[_0xd149db('0x1164')](),_0x5e2d7e[_0xd149db('0x1680')]=angular[_0xd149db('0x2e3')](_0x558045),_0x5e2d7e[_0xd149db('0x1dc1')]=_0x23b7bd,_0x5e2d7e[_0xd149db('0xb0')]={};if(_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1c00')])switch(_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x9d7')]?_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x9d7')][_0xd149db('0x1e68')]():_0x5e2d7e[_0xd149db('0x1680')]['app'][_0xd149db('0x1e68')]()){case _0xd149db('0xbb4'):break;case _0xd149db('0x1601'):{const _0x509c84=_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1c00')][_0xd149db('0x43a')](',');_0x5e2d7e[_0xd149db('0x1680')]['key']=_0x509c84[0x0],_0x5e2d7e[_0xd149db('0x1680')]['language']=_0x509c84[0x1],_0x5e2d7e['amazonlex']['welcomemessage']=_0x509c84[_0xd149db('0x2456')](0x2,_0x509c84[_0xd149db('0x543')])[_0xd149db('0x2259')](',');}break;case _0xd149db('0x1680'):{const _0x36e908=_0x5e2d7e[_0xd149db('0x1680')]['appdata'][_0xd149db('0x43a')](',');_0x5e2d7e['amazonlex'][_0xd149db('0x2e0')]=_0x36e908[0x0],_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1d93')]=_0x36e908[0x1],_0x5e2d7e['amazonlex'][_0xd149db('0x10fc')]=_0x36e908[0x2],_0x5e2d7e[_0xd149db('0x1680')]['botname']=_0x36e908[0x3],_0x5e2d7e[_0xd149db('0x1680')]['welcomemessage']=_0x36e908[_0xd149db('0x2456')](0x4,_0x36e908[_0xd149db('0x543')])[_0xd149db('0x2259')](',');}break;case _0xd149db('0x23fe'):{const _0x92d9cb=_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1c00')][_0xd149db('0x43a')](',');_0x5e2d7e[_0xd149db('0x1680')]['times']=isNaN(_0x92d9cb[0x0])?_0x92d9cb[0x0]:parseInt(_0x92d9cb[0x0],0xa),_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x86e')]=_0x92d9cb[_0xd149db('0x2456')](0x1,_0x92d9cb[_0xd149db('0x543')])[_0xd149db('0x2259')](',');}break;case _0xd149db('0x67f'):_0x5e2d7e[_0xd149db('0x1680')]['text']=_0x5e2d7e['amazonlex'][_0xd149db('0x1c00')];break;case _0xd149db('0x256d'):_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x10ad')]=_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1c00')][_0xd149db('0x43a')]('=')[0x0],_0x5e2d7e['amazonlex'][_0xd149db('0xa7b')]=_0x5e2d7e[_0xd149db('0x1680')]['appdata'][_0xd149db('0x43a')]('=')[0x1];break;case _0xd149db('0x2426'):_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x220b')]=_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1c00')];break;default:{const _0x1327e1=_0x5e2d7e[_0xd149db('0x1680')]['appdata'][_0xd149db('0x43a')](',');_0x5e2d7e[_0xd149db('0x1680')]['accesskeyid']=_0x3c8d8a()[_0xd149db('0x1a56')](_0x1327e1[0x0])?_0x1327e1[0x0]:isNaN(_0x1327e1[0x0])?_0x1327e1[0x0]:parseInt(_0x1327e1[0x0],0xa),_0x5e2d7e[_0xd149db('0x1680')]['secretaccesskey']=_0x3c8d8a()[_0xd149db('0x1a56')](_0x1327e1[0x1])?_0x1327e1[0x1]:isNaN(_0x1327e1[0x1])?_0x1327e1[0x1]:parseInt(_0x1327e1[0x1],0xa),_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x10fc')]=_0x3c8d8a()['isEmpty'](_0x1327e1[0x2])?_0x1327e1[0x2]:isNaN(_0x1327e1[0x2])?_0x1327e1[0x2]:parseInt(_0x1327e1[0x2],0xa),_0x5e2d7e[_0xd149db('0x1680')]['botname']=_0x3c8d8a()['isEmpty'](_0x1327e1[0x3])?_0x1327e1[0x3]:isNaN(_0x1327e1[0x3])?_0x1327e1[0x3]:parseInt(_0x1327e1[0x3],0xa),_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1a7')]=_0x3c8d8a()['isEmpty'](_0x1327e1[0x4])?_0x1327e1[0x4]:isNaN(_0x1327e1[0x4])?_0x1327e1[0x4]:parseInt(_0x1327e1[0x4],0xa);}break;}else _0x5e2d7e[_0xd149db('0x1680')]['lexregion']=_0xd149db('0x1de6');_0x5e2d7e['amazonlex'][_0xd149db('0x1810')]&&_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1810')][_0xd149db('0x1e68')]()===_0xd149db('0xb33')&&_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x9d7')][_0xd149db('0x1e68')]()===_0xd149db('0x1edc')&&(_0x5e2d7e['amazonlex']['prefix']=_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0xa04')]?_0x5e2d7e['amazonlex']['phone'][_0xd149db('0x43a')]('$')[0x0]:undefined,_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0x1961')]=_0x5e2d7e['amazonlex'][_0xd149db('0xe95')]?_0xd149db('0x20a8')+_0x5e2d7e[_0xd149db('0x1680')][_0xd149db('0xe95')]:undefined);_0x5e2d7e[_0xd149db('0x1420')]=_0x468213,_0x5e2d7e[_0xd149db('0x18e2')]=_0x2de83d;function _0x468213(){const _0x29f8e1=_0xd149db;_0x5e2d7e['errors']=[];const _0x5368d7=[];_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x1810')]&&_0x5e2d7e['amazonlex'][_0x29f8e1('0x1810')][_0x29f8e1('0x1e68')]()===_0x29f8e1('0xb33')&&_0x5e2d7e['amazonlex']['appType']===_0x29f8e1('0x2150')&&(_0x5e2d7e['amazonlex'][_0x29f8e1('0xa04')]=_0x2cc272[_0x29f8e1('0x1429')]?(_0x5e2d7e['amazonlex'][_0x29f8e1('0x23f7')]||'')+_0x29f8e1('0x1957')+_0x2cc272[_0x29f8e1('0x1429')]+'}':(_0x5e2d7e['amazonlex'][_0x29f8e1('0x23f7')]||'')+'${EXTEN}',_0x2cc272['recordingFormat']!==_0x29f8e1('0x2741')?_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x2010')][_0x29f8e1('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5e2d7e[_0x29f8e1('0x1680')]['options']+=_0x29f8e1('0x2474')):_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x2010')]=_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x2010')][_0x29f8e1('0x166c')](_0x29f8e1('0x2474'),''));if(_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x9d7')]&&_0x5e2d7e['amazonlex'][_0x29f8e1('0x9d7')]===_0x29f8e1('0xbb4')){}else switch((_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x17e')]||_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x9d7')])[_0x29f8e1('0x1e68')]()){case'set':_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x1c00')]=_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x10ad')]+'='+_0x5e2d7e[_0x29f8e1('0x1680')]['value'];break;case _0x29f8e1('0xbb4'):break;default:_0x5368d7[0x0]=_0x5e2d7e[_0x29f8e1('0x1680')]['accesskeyid'],_0x5368d7[0x1]=_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x1d93')],_0x5368d7[0x2]=_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x10fc')],_0x5368d7[0x3]=_0x5e2d7e[_0x29f8e1('0x1680')]['botname'],_0x5368d7[0x4]=_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x1a7')],_0x5e2d7e[_0x29f8e1('0x1680')][_0x29f8e1('0x1c00')]=_0x5368d7[_0x29f8e1('0x2259')](',');}_0x2de83d(_0x5e2d7e['amazonlex']);}function _0x2de83d(_0x33051c){const _0x244e14=_0xd149db;_0x35459f[_0x244e14('0x1cf4')](_0x33051c);}}const _0x558cbb=_0x2418dd;_0xbad859[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x7d6'),_0x566993('0x1740'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0xbad859(_0x3aff8c,_0x1c8c11,_0x4282f7,_0x341040,_0x8afe7f,_0x1416a4,_0x3982f4,_0x20539c){const _0x5546bb=_0x566993,_0x588c06=this;_0x588c06[_0x5546bb('0x155f')]=_0x3982f4[_0x5546bb('0x14d4')](),_0x588c06[_0x5546bb('0x1d4a')]=[],_0x588c06[_0x5546bb('0x20d6')]=_0x5546bb('0x38b')+(_0x341040[_0x5546bb('0x9d7')]||_0x341040[_0x5546bb('0x17e')])[_0x5546bb('0x1164')](),_0x588c06[_0x5546bb('0x23fe')]=angular['copy'](_0x341040),_0x588c06['crudPermissions']=_0x20539c,_0x588c06[_0x5546bb('0xb0')]={};if(_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1c00')])switch(_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x9d7')]?_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x9d7')][_0x5546bb('0x1e68')]():_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x17e')][_0x5546bb('0x1e68')]()){case'custom':break;case _0x5546bb('0x1601'):{const _0x5493af=_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1c00')]['split'](',');_0x588c06[_0x5546bb('0x23fe')]['key']=_0x5493af[0x0],_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x604')]=_0x5493af[0x1],_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1a7')]=_0x5493af['slice'](0x2,_0x5493af[_0x5546bb('0x543')])[_0x5546bb('0x2259')](',');}break;case'amazonlex':{const _0x15bbd4=_0x588c06['autoreply'][_0x5546bb('0x1c00')][_0x5546bb('0x43a')](',');_0x588c06[_0x5546bb('0x23fe')]['accesskeyid']=_0x15bbd4[0x0],_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1d93')]=_0x15bbd4[0x1],_0x588c06['autoreply']['lexregion']=_0x15bbd4[0x2],_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x53')]=_0x15bbd4[0x3],_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1a7')]=_0x15bbd4['slice'](0x4,_0x15bbd4[_0x5546bb('0x543')])[_0x5546bb('0x2259')](',');}break;case _0x5546bb('0x23fe'):{const _0x4bf2ee=_0x588c06['autoreply'][_0x5546bb('0x1c00')][_0x5546bb('0x43a')](',');_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x611')]=isNaN(_0x4bf2ee[0x0])?_0x4bf2ee[0x0]:parseInt(_0x4bf2ee[0x0],0xa),_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x86e')]=_0x4bf2ee[_0x5546bb('0x2456')](0x1,_0x4bf2ee[_0x5546bb('0x543')])[_0x5546bb('0x2259')](',');}break;case _0x5546bb('0x67f'):_0x588c06[_0x5546bb('0x23fe')]['text']=_0x588c06['autoreply'][_0x5546bb('0x1c00')];break;case'set':_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x10ad')]=_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1c00')]['split']('=')[0x0],_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0xa7b')]=_0x588c06['autoreply'][_0x5546bb('0x1c00')]['split']('=')[0x1];break;case _0x5546bb('0x2426'):_0x588c06[_0x5546bb('0x23fe')]['project']=_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1c00')];break;default:{const _0x542e47=_0x588c06['autoreply'][_0x5546bb('0x1c00')]['split'](',');_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x611')]=_0x3c8d8a()['isEmpty'](_0x542e47[0x0])?_0x542e47[0x0]:isNaN(_0x542e47[0x0])?_0x542e47[0x0]:parseInt(_0x542e47[0x0],0xa),_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x86e')]=_0x3c8d8a()['isEmpty'](_0x542e47[0x1])?_0x542e47[0x1]:isNaN(_0x542e47[0x1])?_0x542e47[0x1]:parseInt(_0x542e47[0x1],0xa);}break;}else _0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x611')]=0x1;_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1810')]&&_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x1810')][_0x5546bb('0x1e68')]()==='outbound'&&_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x9d7')][_0x5546bb('0x1e68')]()==='outbounddial'&&(_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0x23f7')]=_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0xa04')]?_0x588c06['autoreply']['phone']['split']('$')[0x0]:undefined,_0x588c06[_0x5546bb('0x23fe')]['callerId']=_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0xe95')]?_0x5546bb('0x20a8')+_0x588c06[_0x5546bb('0x23fe')][_0x5546bb('0xe95')]:undefined);_0x588c06[_0x5546bb('0x1420')]=_0x5ad230,_0x588c06[_0x5546bb('0x18e2')]=_0x710d77;function _0x5ad230(){const _0x46482a=_0x5546bb;_0x588c06[_0x46482a('0x1d4a')]=[];const _0x366c9f=[];_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x1810')]&&_0x588c06[_0x46482a('0x23fe')]['type'][_0x46482a('0x1e68')]()===_0x46482a('0xb33')&&_0x588c06[_0x46482a('0x23fe')]['appType']===_0x46482a('0x2150')&&(_0x588c06[_0x46482a('0x23fe')][_0x46482a('0xa04')]=_0x8afe7f[_0x46482a('0x1429')]?(_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x23f7')]||'')+'${EXTEN:'+_0x8afe7f['cutdigits']+'}':(_0x588c06['autoreply']['prefix']||'')+_0x46482a('0x1dc5'),_0x8afe7f[_0x46482a('0x76c')]!==_0x46482a('0x2741')?_0x588c06[_0x46482a('0x23fe')]['options'][_0x46482a('0x2087')](_0x46482a('0x2474'))<0x0&&(_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x2010')]+=_0x46482a('0x2474')):_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x2010')]=_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x2010')][_0x46482a('0x166c')](_0x46482a('0x2474'),''));if(_0x588c06[_0x46482a('0x23fe')]['appType']&&_0x588c06['autoreply'][_0x46482a('0x9d7')]==='custom'){}else switch((_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x17e')]||_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x9d7')])[_0x46482a('0x1e68')]()){case'set':_0x588c06[_0x46482a('0x23fe')]['appdata']=_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x10ad')]+'='+_0x588c06[_0x46482a('0x23fe')]['value'];break;case _0x46482a('0xbb4'):break;default:_0x366c9f[0x0]=_0x588c06['autoreply'][_0x46482a('0x611')],_0x366c9f[0x1]=_0x588c06['autoreply'][_0x46482a('0x86e')],_0x588c06[_0x46482a('0x23fe')][_0x46482a('0x1c00')]=_0x366c9f[_0x46482a('0x2259')](',');}_0x710d77(_0x588c06['autoreply']);}function _0x710d77(_0x55901a){_0x3aff8c['hide'](_0x55901a);}}const _0x3e8c8d=_0xbad859;_0x59c381[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x7d6'),_0x566993('0x1740'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x59c381(_0x449b79,_0x40da62,_0x539a34,_0x196db9,_0x3fb2e4,_0x3abf70,_0x253733,_0x15422b){const _0x29fec0=_0x566993,_0x246b72=this;_0x246b72[_0x29fec0('0x155f')]=_0x253733['getCurrentUser'](),_0x246b72[_0x29fec0('0x1d4a')]=[],_0x246b72['title']=_0x29fec0('0x38b')+(_0x196db9['appType']||_0x196db9[_0x29fec0('0x17e')])[_0x29fec0('0x1164')](),_0x246b72[_0x29fec0('0x2151')]=angular['copy'](_0x196db9),_0x246b72[_0x29fec0('0x1dc1')]=_0x15422b,_0x246b72[_0x29fec0('0xb0')]={};if(_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1c00')])switch(_0x246b72['close']['appType']?_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x9d7')][_0x29fec0('0x1e68')]():_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x17e')][_0x29fec0('0x1e68')]()){case _0x29fec0('0xbb4'):break;case'dialogflow':{const _0x54c362=_0x246b72['close'][_0x29fec0('0x1c00')][_0x29fec0('0x43a')](',');_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x237a')]=_0x54c362[0x0],_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x604')]=_0x54c362[0x1],_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1a7')]=_0x54c362['slice'](0x2,_0x54c362[_0x29fec0('0x543')])[_0x29fec0('0x2259')](',');}break;case _0x29fec0('0x1680'):{const _0x4da593=_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1c00')][_0x29fec0('0x43a')](',');_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x2e0')]=_0x4da593[0x0],_0x246b72[_0x29fec0('0x2151')]['secretaccesskey']=_0x4da593[0x1],_0x246b72[_0x29fec0('0x2151')]['lexregion']=_0x4da593[0x2],_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x53')]=_0x4da593[0x3],_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1a7')]=_0x4da593[_0x29fec0('0x2456')](0x4,_0x4da593['length'])['join'](',');}break;case _0x29fec0('0x23fe'):{const _0x35f8d7=_0x246b72['close'][_0x29fec0('0x1c00')][_0x29fec0('0x43a')](',');_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x611')]=isNaN(_0x35f8d7[0x0])?_0x35f8d7[0x0]:parseInt(_0x35f8d7[0x0],0xa),_0x246b72[_0x29fec0('0x2151')]['text']=_0x35f8d7[_0x29fec0('0x2456')](0x1,_0x35f8d7[_0x29fec0('0x543')])['join'](',');}break;case _0x29fec0('0x67f'):_0x246b72[_0x29fec0('0x2151')]['text']=_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1c00')];break;case'set':_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x10ad')]=_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1c00')][_0x29fec0('0x43a')]('=')[0x0],_0x246b72['close'][_0x29fec0('0xa7b')]=_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1c00')][_0x29fec0('0x43a')]('=')[0x1];break;case _0x29fec0('0x2426'):_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x220b')]=_0x246b72['close'][_0x29fec0('0x1c00')];break;default:{const _0x2a1273=_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1c00')][_0x29fec0('0x43a')](',');_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x2766')]=_0x3c8d8a()[_0x29fec0('0x1a56')](_0x2a1273[0x0])?_0x2a1273[0x0]:isNaN(_0x2a1273[0x0])?_0x2a1273[0x0]:parseInt(_0x2a1273[0x0],0xa);}break;}else{}_0x246b72['close']['type']&&_0x246b72[_0x29fec0('0x2151')]['type']['toLowerCase']()===_0x29fec0('0xb33')&&_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x9d7')][_0x29fec0('0x1e68')]()===_0x29fec0('0x1edc')&&(_0x246b72['close'][_0x29fec0('0x23f7')]=_0x246b72['close'][_0x29fec0('0xa04')]?_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0xa04')][_0x29fec0('0x43a')]('$')[0x0]:undefined,_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0x1961')]=_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0xe95')]?_0x29fec0('0x20a8')+_0x246b72[_0x29fec0('0x2151')][_0x29fec0('0xe95')]:undefined);_0x246b72[_0x29fec0('0x1420')]=_0x4ada78,_0x246b72['closeDialog']=_0x3fe9ac;function _0x4ada78(){const _0x4c539f=_0x29fec0;_0x246b72['errors']=[];const _0x39347e=[];_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x1810')]&&_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x1810')][_0x4c539f('0x1e68')]()===_0x4c539f('0xb33')&&_0x246b72[_0x4c539f('0x2151')]['appType']==='outboundDial'&&(_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0xa04')]=_0x3fb2e4['cutdigits']?(_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x23f7')]||'')+_0x4c539f('0x1957')+_0x3fb2e4['cutdigits']+'}':(_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x23f7')]||'')+'${EXTEN}',_0x3fb2e4[_0x4c539f('0x76c')]!==_0x4c539f('0x2741')?_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x2010')][_0x4c539f('0x2087')](_0x4c539f('0x2474'))<0x0&&(_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x2010')]+=_0x4c539f('0x2474')):_0x246b72[_0x4c539f('0x2151')]['options']=_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x2010')][_0x4c539f('0x166c')](_0x4c539f('0x2474'),''));if(_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x9d7')]&&_0x246b72[_0x4c539f('0x2151')]['appType']===_0x4c539f('0xbb4')){}else switch((_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x17e')]||_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x9d7')])[_0x4c539f('0x1e68')]()){case _0x4c539f('0x256d'):_0x246b72[_0x4c539f('0x2151')]['appdata']=_0x246b72['close']['name']+'='+_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0xa7b')];break;case'custom':break;default:_0x39347e[0x0]=_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x2766')],_0x246b72[_0x4c539f('0x2151')][_0x4c539f('0x1c00')]=_0x39347e['join'](',');}_0x3fe9ac(_0x246b72[_0x4c539f('0x2151')]);}function _0x3fe9ac(_0x9d3646){const _0x4af6e8=_0x29fec0;_0x449b79[_0x4af6e8('0x1cf4')](_0x9d3646);}}const _0x365813=_0x59c381;_0x22ee1f['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x7d6'),_0x566993('0x1740'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x22ee1f(_0x508b17,_0x4d9a92,_0x28543b,_0x36a73f,_0x816ac2,_0x1ac1d0,_0x4b4956,_0x2010fc){const _0x5b97aa=_0x566993,_0x3d732a=this;_0x3d732a[_0x5b97aa('0x155f')]=_0x4b4956[_0x5b97aa('0x14d4')](),_0x3d732a['errors']=[],_0x3d732a[_0x5b97aa('0x20d6')]=_0x5b97aa('0x38b')+(_0x36a73f[_0x5b97aa('0x9d7')]||_0x36a73f[_0x5b97aa('0x17e')])['toUpperCase'](),_0x3d732a[_0x5b97aa('0x1601')]=angular['copy'](_0x36a73f),_0x3d732a[_0x5b97aa('0x1dc1')]=_0x2010fc,_0x3d732a[_0x5b97aa('0xb0')]={};if(_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1c00')])switch(_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x9d7')]?_0x3d732a[_0x5b97aa('0x1601')]['appType'][_0x5b97aa('0x1e68')]():_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x17e')][_0x5b97aa('0x1e68')]()){case _0x5b97aa('0xbb4'):break;case _0x5b97aa('0x1601'):{const _0x17b440=_0x3d732a['dialogflow'][_0x5b97aa('0x1c00')]['split'](',');_0x3d732a['dialogflow'][_0x5b97aa('0x237a')]=_0x17b440[0x0],_0x3d732a['dialogflow'][_0x5b97aa('0x604')]=_0x17b440[0x1],_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1a7')]=_0x17b440[_0x5b97aa('0x2456')](0x2,_0x17b440[_0x5b97aa('0x543')])[_0x5b97aa('0x2259')](',');}break;case _0x5b97aa('0x1680'):{const _0x31e1e5=_0x3d732a['dialogflow'][_0x5b97aa('0x1c00')][_0x5b97aa('0x43a')](',');_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x2e0')]=_0x31e1e5[0x0],_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1d93')]=_0x31e1e5[0x1],_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x10fc')]=_0x31e1e5[0x2],_0x3d732a['dialogflow'][_0x5b97aa('0x53')]=_0x31e1e5[0x3],_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1a7')]=_0x31e1e5['slice'](0x4,_0x31e1e5[_0x5b97aa('0x543')])['join'](',');}break;case _0x5b97aa('0x23fe'):{const _0x5c82a8=_0x3d732a['dialogflow'][_0x5b97aa('0x1c00')]['split'](',');_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x611')]=isNaN(_0x5c82a8[0x0])?_0x5c82a8[0x0]:parseInt(_0x5c82a8[0x0],0xa),_0x3d732a[_0x5b97aa('0x1601')]['text']=_0x5c82a8['slice'](0x1,_0x5c82a8[_0x5b97aa('0x543')])['join'](',');}break;case'message':_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x86e')]=_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1c00')];break;case _0x5b97aa('0x256d'):_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x10ad')]=_0x3d732a['dialogflow']['appdata'][_0x5b97aa('0x43a')]('=')[0x0],_0x3d732a['dialogflow'][_0x5b97aa('0xa7b')]=_0x3d732a['dialogflow']['appdata'][_0x5b97aa('0x43a')]('=')[0x1];break;case _0x5b97aa('0x2426'):_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x220b')]=_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1c00')];break;default:{const _0x44d362=_0x3d732a['dialogflow'][_0x5b97aa('0x1c00')][_0x5b97aa('0x43a')](',');_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x237a')]=_0x3c8d8a()['isEmpty'](_0x44d362[0x0])?_0x44d362[0x0]:isNaN(_0x44d362[0x0])?_0x44d362[0x0]:parseInt(_0x44d362[0x0],0xa),_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x604')]=_0x3c8d8a()[_0x5b97aa('0x1a56')](_0x44d362[0x1])?_0x44d362[0x1]:isNaN(_0x44d362[0x1])?_0x44d362[0x1]:parseInt(_0x44d362[0x1],0xa),_0x3d732a['dialogflow'][_0x5b97aa('0x1a7')]=_0x3c8d8a()[_0x5b97aa('0x1a56')](_0x44d362[0x2])?_0x44d362[0x2]:isNaN(_0x44d362[0x2])?_0x44d362[0x2]:parseInt(_0x44d362[0x2],0xa);}break;}else _0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x604')]='en';_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1810')]&&_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1810')][_0x5b97aa('0x1e68')]()===_0x5b97aa('0xb33')&&_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x9d7')][_0x5b97aa('0x1e68')]()===_0x5b97aa('0x1edc')&&(_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x23f7')]=_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0xa04')]?_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0xa04')]['split']('$')[0x0]:undefined,_0x3d732a[_0x5b97aa('0x1601')][_0x5b97aa('0x1961')]=_0x3d732a['dialogflow'][_0x5b97aa('0xe95')]?_0x5b97aa('0x20a8')+_0x3d732a['dialogflow'][_0x5b97aa('0xe95')]:undefined);_0x3d732a[_0x5b97aa('0x1420')]=_0x256392,_0x3d732a['closeDialog']=_0xc97280;function _0x256392(){const _0x33ca95=_0x5b97aa;_0x3d732a[_0x33ca95('0x1d4a')]=[];const _0x1d596c=[];_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x1810')]&&_0x3d732a[_0x33ca95('0x1601')]['type']['toLowerCase']()===_0x33ca95('0xb33')&&_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x9d7')]==='outboundDial'&&(_0x3d732a['dialogflow'][_0x33ca95('0xa04')]=_0x816ac2[_0x33ca95('0x1429')]?(_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x23f7')]||'')+'${EXTEN:'+_0x816ac2['cutdigits']+'}':(_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x23f7')]||'')+_0x33ca95('0x1dc5'),_0x816ac2[_0x33ca95('0x76c')]!==_0x33ca95('0x2741')?_0x3d732a['dialogflow']['options'][_0x33ca95('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x2010')]+='U(xcally-mixmonitor-context)'):_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x2010')]=_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x2010')]['replace'](_0x33ca95('0x2474'),''));if(_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x9d7')]&&_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x9d7')]===_0x33ca95('0xbb4')){}else switch((_0x3d732a['dialogflow'][_0x33ca95('0x17e')]||_0x3d732a[_0x33ca95('0x1601')]['appType'])['toLowerCase']()){case _0x33ca95('0x256d'):_0x3d732a[_0x33ca95('0x1601')]['appdata']=_0x3d732a['dialogflow']['name']+'='+_0x3d732a['dialogflow'][_0x33ca95('0xa7b')];break;case _0x33ca95('0xbb4'):break;default:_0x1d596c[0x0]=_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x237a')],_0x1d596c[0x1]=_0x3d732a['dialogflow'][_0x33ca95('0x604')],_0x1d596c[0x2]=_0x3d732a['dialogflow'][_0x33ca95('0x1a7')],_0x3d732a[_0x33ca95('0x1601')][_0x33ca95('0x1c00')]=_0x1d596c['join'](',');}_0xc97280(_0x3d732a[_0x33ca95('0x1601')]);}function _0xc97280(_0x5a37e3){const _0x16d0ef=_0x5b97aa;_0x508b17[_0x16d0ef('0x1cf4')](_0x5a37e3);}}const _0x50caa1=_0x22ee1f;_0x4f981e['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'chatWebsiteApp',_0x566993('0x1740'),'api','Auth',_0x566993('0x1dc1')];function _0x4f981e(_0xae8da8,_0x523f78,_0x14da79,_0x1ef961,_0x18bf0b,_0x232b28,_0xd05e37,_0x416f3c){const _0x2baa23=_0x566993,_0xc12f50=this;_0xc12f50['currentUser']=_0xd05e37[_0x2baa23('0x14d4')](),_0xc12f50[_0x2baa23('0x1d4a')]=[],_0xc12f50[_0x2baa23('0x20d6')]=_0x2baa23('0x38b')+(_0x1ef961[_0x2baa23('0x9d7')]||_0x1ef961[_0x2baa23('0x17e')])[_0x2baa23('0x1164')](),_0xc12f50[_0x2baa23('0xf5d')]=angular[_0x2baa23('0x2e3')](_0x1ef961),_0xc12f50[_0x2baa23('0x1dc1')]=_0x416f3c,_0xc12f50[_0x2baa23('0xb0')]={};if(_0xc12f50['gotoif'][_0x2baa23('0x1c00')])switch(_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x9d7')]?_0xc12f50['gotoif'][_0x2baa23('0x9d7')]['toLowerCase']():_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x17e')][_0x2baa23('0x1e68')]()){case _0x2baa23('0xbb4'):break;case'dialogflow':{const _0x2e1e4e=_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x1c00')][_0x2baa23('0x43a')](',');_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x237a')]=_0x2e1e4e[0x0],_0xc12f50[_0x2baa23('0xf5d')]['language']=_0x2e1e4e[0x1],_0xc12f50[_0x2baa23('0xf5d')]['welcomemessage']=_0x2e1e4e[_0x2baa23('0x2456')](0x2,_0x2e1e4e['length'])[_0x2baa23('0x2259')](',');}break;case _0x2baa23('0x1680'):{const _0xe492c1=_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x1c00')][_0x2baa23('0x43a')](',');_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x2e0')]=_0xe492c1[0x0],_0xc12f50[_0x2baa23('0xf5d')]['secretaccesskey']=_0xe492c1[0x1],_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x10fc')]=_0xe492c1[0x2],_0xc12f50['gotoif'][_0x2baa23('0x53')]=_0xe492c1[0x3],_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x1a7')]=_0xe492c1[_0x2baa23('0x2456')](0x4,_0xe492c1['length'])[_0x2baa23('0x2259')](',');}break;case _0x2baa23('0x23fe'):{const _0x3a8a6f=_0xc12f50[_0x2baa23('0xf5d')]['appdata'][_0x2baa23('0x43a')](',');_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x611')]=isNaN(_0x3a8a6f[0x0])?_0x3a8a6f[0x0]:parseInt(_0x3a8a6f[0x0],0xa),_0xc12f50[_0x2baa23('0xf5d')]['text']=_0x3a8a6f['slice'](0x1,_0x3a8a6f['length'])[_0x2baa23('0x2259')](',');}break;case _0x2baa23('0x67f'):_0xc12f50['gotoif'][_0x2baa23('0x86e')]=_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x1c00')];break;case _0x2baa23('0x256d'):_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x10ad')]=_0xc12f50['gotoif'][_0x2baa23('0x1c00')]['split']('=')[0x0],_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0xa7b')]=_0xc12f50[_0x2baa23('0xf5d')]['appdata'][_0x2baa23('0x43a')]('=')[0x1];break;case _0x2baa23('0x2426'):_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x220b')]=_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x1c00')];break;default:{const _0x3ec139=_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x1c00')]['split'](',');_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x1adb')]=_0x3c8d8a()[_0x2baa23('0x1a56')](_0x3ec139[0x0])?_0x3ec139[0x0]:isNaN(_0x3ec139[0x0])?_0x3ec139[0x0]:parseInt(_0x3ec139[0x0],0xa),_0xc12f50['gotoif'][_0x2baa23('0x1cd7')]=_0x3c8d8a()[_0x2baa23('0x1a56')](_0x3ec139[0x1])?_0x3ec139[0x1]:isNaN(_0x3ec139[0x1])?_0x3ec139[0x1]:parseInt(_0x3ec139[0x1],0xa),_0xc12f50[_0x2baa23('0xf5d')]['falsepriority']=_0x3c8d8a()[_0x2baa23('0x1a56')](_0x3ec139[0x2])?_0x3ec139[0x2]:isNaN(_0x3ec139[0x2])?_0x3ec139[0x2]:parseInt(_0x3ec139[0x2],0xa);}break;}else{}_0xc12f50['gotoif'][_0x2baa23('0x1810')]&&_0xc12f50['gotoif'][_0x2baa23('0x1810')]['toLowerCase']()===_0x2baa23('0xb33')&&_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0x9d7')]['toLowerCase']()===_0x2baa23('0x1edc')&&(_0xc12f50[_0x2baa23('0xf5d')]['prefix']=_0xc12f50[_0x2baa23('0xf5d')]['phone']?_0xc12f50['gotoif'][_0x2baa23('0xa04')]['split']('$')[0x0]:undefined,_0xc12f50[_0x2baa23('0xf5d')]['callerId']=_0xc12f50[_0x2baa23('0xf5d')][_0x2baa23('0xe95')]?_0x2baa23('0x20a8')+_0xc12f50['gotoif'][_0x2baa23('0xe95')]:undefined);_0xc12f50[_0x2baa23('0x1420')]=_0x499a63,_0xc12f50['closeDialog']=_0x4df327;function _0x499a63(){const _0x5b9097=_0x2baa23;_0xc12f50[_0x5b9097('0x1d4a')]=[];const _0x1ccd96=[];_0xc12f50[_0x5b9097('0xf5d')]['type']&&_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x1810')][_0x5b9097('0x1e68')]()===_0x5b9097('0xb33')&&_0xc12f50['gotoif']['appType']===_0x5b9097('0x2150')&&(_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0xa04')]=_0x18bf0b[_0x5b9097('0x1429')]?(_0xc12f50['gotoif']['prefix']||'')+_0x5b9097('0x1957')+_0x18bf0b['cutdigits']+'}':(_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x23f7')]||'')+'${EXTEN}',_0x18bf0b['recordingFormat']!==_0x5b9097('0x2741')?_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x2010')][_0x5b9097('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x2010')]+=_0x5b9097('0x2474')):_0xc12f50['gotoif']['options']=_0xc12f50['gotoif']['options']['replace']('U(xcally-mixmonitor-context)',''));if(_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x9d7')]&&_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x9d7')]===_0x5b9097('0xbb4')){}else switch((_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x17e')]||_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x9d7')])[_0x5b9097('0x1e68')]()){case _0x5b9097('0x256d'):_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x1c00')]=_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x10ad')]+'='+_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0xa7b')];break;case _0x5b9097('0xbb4'):break;default:_0x1ccd96[0x0]=_0xc12f50[_0x5b9097('0xf5d')][_0x5b9097('0x1adb')],_0x1ccd96[0x1]=_0xc12f50['gotoif']['truepriority'],_0x1ccd96[0x2]=_0xc12f50['gotoif']['falsepriority'],_0xc12f50['gotoif'][_0x5b9097('0x1c00')]=_0x1ccd96[_0x5b9097('0x2259')](',');}_0x4df327(_0xc12f50['gotoif']);}function _0x4df327(_0xf31ede){_0xae8da8['hide'](_0xf31ede);}}const _0x1e8552=_0x4f981e;_0x5d65f4[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x7d6'),'chatWebsite',_0x566993('0xbd4'),'Auth','crudPermissions'];function _0x5d65f4(_0x4f1d45,_0x23dadb,_0x145064,_0x272b64,_0x2b1099,_0x131503,_0x2770c3,_0x1ba63a){const _0x2afdfb=_0x566993,_0xf7b371=this;_0xf7b371[_0x2afdfb('0x155f')]=_0x2770c3[_0x2afdfb('0x14d4')](),_0xf7b371[_0x2afdfb('0x1d4a')]=[],_0xf7b371['title']='CHAT.EDIT_'+(_0x272b64['appType']||_0x272b64[_0x2afdfb('0x17e')])[_0x2afdfb('0x1164')](),_0xf7b371[_0x2afdfb('0x2ac')]=angular[_0x2afdfb('0x2e3')](_0x272b64),_0xf7b371[_0x2afdfb('0x1dc1')]=_0x1ba63a,_0xf7b371[_0x2afdfb('0xb0')]={};if(_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1c00')])switch(_0xf7b371[_0x2afdfb('0x2ac')]['appType']?_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x9d7')][_0x2afdfb('0x1e68')]():_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x17e')][_0x2afdfb('0x1e68')]()){case _0x2afdfb('0xbb4'):break;case _0x2afdfb('0x1601'):{const _0x128afa=_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1c00')][_0x2afdfb('0x43a')](',');_0xf7b371['gotop'][_0x2afdfb('0x237a')]=_0x128afa[0x0],_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x604')]=_0x128afa[0x1],_0xf7b371[_0x2afdfb('0x2ac')]['welcomemessage']=_0x128afa['slice'](0x2,_0x128afa[_0x2afdfb('0x543')])[_0x2afdfb('0x2259')](',');}break;case _0x2afdfb('0x1680'):{const _0x1fce38=_0xf7b371[_0x2afdfb('0x2ac')]['appdata'][_0x2afdfb('0x43a')](',');_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x2e0')]=_0x1fce38[0x0],_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1d93')]=_0x1fce38[0x1],_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x10fc')]=_0x1fce38[0x2],_0xf7b371['gotop'][_0x2afdfb('0x53')]=_0x1fce38[0x3],_0xf7b371['gotop']['welcomemessage']=_0x1fce38[_0x2afdfb('0x2456')](0x4,_0x1fce38[_0x2afdfb('0x543')])[_0x2afdfb('0x2259')](',');}break;case _0x2afdfb('0x23fe'):{const _0x58f0db=_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1c00')][_0x2afdfb('0x43a')](',');_0xf7b371['gotop']['times']=isNaN(_0x58f0db[0x0])?_0x58f0db[0x0]:parseInt(_0x58f0db[0x0],0xa),_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x86e')]=_0x58f0db[_0x2afdfb('0x2456')](0x1,_0x58f0db['length'])[_0x2afdfb('0x2259')](',');}break;case _0x2afdfb('0x67f'):_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x86e')]=_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1c00')];break;case'set':_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x10ad')]=_0xf7b371['gotop'][_0x2afdfb('0x1c00')][_0x2afdfb('0x43a')]('=')[0x0],_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0xa7b')]=_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1c00')]['split']('=')[0x1];break;case'agi':_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x220b')]=_0xf7b371[_0x2afdfb('0x2ac')]['appdata'];break;default:{const _0x15b10b=_0xf7b371['gotop'][_0x2afdfb('0x1c00')]['split'](',');_0xf7b371['gotop'][_0x2afdfb('0xb3')]=_0x3c8d8a()[_0x2afdfb('0x1a56')](_0x15b10b[0x0])?_0x15b10b[0x0]:isNaN(_0x15b10b[0x0])?_0x15b10b[0x0]:parseInt(_0x15b10b[0x0],0xa);}break;}else{}_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1810')]&&_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1810')]['toLowerCase']()===_0x2afdfb('0xb33')&&_0xf7b371['gotop'][_0x2afdfb('0x9d7')][_0x2afdfb('0x1e68')]()===_0x2afdfb('0x1edc')&&(_0xf7b371['gotop']['prefix']=_0xf7b371['gotop'][_0x2afdfb('0xa04')]?_0xf7b371['gotop']['phone'][_0x2afdfb('0x43a')]('$')[0x0]:undefined,_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0x1961')]=_0xf7b371[_0x2afdfb('0x2ac')][_0x2afdfb('0xe95')]?_0x2afdfb('0x20a8')+_0xf7b371[_0x2afdfb('0x2ac')]['callerID']:undefined);_0xf7b371['saveChatWebsiteApp']=_0x78f06e,_0xf7b371[_0x2afdfb('0x18e2')]=_0x17d0c4;function _0x78f06e(){const _0x43787f=_0x2afdfb;_0xf7b371['errors']=[];const _0x2bd6fe=[];_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x1810')]&&_0xf7b371['gotop'][_0x43787f('0x1810')][_0x43787f('0x1e68')]()==='outbound'&&_0xf7b371['gotop'][_0x43787f('0x9d7')]===_0x43787f('0x2150')&&(_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0xa04')]=_0x2b1099[_0x43787f('0x1429')]?(_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x23f7')]||'')+_0x43787f('0x1957')+_0x2b1099['cutdigits']+'}':(_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x23f7')]||'')+'${EXTEN}',_0x2b1099[_0x43787f('0x76c')]!==_0x43787f('0x2741')?_0xf7b371['gotop']['options'][_0x43787f('0x2087')](_0x43787f('0x2474'))<0x0&&(_0xf7b371[_0x43787f('0x2ac')]['options']+='U(xcally-mixmonitor-context)'):_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x2010')]=_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x2010')][_0x43787f('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x9d7')]&&_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x9d7')]===_0x43787f('0xbb4')){}else switch((_0xf7b371[_0x43787f('0x2ac')]['app']||_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x9d7')])[_0x43787f('0x1e68')]()){case _0x43787f('0x256d'):_0xf7b371['gotop'][_0x43787f('0x1c00')]=_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0x10ad')]+'='+_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0xa7b')];break;case _0x43787f('0xbb4'):break;default:_0x2bd6fe[0x0]=_0xf7b371[_0x43787f('0x2ac')][_0x43787f('0xb3')],_0xf7b371[_0x43787f('0x2ac')]['appdata']=_0x2bd6fe[_0x43787f('0x2259')](',');}_0x17d0c4(_0xf7b371[_0x43787f('0x2ac')]);}function _0x17d0c4(_0x4eeb89){const _0x4df2a7=_0x2afdfb;_0x4f1d45[_0x4df2a7('0x1cf4')](_0x4eeb89);}}const _0x475a01=_0x5d65f4;_0x4b6ce9['$inject']=['$state',_0x566993('0x1fe5'),_0x566993('0x1276'),_0x566993('0x1975'),'interval','intervals',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4b6ce9(_0x203f52,_0x26fd89,_0xe341df,_0x45abf2,_0x17d242,_0x1208e6,_0x4496a7,_0x1a35c2,_0x307eac,_0x1a7da2){const _0x4c5e14=_0x566993,_0x3410b0=this;_0x3410b0[_0x4c5e14('0x155f')]=_0x307eac[_0x4c5e14('0x14d4')](),_0x3410b0[_0x4c5e14('0x1d4a')]=[],_0x3410b0[_0x4c5e14('0x20d6')]=_0x4c5e14('0x117b'),_0x3410b0[_0x4c5e14('0x55a')]=angular[_0x4c5e14('0x2e3')](_0x17d242),_0x3410b0[_0x4c5e14('0x21c4')]=_0x1208e6,_0x3410b0[_0x4c5e14('0x1d80')]=![],_0x3410b0[_0x4c5e14('0xf00')]=['always',_0x4c5e14('0xbb4'),'list'],_0x3410b0[_0x4c5e14('0x1dc1')]=_0x1a7da2,_0x3410b0['daysOfWeek']=_0x45abf2[_0x4c5e14('0x89e')](),_0x3410b0[_0x4c5e14('0x8e4')]=_0x45abf2['getMonthNumber'](),_0x3410b0[_0x4c5e14('0x1d95')]=_0x45abf2['getMonthName'](),_0x3410b0[_0x4c5e14('0x2742')]=_0x45abf2[_0x4c5e14('0x1c80')]();if(!_0x3410b0[_0x4c5e14('0x55a')])_0x3410b0['interval']={'interval':'*,*,*,*'},_0x3410b0[_0x4c5e14('0x1810')]=_0x4c5e14('0x17b3'),_0x3410b0[_0x4c5e14('0x20d6')]=_0x4c5e14('0xbb5'),_0x3410b0[_0x4c5e14('0x1d80')]=!![];else{if(_0x3410b0[_0x4c5e14('0x55a')]['interval']!=='*,*,*,*'){_0x3410b0['type']=_0x4c5e14('0xbb4');const _0x2a02f8=_0x3410b0[_0x4c5e14('0x55a')]['interval'][_0x4c5e14('0x43a')](','),_0x30ff54=_0x2a02f8[0x0],_0x4f1a5e=_0x2a02f8[0x1],_0x1d7c7f=_0x2a02f8[0x2],_0xf44025=_0x2a02f8[0x3];if(_0x30ff54!=='*'){const _0x2d9b59=_0x30ff54['split']('-')[0x0],_0x3b780a=_0x30ff54[_0x4c5e14('0x43a')]('-')[0x1];let _0x328d24;_0x328d24=new Date(),_0x328d24['setHours'](Number(_0x2d9b59['split'](':')[0x0])),_0x328d24[_0x4c5e14('0x14f9')](Number(_0x2d9b59[_0x4c5e14('0x43a')](':')[0x1])),_0x3410b0[_0x4c5e14('0x2515')]=_0x328d24,_0x328d24=new Date(),_0x328d24['setHours'](Number(_0x3b780a[_0x4c5e14('0x43a')](':')[0x0])),_0x328d24[_0x4c5e14('0x14f9')](Number(_0x3b780a['split'](':')[0x1])),_0x3410b0[_0x4c5e14('0x437')]=_0x328d24;}_0x4f1a5e!=='*'&&(_0x3410b0['dayOfWeekFrom']=_0x4f1a5e[_0x4c5e14('0x43a')]('-')[0x0],_0x3410b0[_0x4c5e14('0x269e')]=_0x4f1a5e[_0x4c5e14('0x43a')]('-')[0x1]),_0x1d7c7f!=='*'&&(_0x3410b0[_0x4c5e14('0x6df')]=_0x1d7c7f[_0x4c5e14('0x43a')]('-')[0x0],_0x3410b0['monthDayTo']=_0x1d7c7f[_0x4c5e14('0x43a')]('-')[0x1]),_0xf44025!=='*'&&(_0x3410b0[_0x4c5e14('0x1f34')]=_0xf44025['split']('-')[0x0],_0x3410b0[_0x4c5e14('0xf74')]=_0xf44025[_0x4c5e14('0x43a')]('-')[0x1]);}else _0x3410b0['type']='always';}_0x203f52[_0x4c5e14('0x197a')]['id']&&!_0x3410b0[_0x4c5e14('0x55a')]['application']&&(_0x3410b0[_0x4c5e14('0x55a')][_0x4c5e14('0x600')]=_0x203f52[_0x4c5e14('0x197a')]['id']);_0x3410b0[_0x4c5e14('0x55a')][_0x4c5e14('0x600')]&&_0x3410b0[_0x4c5e14('0x55a')][_0x4c5e14('0x17c2')]&&(_0x3410b0[_0x4c5e14('0x1810')]=_0x4c5e14('0x3e3'));_0x3410b0[_0x4c5e14('0x11fc')]=_0x14cd08,_0x3410b0[_0x4c5e14('0x1401')]=_0x17a96d,_0x3410b0[_0x4c5e14('0x18e2')]=_0x369bad;_0x3410b0['interval'][_0x4c5e14('0x17c2')]&&(_0x307eac[_0x4c5e14('0x1b4e')]('admin')?_0x1a35c2[_0x4c5e14('0x55a')][_0x4c5e14('0x1d97')]({'fields':_0x4c5e14('0x2666'),'IntervalId':_0x4c5e14('0x877'),'nolimit':!![]})[_0x4c5e14('0x1964')][_0x4c5e14('0x173b')](function(_0x4e98ef){const _0x68d7ed=_0x4c5e14;_0x3410b0['intervals']=_0x4e98ef[_0x68d7ed('0x6aa')]||[];})['catch'](function(_0x1a3732){const _0x3b3d30=_0x4c5e14;_0x4496a7['error']({'title':_0x1a3732[_0x3b3d30('0x276f')]?'API:'+_0x1a3732[_0x3b3d30('0x276f')]+_0x3b3d30('0x160c')+_0x1a3732['statusText']:_0x3b3d30('0x1daf'),'msg':_0x1a3732[_0x3b3d30('0x1e07')]?JSON[_0x3b3d30('0x100b')](_0x1a3732[_0x3b3d30('0x1e07')]):_0x1a3732[_0x3b3d30('0x1b75')]()});}):_0x1a35c2[_0x4c5e14('0x55a')]['get']({'fields':_0x4c5e14('0x2666'),'IntervalId':_0x4c5e14('0x877'),'nolimit':!![]})[_0x4c5e14('0x1964')][_0x4c5e14('0x173b')](function(_0x512b41){const _0x3da6f6=_0x4c5e14;_0x3410b0['intervals']=_0x512b41[_0x3da6f6('0x6aa')]||[];})[_0x4c5e14('0x173b')](function(){const _0x15b4c4=_0x4c5e14;return _0x1a35c2[_0x15b4c4('0x170e')][_0x15b4c4('0x1d97')]({'userProfileId':_0x3410b0[_0x15b4c4('0x155f')][_0x15b4c4('0x1946')],'sectionId':0x3ec})['$promise'];})[_0x4c5e14('0x173b')](function(_0x198c9f){const _0x58ae8b=_0x4c5e14,_0x108059=_0x198c9f&&_0x198c9f[_0x58ae8b('0x6aa')]?_0x198c9f[_0x58ae8b('0x6aa')][0x0]:null;if(!_0x108059)_0x3410b0[_0x58ae8b('0x21c4')]=[];else{if(!_0x108059[_0x58ae8b('0x273e')])return _0x1a35c2['userProfileResource']['get']({'sectionId':_0x108059['id']})[_0x58ae8b('0x1964')][_0x58ae8b('0x173b')](function(_0x551ab0){const _0x4d8bc7=_0x58ae8b,_0x21d398=_0x551ab0&&_0x551ab0['rows']?_0x551ab0[_0x4d8bc7('0x6aa')]:[],_0x3cbc6f=[];let _0x1f05a2=null;_0x3410b0[_0x4d8bc7('0x55a')]&&(_0x1f05a2=_0x3c8d8a()['find'](_0x3410b0[_0x4d8bc7('0x21c4')],{'name':_0x3410b0['interval']['IntervalId']})),_0x1f05a2&&!_0x3c8d8a()[_0x4d8bc7('0x1ec')](_0x21d398,['resourceId',_0x1f05a2['id']])&&_0x3410b0['intervals'][_0x4d8bc7('0xa6a')](function(_0x5a7ca3){const _0x475b91=_0x4d8bc7;_0x5a7ca3['id']===_0x1f05a2['id']&&(_0x5a7ca3['canSelect']=![],_0x3cbc6f[_0x475b91('0x18bb')](_0x5a7ca3));}),_0x3410b0[_0x4d8bc7('0x21c4')]=_0x3cbc6f;});}})[_0x4c5e14('0x103c')](function(_0x5cca3a){const _0x54691b=_0x4c5e14;_0x4496a7[_0x54691b('0x15aa')]({'title':_0x5cca3a[_0x54691b('0x276f')]?_0x54691b('0x137')+_0x5cca3a[_0x54691b('0x276f')]+'\x20-\x20'+_0x5cca3a[_0x54691b('0x2696')]:_0x54691b('0x1daf'),'msg':_0x5cca3a[_0x54691b('0x1e07')]?JSON[_0x54691b('0x100b')](_0x5cca3a[_0x54691b('0x1e07')]):_0x5cca3a[_0x54691b('0x1b75')]()});}));function _0x5bf06c(){const _0x4f46d8=_0x4c5e14;switch(_0x3410b0['type']){case _0x4f46d8('0x17b3'):case _0x4f46d8('0x3e3'):return _0x4f46d8('0x17c5');case _0x4f46d8('0xbb4'):{const _0x5321f1=[];if(_0x3410b0[_0x4f46d8('0x2515')]!=='*'&&_0x3410b0['timeRangeFrom']&&_0x3410b0['timeRangeTo']){const _0x36a939=(_0x3410b0[_0x4f46d8('0x2515')][_0x4f46d8('0x1a28')]()<0xa?'0':'')+_0x3410b0[_0x4f46d8('0x2515')]['getHours']()+':'+((_0x3410b0['timeRangeFrom']['getMinutes']()<0xa?'0':'')+_0x3410b0[_0x4f46d8('0x2515')][_0x4f46d8('0x1d2a')]()),_0xf04f02=(_0x3410b0['timeRangeTo'][_0x4f46d8('0x1a28')]()<0xa?'0':'')+_0x3410b0[_0x4f46d8('0x437')]['getHours']()+':'+((_0x3410b0['timeRangeTo'][_0x4f46d8('0x1d2a')]()<0xa?'0':'')+_0x3410b0['timeRangeTo'][_0x4f46d8('0x1d2a')]());_0x5321f1[_0x4f46d8('0x18bb')](_0x36a939+'-'+_0xf04f02);}else _0x5321f1[_0x4f46d8('0x18bb')]('*');return _0x3410b0[_0x4f46d8('0x37a')]?_0x3410b0[_0x4f46d8('0x269e')]?_0x5321f1[_0x4f46d8('0x18bb')](_0x3410b0['dayOfWeekFrom']+'-'+_0x3410b0[_0x4f46d8('0x269e')]):_0x5321f1[_0x4f46d8('0x18bb')](_0x3410b0['dayOfWeekFrom']):_0x5321f1[_0x4f46d8('0x18bb')]('*'),_0x3410b0[_0x4f46d8('0x6df')]?_0x3410b0[_0x4f46d8('0x185e')]?_0x5321f1[_0x4f46d8('0x18bb')](_0x3410b0[_0x4f46d8('0x6df')]+'-'+_0x3410b0[_0x4f46d8('0x185e')]):_0x5321f1[_0x4f46d8('0x18bb')](_0x3410b0['monthDayFrom']):_0x5321f1[_0x4f46d8('0x18bb')]('*'),_0x3410b0[_0x4f46d8('0x1f34')]?_0x3410b0[_0x4f46d8('0xf74')]?_0x5321f1['push'](_0x3410b0[_0x4f46d8('0x1f34')]+'-'+_0x3410b0['monthTo']):_0x5321f1[_0x4f46d8('0x18bb')](_0x3410b0[_0x4f46d8('0x1f34')]):_0x5321f1[_0x4f46d8('0x18bb')]('*'),_0x5321f1[_0x4f46d8('0x2259')]();}}}function _0x14cd08(){const _0x49b996=_0x4c5e14;_0x3410b0[_0x49b996('0x1d4a')]=[],_0x3410b0[_0x49b996('0x55a')][_0x49b996('0x55a')]=_0x5bf06c(),_0x1a35c2[_0x49b996('0x55a')][_0x49b996('0x1195')](_0x3410b0[_0x49b996('0x55a')])[_0x49b996('0x1964')]['then'](function(_0x3ef6e7){const _0x3727f5=_0x49b996;_0x3410b0[_0x3727f5('0x21c4')][_0x3727f5('0x18bb')](_0x3ef6e7),_0x4496a7[_0x3727f5('0xdfe')]({'title':_0x3727f5('0x17fa'),'msg':_0x3410b0[_0x3727f5('0x55a')][_0x3727f5('0x10ad')]?_0x3410b0[_0x3727f5('0x55a')]['name']+_0x3727f5('0x209a'):''}),_0x369bad();})['catch'](function(_0x4b7531){const _0x5257a8=_0x49b996;console[_0x5257a8('0x15aa')](_0x4b7531),_0x3410b0['errors']=_0x4b7531[_0x5257a8('0x1e07')][_0x5257a8('0x1d4a')]||[{'message':_0x4b7531[_0x5257a8('0x1b75')](),'type':_0x5257a8('0xbde')}];});}function _0x17a96d(){const _0xccfcf4=_0x4c5e14;_0x3410b0[_0xccfcf4('0x1d4a')]=[],_0x3410b0['interval']['interval']=_0x5bf06c(),_0x3410b0[_0xccfcf4('0x55a')][_0xccfcf4('0x17c2')]?(_0x3410b0[_0xccfcf4('0x1810')]!==_0xccfcf4('0x3e3')&&(_0x3410b0[_0xccfcf4('0x55a')]['IntervalId']=null),_0x369bad(_0x3410b0['interval'])):_0x1a35c2[_0xccfcf4('0x55a')][_0xccfcf4('0x1842')]({'id':_0x3410b0[_0xccfcf4('0x55a')]['id']},_0x3410b0[_0xccfcf4('0x55a')])['$promise'][_0xccfcf4('0x173b')](function(_0x2ac35a){const _0x16b322=_0xccfcf4,_0x1435ce=_0x3c8d8a()[_0x16b322('0x18ab')](_0x3410b0[_0x16b322('0x21c4')],{'id':_0x2ac35a['id']});_0x1435ce&&_0x3c8d8a()[_0x16b322('0x9ef')](_0x1435ce,_0x2ac35a),_0x4496a7[_0x16b322('0xdfe')]({'title':'Interval\x20properly\x20saved!','msg':_0x16b322('0x227f')}),_0x369bad();})['catch'](function(_0x49a99a){const _0x4d79d9=_0xccfcf4;console[_0x4d79d9('0x15aa')](_0x49a99a),_0x3410b0['errors']=_0x49a99a[_0x4d79d9('0x1e07')][_0x4d79d9('0x1d4a')]||[{'message':_0x49a99a[_0x4d79d9('0x1b75')](),'type':_0x4d79d9('0xe20')}];});}function _0x369bad(_0x14b805){const _0x4f13da=_0x4c5e14;_0x26fd89[_0x4f13da('0x1cf4')](_0x14b805);}}const _0x4283ff=_0x4b6ce9;_0x3478ac[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'chatWebsiteApp',_0x566993('0x1740'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x3478ac(_0x293db7,_0x3c6876,_0x3b5cc7,_0x402f5d,_0x307627,_0x260fe7,_0x4256a2,_0x81f9e6){const _0x5a2f83=_0x566993,_0x1ef935=this;_0x1ef935['currentUser']=_0x4256a2[_0x5a2f83('0x14d4')](),_0x1ef935[_0x5a2f83('0x1d4a')]=[],_0x1ef935[_0x5a2f83('0x20d6')]=_0x5a2f83('0x38b')+(_0x402f5d[_0x5a2f83('0x9d7')]||_0x402f5d[_0x5a2f83('0x17e')])[_0x5a2f83('0x1164')](),_0x1ef935[_0x5a2f83('0x1086')]=angular[_0x5a2f83('0x2e3')](_0x402f5d),_0x1ef935[_0x5a2f83('0x1dc1')]=_0x81f9e6,_0x1ef935[_0x5a2f83('0xb0')]={};if(_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')])switch(_0x1ef935[_0x5a2f83('0x1086')]['appType']?_0x1ef935['noop'][_0x5a2f83('0x9d7')]['toLowerCase']():_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x17e')]['toLowerCase']()){case _0x5a2f83('0xbb4'):break;case _0x5a2f83('0x1601'):{const _0x12fdd7=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')]['split'](',');_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x237a')]=_0x12fdd7[0x0],_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x604')]=_0x12fdd7[0x1],_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1a7')]=_0x12fdd7[_0x5a2f83('0x2456')](0x2,_0x12fdd7[_0x5a2f83('0x543')])[_0x5a2f83('0x2259')](',');}break;case _0x5a2f83('0x1680'):{const _0xb51d1e=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')]['split'](',');_0x1ef935[_0x5a2f83('0x1086')]['accesskeyid']=_0xb51d1e[0x0],_0x1ef935[_0x5a2f83('0x1086')]['secretaccesskey']=_0xb51d1e[0x1],_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x10fc')]=_0xb51d1e[0x2],_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x53')]=_0xb51d1e[0x3],_0x1ef935[_0x5a2f83('0x1086')]['welcomemessage']=_0xb51d1e[_0x5a2f83('0x2456')](0x4,_0xb51d1e['length'])['join'](',');}break;case _0x5a2f83('0x23fe'):{const _0x2ee2c7=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')]['split'](',');_0x1ef935['noop'][_0x5a2f83('0x611')]=isNaN(_0x2ee2c7[0x0])?_0x2ee2c7[0x0]:parseInt(_0x2ee2c7[0x0],0xa),_0x1ef935[_0x5a2f83('0x1086')]['text']=_0x2ee2c7['slice'](0x1,_0x2ee2c7['length'])[_0x5a2f83('0x2259')](',');}break;case _0x5a2f83('0x67f'):_0x1ef935['noop'][_0x5a2f83('0x86e')]=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')];break;case _0x5a2f83('0x256d'):_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x10ad')]=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')]['split']('=')[0x0],_0x1ef935['noop'][_0x5a2f83('0xa7b')]=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')][_0x5a2f83('0x43a')]('=')[0x1];break;case _0x5a2f83('0x2426'):_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x220b')]=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')];break;default:{const _0x5934f7=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1c00')][_0x5a2f83('0x43a')](',');_0x1ef935[_0x5a2f83('0x1086')]['value']=_0x3c8d8a()[_0x5a2f83('0x1a56')](_0x5934f7[0x0])?_0x5934f7[0x0]:isNaN(_0x5934f7[0x0])?_0x5934f7[0x0]:parseInt(_0x5934f7[0x0],0xa);}break;}else{}_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1810')]&&_0x1ef935[_0x5a2f83('0x1086')]['type']['toLowerCase']()===_0x5a2f83('0xb33')&&_0x1ef935['noop']['appType'][_0x5a2f83('0x1e68')]()===_0x5a2f83('0x1edc')&&(_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x23f7')]=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0xa04')]?_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0xa04')]['split']('$')[0x0]:undefined,_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0x1961')]=_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0xe95')]?'CALLERID(all)='+_0x1ef935[_0x5a2f83('0x1086')][_0x5a2f83('0xe95')]:undefined);_0x1ef935['saveChatWebsiteApp']=_0x57e030,_0x1ef935[_0x5a2f83('0x18e2')]=_0x4a4390;function _0x57e030(){const _0x5be39f=_0x5a2f83;_0x1ef935[_0x5be39f('0x1d4a')]=[];const _0x3a0a6f=[];_0x1ef935['noop']['type']&&_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0x1810')][_0x5be39f('0x1e68')]()===_0x5be39f('0xb33')&&_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0x9d7')]===_0x5be39f('0x2150')&&(_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0xa04')]=_0x307627[_0x5be39f('0x1429')]?(_0x1ef935[_0x5be39f('0x1086')]['prefix']||'')+'${EXTEN:'+_0x307627[_0x5be39f('0x1429')]+'}':(_0x1ef935[_0x5be39f('0x1086')]['prefix']||'')+_0x5be39f('0x1dc5'),_0x307627['recordingFormat']!==_0x5be39f('0x2741')?_0x1ef935[_0x5be39f('0x1086')]['options'][_0x5be39f('0x2087')](_0x5be39f('0x2474'))<0x0&&(_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0x2010')]+=_0x5be39f('0x2474')):_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0x2010')]=_0x1ef935['noop'][_0x5be39f('0x2010')][_0x5be39f('0x166c')](_0x5be39f('0x2474'),''));if(_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0x9d7')]&&_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0x9d7')]==='custom'){}else switch((_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0x17e')]||_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0x9d7')])[_0x5be39f('0x1e68')]()){case _0x5be39f('0x256d'):_0x1ef935['noop'][_0x5be39f('0x1c00')]=_0x1ef935['noop'][_0x5be39f('0x10ad')]+'='+_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0xa7b')];break;case _0x5be39f('0xbb4'):break;default:_0x3a0a6f[0x0]=_0x1ef935[_0x5be39f('0x1086')][_0x5be39f('0xa7b')],_0x1ef935[_0x5be39f('0x1086')]['appdata']=_0x3a0a6f['join'](',');}_0x4a4390(_0x1ef935['noop']);}function _0x4a4390(_0x5ded24){const _0x927a52=_0x5a2f83;_0x293db7[_0x927a52('0x1cf4')](_0x5ded24);}}const _0x46b6ea=_0x3478ac;_0x3bff78[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x7d6'),'chatWebsite',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x3bff78(_0x58821e,_0x5ba0da,_0xf0af5d,_0x1abc37,_0x2f06f0,_0x1c0db5,_0x1245f6,_0x29703c){const _0x408c31=_0x566993,_0x5149d9=this;_0x5149d9[_0x408c31('0x155f')]=_0x1245f6['getCurrentUser'](),_0x5149d9[_0x408c31('0x1d4a')]=[],_0x5149d9['title']='CHAT.EDIT_'+(_0x1abc37[_0x408c31('0x9d7')]||_0x1abc37[_0x408c31('0x17e')])['toUpperCase'](),_0x5149d9[_0x408c31('0x172')]=angular[_0x408c31('0x2e3')](_0x1abc37),_0x5149d9[_0x408c31('0x1dc1')]=_0x29703c,_0x5149d9[_0x408c31('0xb0')]={};if(_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1c00')])switch(_0x5149d9[_0x408c31('0x172')][_0x408c31('0x9d7')]?_0x5149d9[_0x408c31('0x172')]['appType'][_0x408c31('0x1e68')]():_0x5149d9[_0x408c31('0x172')][_0x408c31('0x17e')][_0x408c31('0x1e68')]()){case _0x408c31('0xbb4'):break;case _0x408c31('0x1601'):{const _0x4bbc09=_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1c00')][_0x408c31('0x43a')](',');_0x5149d9['queue'][_0x408c31('0x237a')]=_0x4bbc09[0x0],_0x5149d9[_0x408c31('0x172')][_0x408c31('0x604')]=_0x4bbc09[0x1],_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1a7')]=_0x4bbc09[_0x408c31('0x2456')](0x2,_0x4bbc09[_0x408c31('0x543')])[_0x408c31('0x2259')](',');}break;case _0x408c31('0x1680'):{const _0x224d84=_0x5149d9['queue'][_0x408c31('0x1c00')][_0x408c31('0x43a')](',');_0x5149d9[_0x408c31('0x172')][_0x408c31('0x2e0')]=_0x224d84[0x0],_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1d93')]=_0x224d84[0x1],_0x5149d9[_0x408c31('0x172')][_0x408c31('0x10fc')]=_0x224d84[0x2],_0x5149d9['queue'][_0x408c31('0x53')]=_0x224d84[0x3],_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1a7')]=_0x224d84['slice'](0x4,_0x224d84[_0x408c31('0x543')])['join'](',');}break;case _0x408c31('0x23fe'):{const _0x57192a=_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1c00')][_0x408c31('0x43a')](',');_0x5149d9['queue']['times']=isNaN(_0x57192a[0x0])?_0x57192a[0x0]:parseInt(_0x57192a[0x0],0xa),_0x5149d9[_0x408c31('0x172')][_0x408c31('0x86e')]=_0x57192a[_0x408c31('0x2456')](0x1,_0x57192a[_0x408c31('0x543')])[_0x408c31('0x2259')](',');}break;case'message':_0x5149d9['queue'][_0x408c31('0x86e')]=_0x5149d9[_0x408c31('0x172')]['appdata'];break;case _0x408c31('0x256d'):_0x5149d9[_0x408c31('0x172')]['name']=_0x5149d9[_0x408c31('0x172')]['appdata']['split']('=')[0x0],_0x5149d9[_0x408c31('0x172')][_0x408c31('0xa7b')]=_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1c00')][_0x408c31('0x43a')]('=')[0x1];break;case _0x408c31('0x2426'):_0x5149d9[_0x408c31('0x172')][_0x408c31('0x220b')]=_0x5149d9[_0x408c31('0x172')]['appdata'];break;default:{const _0x52d15e=_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1c00')][_0x408c31('0x43a')](',');_0x5149d9['queue']['queue']=_0x3c8d8a()['isEmpty'](_0x52d15e[0x0])?_0x52d15e[0x0]:isNaN(_0x52d15e[0x0])?_0x52d15e[0x0]:parseInt(_0x52d15e[0x0],0xa),_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1f84')]=_0x3c8d8a()[_0x408c31('0x1a56')](_0x52d15e[0x1])?_0x52d15e[0x1]:isNaN(_0x52d15e[0x1])?_0x52d15e[0x1]:parseInt(_0x52d15e[0x1],0xa);}break;}else _0x5149d9[_0x408c31('0x172')]['queue']=0x12c,_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1f84')]=0x12c;_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1810')]&&_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1810')][_0x408c31('0x1e68')]()===_0x408c31('0xb33')&&_0x5149d9[_0x408c31('0x172')][_0x408c31('0x9d7')][_0x408c31('0x1e68')]()===_0x408c31('0x1edc')&&(_0x5149d9[_0x408c31('0x172')]['prefix']=_0x5149d9[_0x408c31('0x172')][_0x408c31('0xa04')]?_0x5149d9[_0x408c31('0x172')][_0x408c31('0xa04')][_0x408c31('0x43a')]('$')[0x0]:undefined,_0x5149d9[_0x408c31('0x172')][_0x408c31('0x1961')]=_0x5149d9['queue'][_0x408c31('0xe95')]?_0x408c31('0x20a8')+_0x5149d9['queue']['callerID']:undefined);_0x5149d9[_0x408c31('0x1420')]=_0x12a999,_0x5149d9[_0x408c31('0x18e2')]=_0x305b50,_0x1245f6[_0x408c31('0x1b4e')]('admin')?_0x1c0db5[_0x408c31('0x940')][_0x408c31('0x1d97')]({'fields':_0x408c31('0x1c66'),'sort':_0x408c31('0x10ad'),'nolimit':'true'})[_0x408c31('0x1964')][_0x408c31('0x173b')](function(_0x4be2c5){const _0x25efef=_0x408c31;_0x5149d9[_0x25efef('0xeae')]=_0x4be2c5[_0x25efef('0x6aa')]||[];})[_0x408c31('0x103c')](function(_0xdc8035){const _0x278eae=_0x408c31;_0xf0af5d['error']({'title':_0xdc8035[_0x278eae('0x276f')]?'API:'+_0xdc8035['status']+_0x278eae('0x160c')+_0xdc8035[_0x278eae('0x2696')]:'SYSTEM:GET_QUEUES','msg':_0xdc8035['data']?JSON[_0x278eae('0x100b')](_0xdc8035[_0x278eae('0x1e07')]):_0xdc8035[_0x278eae('0x1b75')]()});}):_0x1c0db5[_0x408c31('0x940')]['get']({'fields':_0x408c31('0x1c66'),'sort':_0x408c31('0x10ad'),'nolimit':_0x408c31('0x799')})['$promise']['then'](function(_0x11d969){const _0x4b8253=_0x408c31;_0x5149d9['queues']=_0x11d969[_0x4b8253('0x6aa')]||[];})[_0x408c31('0x173b')](function(){const _0x9c4580=_0x408c31;return _0x1c0db5[_0x9c4580('0x170e')][_0x9c4580('0x1d97')]({'userProfileId':_0x5149d9['currentUser']['userProfileId'],'sectionId':0x1f5})['$promise'];})[_0x408c31('0x173b')](function(_0x405098){const _0x9853f6=_0x408c31,_0x56978a=_0x405098&&_0x405098[_0x9853f6('0x6aa')]?_0x405098[_0x9853f6('0x6aa')][0x0]:null;if(!_0x56978a){const _0x3c70d6=[];let _0x38d5a2=null;_0x5149d9[_0x9853f6('0x172')]&&(_0x38d5a2=_0x3c8d8a()['find'](_0x5149d9['queues'],{'name':_0x5149d9[_0x9853f6('0x172')][_0x9853f6('0x172')]}));for(let _0x13c3e1=0x0;_0x13c3e1<_0x5149d9[_0x9853f6('0xeae')][_0x9853f6('0x543')];_0x13c3e1++){_0x38d5a2&&_0x5149d9['queues'][_0x13c3e1]['id']===_0x38d5a2['id']&&(_0x5149d9['queues'][_0x13c3e1][_0x9853f6('0x268e')]=![],_0x3c70d6[_0x9853f6('0x18bb')](_0x5149d9[_0x9853f6('0xeae')][_0x13c3e1]));}_0x5149d9[_0x9853f6('0xeae')]=_0x3c70d6;}else{if(!_0x56978a[_0x9853f6('0x273e')])return _0x1c0db5[_0x9853f6('0xda9')][_0x9853f6('0x1d97')]({'sectionId':_0x56978a['id']})['$promise'][_0x9853f6('0x173b')](function(_0x3432fc){const _0x9beec5=_0x9853f6,_0x3ed842=_0x3c8d8a()[_0x9beec5('0x8a2')](_0x3432fc['rows'],function(_0x20a1d2){const _0x23ed7a=_0x9beec5;return _0x3c8d8a()[_0x23ed7a('0x18ab')](_0x5149d9[_0x23ed7a('0xeae')],{'id':_0x20a1d2[_0x23ed7a('0x1ce0')]});});let _0x556bce=null;_0x5149d9['queue']&&(_0x556bce=_0x3c8d8a()[_0x9beec5('0x18ab')](_0x5149d9['queues'],{'name':_0x5149d9['queue']['queue']}));if(_0x556bce&&!_0x3c8d8a()['some'](_0x3ed842,['id',_0x556bce['id']])){const _0x5e9aac=_0x3c8d8a()[_0x9beec5('0x18ab')](_0x5149d9[_0x9beec5('0xeae')],{'id':_0x556bce['id']});_0x5e9aac[_0x9beec5('0x268e')]=![],_0x3ed842[_0x9beec5('0x18bb')](_0x5e9aac);}_0x5149d9[_0x9beec5('0xeae')]=_0x3ed842;});}})[_0x408c31('0x103c')](function(_0x57c595){const _0x57acf6=_0x408c31;_0xf0af5d['error']({'title':_0x57c595[_0x57acf6('0x276f')]?_0x57acf6('0x137')+_0x57c595['status']+_0x57acf6('0x160c')+_0x57c595[_0x57acf6('0x2696')]:_0x57acf6('0x75f'),'msg':_0x57c595[_0x57acf6('0x1e07')]?JSON[_0x57acf6('0x100b')](_0x57c595[_0x57acf6('0x1e07')]):_0x57c595[_0x57acf6('0x1b75')]()});});function _0x12a999(){const _0x788304=_0x408c31;_0x5149d9[_0x788304('0x1d4a')]=[];const _0x44da0d=[];_0x5149d9[_0x788304('0x172')][_0x788304('0x1810')]&&_0x5149d9[_0x788304('0x172')]['type'][_0x788304('0x1e68')]()===_0x788304('0xb33')&&_0x5149d9['queue'][_0x788304('0x9d7')]===_0x788304('0x2150')&&(_0x5149d9[_0x788304('0x172')][_0x788304('0xa04')]=_0x2f06f0[_0x788304('0x1429')]?(_0x5149d9['queue'][_0x788304('0x23f7')]||'')+_0x788304('0x1957')+_0x2f06f0[_0x788304('0x1429')]+'}':(_0x5149d9[_0x788304('0x172')][_0x788304('0x23f7')]||'')+'${EXTEN}',_0x2f06f0['recordingFormat']!==_0x788304('0x2741')?_0x5149d9['queue'][_0x788304('0x2010')][_0x788304('0x2087')](_0x788304('0x2474'))<0x0&&(_0x5149d9[_0x788304('0x172')][_0x788304('0x2010')]+=_0x788304('0x2474')):_0x5149d9['queue'][_0x788304('0x2010')]=_0x5149d9['queue'][_0x788304('0x2010')][_0x788304('0x166c')]('U(xcally-mixmonitor-context)',''));const _0x1ede5f=_0x3c8d8a()['find'](_0x5149d9['queues'],{'name':_0x5149d9[_0x788304('0x172')][_0x788304('0x172')]});_0x1ede5f&&(_0x5149d9[_0x788304('0x172')][_0x3c8d8a()[_0x788304('0x587')](_0x788304('0x8c5'))+'QueueId']=_0x1ede5f['id']);if(_0x5149d9[_0x788304('0x172')][_0x788304('0x9d7')]&&_0x5149d9[_0x788304('0x172')][_0x788304('0x9d7')]===_0x788304('0xbb4')){}else switch((_0x5149d9[_0x788304('0x172')][_0x788304('0x17e')]||_0x5149d9['queue'][_0x788304('0x9d7')])[_0x788304('0x1e68')]()){case'set':_0x5149d9[_0x788304('0x172')][_0x788304('0x1c00')]=_0x5149d9[_0x788304('0x172')][_0x788304('0x10ad')]+'='+_0x5149d9[_0x788304('0x172')][_0x788304('0xa7b')];break;case _0x788304('0xbb4'):break;default:_0x44da0d[0x0]=_0x5149d9[_0x788304('0x172')]['queue'],_0x44da0d[0x1]=_0x5149d9[_0x788304('0x172')][_0x788304('0x1f84')],_0x5149d9['queue'][_0x788304('0x1c00')]=_0x44da0d['join'](',');}_0x305b50(_0x5149d9[_0x788304('0x172')]);}function _0x305b50(_0x2dcd33){const _0x104dcf=_0x408c31;_0x58821e[_0x104dcf('0x1cf4')](_0x2dcd33);}}const _0x1d80a1=_0x3bff78;_0x4321eb[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x7d6'),'chatWebsite','api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4321eb(_0x57db83,_0x1914a0,_0x477343,_0x20b0b4,_0x1d6fe8,_0x394789,_0x21d60e,_0x5d6416){const _0x6ada13=_0x566993,_0x633667=this;_0x633667['currentUser']=_0x21d60e[_0x6ada13('0x14d4')](),_0x633667['errors']=[],_0x633667[_0x6ada13('0x20d6')]=_0x6ada13('0x38b')+(_0x20b0b4[_0x6ada13('0x9d7')]||_0x20b0b4['app'])[_0x6ada13('0x1164')](),_0x633667[_0x6ada13('0x1ed')]=angular[_0x6ada13('0x2e3')](_0x20b0b4),_0x633667[_0x6ada13('0x1dc1')]=_0x5d6416,_0x633667[_0x6ada13('0xb0')]={};if(_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1c00')])switch(_0x633667['system'][_0x6ada13('0x9d7')]?_0x633667[_0x6ada13('0x1ed')]['appType'][_0x6ada13('0x1e68')]():_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x17e')][_0x6ada13('0x1e68')]()){case _0x6ada13('0xbb4'):break;case _0x6ada13('0x1601'):{const _0x4b6986=_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1c00')][_0x6ada13('0x43a')](',');_0x633667['system']['key']=_0x4b6986[0x0],_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x604')]=_0x4b6986[0x1],_0x633667['system'][_0x6ada13('0x1a7')]=_0x4b6986['slice'](0x2,_0x4b6986[_0x6ada13('0x543')])[_0x6ada13('0x2259')](',');}break;case _0x6ada13('0x1680'):{const _0x450a12=_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1c00')][_0x6ada13('0x43a')](',');_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x2e0')]=_0x450a12[0x0],_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1d93')]=_0x450a12[0x1],_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x10fc')]=_0x450a12[0x2],_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x53')]=_0x450a12[0x3],_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1a7')]=_0x450a12[_0x6ada13('0x2456')](0x4,_0x450a12[_0x6ada13('0x543')])['join'](',');}break;case _0x6ada13('0x23fe'):{const _0x2320e5=_0x633667['system']['appdata'][_0x6ada13('0x43a')](',');_0x633667[_0x6ada13('0x1ed')]['times']=isNaN(_0x2320e5[0x0])?_0x2320e5[0x0]:parseInt(_0x2320e5[0x0],0xa),_0x633667[_0x6ada13('0x1ed')]['text']=_0x2320e5[_0x6ada13('0x2456')](0x1,_0x2320e5[_0x6ada13('0x543')])[_0x6ada13('0x2259')](',');}break;case'message':_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x86e')]=_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1c00')];break;case'set':_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x10ad')]=_0x633667['system'][_0x6ada13('0x1c00')][_0x6ada13('0x43a')]('=')[0x0],_0x633667['system'][_0x6ada13('0xa7b')]=_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1c00')][_0x6ada13('0x43a')]('=')[0x1];break;case _0x6ada13('0x2426'):_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x220b')]=_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1c00')];break;default:{const _0x30dd47=_0x633667['system']['appdata'][_0x6ada13('0x43a')](',');_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0xdc4')]=_0x3c8d8a()['isEmpty'](_0x30dd47[0x0])?_0x30dd47[0x0]:isNaN(_0x30dd47[0x0])?_0x30dd47[0x0]:parseInt(_0x30dd47[0x0],0xa),_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1b56')]=_0x3c8d8a()[_0x6ada13('0x1a56')](_0x30dd47[0x1])?_0x30dd47[0x1]:isNaN(_0x30dd47[0x1])?_0x30dd47[0x1]:parseInt(_0x30dd47[0x1],0xa);}break;}else _0x633667[_0x6ada13('0x1ed')]['variable']='';_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1810')]&&_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x1810')][_0x6ada13('0x1e68')]()===_0x6ada13('0xb33')&&_0x633667[_0x6ada13('0x1ed')]['appType'][_0x6ada13('0x1e68')]()===_0x6ada13('0x1edc')&&(_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0x23f7')]=_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0xa04')]?_0x633667[_0x6ada13('0x1ed')]['phone'][_0x6ada13('0x43a')]('$')[0x0]:undefined,_0x633667['system'][_0x6ada13('0x1961')]=_0x633667[_0x6ada13('0x1ed')][_0x6ada13('0xe95')]?_0x6ada13('0x20a8')+_0x633667[_0x6ada13('0x1ed')]['callerID']:undefined);_0x633667['saveChatWebsiteApp']=_0x146a5f,_0x633667[_0x6ada13('0x18e2')]=_0x3b2ba9,_0x21d60e[_0x6ada13('0x1b4e')]('admin')?_0x394789[_0x6ada13('0x1b56')][_0x6ada13('0x1d97')]({'fields':_0x6ada13('0xd52'),'sort':_0x6ada13('0x10ad'),'nolimit':'true'})[_0x6ada13('0x1964')][_0x6ada13('0x173b')](function(_0x1f6d21){const _0x4de124=_0x6ada13;_0x633667[_0x4de124('0x2715')]=_0x1f6d21['rows']||[];})[_0x6ada13('0x103c')](function(_0x46551d){const _0x4144f0=_0x6ada13;_0x477343[_0x4144f0('0x15aa')]({'title':_0x46551d[_0x4144f0('0x276f')]?_0x4144f0('0x137')+_0x46551d[_0x4144f0('0x276f')]+'\x20-\x20'+_0x46551d['statusText']:_0x4144f0('0x1d22'),'msg':_0x46551d[_0x4144f0('0x1e07')]?JSON['stringify'](_0x46551d['data']):_0x46551d['toString']()});}):_0x394789[_0x6ada13('0x1b56')][_0x6ada13('0x1d97')]({'fields':_0x6ada13('0xd52'),'sort':'name','nolimit':_0x6ada13('0x799')})[_0x6ada13('0x1964')][_0x6ada13('0x173b')](function(_0x54a098){const _0x2f6eb9=_0x6ada13;_0x633667[_0x2f6eb9('0x2715')]=_0x54a098['rows']||[];})[_0x6ada13('0x173b')](function(){const _0x24fb89=_0x6ada13;return _0x394789[_0x24fb89('0x170e')]['get']({'userProfileId':_0x633667['currentUser']['userProfileId'],'sectionId':0x3f4})[_0x24fb89('0x1964')];})['then'](function(_0x3412fe){const _0x3295d0=_0x6ada13,_0x298918=_0x3412fe&&_0x3412fe[_0x3295d0('0x6aa')]?_0x3412fe[_0x3295d0('0x6aa')][0x0]:null;if(!_0x298918){const _0x3dbe38=[];let _0x11f4ef=null;_0x633667[_0x3295d0('0x1ed')]&&(_0x11f4ef=_0x3c8d8a()[_0x3295d0('0x18ab')](_0x633667[_0x3295d0('0x2715')],{'name':_0x633667[_0x3295d0('0x1ed')][_0x3295d0('0x1b56')]}));for(let _0x16ad0f=0x0;_0x16ad0f<_0x633667['variables']['length'];_0x16ad0f++){_0x11f4ef&&_0x633667[_0x3295d0('0x2715')][_0x16ad0f]['id']===_0x11f4ef['id']&&(_0x633667[_0x3295d0('0x2715')][_0x16ad0f][_0x3295d0('0x268e')]=![],_0x3dbe38[_0x3295d0('0x18bb')](_0x633667[_0x3295d0('0x2715')][_0x16ad0f]));}_0x633667[_0x3295d0('0x2715')]=_0x3dbe38;}else{if(!_0x298918[_0x3295d0('0x273e')])return _0x394789[_0x3295d0('0xda9')]['get']({'sectionId':_0x298918['id']})['$promise'][_0x3295d0('0x173b')](function(_0x48ff6e){const _0x18f95e=_0x3295d0,_0x3aacfa=_0x3c8d8a()[_0x18f95e('0x8a2')](_0x48ff6e[_0x18f95e('0x6aa')],function(_0x2fdd5f){const _0x42e28e=_0x18f95e;return _0x3c8d8a()[_0x42e28e('0x18ab')](_0x633667[_0x42e28e('0x2715')],{'id':_0x2fdd5f['resourceId']});});let _0x4d57a2=null;_0x633667[_0x18f95e('0x1ed')]&&(_0x4d57a2=_0x3c8d8a()[_0x18f95e('0x18ab')](_0x633667[_0x18f95e('0x2715')],{'name':_0x633667[_0x18f95e('0x1ed')][_0x18f95e('0x1b56')]}));if(_0x4d57a2&&!_0x3c8d8a()[_0x18f95e('0x1ec')](_0x3aacfa,['id',_0x4d57a2['id']])){const _0x19cc7f=_0x3c8d8a()['find'](_0x633667['variables'],{'id':_0x4d57a2['id']});_0x19cc7f[_0x18f95e('0x268e')]=![],_0x3aacfa['push'](_0x19cc7f);}_0x633667[_0x18f95e('0x2715')]=_0x3aacfa;});}})[_0x6ada13('0x103c')](function(_0x28614f){const _0x5d4dba=_0x6ada13;_0x477343[_0x5d4dba('0x15aa')]({'title':_0x28614f[_0x5d4dba('0x276f')]?'API:'+_0x28614f[_0x5d4dba('0x276f')]+_0x5d4dba('0x160c')+_0x28614f[_0x5d4dba('0x2696')]:_0x5d4dba('0x27a'),'msg':_0x28614f['data']?JSON[_0x5d4dba('0x100b')](_0x28614f['data']):_0x28614f[_0x5d4dba('0x1b75')]()});});function _0x146a5f(){const _0x359f85=_0x6ada13;_0x633667[_0x359f85('0x1d4a')]=[];const _0x473cc5=[];_0x633667['system'][_0x359f85('0x1810')]&&_0x633667[_0x359f85('0x1ed')]['type'][_0x359f85('0x1e68')]()===_0x359f85('0xb33')&&_0x633667[_0x359f85('0x1ed')][_0x359f85('0x9d7')]===_0x359f85('0x2150')&&(_0x633667[_0x359f85('0x1ed')][_0x359f85('0xa04')]=_0x1d6fe8['cutdigits']?(_0x633667[_0x359f85('0x1ed')][_0x359f85('0x23f7')]||'')+_0x359f85('0x1957')+_0x1d6fe8[_0x359f85('0x1429')]+'}':(_0x633667[_0x359f85('0x1ed')][_0x359f85('0x23f7')]||'')+_0x359f85('0x1dc5'),_0x1d6fe8['recordingFormat']!==_0x359f85('0x2741')?_0x633667['system'][_0x359f85('0x2010')][_0x359f85('0x2087')](_0x359f85('0x2474'))<0x0&&(_0x633667[_0x359f85('0x1ed')][_0x359f85('0x2010')]+='U(xcally-mixmonitor-context)'):_0x633667[_0x359f85('0x1ed')]['options']=_0x633667[_0x359f85('0x1ed')][_0x359f85('0x2010')][_0x359f85('0x166c')](_0x359f85('0x2474'),''));if(_0x633667[_0x359f85('0x1ed')][_0x359f85('0x9d7')]&&_0x633667[_0x359f85('0x1ed')][_0x359f85('0x9d7')]==='custom'){}else switch((_0x633667[_0x359f85('0x1ed')][_0x359f85('0x17e')]||_0x633667[_0x359f85('0x1ed')][_0x359f85('0x9d7')])[_0x359f85('0x1e68')]()){case'set':_0x633667[_0x359f85('0x1ed')][_0x359f85('0x1c00')]=_0x633667['system']['name']+'='+_0x633667[_0x359f85('0x1ed')][_0x359f85('0xa7b')];break;case _0x359f85('0xbb4'):break;default:_0x473cc5[0x0]=_0x633667[_0x359f85('0x1ed')][_0x359f85('0xdc4')],_0x473cc5[0x1]=_0x633667[_0x359f85('0x1ed')][_0x359f85('0x1b56')],_0x633667[_0x359f85('0x1ed')]['appdata']=_0x473cc5[_0x359f85('0x2259')](',');}_0x3b2ba9(_0x633667[_0x359f85('0x1ed')]);}function _0x3b2ba9(_0x529a49){const _0x5e5aa4=_0x6ada13;_0x57db83[_0x5e5aa4('0x1cf4')](_0x529a49);}}const _0x2107d1=_0x4321eb;_0x4b10af['$inject']=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x7d6'),'chatWebsite',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4b10af(_0x45ab19,_0x1ee926,_0x27f531,_0x1e40e1,_0x15a112,_0x49d4fb,_0x40a8f3,_0x482fad){const _0x27f84a=_0x566993,_0xfdc300=this;_0xfdc300[_0x27f84a('0x155f')]=_0x40a8f3['getCurrentUser'](),_0xfdc300[_0x27f84a('0x1d4a')]=[],_0xfdc300[_0x27f84a('0x20d6')]=_0x27f84a('0x38b')+(_0x1e40e1[_0x27f84a('0x9d7')]||_0x1e40e1['app'])['toUpperCase'](),_0xfdc300[_0x27f84a('0x23b4')]=angular[_0x27f84a('0x2e3')](_0x1e40e1),_0xfdc300[_0x27f84a('0x1dc1')]=_0x482fad,_0xfdc300['hasModulePermissions']={};if(_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x1c00')])switch(_0xfdc300[_0x27f84a('0x23b4')]['appType']?_0xfdc300[_0x27f84a('0x23b4')]['appType']['toLowerCase']():_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x17e')][_0x27f84a('0x1e68')]()){case _0x27f84a('0xbb4'):break;case'dialogflow':{const _0x14f845=_0xfdc300[_0x27f84a('0x23b4')]['appdata'][_0x27f84a('0x43a')](',');_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x237a')]=_0x14f845[0x0],_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x604')]=_0x14f845[0x1],_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x1a7')]=_0x14f845[_0x27f84a('0x2456')](0x2,_0x14f845[_0x27f84a('0x543')])[_0x27f84a('0x2259')](',');}break;case'amazonlex':{const _0x2fa10c=_0xfdc300['tag']['appdata']['split'](',');_0xfdc300['tag'][_0x27f84a('0x2e0')]=_0x2fa10c[0x0],_0xfdc300['tag'][_0x27f84a('0x1d93')]=_0x2fa10c[0x1],_0xfdc300['tag'][_0x27f84a('0x10fc')]=_0x2fa10c[0x2],_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x53')]=_0x2fa10c[0x3],_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x1a7')]=_0x2fa10c[_0x27f84a('0x2456')](0x4,_0x2fa10c[_0x27f84a('0x543')])[_0x27f84a('0x2259')](',');}break;case'autoreply':{const _0x4abc3d=_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x1c00')][_0x27f84a('0x43a')](',');_0xfdc300['tag'][_0x27f84a('0x611')]=isNaN(_0x4abc3d[0x0])?_0x4abc3d[0x0]:parseInt(_0x4abc3d[0x0],0xa),_0xfdc300['tag']['text']=_0x4abc3d[_0x27f84a('0x2456')](0x1,_0x4abc3d['length'])[_0x27f84a('0x2259')](',');}break;case _0x27f84a('0x67f'):_0xfdc300['tag'][_0x27f84a('0x86e')]=_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x1c00')];break;case _0x27f84a('0x256d'):_0xfdc300[_0x27f84a('0x23b4')]['name']=_0xfdc300['tag'][_0x27f84a('0x1c00')][_0x27f84a('0x43a')]('=')[0x0],_0xfdc300['tag'][_0x27f84a('0xa7b')]=_0xfdc300['tag'][_0x27f84a('0x1c00')]['split']('=')[0x1];break;case _0x27f84a('0x2426'):_0xfdc300['tag']['project']=_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x1c00')];break;default:{const _0x38f259=_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x1c00')]['split'](',');_0xfdc300[_0x27f84a('0x23b4')]['tag']=_0x3c8d8a()[_0x27f84a('0x1a56')](_0x38f259[0x0])?_0x38f259[0x0]:isNaN(_0x38f259[0x0])?_0x38f259[0x0]:parseInt(_0x38f259[0x0],0xa);}break;}else{}_0xfdc300['tag']['type']&&_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x1810')][_0x27f84a('0x1e68')]()==='outbound'&&_0xfdc300[_0x27f84a('0x23b4')]['appType'][_0x27f84a('0x1e68')]()===_0x27f84a('0x1edc')&&(_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0x23f7')]=_0xfdc300[_0x27f84a('0x23b4')]['phone']?_0xfdc300[_0x27f84a('0x23b4')]['phone'][_0x27f84a('0x43a')]('$')[0x0]:undefined,_0xfdc300['tag'][_0x27f84a('0x1961')]=_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0xe95')]?_0x27f84a('0x20a8')+_0xfdc300[_0x27f84a('0x23b4')][_0x27f84a('0xe95')]:undefined);_0xfdc300[_0x27f84a('0x1420')]=_0x40ebf5,_0xfdc300[_0x27f84a('0x18e2')]=_0x25772b,_0x40a8f3[_0x27f84a('0x1b4e')](_0x27f84a('0x79b'))?_0x49d4fb['tag'][_0x27f84a('0x1d97')]({'fields':_0x27f84a('0xd52'),'sort':_0x27f84a('0x10ad'),'nolimit':_0x27f84a('0x799')})[_0x27f84a('0x1964')][_0x27f84a('0x173b')](function(_0x3131d5){const _0x4cbdfc=_0x27f84a;_0xfdc300[_0x4cbdfc('0x22ac')]=_0x3131d5[_0x4cbdfc('0x6aa')]||[];})[_0x27f84a('0x103c')](function(_0xd62f19){const _0x372523=_0x27f84a;_0x27f531['error']({'title':_0xd62f19[_0x372523('0x276f')]?_0x372523('0x137')+_0xd62f19[_0x372523('0x276f')]+_0x372523('0x160c')+_0xd62f19['statusText']:_0x372523('0x1a9b'),'msg':_0xd62f19['data']?JSON[_0x372523('0x100b')](_0xd62f19['data']):_0xd62f19[_0x372523('0x1b75')]()});}):_0x49d4fb[_0x27f84a('0x23b4')]['get']({'fields':'id,name','sort':_0x27f84a('0x10ad'),'nolimit':_0x27f84a('0x799')})[_0x27f84a('0x1964')]['then'](function(_0x4bf45b){const _0x36ed3d=_0x27f84a;_0xfdc300[_0x36ed3d('0x22ac')]=_0x4bf45b[_0x36ed3d('0x6aa')]||[];})['then'](function(){const _0x47e947=_0x27f84a;return _0x49d4fb[_0x47e947('0x170e')][_0x47e947('0x1d97')]({'userProfileId':_0xfdc300[_0x47e947('0x155f')]['userProfileId'],'sectionId':0x3f0})[_0x47e947('0x1964')];})[_0x27f84a('0x173b')](function(_0x5e05a1){const _0x35fe9f=_0x27f84a,_0x37ef13=_0x5e05a1&&_0x5e05a1[_0x35fe9f('0x6aa')]?_0x5e05a1[_0x35fe9f('0x6aa')][0x0]:null;if(!_0x37ef13){const _0x14e8c8=[];let _0x50e060=null;_0xfdc300[_0x35fe9f('0x23b4')]&&(_0x50e060=_0x3c8d8a()['find'](_0xfdc300['tags'],{'name':_0xfdc300[_0x35fe9f('0x23b4')][_0x35fe9f('0x23b4')]}));for(let _0x3c3a3c=0x0;_0x3c3a3c<_0xfdc300[_0x35fe9f('0x22ac')][_0x35fe9f('0x543')];_0x3c3a3c++){_0x50e060&&_0xfdc300[_0x35fe9f('0x22ac')][_0x3c3a3c]['id']===_0x50e060['id']&&(_0xfdc300[_0x35fe9f('0x22ac')][_0x3c3a3c]['canSelect']=![],_0x14e8c8[_0x35fe9f('0x18bb')](_0xfdc300[_0x35fe9f('0x22ac')][_0x3c3a3c]));}_0xfdc300[_0x35fe9f('0x22ac')]=_0x14e8c8;}else{if(!_0x37ef13[_0x35fe9f('0x273e')])return _0x49d4fb[_0x35fe9f('0xda9')][_0x35fe9f('0x1d97')]({'sectionId':_0x37ef13['id']})[_0x35fe9f('0x1964')]['then'](function(_0x184677){const _0x3bb84a=_0x35fe9f,_0x210b55=_0x3c8d8a()['map'](_0x184677[_0x3bb84a('0x6aa')],function(_0x4dde25){const _0x498b39=_0x3bb84a;return _0x3c8d8a()[_0x498b39('0x18ab')](_0xfdc300['tags'],{'id':_0x4dde25['resourceId']});});let _0x159b5b=null;_0xfdc300['tag']&&(_0x159b5b=_0x3c8d8a()['find'](_0xfdc300[_0x3bb84a('0x22ac')],{'name':_0xfdc300['tag']['tag']}));if(_0x159b5b&&!_0x3c8d8a()[_0x3bb84a('0x1ec')](_0x210b55,['id',_0x159b5b['id']])){const _0x13b8c1=_0x3c8d8a()[_0x3bb84a('0x18ab')](_0xfdc300[_0x3bb84a('0x22ac')],{'id':_0x159b5b['id']});_0x13b8c1['canSelect']=![],_0x210b55['push'](_0x13b8c1);}_0xfdc300[_0x3bb84a('0x22ac')]=_0x210b55;});}})[_0x27f84a('0x103c')](function(_0x17bc29){const _0x32b0ac=_0x27f84a;_0x27f531[_0x32b0ac('0x15aa')]({'title':_0x17bc29[_0x32b0ac('0x276f')]?_0x32b0ac('0x137')+_0x17bc29[_0x32b0ac('0x276f')]+_0x32b0ac('0x160c')+_0x17bc29['statusText']:_0x32b0ac('0x1cc0'),'msg':_0x17bc29[_0x32b0ac('0x1e07')]?JSON[_0x32b0ac('0x100b')](_0x17bc29[_0x32b0ac('0x1e07')]):_0x17bc29[_0x32b0ac('0x1b75')]()});});function _0x40ebf5(){const _0x20d92f=_0x27f84a;_0xfdc300[_0x20d92f('0x1d4a')]=[];const _0x372a6f=[];_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x1810')]&&_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x1810')][_0x20d92f('0x1e68')]()==='outbound'&&_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x9d7')]===_0x20d92f('0x2150')&&(_0xfdc300['tag']['phone']=_0x15a112[_0x20d92f('0x1429')]?(_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x23f7')]||'')+_0x20d92f('0x1957')+_0x15a112[_0x20d92f('0x1429')]+'}':(_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x23f7')]||'')+_0x20d92f('0x1dc5'),_0x15a112[_0x20d92f('0x76c')]!=='none'?_0xfdc300[_0x20d92f('0x23b4')]['options'][_0x20d92f('0x2087')](_0x20d92f('0x2474'))<0x0&&(_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x2010')]+=_0x20d92f('0x2474')):_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x2010')]=_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x2010')][_0x20d92f('0x166c')](_0x20d92f('0x2474'),''));const _0x114303=_0x3c8d8a()[_0x20d92f('0x18ab')](_0xfdc300[_0x20d92f('0x22ac')],{'name':_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x23b4')]});_0x114303&&(_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0xe46')]=_0x114303['id']);if(_0xfdc300['tag'][_0x20d92f('0x9d7')]&&_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x9d7')]===_0x20d92f('0xbb4')){}else switch((_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x17e')]||_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x9d7')])[_0x20d92f('0x1e68')]()){case _0x20d92f('0x256d'):_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x1c00')]=_0xfdc300['tag']['name']+'='+_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0xa7b')];break;case _0x20d92f('0xbb4'):break;default:_0x372a6f[0x0]=_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x23b4')],_0xfdc300[_0x20d92f('0x23b4')][_0x20d92f('0x1c00')]=_0x372a6f['join'](',');}_0x25772b(_0xfdc300[_0x20d92f('0x23b4')]);}function _0x25772b(_0x3793d9){_0x45ab19['hide'](_0x3793d9);}}const _0x21d42e=_0x4b10af,_0x234961=_0x21a6a1['p']+_0x566993('0x5dc');_0x162632[_0x566993('0x17bb')]=[_0x566993('0x2166'),'$scope',_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),'Auth'];function _0x162632(_0x165ad2,_0x1f7a27,_0x23ad1a,_0x10f6ff,_0x30f372,_0x46209e,_0x37842d,_0x3fd633,_0x3b3365,_0x20599c,_0x574ccb){const _0x4d402f=_0x566993,_0x5b26ec=this;_0x5b26ec[_0x4d402f('0x155f')]=_0x574ccb['getCurrentUser'](),_0x5b26ec['chatWebsite']={},_0x5b26ec['chatWebsiteChatCannedAnswers']={'count':0x0,'rows':[]},_0x5b26ec[_0x4d402f('0x6d5')]=[],_0x5b26ec['crudPermissions'],_0x5b26ec[_0x4d402f('0xc49')]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x5b26ec['init']=_0x318709,_0x5b26ec['deleteConfirm']=_0x354935,_0x5b26ec[_0x4d402f('0xdfe')]=_0x110c7d,_0x5b26ec['getChatWebsiteChatCannedAnswers']=_0x110701,_0x5b26ec[_0x4d402f('0xa52')]=_0x55fc5d,_0x5b26ec[_0x4d402f('0x217c')]=_0x4560df,_0x5b26ec[_0x4d402f('0x1b0a')]=_0x88fe3b,_0x5b26ec[_0x4d402f('0xbb2')]=_0x4c0593;function _0x318709(_0x456a0,_0x5a8cc2){const _0x361e69=_0x4d402f;_0x5b26ec[_0x361e69('0x1740')]=_0x456a0,_0x5b26ec[_0x361e69('0x1dc1')]=typeof _0x5a8cc2!==_0x361e69('0x6e5')?_0x5a8cc2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5b26ec[_0x361e69('0xc49')]['ChatWebsiteId']=_0x5b26ec[_0x361e69('0x1740')]['id'],_0x5b26ec[_0x361e69('0xc49')]['id']=_0x5b26ec[_0x361e69('0x1740')]['id'],_0x110701();}function _0x354935(_0xeeb75b,_0x7a8ba){const _0xe2766d=_0x4d402f,_0x5e783f=_0x37842d[_0xe2766d('0x1d02')]()[_0xe2766d('0x20d6')](_0xe2766d('0x3df'))[_0xe2766d('0xf8b')](_0xe2766d('0x15b9')+(_0xeeb75b['name']||_0xeeb75b['id']&&_0x3c8d8a()[_0xe2766d('0x5ba')](_0xe2766d('0x38d'))+_0xeeb75b['id']||_0xe2766d('0x13db'))+_0xe2766d('0x24be')+_0xe2766d('0xd23'))[_0xe2766d('0x217')](_0xe2766d('0x1ce9'))[_0xe2766d('0x21de')](_0x7a8ba)['ok']('OK')[_0xe2766d('0x1e1f')](_0xe2766d('0x468'));_0x37842d[_0xe2766d('0x1cb7')](_0x5e783f)[_0xe2766d('0x173b')](function(){_0x88fe3b(_0xeeb75b);},function(){console['log']('CANCEL');});}function _0x110c7d(_0x5eb4ce){_0x5b26ec['chatWebsiteChatCannedAnswers']=_0x5eb4ce||{'count':0x0,'rows':[]};}function _0x110701(){const _0x315f90=_0x4d402f;_0x5b26ec['query'][_0x315f90('0x17f0')]=(_0x5b26ec['query'][_0x315f90('0x182e')]-0x1)*_0x5b26ec[_0x315f90('0xc49')][_0x315f90('0x3e')],_0x5b26ec[_0x315f90('0x2219')]=_0x20599c[_0x315f90('0x1740')][_0x315f90('0x57b')](_0x5b26ec[_0x315f90('0xc49')],_0x110c7d)[_0x315f90('0x1964')];}function _0x55fc5d(_0x25e88c,_0x4fff66){const _0x121899=_0x4d402f;_0x37842d[_0x121899('0x1cb7')]({'controller':_0x121899('0x8a9'),'controllerAs':'vm','templateUrl':_0x234961,'parent':angular['element'](_0x3fd633[_0x121899('0x1a5')]),'targetEvent':_0x25e88c,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x5b26ec[_0x121899('0x1740')],'chatCannedAnswer':_0x4fff66,'chatCannedAnswers':_0x5b26ec[_0x121899('0xb20')][_0x121899('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x5b26ec[_0x121899('0x1dc1')]}});}function _0x88fe3b(_0x98dd07){const _0x1e4db9=_0x4d402f;_0x20599c[_0x1e4db9('0x2849')][_0x1e4db9('0x15e8')]({'id':_0x98dd07['id']})[_0x1e4db9('0x1964')][_0x1e4db9('0x173b')](function(){const _0x581c24=_0x1e4db9;_0x3c8d8a()[_0x581c24('0x1a8b')](_0x5b26ec[_0x581c24('0xb20')]['rows'],{'id':_0x98dd07['id']}),_0x5b26ec[_0x581c24('0xb20')][_0x581c24('0x1a2f')]-=0x1,!_0x5b26ec[_0x581c24('0xb20')]['rows'][_0x581c24('0x543')]&&_0x110701(),_0x3b3365[_0x581c24('0xdfe')]({'title':_0x581c24('0x1ca7'),'msg':_0x98dd07[_0x581c24('0x10ad')]?_0x98dd07['name']+_0x581c24('0x25d2'):''});})[_0x1e4db9('0x103c')](function(_0x47a320){const _0x502318=_0x1e4db9;if(_0x47a320[_0x502318('0x1e07')]&&_0x47a320['data'][_0x502318('0x1d4a')]&&_0x47a320[_0x502318('0x1e07')][_0x502318('0x1d4a')]['length']){_0x5b26ec[_0x502318('0x1d4a')]=_0x47a320[_0x502318('0x1e07')][_0x502318('0x1d4a')]||[{'message':_0x47a320[_0x502318('0x1b75')](),'type':_0x502318('0x61e')}];for(let _0x5a85bc=0x0;_0x5a85bc<_0x47a320['data'][_0x502318('0x1d4a')][_0x502318('0x543')];_0x5a85bc++){_0x3b3365[_0x502318('0x15aa')]({'title':_0x47a320[_0x502318('0x1e07')][_0x502318('0x1d4a')][_0x5a85bc]['type'],'msg':_0x47a320[_0x502318('0x1e07')][_0x502318('0x1d4a')][_0x5a85bc]['message']});}}else _0x3b3365['error']({'title':_0x47a320['status']?_0x502318('0x137')+_0x47a320[_0x502318('0x276f')]+_0x502318('0x160c')+_0x47a320['statusText']:_0x502318('0x61e'),'msg':_0x47a320['data']?JSON[_0x502318('0x100b')](_0x47a320[_0x502318('0x1e07')]['message']):_0x47a320[_0x502318('0x67f')]||_0x47a320['toString']()});});}function _0x4560df(){const _0x3d2224=_0x4d402f,_0x1a3c68=angular[_0x3d2224('0x2e3')](_0x5b26ec['selectedChatWebsiteChatCannedAnswers']);return _0x5b26ec['selectedChatWebsiteChatCannedAnswers']=[],_0x1a3c68;}function _0x4c0593(_0x533e5d){const _0x22edd9=_0x4d402f,_0x5c216c=_0x37842d[_0x22edd9('0x1d02')]()[_0x22edd9('0x20d6')](_0x22edd9('0x223f'))[_0x22edd9('0xf8b')](_0x22edd9('0x15b9')+_0x5b26ec[_0x22edd9('0x6d5')]['length']+_0x22edd9('0xcb4')+_0x22edd9('0xd23'))[_0x22edd9('0x217')](_0x22edd9('0x1fc8'))[_0x22edd9('0x21de')](_0x533e5d)['ok']('OK')[_0x22edd9('0x1e1f')](_0x22edd9('0x468'));_0x37842d['show'](_0x5c216c)[_0x22edd9('0x173b')](function(){const _0x596b18=_0x22edd9;_0x5b26ec['selectedChatWebsiteChatCannedAnswers'][_0x596b18('0xa6a')](function(_0x1e6e03){_0x88fe3b(_0x1e6e03);}),_0x5b26ec['selectedChatWebsiteChatCannedAnswers']=[];});}let _0x3789a4=!![],_0x4ce378=0x1;_0x1f7a27[_0x4d402f('0x1bdb')](_0x4d402f('0x5b8'),function(_0x108fd6,_0x169f38){const _0x5efe4c=_0x4d402f;_0x3789a4?_0x46209e(function(){_0x3789a4=![];}):(!_0x169f38&&(_0x4ce378=_0x5b26ec[_0x5efe4c('0xc49')][_0x5efe4c('0x182e')]),_0x108fd6!==_0x169f38&&(_0x5b26ec[_0x5efe4c('0xc49')]['page']=0x1),!_0x108fd6&&(_0x5b26ec[_0x5efe4c('0xc49')][_0x5efe4c('0x182e')]=_0x4ce378),_0x110701());});}const _0x151ddd=_0x162632;_0x16fbd1[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),'chatCannedAnswers',_0x566993('0x13db'),_0x566993('0xbd4'),_0x566993('0x1600'),'license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x16fbd1(_0x222505,_0xea5a10,_0x470077,_0x47048a,_0x237ed5,_0xe7436e,_0x1640db,_0x1ac36d,_0x3d8bab,_0x27c29c,_0x44a99e,_0x4cb58d,_0x59be2d,_0x5d922a){const _0x1c8eee=_0x566993,_0x4bf3a7=this;_0x4bf3a7[_0x1c8eee('0x155f')]=_0x44a99e[_0x1c8eee('0x14d4')](),_0x4bf3a7[_0x1c8eee('0x1d4a')]=[],_0x4bf3a7['setting']=_0x59be2d,_0x4bf3a7[_0x1c8eee('0x1a29')]=_0x4cb58d,_0x4bf3a7['crudPermissions']=_0x5d922a,_0x4bf3a7[_0x1c8eee('0xb0')]={},_0x4bf3a7[_0x1c8eee('0x644')]=_0x4bf3a7[_0x1c8eee('0x251')]&&_0x4bf3a7['setting'][_0x1c8eee('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4bf3a7[_0x1c8eee('0x20d6')]=_0x1c8eee('0x145a'),_0x4bf3a7[_0x1c8eee('0x13db')]=angular[_0x1c8eee('0x2e3')](_0x3d8bab),_0x4bf3a7[_0x1c8eee('0xfc2')]=_0x1ac36d,_0x4bf3a7[_0x1c8eee('0x160b')]=![];!_0x4bf3a7[_0x1c8eee('0x13db')]&&(_0x4bf3a7[_0x1c8eee('0x13db')]={},_0x4bf3a7[_0x1c8eee('0x20d6')]='CHAT.NEW_CHATCANNEDANSWER',_0x4bf3a7[_0x1c8eee('0x160b')]=!![]);_0xea5a10['params']['id']&&(_0x4bf3a7[_0x1c8eee('0x13db')][_0x1c8eee('0x1796')]=_0xea5a10[_0x1c8eee('0x197a')]['id']);_0x4bf3a7[_0x1c8eee('0x188b')]=_0x2148f3,_0x4bf3a7[_0x1c8eee('0xfb3')]=_0x5fa817,_0x4bf3a7[_0x1c8eee('0x178e')]=_0x7b2b7d,_0x4bf3a7[_0x1c8eee('0x11ae')]=_0x2755dc,_0x4bf3a7[_0x1c8eee('0x18e2')]=_0x5188ac;function _0x2148f3(){const _0x162909=_0x1c8eee;_0x4bf3a7[_0x162909('0x1d4a')]=[],_0x27c29c[_0x162909('0x2849')]['save'](_0x4bf3a7[_0x162909('0x13db')])[_0x162909('0x1964')][_0x162909('0x173b')](function(_0x2e68f0){const _0xf0de7=_0x162909;_0x4bf3a7['chatCannedAnswers'][_0xf0de7('0x1377')](_0x2e68f0['toJSON']()),_0x1640db['success']({'title':'ChatCannedAnswer\x20properly\x20created','msg':_0x4bf3a7[_0xf0de7('0x13db')][_0xf0de7('0x10ad')]?_0x4bf3a7[_0xf0de7('0x13db')]['name']+_0xf0de7('0x209a'):''}),_0x5188ac(_0x2e68f0);})[_0x162909('0x103c')](function(_0x329b72){const _0x467ddf=_0x162909;if(_0x329b72[_0x467ddf('0x1e07')]&&_0x329b72[_0x467ddf('0x1e07')][_0x467ddf('0x1d4a')]&&_0x329b72[_0x467ddf('0x1e07')]['errors'][_0x467ddf('0x543')]){_0x4bf3a7['errors']=_0x329b72[_0x467ddf('0x1e07')][_0x467ddf('0x1d4a')]||[{'message':_0x329b72[_0x467ddf('0x1b75')](),'type':_0x467ddf('0x1da7')}];for(let _0x23e374=0x0;_0x23e374<_0x329b72['data'][_0x467ddf('0x1d4a')][_0x467ddf('0x543')];_0x23e374+=0x1){_0x1640db['error']({'title':_0x329b72[_0x467ddf('0x1e07')][_0x467ddf('0x1d4a')][_0x23e374]['type'],'msg':_0x329b72[_0x467ddf('0x1e07')][_0x467ddf('0x1d4a')][_0x23e374][_0x467ddf('0x67f')]});}}else _0x1640db[_0x467ddf('0x15aa')]({'title':_0x329b72[_0x467ddf('0x276f')]?_0x467ddf('0x137')+_0x329b72[_0x467ddf('0x276f')]+'\x20-\x20'+_0x329b72['statusText']:_0x467ddf('0x1da7'),'msg':_0x329b72[_0x467ddf('0x1e07')]?JSON['stringify'](_0x329b72[_0x467ddf('0x1e07')][_0x467ddf('0x67f')]):_0x329b72['toString']()});});}function _0x5fa817(){const _0x185cbc=_0x1c8eee;_0x4bf3a7[_0x185cbc('0x1d4a')]=[],_0x27c29c['cannedAnswer'][_0x185cbc('0x1842')]({'id':_0x4bf3a7['chatCannedAnswer']['id']},_0x4bf3a7[_0x185cbc('0x13db')])[_0x185cbc('0x1964')]['then'](function(_0x5db658){const _0x679b26=_0x185cbc,_0x3e53c3=_0x3c8d8a()[_0x679b26('0x18ab')](_0x4bf3a7[_0x679b26('0xfc2')],{'id':_0x5db658['id']});_0x3e53c3&&_0x3c8d8a()[_0x679b26('0x9ef')](_0x3e53c3,_0x3c8d8a()[_0x679b26('0x2114')](_0x5db658[_0x679b26('0xf1f')](),_0x3c8d8a()[_0x679b26('0x1d3e')](_0x3e53c3))),_0x1640db['success']({'title':_0x679b26('0x4cd'),'msg':_0x4bf3a7['chatCannedAnswer']['name']?_0x4bf3a7[_0x679b26('0x13db')][_0x679b26('0x10ad')]+_0x679b26('0x2788'):''}),_0x5188ac(_0x5db658);})[_0x185cbc('0x103c')](function(_0x204781){const _0x45f0b4=_0x185cbc;if(_0x204781[_0x45f0b4('0x1e07')]&&_0x204781[_0x45f0b4('0x1e07')][_0x45f0b4('0x1d4a')]&&_0x204781['data'][_0x45f0b4('0x1d4a')][_0x45f0b4('0x543')]){_0x4bf3a7[_0x45f0b4('0x1d4a')]=_0x204781[_0x45f0b4('0x1e07')][_0x45f0b4('0x1d4a')]||[{'message':_0x204781['toString'](),'type':_0x45f0b4('0x2786')}];for(let _0x377d24=0x0;_0x377d24<_0x204781[_0x45f0b4('0x1e07')][_0x45f0b4('0x1d4a')]['length'];_0x377d24++){_0x1640db[_0x45f0b4('0x15aa')]({'title':_0x204781[_0x45f0b4('0x1e07')][_0x45f0b4('0x1d4a')][_0x377d24][_0x45f0b4('0x1810')],'msg':_0x204781[_0x45f0b4('0x1e07')][_0x45f0b4('0x1d4a')][_0x377d24]['message']});}}else _0x1640db[_0x45f0b4('0x15aa')]({'title':_0x204781[_0x45f0b4('0x276f')]?'API:'+_0x204781[_0x45f0b4('0x276f')]+_0x45f0b4('0x160c')+_0x204781['statusText']:_0x45f0b4('0x2786'),'msg':_0x204781[_0x45f0b4('0x1e07')]?JSON[_0x45f0b4('0x100b')](_0x204781[_0x45f0b4('0x1e07')][_0x45f0b4('0x67f')]):_0x204781[_0x45f0b4('0x1b75')]()});});}function _0x7b2b7d(_0x441208){const _0x5678c4=_0x1c8eee;_0x4bf3a7[_0x5678c4('0x1d4a')]=[];const _0x207e0d=_0x47048a[_0x5678c4('0x1d02')]()['title'](_0x5678c4('0x8ef'))[_0x5678c4('0x732')]('The\x20chatCannedAnswer\x20will\x20be\x20deleted.')[_0x5678c4('0x217')](_0x5678c4('0x1d5f'))['ok'](_0x5678c4('0x2373'))[_0x5678c4('0x1e1f')](_0x5678c4('0x1d4e'))[_0x5678c4('0x21de')](_0x441208);_0x47048a[_0x5678c4('0x1cb7')](_0x207e0d)[_0x5678c4('0x173b')](function(){const _0x3fd097=_0x5678c4;_0x27c29c[_0x3fd097('0x2849')][_0x3fd097('0x15e8')]({'id':_0x4bf3a7[_0x3fd097('0x13db')]['id']})[_0x3fd097('0x1964')][_0x3fd097('0x173b')](function(){const _0x9d9a6d=_0x3fd097;_0x3c8d8a()[_0x9d9a6d('0x1a8b')](_0x4bf3a7[_0x9d9a6d('0xfc2')],{'id':_0x4bf3a7[_0x9d9a6d('0x13db')]['id']}),_0x1640db[_0x9d9a6d('0xdfe')]({'title':_0x9d9a6d('0x442'),'msg':(_0x4bf3a7[_0x9d9a6d('0x13db')][_0x9d9a6d('0x10ad')]||'chatCannedAnswer')+_0x9d9a6d('0x25d2')}),_0x5188ac(_0x4bf3a7[_0x9d9a6d('0x13db')]);})[_0x3fd097('0x103c')](function(_0x578a77){const _0x20da46=_0x3fd097;if(_0x578a77['data']&&_0x578a77[_0x20da46('0x1e07')][_0x20da46('0x1d4a')]&&_0x578a77[_0x20da46('0x1e07')]['errors'][_0x20da46('0x543')]){_0x4bf3a7[_0x20da46('0x1d4a')]=_0x578a77[_0x20da46('0x1e07')][_0x20da46('0x1d4a')]||[{'message':_0x578a77[_0x20da46('0x1b75')](),'type':_0x20da46('0x1684')}];for(let _0x53df9d=0x0;_0x53df9d<_0x578a77['data'][_0x20da46('0x1d4a')][_0x20da46('0x543')];_0x53df9d++){_0x1640db['error']({'title':_0x578a77[_0x20da46('0x1e07')][_0x20da46('0x1d4a')][_0x53df9d][_0x20da46('0x1810')],'msg':_0x578a77[_0x20da46('0x1e07')][_0x20da46('0x1d4a')][_0x53df9d][_0x20da46('0x67f')]});}}else _0x1640db['error']({'title':_0x578a77['status']?_0x20da46('0x137')+_0x578a77[_0x20da46('0x276f')]+'\x20-\x20'+_0x578a77[_0x20da46('0x2696')]:'api.cannedAnswer.delete','msg':_0x578a77[_0x20da46('0x1e07')]?JSON['stringify'](_0x578a77[_0x20da46('0x1e07')][_0x20da46('0x67f')]):_0x578a77[_0x20da46('0x67f')]||_0x578a77[_0x20da46('0x1b75')]()});});},function(){});}function _0x2755dc(_0xac33a1){return _0xac33a1===null?undefined:new Date(_0xac33a1);}function _0x5188ac(_0x3a7174){const _0x12dfca=_0x1c8eee;_0x47048a[_0x12dfca('0x1cf4')](_0x3a7174);}}const _0x4e878f=_0x16fbd1;_0x235c94[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600')];function _0x235c94(_0x1cd3c5,_0x5ebef4,_0x5b829a,_0x268657,_0x457546,_0x1851ec,_0x3e5943,_0x2329a7,_0x56ed43,_0x4c939e,_0x33650f){const _0x3c4452=_0x566993,_0x365f6d=this;_0x365f6d[_0x3c4452('0x155f')]=_0x33650f[_0x3c4452('0x14d4')](),_0x365f6d[_0x3c4452('0x9c6')]={'count':0x0,'rows':[]},_0x365f6d['selectedDispositions']=[],_0x365f6d[_0x3c4452('0x1dc1')],_0x365f6d[_0x3c4452('0x1d14')]={'first':_0x3c4452('0x1d1b'),'second':_0x3c4452('0x1136'),'third':_0x3c4452('0x1486')},_0x365f6d['query']={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x3c4452('0x1769'),'limit':0xa,'page':0x1},_0x365f6d[_0x3c4452('0xb9c')]=_0x4f9cea,_0x365f6d[_0x3c4452('0x2051')]=_0x1601fb,_0x365f6d[_0x3c4452('0xdfe')]=_0x486fc6,_0x365f6d[_0x3c4452('0x251d')]=_0x36c9f0,_0x365f6d[_0x3c4452('0xfb1')]=_0x4d77b1,_0x365f6d[_0x3c4452('0x1d5a')]=_0x56aec3,_0x365f6d['exportSelectedDispositions']=_0x3c974f,_0x365f6d['deleteSelectedDispositions']=_0x435134,_0x365f6d[_0x3c4452('0x2307')]=_0x150a36,_0x365f6d[_0x3c4452('0x17fe')]=_0x582d36;function _0x4f9cea(_0x256140,_0x1b2c10){const _0x2481a2=_0x3c4452;_0x365f6d[_0x2481a2('0x1740')]=_0x256140||{},_0x365f6d[_0x2481a2('0x1dc1')]=typeof _0x1b2c10!=='undefined'?_0x1b2c10:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x365f6d[_0x2481a2('0xc49')][_0x2481a2('0x1796')]=_0x365f6d[_0x2481a2('0x1740')]['id'],_0x365f6d[_0x2481a2('0xc49')]['id']=_0x365f6d[_0x2481a2('0x1740')]['id'],_0x36c9f0();}function _0x4d77b1(_0x3080b2,_0x19fc24){const _0x1083ce=_0x3c4452;_0x457546[_0x1083ce('0x1cb7')]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x1db9b3,'parent':angular[_0x1083ce('0xb6d')](_0x1851ec[_0x1083ce('0x1a5')]),'targetEvent':_0x3080b2,'clickOutsideToClose':!![],'locals':{'disposition':_0x19fc24,'dispositions':_0x365f6d[_0x1083ce('0x9c6')][_0x1083ce('0x6aa')],'model':{'id':_0x365f6d[_0x1083ce('0x1740')]['id'],'field':'ChatWebsiteId'},'license':null,'setting':null,'crudPermissions':_0x365f6d[_0x1083ce('0x1dc1')]}})[_0x1083ce('0x173b')](function(_0x2fe87e){if(_0x2fe87e)_0x36c9f0();});}function _0x1601fb(_0x32154f,_0x47c956){const _0x115858=_0x3c4452,_0x559a0b=_0x3c8d8a()[_0x115858('0x1ec')](_0x365f6d['dispositions'][_0x115858('0x6aa')],['ParentId',_0x32154f['id']]),_0x3ca85b=_0x457546[_0x115858('0x1d02')]()[_0x115858('0x20d6')](_0x2329a7[_0x115858('0x1467')](_0x115858('0xf13')))[_0x115858('0x732')](_0x2329a7[_0x115858('0x1467')](_0x115858('0x15d6')+(_0x559a0b?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x115858('0xee2')),{'name':_0x32154f[_0x115858('0x10ad')]}))[_0x115858('0x217')](_0x115858('0x843'))[_0x115858('0x21de')](_0x47c956)['ok']('OK')['cancel'](_0x2329a7['instant'](_0x115858('0x2224')));_0x457546[_0x115858('0x1cb7')](_0x3ca85b)[_0x115858('0x173b')](function(){_0x56aec3(_0x32154f);});}function _0x486fc6(_0x14704a){_0x365f6d['dispositions']=_0x14704a||{'count':0x0,'rows':[]};}function _0x36c9f0(){const _0x14265a=_0x3c4452;_0x365f6d[_0x14265a('0xc49')][_0x14265a('0x17f0')]=(_0x365f6d[_0x14265a('0xc49')][_0x14265a('0x182e')]-0x1)*_0x365f6d[_0x14265a('0xc49')][_0x14265a('0x3e')],_0x365f6d['promise']=_0x56ed43[_0x14265a('0x1740')][_0x14265a('0x251d')](_0x365f6d[_0x14265a('0xc49')],_0x486fc6)['$promise'];}function _0x56aec3(_0x116b78){const _0x94164b=_0x3c4452;_0x56ed43[_0x94164b('0x2766')][_0x94164b('0x15e8')]({'id':_0x116b78['id']})[_0x94164b('0x1964')][_0x94164b('0x173b')](function(){const _0x1ca5d8=_0x94164b;_0x36c9f0(),_0x4c939e['success']({'title':_0x2329a7['instant'](_0x1ca5d8('0x34b'))});})['catch'](function(_0x1cb525){const _0x4370aa=_0x94164b;if(_0x1cb525[_0x4370aa('0x1e07')]&&_0x1cb525[_0x4370aa('0x1e07')][_0x4370aa('0x1d4a')]&&_0x1cb525['data'][_0x4370aa('0x1d4a')][_0x4370aa('0x543')]){_0x365f6d[_0x4370aa('0x1d4a')]=_0x1cb525[_0x4370aa('0x1e07')][_0x4370aa('0x1d4a')]||[{'message':_0x1cb525[_0x4370aa('0x1b75')](),'type':_0x4370aa('0x6af')}];for(let _0x3736b8=0x0;_0x3736b8<_0x1cb525[_0x4370aa('0x1e07')][_0x4370aa('0x1d4a')][_0x4370aa('0x543')];_0x3736b8++){_0x4c939e[_0x4370aa('0x15aa')]({'title':_0x1cb525['data'][_0x4370aa('0x1d4a')][_0x3736b8][_0x4370aa('0x1810')],'msg':_0x1cb525[_0x4370aa('0x1e07')][_0x4370aa('0x1d4a')][_0x3736b8][_0x4370aa('0x67f')]});}}else _0x4c939e[_0x4370aa('0x15aa')]({'title':_0x1cb525[_0x4370aa('0x276f')]?_0x4370aa('0x137')+_0x1cb525['status']+'\x20-\x20'+_0x1cb525[_0x4370aa('0x2696')]:'SYSTEM:DELETEdisposition','msg':_0x1cb525[_0x4370aa('0x1e07')]?JSON['stringify'](_0x1cb525[_0x4370aa('0x1e07')][_0x4370aa('0x67f')]):_0x1cb525[_0x4370aa('0x67f')]||_0x1cb525[_0x4370aa('0x1b75')]()});});}function _0x3c974f(){const _0xc8a26=_0x3c4452,_0x55c25e=angular[_0xc8a26('0x2e3')](_0x365f6d[_0xc8a26('0x451')]);return _0x365f6d[_0xc8a26('0x451')]=[],_0x55c25e;}function _0x435134(_0x30f417){const _0x16ba31=_0x3c4452,_0x4a120e=_0x457546['confirm']()[_0x16ba31('0x20d6')](_0x2329a7[_0x16ba31('0x1467')](_0x16ba31('0xa25')))[_0x16ba31('0x732')](_0x2329a7[_0x16ba31('0x1467')](_0x16ba31('0x25a'),{'total':_0x365f6d[_0x16ba31('0x451')]['length']}))['ariaLabel'](_0x16ba31('0x6b8'))[_0x16ba31('0x21de')](_0x30f417)['ok']('OK')[_0x16ba31('0x1e1f')](_0x2329a7[_0x16ba31('0x1467')](_0x16ba31('0x2224')));_0x457546['show'](_0x4a120e)['then'](function(){const _0x780d0f=_0x16ba31;_0x365f6d[_0x780d0f('0x451')]['forEach'](function(_0x25553a){_0x56aec3(_0x25553a);}),_0x365f6d[_0x780d0f('0x451')]=[];});}function _0x150a36(){const _0x4d4daf=_0x3c4452;_0x365f6d[_0x4d4daf('0x451')]=[];}function _0x582d36(){const _0x3354de=_0x3c4452;_0x365f6d[_0x3354de('0x451')]=_0x365f6d[_0x3354de('0x9c6')][_0x3354de('0x6aa')];}let _0x51acfe=!![],_0x56be0b=0x1;_0x1cd3c5[_0x3c4452('0x1bdb')](_0x3c4452('0x5b8'),function(_0x24f969,_0x17be6c){const _0x190055=_0x3c4452;_0x51acfe?_0x3e5943(function(){_0x51acfe=![];}):(!_0x17be6c&&(_0x56be0b=_0x365f6d['query'][_0x190055('0x182e')]),_0x24f969!==_0x17be6c&&(_0x365f6d['query']['page']=0x1),!_0x24f969&&(_0x365f6d[_0x190055('0xc49')][_0x190055('0x182e')]=_0x56be0b),_0x36c9f0());});}const _0x16d321=_0x235c94;_0x335691[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0xbd4')];function _0x335691(_0x2de39d,_0x3b5f5d,_0x3bcd1b){const _0x1faa88=_0x566993,_0x4a6f98=this;_0x4a6f98[_0x1faa88('0x1740')]={},_0x4a6f98[_0x1faa88('0xbcf')]={},_0x4a6f98[_0x1faa88('0x2be')]=[{'type':_0x1faa88('0x22d8'),'name':'Label','icon':_0x1faa88('0x126f')},{'type':_0x1faa88('0x4f6'),'name':_0x1faa88('0x1fe1'),'icon':_0x1faa88('0xf3e')},{'type':'input','name':_0x1faa88('0x1278'),'icon':_0x1faa88('0xc')},{'type':_0x1faa88('0x5de'),'name':_0x1faa88('0xac5'),'icon':_0x1faa88('0x284b')},{'type':_0x1faa88('0x19a6'),'name':'Radio\x20Buttons','icon':_0x1faa88('0x12b5')},{'type':_0x1faa88('0x1805'),'name':_0x1faa88('0x1f91'),'icon':_0x1faa88('0x3ef')},{'type':_0x1faa88('0xcbd'),'name':_0x1faa88('0x1804'),'icon':'icon-checkbox-marked-outline'}],_0x4a6f98[_0x1faa88('0xb9c')]=_0x522ed8,_0x4a6f98['up']=_0x411223,_0x4a6f98[_0x1faa88('0x1f5b')]=_0x331ff2,_0x4a6f98[_0x1faa88('0x623')]=_0xdb0705,_0x4a6f98[_0x1faa88('0x1a8b')]=_0x44c7a0;function _0x522ed8(_0x58b04c){const _0x47ecda=_0x1faa88;_0x4a6f98[_0x47ecda('0x2340')]=[],_0x4a6f98[_0x47ecda('0x179b')]=[],_0x4a6f98[_0x47ecda('0x156')]=['id',_0x47ecda('0xda8'),_0x47ecda('0xad'),_0x47ecda('0xef2'),_0x47ecda('0x1d7e'),'$promise',_0x47ecda('0x14ad')],_0x4a6f98['chatWebsite']=_0x58b04c,_0x3c8d8a()[_0x47ecda('0x1a56')](_0x4a6f98[_0x47ecda('0x1740')]['offlineForm'])&&(_0x4a6f98[_0x47ecda('0x1740')][_0x47ecda('0xbcf')]={'items':[],'fromKey':null}),_0x3bcd1b[_0x47ecda('0xbb3')][_0x47ecda('0x26f3')]({'id':_0x4a6f98[_0x47ecda('0x1740')][_0x47ecda('0xef2')]})[_0x47ecda('0x1964')][_0x47ecda('0x173b')](function(_0x4e3059){const _0x214b65=_0x47ecda;for(let _0x98a5b5=0x0;_0x98a5b5<_0x4e3059['rows'][_0x214b65('0x543')];_0x98a5b5++){_0x4a6f98[_0x214b65('0x179b')][_0x214b65('0x18bb')]({'key':_0x214b65('0x205b')+_0x4e3059[_0x214b65('0x6aa')][_0x98a5b5]['id'],'value':_0x4e3059[_0x214b65('0x6aa')][_0x98a5b5][_0x214b65('0xf1e')]});}return _0x3bcd1b[_0x214b65('0x1197')][_0x214b65('0x2320')]()[_0x214b65('0x1964')];})[_0x47ecda('0x173b')](function(_0x30fced){const _0x22aa13=_0x47ecda,_0x3d66b9=_0x3c8d8a()[_0x22aa13('0x1d3e')](_0x30fced);for(let _0x4c4dd1=0x0;_0x4c4dd1<_0x3d66b9['length'];_0x4c4dd1++){!_0x3c8d8a()['includes'](_0x4a6f98['uselessFields'],_0x3d66b9[_0x4c4dd1])&&!_0x3c8d8a()[_0x22aa13('0x17b2')](_0x3d66b9[_0x4c4dd1],_0x22aa13('0x205b'))&&_0x4a6f98[_0x22aa13('0x2340')][_0x22aa13('0x1377')]({'key':_0x3d66b9[_0x4c4dd1],'value':_0x3d66b9[_0x4c4dd1]});}return _0x3bcd1b[_0x22aa13('0x1b56')]['get']()['$promise'];})[_0x47ecda('0x173b')](function(_0x5e6a21){const _0x27331e=_0x47ecda;_0x4a6f98[_0x27331e('0x2715')]=_0x5e6a21[_0x27331e('0x6aa')];})['catch'](function(_0x3b451b){const _0x3a97f2=_0x47ecda;console[_0x3a97f2('0x15aa')](_0x3b451b);});}function _0x411223(_0x362d05,_0x31cc12){const _0x3fa784=_0x1faa88;if(_0x31cc12!==0x0){const _0xedc7a6=_0x4a6f98[_0x3fa784('0x1740')]['offlineForm'][_0x3fa784('0x1b1f')][_0x31cc12-0x1];_0x4a6f98[_0x3fa784('0x1740')][_0x3fa784('0xbcf')]['items'][_0x31cc12]=_0xedc7a6,_0x4a6f98[_0x3fa784('0x1740')][_0x3fa784('0xbcf')][_0x3fa784('0x1b1f')][_0x31cc12-0x1]=angular[_0x3fa784('0x2e3')](_0x362d05);if(_0x4a6f98[_0x3fa784('0x1740')]['offlineForm'][_0x3fa784('0x119f')]===_0x31cc12)_0x4a6f98[_0x3fa784('0x1740')]['offlineForm'][_0x3fa784('0x119f')]--;else _0x4a6f98[_0x3fa784('0x1740')][_0x3fa784('0xbcf')]['fromKey']===_0x31cc12-0x1&&_0x4a6f98[_0x3fa784('0x1740')][_0x3fa784('0xbcf')][_0x3fa784('0x119f')]++;}}function _0x331ff2(_0xc050e4,_0x835824){const _0x152489=_0x1faa88;if(_0x835824!==_0x4a6f98[_0x152489('0x1740')]['offlineForm'][_0x152489('0x1b1f')]['length']-0x1){const _0x2cab48=_0x4a6f98[_0x152489('0x1740')][_0x152489('0xbcf')][_0x152489('0x1b1f')][_0x835824+0x1];_0x4a6f98[_0x152489('0x1740')][_0x152489('0xbcf')][_0x152489('0x1b1f')][_0x835824]=_0x2cab48,_0x4a6f98[_0x152489('0x1740')][_0x152489('0xbcf')][_0x152489('0x1b1f')][_0x835824+0x1]=angular['copy'](_0xc050e4);if(_0x4a6f98['chatWebsite']['offlineForm']['fromKey']===_0x835824)_0x4a6f98['chatWebsite'][_0x152489('0xbcf')]['fromKey']++;else _0x4a6f98['chatWebsite'][_0x152489('0xbcf')]['fromKey']===_0x835824+0x1&&_0x4a6f98[_0x152489('0x1740')][_0x152489('0xbcf')]['fromKey']--;}}function _0xdb0705(_0x606185){const _0x342111=_0x1faa88;_0x4a6f98[_0x342111('0x1740')]['offlineForm'][_0x342111('0x1b1f')][_0x342111('0x18bb')]({'type':_0x606185,'cmField':null,'variable':null});}function _0x44c7a0(_0x2fd74f){const _0x31c343=_0x1faa88,_0x508910=_0x2de39d[_0x31c343('0x1d02')]()[_0x31c343('0x20d6')]('The\x20component\x20will\x20be\x20deleted.')[_0x31c343('0x1f71')](_0x31c343('0x8ef'))[_0x31c343('0x217')]('Lucky\x20day')['ok']('Ok')[_0x31c343('0x1e1f')]('Cancel');_0x2de39d[_0x31c343('0x1cb7')](_0x508910)['then'](function(){const _0x3532de=_0x31c343;_0x4a6f98[_0x3532de('0x1740')][_0x3532de('0xbcf')][_0x3532de('0x1b1f')]['splice'](_0x2fd74f,0x1);});}}const _0xc66a4b=_0x335691;_0x562f92[_0x566993('0x17bb')]=['$mdDialog','$document',_0x566993('0xbd4')];function _0x562f92(_0x58bb9f,_0x769418,_0x1ddce1){const _0xcf1529=_0x566993,_0x9d2fbe=this;_0x9d2fbe[_0xcf1529('0x1740')]={},_0x9d2fbe[_0xcf1529('0x20e3')]={},_0x9d2fbe[_0xcf1529('0x2be')]=[{'type':_0xcf1529('0x22d8'),'name':_0xcf1529('0x80d'),'icon':_0xcf1529('0x126f')},{'type':'chooseFromList','name':_0xcf1529('0x1fe1'),'icon':_0xcf1529('0xf3e')},{'type':_0xcf1529('0x155c'),'name':_0xcf1529('0x1278'),'icon':_0xcf1529('0xc')},{'type':_0xcf1529('0x5de'),'name':_0xcf1529('0xac5'),'icon':_0xcf1529('0x284b')},{'type':'multipleChoices','name':_0xcf1529('0xb26'),'icon':_0xcf1529('0x12b5')},{'type':_0xcf1529('0x1805'),'name':_0xcf1529('0x1f91'),'icon':_0xcf1529('0x3ef')},{'type':_0xcf1529('0xcbd'),'name':_0xcf1529('0x1804'),'icon':_0xcf1529('0x25d3')}],_0x9d2fbe[_0xcf1529('0xb9c')]=_0x5473d3,_0x9d2fbe['up']=_0x182276,_0x9d2fbe['down']=_0x3dc44c,_0x9d2fbe[_0xcf1529('0x623')]=_0x128441,_0x9d2fbe[_0xcf1529('0x1a8b')]=_0x304f7d;function _0x5473d3(_0x692912){const _0x377d7e=_0xcf1529;_0x9d2fbe[_0x377d7e('0x2340')]=[],_0x9d2fbe[_0x377d7e('0x179b')]=[],_0x9d2fbe[_0x377d7e('0x156')]=['id',_0x377d7e('0xda8'),'updatedAt','ListId',_0x377d7e('0x1d7e'),_0x377d7e('0x1964'),_0x377d7e('0x14ad')],_0x9d2fbe[_0x377d7e('0x1740')]=_0x692912,_0x3c8d8a()[_0x377d7e('0x1a56')](_0x9d2fbe[_0x377d7e('0x1740')]['onlineForm'])&&(_0x9d2fbe[_0x377d7e('0x1740')][_0x377d7e('0x20e3')]={'items':[],'fromKey':null}),_0x1ddce1[_0x377d7e('0xbb3')][_0x377d7e('0x26f3')]({'id':_0x9d2fbe[_0x377d7e('0x1740')]['ListId']})[_0x377d7e('0x1964')][_0x377d7e('0x173b')](function(_0x241882){const _0x4f2d43=_0x377d7e;for(let _0x13a82c=0x0;_0x13a82c<_0x241882[_0x4f2d43('0x6aa')][_0x4f2d43('0x543')];_0x13a82c++){_0x9d2fbe['customFields'][_0x4f2d43('0x18bb')]({'key':_0x4f2d43('0x205b')+_0x241882[_0x4f2d43('0x6aa')][_0x13a82c]['id'],'value':_0x241882[_0x4f2d43('0x6aa')][_0x13a82c][_0x4f2d43('0xf1e')]});}return _0x1ddce1['cmContact'][_0x4f2d43('0x2320')]()[_0x4f2d43('0x1964')];})[_0x377d7e('0x173b')](function(_0x1f10d6){const _0x364c0c=_0x377d7e,_0x22db0e=_0x3c8d8a()[_0x364c0c('0x1d3e')](_0x1f10d6);for(let _0x114efe=0x0;_0x114efe<_0x22db0e['length'];_0x114efe++){!_0x3c8d8a()['includes'](_0x9d2fbe[_0x364c0c('0x156')],_0x22db0e[_0x114efe])&&!_0x3c8d8a()[_0x364c0c('0x17b2')](_0x22db0e[_0x114efe],_0x364c0c('0x205b'))&&_0x9d2fbe[_0x364c0c('0x2340')][_0x364c0c('0x1377')]({'key':_0x22db0e[_0x114efe],'value':_0x22db0e[_0x114efe]});}return _0x1ddce1[_0x364c0c('0x1b56')][_0x364c0c('0x1d97')]()[_0x364c0c('0x1964')];})[_0x377d7e('0x173b')](function(_0x50f271){const _0xcf2cf5=_0x377d7e;_0x9d2fbe['variables']=_0x50f271[_0xcf2cf5('0x6aa')];})[_0x377d7e('0x103c')](function(_0x25a4a5){console['error'](_0x25a4a5);});}function _0x182276(_0x271350,_0x400124){const _0x4975a5=_0xcf1529;if(_0x400124!==0x0){const _0x446d21=_0x9d2fbe[_0x4975a5('0x1740')][_0x4975a5('0x20e3')][_0x4975a5('0x1b1f')][_0x400124-0x1];_0x9d2fbe[_0x4975a5('0x1740')]['onlineForm'][_0x4975a5('0x1b1f')][_0x400124]=_0x446d21,_0x9d2fbe['chatWebsite'][_0x4975a5('0x20e3')]['items'][_0x400124-0x1]=angular[_0x4975a5('0x2e3')](_0x271350);if(_0x9d2fbe[_0x4975a5('0x1740')]['onlineForm'][_0x4975a5('0x119f')]===_0x400124)_0x9d2fbe[_0x4975a5('0x1740')][_0x4975a5('0x20e3')][_0x4975a5('0x119f')]--;else _0x9d2fbe[_0x4975a5('0x1740')]['onlineForm']['fromKey']===_0x400124-0x1&&_0x9d2fbe[_0x4975a5('0x1740')][_0x4975a5('0x20e3')][_0x4975a5('0x119f')]++;}}function _0x3dc44c(_0x577953,_0x42d35d){const _0x15c284=_0xcf1529;if(_0x42d35d!==_0x9d2fbe[_0x15c284('0x1740')][_0x15c284('0x20e3')][_0x15c284('0x1b1f')][_0x15c284('0x543')]-0x1){const _0x5c47ce=_0x9d2fbe[_0x15c284('0x1740')]['onlineForm']['items'][_0x42d35d+0x1];_0x9d2fbe[_0x15c284('0x1740')]['onlineForm']['items'][_0x42d35d]=_0x5c47ce,_0x9d2fbe[_0x15c284('0x1740')]['onlineForm'][_0x15c284('0x1b1f')][_0x42d35d+0x1]=angular[_0x15c284('0x2e3')](_0x577953);if(_0x9d2fbe[_0x15c284('0x1740')][_0x15c284('0x20e3')][_0x15c284('0x119f')]===_0x42d35d)_0x9d2fbe[_0x15c284('0x1740')][_0x15c284('0x20e3')]['fromKey']++;else _0x9d2fbe[_0x15c284('0x1740')][_0x15c284('0x20e3')]['fromKey']===_0x42d35d+0x1&&_0x9d2fbe[_0x15c284('0x1740')]['onlineForm'][_0x15c284('0x119f')]--;}}function _0x128441(_0xcbd5cb){const _0x1d45bd=_0xcf1529;_0x9d2fbe[_0x1d45bd('0x1740')]['onlineForm'][_0x1d45bd('0x1b1f')][_0x1d45bd('0x18bb')]({'type':_0xcbd5cb,'cmField':null,'variable':null});}function _0x304f7d(_0x354396){const _0x2ab09a=_0xcf1529,_0x3a656a=_0x58bb9f[_0x2ab09a('0x1d02')]()[_0x2ab09a('0x20d6')]('The\x20component\x20will\x20be\x20deleted.')[_0x2ab09a('0x1f71')](_0x2ab09a('0x8ef'))[_0x2ab09a('0x217')](_0x2ab09a('0x2443'))['ok']('Ok')['cancel'](_0x2ab09a('0x1d4e'));_0x58bb9f[_0x2ab09a('0x1cb7')](_0x3a656a)[_0x2ab09a('0x173b')](function(){const _0x142457=_0x2ab09a;_0x9d2fbe[_0x142457('0x1740')]['onlineForm'][_0x142457('0x119f')]===_0x354396&&(_0x9d2fbe['chatWebsite'][_0x142457('0x20e3')][_0x142457('0x119f')]=null),_0x9d2fbe[_0x142457('0x1740')][_0x142457('0x20e3')][_0x142457('0x1b1f')][_0x142457('0x553')](_0x354396,0x1),!_0x9d2fbe['chatWebsite'][_0x142457('0x20e3')][_0x142457('0x1b1f')][_0x142457('0x543')]&&(_0x9d2fbe[_0x142457('0x1740')][_0x142457('0x20e3')][_0x142457('0x119f')]=null);});}}const _0x31d6e8=_0x562f92;_0x4c2799[_0x566993('0x17bb')]=[_0x566993('0x2166'),'toasty'];function _0x4c2799(_0x56b31c,_0x124845){const _0x5e2172=_0x566993,_0x46866b=this,_0x44fa0c=0x8,_0x175f1c=_0x44fa0c*0x400*0x400;_0x46866b[_0x5e2172('0x1740')]={},_0x46866b[_0x5e2172('0x1dc1')],_0x46866b[_0x5e2172('0x8f9')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x175f1c,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x46866b[_0x5e2172('0x428')]={'flow':{}},_0x46866b['dropping']=![],_0x46866b[_0x5e2172('0x23a9')]=_0x538127,_0x46866b['upload']=_0x39dd69,_0x46866b[_0x5e2172('0x12b9')]=_0x2f0a15,_0x46866b['init']=_0xb29c8d;function _0xb29c8d(_0x2833aa,_0x43c398){const _0x260300=_0x5e2172;_0x46866b[_0x260300('0x1740')]=angular[_0x260300('0x2e3')](_0x2833aa),_0x46866b['crudPermissions']=typeof _0x43c398!=='undefined'?_0x43c398:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x46866b['ngFlowOptions'][_0x260300('0x235')]='/api/chat/websites/:id/customer_avatar'[_0x260300('0x166c')](_0x260300('0x17d5'),_0x46866b['chatWebsite']['id']),_0x46866b['chatWebsite'][_0x260300('0x1f73')]=[];}function _0x538127(_0x135bba){const _0x9af1a5=_0x5e2172,_0x187042=[_0x9af1a5('0x13f0'),_0x9af1a5('0xa5a')];if(!_0x3c8d8a()[_0x9af1a5('0x2814')](_0x187042,_0x135bba[_0x9af1a5('0x131a')]()))return _0x124845[_0x9af1a5('0x15aa')]({'title':'Invalid\x20extension:\x20'+_0x135bba[_0x9af1a5('0x131a')](),'msg':'Supported\x20extension:\x20'+_0x187042[_0x9af1a5('0x2259')]()}),![];if(_0x135bba[_0x9af1a5('0x2361')]>_0x175f1c)return _0x124845[_0x9af1a5('0x15aa')]({'title':_0x9af1a5('0xd1e'),'msg':_0x9af1a5('0xdfc')+_0x44fa0c+'MB'}),![];const _0x1eacc3={'id':_0x135bba[_0x9af1a5('0x1b98')],'file':_0x135bba,'type':_0x9af1a5('0x2175')};return _0x46866b[_0x9af1a5('0x1740')][_0x9af1a5('0x1f73')][_0x9af1a5('0x1377')](_0x1eacc3),!![];}function _0x39dd69(){const _0x160a6f=_0x5e2172;_0x46866b[_0x160a6f('0x428')][_0x160a6f('0x1789')][_0x160a6f('0x2431')][_0x160a6f('0x1670')]={'X-Requested-With':_0x160a6f('0x12c9'),'Authorization':_0x160a6f('0x221')+_0x56b31c[_0x160a6f('0x1d97')](_0x160a6f('0x7c6'))},_0x46866b[_0x160a6f('0x428')][_0x160a6f('0x1789')][_0x160a6f('0xb1e')]();}function _0x2f0a15(_0x48844a){const _0x528680=_0x5e2172;angular[_0x528680('0xa6a')](_0x46866b[_0x528680('0x1740')]['images'],function(_0x2462f8){const _0x28f0ff=_0x528680;if(_0x2462f8['id']===_0x48844a['uniqueIdentifier']){const _0xcc9fea=new FileReader();_0xcc9fea['readAsDataURL'](_0x2462f8['file'][_0x28f0ff('0x2522')]),_0xcc9fea[_0x28f0ff('0x147d')]=function(_0x2301af){const _0x4f059b=_0x28f0ff;_0x2462f8[_0x4f059b('0xd1')]=_0x2301af[_0x4f059b('0x235')][_0x4f059b('0xd09')];},_0x2462f8[_0x28f0ff('0x1810')]=_0x28f0ff('0x204b');}});}}const _0x42e78a=_0x4c2799,_0x4717ab=_0x21a6a1['p']+_0x566993('0x22e1');_0x22a183['$inject']=[_0x566993('0x2166'),'$scope',_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$document',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x22a183(_0x300c8e,_0x4436dd,_0x1f82dc,_0x20a79d,_0x242ec5,_0x315914,_0x584de7,_0x2e4bcc,_0x2419b8,_0x120fbb,_0x437cdb){const _0x40bb81=_0x566993,_0x103a26=this;_0x103a26[_0x40bb81('0x155f')]=_0x437cdb[_0x40bb81('0x14d4')](),_0x103a26[_0x40bb81('0x1740')]={},_0x103a26['chatWebsiteInteractions']={'count':0x0,'rows':[]},_0x103a26[_0x40bb81('0x26df')]=[],_0x103a26[_0x40bb81('0x1dc1')],_0x103a26[_0x40bb81('0xc49')]={'read':_0x40bb81('0x877'),'closed':_0x40bb81('0x877'),'sort':_0x40bb81('0x1cad'),'includeAll':_0x40bb81('0x799'),'limit':0xa,'page':0x1},_0x103a26[_0x40bb81('0xb9c')]=_0x50130f,_0x103a26['deleteConfirm']=_0x832e0f,_0x103a26[_0x40bb81('0x16b9')]=_0x4304e0,_0x103a26[_0x40bb81('0xdfe')]=_0x9059b9,_0x103a26[_0x40bb81('0x2309')]=_0x5a38e2,_0x103a26[_0x40bb81('0x159c')]=_0x5ae9e4,_0x103a26['openAdvancedSearch']=_0x3db973,_0x103a26[_0x40bb81('0x661')]=_0xcd3307,_0x103a26[_0x40bb81('0x2732')]=_0x2030f3,_0x103a26['deleteSelectedChatWebsiteInteractions']=_0x196450;function _0x50130f(_0x316037,_0x3aaf49){const _0x5d5690=_0x40bb81;_0x103a26[_0x5d5690('0x1740')]=_0x316037,_0x103a26[_0x5d5690('0x1dc1')]=typeof _0x3aaf49!==_0x5d5690('0x6e5')?_0x3aaf49:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x103a26['query'][_0x5d5690('0x1796')]=_0x103a26[_0x5d5690('0x1740')]['id'],_0x103a26[_0x5d5690('0x2706')]={'fields':_0x4b0f37()},_0x37da67();}function _0x37da67(){const _0x434e8f=_0x40bb81;return _0x120fbb[_0x434e8f('0x23b4')][_0x434e8f('0x1d97')]()[_0x434e8f('0x1964')][_0x434e8f('0x173b')](function(_0x5922e3){const _0x4012bd=_0x434e8f;_0x103a26[_0x4012bd('0x22ac')]=_0x5922e3||{'count':0x0,'rows':[]};})[_0x434e8f('0x173b')](function(){const _0x555e5d=_0x434e8f;_0x103a26[_0x555e5d('0x485')]=_0x40027b();});}function _0x40027b(){const _0x1fa2c1=_0x40bb81;return[{'name':_0x1fa2c1('0x1406'),'key':_0x1fa2c1('0xda8'),'type':_0x1fa2c1('0x22b6'),'label':_0x1fa2c1('0xa98')},{'name':_0x1fa2c1('0x2634'),'key':_0x1fa2c1('0x69b'),'type':_0x1fa2c1('0xc65'),'label':_0x1fa2c1('0x1881'),'customOptions':[{'value':0x0,'translate':_0x1fa2c1('0x1015')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x1fa2c1('0x47a')}]},{'name':'Status','key':_0x1fa2c1('0x1636'),'type':_0x1fa2c1('0xc65'),'label':_0x1fa2c1('0x1647'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x1fa2c1('0x1389')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x1fa2c1('0x1547'),'key':_0x1fa2c1('0x181c'),'type':_0x1fa2c1('0xc65'),'label':_0x1fa2c1('0x956'),'customOptions':[{'value':_0x1fa2c1('0x877'),'translate':_0x1fa2c1('0x27a8')},{'value':undefined,'translate':_0x1fa2c1('0x47a')}]},{'name':_0x1fa2c1('0x460'),'key':'tag','type':_0x1fa2c1('0x1c68'),'label':_0x1fa2c1('0x1e6f'),'options':_0x103a26[_0x1fa2c1('0x22ac')]['rows'],'placeholder':_0x1fa2c1('0x96')}];}function _0x4b0f37(){const _0x5ac13e=_0x40bb81;return[{'name':'Id','column':'id','type':_0x5ac13e('0x1d81')},{'name':_0x5ac13e('0x1f70'),'column':'Contact','type':_0x5ac13e('0xe92'),'options':{'searchFields':[_0x5ac13e('0x1e50'),_0x5ac13e('0x1806'),_0x5ac13e('0x28e')],'route':{'model':_0x5ac13e('0x1197'),'action':_0x5ac13e('0x1d97'),'params':{'fields':_0x5ac13e('0x1cf0'),'Contact':_0x5ac13e('0xdd7'),'nolimit':!![]}},'extraOperators':[_0x5ac13e('0x2694')],'excludedOperators':['$ne']}},{'name':_0x5ac13e('0x224f'),'column':_0x5ac13e('0x11bc'),'type':_0x5ac13e('0x86e'),'options':{'excludedOperators':[_0x5ac13e('0xc0c'),_0x5ac13e('0x10be')]}},{'name':_0x5ac13e('0x176f'),'column':_0x5ac13e('0x1405'),'type':'text','options':{'excludedOperators':[_0x5ac13e('0xc0c'),_0x5ac13e('0x10be')]}},{'name':_0x5ac13e('0xef8'),'column':_0x5ac13e('0x1636'),'type':_0x5ac13e('0xc65'),'values':[{'id':0x0,'translate':_0x5ac13e('0x163c')},{'id':0x1,'translate':_0x5ac13e('0x1389')}],'options':{'excludedOperators':[_0x5ac13e('0x10be')]}},{'name':_0x5ac13e('0x1547'),'column':_0x5ac13e('0x2265'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x5ac13e('0x166f'),'action':_0x5ac13e('0x1d97'),'params':{'role':'agent','fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x5ac13e('0x2694')],'excludedOperators':[_0x5ac13e('0x10be')]}},{'name':_0x5ac13e('0xc38'),'column':_0x5ac13e('0x460'),'type':_0x5ac13e('0x1c68'),'options':{'route':{'model':'tag','action':_0x5ac13e('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5ac13e('0x2232')]}},{'name':_0x5ac13e('0x1406'),'column':'createdAt','type':_0x5ac13e('0x22b6'),'options':{'excludedOperators':[_0x5ac13e('0x10be')]}},{'name':'Read','column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x5ac13e('0x1170')},{'id':0x0,'translate':_0x5ac13e('0x1015')}],'options':{'excludedOperators':[_0x5ac13e('0x10be')]}}];}function _0x3db973(){const _0x2b246b=_0x40bb81;_0x584de7[_0x2b246b('0x1cb7')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x2b246b('0xb6d')](_0x2e4bcc['body']),'clickOutsideToClose':![],'locals':{'fields':_0x103a26[_0x2b246b('0x2706')]['fields'],'color':undefined,'storagePath':'chat.chatWebsites'},'fullscreen':!![]})[_0x2b246b('0x173b')](function(_0x2cfb46){const _0x5c8bd4=_0x2b246b;_0x103a26[_0x5c8bd4('0xc49')][_0x5c8bd4('0x23e7')]=_0x2cfb46===![]?undefined:_0x2cfb46;if(_0x103a26[_0x5c8bd4('0xc49')][_0x5c8bd4('0x23e7')])_0x5a38e2();else _0x2cfb46===![]&&_0x5a38e2();})['catch'](function(_0x2b22d4){const _0x3109dc=_0x2b246b;_0x2419b8['error']({'title':_0x3109dc('0x280c'),'msg':_0x2b22d4[_0x3109dc('0x1e07')]?JSON['stringify'](_0x2b22d4[_0x3109dc('0x1e07')][_0x3109dc('0x67f')]):_0x2b22d4[_0x3109dc('0x1b75')]()});});}function _0x4304e0(_0x3fd99e,_0x46d17f,_0x39813e){const _0x36f85e=_0x40bb81;return _0x120fbb[_0x36f85e('0x22a3')][_0x36f85e('0xfce')]({'id':_0x3fd99e['id'],'exists':!![],'attachments':_0x39813e})[_0x36f85e('0x1964')][_0x36f85e('0x173b')](function(_0x140876){const _0x216dbb=_0x36f85e,_0x9ce8b0=[_0x140876['buffer']];let _0x303787=_0x216dbb('0x8d6')+_0x3fd99e['id'];const _0x4caf9e=new Blob(_0x9ce8b0,{'type':_0x140876['type']});_0x303787=_0x216dbb('0x130d')+_0x3fd99e['id']+_0x216dbb('0x1421');const _0x8277b=window[_0x216dbb('0x222a')][_0x216dbb('0x1258')]('a');_0x8277b[_0x216dbb('0x11c3')](_0x216dbb('0x165c'),URL[_0x216dbb('0x1466')](_0x4caf9e)),_0x8277b[_0x216dbb('0x11c3')]('download',_0x303787),document[_0x216dbb('0x1a5')][_0x216dbb('0x1f8d')](_0x8277b),_0x8277b[_0x216dbb('0x3cb')]();})[_0x36f85e('0x103c')](function(_0x3db05a){const _0x1cb735=_0x36f85e;if(_0x3db05a['data']&&_0x3db05a['data']['errors']&&_0x3db05a['data'][_0x1cb735('0x1d4a')][_0x1cb735('0x543')])for(let _0x5e5e86=0x0;_0x5e5e86<_0x3db05a[_0x1cb735('0x1e07')][_0x1cb735('0x1d4a')]['length'];_0x5e5e86+=0x1){_0x2419b8[_0x1cb735('0x15aa')]({'title':_0x3db05a[_0x1cb735('0x1e07')][_0x1cb735('0x1d4a')][_0x5e5e86]['type'],'msg':_0x3db05a[_0x1cb735('0x1e07')][_0x1cb735('0x1d4a')][_0x5e5e86]['message']});}else _0x2419b8[_0x1cb735('0x15aa')]({'title':_0x3db05a[_0x1cb735('0x276f')]?'API:'+_0x3db05a[_0x1cb735('0x276f')]+_0x1cb735('0x160c')+_0x3db05a[_0x1cb735('0x2696')]:_0x1cb735('0x1e40'),'msg':_0x3db05a[_0x1cb735('0x1e07')]?JSON[_0x1cb735('0x100b')](_0x3db05a[_0x1cb735('0x1e07')][_0x1cb735('0x67f')]):_0x3db05a[_0x1cb735('0x1b75')]()});});}function _0x832e0f(_0x4e001e,_0x50ac2a){const _0x40a820=_0x40bb81,_0x522533=_0x584de7['confirm']()['title'](_0x40a820('0x1169'))[_0x40a820('0xf8b')](''+(_0x4e001e[_0x40a820('0x10ad')]||_0x4e001e['id']&&_0x3c8d8a()[_0x40a820('0x5ba')](_0x40a820('0x1523'))+_0x4e001e['id']||_0x40a820('0x8d6'))+_0x40a820('0x24be')+'\x20will\x20be\x20deleted.')[_0x40a820('0x217')]('delete\x20interaction')[_0x40a820('0x21de')](_0x50ac2a)['ok']('OK')['cancel'](_0x40a820('0x468'));_0x584de7[_0x40a820('0x1cb7')](_0x522533)[_0x40a820('0x173b')](function(){_0x2030f3(_0x4e001e);},function(){const _0x116f28=_0x40a820;console[_0x116f28('0xe37')]('CANCEL');});}function _0x9059b9(_0x5097fc){const _0x2021e1=_0x40bb81;_0x103a26[_0x2021e1('0x281f')]=_0x5097fc||{'count':0x0,'rows':[]};for(let _0x1a905f=0x0;_0x1a905f<_0x103a26[_0x2021e1('0x281f')]['rows']['length'];_0x1a905f+=0x1){const _0x17e730=_0x103a26['chatWebsiteInteractions'][_0x2021e1('0x6aa')][_0x1a905f];_0x6a2d83(_0x17e730),_0x17e730[_0x2021e1('0x274f')][_0x2021e1('0x10ad')]=_0x69e888(_0x17e730);}}function _0x5a38e2(){const _0x1a4920=_0x40bb81;_0x103a26[_0x1a4920('0xc49')]['offset']=(_0x103a26[_0x1a4920('0xc49')][_0x1a4920('0x182e')]-0x1)*_0x103a26[_0x1a4920('0xc49')][_0x1a4920('0x3e')],_0x103a26[_0x1a4920('0x2219')]=_0x120fbb[_0x1a4920('0x22a3')][_0x1a4920('0x1d97')](_0x103a26[_0x1a4920('0xc49')],_0x9059b9)[_0x1a4920('0x1964')];}function _0x5ae9e4(_0x493277,_0x48bc5a){const _0x2858bd=_0x40bb81;_0x584de7['show']({'controller':_0x2858bd('0x58c'),'controllerAs':'vm','templateUrl':_0x4717ab,'parent':angular[_0x2858bd('0xb6d')](_0x2e4bcc['body']),'targetEvent':_0x493277,'clickOutsideToClose':!![],'onShowing':function(_0x3f7500){const _0x29e4f7=_0x2858bd;_0x3f7500['vm'][_0x29e4f7('0xb9c')]({'id':0x1,'channel':_0x29e4f7('0x8c5'),'interaction':_0x48bc5a,'spy':!![]},_0x4436dd['$parent']['vm'][_0x29e4f7('0x251')]);}});}function _0x2030f3(_0x1601c1){const _0x286fc5=_0x40bb81;_0x120fbb[_0x286fc5('0x22a3')][_0x286fc5('0x15e8')]({'id':_0x1601c1['id']})[_0x286fc5('0x1964')][_0x286fc5('0x173b')](function(){const _0xd7e0c6=_0x286fc5;_0x3c8d8a()['remove'](_0x103a26[_0xd7e0c6('0x281f')][_0xd7e0c6('0x6aa')],{'id':_0x1601c1['id']}),_0x103a26[_0xd7e0c6('0x281f')][_0xd7e0c6('0x1a2f')]-=0x1,!_0x103a26[_0xd7e0c6('0x281f')]['rows']['length']&&_0x5a38e2(),_0x2419b8[_0xd7e0c6('0xdfe')]({'title':_0xd7e0c6('0x22c0'),'msg':_0x1601c1[_0xd7e0c6('0x10ad')]?_0x1601c1[_0xd7e0c6('0x10ad')]+_0xd7e0c6('0x25d2'):''});})['catch'](function(_0x3e0557){const _0x4d37e2=_0x286fc5;if(_0x3e0557[_0x4d37e2('0x1e07')]&&_0x3e0557[_0x4d37e2('0x1e07')][_0x4d37e2('0x1d4a')]&&_0x3e0557[_0x4d37e2('0x1e07')][_0x4d37e2('0x1d4a')]['length']){_0x103a26[_0x4d37e2('0x1d4a')]=_0x3e0557[_0x4d37e2('0x1e07')][_0x4d37e2('0x1d4a')]||[{'message':_0x3e0557[_0x4d37e2('0x1b75')](),'type':_0x4d37e2('0x61e')}];for(let _0x598f70=0x0;_0x598f70<_0x3e0557[_0x4d37e2('0x1e07')][_0x4d37e2('0x1d4a')][_0x4d37e2('0x543')];_0x598f70++){_0x2419b8['error']({'title':_0x3e0557[_0x4d37e2('0x1e07')]['errors'][_0x598f70][_0x4d37e2('0x1810')],'msg':_0x3e0557['data']['errors'][_0x598f70]['message']});}}else _0x2419b8[_0x4d37e2('0x15aa')]({'title':_0x3e0557[_0x4d37e2('0x276f')]?_0x4d37e2('0x137')+_0x3e0557[_0x4d37e2('0x276f')]+_0x4d37e2('0x160c')+_0x3e0557[_0x4d37e2('0x2696')]:'SYSTEM:GETchatWebsite','msg':_0x3e0557[_0x4d37e2('0x1e07')]?JSON[_0x4d37e2('0x100b')](_0x3e0557[_0x4d37e2('0x1e07')]['message']):_0x3e0557['message']||_0x3e0557[_0x4d37e2('0x1b75')]()});});}function _0xcd3307(){const _0xb7d322=_0x40bb81,_0x3fe001=angular[_0xb7d322('0x2e3')](_0x103a26[_0xb7d322('0x26df')]);return _0x103a26['selectedChatWebsiteInteractions']=[],_0x3fe001;}function _0x196450(_0xe00102){const _0x25fac9=_0x40bb81,_0x4c2774=_0x584de7[_0x25fac9('0x1d02')]()[_0x25fac9('0x20d6')](_0x25fac9('0x568'))[_0x25fac9('0xf8b')](_0x25fac9('0x15b9')+_0x103a26['selectedChatWebsiteInteractions'][_0x25fac9('0x543')]+_0x25fac9('0xcb4')+'\x20will\x20be\x20deleted.')[_0x25fac9('0x217')](_0x25fac9('0x19'))['targetEvent'](_0xe00102)['ok']('OK')['cancel'](_0x25fac9('0x468'));_0x584de7[_0x25fac9('0x1cb7')](_0x4c2774)[_0x25fac9('0x173b')](function(){const _0x35e028=_0x25fac9;_0x103a26['selectedChatWebsiteInteractions'][_0x35e028('0xa6a')](function(_0x2510f3){_0x2030f3(_0x2510f3);}),_0x103a26['selectedChatWebsiteInteractions']=[];});}function _0x6a2d83(_0x3e9212){const _0x808638=_0x40bb81;_0x3e9212[_0x808638('0x1f70')]?_0x3e9212['contactName']=(_0x3e9212[_0x808638('0x1f70')][_0x808638('0x1e50')]||'')+'\x20'+(_0x3e9212[_0x808638('0x1f70')][_0x808638('0x1806')]||''):_0x3e9212[_0x808638('0x98d')]=_0x242ec5['instant'](_0x808638('0x172b'));}function _0x69e888(_0x53c7f8){const _0x149a4=_0x40bb81;if(_0x53c7f8[_0x149a4('0x181c')])return _0x53c7f8[_0x149a4('0x181c')]===_0x103a26[_0x149a4('0x155f')]['id']?_0x242ec5[_0x149a4('0x1467')](_0x149a4('0x2449')):_0x53c7f8[_0x149a4('0x274f')][_0x149a4('0x572')]+'\x20<'+_0x53c7f8[_0x149a4('0x274f')][_0x149a4('0x138c')]+'>';return _0x242ec5[_0x149a4('0x1467')](_0x149a4('0x27a8'));}let _0x532252=!![],_0x493804=0x1;_0x4436dd[_0x40bb81('0x1bdb')](_0x40bb81('0x5b8'),function(_0x43c543,_0x1e668){const _0xabab52=_0x40bb81;_0x532252?_0x315914(function(){_0x532252=![];}):(!_0x1e668&&(_0x493804=_0x103a26['query']['page']),_0x43c543!==_0x1e668&&(_0x103a26[_0xabab52('0xc49')][_0xabab52('0x182e')]=0x1),!_0x43c543&&(_0x103a26[_0xabab52('0xc49')][_0xabab52('0x182e')]=_0x493804),_0x5a38e2());});}const _0x5c8b14=_0x22a183;_0x2269fc['$inject']=[_0x566993('0x2166'),_0x566993('0x1558')];function _0x2269fc(_0x3f8c1d,_0x34b823){const _0x54756a=_0x566993,_0x993b59=this,_0x375dd6=0x8,_0x49732b=_0x375dd6*0x400*0x400;_0x993b59[_0x54756a('0x1740')]={},_0x993b59[_0x54756a('0x1dc1')],_0x993b59['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x49732b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x993b59['ngFlow']={'flow':{}},_0x993b59[_0x54756a('0x134a')]=![],_0x993b59[_0x54756a('0x23a9')]=_0x13f93b,_0x993b59[_0x54756a('0xb1e')]=_0x518652,_0x993b59[_0x54756a('0x12b9')]=_0x3c28b2,_0x993b59[_0x54756a('0xb9c')]=_0x387dc7;function _0x387dc7(_0x3f9da4,_0x190df1){const _0x2e7d14=_0x54756a;_0x993b59[_0x2e7d14('0x1740')]=angular['copy'](_0x3f9da4),_0x993b59['crudPermissions']=typeof _0x190df1!==_0x2e7d14('0x6e5')?_0x190df1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x993b59['ngFlowOptions'][_0x2e7d14('0x235')]='/api/chat/websites/:id/logo'['replace'](':id',_0x993b59['chatWebsite']['id']),_0x993b59['chatWebsite'][_0x2e7d14('0x1f73')]=[];}function _0x13f93b(_0x1f516a){const _0xd99417=_0x54756a,_0x5cd2e8=[_0xd99417('0x13f0'),_0xd99417('0xa5a')];if(!_0x3c8d8a()['includes'](_0x5cd2e8,_0x1f516a[_0xd99417('0x131a')]()))return _0x34b823[_0xd99417('0x15aa')]({'title':'Invalid\x20extension:\x20'+_0x1f516a[_0xd99417('0x131a')](),'msg':_0xd99417('0x10cc')+_0x5cd2e8['join']()}),![];if(_0x1f516a['size']>_0x49732b)return _0x34b823[_0xd99417('0x15aa')]({'title':_0xd99417('0xd1e'),'msg':_0xd99417('0xdfc')+_0x375dd6+'MB'}),![];const _0x27d345={'id':_0x1f516a[_0xd99417('0x1b98')],'file':_0x1f516a,'type':_0xd99417('0x2175')};return _0x993b59[_0xd99417('0x1740')][_0xd99417('0x1f73')][_0xd99417('0x1377')](_0x27d345),!![];}function _0x518652(){const _0x24a919=_0x54756a;_0x993b59['ngFlow'][_0x24a919('0x1789')][_0x24a919('0x2431')][_0x24a919('0x1670')]={'X-Requested-With':_0x24a919('0x12c9'),'Authorization':_0x24a919('0x221')+_0x3f8c1d[_0x24a919('0x1d97')](_0x24a919('0x7c6'))},_0x993b59[_0x24a919('0x428')]['flow'][_0x24a919('0xb1e')]();}function _0x3c28b2(_0x452d46){const _0x3aad05=_0x54756a;angular[_0x3aad05('0xa6a')](_0x993b59[_0x3aad05('0x1740')][_0x3aad05('0x1f73')],function(_0x21b0da){const _0x40a185=_0x3aad05;if(_0x21b0da['id']===_0x452d46['uniqueIdentifier']){const _0x1977fd=new FileReader();_0x1977fd[_0x40a185('0x427')](_0x21b0da[_0x40a185('0x2522')][_0x40a185('0x2522')]),_0x1977fd[_0x40a185('0x147d')]=function(_0x2dd715){const _0x189a81=_0x40a185;_0x21b0da['url']=_0x2dd715[_0x189a81('0x235')]['result'];},_0x21b0da['type']=_0x40a185('0x204b');}});}}const _0x465633=_0x2269fc,_0x327489=_0x21a6a1['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog.html';_0xd950b3[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0xd950b3(_0x1d1c8e,_0x3b1896,_0x24f113,_0x3e4c5d,_0x3ca463,_0x4c15be,_0x42fd2a,_0x1ae3b2,_0x130b6c,_0x5609df,_0x3fdae8){const _0x25447a=_0x566993,_0x32e5cc=this;_0x32e5cc[_0x25447a('0x155f')]=_0x3fdae8[_0x25447a('0x14d4')](),_0x32e5cc[_0x25447a('0x1740')]={},_0x32e5cc['chatWebsiteOfflineMessages']={'count':0x0,'rows':[]},_0x32e5cc[_0x25447a('0xf80')]=[],_0x32e5cc[_0x25447a('0x1dc1')],_0x32e5cc[_0x25447a('0xc49')]={'fields':_0x25447a('0x19d5'),'sort':_0x25447a('0x1cad'),'limit':0xa,'page':0x1},_0x32e5cc[_0x25447a('0xb9c')]=_0x3c4719,_0x32e5cc[_0x25447a('0x2051')]=_0x8a8c7a,_0x32e5cc[_0x25447a('0xdfe')]=_0x15727e,_0x32e5cc[_0x25447a('0x2772')]=_0xba6345,_0x32e5cc[_0x25447a('0x221c')]=_0x602951,_0x32e5cc[_0x25447a('0x1735')]=_0x269309,_0x32e5cc[_0x25447a('0xbe6')]=_0x55e551,_0x32e5cc['deleteChatWebsiteOfflineMessage']=_0x35c6cf,_0x32e5cc[_0x25447a('0x2583')]=_0x36b136;function _0x3c4719(_0x3cac38,_0x2fdea5){const _0x5b3ded=_0x25447a;_0x32e5cc[_0x5b3ded('0x1740')]=_0x3cac38,_0x32e5cc['crudPermissions']=typeof _0x2fdea5!==_0x5b3ded('0x6e5')?_0x2fdea5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32e5cc[_0x5b3ded('0xc49')]['id']=_0x32e5cc[_0x5b3ded('0x1740')]['id'],_0xba6345();}function _0x8a8c7a(_0x4a5a9a,_0x241c29){const _0x559e24=_0x25447a,_0x25145d=_0x42fd2a[_0x559e24('0x1d02')]()['title'](_0x559e24('0x9c4'))[_0x559e24('0xf8b')](''+(_0x4a5a9a['name']||_0x4a5a9a['id']&&_0x3c8d8a()[_0x559e24('0x5ba')]('offlineMessage\x20#')+_0x4a5a9a['id']||_0x559e24('0x25f7'))+_0x559e24('0x24be')+_0x559e24('0xd23'))['ariaLabel'](_0x559e24('0x1e17'))[_0x559e24('0x21de')](_0x241c29)['ok']('OK')['cancel'](_0x559e24('0x468'));_0x42fd2a['show'](_0x25145d)[_0x559e24('0x173b')](function(){_0x35c6cf(_0x4a5a9a);},function(){const _0xf22de5=_0x559e24;console[_0xf22de5('0xe37')]('CANCEL');});}function _0x15727e(_0x5821ba){const _0x234b54=_0x25447a;_0x32e5cc[_0x234b54('0xe54')]=_0x5821ba||{'count':0x0,'rows':[]};}function _0xba6345(){const _0x159dcd=_0x25447a;_0x32e5cc[_0x159dcd('0xc49')][_0x159dcd('0x17f0')]=(_0x32e5cc[_0x159dcd('0xc49')][_0x159dcd('0x182e')]-0x1)*_0x32e5cc[_0x159dcd('0xc49')][_0x159dcd('0x3e')],_0x32e5cc[_0x159dcd('0x2219')]=_0x5609df[_0x159dcd('0x1740')][_0x159dcd('0x138a')](_0x32e5cc['query'],_0x15727e)[_0x159dcd('0x1964')];}function _0x602951(_0xe15564,_0x1d6285){const _0x414b09=_0x25447a;_0x42fd2a[_0x414b09('0x1cb7')]({'controller':'CreateOrEditOfflineMessageDialogController','controllerAs':'vm','templateUrl':_0x327489,'parent':angular['element'](_0x1ae3b2[_0x414b09('0x1a5')]),'targetEvent':_0xe15564,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x32e5cc[_0x414b09('0x1740')],'offlineMessage':_0x1d6285,'offlineMessages':_0x32e5cc[_0x414b09('0xe54')][_0x414b09('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x32e5cc['crudPermissions']}});}function _0x269309(_0x364d49,_0x1e25df){const _0x303b39=_0x25447a;_0x42fd2a[_0x303b39('0x1cb7')]({'controller':_0x303b39('0x481'),'controllerAs':'vm','templateUrl':_0x327489,'parent':angular[_0x303b39('0xb6d')](_0x1ae3b2[_0x303b39('0x1a5')]),'targetEvent':_0x364d49,'clickOutsideToClose':!![],'resolve':{'message':['apiResolver',function(_0x3cb49b){const _0x1b04e0=_0x303b39;return _0x3cb49b[_0x1b04e0('0x155b')](_0x1b04e0('0x1a57'),{'fields':'id,body','id':_0x1e25df['id']});}]}});}function _0x35c6cf(_0x46b40f){const _0x467e7d=_0x25447a;_0x5609df['chatOfflineMessage'][_0x467e7d('0x15e8')]({'id':_0x46b40f['id']})[_0x467e7d('0x1964')][_0x467e7d('0x173b')](function(){const _0x3ef0c4=_0x467e7d;_0x3c8d8a()[_0x3ef0c4('0x1a8b')](_0x32e5cc[_0x3ef0c4('0xe54')][_0x3ef0c4('0x6aa')],{'id':_0x46b40f['id']}),_0x32e5cc[_0x3ef0c4('0xe54')]['count']-=0x1,!_0x32e5cc[_0x3ef0c4('0xe54')][_0x3ef0c4('0x6aa')][_0x3ef0c4('0x543')]&&_0xba6345(),_0x130b6c[_0x3ef0c4('0xdfe')]({'title':_0x3ef0c4('0xb40'),'msg':_0x46b40f[_0x3ef0c4('0x10ad')]?_0x46b40f['name']+'\x20has\x20been\x20deleted!':''});})[_0x467e7d('0x103c')](function(_0x5c378b){const _0x5a9755=_0x467e7d;if(_0x5c378b[_0x5a9755('0x1e07')]&&_0x5c378b[_0x5a9755('0x1e07')][_0x5a9755('0x1d4a')]&&_0x5c378b['data']['errors'][_0x5a9755('0x543')]){_0x32e5cc['errors']=_0x5c378b[_0x5a9755('0x1e07')][_0x5a9755('0x1d4a')]||[{'message':_0x5c378b[_0x5a9755('0x1b75')](),'type':_0x5a9755('0x61e')}];for(let _0x327261=0x0;_0x327261<_0x5c378b[_0x5a9755('0x1e07')][_0x5a9755('0x1d4a')][_0x5a9755('0x543')];_0x327261++){_0x130b6c[_0x5a9755('0x15aa')]({'title':_0x5c378b['data'][_0x5a9755('0x1d4a')][_0x327261][_0x5a9755('0x1810')],'msg':_0x5c378b[_0x5a9755('0x1e07')][_0x5a9755('0x1d4a')][_0x327261][_0x5a9755('0x67f')]});}}else _0x130b6c[_0x5a9755('0x15aa')]({'title':_0x5c378b[_0x5a9755('0x276f')]?_0x5a9755('0x137')+_0x5c378b[_0x5a9755('0x276f')]+_0x5a9755('0x160c')+_0x5c378b[_0x5a9755('0x2696')]:_0x5a9755('0x61e'),'msg':_0x5c378b[_0x5a9755('0x1e07')]?JSON[_0x5a9755('0x100b')](_0x5c378b[_0x5a9755('0x1e07')]['message']):_0x5c378b[_0x5a9755('0x67f')]||_0x5c378b[_0x5a9755('0x1b75')]()});});}function _0x55e551(){const _0x25b6ad=_0x25447a,_0x479cc8=angular[_0x25b6ad('0x2e3')](_0x32e5cc['selectedChatWebsiteOfflineMessages']);return _0x32e5cc[_0x25b6ad('0xf80')]=[],_0x479cc8;}function _0x36b136(_0x41ae0d){const _0x517a93=_0x25447a,_0x443ee0=_0x42fd2a[_0x517a93('0x1d02')]()[_0x517a93('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?')[_0x517a93('0xf8b')](_0x517a93('0x15b9')+_0x32e5cc[_0x517a93('0xf80')][_0x517a93('0x543')]+_0x517a93('0xcb4')+_0x517a93('0xd23'))[_0x517a93('0x217')]('delete\x20offlineMessages')['targetEvent'](_0x41ae0d)['ok']('OK')['cancel'](_0x517a93('0x468'));_0x42fd2a[_0x517a93('0x1cb7')](_0x443ee0)[_0x517a93('0x173b')](function(){const _0x1c8659=_0x517a93;_0x32e5cc[_0x1c8659('0xf80')]['forEach'](function(_0x273274){_0x35c6cf(_0x273274);}),_0x32e5cc[_0x1c8659('0xf80')]=[];});}let _0x3b3278=!![],_0x5b6af9=0x1;_0x3b1896[_0x25447a('0x1bdb')](_0x25447a('0x5b8'),function(_0xe32c97,_0x24c8cf){const _0x1c668d=_0x25447a;_0x3b3278?_0x4c15be(function(){_0x3b3278=![];}):(!_0x24c8cf&&(_0x5b6af9=_0x32e5cc[_0x1c668d('0xc49')]['page']),_0xe32c97!==_0x24c8cf&&(_0x32e5cc[_0x1c668d('0xc49')]['page']=0x1),!_0xe32c97&&(_0x32e5cc['query']['page']=_0x5b6af9),_0xba6345());});}const _0x4a53f3=_0xd950b3;_0x49baa8['$inject']=[_0x566993('0x1fe5'),_0x566993('0x67f')];function _0x49baa8(_0x165109,_0x30203d){const _0x41527d=_0x566993,_0x323b8b=this;_0x323b8b[_0x41527d('0x20d6')]='CHAT.OFFLINE_MESSAGE',_0x323b8b[_0x41527d('0x67f')]=_0x30203d,_0x323b8b[_0x41527d('0x18e2')]=_0x3f1532;function _0x3f1532(_0x481441){const _0x467810=_0x41527d;_0x165109[_0x467810('0x1cf4')](_0x481441);}}const _0xce414e=_0x49baa8,_0x30738e=_0x21a6a1['p']+_0x566993('0x1f8c');_0x15a163['$inject']=[_0x566993('0x2166'),'$scope',_0x566993('0x2276'),'$q','$translate',_0x566993('0x24b5'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x1558'),'api',_0x566993('0x1600')];function _0x15a163(_0x59e730,_0x6a681f,_0x32b63e,_0x983d21,_0x54efdf,_0x50a28e,_0x2c3f9b,_0x331aa0,_0x37c6c8,_0x2366a9,_0x493d5c){const _0x161055=_0x566993,_0xb5d684=this;_0xb5d684['currentUser']=_0x493d5c[_0x161055('0x14d4')](),_0xb5d684[_0x161055('0x1740')]={},_0xb5d684[_0x161055('0x144')]={'count':0x0,'rows':[]},_0xb5d684['selectedChatWebsiteProactiveActions']=[],_0xb5d684[_0x161055('0x1dc1')],_0xb5d684['query']={'fields':_0x161055('0x173e'),'limit':0xa,'page':0x1},_0xb5d684[_0x161055('0x1f90')]=_0x3c8d8a()[_0x161055('0x128')]([{'option':_0x161055('0x2453'),'value':'\x27mouseOver\x27'},{'option':_0x161055('0x1b9a'),'value':'\x27timeout\x27'}],function(_0x323be2){const _0x18c7ad=_0x161055;return _0x3c8d8a()[_0x18c7ad('0x166c')](_0x323be2[_0x18c7ad('0xa7b')],new RegExp('\x27','g'),'');}),_0xb5d684[_0x161055('0xb9c')]=_0x29b543,_0xb5d684[_0x161055('0x2051')]=_0x1d39b5,_0xb5d684['success']=_0x1dfc7e,_0xb5d684[_0x161055('0x1e7')]=_0x257502,_0xb5d684['createOrEditChatWebsiteChatProactiveAction']=_0x4c8e01,_0xb5d684[_0x161055('0xc2b')]=_0x20d5c3,_0xb5d684[_0x161055('0x8fe')]=_0x845ca8,_0xb5d684[_0x161055('0xf03')]=_0x1cdf2b;function _0x29b543(_0x32a774,_0x57cbd1){const _0x54a83e=_0x161055;_0xb5d684[_0x54a83e('0x1740')]=_0x32a774,_0xb5d684[_0x54a83e('0x1dc1')]=typeof _0x57cbd1!==_0x54a83e('0x6e5')?_0x57cbd1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xb5d684[_0x54a83e('0xc49')][_0x54a83e('0x1796')]=_0xb5d684[_0x54a83e('0x1740')]['id'],_0xb5d684['query']['id']=_0xb5d684[_0x54a83e('0x1740')]['id'],_0x257502();}function _0x1d39b5(_0x1693f6,_0x179110){const _0x24654a=_0x161055,_0x39d82c=_0x2c3f9b[_0x24654a('0x1d02')]()[_0x24654a('0x20d6')](_0x24654a('0x1939'))[_0x24654a('0xf8b')](_0x24654a('0x15b9')+(_0x1693f6[_0x24654a('0x10ad')]||_0x1693f6['id']&&_0x3c8d8a()[_0x24654a('0x5ba')](_0x24654a('0x19c1'))+_0x1693f6['id']||_0x24654a('0x13be'))+_0x24654a('0x24be')+_0x24654a('0xd23'))['ariaLabel']('delete\x20chatProactiveAction')[_0x24654a('0x21de')](_0x179110)['ok']('OK')[_0x24654a('0x1e1f')](_0x24654a('0x468'));_0x2c3f9b['show'](_0x39d82c)[_0x24654a('0x173b')](function(){_0x845ca8(_0x1693f6);},function(){const _0x4b4931=_0x24654a;console['log'](_0x4b4931('0x468'));});}function _0x1dfc7e(_0x4f0a29){_0xb5d684['chatWebsiteProactiveActions']=_0x4f0a29||{'count':0x0,'rows':[]};}function _0x257502(){const _0x138721=_0x161055;_0xb5d684[_0x138721('0xc49')][_0x138721('0x17f0')]=(_0xb5d684[_0x138721('0xc49')][_0x138721('0x182e')]-0x1)*_0xb5d684['query'][_0x138721('0x3e')],_0xb5d684['promise']=_0x2366a9[_0x138721('0x1740')][_0x138721('0x18')](_0xb5d684[_0x138721('0xc49')],_0x1dfc7e)['$promise'];}function _0x4c8e01(_0xfd119,_0x35d103){const _0x4664d2=_0x161055;_0x2c3f9b['show']({'controller':_0x4664d2('0x1555'),'controllerAs':'vm','templateUrl':_0x30738e,'parent':angular['element'](_0x331aa0[_0x4664d2('0x1a5')]),'targetEvent':_0xfd119,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0xb5d684[_0x4664d2('0x1740')],'chatProactiveAction':_0x35d103,'proactive':_0xb5d684[_0x4664d2('0x144')][_0x4664d2('0x6aa')],'license':null,'setting':null,'crudPermissions':_0xb5d684[_0x4664d2('0x1dc1')]}});}function _0x845ca8(_0x123f3a){const _0x1bdc2e=_0x161055;_0x2366a9[_0x1bdc2e('0x13be')][_0x1bdc2e('0x15e8')]({'id':_0x123f3a['id']})['$promise'][_0x1bdc2e('0x173b')](function(){const _0x2db3a7=_0x1bdc2e;_0x3c8d8a()[_0x2db3a7('0x1a8b')](_0xb5d684[_0x2db3a7('0x144')][_0x2db3a7('0x6aa')],{'id':_0x123f3a['id']}),_0xb5d684[_0x2db3a7('0x144')]['count']-=0x1,!_0xb5d684[_0x2db3a7('0x144')][_0x2db3a7('0x6aa')][_0x2db3a7('0x543')]&&_0x257502(),_0x37c6c8['success']({'title':_0x2db3a7('0x25e2'),'msg':_0x123f3a[_0x2db3a7('0x10ad')]?_0x123f3a[_0x2db3a7('0x10ad')]+_0x2db3a7('0x25d2'):''});})[_0x1bdc2e('0x103c')](function(_0xeb365e){const _0x2ddf17=_0x1bdc2e;if(_0xeb365e[_0x2ddf17('0x1e07')]&&_0xeb365e[_0x2ddf17('0x1e07')][_0x2ddf17('0x1d4a')]&&_0xeb365e[_0x2ddf17('0x1e07')][_0x2ddf17('0x1d4a')][_0x2ddf17('0x543')]){_0xb5d684['errors']=_0xeb365e[_0x2ddf17('0x1e07')][_0x2ddf17('0x1d4a')]||[{'message':_0xeb365e[_0x2ddf17('0x1b75')](),'type':_0x2ddf17('0x61e')}];for(let _0x140249=0x0;_0x140249<_0xeb365e[_0x2ddf17('0x1e07')][_0x2ddf17('0x1d4a')]['length'];_0x140249++){_0x37c6c8[_0x2ddf17('0x15aa')]({'title':_0xeb365e[_0x2ddf17('0x1e07')]['errors'][_0x140249][_0x2ddf17('0x1810')],'msg':_0xeb365e[_0x2ddf17('0x1e07')]['errors'][_0x140249][_0x2ddf17('0x67f')]});}}else _0x37c6c8['error']({'title':_0xeb365e[_0x2ddf17('0x276f')]?'API:'+_0xeb365e[_0x2ddf17('0x276f')]+_0x2ddf17('0x160c')+_0xeb365e[_0x2ddf17('0x2696')]:'SYSTEM:GETchatWebsite','msg':_0xeb365e[_0x2ddf17('0x1e07')]?JSON[_0x2ddf17('0x100b')](_0xeb365e[_0x2ddf17('0x1e07')][_0x2ddf17('0x67f')]):_0xeb365e[_0x2ddf17('0x67f')]||_0xeb365e[_0x2ddf17('0x1b75')]()});});}function _0x20d5c3(){const _0x516962=_0x161055,_0x5b0628=angular[_0x516962('0x2e3')](_0xb5d684[_0x516962('0x1de2')]);return _0xb5d684[_0x516962('0x1de2')]=[],_0x5b0628;}function _0x1cdf2b(_0x56a505){const _0x11158c=_0x161055,_0x1a1b7d=_0x2c3f9b[_0x11158c('0x1d02')]()[_0x11158c('0x20d6')](_0x11158c('0xa61'))[_0x11158c('0xf8b')](''+_0xb5d684['selectedChatWebsiteProactiveActions'][_0x11158c('0x543')]+_0x11158c('0xcb4')+_0x11158c('0xd23'))[_0x11158c('0x217')](_0x11158c('0x27e6'))['targetEvent'](_0x56a505)['ok']('OK')[_0x11158c('0x1e1f')](_0x11158c('0x468'));_0x2c3f9b[_0x11158c('0x1cb7')](_0x1a1b7d)[_0x11158c('0x173b')](function(){const _0x3f6f3e=_0x11158c;_0xb5d684[_0x3f6f3e('0x1de2')]['forEach'](function(_0xcb3a87){_0x845ca8(_0xcb3a87);}),_0xb5d684[_0x3f6f3e('0x1de2')]=[];});}let _0x1f67b9=!![],_0x18e976=0x1;_0x6a681f['$watch'](_0x161055('0x5b8'),function(_0x2e3d6c,_0x40ecb7){const _0x54edd6=_0x161055;_0x1f67b9?_0x50a28e(function(){_0x1f67b9=![];}):(!_0x40ecb7&&(_0x18e976=_0xb5d684['query'][_0x54edd6('0x182e')]),_0x2e3d6c!==_0x40ecb7&&(_0xb5d684[_0x54edd6('0xc49')][_0x54edd6('0x182e')]=0x1),!_0x2e3d6c&&(_0xb5d684[_0x54edd6('0xc49')][_0x54edd6('0x182e')]=_0x18e976),_0x257502());});}const _0x311617=_0x15a163;_0x21c820[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),'proactive',_0x566993('0x13be'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x21c820(_0x44fc06,_0x11f6d9,_0x178d9e,_0xd8172e,_0x3c9ad4,_0x157677,_0x7b3a23,_0x4d4237,_0x1ce4b3,_0x4f689f,_0x3f3f16,_0x5008b5,_0x5d4088,_0x123c78){const _0x1e04a2=_0x566993,_0x44efb9=this;_0x44efb9[_0x1e04a2('0x155f')]=_0x3f3f16[_0x1e04a2('0x14d4')](),_0x44efb9[_0x1e04a2('0x1d4a')]=[],_0x44efb9['setting']=_0x5d4088,_0x44efb9['license']=_0x5008b5,_0x44efb9[_0x1e04a2('0x1dc1')]=_0x123c78,_0x44efb9[_0x1e04a2('0xb0')]={},_0x44efb9[_0x1e04a2('0x644')]=_0x44efb9[_0x1e04a2('0x251')]&&_0x44efb9[_0x1e04a2('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x44efb9[_0x1e04a2('0x20d6')]='CHAT.EDIT_CHATPROACTIVEACTION',_0x44efb9[_0x1e04a2('0x13be')]=angular[_0x1e04a2('0x2e3')](_0x1ce4b3),_0x44efb9[_0x1e04a2('0x192e')]=_0x4d4237,_0x44efb9['newChatProactiveAction']=![];!_0x44efb9[_0x1e04a2('0x13be')]&&(_0x44efb9['chatProactiveAction']={'type':_0x1e04a2('0x92b')},_0x44efb9[_0x1e04a2('0x20d6')]='CHAT.NEW_CHATPROACTIVEACTION',_0x44efb9[_0x1e04a2('0xd7b')]=!![]);_0x11f6d9[_0x1e04a2('0x197a')]['id']&&(_0x44efb9[_0x1e04a2('0x13be')][_0x1e04a2('0x1796')]=_0x11f6d9[_0x1e04a2('0x197a')]['id']);_0x44efb9['addNewChatProactiveAction']=_0x1eba45,_0x44efb9['saveChatProactiveAction']=_0xccf4e9,_0x44efb9[_0x1e04a2('0x218')]=_0x52d42c,_0x44efb9['getDateFromString']=_0x4c9e0e,_0x44efb9[_0x1e04a2('0x18e2')]=_0x3adc95;function _0x1eba45(){const _0x537249=_0x1e04a2;_0x44efb9[_0x537249('0x1d4a')]=[],_0x4f689f[_0x537249('0x13be')][_0x537249('0x1195')](_0x44efb9['chatProactiveAction'])[_0x537249('0x1964')][_0x537249('0x173b')](function(_0x1cbf15){const _0x405b2c=_0x537249;_0x44efb9[_0x405b2c('0x192e')][_0x405b2c('0x1377')](_0x1cbf15['toJSON']()),_0x7b3a23['success']({'title':_0x405b2c('0x1f19'),'msg':_0x44efb9['chatProactiveAction'][_0x405b2c('0x10ad')]?_0x44efb9[_0x405b2c('0x13be')][_0x405b2c('0x10ad')]+_0x405b2c('0x209a'):''}),_0x3adc95(_0x1cbf15);})['catch'](function(_0x59a7f2){const _0x59155c=_0x537249;if(_0x59a7f2[_0x59155c('0x1e07')]&&_0x59a7f2['data']['errors']&&_0x59a7f2[_0x59155c('0x1e07')][_0x59155c('0x1d4a')][_0x59155c('0x543')]){_0x44efb9[_0x59155c('0x1d4a')]=_0x59a7f2[_0x59155c('0x1e07')]['errors']||[{'message':_0x59a7f2[_0x59155c('0x1b75')](),'type':'api.chatProactiveAction.save'}];for(let _0x2d428c=0x0;_0x2d428c<_0x59a7f2[_0x59155c('0x1e07')]['errors'][_0x59155c('0x543')];_0x2d428c+=0x1){_0x7b3a23[_0x59155c('0x15aa')]({'title':_0x59a7f2[_0x59155c('0x1e07')][_0x59155c('0x1d4a')][_0x2d428c][_0x59155c('0x1810')],'msg':_0x59a7f2[_0x59155c('0x1e07')][_0x59155c('0x1d4a')][_0x2d428c][_0x59155c('0x67f')]});}}else _0x7b3a23[_0x59155c('0x15aa')]({'title':_0x59a7f2[_0x59155c('0x276f')]?_0x59155c('0x137')+_0x59a7f2[_0x59155c('0x276f')]+_0x59155c('0x160c')+_0x59a7f2[_0x59155c('0x2696')]:'api.chatProactiveAction.save','msg':_0x59a7f2[_0x59155c('0x1e07')]?JSON[_0x59155c('0x100b')](_0x59a7f2[_0x59155c('0x1e07')]['message']):_0x59a7f2[_0x59155c('0x1b75')]()});});}function _0xccf4e9(){const _0x1a23f0=_0x1e04a2;_0x44efb9[_0x1a23f0('0x1d4a')]=[],_0x4f689f[_0x1a23f0('0x13be')][_0x1a23f0('0x1842')]({'id':_0x44efb9['chatProactiveAction']['id']},_0x44efb9[_0x1a23f0('0x13be')])['$promise']['then'](function(_0xa19f3a){const _0x29a9e0=_0x1a23f0,_0x4bb459=_0x3c8d8a()['find'](_0x44efb9['proactive'],{'id':_0xa19f3a['id']});_0x4bb459&&_0x3c8d8a()[_0x29a9e0('0x9ef')](_0x4bb459,_0x3c8d8a()[_0x29a9e0('0x2114')](_0xa19f3a[_0x29a9e0('0xf1f')](),_0x3c8d8a()['keys'](_0x4bb459))),_0x7b3a23['success']({'title':_0x29a9e0('0x17bf'),'msg':_0x44efb9[_0x29a9e0('0x13be')]['name']?_0x44efb9[_0x29a9e0('0x13be')][_0x29a9e0('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x3adc95(_0xa19f3a);})[_0x1a23f0('0x103c')](function(_0x362187){const _0xa2fa4b=_0x1a23f0;if(_0x362187[_0xa2fa4b('0x1e07')]&&_0x362187[_0xa2fa4b('0x1e07')]['errors']&&_0x362187['data']['errors'][_0xa2fa4b('0x543')]){_0x44efb9['errors']=_0x362187['data']['errors']||[{'message':_0x362187[_0xa2fa4b('0x1b75')](),'type':_0xa2fa4b('0x1677')}];for(let _0x2bbafa=0x0;_0x2bbafa<_0x362187[_0xa2fa4b('0x1e07')][_0xa2fa4b('0x1d4a')][_0xa2fa4b('0x543')];_0x2bbafa++){_0x7b3a23[_0xa2fa4b('0x15aa')]({'title':_0x362187['data'][_0xa2fa4b('0x1d4a')][_0x2bbafa][_0xa2fa4b('0x1810')],'msg':_0x362187[_0xa2fa4b('0x1e07')][_0xa2fa4b('0x1d4a')][_0x2bbafa]['message']});}}else _0x7b3a23[_0xa2fa4b('0x15aa')]({'title':_0x362187['status']?'API:'+_0x362187[_0xa2fa4b('0x276f')]+_0xa2fa4b('0x160c')+_0x362187[_0xa2fa4b('0x2696')]:_0xa2fa4b('0x1677'),'msg':_0x362187[_0xa2fa4b('0x1e07')]?JSON[_0xa2fa4b('0x100b')](_0x362187[_0xa2fa4b('0x1e07')]['message']):_0x362187['toString']()});});}function _0x52d42c(_0x5f0fd7){const _0x3a229=_0x1e04a2;_0x44efb9[_0x3a229('0x1d4a')]=[];const _0x313a70=_0xd8172e[_0x3a229('0x1d02')]()[_0x3a229('0x20d6')](_0x3a229('0x8ef'))['content'](_0x3a229('0x1efc'))[_0x3a229('0x217')](_0x3a229('0x2830'))['ok']('Delete')[_0x3a229('0x1e1f')](_0x3a229('0x1d4e'))[_0x3a229('0x21de')](_0x5f0fd7);_0xd8172e[_0x3a229('0x1cb7')](_0x313a70)[_0x3a229('0x173b')](function(){const _0x4e6e74=_0x3a229;_0x4f689f[_0x4e6e74('0x13be')][_0x4e6e74('0x15e8')]({'id':_0x44efb9[_0x4e6e74('0x13be')]['id']})['$promise']['then'](function(){const _0x1cf562=_0x4e6e74;_0x3c8d8a()['remove'](_0x44efb9['proactive'],{'id':_0x44efb9[_0x1cf562('0x13be')]['id']}),_0x7b3a23[_0x1cf562('0xdfe')]({'title':_0x1cf562('0x3f9'),'msg':(_0x44efb9[_0x1cf562('0x13be')]['name']||_0x1cf562('0x13be'))+_0x1cf562('0x25d2')}),_0x3adc95(_0x44efb9[_0x1cf562('0x13be')]);})[_0x4e6e74('0x103c')](function(_0x434163){const _0x50fa85=_0x4e6e74;if(_0x434163[_0x50fa85('0x1e07')]&&_0x434163[_0x50fa85('0x1e07')][_0x50fa85('0x1d4a')]&&_0x434163[_0x50fa85('0x1e07')][_0x50fa85('0x1d4a')][_0x50fa85('0x543')]){_0x44efb9[_0x50fa85('0x1d4a')]=_0x434163['data'][_0x50fa85('0x1d4a')]||[{'message':_0x434163['toString'](),'type':_0x50fa85('0xb46')}];for(let _0x28f972=0x0;_0x28f972<_0x434163[_0x50fa85('0x1e07')][_0x50fa85('0x1d4a')][_0x50fa85('0x543')];_0x28f972++){_0x7b3a23[_0x50fa85('0x15aa')]({'title':_0x434163[_0x50fa85('0x1e07')]['errors'][_0x28f972][_0x50fa85('0x1810')],'msg':_0x434163[_0x50fa85('0x1e07')][_0x50fa85('0x1d4a')][_0x28f972][_0x50fa85('0x67f')]});}}else _0x7b3a23['error']({'title':_0x434163[_0x50fa85('0x276f')]?_0x50fa85('0x137')+_0x434163[_0x50fa85('0x276f')]+_0x50fa85('0x160c')+_0x434163['statusText']:_0x50fa85('0xb46'),'msg':_0x434163[_0x50fa85('0x1e07')]?JSON[_0x50fa85('0x100b')](_0x434163[_0x50fa85('0x1e07')][_0x50fa85('0x67f')]):_0x434163['message']||_0x434163['toString']()});});},function(){});}function _0x4c9e0e(_0x3669e5){return _0x3669e5===null?undefined:new Date(_0x3669e5);}function _0x3adc95(_0x430e5e){const _0x1c536e=_0x1e04a2;_0xd8172e[_0x1c536e('0x1cf4')](_0x430e5e);}}const _0x3b67b8=_0x21c820;_0x29bd10[_0x566993('0x17bb')]=['$scope'];function _0x29bd10(_0x57c341){const _0x377c8b=_0x566993,_0x5c6ca4=this;_0x5c6ca4[_0x377c8b('0x1740')]={},_0x5c6ca4[_0x377c8b('0xb9c')]=_0x418319,_0x5c6ca4['info']={};function _0x418319(_0x40f344){const _0x49a04e=_0x377c8b;_0x5c6ca4[_0x49a04e('0x1740')]=_0x40f344,_0x5c6ca4[_0x49a04e('0x17d1')]='\x0a',_0x5c6ca4[_0x49a04e('0x196')]='\x0a\x20\x20\x20\x20';});}const _0x2941d7=_0x29bd10;_0x2d7efd[_0x566993('0x17bb')]=[_0x566993('0x2166'),'toasty'];function _0x2d7efd(_0x23374a,_0x138fed){const _0xfe8ccc=_0x566993,_0x548db9=this,_0x153d21=0x8,_0x4f2b40=_0x153d21*0x400*0x400;_0x548db9[_0xfe8ccc('0x1740')]={},_0x548db9[_0xfe8ccc('0x1dc1')],_0x548db9[_0xfe8ccc('0x8f9')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4f2b40,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x548db9[_0xfe8ccc('0x428')]={'flow':{}},_0x548db9['dropping']=![],_0x548db9[_0xfe8ccc('0x23a9')]=_0xafd20f,_0x548db9[_0xfe8ccc('0xb1e')]=_0x5171f5,_0x548db9[_0xfe8ccc('0x12b9')]=_0x28a769,_0x548db9[_0xfe8ccc('0xb9c')]=_0x4d2bce;function _0x4d2bce(_0x5ca184,_0x45c1ec){const _0x5c7405=_0xfe8ccc;_0x548db9[_0x5c7405('0x1740')]=angular[_0x5c7405('0x2e3')](_0x5ca184),_0x548db9[_0x5c7405('0x1dc1')]=typeof _0x45c1ec!=='undefined'?_0x45c1ec:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x548db9['ngFlowOptions'][_0x5c7405('0x235')]=_0x5c7405('0x1713')[_0x5c7405('0x166c')](_0x5c7405('0x17d5'),_0x548db9[_0x5c7405('0x1740')]['id']),_0x548db9[_0x5c7405('0x1740')][_0x5c7405('0x1f73')]=[];}function _0xafd20f(_0x4c87b3){const _0x2bcff7=_0xfe8ccc,_0xfecd07=[_0x2bcff7('0x13f0'),_0x2bcff7('0xa5a')];if(!_0x3c8d8a()[_0x2bcff7('0x2814')](_0xfecd07,_0x4c87b3[_0x2bcff7('0x131a')]()))return _0x138fed[_0x2bcff7('0x15aa')]({'title':_0x2bcff7('0xc5d')+_0x4c87b3[_0x2bcff7('0x131a')](),'msg':'Supported\x20extension:\x20'+_0xfecd07['join']()}),![];if(_0x4c87b3[_0x2bcff7('0x2361')]>_0x4f2b40)return _0x138fed[_0x2bcff7('0x15aa')]({'title':_0x2bcff7('0xd1e'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x153d21+'MB'}),![];const _0x5876ee={'id':_0x4c87b3[_0x2bcff7('0x1b98')],'file':_0x4c87b3,'type':_0x2bcff7('0x2175')};return _0x548db9[_0x2bcff7('0x1740')][_0x2bcff7('0x1f73')][_0x2bcff7('0x1377')](_0x5876ee),!![];}function _0x5171f5(){const _0x185d8a=_0xfe8ccc;_0x548db9[_0x185d8a('0x428')][_0x185d8a('0x1789')][_0x185d8a('0x2431')][_0x185d8a('0x1670')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x185d8a('0x221')+_0x23374a['get'](_0x185d8a('0x7c6'))},_0x548db9['ngFlow'][_0x185d8a('0x1789')]['upload']();}function _0x28a769(_0x315933){const _0x55ab1b=_0xfe8ccc;angular[_0x55ab1b('0xa6a')](_0x548db9[_0x55ab1b('0x1740')][_0x55ab1b('0x1f73')],function(_0x5d36b4){const _0x166686=_0x55ab1b;if(_0x5d36b4['id']===_0x315933['uniqueIdentifier']){const _0x8842ce=new FileReader();_0x8842ce[_0x166686('0x427')](_0x5d36b4[_0x166686('0x2522')][_0x166686('0x2522')]),_0x8842ce['onload']=function(_0x773cfa){const _0x50334a=_0x166686;_0x5d36b4[_0x50334a('0xd1')]=_0x773cfa[_0x50334a('0x235')]['result'];},_0x5d36b4[_0x166686('0x1810')]=_0x166686('0x204b');}});}}const _0x4d390b=_0x2d7efd;_0x7cc238[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1740'),'userProfileSection'];function _0x7cc238(_0x361c4a,_0x14ac79,_0x7e564,_0x57c172,_0x1128df,_0x3db1f2,_0x37714c,_0x446320,_0x164cbc,_0xf3ad5f,_0x22f221,_0x5e136d){const _0xf189ff=_0x566993,_0x1f43ca=this;_0x1f43ca[_0xf189ff('0x155f')]=_0xf3ad5f['getCurrentUser'](),_0x1f43ca['license']=_0x3db1f2,_0x1f43ca['setting']=_0x37714c,_0x1f43ca[_0xf189ff('0x644')]=_0x1f43ca[_0xf189ff('0x251')][_0xf189ff('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1f43ca[_0xf189ff('0x614')]=_0x14ac79[_0xf189ff('0x375')]()+_0xf189ff('0x122b')+_0x14ac79[_0xf189ff('0x4d1')](),_0x1f43ca[_0xf189ff('0x1740')]=_0x22f221||_0x361c4a['params'][_0xf189ff('0x1740')]||{},_0x1f43ca[_0xf189ff('0x170e')]=_0x5e136d&&_0x5e136d[_0xf189ff('0x1a2f')]==0x1?_0x5e136d[_0xf189ff('0x6aa')][0x0]:null,_0x1f43ca['crudPermissions']=_0xf3ad5f['parseCrudPermissions'](_0x1f43ca[_0xf189ff('0x170e')]?_0x1f43ca[_0xf189ff('0x170e')][_0xf189ff('0x1dc1')]:null),_0x1f43ca[_0xf189ff('0xb0')]={},_0x1f43ca[_0xf189ff('0xd5f')]=_0x361c4a[_0xf189ff('0x197a')][_0xf189ff('0x1e66')]||0x0,_0x1f43ca[_0xf189ff('0x2118')]=_0x45bdf2,_0x1f43ca[_0xf189ff('0x5a4')]=_0x164cbc[_0xf189ff('0x2787')],_0x1f43ca['gotoChatWebsites']=_0x46ced2,_0x1f43ca[_0xf189ff('0x152d')]=_0x226768,_0xf3ad5f[_0xf189ff('0x1b4e')]('admin')?_0x446320[_0xf189ff('0xbb3')][_0xf189ff('0x1d97')]({'fields':'id,name','sort':_0xf189ff('0x10ad')})[_0xf189ff('0x1964')]['then'](function(_0x5ce220){const _0x183c36=_0xf189ff;_0x1f43ca[_0x183c36('0x9e8')]=_0x5ce220[_0x183c36('0x6aa')]||[];})[_0xf189ff('0x103c')](function(_0x383741){const _0x367b72=_0xf189ff;_0x164cbc['error']({'title':_0x383741[_0x367b72('0x276f')]?_0x367b72('0x137')+_0x383741['status']+'\x20-\x20'+_0x383741['statusText']:_0x367b72('0x1d5c'),'msg':_0x383741[_0x367b72('0x1e07')]?JSON['stringify'](_0x383741[_0x367b72('0x1e07')]):_0x383741[_0x367b72('0x1b75')]()});}):_0x446320['cmList']['get']({'fields':_0xf189ff('0xd52'),'sort':_0xf189ff('0x10ad')})['$promise'][_0xf189ff('0x173b')](function(_0x1204f1){_0x1f43ca['lists']=_0x1204f1['rows']||[];})['then'](function(){const _0x1484ef=_0xf189ff;return _0x446320['userProfileSection'][_0x1484ef('0x1d97')]({'userProfileId':_0x1f43ca[_0x1484ef('0x155f')]['userProfileId'],'sectionId':0x12d})['$promise'];})['then'](function(_0x3034f1){const _0x37f8d4=_0xf189ff,_0x34b00e=_0x3034f1&&_0x3034f1[_0x37f8d4('0x6aa')]?_0x3034f1['rows'][0x0]:null;if(!_0x34b00e){const _0x28a702=[];let _0x25e6f3=null;_0x1f43ca[_0x37f8d4('0x1740')]&&(_0x25e6f3=_0x3c8d8a()[_0x37f8d4('0x18ab')](_0x1f43ca[_0x37f8d4('0x9e8')],{'id':Number(_0x1f43ca[_0x37f8d4('0x1740')][_0x37f8d4('0xef2')])}));for(let _0x4510db=0x0;_0x4510db<_0x1f43ca[_0x37f8d4('0x9e8')][_0x37f8d4('0x543')];_0x4510db++){_0x25e6f3&&_0x1f43ca[_0x37f8d4('0x9e8')][_0x4510db]['id']===_0x25e6f3['id']&&(_0x1f43ca[_0x37f8d4('0x9e8')][_0x4510db][_0x37f8d4('0x268e')]=![],_0x28a702['push'](_0x1f43ca[_0x37f8d4('0x9e8')][_0x4510db]));}_0x1f43ca[_0x37f8d4('0x9e8')]=_0x28a702;}else{if(!_0x34b00e[_0x37f8d4('0x273e')])return _0x446320[_0x37f8d4('0xda9')][_0x37f8d4('0x1d97')]({'sectionId':_0x34b00e['id']})['$promise']['then'](function(_0xbdd442){const _0x30037c=_0x37f8d4,_0x34a014=_0x3c8d8a()[_0x30037c('0x8a2')](_0xbdd442[_0x30037c('0x6aa')],function(_0x40ad75){const _0x122562=_0x30037c;return _0x3c8d8a()[_0x122562('0x18ab')](_0x1f43ca[_0x122562('0x9e8')],{'id':_0x40ad75[_0x122562('0x1ce0')]});});let _0xebef18=null;_0x1f43ca[_0x30037c('0x1740')]&&(_0xebef18=_0x3c8d8a()[_0x30037c('0x18ab')](_0x1f43ca[_0x30037c('0x9e8')],{'id':Number(_0x1f43ca[_0x30037c('0x1740')][_0x30037c('0xef2')])}));if(_0xebef18&&!_0x3c8d8a()[_0x30037c('0x1ec')](_0x34a014,['id',_0xebef18['id']])){const _0x215fe0=_0x3c8d8a()['find'](_0x1f43ca[_0x30037c('0x9e8')],{'id':_0xebef18['id']});_0x215fe0[_0x30037c('0x268e')]=![],_0x34a014[_0x30037c('0x18bb')](_0x215fe0);}_0x1f43ca[_0x30037c('0x9e8')]=_0x34a014;});}})[_0xf189ff('0x103c')](function(_0xa35be9){const _0x461b3e=_0xf189ff;_0x164cbc[_0x461b3e('0x15aa')]({'title':_0xa35be9[_0x461b3e('0x276f')]?'API:'+_0xa35be9[_0x461b3e('0x276f')]+_0x461b3e('0x160c')+_0xa35be9[_0x461b3e('0x2696')]:_0x461b3e('0x1292'),'msg':_0xa35be9[_0x461b3e('0x1e07')]?JSON[_0x461b3e('0x100b')](_0xa35be9[_0x461b3e('0x1e07')]):_0xa35be9[_0x461b3e('0x1b75')]()});}),_0xf3ad5f['hasRole']('admin')?_0x446320[_0xf189ff('0x55a')][_0xf189ff('0x1d97')]({'fields':'id,name','sort':'name','IntervalId':_0xf189ff('0x877')})[_0xf189ff('0x1964')][_0xf189ff('0x173b')](function(_0xe2c1a4){const _0x4ca1f7=_0xf189ff;_0x1f43ca[_0x4ca1f7('0x55a')]=_0xe2c1a4['rows']||[];})[_0xf189ff('0x103c')](function(_0x28880e){const _0x77fe4b=_0xf189ff;_0x164cbc[_0x77fe4b('0x15aa')]({'title':_0x28880e[_0x77fe4b('0x276f')]?_0x77fe4b('0x137')+_0x28880e[_0x77fe4b('0x276f')]+_0x77fe4b('0x160c')+_0x28880e[_0x77fe4b('0x2696')]:_0x77fe4b('0x1f4b'),'msg':_0x28880e['data']?JSON[_0x77fe4b('0x100b')](_0x28880e[_0x77fe4b('0x1e07')]):_0x28880e['toString']()});}):_0x446320[_0xf189ff('0x55a')][_0xf189ff('0x1d97')]({'fields':'id,name','sort':_0xf189ff('0x10ad'),'IntervalId':_0xf189ff('0x877')})[_0xf189ff('0x1964')][_0xf189ff('0x173b')](function(_0x9d3868){const _0x267637=_0xf189ff;_0x1f43ca[_0x267637('0x55a')]=_0x9d3868['rows']||[];})[_0xf189ff('0x173b')](function(){const _0x49128d=_0xf189ff;return _0x446320['userProfileSection']['get']({'userProfileId':_0x1f43ca[_0x49128d('0x155f')]['userProfileId'],'sectionId':0x3ec})[_0x49128d('0x1964')];})[_0xf189ff('0x173b')](function(_0x9421ec){const _0x3840f7=_0xf189ff,_0x540477=_0x9421ec&&_0x9421ec[_0x3840f7('0x6aa')]?_0x9421ec[_0x3840f7('0x6aa')][0x0]:null;if(!_0x540477){const _0x45748a=[];let _0x15e6d0=null;_0x1f43ca['chatWebsite']&&(_0x15e6d0=_0x3c8d8a()[_0x3840f7('0x18ab')](_0x1f43ca[_0x3840f7('0x55a')],{'id':Number(_0x1f43ca[_0x3840f7('0x1740')]['IntervalId'])}));for(let _0x6e09fa=0x0;_0x6e09fa<_0x1f43ca['interval'][_0x3840f7('0x543')];_0x6e09fa++){_0x15e6d0&&_0x1f43ca['interval'][_0x6e09fa]['id']===_0x15e6d0['id']&&(_0x1f43ca['interval'][_0x6e09fa][_0x3840f7('0x268e')]=![],_0x45748a[_0x3840f7('0x18bb')](_0x1f43ca[_0x3840f7('0x55a')][_0x6e09fa]));}_0x1f43ca[_0x3840f7('0x55a')]=_0x45748a;}else{if(!_0x540477[_0x3840f7('0x273e')])return _0x446320['userProfileResource'][_0x3840f7('0x1d97')]({'sectionId':_0x540477['id']})['$promise']['then'](function(_0x277471){const _0x406042=_0x3840f7,_0x4744fa=_0x3c8d8a()['map'](_0x277471[_0x406042('0x6aa')],function(_0xc84e19){const _0x3e0e60=_0x406042;return _0x3c8d8a()[_0x3e0e60('0x18ab')](_0x1f43ca[_0x3e0e60('0x55a')],{'id':_0xc84e19[_0x3e0e60('0x1ce0')]});});let _0x14c502=null;_0x1f43ca[_0x406042('0x1740')]&&(_0x14c502=_0x3c8d8a()[_0x406042('0x18ab')](_0x1f43ca[_0x406042('0x55a')],{'id':Number(_0x1f43ca[_0x406042('0x1740')][_0x406042('0x600')])}));if(_0x14c502&&!_0x3c8d8a()[_0x406042('0x1ec')](_0x4744fa,['id',_0x14c502['id']])){const _0x18ac3b=_0x3c8d8a()[_0x406042('0x18ab')](_0x1f43ca[_0x406042('0x55a')],{'id':_0x14c502['id']});_0x18ac3b[_0x406042('0x268e')]=![],_0x4744fa[_0x406042('0x18bb')](_0x18ac3b);}_0x1f43ca[_0x406042('0x55a')]=_0x4744fa;});}})[_0xf189ff('0x103c')](function(_0x1c8050){const _0x9962c7=_0xf189ff;_0x164cbc[_0x9962c7('0x15aa')]({'title':_0x1c8050[_0x9962c7('0x276f')]?_0x9962c7('0x137')+_0x1c8050[_0x9962c7('0x276f')]+_0x9962c7('0x160c')+_0x1c8050[_0x9962c7('0x2696')]:_0x9962c7('0x2419'),'msg':_0x1c8050['data']?JSON[_0x9962c7('0x100b')](_0x1c8050[_0x9962c7('0x1e07')]):_0x1c8050[_0x9962c7('0x1b75')]()});}),_0xf3ad5f['hasRole'](_0xf189ff('0x79b'))?_0x446320[_0xf189ff('0x1751')][_0xf189ff('0x1d97')]({'fields':_0xf189ff('0x901'),'sort':'name','nolimit':_0xf189ff('0x799')})[_0xf189ff('0x1964')][_0xf189ff('0x173b')](function(_0x230549){const _0x53a7fd=_0xf189ff;_0x1f43ca[_0x53a7fd('0x1d66')]=_0x230549[_0x53a7fd('0x6aa')]||[];})['catch'](function(_0x5ca6fe){const _0x509671=_0xf189ff;_0x164cbc[_0x509671('0x15aa')]({'title':_0x5ca6fe[_0x509671('0x276f')]?_0x509671('0x137')+_0x5ca6fe[_0x509671('0x276f')]+'\x20-\x20'+_0x5ca6fe[_0x509671('0x2696')]:_0x509671('0xe0f'),'msg':_0x5ca6fe[_0x509671('0x1e07')]?JSON[_0x509671('0x100b')](_0x5ca6fe[_0x509671('0x1e07')]):_0x5ca6fe[_0x509671('0x1b75')]()});}):_0x446320[_0xf189ff('0x1751')][_0xf189ff('0x1d97')]({'fields':_0xf189ff('0x901'),'sort':_0xf189ff('0x10ad'),'nolimit':'true'})[_0xf189ff('0x1964')][_0xf189ff('0x173b')](function(_0x1772e5){const _0x295e38=_0xf189ff;_0x1f43ca[_0x295e38('0x1d66')]=_0x1772e5[_0x295e38('0x6aa')]||[];})[_0xf189ff('0x173b')](function(){const _0x3c8228=_0xf189ff;return _0x446320[_0x3c8228('0x170e')]['get']({'userProfileId':_0x1f43ca[_0x3c8228('0x155f')][_0x3c8228('0x1946')],'sectionId':0x3ed})[_0x3c8228('0x1964')];})[_0xf189ff('0x173b')](function(_0x5b1c2b){const _0xc8b2f1=_0xf189ff,_0x11e52b=_0x5b1c2b&&_0x5b1c2b[_0xc8b2f1('0x6aa')]?_0x5b1c2b[_0xc8b2f1('0x6aa')][0x0]:null;if(!_0x11e52b)_0x1f43ca['pauses']=[];else{if(!_0x11e52b[_0xc8b2f1('0x273e')])return _0x446320['userProfileResource'][_0xc8b2f1('0x1d97')]({'sectionId':_0x11e52b['id']})[_0xc8b2f1('0x1964')][_0xc8b2f1('0x173b')](function(_0x53ac79){const _0x31d541=_0xc8b2f1,_0x24b98a=_0x3c8d8a()[_0x31d541('0x8a2')](_0x53ac79[_0x31d541('0x6aa')],function(_0x2dd265){const _0x364e91=_0x31d541;return _0x3c8d8a()[_0x364e91('0x18ab')](_0x1f43ca[_0x364e91('0x1d66')],{'id':_0x2dd265[_0x364e91('0x1ce0')]});});_0x1f43ca['pauses'][_0x31d541('0xa6a')](function(_0x32336c){const _0x201d59=_0x31d541;!_0x3c8d8a()[_0x201d59('0x1ec')](_0x24b98a,['id',_0x32336c['id']])&&(_0x32336c[_0x201d59('0x268e')]=![]),_0x24b98a[_0x201d59('0x18bb')](_0x32336c);}),_0x1f43ca[_0x31d541('0x1d66')]=_0x24b98a;});}})[_0xf189ff('0x103c')](function(_0x3b0a06){const _0x3d11ef=_0xf189ff;_0x164cbc[_0x3d11ef('0x15aa')]({'title':_0x3b0a06[_0x3d11ef('0x276f')]?_0x3d11ef('0x137')+_0x3b0a06['status']+_0x3d11ef('0x160c')+_0x3b0a06[_0x3d11ef('0x2696')]:_0x3d11ef('0x2595'),'msg':_0x3b0a06[_0x3d11ef('0x1e07')]?JSON[_0x3d11ef('0x100b')](_0x3b0a06['data']):_0x3b0a06[_0x3d11ef('0x1b75')]()});});function _0x45bdf2(_0xf4cb9e,_0x2eb025){const _0x5c83ca=_0xf189ff;_0x7e564[_0x5c83ca('0x1cb7')]({'controller':_0x5c83ca('0x274d'),'controllerAs':'vm','templateUrl':_0x5ea18f,'parent':angular['element'](_0x57c172[_0x5c83ca('0x1a5')]),'targetEvent':_0x2eb025,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0xf4cb9e,'chatWebsites':_0x1f43ca['chatWebsites']?_0x1f43ca['chatWebsites'][_0x5c83ca('0x6aa')]:[],'crudPermissions':_0x1f43ca['crudPermissions'],'realtime':![]}});}function _0x46ced2(){const _0x45b952=_0xf189ff;_0x361c4a['go'](_0x45b952('0x2848'),{},{'reload':'app.chat.chatWebsites'});}function _0x226768(){const _0x1bc5fa=_0xf189ff;_0x446320[_0x1bc5fa('0x1740')][_0x1bc5fa('0x1842')]({'id':_0x1f43ca[_0x1bc5fa('0x1740')]['id']},_0x1f43ca[_0x1bc5fa('0x1740')])[_0x1bc5fa('0x1964')][_0x1bc5fa('0x173b')](function(){const _0x5b7a88=_0x1bc5fa;_0x164cbc[_0x5b7a88('0xdfe')]({'title':_0x5b7a88('0x1be2'),'msg':_0x1f43ca[_0x5b7a88('0x1740')][_0x5b7a88('0x10ad')]?_0x1f43ca[_0x5b7a88('0x1740')][_0x5b7a88('0x10ad')]+_0x5b7a88('0x1fd6'):''});})[_0x1bc5fa('0x103c')](function(_0x900891){const _0x14f4aa=_0x1bc5fa;_0x164cbc['error']({'title':_0x900891[_0x14f4aa('0x276f')]?'API:'+_0x900891[_0x14f4aa('0x276f')]+'\x20-\x20'+_0x900891['statusText']:_0x14f4aa('0x61e'),'msg':_0x900891[_0x14f4aa('0x1e07')]?JSON['stringify'](_0x900891['data']):_0x900891[_0x14f4aa('0x1b75')]()});});}}const _0x4ce2a5=_0x7cc238;_0x23d48f[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x23d48f(_0x528492,_0x14596c){const _0x1cf037=_0x566993;_0x528492[_0x1cf037('0x1a49')](_0x1cf037('0xec9'),{'abstract':!![],'url':_0x1cf037('0x1b3b')})[_0x1cf037('0x1a49')]('app.chat.chatQueues',{'url':_0x1cf037('0xc57'),'views':{'content@app':{'templateUrl':_0xe825ee,'controller':_0x1cf037('0xc8')}},'resolve':{'chatQueues':[_0x1cf037('0x2401'),'Auth',function(_0x2bba45,_0x2fa9bc){const _0x3d4762=_0x1cf037;return _0x2fa9bc[_0x3d4762('0x1b4e')](_0x3d4762('0x79b'))?_0x2bba45[_0x3d4762('0x155b')](_0x3d4762('0x1971'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x3d4762('0x1769'),'channel':_0x3d4762('0x8c5'),'limit':0xa,'offset':0x0}):_0x2bba45[_0x3d4762('0x155b')](_0x3d4762('0x14b3'),{'id':_0x2fa9bc[_0x3d4762('0x14d4')]()['userProfileId'],'section':_0x3d4762('0x80a'),'fields':_0x3d4762('0xab9'),'sort':'-updatedAt','channel':_0x3d4762('0x8c5'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x1cf037('0x1600'),function(_0x362767,_0x551967){const _0x2aab36=_0x1cf037;return _0x551967[_0x2aab36('0x1b4e')](_0x2aab36('0x79b'))?null:_0x362767['resolve'](_0x2aab36('0x1f20'),{'fields':_0x2aab36('0x19dd'),'id':_0x551967[_0x2aab36('0x14d4')]()[_0x2aab36('0x1946')]});}],'userProfileSection':[_0x1cf037('0x2401'),'Auth',function(_0x53fe85,_0x2d6f34){const _0x1fcf8b=_0x1cf037;return _0x2d6f34[_0x1fcf8b('0x1b4e')](_0x1fcf8b('0x79b'))?null:_0x53fe85['resolve'](_0x1fcf8b('0x40'),{'fields':_0x1fcf8b('0x1348'),'userProfileId':_0x2d6f34['getCurrentUser']()[_0x1fcf8b('0x1946')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x1cf037('0x8c5')})[_0x1cf037('0x1a49')]('app.chat.chatQueues.edit',{'url':'/:id?tab','params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5858c8,'controller':_0x1cf037('0xd46')}},'resolve':{'chatQueue':[_0x1cf037('0x2401'),_0x1cf037('0x1caf'),function(_0x433f72,_0x35d14d){const _0x57abb7=_0x1cf037;return _0x433f72['resolve'](_0x57abb7('0x1971'),{'fields':_0x57abb7('0xab9'),'id':_0x35d14d['id']});}],'userProfileSection':['apiResolver',_0x1cf037('0x1600'),function(_0x41fcb9,_0x1ae0df){const _0x4f4d34=_0x1cf037;return _0x41fcb9[_0x4f4d34('0x155b')](_0x4f4d34('0x40'),{'fields':_0x4f4d34('0x1348'),'userProfileId':_0x1ae0df[_0x4f4d34('0x14d4')]()[_0x4f4d34('0x1946')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x1cf037('0x8c5')})[_0x1cf037('0x1a49')](_0x1cf037('0x2848'),{'url':_0x1cf037('0x1c95'),'views':{'content@app':{'templateUrl':_0x55e82a,'controller':_0x1cf037('0x17b7')}},'resolve':{'chatWebsites':['apiResolver',_0x1cf037('0x1600'),function(_0x277312,_0x218bf3){const _0x395421=_0x1cf037;return _0x218bf3[_0x395421('0x1b4e')](_0x395421('0x79b'))?_0x277312[_0x395421('0x155b')](_0x395421('0x2600'),{'fields':_0x395421('0x25ee'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x277312['resolve']('userProfile@getResources',{'id':_0x218bf3[_0x395421('0x14d4')]()['userProfileId'],'section':_0x395421('0x27'),'fields':_0x395421('0x25ee'),'sort':_0x395421('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1cf037('0x2401'),'Auth',function(_0x4ef891,_0x2b5cfc){const _0x24e8a8=_0x1cf037;return _0x2b5cfc[_0x24e8a8('0x1b4e')](_0x24e8a8('0x79b'))?null:_0x4ef891['resolve'](_0x24e8a8('0x1f20'),{'fields':_0x24e8a8('0x19dd'),'id':_0x2b5cfc['getCurrentUser']()[_0x24e8a8('0x1946')]});}],'userProfileSection':['apiResolver','Auth',function(_0x3861f7,_0x43a369){const _0x143c26=_0x1cf037;return _0x43a369[_0x143c26('0x1b4e')](_0x143c26('0x79b'))?null:_0x3861f7[_0x143c26('0x155b')](_0x143c26('0x40'),{'fields':_0x143c26('0x1348'),'userProfileId':_0x43a369['getCurrentUser']()[_0x143c26('0x1946')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x1cf037('0x8c5')})[_0x1cf037('0x1a49')](_0x1cf037('0x1efd'),{'url':_0x1cf037('0xb4c'),'params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xe5f784,'controller':_0x1cf037('0x16ef')}},'resolve':{'chatWebsite':[_0x1cf037('0x2401'),_0x1cf037('0x1caf'),function(_0x556c7e,_0x43be3a){const _0x53154a=_0x1cf037;return _0x556c7e[_0x53154a('0x155b')](_0x53154a('0x2600'),{'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','id':_0x43be3a['id']});}],'userProfileSection':[_0x1cf037('0x2401'),_0x1cf037('0x1600'),function(_0x5bf233,_0x5416b3){const _0xea21ff=_0x1cf037;return _0x5bf233[_0xea21ff('0x155b')]('userProfileSection@get',{'fields':_0xea21ff('0x1348'),'userProfileId':_0x5416b3[_0xea21ff('0x14d4')]()['userProfileId'],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x1cf037('0x8c5')}),_0x14596c[_0x1cf037('0x1b1a')](_0x1cf037('0x1f32'));}angular[_0x566993('0x22c4')]('app.chat',['ngCsv',_0x566993('0x1dd5'),_0x566993('0x1663'),'flow',_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),_0x566993('0x8a3'),'mdPickers',_0x566993('0x1698'),'mwFormViewer',_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392'),'app.chat.realtime'])[_0x566993('0xea9')](_0x23d48f)['controller'](_0x566993('0xbb'),_0x27fad1)[_0x566993('0x1e65')](_0x566993('0x4a8'),_0xad2850)[_0x566993('0x1e65')](_0x566993('0x6d6'),_0x4ea746)['controller'](_0x566993('0x1973'),_0x44ba7b)[_0x566993('0x1e65')](_0x566993('0x7ea'),_0x4c63b5)['controller'](_0x566993('0x13f2'),_0x4ab1c4)[_0x566993('0x1e65')](_0x566993('0xad3'),_0x4ac4fa)[_0x566993('0x1e65')]('ChatWebsiteActionsController',_0x1bd408)['controller'](_0x566993('0x274d'),_0x277a9c)[_0x566993('0x1e65')](_0x566993('0x20e7'),_0x50339e)[_0x566993('0x1e65')](_0x566993('0x133c'),_0x192363)['controller'](_0x566993('0x1b2d'),_0x558cbb)[_0x566993('0x1e65')](_0x566993('0x1b2d'),_0x558cbb)[_0x566993('0x1e65')]('EditChatWebsiteAppautoreplyDialogController',_0x3e8c8d)[_0x566993('0x1e65')]('EditChatWebsiteAppcloseDialogController',_0x365813)[_0x566993('0x1e65')](_0x566993('0x1d1'),_0x50caa1)[_0x566993('0x1e65')](_0x566993('0x253f'),_0x1e8552)[_0x566993('0x1e65')](_0x566993('0x26e4'),_0x475a01)[_0x566993('0x1e65')]('EditChatWebsiteAppintervalDialogController',_0x4283ff)[_0x566993('0x1e65')]('EditChatWebsiteAppnoopDialogController',_0x46b6ea)[_0x566993('0x1e65')]('EditChatWebsiteAppqueueDialogController',_0x1d80a1)['controller'](_0x566993('0x16ce'),_0x2107d1)[_0x566993('0x1e65')](_0x566993('0x1281'),_0x21d42e)[_0x566993('0x1e65')](_0x566993('0x18ca'),_0x151ddd)[_0x566993('0x1e65')](_0x566993('0x8a9'),_0x4e878f)[_0x566993('0x1e65')](_0x566993('0xc23'),_0x16d321)[_0x566993('0x1e65')](_0x566993('0x2819'),_0xc66a4b)[_0x566993('0x1e65')](_0x566993('0x26dc'),_0x31d6e8)[_0x566993('0x1e65')](_0x566993('0x1f4e'),_0x42e78a)['controller'](_0x566993('0x112a'),_0x5c8b14)[_0x566993('0x1e65')]('ChatWebsitelogoController',_0x465633)['controller'](_0x566993('0x2758'),_0x4a53f3)['controller'](_0x566993('0x481'),_0xce414e)[_0x566993('0x1e65')](_0x566993('0xf0f'),_0x311617)[_0x566993('0x1e65')]('CreateOrEditChatProactiveActionDialogController',_0x3b67b8)[_0x566993('0x1e65')]('ChatWebsiteScriptController',_0x2941d7)[_0x566993('0x1e65')](_0x566993('0x10c'),_0x4d390b)[_0x566993('0x1e65')](_0x566993('0x13c4'),_0x4ce2a5);const _0x46a804=_0x21a6a1['p']+'src/js/modules/main/apps/mail/views/realtime/realtime.html/realtime.html',_0x4217eb=_0x21a6a1['p']+_0x566993('0x298'),_0x278d6a=_0x21a6a1['p']+_0x566993('0x179f'),_0x1725ac=_0x21a6a1['p']+_0x566993('0xb30');_0x4e7f26['$inject']=[_0x566993('0x66f'),'$q',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1537'),_0x566993('0x1d66'),'agents',_0x566993('0x61d'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1558'),'helperClasses',_0x566993('0x257b'),_0x566993('0x170e'),'Auth',_0x566993('0x1a29'),_0x566993('0x1b13')];function _0x4e7f26(_0x3008ac,_0x2a4fdb,_0x47156e,_0x5ee963,_0xf25213,_0x2bd074,_0x1eb668,_0x39d10b,_0x530862,_0x35f936,_0x38e582,_0x45307f,_0x58d203,_0x1f61a0,_0x5c5cd5,_0x203af0,_0x28d732,_0x4af6f0){const _0xb7577f=_0x566993,_0x516965=this,_0x646d65=[_0xb7577f('0x1def'),'online',_0xb7577f('0x13f3'),'lastPauseAt','pauseType','lastPauseAt',_0xb7577f('0x138c'),_0xb7577f('0x1e8'),'chatPause',_0xb7577f('0x106'),_0xb7577f('0xf41'),'smsPause',_0xb7577f('0x852'),_0xb7577f('0x13eb'),'voicePause',_0xb7577f('0x266d'),_0xb7577f('0xa4'),_0xb7577f('0xcc8'),_0xb7577f('0x784'),_0xb7577f('0x1502'),_0xb7577f('0x2761'),_0xb7577f('0x1791'),'openchannelCurrentCapacity',_0xb7577f('0x1d75'),_0xb7577f('0x1ade'),_0xb7577f('0x1932'),_0xb7577f('0x114b'),_0xb7577f('0x10ee'),_0xb7577f('0x1eba'),_0xb7577f('0x1120'),_0xb7577f('0x18e9'),_0xb7577f('0x14be'),'faxStatus',_0xb7577f('0x1b47'),_0xb7577f('0x2816'),_0xb7577f('0x205'),_0xb7577f('0x22a'),_0xb7577f('0x2176'),_0xb7577f('0x15b6'),'faxStatusTime',_0xb7577f('0x1c89'),_0xb7577f('0x172'),_0xb7577f('0x146b'),_0xb7577f('0x1fcd'),_0xb7577f('0x23ee'),_0xb7577f('0x1386')],_0x32ead0=[_0xb7577f('0x988'),'openchannelPause',_0xb7577f('0xf41'),_0xb7577f('0x2ea'),_0xb7577f('0x852'),'faxPause','voicePause','online'];_0x516965[_0xb7577f('0x155f')]=_0x203af0['getCurrentUser'](),_0x516965['availableStates']=[_0xb7577f('0x263b'),_0xb7577f('0x1d20'),_0xb7577f('0xe2b'),'onhold',_0xb7577f('0x273')],_0x516965['pauses']=_0x1eb668||{'count':0x0,'rows':[]},_0x516965[_0xb7577f('0x1a29')]=_0x28d732,_0x516965['userProfile']=_0x1f61a0,_0x516965[_0xb7577f('0x170e')]=_0x5c5cd5&&_0x5c5cd5[_0xb7577f('0x1a2f')]==0x1?_0x5c5cd5[_0xb7577f('0x6aa')][0x0]:null,_0x516965[_0xb7577f('0x1dc1')]=_0x203af0[_0xb7577f('0xde6')](_0x516965[_0xb7577f('0x170e')]?_0x516965[_0xb7577f('0x170e')]['crudPermissions']:null),_0x516965[_0xb7577f('0x11fa')]=_0x39d10b?_0x3c8d8a()['keyBy'](_0x39d10b[_0xb7577f('0x6aa')]?_0x39d10b[_0xb7577f('0x6aa')]:[],'id'):{},_0x516965[_0xb7577f('0x61d')]=_0x530862?_0x3c8d8a()['keyBy'](_0x530862[_0xb7577f('0x6aa')]?_0x530862['rows']:[],'id'):{},_0x516965[_0xb7577f('0x2cb')]={},_0x516965[_0xb7577f('0xda0')]=![],_0x516965['order']=[],_0x516965[_0xb7577f('0xa53')]={};for(const _0x15463b in _0x516965[_0xb7577f('0x11fa')]){typeof _0x516965[_0xb7577f('0x11fa')][_0x15463b]!=='undefined'&&(_0x516965['agents'][_0x15463b][_0xb7577f('0xb9c')]=!![]);}_0x516965[_0xb7577f('0xc49')]={'limit':0xa,'page':0x1,'order':_0xb7577f('0x572'),'globalStatusFilter':'','pauseTypeFilter':''},_0x516965[_0xb7577f('0x1037')]=_0x57ba5c,_0x516965[_0xb7577f('0x1b81')]=_0x4b693b,_0x516965[_0xb7577f('0x1751')]=_0x131cc4,_0x516965[_0xb7577f('0x705')]=_0x583d8a,_0x516965['showInfo']=_0x1f5838,_0x516965['getAgentStatus']=_0x5e5c8a,_0x516965[_0xb7577f('0xc8c')]=_0x49e04c,_0x516965[_0xb7577f('0x1263')]=_0xf4b60,_0x516965[_0xb7577f('0xe1')]=_0x147fab,_0x516965[_0xb7577f('0x83e')]=_0x2b3f90,_0x516965[_0xb7577f('0x689')]=_0x4bdb77,_0x516965[_0xb7577f('0x2805')]=_0x2e0fca,_0x516965[_0xb7577f('0x2535')]=_0x2c65f3,_0x516965[_0xb7577f('0xc04')]=_0x475c97,_0x516965[_0xb7577f('0xa6f')]=_0x385d62,_0x516965[_0xb7577f('0x195a')]=_0x4b5a88,_0x38e582['on'](_0xb7577f('0x1f4c'),_0x516965[_0xb7577f('0x689')]),_0x38e582['on']('user:update',_0x516965[_0xb7577f('0x2805')]),_0x38e582['on'](_0xb7577f('0x1bd5'),_0x516965[_0xb7577f('0xc04')]),_0x38e582['on'](_0xb7577f('0xa73'),_0x516965[_0xb7577f('0xa6f')]),_0x2c65f3();let _0x225493=_0x4af6f0(function(){const _0x4c37da=_0xb7577f;_0x516965[_0x4c37da('0xda0')]&&(_0x516965[_0x4c37da('0xda0')]=![],_0x2c65f3());},0x3e7);function _0x2c65f3(){const _0x357a80=_0xb7577f;_0x516965[_0x357a80('0xda0')]=![];const _0x2c7d79=_0x2a4fdb[_0x357a80('0x112e')]();_0x516965['promise']=_0x2c7d79[_0x357a80('0x2219')],_0x516965[_0x357a80('0x3b')]=[],_0x516965[_0x357a80('0x144a')]=[],_0x3c8d8a()['forIn'](_0x516965[_0x357a80('0x11fa')],function(_0x2890c4,_0x5d11c5){const _0x290606=_0x357a80;_0x516965[_0x290606('0x61d')][_0x5d11c5]&&_0x3c8d8a()[_0x290606('0x9ef')](_0x2890c4,_0x3c8d8a()[_0x290606('0x2114')](_0x3c8d8a()[_0x290606('0x2797')](_0x516965['rpcAgents'][_0x5d11c5],_0x32ead0),_0x646d65)),_0x49e04c(_0x2890c4),_0x2890c4[_0x290606('0xc7a')]?(_0x516965['filteredAgents'][_0x290606('0x18bb')](_0x2890c4),_0x516965[_0x290606('0xa53')][_0x2890c4['internal']]=_0x5d11c5):_0x2890c4['globalStatusTime']=_0x3c8d8a()[_0x290606('0x1acd')](_0x156524()()['format']('x'));});_0x516965[_0x357a80('0xc49')]['globalStatusFilter']&&_0x3c8d8a()['remove'](_0x516965[_0x357a80('0x3b')],function(_0x4a5498){const _0x41677c=_0x357a80;return _0x4a5498[_0x41677c('0xd7e')]!==_0x516965[_0x41677c('0xc49')][_0x41677c('0x1f52')];});_0x516965[_0x357a80('0xc49')]['pauseTypeFilter']&&_0x3c8d8a()[_0x357a80('0x1a8b')](_0x516965[_0x357a80('0x3b')],function(_0x4dcf9b){return _0x4dcf9b['pauseType']!==_0x516965['query']['pauseTypeFilter'];});_0x516965[_0x357a80('0xc49')][_0x357a80('0x278d')]&&_0x3c8d8a()[_0x357a80('0x1a8b')](_0x516965[_0x357a80('0x3b')],function(_0x34836c){const _0x119321=_0x357a80;return _0x34836c['fullname'][_0x119321('0x1e68')]()[_0x119321('0x2087')](_0x516965[_0x119321('0xc49')][_0x119321('0x278d')]['toLowerCase']())<0x0;});_0x516965[_0x357a80('0x3b')]=_0x48332a(_0x516965[_0x357a80('0x3b')]);const _0x1f0ed6=(_0x516965['query']['page']-0x1)*_0x516965[_0x357a80('0xc49')][_0x357a80('0x3e')];_0x516965[_0x357a80('0x2cb')]=_0x3c8d8a()[_0x357a80('0xf69')](_0x516965[_0x357a80('0x3b')],_0x1f0ed6)[_0x357a80('0x2456')](0x0,_0x516965[_0x357a80('0xc49')][_0x357a80('0x3e')]);for(let _0x49f80e=0x0;_0x49f80e<_0x516965[_0x357a80('0x2cb')]['length'];_0x49f80e+=0x1){_0x516965[_0x357a80('0x144a')][_0x357a80('0x18bb')](_0x516965[_0x357a80('0x2cb')][_0x49f80e]['id']);}_0x2c7d79[_0x357a80('0x155b')](),_0x516965[_0x357a80('0xda0')]=!![];}function _0x4bdb77(_0x19db06){const _0x49e5a9=_0xb7577f;_0x516965[_0x49e5a9('0x11fa')][_0x19db06['id']]&&(_0x3c8d8a()[_0x49e5a9('0x9ef')](_0x516965[_0x49e5a9('0x11fa')][_0x19db06['id']],_0x3c8d8a()['pick'](_0x3c8d8a()['omit'](_0x19db06,_0x32ead0),_0x646d65)),_0x3c8d8a()[_0x49e5a9('0x9ef')](_0x516965[_0x49e5a9('0x61d')][_0x19db06['id']],_0x3c8d8a()['pick'](_0x3c8d8a()[_0x49e5a9('0x2797')](_0x19db06,_0x32ead0),_0x646d65)),_0x49e04c(_0x516965['agents'][_0x19db06['id']]));}function _0x2e0fca(_0x5b86ca){const _0x3336fe=_0xb7577f;_0x516965[_0x3336fe('0x11fa')][_0x5b86ca['id']]&&(_0x3c8d8a()['merge'](_0x516965[_0x3336fe('0x11fa')][_0x5b86ca['id']],_0x3c8d8a()['pick'](_0x5b86ca,_0x646d65)),_0x3c8d8a()[_0x3336fe('0x9ef')](_0x516965[_0x3336fe('0x61d')][_0x5b86ca['id']],_0x3c8d8a()[_0x3336fe('0x2114')](_0x5b86ca,_0x646d65)),_0x5b86ca['lastPauseAt']&&(_0x516965[_0x3336fe('0x11fa')][_0x5b86ca['id']][_0x3336fe('0x1cd8')]=_0x5b86ca['lastPauseAt'],_0x516965[_0x3336fe('0x61d')][_0x5b86ca['id']]['globalStatusTime']=_0x5b86ca[_0x3336fe('0x20a0')]),_0x49e04c(_0x516965[_0x3336fe('0x11fa')][_0x5b86ca['id']]));}function _0x475c97(_0x141a13){const _0x4cb429=_0xb7577f;_0x516965[_0x4cb429('0x11fa')][_0x516965['agentInternal'][_0x141a13['destaccountcode']]]&&(_0x3c8d8a()[_0x4cb429('0x9ef')](_0x516965['agents'][_0x516965[_0x4cb429('0xa53')][_0x141a13[_0x4cb429('0x203b')]]],_0x3c8d8a()[_0x4cb429('0x2114')](_0x141a13,[_0x4cb429('0x172'),_0x4cb429('0x146b')])),_0x3c8d8a()[_0x4cb429('0x9ef')](_0x516965[_0x4cb429('0x61d')][_0x516965[_0x4cb429('0xa53')][_0x141a13['destaccountcode']]],_0x3c8d8a()[_0x4cb429('0x2114')](_0x141a13,[_0x4cb429('0x172'),_0x4cb429('0x146b')])));}function _0x385d62(_0x44d4bd){const _0x5dde6c=_0xb7577f;_0x516965[_0x5dde6c('0x11fa')][_0x516965[_0x5dde6c('0xa53')][_0x44d4bd['destaccountcode']]]&&(_0x516965[_0x5dde6c('0x11fa')][_0x516965[_0x5dde6c('0xa53')][_0x44d4bd['destaccountcode']]]=_0x3c8d8a()[_0x5dde6c('0x2797')](_0x516965[_0x5dde6c('0x11fa')][_0x516965['agentInternal'][_0x44d4bd[_0x5dde6c('0x203b')]]],[_0x5dde6c('0x172'),_0x5dde6c('0x146b')]),_0x516965[_0x5dde6c('0x61d')][_0x516965[_0x5dde6c('0xa53')][_0x44d4bd[_0x5dde6c('0x203b')]]]=_0x3c8d8a()[_0x5dde6c('0x2797')](_0x516965[_0x5dde6c('0x61d')][_0x516965[_0x5dde6c('0xa53')][_0x44d4bd[_0x5dde6c('0x203b')]]],[_0x5dde6c('0x172'),_0x5dde6c('0x146b')]));}function _0x57ba5c(_0x3fd3be){const _0x515f03=_0xb7577f;return _0x35f936[_0x515f03('0x166f')][_0x515f03('0x1037')]({'id':_0x3fd3be['id'],'device':_0x515f03('0x12a7'),'agent_id':_0x3fd3be['id'],'agent_name':_0x3fd3be[_0x515f03('0x10ad')]})[_0x515f03('0x1964')][_0x515f03('0x173b')](function(){const _0x55504a=_0x515f03;_0x45307f[_0x55504a('0xdfe')]({'title':_0x55504a('0x27c6'),'msg':_0x3fd3be[_0x55504a('0x572')]+_0x55504a('0x2189')}),_0x516965['agents'][_0x3fd3be['id']]&&(_0x516965['agents'][_0x3fd3be['id']][_0x55504a('0xc7a')]=![]),_0x516965['rpcAgents'][_0x3fd3be['id']]&&(_0x516965[_0x55504a('0x61d')][_0x3fd3be['id']][_0x55504a('0xc7a')]=![]),_0x2c65f3();})[_0x515f03('0x103c')](function(_0x56e140){const _0x2e7e33=_0x515f03;_0x45307f[_0x2e7e33('0x15aa')]({'title':_0x56e140[_0x2e7e33('0x276f')]?_0x2e7e33('0x137')+_0x56e140[_0x2e7e33('0x276f')]+_0x2e7e33('0x160c')+_0x56e140[_0x2e7e33('0x2696')]:_0x2e7e33('0x1e36'),'msg':_0x56e140['data']?JSON[_0x2e7e33('0x100b')](_0x56e140[_0x2e7e33('0x1e07')][_0x2e7e33('0x67f')]):_0x56e140[_0x2e7e33('0x1b75')]()});});}function _0x131cc4(_0x3a7b3c,_0x49eafb){const _0x2dd8a3=_0xb7577f;return _0x35f936[_0x2dd8a3('0x166f')]['pause']({'id':_0x3a7b3c['id'],'type':_0x49eafb})[_0x2dd8a3('0x1964')][_0x2dd8a3('0x173b')](function(_0x1b59d9){const _0x3d62e0=_0x2dd8a3;_0x516965['agents'][_0x3a7b3c['id']]&&_0x3c8d8a()[_0x3d62e0('0x9ef')](_0x516965[_0x3d62e0('0x11fa')][_0x3a7b3c['id']],_0x3c8d8a()[_0x3d62e0('0x2114')](_0x1b59d9,_0x646d65)),_0x516965[_0x3d62e0('0x61d')][_0x3a7b3c['id']]&&_0x3c8d8a()[_0x3d62e0('0x9ef')](_0x516965[_0x3d62e0('0x61d')][_0x3a7b3c['id']],_0x3c8d8a()[_0x3d62e0('0x2114')](_0x1b59d9,_0x646d65)),_0x49e04c(_0x516965[_0x3d62e0('0x11fa')][_0x3a7b3c['id']]);})[_0x2dd8a3('0x103c')](function(_0xea0550){const _0x5a0509=_0x2dd8a3;_0x45307f[_0x5a0509('0x15aa')]({'title':_0xea0550[_0x5a0509('0x276f')]?'API:'+_0xea0550[_0x5a0509('0x276f')]+_0x5a0509('0x160c')+_0xea0550['statusText']:_0x5a0509('0x1e36'),'msg':_0xea0550[_0x5a0509('0x1e07')]?JSON[_0x5a0509('0x100b')](_0xea0550[_0x5a0509('0x1e07')]['message']):_0xea0550[_0x5a0509('0x1b75')]()});});}function _0x583d8a(_0x510cc7){const _0xbcc4f7=_0xb7577f;return _0x35f936[_0xbcc4f7('0x166f')][_0xbcc4f7('0x9da')]({'id':_0x510cc7['id']})[_0xbcc4f7('0x1964')][_0xbcc4f7('0x173b')](function(_0x537d8d){const _0x221cd9=_0xbcc4f7;_0x516965[_0x221cd9('0x11fa')][_0x510cc7['id']]&&_0x3c8d8a()[_0x221cd9('0x9ef')](_0x516965[_0x221cd9('0x11fa')][_0x510cc7['id']],_0x3c8d8a()[_0x221cd9('0x2114')](_0x537d8d,_0x646d65)),_0x516965[_0x221cd9('0x61d')][_0x510cc7['id']]&&_0x3c8d8a()['merge'](_0x516965[_0x221cd9('0x61d')][_0x510cc7['id']],_0x3c8d8a()['pick'](_0x537d8d,_0x646d65)),_0x49e04c(_0x516965[_0x221cd9('0x11fa')][_0x510cc7['id']]);})[_0xbcc4f7('0x103c')](function(_0x154257){const _0x1dc08c=_0xbcc4f7;_0x45307f[_0x1dc08c('0x15aa')]({'title':_0x154257[_0x1dc08c('0x276f')]?_0x1dc08c('0x137')+_0x154257[_0x1dc08c('0x276f')]+_0x1dc08c('0x160c')+_0x154257[_0x1dc08c('0x2696')]:'api.staff.save','msg':_0x154257[_0x1dc08c('0x1e07')]?JSON[_0x1dc08c('0x100b')](_0x154257[_0x1dc08c('0x1e07')][_0x1dc08c('0x67f')]):_0x154257[_0x1dc08c('0x1b75')]()});});}function _0x1f5838(_0xd778d8){const _0x328d14=_0xb7577f;_0x5ee963[_0x328d14('0x1cb7')](_0x5ee963['alert']()[_0x328d14('0x226c')](!![])[_0x328d14('0x20d6')](_0x328d14('0x526'))['htmlContent'](_0x328d14('0x22f0'))['ok']('Ok')[_0x328d14('0x21de')](_0xd778d8));}function _0x4b693b(_0x41e6bb,_0x170c91){const _0x1a5e0a=_0xb7577f;_0x5ee963[_0x1a5e0a('0x1cb7')]({'controller':_0x1a5e0a('0xfba'),'controllerAs':'vm','templateUrl':_0x66272d,'parent':angular[_0x1a5e0a('0xb6d')](_0xf25213['body']),'targetEvent':_0x170c91,'clickOutsideToClose':!![],'locals':{'agent':_0x41e6bb,'agents':[],'channel':_0x1a5e0a('0x108a'),'direction':_0x1a5e0a('0x1755'),'crudPermissions':_0x516965[_0x1a5e0a('0x1dc1')]}});}function _0xf4b60(_0xa89055){const _0x1f5720=_0xb7577f;return _0xa89055===_0x1f5720('0x1751')||_0xa89055==='*pause';}function _0x147fab(_0x448f5c){return _0x448f5c==='pause';}function _0x2b3f90(_0x3f0da5){const _0x10396e=_0xb7577f;return _0x3f0da5===_0x10396e('0xb3e');}function _0x188ca4(_0x92245f){const _0x4577c1=_0xb7577f;return _0x92245f===_0x4577c1('0x23b')||_0x92245f===_0x4577c1('0x1b77')||_0x92245f===_0x4577c1('0x1d8e')||_0x92245f===_0x4577c1('0x263b')||_0x3c8d8a()['isNil'](_0x92245f);}function _0x5e5c8a(_0x464bfa,_0xfb886f){const _0x42e307=_0xb7577f;if(_0xfb886f===_0x42e307('0x21a8')){if(_0x464bfa[_0xfb886f+_0x42e307('0xef8')]!=='idle')return _0x464bfa[_0xfb886f+_0x42e307('0xef8')];if(_0x464bfa[_0xfb886f+_0x42e307('0x2408')])return _0x464bfa[_0xfb886f+_0x42e307('0xef8')]=_0x42e307('0x1751'),'pause';return'idle';}else{if(_0x464bfa[_0xfb886f+_0x42e307('0x2408')])return _0x464bfa[_0xfb886f+'Status']='pause',_0x42e307('0x1751');return _0x464bfa[_0xfb886f+_0x42e307('0xef8')];}}function _0x49e04c(_0x4ce0a5){const _0x10d4a8=_0xb7577f;let _0x161c44='unknown';if(_0x3c8d8a()[_0x10d4a8('0x3ff')]([_0x5e5c8a(_0x4ce0a5,'voice'),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x8c5')),_0x5e5c8a(_0x4ce0a5,'mail'),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0xab2')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x1a8f')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x245')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x16d'))],_0xf4b60))_0x161c44=_0x10d4a8('0x1751');else{if(_0x3c8d8a()['some']([_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x21a8')),_0x5e5c8a(_0x4ce0a5,'chat'),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x108a')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0xab2')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x1a8f')),_0x5e5c8a(_0x4ce0a5,'whatsapp'),_0x5e5c8a(_0x4ce0a5,'fax')],_0xf4b60))_0x161c44='*pause';else _0x3c8d8a()[_0x10d4a8('0x3ff')]([_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x21a8')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x8c5')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x108a')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0xab2')),_0x5e5c8a(_0x4ce0a5,'sms'),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x245')),_0x5e5c8a(_0x4ce0a5,_0x10d4a8('0x16d'))],_0x188ca4)?_0x161c44=_0x10d4a8('0x23b'):_0x161c44=_0x10d4a8('0xe2b');}_0x4ce0a5[_0x10d4a8('0xd7e')]!==_0x161c44&&(_0x4ce0a5[_0x10d4a8('0xd7e')]=_0x161c44,_0x4ce0a5['init']?(_0x4ce0a5[_0x10d4a8('0xb9c')]=![],_0x4ce0a5[_0x10d4a8('0x1cd8')]=_0xf4b60(_0x161c44)?_0x3c8d8a()['toNumber'](_0x156524()(_0x4ce0a5[_0x10d4a8('0x20a0')])[_0x10d4a8('0xddc')]('x')):_0x3c8d8a()[_0x10d4a8('0x18be')]([_0x4ce0a5[_0x10d4a8('0x1c89')],_0x4ce0a5[_0x10d4a8('0x2816')],_0x4ce0a5[_0x10d4a8('0x22a')],_0x4ce0a5['smsStatusTime'],_0x4ce0a5[_0x10d4a8('0x15b6')],_0x4ce0a5['openchannelStatusTime'],_0x4ce0a5[_0x10d4a8('0xbc9')]])):_0x4ce0a5[_0x10d4a8('0x1cd8')]=_0x3c8d8a()[_0x10d4a8('0x1acd')](_0x156524()()[_0x10d4a8('0xddc')]('x')));}function _0x48332a(_0x222bea){const _0x5d5826=_0xb7577f,_0x3c9160=_0x3c8d8a()[_0x5d5826('0x17b2')](_0x516965['query'][_0x5d5826('0x144a')],'-')?_0x5d5826('0x231d'):_0x5d5826('0xcc1');return _0x3c8d8a()[_0x5d5826('0x1d16')](_0x222bea,[_0x516965[_0x5d5826('0xc49')]['order'][_0x5d5826('0x166c')]('-','')],[_0x3c9160]);}function _0x1c1d7d(){const _0x4e3273=_0xb7577f;_0x225493&&(_0x4af6f0[_0x4e3273('0x1e1f')](_0x225493),_0x225493=null);}function _0x4b5a88(_0x452c58,_0x4bf1fe){const _0x2ecfbf=_0xb7577f;return _0x35f936['user'][_0x2ecfbf('0x1842')]({'id':_0x452c58['id']},{'screenrecording':_0x4bf1fe})[_0x2ecfbf('0x1964')]['catch'](function(_0x66a9bd){const _0x5f180d=_0x2ecfbf;_0x45307f[_0x5f180d('0x15aa')]({'title':_0x66a9bd[_0x5f180d('0x276f')]?_0x5f180d('0x137')+_0x66a9bd[_0x5f180d('0x276f')]+'\x20-\x20'+_0x66a9bd[_0x5f180d('0x2696')]:_0x5f180d('0x2134'),'msg':_0x66a9bd[_0x5f180d('0x1e07')]?JSON[_0x5f180d('0x100b')](_0x66a9bd['data'][_0x5f180d('0x67f')]):_0x66a9bd[_0x5f180d('0x1b75')]()});});}_0x3008ac['$on'](_0xb7577f('0x16d2'),function(){const _0x5196d1=_0xb7577f;_0x38e582['removeAllListeners']('user:save'),_0x38e582[_0x5196d1('0x251c')](_0x5196d1('0x2048')),_0x38e582[_0x5196d1('0x251c')](_0x5196d1('0x1bd5')),_0x38e582[_0x5196d1('0x251c')](_0x5196d1('0xa73')),_0x1c1d7d();});}const _0x4a6e6d=_0x4e7f26,_0x5203f7=_0x21a6a1['p']+'src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html/dialog.html',_0x2e7374=_0x21a6a1['p']+'src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd.html';_0x5bbb2a[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$timeout',_0x566993('0x1fe5'),'$q',_0x566993('0x1b82'),_0x566993('0x1b13'),'queues','rpcQueues','api',_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x257b'),'userProfileSection',_0x566993('0x1600')];function _0x5bbb2a(_0x184f9d,_0x5717c1,_0x31449b,_0x345ecc,_0x1de91c,_0x3ff144,_0x1b147a,_0x43c557,_0x433f84,_0x402800,_0x2783c0,_0x2d5cd8,_0x12b841,_0x180cf8){const _0x1b096d=_0x566993,_0x103031=this,_0x308a6f=[_0x1b096d('0x34e'),_0x1b096d('0x825'),_0x1b096d('0x1b68'),'talking',_0x1b096d('0x1e8d'),_0x1b096d('0x203d'),'message',_0x1b096d('0x3ba'),_0x1b096d('0xa87'),_0x1b096d('0x183a'),_0x1b096d('0x1898')];_0x103031[_0x1b096d('0x155f')]=_0x180cf8['getCurrentUser'](),_0x103031['count']=_0x1b147a[_0x1b096d('0x1a2f')]?_0x1b147a[_0x1b096d('0x1a2f')]:0x0,_0x103031['queues']=_0x1b147a?_0x3c8d8a()[_0x1b096d('0x128')](_0x1b147a[_0x1b096d('0x6aa')]?_0x1b147a['rows']:[],'id'):{},_0x103031[_0x1b096d('0x2156')]=_0x43c557?_0x3c8d8a()[_0x1b096d('0x128')](_0x43c557[_0x1b096d('0x6aa')]?_0x43c557[_0x1b096d('0x6aa')]:[],'id'):{},_0x103031[_0x1b096d('0x257b')]=_0x2d5cd8,_0x103031[_0x1b096d('0x170e')]=_0x12b841&&_0x12b841[_0x1b096d('0x1a2f')]==0x1?_0x12b841['rows'][0x0]:null,_0x103031['crudPermissions']=_0x180cf8[_0x1b096d('0xde6')](_0x103031[_0x1b096d('0x170e')]?_0x103031[_0x1b096d('0x170e')]['crudPermissions']:null);_0x180cf8[_0x1b096d('0x1b4e')](_0x1b096d('0x79b'))?_0x103031[_0x1b096d('0xc49')]={'type':_0x1b096d('0x1755'),'sort':_0x1b096d('0x1769'),'limit':0xa,'page':0x1}:_0x103031['query']={'id':_0x103031['currentUser']['id'],'channel':_0x1b096d('0x108a'),'type':_0x1b096d('0x1755'),'sort':_0x1b096d('0x1769'),'limit':0xa,'page':0x1};_0x103031[_0x1b096d('0xdfe')]=_0x5a6b0c,_0x103031['getQueues']=_0x3b6297,_0x103031[_0x1b096d('0x4ad')]=_0x5024a6,_0x103031[_0x1b096d('0x24f8')]=_0x26ce6a,_0x103031[_0x1b096d('0x578')]=_0xd5e96,_0x103031[_0x1b096d('0x689')]=_0xcb67ba,_0x103031['onSaveMember']=_0x3cf6fb,_0x103031[_0x1b096d('0xc12')]=_0x1e9549,_0x103031[_0x1b096d('0x255')]=_0x15cdb7,_0x103031[_0x1b096d('0x5')]=_0x372dd8,_0x103031[_0x1b096d('0x1e70')]=_0x5346b3,_0x103031['$onInit']=_0x105fb1,_0x103031[_0x1b096d('0x144a')]=[],_0x3c8d8a()[_0x1b096d('0x33d')](_0x103031['queues'],function(_0xbbe9c8){const _0x2ab434=_0x1b096d;_0x103031[_0x2ab434('0x144a')][_0x2ab434('0x18bb')](_0xbbe9c8['id']);}),_0x402800['on'](_0x1b096d('0x19b6'),_0x103031[_0x1b096d('0x689')]),_0x402800['on'](_0x1b096d('0x9d'),_0x103031['onSaveMember']),_0x402800['on'](_0x1b096d('0xa34'),_0x103031[_0x1b096d('0xc12')]),_0x402800['on'](_0x1b096d('0x2048'),_0x103031['onPause']),_0x402800['on']('userVoiceQueue:remove',_0x103031[_0x1b096d('0x1e70')]),_0x402800['on'](_0x1b096d('0x1379'),_0x103031['onLogin']);function _0x105fb1(){const _0x92e8bd=_0x1b096d,_0x185dc0=[];return _0x3c8d8a()[_0x92e8bd('0x33d')](_0x103031['queues'],function(_0x4c1e6c,_0x360148){const _0x3d5ee8=_0x92e8bd;_0x4c1e6c[_0x3d5ee8('0x1898')]=0x0,_0x4c1e6c[_0x3d5ee8('0x1307')]=0x0,_0x103031['queues'][_0x360148][_0x3d5ee8('0x11fa')]={},_0x185dc0[_0x3d5ee8('0x18bb')](_0x433f84[_0x3d5ee8('0x1b0')][_0x3d5ee8('0x230a')]({'id':_0x360148})[_0x3d5ee8('0x1964')]),_0x103031[_0x3d5ee8('0x2156')][_0x360148]&&_0x3c8d8a()['merge'](_0x4c1e6c,_0x3c8d8a()[_0x3d5ee8('0x2114')](_0x103031[_0x3d5ee8('0x2156')][_0x360148],_0x308a6f));}),_0x345ecc[_0x92e8bd('0x27c8')](_0x185dc0)[_0x92e8bd('0x173b')](function(_0x342fc2){const _0x1b3dbb=_0x92e8bd;for(let _0x2ac83e=0x0;_0x2ac83e<_0x342fc2['length'];_0x2ac83e+=0x1){for(let _0x4f05c6=0x0;_0x4f05c6<_0x342fc2[_0x2ac83e][_0x1b3dbb('0x6aa')][_0x1b3dbb('0x543')];_0x4f05c6++){_0x342fc2[_0x2ac83e]['rows'][_0x4f05c6][_0x1b3dbb('0x1898')]&&_0x103031['queues'][_0x342fc2[_0x2ac83e][_0x1b3dbb('0x6aa')][_0x4f05c6]['MailQueueId']]['paused']++,_0x103031[_0x1b3dbb('0xeae')][_0x342fc2[_0x2ac83e][_0x1b3dbb('0x6aa')][_0x4f05c6][_0x1b3dbb('0x542')]]['loggedInDb']++,_0x103031[_0x1b3dbb('0xeae')][_0x342fc2[_0x2ac83e]['rows'][_0x4f05c6]['MailQueueId']][_0x1b3dbb('0x11fa')][_0x342fc2[_0x2ac83e][_0x1b3dbb('0x6aa')][_0x4f05c6]['UserId']]=_0x342fc2[_0x2ac83e][_0x1b3dbb('0x6aa')][_0x4f05c6][_0x1b3dbb('0x542')];}}})[_0x92e8bd('0x103c')](function(_0x5d939f){const _0x857044=_0x92e8bd;console[_0x857044('0x15aa')](_0x5d939f);});}function _0xcb67ba(_0x16332c){const _0x132088=_0x1b096d;_0x103031[_0x132088('0xeae')][_0x16332c['id']]&&_0x3c8d8a()['merge'](_0x103031[_0x132088('0xeae')][_0x16332c['id']],_0x3c8d8a()[_0x132088('0x2114')](_0x16332c,_0x308a6f));}function _0x3cf6fb(_0x14190b){const _0x398be5=_0x1b096d;_0x103031[_0x398be5('0xeae')][_0x14190b[_0x398be5('0x542')]]&&_0x103031['queues'][_0x14190b[_0x398be5('0x542')]][_0x398be5('0x1307')]++;}function _0x1e9549(_0x77e5bd){const _0x4a2d19=_0x1b096d;_0x103031['queues'][_0x77e5bd['MailQueueId']]&&_0x103031[_0x4a2d19('0xeae')][_0x77e5bd[_0x4a2d19('0x542')]]['loggedInDb']--;}function _0x15cdb7(_0x4fb9ca){const _0x11bbb7=_0x1b096d;console[_0x11bbb7('0xe37')](_0x11bbb7('0x255'),_0x4fb9ca);if(_0x4fb9ca[_0x11bbb7('0x67c')])_0x3c8d8a()[_0x11bbb7('0x33d')](_0x103031[_0x11bbb7('0xeae')],function(_0x805e4b){const _0x5f0748=_0x11bbb7;_0x805e4b[_0x5f0748('0x11fa')][_0x4fb9ca['id']]&&(_0x805e4b[_0x5f0748('0x1898')]+=0x1,console['log'](_0x5f0748('0x1751')));});else!_0x4fb9ca[_0x11bbb7('0x67c')]&&_0x3c8d8a()[_0x11bbb7('0x33d')](_0x103031[_0x11bbb7('0xeae')],function(_0x23a7f8){const _0x126258=_0x11bbb7;_0x23a7f8[_0x126258('0x11fa')][_0x4fb9ca['id']]&&(_0x23a7f8[_0x126258('0x1898')]>0x0&&(_0x23a7f8[_0x126258('0x1898')]-=0x1,console[_0x126258('0xe37')](_0x126258('0x9da'))));});}function _0x372dd8(_0x33f1c3){const _0xf93971=_0x1b096d;console[_0xf93971('0xe37')](_0xf93971('0x1e15'),_0x33f1c3),_0x103031[_0xf93971('0xeae')][_0x33f1c3[_0xf93971('0x542')]]&&(_0x103031['queues'][_0x33f1c3[_0xf93971('0x542')]][_0xf93971('0x1307')]+=0x1,_0x103031[_0xf93971('0xeae')][_0x33f1c3['MailQueueId']]['agents'][_0x33f1c3[_0xf93971('0x181c')]]=_0x33f1c3['MailQueueId']);}function _0x5346b3(_0x12cea5){const _0x4ce2e5=_0x1b096d;console[_0x4ce2e5('0xe37')]('onLogout',_0x12cea5),_0x103031['queues'][_0x12cea5['MailQueueId']]&&_0x103031['queues'][_0x12cea5[_0x4ce2e5('0x542')]]['loggedInDb']>0x0&&(_0x103031[_0x4ce2e5('0xeae')][_0x12cea5[_0x4ce2e5('0x542')]][_0x4ce2e5('0x1307')]-=0x1,delete _0x103031[_0x4ce2e5('0xeae')][_0x12cea5[_0x4ce2e5('0x542')]][_0x4ce2e5('0x11fa')][_0x12cea5['UserId']]);}let _0x39cfcb=!![],_0x237776=0x1;_0x184f9d[_0x1b096d('0x1bdb')](_0x1b096d('0x157b'),function(_0x195686,_0xe72274){const _0xf1a973=_0x1b096d;_0x39cfcb?_0x5717c1(function(){_0x39cfcb=![];}):(!_0xe72274&&(_0x237776=_0x103031[_0xf1a973('0xc49')]['page']),_0x195686!==_0xe72274&&(_0x103031[_0xf1a973('0xc49')][_0xf1a973('0x182e')]=0x1),!_0x195686&&(_0x103031[_0xf1a973('0xc49')][_0xf1a973('0x182e')]=_0x237776),_0x103031[_0xf1a973('0x115e')]());});function _0x5a6b0c(_0x3b13ca){const _0x1429fd=_0x1b096d;_0x103031[_0x1429fd('0x1a2f')]=_0x3b13ca[_0x1429fd('0x1a2f')],_0x103031[_0x1429fd('0xeae')]=_0x3b13ca?_0x3c8d8a()[_0x1429fd('0x128')](_0x3b13ca[_0x1429fd('0x6aa')]?_0x3b13ca['rows']:[],'id'):{};if(_0x3b13ca[_0x1429fd('0x6aa')]){_0x103031[_0x1429fd('0x144a')]=[];for(let _0x5bf069=0x0;_0x5bf069<_0x3b13ca['rows']['length'];_0x5bf069++){_0x103031[_0x1429fd('0x144a')][_0x1429fd('0x18bb')](_0x3b13ca['rows'][_0x5bf069]['id']);}}_0x105fb1();}function _0x3b6297(){const _0x59fe15=_0x1b096d;_0x103031['query'][_0x59fe15('0x17f0')]=(_0x103031['query'][_0x59fe15('0x182e')]-0x1)*_0x103031[_0x59fe15('0xc49')][_0x59fe15('0x3e')],_0x180cf8['hasRole'](_0x59fe15('0x79b'))?_0x103031['promise']=_0x433f84['mailQueue'][_0x59fe15('0x1d97')](_0x103031[_0x59fe15('0xc49')],_0x5a6b0c)[_0x59fe15('0x1964')]:(_0x103031[_0x59fe15('0xc49')]['id']=_0x103031[_0x59fe15('0x257b')]['id'],_0x103031[_0x59fe15('0xc49')]['section']=_0x59fe15('0x233d'),_0x103031[_0x59fe15('0x2219')]=_0x433f84[_0x59fe15('0x257b')][_0x59fe15('0x135b')](_0x103031['query'],_0x5a6b0c)[_0x59fe15('0x1964')]);}function _0x5024a6(_0x9137a9,_0x46bf96){const _0x45ea9f=_0x1b096d;_0x31449b[_0x45ea9f('0x1cb7')]({'controller':_0x45ea9f('0x1a8d'),'controllerAs':'vm','templateUrl':_0x5203f7,'parent':angular[_0x45ea9f('0xb6d')](_0x1de91c[_0x45ea9f('0x1a5')]),'targetEvent':_0x9137a9,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x46bf96,'mailQueues':_0x3c8d8a()['values'](_0x103031[_0x45ea9f('0xeae')]),'license':null,'setting':null,'crudPermissions':_0x103031[_0x45ea9f('0x1dc1')]}});}function _0x26ce6a(_0x5baa7d,_0x44224e){const _0x5a3431=_0x1b096d;_0x31449b[_0x5a3431('0x1cb7')]({'controller':_0x5a3431('0x1820'),'controllerAs':'vm','templateUrl':_0x2e7374,'parent':angular['element'](_0x1de91c[_0x5a3431('0x1a5')]),'targetEvent':_0x5baa7d,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x44224e,'mailQueues':_0x103031[_0x5a3431('0xeae')]?_0x103031[_0x5a3431('0xeae')][_0x5a3431('0x6aa')]:[],'realtime':![],'crudPermissions':_0x103031[_0x5a3431('0x1dc1')]}});}function _0xd5e96(_0x4c5467){const _0x170494=_0x1b096d;return _0x433f84[_0x170494('0x1b0')][_0x170494('0x1842')](_0x4c5467)[_0x170494('0x1964')][_0x170494('0x173b')](function(){const _0x3baf26=_0x170494;_0x2783c0[_0x3baf26('0xdfe')]({'title':_0x3baf26('0x22bc'),'msg':_0x4c5467[_0x3baf26('0x10ad')]?_0x4c5467['name']+_0x3baf26('0x1fd6'):''});})['catch'](function(_0x59d6d2){const _0x15790b=_0x170494;_0x2783c0[_0x15790b('0x15aa')]({'title':'Error\x20creating\x20queue!','msg':_0x59d6d2[_0x15790b('0x67f')]});});}_0x184f9d[_0x1b096d('0xbf6')]('$destroy',function(){const _0x196574=_0x1b096d;_0x402800['removeAllListeners'](_0x196574('0x19b6')),_0x402800[_0x196574('0x251c')]('userMailQueue:remove'),_0x402800[_0x196574('0x251c')](_0x196574('0x9d')),_0x402800[_0x196574('0x251c')](_0x196574('0x2048')),_0x402800[_0x196574('0x251c')](_0x196574('0x22b7')),_0x402800[_0x196574('0x251c')]('userVoiceQueue:save');});}const _0xdcaeb2=_0x5bbb2a;function _0x15ef48(){const _0x42dde5=_0x566993;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x42dde5('0xc5a'),'lagged':_0x42dde5('0xc5a'),'reachable':_0x42dde5('0xdcf'),'unreachable':_0x42dde5('0xc5a'),'unknown':_0x42dde5('0x3c7')},'state':{'unknown':_0x42dde5('0xd0a'),'not_inuse':_0x42dde5('0x1dd'),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':'red-300-fg\x20icon-phone-locked','invalid':_0x42dde5('0xd0a'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x42dde5('0x4da'),'ringinuse':_0x42dde5('0x4da'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x42dde5('0x4da'),'up':_0x42dde5('0x6ed'),'hangup':_0x42dde5('0x1797')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x42dde5('0x1797')}};}const _0x1bacb4=_0x15ef48;_0x4f3e68[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x2fc')];function _0x4f3e68(_0x147e0e,_0x57130e,_0x1235a5){const _0x2adb74=_0x566993,_0x37a0e9=this;_0x1235a5['disconnect'](),_0x1235a5[_0x2adb74('0x45f')](),_0x37a0e9['selectedTab']=0x0;switch(_0x57130e[_0x2adb74('0x9fe')][_0x2adb74('0x10ad')]){case'app.mail.realtime.agents':_0x37a0e9[_0x2adb74('0xd5f')]=0x0;break;case _0x2adb74('0xa89'):_0x37a0e9['selectedTab']=0x1;break;case _0x2adb74('0x16e6'):_0x37a0e9[_0x2adb74('0xd5f')]=0x2;break;default:_0x37a0e9[_0x2adb74('0xd5f')]=0x0,_0x57130e['go'](_0x2adb74('0x2505'));}_0x147e0e['$watch'](_0x2adb74('0x1a1'),function(_0x50153b,_0x21fef4){const _0x3953c2=_0x2adb74;if(_0x50153b!==_0x21fef4)switch(_0x50153b){case 0x0:_0x57130e['go'](_0x3953c2('0x2505'));break;case 0x1:_0x57130e['go'](_0x3953c2('0xa89'));break;case 0x2:_0x57130e['go'](_0x3953c2('0x16e6'));break;default:_0x57130e['go'](_0x3953c2('0x2505'));}});}const _0x48e6f7=_0x4f3e68;_0x4f11b0[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x4f11b0(_0xe45dab){const _0x100f85=_0x566993;_0xe45dab[_0x100f85('0x1a49')](_0x100f85('0x60b'),{'url':_0x100f85('0x213'),'views':{'content@app':{'templateUrl':_0x46a804,'controller':'MailRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':['apiResolver',_0x100f85('0x1600'),function(_0x49fdd4,_0x2266d6){const _0x47569b=_0x100f85;return _0x2266d6[_0x47569b('0x1b4e')](_0x47569b('0x79b'))?null:_0x49fdd4[_0x47569b('0x155b')](_0x47569b('0x1f20'),{'fields':_0x47569b('0x19dd'),'id':_0x2266d6[_0x47569b('0x14d4')]()[_0x47569b('0x1946')]});}],'userProfileSection':['apiResolver','Auth',function(_0x30c6ad,_0x4f3c96){const _0x85bb44=_0x100f85;return _0x4f3c96[_0x85bb44('0x1b4e')]('admin')?null:_0x30c6ad[_0x85bb44('0x155b')]('userProfileSection@get',{'fields':_0x85bb44('0x1348'),'userProfileId':_0x4f3c96['getCurrentUser']()[_0x85bb44('0x1946')],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})['state'](_0x100f85('0x2505'),{'url':_0x100f85('0x1943'),'controller':_0x100f85('0x6fd'),'templateUrl':_0x4217eb,'resolve':{'pauses':['apiResolver',function(_0x1f2985){const _0x953e1=_0x100f85;return _0x1f2985[_0x953e1('0x155b')]('pause@get',{'nolimit':!![]});}],'agents':[_0x100f85('0x2401'),_0x100f85('0x1600'),function(_0x418098,_0xd7074e){const _0x5c969d=_0x100f85;return _0xd7074e[_0x5c969d('0x1b4e')](_0x5c969d('0x79b'))?_0x418098[_0x5c969d('0x155b')](_0x5c969d('0x15e6'),{'fields':_0x5c969d('0xd6b'),'role':_0x5c969d('0x7b0'),'sort':_0x5c969d('0x572'),'nolimit':!![]}):_0x418098['resolve'](_0x5c969d('0x14b3'),{'id':_0xd7074e[_0x5c969d('0x14d4')]()['userProfileId'],'section':_0x5c969d('0x1272'),'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':_0x5c969d('0x7b0'),'sort':_0x5c969d('0x572'),'nolimit':!![]});}],'userProfile':[_0x100f85('0x2401'),_0x100f85('0x1600'),function(_0x5798e3,_0x19bb43){const _0x33b112=_0x100f85;return _0x19bb43[_0x33b112('0x1b4e')](_0x33b112('0x79b'))?null:_0x5798e3[_0x33b112('0x155b')](_0x33b112('0x1f20'),{'fields':_0x33b112('0x19dd'),'id':_0x19bb43[_0x33b112('0x14d4')]()[_0x33b112('0x1946')]});}],'userProfileSection':[_0x100f85('0x2401'),_0x100f85('0x1600'),function(_0x280fbe,_0x224ee9){const _0x5d0f23=_0x100f85;return _0x224ee9[_0x5d0f23('0x1b4e')]('admin')?null:_0x280fbe['resolve'](_0x5d0f23('0x40'),{'fields':_0x5d0f23('0x1348'),'userProfileId':_0x224ee9[_0x5d0f23('0x14d4')]()[_0x5d0f23('0x1946')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0xb6301b){const _0x269d57=_0x100f85;return _0xb6301b[_0x269d57('0x155b')](_0x269d57('0x58'));}]},'authenticate':!![],'permissionId':0x262})[_0x100f85('0x1a49')](_0x100f85('0xa89'),{'url':_0x100f85('0x1bb0'),'controller':_0x100f85('0x24f9'),'templateUrl':_0x278d6a,'resolve':{'queues':[_0x100f85('0x2401'),_0x100f85('0x1600'),function(_0x325bfa,_0x1d6c87){const _0x403fca=_0x100f85;return _0x1d6c87['hasRole']('admin')?_0x325bfa[_0x403fca('0x155b')](_0x403fca('0x487'),{'type':_0x403fca('0x1755'),'sort':_0x403fca('0x1769'),'limit':0xa,'offset':0x0}):_0x325bfa[_0x403fca('0x155b')](_0x403fca('0x14b3'),{'id':_0x1d6c87[_0x403fca('0x14d4')]()[_0x403fca('0x1946')],'section':_0x403fca('0x233d'),'channel':'mail','type':'inbound','sort':_0x403fca('0x1769'),'limit':0xa,'page':0x1});}],'userProfile':[_0x100f85('0x2401'),_0x100f85('0x1600'),function(_0x270cd9,_0x4fb5c7){const _0x150a75=_0x100f85;return _0x4fb5c7[_0x150a75('0x1b4e')](_0x150a75('0x79b'))?null:_0x270cd9[_0x150a75('0x155b')](_0x150a75('0x1f20'),{'fields':_0x150a75('0x19dd'),'id':_0x4fb5c7['getCurrentUser']()[_0x150a75('0x1946')]});}],'userProfileSection':['apiResolver',_0x100f85('0x1600'),function(_0x42c8ae,_0x53899c){const _0xcfe9c9=_0x100f85;return _0x53899c[_0xcfe9c9('0x1b4e')]('admin')?null:_0x42c8ae[_0xcfe9c9('0x155b')]('userProfileSection@get',{'fields':_0xcfe9c9('0x1348'),'userProfileId':_0x53899c[_0xcfe9c9('0x14d4')]()[_0xcfe9c9('0x1946')],'sectionId':0x259});}],'rpcQueues':['apiResolver',function(_0x4d3cca){const _0x3b5e8c=_0x100f85;return _0x4d3cca[_0x3b5e8c('0x155b')](_0x3b5e8c('0x745'));}]},'authenticate':!![],'permissionId':0x262})[_0x100f85('0x1a49')](_0x100f85('0x16e6'),{'url':_0x100f85('0x141'),'controller':_0x100f85('0xe9d'),'templateUrl':_0x1725ac,'resolve':{'mailAccounts':[_0x100f85('0x2401'),'Auth',function(_0x522652,_0x15e2ae){const _0x985a71=_0x100f85;return _0x15e2ae[_0x985a71('0x1b4e')](_0x985a71('0x79b'))?_0x522652[_0x985a71('0x155b')](_0x985a71('0x1ff9'),{'sort':_0x985a71('0x1769'),'limit':0xa,'offset':0x0}):_0x522652[_0x985a71('0x155b')](_0x985a71('0x14b3'),{'id':_0x15e2ae[_0x985a71('0x14d4')]()['userProfileId'],'section':_0x985a71('0x15ab'),'sort':_0x985a71('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x100f85('0x2401'),'Auth',function(_0x1940aa,_0x390f9f){const _0x55c6d5=_0x100f85;return _0x390f9f['hasRole'](_0x55c6d5('0x79b'))?null:_0x1940aa[_0x55c6d5('0x155b')](_0x55c6d5('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x390f9f['getCurrentUser']()[_0x55c6d5('0x1946')]});}],'userProfileSection':['apiResolver',_0x100f85('0x1600'),function(_0x6f214f,_0x140733){const _0x2e37c3=_0x100f85;return _0x140733[_0x2e37c3('0x1b4e')]('admin')?null:_0x6f214f['resolve'](_0x2e37c3('0x40'),{'fields':_0x2e37c3('0x1348'),'userProfileId':_0x140733[_0x2e37c3('0x14d4')]()['userProfileId'],'sectionId':0x25a});}],'rpcMailAccounts':[_0x100f85('0x2401'),function(_0x26df5d){const _0x2459ca=_0x100f85;return _0x26df5d[_0x2459ca('0x155b')](_0x2459ca('0x2802'));}]},'authenticate':!![],'permissionId':0x262});}angular[_0x566993('0x22c4')](_0x566993('0x60b'),[])[_0x566993('0xea9')](_0x4f11b0)[_0x566993('0x1e65')]('AgentsMailRealtimeController',_0x4a6e6d)[_0x566993('0x1e65')](_0x566993('0x1fde'),_0xdcaeb2)[_0x566993('0x235c')](_0x566993('0x1bf5'),_0x1bacb4)[_0x566993('0x1e65')](_0x566993('0x2055'),_0x48e6f7);const _0x3933e7=_0x21a6a1['p']+_0x566993('0x19f4'),_0x436f45=_0x21a6a1['p']+_0x566993('0x1580'),_0x265786=_0x21a6a1['p']+'src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html/mailAccounts.html',_0x1fa6c2=_0x21a6a1['p']+_0x566993('0x7ab'),_0x1e8693=_0x21a6a1['p']+_0x566993('0x22d4');_0x4e3d42['$inject']=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q','$translate',_0x566993('0x1558'),_0x566993('0x2632'),_0x566993('0x77b'),_0x566993('0xbd4'),_0x566993('0x1600'),'license','setting','crudPermissions'];function _0x4e3d42(_0x576b95,_0x127d22,_0x16fc84,_0x529d4b,_0x2d2b6b,_0x5dd071,_0x4fca0c,_0x346b9a,_0x54eccb,_0x10375f,_0x376fe9,_0x20051f,_0x1ac2b4,_0xca6e5a){const _0x2ea87b=_0x566993,_0xf14227=this;_0xf14227[_0x2ea87b('0x155f')]=_0x376fe9[_0x2ea87b('0x14d4')](),_0xf14227['errors']=[],_0xf14227[_0x2ea87b('0x251')]=_0x1ac2b4,_0xf14227[_0x2ea87b('0x1a29')]=_0x20051f,_0xf14227[_0x2ea87b('0x1dc1')]=_0xca6e5a,_0xf14227[_0x2ea87b('0xb0')]={},_0xf14227[_0x2ea87b('0x644')]=_0xf14227[_0x2ea87b('0x251')]&&_0xf14227['setting'][_0x2ea87b('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xf14227[_0x2ea87b('0x20d6')]=_0x2ea87b('0x14e'),_0xf14227[_0x2ea87b('0x77b')]=angular[_0x2ea87b('0x2e3')](_0x54eccb),_0xf14227[_0x2ea87b('0x2632')]=_0x346b9a,_0xf14227[_0x2ea87b('0x23b3')]=![];!_0xf14227[_0x2ea87b('0x77b')]&&(_0xf14227[_0x2ea87b('0x77b')]={'active':!![],'cservice':_0x2ea87b('0x877'),'cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0xf14227[_0x2ea87b('0x20d6')]=_0x2ea87b('0x1447'),_0xf14227['newMailAccount']=!![]);_0x127d22[_0x2ea87b('0x197a')]['id']&&(_0xf14227[_0x2ea87b('0x77b')][_0x2ea87b('0x559')]=_0x127d22[_0x2ea87b('0x197a')]['id']);_0xf14227[_0x2ea87b('0xaa5')]=_0x2c5d4e,_0xf14227['saveMailAccount']=_0x1d5f44,_0xf14227[_0x2ea87b('0x1ae3')]=_0x28d22d,_0xf14227[_0x2ea87b('0x11ae')]=_0x436559,_0xf14227[_0x2ea87b('0x18e2')]=_0x52b0a4,_0x376fe9[_0x2ea87b('0x1b4e')](_0x2ea87b('0x79b'))?_0x10375f[_0x2ea87b('0xbb3')][_0x2ea87b('0x1d97')]({'fields':_0x2ea87b('0xd52'),'sort':_0x2ea87b('0x10ad')})[_0x2ea87b('0x1964')][_0x2ea87b('0x173b')](function(_0x52dd2b){const _0x1db9a1=_0x2ea87b;_0xf14227[_0x1db9a1('0x9e8')]=_0x52dd2b['rows']||[];})[_0x2ea87b('0x103c')](function(_0x38f48a){const _0x4b636e=_0x2ea87b;_0x4fca0c[_0x4b636e('0x15aa')]({'title':_0x38f48a[_0x4b636e('0x276f')]?_0x4b636e('0x137')+_0x38f48a['status']+_0x4b636e('0x160c')+_0x38f48a['statusText']:'SYSTEM:GET_LISTS','msg':_0x38f48a[_0x4b636e('0x1e07')]?JSON[_0x4b636e('0x100b')](_0x38f48a['data']):_0x38f48a[_0x4b636e('0x1b75')]()});}):_0x10375f[_0x2ea87b('0xbb3')][_0x2ea87b('0x1d97')]({'fields':_0x2ea87b('0xd52'),'sort':_0x2ea87b('0x10ad')})[_0x2ea87b('0x1964')][_0x2ea87b('0x173b')](function(_0x1c22e5){const _0x2d8d1a=_0x2ea87b;_0xf14227[_0x2d8d1a('0x9e8')]=_0x1c22e5['rows']||[];})[_0x2ea87b('0x173b')](function(){const _0x61bfdc=_0x2ea87b;return _0x10375f[_0x61bfdc('0x170e')][_0x61bfdc('0x1d97')]({'userProfileId':_0xf14227[_0x61bfdc('0x155f')][_0x61bfdc('0x1946')],'sectionId':0x12d})['$promise'];})[_0x2ea87b('0x173b')](function(_0x3cb4a9){const _0x9e5d6e=_0x2ea87b,_0x1e02d5=_0x3cb4a9&&_0x3cb4a9['rows']?_0x3cb4a9[_0x9e5d6e('0x6aa')][0x0]:null;if(!_0x1e02d5){const _0x179671=[];let _0xe93d8c=null;_0xf14227[_0x9e5d6e('0x77b')]&&(_0xe93d8c=_0x3c8d8a()[_0x9e5d6e('0x18ab')](_0xf14227[_0x9e5d6e('0x9e8')],{'id':Number(_0xf14227['mailAccount'][_0x9e5d6e('0xef2')])}));for(let _0x317e65=0x0;_0x317e65<_0xf14227[_0x9e5d6e('0x9e8')][_0x9e5d6e('0x543')];_0x317e65++){_0xe93d8c&&_0xf14227[_0x9e5d6e('0x9e8')][_0x317e65]['id']===_0xe93d8c['id']&&(_0xf14227['lists'][_0x317e65][_0x9e5d6e('0x268e')]=![],_0x179671[_0x9e5d6e('0x18bb')](_0xf14227[_0x9e5d6e('0x9e8')][_0x317e65]));}_0xf14227[_0x9e5d6e('0x9e8')]=_0x179671;}else{if(!_0x1e02d5[_0x9e5d6e('0x273e')])return _0x10375f[_0x9e5d6e('0xda9')][_0x9e5d6e('0x1d97')]({'sectionId':_0x1e02d5['id']})['$promise'][_0x9e5d6e('0x173b')](function(_0x3eae30){const _0x569c3e=_0x9e5d6e,_0x1f5b0b=_0x3c8d8a()[_0x569c3e('0x8a2')](_0x3eae30[_0x569c3e('0x6aa')],function(_0x522090){const _0x11b0c9=_0x569c3e;return _0x3c8d8a()['find'](_0xf14227[_0x11b0c9('0x9e8')],{'id':_0x522090[_0x11b0c9('0x1ce0')]});});let _0x3b1d59=null;_0xf14227['mailAccount']&&(_0x3b1d59=_0x3c8d8a()[_0x569c3e('0x18ab')](_0xf14227[_0x569c3e('0x9e8')],{'id':Number(_0xf14227[_0x569c3e('0x77b')][_0x569c3e('0xef2')])}));if(_0x3b1d59&&!_0x3c8d8a()[_0x569c3e('0x1ec')](_0x1f5b0b,['id',_0x3b1d59['id']])){const _0x180bde=_0x3c8d8a()[_0x569c3e('0x18ab')](_0xf14227[_0x569c3e('0x9e8')],{'id':_0x3b1d59['id']});_0x180bde[_0x569c3e('0x268e')]=![],_0x1f5b0b[_0x569c3e('0x18bb')](_0x180bde);}_0xf14227['lists']=_0x1f5b0b;});}})[_0x2ea87b('0x103c')](function(_0x5ce8a6){const _0x14003c=_0x2ea87b;_0x4fca0c[_0x14003c('0x15aa')]({'title':_0x5ce8a6[_0x14003c('0x276f')]?_0x14003c('0x137')+_0x5ce8a6[_0x14003c('0x276f')]+_0x14003c('0x160c')+_0x5ce8a6[_0x14003c('0x2696')]:_0x14003c('0x1292'),'msg':_0x5ce8a6[_0x14003c('0x1e07')]?JSON[_0x14003c('0x100b')](_0x5ce8a6[_0x14003c('0x1e07')]):_0x5ce8a6[_0x14003c('0x1b75')]()});});function _0x2c5d4e(){const _0x2e0240=_0x2ea87b;_0xf14227[_0x2e0240('0x1d4a')]=[],_0x10375f[_0x2e0240('0x77b')][_0x2e0240('0x1195')](_0xf14227[_0x2e0240('0x77b')])[_0x2e0240('0x1964')][_0x2e0240('0x173b')](function(_0x353359){const _0x379169=_0x2e0240;_0xf14227['mailAccounts']['unshift'](_0x353359[_0x379169('0xf1f')]()),_0x4fca0c[_0x379169('0xdfe')]({'title':_0x379169('0x116e'),'msg':_0xf14227['mailAccount']['name']?_0xf14227[_0x379169('0x77b')][_0x379169('0x10ad')]+_0x379169('0x209a'):''}),_0x52b0a4(_0x353359);})[_0x2e0240('0x103c')](function(_0x56c769){const _0xc62006=_0x2e0240;if(_0x56c769['data']&&_0x56c769[_0xc62006('0x1e07')][_0xc62006('0x1d4a')]&&_0x56c769[_0xc62006('0x1e07')][_0xc62006('0x1d4a')][_0xc62006('0x543')]){_0xf14227['errors']=_0x56c769['data']['errors']||[{'message':_0x56c769[_0xc62006('0x1b75')](),'type':'api.mailAccount.save'}];for(let _0x42f4ca=0x0;_0x42f4ca<_0x56c769['data'][_0xc62006('0x1d4a')][_0xc62006('0x543')];_0x42f4ca+=0x1){_0x4fca0c[_0xc62006('0x15aa')]({'title':_0x56c769[_0xc62006('0x1e07')][_0xc62006('0x1d4a')][_0x42f4ca][_0xc62006('0x1810')],'msg':_0x56c769[_0xc62006('0x1e07')]['errors'][_0x42f4ca][_0xc62006('0x67f')]});}}else _0x4fca0c['error']({'title':_0x56c769[_0xc62006('0x276f')]?'API:'+_0x56c769[_0xc62006('0x276f')]+_0xc62006('0x160c')+_0x56c769[_0xc62006('0x2696')]:'api.mailAccount.save','msg':_0x56c769[_0xc62006('0x1e07')]?JSON[_0xc62006('0x100b')](_0x56c769[_0xc62006('0x1e07')][_0xc62006('0x67f')]):_0x56c769[_0xc62006('0x1b75')]()});});}function _0x1d5f44(){const _0x1de2a9=_0x2ea87b;_0xf14227['errors']=[],_0x10375f[_0x1de2a9('0x77b')][_0x1de2a9('0x1842')]({'id':_0xf14227[_0x1de2a9('0x77b')]['id']},_0xf14227[_0x1de2a9('0x77b')])[_0x1de2a9('0x1964')][_0x1de2a9('0x173b')](function(_0x57a78d){const _0x1ca08a=_0x1de2a9,_0x586638=_0x3c8d8a()['find'](_0xf14227['mailAccounts'],{'id':_0x57a78d['id']});_0x586638&&_0x3c8d8a()['merge'](_0x586638,_0x3c8d8a()[_0x1ca08a('0x2114')](_0x57a78d[_0x1ca08a('0xf1f')](),_0x3c8d8a()[_0x1ca08a('0x1d3e')](_0x586638))),_0x4fca0c['success']({'title':_0x1ca08a('0x1081'),'msg':_0xf14227[_0x1ca08a('0x77b')][_0x1ca08a('0x10ad')]?_0xf14227[_0x1ca08a('0x77b')][_0x1ca08a('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x52b0a4(_0x57a78d);})['catch'](function(_0x11f987){const _0x559ac7=_0x1de2a9;if(_0x11f987[_0x559ac7('0x1e07')]&&_0x11f987[_0x559ac7('0x1e07')]['errors']&&_0x11f987[_0x559ac7('0x1e07')][_0x559ac7('0x1d4a')][_0x559ac7('0x543')]){_0xf14227[_0x559ac7('0x1d4a')]=_0x11f987[_0x559ac7('0x1e07')][_0x559ac7('0x1d4a')]||[{'message':_0x11f987[_0x559ac7('0x1b75')](),'type':_0x559ac7('0x1624')}];for(let _0x59d0cb=0x0;_0x59d0cb<_0x11f987['data']['errors'][_0x559ac7('0x543')];_0x59d0cb++){_0x4fca0c['error']({'title':_0x11f987[_0x559ac7('0x1e07')][_0x559ac7('0x1d4a')][_0x59d0cb][_0x559ac7('0x1810')],'msg':_0x11f987[_0x559ac7('0x1e07')][_0x559ac7('0x1d4a')][_0x59d0cb][_0x559ac7('0x67f')]});}}else _0x4fca0c[_0x559ac7('0x15aa')]({'title':_0x11f987['status']?'API:'+_0x11f987['status']+_0x559ac7('0x160c')+_0x11f987[_0x559ac7('0x2696')]:_0x559ac7('0x1624'),'msg':_0x11f987[_0x559ac7('0x1e07')]?JSON[_0x559ac7('0x100b')](_0x11f987['data'][_0x559ac7('0x67f')]):_0x11f987['toString']()});});}function _0x28d22d(_0x51e928){const _0x129594=_0x2ea87b;if(_0xf14227['mailAccount'][_0x129594('0xe66')])return _0x4fca0c[_0x129594('0x15aa')]({'title':_0x129594('0x17b1'),'msg':'You\x20can\x27t\x20remove\x20service\x20account'});_0xf14227[_0x129594('0x1d4a')]=[];const _0x441c5f=_0x529d4b['confirm']()[_0x129594('0x20d6')](_0x129594('0x8ef'))['content'](_0x129594('0x22d'))['ariaLabel'](_0x129594('0x1882'))['ok']('Delete')[_0x129594('0x1e1f')](_0x129594('0x1d4e'))['targetEvent'](_0x51e928);_0x529d4b[_0x129594('0x1cb7')](_0x441c5f)[_0x129594('0x173b')](function(){const _0x51d223=_0x129594;_0x10375f[_0x51d223('0x77b')][_0x51d223('0x15e8')]({'id':_0xf14227[_0x51d223('0x77b')]['id']})['$promise'][_0x51d223('0x173b')](function(){const _0x2cc3ea=_0x51d223;_0x3c8d8a()[_0x2cc3ea('0x1a8b')](_0xf14227['mailAccounts'],{'id':_0xf14227[_0x2cc3ea('0x77b')]['id']}),_0x4fca0c[_0x2cc3ea('0xdfe')]({'title':_0x2cc3ea('0x11f2'),'msg':(_0xf14227[_0x2cc3ea('0x77b')][_0x2cc3ea('0x10ad')]||_0x2cc3ea('0x77b'))+_0x2cc3ea('0x25d2')}),_0x52b0a4(_0xf14227[_0x2cc3ea('0x77b')]);})[_0x51d223('0x103c')](function(_0x47592e){const _0x2ae5ec=_0x51d223;if(_0x47592e[_0x2ae5ec('0x1e07')]&&_0x47592e['data'][_0x2ae5ec('0x1d4a')]&&_0x47592e['data']['errors']['length']){_0xf14227[_0x2ae5ec('0x1d4a')]=_0x47592e[_0x2ae5ec('0x1e07')][_0x2ae5ec('0x1d4a')]||[{'message':_0x47592e[_0x2ae5ec('0x1b75')](),'type':_0x2ae5ec('0x99a')}];for(let _0x49d6e1=0x0;_0x49d6e1<_0x47592e[_0x2ae5ec('0x1e07')][_0x2ae5ec('0x1d4a')][_0x2ae5ec('0x543')];_0x49d6e1++){_0x4fca0c['error']({'title':_0x47592e[_0x2ae5ec('0x1e07')][_0x2ae5ec('0x1d4a')][_0x49d6e1]['type'],'msg':_0x47592e[_0x2ae5ec('0x1e07')][_0x2ae5ec('0x1d4a')][_0x49d6e1]['message']});}}else _0x4fca0c[_0x2ae5ec('0x15aa')]({'title':_0x47592e[_0x2ae5ec('0x276f')]?_0x2ae5ec('0x137')+_0x47592e[_0x2ae5ec('0x276f')]+_0x2ae5ec('0x160c')+_0x47592e[_0x2ae5ec('0x2696')]:'api.mailAccount.delete','msg':_0x47592e[_0x2ae5ec('0x1e07')]?JSON[_0x2ae5ec('0x100b')](_0x47592e['data'][_0x2ae5ec('0x67f')]):_0x47592e[_0x2ae5ec('0x67f')]||_0x47592e[_0x2ae5ec('0x1b75')]()});});},function(){});}function _0x436559(_0x2bce75){return _0x2bce75===null?undefined:new Date(_0x2bce75);}function _0x52b0a4(_0x360ff7){const _0x4b9077=_0x2ea87b;_0x529d4b[_0x4b9077('0x1cf4')](_0x360ff7);}}const _0x53e58c=_0x4e3d42,_0x69213d=_0x21a6a1['p']+_0x566993('0x50e'),_0x59c97c=_0x21a6a1['p']+_0x566993('0x1a39'),_0xabf29d=_0x21a6a1['p']+_0x566993('0x4b1'),_0x3948f4=_0x21a6a1['p']+_0x566993('0xcf1'),_0xe06121=_0x21a6a1['p']+_0x566993('0xc76'),_0x2f56d6=_0x21a6a1['p']+_0x566993('0x82'),_0x184343=_0x21a6a1['p']+_0x566993('0x290'),_0x150cf4=_0x21a6a1['p']+_0x566993('0x1383'),_0xa47360=_0x21a6a1['p']+_0x566993('0x1235'),_0x5763fe=_0x21a6a1['p']+_0x566993('0x8e0');_0x443394[_0x566993('0x17bb')]=['api',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),'Auth'];const _0x2fd147={'agent':_0x69213d,'autoreply':_0x59c97c,'close':_0xabf29d,'gotoif':_0x3948f4,'gotop':_0xe06121,'interval':_0x2f56d6,'noop':_0x184343,'queue':_0x150cf4,'system':_0xa47360,'tag':_0x5763fe};function _0x443394(_0x230426,_0x1d400c,_0x43051b,_0x261465,_0x58dcbe){const _0xcf6507=_0x566993,_0x7aeeba=this;_0x7aeeba[_0xcf6507('0x155f')]=_0x58dcbe[_0xcf6507('0x14d4')](),_0x7aeeba[_0xcf6507('0x77b')]={},_0x7aeeba[_0xcf6507('0x135f')]={'count':0x0,'rows':[]},_0x7aeeba['selectedMailAccountApps']=[],_0x7aeeba[_0xcf6507('0x1dc1')],_0x7aeeba[_0xcf6507('0xc49')]={'sort':_0xcf6507('0xb3')},_0x7aeeba['apps']=_0x3c8d8a()[_0xcf6507('0x12a4')](_0x3c8d8a()[_0xcf6507('0x1b45')]([{'app':_0xcf6507('0x1d55'),'appType':_0xcf6507('0x55a'),'types':[_0xcf6507('0x17b3'),'custom',_0xcf6507('0x3e3')],'fields':[],'isApp':![]},{'app':_0xcf6507('0x1086'),'appType':_0xcf6507('0x1086'),'type':_0xcf6507('0x1086'),'icon':_0xcf6507('0x108b'),'interval':_0xcf6507('0x17c5'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0xcf6507('0xa7b'),'type':'text','param':0x0}]},{'app':_0xcf6507('0x1ed'),'appType':_0xcf6507('0x1ed'),'type':'system','icon':_0xcf6507('0x108b'),'interval':_0xcf6507('0x17c5'),'required':!![],'isApp':!![],'extraApi':[{'name':_0xcf6507('0x2715'),'field':{'name':_0xcf6507('0x1b56'),'key':'name'},'route':_0xcf6507('0x1b56'),'filters':{'fields':_0xcf6507('0xd52'),'sort':_0xcf6507('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0xcf6507('0x1bfd'),'name':'command','type':_0xcf6507('0x86e'),'required':!![],'param':0x0},{'title':_0xcf6507('0xae6'),'name':_0xcf6507('0x1b56'),'type':'apiselect','values':'variables','value':_0xcf6507('0x1fd4'),'option':_0xcf6507('0x1fd4'),'defaultValues':[{'value':'\x27\x27','option':_0xcf6507('0x2187')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0xcf6507('0x2ac'),'type':'goto','icon':_0xcf6507('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xcf6507('0x1162'),'name':_0xcf6507('0xb3'),'type':_0xcf6507('0x1d81'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0xcf6507('0xf5d'),'appType':_0xcf6507('0xf5d'),'type':_0xcf6507('0xf5d'),'icon':_0xcf6507('0x108b'),'interval':_0xcf6507('0x17c5'),'isApp':!![],'fields':[{'title':_0xcf6507('0x5f4'),'name':_0xcf6507('0x1adb'),'type':'text','required':!![],'param':0x0},{'title':_0xcf6507('0x1cd7'),'name':_0xcf6507('0x1cd7'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0xcf6507('0x1ec9'),'name':'falsepriority','type':_0xcf6507('0x1d81'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0xcf6507('0x172'),'appType':'queue','foreignKey':_0xcf6507('0x542'),'type':'queue','icon':'icon-apps','interval':_0xcf6507('0x17c5'),'isApp':!![],'extraApi':[{'name':_0xcf6507('0xeae'),'field':{'name':_0xcf6507('0x172'),'key':_0xcf6507('0x10ad')},'route':_0xcf6507('0x1b0'),'filters':{'fields':_0xcf6507('0x1c66'),'sort':_0xcf6507('0x10ad'),'nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':_0xcf6507('0x1436'),'name':_0xcf6507('0x172'),'type':'apiselect','values':'queues','value':_0xcf6507('0x26db'),'option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0xcf6507('0x1b9a'),'name':'timeout','type':_0xcf6507('0x1d81'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0xcf6507('0x7b0'),'appType':_0xcf6507('0x7b0'),'type':_0xcf6507('0x7b0'),'foreignKey':_0xcf6507('0x181c'),'icon':_0xcf6507('0x108b'),'interval':_0xcf6507('0x17c5'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0xcf6507('0x7b0'),'key':_0xcf6507('0x10ad')},'route':_0xcf6507('0x166f'),'filters':{'fields':_0xcf6507('0xd52'),'sort':'name','nolimit':!![],'role':_0xcf6507('0x7b0')},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0xcf6507('0x7b0'),'type':'apiselect','values':_0xcf6507('0x11fa'),'value':_0xcf6507('0x660'),'option':_0xcf6507('0x660'),'required':!![],'param':0x0},{'title':'Timeout','name':_0xcf6507('0x1f84'),'type':_0xcf6507('0x1d81'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0xcf6507('0x23fe'),'appType':_0xcf6507('0x23fe'),'type':'autoreply','icon':_0xcf6507('0x108b'),'interval':_0xcf6507('0x17c5'),'isApp':!![],'fields':[{'title':_0xcf6507('0x611'),'name':_0xcf6507('0x611'),'type':_0xcf6507('0xc65'),'defaultValue':'1','values':[{'option':_0xcf6507('0x1f24'),'value':'1'},{'option':_0xcf6507('0x2322'),'value':'0'}],'required':!![],'param':0x0},{'title':'Text','name':_0xcf6507('0x86e'),'type':_0xcf6507('0x267e'),'required':!![],'param':0x1}]},{'app':_0xcf6507('0x2151'),'appType':_0xcf6507('0x2151'),'type':_0xcf6507('0x2151'),'icon':'icon-apps','interval':_0xcf6507('0x17c5'),'isApp':!![],'fields':[{'title':_0xcf6507('0x2ab'),'name':_0xcf6507('0x2766'),'type':_0xcf6507('0x86e'),'required':!![],'param':0x0}]},{'app':_0xcf6507('0x23b4'),'appType':_0xcf6507('0x23b4'),'type':'tag','foreignKey':_0xcf6507('0xe46'),'icon':_0xcf6507('0x108b'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0xcf6507('0x23b4'),'key':_0xcf6507('0x10ad')},'route':'tag','filters':{'fields':_0xcf6507('0xd52'),'sort':_0xcf6507('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':_0xcf6507('0x23b4'),'type':_0xcf6507('0x23fd'),'values':_0xcf6507('0x22ac'),'value':_0xcf6507('0x2648'),'option':_0xcf6507('0x2648'),'required':!![],'param':0x0}]}],[_0xcf6507('0x17e')]),{'isApp':![]}),_0x7aeeba[_0xcf6507('0x3e3')]={'group':{'name':'opt1','pull':'clone'},'animation':0x64,'sort':![]},_0x7aeeba[_0xcf6507('0x1f7e')]={'group':{'name':_0xcf6507('0x1fb7'),'put':_0xcf6507('0x1749')},'animation':0x64,'onAdd':function(_0x32812e){const _0x5c63df=_0xcf6507;_0x5af705(_0x32812e,_0x32812e[_0x5c63df('0x1c1b')]);},'onSort':function(){_0x445150();}},_0x7aeeba[_0xcf6507('0xb9c')]=_0x3291c7,_0x7aeeba[_0xcf6507('0x2051')]=_0x3a5227,_0x7aeeba[_0xcf6507('0x1365')]=_0x1be94f,_0x7aeeba['editMailAccountApp']=_0x5af705,_0x7aeeba[_0xcf6507('0xc28')]=_0x5f19a2,_0x7aeeba[_0xcf6507('0xa38')]=_0x167fd5,_0x7aeeba[_0xcf6507('0x1268')]=_0xacf746,_0x7aeeba[_0xcf6507('0x131f')]=_0x445150,_0x7aeeba['getIntervals']=_0x23df0b;function _0x3291c7(_0x32ef61,_0x2f1606){const _0x1f27e0=_0xcf6507;_0x7aeeba[_0x1f27e0('0x77b')]=_0x32ef61,_0x7aeeba['crudPermissions']=typeof _0x2f1606!==_0x1f27e0('0x6e5')?_0x2f1606:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x7aeeba[_0x1f27e0('0x1f7e')][_0x1f27e0('0x6fc')]=!_0x7aeeba[_0x1f27e0('0x1dc1')][_0x1f27e0('0x1f3d')]?!![]:![],_0x7aeeba[_0x1f27e0('0xc49')]['id']=_0x32ef61['id'],_0x7aeeba[_0x1f27e0('0xc49')][_0x1f27e0('0xbb6')]=!![],_0x7aeeba[_0x1f27e0('0xc49')][_0x1f27e0('0x1c7f')]=!![],_0x7aeeba[_0x1f27e0('0x1365')](),_0x7aeeba['getIntervals']();}function _0x3a5227(_0x3048f4,_0x128691,_0x17ed8f){const _0x208614=_0xcf6507,_0x4594b7=_0x1d400c[_0x208614('0x1d02')]()[_0x208614('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')['htmlContent'](_0x208614('0x15b9')+_0x3048f4[_0x208614('0x17e')]+''+_0x208614('0xd23'))['ariaLabel']('delete\x20application')[_0x208614('0x21de')](_0x17ed8f)['ok']('OK')['cancel'](_0x208614('0x468'));_0x1d400c[_0x208614('0x1cb7')](_0x4594b7)[_0x208614('0x173b')](function(){const _0x34a3d4=_0x208614;_0x7aeeba['mailAccountApps'][_0x34a3d4('0x6aa')][_0x34a3d4('0x553')](_0x128691,0x1),_0x445150();},function(){const _0x50eb21=_0x208614;console['log'](_0x50eb21('0x468'));});}function _0x5af705(_0x20b51a,_0x1b92c2){const _0x4a4def=_0xcf6507;if(_0x7aeeba[_0x4a4def('0x135f')][_0x4a4def('0x6aa')][_0x4a4def('0x543')]){const _0x584ed8=_0x7aeeba[_0x4a4def('0x135f')][_0x4a4def('0x6aa')][_0x1b92c2]?_0x7aeeba['mailAccountApps'][_0x4a4def('0x6aa')][_0x1b92c2]:_0x7aeeba[_0x4a4def('0x135f')][_0x4a4def('0x6aa')][0x0],_0x518dcb=(_0x584ed8[_0x4a4def('0x9d7')]||_0x584ed8[_0x4a4def('0x17e')])[_0x4a4def('0x1e68')]();_0x1d400c['show']({'controller':_0x4a4def('0x1775')+_0x518dcb+_0x4a4def('0x1c96'),'controllerAs':'vm','templateUrl':_0x2fd147[_0x518dcb],'parent':angular['element'](_0x43051b[_0x4a4def('0x1a5')]),'targetEvent':_0x20b51a,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x584ed8,'mailAccount':_0x7aeeba[_0x4a4def('0x77b')],'crudPermissions':_0x7aeeba[_0x4a4def('0x1dc1')]}})[_0x4a4def('0x173b')](function(_0x9b50da){const _0xa75625=_0x4a4def;_0x9b50da&&(_0x9b50da['id']?_0x7aeeba[_0xa75625('0x135f')][_0xa75625('0x6aa')][_0x1b92c2]=_0x9b50da:_0x7aeeba['mailAccountApps'][_0xa75625('0x6aa')][_0xa75625('0x553')](_0x1b92c2,0x0,_0x9b50da),_0x445150());})[_0x4a4def('0x103c')](function(_0x208b25){const _0x19e0de=_0x4a4def;_0x208b25&&_0x261465['error']({'title':_0x208b25['status']?'API:'+_0x208b25[_0x19e0de('0x276f')]+_0x19e0de('0x160c')+_0x208b25[_0x19e0de('0x2696')]:_0x19e0de('0x974'),'msg':_0x208b25[_0x19e0de('0x1e07')]?JSON[_0x19e0de('0x100b')](_0x208b25[_0x19e0de('0x1e07')]):_0x208b25['toString']()});});}}function _0x5f19a2(_0x313b64,_0x1c4d7c){const _0x166eca=_0xcf6507;if(_0x7aeeba[_0x166eca('0x135f')][_0x166eca('0x6aa')][_0x166eca('0x543')]){const _0x56edde=_0x7aeeba[_0x166eca('0x135f')][_0x166eca('0x6aa')][_0x1c4d7c]?_0x7aeeba[_0x166eca('0x135f')][_0x166eca('0x6aa')][_0x1c4d7c]:_0x7aeeba[_0x166eca('0x135f')]['rows'][0x0];_0x1d400c['show']({'controller':_0x166eca('0x176e'),'controllerAs':'vm','templateUrl':_0x2f56d6,'parent':angular[_0x166eca('0xb6d')](_0x43051b[_0x166eca('0x1a5')]),'targetEvent':_0x313b64,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x56edde[_0x166eca('0x55a')],'IntervalId':_0x56edde['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x7aeeba[_0x166eca('0x1dc1')]}})[_0x166eca('0x173b')](function(_0x2f91b2){const _0x5f0ea1=_0x166eca;_0x2f91b2&&(_0x56edde[_0x5f0ea1('0x55a')]=_0x2f91b2[_0x5f0ea1('0x55a')]||_0x5f0ea1('0x17c5'),_0x56edde[_0x5f0ea1('0x600')]=_0x2f91b2[_0x5f0ea1('0x600')]||null,_0x445150());});}}function _0x445150(){const _0x226958=_0xcf6507;let _0x4e50ac=0x1,_0x17a310=[];for(let _0x48aae6=0x0;_0x48aae6<_0x7aeeba[_0x226958('0x135f')][_0x226958('0x6aa')]['length'];_0x48aae6++){const _0x36fcee=_0x7aeeba['mailAccountApps'][_0x226958('0x6aa')][_0x48aae6],_0x33fdb5=[],_0x227e1a=[];_0x36fcee[_0x226958('0x21c4')]=_0x36fcee[_0x226958('0x55a')]!==_0x226958('0x17c5')?[_0x36fcee[_0x226958('0x55a')]]:_0x36fcee[_0x226958('0x600')]?_0x3c8d8a()['map'](_0x3c8d8a()['filter'](_0x7aeeba[_0x226958('0x21c4')][_0x226958('0x6aa')],{'IntervalId':_0x36fcee[_0x226958('0x600')]}),_0x226958('0x55a')):[],_0x36fcee[_0x226958('0x2b9')]=_0x7aeeba[_0x226958('0x77b')][_0x226958('0x2b9')],_0x36fcee[_0x226958('0x1a60')]=_0x7aeeba['mailAccount'][_0x226958('0x1a60')],_0x36fcee[_0x226958('0x1810')]&&(_0x36fcee[_0x226958('0x1810')]=_0x36fcee[_0x226958('0x1810')]['toLowerCase']()),_0x36fcee[_0x226958('0xb3')]=_0x33fdb5[_0x226958('0x543')]?_0x3c8d8a()['last'](_0x33fdb5)[_0x226958('0xb3')]+0x1:_0x4e50ac,_0x4e50ac=(_0x227e1a[_0x226958('0x543')]?_0x3c8d8a()[_0x226958('0x7f')](_0x227e1a)[_0x226958('0xb3')]:_0x36fcee['priority'])+0x1,_0x17a310=_0x3c8d8a()[_0x226958('0x163f')](_0x17a310,_0x33fdb5,[_0x36fcee],_0x227e1a);}_0x230426[_0x226958('0x77b')][_0x226958('0x271c')]({'id':_0x7aeeba[_0x226958('0x77b')]['id']},_0x3c8d8a()[_0x226958('0x1b45')](_0x17a310,'priority'))[_0x226958('0x1964')]['then'](function(_0x215e77){const _0x4b74e8=_0x226958;_0x7aeeba[_0x4b74e8('0x135f')][_0x4b74e8('0x6aa')]=_0x215e77[_0x4b74e8('0x6aa')];})[_0x226958('0x103c')](function(_0x3c91a5){const _0x5a92e3=_0x226958;console[_0x5a92e3('0x15aa')](_0x3c91a5);});}function _0x8c1d30(_0x2d69be){const _0x1121a5=_0xcf6507;_0x7aeeba[_0x1121a5('0x135f')]=_0x2d69be||{'count':0x0,'rows':[]};}function _0x23df0b(){const _0x412a83=_0xcf6507;return _0x230426['interval'][_0x412a83('0x1d97')]({'fields':_0x412a83('0x23e4')})[_0x412a83('0x1964')][_0x412a83('0x173b')](function(_0x27319b){const _0x2a3025=_0x412a83;_0x7aeeba[_0x2a3025('0x21c4')]=_0x27319b;})[_0x412a83('0x103c')](function(_0x496076){const _0xec458c=_0x412a83;console[_0xec458c('0x15aa')](_0x496076);});}function _0x1be94f(){const _0x5b2d72=_0xcf6507;_0x7aeeba[_0x5b2d72('0x2219')]=_0x230426[_0x5b2d72('0x77b')][_0x5b2d72('0xb')](_0x7aeeba['query'],_0x8c1d30)[_0x5b2d72('0x1964')];}function _0x167fd5(_0x10a2f4){const _0x43737f=_0xcf6507;_0x3c8d8a()[_0x43737f('0x1a8b')](_0x7aeeba[_0x43737f('0x135f')][_0x43737f('0x6aa')],{'id':_0x10a2f4['id']}),_0x445150(),_0x261465[_0x43737f('0xdfe')]({'title':_0x43737f('0x236d'),'msg':_0x10a2f4[_0x43737f('0x17e')]?_0x10a2f4['app']+_0x43737f('0x25d2'):''});}function _0xacf746(_0x19558e){const _0x292939=_0xcf6507,_0x2cda62=_0x1d400c[_0x292939('0x1d02')]()[_0x292939('0x20d6')](_0x292939('0x8a0'))[_0x292939('0xf8b')](''+_0x7aeeba[_0x292939('0x26a1')][_0x292939('0x543')]+_0x292939('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x292939('0x296'))[_0x292939('0x21de')](_0x19558e)['ok']('OK')['cancel'](_0x292939('0x468'));_0x1d400c[_0x292939('0x1cb7')](_0x2cda62)[_0x292939('0x173b')](function(){const _0x2cffc6=_0x292939;_0x7aeeba[_0x2cffc6('0x26a1')]['forEach'](function(_0x43da6f){const _0x197f88=_0x2cffc6;_0x3c8d8a()[_0x197f88('0x1a8b')](_0x7aeeba[_0x197f88('0x135f')][_0x197f88('0x6aa')],{'id':_0x43da6f['id']});}),_0x7aeeba[_0x2cffc6('0x26a1')]=[],_0x445150();});}}const _0x533827=_0x443394;_0x4ec528[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'api',_0x566993('0x77b'),_0x566993('0x2632'),'realtime',_0x566993('0x638'),'Auth',_0x566993('0x1dc1')];function _0x4ec528(_0x2fd4c6,_0x1eb811,_0x59d6f6,_0x2660a9,_0x4dd69a,_0x51e16c,_0x10a8d6,_0x4dee43,_0x5434eb,_0x395ad4){const _0xd3c39=_0x566993,_0x17599a=this;_0x17599a['currentUser']=_0x5434eb[_0xd3c39('0x14d4')](),_0x17599a[_0xd3c39('0x77b')]=_0x4dd69a,_0x17599a[_0xd3c39('0x1dc1')]=_0x395ad4,_0x17599a[_0xd3c39('0x12a7')]=_0x10a8d6,_0x17599a[_0xd3c39('0x1b1f')]=[],_0x17599a['allowedItems']=[],_0x17599a[_0xd3c39('0x5f8')]=[],_0x17599a['startingAllowedItems']=[],_0x17599a[_0xd3c39('0x15c9')]=[],_0x17599a[_0xd3c39('0x277e')]=![],_0x17599a[_0xd3c39('0x2535')]=_0x43973c,_0x17599a[_0xd3c39('0x21dc')]=_0x33862c,_0x17599a[_0xd3c39('0x18e2')]=_0x27e2de,_0x17599a['dualMultiselectOptions']={'readOnly':!_0x17599a[_0xd3c39('0x1dc1')][_0xd3c39('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xd3c39('0x10ad'),'line1':_0xd3c39('0x572'),'line2':[_0xd3c39('0x10ad'),_0xd3c39('0x138c')],'line3':'','labelAll':_0x4dee43[_0xd3c39('0x1467')]('MAIL.ALL_AGENTS'),'labelSelected':_0x4dee43[_0xd3c39('0x1467')](_0xd3c39('0x1e6a')),'transferCallback':function(){const _0x48123f=_0xd3c39,_0xcc62cb=_0x3c8d8a()[_0x48123f('0x226b')](_0x17599a[_0x48123f('0x15c9')],_0x17599a[_0x48123f('0x5f8')],'id');_0x17599a[_0x48123f('0x277e')]=_0x3c8d8a()[_0x48123f('0x1a56')](_0xcc62cb)?![]:!![];}};function _0x43973c(){const _0x29ea33=_0xd3c39;return _0x5434eb[_0x29ea33('0x1b4e')](_0x29ea33('0x79b'))?_0x1c8af3()['catch'](function(_0x5b9d7e){const _0x193015=_0x29ea33;_0x59d6f6[_0x193015('0x15aa')]({'title':_0x5b9d7e[_0x193015('0x276f')]?_0x193015('0x137')+_0x5b9d7e[_0x193015('0x276f')]+_0x193015('0x160c')+_0x5b9d7e[_0x193015('0x2696')]:_0x193015('0x152b'),'msg':_0x5b9d7e[_0x193015('0x276f')]?JSON['stringify'](_0x5b9d7e['data']):_0x5b9d7e[_0x193015('0x1b75')]()});}):_0x50c2da()['then'](function(_0xffce4){return _0x17599a['section']=_0xffce4,_0x1c8af3();})['catch'](function(_0x13d441){const _0x2b2070=_0x29ea33;_0x59d6f6[_0x2b2070('0x15aa')]({'title':_0x13d441['status']?'API:'+_0x13d441[_0x2b2070('0x276f')]+_0x2b2070('0x160c')+_0x13d441[_0x2b2070('0x2696')]:_0x2b2070('0x152b'),'msg':_0x13d441[_0x2b2070('0x276f')]?JSON[_0x2b2070('0x100b')](_0x13d441[_0x2b2070('0x1e07')]):_0x13d441[_0x2b2070('0x1b75')]()});});}function _0x50c2da(){return _0x1eb811(function(_0x5a74e9,_0x3fbb28){const _0x22fa18=a0_0xde5e;_0x2660a9[_0x22fa18('0x170e')][_0x22fa18('0x1d97')]({'userProfileId':_0x17599a['currentUser'][_0x22fa18('0x1946')],'name':_0x22fa18('0x1272')})[_0x22fa18('0x1964')]['then'](function(_0x1a2284){const _0x5c6b8c=_0x1a2284&&_0x1a2284['rows']?_0x1a2284['rows'][0x0]:null;_0x5a74e9(_0x5c6b8c);})['catch'](function(_0xb04277){_0x3fbb28(_0xb04277);});});}function _0x1c8af3(){return _0x1eb811(function(_0x247267,_0x2096df){const _0x5a1ba7=a0_0xde5e;return _0x2459ac()['then'](function(_0x47d5d0){const _0x452af8=a0_0xde5e;return _0x17599a[_0x452af8('0x1b1f')]=_0x47d5d0['rows']?_0x47d5d0[_0x452af8('0x6aa')]:[],_0x5434eb[_0x452af8('0x1b4e')](_0x452af8('0x79b'))?_0x47d5d0:_0x17599a[_0x452af8('0x17c9')]?_0x17599a[_0x452af8('0x17c9')][_0x452af8('0x273e')]?_0x47d5d0:_0x112812():null;})['then'](function(_0x5f09f5){const _0x5edde6=a0_0xde5e,_0x325897=_0x5f09f5&&_0x5f09f5[_0x5edde6('0x6aa')]?_0x5f09f5[_0x5edde6('0x6aa')]:[];return _0x17599a[_0x5edde6('0x203e')]=_0x3c8d8a()['map'](_0x325897,function(_0x54e786){const _0xe0d1c7=_0x5edde6;return _0x3c8d8a()['find'](_0x17599a[_0xe0d1c7('0x1b1f')],{'id':_0x5434eb['hasRole']('admin')||_0x17599a['section'][_0xe0d1c7('0x273e')]?_0x54e786['id']:_0x54e786[_0xe0d1c7('0x1ce0')]});}),_0x17599a[_0x5edde6('0x1493')]=angular[_0x5edde6('0x2e3')](_0x17599a[_0x5edde6('0x203e')]),_0x17599a[_0x5edde6('0x1b1f')][_0x5edde6('0xa6a')](function(_0x303a63){const _0x41f0d0=_0x5edde6,_0x8068e9=_0x3c8d8a()[_0x41f0d0('0x18ab')](_0x17599a[_0x41f0d0('0x203e')],{'id':_0x303a63['id']});_0x5434eb[_0x41f0d0('0x1b4e')](_0x41f0d0('0x79b'))?_0x303a63[_0x41f0d0('0xf02')]=!![]:_0x303a63[_0x41f0d0('0xf02')]=typeof _0x8068e9!==_0x41f0d0('0x6e5')?!![]:![];}),_0x4fbf13();})[_0x5a1ba7('0x173b')](function(_0x5b3f05){const _0xe2a6a1=_0x5a1ba7,_0x558c5a=_0x5b3f05&&_0x5b3f05[_0xe2a6a1('0x6aa')]?_0x5b3f05[_0xe2a6a1('0x6aa')]:[];_0x17599a[_0xe2a6a1('0x5f8')]=_0x3c8d8a()[_0xe2a6a1('0x8a2')](_0x558c5a,function(_0x305457){const _0x3a3616=_0xe2a6a1,_0x2791e8=_0x3c8d8a()[_0x3a3616('0x18ab')](_0x17599a[_0x3a3616('0x1b1f')],{'id':_0x305457['id']});return _0x2791e8[_0x3a3616('0x1692')]=_0x305457[_0x3a3616('0x122d')]?'penalty\x20'+_0x305457['UserMailAccount'][_0x3a3616('0x1692')]:'',_0x2791e8['internal']=typeof _0x305457['internal']!==_0x3a3616('0x6e5')?'<'+_0x305457[_0x3a3616('0x138c')]+'>':'',_0x2791e8;}),_0x17599a[_0xe2a6a1('0x15c9')]=angular[_0xe2a6a1('0x2e3')](_0x17599a[_0xe2a6a1('0x5f8')]),_0x17599a[_0xe2a6a1('0x52e')][_0xe2a6a1('0x5f8')]=_0x17599a[_0xe2a6a1('0x5f8')],_0x17599a['dualMultiselectOptions'][_0xe2a6a1('0x1b1f')]=_0x3c8d8a()[_0xe2a6a1('0x1bd3')](_0x17599a[_0xe2a6a1('0x203e')],_0x17599a[_0xe2a6a1('0x52e')]['selectedItems'],'id'),_0x247267();})[_0x5a1ba7('0x103c')](function(_0x5b1d29){_0x2096df(_0x5b1d29);});});}function _0x112812(){return _0x1eb811(function(_0x4e38bc,_0x5407ba){const _0x51a686=a0_0xde5e;return _0x2660a9['userProfileResource'][_0x51a686('0x1d97')]({'sectionId':_0x17599a[_0x51a686('0x17c9')]['id'],'nolimit':!![]})[_0x51a686('0x1964')][_0x51a686('0x173b')](function(_0x1be79c){_0x4e38bc(_0x1be79c);})['catch'](function(_0x412883){_0x5407ba(_0x412883);});});}function _0x4fbf13(){return _0x1eb811(function(_0x5318d6,_0x2385f6){const _0xbaa5eb=a0_0xde5e;return _0x2660a9[_0xbaa5eb('0x77b')][_0xbaa5eb('0x1903')]({'id':_0x17599a[_0xbaa5eb('0x77b')]['id'],'fields':_0xbaa5eb('0x1d65'),'nolimit':!![],'role':_0xbaa5eb('0x7b0')})[_0xbaa5eb('0x1964')][_0xbaa5eb('0x173b')](function(_0x555039){_0x5318d6(_0x555039);})['catch'](function(_0x486add){_0x2385f6(_0x486add);});});}function _0x2459ac(){return _0x1eb811(function(_0x1e9180,_0x3a76a3){const _0x452a6f=a0_0xde5e;return _0x2660a9[_0x452a6f('0x166f')][_0x452a6f('0x1d97')]({'fields':_0x452a6f('0x1d65'),'nolimit':!![],'role':_0x452a6f('0x7b0')})[_0x452a6f('0x1964')][_0x452a6f('0x173b')](function(_0x4d90d8){_0x1e9180(_0x4d90d8);})[_0x452a6f('0x103c')](function(_0x173b14){_0x3a76a3(_0x173b14);});});}function _0x2ddcf6(_0x961189){return _0x1eb811(function(_0x52d393,_0x570c10){const _0x52d06b=a0_0xde5e;_0x3c8d8a()[_0x52d06b('0x1a56')](_0x961189)?_0x52d393():_0x2660a9[_0x52d06b('0x77b')][_0x52d06b('0x1ff1')]({'id':_0x17599a[_0x52d06b('0x77b')]['id'],'ids':_0x3c8d8a()[_0x52d06b('0x8a2')](_0x961189,'id')})[_0x52d06b('0x1964')][_0x52d06b('0x173b')](function(){_0x52d393();})[_0x52d06b('0x103c')](function(_0x35a031){_0x570c10(_0x35a031);});});}function _0x1c8f3e(_0x382264){return _0x1eb811(function(_0x522dbe,_0x3db0b0){const _0x3b8f3e=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x382264)?_0x522dbe():_0x2660a9[_0x3b8f3e('0x77b')][_0x3b8f3e('0x2017')]({'id':_0x17599a[_0x3b8f3e('0x77b')]['id'],'ids':_0x3c8d8a()[_0x3b8f3e('0x8a2')](_0x382264,'id')})[_0x3b8f3e('0x1964')][_0x3b8f3e('0x173b')](function(){_0x522dbe();})[_0x3b8f3e('0x103c')](function(_0x1432b4){_0x3db0b0(_0x1432b4);});});}function _0x33862c(){const _0x4cfddb=_0xd3c39,_0xbe29bb=_0x3c8d8a()[_0x4cfddb('0x1bd3')](_0x17599a[_0x4cfddb('0x15c9')],_0x17599a[_0x4cfddb('0x5f8')],'id'),_0x1666e2=_0x3c8d8a()[_0x4cfddb('0x1bd3')](_0x17599a['selectedItems'],_0x17599a[_0x4cfddb('0x15c9')],'id');return _0x1c8f3e(_0xbe29bb)[_0x4cfddb('0x173b')](function(){return _0x2ddcf6(_0x1666e2);})[_0x4cfddb('0x173b')](function(){const _0xeecc90=_0x4cfddb;_0x17599a[_0xeecc90('0x277e')]=![],_0x17599a[_0xeecc90('0x1493')]=angular[_0xeecc90('0x2e3')](_0x17599a[_0xeecc90('0x203e')]),_0x17599a[_0xeecc90('0x15c9')]=angular[_0xeecc90('0x2e3')](_0x17599a['selectedItems']),_0x59d6f6[_0xeecc90('0xdfe')]({'title':_0xeecc90('0x23db'),'msg':_0xeecc90('0x2027')});})[_0x4cfddb('0x103c')](function(_0xc09abe){const _0x268a26=_0x4cfddb;_0x59d6f6[_0x268a26('0x15aa')]({'title':_0xc09abe[_0x268a26('0x276f')]?'API:'+_0xc09abe['status']+_0x268a26('0x160c')+_0xc09abe[_0x268a26('0x2696')]:_0x268a26('0x1f48'),'msg':_0xc09abe[_0x268a26('0x276f')]?JSON[_0x268a26('0x100b')](_0xc09abe[_0x268a26('0x1e07')]):_0xc09abe[_0x268a26('0x1b75')]()});});}function _0x27e2de(){const _0x10509d=_0xd3c39;_0x2fd4c6[_0x10509d('0x1cf4')]();}}const _0x1b832f=_0x4ec528;_0x26e36e[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x20b6'),_0x566993('0x77b'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x26e36e(_0x2f2a2b,_0x3cdc3d,_0x3c0f51,_0x10c96e,_0xd35d33,_0x39029f,_0x20f5bb,_0x24c3f7){const _0x43d0be=_0x566993,_0x5bb57e=this;_0x5bb57e[_0x43d0be('0x155f')]=_0x20f5bb[_0x43d0be('0x14d4')](),_0x5bb57e[_0x43d0be('0x1d4a')]=[],_0x5bb57e[_0x43d0be('0x20d6')]=_0x43d0be('0x1344')+(_0x10c96e['appType']||_0x10c96e['app'])[_0x43d0be('0x1164')](),_0x5bb57e['agent']=angular[_0x43d0be('0x2e3')](_0x10c96e),_0x5bb57e[_0x43d0be('0x1dc1')]=_0x24c3f7,_0x5bb57e[_0x43d0be('0xb0')]={};if(_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1c00')])switch(_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x9d7')]?_0x5bb57e['agent'][_0x43d0be('0x9d7')][_0x43d0be('0x1e68')]():_0x5bb57e[_0x43d0be('0x7b0')]['app'][_0x43d0be('0x1e68')]()){case _0x43d0be('0xbb4'):break;case _0x43d0be('0x1601'):{const _0x2ad5f6=_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1c00')][_0x43d0be('0x43a')](',');_0x5bb57e['agent'][_0x43d0be('0x237a')]=_0x2ad5f6[0x0],_0x5bb57e[_0x43d0be('0x7b0')]['language']=_0x2ad5f6[0x1],_0x5bb57e['agent']['welcomemessage']=_0x2ad5f6[_0x43d0be('0x2456')](0x2,_0x2ad5f6[_0x43d0be('0x543')])[_0x43d0be('0x2259')](',');}break;case _0x43d0be('0x1680'):{const _0x4ba200=_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1c00')][_0x43d0be('0x43a')](',');_0x5bb57e[_0x43d0be('0x7b0')]['accesskeyid']=_0x4ba200[0x0],_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1d93')]=_0x4ba200[0x1],_0x5bb57e['agent'][_0x43d0be('0x10fc')]=_0x4ba200[0x2],_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x53')]=_0x4ba200[0x3],_0x5bb57e[_0x43d0be('0x7b0')]['welcomemessage']=_0x4ba200[_0x43d0be('0x2456')](0x4,_0x4ba200[_0x43d0be('0x543')])['join'](',');}break;case _0x43d0be('0x23fe'):{const _0x45a918=_0x5bb57e['agent'][_0x43d0be('0x1c00')][_0x43d0be('0x43a')](',');_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x611')]=isNaN(_0x45a918[0x0])?_0x45a918[0x0]:parseInt(_0x45a918[0x0],0xa),_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x86e')]=_0x45a918[_0x43d0be('0x2456')](0x1,_0x45a918['length'])[_0x43d0be('0x2259')](',');}break;case _0x43d0be('0x67f'):_0x5bb57e[_0x43d0be('0x7b0')]['text']=_0x5bb57e[_0x43d0be('0x7b0')]['appdata'];break;case _0x43d0be('0x256d'):_0x5bb57e['agent']['name']=_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1c00')][_0x43d0be('0x43a')]('=')[0x0],_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0xa7b')]=_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1c00')][_0x43d0be('0x43a')]('=')[0x1];break;case _0x43d0be('0x2426'):_0x5bb57e['agent'][_0x43d0be('0x220b')]=_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1c00')];break;default:{const _0xadd679=_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1c00')][_0x43d0be('0x43a')](',');_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x7b0')]=_0x3c8d8a()[_0x43d0be('0x1a56')](_0xadd679[0x0])?_0xadd679[0x0]:isNaN(_0xadd679[0x0])?_0xadd679[0x0]:parseInt(_0xadd679[0x0],0xa),_0x5bb57e[_0x43d0be('0x7b0')]['timeout']=_0x3c8d8a()['isEmpty'](_0xadd679[0x1])?_0xadd679[0x1]:isNaN(_0xadd679[0x1])?_0xadd679[0x1]:parseInt(_0xadd679[0x1],0xa);}break;}else _0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1f84')]=0x1e;_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x1810')]&&_0x5bb57e['agent'][_0x43d0be('0x1810')]['toLowerCase']()==='outbound'&&_0x5bb57e['agent'][_0x43d0be('0x9d7')]['toLowerCase']()===_0x43d0be('0x1edc')&&(_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0x23f7')]=_0x5bb57e[_0x43d0be('0x7b0')][_0x43d0be('0xa04')]?_0x5bb57e[_0x43d0be('0x7b0')]['phone']['split']('$')[0x0]:undefined,_0x5bb57e[_0x43d0be('0x7b0')]['callerId']=_0x5bb57e[_0x43d0be('0x7b0')]['callerID']?_0x43d0be('0x20a8')+_0x5bb57e[_0x43d0be('0x7b0')]['callerID']:undefined);_0x5bb57e['saveMailAccountApp']=_0x4a13cc,_0x5bb57e['closeDialog']=_0x45c01f,_0x20f5bb['hasRole'](_0x43d0be('0x79b'))?_0x39029f[_0x43d0be('0x166f')][_0x43d0be('0x1d97')]({'fields':'id,name','sort':_0x43d0be('0x10ad'),'nolimit':_0x43d0be('0x799'),'role':'agent'})['$promise'][_0x43d0be('0x173b')](function(_0x1fe7f3){const _0x34ea2d=_0x43d0be;_0x5bb57e[_0x34ea2d('0x11fa')]=_0x1fe7f3['rows']||[];})['catch'](function(_0x26b33f){const _0x72199e=_0x43d0be;_0x3c0f51['error']({'title':_0x26b33f[_0x72199e('0x276f')]?_0x72199e('0x137')+_0x26b33f['status']+_0x72199e('0x160c')+_0x26b33f['statusText']:_0x72199e('0x152b'),'msg':_0x26b33f['data']?JSON['stringify'](_0x26b33f[_0x72199e('0x1e07')]):_0x26b33f[_0x72199e('0x1b75')]()});}):_0x39029f[_0x43d0be('0x166f')][_0x43d0be('0x1d97')]({'fields':_0x43d0be('0xd52'),'sort':_0x43d0be('0x10ad'),'nolimit':'true','role':'agent'})[_0x43d0be('0x1964')]['then'](function(_0x4ece76){const _0x486ae5=_0x43d0be;_0x5bb57e[_0x486ae5('0x11fa')]=_0x4ece76[_0x486ae5('0x6aa')]||[];})['then'](function(){const _0x459921=_0x43d0be;return _0x39029f[_0x459921('0x170e')][_0x459921('0x1d97')]({'userProfileId':_0x5bb57e[_0x459921('0x155f')][_0x459921('0x1946')],'sectionId':0xca})[_0x459921('0x1964')];})[_0x43d0be('0x173b')](function(_0x5bcf50){const _0x117ba4=_0x43d0be,_0x4dbf0b=_0x5bcf50&&_0x5bcf50[_0x117ba4('0x6aa')]?_0x5bcf50[_0x117ba4('0x6aa')][0x0]:null;if(!_0x4dbf0b){const _0x3df49e=[];let _0x18810d=null;_0x5bb57e[_0x117ba4('0x7b0')]&&(_0x18810d=_0x3c8d8a()[_0x117ba4('0x18ab')](_0x5bb57e[_0x117ba4('0x11fa')],{'name':_0x5bb57e[_0x117ba4('0x7b0')][_0x117ba4('0x7b0')]}));for(let _0x33e7c0=0x0;_0x33e7c0<_0x5bb57e['agents'][_0x117ba4('0x543')];_0x33e7c0++){_0x18810d&&_0x5bb57e['agents'][_0x33e7c0]['id']===_0x18810d['id']&&(_0x5bb57e['agents'][_0x33e7c0][_0x117ba4('0x268e')]=![],_0x3df49e[_0x117ba4('0x18bb')](_0x5bb57e[_0x117ba4('0x11fa')][_0x33e7c0]));}_0x5bb57e[_0x117ba4('0x11fa')]=_0x3df49e;}else{if(!_0x4dbf0b[_0x117ba4('0x273e')])return _0x39029f[_0x117ba4('0xda9')][_0x117ba4('0x1d97')]({'sectionId':_0x4dbf0b['id']})['$promise'][_0x117ba4('0x173b')](function(_0x131a1f){const _0x551b68=_0x117ba4,_0x482760=_0x3c8d8a()['map'](_0x131a1f['rows'],function(_0x1d0bbe){const _0x5d44d6=a0_0xde5e;return _0x3c8d8a()[_0x5d44d6('0x18ab')](_0x5bb57e[_0x5d44d6('0x11fa')],{'id':_0x1d0bbe['resourceId']});});let _0x5e6a14=null;_0x5bb57e['agent']&&(_0x5e6a14=_0x3c8d8a()['find'](_0x5bb57e[_0x551b68('0x11fa')],{'name':_0x5bb57e[_0x551b68('0x7b0')]['agent']}));if(_0x5e6a14&&!_0x3c8d8a()[_0x551b68('0x1ec')](_0x482760,['id',_0x5e6a14['id']])){const _0x4baa56=_0x3c8d8a()[_0x551b68('0x18ab')](_0x5bb57e[_0x551b68('0x11fa')],{'id':_0x5e6a14['id']});_0x4baa56[_0x551b68('0x268e')]=![],_0x482760[_0x551b68('0x18bb')](_0x4baa56);}_0x5bb57e[_0x551b68('0x11fa')]=_0x482760;});}})[_0x43d0be('0x103c')](function(_0x3fa159){const _0x41f9d1=_0x43d0be;_0x3c0f51['error']({'title':_0x3fa159['status']?_0x41f9d1('0x137')+_0x3fa159['status']+'\x20-\x20'+_0x3fa159['statusText']:_0x41f9d1('0xceb'),'msg':_0x3fa159[_0x41f9d1('0x1e07')]?JSON[_0x41f9d1('0x100b')](_0x3fa159[_0x41f9d1('0x1e07')]):_0x3fa159[_0x41f9d1('0x1b75')]()});});function _0x4a13cc(){const _0x34fb5a=_0x43d0be;_0x5bb57e['errors']=[];const _0x40749f=[];_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0x1810')]&&_0x5bb57e['agent']['type'][_0x34fb5a('0x1e68')]()==='outbound'&&_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0x9d7')]===_0x34fb5a('0x2150')&&(_0x5bb57e[_0x34fb5a('0x7b0')]['phone']=_0xd35d33[_0x34fb5a('0x1429')]?(_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0x23f7')]||'')+_0x34fb5a('0x1957')+_0xd35d33[_0x34fb5a('0x1429')]+'}':(_0x5bb57e['agent'][_0x34fb5a('0x23f7')]||'')+'${EXTEN}',_0xd35d33['recordingFormat']!==_0x34fb5a('0x2741')?_0x5bb57e['agent'][_0x34fb5a('0x2010')][_0x34fb5a('0x2087')](_0x34fb5a('0x2474'))<0x0&&(_0x5bb57e['agent'][_0x34fb5a('0x2010')]+=_0x34fb5a('0x2474')):_0x5bb57e[_0x34fb5a('0x7b0')]['options']=_0x5bb57e[_0x34fb5a('0x7b0')]['options'][_0x34fb5a('0x166c')](_0x34fb5a('0x2474'),''));const _0x2475ee=_0x3c8d8a()[_0x34fb5a('0x18ab')](_0x5bb57e[_0x34fb5a('0x11fa')],{'name':_0x5bb57e['agent']['agent']});_0x2475ee&&(_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0x181c')]=_0x2475ee['id']);if(_0x5bb57e['agent']['appType']&&_0x5bb57e['agent'][_0x34fb5a('0x9d7')]===_0x34fb5a('0xbb4')){}else switch((_0x5bb57e[_0x34fb5a('0x7b0')]['app']||_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0x9d7')])['toLowerCase']()){case _0x34fb5a('0x256d'):_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0x1c00')]=_0x5bb57e[_0x34fb5a('0x7b0')]['name']+'='+_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0xa7b')];break;case'custom':break;default:_0x40749f[0x0]=_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0x7b0')],_0x40749f[0x1]=_0x5bb57e[_0x34fb5a('0x7b0')][_0x34fb5a('0x1f84')],_0x5bb57e[_0x34fb5a('0x7b0')]['appdata']=_0x40749f[_0x34fb5a('0x2259')](',');}_0x45c01f(_0x5bb57e[_0x34fb5a('0x7b0')]);}function _0x45c01f(_0x533b57){_0x2f2a2b['hide'](_0x533b57);}}const _0x1b48ec=_0x26e36e;_0x2694ad[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x20b6'),_0x566993('0x77b'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x2694ad(_0x55402e,_0xcc6a90,_0x1b05db,_0x59c4ba,_0x1dc1ab,_0x4dfe53,_0x3206e8,_0x457e1e){const _0x232287=_0x566993,_0x39fb24=this;_0x39fb24[_0x232287('0x155f')]=_0x3206e8[_0x232287('0x14d4')](),_0x39fb24[_0x232287('0x1d4a')]=[],_0x39fb24[_0x232287('0x20d6')]=_0x232287('0x1344')+(_0x59c4ba[_0x232287('0x9d7')]||_0x59c4ba[_0x232287('0x17e')])[_0x232287('0x1164')](),_0x39fb24[_0x232287('0x23fe')]=angular[_0x232287('0x2e3')](_0x59c4ba),_0x39fb24[_0x232287('0x1dc1')]=_0x457e1e,_0x39fb24[_0x232287('0xb0')]={};if(_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1c00')])switch(_0x39fb24[_0x232287('0x23fe')][_0x232287('0x9d7')]?_0x39fb24[_0x232287('0x23fe')][_0x232287('0x9d7')][_0x232287('0x1e68')]():_0x39fb24['autoreply'][_0x232287('0x17e')]['toLowerCase']()){case'custom':break;case _0x232287('0x1601'):{const _0x2c5f77=_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1c00')][_0x232287('0x43a')](',');_0x39fb24[_0x232287('0x23fe')][_0x232287('0x237a')]=_0x2c5f77[0x0],_0x39fb24[_0x232287('0x23fe')][_0x232287('0x604')]=_0x2c5f77[0x1],_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1a7')]=_0x2c5f77[_0x232287('0x2456')](0x2,_0x2c5f77[_0x232287('0x543')])[_0x232287('0x2259')](',');}break;case'amazonlex':{const _0x1fcfaa=_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1c00')][_0x232287('0x43a')](',');_0x39fb24[_0x232287('0x23fe')][_0x232287('0x2e0')]=_0x1fcfaa[0x0],_0x39fb24['autoreply']['secretaccesskey']=_0x1fcfaa[0x1],_0x39fb24[_0x232287('0x23fe')]['lexregion']=_0x1fcfaa[0x2],_0x39fb24['autoreply'][_0x232287('0x53')]=_0x1fcfaa[0x3],_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1a7')]=_0x1fcfaa['slice'](0x4,_0x1fcfaa[_0x232287('0x543')])[_0x232287('0x2259')](',');}break;case _0x232287('0x23fe'):{const _0xfe2a5d=_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1c00')][_0x232287('0x43a')](',');_0x39fb24[_0x232287('0x23fe')][_0x232287('0x611')]=isNaN(_0xfe2a5d[0x0])?_0xfe2a5d[0x0]:parseInt(_0xfe2a5d[0x0],0xa),_0x39fb24[_0x232287('0x23fe')][_0x232287('0x86e')]=_0xfe2a5d[_0x232287('0x2456')](0x1,_0xfe2a5d['length'])['join'](',');}break;case _0x232287('0x67f'):_0x39fb24[_0x232287('0x23fe')]['text']=_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1c00')];break;case _0x232287('0x256d'):_0x39fb24[_0x232287('0x23fe')][_0x232287('0x10ad')]=_0x39fb24['autoreply']['appdata'][_0x232287('0x43a')]('=')[0x0],_0x39fb24[_0x232287('0x23fe')][_0x232287('0xa7b')]=_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1c00')]['split']('=')[0x1];break;case'agi':_0x39fb24['autoreply'][_0x232287('0x220b')]=_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1c00')];break;default:{const _0x1cebf0=_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1c00')][_0x232287('0x43a')](',');_0x39fb24['autoreply']['times']=_0x3c8d8a()[_0x232287('0x1a56')](_0x1cebf0[0x0])?_0x1cebf0[0x0]:isNaN(_0x1cebf0[0x0])?_0x1cebf0[0x0]:parseInt(_0x1cebf0[0x0],0xa),_0x39fb24['autoreply'][_0x232287('0x86e')]=_0x3c8d8a()[_0x232287('0x1a56')](_0x1cebf0[0x1])?_0x1cebf0[0x1]:isNaN(_0x1cebf0[0x1])?_0x1cebf0[0x1]:parseInt(_0x1cebf0[0x1],0xa);}break;}else _0x39fb24[_0x232287('0x23fe')][_0x232287('0x611')]=0x1;_0x39fb24[_0x232287('0x23fe')]['type']&&_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1810')][_0x232287('0x1e68')]()==='outbound'&&_0x39fb24[_0x232287('0x23fe')]['appType'][_0x232287('0x1e68')]()===_0x232287('0x1edc')&&(_0x39fb24[_0x232287('0x23fe')][_0x232287('0x23f7')]=_0x39fb24['autoreply'][_0x232287('0xa04')]?_0x39fb24[_0x232287('0x23fe')][_0x232287('0xa04')][_0x232287('0x43a')]('$')[0x0]:undefined,_0x39fb24[_0x232287('0x23fe')][_0x232287('0x1961')]=_0x39fb24[_0x232287('0x23fe')][_0x232287('0xe95')]?_0x232287('0x20a8')+_0x39fb24[_0x232287('0x23fe')][_0x232287('0xe95')]:undefined);_0x39fb24[_0x232287('0x95f')]=_0x3620a9,_0x39fb24[_0x232287('0x18e2')]=_0x8efee9;function _0x3620a9(){const _0x2bd3de=_0x232287;_0x39fb24[_0x2bd3de('0x1d4a')]=[];const _0x5654ac=[];_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0x1810')]&&_0x39fb24[_0x2bd3de('0x23fe')]['type'][_0x2bd3de('0x1e68')]()===_0x2bd3de('0xb33')&&_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0x9d7')]==='outboundDial'&&(_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0xa04')]=_0x1dc1ab[_0x2bd3de('0x1429')]?(_0x39fb24['autoreply'][_0x2bd3de('0x23f7')]||'')+'${EXTEN:'+_0x1dc1ab['cutdigits']+'}':(_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0x23f7')]||'')+_0x2bd3de('0x1dc5'),_0x1dc1ab['recordingFormat']!==_0x2bd3de('0x2741')?_0x39fb24['autoreply'][_0x2bd3de('0x2010')][_0x2bd3de('0x2087')](_0x2bd3de('0x2474'))<0x0&&(_0x39fb24[_0x2bd3de('0x23fe')]['options']+='U(xcally-mixmonitor-context)'):_0x39fb24[_0x2bd3de('0x23fe')]['options']=_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0x2010')][_0x2bd3de('0x166c')](_0x2bd3de('0x2474'),''));if(_0x39fb24['autoreply'][_0x2bd3de('0x9d7')]&&_0x39fb24['autoreply'][_0x2bd3de('0x9d7')]==='custom'){}else switch((_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0x17e')]||_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0x9d7')])[_0x2bd3de('0x1e68')]()){case'set':_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0x1c00')]=_0x39fb24['autoreply']['name']+'='+_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0xa7b')];break;case _0x2bd3de('0xbb4'):break;default:_0x5654ac[0x0]=_0x39fb24['autoreply'][_0x2bd3de('0x611')],_0x5654ac[0x1]=_0x39fb24[_0x2bd3de('0x23fe')][_0x2bd3de('0x86e')],_0x39fb24[_0x2bd3de('0x23fe')]['appdata']=_0x5654ac['join'](',');}_0x8efee9(_0x39fb24['autoreply']);}function _0x8efee9(_0x5c45c3){_0x55402e['hide'](_0x5c45c3);}}const _0x3b3e7d=_0x2694ad;_0x1e4e02[_0x566993('0x17bb')]=['$mdDialog','$q','toasty',_0x566993('0x20b6'),'mailAccount',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x1e4e02(_0x475a38,_0x2f918e,_0x390e43,_0x2c1636,_0x2e98bb,_0x3b3bbe,_0x291be8,_0x49d5dd){const _0x5a174d=_0x566993,_0x5a2c47=this;_0x5a2c47[_0x5a174d('0x155f')]=_0x291be8['getCurrentUser'](),_0x5a2c47['errors']=[],_0x5a2c47[_0x5a174d('0x20d6')]=_0x5a174d('0x1344')+(_0x2c1636[_0x5a174d('0x9d7')]||_0x2c1636[_0x5a174d('0x17e')])[_0x5a174d('0x1164')](),_0x5a2c47[_0x5a174d('0x2151')]=angular[_0x5a174d('0x2e3')](_0x2c1636),_0x5a2c47[_0x5a174d('0x1dc1')]=_0x49d5dd,_0x5a2c47[_0x5a174d('0xb0')]={};if(_0x5a2c47[_0x5a174d('0x2151')]['appdata'])switch(_0x5a2c47[_0x5a174d('0x2151')]['appType']?_0x5a2c47[_0x5a174d('0x2151')]['appType'][_0x5a174d('0x1e68')]():_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x17e')][_0x5a174d('0x1e68')]()){case'custom':break;case _0x5a174d('0x1601'):{const _0x88cb25=_0x5a2c47['close']['appdata']['split'](',');_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x237a')]=_0x88cb25[0x0],_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x604')]=_0x88cb25[0x1],_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x1a7')]=_0x88cb25[_0x5a174d('0x2456')](0x2,_0x88cb25[_0x5a174d('0x543')])[_0x5a174d('0x2259')](',');}break;case _0x5a174d('0x1680'):{const _0x3df9ea=_0x5a2c47['close'][_0x5a174d('0x1c00')][_0x5a174d('0x43a')](',');_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x2e0')]=_0x3df9ea[0x0],_0x5a2c47['close'][_0x5a174d('0x1d93')]=_0x3df9ea[0x1],_0x5a2c47[_0x5a174d('0x2151')]['lexregion']=_0x3df9ea[0x2],_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x53')]=_0x3df9ea[0x3],_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x1a7')]=_0x3df9ea[_0x5a174d('0x2456')](0x4,_0x3df9ea[_0x5a174d('0x543')])[_0x5a174d('0x2259')](',');}break;case _0x5a174d('0x23fe'):{const _0x3fd8ab=_0x5a2c47['close']['appdata'][_0x5a174d('0x43a')](',');_0x5a2c47[_0x5a174d('0x2151')]['times']=isNaN(_0x3fd8ab[0x0])?_0x3fd8ab[0x0]:parseInt(_0x3fd8ab[0x0],0xa),_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x86e')]=_0x3fd8ab[_0x5a174d('0x2456')](0x1,_0x3fd8ab[_0x5a174d('0x543')])[_0x5a174d('0x2259')](',');}break;case _0x5a174d('0x67f'):_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x86e')]=_0x5a2c47['close'][_0x5a174d('0x1c00')];break;case _0x5a174d('0x256d'):_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x10ad')]=_0x5a2c47['close']['appdata']['split']('=')[0x0],_0x5a2c47['close'][_0x5a174d('0xa7b')]=_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x1c00')][_0x5a174d('0x43a')]('=')[0x1];break;case'agi':_0x5a2c47[_0x5a174d('0x2151')]['project']=_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x1c00')];break;default:{const _0x1d5ec4=_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x1c00')][_0x5a174d('0x43a')](',');_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x2766')]=_0x3c8d8a()[_0x5a174d('0x1a56')](_0x1d5ec4[0x0])?_0x1d5ec4[0x0]:isNaN(_0x1d5ec4[0x0])?_0x1d5ec4[0x0]:parseInt(_0x1d5ec4[0x0],0xa);}break;}else{}_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0x1810')]&&_0x5a2c47[_0x5a174d('0x2151')]['type'][_0x5a174d('0x1e68')]()===_0x5a174d('0xb33')&&_0x5a2c47['close']['appType'][_0x5a174d('0x1e68')]()==='outbounddial'&&(_0x5a2c47[_0x5a174d('0x2151')]['prefix']=_0x5a2c47['close'][_0x5a174d('0xa04')]?_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0xa04')]['split']('$')[0x0]:undefined,_0x5a2c47[_0x5a174d('0x2151')]['callerId']=_0x5a2c47[_0x5a174d('0x2151')][_0x5a174d('0xe95')]?'CALLERID(all)='+_0x5a2c47[_0x5a174d('0x2151')]['callerID']:undefined);_0x5a2c47['saveMailAccountApp']=_0x56fb30,_0x5a2c47[_0x5a174d('0x18e2')]=_0x14b7e4;function _0x56fb30(){const _0x412396=_0x5a174d;_0x5a2c47[_0x412396('0x1d4a')]=[];const _0x261983=[];_0x5a2c47[_0x412396('0x2151')][_0x412396('0x1810')]&&_0x5a2c47[_0x412396('0x2151')][_0x412396('0x1810')]['toLowerCase']()===_0x412396('0xb33')&&_0x5a2c47[_0x412396('0x2151')][_0x412396('0x9d7')]==='outboundDial'&&(_0x5a2c47[_0x412396('0x2151')]['phone']=_0x2e98bb[_0x412396('0x1429')]?(_0x5a2c47['close']['prefix']||'')+_0x412396('0x1957')+_0x2e98bb[_0x412396('0x1429')]+'}':(_0x5a2c47[_0x412396('0x2151')][_0x412396('0x23f7')]||'')+_0x412396('0x1dc5'),_0x2e98bb['recordingFormat']!=='none'?_0x5a2c47['close'][_0x412396('0x2010')][_0x412396('0x2087')](_0x412396('0x2474'))<0x0&&(_0x5a2c47[_0x412396('0x2151')][_0x412396('0x2010')]+=_0x412396('0x2474')):_0x5a2c47[_0x412396('0x2151')]['options']=_0x5a2c47['close'][_0x412396('0x2010')][_0x412396('0x166c')](_0x412396('0x2474'),''));if(_0x5a2c47['close'][_0x412396('0x9d7')]&&_0x5a2c47[_0x412396('0x2151')]['appType']===_0x412396('0xbb4')){}else switch((_0x5a2c47[_0x412396('0x2151')][_0x412396('0x17e')]||_0x5a2c47[_0x412396('0x2151')]['appType'])['toLowerCase']()){case'set':_0x5a2c47[_0x412396('0x2151')]['appdata']=_0x5a2c47[_0x412396('0x2151')][_0x412396('0x10ad')]+'='+_0x5a2c47[_0x412396('0x2151')][_0x412396('0xa7b')];break;case _0x412396('0xbb4'):break;default:_0x261983[0x0]=_0x5a2c47[_0x412396('0x2151')]['disposition'],_0x5a2c47['close'][_0x412396('0x1c00')]=_0x261983['join'](',');}_0x14b7e4(_0x5a2c47[_0x412396('0x2151')]);}function _0x14b7e4(_0x2d7fb6){const _0x335efb=_0x5a174d;_0x475a38[_0x335efb('0x1cf4')](_0x2d7fb6);}}const _0x39bf37=_0x1e4e02;_0x159712[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'mailAccountApp',_0x566993('0x77b'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x159712(_0x49c51a,_0xa7c2cc,_0x20ca97,_0x3e42d7,_0x4257a3,_0x4c48ec,_0x552a26,_0x1427dc){const _0x2013cd=_0x566993,_0x2010f2=this;_0x2010f2[_0x2013cd('0x155f')]=_0x552a26[_0x2013cd('0x14d4')](),_0x2010f2[_0x2013cd('0x1d4a')]=[],_0x2010f2[_0x2013cd('0x20d6')]=_0x2013cd('0x1344')+(_0x3e42d7[_0x2013cd('0x9d7')]||_0x3e42d7[_0x2013cd('0x17e')])['toUpperCase'](),_0x2010f2[_0x2013cd('0xf5d')]=angular['copy'](_0x3e42d7),_0x2010f2[_0x2013cd('0x1dc1')]=_0x1427dc,_0x2010f2[_0x2013cd('0xb0')]={};if(_0x2010f2['gotoif'][_0x2013cd('0x1c00')])switch(_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x9d7')]?_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x9d7')]['toLowerCase']():_0x2010f2[_0x2013cd('0xf5d')]['app'][_0x2013cd('0x1e68')]()){case'custom':break;case _0x2013cd('0x1601'):{const _0xc49df6=_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1c00')]['split'](',');_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x237a')]=_0xc49df6[0x0],_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x604')]=_0xc49df6[0x1],_0x2010f2['gotoif'][_0x2013cd('0x1a7')]=_0xc49df6[_0x2013cd('0x2456')](0x2,_0xc49df6[_0x2013cd('0x543')])[_0x2013cd('0x2259')](',');}break;case _0x2013cd('0x1680'):{const _0x2203de=_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1c00')][_0x2013cd('0x43a')](',');_0x2010f2['gotoif']['accesskeyid']=_0x2203de[0x0],_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1d93')]=_0x2203de[0x1],_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x10fc')]=_0x2203de[0x2],_0x2010f2['gotoif']['botname']=_0x2203de[0x3],_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1a7')]=_0x2203de[_0x2013cd('0x2456')](0x4,_0x2203de['length'])['join'](',');}break;case _0x2013cd('0x23fe'):{const _0x35676a=_0x2010f2['gotoif'][_0x2013cd('0x1c00')][_0x2013cd('0x43a')](',');_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x611')]=isNaN(_0x35676a[0x0])?_0x35676a[0x0]:parseInt(_0x35676a[0x0],0xa),_0x2010f2[_0x2013cd('0xf5d')]['text']=_0x35676a[_0x2013cd('0x2456')](0x1,_0x35676a[_0x2013cd('0x543')])['join'](',');}break;case _0x2013cd('0x67f'):_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x86e')]=_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1c00')];break;case _0x2013cd('0x256d'):_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x10ad')]=_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1c00')][_0x2013cd('0x43a')]('=')[0x0],_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0xa7b')]=_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1c00')][_0x2013cd('0x43a')]('=')[0x1];break;case _0x2013cd('0x2426'):_0x2010f2[_0x2013cd('0xf5d')]['project']=_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1c00')];break;default:{const _0x3ee9b2=_0x2010f2['gotoif'][_0x2013cd('0x1c00')][_0x2013cd('0x43a')](',');_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1adb')]=_0x3c8d8a()[_0x2013cd('0x1a56')](_0x3ee9b2[0x0])?_0x3ee9b2[0x0]:isNaN(_0x3ee9b2[0x0])?_0x3ee9b2[0x0]:parseInt(_0x3ee9b2[0x0],0xa),_0x2010f2[_0x2013cd('0xf5d')]['truepriority']=_0x3c8d8a()[_0x2013cd('0x1a56')](_0x3ee9b2[0x1])?_0x3ee9b2[0x1]:isNaN(_0x3ee9b2[0x1])?_0x3ee9b2[0x1]:parseInt(_0x3ee9b2[0x1],0xa),_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1ec9')]=_0x3c8d8a()['isEmpty'](_0x3ee9b2[0x2])?_0x3ee9b2[0x2]:isNaN(_0x3ee9b2[0x2])?_0x3ee9b2[0x2]:parseInt(_0x3ee9b2[0x2],0xa);}break;}else{}_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1810')]&&_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x1810')][_0x2013cd('0x1e68')]()===_0x2013cd('0xb33')&&_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0x9d7')][_0x2013cd('0x1e68')]()===_0x2013cd('0x1edc')&&(_0x2010f2[_0x2013cd('0xf5d')]['prefix']=_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0xa04')]?_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0xa04')][_0x2013cd('0x43a')]('$')[0x0]:undefined,_0x2010f2[_0x2013cd('0xf5d')]['callerId']=_0x2010f2['gotoif'][_0x2013cd('0xe95')]?'CALLERID(all)='+_0x2010f2[_0x2013cd('0xf5d')][_0x2013cd('0xe95')]:undefined);_0x2010f2[_0x2013cd('0x95f')]=_0x4447e8,_0x2010f2[_0x2013cd('0x18e2')]=_0x117fb4;function _0x4447e8(){const _0x455d26=_0x2013cd;_0x2010f2['errors']=[];const _0x1114d9=[];_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x1810')]&&_0x2010f2['gotoif'][_0x455d26('0x1810')][_0x455d26('0x1e68')]()===_0x455d26('0xb33')&&_0x2010f2[_0x455d26('0xf5d')]['appType']===_0x455d26('0x2150')&&(_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0xa04')]=_0x4257a3[_0x455d26('0x1429')]?(_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x23f7')]||'')+'${EXTEN:'+_0x4257a3['cutdigits']+'}':(_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x23f7')]||'')+'${EXTEN}',_0x4257a3[_0x455d26('0x76c')]!==_0x455d26('0x2741')?_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x2010')]['indexOf'](_0x455d26('0x2474'))<0x0&&(_0x2010f2['gotoif'][_0x455d26('0x2010')]+=_0x455d26('0x2474')):_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x2010')]=_0x2010f2['gotoif'][_0x455d26('0x2010')]['replace'](_0x455d26('0x2474'),''));if(_0x2010f2[_0x455d26('0xf5d')]['appType']&&_0x2010f2['gotoif']['appType']===_0x455d26('0xbb4')){}else switch((_0x2010f2['gotoif'][_0x455d26('0x17e')]||_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x9d7')])[_0x455d26('0x1e68')]()){case _0x455d26('0x256d'):_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x1c00')]=_0x2010f2['gotoif'][_0x455d26('0x10ad')]+'='+_0x2010f2[_0x455d26('0xf5d')]['value'];break;case'custom':break;default:_0x1114d9[0x0]=_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x1adb')],_0x1114d9[0x1]=_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x1cd7')],_0x1114d9[0x2]=_0x2010f2[_0x455d26('0xf5d')]['falsepriority'],_0x2010f2[_0x455d26('0xf5d')][_0x455d26('0x1c00')]=_0x1114d9[_0x455d26('0x2259')](',');}_0x117fb4(_0x2010f2['gotoif']);}function _0x117fb4(_0x368db2){const _0xb8a8b6=_0x2013cd;_0x49c51a[_0xb8a8b6('0x1cf4')](_0x368db2);}}const _0x5eab38=_0x159712;_0x355fd4[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x20b6'),_0x566993('0x77b'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x355fd4(_0x718337,_0x234d1f,_0x39a321,_0x3d6c99,_0x3efd03,_0x18756a,_0x10aa8b,_0x560cb0){const _0x2948ec=_0x566993,_0x272b95=this;_0x272b95[_0x2948ec('0x155f')]=_0x10aa8b[_0x2948ec('0x14d4')](),_0x272b95['errors']=[],_0x272b95[_0x2948ec('0x20d6')]=_0x2948ec('0x1344')+(_0x3d6c99['appType']||_0x3d6c99[_0x2948ec('0x17e')])['toUpperCase'](),_0x272b95['gotop']=angular[_0x2948ec('0x2e3')](_0x3d6c99),_0x272b95[_0x2948ec('0x1dc1')]=_0x560cb0,_0x272b95[_0x2948ec('0xb0')]={};if(_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1c00')])switch(_0x272b95[_0x2948ec('0x2ac')]['appType']?_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x9d7')][_0x2948ec('0x1e68')]():_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x17e')][_0x2948ec('0x1e68')]()){case'custom':break;case _0x2948ec('0x1601'):{const _0x2fb406=_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1c00')][_0x2948ec('0x43a')](',');_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x237a')]=_0x2fb406[0x0],_0x272b95['gotop']['language']=_0x2fb406[0x1],_0x272b95['gotop'][_0x2948ec('0x1a7')]=_0x2fb406[_0x2948ec('0x2456')](0x2,_0x2fb406[_0x2948ec('0x543')])[_0x2948ec('0x2259')](',');}break;case _0x2948ec('0x1680'):{const _0x170a95=_0x272b95['gotop'][_0x2948ec('0x1c00')][_0x2948ec('0x43a')](',');_0x272b95['gotop'][_0x2948ec('0x2e0')]=_0x170a95[0x0],_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1d93')]=_0x170a95[0x1],_0x272b95[_0x2948ec('0x2ac')]['lexregion']=_0x170a95[0x2],_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x53')]=_0x170a95[0x3],_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1a7')]=_0x170a95[_0x2948ec('0x2456')](0x4,_0x170a95['length'])[_0x2948ec('0x2259')](',');}break;case _0x2948ec('0x23fe'):{const _0x39668b=_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1c00')][_0x2948ec('0x43a')](',');_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x611')]=isNaN(_0x39668b[0x0])?_0x39668b[0x0]:parseInt(_0x39668b[0x0],0xa),_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x86e')]=_0x39668b[_0x2948ec('0x2456')](0x1,_0x39668b[_0x2948ec('0x543')])[_0x2948ec('0x2259')](',');}break;case'message':_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x86e')]=_0x272b95[_0x2948ec('0x2ac')]['appdata'];break;case _0x2948ec('0x256d'):_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x10ad')]=_0x272b95['gotop'][_0x2948ec('0x1c00')]['split']('=')[0x0],_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0xa7b')]=_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1c00')][_0x2948ec('0x43a')]('=')[0x1];break;case'agi':_0x272b95[_0x2948ec('0x2ac')]['project']=_0x272b95[_0x2948ec('0x2ac')]['appdata'];break;default:{const _0x345b69=_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1c00')][_0x2948ec('0x43a')](',');_0x272b95[_0x2948ec('0x2ac')]['priority']=_0x3c8d8a()[_0x2948ec('0x1a56')](_0x345b69[0x0])?_0x345b69[0x0]:isNaN(_0x345b69[0x0])?_0x345b69[0x0]:parseInt(_0x345b69[0x0],0xa);}break;}else{}_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1810')]&&_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1810')][_0x2948ec('0x1e68')]()==='outbound'&&_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x9d7')][_0x2948ec('0x1e68')]()===_0x2948ec('0x1edc')&&(_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x23f7')]=_0x272b95['gotop'][_0x2948ec('0xa04')]?_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0xa04')][_0x2948ec('0x43a')]('$')[0x0]:undefined,_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0x1961')]=_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0xe95')]?_0x2948ec('0x20a8')+_0x272b95[_0x2948ec('0x2ac')][_0x2948ec('0xe95')]:undefined);_0x272b95['saveMailAccountApp']=_0x5cda5f,_0x272b95[_0x2948ec('0x18e2')]=_0x159084;function _0x5cda5f(){const _0x27462f=_0x2948ec;_0x272b95[_0x27462f('0x1d4a')]=[];const _0x5b37e3=[];_0x272b95['gotop'][_0x27462f('0x1810')]&&_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x1810')][_0x27462f('0x1e68')]()===_0x27462f('0xb33')&&_0x272b95[_0x27462f('0x2ac')]['appType']===_0x27462f('0x2150')&&(_0x272b95[_0x27462f('0x2ac')][_0x27462f('0xa04')]=_0x3efd03[_0x27462f('0x1429')]?(_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x23f7')]||'')+_0x27462f('0x1957')+_0x3efd03['cutdigits']+'}':(_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x23f7')]||'')+_0x27462f('0x1dc5'),_0x3efd03[_0x27462f('0x76c')]!==_0x27462f('0x2741')?_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x2010')]['indexOf'](_0x27462f('0x2474'))<0x0&&(_0x272b95['gotop'][_0x27462f('0x2010')]+=_0x27462f('0x2474')):_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x2010')]=_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x2010')]['replace'](_0x27462f('0x2474'),''));if(_0x272b95[_0x27462f('0x2ac')]['appType']&&_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x9d7')]==='custom'){}else switch((_0x272b95[_0x27462f('0x2ac')]['app']||_0x272b95['gotop'][_0x27462f('0x9d7')])['toLowerCase']()){case _0x27462f('0x256d'):_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x1c00')]=_0x272b95[_0x27462f('0x2ac')][_0x27462f('0x10ad')]+'='+_0x272b95['gotop'][_0x27462f('0xa7b')];break;case _0x27462f('0xbb4'):break;default:_0x5b37e3[0x0]=_0x272b95[_0x27462f('0x2ac')][_0x27462f('0xb3')],_0x272b95['gotop'][_0x27462f('0x1c00')]=_0x5b37e3[_0x27462f('0x2259')](',');}_0x159084(_0x272b95[_0x27462f('0x2ac')]);}function _0x159084(_0x2bd3c2){const _0x375b26=_0x2948ec;_0x718337[_0x375b26('0x1cf4')](_0x2bd3c2);}}const _0x2f15e1=_0x355fd4;_0x26c1b2[_0x566993('0x17bb')]=['$state',_0x566993('0x1fe5'),_0x566993('0x1276'),'IndexFactory','interval',_0x566993('0x21c4'),'toasty','api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x26c1b2(_0x5c0244,_0x4572b8,_0x42a6d7,_0x5f2ee2,_0x2618fd,_0x35b668,_0x57b3ee,_0x103207,_0x1a4839,_0x3782bd){const _0x29f388=_0x566993,_0x3088d1=this;_0x3088d1['currentUser']=_0x1a4839[_0x29f388('0x14d4')](),_0x3088d1[_0x29f388('0x1d4a')]=[],_0x3088d1[_0x29f388('0x20d6')]=_0x29f388('0x117b'),_0x3088d1[_0x29f388('0x55a')]=angular[_0x29f388('0x2e3')](_0x2618fd),_0x3088d1['intervals']=_0x35b668,_0x3088d1[_0x29f388('0x1d80')]=![],_0x3088d1[_0x29f388('0xf00')]=[_0x29f388('0x17b3'),_0x29f388('0xbb4'),_0x29f388('0x3e3')],_0x3088d1[_0x29f388('0x1dc1')]=_0x3782bd,_0x3088d1['daysOfWeek']=_0x5f2ee2[_0x29f388('0x89e')](),_0x3088d1[_0x29f388('0x8e4')]=_0x5f2ee2[_0x29f388('0x266c')](),_0x3088d1[_0x29f388('0x1d95')]=_0x5f2ee2['getMonthName'](),_0x3088d1['daysOfMonth']=_0x5f2ee2[_0x29f388('0x1c80')]();if(!_0x3088d1[_0x29f388('0x55a')])_0x3088d1[_0x29f388('0x55a')]={'interval':_0x29f388('0x17c5')},_0x3088d1[_0x29f388('0x1810')]=_0x29f388('0x17b3'),_0x3088d1[_0x29f388('0x20d6')]='TOOLS.NEW_INTERVAL',_0x3088d1[_0x29f388('0x1d80')]=!![];else{if(_0x3088d1[_0x29f388('0x55a')]['interval']!==_0x29f388('0x17c5')){_0x3088d1[_0x29f388('0x1810')]=_0x29f388('0xbb4');const _0x275176=_0x3088d1[_0x29f388('0x55a')][_0x29f388('0x55a')][_0x29f388('0x43a')](','),_0x4b9d2b=_0x275176[0x0],_0x150f36=_0x275176[0x1],_0x32cb4f=_0x275176[0x2],_0x44f509=_0x275176[0x3];if(_0x4b9d2b!=='*'){const _0x1191f6=_0x4b9d2b[_0x29f388('0x43a')]('-')[0x0],_0x372ee9=_0x4b9d2b['split']('-')[0x1];let _0x3928cf;_0x3928cf=new Date(),_0x3928cf[_0x29f388('0xd32')](Number(_0x1191f6['split'](':')[0x0])),_0x3928cf[_0x29f388('0x14f9')](Number(_0x1191f6[_0x29f388('0x43a')](':')[0x1])),_0x3088d1[_0x29f388('0x2515')]=_0x3928cf,_0x3928cf=new Date(),_0x3928cf[_0x29f388('0xd32')](Number(_0x372ee9['split'](':')[0x0])),_0x3928cf[_0x29f388('0x14f9')](Number(_0x372ee9['split'](':')[0x1])),_0x3088d1[_0x29f388('0x437')]=_0x3928cf;}_0x150f36!=='*'&&(_0x3088d1['dayOfWeekFrom']=_0x150f36[_0x29f388('0x43a')]('-')[0x0],_0x3088d1[_0x29f388('0x269e')]=_0x150f36[_0x29f388('0x43a')]('-')[0x1]),_0x32cb4f!=='*'&&(_0x3088d1['monthDayFrom']=_0x32cb4f['split']('-')[0x0],_0x3088d1[_0x29f388('0x185e')]=_0x32cb4f['split']('-')[0x1]),_0x44f509!=='*'&&(_0x3088d1[_0x29f388('0x1f34')]=_0x44f509[_0x29f388('0x43a')]('-')[0x0],_0x3088d1['monthTo']=_0x44f509[_0x29f388('0x43a')]('-')[0x1]);}else _0x3088d1['type']='always';}_0x5c0244[_0x29f388('0x197a')]['id']&&!_0x3088d1['interval'][_0x29f388('0x17c2')]&&(_0x3088d1['interval']['IntervalId']=_0x5c0244[_0x29f388('0x197a')]['id']);_0x3088d1[_0x29f388('0x55a')]['IntervalId']&&_0x3088d1[_0x29f388('0x55a')][_0x29f388('0x17c2')]&&(_0x3088d1['type']='list');_0x3088d1[_0x29f388('0x11fc')]=_0x1207d0,_0x3088d1[_0x29f388('0x1401')]=_0xee57c,_0x3088d1[_0x29f388('0x18e2')]=_0x2299a4;_0x3088d1[_0x29f388('0x55a')]['application']&&(_0x1a4839[_0x29f388('0x1b4e')](_0x29f388('0x79b'))?_0x103207[_0x29f388('0x55a')][_0x29f388('0x1d97')]({'fields':_0x29f388('0x2666'),'IntervalId':'null','nolimit':!![]})[_0x29f388('0x1964')][_0x29f388('0x173b')](function(_0x4381a7){const _0x201f72=_0x29f388;_0x3088d1[_0x201f72('0x21c4')]=_0x4381a7[_0x201f72('0x6aa')]||[];})[_0x29f388('0x103c')](function(_0x4dd53a){const _0x52c128=_0x29f388;_0x57b3ee['error']({'title':_0x4dd53a[_0x52c128('0x276f')]?'API:'+_0x4dd53a[_0x52c128('0x276f')]+_0x52c128('0x160c')+_0x4dd53a[_0x52c128('0x2696')]:_0x52c128('0x1daf'),'msg':_0x4dd53a[_0x52c128('0x1e07')]?JSON['stringify'](_0x4dd53a['data']):_0x4dd53a[_0x52c128('0x1b75')]()});}):_0x103207['interval'][_0x29f388('0x1d97')]({'fields':_0x29f388('0x2666'),'IntervalId':_0x29f388('0x877'),'nolimit':!![]})[_0x29f388('0x1964')][_0x29f388('0x173b')](function(_0x181895){const _0x17e421=_0x29f388;_0x3088d1['intervals']=_0x181895[_0x17e421('0x6aa')]||[];})[_0x29f388('0x173b')](function(){const _0x57fffc=_0x29f388;return _0x103207[_0x57fffc('0x170e')][_0x57fffc('0x1d97')]({'userProfileId':_0x3088d1[_0x57fffc('0x155f')][_0x57fffc('0x1946')],'sectionId':0x3ec})['$promise'];})[_0x29f388('0x173b')](function(_0x1b0d3a){const _0x243e04=_0x29f388,_0x3f76b2=_0x1b0d3a&&_0x1b0d3a[_0x243e04('0x6aa')]?_0x1b0d3a[_0x243e04('0x6aa')][0x0]:null;if(!_0x3f76b2)_0x3088d1[_0x243e04('0x21c4')]=[];else{if(!_0x3f76b2[_0x243e04('0x273e')])return _0x103207[_0x243e04('0xda9')]['get']({'sectionId':_0x3f76b2['id']})['$promise'][_0x243e04('0x173b')](function(_0x22bbfd){const _0x3bfd24=_0x243e04,_0x4a112b=_0x22bbfd&&_0x22bbfd[_0x3bfd24('0x6aa')]?_0x22bbfd[_0x3bfd24('0x6aa')]:[],_0x55572c=[];let _0x50b642=null;_0x3088d1['interval']&&(_0x50b642=_0x3c8d8a()['find'](_0x3088d1['intervals'],{'name':_0x3088d1['interval']['IntervalId']})),_0x50b642&&!_0x3c8d8a()[_0x3bfd24('0x1ec')](_0x4a112b,['resourceId',_0x50b642['id']])&&_0x3088d1[_0x3bfd24('0x21c4')][_0x3bfd24('0xa6a')](function(_0x50c8b4){_0x50c8b4['id']===_0x50b642['id']&&(_0x50c8b4['canSelect']=![],_0x55572c['push'](_0x50c8b4));}),_0x3088d1[_0x3bfd24('0x21c4')]=_0x55572c;});}})[_0x29f388('0x103c')](function(_0x16d473){const _0x556d1d=_0x29f388;_0x57b3ee[_0x556d1d('0x15aa')]({'title':_0x16d473[_0x556d1d('0x276f')]?'API:'+_0x16d473[_0x556d1d('0x276f')]+_0x556d1d('0x160c')+_0x16d473[_0x556d1d('0x2696')]:_0x556d1d('0x1daf'),'msg':_0x16d473[_0x556d1d('0x1e07')]?JSON[_0x556d1d('0x100b')](_0x16d473[_0x556d1d('0x1e07')]):_0x16d473[_0x556d1d('0x1b75')]()});}));function _0x7cd183(){const _0x588ff4=_0x29f388;switch(_0x3088d1[_0x588ff4('0x1810')]){case _0x588ff4('0x17b3'):case _0x588ff4('0x3e3'):return'*,*,*,*';case _0x588ff4('0xbb4'):{const _0x54abf7=[];if(_0x3088d1[_0x588ff4('0x2515')]!=='*'&&_0x3088d1[_0x588ff4('0x2515')]&&_0x3088d1[_0x588ff4('0x437')]){const _0x28c081=(_0x3088d1[_0x588ff4('0x2515')][_0x588ff4('0x1a28')]()<0xa?'0':'')+_0x3088d1[_0x588ff4('0x2515')][_0x588ff4('0x1a28')]()+':'+((_0x3088d1[_0x588ff4('0x2515')][_0x588ff4('0x1d2a')]()<0xa?'0':'')+_0x3088d1['timeRangeFrom'][_0x588ff4('0x1d2a')]()),_0x179326=(_0x3088d1[_0x588ff4('0x437')][_0x588ff4('0x1a28')]()<0xa?'0':'')+_0x3088d1[_0x588ff4('0x437')][_0x588ff4('0x1a28')]()+':'+((_0x3088d1[_0x588ff4('0x437')]['getMinutes']()<0xa?'0':'')+_0x3088d1['timeRangeTo'][_0x588ff4('0x1d2a')]());_0x54abf7[_0x588ff4('0x18bb')](_0x28c081+'-'+_0x179326);}else _0x54abf7[_0x588ff4('0x18bb')]('*');return _0x3088d1['dayOfWeekFrom']?_0x3088d1[_0x588ff4('0x269e')]?_0x54abf7['push'](_0x3088d1['dayOfWeekFrom']+'-'+_0x3088d1[_0x588ff4('0x269e')]):_0x54abf7[_0x588ff4('0x18bb')](_0x3088d1[_0x588ff4('0x37a')]):_0x54abf7[_0x588ff4('0x18bb')]('*'),_0x3088d1['monthDayFrom']?_0x3088d1[_0x588ff4('0x185e')]?_0x54abf7[_0x588ff4('0x18bb')](_0x3088d1[_0x588ff4('0x6df')]+'-'+_0x3088d1['monthDayTo']):_0x54abf7[_0x588ff4('0x18bb')](_0x3088d1['monthDayFrom']):_0x54abf7['push']('*'),_0x3088d1[_0x588ff4('0x1f34')]?_0x3088d1[_0x588ff4('0xf74')]?_0x54abf7[_0x588ff4('0x18bb')](_0x3088d1[_0x588ff4('0x1f34')]+'-'+_0x3088d1['monthTo']):_0x54abf7['push'](_0x3088d1['monthFrom']):_0x54abf7[_0x588ff4('0x18bb')]('*'),_0x54abf7[_0x588ff4('0x2259')]();}}}function _0x1207d0(){const _0x470ca2=_0x29f388;_0x3088d1[_0x470ca2('0x1d4a')]=[],_0x3088d1[_0x470ca2('0x55a')][_0x470ca2('0x55a')]=_0x7cd183(),_0x103207[_0x470ca2('0x55a')][_0x470ca2('0x1195')](_0x3088d1[_0x470ca2('0x55a')])[_0x470ca2('0x1964')]['then'](function(_0x308d89){const _0x123844=_0x470ca2;_0x3088d1[_0x123844('0x21c4')]['push'](_0x308d89),_0x57b3ee[_0x123844('0xdfe')]({'title':_0x123844('0x17fa'),'msg':_0x3088d1[_0x123844('0x55a')]['name']?_0x3088d1[_0x123844('0x55a')]['name']+_0x123844('0x209a'):''}),_0x2299a4();})[_0x470ca2('0x103c')](function(_0x4c88a6){const _0x472ef2=_0x470ca2;console[_0x472ef2('0x15aa')](_0x4c88a6),_0x3088d1[_0x472ef2('0x1d4a')]=_0x4c88a6[_0x472ef2('0x1e07')][_0x472ef2('0x1d4a')]||[{'message':_0x4c88a6['toString'](),'type':_0x472ef2('0xbde')}];});}function _0xee57c(){const _0xbe24bb=_0x29f388;_0x3088d1['errors']=[],_0x3088d1[_0xbe24bb('0x55a')][_0xbe24bb('0x55a')]=_0x7cd183(),_0x3088d1['interval'][_0xbe24bb('0x17c2')]?(_0x3088d1['type']!==_0xbe24bb('0x3e3')&&(_0x3088d1[_0xbe24bb('0x55a')][_0xbe24bb('0x600')]=null),_0x2299a4(_0x3088d1[_0xbe24bb('0x55a')])):_0x103207[_0xbe24bb('0x55a')][_0xbe24bb('0x1842')]({'id':_0x3088d1[_0xbe24bb('0x55a')]['id']},_0x3088d1[_0xbe24bb('0x55a')])[_0xbe24bb('0x1964')][_0xbe24bb('0x173b')](function(_0x198f4c){const _0x4ea8c8=_0xbe24bb,_0x5d6858=_0x3c8d8a()[_0x4ea8c8('0x18ab')](_0x3088d1[_0x4ea8c8('0x21c4')],{'id':_0x198f4c['id']});_0x5d6858&&_0x3c8d8a()[_0x4ea8c8('0x9ef')](_0x5d6858,_0x198f4c),_0x57b3ee[_0x4ea8c8('0xdfe')]({'title':_0x4ea8c8('0x39a'),'msg':_0x4ea8c8('0x227f')}),_0x2299a4();})[_0xbe24bb('0x103c')](function(_0x2d39ad){const _0x326b1f=_0xbe24bb;console['error'](_0x2d39ad),_0x3088d1['errors']=_0x2d39ad['data'][_0x326b1f('0x1d4a')]||[{'message':_0x2d39ad[_0x326b1f('0x1b75')](),'type':_0x326b1f('0xe20')}];});}function _0x2299a4(_0x19da0e){const _0x4473b3=_0x29f388;_0x4572b8[_0x4473b3('0x1cf4')](_0x19da0e);}}const _0x264365=_0x26c1b2;_0x185913['$inject']=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x20b6'),_0x566993('0x77b'),_0x566993('0xbd4'),'Auth','crudPermissions'];function _0x185913(_0x398f22,_0x325154,_0x45bdf3,_0x3f7b5c,_0x41207b,_0x1aa620,_0x3c460b,_0x4cfd8e){const _0x35ee4d=_0x566993,_0x42568d=this;_0x42568d[_0x35ee4d('0x155f')]=_0x3c460b['getCurrentUser'](),_0x42568d[_0x35ee4d('0x1d4a')]=[],_0x42568d[_0x35ee4d('0x20d6')]=_0x35ee4d('0x1344')+(_0x3f7b5c[_0x35ee4d('0x9d7')]||_0x3f7b5c[_0x35ee4d('0x17e')])[_0x35ee4d('0x1164')](),_0x42568d[_0x35ee4d('0x1086')]=angular[_0x35ee4d('0x2e3')](_0x3f7b5c),_0x42568d[_0x35ee4d('0x1dc1')]=_0x4cfd8e,_0x42568d['hasModulePermissions']={};if(_0x42568d[_0x35ee4d('0x1086')]['appdata'])switch(_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x9d7')]?_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x9d7')][_0x35ee4d('0x1e68')]():_0x42568d['noop'][_0x35ee4d('0x17e')][_0x35ee4d('0x1e68')]()){case _0x35ee4d('0xbb4'):break;case _0x35ee4d('0x1601'):{const _0x437fce=_0x42568d[_0x35ee4d('0x1086')]['appdata'][_0x35ee4d('0x43a')](',');_0x42568d[_0x35ee4d('0x1086')]['key']=_0x437fce[0x0],_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x604')]=_0x437fce[0x1],_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x1a7')]=_0x437fce[_0x35ee4d('0x2456')](0x2,_0x437fce[_0x35ee4d('0x543')])['join'](',');}break;case _0x35ee4d('0x1680'):{const _0x41bf0c=_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x1c00')][_0x35ee4d('0x43a')](',');_0x42568d['noop'][_0x35ee4d('0x2e0')]=_0x41bf0c[0x0],_0x42568d['noop'][_0x35ee4d('0x1d93')]=_0x41bf0c[0x1],_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x10fc')]=_0x41bf0c[0x2],_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x53')]=_0x41bf0c[0x3],_0x42568d[_0x35ee4d('0x1086')]['welcomemessage']=_0x41bf0c[_0x35ee4d('0x2456')](0x4,_0x41bf0c['length'])[_0x35ee4d('0x2259')](',');}break;case'autoreply':{const _0x3ad03b=_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x1c00')][_0x35ee4d('0x43a')](',');_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x611')]=isNaN(_0x3ad03b[0x0])?_0x3ad03b[0x0]:parseInt(_0x3ad03b[0x0],0xa),_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x86e')]=_0x3ad03b['slice'](0x1,_0x3ad03b[_0x35ee4d('0x543')])['join'](',');}break;case _0x35ee4d('0x67f'):_0x42568d[_0x35ee4d('0x1086')]['text']=_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x1c00')];break;case _0x35ee4d('0x256d'):_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x10ad')]=_0x42568d['noop']['appdata'][_0x35ee4d('0x43a')]('=')[0x0],_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0xa7b')]=_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x1c00')][_0x35ee4d('0x43a')]('=')[0x1];break;case'agi':_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x220b')]=_0x42568d['noop']['appdata'];break;default:{const _0x4a483e=_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x1c00')][_0x35ee4d('0x43a')](',');_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0xa7b')]=_0x3c8d8a()[_0x35ee4d('0x1a56')](_0x4a483e[0x0])?_0x4a483e[0x0]:isNaN(_0x4a483e[0x0])?_0x4a483e[0x0]:parseInt(_0x4a483e[0x0],0xa);}break;}else{}_0x42568d['noop'][_0x35ee4d('0x1810')]&&_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x1810')][_0x35ee4d('0x1e68')]()===_0x35ee4d('0xb33')&&_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x9d7')]['toLowerCase']()===_0x35ee4d('0x1edc')&&(_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x23f7')]=_0x42568d['noop'][_0x35ee4d('0xa04')]?_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0xa04')][_0x35ee4d('0x43a')]('$')[0x0]:undefined,_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0x1961')]=_0x42568d[_0x35ee4d('0x1086')]['callerID']?_0x35ee4d('0x20a8')+_0x42568d[_0x35ee4d('0x1086')][_0x35ee4d('0xe95')]:undefined);_0x42568d['saveMailAccountApp']=_0x42b5e6,_0x42568d[_0x35ee4d('0x18e2')]=_0x30d2f4;function _0x42b5e6(){const _0x4e16a4=_0x35ee4d;_0x42568d[_0x4e16a4('0x1d4a')]=[];const _0x220940=[];_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x1810')]&&_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x1810')]['toLowerCase']()===_0x4e16a4('0xb33')&&_0x42568d[_0x4e16a4('0x1086')]['appType']===_0x4e16a4('0x2150')&&(_0x42568d[_0x4e16a4('0x1086')]['phone']=_0x41207b[_0x4e16a4('0x1429')]?(_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x23f7')]||'')+_0x4e16a4('0x1957')+_0x41207b[_0x4e16a4('0x1429')]+'}':(_0x42568d[_0x4e16a4('0x1086')]['prefix']||'')+_0x4e16a4('0x1dc5'),_0x41207b[_0x4e16a4('0x76c')]!==_0x4e16a4('0x2741')?_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x2010')]['indexOf'](_0x4e16a4('0x2474'))<0x0&&(_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x2010')]+=_0x4e16a4('0x2474')):_0x42568d[_0x4e16a4('0x1086')]['options']=_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x2010')][_0x4e16a4('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x42568d['noop'][_0x4e16a4('0x9d7')]&&_0x42568d['noop'][_0x4e16a4('0x9d7')]===_0x4e16a4('0xbb4')){}else switch((_0x42568d[_0x4e16a4('0x1086')]['app']||_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x9d7')])[_0x4e16a4('0x1e68')]()){case'set':_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x1c00')]=_0x42568d['noop']['name']+'='+_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0xa7b')];break;case'custom':break;default:_0x220940[0x0]=_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0xa7b')],_0x42568d[_0x4e16a4('0x1086')][_0x4e16a4('0x1c00')]=_0x220940[_0x4e16a4('0x2259')](',');}_0x30d2f4(_0x42568d[_0x4e16a4('0x1086')]);}function _0x30d2f4(_0xe109a4){_0x398f22['hide'](_0xe109a4);}}const _0x326bc=_0x185913;_0x740143[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x20b6'),'mailAccount','api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x740143(_0x1fcf61,_0x58d57e,_0x37ff81,_0x3e6869,_0x4f2f10,_0x45e2f2,_0x1c35b2,_0x16b8f9){const _0x2ee822=_0x566993,_0x57c09d=this;_0x57c09d['currentUser']=_0x1c35b2['getCurrentUser'](),_0x57c09d[_0x2ee822('0x1d4a')]=[],_0x57c09d[_0x2ee822('0x20d6')]=_0x2ee822('0x1344')+(_0x3e6869[_0x2ee822('0x9d7')]||_0x3e6869[_0x2ee822('0x17e')])[_0x2ee822('0x1164')](),_0x57c09d['queue']=angular[_0x2ee822('0x2e3')](_0x3e6869),_0x57c09d['crudPermissions']=_0x16b8f9,_0x57c09d[_0x2ee822('0xb0')]={};if(_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1c00')])switch(_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x9d7')]?_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x9d7')]['toLowerCase']():_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x17e')][_0x2ee822('0x1e68')]()){case _0x2ee822('0xbb4'):break;case _0x2ee822('0x1601'):{const _0x217040=_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1c00')][_0x2ee822('0x43a')](',');_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x237a')]=_0x217040[0x0],_0x57c09d[_0x2ee822('0x172')]['language']=_0x217040[0x1],_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1a7')]=_0x217040['slice'](0x2,_0x217040[_0x2ee822('0x543')])[_0x2ee822('0x2259')](',');}break;case _0x2ee822('0x1680'):{const _0x4592d8=_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1c00')][_0x2ee822('0x43a')](',');_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x2e0')]=_0x4592d8[0x0],_0x57c09d['queue'][_0x2ee822('0x1d93')]=_0x4592d8[0x1],_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x10fc')]=_0x4592d8[0x2],_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x53')]=_0x4592d8[0x3],_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1a7')]=_0x4592d8['slice'](0x4,_0x4592d8['length'])[_0x2ee822('0x2259')](',');}break;case'autoreply':{const _0x481313=_0x57c09d['queue'][_0x2ee822('0x1c00')][_0x2ee822('0x43a')](',');_0x57c09d['queue'][_0x2ee822('0x611')]=isNaN(_0x481313[0x0])?_0x481313[0x0]:parseInt(_0x481313[0x0],0xa),_0x57c09d['queue'][_0x2ee822('0x86e')]=_0x481313[_0x2ee822('0x2456')](0x1,_0x481313['length'])[_0x2ee822('0x2259')](',');}break;case _0x2ee822('0x67f'):_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x86e')]=_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1c00')];break;case _0x2ee822('0x256d'):_0x57c09d['queue'][_0x2ee822('0x10ad')]=_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1c00')][_0x2ee822('0x43a')]('=')[0x0],_0x57c09d[_0x2ee822('0x172')]['value']=_0x57c09d['queue'][_0x2ee822('0x1c00')][_0x2ee822('0x43a')]('=')[0x1];break;case _0x2ee822('0x2426'):_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x220b')]=_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1c00')];break;default:{const _0x14139f=_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1c00')][_0x2ee822('0x43a')](',');_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x172')]=_0x3c8d8a()['isEmpty'](_0x14139f[0x0])?_0x14139f[0x0]:isNaN(_0x14139f[0x0])?_0x14139f[0x0]:parseInt(_0x14139f[0x0],0xa),_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1f84')]=_0x3c8d8a()[_0x2ee822('0x1a56')](_0x14139f[0x1])?_0x14139f[0x1]:isNaN(_0x14139f[0x1])?_0x14139f[0x1]:parseInt(_0x14139f[0x1],0xa);}break;}else _0x57c09d['queue'][_0x2ee822('0x172')]=0x12c,_0x57c09d[_0x2ee822('0x172')]['timeout']=0x12c;_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1810')]&&_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x1810')][_0x2ee822('0x1e68')]()==='outbound'&&_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x9d7')][_0x2ee822('0x1e68')]()===_0x2ee822('0x1edc')&&(_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0x23f7')]=_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0xa04')]?_0x57c09d['queue'][_0x2ee822('0xa04')][_0x2ee822('0x43a')]('$')[0x0]:undefined,_0x57c09d[_0x2ee822('0x172')]['callerId']=_0x57c09d[_0x2ee822('0x172')][_0x2ee822('0xe95')]?'CALLERID(all)='+_0x57c09d[_0x2ee822('0x172')]['callerID']:undefined);_0x57c09d[_0x2ee822('0x95f')]=_0x5b0279,_0x57c09d[_0x2ee822('0x18e2')]=_0x18b436,_0x1c35b2[_0x2ee822('0x1b4e')](_0x2ee822('0x79b'))?_0x45e2f2['mailQueue']['get']({'fields':'id,name,type','sort':_0x2ee822('0x10ad'),'nolimit':_0x2ee822('0x799')})[_0x2ee822('0x1964')][_0x2ee822('0x173b')](function(_0x18f8ac){_0x57c09d['queues']=_0x18f8ac['rows']||[];})[_0x2ee822('0x103c')](function(_0x10e27f){const _0x576284=_0x2ee822;_0x37ff81[_0x576284('0x15aa')]({'title':_0x10e27f['status']?_0x576284('0x137')+_0x10e27f['status']+_0x576284('0x160c')+_0x10e27f[_0x576284('0x2696')]:'SYSTEM:GET_QUEUES','msg':_0x10e27f[_0x576284('0x1e07')]?JSON[_0x576284('0x100b')](_0x10e27f['data']):_0x10e27f[_0x576284('0x1b75')]()});}):_0x45e2f2[_0x2ee822('0x1b0')]['get']({'fields':'id,name,type','sort':'name','nolimit':_0x2ee822('0x799')})[_0x2ee822('0x1964')]['then'](function(_0x4318df){const _0x5de92d=_0x2ee822;_0x57c09d[_0x5de92d('0xeae')]=_0x4318df[_0x5de92d('0x6aa')]||[];})[_0x2ee822('0x173b')](function(){const _0x1630e8=_0x2ee822;return _0x45e2f2[_0x1630e8('0x170e')][_0x1630e8('0x1d97')]({'userProfileId':_0x57c09d[_0x1630e8('0x155f')][_0x1630e8('0x1946')],'sectionId':0x259})[_0x1630e8('0x1964')];})[_0x2ee822('0x173b')](function(_0xd911b0){const _0x7ea167=_0x2ee822,_0x411854=_0xd911b0&&_0xd911b0[_0x7ea167('0x6aa')]?_0xd911b0[_0x7ea167('0x6aa')][0x0]:null;if(!_0x411854){const _0x208825=[];let _0x2fdee3=null;_0x57c09d['queue']&&(_0x2fdee3=_0x3c8d8a()[_0x7ea167('0x18ab')](_0x57c09d[_0x7ea167('0xeae')],{'name':_0x57c09d[_0x7ea167('0x172')][_0x7ea167('0x172')]}));for(let _0x23ef76=0x0;_0x23ef76<_0x57c09d['queues'][_0x7ea167('0x543')];_0x23ef76++){_0x2fdee3&&_0x57c09d[_0x7ea167('0xeae')][_0x23ef76]['id']===_0x2fdee3['id']&&(_0x57c09d[_0x7ea167('0xeae')][_0x23ef76]['canSelect']=![],_0x208825['push'](_0x57c09d[_0x7ea167('0xeae')][_0x23ef76]));}_0x57c09d[_0x7ea167('0xeae')]=_0x208825;}else{if(!_0x411854[_0x7ea167('0x273e')])return _0x45e2f2[_0x7ea167('0xda9')]['get']({'sectionId':_0x411854['id']})[_0x7ea167('0x1964')]['then'](function(_0x4c4b40){const _0x345da1=_0x7ea167,_0xa43573=_0x3c8d8a()[_0x345da1('0x8a2')](_0x4c4b40['rows'],function(_0x5b0a50){const _0x1a8517=_0x345da1;return _0x3c8d8a()[_0x1a8517('0x18ab')](_0x57c09d[_0x1a8517('0xeae')],{'id':_0x5b0a50['resourceId']});});let _0x43153c=null;_0x57c09d['queue']&&(_0x43153c=_0x3c8d8a()[_0x345da1('0x18ab')](_0x57c09d[_0x345da1('0xeae')],{'name':_0x57c09d[_0x345da1('0x172')][_0x345da1('0x172')]}));if(_0x43153c&&!_0x3c8d8a()[_0x345da1('0x1ec')](_0xa43573,['id',_0x43153c['id']])){const _0x384f11=_0x3c8d8a()['find'](_0x57c09d['queues'],{'id':_0x43153c['id']});_0x384f11[_0x345da1('0x268e')]=![],_0xa43573[_0x345da1('0x18bb')](_0x384f11);}_0x57c09d[_0x345da1('0xeae')]=_0xa43573;});}})[_0x2ee822('0x103c')](function(_0x3d2d74){const _0x3c58ad=_0x2ee822;_0x37ff81[_0x3c58ad('0x15aa')]({'title':_0x3d2d74['status']?_0x3c58ad('0x137')+_0x3d2d74['status']+_0x3c58ad('0x160c')+_0x3d2d74['statusText']:_0x3c58ad('0x75f'),'msg':_0x3d2d74[_0x3c58ad('0x1e07')]?JSON[_0x3c58ad('0x100b')](_0x3d2d74[_0x3c58ad('0x1e07')]):_0x3d2d74[_0x3c58ad('0x1b75')]()});});function _0x5b0279(){const _0x1b2204=_0x2ee822;_0x57c09d[_0x1b2204('0x1d4a')]=[];const _0x127be3=[];_0x57c09d['queue'][_0x1b2204('0x1810')]&&_0x57c09d['queue'][_0x1b2204('0x1810')]['toLowerCase']()===_0x1b2204('0xb33')&&_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x9d7')]===_0x1b2204('0x2150')&&(_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0xa04')]=_0x4f2f10['cutdigits']?(_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x23f7')]||'')+'${EXTEN:'+_0x4f2f10[_0x1b2204('0x1429')]+'}':(_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x23f7')]||'')+_0x1b2204('0x1dc5'),_0x4f2f10[_0x1b2204('0x76c')]!==_0x1b2204('0x2741')?_0x57c09d['queue'][_0x1b2204('0x2010')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x57c09d['queue'][_0x1b2204('0x2010')]+=_0x1b2204('0x2474')):_0x57c09d[_0x1b2204('0x172')]['options']=_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x2010')][_0x1b2204('0x166c')](_0x1b2204('0x2474'),''));const _0x2420fb=_0x3c8d8a()[_0x1b2204('0x18ab')](_0x57c09d['queues'],{'name':_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x172')]});_0x2420fb&&(_0x57c09d['queue'][_0x3c8d8a()[_0x1b2204('0x587')](_0x1b2204('0x108a'))+_0x1b2204('0x1f06')]=_0x2420fb['id']);if(_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x9d7')]&&_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x9d7')]===_0x1b2204('0xbb4')){}else switch((_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x17e')]||_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x9d7')])['toLowerCase']()){case _0x1b2204('0x256d'):_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x1c00')]=_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x10ad')]+'='+_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0xa7b')];break;case _0x1b2204('0xbb4'):break;default:_0x127be3[0x0]=_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x172')],_0x127be3[0x1]=_0x57c09d['queue'][_0x1b2204('0x1f84')],_0x57c09d[_0x1b2204('0x172')][_0x1b2204('0x1c00')]=_0x127be3[_0x1b2204('0x2259')](',');}_0x18b436(_0x57c09d[_0x1b2204('0x172')]);}function _0x18b436(_0x120da6){const _0x59cd0c=_0x2ee822;_0x1fcf61[_0x59cd0c('0x1cf4')](_0x120da6);}}const _0x326a12=_0x740143;_0x179ade['$inject']=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x20b6'),'mailAccount',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x179ade(_0x5406ac,_0x138a92,_0x28b371,_0x2fa65a,_0x1fec95,_0x52410c,_0x15172d,_0x1b36ae){const _0xd70af1=_0x566993,_0x1a7ea8=this;_0x1a7ea8[_0xd70af1('0x155f')]=_0x15172d[_0xd70af1('0x14d4')](),_0x1a7ea8[_0xd70af1('0x1d4a')]=[],_0x1a7ea8['title']=_0xd70af1('0x1344')+(_0x2fa65a[_0xd70af1('0x9d7')]||_0x2fa65a[_0xd70af1('0x17e')])[_0xd70af1('0x1164')](),_0x1a7ea8['system']=angular[_0xd70af1('0x2e3')](_0x2fa65a),_0x1a7ea8[_0xd70af1('0x1dc1')]=_0x1b36ae,_0x1a7ea8[_0xd70af1('0xb0')]={};if(_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1c00')])switch(_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x9d7')]?_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x9d7')][_0xd70af1('0x1e68')]():_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x17e')]['toLowerCase']()){case _0xd70af1('0xbb4'):break;case _0xd70af1('0x1601'):{const _0x880727=_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1c00')][_0xd70af1('0x43a')](',');_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x237a')]=_0x880727[0x0],_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x604')]=_0x880727[0x1],_0x1a7ea8['system'][_0xd70af1('0x1a7')]=_0x880727[_0xd70af1('0x2456')](0x2,_0x880727[_0xd70af1('0x543')])[_0xd70af1('0x2259')](',');}break;case'amazonlex':{const _0x1a494f=_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1c00')][_0xd70af1('0x43a')](',');_0x1a7ea8['system'][_0xd70af1('0x2e0')]=_0x1a494f[0x0],_0x1a7ea8[_0xd70af1('0x1ed')]['secretaccesskey']=_0x1a494f[0x1],_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x10fc')]=_0x1a494f[0x2],_0x1a7ea8['system'][_0xd70af1('0x53')]=_0x1a494f[0x3],_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1a7')]=_0x1a494f[_0xd70af1('0x2456')](0x4,_0x1a494f['length'])[_0xd70af1('0x2259')](',');}break;case _0xd70af1('0x23fe'):{const _0xcbf5f5=_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1c00')][_0xd70af1('0x43a')](',');_0x1a7ea8['system'][_0xd70af1('0x611')]=isNaN(_0xcbf5f5[0x0])?_0xcbf5f5[0x0]:parseInt(_0xcbf5f5[0x0],0xa),_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x86e')]=_0xcbf5f5[_0xd70af1('0x2456')](0x1,_0xcbf5f5[_0xd70af1('0x543')])[_0xd70af1('0x2259')](',');}break;case _0xd70af1('0x67f'):_0x1a7ea8['system'][_0xd70af1('0x86e')]=_0x1a7ea8['system'][_0xd70af1('0x1c00')];break;case _0xd70af1('0x256d'):_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x10ad')]=_0x1a7ea8[_0xd70af1('0x1ed')]['appdata'][_0xd70af1('0x43a')]('=')[0x0],_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0xa7b')]=_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1c00')][_0xd70af1('0x43a')]('=')[0x1];break;case _0xd70af1('0x2426'):_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x220b')]=_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1c00')];break;default:{const _0x1d520b=_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1c00')][_0xd70af1('0x43a')](',');_0x1a7ea8[_0xd70af1('0x1ed')]['command']=_0x3c8d8a()[_0xd70af1('0x1a56')](_0x1d520b[0x0])?_0x1d520b[0x0]:isNaN(_0x1d520b[0x0])?_0x1d520b[0x0]:parseInt(_0x1d520b[0x0],0xa),_0x1a7ea8['system']['variable']=_0x3c8d8a()[_0xd70af1('0x1a56')](_0x1d520b[0x1])?_0x1d520b[0x1]:isNaN(_0x1d520b[0x1])?_0x1d520b[0x1]:parseInt(_0x1d520b[0x1],0xa);}break;}else _0x1a7ea8['system'][_0xd70af1('0x1b56')]='';_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1810')]&&_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x1810')][_0xd70af1('0x1e68')]()===_0xd70af1('0xb33')&&_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x9d7')][_0xd70af1('0x1e68')]()===_0xd70af1('0x1edc')&&(_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0x23f7')]=_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0xa04')]?_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0xa04')]['split']('$')[0x0]:undefined,_0x1a7ea8['system']['callerId']=_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0xe95')]?_0xd70af1('0x20a8')+_0x1a7ea8[_0xd70af1('0x1ed')][_0xd70af1('0xe95')]:undefined);_0x1a7ea8[_0xd70af1('0x95f')]=_0x6ca566,_0x1a7ea8[_0xd70af1('0x18e2')]=_0x48913b,_0x15172d['hasRole'](_0xd70af1('0x79b'))?_0x52410c[_0xd70af1('0x1b56')][_0xd70af1('0x1d97')]({'fields':_0xd70af1('0xd52'),'sort':_0xd70af1('0x10ad'),'nolimit':_0xd70af1('0x799')})[_0xd70af1('0x1964')][_0xd70af1('0x173b')](function(_0x2ebcf8){const _0x489ac9=_0xd70af1;_0x1a7ea8[_0x489ac9('0x2715')]=_0x2ebcf8[_0x489ac9('0x6aa')]||[];})[_0xd70af1('0x103c')](function(_0x23535d){const _0x1faced=_0xd70af1;_0x28b371['error']({'title':_0x23535d[_0x1faced('0x276f')]?'API:'+_0x23535d[_0x1faced('0x276f')]+_0x1faced('0x160c')+_0x23535d['statusText']:_0x1faced('0x1d22'),'msg':_0x23535d[_0x1faced('0x1e07')]?JSON['stringify'](_0x23535d[_0x1faced('0x1e07')]):_0x23535d[_0x1faced('0x1b75')]()});}):_0x52410c[_0xd70af1('0x1b56')][_0xd70af1('0x1d97')]({'fields':_0xd70af1('0xd52'),'sort':_0xd70af1('0x10ad'),'nolimit':_0xd70af1('0x799')})[_0xd70af1('0x1964')][_0xd70af1('0x173b')](function(_0x4e078a){const _0x53b3f2=_0xd70af1;_0x1a7ea8[_0x53b3f2('0x2715')]=_0x4e078a[_0x53b3f2('0x6aa')]||[];})[_0xd70af1('0x173b')](function(){const _0x5b3529=_0xd70af1;return _0x52410c['userProfileSection'][_0x5b3529('0x1d97')]({'userProfileId':_0x1a7ea8['currentUser'][_0x5b3529('0x1946')],'sectionId':0x3f4})[_0x5b3529('0x1964')];})[_0xd70af1('0x173b')](function(_0x273629){const _0x1b3b35=_0xd70af1,_0x47283c=_0x273629&&_0x273629[_0x1b3b35('0x6aa')]?_0x273629[_0x1b3b35('0x6aa')][0x0]:null;if(!_0x47283c){const _0x3a46cd=[];let _0x47a0d4=null;_0x1a7ea8['system']&&(_0x47a0d4=_0x3c8d8a()[_0x1b3b35('0x18ab')](_0x1a7ea8[_0x1b3b35('0x2715')],{'name':_0x1a7ea8[_0x1b3b35('0x1ed')][_0x1b3b35('0x1b56')]}));for(let _0x41d27b=0x0;_0x41d27b<_0x1a7ea8['variables'][_0x1b3b35('0x543')];_0x41d27b++){_0x47a0d4&&_0x1a7ea8[_0x1b3b35('0x2715')][_0x41d27b]['id']===_0x47a0d4['id']&&(_0x1a7ea8[_0x1b3b35('0x2715')][_0x41d27b][_0x1b3b35('0x268e')]=![],_0x3a46cd[_0x1b3b35('0x18bb')](_0x1a7ea8['variables'][_0x41d27b]));}_0x1a7ea8[_0x1b3b35('0x2715')]=_0x3a46cd;}else{if(!_0x47283c['autoAssociation'])return _0x52410c['userProfileResource'][_0x1b3b35('0x1d97')]({'sectionId':_0x47283c['id']})[_0x1b3b35('0x1964')][_0x1b3b35('0x173b')](function(_0x54a940){const _0x5676ce=_0x1b3b35,_0x5cad7a=_0x3c8d8a()[_0x5676ce('0x8a2')](_0x54a940[_0x5676ce('0x6aa')],function(_0x4f58bc){const _0x1a1a46=_0x5676ce;return _0x3c8d8a()[_0x1a1a46('0x18ab')](_0x1a7ea8['variables'],{'id':_0x4f58bc['resourceId']});});let _0x680eb=null;_0x1a7ea8['system']&&(_0x680eb=_0x3c8d8a()[_0x5676ce('0x18ab')](_0x1a7ea8[_0x5676ce('0x2715')],{'name':_0x1a7ea8[_0x5676ce('0x1ed')][_0x5676ce('0x1b56')]}));if(_0x680eb&&!_0x3c8d8a()[_0x5676ce('0x1ec')](_0x5cad7a,['id',_0x680eb['id']])){const _0x580f63=_0x3c8d8a()[_0x5676ce('0x18ab')](_0x1a7ea8[_0x5676ce('0x2715')],{'id':_0x680eb['id']});_0x580f63['canSelect']=![],_0x5cad7a[_0x5676ce('0x18bb')](_0x580f63);}_0x1a7ea8[_0x5676ce('0x2715')]=_0x5cad7a;});}})[_0xd70af1('0x103c')](function(_0x44dcd2){const _0x46008e=_0xd70af1;_0x28b371[_0x46008e('0x15aa')]({'title':_0x44dcd2[_0x46008e('0x276f')]?'API:'+_0x44dcd2['status']+_0x46008e('0x160c')+_0x44dcd2[_0x46008e('0x2696')]:_0x46008e('0x27a'),'msg':_0x44dcd2['data']?JSON[_0x46008e('0x100b')](_0x44dcd2[_0x46008e('0x1e07')]):_0x44dcd2['toString']()});});function _0x6ca566(){const _0x32bcf6=_0xd70af1;_0x1a7ea8[_0x32bcf6('0x1d4a')]=[];const _0x58da34=[];_0x1a7ea8['system'][_0x32bcf6('0x1810')]&&_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0x1810')][_0x32bcf6('0x1e68')]()===_0x32bcf6('0xb33')&&_0x1a7ea8['system'][_0x32bcf6('0x9d7')]===_0x32bcf6('0x2150')&&(_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0xa04')]=_0x1fec95['cutdigits']?(_0x1a7ea8['system'][_0x32bcf6('0x23f7')]||'')+'${EXTEN:'+_0x1fec95[_0x32bcf6('0x1429')]+'}':(_0x1a7ea8['system'][_0x32bcf6('0x23f7')]||'')+'${EXTEN}',_0x1fec95[_0x32bcf6('0x76c')]!==_0x32bcf6('0x2741')?_0x1a7ea8[_0x32bcf6('0x1ed')]['options']['indexOf'](_0x32bcf6('0x2474'))<0x0&&(_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0x2010')]+='U(xcally-mixmonitor-context)'):_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0x2010')]=_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0x2010')][_0x32bcf6('0x166c')](_0x32bcf6('0x2474'),''));if(_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0x9d7')]&&_0x1a7ea8['system']['appType']===_0x32bcf6('0xbb4')){}else switch((_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0x17e')]||_0x1a7ea8['system'][_0x32bcf6('0x9d7')])[_0x32bcf6('0x1e68')]()){case _0x32bcf6('0x256d'):_0x1a7ea8['system'][_0x32bcf6('0x1c00')]=_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0x10ad')]+'='+_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0xa7b')];break;case _0x32bcf6('0xbb4'):break;default:_0x58da34[0x0]=_0x1a7ea8['system']['command'],_0x58da34[0x1]=_0x1a7ea8[_0x32bcf6('0x1ed')][_0x32bcf6('0x1b56')],_0x1a7ea8[_0x32bcf6('0x1ed')]['appdata']=_0x58da34[_0x32bcf6('0x2259')](',');}_0x48913b(_0x1a7ea8['system']);}function _0x48913b(_0x40d0f8){const _0x5775f4=_0xd70af1;_0x5406ac[_0x5775f4('0x1cf4')](_0x40d0f8);}}const _0x2bd7ee=_0x179ade;_0x29fe18['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x20b6'),_0x566993('0x77b'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x29fe18(_0x108044,_0x2fa8b3,_0x5a61ca,_0x55247b,_0x27aeb1,_0x558f7b,_0x11f932,_0x53d567){const _0x42c228=_0x566993,_0x4b1af0=this;_0x4b1af0[_0x42c228('0x155f')]=_0x11f932[_0x42c228('0x14d4')](),_0x4b1af0['errors']=[],_0x4b1af0[_0x42c228('0x20d6')]=_0x42c228('0x1344')+(_0x55247b[_0x42c228('0x9d7')]||_0x55247b[_0x42c228('0x17e')])[_0x42c228('0x1164')](),_0x4b1af0[_0x42c228('0x23b4')]=angular[_0x42c228('0x2e3')](_0x55247b),_0x4b1af0[_0x42c228('0x1dc1')]=_0x53d567,_0x4b1af0[_0x42c228('0xb0')]={};if(_0x4b1af0['tag'][_0x42c228('0x1c00')])switch(_0x4b1af0[_0x42c228('0x23b4')]['appType']?_0x4b1af0[_0x42c228('0x23b4')]['appType'][_0x42c228('0x1e68')]():_0x4b1af0['tag'][_0x42c228('0x17e')][_0x42c228('0x1e68')]()){case _0x42c228('0xbb4'):break;case _0x42c228('0x1601'):{const _0x53ab27=_0x4b1af0['tag'][_0x42c228('0x1c00')][_0x42c228('0x43a')](',');_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x237a')]=_0x53ab27[0x0],_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x604')]=_0x53ab27[0x1],_0x4b1af0[_0x42c228('0x23b4')]['welcomemessage']=_0x53ab27[_0x42c228('0x2456')](0x2,_0x53ab27[_0x42c228('0x543')])[_0x42c228('0x2259')](',');}break;case _0x42c228('0x1680'):{const _0x12b8ec=_0x4b1af0['tag']['appdata'][_0x42c228('0x43a')](',');_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x2e0')]=_0x12b8ec[0x0],_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x1d93')]=_0x12b8ec[0x1],_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x10fc')]=_0x12b8ec[0x2],_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x53')]=_0x12b8ec[0x3],_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x1a7')]=_0x12b8ec[_0x42c228('0x2456')](0x4,_0x12b8ec[_0x42c228('0x543')])[_0x42c228('0x2259')](',');}break;case _0x42c228('0x23fe'):{const _0x4c9136=_0x4b1af0['tag'][_0x42c228('0x1c00')][_0x42c228('0x43a')](',');_0x4b1af0[_0x42c228('0x23b4')]['times']=isNaN(_0x4c9136[0x0])?_0x4c9136[0x0]:parseInt(_0x4c9136[0x0],0xa),_0x4b1af0['tag'][_0x42c228('0x86e')]=_0x4c9136[_0x42c228('0x2456')](0x1,_0x4c9136[_0x42c228('0x543')])[_0x42c228('0x2259')](',');}break;case'message':_0x4b1af0[_0x42c228('0x23b4')]['text']=_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x1c00')];break;case _0x42c228('0x256d'):_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x10ad')]=_0x4b1af0['tag'][_0x42c228('0x1c00')][_0x42c228('0x43a')]('=')[0x0],_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0xa7b')]=_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x1c00')]['split']('=')[0x1];break;case _0x42c228('0x2426'):_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x220b')]=_0x4b1af0['tag'][_0x42c228('0x1c00')];break;default:{const _0x4abe69=_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x1c00')]['split'](',');_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x23b4')]=_0x3c8d8a()[_0x42c228('0x1a56')](_0x4abe69[0x0])?_0x4abe69[0x0]:isNaN(_0x4abe69[0x0])?_0x4abe69[0x0]:parseInt(_0x4abe69[0x0],0xa);}break;}else{}_0x4b1af0[_0x42c228('0x23b4')]['type']&&_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x1810')][_0x42c228('0x1e68')]()===_0x42c228('0xb33')&&_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0x9d7')]['toLowerCase']()===_0x42c228('0x1edc')&&(_0x4b1af0[_0x42c228('0x23b4')]['prefix']=_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0xa04')]?_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0xa04')][_0x42c228('0x43a')]('$')[0x0]:undefined,_0x4b1af0[_0x42c228('0x23b4')]['callerId']=_0x4b1af0['tag'][_0x42c228('0xe95')]?_0x42c228('0x20a8')+_0x4b1af0[_0x42c228('0x23b4')][_0x42c228('0xe95')]:undefined);_0x4b1af0[_0x42c228('0x95f')]=_0x1077da,_0x4b1af0[_0x42c228('0x18e2')]=_0x50acdc,_0x11f932['hasRole'](_0x42c228('0x79b'))?_0x558f7b['tag']['get']({'fields':'id,name','sort':_0x42c228('0x10ad'),'nolimit':_0x42c228('0x799')})['$promise'][_0x42c228('0x173b')](function(_0x218b6e){const _0x4f742f=_0x42c228;_0x4b1af0[_0x4f742f('0x22ac')]=_0x218b6e[_0x4f742f('0x6aa')]||[];})['catch'](function(_0x49fe30){const _0x2a3a0c=_0x42c228;_0x5a61ca['error']({'title':_0x49fe30[_0x2a3a0c('0x276f')]?_0x2a3a0c('0x137')+_0x49fe30[_0x2a3a0c('0x276f')]+'\x20-\x20'+_0x49fe30[_0x2a3a0c('0x2696')]:'SYSTEM:GET_TAGS','msg':_0x49fe30[_0x2a3a0c('0x1e07')]?JSON[_0x2a3a0c('0x100b')](_0x49fe30[_0x2a3a0c('0x1e07')]):_0x49fe30[_0x2a3a0c('0x1b75')]()});}):_0x558f7b[_0x42c228('0x23b4')][_0x42c228('0x1d97')]({'fields':_0x42c228('0xd52'),'sort':'name','nolimit':_0x42c228('0x799')})[_0x42c228('0x1964')][_0x42c228('0x173b')](function(_0x1548f7){const _0x58f49e=_0x42c228;_0x4b1af0['tags']=_0x1548f7[_0x58f49e('0x6aa')]||[];})[_0x42c228('0x173b')](function(){const _0x1f8324=_0x42c228;return _0x558f7b[_0x1f8324('0x170e')][_0x1f8324('0x1d97')]({'userProfileId':_0x4b1af0[_0x1f8324('0x155f')][_0x1f8324('0x1946')],'sectionId':0x3f0})[_0x1f8324('0x1964')];})['then'](function(_0x4ec9d9){const _0x570bc8=_0x42c228,_0x555a99=_0x4ec9d9&&_0x4ec9d9[_0x570bc8('0x6aa')]?_0x4ec9d9['rows'][0x0]:null;if(!_0x555a99){const _0x9178b2=[];let _0x119f87=null;_0x4b1af0['tag']&&(_0x119f87=_0x3c8d8a()[_0x570bc8('0x18ab')](_0x4b1af0[_0x570bc8('0x22ac')],{'name':_0x4b1af0[_0x570bc8('0x23b4')][_0x570bc8('0x23b4')]}));for(let _0x432d9f=0x0;_0x432d9f<_0x4b1af0[_0x570bc8('0x22ac')][_0x570bc8('0x543')];_0x432d9f++){_0x119f87&&_0x4b1af0[_0x570bc8('0x22ac')][_0x432d9f]['id']===_0x119f87['id']&&(_0x4b1af0[_0x570bc8('0x22ac')][_0x432d9f]['canSelect']=![],_0x9178b2[_0x570bc8('0x18bb')](_0x4b1af0[_0x570bc8('0x22ac')][_0x432d9f]));}_0x4b1af0[_0x570bc8('0x22ac')]=_0x9178b2;}else{if(!_0x555a99[_0x570bc8('0x273e')])return _0x558f7b[_0x570bc8('0xda9')][_0x570bc8('0x1d97')]({'sectionId':_0x555a99['id']})[_0x570bc8('0x1964')][_0x570bc8('0x173b')](function(_0x1d207c){const _0x562609=_0x570bc8,_0x63da6d=_0x3c8d8a()['map'](_0x1d207c[_0x562609('0x6aa')],function(_0x16b251){const _0x346f83=_0x562609;return _0x3c8d8a()[_0x346f83('0x18ab')](_0x4b1af0[_0x346f83('0x22ac')],{'id':_0x16b251[_0x346f83('0x1ce0')]});});let _0x1ec9aa=null;_0x4b1af0[_0x562609('0x23b4')]&&(_0x1ec9aa=_0x3c8d8a()[_0x562609('0x18ab')](_0x4b1af0[_0x562609('0x22ac')],{'name':_0x4b1af0[_0x562609('0x23b4')][_0x562609('0x23b4')]}));if(_0x1ec9aa&&!_0x3c8d8a()[_0x562609('0x1ec')](_0x63da6d,['id',_0x1ec9aa['id']])){const _0x2f8028=_0x3c8d8a()[_0x562609('0x18ab')](_0x4b1af0['tags'],{'id':_0x1ec9aa['id']});_0x2f8028['canSelect']=![],_0x63da6d[_0x562609('0x18bb')](_0x2f8028);}_0x4b1af0[_0x562609('0x22ac')]=_0x63da6d;});}})[_0x42c228('0x103c')](function(_0x25b4ca){const _0x5f4339=_0x42c228;_0x5a61ca['error']({'title':_0x25b4ca['status']?_0x5f4339('0x137')+_0x25b4ca['status']+_0x5f4339('0x160c')+_0x25b4ca[_0x5f4339('0x2696')]:'SYSTEM:GETtags','msg':_0x25b4ca[_0x5f4339('0x1e07')]?JSON['stringify'](_0x25b4ca[_0x5f4339('0x1e07')]):_0x25b4ca[_0x5f4339('0x1b75')]()});});function _0x1077da(){const _0x1905cd=_0x42c228;_0x4b1af0[_0x1905cd('0x1d4a')]=[];const _0x48fa04=[];_0x4b1af0['tag'][_0x1905cd('0x1810')]&&_0x4b1af0[_0x1905cd('0x23b4')]['type'][_0x1905cd('0x1e68')]()===_0x1905cd('0xb33')&&_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x9d7')]===_0x1905cd('0x2150')&&(_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0xa04')]=_0x27aeb1[_0x1905cd('0x1429')]?(_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x23f7')]||'')+'${EXTEN:'+_0x27aeb1[_0x1905cd('0x1429')]+'}':(_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x23f7')]||'')+_0x1905cd('0x1dc5'),_0x27aeb1[_0x1905cd('0x76c')]!==_0x1905cd('0x2741')?_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x2010')][_0x1905cd('0x2087')](_0x1905cd('0x2474'))<0x0&&(_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x2010')]+=_0x1905cd('0x2474')):_0x4b1af0[_0x1905cd('0x23b4')]['options']=_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x2010')][_0x1905cd('0x166c')](_0x1905cd('0x2474'),''));const _0x2b619e=_0x3c8d8a()['find'](_0x4b1af0[_0x1905cd('0x22ac')],{'name':_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x23b4')]});_0x2b619e&&(_0x4b1af0['tag']['TagId']=_0x2b619e['id']);if(_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x9d7')]&&_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x9d7')]===_0x1905cd('0xbb4')){}else switch((_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x17e')]||_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x9d7')])[_0x1905cd('0x1e68')]()){case _0x1905cd('0x256d'):_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x1c00')]=_0x4b1af0[_0x1905cd('0x23b4')]['name']+'='+_0x4b1af0['tag'][_0x1905cd('0xa7b')];break;case _0x1905cd('0xbb4'):break;default:_0x48fa04[0x0]=_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x23b4')],_0x4b1af0[_0x1905cd('0x23b4')][_0x1905cd('0x1c00')]=_0x48fa04[_0x1905cd('0x2259')](',');}_0x50acdc(_0x4b1af0[_0x1905cd('0x23b4')]);}function _0x50acdc(_0x2374a0){const _0x4737b3=_0x42c228;_0x108044[_0x4737b3('0x1cf4')](_0x2374a0);}}const _0x13e279=_0x29fe18;_0x299c15[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q','$translate','$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x299c15(_0x2b92dd,_0x415034,_0x28e7e0,_0x280a38,_0x10d4a2,_0xe5b35a,_0x24e0b7,_0x1a2db4,_0x43f69f,_0x372ad9,_0x19b933){const _0x426e13=_0x566993,_0x591d18=this;_0x591d18[_0x426e13('0x155f')]=_0x19b933[_0x426e13('0x14d4')](),_0x591d18[_0x426e13('0x77b')]={},_0x591d18[_0x426e13('0x24f6')]={'count':0x0,'rows':[]},_0x591d18[_0x426e13('0x503')]=[],_0x591d18[_0x426e13('0x1dc1')],_0x591d18[_0x426e13('0xc49')]={'read':_0x426e13('0x877'),'closed':_0x426e13('0x877'),'sort':'-createdAt','includeAll':_0x426e13('0x799'),'limit':0xa,'page':0x1},_0x591d18[_0x426e13('0xb9c')]=_0x53ef7e,_0x591d18[_0x426e13('0x2051')]=_0x517e67,_0x591d18[_0x426e13('0x120a')]=_0x1d40a9,_0x591d18[_0x426e13('0xdfe')]=_0x58a554,_0x591d18[_0x426e13('0xe7e')]=_0x484e62,_0x591d18[_0x426e13('0x39e')]=_0x30a163,_0x591d18['openAdvancedSearch']=_0x3c0b4b,_0x591d18[_0x426e13('0x2738')]=_0x246472,_0x591d18[_0x426e13('0x19b1')]=_0x3caa30,_0x591d18[_0x426e13('0x2308')]=_0x41a501;function _0x53ef7e(_0x374900,_0xe52e7c){const _0x333808=_0x426e13;_0x591d18[_0x333808('0x77b')]=_0x374900,_0x591d18[_0x333808('0x1dc1')]=typeof _0xe52e7c!=='undefined'?_0xe52e7c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x591d18[_0x333808('0xc49')][_0x333808('0x559')]=_0x591d18[_0x333808('0x77b')]['id'],_0x591d18[_0x333808('0x2706')]={'fields':_0x5d63f8()},_0xd24646();}function _0xd24646(){const _0xaa8e8a=_0x426e13;return _0x372ad9[_0xaa8e8a('0x23b4')]['get']()[_0xaa8e8a('0x1964')][_0xaa8e8a('0x173b')](function(_0x25d836){const _0x47c404=_0xaa8e8a;_0x591d18[_0x47c404('0x22ac')]=_0x25d836||{'count':0x0,'rows':[]};})['then'](function(){const _0x52434d=_0xaa8e8a;return _0x372ad9[_0x52434d('0x1f8e')][_0x52434d('0x1d97')]({'nolimit':!![]})[_0x52434d('0x1964')][_0x52434d('0x173b')](function(_0x345145){const _0x16c192=_0x52434d;_0x591d18[_0x16c192('0xebe')]=_0x345145||{'count':0x0,'rows':[]};});})[_0xaa8e8a('0x173b')](function(){const _0x313906=_0xaa8e8a;_0x591d18[_0x313906('0x485')]=_0x18b9a6();});}function _0x18b9a6(){const _0x2bd74c=_0x426e13;return[{'name':_0x2bd74c('0x1406'),'key':'createdAt','type':_0x2bd74c('0x22b6'),'label':_0x2bd74c('0xa98')},{'name':_0x2bd74c('0x2634'),'key':_0x2bd74c('0x69b'),'type':_0x2bd74c('0xc65'),'label':_0x2bd74c('0x1881'),'customOptions':[{'value':0x0,'translate':_0x2bd74c('0x1015')},{'value':0x1,'translate':_0x2bd74c('0x1170')},{'value':null,'translate':_0x2bd74c('0x47a')}]},{'name':_0x2bd74c('0xef8'),'key':_0x2bd74c('0x1636'),'type':_0x2bd74c('0xc65'),'label':_0x2bd74c('0x1647'),'customOptions':[{'value':0x0,'translate':_0x2bd74c('0x163c')},{'value':0x1,'translate':_0x2bd74c('0x1389')},{'value':null,'translate':_0x2bd74c('0x47a')}]},{'name':'Substatus','key':_0x2bd74c('0x1cae'),'type':_0x2bd74c('0xc65'),'label':_0x2bd74c('0x2289'),'options':_0x591d18[_0x2bd74c('0xebe')][_0x2bd74c('0x6aa')],'customOptions':[{'value':_0x2bd74c('0x877'),'translate':_0x2bd74c('0x1a31')},{'value':undefined,'translate':_0x2bd74c('0x47a')}],'ngValue':_0x2bd74c('0x10ad'),'ngIf':_0x2bd74c('0x137e')},{'name':_0x2bd74c('0x1547'),'key':_0x2bd74c('0x181c'),'type':'select','label':_0x2bd74c('0x956'),'customOptions':[{'value':_0x2bd74c('0x877'),'translate':_0x2bd74c('0x27a8')},{'value':undefined,'translate':_0x2bd74c('0x47a')}]},{'name':_0x2bd74c('0x460'),'key':_0x2bd74c('0x23b4'),'type':'multiselect','label':_0x2bd74c('0x1e6f'),'options':_0x591d18[_0x2bd74c('0x22ac')]['rows'],'placeholder':'DASHBOARDS.TAGS'}];}function _0x5d63f8(){const _0x3bcc02=_0x426e13;return[{'name':'Id','column':'id','type':_0x3bcc02('0x1d81')},{'name':_0x3bcc02('0x1f70'),'column':_0x3bcc02('0x1f70'),'type':_0x3bcc02('0xe92'),'options':{'searchFields':[_0x3bcc02('0x1e50'),_0x3bcc02('0x1806'),_0x3bcc02('0x28e')],'route':{'model':_0x3bcc02('0x1197'),'action':_0x3bcc02('0x1d97'),'params':{'fields':_0x3bcc02('0x1cf0'),'Contact':_0x3bcc02('0xdd7'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':'Subject','column':_0x3bcc02('0x11bc'),'type':_0x3bcc02('0x86e'),'options':{'excludedOperators':[_0x3bcc02('0xc0c'),_0x3bcc02('0x10be')]}},{'name':'Body','column':_0x3bcc02('0x1405'),'type':_0x3bcc02('0x86e'),'options':{'excludedOperators':[_0x3bcc02('0xc0c'),_0x3bcc02('0x10be')]}},{'name':_0x3bcc02('0xef8'),'column':_0x3bcc02('0x1636'),'type':'select','values':[{'id':0x0,'translate':_0x3bcc02('0x163c')},{'id':0x1,'translate':_0x3bcc02('0x1389')}],'options':{'excludedOperators':[_0x3bcc02('0x10be')]}},{'name':'Substatus','column':_0x3bcc02('0x1cae'),'type':_0x3bcc02('0x1c68'),'options':{'field':_0x3bcc02('0x10ad'),'route':{'model':'mailSubstatus','action':_0x3bcc02('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':'Agent','column':_0x3bcc02('0x2265'),'type':_0x3bcc02('0xe92'),'options':{'table':'i','route':{'model':_0x3bcc02('0x166f'),'action':'get','params':{'role':_0x3bcc02('0x7b0'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname',_0x3bcc02('0x10ad')],'extraOperators':[_0x3bcc02('0x2694')],'excludedOperators':['$ne']}},{'name':_0x3bcc02('0xc38'),'column':_0x3bcc02('0x460'),'type':_0x3bcc02('0x1c68'),'options':{'route':{'model':'tag','action':_0x3bcc02('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':[_0x3bcc02('0x2232')]}},{'name':_0x3bcc02('0x1406'),'column':_0x3bcc02('0xda8'),'type':_0x3bcc02('0x22b6'),'options':{'excludedOperators':[_0x3bcc02('0x10be')]}},{'name':_0x3bcc02('0x247a'),'column':'unreadMessages','type':_0x3bcc02('0xc65'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x3bcc02('0x1015')}],'options':{'excludedOperators':[_0x3bcc02('0x10be')]}}];}function _0x3c0b4b(){const _0x25a9db=_0x426e13;_0x24e0b7['show']({'controller':_0x25a9db('0x1c5b'),'controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x25a9db('0xb6d')](_0x1a2db4[_0x25a9db('0x1a5')]),'clickOutsideToClose':![],'locals':{'fields':_0x591d18[_0x25a9db('0x2706')][_0x25a9db('0x2340')],'color':undefined,'storagePath':_0x25a9db('0x14ea')},'fullscreen':!![]})['then'](function(_0x2b4b50){const _0x165b19=_0x25a9db;_0x591d18['query'][_0x165b19('0x23e7')]=_0x2b4b50===![]?undefined:_0x2b4b50;if(_0x591d18[_0x165b19('0xc49')][_0x165b19('0x23e7')])_0x591d18[_0x165b19('0xc49')][_0x165b19('0x23e7')]+=_0x165b19('0x2625')+_0x591d18[_0x165b19('0x77b')]['id']+']',_0x484e62();else _0x2b4b50===![]&&_0x484e62();})[_0x25a9db('0x103c')](function(_0x242040){const _0x21da54=_0x25a9db;_0x43f69f['error']({'title':_0x21da54('0x280c'),'msg':_0x242040[_0x21da54('0x1e07')]?JSON[_0x21da54('0x100b')](_0x242040['data']['message']):_0x242040[_0x21da54('0x1b75')]()});});}function _0x1d40a9(_0x4ae3d3,_0x35a508,_0x713ece){const _0x211097=_0x426e13;return _0x372ad9[_0x211097('0x763')]['download']({'id':_0x4ae3d3['id'],'exists':!![],'attachments':_0x713ece})[_0x211097('0x1964')][_0x211097('0x173b')](function(_0x1aa178){const _0x34901d=_0x211097,_0x59dd12=[_0x1aa178[_0x34901d('0x1c22')]];let _0x143c1c=_0x34901d('0x8d6')+_0x4ae3d3['id'];const _0xb2d6aa=new Blob(_0x59dd12,{'type':_0x1aa178['type']});_0x143c1c='mail-interaction'+_0x4ae3d3['id']+_0x34901d('0x1421');const _0x37cf38=window[_0x34901d('0x222a')][_0x34901d('0x1258')]('a');_0x37cf38['setAttribute'](_0x34901d('0x165c'),URL['createObjectURL'](_0xb2d6aa)),_0x37cf38[_0x34901d('0x11c3')]('download',_0x143c1c),document[_0x34901d('0x1a5')][_0x34901d('0x1f8d')](_0x37cf38),_0x37cf38[_0x34901d('0x3cb')]();})['catch'](function(_0x3b2b23){const _0x346f5c=_0x211097;if(_0x3b2b23[_0x346f5c('0x1e07')]&&_0x3b2b23[_0x346f5c('0x1e07')]['errors']&&_0x3b2b23[_0x346f5c('0x1e07')]['errors'][_0x346f5c('0x543')])for(let _0x4b0f94=0x0;_0x4b0f94<_0x3b2b23[_0x346f5c('0x1e07')][_0x346f5c('0x1d4a')][_0x346f5c('0x543')];_0x4b0f94+=0x1){_0x43f69f[_0x346f5c('0x15aa')]({'title':_0x3b2b23[_0x346f5c('0x1e07')][_0x346f5c('0x1d4a')][_0x4b0f94][_0x346f5c('0x1810')],'msg':_0x3b2b23[_0x346f5c('0x1e07')][_0x346f5c('0x1d4a')][_0x4b0f94][_0x346f5c('0x67f')]});}else _0x43f69f[_0x346f5c('0x15aa')]({'title':_0x3b2b23[_0x346f5c('0x276f')]?_0x346f5c('0x137')+_0x3b2b23[_0x346f5c('0x276f')]+_0x346f5c('0x160c')+_0x3b2b23['statusText']:_0x346f5c('0x768'),'msg':_0x3b2b23[_0x346f5c('0x1e07')]?JSON[_0x346f5c('0x100b')](_0x3b2b23['data'][_0x346f5c('0x67f')]):_0x3b2b23['toString']()});});}function _0x517e67(_0x30783d,_0x34740b){const _0x210e02=_0x426e13,_0x5add8f=_0x24e0b7['confirm']()['title'](_0x210e02('0x1169'))['htmlContent'](_0x210e02('0x15b9')+(_0x30783d[_0x210e02('0x10ad')]||_0x30783d['id']&&_0x3c8d8a()[_0x210e02('0x5ba')](_0x210e02('0x1523'))+_0x30783d['id']||_0x210e02('0x8d6'))+_0x210e02('0x24be')+_0x210e02('0xd23'))['ariaLabel'](_0x210e02('0x10bd'))[_0x210e02('0x21de')](_0x34740b)['ok']('OK')[_0x210e02('0x1e1f')](_0x210e02('0x468'));_0x24e0b7[_0x210e02('0x1cb7')](_0x5add8f)[_0x210e02('0x173b')](function(){_0x3caa30(_0x30783d);},function(){const _0x1a18f5=_0x210e02;console[_0x1a18f5('0xe37')](_0x1a18f5('0x468'));});}function _0x58a554(_0x67f01f){const _0x5b234e=_0x426e13;_0x591d18[_0x5b234e('0x24f6')]=_0x67f01f||{'count':0x0,'rows':[]};for(let _0x44a52f=0x0;_0x44a52f<_0x591d18[_0x5b234e('0x24f6')][_0x5b234e('0x6aa')][_0x5b234e('0x543')];_0x44a52f+=0x1){const _0x3845f8=_0x591d18['mailAccountInteractions'][_0x5b234e('0x6aa')][_0x44a52f];_0x20e41e(_0x3845f8),_0x3845f8[_0x5b234e('0x274f')][_0x5b234e('0x10ad')]=_0x59e046(_0x3845f8);}}function _0x484e62(){const _0x5023b1=_0x426e13;_0x591d18[_0x5023b1('0xc49')]['offset']=(_0x591d18[_0x5023b1('0xc49')][_0x5023b1('0x182e')]-0x1)*_0x591d18[_0x5023b1('0xc49')][_0x5023b1('0x3e')],_0x591d18[_0x5023b1('0x2219')]=_0x372ad9[_0x5023b1('0x763')][_0x5023b1('0x1d97')](_0x591d18[_0x5023b1('0xc49')],_0x58a554)[_0x5023b1('0x1964')];}function _0x30a163(_0x272300,_0x5d3d1f){const _0x337991=_0x426e13;_0x24e0b7[_0x337991('0x1cb7')]({'controller':_0x337991('0x58c'),'controllerAs':'vm','templateUrl':_0x4717ab,'parent':angular[_0x337991('0xb6d')](_0x1a2db4[_0x337991('0x1a5')]),'targetEvent':_0x272300,'clickOutsideToClose':!![],'onShowing':function(_0x82f539){const _0x5da9a8=_0x337991;_0x82f539['vm']['init']({'id':0x1,'channel':_0x5da9a8('0x108a'),'interaction':_0x5d3d1f,'spy':!![]},_0x415034[_0x5da9a8('0x1d44')]['vm'][_0x5da9a8('0x251')]);}});}function _0x3caa30(_0x5a5b6e){const _0x3385ad=_0x426e13;_0x372ad9['mailInteraction'][_0x3385ad('0x15e8')]({'id':_0x5a5b6e['id']})[_0x3385ad('0x1964')][_0x3385ad('0x173b')](function(){const _0x3b3c34=_0x3385ad;_0x3c8d8a()[_0x3b3c34('0x1a8b')](_0x591d18[_0x3b3c34('0x24f6')][_0x3b3c34('0x6aa')],{'id':_0x5a5b6e['id']}),_0x591d18[_0x3b3c34('0x24f6')][_0x3b3c34('0x1a2f')]-=0x1,!_0x591d18[_0x3b3c34('0x24f6')][_0x3b3c34('0x6aa')]['length']&&_0x484e62(),_0x43f69f['success']({'title':_0x3b3c34('0x22c0'),'msg':_0x5a5b6e[_0x3b3c34('0x10ad')]?_0x5a5b6e[_0x3b3c34('0x10ad')]+_0x3b3c34('0x25d2'):''});})[_0x3385ad('0x103c')](function(_0x595fbb){const _0x40b2e7=_0x3385ad;if(_0x595fbb[_0x40b2e7('0x1e07')]&&_0x595fbb['data'][_0x40b2e7('0x1d4a')]&&_0x595fbb['data'][_0x40b2e7('0x1d4a')][_0x40b2e7('0x543')]){_0x591d18[_0x40b2e7('0x1d4a')]=_0x595fbb['data'][_0x40b2e7('0x1d4a')]||[{'message':_0x595fbb[_0x40b2e7('0x1b75')](),'type':_0x40b2e7('0x22e2')}];for(let _0x1fd05c=0x0;_0x1fd05c<_0x595fbb['data'][_0x40b2e7('0x1d4a')][_0x40b2e7('0x543')];_0x1fd05c++){_0x43f69f[_0x40b2e7('0x15aa')]({'title':_0x595fbb['data'][_0x40b2e7('0x1d4a')][_0x1fd05c][_0x40b2e7('0x1810')],'msg':_0x595fbb[_0x40b2e7('0x1e07')]['errors'][_0x1fd05c][_0x40b2e7('0x67f')]});}}else _0x43f69f['error']({'title':_0x595fbb[_0x40b2e7('0x276f')]?'API:'+_0x595fbb[_0x40b2e7('0x276f')]+_0x40b2e7('0x160c')+_0x595fbb[_0x40b2e7('0x2696')]:'SYSTEM:GETmailAccount','msg':_0x595fbb['data']?JSON['stringify'](_0x595fbb[_0x40b2e7('0x1e07')][_0x40b2e7('0x67f')]):_0x595fbb[_0x40b2e7('0x67f')]||_0x595fbb[_0x40b2e7('0x1b75')]()});});}function _0x246472(){const _0x2d52be=_0x426e13,_0x4a3652=angular['copy'](_0x591d18['selectedMailAccountInteractions']);return _0x591d18[_0x2d52be('0x503')]=[],_0x4a3652;}function _0x41a501(_0x3c5765){const _0x1263f2=_0x426e13,_0x47548e=_0x24e0b7[_0x1263f2('0x1d02')]()['title'](_0x1263f2('0x568'))[_0x1263f2('0xf8b')](''+_0x591d18[_0x1263f2('0x503')]['length']+_0x1263f2('0xcb4')+_0x1263f2('0xd23'))[_0x1263f2('0x217')](_0x1263f2('0x19'))[_0x1263f2('0x21de')](_0x3c5765)['ok']('OK')['cancel'](_0x1263f2('0x468'));_0x24e0b7[_0x1263f2('0x1cb7')](_0x47548e)[_0x1263f2('0x173b')](function(){const _0x57995a=_0x1263f2;_0x591d18['selectedMailAccountInteractions'][_0x57995a('0xa6a')](function(_0x33f0eb){_0x3caa30(_0x33f0eb);}),_0x591d18['selectedMailAccountInteractions']=[];});}function _0x20e41e(_0x583ebc){const _0x272fb6=_0x426e13;if(!_0x3c8d8a()[_0x272fb6('0x1a56')](_0x583ebc['to'])&&!_0x3c8d8a()[_0x272fb6('0x2814')](_0x583ebc['to'],_0x591d18[_0x272fb6('0x77b')]['email']))_0x583ebc[_0x272fb6('0x98d')]=_0x583ebc['to']['split']('\x20<')[0x0],_0x583ebc[_0x272fb6('0x2521')]=_0x583ebc['to']['split']('<')[_0x272fb6('0x362')]()[_0x272fb6('0x43a')]('>')[0x0];else _0x583ebc[_0x272fb6('0x1f70')]?(_0x583ebc[_0x272fb6('0x98d')]=(_0x583ebc[_0x272fb6('0x1f70')][_0x272fb6('0x1e50')]||'')+'\x20'+(_0x583ebc[_0x272fb6('0x1f70')][_0x272fb6('0x1806')]||''),_0x583ebc[_0x272fb6('0x2521')]=_0x583ebc[_0x272fb6('0x1f70')][_0x272fb6('0x28e')]||''):_0x583ebc[_0x272fb6('0x98d')]=_0x10d4a2['instant']('MAIL.UNKNOWN');}function _0x59e046(_0x549409){const _0x5d334c=_0x426e13;if(_0x549409[_0x5d334c('0x181c')])return _0x549409[_0x5d334c('0x181c')]===_0x591d18[_0x5d334c('0x155f')]['id']?_0x10d4a2[_0x5d334c('0x1467')]('DASHBOARDS.ME'):_0x549409[_0x5d334c('0x274f')][_0x5d334c('0x572')]+'\x20<'+_0x549409[_0x5d334c('0x274f')][_0x5d334c('0x138c')]+'>';return _0x10d4a2['instant'](_0x5d334c('0x27a8'));}let _0x14a377=!![],_0xf1c62d=0x1;_0x415034[_0x426e13('0x1bdb')](_0x426e13('0x5b8'),function(_0x7ecbd5,_0x3f6c8f){const _0x1e8c83=_0x426e13;_0x14a377?_0xe5b35a(function(){_0x14a377=![];}):(!_0x3f6c8f&&(_0xf1c62d=_0x591d18['query'][_0x1e8c83('0x182e')]),_0x7ecbd5!==_0x3f6c8f&&(_0x591d18[_0x1e8c83('0xc49')][_0x1e8c83('0x182e')]=0x1),!_0x7ecbd5&&(_0x591d18[_0x1e8c83('0xc49')][_0x1e8c83('0x182e')]=_0xf1c62d),_0x484e62());});}const _0x843de9=_0x299c15,_0x4821ce=_0x21a6a1['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog.html';_0x3f6bd9[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x3f6bd9(_0x51b8d1,_0x6fac0d,_0x5873e6,_0x17c47c,_0x9c11be,_0x3df47f,_0x4a6de2,_0x43dc06,_0x24ffc9,_0x3b4a31,_0x1800cd){const _0x4cde4f=_0x566993,_0xd499d3=this;_0xd499d3['currentUser']=_0x1800cd[_0x4cde4f('0x14d4')](),_0xd499d3[_0x4cde4f('0x77b')]={},_0xd499d3[_0x4cde4f('0x225a')]={'count':0x0,'rows':[]},_0xd499d3[_0x4cde4f('0x2167')]=[],_0xd499d3[_0x4cde4f('0x1dc1')],_0xd499d3['query']={'fields':_0x4cde4f('0x1f12'),'limit':0xa,'page':0x1},_0xd499d3['init']=_0x2f7597,_0xd499d3[_0x4cde4f('0x2051')]=_0x1fb1bd,_0xd499d3['success']=_0x2f5252,_0xd499d3[_0x4cde4f('0xb1')]=_0xc82b1f,_0xd499d3['createOrEditMailAccountMailCannedAnswer']=_0x37718e,_0xd499d3[_0x4cde4f('0x1e04')]=_0xee8b6b,_0xd499d3[_0x4cde4f('0x38e')]=_0x2c49cc,_0xd499d3['deleteSelectedMailAccountMailCannedAnswers']=_0x330daf;function _0x2f7597(_0x3bc91c,_0x1c47e7){const _0x3f45fb=_0x4cde4f;_0xd499d3['mailAccount']=_0x3bc91c,_0xd499d3[_0x3f45fb('0x1dc1')]=typeof _0x1c47e7!==_0x3f45fb('0x6e5')?_0x1c47e7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xd499d3[_0x3f45fb('0xc49')][_0x3f45fb('0x559')]=_0xd499d3[_0x3f45fb('0x77b')]['id'],_0xd499d3[_0x3f45fb('0xc49')]['id']=_0xd499d3[_0x3f45fb('0x77b')]['id'],_0xc82b1f();}function _0x1fb1bd(_0x29d3d5,_0x25ab84){const _0x5c6d1a=_0x4cde4f,_0x317688=_0x4a6de2['confirm']()[_0x5c6d1a('0x20d6')](_0x5c6d1a('0x791'))['htmlContent'](_0x5c6d1a('0x15b9')+(_0x29d3d5['name']||_0x29d3d5['id']&&_0x3c8d8a()['upperFirst'](_0x5c6d1a('0x2000'))+_0x29d3d5['id']||'mailCannedAnswer')+_0x5c6d1a('0x24be')+_0x5c6d1a('0xd23'))[_0x5c6d1a('0x217')](_0x5c6d1a('0x1ac5'))['targetEvent'](_0x25ab84)['ok']('OK')[_0x5c6d1a('0x1e1f')](_0x5c6d1a('0x468'));_0x4a6de2[_0x5c6d1a('0x1cb7')](_0x317688)['then'](function(){_0x2c49cc(_0x29d3d5);},function(){const _0x63845d=_0x5c6d1a;console[_0x63845d('0xe37')](_0x63845d('0x468'));});}function _0x2f5252(_0x2429f7){const _0x13a356=_0x4cde4f;_0xd499d3[_0x13a356('0x225a')]=_0x2429f7||{'count':0x0,'rows':[]};}function _0xc82b1f(){const _0x1f8806=_0x4cde4f;_0xd499d3[_0x1f8806('0xc49')][_0x1f8806('0x17f0')]=(_0xd499d3['query']['page']-0x1)*_0xd499d3[_0x1f8806('0xc49')][_0x1f8806('0x3e')],_0xd499d3[_0x1f8806('0x2219')]=_0x3b4a31[_0x1f8806('0x77b')]['getAnswers'](_0xd499d3[_0x1f8806('0xc49')],_0x2f5252)[_0x1f8806('0x1964')];}function _0x37718e(_0x3a0b19,_0x5f166b){const _0x48d225=_0x4cde4f;_0x4a6de2[_0x48d225('0x1cb7')]({'controller':_0x48d225('0x155a'),'controllerAs':'vm','templateUrl':_0x4821ce,'parent':angular[_0x48d225('0xb6d')](_0x43dc06[_0x48d225('0x1a5')]),'targetEvent':_0x3a0b19,'clickOutsideToClose':!![],'locals':{'mailAccount':_0xd499d3['mailAccount'],'mailCannedAnswer':_0x5f166b,'mailCannedAnswers':_0xd499d3[_0x48d225('0x225a')][_0x48d225('0x6aa')],'license':null,'setting':null,'crudPermissions':_0xd499d3[_0x48d225('0x1dc1')]}});}function _0x2c49cc(_0x2a78f9){const _0x16f076=_0x4cde4f;_0x3b4a31[_0x16f076('0x2849')][_0x16f076('0x15e8')]({'id':_0x2a78f9['id']})['$promise'][_0x16f076('0x173b')](function(){const _0x12d673=_0x16f076;_0x3c8d8a()['remove'](_0xd499d3['mailAccountMailCannedAnswers']['rows'],{'id':_0x2a78f9['id']}),_0xd499d3[_0x12d673('0x225a')][_0x12d673('0x1a2f')]-=0x1,!_0xd499d3['mailAccountMailCannedAnswers'][_0x12d673('0x6aa')][_0x12d673('0x543')]&&_0xc82b1f(),_0x24ffc9['success']({'title':_0x12d673('0x60c'),'msg':_0x2a78f9['name']?_0x2a78f9[_0x12d673('0x10ad')]+_0x12d673('0x25d2'):''});})[_0x16f076('0x103c')](function(_0x1bdb68){const _0x1d04ef=_0x16f076;if(_0x1bdb68[_0x1d04ef('0x1e07')]&&_0x1bdb68[_0x1d04ef('0x1e07')][_0x1d04ef('0x1d4a')]&&_0x1bdb68[_0x1d04ef('0x1e07')]['errors'][_0x1d04ef('0x543')]){_0xd499d3[_0x1d04ef('0x1d4a')]=_0x1bdb68[_0x1d04ef('0x1e07')][_0x1d04ef('0x1d4a')]||[{'message':_0x1bdb68[_0x1d04ef('0x1b75')](),'type':'SYSTEM:GETmailAccount'}];for(let _0x417149=0x0;_0x417149<_0x1bdb68[_0x1d04ef('0x1e07')][_0x1d04ef('0x1d4a')][_0x1d04ef('0x543')];_0x417149++){_0x24ffc9[_0x1d04ef('0x15aa')]({'title':_0x1bdb68[_0x1d04ef('0x1e07')][_0x1d04ef('0x1d4a')][_0x417149][_0x1d04ef('0x1810')],'msg':_0x1bdb68[_0x1d04ef('0x1e07')][_0x1d04ef('0x1d4a')][_0x417149][_0x1d04ef('0x67f')]});}}else _0x24ffc9[_0x1d04ef('0x15aa')]({'title':_0x1bdb68[_0x1d04ef('0x276f')]?_0x1d04ef('0x137')+_0x1bdb68[_0x1d04ef('0x276f')]+_0x1d04ef('0x160c')+_0x1bdb68[_0x1d04ef('0x2696')]:'SYSTEM:GETmailAccount','msg':_0x1bdb68[_0x1d04ef('0x1e07')]?JSON['stringify'](_0x1bdb68[_0x1d04ef('0x1e07')][_0x1d04ef('0x67f')]):_0x1bdb68[_0x1d04ef('0x67f')]||_0x1bdb68[_0x1d04ef('0x1b75')]()});});}function _0xee8b6b(){const _0x4e249c=_0x4cde4f,_0x347c3f=angular[_0x4e249c('0x2e3')](_0xd499d3['selectedMailAccountMailCannedAnswers']);return _0xd499d3[_0x4e249c('0x2167')]=[],_0x347c3f;}function _0x330daf(_0x1eb758){const _0x23b30f=_0x4cde4f,_0x29c824=_0x4a6de2[_0x23b30f('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailCannedAnswers?')[_0x23b30f('0xf8b')](''+_0xd499d3['selectedMailAccountMailCannedAnswers'][_0x23b30f('0x543')]+'\x20selected'+_0x23b30f('0xd23'))[_0x23b30f('0x217')](_0x23b30f('0x1c46'))[_0x23b30f('0x21de')](_0x1eb758)['ok']('OK')[_0x23b30f('0x1e1f')]('CANCEL');_0x4a6de2[_0x23b30f('0x1cb7')](_0x29c824)[_0x23b30f('0x173b')](function(){const _0x4d0ed5=_0x23b30f;_0xd499d3[_0x4d0ed5('0x2167')][_0x4d0ed5('0xa6a')](function(_0x55d5fa){_0x2c49cc(_0x55d5fa);}),_0xd499d3[_0x4d0ed5('0x2167')]=[];});}let _0x25b45a=!![],_0x13d5cb=0x1;_0x6fac0d[_0x4cde4f('0x1bdb')](_0x4cde4f('0x5b8'),function(_0x63351b,_0x480042){const _0x317066=_0x4cde4f;_0x25b45a?_0x3df47f(function(){_0x25b45a=![];}):(!_0x480042&&(_0x13d5cb=_0xd499d3[_0x317066('0xc49')][_0x317066('0x182e')]),_0x63351b!==_0x480042&&(_0xd499d3[_0x317066('0xc49')][_0x317066('0x182e')]=0x1),!_0x63351b&&(_0xd499d3[_0x317066('0xc49')][_0x317066('0x182e')]=_0x13d5cb),_0xc82b1f());});}const _0xee8311=_0x3f6bd9;_0x338242[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state','$location',_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0xcca'),_0x566993('0x1270'),_0x566993('0xbd4'),_0x566993('0x1600'),'license',_0x566993('0x251'),'crudPermissions'];function _0x338242(_0x48e26c,_0x391319,_0x21d90c,_0x35cbfd,_0x4485df,_0x4a9e24,_0x3f4833,_0x5c9774,_0x315657,_0x3ee4be,_0x5d193e,_0x35b015,_0x6abbb,_0x451799){const _0x1d2846=_0x566993,_0x40691a=this;_0x40691a[_0x1d2846('0x155f')]=_0x5d193e[_0x1d2846('0x14d4')](),_0x40691a[_0x1d2846('0x1d4a')]=[],_0x40691a[_0x1d2846('0x251')]=_0x6abbb,_0x40691a[_0x1d2846('0x1a29')]=_0x35b015,_0x40691a['crudPermissions']=_0x451799,_0x40691a[_0x1d2846('0xb0')]={},_0x40691a[_0x1d2846('0x644')]=_0x40691a[_0x1d2846('0x251')]&&_0x40691a[_0x1d2846('0x251')][_0x1d2846('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40691a['title']=_0x1d2846('0x1df6'),_0x40691a['mailCannedAnswer']=angular[_0x1d2846('0x2e3')](_0x315657),_0x40691a[_0x1d2846('0xcca')]=_0x5c9774,_0x40691a[_0x1d2846('0x139d')]=![];!_0x40691a[_0x1d2846('0x1270')]&&(_0x40691a[_0x1d2846('0x1270')]={},_0x40691a[_0x1d2846('0x20d6')]='MAIL.NEW_MAILCANNEDANSWER',_0x40691a[_0x1d2846('0x139d')]=!![]);_0x391319[_0x1d2846('0x197a')]['id']&&(_0x40691a['mailCannedAnswer'][_0x1d2846('0x559')]=_0x391319[_0x1d2846('0x197a')]['id']);_0x40691a[_0x1d2846('0x2722')]=_0x3f75ed,_0x40691a[_0x1d2846('0x2700')]=_0x21289a,_0x40691a[_0x1d2846('0x1088')]=_0x40350c,_0x40691a[_0x1d2846('0x11ae')]=_0x409a76,_0x40691a[_0x1d2846('0x18e2')]=_0x42cd75;function _0x3f75ed(){const _0x4f2e3e=_0x1d2846;_0x40691a[_0x4f2e3e('0x1d4a')]=[],_0x3ee4be[_0x4f2e3e('0x2849')][_0x4f2e3e('0x1195')](_0x40691a[_0x4f2e3e('0x1270')])[_0x4f2e3e('0x1964')][_0x4f2e3e('0x173b')](function(_0xcd36a3){const _0x1e81c9=_0x4f2e3e;_0x40691a['mailCannedAnswers']['unshift'](_0xcd36a3[_0x1e81c9('0xf1f')]()),_0x3f4833[_0x1e81c9('0xdfe')]({'title':_0x1e81c9('0x1dda'),'msg':_0x40691a['mailCannedAnswer'][_0x1e81c9('0x10ad')]?_0x40691a[_0x1e81c9('0x1270')][_0x1e81c9('0x10ad')]+_0x1e81c9('0x209a'):''}),_0x42cd75(_0xcd36a3);})['catch'](function(_0x5d6bd4){const _0x464160=_0x4f2e3e;if(_0x5d6bd4[_0x464160('0x1e07')]&&_0x5d6bd4[_0x464160('0x1e07')][_0x464160('0x1d4a')]&&_0x5d6bd4[_0x464160('0x1e07')]['errors'][_0x464160('0x543')]){_0x40691a['errors']=_0x5d6bd4[_0x464160('0x1e07')][_0x464160('0x1d4a')]||[{'message':_0x5d6bd4[_0x464160('0x1b75')](),'type':'api.cannedAnswer.save'}];for(let _0x30e60d=0x0;_0x30e60d<_0x5d6bd4[_0x464160('0x1e07')][_0x464160('0x1d4a')][_0x464160('0x543')];_0x30e60d+=0x1){_0x3f4833[_0x464160('0x15aa')]({'title':_0x5d6bd4[_0x464160('0x1e07')][_0x464160('0x1d4a')][_0x30e60d][_0x464160('0x1810')],'msg':_0x5d6bd4['data'][_0x464160('0x1d4a')][_0x30e60d][_0x464160('0x67f')]});}}else _0x3f4833['error']({'title':_0x5d6bd4[_0x464160('0x276f')]?_0x464160('0x137')+_0x5d6bd4[_0x464160('0x276f')]+'\x20-\x20'+_0x5d6bd4[_0x464160('0x2696')]:_0x464160('0x1da7'),'msg':_0x5d6bd4[_0x464160('0x1e07')]?JSON[_0x464160('0x100b')](_0x5d6bd4[_0x464160('0x1e07')]['message']):_0x5d6bd4[_0x464160('0x1b75')]()});});}function _0x21289a(){const _0x2373f9=_0x1d2846;_0x40691a['errors']=[],_0x3ee4be['cannedAnswer'][_0x2373f9('0x1842')]({'id':_0x40691a[_0x2373f9('0x1270')]['id']},_0x40691a[_0x2373f9('0x1270')])[_0x2373f9('0x1964')][_0x2373f9('0x173b')](function(_0x4f3b57){const _0x4c72ec=_0x2373f9,_0x5771f5=_0x3c8d8a()[_0x4c72ec('0x18ab')](_0x40691a['mailCannedAnswers'],{'id':_0x4f3b57['id']});_0x5771f5&&_0x3c8d8a()['merge'](_0x5771f5,_0x3c8d8a()[_0x4c72ec('0x2114')](_0x4f3b57[_0x4c72ec('0xf1f')](),_0x3c8d8a()[_0x4c72ec('0x1d3e')](_0x5771f5))),_0x3f4833[_0x4c72ec('0xdfe')]({'title':_0x4c72ec('0x58f'),'msg':_0x40691a[_0x4c72ec('0x1270')][_0x4c72ec('0x10ad')]?_0x40691a[_0x4c72ec('0x1270')][_0x4c72ec('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x42cd75(_0x4f3b57);})[_0x2373f9('0x103c')](function(_0x2fe3a2){const _0x4c12ab=_0x2373f9;if(_0x2fe3a2[_0x4c12ab('0x1e07')]&&_0x2fe3a2[_0x4c12ab('0x1e07')][_0x4c12ab('0x1d4a')]&&_0x2fe3a2['data']['errors']['length']){_0x40691a[_0x4c12ab('0x1d4a')]=_0x2fe3a2[_0x4c12ab('0x1e07')][_0x4c12ab('0x1d4a')]||[{'message':_0x2fe3a2[_0x4c12ab('0x1b75')](),'type':_0x4c12ab('0x2786')}];for(let _0x72916e=0x0;_0x72916e<_0x2fe3a2[_0x4c12ab('0x1e07')][_0x4c12ab('0x1d4a')][_0x4c12ab('0x543')];_0x72916e++){_0x3f4833[_0x4c12ab('0x15aa')]({'title':_0x2fe3a2[_0x4c12ab('0x1e07')]['errors'][_0x72916e][_0x4c12ab('0x1810')],'msg':_0x2fe3a2[_0x4c12ab('0x1e07')][_0x4c12ab('0x1d4a')][_0x72916e][_0x4c12ab('0x67f')]});}}else _0x3f4833[_0x4c12ab('0x15aa')]({'title':_0x2fe3a2[_0x4c12ab('0x276f')]?_0x4c12ab('0x137')+_0x2fe3a2['status']+_0x4c12ab('0x160c')+_0x2fe3a2[_0x4c12ab('0x2696')]:_0x4c12ab('0x2786'),'msg':_0x2fe3a2[_0x4c12ab('0x1e07')]?JSON['stringify'](_0x2fe3a2[_0x4c12ab('0x1e07')][_0x4c12ab('0x67f')]):_0x2fe3a2[_0x4c12ab('0x1b75')]()});});}function _0x40350c(_0xfe2181){const _0x420632=_0x1d2846;_0x40691a['errors']=[];const _0x4880fc=_0x35cbfd['confirm']()[_0x420632('0x20d6')](_0x420632('0x8ef'))['content'](_0x420632('0x13ff'))[_0x420632('0x217')]('Delete\x20MailCannedAnswer')['ok']('Delete')['cancel']('Cancel')[_0x420632('0x21de')](_0xfe2181);_0x35cbfd[_0x420632('0x1cb7')](_0x4880fc)[_0x420632('0x173b')](function(){const _0x4633f8=_0x420632;_0x3ee4be[_0x4633f8('0x2849')]['delete']({'id':_0x40691a[_0x4633f8('0x1270')]['id']})[_0x4633f8('0x1964')]['then'](function(){const _0x23e331=_0x4633f8;_0x3c8d8a()['remove'](_0x40691a[_0x23e331('0xcca')],{'id':_0x40691a[_0x23e331('0x1270')]['id']}),_0x3f4833[_0x23e331('0xdfe')]({'title':_0x23e331('0xe76'),'msg':(_0x40691a[_0x23e331('0x1270')][_0x23e331('0x10ad')]||_0x23e331('0x1270'))+_0x23e331('0x25d2')}),_0x42cd75(_0x40691a[_0x23e331('0x1270')]);})['catch'](function(_0x2daf17){const _0x4e4718=_0x4633f8;if(_0x2daf17[_0x4e4718('0x1e07')]&&_0x2daf17[_0x4e4718('0x1e07')][_0x4e4718('0x1d4a')]&&_0x2daf17['data'][_0x4e4718('0x1d4a')][_0x4e4718('0x543')]){_0x40691a['errors']=_0x2daf17['data'][_0x4e4718('0x1d4a')]||[{'message':_0x2daf17[_0x4e4718('0x1b75')](),'type':'api.cannedAnswer.delete'}];for(let _0x403fe=0x0;_0x403fe<_0x2daf17[_0x4e4718('0x1e07')][_0x4e4718('0x1d4a')][_0x4e4718('0x543')];_0x403fe++){_0x3f4833[_0x4e4718('0x15aa')]({'title':_0x2daf17['data'][_0x4e4718('0x1d4a')][_0x403fe][_0x4e4718('0x1810')],'msg':_0x2daf17[_0x4e4718('0x1e07')][_0x4e4718('0x1d4a')][_0x403fe][_0x4e4718('0x67f')]});}}else _0x3f4833[_0x4e4718('0x15aa')]({'title':_0x2daf17['status']?'API:'+_0x2daf17[_0x4e4718('0x276f')]+_0x4e4718('0x160c')+_0x2daf17[_0x4e4718('0x2696')]:'api.cannedAnswer.delete','msg':_0x2daf17['data']?JSON[_0x4e4718('0x100b')](_0x2daf17[_0x4e4718('0x1e07')][_0x4e4718('0x67f')]):_0x2daf17[_0x4e4718('0x67f')]||_0x2daf17['toString']()});});},function(){});}function _0x409a76(_0x3abcfe){return _0x3abcfe===null?undefined:new Date(_0x3abcfe);}function _0x42cd75(_0x73a69b){const _0x169a79=_0x1d2846;_0x35cbfd[_0x169a79('0x1cf4')](_0x73a69b);}}const _0x1b7986=_0x338242;_0xc9512f['$inject']=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0xbd4'),_0x566993('0x1558'),'Auth'];function _0xc9512f(_0x2b0637,_0xbda60d,_0xde2535,_0xa9b30e,_0x4b28a9,_0x2311f1,_0x3e2e23,_0x1c4054,_0x25736a,_0x2cb165,_0x1c9f2c){const _0x3124bd=_0x566993,_0x550656=this;_0x550656[_0x3124bd('0x155f')]=_0x1c9f2c['getCurrentUser'](),_0x550656[_0x3124bd('0x9c6')]={'count':0x0,'rows':[]},_0x550656['selectedDispositions']=[],_0x550656['crudPermissions'],_0x550656[_0x3124bd('0x1d14')]={'first':_0x3124bd('0x1d1b'),'second':_0x3124bd('0x1136'),'third':_0x3124bd('0x1486')},_0x550656[_0x3124bd('0xc49')]={'fields':_0x3124bd('0xf3'),'sort':_0x3124bd('0x1769'),'limit':0xa,'page':0x1},_0x550656[_0x3124bd('0xb9c')]=_0x42ece5,_0x550656[_0x3124bd('0x2051')]=_0xdf407e,_0x550656[_0x3124bd('0xdfe')]=_0x595115,_0x550656[_0x3124bd('0x251d')]=_0x2bbfa2,_0x550656[_0x3124bd('0xfb1')]=_0x76aacb,_0x550656[_0x3124bd('0x1d5a')]=_0x3c0924,_0x550656[_0x3124bd('0x1a6b')]=_0x31fb61,_0x550656[_0x3124bd('0x269b')]=_0x1bcf8b,_0x550656[_0x3124bd('0x2307')]=_0x3f374b,_0x550656['selectAllDispositions']=_0x34b314;function _0x42ece5(_0x1c398f,_0x4d440d){const _0x4ddda6=_0x3124bd;_0x550656['mailAccount']=_0x1c398f||{},_0x550656['crudPermissions']=typeof _0x4d440d!==_0x4ddda6('0x6e5')?_0x4d440d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x550656[_0x4ddda6('0xc49')][_0x4ddda6('0x559')]=_0x550656[_0x4ddda6('0x77b')]['id'],_0x550656['query']['id']=_0x550656[_0x4ddda6('0x77b')]['id'],_0x2bbfa2();}function _0x76aacb(_0x19b083,_0xe8869a){const _0x317417=_0x3124bd;_0x4b28a9[_0x317417('0x1cb7')]({'controller':_0x317417('0x19ff'),'controllerAs':'vm','templateUrl':_0x1db9b3,'parent':angular[_0x317417('0xb6d')](_0x2311f1[_0x317417('0x1a5')]),'targetEvent':_0x19b083,'clickOutsideToClose':!![],'locals':{'disposition':_0xe8869a,'dispositions':_0x550656[_0x317417('0x9c6')]['rows'],'model':{'id':_0x550656[_0x317417('0x77b')]['id'],'field':_0x317417('0x559')},'license':null,'setting':null,'crudPermissions':_0x550656[_0x317417('0x1dc1')]}})['then'](function(_0x34e667){if(_0x34e667)_0x2bbfa2();});}function _0xdf407e(_0x185aeb,_0x13034d){const _0x1e26b7=_0x3124bd,_0x134c7a=_0x3c8d8a()[_0x1e26b7('0x1ec')](_0x550656[_0x1e26b7('0x9c6')]['rows'],[_0x1e26b7('0x2644'),_0x185aeb['id']]),_0xbccf09=_0x4b28a9[_0x1e26b7('0x1d02')]()[_0x1e26b7('0x20d6')](_0x1c4054['instant'](_0x1e26b7('0xf13')))['content'](_0x1c4054[_0x1e26b7('0x1467')](_0x1e26b7('0x15d6')+(_0x134c7a?_0x1e26b7('0x6f'):_0x1e26b7('0xee2')),{'name':_0x185aeb[_0x1e26b7('0x10ad')]}))[_0x1e26b7('0x217')](_0x1e26b7('0x843'))[_0x1e26b7('0x21de')](_0x13034d)['ok']('OK')[_0x1e26b7('0x1e1f')](_0x1c4054[_0x1e26b7('0x1467')](_0x1e26b7('0x2224')));_0x4b28a9[_0x1e26b7('0x1cb7')](_0xbccf09)[_0x1e26b7('0x173b')](function(){_0x3c0924(_0x185aeb);});}function _0x595115(_0x2ec0b1){const _0x4723f1=_0x3124bd;_0x550656[_0x4723f1('0x9c6')]=_0x2ec0b1||{'count':0x0,'rows':[]};}function _0x2bbfa2(){const _0x5d9f5a=_0x3124bd;_0x550656[_0x5d9f5a('0xc49')][_0x5d9f5a('0x17f0')]=(_0x550656[_0x5d9f5a('0xc49')]['page']-0x1)*_0x550656[_0x5d9f5a('0xc49')][_0x5d9f5a('0x3e')],_0x550656[_0x5d9f5a('0x2219')]=_0x25736a[_0x5d9f5a('0x77b')][_0x5d9f5a('0x251d')](_0x550656['query'],_0x595115)['$promise'];}function _0x3c0924(_0x52be3c){const _0x2c0637=_0x3124bd;_0x25736a[_0x2c0637('0x2766')]['delete']({'id':_0x52be3c['id']})[_0x2c0637('0x1964')][_0x2c0637('0x173b')](function(){const _0x386f72=_0x2c0637;_0x2bbfa2(),_0x2cb165[_0x386f72('0xdfe')]({'title':_0x1c4054[_0x386f72('0x1467')](_0x386f72('0x34b'))});})[_0x2c0637('0x103c')](function(_0x3155e4){const _0x2ba262=_0x2c0637;if(_0x3155e4[_0x2ba262('0x1e07')]&&_0x3155e4['data'][_0x2ba262('0x1d4a')]&&_0x3155e4[_0x2ba262('0x1e07')][_0x2ba262('0x1d4a')]['length']){_0x550656['errors']=_0x3155e4[_0x2ba262('0x1e07')][_0x2ba262('0x1d4a')]||[{'message':_0x3155e4[_0x2ba262('0x1b75')](),'type':_0x2ba262('0x6af')}];for(let _0x1ae1d4=0x0;_0x1ae1d4<_0x3155e4[_0x2ba262('0x1e07')]['errors'][_0x2ba262('0x543')];_0x1ae1d4++){_0x2cb165[_0x2ba262('0x15aa')]({'title':_0x3155e4[_0x2ba262('0x1e07')][_0x2ba262('0x1d4a')][_0x1ae1d4][_0x2ba262('0x1810')],'msg':_0x3155e4[_0x2ba262('0x1e07')]['errors'][_0x1ae1d4][_0x2ba262('0x67f')]});}}else _0x2cb165[_0x2ba262('0x15aa')]({'title':_0x3155e4[_0x2ba262('0x276f')]?'API:'+_0x3155e4['status']+'\x20-\x20'+_0x3155e4[_0x2ba262('0x2696')]:_0x2ba262('0x6af'),'msg':_0x3155e4[_0x2ba262('0x1e07')]?JSON[_0x2ba262('0x100b')](_0x3155e4[_0x2ba262('0x1e07')][_0x2ba262('0x67f')]):_0x3155e4[_0x2ba262('0x67f')]||_0x3155e4[_0x2ba262('0x1b75')]()});});}function _0x31fb61(){const _0x34a3fa=_0x3124bd,_0x12c9a3=angular[_0x34a3fa('0x2e3')](_0x550656[_0x34a3fa('0x451')]);return _0x550656[_0x34a3fa('0x451')]=[],_0x12c9a3;}function _0x1bcf8b(_0x6bf1fb){const _0x3d13d4=_0x3124bd,_0x50121e=_0x4b28a9[_0x3d13d4('0x1d02')]()['title'](_0x1c4054[_0x3d13d4('0x1467')](_0x3d13d4('0xa25')))[_0x3d13d4('0x732')](_0x1c4054[_0x3d13d4('0x1467')](_0x3d13d4('0x25a'),{'total':_0x550656[_0x3d13d4('0x451')][_0x3d13d4('0x543')]}))[_0x3d13d4('0x217')](_0x3d13d4('0x6b8'))['targetEvent'](_0x6bf1fb)['ok']('OK')[_0x3d13d4('0x1e1f')](_0x1c4054[_0x3d13d4('0x1467')]('TOOLS.CANCEL'));_0x4b28a9[_0x3d13d4('0x1cb7')](_0x50121e)[_0x3d13d4('0x173b')](function(){const _0x4f33c1=_0x3d13d4;_0x550656[_0x4f33c1('0x451')]['forEach'](function(_0xe9b646){_0x3c0924(_0xe9b646);}),_0x550656[_0x4f33c1('0x451')]=[];});}function _0x3f374b(){const _0x57f5d2=_0x3124bd;_0x550656[_0x57f5d2('0x451')]=[];}function _0x34b314(){const _0x7f6cc5=_0x3124bd;_0x550656[_0x7f6cc5('0x451')]=_0x550656[_0x7f6cc5('0x9c6')]['rows'];}let _0x2f0a8f=!![],_0x43a4ee=0x1;_0x2b0637[_0x3124bd('0x1bdb')](_0x3124bd('0x5b8'),function(_0x1fed3e,_0x41c32b){const _0x24bc20=_0x3124bd;_0x2f0a8f?_0x3e2e23(function(){_0x2f0a8f=![];}):(!_0x41c32b&&(_0x43a4ee=_0x550656[_0x24bc20('0xc49')][_0x24bc20('0x182e')]),_0x1fed3e!==_0x41c32b&&(_0x550656[_0x24bc20('0xc49')]['page']=0x1),!_0x1fed3e&&(_0x550656[_0x24bc20('0xc49')][_0x24bc20('0x182e')]=_0x43a4ee),_0x2bbfa2());});}const _0x3f2a68=_0xc9512f,_0xacc445=_0x21a6a1['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd.html';_0x29e103[_0x566993('0x17bb')]=[_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$document','$translate',_0x566993('0x1a29'),'setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x77b'),_0x566993('0x170e')];function _0x29e103(_0xb765a7,_0x3f7279,_0x2fa9f2,_0x5ccd25,_0x5e5195,_0x64e1a8,_0x2c0c8a,_0x94f1dd,_0x59b3a7,_0x17d0df,_0x52c67f,_0x50405c){const _0x1428af=_0x566993,_0x4f2e15=this;_0x4f2e15['currentUser']=_0x17d0df[_0x1428af('0x14d4')](),_0x4f2e15[_0x1428af('0x1a29')]=_0x64e1a8,_0x4f2e15[_0x1428af('0x251')]=_0x2c0c8a,_0x4f2e15[_0x1428af('0x644')]=_0x4f2e15[_0x1428af('0x251')][_0x1428af('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4f2e15[_0x1428af('0x614')]=_0x3f7279[_0x1428af('0x375')]()+_0x1428af('0x122b')+_0x3f7279['host'](),_0x4f2e15['mailAccount']=_0x52c67f||_0xb765a7[_0x1428af('0x197a')]['mailAccount']||{},_0x4f2e15[_0x1428af('0x170e')]=_0x50405c&&_0x50405c['count']==0x1?_0x50405c[_0x1428af('0x6aa')][0x0]:null,_0x4f2e15['crudPermissions']=_0x17d0df['parseCrudPermissions'](_0x4f2e15['userProfileSection']?_0x4f2e15['userProfileSection']['crudPermissions']:null),_0x4f2e15[_0x1428af('0xb0')]={},_0x4f2e15[_0x1428af('0xd5f')]=_0xb765a7[_0x1428af('0x197a')]['tab']||0x0,_0x4f2e15[_0x1428af('0xa47')]=_0x245dec,_0x4f2e15[_0x1428af('0x2118')]=_0x35aa3a,_0x4f2e15[_0x1428af('0x5a4')]=_0x59b3a7['info'],_0x4f2e15[_0x1428af('0xf63')]=_0xa18d4,_0x4f2e15[_0x1428af('0x1ec3')]=_0x17b545,_0x17d0df['hasRole'](_0x1428af('0x79b'))?_0x94f1dd['cmList'][_0x1428af('0x1d97')]({'fields':_0x1428af('0xd52'),'sort':_0x1428af('0x10ad')})[_0x1428af('0x1964')][_0x1428af('0x173b')](function(_0xe25f3d){const _0x4b4a7d=_0x1428af;_0x4f2e15['lists']=_0xe25f3d[_0x4b4a7d('0x6aa')]||[];})[_0x1428af('0x103c')](function(_0x4690b4){const _0x4cfbff=_0x1428af;_0x59b3a7['error']({'title':_0x4690b4[_0x4cfbff('0x276f')]?_0x4cfbff('0x137')+_0x4690b4['status']+_0x4cfbff('0x160c')+_0x4690b4[_0x4cfbff('0x2696')]:_0x4cfbff('0x1d5c'),'msg':_0x4690b4[_0x4cfbff('0x1e07')]?JSON['stringify'](_0x4690b4[_0x4cfbff('0x1e07')]):_0x4690b4['toString']()});}):_0x94f1dd[_0x1428af('0xbb3')][_0x1428af('0x1d97')]({'fields':'id,name','sort':_0x1428af('0x10ad')})[_0x1428af('0x1964')][_0x1428af('0x173b')](function(_0x170cfc){const _0x2acfd7=_0x1428af;_0x4f2e15[_0x2acfd7('0x9e8')]=_0x170cfc['rows']||[];})[_0x1428af('0x173b')](function(){const _0x5b4e4e=_0x1428af;return _0x94f1dd[_0x5b4e4e('0x170e')]['get']({'userProfileId':_0x4f2e15['currentUser'][_0x5b4e4e('0x1946')],'sectionId':0x12d})[_0x5b4e4e('0x1964')];})[_0x1428af('0x173b')](function(_0x222a15){const _0x116117=_0x1428af,_0x193ad7=_0x222a15&&_0x222a15[_0x116117('0x6aa')]?_0x222a15[_0x116117('0x6aa')][0x0]:null;if(!_0x193ad7){const _0x17700a=[];let _0x1ff3fd=null;_0x4f2e15[_0x116117('0x77b')]&&(_0x1ff3fd=_0x3c8d8a()[_0x116117('0x18ab')](_0x4f2e15[_0x116117('0x9e8')],{'id':Number(_0x4f2e15['mailAccount'][_0x116117('0xef2')])}));for(let _0x219f52=0x0;_0x219f52<_0x4f2e15[_0x116117('0x9e8')]['length'];_0x219f52++){_0x1ff3fd&&_0x4f2e15[_0x116117('0x9e8')][_0x219f52]['id']===_0x1ff3fd['id']&&(_0x4f2e15['lists'][_0x219f52][_0x116117('0x268e')]=![],_0x17700a[_0x116117('0x18bb')](_0x4f2e15[_0x116117('0x9e8')][_0x219f52]));}_0x4f2e15['lists']=_0x17700a;}else{if(!_0x193ad7['autoAssociation'])return _0x94f1dd[_0x116117('0xda9')]['get']({'sectionId':_0x193ad7['id']})[_0x116117('0x1964')][_0x116117('0x173b')](function(_0xd0c2e5){const _0x36d033=_0x116117,_0x1bbc79=_0x3c8d8a()[_0x36d033('0x8a2')](_0xd0c2e5[_0x36d033('0x6aa')],function(_0xc8bd45){const _0x38b492=_0x36d033;return _0x3c8d8a()[_0x38b492('0x18ab')](_0x4f2e15[_0x38b492('0x9e8')],{'id':_0xc8bd45[_0x38b492('0x1ce0')]});});let _0x577873=null;_0x4f2e15[_0x36d033('0x77b')]&&(_0x577873=_0x3c8d8a()[_0x36d033('0x18ab')](_0x4f2e15[_0x36d033('0x9e8')],{'id':Number(_0x4f2e15['mailAccount'][_0x36d033('0xef2')])}));if(_0x577873&&!_0x3c8d8a()[_0x36d033('0x1ec')](_0x1bbc79,['id',_0x577873['id']])){const _0x552cbb=_0x3c8d8a()[_0x36d033('0x18ab')](_0x4f2e15['lists'],{'id':_0x577873['id']});_0x552cbb['canSelect']=![],_0x1bbc79['push'](_0x552cbb);}_0x4f2e15[_0x36d033('0x9e8')]=_0x1bbc79;});}})[_0x1428af('0x103c')](function(_0x4a80b2){const _0x224068=_0x1428af;_0x59b3a7[_0x224068('0x15aa')]({'title':_0x4a80b2[_0x224068('0x276f')]?_0x224068('0x137')+_0x4a80b2[_0x224068('0x276f')]+_0x224068('0x160c')+_0x4a80b2['statusText']:_0x224068('0x1292'),'msg':_0x4a80b2[_0x224068('0x1e07')]?JSON[_0x224068('0x100b')](_0x4a80b2[_0x224068('0x1e07')]):_0x4a80b2['toString']()});}),_0x17d0df[_0x1428af('0x1b4e')](_0x1428af('0x79b'))?_0x94f1dd[_0x1428af('0x1751')][_0x1428af('0x1d97')]({'fields':_0x1428af('0x901'),'sort':_0x1428af('0x10ad'),'nolimit':_0x1428af('0x799')})[_0x1428af('0x1964')][_0x1428af('0x173b')](function(_0x55f1c5){const _0x34e37c=_0x1428af;_0x4f2e15[_0x34e37c('0x1d66')]=_0x55f1c5[_0x34e37c('0x6aa')]||[];})[_0x1428af('0x103c')](function(_0x2b30b0){const _0x4ac80c=_0x1428af;_0x59b3a7[_0x4ac80c('0x15aa')]({'title':_0x2b30b0[_0x4ac80c('0x276f')]?_0x4ac80c('0x137')+_0x2b30b0[_0x4ac80c('0x276f')]+'\x20-\x20'+_0x2b30b0[_0x4ac80c('0x2696')]:_0x4ac80c('0xe0f'),'msg':_0x2b30b0[_0x4ac80c('0x1e07')]?JSON[_0x4ac80c('0x100b')](_0x2b30b0[_0x4ac80c('0x1e07')]):_0x2b30b0[_0x4ac80c('0x1b75')]()});}):_0x94f1dd[_0x1428af('0x1751')][_0x1428af('0x1d97')]({'fields':'name,id','sort':'name','nolimit':_0x1428af('0x799')})[_0x1428af('0x1964')][_0x1428af('0x173b')](function(_0x10e018){const _0x5b264b=_0x1428af;_0x4f2e15[_0x5b264b('0x1d66')]=_0x10e018[_0x5b264b('0x6aa')]||[];})[_0x1428af('0x173b')](function(){const _0x24947f=_0x1428af;return _0x94f1dd[_0x24947f('0x170e')]['get']({'userProfileId':_0x4f2e15[_0x24947f('0x155f')][_0x24947f('0x1946')],'sectionId':0x3ed})[_0x24947f('0x1964')];})[_0x1428af('0x173b')](function(_0x2e6794){const _0x25658c=_0x1428af,_0x2f32df=_0x2e6794&&_0x2e6794[_0x25658c('0x6aa')]?_0x2e6794[_0x25658c('0x6aa')][0x0]:null;if(!_0x2f32df)_0x4f2e15['pauses']=[];else{if(!_0x2f32df[_0x25658c('0x273e')])return _0x94f1dd[_0x25658c('0xda9')][_0x25658c('0x1d97')]({'sectionId':_0x2f32df['id']})['$promise'][_0x25658c('0x173b')](function(_0x1ef127){const _0x41b052=_0x25658c,_0x11c0b3=_0x3c8d8a()[_0x41b052('0x8a2')](_0x1ef127['rows'],function(_0x53e817){const _0x1bce08=_0x41b052;return _0x3c8d8a()[_0x1bce08('0x18ab')](_0x4f2e15[_0x1bce08('0x1d66')],{'id':_0x53e817[_0x1bce08('0x1ce0')]});});_0x4f2e15[_0x41b052('0x1d66')][_0x41b052('0xa6a')](function(_0x140785){const _0x1ba6c7=_0x41b052;!_0x3c8d8a()[_0x1ba6c7('0x1ec')](_0x11c0b3,['id',_0x140785['id']])&&(_0x140785[_0x1ba6c7('0x268e')]=![]),_0x11c0b3[_0x1ba6c7('0x18bb')](_0x140785);}),_0x4f2e15['pauses']=_0x11c0b3;});}})[_0x1428af('0x103c')](function(_0x3dc862){const _0x3f5101=_0x1428af;_0x59b3a7[_0x3f5101('0x15aa')]({'title':_0x3dc862[_0x3f5101('0x276f')]?'API:'+_0x3dc862[_0x3f5101('0x276f')]+_0x3f5101('0x160c')+_0x3dc862['statusText']:_0x3f5101('0x2595'),'msg':_0x3dc862[_0x3f5101('0x1e07')]?JSON[_0x3f5101('0x100b')](_0x3dc862['data']):_0x3dc862['toString']()});});function _0x245dec(){const _0x59e3bb=_0x1428af;if(_0x17d0df[_0x59e3bb('0x1b4e')](_0x59e3bb('0x79b')))_0xb765a7['go'](_0x59e3bb('0x16e6'),{});else return _0x94f1dd[_0x59e3bb('0x170e')][_0x59e3bb('0x1d97')]({'userProfileId':_0x17d0df[_0x59e3bb('0x14d4')]()[_0x59e3bb('0x1946')],'sectionId':0x262})[_0x59e3bb('0x1964')][_0x59e3bb('0x173b')](function(_0x49d095){const _0x2568a6=_0x59e3bb,_0x19bc96=_0x49d095&&_0x49d095['rows']?_0x49d095[_0x2568a6('0x6aa')][0x0]:null;_0x19bc96&&_0x19bc96[_0x2568a6('0x830')]?_0xb765a7['go'](_0x2568a6('0x16e6'),{}):_0x59b3a7[_0x2568a6('0x2787')]({'title':_0x5e5195[_0x2568a6('0x1467')](_0x2568a6('0x4aa')),'msg':_0x5e5195['instant'](_0x2568a6('0x7d4'))});})[_0x59e3bb('0x103c')](function(_0xee629d){const _0x56936b=_0x59e3bb;_0x59b3a7[_0x56936b('0x15aa')]({'title':_0xee629d['status']?_0x56936b('0x137')+_0xee629d[_0x56936b('0x276f')]+'\x20-\x20'+_0xee629d['statusText']:_0x56936b('0x144d'),'msg':_0xee629d[_0x56936b('0x276f')]?JSON[_0x56936b('0x100b')](_0xee629d['data']):_0xee629d['toString']()});});}function _0x35aa3a(_0x450c4f,_0xce1df1){const _0x53a332=_0x1428af;_0x2fa9f2['show']({'controller':_0x53a332('0xc6d'),'controllerAs':'vm','templateUrl':_0xacc445,'parent':angular[_0x53a332('0xb6d')](_0x5ccd25[_0x53a332('0x1a5')]),'targetEvent':_0xce1df1,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x450c4f,'mailAccounts':_0x4f2e15['mailAccounts']?_0x4f2e15[_0x53a332('0x2632')][_0x53a332('0x6aa')]:[],'crudPermissions':_0x4f2e15[_0x53a332('0x1dc1')],'realtime':![]}});}function _0xa18d4(){const _0x49b89c=_0x1428af;_0xb765a7['go'](_0x49b89c('0x1cee'),{},{'reload':_0x49b89c('0x1cee')});}function _0x17b545(){const _0x20e0b1=_0x1428af;_0x94f1dd['mailAccount'][_0x20e0b1('0x1842')]({'id':_0x4f2e15[_0x20e0b1('0x77b')]['id']},_0x4f2e15[_0x20e0b1('0x77b')])['$promise'][_0x20e0b1('0x173b')](function(){const _0x9e8f20=_0x20e0b1;_0x59b3a7[_0x9e8f20('0xdfe')]({'title':_0x9e8f20('0xab'),'msg':_0x4f2e15[_0x9e8f20('0x77b')][_0x9e8f20('0x10ad')]?_0x4f2e15['mailAccount'][_0x9e8f20('0x10ad')]+'\x20has\x20been\x20updated!':''});})[_0x20e0b1('0x103c')](function(_0x452cff){const _0x466846=_0x20e0b1;_0x59b3a7[_0x466846('0x15aa')]({'title':_0x452cff[_0x466846('0x276f')]?_0x466846('0x137')+_0x452cff[_0x466846('0x276f')]+_0x466846('0x160c')+_0x452cff['statusText']:_0x466846('0x22e2'),'msg':_0x452cff[_0x466846('0x1e07')]?JSON[_0x466846('0x100b')](_0x452cff['data']):_0x452cff[_0x466846('0x1b75')]()});});}}const _0x3babfb=_0x29e103,_0x271acc=_0x21a6a1['p']+_0x566993('0x2131');_0x4f1728[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state','$mdSidenav','$mdDialog',_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x2632'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),'Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0x4f1728(_0x25e505,_0x50971f,_0xc8f273,_0x247a50,_0x49980e,_0xaa7818,_0xb2a21f,_0x39e96f,_0x36ee95,_0x2b81c3,_0x2904b9,_0x19253d,_0x270c77,_0x5b8ed6,_0x2c013b,_0x13f050,_0x278a0f){const _0x3a0491=_0x566993,_0x5e22a5=this;_0x5e22a5[_0x3a0491('0x1a29')]=_0x13f050,_0x5e22a5[_0x3a0491('0x251')]=_0x278a0f,_0x5e22a5[_0x3a0491('0x155f')]=_0x2c013b[_0x3a0491('0x14d4')](),_0x5e22a5[_0x3a0491('0x2632')]=_0x36ee95||{'count':0x0,'rows':[]},_0x5e22a5[_0x3a0491('0x257b')]=_0x2b81c3,_0x5e22a5[_0x3a0491('0x170e')]=_0x2904b9&&_0x2904b9['count']==0x1?_0x2904b9[_0x3a0491('0x6aa')][0x0]:null,_0x5e22a5[_0x3a0491('0x1dc1')]=_0x2c013b[_0x3a0491('0xde6')](_0x5e22a5[_0x3a0491('0x170e')]?_0x5e22a5[_0x3a0491('0x170e')][_0x3a0491('0x1dc1')]:null),_0x5e22a5[_0x3a0491('0xdf9')]=_0x3a0491('0x2632'),_0x5e22a5['listOrder']='',_0x5e22a5['listOrderAsc']=null,_0x5e22a5['selectedMailAccounts']=[],_0x5e22a5['query']={'fields':_0x3a0491('0x129'),'sort':_0x3a0491('0x1769'),'limit':0xa,'page':0x1},_0x5e22a5[_0x3a0491('0x172f')]=_0x3c8d8a()[_0x3a0491('0x128')]([{'option':_0x3a0491('0x1cf8'),'value':_0x3a0491('0x877')},{'option':_0x3a0491('0x24c4'),'value':_0x3a0491('0x2222')},{'option':_0x3a0491('0x123c'),'value':'\x27hotmail\x27'},{'option':_0x3a0491('0x3ee'),'value':_0x3a0491('0x14cc')},{'option':_0x3a0491('0x22fa'),'value':_0x3a0491('0x2310')}],function(_0x2c7780){const _0x1c8a25=_0x3a0491;return _0x3c8d8a()[_0x1c8a25('0x166c')](_0x2c7780[_0x1c8a25('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e22a5[_0x3a0491('0x1233')]=_0x3c8d8a()[_0x3a0491('0x128')]([{'option':_0x3a0491('0x1cf8'),'value':_0x3a0491('0x877')},{'option':_0x3a0491('0x24c4'),'value':_0x3a0491('0x2222')},{'option':_0x3a0491('0x123c'),'value':_0x3a0491('0x1273')},{'option':_0x3a0491('0x3ee'),'value':_0x3a0491('0x14cc')},{'option':'Outlook365','value':_0x3a0491('0x2310')}],function(_0x1c035f){const _0x2f065b=_0x3a0491;return _0x3c8d8a()['replace'](_0x1c035f[_0x2f065b('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e22a5[_0x3a0491('0x259d')]=_0x3c8d8a()[_0x3a0491('0x128')]([{'option':_0x3a0491('0x1cf8'),'value':_0x3a0491('0x877')},{'option':_0x3a0491('0x24c4'),'value':'\x27gmail\x27'},{'option':_0x3a0491('0x123c'),'value':_0x3a0491('0x1273')},{'option':_0x3a0491('0x3ee'),'value':'\x27yahoo\x27'},{'option':'Outlook365','value':_0x3a0491('0x2310')}],function(_0x1c6c29){return _0x3c8d8a()['replace'](_0x1c6c29['value'],new RegExp('\x27','g'),'');}),_0x5e22a5[_0x3a0491('0x222e')]=_0xf9687c,_0x5e22a5[_0x3a0491('0x2006')]=_0x595b43,_0x5e22a5[_0x3a0491('0x426')]=_0x1b82a0,_0x5e22a5[_0x3a0491('0x1c9c')]=_0x3c3ec4,_0x5e22a5[_0x3a0491('0x2118')]=_0xf47d17,_0x5e22a5[_0x3a0491('0x1a20')]=_0x5e8a9d,_0x5e22a5[_0x3a0491('0xdfe')]=_0x38aad7,_0x5e22a5['getMailAccounts']=_0x39266f,_0x5e22a5['createOrEditMailAccount']=_0x374c11,_0x5e22a5[_0x3a0491('0x1ae3')]=_0x7aaf,_0x5e22a5[_0x3a0491('0xf5e')]=_0x32a091,_0x5e22a5[_0x3a0491('0x192c')]=_0x385d51,_0x5e22a5[_0x3a0491('0xd81')]=_0xff1d81,_0x5e22a5['selectAllMailAccounts']=_0xf32c1f,_0x2c013b[_0x3a0491('0x1b4e')]('admin')?_0x19253d[_0x3a0491('0xbb3')][_0x3a0491('0x1d97')]({'fields':_0x3a0491('0xd52'),'sort':_0x3a0491('0x10ad')})[_0x3a0491('0x1964')][_0x3a0491('0x173b')](function(_0x39260b){const _0x1547d3=_0x3a0491;_0x5e22a5[_0x1547d3('0x9e8')]=_0x39260b[_0x1547d3('0x6aa')]||[];})[_0x3a0491('0x103c')](function(_0x175114){const _0x5ce9aa=_0x3a0491;_0x5b8ed6[_0x5ce9aa('0x15aa')]({'title':_0x175114[_0x5ce9aa('0x276f')]?'API:'+_0x175114[_0x5ce9aa('0x276f')]+_0x5ce9aa('0x160c')+_0x175114[_0x5ce9aa('0x2696')]:_0x5ce9aa('0x1d5c'),'msg':_0x175114[_0x5ce9aa('0x1e07')]?JSON[_0x5ce9aa('0x100b')](_0x175114[_0x5ce9aa('0x1e07')]):_0x175114['toString']()});}):_0x19253d[_0x3a0491('0xbb3')][_0x3a0491('0x1d97')]({'fields':_0x3a0491('0xd52'),'sort':'name'})[_0x3a0491('0x1964')][_0x3a0491('0x173b')](function(_0x3c5c70){const _0x409def=_0x3a0491;_0x5e22a5[_0x409def('0x9e8')]=_0x3c5c70[_0x409def('0x6aa')]||[];})[_0x3a0491('0x173b')](function(){const _0x3d583f=_0x3a0491;return _0x19253d[_0x3d583f('0x170e')][_0x3d583f('0x1d97')]({'userProfileId':_0x5e22a5['currentUser'][_0x3d583f('0x1946')],'sectionId':0x12d})[_0x3d583f('0x1964')];})[_0x3a0491('0x173b')](function(_0x2618d0){const _0x6b54db=_0x3a0491,_0x435d59=_0x2618d0&&_0x2618d0[_0x6b54db('0x6aa')]?_0x2618d0[_0x6b54db('0x6aa')][0x0]:null;if(!_0x435d59){const _0x3a65ed=[];let _0x2b9f69=null;_0x5e22a5[_0x6b54db('0x77b')]&&(_0x2b9f69=_0x3c8d8a()[_0x6b54db('0x18ab')](_0x5e22a5[_0x6b54db('0x9e8')],{'id':Number(_0x5e22a5[_0x6b54db('0x77b')]['ListId'])}));for(let _0x33bf1d=0x0;_0x33bf1d<_0x5e22a5[_0x6b54db('0x9e8')][_0x6b54db('0x543')];_0x33bf1d++){_0x2b9f69&&_0x5e22a5['lists'][_0x33bf1d]['id']===_0x2b9f69['id']&&(_0x5e22a5[_0x6b54db('0x9e8')][_0x33bf1d][_0x6b54db('0x268e')]=![],_0x3a65ed[_0x6b54db('0x18bb')](_0x5e22a5[_0x6b54db('0x9e8')][_0x33bf1d]));}_0x5e22a5[_0x6b54db('0x9e8')]=_0x3a65ed;}else{if(!_0x435d59[_0x6b54db('0x273e')])return _0x19253d[_0x6b54db('0xda9')]['get']({'sectionId':_0x435d59['id']})[_0x6b54db('0x1964')][_0x6b54db('0x173b')](function(_0x25e91d){const _0x3b4db6=_0x6b54db,_0x497089=_0x3c8d8a()['map'](_0x25e91d[_0x3b4db6('0x6aa')],function(_0x38c264){const _0x5661d6=_0x3b4db6;return _0x3c8d8a()[_0x5661d6('0x18ab')](_0x5e22a5[_0x5661d6('0x9e8')],{'id':_0x38c264[_0x5661d6('0x1ce0')]});});let _0x3a0bca=null;_0x5e22a5[_0x3b4db6('0x77b')]&&(_0x3a0bca=_0x3c8d8a()[_0x3b4db6('0x18ab')](_0x5e22a5[_0x3b4db6('0x9e8')],{'id':Number(_0x5e22a5[_0x3b4db6('0x77b')][_0x3b4db6('0xef2')])}));if(_0x3a0bca&&!_0x3c8d8a()[_0x3b4db6('0x1ec')](_0x497089,['id',_0x3a0bca['id']])){const _0x2f8b4a=_0x3c8d8a()['find'](_0x5e22a5[_0x3b4db6('0x9e8')],{'id':_0x3a0bca['id']});_0x2f8b4a[_0x3b4db6('0x268e')]=![],_0x497089[_0x3b4db6('0x18bb')](_0x2f8b4a);}_0x5e22a5[_0x3b4db6('0x9e8')]=_0x497089;});}})[_0x3a0491('0x103c')](function(_0x41beb5){const _0x1f9018=_0x3a0491;_0x5b8ed6['error']({'title':_0x41beb5[_0x1f9018('0x276f')]?_0x1f9018('0x137')+_0x41beb5[_0x1f9018('0x276f')]+_0x1f9018('0x160c')+_0x41beb5[_0x1f9018('0x2696')]:'SYSTEM:GETlists','msg':_0x41beb5['data']?JSON[_0x1f9018('0x100b')](_0x41beb5[_0x1f9018('0x1e07')]):_0x41beb5[_0x1f9018('0x1b75')]()});});function _0xf9687c(_0xba36a7){_0xc8f273['go']('app.mail.mailAccounts.edit',{'id':_0xba36a7['id'],'mailAccount':_0xba36a7,'crudPermissions':_0x5e22a5['crudPermissions']});}function _0x595b43(_0x569c37){const _0x6ffa05=_0x3a0491;if(_0x569c37&&_0x569c37['id'])return _0x19253d[_0x6ffa05('0x77b')][_0x6ffa05('0xab1')]({'id':_0x569c37['id']})[_0x6ffa05('0x1964')]['then'](function(){const _0xaf6140=_0x6ffa05;_0x5b8ed6[_0xaf6140('0xdfe')]({'title':_0xaf6140('0x18f6'),'msg':_0xaf6140('0x13fe')});})[_0x6ffa05('0x103c')](function(_0x2389de){const _0x17ab82=_0x6ffa05;_0x5b8ed6['error']({'title':'Smtp\x20properly\x20verified','msg':_0x2389de[_0x17ab82('0x1e07')]?JSON[_0x17ab82('0x100b')](_0x2389de[_0x17ab82('0x1e07')]):_0x2389de[_0x17ab82('0x1b75')]()});});else _0x5b8ed6[_0x6ffa05('0x15aa')]({'title':_0x6ffa05('0x18f6'),'msg':'Smpt\x20id\x20unknown'});}function _0x1b82a0(_0x508acf){_0xc8f273['go']('app.mail.mailAccounts.edit',{'id':_0x508acf['id'],'tab':0x7});}function _0x3c3ec4(){const _0x5acc33=_0x3a0491;if(_0x2c013b['hasRole']('admin'))_0xc8f273['go'](_0x5acc33('0x16e6'),{});else return _0x19253d['userProfileSection']['get']({'userProfileId':_0x2c013b[_0x5acc33('0x14d4')]()['userProfileId'],'sectionId':0x262})[_0x5acc33('0x1964')][_0x5acc33('0x173b')](function(_0x35a809){const _0x513302=_0x5acc33,_0x2201d2=_0x35a809&&_0x35a809[_0x513302('0x6aa')]?_0x35a809[_0x513302('0x6aa')][0x0]:null;_0x2201d2&&_0x2201d2[_0x513302('0x830')]?_0xc8f273['go'](_0x513302('0x16e6'),{}):_0x5b8ed6[_0x513302('0x2787')]({'title':_0x39e96f[_0x513302('0x1467')](_0x513302('0x4aa')),'msg':_0x39e96f[_0x513302('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x5acc33('0x103c')](function(_0x1466ed){const _0x3f85dd=_0x5acc33;_0x5b8ed6[_0x3f85dd('0x15aa')]({'title':_0x1466ed['status']?_0x3f85dd('0x137')+_0x1466ed[_0x3f85dd('0x276f')]+_0x3f85dd('0x160c')+_0x1466ed[_0x3f85dd('0x2696')]:'USERPROFILE:GET_SECTION','msg':_0x1466ed[_0x3f85dd('0x276f')]?JSON[_0x3f85dd('0x100b')](_0x1466ed[_0x3f85dd('0x1e07')]):_0x1466ed[_0x3f85dd('0x1b75')]()});});}function _0xf47d17(_0x345935,_0x126fba){const _0xf50ded=_0x3a0491;_0x49980e[_0xf50ded('0x1cb7')]({'controller':'MailAccountagentaddController','controllerAs':'vm','templateUrl':_0xacc445,'parent':angular[_0xf50ded('0xb6d')](_0xaa7818[_0xf50ded('0x1a5')]),'targetEvent':_0x126fba,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x345935,'mailAccounts':_0x5e22a5[_0xf50ded('0x2632')]?_0x5e22a5['mailAccounts'][_0xf50ded('0x6aa')]:[],'crudPermissions':_0x5e22a5[_0xf50ded('0x1dc1')],'realtime':![]}});}function _0x5e8a9d(_0x3ff84e,_0xe631d){const _0x746fce=_0x3a0491,_0x5cda6a=_0x49980e[_0x746fce('0x1d02')]()[_0x746fce('0x20d6')](_0x746fce('0x5bb')+_0x3c8d8a()['startCase'](_0x746fce('0x77b'))+'?')[_0x746fce('0xf8b')](_0x746fce('0x15b9')+(_0x3ff84e[_0x746fce('0x10ad')]||'mailAccount')+''+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20mailAccount')[_0x746fce('0x21de')](_0xe631d)['ok']('OK')[_0x746fce('0x1e1f')]('CANCEL');_0x49980e[_0x746fce('0x1cb7')](_0x5cda6a)[_0x746fce('0x173b')](function(){_0x7aaf(_0x3ff84e);},function(){const _0x4e41cc=_0x746fce;console[_0x4e41cc('0xe37')](_0x4e41cc('0x468'));});}let _0x17078e=!![],_0x1184a=0x1;_0x25e505[_0x3a0491('0x1bdb')]('vm.query.filter',function(_0x1e6e20,_0x236702){const _0x4a15bf=_0x3a0491;_0x17078e?_0xb2a21f(function(){_0x17078e=![];}):(!_0x236702&&(_0x1184a=_0x5e22a5[_0x4a15bf('0xc49')][_0x4a15bf('0x182e')]),_0x1e6e20!==_0x236702&&(_0x5e22a5[_0x4a15bf('0xc49')][_0x4a15bf('0x182e')]=0x1),!_0x1e6e20&&(_0x5e22a5[_0x4a15bf('0xc49')][_0x4a15bf('0x182e')]=_0x1184a),_0x5e22a5[_0x4a15bf('0xdf3')]());});function _0x38aad7(_0x94db15){const _0x49a7ed=_0x3a0491;_0x5e22a5[_0x49a7ed('0x2632')]=_0x94db15||{'count':0x0,'rows':[]};}function _0x39266f(){const _0x588aaa=_0x3a0491;_0x5e22a5[_0x588aaa('0xc49')][_0x588aaa('0x17f0')]=(_0x5e22a5['query'][_0x588aaa('0x182e')]-0x1)*_0x5e22a5[_0x588aaa('0xc49')]['limit'],_0x2c013b[_0x588aaa('0x1b4e')]('admin')?_0x5e22a5[_0x588aaa('0x2219')]=_0x19253d['mailAccount'][_0x588aaa('0x1d97')](_0x5e22a5[_0x588aaa('0xc49')],_0x38aad7)[_0x588aaa('0x1964')]:(_0x5e22a5[_0x588aaa('0xc49')]['id']=_0x5e22a5[_0x588aaa('0x257b')]['id'],_0x5e22a5[_0x588aaa('0xc49')]['section']=_0x588aaa('0x15ab'),_0x5e22a5[_0x588aaa('0x2219')]=_0x19253d[_0x588aaa('0x257b')]['getResources'](_0x5e22a5[_0x588aaa('0xc49')],_0x38aad7)[_0x588aaa('0x1964')]);}function _0x374c11(_0x333d7b,_0x3f20c2){const _0x46e7fb=_0x3a0491;_0x49980e[_0x46e7fb('0x1cb7')]({'controller':_0x46e7fb('0x110b'),'controllerAs':'vm','templateUrl':_0x271acc,'parent':angular[_0x46e7fb('0xb6d')](_0xaa7818['body']),'targetEvent':_0x333d7b,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x3f20c2,'mailAccounts':_0x5e22a5[_0x46e7fb('0x2632')]['rows'],'license':_0x5e22a5[_0x46e7fb('0x1a29')],'setting':_0x5e22a5[_0x46e7fb('0x251')],'crudPermissions':_0x5e22a5[_0x46e7fb('0x1dc1')]}});}function _0x7aaf(_0x20b441){const _0x94b287=_0x3a0491;if(_0x20b441[_0x94b287('0xe66')])return _0x5b8ed6['error']({'title':_0x94b287('0x17b1'),'msg':_0x94b287('0x6e3')});_0x19253d['mailAccount'][_0x94b287('0x15e8')]({'id':_0x20b441['id']})[_0x94b287('0x1964')][_0x94b287('0x173b')](function(){const _0x4b7d89=_0x94b287;_0x3c8d8a()[_0x4b7d89('0x1a8b')](_0x5e22a5[_0x4b7d89('0x2632')][_0x4b7d89('0x6aa')],{'id':_0x20b441['id']}),_0x5e22a5[_0x4b7d89('0x2632')][_0x4b7d89('0x1a2f')]-=0x1,!_0x5e22a5[_0x4b7d89('0x2632')][_0x4b7d89('0x6aa')][_0x4b7d89('0x543')]&&_0x5e22a5[_0x4b7d89('0xdf3')](),_0x5b8ed6[_0x4b7d89('0xdfe')]({'title':_0x3c8d8a()[_0x4b7d89('0x10e')]('MailAccount')+_0x4b7d89('0x1c5e'),'msg':_0x20b441[_0x4b7d89('0x10ad')]?_0x20b441[_0x4b7d89('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x94b287('0x103c')](function(_0x35039b){const _0x1efc8e=_0x94b287;if(_0x35039b[_0x1efc8e('0x1e07')]&&_0x35039b[_0x1efc8e('0x1e07')][_0x1efc8e('0x1d4a')]&&_0x35039b[_0x1efc8e('0x1e07')][_0x1efc8e('0x1d4a')][_0x1efc8e('0x543')]){_0x5e22a5[_0x1efc8e('0x1d4a')]=_0x35039b['data'][_0x1efc8e('0x1d4a')]||[{'message':_0x35039b['toString'](),'type':_0x1efc8e('0x737')}];for(let _0x367522=0x0;_0x367522<_0x35039b[_0x1efc8e('0x1e07')][_0x1efc8e('0x1d4a')][_0x1efc8e('0x543')];_0x367522++){_0x5b8ed6[_0x1efc8e('0x15aa')]({'title':_0x35039b[_0x1efc8e('0x1e07')][_0x1efc8e('0x1d4a')][_0x367522][_0x1efc8e('0x1810')],'msg':_0x35039b[_0x1efc8e('0x1e07')][_0x1efc8e('0x1d4a')][_0x367522][_0x1efc8e('0x67f')]});}}else _0x5b8ed6['error']({'title':_0x35039b[_0x1efc8e('0x276f')]?_0x1efc8e('0x137')+_0x35039b[_0x1efc8e('0x276f')]+_0x1efc8e('0x160c')+_0x35039b[_0x1efc8e('0x2696')]:'SYSTEM:DELETEmailAccount','msg':_0x35039b['data']?JSON[_0x1efc8e('0x100b')](_0x35039b[_0x1efc8e('0x1e07')]['message']):_0x35039b[_0x1efc8e('0x67f')]||_0x35039b[_0x1efc8e('0x1b75')]()});});}function _0x32a091(){const _0xe764cb=_0x3a0491,_0x285934=angular[_0xe764cb('0x2e3')](_0x5e22a5['selectedMailAccounts']);return _0x5e22a5['selectedMailAccounts']=[],_0x285934;}function _0x385d51(_0x6ea1b){const _0x5033ce=_0x3a0491,_0x294a3a=_0x49980e['confirm']()[_0x5033ce('0x20d6')](_0x5033ce('0x231b'))['htmlContent'](''+_0x5e22a5['selectedMailAccounts'][_0x5033ce('0x543')]+'\x20selected'+_0x5033ce('0xd23'))[_0x5033ce('0x217')](_0x5033ce('0x31b'))[_0x5033ce('0x21de')](_0x6ea1b)['ok']('OK')[_0x5033ce('0x1e1f')]('CANCEL');_0x49980e[_0x5033ce('0x1cb7')](_0x294a3a)[_0x5033ce('0x173b')](function(){const _0x1a8fc1=_0x5033ce;_0x5e22a5[_0x1a8fc1('0x1067')][_0x1a8fc1('0xa6a')](function(_0x4df629){_0x7aaf(_0x4df629);}),_0x5e22a5[_0x1a8fc1('0x1067')]=[];});}function _0xff1d81(){const _0xee8b0f=_0x3a0491;_0x5e22a5[_0xee8b0f('0x1067')]=[];}function _0xf32c1f(){const _0x5b032b=_0x3a0491;_0x5e22a5[_0x5b032b('0x1067')]=_0x5e22a5['mailAccounts'][_0x5b032b('0x6aa')];}}const _0x435396=_0x4f1728;_0x2b1530[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x9dc'),_0x566993('0x1b0'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x2b1530(_0x4e5748,_0x37b72e,_0x4c542c,_0x1d41af,_0x4caabd,_0x1d396f,_0x119dda,_0x585e60,_0x1f512d,_0x3ad126,_0x214fef,_0x4a7c23,_0x142c9f,_0x1d19b1){const _0x438fd8=_0x566993,_0x4e66ef=this;_0x4e66ef['currentUser']=_0x214fef['getCurrentUser'](),_0x4e66ef[_0x438fd8('0x1d4a')]=[],_0x4e66ef[_0x438fd8('0x251')]=_0x142c9f,_0x4e66ef['license']=_0x4a7c23,_0x4e66ef[_0x438fd8('0x1dc1')]=_0x1d19b1,_0x4e66ef[_0x438fd8('0xb0')]={},_0x4e66ef['passwordPattern']=_0x4e66ef[_0x438fd8('0x251')]&&_0x4e66ef[_0x438fd8('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4e66ef[_0x438fd8('0x20d6')]=_0x438fd8('0x167b'),_0x4e66ef[_0x438fd8('0x1b0')]=angular[_0x438fd8('0x2e3')](_0x1f512d),_0x4e66ef['mailQueues']=_0x585e60,_0x4e66ef[_0x438fd8('0x34')]=![];!_0x4e66ef['mailQueue']&&(_0x4e66ef['mailQueue']={'strategy':_0x438fd8('0x61'),'timeout':0xa},_0x4e66ef[_0x438fd8('0x20d6')]=_0x438fd8('0x190c'),_0x4e66ef[_0x438fd8('0x34')]=!![]);_0x4e66ef[_0x438fd8('0x2080')]=_0xed3ea5,_0x4e66ef['saveMailQueue']=_0x278261,_0x4e66ef[_0x438fd8('0x37c')]=_0x57e73c,_0x4e66ef[_0x438fd8('0x11ae')]=_0xc0f8bc,_0x4e66ef[_0x438fd8('0x18e2')]=_0x566c1c;function _0xed3ea5(){const _0x4c0efa=_0x438fd8;_0x4e66ef[_0x4c0efa('0x1d4a')]=[],_0x3ad126[_0x4c0efa('0x1b0')][_0x4c0efa('0x1195')](_0x4e66ef[_0x4c0efa('0x1b0')])[_0x4c0efa('0x1964')][_0x4c0efa('0x173b')](function(_0x77be74){const _0x4a586b=_0x4c0efa;_0x4e66ef[_0x4a586b('0x9dc')]['unshift'](_0x77be74[_0x4a586b('0xf1f')]()),_0x119dda[_0x4a586b('0xdfe')]({'title':'MailQueue\x20properly\x20created','msg':_0x4e66ef[_0x4a586b('0x1b0')][_0x4a586b('0x10ad')]?_0x4e66ef[_0x4a586b('0x1b0')][_0x4a586b('0x10ad')]+_0x4a586b('0x209a'):''}),_0x566c1c(_0x77be74);})[_0x4c0efa('0x103c')](function(_0x28b061){const _0x4f1968=_0x4c0efa;if(_0x28b061[_0x4f1968('0x1e07')]&&_0x28b061[_0x4f1968('0x1e07')][_0x4f1968('0x1d4a')]&&_0x28b061[_0x4f1968('0x1e07')][_0x4f1968('0x1d4a')]['length']){_0x4e66ef[_0x4f1968('0x1d4a')]=_0x28b061[_0x4f1968('0x1e07')][_0x4f1968('0x1d4a')]||[{'message':_0x28b061[_0x4f1968('0x1b75')](),'type':_0x4f1968('0x109b')}];for(let _0x4796e9=0x0;_0x4796e9<_0x28b061[_0x4f1968('0x1e07')]['errors'][_0x4f1968('0x543')];_0x4796e9+=0x1){_0x119dda[_0x4f1968('0x15aa')]({'title':_0x28b061[_0x4f1968('0x1e07')][_0x4f1968('0x1d4a')][_0x4796e9][_0x4f1968('0x1810')],'msg':_0x28b061[_0x4f1968('0x1e07')][_0x4f1968('0x1d4a')][_0x4796e9][_0x4f1968('0x67f')]});}}else _0x119dda[_0x4f1968('0x15aa')]({'title':_0x28b061[_0x4f1968('0x276f')]?_0x4f1968('0x137')+_0x28b061[_0x4f1968('0x276f')]+_0x4f1968('0x160c')+_0x28b061['statusText']:_0x4f1968('0x109b'),'msg':_0x28b061[_0x4f1968('0x1e07')]?JSON[_0x4f1968('0x100b')](_0x28b061[_0x4f1968('0x1e07')][_0x4f1968('0x67f')]):_0x28b061['toString']()});});}function _0x278261(){const _0x3a1970=_0x438fd8;_0x4e66ef[_0x3a1970('0x1d4a')]=[],_0x3ad126[_0x3a1970('0x1b0')][_0x3a1970('0x1842')]({'id':_0x4e66ef[_0x3a1970('0x1b0')]['id']},_0x4e66ef['mailQueue'])[_0x3a1970('0x1964')][_0x3a1970('0x173b')](function(_0xd3ded5){const _0x22264b=_0x3a1970,_0x20c52f=_0x3c8d8a()['find'](_0x4e66ef[_0x22264b('0x9dc')],{'id':_0xd3ded5['id']});_0x20c52f&&_0x3c8d8a()[_0x22264b('0x9ef')](_0x20c52f,_0x3c8d8a()['pick'](_0xd3ded5[_0x22264b('0xf1f')](),_0x3c8d8a()[_0x22264b('0x1d3e')](_0x20c52f))),_0x119dda['success']({'title':'MailQueue\x20properly\x20saved!','msg':_0x4e66ef[_0x22264b('0x1b0')][_0x22264b('0x10ad')]?_0x4e66ef['mailQueue'][_0x22264b('0x10ad')]+_0x22264b('0x2788'):''}),_0x566c1c(_0xd3ded5);})[_0x3a1970('0x103c')](function(_0x476577){const _0x27d17e=_0x3a1970;if(_0x476577[_0x27d17e('0x1e07')]&&_0x476577[_0x27d17e('0x1e07')][_0x27d17e('0x1d4a')]&&_0x476577[_0x27d17e('0x1e07')][_0x27d17e('0x1d4a')][_0x27d17e('0x543')]){_0x4e66ef[_0x27d17e('0x1d4a')]=_0x476577[_0x27d17e('0x1e07')][_0x27d17e('0x1d4a')]||[{'message':_0x476577['toString'](),'type':_0x27d17e('0x8fb')}];for(let _0xa2831f=0x0;_0xa2831f<_0x476577[_0x27d17e('0x1e07')][_0x27d17e('0x1d4a')][_0x27d17e('0x543')];_0xa2831f++){_0x119dda[_0x27d17e('0x15aa')]({'title':_0x476577[_0x27d17e('0x1e07')][_0x27d17e('0x1d4a')][_0xa2831f][_0x27d17e('0x1810')],'msg':_0x476577[_0x27d17e('0x1e07')][_0x27d17e('0x1d4a')][_0xa2831f][_0x27d17e('0x67f')]});}}else _0x119dda[_0x27d17e('0x15aa')]({'title':_0x476577['status']?_0x27d17e('0x137')+_0x476577[_0x27d17e('0x276f')]+'\x20-\x20'+_0x476577['statusText']:_0x27d17e('0x8fb'),'msg':_0x476577[_0x27d17e('0x1e07')]?JSON[_0x27d17e('0x100b')](_0x476577['data'][_0x27d17e('0x67f')]):_0x476577[_0x27d17e('0x1b75')]()});});}function _0x57e73c(_0x4baa82){const _0x2512eb=_0x438fd8;_0x4e66ef[_0x2512eb('0x1d4a')]=[];const _0x288925=_0x1d41af['confirm']()[_0x2512eb('0x20d6')](_0x2512eb('0x8ef'))[_0x2512eb('0x732')](_0x2512eb('0xac6'))[_0x2512eb('0x217')]('Delete\x20MailQueue')['ok']('Delete')['cancel'](_0x2512eb('0x1d4e'))[_0x2512eb('0x21de')](_0x4baa82);_0x1d41af['show'](_0x288925)[_0x2512eb('0x173b')](function(){const _0x5465f2=_0x2512eb;_0x3ad126[_0x5465f2('0x1b0')][_0x5465f2('0x15e8')]({'id':_0x4e66ef[_0x5465f2('0x1b0')]['id']})[_0x5465f2('0x1964')][_0x5465f2('0x173b')](function(){const _0x3edec7=_0x5465f2;_0x3c8d8a()[_0x3edec7('0x1a8b')](_0x4e66ef[_0x3edec7('0x9dc')],{'id':_0x4e66ef['mailQueue']['id']}),_0x119dda[_0x3edec7('0xdfe')]({'title':_0x3edec7('0x191b'),'msg':(_0x4e66ef['mailQueue'][_0x3edec7('0x10ad')]||_0x3edec7('0x1b0'))+_0x3edec7('0x25d2')}),_0x566c1c(_0x4e66ef[_0x3edec7('0x1b0')]);})[_0x5465f2('0x103c')](function(_0x8647b2){const _0xa4682c=_0x5465f2;if(_0x8647b2[_0xa4682c('0x1e07')]&&_0x8647b2[_0xa4682c('0x1e07')][_0xa4682c('0x1d4a')]&&_0x8647b2[_0xa4682c('0x1e07')][_0xa4682c('0x1d4a')][_0xa4682c('0x543')]){_0x4e66ef[_0xa4682c('0x1d4a')]=_0x8647b2[_0xa4682c('0x1e07')][_0xa4682c('0x1d4a')]||[{'message':_0x8647b2[_0xa4682c('0x1b75')](),'type':_0xa4682c('0x2004')}];for(let _0xc9b1ca=0x0;_0xc9b1ca<_0x8647b2[_0xa4682c('0x1e07')][_0xa4682c('0x1d4a')][_0xa4682c('0x543')];_0xc9b1ca++){_0x119dda['error']({'title':_0x8647b2[_0xa4682c('0x1e07')][_0xa4682c('0x1d4a')][_0xc9b1ca][_0xa4682c('0x1810')],'msg':_0x8647b2[_0xa4682c('0x1e07')][_0xa4682c('0x1d4a')][_0xc9b1ca][_0xa4682c('0x67f')]});}}else _0x119dda[_0xa4682c('0x15aa')]({'title':_0x8647b2['status']?_0xa4682c('0x137')+_0x8647b2[_0xa4682c('0x276f')]+_0xa4682c('0x160c')+_0x8647b2[_0xa4682c('0x2696')]:'api.mailQueue.delete','msg':_0x8647b2[_0xa4682c('0x1e07')]?JSON['stringify'](_0x8647b2['data'][_0xa4682c('0x67f')]):_0x8647b2[_0xa4682c('0x67f')]||_0x8647b2['toString']()});});},function(){});}function _0xc0f8bc(_0x1304c8){return _0x1304c8===null?undefined:new Date(_0x1304c8);}function _0x566c1c(_0x3d3dc8){_0x1d41af['hide'](_0x3d3dc8);}}const _0x5f13ec=_0x2b1530;_0x52164b[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'api',_0x566993('0x1b0'),_0x566993('0x9dc'),'realtime',_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x52164b(_0x24cc43,_0x194bca,_0x463ae1,_0x16174d,_0x544327,_0x38a5a0,_0x554343,_0x5e15ce,_0x439f50,_0x268ef0){const _0x2b788=_0x566993,_0xf4c18f=this;_0xf4c18f[_0x2b788('0x155f')]=_0x439f50[_0x2b788('0x14d4')](),_0xf4c18f[_0x2b788('0x1b0')]=_0x544327,_0xf4c18f[_0x2b788('0x1dc1')]=_0x268ef0,_0xf4c18f['realtime']=_0x554343,_0xf4c18f['items']=[],_0xf4c18f[_0x2b788('0x203e')]=[],_0xf4c18f['selectedItems']=[],_0xf4c18f[_0x2b788('0x1493')]=[],_0xf4c18f[_0x2b788('0x15c9')]=[],_0xf4c18f['pendingChanges']=![],_0xf4c18f['onInit']=_0x4916fc,_0xf4c18f[_0x2b788('0x21dc')]=_0x486141,_0xf4c18f[_0x2b788('0x18e2')]=_0x4fa1f0,_0xf4c18f[_0x2b788('0x52e')]={'readOnly':!_0xf4c18f[_0x2b788('0x1dc1')][_0x2b788('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2b788('0x10ad'),'line1':'fullname','line2':[_0x2b788('0x10ad'),'internal'],'line3':'','labelAll':_0x5e15ce[_0x2b788('0x1467')](_0x2b788('0x2220')),'labelSelected':_0x5e15ce[_0x2b788('0x1467')]('MAIL.SELECTED_AGENTS'),'transferCallback':function(){const _0x805497=_0x2b788,_0x39727f=_0x3c8d8a()[_0x805497('0x226b')](_0xf4c18f[_0x805497('0x15c9')],_0xf4c18f[_0x805497('0x5f8')],'id');_0xf4c18f[_0x805497('0x277e')]=_0x3c8d8a()[_0x805497('0x1a56')](_0x39727f)?![]:!![];}};function _0x4916fc(){const _0x2ff73=_0x2b788;return _0x439f50[_0x2ff73('0x1b4e')](_0x2ff73('0x79b'))?_0x54a39e()[_0x2ff73('0x103c')](function(_0x2bad52){const _0x1999cb=_0x2ff73;_0x463ae1[_0x1999cb('0x15aa')]({'title':_0x2bad52[_0x1999cb('0x276f')]?'API:'+_0x2bad52[_0x1999cb('0x276f')]+'\x20-\x20'+_0x2bad52[_0x1999cb('0x2696')]:_0x1999cb('0x152b'),'msg':_0x2bad52[_0x1999cb('0x276f')]?JSON[_0x1999cb('0x100b')](_0x2bad52[_0x1999cb('0x1e07')]):_0x2bad52[_0x1999cb('0x1b75')]()});}):_0x16b98f()['then'](function(_0x50b668){const _0x12e570=_0x2ff73;return _0xf4c18f[_0x12e570('0x17c9')]=_0x50b668,_0x54a39e();})['catch'](function(_0x40a623){const _0x219188=_0x2ff73;_0x463ae1[_0x219188('0x15aa')]({'title':_0x40a623['status']?_0x219188('0x137')+_0x40a623['status']+_0x219188('0x160c')+_0x40a623[_0x219188('0x2696')]:'SYSTEM:GET_AGENTS','msg':_0x40a623['status']?JSON[_0x219188('0x100b')](_0x40a623[_0x219188('0x1e07')]):_0x40a623[_0x219188('0x1b75')]()});});}function _0x16b98f(){return _0x194bca(function(_0xe3e54a,_0x54d8e7){const _0xd037f9=a0_0xde5e;_0x16174d[_0xd037f9('0x170e')][_0xd037f9('0x1d97')]({'userProfileId':_0xf4c18f[_0xd037f9('0x155f')]['userProfileId'],'name':_0xd037f9('0x1272')})[_0xd037f9('0x1964')][_0xd037f9('0x173b')](function(_0x306985){const _0x198f2d=_0xd037f9,_0xfc58ac=_0x306985&&_0x306985[_0x198f2d('0x6aa')]?_0x306985[_0x198f2d('0x6aa')][0x0]:null;_0xe3e54a(_0xfc58ac);})['catch'](function(_0x203810){_0x54d8e7(_0x203810);});});}function _0x54a39e(){return _0x194bca(function(_0x1d2b70,_0x6e2063){const _0x30e347=a0_0xde5e;return _0x149e25()[_0x30e347('0x173b')](function(_0x5ee5d3){const _0x4bc1eb=_0x30e347;return _0xf4c18f['items']=_0x5ee5d3[_0x4bc1eb('0x6aa')]?_0x5ee5d3[_0x4bc1eb('0x6aa')]:[],_0x439f50[_0x4bc1eb('0x1b4e')](_0x4bc1eb('0x79b'))?_0x5ee5d3:_0xf4c18f[_0x4bc1eb('0x17c9')]?_0xf4c18f[_0x4bc1eb('0x17c9')][_0x4bc1eb('0x273e')]?_0x5ee5d3:_0x47c781():null;})[_0x30e347('0x173b')](function(_0x46c333){const _0x22ea19=_0x30e347,_0x24eebd=_0x46c333&&_0x46c333['rows']?_0x46c333['rows']:[];return _0xf4c18f[_0x22ea19('0x203e')]=_0x3c8d8a()[_0x22ea19('0x8a2')](_0x24eebd,function(_0x4e091a){const _0x2a5e9d=_0x22ea19;return _0x3c8d8a()[_0x2a5e9d('0x18ab')](_0xf4c18f[_0x2a5e9d('0x1b1f')],{'id':_0x439f50['hasRole'](_0x2a5e9d('0x79b'))||_0xf4c18f[_0x2a5e9d('0x17c9')]['autoAssociation']?_0x4e091a['id']:_0x4e091a[_0x2a5e9d('0x1ce0')]});}),_0xf4c18f['startingAllowedItems']=angular[_0x22ea19('0x2e3')](_0xf4c18f[_0x22ea19('0x203e')]),_0xf4c18f[_0x22ea19('0x1b1f')]['forEach'](function(_0x9fbf61){const _0x5f2fd4=_0x22ea19,_0x423dad=_0x3c8d8a()[_0x5f2fd4('0x18ab')](_0xf4c18f[_0x5f2fd4('0x203e')],{'id':_0x9fbf61['id']});_0x439f50[_0x5f2fd4('0x1b4e')](_0x5f2fd4('0x79b'))?_0x9fbf61[_0x5f2fd4('0xf02')]=!![]:_0x9fbf61[_0x5f2fd4('0xf02')]=typeof _0x423dad!==_0x5f2fd4('0x6e5')?!![]:![];}),_0x58271f();})[_0x30e347('0x173b')](function(_0x233e36){const _0x27f397=_0x30e347,_0x471b0a=_0x233e36&&_0x233e36[_0x27f397('0x6aa')]?_0x233e36[_0x27f397('0x6aa')]:[];_0xf4c18f[_0x27f397('0x5f8')]=_0x3c8d8a()['map'](_0x471b0a,function(_0x3ee109){const _0x1ede22=_0x27f397,_0x30b7eb=_0x3c8d8a()['find'](_0xf4c18f[_0x1ede22('0x1b1f')],{'id':_0x3ee109['id']});return _0x30b7eb[_0x1ede22('0x1692')]=_0x3ee109[_0x1ede22('0xe38')]?_0x1ede22('0x1929')+_0x3ee109[_0x1ede22('0xe38')][_0x1ede22('0x1692')]:'',_0x30b7eb[_0x1ede22('0x138c')]=typeof _0x3ee109[_0x1ede22('0x138c')]!==_0x1ede22('0x6e5')?'<'+_0x3ee109['internal']+'>':'',_0x30b7eb;}),_0xf4c18f[_0x27f397('0x15c9')]=angular[_0x27f397('0x2e3')](_0xf4c18f[_0x27f397('0x5f8')]),_0xf4c18f[_0x27f397('0x52e')][_0x27f397('0x5f8')]=_0xf4c18f[_0x27f397('0x5f8')],_0xf4c18f[_0x27f397('0x52e')][_0x27f397('0x1b1f')]=_0x3c8d8a()[_0x27f397('0x1bd3')](_0xf4c18f[_0x27f397('0x203e')],_0xf4c18f['dualMultiselectOptions'][_0x27f397('0x5f8')],'id'),_0x1d2b70();})[_0x30e347('0x103c')](function(_0x540030){_0x6e2063(_0x540030);});});}function _0x47c781(){return _0x194bca(function(_0x5df4d0,_0x18e5b4){const _0x4a33af=a0_0xde5e;return _0x16174d[_0x4a33af('0xda9')][_0x4a33af('0x1d97')]({'sectionId':_0xf4c18f[_0x4a33af('0x17c9')]['id'],'nolimit':!![]})[_0x4a33af('0x1964')]['then'](function(_0x29f190){_0x5df4d0(_0x29f190);})['catch'](function(_0x544714){_0x18e5b4(_0x544714);});});}function _0x58271f(){return _0x194bca(function(_0x2e2a1d,_0x505023){const _0x12df27=a0_0xde5e;return _0x16174d[_0x12df27('0x1b0')][_0x12df27('0x1903')]({'id':_0xf4c18f[_0x12df27('0x1b0')]['id'],'fields':_0x12df27('0x1d65'),'nolimit':!![],'role':'agent'})[_0x12df27('0x1964')]['then'](function(_0x3bd21e){_0x2e2a1d(_0x3bd21e);})[_0x12df27('0x103c')](function(_0xdfbaf0){_0x505023(_0xdfbaf0);});});}function _0x149e25(){return _0x194bca(function(_0x5af36d,_0x471ddf){const _0x30dcb2=a0_0xde5e;return _0x16174d[_0x30dcb2('0x166f')][_0x30dcb2('0x1d97')]({'fields':_0x30dcb2('0x1d65'),'nolimit':!![],'role':_0x30dcb2('0x7b0')})[_0x30dcb2('0x1964')][_0x30dcb2('0x173b')](function(_0x27296d){_0x5af36d(_0x27296d);})['catch'](function(_0x31d5fa){_0x471ddf(_0x31d5fa);});});}function _0x48499e(_0x27b4ab){return _0x194bca(function(_0x39a7fa,_0x2dd5cd){const _0x165924=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x27b4ab)?_0x39a7fa():_0x16174d[_0x165924('0x1b0')][_0x165924('0x1ff1')]({'id':_0xf4c18f['mailQueue']['id'],'ids':_0x3c8d8a()[_0x165924('0x8a2')](_0x27b4ab,'id')})[_0x165924('0x1964')][_0x165924('0x173b')](function(){_0x39a7fa();})[_0x165924('0x103c')](function(_0x2eeb13){_0x2dd5cd(_0x2eeb13);});});}function _0x109b13(_0x1d4da0){return _0x194bca(function(_0xadff1,_0x14df8f){const _0x289faf=a0_0xde5e;_0x3c8d8a()[_0x289faf('0x1a56')](_0x1d4da0)?_0xadff1():_0x16174d[_0x289faf('0x1b0')]['removeAgents']({'id':_0xf4c18f[_0x289faf('0x1b0')]['id'],'ids':_0x3c8d8a()['map'](_0x1d4da0,'id')})[_0x289faf('0x1964')][_0x289faf('0x173b')](function(){_0xadff1();})[_0x289faf('0x103c')](function(_0x23a01d){_0x14df8f(_0x23a01d);});});}function _0x486141(){const _0x8e10af=_0x2b788,_0x3f9be3=_0x3c8d8a()[_0x8e10af('0x1bd3')](_0xf4c18f[_0x8e10af('0x15c9')],_0xf4c18f['selectedItems'],'id'),_0x598075=_0x3c8d8a()[_0x8e10af('0x1bd3')](_0xf4c18f['selectedItems'],_0xf4c18f['startingSelectedItems'],'id');return _0x109b13(_0x3f9be3)[_0x8e10af('0x173b')](function(){return _0x48499e(_0x598075);})[_0x8e10af('0x173b')](function(){const _0x51662e=_0x8e10af;_0xf4c18f[_0x51662e('0x277e')]=![],_0xf4c18f[_0x51662e('0x1493')]=angular[_0x51662e('0x2e3')](_0xf4c18f[_0x51662e('0x203e')]),_0xf4c18f['startingSelectedItems']=angular['copy'](_0xf4c18f[_0x51662e('0x5f8')]),_0x463ae1[_0x51662e('0xdfe')]({'title':_0x51662e('0x23db'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x8e10af('0x103c')](function(_0x58af47){const _0x434e64=_0x8e10af;_0x463ae1[_0x434e64('0x15aa')]({'title':_0x58af47[_0x434e64('0x276f')]?_0x434e64('0x137')+_0x58af47[_0x434e64('0x276f')]+_0x434e64('0x160c')+_0x58af47[_0x434e64('0x2696')]:_0x434e64('0x1f48'),'msg':_0x58af47[_0x434e64('0x276f')]?JSON[_0x434e64('0x100b')](_0x58af47['data']):_0x58af47[_0x434e64('0x1b75')]()});});}function _0x4fa1f0(){const _0x3f8114=_0x2b788;_0x24cc43[_0x3f8114('0x1cf4')]();}}const _0x4f40c8=_0x52164b;_0x42dee2[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0xbd4'),_0x566993('0x1b0'),_0x566993('0x638'),'Auth',_0x566993('0x1dc1')];function _0x42dee2(_0xe95c9f,_0x29b99b,_0xa9bd4f,_0xaf8a83,_0x3c1433,_0x232915,_0x2570a9,_0x5dd395){const _0x94b616=_0x566993,_0x1e7e5f=this;_0x1e7e5f[_0x94b616('0x155f')]=_0x2570a9[_0x94b616('0x14d4')](),_0x1e7e5f['mailQueue']=_0x3c1433,_0x1e7e5f[_0x94b616('0x1dc1')]=_0x5dd395,_0x1e7e5f[_0x94b616('0x1b1f')]=[],_0x1e7e5f[_0x94b616('0x203e')]=[],_0x1e7e5f['selectedItems']=[],_0x1e7e5f[_0x94b616('0x1493')]=[],_0x1e7e5f[_0x94b616('0x15c9')]=[],_0x1e7e5f['pendingChanges']=![],_0x1e7e5f['dualMultiselectOptions']={'readOnly':!_0x1e7e5f['crudPermissions'][_0x94b616('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x94b616('0x10ad'),'line1':_0x94b616('0x10ad'),'line2':'','line3':'','labelAll':_0x232915['instant']('MAIL.ALL_TEAMS'),'labelSelected':_0x232915['instant'](_0x94b616('0x27b7')),'transferCallback':function(){const _0x2ae7b6=_0x94b616,_0x5c35d2=_0x3c8d8a()[_0x2ae7b6('0x226b')](_0x1e7e5f[_0x2ae7b6('0x15c9')],_0x1e7e5f[_0x2ae7b6('0x5f8')],'id');_0x1e7e5f[_0x2ae7b6('0x277e')]=_0x3c8d8a()[_0x2ae7b6('0x1a56')](_0x5c35d2)?![]:!![];}},_0x1e7e5f[_0x94b616('0x2535')]=_0xfa2771,_0x1e7e5f[_0x94b616('0x2421')]=_0xe9b10c,_0x1e7e5f['closeDialog']=_0x2e0bd1;function _0xfa2771(){const _0xf7e05b=_0x94b616;return _0x2570a9['hasRole']('admin')?_0x6d67db()['catch'](function(_0x4cec4c){const _0x10b395=a0_0xde5e;_0xa9bd4f['error']({'title':_0x4cec4c[_0x10b395('0x276f')]?'API:'+_0x4cec4c['status']+_0x10b395('0x160c')+_0x4cec4c[_0x10b395('0x2696')]:_0x10b395('0x15d3'),'msg':_0x4cec4c[_0x10b395('0x276f')]?JSON['stringify'](_0x4cec4c['data']):_0x4cec4c[_0x10b395('0x1b75')]()});}):_0x1be365()['then'](function(_0x47a523){const _0x2a0139=a0_0xde5e;return _0x1e7e5f[_0x2a0139('0x17c9')]=_0x47a523,_0x6d67db();})[_0xf7e05b('0x103c')](function(_0x25a168){const _0x5e56fd=_0xf7e05b;_0xa9bd4f[_0x5e56fd('0x15aa')]({'title':_0x25a168['status']?_0x5e56fd('0x137')+_0x25a168[_0x5e56fd('0x276f')]+_0x5e56fd('0x160c')+_0x25a168[_0x5e56fd('0x2696')]:'SYSTEM:GET_TEAMS','msg':_0x25a168[_0x5e56fd('0x276f')]?JSON[_0x5e56fd('0x100b')](_0x25a168[_0x5e56fd('0x1e07')]):_0x25a168['toString']()});});}function _0x1be365(){return _0x29b99b(function(_0x4e1393,_0x59a938){const _0x12a041=a0_0xde5e;_0xaf8a83[_0x12a041('0x170e')][_0x12a041('0x1d97')]({'userProfileId':_0x1e7e5f[_0x12a041('0x155f')]['userProfileId'],'name':_0x12a041('0x1e5c')})[_0x12a041('0x1964')]['then'](function(_0x3e5be1){const _0xc05f5e=_0x12a041,_0x371858=_0x3e5be1&&_0x3e5be1[_0xc05f5e('0x6aa')]?_0x3e5be1['rows'][0x0]:null;_0x4e1393(_0x371858);})[_0x12a041('0x103c')](function(_0x3dc388){_0x59a938(_0x3dc388);});});}function _0x6d67db(){return _0x29b99b(function(_0x928387,_0x158c34){const _0x3312e5=a0_0xde5e;return _0x55b27d()[_0x3312e5('0x173b')](function(_0x1b4246){const _0x32fa86=_0x3312e5;return _0x1e7e5f[_0x32fa86('0x1b1f')]=_0x1b4246['rows']?_0x1b4246[_0x32fa86('0x6aa')]:[],_0x2570a9['hasRole']('admin')?_0x1b4246:_0x1e7e5f[_0x32fa86('0x17c9')]?_0x1e7e5f[_0x32fa86('0x17c9')]['autoAssociation']?_0x1b4246:_0x3bbf0f():null;})[_0x3312e5('0x173b')](function(_0x440005){const _0x4e912a=_0x3312e5,_0x5822eb=_0x440005&&_0x440005[_0x4e912a('0x6aa')]?_0x440005['rows']:[];return _0x1e7e5f[_0x4e912a('0x203e')]=_0x3c8d8a()[_0x4e912a('0x8a2')](_0x5822eb,function(_0x26ea2c){const _0x54a66f=_0x4e912a;return _0x3c8d8a()[_0x54a66f('0x18ab')](_0x1e7e5f[_0x54a66f('0x1b1f')],{'id':_0x2570a9[_0x54a66f('0x1b4e')](_0x54a66f('0x79b'))||_0x1e7e5f['section'][_0x54a66f('0x273e')]?_0x26ea2c['id']:_0x26ea2c['resourceId']});}),_0x1e7e5f['items'][_0x4e912a('0xa6a')](function(_0x4ff2d8){const _0x33e046=_0x4e912a,_0x5cb72e=_0x3c8d8a()[_0x33e046('0x18ab')](_0x1e7e5f[_0x33e046('0x203e')],{'id':_0x4ff2d8['id']});_0x2570a9[_0x33e046('0x1b4e')]('admin')?_0x4ff2d8[_0x33e046('0xf02')]=!![]:_0x4ff2d8[_0x33e046('0xf02')]=typeof _0x5cb72e!==_0x33e046('0x6e5')?!![]:![];}),_0x4694ed();})['then'](function(_0x4b31a3){const _0x105368=_0x3312e5,_0x4828f7=_0x4b31a3&&_0x4b31a3['rows']?_0x4b31a3[_0x105368('0x6aa')]:[];_0x1e7e5f['selectedItems']=_0x3c8d8a()[_0x105368('0x8a2')](_0x4828f7,function(_0x14d5f0){const _0xb73b25=_0x105368;return _0x3c8d8a()[_0xb73b25('0x18ab')](_0x1e7e5f[_0xb73b25('0x1b1f')],{'id':_0x14d5f0['id']});}),_0x1e7e5f[_0x105368('0x15c9')]=angular['copy'](_0x1e7e5f[_0x105368('0x5f8')]),_0x1e7e5f['dualMultiselectOptions'][_0x105368('0x5f8')]=_0x1e7e5f[_0x105368('0x5f8')],_0x1e7e5f['dualMultiselectOptions'][_0x105368('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x1e7e5f[_0x105368('0x203e')],_0x1e7e5f[_0x105368('0x52e')][_0x105368('0x5f8')],'id'),_0x928387();})[_0x3312e5('0x103c')](function(_0x3cbd01){_0x158c34(_0x3cbd01);});});}function _0x3bbf0f(){return _0x29b99b(function(_0x14f60e,_0x7235ea){const _0x4900ef=a0_0xde5e;return _0xaf8a83[_0x4900ef('0xda9')][_0x4900ef('0x1d97')]({'sectionId':_0x1e7e5f['section']['id'],'nolimit':!![]})[_0x4900ef('0x1964')]['then'](function(_0x581141){_0x14f60e(_0x581141);})[_0x4900ef('0x103c')](function(_0x5d13fc){_0x7235ea(_0x5d13fc);});});}function _0x4694ed(){return _0x29b99b(function(_0x1a80a1,_0x16ac1f){const _0x37f1d3=a0_0xde5e;return _0xaf8a83[_0x37f1d3('0x1b0')]['getTeams']({'id':_0x1e7e5f[_0x37f1d3('0x1b0')]['id'],'fields':_0x37f1d3('0xd52'),'nolimit':!![]})[_0x37f1d3('0x1964')][_0x37f1d3('0x173b')](function(_0x15de1b){_0x1a80a1(_0x15de1b);})[_0x37f1d3('0x103c')](function(_0x5569bb){_0x16ac1f(_0x5569bb);});});}function _0x55b27d(){return _0x29b99b(function(_0x2df474,_0x4826bb){const _0x5c49d1=a0_0xde5e;return _0xaf8a83['team'][_0x5c49d1('0x1d97')]({'fields':_0x5c49d1('0xd52'),'nolimit':!![]})[_0x5c49d1('0x1964')]['then'](function(_0x2cad0a){_0x2df474(_0x2cad0a);})[_0x5c49d1('0x103c')](function(_0x6816f7){_0x4826bb(_0x6816f7);});});}function _0x4650d2(_0x5ab307){return _0x29b99b(function(_0xbccb58,_0x1cbf31){const _0x2185af=a0_0xde5e;_0x3c8d8a()[_0x2185af('0x1a56')](_0x5ab307)?_0xbccb58():_0xaf8a83[_0x2185af('0x1b0')][_0x2185af('0x500')]({'id':_0x1e7e5f['mailQueue']['id'],'ids':_0x3c8d8a()['map'](_0x5ab307,'id')})[_0x2185af('0x1964')][_0x2185af('0x173b')](function(){_0xbccb58();})[_0x2185af('0x103c')](function(_0x20ad3c){_0x1cbf31(_0x20ad3c);});});}function _0x1d9dd5(_0x211deb){return _0x29b99b(function(_0x59f70d,_0x50d5b9){const _0x57cbef=a0_0xde5e;_0x3c8d8a()[_0x57cbef('0x1a56')](_0x211deb)?_0x59f70d():_0xaf8a83[_0x57cbef('0x1b0')]['removeTeams']({'id':_0x1e7e5f[_0x57cbef('0x1b0')]['id'],'ids':_0x3c8d8a()[_0x57cbef('0x8a2')](_0x211deb,'id')})[_0x57cbef('0x1964')][_0x57cbef('0x173b')](function(){_0x59f70d();})[_0x57cbef('0x103c')](function(_0x243418){_0x50d5b9(_0x243418);});});}function _0xe9b10c(){const _0x1f97fc=_0x94b616,_0xe79c38=_0x3c8d8a()[_0x1f97fc('0x1bd3')](_0x1e7e5f[_0x1f97fc('0x15c9')],_0x1e7e5f[_0x1f97fc('0x5f8')],'id'),_0x43d3b9=_0x3c8d8a()['differenceBy'](_0x1e7e5f[_0x1f97fc('0x5f8')],_0x1e7e5f[_0x1f97fc('0x15c9')],'id');return _0x1d9dd5(_0xe79c38)[_0x1f97fc('0x173b')](function(){return _0x4650d2(_0x43d3b9);})['then'](function(){const _0x45d4ed=_0x1f97fc;_0x1e7e5f[_0x45d4ed('0x277e')]=![],_0x1e7e5f[_0x45d4ed('0x1493')]=angular['copy'](_0x1e7e5f[_0x45d4ed('0x203e')]),_0x1e7e5f[_0x45d4ed('0x15c9')]=angular['copy'](_0x1e7e5f[_0x45d4ed('0x5f8')]),_0xa9bd4f[_0x45d4ed('0xdfe')]({'title':_0x45d4ed('0x23db'),'msg':_0x45d4ed('0x1b39')});})['catch'](function(_0x2072ce){const _0x4b7370=_0x1f97fc;_0xa9bd4f[_0x4b7370('0x15aa')]({'title':_0x2072ce['status']?_0x4b7370('0x137')+_0x2072ce[_0x4b7370('0x276f')]+_0x4b7370('0x160c')+_0x2072ce[_0x4b7370('0x2696')]:_0x4b7370('0x1f48'),'msg':_0x2072ce['status']?JSON[_0x4b7370('0x100b')](_0x2072ce[_0x4b7370('0x1e07')]):_0x2072ce[_0x4b7370('0x1b75')]()});});}function _0x2e0bd1(){const _0x2a397a=_0x94b616;_0xe95c9f[_0x2a397a('0x1cf4')]();}}const _0x1b3f7d=_0x42dee2,_0x3d6655=_0x21a6a1['p']+_0x566993('0x1357');_0x137393[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1b0'),_0x566993('0x170e')];function _0x137393(_0x3ba648,_0x9a8024,_0xb3914b,_0x4be068,_0x47a608,_0x547036,_0x5d2901,_0xad2577,_0x502063,_0x51ddcf,_0x50fbc8,_0x3b1470){const _0x1e49a0=_0x566993,_0x53a626=this;_0x53a626[_0x1e49a0('0x155f')]=_0x51ddcf['getCurrentUser'](),_0x53a626[_0x1e49a0('0x1a29')]=_0x547036,_0x53a626['setting']=_0x5d2901,_0x53a626[_0x1e49a0('0x644')]=_0x53a626[_0x1e49a0('0x251')][_0x1e49a0('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x53a626[_0x1e49a0('0x614')]=_0x9a8024[_0x1e49a0('0x375')]()+_0x1e49a0('0x122b')+_0x9a8024[_0x1e49a0('0x4d1')](),_0x53a626[_0x1e49a0('0x1b0')]=_0x50fbc8||_0x3ba648['params']['mailQueue']||{},_0x53a626[_0x1e49a0('0x170e')]=_0x3b1470&&_0x3b1470[_0x1e49a0('0x1a2f')]==0x1?_0x3b1470[_0x1e49a0('0x6aa')][0x0]:null,_0x53a626['crudPermissions']=_0x51ddcf[_0x1e49a0('0xde6')](_0x53a626[_0x1e49a0('0x170e')]?_0x53a626['userProfileSection']['crudPermissions']:null),_0x53a626['hasModulePermissions']={},_0x53a626[_0x1e49a0('0xd5f')]=_0x3ba648[_0x1e49a0('0x197a')][_0x1e49a0('0x1e66')]||0x0,_0x53a626[_0x1e49a0('0x17d4')]=_0x3ade88,_0x53a626[_0x1e49a0('0x2118')]=_0x282efc,_0x53a626[_0x1e49a0('0x5a4')]=_0x502063[_0x1e49a0('0x2787')],_0x53a626[_0x1e49a0('0x2193')]=_0x29e39f,_0x53a626[_0x1e49a0('0x1a02')]=_0x30780e;function _0x3ade88(_0x4b38ea,_0x2a4fd0){const _0x463921=_0x1e49a0;_0xb3914b['show']({'controller':'MailQueueteamaddController','controllerAs':'vm','templateUrl':_0x3d6655,'parent':angular[_0x463921('0xb6d')](_0x4be068['body']),'targetEvent':_0x2a4fd0,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x4b38ea,'mailQueues':_0x53a626[_0x463921('0x9dc')]?_0x53a626[_0x463921('0x9dc')][_0x463921('0x6aa')]:[],'crudPermissions':_0x53a626[_0x463921('0x1dc1')]}});}function _0x282efc(_0xc890b4,_0xf356da){const _0x50a800=_0x1e49a0;_0xb3914b['show']({'controller':'MailQueueagentaddController','controllerAs':'vm','templateUrl':_0x2e7374,'parent':angular[_0x50a800('0xb6d')](_0x4be068[_0x50a800('0x1a5')]),'targetEvent':_0xf356da,'clickOutsideToClose':!![],'locals':{'mailQueue':_0xc890b4,'mailQueues':_0x53a626['mailQueues']?_0x53a626[_0x50a800('0x9dc')][_0x50a800('0x6aa')]:[],'crudPermissions':_0x53a626[_0x50a800('0x1dc1')],'realtime':![]}});}function _0x29e39f(){const _0x25d2e3=_0x1e49a0;_0x3ba648['go'](_0x25d2e3('0x1fdf'),{},{'reload':_0x25d2e3('0x1fdf')});}function _0x30780e(){const _0x1bcad5=_0x1e49a0;_0xad2577['mailQueue']['update']({'id':_0x53a626[_0x1bcad5('0x1b0')]['id']},_0x53a626[_0x1bcad5('0x1b0')])[_0x1bcad5('0x1964')][_0x1bcad5('0x173b')](function(){const _0x565eda=_0x1bcad5;_0x502063[_0x565eda('0xdfe')]({'title':_0x565eda('0x3b5'),'msg':_0x53a626['mailQueue'][_0x565eda('0x10ad')]?_0x53a626[_0x565eda('0x1b0')][_0x565eda('0x10ad')]+_0x565eda('0x1fd6'):''});})[_0x1bcad5('0x103c')](function(_0xd20f2e){const _0x2e1f33=_0x1bcad5;_0x502063['error']({'title':_0xd20f2e[_0x2e1f33('0x276f')]?_0x2e1f33('0x137')+_0xd20f2e[_0x2e1f33('0x276f')]+_0x2e1f33('0x160c')+_0xd20f2e['statusText']:_0x2e1f33('0x11cd'),'msg':_0xd20f2e[_0x2e1f33('0x1e07')]?JSON[_0x2e1f33('0x100b')](_0xd20f2e[_0x2e1f33('0x1e07')]):_0xd20f2e[_0x2e1f33('0x1b75')]()});});}}const _0x263abb=_0x137393;_0x651d35[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x9dc'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),'license',_0x566993('0x251')];function _0x651d35(_0x1ba4eb,_0x405dd9,_0x10bf15,_0x3a66ae,_0x253fcb,_0x4fcb65,_0x4092a9,_0x2197d9,_0x1e03ae,_0x1a81ee,_0x13a9a8,_0x5a89ca,_0x5ca447,_0x42c601,_0x34f457,_0x3d75b2,_0x556026){const _0x5176d1=_0x566993,_0x22cbe8=this;_0x22cbe8[_0x5176d1('0x1a29')]=_0x3d75b2,_0x22cbe8['setting']=_0x556026,_0x22cbe8[_0x5176d1('0x155f')]=_0x34f457[_0x5176d1('0x14d4')](),_0x22cbe8[_0x5176d1('0x9dc')]=_0x1e03ae||{'count':0x0,'rows':[]},_0x22cbe8[_0x5176d1('0x257b')]=_0x1a81ee,_0x22cbe8['userProfileSection']=_0x13a9a8&&_0x13a9a8[_0x5176d1('0x1a2f')]==0x1?_0x13a9a8[_0x5176d1('0x6aa')][0x0]:null,_0x22cbe8[_0x5176d1('0x1dc1')]=_0x34f457[_0x5176d1('0xde6')](_0x22cbe8[_0x5176d1('0x170e')]?_0x22cbe8['userProfileSection'][_0x5176d1('0x1dc1')]:null),_0x22cbe8['table']=_0x5176d1('0x9dc'),_0x22cbe8[_0x5176d1('0x14d6')]='',_0x22cbe8[_0x5176d1('0x2303')]=null,_0x22cbe8[_0x5176d1('0x1666')]=[],_0x22cbe8[_0x5176d1('0xc49')]={'fields':_0x5176d1('0xab9'),'sort':_0x5176d1('0x1769'),'channel':_0x5176d1('0x108a'),'limit':0xa,'page':0x1},_0x22cbe8[_0x5176d1('0x2125')]=_0x3c8d8a()[_0x5176d1('0x128')]([{'option':_0x5176d1('0x27db'),'value':_0x5176d1('0x6ac')},{'option':_0x5176d1('0xd86'),'value':_0x5176d1('0x1b87')}],function(_0x21514b){const _0x1132e7=_0x5176d1;return _0x3c8d8a()[_0x1132e7('0x166c')](_0x21514b[_0x1132e7('0xa7b')],new RegExp('\x27','g'),'');}),_0x22cbe8[_0x5176d1('0x222e')]=_0x2a5a8a,_0x22cbe8[_0x5176d1('0x17d4')]=_0x5f49a9,_0x22cbe8[_0x5176d1('0x2118')]=_0x4bd001,_0x22cbe8[_0x5176d1('0x1a20')]=_0x3a3af8,_0x22cbe8[_0x5176d1('0x1c9c')]=_0x123c5c,_0x22cbe8[_0x5176d1('0xdfe')]=_0x4f38e6,_0x22cbe8['getMailQueues']=_0x32e408,_0x22cbe8['createOrEditMailQueue']=_0x178108,_0x22cbe8[_0x5176d1('0x37c')]=_0x6e392d,_0x22cbe8[_0x5176d1('0x5a1')]=_0x84811e,_0x22cbe8[_0x5176d1('0x35f')]=_0x27c2f7,_0x22cbe8['deselectMailQueues']=_0x5626bd,_0x22cbe8[_0x5176d1('0xd31')]=_0x232bb4;function _0x2a5a8a(_0x6d0b43){const _0x414c37=_0x5176d1;_0x10bf15['go'](_0x414c37('0x65c'),{'id':_0x6d0b43['id'],'mailQueue':_0x6d0b43,'crudPermissions':_0x22cbe8[_0x414c37('0x1dc1')]});}function _0x5f49a9(_0x4918b5,_0x2e371e){const _0xf1f797=_0x5176d1;_0x253fcb[_0xf1f797('0x1cb7')]({'controller':_0xf1f797('0x1e53'),'controllerAs':'vm','templateUrl':_0x3d6655,'parent':angular[_0xf1f797('0xb6d')](_0x4fcb65[_0xf1f797('0x1a5')]),'targetEvent':_0x2e371e,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x4918b5,'mailQueues':_0x22cbe8[_0xf1f797('0x9dc')]?_0x22cbe8['mailQueues']['rows']:[],'crudPermissions':_0x22cbe8[_0xf1f797('0x1dc1')]}});}function _0x4bd001(_0x2c4b56,_0x38e0e1){const _0x56139d=_0x5176d1;_0x253fcb['show']({'controller':'MailQueueagentaddController','controllerAs':'vm','templateUrl':_0x2e7374,'parent':angular['element'](_0x4fcb65[_0x56139d('0x1a5')]),'targetEvent':_0x38e0e1,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x2c4b56,'mailQueues':_0x22cbe8[_0x56139d('0x9dc')]?_0x22cbe8[_0x56139d('0x9dc')][_0x56139d('0x6aa')]:[],'crudPermissions':_0x22cbe8[_0x56139d('0x1dc1')],'realtime':![]}});}function _0x3a3af8(_0x304a20,_0x2d2659){const _0xd17f44=_0x5176d1,_0x31c42d=_0x253fcb[_0xd17f44('0x1d02')]()[_0xd17f44('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0xd17f44('0x10e')](_0xd17f44('0x1b0'))+'?')[_0xd17f44('0xf8b')](_0xd17f44('0x15b9')+(_0x304a20[_0xd17f44('0x10ad')]||_0xd17f44('0x1b0'))+_0xd17f44('0x24be')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0xd17f44('0xdf0'))[_0xd17f44('0x21de')](_0x2d2659)['ok']('OK')['cancel'](_0xd17f44('0x468'));_0x253fcb[_0xd17f44('0x1cb7')](_0x31c42d)[_0xd17f44('0x173b')](function(){_0x6e392d(_0x304a20);},function(){const _0x2b9298=_0xd17f44;console[_0x2b9298('0xe37')]('CANCEL');});}function _0x123c5c(){const _0x273b9b=_0x5176d1;if(_0x34f457['hasRole'](_0x273b9b('0x79b')))_0x10bf15['go'](_0x273b9b('0xa89'),{});else return _0x5a89ca[_0x273b9b('0x170e')][_0x273b9b('0x1d97')]({'userProfileId':_0x34f457[_0x273b9b('0x14d4')]()[_0x273b9b('0x1946')],'sectionId':0x262})[_0x273b9b('0x1964')][_0x273b9b('0x173b')](function(_0x277e43){const _0x158427=_0x273b9b,_0x221b33=_0x277e43&&_0x277e43[_0x158427('0x6aa')]?_0x277e43[_0x158427('0x6aa')][0x0]:null;_0x221b33&&_0x221b33[_0x158427('0x830')]?_0x10bf15['go']('app.mail.realtime.queues',{}):_0x42c601[_0x158427('0x2787')]({'title':_0x2197d9[_0x158427('0x1467')](_0x158427('0x4aa')),'msg':_0x2197d9[_0x158427('0x1467')](_0x158427('0x7d4'))});})[_0x273b9b('0x103c')](function(_0x33177d){const _0x299686=_0x273b9b;_0x42c601[_0x299686('0x15aa')]({'title':_0x33177d[_0x299686('0x276f')]?_0x299686('0x137')+_0x33177d[_0x299686('0x276f')]+'\x20-\x20'+_0x33177d['statusText']:_0x299686('0x144d'),'msg':_0x33177d[_0x299686('0x276f')]?JSON['stringify'](_0x33177d[_0x299686('0x1e07')]):_0x33177d[_0x299686('0x1b75')]()});});}let _0x2b04c5=!![],_0x513a0f=0x1;_0x1ba4eb[_0x5176d1('0x1bdb')]('vm.query.filter',function(_0x281f85,_0xa86b4a){const _0x239b7e=_0x5176d1;_0x2b04c5?_0x4092a9(function(){_0x2b04c5=![];}):(!_0xa86b4a&&(_0x513a0f=_0x22cbe8[_0x239b7e('0xc49')][_0x239b7e('0x182e')]),_0x281f85!==_0xa86b4a&&(_0x22cbe8['query'][_0x239b7e('0x182e')]=0x1),!_0x281f85&&(_0x22cbe8[_0x239b7e('0xc49')]['page']=_0x513a0f),_0x22cbe8[_0x239b7e('0x1a9c')]());});function _0x4f38e6(_0x2d3c23){const _0x3a219b=_0x5176d1;_0x22cbe8[_0x3a219b('0x9dc')]=_0x2d3c23||{'count':0x0,'rows':[]};}function _0x32e408(){const _0x53aba3=_0x5176d1;_0x22cbe8[_0x53aba3('0xc49')]['offset']=(_0x22cbe8[_0x53aba3('0xc49')][_0x53aba3('0x182e')]-0x1)*_0x22cbe8[_0x53aba3('0xc49')]['limit'],_0x34f457[_0x53aba3('0x1b4e')](_0x53aba3('0x79b'))?_0x22cbe8[_0x53aba3('0x2219')]=_0x5a89ca['mailQueue']['get'](_0x22cbe8['query'],_0x4f38e6)[_0x53aba3('0x1964')]:(_0x22cbe8[_0x53aba3('0xc49')]['id']=_0x22cbe8['userProfile']['id'],_0x22cbe8['query'][_0x53aba3('0x17c9')]=_0x53aba3('0x233d'),_0x22cbe8[_0x53aba3('0x2219')]=_0x5a89ca[_0x53aba3('0x257b')][_0x53aba3('0x135b')](_0x22cbe8['query'],_0x4f38e6)[_0x53aba3('0x1964')]);}function _0x178108(_0x459dc6,_0x5232df){const _0x347eda=_0x5176d1;_0x253fcb[_0x347eda('0x1cb7')]({'controller':_0x347eda('0x1a8d'),'controllerAs':'vm','templateUrl':_0x5203f7,'parent':angular[_0x347eda('0xb6d')](_0x4fcb65['body']),'targetEvent':_0x459dc6,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x5232df,'mailQueues':_0x22cbe8[_0x347eda('0x9dc')][_0x347eda('0x6aa')],'license':_0x22cbe8[_0x347eda('0x1a29')],'setting':_0x22cbe8['setting'],'crudPermissions':_0x22cbe8[_0x347eda('0x1dc1')]}});}function _0x6e392d(_0x463719){const _0x2cf9e9=_0x5176d1;_0x5a89ca[_0x2cf9e9('0x1b0')][_0x2cf9e9('0x15e8')]({'id':_0x463719['id']})[_0x2cf9e9('0x1964')][_0x2cf9e9('0x173b')](function(){const _0x54a1ab=_0x2cf9e9;_0x3c8d8a()['remove'](_0x22cbe8[_0x54a1ab('0x9dc')][_0x54a1ab('0x6aa')],{'id':_0x463719['id']}),_0x22cbe8[_0x54a1ab('0x9dc')]['count']-=0x1,!_0x22cbe8[_0x54a1ab('0x9dc')][_0x54a1ab('0x6aa')][_0x54a1ab('0x543')]&&_0x22cbe8[_0x54a1ab('0x1a9c')](),_0x42c601[_0x54a1ab('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x54a1ab('0xa23'))+'\x20deleted!','msg':_0x463719[_0x54a1ab('0x10ad')]?_0x463719[_0x54a1ab('0x10ad')]+_0x54a1ab('0x25d2'):''});})[_0x2cf9e9('0x103c')](function(_0x33e131){const _0x585c24=_0x2cf9e9;if(_0x33e131[_0x585c24('0x1e07')]&&_0x33e131['data']['errors']&&_0x33e131[_0x585c24('0x1e07')][_0x585c24('0x1d4a')]['length']){_0x22cbe8[_0x585c24('0x1d4a')]=_0x33e131[_0x585c24('0x1e07')][_0x585c24('0x1d4a')]||[{'message':_0x33e131['toString'](),'type':'SYSTEM:DELETEmailQueue'}];for(let _0x3ee553=0x0;_0x3ee553<_0x33e131['data'][_0x585c24('0x1d4a')][_0x585c24('0x543')];_0x3ee553++){_0x42c601[_0x585c24('0x15aa')]({'title':_0x33e131['data'][_0x585c24('0x1d4a')][_0x3ee553]['type'],'msg':_0x33e131[_0x585c24('0x1e07')][_0x585c24('0x1d4a')][_0x3ee553][_0x585c24('0x67f')]});}}else _0x42c601['error']({'title':_0x33e131[_0x585c24('0x276f')]?_0x585c24('0x137')+_0x33e131[_0x585c24('0x276f')]+'\x20-\x20'+_0x33e131['statusText']:'SYSTEM:DELETEmailQueue','msg':_0x33e131['data']?JSON[_0x585c24('0x100b')](_0x33e131[_0x585c24('0x1e07')][_0x585c24('0x67f')]):_0x33e131['message']||_0x33e131[_0x585c24('0x1b75')]()});});}function _0x84811e(){const _0x1b75e2=_0x5176d1,_0x5274dd=angular[_0x1b75e2('0x2e3')](_0x22cbe8[_0x1b75e2('0x1666')]);return _0x22cbe8[_0x1b75e2('0x1666')]=[],_0x5274dd;}function _0x27c2f7(_0x4ab950){const _0x1d8097=_0x5176d1,_0x179662=_0x253fcb['confirm']()[_0x1d8097('0x20d6')](_0x1d8097('0x103d'))[_0x1d8097('0xf8b')](_0x1d8097('0x15b9')+_0x22cbe8[_0x1d8097('0x1666')][_0x1d8097('0x543')]+_0x1d8097('0xcb4')+'\x20will\x20be\x20deleted.')[_0x1d8097('0x217')](_0x1d8097('0x1e64'))['targetEvent'](_0x4ab950)['ok']('OK')[_0x1d8097('0x1e1f')]('CANCEL');_0x253fcb[_0x1d8097('0x1cb7')](_0x179662)[_0x1d8097('0x173b')](function(){const _0x485329=_0x1d8097;_0x22cbe8[_0x485329('0x1666')][_0x485329('0xa6a')](function(_0x3db502){_0x6e392d(_0x3db502);}),_0x22cbe8[_0x485329('0x1666')]=[];});}function _0x5626bd(){_0x22cbe8['selectedMailQueues']=[];}function _0x232bb4(){const _0x416ca5=_0x5176d1;_0x22cbe8[_0x416ca5('0x1666')]=_0x22cbe8[_0x416ca5('0x9dc')][_0x416ca5('0x6aa')];}}const _0x3379b9=_0x651d35;_0x5ec8ca[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x13ec'),'mailSubstatus','api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x5ec8ca(_0x511bb3,_0x2422ca,_0x120b96,_0x12af0e,_0x44618c,_0xf3d635,_0x1346da,_0x3bc36f,_0x8c57b,_0x5b61bf,_0xe319d4,_0x59cb65,_0x1e7e72,_0x143d01){const _0x3a9e62=_0x566993,_0x3d0209=this;_0x3d0209['currentUser']=_0xe319d4[_0x3a9e62('0x14d4')](),_0x3d0209[_0x3a9e62('0x1d4a')]=[],_0x3d0209[_0x3a9e62('0x251')]=_0x1e7e72,_0x3d0209[_0x3a9e62('0x1a29')]=_0x59cb65,_0x3d0209[_0x3a9e62('0x1dc1')]=_0x143d01,_0x3d0209[_0x3a9e62('0xb0')]={},_0x3d0209[_0x3a9e62('0x644')]=_0x3d0209['setting']&&_0x3d0209['setting'][_0x3a9e62('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d0209[_0x3a9e62('0x20d6')]='MAIL.EDIT_MAILSUBSTATUS',_0x3d0209['mailSubstatus']=angular[_0x3a9e62('0x2e3')](_0x8c57b),_0x3d0209[_0x3a9e62('0x13ec')]=_0x3bc36f,_0x3d0209['newMailSubstatus']=![];!_0x3d0209[_0x3a9e62('0x1f8e')]&&(_0x3d0209[_0x3a9e62('0x1f8e')]={},_0x3d0209[_0x3a9e62('0x20d6')]=_0x3a9e62('0xa66'),_0x3d0209['newMailSubstatus']=!![]);_0x3d0209[_0x3a9e62('0xea4')]=_0x17ec8e,_0x3d0209[_0x3a9e62('0x1af8')]=_0xa9063,_0x3d0209[_0x3a9e62('0x1a0')]=_0x3cbfcb,_0x3d0209[_0x3a9e62('0x11ae')]=_0x4d386e,_0x3d0209[_0x3a9e62('0x18e2')]=_0x268043;function _0x17ec8e(){const _0x2e91a1=_0x3a9e62;_0x3d0209[_0x2e91a1('0x1d4a')]=[],_0x5b61bf[_0x2e91a1('0x1f8e')][_0x2e91a1('0x1195')](_0x3d0209[_0x2e91a1('0x1f8e')])[_0x2e91a1('0x1964')][_0x2e91a1('0x173b')](function(_0x53878d){const _0x7b9443=_0x2e91a1;_0x3d0209['mailSubtatuses']['unshift'](_0x53878d[_0x7b9443('0xf1f')]()),_0x1346da['success']({'title':_0x7b9443('0xd36'),'msg':_0x3d0209['mailSubstatus'][_0x7b9443('0x10ad')]?_0x3d0209[_0x7b9443('0x1f8e')][_0x7b9443('0x10ad')]+_0x7b9443('0x209a'):''}),_0x268043(_0x53878d);})['catch'](function(_0x502c18){const _0xf6b6f7=_0x2e91a1;if(_0x502c18[_0xf6b6f7('0x1e07')]&&_0x502c18[_0xf6b6f7('0x1e07')][_0xf6b6f7('0x1d4a')]&&_0x502c18['data'][_0xf6b6f7('0x1d4a')][_0xf6b6f7('0x543')]){_0x3d0209[_0xf6b6f7('0x1d4a')]=_0x502c18[_0xf6b6f7('0x1e07')][_0xf6b6f7('0x1d4a')]||[{'message':_0x502c18['toString'](),'type':_0xf6b6f7('0x4ea')}];for(let _0x3ba8a8=0x0;_0x3ba8a8<_0x502c18[_0xf6b6f7('0x1e07')][_0xf6b6f7('0x1d4a')][_0xf6b6f7('0x543')];_0x3ba8a8+=0x1){_0x1346da[_0xf6b6f7('0x15aa')]({'title':_0x502c18[_0xf6b6f7('0x1e07')][_0xf6b6f7('0x1d4a')][_0x3ba8a8][_0xf6b6f7('0x1810')],'msg':_0x502c18['data'][_0xf6b6f7('0x1d4a')][_0x3ba8a8][_0xf6b6f7('0x67f')]});}}else _0x1346da['error']({'title':_0x502c18[_0xf6b6f7('0x276f')]?'API:'+_0x502c18[_0xf6b6f7('0x276f')]+_0xf6b6f7('0x160c')+_0x502c18['statusText']:_0xf6b6f7('0x4ea'),'msg':_0x502c18[_0xf6b6f7('0x1e07')]?JSON['stringify'](_0x502c18[_0xf6b6f7('0x1e07')]['message']):_0x502c18[_0xf6b6f7('0x1b75')]()});});}function _0xa9063(){const _0x216499=_0x3a9e62;_0x3d0209[_0x216499('0x1d4a')]=[],_0x5b61bf[_0x216499('0x1f8e')]['update']({'id':_0x3d0209[_0x216499('0x1f8e')]['id']},_0x3d0209[_0x216499('0x1f8e')])[_0x216499('0x1964')]['then'](function(_0x53da1e){const _0x5d8da9=_0x216499,_0x5a1f8d=_0x3c8d8a()[_0x5d8da9('0x18ab')](_0x3d0209[_0x5d8da9('0x13ec')],{'id':_0x53da1e['id']});_0x5a1f8d&&_0x3c8d8a()[_0x5d8da9('0x9ef')](_0x5a1f8d,_0x3c8d8a()[_0x5d8da9('0x2114')](_0x53da1e[_0x5d8da9('0xf1f')](),_0x3c8d8a()[_0x5d8da9('0x1d3e')](_0x5a1f8d))),_0x1346da['success']({'title':'MailSubstatus\x20properly\x20saved!','msg':_0x3d0209[_0x5d8da9('0x1f8e')][_0x5d8da9('0x10ad')]?_0x3d0209[_0x5d8da9('0x1f8e')]['name']+_0x5d8da9('0x2788'):''}),_0x268043(_0x53da1e);})[_0x216499('0x103c')](function(_0x423a92){const _0x4f586a=_0x216499;if(_0x423a92[_0x4f586a('0x1e07')]&&_0x423a92[_0x4f586a('0x1e07')][_0x4f586a('0x1d4a')]&&_0x423a92['data'][_0x4f586a('0x1d4a')]['length']){_0x3d0209[_0x4f586a('0x1d4a')]=_0x423a92[_0x4f586a('0x1e07')]['errors']||[{'message':_0x423a92[_0x4f586a('0x1b75')](),'type':'api.mailSubstatus.update'}];for(let _0x4fc672=0x0;_0x4fc672<_0x423a92[_0x4f586a('0x1e07')]['errors'][_0x4f586a('0x543')];_0x4fc672++){_0x1346da[_0x4f586a('0x15aa')]({'title':_0x423a92[_0x4f586a('0x1e07')]['errors'][_0x4fc672][_0x4f586a('0x1810')],'msg':_0x423a92[_0x4f586a('0x1e07')][_0x4f586a('0x1d4a')][_0x4fc672][_0x4f586a('0x67f')]});}}else _0x1346da[_0x4f586a('0x15aa')]({'title':_0x423a92[_0x4f586a('0x276f')]?_0x4f586a('0x137')+_0x423a92[_0x4f586a('0x276f')]+_0x4f586a('0x160c')+_0x423a92['statusText']:_0x4f586a('0xa5'),'msg':_0x423a92[_0x4f586a('0x1e07')]?JSON['stringify'](_0x423a92[_0x4f586a('0x1e07')]['message']):_0x423a92[_0x4f586a('0x1b75')]()});});}function _0x3cbfcb(_0x137323){const _0x15e913=_0x3a9e62;_0x3d0209[_0x15e913('0x1d4a')]=[];const _0x29f3b8=_0x12af0e[_0x15e913('0x1d02')]()[_0x15e913('0x20d6')](_0x15e913('0x8ef'))[_0x15e913('0x732')](_0x15e913('0x20a7'))[_0x15e913('0x217')]('Delete\x20MailSubstatus')['ok'](_0x15e913('0x2373'))[_0x15e913('0x1e1f')]('Cancel')['targetEvent'](_0x137323);_0x12af0e[_0x15e913('0x1cb7')](_0x29f3b8)[_0x15e913('0x173b')](function(){const _0x2b1ac1=_0x15e913;_0x5b61bf['mailSubstatus'][_0x2b1ac1('0x15e8')]({'id':_0x3d0209[_0x2b1ac1('0x1f8e')]['id']})[_0x2b1ac1('0x1964')][_0x2b1ac1('0x173b')](function(){const _0x50f479=_0x2b1ac1;_0x3c8d8a()[_0x50f479('0x1a8b')](_0x3d0209[_0x50f479('0x13ec')],{'id':_0x3d0209['mailSubstatus']['id']}),_0x1346da[_0x50f479('0xdfe')]({'title':_0x50f479('0xcbe'),'msg':(_0x3d0209[_0x50f479('0x1f8e')][_0x50f479('0x10ad')]||_0x50f479('0x1f8e'))+'\x20has\x20been\x20deleted!'}),_0x268043(_0x3d0209['mailSubstatus']);})[_0x2b1ac1('0x103c')](function(_0x27cdd5){const _0x3efdee=_0x2b1ac1;if(_0x27cdd5[_0x3efdee('0x1e07')]&&_0x27cdd5[_0x3efdee('0x1e07')][_0x3efdee('0x1d4a')]&&_0x27cdd5[_0x3efdee('0x1e07')][_0x3efdee('0x1d4a')][_0x3efdee('0x543')]){_0x3d0209[_0x3efdee('0x1d4a')]=_0x27cdd5['data'][_0x3efdee('0x1d4a')]||[{'message':_0x27cdd5[_0x3efdee('0x1b75')](),'type':_0x3efdee('0x87')}];for(let _0x5a3bc8=0x0;_0x5a3bc8<_0x27cdd5[_0x3efdee('0x1e07')][_0x3efdee('0x1d4a')][_0x3efdee('0x543')];_0x5a3bc8++){_0x1346da[_0x3efdee('0x15aa')]({'title':_0x27cdd5[_0x3efdee('0x1e07')][_0x3efdee('0x1d4a')][_0x5a3bc8]['type'],'msg':_0x27cdd5[_0x3efdee('0x1e07')][_0x3efdee('0x1d4a')][_0x5a3bc8]['message']});}}else _0x1346da['error']({'title':_0x27cdd5[_0x3efdee('0x276f')]?'API:'+_0x27cdd5[_0x3efdee('0x276f')]+_0x3efdee('0x160c')+_0x27cdd5[_0x3efdee('0x2696')]:'api.mailSubstatus.delete','msg':_0x27cdd5['data']?JSON['stringify'](_0x27cdd5['data'][_0x3efdee('0x67f')]):_0x27cdd5['message']||_0x27cdd5[_0x3efdee('0x1b75')]()});});},function(){});}function _0x4d386e(_0x2ba727){return _0x2ba727===null?undefined:new Date(_0x2ba727);}function _0x268043(_0xc0c004){const _0x4996e9=_0x3a9e62;_0x12af0e[_0x4996e9('0x1cf4')](_0xc0c004);}}const _0x1cdfbc=_0x5ec8ca,_0x423f74=_0x21a6a1['p']+_0x566993('0x1cd9');_0x510664[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state',_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x13ec'),'userProfile',_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x510664(_0x346c90,_0x1e8a20,_0x4094ea,_0x10e25c,_0x190e17,_0x1cb72f,_0x53a6f8,_0x120cd4,_0x973fad,_0x3e54b6,_0x1ab533,_0x3fd327,_0x39f26b,_0x256628,_0x21bb3a,_0x12f042,_0xe41f9b){const _0x35d0ba=_0x566993,_0x34c853=this;_0x34c853[_0x35d0ba('0x1a29')]=_0x12f042,_0x34c853[_0x35d0ba('0x251')]=_0xe41f9b,_0x34c853[_0x35d0ba('0x155f')]=_0x21bb3a[_0x35d0ba('0x14d4')](),_0x34c853['mailSubtatuses']=_0x973fad||{'count':0x0,'rows':[]},_0x34c853['userProfile']=_0x3e54b6,_0x34c853[_0x35d0ba('0x170e')]=_0x1ab533&&_0x1ab533['count']==0x1?_0x1ab533['rows'][0x0]:null,_0x34c853[_0x35d0ba('0x1dc1')]=_0x21bb3a['parseCrudPermissions'](_0x34c853[_0x35d0ba('0x170e')]?_0x34c853[_0x35d0ba('0x170e')][_0x35d0ba('0x1dc1')]:null),_0x34c853['table']=_0x35d0ba('0x13ec'),_0x34c853['listOrder']='',_0x34c853[_0x35d0ba('0x2303')]=null,_0x34c853['selectedMailSubstatuses']=[],_0x34c853['query']={'fields':'createdAt,updatedAt,id,name,description','sort':_0x35d0ba('0x1769'),'limit':0xa,'page':0x1},_0x34c853['editdialog']=_0xadf027,_0x34c853[_0x35d0ba('0x1a20')]=_0x3590bf,_0x34c853[_0x35d0ba('0xdfe')]=_0x6058db,_0x34c853[_0x35d0ba('0x1de3')]=_0x3bb028,_0x34c853[_0x35d0ba('0x1570')]=_0x71db15,_0x34c853[_0x35d0ba('0x1a0')]=_0x122dc7,_0x34c853[_0x35d0ba('0x1727')]=_0x15be23,_0x34c853[_0x35d0ba('0x18f2')]=_0x21a389,_0x34c853[_0x35d0ba('0x1b5c')]=_0x446554,_0x34c853[_0x35d0ba('0x78d')]=_0x3bd0c5;function _0xadf027(_0x3093ba,_0x443623){const _0x4ad7b0=_0x35d0ba;_0x190e17['show']({'controller':_0x4ad7b0('0xf56'),'controllerAs':'vm','templateUrl':_0x423f74,'parent':angular['element'](_0x1cb72f[_0x4ad7b0('0x1a5')]),'targetEvent':_0x443623,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x3093ba,'mailSubtatuses':_0x34c853['mailSubtatuses'][_0x4ad7b0('0x6aa')],'license':_0x34c853[_0x4ad7b0('0x1a29')],'setting':null,'crudPermissions':_0x34c853[_0x4ad7b0('0x1dc1')]}});}function _0x3590bf(_0x212a83,_0x39ecd7){const _0x387a83=_0x35d0ba,_0x946cdc=_0x190e17[_0x387a83('0x1d02')]()[_0x387a83('0x20d6')](_0x387a83('0x5bb')+_0x3c8d8a()[_0x387a83('0x10e')]('mailSubstatus')+'?')[_0x387a83('0xf8b')](_0x387a83('0x15b9')+(_0x212a83[_0x387a83('0x10ad')]||_0x387a83('0x1f8e'))+''+_0x387a83('0xd23'))[_0x387a83('0x217')](_0x387a83('0x22cb'))[_0x387a83('0x21de')](_0x39ecd7)['ok']('OK')[_0x387a83('0x1e1f')]('CANCEL');_0x190e17[_0x387a83('0x1cb7')](_0x946cdc)[_0x387a83('0x173b')](function(){_0x122dc7(_0x212a83);},function(){const _0x72f6ff=_0x387a83;console[_0x72f6ff('0xe37')](_0x72f6ff('0x468'));});}let _0x17bc36=!![],_0x35c57d=0x1;_0x346c90['$watch'](_0x35d0ba('0x157b'),function(_0x15d4f7,_0x16010d){const _0x1a858a=_0x35d0ba;_0x17bc36?_0x53a6f8(function(){_0x17bc36=![];}):(!_0x16010d&&(_0x35c57d=_0x34c853[_0x1a858a('0xc49')][_0x1a858a('0x182e')]),_0x15d4f7!==_0x16010d&&(_0x34c853[_0x1a858a('0xc49')]['page']=0x1),!_0x15d4f7&&(_0x34c853['query'][_0x1a858a('0x182e')]=_0x35c57d),_0x34c853[_0x1a858a('0x1de3')]());});function _0x6058db(_0x3b78f7){const _0x8340f2=_0x35d0ba;_0x34c853[_0x8340f2('0x13ec')]=_0x3b78f7||{'count':0x0,'rows':[]};}function _0x3bb028(){const _0x3a44f4=_0x35d0ba;_0x34c853['query'][_0x3a44f4('0x17f0')]=(_0x34c853[_0x3a44f4('0xc49')]['page']-0x1)*_0x34c853[_0x3a44f4('0xc49')][_0x3a44f4('0x3e')],_0x21bb3a[_0x3a44f4('0x1b4e')](_0x3a44f4('0x79b'))?_0x34c853[_0x3a44f4('0x2219')]=_0x3fd327[_0x3a44f4('0x1f8e')][_0x3a44f4('0x1d97')](_0x34c853[_0x3a44f4('0xc49')],_0x6058db)[_0x3a44f4('0x1964')]:(_0x34c853[_0x3a44f4('0xc49')]['id']=_0x34c853[_0x3a44f4('0x257b')]['id'],_0x34c853[_0x3a44f4('0xc49')]['section']=_0x3a44f4('0x1229'),_0x34c853[_0x3a44f4('0x2219')]=_0x3fd327[_0x3a44f4('0x257b')][_0x3a44f4('0x135b')](_0x34c853[_0x3a44f4('0xc49')],_0x6058db)[_0x3a44f4('0x1964')]);}function _0x71db15(_0x55e656,_0x2681e9){const _0x5b0873=_0x35d0ba;_0x190e17[_0x5b0873('0x1cb7')]({'controller':_0x5b0873('0xf56'),'controllerAs':'vm','templateUrl':_0x423f74,'parent':angular[_0x5b0873('0xb6d')](_0x1cb72f[_0x5b0873('0x1a5')]),'targetEvent':_0x55e656,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x2681e9,'mailSubtatuses':_0x34c853[_0x5b0873('0x13ec')][_0x5b0873('0x6aa')],'license':_0x34c853['license'],'setting':_0x34c853[_0x5b0873('0x251')],'crudPermissions':_0x34c853[_0x5b0873('0x1dc1')]}});}function _0x122dc7(_0x4419d3){const _0x3fd09f=_0x35d0ba;_0x3fd327[_0x3fd09f('0x1f8e')][_0x3fd09f('0x15e8')]({'id':_0x4419d3['id']})[_0x3fd09f('0x1964')][_0x3fd09f('0x173b')](function(){const _0x4e87f1=_0x3fd09f;_0x3c8d8a()['remove'](_0x34c853[_0x4e87f1('0x13ec')][_0x4e87f1('0x6aa')],{'id':_0x4419d3['id']}),_0x34c853['mailSubtatuses'][_0x4e87f1('0x1a2f')]-=0x1,!_0x34c853[_0x4e87f1('0x13ec')][_0x4e87f1('0x6aa')][_0x4e87f1('0x543')]&&_0x34c853[_0x4e87f1('0x1de3')](),_0x256628[_0x4e87f1('0xdfe')]({'title':_0x3c8d8a()[_0x4e87f1('0x10e')](_0x4e87f1('0x48b'))+_0x4e87f1('0x1c5e'),'msg':_0x4419d3[_0x4e87f1('0x10ad')]?_0x4419d3[_0x4e87f1('0x10ad')]+_0x4e87f1('0x25d2'):''});})[_0x3fd09f('0x103c')](function(_0x2faba1){const _0x19d939=_0x3fd09f;if(_0x2faba1[_0x19d939('0x1e07')]&&_0x2faba1[_0x19d939('0x1e07')][_0x19d939('0x1d4a')]&&_0x2faba1['data'][_0x19d939('0x1d4a')][_0x19d939('0x543')]){_0x34c853[_0x19d939('0x1d4a')]=_0x2faba1['data'][_0x19d939('0x1d4a')]||[{'message':_0x2faba1[_0x19d939('0x1b75')](),'type':'SYSTEM:DELETEmailSubstatus'}];for(let _0x456794=0x0;_0x456794<_0x2faba1[_0x19d939('0x1e07')][_0x19d939('0x1d4a')]['length'];_0x456794++){_0x256628['error']({'title':_0x2faba1[_0x19d939('0x1e07')][_0x19d939('0x1d4a')][_0x456794][_0x19d939('0x1810')],'msg':_0x2faba1['data']['errors'][_0x456794]['message']});}}else _0x256628[_0x19d939('0x15aa')]({'title':_0x2faba1[_0x19d939('0x276f')]?_0x19d939('0x137')+_0x2faba1[_0x19d939('0x276f')]+'\x20-\x20'+_0x2faba1[_0x19d939('0x2696')]:_0x19d939('0x4f0'),'msg':_0x2faba1[_0x19d939('0x1e07')]?JSON[_0x19d939('0x100b')](_0x2faba1[_0x19d939('0x1e07')][_0x19d939('0x67f')]):_0x2faba1[_0x19d939('0x67f')]||_0x2faba1[_0x19d939('0x1b75')]()});});}function _0x15be23(){const _0xf156e7=_0x35d0ba,_0x3cdc36=angular['copy'](_0x34c853[_0xf156e7('0x2524')]);return _0x34c853[_0xf156e7('0x2524')]=[],_0x3cdc36;}function _0x21a389(_0x5a1509){const _0x57b641=_0x35d0ba,_0x2aa750=_0x190e17[_0x57b641('0x1d02')]()[_0x57b641('0x20d6')](_0x57b641('0x1bab'))[_0x57b641('0xf8b')](_0x57b641('0x15b9')+_0x34c853[_0x57b641('0x2524')][_0x57b641('0x543')]+_0x57b641('0xcb4')+_0x57b641('0xd23'))['ariaLabel'](_0x57b641('0x21c3'))[_0x57b641('0x21de')](_0x5a1509)['ok']('OK')[_0x57b641('0x1e1f')](_0x57b641('0x468'));_0x190e17[_0x57b641('0x1cb7')](_0x2aa750)[_0x57b641('0x173b')](function(){const _0x59c7a4=_0x57b641;_0x34c853[_0x59c7a4('0x2524')][_0x59c7a4('0xa6a')](function(_0x1d5135){_0x122dc7(_0x1d5135);}),_0x34c853[_0x59c7a4('0x2524')]=[];});}function _0x446554(){const _0x40a0e0=_0x35d0ba;_0x34c853[_0x40a0e0('0x2524')]=[];}function _0x3bd0c5(){const _0x26585f=_0x35d0ba;_0x34c853[_0x26585f('0x2524')]=_0x34c853[_0x26585f('0x13ec')][_0x26585f('0x6aa')];}}const _0x563373=_0x510664;_0x245c2d[_0x566993('0x17bb')]=['$stateProvider',_0x566993('0x8ca')];function _0x245c2d(_0x554963,_0x4ea7ed){const _0x37008b=_0x566993;_0x554963[_0x37008b('0x1a49')](_0x37008b('0x7c0'),{'abstract':!![],'url':_0x37008b('0x1f0f')})[_0x37008b('0x1a49')](_0x37008b('0x1fdf'),{'url':_0x37008b('0x1841'),'views':{'content@app':{'templateUrl':_0x3933e7,'controller':_0x37008b('0x12f9')}},'resolve':{'mailQueues':[_0x37008b('0x2401'),_0x37008b('0x1600'),function(_0x1d1a70,_0x7cf513){const _0x1015ed=_0x37008b;return _0x7cf513['hasRole'](_0x1015ed('0x79b'))?_0x1d1a70[_0x1015ed('0x155b')](_0x1015ed('0x487'),{'fields':_0x1015ed('0xab9'),'sort':_0x1015ed('0x1769'),'channel':_0x1015ed('0x108a'),'limit':0xa,'offset':0x0}):_0x1d1a70[_0x1015ed('0x155b')](_0x1015ed('0x14b3'),{'id':_0x7cf513[_0x1015ed('0x14d4')]()[_0x1015ed('0x1946')],'section':_0x1015ed('0x233d'),'fields':_0x1015ed('0xab9'),'sort':_0x1015ed('0x1769'),'channel':_0x1015ed('0x108a'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x37008b('0x2401'),_0x37008b('0x1600'),function(_0x16b1a4,_0x202ebc){const _0x258fbc=_0x37008b;return _0x202ebc['hasRole'](_0x258fbc('0x79b'))?null:_0x16b1a4[_0x258fbc('0x155b')](_0x258fbc('0x1f20'),{'fields':_0x258fbc('0x19dd'),'id':_0x202ebc[_0x258fbc('0x14d4')]()[_0x258fbc('0x1946')]});}],'userProfileSection':['apiResolver',_0x37008b('0x1600'),function(_0x8394,_0x26dcc1){const _0x3ef943=_0x37008b;return _0x26dcc1[_0x3ef943('0x1b4e')](_0x3ef943('0x79b'))?null:_0x8394[_0x3ef943('0x155b')](_0x3ef943('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x26dcc1['getCurrentUser']()[_0x3ef943('0x1946')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x37008b('0x108a')})[_0x37008b('0x1a49')](_0x37008b('0x65c'),{'url':_0x37008b('0xb4c'),'params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x436f45,'controller':_0x37008b('0xdb7')}},'resolve':{'mailQueue':[_0x37008b('0x2401'),_0x37008b('0x1caf'),function(_0x2b2b48,_0x333d81){const _0x35f465=_0x37008b;return _0x2b2b48[_0x35f465('0x155b')](_0x35f465('0x487'),{'fields':_0x35f465('0xab9'),'id':_0x333d81['id']});}],'userProfileSection':[_0x37008b('0x2401'),_0x37008b('0x1600'),function(_0x435a75,_0x46b766){const _0xc0f6a9=_0x37008b;return _0x435a75[_0xc0f6a9('0x155b')](_0xc0f6a9('0x40'),{'fields':_0xc0f6a9('0x1348'),'userProfileId':_0x46b766[_0xc0f6a9('0x14d4')]()[_0xc0f6a9('0x1946')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0x37008b('0x108a')})[_0x37008b('0x1a49')]('app.mail.mailAccounts',{'url':_0x37008b('0xe05'),'views':{'content@app':{'templateUrl':_0x265786,'controller':'MailAccountsController\x20as\x20vm'}},'resolve':{'mailAccounts':['apiResolver',_0x37008b('0x1600'),function(_0x1d5f1e,_0x42f3ed){const _0x4c95e1=_0x37008b;return _0x42f3ed[_0x4c95e1('0x1b4e')](_0x4c95e1('0x79b'))?_0x1d5f1e[_0x4c95e1('0x155b')]('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}):_0x1d5f1e[_0x4c95e1('0x155b')](_0x4c95e1('0x14b3'),{'id':_0x42f3ed['getCurrentUser']()[_0x4c95e1('0x1946')],'section':_0x4c95e1('0x15ab'),'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':_0x4c95e1('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x37008b('0x2401'),'Auth',function(_0x11b023,_0x224ae2){const _0x24b648=_0x37008b;return _0x224ae2[_0x24b648('0x1b4e')](_0x24b648('0x79b'))?null:_0x11b023['resolve'](_0x24b648('0x1f20'),{'fields':_0x24b648('0x19dd'),'id':_0x224ae2[_0x24b648('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x37008b('0x2401'),'Auth',function(_0xc8512f,_0x2a1262){const _0x196c48=_0x37008b;return _0x2a1262[_0x196c48('0x1b4e')](_0x196c48('0x79b'))?null:_0xc8512f[_0x196c48('0x155b')](_0x196c48('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2a1262[_0x196c48('0x14d4')]()[_0x196c48('0x1946')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x37008b('0x108a')})[_0x37008b('0x1a49')]('app.mail.mailAccounts.edit',{'url':_0x37008b('0xb4c'),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1fa6c2,'controller':_0x37008b('0x1a70')}},'resolve':{'mailAccount':[_0x37008b('0x2401'),_0x37008b('0x1caf'),function(_0xb006fb,_0x32c158){const _0x5b00e8=_0x37008b;return _0xb006fb[_0x5b00e8('0x155b')]('mailAccount@get',{'fields':_0x5b00e8('0x129'),'id':_0x32c158['id']});}],'userProfileSection':[_0x37008b('0x2401'),_0x37008b('0x1600'),function(_0x254dc6,_0x7953a5){const _0x450ef9=_0x37008b;return _0x254dc6[_0x450ef9('0x155b')](_0x450ef9('0x40'),{'fields':_0x450ef9('0x1348'),'userProfileId':_0x7953a5[_0x450ef9('0x14d4')]()['userProfileId'],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0x37008b('0x108a')})['state'](_0x37008b('0x6c'),{'url':_0x37008b('0x19cd'),'views':{'content@app':{'templateUrl':_0x1e8693,'controller':_0x37008b('0x2266')}},'resolve':{'mailSubtatuses':['apiResolver',function(_0x161694){const _0x106168=_0x37008b;return _0x161694[_0x106168('0x155b')](_0x106168('0x1005'),{'fields':_0x106168('0x2275'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x37008b('0x1600'),function(_0x3095c5,_0x2b85f0){const _0x4670cc=_0x37008b;return _0x2b85f0[_0x4670cc('0x1b4e')](_0x4670cc('0x79b'))?null:_0x3095c5['resolve']('userProfile@get',{'fields':_0x4670cc('0x19dd'),'id':_0x2b85f0['getCurrentUser']()[_0x4670cc('0x1946')]});}],'userProfileSection':['apiResolver',_0x37008b('0x1600'),function(_0x58f3b6,_0x344735){const _0xabe11a=_0x37008b;return _0x344735[_0xabe11a('0x1b4e')](_0xabe11a('0x79b'))?null:_0x58f3b6['resolve'](_0xabe11a('0x40'),{'fields':_0xabe11a('0x1348'),'userProfileId':_0x344735[_0xabe11a('0x14d4')]()['userProfileId'],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':'mail'}),_0x4ea7ed[_0x37008b('0x1b1a')](_0x37008b('0x1e8c'));}angular['module'](_0x566993('0x7c0'),['ngCsv',_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),'mdColorPicker',_0x566993('0x26f0'),'ng-sortable',_0x566993('0x20fc'),_0x566993('0x8a3'),_0x566993('0x1146'),_0x566993('0x1698'),_0x566993('0x269'),'mwFormUtils',_0x566993('0x24ca'),'angular-cron-jobs',_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392'),_0x566993('0x60b')])[_0x566993('0xea9')](_0x245c2d)[_0x566993('0x1e65')](_0x566993('0x110b'),_0x53e58c)[_0x566993('0x1e65')]('MailAccountActionsController',_0x533827)[_0x566993('0x1e65')](_0x566993('0xc6d'),_0x1b832f)[_0x566993('0x1e65')](_0x566993('0xd08'),_0x1b48ec)[_0x566993('0x1e65')](_0x566993('0x1780'),_0x3b3e7d)[_0x566993('0x1e65')]('EditMailAccountAppcloseDialogController',_0x39bf37)[_0x566993('0x1e65')]('EditMailAccountAppgotoifDialogController',_0x5eab38)['controller'](_0x566993('0x25e0'),_0x2f15e1)[_0x566993('0x1e65')](_0x566993('0x176e'),_0x264365)[_0x566993('0x1e65')]('EditMailAccountAppnoopDialogController',_0x326bc)['controller'](_0x566993('0x238a'),_0x326a12)['controller']('EditMailAccountAppsystemDialogController',_0x2bd7ee)[_0x566993('0x1e65')]('EditMailAccountApptagDialogController',_0x13e279)['controller'](_0x566993('0x2492'),_0x843de9)['controller'](_0x566993('0x883'),_0xee8311)['controller'](_0x566993('0x155a'),_0x1b7986)[_0x566993('0x1e65')](_0x566993('0x268'),_0x3f2a68)[_0x566993('0x1e65')]('MailAccountController',_0x3babfb)[_0x566993('0x1e65')](_0x566993('0xd6e'),_0x435396)[_0x566993('0x1e65')]('CreateOrEditMailQueueDialogController',_0x5f13ec)[_0x566993('0x1e65')](_0x566993('0x1820'),_0x4f40c8)[_0x566993('0x1e65')](_0x566993('0x1e53'),_0x1b3f7d)[_0x566993('0x1e65')]('MailQueueController',_0x263abb)[_0x566993('0x1e65')]('MailQueuesController',_0x3379b9)[_0x566993('0x1e65')]('CreateOrEditMailSubstatusDialogController',_0x1cdfbc)[_0x566993('0x1e65')](_0x566993('0x5d9'),_0x563373);const _0xad577b=_0x21a6a1['p']+_0x566993('0x2450'),_0x13e1ea=_0x21a6a1['p']+_0x566993('0x6eb'),_0x1c2010=_0x21a6a1['p']+'src/js/modules/main/apps/sms/views/realtime/queues/view.html/view.html';_0x4e3e4f['$inject']=[_0x566993('0x66f'),'$q',_0x566993('0x24b5'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x1537'),_0x566993('0x1d66'),_0x566993('0x11fa'),_0x566993('0x61d'),'api',_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x1bf5'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600'),'license',_0x566993('0x1b13')];function _0x4e3e4f(_0x172aa3,_0x36266e,_0x2db516,_0x2e93e1,_0x31a1cf,_0x516099,_0x5a7052,_0x119e11,_0x3444f8,_0x18f542,_0x30833e,_0x1bca91,_0x1c02ff,_0x5ab7c2,_0x316c39,_0x580ad1,_0x525464,_0x192253){const _0x1e3925=_0x566993,_0x16a69a=this,_0x484d3e=[_0x1e3925('0x1def'),'online','lastLoginAt',_0x1e3925('0x20a0'),_0x1e3925('0xd63'),_0x1e3925('0x20a0'),_0x1e3925('0x138c'),_0x1e3925('0x1e8'),_0x1e3925('0x988'),_0x1e3925('0x106'),_0x1e3925('0xf41'),'smsPause',_0x1e3925('0x852'),_0x1e3925('0x13eb'),_0x1e3925('0x67c'),_0x1e3925('0x266d'),_0x1e3925('0xa4'),_0x1e3925('0xcc8'),_0x1e3925('0x784'),_0x1e3925('0x1502'),_0x1e3925('0x2761'),_0x1e3925('0x1791'),_0x1e3925('0x24df'),_0x1e3925('0x1d75'),_0x1e3925('0x1ade'),_0x1e3925('0x1932'),'faxCurrentCapacity',_0x1e3925('0x10ee'),'openchannelStatus',_0x1e3925('0x1120'),'smsStatus',_0x1e3925('0x14be'),'faxStatus',_0x1e3925('0x1b47'),'chatStatusTime',_0x1e3925('0x205'),_0x1e3925('0x22a'),_0x1e3925('0x2176'),_0x1e3925('0x15b6'),'faxStatusTime',_0x1e3925('0x1c89'),'queue','destconnectedlinenum',_0x1e3925('0x1fcd'),_0x1e3925('0x23ee'),_0x1e3925('0x1386')],_0x48532e=[_0x1e3925('0x988'),'openchannelPause','mailPause','smsPause',_0x1e3925('0x852'),_0x1e3925('0x13eb'),_0x1e3925('0x67c'),_0x1e3925('0xc7a')];_0x16a69a[_0x1e3925('0x155f')]=_0x580ad1[_0x1e3925('0x14d4')](),_0x16a69a[_0x1e3925('0x150')]=[_0x1e3925('0x263b'),'inuse','busy',_0x1e3925('0x1c3f'),'not_inuse'],_0x16a69a[_0x1e3925('0x1d66')]=_0x5a7052||{'count':0x0,'rows':[]},_0x16a69a[_0x1e3925('0x1a29')]=_0x525464,_0x16a69a[_0x1e3925('0x257b')]=_0x5ab7c2,_0x16a69a[_0x1e3925('0x170e')]=_0x316c39&&_0x316c39[_0x1e3925('0x1a2f')]==0x1?_0x316c39[_0x1e3925('0x6aa')][0x0]:null,_0x16a69a['crudPermissions']=_0x580ad1[_0x1e3925('0xde6')](_0x16a69a['userProfileSection']?_0x16a69a['userProfileSection'][_0x1e3925('0x1dc1')]:null),_0x16a69a[_0x1e3925('0x11fa')]=_0x119e11?_0x3c8d8a()['keyBy'](_0x119e11[_0x1e3925('0x6aa')]?_0x119e11['rows']:[],'id'):{},_0x16a69a['rpcAgents']=_0x3444f8?_0x3c8d8a()[_0x1e3925('0x128')](_0x3444f8[_0x1e3925('0x6aa')]?_0x3444f8[_0x1e3925('0x6aa')]:[],'id'):{},_0x16a69a[_0x1e3925('0x2cb')]={},_0x16a69a['load']=![],_0x16a69a[_0x1e3925('0x144a')]=[],_0x16a69a[_0x1e3925('0xa53')]={};for(const _0x5349b7 in _0x16a69a['agents']){typeof _0x16a69a[_0x1e3925('0x11fa')][_0x5349b7]!==_0x1e3925('0x6e5')&&(_0x16a69a[_0x1e3925('0x11fa')][_0x5349b7][_0x1e3925('0xb9c')]=!![]);}_0x16a69a[_0x1e3925('0xc49')]={'limit':0xa,'page':0x1,'order':_0x1e3925('0x572'),'globalStatusFilter':'','pauseTypeFilter':''},_0x16a69a['logout']=_0x2913e6,_0x16a69a['queueAdd']=_0x594a54,_0x16a69a[_0x1e3925('0x1751')]=_0x2c326d,_0x16a69a[_0x1e3925('0x705')]=_0x299630,_0x16a69a[_0x1e3925('0x2230')]=_0x3b3de7,_0x16a69a[_0x1e3925('0x8da')]=_0x2b9035,_0x16a69a[_0x1e3925('0xc8c')]=_0x3988f5,_0x16a69a[_0x1e3925('0x1263')]=_0x142ba6,_0x16a69a[_0x1e3925('0xe1')]=_0x57cbe5,_0x16a69a[_0x1e3925('0x83e')]=_0xf02fd5,_0x16a69a[_0x1e3925('0x689')]=_0x11565c,_0x16a69a['onUpdate']=_0x1dea83,_0x16a69a[_0x1e3925('0x2535')]=_0x3753cc,_0x16a69a[_0x1e3925('0xc04')]=_0x109dfa,_0x16a69a[_0x1e3925('0xa6f')]=_0x31841d,_0x16a69a[_0x1e3925('0x195a')]=_0x473c39,_0x30833e['on'](_0x1e3925('0x1f4c'),_0x16a69a[_0x1e3925('0x689')]),_0x30833e['on']('user:update',_0x16a69a[_0x1e3925('0x2805')]),_0x30833e['on'](_0x1e3925('0x1bd5'),_0x16a69a[_0x1e3925('0xc04')]),_0x30833e['on'](_0x1e3925('0xa73'),_0x16a69a[_0x1e3925('0xa6f')]),_0x3753cc();let _0x23acd2=_0x192253(function(){const _0x544bb7=_0x1e3925;_0x16a69a[_0x544bb7('0xda0')]&&(_0x16a69a[_0x544bb7('0xda0')]=![],_0x3753cc());},0x3e7);function _0x3753cc(){const _0x5f7e41=_0x1e3925;_0x16a69a['load']=![];const _0x5a800f=_0x36266e[_0x5f7e41('0x112e')]();_0x16a69a[_0x5f7e41('0x2219')]=_0x5a800f[_0x5f7e41('0x2219')],_0x16a69a[_0x5f7e41('0x3b')]=[],_0x16a69a['order']=[],_0x3c8d8a()[_0x5f7e41('0x33d')](_0x16a69a[_0x5f7e41('0x11fa')],function(_0x3b1122,_0x4dc1a1){const _0x194702=_0x5f7e41;_0x16a69a[_0x194702('0x61d')][_0x4dc1a1]&&_0x3c8d8a()['merge'](_0x3b1122,_0x3c8d8a()[_0x194702('0x2114')](_0x3c8d8a()['omit'](_0x16a69a[_0x194702('0x61d')][_0x4dc1a1],_0x48532e),_0x484d3e)),_0x3988f5(_0x3b1122),_0x3b1122['online']?(_0x16a69a[_0x194702('0x3b')][_0x194702('0x18bb')](_0x3b1122),_0x16a69a[_0x194702('0xa53')][_0x3b1122[_0x194702('0x138c')]]=_0x4dc1a1):_0x3b1122['globalStatusTime']=_0x3c8d8a()['toNumber'](_0x156524()()[_0x194702('0xddc')]('x'));});_0x16a69a[_0x5f7e41('0xc49')]['globalStatusFilter']&&_0x3c8d8a()['remove'](_0x16a69a[_0x5f7e41('0x3b')],function(_0x2f67b3){const _0x513b61=_0x5f7e41;return _0x2f67b3['globalStatus']!==_0x16a69a['query'][_0x513b61('0x1f52')];});_0x16a69a['query'][_0x5f7e41('0x6a')]&&_0x3c8d8a()['remove'](_0x16a69a[_0x5f7e41('0x3b')],function(_0x30ddb9){const _0x28f008=_0x5f7e41;return _0x30ddb9[_0x28f008('0xd63')]!==_0x16a69a[_0x28f008('0xc49')][_0x28f008('0x6a')];});_0x16a69a[_0x5f7e41('0xc49')][_0x5f7e41('0x278d')]&&_0x3c8d8a()[_0x5f7e41('0x1a8b')](_0x16a69a[_0x5f7e41('0x3b')],function(_0x29b70a){const _0x4990d6=_0x5f7e41;return _0x29b70a[_0x4990d6('0x572')][_0x4990d6('0x1e68')]()[_0x4990d6('0x2087')](_0x16a69a['query'][_0x4990d6('0x278d')][_0x4990d6('0x1e68')]())<0x0;});_0x16a69a['filteredAgents']=_0x444092(_0x16a69a[_0x5f7e41('0x3b')]);const _0x4ac767=(_0x16a69a['query'][_0x5f7e41('0x182e')]-0x1)*_0x16a69a[_0x5f7e41('0xc49')][_0x5f7e41('0x3e')];_0x16a69a[_0x5f7e41('0x2cb')]=_0x3c8d8a()['drop'](_0x16a69a[_0x5f7e41('0x3b')],_0x4ac767)[_0x5f7e41('0x2456')](0x0,_0x16a69a[_0x5f7e41('0xc49')][_0x5f7e41('0x3e')]);for(let _0x34470c=0x0;_0x34470c<_0x16a69a[_0x5f7e41('0x2cb')][_0x5f7e41('0x543')];_0x34470c+=0x1){_0x16a69a['order'][_0x5f7e41('0x18bb')](_0x16a69a[_0x5f7e41('0x2cb')][_0x34470c]['id']);}_0x5a800f[_0x5f7e41('0x155b')](),_0x16a69a['load']=!![];}function _0x11565c(_0x494712){const _0x272576=_0x1e3925;_0x16a69a['agents'][_0x494712['id']]&&(_0x3c8d8a()[_0x272576('0x9ef')](_0x16a69a[_0x272576('0x11fa')][_0x494712['id']],_0x3c8d8a()[_0x272576('0x2114')](_0x3c8d8a()[_0x272576('0x2797')](_0x494712,_0x48532e),_0x484d3e)),_0x3c8d8a()[_0x272576('0x9ef')](_0x16a69a['rpcAgents'][_0x494712['id']],_0x3c8d8a()['pick'](_0x3c8d8a()['omit'](_0x494712,_0x48532e),_0x484d3e)),_0x3988f5(_0x16a69a[_0x272576('0x11fa')][_0x494712['id']]));}function _0x1dea83(_0x17849f){const _0xb1b3ba=_0x1e3925;_0x16a69a[_0xb1b3ba('0x11fa')][_0x17849f['id']]&&(_0x3c8d8a()['merge'](_0x16a69a[_0xb1b3ba('0x11fa')][_0x17849f['id']],_0x3c8d8a()[_0xb1b3ba('0x2114')](_0x17849f,_0x484d3e)),_0x3c8d8a()[_0xb1b3ba('0x9ef')](_0x16a69a[_0xb1b3ba('0x61d')][_0x17849f['id']],_0x3c8d8a()[_0xb1b3ba('0x2114')](_0x17849f,_0x484d3e)),_0x17849f[_0xb1b3ba('0x20a0')]&&(_0x16a69a[_0xb1b3ba('0x11fa')][_0x17849f['id']][_0xb1b3ba('0x1cd8')]=_0x17849f[_0xb1b3ba('0x20a0')],_0x16a69a[_0xb1b3ba('0x61d')][_0x17849f['id']][_0xb1b3ba('0x1cd8')]=_0x17849f[_0xb1b3ba('0x20a0')]),_0x3988f5(_0x16a69a[_0xb1b3ba('0x11fa')][_0x17849f['id']]));}function _0x109dfa(_0xfbd9e3){const _0x29e78f=_0x1e3925;_0x16a69a[_0x29e78f('0x11fa')][_0x16a69a['agentInternal'][_0xfbd9e3[_0x29e78f('0x203b')]]]&&(_0x3c8d8a()['merge'](_0x16a69a[_0x29e78f('0x11fa')][_0x16a69a[_0x29e78f('0xa53')][_0xfbd9e3[_0x29e78f('0x203b')]]],_0x3c8d8a()['pick'](_0xfbd9e3,[_0x29e78f('0x172'),_0x29e78f('0x146b')])),_0x3c8d8a()['merge'](_0x16a69a['rpcAgents'][_0x16a69a['agentInternal'][_0xfbd9e3['destaccountcode']]],_0x3c8d8a()[_0x29e78f('0x2114')](_0xfbd9e3,[_0x29e78f('0x172'),_0x29e78f('0x146b')])));}function _0x31841d(_0x35979d){const _0x3f2e98=_0x1e3925;_0x16a69a[_0x3f2e98('0x11fa')][_0x16a69a[_0x3f2e98('0xa53')][_0x35979d[_0x3f2e98('0x203b')]]]&&(_0x16a69a[_0x3f2e98('0x11fa')][_0x16a69a['agentInternal'][_0x35979d[_0x3f2e98('0x203b')]]]=_0x3c8d8a()[_0x3f2e98('0x2797')](_0x16a69a[_0x3f2e98('0x11fa')][_0x16a69a[_0x3f2e98('0xa53')][_0x35979d['destaccountcode']]],[_0x3f2e98('0x172'),_0x3f2e98('0x146b')]),_0x16a69a[_0x3f2e98('0x61d')][_0x16a69a['agentInternal'][_0x35979d['destaccountcode']]]=_0x3c8d8a()[_0x3f2e98('0x2797')](_0x16a69a['rpcAgents'][_0x16a69a[_0x3f2e98('0xa53')][_0x35979d['destaccountcode']]],[_0x3f2e98('0x172'),'destconnectedlinenum']));}function _0x2913e6(_0x377800){const _0x10e897=_0x1e3925;return _0x18f542[_0x10e897('0x166f')]['logout']({'id':_0x377800['id'],'device':_0x10e897('0x12a7'),'agent_id':_0x377800['id'],'agent_name':_0x377800['name']})[_0x10e897('0x1964')][_0x10e897('0x173b')](function(){const _0x566839=_0x10e897;_0x1bca91[_0x566839('0xdfe')]({'title':'Agent\x20logout','msg':_0x377800[_0x566839('0x572')]+'\x20\x20properly\x20logout'}),_0x16a69a[_0x566839('0x11fa')][_0x377800['id']]&&(_0x16a69a[_0x566839('0x11fa')][_0x377800['id']][_0x566839('0xc7a')]=![]),_0x16a69a[_0x566839('0x61d')][_0x377800['id']]&&(_0x16a69a[_0x566839('0x61d')][_0x377800['id']][_0x566839('0xc7a')]=![]),_0x3753cc();})['catch'](function(_0x23ea97){const _0x16b2d1=_0x10e897;_0x1bca91[_0x16b2d1('0x15aa')]({'title':_0x23ea97['status']?_0x16b2d1('0x137')+_0x23ea97[_0x16b2d1('0x276f')]+_0x16b2d1('0x160c')+_0x23ea97[_0x16b2d1('0x2696')]:_0x16b2d1('0x1e36'),'msg':_0x23ea97[_0x16b2d1('0x1e07')]?JSON[_0x16b2d1('0x100b')](_0x23ea97[_0x16b2d1('0x1e07')]['message']):_0x23ea97['toString']()});});}function _0x2c326d(_0x273e44,_0x1ccb09){const _0x5c0da4=_0x1e3925;return _0x18f542[_0x5c0da4('0x166f')][_0x5c0da4('0x1751')]({'id':_0x273e44['id'],'type':_0x1ccb09})[_0x5c0da4('0x1964')][_0x5c0da4('0x173b')](function(_0x48da4e){const _0x1467fb=_0x5c0da4;_0x16a69a[_0x1467fb('0x11fa')][_0x273e44['id']]&&_0x3c8d8a()[_0x1467fb('0x9ef')](_0x16a69a['agents'][_0x273e44['id']],_0x3c8d8a()['pick'](_0x48da4e,_0x484d3e)),_0x16a69a['rpcAgents'][_0x273e44['id']]&&_0x3c8d8a()[_0x1467fb('0x9ef')](_0x16a69a[_0x1467fb('0x61d')][_0x273e44['id']],_0x3c8d8a()[_0x1467fb('0x2114')](_0x48da4e,_0x484d3e)),_0x3988f5(_0x16a69a[_0x1467fb('0x11fa')][_0x273e44['id']]);})['catch'](function(_0x592b12){const _0x55d70=_0x5c0da4;_0x1bca91[_0x55d70('0x15aa')]({'title':_0x592b12[_0x55d70('0x276f')]?'API:'+_0x592b12[_0x55d70('0x276f')]+_0x55d70('0x160c')+_0x592b12[_0x55d70('0x2696')]:_0x55d70('0x1e36'),'msg':_0x592b12[_0x55d70('0x1e07')]?JSON[_0x55d70('0x100b')](_0x592b12[_0x55d70('0x1e07')][_0x55d70('0x67f')]):_0x592b12[_0x55d70('0x1b75')]()});});}function _0x299630(_0x4d68fa){const _0x11c47b=_0x1e3925;return _0x18f542[_0x11c47b('0x166f')][_0x11c47b('0x9da')]({'id':_0x4d68fa['id']})[_0x11c47b('0x1964')]['then'](function(_0x3bab5b){const _0x2ee5eb=_0x11c47b;_0x16a69a[_0x2ee5eb('0x11fa')][_0x4d68fa['id']]&&_0x3c8d8a()[_0x2ee5eb('0x9ef')](_0x16a69a['agents'][_0x4d68fa['id']],_0x3c8d8a()[_0x2ee5eb('0x2114')](_0x3bab5b,_0x484d3e)),_0x16a69a[_0x2ee5eb('0x61d')][_0x4d68fa['id']]&&_0x3c8d8a()[_0x2ee5eb('0x9ef')](_0x16a69a['rpcAgents'][_0x4d68fa['id']],_0x3c8d8a()[_0x2ee5eb('0x2114')](_0x3bab5b,_0x484d3e)),_0x3988f5(_0x16a69a[_0x2ee5eb('0x11fa')][_0x4d68fa['id']]);})[_0x11c47b('0x103c')](function(_0x40c432){const _0x30d311=_0x11c47b;_0x1bca91[_0x30d311('0x15aa')]({'title':_0x40c432[_0x30d311('0x276f')]?_0x30d311('0x137')+_0x40c432['status']+'\x20-\x20'+_0x40c432[_0x30d311('0x2696')]:_0x30d311('0x1e36'),'msg':_0x40c432[_0x30d311('0x1e07')]?JSON[_0x30d311('0x100b')](_0x40c432[_0x30d311('0x1e07')][_0x30d311('0x67f')]):_0x40c432[_0x30d311('0x1b75')]()});});}function _0x3b3de7(_0x20b53a){const _0x1025e1=_0x1e3925;_0x2e93e1[_0x1025e1('0x1cb7')](_0x2e93e1['alert']()[_0x1025e1('0x226c')](!![])[_0x1025e1('0x20d6')](_0x1025e1('0x526'))[_0x1025e1('0xf8b')](_0x1025e1('0x22f0'))['ok']('Ok')[_0x1025e1('0x21de')](_0x20b53a));}function _0x594a54(_0x576b0d,_0x5eae6d){const _0x175d4f=_0x1e3925;_0x2e93e1[_0x175d4f('0x1cb7')]({'controller':_0x175d4f('0xfba'),'controllerAs':'vm','templateUrl':_0x66272d,'parent':angular[_0x175d4f('0xb6d')](_0x31a1cf[_0x175d4f('0x1a5')]),'targetEvent':_0x5eae6d,'clickOutsideToClose':!![],'locals':{'agent':_0x576b0d,'agents':[],'channel':_0x175d4f('0x1a8f'),'direction':'inbound','crudPermissions':_0x16a69a[_0x175d4f('0x1dc1')]}});}function _0x142ba6(_0x207cb0){const _0x31a83b=_0x1e3925;return _0x207cb0==='pause'||_0x207cb0===_0x31a83b('0xb3e');}function _0x57cbe5(_0xfe7ea3){const _0x2d0acd=_0x1e3925;return _0xfe7ea3===_0x2d0acd('0x1751');}function _0xf02fd5(_0x2adc5){const _0x3bb990=_0x1e3925;return _0x2adc5===_0x3bb990('0xb3e');}function _0x5f2f87(_0xa514e9){const _0x1fa96e=_0x1e3925;return _0xa514e9===_0x1fa96e('0x23b')||_0xa514e9===_0x1fa96e('0x1b77')||_0xa514e9===_0x1fa96e('0x1d8e')||_0xa514e9===_0x1fa96e('0x263b')||_0x3c8d8a()['isNil'](_0xa514e9);}function _0x2b9035(_0x11e7da,_0x2f05c9){const _0x2ba2a3=_0x1e3925;if(_0x2f05c9==='voice'){if(_0x11e7da[_0x2f05c9+_0x2ba2a3('0xef8')]!==_0x2ba2a3('0x23b'))return _0x11e7da[_0x2f05c9+_0x2ba2a3('0xef8')];if(_0x11e7da[_0x2f05c9+_0x2ba2a3('0x2408')])return _0x11e7da[_0x2f05c9+_0x2ba2a3('0xef8')]=_0x2ba2a3('0x1751'),'pause';return _0x2ba2a3('0x23b');}else{if(_0x11e7da[_0x2f05c9+'Pause'])return _0x11e7da[_0x2f05c9+_0x2ba2a3('0xef8')]=_0x2ba2a3('0x1751'),_0x2ba2a3('0x1751');return _0x11e7da[_0x2f05c9+_0x2ba2a3('0xef8')];}}function _0x3988f5(_0x46e869){const _0x499519=_0x1e3925;let _0x3147a3='unknown';if(_0x3c8d8a()[_0x499519('0x3ff')]([_0x2b9035(_0x46e869,_0x499519('0x21a8')),_0x2b9035(_0x46e869,'chat'),_0x2b9035(_0x46e869,_0x499519('0x108a')),_0x2b9035(_0x46e869,_0x499519('0xab2')),_0x2b9035(_0x46e869,'sms'),_0x2b9035(_0x46e869,_0x499519('0x245')),_0x2b9035(_0x46e869,'fax')],_0x142ba6))_0x3147a3='pause';else{if(_0x3c8d8a()['some']([_0x2b9035(_0x46e869,_0x499519('0x21a8')),_0x2b9035(_0x46e869,'chat'),_0x2b9035(_0x46e869,'mail'),_0x2b9035(_0x46e869,_0x499519('0xab2')),_0x2b9035(_0x46e869,_0x499519('0x1a8f')),_0x2b9035(_0x46e869,'whatsapp'),_0x2b9035(_0x46e869,'fax')],_0x142ba6))_0x3147a3='*pause';else _0x3c8d8a()['every']([_0x2b9035(_0x46e869,_0x499519('0x21a8')),_0x2b9035(_0x46e869,'chat'),_0x2b9035(_0x46e869,'mail'),_0x2b9035(_0x46e869,_0x499519('0xab2')),_0x2b9035(_0x46e869,_0x499519('0x1a8f')),_0x2b9035(_0x46e869,_0x499519('0x245')),_0x2b9035(_0x46e869,_0x499519('0x16d'))],_0x5f2f87)?_0x3147a3=_0x499519('0x23b'):_0x3147a3=_0x499519('0xe2b');}_0x46e869[_0x499519('0xd7e')]!==_0x3147a3&&(_0x46e869[_0x499519('0xd7e')]=_0x3147a3,_0x46e869[_0x499519('0xb9c')]?(_0x46e869[_0x499519('0xb9c')]=![],_0x46e869[_0x499519('0x1cd8')]=_0x142ba6(_0x3147a3)?_0x3c8d8a()['toNumber'](_0x156524()(_0x46e869['lastPauseAt'])[_0x499519('0xddc')]('x')):_0x3c8d8a()[_0x499519('0x18be')]([_0x46e869['voiceStatusTime'],_0x46e869[_0x499519('0x2816')],_0x46e869[_0x499519('0x22a')],_0x46e869[_0x499519('0x2176')],_0x46e869[_0x499519('0x15b6')],_0x46e869[_0x499519('0x205')],_0x46e869[_0x499519('0xbc9')]])):_0x46e869[_0x499519('0x1cd8')]=_0x3c8d8a()[_0x499519('0x1acd')](_0x156524()()[_0x499519('0xddc')]('x')));}function _0x444092(_0x29872e){const _0x2fa479=_0x1e3925,_0x5660da=_0x3c8d8a()[_0x2fa479('0x17b2')](_0x16a69a['query'][_0x2fa479('0x144a')],'-')?_0x2fa479('0x231d'):_0x2fa479('0xcc1');return _0x3c8d8a()[_0x2fa479('0x1d16')](_0x29872e,[_0x16a69a[_0x2fa479('0xc49')][_0x2fa479('0x144a')][_0x2fa479('0x166c')]('-','')],[_0x5660da]);}function _0x37daf4(){const _0x5e75fa=_0x1e3925;_0x23acd2&&(_0x192253[_0x5e75fa('0x1e1f')](_0x23acd2),_0x23acd2=null);}function _0x473c39(_0x1b25ee,_0xce916f){const _0xfd47f=_0x1e3925;return _0x18f542[_0xfd47f('0x166f')][_0xfd47f('0x1842')]({'id':_0x1b25ee['id']},{'screenrecording':_0xce916f})[_0xfd47f('0x1964')]['catch'](function(_0x327770){const _0x5b2955=_0xfd47f;_0x1bca91[_0x5b2955('0x15aa')]({'title':_0x327770[_0x5b2955('0x276f')]?'API:'+_0x327770[_0x5b2955('0x276f')]+_0x5b2955('0x160c')+_0x327770['statusText']:_0x5b2955('0x2134'),'msg':_0x327770['data']?JSON[_0x5b2955('0x100b')](_0x327770[_0x5b2955('0x1e07')][_0x5b2955('0x67f')]):_0x327770[_0x5b2955('0x1b75')]()});});}_0x172aa3[_0x1e3925('0xbf6')](_0x1e3925('0x16d2'),function(){const _0x1e4dcc=_0x1e3925;_0x30833e[_0x1e4dcc('0x251c')](_0x1e4dcc('0x1f4c')),_0x30833e[_0x1e4dcc('0x251c')](_0x1e4dcc('0x2048')),_0x30833e[_0x1e4dcc('0x251c')](_0x1e4dcc('0x1bd5')),_0x30833e['removeAllListeners'](_0x1e4dcc('0xa73')),_0x37daf4();});}const _0x144987=_0x4e3e4f,_0x576830=_0x21a6a1['p']+_0x566993('0x13ed'),_0x44f26f=_0x21a6a1['p']+_0x566993('0x28f');_0x2bd2b1[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$q','$document',_0x566993('0x1b13'),_0x566993('0xeae'),_0x566993('0x2156'),'api',_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600')];function _0x2bd2b1(_0x43b410,_0x4bc1d5,_0x3bc8ad,_0x5638a8,_0x5eff7b,_0x37a2db,_0x2b7cd9,_0x2474a1,_0xd43a49,_0x47d048,_0x47e84d,_0xb7405f,_0x18cdf5,_0x190183){const _0x54a695=_0x566993,_0x35ba2e=this,_0x323382=[_0x54a695('0x34e'),'available',_0x54a695('0x1b68'),_0x54a695('0x157c'),'pTalking',_0x54a695('0x203d'),_0x54a695('0x67f'),_0x54a695('0x3ba'),'dialMethod',_0x54a695('0x183a'),_0x54a695('0x1898')];_0x35ba2e[_0x54a695('0x155f')]=_0x190183[_0x54a695('0x14d4')](),_0x35ba2e[_0x54a695('0x1a2f')]=_0x2b7cd9[_0x54a695('0x1a2f')]?_0x2b7cd9[_0x54a695('0x1a2f')]:0x0,_0x35ba2e[_0x54a695('0xeae')]=_0x2b7cd9?_0x3c8d8a()[_0x54a695('0x128')](_0x2b7cd9[_0x54a695('0x6aa')]?_0x2b7cd9[_0x54a695('0x6aa')]:[],'id'):{},_0x35ba2e[_0x54a695('0x2156')]=_0x2474a1?_0x3c8d8a()[_0x54a695('0x128')](_0x2474a1[_0x54a695('0x6aa')]?_0x2474a1[_0x54a695('0x6aa')]:[],'id'):{},_0x35ba2e[_0x54a695('0x257b')]=_0xb7405f,_0x35ba2e[_0x54a695('0x170e')]=_0x18cdf5&&_0x18cdf5[_0x54a695('0x1a2f')]==0x1?_0x18cdf5[_0x54a695('0x6aa')][0x0]:null,_0x35ba2e['crudPermissions']=_0x190183['parseCrudPermissions'](_0x35ba2e[_0x54a695('0x170e')]?_0x35ba2e[_0x54a695('0x170e')]['crudPermissions']:null);_0x190183['hasRole'](_0x54a695('0x79b'))?_0x35ba2e[_0x54a695('0xc49')]={'type':_0x54a695('0x1755'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x35ba2e[_0x54a695('0xc49')]={'id':_0x35ba2e[_0x54a695('0x155f')]['id'],'channel':_0x54a695('0x1a8f'),'type':'inbound','sort':_0x54a695('0x1769'),'limit':0xa,'page':0x1};_0x35ba2e[_0x54a695('0xdfe')]=_0x578057,_0x35ba2e[_0x54a695('0x115e')]=_0x47fb16,_0x35ba2e[_0x54a695('0x25c6')]=_0x2c7fc7,_0x35ba2e[_0x54a695('0x24f8')]=_0x2acd31,_0x35ba2e['updateQueue']=_0x40154f,_0x35ba2e[_0x54a695('0x689')]=_0x560c42,_0x35ba2e[_0x54a695('0x6f6')]=_0x545245,_0x35ba2e[_0x54a695('0xc12')]=_0x2e99b9,_0x35ba2e[_0x54a695('0x255')]=_0x3429ad,_0x35ba2e['onLogin']=_0x26f10c,_0x35ba2e[_0x54a695('0x1e70')]=_0x3a2159,_0x35ba2e[_0x54a695('0x2444')]=_0x215a65,_0x35ba2e[_0x54a695('0x144a')]=[],_0x3c8d8a()['forIn'](_0x35ba2e[_0x54a695('0xeae')],function(_0x2a73f3){const _0x27396b=_0x54a695;_0x35ba2e[_0x27396b('0x144a')][_0x27396b('0x18bb')](_0x2a73f3['id']);}),_0x47d048['on']('sms_queue:save',_0x35ba2e[_0x54a695('0x689')]),_0x47d048['on'](_0x54a695('0x2824'),_0x35ba2e[_0x54a695('0x6f6')]),_0x47d048['on'](_0x54a695('0x1cc5'),_0x35ba2e[_0x54a695('0xc12')]),_0x47d048['on'](_0x54a695('0x2048'),_0x35ba2e[_0x54a695('0x255')]),_0x47d048['on'](_0x54a695('0x22b7'),_0x35ba2e[_0x54a695('0x1e70')]),_0x47d048['on'](_0x54a695('0x1379'),_0x35ba2e[_0x54a695('0x5')]);function _0x215a65(){const _0x46f97a=_0x54a695,_0x4eaba2=[];return _0x3c8d8a()[_0x46f97a('0x33d')](_0x35ba2e[_0x46f97a('0xeae')],function(_0x4c2178,_0x41d5b4){const _0x6fe10d=_0x46f97a;_0x4c2178[_0x6fe10d('0x1898')]=0x0,_0x4c2178[_0x6fe10d('0x1307')]=0x0,_0x35ba2e['queues'][_0x41d5b4][_0x6fe10d('0x11fa')]={},_0x4eaba2[_0x6fe10d('0x18bb')](_0xd43a49[_0x6fe10d('0xe99')][_0x6fe10d('0x230a')]({'id':_0x41d5b4})[_0x6fe10d('0x1964')]),_0x35ba2e[_0x6fe10d('0x2156')][_0x41d5b4]&&_0x3c8d8a()[_0x6fe10d('0x9ef')](_0x4c2178,_0x3c8d8a()[_0x6fe10d('0x2114')](_0x35ba2e[_0x6fe10d('0x2156')][_0x41d5b4],_0x323382));}),_0x5638a8[_0x46f97a('0x27c8')](_0x4eaba2)[_0x46f97a('0x173b')](function(_0x526527){const _0x41d133=_0x46f97a;for(let _0x21aff3=0x0;_0x21aff3<_0x526527[_0x41d133('0x543')];_0x21aff3+=0x1){for(let _0x59c7e2=0x0;_0x59c7e2<_0x526527[_0x21aff3][_0x41d133('0x6aa')][_0x41d133('0x543')];_0x59c7e2++){_0x526527[_0x21aff3]['rows'][_0x59c7e2][_0x41d133('0x1898')]&&_0x35ba2e[_0x41d133('0xeae')][_0x526527[_0x21aff3][_0x41d133('0x6aa')][_0x59c7e2][_0x41d133('0x765')]][_0x41d133('0x1898')]++,_0x35ba2e['queues'][_0x526527[_0x21aff3][_0x41d133('0x6aa')][_0x59c7e2][_0x41d133('0x765')]][_0x41d133('0x1307')]++,_0x35ba2e[_0x41d133('0xeae')][_0x526527[_0x21aff3][_0x41d133('0x6aa')][_0x59c7e2][_0x41d133('0x765')]][_0x41d133('0x11fa')][_0x526527[_0x21aff3][_0x41d133('0x6aa')][_0x59c7e2][_0x41d133('0x181c')]]=_0x526527[_0x21aff3][_0x41d133('0x6aa')][_0x59c7e2][_0x41d133('0x765')];}}})['catch'](function(_0x79ba6c){console['error'](_0x79ba6c);});}function _0x560c42(_0x48318c){const _0x1ed1aa=_0x54a695;_0x35ba2e['queues'][_0x48318c['id']]&&_0x3c8d8a()[_0x1ed1aa('0x9ef')](_0x35ba2e[_0x1ed1aa('0xeae')][_0x48318c['id']],_0x3c8d8a()[_0x1ed1aa('0x2114')](_0x48318c,_0x323382));}function _0x545245(_0x3a73b0){const _0x5a3299=_0x54a695;_0x35ba2e[_0x5a3299('0xeae')][_0x3a73b0['SmsQueueId']]&&_0x35ba2e[_0x5a3299('0xeae')][_0x3a73b0[_0x5a3299('0x765')]]['loggedInDb']++;}function _0x2e99b9(_0x51e599){const _0xe4a63b=_0x54a695;_0x35ba2e[_0xe4a63b('0xeae')][_0x51e599[_0xe4a63b('0x765')]]&&_0x35ba2e[_0xe4a63b('0xeae')][_0x51e599[_0xe4a63b('0x765')]][_0xe4a63b('0x1307')]--;}function _0x3429ad(_0x3d81a7){const _0x37d8c0=_0x54a695;console[_0x37d8c0('0xe37')](_0x37d8c0('0x255'),_0x3d81a7);if(_0x3d81a7[_0x37d8c0('0x67c')])_0x3c8d8a()[_0x37d8c0('0x33d')](_0x35ba2e['queues'],function(_0x5dc8c9){const _0x12e76f=_0x37d8c0;_0x5dc8c9[_0x12e76f('0x11fa')][_0x3d81a7['id']]&&(_0x5dc8c9[_0x12e76f('0x1898')]+=0x1,console[_0x12e76f('0xe37')](_0x12e76f('0x1751')));});else!_0x3d81a7[_0x37d8c0('0x67c')]&&_0x3c8d8a()[_0x37d8c0('0x33d')](_0x35ba2e[_0x37d8c0('0xeae')],function(_0x4d56e0){const _0x11ff3f=_0x37d8c0;_0x4d56e0[_0x11ff3f('0x11fa')][_0x3d81a7['id']]&&(_0x4d56e0[_0x11ff3f('0x1898')]>0x0&&(_0x4d56e0[_0x11ff3f('0x1898')]-=0x1,console[_0x11ff3f('0xe37')]('unpause')));});}function _0x26f10c(_0x3e3e0e){const _0x76e815=_0x54a695;console['log'](_0x76e815('0x1e15'),_0x3e3e0e),_0x35ba2e['queues'][_0x3e3e0e[_0x76e815('0x765')]]&&(_0x35ba2e['queues'][_0x3e3e0e['SmsQueueId']][_0x76e815('0x1307')]+=0x1,_0x35ba2e['queues'][_0x3e3e0e[_0x76e815('0x765')]]['agents'][_0x3e3e0e[_0x76e815('0x181c')]]=_0x3e3e0e[_0x76e815('0x765')]);}function _0x3a2159(_0x228dd9){const _0x467757=_0x54a695;console['log'](_0x467757('0x1e70'),_0x228dd9),_0x35ba2e[_0x467757('0xeae')][_0x228dd9['SmsQueueId']]&&_0x35ba2e['queues'][_0x228dd9['SmsQueueId']][_0x467757('0x1307')]>0x0&&(_0x35ba2e[_0x467757('0xeae')][_0x228dd9['SmsQueueId']][_0x467757('0x1307')]-=0x1,delete _0x35ba2e[_0x467757('0xeae')][_0x228dd9[_0x467757('0x765')]][_0x467757('0x11fa')][_0x228dd9[_0x467757('0x181c')]]);}let _0x236138=!![],_0x11e69e=0x1;_0x43b410[_0x54a695('0x1bdb')](_0x54a695('0x157b'),function(_0x26c33b,_0x446c41){const _0x4c21af=_0x54a695;_0x236138?_0x4bc1d5(function(){_0x236138=![];}):(!_0x446c41&&(_0x11e69e=_0x35ba2e[_0x4c21af('0xc49')][_0x4c21af('0x182e')]),_0x26c33b!==_0x446c41&&(_0x35ba2e[_0x4c21af('0xc49')]['page']=0x1),!_0x26c33b&&(_0x35ba2e[_0x4c21af('0xc49')][_0x4c21af('0x182e')]=_0x11e69e),_0x35ba2e[_0x4c21af('0x115e')]());});function _0x578057(_0x3d8600){const _0x5a34cf=_0x54a695;_0x35ba2e[_0x5a34cf('0x1a2f')]=_0x3d8600['count'],_0x35ba2e[_0x5a34cf('0xeae')]=_0x3d8600?_0x3c8d8a()[_0x5a34cf('0x128')](_0x3d8600['rows']?_0x3d8600[_0x5a34cf('0x6aa')]:[],'id'):{};if(_0x3d8600[_0x5a34cf('0x6aa')]){_0x35ba2e['order']=[];for(let _0x5572b5=0x0;_0x5572b5<_0x3d8600[_0x5a34cf('0x6aa')]['length'];_0x5572b5++){_0x35ba2e[_0x5a34cf('0x144a')][_0x5a34cf('0x18bb')](_0x3d8600[_0x5a34cf('0x6aa')][_0x5572b5]['id']);}}_0x215a65();}function _0x47fb16(){const _0x4f0c28=_0x54a695;_0x35ba2e[_0x4f0c28('0xc49')][_0x4f0c28('0x17f0')]=(_0x35ba2e['query'][_0x4f0c28('0x182e')]-0x1)*_0x35ba2e[_0x4f0c28('0xc49')][_0x4f0c28('0x3e')],_0x190183[_0x4f0c28('0x1b4e')](_0x4f0c28('0x79b'))?_0x35ba2e[_0x4f0c28('0x2219')]=_0xd43a49['smsQueue']['get'](_0x35ba2e[_0x4f0c28('0xc49')],_0x578057)[_0x4f0c28('0x1964')]:(_0x35ba2e[_0x4f0c28('0xc49')]['id']=_0x35ba2e['userProfile']['id'],_0x35ba2e['query'][_0x4f0c28('0x17c9')]=_0x4f0c28('0x2d8'),_0x35ba2e[_0x4f0c28('0x2219')]=_0xd43a49[_0x4f0c28('0x257b')]['getResources'](_0x35ba2e['query'],_0x578057)[_0x4f0c28('0x1964')]);}function _0x2c7fc7(_0x2306fd,_0x363543){const _0x2f2313=_0x54a695;_0x3bc8ad[_0x2f2313('0x1cb7')]({'controller':_0x2f2313('0x1e5b'),'controllerAs':'vm','templateUrl':_0x576830,'parent':angular[_0x2f2313('0xb6d')](_0x5eff7b[_0x2f2313('0x1a5')]),'targetEvent':_0x2306fd,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x363543,'smsQueues':_0x3c8d8a()['values'](_0x35ba2e[_0x2f2313('0xeae')]),'license':null,'setting':null,'crudPermissions':_0x35ba2e['crudPermissions']}});}function _0x2acd31(_0x3e4f10,_0x27627b){const _0x456ce2=_0x54a695;_0x3bc8ad[_0x456ce2('0x1cb7')]({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x44f26f,'parent':angular[_0x456ce2('0xb6d')](_0x5eff7b[_0x456ce2('0x1a5')]),'targetEvent':_0x3e4f10,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x27627b,'smsQueues':_0x35ba2e['queues']?_0x35ba2e[_0x456ce2('0xeae')][_0x456ce2('0x6aa')]:[],'realtime':![],'crudPermissions':_0x35ba2e['crudPermissions']}});}function _0x40154f(_0xbdcb15){const _0x29ed5c=_0x54a695;return _0xd43a49['smsQueue'][_0x29ed5c('0x1842')](_0xbdcb15)['$promise']['then'](function(){const _0x25c3ae=_0x29ed5c;_0x47e84d[_0x25c3ae('0xdfe')]({'title':_0x25c3ae('0x22bc'),'msg':_0xbdcb15['name']?_0xbdcb15[_0x25c3ae('0x10ad')]+_0x25c3ae('0x1fd6'):''});})['catch'](function(_0x5547ae){const _0xbebd9b=_0x29ed5c;_0x47e84d[_0xbebd9b('0x15aa')]({'title':'Error\x20creating\x20queue!','msg':_0x5547ae[_0xbebd9b('0x67f')]});});}_0x43b410[_0x54a695('0xbf6')](_0x54a695('0x16d2'),function(){const _0x337300=_0x54a695;_0x47d048[_0x337300('0x251c')](_0x337300('0x3dc')),_0x47d048['removeAllListeners'](_0x337300('0x1cc5')),_0x47d048[_0x337300('0x251c')](_0x337300('0x2824')),_0x47d048[_0x337300('0x251c')](_0x337300('0x2048')),_0x47d048[_0x337300('0x251c')]('userVoiceQueue:remove'),_0x47d048[_0x337300('0x251c')]('userVoiceQueue:save');});}const _0x53f640=_0x2bd2b1;function _0x426b4f(){const _0x15e077=_0x566993;return{'status':{'registered':_0x15e077('0xdcf'),'unregistered':_0x15e077('0xc5a'),'lagged':_0x15e077('0xc5a'),'reachable':_0x15e077('0xdcf'),'unreachable':_0x15e077('0xc5a'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x15e077('0xd0a'),'not_inuse':_0x15e077('0x1dd'),'inuse':_0x15e077('0x2205'),'busy':'red-300-fg\x20icon-phone-locked','invalid':_0x15e077('0xd0a'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x15e077('0x4da'),'ringinuse':_0x15e077('0x4da'),'onhold':_0x15e077('0x244d')},'channelStatus':{'ring':_0x15e077('0x4da'),'up':_0x15e077('0x6ed'),'hangup':_0x15e077('0x1797')},'channelStatusOut':{'ring':_0x15e077('0x1766'),'up':_0x15e077('0x6ed'),'hangup':_0x15e077('0x1797')}};}const _0x455c14=_0x426b4f;_0x2ac572['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x2fc')];function _0x2ac572(_0x3796,_0x117cb2,_0x6a120b){const _0x29ef65=_0x566993,_0x4e29dd=this;_0x6a120b[_0x29ef65('0x1878')](),_0x6a120b[_0x29ef65('0x45f')](),_0x4e29dd[_0x29ef65('0xd5f')]=0x0;switch(_0x117cb2['current'][_0x29ef65('0x10ad')]){case'app.sms.realtime.agents':_0x4e29dd[_0x29ef65('0xd5f')]=0x0;break;case _0x29ef65('0x1cfb'):_0x4e29dd[_0x29ef65('0xd5f')]=0x1;break;default:_0x4e29dd[_0x29ef65('0xd5f')]=0x0,_0x117cb2['go'](_0x29ef65('0x8d'));}_0x3796[_0x29ef65('0x1bdb')](_0x29ef65('0x1a1'),function(_0x1d6029,_0xbe0087){const _0x12a52a=_0x29ef65;if(_0x1d6029!==_0xbe0087)switch(_0x1d6029){case 0x0:_0x117cb2['go'](_0x12a52a('0x8d'));break;case 0x1:_0x117cb2['go'](_0x12a52a('0x1cfb'));break;default:_0x117cb2['go'](_0x12a52a('0x8d'));}});}const _0x54f3f6=_0x2ac572;_0x243788[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x243788(_0xf2f860){const _0x3df8c0=_0x566993;_0xf2f860[_0x3df8c0('0x1a49')](_0x3df8c0('0xd9f'),{'url':_0x3df8c0('0x213'),'views':{'content@app':{'templateUrl':_0xad577b,'controller':'SmsRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0x3df8c0('0x2401'),'Auth',function(_0x467ed4,_0x34613b){const _0x125a5c=_0x3df8c0;return _0x34613b[_0x125a5c('0x1b4e')]('admin')?null:_0x467ed4[_0x125a5c('0x155b')](_0x125a5c('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x34613b[_0x125a5c('0x14d4')]()[_0x125a5c('0x1946')]});}],'userProfileSection':[_0x3df8c0('0x2401'),'Auth',function(_0x276eaa,_0x524045){const _0x49dc7e=_0x3df8c0;return _0x524045[_0x49dc7e('0x1b4e')](_0x49dc7e('0x79b'))?null:_0x276eaa[_0x49dc7e('0x155b')](_0x49dc7e('0x40'),{'fields':_0x49dc7e('0x1348'),'userProfileId':_0x524045[_0x49dc7e('0x14d4')]()['userProfileId'],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})['state']('app.sms.realtime.agents',{'url':_0x3df8c0('0x1943'),'controller':_0x3df8c0('0x1c38'),'templateUrl':_0x13e1ea,'resolve':{'pauses':[_0x3df8c0('0x2401'),function(_0x464803){const _0x3bccec=_0x3df8c0;return _0x464803[_0x3bccec('0x155b')]('pause@get',{'nolimit':!![]});}],'agents':[_0x3df8c0('0x2401'),_0x3df8c0('0x1600'),function(_0x45b803,_0x5ae29a){const _0x235063=_0x3df8c0;return _0x5ae29a['hasRole'](_0x235063('0x79b'))?_0x45b803[_0x235063('0x155b')](_0x235063('0x15e6'),{'fields':_0x235063('0xd6b'),'role':_0x235063('0x7b0'),'sort':'fullname','nolimit':!![]}):_0x45b803['resolve'](_0x235063('0x14b3'),{'id':_0x5ae29a['getCurrentUser']()[_0x235063('0x1946')],'section':_0x235063('0x1272'),'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':_0x235063('0x572'),'nolimit':!![]});}],'userProfile':[_0x3df8c0('0x2401'),_0x3df8c0('0x1600'),function(_0x54a482,_0x4a9d53){const _0x36e171=_0x3df8c0;return _0x4a9d53[_0x36e171('0x1b4e')](_0x36e171('0x79b'))?null:_0x54a482[_0x36e171('0x155b')]('userProfile@get',{'fields':_0x36e171('0x19dd'),'id':_0x4a9d53[_0x36e171('0x14d4')]()[_0x36e171('0x1946')]});}],'userProfileSection':[_0x3df8c0('0x2401'),_0x3df8c0('0x1600'),function(_0x5a885e,_0x1fe6eb){const _0x3167ba=_0x3df8c0;return _0x1fe6eb[_0x3167ba('0x1b4e')](_0x3167ba('0x79b'))?null:_0x5a885e[_0x3167ba('0x155b')](_0x3167ba('0x40'),{'fields':_0x3167ba('0x1348'),'userProfileId':_0x1fe6eb[_0x3167ba('0x14d4')]()[_0x3167ba('0x1946')],'sectionId':0xca});}],'rpcAgents':[_0x3df8c0('0x2401'),function(_0x40226f){const _0xa00706=_0x3df8c0;return _0x40226f[_0xa00706('0x155b')](_0xa00706('0x58'));}]},'authenticate':!![],'permissionId':0x2c6})[_0x3df8c0('0x1a49')](_0x3df8c0('0x1cfb'),{'url':_0x3df8c0('0x1bb0'),'controller':_0x3df8c0('0x664'),'templateUrl':_0x1c2010,'resolve':{'queues':['apiResolver',_0x3df8c0('0x1600'),function(_0x34c160,_0x5376dd){const _0x1f9248=_0x3df8c0;return _0x5376dd['hasRole'](_0x1f9248('0x79b'))?_0x34c160[_0x1f9248('0x155b')]('smsQueue@get',{'type':'inbound','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x34c160[_0x1f9248('0x155b')]('userProfile@getResources',{'id':_0x5376dd[_0x1f9248('0x14d4')]()[_0x1f9248('0x1946')],'section':_0x1f9248('0x2d8'),'channel':'sms','type':_0x1f9248('0x1755'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':[_0x3df8c0('0x2401'),_0x3df8c0('0x1600'),function(_0x599281,_0x56705a){const _0x449d44=_0x3df8c0;return _0x56705a['hasRole'](_0x449d44('0x79b'))?null:_0x599281[_0x449d44('0x155b')](_0x449d44('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x56705a[_0x449d44('0x14d4')]()[_0x449d44('0x1946')]});}],'userProfileSection':[_0x3df8c0('0x2401'),_0x3df8c0('0x1600'),function(_0xaded0,_0x34feba){const _0x6be4f0=_0x3df8c0;return _0x34feba['hasRole'](_0x6be4f0('0x79b'))?null:_0xaded0[_0x6be4f0('0x155b')](_0x6be4f0('0x40'),{'fields':_0x6be4f0('0x1348'),'userProfileId':_0x34feba[_0x6be4f0('0x14d4')]()[_0x6be4f0('0x1946')],'sectionId':0x2bd});}],'rpcQueues':[_0x3df8c0('0x2401'),function(_0x2806ba){const _0x3b85cc=_0x3df8c0;return _0x2806ba[_0x3b85cc('0x155b')](_0x3b85cc('0x26a4'));}]},'authenticate':!![],'permissionId':0x2c6});}angular[_0x566993('0x22c4')](_0x566993('0xd9f'),[])[_0x566993('0xea9')](_0x243788)[_0x566993('0x1e65')](_0x566993('0x4b6'),_0x144987)[_0x566993('0x1e65')]('QueuesSmsRealtimeController',_0x53f640)['factory'](_0x566993('0x1bf5'),_0x455c14)['controller']('SmsRealtimeController',_0x54f3f6);const _0x1085ed=_0x21a6a1['p']+_0x566993('0x1f36'),_0x34a8e7=_0x21a6a1['p']+_0x566993('0xb79'),_0x5f2e4d=_0x21a6a1['p']+'src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts.html',_0x35538a=_0x21a6a1['p']+_0x566993('0x7e8');_0x2f4f86[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),'smsAccounts',_0x566993('0x1e37'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x2f4f86(_0x51669c,_0x2b9668,_0x5b83d0,_0x58b0f1,_0x1fdc9d,_0x7f995a,_0x1be609,_0x3cfe26,_0x2ceecd,_0x348d0f,_0x291afd,_0x22b5f0,_0x560aa4,_0x2980bb){const _0x1d5416=_0x566993,_0x212040=this;_0x212040['currentUser']=_0x291afd[_0x1d5416('0x14d4')](),_0x212040[_0x1d5416('0x1d4a')]=[],_0x212040[_0x1d5416('0x251')]=_0x560aa4,_0x212040[_0x1d5416('0x1a29')]=_0x22b5f0,_0x212040[_0x1d5416('0x1dc1')]=_0x2980bb,_0x212040[_0x1d5416('0xb0')]={},_0x212040['passwordPattern']=_0x212040[_0x1d5416('0x251')]&&_0x212040[_0x1d5416('0x251')][_0x1d5416('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x212040[_0x1d5416('0x20d6')]='SMS.EDIT_SMSACCOUNT',_0x212040[_0x1d5416('0x1e37')]=angular[_0x1d5416('0x2e3')](_0x2ceecd),_0x212040[_0x1d5416('0x130a')]=_0x3cfe26,_0x212040[_0x1d5416('0x19b')]=![];!_0x212040['smsAccount']&&(_0x212040[_0x1d5416('0x1e37')]={'remote':_0x5b83d0[_0x1d5416('0x375')]()+'://'+_0x5b83d0['host']()+(_0x5b83d0['port']()?':'+_0x5b83d0[_0x1d5416('0xe0d')]():''),'type':_0x1d5416('0x8d2'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x212040['title']=_0x1d5416('0x260a'),_0x212040[_0x1d5416('0x19b')]=!![]);_0x2b9668[_0x1d5416('0x197a')]['id']&&(_0x212040['smsAccount'][_0x1d5416('0x23b1')]=_0x2b9668[_0x1d5416('0x197a')]['id']);_0x212040[_0x1d5416('0x162a')]=_0x377e31,_0x212040[_0x1d5416('0x5f9')]=_0x4f5a7c,_0x212040[_0x1d5416('0x23e5')]=_0x3bd618,_0x212040[_0x1d5416('0x11ae')]=_0x1e12da,_0x212040[_0x1d5416('0x18e2')]=_0x56f650,_0x291afd[_0x1d5416('0x1b4e')](_0x1d5416('0x79b'))?_0x348d0f[_0x1d5416('0xbb3')]['get']({'fields':_0x1d5416('0xd52'),'sort':'name'})[_0x1d5416('0x1964')][_0x1d5416('0x173b')](function(_0x294c7c){const _0x4356b5=_0x1d5416;_0x212040[_0x4356b5('0x9e8')]=_0x294c7c[_0x4356b5('0x6aa')]||[];})['catch'](function(_0x141cdd){const _0x46bdab=_0x1d5416;_0x1be609[_0x46bdab('0x15aa')]({'title':_0x141cdd[_0x46bdab('0x276f')]?'API:'+_0x141cdd['status']+_0x46bdab('0x160c')+_0x141cdd['statusText']:_0x46bdab('0x1d5c'),'msg':_0x141cdd[_0x46bdab('0x1e07')]?JSON[_0x46bdab('0x100b')](_0x141cdd[_0x46bdab('0x1e07')]):_0x141cdd['toString']()});}):_0x348d0f[_0x1d5416('0xbb3')][_0x1d5416('0x1d97')]({'fields':'id,name','sort':_0x1d5416('0x10ad')})['$promise'][_0x1d5416('0x173b')](function(_0x2a68f4){const _0x161548=_0x1d5416;_0x212040[_0x161548('0x9e8')]=_0x2a68f4[_0x161548('0x6aa')]||[];})[_0x1d5416('0x173b')](function(){const _0x949f5=_0x1d5416;return _0x348d0f['userProfileSection'][_0x949f5('0x1d97')]({'userProfileId':_0x212040[_0x949f5('0x155f')][_0x949f5('0x1946')],'sectionId':0x12d})[_0x949f5('0x1964')];})[_0x1d5416('0x173b')](function(_0x4a6157){const _0x4f7bdc=_0x1d5416,_0xb12fd3=_0x4a6157&&_0x4a6157[_0x4f7bdc('0x6aa')]?_0x4a6157[_0x4f7bdc('0x6aa')][0x0]:null;if(!_0xb12fd3){const _0x1d9804=[];let _0x3906a4=null;_0x212040[_0x4f7bdc('0x1e37')]&&(_0x3906a4=_0x3c8d8a()['find'](_0x212040[_0x4f7bdc('0x9e8')],{'id':Number(_0x212040[_0x4f7bdc('0x1e37')]['ListId'])}));for(let _0x29a8f2=0x0;_0x29a8f2<_0x212040[_0x4f7bdc('0x9e8')][_0x4f7bdc('0x543')];_0x29a8f2++){_0x3906a4&&_0x212040[_0x4f7bdc('0x9e8')][_0x29a8f2]['id']===_0x3906a4['id']&&(_0x212040[_0x4f7bdc('0x9e8')][_0x29a8f2][_0x4f7bdc('0x268e')]=![],_0x1d9804[_0x4f7bdc('0x18bb')](_0x212040['lists'][_0x29a8f2]));}_0x212040[_0x4f7bdc('0x9e8')]=_0x1d9804;}else{if(!_0xb12fd3['autoAssociation'])return _0x348d0f[_0x4f7bdc('0xda9')][_0x4f7bdc('0x1d97')]({'sectionId':_0xb12fd3['id']})[_0x4f7bdc('0x1964')]['then'](function(_0x2f8c6b){const _0x3327d3=_0x4f7bdc,_0x41d708=_0x3c8d8a()[_0x3327d3('0x8a2')](_0x2f8c6b[_0x3327d3('0x6aa')],function(_0x5598f9){const _0x57aa42=_0x3327d3;return _0x3c8d8a()['find'](_0x212040['lists'],{'id':_0x5598f9[_0x57aa42('0x1ce0')]});});let _0x1043bd=null;_0x212040[_0x3327d3('0x1e37')]&&(_0x1043bd=_0x3c8d8a()[_0x3327d3('0x18ab')](_0x212040[_0x3327d3('0x9e8')],{'id':Number(_0x212040[_0x3327d3('0x1e37')]['ListId'])}));if(_0x1043bd&&!_0x3c8d8a()[_0x3327d3('0x1ec')](_0x41d708,['id',_0x1043bd['id']])){const _0x1d3b65=_0x3c8d8a()['find'](_0x212040[_0x3327d3('0x9e8')],{'id':_0x1043bd['id']});_0x1d3b65[_0x3327d3('0x268e')]=![],_0x41d708[_0x3327d3('0x18bb')](_0x1d3b65);}_0x212040[_0x3327d3('0x9e8')]=_0x41d708;});}})[_0x1d5416('0x103c')](function(_0x127bf7){const _0x3ab618=_0x1d5416;_0x1be609[_0x3ab618('0x15aa')]({'title':_0x127bf7[_0x3ab618('0x276f')]?'API:'+_0x127bf7[_0x3ab618('0x276f')]+_0x3ab618('0x160c')+_0x127bf7[_0x3ab618('0x2696')]:_0x3ab618('0x1292'),'msg':_0x127bf7[_0x3ab618('0x1e07')]?JSON[_0x3ab618('0x100b')](_0x127bf7[_0x3ab618('0x1e07')]):_0x127bf7['toString']()});});function _0x377e31(){const _0x676006=_0x1d5416;_0x212040[_0x676006('0x1d4a')]=[],_0x348d0f[_0x676006('0x1e37')][_0x676006('0x1195')](_0x212040[_0x676006('0x1e37')])[_0x676006('0x1964')]['then'](function(_0x2f5ff7){const _0x1ac9f3=_0x676006;_0x212040[_0x1ac9f3('0x130a')][_0x1ac9f3('0x1377')](_0x2f5ff7[_0x1ac9f3('0xf1f')]()),_0x1be609['success']({'title':'SmsAccount\x20properly\x20created','msg':_0x212040['smsAccount'][_0x1ac9f3('0x10ad')]?_0x212040[_0x1ac9f3('0x1e37')]['name']+_0x1ac9f3('0x209a'):''}),_0x56f650(_0x2f5ff7);})[_0x676006('0x103c')](function(_0x2cfd94){const _0x17e51c=_0x676006;if(_0x2cfd94['data']&&_0x2cfd94[_0x17e51c('0x1e07')][_0x17e51c('0x1d4a')]&&_0x2cfd94[_0x17e51c('0x1e07')][_0x17e51c('0x1d4a')][_0x17e51c('0x543')]){_0x212040['errors']=_0x2cfd94['data'][_0x17e51c('0x1d4a')]||[{'message':_0x2cfd94[_0x17e51c('0x1b75')](),'type':_0x17e51c('0x2377')}];for(let _0x629921=0x0;_0x629921<_0x2cfd94[_0x17e51c('0x1e07')]['errors'][_0x17e51c('0x543')];_0x629921+=0x1){_0x1be609[_0x17e51c('0x15aa')]({'title':_0x2cfd94[_0x17e51c('0x1e07')][_0x17e51c('0x1d4a')][_0x629921][_0x17e51c('0x1810')],'msg':_0x2cfd94[_0x17e51c('0x1e07')][_0x17e51c('0x1d4a')][_0x629921][_0x17e51c('0x67f')]});}}else _0x1be609['error']({'title':_0x2cfd94['status']?_0x17e51c('0x137')+_0x2cfd94[_0x17e51c('0x276f')]+_0x17e51c('0x160c')+_0x2cfd94[_0x17e51c('0x2696')]:_0x17e51c('0x2377'),'msg':_0x2cfd94['data']?JSON['stringify'](_0x2cfd94[_0x17e51c('0x1e07')]['message']):_0x2cfd94[_0x17e51c('0x1b75')]()});});}function _0x4f5a7c(){const _0x49b7a8=_0x1d5416;_0x212040[_0x49b7a8('0x1d4a')]=[],_0x348d0f['smsAccount']['update']({'id':_0x212040[_0x49b7a8('0x1e37')]['id']},_0x212040[_0x49b7a8('0x1e37')])['$promise'][_0x49b7a8('0x173b')](function(_0x145ab7){const _0xe6e3c6=_0x49b7a8,_0x46f8a7=_0x3c8d8a()[_0xe6e3c6('0x18ab')](_0x212040['smsAccounts'],{'id':_0x145ab7['id']});_0x46f8a7&&_0x3c8d8a()['merge'](_0x46f8a7,_0x3c8d8a()[_0xe6e3c6('0x2114')](_0x145ab7[_0xe6e3c6('0xf1f')](),_0x3c8d8a()[_0xe6e3c6('0x1d3e')](_0x46f8a7))),_0x1be609[_0xe6e3c6('0xdfe')]({'title':_0xe6e3c6('0x1e0b'),'msg':_0x212040[_0xe6e3c6('0x1e37')][_0xe6e3c6('0x10ad')]?_0x212040[_0xe6e3c6('0x1e37')][_0xe6e3c6('0x10ad')]+_0xe6e3c6('0x2788'):''}),_0x56f650(_0x145ab7);})[_0x49b7a8('0x103c')](function(_0x53257c){const _0x31d069=_0x49b7a8;if(_0x53257c[_0x31d069('0x1e07')]&&_0x53257c[_0x31d069('0x1e07')][_0x31d069('0x1d4a')]&&_0x53257c[_0x31d069('0x1e07')]['errors'][_0x31d069('0x543')]){_0x212040['errors']=_0x53257c['data']['errors']||[{'message':_0x53257c[_0x31d069('0x1b75')](),'type':_0x31d069('0x10f6')}];for(let _0x46cc15=0x0;_0x46cc15<_0x53257c[_0x31d069('0x1e07')]['errors']['length'];_0x46cc15++){_0x1be609[_0x31d069('0x15aa')]({'title':_0x53257c[_0x31d069('0x1e07')][_0x31d069('0x1d4a')][_0x46cc15][_0x31d069('0x1810')],'msg':_0x53257c[_0x31d069('0x1e07')][_0x31d069('0x1d4a')][_0x46cc15][_0x31d069('0x67f')]});}}else _0x1be609['error']({'title':_0x53257c[_0x31d069('0x276f')]?_0x31d069('0x137')+_0x53257c['status']+'\x20-\x20'+_0x53257c['statusText']:_0x31d069('0x10f6'),'msg':_0x53257c['data']?JSON['stringify'](_0x53257c[_0x31d069('0x1e07')][_0x31d069('0x67f')]):_0x53257c[_0x31d069('0x1b75')]()});});}function _0x3bd618(_0x464e99){const _0x3dae05=_0x1d5416;_0x212040[_0x3dae05('0x1d4a')]=[];const _0x48e1c6=_0x58b0f1[_0x3dae05('0x1d02')]()['title']('Are\x20you\x20sure?')[_0x3dae05('0x732')]('The\x20smsAccount\x20will\x20be\x20deleted.')[_0x3dae05('0x217')](_0x3dae05('0x2576'))['ok'](_0x3dae05('0x2373'))[_0x3dae05('0x1e1f')](_0x3dae05('0x1d4e'))['targetEvent'](_0x464e99);_0x58b0f1['show'](_0x48e1c6)[_0x3dae05('0x173b')](function(){const _0x7752fb=_0x3dae05;_0x348d0f['smsAccount'][_0x7752fb('0x15e8')]({'id':_0x212040['smsAccount']['id']})['$promise'][_0x7752fb('0x173b')](function(){const _0x39e055=_0x7752fb;_0x3c8d8a()[_0x39e055('0x1a8b')](_0x212040[_0x39e055('0x130a')],{'id':_0x212040[_0x39e055('0x1e37')]['id']}),_0x1be609[_0x39e055('0xdfe')]({'title':_0x39e055('0x2025'),'msg':(_0x212040[_0x39e055('0x1e37')][_0x39e055('0x10ad')]||_0x39e055('0x1e37'))+_0x39e055('0x25d2')}),_0x56f650(_0x212040['smsAccount']);})[_0x7752fb('0x103c')](function(_0x262d93){const _0x26c2cb=_0x7752fb;if(_0x262d93['data']&&_0x262d93[_0x26c2cb('0x1e07')][_0x26c2cb('0x1d4a')]&&_0x262d93[_0x26c2cb('0x1e07')][_0x26c2cb('0x1d4a')][_0x26c2cb('0x543')]){_0x212040[_0x26c2cb('0x1d4a')]=_0x262d93[_0x26c2cb('0x1e07')][_0x26c2cb('0x1d4a')]||[{'message':_0x262d93[_0x26c2cb('0x1b75')](),'type':_0x26c2cb('0xf5c')}];for(let _0x4026e9=0x0;_0x4026e9<_0x262d93['data'][_0x26c2cb('0x1d4a')][_0x26c2cb('0x543')];_0x4026e9++){_0x1be609[_0x26c2cb('0x15aa')]({'title':_0x262d93[_0x26c2cb('0x1e07')][_0x26c2cb('0x1d4a')][_0x4026e9][_0x26c2cb('0x1810')],'msg':_0x262d93[_0x26c2cb('0x1e07')][_0x26c2cb('0x1d4a')][_0x4026e9]['message']});}}else _0x1be609[_0x26c2cb('0x15aa')]({'title':_0x262d93[_0x26c2cb('0x276f')]?_0x26c2cb('0x137')+_0x262d93[_0x26c2cb('0x276f')]+_0x26c2cb('0x160c')+_0x262d93[_0x26c2cb('0x2696')]:_0x26c2cb('0xf5c'),'msg':_0x262d93[_0x26c2cb('0x1e07')]?JSON[_0x26c2cb('0x100b')](_0x262d93[_0x26c2cb('0x1e07')][_0x26c2cb('0x67f')]):_0x262d93['message']||_0x262d93[_0x26c2cb('0x1b75')]()});});},function(){});}function _0x1e12da(_0x20ef3a){return _0x20ef3a===null?undefined:new Date(_0x20ef3a);}function _0x56f650(_0x2684b7){_0x58b0f1['hide'](_0x2684b7);}}const _0x4324d7=_0x2f4f86,_0x3dcd45=_0x21a6a1['p']+_0x566993('0x4b'),_0x12b0e6=_0x21a6a1['p']+_0x566993('0x3fc'),_0x5411a4=_0x21a6a1['p']+_0x566993('0x1bfc'),_0x3bd564=_0x21a6a1['p']+_0x566993('0x1b34'),_0x977593=_0x21a6a1['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog.html',_0x112a9f=_0x21a6a1['p']+_0x566993('0x1661'),_0x7877cf=_0x21a6a1['p']+_0x566993('0x2367'),_0x4f4bb3=_0x21a6a1['p']+_0x566993('0x2748'),_0x58d914=_0x21a6a1['p']+_0x566993('0x1e0a'),_0x38b933=_0x21a6a1['p']+_0x566993('0x104f'),_0x487cd2=_0x21a6a1['p']+_0x566993('0x831'),_0x470024=_0x21a6a1['p']+_0x566993('0x1ba4');_0x2e6fc9[_0x566993('0x17bb')]=[_0x566993('0xbd4'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0x1600')];const _0x6c7aff={'agent':_0x3dcd45,'amazonlex':_0x12b0e6,'autoreply':_0x5411a4,'close':_0x3bd564,'dialogflow':_0x977593,'gotoif':_0x112a9f,'gotop':_0x7877cf,'interval':_0x4f4bb3,'noop':_0x58d914,'queue':_0x38b933,'system':_0x487cd2,'tag':_0x470024};function _0x2e6fc9(_0xb44796,_0x2214e0,_0x589c94,_0x5455e5,_0x452753){const _0x1c90b7=_0x566993,_0xf63fdd=this;_0xf63fdd[_0x1c90b7('0x155f')]=_0x452753[_0x1c90b7('0x14d4')](),_0xf63fdd['smsAccount']={},_0xf63fdd[_0x1c90b7('0x1732')]={'count':0x0,'rows':[]},_0xf63fdd[_0x1c90b7('0x13a1')]=[],_0xf63fdd[_0x1c90b7('0x1dc1')],_0xf63fdd[_0x1c90b7('0xc49')]={'sort':'priority'},_0xf63fdd['apps']=_0x3c8d8a()[_0x1c90b7('0x12a4')](_0x3c8d8a()[_0x1c90b7('0x1b45')]([{'app':_0x1c90b7('0x1d55'),'appType':_0x1c90b7('0x55a'),'types':[_0x1c90b7('0x17b3'),_0x1c90b7('0xbb4'),_0x1c90b7('0x3e3')],'fields':[],'isApp':![]},{'app':_0x1c90b7('0x1086'),'appType':_0x1c90b7('0x1086'),'type':_0x1c90b7('0x1086'),'icon':_0x1c90b7('0x108b'),'interval':_0x1c90b7('0x17c5'),'required':!![],'isApp':!![],'fields':[{'title':_0x1c90b7('0x1997'),'name':_0x1c90b7('0xa7b'),'type':_0x1c90b7('0x86e'),'param':0x0}]},{'app':_0x1c90b7('0x1ed'),'appType':_0x1c90b7('0x1ed'),'type':_0x1c90b7('0x1ed'),'icon':_0x1c90b7('0x108b'),'interval':_0x1c90b7('0x17c5'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x1c90b7('0x2715'),'field':{'name':'variable','key':'name'},'route':_0x1c90b7('0x1b56'),'filters':{'fields':_0x1c90b7('0xd52'),'sort':_0x1c90b7('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x1c90b7('0x1bfd'),'name':_0x1c90b7('0xdc4'),'type':'text','required':!![],'param':0x0},{'title':_0x1c90b7('0xae6'),'name':_0x1c90b7('0x1b56'),'type':_0x1c90b7('0x23fd'),'values':_0x1c90b7('0x2715'),'value':_0x1c90b7('0x1fd4'),'option':_0x1c90b7('0x1fd4'),'defaultValues':[{'value':'\x27\x27','option':_0x1c90b7('0x2187')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x1c90b7('0x2ac'),'appType':_0x1c90b7('0x2ac'),'type':_0x1c90b7('0x2016'),'icon':_0x1c90b7('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Priority','name':_0x1c90b7('0xb3'),'type':_0x1c90b7('0x1d81'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x1c90b7('0xf5d'),'appType':_0x1c90b7('0xf5d'),'type':_0x1c90b7('0xf5d'),'icon':_0x1c90b7('0x108b'),'interval':_0x1c90b7('0x17c5'),'isApp':!![],'fields':[{'title':_0x1c90b7('0x5f4'),'name':'condition','type':'text','required':!![],'param':0x0},{'title':_0x1c90b7('0x1cd7'),'name':_0x1c90b7('0x1cd7'),'type':_0x1c90b7('0x1d81'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x1c90b7('0x1ec9'),'type':_0x1c90b7('0x1d81'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x1c90b7('0x172'),'appType':_0x1c90b7('0x172'),'foreignKey':_0x1c90b7('0x765'),'type':'queue','icon':_0x1c90b7('0x108b'),'interval':_0x1c90b7('0x17c5'),'isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x1c90b7('0x172'),'key':_0x1c90b7('0x10ad')},'route':_0x1c90b7('0xe99'),'filters':{'fields':_0x1c90b7('0x1c66'),'sort':_0x1c90b7('0x10ad'),'nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':'Queue','name':_0x1c90b7('0x172'),'type':'apiselect','values':_0x1c90b7('0xeae'),'value':'queue.name','option':_0x1c90b7('0x26db'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0x1c90b7('0x1f84'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x1c90b7('0x7b0'),'appType':'agent','type':_0x1c90b7('0x7b0'),'foreignKey':_0x1c90b7('0x181c'),'icon':_0x1c90b7('0x108b'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x1c90b7('0x11fa'),'field':{'name':_0x1c90b7('0x7b0'),'key':'name'},'route':_0x1c90b7('0x166f'),'filters':{'fields':'id,name','sort':'name','nolimit':!![],'role':_0x1c90b7('0x7b0')},'permissions':{'section':0xca}}],'fields':[{'title':_0x1c90b7('0x1547'),'name':_0x1c90b7('0x7b0'),'type':'apiselect','values':_0x1c90b7('0x11fa'),'value':'agent.name','option':_0x1c90b7('0x660'),'required':!![],'param':0x0},{'title':_0x1c90b7('0x1b9a'),'name':_0x1c90b7('0x1f84'),'type':_0x1c90b7('0x1d81'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x1c90b7('0x23fe'),'appType':_0x1c90b7('0x23fe'),'type':'autoreply','icon':_0x1c90b7('0x108b'),'interval':_0x1c90b7('0x17c5'),'isApp':!![],'fields':[{'title':_0x1c90b7('0x611'),'name':_0x1c90b7('0x611'),'type':_0x1c90b7('0xc65'),'defaultValue':'1','values':[{'option':_0x1c90b7('0x1f24'),'value':'1'},{'option':_0x1c90b7('0x2322'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x1c90b7('0x381'),'name':'text','type':_0x1c90b7('0x5de'),'required':!![],'param':0x1}]},{'app':'close','appType':'close','type':_0x1c90b7('0x2151'),'icon':_0x1c90b7('0x108b'),'interval':_0x1c90b7('0x17c5'),'isApp':!![],'fields':[{'title':_0x1c90b7('0x2ab'),'name':_0x1c90b7('0x2766'),'type':_0x1c90b7('0x86e'),'required':!![],'param':0x0}]},{'app':_0x1c90b7('0x23b4'),'appType':_0x1c90b7('0x23b4'),'type':'tag','foreignKey':'TagId','icon':'icon-apps','interval':_0x1c90b7('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x1c90b7('0x22ac'),'field':{'name':'tag','key':_0x1c90b7('0x10ad')},'route':_0x1c90b7('0x23b4'),'filters':{'fields':_0x1c90b7('0xd52'),'sort':_0x1c90b7('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x1c90b7('0x460'),'name':'tag','type':'apiselect','values':_0x1c90b7('0x22ac'),'value':'tag.name','option':_0x1c90b7('0x2648'),'required':!![],'param':0x0}]},{'app':_0x1c90b7('0x1601'),'appType':_0x1c90b7('0x1601'),'type':_0x1c90b7('0x1601'),'icon':_0x1c90b7('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x1c90b7('0x1e9b'),'name':'key','type':_0x1c90b7('0x86e'),'required':!![],'param':0x0},{'title':'language','name':_0x1c90b7('0x604'),'type':_0x1c90b7('0xc65'),'defaultValue':'\x27en\x27','values':[{'option':_0x1c90b7('0xac'),'value':_0x1c90b7('0x2386')},{'option':_0x1c90b7('0x22af'),'value':_0x1c90b7('0x910')},{'option':_0x1c90b7('0x12d4'),'value':_0x1c90b7('0x5ac')},{'option':_0x1c90b7('0x24e4'),'value':_0x1c90b7('0xf39')},{'option':'Spanish','value':_0x1c90b7('0x1c86')},{'option':_0x1c90b7('0xcdd'),'value':_0x1c90b7('0x2293')},{'option':_0x1c90b7('0x10e2'),'value':_0x1c90b7('0x1c9d')},{'option':_0x1c90b7('0x191f'),'value':'\x27ja\x27'},{'option':'Korean\x20(South\x20Korea)','value':_0x1c90b7('0x176b')},{'option':_0x1c90b7('0x1734'),'value':_0x1c90b7('0x1855')},{'option':_0x1c90b7('0x1930'),'value':_0x1c90b7('0x13d1')},{'option':_0x1c90b7('0x128c'),'value':'\x27pt\x27'},{'option':'Portuguese\x20(Nrazilian)','value':_0x1c90b7('0xfc7')},{'option':_0x1c90b7('0x1992'),'value':_0x1c90b7('0x2332')},{'option':_0x1c90b7('0x25a9'),'value':_0x1c90b7('0x804')},{'option':_0x1c90b7('0x1320'),'value':'\x27th\x27'},{'option':_0x1c90b7('0x302'),'value':_0x1c90b7('0x14ab')},{'option':_0x1c90b7('0x92d'),'value':_0x1c90b7('0x1f97')},{'option':_0x1c90b7('0xc9'),'value':_0x1c90b7('0x2218')},{'option':_0x1c90b7('0x1b43'),'value':_0x1c90b7('0x1e6')}],'required':!![],'param':0x1},{'title':'welcomemessage','name':'welcomemessage','type':_0x1c90b7('0x5de'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':'amazonlex','appType':_0x1c90b7('0x1680'),'type':_0x1c90b7('0x1680'),'icon':_0x1c90b7('0x108b'),'interval':_0x1c90b7('0x17c5'),'isApp':!![],'fields':[{'title':_0x1c90b7('0x2e0'),'name':_0x1c90b7('0x2e0'),'type':'text','required':!![],'param':0x0},{'title':_0x1c90b7('0x1d93'),'name':_0x1c90b7('0x1d93'),'type':'text','required':!![],'param':0x1},{'title':_0x1c90b7('0x10fc'),'name':_0x1c90b7('0x10fc'),'type':'select','defaultValue':_0x1c90b7('0x1ee4'),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x1c90b7('0x1ee4')},{'option':_0x1c90b7('0x2429'),'value':_0x1c90b7('0x116a')},{'option':_0x1c90b7('0x1d48'),'value':_0x1c90b7('0x68e')},{'option':_0x1c90b7('0x146a'),'value':'\x27ap-southeast-2\x27'}],'required':!![],'param':0x2},{'title':_0x1c90b7('0x53'),'name':_0x1c90b7('0x53'),'type':'text','required':!![],'param':0x3},{'title':'welcomemessage','name':'welcomemessage','type':_0x1c90b7('0x5de'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x1c90b7('0x17e')]),{'isApp':![]}),_0xf63fdd[_0x1c90b7('0x3e3')]={'group':{'name':_0x1c90b7('0x1749'),'pull':'clone'},'animation':0x64,'sort':![]},_0xf63fdd[_0x1c90b7('0x1f7e')]={'group':{'name':_0x1c90b7('0x1fb7'),'put':'opt1'},'animation':0x64,'onAdd':function(_0xd205d9){_0x27164f(_0xd205d9,_0xd205d9['newIndex']);},'onSort':function(){_0x184e13();}},_0xf63fdd[_0x1c90b7('0xb9c')]=_0x806cfd,_0xf63fdd[_0x1c90b7('0x2051')]=_0x475391,_0xf63fdd[_0x1c90b7('0xf20')]=_0x2ed9ba,_0xf63fdd[_0x1c90b7('0x1444')]=_0x27164f,_0xf63fdd['editInterval']=_0x326ff9,_0xf63fdd[_0x1c90b7('0x17e6')]=_0x5ef181,_0xf63fdd['deleteSelectedSmsAccountApps']=_0x1c346b,_0xf63fdd[_0x1c90b7('0x131f')]=_0x184e13,_0xf63fdd[_0x1c90b7('0xf77')]=_0x1be3c6;function _0x806cfd(_0x2e2370,_0x1113a9){const _0xb127a1=_0x1c90b7;_0xf63fdd['smsAccount']=_0x2e2370,_0xf63fdd[_0xb127a1('0x1dc1')]=typeof _0x1113a9!==_0xb127a1('0x6e5')?_0x1113a9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xf63fdd[_0xb127a1('0x1f7e')][_0xb127a1('0x6fc')]=!_0xf63fdd[_0xb127a1('0x1dc1')][_0xb127a1('0x1f3d')]?!![]:![],_0xf63fdd[_0xb127a1('0xc49')]['id']=_0x2e2370['id'],_0xf63fdd[_0xb127a1('0xc49')][_0xb127a1('0xbb6')]=!![],_0xf63fdd[_0xb127a1('0xc49')][_0xb127a1('0x1c7f')]=!![],_0xf63fdd['getSmsAccountApps'](),_0xf63fdd['getIntervals']();}function _0x475391(_0x5e12e8,_0x4dde07,_0x157750){const _0x511cfe=_0x1c90b7,_0x37d74f=_0x2214e0[_0x511cfe('0x1d02')]()[_0x511cfe('0x20d6')](_0x511cfe('0xbac'))['htmlContent'](''+_0x5e12e8[_0x511cfe('0x17e')]+_0x511cfe('0x24be')+_0x511cfe('0xd23'))[_0x511cfe('0x217')](_0x511cfe('0x499'))[_0x511cfe('0x21de')](_0x157750)['ok']('OK')[_0x511cfe('0x1e1f')]('CANCEL');_0x2214e0[_0x511cfe('0x1cb7')](_0x37d74f)[_0x511cfe('0x173b')](function(){const _0x1fe7b5=_0x511cfe;_0xf63fdd[_0x1fe7b5('0x1732')][_0x1fe7b5('0x6aa')]['splice'](_0x4dde07,0x1),_0x184e13();},function(){console['log']('CANCEL');});}function _0x27164f(_0x5d1d98,_0x45594c){const _0x168c16=_0x1c90b7;if(_0xf63fdd[_0x168c16('0x1732')][_0x168c16('0x6aa')][_0x168c16('0x543')]){const _0x3d4d30=_0xf63fdd[_0x168c16('0x1732')][_0x168c16('0x6aa')][_0x45594c]?_0xf63fdd[_0x168c16('0x1732')][_0x168c16('0x6aa')][_0x45594c]:_0xf63fdd[_0x168c16('0x1732')][_0x168c16('0x6aa')][0x0],_0x1e236e=(_0x3d4d30[_0x168c16('0x9d7')]||_0x3d4d30[_0x168c16('0x17e')])[_0x168c16('0x1e68')]();_0x2214e0[_0x168c16('0x1cb7')]({'controller':_0x168c16('0x5a7')+_0x1e236e+_0x168c16('0x1c96'),'controllerAs':'vm','templateUrl':_0x6c7aff[_0x1e236e],'parent':angular[_0x168c16('0xb6d')](_0x589c94[_0x168c16('0x1a5')]),'targetEvent':_0x5d1d98,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x3d4d30,'smsAccount':_0xf63fdd[_0x168c16('0x1e37')],'crudPermissions':_0xf63fdd['crudPermissions']}})['then'](function(_0x2e1491){const _0x329be3=_0x168c16;_0x2e1491&&(_0x2e1491['id']?_0xf63fdd['smsAccountApps'][_0x329be3('0x6aa')][_0x45594c]=_0x2e1491:_0xf63fdd[_0x329be3('0x1732')][_0x329be3('0x6aa')][_0x329be3('0x553')](_0x45594c,0x0,_0x2e1491),_0x184e13());})[_0x168c16('0x103c')](function(_0x17bf78){const _0x566c87=_0x168c16;_0x17bf78&&_0x5455e5[_0x566c87('0x15aa')]({'title':_0x17bf78['status']?_0x566c87('0x137')+_0x17bf78[_0x566c87('0x276f')]+_0x566c87('0x160c')+_0x17bf78['statusText']:'SYSTEM:EDITMODALSHOW','msg':_0x17bf78[_0x566c87('0x1e07')]?JSON[_0x566c87('0x100b')](_0x17bf78[_0x566c87('0x1e07')]):_0x17bf78[_0x566c87('0x1b75')]()});});}}function _0x326ff9(_0x3f8d06,_0x22ff7a){const _0x57f955=_0x1c90b7;if(_0xf63fdd[_0x57f955('0x1732')]['rows']['length']){const _0x498ccb=_0xf63fdd[_0x57f955('0x1732')][_0x57f955('0x6aa')][_0x22ff7a]?_0xf63fdd[_0x57f955('0x1732')][_0x57f955('0x6aa')][_0x22ff7a]:_0xf63fdd[_0x57f955('0x1732')][_0x57f955('0x6aa')][0x0];_0x2214e0[_0x57f955('0x1cb7')]({'controller':_0x57f955('0x103'),'controllerAs':'vm','templateUrl':_0x4f4bb3,'parent':angular['element'](_0x589c94[_0x57f955('0x1a5')]),'targetEvent':_0x3f8d06,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x498ccb[_0x57f955('0x55a')],'IntervalId':_0x498ccb[_0x57f955('0x600')],'application':!![]},'intervals':[],'crudPermissions':_0xf63fdd[_0x57f955('0x1dc1')]}})[_0x57f955('0x173b')](function(_0x518eea){const _0x1a84d1=_0x57f955;_0x518eea&&(_0x498ccb['interval']=_0x518eea[_0x1a84d1('0x55a')]||_0x1a84d1('0x17c5'),_0x498ccb['IntervalId']=_0x518eea[_0x1a84d1('0x600')]||null,_0x184e13());});}}function _0x184e13(){const _0x482ee4=_0x1c90b7;let _0x185b0c=0x1,_0x367ca2=[];for(let _0x1c6c50=0x0;_0x1c6c50<_0xf63fdd['smsAccountApps']['rows'][_0x482ee4('0x543')];_0x1c6c50++){const _0x3e243c=_0xf63fdd['smsAccountApps']['rows'][_0x1c6c50],_0x445f5b=[],_0x37cf2b=[];_0x3e243c['intervals']=_0x3e243c[_0x482ee4('0x55a')]!=='*,*,*,*'?[_0x3e243c[_0x482ee4('0x55a')]]:_0x3e243c[_0x482ee4('0x600')]?_0x3c8d8a()['map'](_0x3c8d8a()[_0x482ee4('0x278d')](_0xf63fdd[_0x482ee4('0x21c4')][_0x482ee4('0x6aa')],{'IntervalId':_0x3e243c['IntervalId']}),_0x482ee4('0x55a')):[],_0x3e243c[_0x482ee4('0x2b9')]=_0xf63fdd[_0x482ee4('0x1e37')][_0x482ee4('0x2b9')],_0x3e243c['exten']=_0xf63fdd[_0x482ee4('0x1e37')]['exten'],_0x3e243c[_0x482ee4('0x1810')]&&(_0x3e243c['type']=_0x3e243c[_0x482ee4('0x1810')][_0x482ee4('0x1e68')]()),_0x3e243c[_0x482ee4('0xb3')]=_0x445f5b[_0x482ee4('0x543')]?_0x3c8d8a()['last'](_0x445f5b)[_0x482ee4('0xb3')]+0x1:_0x185b0c,_0x185b0c=(_0x37cf2b[_0x482ee4('0x543')]?_0x3c8d8a()['last'](_0x37cf2b)[_0x482ee4('0xb3')]:_0x3e243c[_0x482ee4('0xb3')])+0x1,_0x367ca2=_0x3c8d8a()['concat'](_0x367ca2,_0x445f5b,[_0x3e243c],_0x37cf2b);}_0xb44796[_0x482ee4('0x1e37')][_0x482ee4('0x271c')]({'id':_0xf63fdd[_0x482ee4('0x1e37')]['id']},_0x3c8d8a()[_0x482ee4('0x1b45')](_0x367ca2,'priority'))[_0x482ee4('0x1964')]['then'](function(_0xa39ffc){const _0x2a2612=_0x482ee4;_0xf63fdd[_0x2a2612('0x1732')][_0x2a2612('0x6aa')]=_0xa39ffc[_0x2a2612('0x6aa')];})[_0x482ee4('0x103c')](function(_0x3b5a24){const _0x293fe2=_0x482ee4;console[_0x293fe2('0x15aa')](_0x3b5a24);});}function _0x9f0c82(_0x3b71e0){const _0x5c0e1e=_0x1c90b7;_0xf63fdd[_0x5c0e1e('0x1732')]=_0x3b71e0||{'count':0x0,'rows':[]};}function _0x1be3c6(){const _0x3f62a=_0x1c90b7;return _0xb44796[_0x3f62a('0x55a')]['get']({'fields':_0x3f62a('0x23e4')})['$promise'][_0x3f62a('0x173b')](function(_0x36e10b){const _0x2c3381=_0x3f62a;_0xf63fdd[_0x2c3381('0x21c4')]=_0x36e10b;})['catch'](function(_0x4fd536){const _0x51e9be=_0x3f62a;console[_0x51e9be('0x15aa')](_0x4fd536);});}function _0x2ed9ba(){const _0x1283c0=_0x1c90b7;_0xf63fdd['promise']=_0xb44796[_0x1283c0('0x1e37')]['getApplications'](_0xf63fdd['query'],_0x9f0c82)[_0x1283c0('0x1964')];}function _0x5ef181(_0x59e4ac){const _0x51a9b4=_0x1c90b7;_0x3c8d8a()[_0x51a9b4('0x1a8b')](_0xf63fdd[_0x51a9b4('0x1732')][_0x51a9b4('0x6aa')],{'id':_0x59e4ac['id']}),_0x184e13(),_0x5455e5[_0x51a9b4('0xdfe')]({'title':_0x51a9b4('0x236d'),'msg':_0x59e4ac[_0x51a9b4('0x17e')]?_0x59e4ac['app']+_0x51a9b4('0x25d2'):''});}function _0x1c346b(_0x16acb3){const _0x3ab420=_0x1c90b7,_0x1aa632=_0x2214e0[_0x3ab420('0x1d02')]()[_0x3ab420('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x3ab420('0xf8b')](_0x3ab420('0x15b9')+_0xf63fdd[_0x3ab420('0x13a1')][_0x3ab420('0x543')]+'\x20selected'+_0x3ab420('0xd23'))[_0x3ab420('0x217')](_0x3ab420('0x296'))[_0x3ab420('0x21de')](_0x16acb3)['ok']('OK')[_0x3ab420('0x1e1f')](_0x3ab420('0x468'));_0x2214e0[_0x3ab420('0x1cb7')](_0x1aa632)[_0x3ab420('0x173b')](function(){const _0x5df0d2=_0x3ab420;_0xf63fdd['selectedSmsAccountApps'][_0x5df0d2('0xa6a')](function(_0x4604de){const _0x9b1b6a=_0x5df0d2;_0x3c8d8a()['remove'](_0xf63fdd['smsAccountApps'][_0x9b1b6a('0x6aa')],{'id':_0x4604de['id']});}),_0xf63fdd[_0x5df0d2('0x13a1')]=[],_0x184e13();});}}const _0x2e60b8=_0x2e6fc9;_0x59384b[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0xbd4'),_0x566993('0x1e37'),_0x566993('0x130a'),'realtime',_0x566993('0x638'),'Auth',_0x566993('0x1dc1')];function _0x59384b(_0x2eb9b3,_0x1920c8,_0x3a3ac0,_0x225895,_0x592f48,_0x4cd375,_0x202781,_0xca112f,_0x6f0ab2,_0x4fba74){const _0x30651d=_0x566993,_0x40fc61=this;_0x40fc61[_0x30651d('0x155f')]=_0x6f0ab2[_0x30651d('0x14d4')](),_0x40fc61[_0x30651d('0x1e37')]=_0x592f48,_0x40fc61[_0x30651d('0x1dc1')]=_0x4fba74,_0x40fc61['realtime']=_0x202781,_0x40fc61[_0x30651d('0x1b1f')]=[],_0x40fc61[_0x30651d('0x203e')]=[],_0x40fc61[_0x30651d('0x5f8')]=[],_0x40fc61[_0x30651d('0x1493')]=[],_0x40fc61[_0x30651d('0x15c9')]=[],_0x40fc61[_0x30651d('0x277e')]=![],_0x40fc61[_0x30651d('0x2535')]=_0x25ae11,_0x40fc61[_0x30651d('0x21dc')]=_0x456fa7,_0x40fc61[_0x30651d('0x18e2')]=_0x18c568,_0x40fc61[_0x30651d('0x52e')]={'readOnly':!_0x40fc61[_0x30651d('0x1dc1')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x30651d('0x10ad'),'line1':_0x30651d('0x572'),'line2':[_0x30651d('0x10ad'),_0x30651d('0x138c')],'line3':'','labelAll':_0xca112f['instant']('SMS.ALL_AGENTS'),'labelSelected':_0xca112f[_0x30651d('0x1467')](_0x30651d('0xc3e')),'transferCallback':function(){const _0x3ae5be=_0x30651d,_0x1d9fb3=_0x3c8d8a()['xorBy'](_0x40fc61[_0x3ae5be('0x15c9')],_0x40fc61[_0x3ae5be('0x5f8')],'id');_0x40fc61['pendingChanges']=_0x3c8d8a()[_0x3ae5be('0x1a56')](_0x1d9fb3)?![]:!![];}};function _0x25ae11(){const _0xae64a8=_0x30651d;return _0x6f0ab2[_0xae64a8('0x1b4e')](_0xae64a8('0x79b'))?_0x4d281d()[_0xae64a8('0x103c')](function(_0x3ae3a2){const _0x222c52=_0xae64a8;_0x3a3ac0[_0x222c52('0x15aa')]({'title':_0x3ae3a2['status']?'API:'+_0x3ae3a2[_0x222c52('0x276f')]+'\x20-\x20'+_0x3ae3a2[_0x222c52('0x2696')]:_0x222c52('0x152b'),'msg':_0x3ae3a2[_0x222c52('0x276f')]?JSON[_0x222c52('0x100b')](_0x3ae3a2[_0x222c52('0x1e07')]):_0x3ae3a2[_0x222c52('0x1b75')]()});}):_0x178f72()[_0xae64a8('0x173b')](function(_0x2956a8){const _0x3c0c37=_0xae64a8;return _0x40fc61[_0x3c0c37('0x17c9')]=_0x2956a8,_0x4d281d();})[_0xae64a8('0x103c')](function(_0x267b5b){const _0x1296e6=_0xae64a8;_0x3a3ac0[_0x1296e6('0x15aa')]({'title':_0x267b5b[_0x1296e6('0x276f')]?_0x1296e6('0x137')+_0x267b5b[_0x1296e6('0x276f')]+_0x1296e6('0x160c')+_0x267b5b[_0x1296e6('0x2696')]:_0x1296e6('0x152b'),'msg':_0x267b5b[_0x1296e6('0x276f')]?JSON[_0x1296e6('0x100b')](_0x267b5b[_0x1296e6('0x1e07')]):_0x267b5b[_0x1296e6('0x1b75')]()});});}function _0x178f72(){return _0x1920c8(function(_0x37acf3,_0x5bc212){const _0x6bec63=a0_0xde5e;_0x225895[_0x6bec63('0x170e')][_0x6bec63('0x1d97')]({'userProfileId':_0x40fc61[_0x6bec63('0x155f')][_0x6bec63('0x1946')],'name':_0x6bec63('0x1272')})[_0x6bec63('0x1964')][_0x6bec63('0x173b')](function(_0x5ac955){const _0xd4beb9=_0x6bec63,_0x423ea0=_0x5ac955&&_0x5ac955[_0xd4beb9('0x6aa')]?_0x5ac955[_0xd4beb9('0x6aa')][0x0]:null;_0x37acf3(_0x423ea0);})[_0x6bec63('0x103c')](function(_0x259b8a){_0x5bc212(_0x259b8a);});});}function _0x4d281d(){return _0x1920c8(function(_0x4e666b,_0x140e28){const _0x498cf0=a0_0xde5e;return _0x12d7cd()[_0x498cf0('0x173b')](function(_0x557dce){const _0x5dc61e=_0x498cf0;return _0x40fc61[_0x5dc61e('0x1b1f')]=_0x557dce['rows']?_0x557dce['rows']:[],_0x6f0ab2[_0x5dc61e('0x1b4e')]('admin')?_0x557dce:_0x40fc61['section']?_0x40fc61[_0x5dc61e('0x17c9')]['autoAssociation']?_0x557dce:_0x59c1ad():null;})[_0x498cf0('0x173b')](function(_0x1e859d){const _0x127c73=_0x498cf0,_0x8d552b=_0x1e859d&&_0x1e859d['rows']?_0x1e859d['rows']:[];return _0x40fc61[_0x127c73('0x203e')]=_0x3c8d8a()['map'](_0x8d552b,function(_0x2dba48){const _0x26f2c7=_0x127c73;return _0x3c8d8a()[_0x26f2c7('0x18ab')](_0x40fc61['items'],{'id':_0x6f0ab2['hasRole'](_0x26f2c7('0x79b'))||_0x40fc61[_0x26f2c7('0x17c9')][_0x26f2c7('0x273e')]?_0x2dba48['id']:_0x2dba48[_0x26f2c7('0x1ce0')]});}),_0x40fc61[_0x127c73('0x1493')]=angular[_0x127c73('0x2e3')](_0x40fc61[_0x127c73('0x203e')]),_0x40fc61[_0x127c73('0x1b1f')]['forEach'](function(_0x2d5b8c){const _0x3722f5=_0x127c73,_0x334c84=_0x3c8d8a()['find'](_0x40fc61['allowedItems'],{'id':_0x2d5b8c['id']});_0x6f0ab2['hasRole'](_0x3722f5('0x79b'))?_0x2d5b8c[_0x3722f5('0xf02')]=!![]:_0x2d5b8c[_0x3722f5('0xf02')]=typeof _0x334c84!==_0x3722f5('0x6e5')?!![]:![];}),_0x3aacc6();})[_0x498cf0('0x173b')](function(_0x4de086){const _0x4d74f1=_0x498cf0,_0x476ed6=_0x4de086&&_0x4de086['rows']?_0x4de086[_0x4d74f1('0x6aa')]:[];_0x40fc61['selectedItems']=_0x3c8d8a()['map'](_0x476ed6,function(_0x4deeb6){const _0x559923=_0x4d74f1,_0x12019c=_0x3c8d8a()[_0x559923('0x18ab')](_0x40fc61[_0x559923('0x1b1f')],{'id':_0x4deeb6['id']});return _0x12019c[_0x559923('0x1692')]=_0x4deeb6[_0x559923('0x1d6e')]?'penalty\x20'+_0x4deeb6['UserSmsAccount'][_0x559923('0x1692')]:'',_0x12019c[_0x559923('0x138c')]=typeof _0x4deeb6[_0x559923('0x138c')]!==_0x559923('0x6e5')?'<'+_0x4deeb6[_0x559923('0x138c')]+'>':'',_0x12019c;}),_0x40fc61[_0x4d74f1('0x15c9')]=angular[_0x4d74f1('0x2e3')](_0x40fc61[_0x4d74f1('0x5f8')]),_0x40fc61[_0x4d74f1('0x52e')][_0x4d74f1('0x5f8')]=_0x40fc61[_0x4d74f1('0x5f8')],_0x40fc61['dualMultiselectOptions'][_0x4d74f1('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x40fc61[_0x4d74f1('0x203e')],_0x40fc61[_0x4d74f1('0x52e')]['selectedItems'],'id'),_0x4e666b();})['catch'](function(_0x8d46a2){_0x140e28(_0x8d46a2);});});}function _0x59c1ad(){return _0x1920c8(function(_0x233949,_0x26468a){const _0x190543=a0_0xde5e;return _0x225895[_0x190543('0xda9')][_0x190543('0x1d97')]({'sectionId':_0x40fc61['section']['id'],'nolimit':!![]})[_0x190543('0x1964')][_0x190543('0x173b')](function(_0x2e7e68){_0x233949(_0x2e7e68);})[_0x190543('0x103c')](function(_0xcb6574){_0x26468a(_0xcb6574);});});}function _0x3aacc6(){return _0x1920c8(function(_0x41d725,_0x2c3d02){const _0x22f2ed=a0_0xde5e;return _0x225895[_0x22f2ed('0x1e37')]['getAgents']({'id':_0x40fc61['smsAccount']['id'],'fields':_0x22f2ed('0x1d65'),'nolimit':!![],'role':'agent'})[_0x22f2ed('0x1964')][_0x22f2ed('0x173b')](function(_0x504f4e){_0x41d725(_0x504f4e);})[_0x22f2ed('0x103c')](function(_0x63bb3c){_0x2c3d02(_0x63bb3c);});});}function _0x12d7cd(){return _0x1920c8(function(_0x1ac261,_0x66116b){const _0x578cd8=a0_0xde5e;return _0x225895[_0x578cd8('0x166f')][_0x578cd8('0x1d97')]({'fields':_0x578cd8('0x1d65'),'nolimit':!![],'role':_0x578cd8('0x7b0')})['$promise']['then'](function(_0x908147){_0x1ac261(_0x908147);})['catch'](function(_0x5f3c70){_0x66116b(_0x5f3c70);});});}function _0x4dbbe0(_0x5ae35c){return _0x1920c8(function(_0x2d626d,_0x2b5aa2){const _0x5dd37d=a0_0xde5e;_0x3c8d8a()[_0x5dd37d('0x1a56')](_0x5ae35c)?_0x2d626d():_0x225895[_0x5dd37d('0x1e37')][_0x5dd37d('0x1ff1')]({'id':_0x40fc61[_0x5dd37d('0x1e37')]['id'],'ids':_0x3c8d8a()['map'](_0x5ae35c,'id')})[_0x5dd37d('0x1964')]['then'](function(){_0x2d626d();})[_0x5dd37d('0x103c')](function(_0x2b5ced){_0x2b5aa2(_0x2b5ced);});});}function _0x58b33d(_0x3623b2){return _0x1920c8(function(_0x42fd1b,_0x231be4){const _0x5f13cd=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x3623b2)?_0x42fd1b():_0x225895[_0x5f13cd('0x1e37')][_0x5f13cd('0x2017')]({'id':_0x40fc61[_0x5f13cd('0x1e37')]['id'],'ids':_0x3c8d8a()[_0x5f13cd('0x8a2')](_0x3623b2,'id')})['$promise'][_0x5f13cd('0x173b')](function(){_0x42fd1b();})[_0x5f13cd('0x103c')](function(_0x1875a4){_0x231be4(_0x1875a4);});});}function _0x456fa7(){const _0x37a04a=_0x30651d,_0x2629ad=_0x3c8d8a()['differenceBy'](_0x40fc61[_0x37a04a('0x15c9')],_0x40fc61[_0x37a04a('0x5f8')],'id'),_0x3133ad=_0x3c8d8a()['differenceBy'](_0x40fc61['selectedItems'],_0x40fc61[_0x37a04a('0x15c9')],'id');return _0x58b33d(_0x2629ad)[_0x37a04a('0x173b')](function(){return _0x4dbbe0(_0x3133ad);})[_0x37a04a('0x173b')](function(){const _0x438686=_0x37a04a;_0x40fc61['pendingChanges']=![],_0x40fc61[_0x438686('0x1493')]=angular[_0x438686('0x2e3')](_0x40fc61[_0x438686('0x203e')]),_0x40fc61[_0x438686('0x15c9')]=angular[_0x438686('0x2e3')](_0x40fc61[_0x438686('0x5f8')]),_0x3a3ac0[_0x438686('0xdfe')]({'title':'SUCCESS','msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x37a04a('0x103c')](function(_0x288bf3){const _0x5a711a=_0x37a04a;_0x3a3ac0[_0x5a711a('0x15aa')]({'title':_0x288bf3[_0x5a711a('0x276f')]?_0x5a711a('0x137')+_0x288bf3[_0x5a711a('0x276f')]+'\x20-\x20'+_0x288bf3['statusText']:_0x5a711a('0x1f48'),'msg':_0x288bf3['status']?JSON[_0x5a711a('0x100b')](_0x288bf3['data']):_0x288bf3[_0x5a711a('0x1b75')]()});});}function _0x18c568(){const _0x5119be=_0x30651d;_0x2eb9b3[_0x5119be('0x1cf4')]();}}const _0x1984c4=_0x59384b;_0x4f1e65[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x193f'),_0x566993('0x1e37'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x4f1e65(_0x2b6a49,_0x4d7ed0,_0x2cf3f8,_0x1e3a9c,_0x451635,_0x54187d,_0x580552,_0x2817b4){const _0x20d716=_0x566993,_0x3ac4b0=this;_0x3ac4b0[_0x20d716('0x155f')]=_0x580552[_0x20d716('0x14d4')](),_0x3ac4b0[_0x20d716('0x1d4a')]=[],_0x3ac4b0[_0x20d716('0x20d6')]=_0x20d716('0x13cb')+(_0x1e3a9c['appType']||_0x1e3a9c[_0x20d716('0x17e')])[_0x20d716('0x1164')](),_0x3ac4b0[_0x20d716('0x7b0')]=angular['copy'](_0x1e3a9c),_0x3ac4b0['crudPermissions']=_0x2817b4,_0x3ac4b0[_0x20d716('0xb0')]={};if(_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1c00')])switch(_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x9d7')]?_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x9d7')][_0x20d716('0x1e68')]():_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x17e')]['toLowerCase']()){case _0x20d716('0xbb4'):break;case _0x20d716('0x1601'):{const _0x26c4ec=_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1c00')][_0x20d716('0x43a')](',');_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x237a')]=_0x26c4ec[0x0],_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x604')]=_0x26c4ec[0x1],_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1a7')]=_0x26c4ec[_0x20d716('0x2456')](0x2,_0x26c4ec[_0x20d716('0x543')])[_0x20d716('0x2259')](',');}break;case _0x20d716('0x1680'):{const _0x194503=_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1c00')]['split'](',');_0x3ac4b0['agent'][_0x20d716('0x2e0')]=_0x194503[0x0],_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1d93')]=_0x194503[0x1],_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x10fc')]=_0x194503[0x2],_0x3ac4b0['agent'][_0x20d716('0x53')]=_0x194503[0x3],_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1a7')]=_0x194503[_0x20d716('0x2456')](0x4,_0x194503[_0x20d716('0x543')])['join'](',');}break;case'autoreply':{const _0x43d78d=_0x3ac4b0[_0x20d716('0x7b0')]['appdata'][_0x20d716('0x43a')](',');_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x611')]=isNaN(_0x43d78d[0x0])?_0x43d78d[0x0]:parseInt(_0x43d78d[0x0],0xa),_0x3ac4b0[_0x20d716('0x7b0')]['text']=_0x43d78d[_0x20d716('0x2456')](0x1,_0x43d78d['length'])[_0x20d716('0x2259')](',');}break;case _0x20d716('0x67f'):_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x86e')]=_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1c00')];break;case _0x20d716('0x256d'):_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x10ad')]=_0x3ac4b0['agent'][_0x20d716('0x1c00')][_0x20d716('0x43a')]('=')[0x0],_0x3ac4b0['agent'][_0x20d716('0xa7b')]=_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1c00')][_0x20d716('0x43a')]('=')[0x1];break;case'agi':_0x3ac4b0['agent'][_0x20d716('0x220b')]=_0x3ac4b0[_0x20d716('0x7b0')]['appdata'];break;default:{const _0x20d702=_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1c00')]['split'](',');_0x3ac4b0['agent'][_0x20d716('0x7b0')]=_0x3c8d8a()[_0x20d716('0x1a56')](_0x20d702[0x0])?_0x20d702[0x0]:isNaN(_0x20d702[0x0])?_0x20d702[0x0]:parseInt(_0x20d702[0x0],0xa),_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1f84')]=_0x3c8d8a()[_0x20d716('0x1a56')](_0x20d702[0x1])?_0x20d702[0x1]:isNaN(_0x20d702[0x1])?_0x20d702[0x1]:parseInt(_0x20d702[0x1],0xa);}break;}else _0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1f84')]=0x1e;_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1810')]&&_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1810')][_0x20d716('0x1e68')]()===_0x20d716('0xb33')&&_0x3ac4b0['agent'][_0x20d716('0x9d7')][_0x20d716('0x1e68')]()===_0x20d716('0x1edc')&&(_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x23f7')]=_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0xa04')]?_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0xa04')]['split']('$')[0x0]:undefined,_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0x1961')]=_0x3ac4b0[_0x20d716('0x7b0')]['callerID']?_0x20d716('0x20a8')+_0x3ac4b0[_0x20d716('0x7b0')][_0x20d716('0xe95')]:undefined);_0x3ac4b0[_0x20d716('0x153a')]=_0xf353e5,_0x3ac4b0[_0x20d716('0x18e2')]=_0x1d3a01,_0x580552[_0x20d716('0x1b4e')](_0x20d716('0x79b'))?_0x54187d[_0x20d716('0x166f')][_0x20d716('0x1d97')]({'fields':_0x20d716('0xd52'),'sort':'name','nolimit':_0x20d716('0x799'),'role':_0x20d716('0x7b0')})['$promise']['then'](function(_0x32b704){const _0x4d02d8=_0x20d716;_0x3ac4b0[_0x4d02d8('0x11fa')]=_0x32b704['rows']||[];})['catch'](function(_0xe02572){const _0x5bdd37=_0x20d716;_0x2cf3f8[_0x5bdd37('0x15aa')]({'title':_0xe02572[_0x5bdd37('0x276f')]?'API:'+_0xe02572['status']+_0x5bdd37('0x160c')+_0xe02572[_0x5bdd37('0x2696')]:_0x5bdd37('0x152b'),'msg':_0xe02572[_0x5bdd37('0x1e07')]?JSON[_0x5bdd37('0x100b')](_0xe02572[_0x5bdd37('0x1e07')]):_0xe02572[_0x5bdd37('0x1b75')]()});}):_0x54187d[_0x20d716('0x166f')]['get']({'fields':_0x20d716('0xd52'),'sort':_0x20d716('0x10ad'),'nolimit':'true','role':_0x20d716('0x7b0')})[_0x20d716('0x1964')][_0x20d716('0x173b')](function(_0x325d93){const _0x3bf573=_0x20d716;_0x3ac4b0[_0x3bf573('0x11fa')]=_0x325d93[_0x3bf573('0x6aa')]||[];})['then'](function(){const _0x26ebec=_0x20d716;return _0x54187d[_0x26ebec('0x170e')]['get']({'userProfileId':_0x3ac4b0[_0x26ebec('0x155f')]['userProfileId'],'sectionId':0xca})[_0x26ebec('0x1964')];})[_0x20d716('0x173b')](function(_0x65dcde){const _0x5d0120=_0x20d716,_0x6e3038=_0x65dcde&&_0x65dcde[_0x5d0120('0x6aa')]?_0x65dcde[_0x5d0120('0x6aa')][0x0]:null;if(!_0x6e3038){const _0x2737ca=[];let _0x17ac2e=null;_0x3ac4b0[_0x5d0120('0x7b0')]&&(_0x17ac2e=_0x3c8d8a()[_0x5d0120('0x18ab')](_0x3ac4b0[_0x5d0120('0x11fa')],{'name':_0x3ac4b0[_0x5d0120('0x7b0')]['agent']}));for(let _0x474a14=0x0;_0x474a14<_0x3ac4b0[_0x5d0120('0x11fa')][_0x5d0120('0x543')];_0x474a14++){_0x17ac2e&&_0x3ac4b0[_0x5d0120('0x11fa')][_0x474a14]['id']===_0x17ac2e['id']&&(_0x3ac4b0[_0x5d0120('0x11fa')][_0x474a14][_0x5d0120('0x268e')]=![],_0x2737ca[_0x5d0120('0x18bb')](_0x3ac4b0[_0x5d0120('0x11fa')][_0x474a14]));}_0x3ac4b0[_0x5d0120('0x11fa')]=_0x2737ca;}else{if(!_0x6e3038[_0x5d0120('0x273e')])return _0x54187d[_0x5d0120('0xda9')]['get']({'sectionId':_0x6e3038['id']})[_0x5d0120('0x1964')]['then'](function(_0x129dd0){const _0x15d26a=_0x5d0120,_0x28f825=_0x3c8d8a()[_0x15d26a('0x8a2')](_0x129dd0[_0x15d26a('0x6aa')],function(_0x4fd4ef){const _0xb7c280=_0x15d26a;return _0x3c8d8a()[_0xb7c280('0x18ab')](_0x3ac4b0['agents'],{'id':_0x4fd4ef[_0xb7c280('0x1ce0')]});});let _0x25d399=null;_0x3ac4b0[_0x15d26a('0x7b0')]&&(_0x25d399=_0x3c8d8a()[_0x15d26a('0x18ab')](_0x3ac4b0[_0x15d26a('0x11fa')],{'name':_0x3ac4b0[_0x15d26a('0x7b0')]['agent']}));if(_0x25d399&&!_0x3c8d8a()[_0x15d26a('0x1ec')](_0x28f825,['id',_0x25d399['id']])){const _0x1f6c70=_0x3c8d8a()[_0x15d26a('0x18ab')](_0x3ac4b0[_0x15d26a('0x11fa')],{'id':_0x25d399['id']});_0x1f6c70[_0x15d26a('0x268e')]=![],_0x28f825['push'](_0x1f6c70);}_0x3ac4b0[_0x15d26a('0x11fa')]=_0x28f825;});}})[_0x20d716('0x103c')](function(_0x26992e){const _0x4ee88e=_0x20d716;_0x2cf3f8[_0x4ee88e('0x15aa')]({'title':_0x26992e[_0x4ee88e('0x276f')]?_0x4ee88e('0x137')+_0x26992e[_0x4ee88e('0x276f')]+'\x20-\x20'+_0x26992e[_0x4ee88e('0x2696')]:'SYSTEM:GETagents','msg':_0x26992e[_0x4ee88e('0x1e07')]?JSON[_0x4ee88e('0x100b')](_0x26992e[_0x4ee88e('0x1e07')]):_0x26992e[_0x4ee88e('0x1b75')]()});});function _0xf353e5(){const _0x38cbf5=_0x20d716;_0x3ac4b0[_0x38cbf5('0x1d4a')]=[];const _0x11d657=[];_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x1810')]&&_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x1810')][_0x38cbf5('0x1e68')]()===_0x38cbf5('0xb33')&&_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x9d7')]==='outboundDial'&&(_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0xa04')]=_0x451635[_0x38cbf5('0x1429')]?(_0x3ac4b0[_0x38cbf5('0x7b0')]['prefix']||'')+_0x38cbf5('0x1957')+_0x451635['cutdigits']+'}':(_0x3ac4b0['agent'][_0x38cbf5('0x23f7')]||'')+_0x38cbf5('0x1dc5'),_0x451635[_0x38cbf5('0x76c')]!=='none'?_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x2010')][_0x38cbf5('0x2087')](_0x38cbf5('0x2474'))<0x0&&(_0x3ac4b0['agent'][_0x38cbf5('0x2010')]+=_0x38cbf5('0x2474')):_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x2010')]=_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x2010')][_0x38cbf5('0x166c')](_0x38cbf5('0x2474'),''));const _0x18cf03=_0x3c8d8a()[_0x38cbf5('0x18ab')](_0x3ac4b0[_0x38cbf5('0x11fa')],{'name':_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x7b0')]});_0x18cf03&&(_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x181c')]=_0x18cf03['id']);if(_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x9d7')]&&_0x3ac4b0[_0x38cbf5('0x7b0')]['appType']===_0x38cbf5('0xbb4')){}else switch((_0x3ac4b0[_0x38cbf5('0x7b0')]['app']||_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x9d7')])[_0x38cbf5('0x1e68')]()){case _0x38cbf5('0x256d'):_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x1c00')]=_0x3ac4b0['agent']['name']+'='+_0x3ac4b0[_0x38cbf5('0x7b0')]['value'];break;case _0x38cbf5('0xbb4'):break;default:_0x11d657[0x0]=_0x3ac4b0[_0x38cbf5('0x7b0')]['agent'],_0x11d657[0x1]=_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x1f84')],_0x3ac4b0[_0x38cbf5('0x7b0')][_0x38cbf5('0x1c00')]=_0x11d657[_0x38cbf5('0x2259')](',');}_0x1d3a01(_0x3ac4b0[_0x38cbf5('0x7b0')]);}function _0x1d3a01(_0x19a94a){_0x2b6a49['hide'](_0x19a94a);}}const _0x4159cf=_0x4f1e65;_0x2a9f37[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),'smsAccountApp',_0x566993('0x1e37'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x2a9f37(_0x2335fb,_0x230891,_0x4266a2,_0x502fc3,_0x3b1f9f,_0x451321,_0x4a2f64,_0x1e4187){const _0x5da8d6=_0x566993,_0x4f7e46=this;_0x4f7e46[_0x5da8d6('0x155f')]=_0x4a2f64[_0x5da8d6('0x14d4')](),_0x4f7e46[_0x5da8d6('0x1d4a')]=[],_0x4f7e46['title']=_0x5da8d6('0x13cb')+(_0x502fc3[_0x5da8d6('0x9d7')]||_0x502fc3[_0x5da8d6('0x17e')])[_0x5da8d6('0x1164')](),_0x4f7e46[_0x5da8d6('0x1680')]=angular[_0x5da8d6('0x2e3')](_0x502fc3),_0x4f7e46['crudPermissions']=_0x1e4187,_0x4f7e46[_0x5da8d6('0xb0')]={};if(_0x4f7e46['amazonlex'][_0x5da8d6('0x1c00')])switch(_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x9d7')]?_0x4f7e46[_0x5da8d6('0x1680')]['appType'][_0x5da8d6('0x1e68')]():_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x17e')]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0xb2b5bc=_0x4f7e46['amazonlex'][_0x5da8d6('0x1c00')][_0x5da8d6('0x43a')](',');_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x237a')]=_0xb2b5bc[0x0],_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x604')]=_0xb2b5bc[0x1],_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1a7')]=_0xb2b5bc[_0x5da8d6('0x2456')](0x2,_0xb2b5bc[_0x5da8d6('0x543')])[_0x5da8d6('0x2259')](',');}break;case _0x5da8d6('0x1680'):{const _0x18dbef=_0x4f7e46[_0x5da8d6('0x1680')]['appdata'][_0x5da8d6('0x43a')](',');_0x4f7e46['amazonlex'][_0x5da8d6('0x2e0')]=_0x18dbef[0x0],_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1d93')]=_0x18dbef[0x1],_0x4f7e46[_0x5da8d6('0x1680')]['lexregion']=_0x18dbef[0x2],_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x53')]=_0x18dbef[0x3],_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1a7')]=_0x18dbef['slice'](0x4,_0x18dbef['length'])[_0x5da8d6('0x2259')](',');}break;case _0x5da8d6('0x23fe'):{const _0x4cc95f=_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1c00')][_0x5da8d6('0x43a')](',');_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x611')]=isNaN(_0x4cc95f[0x0])?_0x4cc95f[0x0]:parseInt(_0x4cc95f[0x0],0xa),_0x4f7e46[_0x5da8d6('0x1680')]['text']=_0x4cc95f[_0x5da8d6('0x2456')](0x1,_0x4cc95f[_0x5da8d6('0x543')])[_0x5da8d6('0x2259')](',');}break;case _0x5da8d6('0x67f'):_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x86e')]=_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1c00')];break;case _0x5da8d6('0x256d'):_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x10ad')]=_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1c00')][_0x5da8d6('0x43a')]('=')[0x0],_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0xa7b')]=_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1c00')]['split']('=')[0x1];break;case _0x5da8d6('0x2426'):_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x220b')]=_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1c00')];break;default:{const _0x30742d=_0x4f7e46['amazonlex']['appdata'][_0x5da8d6('0x43a')](',');_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x2e0')]=_0x3c8d8a()[_0x5da8d6('0x1a56')](_0x30742d[0x0])?_0x30742d[0x0]:isNaN(_0x30742d[0x0])?_0x30742d[0x0]:parseInt(_0x30742d[0x0],0xa),_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1d93')]=_0x3c8d8a()[_0x5da8d6('0x1a56')](_0x30742d[0x1])?_0x30742d[0x1]:isNaN(_0x30742d[0x1])?_0x30742d[0x1]:parseInt(_0x30742d[0x1],0xa),_0x4f7e46[_0x5da8d6('0x1680')]['lexregion']=_0x3c8d8a()[_0x5da8d6('0x1a56')](_0x30742d[0x2])?_0x30742d[0x2]:isNaN(_0x30742d[0x2])?_0x30742d[0x2]:parseInt(_0x30742d[0x2],0xa),_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x53')]=_0x3c8d8a()['isEmpty'](_0x30742d[0x3])?_0x30742d[0x3]:isNaN(_0x30742d[0x3])?_0x30742d[0x3]:parseInt(_0x30742d[0x3],0xa),_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1a7')]=_0x3c8d8a()['isEmpty'](_0x30742d[0x4])?_0x30742d[0x4]:isNaN(_0x30742d[0x4])?_0x30742d[0x4]:parseInt(_0x30742d[0x4],0xa);}break;}else _0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x10fc')]=_0x5da8d6('0x1de6');_0x4f7e46['amazonlex'][_0x5da8d6('0x1810')]&&_0x4f7e46['amazonlex'][_0x5da8d6('0x1810')][_0x5da8d6('0x1e68')]()==='outbound'&&_0x4f7e46['amazonlex'][_0x5da8d6('0x9d7')]['toLowerCase']()==='outbounddial'&&(_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x23f7')]=_0x4f7e46['amazonlex']['phone']?_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0xa04')]['split']('$')[0x0]:undefined,_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0x1961')]=_0x4f7e46['amazonlex']['callerID']?_0x5da8d6('0x20a8')+_0x4f7e46[_0x5da8d6('0x1680')][_0x5da8d6('0xe95')]:undefined);_0x4f7e46[_0x5da8d6('0x153a')]=_0x48c54e,_0x4f7e46[_0x5da8d6('0x18e2')]=_0x110d88;function _0x48c54e(){const _0x1316db=_0x5da8d6;_0x4f7e46[_0x1316db('0x1d4a')]=[];const _0x20fee1=[];_0x4f7e46[_0x1316db('0x1680')]['type']&&_0x4f7e46['amazonlex'][_0x1316db('0x1810')]['toLowerCase']()==='outbound'&&_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x9d7')]===_0x1316db('0x2150')&&(_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0xa04')]=_0x3b1f9f[_0x1316db('0x1429')]?(_0x4f7e46['amazonlex'][_0x1316db('0x23f7')]||'')+_0x1316db('0x1957')+_0x3b1f9f[_0x1316db('0x1429')]+'}':(_0x4f7e46['amazonlex'][_0x1316db('0x23f7')]||'')+_0x1316db('0x1dc5'),_0x3b1f9f[_0x1316db('0x76c')]!=='none'?_0x4f7e46['amazonlex']['options'][_0x1316db('0x2087')](_0x1316db('0x2474'))<0x0&&(_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x2010')]+='U(xcally-mixmonitor-context)'):_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x2010')]=_0x4f7e46['amazonlex']['options'][_0x1316db('0x166c')](_0x1316db('0x2474'),''));if(_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x9d7')]&&_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x9d7')]==='custom'){}else switch((_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x17e')]||_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x9d7')])[_0x1316db('0x1e68')]()){case _0x1316db('0x256d'):_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x1c00')]=_0x4f7e46[_0x1316db('0x1680')]['name']+'='+_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0xa7b')];break;case'custom':break;default:_0x20fee1[0x0]=_0x4f7e46['amazonlex']['accesskeyid'],_0x20fee1[0x1]=_0x4f7e46['amazonlex'][_0x1316db('0x1d93')],_0x20fee1[0x2]=_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x10fc')],_0x20fee1[0x3]=_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x53')],_0x20fee1[0x4]=_0x4f7e46['amazonlex']['welcomemessage'],_0x4f7e46[_0x1316db('0x1680')][_0x1316db('0x1c00')]=_0x20fee1[_0x1316db('0x2259')](',');}_0x110d88(_0x4f7e46[_0x1316db('0x1680')]);}function _0x110d88(_0x530d4a){_0x2335fb['hide'](_0x530d4a);}}const _0x3915e3=_0x2a9f37;_0x27e4fc['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x193f'),'smsAccount','api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x27e4fc(_0x274d0c,_0x22d2f7,_0xc3987b,_0x49f9ea,_0x4c75df,_0x188c9c,_0x56a5b4,_0x599f38){const _0x565ded=_0x566993,_0x3bef4c=this;_0x3bef4c[_0x565ded('0x155f')]=_0x56a5b4[_0x565ded('0x14d4')](),_0x3bef4c[_0x565ded('0x1d4a')]=[],_0x3bef4c[_0x565ded('0x20d6')]=_0x565ded('0x13cb')+(_0x49f9ea[_0x565ded('0x9d7')]||_0x49f9ea[_0x565ded('0x17e')])[_0x565ded('0x1164')](),_0x3bef4c['autoreply']=angular[_0x565ded('0x2e3')](_0x49f9ea),_0x3bef4c[_0x565ded('0x1dc1')]=_0x599f38,_0x3bef4c[_0x565ded('0xb0')]={};if(_0x3bef4c['autoreply'][_0x565ded('0x1c00')])switch(_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x9d7')]?_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x9d7')]['toLowerCase']():_0x3bef4c[_0x565ded('0x23fe')]['app'][_0x565ded('0x1e68')]()){case _0x565ded('0xbb4'):break;case'dialogflow':{const _0x15aac1=_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1c00')][_0x565ded('0x43a')](',');_0x3bef4c[_0x565ded('0x23fe')]['key']=_0x15aac1[0x0],_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x604')]=_0x15aac1[0x1],_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1a7')]=_0x15aac1['slice'](0x2,_0x15aac1['length'])['join'](',');}break;case _0x565ded('0x1680'):{const _0x4fedcc=_0x3bef4c['autoreply'][_0x565ded('0x1c00')][_0x565ded('0x43a')](',');_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x2e0')]=_0x4fedcc[0x0],_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1d93')]=_0x4fedcc[0x1],_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x10fc')]=_0x4fedcc[0x2],_0x3bef4c['autoreply'][_0x565ded('0x53')]=_0x4fedcc[0x3],_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1a7')]=_0x4fedcc['slice'](0x4,_0x4fedcc[_0x565ded('0x543')])['join'](',');}break;case'autoreply':{const _0xc33b25=_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1c00')][_0x565ded('0x43a')](',');_0x3bef4c[_0x565ded('0x23fe')]['times']=isNaN(_0xc33b25[0x0])?_0xc33b25[0x0]:parseInt(_0xc33b25[0x0],0xa),_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x86e')]=_0xc33b25[_0x565ded('0x2456')](0x1,_0xc33b25['length'])['join'](',');}break;case _0x565ded('0x67f'):_0x3bef4c['autoreply'][_0x565ded('0x86e')]=_0x3bef4c[_0x565ded('0x23fe')]['appdata'];break;case _0x565ded('0x256d'):_0x3bef4c['autoreply'][_0x565ded('0x10ad')]=_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1c00')][_0x565ded('0x43a')]('=')[0x0],_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0xa7b')]=_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1c00')][_0x565ded('0x43a')]('=')[0x1];break;case _0x565ded('0x2426'):_0x3bef4c['autoreply']['project']=_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1c00')];break;default:{const _0x171bdf=_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1c00')][_0x565ded('0x43a')](',');_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x611')]=_0x3c8d8a()[_0x565ded('0x1a56')](_0x171bdf[0x0])?_0x171bdf[0x0]:isNaN(_0x171bdf[0x0])?_0x171bdf[0x0]:parseInt(_0x171bdf[0x0],0xa),_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x86e')]=_0x3c8d8a()[_0x565ded('0x1a56')](_0x171bdf[0x1])?_0x171bdf[0x1]:isNaN(_0x171bdf[0x1])?_0x171bdf[0x1]:parseInt(_0x171bdf[0x1],0xa);}}else _0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x611')]=0x1;_0x3bef4c[_0x565ded('0x23fe')]['type']&&_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1810')][_0x565ded('0x1e68')]()==='outbound'&&_0x3bef4c['autoreply'][_0x565ded('0x9d7')][_0x565ded('0x1e68')]()===_0x565ded('0x1edc')&&(_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x23f7')]=_0x3bef4c[_0x565ded('0x23fe')]['phone']?_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0xa04')]['split']('$')[0x0]:undefined,_0x3bef4c[_0x565ded('0x23fe')][_0x565ded('0x1961')]=_0x3bef4c[_0x565ded('0x23fe')]['callerID']?'CALLERID(all)='+_0x3bef4c[_0x565ded('0x23fe')]['callerID']:undefined);_0x3bef4c['saveSmsAccountApp']=_0x3f562e,_0x3bef4c[_0x565ded('0x18e2')]=_0x178649;function _0x3f562e(){const _0x5ae58f=_0x565ded;_0x3bef4c[_0x5ae58f('0x1d4a')]=[];const _0x5e5dc8=[];_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x1810')]&&_0x3bef4c['autoreply']['type']['toLowerCase']()===_0x5ae58f('0xb33')&&_0x3bef4c['autoreply'][_0x5ae58f('0x9d7')]===_0x5ae58f('0x2150')&&(_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0xa04')]=_0x4c75df['cutdigits']?(_0x3bef4c[_0x5ae58f('0x23fe')]['prefix']||'')+_0x5ae58f('0x1957')+_0x4c75df[_0x5ae58f('0x1429')]+'}':(_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x23f7')]||'')+'${EXTEN}',_0x4c75df[_0x5ae58f('0x76c')]!=='none'?_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x2010')][_0x5ae58f('0x2087')](_0x5ae58f('0x2474'))<0x0&&(_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x2010')]+=_0x5ae58f('0x2474')):_0x3bef4c['autoreply'][_0x5ae58f('0x2010')]=_0x3bef4c['autoreply']['options'][_0x5ae58f('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x9d7')]&&_0x3bef4c['autoreply'][_0x5ae58f('0x9d7')]===_0x5ae58f('0xbb4')){}else switch((_0x3bef4c[_0x5ae58f('0x23fe')]['app']||_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x9d7')])[_0x5ae58f('0x1e68')]()){case _0x5ae58f('0x256d'):_0x3bef4c['autoreply'][_0x5ae58f('0x1c00')]=_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x10ad')]+'='+_0x3bef4c[_0x5ae58f('0x23fe')]['value'];break;case _0x5ae58f('0xbb4'):break;default:_0x5e5dc8[0x0]=_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x611')],_0x5e5dc8[0x1]=_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x86e')],_0x3bef4c[_0x5ae58f('0x23fe')][_0x5ae58f('0x1c00')]=_0x5e5dc8['join'](',');}_0x178649(_0x3bef4c[_0x5ae58f('0x23fe')]);}function _0x178649(_0x119c2e){const _0x27560d=_0x565ded;_0x274d0c[_0x27560d('0x1cf4')](_0x119c2e);}}const _0x47d649=_0x27e4fc;_0x2b8a7c[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x193f'),_0x566993('0x1e37'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x2b8a7c(_0xfde51a,_0x34d67c,_0x19840a,_0x4c0b8d,_0x4c73b3,_0x364fdd,_0x368e65,_0x356833){const _0x5a83f0=_0x566993,_0x42c8ee=this;_0x42c8ee[_0x5a83f0('0x155f')]=_0x368e65[_0x5a83f0('0x14d4')](),_0x42c8ee[_0x5a83f0('0x1d4a')]=[],_0x42c8ee['title']=_0x5a83f0('0x13cb')+(_0x4c0b8d[_0x5a83f0('0x9d7')]||_0x4c0b8d[_0x5a83f0('0x17e')])[_0x5a83f0('0x1164')](),_0x42c8ee['close']=angular['copy'](_0x4c0b8d),_0x42c8ee[_0x5a83f0('0x1dc1')]=_0x356833,_0x42c8ee[_0x5a83f0('0xb0')]={};if(_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x1c00')])switch(_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x9d7')]?_0x42c8ee['close'][_0x5a83f0('0x9d7')][_0x5a83f0('0x1e68')]():_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x17e')]['toLowerCase']()){case _0x5a83f0('0xbb4'):break;case _0x5a83f0('0x1601'):{const _0x1dd5ff=_0x42c8ee['close'][_0x5a83f0('0x1c00')]['split'](',');_0x42c8ee['close'][_0x5a83f0('0x237a')]=_0x1dd5ff[0x0],_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x604')]=_0x1dd5ff[0x1],_0x42c8ee['close'][_0x5a83f0('0x1a7')]=_0x1dd5ff['slice'](0x2,_0x1dd5ff[_0x5a83f0('0x543')])['join'](',');}break;case _0x5a83f0('0x1680'):{const _0x1f0f51=_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x1c00')]['split'](',');_0x42c8ee[_0x5a83f0('0x2151')]['accesskeyid']=_0x1f0f51[0x0],_0x42c8ee[_0x5a83f0('0x2151')]['secretaccesskey']=_0x1f0f51[0x1],_0x42c8ee['close'][_0x5a83f0('0x10fc')]=_0x1f0f51[0x2],_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x53')]=_0x1f0f51[0x3],_0x42c8ee[_0x5a83f0('0x2151')]['welcomemessage']=_0x1f0f51[_0x5a83f0('0x2456')](0x4,_0x1f0f51[_0x5a83f0('0x543')])[_0x5a83f0('0x2259')](',');}break;case _0x5a83f0('0x23fe'):{const _0x5e33b9=_0x42c8ee['close'][_0x5a83f0('0x1c00')][_0x5a83f0('0x43a')](',');_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x611')]=isNaN(_0x5e33b9[0x0])?_0x5e33b9[0x0]:parseInt(_0x5e33b9[0x0],0xa),_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x86e')]=_0x5e33b9['slice'](0x1,_0x5e33b9[_0x5a83f0('0x543')])[_0x5a83f0('0x2259')](',');}break;case _0x5a83f0('0x67f'):_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x86e')]=_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x1c00')];break;case _0x5a83f0('0x256d'):_0x42c8ee[_0x5a83f0('0x2151')]['name']=_0x42c8ee['close'][_0x5a83f0('0x1c00')][_0x5a83f0('0x43a')]('=')[0x0],_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0xa7b')]=_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x1c00')][_0x5a83f0('0x43a')]('=')[0x1];break;case _0x5a83f0('0x2426'):_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x220b')]=_0x42c8ee['close'][_0x5a83f0('0x1c00')];break;default:{const _0x20fc69=_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x1c00')]['split'](',');_0x42c8ee[_0x5a83f0('0x2151')]['disposition']=_0x3c8d8a()['isEmpty'](_0x20fc69[0x0])?_0x20fc69[0x0]:isNaN(_0x20fc69[0x0])?_0x20fc69[0x0]:parseInt(_0x20fc69[0x0],0xa);}break;}else{}_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x1810')]&&_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x1810')][_0x5a83f0('0x1e68')]()==='outbound'&&_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x9d7')]['toLowerCase']()===_0x5a83f0('0x1edc')&&(_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0x23f7')]=_0x42c8ee[_0x5a83f0('0x2151')]['phone']?_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0xa04')][_0x5a83f0('0x43a')]('$')[0x0]:undefined,_0x42c8ee[_0x5a83f0('0x2151')]['callerId']=_0x42c8ee[_0x5a83f0('0x2151')][_0x5a83f0('0xe95')]?_0x5a83f0('0x20a8')+_0x42c8ee[_0x5a83f0('0x2151')]['callerID']:undefined);_0x42c8ee['saveSmsAccountApp']=_0xfbe0dc,_0x42c8ee[_0x5a83f0('0x18e2')]=_0x28eca0;function _0xfbe0dc(){const _0xfe136b=_0x5a83f0;_0x42c8ee['errors']=[];const _0x1276cb=[];_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x1810')]&&_0x42c8ee['close']['type'][_0xfe136b('0x1e68')]()==='outbound'&&_0x42c8ee['close'][_0xfe136b('0x9d7')]==='outboundDial'&&(_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0xa04')]=_0x4c73b3[_0xfe136b('0x1429')]?(_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x23f7')]||'')+_0xfe136b('0x1957')+_0x4c73b3[_0xfe136b('0x1429')]+'}':(_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x23f7')]||'')+_0xfe136b('0x1dc5'),_0x4c73b3[_0xfe136b('0x76c')]!=='none'?_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x2010')][_0xfe136b('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x2010')]+=_0xfe136b('0x2474')):_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x2010')]=_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x2010')]['replace'](_0xfe136b('0x2474'),''));if(_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x9d7')]&&_0x42c8ee[_0xfe136b('0x2151')]['appType']===_0xfe136b('0xbb4')){}else switch((_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x17e')]||_0x42c8ee[_0xfe136b('0x2151')]['appType'])[_0xfe136b('0x1e68')]()){case _0xfe136b('0x256d'):_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x1c00')]=_0x42c8ee[_0xfe136b('0x2151')]['name']+'='+_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0xa7b')];break;case'custom':break;default:_0x1276cb[0x0]=_0x42c8ee[_0xfe136b('0x2151')][_0xfe136b('0x2766')],_0x42c8ee['close'][_0xfe136b('0x1c00')]=_0x1276cb[_0xfe136b('0x2259')](',');}_0x28eca0(_0x42c8ee[_0xfe136b('0x2151')]);}function _0x28eca0(_0x274424){const _0x3d9149=_0x5a83f0;_0xfde51a[_0x3d9149('0x1cf4')](_0x274424);}}const _0x28507d=_0x2b8a7c;_0x18f5dd[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'smsAccountApp',_0x566993('0x1e37'),'api','Auth',_0x566993('0x1dc1')];function _0x18f5dd(_0x60b9f5,_0x573d30,_0x172795,_0x1f9d5b,_0x132d9b,_0x10f7c2,_0x6235eb,_0x5d1795){const _0x46b7fe=_0x566993,_0x585d1b=this;_0x585d1b[_0x46b7fe('0x155f')]=_0x6235eb[_0x46b7fe('0x14d4')](),_0x585d1b[_0x46b7fe('0x1d4a')]=[],_0x585d1b[_0x46b7fe('0x20d6')]='SMS.EDIT_'+(_0x1f9d5b[_0x46b7fe('0x9d7')]||_0x1f9d5b[_0x46b7fe('0x17e')])[_0x46b7fe('0x1164')](),_0x585d1b[_0x46b7fe('0x1601')]=angular['copy'](_0x1f9d5b),_0x585d1b[_0x46b7fe('0x1dc1')]=_0x5d1795,_0x585d1b[_0x46b7fe('0xb0')]={};if(_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x1c00')])switch(_0x585d1b['dialogflow']['appType']?_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x9d7')]['toLowerCase']():_0x585d1b['dialogflow'][_0x46b7fe('0x17e')][_0x46b7fe('0x1e68')]()){case _0x46b7fe('0xbb4'):break;case _0x46b7fe('0x1601'):{const _0x3a0a01=_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x1c00')][_0x46b7fe('0x43a')](',');_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x237a')]=_0x3a0a01[0x0],_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x604')]=_0x3a0a01[0x1],_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x1a7')]=_0x3a0a01['slice'](0x2,_0x3a0a01[_0x46b7fe('0x543')])[_0x46b7fe('0x2259')](',');}break;case'amazonlex':{const _0x5aa6b7=_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x1c00')][_0x46b7fe('0x43a')](',');_0x585d1b['dialogflow'][_0x46b7fe('0x2e0')]=_0x5aa6b7[0x0],_0x585d1b[_0x46b7fe('0x1601')]['secretaccesskey']=_0x5aa6b7[0x1],_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x10fc')]=_0x5aa6b7[0x2],_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x53')]=_0x5aa6b7[0x3],_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x1a7')]=_0x5aa6b7['slice'](0x4,_0x5aa6b7[_0x46b7fe('0x543')])[_0x46b7fe('0x2259')](',');}break;case _0x46b7fe('0x23fe'):{const _0x470798=_0x585d1b[_0x46b7fe('0x1601')]['appdata'][_0x46b7fe('0x43a')](',');_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x611')]=isNaN(_0x470798[0x0])?_0x470798[0x0]:parseInt(_0x470798[0x0],0xa),_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x86e')]=_0x470798[_0x46b7fe('0x2456')](0x1,_0x470798[_0x46b7fe('0x543')])['join'](',');}break;case'message':_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x86e')]=_0x585d1b['dialogflow'][_0x46b7fe('0x1c00')];break;case'set':_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x10ad')]=_0x585d1b[_0x46b7fe('0x1601')]['appdata'][_0x46b7fe('0x43a')]('=')[0x0],_0x585d1b[_0x46b7fe('0x1601')]['value']=_0x585d1b[_0x46b7fe('0x1601')]['appdata'][_0x46b7fe('0x43a')]('=')[0x1];break;case _0x46b7fe('0x2426'):_0x585d1b[_0x46b7fe('0x1601')]['project']=_0x585d1b[_0x46b7fe('0x1601')]['appdata'];break;default:{const _0x187f50=_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x1c00')]['split'](',');_0x585d1b['dialogflow'][_0x46b7fe('0x237a')]=_0x3c8d8a()['isEmpty'](_0x187f50[0x0])?_0x187f50[0x0]:isNaN(_0x187f50[0x0])?_0x187f50[0x0]:parseInt(_0x187f50[0x0],0xa),_0x585d1b[_0x46b7fe('0x1601')]['language']=_0x3c8d8a()['isEmpty'](_0x187f50[0x1])?_0x187f50[0x1]:isNaN(_0x187f50[0x1])?_0x187f50[0x1]:parseInt(_0x187f50[0x1],0xa),_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x1a7')]=_0x3c8d8a()['isEmpty'](_0x187f50[0x2])?_0x187f50[0x2]:isNaN(_0x187f50[0x2])?_0x187f50[0x2]:parseInt(_0x187f50[0x2],0xa);}break;}else _0x585d1b['dialogflow'][_0x46b7fe('0x604')]='en';_0x585d1b['dialogflow'][_0x46b7fe('0x1810')]&&_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x1810')]['toLowerCase']()===_0x46b7fe('0xb33')&&_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0x9d7')][_0x46b7fe('0x1e68')]()===_0x46b7fe('0x1edc')&&(_0x585d1b[_0x46b7fe('0x1601')]['prefix']=_0x585d1b['dialogflow']['phone']?_0x585d1b[_0x46b7fe('0x1601')]['phone'][_0x46b7fe('0x43a')]('$')[0x0]:undefined,_0x585d1b['dialogflow']['callerId']=_0x585d1b[_0x46b7fe('0x1601')][_0x46b7fe('0xe95')]?_0x46b7fe('0x20a8')+_0x585d1b['dialogflow']['callerID']:undefined);_0x585d1b[_0x46b7fe('0x153a')]=_0x499432,_0x585d1b[_0x46b7fe('0x18e2')]=_0x1926a1;function _0x499432(){const _0x77fdfe=_0x46b7fe;_0x585d1b[_0x77fdfe('0x1d4a')]=[];const _0x308f5a=[];_0x585d1b['dialogflow'][_0x77fdfe('0x1810')]&&_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x1810')][_0x77fdfe('0x1e68')]()===_0x77fdfe('0xb33')&&_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x9d7')]==='outboundDial'&&(_0x585d1b[_0x77fdfe('0x1601')]['phone']=_0x132d9b[_0x77fdfe('0x1429')]?(_0x585d1b[_0x77fdfe('0x1601')]['prefix']||'')+'${EXTEN:'+_0x132d9b[_0x77fdfe('0x1429')]+'}':(_0x585d1b[_0x77fdfe('0x1601')]['prefix']||'')+_0x77fdfe('0x1dc5'),_0x132d9b['recordingFormat']!=='none'?_0x585d1b['dialogflow']['options']['indexOf'](_0x77fdfe('0x2474'))<0x0&&(_0x585d1b['dialogflow']['options']+=_0x77fdfe('0x2474')):_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x2010')]=_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x2010')][_0x77fdfe('0x166c')](_0x77fdfe('0x2474'),''));if(_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x9d7')]&&_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x9d7')]===_0x77fdfe('0xbb4')){}else switch((_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x17e')]||_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x9d7')])[_0x77fdfe('0x1e68')]()){case _0x77fdfe('0x256d'):_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x1c00')]=_0x585d1b[_0x77fdfe('0x1601')]['name']+'='+_0x585d1b['dialogflow'][_0x77fdfe('0xa7b')];break;case'custom':break;default:_0x308f5a[0x0]=_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x237a')],_0x308f5a[0x1]=_0x585d1b[_0x77fdfe('0x1601')][_0x77fdfe('0x604')],_0x308f5a[0x2]=_0x585d1b['dialogflow'][_0x77fdfe('0x1a7')],_0x585d1b['dialogflow'][_0x77fdfe('0x1c00')]=_0x308f5a[_0x77fdfe('0x2259')](',');}_0x1926a1(_0x585d1b[_0x77fdfe('0x1601')]);}function _0x1926a1(_0x1bcb6c){const _0x4fee47=_0x46b7fe;_0x60b9f5[_0x4fee47('0x1cf4')](_0x1bcb6c);}}const _0xb23984=_0x18f5dd;_0xf81a99[_0x566993('0x17bb')]=['$mdDialog','$q','toasty',_0x566993('0x193f'),'smsAccount','api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0xf81a99(_0x1d8967,_0x213276,_0x146990,_0x5c2bee,_0x1256f4,_0x223805,_0x3465ce,_0x4f13c5){const _0x419775=_0x566993,_0x6871bf=this;_0x6871bf[_0x419775('0x155f')]=_0x3465ce['getCurrentUser'](),_0x6871bf['errors']=[],_0x6871bf[_0x419775('0x20d6')]=_0x419775('0x13cb')+(_0x5c2bee[_0x419775('0x9d7')]||_0x5c2bee['app'])[_0x419775('0x1164')](),_0x6871bf[_0x419775('0xf5d')]=angular[_0x419775('0x2e3')](_0x5c2bee),_0x6871bf[_0x419775('0x1dc1')]=_0x4f13c5,_0x6871bf[_0x419775('0xb0')]={};if(_0x6871bf[_0x419775('0xf5d')]['appdata'])switch(_0x6871bf[_0x419775('0xf5d')][_0x419775('0x9d7')]?_0x6871bf[_0x419775('0xf5d')][_0x419775('0x9d7')]['toLowerCase']():_0x6871bf[_0x419775('0xf5d')][_0x419775('0x17e')][_0x419775('0x1e68')]()){case'custom':break;case _0x419775('0x1601'):{const _0x45e662=_0x6871bf['gotoif'][_0x419775('0x1c00')][_0x419775('0x43a')](',');_0x6871bf[_0x419775('0xf5d')][_0x419775('0x237a')]=_0x45e662[0x0],_0x6871bf['gotoif'][_0x419775('0x604')]=_0x45e662[0x1],_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1a7')]=_0x45e662['slice'](0x2,_0x45e662[_0x419775('0x543')])[_0x419775('0x2259')](',');}break;case'amazonlex':{const _0x10ad3e=_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1c00')][_0x419775('0x43a')](',');_0x6871bf[_0x419775('0xf5d')]['accesskeyid']=_0x10ad3e[0x0],_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1d93')]=_0x10ad3e[0x1],_0x6871bf[_0x419775('0xf5d')][_0x419775('0x10fc')]=_0x10ad3e[0x2],_0x6871bf[_0x419775('0xf5d')][_0x419775('0x53')]=_0x10ad3e[0x3],_0x6871bf['gotoif'][_0x419775('0x1a7')]=_0x10ad3e[_0x419775('0x2456')](0x4,_0x10ad3e[_0x419775('0x543')])[_0x419775('0x2259')](',');}break;case'autoreply':{const _0x202d30=_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1c00')][_0x419775('0x43a')](',');_0x6871bf[_0x419775('0xf5d')]['times']=isNaN(_0x202d30[0x0])?_0x202d30[0x0]:parseInt(_0x202d30[0x0],0xa),_0x6871bf[_0x419775('0xf5d')]['text']=_0x202d30[_0x419775('0x2456')](0x1,_0x202d30['length'])['join'](',');}break;case _0x419775('0x67f'):_0x6871bf[_0x419775('0xf5d')]['text']=_0x6871bf['gotoif'][_0x419775('0x1c00')];break;case _0x419775('0x256d'):_0x6871bf[_0x419775('0xf5d')][_0x419775('0x10ad')]=_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1c00')]['split']('=')[0x0],_0x6871bf[_0x419775('0xf5d')][_0x419775('0xa7b')]=_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1c00')][_0x419775('0x43a')]('=')[0x1];break;case _0x419775('0x2426'):_0x6871bf[_0x419775('0xf5d')][_0x419775('0x220b')]=_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1c00')];break;default:{const _0x876c59=_0x6871bf['gotoif'][_0x419775('0x1c00')][_0x419775('0x43a')](',');_0x6871bf['gotoif'][_0x419775('0x1adb')]=_0x3c8d8a()[_0x419775('0x1a56')](_0x876c59[0x0])?_0x876c59[0x0]:isNaN(_0x876c59[0x0])?_0x876c59[0x0]:parseInt(_0x876c59[0x0],0xa),_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1cd7')]=_0x3c8d8a()[_0x419775('0x1a56')](_0x876c59[0x1])?_0x876c59[0x1]:isNaN(_0x876c59[0x1])?_0x876c59[0x1]:parseInt(_0x876c59[0x1],0xa),_0x6871bf[_0x419775('0xf5d')][_0x419775('0x1ec9')]=_0x3c8d8a()['isEmpty'](_0x876c59[0x2])?_0x876c59[0x2]:isNaN(_0x876c59[0x2])?_0x876c59[0x2]:parseInt(_0x876c59[0x2],0xa);}break;}else{}_0x6871bf[_0x419775('0xf5d')]['type']&&_0x6871bf['gotoif'][_0x419775('0x1810')][_0x419775('0x1e68')]()===_0x419775('0xb33')&&_0x6871bf[_0x419775('0xf5d')]['appType'][_0x419775('0x1e68')]()===_0x419775('0x1edc')&&(_0x6871bf[_0x419775('0xf5d')][_0x419775('0x23f7')]=_0x6871bf[_0x419775('0xf5d')][_0x419775('0xa04')]?_0x6871bf[_0x419775('0xf5d')]['phone']['split']('$')[0x0]:undefined,_0x6871bf[_0x419775('0xf5d')]['callerId']=_0x6871bf[_0x419775('0xf5d')][_0x419775('0xe95')]?_0x419775('0x20a8')+_0x6871bf['gotoif']['callerID']:undefined);_0x6871bf[_0x419775('0x153a')]=_0x53a0f2,_0x6871bf[_0x419775('0x18e2')]=_0x1ddb77;function _0x53a0f2(){const _0xeeca5d=_0x419775;_0x6871bf[_0xeeca5d('0x1d4a')]=[];const _0x223c5c=[];_0x6871bf[_0xeeca5d('0xf5d')]['type']&&_0x6871bf[_0xeeca5d('0xf5d')][_0xeeca5d('0x1810')]['toLowerCase']()===_0xeeca5d('0xb33')&&_0x6871bf[_0xeeca5d('0xf5d')][_0xeeca5d('0x9d7')]===_0xeeca5d('0x2150')&&(_0x6871bf[_0xeeca5d('0xf5d')]['phone']=_0x1256f4[_0xeeca5d('0x1429')]?(_0x6871bf['gotoif'][_0xeeca5d('0x23f7')]||'')+'${EXTEN:'+_0x1256f4[_0xeeca5d('0x1429')]+'}':(_0x6871bf['gotoif'][_0xeeca5d('0x23f7')]||'')+_0xeeca5d('0x1dc5'),_0x1256f4[_0xeeca5d('0x76c')]!==_0xeeca5d('0x2741')?_0x6871bf['gotoif'][_0xeeca5d('0x2010')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x6871bf[_0xeeca5d('0xf5d')]['options']+='U(xcally-mixmonitor-context)'):_0x6871bf[_0xeeca5d('0xf5d')][_0xeeca5d('0x2010')]=_0x6871bf[_0xeeca5d('0xf5d')][_0xeeca5d('0x2010')][_0xeeca5d('0x166c')](_0xeeca5d('0x2474'),''));if(_0x6871bf[_0xeeca5d('0xf5d')][_0xeeca5d('0x9d7')]&&_0x6871bf[_0xeeca5d('0xf5d')]['appType']===_0xeeca5d('0xbb4')){}else switch((_0x6871bf[_0xeeca5d('0xf5d')][_0xeeca5d('0x17e')]||_0x6871bf['gotoif'][_0xeeca5d('0x9d7')])[_0xeeca5d('0x1e68')]()){case _0xeeca5d('0x256d'):_0x6871bf['gotoif']['appdata']=_0x6871bf[_0xeeca5d('0xf5d')][_0xeeca5d('0x10ad')]+'='+_0x6871bf[_0xeeca5d('0xf5d')][_0xeeca5d('0xa7b')];break;case'custom':break;default:_0x223c5c[0x0]=_0x6871bf[_0xeeca5d('0xf5d')]['condition'],_0x223c5c[0x1]=_0x6871bf['gotoif'][_0xeeca5d('0x1cd7')],_0x223c5c[0x2]=_0x6871bf[_0xeeca5d('0xf5d')]['falsepriority'],_0x6871bf['gotoif'][_0xeeca5d('0x1c00')]=_0x223c5c[_0xeeca5d('0x2259')](',');}_0x1ddb77(_0x6871bf[_0xeeca5d('0xf5d')]);}function _0x1ddb77(_0x5d0ce2){const _0x4a2b44=_0x419775;_0x1d8967[_0x4a2b44('0x1cf4')](_0x5d0ce2);}}const _0x478bc8=_0xf81a99;_0x3aee5b[_0x566993('0x17bb')]=['$mdDialog','$q','toasty',_0x566993('0x193f'),_0x566993('0x1e37'),_0x566993('0xbd4'),'Auth','crudPermissions'];function _0x3aee5b(_0x57a0c1,_0x4f7eff,_0x287a54,_0x3925e5,_0x2108cb,_0x1f1442,_0x169c0b,_0x214eb3){const _0x12a218=_0x566993,_0x1acb05=this;_0x1acb05['currentUser']=_0x169c0b[_0x12a218('0x14d4')](),_0x1acb05[_0x12a218('0x1d4a')]=[],_0x1acb05['title']='SMS.EDIT_'+(_0x3925e5[_0x12a218('0x9d7')]||_0x3925e5['app'])[_0x12a218('0x1164')](),_0x1acb05[_0x12a218('0x2ac')]=angular[_0x12a218('0x2e3')](_0x3925e5),_0x1acb05['crudPermissions']=_0x214eb3,_0x1acb05['hasModulePermissions']={};if(_0x1acb05[_0x12a218('0x2ac')]['appdata'])switch(_0x1acb05[_0x12a218('0x2ac')]['appType']?_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x9d7')][_0x12a218('0x1e68')]():_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x17e')][_0x12a218('0x1e68')]()){case _0x12a218('0xbb4'):break;case _0x12a218('0x1601'):{const _0x1e5630=_0x1acb05['gotop'][_0x12a218('0x1c00')][_0x12a218('0x43a')](',');_0x1acb05['gotop']['key']=_0x1e5630[0x0],_0x1acb05['gotop'][_0x12a218('0x604')]=_0x1e5630[0x1],_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x1a7')]=_0x1e5630['slice'](0x2,_0x1e5630[_0x12a218('0x543')])[_0x12a218('0x2259')](',');}break;case'amazonlex':{const _0x189158=_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x1c00')][_0x12a218('0x43a')](',');_0x1acb05['gotop'][_0x12a218('0x2e0')]=_0x189158[0x0],_0x1acb05['gotop'][_0x12a218('0x1d93')]=_0x189158[0x1],_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x10fc')]=_0x189158[0x2],_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x53')]=_0x189158[0x3],_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x1a7')]=_0x189158[_0x12a218('0x2456')](0x4,_0x189158['length'])[_0x12a218('0x2259')](',');}break;case _0x12a218('0x23fe'):{const _0xe6199=_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x1c00')][_0x12a218('0x43a')](',');_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x611')]=isNaN(_0xe6199[0x0])?_0xe6199[0x0]:parseInt(_0xe6199[0x0],0xa),_0x1acb05['gotop'][_0x12a218('0x86e')]=_0xe6199['slice'](0x1,_0xe6199[_0x12a218('0x543')])[_0x12a218('0x2259')](',');}break;case'message':_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x86e')]=_0x1acb05[_0x12a218('0x2ac')]['appdata'];break;case _0x12a218('0x256d'):_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x10ad')]=_0x1acb05['gotop'][_0x12a218('0x1c00')][_0x12a218('0x43a')]('=')[0x0],_0x1acb05[_0x12a218('0x2ac')]['value']=_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x1c00')][_0x12a218('0x43a')]('=')[0x1];break;case _0x12a218('0x2426'):_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x220b')]=_0x1acb05[_0x12a218('0x2ac')]['appdata'];break;default:{const _0x165da7=_0x1acb05[_0x12a218('0x2ac')]['appdata'][_0x12a218('0x43a')](',');_0x1acb05[_0x12a218('0x2ac')]['priority']=_0x3c8d8a()[_0x12a218('0x1a56')](_0x165da7[0x0])?_0x165da7[0x0]:isNaN(_0x165da7[0x0])?_0x165da7[0x0]:parseInt(_0x165da7[0x0],0xa);}break;}else{}_0x1acb05['gotop'][_0x12a218('0x1810')]&&_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x1810')]['toLowerCase']()==='outbound'&&_0x1acb05['gotop'][_0x12a218('0x9d7')][_0x12a218('0x1e68')]()===_0x12a218('0x1edc')&&(_0x1acb05[_0x12a218('0x2ac')]['prefix']=_0x1acb05['gotop']['phone']?_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0xa04')][_0x12a218('0x43a')]('$')[0x0]:undefined,_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0x1961')]=_0x1acb05['gotop'][_0x12a218('0xe95')]?_0x12a218('0x20a8')+_0x1acb05[_0x12a218('0x2ac')][_0x12a218('0xe95')]:undefined);_0x1acb05['saveSmsAccountApp']=_0x507319,_0x1acb05['closeDialog']=_0x1fa0d1;function _0x507319(){const _0x13c34a=_0x12a218;_0x1acb05[_0x13c34a('0x1d4a')]=[];const _0x23cdda=[];_0x1acb05[_0x13c34a('0x2ac')][_0x13c34a('0x1810')]&&_0x1acb05['gotop']['type']['toLowerCase']()===_0x13c34a('0xb33')&&_0x1acb05[_0x13c34a('0x2ac')][_0x13c34a('0x9d7')]==='outboundDial'&&(_0x1acb05['gotop'][_0x13c34a('0xa04')]=_0x2108cb[_0x13c34a('0x1429')]?(_0x1acb05[_0x13c34a('0x2ac')][_0x13c34a('0x23f7')]||'')+'${EXTEN:'+_0x2108cb[_0x13c34a('0x1429')]+'}':(_0x1acb05[_0x13c34a('0x2ac')]['prefix']||'')+_0x13c34a('0x1dc5'),_0x2108cb['recordingFormat']!==_0x13c34a('0x2741')?_0x1acb05[_0x13c34a('0x2ac')][_0x13c34a('0x2010')][_0x13c34a('0x2087')](_0x13c34a('0x2474'))<0x0&&(_0x1acb05['gotop']['options']+='U(xcally-mixmonitor-context)'):_0x1acb05[_0x13c34a('0x2ac')][_0x13c34a('0x2010')]=_0x1acb05[_0x13c34a('0x2ac')]['options']['replace'](_0x13c34a('0x2474'),''));if(_0x1acb05[_0x13c34a('0x2ac')]['appType']&&_0x1acb05['gotop'][_0x13c34a('0x9d7')]===_0x13c34a('0xbb4')){}else switch((_0x1acb05['gotop'][_0x13c34a('0x17e')]||_0x1acb05[_0x13c34a('0x2ac')][_0x13c34a('0x9d7')])['toLowerCase']()){case _0x13c34a('0x256d'):_0x1acb05['gotop'][_0x13c34a('0x1c00')]=_0x1acb05['gotop'][_0x13c34a('0x10ad')]+'='+_0x1acb05['gotop'][_0x13c34a('0xa7b')];break;case _0x13c34a('0xbb4'):break;default:_0x23cdda[0x0]=_0x1acb05['gotop'][_0x13c34a('0xb3')],_0x1acb05[_0x13c34a('0x2ac')][_0x13c34a('0x1c00')]=_0x23cdda[_0x13c34a('0x2259')](',');}_0x1fa0d1(_0x1acb05[_0x13c34a('0x2ac')]);}function _0x1fa0d1(_0x570208){const _0x5e2002=_0x12a218;_0x57a0c1[_0x5e2002('0x1cf4')](_0x570208);}}const _0x37562a=_0x3aee5b;_0xd0bcd8[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x1fe5'),_0x566993('0x1276'),_0x566993('0x1975'),_0x566993('0x55a'),_0x566993('0x21c4'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0xd0bcd8(_0x375263,_0x118947,_0x546c93,_0x153380,_0x4f2b24,_0x1458cc,_0x4e7b73,_0x454079,_0x311e43,_0x54619f){const _0x448a7f=_0x566993,_0x13d8b8=this;_0x13d8b8[_0x448a7f('0x155f')]=_0x311e43['getCurrentUser'](),_0x13d8b8[_0x448a7f('0x1d4a')]=[],_0x13d8b8[_0x448a7f('0x20d6')]=_0x448a7f('0x117b'),_0x13d8b8[_0x448a7f('0x55a')]=angular[_0x448a7f('0x2e3')](_0x4f2b24),_0x13d8b8[_0x448a7f('0x21c4')]=_0x1458cc,_0x13d8b8['newInterval']=![],_0x13d8b8['types']=['always',_0x448a7f('0xbb4'),'list'],_0x13d8b8['crudPermissions']=_0x54619f,_0x13d8b8[_0x448a7f('0x1626')]=_0x153380[_0x448a7f('0x89e')](),_0x13d8b8[_0x448a7f('0x8e4')]=_0x153380[_0x448a7f('0x266c')](),_0x13d8b8[_0x448a7f('0x1d95')]=_0x153380[_0x448a7f('0xb02')](),_0x13d8b8[_0x448a7f('0x2742')]=_0x153380[_0x448a7f('0x1c80')]();if(!_0x13d8b8[_0x448a7f('0x55a')])_0x13d8b8[_0x448a7f('0x55a')]={'interval':'*,*,*,*'},_0x13d8b8['type']='always',_0x13d8b8[_0x448a7f('0x20d6')]='TOOLS.NEW_INTERVAL',_0x13d8b8[_0x448a7f('0x1d80')]=!![];else{if(_0x13d8b8[_0x448a7f('0x55a')][_0x448a7f('0x55a')]!==_0x448a7f('0x17c5')){_0x13d8b8[_0x448a7f('0x1810')]=_0x448a7f('0xbb4');const _0x4863e8=_0x13d8b8[_0x448a7f('0x55a')][_0x448a7f('0x55a')]['split'](','),_0x238e74=_0x4863e8[0x0],_0x1e0a49=_0x4863e8[0x1],_0x584f00=_0x4863e8[0x2],_0x4faa63=_0x4863e8[0x3];if(_0x238e74!=='*'){const _0x2d9379=_0x238e74[_0x448a7f('0x43a')]('-')[0x0],_0x27c69d=_0x238e74[_0x448a7f('0x43a')]('-')[0x1];let _0x3da134;_0x3da134=new Date(),_0x3da134[_0x448a7f('0xd32')](Number(_0x2d9379[_0x448a7f('0x43a')](':')[0x0])),_0x3da134[_0x448a7f('0x14f9')](Number(_0x2d9379[_0x448a7f('0x43a')](':')[0x1])),_0x13d8b8['timeRangeFrom']=_0x3da134,_0x3da134=new Date(),_0x3da134['setHours'](Number(_0x27c69d[_0x448a7f('0x43a')](':')[0x0])),_0x3da134['setMinutes'](Number(_0x27c69d[_0x448a7f('0x43a')](':')[0x1])),_0x13d8b8['timeRangeTo']=_0x3da134;}_0x1e0a49!=='*'&&(_0x13d8b8['dayOfWeekFrom']=_0x1e0a49[_0x448a7f('0x43a')]('-')[0x0],_0x13d8b8['dayOfWeekTo']=_0x1e0a49['split']('-')[0x1]),_0x584f00!=='*'&&(_0x13d8b8[_0x448a7f('0x6df')]=_0x584f00[_0x448a7f('0x43a')]('-')[0x0],_0x13d8b8['monthDayTo']=_0x584f00[_0x448a7f('0x43a')]('-')[0x1]),_0x4faa63!=='*'&&(_0x13d8b8['monthFrom']=_0x4faa63['split']('-')[0x0],_0x13d8b8[_0x448a7f('0xf74')]=_0x4faa63[_0x448a7f('0x43a')]('-')[0x1]);}else _0x13d8b8[_0x448a7f('0x1810')]='always';}_0x375263['params']['id']&&!_0x13d8b8[_0x448a7f('0x55a')][_0x448a7f('0x17c2')]&&(_0x13d8b8[_0x448a7f('0x55a')]['IntervalId']=_0x375263[_0x448a7f('0x197a')]['id']);_0x13d8b8[_0x448a7f('0x55a')][_0x448a7f('0x600')]&&_0x13d8b8[_0x448a7f('0x55a')][_0x448a7f('0x17c2')]&&(_0x13d8b8[_0x448a7f('0x1810')]=_0x448a7f('0x3e3'));_0x13d8b8[_0x448a7f('0x11fc')]=_0x140f1d,_0x13d8b8['saveInterval']=_0x59c4b1,_0x13d8b8[_0x448a7f('0x18e2')]=_0x680d14;_0x13d8b8[_0x448a7f('0x55a')][_0x448a7f('0x17c2')]&&(_0x311e43[_0x448a7f('0x1b4e')](_0x448a7f('0x79b'))?_0x454079[_0x448a7f('0x55a')][_0x448a7f('0x1d97')]({'fields':_0x448a7f('0x2666'),'IntervalId':'null','nolimit':!![]})['$promise'][_0x448a7f('0x173b')](function(_0x435de2){const _0x11358d=_0x448a7f;_0x13d8b8[_0x11358d('0x21c4')]=_0x435de2[_0x11358d('0x6aa')]||[];})['catch'](function(_0xbbce26){const _0x4d441c=_0x448a7f;_0x4e7b73[_0x4d441c('0x15aa')]({'title':_0xbbce26[_0x4d441c('0x276f')]?'API:'+_0xbbce26[_0x4d441c('0x276f')]+_0x4d441c('0x160c')+_0xbbce26[_0x4d441c('0x2696')]:_0x4d441c('0x1daf'),'msg':_0xbbce26[_0x4d441c('0x1e07')]?JSON[_0x4d441c('0x100b')](_0xbbce26[_0x4d441c('0x1e07')]):_0xbbce26[_0x4d441c('0x1b75')]()});}):_0x454079[_0x448a7f('0x55a')][_0x448a7f('0x1d97')]({'fields':_0x448a7f('0x2666'),'IntervalId':_0x448a7f('0x877'),'nolimit':!![]})[_0x448a7f('0x1964')][_0x448a7f('0x173b')](function(_0x21432a){const _0x45d3e3=_0x448a7f;_0x13d8b8[_0x45d3e3('0x21c4')]=_0x21432a['rows']||[];})['then'](function(){const _0x3ed4a5=_0x448a7f;return _0x454079[_0x3ed4a5('0x170e')][_0x3ed4a5('0x1d97')]({'userProfileId':_0x13d8b8[_0x3ed4a5('0x155f')]['userProfileId'],'sectionId':0x3ec})[_0x3ed4a5('0x1964')];})[_0x448a7f('0x173b')](function(_0x1d0751){const _0x135e29=_0x448a7f,_0xb7d58a=_0x1d0751&&_0x1d0751[_0x135e29('0x6aa')]?_0x1d0751[_0x135e29('0x6aa')][0x0]:null;if(!_0xb7d58a)_0x13d8b8['intervals']=[];else{if(!_0xb7d58a['autoAssociation'])return _0x454079[_0x135e29('0xda9')][_0x135e29('0x1d97')]({'sectionId':_0xb7d58a['id']})[_0x135e29('0x1964')][_0x135e29('0x173b')](function(_0x43a12f){const _0x22d2ab=_0x135e29,_0x2a9e0e=_0x43a12f&&_0x43a12f[_0x22d2ab('0x6aa')]?_0x43a12f[_0x22d2ab('0x6aa')]:[],_0x1c499c=[];let _0x4ba094=null;_0x13d8b8[_0x22d2ab('0x55a')]&&(_0x4ba094=_0x3c8d8a()[_0x22d2ab('0x18ab')](_0x13d8b8['intervals'],{'name':_0x13d8b8[_0x22d2ab('0x55a')][_0x22d2ab('0x600')]})),_0x4ba094&&!_0x3c8d8a()[_0x22d2ab('0x1ec')](_0x2a9e0e,[_0x22d2ab('0x1ce0'),_0x4ba094['id']])&&_0x13d8b8[_0x22d2ab('0x21c4')][_0x22d2ab('0xa6a')](function(_0x58cec1){const _0x5e8aed=_0x22d2ab;_0x58cec1['id']===_0x4ba094['id']&&(_0x58cec1[_0x5e8aed('0x268e')]=![],_0x1c499c['push'](_0x58cec1));}),_0x13d8b8[_0x22d2ab('0x21c4')]=_0x1c499c;});}})['catch'](function(_0x4c998e){const _0x2922ad=_0x448a7f;_0x4e7b73[_0x2922ad('0x15aa')]({'title':_0x4c998e['status']?_0x2922ad('0x137')+_0x4c998e[_0x2922ad('0x276f')]+_0x2922ad('0x160c')+_0x4c998e[_0x2922ad('0x2696')]:_0x2922ad('0x1daf'),'msg':_0x4c998e['data']?JSON[_0x2922ad('0x100b')](_0x4c998e['data']):_0x4c998e[_0x2922ad('0x1b75')]()});}));function _0x2da937(){const _0x4097c2=_0x448a7f;switch(_0x13d8b8[_0x4097c2('0x1810')]){case _0x4097c2('0x17b3'):case _0x4097c2('0x3e3'):return _0x4097c2('0x17c5');case _0x4097c2('0xbb4'):{const _0x24147b=[];if(_0x13d8b8[_0x4097c2('0x2515')]!=='*'&&_0x13d8b8['timeRangeFrom']&&_0x13d8b8[_0x4097c2('0x437')]){const _0xc7d2fb=(_0x13d8b8[_0x4097c2('0x2515')][_0x4097c2('0x1a28')]()<0xa?'0':'')+_0x13d8b8['timeRangeFrom'][_0x4097c2('0x1a28')]()+':'+((_0x13d8b8[_0x4097c2('0x2515')]['getMinutes']()<0xa?'0':'')+_0x13d8b8[_0x4097c2('0x2515')][_0x4097c2('0x1d2a')]()),_0x26d82d=(_0x13d8b8[_0x4097c2('0x437')][_0x4097c2('0x1a28')]()<0xa?'0':'')+_0x13d8b8['timeRangeTo'][_0x4097c2('0x1a28')]()+':'+((_0x13d8b8[_0x4097c2('0x437')][_0x4097c2('0x1d2a')]()<0xa?'0':'')+_0x13d8b8[_0x4097c2('0x437')]['getMinutes']());_0x24147b[_0x4097c2('0x18bb')](_0xc7d2fb+'-'+_0x26d82d);}else _0x24147b['push']('*');return _0x13d8b8[_0x4097c2('0x37a')]?_0x13d8b8[_0x4097c2('0x269e')]?_0x24147b[_0x4097c2('0x18bb')](_0x13d8b8[_0x4097c2('0x37a')]+'-'+_0x13d8b8['dayOfWeekTo']):_0x24147b[_0x4097c2('0x18bb')](_0x13d8b8['dayOfWeekFrom']):_0x24147b[_0x4097c2('0x18bb')]('*'),_0x13d8b8[_0x4097c2('0x6df')]?_0x13d8b8[_0x4097c2('0x185e')]?_0x24147b['push'](_0x13d8b8['monthDayFrom']+'-'+_0x13d8b8[_0x4097c2('0x185e')]):_0x24147b[_0x4097c2('0x18bb')](_0x13d8b8[_0x4097c2('0x6df')]):_0x24147b['push']('*'),_0x13d8b8[_0x4097c2('0x1f34')]?_0x13d8b8[_0x4097c2('0xf74')]?_0x24147b['push'](_0x13d8b8['monthFrom']+'-'+_0x13d8b8['monthTo']):_0x24147b[_0x4097c2('0x18bb')](_0x13d8b8['monthFrom']):_0x24147b[_0x4097c2('0x18bb')]('*'),_0x24147b[_0x4097c2('0x2259')]();}}}function _0x140f1d(){const _0x32a7ce=_0x448a7f;_0x13d8b8[_0x32a7ce('0x1d4a')]=[],_0x13d8b8[_0x32a7ce('0x55a')][_0x32a7ce('0x55a')]=_0x2da937(),_0x454079[_0x32a7ce('0x55a')]['save'](_0x13d8b8[_0x32a7ce('0x55a')])['$promise'][_0x32a7ce('0x173b')](function(_0x3acfa9){const _0x260a83=_0x32a7ce;_0x13d8b8[_0x260a83('0x21c4')][_0x260a83('0x18bb')](_0x3acfa9),_0x4e7b73[_0x260a83('0xdfe')]({'title':_0x260a83('0x17fa'),'msg':_0x13d8b8[_0x260a83('0x55a')][_0x260a83('0x10ad')]?_0x13d8b8[_0x260a83('0x55a')]['name']+_0x260a83('0x209a'):''}),_0x680d14();})[_0x32a7ce('0x103c')](function(_0x5f43c3){const _0x8cd70e=_0x32a7ce;console[_0x8cd70e('0x15aa')](_0x5f43c3),_0x13d8b8[_0x8cd70e('0x1d4a')]=_0x5f43c3[_0x8cd70e('0x1e07')][_0x8cd70e('0x1d4a')]||[{'message':_0x5f43c3[_0x8cd70e('0x1b75')](),'type':_0x8cd70e('0xbde')}];});}function _0x59c4b1(){const _0x1b204b=_0x448a7f;_0x13d8b8[_0x1b204b('0x1d4a')]=[],_0x13d8b8['interval'][_0x1b204b('0x55a')]=_0x2da937(),_0x13d8b8[_0x1b204b('0x55a')]['application']?(_0x13d8b8['type']!=='list'&&(_0x13d8b8[_0x1b204b('0x55a')][_0x1b204b('0x600')]=null),_0x680d14(_0x13d8b8[_0x1b204b('0x55a')])):_0x454079[_0x1b204b('0x55a')][_0x1b204b('0x1842')]({'id':_0x13d8b8[_0x1b204b('0x55a')]['id']},_0x13d8b8['interval'])[_0x1b204b('0x1964')][_0x1b204b('0x173b')](function(_0x58dc7a){const _0x10fb16=_0x1b204b,_0x149f00=_0x3c8d8a()['find'](_0x13d8b8[_0x10fb16('0x21c4')],{'id':_0x58dc7a['id']});_0x149f00&&_0x3c8d8a()[_0x10fb16('0x9ef')](_0x149f00,_0x58dc7a),_0x4e7b73['success']({'title':'Interval\x20properly\x20saved!','msg':_0x10fb16('0x227f')}),_0x680d14();})[_0x1b204b('0x103c')](function(_0x5e6325){const _0x570145=_0x1b204b;console[_0x570145('0x15aa')](_0x5e6325),_0x13d8b8[_0x570145('0x1d4a')]=_0x5e6325['data'][_0x570145('0x1d4a')]||[{'message':_0x5e6325[_0x570145('0x1b75')](),'type':'api.interval.update'}];});}function _0x680d14(_0x5ba533){_0x118947['hide'](_0x5ba533);}}const _0x41cc49=_0xd0bcd8;_0x4019f2['$inject']=[_0x566993('0x1fe5'),'$q','toasty','smsAccountApp','smsAccount','api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4019f2(_0x229fc4,_0x3b0a66,_0x2a3947,_0x44cadf,_0x381b6c,_0x21aa4c,_0x24f6f3,_0x200c5f){const _0x3d52d1=_0x566993,_0x2b06c3=this;_0x2b06c3['currentUser']=_0x24f6f3[_0x3d52d1('0x14d4')](),_0x2b06c3[_0x3d52d1('0x1d4a')]=[],_0x2b06c3['title']=_0x3d52d1('0x13cb')+(_0x44cadf['appType']||_0x44cadf[_0x3d52d1('0x17e')])['toUpperCase'](),_0x2b06c3[_0x3d52d1('0x1086')]=angular[_0x3d52d1('0x2e3')](_0x44cadf),_0x2b06c3['crudPermissions']=_0x200c5f,_0x2b06c3[_0x3d52d1('0xb0')]={};if(_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1c00')])switch(_0x2b06c3[_0x3d52d1('0x1086')]['appType']?_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x9d7')][_0x3d52d1('0x1e68')]():_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x17e')][_0x3d52d1('0x1e68')]()){case _0x3d52d1('0xbb4'):break;case'dialogflow':{const _0xfd0153=_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1c00')]['split'](',');_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x237a')]=_0xfd0153[0x0],_0x2b06c3['noop'][_0x3d52d1('0x604')]=_0xfd0153[0x1],_0x2b06c3[_0x3d52d1('0x1086')]['welcomemessage']=_0xfd0153[_0x3d52d1('0x2456')](0x2,_0xfd0153['length'])[_0x3d52d1('0x2259')](',');}break;case _0x3d52d1('0x1680'):{const _0x559047=_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1c00')][_0x3d52d1('0x43a')](',');_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x2e0')]=_0x559047[0x0],_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1d93')]=_0x559047[0x1],_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x10fc')]=_0x559047[0x2],_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x53')]=_0x559047[0x3],_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1a7')]=_0x559047[_0x3d52d1('0x2456')](0x4,_0x559047['length'])['join'](',');}break;case _0x3d52d1('0x23fe'):{const _0xddc07=_0x2b06c3[_0x3d52d1('0x1086')]['appdata'][_0x3d52d1('0x43a')](',');_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x611')]=isNaN(_0xddc07[0x0])?_0xddc07[0x0]:parseInt(_0xddc07[0x0],0xa),_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x86e')]=_0xddc07[_0x3d52d1('0x2456')](0x1,_0xddc07[_0x3d52d1('0x543')])['join'](',');}break;case _0x3d52d1('0x67f'):_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x86e')]=_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1c00')];break;case _0x3d52d1('0x256d'):_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x10ad')]=_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1c00')][_0x3d52d1('0x43a')]('=')[0x0],_0x2b06c3['noop'][_0x3d52d1('0xa7b')]=_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1c00')][_0x3d52d1('0x43a')]('=')[0x1];break;case'agi':_0x2b06c3['noop'][_0x3d52d1('0x220b')]=_0x2b06c3['noop'][_0x3d52d1('0x1c00')];break;default:{const _0x454d30=_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1c00')][_0x3d52d1('0x43a')](',');_0x2b06c3['noop'][_0x3d52d1('0xa7b')]=_0x3c8d8a()['isEmpty'](_0x454d30[0x0])?_0x454d30[0x0]:isNaN(_0x454d30[0x0])?_0x454d30[0x0]:parseInt(_0x454d30[0x0],0xa);}break;}else{}_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1810')]&&_0x2b06c3['noop'][_0x3d52d1('0x1810')][_0x3d52d1('0x1e68')]()===_0x3d52d1('0xb33')&&_0x2b06c3[_0x3d52d1('0x1086')]['appType'][_0x3d52d1('0x1e68')]()===_0x3d52d1('0x1edc')&&(_0x2b06c3[_0x3d52d1('0x1086')]['prefix']=_0x2b06c3[_0x3d52d1('0x1086')]['phone']?_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0xa04')][_0x3d52d1('0x43a')]('$')[0x0]:undefined,_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0x1961')]=_0x2b06c3['noop'][_0x3d52d1('0xe95')]?_0x3d52d1('0x20a8')+_0x2b06c3[_0x3d52d1('0x1086')][_0x3d52d1('0xe95')]:undefined);_0x2b06c3['saveSmsAccountApp']=_0x905a9e,_0x2b06c3['closeDialog']=_0x411b31;function _0x905a9e(){const _0x33156c=_0x3d52d1;_0x2b06c3[_0x33156c('0x1d4a')]=[];const _0x37a2ad=[];_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x1810')]&&_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x1810')]['toLowerCase']()===_0x33156c('0xb33')&&_0x2b06c3[_0x33156c('0x1086')]['appType']===_0x33156c('0x2150')&&(_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0xa04')]=_0x381b6c['cutdigits']?(_0x2b06c3[_0x33156c('0x1086')]['prefix']||'')+_0x33156c('0x1957')+_0x381b6c[_0x33156c('0x1429')]+'}':(_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x23f7')]||'')+'${EXTEN}',_0x381b6c[_0x33156c('0x76c')]!==_0x33156c('0x2741')?_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x2010')]['indexOf'](_0x33156c('0x2474'))<0x0&&(_0x2b06c3[_0x33156c('0x1086')]['options']+=_0x33156c('0x2474')):_0x2b06c3['noop']['options']=_0x2b06c3[_0x33156c('0x1086')]['options'][_0x33156c('0x166c')](_0x33156c('0x2474'),''));if(_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x9d7')]&&_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x9d7')]===_0x33156c('0xbb4')){}else switch((_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x17e')]||_0x2b06c3['noop']['appType'])[_0x33156c('0x1e68')]()){case _0x33156c('0x256d'):_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x1c00')]=_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x10ad')]+'='+_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0xa7b')];break;case _0x33156c('0xbb4'):break;default:_0x37a2ad[0x0]=_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0xa7b')],_0x2b06c3[_0x33156c('0x1086')][_0x33156c('0x1c00')]=_0x37a2ad[_0x33156c('0x2259')](',');}_0x411b31(_0x2b06c3['noop']);}function _0x411b31(_0x2d1760){const _0x4099c2=_0x3d52d1;_0x229fc4[_0x4099c2('0x1cf4')](_0x2d1760);}}const _0x4db2c2=_0x4019f2;_0x8c67a1[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x193f'),_0x566993('0x1e37'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x8c67a1(_0x1e8cf3,_0x4d6f8e,_0x2d512e,_0x16b4b2,_0x43964d,_0x38bf30,_0x2442c3,_0x38021d){const _0x3c9f76=_0x566993,_0x159f71=this;_0x159f71['currentUser']=_0x2442c3[_0x3c9f76('0x14d4')](),_0x159f71[_0x3c9f76('0x1d4a')]=[],_0x159f71[_0x3c9f76('0x20d6')]=_0x3c9f76('0x13cb')+(_0x16b4b2[_0x3c9f76('0x9d7')]||_0x16b4b2[_0x3c9f76('0x17e')])[_0x3c9f76('0x1164')](),_0x159f71[_0x3c9f76('0x172')]=angular[_0x3c9f76('0x2e3')](_0x16b4b2),_0x159f71[_0x3c9f76('0x1dc1')]=_0x38021d,_0x159f71[_0x3c9f76('0xb0')]={};if(_0x159f71[_0x3c9f76('0x172')]['appdata'])switch(_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x9d7')]?_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x9d7')][_0x3c9f76('0x1e68')]():_0x159f71['queue'][_0x3c9f76('0x17e')][_0x3c9f76('0x1e68')]()){case _0x3c9f76('0xbb4'):break;case _0x3c9f76('0x1601'):{const _0x22f181=_0x159f71['queue']['appdata'][_0x3c9f76('0x43a')](',');_0x159f71['queue']['key']=_0x22f181[0x0],_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x604')]=_0x22f181[0x1],_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1a7')]=_0x22f181[_0x3c9f76('0x2456')](0x2,_0x22f181[_0x3c9f76('0x543')])[_0x3c9f76('0x2259')](',');}break;case _0x3c9f76('0x1680'):{const _0x7fbdfb=_0x159f71['queue'][_0x3c9f76('0x1c00')][_0x3c9f76('0x43a')](',');_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x2e0')]=_0x7fbdfb[0x0],_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1d93')]=_0x7fbdfb[0x1],_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x10fc')]=_0x7fbdfb[0x2],_0x159f71['queue'][_0x3c9f76('0x53')]=_0x7fbdfb[0x3],_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1a7')]=_0x7fbdfb[_0x3c9f76('0x2456')](0x4,_0x7fbdfb[_0x3c9f76('0x543')])[_0x3c9f76('0x2259')](',');}break;case _0x3c9f76('0x23fe'):{const _0x453f5e=_0x159f71[_0x3c9f76('0x172')]['appdata']['split'](',');_0x159f71[_0x3c9f76('0x172')]['times']=isNaN(_0x453f5e[0x0])?_0x453f5e[0x0]:parseInt(_0x453f5e[0x0],0xa),_0x159f71[_0x3c9f76('0x172')]['text']=_0x453f5e[_0x3c9f76('0x2456')](0x1,_0x453f5e[_0x3c9f76('0x543')])[_0x3c9f76('0x2259')](',');}break;case _0x3c9f76('0x67f'):_0x159f71['queue'][_0x3c9f76('0x86e')]=_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1c00')];break;case'set':_0x159f71[_0x3c9f76('0x172')]['name']=_0x159f71['queue']['appdata'][_0x3c9f76('0x43a')]('=')[0x0],_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0xa7b')]=_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1c00')][_0x3c9f76('0x43a')]('=')[0x1];break;case'agi':_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x220b')]=_0x159f71['queue'][_0x3c9f76('0x1c00')];break;default:{const _0x5b6348=_0x159f71['queue'][_0x3c9f76('0x1c00')]['split'](',');_0x159f71['queue']['queue']=_0x3c8d8a()[_0x3c9f76('0x1a56')](_0x5b6348[0x0])?_0x5b6348[0x0]:isNaN(_0x5b6348[0x0])?_0x5b6348[0x0]:parseInt(_0x5b6348[0x0],0xa),_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1f84')]=_0x3c8d8a()[_0x3c9f76('0x1a56')](_0x5b6348[0x1])?_0x5b6348[0x1]:isNaN(_0x5b6348[0x1])?_0x5b6348[0x1]:parseInt(_0x5b6348[0x1],0xa);}break;}else _0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x172')]=0x12c,_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1f84')]=0x12c;_0x159f71[_0x3c9f76('0x172')]['type']&&_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1810')][_0x3c9f76('0x1e68')]()===_0x3c9f76('0xb33')&&_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x9d7')][_0x3c9f76('0x1e68')]()===_0x3c9f76('0x1edc')&&(_0x159f71[_0x3c9f76('0x172')]['prefix']=_0x159f71['queue']['phone']?_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0xa04')][_0x3c9f76('0x43a')]('$')[0x0]:undefined,_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0x1961')]=_0x159f71[_0x3c9f76('0x172')]['callerID']?_0x3c9f76('0x20a8')+_0x159f71[_0x3c9f76('0x172')][_0x3c9f76('0xe95')]:undefined);_0x159f71['saveSmsAccountApp']=_0x10e7b5,_0x159f71[_0x3c9f76('0x18e2')]=_0x1ed4ff,_0x2442c3[_0x3c9f76('0x1b4e')](_0x3c9f76('0x79b'))?_0x38bf30[_0x3c9f76('0xe99')][_0x3c9f76('0x1d97')]({'fields':_0x3c9f76('0x1c66'),'sort':'name','nolimit':'true'})[_0x3c9f76('0x1964')][_0x3c9f76('0x173b')](function(_0x3ad7fc){const _0x22d223=_0x3c9f76;_0x159f71['queues']=_0x3ad7fc[_0x22d223('0x6aa')]||[];})[_0x3c9f76('0x103c')](function(_0x1b60b1){const _0x380040=_0x3c9f76;_0x2d512e[_0x380040('0x15aa')]({'title':_0x1b60b1['status']?_0x380040('0x137')+_0x1b60b1[_0x380040('0x276f')]+_0x380040('0x160c')+_0x1b60b1[_0x380040('0x2696')]:_0x380040('0x1e3c'),'msg':_0x1b60b1[_0x380040('0x1e07')]?JSON['stringify'](_0x1b60b1[_0x380040('0x1e07')]):_0x1b60b1['toString']()});}):_0x38bf30[_0x3c9f76('0xe99')]['get']({'fields':_0x3c9f76('0x1c66'),'sort':_0x3c9f76('0x10ad'),'nolimit':_0x3c9f76('0x799')})[_0x3c9f76('0x1964')][_0x3c9f76('0x173b')](function(_0x3b0ea5){const _0x598b60=_0x3c9f76;_0x159f71['queues']=_0x3b0ea5[_0x598b60('0x6aa')]||[];})['then'](function(){const _0x58bf7b=_0x3c9f76;return _0x38bf30[_0x58bf7b('0x170e')][_0x58bf7b('0x1d97')]({'userProfileId':_0x159f71[_0x58bf7b('0x155f')][_0x58bf7b('0x1946')],'sectionId':0x2bd})['$promise'];})[_0x3c9f76('0x173b')](function(_0x4bdd31){const _0x1bd581=_0x3c9f76,_0x1d1263=_0x4bdd31&&_0x4bdd31[_0x1bd581('0x6aa')]?_0x4bdd31[_0x1bd581('0x6aa')][0x0]:null;if(!_0x1d1263){const _0x2b7789=[];let _0x59222f=null;_0x159f71[_0x1bd581('0x172')]&&(_0x59222f=_0x3c8d8a()[_0x1bd581('0x18ab')](_0x159f71[_0x1bd581('0xeae')],{'name':_0x159f71[_0x1bd581('0x172')]['queue']}));for(let _0x43d74b=0x0;_0x43d74b<_0x159f71[_0x1bd581('0xeae')][_0x1bd581('0x543')];_0x43d74b++){_0x59222f&&_0x159f71[_0x1bd581('0xeae')][_0x43d74b]['id']===_0x59222f['id']&&(_0x159f71['queues'][_0x43d74b]['canSelect']=![],_0x2b7789[_0x1bd581('0x18bb')](_0x159f71[_0x1bd581('0xeae')][_0x43d74b]));}_0x159f71[_0x1bd581('0xeae')]=_0x2b7789;}else{if(!_0x1d1263[_0x1bd581('0x273e')])return _0x38bf30['userProfileResource'][_0x1bd581('0x1d97')]({'sectionId':_0x1d1263['id']})[_0x1bd581('0x1964')][_0x1bd581('0x173b')](function(_0x1c184f){const _0x458bab=_0x1bd581,_0x55132c=_0x3c8d8a()[_0x458bab('0x8a2')](_0x1c184f[_0x458bab('0x6aa')],function(_0x100533){const _0x5209e8=_0x458bab;return _0x3c8d8a()[_0x5209e8('0x18ab')](_0x159f71['queues'],{'id':_0x100533[_0x5209e8('0x1ce0')]});});let _0x56f70e=null;_0x159f71[_0x458bab('0x172')]&&(_0x56f70e=_0x3c8d8a()[_0x458bab('0x18ab')](_0x159f71[_0x458bab('0xeae')],{'name':_0x159f71[_0x458bab('0x172')][_0x458bab('0x172')]}));if(_0x56f70e&&!_0x3c8d8a()[_0x458bab('0x1ec')](_0x55132c,['id',_0x56f70e['id']])){const _0x57bbc4=_0x3c8d8a()[_0x458bab('0x18ab')](_0x159f71[_0x458bab('0xeae')],{'id':_0x56f70e['id']});_0x57bbc4[_0x458bab('0x268e')]=![],_0x55132c[_0x458bab('0x18bb')](_0x57bbc4);}_0x159f71[_0x458bab('0xeae')]=_0x55132c;});}})[_0x3c9f76('0x103c')](function(_0x3947ea){const _0x5bd6c6=_0x3c9f76;_0x2d512e['error']({'title':_0x3947ea[_0x5bd6c6('0x276f')]?_0x5bd6c6('0x137')+_0x3947ea[_0x5bd6c6('0x276f')]+_0x5bd6c6('0x160c')+_0x3947ea[_0x5bd6c6('0x2696')]:_0x5bd6c6('0x75f'),'msg':_0x3947ea[_0x5bd6c6('0x1e07')]?JSON[_0x5bd6c6('0x100b')](_0x3947ea[_0x5bd6c6('0x1e07')]):_0x3947ea[_0x5bd6c6('0x1b75')]()});});function _0x10e7b5(){const _0x3f9966=_0x3c9f76;_0x159f71[_0x3f9966('0x1d4a')]=[];const _0x3b0c0a=[];_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x1810')]&&_0x159f71['queue'][_0x3f9966('0x1810')][_0x3f9966('0x1e68')]()==='outbound'&&_0x159f71['queue'][_0x3f9966('0x9d7')]==='outboundDial'&&(_0x159f71[_0x3f9966('0x172')]['phone']=_0x43964d[_0x3f9966('0x1429')]?(_0x159f71['queue'][_0x3f9966('0x23f7')]||'')+_0x3f9966('0x1957')+_0x43964d[_0x3f9966('0x1429')]+'}':(_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x23f7')]||'')+_0x3f9966('0x1dc5'),_0x43964d[_0x3f9966('0x76c')]!==_0x3f9966('0x2741')?_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x2010')][_0x3f9966('0x2087')](_0x3f9966('0x2474'))<0x0&&(_0x159f71[_0x3f9966('0x172')]['options']+=_0x3f9966('0x2474')):_0x159f71['queue']['options']=_0x159f71['queue'][_0x3f9966('0x2010')][_0x3f9966('0x166c')]('U(xcally-mixmonitor-context)',''));const _0x428759=_0x3c8d8a()[_0x3f9966('0x18ab')](_0x159f71[_0x3f9966('0xeae')],{'name':_0x159f71[_0x3f9966('0x172')]['queue']});_0x428759&&(_0x159f71['queue'][_0x3c8d8a()['capitalize'](_0x3f9966('0x1a8f'))+_0x3f9966('0x1f06')]=_0x428759['id']);if(_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x9d7')]&&_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x9d7')]==='custom'){}else switch((_0x159f71['queue'][_0x3f9966('0x17e')]||_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x9d7')])[_0x3f9966('0x1e68')]()){case _0x3f9966('0x256d'):_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x1c00')]=_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x10ad')]+'='+_0x159f71['queue'][_0x3f9966('0xa7b')];break;case'custom':break;default:_0x3b0c0a[0x0]=_0x159f71['queue'][_0x3f9966('0x172')],_0x3b0c0a[0x1]=_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x1f84')],_0x159f71[_0x3f9966('0x172')][_0x3f9966('0x1c00')]=_0x3b0c0a['join'](',');}_0x1ed4ff(_0x159f71[_0x3f9966('0x172')]);}function _0x1ed4ff(_0x102b17){const _0x30860f=_0x3c9f76;_0x1e8cf3[_0x30860f('0x1cf4')](_0x102b17);}}const _0x2da7bf=_0x8c67a1;_0x4501ca[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty','smsAccountApp',_0x566993('0x1e37'),'api',_0x566993('0x1600'),'crudPermissions'];function _0x4501ca(_0x59a5e0,_0x4fe026,_0x59b8a7,_0x221347,_0x4fed87,_0x250b89,_0x59b0b1,_0x217c7e){const _0x496faa=_0x566993,_0x5ab0bc=this;_0x5ab0bc[_0x496faa('0x155f')]=_0x59b0b1[_0x496faa('0x14d4')](),_0x5ab0bc['errors']=[],_0x5ab0bc[_0x496faa('0x20d6')]=_0x496faa('0x13cb')+(_0x221347[_0x496faa('0x9d7')]||_0x221347[_0x496faa('0x17e')])[_0x496faa('0x1164')](),_0x5ab0bc[_0x496faa('0x1ed')]=angular[_0x496faa('0x2e3')](_0x221347),_0x5ab0bc[_0x496faa('0x1dc1')]=_0x217c7e,_0x5ab0bc[_0x496faa('0xb0')]={};if(_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x1c00')])switch(_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x9d7')]?_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x9d7')][_0x496faa('0x1e68')]():_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x17e')][_0x496faa('0x1e68')]()){case'custom':break;case _0x496faa('0x1601'):{const _0x31f14f=_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x1c00')][_0x496faa('0x43a')](',');_0x5ab0bc[_0x496faa('0x1ed')]['key']=_0x31f14f[0x0],_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x604')]=_0x31f14f[0x1],_0x5ab0bc['system'][_0x496faa('0x1a7')]=_0x31f14f[_0x496faa('0x2456')](0x2,_0x31f14f[_0x496faa('0x543')])[_0x496faa('0x2259')](',');}break;case _0x496faa('0x1680'):{const _0x356281=_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x1c00')][_0x496faa('0x43a')](',');_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x2e0')]=_0x356281[0x0],_0x5ab0bc[_0x496faa('0x1ed')]['secretaccesskey']=_0x356281[0x1],_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x10fc')]=_0x356281[0x2],_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x53')]=_0x356281[0x3],_0x5ab0bc['system'][_0x496faa('0x1a7')]=_0x356281[_0x496faa('0x2456')](0x4,_0x356281['length'])[_0x496faa('0x2259')](',');}break;case _0x496faa('0x23fe'):{const _0x1629c5=_0x5ab0bc[_0x496faa('0x1ed')]['appdata'][_0x496faa('0x43a')](',');_0x5ab0bc[_0x496faa('0x1ed')]['times']=isNaN(_0x1629c5[0x0])?_0x1629c5[0x0]:parseInt(_0x1629c5[0x0],0xa),_0x5ab0bc[_0x496faa('0x1ed')]['text']=_0x1629c5['slice'](0x1,_0x1629c5[_0x496faa('0x543')])[_0x496faa('0x2259')](',');}break;case _0x496faa('0x67f'):_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x86e')]=_0x5ab0bc['system'][_0x496faa('0x1c00')];break;case _0x496faa('0x256d'):_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x10ad')]=_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x1c00')][_0x496faa('0x43a')]('=')[0x0],_0x5ab0bc['system']['value']=_0x5ab0bc['system'][_0x496faa('0x1c00')]['split']('=')[0x1];break;case _0x496faa('0x2426'):_0x5ab0bc['system'][_0x496faa('0x220b')]=_0x5ab0bc['system'][_0x496faa('0x1c00')];break;default:{const _0x3a945d=_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x1c00')]['split'](',');_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0xdc4')]=_0x3c8d8a()[_0x496faa('0x1a56')](_0x3a945d[0x0])?_0x3a945d[0x0]:isNaN(_0x3a945d[0x0])?_0x3a945d[0x0]:parseInt(_0x3a945d[0x0],0xa),_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x1b56')]=_0x3c8d8a()[_0x496faa('0x1a56')](_0x3a945d[0x1])?_0x3a945d[0x1]:isNaN(_0x3a945d[0x1])?_0x3a945d[0x1]:parseInt(_0x3a945d[0x1],0xa);}break;}else _0x5ab0bc[_0x496faa('0x1ed')]['variable']='';_0x5ab0bc['system'][_0x496faa('0x1810')]&&_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x1810')][_0x496faa('0x1e68')]()===_0x496faa('0xb33')&&_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x9d7')][_0x496faa('0x1e68')]()===_0x496faa('0x1edc')&&(_0x5ab0bc['system']['prefix']=_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0xa04')]?_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0xa04')]['split']('$')[0x0]:undefined,_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0x1961')]=_0x5ab0bc[_0x496faa('0x1ed')][_0x496faa('0xe95')]?_0x496faa('0x20a8')+_0x5ab0bc['system'][_0x496faa('0xe95')]:undefined);_0x5ab0bc[_0x496faa('0x153a')]=_0x637a3c,_0x5ab0bc['closeDialog']=_0x22359c,_0x59b0b1[_0x496faa('0x1b4e')](_0x496faa('0x79b'))?_0x250b89[_0x496faa('0x1b56')][_0x496faa('0x1d97')]({'fields':_0x496faa('0xd52'),'sort':_0x496faa('0x10ad'),'nolimit':_0x496faa('0x799')})[_0x496faa('0x1964')][_0x496faa('0x173b')](function(_0x5da34f){const _0x4177fa=_0x496faa;_0x5ab0bc['variables']=_0x5da34f[_0x4177fa('0x6aa')]||[];})[_0x496faa('0x103c')](function(_0x42c2f5){const _0x12d750=_0x496faa;_0x59b8a7[_0x12d750('0x15aa')]({'title':_0x42c2f5[_0x12d750('0x276f')]?_0x12d750('0x137')+_0x42c2f5[_0x12d750('0x276f')]+_0x12d750('0x160c')+_0x42c2f5[_0x12d750('0x2696')]:_0x12d750('0x1d22'),'msg':_0x42c2f5[_0x12d750('0x1e07')]?JSON[_0x12d750('0x100b')](_0x42c2f5[_0x12d750('0x1e07')]):_0x42c2f5[_0x12d750('0x1b75')]()});}):_0x250b89[_0x496faa('0x1b56')][_0x496faa('0x1d97')]({'fields':_0x496faa('0xd52'),'sort':_0x496faa('0x10ad'),'nolimit':'true'})[_0x496faa('0x1964')]['then'](function(_0x4bb69f){const _0x14d943=_0x496faa;_0x5ab0bc[_0x14d943('0x2715')]=_0x4bb69f['rows']||[];})['then'](function(){const _0x4ce7c6=_0x496faa;return _0x250b89[_0x4ce7c6('0x170e')][_0x4ce7c6('0x1d97')]({'userProfileId':_0x5ab0bc[_0x4ce7c6('0x155f')]['userProfileId'],'sectionId':0x3f4})[_0x4ce7c6('0x1964')];})[_0x496faa('0x173b')](function(_0x11d368){const _0x3225d3=_0x496faa,_0xb4fac8=_0x11d368&&_0x11d368[_0x3225d3('0x6aa')]?_0x11d368['rows'][0x0]:null;if(!_0xb4fac8){const _0x2a38c1=[];let _0x9fc25=null;_0x5ab0bc[_0x3225d3('0x1ed')]&&(_0x9fc25=_0x3c8d8a()[_0x3225d3('0x18ab')](_0x5ab0bc['variables'],{'name':_0x5ab0bc[_0x3225d3('0x1ed')][_0x3225d3('0x1b56')]}));for(let _0x2bc499=0x0;_0x2bc499<_0x5ab0bc[_0x3225d3('0x2715')][_0x3225d3('0x543')];_0x2bc499++){_0x9fc25&&_0x5ab0bc[_0x3225d3('0x2715')][_0x2bc499]['id']===_0x9fc25['id']&&(_0x5ab0bc[_0x3225d3('0x2715')][_0x2bc499][_0x3225d3('0x268e')]=![],_0x2a38c1[_0x3225d3('0x18bb')](_0x5ab0bc[_0x3225d3('0x2715')][_0x2bc499]));}_0x5ab0bc[_0x3225d3('0x2715')]=_0x2a38c1;}else{if(!_0xb4fac8['autoAssociation'])return _0x250b89[_0x3225d3('0xda9')][_0x3225d3('0x1d97')]({'sectionId':_0xb4fac8['id']})[_0x3225d3('0x1964')][_0x3225d3('0x173b')](function(_0x3277c4){const _0x3eba05=_0x3225d3,_0x284688=_0x3c8d8a()[_0x3eba05('0x8a2')](_0x3277c4[_0x3eba05('0x6aa')],function(_0x1dd16d){const _0x260f1d=_0x3eba05;return _0x3c8d8a()[_0x260f1d('0x18ab')](_0x5ab0bc[_0x260f1d('0x2715')],{'id':_0x1dd16d[_0x260f1d('0x1ce0')]});});let _0x4a0c7a=null;_0x5ab0bc[_0x3eba05('0x1ed')]&&(_0x4a0c7a=_0x3c8d8a()[_0x3eba05('0x18ab')](_0x5ab0bc[_0x3eba05('0x2715')],{'name':_0x5ab0bc['system']['variable']}));if(_0x4a0c7a&&!_0x3c8d8a()[_0x3eba05('0x1ec')](_0x284688,['id',_0x4a0c7a['id']])){const _0x1d7ae6=_0x3c8d8a()[_0x3eba05('0x18ab')](_0x5ab0bc[_0x3eba05('0x2715')],{'id':_0x4a0c7a['id']});_0x1d7ae6[_0x3eba05('0x268e')]=![],_0x284688[_0x3eba05('0x18bb')](_0x1d7ae6);}_0x5ab0bc[_0x3eba05('0x2715')]=_0x284688;});}})[_0x496faa('0x103c')](function(_0x4f2363){const _0x3a9844=_0x496faa;_0x59b8a7[_0x3a9844('0x15aa')]({'title':_0x4f2363[_0x3a9844('0x276f')]?_0x3a9844('0x137')+_0x4f2363[_0x3a9844('0x276f')]+_0x3a9844('0x160c')+_0x4f2363[_0x3a9844('0x2696')]:'SYSTEM:GETvariables','msg':_0x4f2363[_0x3a9844('0x1e07')]?JSON[_0x3a9844('0x100b')](_0x4f2363['data']):_0x4f2363[_0x3a9844('0x1b75')]()});});function _0x637a3c(){const _0x5a92f4=_0x496faa;_0x5ab0bc[_0x5a92f4('0x1d4a')]=[];const _0x80a5fd=[];_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x1810')]&&_0x5ab0bc['system'][_0x5a92f4('0x1810')][_0x5a92f4('0x1e68')]()===_0x5a92f4('0xb33')&&_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x9d7')]===_0x5a92f4('0x2150')&&(_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0xa04')]=_0x4fed87[_0x5a92f4('0x1429')]?(_0x5ab0bc[_0x5a92f4('0x1ed')]['prefix']||'')+_0x5a92f4('0x1957')+_0x4fed87['cutdigits']+'}':(_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x23f7')]||'')+_0x5a92f4('0x1dc5'),_0x4fed87[_0x5a92f4('0x76c')]!==_0x5a92f4('0x2741')?_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x2010')][_0x5a92f4('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5ab0bc['system'][_0x5a92f4('0x2010')]+=_0x5a92f4('0x2474')):_0x5ab0bc['system'][_0x5a92f4('0x2010')]=_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x2010')]['replace'](_0x5a92f4('0x2474'),''));if(_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x9d7')]&&_0x5ab0bc[_0x5a92f4('0x1ed')]['appType']===_0x5a92f4('0xbb4')){}else switch((_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x17e')]||_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x9d7')])[_0x5a92f4('0x1e68')]()){case _0x5a92f4('0x256d'):_0x5ab0bc[_0x5a92f4('0x1ed')][_0x5a92f4('0x1c00')]=_0x5ab0bc['system'][_0x5a92f4('0x10ad')]+'='+_0x5ab0bc['system']['value'];break;case _0x5a92f4('0xbb4'):break;default:_0x80a5fd[0x0]=_0x5ab0bc[_0x5a92f4('0x1ed')]['command'],_0x80a5fd[0x1]=_0x5ab0bc['system'][_0x5a92f4('0x1b56')],_0x5ab0bc[_0x5a92f4('0x1ed')]['appdata']=_0x80a5fd[_0x5a92f4('0x2259')](',');}_0x22359c(_0x5ab0bc[_0x5a92f4('0x1ed')]);}function _0x22359c(_0x3a28b3){const _0x10622d=_0x496faa;_0x59a5e0[_0x10622d('0x1cf4')](_0x3a28b3);}}const _0x59b6c0=_0x4501ca;_0x374c64[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x193f'),_0x566993('0x1e37'),'api',_0x566993('0x1600'),'crudPermissions'];function _0x374c64(_0x460c00,_0x6ee8ae,_0x43048d,_0x370645,_0x252f90,_0x2ac1d6,_0x30ad4f,_0x2fa4cf){const _0xc16b6e=_0x566993,_0x5b92ed=this;_0x5b92ed[_0xc16b6e('0x155f')]=_0x30ad4f[_0xc16b6e('0x14d4')](),_0x5b92ed[_0xc16b6e('0x1d4a')]=[],_0x5b92ed[_0xc16b6e('0x20d6')]=_0xc16b6e('0x13cb')+(_0x370645[_0xc16b6e('0x9d7')]||_0x370645[_0xc16b6e('0x17e')])[_0xc16b6e('0x1164')](),_0x5b92ed[_0xc16b6e('0x23b4')]=angular[_0xc16b6e('0x2e3')](_0x370645),_0x5b92ed[_0xc16b6e('0x1dc1')]=_0x2fa4cf,_0x5b92ed[_0xc16b6e('0xb0')]={};if(_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1c00')])switch(_0x5b92ed[_0xc16b6e('0x23b4')]['appType']?_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x9d7')][_0xc16b6e('0x1e68')]():_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x17e')][_0xc16b6e('0x1e68')]()){case _0xc16b6e('0xbb4'):break;case _0xc16b6e('0x1601'):{const _0x116703=_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1c00')][_0xc16b6e('0x43a')](',');_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x237a')]=_0x116703[0x0],_0x5b92ed['tag'][_0xc16b6e('0x604')]=_0x116703[0x1],_0x5b92ed['tag'][_0xc16b6e('0x1a7')]=_0x116703[_0xc16b6e('0x2456')](0x2,_0x116703[_0xc16b6e('0x543')])[_0xc16b6e('0x2259')](',');}break;case'amazonlex':{const _0x56b323=_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1c00')]['split'](',');_0x5b92ed['tag'][_0xc16b6e('0x2e0')]=_0x56b323[0x0],_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1d93')]=_0x56b323[0x1],_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x10fc')]=_0x56b323[0x2],_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x53')]=_0x56b323[0x3],_0x5b92ed[_0xc16b6e('0x23b4')]['welcomemessage']=_0x56b323['slice'](0x4,_0x56b323[_0xc16b6e('0x543')])['join'](',');}break;case'autoreply':{const _0xfffc8a=_0x5b92ed['tag']['appdata'][_0xc16b6e('0x43a')](',');_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x611')]=isNaN(_0xfffc8a[0x0])?_0xfffc8a[0x0]:parseInt(_0xfffc8a[0x0],0xa),_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x86e')]=_0xfffc8a[_0xc16b6e('0x2456')](0x1,_0xfffc8a[_0xc16b6e('0x543')])[_0xc16b6e('0x2259')](',');}break;case _0xc16b6e('0x67f'):_0x5b92ed['tag'][_0xc16b6e('0x86e')]=_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1c00')];break;case _0xc16b6e('0x256d'):_0x5b92ed['tag']['name']=_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1c00')]['split']('=')[0x0],_0x5b92ed[_0xc16b6e('0x23b4')]['value']=_0x5b92ed['tag']['appdata'][_0xc16b6e('0x43a')]('=')[0x1];break;case'agi':_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x220b')]=_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1c00')];break;default:{const _0x597e1f=_0x5b92ed['tag']['appdata']['split'](',');_0x5b92ed[_0xc16b6e('0x23b4')]['tag']=_0x3c8d8a()[_0xc16b6e('0x1a56')](_0x597e1f[0x0])?_0x597e1f[0x0]:isNaN(_0x597e1f[0x0])?_0x597e1f[0x0]:parseInt(_0x597e1f[0x0],0xa);}break;}else{}_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1810')]&&_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1810')][_0xc16b6e('0x1e68')]()===_0xc16b6e('0xb33')&&_0x5b92ed['tag'][_0xc16b6e('0x9d7')]['toLowerCase']()==='outbounddial'&&(_0x5b92ed[_0xc16b6e('0x23b4')]['prefix']=_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0xa04')]?_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0xa04')][_0xc16b6e('0x43a')]('$')[0x0]:undefined,_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0x1961')]=_0x5b92ed[_0xc16b6e('0x23b4')]['callerID']?_0xc16b6e('0x20a8')+_0x5b92ed[_0xc16b6e('0x23b4')][_0xc16b6e('0xe95')]:undefined);_0x5b92ed[_0xc16b6e('0x153a')]=_0x410c81,_0x5b92ed[_0xc16b6e('0x18e2')]=_0x2a4c6e,_0x30ad4f['hasRole']('admin')?_0x2ac1d6['tag']['get']({'fields':_0xc16b6e('0xd52'),'sort':_0xc16b6e('0x10ad'),'nolimit':_0xc16b6e('0x799')})[_0xc16b6e('0x1964')]['then'](function(_0x406e97){const _0x164326=_0xc16b6e;_0x5b92ed[_0x164326('0x22ac')]=_0x406e97[_0x164326('0x6aa')]||[];})[_0xc16b6e('0x103c')](function(_0x4c5789){const _0x1632e9=_0xc16b6e;_0x43048d[_0x1632e9('0x15aa')]({'title':_0x4c5789[_0x1632e9('0x276f')]?'API:'+_0x4c5789[_0x1632e9('0x276f')]+_0x1632e9('0x160c')+_0x4c5789[_0x1632e9('0x2696')]:_0x1632e9('0x1a9b'),'msg':_0x4c5789[_0x1632e9('0x1e07')]?JSON[_0x1632e9('0x100b')](_0x4c5789[_0x1632e9('0x1e07')]):_0x4c5789[_0x1632e9('0x1b75')]()});}):_0x2ac1d6['tag'][_0xc16b6e('0x1d97')]({'fields':_0xc16b6e('0xd52'),'sort':_0xc16b6e('0x10ad'),'nolimit':_0xc16b6e('0x799')})['$promise'][_0xc16b6e('0x173b')](function(_0x1d6635){const _0x1fff89=_0xc16b6e;_0x5b92ed[_0x1fff89('0x22ac')]=_0x1d6635[_0x1fff89('0x6aa')]||[];})[_0xc16b6e('0x173b')](function(){const _0x28dd5d=_0xc16b6e;return _0x2ac1d6[_0x28dd5d('0x170e')][_0x28dd5d('0x1d97')]({'userProfileId':_0x5b92ed[_0x28dd5d('0x155f')][_0x28dd5d('0x1946')],'sectionId':0x3f0})[_0x28dd5d('0x1964')];})[_0xc16b6e('0x173b')](function(_0x59bfc5){const _0xf69db4=_0xc16b6e,_0x239b76=_0x59bfc5&&_0x59bfc5[_0xf69db4('0x6aa')]?_0x59bfc5[_0xf69db4('0x6aa')][0x0]:null;if(!_0x239b76){const _0x17eb4c=[];let _0x975175=null;_0x5b92ed['tag']&&(_0x975175=_0x3c8d8a()[_0xf69db4('0x18ab')](_0x5b92ed['tags'],{'name':_0x5b92ed[_0xf69db4('0x23b4')][_0xf69db4('0x23b4')]}));for(let _0x4e66d6=0x0;_0x4e66d6<_0x5b92ed[_0xf69db4('0x22ac')][_0xf69db4('0x543')];_0x4e66d6++){_0x975175&&_0x5b92ed[_0xf69db4('0x22ac')][_0x4e66d6]['id']===_0x975175['id']&&(_0x5b92ed['tags'][_0x4e66d6]['canSelect']=![],_0x17eb4c['push'](_0x5b92ed[_0xf69db4('0x22ac')][_0x4e66d6]));}_0x5b92ed[_0xf69db4('0x22ac')]=_0x17eb4c;}else{if(!_0x239b76[_0xf69db4('0x273e')])return _0x2ac1d6['userProfileResource'][_0xf69db4('0x1d97')]({'sectionId':_0x239b76['id']})[_0xf69db4('0x1964')][_0xf69db4('0x173b')](function(_0x250493){const _0xb5929d=_0xf69db4,_0x395736=_0x3c8d8a()[_0xb5929d('0x8a2')](_0x250493[_0xb5929d('0x6aa')],function(_0x62cb3d){const _0x4b6d09=_0xb5929d;return _0x3c8d8a()['find'](_0x5b92ed[_0x4b6d09('0x22ac')],{'id':_0x62cb3d['resourceId']});});let _0x433b05=null;_0x5b92ed[_0xb5929d('0x23b4')]&&(_0x433b05=_0x3c8d8a()[_0xb5929d('0x18ab')](_0x5b92ed['tags'],{'name':_0x5b92ed[_0xb5929d('0x23b4')][_0xb5929d('0x23b4')]}));if(_0x433b05&&!_0x3c8d8a()['some'](_0x395736,['id',_0x433b05['id']])){const _0x37da0e=_0x3c8d8a()[_0xb5929d('0x18ab')](_0x5b92ed[_0xb5929d('0x22ac')],{'id':_0x433b05['id']});_0x37da0e[_0xb5929d('0x268e')]=![],_0x395736[_0xb5929d('0x18bb')](_0x37da0e);}_0x5b92ed['tags']=_0x395736;});}})[_0xc16b6e('0x103c')](function(_0x2c50f4){const _0x6adfb0=_0xc16b6e;_0x43048d[_0x6adfb0('0x15aa')]({'title':_0x2c50f4['status']?_0x6adfb0('0x137')+_0x2c50f4[_0x6adfb0('0x276f')]+'\x20-\x20'+_0x2c50f4[_0x6adfb0('0x2696')]:'SYSTEM:GETtags','msg':_0x2c50f4['data']?JSON[_0x6adfb0('0x100b')](_0x2c50f4[_0x6adfb0('0x1e07')]):_0x2c50f4[_0x6adfb0('0x1b75')]()});});function _0x410c81(){const _0x58c653=_0xc16b6e;_0x5b92ed[_0x58c653('0x1d4a')]=[];const _0x3b67ab=[];_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x1810')]&&_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x1810')]['toLowerCase']()===_0x58c653('0xb33')&&_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x9d7')]===_0x58c653('0x2150')&&(_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0xa04')]=_0x252f90[_0x58c653('0x1429')]?(_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x23f7')]||'')+_0x58c653('0x1957')+_0x252f90[_0x58c653('0x1429')]+'}':(_0x5b92ed['tag'][_0x58c653('0x23f7')]||'')+_0x58c653('0x1dc5'),_0x252f90[_0x58c653('0x76c')]!==_0x58c653('0x2741')?_0x5b92ed['tag'][_0x58c653('0x2010')]['indexOf'](_0x58c653('0x2474'))<0x0&&(_0x5b92ed['tag'][_0x58c653('0x2010')]+=_0x58c653('0x2474')):_0x5b92ed[_0x58c653('0x23b4')]['options']=_0x5b92ed['tag'][_0x58c653('0x2010')][_0x58c653('0x166c')](_0x58c653('0x2474'),''));const _0xdca46f=_0x3c8d8a()['find'](_0x5b92ed[_0x58c653('0x22ac')],{'name':_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x23b4')]});_0xdca46f&&(_0x5b92ed['tag']['TagId']=_0xdca46f['id']);if(_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x9d7')]&&_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x9d7')]===_0x58c653('0xbb4')){}else switch((_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x17e')]||_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x9d7')])['toLowerCase']()){case _0x58c653('0x256d'):_0x5b92ed['tag'][_0x58c653('0x1c00')]=_0x5b92ed[_0x58c653('0x23b4')]['name']+'='+_0x5b92ed[_0x58c653('0x23b4')]['value'];break;case _0x58c653('0xbb4'):break;default:_0x3b67ab[0x0]=_0x5b92ed['tag'][_0x58c653('0x23b4')],_0x5b92ed[_0x58c653('0x23b4')][_0x58c653('0x1c00')]=_0x3b67ab[_0x58c653('0x2259')](',');}_0x2a4c6e(_0x5b92ed[_0x58c653('0x23b4')]);}function _0x2a4c6e(_0x4552b6){const _0x1d89aa=_0xc16b6e;_0x460c00[_0x1d89aa('0x1cf4')](_0x4552b6);}}const _0x579af5=_0x374c64;_0x30231a[_0x566993('0x17bb')]=['$cookies','$scope',_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x30231a(_0x45b00a,_0x4a7056,_0x388fed,_0x1ca161,_0x275241,_0x54e3f7,_0x5afe2e,_0x2968ef,_0x34a331,_0x558389,_0x19e6b3){const _0x3f462d=_0x566993,_0x51e53d=this;_0x51e53d[_0x3f462d('0x155f')]=_0x19e6b3[_0x3f462d('0x14d4')](),_0x51e53d[_0x3f462d('0x1e37')]={},_0x51e53d[_0x3f462d('0xd03')]={'count':0x0,'rows':[]},_0x51e53d[_0x3f462d('0x22b1')]=[],_0x51e53d[_0x3f462d('0x1dc1')],_0x51e53d[_0x3f462d('0xc49')]={'read':_0x3f462d('0x877'),'closed':_0x3f462d('0x877'),'sort':_0x3f462d('0x1cad'),'includeAll':_0x3f462d('0x799'),'limit':0xa,'page':0x1},_0x51e53d[_0x3f462d('0xb9c')]=_0x4a12eb,_0x51e53d['deleteConfirm']=_0x142d44,_0x51e53d[_0x3f462d('0x1e5a')]=_0x4ca9d6,_0x51e53d[_0x3f462d('0xdfe')]=_0x84aab2,_0x51e53d[_0x3f462d('0x1e2d')]=_0x2ab67b,_0x51e53d[_0x3f462d('0x1e7c')]=_0x405b70,_0x51e53d[_0x3f462d('0x6f1')]=_0x577786,_0x51e53d['exportSelectedSmsAccountInteractions']=_0x524103,_0x51e53d[_0x3f462d('0x1d28')]=_0x1e90b1,_0x51e53d[_0x3f462d('0x218e')]=_0x4b34d7;function _0x4a12eb(_0x5dd178,_0xf1a2ae){const _0x4ee392=_0x3f462d;_0x51e53d[_0x4ee392('0x1e37')]=_0x5dd178,_0x51e53d[_0x4ee392('0x1dc1')]=typeof _0xf1a2ae!==_0x4ee392('0x6e5')?_0xf1a2ae:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x51e53d[_0x4ee392('0xc49')][_0x4ee392('0x23b1')]=_0x51e53d[_0x4ee392('0x1e37')]['id'],_0x51e53d[_0x4ee392('0x2706')]={'fields':_0x3dd99f()},_0x4af2ee();}function _0x4af2ee(){const _0x5d3251=_0x3f462d;return _0x558389['tag']['get']()[_0x5d3251('0x1964')]['then'](function(_0x47091c){const _0x36040e=_0x5d3251;_0x51e53d[_0x36040e('0x22ac')]=_0x47091c||{'count':0x0,'rows':[]};})[_0x5d3251('0x173b')](function(){const _0x20fec6=_0x5d3251;_0x51e53d[_0x20fec6('0x485')]=_0x1dbec2();});}function _0x1dbec2(){const _0x111b12=_0x3f462d;return[{'name':_0x111b12('0x1406'),'key':_0x111b12('0xda8'),'type':_0x111b12('0x22b6'),'label':_0x111b12('0xa98')},{'name':'Messages','key':'read','type':_0x111b12('0xc65'),'label':_0x111b12('0x1881'),'customOptions':[{'value':0x0,'translate':_0x111b12('0x1015')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x111b12('0x47a')}]},{'name':_0x111b12('0xef8'),'key':_0x111b12('0x1636'),'type':_0x111b12('0xc65'),'label':_0x111b12('0x1647'),'customOptions':[{'value':0x0,'translate':_0x111b12('0x163c')},{'value':0x1,'translate':_0x111b12('0x1389')},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x111b12('0x1547'),'key':_0x111b12('0x181c'),'type':_0x111b12('0xc65'),'label':_0x111b12('0x956'),'customOptions':[{'value':_0x111b12('0x877'),'translate':_0x111b12('0x27a8')},{'value':undefined,'translate':_0x111b12('0x47a')}]},{'name':_0x111b12('0x460'),'key':'tag','type':_0x111b12('0x1c68'),'label':_0x111b12('0x1e6f'),'options':_0x51e53d['tags']['rows'],'placeholder':_0x111b12('0x96')}];}function _0x3dd99f(){const _0x450eff=_0x3f462d;return[{'name':'Id','column':'id','type':'number'},{'name':_0x450eff('0x1f70'),'column':_0x450eff('0x1f70'),'type':_0x450eff('0xe92'),'options':{'searchFields':['firstName','lastName',_0x450eff('0x28e')],'route':{'model':'cmContact','action':'get','params':{'fields':_0x450eff('0x1cf0'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x450eff('0x2694')],'excludedOperators':['$ne']}},{'name':_0x450eff('0x224f'),'column':'subject','type':_0x450eff('0x86e'),'options':{'excludedOperators':[_0x450eff('0xc0c'),_0x450eff('0x10be')]}},{'name':_0x450eff('0x176f'),'column':_0x450eff('0x1405'),'type':'text','options':{'excludedOperators':[_0x450eff('0xc0c'),'$ne']}},{'name':_0x450eff('0xef8'),'column':'closed','type':_0x450eff('0xc65'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x450eff('0x1389')}],'options':{'excludedOperators':[_0x450eff('0x10be')]}},{'name':'Agent','column':_0x450eff('0x2265'),'type':'autocomplete','options':{'table':'i','route':{'model':_0x450eff('0x166f'),'action':'get','params':{'role':'agent','fields':_0x450eff('0x112d'),'nolimit':!![]}},'searchFields':[_0x450eff('0x572'),_0x450eff('0x10ad')],'extraOperators':[_0x450eff('0x2694')],'excludedOperators':[_0x450eff('0x10be')]}},{'name':_0x450eff('0xc38'),'column':_0x450eff('0x460'),'type':_0x450eff('0x1c68'),'options':{'route':{'model':_0x450eff('0x23b4'),'action':_0x450eff('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x450eff('0x1406'),'column':_0x450eff('0xda8'),'type':_0x450eff('0x22b6'),'options':{'excludedOperators':[_0x450eff('0x10be')]}},{'name':_0x450eff('0x247a'),'column':_0x450eff('0x25e9'),'type':_0x450eff('0xc65'),'values':[{'id':0x1,'translate':_0x450eff('0x1170')},{'id':0x0,'translate':_0x450eff('0x1015')}],'options':{'excludedOperators':[_0x450eff('0x10be')]}}];}function _0x577786(){const _0x5a7c22=_0x3f462d;_0x5afe2e[_0x5a7c22('0x1cb7')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x5a7c22('0xb6d')](_0x2968ef['body']),'clickOutsideToClose':![],'locals':{'fields':_0x51e53d[_0x5a7c22('0x2706')][_0x5a7c22('0x2340')],'color':undefined,'storagePath':_0x5a7c22('0x129b')},'fullscreen':!![]})['then'](function(_0x594ed8){const _0x1b2a42=_0x5a7c22;_0x51e53d[_0x1b2a42('0xc49')][_0x1b2a42('0x23e7')]=_0x594ed8===![]?undefined:_0x594ed8;if(_0x51e53d[_0x1b2a42('0xc49')]['search'])_0x2ab67b();else _0x594ed8===![]&&_0x2ab67b();})[_0x5a7c22('0x103c')](function(_0x5d54b2){const _0x6a4f2f=_0x5a7c22;_0x34a331['error']({'title':_0x6a4f2f('0x280c'),'msg':_0x5d54b2[_0x6a4f2f('0x1e07')]?JSON['stringify'](_0x5d54b2[_0x6a4f2f('0x1e07')][_0x6a4f2f('0x67f')]):_0x5d54b2[_0x6a4f2f('0x1b75')]()});});}function _0x4ca9d6(_0x4ea6e3,_0x3cf577,_0x2c7112){const _0x3b2035=_0x3f462d;return _0x558389[_0x3b2035('0x1145')][_0x3b2035('0xfce')]({'id':_0x4ea6e3['id'],'exists':!![],'attachments':_0x2c7112})[_0x3b2035('0x1964')][_0x3b2035('0x173b')](function(_0x50873f){const _0x102aa4=_0x3b2035,_0x4a27f3=[_0x50873f['buffer']];let _0x2f086e=_0x102aa4('0x8d6')+_0x4ea6e3['id'];const _0x1bf964=new Blob(_0x4a27f3,{'type':_0x50873f[_0x102aa4('0x1810')]});_0x2f086e=_0x102aa4('0x18d3')+_0x4ea6e3['id']+_0x102aa4('0x1421');const _0x364d83=window[_0x102aa4('0x222a')]['createElement']('a');_0x364d83[_0x102aa4('0x11c3')](_0x102aa4('0x165c'),URL[_0x102aa4('0x1466')](_0x1bf964)),_0x364d83['setAttribute']('download',_0x2f086e),document['body'][_0x102aa4('0x1f8d')](_0x364d83),_0x364d83[_0x102aa4('0x3cb')]();})['catch'](function(_0x56bd33){const _0x4e50dc=_0x3b2035;if(_0x56bd33['data']&&_0x56bd33['data'][_0x4e50dc('0x1d4a')]&&_0x56bd33['data']['errors'][_0x4e50dc('0x543')])for(let _0x47d771=0x0;_0x47d771<_0x56bd33['data'][_0x4e50dc('0x1d4a')][_0x4e50dc('0x543')];_0x47d771+=0x1){_0x34a331[_0x4e50dc('0x15aa')]({'title':_0x56bd33[_0x4e50dc('0x1e07')][_0x4e50dc('0x1d4a')][_0x47d771][_0x4e50dc('0x1810')],'msg':_0x56bd33[_0x4e50dc('0x1e07')]['errors'][_0x47d771]['message']});}else _0x34a331['error']({'title':_0x56bd33['status']?_0x4e50dc('0x137')+_0x56bd33['status']+_0x4e50dc('0x160c')+_0x56bd33[_0x4e50dc('0x2696')]:_0x4e50dc('0x2377'),'msg':_0x56bd33[_0x4e50dc('0x1e07')]?JSON[_0x4e50dc('0x100b')](_0x56bd33['data'][_0x4e50dc('0x67f')]):_0x56bd33['toString']()});});}function _0x142d44(_0x58a6e7,_0x5721ba){const _0x49200f=_0x3f462d,_0x22d476=_0x5afe2e[_0x49200f('0x1d02')]()[_0x49200f('0x20d6')](_0x49200f('0x1169'))[_0x49200f('0xf8b')](_0x49200f('0x15b9')+(_0x58a6e7['name']||_0x58a6e7['id']&&_0x3c8d8a()[_0x49200f('0x5ba')](_0x49200f('0x1523'))+_0x58a6e7['id']||'interaction')+_0x49200f('0x24be')+_0x49200f('0xd23'))[_0x49200f('0x217')](_0x49200f('0x10bd'))[_0x49200f('0x21de')](_0x5721ba)['ok']('OK')['cancel']('CANCEL');_0x5afe2e[_0x49200f('0x1cb7')](_0x22d476)[_0x49200f('0x173b')](function(){_0x1e90b1(_0x58a6e7);},function(){const _0x410f00=_0x49200f;console[_0x410f00('0xe37')](_0x410f00('0x468'));});}function _0x84aab2(_0x54e271){const _0x56d983=_0x3f462d;_0x51e53d[_0x56d983('0xd03')]=_0x54e271||{'count':0x0,'rows':[]};for(let _0x387b9f=0x0;_0x387b9f<_0x51e53d['smsAccountInteractions'][_0x56d983('0x6aa')][_0x56d983('0x543')];_0x387b9f+=0x1){const _0x684c0b=_0x51e53d['smsAccountInteractions'][_0x56d983('0x6aa')][_0x387b9f];_0x4f383e(_0x684c0b),_0x684c0b[_0x56d983('0x274f')][_0x56d983('0x10ad')]=_0xa3e130(_0x684c0b);}}function _0x2ab67b(){const _0x3e84b4=_0x3f462d;_0x51e53d[_0x3e84b4('0xc49')][_0x3e84b4('0x17f0')]=(_0x51e53d[_0x3e84b4('0xc49')][_0x3e84b4('0x182e')]-0x1)*_0x51e53d['query']['limit'],_0x51e53d[_0x3e84b4('0x2219')]=_0x558389[_0x3e84b4('0x1145')][_0x3e84b4('0x1d97')](_0x51e53d[_0x3e84b4('0xc49')],_0x84aab2)[_0x3e84b4('0x1964')];}function _0x405b70(_0x5c356c,_0x305ec9){const _0x238635=_0x3f462d;_0x5afe2e[_0x238635('0x1cb7')]({'controller':_0x238635('0x58c'),'controllerAs':'vm','templateUrl':_0x4717ab,'parent':angular[_0x238635('0xb6d')](_0x2968ef['body']),'targetEvent':_0x5c356c,'clickOutsideToClose':!![],'onShowing':function(_0x450e56){const _0x1e8cc5=_0x238635;_0x450e56['vm'][_0x1e8cc5('0xb9c')]({'id':0x1,'channel':'sms','interaction':_0x305ec9,'spy':!![]},_0x4a7056[_0x1e8cc5('0x1d44')]['vm'][_0x1e8cc5('0x251')]);}});}function _0x1e90b1(_0x5ee48d){const _0x220df7=_0x3f462d;_0x558389['smsInteraction'][_0x220df7('0x15e8')]({'id':_0x5ee48d['id']})['$promise']['then'](function(){const _0x4f1f9d=_0x220df7;_0x3c8d8a()[_0x4f1f9d('0x1a8b')](_0x51e53d[_0x4f1f9d('0xd03')][_0x4f1f9d('0x6aa')],{'id':_0x5ee48d['id']}),_0x51e53d[_0x4f1f9d('0xd03')][_0x4f1f9d('0x1a2f')]-=0x1,!_0x51e53d['smsAccountInteractions']['rows'][_0x4f1f9d('0x543')]&&_0x2ab67b(),_0x34a331[_0x4f1f9d('0xdfe')]({'title':_0x4f1f9d('0x22c0'),'msg':_0x5ee48d[_0x4f1f9d('0x10ad')]?_0x5ee48d[_0x4f1f9d('0x10ad')]+_0x4f1f9d('0x25d2'):''});})['catch'](function(_0x55ee90){const _0x5059bb=_0x220df7;if(_0x55ee90[_0x5059bb('0x1e07')]&&_0x55ee90[_0x5059bb('0x1e07')][_0x5059bb('0x1d4a')]&&_0x55ee90[_0x5059bb('0x1e07')][_0x5059bb('0x1d4a')]['length']){_0x51e53d['errors']=_0x55ee90['data'][_0x5059bb('0x1d4a')]||[{'message':_0x55ee90[_0x5059bb('0x1b75')](),'type':'SYSTEM:GETsmsAccount'}];for(let _0x596361=0x0;_0x596361<_0x55ee90[_0x5059bb('0x1e07')][_0x5059bb('0x1d4a')]['length'];_0x596361++){_0x34a331[_0x5059bb('0x15aa')]({'title':_0x55ee90[_0x5059bb('0x1e07')]['errors'][_0x596361]['type'],'msg':_0x55ee90[_0x5059bb('0x1e07')][_0x5059bb('0x1d4a')][_0x596361][_0x5059bb('0x67f')]});}}else _0x34a331[_0x5059bb('0x15aa')]({'title':_0x55ee90[_0x5059bb('0x276f')]?_0x5059bb('0x137')+_0x55ee90['status']+_0x5059bb('0x160c')+_0x55ee90[_0x5059bb('0x2696')]:_0x5059bb('0x16a9'),'msg':_0x55ee90[_0x5059bb('0x1e07')]?JSON[_0x5059bb('0x100b')](_0x55ee90[_0x5059bb('0x1e07')][_0x5059bb('0x67f')]):_0x55ee90['message']||_0x55ee90[_0x5059bb('0x1b75')]()});});}function _0x524103(){const _0x55e84e=_0x3f462d,_0x1e3a90=angular[_0x55e84e('0x2e3')](_0x51e53d[_0x55e84e('0x22b1')]);return _0x51e53d[_0x55e84e('0x22b1')]=[],_0x1e3a90;}function _0x4b34d7(_0x4033d3){const _0x113944=_0x3f462d,_0x5ea3bc=_0x5afe2e[_0x113944('0x1d02')]()[_0x113944('0x20d6')](_0x113944('0x568'))[_0x113944('0xf8b')](''+_0x51e53d[_0x113944('0x22b1')]['length']+_0x113944('0xcb4')+_0x113944('0xd23'))[_0x113944('0x217')]('delete\x20interactions')[_0x113944('0x21de')](_0x4033d3)['ok']('OK')[_0x113944('0x1e1f')](_0x113944('0x468'));_0x5afe2e[_0x113944('0x1cb7')](_0x5ea3bc)[_0x113944('0x173b')](function(){const _0x4b2eac=_0x113944;_0x51e53d['selectedSmsAccountInteractions']['forEach'](function(_0x2c817c){_0x1e90b1(_0x2c817c);}),_0x51e53d[_0x4b2eac('0x22b1')]=[];});}function _0x4f383e(_0x388b1a){const _0x13b0c7=_0x3f462d;_0x388b1a['Contact']?(_0x388b1a['contactName']=(_0x388b1a['Contact'][_0x13b0c7('0x1e50')]||'')+'\x20'+(_0x388b1a[_0x13b0c7('0x1f70')]['lastName']||''),_0x388b1a[_0x13b0c7('0x2521')]=_0x388b1a[_0x13b0c7('0x1f70')]['mobile']):_0x388b1a[_0x13b0c7('0x98d')]=_0x275241[_0x13b0c7('0x1467')]('DASHBOARDS.UNKNOWN');}function _0xa3e130(_0x7f4b97){const _0x28b73d=_0x3f462d;if(_0x7f4b97[_0x28b73d('0x181c')])return _0x7f4b97[_0x28b73d('0x181c')]===_0x51e53d['currentUser']['id']?_0x275241[_0x28b73d('0x1467')](_0x28b73d('0x2449')):_0x7f4b97[_0x28b73d('0x274f')][_0x28b73d('0x572')]+'\x20<'+_0x7f4b97[_0x28b73d('0x274f')][_0x28b73d('0x138c')]+'>';return _0x275241['instant']('DASHBOARDS.NOT_ASSIGNED');}let _0x1586fa=!![],_0x269772=0x1;_0x4a7056[_0x3f462d('0x1bdb')](_0x3f462d('0x5b8'),function(_0x3ab0ca,_0x26c1ab){const _0x487645=_0x3f462d;_0x1586fa?_0x54e3f7(function(){_0x1586fa=![];}):(!_0x26c1ab&&(_0x269772=_0x51e53d[_0x487645('0xc49')][_0x487645('0x182e')]),_0x3ab0ca!==_0x26c1ab&&(_0x51e53d['query'][_0x487645('0x182e')]=0x1),!_0x3ab0ca&&(_0x51e53d[_0x487645('0xc49')][_0x487645('0x182e')]=_0x269772),_0x2ab67b());});}const _0x206b42=_0x30231a,_0x515020=_0x21a6a1['p']+_0x566993('0x65e');_0x4a7a8e['$inject']=[_0x566993('0x2166'),'$scope',_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),'$mdDialog','$document',_0x566993('0x1558'),_0x566993('0xbd4'),'Auth'];function _0x4a7a8e(_0x410374,_0x3e0ee8,_0x4edec0,_0x4b6c43,_0x215cbc,_0x4fcd63,_0x459163,_0x1314ab,_0xe08db8,_0x5bc153,_0x5129e5){const _0xc8cc02=_0x566993,_0x412870=this;_0x412870[_0xc8cc02('0x155f')]=_0x5129e5[_0xc8cc02('0x14d4')](),_0x412870[_0xc8cc02('0x1e37')]={},_0x412870[_0xc8cc02('0x1152')]={'count':0x0,'rows':[]},_0x412870[_0xc8cc02('0x18c1')]=[],_0x412870[_0xc8cc02('0x1dc1')],_0x412870[_0xc8cc02('0xc49')]={'fields':_0xc8cc02('0x1f12'),'limit':0xa,'page':0x1},_0x412870[_0xc8cc02('0xb9c')]=_0x1754f6,_0x412870[_0xc8cc02('0x2051')]=_0x179e50,_0x412870['success']=_0x453856,_0x412870[_0xc8cc02('0x827')]=_0x2d788a,_0x412870['createOrEditSmsAccountSmsCannedAnswer']=_0x40f0ee,_0x412870['exportSelectedSmsAccountSmsCannedAnswers']=_0xf3b9eb,_0x412870[_0xc8cc02('0x2420')]=_0x761aa0,_0x412870[_0xc8cc02('0xacd')]=_0x529908;function _0x1754f6(_0x34ce12,_0x1a3dee){const _0x45ef00=_0xc8cc02;_0x412870[_0x45ef00('0x1e37')]=_0x34ce12,_0x412870[_0x45ef00('0x1dc1')]=typeof _0x1a3dee!==_0x45ef00('0x6e5')?_0x1a3dee:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x412870[_0x45ef00('0xc49')][_0x45ef00('0x23b1')]=_0x412870[_0x45ef00('0x1e37')]['id'],_0x412870['query']['id']=_0x412870[_0x45ef00('0x1e37')]['id'],_0x2d788a();}function _0x179e50(_0xffd5c9,_0x317362){const _0x3354ca=_0xc8cc02,_0x4c28f6=_0x459163['confirm']()[_0x3354ca('0x20d6')](_0x3354ca('0x64c'))[_0x3354ca('0xf8b')](_0x3354ca('0x15b9')+(_0xffd5c9['name']||_0xffd5c9['id']&&_0x3c8d8a()[_0x3354ca('0x5ba')](_0x3354ca('0x27f0'))+_0xffd5c9['id']||_0x3354ca('0xa06'))+_0x3354ca('0x24be')+'\x20will\x20be\x20deleted.')[_0x3354ca('0x217')](_0x3354ca('0x70e'))[_0x3354ca('0x21de')](_0x317362)['ok']('OK')[_0x3354ca('0x1e1f')](_0x3354ca('0x468'));_0x459163[_0x3354ca('0x1cb7')](_0x4c28f6)[_0x3354ca('0x173b')](function(){_0x761aa0(_0xffd5c9);},function(){const _0x37a09c=_0x3354ca;console[_0x37a09c('0xe37')](_0x37a09c('0x468'));});}function _0x453856(_0x2b4160){const _0x94b392=_0xc8cc02;_0x412870[_0x94b392('0x1152')]=_0x2b4160||{'count':0x0,'rows':[]};}function _0x2d788a(){const _0x302f37=_0xc8cc02;_0x412870[_0x302f37('0xc49')][_0x302f37('0x17f0')]=(_0x412870[_0x302f37('0xc49')][_0x302f37('0x182e')]-0x1)*_0x412870[_0x302f37('0xc49')][_0x302f37('0x3e')],_0x412870['promise']=_0x5bc153[_0x302f37('0x1e37')][_0x302f37('0x57b')](_0x412870['query'],_0x453856)[_0x302f37('0x1964')];}function _0x40f0ee(_0x4323c9,_0x271b2f){const _0x3cc38f=_0xc8cc02;_0x459163[_0x3cc38f('0x1cb7')]({'controller':_0x3cc38f('0x1888'),'controllerAs':'vm','templateUrl':_0x515020,'parent':angular['element'](_0x1314ab[_0x3cc38f('0x1a5')]),'targetEvent':_0x4323c9,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x412870['smsAccount'],'smsCannedAnswer':_0x271b2f,'smsCannedAnswers':_0x412870[_0x3cc38f('0x1152')][_0x3cc38f('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x412870[_0x3cc38f('0x1dc1')]}});}function _0x761aa0(_0x495ef8){const _0x7d53f3=_0xc8cc02;_0x5bc153[_0x7d53f3('0x2849')]['delete']({'id':_0x495ef8['id']})[_0x7d53f3('0x1964')][_0x7d53f3('0x173b')](function(){const _0x5422da=_0x7d53f3;_0x3c8d8a()[_0x5422da('0x1a8b')](_0x412870['smsAccountSmsCannedAnswers'][_0x5422da('0x6aa')],{'id':_0x495ef8['id']}),_0x412870[_0x5422da('0x1152')][_0x5422da('0x1a2f')]-=0x1,!_0x412870[_0x5422da('0x1152')][_0x5422da('0x6aa')][_0x5422da('0x543')]&&_0x2d788a(),_0xe08db8[_0x5422da('0xdfe')]({'title':_0x5422da('0x1ccc'),'msg':_0x495ef8[_0x5422da('0x10ad')]?_0x495ef8[_0x5422da('0x10ad')]+_0x5422da('0x25d2'):''});})[_0x7d53f3('0x103c')](function(_0x1facc6){const _0x4c17fe=_0x7d53f3;if(_0x1facc6['data']&&_0x1facc6[_0x4c17fe('0x1e07')]['errors']&&_0x1facc6['data'][_0x4c17fe('0x1d4a')]['length']){_0x412870['errors']=_0x1facc6[_0x4c17fe('0x1e07')][_0x4c17fe('0x1d4a')]||[{'message':_0x1facc6[_0x4c17fe('0x1b75')](),'type':_0x4c17fe('0x16a9')}];for(let _0x456cd4=0x0;_0x456cd4<_0x1facc6[_0x4c17fe('0x1e07')][_0x4c17fe('0x1d4a')]['length'];_0x456cd4++){_0xe08db8[_0x4c17fe('0x15aa')]({'title':_0x1facc6['data'][_0x4c17fe('0x1d4a')][_0x456cd4][_0x4c17fe('0x1810')],'msg':_0x1facc6[_0x4c17fe('0x1e07')]['errors'][_0x456cd4]['message']});}}else _0xe08db8[_0x4c17fe('0x15aa')]({'title':_0x1facc6[_0x4c17fe('0x276f')]?_0x4c17fe('0x137')+_0x1facc6['status']+_0x4c17fe('0x160c')+_0x1facc6[_0x4c17fe('0x2696')]:_0x4c17fe('0x16a9'),'msg':_0x1facc6[_0x4c17fe('0x1e07')]?JSON[_0x4c17fe('0x100b')](_0x1facc6[_0x4c17fe('0x1e07')][_0x4c17fe('0x67f')]):_0x1facc6[_0x4c17fe('0x67f')]||_0x1facc6[_0x4c17fe('0x1b75')]()});});}function _0xf3b9eb(){const _0x28dbc5=_0xc8cc02,_0x3ebca9=angular['copy'](_0x412870[_0x28dbc5('0x18c1')]);return _0x412870[_0x28dbc5('0x18c1')]=[],_0x3ebca9;}function _0x529908(_0x55c0c3){const _0x26689c=_0xc8cc02,_0x695625=_0x459163[_0x26689c('0x1d02')]()[_0x26689c('0x20d6')](_0x26689c('0x262d'))['htmlContent'](_0x26689c('0x15b9')+_0x412870[_0x26689c('0x18c1')][_0x26689c('0x543')]+_0x26689c('0xcb4')+_0x26689c('0xd23'))[_0x26689c('0x217')](_0x26689c('0xe28'))[_0x26689c('0x21de')](_0x55c0c3)['ok']('OK')['cancel'](_0x26689c('0x468'));_0x459163[_0x26689c('0x1cb7')](_0x695625)[_0x26689c('0x173b')](function(){const _0x2dace4=_0x26689c;_0x412870[_0x2dace4('0x18c1')][_0x2dace4('0xa6a')](function(_0x2b231c){_0x761aa0(_0x2b231c);}),_0x412870[_0x2dace4('0x18c1')]=[];});}let _0x20faa7=!![],_0x415f71=0x1;_0x3e0ee8['$watch'](_0xc8cc02('0x5b8'),function(_0x5bc80f,_0x3770e4){const _0x4d121a=_0xc8cc02;_0x20faa7?_0x4fcd63(function(){_0x20faa7=![];}):(!_0x3770e4&&(_0x415f71=_0x412870['query']['page']),_0x5bc80f!==_0x3770e4&&(_0x412870[_0x4d121a('0xc49')][_0x4d121a('0x182e')]=0x1),!_0x5bc80f&&(_0x412870[_0x4d121a('0xc49')][_0x4d121a('0x182e')]=_0x415f71),_0x2d788a());});}const _0x3d7319=_0x4a7a8e;_0x33ae97[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0xbb8'),_0x566993('0xa06'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x33ae97(_0xfa7e09,_0x314580,_0x372930,_0x54a6cb,_0x2be64c,_0x5d7fa2,_0x4a9b2e,_0x26ed29,_0x388bc1,_0x353f9a,_0x20f847,_0x223a46,_0x2ee0b8,_0x335642){const _0x394686=_0x566993,_0x284c82=this;_0x284c82[_0x394686('0x155f')]=_0x20f847[_0x394686('0x14d4')](),_0x284c82[_0x394686('0x1d4a')]=[],_0x284c82[_0x394686('0x251')]=_0x2ee0b8,_0x284c82['license']=_0x223a46,_0x284c82['crudPermissions']=_0x335642,_0x284c82[_0x394686('0xb0')]={},_0x284c82[_0x394686('0x644')]=_0x284c82[_0x394686('0x251')]&&_0x284c82[_0x394686('0x251')][_0x394686('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x284c82[_0x394686('0x20d6')]=_0x394686('0x263f'),_0x284c82['smsCannedAnswer']=angular[_0x394686('0x2e3')](_0x388bc1),_0x284c82['smsCannedAnswers']=_0x26ed29,_0x284c82[_0x394686('0x591')]=![];!_0x284c82[_0x394686('0xa06')]&&(_0x284c82[_0x394686('0xa06')]={},_0x284c82['title']=_0x394686('0x40a'),_0x284c82[_0x394686('0x591')]=!![]);_0x314580[_0x394686('0x197a')]['id']&&(_0x284c82[_0x394686('0xa06')]['SmsAccountId']=_0x314580[_0x394686('0x197a')]['id']);_0x284c82[_0x394686('0xb35')]=_0x289b3e,_0x284c82['saveSmsCannedAnswer']=_0x2cea7d,_0x284c82[_0x394686('0xc27')]=_0x294751,_0x284c82[_0x394686('0x11ae')]=_0x36bc91,_0x284c82[_0x394686('0x18e2')]=_0x1f4812;function _0x289b3e(){const _0x9f72c5=_0x394686;_0x284c82['errors']=[],_0x353f9a[_0x9f72c5('0x2849')][_0x9f72c5('0x1195')](_0x284c82[_0x9f72c5('0xa06')])[_0x9f72c5('0x1964')][_0x9f72c5('0x173b')](function(_0xf8c16f){const _0x40cf18=_0x9f72c5;_0x284c82[_0x40cf18('0xbb8')]['unshift'](_0xf8c16f[_0x40cf18('0xf1f')]()),_0x4a9b2e[_0x40cf18('0xdfe')]({'title':_0x40cf18('0x10a1'),'msg':_0x284c82[_0x40cf18('0xa06')][_0x40cf18('0x10ad')]?_0x284c82[_0x40cf18('0xa06')][_0x40cf18('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x1f4812(_0xf8c16f);})[_0x9f72c5('0x103c')](function(_0x2bc029){const _0x12b451=_0x9f72c5;if(_0x2bc029[_0x12b451('0x1e07')]&&_0x2bc029[_0x12b451('0x1e07')][_0x12b451('0x1d4a')]&&_0x2bc029[_0x12b451('0x1e07')]['errors'][_0x12b451('0x543')]){_0x284c82[_0x12b451('0x1d4a')]=_0x2bc029[_0x12b451('0x1e07')][_0x12b451('0x1d4a')]||[{'message':_0x2bc029[_0x12b451('0x1b75')](),'type':_0x12b451('0x1da7')}];for(let _0x36a008=0x0;_0x36a008<_0x2bc029[_0x12b451('0x1e07')][_0x12b451('0x1d4a')][_0x12b451('0x543')];_0x36a008+=0x1){_0x4a9b2e[_0x12b451('0x15aa')]({'title':_0x2bc029[_0x12b451('0x1e07')][_0x12b451('0x1d4a')][_0x36a008][_0x12b451('0x1810')],'msg':_0x2bc029[_0x12b451('0x1e07')][_0x12b451('0x1d4a')][_0x36a008][_0x12b451('0x67f')]});}}else _0x4a9b2e[_0x12b451('0x15aa')]({'title':_0x2bc029[_0x12b451('0x276f')]?_0x12b451('0x137')+_0x2bc029[_0x12b451('0x276f')]+_0x12b451('0x160c')+_0x2bc029[_0x12b451('0x2696')]:_0x12b451('0x1da7'),'msg':_0x2bc029[_0x12b451('0x1e07')]?JSON[_0x12b451('0x100b')](_0x2bc029[_0x12b451('0x1e07')]['message']):_0x2bc029[_0x12b451('0x1b75')]()});});}function _0x2cea7d(){const _0x55e4bf=_0x394686;_0x284c82[_0x55e4bf('0x1d4a')]=[],_0x353f9a['cannedAnswer'][_0x55e4bf('0x1842')]({'id':_0x284c82[_0x55e4bf('0xa06')]['id']},_0x284c82['smsCannedAnswer'])[_0x55e4bf('0x1964')]['then'](function(_0x1a0909){const _0x2fef59=_0x55e4bf,_0xe22afa=_0x3c8d8a()[_0x2fef59('0x18ab')](_0x284c82[_0x2fef59('0xbb8')],{'id':_0x1a0909['id']});_0xe22afa&&_0x3c8d8a()['merge'](_0xe22afa,_0x3c8d8a()['pick'](_0x1a0909[_0x2fef59('0xf1f')](),_0x3c8d8a()[_0x2fef59('0x1d3e')](_0xe22afa))),_0x4a9b2e[_0x2fef59('0xdfe')]({'title':'SmsCannedAnswer\x20properly\x20saved!','msg':_0x284c82['smsCannedAnswer'][_0x2fef59('0x10ad')]?_0x284c82[_0x2fef59('0xa06')]['name']+_0x2fef59('0x2788'):''}),_0x1f4812(_0x1a0909);})[_0x55e4bf('0x103c')](function(_0x1e95f7){const _0x166276=_0x55e4bf;if(_0x1e95f7[_0x166276('0x1e07')]&&_0x1e95f7[_0x166276('0x1e07')][_0x166276('0x1d4a')]&&_0x1e95f7[_0x166276('0x1e07')][_0x166276('0x1d4a')][_0x166276('0x543')]){_0x284c82['errors']=_0x1e95f7[_0x166276('0x1e07')][_0x166276('0x1d4a')]||[{'message':_0x1e95f7[_0x166276('0x1b75')](),'type':'api.cannedAnswer.update'}];for(let _0x51b3fb=0x0;_0x51b3fb<_0x1e95f7[_0x166276('0x1e07')][_0x166276('0x1d4a')][_0x166276('0x543')];_0x51b3fb++){_0x4a9b2e[_0x166276('0x15aa')]({'title':_0x1e95f7[_0x166276('0x1e07')][_0x166276('0x1d4a')][_0x51b3fb]['type'],'msg':_0x1e95f7[_0x166276('0x1e07')]['errors'][_0x51b3fb][_0x166276('0x67f')]});}}else _0x4a9b2e['error']({'title':_0x1e95f7['status']?'API:'+_0x1e95f7[_0x166276('0x276f')]+_0x166276('0x160c')+_0x1e95f7['statusText']:_0x166276('0x2786'),'msg':_0x1e95f7[_0x166276('0x1e07')]?JSON[_0x166276('0x100b')](_0x1e95f7[_0x166276('0x1e07')][_0x166276('0x67f')]):_0x1e95f7['toString']()});});}function _0x294751(_0x4a6211){const _0x501965=_0x394686;_0x284c82[_0x501965('0x1d4a')]=[];const _0x2b6fed=_0x54a6cb[_0x501965('0x1d02')]()[_0x501965('0x20d6')](_0x501965('0x8ef'))[_0x501965('0x732')](_0x501965('0x254b'))[_0x501965('0x217')]('Delete\x20SmsCannedAnswer')['ok'](_0x501965('0x2373'))[_0x501965('0x1e1f')](_0x501965('0x1d4e'))['targetEvent'](_0x4a6211);_0x54a6cb[_0x501965('0x1cb7')](_0x2b6fed)[_0x501965('0x173b')](function(){const _0x462796=_0x501965;_0x353f9a['cannedAnswer'][_0x462796('0x15e8')]({'id':_0x284c82['smsCannedAnswer']['id']})[_0x462796('0x1964')][_0x462796('0x173b')](function(){const _0x31742b=_0x462796;_0x3c8d8a()[_0x31742b('0x1a8b')](_0x284c82[_0x31742b('0xbb8')],{'id':_0x284c82[_0x31742b('0xa06')]['id']}),_0x4a9b2e[_0x31742b('0xdfe')]({'title':_0x31742b('0xe82'),'msg':(_0x284c82[_0x31742b('0xa06')][_0x31742b('0x10ad')]||_0x31742b('0xa06'))+_0x31742b('0x25d2')}),_0x1f4812(_0x284c82['smsCannedAnswer']);})[_0x462796('0x103c')](function(_0x2150ac){const _0x597239=_0x462796;if(_0x2150ac[_0x597239('0x1e07')]&&_0x2150ac[_0x597239('0x1e07')][_0x597239('0x1d4a')]&&_0x2150ac['data'][_0x597239('0x1d4a')]['length']){_0x284c82['errors']=_0x2150ac['data'][_0x597239('0x1d4a')]||[{'message':_0x2150ac[_0x597239('0x1b75')](),'type':_0x597239('0x1684')}];for(let _0x4e90a4=0x0;_0x4e90a4<_0x2150ac['data'][_0x597239('0x1d4a')][_0x597239('0x543')];_0x4e90a4++){_0x4a9b2e[_0x597239('0x15aa')]({'title':_0x2150ac[_0x597239('0x1e07')][_0x597239('0x1d4a')][_0x4e90a4]['type'],'msg':_0x2150ac[_0x597239('0x1e07')][_0x597239('0x1d4a')][_0x4e90a4][_0x597239('0x67f')]});}}else _0x4a9b2e[_0x597239('0x15aa')]({'title':_0x2150ac[_0x597239('0x276f')]?_0x597239('0x137')+_0x2150ac[_0x597239('0x276f')]+_0x597239('0x160c')+_0x2150ac['statusText']:'api.cannedAnswer.delete','msg':_0x2150ac['data']?JSON[_0x597239('0x100b')](_0x2150ac[_0x597239('0x1e07')][_0x597239('0x67f')]):_0x2150ac[_0x597239('0x67f')]||_0x2150ac['toString']()});});},function(){});}function _0x36bc91(_0x459f62){return _0x459f62===null?undefined:new Date(_0x459f62);}function _0x1f4812(_0x47ef99){const _0x45fe61=_0x394686;_0x54a6cb[_0x45fe61('0x1cf4')](_0x47ef99);}}const _0x40d39a=_0x33ae97;_0x33858e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state',_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),_0x566993('0x638'),'api',_0x566993('0x1558'),'Auth'];function _0x33858e(_0x45cd89,_0x5f01f5,_0x5911c8,_0x11385,_0x490a2f,_0x31774c,_0x4946bd,_0x391abc,_0x7af94d,_0x3c5d14,_0x3e7bf3){const _0x1e2340=_0x566993,_0x4f7986=this;_0x4f7986[_0x1e2340('0x155f')]=_0x3e7bf3[_0x1e2340('0x14d4')](),_0x4f7986[_0x1e2340('0x9c6')]={'count':0x0,'rows':[]},_0x4f7986['selectedDispositions']=[],_0x4f7986[_0x1e2340('0x1dc1')],_0x4f7986[_0x1e2340('0x1d14')]={'first':_0x1e2340('0x1d1b'),'second':_0x1e2340('0x1136'),'third':_0x1e2340('0x1486')},_0x4f7986[_0x1e2340('0xc49')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x1e2340('0x1769'),'limit':0xa,'page':0x1},_0x4f7986[_0x1e2340('0xb9c')]=_0x385063,_0x4f7986[_0x1e2340('0x2051')]=_0x17c9ae,_0x4f7986[_0x1e2340('0xdfe')]=_0xd24e99,_0x4f7986[_0x1e2340('0x251d')]=_0x1fc2e1,_0x4f7986['createOrEditDisposition']=_0xcecdf2,_0x4f7986[_0x1e2340('0x1d5a')]=_0x1824ed,_0x4f7986[_0x1e2340('0x1a6b')]=_0x546b58,_0x4f7986['deleteSelectedDispositions']=_0x1cbfb9,_0x4f7986[_0x1e2340('0x2307')]=_0x7972eb,_0x4f7986[_0x1e2340('0x17fe')]=_0x1fef5e;function _0x385063(_0x26f4b4,_0x147d6a){const _0x1e9840=_0x1e2340;_0x4f7986[_0x1e9840('0x1e37')]=_0x26f4b4||{},_0x4f7986[_0x1e9840('0x1dc1')]=typeof _0x147d6a!==_0x1e9840('0x6e5')?_0x147d6a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4f7986[_0x1e9840('0xc49')][_0x1e9840('0x23b1')]=_0x4f7986[_0x1e9840('0x1e37')]['id'],_0x4f7986['query']['id']=_0x4f7986['smsAccount']['id'],_0x1fc2e1();}function _0xcecdf2(_0x1fe9bb,_0x3275e6){const _0x552939=_0x1e2340;_0x490a2f[_0x552939('0x1cb7')]({'controller':_0x552939('0x19ff'),'controllerAs':'vm','templateUrl':_0x1db9b3,'parent':angular[_0x552939('0xb6d')](_0x31774c[_0x552939('0x1a5')]),'targetEvent':_0x1fe9bb,'clickOutsideToClose':!![],'locals':{'disposition':_0x3275e6,'dispositions':_0x4f7986[_0x552939('0x9c6')][_0x552939('0x6aa')],'model':{'id':_0x4f7986[_0x552939('0x1e37')]['id'],'field':'SmsAccountId'},'license':null,'setting':null,'crudPermissions':_0x4f7986[_0x552939('0x1dc1')]}})[_0x552939('0x173b')](function(_0x4045df){if(_0x4045df)_0x1fc2e1();});}function _0x17c9ae(_0x59c89b,_0x6af8f9){const _0x2afdec=_0x1e2340,_0x11b492=_0x3c8d8a()[_0x2afdec('0x1ec')](_0x4f7986[_0x2afdec('0x9c6')]['rows'],['ParentId',_0x59c89b['id']]),_0x4435bc=_0x490a2f[_0x2afdec('0x1d02')]()[_0x2afdec('0x20d6')](_0x391abc[_0x2afdec('0x1467')](_0x2afdec('0xf13')))['content'](_0x391abc[_0x2afdec('0x1467')](_0x2afdec('0x15d6')+(_0x11b492?_0x2afdec('0x6f'):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x59c89b['name']}))[_0x2afdec('0x217')]('Delete\x20disposition')['targetEvent'](_0x6af8f9)['ok']('OK')['cancel'](_0x391abc[_0x2afdec('0x1467')](_0x2afdec('0x2224')));_0x490a2f[_0x2afdec('0x1cb7')](_0x4435bc)[_0x2afdec('0x173b')](function(){_0x1824ed(_0x59c89b);});}function _0xd24e99(_0x56bcb2){const _0x3ac698=_0x1e2340;_0x4f7986[_0x3ac698('0x9c6')]=_0x56bcb2||{'count':0x0,'rows':[]};}function _0x1fc2e1(){const _0x272a47=_0x1e2340;_0x4f7986[_0x272a47('0xc49')][_0x272a47('0x17f0')]=(_0x4f7986['query'][_0x272a47('0x182e')]-0x1)*_0x4f7986[_0x272a47('0xc49')][_0x272a47('0x3e')],_0x4f7986[_0x272a47('0x2219')]=_0x7af94d[_0x272a47('0x1e37')][_0x272a47('0x251d')](_0x4f7986[_0x272a47('0xc49')],_0xd24e99)[_0x272a47('0x1964')];}function _0x1824ed(_0x4436f9){const _0x29034d=_0x1e2340;_0x7af94d['disposition'][_0x29034d('0x15e8')]({'id':_0x4436f9['id']})[_0x29034d('0x1964')][_0x29034d('0x173b')](function(){const _0x28df89=_0x29034d;_0x1fc2e1(),_0x3c5d14[_0x28df89('0xdfe')]({'title':_0x391abc[_0x28df89('0x1467')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE')});})[_0x29034d('0x103c')](function(_0x4ef43f){const _0x2090c4=_0x29034d;if(_0x4ef43f['data']&&_0x4ef43f['data'][_0x2090c4('0x1d4a')]&&_0x4ef43f[_0x2090c4('0x1e07')][_0x2090c4('0x1d4a')]['length']){_0x4f7986['errors']=_0x4ef43f[_0x2090c4('0x1e07')][_0x2090c4('0x1d4a')]||[{'message':_0x4ef43f[_0x2090c4('0x1b75')](),'type':_0x2090c4('0x6af')}];for(let _0x360b7b=0x0;_0x360b7b<_0x4ef43f[_0x2090c4('0x1e07')][_0x2090c4('0x1d4a')][_0x2090c4('0x543')];_0x360b7b++){_0x3c5d14[_0x2090c4('0x15aa')]({'title':_0x4ef43f[_0x2090c4('0x1e07')][_0x2090c4('0x1d4a')][_0x360b7b][_0x2090c4('0x1810')],'msg':_0x4ef43f[_0x2090c4('0x1e07')][_0x2090c4('0x1d4a')][_0x360b7b][_0x2090c4('0x67f')]});}}else _0x3c5d14[_0x2090c4('0x15aa')]({'title':_0x4ef43f[_0x2090c4('0x276f')]?_0x2090c4('0x137')+_0x4ef43f[_0x2090c4('0x276f')]+_0x2090c4('0x160c')+_0x4ef43f[_0x2090c4('0x2696')]:_0x2090c4('0x6af'),'msg':_0x4ef43f[_0x2090c4('0x1e07')]?JSON[_0x2090c4('0x100b')](_0x4ef43f[_0x2090c4('0x1e07')][_0x2090c4('0x67f')]):_0x4ef43f['message']||_0x4ef43f[_0x2090c4('0x1b75')]()});});}function _0x546b58(){const _0x34919f=_0x1e2340,_0x5c09ed=angular[_0x34919f('0x2e3')](_0x4f7986[_0x34919f('0x451')]);return _0x4f7986[_0x34919f('0x451')]=[],_0x5c09ed;}function _0x1cbfb9(_0x25b345){const _0xbffe88=_0x1e2340,_0x8a699d=_0x490a2f[_0xbffe88('0x1d02')]()[_0xbffe88('0x20d6')](_0x391abc[_0xbffe88('0x1467')](_0xbffe88('0xa25')))[_0xbffe88('0x732')](_0x391abc[_0xbffe88('0x1467')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x4f7986[_0xbffe88('0x451')][_0xbffe88('0x543')]}))[_0xbffe88('0x217')](_0xbffe88('0x6b8'))[_0xbffe88('0x21de')](_0x25b345)['ok']('OK')[_0xbffe88('0x1e1f')](_0x391abc[_0xbffe88('0x1467')](_0xbffe88('0x2224')));_0x490a2f['show'](_0x8a699d)[_0xbffe88('0x173b')](function(){const _0x59034f=_0xbffe88;_0x4f7986['selectedDispositions'][_0x59034f('0xa6a')](function(_0x35570c){_0x1824ed(_0x35570c);}),_0x4f7986[_0x59034f('0x451')]=[];});}function _0x7972eb(){const _0x16ca92=_0x1e2340;_0x4f7986[_0x16ca92('0x451')]=[];}function _0x1fef5e(){const _0x3a9192=_0x1e2340;_0x4f7986['selectedDispositions']=_0x4f7986[_0x3a9192('0x9c6')]['rows'];}let _0x2006f8=!![],_0x401f8e=0x1;_0x45cd89[_0x1e2340('0x1bdb')]('vm_dc.query.filter',function(_0xa1ae73,_0x4af27b){const _0x1830b1=_0x1e2340;_0x2006f8?_0x4946bd(function(){_0x2006f8=![];}):(!_0x4af27b&&(_0x401f8e=_0x4f7986['query'][_0x1830b1('0x182e')]),_0xa1ae73!==_0x4af27b&&(_0x4f7986['query'][_0x1830b1('0x182e')]=0x1),!_0xa1ae73&&(_0x4f7986['query'][_0x1830b1('0x182e')]=_0x401f8e),_0x1fc2e1());});}const _0x1b83f2=_0x33858e,_0x4d6722=_0x21a6a1['p']+_0x566993('0x26da');_0x21b0cd[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$document',_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),'smsAccount',_0x566993('0x170e')];function _0x21b0cd(_0x54e6dd,_0x23d8e3,_0x43fbb2,_0x4a2d49,_0x34ca14,_0x548ea3,_0x2404e3,_0x1c8bbd,_0x12ea52,_0x2ea289,_0x40e230,_0x24e671){const _0x4f22eb=_0x566993,_0x371ef3=this;_0x371ef3['currentUser']=_0x2ea289['getCurrentUser'](),_0x371ef3[_0x4f22eb('0x1a29')]=_0x548ea3,_0x371ef3[_0x4f22eb('0x251')]=_0x2404e3,_0x371ef3[_0x4f22eb('0x644')]=_0x371ef3[_0x4f22eb('0x251')][_0x4f22eb('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x371ef3[_0x4f22eb('0x614')]=_0x23d8e3[_0x4f22eb('0x375')]()+_0x4f22eb('0x122b')+_0x23d8e3[_0x4f22eb('0x4d1')](),_0x371ef3[_0x4f22eb('0x1e37')]=_0x40e230||_0x54e6dd[_0x4f22eb('0x197a')][_0x4f22eb('0x1e37')]||{},_0x371ef3[_0x4f22eb('0x170e')]=_0x24e671&&_0x24e671[_0x4f22eb('0x1a2f')]==0x1?_0x24e671[_0x4f22eb('0x6aa')][0x0]:null,_0x371ef3[_0x4f22eb('0x1dc1')]=_0x2ea289[_0x4f22eb('0xde6')](_0x371ef3[_0x4f22eb('0x170e')]?_0x371ef3['userProfileSection'][_0x4f22eb('0x1dc1')]:null),_0x371ef3[_0x4f22eb('0xb0')]={},_0x371ef3[_0x4f22eb('0xd5f')]=_0x54e6dd[_0x4f22eb('0x197a')][_0x4f22eb('0x1e66')]||0x0,_0x371ef3[_0x4f22eb('0x2118')]=_0x1d9ca3,_0x371ef3[_0x4f22eb('0x5a4')]=_0x12ea52[_0x4f22eb('0x2787')],_0x371ef3[_0x4f22eb('0x11f7')]=_0x3380fd,_0x371ef3[_0x4f22eb('0x5f9')]=_0x45b143,_0x2ea289['hasRole'](_0x4f22eb('0x79b'))?_0x1c8bbd[_0x4f22eb('0xbb3')][_0x4f22eb('0x1d97')]({'fields':'id,name','sort':_0x4f22eb('0x10ad')})[_0x4f22eb('0x1964')]['then'](function(_0xd30bc3){const _0x26244c=_0x4f22eb;_0x371ef3[_0x26244c('0x9e8')]=_0xd30bc3[_0x26244c('0x6aa')]||[];})['catch'](function(_0x167f0c){const _0x39a209=_0x4f22eb;_0x12ea52[_0x39a209('0x15aa')]({'title':_0x167f0c[_0x39a209('0x276f')]?_0x39a209('0x137')+_0x167f0c[_0x39a209('0x276f')]+'\x20-\x20'+_0x167f0c[_0x39a209('0x2696')]:_0x39a209('0x1d5c'),'msg':_0x167f0c[_0x39a209('0x1e07')]?JSON[_0x39a209('0x100b')](_0x167f0c[_0x39a209('0x1e07')]):_0x167f0c[_0x39a209('0x1b75')]()});}):_0x1c8bbd['cmList'][_0x4f22eb('0x1d97')]({'fields':_0x4f22eb('0xd52'),'sort':_0x4f22eb('0x10ad')})[_0x4f22eb('0x1964')][_0x4f22eb('0x173b')](function(_0x12aa42){const _0x168724=_0x4f22eb;_0x371ef3[_0x168724('0x9e8')]=_0x12aa42[_0x168724('0x6aa')]||[];})[_0x4f22eb('0x173b')](function(){const _0x168a51=_0x4f22eb;return _0x1c8bbd['userProfileSection'][_0x168a51('0x1d97')]({'userProfileId':_0x371ef3[_0x168a51('0x155f')][_0x168a51('0x1946')],'sectionId':0x12d})['$promise'];})[_0x4f22eb('0x173b')](function(_0x1d9b42){const _0x2c7aca=_0x4f22eb,_0x36ff54=_0x1d9b42&&_0x1d9b42['rows']?_0x1d9b42['rows'][0x0]:null;if(!_0x36ff54){const _0x2dc088=[];let _0x2a6390=null;_0x371ef3[_0x2c7aca('0x1e37')]&&(_0x2a6390=_0x3c8d8a()[_0x2c7aca('0x18ab')](_0x371ef3['lists'],{'id':Number(_0x371ef3['smsAccount'][_0x2c7aca('0xef2')])}));for(let _0x35b401=0x0;_0x35b401<_0x371ef3['lists'][_0x2c7aca('0x543')];_0x35b401++){_0x2a6390&&_0x371ef3[_0x2c7aca('0x9e8')][_0x35b401]['id']===_0x2a6390['id']&&(_0x371ef3['lists'][_0x35b401][_0x2c7aca('0x268e')]=![],_0x2dc088[_0x2c7aca('0x18bb')](_0x371ef3[_0x2c7aca('0x9e8')][_0x35b401]));}_0x371ef3[_0x2c7aca('0x9e8')]=_0x2dc088;}else{if(!_0x36ff54['autoAssociation'])return _0x1c8bbd[_0x2c7aca('0xda9')][_0x2c7aca('0x1d97')]({'sectionId':_0x36ff54['id']})['$promise'][_0x2c7aca('0x173b')](function(_0x162e08){const _0x2d1524=_0x2c7aca,_0x337863=_0x3c8d8a()[_0x2d1524('0x8a2')](_0x162e08[_0x2d1524('0x6aa')],function(_0x2f4bac){const _0x48d769=_0x2d1524;return _0x3c8d8a()[_0x48d769('0x18ab')](_0x371ef3[_0x48d769('0x9e8')],{'id':_0x2f4bac['resourceId']});});let _0x2933ce=null;_0x371ef3[_0x2d1524('0x1e37')]&&(_0x2933ce=_0x3c8d8a()[_0x2d1524('0x18ab')](_0x371ef3['lists'],{'id':Number(_0x371ef3[_0x2d1524('0x1e37')][_0x2d1524('0xef2')])}));if(_0x2933ce&&!_0x3c8d8a()['some'](_0x337863,['id',_0x2933ce['id']])){const _0x5b2a67=_0x3c8d8a()[_0x2d1524('0x18ab')](_0x371ef3[_0x2d1524('0x9e8')],{'id':_0x2933ce['id']});_0x5b2a67[_0x2d1524('0x268e')]=![],_0x337863[_0x2d1524('0x18bb')](_0x5b2a67);}_0x371ef3[_0x2d1524('0x9e8')]=_0x337863;});}})[_0x4f22eb('0x103c')](function(_0x147910){const _0x1ea975=_0x4f22eb;_0x12ea52[_0x1ea975('0x15aa')]({'title':_0x147910['status']?_0x1ea975('0x137')+_0x147910[_0x1ea975('0x276f')]+'\x20-\x20'+_0x147910[_0x1ea975('0x2696')]:_0x1ea975('0x1292'),'msg':_0x147910[_0x1ea975('0x1e07')]?JSON['stringify'](_0x147910[_0x1ea975('0x1e07')]):_0x147910[_0x1ea975('0x1b75')]()});}),_0x2ea289['hasRole'](_0x4f22eb('0x79b'))?_0x1c8bbd['pause']['get']({'fields':_0x4f22eb('0x901'),'sort':'name','nolimit':_0x4f22eb('0x799')})[_0x4f22eb('0x1964')][_0x4f22eb('0x173b')](function(_0xde7c7){const _0x3da878=_0x4f22eb;_0x371ef3[_0x3da878('0x1d66')]=_0xde7c7[_0x3da878('0x6aa')]||[];})[_0x4f22eb('0x103c')](function(_0x38b027){const _0x11b493=_0x4f22eb;_0x12ea52[_0x11b493('0x15aa')]({'title':_0x38b027['status']?_0x11b493('0x137')+_0x38b027[_0x11b493('0x276f')]+'\x20-\x20'+_0x38b027[_0x11b493('0x2696')]:_0x11b493('0xe0f'),'msg':_0x38b027[_0x11b493('0x1e07')]?JSON[_0x11b493('0x100b')](_0x38b027[_0x11b493('0x1e07')]):_0x38b027[_0x11b493('0x1b75')]()});}):_0x1c8bbd[_0x4f22eb('0x1751')][_0x4f22eb('0x1d97')]({'fields':_0x4f22eb('0x901'),'sort':_0x4f22eb('0x10ad'),'nolimit':_0x4f22eb('0x799')})[_0x4f22eb('0x1964')]['then'](function(_0x28766a){const _0x1f40e0=_0x4f22eb;_0x371ef3['pauses']=_0x28766a[_0x1f40e0('0x6aa')]||[];})['then'](function(){const _0x22f331=_0x4f22eb;return _0x1c8bbd[_0x22f331('0x170e')][_0x22f331('0x1d97')]({'userProfileId':_0x371ef3[_0x22f331('0x155f')][_0x22f331('0x1946')],'sectionId':0x3ed})[_0x22f331('0x1964')];})['then'](function(_0x4f3dc8){const _0x48bd77=_0x4f22eb,_0x3a6679=_0x4f3dc8&&_0x4f3dc8[_0x48bd77('0x6aa')]?_0x4f3dc8[_0x48bd77('0x6aa')][0x0]:null;if(!_0x3a6679)_0x371ef3[_0x48bd77('0x1d66')]=[];else{if(!_0x3a6679['autoAssociation'])return _0x1c8bbd[_0x48bd77('0xda9')][_0x48bd77('0x1d97')]({'sectionId':_0x3a6679['id']})[_0x48bd77('0x1964')][_0x48bd77('0x173b')](function(_0x5af741){const _0x4fdb9d=_0x48bd77,_0x43ac12=_0x3c8d8a()[_0x4fdb9d('0x8a2')](_0x5af741['rows'],function(_0x284973){const _0x391273=_0x4fdb9d;return _0x3c8d8a()['find'](_0x371ef3['pauses'],{'id':_0x284973[_0x391273('0x1ce0')]});});_0x371ef3[_0x4fdb9d('0x1d66')][_0x4fdb9d('0xa6a')](function(_0x882bb1){const _0x3179ca=_0x4fdb9d;!_0x3c8d8a()['some'](_0x43ac12,['id',_0x882bb1['id']])&&(_0x882bb1[_0x3179ca('0x268e')]=![]),_0x43ac12['push'](_0x882bb1);}),_0x371ef3['pauses']=_0x43ac12;});}})['catch'](function(_0x4e7260){const _0x302f5f=_0x4f22eb;_0x12ea52[_0x302f5f('0x15aa')]({'title':_0x4e7260[_0x302f5f('0x276f')]?_0x302f5f('0x137')+_0x4e7260[_0x302f5f('0x276f')]+_0x302f5f('0x160c')+_0x4e7260['statusText']:'SYSTEM:GETpauses','msg':_0x4e7260['data']?JSON[_0x302f5f('0x100b')](_0x4e7260['data']):_0x4e7260[_0x302f5f('0x1b75')]()});});function _0x1d9ca3(_0xb2ee6a,_0x4b9f43){const _0x4e96fa=_0x4f22eb;_0x43fbb2['show']({'controller':_0x4e96fa('0x21aa'),'controllerAs':'vm','templateUrl':_0x4d6722,'parent':angular[_0x4e96fa('0xb6d')](_0x4a2d49[_0x4e96fa('0x1a5')]),'targetEvent':_0x4b9f43,'clickOutsideToClose':!![],'locals':{'smsAccount':_0xb2ee6a,'smsAccounts':_0x371ef3[_0x4e96fa('0x130a')]?_0x371ef3[_0x4e96fa('0x130a')][_0x4e96fa('0x6aa')]:[],'crudPermissions':_0x371ef3[_0x4e96fa('0x1dc1')],'realtime':![]}});}function _0x3380fd(){const _0x5c0a9a=_0x4f22eb;_0x54e6dd['go'](_0x5c0a9a('0x242d'),{},{'reload':_0x5c0a9a('0x242d')});}function _0x45b143(){const _0x584050=_0x4f22eb;_0x1c8bbd[_0x584050('0x1e37')][_0x584050('0x1842')]({'id':_0x371ef3[_0x584050('0x1e37')]['id']},_0x371ef3[_0x584050('0x1e37')])[_0x584050('0x1964')][_0x584050('0x173b')](function(){const _0xcc2414=_0x584050;_0x12ea52['success']({'title':_0xcc2414('0x36b'),'msg':_0x371ef3[_0xcc2414('0x1e37')]['name']?_0x371ef3[_0xcc2414('0x1e37')][_0xcc2414('0x10ad')]+_0xcc2414('0x1fd6'):''});})['catch'](function(_0x232d5a){const _0x55a5a9=_0x584050;_0x12ea52[_0x55a5a9('0x15aa')]({'title':_0x232d5a[_0x55a5a9('0x276f')]?_0x55a5a9('0x137')+_0x232d5a[_0x55a5a9('0x276f')]+_0x55a5a9('0x160c')+_0x232d5a[_0x55a5a9('0x2696')]:'SYSTEM:GETsmsAccount','msg':_0x232d5a['data']?JSON[_0x55a5a9('0x100b')](_0x232d5a[_0x55a5a9('0x1e07')]):_0x232d5a[_0x55a5a9('0x1b75')]()});});}}const _0x3bd212=_0x21b0cd,_0x1de11c=_0x21a6a1['p']+_0x566993('0x256c');_0x24f71f[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window','$state',_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x130a'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x24f71f(_0x1d93f5,_0x53b2b8,_0x5c0872,_0x470920,_0x2e8e7a,_0x114389,_0x15f253,_0x2dc212,_0xe41355,_0x5a78a8,_0x589d8b,_0x405e04,_0x528f90,_0xe0a958,_0x4fc6a0,_0x4063f2,_0x44e89b){const _0x2c9f6c=_0x566993,_0x951bf=this;_0x951bf[_0x2c9f6c('0x1a29')]=_0x4063f2,_0x951bf[_0x2c9f6c('0x251')]=_0x44e89b,_0x951bf['currentUser']=_0x4fc6a0[_0x2c9f6c('0x14d4')](),_0x951bf[_0x2c9f6c('0x130a')]=_0xe41355||{'count':0x0,'rows':[]},_0x951bf[_0x2c9f6c('0x257b')]=_0x5a78a8,_0x951bf['userProfileSection']=_0x589d8b&&_0x589d8b[_0x2c9f6c('0x1a2f')]==0x1?_0x589d8b[_0x2c9f6c('0x6aa')][0x0]:null,_0x951bf[_0x2c9f6c('0x1dc1')]=_0x4fc6a0['parseCrudPermissions'](_0x951bf[_0x2c9f6c('0x170e')]?_0x951bf[_0x2c9f6c('0x170e')][_0x2c9f6c('0x1dc1')]:null),_0x951bf[_0x2c9f6c('0xdf9')]=_0x2c9f6c('0x130a'),_0x951bf[_0x2c9f6c('0x14d6')]='',_0x951bf['listOrderAsc']=null,_0x951bf[_0x2c9f6c('0x1817')]=[],_0x951bf['query']={'fields':_0x2c9f6c('0x232a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x951bf[_0x2c9f6c('0x1f90')]=_0x3c8d8a()[_0x2c9f6c('0x128')]([{'option':_0x2c9f6c('0x767'),'value':_0x2c9f6c('0x1eed')},{'option':_0x2c9f6c('0x1699'),'value':'\x27skebby\x27'},{'option':_0x2c9f6c('0x962'),'value':_0x2c9f6c('0x6ec')},{'option':_0x2c9f6c('0x36'),'value':_0x2c9f6c('0x15eb')},{'option':_0x2c9f6c('0x2598'),'value':'\x27plivo\x27'},{'option':_0x2c9f6c('0x1e0d'),'value':'\x27infobip\x27'},{'option':_0x2c9f6c('0x239'),'value':'\x27clickatell\x27'},{'option':_0x2c9f6c('0x2d'),'value':'\x27csc\x27'},{'option':_0x2c9f6c('0x586'),'value':'\x27intelepeer\x27'}],function(_0x44ea11){const _0xd98834=_0x2c9f6c;return _0x3c8d8a()['replace'](_0x44ea11[_0xd98834('0xa7b')],new RegExp('\x27','g'),'');}),_0x951bf[_0x2c9f6c('0x1b0b')]=_0x3c8d8a()[_0x2c9f6c('0x128')]([{'option':_0x2c9f6c('0xd5d'),'value':'\x27SI\x27'},{'option':_0x2c9f6c('0xb48'),'value':_0x2c9f6c('0x13bb')},{'option':_0x2c9f6c('0x574'),'value':_0x2c9f6c('0x22d1')}],function(_0x1f4390){const _0x2534b9=_0x2c9f6c;return _0x3c8d8a()[_0x2534b9('0x166c')](_0x1f4390[_0x2534b9('0xa7b')],new RegExp('\x27','g'),'');}),_0x951bf[_0x2c9f6c('0x222e')]=_0x662d6f,_0x951bf[_0x2c9f6c('0x426')]=_0x11f0b8,_0x951bf[_0x2c9f6c('0x2118')]=_0x3e8037,_0x951bf[_0x2c9f6c('0x1a20')]=_0x2c1ff0,_0x951bf[_0x2c9f6c('0xdfe')]=_0x4a5faa,_0x951bf[_0x2c9f6c('0x112b')]=_0x27ad65,_0x951bf['createOrEditSmsAccount']=_0x53e093,_0x951bf[_0x2c9f6c('0x23e5')]=_0x1545e5,_0x951bf[_0x2c9f6c('0x59c')]=_0x67b361,_0x951bf['deleteSelectedSmsAccounts']=_0x345623,_0x951bf[_0x2c9f6c('0x13bc')]=_0x1dc705,_0x951bf[_0x2c9f6c('0x79f')]=_0x2117da,_0x4fc6a0[_0x2c9f6c('0x1b4e')]('admin')?_0x405e04[_0x2c9f6c('0xbb3')][_0x2c9f6c('0x1d97')]({'fields':_0x2c9f6c('0xd52'),'sort':_0x2c9f6c('0x10ad')})[_0x2c9f6c('0x1964')][_0x2c9f6c('0x173b')](function(_0x8fcf66){const _0x2603d5=_0x2c9f6c;_0x951bf['lists']=_0x8fcf66[_0x2603d5('0x6aa')]||[];})[_0x2c9f6c('0x103c')](function(_0x4f082d){const _0x27fc67=_0x2c9f6c;_0xe0a958[_0x27fc67('0x15aa')]({'title':_0x4f082d[_0x27fc67('0x276f')]?_0x27fc67('0x137')+_0x4f082d['status']+'\x20-\x20'+_0x4f082d[_0x27fc67('0x2696')]:'SYSTEM:GET_LISTS','msg':_0x4f082d['data']?JSON[_0x27fc67('0x100b')](_0x4f082d[_0x27fc67('0x1e07')]):_0x4f082d[_0x27fc67('0x1b75')]()});}):_0x405e04[_0x2c9f6c('0xbb3')][_0x2c9f6c('0x1d97')]({'fields':'id,name','sort':'name'})[_0x2c9f6c('0x1964')][_0x2c9f6c('0x173b')](function(_0x1b0bbc){const _0x18ae98=_0x2c9f6c;_0x951bf[_0x18ae98('0x9e8')]=_0x1b0bbc[_0x18ae98('0x6aa')]||[];})[_0x2c9f6c('0x173b')](function(){const _0x480a2e=_0x2c9f6c;return _0x405e04[_0x480a2e('0x170e')]['get']({'userProfileId':_0x951bf['currentUser'][_0x480a2e('0x1946')],'sectionId':0x12d})[_0x480a2e('0x1964')];})[_0x2c9f6c('0x173b')](function(_0x425730){const _0x24d8a8=_0x2c9f6c,_0x3842e5=_0x425730&&_0x425730[_0x24d8a8('0x6aa')]?_0x425730[_0x24d8a8('0x6aa')][0x0]:null;if(!_0x3842e5){const _0x4bc338=[];let _0x3efa48=null;_0x951bf[_0x24d8a8('0x1e37')]&&(_0x3efa48=_0x3c8d8a()[_0x24d8a8('0x18ab')](_0x951bf[_0x24d8a8('0x9e8')],{'id':Number(_0x951bf['smsAccount'][_0x24d8a8('0xef2')])}));for(let _0x2f43fa=0x0;_0x2f43fa<_0x951bf[_0x24d8a8('0x9e8')][_0x24d8a8('0x543')];_0x2f43fa++){_0x3efa48&&_0x951bf[_0x24d8a8('0x9e8')][_0x2f43fa]['id']===_0x3efa48['id']&&(_0x951bf['lists'][_0x2f43fa]['canSelect']=![],_0x4bc338[_0x24d8a8('0x18bb')](_0x951bf[_0x24d8a8('0x9e8')][_0x2f43fa]));}_0x951bf[_0x24d8a8('0x9e8')]=_0x4bc338;}else{if(!_0x3842e5['autoAssociation'])return _0x405e04[_0x24d8a8('0xda9')][_0x24d8a8('0x1d97')]({'sectionId':_0x3842e5['id']})[_0x24d8a8('0x1964')][_0x24d8a8('0x173b')](function(_0x34c843){const _0x33dbc4=_0x24d8a8,_0x399f99=_0x3c8d8a()[_0x33dbc4('0x8a2')](_0x34c843[_0x33dbc4('0x6aa')],function(_0x4f316e){const _0x1715fd=_0x33dbc4;return _0x3c8d8a()[_0x1715fd('0x18ab')](_0x951bf[_0x1715fd('0x9e8')],{'id':_0x4f316e['resourceId']});});let _0x2e755f=null;_0x951bf['smsAccount']&&(_0x2e755f=_0x3c8d8a()[_0x33dbc4('0x18ab')](_0x951bf[_0x33dbc4('0x9e8')],{'id':Number(_0x951bf['smsAccount'][_0x33dbc4('0xef2')])}));if(_0x2e755f&&!_0x3c8d8a()['some'](_0x399f99,['id',_0x2e755f['id']])){const _0x42c8e9=_0x3c8d8a()['find'](_0x951bf[_0x33dbc4('0x9e8')],{'id':_0x2e755f['id']});_0x42c8e9[_0x33dbc4('0x268e')]=![],_0x399f99[_0x33dbc4('0x18bb')](_0x42c8e9);}_0x951bf[_0x33dbc4('0x9e8')]=_0x399f99;});}})[_0x2c9f6c('0x103c')](function(_0x5c4f6a){const _0x3d3b4a=_0x2c9f6c;_0xe0a958['error']({'title':_0x5c4f6a[_0x3d3b4a('0x276f')]?_0x3d3b4a('0x137')+_0x5c4f6a[_0x3d3b4a('0x276f')]+_0x3d3b4a('0x160c')+_0x5c4f6a[_0x3d3b4a('0x2696')]:_0x3d3b4a('0x1292'),'msg':_0x5c4f6a[_0x3d3b4a('0x1e07')]?JSON[_0x3d3b4a('0x100b')](_0x5c4f6a[_0x3d3b4a('0x1e07')]):_0x5c4f6a[_0x3d3b4a('0x1b75')]()});});function _0x662d6f(_0x1fc242){const _0x1ec5d6=_0x2c9f6c;_0x5c0872['go']('app.sms.smsAccounts.edit',{'id':_0x1fc242['id'],'smsAccount':_0x1fc242,'crudPermissions':_0x951bf[_0x1ec5d6('0x1dc1')]});}function _0x11f0b8(_0x489c5a){_0x5c0872['go']('app.sms.smsAccounts.edit',{'id':_0x489c5a['id'],'tab':0x5});}function _0x3e8037(_0x127987,_0x1045d2){const _0x2732b1=_0x2c9f6c;_0x2e8e7a['show']({'controller':_0x2732b1('0x21aa'),'controllerAs':'vm','templateUrl':_0x4d6722,'parent':angular[_0x2732b1('0xb6d')](_0x114389[_0x2732b1('0x1a5')]),'targetEvent':_0x1045d2,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x127987,'smsAccounts':_0x951bf[_0x2732b1('0x130a')]?_0x951bf[_0x2732b1('0x130a')][_0x2732b1('0x6aa')]:[],'crudPermissions':_0x951bf['crudPermissions'],'realtime':![]}});}function _0x2c1ff0(_0x2e68a2,_0x43cdeb){const _0x4821d7=_0x2c9f6c,_0x322c4c=_0x2e8e7a['confirm']()[_0x4821d7('0x20d6')](_0x4821d7('0x5bb')+_0x3c8d8a()[_0x4821d7('0x10e')](_0x4821d7('0x1e37'))+'?')[_0x4821d7('0xf8b')](''+(_0x2e68a2[_0x4821d7('0x10ad')]||_0x4821d7('0x1e37'))+_0x4821d7('0x24be')+_0x4821d7('0xd23'))[_0x4821d7('0x217')](_0x4821d7('0x1668'))[_0x4821d7('0x21de')](_0x43cdeb)['ok']('OK')[_0x4821d7('0x1e1f')](_0x4821d7('0x468'));_0x2e8e7a[_0x4821d7('0x1cb7')](_0x322c4c)[_0x4821d7('0x173b')](function(){_0x1545e5(_0x2e68a2);},function(){const _0x5f16e9=_0x4821d7;console[_0x5f16e9('0xe37')](_0x5f16e9('0x468'));});}let _0x360d3d=!![],_0x305c44=0x1;_0x1d93f5['$watch'](_0x2c9f6c('0x157b'),function(_0x52f471,_0x4a42ad){const _0x248546=_0x2c9f6c;_0x360d3d?_0x15f253(function(){_0x360d3d=![];}):(!_0x4a42ad&&(_0x305c44=_0x951bf[_0x248546('0xc49')][_0x248546('0x182e')]),_0x52f471!==_0x4a42ad&&(_0x951bf['query'][_0x248546('0x182e')]=0x1),!_0x52f471&&(_0x951bf[_0x248546('0xc49')][_0x248546('0x182e')]=_0x305c44),_0x951bf[_0x248546('0x112b')]());});function _0x4a5faa(_0x5179e4){const _0xcbf6bd=_0x2c9f6c;_0x951bf[_0xcbf6bd('0x130a')]=_0x5179e4||{'count':0x0,'rows':[]};}function _0x27ad65(){const _0x535ec0=_0x2c9f6c;_0x951bf[_0x535ec0('0xc49')]['offset']=(_0x951bf[_0x535ec0('0xc49')][_0x535ec0('0x182e')]-0x1)*_0x951bf[_0x535ec0('0xc49')][_0x535ec0('0x3e')],_0x4fc6a0[_0x535ec0('0x1b4e')](_0x535ec0('0x79b'))?_0x951bf[_0x535ec0('0x2219')]=_0x405e04[_0x535ec0('0x1e37')][_0x535ec0('0x1d97')](_0x951bf[_0x535ec0('0xc49')],_0x4a5faa)[_0x535ec0('0x1964')]:(_0x951bf[_0x535ec0('0xc49')]['id']=_0x951bf[_0x535ec0('0x257b')]['id'],_0x951bf[_0x535ec0('0xc49')][_0x535ec0('0x17c9')]='SmsAccounts',_0x951bf['promise']=_0x405e04[_0x535ec0('0x257b')]['getResources'](_0x951bf['query'],_0x4a5faa)[_0x535ec0('0x1964')]);}function _0x53e093(_0x569218,_0x579ce2){const _0x439cd5=_0x2c9f6c;_0x2e8e7a[_0x439cd5('0x1cb7')]({'controller':_0x439cd5('0xf0a'),'controllerAs':'vm','templateUrl':_0x1de11c,'parent':angular[_0x439cd5('0xb6d')](_0x114389[_0x439cd5('0x1a5')]),'targetEvent':_0x569218,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x579ce2,'smsAccounts':_0x951bf[_0x439cd5('0x130a')][_0x439cd5('0x6aa')],'license':_0x951bf[_0x439cd5('0x1a29')],'setting':_0x951bf[_0x439cd5('0x251')],'crudPermissions':_0x951bf[_0x439cd5('0x1dc1')]}});}function _0x1545e5(_0x3a0171){const _0x3edb75=_0x2c9f6c;_0x405e04[_0x3edb75('0x1e37')][_0x3edb75('0x15e8')]({'id':_0x3a0171['id']})[_0x3edb75('0x1964')]['then'](function(){const _0x1ccfe4=_0x3edb75;_0x3c8d8a()[_0x1ccfe4('0x1a8b')](_0x951bf['smsAccounts'][_0x1ccfe4('0x6aa')],{'id':_0x3a0171['id']}),_0x951bf[_0x1ccfe4('0x130a')][_0x1ccfe4('0x1a2f')]-=0x1,!_0x951bf['smsAccounts']['rows'][_0x1ccfe4('0x543')]&&_0x951bf['getSmsAccounts'](),_0xe0a958['success']({'title':_0x3c8d8a()[_0x1ccfe4('0x10e')](_0x1ccfe4('0x22ab'))+'\x20deleted!','msg':_0x3a0171[_0x1ccfe4('0x10ad')]?_0x3a0171['name']+_0x1ccfe4('0x25d2'):''});})['catch'](function(_0x1cb1ea){const _0x2535f2=_0x3edb75;if(_0x1cb1ea[_0x2535f2('0x1e07')]&&_0x1cb1ea['data'][_0x2535f2('0x1d4a')]&&_0x1cb1ea[_0x2535f2('0x1e07')][_0x2535f2('0x1d4a')][_0x2535f2('0x543')]){_0x951bf[_0x2535f2('0x1d4a')]=_0x1cb1ea[_0x2535f2('0x1e07')][_0x2535f2('0x1d4a')]||[{'message':_0x1cb1ea[_0x2535f2('0x1b75')](),'type':_0x2535f2('0xf93')}];for(let _0x30bcd3=0x0;_0x30bcd3<_0x1cb1ea[_0x2535f2('0x1e07')][_0x2535f2('0x1d4a')][_0x2535f2('0x543')];_0x30bcd3++){_0xe0a958[_0x2535f2('0x15aa')]({'title':_0x1cb1ea[_0x2535f2('0x1e07')][_0x2535f2('0x1d4a')][_0x30bcd3]['type'],'msg':_0x1cb1ea[_0x2535f2('0x1e07')][_0x2535f2('0x1d4a')][_0x30bcd3][_0x2535f2('0x67f')]});}}else _0xe0a958['error']({'title':_0x1cb1ea[_0x2535f2('0x276f')]?_0x2535f2('0x137')+_0x1cb1ea['status']+_0x2535f2('0x160c')+_0x1cb1ea[_0x2535f2('0x2696')]:'SYSTEM:DELETEsmsAccount','msg':_0x1cb1ea['data']?JSON[_0x2535f2('0x100b')](_0x1cb1ea['data'][_0x2535f2('0x67f')]):_0x1cb1ea[_0x2535f2('0x67f')]||_0x1cb1ea[_0x2535f2('0x1b75')]()});});}function _0x67b361(){const _0x38bd69=_0x2c9f6c,_0x13eb2b=angular[_0x38bd69('0x2e3')](_0x951bf[_0x38bd69('0x1817')]);return _0x951bf['selectedSmsAccounts']=[],_0x13eb2b;}function _0x345623(_0x7b4dc7){const _0x66ffe0=_0x2c9f6c,_0x20c51e=_0x2e8e7a['confirm']()[_0x66ffe0('0x20d6')](_0x66ffe0('0x2236'))[_0x66ffe0('0xf8b')](''+_0x951bf['selectedSmsAccounts'][_0x66ffe0('0x543')]+_0x66ffe0('0xcb4')+_0x66ffe0('0xd23'))[_0x66ffe0('0x217')](_0x66ffe0('0x2312'))[_0x66ffe0('0x21de')](_0x7b4dc7)['ok']('OK')[_0x66ffe0('0x1e1f')](_0x66ffe0('0x468'));_0x2e8e7a[_0x66ffe0('0x1cb7')](_0x20c51e)['then'](function(){const _0x5d8f5e=_0x66ffe0;_0x951bf[_0x5d8f5e('0x1817')][_0x5d8f5e('0xa6a')](function(_0x56f2c6){_0x1545e5(_0x56f2c6);}),_0x951bf[_0x5d8f5e('0x1817')]=[];});}function _0x1dc705(){const _0x4260d4=_0x2c9f6c;_0x951bf[_0x4260d4('0x1817')]=[];}function _0x2117da(){const _0x39ad96=_0x2c9f6c;_0x951bf['selectedSmsAccounts']=_0x951bf[_0x39ad96('0x130a')][_0x39ad96('0x6aa')];}}const _0x52b3b2=_0x24f71f;_0x165709['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1f50'),_0x566993('0xe99'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x165709(_0x168eaa,_0x500d9c,_0xafe722,_0x363235,_0x34b038,_0x15d4f6,_0x483edb,_0x464e55,_0x18723c,_0x48d8d4,_0x4e8451,_0x4e8564,_0x521fdf,_0x5e3055){const _0x200482=_0x566993,_0x5e8ab0=this;_0x5e8ab0['currentUser']=_0x4e8451[_0x200482('0x14d4')](),_0x5e8ab0[_0x200482('0x1d4a')]=[],_0x5e8ab0['setting']=_0x521fdf,_0x5e8ab0['license']=_0x4e8564,_0x5e8ab0[_0x200482('0x1dc1')]=_0x5e3055,_0x5e8ab0['hasModulePermissions']={},_0x5e8ab0[_0x200482('0x644')]=_0x5e8ab0['setting']&&_0x5e8ab0[_0x200482('0x251')][_0x200482('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e8ab0[_0x200482('0x20d6')]='SMS.EDIT_SMSQUEUE',_0x5e8ab0[_0x200482('0xe99')]=angular['copy'](_0x18723c),_0x5e8ab0[_0x200482('0x1f50')]=_0x464e55,_0x5e8ab0[_0x200482('0x1f42')]=![];!_0x5e8ab0[_0x200482('0xe99')]&&(_0x5e8ab0['smsQueue']={'strategy':_0x200482('0x61'),'timeout':0xa},_0x5e8ab0[_0x200482('0x20d6')]=_0x200482('0x23d'),_0x5e8ab0[_0x200482('0x1f42')]=!![]);_0x5e8ab0[_0x200482('0x2b1')]=_0x5210b5,_0x5e8ab0[_0x200482('0x2519')]=_0x347f4d,_0x5e8ab0['deleteSmsQueue']=_0x5e5301,_0x5e8ab0[_0x200482('0x11ae')]=_0x104a89,_0x5e8ab0[_0x200482('0x18e2')]=_0x262f22;function _0x5210b5(){const _0x409f1e=_0x200482;_0x5e8ab0['errors']=[],_0x48d8d4['smsQueue'][_0x409f1e('0x1195')](_0x5e8ab0[_0x409f1e('0xe99')])[_0x409f1e('0x1964')][_0x409f1e('0x173b')](function(_0x3441f8){const _0xb06913=_0x409f1e;_0x5e8ab0[_0xb06913('0x1f50')]['unshift'](_0x3441f8['toJSON']()),_0x483edb[_0xb06913('0xdfe')]({'title':'SmsQueue\x20properly\x20created','msg':_0x5e8ab0['smsQueue']['name']?_0x5e8ab0[_0xb06913('0xe99')][_0xb06913('0x10ad')]+_0xb06913('0x209a'):''}),_0x262f22(_0x3441f8);})[_0x409f1e('0x103c')](function(_0x1650d0){const _0x21025e=_0x409f1e;if(_0x1650d0[_0x21025e('0x1e07')]&&_0x1650d0[_0x21025e('0x1e07')][_0x21025e('0x1d4a')]&&_0x1650d0['data'][_0x21025e('0x1d4a')]['length']){_0x5e8ab0[_0x21025e('0x1d4a')]=_0x1650d0['data'][_0x21025e('0x1d4a')]||[{'message':_0x1650d0[_0x21025e('0x1b75')](),'type':_0x21025e('0x12be')}];for(let _0x1329c5=0x0;_0x1329c5<_0x1650d0[_0x21025e('0x1e07')]['errors'][_0x21025e('0x543')];_0x1329c5+=0x1){_0x483edb[_0x21025e('0x15aa')]({'title':_0x1650d0[_0x21025e('0x1e07')][_0x21025e('0x1d4a')][_0x1329c5][_0x21025e('0x1810')],'msg':_0x1650d0['data']['errors'][_0x1329c5][_0x21025e('0x67f')]});}}else _0x483edb[_0x21025e('0x15aa')]({'title':_0x1650d0[_0x21025e('0x276f')]?_0x21025e('0x137')+_0x1650d0[_0x21025e('0x276f')]+_0x21025e('0x160c')+_0x1650d0[_0x21025e('0x2696')]:_0x21025e('0x12be'),'msg':_0x1650d0[_0x21025e('0x1e07')]?JSON[_0x21025e('0x100b')](_0x1650d0[_0x21025e('0x1e07')]['message']):_0x1650d0['toString']()});});}function _0x347f4d(){const _0x3e234f=_0x200482;_0x5e8ab0[_0x3e234f('0x1d4a')]=[],_0x48d8d4['smsQueue'][_0x3e234f('0x1842')]({'id':_0x5e8ab0[_0x3e234f('0xe99')]['id']},_0x5e8ab0['smsQueue'])[_0x3e234f('0x1964')][_0x3e234f('0x173b')](function(_0x11aed5){const _0x3de499=_0x3e234f,_0x373307=_0x3c8d8a()[_0x3de499('0x18ab')](_0x5e8ab0[_0x3de499('0x1f50')],{'id':_0x11aed5['id']});_0x373307&&_0x3c8d8a()['merge'](_0x373307,_0x3c8d8a()[_0x3de499('0x2114')](_0x11aed5[_0x3de499('0xf1f')](),_0x3c8d8a()[_0x3de499('0x1d3e')](_0x373307))),_0x483edb[_0x3de499('0xdfe')]({'title':_0x3de499('0x200'),'msg':_0x5e8ab0[_0x3de499('0xe99')][_0x3de499('0x10ad')]?_0x5e8ab0[_0x3de499('0xe99')][_0x3de499('0x10ad')]+_0x3de499('0x2788'):''}),_0x262f22(_0x11aed5);})[_0x3e234f('0x103c')](function(_0x5cd528){const _0x4c2f29=_0x3e234f;if(_0x5cd528[_0x4c2f29('0x1e07')]&&_0x5cd528[_0x4c2f29('0x1e07')]['errors']&&_0x5cd528['data']['errors']['length']){_0x5e8ab0[_0x4c2f29('0x1d4a')]=_0x5cd528[_0x4c2f29('0x1e07')][_0x4c2f29('0x1d4a')]||[{'message':_0x5cd528[_0x4c2f29('0x1b75')](),'type':_0x4c2f29('0x1391')}];for(let _0x57660b=0x0;_0x57660b<_0x5cd528[_0x4c2f29('0x1e07')][_0x4c2f29('0x1d4a')][_0x4c2f29('0x543')];_0x57660b++){_0x483edb['error']({'title':_0x5cd528[_0x4c2f29('0x1e07')][_0x4c2f29('0x1d4a')][_0x57660b][_0x4c2f29('0x1810')],'msg':_0x5cd528['data'][_0x4c2f29('0x1d4a')][_0x57660b][_0x4c2f29('0x67f')]});}}else _0x483edb[_0x4c2f29('0x15aa')]({'title':_0x5cd528[_0x4c2f29('0x276f')]?_0x4c2f29('0x137')+_0x5cd528[_0x4c2f29('0x276f')]+_0x4c2f29('0x160c')+_0x5cd528['statusText']:_0x4c2f29('0x1391'),'msg':_0x5cd528[_0x4c2f29('0x1e07')]?JSON[_0x4c2f29('0x100b')](_0x5cd528[_0x4c2f29('0x1e07')]['message']):_0x5cd528['toString']()});});}function _0x5e5301(_0x3cc935){const _0x133df5=_0x200482;_0x5e8ab0[_0x133df5('0x1d4a')]=[];const _0x4ba94e=_0x363235[_0x133df5('0x1d02')]()[_0x133df5('0x20d6')](_0x133df5('0x8ef'))['content'](_0x133df5('0xc0e'))[_0x133df5('0x217')](_0x133df5('0x26ff'))['ok'](_0x133df5('0x2373'))['cancel'](_0x133df5('0x1d4e'))[_0x133df5('0x21de')](_0x3cc935);_0x363235[_0x133df5('0x1cb7')](_0x4ba94e)[_0x133df5('0x173b')](function(){const _0x1801dc=_0x133df5;_0x48d8d4[_0x1801dc('0xe99')]['delete']({'id':_0x5e8ab0[_0x1801dc('0xe99')]['id']})[_0x1801dc('0x1964')]['then'](function(){const _0x304f88=_0x1801dc;_0x3c8d8a()['remove'](_0x5e8ab0[_0x304f88('0x1f50')],{'id':_0x5e8ab0[_0x304f88('0xe99')]['id']}),_0x483edb[_0x304f88('0xdfe')]({'title':_0x304f88('0x42b'),'msg':(_0x5e8ab0[_0x304f88('0xe99')][_0x304f88('0x10ad')]||_0x304f88('0xe99'))+_0x304f88('0x25d2')}),_0x262f22(_0x5e8ab0[_0x304f88('0xe99')]);})[_0x1801dc('0x103c')](function(_0x5a8382){const _0x43327b=_0x1801dc;if(_0x5a8382['data']&&_0x5a8382[_0x43327b('0x1e07')][_0x43327b('0x1d4a')]&&_0x5a8382[_0x43327b('0x1e07')][_0x43327b('0x1d4a')][_0x43327b('0x543')]){_0x5e8ab0[_0x43327b('0x1d4a')]=_0x5a8382['data'][_0x43327b('0x1d4a')]||[{'message':_0x5a8382[_0x43327b('0x1b75')](),'type':'api.smsQueue.delete'}];for(let _0x2bfb42=0x0;_0x2bfb42<_0x5a8382[_0x43327b('0x1e07')]['errors'][_0x43327b('0x543')];_0x2bfb42++){_0x483edb[_0x43327b('0x15aa')]({'title':_0x5a8382[_0x43327b('0x1e07')][_0x43327b('0x1d4a')][_0x2bfb42]['type'],'msg':_0x5a8382['data'][_0x43327b('0x1d4a')][_0x2bfb42]['message']});}}else _0x483edb['error']({'title':_0x5a8382[_0x43327b('0x276f')]?'API:'+_0x5a8382[_0x43327b('0x276f')]+_0x43327b('0x160c')+_0x5a8382[_0x43327b('0x2696')]:_0x43327b('0xece'),'msg':_0x5a8382['data']?JSON['stringify'](_0x5a8382['data'][_0x43327b('0x67f')]):_0x5a8382[_0x43327b('0x67f')]||_0x5a8382[_0x43327b('0x1b75')]()});});},function(){});}function _0x104a89(_0x216530){return _0x216530===null?undefined:new Date(_0x216530);}function _0x262f22(_0x2b1022){const _0x423860=_0x200482;_0x363235[_0x423860('0x1cf4')](_0x2b1022);}}const _0x4c0582=_0x165709;_0x2c1f20['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'api',_0x566993('0xe99'),_0x566993('0x1f50'),'realtime',_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x2c1f20(_0xea9544,_0x2fb53f,_0x1fe8e7,_0x1c3b98,_0x17fb2d,_0x3dcc8f,_0x29a0b8,_0x3bb579,_0x5783ee,_0x561502){const _0x2cf138=_0x566993,_0x2574f4=this;_0x2574f4[_0x2cf138('0x155f')]=_0x5783ee[_0x2cf138('0x14d4')](),_0x2574f4[_0x2cf138('0xe99')]=_0x17fb2d,_0x2574f4[_0x2cf138('0x1dc1')]=_0x561502,_0x2574f4['realtime']=_0x29a0b8,_0x2574f4[_0x2cf138('0x1b1f')]=[],_0x2574f4['allowedItems']=[],_0x2574f4[_0x2cf138('0x5f8')]=[],_0x2574f4[_0x2cf138('0x1493')]=[],_0x2574f4['startingSelectedItems']=[],_0x2574f4['pendingChanges']=![],_0x2574f4['onInit']=_0x1928bf,_0x2574f4[_0x2cf138('0x21dc')]=_0x59918e,_0x2574f4['closeDialog']=_0x97573f,_0x2574f4['dualMultiselectOptions']={'readOnly':!_0x2574f4[_0x2cf138('0x1dc1')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':[_0x2cf138('0x10ad'),'internal'],'line3':'','labelAll':_0x3bb579['instant'](_0x2cf138('0xc32')),'labelSelected':_0x3bb579[_0x2cf138('0x1467')]('SMS.SELECTED_AGENTS'),'transferCallback':function(){const _0x46553c=_0x2cf138,_0x316869=_0x3c8d8a()['xorBy'](_0x2574f4['startingSelectedItems'],_0x2574f4[_0x46553c('0x5f8')],'id');_0x2574f4[_0x46553c('0x277e')]=_0x3c8d8a()[_0x46553c('0x1a56')](_0x316869)?![]:!![];}};function _0x1928bf(){const _0x4991fe=_0x2cf138;return _0x5783ee[_0x4991fe('0x1b4e')](_0x4991fe('0x79b'))?_0x3cde7d()['catch'](function(_0x1d5f0d){const _0x28e002=_0x4991fe;_0x1fe8e7[_0x28e002('0x15aa')]({'title':_0x1d5f0d[_0x28e002('0x276f')]?_0x28e002('0x137')+_0x1d5f0d[_0x28e002('0x276f')]+_0x28e002('0x160c')+_0x1d5f0d['statusText']:_0x28e002('0x152b'),'msg':_0x1d5f0d[_0x28e002('0x276f')]?JSON['stringify'](_0x1d5f0d[_0x28e002('0x1e07')]):_0x1d5f0d['toString']()});}):_0xf3784d()[_0x4991fe('0x173b')](function(_0x80f9be){const _0x508eba=_0x4991fe;return _0x2574f4[_0x508eba('0x17c9')]=_0x80f9be,_0x3cde7d();})[_0x4991fe('0x103c')](function(_0x255f10){const _0x1c6ef1=_0x4991fe;_0x1fe8e7['error']({'title':_0x255f10['status']?_0x1c6ef1('0x137')+_0x255f10['status']+_0x1c6ef1('0x160c')+_0x255f10['statusText']:_0x1c6ef1('0x152b'),'msg':_0x255f10['status']?JSON[_0x1c6ef1('0x100b')](_0x255f10[_0x1c6ef1('0x1e07')]):_0x255f10[_0x1c6ef1('0x1b75')]()});});}function _0xf3784d(){return _0x2fb53f(function(_0x53efec,_0x4e135c){const _0x470b34=a0_0xde5e;_0x1c3b98['userProfileSection'][_0x470b34('0x1d97')]({'userProfileId':_0x2574f4[_0x470b34('0x155f')][_0x470b34('0x1946')],'name':_0x470b34('0x1272')})[_0x470b34('0x1964')][_0x470b34('0x173b')](function(_0x51fea1){const _0x48b8ef=_0x470b34,_0x1680e1=_0x51fea1&&_0x51fea1[_0x48b8ef('0x6aa')]?_0x51fea1[_0x48b8ef('0x6aa')][0x0]:null;_0x53efec(_0x1680e1);})[_0x470b34('0x103c')](function(_0x6e321a){_0x4e135c(_0x6e321a);});});}function _0x3cde7d(){return _0x2fb53f(function(_0x301a81,_0x47c3b4){const _0x5b27b3=a0_0xde5e;return _0x6c467f()[_0x5b27b3('0x173b')](function(_0x1e6ba2){const _0x2bda6d=_0x5b27b3;return _0x2574f4[_0x2bda6d('0x1b1f')]=_0x1e6ba2[_0x2bda6d('0x6aa')]?_0x1e6ba2[_0x2bda6d('0x6aa')]:[],_0x5783ee[_0x2bda6d('0x1b4e')](_0x2bda6d('0x79b'))?_0x1e6ba2:_0x2574f4['section']?_0x2574f4['section']['autoAssociation']?_0x1e6ba2:_0x1423cf():null;})['then'](function(_0x3b66ff){const _0x36595e=_0x5b27b3,_0x1d158a=_0x3b66ff&&_0x3b66ff[_0x36595e('0x6aa')]?_0x3b66ff['rows']:[];return _0x2574f4[_0x36595e('0x203e')]=_0x3c8d8a()[_0x36595e('0x8a2')](_0x1d158a,function(_0x2c1c0b){const _0x4c8706=_0x36595e;return _0x3c8d8a()['find'](_0x2574f4[_0x4c8706('0x1b1f')],{'id':_0x5783ee[_0x4c8706('0x1b4e')](_0x4c8706('0x79b'))||_0x2574f4[_0x4c8706('0x17c9')][_0x4c8706('0x273e')]?_0x2c1c0b['id']:_0x2c1c0b[_0x4c8706('0x1ce0')]});}),_0x2574f4[_0x36595e('0x1493')]=angular[_0x36595e('0x2e3')](_0x2574f4[_0x36595e('0x203e')]),_0x2574f4['items'][_0x36595e('0xa6a')](function(_0x170fc2){const _0xe833c8=_0x36595e,_0x3c3d39=_0x3c8d8a()['find'](_0x2574f4[_0xe833c8('0x203e')],{'id':_0x170fc2['id']});_0x5783ee[_0xe833c8('0x1b4e')](_0xe833c8('0x79b'))?_0x170fc2[_0xe833c8('0xf02')]=!![]:_0x170fc2[_0xe833c8('0xf02')]=typeof _0x3c3d39!=='undefined'?!![]:![];}),_0x34ff8e();})[_0x5b27b3('0x173b')](function(_0x142d71){const _0x471878=_0x5b27b3,_0x7a3953=_0x142d71&&_0x142d71[_0x471878('0x6aa')]?_0x142d71[_0x471878('0x6aa')]:[];_0x2574f4['selectedItems']=_0x3c8d8a()['map'](_0x7a3953,function(_0x4f0568){const _0x3ee9e3=_0x471878,_0x5a793f=_0x3c8d8a()['find'](_0x2574f4[_0x3ee9e3('0x1b1f')],{'id':_0x4f0568['id']});return _0x5a793f[_0x3ee9e3('0x1692')]=_0x4f0568[_0x3ee9e3('0xa86')]?_0x3ee9e3('0x1929')+_0x4f0568['UserSmsQueue'][_0x3ee9e3('0x1692')]:'',_0x5a793f['internal']=typeof _0x4f0568[_0x3ee9e3('0x138c')]!==_0x3ee9e3('0x6e5')?'<'+_0x4f0568[_0x3ee9e3('0x138c')]+'>':'',_0x5a793f;}),_0x2574f4[_0x471878('0x15c9')]=angular['copy'](_0x2574f4['selectedItems']),_0x2574f4['dualMultiselectOptions'][_0x471878('0x5f8')]=_0x2574f4[_0x471878('0x5f8')],_0x2574f4[_0x471878('0x52e')][_0x471878('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x2574f4[_0x471878('0x203e')],_0x2574f4[_0x471878('0x52e')][_0x471878('0x5f8')],'id'),_0x301a81();})[_0x5b27b3('0x103c')](function(_0x450bee){_0x47c3b4(_0x450bee);});});}function _0x1423cf(){return _0x2fb53f(function(_0x456a65,_0x4d356b){const _0x54062d=a0_0xde5e;return _0x1c3b98[_0x54062d('0xda9')]['get']({'sectionId':_0x2574f4[_0x54062d('0x17c9')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x1365ae){_0x456a65(_0x1365ae);})[_0x54062d('0x103c')](function(_0x395dcd){_0x4d356b(_0x395dcd);});});}function _0x34ff8e(){return _0x2fb53f(function(_0x1d4a0a,_0x16d2cf){const _0x1c2a85=a0_0xde5e;return _0x1c3b98[_0x1c2a85('0xe99')]['getAgents']({'id':_0x2574f4[_0x1c2a85('0xe99')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':'agent'})['$promise'][_0x1c2a85('0x173b')](function(_0x5f3dd7){_0x1d4a0a(_0x5f3dd7);})[_0x1c2a85('0x103c')](function(_0x2b2dde){_0x16d2cf(_0x2b2dde);});});}function _0x6c467f(){return _0x2fb53f(function(_0x4c3664,_0x192314){const _0x29b050=a0_0xde5e;return _0x1c3b98[_0x29b050('0x166f')][_0x29b050('0x1d97')]({'fields':_0x29b050('0x1d65'),'nolimit':!![],'role':_0x29b050('0x7b0')})[_0x29b050('0x1964')][_0x29b050('0x173b')](function(_0x490c78){_0x4c3664(_0x490c78);})[_0x29b050('0x103c')](function(_0xc81cbd){_0x192314(_0xc81cbd);});});}function _0x42be62(_0x54fea2){return _0x2fb53f(function(_0x589159,_0x3e76b1){const _0x4ae27b=a0_0xde5e;_0x3c8d8a()[_0x4ae27b('0x1a56')](_0x54fea2)?_0x589159():_0x1c3b98[_0x4ae27b('0xe99')][_0x4ae27b('0x1ff1')]({'id':_0x2574f4[_0x4ae27b('0xe99')]['id'],'ids':_0x3c8d8a()[_0x4ae27b('0x8a2')](_0x54fea2,'id')})[_0x4ae27b('0x1964')][_0x4ae27b('0x173b')](function(){_0x589159();})[_0x4ae27b('0x103c')](function(_0x273e0a){_0x3e76b1(_0x273e0a);});});}function _0xc33296(_0x1ab5a7){return _0x2fb53f(function(_0x5e94e8,_0x4e785c){const _0x338a1c=a0_0xde5e;_0x3c8d8a()[_0x338a1c('0x1a56')](_0x1ab5a7)?_0x5e94e8():_0x1c3b98[_0x338a1c('0xe99')][_0x338a1c('0x2017')]({'id':_0x2574f4[_0x338a1c('0xe99')]['id'],'ids':_0x3c8d8a()['map'](_0x1ab5a7,'id')})[_0x338a1c('0x1964')][_0x338a1c('0x173b')](function(){_0x5e94e8();})[_0x338a1c('0x103c')](function(_0x5de207){_0x4e785c(_0x5de207);});});}function _0x59918e(){const _0x583703=_0x2cf138,_0x19eb5c=_0x3c8d8a()[_0x583703('0x1bd3')](_0x2574f4['startingSelectedItems'],_0x2574f4[_0x583703('0x5f8')],'id'),_0x4726c4=_0x3c8d8a()[_0x583703('0x1bd3')](_0x2574f4[_0x583703('0x5f8')],_0x2574f4['startingSelectedItems'],'id');return _0xc33296(_0x19eb5c)[_0x583703('0x173b')](function(){return _0x42be62(_0x4726c4);})[_0x583703('0x173b')](function(){const _0x4d3e79=_0x583703;_0x2574f4['pendingChanges']=![],_0x2574f4[_0x4d3e79('0x1493')]=angular[_0x4d3e79('0x2e3')](_0x2574f4['allowedItems']),_0x2574f4[_0x4d3e79('0x15c9')]=angular[_0x4d3e79('0x2e3')](_0x2574f4['selectedItems']),_0x1fe8e7['success']({'title':_0x4d3e79('0x23db'),'msg':_0x4d3e79('0x2027')});})[_0x583703('0x103c')](function(_0x4cea83){const _0x27e50b=_0x583703;_0x1fe8e7[_0x27e50b('0x15aa')]({'title':_0x4cea83[_0x27e50b('0x276f')]?_0x27e50b('0x137')+_0x4cea83[_0x27e50b('0x276f')]+_0x27e50b('0x160c')+_0x4cea83[_0x27e50b('0x2696')]:_0x27e50b('0x1f48'),'msg':_0x4cea83[_0x27e50b('0x276f')]?JSON[_0x27e50b('0x100b')](_0x4cea83['data']):_0x4cea83[_0x27e50b('0x1b75')]()});});}function _0x97573f(){const _0x4d1243=_0x2cf138;_0xea9544[_0x4d1243('0x1cf4')]();}}const _0x33d7d4=_0x2c1f20;_0x3e909e[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),'api',_0x566993('0xe99'),_0x566993('0x638'),_0x566993('0x1600'),'crudPermissions'];function _0x3e909e(_0x1fc977,_0x5b9e78,_0x1c5536,_0x276747,_0x5179a9,_0x4f710d,_0xbb3b4f,_0x2a52c4){const _0x517e4c=_0x566993,_0x49a975=this;_0x49a975[_0x517e4c('0x155f')]=_0xbb3b4f[_0x517e4c('0x14d4')](),_0x49a975[_0x517e4c('0xe99')]=_0x5179a9,_0x49a975[_0x517e4c('0x1dc1')]=_0x2a52c4,_0x49a975[_0x517e4c('0x1b1f')]=[],_0x49a975['allowedItems']=[],_0x49a975['selectedItems']=[],_0x49a975['startingAllowedItems']=[],_0x49a975[_0x517e4c('0x15c9')]=[],_0x49a975[_0x517e4c('0x277e')]=![],_0x49a975['dualMultiselectOptions']={'readOnly':!_0x49a975[_0x517e4c('0x1dc1')][_0x517e4c('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x517e4c('0x10ad'),'line1':'name','line2':'','line3':'','labelAll':_0x4f710d[_0x517e4c('0x1467')](_0x517e4c('0xa1d')),'labelSelected':_0x4f710d[_0x517e4c('0x1467')](_0x517e4c('0x1f56')),'transferCallback':function(){const _0x4a23da=_0x517e4c,_0x368a9d=_0x3c8d8a()[_0x4a23da('0x226b')](_0x49a975['startingSelectedItems'],_0x49a975[_0x4a23da('0x5f8')],'id');_0x49a975['pendingChanges']=_0x3c8d8a()[_0x4a23da('0x1a56')](_0x368a9d)?![]:!![];}},_0x49a975[_0x517e4c('0x2535')]=_0x1db807,_0x49a975[_0x517e4c('0x2421')]=_0x47025a,_0x49a975['closeDialog']=_0x43405f;function _0x1db807(){const _0xc2bd36=_0x517e4c;return _0xbb3b4f[_0xc2bd36('0x1b4e')](_0xc2bd36('0x79b'))?_0xc8554c()[_0xc2bd36('0x103c')](function(_0x5f5438){const _0x1e46ab=_0xc2bd36;_0x1c5536[_0x1e46ab('0x15aa')]({'title':_0x5f5438[_0x1e46ab('0x276f')]?_0x1e46ab('0x137')+_0x5f5438[_0x1e46ab('0x276f')]+_0x1e46ab('0x160c')+_0x5f5438[_0x1e46ab('0x2696')]:_0x1e46ab('0x15d3'),'msg':_0x5f5438[_0x1e46ab('0x276f')]?JSON['stringify'](_0x5f5438[_0x1e46ab('0x1e07')]):_0x5f5438['toString']()});}):_0x1e507c()[_0xc2bd36('0x173b')](function(_0x1a92e1){return _0x49a975['section']=_0x1a92e1,_0xc8554c();})[_0xc2bd36('0x103c')](function(_0x23d922){const _0x327676=_0xc2bd36;_0x1c5536[_0x327676('0x15aa')]({'title':_0x23d922[_0x327676('0x276f')]?_0x327676('0x137')+_0x23d922['status']+'\x20-\x20'+_0x23d922[_0x327676('0x2696')]:_0x327676('0x15d3'),'msg':_0x23d922[_0x327676('0x276f')]?JSON[_0x327676('0x100b')](_0x23d922[_0x327676('0x1e07')]):_0x23d922[_0x327676('0x1b75')]()});});}function _0x1e507c(){return _0x5b9e78(function(_0x578dc1,_0x5e9abe){const _0x5458ce=a0_0xde5e;_0x276747[_0x5458ce('0x170e')][_0x5458ce('0x1d97')]({'userProfileId':_0x49a975[_0x5458ce('0x155f')]['userProfileId'],'name':_0x5458ce('0x1e5c')})['$promise'][_0x5458ce('0x173b')](function(_0x2bb00f){const _0x330d9c=_0x5458ce,_0x5e5146=_0x2bb00f&&_0x2bb00f[_0x330d9c('0x6aa')]?_0x2bb00f[_0x330d9c('0x6aa')][0x0]:null;_0x578dc1(_0x5e5146);})[_0x5458ce('0x103c')](function(_0xe4e61c){_0x5e9abe(_0xe4e61c);});});}function _0xc8554c(){return _0x5b9e78(function(_0x5d6f27,_0x5dd558){const _0x1b446=a0_0xde5e;return _0x3952a5()[_0x1b446('0x173b')](function(_0x21da7c){const _0x56033f=_0x1b446;return _0x49a975[_0x56033f('0x1b1f')]=_0x21da7c[_0x56033f('0x6aa')]?_0x21da7c[_0x56033f('0x6aa')]:[],_0xbb3b4f[_0x56033f('0x1b4e')](_0x56033f('0x79b'))?_0x21da7c:_0x49a975[_0x56033f('0x17c9')]?_0x49a975[_0x56033f('0x17c9')][_0x56033f('0x273e')]?_0x21da7c:_0x2eba50():null;})[_0x1b446('0x173b')](function(_0x540a10){const _0x1d5f84=_0x1b446,_0x515f56=_0x540a10&&_0x540a10[_0x1d5f84('0x6aa')]?_0x540a10['rows']:[];return _0x49a975['allowedItems']=_0x3c8d8a()['map'](_0x515f56,function(_0x138646){const _0x57d285=_0x1d5f84;return _0x3c8d8a()[_0x57d285('0x18ab')](_0x49a975[_0x57d285('0x1b1f')],{'id':_0xbb3b4f[_0x57d285('0x1b4e')]('admin')||_0x49a975['section'][_0x57d285('0x273e')]?_0x138646['id']:_0x138646[_0x57d285('0x1ce0')]});}),_0x49a975[_0x1d5f84('0x1b1f')][_0x1d5f84('0xa6a')](function(_0x708a35){const _0x11329e=_0x1d5f84,_0x575313=_0x3c8d8a()[_0x11329e('0x18ab')](_0x49a975[_0x11329e('0x203e')],{'id':_0x708a35['id']});_0xbb3b4f[_0x11329e('0x1b4e')]('admin')?_0x708a35[_0x11329e('0xf02')]=!![]:_0x708a35[_0x11329e('0xf02')]=typeof _0x575313!==_0x11329e('0x6e5')?!![]:![];}),_0x39d87a();})[_0x1b446('0x173b')](function(_0x3e0d2a){const _0x5b3976=_0x1b446,_0x43c763=_0x3e0d2a&&_0x3e0d2a[_0x5b3976('0x6aa')]?_0x3e0d2a[_0x5b3976('0x6aa')]:[];_0x49a975[_0x5b3976('0x5f8')]=_0x3c8d8a()[_0x5b3976('0x8a2')](_0x43c763,function(_0x2529ce){const _0x4a34f7=_0x5b3976;return _0x3c8d8a()['find'](_0x49a975[_0x4a34f7('0x1b1f')],{'id':_0x2529ce['id']});}),_0x49a975['startingSelectedItems']=angular[_0x5b3976('0x2e3')](_0x49a975[_0x5b3976('0x5f8')]),_0x49a975['dualMultiselectOptions'][_0x5b3976('0x5f8')]=_0x49a975[_0x5b3976('0x5f8')],_0x49a975[_0x5b3976('0x52e')][_0x5b3976('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x49a975['allowedItems'],_0x49a975[_0x5b3976('0x52e')][_0x5b3976('0x5f8')],'id'),_0x5d6f27();})['catch'](function(_0x41dfef){_0x5dd558(_0x41dfef);});});}function _0x2eba50(){return _0x5b9e78(function(_0x3938bb,_0x48249b){const _0x34e980=a0_0xde5e;return _0x276747['userProfileResource'][_0x34e980('0x1d97')]({'sectionId':_0x49a975[_0x34e980('0x17c9')]['id'],'nolimit':!![]})['$promise'][_0x34e980('0x173b')](function(_0x29e11a){_0x3938bb(_0x29e11a);})[_0x34e980('0x103c')](function(_0x40472e){_0x48249b(_0x40472e);});});}function _0x39d87a(){return _0x5b9e78(function(_0xbc9054,_0x57b1ae){const _0x47056b=a0_0xde5e;return _0x276747[_0x47056b('0xe99')]['getTeams']({'id':_0x49a975[_0x47056b('0xe99')]['id'],'fields':'id,name','nolimit':!![]})[_0x47056b('0x1964')][_0x47056b('0x173b')](function(_0x25dc88){_0xbc9054(_0x25dc88);})[_0x47056b('0x103c')](function(_0x43bea3){_0x57b1ae(_0x43bea3);});});}function _0x3952a5(){return _0x5b9e78(function(_0x27a651,_0xbcbd51){const _0x3fba99=a0_0xde5e;return _0x276747['team'][_0x3fba99('0x1d97')]({'fields':_0x3fba99('0xd52'),'nolimit':!![]})[_0x3fba99('0x1964')][_0x3fba99('0x173b')](function(_0x1b9aff){_0x27a651(_0x1b9aff);})['catch'](function(_0x50d2e6){_0xbcbd51(_0x50d2e6);});});}function _0x4cd833(_0x19a4f5){return _0x5b9e78(function(_0x3723fb,_0x3027b7){const _0x1d4465=a0_0xde5e;_0x3c8d8a()[_0x1d4465('0x1a56')](_0x19a4f5)?_0x3723fb():_0x276747['smsQueue']['addTeams']({'id':_0x49a975[_0x1d4465('0xe99')]['id'],'ids':_0x3c8d8a()[_0x1d4465('0x8a2')](_0x19a4f5,'id')})[_0x1d4465('0x1964')]['then'](function(){_0x3723fb();})['catch'](function(_0xa42e50){_0x3027b7(_0xa42e50);});});}function _0x2de792(_0x724937){return _0x5b9e78(function(_0x105f3e,_0x16488e){const _0x2cb16d=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x724937)?_0x105f3e():_0x276747[_0x2cb16d('0xe99')]['removeTeams']({'id':_0x49a975[_0x2cb16d('0xe99')]['id'],'ids':_0x3c8d8a()[_0x2cb16d('0x8a2')](_0x724937,'id')})[_0x2cb16d('0x1964')][_0x2cb16d('0x173b')](function(){_0x105f3e();})[_0x2cb16d('0x103c')](function(_0x1d9cdf){_0x16488e(_0x1d9cdf);});});}function _0x47025a(){const _0x57bcef=_0x517e4c,_0x337861=_0x3c8d8a()[_0x57bcef('0x1bd3')](_0x49a975[_0x57bcef('0x15c9')],_0x49a975[_0x57bcef('0x5f8')],'id'),_0x483b05=_0x3c8d8a()[_0x57bcef('0x1bd3')](_0x49a975[_0x57bcef('0x5f8')],_0x49a975['startingSelectedItems'],'id');return _0x2de792(_0x337861)['then'](function(){return _0x4cd833(_0x483b05);})['then'](function(){const _0x258b85=_0x57bcef;_0x49a975['pendingChanges']=![],_0x49a975[_0x258b85('0x1493')]=angular['copy'](_0x49a975[_0x258b85('0x203e')]),_0x49a975[_0x258b85('0x15c9')]=angular[_0x258b85('0x2e3')](_0x49a975['selectedItems']),_0x1c5536[_0x258b85('0xdfe')]({'title':_0x258b85('0x23db'),'msg':_0x258b85('0x1b39')});})[_0x57bcef('0x103c')](function(_0x237216){const _0x4482b5=_0x57bcef;_0x1c5536[_0x4482b5('0x15aa')]({'title':_0x237216[_0x4482b5('0x276f')]?'API:'+_0x237216[_0x4482b5('0x276f')]+_0x4482b5('0x160c')+_0x237216[_0x4482b5('0x2696')]:_0x4482b5('0x1f48'),'msg':_0x237216['status']?JSON[_0x4482b5('0x100b')](_0x237216[_0x4482b5('0x1e07')]):_0x237216[_0x4482b5('0x1b75')]()});});}function _0x43405f(){_0x1fc977['hide']();}}const _0x454d58=_0x3e909e,_0x1da8bc=_0x21a6a1['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd.html';_0xe224a5[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),'Auth',_0x566993('0xe99'),'userProfileSection'];function _0xe224a5(_0x831ee6,_0x3edbef,_0x3858c0,_0x3b4ba8,_0x5939f2,_0x55e6cd,_0x386fd6,_0x5cf0f1,_0x252d4d,_0x956d9e,_0x499b49,_0x1afff1){const _0x31c3bc=_0x566993,_0x3c25a0=this;_0x3c25a0[_0x31c3bc('0x155f')]=_0x956d9e['getCurrentUser'](),_0x3c25a0['license']=_0x55e6cd,_0x3c25a0[_0x31c3bc('0x251')]=_0x386fd6,_0x3c25a0[_0x31c3bc('0x644')]=_0x3c25a0['setting'][_0x31c3bc('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3c25a0[_0x31c3bc('0x614')]=_0x3edbef['protocol']()+_0x31c3bc('0x122b')+_0x3edbef[_0x31c3bc('0x4d1')](),_0x3c25a0[_0x31c3bc('0xe99')]=_0x499b49||_0x831ee6[_0x31c3bc('0x197a')][_0x31c3bc('0xe99')]||{},_0x3c25a0[_0x31c3bc('0x170e')]=_0x1afff1&&_0x1afff1['count']==0x1?_0x1afff1['rows'][0x0]:null,_0x3c25a0[_0x31c3bc('0x1dc1')]=_0x956d9e[_0x31c3bc('0xde6')](_0x3c25a0[_0x31c3bc('0x170e')]?_0x3c25a0[_0x31c3bc('0x170e')][_0x31c3bc('0x1dc1')]:null),_0x3c25a0['hasModulePermissions']={},_0x3c25a0['selectedTab']=_0x831ee6[_0x31c3bc('0x197a')]['tab']||0x0,_0x3c25a0[_0x31c3bc('0x17d4')]=_0x56f09b,_0x3c25a0['agentadddialog']=_0x3c5e54,_0x3c25a0[_0x31c3bc('0x5a4')]=_0x252d4d['info'],_0x3c25a0['gotoSmsQueues']=_0xaa3fec,_0x3c25a0[_0x31c3bc('0x2519')]=_0x3c71e5;function _0x56f09b(_0x147cbe,_0x2db387){const _0x55a595=_0x31c3bc;_0x3858c0[_0x55a595('0x1cb7')]({'controller':_0x55a595('0x2285'),'controllerAs':'vm','templateUrl':_0x1da8bc,'parent':angular['element'](_0x3b4ba8[_0x55a595('0x1a5')]),'targetEvent':_0x2db387,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x147cbe,'smsQueues':_0x3c25a0[_0x55a595('0x1f50')]?_0x3c25a0[_0x55a595('0x1f50')][_0x55a595('0x6aa')]:[],'crudPermissions':_0x3c25a0[_0x55a595('0x1dc1')]}});}function _0x3c5e54(_0x59069c,_0x56040f){const _0x4c77de=_0x31c3bc;_0x3858c0['show']({'controller':_0x4c77de('0xf49'),'controllerAs':'vm','templateUrl':_0x44f26f,'parent':angular['element'](_0x3b4ba8['body']),'targetEvent':_0x56040f,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x59069c,'smsQueues':_0x3c25a0[_0x4c77de('0x1f50')]?_0x3c25a0['smsQueues']['rows']:[],'crudPermissions':_0x3c25a0[_0x4c77de('0x1dc1')],'realtime':![]}});}function _0xaa3fec(){const _0xd77734=_0x31c3bc;_0x831ee6['go'](_0xd77734('0x759'),{},{'reload':_0xd77734('0x759')});}function _0x3c71e5(){const _0x176453=_0x31c3bc;_0x5cf0f1[_0x176453('0xe99')][_0x176453('0x1842')]({'id':_0x3c25a0[_0x176453('0xe99')]['id']},_0x3c25a0[_0x176453('0xe99')])['$promise'][_0x176453('0x173b')](function(){const _0x9ec463=_0x176453;_0x252d4d[_0x9ec463('0xdfe')]({'title':_0x9ec463('0x1abf'),'msg':_0x3c25a0[_0x9ec463('0xe99')]['name']?_0x3c25a0[_0x9ec463('0xe99')][_0x9ec463('0x10ad')]+'\x20has\x20been\x20updated!':''});})[_0x176453('0x103c')](function(_0x22218f){const _0x1e2161=_0x176453;_0x252d4d[_0x1e2161('0x15aa')]({'title':_0x22218f['status']?'API:'+_0x22218f[_0x1e2161('0x276f')]+_0x1e2161('0x160c')+_0x22218f['statusText']:'SYSTEM:GETsmsQueue','msg':_0x22218f[_0x1e2161('0x1e07')]?JSON[_0x1e2161('0x100b')](_0x22218f[_0x1e2161('0x1e07')]):_0x22218f[_0x1e2161('0x1b75')]()});});}}const _0x1835ea=_0xe224a5;_0x2e0f23[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x1f50'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),'license',_0x566993('0x251')];function _0x2e0f23(_0xc1e6d1,_0x13f544,_0x2dd2f0,_0xc06b15,_0x29ec84,_0x4de8ae,_0x1ec5ba,_0x4491f2,_0x16ad54,_0x9a5f25,_0x593d4e,_0x3b5204,_0x824ed0,_0x4325f0,_0x140044,_0x55e658,_0x2565c6){const _0x59ddec=_0x566993,_0x39cb8f=this;_0x39cb8f[_0x59ddec('0x1a29')]=_0x55e658,_0x39cb8f[_0x59ddec('0x251')]=_0x2565c6,_0x39cb8f[_0x59ddec('0x155f')]=_0x140044[_0x59ddec('0x14d4')](),_0x39cb8f[_0x59ddec('0x1f50')]=_0x16ad54||{'count':0x0,'rows':[]},_0x39cb8f[_0x59ddec('0x257b')]=_0x9a5f25,_0x39cb8f[_0x59ddec('0x170e')]=_0x593d4e&&_0x593d4e[_0x59ddec('0x1a2f')]==0x1?_0x593d4e[_0x59ddec('0x6aa')][0x0]:null,_0x39cb8f[_0x59ddec('0x1dc1')]=_0x140044[_0x59ddec('0xde6')](_0x39cb8f['userProfileSection']?_0x39cb8f[_0x59ddec('0x170e')][_0x59ddec('0x1dc1')]:null),_0x39cb8f[_0x59ddec('0xdf9')]='smsQueues',_0x39cb8f[_0x59ddec('0x14d6')]='',_0x39cb8f[_0x59ddec('0x2303')]=null,_0x39cb8f[_0x59ddec('0x5d0')]=[],_0x39cb8f[_0x59ddec('0xc49')]={'fields':_0x59ddec('0xab9'),'sort':'-updatedAt','channel':_0x59ddec('0x1a8f'),'limit':0xa,'page':0x1},_0x39cb8f['arraystrategy']=_0x3c8d8a()[_0x59ddec('0x128')]([{'option':'Beepall','value':_0x59ddec('0x6ac')},{'option':_0x59ddec('0xd86'),'value':_0x59ddec('0x1b87')}],function(_0x1b89f4){return _0x3c8d8a()['replace'](_0x1b89f4['value'],new RegExp('\x27','g'),'');}),_0x39cb8f[_0x59ddec('0x222e')]=_0xd922cc,_0x39cb8f[_0x59ddec('0x17d4')]=_0x2c1c24,_0x39cb8f[_0x59ddec('0x2118')]=_0x2714c2,_0x39cb8f['deleteconfirm']=_0x4c357,_0x39cb8f[_0x59ddec('0x1c9c')]=_0x1d807,_0x39cb8f[_0x59ddec('0xdfe')]=_0x5a8831,_0x39cb8f[_0x59ddec('0x11ba')]=_0x1a7764,_0x39cb8f['createOrEditSmsQueue']=_0x202c01,_0x39cb8f[_0x59ddec('0xecb')]=_0x408dd7,_0x39cb8f[_0x59ddec('0x1d0e')]=_0x21e38c,_0x39cb8f[_0x59ddec('0x1669')]=_0x37503b,_0x39cb8f[_0x59ddec('0x33e')]=_0x2a48d6,_0x39cb8f['selectAllSmsQueues']=_0x5dc46a;function _0xd922cc(_0x171651){const _0x5c41ab=_0x59ddec;_0x2dd2f0['go'](_0x5c41ab('0x2364'),{'id':_0x171651['id'],'smsQueue':_0x171651,'crudPermissions':_0x39cb8f[_0x5c41ab('0x1dc1')]});}function _0x2c1c24(_0x11c25b,_0x277232){const _0x2e6be3=_0x59ddec;_0x29ec84[_0x2e6be3('0x1cb7')]({'controller':_0x2e6be3('0x2285'),'controllerAs':'vm','templateUrl':_0x1da8bc,'parent':angular[_0x2e6be3('0xb6d')](_0x4de8ae[_0x2e6be3('0x1a5')]),'targetEvent':_0x277232,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x11c25b,'smsQueues':_0x39cb8f[_0x2e6be3('0x1f50')]?_0x39cb8f['smsQueues']['rows']:[],'crudPermissions':_0x39cb8f[_0x2e6be3('0x1dc1')]}});}function _0x2714c2(_0x4b531f,_0x395c5b){const _0x38a3f8=_0x59ddec;_0x29ec84['show']({'controller':_0x38a3f8('0xf49'),'controllerAs':'vm','templateUrl':_0x44f26f,'parent':angular['element'](_0x4de8ae['body']),'targetEvent':_0x395c5b,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x4b531f,'smsQueues':_0x39cb8f['smsQueues']?_0x39cb8f[_0x38a3f8('0x1f50')][_0x38a3f8('0x6aa')]:[],'crudPermissions':_0x39cb8f[_0x38a3f8('0x1dc1')],'realtime':![]}});}function _0x4c357(_0xb9d924,_0x3832c7){const _0x37ab37=_0x59ddec,_0x3de495=_0x29ec84[_0x37ab37('0x1d02')]()['title'](_0x37ab37('0x5bb')+_0x3c8d8a()[_0x37ab37('0x10e')]('smsQueue')+'?')[_0x37ab37('0xf8b')](''+(_0xb9d924['name']||_0x37ab37('0xe99'))+_0x37ab37('0x24be')+'\x20will\x20be\x20deleted.')[_0x37ab37('0x217')](_0x37ab37('0xd85'))['targetEvent'](_0x3832c7)['ok']('OK')[_0x37ab37('0x1e1f')]('CANCEL');_0x29ec84['show'](_0x3de495)[_0x37ab37('0x173b')](function(){_0x408dd7(_0xb9d924);},function(){const _0x1c3409=_0x37ab37;console[_0x1c3409('0xe37')]('CANCEL');});}function _0x1d807(){const _0x57a2d8=_0x59ddec;if(_0x140044[_0x57a2d8('0x1b4e')](_0x57a2d8('0x79b')))_0x2dd2f0['go']('app.sms.realtime.queues',{});else return _0x3b5204[_0x57a2d8('0x170e')]['get']({'userProfileId':_0x140044[_0x57a2d8('0x14d4')]()[_0x57a2d8('0x1946')],'sectionId':0x2c6})[_0x57a2d8('0x1964')][_0x57a2d8('0x173b')](function(_0x48eb12){const _0x31ca66=_0x57a2d8,_0x700637=_0x48eb12&&_0x48eb12[_0x31ca66('0x6aa')]?_0x48eb12['rows'][0x0]:null;_0x700637&&_0x700637['enabled']?_0x2dd2f0['go'](_0x31ca66('0x1cfb'),{}):_0x4325f0[_0x31ca66('0x2787')]({'title':_0x4491f2[_0x31ca66('0x1467')](_0x31ca66('0x4aa')),'msg':_0x4491f2[_0x31ca66('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x57a2d8('0x103c')](function(_0x4a042d){const _0x4201c0=_0x57a2d8;_0x4325f0['error']({'title':_0x4a042d['status']?'API:'+_0x4a042d[_0x4201c0('0x276f')]+'\x20-\x20'+_0x4a042d[_0x4201c0('0x2696')]:_0x4201c0('0x144d'),'msg':_0x4a042d[_0x4201c0('0x276f')]?JSON['stringify'](_0x4a042d[_0x4201c0('0x1e07')]):_0x4a042d[_0x4201c0('0x1b75')]()});});}let _0x309753=!![],_0x3429a0=0x1;_0xc1e6d1['$watch'](_0x59ddec('0x157b'),function(_0x4305ee,_0x926905){const _0x523f29=_0x59ddec;_0x309753?_0x1ec5ba(function(){_0x309753=![];}):(!_0x926905&&(_0x3429a0=_0x39cb8f[_0x523f29('0xc49')][_0x523f29('0x182e')]),_0x4305ee!==_0x926905&&(_0x39cb8f[_0x523f29('0xc49')][_0x523f29('0x182e')]=0x1),!_0x4305ee&&(_0x39cb8f[_0x523f29('0xc49')]['page']=_0x3429a0),_0x39cb8f[_0x523f29('0x11ba')]());});function _0x5a8831(_0x3a1279){const _0x492bd1=_0x59ddec;_0x39cb8f[_0x492bd1('0x1f50')]=_0x3a1279||{'count':0x0,'rows':[]};}function _0x1a7764(){const _0x39b339=_0x59ddec;_0x39cb8f[_0x39b339('0xc49')][_0x39b339('0x17f0')]=(_0x39cb8f['query'][_0x39b339('0x182e')]-0x1)*_0x39cb8f[_0x39b339('0xc49')][_0x39b339('0x3e')],_0x140044[_0x39b339('0x1b4e')](_0x39b339('0x79b'))?_0x39cb8f[_0x39b339('0x2219')]=_0x3b5204[_0x39b339('0xe99')][_0x39b339('0x1d97')](_0x39cb8f[_0x39b339('0xc49')],_0x5a8831)[_0x39b339('0x1964')]:(_0x39cb8f[_0x39b339('0xc49')]['id']=_0x39cb8f[_0x39b339('0x257b')]['id'],_0x39cb8f['query'][_0x39b339('0x17c9')]=_0x39b339('0x2d8'),_0x39cb8f['promise']=_0x3b5204[_0x39b339('0x257b')][_0x39b339('0x135b')](_0x39cb8f[_0x39b339('0xc49')],_0x5a8831)[_0x39b339('0x1964')]);}function _0x202c01(_0x694bc6,_0xb0e0eb){const _0x273776=_0x59ddec;_0x29ec84[_0x273776('0x1cb7')]({'controller':_0x273776('0x1e5b'),'controllerAs':'vm','templateUrl':_0x576830,'parent':angular[_0x273776('0xb6d')](_0x4de8ae[_0x273776('0x1a5')]),'targetEvent':_0x694bc6,'clickOutsideToClose':!![],'locals':{'smsQueue':_0xb0e0eb,'smsQueues':_0x39cb8f['smsQueues'][_0x273776('0x6aa')],'license':_0x39cb8f['license'],'setting':_0x39cb8f[_0x273776('0x251')],'crudPermissions':_0x39cb8f[_0x273776('0x1dc1')]}});}function _0x408dd7(_0x2f60b4){const _0x157d58=_0x59ddec;_0x3b5204[_0x157d58('0xe99')]['delete']({'id':_0x2f60b4['id']})[_0x157d58('0x1964')][_0x157d58('0x173b')](function(){const _0x6a815f=_0x157d58;_0x3c8d8a()[_0x6a815f('0x1a8b')](_0x39cb8f['smsQueues'][_0x6a815f('0x6aa')],{'id':_0x2f60b4['id']}),_0x39cb8f[_0x6a815f('0x1f50')][_0x6a815f('0x1a2f')]-=0x1,!_0x39cb8f[_0x6a815f('0x1f50')][_0x6a815f('0x6aa')][_0x6a815f('0x543')]&&_0x39cb8f[_0x6a815f('0x11ba')](),_0x4325f0[_0x6a815f('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x6a815f('0x66a'))+'\x20deleted!','msg':_0x2f60b4[_0x6a815f('0x10ad')]?_0x2f60b4[_0x6a815f('0x10ad')]+_0x6a815f('0x25d2'):''});})[_0x157d58('0x103c')](function(_0x29d7a6){const _0x46ac59=_0x157d58;if(_0x29d7a6[_0x46ac59('0x1e07')]&&_0x29d7a6['data']['errors']&&_0x29d7a6[_0x46ac59('0x1e07')]['errors']['length']){_0x39cb8f['errors']=_0x29d7a6[_0x46ac59('0x1e07')]['errors']||[{'message':_0x29d7a6[_0x46ac59('0x1b75')](),'type':'SYSTEM:DELETEsmsQueue'}];for(let _0x56f634=0x0;_0x56f634<_0x29d7a6['data'][_0x46ac59('0x1d4a')]['length'];_0x56f634++){_0x4325f0[_0x46ac59('0x15aa')]({'title':_0x29d7a6[_0x46ac59('0x1e07')][_0x46ac59('0x1d4a')][_0x56f634]['type'],'msg':_0x29d7a6[_0x46ac59('0x1e07')]['errors'][_0x56f634][_0x46ac59('0x67f')]});}}else _0x4325f0[_0x46ac59('0x15aa')]({'title':_0x29d7a6[_0x46ac59('0x276f')]?'API:'+_0x29d7a6[_0x46ac59('0x276f')]+_0x46ac59('0x160c')+_0x29d7a6['statusText']:_0x46ac59('0x1a01'),'msg':_0x29d7a6[_0x46ac59('0x1e07')]?JSON['stringify'](_0x29d7a6['data'][_0x46ac59('0x67f')]):_0x29d7a6['message']||_0x29d7a6['toString']()});});}function _0x21e38c(){const _0x11ff16=_0x59ddec,_0x43a881=angular[_0x11ff16('0x2e3')](_0x39cb8f['selectedSmsQueues']);return _0x39cb8f['selectedSmsQueues']=[],_0x43a881;}function _0x37503b(_0x2c9892){const _0x5835e5=_0x59ddec,_0x45d5d1=_0x29ec84[_0x5835e5('0x1d02')]()[_0x5835e5('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?')[_0x5835e5('0xf8b')](_0x5835e5('0x15b9')+_0x39cb8f[_0x5835e5('0x5d0')][_0x5835e5('0x543')]+_0x5835e5('0xcb4')+'\x20will\x20be\x20deleted.')[_0x5835e5('0x217')](_0x5835e5('0x21a1'))[_0x5835e5('0x21de')](_0x2c9892)['ok']('OK')[_0x5835e5('0x1e1f')](_0x5835e5('0x468'));_0x29ec84[_0x5835e5('0x1cb7')](_0x45d5d1)[_0x5835e5('0x173b')](function(){const _0x3c401f=_0x5835e5;_0x39cb8f[_0x3c401f('0x5d0')][_0x3c401f('0xa6a')](function(_0x1a2b6d){_0x408dd7(_0x1a2b6d);}),_0x39cb8f[_0x3c401f('0x5d0')]=[];});}function _0x2a48d6(){const _0x13f1dd=_0x59ddec;_0x39cb8f[_0x13f1dd('0x5d0')]=[];}function _0x5dc46a(){const _0x570481=_0x59ddec;_0x39cb8f[_0x570481('0x5d0')]=_0x39cb8f[_0x570481('0x1f50')][_0x570481('0x6aa')];}}const _0x14afe0=_0x2e0f23;_0x3007d0['$inject']=[_0x566993('0xccc'),'$translatePartialLoaderProvider'];function _0x3007d0(_0x49adef,_0x501528){const _0x54751a=_0x566993;_0x49adef['state'](_0x54751a('0xd30'),{'abstract':!![],'url':_0x54751a('0x133')})[_0x54751a('0x1a49')](_0x54751a('0x759'),{'url':'/smsQueues','views':{'content@app':{'templateUrl':_0x1085ed,'controller':_0x54751a('0x2631')}},'resolve':{'smsQueues':[_0x54751a('0x2401'),'Auth',function(_0x4df546,_0x35bb1f){const _0x4411da=_0x54751a;return _0x35bb1f[_0x4411da('0x1b4e')](_0x4411da('0x79b'))?_0x4df546[_0x4411da('0x155b')](_0x4411da('0x27b1'),{'fields':_0x4411da('0xab9'),'sort':_0x4411da('0x1769'),'channel':'sms','limit':0xa,'offset':0x0}):_0x4df546[_0x4411da('0x155b')]('userProfile@getResources',{'id':_0x35bb1f['getCurrentUser']()['userProfileId'],'section':_0x4411da('0x2d8'),'fields':_0x4411da('0xab9'),'sort':_0x4411da('0x1769'),'channel':_0x4411da('0x1a8f'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x54751a('0x2401'),_0x54751a('0x1600'),function(_0x5ef8b9,_0x27eae4){const _0x5552d3=_0x54751a;return _0x27eae4[_0x5552d3('0x1b4e')]('admin')?null:_0x5ef8b9[_0x5552d3('0x155b')](_0x5552d3('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x27eae4[_0x5552d3('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x54751a('0x2401'),_0x54751a('0x1600'),function(_0x114240,_0x24aa57){const _0x27f378=_0x54751a;return _0x24aa57['hasRole'](_0x27f378('0x79b'))?null:_0x114240[_0x27f378('0x155b')](_0x27f378('0x40'),{'fields':_0x27f378('0x1348'),'userProfileId':_0x24aa57[_0x27f378('0x14d4')]()[_0x27f378('0x1946')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':'sms'})[_0x54751a('0x1a49')](_0x54751a('0x2364'),{'url':_0x54751a('0xb4c'),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x34a8e7,'controller':_0x54751a('0xe4f')}},'resolve':{'smsQueue':[_0x54751a('0x2401'),_0x54751a('0x1caf'),function(_0x2d386a,_0x17e901){const _0x52cc0e=_0x54751a;return _0x2d386a[_0x52cc0e('0x155b')]('smsQueue@get',{'fields':_0x52cc0e('0xab9'),'id':_0x17e901['id']});}],'userProfileSection':['apiResolver',_0x54751a('0x1600'),function(_0x45bb47,_0x59b822){const _0x3bb56a=_0x54751a;return _0x45bb47[_0x3bb56a('0x155b')]('userProfileSection@get',{'fields':_0x3bb56a('0x1348'),'userProfileId':_0x59b822[_0x3bb56a('0x14d4')]()['userProfileId'],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x54751a('0x1a8f')})['state'](_0x54751a('0x242d'),{'url':'/smsAccounts','views':{'content@app':{'templateUrl':_0x5f2e4d,'controller':_0x54751a('0x23f6')}},'resolve':{'smsAccounts':[_0x54751a('0x2401'),'Auth',function(_0x4333b4,_0x4614b3){const _0x126c1d=_0x54751a;return _0x4614b3['hasRole']('admin')?_0x4333b4[_0x126c1d('0x155b')](_0x126c1d('0x21ac'),{'fields':_0x126c1d('0x232a'),'sort':_0x126c1d('0x1769'),'limit':0xa,'offset':0x0}):_0x4333b4[_0x126c1d('0x155b')](_0x126c1d('0x14b3'),{'id':_0x4614b3[_0x126c1d('0x14d4')]()[_0x126c1d('0x1946')],'section':_0x126c1d('0x45'),'fields':_0x126c1d('0x232a'),'sort':_0x126c1d('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x54751a('0x2401'),'Auth',function(_0x55935c,_0x5cef1d){const _0x575402=_0x54751a;return _0x5cef1d[_0x575402('0x1b4e')](_0x575402('0x79b'))?null:_0x55935c[_0x575402('0x155b')]('userProfile@get',{'fields':_0x575402('0x19dd'),'id':_0x5cef1d['getCurrentUser']()[_0x575402('0x1946')]});}],'userProfileSection':[_0x54751a('0x2401'),_0x54751a('0x1600'),function(_0x68487e,_0x1aa49b){const _0x2f583d=_0x54751a;return _0x1aa49b['hasRole']('admin')?null:_0x68487e[_0x2f583d('0x155b')](_0x2f583d('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1aa49b[_0x2f583d('0x14d4')]()[_0x2f583d('0x1946')],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x54751a('0x1a8f')})[_0x54751a('0x1a49')](_0x54751a('0x2160'),{'url':_0x54751a('0xb4c'),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x35538a,'controller':_0x54751a('0x5ad')}},'resolve':{'smsAccount':[_0x54751a('0x2401'),_0x54751a('0x1caf'),function(_0x2a1bd2,_0x2c05e0){const _0x350502=_0x54751a;return _0x2a1bd2[_0x350502('0x155b')](_0x350502('0x21ac'),{'fields':_0x350502('0x232a'),'id':_0x2c05e0['id']});}],'userProfileSection':['apiResolver',_0x54751a('0x1600'),function(_0x213cb4,_0x474018){const _0x9ec23b=_0x54751a;return _0x213cb4['resolve'](_0x9ec23b('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x474018['getCurrentUser']()['userProfileId'],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x54751a('0x1a8f')}),_0x501528[_0x54751a('0x1b1a')](_0x54751a('0xe06'));}angular[_0x566993('0x22c4')](_0x566993('0xd30'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),_0x566993('0x1663'),'flow','mdColorPicker','ckeditor',_0x566993('0x158f'),'ngAria',_0x566993('0x8a3'),_0x566993('0x1146'),_0x566993('0x1698'),'mwFormViewer',_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),'ngEmbed',_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392'),_0x566993('0xd9f')])['config'](_0x3007d0)[_0x566993('0x1e65')](_0x566993('0xf0a'),_0x4324d7)[_0x566993('0x1e65')]('SmsAccountActionsController',_0x2e60b8)[_0x566993('0x1e65')](_0x566993('0x21aa'),_0x1984c4)[_0x566993('0x1e65')]('EditSmsAccountAppagentDialogController',_0x4159cf)[_0x566993('0x1e65')](_0x566993('0x1df4'),_0x3915e3)[_0x566993('0x1e65')](_0x566993('0x4bd'),_0x47d649)[_0x566993('0x1e65')](_0x566993('0xf78'),_0x28507d)[_0x566993('0x1e65')](_0x566993('0x2723'),_0xb23984)[_0x566993('0x1e65')](_0x566993('0x23e2'),_0x478bc8)[_0x566993('0x1e65')](_0x566993('0x3af'),_0x37562a)['controller'](_0x566993('0x103'),_0x41cc49)[_0x566993('0x1e65')]('EditSmsAccountAppnoopDialogController',_0x4db2c2)[_0x566993('0x1e65')](_0x566993('0x2719'),_0x2da7bf)[_0x566993('0x1e65')](_0x566993('0x12e2'),_0x59b6c0)[_0x566993('0x1e65')]('EditSmsAccountApptagDialogController',_0x579af5)['controller'](_0x566993('0x27ac'),_0x206b42)[_0x566993('0x1e65')](_0x566993('0x2671'),_0x3d7319)[_0x566993('0x1e65')](_0x566993('0x1888'),_0x40d39a)['controller'](_0x566993('0x227c'),_0x1b83f2)['controller'](_0x566993('0x1d3'),_0x3bd212)[_0x566993('0x1e65')](_0x566993('0x1f3a'),_0x52b3b2)['controller'](_0x566993('0x1e5b'),_0x4c0582)[_0x566993('0x1e65')](_0x566993('0xf49'),_0x33d7d4)[_0x566993('0x1e65')](_0x566993('0x2285'),_0x454d58)[_0x566993('0x1e65')](_0x566993('0x27ad'),_0x1835ea)[_0x566993('0x1e65')](_0x566993('0x1ae1'),_0x14afe0);const _0x19b397=_0x21a6a1['p']+_0x566993('0x14e5'),_0x291db8=_0x21a6a1['p']+_0x566993('0x27dc'),_0x3078d0=_0x21a6a1['p']+'src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view.html';_0x3044bb[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$q',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1537'),_0x566993('0x1d66'),_0x566993('0x11fa'),_0x566993('0x61d'),'api',_0x566993('0x2fc'),'toasty',_0x566993('0x1bf5'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600'),'license',_0x566993('0x1b13')];function _0x3044bb(_0x16f73e,_0x1f713c,_0x32edf1,_0x43d6ef,_0x350d37,_0x3d4b07,_0x598583,_0x111a3f,_0x1ada94,_0x23633a,_0x469165,_0x2d1ce2,_0x42fad3,_0xa9e49,_0x2294ce,_0x10f3f6,_0x4195da,_0xa76483){const _0x255dc1=_0x566993,_0x17f11e=this,_0x11b5bf=[_0x255dc1('0x1def'),_0x255dc1('0xc7a'),_0x255dc1('0x13f3'),_0x255dc1('0x20a0'),'pauseType','lastPauseAt','internal',_0x255dc1('0x1e8'),_0x255dc1('0x988'),_0x255dc1('0x106'),_0x255dc1('0xf41'),_0x255dc1('0x2ea'),_0x255dc1('0x852'),'faxPause',_0x255dc1('0x67c'),'chatCapacity',_0x255dc1('0xa4'),_0x255dc1('0xcc8'),_0x255dc1('0x784'),'whatsappCapacity',_0x255dc1('0x2761'),'chatCurrentCapacity','openchannelCurrentCapacity',_0x255dc1('0x1d75'),_0x255dc1('0x1ade'),_0x255dc1('0x1932'),_0x255dc1('0x114b'),_0x255dc1('0x10ee'),_0x255dc1('0x1eba'),_0x255dc1('0x1120'),_0x255dc1('0x18e9'),_0x255dc1('0x14be'),_0x255dc1('0x2735'),'voiceStatus',_0x255dc1('0x2816'),_0x255dc1('0x205'),_0x255dc1('0x22a'),_0x255dc1('0x2176'),_0x255dc1('0x15b6'),'faxStatusTime',_0x255dc1('0x1c89'),'queue',_0x255dc1('0x146b'),_0x255dc1('0x1fcd'),_0x255dc1('0x23ee'),_0x255dc1('0x1386')],_0xa42c45=[_0x255dc1('0x988'),'openchannelPause',_0x255dc1('0xf41'),_0x255dc1('0x2ea'),_0x255dc1('0x852'),_0x255dc1('0x13eb'),'voicePause',_0x255dc1('0xc7a')];_0x17f11e[_0x255dc1('0x155f')]=_0x10f3f6['getCurrentUser'](),_0x17f11e[_0x255dc1('0x150')]=[_0x255dc1('0x263b'),_0x255dc1('0x1d20'),_0x255dc1('0xe2b'),_0x255dc1('0x1c3f'),_0x255dc1('0x273')],_0x17f11e[_0x255dc1('0x1d66')]=_0x598583||{'count':0x0,'rows':[]},_0x17f11e[_0x255dc1('0x1a29')]=_0x4195da,_0x17f11e[_0x255dc1('0x257b')]=_0xa9e49,_0x17f11e[_0x255dc1('0x170e')]=_0x2294ce&&_0x2294ce[_0x255dc1('0x1a2f')]==0x1?_0x2294ce[_0x255dc1('0x6aa')][0x0]:null,_0x17f11e['crudPermissions']=_0x10f3f6[_0x255dc1('0xde6')](_0x17f11e[_0x255dc1('0x170e')]?_0x17f11e['userProfileSection'][_0x255dc1('0x1dc1')]:null),_0x17f11e['agents']=_0x111a3f?_0x3c8d8a()[_0x255dc1('0x128')](_0x111a3f[_0x255dc1('0x6aa')]?_0x111a3f[_0x255dc1('0x6aa')]:[],'id'):{},_0x17f11e[_0x255dc1('0x61d')]=_0x1ada94?_0x3c8d8a()[_0x255dc1('0x128')](_0x1ada94[_0x255dc1('0x6aa')]?_0x1ada94['rows']:[],'id'):{},_0x17f11e[_0x255dc1('0x2cb')]={},_0x17f11e[_0x255dc1('0xda0')]=![],_0x17f11e['order']=[],_0x17f11e[_0x255dc1('0xa53')]={};for(const _0x720587 in _0x17f11e[_0x255dc1('0x11fa')]){typeof _0x17f11e[_0x255dc1('0x11fa')][_0x720587]!=='undefined'&&(_0x17f11e[_0x255dc1('0x11fa')][_0x720587][_0x255dc1('0xb9c')]=!![]);}_0x17f11e[_0x255dc1('0xc49')]={'limit':0xa,'page':0x1,'order':_0x255dc1('0x572'),'globalStatusFilter':'','pauseTypeFilter':''},_0x17f11e[_0x255dc1('0x1037')]=_0x177695,_0x17f11e['queueAdd']=_0x1be325,_0x17f11e[_0x255dc1('0x1751')]=_0x1ee227,_0x17f11e[_0x255dc1('0x705')]=_0xd4fe61,_0x17f11e[_0x255dc1('0x2230')]=_0x2b76aa,_0x17f11e[_0x255dc1('0x8da')]=_0x4ca31d,_0x17f11e['getAgentGlobalStatus']=_0x2a6c49,_0x17f11e['isPause']=_0x419705,_0x17f11e[_0x255dc1('0xe1')]=_0x4775b9,_0x17f11e['isPartialPause']=_0x5732a9,_0x17f11e[_0x255dc1('0x689')]=_0x1919f8,_0x17f11e['onUpdate']=_0x325b32,_0x17f11e[_0x255dc1('0x2535')]=_0x2dc925,_0x17f11e['onConnect']=_0x399d8c,_0x17f11e['onComplete']=_0x165993,_0x17f11e['screenRecording']=_0x419599,_0x469165['on'](_0x255dc1('0x1f4c'),_0x17f11e['onSave']),_0x469165['on'](_0x255dc1('0x2048'),_0x17f11e[_0x255dc1('0x2805')]),_0x469165['on']('user:agentconnect',_0x17f11e[_0x255dc1('0xc04')]),_0x469165['on'](_0x255dc1('0xa73'),_0x17f11e[_0x255dc1('0xa6f')]),_0x2dc925();let _0x3bf345=_0xa76483(function(){const _0x36bb1d=_0x255dc1;_0x17f11e[_0x36bb1d('0xda0')]&&(_0x17f11e['load']=![],_0x2dc925());},0x3e7);function _0x2dc925(){const _0x2a1a36=_0x255dc1;_0x17f11e[_0x2a1a36('0xda0')]=![];const _0x383b12=_0x1f713c[_0x2a1a36('0x112e')]();_0x17f11e[_0x2a1a36('0x2219')]=_0x383b12['promise'],_0x17f11e[_0x2a1a36('0x3b')]=[],_0x17f11e[_0x2a1a36('0x144a')]=[],_0x3c8d8a()['forIn'](_0x17f11e[_0x2a1a36('0x11fa')],function(_0x13c561,_0x3957f4){const _0x24b8fb=_0x2a1a36;_0x17f11e[_0x24b8fb('0x61d')][_0x3957f4]&&_0x3c8d8a()['merge'](_0x13c561,_0x3c8d8a()[_0x24b8fb('0x2114')](_0x3c8d8a()[_0x24b8fb('0x2797')](_0x17f11e[_0x24b8fb('0x61d')][_0x3957f4],_0xa42c45),_0x11b5bf)),_0x2a6c49(_0x13c561),_0x13c561['online']?(_0x17f11e['filteredAgents']['push'](_0x13c561),_0x17f11e[_0x24b8fb('0xa53')][_0x13c561[_0x24b8fb('0x138c')]]=_0x3957f4):_0x13c561[_0x24b8fb('0x1cd8')]=_0x3c8d8a()[_0x24b8fb('0x1acd')](_0x156524()()['format']('x'));});_0x17f11e['query'][_0x2a1a36('0x1f52')]&&_0x3c8d8a()[_0x2a1a36('0x1a8b')](_0x17f11e[_0x2a1a36('0x3b')],function(_0x4cf464){const _0xe87e1c=_0x2a1a36;return _0x4cf464[_0xe87e1c('0xd7e')]!==_0x17f11e['query'][_0xe87e1c('0x1f52')];});_0x17f11e['query']['pauseTypeFilter']&&_0x3c8d8a()[_0x2a1a36('0x1a8b')](_0x17f11e[_0x2a1a36('0x3b')],function(_0x108a58){const _0xb10b07=_0x2a1a36;return _0x108a58[_0xb10b07('0xd63')]!==_0x17f11e[_0xb10b07('0xc49')][_0xb10b07('0x6a')];});_0x17f11e[_0x2a1a36('0xc49')][_0x2a1a36('0x278d')]&&_0x3c8d8a()[_0x2a1a36('0x1a8b')](_0x17f11e['filteredAgents'],function(_0x253a3b){const _0x3b43cb=_0x2a1a36;return _0x253a3b['fullname'][_0x3b43cb('0x1e68')]()[_0x3b43cb('0x2087')](_0x17f11e['query']['filter'][_0x3b43cb('0x1e68')]())<0x0;});_0x17f11e[_0x2a1a36('0x3b')]=_0x377487(_0x17f11e[_0x2a1a36('0x3b')]);const _0x547ae8=(_0x17f11e[_0x2a1a36('0xc49')][_0x2a1a36('0x182e')]-0x1)*_0x17f11e[_0x2a1a36('0xc49')]['limit'];_0x17f11e['paginatedAgents']=_0x3c8d8a()['drop'](_0x17f11e[_0x2a1a36('0x3b')],_0x547ae8)['slice'](0x0,_0x17f11e[_0x2a1a36('0xc49')][_0x2a1a36('0x3e')]);for(let _0x33d3c2=0x0;_0x33d3c2<_0x17f11e[_0x2a1a36('0x2cb')][_0x2a1a36('0x543')];_0x33d3c2+=0x1){_0x17f11e['order'][_0x2a1a36('0x18bb')](_0x17f11e[_0x2a1a36('0x2cb')][_0x33d3c2]['id']);}_0x383b12['resolve'](),_0x17f11e['load']=!![];}function _0x1919f8(_0x29a1c4){const _0x2366b0=_0x255dc1;_0x17f11e['agents'][_0x29a1c4['id']]&&(_0x3c8d8a()[_0x2366b0('0x9ef')](_0x17f11e[_0x2366b0('0x11fa')][_0x29a1c4['id']],_0x3c8d8a()[_0x2366b0('0x2114')](_0x3c8d8a()[_0x2366b0('0x2797')](_0x29a1c4,_0xa42c45),_0x11b5bf)),_0x3c8d8a()[_0x2366b0('0x9ef')](_0x17f11e[_0x2366b0('0x61d')][_0x29a1c4['id']],_0x3c8d8a()[_0x2366b0('0x2114')](_0x3c8d8a()[_0x2366b0('0x2797')](_0x29a1c4,_0xa42c45),_0x11b5bf)),_0x2a6c49(_0x17f11e[_0x2366b0('0x11fa')][_0x29a1c4['id']]));}function _0x325b32(_0x3c5e1e){const _0x3249a2=_0x255dc1;_0x17f11e[_0x3249a2('0x11fa')][_0x3c5e1e['id']]&&(_0x3c8d8a()['merge'](_0x17f11e[_0x3249a2('0x11fa')][_0x3c5e1e['id']],_0x3c8d8a()[_0x3249a2('0x2114')](_0x3c5e1e,_0x11b5bf)),_0x3c8d8a()[_0x3249a2('0x9ef')](_0x17f11e[_0x3249a2('0x61d')][_0x3c5e1e['id']],_0x3c8d8a()[_0x3249a2('0x2114')](_0x3c5e1e,_0x11b5bf)),_0x3c5e1e[_0x3249a2('0x20a0')]&&(_0x17f11e[_0x3249a2('0x11fa')][_0x3c5e1e['id']][_0x3249a2('0x1cd8')]=_0x3c5e1e[_0x3249a2('0x20a0')],_0x17f11e[_0x3249a2('0x61d')][_0x3c5e1e['id']][_0x3249a2('0x1cd8')]=_0x3c5e1e['lastPauseAt']),_0x2a6c49(_0x17f11e[_0x3249a2('0x11fa')][_0x3c5e1e['id']]));}function _0x399d8c(_0x4f11a8){const _0x34e71a=_0x255dc1;_0x17f11e[_0x34e71a('0x11fa')][_0x17f11e[_0x34e71a('0xa53')][_0x4f11a8[_0x34e71a('0x203b')]]]&&(_0x3c8d8a()['merge'](_0x17f11e[_0x34e71a('0x11fa')][_0x17f11e[_0x34e71a('0xa53')][_0x4f11a8[_0x34e71a('0x203b')]]],_0x3c8d8a()[_0x34e71a('0x2114')](_0x4f11a8,[_0x34e71a('0x172'),_0x34e71a('0x146b')])),_0x3c8d8a()[_0x34e71a('0x9ef')](_0x17f11e[_0x34e71a('0x61d')][_0x17f11e[_0x34e71a('0xa53')][_0x4f11a8[_0x34e71a('0x203b')]]],_0x3c8d8a()[_0x34e71a('0x2114')](_0x4f11a8,['queue',_0x34e71a('0x146b')])));}function _0x165993(_0x563224){const _0x4bbec2=_0x255dc1;_0x17f11e['agents'][_0x17f11e[_0x4bbec2('0xa53')][_0x563224[_0x4bbec2('0x203b')]]]&&(_0x17f11e[_0x4bbec2('0x11fa')][_0x17f11e[_0x4bbec2('0xa53')][_0x563224[_0x4bbec2('0x203b')]]]=_0x3c8d8a()[_0x4bbec2('0x2797')](_0x17f11e[_0x4bbec2('0x11fa')][_0x17f11e[_0x4bbec2('0xa53')][_0x563224[_0x4bbec2('0x203b')]]],[_0x4bbec2('0x172'),_0x4bbec2('0x146b')]),_0x17f11e[_0x4bbec2('0x61d')][_0x17f11e[_0x4bbec2('0xa53')][_0x563224[_0x4bbec2('0x203b')]]]=_0x3c8d8a()['omit'](_0x17f11e[_0x4bbec2('0x61d')][_0x17f11e[_0x4bbec2('0xa53')][_0x563224[_0x4bbec2('0x203b')]]],['queue','destconnectedlinenum']));}function _0x177695(_0x329184){const _0x3c8abc=_0x255dc1;return _0x23633a[_0x3c8abc('0x166f')][_0x3c8abc('0x1037')]({'id':_0x329184['id'],'device':_0x3c8abc('0x12a7'),'agent_id':_0x329184['id'],'agent_name':_0x329184[_0x3c8abc('0x10ad')]})[_0x3c8abc('0x1964')][_0x3c8abc('0x173b')](function(){const _0x3bd3fb=_0x3c8abc;_0x2d1ce2[_0x3bd3fb('0xdfe')]({'title':_0x3bd3fb('0x27c6'),'msg':_0x329184[_0x3bd3fb('0x572')]+_0x3bd3fb('0x2189')}),_0x17f11e['agents'][_0x329184['id']]&&(_0x17f11e[_0x3bd3fb('0x11fa')][_0x329184['id']][_0x3bd3fb('0xc7a')]=![]),_0x17f11e[_0x3bd3fb('0x61d')][_0x329184['id']]&&(_0x17f11e[_0x3bd3fb('0x61d')][_0x329184['id']][_0x3bd3fb('0xc7a')]=![]),_0x2dc925();})[_0x3c8abc('0x103c')](function(_0x96efa4){const _0x5bc9ef=_0x3c8abc;_0x2d1ce2[_0x5bc9ef('0x15aa')]({'title':_0x96efa4['status']?_0x5bc9ef('0x137')+_0x96efa4[_0x5bc9ef('0x276f')]+_0x5bc9ef('0x160c')+_0x96efa4[_0x5bc9ef('0x2696')]:_0x5bc9ef('0x1e36'),'msg':_0x96efa4[_0x5bc9ef('0x1e07')]?JSON[_0x5bc9ef('0x100b')](_0x96efa4['data'][_0x5bc9ef('0x67f')]):_0x96efa4[_0x5bc9ef('0x1b75')]()});});}function _0x1ee227(_0x2314ba,_0x2d1111){const _0xd0fdd2=_0x255dc1;return _0x23633a[_0xd0fdd2('0x166f')]['pause']({'id':_0x2314ba['id'],'type':_0x2d1111})[_0xd0fdd2('0x1964')]['then'](function(_0x3889c5){const _0x4593ab=_0xd0fdd2;_0x17f11e[_0x4593ab('0x11fa')][_0x2314ba['id']]&&_0x3c8d8a()['merge'](_0x17f11e[_0x4593ab('0x11fa')][_0x2314ba['id']],_0x3c8d8a()[_0x4593ab('0x2114')](_0x3889c5,_0x11b5bf)),_0x17f11e[_0x4593ab('0x61d')][_0x2314ba['id']]&&_0x3c8d8a()['merge'](_0x17f11e[_0x4593ab('0x61d')][_0x2314ba['id']],_0x3c8d8a()['pick'](_0x3889c5,_0x11b5bf)),_0x2a6c49(_0x17f11e[_0x4593ab('0x11fa')][_0x2314ba['id']]);})[_0xd0fdd2('0x103c')](function(_0x20a9bf){const _0x2a0328=_0xd0fdd2;_0x2d1ce2[_0x2a0328('0x15aa')]({'title':_0x20a9bf[_0x2a0328('0x276f')]?'API:'+_0x20a9bf[_0x2a0328('0x276f')]+'\x20-\x20'+_0x20a9bf['statusText']:'api.staff.save','msg':_0x20a9bf['data']?JSON[_0x2a0328('0x100b')](_0x20a9bf[_0x2a0328('0x1e07')][_0x2a0328('0x67f')]):_0x20a9bf[_0x2a0328('0x1b75')]()});});}function _0xd4fe61(_0x1172e1){const _0x367f19=_0x255dc1;return _0x23633a[_0x367f19('0x166f')]['unpause']({'id':_0x1172e1['id']})[_0x367f19('0x1964')][_0x367f19('0x173b')](function(_0x5bfc94){const _0x291baa=_0x367f19;_0x17f11e['agents'][_0x1172e1['id']]&&_0x3c8d8a()['merge'](_0x17f11e['agents'][_0x1172e1['id']],_0x3c8d8a()[_0x291baa('0x2114')](_0x5bfc94,_0x11b5bf)),_0x17f11e[_0x291baa('0x61d')][_0x1172e1['id']]&&_0x3c8d8a()[_0x291baa('0x9ef')](_0x17f11e['rpcAgents'][_0x1172e1['id']],_0x3c8d8a()[_0x291baa('0x2114')](_0x5bfc94,_0x11b5bf)),_0x2a6c49(_0x17f11e['agents'][_0x1172e1['id']]);})['catch'](function(_0x2d23a2){const _0x292968=_0x367f19;_0x2d1ce2[_0x292968('0x15aa')]({'title':_0x2d23a2['status']?_0x292968('0x137')+_0x2d23a2['status']+_0x292968('0x160c')+_0x2d23a2[_0x292968('0x2696')]:_0x292968('0x1e36'),'msg':_0x2d23a2['data']?JSON[_0x292968('0x100b')](_0x2d23a2[_0x292968('0x1e07')]['message']):_0x2d23a2['toString']()});});}function _0x2b76aa(_0x360330){const _0x3b2d8c=_0x255dc1;_0x43d6ef[_0x3b2d8c('0x1cb7')](_0x43d6ef[_0x3b2d8c('0x5a4')]()['clickOutsideToClose'](!![])[_0x3b2d8c('0x20d6')]('Legend')[_0x3b2d8c('0xf8b')](_0x3b2d8c('0x22f0'))['ok']('Ok')[_0x3b2d8c('0x21de')](_0x360330));}function _0x1be325(_0xbe9212,_0x453d4c){const _0x55d24a=_0x255dc1;_0x43d6ef['show']({'controller':_0x55d24a('0xfba'),'controllerAs':'vm','templateUrl':_0x66272d,'parent':angular['element'](_0x350d37[_0x55d24a('0x1a5')]),'targetEvent':_0x453d4c,'clickOutsideToClose':!![],'locals':{'agent':_0xbe9212,'agents':[],'channel':_0x55d24a('0xab2'),'direction':_0x55d24a('0x1755'),'crudPermissions':_0x17f11e['crudPermissions']}});}function _0x419705(_0x2070b1){const _0x28aa06=_0x255dc1;return _0x2070b1===_0x28aa06('0x1751')||_0x2070b1===_0x28aa06('0xb3e');}function _0x4775b9(_0x32068c){return _0x32068c==='pause';}function _0x5732a9(_0x5d90e0){return _0x5d90e0==='*pause';}function _0x38bd80(_0x519118){const _0x4abba8=_0x255dc1;return _0x519118===_0x4abba8('0x23b')||_0x519118==='unknown'||_0x519118===_0x4abba8('0x1d8e')||_0x519118===_0x4abba8('0x263b')||_0x3c8d8a()[_0x4abba8('0x7d5')](_0x519118);}function _0x4ca31d(_0x4b6097,_0x4aa31b){const _0x3d5fe9=_0x255dc1;if(_0x4aa31b===_0x3d5fe9('0x21a8')){if(_0x4b6097[_0x4aa31b+_0x3d5fe9('0xef8')]!==_0x3d5fe9('0x23b'))return _0x4b6097[_0x4aa31b+_0x3d5fe9('0xef8')];if(_0x4b6097[_0x4aa31b+_0x3d5fe9('0x2408')])return _0x4b6097[_0x4aa31b+_0x3d5fe9('0xef8')]=_0x3d5fe9('0x1751'),_0x3d5fe9('0x1751');return _0x3d5fe9('0x23b');}else{if(_0x4b6097[_0x4aa31b+_0x3d5fe9('0x2408')])return _0x4b6097[_0x4aa31b+'Status']='pause',_0x3d5fe9('0x1751');return _0x4b6097[_0x4aa31b+_0x3d5fe9('0xef8')];}}function _0x2a6c49(_0x3c5ff5){const _0x45c3af=_0x255dc1;let _0x24df09=_0x45c3af('0x1b77');if(_0x3c8d8a()[_0x45c3af('0x3ff')]([_0x4ca31d(_0x3c5ff5,'voice'),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x8c5')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x108a')),_0x4ca31d(_0x3c5ff5,'openchannel'),_0x4ca31d(_0x3c5ff5,'sms'),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x245')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x16d'))],_0x419705))_0x24df09=_0x45c3af('0x1751');else{if(_0x3c8d8a()[_0x45c3af('0x1ec')]([_0x4ca31d(_0x3c5ff5,_0x45c3af('0x21a8')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x8c5')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x108a')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0xab2')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x1a8f')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x245')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x16d'))],_0x419705))_0x24df09=_0x45c3af('0xb3e');else _0x3c8d8a()['every']([_0x4ca31d(_0x3c5ff5,_0x45c3af('0x21a8')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x8c5')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x108a')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0xab2')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x1a8f')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x245')),_0x4ca31d(_0x3c5ff5,_0x45c3af('0x16d'))],_0x38bd80)?_0x24df09=_0x45c3af('0x23b'):_0x24df09=_0x45c3af('0xe2b');}_0x3c5ff5[_0x45c3af('0xd7e')]!==_0x24df09&&(_0x3c5ff5['globalStatus']=_0x24df09,_0x3c5ff5['init']?(_0x3c5ff5[_0x45c3af('0xb9c')]=![],_0x3c5ff5[_0x45c3af('0x1cd8')]=_0x419705(_0x24df09)?_0x3c8d8a()[_0x45c3af('0x1acd')](_0x156524()(_0x3c5ff5['lastPauseAt'])[_0x45c3af('0xddc')]('x')):_0x3c8d8a()['max']([_0x3c5ff5[_0x45c3af('0x1c89')],_0x3c5ff5[_0x45c3af('0x2816')],_0x3c5ff5[_0x45c3af('0x22a')],_0x3c5ff5[_0x45c3af('0x2176')],_0x3c5ff5[_0x45c3af('0x15b6')],_0x3c5ff5[_0x45c3af('0x205')],_0x3c5ff5[_0x45c3af('0xbc9')]])):_0x3c5ff5[_0x45c3af('0x1cd8')]=_0x3c8d8a()[_0x45c3af('0x1acd')](_0x156524()()['format']('x')));}function _0x377487(_0x40b3be){const _0x397566=_0x255dc1,_0x913e6e=_0x3c8d8a()[_0x397566('0x17b2')](_0x17f11e[_0x397566('0xc49')][_0x397566('0x144a')],'-')?'desc':'asc';return _0x3c8d8a()[_0x397566('0x1d16')](_0x40b3be,[_0x17f11e[_0x397566('0xc49')]['order']['replace']('-','')],[_0x913e6e]);}function _0x56c2e8(){const _0x439aea=_0x255dc1;_0x3bf345&&(_0xa76483[_0x439aea('0x1e1f')](_0x3bf345),_0x3bf345=null);}function _0x419599(_0x590ad8,_0x3730be){const _0x530362=_0x255dc1;return _0x23633a[_0x530362('0x166f')][_0x530362('0x1842')]({'id':_0x590ad8['id']},{'screenrecording':_0x3730be})[_0x530362('0x1964')][_0x530362('0x103c')](function(_0x4beb8e){const _0x4cd2ce=_0x530362;_0x2d1ce2[_0x4cd2ce('0x15aa')]({'title':_0x4beb8e[_0x4cd2ce('0x276f')]?'API:'+_0x4beb8e['status']+_0x4cd2ce('0x160c')+_0x4beb8e[_0x4cd2ce('0x2696')]:'api.user.update','msg':_0x4beb8e['data']?JSON[_0x4cd2ce('0x100b')](_0x4beb8e[_0x4cd2ce('0x1e07')]['message']):_0x4beb8e[_0x4cd2ce('0x1b75')]()});});}_0x16f73e[_0x255dc1('0xbf6')]('$destroy',function(){const _0x19f84b=_0x255dc1;_0x469165[_0x19f84b('0x251c')](_0x19f84b('0x1f4c')),_0x469165['removeAllListeners']('user:update'),_0x469165[_0x19f84b('0x251c')]('user:agentconnect'),_0x469165[_0x19f84b('0x251c')](_0x19f84b('0xa73')),_0x56c2e8();});}const _0x1c1eb5=_0x3044bb,_0x2a01e0=_0x21a6a1['p']+_0x566993('0xc18'),_0x154f27=_0x21a6a1['p']+_0x566993('0xd37');_0x2914fd[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$q',_0x566993('0x1b82'),_0x566993('0x1b13'),'queues',_0x566993('0x2156'),'api',_0x566993('0x2fc'),_0x566993('0x1558'),'userProfile',_0x566993('0x170e'),_0x566993('0x1600')];function _0x2914fd(_0xe5817b,_0x2d5807,_0x3b92be,_0x5b8c62,_0x5e2024,_0x289881,_0x3aaa23,_0x13630f,_0x16f257,_0x560da8,_0x2e2767,_0x2f9de8,_0x10c88f,_0x1e5651){const _0x3287bc=_0x566993,_0x1120fc=this,_0x3dcfdc=[_0x3287bc('0x34e'),_0x3287bc('0x825'),_0x3287bc('0x1b68'),_0x3287bc('0x157c'),_0x3287bc('0x1e8d'),'originated',_0x3287bc('0x67f'),_0x3287bc('0x3ba'),'dialMethod','Trunk',_0x3287bc('0x1898')];_0x1120fc[_0x3287bc('0x155f')]=_0x1e5651[_0x3287bc('0x14d4')](),_0x1120fc[_0x3287bc('0x1a2f')]=_0x3aaa23[_0x3287bc('0x1a2f')]?_0x3aaa23[_0x3287bc('0x1a2f')]:0x0,_0x1120fc[_0x3287bc('0xeae')]=_0x3aaa23?_0x3c8d8a()[_0x3287bc('0x128')](_0x3aaa23[_0x3287bc('0x6aa')]?_0x3aaa23[_0x3287bc('0x6aa')]:[],'id'):{},_0x1120fc[_0x3287bc('0x2156')]=_0x13630f?_0x3c8d8a()[_0x3287bc('0x128')](_0x13630f[_0x3287bc('0x6aa')]?_0x13630f[_0x3287bc('0x6aa')]:[],'id'):{},_0x1120fc[_0x3287bc('0x257b')]=_0x2f9de8,_0x1120fc['userProfileSection']=_0x10c88f&&_0x10c88f[_0x3287bc('0x1a2f')]==0x1?_0x10c88f[_0x3287bc('0x6aa')][0x0]:null,_0x1120fc[_0x3287bc('0x1dc1')]=_0x1e5651[_0x3287bc('0xde6')](_0x1120fc['userProfileSection']?_0x1120fc['userProfileSection']['crudPermissions']:null);_0x1e5651[_0x3287bc('0x1b4e')](_0x3287bc('0x79b'))?_0x1120fc[_0x3287bc('0xc49')]={'type':_0x3287bc('0x1755'),'sort':_0x3287bc('0x1769'),'limit':0xa,'page':0x1}:_0x1120fc['query']={'id':_0x1120fc[_0x3287bc('0x155f')]['id'],'channel':_0x3287bc('0xab2'),'type':_0x3287bc('0x1755'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x1120fc[_0x3287bc('0xdfe')]=_0x580e94,_0x1120fc[_0x3287bc('0x115e')]=_0x2c2712,_0x1120fc[_0x3287bc('0x9bb')]=_0x424fae,_0x1120fc[_0x3287bc('0x24f8')]=_0x3a761e,_0x1120fc[_0x3287bc('0x578')]=_0x4d09a3,_0x1120fc['onSave']=_0x19a382,_0x1120fc['onSaveMember']=_0x3900e3,_0x1120fc[_0x3287bc('0xc12')]=_0x204bde,_0x1120fc['onPause']=_0x87a20c,_0x1120fc['onLogin']=_0xd85c9f,_0x1120fc[_0x3287bc('0x1e70')]=_0x4d2647,_0x1120fc[_0x3287bc('0x2444')]=_0x19bed0,_0x1120fc[_0x3287bc('0x144a')]=[],_0x3c8d8a()['forIn'](_0x1120fc[_0x3287bc('0xeae')],function(_0x55401f){const _0x2c69c9=_0x3287bc;_0x1120fc[_0x2c69c9('0x144a')][_0x2c69c9('0x18bb')](_0x55401f['id']);}),_0x560da8['on']('openchannel_queue:save',_0x1120fc[_0x3287bc('0x689')]),_0x560da8['on']('userOpenchannelQueue:save',_0x1120fc[_0x3287bc('0x6f6')]),_0x560da8['on'](_0x3287bc('0x1b51'),_0x1120fc['onRemoveMember']),_0x560da8['on'](_0x3287bc('0x2048'),_0x1120fc[_0x3287bc('0x255')]),_0x560da8['on']('userVoiceQueue:remove',_0x1120fc[_0x3287bc('0x1e70')]),_0x560da8['on'](_0x3287bc('0x1379'),_0x1120fc[_0x3287bc('0x5')]);function _0x19bed0(){const _0x490413=_0x3287bc,_0x3defd9=[];return _0x3c8d8a()[_0x490413('0x33d')](_0x1120fc['queues'],function(_0x5448fa,_0x16f5ee){const _0x329bd5=_0x490413;_0x5448fa['paused']=0x0,_0x5448fa[_0x329bd5('0x1307')]=0x0,_0x1120fc[_0x329bd5('0xeae')][_0x16f5ee][_0x329bd5('0x11fa')]={},_0x3defd9[_0x329bd5('0x18bb')](_0x16f257[_0x329bd5('0x1611')]['getMembers']({'id':_0x16f5ee})[_0x329bd5('0x1964')]),_0x1120fc[_0x329bd5('0x2156')][_0x16f5ee]&&_0x3c8d8a()[_0x329bd5('0x9ef')](_0x5448fa,_0x3c8d8a()[_0x329bd5('0x2114')](_0x1120fc[_0x329bd5('0x2156')][_0x16f5ee],_0x3dcfdc));}),_0x5b8c62[_0x490413('0x27c8')](_0x3defd9)[_0x490413('0x173b')](function(_0x37aae2){const _0x526b8a=_0x490413;for(let _0x2ffc3b=0x0;_0x2ffc3b<_0x37aae2[_0x526b8a('0x543')];_0x2ffc3b+=0x1){for(let _0x5e5d67=0x0;_0x5e5d67<_0x37aae2[_0x2ffc3b][_0x526b8a('0x6aa')][_0x526b8a('0x543')];_0x5e5d67++){_0x37aae2[_0x2ffc3b][_0x526b8a('0x6aa')][_0x5e5d67][_0x526b8a('0x1898')]&&_0x1120fc[_0x526b8a('0xeae')][_0x37aae2[_0x2ffc3b]['rows'][_0x5e5d67][_0x526b8a('0x2070')]][_0x526b8a('0x1898')]++,_0x1120fc[_0x526b8a('0xeae')][_0x37aae2[_0x2ffc3b][_0x526b8a('0x6aa')][_0x5e5d67][_0x526b8a('0x2070')]][_0x526b8a('0x1307')]++,_0x1120fc[_0x526b8a('0xeae')][_0x37aae2[_0x2ffc3b]['rows'][_0x5e5d67][_0x526b8a('0x2070')]][_0x526b8a('0x11fa')][_0x37aae2[_0x2ffc3b][_0x526b8a('0x6aa')][_0x5e5d67][_0x526b8a('0x181c')]]=_0x37aae2[_0x2ffc3b][_0x526b8a('0x6aa')][_0x5e5d67][_0x526b8a('0x2070')];}}})['catch'](function(_0x44b197){const _0x2feea1=_0x490413;console[_0x2feea1('0x15aa')](_0x44b197);});}function _0x19a382(_0xc17324){const _0x5be3e7=_0x3287bc;_0x1120fc[_0x5be3e7('0xeae')][_0xc17324['id']]&&_0x3c8d8a()[_0x5be3e7('0x9ef')](_0x1120fc[_0x5be3e7('0xeae')][_0xc17324['id']],_0x3c8d8a()[_0x5be3e7('0x2114')](_0xc17324,_0x3dcfdc));}function _0x3900e3(_0x2cc3fa){const _0x285236=_0x3287bc;_0x1120fc['queues'][_0x2cc3fa['OpenchannelQueueId']]&&_0x1120fc[_0x285236('0xeae')][_0x2cc3fa['OpenchannelQueueId']][_0x285236('0x1307')]++;}function _0x204bde(_0x4e6eb9){const _0x22848a=_0x3287bc;_0x1120fc[_0x22848a('0xeae')][_0x4e6eb9[_0x22848a('0x2070')]]&&_0x1120fc['queues'][_0x4e6eb9[_0x22848a('0x2070')]]['loggedInDb']--;}function _0x87a20c(_0x1a6a49){const _0x5ae81a=_0x3287bc;console[_0x5ae81a('0xe37')](_0x5ae81a('0x255'),_0x1a6a49);if(_0x1a6a49['voicePause'])_0x3c8d8a()[_0x5ae81a('0x33d')](_0x1120fc['queues'],function(_0x1014ca){const _0x5b4a7e=_0x5ae81a;_0x1014ca[_0x5b4a7e('0x11fa')][_0x1a6a49['id']]&&(_0x1014ca['paused']+=0x1,console[_0x5b4a7e('0xe37')]('pause'));});else!_0x1a6a49[_0x5ae81a('0x67c')]&&_0x3c8d8a()[_0x5ae81a('0x33d')](_0x1120fc[_0x5ae81a('0xeae')],function(_0x4ff0d9){const _0x54c651=_0x5ae81a;_0x4ff0d9[_0x54c651('0x11fa')][_0x1a6a49['id']]&&(_0x4ff0d9['paused']>0x0&&(_0x4ff0d9[_0x54c651('0x1898')]-=0x1,console['log'](_0x54c651('0x9da'))));});}function _0xd85c9f(_0x557474){const _0x1464e0=_0x3287bc;console['log'](_0x1464e0('0x1e15'),_0x557474),_0x1120fc[_0x1464e0('0xeae')][_0x557474[_0x1464e0('0x2070')]]&&(_0x1120fc['queues'][_0x557474[_0x1464e0('0x2070')]][_0x1464e0('0x1307')]+=0x1,_0x1120fc['queues'][_0x557474[_0x1464e0('0x2070')]]['agents'][_0x557474['UserId']]=_0x557474[_0x1464e0('0x2070')]);}function _0x4d2647(_0x2b6720){const _0x57a0da=_0x3287bc;console[_0x57a0da('0xe37')](_0x57a0da('0x1e70'),_0x2b6720),_0x1120fc[_0x57a0da('0xeae')][_0x2b6720[_0x57a0da('0x2070')]]&&_0x1120fc[_0x57a0da('0xeae')][_0x2b6720[_0x57a0da('0x2070')]][_0x57a0da('0x1307')]>0x0&&(_0x1120fc['queues'][_0x2b6720[_0x57a0da('0x2070')]][_0x57a0da('0x1307')]-=0x1,delete _0x1120fc[_0x57a0da('0xeae')][_0x2b6720['OpenchannelQueueId']][_0x57a0da('0x11fa')][_0x2b6720[_0x57a0da('0x181c')]]);}let _0x490352=!![],_0xc1b8da=0x1;_0xe5817b['$watch']('vm.query.filter',function(_0x338fb8,_0xbc2aab){const _0x5c116f=_0x3287bc;_0x490352?_0x2d5807(function(){_0x490352=![];}):(!_0xbc2aab&&(_0xc1b8da=_0x1120fc[_0x5c116f('0xc49')][_0x5c116f('0x182e')]),_0x338fb8!==_0xbc2aab&&(_0x1120fc[_0x5c116f('0xc49')][_0x5c116f('0x182e')]=0x1),!_0x338fb8&&(_0x1120fc['query'][_0x5c116f('0x182e')]=_0xc1b8da),_0x1120fc['getQueues']());});function _0x580e94(_0x301141){const _0x59b7b6=_0x3287bc;_0x1120fc['count']=_0x301141[_0x59b7b6('0x1a2f')],_0x1120fc[_0x59b7b6('0xeae')]=_0x301141?_0x3c8d8a()[_0x59b7b6('0x128')](_0x301141['rows']?_0x301141[_0x59b7b6('0x6aa')]:[],'id'):{};if(_0x301141[_0x59b7b6('0x6aa')]){_0x1120fc[_0x59b7b6('0x144a')]=[];for(let _0x4044f1=0x0;_0x4044f1<_0x301141['rows'][_0x59b7b6('0x543')];_0x4044f1++){_0x1120fc['order']['push'](_0x301141['rows'][_0x4044f1]['id']);}}_0x19bed0();}function _0x2c2712(){const _0x2be194=_0x3287bc;_0x1120fc[_0x2be194('0xc49')][_0x2be194('0x17f0')]=(_0x1120fc[_0x2be194('0xc49')][_0x2be194('0x182e')]-0x1)*_0x1120fc['query'][_0x2be194('0x3e')],_0x1e5651[_0x2be194('0x1b4e')](_0x2be194('0x79b'))?_0x1120fc['promise']=_0x16f257['openchannelQueue'][_0x2be194('0x1d97')](_0x1120fc[_0x2be194('0xc49')],_0x580e94)[_0x2be194('0x1964')]:(_0x1120fc['query']['id']=_0x1120fc[_0x2be194('0x257b')]['id'],_0x1120fc[_0x2be194('0xc49')][_0x2be194('0x17c9')]='OpenchannelQueues',_0x1120fc[_0x2be194('0x2219')]=_0x16f257[_0x2be194('0x257b')][_0x2be194('0x135b')](_0x1120fc[_0x2be194('0xc49')],_0x580e94)[_0x2be194('0x1964')]);}function _0x424fae(_0x487461,_0x8af81a){const _0x24cdbe=_0x3287bc;_0x3b92be[_0x24cdbe('0x1cb7')]({'controller':'CreateOrEditOpenchannelQueueDialogController','controllerAs':'vm','templateUrl':_0x2a01e0,'parent':angular[_0x24cdbe('0xb6d')](_0x5e2024[_0x24cdbe('0x1a5')]),'targetEvent':_0x487461,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x8af81a,'openchannelQueues':_0x3c8d8a()[_0x24cdbe('0xcaf')](_0x1120fc[_0x24cdbe('0xeae')]),'license':null,'setting':null,'crudPermissions':_0x1120fc[_0x24cdbe('0x1dc1')]}});}function _0x3a761e(_0x48a3b8,_0x2f7e1e){const _0x220ba1=_0x3287bc;_0x3b92be[_0x220ba1('0x1cb7')]({'controller':'OpenchannelQueueagentaddController','controllerAs':'vm','templateUrl':_0x154f27,'parent':angular[_0x220ba1('0xb6d')](_0x5e2024[_0x220ba1('0x1a5')]),'targetEvent':_0x48a3b8,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2f7e1e,'openchannelQueues':_0x1120fc[_0x220ba1('0xeae')]?_0x1120fc[_0x220ba1('0xeae')][_0x220ba1('0x6aa')]:[],'realtime':![],'crudPermissions':_0x1120fc[_0x220ba1('0x1dc1')]}});}function _0x4d09a3(_0x177708){const _0x5daf40=_0x3287bc;return _0x16f257['openchannelQueue'][_0x5daf40('0x1842')](_0x177708)[_0x5daf40('0x1964')][_0x5daf40('0x173b')](function(){const _0x28dce9=_0x5daf40;_0x2e2767[_0x28dce9('0xdfe')]({'title':_0x28dce9('0x22bc'),'msg':_0x177708[_0x28dce9('0x10ad')]?_0x177708['name']+_0x28dce9('0x1fd6'):''});})[_0x5daf40('0x103c')](function(_0x3c1038){const _0xd7a0a2=_0x5daf40;_0x2e2767[_0xd7a0a2('0x15aa')]({'title':_0xd7a0a2('0xb5f'),'msg':_0x3c1038[_0xd7a0a2('0x67f')]});});}_0xe5817b['$on'](_0x3287bc('0x16d2'),function(){const _0x473f20=_0x3287bc;_0x560da8[_0x473f20('0x251c')](_0x473f20('0x2609')),_0x560da8[_0x473f20('0x251c')]('userOpenchannelQueue:remove'),_0x560da8[_0x473f20('0x251c')](_0x473f20('0x7c9')),_0x560da8[_0x473f20('0x251c')](_0x473f20('0x2048')),_0x560da8[_0x473f20('0x251c')](_0x473f20('0x22b7')),_0x560da8[_0x473f20('0x251c')](_0x473f20('0x1379'));});}const _0x26200b=_0x2914fd;function _0x2b2b67(){const _0x272ac5=_0x566993;return{'status':{'registered':_0x272ac5('0xdcf'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':'red-300-fg\x20icon-close-circle','reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x272ac5('0x3c7')},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x272ac5('0x2205'),'busy':_0x272ac5('0x90c'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x272ac5('0xd0a'),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0x272ac5('0x4da'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x272ac5('0x6ed'),'hangup':_0x272ac5('0x1797')},'channelStatusOut':{'ring':_0x272ac5('0x1766'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x272ac5('0x1797')}};}const _0xd77c42=_0x2b2b67;_0x4388b6[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x2fc')];function _0x4388b6(_0x506e5d,_0x1d5fd7,_0x18a416){const _0x57821b=_0x566993,_0x893c5d=this;_0x18a416[_0x57821b('0x1878')](),_0x18a416['connect'](),_0x893c5d[_0x57821b('0xd5f')]=0x0;switch(_0x1d5fd7['current'][_0x57821b('0x10ad')]){case _0x57821b('0x96c'):_0x893c5d[_0x57821b('0xd5f')]=0x0;break;case _0x57821b('0x1408'):_0x893c5d[_0x57821b('0xd5f')]=0x1;break;default:_0x893c5d[_0x57821b('0xd5f')]=0x0,_0x1d5fd7['go'](_0x57821b('0x96c'));}_0x506e5d[_0x57821b('0x1bdb')]('vm.selectedTab',function(_0x130da8,_0xb1166c){const _0x323351=_0x57821b;if(_0x130da8!==_0xb1166c)switch(_0x130da8){case 0x0:_0x1d5fd7['go'](_0x323351('0x96c'));break;case 0x1:_0x1d5fd7['go'](_0x323351('0x1408'));break;default:_0x1d5fd7['go'](_0x323351('0x96c'));}});}const _0x38cd13=_0x4388b6;_0x31e9b9[_0x566993('0x17bb')]=['$stateProvider'];function _0x31e9b9(_0x2ff79a){const _0x132446=_0x566993;_0x2ff79a[_0x132446('0x1a49')](_0x132446('0x21a7'),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x19b397,'controller':_0x132446('0x841')}},'resolve':{'userProfile':[_0x132446('0x2401'),_0x132446('0x1600'),function(_0x4b19b0,_0x1b4e01){const _0x3e072c=_0x132446;return _0x1b4e01[_0x3e072c('0x1b4e')]('admin')?null:_0x4b19b0[_0x3e072c('0x155b')](_0x3e072c('0x1f20'),{'fields':_0x3e072c('0x19dd'),'id':_0x1b4e01[_0x3e072c('0x14d4')]()[_0x3e072c('0x1946')]});}],'userProfileSection':[_0x132446('0x2401'),_0x132446('0x1600'),function(_0x55c9d9,_0x126709){const _0x337ec7=_0x132446;return _0x126709[_0x337ec7('0x1b4e')](_0x337ec7('0x79b'))?null:_0x55c9d9[_0x337ec7('0x155b')](_0x337ec7('0x40'),{'fields':_0x337ec7('0x1348'),'userProfileId':_0x126709[_0x337ec7('0x14d4')]()[_0x337ec7('0x1946')],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})[_0x132446('0x1a49')](_0x132446('0x96c'),{'url':_0x132446('0x1943'),'controller':_0x132446('0x104d'),'templateUrl':_0x291db8,'resolve':{'pauses':['apiResolver',function(_0x961442){return _0x961442['resolve']('pause@get',{'nolimit':!![]});}],'agents':['apiResolver','Auth',function(_0x3d3d8b,_0x27bc4b){const _0x170620=_0x132446;return _0x27bc4b[_0x170620('0x1b4e')](_0x170620('0x79b'))?_0x3d3d8b['resolve'](_0x170620('0x15e6'),{'fields':_0x170620('0xd6b'),'role':_0x170620('0x7b0'),'sort':_0x170620('0x572'),'nolimit':!![]}):_0x3d3d8b[_0x170620('0x155b')](_0x170620('0x14b3'),{'id':_0x27bc4b[_0x170620('0x14d4')]()[_0x170620('0x1946')],'section':_0x170620('0x1272'),'fields':_0x170620('0xd6b'),'role':_0x170620('0x7b0'),'sort':_0x170620('0x572'),'nolimit':!![]});}],'userProfile':[_0x132446('0x2401'),'Auth',function(_0x28737b,_0x48f602){const _0x526b26=_0x132446;return _0x48f602['hasRole']('admin')?null:_0x28737b[_0x526b26('0x155b')](_0x526b26('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x48f602[_0x526b26('0x14d4')]()[_0x526b26('0x1946')]});}],'userProfileSection':[_0x132446('0x2401'),_0x132446('0x1600'),function(_0x29b19a,_0x2a9a93){const _0x502f37=_0x132446;return _0x2a9a93[_0x502f37('0x1b4e')](_0x502f37('0x79b'))?null:_0x29b19a[_0x502f37('0x155b')](_0x502f37('0x40'),{'fields':_0x502f37('0x1348'),'userProfileId':_0x2a9a93['getCurrentUser']()[_0x502f37('0x1946')],'sectionId':0xca});}],'rpcAgents':[_0x132446('0x2401'),function(_0x39a577){const _0x19123b=_0x132446;return _0x39a577[_0x19123b('0x155b')](_0x19123b('0x58'));}]},'authenticate':!![],'permissionId':0x32a})[_0x132446('0x1a49')](_0x132446('0x1408'),{'url':_0x132446('0x1bb0'),'controller':_0x132446('0x23f5'),'templateUrl':_0x3078d0,'resolve':{'queues':['apiResolver',_0x132446('0x1600'),function(_0x1d8f56,_0x41a61f){const _0x38e052=_0x132446;return _0x41a61f[_0x38e052('0x1b4e')]('admin')?_0x1d8f56[_0x38e052('0x155b')](_0x38e052('0x2405'),{'type':_0x38e052('0x1755'),'sort':_0x38e052('0x1769'),'limit':0xa,'offset':0x0}):_0x1d8f56[_0x38e052('0x155b')](_0x38e052('0x14b3'),{'id':_0x41a61f['getCurrentUser']()[_0x38e052('0x1946')],'section':_0x38e052('0xd97'),'channel':_0x38e052('0xab2'),'type':_0x38e052('0x1755'),'sort':_0x38e052('0x1769'),'limit':0xa,'page':0x1});}],'userProfile':[_0x132446('0x2401'),'Auth',function(_0x17a415,_0x4c9982){const _0x225e81=_0x132446;return _0x4c9982['hasRole']('admin')?null:_0x17a415['resolve']('userProfile@get',{'fields':_0x225e81('0x19dd'),'id':_0x4c9982[_0x225e81('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x132446('0x2401'),_0x132446('0x1600'),function(_0x50fb59,_0x3a0c02){const _0x31344d=_0x132446;return _0x3a0c02[_0x31344d('0x1b4e')]('admin')?null:_0x50fb59[_0x31344d('0x155b')](_0x31344d('0x40'),{'fields':_0x31344d('0x1348'),'userProfileId':_0x3a0c02[_0x31344d('0x14d4')]()['userProfileId'],'sectionId':0x321});}],'rpcQueues':[_0x132446('0x2401'),function(_0x2f87d3){const _0x37431d=_0x132446;return _0x2f87d3[_0x37431d('0x155b')]('rpc@getOpenchannelQueues');}]},'authenticate':!![],'permissionId':0x32a});}angular[_0x566993('0x22c4')](_0x566993('0x21a7'),[])['config'](_0x31e9b9)['controller'](_0x566993('0x158d'),_0x1c1eb5)[_0x566993('0x1e65')](_0x566993('0x282f'),_0x26200b)[_0x566993('0x235c')]('helperClasses',_0xd77c42)[_0x566993('0x1e65')](_0x566993('0x1ea2'),_0x38cd13);const _0x1a10a8=_0x21a6a1['p']+_0x566993('0x2540'),_0x302a08=_0x21a6a1['p']+_0x566993('0x2200'),_0xcae419=_0x21a6a1['p']+_0x566993('0x341'),_0x4b9b0b=_0x21a6a1['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view.html';_0x55a85c[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1a65'),_0x566993('0x13f1'),_0x566993('0xbd4'),'Auth','license',_0x566993('0x251'),'crudPermissions'];function _0x55a85c(_0x500cd6,_0x39af53,_0xab61f1,_0x23f7da,_0xf1c0cc,_0x5bd04d,_0x3a29a7,_0x2156e8,_0xf0162e,_0x474e67,_0x43a42d,_0x587d63,_0x271112,_0x2d9a61){const _0x567619=_0x566993,_0x52125b=this;_0x52125b['currentUser']=_0x43a42d[_0x567619('0x14d4')](),_0x52125b[_0x567619('0x1d4a')]=[],_0x52125b[_0x567619('0x251')]=_0x271112,_0x52125b['license']=_0x587d63,_0x52125b[_0x567619('0x1dc1')]=_0x2d9a61,_0x52125b[_0x567619('0xb0')]={},_0x52125b[_0x567619('0x644')]=_0x52125b[_0x567619('0x251')]&&_0x52125b[_0x567619('0x251')][_0x567619('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x52125b['title']='OPENCHANNEL.EDIT_OPENCHANNELACCOUNT',_0x52125b[_0x567619('0x13f1')]=angular[_0x567619('0x2e3')](_0xf0162e),_0x52125b['openchannelAccounts']=_0x2156e8,_0x52125b[_0x567619('0x66b')]=![];!_0x52125b[_0x567619('0x13f1')]&&(_0x52125b['openchannelAccount']={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x52125b[_0x567619('0x20d6')]=_0x567619('0x9f7'),_0x52125b[_0x567619('0x66b')]=!![]);_0x39af53[_0x567619('0x197a')]['id']&&(_0x52125b[_0x567619('0x13f1')][_0x567619('0xf5a')]=_0x39af53[_0x567619('0x197a')]['id']);_0x52125b[_0x567619('0x2149')]=_0x3ba863,_0x52125b[_0x567619('0x245a')]=_0x5042f4,_0x52125b[_0x567619('0x2a5')]=_0x470629,_0x52125b[_0x567619('0x11ae')]=_0x411f14,_0x52125b[_0x567619('0x18e2')]=_0x1187d2,_0x43a42d[_0x567619('0x1b4e')](_0x567619('0x79b'))?_0x474e67['cmList'][_0x567619('0x1d97')]({'fields':_0x567619('0xd52'),'sort':_0x567619('0x10ad')})[_0x567619('0x1964')]['then'](function(_0x7eebcf){const _0x1aab96=_0x567619;_0x52125b[_0x1aab96('0x9e8')]=_0x7eebcf[_0x1aab96('0x6aa')]||[];})[_0x567619('0x103c')](function(_0x54e476){const _0x33a922=_0x567619;_0x3a29a7[_0x33a922('0x15aa')]({'title':_0x54e476[_0x33a922('0x276f')]?'API:'+_0x54e476[_0x33a922('0x276f')]+_0x33a922('0x160c')+_0x54e476[_0x33a922('0x2696')]:_0x33a922('0x1d5c'),'msg':_0x54e476[_0x33a922('0x1e07')]?JSON['stringify'](_0x54e476[_0x33a922('0x1e07')]):_0x54e476[_0x33a922('0x1b75')]()});}):_0x474e67[_0x567619('0xbb3')][_0x567619('0x1d97')]({'fields':_0x567619('0xd52'),'sort':_0x567619('0x10ad')})[_0x567619('0x1964')][_0x567619('0x173b')](function(_0x862aaa){const _0xdb4802=_0x567619;_0x52125b[_0xdb4802('0x9e8')]=_0x862aaa[_0xdb4802('0x6aa')]||[];})['then'](function(){const _0x2ba3ee=_0x567619;return _0x474e67[_0x2ba3ee('0x170e')][_0x2ba3ee('0x1d97')]({'userProfileId':_0x52125b['currentUser'][_0x2ba3ee('0x1946')],'sectionId':0x12d})['$promise'];})['then'](function(_0x453b9c){const _0xbfd2f1=_0x567619,_0xdfe41=_0x453b9c&&_0x453b9c[_0xbfd2f1('0x6aa')]?_0x453b9c[_0xbfd2f1('0x6aa')][0x0]:null;if(!_0xdfe41){const _0x101cf9=[];let _0x1daa04=null;_0x52125b[_0xbfd2f1('0x13f1')]&&(_0x1daa04=_0x3c8d8a()[_0xbfd2f1('0x18ab')](_0x52125b[_0xbfd2f1('0x9e8')],{'id':Number(_0x52125b[_0xbfd2f1('0x13f1')][_0xbfd2f1('0xef2')])}));for(let _0x13c65e=0x0;_0x13c65e<_0x52125b[_0xbfd2f1('0x9e8')][_0xbfd2f1('0x543')];_0x13c65e++){_0x1daa04&&_0x52125b['lists'][_0x13c65e]['id']===_0x1daa04['id']&&(_0x52125b[_0xbfd2f1('0x9e8')][_0x13c65e][_0xbfd2f1('0x268e')]=![],_0x101cf9['push'](_0x52125b[_0xbfd2f1('0x9e8')][_0x13c65e]));}_0x52125b[_0xbfd2f1('0x9e8')]=_0x101cf9;}else{if(!_0xdfe41[_0xbfd2f1('0x273e')])return _0x474e67[_0xbfd2f1('0xda9')]['get']({'sectionId':_0xdfe41['id']})[_0xbfd2f1('0x1964')][_0xbfd2f1('0x173b')](function(_0x3153e1){const _0x25ba90=_0xbfd2f1,_0x5bdc30=_0x3c8d8a()[_0x25ba90('0x8a2')](_0x3153e1[_0x25ba90('0x6aa')],function(_0x816aed){const _0x3f6106=_0x25ba90;return _0x3c8d8a()[_0x3f6106('0x18ab')](_0x52125b[_0x3f6106('0x9e8')],{'id':_0x816aed[_0x3f6106('0x1ce0')]});});let _0xcf7db9=null;_0x52125b[_0x25ba90('0x13f1')]&&(_0xcf7db9=_0x3c8d8a()[_0x25ba90('0x18ab')](_0x52125b[_0x25ba90('0x9e8')],{'id':Number(_0x52125b[_0x25ba90('0x13f1')][_0x25ba90('0xef2')])}));if(_0xcf7db9&&!_0x3c8d8a()['some'](_0x5bdc30,['id',_0xcf7db9['id']])){const _0xf3581f=_0x3c8d8a()[_0x25ba90('0x18ab')](_0x52125b[_0x25ba90('0x9e8')],{'id':_0xcf7db9['id']});_0xf3581f['canSelect']=![],_0x5bdc30[_0x25ba90('0x18bb')](_0xf3581f);}_0x52125b[_0x25ba90('0x9e8')]=_0x5bdc30;});}})[_0x567619('0x103c')](function(_0x53c61b){const _0x105045=_0x567619;_0x3a29a7[_0x105045('0x15aa')]({'title':_0x53c61b['status']?_0x105045('0x137')+_0x53c61b[_0x105045('0x276f')]+'\x20-\x20'+_0x53c61b['statusText']:'SYSTEM:GETlists','msg':_0x53c61b[_0x105045('0x1e07')]?JSON[_0x105045('0x100b')](_0x53c61b['data']):_0x53c61b[_0x105045('0x1b75')]()});});function _0x3ba863(){const _0x270228=_0x567619;_0x52125b[_0x270228('0x1d4a')]=[],_0x474e67[_0x270228('0x13f1')][_0x270228('0x1195')](_0x52125b[_0x270228('0x13f1')])[_0x270228('0x1964')][_0x270228('0x173b')](function(_0x2e64a6){const _0x2729d0=_0x270228;_0x52125b[_0x2729d0('0x1a65')]['unshift'](_0x2e64a6[_0x2729d0('0xf1f')]()),_0x3a29a7[_0x2729d0('0xdfe')]({'title':_0x2729d0('0x1d23'),'msg':_0x52125b[_0x2729d0('0x13f1')][_0x2729d0('0x10ad')]?_0x52125b[_0x2729d0('0x13f1')][_0x2729d0('0x10ad')]+_0x2729d0('0x209a'):''}),_0x1187d2(_0x2e64a6);})[_0x270228('0x103c')](function(_0x54d4f2){const _0x4e9124=_0x270228;if(_0x54d4f2[_0x4e9124('0x1e07')]&&_0x54d4f2[_0x4e9124('0x1e07')][_0x4e9124('0x1d4a')]&&_0x54d4f2['data'][_0x4e9124('0x1d4a')]['length']){_0x52125b[_0x4e9124('0x1d4a')]=_0x54d4f2['data'][_0x4e9124('0x1d4a')]||[{'message':_0x54d4f2[_0x4e9124('0x1b75')](),'type':'api.openchannelAccount.save'}];for(let _0x26c99f=0x0;_0x26c99f<_0x54d4f2[_0x4e9124('0x1e07')]['errors'][_0x4e9124('0x543')];_0x26c99f+=0x1){_0x3a29a7[_0x4e9124('0x15aa')]({'title':_0x54d4f2['data']['errors'][_0x26c99f][_0x4e9124('0x1810')],'msg':_0x54d4f2[_0x4e9124('0x1e07')][_0x4e9124('0x1d4a')][_0x26c99f][_0x4e9124('0x67f')]});}}else _0x3a29a7[_0x4e9124('0x15aa')]({'title':_0x54d4f2[_0x4e9124('0x276f')]?'API:'+_0x54d4f2['status']+_0x4e9124('0x160c')+_0x54d4f2[_0x4e9124('0x2696')]:_0x4e9124('0x231'),'msg':_0x54d4f2[_0x4e9124('0x1e07')]?JSON[_0x4e9124('0x100b')](_0x54d4f2[_0x4e9124('0x1e07')][_0x4e9124('0x67f')]):_0x54d4f2[_0x4e9124('0x1b75')]()});});}function _0x5042f4(){const _0x37197e=_0x567619;_0x52125b[_0x37197e('0x1d4a')]=[],_0x474e67[_0x37197e('0x13f1')][_0x37197e('0x1842')]({'id':_0x52125b[_0x37197e('0x13f1')]['id']},_0x52125b['openchannelAccount'])[_0x37197e('0x1964')][_0x37197e('0x173b')](function(_0x1711aa){const _0x225891=_0x37197e,_0x4dff10=_0x3c8d8a()[_0x225891('0x18ab')](_0x52125b[_0x225891('0x1a65')],{'id':_0x1711aa['id']});_0x4dff10&&_0x3c8d8a()[_0x225891('0x9ef')](_0x4dff10,_0x3c8d8a()[_0x225891('0x2114')](_0x1711aa[_0x225891('0xf1f')](),_0x3c8d8a()[_0x225891('0x1d3e')](_0x4dff10))),_0x3a29a7[_0x225891('0xdfe')]({'title':_0x225891('0x206'),'msg':_0x52125b[_0x225891('0x13f1')][_0x225891('0x10ad')]?_0x52125b[_0x225891('0x13f1')][_0x225891('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x1187d2(_0x1711aa);})[_0x37197e('0x103c')](function(_0x468992){const _0x2810=_0x37197e;if(_0x468992[_0x2810('0x1e07')]&&_0x468992[_0x2810('0x1e07')][_0x2810('0x1d4a')]&&_0x468992['data'][_0x2810('0x1d4a')]['length']){_0x52125b[_0x2810('0x1d4a')]=_0x468992['data'][_0x2810('0x1d4a')]||[{'message':_0x468992[_0x2810('0x1b75')](),'type':_0x2810('0x1ded')}];for(let _0x27f171=0x0;_0x27f171<_0x468992[_0x2810('0x1e07')][_0x2810('0x1d4a')][_0x2810('0x543')];_0x27f171++){_0x3a29a7[_0x2810('0x15aa')]({'title':_0x468992[_0x2810('0x1e07')][_0x2810('0x1d4a')][_0x27f171][_0x2810('0x1810')],'msg':_0x468992[_0x2810('0x1e07')][_0x2810('0x1d4a')][_0x27f171][_0x2810('0x67f')]});}}else _0x3a29a7[_0x2810('0x15aa')]({'title':_0x468992['status']?_0x2810('0x137')+_0x468992['status']+_0x2810('0x160c')+_0x468992[_0x2810('0x2696')]:_0x2810('0x1ded'),'msg':_0x468992['data']?JSON[_0x2810('0x100b')](_0x468992[_0x2810('0x1e07')][_0x2810('0x67f')]):_0x468992[_0x2810('0x1b75')]()});});}function _0x470629(_0x4c5318){const _0x4136d3=_0x567619;_0x52125b['errors']=[];const _0x273664=_0x23f7da[_0x4136d3('0x1d02')]()[_0x4136d3('0x20d6')](_0x4136d3('0x8ef'))['content'](_0x4136d3('0x27bb'))[_0x4136d3('0x217')]('Delete\x20OpenchannelAccount')['ok'](_0x4136d3('0x2373'))[_0x4136d3('0x1e1f')]('Cancel')['targetEvent'](_0x4c5318);_0x23f7da[_0x4136d3('0x1cb7')](_0x273664)[_0x4136d3('0x173b')](function(){const _0x49f7a6=_0x4136d3;_0x474e67[_0x49f7a6('0x13f1')][_0x49f7a6('0x15e8')]({'id':_0x52125b[_0x49f7a6('0x13f1')]['id']})[_0x49f7a6('0x1964')][_0x49f7a6('0x173b')](function(){const _0x287a2b=_0x49f7a6;_0x3c8d8a()[_0x287a2b('0x1a8b')](_0x52125b[_0x287a2b('0x1a65')],{'id':_0x52125b[_0x287a2b('0x13f1')]['id']}),_0x3a29a7[_0x287a2b('0xdfe')]({'title':_0x287a2b('0x6ca'),'msg':(_0x52125b['openchannelAccount'][_0x287a2b('0x10ad')]||_0x287a2b('0x13f1'))+'\x20has\x20been\x20deleted!'}),_0x1187d2(_0x52125b[_0x287a2b('0x13f1')]);})[_0x49f7a6('0x103c')](function(_0x571c32){const _0x410174=_0x49f7a6;if(_0x571c32[_0x410174('0x1e07')]&&_0x571c32[_0x410174('0x1e07')][_0x410174('0x1d4a')]&&_0x571c32[_0x410174('0x1e07')]['errors']['length']){_0x52125b[_0x410174('0x1d4a')]=_0x571c32[_0x410174('0x1e07')][_0x410174('0x1d4a')]||[{'message':_0x571c32[_0x410174('0x1b75')](),'type':_0x410174('0x50d')}];for(let _0x515ace=0x0;_0x515ace<_0x571c32[_0x410174('0x1e07')][_0x410174('0x1d4a')][_0x410174('0x543')];_0x515ace++){_0x3a29a7[_0x410174('0x15aa')]({'title':_0x571c32['data']['errors'][_0x515ace][_0x410174('0x1810')],'msg':_0x571c32[_0x410174('0x1e07')][_0x410174('0x1d4a')][_0x515ace][_0x410174('0x67f')]});}}else _0x3a29a7[_0x410174('0x15aa')]({'title':_0x571c32[_0x410174('0x276f')]?_0x410174('0x137')+_0x571c32[_0x410174('0x276f')]+'\x20-\x20'+_0x571c32[_0x410174('0x2696')]:_0x410174('0x50d'),'msg':_0x571c32['data']?JSON[_0x410174('0x100b')](_0x571c32[_0x410174('0x1e07')]['message']):_0x571c32['message']||_0x571c32[_0x410174('0x1b75')]()});});},function(){});}function _0x411f14(_0x1b8c8d){return _0x1b8c8d===null?undefined:new Date(_0x1b8c8d);}function _0x1187d2(_0x10d71d){const _0x130fff=_0x567619;_0x23f7da[_0x130fff('0x1cf4')](_0x10d71d);}}const _0x5ac022=_0x55a85c,_0x313dfe=_0x21a6a1['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog.html',_0x3b5569=_0x21a6a1['p']+_0x566993('0x24f7'),_0x2d8c2a=_0x21a6a1['p']+_0x566993('0x1c1c'),_0x4cfbdd=_0x21a6a1['p']+_0x566993('0x2342'),_0x37dbae=_0x21a6a1['p']+_0x566993('0x1c3a'),_0x2b7a85=_0x21a6a1['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog.html',_0x52e6ed=_0x21a6a1['p']+_0x566993('0x2591'),_0x2f64a3=_0x21a6a1['p']+_0x566993('0x1bad'),_0x2c8648=_0x21a6a1['p']+_0x566993('0x216e'),_0x50876f=_0x21a6a1['p']+_0x566993('0x15e');_0x958984[_0x566993('0x17bb')]=[_0x566993('0xbd4'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'toasty',_0x566993('0x1600')];const _0x4af045={'agent':_0x313dfe,'autoreply':_0x3b5569,'close':_0x2d8c2a,'gotoif':_0x4cfbdd,'gotop':_0x37dbae,'interval':_0x2b7a85,'noop':_0x52e6ed,'queue':_0x2f64a3,'system':_0x2c8648,'tag':_0x50876f};function _0x958984(_0x160254,_0x7b4eb4,_0x8e6d7c,_0x3b98ed,_0x1af4b0){const _0x513b3f=_0x566993,_0x1005ac=this;_0x1005ac[_0x513b3f('0x155f')]=_0x1af4b0[_0x513b3f('0x14d4')](),_0x1005ac['openchannelAccount']={},_0x1005ac[_0x513b3f('0x2b2')]={'count':0x0,'rows':[]},_0x1005ac[_0x513b3f('0x1bbb')]=[],_0x1005ac[_0x513b3f('0x1dc1')],_0x1005ac[_0x513b3f('0xc49')]={'sort':_0x513b3f('0xb3')},_0x1005ac[_0x513b3f('0x5cb')]=_0x3c8d8a()[_0x513b3f('0x12a4')](_0x3c8d8a()['sortBy']([{'app':_0x513b3f('0x1601'),'appType':_0x513b3f('0x1601'),'type':_0x513b3f('0x1601'),'icon':_0x513b3f('0x108b'),'interval':_0x513b3f('0x17c5'),'isApp':!![],'fields':[{'title':_0x513b3f('0x1e9b'),'name':_0x513b3f('0x237a'),'type':_0x513b3f('0x86e'),'required':!![],'param':0x0},{'title':_0x513b3f('0x604'),'name':'language','type':'select','defaultValue':_0x513b3f('0x910'),'values':[{'option':_0x513b3f('0xac'),'value':_0x513b3f('0x2386')},{'option':'English','value':'\x27en\x27'},{'option':_0x513b3f('0x12d4'),'value':_0x513b3f('0x5ac')},{'option':_0x513b3f('0x24e4'),'value':_0x513b3f('0xf39')},{'option':_0x513b3f('0x30b'),'value':_0x513b3f('0x1c86')},{'option':_0x513b3f('0xcdd'),'value':_0x513b3f('0x2293')},{'option':_0x513b3f('0x10e2'),'value':_0x513b3f('0x1c9d')},{'option':'Japanese','value':_0x513b3f('0xa78')},{'option':_0x513b3f('0xd6d'),'value':_0x513b3f('0x176b')},{'option':'Dutch','value':_0x513b3f('0x1855')},{'option':_0x513b3f('0x1930'),'value':'\x27no\x27'},{'option':_0x513b3f('0x128c'),'value':_0x513b3f('0x6db')},{'option':_0x513b3f('0x1827'),'value':_0x513b3f('0xfc7')},{'option':_0x513b3f('0x1992'),'value':_0x513b3f('0x2332')},{'option':'Swedish','value':_0x513b3f('0x804')},{'option':_0x513b3f('0x1320'),'value':_0x513b3f('0x966')},{'option':_0x513b3f('0x302'),'value':_0x513b3f('0x14ab')},{'option':'Chinese\x20(Simplified)','value':_0x513b3f('0x1f97')},{'option':_0x513b3f('0xc9'),'value':_0x513b3f('0x2218')},{'option':'Chinese\x20(Traditional)','value':_0x513b3f('0x1e6')}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0x513b3f('0x1a7'),'type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x513b3f('0x1680'),'appType':_0x513b3f('0x1680'),'type':'amazonlex','icon':_0x513b3f('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'accesskeyid','name':_0x513b3f('0x2e0'),'type':'text','required':!![],'param':0x0},{'title':_0x513b3f('0x1d93'),'name':_0x513b3f('0x1d93'),'type':_0x513b3f('0x86e'),'required':!![],'param':0x1},{'title':_0x513b3f('0x10fc'),'name':_0x513b3f('0x10fc'),'type':_0x513b3f('0xc65'),'defaultValue':'\x27us-east-1\x27','values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x513b3f('0x1ee4')},{'option':_0x513b3f('0x2429'),'value':'\x27us-west-2\x27'},{'option':_0x513b3f('0x1d48'),'value':_0x513b3f('0x68e')},{'option':_0x513b3f('0x146a'),'value':_0x513b3f('0xd64')}],'required':!![],'param':0x2},{'title':_0x513b3f('0x53'),'name':'botname','type':_0x513b3f('0x86e'),'required':!![],'param':0x3},{'title':'welcomemessage','name':'welcomemessage','type':_0x513b3f('0x5de'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':_0x513b3f('0x1d55'),'appType':'interval','types':[_0x513b3f('0x17b3'),'custom',_0x513b3f('0x3e3')],'fields':[],'isApp':![]},{'app':_0x513b3f('0x1086'),'appType':_0x513b3f('0x1086'),'type':_0x513b3f('0x1086'),'icon':_0x513b3f('0x108b'),'interval':_0x513b3f('0x17c5'),'required':!![],'isApp':!![],'fields':[{'title':_0x513b3f('0x1997'),'name':'value','type':_0x513b3f('0x86e'),'param':0x0}]},{'app':_0x513b3f('0x1ed'),'appType':'system','type':_0x513b3f('0x1ed'),'icon':_0x513b3f('0x108b'),'interval':_0x513b3f('0x17c5'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x513b3f('0x2715'),'field':{'name':_0x513b3f('0x1b56'),'key':_0x513b3f('0x10ad')},'route':_0x513b3f('0x1b56'),'filters':{'fields':_0x513b3f('0xd52'),'sort':_0x513b3f('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x513b3f('0x1bfd'),'name':_0x513b3f('0xdc4'),'type':_0x513b3f('0x86e'),'required':!![],'param':0x0},{'title':_0x513b3f('0xae6'),'name':_0x513b3f('0x1b56'),'type':'apiselect','values':'variables','value':_0x513b3f('0x1fd4'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x513b3f('0x2187')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x513b3f('0x2ac'),'appType':'gotop','type':_0x513b3f('0x2016'),'icon':_0x513b3f('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x513b3f('0x1162'),'name':_0x513b3f('0xb3'),'type':_0x513b3f('0x1d81'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x513b3f('0xf5d'),'appType':'gotoif','type':_0x513b3f('0xf5d'),'icon':_0x513b3f('0x108b'),'interval':_0x513b3f('0x17c5'),'isApp':!![],'fields':[{'title':_0x513b3f('0x5f4'),'name':_0x513b3f('0x1adb'),'type':'text','required':!![],'param':0x0},{'title':_0x513b3f('0x1cd7'),'name':_0x513b3f('0x1cd7'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x513b3f('0x1ec9'),'name':'falsepriority','type':_0x513b3f('0x1d81'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x513b3f('0x172'),'appType':_0x513b3f('0x172'),'foreignKey':'OpenchannelQueueId','type':_0x513b3f('0x172'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'queues','field':{'name':_0x513b3f('0x172'),'key':_0x513b3f('0x10ad')},'route':_0x513b3f('0x1611'),'filters':{'fields':_0x513b3f('0x1c66'),'sort':_0x513b3f('0x10ad'),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':'Queue','name':_0x513b3f('0x172'),'type':_0x513b3f('0x23fd'),'values':_0x513b3f('0xeae'),'value':_0x513b3f('0x26db'),'option':_0x513b3f('0x26db'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x513b3f('0x1b9a'),'name':_0x513b3f('0x1f84'),'type':_0x513b3f('0x1d81'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x513b3f('0x7b0'),'appType':_0x513b3f('0x7b0'),'type':'agent','foreignKey':_0x513b3f('0x181c'),'icon':_0x513b3f('0x108b'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x513b3f('0x11fa'),'field':{'name':_0x513b3f('0x7b0'),'key':_0x513b3f('0x10ad')},'route':_0x513b3f('0x166f'),'filters':{'fields':_0x513b3f('0xd52'),'sort':_0x513b3f('0x10ad'),'role':'agent','nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x513b3f('0x1547'),'name':_0x513b3f('0x7b0'),'type':_0x513b3f('0x23fd'),'values':'agents','value':_0x513b3f('0x660'),'option':_0x513b3f('0x660'),'required':!![],'param':0x0},{'title':_0x513b3f('0x1b9a'),'name':_0x513b3f('0x1f84'),'type':_0x513b3f('0x1d81'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x513b3f('0x23fe'),'appType':_0x513b3f('0x23fe'),'type':_0x513b3f('0x23fe'),'icon':_0x513b3f('0x108b'),'interval':_0x513b3f('0x17c5'),'isApp':!![],'fields':[{'title':'times','name':'times','type':_0x513b3f('0xc65'),'defaultValue':'1','values':[{'option':_0x513b3f('0x1f24'),'value':'1'},{'option':_0x513b3f('0x2322'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x513b3f('0x381'),'name':_0x513b3f('0x86e'),'type':_0x513b3f('0x5de'),'required':!![],'param':0x1}]},{'app':_0x513b3f('0x2151'),'appType':'close','type':'close','icon':_0x513b3f('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x513b3f('0x2ab'),'name':_0x513b3f('0x2766'),'type':_0x513b3f('0x86e'),'required':!![],'param':0x0}]},{'app':_0x513b3f('0x23b4'),'appType':_0x513b3f('0x23b4'),'type':_0x513b3f('0x23b4'),'foreignKey':'TagId','icon':_0x513b3f('0x108b'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x513b3f('0x23b4'),'key':'name'},'route':_0x513b3f('0x23b4'),'filters':{'fields':_0x513b3f('0xd52'),'sort':_0x513b3f('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x513b3f('0x460'),'name':'tag','type':_0x513b3f('0x23fd'),'values':_0x513b3f('0x22ac'),'value':'tag.name','option':_0x513b3f('0x2648'),'required':!![],'param':0x0}]}],[_0x513b3f('0x17e')]),{'isApp':![]}),_0x1005ac[_0x513b3f('0x3e3')]={'group':{'name':_0x513b3f('0x1749'),'pull':_0x513b3f('0x979')},'animation':0x64,'sort':![]},_0x1005ac[_0x513b3f('0x1f7e')]={'group':{'name':'opt2','put':_0x513b3f('0x1749')},'animation':0x64,'onAdd':function(_0x464f2d){const _0x4c0d23=_0x513b3f;_0x375805(_0x464f2d,_0x464f2d[_0x4c0d23('0x1c1b')]);},'onSort':function(){_0x23de7d();}},_0x1005ac[_0x513b3f('0xb9c')]=_0x32bcb4,_0x1005ac[_0x513b3f('0x2051')]=_0x1bec66,_0x1005ac['getOpenchannelAccountApps']=_0x149ea7,_0x1005ac[_0x513b3f('0x279e')]=_0x375805,_0x1005ac[_0x513b3f('0xc28')]=_0x17e2f8,_0x1005ac['deleteOpenchannelAccountApp']=_0x16eccd,_0x1005ac['deleteSelectedOpenchannelAccountApps']=_0xead4fb,_0x1005ac[_0x513b3f('0x131f')]=_0x23de7d,_0x1005ac[_0x513b3f('0xf77')]=_0x32ca9a;function _0x32bcb4(_0x29ed87,_0x256ca8){const _0x256e34=_0x513b3f;_0x1005ac[_0x256e34('0x13f1')]=_0x29ed87,_0x1005ac[_0x256e34('0x1dc1')]=typeof _0x256ca8!==_0x256e34('0x6e5')?_0x256ca8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1005ac[_0x256e34('0x1f7e')][_0x256e34('0x6fc')]=!_0x1005ac[_0x256e34('0x1dc1')][_0x256e34('0x1f3d')]?!![]:![],_0x1005ac['query']['id']=_0x29ed87['id'],_0x1005ac[_0x256e34('0xc49')][_0x256e34('0xbb6')]=!![],_0x1005ac[_0x256e34('0xc49')]['nolimit']=!![],_0x1005ac[_0x256e34('0x4fd')](),_0x1005ac[_0x256e34('0xf77')]();}function _0x1bec66(_0x43455c,_0x415e2d,_0xb5922){const _0x1973c1=_0x513b3f,_0xfe81aa=_0x7b4eb4[_0x1973c1('0x1d02')]()[_0x1973c1('0x20d6')](_0x1973c1('0xbac'))[_0x1973c1('0xf8b')](_0x1973c1('0x15b9')+_0x43455c[_0x1973c1('0x17e')]+''+_0x1973c1('0xd23'))[_0x1973c1('0x217')](_0x1973c1('0x499'))[_0x1973c1('0x21de')](_0xb5922)['ok']('OK')[_0x1973c1('0x1e1f')](_0x1973c1('0x468'));_0x7b4eb4[_0x1973c1('0x1cb7')](_0xfe81aa)[_0x1973c1('0x173b')](function(){const _0x37d567=_0x1973c1;_0x1005ac[_0x37d567('0x2b2')][_0x37d567('0x6aa')][_0x37d567('0x553')](_0x415e2d,0x1),_0x23de7d();},function(){const _0x1c3739=_0x1973c1;console[_0x1c3739('0xe37')](_0x1c3739('0x468'));});}function _0x375805(_0x46466d,_0xc06b77){const _0x9edf53=_0x513b3f;if(_0x1005ac[_0x9edf53('0x2b2')][_0x9edf53('0x6aa')][_0x9edf53('0x543')]){const _0x21bd55=_0x1005ac[_0x9edf53('0x2b2')][_0x9edf53('0x6aa')][_0xc06b77]?_0x1005ac[_0x9edf53('0x2b2')]['rows'][_0xc06b77]:_0x1005ac[_0x9edf53('0x2b2')][_0x9edf53('0x6aa')][0x0],_0xaf7347=(_0x21bd55[_0x9edf53('0x9d7')]||_0x21bd55[_0x9edf53('0x17e')])[_0x9edf53('0x1e68')]();_0x7b4eb4[_0x9edf53('0x1cb7')]({'controller':_0x9edf53('0x19ad')+_0xaf7347+_0x9edf53('0x1c96'),'controllerAs':'vm','templateUrl':_0x4af045[_0xaf7347],'parent':angular['element'](_0x8e6d7c[_0x9edf53('0x1a5')]),'targetEvent':_0x46466d,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x21bd55,'openchannelAccount':_0x1005ac[_0x9edf53('0x13f1')],'crudPermissions':_0x1005ac[_0x9edf53('0x1dc1')]}})['then'](function(_0x2f76c2){const _0x4a31f4=_0x9edf53;_0x2f76c2&&(_0x2f76c2['id']?_0x1005ac[_0x4a31f4('0x2b2')][_0x4a31f4('0x6aa')][_0xc06b77]=_0x2f76c2:_0x1005ac['openchannelAccountApps'][_0x4a31f4('0x6aa')][_0x4a31f4('0x553')](_0xc06b77,0x0,_0x2f76c2),_0x23de7d());})[_0x9edf53('0x103c')](function(_0x467aec){const _0x219f8e=_0x9edf53;_0x467aec&&_0x3b98ed[_0x219f8e('0x15aa')]({'title':_0x467aec[_0x219f8e('0x276f')]?'API:'+_0x467aec['status']+_0x219f8e('0x160c')+_0x467aec[_0x219f8e('0x2696')]:'SYSTEM:EDITMODALSHOW','msg':_0x467aec[_0x219f8e('0x1e07')]?JSON[_0x219f8e('0x100b')](_0x467aec[_0x219f8e('0x1e07')]):_0x467aec[_0x219f8e('0x1b75')]()});});}}function _0x17e2f8(_0x5f4122,_0x48e943){const _0x1bcb29=_0x513b3f;if(_0x1005ac[_0x1bcb29('0x2b2')][_0x1bcb29('0x6aa')][_0x1bcb29('0x543')]){const _0xf849ac=_0x1005ac[_0x1bcb29('0x2b2')][_0x1bcb29('0x6aa')][_0x48e943]?_0x1005ac['openchannelAccountApps'][_0x1bcb29('0x6aa')][_0x48e943]:_0x1005ac[_0x1bcb29('0x2b2')]['rows'][0x0];_0x7b4eb4[_0x1bcb29('0x1cb7')]({'controller':_0x1bcb29('0x2269'),'controllerAs':'vm','templateUrl':_0x2b7a85,'parent':angular[_0x1bcb29('0xb6d')](_0x8e6d7c[_0x1bcb29('0x1a5')]),'targetEvent':_0x5f4122,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xf849ac[_0x1bcb29('0x55a')],'IntervalId':_0xf849ac[_0x1bcb29('0x600')],'application':!![]},'intervals':[],'crudPermissions':_0x1005ac[_0x1bcb29('0x1dc1')]}})[_0x1bcb29('0x173b')](function(_0x3f71c8){const _0x1ca1ba=_0x1bcb29;_0x3f71c8&&(_0xf849ac[_0x1ca1ba('0x55a')]=_0x3f71c8['interval']||'*,*,*,*',_0xf849ac[_0x1ca1ba('0x600')]=_0x3f71c8[_0x1ca1ba('0x600')]||null,_0x23de7d());});}}function _0x23de7d(){const _0x1f747a=_0x513b3f;let _0x5b5b94=0x1,_0x46add8=[];for(let _0x5b490a=0x0;_0x5b490a<_0x1005ac[_0x1f747a('0x2b2')][_0x1f747a('0x6aa')][_0x1f747a('0x543')];_0x5b490a++){const _0x482980=_0x1005ac['openchannelAccountApps'][_0x1f747a('0x6aa')][_0x5b490a],_0x4e4a83=[],_0x9f49b8=[];_0x482980['intervals']=_0x482980[_0x1f747a('0x55a')]!==_0x1f747a('0x17c5')?[_0x482980[_0x1f747a('0x55a')]]:_0x482980['IntervalId']?_0x3c8d8a()[_0x1f747a('0x8a2')](_0x3c8d8a()[_0x1f747a('0x278d')](_0x1005ac[_0x1f747a('0x21c4')]['rows'],{'IntervalId':_0x482980[_0x1f747a('0x600')]}),'interval'):[],_0x482980[_0x1f747a('0x2b9')]=_0x1005ac[_0x1f747a('0x13f1')]['context'],_0x482980[_0x1f747a('0x1a60')]=_0x1005ac[_0x1f747a('0x13f1')]['exten'],_0x482980[_0x1f747a('0x1810')]&&(_0x482980[_0x1f747a('0x1810')]=_0x482980[_0x1f747a('0x1810')][_0x1f747a('0x1e68')]()),_0x482980[_0x1f747a('0xb3')]=_0x4e4a83[_0x1f747a('0x543')]?_0x3c8d8a()['last'](_0x4e4a83)['priority']+0x1:_0x5b5b94,_0x5b5b94=(_0x9f49b8[_0x1f747a('0x543')]?_0x3c8d8a()[_0x1f747a('0x7f')](_0x9f49b8)['priority']:_0x482980['priority'])+0x1,_0x46add8=_0x3c8d8a()[_0x1f747a('0x163f')](_0x46add8,_0x4e4a83,[_0x482980],_0x9f49b8);}_0x160254[_0x1f747a('0x13f1')]['addApplications']({'id':_0x1005ac[_0x1f747a('0x13f1')]['id']},_0x3c8d8a()[_0x1f747a('0x1b45')](_0x46add8,_0x1f747a('0xb3')))[_0x1f747a('0x1964')][_0x1f747a('0x173b')](function(_0x3eb721){const _0x53508c=_0x1f747a;_0x1005ac[_0x53508c('0x2b2')][_0x53508c('0x6aa')]=_0x3eb721[_0x53508c('0x6aa')];})['catch'](function(_0x134f26){const _0x56be8c=_0x1f747a;console[_0x56be8c('0x15aa')](_0x134f26);});}function _0xbfc67b(_0x2f98e6){_0x1005ac['openchannelAccountApps']=_0x2f98e6||{'count':0x0,'rows':[]};}function _0x32ca9a(){const _0xea046a=_0x513b3f;return _0x160254[_0xea046a('0x55a')][_0xea046a('0x1d97')]({'fields':_0xea046a('0x23e4')})[_0xea046a('0x1964')]['then'](function(_0x4c794b){const _0x141995=_0xea046a;_0x1005ac[_0x141995('0x21c4')]=_0x4c794b;})[_0xea046a('0x103c')](function(_0x40aaf4){const _0x45082f=_0xea046a;console[_0x45082f('0x15aa')](_0x40aaf4);});}function _0x149ea7(){const _0x433365=_0x513b3f;_0x1005ac[_0x433365('0x2219')]=_0x160254['openchannelAccount'][_0x433365('0xb')](_0x1005ac[_0x433365('0xc49')],_0xbfc67b)['$promise'];}function _0x16eccd(_0x75f5d1){const _0x27c1dc=_0x513b3f;_0x3c8d8a()[_0x27c1dc('0x1a8b')](_0x1005ac[_0x27c1dc('0x2b2')]['rows'],{'id':_0x75f5d1['id']}),_0x23de7d(),_0x3b98ed[_0x27c1dc('0xdfe')]({'title':_0x27c1dc('0x236d'),'msg':_0x75f5d1[_0x27c1dc('0x17e')]?_0x75f5d1[_0x27c1dc('0x17e')]+_0x27c1dc('0x25d2'):''});}function _0xead4fb(_0x42388f){const _0x3c123f=_0x513b3f,_0x3868e2=_0x7b4eb4[_0x3c123f('0x1d02')]()['title'](_0x3c123f('0x8a0'))['htmlContent'](''+_0x1005ac['selectedOpenchannelAccountApps'][_0x3c123f('0x543')]+'\x20selected'+_0x3c123f('0xd23'))[_0x3c123f('0x217')](_0x3c123f('0x296'))[_0x3c123f('0x21de')](_0x42388f)['ok']('OK')[_0x3c123f('0x1e1f')]('CANCEL');_0x7b4eb4[_0x3c123f('0x1cb7')](_0x3868e2)[_0x3c123f('0x173b')](function(){const _0x35e212=_0x3c123f;_0x1005ac['selectedOpenchannelAccountApps']['forEach'](function(_0xfe7a9){const _0x2c6cec=a0_0xde5e;_0x3c8d8a()[_0x2c6cec('0x1a8b')](_0x1005ac['openchannelAccountApps'][_0x2c6cec('0x6aa')],{'id':_0xfe7a9['id']});}),_0x1005ac[_0x35e212('0x1bbb')]=[],_0x23de7d();});}}const _0x25f66f=_0x958984;_0x5d0bf6['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),'openchannelAccount',_0x566993('0x1a65'),_0x566993('0x12a7'),_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x5d0bf6(_0x1e6b3,_0x1221c4,_0x3aced1,_0x266c3a,_0x3f27fa,_0x489c98,_0x17d02d,_0x455bc1,_0x5b5eb4,_0x4ee432){const _0x182059=_0x566993,_0x4bc3c9=this;_0x4bc3c9['currentUser']=_0x5b5eb4[_0x182059('0x14d4')](),_0x4bc3c9[_0x182059('0x13f1')]=_0x3f27fa,_0x4bc3c9[_0x182059('0x1dc1')]=_0x4ee432,_0x4bc3c9[_0x182059('0x12a7')]=_0x17d02d,_0x4bc3c9['items']=[],_0x4bc3c9['allowedItems']=[],_0x4bc3c9[_0x182059('0x5f8')]=[],_0x4bc3c9['startingAllowedItems']=[],_0x4bc3c9[_0x182059('0x15c9')]=[],_0x4bc3c9[_0x182059('0x277e')]=![],_0x4bc3c9[_0x182059('0x2535')]=_0x558a1,_0x4bc3c9[_0x182059('0x21dc')]=_0x40699e,_0x4bc3c9[_0x182059('0x18e2')]=_0x4e2286,_0x4bc3c9[_0x182059('0x52e')]={'readOnly':!_0x4bc3c9[_0x182059('0x1dc1')][_0x182059('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x182059('0x572'),'line2':['name',_0x182059('0x138c')],'line3':'','labelAll':_0x455bc1[_0x182059('0x1467')]('OPENCHANNEL.ALL_AGENTS'),'labelSelected':_0x455bc1[_0x182059('0x1467')](_0x182059('0x344')),'transferCallback':function(){const _0x29872c=_0x182059,_0x5c97f8=_0x3c8d8a()[_0x29872c('0x226b')](_0x4bc3c9[_0x29872c('0x15c9')],_0x4bc3c9['selectedItems'],'id');_0x4bc3c9[_0x29872c('0x277e')]=_0x3c8d8a()[_0x29872c('0x1a56')](_0x5c97f8)?![]:!![];}};function _0x558a1(){const _0x303cae=_0x182059;return _0x5b5eb4[_0x303cae('0x1b4e')](_0x303cae('0x79b'))?_0x58d17c()[_0x303cae('0x103c')](function(_0x50c814){const _0x4bdc1b=_0x303cae;_0x3aced1[_0x4bdc1b('0x15aa')]({'title':_0x50c814[_0x4bdc1b('0x276f')]?_0x4bdc1b('0x137')+_0x50c814[_0x4bdc1b('0x276f')]+'\x20-\x20'+_0x50c814[_0x4bdc1b('0x2696')]:_0x4bdc1b('0x152b'),'msg':_0x50c814[_0x4bdc1b('0x276f')]?JSON[_0x4bdc1b('0x100b')](_0x50c814[_0x4bdc1b('0x1e07')]):_0x50c814['toString']()});}):_0x37b8dc()[_0x303cae('0x173b')](function(_0x28941f){const _0x4d88fd=_0x303cae;return _0x4bc3c9[_0x4d88fd('0x17c9')]=_0x28941f,_0x58d17c();})['catch'](function(_0x1f038f){const _0x22daf0=_0x303cae;_0x3aced1[_0x22daf0('0x15aa')]({'title':_0x1f038f[_0x22daf0('0x276f')]?_0x22daf0('0x137')+_0x1f038f['status']+_0x22daf0('0x160c')+_0x1f038f[_0x22daf0('0x2696')]:'SYSTEM:GET_AGENTS','msg':_0x1f038f[_0x22daf0('0x276f')]?JSON['stringify'](_0x1f038f['data']):_0x1f038f['toString']()});});}function _0x37b8dc(){return _0x1221c4(function(_0x13034b,_0x27283c){const _0x395eae=a0_0xde5e;_0x266c3a['userProfileSection'][_0x395eae('0x1d97')]({'userProfileId':_0x4bc3c9[_0x395eae('0x155f')][_0x395eae('0x1946')],'name':'Agents'})['$promise'][_0x395eae('0x173b')](function(_0x3e9c67){const _0x54015f=_0x395eae,_0x193121=_0x3e9c67&&_0x3e9c67['rows']?_0x3e9c67[_0x54015f('0x6aa')][0x0]:null;_0x13034b(_0x193121);})['catch'](function(_0x17059e){_0x27283c(_0x17059e);});});}function _0x58d17c(){return _0x1221c4(function(_0x3bd7c2,_0x4581ca){const _0x3a5b32=a0_0xde5e;return _0x110468()[_0x3a5b32('0x173b')](function(_0x18936c){const _0x511e81=_0x3a5b32;return _0x4bc3c9[_0x511e81('0x1b1f')]=_0x18936c['rows']?_0x18936c[_0x511e81('0x6aa')]:[],_0x5b5eb4[_0x511e81('0x1b4e')]('admin')?_0x18936c:_0x4bc3c9[_0x511e81('0x17c9')]?_0x4bc3c9['section'][_0x511e81('0x273e')]?_0x18936c:_0x3b56ec():null;})['then'](function(_0x2b85b6){const _0x184870=_0x3a5b32,_0x4c11ab=_0x2b85b6&&_0x2b85b6[_0x184870('0x6aa')]?_0x2b85b6[_0x184870('0x6aa')]:[];return _0x4bc3c9[_0x184870('0x203e')]=_0x3c8d8a()[_0x184870('0x8a2')](_0x4c11ab,function(_0x3da9d2){const _0x1e77fa=_0x184870;return _0x3c8d8a()[_0x1e77fa('0x18ab')](_0x4bc3c9['items'],{'id':_0x5b5eb4[_0x1e77fa('0x1b4e')](_0x1e77fa('0x79b'))||_0x4bc3c9[_0x1e77fa('0x17c9')][_0x1e77fa('0x273e')]?_0x3da9d2['id']:_0x3da9d2['resourceId']});}),_0x4bc3c9[_0x184870('0x1493')]=angular[_0x184870('0x2e3')](_0x4bc3c9['allowedItems']),_0x4bc3c9[_0x184870('0x1b1f')][_0x184870('0xa6a')](function(_0x3c14b1){const _0x4cfde5=_0x184870,_0x112e71=_0x3c8d8a()['find'](_0x4bc3c9[_0x4cfde5('0x203e')],{'id':_0x3c14b1['id']});_0x5b5eb4[_0x4cfde5('0x1b4e')](_0x4cfde5('0x79b'))?_0x3c14b1[_0x4cfde5('0xf02')]=!![]:_0x3c14b1['isValid']=typeof _0x112e71!==_0x4cfde5('0x6e5')?!![]:![];}),_0x3318ec();})[_0x3a5b32('0x173b')](function(_0x174588){const _0x4bbd11=_0x3a5b32,_0x163ce0=_0x174588&&_0x174588[_0x4bbd11('0x6aa')]?_0x174588[_0x4bbd11('0x6aa')]:[];_0x4bc3c9[_0x4bbd11('0x5f8')]=_0x3c8d8a()[_0x4bbd11('0x8a2')](_0x163ce0,function(_0x5b95fa){const _0x2b53e5=_0x4bbd11,_0x37f465=_0x3c8d8a()[_0x2b53e5('0x18ab')](_0x4bc3c9['items'],{'id':_0x5b95fa['id']});return _0x37f465[_0x2b53e5('0x1692')]=_0x5b95fa[_0x2b53e5('0x1db4')]?'penalty\x20'+_0x5b95fa[_0x2b53e5('0x1db4')]['penalty']:'',_0x37f465[_0x2b53e5('0x138c')]=typeof _0x5b95fa[_0x2b53e5('0x138c')]!=='undefined'?'<'+_0x5b95fa['internal']+'>':'',_0x37f465;}),_0x4bc3c9[_0x4bbd11('0x15c9')]=angular['copy'](_0x4bc3c9[_0x4bbd11('0x5f8')]),_0x4bc3c9[_0x4bbd11('0x52e')][_0x4bbd11('0x5f8')]=_0x4bc3c9['selectedItems'],_0x4bc3c9[_0x4bbd11('0x52e')][_0x4bbd11('0x1b1f')]=_0x3c8d8a()[_0x4bbd11('0x1bd3')](_0x4bc3c9[_0x4bbd11('0x203e')],_0x4bc3c9[_0x4bbd11('0x52e')][_0x4bbd11('0x5f8')],'id'),_0x3bd7c2();})['catch'](function(_0x4a9ebc){_0x4581ca(_0x4a9ebc);});});}function _0x3b56ec(){return _0x1221c4(function(_0xb2c9aa,_0x3d122a){const _0x2376bc=a0_0xde5e;return _0x266c3a['userProfileResource']['get']({'sectionId':_0x4bc3c9[_0x2376bc('0x17c9')]['id'],'nolimit':!![]})[_0x2376bc('0x1964')]['then'](function(_0x48977a){_0xb2c9aa(_0x48977a);})['catch'](function(_0x30e2e4){_0x3d122a(_0x30e2e4);});});}function _0x3318ec(){return _0x1221c4(function(_0x5df657,_0x24ebd6){const _0x3fac43=a0_0xde5e;return _0x266c3a[_0x3fac43('0x13f1')][_0x3fac43('0x1903')]({'id':_0x4bc3c9['openchannelAccount']['id'],'fields':_0x3fac43('0x1d65'),'nolimit':!![],'role':_0x3fac43('0x7b0')})[_0x3fac43('0x1964')][_0x3fac43('0x173b')](function(_0x4a0a4d){_0x5df657(_0x4a0a4d);})['catch'](function(_0x173bf6){_0x24ebd6(_0x173bf6);});});}function _0x110468(){return _0x1221c4(function(_0x136bff,_0x256351){const _0x331442=a0_0xde5e;return _0x266c3a[_0x331442('0x166f')]['get']({'fields':_0x331442('0x1d65'),'nolimit':!![],'role':_0x331442('0x7b0')})[_0x331442('0x1964')][_0x331442('0x173b')](function(_0x22a40f){_0x136bff(_0x22a40f);})[_0x331442('0x103c')](function(_0x33f84a){_0x256351(_0x33f84a);});});}function _0x270033(_0x5432a4){return _0x1221c4(function(_0x42788d,_0x39b833){const _0x238217=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x5432a4)?_0x42788d():_0x266c3a[_0x238217('0x13f1')][_0x238217('0x1ff1')]({'id':_0x4bc3c9[_0x238217('0x13f1')]['id'],'ids':_0x3c8d8a()[_0x238217('0x8a2')](_0x5432a4,'id')})[_0x238217('0x1964')][_0x238217('0x173b')](function(){_0x42788d();})[_0x238217('0x103c')](function(_0x2846c5){_0x39b833(_0x2846c5);});});}function _0x7d04a(_0x108db9){return _0x1221c4(function(_0x586e43,_0xec1433){const _0x15ddc0=a0_0xde5e;_0x3c8d8a()[_0x15ddc0('0x1a56')](_0x108db9)?_0x586e43():_0x266c3a[_0x15ddc0('0x13f1')][_0x15ddc0('0x2017')]({'id':_0x4bc3c9[_0x15ddc0('0x13f1')]['id'],'ids':_0x3c8d8a()[_0x15ddc0('0x8a2')](_0x108db9,'id')})[_0x15ddc0('0x1964')][_0x15ddc0('0x173b')](function(){_0x586e43();})['catch'](function(_0x44bb6b){_0xec1433(_0x44bb6b);});});}function _0x40699e(){const _0xc90c6b=_0x182059,_0x226fa8=_0x3c8d8a()[_0xc90c6b('0x1bd3')](_0x4bc3c9['startingSelectedItems'],_0x4bc3c9[_0xc90c6b('0x5f8')],'id'),_0x20d6d5=_0x3c8d8a()[_0xc90c6b('0x1bd3')](_0x4bc3c9[_0xc90c6b('0x5f8')],_0x4bc3c9[_0xc90c6b('0x15c9')],'id');return _0x7d04a(_0x226fa8)[_0xc90c6b('0x173b')](function(){return _0x270033(_0x20d6d5);})[_0xc90c6b('0x173b')](function(){const _0x4394f6=_0xc90c6b;_0x4bc3c9[_0x4394f6('0x277e')]=![],_0x4bc3c9[_0x4394f6('0x1493')]=angular[_0x4394f6('0x2e3')](_0x4bc3c9[_0x4394f6('0x203e')]),_0x4bc3c9['startingSelectedItems']=angular['copy'](_0x4bc3c9[_0x4394f6('0x5f8')]),_0x3aced1['success']({'title':_0x4394f6('0x23db'),'msg':_0x4394f6('0x2027')});})[_0xc90c6b('0x103c')](function(_0x964db1){const _0x10143b=_0xc90c6b;_0x3aced1['error']({'title':_0x964db1[_0x10143b('0x276f')]?_0x10143b('0x137')+_0x964db1[_0x10143b('0x276f')]+_0x10143b('0x160c')+_0x964db1[_0x10143b('0x2696')]:_0x10143b('0x1f48'),'msg':_0x964db1[_0x10143b('0x276f')]?JSON[_0x10143b('0x100b')](_0x964db1[_0x10143b('0x1e07')]):_0x964db1[_0x10143b('0x1b75')]()});});}function _0x4e2286(){const _0x400d17=_0x182059;_0x1e6b3[_0x400d17('0x1cf4')]();}}const _0x4519fc=_0x5d0bf6;_0x3a426f[_0x566993('0x17bb')]=['$mdDialog','$q','toasty','openchannelAccountApp',_0x566993('0x13f1'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x3a426f(_0x711fb,_0x4f761f,_0x3946c5,_0x403e30,_0x39e5e9,_0x93b939,_0x573563,_0x4663f9){const _0x129c73=_0x566993,_0xf9c1ab=this;_0xf9c1ab[_0x129c73('0x155f')]=_0x573563['getCurrentUser'](),_0xf9c1ab['errors']=[],_0xf9c1ab['title']='OPENCHANNEL.EDIT_'+(_0x403e30[_0x129c73('0x9d7')]||_0x403e30['app'])[_0x129c73('0x1164')](),_0xf9c1ab[_0x129c73('0x7b0')]=angular[_0x129c73('0x2e3')](_0x403e30),_0xf9c1ab[_0x129c73('0x1dc1')]=_0x4663f9,_0xf9c1ab['hasModulePermissions']={};if(_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x1c00')])switch(_0xf9c1ab['agent'][_0x129c73('0x9d7')]?_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x9d7')][_0x129c73('0x1e68')]():_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x17e')][_0x129c73('0x1e68')]()){case _0x129c73('0xbb4'):break;case'dialogflow':{const _0x4aa2d3=_0xf9c1ab['agent'][_0x129c73('0x1c00')][_0x129c73('0x43a')](',');_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x237a')]=_0x4aa2d3[0x0],_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x604')]=_0x4aa2d3[0x1],_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x1a7')]=_0x4aa2d3[_0x129c73('0x2456')](0x2,_0x4aa2d3[_0x129c73('0x543')])['join'](',');}break;case _0x129c73('0x1680'):{const _0x231dcc=_0xf9c1ab['agent']['appdata'][_0x129c73('0x43a')](',');_0xf9c1ab[_0x129c73('0x7b0')]['accesskeyid']=_0x231dcc[0x0],_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x1d93')]=_0x231dcc[0x1],_0xf9c1ab['agent']['lexregion']=_0x231dcc[0x2],_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x53')]=_0x231dcc[0x3],_0xf9c1ab['agent'][_0x129c73('0x1a7')]=_0x231dcc[_0x129c73('0x2456')](0x4,_0x231dcc['length'])['join'](',');}break;case'autoreply':{const _0x3dde5b=_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x1c00')][_0x129c73('0x43a')](',');_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x611')]=isNaN(_0x3dde5b[0x0])?_0x3dde5b[0x0]:parseInt(_0x3dde5b[0x0],0xa),_0xf9c1ab[_0x129c73('0x7b0')]['text']=_0x3dde5b['slice'](0x1,_0x3dde5b[_0x129c73('0x543')])[_0x129c73('0x2259')](',');}break;case _0x129c73('0x67f'):_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x86e')]=_0xf9c1ab['agent'][_0x129c73('0x1c00')];break;case _0x129c73('0x256d'):_0xf9c1ab['agent']['name']=_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x1c00')][_0x129c73('0x43a')]('=')[0x0],_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0xa7b')]=_0xf9c1ab['agent']['appdata'][_0x129c73('0x43a')]('=')[0x1];break;case _0x129c73('0x2426'):_0xf9c1ab['agent'][_0x129c73('0x220b')]=_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x1c00')];break;default:{const _0x4de121=_0xf9c1ab['agent']['appdata'][_0x129c73('0x43a')](',');_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x7b0')]=_0x3c8d8a()[_0x129c73('0x1a56')](_0x4de121[0x0])?_0x4de121[0x0]:isNaN(_0x4de121[0x0])?_0x4de121[0x0]:parseInt(_0x4de121[0x0],0xa),_0xf9c1ab[_0x129c73('0x7b0')]['timeout']=_0x3c8d8a()[_0x129c73('0x1a56')](_0x4de121[0x1])?_0x4de121[0x1]:isNaN(_0x4de121[0x1])?_0x4de121[0x1]:parseInt(_0x4de121[0x1],0xa);}break;}else _0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x1f84')]=0x1e;_0xf9c1ab[_0x129c73('0x7b0')][_0x129c73('0x1810')]&&_0xf9c1ab['agent']['type']['toLowerCase']()===_0x129c73('0xb33')&&_0xf9c1ab[_0x129c73('0x7b0')]['appType'][_0x129c73('0x1e68')]()==='outbounddial'&&(_0xf9c1ab['agent'][_0x129c73('0x23f7')]=_0xf9c1ab['agent'][_0x129c73('0xa04')]?_0xf9c1ab['agent']['phone'][_0x129c73('0x43a')]('$')[0x0]:undefined,_0xf9c1ab['agent'][_0x129c73('0x1961')]=_0xf9c1ab['agent']['callerID']?_0x129c73('0x20a8')+_0xf9c1ab['agent'][_0x129c73('0xe95')]:undefined);_0xf9c1ab[_0x129c73('0x11f5')]=_0x2ec040,_0xf9c1ab[_0x129c73('0x18e2')]=_0x59f773,_0x573563[_0x129c73('0x1b4e')](_0x129c73('0x79b'))?_0x93b939[_0x129c73('0x166f')][_0x129c73('0x1d97')]({'fields':_0x129c73('0xd52'),'sort':_0x129c73('0x10ad'),'role':'agent','nolimit':_0x129c73('0x799')})[_0x129c73('0x1964')][_0x129c73('0x173b')](function(_0x566f33){const _0x44f8ed=_0x129c73;_0xf9c1ab[_0x44f8ed('0x11fa')]=_0x566f33[_0x44f8ed('0x6aa')]||[];})[_0x129c73('0x103c')](function(_0x3b78a8){const _0x395b27=_0x129c73;_0x3946c5['error']({'title':_0x3b78a8[_0x395b27('0x276f')]?_0x395b27('0x137')+_0x3b78a8[_0x395b27('0x276f')]+_0x395b27('0x160c')+_0x3b78a8['statusText']:_0x395b27('0x152b'),'msg':_0x3b78a8[_0x395b27('0x1e07')]?JSON[_0x395b27('0x100b')](_0x3b78a8[_0x395b27('0x1e07')]):_0x3b78a8['toString']()});}):_0x93b939['user']['get']({'fields':'id,name','sort':_0x129c73('0x10ad'),'role':_0x129c73('0x7b0'),'nolimit':_0x129c73('0x799')})[_0x129c73('0x1964')]['then'](function(_0x3446ad){const _0x15aeaa=_0x129c73;_0xf9c1ab['agents']=_0x3446ad[_0x15aeaa('0x6aa')]||[];})['then'](function(){const _0x7abff4=_0x129c73;return _0x93b939[_0x7abff4('0x170e')][_0x7abff4('0x1d97')]({'userProfileId':_0xf9c1ab['currentUser'][_0x7abff4('0x1946')],'sectionId':0xca})[_0x7abff4('0x1964')];})[_0x129c73('0x173b')](function(_0x5e35cf){const _0xa4a863=_0x129c73,_0x1a279e=_0x5e35cf&&_0x5e35cf['rows']?_0x5e35cf[_0xa4a863('0x6aa')][0x0]:null;if(!_0x1a279e){const _0x189936=[];let _0x502eb1=null;_0xf9c1ab[_0xa4a863('0x7b0')]&&(_0x502eb1=_0x3c8d8a()[_0xa4a863('0x18ab')](_0xf9c1ab[_0xa4a863('0x11fa')],{'name':_0xf9c1ab[_0xa4a863('0x7b0')]['agent']}));for(let _0x51ca94=0x0;_0x51ca94<_0xf9c1ab[_0xa4a863('0x11fa')][_0xa4a863('0x543')];_0x51ca94++){_0x502eb1&&_0xf9c1ab[_0xa4a863('0x11fa')][_0x51ca94]['id']===_0x502eb1['id']&&(_0xf9c1ab[_0xa4a863('0x11fa')][_0x51ca94][_0xa4a863('0x268e')]=![],_0x189936[_0xa4a863('0x18bb')](_0xf9c1ab[_0xa4a863('0x11fa')][_0x51ca94]));}_0xf9c1ab[_0xa4a863('0x11fa')]=_0x189936;}else{if(!_0x1a279e[_0xa4a863('0x273e')])return _0x93b939[_0xa4a863('0xda9')][_0xa4a863('0x1d97')]({'sectionId':_0x1a279e['id']})[_0xa4a863('0x1964')][_0xa4a863('0x173b')](function(_0x1c8904){const _0x2b8b6a=_0xa4a863,_0x30c12e=_0x3c8d8a()[_0x2b8b6a('0x8a2')](_0x1c8904['rows'],function(_0x4486d0){const _0x29bb74=_0x2b8b6a;return _0x3c8d8a()['find'](_0xf9c1ab[_0x29bb74('0x11fa')],{'id':_0x4486d0[_0x29bb74('0x1ce0')]});});let _0xf5f72b=null;_0xf9c1ab['agent']&&(_0xf5f72b=_0x3c8d8a()[_0x2b8b6a('0x18ab')](_0xf9c1ab[_0x2b8b6a('0x11fa')],{'name':_0xf9c1ab[_0x2b8b6a('0x7b0')][_0x2b8b6a('0x7b0')]}));if(_0xf5f72b&&!_0x3c8d8a()['some'](_0x30c12e,['id',_0xf5f72b['id']])){const _0x3ec4eb=_0x3c8d8a()['find'](_0xf9c1ab[_0x2b8b6a('0x11fa')],{'id':_0xf5f72b['id']});_0x3ec4eb[_0x2b8b6a('0x268e')]=![],_0x30c12e[_0x2b8b6a('0x18bb')](_0x3ec4eb);}_0xf9c1ab[_0x2b8b6a('0x11fa')]=_0x30c12e;});}})[_0x129c73('0x103c')](function(_0x46d21a){const _0x26ade8=_0x129c73;_0x3946c5[_0x26ade8('0x15aa')]({'title':_0x46d21a['status']?'API:'+_0x46d21a['status']+_0x26ade8('0x160c')+_0x46d21a[_0x26ade8('0x2696')]:_0x26ade8('0xceb'),'msg':_0x46d21a[_0x26ade8('0x1e07')]?JSON[_0x26ade8('0x100b')](_0x46d21a[_0x26ade8('0x1e07')]):_0x46d21a[_0x26ade8('0x1b75')]()});});function _0x2ec040(){const _0x54946e=_0x129c73;_0xf9c1ab[_0x54946e('0x1d4a')]=[];const _0x442056=[];_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x1810')]&&_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x1810')]['toLowerCase']()===_0x54946e('0xb33')&&_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x9d7')]===_0x54946e('0x2150')&&(_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0xa04')]=_0x39e5e9[_0x54946e('0x1429')]?(_0xf9c1ab[_0x54946e('0x7b0')]['prefix']||'')+_0x54946e('0x1957')+_0x39e5e9[_0x54946e('0x1429')]+'}':(_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x23f7')]||'')+_0x54946e('0x1dc5'),_0x39e5e9[_0x54946e('0x76c')]!==_0x54946e('0x2741')?_0xf9c1ab[_0x54946e('0x7b0')]['options'][_0x54946e('0x2087')](_0x54946e('0x2474'))<0x0&&(_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x2010')]+=_0x54946e('0x2474')):_0xf9c1ab[_0x54946e('0x7b0')]['options']=_0xf9c1ab['agent'][_0x54946e('0x2010')]['replace'](_0x54946e('0x2474'),''));const _0x24ec76=_0x3c8d8a()[_0x54946e('0x18ab')](_0xf9c1ab[_0x54946e('0x11fa')],{'name':_0xf9c1ab[_0x54946e('0x7b0')]['agent']});_0x24ec76&&(_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x181c')]=_0x24ec76['id']);if(_0xf9c1ab[_0x54946e('0x7b0')]['appType']&&_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x9d7')]==='custom'){}else switch((_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x17e')]||_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x9d7')])[_0x54946e('0x1e68')]()){case'set':_0xf9c1ab[_0x54946e('0x7b0')][_0x54946e('0x1c00')]=_0xf9c1ab['agent'][_0x54946e('0x10ad')]+'='+_0xf9c1ab[_0x54946e('0x7b0')]['value'];break;case _0x54946e('0xbb4'):break;default:_0x442056[0x0]=_0xf9c1ab['agent'][_0x54946e('0x7b0')],_0x442056[0x1]=_0xf9c1ab[_0x54946e('0x7b0')]['timeout'],_0xf9c1ab['agent']['appdata']=_0x442056[_0x54946e('0x2259')](',');}_0x59f773(_0xf9c1ab[_0x54946e('0x7b0')]);}function _0x59f773(_0x1866a5){_0x711fb['hide'](_0x1866a5);}}const _0x45511d=_0x3a426f;_0x53154b['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x201a'),'openchannelAccount',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x53154b(_0x51b12b,_0x566119,_0x15b122,_0x48cc2f,_0x122742,_0x48c241,_0x1f0fc6,_0x34e64d){const _0x5eaa2e=_0x566993,_0x52953f=this;_0x52953f['currentUser']=_0x1f0fc6[_0x5eaa2e('0x14d4')](),_0x52953f['errors']=[],_0x52953f[_0x5eaa2e('0x20d6')]=_0x5eaa2e('0x16c7')+(_0x48cc2f[_0x5eaa2e('0x9d7')]||_0x48cc2f['app'])[_0x5eaa2e('0x1164')](),_0x52953f[_0x5eaa2e('0x1680')]=angular[_0x5eaa2e('0x2e3')](_0x48cc2f),_0x52953f[_0x5eaa2e('0x1dc1')]=_0x34e64d,_0x52953f['hasModulePermissions']={};if(_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1c00')])switch(_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x9d7')]?_0x52953f['amazonlex'][_0x5eaa2e('0x9d7')][_0x5eaa2e('0x1e68')]():_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x17e')][_0x5eaa2e('0x1e68')]()){case _0x5eaa2e('0xbb4'):break;case'dialogflow':{const _0x320149=_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1c00')][_0x5eaa2e('0x43a')](',');_0x52953f['amazonlex']['key']=_0x320149[0x0],_0x52953f['amazonlex'][_0x5eaa2e('0x604')]=_0x320149[0x1],_0x52953f['amazonlex']['welcomemessage']=_0x320149['slice'](0x2,_0x320149['length'])[_0x5eaa2e('0x2259')](',');}break;case _0x5eaa2e('0x1680'):{const _0x32ceb0=_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1c00')]['split'](',');_0x52953f['amazonlex']['accesskeyid']=_0x32ceb0[0x0],_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1d93')]=_0x32ceb0[0x1],_0x52953f['amazonlex'][_0x5eaa2e('0x10fc')]=_0x32ceb0[0x2],_0x52953f[_0x5eaa2e('0x1680')]['botname']=_0x32ceb0[0x3],_0x52953f[_0x5eaa2e('0x1680')]['welcomemessage']=_0x32ceb0['slice'](0x4,_0x32ceb0[_0x5eaa2e('0x543')])[_0x5eaa2e('0x2259')](',');}break;case _0x5eaa2e('0x23fe'):{const _0x130ab4=_0x52953f['amazonlex']['appdata'][_0x5eaa2e('0x43a')](',');_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x611')]=isNaN(_0x130ab4[0x0])?_0x130ab4[0x0]:parseInt(_0x130ab4[0x0],0xa),_0x52953f[_0x5eaa2e('0x1680')]['text']=_0x130ab4['slice'](0x1,_0x130ab4['length'])[_0x5eaa2e('0x2259')](',');}break;case'message':_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x86e')]=_0x52953f[_0x5eaa2e('0x1680')]['appdata'];break;case _0x5eaa2e('0x256d'):_0x52953f[_0x5eaa2e('0x1680')]['name']=_0x52953f['amazonlex'][_0x5eaa2e('0x1c00')][_0x5eaa2e('0x43a')]('=')[0x0],_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0xa7b')]=_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1c00')][_0x5eaa2e('0x43a')]('=')[0x1];break;case _0x5eaa2e('0x2426'):_0x52953f['amazonlex'][_0x5eaa2e('0x220b')]=_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1c00')];break;default:{const _0x1271f1=_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1c00')][_0x5eaa2e('0x43a')](',');_0x52953f[_0x5eaa2e('0x1680')]['accesskeyid']=_0x3c8d8a()[_0x5eaa2e('0x1a56')](_0x1271f1[0x0])?_0x1271f1[0x0]:isNaN(_0x1271f1[0x0])?_0x1271f1[0x0]:parseInt(_0x1271f1[0x0],0xa),_0x52953f['amazonlex']['secretaccesskey']=_0x3c8d8a()['isEmpty'](_0x1271f1[0x1])?_0x1271f1[0x1]:isNaN(_0x1271f1[0x1])?_0x1271f1[0x1]:parseInt(_0x1271f1[0x1],0xa),_0x52953f['amazonlex'][_0x5eaa2e('0x10fc')]=_0x3c8d8a()['isEmpty'](_0x1271f1[0x2])?_0x1271f1[0x2]:isNaN(_0x1271f1[0x2])?_0x1271f1[0x2]:parseInt(_0x1271f1[0x2],0xa),_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x53')]=_0x3c8d8a()[_0x5eaa2e('0x1a56')](_0x1271f1[0x3])?_0x1271f1[0x3]:isNaN(_0x1271f1[0x3])?_0x1271f1[0x3]:parseInt(_0x1271f1[0x3],0xa),_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1a7')]=_0x3c8d8a()['isEmpty'](_0x1271f1[0x4])?_0x1271f1[0x4]:isNaN(_0x1271f1[0x4])?_0x1271f1[0x4]:parseInt(_0x1271f1[0x4],0xa);}break;}else _0x52953f['amazonlex'][_0x5eaa2e('0x10fc')]='us-east-1';_0x52953f['amazonlex'][_0x5eaa2e('0x1810')]&&_0x52953f[_0x5eaa2e('0x1680')]['type'][_0x5eaa2e('0x1e68')]()===_0x5eaa2e('0xb33')&&_0x52953f[_0x5eaa2e('0x1680')]['appType'][_0x5eaa2e('0x1e68')]()===_0x5eaa2e('0x1edc')&&(_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x23f7')]=_0x52953f['amazonlex'][_0x5eaa2e('0xa04')]?_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0xa04')][_0x5eaa2e('0x43a')]('$')[0x0]:undefined,_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0x1961')]=_0x52953f[_0x5eaa2e('0x1680')][_0x5eaa2e('0xe95')]?_0x5eaa2e('0x20a8')+_0x52953f['amazonlex'][_0x5eaa2e('0xe95')]:undefined);_0x52953f['saveOpenchannelAccountApp']=_0x3a5604,_0x52953f[_0x5eaa2e('0x18e2')]=_0x42ce7b;function _0x3a5604(){const _0x4631a1=_0x5eaa2e;_0x52953f[_0x4631a1('0x1d4a')]=[];const _0x514b1a=[];_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x1810')]&&_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x1810')][_0x4631a1('0x1e68')]()===_0x4631a1('0xb33')&&_0x52953f['amazonlex'][_0x4631a1('0x9d7')]===_0x4631a1('0x2150')&&(_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0xa04')]=_0x122742[_0x4631a1('0x1429')]?(_0x52953f['amazonlex'][_0x4631a1('0x23f7')]||'')+_0x4631a1('0x1957')+_0x122742[_0x4631a1('0x1429')]+'}':(_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x23f7')]||'')+_0x4631a1('0x1dc5'),_0x122742['recordingFormat']!==_0x4631a1('0x2741')?_0x52953f['amazonlex'][_0x4631a1('0x2010')][_0x4631a1('0x2087')](_0x4631a1('0x2474'))<0x0&&(_0x52953f[_0x4631a1('0x1680')]['options']+=_0x4631a1('0x2474')):_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x2010')]=_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x2010')][_0x4631a1('0x166c')](_0x4631a1('0x2474'),''));if(_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x9d7')]&&_0x52953f['amazonlex'][_0x4631a1('0x9d7')]===_0x4631a1('0xbb4')){}else switch((_0x52953f[_0x4631a1('0x1680')]['app']||_0x52953f['amazonlex'][_0x4631a1('0x9d7')])[_0x4631a1('0x1e68')]()){case _0x4631a1('0x256d'):_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x1c00')]=_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x10ad')]+'='+_0x52953f['amazonlex'][_0x4631a1('0xa7b')];break;case _0x4631a1('0xbb4'):break;default:_0x514b1a[0x0]=_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x2e0')],_0x514b1a[0x1]=_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x1d93')],_0x514b1a[0x2]=_0x52953f[_0x4631a1('0x1680')][_0x4631a1('0x10fc')],_0x514b1a[0x3]=_0x52953f[_0x4631a1('0x1680')]['botname'],_0x514b1a[0x4]=_0x52953f[_0x4631a1('0x1680')]['welcomemessage'],_0x52953f['amazonlex']['appdata']=_0x514b1a[_0x4631a1('0x2259')](',');}_0x42ce7b(_0x52953f['amazonlex']);}function _0x42ce7b(_0x1d8aa5){const _0x19c008=_0x5eaa2e;_0x51b12b[_0x19c008('0x1cf4')](_0x1d8aa5);}}const _0x21686a=_0x53154b;_0x390a9f[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x201a'),'openchannelAccount',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x390a9f(_0x3ac25e,_0x243d2e,_0x1aaba7,_0x73336d,_0x68242e,_0x64d423,_0xaa7958,_0x4fd8fe){const _0x1a983=_0x566993,_0x70d6de=this;_0x70d6de[_0x1a983('0x155f')]=_0xaa7958[_0x1a983('0x14d4')](),_0x70d6de['errors']=[],_0x70d6de[_0x1a983('0x20d6')]=_0x1a983('0x16c7')+(_0x73336d[_0x1a983('0x9d7')]||_0x73336d[_0x1a983('0x17e')])[_0x1a983('0x1164')](),_0x70d6de[_0x1a983('0x23fe')]=angular[_0x1a983('0x2e3')](_0x73336d),_0x70d6de[_0x1a983('0x1dc1')]=_0x4fd8fe,_0x70d6de[_0x1a983('0xb0')]={};if(_0x70d6de['autoreply']['appdata'])switch(_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x9d7')]?_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x9d7')][_0x1a983('0x1e68')]():_0x70d6de['autoreply'][_0x1a983('0x17e')][_0x1a983('0x1e68')]()){case _0x1a983('0xbb4'):break;case _0x1a983('0x1601'):{const _0x1d19a6=_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x1c00')]['split'](',');_0x70d6de[_0x1a983('0x23fe')]['key']=_0x1d19a6[0x0],_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x604')]=_0x1d19a6[0x1],_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x1a7')]=_0x1d19a6[_0x1a983('0x2456')](0x2,_0x1d19a6[_0x1a983('0x543')])[_0x1a983('0x2259')](',');}break;case _0x1a983('0x1680'):{const _0x364b40=_0x70d6de['autoreply'][_0x1a983('0x1c00')][_0x1a983('0x43a')](',');_0x70d6de['autoreply'][_0x1a983('0x2e0')]=_0x364b40[0x0],_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x1d93')]=_0x364b40[0x1],_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x10fc')]=_0x364b40[0x2],_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x53')]=_0x364b40[0x3],_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x1a7')]=_0x364b40['slice'](0x4,_0x364b40['length'])[_0x1a983('0x2259')](',');}break;case _0x1a983('0x23fe'):{const _0x3efd88=_0x70d6de['autoreply']['appdata'][_0x1a983('0x43a')](',');_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x611')]=isNaN(_0x3efd88[0x0])?_0x3efd88[0x0]:parseInt(_0x3efd88[0x0],0xa),_0x70d6de['autoreply'][_0x1a983('0x86e')]=_0x3efd88[_0x1a983('0x2456')](0x1,_0x3efd88[_0x1a983('0x543')])['join'](',');}break;case _0x1a983('0x67f'):_0x70d6de['autoreply'][_0x1a983('0x86e')]=_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x1c00')];break;case _0x1a983('0x256d'):_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x10ad')]=_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x1c00')][_0x1a983('0x43a')]('=')[0x0],_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0xa7b')]=_0x70d6de['autoreply'][_0x1a983('0x1c00')]['split']('=')[0x1];break;case _0x1a983('0x2426'):_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x220b')]=_0x70d6de['autoreply'][_0x1a983('0x1c00')];break;default:{const _0x1859d8=_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x1c00')][_0x1a983('0x43a')](',');_0x70d6de['autoreply'][_0x1a983('0x611')]=_0x3c8d8a()[_0x1a983('0x1a56')](_0x1859d8[0x0])?_0x1859d8[0x0]:isNaN(_0x1859d8[0x0])?_0x1859d8[0x0]:parseInt(_0x1859d8[0x0],0xa),_0x70d6de[_0x1a983('0x23fe')]['text']=_0x3c8d8a()[_0x1a983('0x1a56')](_0x1859d8[0x1])?_0x1859d8[0x1]:isNaN(_0x1859d8[0x1])?_0x1859d8[0x1]:parseInt(_0x1859d8[0x1],0xa);}break;}else _0x70d6de['autoreply'][_0x1a983('0x611')]=0x1;_0x70d6de[_0x1a983('0x23fe')]['type']&&_0x70d6de['autoreply'][_0x1a983('0x1810')][_0x1a983('0x1e68')]()===_0x1a983('0xb33')&&_0x70d6de['autoreply'][_0x1a983('0x9d7')][_0x1a983('0x1e68')]()===_0x1a983('0x1edc')&&(_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0x23f7')]=_0x70d6de[_0x1a983('0x23fe')]['phone']?_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0xa04')][_0x1a983('0x43a')]('$')[0x0]:undefined,_0x70d6de['autoreply']['callerId']=_0x70d6de[_0x1a983('0x23fe')][_0x1a983('0xe95')]?_0x1a983('0x20a8')+_0x70d6de['autoreply'][_0x1a983('0xe95')]:undefined);_0x70d6de[_0x1a983('0x11f5')]=_0x1944bb,_0x70d6de[_0x1a983('0x18e2')]=_0x2ce85b;function _0x1944bb(){const _0x3a36f7=_0x1a983;_0x70d6de[_0x3a36f7('0x1d4a')]=[];const _0x19524c=[];_0x70d6de[_0x3a36f7('0x23fe')]['type']&&_0x70d6de['autoreply'][_0x3a36f7('0x1810')][_0x3a36f7('0x1e68')]()==='outbound'&&_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x9d7')]===_0x3a36f7('0x2150')&&(_0x70d6de[_0x3a36f7('0x23fe')]['phone']=_0x68242e[_0x3a36f7('0x1429')]?(_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x23f7')]||'')+_0x3a36f7('0x1957')+_0x68242e[_0x3a36f7('0x1429')]+'}':(_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x23f7')]||'')+_0x3a36f7('0x1dc5'),_0x68242e['recordingFormat']!==_0x3a36f7('0x2741')?_0x70d6de['autoreply'][_0x3a36f7('0x2010')][_0x3a36f7('0x2087')](_0x3a36f7('0x2474'))<0x0&&(_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x2010')]+='U(xcally-mixmonitor-context)'):_0x70d6de[_0x3a36f7('0x23fe')]['options']=_0x70d6de[_0x3a36f7('0x23fe')]['options']['replace'](_0x3a36f7('0x2474'),''));if(_0x70d6de[_0x3a36f7('0x23fe')]['appType']&&_0x70d6de[_0x3a36f7('0x23fe')]['appType']===_0x3a36f7('0xbb4')){}else switch((_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x17e')]||_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x9d7')])['toLowerCase']()){case _0x3a36f7('0x256d'):_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x1c00')]=_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x10ad')]+'='+_0x70d6de[_0x3a36f7('0x23fe')]['value'];break;case _0x3a36f7('0xbb4'):break;default:_0x19524c[0x0]=_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x611')],_0x19524c[0x1]=_0x70d6de[_0x3a36f7('0x23fe')][_0x3a36f7('0x86e')],_0x70d6de['autoreply'][_0x3a36f7('0x1c00')]=_0x19524c[_0x3a36f7('0x2259')](',');}_0x2ce85b(_0x70d6de[_0x3a36f7('0x23fe')]);}function _0x2ce85b(_0x49a310){const _0x5ab607=_0x1a983;_0x3ac25e[_0x5ab607('0x1cf4')](_0x49a310);}}const _0xf8a7ae=_0x390a9f;_0x21596e[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x201a'),_0x566993('0x13f1'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x21596e(_0x233f41,_0x3aab24,_0x3b6dd9,_0x4d8626,_0x37c6ea,_0x27d208,_0x234d74,_0x27426d){const _0x5f186e=_0x566993,_0x303386=this;_0x303386[_0x5f186e('0x155f')]=_0x234d74['getCurrentUser'](),_0x303386[_0x5f186e('0x1d4a')]=[],_0x303386[_0x5f186e('0x20d6')]=_0x5f186e('0x16c7')+(_0x4d8626['appType']||_0x4d8626['app'])[_0x5f186e('0x1164')](),_0x303386['close']=angular['copy'](_0x4d8626),_0x303386[_0x5f186e('0x1dc1')]=_0x27426d,_0x303386[_0x5f186e('0xb0')]={};if(_0x303386['close']['appdata'])switch(_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x9d7')]?_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x9d7')][_0x5f186e('0x1e68')]():_0x303386[_0x5f186e('0x2151')]['app']['toLowerCase']()){case _0x5f186e('0xbb4'):break;case'dialogflow':{const _0x5ed613=_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x1c00')][_0x5f186e('0x43a')](',');_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x237a')]=_0x5ed613[0x0],_0x303386['close'][_0x5f186e('0x604')]=_0x5ed613[0x1],_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x1a7')]=_0x5ed613[_0x5f186e('0x2456')](0x2,_0x5ed613[_0x5f186e('0x543')])[_0x5f186e('0x2259')](',');}break;case _0x5f186e('0x1680'):{const _0x3aeae9=_0x303386[_0x5f186e('0x2151')]['appdata']['split'](',');_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x2e0')]=_0x3aeae9[0x0],_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x1d93')]=_0x3aeae9[0x1],_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x10fc')]=_0x3aeae9[0x2],_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x53')]=_0x3aeae9[0x3],_0x303386['close']['welcomemessage']=_0x3aeae9[_0x5f186e('0x2456')](0x4,_0x3aeae9[_0x5f186e('0x543')])['join'](',');}break;case'autoreply':{const _0x181d0d=_0x303386[_0x5f186e('0x2151')]['appdata'][_0x5f186e('0x43a')](',');_0x303386[_0x5f186e('0x2151')]['times']=isNaN(_0x181d0d[0x0])?_0x181d0d[0x0]:parseInt(_0x181d0d[0x0],0xa),_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x86e')]=_0x181d0d[_0x5f186e('0x2456')](0x1,_0x181d0d['length'])[_0x5f186e('0x2259')](',');}break;case _0x5f186e('0x67f'):_0x303386[_0x5f186e('0x2151')]['text']=_0x303386['close'][_0x5f186e('0x1c00')];break;case'set':_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x10ad')]=_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x1c00')]['split']('=')[0x0],_0x303386[_0x5f186e('0x2151')][_0x5f186e('0xa7b')]=_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x1c00')]['split']('=')[0x1];break;case'agi':_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x220b')]=_0x303386['close'][_0x5f186e('0x1c00')];break;default:{const _0x5c0b51=_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x1c00')][_0x5f186e('0x43a')](',');_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x2766')]=_0x3c8d8a()['isEmpty'](_0x5c0b51[0x0])?_0x5c0b51[0x0]:isNaN(_0x5c0b51[0x0])?_0x5c0b51[0x0]:parseInt(_0x5c0b51[0x0],0xa);}break;}else{}_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x1810')]&&_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x1810')][_0x5f186e('0x1e68')]()===_0x5f186e('0xb33')&&_0x303386[_0x5f186e('0x2151')]['appType'][_0x5f186e('0x1e68')]()===_0x5f186e('0x1edc')&&(_0x303386[_0x5f186e('0x2151')][_0x5f186e('0x23f7')]=_0x303386[_0x5f186e('0x2151')]['phone']?_0x303386[_0x5f186e('0x2151')][_0x5f186e('0xa04')][_0x5f186e('0x43a')]('$')[0x0]:undefined,_0x303386[_0x5f186e('0x2151')]['callerId']=_0x303386['close'][_0x5f186e('0xe95')]?_0x5f186e('0x20a8')+_0x303386[_0x5f186e('0x2151')]['callerID']:undefined);_0x303386[_0x5f186e('0x11f5')]=_0xf22d60,_0x303386[_0x5f186e('0x18e2')]=_0x126478;function _0xf22d60(){const _0x70748d=_0x5f186e;_0x303386[_0x70748d('0x1d4a')]=[];const _0x2b22dc=[];_0x303386[_0x70748d('0x2151')][_0x70748d('0x1810')]&&_0x303386['close'][_0x70748d('0x1810')][_0x70748d('0x1e68')]()==='outbound'&&_0x303386['close'][_0x70748d('0x9d7')]==='outboundDial'&&(_0x303386['close']['phone']=_0x37c6ea[_0x70748d('0x1429')]?(_0x303386[_0x70748d('0x2151')][_0x70748d('0x23f7')]||'')+_0x70748d('0x1957')+_0x37c6ea[_0x70748d('0x1429')]+'}':(_0x303386[_0x70748d('0x2151')][_0x70748d('0x23f7')]||'')+'${EXTEN}',_0x37c6ea['recordingFormat']!==_0x70748d('0x2741')?_0x303386[_0x70748d('0x2151')][_0x70748d('0x2010')][_0x70748d('0x2087')](_0x70748d('0x2474'))<0x0&&(_0x303386['close'][_0x70748d('0x2010')]+=_0x70748d('0x2474')):_0x303386[_0x70748d('0x2151')][_0x70748d('0x2010')]=_0x303386[_0x70748d('0x2151')]['options'][_0x70748d('0x166c')](_0x70748d('0x2474'),''));if(_0x303386['close']['appType']&&_0x303386[_0x70748d('0x2151')][_0x70748d('0x9d7')]===_0x70748d('0xbb4')){}else switch((_0x303386[_0x70748d('0x2151')][_0x70748d('0x17e')]||_0x303386[_0x70748d('0x2151')]['appType'])[_0x70748d('0x1e68')]()){case _0x70748d('0x256d'):_0x303386['close'][_0x70748d('0x1c00')]=_0x303386[_0x70748d('0x2151')][_0x70748d('0x10ad')]+'='+_0x303386[_0x70748d('0x2151')]['value'];break;case _0x70748d('0xbb4'):break;default:_0x2b22dc[0x0]=_0x303386[_0x70748d('0x2151')][_0x70748d('0x2766')],_0x303386[_0x70748d('0x2151')][_0x70748d('0x1c00')]=_0x2b22dc[_0x70748d('0x2259')](',');}_0x126478(_0x303386[_0x70748d('0x2151')]);}function _0x126478(_0x2abddb){const _0x468b3b=_0x5f186e;_0x233f41[_0x468b3b('0x1cf4')](_0x2abddb);}}const _0x18b909=_0x21596e;_0x42d809['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x201a'),_0x566993('0x13f1'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x42d809(_0xef3072,_0x30f99a,_0x30b290,_0x471de9,_0x318df6,_0x5cdac4,_0x5a17d9,_0x428f16){const _0x32e11d=_0x566993,_0x1c409a=this;_0x1c409a[_0x32e11d('0x155f')]=_0x5a17d9[_0x32e11d('0x14d4')](),_0x1c409a[_0x32e11d('0x1d4a')]=[],_0x1c409a[_0x32e11d('0x20d6')]=_0x32e11d('0x16c7')+(_0x471de9['appType']||_0x471de9['app'])[_0x32e11d('0x1164')](),_0x1c409a['dialogflow']=angular['copy'](_0x471de9),_0x1c409a[_0x32e11d('0x1dc1')]=_0x428f16,_0x1c409a[_0x32e11d('0xb0')]={};if(_0x1c409a[_0x32e11d('0x1601')]['appdata'])switch(_0x1c409a['dialogflow'][_0x32e11d('0x9d7')]?_0x1c409a['dialogflow'][_0x32e11d('0x9d7')][_0x32e11d('0x1e68')]():_0x1c409a[_0x32e11d('0x1601')]['app']['toLowerCase']()){case'custom':break;case _0x32e11d('0x1601'):{const _0x110d8e=_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1c00')][_0x32e11d('0x43a')](',');_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x237a')]=_0x110d8e[0x0],_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x604')]=_0x110d8e[0x1],_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1a7')]=_0x110d8e[_0x32e11d('0x2456')](0x2,_0x110d8e[_0x32e11d('0x543')])[_0x32e11d('0x2259')](',');}break;case _0x32e11d('0x1680'):{const _0x4d7e87=_0x1c409a[_0x32e11d('0x1601')]['appdata'][_0x32e11d('0x43a')](',');_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x2e0')]=_0x4d7e87[0x0],_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1d93')]=_0x4d7e87[0x1],_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x10fc')]=_0x4d7e87[0x2],_0x1c409a[_0x32e11d('0x1601')]['botname']=_0x4d7e87[0x3],_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1a7')]=_0x4d7e87[_0x32e11d('0x2456')](0x4,_0x4d7e87[_0x32e11d('0x543')])[_0x32e11d('0x2259')](',');}break;case _0x32e11d('0x23fe'):{const _0x2b9d7d=_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1c00')]['split'](',');_0x1c409a[_0x32e11d('0x1601')]['times']=isNaN(_0x2b9d7d[0x0])?_0x2b9d7d[0x0]:parseInt(_0x2b9d7d[0x0],0xa),_0x1c409a['dialogflow'][_0x32e11d('0x86e')]=_0x2b9d7d[_0x32e11d('0x2456')](0x1,_0x2b9d7d['length'])[_0x32e11d('0x2259')](',');}break;case _0x32e11d('0x67f'):_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x86e')]=_0x1c409a['dialogflow'][_0x32e11d('0x1c00')];break;case'set':_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x10ad')]=_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1c00')]['split']('=')[0x0],_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0xa7b')]=_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1c00')][_0x32e11d('0x43a')]('=')[0x1];break;case _0x32e11d('0x2426'):_0x1c409a['dialogflow'][_0x32e11d('0x220b')]=_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1c00')];break;default:{const _0x43b96d=_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1c00')][_0x32e11d('0x43a')](',');_0x1c409a['dialogflow'][_0x32e11d('0x237a')]=_0x3c8d8a()['isEmpty'](_0x43b96d[0x0])?_0x43b96d[0x0]:isNaN(_0x43b96d[0x0])?_0x43b96d[0x0]:parseInt(_0x43b96d[0x0],0xa),_0x1c409a[_0x32e11d('0x1601')]['language']=_0x3c8d8a()[_0x32e11d('0x1a56')](_0x43b96d[0x1])?_0x43b96d[0x1]:isNaN(_0x43b96d[0x1])?_0x43b96d[0x1]:parseInt(_0x43b96d[0x1],0xa),_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1a7')]=_0x3c8d8a()[_0x32e11d('0x1a56')](_0x43b96d[0x2])?_0x43b96d[0x2]:isNaN(_0x43b96d[0x2])?_0x43b96d[0x2]:parseInt(_0x43b96d[0x2],0xa);}break;}else _0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x604')]='en';_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1810')]&&_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1810')][_0x32e11d('0x1e68')]()==='outbound'&&_0x1c409a['dialogflow']['appType'][_0x32e11d('0x1e68')]()===_0x32e11d('0x1edc')&&(_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x23f7')]=_0x1c409a['dialogflow'][_0x32e11d('0xa04')]?_0x1c409a[_0x32e11d('0x1601')]['phone'][_0x32e11d('0x43a')]('$')[0x0]:undefined,_0x1c409a[_0x32e11d('0x1601')][_0x32e11d('0x1961')]=_0x1c409a['dialogflow'][_0x32e11d('0xe95')]?_0x32e11d('0x20a8')+_0x1c409a['dialogflow']['callerID']:undefined);_0x1c409a[_0x32e11d('0x11f5')]=_0x3d237a,_0x1c409a[_0x32e11d('0x18e2')]=_0x280ff9;function _0x3d237a(){const _0x20fcbe=_0x32e11d;_0x1c409a[_0x20fcbe('0x1d4a')]=[];const _0x3078f9=[];_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x1810')]&&_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x1810')][_0x20fcbe('0x1e68')]()===_0x20fcbe('0xb33')&&_0x1c409a['dialogflow'][_0x20fcbe('0x9d7')]===_0x20fcbe('0x2150')&&(_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0xa04')]=_0x318df6[_0x20fcbe('0x1429')]?(_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x23f7')]||'')+_0x20fcbe('0x1957')+_0x318df6[_0x20fcbe('0x1429')]+'}':(_0x1c409a['dialogflow'][_0x20fcbe('0x23f7')]||'')+_0x20fcbe('0x1dc5'),_0x318df6[_0x20fcbe('0x76c')]!==_0x20fcbe('0x2741')?_0x1c409a['dialogflow']['options'][_0x20fcbe('0x2087')](_0x20fcbe('0x2474'))<0x0&&(_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x2010')]+=_0x20fcbe('0x2474')):_0x1c409a['dialogflow'][_0x20fcbe('0x2010')]=_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x2010')]['replace'](_0x20fcbe('0x2474'),''));if(_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x9d7')]&&_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x9d7')]==='custom'){}else switch((_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x17e')]||_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x9d7')])['toLowerCase']()){case _0x20fcbe('0x256d'):_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x1c00')]=_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x10ad')]+'='+_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0xa7b')];break;case _0x20fcbe('0xbb4'):break;default:_0x3078f9[0x0]=_0x1c409a['dialogflow'][_0x20fcbe('0x237a')],_0x3078f9[0x1]=_0x1c409a[_0x20fcbe('0x1601')]['language'],_0x3078f9[0x2]=_0x1c409a['dialogflow']['welcomemessage'],_0x1c409a[_0x20fcbe('0x1601')][_0x20fcbe('0x1c00')]=_0x3078f9[_0x20fcbe('0x2259')](',');}_0x280ff9(_0x1c409a[_0x20fcbe('0x1601')]);}function _0x280ff9(_0x2a0528){_0xef3072['hide'](_0x2a0528);}}const _0x5561e5=_0x42d809;_0x2a144d[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x201a'),_0x566993('0x13f1'),_0x566993('0xbd4'),'Auth','crudPermissions'];function _0x2a144d(_0x397495,_0xc87832,_0x20c348,_0x5b1cf0,_0x5a7718,_0x93e15a,_0x25ba3c,_0x8d08bc){const _0x326565=_0x566993,_0x5e2260=this;_0x5e2260[_0x326565('0x155f')]=_0x25ba3c['getCurrentUser'](),_0x5e2260['errors']=[],_0x5e2260['title']=_0x326565('0x16c7')+(_0x5b1cf0['appType']||_0x5b1cf0[_0x326565('0x17e')])[_0x326565('0x1164')](),_0x5e2260[_0x326565('0xf5d')]=angular[_0x326565('0x2e3')](_0x5b1cf0),_0x5e2260['crudPermissions']=_0x8d08bc,_0x5e2260[_0x326565('0xb0')]={};if(_0x5e2260['gotoif']['appdata'])switch(_0x5e2260[_0x326565('0xf5d')][_0x326565('0x9d7')]?_0x5e2260[_0x326565('0xf5d')][_0x326565('0x9d7')]['toLowerCase']():_0x5e2260['gotoif'][_0x326565('0x17e')]['toLowerCase']()){case _0x326565('0xbb4'):break;case _0x326565('0x1601'):{const _0x1f3389=_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1c00')][_0x326565('0x43a')](',');_0x5e2260[_0x326565('0xf5d')][_0x326565('0x237a')]=_0x1f3389[0x0],_0x5e2260[_0x326565('0xf5d')]['language']=_0x1f3389[0x1],_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1a7')]=_0x1f3389[_0x326565('0x2456')](0x2,_0x1f3389[_0x326565('0x543')])[_0x326565('0x2259')](',');}break;case _0x326565('0x1680'):{const _0x2c23d8=_0x5e2260[_0x326565('0xf5d')]['appdata']['split'](',');_0x5e2260['gotoif'][_0x326565('0x2e0')]=_0x2c23d8[0x0],_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1d93')]=_0x2c23d8[0x1],_0x5e2260[_0x326565('0xf5d')][_0x326565('0x10fc')]=_0x2c23d8[0x2],_0x5e2260['gotoif'][_0x326565('0x53')]=_0x2c23d8[0x3],_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1a7')]=_0x2c23d8[_0x326565('0x2456')](0x4,_0x2c23d8[_0x326565('0x543')])[_0x326565('0x2259')](',');}break;case _0x326565('0x23fe'):{const _0x5b039a=_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1c00')][_0x326565('0x43a')](',');_0x5e2260[_0x326565('0xf5d')]['times']=isNaN(_0x5b039a[0x0])?_0x5b039a[0x0]:parseInt(_0x5b039a[0x0],0xa),_0x5e2260[_0x326565('0xf5d')][_0x326565('0x86e')]=_0x5b039a[_0x326565('0x2456')](0x1,_0x5b039a[_0x326565('0x543')])['join'](',');}break;case _0x326565('0x67f'):_0x5e2260[_0x326565('0xf5d')][_0x326565('0x86e')]=_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1c00')];break;case _0x326565('0x256d'):_0x5e2260[_0x326565('0xf5d')][_0x326565('0x10ad')]=_0x5e2260['gotoif']['appdata'][_0x326565('0x43a')]('=')[0x0],_0x5e2260[_0x326565('0xf5d')][_0x326565('0xa7b')]=_0x5e2260['gotoif'][_0x326565('0x1c00')][_0x326565('0x43a')]('=')[0x1];break;case _0x326565('0x2426'):_0x5e2260['gotoif'][_0x326565('0x220b')]=_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1c00')];break;default:{const _0x45cc50=_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1c00')][_0x326565('0x43a')](',');_0x5e2260['gotoif'][_0x326565('0x1adb')]=_0x3c8d8a()['isEmpty'](_0x45cc50[0x0])?_0x45cc50[0x0]:isNaN(_0x45cc50[0x0])?_0x45cc50[0x0]:parseInt(_0x45cc50[0x0],0xa),_0x5e2260['gotoif'][_0x326565('0x1cd7')]=_0x3c8d8a()[_0x326565('0x1a56')](_0x45cc50[0x1])?_0x45cc50[0x1]:isNaN(_0x45cc50[0x1])?_0x45cc50[0x1]:parseInt(_0x45cc50[0x1],0xa),_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1ec9')]=_0x3c8d8a()[_0x326565('0x1a56')](_0x45cc50[0x2])?_0x45cc50[0x2]:isNaN(_0x45cc50[0x2])?_0x45cc50[0x2]:parseInt(_0x45cc50[0x2],0xa);}break;}else{}_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1810')]&&_0x5e2260['gotoif']['type'][_0x326565('0x1e68')]()===_0x326565('0xb33')&&_0x5e2260[_0x326565('0xf5d')][_0x326565('0x9d7')][_0x326565('0x1e68')]()==='outbounddial'&&(_0x5e2260['gotoif'][_0x326565('0x23f7')]=_0x5e2260[_0x326565('0xf5d')][_0x326565('0xa04')]?_0x5e2260[_0x326565('0xf5d')][_0x326565('0xa04')]['split']('$')[0x0]:undefined,_0x5e2260[_0x326565('0xf5d')][_0x326565('0x1961')]=_0x5e2260['gotoif'][_0x326565('0xe95')]?_0x326565('0x20a8')+_0x5e2260[_0x326565('0xf5d')]['callerID']:undefined);_0x5e2260[_0x326565('0x11f5')]=_0x57878d,_0x5e2260[_0x326565('0x18e2')]=_0x39e31a;function _0x57878d(){const _0x112881=_0x326565;_0x5e2260['errors']=[];const _0x439c57=[];_0x5e2260[_0x112881('0xf5d')][_0x112881('0x1810')]&&_0x5e2260['gotoif'][_0x112881('0x1810')][_0x112881('0x1e68')]()===_0x112881('0xb33')&&_0x5e2260[_0x112881('0xf5d')][_0x112881('0x9d7')]===_0x112881('0x2150')&&(_0x5e2260[_0x112881('0xf5d')][_0x112881('0xa04')]=_0x5a7718[_0x112881('0x1429')]?(_0x5e2260['gotoif']['prefix']||'')+_0x112881('0x1957')+_0x5a7718['cutdigits']+'}':(_0x5e2260[_0x112881('0xf5d')][_0x112881('0x23f7')]||'')+_0x112881('0x1dc5'),_0x5a7718[_0x112881('0x76c')]!==_0x112881('0x2741')?_0x5e2260[_0x112881('0xf5d')]['options'][_0x112881('0x2087')](_0x112881('0x2474'))<0x0&&(_0x5e2260[_0x112881('0xf5d')][_0x112881('0x2010')]+=_0x112881('0x2474')):_0x5e2260[_0x112881('0xf5d')][_0x112881('0x2010')]=_0x5e2260['gotoif']['options']['replace'](_0x112881('0x2474'),''));if(_0x5e2260['gotoif'][_0x112881('0x9d7')]&&_0x5e2260[_0x112881('0xf5d')]['appType']===_0x112881('0xbb4')){}else switch((_0x5e2260[_0x112881('0xf5d')]['app']||_0x5e2260[_0x112881('0xf5d')][_0x112881('0x9d7')])[_0x112881('0x1e68')]()){case _0x112881('0x256d'):_0x5e2260[_0x112881('0xf5d')][_0x112881('0x1c00')]=_0x5e2260['gotoif'][_0x112881('0x10ad')]+'='+_0x5e2260[_0x112881('0xf5d')][_0x112881('0xa7b')];break;case _0x112881('0xbb4'):break;default:_0x439c57[0x0]=_0x5e2260['gotoif'][_0x112881('0x1adb')],_0x439c57[0x1]=_0x5e2260[_0x112881('0xf5d')][_0x112881('0x1cd7')],_0x439c57[0x2]=_0x5e2260[_0x112881('0xf5d')]['falsepriority'],_0x5e2260[_0x112881('0xf5d')][_0x112881('0x1c00')]=_0x439c57[_0x112881('0x2259')](',');}_0x39e31a(_0x5e2260[_0x112881('0xf5d')]);}function _0x39e31a(_0x56c8d3){const _0x4bffbc=_0x326565;_0x397495[_0x4bffbc('0x1cf4')](_0x56c8d3);}}const _0x2a6c0c=_0x2a144d;_0x304800[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),'openchannelAccountApp',_0x566993('0x13f1'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x304800(_0x23f1ea,_0x7b8b08,_0x5e75b8,_0x4c312b,_0x539e5e,_0x3066c7,_0x5bab71,_0x317963){const _0x3eaf03=_0x566993,_0x2650c0=this;_0x2650c0['currentUser']=_0x5bab71[_0x3eaf03('0x14d4')](),_0x2650c0[_0x3eaf03('0x1d4a')]=[],_0x2650c0[_0x3eaf03('0x20d6')]=_0x3eaf03('0x16c7')+(_0x4c312b[_0x3eaf03('0x9d7')]||_0x4c312b[_0x3eaf03('0x17e')])[_0x3eaf03('0x1164')](),_0x2650c0[_0x3eaf03('0x2ac')]=angular[_0x3eaf03('0x2e3')](_0x4c312b),_0x2650c0[_0x3eaf03('0x1dc1')]=_0x317963,_0x2650c0[_0x3eaf03('0xb0')]={};if(_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1c00')])switch(_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x9d7')]?_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x9d7')][_0x3eaf03('0x1e68')]():_0x2650c0['gotop'][_0x3eaf03('0x17e')]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x43db7f=_0x2650c0[_0x3eaf03('0x2ac')]['appdata']['split'](',');_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x237a')]=_0x43db7f[0x0],_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x604')]=_0x43db7f[0x1],_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1a7')]=_0x43db7f[_0x3eaf03('0x2456')](0x2,_0x43db7f[_0x3eaf03('0x543')])['join'](',');}break;case'amazonlex':{const _0x1f0936=_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1c00')][_0x3eaf03('0x43a')](',');_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x2e0')]=_0x1f0936[0x0],_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1d93')]=_0x1f0936[0x1],_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x10fc')]=_0x1f0936[0x2],_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x53')]=_0x1f0936[0x3],_0x2650c0['gotop']['welcomemessage']=_0x1f0936[_0x3eaf03('0x2456')](0x4,_0x1f0936[_0x3eaf03('0x543')])[_0x3eaf03('0x2259')](',');}break;case _0x3eaf03('0x23fe'):{const _0x4dff27=_0x2650c0['gotop'][_0x3eaf03('0x1c00')]['split'](',');_0x2650c0[_0x3eaf03('0x2ac')]['times']=isNaN(_0x4dff27[0x0])?_0x4dff27[0x0]:parseInt(_0x4dff27[0x0],0xa),_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x86e')]=_0x4dff27[_0x3eaf03('0x2456')](0x1,_0x4dff27[_0x3eaf03('0x543')])[_0x3eaf03('0x2259')](',');}break;case'message':_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x86e')]=_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1c00')];break;case _0x3eaf03('0x256d'):_0x2650c0[_0x3eaf03('0x2ac')]['name']=_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1c00')][_0x3eaf03('0x43a')]('=')[0x0],_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0xa7b')]=_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1c00')][_0x3eaf03('0x43a')]('=')[0x1];break;case _0x3eaf03('0x2426'):_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x220b')]=_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1c00')];break;default:{const _0x18b562=_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1c00')][_0x3eaf03('0x43a')](',');_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0xb3')]=_0x3c8d8a()[_0x3eaf03('0x1a56')](_0x18b562[0x0])?_0x18b562[0x0]:isNaN(_0x18b562[0x0])?_0x18b562[0x0]:parseInt(_0x18b562[0x0],0xa);}break;}else{}_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1810')]&&_0x2650c0['gotop'][_0x3eaf03('0x1810')][_0x3eaf03('0x1e68')]()===_0x3eaf03('0xb33')&&_0x2650c0['gotop']['appType'][_0x3eaf03('0x1e68')]()===_0x3eaf03('0x1edc')&&(_0x2650c0['gotop'][_0x3eaf03('0x23f7')]=_0x2650c0['gotop'][_0x3eaf03('0xa04')]?_0x2650c0['gotop'][_0x3eaf03('0xa04')][_0x3eaf03('0x43a')]('$')[0x0]:undefined,_0x2650c0[_0x3eaf03('0x2ac')][_0x3eaf03('0x1961')]=_0x2650c0[_0x3eaf03('0x2ac')]['callerID']?_0x3eaf03('0x20a8')+_0x2650c0[_0x3eaf03('0x2ac')]['callerID']:undefined);_0x2650c0[_0x3eaf03('0x11f5')]=_0x589116,_0x2650c0[_0x3eaf03('0x18e2')]=_0x588f18;function _0x589116(){const _0x1fb7be=_0x3eaf03;_0x2650c0['errors']=[];const _0xb6a71b=[];_0x2650c0[_0x1fb7be('0x2ac')]['type']&&_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0x1810')][_0x1fb7be('0x1e68')]()===_0x1fb7be('0xb33')&&_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0x9d7')]===_0x1fb7be('0x2150')&&(_0x2650c0['gotop'][_0x1fb7be('0xa04')]=_0x539e5e[_0x1fb7be('0x1429')]?(_0x2650c0[_0x1fb7be('0x2ac')]['prefix']||'')+'${EXTEN:'+_0x539e5e[_0x1fb7be('0x1429')]+'}':(_0x2650c0['gotop'][_0x1fb7be('0x23f7')]||'')+'${EXTEN}',_0x539e5e[_0x1fb7be('0x76c')]!=='none'?_0x2650c0['gotop'][_0x1fb7be('0x2010')][_0x1fb7be('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0x2010')]+=_0x1fb7be('0x2474')):_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0x2010')]=_0x2650c0['gotop'][_0x1fb7be('0x2010')][_0x1fb7be('0x166c')](_0x1fb7be('0x2474'),''));if(_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0x9d7')]&&_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0x9d7')]===_0x1fb7be('0xbb4')){}else switch((_0x2650c0['gotop']['app']||_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0x9d7')])[_0x1fb7be('0x1e68')]()){case'set':_0x2650c0['gotop']['appdata']=_0x2650c0['gotop'][_0x1fb7be('0x10ad')]+'='+_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0xa7b')];break;case _0x1fb7be('0xbb4'):break;default:_0xb6a71b[0x0]=_0x2650c0[_0x1fb7be('0x2ac')][_0x1fb7be('0xb3')],_0x2650c0['gotop']['appdata']=_0xb6a71b[_0x1fb7be('0x2259')](',');}_0x588f18(_0x2650c0[_0x1fb7be('0x2ac')]);}function _0x588f18(_0xb13d2f){const _0x1905ad=_0x3eaf03;_0x23f1ea[_0x1905ad('0x1cf4')](_0xb13d2f);}}const _0x4a4cbd=_0x304800;_0x48ce39[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x1fe5'),'$mdToast',_0x566993('0x1975'),'interval','intervals',_0x566993('0x1558'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x48ce39(_0x396862,_0xf67016,_0x790344,_0x18b4bc,_0x18d1e5,_0x558e5d,_0x128feb,_0x22b602,_0x59eb3c,_0x13534b){const _0x4b6fd6=_0x566993,_0x3f8b3d=this;_0x3f8b3d[_0x4b6fd6('0x155f')]=_0x59eb3c['getCurrentUser'](),_0x3f8b3d['errors']=[],_0x3f8b3d[_0x4b6fd6('0x20d6')]=_0x4b6fd6('0x117b'),_0x3f8b3d[_0x4b6fd6('0x55a')]=angular[_0x4b6fd6('0x2e3')](_0x18d1e5),_0x3f8b3d[_0x4b6fd6('0x21c4')]=_0x558e5d,_0x3f8b3d['newInterval']=![],_0x3f8b3d['types']=[_0x4b6fd6('0x17b3'),_0x4b6fd6('0xbb4'),_0x4b6fd6('0x3e3')],_0x3f8b3d['crudPermissions']=_0x13534b,_0x3f8b3d[_0x4b6fd6('0x1626')]=_0x18b4bc[_0x4b6fd6('0x89e')](),_0x3f8b3d['monthNumber']=_0x18b4bc['getMonthNumber'](),_0x3f8b3d['monthName']=_0x18b4bc['getMonthName'](),_0x3f8b3d[_0x4b6fd6('0x2742')]=_0x18b4bc[_0x4b6fd6('0x1c80')]();if(!_0x3f8b3d[_0x4b6fd6('0x55a')])_0x3f8b3d['interval']={'interval':_0x4b6fd6('0x17c5')},_0x3f8b3d[_0x4b6fd6('0x1810')]='always',_0x3f8b3d[_0x4b6fd6('0x20d6')]=_0x4b6fd6('0xbb5'),_0x3f8b3d[_0x4b6fd6('0x1d80')]=!![];else{if(_0x3f8b3d[_0x4b6fd6('0x55a')][_0x4b6fd6('0x55a')]!==_0x4b6fd6('0x17c5')){_0x3f8b3d[_0x4b6fd6('0x1810')]=_0x4b6fd6('0xbb4');const _0x2996e6=_0x3f8b3d[_0x4b6fd6('0x55a')][_0x4b6fd6('0x55a')][_0x4b6fd6('0x43a')](','),_0x24ba52=_0x2996e6[0x0],_0x133e5f=_0x2996e6[0x1],_0xa0d4e8=_0x2996e6[0x2],_0x48f953=_0x2996e6[0x3];if(_0x24ba52!=='*'){const _0x2a8f11=_0x24ba52[_0x4b6fd6('0x43a')]('-')[0x0],_0x5bc7f8=_0x24ba52[_0x4b6fd6('0x43a')]('-')[0x1];let _0x698fe3;_0x698fe3=new Date(),_0x698fe3[_0x4b6fd6('0xd32')](Number(_0x2a8f11[_0x4b6fd6('0x43a')](':')[0x0])),_0x698fe3['setMinutes'](Number(_0x2a8f11[_0x4b6fd6('0x43a')](':')[0x1])),_0x3f8b3d[_0x4b6fd6('0x2515')]=_0x698fe3,_0x698fe3=new Date(),_0x698fe3[_0x4b6fd6('0xd32')](Number(_0x5bc7f8[_0x4b6fd6('0x43a')](':')[0x0])),_0x698fe3[_0x4b6fd6('0x14f9')](Number(_0x5bc7f8['split'](':')[0x1])),_0x3f8b3d['timeRangeTo']=_0x698fe3;}_0x133e5f!=='*'&&(_0x3f8b3d[_0x4b6fd6('0x37a')]=_0x133e5f[_0x4b6fd6('0x43a')]('-')[0x0],_0x3f8b3d['dayOfWeekTo']=_0x133e5f[_0x4b6fd6('0x43a')]('-')[0x1]),_0xa0d4e8!=='*'&&(_0x3f8b3d[_0x4b6fd6('0x6df')]=_0xa0d4e8[_0x4b6fd6('0x43a')]('-')[0x0],_0x3f8b3d['monthDayTo']=_0xa0d4e8['split']('-')[0x1]),_0x48f953!=='*'&&(_0x3f8b3d[_0x4b6fd6('0x1f34')]=_0x48f953['split']('-')[0x0],_0x3f8b3d[_0x4b6fd6('0xf74')]=_0x48f953[_0x4b6fd6('0x43a')]('-')[0x1]);}else _0x3f8b3d[_0x4b6fd6('0x1810')]=_0x4b6fd6('0x17b3');}_0x396862[_0x4b6fd6('0x197a')]['id']&&!_0x3f8b3d[_0x4b6fd6('0x55a')][_0x4b6fd6('0x17c2')]&&(_0x3f8b3d['interval'][_0x4b6fd6('0x600')]=_0x396862[_0x4b6fd6('0x197a')]['id']);_0x3f8b3d['interval'][_0x4b6fd6('0x600')]&&_0x3f8b3d[_0x4b6fd6('0x55a')][_0x4b6fd6('0x17c2')]&&(_0x3f8b3d[_0x4b6fd6('0x1810')]=_0x4b6fd6('0x3e3'));_0x3f8b3d[_0x4b6fd6('0x11fc')]=_0x4d28a5,_0x3f8b3d['saveInterval']=_0x146379,_0x3f8b3d[_0x4b6fd6('0x18e2')]=_0x47d73b;_0x3f8b3d[_0x4b6fd6('0x55a')]['application']&&(_0x59eb3c[_0x4b6fd6('0x1b4e')]('admin')?_0x22b602[_0x4b6fd6('0x55a')][_0x4b6fd6('0x1d97')]({'fields':_0x4b6fd6('0x2666'),'IntervalId':_0x4b6fd6('0x877'),'nolimit':!![]})[_0x4b6fd6('0x1964')][_0x4b6fd6('0x173b')](function(_0x5b2022){const _0x593f4c=_0x4b6fd6;_0x3f8b3d['intervals']=_0x5b2022[_0x593f4c('0x6aa')]||[];})[_0x4b6fd6('0x103c')](function(_0x3fb0c9){const _0x40b342=_0x4b6fd6;_0x128feb[_0x40b342('0x15aa')]({'title':_0x3fb0c9[_0x40b342('0x276f')]?_0x40b342('0x137')+_0x3fb0c9[_0x40b342('0x276f')]+'\x20-\x20'+_0x3fb0c9[_0x40b342('0x2696')]:_0x40b342('0x1daf'),'msg':_0x3fb0c9[_0x40b342('0x1e07')]?JSON[_0x40b342('0x100b')](_0x3fb0c9['data']):_0x3fb0c9[_0x40b342('0x1b75')]()});}):_0x22b602[_0x4b6fd6('0x55a')][_0x4b6fd6('0x1d97')]({'fields':_0x4b6fd6('0x2666'),'IntervalId':'null','nolimit':!![]})['$promise'][_0x4b6fd6('0x173b')](function(_0x4f0a7c){const _0x33c9d1=_0x4b6fd6;_0x3f8b3d[_0x33c9d1('0x21c4')]=_0x4f0a7c[_0x33c9d1('0x6aa')]||[];})['then'](function(){const _0x5dfe3e=_0x4b6fd6;return _0x22b602[_0x5dfe3e('0x170e')][_0x5dfe3e('0x1d97')]({'userProfileId':_0x3f8b3d[_0x5dfe3e('0x155f')][_0x5dfe3e('0x1946')],'sectionId':0x3ec})[_0x5dfe3e('0x1964')];})[_0x4b6fd6('0x173b')](function(_0x4a6785){const _0x48720c=_0x4b6fd6,_0x84f6ff=_0x4a6785&&_0x4a6785[_0x48720c('0x6aa')]?_0x4a6785[_0x48720c('0x6aa')][0x0]:null;if(!_0x84f6ff)_0x3f8b3d['intervals']=[];else{if(!_0x84f6ff['autoAssociation'])return _0x22b602[_0x48720c('0xda9')]['get']({'sectionId':_0x84f6ff['id']})[_0x48720c('0x1964')][_0x48720c('0x173b')](function(_0x374eab){const _0x38c257=_0x48720c,_0x2aec0f=_0x374eab&&_0x374eab[_0x38c257('0x6aa')]?_0x374eab[_0x38c257('0x6aa')]:[],_0x4cd588=[];let _0x3696e6=null;_0x3f8b3d[_0x38c257('0x55a')]&&(_0x3696e6=_0x3c8d8a()[_0x38c257('0x18ab')](_0x3f8b3d[_0x38c257('0x21c4')],{'name':_0x3f8b3d[_0x38c257('0x55a')]['IntervalId']})),_0x3696e6&&!_0x3c8d8a()[_0x38c257('0x1ec')](_0x2aec0f,[_0x38c257('0x1ce0'),_0x3696e6['id']])&&_0x3f8b3d[_0x38c257('0x21c4')][_0x38c257('0xa6a')](function(_0x2c4543){const _0x4ad0a2=_0x38c257;_0x2c4543['id']===_0x3696e6['id']&&(_0x2c4543[_0x4ad0a2('0x268e')]=![],_0x4cd588['push'](_0x2c4543));}),_0x3f8b3d['intervals']=_0x4cd588;});}})[_0x4b6fd6('0x103c')](function(_0x559106){const _0x4a077a=_0x4b6fd6;_0x128feb['error']({'title':_0x559106['status']?_0x4a077a('0x137')+_0x559106[_0x4a077a('0x276f')]+_0x4a077a('0x160c')+_0x559106[_0x4a077a('0x2696')]:_0x4a077a('0x1daf'),'msg':_0x559106[_0x4a077a('0x1e07')]?JSON['stringify'](_0x559106[_0x4a077a('0x1e07')]):_0x559106[_0x4a077a('0x1b75')]()});}));function _0x59fad4(){const _0x552b34=_0x4b6fd6;switch(_0x3f8b3d[_0x552b34('0x1810')]){case'always':case _0x552b34('0x3e3'):return'*,*,*,*';case _0x552b34('0xbb4'):{const _0x165b9d=[];if(_0x3f8b3d['timeRangeFrom']!=='*'&&_0x3f8b3d['timeRangeFrom']&&_0x3f8b3d[_0x552b34('0x437')]){const _0x13acdb=(_0x3f8b3d['timeRangeFrom'][_0x552b34('0x1a28')]()<0xa?'0':'')+_0x3f8b3d[_0x552b34('0x2515')][_0x552b34('0x1a28')]()+':'+((_0x3f8b3d[_0x552b34('0x2515')]['getMinutes']()<0xa?'0':'')+_0x3f8b3d[_0x552b34('0x2515')][_0x552b34('0x1d2a')]()),_0x555411=(_0x3f8b3d['timeRangeTo'][_0x552b34('0x1a28')]()<0xa?'0':'')+_0x3f8b3d[_0x552b34('0x437')][_0x552b34('0x1a28')]()+':'+((_0x3f8b3d[_0x552b34('0x437')]['getMinutes']()<0xa?'0':'')+_0x3f8b3d[_0x552b34('0x437')][_0x552b34('0x1d2a')]());_0x165b9d[_0x552b34('0x18bb')](_0x13acdb+'-'+_0x555411);}else _0x165b9d[_0x552b34('0x18bb')]('*');return _0x3f8b3d[_0x552b34('0x37a')]?_0x3f8b3d[_0x552b34('0x269e')]?_0x165b9d[_0x552b34('0x18bb')](_0x3f8b3d[_0x552b34('0x37a')]+'-'+_0x3f8b3d[_0x552b34('0x269e')]):_0x165b9d[_0x552b34('0x18bb')](_0x3f8b3d[_0x552b34('0x37a')]):_0x165b9d['push']('*'),_0x3f8b3d[_0x552b34('0x6df')]?_0x3f8b3d[_0x552b34('0x185e')]?_0x165b9d['push'](_0x3f8b3d['monthDayFrom']+'-'+_0x3f8b3d[_0x552b34('0x185e')]):_0x165b9d['push'](_0x3f8b3d[_0x552b34('0x6df')]):_0x165b9d[_0x552b34('0x18bb')]('*'),_0x3f8b3d[_0x552b34('0x1f34')]?_0x3f8b3d[_0x552b34('0xf74')]?_0x165b9d[_0x552b34('0x18bb')](_0x3f8b3d['monthFrom']+'-'+_0x3f8b3d[_0x552b34('0xf74')]):_0x165b9d[_0x552b34('0x18bb')](_0x3f8b3d['monthFrom']):_0x165b9d[_0x552b34('0x18bb')]('*'),_0x165b9d['join']();}}}function _0x4d28a5(){const _0x5669d6=_0x4b6fd6;_0x3f8b3d[_0x5669d6('0x1d4a')]=[],_0x3f8b3d['interval'][_0x5669d6('0x55a')]=_0x59fad4(),_0x22b602['interval'][_0x5669d6('0x1195')](_0x3f8b3d[_0x5669d6('0x55a')])['$promise'][_0x5669d6('0x173b')](function(_0x794e70){const _0x1ffa26=_0x5669d6;_0x3f8b3d[_0x1ffa26('0x21c4')][_0x1ffa26('0x18bb')](_0x794e70),_0x128feb[_0x1ffa26('0xdfe')]({'title':'Interval\x20properly\x20created','msg':_0x3f8b3d[_0x1ffa26('0x55a')][_0x1ffa26('0x10ad')]?_0x3f8b3d['interval'][_0x1ffa26('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x47d73b();})[_0x5669d6('0x103c')](function(_0xa3f961){const _0x4f80fb=_0x5669d6;console[_0x4f80fb('0x15aa')](_0xa3f961),_0x3f8b3d['errors']=_0xa3f961['data']['errors']||[{'message':_0xa3f961[_0x4f80fb('0x1b75')](),'type':_0x4f80fb('0xbde')}];});}function _0x146379(){const _0x30a08e=_0x4b6fd6;_0x3f8b3d[_0x30a08e('0x1d4a')]=[],_0x3f8b3d['interval']['interval']=_0x59fad4(),_0x3f8b3d[_0x30a08e('0x55a')]['application']?(_0x3f8b3d[_0x30a08e('0x1810')]!==_0x30a08e('0x3e3')&&(_0x3f8b3d[_0x30a08e('0x55a')][_0x30a08e('0x600')]=null),_0x47d73b(_0x3f8b3d[_0x30a08e('0x55a')])):_0x22b602['interval'][_0x30a08e('0x1842')]({'id':_0x3f8b3d['interval']['id']},_0x3f8b3d[_0x30a08e('0x55a')])[_0x30a08e('0x1964')]['then'](function(_0x2a76be){const _0x1429e8=_0x30a08e,_0x4e13f0=_0x3c8d8a()[_0x1429e8('0x18ab')](_0x3f8b3d[_0x1429e8('0x21c4')],{'id':_0x2a76be['id']});_0x4e13f0&&_0x3c8d8a()[_0x1429e8('0x9ef')](_0x4e13f0,_0x2a76be),_0x128feb[_0x1429e8('0xdfe')]({'title':_0x1429e8('0x39a'),'msg':_0x1429e8('0x227f')}),_0x47d73b();})[_0x30a08e('0x103c')](function(_0xc35106){const _0x47372e=_0x30a08e;console[_0x47372e('0x15aa')](_0xc35106),_0x3f8b3d[_0x47372e('0x1d4a')]=_0xc35106[_0x47372e('0x1e07')]['errors']||[{'message':_0xc35106['toString'](),'type':'api.interval.update'}];});}function _0x47d73b(_0x4cd493){const _0x6ef6c=_0x4b6fd6;_0xf67016[_0x6ef6c('0x1cf4')](_0x4cd493);}}const _0x1a942d=_0x48ce39;_0x58d671[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x201a'),_0x566993('0x13f1'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x58d671(_0x1bf6d0,_0x338d9f,_0x2afd90,_0x5b3914,_0x4294cf,_0x52243a,_0x2c4211,_0x404606){const _0x7e232e=_0x566993,_0x57c7de=this;_0x57c7de[_0x7e232e('0x155f')]=_0x2c4211['getCurrentUser'](),_0x57c7de[_0x7e232e('0x1d4a')]=[],_0x57c7de[_0x7e232e('0x20d6')]=_0x7e232e('0x16c7')+(_0x5b3914[_0x7e232e('0x9d7')]||_0x5b3914[_0x7e232e('0x17e')])[_0x7e232e('0x1164')](),_0x57c7de[_0x7e232e('0x1086')]=angular[_0x7e232e('0x2e3')](_0x5b3914),_0x57c7de['crudPermissions']=_0x404606,_0x57c7de[_0x7e232e('0xb0')]={};if(_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1c00')])switch(_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x9d7')]?_0x57c7de[_0x7e232e('0x1086')]['appType'][_0x7e232e('0x1e68')]():_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x17e')][_0x7e232e('0x1e68')]()){case _0x7e232e('0xbb4'):break;case _0x7e232e('0x1601'):{const _0x5a0366=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1c00')][_0x7e232e('0x43a')](',');_0x57c7de[_0x7e232e('0x1086')]['key']=_0x5a0366[0x0],_0x57c7de[_0x7e232e('0x1086')]['language']=_0x5a0366[0x1],_0x57c7de['noop'][_0x7e232e('0x1a7')]=_0x5a0366[_0x7e232e('0x2456')](0x2,_0x5a0366[_0x7e232e('0x543')])[_0x7e232e('0x2259')](',');}break;case _0x7e232e('0x1680'):{const _0x1697a5=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1c00')][_0x7e232e('0x43a')](',');_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x2e0')]=_0x1697a5[0x0],_0x57c7de['noop'][_0x7e232e('0x1d93')]=_0x1697a5[0x1],_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x10fc')]=_0x1697a5[0x2],_0x57c7de['noop'][_0x7e232e('0x53')]=_0x1697a5[0x3],_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1a7')]=_0x1697a5[_0x7e232e('0x2456')](0x4,_0x1697a5[_0x7e232e('0x543')])[_0x7e232e('0x2259')](',');}break;case'autoreply':{const _0xd1ed5a=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1c00')]['split'](',');_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x611')]=isNaN(_0xd1ed5a[0x0])?_0xd1ed5a[0x0]:parseInt(_0xd1ed5a[0x0],0xa),_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x86e')]=_0xd1ed5a[_0x7e232e('0x2456')](0x1,_0xd1ed5a[_0x7e232e('0x543')])['join'](',');}break;case _0x7e232e('0x67f'):_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x86e')]=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1c00')];break;case _0x7e232e('0x256d'):_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x10ad')]=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1c00')]['split']('=')[0x0],_0x57c7de[_0x7e232e('0x1086')]['value']=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1c00')][_0x7e232e('0x43a')]('=')[0x1];break;case _0x7e232e('0x2426'):_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x220b')]=_0x57c7de['noop'][_0x7e232e('0x1c00')];break;default:{const _0x4f16f1=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1c00')]['split'](',');_0x57c7de['noop'][_0x7e232e('0xa7b')]=_0x3c8d8a()[_0x7e232e('0x1a56')](_0x4f16f1[0x0])?_0x4f16f1[0x0]:isNaN(_0x4f16f1[0x0])?_0x4f16f1[0x0]:parseInt(_0x4f16f1[0x0],0xa);}break;}else{}_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x1810')]&&_0x57c7de['noop'][_0x7e232e('0x1810')][_0x7e232e('0x1e68')]()==='outbound'&&_0x57c7de['noop'][_0x7e232e('0x9d7')]['toLowerCase']()==='outbounddial'&&(_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0x23f7')]=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0xa04')]?_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0xa04')]['split']('$')[0x0]:undefined,_0x57c7de[_0x7e232e('0x1086')]['callerId']=_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0xe95')]?'CALLERID(all)='+_0x57c7de[_0x7e232e('0x1086')][_0x7e232e('0xe95')]:undefined);_0x57c7de['saveOpenchannelAccountApp']=_0x4e5270,_0x57c7de[_0x7e232e('0x18e2')]=_0x14bfa;function _0x4e5270(){const _0x2ace41=_0x7e232e;_0x57c7de[_0x2ace41('0x1d4a')]=[];const _0x1a6ef8=[];_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x1810')]&&_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x1810')][_0x2ace41('0x1e68')]()===_0x2ace41('0xb33')&&_0x57c7de['noop'][_0x2ace41('0x9d7')]===_0x2ace41('0x2150')&&(_0x57c7de['noop'][_0x2ace41('0xa04')]=_0x4294cf['cutdigits']?(_0x57c7de['noop'][_0x2ace41('0x23f7')]||'')+_0x2ace41('0x1957')+_0x4294cf[_0x2ace41('0x1429')]+'}':(_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x23f7')]||'')+_0x2ace41('0x1dc5'),_0x4294cf[_0x2ace41('0x76c')]!==_0x2ace41('0x2741')?_0x57c7de['noop'][_0x2ace41('0x2010')][_0x2ace41('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x2010')]+=_0x2ace41('0x2474')):_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x2010')]=_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x2010')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x9d7')]&&_0x57c7de['noop'][_0x2ace41('0x9d7')]===_0x2ace41('0xbb4')){}else switch((_0x57c7de['noop'][_0x2ace41('0x17e')]||_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x9d7')])['toLowerCase']()){case'set':_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x1c00')]=_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x10ad')]+'='+_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0xa7b')];break;case'custom':break;default:_0x1a6ef8[0x0]=_0x57c7de['noop'][_0x2ace41('0xa7b')],_0x57c7de[_0x2ace41('0x1086')][_0x2ace41('0x1c00')]=_0x1a6ef8[_0x2ace41('0x2259')](',');}_0x14bfa(_0x57c7de[_0x2ace41('0x1086')]);}function _0x14bfa(_0x933afc){const _0x997df1=_0x7e232e;_0x1bf6d0[_0x997df1('0x1cf4')](_0x933afc);}}const _0x4e5b6e=_0x58d671;_0x5da346[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x201a'),_0x566993('0x13f1'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x5da346(_0x2560a1,_0x28d17f,_0x2f53dd,_0x58411e,_0x4c1921,_0xf08d45,_0x3b39dd,_0x5a5398){const _0x77be2b=_0x566993,_0x5bf84c=this;_0x5bf84c['currentUser']=_0x3b39dd['getCurrentUser'](),_0x5bf84c[_0x77be2b('0x1d4a')]=[],_0x5bf84c[_0x77be2b('0x20d6')]='OPENCHANNEL.EDIT_'+(_0x58411e['appType']||_0x58411e[_0x77be2b('0x17e')])[_0x77be2b('0x1164')](),_0x5bf84c[_0x77be2b('0x172')]=angular[_0x77be2b('0x2e3')](_0x58411e),_0x5bf84c[_0x77be2b('0x1dc1')]=_0x5a5398,_0x5bf84c[_0x77be2b('0xb0')]={};if(_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1c00')])switch(_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x9d7')]?_0x5bf84c['queue'][_0x77be2b('0x9d7')][_0x77be2b('0x1e68')]():_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x17e')][_0x77be2b('0x1e68')]()){case _0x77be2b('0xbb4'):break;case _0x77be2b('0x1601'):{const _0x2079ec=_0x5bf84c['queue'][_0x77be2b('0x1c00')][_0x77be2b('0x43a')](',');_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x237a')]=_0x2079ec[0x0],_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x604')]=_0x2079ec[0x1],_0x5bf84c['queue'][_0x77be2b('0x1a7')]=_0x2079ec['slice'](0x2,_0x2079ec['length'])[_0x77be2b('0x2259')](',');}break;case _0x77be2b('0x1680'):{const _0x48b77a=_0x5bf84c['queue'][_0x77be2b('0x1c00')][_0x77be2b('0x43a')](',');_0x5bf84c['queue']['accesskeyid']=_0x48b77a[0x0],_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1d93')]=_0x48b77a[0x1],_0x5bf84c[_0x77be2b('0x172')]['lexregion']=_0x48b77a[0x2],_0x5bf84c['queue']['botname']=_0x48b77a[0x3],_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1a7')]=_0x48b77a[_0x77be2b('0x2456')](0x4,_0x48b77a[_0x77be2b('0x543')])[_0x77be2b('0x2259')](',');}break;case _0x77be2b('0x23fe'):{const _0x4b04a0=_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1c00')][_0x77be2b('0x43a')](',');_0x5bf84c[_0x77be2b('0x172')]['times']=isNaN(_0x4b04a0[0x0])?_0x4b04a0[0x0]:parseInt(_0x4b04a0[0x0],0xa),_0x5bf84c['queue'][_0x77be2b('0x86e')]=_0x4b04a0[_0x77be2b('0x2456')](0x1,_0x4b04a0[_0x77be2b('0x543')])[_0x77be2b('0x2259')](',');}break;case _0x77be2b('0x67f'):_0x5bf84c['queue'][_0x77be2b('0x86e')]=_0x5bf84c['queue'][_0x77be2b('0x1c00')];break;case _0x77be2b('0x256d'):_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x10ad')]=_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1c00')][_0x77be2b('0x43a')]('=')[0x0],_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0xa7b')]=_0x5bf84c['queue'][_0x77be2b('0x1c00')][_0x77be2b('0x43a')]('=')[0x1];break;case _0x77be2b('0x2426'):_0x5bf84c['queue'][_0x77be2b('0x220b')]=_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1c00')];break;default:{const _0x3b7976=_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1c00')]['split'](',');_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x172')]=_0x3c8d8a()['isEmpty'](_0x3b7976[0x0])?_0x3b7976[0x0]:isNaN(_0x3b7976[0x0])?_0x3b7976[0x0]:parseInt(_0x3b7976[0x0],0xa),_0x5bf84c[_0x77be2b('0x172')]['timeout']=_0x3c8d8a()['isEmpty'](_0x3b7976[0x1])?_0x3b7976[0x1]:isNaN(_0x3b7976[0x1])?_0x3b7976[0x1]:parseInt(_0x3b7976[0x1],0xa);}break;}else _0x5bf84c['queue']['queue']=0x12c,_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1f84')]=0x12c;_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1810')]&&_0x5bf84c[_0x77be2b('0x172')]['type'][_0x77be2b('0x1e68')]()===_0x77be2b('0xb33')&&_0x5bf84c[_0x77be2b('0x172')]['appType'][_0x77be2b('0x1e68')]()===_0x77be2b('0x1edc')&&(_0x5bf84c['queue']['prefix']=_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0xa04')]?_0x5bf84c[_0x77be2b('0x172')]['phone'][_0x77be2b('0x43a')]('$')[0x0]:undefined,_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0x1961')]=_0x5bf84c[_0x77be2b('0x172')]['callerID']?_0x77be2b('0x20a8')+_0x5bf84c[_0x77be2b('0x172')][_0x77be2b('0xe95')]:undefined);_0x5bf84c[_0x77be2b('0x11f5')]=_0x28e7ad,_0x5bf84c['closeDialog']=_0x52b634,_0x3b39dd[_0x77be2b('0x1b4e')]('admin')?_0xf08d45['openchannelQueue'][_0x77be2b('0x1d97')]({'fields':_0x77be2b('0x1c66'),'sort':'name','nolimit':'true'})[_0x77be2b('0x1964')][_0x77be2b('0x173b')](function(_0x4adc09){const _0x466484=_0x77be2b;_0x5bf84c[_0x466484('0xeae')]=_0x4adc09['rows']||[];})[_0x77be2b('0x103c')](function(_0x1ac6ef){const _0x2cab47=_0x77be2b;_0x2f53dd[_0x2cab47('0x15aa')]({'title':_0x1ac6ef[_0x2cab47('0x276f')]?'API:'+_0x1ac6ef[_0x2cab47('0x276f')]+_0x2cab47('0x160c')+_0x1ac6ef[_0x2cab47('0x2696')]:_0x2cab47('0x1e3c'),'msg':_0x1ac6ef[_0x2cab47('0x1e07')]?JSON[_0x2cab47('0x100b')](_0x1ac6ef[_0x2cab47('0x1e07')]):_0x1ac6ef['toString']()});}):_0xf08d45[_0x77be2b('0x1611')][_0x77be2b('0x1d97')]({'fields':'id,name,type','sort':'name','nolimit':_0x77be2b('0x799')})['$promise'][_0x77be2b('0x173b')](function(_0x544eb2){const _0x608940=_0x77be2b;_0x5bf84c[_0x608940('0xeae')]=_0x544eb2['rows']||[];})[_0x77be2b('0x173b')](function(){const _0x2042c7=_0x77be2b;return _0xf08d45[_0x2042c7('0x170e')][_0x2042c7('0x1d97')]({'userProfileId':_0x5bf84c[_0x2042c7('0x155f')][_0x2042c7('0x1946')],'sectionId':0x321})[_0x2042c7('0x1964')];})[_0x77be2b('0x173b')](function(_0x426520){const _0x36fe01=_0x77be2b,_0x468a3d=_0x426520&&_0x426520[_0x36fe01('0x6aa')]?_0x426520[_0x36fe01('0x6aa')][0x0]:null;if(!_0x468a3d){const _0x2a3d9d=[];let _0x5a473f=null;_0x5bf84c['queue']&&(_0x5a473f=_0x3c8d8a()['find'](_0x5bf84c[_0x36fe01('0xeae')],{'name':_0x5bf84c[_0x36fe01('0x172')][_0x36fe01('0x172')]}));for(let _0x5c9d71=0x0;_0x5c9d71<_0x5bf84c[_0x36fe01('0xeae')]['length'];_0x5c9d71++){_0x5a473f&&_0x5bf84c[_0x36fe01('0xeae')][_0x5c9d71]['id']===_0x5a473f['id']&&(_0x5bf84c[_0x36fe01('0xeae')][_0x5c9d71][_0x36fe01('0x268e')]=![],_0x2a3d9d['push'](_0x5bf84c[_0x36fe01('0xeae')][_0x5c9d71]));}_0x5bf84c['queues']=_0x2a3d9d;}else{if(!_0x468a3d[_0x36fe01('0x273e')])return _0xf08d45[_0x36fe01('0xda9')][_0x36fe01('0x1d97')]({'sectionId':_0x468a3d['id']})[_0x36fe01('0x1964')][_0x36fe01('0x173b')](function(_0x49a714){const _0x16fe90=_0x36fe01,_0x2b9e03=_0x3c8d8a()[_0x16fe90('0x8a2')](_0x49a714[_0x16fe90('0x6aa')],function(_0x4081cc){const _0x130328=_0x16fe90;return _0x3c8d8a()[_0x130328('0x18ab')](_0x5bf84c['queues'],{'id':_0x4081cc[_0x130328('0x1ce0')]});});let _0x52c7f4=null;_0x5bf84c[_0x16fe90('0x172')]&&(_0x52c7f4=_0x3c8d8a()[_0x16fe90('0x18ab')](_0x5bf84c[_0x16fe90('0xeae')],{'name':_0x5bf84c[_0x16fe90('0x172')][_0x16fe90('0x172')]}));if(_0x52c7f4&&!_0x3c8d8a()[_0x16fe90('0x1ec')](_0x2b9e03,['id',_0x52c7f4['id']])){const _0x4d76ef=_0x3c8d8a()[_0x16fe90('0x18ab')](_0x5bf84c[_0x16fe90('0xeae')],{'id':_0x52c7f4['id']});_0x4d76ef[_0x16fe90('0x268e')]=![],_0x2b9e03[_0x16fe90('0x18bb')](_0x4d76ef);}_0x5bf84c[_0x16fe90('0xeae')]=_0x2b9e03;});}})[_0x77be2b('0x103c')](function(_0x3e61d7){const _0x43f684=_0x77be2b;_0x2f53dd[_0x43f684('0x15aa')]({'title':_0x3e61d7[_0x43f684('0x276f')]?'API:'+_0x3e61d7['status']+_0x43f684('0x160c')+_0x3e61d7[_0x43f684('0x2696')]:_0x43f684('0x75f'),'msg':_0x3e61d7[_0x43f684('0x1e07')]?JSON[_0x43f684('0x100b')](_0x3e61d7['data']):_0x3e61d7[_0x43f684('0x1b75')]()});});function _0x28e7ad(){const _0xa3f86b=_0x77be2b;_0x5bf84c[_0xa3f86b('0x1d4a')]=[];const _0x2ca800=[];_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x1810')]&&_0x5bf84c[_0xa3f86b('0x172')]['type'][_0xa3f86b('0x1e68')]()===_0xa3f86b('0xb33')&&_0x5bf84c['queue'][_0xa3f86b('0x9d7')]===_0xa3f86b('0x2150')&&(_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0xa04')]=_0x4c1921[_0xa3f86b('0x1429')]?(_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x23f7')]||'')+_0xa3f86b('0x1957')+_0x4c1921[_0xa3f86b('0x1429')]+'}':(_0x5bf84c[_0xa3f86b('0x172')]['prefix']||'')+_0xa3f86b('0x1dc5'),_0x4c1921[_0xa3f86b('0x76c')]!==_0xa3f86b('0x2741')?_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x2010')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x2010')]+=_0xa3f86b('0x2474')):_0x5bf84c[_0xa3f86b('0x172')]['options']=_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x2010')]['replace'](_0xa3f86b('0x2474'),''));const _0x7d258b=_0x3c8d8a()[_0xa3f86b('0x18ab')](_0x5bf84c['queues'],{'name':_0x5bf84c[_0xa3f86b('0x172')]['queue']});_0x7d258b&&(_0x5bf84c['queue'][_0x3c8d8a()[_0xa3f86b('0x587')](_0xa3f86b('0x1503'))+'QueueId']=_0x7d258b['id']);if(_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x9d7')]&&_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x9d7')]===_0xa3f86b('0xbb4')){}else switch((_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x17e')]||_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x9d7')])[_0xa3f86b('0x1e68')]()){case'set':_0x5bf84c[_0xa3f86b('0x172')]['appdata']=_0x5bf84c[_0xa3f86b('0x172')]['name']+'='+_0x5bf84c['queue'][_0xa3f86b('0xa7b')];break;case'custom':break;default:_0x2ca800[0x0]=_0x5bf84c['queue'][_0xa3f86b('0x172')],_0x2ca800[0x1]=_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x1f84')],_0x5bf84c[_0xa3f86b('0x172')][_0xa3f86b('0x1c00')]=_0x2ca800['join'](',');}_0x52b634(_0x5bf84c[_0xa3f86b('0x172')]);}function _0x52b634(_0x2c4bd8){const _0x1c0878=_0x77be2b;_0x2560a1[_0x1c0878('0x1cf4')](_0x2c4bd8);}}const _0x14540e=_0x5da346;_0x6ef2ff[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'openchannelAccountApp',_0x566993('0x13f1'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x6ef2ff(_0x5441df,_0x47143a,_0x84ca56,_0x5f48eb,_0x238bb3,_0x13d9e4,_0x44220f,_0x274dbd){const _0x3d3ff0=_0x566993,_0x5e5841=this;_0x5e5841[_0x3d3ff0('0x155f')]=_0x44220f[_0x3d3ff0('0x14d4')](),_0x5e5841['errors']=[],_0x5e5841[_0x3d3ff0('0x20d6')]=_0x3d3ff0('0x16c7')+(_0x5f48eb[_0x3d3ff0('0x9d7')]||_0x5f48eb[_0x3d3ff0('0x17e')])['toUpperCase'](),_0x5e5841['system']=angular['copy'](_0x5f48eb),_0x5e5841[_0x3d3ff0('0x1dc1')]=_0x274dbd,_0x5e5841[_0x3d3ff0('0xb0')]={};if(_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1c00')])switch(_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x9d7')]?_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x9d7')][_0x3d3ff0('0x1e68')]():_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x17e')][_0x3d3ff0('0x1e68')]()){case _0x3d3ff0('0xbb4'):break;case'dialogflow':{const _0x1d2d1f=_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1c00')]['split'](',');_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x237a')]=_0x1d2d1f[0x0],_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x604')]=_0x1d2d1f[0x1],_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1a7')]=_0x1d2d1f[_0x3d3ff0('0x2456')](0x2,_0x1d2d1f['length'])[_0x3d3ff0('0x2259')](',');}break;case _0x3d3ff0('0x1680'):{const _0x575124=_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1c00')][_0x3d3ff0('0x43a')](',');_0x5e5841['system']['accesskeyid']=_0x575124[0x0],_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1d93')]=_0x575124[0x1],_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x10fc')]=_0x575124[0x2],_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x53')]=_0x575124[0x3],_0x5e5841[_0x3d3ff0('0x1ed')]['welcomemessage']=_0x575124[_0x3d3ff0('0x2456')](0x4,_0x575124['length'])[_0x3d3ff0('0x2259')](',');}break;case _0x3d3ff0('0x23fe'):{const _0x1f61e2=_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1c00')][_0x3d3ff0('0x43a')](',');_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x611')]=isNaN(_0x1f61e2[0x0])?_0x1f61e2[0x0]:parseInt(_0x1f61e2[0x0],0xa),_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x86e')]=_0x1f61e2[_0x3d3ff0('0x2456')](0x1,_0x1f61e2[_0x3d3ff0('0x543')])['join'](',');}break;case _0x3d3ff0('0x67f'):_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x86e')]=_0x5e5841['system'][_0x3d3ff0('0x1c00')];break;case _0x3d3ff0('0x256d'):_0x5e5841['system'][_0x3d3ff0('0x10ad')]=_0x5e5841['system'][_0x3d3ff0('0x1c00')][_0x3d3ff0('0x43a')]('=')[0x0],_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0xa7b')]=_0x5e5841[_0x3d3ff0('0x1ed')]['appdata']['split']('=')[0x1];break;case _0x3d3ff0('0x2426'):_0x5e5841[_0x3d3ff0('0x1ed')]['project']=_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1c00')];break;default:{const _0x26f06f=_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1c00')][_0x3d3ff0('0x43a')](',');_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0xdc4')]=_0x3c8d8a()[_0x3d3ff0('0x1a56')](_0x26f06f[0x0])?_0x26f06f[0x0]:isNaN(_0x26f06f[0x0])?_0x26f06f[0x0]:parseInt(_0x26f06f[0x0],0xa),_0x5e5841['system'][_0x3d3ff0('0x1b56')]=_0x3c8d8a()[_0x3d3ff0('0x1a56')](_0x26f06f[0x1])?_0x26f06f[0x1]:isNaN(_0x26f06f[0x1])?_0x26f06f[0x1]:parseInt(_0x26f06f[0x1],0xa);}break;}else _0x5e5841[_0x3d3ff0('0x1ed')]['variable']='';_0x5e5841[_0x3d3ff0('0x1ed')]['type']&&_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1810')][_0x3d3ff0('0x1e68')]()==='outbound'&&_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x9d7')]['toLowerCase']()===_0x3d3ff0('0x1edc')&&(_0x5e5841['system'][_0x3d3ff0('0x23f7')]=_0x5e5841[_0x3d3ff0('0x1ed')]['phone']?_0x5e5841[_0x3d3ff0('0x1ed')]['phone'][_0x3d3ff0('0x43a')]('$')[0x0]:undefined,_0x5e5841[_0x3d3ff0('0x1ed')][_0x3d3ff0('0x1961')]=_0x5e5841['system'][_0x3d3ff0('0xe95')]?_0x3d3ff0('0x20a8')+_0x5e5841['system'][_0x3d3ff0('0xe95')]:undefined);_0x5e5841[_0x3d3ff0('0x11f5')]=_0x39ba72,_0x5e5841[_0x3d3ff0('0x18e2')]=_0x4b67af,_0x44220f[_0x3d3ff0('0x1b4e')](_0x3d3ff0('0x79b'))?_0x13d9e4[_0x3d3ff0('0x1b56')][_0x3d3ff0('0x1d97')]({'fields':_0x3d3ff0('0xd52'),'sort':_0x3d3ff0('0x10ad'),'nolimit':_0x3d3ff0('0x799')})['$promise'][_0x3d3ff0('0x173b')](function(_0x152265){const _0x245291=_0x3d3ff0;_0x5e5841[_0x245291('0x2715')]=_0x152265['rows']||[];})['catch'](function(_0x5b2ef9){const _0x1d081e=_0x3d3ff0;_0x84ca56[_0x1d081e('0x15aa')]({'title':_0x5b2ef9[_0x1d081e('0x276f')]?'API:'+_0x5b2ef9['status']+'\x20-\x20'+_0x5b2ef9['statusText']:_0x1d081e('0x1d22'),'msg':_0x5b2ef9[_0x1d081e('0x1e07')]?JSON['stringify'](_0x5b2ef9['data']):_0x5b2ef9['toString']()});}):_0x13d9e4[_0x3d3ff0('0x1b56')]['get']({'fields':_0x3d3ff0('0xd52'),'sort':'name','nolimit':'true'})[_0x3d3ff0('0x1964')][_0x3d3ff0('0x173b')](function(_0x555f8f){const _0x57223b=_0x3d3ff0;_0x5e5841['variables']=_0x555f8f[_0x57223b('0x6aa')]||[];})['then'](function(){const _0x415671=_0x3d3ff0;return _0x13d9e4['userProfileSection']['get']({'userProfileId':_0x5e5841[_0x415671('0x155f')]['userProfileId'],'sectionId':0x3f4})[_0x415671('0x1964')];})[_0x3d3ff0('0x173b')](function(_0x36850d){const _0x47a64d=_0x3d3ff0,_0x405e98=_0x36850d&&_0x36850d['rows']?_0x36850d[_0x47a64d('0x6aa')][0x0]:null;if(!_0x405e98){const _0x3b07f0=[];let _0x4d6687=null;_0x5e5841[_0x47a64d('0x1ed')]&&(_0x4d6687=_0x3c8d8a()[_0x47a64d('0x18ab')](_0x5e5841[_0x47a64d('0x2715')],{'name':_0x5e5841['system'][_0x47a64d('0x1b56')]}));for(let _0x42179e=0x0;_0x42179e<_0x5e5841[_0x47a64d('0x2715')][_0x47a64d('0x543')];_0x42179e++){_0x4d6687&&_0x5e5841[_0x47a64d('0x2715')][_0x42179e]['id']===_0x4d6687['id']&&(_0x5e5841[_0x47a64d('0x2715')][_0x42179e][_0x47a64d('0x268e')]=![],_0x3b07f0[_0x47a64d('0x18bb')](_0x5e5841[_0x47a64d('0x2715')][_0x42179e]));}_0x5e5841[_0x47a64d('0x2715')]=_0x3b07f0;}else{if(!_0x405e98['autoAssociation'])return _0x13d9e4[_0x47a64d('0xda9')][_0x47a64d('0x1d97')]({'sectionId':_0x405e98['id']})[_0x47a64d('0x1964')][_0x47a64d('0x173b')](function(_0x1d9df3){const _0x2e7b4d=_0x47a64d,_0x19b620=_0x3c8d8a()[_0x2e7b4d('0x8a2')](_0x1d9df3[_0x2e7b4d('0x6aa')],function(_0x293339){const _0x48681a=_0x2e7b4d;return _0x3c8d8a()[_0x48681a('0x18ab')](_0x5e5841[_0x48681a('0x2715')],{'id':_0x293339[_0x48681a('0x1ce0')]});});let _0x1a8fb6=null;_0x5e5841[_0x2e7b4d('0x1ed')]&&(_0x1a8fb6=_0x3c8d8a()[_0x2e7b4d('0x18ab')](_0x5e5841[_0x2e7b4d('0x2715')],{'name':_0x5e5841['system'][_0x2e7b4d('0x1b56')]}));if(_0x1a8fb6&&!_0x3c8d8a()['some'](_0x19b620,['id',_0x1a8fb6['id']])){const _0x51079c=_0x3c8d8a()[_0x2e7b4d('0x18ab')](_0x5e5841['variables'],{'id':_0x1a8fb6['id']});_0x51079c['canSelect']=![],_0x19b620[_0x2e7b4d('0x18bb')](_0x51079c);}_0x5e5841[_0x2e7b4d('0x2715')]=_0x19b620;});}})[_0x3d3ff0('0x103c')](function(_0x2b1cca){const _0x3b6473=_0x3d3ff0;_0x84ca56[_0x3b6473('0x15aa')]({'title':_0x2b1cca[_0x3b6473('0x276f')]?_0x3b6473('0x137')+_0x2b1cca['status']+_0x3b6473('0x160c')+_0x2b1cca['statusText']:_0x3b6473('0x27a'),'msg':_0x2b1cca[_0x3b6473('0x1e07')]?JSON['stringify'](_0x2b1cca[_0x3b6473('0x1e07')]):_0x2b1cca[_0x3b6473('0x1b75')]()});});function _0x39ba72(){const _0x5d9171=_0x3d3ff0;_0x5e5841[_0x5d9171('0x1d4a')]=[];const _0x4a6659=[];_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x1810')]&&_0x5e5841[_0x5d9171('0x1ed')]['type'][_0x5d9171('0x1e68')]()==='outbound'&&_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x9d7')]==='outboundDial'&&(_0x5e5841['system'][_0x5d9171('0xa04')]=_0x238bb3['cutdigits']?(_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x23f7')]||'')+_0x5d9171('0x1957')+_0x238bb3[_0x5d9171('0x1429')]+'}':(_0x5e5841[_0x5d9171('0x1ed')]['prefix']||'')+_0x5d9171('0x1dc5'),_0x238bb3['recordingFormat']!=='none'?_0x5e5841['system']['options'][_0x5d9171('0x2087')](_0x5d9171('0x2474'))<0x0&&(_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x2010')]+='U(xcally-mixmonitor-context)'):_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x2010')]=_0x5e5841['system'][_0x5d9171('0x2010')][_0x5d9171('0x166c')](_0x5d9171('0x2474'),''));if(_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x9d7')]&&_0x5e5841[_0x5d9171('0x1ed')]['appType']===_0x5d9171('0xbb4')){}else switch((_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x17e')]||_0x5e5841['system']['appType'])['toLowerCase']()){case _0x5d9171('0x256d'):_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x1c00')]=_0x5e5841[_0x5d9171('0x1ed')][_0x5d9171('0x10ad')]+'='+_0x5e5841['system'][_0x5d9171('0xa7b')];break;case _0x5d9171('0xbb4'):break;default:_0x4a6659[0x0]=_0x5e5841[_0x5d9171('0x1ed')]['command'],_0x4a6659[0x1]=_0x5e5841[_0x5d9171('0x1ed')]['variable'],_0x5e5841['system'][_0x5d9171('0x1c00')]=_0x4a6659['join'](',');}_0x4b67af(_0x5e5841[_0x5d9171('0x1ed')]);}function _0x4b67af(_0x23a615){const _0x33fa1e=_0x3d3ff0;_0x5441df[_0x33fa1e('0x1cf4')](_0x23a615);}}const _0x3f5a1f=_0x6ef2ff;_0x4824e7[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'openchannelAccountApp',_0x566993('0x13f1'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x4824e7(_0x1684b6,_0x395d7b,_0x4a9ece,_0x1906be,_0x320a09,_0x2d4033,_0x2cb52b,_0x3d0970){const _0x55b730=_0x566993,_0x2be737=this;_0x2be737[_0x55b730('0x155f')]=_0x2cb52b['getCurrentUser'](),_0x2be737[_0x55b730('0x1d4a')]=[],_0x2be737['title']=_0x55b730('0x16c7')+(_0x1906be[_0x55b730('0x9d7')]||_0x1906be['app'])[_0x55b730('0x1164')](),_0x2be737['tag']=angular['copy'](_0x1906be),_0x2be737[_0x55b730('0x1dc1')]=_0x3d0970,_0x2be737[_0x55b730('0xb0')]={};if(_0x2be737['tag'][_0x55b730('0x1c00')])switch(_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x9d7')]?_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x9d7')]['toLowerCase']():_0x2be737['tag'][_0x55b730('0x17e')][_0x55b730('0x1e68')]()){case _0x55b730('0xbb4'):break;case _0x55b730('0x1601'):{const _0x321ece=_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1c00')][_0x55b730('0x43a')](',');_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x237a')]=_0x321ece[0x0],_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x604')]=_0x321ece[0x1],_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1a7')]=_0x321ece[_0x55b730('0x2456')](0x2,_0x321ece[_0x55b730('0x543')])['join'](',');}break;case'amazonlex':{const _0x3f02a2=_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1c00')][_0x55b730('0x43a')](',');_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x2e0')]=_0x3f02a2[0x0],_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1d93')]=_0x3f02a2[0x1],_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x10fc')]=_0x3f02a2[0x2],_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x53')]=_0x3f02a2[0x3],_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1a7')]=_0x3f02a2[_0x55b730('0x2456')](0x4,_0x3f02a2[_0x55b730('0x543')])[_0x55b730('0x2259')](',');}break;case _0x55b730('0x23fe'):{const _0x3367eb=_0x2be737['tag']['appdata'][_0x55b730('0x43a')](',');_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x611')]=isNaN(_0x3367eb[0x0])?_0x3367eb[0x0]:parseInt(_0x3367eb[0x0],0xa),_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x86e')]=_0x3367eb[_0x55b730('0x2456')](0x1,_0x3367eb['length'])[_0x55b730('0x2259')](',');}break;case'message':_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x86e')]=_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1c00')];break;case _0x55b730('0x256d'):_0x2be737['tag'][_0x55b730('0x10ad')]=_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1c00')][_0x55b730('0x43a')]('=')[0x0],_0x2be737['tag'][_0x55b730('0xa7b')]=_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1c00')][_0x55b730('0x43a')]('=')[0x1];break;case _0x55b730('0x2426'):_0x2be737['tag']['project']=_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1c00')];break;default:{const _0x3e5435=_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1c00')][_0x55b730('0x43a')](',');_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x23b4')]=_0x3c8d8a()[_0x55b730('0x1a56')](_0x3e5435[0x0])?_0x3e5435[0x0]:isNaN(_0x3e5435[0x0])?_0x3e5435[0x0]:parseInt(_0x3e5435[0x0],0xa);}break;}else{}_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1810')]&&_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1810')]['toLowerCase']()===_0x55b730('0xb33')&&_0x2be737['tag'][_0x55b730('0x9d7')]['toLowerCase']()===_0x55b730('0x1edc')&&(_0x2be737['tag']['prefix']=_0x2be737[_0x55b730('0x23b4')][_0x55b730('0xa04')]?_0x2be737[_0x55b730('0x23b4')][_0x55b730('0xa04')][_0x55b730('0x43a')]('$')[0x0]:undefined,_0x2be737[_0x55b730('0x23b4')][_0x55b730('0x1961')]=_0x2be737['tag']['callerID']?'CALLERID(all)='+_0x2be737[_0x55b730('0x23b4')][_0x55b730('0xe95')]:undefined);_0x2be737[_0x55b730('0x11f5')]=_0x24be8d,_0x2be737['closeDialog']=_0x17a6ac,_0x2cb52b[_0x55b730('0x1b4e')](_0x55b730('0x79b'))?_0x2d4033[_0x55b730('0x23b4')][_0x55b730('0x1d97')]({'fields':'id,name','sort':_0x55b730('0x10ad'),'nolimit':_0x55b730('0x799')})['$promise']['then'](function(_0x288218){const _0x5e09b1=_0x55b730;_0x2be737[_0x5e09b1('0x22ac')]=_0x288218[_0x5e09b1('0x6aa')]||[];})[_0x55b730('0x103c')](function(_0x1f0289){const _0x1b8f45=_0x55b730;_0x4a9ece[_0x1b8f45('0x15aa')]({'title':_0x1f0289[_0x1b8f45('0x276f')]?_0x1b8f45('0x137')+_0x1f0289['status']+_0x1b8f45('0x160c')+_0x1f0289[_0x1b8f45('0x2696')]:'SYSTEM:GET_TAGS','msg':_0x1f0289[_0x1b8f45('0x1e07')]?JSON['stringify'](_0x1f0289[_0x1b8f45('0x1e07')]):_0x1f0289[_0x1b8f45('0x1b75')]()});}):_0x2d4033[_0x55b730('0x23b4')][_0x55b730('0x1d97')]({'fields':_0x55b730('0xd52'),'sort':'name','nolimit':_0x55b730('0x799')})[_0x55b730('0x1964')][_0x55b730('0x173b')](function(_0x7cf675){const _0x1cf385=_0x55b730;_0x2be737[_0x1cf385('0x22ac')]=_0x7cf675[_0x1cf385('0x6aa')]||[];})[_0x55b730('0x173b')](function(){const _0x1e6b12=_0x55b730;return _0x2d4033[_0x1e6b12('0x170e')][_0x1e6b12('0x1d97')]({'userProfileId':_0x2be737[_0x1e6b12('0x155f')]['userProfileId'],'sectionId':0x3f0})[_0x1e6b12('0x1964')];})['then'](function(_0x4ec6c6){const _0x28d58b=_0x55b730,_0x2cc03b=_0x4ec6c6&&_0x4ec6c6['rows']?_0x4ec6c6[_0x28d58b('0x6aa')][0x0]:null;if(!_0x2cc03b){const _0x2131ac=[];let _0x12a247=null;_0x2be737[_0x28d58b('0x23b4')]&&(_0x12a247=_0x3c8d8a()['find'](_0x2be737[_0x28d58b('0x22ac')],{'name':_0x2be737[_0x28d58b('0x23b4')][_0x28d58b('0x23b4')]}));for(let _0x375011=0x0;_0x375011<_0x2be737[_0x28d58b('0x22ac')]['length'];_0x375011++){_0x12a247&&_0x2be737[_0x28d58b('0x22ac')][_0x375011]['id']===_0x12a247['id']&&(_0x2be737[_0x28d58b('0x22ac')][_0x375011]['canSelect']=![],_0x2131ac['push'](_0x2be737[_0x28d58b('0x22ac')][_0x375011]));}_0x2be737[_0x28d58b('0x22ac')]=_0x2131ac;}else{if(!_0x2cc03b[_0x28d58b('0x273e')])return _0x2d4033[_0x28d58b('0xda9')][_0x28d58b('0x1d97')]({'sectionId':_0x2cc03b['id']})[_0x28d58b('0x1964')][_0x28d58b('0x173b')](function(_0x2d17f0){const _0x185dac=_0x28d58b,_0x668c45=_0x3c8d8a()[_0x185dac('0x8a2')](_0x2d17f0[_0x185dac('0x6aa')],function(_0x3444bd){const _0x7f987b=_0x185dac;return _0x3c8d8a()[_0x7f987b('0x18ab')](_0x2be737[_0x7f987b('0x22ac')],{'id':_0x3444bd['resourceId']});});let _0x421339=null;_0x2be737['tag']&&(_0x421339=_0x3c8d8a()[_0x185dac('0x18ab')](_0x2be737[_0x185dac('0x22ac')],{'name':_0x2be737[_0x185dac('0x23b4')][_0x185dac('0x23b4')]}));if(_0x421339&&!_0x3c8d8a()[_0x185dac('0x1ec')](_0x668c45,['id',_0x421339['id']])){const _0x50ec96=_0x3c8d8a()[_0x185dac('0x18ab')](_0x2be737[_0x185dac('0x22ac')],{'id':_0x421339['id']});_0x50ec96['canSelect']=![],_0x668c45[_0x185dac('0x18bb')](_0x50ec96);}_0x2be737['tags']=_0x668c45;});}})[_0x55b730('0x103c')](function(_0x52a887){const _0x4d34af=_0x55b730;_0x4a9ece[_0x4d34af('0x15aa')]({'title':_0x52a887[_0x4d34af('0x276f')]?'API:'+_0x52a887['status']+_0x4d34af('0x160c')+_0x52a887[_0x4d34af('0x2696')]:'SYSTEM:GETtags','msg':_0x52a887[_0x4d34af('0x1e07')]?JSON[_0x4d34af('0x100b')](_0x52a887[_0x4d34af('0x1e07')]):_0x52a887[_0x4d34af('0x1b75')]()});});function _0x24be8d(){const _0x12529c=_0x55b730;_0x2be737[_0x12529c('0x1d4a')]=[];const _0x5a445f=[];_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x1810')]&&_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x1810')][_0x12529c('0x1e68')]()===_0x12529c('0xb33')&&_0x2be737['tag'][_0x12529c('0x9d7')]==='outboundDial'&&(_0x2be737[_0x12529c('0x23b4')][_0x12529c('0xa04')]=_0x320a09[_0x12529c('0x1429')]?(_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x23f7')]||'')+'${EXTEN:'+_0x320a09[_0x12529c('0x1429')]+'}':(_0x2be737[_0x12529c('0x23b4')]['prefix']||'')+_0x12529c('0x1dc5'),_0x320a09['recordingFormat']!==_0x12529c('0x2741')?_0x2be737['tag'][_0x12529c('0x2010')][_0x12529c('0x2087')](_0x12529c('0x2474'))<0x0&&(_0x2be737['tag'][_0x12529c('0x2010')]+=_0x12529c('0x2474')):_0x2be737['tag'][_0x12529c('0x2010')]=_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x2010')]['replace'](_0x12529c('0x2474'),''));const _0x131ba6=_0x3c8d8a()[_0x12529c('0x18ab')](_0x2be737[_0x12529c('0x22ac')],{'name':_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x23b4')]});_0x131ba6&&(_0x2be737[_0x12529c('0x23b4')][_0x12529c('0xe46')]=_0x131ba6['id']);if(_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x9d7')]&&_0x2be737[_0x12529c('0x23b4')]['appType']===_0x12529c('0xbb4')){}else switch((_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x17e')]||_0x2be737[_0x12529c('0x23b4')]['appType'])['toLowerCase']()){case _0x12529c('0x256d'):_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x1c00')]=_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x10ad')]+'='+_0x2be737[_0x12529c('0x23b4')][_0x12529c('0xa7b')];break;case'custom':break;default:_0x5a445f[0x0]=_0x2be737[_0x12529c('0x23b4')][_0x12529c('0x23b4')],_0x2be737['tag'][_0x12529c('0x1c00')]=_0x5a445f[_0x12529c('0x2259')](',');}_0x17a6ac(_0x2be737[_0x12529c('0x23b4')]);}function _0x17a6ac(_0x492255){const _0x32dfcb=_0x55b730;_0x1684b6[_0x32dfcb('0x1cf4')](_0x492255);}}const _0x1264c2=_0x4824e7;_0x686177[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),'api',_0x566993('0x1600')];function _0x686177(_0xa42fad,_0x226cff,_0x41dbc5,_0x32d240,_0x59e72c,_0x3faa1c,_0x3916b2,_0x5003a6,_0x346ea7,_0x2ff4be,_0x36e5df){const _0x18b060=_0x566993,_0x32b09f=this;_0x32b09f['currentUser']=_0x36e5df['getCurrentUser'](),_0x32b09f['openchannelAccount']={},_0x32b09f[_0x18b060('0x1e29')]={'count':0x0,'rows':[]},_0x32b09f[_0x18b060('0x2570')]=[],_0x32b09f[_0x18b060('0x1dc1')],_0x32b09f[_0x18b060('0xc49')]={'read':_0x18b060('0x877'),'closed':_0x18b060('0x877'),'sort':_0x18b060('0x1cad'),'includeAll':_0x18b060('0x799'),'limit':0xa,'page':0x1},_0x32b09f[_0x18b060('0xb9c')]=_0x368248,_0x32b09f[_0x18b060('0x2051')]=_0x48d56a,_0x32b09f[_0x18b060('0x139b')]=_0x2e5d22,_0x32b09f[_0x18b060('0xdfe')]=_0x14a16d,_0x32b09f[_0x18b060('0x1731')]=_0x3ae558,_0x32b09f[_0x18b060('0xedf')]=_0x257de1,_0x32b09f[_0x18b060('0x6f1')]=_0x241260,_0x32b09f['exportSelectedOpenchannelAccountInteractions']=_0x5b5b6f,_0x32b09f[_0x18b060('0x1d32')]=_0x539db7,_0x32b09f[_0x18b060('0x1640')]=_0x35b4c6;function _0x368248(_0x4e1a58,_0x3287ce){const _0x37a684=_0x18b060;_0x32b09f[_0x37a684('0x13f1')]=_0x4e1a58,_0x32b09f[_0x37a684('0x1dc1')]=typeof _0x3287ce!==_0x37a684('0x6e5')?_0x3287ce:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32b09f[_0x37a684('0xc49')]['OpenchannelAccountId']=_0x32b09f['openchannelAccount']['id'],_0x32b09f[_0x37a684('0x2706')]={'fields':_0x41b2e9()},_0x4ca182();}function _0x4ca182(){const _0x2f501a=_0x18b060;return _0x2ff4be[_0x2f501a('0x23b4')][_0x2f501a('0x1d97')]()[_0x2f501a('0x1964')][_0x2f501a('0x173b')](function(_0x1a4dfb){const _0xf00aea=_0x2f501a;_0x32b09f[_0xf00aea('0x22ac')]=_0x1a4dfb||{'count':0x0,'rows':[]};})['then'](function(){const _0x401445=_0x2f501a;_0x32b09f[_0x401445('0x485')]=_0x1366b4();});}function _0x1366b4(){const _0x58eed3=_0x18b060;return[{'name':_0x58eed3('0x1406'),'key':'createdAt','type':'date','label':_0x58eed3('0xa98')},{'name':_0x58eed3('0x2634'),'key':_0x58eed3('0x69b'),'type':_0x58eed3('0xc65'),'label':_0x58eed3('0x1881'),'customOptions':[{'value':0x0,'translate':_0x58eed3('0x1015')},{'value':0x1,'translate':_0x58eed3('0x1170')},{'value':null,'translate':_0x58eed3('0x47a')}]},{'name':_0x58eed3('0xef8'),'key':_0x58eed3('0x1636'),'type':_0x58eed3('0xc65'),'label':_0x58eed3('0x1647'),'customOptions':[{'value':0x0,'translate':_0x58eed3('0x163c')},{'value':0x1,'translate':_0x58eed3('0x1389')},{'value':null,'translate':_0x58eed3('0x47a')}]},{'name':_0x58eed3('0x1547'),'key':_0x58eed3('0x181c'),'type':'select','label':_0x58eed3('0x956'),'customOptions':[{'value':'null','translate':_0x58eed3('0x27a8')},{'value':undefined,'translate':_0x58eed3('0x47a')}]},{'name':_0x58eed3('0x460'),'key':'tag','type':_0x58eed3('0x1c68'),'label':_0x58eed3('0x1e6f'),'options':_0x32b09f[_0x58eed3('0x22ac')][_0x58eed3('0x6aa')],'placeholder':_0x58eed3('0x96')}];}function _0x41b2e9(){const _0x1f9329=_0x18b060;return[{'name':'Id','column':'id','type':_0x1f9329('0x1d81')},{'name':_0x1f9329('0x1f70'),'column':_0x1f9329('0x1f70'),'type':_0x1f9329('0xe92'),'options':{'searchFields':[_0x1f9329('0x1e50'),_0x1f9329('0x1806'),_0x1f9329('0x28e')],'route':{'model':_0x1f9329('0x1197'),'action':_0x1f9329('0x1d97'),'params':{'fields':_0x1f9329('0x1cf0'),'Contact':_0x1f9329('0xdd7'),'nolimit':!![]}},'extraOperators':[_0x1f9329('0x2694')],'excludedOperators':['$ne']}},{'name':_0x1f9329('0x224f'),'column':_0x1f9329('0x11bc'),'type':'text','options':{'excludedOperators':[_0x1f9329('0xc0c'),'$ne']}},{'name':'Body','column':_0x1f9329('0x1405'),'type':_0x1f9329('0x86e'),'options':{'excludedOperators':[_0x1f9329('0xc0c'),_0x1f9329('0x10be')]}},{'name':_0x1f9329('0xef8'),'column':_0x1f9329('0x1636'),'type':_0x1f9329('0xc65'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x1f9329('0x10be')]}},{'name':_0x1f9329('0x1547'),'column':'User','type':_0x1f9329('0xe92'),'options':{'table':'i','route':{'model':'user','action':_0x1f9329('0x1d97'),'params':{'role':_0x1f9329('0x7b0'),'fields':_0x1f9329('0x112d'),'nolimit':!![]}},'searchFields':[_0x1f9329('0x572'),_0x1f9329('0x10ad')],'extraOperators':[_0x1f9329('0x2694')],'excludedOperators':[_0x1f9329('0x10be')]}},{'name':'Tags','column':_0x1f9329('0x460'),'type':_0x1f9329('0x1c68'),'options':{'route':{'model':_0x1f9329('0x23b4'),'action':_0x1f9329('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':'Start\x20Date','column':_0x1f9329('0xda8'),'type':_0x1f9329('0x22b6'),'options':{'excludedOperators':[_0x1f9329('0x10be')]}},{'name':_0x1f9329('0x247a'),'column':_0x1f9329('0x25e9'),'type':_0x1f9329('0xc65'),'values':[{'id':0x1,'translate':_0x1f9329('0x1170')},{'id':0x0,'translate':_0x1f9329('0x1015')}],'options':{'excludedOperators':[_0x1f9329('0x10be')]}}];}function _0x241260(){const _0x17744e=_0x18b060;_0x3916b2[_0x17744e('0x1cb7')]({'controller':_0x17744e('0x1c5b'),'controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x17744e('0xb6d')](_0x5003a6[_0x17744e('0x1a5')]),'clickOutsideToClose':![],'locals':{'fields':_0x32b09f[_0x17744e('0x2706')][_0x17744e('0x2340')],'color':undefined,'storagePath':'openchannel.openchannelAccounts'},'fullscreen':!![]})[_0x17744e('0x173b')](function(_0x372b8a){const _0x5ce1bb=_0x17744e;_0x32b09f[_0x5ce1bb('0xc49')]['search']=_0x372b8a===![]?undefined:_0x372b8a;if(_0x32b09f['query'][_0x5ce1bb('0x23e7')])_0x3ae558();else _0x372b8a===![]&&_0x3ae558();})[_0x17744e('0x103c')](function(_0x578e3d){const _0x5c93d5=_0x17744e;_0x346ea7[_0x5c93d5('0x15aa')]({'title':_0x5c93d5('0x280c'),'msg':_0x578e3d['data']?JSON[_0x5c93d5('0x100b')](_0x578e3d[_0x5c93d5('0x1e07')]['message']):_0x578e3d['toString']()});});}function _0x2e5d22(_0x4dc1eb,_0x293eaa,_0x16ff8e){const _0x5f2346=_0x18b060;return _0x2ff4be['openchannelInteraction'][_0x5f2346('0xfce')]({'id':_0x4dc1eb['id'],'exists':!![],'attachments':_0x16ff8e})[_0x5f2346('0x1964')][_0x5f2346('0x173b')](function(_0x418bac){const _0x3e7d05=_0x5f2346,_0x3dd320=[_0x418bac['buffer']];let _0x4d3177=_0x3e7d05('0x8d6')+_0x4dc1eb['id'];const _0x45ac11=new Blob(_0x3dd320,{'type':_0x418bac[_0x3e7d05('0x1810')]});_0x4d3177='openchannel-interaction'+_0x4dc1eb['id']+_0x3e7d05('0x1421');const _0x5c6f74=window[_0x3e7d05('0x222a')][_0x3e7d05('0x1258')]('a');_0x5c6f74[_0x3e7d05('0x11c3')](_0x3e7d05('0x165c'),URL[_0x3e7d05('0x1466')](_0x45ac11)),_0x5c6f74[_0x3e7d05('0x11c3')](_0x3e7d05('0xfce'),_0x4d3177),document[_0x3e7d05('0x1a5')][_0x3e7d05('0x1f8d')](_0x5c6f74),_0x5c6f74['click']();})[_0x5f2346('0x103c')](function(_0x25977b){const _0x5e4e72=_0x5f2346;if(_0x25977b['data']&&_0x25977b[_0x5e4e72('0x1e07')][_0x5e4e72('0x1d4a')]&&_0x25977b['data'][_0x5e4e72('0x1d4a')][_0x5e4e72('0x543')])for(let _0x2ca269=0x0;_0x2ca269<_0x25977b[_0x5e4e72('0x1e07')][_0x5e4e72('0x1d4a')][_0x5e4e72('0x543')];_0x2ca269+=0x1){_0x346ea7[_0x5e4e72('0x15aa')]({'title':_0x25977b['data'][_0x5e4e72('0x1d4a')][_0x2ca269][_0x5e4e72('0x1810')],'msg':_0x25977b['data']['errors'][_0x2ca269][_0x5e4e72('0x67f')]});}else _0x346ea7[_0x5e4e72('0x15aa')]({'title':_0x25977b[_0x5e4e72('0x276f')]?_0x5e4e72('0x137')+_0x25977b[_0x5e4e72('0x276f')]+_0x5e4e72('0x160c')+_0x25977b['statusText']:_0x5e4e72('0x231'),'msg':_0x25977b[_0x5e4e72('0x1e07')]?JSON[_0x5e4e72('0x100b')](_0x25977b[_0x5e4e72('0x1e07')]['message']):_0x25977b[_0x5e4e72('0x1b75')]()});});}function _0x48d56a(_0x3546d3,_0x1f89a7){const _0xe4d694=_0x18b060,_0x5d1246=_0x3916b2[_0xe4d694('0x1d02')]()['title'](_0xe4d694('0x1169'))[_0xe4d694('0xf8b')](_0xe4d694('0x15b9')+(_0x3546d3[_0xe4d694('0x10ad')]||_0x3546d3['id']&&_0x3c8d8a()[_0xe4d694('0x5ba')](_0xe4d694('0x1523'))+_0x3546d3['id']||_0xe4d694('0x8d6'))+_0xe4d694('0x24be')+_0xe4d694('0xd23'))[_0xe4d694('0x217')]('delete\x20interaction')[_0xe4d694('0x21de')](_0x1f89a7)['ok']('OK')[_0xe4d694('0x1e1f')](_0xe4d694('0x468'));_0x3916b2[_0xe4d694('0x1cb7')](_0x5d1246)[_0xe4d694('0x173b')](function(){_0x539db7(_0x3546d3);},function(){const _0x2a8ac9=_0xe4d694;console[_0x2a8ac9('0xe37')]('CANCEL');});}function _0x14a16d(_0x25e217){const _0x4516fb=_0x18b060;_0x32b09f['openchannelAccountInteractions']=_0x25e217||{'count':0x0,'rows':[]};for(let _0x5ed1a7=0x0;_0x5ed1a7<_0x32b09f[_0x4516fb('0x1e29')][_0x4516fb('0x6aa')][_0x4516fb('0x543')];_0x5ed1a7+=0x1){const _0x2db56e=_0x32b09f[_0x4516fb('0x1e29')][_0x4516fb('0x6aa')][_0x5ed1a7];_0x3f0374(_0x2db56e),_0x2db56e[_0x4516fb('0x274f')][_0x4516fb('0x10ad')]=_0x3ca615(_0x2db56e);}}function _0x3ae558(){const _0x4ddac4=_0x18b060;_0x32b09f[_0x4ddac4('0xc49')]['offset']=(_0x32b09f[_0x4ddac4('0xc49')][_0x4ddac4('0x182e')]-0x1)*_0x32b09f['query'][_0x4ddac4('0x3e')],_0x32b09f['promise']=_0x2ff4be[_0x4ddac4('0x2376')]['get'](_0x32b09f[_0x4ddac4('0xc49')],_0x14a16d)[_0x4ddac4('0x1964')];}function _0x257de1(_0x416f17,_0x376761){_0x3916b2['show']({'controller':'AgentGeneralInteractionController','controllerAs':'vm','templateUrl':_0x4717ab,'parent':angular['element'](_0x5003a6['body']),'targetEvent':_0x416f17,'clickOutsideToClose':!![],'onShowing':function(_0x5e18fd){const _0x5ea7a5=a0_0xde5e;_0x5e18fd['vm'][_0x5ea7a5('0xb9c')]({'id':0x1,'channel':_0x5ea7a5('0xab2'),'interaction':_0x376761,'spy':!![]},_0x226cff[_0x5ea7a5('0x1d44')]['vm'][_0x5ea7a5('0x251')]);}});}function _0x539db7(_0x29eea1){const _0x2aafeb=_0x18b060;_0x2ff4be[_0x2aafeb('0x2376')][_0x2aafeb('0x15e8')]({'id':_0x29eea1['id']})[_0x2aafeb('0x1964')]['then'](function(){const _0xfa35c2=_0x2aafeb;_0x3c8d8a()[_0xfa35c2('0x1a8b')](_0x32b09f[_0xfa35c2('0x1e29')][_0xfa35c2('0x6aa')],{'id':_0x29eea1['id']}),_0x32b09f[_0xfa35c2('0x1e29')][_0xfa35c2('0x1a2f')]-=0x1,!_0x32b09f['openchannelAccountInteractions'][_0xfa35c2('0x6aa')][_0xfa35c2('0x543')]&&_0x3ae558(),_0x346ea7[_0xfa35c2('0xdfe')]({'title':_0xfa35c2('0x22c0'),'msg':_0x29eea1[_0xfa35c2('0x10ad')]?_0x29eea1[_0xfa35c2('0x10ad')]+_0xfa35c2('0x25d2'):''});})[_0x2aafeb('0x103c')](function(_0x2694dd){const _0x5d39bd=_0x2aafeb;if(_0x2694dd[_0x5d39bd('0x1e07')]&&_0x2694dd[_0x5d39bd('0x1e07')][_0x5d39bd('0x1d4a')]&&_0x2694dd['data'][_0x5d39bd('0x1d4a')][_0x5d39bd('0x543')]){_0x32b09f[_0x5d39bd('0x1d4a')]=_0x2694dd[_0x5d39bd('0x1e07')][_0x5d39bd('0x1d4a')]||[{'message':_0x2694dd[_0x5d39bd('0x1b75')](),'type':_0x5d39bd('0x1b0e')}];for(let _0x36fa87=0x0;_0x36fa87<_0x2694dd[_0x5d39bd('0x1e07')][_0x5d39bd('0x1d4a')][_0x5d39bd('0x543')];_0x36fa87++){_0x346ea7[_0x5d39bd('0x15aa')]({'title':_0x2694dd[_0x5d39bd('0x1e07')][_0x5d39bd('0x1d4a')][_0x36fa87][_0x5d39bd('0x1810')],'msg':_0x2694dd['data'][_0x5d39bd('0x1d4a')][_0x36fa87]['message']});}}else _0x346ea7[_0x5d39bd('0x15aa')]({'title':_0x2694dd['status']?_0x5d39bd('0x137')+_0x2694dd[_0x5d39bd('0x276f')]+'\x20-\x20'+_0x2694dd[_0x5d39bd('0x2696')]:_0x5d39bd('0x1b0e'),'msg':_0x2694dd[_0x5d39bd('0x1e07')]?JSON[_0x5d39bd('0x100b')](_0x2694dd[_0x5d39bd('0x1e07')]['message']):_0x2694dd[_0x5d39bd('0x67f')]||_0x2694dd[_0x5d39bd('0x1b75')]()});});}function _0x5b5b6f(){const _0x5a66a5=_0x18b060,_0x46b866=angular[_0x5a66a5('0x2e3')](_0x32b09f[_0x5a66a5('0x2570')]);return _0x32b09f['selectedOpenchannelAccountInteractions']=[],_0x46b866;}function _0x35b4c6(_0x50b8eb){const _0x58bfbb=_0x18b060,_0x4e8c1d=_0x3916b2[_0x58bfbb('0x1d02')]()[_0x58bfbb('0x20d6')](_0x58bfbb('0x568'))[_0x58bfbb('0xf8b')](_0x58bfbb('0x15b9')+_0x32b09f[_0x58bfbb('0x2570')][_0x58bfbb('0x543')]+_0x58bfbb('0xcb4')+_0x58bfbb('0xd23'))['ariaLabel']('delete\x20interactions')[_0x58bfbb('0x21de')](_0x50b8eb)['ok']('OK')[_0x58bfbb('0x1e1f')]('CANCEL');_0x3916b2[_0x58bfbb('0x1cb7')](_0x4e8c1d)['then'](function(){const _0x318232=_0x58bfbb;_0x32b09f[_0x318232('0x2570')][_0x318232('0xa6a')](function(_0x40cf8a){_0x539db7(_0x40cf8a);}),_0x32b09f['selectedOpenchannelAccountInteractions']=[];});}function _0x3f0374(_0x4b28ea){const _0x1b3fd6=_0x18b060;if(_0x4b28ea['from'])_0x4b28ea[_0x1b3fd6('0x98d')]=_0x4b28ea['from'];else _0x4b28ea[_0x1b3fd6('0x1f70')]?_0x4b28ea[_0x1b3fd6('0x98d')]=(_0x4b28ea[_0x1b3fd6('0x1f70')][_0x1b3fd6('0x1e50')]||'')+'\x20'+(_0x4b28ea[_0x1b3fd6('0x1f70')][_0x1b3fd6('0x1806')]||''):_0x4b28ea[_0x1b3fd6('0x98d')]=_0x59e72c['instant']('OPENCHANNEL.UNKNOWN');}function _0x3ca615(_0x4a8743){const _0xb5e247=_0x18b060;if(_0x4a8743[_0xb5e247('0x181c')])return _0x4a8743[_0xb5e247('0x181c')]===_0x32b09f[_0xb5e247('0x155f')]['id']?_0x59e72c['instant'](_0xb5e247('0x2449')):_0x4a8743['Owner']['fullname']+'\x20<'+_0x4a8743['Owner'][_0xb5e247('0x138c')]+'>';return _0x59e72c['instant']('DASHBOARDS.NOT_ASSIGNED');}let _0x27249b=!![],_0x1d2c5d=0x1;_0x226cff[_0x18b060('0x1bdb')](_0x18b060('0x5b8'),function(_0x3c22a9,_0x5b0d29){const _0xa86c83=_0x18b060;_0x27249b?_0x3faa1c(function(){_0x27249b=![];}):(!_0x5b0d29&&(_0x1d2c5d=_0x32b09f[_0xa86c83('0xc49')][_0xa86c83('0x182e')]),_0x3c22a9!==_0x5b0d29&&(_0x32b09f[_0xa86c83('0xc49')][_0xa86c83('0x182e')]=0x1),!_0x3c22a9&&(_0x32b09f['query'][_0xa86c83('0x182e')]=_0x1d2c5d),_0x3ae558());});}const _0x574cf3=_0x686177,_0x45685f=_0x21a6a1['p']+_0x566993('0x1254');_0x509eaf[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'toasty',_0x566993('0xbd4'),_0x566993('0x1600')];function _0x509eaf(_0xef7000,_0x37687d,_0x44b9d0,_0x50f6fd,_0x57affe,_0x3c59cc,_0x35f4e3,_0x3d6699,_0x2961ac,_0x462752,_0x5be4ee){const _0x31fb9c=_0x566993,_0x1248a7=this;_0x1248a7[_0x31fb9c('0x155f')]=_0x5be4ee[_0x31fb9c('0x14d4')](),_0x1248a7[_0x31fb9c('0x13f1')]={},_0x1248a7[_0x31fb9c('0x63c')]={'count':0x0,'rows':[]},_0x1248a7[_0x31fb9c('0x233f')]=[],_0x1248a7[_0x31fb9c('0x1dc1')],_0x1248a7[_0x31fb9c('0xc49')]={'fields':_0x31fb9c('0x1f12'),'limit':0xa,'page':0x1},_0x1248a7[_0x31fb9c('0xb9c')]=_0x1e7457,_0x1248a7[_0x31fb9c('0x2051')]=_0x3b5f83,_0x1248a7[_0x31fb9c('0xdfe')]=_0x22dd79,_0x1248a7[_0x31fb9c('0x1a30')]=_0x201e5b,_0x1248a7['createOrEditOpenchannelAccountOpenchannelCannedAnswer']=_0x51a3d4,_0x1248a7[_0x31fb9c('0x16f')]=_0x470414,_0x1248a7[_0x31fb9c('0x118f')]=_0x12f0f7,_0x1248a7[_0x31fb9c('0x2531')]=_0x139125;function _0x1e7457(_0x38cdfb,_0x589c97){const _0x6ff2e7=_0x31fb9c;_0x1248a7['openchannelAccount']=_0x38cdfb,_0x1248a7['crudPermissions']=typeof _0x589c97!==_0x6ff2e7('0x6e5')?_0x589c97:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1248a7[_0x6ff2e7('0xc49')]['OpenchannelAccountId']=_0x1248a7[_0x6ff2e7('0x13f1')]['id'],_0x1248a7[_0x6ff2e7('0xc49')]['id']=_0x1248a7[_0x6ff2e7('0x13f1')]['id'],_0x201e5b();}function _0x3b5f83(_0x275ec2,_0xa4ca57){const _0x883c5e=_0x31fb9c,_0xe06b5f=_0x35f4e3[_0x883c5e('0x1d02')]()[_0x883c5e('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20openchannelCannedAnswer?')['htmlContent'](''+(_0x275ec2[_0x883c5e('0x10ad')]||_0x275ec2['id']&&_0x3c8d8a()[_0x883c5e('0x5ba')](_0x883c5e('0x24aa'))+_0x275ec2['id']||_0x883c5e('0x21e'))+''+_0x883c5e('0xd23'))['ariaLabel']('delete\x20openchannelCannedAnswer')['targetEvent'](_0xa4ca57)['ok']('OK')['cancel'](_0x883c5e('0x468'));_0x35f4e3[_0x883c5e('0x1cb7')](_0xe06b5f)['then'](function(){_0x12f0f7(_0x275ec2);},function(){console['log']('CANCEL');});}function _0x22dd79(_0xc4ca70){const _0x1592b1=_0x31fb9c;_0x1248a7[_0x1592b1('0x63c')]=_0xc4ca70||{'count':0x0,'rows':[]};}function _0x201e5b(){const _0x577ed9=_0x31fb9c;_0x1248a7[_0x577ed9('0xc49')][_0x577ed9('0x17f0')]=(_0x1248a7[_0x577ed9('0xc49')]['page']-0x1)*_0x1248a7[_0x577ed9('0xc49')]['limit'],_0x1248a7[_0x577ed9('0x2219')]=_0x462752['openchannelAccount']['getAnswers'](_0x1248a7[_0x577ed9('0xc49')],_0x22dd79)[_0x577ed9('0x1964')];}function _0x51a3d4(_0x43a9cb,_0x52e00a){const _0x235060=_0x31fb9c;_0x35f4e3[_0x235060('0x1cb7')]({'controller':'CreateOrEditOpenchannelCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x45685f,'parent':angular[_0x235060('0xb6d')](_0x3d6699['body']),'targetEvent':_0x43a9cb,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x1248a7[_0x235060('0x13f1')],'openchannelCannedAnswer':_0x52e00a,'openchannelCannedAnswers':_0x1248a7[_0x235060('0x63c')][_0x235060('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x1248a7[_0x235060('0x1dc1')]}});}function _0x12f0f7(_0x4fbff6){const _0x279d4a=_0x31fb9c;_0x462752[_0x279d4a('0x2849')][_0x279d4a('0x15e8')]({'id':_0x4fbff6['id']})['$promise'][_0x279d4a('0x173b')](function(){const _0x23c6fe=_0x279d4a;_0x3c8d8a()[_0x23c6fe('0x1a8b')](_0x1248a7[_0x23c6fe('0x63c')]['rows'],{'id':_0x4fbff6['id']}),_0x1248a7[_0x23c6fe('0x63c')][_0x23c6fe('0x1a2f')]-=0x1,!_0x1248a7[_0x23c6fe('0x63c')][_0x23c6fe('0x6aa')][_0x23c6fe('0x543')]&&_0x201e5b(),_0x2961ac[_0x23c6fe('0xdfe')]({'title':_0x23c6fe('0xa05'),'msg':_0x4fbff6[_0x23c6fe('0x10ad')]?_0x4fbff6[_0x23c6fe('0x10ad')]+_0x23c6fe('0x25d2'):''});})['catch'](function(_0x55dded){const _0xa21c8a=_0x279d4a;if(_0x55dded[_0xa21c8a('0x1e07')]&&_0x55dded[_0xa21c8a('0x1e07')][_0xa21c8a('0x1d4a')]&&_0x55dded[_0xa21c8a('0x1e07')][_0xa21c8a('0x1d4a')][_0xa21c8a('0x543')]){_0x1248a7[_0xa21c8a('0x1d4a')]=_0x55dded[_0xa21c8a('0x1e07')][_0xa21c8a('0x1d4a')]||[{'message':_0x55dded[_0xa21c8a('0x1b75')](),'type':_0xa21c8a('0x1b0e')}];for(let _0x4a8a80=0x0;_0x4a8a80<_0x55dded[_0xa21c8a('0x1e07')]['errors'][_0xa21c8a('0x543')];_0x4a8a80++){_0x2961ac[_0xa21c8a('0x15aa')]({'title':_0x55dded['data']['errors'][_0x4a8a80][_0xa21c8a('0x1810')],'msg':_0x55dded[_0xa21c8a('0x1e07')][_0xa21c8a('0x1d4a')][_0x4a8a80][_0xa21c8a('0x67f')]});}}else _0x2961ac['error']({'title':_0x55dded[_0xa21c8a('0x276f')]?_0xa21c8a('0x137')+_0x55dded['status']+_0xa21c8a('0x160c')+_0x55dded[_0xa21c8a('0x2696')]:_0xa21c8a('0x1b0e'),'msg':_0x55dded['data']?JSON['stringify'](_0x55dded[_0xa21c8a('0x1e07')]['message']):_0x55dded['message']||_0x55dded[_0xa21c8a('0x1b75')]()});});}function _0x470414(){const _0x2ddb5d=_0x31fb9c,_0x2e2c45=angular[_0x2ddb5d('0x2e3')](_0x1248a7[_0x2ddb5d('0x233f')]);return _0x1248a7[_0x2ddb5d('0x233f')]=[],_0x2e2c45;}function _0x139125(_0x49db10){const _0x575b0e=_0x31fb9c,_0xcefc1a=_0x35f4e3[_0x575b0e('0x1d02')]()[_0x575b0e('0x20d6')](_0x575b0e('0x2409'))[_0x575b0e('0xf8b')](_0x575b0e('0x15b9')+_0x1248a7['selectedOpenchannelAccountOpenchannelCannedAnswers'][_0x575b0e('0x543')]+_0x575b0e('0xcb4')+_0x575b0e('0xd23'))[_0x575b0e('0x217')](_0x575b0e('0x2021'))[_0x575b0e('0x21de')](_0x49db10)['ok']('OK')[_0x575b0e('0x1e1f')](_0x575b0e('0x468'));_0x35f4e3[_0x575b0e('0x1cb7')](_0xcefc1a)[_0x575b0e('0x173b')](function(){const _0x562d93=_0x575b0e;_0x1248a7[_0x562d93('0x233f')]['forEach'](function(_0x444094){_0x12f0f7(_0x444094);}),_0x1248a7['selectedOpenchannelAccountOpenchannelCannedAnswers']=[];});}let _0x59fecb=!![],_0x9a418=0x1;_0x37687d[_0x31fb9c('0x1bdb')]('vm_dc.query.filter',function(_0x3b937d,_0x5b86f3){const _0x5d3982=_0x31fb9c;_0x59fecb?_0x3c59cc(function(){_0x59fecb=![];}):(!_0x5b86f3&&(_0x9a418=_0x1248a7[_0x5d3982('0xc49')]['page']),_0x3b937d!==_0x5b86f3&&(_0x1248a7[_0x5d3982('0xc49')]['page']=0x1),!_0x3b937d&&(_0x1248a7[_0x5d3982('0xc49')]['page']=_0x9a418),_0x201e5b());});}const _0xc75514=_0x509eaf;_0x28a22a[_0x566993('0x17bb')]=['$scope','$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x19c2'),'openchannelCannedAnswer','api','Auth','license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x28a22a(_0x10905d,_0x25a803,_0x2b56a5,_0x3b1d0d,_0xa0926a,_0x11b4f3,_0x149b9a,_0x365292,_0x1dce8f,_0x47c391,_0x94a6d4,_0x5dab0c,_0x6d431d,_0x322de7){const _0x2a5ba6=_0x566993,_0x771070=this;_0x771070[_0x2a5ba6('0x155f')]=_0x94a6d4[_0x2a5ba6('0x14d4')](),_0x771070['errors']=[],_0x771070['setting']=_0x6d431d,_0x771070[_0x2a5ba6('0x1a29')]=_0x5dab0c,_0x771070[_0x2a5ba6('0x1dc1')]=_0x322de7,_0x771070['hasModulePermissions']={},_0x771070[_0x2a5ba6('0x644')]=_0x771070[_0x2a5ba6('0x251')]&&_0x771070[_0x2a5ba6('0x251')][_0x2a5ba6('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x771070[_0x2a5ba6('0x20d6')]=_0x2a5ba6('0x1d36'),_0x771070['openchannelCannedAnswer']=angular[_0x2a5ba6('0x2e3')](_0x1dce8f),_0x771070[_0x2a5ba6('0x19c2')]=_0x365292,_0x771070[_0x2a5ba6('0x814')]=![];!_0x771070[_0x2a5ba6('0x21e')]&&(_0x771070['openchannelCannedAnswer']={},_0x771070[_0x2a5ba6('0x20d6')]='OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER',_0x771070['newOpenchannelCannedAnswer']=!![]);_0x25a803[_0x2a5ba6('0x197a')]['id']&&(_0x771070[_0x2a5ba6('0x21e')]['OpenchannelAccountId']=_0x25a803[_0x2a5ba6('0x197a')]['id']);_0x771070['addNewOpenchannelCannedAnswer']=_0x3431d1,_0x771070[_0x2a5ba6('0x627')]=_0x265034,_0x771070[_0x2a5ba6('0xfb6')]=_0x1c7353,_0x771070[_0x2a5ba6('0x11ae')]=_0x493445,_0x771070[_0x2a5ba6('0x18e2')]=_0x72cc9d;function _0x3431d1(){const _0x59bc43=_0x2a5ba6;_0x771070[_0x59bc43('0x1d4a')]=[],_0x47c391[_0x59bc43('0x2849')][_0x59bc43('0x1195')](_0x771070[_0x59bc43('0x21e')])[_0x59bc43('0x1964')][_0x59bc43('0x173b')](function(_0x345cd0){const _0x35cd0b=_0x59bc43;_0x771070['openchannelCannedAnswers'][_0x35cd0b('0x1377')](_0x345cd0[_0x35cd0b('0xf1f')]()),_0x149b9a[_0x35cd0b('0xdfe')]({'title':_0x35cd0b('0x158e'),'msg':_0x771070[_0x35cd0b('0x21e')][_0x35cd0b('0x10ad')]?_0x771070['openchannelCannedAnswer'][_0x35cd0b('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x72cc9d(_0x345cd0);})[_0x59bc43('0x103c')](function(_0x2aced6){const _0x4f8b52=_0x59bc43;if(_0x2aced6['data']&&_0x2aced6[_0x4f8b52('0x1e07')][_0x4f8b52('0x1d4a')]&&_0x2aced6[_0x4f8b52('0x1e07')][_0x4f8b52('0x1d4a')][_0x4f8b52('0x543')]){_0x771070[_0x4f8b52('0x1d4a')]=_0x2aced6[_0x4f8b52('0x1e07')][_0x4f8b52('0x1d4a')]||[{'message':_0x2aced6[_0x4f8b52('0x1b75')](),'type':_0x4f8b52('0x1da7')}];for(let _0xa42231=0x0;_0xa42231<_0x2aced6['data'][_0x4f8b52('0x1d4a')]['length'];_0xa42231+=0x1){_0x149b9a[_0x4f8b52('0x15aa')]({'title':_0x2aced6[_0x4f8b52('0x1e07')][_0x4f8b52('0x1d4a')][_0xa42231][_0x4f8b52('0x1810')],'msg':_0x2aced6[_0x4f8b52('0x1e07')][_0x4f8b52('0x1d4a')][_0xa42231][_0x4f8b52('0x67f')]});}}else _0x149b9a[_0x4f8b52('0x15aa')]({'title':_0x2aced6[_0x4f8b52('0x276f')]?_0x4f8b52('0x137')+_0x2aced6[_0x4f8b52('0x276f')]+'\x20-\x20'+_0x2aced6['statusText']:_0x4f8b52('0x1da7'),'msg':_0x2aced6['data']?JSON['stringify'](_0x2aced6[_0x4f8b52('0x1e07')][_0x4f8b52('0x67f')]):_0x2aced6[_0x4f8b52('0x1b75')]()});});}function _0x265034(){const _0x2c1d16=_0x2a5ba6;_0x771070['errors']=[],_0x47c391['cannedAnswer'][_0x2c1d16('0x1842')]({'id':_0x771070['openchannelCannedAnswer']['id']},_0x771070[_0x2c1d16('0x21e')])['$promise'][_0x2c1d16('0x173b')](function(_0x4778c1){const _0x3d6efe=_0x2c1d16,_0x2768f6=_0x3c8d8a()['find'](_0x771070[_0x3d6efe('0x19c2')],{'id':_0x4778c1['id']});_0x2768f6&&_0x3c8d8a()[_0x3d6efe('0x9ef')](_0x2768f6,_0x3c8d8a()[_0x3d6efe('0x2114')](_0x4778c1['toJSON'](),_0x3c8d8a()[_0x3d6efe('0x1d3e')](_0x2768f6))),_0x149b9a[_0x3d6efe('0xdfe')]({'title':_0x3d6efe('0x1edd'),'msg':_0x771070[_0x3d6efe('0x21e')][_0x3d6efe('0x10ad')]?_0x771070[_0x3d6efe('0x21e')][_0x3d6efe('0x10ad')]+_0x3d6efe('0x2788'):''}),_0x72cc9d(_0x4778c1);})[_0x2c1d16('0x103c')](function(_0x19091d){const _0x381ff5=_0x2c1d16;if(_0x19091d[_0x381ff5('0x1e07')]&&_0x19091d['data']['errors']&&_0x19091d[_0x381ff5('0x1e07')][_0x381ff5('0x1d4a')][_0x381ff5('0x543')]){_0x771070[_0x381ff5('0x1d4a')]=_0x19091d['data']['errors']||[{'message':_0x19091d[_0x381ff5('0x1b75')](),'type':_0x381ff5('0x2786')}];for(let _0x12370b=0x0;_0x12370b<_0x19091d[_0x381ff5('0x1e07')][_0x381ff5('0x1d4a')]['length'];_0x12370b++){_0x149b9a[_0x381ff5('0x15aa')]({'title':_0x19091d[_0x381ff5('0x1e07')]['errors'][_0x12370b][_0x381ff5('0x1810')],'msg':_0x19091d[_0x381ff5('0x1e07')][_0x381ff5('0x1d4a')][_0x12370b][_0x381ff5('0x67f')]});}}else _0x149b9a['error']({'title':_0x19091d[_0x381ff5('0x276f')]?_0x381ff5('0x137')+_0x19091d[_0x381ff5('0x276f')]+'\x20-\x20'+_0x19091d['statusText']:'api.cannedAnswer.update','msg':_0x19091d[_0x381ff5('0x1e07')]?JSON[_0x381ff5('0x100b')](_0x19091d[_0x381ff5('0x1e07')][_0x381ff5('0x67f')]):_0x19091d[_0x381ff5('0x1b75')]()});});}function _0x1c7353(_0x24e12e){const _0xb70c35=_0x2a5ba6;_0x771070[_0xb70c35('0x1d4a')]=[];const _0x2604d9=_0x3b1d0d[_0xb70c35('0x1d02')]()[_0xb70c35('0x20d6')](_0xb70c35('0x8ef'))[_0xb70c35('0x732')]('The\x20openchannelCannedAnswer\x20will\x20be\x20deleted.')[_0xb70c35('0x217')](_0xb70c35('0xb22'))['ok'](_0xb70c35('0x2373'))[_0xb70c35('0x1e1f')](_0xb70c35('0x1d4e'))[_0xb70c35('0x21de')](_0x24e12e);_0x3b1d0d[_0xb70c35('0x1cb7')](_0x2604d9)[_0xb70c35('0x173b')](function(){const _0x47098e=_0xb70c35;_0x47c391['cannedAnswer'][_0x47098e('0x15e8')]({'id':_0x771070['openchannelCannedAnswer']['id']})[_0x47098e('0x1964')][_0x47098e('0x173b')](function(){const _0x359915=_0x47098e;_0x3c8d8a()[_0x359915('0x1a8b')](_0x771070[_0x359915('0x19c2')],{'id':_0x771070['openchannelCannedAnswer']['id']}),_0x149b9a['success']({'title':_0x359915('0x402'),'msg':(_0x771070[_0x359915('0x21e')][_0x359915('0x10ad')]||_0x359915('0x21e'))+_0x359915('0x25d2')}),_0x72cc9d(_0x771070[_0x359915('0x21e')]);})[_0x47098e('0x103c')](function(_0x441d81){const _0x2ee78a=_0x47098e;if(_0x441d81[_0x2ee78a('0x1e07')]&&_0x441d81[_0x2ee78a('0x1e07')][_0x2ee78a('0x1d4a')]&&_0x441d81[_0x2ee78a('0x1e07')][_0x2ee78a('0x1d4a')]['length']){_0x771070[_0x2ee78a('0x1d4a')]=_0x441d81['data'][_0x2ee78a('0x1d4a')]||[{'message':_0x441d81[_0x2ee78a('0x1b75')](),'type':'api.cannedAnswer.delete'}];for(let _0x149fe8=0x0;_0x149fe8<_0x441d81[_0x2ee78a('0x1e07')]['errors'][_0x2ee78a('0x543')];_0x149fe8++){_0x149b9a[_0x2ee78a('0x15aa')]({'title':_0x441d81[_0x2ee78a('0x1e07')]['errors'][_0x149fe8][_0x2ee78a('0x1810')],'msg':_0x441d81[_0x2ee78a('0x1e07')]['errors'][_0x149fe8][_0x2ee78a('0x67f')]});}}else _0x149b9a[_0x2ee78a('0x15aa')]({'title':_0x441d81[_0x2ee78a('0x276f')]?_0x2ee78a('0x137')+_0x441d81['status']+_0x2ee78a('0x160c')+_0x441d81[_0x2ee78a('0x2696')]:_0x2ee78a('0x1684'),'msg':_0x441d81[_0x2ee78a('0x1e07')]?JSON['stringify'](_0x441d81[_0x2ee78a('0x1e07')][_0x2ee78a('0x67f')]):_0x441d81[_0x2ee78a('0x67f')]||_0x441d81[_0x2ee78a('0x1b75')]()});});},function(){});}function _0x493445(_0x1e5ca5){return _0x1e5ca5===null?undefined:new Date(_0x1e5ca5);}function _0x72cc9d(_0x1cdb43){const _0xc916d5=_0x2a5ba6;_0x3b1d0d[_0xc916d5('0x1cf4')](_0x1cdb43);}}const _0x1800a5=_0x28a22a;_0x567cd1[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog','$document',_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0xbd4'),'toasty',_0x566993('0x1600')];function _0x567cd1(_0x669d4e,_0x4d6353,_0x15d637,_0x248c4c,_0x2f2518,_0x295abb,_0x426681,_0x3a630c,_0x32fc2a,_0x2e621a,_0x4bfffa){const _0x1031d5=_0x566993,_0x31db2e=this;_0x31db2e[_0x1031d5('0x155f')]=_0x4bfffa[_0x1031d5('0x14d4')](),_0x31db2e[_0x1031d5('0x9c6')]={'count':0x0,'rows':[]},_0x31db2e['selectedDispositions']=[],_0x31db2e['crudPermissions'],_0x31db2e[_0x1031d5('0x1d14')]={'first':'1st','second':_0x1031d5('0x1136'),'third':_0x1031d5('0x1486')},_0x31db2e[_0x1031d5('0xc49')]={'fields':_0x1031d5('0xf3'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x31db2e[_0x1031d5('0xb9c')]=_0x43d096,_0x31db2e[_0x1031d5('0x2051')]=_0x3968b6,_0x31db2e[_0x1031d5('0xdfe')]=_0x325fe9,_0x31db2e[_0x1031d5('0x251d')]=_0x21a15b,_0x31db2e[_0x1031d5('0xfb1')]=_0x1a364b,_0x31db2e[_0x1031d5('0x1d5a')]=_0x3153ad,_0x31db2e['exportSelectedDispositions']=_0x221c30,_0x31db2e[_0x1031d5('0x269b')]=_0x68ba76,_0x31db2e[_0x1031d5('0x2307')]=_0x5deac5,_0x31db2e[_0x1031d5('0x17fe')]=_0x2ebc67;function _0x43d096(_0x2694e1,_0x1a60b4){const _0x4533f9=_0x1031d5;_0x31db2e[_0x4533f9('0x13f1')]=_0x2694e1||{},_0x31db2e['crudPermissions']=typeof _0x1a60b4!==_0x4533f9('0x6e5')?_0x1a60b4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x31db2e[_0x4533f9('0xc49')]['OpenchannelAccountId']=_0x31db2e[_0x4533f9('0x13f1')]['id'],_0x31db2e[_0x4533f9('0xc49')]['id']=_0x31db2e[_0x4533f9('0x13f1')]['id'],_0x21a15b();}function _0x1a364b(_0x4e98bc,_0x10d911){const _0x325917=_0x1031d5;_0x2f2518[_0x325917('0x1cb7')]({'controller':_0x325917('0x19ff'),'controllerAs':'vm','templateUrl':_0x1db9b3,'parent':angular[_0x325917('0xb6d')](_0x295abb['body']),'targetEvent':_0x4e98bc,'clickOutsideToClose':!![],'locals':{'disposition':_0x10d911,'dispositions':_0x31db2e[_0x325917('0x9c6')][_0x325917('0x6aa')],'model':{'id':_0x31db2e['openchannelAccount']['id'],'field':'OpenchannelAccountId'},'license':null,'setting':null,'crudPermissions':_0x31db2e[_0x325917('0x1dc1')]}})[_0x325917('0x173b')](function(_0x4a01fb){if(_0x4a01fb)_0x21a15b();});}function _0x3968b6(_0x4efc3f,_0x174663){const _0x499071=_0x1031d5,_0xd139c3=_0x3c8d8a()[_0x499071('0x1ec')](_0x31db2e[_0x499071('0x9c6')][_0x499071('0x6aa')],[_0x499071('0x2644'),_0x4efc3f['id']]),_0x15ac02=_0x2f2518[_0x499071('0x1d02')]()[_0x499071('0x20d6')](_0x3a630c['instant'](_0x499071('0xf13')))[_0x499071('0x732')](_0x3a630c[_0x499071('0x1467')](_0x499071('0x15d6')+(_0xd139c3?_0x499071('0x6f'):_0x499071('0xee2')),{'name':_0x4efc3f['name']}))['ariaLabel'](_0x499071('0x843'))['targetEvent'](_0x174663)['ok']('OK')[_0x499071('0x1e1f')](_0x3a630c[_0x499071('0x1467')](_0x499071('0x2224')));_0x2f2518[_0x499071('0x1cb7')](_0x15ac02)[_0x499071('0x173b')](function(){_0x3153ad(_0x4efc3f);});}function _0x325fe9(_0x40a8df){const _0x18e1e7=_0x1031d5;_0x31db2e[_0x18e1e7('0x9c6')]=_0x40a8df||{'count':0x0,'rows':[]};}function _0x21a15b(){const _0x411edf=_0x1031d5;_0x31db2e[_0x411edf('0xc49')][_0x411edf('0x17f0')]=(_0x31db2e['query']['page']-0x1)*_0x31db2e[_0x411edf('0xc49')]['limit'],_0x31db2e['promise']=_0x32fc2a['openchannelAccount'][_0x411edf('0x251d')](_0x31db2e[_0x411edf('0xc49')],_0x325fe9)[_0x411edf('0x1964')];}function _0x3153ad(_0x2ad6f1){const _0x32089e=_0x1031d5;_0x32fc2a[_0x32089e('0x2766')][_0x32089e('0x15e8')]({'id':_0x2ad6f1['id']})[_0x32089e('0x1964')][_0x32089e('0x173b')](function(){const _0x4c25b0=_0x32089e;_0x21a15b(),_0x2e621a[_0x4c25b0('0xdfe')]({'title':_0x3a630c[_0x4c25b0('0x1467')](_0x4c25b0('0x34b'))});})[_0x32089e('0x103c')](function(_0x5309af){const _0x4f6b6c=_0x32089e;if(_0x5309af[_0x4f6b6c('0x1e07')]&&_0x5309af['data'][_0x4f6b6c('0x1d4a')]&&_0x5309af[_0x4f6b6c('0x1e07')][_0x4f6b6c('0x1d4a')][_0x4f6b6c('0x543')]){_0x31db2e[_0x4f6b6c('0x1d4a')]=_0x5309af['data'][_0x4f6b6c('0x1d4a')]||[{'message':_0x5309af[_0x4f6b6c('0x1b75')](),'type':_0x4f6b6c('0x6af')}];for(let _0x2b7897=0x0;_0x2b7897<_0x5309af['data'][_0x4f6b6c('0x1d4a')][_0x4f6b6c('0x543')];_0x2b7897++){_0x2e621a['error']({'title':_0x5309af[_0x4f6b6c('0x1e07')]['errors'][_0x2b7897][_0x4f6b6c('0x1810')],'msg':_0x5309af[_0x4f6b6c('0x1e07')][_0x4f6b6c('0x1d4a')][_0x2b7897]['message']});}}else _0x2e621a[_0x4f6b6c('0x15aa')]({'title':_0x5309af['status']?_0x4f6b6c('0x137')+_0x5309af[_0x4f6b6c('0x276f')]+_0x4f6b6c('0x160c')+_0x5309af[_0x4f6b6c('0x2696')]:_0x4f6b6c('0x6af'),'msg':_0x5309af[_0x4f6b6c('0x1e07')]?JSON['stringify'](_0x5309af[_0x4f6b6c('0x1e07')][_0x4f6b6c('0x67f')]):_0x5309af[_0x4f6b6c('0x67f')]||_0x5309af[_0x4f6b6c('0x1b75')]()});});}function _0x221c30(){const _0x5473c0=_0x1031d5,_0x3dd91d=angular[_0x5473c0('0x2e3')](_0x31db2e[_0x5473c0('0x451')]);return _0x31db2e[_0x5473c0('0x451')]=[],_0x3dd91d;}function _0x68ba76(_0x3b0818){const _0x302fa8=_0x1031d5,_0x1038c1=_0x2f2518['confirm']()[_0x302fa8('0x20d6')](_0x3a630c[_0x302fa8('0x1467')](_0x302fa8('0xa25')))['content'](_0x3a630c[_0x302fa8('0x1467')](_0x302fa8('0x25a'),{'total':_0x31db2e[_0x302fa8('0x451')][_0x302fa8('0x543')]}))[_0x302fa8('0x217')](_0x302fa8('0x6b8'))['targetEvent'](_0x3b0818)['ok']('OK')[_0x302fa8('0x1e1f')](_0x3a630c[_0x302fa8('0x1467')]('TOOLS.CANCEL'));_0x2f2518[_0x302fa8('0x1cb7')](_0x1038c1)[_0x302fa8('0x173b')](function(){const _0x505101=_0x302fa8;_0x31db2e['selectedDispositions'][_0x505101('0xa6a')](function(_0x26bc2e){_0x3153ad(_0x26bc2e);}),_0x31db2e[_0x505101('0x451')]=[];});}function _0x5deac5(){const _0x1f8859=_0x1031d5;_0x31db2e[_0x1f8859('0x451')]=[];}function _0x2ebc67(){const _0x25dc35=_0x1031d5;_0x31db2e[_0x25dc35('0x451')]=_0x31db2e['dispositions'][_0x25dc35('0x6aa')];}let _0x3dd9ba=!![],_0x3f97ce=0x1;_0x669d4e[_0x1031d5('0x1bdb')](_0x1031d5('0x5b8'),function(_0xee20df,_0x77440b){const _0x216c43=_0x1031d5;_0x3dd9ba?_0x426681(function(){_0x3dd9ba=![];}):(!_0x77440b&&(_0x3f97ce=_0x31db2e[_0x216c43('0xc49')][_0x216c43('0x182e')]),_0xee20df!==_0x77440b&&(_0x31db2e[_0x216c43('0xc49')][_0x216c43('0x182e')]=0x1),!_0xee20df&&(_0x31db2e[_0x216c43('0xc49')][_0x216c43('0x182e')]=_0x3f97ce),_0x21a15b());});}const _0x9e6c5a=_0x567cd1,_0x37fc95=_0x21a6a1['p']+_0x566993('0x26b');_0x595844[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$translate','license',_0x566993('0x251'),'api',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x13f1'),_0x566993('0x170e')];function _0x595844(_0x2ca2c9,_0xb68b25,_0x3adcab,_0xd577f6,_0x4b367e,_0x372539,_0x41cef0,_0x36affb,_0x5d9d2a,_0x512d5e,_0x58c683,_0x2fba20){const _0x102d47=_0x566993,_0x2fe18e=this;_0x2fe18e['currentUser']=_0x512d5e[_0x102d47('0x14d4')](),_0x2fe18e['license']=_0x372539,_0x2fe18e[_0x102d47('0x251')]=_0x41cef0,_0x2fe18e[_0x102d47('0x644')]=_0x2fe18e[_0x102d47('0x251')][_0x102d47('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2fe18e[_0x102d47('0x614')]=_0xb68b25[_0x102d47('0x375')]()+_0x102d47('0x122b')+_0xb68b25['host'](),_0x2fe18e[_0x102d47('0x13f1')]=_0x58c683||_0x2ca2c9['params']['openchannelAccount']||{},_0x2fe18e['userProfileSection']=_0x2fba20&&_0x2fba20[_0x102d47('0x1a2f')]==0x1?_0x2fba20['rows'][0x0]:null,_0x2fe18e[_0x102d47('0x1dc1')]=_0x512d5e[_0x102d47('0xde6')](_0x2fe18e[_0x102d47('0x170e')]?_0x2fe18e[_0x102d47('0x170e')]['crudPermissions']:null),_0x2fe18e['hasModulePermissions']={},_0x2fe18e['selectedTab']=_0x2ca2c9['params']['tab']||0x0,_0x2fe18e[_0x102d47('0x2118')]=_0x2cffa8,_0x2fe18e['alert']=_0x5d9d2a[_0x102d47('0x2787')],_0x2fe18e[_0x102d47('0x17aa')]=_0x549372,_0x2fe18e[_0x102d47('0x245a')]=_0x1f9cfd,_0x512d5e[_0x102d47('0x1b4e')](_0x102d47('0x79b'))?_0x36affb['cmList'][_0x102d47('0x1d97')]({'fields':_0x102d47('0xd52'),'sort':_0x102d47('0x10ad')})[_0x102d47('0x1964')][_0x102d47('0x173b')](function(_0x3d0208){const _0xc717d6=_0x102d47;_0x2fe18e['lists']=_0x3d0208[_0xc717d6('0x6aa')]||[];})['catch'](function(_0x3589da){const _0x5514cc=_0x102d47;_0x5d9d2a[_0x5514cc('0x15aa')]({'title':_0x3589da[_0x5514cc('0x276f')]?_0x5514cc('0x137')+_0x3589da[_0x5514cc('0x276f')]+_0x5514cc('0x160c')+_0x3589da['statusText']:'SYSTEM:GET_LISTS','msg':_0x3589da['data']?JSON[_0x5514cc('0x100b')](_0x3589da[_0x5514cc('0x1e07')]):_0x3589da[_0x5514cc('0x1b75')]()});}):_0x36affb['cmList']['get']({'fields':_0x102d47('0xd52'),'sort':'name'})['$promise'][_0x102d47('0x173b')](function(_0x391a26){const _0x587489=_0x102d47;_0x2fe18e[_0x587489('0x9e8')]=_0x391a26[_0x587489('0x6aa')]||[];})[_0x102d47('0x173b')](function(){const _0x1e1e8b=_0x102d47;return _0x36affb[_0x1e1e8b('0x170e')]['get']({'userProfileId':_0x2fe18e[_0x1e1e8b('0x155f')][_0x1e1e8b('0x1946')],'sectionId':0x12d})[_0x1e1e8b('0x1964')];})['then'](function(_0x14725f){const _0x4df6bf=_0x102d47,_0x3421b3=_0x14725f&&_0x14725f[_0x4df6bf('0x6aa')]?_0x14725f[_0x4df6bf('0x6aa')][0x0]:null;if(!_0x3421b3){const _0x504989=[];let _0x362418=null;_0x2fe18e['openchannelAccount']&&(_0x362418=_0x3c8d8a()[_0x4df6bf('0x18ab')](_0x2fe18e[_0x4df6bf('0x9e8')],{'id':Number(_0x2fe18e['openchannelAccount'][_0x4df6bf('0xef2')])}));for(let _0x3dbb33=0x0;_0x3dbb33<_0x2fe18e[_0x4df6bf('0x9e8')]['length'];_0x3dbb33++){_0x362418&&_0x2fe18e[_0x4df6bf('0x9e8')][_0x3dbb33]['id']===_0x362418['id']&&(_0x2fe18e[_0x4df6bf('0x9e8')][_0x3dbb33][_0x4df6bf('0x268e')]=![],_0x504989[_0x4df6bf('0x18bb')](_0x2fe18e[_0x4df6bf('0x9e8')][_0x3dbb33]));}_0x2fe18e['lists']=_0x504989;}else{if(!_0x3421b3[_0x4df6bf('0x273e')])return _0x36affb[_0x4df6bf('0xda9')][_0x4df6bf('0x1d97')]({'sectionId':_0x3421b3['id']})['$promise'][_0x4df6bf('0x173b')](function(_0x525677){const _0x2696c3=_0x4df6bf,_0xb2e3ba=_0x3c8d8a()[_0x2696c3('0x8a2')](_0x525677[_0x2696c3('0x6aa')],function(_0x437599){const _0x43f1fd=_0x2696c3;return _0x3c8d8a()[_0x43f1fd('0x18ab')](_0x2fe18e[_0x43f1fd('0x9e8')],{'id':_0x437599[_0x43f1fd('0x1ce0')]});});let _0x30d354=null;_0x2fe18e['openchannelAccount']&&(_0x30d354=_0x3c8d8a()[_0x2696c3('0x18ab')](_0x2fe18e['lists'],{'id':Number(_0x2fe18e[_0x2696c3('0x13f1')][_0x2696c3('0xef2')])}));if(_0x30d354&&!_0x3c8d8a()['some'](_0xb2e3ba,['id',_0x30d354['id']])){const _0xbd1b67=_0x3c8d8a()['find'](_0x2fe18e[_0x2696c3('0x9e8')],{'id':_0x30d354['id']});_0xbd1b67[_0x2696c3('0x268e')]=![],_0xb2e3ba[_0x2696c3('0x18bb')](_0xbd1b67);}_0x2fe18e[_0x2696c3('0x9e8')]=_0xb2e3ba;});}})[_0x102d47('0x103c')](function(_0x2c77a3){const _0x3ab09b=_0x102d47;_0x5d9d2a['error']({'title':_0x2c77a3[_0x3ab09b('0x276f')]?_0x3ab09b('0x137')+_0x2c77a3[_0x3ab09b('0x276f')]+_0x3ab09b('0x160c')+_0x2c77a3[_0x3ab09b('0x2696')]:_0x3ab09b('0x1292'),'msg':_0x2c77a3[_0x3ab09b('0x1e07')]?JSON[_0x3ab09b('0x100b')](_0x2c77a3[_0x3ab09b('0x1e07')]):_0x2c77a3[_0x3ab09b('0x1b75')]()});}),_0x36affb['cmContact']['describe']({'id':_0x2fe18e[_0x102d47('0x13f1')][_0x102d47('0xef2')]})[_0x102d47('0x1964')]['then'](function(_0x4552c9){const _0x558535=_0x102d47;_0x2fe18e[_0x558535('0x2340')]=[],_0x4552c9=_0x3c8d8a()[_0x558535('0xcaf')](_0x4552c9[_0x558535('0xf1f')]());const _0x31461c=['id',_0x558535('0xda8'),'updatedAt',_0x558535('0xb7d'),_0x558535('0x1b55'),_0x558535('0xef2'),_0x558535('0x1d7e')];for(let _0x237f2d=0x0;_0x237f2d<_0x4552c9[_0x558535('0x543')];_0x237f2d++){!_0x3c8d8a()['includes'](_0x31461c,_0x4552c9[_0x237f2d]['columnName'])&&_0x2fe18e[_0x558535('0x2340')][_0x558535('0x18bb')](_0x4552c9[_0x237f2d]);}})['catch'](function(_0xb8fd7f){const _0x1e770b=_0x102d47;_0x5d9d2a[_0x1e770b('0x15aa')]({'title':_0xb8fd7f[_0x1e770b('0x276f')]?_0x1e770b('0x137')+_0xb8fd7f[_0x1e770b('0x276f')]+_0x1e770b('0x160c')+_0xb8fd7f[_0x1e770b('0x2696')]:_0x1e770b('0x859'),'msg':_0xb8fd7f[_0x1e770b('0x1e07')]?JSON[_0x1e770b('0x100b')](_0xb8fd7f[_0x1e770b('0x1e07')]):_0xb8fd7f[_0x1e770b('0x1b75')]()});}),_0x512d5e[_0x102d47('0x1b4e')]('admin')?_0x36affb[_0x102d47('0x1751')][_0x102d47('0x1d97')]({'fields':_0x102d47('0x901'),'sort':_0x102d47('0x10ad'),'nolimit':_0x102d47('0x799')})[_0x102d47('0x1964')][_0x102d47('0x173b')](function(_0x1b1661){const _0x2da4c0=_0x102d47;_0x2fe18e[_0x2da4c0('0x1d66')]=_0x1b1661['rows']||[];})[_0x102d47('0x103c')](function(_0x1ee32b){const _0x481ad8=_0x102d47;_0x5d9d2a[_0x481ad8('0x15aa')]({'title':_0x1ee32b[_0x481ad8('0x276f')]?_0x481ad8('0x137')+_0x1ee32b[_0x481ad8('0x276f')]+'\x20-\x20'+_0x1ee32b[_0x481ad8('0x2696')]:_0x481ad8('0xe0f'),'msg':_0x1ee32b[_0x481ad8('0x1e07')]?JSON[_0x481ad8('0x100b')](_0x1ee32b[_0x481ad8('0x1e07')]):_0x1ee32b['toString']()});}):_0x36affb['pause']['get']({'fields':_0x102d47('0x901'),'sort':_0x102d47('0x10ad'),'nolimit':_0x102d47('0x799')})[_0x102d47('0x1964')][_0x102d47('0x173b')](function(_0x2528b5){const _0x312061=_0x102d47;_0x2fe18e[_0x312061('0x1d66')]=_0x2528b5[_0x312061('0x6aa')]||[];})[_0x102d47('0x173b')](function(){const _0x5cc44e=_0x102d47;return _0x36affb[_0x5cc44e('0x170e')][_0x5cc44e('0x1d97')]({'userProfileId':_0x2fe18e['currentUser'][_0x5cc44e('0x1946')],'sectionId':0x3ed})[_0x5cc44e('0x1964')];})[_0x102d47('0x173b')](function(_0x4f6acb){const _0x48f343=_0x102d47,_0x4aa11b=_0x4f6acb&&_0x4f6acb[_0x48f343('0x6aa')]?_0x4f6acb[_0x48f343('0x6aa')][0x0]:null;if(!_0x4aa11b)_0x2fe18e['pauses']=[];else{if(!_0x4aa11b['autoAssociation'])return _0x36affb['userProfileResource']['get']({'sectionId':_0x4aa11b['id']})[_0x48f343('0x1964')][_0x48f343('0x173b')](function(_0x3b0980){const _0x57e9a0=_0x48f343,_0x284a51=_0x3c8d8a()[_0x57e9a0('0x8a2')](_0x3b0980[_0x57e9a0('0x6aa')],function(_0x41d10d){const _0x3d08e4=_0x57e9a0;return _0x3c8d8a()[_0x3d08e4('0x18ab')](_0x2fe18e[_0x3d08e4('0x1d66')],{'id':_0x41d10d[_0x3d08e4('0x1ce0')]});});_0x2fe18e[_0x57e9a0('0x1d66')]['forEach'](function(_0x382c99){const _0x145781=_0x57e9a0;!_0x3c8d8a()[_0x145781('0x1ec')](_0x284a51,['id',_0x382c99['id']])&&(_0x382c99['canSelect']=![]),_0x284a51['push'](_0x382c99);}),_0x2fe18e[_0x57e9a0('0x1d66')]=_0x284a51;});}})[_0x102d47('0x103c')](function(_0x45052c){const _0x277670=_0x102d47;_0x5d9d2a['error']({'title':_0x45052c[_0x277670('0x276f')]?_0x277670('0x137')+_0x45052c[_0x277670('0x276f')]+_0x277670('0x160c')+_0x45052c['statusText']:'SYSTEM:GETpauses','msg':_0x45052c['data']?JSON[_0x277670('0x100b')](_0x45052c['data']):_0x45052c[_0x277670('0x1b75')]()});});function _0x2cffa8(_0x1682a7,_0x666669){const _0x3b3842=_0x102d47;_0x3adcab[_0x3b3842('0x1cb7')]({'controller':_0x3b3842('0x168c'),'controllerAs':'vm','templateUrl':_0x37fc95,'parent':angular[_0x3b3842('0xb6d')](_0xd577f6['body']),'targetEvent':_0x666669,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x1682a7,'openchannelAccounts':_0x2fe18e[_0x3b3842('0x1a65')]?_0x2fe18e['openchannelAccounts'][_0x3b3842('0x6aa')]:[],'crudPermissions':_0x2fe18e[_0x3b3842('0x1dc1')],'realtime':![]}});}function _0x549372(){const _0x334a00=_0x102d47;_0x2ca2c9['go'](_0x334a00('0xe0c'),{},{'reload':_0x334a00('0xe0c')});}function _0x1f9cfd(){const _0x4754d7=_0x102d47;_0x36affb['openchannelAccount'][_0x4754d7('0x1842')]({'id':_0x2fe18e[_0x4754d7('0x13f1')]['id']},_0x2fe18e[_0x4754d7('0x13f1')])[_0x4754d7('0x1964')][_0x4754d7('0x173b')](function(){const _0x535012=_0x4754d7;_0x5d9d2a['success']({'title':'OpenchannelAccount\x20updated!','msg':_0x2fe18e[_0x535012('0x13f1')][_0x535012('0x10ad')]?_0x2fe18e[_0x535012('0x13f1')]['name']+_0x535012('0x1fd6'):''});})[_0x4754d7('0x103c')](function(_0xd0031f){const _0x5332f7=_0x4754d7;_0x5d9d2a[_0x5332f7('0x15aa')]({'title':_0xd0031f[_0x5332f7('0x276f')]?_0x5332f7('0x137')+_0xd0031f[_0x5332f7('0x276f')]+_0x5332f7('0x160c')+_0xd0031f[_0x5332f7('0x2696')]:_0x5332f7('0x1b0e'),'msg':_0xd0031f[_0x5332f7('0x1e07')]?JSON['stringify'](_0xd0031f['data']):_0xd0031f[_0x5332f7('0x1b75')]()});});}}const _0x327d28=_0x595844,_0x49c521=_0x21a6a1['p']+_0x566993('0x26e7');_0x24b904[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$timeout','$translate',_0x566993('0x1a65'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x24b904(_0x2a2ea6,_0x104c3e,_0x2527ec,_0x53fcb5,_0x5df44f,_0x378547,_0x28a855,_0x7f2e69,_0x2cb7bd,_0x450865,_0x594d55,_0x31215b,_0x41f6cf,_0x27a4ca,_0x210893,_0x49afe4,_0x3a316e){const _0x2655aa=_0x566993,_0x3fe067=this;_0x3fe067[_0x2655aa('0x1a29')]=_0x49afe4,_0x3fe067[_0x2655aa('0x251')]=_0x3a316e,_0x3fe067[_0x2655aa('0x155f')]=_0x210893[_0x2655aa('0x14d4')](),_0x3fe067['openchannelAccounts']=_0x2cb7bd||{'count':0x0,'rows':[]},_0x3fe067[_0x2655aa('0x257b')]=_0x450865,_0x3fe067[_0x2655aa('0x170e')]=_0x594d55&&_0x594d55['count']==0x1?_0x594d55[_0x2655aa('0x6aa')][0x0]:null,_0x3fe067[_0x2655aa('0x1dc1')]=_0x210893['parseCrudPermissions'](_0x3fe067[_0x2655aa('0x170e')]?_0x3fe067[_0x2655aa('0x170e')][_0x2655aa('0x1dc1')]:null),_0x3fe067[_0x2655aa('0xdf9')]=_0x2655aa('0x1a65'),_0x3fe067[_0x2655aa('0x14d6')]='',_0x3fe067[_0x2655aa('0x2303')]=null,_0x3fe067[_0x2655aa('0xc7e')]=[],_0x3fe067[_0x2655aa('0xc49')]={'fields':_0x2655aa('0x1a59'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x3fe067['editstate']=_0x2e34a1,_0x3fe067['interactionsgoto']=_0x474f51,_0x3fe067[_0x2655aa('0x2118')]=_0x3013f2,_0x3fe067[_0x2655aa('0x1a20')]=_0x356444,_0x3fe067[_0x2655aa('0xdfe')]=_0x4a9cd6,_0x3fe067[_0x2655aa('0x133b')]=_0x53cd64,_0x3fe067[_0x2655aa('0x2371')]=_0x4b017c,_0x3fe067[_0x2655aa('0x2a5')]=_0x3dd43a,_0x3fe067[_0x2655aa('0x46b')]=_0x13e53a,_0x3fe067[_0x2655aa('0x1c3c')]=_0x1a81ff,_0x3fe067[_0x2655aa('0xfb9')]=_0x24a5ba,_0x3fe067[_0x2655aa('0xccb')]=_0x33c5b4,_0x210893['hasRole'](_0x2655aa('0x79b'))?_0x31215b[_0x2655aa('0xbb3')][_0x2655aa('0x1d97')]({'fields':'id,name','sort':_0x2655aa('0x10ad')})[_0x2655aa('0x1964')][_0x2655aa('0x173b')](function(_0x2727bd){const _0x1e148b=_0x2655aa;_0x3fe067[_0x1e148b('0x9e8')]=_0x2727bd[_0x1e148b('0x6aa')]||[];})[_0x2655aa('0x103c')](function(_0x4caacd){const _0x460fca=_0x2655aa;_0x27a4ca['error']({'title':_0x4caacd[_0x460fca('0x276f')]?'API:'+_0x4caacd[_0x460fca('0x276f')]+_0x460fca('0x160c')+_0x4caacd[_0x460fca('0x2696')]:_0x460fca('0x1d5c'),'msg':_0x4caacd[_0x460fca('0x1e07')]?JSON[_0x460fca('0x100b')](_0x4caacd[_0x460fca('0x1e07')]):_0x4caacd[_0x460fca('0x1b75')]()});}):_0x31215b['cmList'][_0x2655aa('0x1d97')]({'fields':_0x2655aa('0xd52'),'sort':'name'})[_0x2655aa('0x1964')][_0x2655aa('0x173b')](function(_0x2285e6){const _0x54a977=_0x2655aa;_0x3fe067[_0x54a977('0x9e8')]=_0x2285e6[_0x54a977('0x6aa')]||[];})['then'](function(){const _0x2ad272=_0x2655aa;return _0x31215b['userProfileSection']['get']({'userProfileId':_0x3fe067[_0x2ad272('0x155f')][_0x2ad272('0x1946')],'sectionId':0x12d})['$promise'];})['then'](function(_0x3f8188){const _0x219df3=_0x2655aa,_0x501012=_0x3f8188&&_0x3f8188[_0x219df3('0x6aa')]?_0x3f8188[_0x219df3('0x6aa')][0x0]:null;if(!_0x501012){const _0x515186=[];let _0x202785=null;_0x3fe067[_0x219df3('0x13f1')]&&(_0x202785=_0x3c8d8a()['find'](_0x3fe067['lists'],{'id':Number(_0x3fe067[_0x219df3('0x13f1')][_0x219df3('0xef2')])}));for(let _0x1efd84=0x0;_0x1efd84<_0x3fe067[_0x219df3('0x9e8')][_0x219df3('0x543')];_0x1efd84++){_0x202785&&_0x3fe067[_0x219df3('0x9e8')][_0x1efd84]['id']===_0x202785['id']&&(_0x3fe067[_0x219df3('0x9e8')][_0x1efd84][_0x219df3('0x268e')]=![],_0x515186[_0x219df3('0x18bb')](_0x3fe067[_0x219df3('0x9e8')][_0x1efd84]));}_0x3fe067[_0x219df3('0x9e8')]=_0x515186;}else{if(!_0x501012[_0x219df3('0x273e')])return _0x31215b[_0x219df3('0xda9')][_0x219df3('0x1d97')]({'sectionId':_0x501012['id']})[_0x219df3('0x1964')][_0x219df3('0x173b')](function(_0x10df7a){const _0x27a79c=_0x219df3,_0x2f4118=_0x3c8d8a()['map'](_0x10df7a['rows'],function(_0x463033){const _0x351504=a0_0xde5e;return _0x3c8d8a()[_0x351504('0x18ab')](_0x3fe067[_0x351504('0x9e8')],{'id':_0x463033[_0x351504('0x1ce0')]});});let _0x1eca78=null;_0x3fe067[_0x27a79c('0x13f1')]&&(_0x1eca78=_0x3c8d8a()[_0x27a79c('0x18ab')](_0x3fe067[_0x27a79c('0x9e8')],{'id':Number(_0x3fe067['openchannelAccount'][_0x27a79c('0xef2')])}));if(_0x1eca78&&!_0x3c8d8a()[_0x27a79c('0x1ec')](_0x2f4118,['id',_0x1eca78['id']])){const _0x528d8d=_0x3c8d8a()[_0x27a79c('0x18ab')](_0x3fe067[_0x27a79c('0x9e8')],{'id':_0x1eca78['id']});_0x528d8d[_0x27a79c('0x268e')]=![],_0x2f4118[_0x27a79c('0x18bb')](_0x528d8d);}_0x3fe067[_0x27a79c('0x9e8')]=_0x2f4118;});}})[_0x2655aa('0x103c')](function(_0x5dc2f3){const _0x4cd763=_0x2655aa;_0x27a4ca[_0x4cd763('0x15aa')]({'title':_0x5dc2f3[_0x4cd763('0x276f')]?_0x4cd763('0x137')+_0x5dc2f3[_0x4cd763('0x276f')]+'\x20-\x20'+_0x5dc2f3[_0x4cd763('0x2696')]:_0x4cd763('0x1292'),'msg':_0x5dc2f3[_0x4cd763('0x1e07')]?JSON[_0x4cd763('0x100b')](_0x5dc2f3[_0x4cd763('0x1e07')]):_0x5dc2f3['toString']()});});function _0x2e34a1(_0x4f4a5a){const _0x3a09ba=_0x2655aa;_0x2527ec['go'](_0x3a09ba('0x4fb'),{'id':_0x4f4a5a['id'],'openchannelAccount':_0x4f4a5a,'crudPermissions':_0x3fe067[_0x3a09ba('0x1dc1')]});}function _0x474f51(_0x26db95){_0x2527ec['go']('app.openchannel.openchannelAccounts.edit',{'id':_0x26db95['id'],'tab':0x5});}function _0x3013f2(_0x22524b,_0xdf256f){const _0xf9e2be=_0x2655aa;_0x5df44f['show']({'controller':_0xf9e2be('0x168c'),'controllerAs':'vm','templateUrl':_0x37fc95,'parent':angular[_0xf9e2be('0xb6d')](_0x378547['body']),'targetEvent':_0xdf256f,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x22524b,'openchannelAccounts':_0x3fe067[_0xf9e2be('0x1a65')]?_0x3fe067[_0xf9e2be('0x1a65')][_0xf9e2be('0x6aa')]:[],'crudPermissions':_0x3fe067[_0xf9e2be('0x1dc1')],'realtime':![]}});}function _0x356444(_0x4b7c5a,_0x1ad90b){const _0x44c248=_0x2655aa,_0x10d222=_0x5df44f[_0x44c248('0x1d02')]()[_0x44c248('0x20d6')](_0x44c248('0x5bb')+_0x3c8d8a()[_0x44c248('0x10e')]('openchannelAccount')+'?')[_0x44c248('0xf8b')](_0x44c248('0x15b9')+(_0x4b7c5a['name']||'openchannelAccount')+''+_0x44c248('0xd23'))[_0x44c248('0x217')](_0x44c248('0x70c'))['targetEvent'](_0x1ad90b)['ok']('OK')['cancel'](_0x44c248('0x468'));_0x5df44f[_0x44c248('0x1cb7')](_0x10d222)[_0x44c248('0x173b')](function(){_0x3dd43a(_0x4b7c5a);},function(){const _0x4be25d=_0x44c248;console['log'](_0x4be25d('0x468'));});}let _0x17bf43=!![],_0x1cedcd=0x1;_0x2a2ea6[_0x2655aa('0x1bdb')](_0x2655aa('0x157b'),function(_0x1519e7,_0x3a34f0){const _0x16ac04=_0x2655aa;_0x17bf43?_0x28a855(function(){_0x17bf43=![];}):(!_0x3a34f0&&(_0x1cedcd=_0x3fe067[_0x16ac04('0xc49')][_0x16ac04('0x182e')]),_0x1519e7!==_0x3a34f0&&(_0x3fe067[_0x16ac04('0xc49')][_0x16ac04('0x182e')]=0x1),!_0x1519e7&&(_0x3fe067['query'][_0x16ac04('0x182e')]=_0x1cedcd),_0x3fe067['getOpenchannelAccounts']());});function _0x4a9cd6(_0x54aa37){const _0x980602=_0x2655aa;_0x3fe067[_0x980602('0x1a65')]=_0x54aa37||{'count':0x0,'rows':[]};}function _0x53cd64(){const _0x1b4fda=_0x2655aa;_0x3fe067['query'][_0x1b4fda('0x17f0')]=(_0x3fe067['query'][_0x1b4fda('0x182e')]-0x1)*_0x3fe067[_0x1b4fda('0xc49')]['limit'],_0x210893['hasRole'](_0x1b4fda('0x79b'))?_0x3fe067[_0x1b4fda('0x2219')]=_0x31215b[_0x1b4fda('0x13f1')][_0x1b4fda('0x1d97')](_0x3fe067[_0x1b4fda('0xc49')],_0x4a9cd6)[_0x1b4fda('0x1964')]:(_0x3fe067[_0x1b4fda('0xc49')]['id']=_0x3fe067[_0x1b4fda('0x257b')]['id'],_0x3fe067[_0x1b4fda('0xc49')][_0x1b4fda('0x17c9')]=_0x1b4fda('0xecc'),_0x3fe067[_0x1b4fda('0x2219')]=_0x31215b[_0x1b4fda('0x257b')][_0x1b4fda('0x135b')](_0x3fe067[_0x1b4fda('0xc49')],_0x4a9cd6)[_0x1b4fda('0x1964')]);}function _0x4b017c(_0x21b0d3,_0x9d0ca){const _0x15f7aa=_0x2655aa;_0x5df44f[_0x15f7aa('0x1cb7')]({'controller':'CreateOrEditOpenchannelAccountDialogController','controllerAs':'vm','templateUrl':_0x49c521,'parent':angular[_0x15f7aa('0xb6d')](_0x378547['body']),'targetEvent':_0x21b0d3,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x9d0ca,'openchannelAccounts':_0x3fe067[_0x15f7aa('0x1a65')][_0x15f7aa('0x6aa')],'license':_0x3fe067['license'],'setting':_0x3fe067['setting'],'crudPermissions':_0x3fe067[_0x15f7aa('0x1dc1')]}});}function _0x3dd43a(_0x208178){const _0x443168=_0x2655aa;_0x31215b[_0x443168('0x13f1')][_0x443168('0x15e8')]({'id':_0x208178['id']})[_0x443168('0x1964')][_0x443168('0x173b')](function(){const _0xadd785=_0x443168;_0x3c8d8a()[_0xadd785('0x1a8b')](_0x3fe067[_0xadd785('0x1a65')][_0xadd785('0x6aa')],{'id':_0x208178['id']}),_0x3fe067[_0xadd785('0x1a65')][_0xadd785('0x1a2f')]-=0x1,!_0x3fe067[_0xadd785('0x1a65')]['rows'][_0xadd785('0x543')]&&_0x3fe067['getOpenchannelAccounts'](),_0x27a4ca['success']({'title':_0x3c8d8a()[_0xadd785('0x10e')](_0xadd785('0x10a9'))+_0xadd785('0x1c5e'),'msg':_0x208178[_0xadd785('0x10ad')]?_0x208178[_0xadd785('0x10ad')]+_0xadd785('0x25d2'):''});})[_0x443168('0x103c')](function(_0xcd5a50){const _0x58c587=_0x443168;if(_0xcd5a50[_0x58c587('0x1e07')]&&_0xcd5a50[_0x58c587('0x1e07')][_0x58c587('0x1d4a')]&&_0xcd5a50[_0x58c587('0x1e07')][_0x58c587('0x1d4a')][_0x58c587('0x543')]){_0x3fe067[_0x58c587('0x1d4a')]=_0xcd5a50[_0x58c587('0x1e07')][_0x58c587('0x1d4a')]||[{'message':_0xcd5a50['toString'](),'type':'SYSTEM:DELETEopenchannelAccount'}];for(let _0x2dd6f1=0x0;_0x2dd6f1<_0xcd5a50[_0x58c587('0x1e07')]['errors'][_0x58c587('0x543')];_0x2dd6f1++){_0x27a4ca[_0x58c587('0x15aa')]({'title':_0xcd5a50[_0x58c587('0x1e07')][_0x58c587('0x1d4a')][_0x2dd6f1][_0x58c587('0x1810')],'msg':_0xcd5a50['data']['errors'][_0x2dd6f1][_0x58c587('0x67f')]});}}else _0x27a4ca[_0x58c587('0x15aa')]({'title':_0xcd5a50[_0x58c587('0x276f')]?_0x58c587('0x137')+_0xcd5a50[_0x58c587('0x276f')]+'\x20-\x20'+_0xcd5a50[_0x58c587('0x2696')]:_0x58c587('0x1b48'),'msg':_0xcd5a50['data']?JSON[_0x58c587('0x100b')](_0xcd5a50['data'][_0x58c587('0x67f')]):_0xcd5a50[_0x58c587('0x67f')]||_0xcd5a50[_0x58c587('0x1b75')]()});});}function _0x13e53a(){const _0x38b9ef=_0x2655aa,_0x112a1a=angular[_0x38b9ef('0x2e3')](_0x3fe067[_0x38b9ef('0xc7e')]);return _0x3fe067['selectedOpenchannelAccounts']=[],_0x112a1a;}function _0x1a81ff(_0x301d7b){const _0x4e0a11=_0x2655aa,_0xf2db59=_0x5df44f[_0x4e0a11('0x1d02')]()[_0x4e0a11('0x20d6')](_0x4e0a11('0x23a2'))[_0x4e0a11('0xf8b')](''+_0x3fe067['selectedOpenchannelAccounts'][_0x4e0a11('0x543')]+_0x4e0a11('0xcb4')+_0x4e0a11('0xd23'))[_0x4e0a11('0x217')]('delete\x20OpenchannelAccounts')[_0x4e0a11('0x21de')](_0x301d7b)['ok']('OK')['cancel'](_0x4e0a11('0x468'));_0x5df44f[_0x4e0a11('0x1cb7')](_0xf2db59)[_0x4e0a11('0x173b')](function(){const _0x147aee=_0x4e0a11;_0x3fe067[_0x147aee('0xc7e')][_0x147aee('0xa6a')](function(_0x43b9a3){_0x3dd43a(_0x43b9a3);}),_0x3fe067[_0x147aee('0xc7e')]=[];});}function _0x24a5ba(){_0x3fe067['selectedOpenchannelAccounts']=[];}function _0x33c5b4(){const _0x53cb96=_0x2655aa;_0x3fe067[_0x53cb96('0xc7e')]=_0x3fe067[_0x53cb96('0x1a65')][_0x53cb96('0x6aa')];}}const _0x16e821=_0x24b904;_0x439e09[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),'openchannelQueues',_0x566993('0x1611'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting','crudPermissions'];function _0x439e09(_0x6e6da9,_0x141d88,_0x5bd16a,_0x258e54,_0x1baa9c,_0x40e5b1,_0x5d666c,_0x43d37b,_0x38730d,_0x2c7234,_0x478e86,_0x57deac,_0x2c19fc,_0x24a276){const _0x5df7fa=_0x566993,_0x1fc4ac=this;_0x1fc4ac[_0x5df7fa('0x155f')]=_0x478e86['getCurrentUser'](),_0x1fc4ac[_0x5df7fa('0x1d4a')]=[],_0x1fc4ac[_0x5df7fa('0x251')]=_0x2c19fc,_0x1fc4ac[_0x5df7fa('0x1a29')]=_0x57deac,_0x1fc4ac[_0x5df7fa('0x1dc1')]=_0x24a276,_0x1fc4ac[_0x5df7fa('0xb0')]={},_0x1fc4ac[_0x5df7fa('0x644')]=_0x1fc4ac[_0x5df7fa('0x251')]&&_0x1fc4ac[_0x5df7fa('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1fc4ac[_0x5df7fa('0x20d6')]=_0x5df7fa('0x1a83'),_0x1fc4ac[_0x5df7fa('0x1611')]=angular[_0x5df7fa('0x2e3')](_0x38730d),_0x1fc4ac['openchannelQueues']=_0x43d37b,_0x1fc4ac['newOpenchannelQueue']=![];!_0x1fc4ac[_0x5df7fa('0x1611')]&&(_0x1fc4ac[_0x5df7fa('0x1611')]={'strategy':_0x5df7fa('0x61'),'timeout':0xa},_0x1fc4ac['title']='OPENCHANNEL.NEW_OPENCHANNELQUEUE',_0x1fc4ac[_0x5df7fa('0x153')]=!![]);_0x1fc4ac[_0x5df7fa('0x2842')]=_0x580e7b,_0x1fc4ac[_0x5df7fa('0x21fc')]=_0x5267af,_0x1fc4ac[_0x5df7fa('0x1f9a')]=_0x19850c,_0x1fc4ac[_0x5df7fa('0x11ae')]=_0x541a4e,_0x1fc4ac['closeDialog']=_0x1017b3;function _0x580e7b(){const _0x559de8=_0x5df7fa;_0x1fc4ac[_0x559de8('0x1d4a')]=[],_0x2c7234[_0x559de8('0x1611')][_0x559de8('0x1195')](_0x1fc4ac['openchannelQueue'])[_0x559de8('0x1964')][_0x559de8('0x173b')](function(_0x4594a0){const _0x38539b=_0x559de8;_0x1fc4ac['openchannelQueues'][_0x38539b('0x1377')](_0x4594a0['toJSON']()),_0x5d666c[_0x38539b('0xdfe')]({'title':_0x38539b('0x2272'),'msg':_0x1fc4ac[_0x38539b('0x1611')][_0x38539b('0x10ad')]?_0x1fc4ac[_0x38539b('0x1611')][_0x38539b('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x1017b3(_0x4594a0);})['catch'](function(_0x2f17d5){const _0x4854f7=_0x559de8;if(_0x2f17d5['data']&&_0x2f17d5[_0x4854f7('0x1e07')]['errors']&&_0x2f17d5[_0x4854f7('0x1e07')][_0x4854f7('0x1d4a')][_0x4854f7('0x543')]){_0x1fc4ac[_0x4854f7('0x1d4a')]=_0x2f17d5[_0x4854f7('0x1e07')]['errors']||[{'message':_0x2f17d5[_0x4854f7('0x1b75')](),'type':'api.openchannelQueue.save'}];for(let _0x3b75e6=0x0;_0x3b75e6<_0x2f17d5[_0x4854f7('0x1e07')]['errors']['length'];_0x3b75e6+=0x1){_0x5d666c[_0x4854f7('0x15aa')]({'title':_0x2f17d5['data'][_0x4854f7('0x1d4a')][_0x3b75e6][_0x4854f7('0x1810')],'msg':_0x2f17d5['data']['errors'][_0x3b75e6][_0x4854f7('0x67f')]});}}else _0x5d666c['error']({'title':_0x2f17d5['status']?_0x4854f7('0x137')+_0x2f17d5[_0x4854f7('0x276f')]+_0x4854f7('0x160c')+_0x2f17d5['statusText']:_0x4854f7('0x7c4'),'msg':_0x2f17d5['data']?JSON[_0x4854f7('0x100b')](_0x2f17d5[_0x4854f7('0x1e07')]['message']):_0x2f17d5[_0x4854f7('0x1b75')]()});});}function _0x5267af(){const _0x2be952=_0x5df7fa;_0x1fc4ac[_0x2be952('0x1d4a')]=[],_0x2c7234['openchannelQueue'][_0x2be952('0x1842')]({'id':_0x1fc4ac[_0x2be952('0x1611')]['id']},_0x1fc4ac['openchannelQueue'])[_0x2be952('0x1964')][_0x2be952('0x173b')](function(_0x4a2d77){const _0x5fbd28=_0x2be952,_0x2fa6f4=_0x3c8d8a()[_0x5fbd28('0x18ab')](_0x1fc4ac['openchannelQueues'],{'id':_0x4a2d77['id']});_0x2fa6f4&&_0x3c8d8a()[_0x5fbd28('0x9ef')](_0x2fa6f4,_0x3c8d8a()[_0x5fbd28('0x2114')](_0x4a2d77[_0x5fbd28('0xf1f')](),_0x3c8d8a()[_0x5fbd28('0x1d3e')](_0x2fa6f4))),_0x5d666c[_0x5fbd28('0xdfe')]({'title':_0x5fbd28('0x1b01'),'msg':_0x1fc4ac[_0x5fbd28('0x1611')]['name']?_0x1fc4ac['openchannelQueue']['name']+_0x5fbd28('0x2788'):''}),_0x1017b3(_0x4a2d77);})[_0x2be952('0x103c')](function(_0x34c723){const _0x322118=_0x2be952;if(_0x34c723[_0x322118('0x1e07')]&&_0x34c723[_0x322118('0x1e07')][_0x322118('0x1d4a')]&&_0x34c723['data'][_0x322118('0x1d4a')][_0x322118('0x543')]){_0x1fc4ac[_0x322118('0x1d4a')]=_0x34c723[_0x322118('0x1e07')][_0x322118('0x1d4a')]||[{'message':_0x34c723[_0x322118('0x1b75')](),'type':_0x322118('0x1809')}];for(let _0x303a84=0x0;_0x303a84<_0x34c723[_0x322118('0x1e07')][_0x322118('0x1d4a')][_0x322118('0x543')];_0x303a84++){_0x5d666c['error']({'title':_0x34c723[_0x322118('0x1e07')]['errors'][_0x303a84]['type'],'msg':_0x34c723[_0x322118('0x1e07')][_0x322118('0x1d4a')][_0x303a84][_0x322118('0x67f')]});}}else _0x5d666c[_0x322118('0x15aa')]({'title':_0x34c723['status']?_0x322118('0x137')+_0x34c723[_0x322118('0x276f')]+'\x20-\x20'+_0x34c723[_0x322118('0x2696')]:_0x322118('0x1809'),'msg':_0x34c723[_0x322118('0x1e07')]?JSON['stringify'](_0x34c723['data']['message']):_0x34c723['toString']()});});}function _0x19850c(_0x343840){const _0xcb81c1=_0x5df7fa;_0x1fc4ac[_0xcb81c1('0x1d4a')]=[];const _0x15f008=_0x258e54['confirm']()['title']('Are\x20you\x20sure?')[_0xcb81c1('0x732')](_0xcb81c1('0x21f2'))[_0xcb81c1('0x217')](_0xcb81c1('0x1e94'))['ok'](_0xcb81c1('0x2373'))[_0xcb81c1('0x1e1f')]('Cancel')[_0xcb81c1('0x21de')](_0x343840);_0x258e54[_0xcb81c1('0x1cb7')](_0x15f008)[_0xcb81c1('0x173b')](function(){const _0xaf12c9=_0xcb81c1;_0x2c7234[_0xaf12c9('0x1611')][_0xaf12c9('0x15e8')]({'id':_0x1fc4ac[_0xaf12c9('0x1611')]['id']})[_0xaf12c9('0x1964')][_0xaf12c9('0x173b')](function(){const _0x5c0533=_0xaf12c9;_0x3c8d8a()['remove'](_0x1fc4ac[_0x5c0533('0x1f89')],{'id':_0x1fc4ac[_0x5c0533('0x1611')]['id']}),_0x5d666c[_0x5c0533('0xdfe')]({'title':_0x5c0533('0x55d'),'msg':(_0x1fc4ac['openchannelQueue'][_0x5c0533('0x10ad')]||'openchannelQueue')+_0x5c0533('0x25d2')}),_0x1017b3(_0x1fc4ac[_0x5c0533('0x1611')]);})['catch'](function(_0x572cda){const _0x3c1101=_0xaf12c9;if(_0x572cda[_0x3c1101('0x1e07')]&&_0x572cda[_0x3c1101('0x1e07')][_0x3c1101('0x1d4a')]&&_0x572cda['data'][_0x3c1101('0x1d4a')][_0x3c1101('0x543')]){_0x1fc4ac['errors']=_0x572cda[_0x3c1101('0x1e07')][_0x3c1101('0x1d4a')]||[{'message':_0x572cda[_0x3c1101('0x1b75')](),'type':_0x3c1101('0x1c8')}];for(let _0x3492fc=0x0;_0x3492fc<_0x572cda[_0x3c1101('0x1e07')][_0x3c1101('0x1d4a')][_0x3c1101('0x543')];_0x3492fc++){_0x5d666c[_0x3c1101('0x15aa')]({'title':_0x572cda[_0x3c1101('0x1e07')][_0x3c1101('0x1d4a')][_0x3492fc][_0x3c1101('0x1810')],'msg':_0x572cda[_0x3c1101('0x1e07')]['errors'][_0x3492fc][_0x3c1101('0x67f')]});}}else _0x5d666c['error']({'title':_0x572cda[_0x3c1101('0x276f')]?_0x3c1101('0x137')+_0x572cda[_0x3c1101('0x276f')]+'\x20-\x20'+_0x572cda[_0x3c1101('0x2696')]:_0x3c1101('0x1c8'),'msg':_0x572cda['data']?JSON['stringify'](_0x572cda[_0x3c1101('0x1e07')][_0x3c1101('0x67f')]):_0x572cda[_0x3c1101('0x67f')]||_0x572cda[_0x3c1101('0x1b75')]()});});},function(){});}function _0x541a4e(_0x41dcbf){return _0x41dcbf===null?undefined:new Date(_0x41dcbf);}function _0x1017b3(_0x373d3e){const _0x2a9059=_0x5df7fa;_0x258e54[_0x2a9059('0x1cf4')](_0x373d3e);}}const _0x55d2c4=_0x439e09;_0x2217c1[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1611'),'openchannelQueues',_0x566993('0x12a7'),_0x566993('0x638'),'Auth',_0x566993('0x1dc1')];function _0x2217c1(_0xf7d985,_0xb9e37d,_0x2dea1f,_0x55b2d5,_0x3bdb84,_0x486e7f,_0x184f68,_0x448f59,_0x969fe4,_0x146767){const _0x9366f3=_0x566993,_0x425512=this;_0x425512[_0x9366f3('0x155f')]=_0x969fe4['getCurrentUser'](),_0x425512[_0x9366f3('0x1611')]=_0x3bdb84,_0x425512[_0x9366f3('0x1dc1')]=_0x146767,_0x425512[_0x9366f3('0x12a7')]=_0x184f68,_0x425512[_0x9366f3('0x1b1f')]=[],_0x425512[_0x9366f3('0x203e')]=[],_0x425512[_0x9366f3('0x5f8')]=[],_0x425512[_0x9366f3('0x1493')]=[],_0x425512['startingSelectedItems']=[],_0x425512[_0x9366f3('0x277e')]=![],_0x425512[_0x9366f3('0x2535')]=_0x102d1d,_0x425512[_0x9366f3('0x21dc')]=_0x59a4ee,_0x425512['closeDialog']=_0xaa6a7d,_0x425512['dualMultiselectOptions']={'readOnly':!_0x425512[_0x9366f3('0x1dc1')][_0x9366f3('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x9366f3('0x10ad'),'line1':_0x9366f3('0x572'),'line2':['name',_0x9366f3('0x138c')],'line3':'','labelAll':_0x448f59['instant'](_0x9366f3('0x2258')),'labelSelected':_0x448f59[_0x9366f3('0x1467')](_0x9366f3('0x344')),'transferCallback':function(){const _0x2d6e1b=_0x9366f3,_0x3cac2a=_0x3c8d8a()['xorBy'](_0x425512['startingSelectedItems'],_0x425512['selectedItems'],'id');_0x425512[_0x2d6e1b('0x277e')]=_0x3c8d8a()[_0x2d6e1b('0x1a56')](_0x3cac2a)?![]:!![];}};function _0x102d1d(){const _0x4abf52=_0x9366f3;return _0x969fe4[_0x4abf52('0x1b4e')](_0x4abf52('0x79b'))?_0x5ca93d()[_0x4abf52('0x103c')](function(_0x351c5d){const _0x5f3532=_0x4abf52;_0x2dea1f[_0x5f3532('0x15aa')]({'title':_0x351c5d[_0x5f3532('0x276f')]?_0x5f3532('0x137')+_0x351c5d['status']+'\x20-\x20'+_0x351c5d[_0x5f3532('0x2696')]:_0x5f3532('0x152b'),'msg':_0x351c5d[_0x5f3532('0x276f')]?JSON['stringify'](_0x351c5d[_0x5f3532('0x1e07')]):_0x351c5d[_0x5f3532('0x1b75')]()});}):_0x37ef38()['then'](function(_0x2fff4e){const _0x4d4fd3=_0x4abf52;return _0x425512[_0x4d4fd3('0x17c9')]=_0x2fff4e,_0x5ca93d();})[_0x4abf52('0x103c')](function(_0x2145f4){const _0x1b52ba=_0x4abf52;_0x2dea1f['error']({'title':_0x2145f4[_0x1b52ba('0x276f')]?_0x1b52ba('0x137')+_0x2145f4[_0x1b52ba('0x276f')]+'\x20-\x20'+_0x2145f4['statusText']:_0x1b52ba('0x152b'),'msg':_0x2145f4[_0x1b52ba('0x276f')]?JSON[_0x1b52ba('0x100b')](_0x2145f4['data']):_0x2145f4[_0x1b52ba('0x1b75')]()});});}function _0x37ef38(){return _0xb9e37d(function(_0x323856,_0x423009){const _0x1cd3f4=a0_0xde5e;_0x55b2d5[_0x1cd3f4('0x170e')]['get']({'userProfileId':_0x425512[_0x1cd3f4('0x155f')]['userProfileId'],'name':_0x1cd3f4('0x1272')})['$promise']['then'](function(_0x6d2899){const _0x4606db=_0x1cd3f4,_0x2bb9d7=_0x6d2899&&_0x6d2899[_0x4606db('0x6aa')]?_0x6d2899[_0x4606db('0x6aa')][0x0]:null;_0x323856(_0x2bb9d7);})[_0x1cd3f4('0x103c')](function(_0x3e2086){_0x423009(_0x3e2086);});});}function _0x5ca93d(){return _0xb9e37d(function(_0x1b6699,_0xe95de6){const _0x2106a6=a0_0xde5e;return _0x1c7b26()['then'](function(_0x154236){const _0x334322=a0_0xde5e;return _0x425512[_0x334322('0x1b1f')]=_0x154236['rows']?_0x154236[_0x334322('0x6aa')]:[],_0x969fe4[_0x334322('0x1b4e')](_0x334322('0x79b'))?_0x154236:_0x425512[_0x334322('0x17c9')]?_0x425512['section'][_0x334322('0x273e')]?_0x154236:_0x1858ed():null;})[_0x2106a6('0x173b')](function(_0x4966e9){const _0x438947=_0x2106a6,_0x194417=_0x4966e9&&_0x4966e9[_0x438947('0x6aa')]?_0x4966e9[_0x438947('0x6aa')]:[];return _0x425512[_0x438947('0x203e')]=_0x3c8d8a()[_0x438947('0x8a2')](_0x194417,function(_0x23ab04){const _0x5e1b58=_0x438947;return _0x3c8d8a()[_0x5e1b58('0x18ab')](_0x425512['items'],{'id':_0x969fe4[_0x5e1b58('0x1b4e')](_0x5e1b58('0x79b'))||_0x425512[_0x5e1b58('0x17c9')][_0x5e1b58('0x273e')]?_0x23ab04['id']:_0x23ab04[_0x5e1b58('0x1ce0')]});}),_0x425512[_0x438947('0x1493')]=angular['copy'](_0x425512['allowedItems']),_0x425512[_0x438947('0x1b1f')]['forEach'](function(_0x538a51){const _0x536ca7=_0x438947,_0x52a93f=_0x3c8d8a()[_0x536ca7('0x18ab')](_0x425512[_0x536ca7('0x203e')],{'id':_0x538a51['id']});_0x969fe4['hasRole'](_0x536ca7('0x79b'))?_0x538a51['isValid']=!![]:_0x538a51['isValid']=typeof _0x52a93f!==_0x536ca7('0x6e5')?!![]:![];}),_0x432641();})[_0x2106a6('0x173b')](function(_0x180732){const _0x17d042=_0x2106a6,_0x389a64=_0x180732&&_0x180732[_0x17d042('0x6aa')]?_0x180732[_0x17d042('0x6aa')]:[];_0x425512[_0x17d042('0x5f8')]=_0x3c8d8a()[_0x17d042('0x8a2')](_0x389a64,function(_0x5bef7f){const _0x5984ae=_0x17d042,_0x5c480c=_0x3c8d8a()[_0x5984ae('0x18ab')](_0x425512[_0x5984ae('0x1b1f')],{'id':_0x5bef7f['id']});return _0x5c480c[_0x5984ae('0x1692')]=_0x5bef7f['UserOpenchannelQueue']?'penalty\x20'+_0x5bef7f[_0x5984ae('0x1a1d')][_0x5984ae('0x1692')]:'',_0x5c480c[_0x5984ae('0x138c')]=typeof _0x5bef7f[_0x5984ae('0x138c')]!=='undefined'?'<'+_0x5bef7f['internal']+'>':'',_0x5c480c;}),_0x425512[_0x17d042('0x15c9')]=angular['copy'](_0x425512[_0x17d042('0x5f8')]),_0x425512[_0x17d042('0x52e')][_0x17d042('0x5f8')]=_0x425512[_0x17d042('0x5f8')],_0x425512[_0x17d042('0x52e')][_0x17d042('0x1b1f')]=_0x3c8d8a()[_0x17d042('0x1bd3')](_0x425512[_0x17d042('0x203e')],_0x425512['dualMultiselectOptions']['selectedItems'],'id'),_0x1b6699();})[_0x2106a6('0x103c')](function(_0x45febc){_0xe95de6(_0x45febc);});});}function _0x1858ed(){return _0xb9e37d(function(_0x2170b6,_0x2b4a7f){const _0x4458a9=a0_0xde5e;return _0x55b2d5[_0x4458a9('0xda9')][_0x4458a9('0x1d97')]({'sectionId':_0x425512['section']['id'],'nolimit':!![]})['$promise']['then'](function(_0x4d8aaf){_0x2170b6(_0x4d8aaf);})['catch'](function(_0x3e1b51){_0x2b4a7f(_0x3e1b51);});});}function _0x432641(){return _0xb9e37d(function(_0x5f51ef,_0x5a961b){const _0x3e4cef=a0_0xde5e;return _0x55b2d5['openchannelQueue'][_0x3e4cef('0x1903')]({'id':_0x425512[_0x3e4cef('0x1611')]['id'],'fields':_0x3e4cef('0x1d65'),'nolimit':!![],'role':'agent'})[_0x3e4cef('0x1964')][_0x3e4cef('0x173b')](function(_0x291ce5){_0x5f51ef(_0x291ce5);})[_0x3e4cef('0x103c')](function(_0x439b2c){_0x5a961b(_0x439b2c);});});}function _0x1c7b26(){return _0xb9e37d(function(_0x304c8c,_0x44cbb0){const _0x24b45a=a0_0xde5e;return _0x55b2d5[_0x24b45a('0x166f')][_0x24b45a('0x1d97')]({'fields':_0x24b45a('0x1d65'),'nolimit':!![],'role':_0x24b45a('0x7b0')})[_0x24b45a('0x1964')][_0x24b45a('0x173b')](function(_0x13627f){_0x304c8c(_0x13627f);})['catch'](function(_0x4a6961){_0x44cbb0(_0x4a6961);});});}function _0x1d84fe(_0x42f67d){return _0xb9e37d(function(_0xa3d37b,_0x20b2ea){const _0x154759=a0_0xde5e;_0x3c8d8a()[_0x154759('0x1a56')](_0x42f67d)?_0xa3d37b():_0x55b2d5[_0x154759('0x1611')][_0x154759('0x1ff1')]({'id':_0x425512[_0x154759('0x1611')]['id'],'ids':_0x3c8d8a()[_0x154759('0x8a2')](_0x42f67d,'id')})[_0x154759('0x1964')][_0x154759('0x173b')](function(){_0xa3d37b();})['catch'](function(_0x404fc2){_0x20b2ea(_0x404fc2);});});}function _0xe8fa7d(_0x5df79f){return _0xb9e37d(function(_0x30ffc5,_0x2309d9){const _0xe00398=a0_0xde5e;_0x3c8d8a()[_0xe00398('0x1a56')](_0x5df79f)?_0x30ffc5():_0x55b2d5['openchannelQueue'][_0xe00398('0x2017')]({'id':_0x425512[_0xe00398('0x1611')]['id'],'ids':_0x3c8d8a()['map'](_0x5df79f,'id')})[_0xe00398('0x1964')][_0xe00398('0x173b')](function(){_0x30ffc5();})[_0xe00398('0x103c')](function(_0x261ea1){_0x2309d9(_0x261ea1);});});}function _0x59a4ee(){const _0xdf4eda=_0x9366f3,_0x3f57b0=_0x3c8d8a()[_0xdf4eda('0x1bd3')](_0x425512[_0xdf4eda('0x15c9')],_0x425512[_0xdf4eda('0x5f8')],'id'),_0x4a4853=_0x3c8d8a()[_0xdf4eda('0x1bd3')](_0x425512[_0xdf4eda('0x5f8')],_0x425512[_0xdf4eda('0x15c9')],'id');return _0xe8fa7d(_0x3f57b0)[_0xdf4eda('0x173b')](function(){return _0x1d84fe(_0x4a4853);})[_0xdf4eda('0x173b')](function(){const _0x423816=_0xdf4eda;_0x425512[_0x423816('0x277e')]=![],_0x425512[_0x423816('0x1493')]=angular[_0x423816('0x2e3')](_0x425512[_0x423816('0x203e')]),_0x425512['startingSelectedItems']=angular[_0x423816('0x2e3')](_0x425512[_0x423816('0x5f8')]),_0x2dea1f[_0x423816('0xdfe')]({'title':_0x423816('0x23db'),'msg':_0x423816('0x2027')});})[_0xdf4eda('0x103c')](function(_0x3631ee){const _0x4e68d3=_0xdf4eda;_0x2dea1f['error']({'title':_0x3631ee[_0x4e68d3('0x276f')]?'API:'+_0x3631ee[_0x4e68d3('0x276f')]+_0x4e68d3('0x160c')+_0x3631ee[_0x4e68d3('0x2696')]:_0x4e68d3('0x1f48'),'msg':_0x3631ee[_0x4e68d3('0x276f')]?JSON[_0x4e68d3('0x100b')](_0x3631ee[_0x4e68d3('0x1e07')]):_0x3631ee[_0x4e68d3('0x1b75')]()});});}function _0xaa6a7d(){const _0x2795d2=_0x9366f3;_0xf7d985[_0x2795d2('0x1cf4')]();}}const _0x5153ac=_0x2217c1;_0x5da469['$inject']=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1611'),_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x5da469(_0x5c8a8f,_0x22effe,_0x359b06,_0x37fe86,_0x50d5d3,_0x33c5fd,_0xf95a5f,_0x395522){const _0x64751=_0x566993,_0x3fcfc8=this;_0x3fcfc8[_0x64751('0x155f')]=_0xf95a5f['getCurrentUser'](),_0x3fcfc8['openchannelQueue']=_0x50d5d3,_0x3fcfc8[_0x64751('0x1dc1')]=_0x395522,_0x3fcfc8[_0x64751('0x1b1f')]=[],_0x3fcfc8[_0x64751('0x203e')]=[],_0x3fcfc8[_0x64751('0x5f8')]=[],_0x3fcfc8[_0x64751('0x1493')]=[],_0x3fcfc8[_0x64751('0x15c9')]=[],_0x3fcfc8['pendingChanges']=![],_0x3fcfc8['dualMultiselectOptions']={'readOnly':!_0x3fcfc8[_0x64751('0x1dc1')][_0x64751('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x64751('0x10ad'),'line1':_0x64751('0x10ad'),'line2':'','line3':'','labelAll':_0x33c5fd[_0x64751('0x1467')]('OPENCHANNEL.ALL_TEAMS'),'labelSelected':_0x33c5fd[_0x64751('0x1467')]('OPENCHANNEL.SELECTED_TEAMS'),'transferCallback':function(){const _0x9b4f15=_0x64751,_0x41fee8=_0x3c8d8a()[_0x9b4f15('0x226b')](_0x3fcfc8[_0x9b4f15('0x15c9')],_0x3fcfc8[_0x9b4f15('0x5f8')],'id');_0x3fcfc8['pendingChanges']=_0x3c8d8a()[_0x9b4f15('0x1a56')](_0x41fee8)?![]:!![];}},_0x3fcfc8[_0x64751('0x2535')]=_0xb65cd4,_0x3fcfc8[_0x64751('0x2421')]=_0xd46050,_0x3fcfc8[_0x64751('0x18e2')]=_0x2f92a5;function _0xb65cd4(){const _0x563eeb=_0x64751;return _0xf95a5f[_0x563eeb('0x1b4e')]('admin')?_0x23cfc5()[_0x563eeb('0x103c')](function(_0x49f13f){const _0x5c6fea=_0x563eeb;_0x359b06[_0x5c6fea('0x15aa')]({'title':_0x49f13f[_0x5c6fea('0x276f')]?_0x5c6fea('0x137')+_0x49f13f[_0x5c6fea('0x276f')]+'\x20-\x20'+_0x49f13f['statusText']:_0x5c6fea('0x15d3'),'msg':_0x49f13f[_0x5c6fea('0x276f')]?JSON[_0x5c6fea('0x100b')](_0x49f13f[_0x5c6fea('0x1e07')]):_0x49f13f[_0x5c6fea('0x1b75')]()});}):_0xa04ed()[_0x563eeb('0x173b')](function(_0x55a909){const _0x162795=_0x563eeb;return _0x3fcfc8[_0x162795('0x17c9')]=_0x55a909,_0x23cfc5();})['catch'](function(_0x5321d7){const _0x37fe13=_0x563eeb;_0x359b06[_0x37fe13('0x15aa')]({'title':_0x5321d7[_0x37fe13('0x276f')]?'API:'+_0x5321d7['status']+'\x20-\x20'+_0x5321d7[_0x37fe13('0x2696')]:'SYSTEM:GET_TEAMS','msg':_0x5321d7[_0x37fe13('0x276f')]?JSON[_0x37fe13('0x100b')](_0x5321d7['data']):_0x5321d7[_0x37fe13('0x1b75')]()});});}function _0xa04ed(){return _0x22effe(function(_0x1fca12,_0x20707d){const _0x3990b6=a0_0xde5e;_0x37fe86['userProfileSection'][_0x3990b6('0x1d97')]({'userProfileId':_0x3fcfc8[_0x3990b6('0x155f')]['userProfileId'],'name':_0x3990b6('0x1e5c')})[_0x3990b6('0x1964')]['then'](function(_0x1ef740){const _0x9bebfe=_0x3990b6,_0x2125c7=_0x1ef740&&_0x1ef740[_0x9bebfe('0x6aa')]?_0x1ef740['rows'][0x0]:null;_0x1fca12(_0x2125c7);})['catch'](function(_0x40d8ae){_0x20707d(_0x40d8ae);});});}function _0x23cfc5(){return _0x22effe(function(_0x5801a6,_0x4a3c61){const _0x16c462=a0_0xde5e;return _0x27a6cf()[_0x16c462('0x173b')](function(_0x4c8481){const _0x22e422=_0x16c462;return _0x3fcfc8[_0x22e422('0x1b1f')]=_0x4c8481[_0x22e422('0x6aa')]?_0x4c8481['rows']:[],_0xf95a5f[_0x22e422('0x1b4e')]('admin')?_0x4c8481:_0x3fcfc8[_0x22e422('0x17c9')]?_0x3fcfc8[_0x22e422('0x17c9')][_0x22e422('0x273e')]?_0x4c8481:_0x467806():null;})[_0x16c462('0x173b')](function(_0xee860c){const _0xb7ac23=_0x16c462,_0x25205b=_0xee860c&&_0xee860c[_0xb7ac23('0x6aa')]?_0xee860c['rows']:[];return _0x3fcfc8[_0xb7ac23('0x203e')]=_0x3c8d8a()[_0xb7ac23('0x8a2')](_0x25205b,function(_0x19a7ad){const _0x3c5996=_0xb7ac23;return _0x3c8d8a()[_0x3c5996('0x18ab')](_0x3fcfc8[_0x3c5996('0x1b1f')],{'id':_0xf95a5f['hasRole']('admin')||_0x3fcfc8[_0x3c5996('0x17c9')][_0x3c5996('0x273e')]?_0x19a7ad['id']:_0x19a7ad[_0x3c5996('0x1ce0')]});}),_0x3fcfc8[_0xb7ac23('0x1b1f')][_0xb7ac23('0xa6a')](function(_0x1d503b){const _0x20079e=_0xb7ac23,_0xd09388=_0x3c8d8a()[_0x20079e('0x18ab')](_0x3fcfc8[_0x20079e('0x203e')],{'id':_0x1d503b['id']});_0xf95a5f['hasRole'](_0x20079e('0x79b'))?_0x1d503b[_0x20079e('0xf02')]=!![]:_0x1d503b[_0x20079e('0xf02')]=typeof _0xd09388!=='undefined'?!![]:![];}),_0x572f29();})[_0x16c462('0x173b')](function(_0x164229){const _0xa0d358=_0x16c462,_0x4ad607=_0x164229&&_0x164229['rows']?_0x164229['rows']:[];_0x3fcfc8[_0xa0d358('0x5f8')]=_0x3c8d8a()[_0xa0d358('0x8a2')](_0x4ad607,function(_0x36d758){const _0x557b0a=_0xa0d358;return _0x3c8d8a()['find'](_0x3fcfc8[_0x557b0a('0x1b1f')],{'id':_0x36d758['id']});}),_0x3fcfc8[_0xa0d358('0x15c9')]=angular[_0xa0d358('0x2e3')](_0x3fcfc8['selectedItems']),_0x3fcfc8[_0xa0d358('0x52e')][_0xa0d358('0x5f8')]=_0x3fcfc8['selectedItems'],_0x3fcfc8[_0xa0d358('0x52e')]['items']=_0x3c8d8a()[_0xa0d358('0x1bd3')](_0x3fcfc8['allowedItems'],_0x3fcfc8[_0xa0d358('0x52e')][_0xa0d358('0x5f8')],'id'),_0x5801a6();})[_0x16c462('0x103c')](function(_0x792642){_0x4a3c61(_0x792642);});});}function _0x467806(){return _0x22effe(function(_0x1f0c8c,_0x4560be){const _0x61ad61=a0_0xde5e;return _0x37fe86[_0x61ad61('0xda9')][_0x61ad61('0x1d97')]({'sectionId':_0x3fcfc8[_0x61ad61('0x17c9')]['id'],'nolimit':!![]})[_0x61ad61('0x1964')]['then'](function(_0x3d955a){_0x1f0c8c(_0x3d955a);})['catch'](function(_0x204266){_0x4560be(_0x204266);});});}function _0x572f29(){return _0x22effe(function(_0x3c3746,_0x4086e0){const _0x425bbe=a0_0xde5e;return _0x37fe86[_0x425bbe('0x1611')][_0x425bbe('0x1592')]({'id':_0x3fcfc8[_0x425bbe('0x1611')]['id'],'fields':_0x425bbe('0xd52'),'nolimit':!![]})[_0x425bbe('0x1964')][_0x425bbe('0x173b')](function(_0x34e466){_0x3c3746(_0x34e466);})[_0x425bbe('0x103c')](function(_0x1b1b7e){_0x4086e0(_0x1b1b7e);});});}function _0x27a6cf(){return _0x22effe(function(_0x4150ee,_0x574f6d){const _0x585338=a0_0xde5e;return _0x37fe86[_0x585338('0xe10')][_0x585338('0x1d97')]({'fields':'id,name','nolimit':!![]})[_0x585338('0x1964')][_0x585338('0x173b')](function(_0x592a5e){_0x4150ee(_0x592a5e);})[_0x585338('0x103c')](function(_0x2c134f){_0x574f6d(_0x2c134f);});});}function _0x4616fa(_0x4b0246){return _0x22effe(function(_0x43c4aa,_0x2001ab){const _0x5872e3=a0_0xde5e;_0x3c8d8a()[_0x5872e3('0x1a56')](_0x4b0246)?_0x43c4aa():_0x37fe86[_0x5872e3('0x1611')]['addTeams']({'id':_0x3fcfc8[_0x5872e3('0x1611')]['id'],'ids':_0x3c8d8a()['map'](_0x4b0246,'id')})['$promise'][_0x5872e3('0x173b')](function(){_0x43c4aa();})[_0x5872e3('0x103c')](function(_0x1d8dfb){_0x2001ab(_0x1d8dfb);});});}function _0x29a7d9(_0x1c33e1){return _0x22effe(function(_0x5c74af,_0x49ab81){const _0x4f8d55=a0_0xde5e;_0x3c8d8a()[_0x4f8d55('0x1a56')](_0x1c33e1)?_0x5c74af():_0x37fe86[_0x4f8d55('0x1611')][_0x4f8d55('0x7a')]({'id':_0x3fcfc8[_0x4f8d55('0x1611')]['id'],'ids':_0x3c8d8a()[_0x4f8d55('0x8a2')](_0x1c33e1,'id')})[_0x4f8d55('0x1964')][_0x4f8d55('0x173b')](function(){_0x5c74af();})['catch'](function(_0x2ba88b){_0x49ab81(_0x2ba88b);});});}function _0xd46050(){const _0xe17bc2=_0x64751,_0x56f4bc=_0x3c8d8a()[_0xe17bc2('0x1bd3')](_0x3fcfc8['startingSelectedItems'],_0x3fcfc8['selectedItems'],'id'),_0x10e1ab=_0x3c8d8a()['differenceBy'](_0x3fcfc8['selectedItems'],_0x3fcfc8[_0xe17bc2('0x15c9')],'id');return _0x29a7d9(_0x56f4bc)[_0xe17bc2('0x173b')](function(){return _0x4616fa(_0x10e1ab);})['then'](function(){const _0x1a001d=_0xe17bc2;_0x3fcfc8['pendingChanges']=![],_0x3fcfc8['startingAllowedItems']=angular[_0x1a001d('0x2e3')](_0x3fcfc8[_0x1a001d('0x203e')]),_0x3fcfc8[_0x1a001d('0x15c9')]=angular['copy'](_0x3fcfc8[_0x1a001d('0x5f8')]),_0x359b06['success']({'title':_0x1a001d('0x23db'),'msg':_0x1a001d('0x1b39')});})[_0xe17bc2('0x103c')](function(_0x13b819){const _0x1a6e53=_0xe17bc2;_0x359b06[_0x1a6e53('0x15aa')]({'title':_0x13b819[_0x1a6e53('0x276f')]?'API:'+_0x13b819['status']+_0x1a6e53('0x160c')+_0x13b819[_0x1a6e53('0x2696')]:_0x1a6e53('0x1f48'),'msg':_0x13b819[_0x1a6e53('0x276f')]?JSON[_0x1a6e53('0x100b')](_0x13b819[_0x1a6e53('0x1e07')]):_0x13b819['toString']()});});}function _0x2f92a5(){const _0x189f76=_0x64751;_0x5c8a8f[_0x189f76('0x1cf4')]();}}const _0xae8b65=_0x5da469,_0x1a8ebf=_0x21a6a1['p']+_0x566993('0x1eac');_0x5e9754[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1611'),'userProfileSection'];function _0x5e9754(_0x444d14,_0x49c154,_0x1227ac,_0x91ce81,_0xb4ead4,_0x14e590,_0x3ce4dd,_0x5d6562,_0x218ac2,_0x3d730c,_0x336733,_0x4811b8){const _0x2487b5=_0x566993,_0x225900=this;_0x225900[_0x2487b5('0x155f')]=_0x3d730c[_0x2487b5('0x14d4')](),_0x225900[_0x2487b5('0x1a29')]=_0x14e590,_0x225900[_0x2487b5('0x251')]=_0x3ce4dd,_0x225900[_0x2487b5('0x644')]=_0x225900['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x225900[_0x2487b5('0x614')]=_0x49c154['protocol']()+_0x2487b5('0x122b')+_0x49c154[_0x2487b5('0x4d1')](),_0x225900['openchannelQueue']=_0x336733||_0x444d14[_0x2487b5('0x197a')]['openchannelQueue']||{},_0x225900[_0x2487b5('0x170e')]=_0x4811b8&&_0x4811b8[_0x2487b5('0x1a2f')]==0x1?_0x4811b8[_0x2487b5('0x6aa')][0x0]:null,_0x225900[_0x2487b5('0x1dc1')]=_0x3d730c[_0x2487b5('0xde6')](_0x225900[_0x2487b5('0x170e')]?_0x225900[_0x2487b5('0x170e')][_0x2487b5('0x1dc1')]:null),_0x225900['hasModulePermissions']={},_0x225900[_0x2487b5('0xd5f')]=_0x444d14[_0x2487b5('0x197a')][_0x2487b5('0x1e66')]||0x0,_0x225900['teamadddialog']=_0x3a9165,_0x225900[_0x2487b5('0x2118')]=_0x263d28,_0x225900[_0x2487b5('0x5a4')]=_0x218ac2[_0x2487b5('0x2787')],_0x225900[_0x2487b5('0x2845')]=_0x3673a2,_0x225900[_0x2487b5('0x21fc')]=_0x299abb;function _0x3a9165(_0x15b593,_0x2f3804){const _0x7fe5dd=_0x2487b5;_0x1227ac[_0x7fe5dd('0x1cb7')]({'controller':_0x7fe5dd('0x1118'),'controllerAs':'vm','templateUrl':_0x1a8ebf,'parent':angular[_0x7fe5dd('0xb6d')](_0x91ce81[_0x7fe5dd('0x1a5')]),'targetEvent':_0x2f3804,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x15b593,'openchannelQueues':_0x225900[_0x7fe5dd('0x1f89')]?_0x225900[_0x7fe5dd('0x1f89')][_0x7fe5dd('0x6aa')]:[],'crudPermissions':_0x225900['crudPermissions']}});}function _0x263d28(_0x32335f,_0xae2086){const _0x2cf760=_0x2487b5;_0x1227ac['show']({'controller':_0x2cf760('0x186a'),'controllerAs':'vm','templateUrl':_0x154f27,'parent':angular['element'](_0x91ce81['body']),'targetEvent':_0xae2086,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x32335f,'openchannelQueues':_0x225900[_0x2cf760('0x1f89')]?_0x225900[_0x2cf760('0x1f89')][_0x2cf760('0x6aa')]:[],'crudPermissions':_0x225900[_0x2cf760('0x1dc1')],'realtime':![]}});}function _0x3673a2(){const _0x38777f=_0x2487b5;_0x444d14['go'](_0x38777f('0x1a9d'),{},{'reload':_0x38777f('0x1a9d')});}function _0x299abb(){const _0x54ab93=_0x2487b5;_0x5d6562[_0x54ab93('0x1611')]['update']({'id':_0x225900['openchannelQueue']['id']},_0x225900[_0x54ab93('0x1611')])['$promise'][_0x54ab93('0x173b')](function(){const _0x4c3863=_0x54ab93;_0x218ac2['success']({'title':_0x4c3863('0xaa1'),'msg':_0x225900['openchannelQueue'][_0x4c3863('0x10ad')]?_0x225900['openchannelQueue'][_0x4c3863('0x10ad')]+_0x4c3863('0x1fd6'):''});})[_0x54ab93('0x103c')](function(_0x50eb77){const _0x1d6c9e=_0x54ab93;_0x218ac2[_0x1d6c9e('0x15aa')]({'title':_0x50eb77[_0x1d6c9e('0x276f')]?_0x1d6c9e('0x137')+_0x50eb77[_0x1d6c9e('0x276f')]+'\x20-\x20'+_0x50eb77[_0x1d6c9e('0x2696')]:'SYSTEM:GETopenchannelQueue','msg':_0x50eb77[_0x1d6c9e('0x1e07')]?JSON[_0x1d6c9e('0x100b')](_0x50eb77['data']):_0x50eb77[_0x1d6c9e('0x1b75')]()});});}}const _0x1f31a8=_0x5e9754;_0x2cb8fd[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav','$mdDialog','$document',_0x566993('0x24b5'),'$translate','openchannelQueues',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x2cb8fd(_0x441346,_0x58b672,_0x22a2aa,_0x400442,_0x30f9ef,_0x2188c5,_0x3e9bb0,_0x4340e7,_0x5dc92d,_0x5c2150,_0x365249,_0x597c07,_0x578726,_0x1ff61b,_0xf93d16,_0x14652d,_0x497050){const _0xea3545=_0x566993,_0x1f25d3=this;_0x1f25d3[_0xea3545('0x1a29')]=_0x14652d,_0x1f25d3[_0xea3545('0x251')]=_0x497050,_0x1f25d3[_0xea3545('0x155f')]=_0xf93d16[_0xea3545('0x14d4')](),_0x1f25d3[_0xea3545('0x1f89')]=_0x5dc92d||{'count':0x0,'rows':[]},_0x1f25d3[_0xea3545('0x257b')]=_0x5c2150,_0x1f25d3['userProfileSection']=_0x365249&&_0x365249[_0xea3545('0x1a2f')]==0x1?_0x365249['rows'][0x0]:null,_0x1f25d3[_0xea3545('0x1dc1')]=_0xf93d16[_0xea3545('0xde6')](_0x1f25d3[_0xea3545('0x170e')]?_0x1f25d3[_0xea3545('0x170e')]['crudPermissions']:null),_0x1f25d3[_0xea3545('0xdf9')]=_0xea3545('0x1f89'),_0x1f25d3[_0xea3545('0x14d6')]='',_0x1f25d3[_0xea3545('0x2303')]=null,_0x1f25d3['selectedOpenchannelQueues']=[],_0x1f25d3['query']={'fields':_0xea3545('0xab9'),'sort':_0xea3545('0x1769'),'channel':_0xea3545('0xab2'),'limit':0xa,'page':0x1},_0x1f25d3[_0xea3545('0x2125')]=_0x3c8d8a()['keyBy']([{'option':'Beepall','value':'\x27beepall\x27'},{'option':_0xea3545('0xd86'),'value':_0xea3545('0x1b87')}],function(_0x51a744){return _0x3c8d8a()['replace'](_0x51a744['value'],new RegExp('\x27','g'),'');}),_0x1f25d3[_0xea3545('0x222e')]=_0x36eb49,_0x1f25d3[_0xea3545('0x17d4')]=_0x2d88bf,_0x1f25d3[_0xea3545('0x2118')]=_0x1ea86b,_0x1f25d3[_0xea3545('0x1a20')]=_0xdb0492,_0x1f25d3[_0xea3545('0x1c9c')]=_0xd7641b,_0x1f25d3['success']=_0x1037d8,_0x1f25d3['getOpenchannelQueues']=_0x22324c,_0x1f25d3['createOrEditOpenchannelQueue']=_0xc436e0,_0x1f25d3[_0xea3545('0x1f9a')]=_0x2c6f2c,_0x1f25d3[_0xea3545('0x1515')]=_0x546dc0,_0x1f25d3[_0xea3545('0xec8')]=_0x2337f3,_0x1f25d3['deselectOpenchannelQueues']=_0x1ae13f,_0x1f25d3[_0xea3545('0x496')]=_0x511216;function _0x36eb49(_0x521bc3){const _0x5ac88b=_0xea3545;_0x22a2aa['go']('app.openchannel.openchannelQueues.edit',{'id':_0x521bc3['id'],'openchannelQueue':_0x521bc3,'crudPermissions':_0x1f25d3[_0x5ac88b('0x1dc1')]});}function _0x2d88bf(_0x4f4586,_0x2d8e1e){const _0x745372=_0xea3545;_0x30f9ef[_0x745372('0x1cb7')]({'controller':'OpenchannelQueueteamaddController','controllerAs':'vm','templateUrl':_0x1a8ebf,'parent':angular[_0x745372('0xb6d')](_0x2188c5[_0x745372('0x1a5')]),'targetEvent':_0x2d8e1e,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x4f4586,'openchannelQueues':_0x1f25d3[_0x745372('0x1f89')]?_0x1f25d3['openchannelQueues'][_0x745372('0x6aa')]:[],'crudPermissions':_0x1f25d3[_0x745372('0x1dc1')]}});}function _0x1ea86b(_0x106914,_0x4bff46){const _0x4edb6f=_0xea3545;_0x30f9ef['show']({'controller':_0x4edb6f('0x186a'),'controllerAs':'vm','templateUrl':_0x154f27,'parent':angular[_0x4edb6f('0xb6d')](_0x2188c5[_0x4edb6f('0x1a5')]),'targetEvent':_0x4bff46,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x106914,'openchannelQueues':_0x1f25d3['openchannelQueues']?_0x1f25d3['openchannelQueues']['rows']:[],'crudPermissions':_0x1f25d3[_0x4edb6f('0x1dc1')],'realtime':![]}});}function _0xdb0492(_0x5c9ddc,_0x151a29){const _0x3c602c=_0xea3545,_0x2d0c1c=_0x30f9ef[_0x3c602c('0x1d02')]()[_0x3c602c('0x20d6')](_0x3c602c('0x5bb')+_0x3c8d8a()[_0x3c602c('0x10e')](_0x3c602c('0x1611'))+'?')['htmlContent'](_0x3c602c('0x15b9')+(_0x5c9ddc['name']||_0x3c602c('0x1611'))+_0x3c602c('0x24be')+_0x3c602c('0xd23'))[_0x3c602c('0x217')]('delete\x20openchannelQueue')[_0x3c602c('0x21de')](_0x151a29)['ok']('OK')[_0x3c602c('0x1e1f')]('CANCEL');_0x30f9ef['show'](_0x2d0c1c)[_0x3c602c('0x173b')](function(){_0x2c6f2c(_0x5c9ddc);},function(){const _0x174786=_0x3c602c;console[_0x174786('0xe37')](_0x174786('0x468'));});}function _0xd7641b(){const _0x3c0fe3=_0xea3545;if(_0xf93d16[_0x3c0fe3('0x1b4e')](_0x3c0fe3('0x79b')))_0x22a2aa['go'](_0x3c0fe3('0x1408'),{});else return _0x597c07[_0x3c0fe3('0x170e')][_0x3c0fe3('0x1d97')]({'userProfileId':_0xf93d16[_0x3c0fe3('0x14d4')]()[_0x3c0fe3('0x1946')],'sectionId':0x32a})['$promise'][_0x3c0fe3('0x173b')](function(_0xe65376){const _0x4524c2=_0x3c0fe3,_0x31eb35=_0xe65376&&_0xe65376[_0x4524c2('0x6aa')]?_0xe65376[_0x4524c2('0x6aa')][0x0]:null;_0x31eb35&&_0x31eb35['enabled']?_0x22a2aa['go'](_0x4524c2('0x1408'),{}):_0x1ff61b[_0x4524c2('0x2787')]({'title':_0x4340e7[_0x4524c2('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x4340e7['instant'](_0x4524c2('0x7d4'))});})[_0x3c0fe3('0x103c')](function(_0x4f07bb){const _0x3543b0=_0x3c0fe3;_0x1ff61b[_0x3543b0('0x15aa')]({'title':_0x4f07bb[_0x3543b0('0x276f')]?_0x3543b0('0x137')+_0x4f07bb[_0x3543b0('0x276f')]+_0x3543b0('0x160c')+_0x4f07bb[_0x3543b0('0x2696')]:_0x3543b0('0x144d'),'msg':_0x4f07bb[_0x3543b0('0x276f')]?JSON[_0x3543b0('0x100b')](_0x4f07bb[_0x3543b0('0x1e07')]):_0x4f07bb[_0x3543b0('0x1b75')]()});});}let _0xe2566c=!![],_0x5a2d03=0x1;_0x441346[_0xea3545('0x1bdb')](_0xea3545('0x157b'),function(_0x2b7656,_0x51c813){const _0x3d09f1=_0xea3545;_0xe2566c?_0x3e9bb0(function(){_0xe2566c=![];}):(!_0x51c813&&(_0x5a2d03=_0x1f25d3['query'][_0x3d09f1('0x182e')]),_0x2b7656!==_0x51c813&&(_0x1f25d3[_0x3d09f1('0xc49')][_0x3d09f1('0x182e')]=0x1),!_0x2b7656&&(_0x1f25d3[_0x3d09f1('0xc49')][_0x3d09f1('0x182e')]=_0x5a2d03),_0x1f25d3[_0x3d09f1('0x1dc7')]());});function _0x1037d8(_0x55e66d){_0x1f25d3['openchannelQueues']=_0x55e66d||{'count':0x0,'rows':[]};}function _0x22324c(){const _0xf2cb13=_0xea3545;_0x1f25d3[_0xf2cb13('0xc49')][_0xf2cb13('0x17f0')]=(_0x1f25d3['query'][_0xf2cb13('0x182e')]-0x1)*_0x1f25d3[_0xf2cb13('0xc49')][_0xf2cb13('0x3e')],_0xf93d16[_0xf2cb13('0x1b4e')]('admin')?_0x1f25d3[_0xf2cb13('0x2219')]=_0x597c07[_0xf2cb13('0x1611')]['get'](_0x1f25d3[_0xf2cb13('0xc49')],_0x1037d8)[_0xf2cb13('0x1964')]:(_0x1f25d3[_0xf2cb13('0xc49')]['id']=_0x1f25d3['userProfile']['id'],_0x1f25d3[_0xf2cb13('0xc49')]['section']=_0xf2cb13('0xd97'),_0x1f25d3[_0xf2cb13('0x2219')]=_0x597c07['userProfile'][_0xf2cb13('0x135b')](_0x1f25d3[_0xf2cb13('0xc49')],_0x1037d8)[_0xf2cb13('0x1964')]);}function _0xc436e0(_0x192e4e,_0x3f7da7){const _0x28c538=_0xea3545;_0x30f9ef['show']({'controller':_0x28c538('0x1922'),'controllerAs':'vm','templateUrl':_0x2a01e0,'parent':angular[_0x28c538('0xb6d')](_0x2188c5[_0x28c538('0x1a5')]),'targetEvent':_0x192e4e,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x3f7da7,'openchannelQueues':_0x1f25d3[_0x28c538('0x1f89')][_0x28c538('0x6aa')],'license':_0x1f25d3[_0x28c538('0x1a29')],'setting':_0x1f25d3['setting'],'crudPermissions':_0x1f25d3['crudPermissions']}});}function _0x2c6f2c(_0x5edb5c){const _0x17e968=_0xea3545;_0x597c07['openchannelQueue'][_0x17e968('0x15e8')]({'id':_0x5edb5c['id']})[_0x17e968('0x1964')][_0x17e968('0x173b')](function(){const _0x5e0f23=_0x17e968;_0x3c8d8a()['remove'](_0x1f25d3['openchannelQueues']['rows'],{'id':_0x5edb5c['id']}),_0x1f25d3[_0x5e0f23('0x1f89')][_0x5e0f23('0x1a2f')]-=0x1,!_0x1f25d3[_0x5e0f23('0x1f89')][_0x5e0f23('0x6aa')][_0x5e0f23('0x543')]&&_0x1f25d3[_0x5e0f23('0x1dc7')](),_0x1ff61b[_0x5e0f23('0xdfe')]({'title':_0x3c8d8a()[_0x5e0f23('0x10e')](_0x5e0f23('0x25e1'))+_0x5e0f23('0x1c5e'),'msg':_0x5edb5c[_0x5e0f23('0x10ad')]?_0x5edb5c['name']+_0x5e0f23('0x25d2'):''});})[_0x17e968('0x103c')](function(_0x4bf8e8){const _0x1a8301=_0x17e968;if(_0x4bf8e8[_0x1a8301('0x1e07')]&&_0x4bf8e8['data'][_0x1a8301('0x1d4a')]&&_0x4bf8e8[_0x1a8301('0x1e07')]['errors'][_0x1a8301('0x543')]){_0x1f25d3[_0x1a8301('0x1d4a')]=_0x4bf8e8[_0x1a8301('0x1e07')][_0x1a8301('0x1d4a')]||[{'message':_0x4bf8e8[_0x1a8301('0x1b75')](),'type':_0x1a8301('0x22f7')}];for(let _0x51f167=0x0;_0x51f167<_0x4bf8e8[_0x1a8301('0x1e07')][_0x1a8301('0x1d4a')][_0x1a8301('0x543')];_0x51f167++){_0x1ff61b['error']({'title':_0x4bf8e8[_0x1a8301('0x1e07')][_0x1a8301('0x1d4a')][_0x51f167][_0x1a8301('0x1810')],'msg':_0x4bf8e8[_0x1a8301('0x1e07')]['errors'][_0x51f167]['message']});}}else _0x1ff61b[_0x1a8301('0x15aa')]({'title':_0x4bf8e8['status']?_0x1a8301('0x137')+_0x4bf8e8['status']+_0x1a8301('0x160c')+_0x4bf8e8[_0x1a8301('0x2696')]:_0x1a8301('0x22f7'),'msg':_0x4bf8e8[_0x1a8301('0x1e07')]?JSON[_0x1a8301('0x100b')](_0x4bf8e8[_0x1a8301('0x1e07')][_0x1a8301('0x67f')]):_0x4bf8e8[_0x1a8301('0x67f')]||_0x4bf8e8[_0x1a8301('0x1b75')]()});});}function _0x546dc0(){const _0x83c902=_0xea3545,_0x24fc7d=angular[_0x83c902('0x2e3')](_0x1f25d3['selectedOpenchannelQueues']);return _0x1f25d3['selectedOpenchannelQueues']=[],_0x24fc7d;}function _0x2337f3(_0x396cbc){const _0x4ffcb4=_0xea3545,_0x5e1a06=_0x30f9ef[_0x4ffcb4('0x1d02')]()[_0x4ffcb4('0x20d6')](_0x4ffcb4('0x3a'))[_0x4ffcb4('0xf8b')](_0x4ffcb4('0x15b9')+_0x1f25d3[_0x4ffcb4('0x1914')][_0x4ffcb4('0x543')]+_0x4ffcb4('0xcb4')+'\x20will\x20be\x20deleted.')[_0x4ffcb4('0x217')]('delete\x20OpenchannelQueues')[_0x4ffcb4('0x21de')](_0x396cbc)['ok']('OK')['cancel'](_0x4ffcb4('0x468'));_0x30f9ef[_0x4ffcb4('0x1cb7')](_0x5e1a06)[_0x4ffcb4('0x173b')](function(){const _0xaa8e37=_0x4ffcb4;_0x1f25d3[_0xaa8e37('0x1914')]['forEach'](function(_0x4eec77){_0x2c6f2c(_0x4eec77);}),_0x1f25d3[_0xaa8e37('0x1914')]=[];});}function _0x1ae13f(){_0x1f25d3['selectedOpenchannelQueues']=[];}function _0x511216(){const _0xbe5352=_0xea3545;_0x1f25d3['selectedOpenchannelQueues']=_0x1f25d3[_0xbe5352('0x1f89')][_0xbe5352('0x6aa')];}}const _0x26a385=_0x2cb8fd;_0x85b284['$inject']=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x85b284(_0x4e9715,_0x1c18d5){const _0xa16fb1=_0x566993;_0x4e9715['state'](_0xa16fb1('0x2126'),{'abstract':!![],'url':_0xa16fb1('0x110e')})[_0xa16fb1('0x1a49')]('app.openchannel.openchannelQueues',{'url':'/openchannelQueues','views':{'content@app':{'templateUrl':_0x1a10a8,'controller':'OpenchannelQueuesController\x20as\x20vm'}},'resolve':{'openchannelQueues':[_0xa16fb1('0x2401'),'Auth',function(_0xce2183,_0x189aa0){const _0x422c9f=_0xa16fb1;return _0x189aa0[_0x422c9f('0x1b4e')](_0x422c9f('0x79b'))?_0xce2183[_0x422c9f('0x155b')](_0x422c9f('0x2405'),{'fields':_0x422c9f('0xab9'),'sort':_0x422c9f('0x1769'),'channel':_0x422c9f('0xab2'),'limit':0xa,'offset':0x0}):_0xce2183['resolve']('userProfile@getResources',{'id':_0x189aa0[_0x422c9f('0x14d4')]()['userProfileId'],'section':_0x422c9f('0xd97'),'fields':_0x422c9f('0xab9'),'sort':_0x422c9f('0x1769'),'channel':_0x422c9f('0xab2'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xa16fb1('0x2401'),_0xa16fb1('0x1600'),function(_0x39bd3a,_0xcaeb55){const _0xb23425=_0xa16fb1;return _0xcaeb55[_0xb23425('0x1b4e')](_0xb23425('0x79b'))?null:_0x39bd3a[_0xb23425('0x155b')](_0xb23425('0x1f20'),{'fields':_0xb23425('0x19dd'),'id':_0xcaeb55[_0xb23425('0x14d4')]()[_0xb23425('0x1946')]});}],'userProfileSection':['apiResolver',_0xa16fb1('0x1600'),function(_0x9ae4be,_0x5097cf){const _0x5fd862=_0xa16fb1;return _0x5097cf['hasRole'](_0x5fd862('0x79b'))?null:_0x9ae4be[_0x5fd862('0x155b')]('userProfileSection@get',{'fields':_0x5fd862('0x1348'),'userProfileId':_0x5097cf[_0x5fd862('0x14d4')]()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0xa16fb1('0xab2')})[_0xa16fb1('0x1a49')](_0xa16fb1('0x43d'),{'url':_0xa16fb1('0xb4c'),'params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x302a08,'controller':_0xa16fb1('0xae2')}},'resolve':{'openchannelQueue':[_0xa16fb1('0x2401'),_0xa16fb1('0x1caf'),function(_0x37c19e,_0x5ea309){const _0x47e129=_0xa16fb1;return _0x37c19e[_0x47e129('0x155b')](_0x47e129('0x2405'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x5ea309['id']});}],'userProfileSection':[_0xa16fb1('0x2401'),_0xa16fb1('0x1600'),function(_0x2930e7,_0x3d606a){const _0x1d51de=_0xa16fb1;return _0x2930e7[_0x1d51de('0x155b')]('userProfileSection@get',{'fields':_0x1d51de('0x1348'),'userProfileId':_0x3d606a['getCurrentUser']()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':_0xa16fb1('0xab2')})['state'](_0xa16fb1('0xe0c'),{'url':_0xa16fb1('0x624'),'views':{'content@app':{'templateUrl':_0xcae419,'controller':'OpenchannelAccountsController\x20as\x20vm'}},'resolve':{'openchannelAccounts':[_0xa16fb1('0x2401'),_0xa16fb1('0x1600'),function(_0x2d2b76,_0xc611ad){const _0x44acaa=_0xa16fb1;return _0xc611ad[_0x44acaa('0x1b4e')]('admin')?_0x2d2b76[_0x44acaa('0x155b')](_0x44acaa('0x967'),{'fields':_0x44acaa('0x1a59'),'sort':_0x44acaa('0x1769'),'limit':0xa,'offset':0x0}):_0x2d2b76['resolve'](_0x44acaa('0x14b3'),{'id':_0xc611ad[_0x44acaa('0x14d4')]()[_0x44acaa('0x1946')],'section':'OpenchannelAccounts','fields':_0x44acaa('0x1a59'),'sort':_0x44acaa('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0xa16fb1('0x1600'),function(_0x131447,_0x500fb4){const _0x54df28=_0xa16fb1;return _0x500fb4[_0x54df28('0x1b4e')]('admin')?null:_0x131447[_0x54df28('0x155b')]('userProfile@get',{'fields':_0x54df28('0x19dd'),'id':_0x500fb4[_0x54df28('0x14d4')]()[_0x54df28('0x1946')]});}],'userProfileSection':['apiResolver',_0xa16fb1('0x1600'),function(_0x5be0d3,_0x7886d7){const _0x139596=_0xa16fb1;return _0x7886d7[_0x139596('0x1b4e')](_0x139596('0x79b'))?null:_0x5be0d3['resolve'](_0x139596('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x7886d7[_0x139596('0x14d4')]()[_0x139596('0x1946')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0xa16fb1('0xab2')})[_0xa16fb1('0x1a49')]('app.openchannel.openchannelAccounts.edit',{'url':_0xa16fb1('0xb4c'),'params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4b9b0b,'controller':_0xa16fb1('0xd0')}},'resolve':{'openchannelAccount':['apiResolver',_0xa16fb1('0x1caf'),function(_0x189d86,_0x2f5aa9){const _0x32706e=_0xa16fb1;return _0x189d86[_0x32706e('0x155b')](_0x32706e('0x967'),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','id':_0x2f5aa9['id']});}],'userProfileSection':[_0xa16fb1('0x2401'),_0xa16fb1('0x1600'),function(_0x5dac7b,_0x3ba844){const _0x32c035=_0xa16fb1;return _0x5dac7b[_0x32c035('0x155b')](_0x32c035('0x40'),{'fields':_0x32c035('0x1348'),'userProfileId':_0x3ba844[_0x32c035('0x14d4')]()[_0x32c035('0x1946')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0xa16fb1('0xab2')}),_0x1c18d5[_0xa16fb1('0x1b1a')](_0xa16fb1('0x23b7'));}angular['module']('app.openchannel',[_0x566993('0x2a9'),_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),_0x566993('0x8a3'),_0x566993('0x1146'),_0x566993('0x1698'),_0x566993('0x269'),'mwFormUtils',_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),'chart.js','angular.filter','app.openchannel.realtime'])[_0x566993('0xea9')](_0x85b284)[_0x566993('0x1e65')](_0x566993('0x18b4'),_0x5ac022)[_0x566993('0x1e65')](_0x566993('0x129f'),_0x25f66f)[_0x566993('0x1e65')](_0x566993('0x168c'),_0x4519fc)[_0x566993('0x1e65')](_0x566993('0x1e21'),_0x45511d)[_0x566993('0x1e65')](_0x566993('0x9f1'),_0x21686a)[_0x566993('0x1e65')](_0x566993('0x2829'),_0xf8a7ae)[_0x566993('0x1e65')](_0x566993('0x12da'),_0x18b909)[_0x566993('0x1e65')](_0x566993('0x21df'),_0x5561e5)[_0x566993('0x1e65')](_0x566993('0x479'),_0x2a6c0c)[_0x566993('0x1e65')](_0x566993('0x1ea8'),_0x4a4cbd)[_0x566993('0x1e65')](_0x566993('0x2269'),_0x1a942d)[_0x566993('0x1e65')](_0x566993('0x208a'),_0x4e5b6e)['controller']('EditOpenchannelAccountAppqueueDialogController',_0x14540e)[_0x566993('0x1e65')](_0x566993('0x15b8'),_0x3f5a1f)[_0x566993('0x1e65')](_0x566993('0x1940'),_0x1264c2)[_0x566993('0x1e65')](_0x566993('0x782'),_0x574cf3)['controller']('OpenchannelAccountOpenchannelCannedAnswersController',_0xc75514)[_0x566993('0x1e65')](_0x566993('0x1050'),_0x1800a5)[_0x566993('0x1e65')]('OpenchannelAccountDispositionsController',_0x9e6c5a)[_0x566993('0x1e65')]('OpenchannelAccountController',_0x327d28)[_0x566993('0x1e65')](_0x566993('0x21a'),_0x16e821)['controller'](_0x566993('0x1922'),_0x55d2c4)[_0x566993('0x1e65')](_0x566993('0x186a'),_0x5153ac)[_0x566993('0x1e65')](_0x566993('0x1118'),_0xae8b65)['controller'](_0x566993('0x676'),_0x1f31a8)['controller']('OpenchannelQueuesController',_0x26a385);const _0x31ba6b=_0x21a6a1['p']+_0x566993('0x25e6'),_0x2ae9d3=_0x21a6a1['p']+_0x566993('0x1960'),_0x502a00=_0x21a6a1['p']+'src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html/faxAccounts.html',_0x4d1941=_0x21a6a1['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html/view.html',_0x1edf30=_0x21a6a1['p']+_0x566993('0x2683'),_0x3d80d5=_0x21a6a1['p']+_0x566993('0x4c6'),_0x4c5042=_0x21a6a1['p']+_0x566993('0x1441'),_0x534387=_0x21a6a1['p']+_0x566993('0x1b17'),_0x3ef632=_0x21a6a1['p']+'src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view.html';_0x833f8e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x2276'),_0x566993('0xbd4'),_0x566993('0x2fc'),'toasty',_0x566993('0x17f2'),_0x566993('0x2551'),'userProfile','userProfileSection',_0x566993('0x1600')];function _0x833f8e(_0x9c305,_0x11f3a1,_0x855cf1,_0x241568,_0x272c24,_0x4131b1,_0x340c03,_0x1d692a,_0x3d2216,_0x430efa,_0x45c05b,_0xfa96b4,_0x82d022){const _0x5f5d36=_0x566993,_0x4626f1=this;_0x4626f1[_0x5f5d36('0x155f')]=_0x82d022['getCurrentUser'](),_0x4626f1[_0x5f5d36('0x1a2f')]=_0x3d2216&&_0x3d2216['count']?_0x3d2216[_0x5f5d36('0x1a2f')]:0x0,_0x4626f1[_0x5f5d36('0x17f2')]=_0x3d2216?_0x3c8d8a()[_0x5f5d36('0x128')](_0x3d2216[_0x5f5d36('0x6aa')]?_0x3d2216[_0x5f5d36('0x6aa')]:[],'id'):{},_0x4626f1['rpcFaxAccounts']=_0x430efa?_0x3c8d8a()[_0x5f5d36('0x128')](_0x430efa[_0x5f5d36('0x6aa')]?_0x430efa[_0x5f5d36('0x6aa')]:[],'id'):{},_0x4626f1[_0x5f5d36('0x257b')]=_0x45c05b,_0x4626f1['userProfileSection']=_0xfa96b4&&_0xfa96b4[_0x5f5d36('0x1a2f')]==0x1?_0xfa96b4[_0x5f5d36('0x6aa')][0x0]:null,_0x4626f1[_0x5f5d36('0x1dc1')]=_0x82d022['parseCrudPermissions'](_0x4626f1['userProfileSection']?_0x4626f1[_0x5f5d36('0x170e')][_0x5f5d36('0x1dc1')]:null),_0x4626f1['query']={'sort':_0x5f5d36('0x1e3a'),'limit':0xa,'page':0x1},_0x4626f1[_0x5f5d36('0xdfe')]=_0x53d283,_0x4626f1[_0x5f5d36('0x2444')]=_0x5c472b,_0x4626f1[_0x5f5d36('0x2655')]=_0x466c2c,_0x4626f1['onSave']=_0x530f97,_0x4626f1[_0x5f5d36('0x1309')]=_0xd7a93b,_0x4626f1[_0x5f5d36('0x248a')]=_0x85ebf1,_0x4626f1[_0x5f5d36('0x144a')]=[],_0x3c8d8a()[_0x5f5d36('0x33d')](_0x4626f1[_0x5f5d36('0x17f2')],function(_0x8efb6){const _0x355e48=_0x5f5d36;_0x4626f1[_0x355e48('0x144a')][_0x355e48('0x18bb')](_0x8efb6['id']);}),_0x340c03['on'](_0x5f5d36('0x2448'),_0x4626f1[_0x5f5d36('0x689')]),_0x340c03['on'](_0x5f5d36('0x445'),_0x4626f1[_0x5f5d36('0x689')]),_0x340c03['on'](_0x5f5d36('0xc5c'),_0x4626f1[_0x5f5d36('0x1309')]);function _0x5c472b(){const _0x301e29=_0x5f5d36;_0x3c8d8a()[_0x301e29('0x33d')](_0x4626f1['faxAccounts'],function(_0x37ae57,_0x1f6a52){const _0x26c6f4=_0x301e29;_0x4626f1['rpcFaxAccounts'][_0x1f6a52]&&_0x3c8d8a()[_0x26c6f4('0x9ef')](_0x37ae57,_0x4626f1[_0x26c6f4('0x2551')][_0x1f6a52]);}),_0x3c8d8a()[_0x301e29('0x33d')](_0x4626f1[_0x301e29('0x17f2')],function(_0x1032a6,_0x52f630){const _0x46071b=_0x301e29,_0x317ab0={'id':_0x52f630,'sort':'-id','direction':'in','limit':0x1,'offset':0x0,'$gte':_0x46071b('0x3a2')+_0x156524()()[_0x46071b('0x2145')](_0x46071b('0x48d'))[_0x46071b('0xddc')](_0x46071b('0xf5f'))};_0x4131b1[_0x46071b('0xe12')][_0x46071b('0x24e5')](_0x317ab0)[_0x46071b('0x1964')][_0x46071b('0x173b')](function(_0x21966b){const _0x2d603d=_0x46071b;return _0x21966b&&(_0x1032a6['in']=_0x21966b[_0x2d603d('0x1a2f')]||0x0,_0x1032a6[_0x2d603d('0xadb')]=_0x21966b[_0x2d603d('0x6aa')]&&_0x21966b['rows']['length']?_0x21966b[_0x2d603d('0x6aa')][0x0][_0x2d603d('0xda8')]:undefined),_0x317ab0[_0x2d603d('0x15f4')]=_0x2d603d('0xe0a'),_0x4131b1['faxAccount'][_0x2d603d('0x24e5')](_0x317ab0)[_0x2d603d('0x1964')];})[_0x46071b('0x173b')](function(_0x1f7c8f){const _0xd4e3cf=_0x46071b;_0x1f7c8f&&(_0x1032a6[_0xd4e3cf('0xe0a')]=_0x1f7c8f[_0xd4e3cf('0x1a2f')]||0x0,_0x1032a6[_0xd4e3cf('0x1c27')]=_0x1f7c8f['rows']&&_0x1f7c8f[_0xd4e3cf('0x6aa')][_0xd4e3cf('0x543')]?_0x1f7c8f[_0xd4e3cf('0x6aa')][0x0][_0xd4e3cf('0xda8')]:undefined);})[_0x46071b('0x103c')](function(_0x381ccb){const _0x22bbf0=_0x46071b;console[_0x22bbf0('0xe37')](_0x381ccb);});});}function _0x530f97(_0x57df3c){const _0x4d1fd7=_0x5f5d36;_0x4626f1[_0x4d1fd7('0x17f2')][_0x57df3c['id']]&&_0x3c8d8a()[_0x4d1fd7('0x9ef')](_0x4626f1['faxAccounts'][_0x57df3c['id']],_0x57df3c);}function _0xd7a93b(_0x1481dd){const _0x494162=_0x5f5d36;_0x4626f1[_0x494162('0x17f2')][_0x1481dd['FaxAccountId']]&&(_0x1481dd[_0x494162('0x15f4')]=='in'?(_0x4626f1['faxAccounts'][_0x1481dd[_0x494162('0xcba')]]['in']+=0x1,_0x4626f1[_0x494162('0x17f2')][_0x1481dd[_0x494162('0xcba')]][_0x494162('0xadb')]=_0x1481dd[_0x494162('0xda8')]):(_0x4626f1['faxAccounts'][_0x1481dd[_0x494162('0xcba')]][_0x494162('0xe0a')]+=0x1,_0x4626f1[_0x494162('0x17f2')][_0x1481dd[_0x494162('0xcba')]][_0x494162('0x1c27')]=_0x1481dd['createdAt']));}function _0x85ebf1(_0x4d2617,_0x442c93){const _0x104e88=_0x5f5d36;_0x272c24['go'](_0x104e88('0x27cf'),{'id':_0x442c93['id'],'faxAccount':_0x442c93});}let _0x5160b3=!![],_0x426b41=0x1;_0x9c305[_0x5f5d36('0x1bdb')](_0x5f5d36('0x157b'),function(_0x487f6e,_0x353a19){const _0x40c208=_0x5f5d36;_0x5160b3?_0x11f3a1(function(){_0x5160b3=![];}):(!_0x353a19&&(_0x426b41=_0x4626f1[_0x40c208('0xc49')][_0x40c208('0x182e')]),_0x487f6e!==_0x353a19&&(_0x4626f1['query'][_0x40c208('0x182e')]=0x1),!_0x487f6e&&(_0x4626f1[_0x40c208('0xc49')][_0x40c208('0x182e')]=_0x426b41),_0x4626f1[_0x40c208('0x2655')]());});function _0x53d283(_0x1f4e39){const _0x211a83=_0x5f5d36;_0x4626f1['faxAccounts']=_0x1f4e39?_0x3c8d8a()[_0x211a83('0x128')](_0x1f4e39['rows']?_0x1f4e39[_0x211a83('0x6aa')]:[],'id'):{};if(_0x1f4e39['rows']){_0x4626f1[_0x211a83('0x144a')]=[];for(let _0x2c44e0=0x0;_0x2c44e0<_0x1f4e39[_0x211a83('0x6aa')][_0x211a83('0x543')];_0x2c44e0++){_0x4626f1[_0x211a83('0x144a')][_0x211a83('0x18bb')](_0x1f4e39[_0x211a83('0x6aa')][_0x2c44e0]['id']);}}_0x5c472b();}function _0x466c2c(){const _0x475b43=_0x5f5d36;_0x4626f1[_0x475b43('0xc49')][_0x475b43('0x17f0')]=(_0x4626f1[_0x475b43('0xc49')][_0x475b43('0x182e')]-0x1)*_0x4626f1[_0x475b43('0xc49')][_0x475b43('0x3e')],_0x82d022['hasRole'](_0x475b43('0x79b'))?_0x4626f1[_0x475b43('0x2219')]=_0x4131b1[_0x475b43('0xe12')][_0x475b43('0x1d97')](_0x4626f1['query'],_0x53d283)['$promise']:(_0x4626f1[_0x475b43('0xc49')]['id']=_0x4626f1[_0x475b43('0x257b')]['id'],_0x4626f1[_0x475b43('0xc49')][_0x475b43('0x17c9')]=_0x475b43('0x1ba2'),_0x4626f1[_0x475b43('0x2219')]=_0x4131b1[_0x475b43('0x257b')]['getResources'](_0x4626f1[_0x475b43('0xc49')],_0x53d283)[_0x475b43('0x1964')]);}_0x9c305[_0x5f5d36('0xbf6')]('$destroy',function(){const _0x47a01c=_0x5f5d36;_0x340c03['removeAllListeners']('faxAccount:save'),_0x340c03[_0x47a01c('0x251c')](_0x47a01c('0x445')),_0x340c03[_0x47a01c('0x251c')](_0x47a01c('0xc5c'));});}const _0x16e0c5=_0x833f8e;_0x407f4c[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$q',_0x566993('0x24b5'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x1537'),_0x566993('0x1d66'),_0x566993('0x11fa'),'rpcAgents',_0x566993('0xbd4'),'socket',_0x566993('0x1558'),_0x566993('0x1bf5'),'userProfile',_0x566993('0x170e'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x1b13')];function _0x407f4c(_0x15d646,_0x373bcc,_0x32d41d,_0x59133c,_0x133c52,_0xaf3449,_0x43d79e,_0x71e390,_0xc43a2f,_0x38ab51,_0x518ec3,_0x446d64,_0x24cc91,_0x2109d6,_0x5cf895,_0x41b5e9,_0x5b00a1,_0xc395eb){const _0x594009=_0x566993,_0x120c75=this,_0x5785d6=[_0x594009('0x1def'),_0x594009('0xc7a'),'lastLoginAt',_0x594009('0x20a0'),'pauseType',_0x594009('0x20a0'),_0x594009('0x138c'),_0x594009('0x1e8'),_0x594009('0x988'),_0x594009('0x106'),_0x594009('0xf41'),'smsPause',_0x594009('0x852'),_0x594009('0x13eb'),'voicePause',_0x594009('0x266d'),_0x594009('0xa4'),'mailCapacity',_0x594009('0x784'),'whatsappCapacity',_0x594009('0x2761'),'chatCurrentCapacity',_0x594009('0x24df'),_0x594009('0x1d75'),_0x594009('0x1ade'),'whatsappCurrentCapacity','faxCurrentCapacity',_0x594009('0x10ee'),_0x594009('0x1eba'),_0x594009('0x1120'),'smsStatus',_0x594009('0x14be'),_0x594009('0x2735'),_0x594009('0x1b47'),_0x594009('0x2816'),_0x594009('0x205'),_0x594009('0x22a'),'smsStatusTime',_0x594009('0x15b6'),_0x594009('0xbc9'),_0x594009('0x1c89'),_0x594009('0x172'),_0x594009('0x146b'),_0x594009('0x1fcd'),_0x594009('0x23ee'),_0x594009('0x1386')],_0xe61621=[_0x594009('0x988'),'openchannelPause',_0x594009('0xf41'),_0x594009('0x2ea'),'whatsappPause',_0x594009('0x13eb'),_0x594009('0x67c'),'online'];_0x120c75[_0x594009('0x155f')]=_0x41b5e9[_0x594009('0x14d4')](),_0x120c75[_0x594009('0x150')]=[_0x594009('0x263b'),_0x594009('0x1d20'),_0x594009('0xe2b'),_0x594009('0x1c3f'),_0x594009('0x273')],_0x120c75[_0x594009('0x1d66')]=_0x43d79e||{'count':0x0,'rows':[]},_0x120c75[_0x594009('0x1a29')]=_0x5b00a1,_0x120c75[_0x594009('0x257b')]=_0x2109d6,_0x120c75[_0x594009('0x170e')]=_0x5cf895&&_0x5cf895[_0x594009('0x1a2f')]==0x1?_0x5cf895[_0x594009('0x6aa')][0x0]:null,_0x120c75['crudPermissions']=_0x41b5e9['parseCrudPermissions'](_0x120c75['userProfileSection']?_0x120c75[_0x594009('0x170e')][_0x594009('0x1dc1')]:null),_0x120c75[_0x594009('0x11fa')]=_0x71e390?_0x3c8d8a()['keyBy'](_0x71e390[_0x594009('0x6aa')]?_0x71e390['rows']:[],'id'):{},_0x120c75['rpcAgents']=_0xc43a2f?_0x3c8d8a()[_0x594009('0x128')](_0xc43a2f[_0x594009('0x6aa')]?_0xc43a2f['rows']:[],'id'):{},_0x120c75[_0x594009('0x2cb')]={},_0x120c75[_0x594009('0xda0')]=![],_0x120c75[_0x594009('0x144a')]=[],_0x120c75['agentInternal']={};for(const _0x35e52e in _0x120c75[_0x594009('0x11fa')]){typeof _0x120c75['agents'][_0x35e52e]!==_0x594009('0x6e5')&&(_0x120c75['agents'][_0x35e52e][_0x594009('0xb9c')]=!![]);}_0x120c75[_0x594009('0xc49')]={'limit':0xa,'page':0x1,'order':_0x594009('0x572'),'globalStatusFilter':'','pauseTypeFilter':''},_0x120c75[_0x594009('0x1037')]=_0x3af3e4,_0x120c75['queueAdd']=_0x36f67e,_0x120c75[_0x594009('0x1751')]=_0x423c5a,_0x120c75[_0x594009('0x705')]=_0x3777a7,_0x120c75[_0x594009('0x2230')]=_0x46513a,_0x120c75[_0x594009('0x8da')]=_0x3e8150,_0x120c75['getAgentGlobalStatus']=_0xf53372,_0x120c75[_0x594009('0x1263')]=_0x253946,_0x120c75[_0x594009('0xe1')]=_0xa0d0d7,_0x120c75[_0x594009('0x83e')]=_0x511350,_0x120c75[_0x594009('0x689')]=_0x1317f3,_0x120c75['onUpdate']=_0x552fc0,_0x120c75['onInit']=_0x4580ce,_0x120c75[_0x594009('0xc04')]=_0xea1fdc,_0x120c75[_0x594009('0xa6f')]=_0x3ca6a1,_0x120c75[_0x594009('0x195a')]=_0x54aa44,_0x518ec3['on'](_0x594009('0x1f4c'),_0x120c75[_0x594009('0x689')]),_0x518ec3['on'](_0x594009('0x2048'),_0x120c75['onUpdate']),_0x518ec3['on']('user:agentconnect',_0x120c75[_0x594009('0xc04')]),_0x518ec3['on'](_0x594009('0xa73'),_0x120c75['onComplete']),_0x4580ce();let _0x588511=_0xc395eb(function(){const _0x5a0ad1=_0x594009;_0x120c75[_0x5a0ad1('0xda0')]&&(_0x120c75[_0x5a0ad1('0xda0')]=![],_0x4580ce());},0x3e7);function _0x4580ce(){const _0x2d90df=_0x594009;_0x120c75[_0x2d90df('0xda0')]=![];const _0x5b64c9=_0x373bcc['defer']();_0x120c75[_0x2d90df('0x2219')]=_0x5b64c9[_0x2d90df('0x2219')],_0x120c75[_0x2d90df('0x3b')]=[],_0x120c75[_0x2d90df('0x144a')]=[],_0x3c8d8a()['forIn'](_0x120c75[_0x2d90df('0x11fa')],function(_0x2ac208,_0x173e80){const _0xe96c9e=_0x2d90df;_0x120c75[_0xe96c9e('0x61d')][_0x173e80]&&_0x3c8d8a()[_0xe96c9e('0x9ef')](_0x2ac208,_0x3c8d8a()[_0xe96c9e('0x2114')](_0x3c8d8a()['omit'](_0x120c75[_0xe96c9e('0x61d')][_0x173e80],_0xe61621),_0x5785d6)),_0xf53372(_0x2ac208),_0x2ac208[_0xe96c9e('0xc7a')]?(_0x120c75[_0xe96c9e('0x3b')][_0xe96c9e('0x18bb')](_0x2ac208),_0x120c75[_0xe96c9e('0xa53')][_0x2ac208[_0xe96c9e('0x138c')]]=_0x173e80):_0x2ac208[_0xe96c9e('0x1cd8')]=_0x3c8d8a()[_0xe96c9e('0x1acd')](_0x156524()()[_0xe96c9e('0xddc')]('x'));});_0x120c75['query'][_0x2d90df('0x1f52')]&&_0x3c8d8a()[_0x2d90df('0x1a8b')](_0x120c75[_0x2d90df('0x3b')],function(_0x10a246){const _0x3e05d0=_0x2d90df;return _0x10a246[_0x3e05d0('0xd7e')]!==_0x120c75[_0x3e05d0('0xc49')][_0x3e05d0('0x1f52')];});_0x120c75[_0x2d90df('0xc49')][_0x2d90df('0x6a')]&&_0x3c8d8a()[_0x2d90df('0x1a8b')](_0x120c75[_0x2d90df('0x3b')],function(_0x483668){const _0x1ff39b=_0x2d90df;return _0x483668[_0x1ff39b('0xd63')]!==_0x120c75[_0x1ff39b('0xc49')]['pauseTypeFilter'];});_0x120c75[_0x2d90df('0xc49')][_0x2d90df('0x278d')]&&_0x3c8d8a()[_0x2d90df('0x1a8b')](_0x120c75[_0x2d90df('0x3b')],function(_0x10d482){const _0x23e924=_0x2d90df;return _0x10d482[_0x23e924('0x572')][_0x23e924('0x1e68')]()[_0x23e924('0x2087')](_0x120c75[_0x23e924('0xc49')][_0x23e924('0x278d')][_0x23e924('0x1e68')]())<0x0;});_0x120c75[_0x2d90df('0x3b')]=_0x5662cb(_0x120c75[_0x2d90df('0x3b')]);const _0x34a34b=(_0x120c75[_0x2d90df('0xc49')][_0x2d90df('0x182e')]-0x1)*_0x120c75[_0x2d90df('0xc49')][_0x2d90df('0x3e')];_0x120c75[_0x2d90df('0x2cb')]=_0x3c8d8a()['drop'](_0x120c75[_0x2d90df('0x3b')],_0x34a34b)[_0x2d90df('0x2456')](0x0,_0x120c75[_0x2d90df('0xc49')][_0x2d90df('0x3e')]);for(let _0xe957c1=0x0;_0xe957c1<_0x120c75[_0x2d90df('0x2cb')][_0x2d90df('0x543')];_0xe957c1+=0x1){_0x120c75['order'][_0x2d90df('0x18bb')](_0x120c75[_0x2d90df('0x2cb')][_0xe957c1]['id']);}_0x5b64c9['resolve'](),_0x120c75[_0x2d90df('0xda0')]=!![];}function _0x1317f3(_0xc4b50){const _0x26d1ad=_0x594009;_0x120c75[_0x26d1ad('0x11fa')][_0xc4b50['id']]&&(_0x3c8d8a()[_0x26d1ad('0x9ef')](_0x120c75[_0x26d1ad('0x11fa')][_0xc4b50['id']],_0x3c8d8a()[_0x26d1ad('0x2114')](_0x3c8d8a()['omit'](_0xc4b50,_0xe61621),_0x5785d6)),_0x3c8d8a()[_0x26d1ad('0x9ef')](_0x120c75[_0x26d1ad('0x61d')][_0xc4b50['id']],_0x3c8d8a()[_0x26d1ad('0x2114')](_0x3c8d8a()[_0x26d1ad('0x2797')](_0xc4b50,_0xe61621),_0x5785d6)),_0xf53372(_0x120c75[_0x26d1ad('0x11fa')][_0xc4b50['id']]));}function _0x552fc0(_0x4c698b){const _0x467709=_0x594009;_0x120c75[_0x467709('0x11fa')][_0x4c698b['id']]&&(_0x3c8d8a()[_0x467709('0x9ef')](_0x120c75[_0x467709('0x11fa')][_0x4c698b['id']],_0x3c8d8a()[_0x467709('0x2114')](_0x4c698b,_0x5785d6)),_0x3c8d8a()[_0x467709('0x9ef')](_0x120c75['rpcAgents'][_0x4c698b['id']],_0x3c8d8a()[_0x467709('0x2114')](_0x4c698b,_0x5785d6)),_0x4c698b['lastPauseAt']&&(_0x120c75['agents'][_0x4c698b['id']]['globalStatusTime']=_0x4c698b[_0x467709('0x20a0')],_0x120c75[_0x467709('0x61d')][_0x4c698b['id']][_0x467709('0x1cd8')]=_0x4c698b['lastPauseAt']),_0xf53372(_0x120c75[_0x467709('0x11fa')][_0x4c698b['id']]));}function _0xea1fdc(_0x1f5c83){const _0x2d4398=_0x594009;_0x120c75[_0x2d4398('0x11fa')][_0x120c75[_0x2d4398('0xa53')][_0x1f5c83['destaccountcode']]]&&(_0x3c8d8a()[_0x2d4398('0x9ef')](_0x120c75['agents'][_0x120c75[_0x2d4398('0xa53')][_0x1f5c83[_0x2d4398('0x203b')]]],_0x3c8d8a()[_0x2d4398('0x2114')](_0x1f5c83,[_0x2d4398('0x172'),'destconnectedlinenum'])),_0x3c8d8a()[_0x2d4398('0x9ef')](_0x120c75['rpcAgents'][_0x120c75[_0x2d4398('0xa53')][_0x1f5c83[_0x2d4398('0x203b')]]],_0x3c8d8a()[_0x2d4398('0x2114')](_0x1f5c83,[_0x2d4398('0x172'),_0x2d4398('0x146b')])));}function _0x3ca6a1(_0x3a67a2){const _0x51ec3f=_0x594009;_0x120c75[_0x51ec3f('0x11fa')][_0x120c75[_0x51ec3f('0xa53')][_0x3a67a2[_0x51ec3f('0x203b')]]]&&(_0x120c75[_0x51ec3f('0x11fa')][_0x120c75[_0x51ec3f('0xa53')][_0x3a67a2[_0x51ec3f('0x203b')]]]=_0x3c8d8a()[_0x51ec3f('0x2797')](_0x120c75[_0x51ec3f('0x11fa')][_0x120c75[_0x51ec3f('0xa53')][_0x3a67a2[_0x51ec3f('0x203b')]]],[_0x51ec3f('0x172'),_0x51ec3f('0x146b')]),_0x120c75[_0x51ec3f('0x61d')][_0x120c75['agentInternal'][_0x3a67a2[_0x51ec3f('0x203b')]]]=_0x3c8d8a()[_0x51ec3f('0x2797')](_0x120c75['rpcAgents'][_0x120c75[_0x51ec3f('0xa53')][_0x3a67a2[_0x51ec3f('0x203b')]]],[_0x51ec3f('0x172'),'destconnectedlinenum']));}function _0x3af3e4(_0x10b2e5){const _0x51363c=_0x594009;return _0x38ab51[_0x51363c('0x166f')][_0x51363c('0x1037')]({'id':_0x10b2e5['id'],'device':_0x51363c('0x12a7'),'agent_id':_0x10b2e5['id'],'agent_name':_0x10b2e5[_0x51363c('0x10ad')]})[_0x51363c('0x1964')][_0x51363c('0x173b')](function(){const _0x1c9c13=_0x51363c;_0x446d64['success']({'title':'Agent\x20logout','msg':_0x10b2e5[_0x1c9c13('0x572')]+_0x1c9c13('0x2189')}),_0x120c75['agents'][_0x10b2e5['id']]&&(_0x120c75[_0x1c9c13('0x11fa')][_0x10b2e5['id']][_0x1c9c13('0xc7a')]=![]),_0x120c75[_0x1c9c13('0x61d')][_0x10b2e5['id']]&&(_0x120c75['rpcAgents'][_0x10b2e5['id']][_0x1c9c13('0xc7a')]=![]),_0x4580ce();})[_0x51363c('0x103c')](function(_0x5329a1){const _0x5ab21e=_0x51363c;_0x446d64[_0x5ab21e('0x15aa')]({'title':_0x5329a1[_0x5ab21e('0x276f')]?_0x5ab21e('0x137')+_0x5329a1[_0x5ab21e('0x276f')]+'\x20-\x20'+_0x5329a1[_0x5ab21e('0x2696')]:_0x5ab21e('0x1e36'),'msg':_0x5329a1[_0x5ab21e('0x1e07')]?JSON[_0x5ab21e('0x100b')](_0x5329a1[_0x5ab21e('0x1e07')][_0x5ab21e('0x67f')]):_0x5329a1[_0x5ab21e('0x1b75')]()});});}function _0x423c5a(_0x5e842a,_0x429bcb){const _0x3d0204=_0x594009;return _0x38ab51[_0x3d0204('0x166f')][_0x3d0204('0x1751')]({'id':_0x5e842a['id'],'type':_0x429bcb})[_0x3d0204('0x1964')][_0x3d0204('0x173b')](function(_0x3cc7c3){const _0x310025=_0x3d0204;_0x120c75[_0x310025('0x11fa')][_0x5e842a['id']]&&_0x3c8d8a()[_0x310025('0x9ef')](_0x120c75[_0x310025('0x11fa')][_0x5e842a['id']],_0x3c8d8a()['pick'](_0x3cc7c3,_0x5785d6)),_0x120c75[_0x310025('0x61d')][_0x5e842a['id']]&&_0x3c8d8a()[_0x310025('0x9ef')](_0x120c75[_0x310025('0x61d')][_0x5e842a['id']],_0x3c8d8a()[_0x310025('0x2114')](_0x3cc7c3,_0x5785d6)),_0xf53372(_0x120c75[_0x310025('0x11fa')][_0x5e842a['id']]);})['catch'](function(_0x5e1d96){const _0x449ccd=_0x3d0204;_0x446d64[_0x449ccd('0x15aa')]({'title':_0x5e1d96[_0x449ccd('0x276f')]?_0x449ccd('0x137')+_0x5e1d96[_0x449ccd('0x276f')]+'\x20-\x20'+_0x5e1d96[_0x449ccd('0x2696')]:_0x449ccd('0x1e36'),'msg':_0x5e1d96[_0x449ccd('0x1e07')]?JSON['stringify'](_0x5e1d96[_0x449ccd('0x1e07')][_0x449ccd('0x67f')]):_0x5e1d96[_0x449ccd('0x1b75')]()});});}function _0x3777a7(_0x33574a){const _0xadbfc0=_0x594009;return _0x38ab51[_0xadbfc0('0x166f')][_0xadbfc0('0x9da')]({'id':_0x33574a['id']})[_0xadbfc0('0x1964')][_0xadbfc0('0x173b')](function(_0x2059e9){const _0x30d3fc=_0xadbfc0;_0x120c75[_0x30d3fc('0x11fa')][_0x33574a['id']]&&_0x3c8d8a()['merge'](_0x120c75[_0x30d3fc('0x11fa')][_0x33574a['id']],_0x3c8d8a()[_0x30d3fc('0x2114')](_0x2059e9,_0x5785d6)),_0x120c75[_0x30d3fc('0x61d')][_0x33574a['id']]&&_0x3c8d8a()[_0x30d3fc('0x9ef')](_0x120c75['rpcAgents'][_0x33574a['id']],_0x3c8d8a()[_0x30d3fc('0x2114')](_0x2059e9,_0x5785d6)),_0xf53372(_0x120c75[_0x30d3fc('0x11fa')][_0x33574a['id']]);})[_0xadbfc0('0x103c')](function(_0x963a47){const _0x469401=_0xadbfc0;_0x446d64[_0x469401('0x15aa')]({'title':_0x963a47[_0x469401('0x276f')]?_0x469401('0x137')+_0x963a47[_0x469401('0x276f')]+_0x469401('0x160c')+_0x963a47['statusText']:'api.staff.save','msg':_0x963a47[_0x469401('0x1e07')]?JSON[_0x469401('0x100b')](_0x963a47['data']['message']):_0x963a47[_0x469401('0x1b75')]()});});}function _0x46513a(_0x22b7c3){const _0x29dc0a=_0x594009;_0x59133c['show'](_0x59133c[_0x29dc0a('0x5a4')]()[_0x29dc0a('0x226c')](!![])[_0x29dc0a('0x20d6')](_0x29dc0a('0x526'))[_0x29dc0a('0xf8b')](_0x29dc0a('0x22f0'))['ok']('Ok')['targetEvent'](_0x22b7c3));}function _0x36f67e(_0x2aefcd,_0x2f9b84){const _0xeea1f2=_0x594009;_0x59133c[_0xeea1f2('0x1cb7')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x66272d,'parent':angular[_0xeea1f2('0xb6d')](_0x133c52[_0xeea1f2('0x1a5')]),'targetEvent':_0x2f9b84,'clickOutsideToClose':!![],'locals':{'agent':_0x2aefcd,'agents':[],'channel':_0xeea1f2('0x16d'),'direction':_0xeea1f2('0x1755'),'crudPermissions':_0x120c75[_0xeea1f2('0x1dc1')]}});}function _0x253946(_0x47058c){const _0x2728ea=_0x594009;return _0x47058c===_0x2728ea('0x1751')||_0x47058c===_0x2728ea('0xb3e');}function _0xa0d0d7(_0x362f78){const _0x272ff0=_0x594009;return _0x362f78===_0x272ff0('0x1751');}function _0x511350(_0x4c9e76){const _0x4ae095=_0x594009;return _0x4c9e76===_0x4ae095('0xb3e');}function _0x447b52(_0x2f4e5d){const _0x14f51a=_0x594009;return _0x2f4e5d===_0x14f51a('0x23b')||_0x2f4e5d===_0x14f51a('0x1b77')||_0x2f4e5d==='unavailable'||_0x2f4e5d===_0x14f51a('0x263b')||_0x3c8d8a()[_0x14f51a('0x7d5')](_0x2f4e5d);}function _0x3e8150(_0x266fc6,_0x4a2d8f){const _0x4e59f7=_0x594009;if(_0x4a2d8f===_0x4e59f7('0x21a8')){if(_0x266fc6[_0x4a2d8f+_0x4e59f7('0xef8')]!==_0x4e59f7('0x23b'))return _0x266fc6[_0x4a2d8f+'Status'];if(_0x266fc6[_0x4a2d8f+_0x4e59f7('0x2408')])return _0x266fc6[_0x4a2d8f+_0x4e59f7('0xef8')]=_0x4e59f7('0x1751'),_0x4e59f7('0x1751');return'idle';}else{if(_0x266fc6[_0x4a2d8f+'Pause'])return _0x266fc6[_0x4a2d8f+'Status']=_0x4e59f7('0x1751'),_0x4e59f7('0x1751');return _0x266fc6[_0x4a2d8f+_0x4e59f7('0xef8')];}}function _0xf53372(_0xec97fe){const _0x4445c9=_0x594009;let _0x48e40b=_0x4445c9('0x1b77');if(_0x3c8d8a()[_0x4445c9('0x3ff')]([_0x3e8150(_0xec97fe,_0x4445c9('0x21a8')),_0x3e8150(_0xec97fe,_0x4445c9('0x8c5')),_0x3e8150(_0xec97fe,_0x4445c9('0x108a')),_0x3e8150(_0xec97fe,'openchannel'),_0x3e8150(_0xec97fe,_0x4445c9('0x1a8f')),_0x3e8150(_0xec97fe,_0x4445c9('0x245')),_0x3e8150(_0xec97fe,_0x4445c9('0x16d'))],_0x253946))_0x48e40b='pause';else{if(_0x3c8d8a()[_0x4445c9('0x1ec')]([_0x3e8150(_0xec97fe,_0x4445c9('0x21a8')),_0x3e8150(_0xec97fe,_0x4445c9('0x8c5')),_0x3e8150(_0xec97fe,'mail'),_0x3e8150(_0xec97fe,_0x4445c9('0xab2')),_0x3e8150(_0xec97fe,_0x4445c9('0x1a8f')),_0x3e8150(_0xec97fe,_0x4445c9('0x245')),_0x3e8150(_0xec97fe,_0x4445c9('0x16d'))],_0x253946))_0x48e40b=_0x4445c9('0xb3e');else _0x3c8d8a()[_0x4445c9('0x3ff')]([_0x3e8150(_0xec97fe,'voice'),_0x3e8150(_0xec97fe,_0x4445c9('0x8c5')),_0x3e8150(_0xec97fe,'mail'),_0x3e8150(_0xec97fe,_0x4445c9('0xab2')),_0x3e8150(_0xec97fe,_0x4445c9('0x1a8f')),_0x3e8150(_0xec97fe,_0x4445c9('0x245')),_0x3e8150(_0xec97fe,_0x4445c9('0x16d'))],_0x447b52)?_0x48e40b=_0x4445c9('0x23b'):_0x48e40b='busy';}_0xec97fe[_0x4445c9('0xd7e')]!==_0x48e40b&&(_0xec97fe[_0x4445c9('0xd7e')]=_0x48e40b,_0xec97fe[_0x4445c9('0xb9c')]?(_0xec97fe[_0x4445c9('0xb9c')]=![],_0xec97fe[_0x4445c9('0x1cd8')]=_0x253946(_0x48e40b)?_0x3c8d8a()[_0x4445c9('0x1acd')](_0x156524()(_0xec97fe[_0x4445c9('0x20a0')])['format']('x')):_0x3c8d8a()[_0x4445c9('0x18be')]([_0xec97fe[_0x4445c9('0x1c89')],_0xec97fe['chatStatusTime'],_0xec97fe['mailStatusTime'],_0xec97fe[_0x4445c9('0x2176')],_0xec97fe['whatsappStatusTime'],_0xec97fe[_0x4445c9('0x205')],_0xec97fe['faxStatusTime']])):_0xec97fe[_0x4445c9('0x1cd8')]=_0x3c8d8a()[_0x4445c9('0x1acd')](_0x156524()()[_0x4445c9('0xddc')]('x')));}function _0x5662cb(_0x2dc2d6){const _0x4490f3=_0x594009,_0x374951=_0x3c8d8a()[_0x4490f3('0x17b2')](_0x120c75['query'][_0x4490f3('0x144a')],'-')?'desc':'asc';return _0x3c8d8a()[_0x4490f3('0x1d16')](_0x2dc2d6,[_0x120c75[_0x4490f3('0xc49')][_0x4490f3('0x144a')][_0x4490f3('0x166c')]('-','')],[_0x374951]);}function _0x32aa67(){const _0x2437ef=_0x594009;_0x588511&&(_0xc395eb[_0x2437ef('0x1e1f')](_0x588511),_0x588511=null);}function _0x54aa44(_0x382f0c,_0x42530e){const _0x5c15da=_0x594009;return _0x38ab51['user']['update']({'id':_0x382f0c['id']},{'screenrecording':_0x42530e})[_0x5c15da('0x1964')]['catch'](function(_0x189ef7){const _0x2daa4b=_0x5c15da;_0x446d64[_0x2daa4b('0x15aa')]({'title':_0x189ef7[_0x2daa4b('0x276f')]?'API:'+_0x189ef7['status']+_0x2daa4b('0x160c')+_0x189ef7['statusText']:_0x2daa4b('0x2134'),'msg':_0x189ef7[_0x2daa4b('0x1e07')]?JSON[_0x2daa4b('0x100b')](_0x189ef7[_0x2daa4b('0x1e07')][_0x2daa4b('0x67f')]):_0x189ef7[_0x2daa4b('0x1b75')]()});});}_0x15d646['$on'](_0x594009('0x16d2'),function(){const _0x3facbc=_0x594009;_0x518ec3[_0x3facbc('0x251c')](_0x3facbc('0x1f4c')),_0x518ec3[_0x3facbc('0x251c')](_0x3facbc('0x2048')),_0x518ec3[_0x3facbc('0x251c')](_0x3facbc('0x1bd5')),_0x518ec3[_0x3facbc('0x251c')](_0x3facbc('0xa73')),_0x32aa67();});}const _0x4e3e7f=_0x407f4c,_0x5d0afa=_0x21a6a1['p']+_0x566993('0x261d'),_0x24306f=_0x21a6a1['p']+'src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog.html';_0x4ae1b0[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$q',_0x566993('0x1b82'),'$interval',_0x566993('0xeae'),_0x566993('0x2156'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600')];function _0x4ae1b0(_0x4ca6b5,_0x38c4af,_0x5e49ea,_0x3e0c2c,_0x8a3db3,_0x559f5c,_0x240412,_0x292448,_0xfd0759,_0x370e9b,_0x176c4e,_0x224536,_0x55171c,_0x37a55c){const _0x59a466=_0x566993,_0x7ee124=this,_0x1dfe7d=[_0x59a466('0x34e'),_0x59a466('0x825'),_0x59a466('0x1b68'),_0x59a466('0x157c'),_0x59a466('0x1e8d'),_0x59a466('0x203d'),'message',_0x59a466('0x3ba'),_0x59a466('0xa87'),_0x59a466('0x183a'),_0x59a466('0x1898')];_0x7ee124[_0x59a466('0x155f')]=_0x37a55c['getCurrentUser'](),_0x7ee124[_0x59a466('0x1a2f')]=_0x240412[_0x59a466('0x1a2f')]?_0x240412[_0x59a466('0x1a2f')]:0x0,_0x7ee124[_0x59a466('0xeae')]=_0x240412?_0x3c8d8a()['keyBy'](_0x240412['rows']?_0x240412[_0x59a466('0x6aa')]:[],'id'):{},_0x7ee124[_0x59a466('0x2156')]=_0x292448?_0x3c8d8a()[_0x59a466('0x128')](_0x292448[_0x59a466('0x6aa')]?_0x292448[_0x59a466('0x6aa')]:[],'id'):{},_0x7ee124['userProfile']=_0x224536,_0x7ee124[_0x59a466('0x170e')]=_0x55171c&&_0x55171c['count']==0x1?_0x55171c['rows'][0x0]:null,_0x7ee124[_0x59a466('0x1dc1')]=_0x37a55c[_0x59a466('0xde6')](_0x7ee124['userProfileSection']?_0x7ee124['userProfileSection'][_0x59a466('0x1dc1')]:null);_0x37a55c['hasRole'](_0x59a466('0x79b'))?_0x7ee124['query']={'type':_0x59a466('0x1755'),'sort':_0x59a466('0x1769'),'limit':0xa,'page':0x1}:_0x7ee124['query']={'id':_0x7ee124[_0x59a466('0x155f')]['id'],'channel':_0x59a466('0x16d'),'type':'inbound','sort':_0x59a466('0x1769'),'limit':0xa,'page':0x1};_0x7ee124[_0x59a466('0xdfe')]=_0x229245,_0x7ee124[_0x59a466('0x115e')]=_0x1563df,_0x7ee124['createOrEditFaxQueue']=_0x525611,_0x7ee124[_0x59a466('0x24f8')]=_0x14abb0,_0x7ee124[_0x59a466('0x578')]=_0x57b413,_0x7ee124[_0x59a466('0x689')]=_0x3dd5e5,_0x7ee124[_0x59a466('0x6f6')]=_0x17808c,_0x7ee124[_0x59a466('0xc12')]=_0x443553,_0x7ee124[_0x59a466('0x255')]=_0x151481,_0x7ee124[_0x59a466('0x5')]=_0x203b8e,_0x7ee124['onLogout']=_0x31a5e2,_0x7ee124['$onInit']=_0x79549e,_0x7ee124[_0x59a466('0x144a')]=[],_0x3c8d8a()[_0x59a466('0x33d')](_0x7ee124[_0x59a466('0xeae')],function(_0x2f5948){const _0x1d2bc6=_0x59a466;_0x7ee124['order'][_0x1d2bc6('0x18bb')](_0x2f5948['id']);}),_0x370e9b['on'](_0x59a466('0x1ead'),_0x7ee124[_0x59a466('0x689')]),_0x370e9b['on'](_0x59a466('0x15'),_0x7ee124[_0x59a466('0x6f6')]),_0x370e9b['on'](_0x59a466('0x1de0'),_0x7ee124[_0x59a466('0xc12')]),_0x370e9b['on']('user:update',_0x7ee124[_0x59a466('0x255')]),_0x370e9b['on'](_0x59a466('0x22b7'),_0x7ee124['onLogout']),_0x370e9b['on'](_0x59a466('0x1379'),_0x7ee124[_0x59a466('0x5')]);function _0x79549e(){const _0x2d51e2=_0x59a466,_0x41031c=[];return _0x3c8d8a()[_0x2d51e2('0x33d')](_0x7ee124[_0x2d51e2('0xeae')],function(_0x25bae6,_0x3a3192){const _0x407bef=_0x2d51e2;_0x25bae6[_0x407bef('0x1898')]=0x0,_0x25bae6[_0x407bef('0x1307')]=0x0,_0x7ee124[_0x407bef('0xeae')][_0x3a3192][_0x407bef('0x11fa')]={},_0x41031c[_0x407bef('0x18bb')](_0xfd0759['faxQueue']['getMembers']({'id':_0x3a3192})[_0x407bef('0x1964')]),_0x7ee124[_0x407bef('0x2156')][_0x3a3192]&&_0x3c8d8a()[_0x407bef('0x9ef')](_0x25bae6,_0x3c8d8a()[_0x407bef('0x2114')](_0x7ee124[_0x407bef('0x2156')][_0x3a3192],_0x1dfe7d));}),_0x3e0c2c[_0x2d51e2('0x27c8')](_0x41031c)[_0x2d51e2('0x173b')](function(_0x9e2408){const _0x4cb227=_0x2d51e2;for(let _0x465337=0x0;_0x465337<_0x9e2408[_0x4cb227('0x543')];_0x465337+=0x1){for(let _0xd4dd0e=0x0;_0xd4dd0e<_0x9e2408[_0x465337]['rows']['length'];_0xd4dd0e++){_0x9e2408[_0x465337][_0x4cb227('0x6aa')][_0xd4dd0e][_0x4cb227('0x1898')]&&_0x7ee124['queues'][_0x9e2408[_0x465337][_0x4cb227('0x6aa')][_0xd4dd0e][_0x4cb227('0x581')]][_0x4cb227('0x1898')]++,_0x7ee124[_0x4cb227('0xeae')][_0x9e2408[_0x465337][_0x4cb227('0x6aa')][_0xd4dd0e]['FaxQueueId']][_0x4cb227('0x1307')]++,_0x7ee124[_0x4cb227('0xeae')][_0x9e2408[_0x465337]['rows'][_0xd4dd0e][_0x4cb227('0x581')]][_0x4cb227('0x11fa')][_0x9e2408[_0x465337]['rows'][_0xd4dd0e][_0x4cb227('0x181c')]]=_0x9e2408[_0x465337][_0x4cb227('0x6aa')][_0xd4dd0e][_0x4cb227('0x581')];}}})[_0x2d51e2('0x103c')](function(_0x191058){const _0x49a0f3=_0x2d51e2;console[_0x49a0f3('0x15aa')](_0x191058);});}function _0x3dd5e5(_0x980ec){const _0x738137=_0x59a466;_0x7ee124[_0x738137('0xeae')][_0x980ec['id']]&&_0x3c8d8a()[_0x738137('0x9ef')](_0x7ee124[_0x738137('0xeae')][_0x980ec['id']],_0x3c8d8a()[_0x738137('0x2114')](_0x980ec,_0x1dfe7d));}function _0x17808c(_0x3fc671){const _0x6d6333=_0x59a466;_0x7ee124[_0x6d6333('0xeae')][_0x3fc671[_0x6d6333('0x581')]]&&_0x7ee124[_0x6d6333('0xeae')][_0x3fc671[_0x6d6333('0x581')]]['loggedInDb']++;}function _0x443553(_0x4fe3d5){const _0x1bda80=_0x59a466;_0x7ee124[_0x1bda80('0xeae')][_0x4fe3d5['FaxQueueId']]&&_0x7ee124[_0x1bda80('0xeae')][_0x4fe3d5['FaxQueueId']][_0x1bda80('0x1307')]--;}function _0x151481(_0x507506){const _0xe8390d=_0x59a466;console[_0xe8390d('0xe37')](_0xe8390d('0x255'),_0x507506);if(_0x507506[_0xe8390d('0x67c')])_0x3c8d8a()[_0xe8390d('0x33d')](_0x7ee124[_0xe8390d('0xeae')],function(_0x47337b){const _0x5daa9a=_0xe8390d;_0x47337b['agents'][_0x507506['id']]&&(_0x47337b[_0x5daa9a('0x1898')]+=0x1,console['log']('pause'));});else!_0x507506[_0xe8390d('0x67c')]&&_0x3c8d8a()['forIn'](_0x7ee124[_0xe8390d('0xeae')],function(_0x5168ba){const _0x3263d3=_0xe8390d;_0x5168ba['agents'][_0x507506['id']]&&(_0x5168ba['paused']>0x0&&(_0x5168ba[_0x3263d3('0x1898')]-=0x1,console[_0x3263d3('0xe37')]('unpause')));});}function _0x203b8e(_0x5baf57){const _0x39cfb9=_0x59a466;console['log']('onLogged',_0x5baf57),_0x7ee124[_0x39cfb9('0xeae')][_0x5baf57[_0x39cfb9('0x581')]]&&(_0x7ee124[_0x39cfb9('0xeae')][_0x5baf57[_0x39cfb9('0x581')]][_0x39cfb9('0x1307')]+=0x1,_0x7ee124[_0x39cfb9('0xeae')][_0x5baf57[_0x39cfb9('0x581')]][_0x39cfb9('0x11fa')][_0x5baf57[_0x39cfb9('0x181c')]]=_0x5baf57['FaxQueueId']);}function _0x31a5e2(_0x5e4fcd){const _0x1dabce=_0x59a466;console[_0x1dabce('0xe37')](_0x1dabce('0x1e70'),_0x5e4fcd),_0x7ee124[_0x1dabce('0xeae')][_0x5e4fcd[_0x1dabce('0x581')]]&&_0x7ee124['queues'][_0x5e4fcd[_0x1dabce('0x581')]][_0x1dabce('0x1307')]>0x0&&(_0x7ee124[_0x1dabce('0xeae')][_0x5e4fcd['FaxQueueId']]['loggedInDb']-=0x1,delete _0x7ee124['queues'][_0x5e4fcd[_0x1dabce('0x581')]]['agents'][_0x5e4fcd['UserId']]);}let _0x5e81e2=!![],_0x246ce4=0x1;_0x4ca6b5[_0x59a466('0x1bdb')](_0x59a466('0x157b'),function(_0x5abcea,_0x4dbe7e){const _0x7ada09=_0x59a466;_0x5e81e2?_0x38c4af(function(){_0x5e81e2=![];}):(!_0x4dbe7e&&(_0x246ce4=_0x7ee124[_0x7ada09('0xc49')][_0x7ada09('0x182e')]),_0x5abcea!==_0x4dbe7e&&(_0x7ee124['query'][_0x7ada09('0x182e')]=0x1),!_0x5abcea&&(_0x7ee124[_0x7ada09('0xc49')][_0x7ada09('0x182e')]=_0x246ce4),_0x7ee124[_0x7ada09('0x115e')]());});function _0x229245(_0x507ea7){const _0x20d4ac=_0x59a466;_0x7ee124[_0x20d4ac('0x1a2f')]=_0x507ea7['count'],_0x7ee124[_0x20d4ac('0xeae')]=_0x507ea7?_0x3c8d8a()[_0x20d4ac('0x128')](_0x507ea7[_0x20d4ac('0x6aa')]?_0x507ea7[_0x20d4ac('0x6aa')]:[],'id'):{};if(_0x507ea7['rows']){_0x7ee124[_0x20d4ac('0x144a')]=[];for(let _0x2d492f=0x0;_0x2d492f<_0x507ea7[_0x20d4ac('0x6aa')][_0x20d4ac('0x543')];_0x2d492f++){_0x7ee124['order'][_0x20d4ac('0x18bb')](_0x507ea7[_0x20d4ac('0x6aa')][_0x2d492f]['id']);}}_0x79549e();}function _0x1563df(){const _0x810cc2=_0x59a466;_0x7ee124['query'][_0x810cc2('0x17f0')]=(_0x7ee124[_0x810cc2('0xc49')][_0x810cc2('0x182e')]-0x1)*_0x7ee124[_0x810cc2('0xc49')][_0x810cc2('0x3e')],_0x37a55c[_0x810cc2('0x1b4e')](_0x810cc2('0x79b'))?_0x7ee124['promise']=_0xfd0759[_0x810cc2('0xd82')][_0x810cc2('0x1d97')](_0x7ee124[_0x810cc2('0xc49')],_0x229245)[_0x810cc2('0x1964')]:(_0x7ee124[_0x810cc2('0xc49')]['id']=_0x7ee124[_0x810cc2('0x257b')]['id'],_0x7ee124[_0x810cc2('0xc49')][_0x810cc2('0x17c9')]=_0x810cc2('0x1f23'),_0x7ee124[_0x810cc2('0x2219')]=_0xfd0759[_0x810cc2('0x257b')]['getResources'](_0x7ee124[_0x810cc2('0xc49')],_0x229245)[_0x810cc2('0x1964')]);}function _0x525611(_0x1bd0b0,_0x510e84){const _0x3b588e=_0x59a466;_0x5e49ea[_0x3b588e('0x1cb7')]({'controller':'CreateOrEditFaxQueueDialogController','controllerAs':'vm','templateUrl':_0x24306f,'parent':angular[_0x3b588e('0xb6d')](_0x8a3db3[_0x3b588e('0x1a5')]),'targetEvent':_0x1bd0b0,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x510e84,'faxQueues':_0x3c8d8a()[_0x3b588e('0xcaf')](_0x7ee124[_0x3b588e('0xeae')]),'license':null,'setting':null,'crudPermissions':_0x7ee124[_0x3b588e('0x1dc1')]}});}function _0x14abb0(_0x2d70e5,_0xe02ffd){const _0x29bcb8=_0x59a466;_0x5e49ea[_0x29bcb8('0x1cb7')]({'controller':_0x29bcb8('0x410'),'controllerAs':'vm','templateUrl':_0x5d0afa,'parent':angular[_0x29bcb8('0xb6d')](_0x8a3db3[_0x29bcb8('0x1a5')]),'targetEvent':_0x2d70e5,'clickOutsideToClose':!![],'locals':{'faxQueue':_0xe02ffd,'faxQueues':_0x7ee124[_0x29bcb8('0xeae')]?_0x7ee124['queues'][_0x29bcb8('0x6aa')]:[],'realtime':![],'crudPermissions':_0x7ee124['crudPermissions']}});}function _0x57b413(_0x2f1ef3){const _0x26ed9a=_0x59a466;return _0xfd0759[_0x26ed9a('0xd82')][_0x26ed9a('0x1842')](_0x2f1ef3)[_0x26ed9a('0x1964')]['then'](function(){const _0x1c7a6b=_0x26ed9a;_0x176c4e[_0x1c7a6b('0xdfe')]({'title':_0x1c7a6b('0x22bc'),'msg':_0x2f1ef3[_0x1c7a6b('0x10ad')]?_0x2f1ef3['name']+_0x1c7a6b('0x1fd6'):''});})[_0x26ed9a('0x103c')](function(_0x2e0a5f){const _0x4e81ea=_0x26ed9a;_0x176c4e[_0x4e81ea('0x15aa')]({'title':_0x4e81ea('0xb5f'),'msg':_0x2e0a5f['message']});});}_0x4ca6b5[_0x59a466('0xbf6')](_0x59a466('0x16d2'),function(){const _0x5602ce=_0x59a466;_0x370e9b[_0x5602ce('0x251c')](_0x5602ce('0x1ead')),_0x370e9b[_0x5602ce('0x251c')](_0x5602ce('0x1de0')),_0x370e9b[_0x5602ce('0x251c')](_0x5602ce('0x15')),_0x370e9b[_0x5602ce('0x251c')](_0x5602ce('0x2048')),_0x370e9b[_0x5602ce('0x251c')](_0x5602ce('0x22b7')),_0x370e9b['removeAllListeners'](_0x5602ce('0x1379'));});}const _0x1fe3b4=_0x4ae1b0;function _0x526cd1(){const _0x24ed91=_0x566993;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x24ed91('0xc5a'),'lagged':_0x24ed91('0xc5a'),'reachable':_0x24ed91('0xdcf'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x24ed91('0x3c7')},'state':{'unknown':_0x24ed91('0xd0a'),'not_inuse':_0x24ed91('0x1dd'),'inuse':_0x24ed91('0x2205'),'busy':_0x24ed91('0x90c'),'invalid':_0x24ed91('0xd0a'),'unavailable':_0x24ed91('0xd0a'),'ringing':_0x24ed91('0x4da'),'ringinuse':_0x24ed91('0x4da'),'onhold':_0x24ed91('0x244d')},'channelStatus':{'ring':_0x24ed91('0x4da'),'up':_0x24ed91('0x6ed'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x24ed91('0x6ed'),'hangup':_0x24ed91('0x1797')}};}const _0x4949f4=_0x526cd1;_0x56a9cc['$inject']=[_0x566993('0x66f'),'$state',_0x566993('0x2fc')];function _0x56a9cc(_0x519c61,_0x503fc0,_0x42b705){const _0x990707=_0x566993,_0x5389b6=this;_0x42b705['disconnect'](),_0x42b705[_0x990707('0x45f')](),_0x5389b6['selectedTab']=0x0;switch(_0x503fc0[_0x990707('0x9fe')][_0x990707('0x10ad')]){case _0x990707('0xaa3'):_0x5389b6[_0x990707('0xd5f')]=0x0;break;case _0x990707('0x1959'):_0x5389b6[_0x990707('0xd5f')]=0x1;break;case _0x990707('0x12e9'):_0x5389b6[_0x990707('0xd5f')]=0x2;break;case'app.fax.realtime.accounts':_0x5389b6['selectedTab']=0x3;break;default:_0x5389b6['selectedTab']=0x0,_0x503fc0['go'](_0x990707('0xaa3'));}_0x519c61[_0x990707('0x1bdb')](_0x990707('0x1a1'),function(_0x32fc17,_0xfecbf6){const _0x1922fb=_0x990707;if(_0x32fc17!==_0xfecbf6)switch(_0x32fc17){case 0x0:_0x503fc0['go'](_0x1922fb('0xaa3'));break;case 0x1:_0x503fc0['go'](_0x1922fb('0x1959'));break;case 0x2:_0x503fc0['go'](_0x1922fb('0x12e9'));break;case 0x3:_0x503fc0['go'](_0x1922fb('0x2451'));break;default:_0x503fc0['go']('app.fax.realtime.agents');}});}const _0x3be5d1=_0x56a9cc;_0x2ed108[_0x566993('0x17bb')]=['$scope',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x673'),'rpcTrunks',_0x566993('0xbd4'),'socket',_0x566993('0x1bf5'),_0x566993('0x2276'),'userProfile',_0x566993('0x170e'),'Auth'];function _0x2ed108(_0x4b5314,_0x457f2b,_0x447d99,_0x9c621a,_0x20b9a5,_0x521799,_0x5d4a87,_0x136518,_0x5566aa,_0x3b3f0d,_0x355462,_0x206f9a){const _0x433e49=_0x566993,_0x75cb7c=this,_0x5463be=[_0x433e49('0x276f'),_0x433e49('0x1a75'),_0x433e49('0x9df'),_0x433e49('0x4d1'),'port',_0x433e49('0x138c'),_0x433e49('0x1a49'),_0x433e49('0x276f')];_0x75cb7c[_0x433e49('0x155f')]=_0x206f9a[_0x433e49('0x14d4')](),_0x75cb7c[_0x433e49('0x1a2f')]=_0x9c621a[_0x433e49('0x1a2f')],_0x75cb7c[_0x433e49('0x673')]=_0x9c621a?_0x9c621a[_0x433e49('0x6aa')]:[],_0x75cb7c['rpcTrunks']=_0x20b9a5?_0x20b9a5[_0x433e49('0x6aa')]?_0x20b9a5[_0x433e49('0x6aa')]:[]:[],_0x75cb7c['query']={'fields':_0x433e49('0xd52'),'active':!![],'sort':_0x433e49('0x1769'),'limit':0xa,'page':0x1},_0x75cb7c[_0x433e49('0x142a')]=_0x136518['status'],_0x75cb7c[_0x433e49('0xe1c')]=_0x136518['state'],_0x75cb7c[_0x433e49('0x257b')]=_0x3b3f0d,_0x75cb7c['userProfileSection']=_0x355462&&_0x355462[_0x433e49('0x1a2f')]==0x1?_0x355462[_0x433e49('0x6aa')][0x0]:null,_0x75cb7c[_0x433e49('0x1dc1')]=_0x206f9a[_0x433e49('0xde6')](_0x75cb7c['userProfileSection']?_0x75cb7c['userProfileSection'][_0x433e49('0x1dc1')]:null),_0x75cb7c[_0x433e49('0xdfe')]=_0x34cf23,_0x75cb7c[_0x433e49('0x2444')]=_0x263c02,_0x75cb7c[_0x433e49('0x2230')]=_0x49d684,_0x75cb7c[_0x433e49('0x44e')]=_0x485e1f,_0x75cb7c[_0x433e49('0x13c0')]=_0x44e7b2,_0x75cb7c[_0x433e49('0x689')]=_0x298901,_0x5d4a87['on'](_0x433e49('0x1947'),_0x75cb7c[_0x433e49('0x689')]);function _0x263c02(){const _0x174ce8=_0x433e49;let _0x33281b;for(let _0x45c5f2=0x0;_0x45c5f2<_0x75cb7c['trunks'][_0x174ce8('0x543')];_0x45c5f2+=0x1){_0x33281b=_0x3c8d8a()[_0x174ce8('0x26c3')](_0x75cb7c[_0x174ce8('0x537')],['id',_0x75cb7c[_0x174ce8('0x673')][_0x45c5f2]['id']]),_0x33281b>=0x0&&_0x3c8d8a()['merge'](_0x75cb7c[_0x174ce8('0x673')][_0x45c5f2],_0x3c8d8a()['pick'](_0x75cb7c[_0x174ce8('0x537')][_0x33281b],_0x5463be));}}function _0x49d684(_0x10c17a){const _0x2cb1c2=_0x433e49;_0x447d99[_0x2cb1c2('0x1cb7')](_0x447d99[_0x2cb1c2('0x5a4')]()['clickOutsideToClose'](!![])[_0x2cb1c2('0x20d6')](_0x2cb1c2('0x526'))[_0x2cb1c2('0xf8b')](_0x2cb1c2('0x22f0'))['ok']('Ok')[_0x2cb1c2('0x21de')](_0x10c17a));}function _0x2f989a(_0xc0ef8,_0x112bac,_0x378128){_0x112bac>=0x0&&_0x3c8d8a()['merge'](_0xc0ef8[_0x112bac],_0x3c8d8a()['pick'](_0x378128,_0x5463be));}function _0x298901(_0x28b39b){const _0x22c880=_0x433e49,_0x67425b=_0x3c8d8a()[_0x22c880('0x26c3')](_0x75cb7c['trunks'],['id',_0x28b39b['id']]),_0x3670c8=_0x3c8d8a()['findIndex'](_0x75cb7c[_0x22c880('0x537')],['id',_0x28b39b['id']]);_0x2f989a(_0x75cb7c['trunks'],_0x67425b,_0x28b39b),_0x2f989a(_0x75cb7c[_0x22c880('0x537')],_0x3670c8,_0x28b39b);}let _0x244183=!![],_0x256ce0=0x1;_0x4b5314['$watch'](_0x433e49('0x157b'),function(_0x49b958,_0x59be8c){const _0xaf1eb2=_0x433e49;_0x244183?_0x457f2b(function(){_0x244183=![];}):(!_0x59be8c&&(_0x256ce0=_0x75cb7c['query'][_0xaf1eb2('0x182e')]),_0x49b958!==_0x59be8c&&(_0x75cb7c[_0xaf1eb2('0xc49')][_0xaf1eb2('0x182e')]=0x1),!_0x49b958&&(_0x75cb7c[_0xaf1eb2('0xc49')][_0xaf1eb2('0x182e')]=_0x256ce0),_0x75cb7c[_0xaf1eb2('0x44e')]());});function _0x34cf23(_0x473a49){const _0x2c1f10=_0x433e49;_0x75cb7c[_0x2c1f10('0x1a2f')]=_0x473a49[_0x2c1f10('0x1a2f')],_0x75cb7c[_0x2c1f10('0x673')]=_0x473a49?_0x473a49['rows']?_0x473a49[_0x2c1f10('0x6aa')]:[]:[],_0x263c02();}function _0x485e1f(){const _0x3a917c=_0x433e49;_0x75cb7c[_0x3a917c('0xc49')]['offset']=(_0x75cb7c[_0x3a917c('0xc49')]['page']-0x1)*_0x75cb7c[_0x3a917c('0xc49')][_0x3a917c('0x3e')],_0x206f9a[_0x3a917c('0x1b4e')](_0x3a917c('0x79b'))?_0x75cb7c['promise']=_0x521799[_0x3a917c('0x15b7')][_0x3a917c('0x1d97')](_0x75cb7c[_0x3a917c('0xc49')],_0x34cf23)['$promise']:(_0x75cb7c[_0x3a917c('0xc49')]['id']=_0x75cb7c['userProfile']['id'],_0x75cb7c[_0x3a917c('0xc49')]['section']=_0x3a917c('0x241e'),_0x75cb7c[_0x3a917c('0x2219')]=_0x521799[_0x3a917c('0x257b')][_0x3a917c('0x135b')](_0x75cb7c[_0x3a917c('0xc49')],_0x34cf23)[_0x3a917c('0x1964')]);}_0x4b5314[_0x433e49('0xbf6')](_0x433e49('0x16d2'),function(){const _0x1a004e=_0x433e49;_0x5d4a87[_0x1a004e('0x251c')](_0x1a004e('0x1947'));});function _0x44e7b2(_0x43c022,_0x155a25){_0x5566aa['go']('app.tools.trunks.edit',{'id':_0x155a25['id']});}}const _0x36c60b=_0x2ed108;_0x189767[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x189767(_0x3dd554){const _0x3e3821=_0x566993;_0x3dd554[_0x3e3821('0x1a49')](_0x3e3821('0x181f'),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x1edf30,'controller':_0x3e3821('0x16e7')}},'resolve':{'userProfile':[_0x3e3821('0x2401'),'Auth',function(_0x4f8861,_0x38b658){const _0x2bf2c7=_0x3e3821;return _0x38b658['hasRole'](_0x2bf2c7('0x79b'))?null:_0x4f8861[_0x2bf2c7('0x155b')]('userProfile@get',{'fields':_0x2bf2c7('0x19dd'),'id':_0x38b658['getCurrentUser']()[_0x2bf2c7('0x1946')]});}],'userProfileSection':[_0x3e3821('0x2401'),_0x3e3821('0x1600'),function(_0x4d5109,_0x1ff7e3){const _0x51b3cb=_0x3e3821;return _0x1ff7e3[_0x51b3cb('0x1b4e')](_0x51b3cb('0x79b'))?null:_0x4d5109[_0x51b3cb('0x155b')](_0x51b3cb('0x40'),{'fields':_0x51b3cb('0x1348'),'userProfileId':_0x1ff7e3[_0x51b3cb('0x14d4')]()[_0x51b3cb('0x1946')],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})['state'](_0x3e3821('0xaa3'),{'url':_0x3e3821('0x1943'),'controller':_0x3e3821('0x13bf'),'templateUrl':_0x3d80d5,'resolve':{'pauses':['apiResolver',function(_0x35c7a1){const _0x17ea40=_0x3e3821;return _0x35c7a1[_0x17ea40('0x155b')](_0x17ea40('0x176a'),{'nolimit':!![]});}],'agents':[_0x3e3821('0x2401'),'Auth',function(_0xeab4f3,_0x5c62c5){const _0x498fb1=_0x3e3821;return _0x5c62c5[_0x498fb1('0x1b4e')]('admin')?_0xeab4f3[_0x498fb1('0x155b')](_0x498fb1('0x15e6'),{'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':!![]}):_0xeab4f3['resolve'](_0x498fb1('0x14b3'),{'id':_0x5c62c5[_0x498fb1('0x14d4')]()[_0x498fb1('0x1946')],'section':_0x498fb1('0x1272'),'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':_0x498fb1('0x7b0'),'sort':'fullname','nolimit':!![]});}],'userProfile':['apiResolver',_0x3e3821('0x1600'),function(_0x18467b,_0x31ed4f){const _0xc836eb=_0x3e3821;return _0x31ed4f[_0xc836eb('0x1b4e')]('admin')?null:_0x18467b['resolve'](_0xc836eb('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x31ed4f[_0xc836eb('0x14d4')]()[_0xc836eb('0x1946')]});}],'userProfileSection':[_0x3e3821('0x2401'),_0x3e3821('0x1600'),function(_0x18de22,_0x374dd1){const _0x4d6add=_0x3e3821;return _0x374dd1[_0x4d6add('0x1b4e')]('admin')?null:_0x18de22[_0x4d6add('0x155b')](_0x4d6add('0x40'),{'fields':_0x4d6add('0x1348'),'userProfileId':_0x374dd1[_0x4d6add('0x14d4')]()[_0x4d6add('0x1946')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x340228){const _0x5535af=_0x3e3821;return _0x340228[_0x5535af('0x155b')](_0x5535af('0x58'));}]},'authenticate':!![],'permissionId':0x38e})[_0x3e3821('0x1a49')](_0x3e3821('0x1959'),{'url':_0x3e3821('0x108d'),'controller':_0x3e3821('0x1730'),'templateUrl':_0x4c5042,'resolve':{'trunks':[_0x3e3821('0x2401'),'Auth',function(_0x37a93e,_0x357288){const _0x14fd6a=_0x3e3821;return _0x357288[_0x14fd6a('0x1b4e')](_0x14fd6a('0x79b'))?_0x37a93e[_0x14fd6a('0x155b')]('trunk@get',{'fields':_0x14fd6a('0xd52'),'active':!![],'sort':_0x14fd6a('0x1769'),'limit':0xa,'offset':0x0}):_0x37a93e[_0x14fd6a('0x155b')](_0x14fd6a('0x14b3'),{'id':_0x357288[_0x14fd6a('0x14d4')]()['userProfileId'],'section':'Trunks','fields':'id,name','active':!![],'sort':_0x14fd6a('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e3821('0x2401'),'Auth',function(_0x27b51c,_0x4be4e2){const _0xe23fe9=_0x3e3821;return _0x4be4e2[_0xe23fe9('0x1b4e')](_0xe23fe9('0x79b'))?null:_0x27b51c[_0xe23fe9('0x155b')](_0xe23fe9('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x4be4e2[_0xe23fe9('0x14d4')]()[_0xe23fe9('0x1946')]});}],'userProfileSection':[_0x3e3821('0x2401'),_0x3e3821('0x1600'),function(_0x3ef5f1,_0xcf49b6){const _0x3902e3=_0x3e3821;return _0xcf49b6[_0x3902e3('0x1b4e')](_0x3902e3('0x79b'))?null:_0x3ef5f1[_0x3902e3('0x155b')](_0x3902e3('0x40'),{'fields':_0x3902e3('0x1348'),'userProfileId':_0xcf49b6[_0x3902e3('0x14d4')]()[_0x3902e3('0x1946')],'sectionId':0x3f3});}],'rpcTrunks':[_0x3e3821('0x2401'),function(_0x21cc69){const _0x9f5dae=_0x3e3821;return _0x21cc69[_0x9f5dae('0x155b')](_0x9f5dae('0x4ce'));}]},'authenticate':!![],'permissionId':0x38e})['state'](_0x3e3821('0x12e9'),{'url':'/queues','controller':_0x3e3821('0x1b92'),'templateUrl':_0x534387,'resolve':{'queues':['apiResolver',_0x3e3821('0x1600'),function(_0x2f083e,_0x350dba){const _0x47cfdd=_0x3e3821;return _0x350dba['hasRole'](_0x47cfdd('0x79b'))?_0x2f083e[_0x47cfdd('0x155b')](_0x47cfdd('0x2560'),{'type':_0x47cfdd('0x1755'),'sort':_0x47cfdd('0x1769'),'limit':0xa,'offset':0x0}):_0x2f083e[_0x47cfdd('0x155b')](_0x47cfdd('0x14b3'),{'id':_0x350dba[_0x47cfdd('0x14d4')]()[_0x47cfdd('0x1946')],'section':'FaxQueues','channel':'fax','type':_0x47cfdd('0x1755'),'sort':_0x47cfdd('0x1769'),'limit':0xa,'page':0x1});}],'userProfile':[_0x3e3821('0x2401'),_0x3e3821('0x1600'),function(_0x4c74d0,_0x3a74c3){const _0x5380cc=_0x3e3821;return _0x3a74c3[_0x5380cc('0x1b4e')]('admin')?null:_0x4c74d0[_0x5380cc('0x155b')](_0x5380cc('0x1f20'),{'fields':_0x5380cc('0x19dd'),'id':_0x3a74c3[_0x5380cc('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x3e3821('0x2401'),_0x3e3821('0x1600'),function(_0x38cbae,_0x4685a1){const _0x5e9909=_0x3e3821;return _0x4685a1[_0x5e9909('0x1b4e')]('admin')?null:_0x38cbae[_0x5e9909('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4685a1[_0x5e9909('0x14d4')]()['userProfileId'],'sectionId':0x385});}],'rpcQueues':[_0x3e3821('0x2401'),function(_0x42de6c){const _0x2587d6=_0x3e3821;return _0x42de6c[_0x2587d6('0x155b')](_0x2587d6('0x83f'));}]},'authenticate':!![],'permissionId':0x38e})[_0x3e3821('0x1a49')](_0x3e3821('0x2451'),{'url':_0x3e3821('0x141'),'controller':'FaxAccountsRealtimeController\x20as\x20vm','templateUrl':_0x3ef632,'resolve':{'faxAccounts':['apiResolver','Auth',function(_0x35bdc7,_0x5b2257){const _0x684b=_0x3e3821;return _0x5b2257['hasRole'](_0x684b('0x79b'))?_0x35bdc7[_0x684b('0x155b')](_0x684b('0x2368'),{'sort':_0x684b('0x1769'),'limit':0xa,'offset':0x0}):_0x35bdc7[_0x684b('0x155b')](_0x684b('0x14b3'),{'id':_0x5b2257[_0x684b('0x14d4')]()[_0x684b('0x1946')],'section':_0x684b('0x1ba2'),'sort':_0x684b('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x3e3821('0x1600'),function(_0x1f1835,_0x3705f6){const _0x42897e=_0x3e3821;return _0x3705f6[_0x42897e('0x1b4e')](_0x42897e('0x79b'))?null:_0x1f1835[_0x42897e('0x155b')]('userProfile@get',{'fields':_0x42897e('0x19dd'),'id':_0x3705f6[_0x42897e('0x14d4')]()[_0x42897e('0x1946')]});}],'userProfileSection':['apiResolver',_0x3e3821('0x1600'),function(_0x4e94ed,_0x42f124){const _0x4f4b22=_0x3e3821;return _0x42f124['hasRole'](_0x4f4b22('0x79b'))?null:_0x4e94ed[_0x4f4b22('0x155b')](_0x4f4b22('0x40'),{'fields':_0x4f4b22('0x1348'),'userProfileId':_0x42f124['getCurrentUser']()[_0x4f4b22('0x1946')],'sectionId':0x386});}],'rpcFaxAccounts':[_0x3e3821('0x2401'),function(_0x2eea94){return _0x2eea94['resolve']('rpc@getFaxAccounts');}]},'authenticate':!![],'permissionId':0x38e});}angular['module'](_0x566993('0x181f'),[])[_0x566993('0xea9')](_0x189767)[_0x566993('0x1e65')](_0x566993('0x73e'),_0x16e0c5)[_0x566993('0x1e65')](_0x566993('0x30f'),_0x4e3e7f)['controller'](_0x566993('0xf55'),_0x1fe3b4)[_0x566993('0x235c')]('helperClasses',_0x4949f4)[_0x566993('0x1e65')]('FaxRealtimeController',_0x3be5d1)[_0x566993('0x1e65')](_0x566993('0x933'),_0x36c60b),_0x4874f9[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),'faxAccounts',_0x566993('0xe12'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x4874f9(_0x31c5cc,_0x2755e3,_0xd2b126,_0x4462b8,_0xfb692,_0x2f4a13,_0x313abb,_0x2e5bb7,_0x44d47a,_0xce3ae2,_0x36350b,_0x116fcb,_0x3b3194,_0x17e6be){const _0x1f675c=_0x566993,_0x49c384=this;_0x49c384[_0x1f675c('0x155f')]=_0x36350b['getCurrentUser'](),_0x49c384['errors']=[],_0x49c384[_0x1f675c('0x251')]=_0x3b3194,_0x49c384['license']=_0x116fcb,_0x49c384['crudPermissions']=_0x17e6be,_0x49c384[_0x1f675c('0xb0')]={},_0x49c384[_0x1f675c('0x644')]=_0x49c384['setting']&&_0x49c384['setting'][_0x1f675c('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x49c384[_0x1f675c('0x20d6')]='FAX.EDIT_FAXACCOUNT',_0x49c384['faxAccount']=angular['copy'](_0x44d47a),_0x49c384['faxAccounts']=_0x2e5bb7,_0x49c384['newFaxAccount']=![];!_0x49c384[_0x1f675c('0xe12')]&&(_0x49c384[_0x1f675c('0xe12')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x49c384[_0x1f675c('0x20d6')]='FAX.NEW_FAXACCOUNT',_0x49c384[_0x1f675c('0xecd')]=!![]);_0x2755e3['params']['id']&&(_0x49c384[_0x1f675c('0xe12')]['FaxAccountId']=_0x2755e3[_0x1f675c('0x197a')]['id']);_0x49c384[_0x1f675c('0x27f4')]=_0x41a6f9,_0x49c384[_0x1f675c('0xe78')]=_0x308d58,_0x49c384[_0x1f675c('0x8c4')]=_0x4a742c,_0x49c384['getDateFromString']=_0x2892c5,_0x49c384[_0x1f675c('0x18e2')]=_0x5b3c9b,_0x36350b['hasRole']('admin')?_0xce3ae2[_0x1f675c('0x15b7')]['get']({'fields':'id,name','sort':_0x1f675c('0x10ad')})[_0x1f675c('0x1964')][_0x1f675c('0x173b')](function(_0x100d17){_0x49c384['trunks']=_0x100d17['rows']||[];})[_0x1f675c('0x103c')](function(_0x1505cf){const _0x509458=_0x1f675c;_0x313abb['error']({'title':_0x1505cf[_0x509458('0x276f')]?'API:'+_0x1505cf[_0x509458('0x276f')]+_0x509458('0x160c')+_0x1505cf[_0x509458('0x2696')]:_0x509458('0xbd8'),'msg':_0x1505cf[_0x509458('0x1e07')]?JSON[_0x509458('0x100b')](_0x1505cf['data']):_0x1505cf[_0x509458('0x1b75')]()});}):_0xce3ae2['trunk'][_0x1f675c('0x1d97')]({'fields':_0x1f675c('0xd52'),'sort':_0x1f675c('0x10ad')})['$promise']['then'](function(_0x32cf04){const _0x19675e=_0x1f675c;_0x49c384['trunks']=_0x32cf04[_0x19675e('0x6aa')]||[];})[_0x1f675c('0x173b')](function(){const _0x5dd611=_0x1f675c;return _0xce3ae2[_0x5dd611('0x170e')][_0x5dd611('0x1d97')]({'userProfileId':_0x49c384[_0x5dd611('0x155f')][_0x5dd611('0x1946')],'sectionId':0x3f3})[_0x5dd611('0x1964')];})[_0x1f675c('0x173b')](function(_0x1a2ff0){const _0x4bb89b=_0x1f675c,_0x1cb1b2=_0x1a2ff0&&_0x1a2ff0[_0x4bb89b('0x6aa')]?_0x1a2ff0[_0x4bb89b('0x6aa')][0x0]:null;if(!_0x1cb1b2){const _0x46149f=[];let _0x369ac7=null;_0x49c384['faxAccount']&&(_0x369ac7=_0x3c8d8a()['find'](_0x49c384[_0x4bb89b('0x673')],{'id':Number(_0x49c384['faxAccount']['TrunkId'])}));for(let _0x1d145c=0x0;_0x1d145c<_0x49c384['trunks'][_0x4bb89b('0x543')];_0x1d145c++){_0x369ac7&&_0x49c384[_0x4bb89b('0x673')][_0x1d145c]['id']===_0x369ac7['id']&&(_0x49c384[_0x4bb89b('0x673')][_0x1d145c][_0x4bb89b('0x268e')]=![],_0x46149f[_0x4bb89b('0x18bb')](_0x49c384['trunks'][_0x1d145c]));}_0x49c384[_0x4bb89b('0x673')]=_0x46149f;}else{if(!_0x1cb1b2['autoAssociation'])return _0xce3ae2['userProfileResource'][_0x4bb89b('0x1d97')]({'sectionId':_0x1cb1b2['id']})[_0x4bb89b('0x1964')]['then'](function(_0x188363){const _0x3d1951=_0x4bb89b,_0x20cfbd=_0x3c8d8a()[_0x3d1951('0x8a2')](_0x188363[_0x3d1951('0x6aa')],function(_0x511db1){const _0x8d08b=_0x3d1951;return _0x3c8d8a()[_0x8d08b('0x18ab')](_0x49c384[_0x8d08b('0x673')],{'id':_0x511db1[_0x8d08b('0x1ce0')]});});let _0x1e4ae1=null;_0x49c384[_0x3d1951('0xe12')]&&(_0x1e4ae1=_0x3c8d8a()[_0x3d1951('0x18ab')](_0x49c384[_0x3d1951('0x673')],{'id':Number(_0x49c384[_0x3d1951('0xe12')]['TrunkId'])}));if(_0x1e4ae1&&!_0x3c8d8a()[_0x3d1951('0x1ec')](_0x20cfbd,['id',_0x1e4ae1['id']])){const _0xae8fce=_0x3c8d8a()['find'](_0x49c384[_0x3d1951('0x673')],{'id':_0x1e4ae1['id']});_0xae8fce[_0x3d1951('0x268e')]=![],_0x20cfbd[_0x3d1951('0x18bb')](_0xae8fce);}_0x49c384[_0x3d1951('0x673')]=_0x20cfbd;});}})[_0x1f675c('0x103c')](function(_0x5024c4){const _0x51efab=_0x1f675c;_0x313abb[_0x51efab('0x15aa')]({'title':_0x5024c4['status']?_0x51efab('0x137')+_0x5024c4[_0x51efab('0x276f')]+_0x51efab('0x160c')+_0x5024c4[_0x51efab('0x2696')]:_0x51efab('0x21ed'),'msg':_0x5024c4[_0x51efab('0x1e07')]?JSON[_0x51efab('0x100b')](_0x5024c4['data']):_0x5024c4[_0x51efab('0x1b75')]()});}),_0x36350b['hasRole'](_0x1f675c('0x79b'))?_0xce3ae2['cmList'][_0x1f675c('0x1d97')]({'fields':_0x1f675c('0xd52'),'sort':_0x1f675c('0x10ad')})['$promise'][_0x1f675c('0x173b')](function(_0x1e4d7d){const _0x5b746c=_0x1f675c;_0x49c384[_0x5b746c('0x9e8')]=_0x1e4d7d['rows']||[];})[_0x1f675c('0x103c')](function(_0x4a1218){const _0x572383=_0x1f675c;_0x313abb[_0x572383('0x15aa')]({'title':_0x4a1218['status']?_0x572383('0x137')+_0x4a1218[_0x572383('0x276f')]+_0x572383('0x160c')+_0x4a1218[_0x572383('0x2696')]:_0x572383('0x1d5c'),'msg':_0x4a1218[_0x572383('0x1e07')]?JSON[_0x572383('0x100b')](_0x4a1218['data']):_0x4a1218['toString']()});}):_0xce3ae2[_0x1f675c('0xbb3')][_0x1f675c('0x1d97')]({'fields':_0x1f675c('0xd52'),'sort':_0x1f675c('0x10ad')})['$promise'][_0x1f675c('0x173b')](function(_0x22ea1d){const _0x589e39=_0x1f675c;_0x49c384[_0x589e39('0x9e8')]=_0x22ea1d[_0x589e39('0x6aa')]||[];})[_0x1f675c('0x173b')](function(){const _0x41dabe=_0x1f675c;return _0xce3ae2['userProfileSection'][_0x41dabe('0x1d97')]({'userProfileId':_0x49c384[_0x41dabe('0x155f')][_0x41dabe('0x1946')],'sectionId':0x12d})[_0x41dabe('0x1964')];})[_0x1f675c('0x173b')](function(_0x2cfa6e){const _0x2c433b=_0x1f675c,_0x36554b=_0x2cfa6e&&_0x2cfa6e['rows']?_0x2cfa6e[_0x2c433b('0x6aa')][0x0]:null;if(!_0x36554b){const _0x3a8137=[];let _0x2cb91c=null;_0x49c384['faxAccount']&&(_0x2cb91c=_0x3c8d8a()[_0x2c433b('0x18ab')](_0x49c384[_0x2c433b('0x9e8')],{'id':Number(_0x49c384[_0x2c433b('0xe12')][_0x2c433b('0xef2')])}));for(let _0xa7bf09=0x0;_0xa7bf09<_0x49c384[_0x2c433b('0x9e8')]['length'];_0xa7bf09++){_0x2cb91c&&_0x49c384[_0x2c433b('0x9e8')][_0xa7bf09]['id']===_0x2cb91c['id']&&(_0x49c384[_0x2c433b('0x9e8')][_0xa7bf09][_0x2c433b('0x268e')]=![],_0x3a8137[_0x2c433b('0x18bb')](_0x49c384[_0x2c433b('0x9e8')][_0xa7bf09]));}_0x49c384[_0x2c433b('0x9e8')]=_0x3a8137;}else{if(!_0x36554b['autoAssociation'])return _0xce3ae2[_0x2c433b('0xda9')][_0x2c433b('0x1d97')]({'sectionId':_0x36554b['id']})[_0x2c433b('0x1964')][_0x2c433b('0x173b')](function(_0x24fb02){const _0x40d9e4=_0x2c433b,_0x53d5ce=_0x3c8d8a()[_0x40d9e4('0x8a2')](_0x24fb02['rows'],function(_0x1b48cc){return _0x3c8d8a()['find'](_0x49c384['lists'],{'id':_0x1b48cc['resourceId']});});let _0x4cd3f0=null;_0x49c384[_0x40d9e4('0xe12')]&&(_0x4cd3f0=_0x3c8d8a()[_0x40d9e4('0x18ab')](_0x49c384['lists'],{'id':Number(_0x49c384['faxAccount'][_0x40d9e4('0xef2')])}));if(_0x4cd3f0&&!_0x3c8d8a()['some'](_0x53d5ce,['id',_0x4cd3f0['id']])){const _0x244c0d=_0x3c8d8a()[_0x40d9e4('0x18ab')](_0x49c384['lists'],{'id':_0x4cd3f0['id']});_0x244c0d[_0x40d9e4('0x268e')]=![],_0x53d5ce['push'](_0x244c0d);}_0x49c384[_0x40d9e4('0x9e8')]=_0x53d5ce;});}})[_0x1f675c('0x103c')](function(_0x5590f4){const _0x20e781=_0x1f675c;_0x313abb[_0x20e781('0x15aa')]({'title':_0x5590f4[_0x20e781('0x276f')]?_0x20e781('0x137')+_0x5590f4[_0x20e781('0x276f')]+_0x20e781('0x160c')+_0x5590f4[_0x20e781('0x2696')]:_0x20e781('0x1292'),'msg':_0x5590f4[_0x20e781('0x1e07')]?JSON[_0x20e781('0x100b')](_0x5590f4[_0x20e781('0x1e07')]):_0x5590f4[_0x20e781('0x1b75')]()});});function _0x41a6f9(){const _0x47aba3=_0x1f675c;_0x49c384['errors']=[],_0xce3ae2[_0x47aba3('0xe12')]['addAccountApplications'](_0x49c384[_0x47aba3('0xe12')])['$promise'][_0x47aba3('0x173b')](function(_0x35da36){const _0x5321b7=_0x47aba3;_0x49c384['faxAccounts'][_0x5321b7('0x1377')](_0x35da36['toJSON']()),_0x313abb[_0x5321b7('0xdfe')]({'title':_0x5321b7('0x2345'),'msg':_0x49c384[_0x5321b7('0xe12')][_0x5321b7('0x10ad')]?_0x49c384['faxAccount'][_0x5321b7('0x10ad')]+_0x5321b7('0x209a'):''}),_0x5b3c9b(_0x35da36);})[_0x47aba3('0x103c')](function(_0x80c725){const _0x2a09c8=_0x47aba3;if(_0x80c725[_0x2a09c8('0x1e07')]&&_0x80c725['data']['errors']&&_0x80c725[_0x2a09c8('0x1e07')][_0x2a09c8('0x1d4a')][_0x2a09c8('0x543')]){_0x49c384[_0x2a09c8('0x1d4a')]=_0x80c725[_0x2a09c8('0x1e07')][_0x2a09c8('0x1d4a')]||[{'message':_0x80c725[_0x2a09c8('0x1b75')](),'type':_0x2a09c8('0x2611')}];for(let _0x1041f6=0x0;_0x1041f6<_0x80c725['data']['errors']['length'];_0x1041f6+=0x1){_0x313abb[_0x2a09c8('0x15aa')]({'title':_0x80c725[_0x2a09c8('0x1e07')]['errors'][_0x1041f6][_0x2a09c8('0x1810')],'msg':_0x80c725[_0x2a09c8('0x1e07')][_0x2a09c8('0x1d4a')][_0x1041f6][_0x2a09c8('0x67f')]});}}else _0x313abb[_0x2a09c8('0x15aa')]({'title':_0x80c725[_0x2a09c8('0x276f')]?_0x2a09c8('0x137')+_0x80c725['status']+_0x2a09c8('0x160c')+_0x80c725[_0x2a09c8('0x2696')]:_0x2a09c8('0x2611'),'msg':_0x80c725[_0x2a09c8('0x1e07')]?JSON['stringify'](_0x80c725[_0x2a09c8('0x1e07')][_0x2a09c8('0x67f')]):_0x80c725[_0x2a09c8('0x1b75')]()});});}function _0x308d58(){const _0x5ca397=_0x1f675c;_0x49c384['errors']=[],_0xce3ae2['faxAccount'][_0x5ca397('0x1092')](_0x49c384[_0x5ca397('0xe12')])[_0x5ca397('0x1964')][_0x5ca397('0x173b')](function(_0x1fa481){const _0x2801c4=_0x5ca397,_0x58e2de=_0x3c8d8a()['find'](_0x49c384[_0x2801c4('0x17f2')],{'id':_0x1fa481['id']});_0x58e2de&&_0x3c8d8a()[_0x2801c4('0x9ef')](_0x58e2de,_0x3c8d8a()[_0x2801c4('0x2114')](_0x1fa481[_0x2801c4('0xf1f')](),_0x3c8d8a()[_0x2801c4('0x1d3e')](_0x58e2de))),_0x313abb[_0x2801c4('0xdfe')]({'title':_0x2801c4('0x10bc'),'msg':_0x49c384[_0x2801c4('0xe12')][_0x2801c4('0x10ad')]?_0x49c384[_0x2801c4('0xe12')][_0x2801c4('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x5b3c9b(_0x1fa481);})[_0x5ca397('0x103c')](function(_0xb21731){const _0x441ea4=_0x5ca397;if(_0xb21731['data']&&_0xb21731[_0x441ea4('0x1e07')][_0x441ea4('0x1d4a')]&&_0xb21731['data'][_0x441ea4('0x1d4a')][_0x441ea4('0x543')]){_0x49c384[_0x441ea4('0x1d4a')]=_0xb21731['data'][_0x441ea4('0x1d4a')]||[{'message':_0xb21731['toString'](),'type':_0x441ea4('0xe04')}];for(let _0x5cb3a3=0x0;_0x5cb3a3<_0xb21731[_0x441ea4('0x1e07')][_0x441ea4('0x1d4a')][_0x441ea4('0x543')];_0x5cb3a3++){_0x313abb[_0x441ea4('0x15aa')]({'title':_0xb21731['data'][_0x441ea4('0x1d4a')][_0x5cb3a3][_0x441ea4('0x1810')],'msg':_0xb21731[_0x441ea4('0x1e07')]['errors'][_0x5cb3a3][_0x441ea4('0x67f')]});}}else _0x313abb['error']({'title':_0xb21731[_0x441ea4('0x276f')]?_0x441ea4('0x137')+_0xb21731[_0x441ea4('0x276f')]+_0x441ea4('0x160c')+_0xb21731['statusText']:'api.faxAccount.update','msg':_0xb21731['data']?JSON[_0x441ea4('0x100b')](_0xb21731[_0x441ea4('0x1e07')]['message']):_0xb21731['toString']()});});}function _0x4a742c(_0x4d18c3){const _0x38467e=_0x1f675c;_0x49c384[_0x38467e('0x1d4a')]=[];const _0x3d8646=_0x4462b8[_0x38467e('0x1d02')]()[_0x38467e('0x20d6')]('Are\x20you\x20sure?')[_0x38467e('0x732')](_0x38467e('0x50'))[_0x38467e('0x217')](_0x38467e('0x822'))['ok'](_0x38467e('0x2373'))['cancel'](_0x38467e('0x1d4e'))[_0x38467e('0x21de')](_0x4d18c3);_0x4462b8[_0x38467e('0x1cb7')](_0x3d8646)[_0x38467e('0x173b')](function(){const _0x553cf2=_0x38467e;_0xce3ae2['faxAccount']['delete']({'id':_0x49c384[_0x553cf2('0xe12')]['id']})[_0x553cf2('0x1964')]['then'](function(){const _0x1b3b40=_0x553cf2;_0x3c8d8a()[_0x1b3b40('0x1a8b')](_0x49c384['faxAccounts'],{'id':_0x49c384[_0x1b3b40('0xe12')]['id']}),_0x313abb[_0x1b3b40('0xdfe')]({'title':_0x1b3b40('0x20d5'),'msg':(_0x49c384[_0x1b3b40('0xe12')][_0x1b3b40('0x10ad')]||_0x1b3b40('0xe12'))+_0x1b3b40('0x25d2')}),_0x5b3c9b(_0x49c384[_0x1b3b40('0xe12')]);})[_0x553cf2('0x103c')](function(_0x545968){const _0x374fad=_0x553cf2;if(_0x545968['data']&&_0x545968[_0x374fad('0x1e07')][_0x374fad('0x1d4a')]&&_0x545968['data'][_0x374fad('0x1d4a')][_0x374fad('0x543')]){_0x49c384[_0x374fad('0x1d4a')]=_0x545968[_0x374fad('0x1e07')][_0x374fad('0x1d4a')]||[{'message':_0x545968[_0x374fad('0x1b75')](),'type':_0x374fad('0x2f7')}];for(let _0x2e1e66=0x0;_0x2e1e66<_0x545968['data'][_0x374fad('0x1d4a')][_0x374fad('0x543')];_0x2e1e66++){_0x313abb[_0x374fad('0x15aa')]({'title':_0x545968[_0x374fad('0x1e07')]['errors'][_0x2e1e66][_0x374fad('0x1810')],'msg':_0x545968['data'][_0x374fad('0x1d4a')][_0x2e1e66]['message']});}}else _0x313abb[_0x374fad('0x15aa')]({'title':_0x545968['status']?'API:'+_0x545968[_0x374fad('0x276f')]+_0x374fad('0x160c')+_0x545968[_0x374fad('0x2696')]:_0x374fad('0x2f7'),'msg':_0x545968[_0x374fad('0x1e07')]?JSON[_0x374fad('0x100b')](_0x545968['data']['message']):_0x545968['message']||_0x545968[_0x374fad('0x1b75')]()});});},function(){});}function _0x2892c5(_0x37a995){return _0x37a995===null?undefined:new Date(_0x37a995);}function _0x5b3c9b(_0xf4e419){const _0x338e9e=_0x1f675c;_0x4462b8[_0x338e9e('0x1cf4')](_0xf4e419);}}const _0x41dffe=_0x4874f9,_0x10c2e1=_0x21a6a1['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/agent/dialog.html/dialog.html',_0x348f11=_0x21a6a1['p']+_0x566993('0xd71'),_0x1bcacb=_0x21a6a1['p']+_0x566993('0x1628'),_0x2b25c2=_0x21a6a1['p']+_0x566993('0x1d94'),_0x20de5d=_0x21a6a1['p']+_0x566993('0xd8e'),_0x37eb99=_0x21a6a1['p']+_0x566993('0x2503'),_0x4a1c8b=_0x21a6a1['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog.html',_0x32669e=_0x21a6a1['p']+_0x566993('0x12bd'),_0x522aef=_0x21a6a1['p']+_0x566993('0x1969');_0x439d7e[_0x566993('0x17bb')]=[_0x566993('0xbd4'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0x1600')];const _0x214fac={'agent':_0x10c2e1,'close':_0x348f11,'gotoif':_0x1bcacb,'gotop':_0x2b25c2,'interval':_0x20de5d,'noop':_0x37eb99,'queue':_0x4a1c8b,'system':_0x32669e,'tag':_0x522aef};function _0x439d7e(_0x71ea6f,_0x5cae19,_0x563128,_0x26c4c3,_0x4f9b96){const _0x414deb=_0x566993,_0x1b2dfb=this;_0x1b2dfb['currentUser']=_0x4f9b96[_0x414deb('0x14d4')](),_0x1b2dfb[_0x414deb('0xe12')]={},_0x1b2dfb[_0x414deb('0x1431')]={'count':0x0,'rows':[]},_0x1b2dfb[_0x414deb('0xc24')]=[],_0x1b2dfb[_0x414deb('0x1dc1')],_0x1b2dfb[_0x414deb('0xc49')]={'sort':_0x414deb('0xb3')},_0x1b2dfb[_0x414deb('0x5cb')]=_0x3c8d8a()[_0x414deb('0x12a4')](_0x3c8d8a()[_0x414deb('0x1b45')]([{'app':_0x414deb('0x1d55'),'appType':_0x414deb('0x55a'),'types':['always',_0x414deb('0xbb4'),_0x414deb('0x3e3')],'fields':[],'isApp':![]},{'app':_0x414deb('0x1086'),'appType':'noop','type':_0x414deb('0x1086'),'icon':_0x414deb('0x108b'),'interval':_0x414deb('0x17c5'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':'value','type':_0x414deb('0x86e'),'param':0x0}]},{'app':_0x414deb('0x1ed'),'appType':_0x414deb('0x1ed'),'type':_0x414deb('0x1ed'),'icon':_0x414deb('0x108b'),'interval':_0x414deb('0x17c5'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x414deb('0x1b56'),'key':'name'},'route':_0x414deb('0x1b56'),'filters':{'fields':_0x414deb('0xd52'),'sort':_0x414deb('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x414deb('0x1bfd'),'name':_0x414deb('0xdc4'),'type':_0x414deb('0x86e'),'required':!![],'param':0x0},{'title':_0x414deb('0xae6'),'name':_0x414deb('0x1b56'),'type':'apiselect','values':_0x414deb('0x2715'),'value':_0x414deb('0x1fd4'),'option':_0x414deb('0x1fd4'),'defaultValues':[{'value':'\x27\x27','option':_0x414deb('0x2187')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x414deb('0x2ac'),'type':_0x414deb('0x2016'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x414deb('0x1162'),'name':'priority','type':_0x414deb('0x1d81'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x414deb('0xf5d'),'appType':_0x414deb('0xf5d'),'type':_0x414deb('0xf5d'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x414deb('0x5f4'),'name':_0x414deb('0x1adb'),'type':'text','required':!![],'param':0x0},{'title':'truepriority','name':_0x414deb('0x1cd7'),'type':_0x414deb('0x1d81'),'min':0x1,'required':!![],'param':0x1},{'title':_0x414deb('0x1ec9'),'name':'falsepriority','type':_0x414deb('0x1d81'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x414deb('0x172'),'appType':'queue','foreignKey':'FaxQueueId','type':_0x414deb('0x172'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x414deb('0xeae'),'field':{'name':_0x414deb('0x172'),'key':_0x414deb('0x10ad')},'route':'faxQueue','filters':{'fields':_0x414deb('0x1c66'),'sort':_0x414deb('0x10ad'),'nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':'Queue','name':_0x414deb('0x172'),'type':_0x414deb('0x23fd'),'values':_0x414deb('0xeae'),'value':_0x414deb('0x26db'),'option':_0x414deb('0x26db'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x414deb('0x1b9a'),'name':_0x414deb('0x1f84'),'type':'number','max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':'agent','appType':_0x414deb('0x7b0'),'type':'agent','foreignKey':_0x414deb('0x181c'),'icon':_0x414deb('0x108b'),'interval':_0x414deb('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x414deb('0x11fa'),'field':{'name':_0x414deb('0x7b0'),'key':'name'},'route':_0x414deb('0x166f'),'filters':{'fields':_0x414deb('0xd52'),'sort':_0x414deb('0x10ad'),'role':_0x414deb('0x7b0'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x414deb('0x1547'),'name':_0x414deb('0x7b0'),'type':'apiselect','values':'agents','value':_0x414deb('0x660'),'option':_0x414deb('0x660'),'required':!![],'param':0x0},{'title':_0x414deb('0x1b9a'),'name':'timeout','type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x414deb('0x2151'),'appType':'close','type':_0x414deb('0x2151'),'icon':_0x414deb('0x108b'),'interval':_0x414deb('0x17c5'),'isApp':!![],'fields':[{'title':_0x414deb('0x2ab'),'name':_0x414deb('0x2766'),'type':_0x414deb('0x86e'),'required':!![],'param':0x0}]},{'app':_0x414deb('0x23b4'),'appType':'tag','type':_0x414deb('0x23b4'),'foreignKey':_0x414deb('0xe46'),'icon':_0x414deb('0x108b'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'tags','field':{'name':'tag','key':'name'},'route':'tag','filters':{'fields':_0x414deb('0xd52'),'sort':_0x414deb('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x414deb('0x460'),'name':_0x414deb('0x23b4'),'type':'apiselect','values':'tags','value':_0x414deb('0x2648'),'option':'tag.name','required':!![],'param':0x0}]}],[_0x414deb('0x17e')]),{'isApp':![]}),_0x1b2dfb[_0x414deb('0x3e3')]={'group':{'name':_0x414deb('0x1749'),'pull':_0x414deb('0x979')},'animation':0x64,'sort':![]},_0x1b2dfb['applications']={'group':{'name':_0x414deb('0x1fb7'),'put':_0x414deb('0x1749')},'animation':0x64,'onAdd':function(_0x4bef6f){const _0x30c00a=_0x414deb;_0x118194(_0x4bef6f,_0x4bef6f[_0x30c00a('0x1c1b')]);},'onSort':function(){_0x13e04f();}},_0x1b2dfb[_0x414deb('0xb9c')]=_0x1b2d7d,_0x1b2dfb[_0x414deb('0x2051')]=_0x54832e,_0x1b2dfb[_0x414deb('0x13c3')]=_0x58f452,_0x1b2dfb[_0x414deb('0xcda')]=_0x118194,_0x1b2dfb[_0x414deb('0xc28')]=_0x6dedf4,_0x1b2dfb[_0x414deb('0x1b3d')]=_0x13e2de,_0x1b2dfb[_0x414deb('0x2192')]=_0x48aa82,_0x1b2dfb[_0x414deb('0x131f')]=_0x13e04f,_0x1b2dfb[_0x414deb('0xf77')]=_0x539146;function _0x1b2d7d(_0x1f415a,_0x43b92d){const _0x1e1f80=_0x414deb;_0x1b2dfb['faxAccount']=_0x1f415a,_0x1b2dfb[_0x1e1f80('0x1dc1')]=typeof _0x43b92d!=='undefined'?_0x43b92d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1b2dfb[_0x1e1f80('0x1f7e')][_0x1e1f80('0x6fc')]=!_0x1b2dfb['crudPermissions'][_0x1e1f80('0x1f3d')]?!![]:![],_0x1b2dfb[_0x1e1f80('0xc49')]['id']=_0x1f415a['id'],_0x1b2dfb['query'][_0x1e1f80('0xbb6')]=!![],_0x1b2dfb[_0x1e1f80('0xc49')][_0x1e1f80('0x1c7f')]=!![],_0x1b2dfb[_0x1e1f80('0x13c3')](),_0x1b2dfb[_0x1e1f80('0xf77')]();}function _0x54832e(_0x4160c2,_0x3cc28d,_0x3ee407){const _0x5e27ab=_0x414deb,_0x1ec333=_0x5cae19['confirm']()[_0x5e27ab('0x20d6')](_0x5e27ab('0xbac'))[_0x5e27ab('0xf8b')](_0x5e27ab('0x15b9')+_0x4160c2[_0x5e27ab('0x17e')]+_0x5e27ab('0x24be')+_0x5e27ab('0xd23'))[_0x5e27ab('0x217')](_0x5e27ab('0x499'))[_0x5e27ab('0x21de')](_0x3ee407)['ok']('OK')[_0x5e27ab('0x1e1f')](_0x5e27ab('0x468'));_0x5cae19['show'](_0x1ec333)[_0x5e27ab('0x173b')](function(){const _0x32ce4b=_0x5e27ab;_0x1b2dfb[_0x32ce4b('0x1431')][_0x32ce4b('0x6aa')]['splice'](_0x3cc28d,0x1),_0x13e04f();},function(){const _0x483529=_0x5e27ab;console[_0x483529('0xe37')](_0x483529('0x468'));});}function _0x118194(_0x5215d4,_0x5139f6){const _0x1ab795=_0x414deb;if(_0x1b2dfb['faxAccountApps'][_0x1ab795('0x6aa')][_0x1ab795('0x543')]){const _0x506d14=_0x1b2dfb[_0x1ab795('0x1431')]['rows'][_0x5139f6]?_0x1b2dfb[_0x1ab795('0x1431')][_0x1ab795('0x6aa')][_0x5139f6]:_0x1b2dfb[_0x1ab795('0x1431')][_0x1ab795('0x6aa')][0x0],_0x7b92d2=(_0x506d14[_0x1ab795('0x9d7')]||_0x506d14[_0x1ab795('0x17e')])['toLowerCase']();_0x5cae19[_0x1ab795('0x1cb7')]({'controller':_0x1ab795('0x14f8')+_0x7b92d2+'DialogController','controllerAs':'vm','templateUrl':_0x214fac[_0x7b92d2],'parent':angular[_0x1ab795('0xb6d')](_0x563128[_0x1ab795('0x1a5')]),'targetEvent':_0x5215d4,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x506d14,'faxAccount':_0x1b2dfb[_0x1ab795('0xe12')],'crudPermissions':_0x1b2dfb['crudPermissions']}})[_0x1ab795('0x173b')](function(_0x2dcd03){const _0x4128ec=_0x1ab795;_0x2dcd03&&(_0x2dcd03['id']?_0x1b2dfb[_0x4128ec('0x1431')][_0x4128ec('0x6aa')][_0x5139f6]=_0x2dcd03:_0x1b2dfb['faxAccountApps'][_0x4128ec('0x6aa')][_0x4128ec('0x553')](_0x5139f6,0x0,_0x2dcd03),_0x13e04f());})[_0x1ab795('0x103c')](function(_0x14d6e8){const _0x3c2766=_0x1ab795;_0x14d6e8&&_0x26c4c3[_0x3c2766('0x15aa')]({'title':_0x14d6e8['status']?_0x3c2766('0x137')+_0x14d6e8[_0x3c2766('0x276f')]+_0x3c2766('0x160c')+_0x14d6e8['statusText']:'SYSTEM:EDITMODALSHOW','msg':_0x14d6e8[_0x3c2766('0x1e07')]?JSON['stringify'](_0x14d6e8[_0x3c2766('0x1e07')]):_0x14d6e8['toString']()});});}}function _0x6dedf4(_0x52912f,_0x181c84){const _0x31c060=_0x414deb;if(_0x1b2dfb[_0x31c060('0x1431')][_0x31c060('0x6aa')][_0x31c060('0x543')]){const _0x1f5e7f=_0x1b2dfb[_0x31c060('0x1431')][_0x31c060('0x6aa')][_0x181c84]?_0x1b2dfb[_0x31c060('0x1431')][_0x31c060('0x6aa')][_0x181c84]:_0x1b2dfb['faxAccountApps'][_0x31c060('0x6aa')][0x0];_0x5cae19[_0x31c060('0x1cb7')]({'controller':_0x31c060('0x18bc'),'controllerAs':'vm','templateUrl':_0x20de5d,'parent':angular[_0x31c060('0xb6d')](_0x563128['body']),'targetEvent':_0x52912f,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1f5e7f[_0x31c060('0x55a')],'IntervalId':_0x1f5e7f[_0x31c060('0x600')],'application':!![]},'intervals':[],'crudPermissions':_0x1b2dfb[_0x31c060('0x1dc1')]}})[_0x31c060('0x173b')](function(_0x46353a){const _0x4385f2=_0x31c060;_0x46353a&&(_0x1f5e7f[_0x4385f2('0x55a')]=_0x46353a['interval']||_0x4385f2('0x17c5'),_0x1f5e7f[_0x4385f2('0x600')]=_0x46353a['IntervalId']||null,_0x13e04f());});}}function _0x13e04f(){const _0x325821=_0x414deb;let _0x3c7ebd=0x1,_0x59746c=[];for(let _0x1a42ca=0x0;_0x1a42ca<_0x1b2dfb[_0x325821('0x1431')][_0x325821('0x6aa')][_0x325821('0x543')];_0x1a42ca++){const _0x314f20=_0x1b2dfb[_0x325821('0x1431')][_0x325821('0x6aa')][_0x1a42ca],_0x27c4b3=[],_0x4c0320=[];_0x314f20['intervals']=_0x314f20[_0x325821('0x55a')]!==_0x325821('0x17c5')?[_0x314f20['interval']]:_0x314f20['IntervalId']?_0x3c8d8a()['map'](_0x3c8d8a()[_0x325821('0x278d')](_0x1b2dfb[_0x325821('0x21c4')][_0x325821('0x6aa')],{'IntervalId':_0x314f20[_0x325821('0x600')]}),'interval'):[],_0x314f20[_0x325821('0x2b9')]=_0x1b2dfb[_0x325821('0xe12')][_0x325821('0x2b9')],_0x314f20[_0x325821('0x1a60')]=_0x1b2dfb[_0x325821('0xe12')]['exten'],_0x314f20[_0x325821('0x1810')]&&(_0x314f20['type']=_0x314f20['type'][_0x325821('0x1e68')]()),_0x314f20[_0x325821('0xb3')]=_0x27c4b3[_0x325821('0x543')]?_0x3c8d8a()[_0x325821('0x7f')](_0x27c4b3)['priority']+0x1:_0x3c7ebd,_0x3c7ebd=(_0x4c0320[_0x325821('0x543')]?_0x3c8d8a()[_0x325821('0x7f')](_0x4c0320)[_0x325821('0xb3')]:_0x314f20[_0x325821('0xb3')])+0x1,_0x59746c=_0x3c8d8a()[_0x325821('0x163f')](_0x59746c,_0x27c4b3,[_0x314f20],_0x4c0320);}_0x71ea6f[_0x325821('0xe12')]['addApplications']({'id':_0x1b2dfb[_0x325821('0xe12')]['id']},_0x3c8d8a()[_0x325821('0x1b45')](_0x59746c,_0x325821('0xb3')))[_0x325821('0x1964')]['then'](function(_0x426bd5){const _0x48d1f4=_0x325821;_0x1b2dfb['faxAccountApps'][_0x48d1f4('0x6aa')]=_0x426bd5[_0x48d1f4('0x6aa')];})['catch'](function(_0x1131a9){const _0x3c7b0e=_0x325821;console[_0x3c7b0e('0x15aa')](_0x1131a9);});}function _0x3ee31b(_0x536747){const _0x35b19c=_0x414deb;_0x1b2dfb[_0x35b19c('0x1431')]=_0x536747||{'count':0x0,'rows':[]};}function _0x539146(){const _0x4ad86f=_0x414deb;return _0x71ea6f[_0x4ad86f('0x55a')]['get']({'fields':_0x4ad86f('0x23e4')})[_0x4ad86f('0x1964')][_0x4ad86f('0x173b')](function(_0x12af27){const _0x1f8eeb=_0x4ad86f;_0x1b2dfb[_0x1f8eeb('0x21c4')]=_0x12af27;})[_0x4ad86f('0x103c')](function(_0x3fe463){const _0x460ac3=_0x4ad86f;console[_0x460ac3('0x15aa')](_0x3fe463);});}function _0x58f452(){const _0x1a5588=_0x414deb;_0x1b2dfb['promise']=_0x71ea6f[_0x1a5588('0xe12')][_0x1a5588('0xb')](_0x1b2dfb[_0x1a5588('0xc49')],_0x3ee31b)[_0x1a5588('0x1964')];}function _0x13e2de(_0x361941){const _0x52bb6a=_0x414deb;_0x3c8d8a()[_0x52bb6a('0x1a8b')](_0x1b2dfb['faxAccountApps'][_0x52bb6a('0x6aa')],{'id':_0x361941['id']}),_0x13e04f(),_0x26c4c3[_0x52bb6a('0xdfe')]({'title':'App\x20deleted!','msg':_0x361941[_0x52bb6a('0x17e')]?_0x361941[_0x52bb6a('0x17e')]+_0x52bb6a('0x25d2'):''});}function _0x48aa82(_0x4ecb02){const _0x10072f=_0x414deb,_0x1c6b26=_0x5cae19[_0x10072f('0x1d02')]()[_0x10072f('0x20d6')](_0x10072f('0x8a0'))[_0x10072f('0xf8b')](_0x10072f('0x15b9')+_0x1b2dfb[_0x10072f('0xc24')]['length']+_0x10072f('0xcb4')+_0x10072f('0xd23'))[_0x10072f('0x217')](_0x10072f('0x296'))[_0x10072f('0x21de')](_0x4ecb02)['ok']('OK')[_0x10072f('0x1e1f')](_0x10072f('0x468'));_0x5cae19[_0x10072f('0x1cb7')](_0x1c6b26)[_0x10072f('0x173b')](function(){const _0x18e6da=_0x10072f;_0x1b2dfb[_0x18e6da('0xc24')][_0x18e6da('0xa6a')](function(_0x36ca31){const _0x8a265=_0x18e6da;_0x3c8d8a()[_0x8a265('0x1a8b')](_0x1b2dfb[_0x8a265('0x1431')]['rows'],{'id':_0x36ca31['id']});}),_0x1b2dfb[_0x18e6da('0xc24')]=[],_0x13e04f();});}}const _0x2b3776=_0x439d7e;_0x587d87[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0xbd4'),'faxAccount',_0x566993('0x17f2'),'realtime',_0x566993('0x638'),'Auth',_0x566993('0x1dc1')];function _0x587d87(_0x4d8ed7,_0x4f819b,_0x3bd76b,_0x49b915,_0x38652b,_0x2bb667,_0x467625,_0x4ae9e7,_0x56baeb,_0x593a7c){const _0x1d98f2=_0x566993,_0x14e7c4=this;_0x14e7c4['currentUser']=_0x56baeb[_0x1d98f2('0x14d4')](),_0x14e7c4['faxAccount']=_0x38652b,_0x14e7c4['crudPermissions']=_0x593a7c,_0x14e7c4[_0x1d98f2('0x12a7')]=_0x467625,_0x14e7c4[_0x1d98f2('0x1b1f')]=[],_0x14e7c4[_0x1d98f2('0x203e')]=[],_0x14e7c4[_0x1d98f2('0x5f8')]=[],_0x14e7c4[_0x1d98f2('0x1493')]=[],_0x14e7c4[_0x1d98f2('0x15c9')]=[],_0x14e7c4[_0x1d98f2('0x277e')]=![],_0x14e7c4[_0x1d98f2('0x2535')]=_0x329b88,_0x14e7c4[_0x1d98f2('0x21dc')]=_0x4ed758,_0x14e7c4[_0x1d98f2('0x18e2')]=_0x4c6190,_0x14e7c4[_0x1d98f2('0x52e')]={'readOnly':!_0x14e7c4[_0x1d98f2('0x1dc1')][_0x1d98f2('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1d98f2('0x10ad'),'line1':_0x1d98f2('0x572'),'line2':[_0x1d98f2('0x10ad'),_0x1d98f2('0x138c')],'line3':'','labelAll':_0x4ae9e7['instant'](_0x1d98f2('0x194c')),'labelSelected':_0x4ae9e7[_0x1d98f2('0x1467')](_0x1d98f2('0x2643')),'transferCallback':function(){const _0xf0a015=_0x1d98f2,_0x53db8f=_0x3c8d8a()[_0xf0a015('0x226b')](_0x14e7c4[_0xf0a015('0x15c9')],_0x14e7c4['selectedItems'],'id');_0x14e7c4[_0xf0a015('0x277e')]=_0x3c8d8a()[_0xf0a015('0x1a56')](_0x53db8f)?![]:!![];}};function _0x329b88(){const _0x76434a=_0x1d98f2;return _0x56baeb[_0x76434a('0x1b4e')](_0x76434a('0x79b'))?_0x554c8a()['catch'](function(_0x5e5db7){const _0x25da8c=_0x76434a;_0x3bd76b['error']({'title':_0x5e5db7['status']?_0x25da8c('0x137')+_0x5e5db7[_0x25da8c('0x276f')]+_0x25da8c('0x160c')+_0x5e5db7[_0x25da8c('0x2696')]:_0x25da8c('0x152b'),'msg':_0x5e5db7[_0x25da8c('0x276f')]?JSON[_0x25da8c('0x100b')](_0x5e5db7[_0x25da8c('0x1e07')]):_0x5e5db7[_0x25da8c('0x1b75')]()});}):_0x24913d()[_0x76434a('0x173b')](function(_0x10cf53){const _0xe9445f=_0x76434a;return _0x14e7c4[_0xe9445f('0x17c9')]=_0x10cf53,_0x554c8a();})[_0x76434a('0x103c')](function(_0xc1fc06){const _0x4c7cf8=_0x76434a;_0x3bd76b['error']({'title':_0xc1fc06[_0x4c7cf8('0x276f')]?_0x4c7cf8('0x137')+_0xc1fc06[_0x4c7cf8('0x276f')]+'\x20-\x20'+_0xc1fc06['statusText']:_0x4c7cf8('0x152b'),'msg':_0xc1fc06['status']?JSON[_0x4c7cf8('0x100b')](_0xc1fc06[_0x4c7cf8('0x1e07')]):_0xc1fc06['toString']()});});}function _0x24913d(){return _0x4f819b(function(_0x2ba0e9,_0x37189d){const _0x16aa29=a0_0xde5e;_0x49b915[_0x16aa29('0x170e')][_0x16aa29('0x1d97')]({'userProfileId':_0x14e7c4['currentUser'][_0x16aa29('0x1946')],'name':_0x16aa29('0x1272')})['$promise'][_0x16aa29('0x173b')](function(_0x1fc339){const _0x192202=_0x16aa29,_0x2808cf=_0x1fc339&&_0x1fc339[_0x192202('0x6aa')]?_0x1fc339[_0x192202('0x6aa')][0x0]:null;_0x2ba0e9(_0x2808cf);})['catch'](function(_0x48a2b8){_0x37189d(_0x48a2b8);});});}function _0x554c8a(){return _0x4f819b(function(_0x1be41f,_0x2b0f43){const _0x588c7e=a0_0xde5e;return _0xa493d()[_0x588c7e('0x173b')](function(_0x1e2e58){const _0x244eca=_0x588c7e;return _0x14e7c4[_0x244eca('0x1b1f')]=_0x1e2e58[_0x244eca('0x6aa')]?_0x1e2e58['rows']:[],_0x56baeb['hasRole'](_0x244eca('0x79b'))?_0x1e2e58:_0x14e7c4['section']?_0x14e7c4[_0x244eca('0x17c9')][_0x244eca('0x273e')]?_0x1e2e58:_0x4fc5e1():null;})[_0x588c7e('0x173b')](function(_0x50dc78){const _0x170fd8=_0x588c7e,_0x5f314c=_0x50dc78&&_0x50dc78[_0x170fd8('0x6aa')]?_0x50dc78[_0x170fd8('0x6aa')]:[];return _0x14e7c4['allowedItems']=_0x3c8d8a()['map'](_0x5f314c,function(_0x84611){const _0x291579=_0x170fd8;return _0x3c8d8a()[_0x291579('0x18ab')](_0x14e7c4[_0x291579('0x1b1f')],{'id':_0x56baeb[_0x291579('0x1b4e')]('admin')||_0x14e7c4[_0x291579('0x17c9')][_0x291579('0x273e')]?_0x84611['id']:_0x84611['resourceId']});}),_0x14e7c4[_0x170fd8('0x1493')]=angular[_0x170fd8('0x2e3')](_0x14e7c4[_0x170fd8('0x203e')]),_0x14e7c4['items'][_0x170fd8('0xa6a')](function(_0x5362bc){const _0x4a3e48=_0x170fd8,_0x19ce9a=_0x3c8d8a()[_0x4a3e48('0x18ab')](_0x14e7c4['allowedItems'],{'id':_0x5362bc['id']});_0x56baeb['hasRole'](_0x4a3e48('0x79b'))?_0x5362bc[_0x4a3e48('0xf02')]=!![]:_0x5362bc[_0x4a3e48('0xf02')]=typeof _0x19ce9a!=='undefined'?!![]:![];}),_0x17461d();})[_0x588c7e('0x173b')](function(_0x344c64){const _0x4cd1e1=_0x588c7e,_0x9f443e=_0x344c64&&_0x344c64[_0x4cd1e1('0x6aa')]?_0x344c64[_0x4cd1e1('0x6aa')]:[];_0x14e7c4[_0x4cd1e1('0x5f8')]=_0x3c8d8a()['map'](_0x9f443e,function(_0x1710c0){const _0x375c61=_0x4cd1e1,_0xa1e985=_0x3c8d8a()[_0x375c61('0x18ab')](_0x14e7c4['items'],{'id':_0x1710c0['id']});return _0xa1e985[_0x375c61('0x1692')]=_0x1710c0[_0x375c61('0x1f63')]?_0x375c61('0x1929')+_0x1710c0['UserFaxAccount'][_0x375c61('0x1692')]:'',_0xa1e985['internal']=typeof _0x1710c0['internal']!=='undefined'?'<'+_0x1710c0[_0x375c61('0x138c')]+'>':'',_0xa1e985;}),_0x14e7c4['startingSelectedItems']=angular[_0x4cd1e1('0x2e3')](_0x14e7c4[_0x4cd1e1('0x5f8')]),_0x14e7c4[_0x4cd1e1('0x52e')][_0x4cd1e1('0x5f8')]=_0x14e7c4[_0x4cd1e1('0x5f8')],_0x14e7c4[_0x4cd1e1('0x52e')][_0x4cd1e1('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x14e7c4['allowedItems'],_0x14e7c4[_0x4cd1e1('0x52e')][_0x4cd1e1('0x5f8')],'id'),_0x1be41f();})['catch'](function(_0x161af8){_0x2b0f43(_0x161af8);});});}function _0x4fc5e1(){return _0x4f819b(function(_0x22f7b9,_0x3935b6){const _0x201840=a0_0xde5e;return _0x49b915[_0x201840('0xda9')][_0x201840('0x1d97')]({'sectionId':_0x14e7c4['section']['id'],'nolimit':!![]})[_0x201840('0x1964')][_0x201840('0x173b')](function(_0x884dee){_0x22f7b9(_0x884dee);})[_0x201840('0x103c')](function(_0x92fb65){_0x3935b6(_0x92fb65);});});}function _0x17461d(){return _0x4f819b(function(_0x281b25,_0x8a46e7){const _0x36ffc8=a0_0xde5e;return _0x49b915[_0x36ffc8('0xe12')][_0x36ffc8('0x1903')]({'id':_0x14e7c4[_0x36ffc8('0xe12')]['id'],'fields':_0x36ffc8('0x1d65'),'nolimit':!![],'role':'agent'})['$promise'][_0x36ffc8('0x173b')](function(_0x22f82b){_0x281b25(_0x22f82b);})[_0x36ffc8('0x103c')](function(_0x4b2cb8){_0x8a46e7(_0x4b2cb8);});});}function _0xa493d(){return _0x4f819b(function(_0x2478ff,_0x511ecb){const _0x5741ec=a0_0xde5e;return _0x49b915[_0x5741ec('0x166f')][_0x5741ec('0x1d97')]({'fields':_0x5741ec('0x1d65'),'nolimit':!![],'role':_0x5741ec('0x7b0')})['$promise'][_0x5741ec('0x173b')](function(_0x751fa1){_0x2478ff(_0x751fa1);})['catch'](function(_0x6e6089){_0x511ecb(_0x6e6089);});});}function _0x47a433(_0x389ce7){return _0x4f819b(function(_0x59e224,_0x4d35dd){const _0x26345d=a0_0xde5e;_0x3c8d8a()[_0x26345d('0x1a56')](_0x389ce7)?_0x59e224():_0x49b915[_0x26345d('0xe12')][_0x26345d('0x1ff1')]({'id':_0x14e7c4[_0x26345d('0xe12')]['id'],'ids':_0x3c8d8a()[_0x26345d('0x8a2')](_0x389ce7,'id')})[_0x26345d('0x1964')][_0x26345d('0x173b')](function(){_0x59e224();})[_0x26345d('0x103c')](function(_0x23f172){_0x4d35dd(_0x23f172);});});}function _0x105702(_0x5c2245){return _0x4f819b(function(_0x4e4904,_0x2fd21d){const _0x3e7573=a0_0xde5e;_0x3c8d8a()[_0x3e7573('0x1a56')](_0x5c2245)?_0x4e4904():_0x49b915['faxAccount'][_0x3e7573('0x2017')]({'id':_0x14e7c4['faxAccount']['id'],'ids':_0x3c8d8a()[_0x3e7573('0x8a2')](_0x5c2245,'id')})[_0x3e7573('0x1964')][_0x3e7573('0x173b')](function(){_0x4e4904();})[_0x3e7573('0x103c')](function(_0x15430b){_0x2fd21d(_0x15430b);});});}function _0x4ed758(){const _0x19e556=_0x1d98f2,_0x45ff3c=_0x3c8d8a()['differenceBy'](_0x14e7c4[_0x19e556('0x15c9')],_0x14e7c4[_0x19e556('0x5f8')],'id'),_0x53d1ce=_0x3c8d8a()['differenceBy'](_0x14e7c4[_0x19e556('0x5f8')],_0x14e7c4[_0x19e556('0x15c9')],'id');return _0x105702(_0x45ff3c)['then'](function(){return _0x47a433(_0x53d1ce);})[_0x19e556('0x173b')](function(){const _0x5b9ccf=_0x19e556;_0x14e7c4[_0x5b9ccf('0x277e')]=![],_0x14e7c4[_0x5b9ccf('0x1493')]=angular[_0x5b9ccf('0x2e3')](_0x14e7c4[_0x5b9ccf('0x203e')]),_0x14e7c4[_0x5b9ccf('0x15c9')]=angular[_0x5b9ccf('0x2e3')](_0x14e7c4[_0x5b9ccf('0x5f8')]),_0x3bd76b[_0x5b9ccf('0xdfe')]({'title':_0x5b9ccf('0x23db'),'msg':_0x5b9ccf('0x2027')});})[_0x19e556('0x103c')](function(_0xf4bdef){const _0x2a4d3e=_0x19e556;_0x3bd76b[_0x2a4d3e('0x15aa')]({'title':_0xf4bdef['status']?'API:'+_0xf4bdef[_0x2a4d3e('0x276f')]+'\x20-\x20'+_0xf4bdef[_0x2a4d3e('0x2696')]:_0x2a4d3e('0x1f48'),'msg':_0xf4bdef[_0x2a4d3e('0x276f')]?JSON[_0x2a4d3e('0x100b')](_0xf4bdef[_0x2a4d3e('0x1e07')]):_0xf4bdef['toString']()});});}function _0x4c6190(){const _0x9db10d=_0x1d98f2;_0x4d8ed7[_0x9db10d('0x1cf4')]();}}const _0x54d19a=_0x587d87;_0x10c5ad[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x23a5'),_0x566993('0xe12'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x10c5ad(_0x5aebac,_0xc40ba5,_0x3e31fc,_0x259b10,_0x169b7f,_0x4f2fd1,_0x3e2435,_0x22547c){const _0x3018d0=_0x566993,_0x20e385=this;_0x20e385['currentUser']=_0x3e2435[_0x3018d0('0x14d4')](),_0x20e385[_0x3018d0('0x1d4a')]=[],_0x20e385[_0x3018d0('0x20d6')]=_0x3018d0('0x14de')+(_0x259b10[_0x3018d0('0x9d7')]||_0x259b10[_0x3018d0('0x17e')])['toUpperCase'](),_0x20e385[_0x3018d0('0x7b0')]=angular[_0x3018d0('0x2e3')](_0x259b10),_0x20e385[_0x3018d0('0x1dc1')]=_0x22547c,_0x20e385[_0x3018d0('0xb0')]={};if(_0x20e385['agent'][_0x3018d0('0x1c00')])switch(_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x9d7')]?_0x20e385[_0x3018d0('0x7b0')]['appType'][_0x3018d0('0x1e68')]():_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x17e')][_0x3018d0('0x1e68')]()){case'custom':break;case'dialogflow':{const _0x5572de=_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1c00')][_0x3018d0('0x43a')](',');_0x20e385['agent'][_0x3018d0('0x237a')]=_0x5572de[0x0],_0x20e385[_0x3018d0('0x7b0')]['language']=_0x5572de[0x1],_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1a7')]=_0x5572de['slice'](0x2,_0x5572de[_0x3018d0('0x543')])[_0x3018d0('0x2259')](',');}break;case _0x3018d0('0x1680'):{const _0x2478d6=_0x20e385['agent'][_0x3018d0('0x1c00')][_0x3018d0('0x43a')](',');_0x20e385[_0x3018d0('0x7b0')]['accesskeyid']=_0x2478d6[0x0],_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1d93')]=_0x2478d6[0x1],_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x10fc')]=_0x2478d6[0x2],_0x20e385[_0x3018d0('0x7b0')]['botname']=_0x2478d6[0x3],_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1a7')]=_0x2478d6[_0x3018d0('0x2456')](0x4,_0x2478d6['length'])['join'](',');}break;case _0x3018d0('0x23fe'):{const _0xd3f377=_0x20e385['agent'][_0x3018d0('0x1c00')][_0x3018d0('0x43a')](',');_0x20e385['agent'][_0x3018d0('0x611')]=isNaN(_0xd3f377[0x0])?_0xd3f377[0x0]:parseInt(_0xd3f377[0x0],0xa),_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x86e')]=_0xd3f377[_0x3018d0('0x2456')](0x1,_0xd3f377[_0x3018d0('0x543')])[_0x3018d0('0x2259')](',');}break;case'message':_0x20e385['agent'][_0x3018d0('0x86e')]=_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1c00')];break;case _0x3018d0('0x256d'):_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x10ad')]=_0x20e385['agent'][_0x3018d0('0x1c00')][_0x3018d0('0x43a')]('=')[0x0],_0x20e385[_0x3018d0('0x7b0')]['value']=_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1c00')][_0x3018d0('0x43a')]('=')[0x1];break;case'agi':_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x220b')]=_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1c00')];break;default:{const _0x585c96=_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1c00')][_0x3018d0('0x43a')](',');_0x20e385['agent'][_0x3018d0('0x7b0')]=_0x3c8d8a()['isEmpty'](_0x585c96[0x0])?_0x585c96[0x0]:isNaN(_0x585c96[0x0])?_0x585c96[0x0]:parseInt(_0x585c96[0x0],0xa),_0x20e385['agent']['timeout']=_0x3c8d8a()['isEmpty'](_0x585c96[0x1])?_0x585c96[0x1]:isNaN(_0x585c96[0x1])?_0x585c96[0x1]:parseInt(_0x585c96[0x1],0xa);}break;}else _0x20e385['agent'][_0x3018d0('0x1f84')]=0x1e;_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x1810')]&&_0x20e385[_0x3018d0('0x7b0')]['type'][_0x3018d0('0x1e68')]()===_0x3018d0('0xb33')&&_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0x9d7')][_0x3018d0('0x1e68')]()===_0x3018d0('0x1edc')&&(_0x20e385['agent']['prefix']=_0x20e385[_0x3018d0('0x7b0')]['phone']?_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0xa04')]['split']('$')[0x0]:undefined,_0x20e385[_0x3018d0('0x7b0')]['callerId']=_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0xe95')]?_0x3018d0('0x20a8')+_0x20e385[_0x3018d0('0x7b0')][_0x3018d0('0xe95')]:undefined);_0x20e385[_0x3018d0('0x1246')]=_0x5c1ec6,_0x20e385[_0x3018d0('0x18e2')]=_0x33d335,_0x3e2435[_0x3018d0('0x1b4e')]('admin')?_0x4f2fd1[_0x3018d0('0x166f')][_0x3018d0('0x1d97')]({'fields':_0x3018d0('0xd52'),'sort':_0x3018d0('0x10ad'),'role':_0x3018d0('0x7b0'),'nolimit':_0x3018d0('0x799')})['$promise'][_0x3018d0('0x173b')](function(_0x8f4f40){const _0x33de9e=_0x3018d0;_0x20e385[_0x33de9e('0x11fa')]=_0x8f4f40[_0x33de9e('0x6aa')]||[];})['catch'](function(_0x15937d){const _0x5860df=_0x3018d0;_0x3e31fc[_0x5860df('0x15aa')]({'title':_0x15937d['status']?_0x5860df('0x137')+_0x15937d['status']+_0x5860df('0x160c')+_0x15937d[_0x5860df('0x2696')]:_0x5860df('0x152b'),'msg':_0x15937d['data']?JSON[_0x5860df('0x100b')](_0x15937d[_0x5860df('0x1e07')]):_0x15937d['toString']()});}):_0x4f2fd1[_0x3018d0('0x166f')][_0x3018d0('0x1d97')]({'fields':_0x3018d0('0xd52'),'sort':_0x3018d0('0x10ad'),'role':_0x3018d0('0x7b0'),'nolimit':_0x3018d0('0x799')})[_0x3018d0('0x1964')][_0x3018d0('0x173b')](function(_0x261939){const _0x372ca5=_0x3018d0;_0x20e385[_0x372ca5('0x11fa')]=_0x261939[_0x372ca5('0x6aa')]||[];})[_0x3018d0('0x173b')](function(){const _0x5a5892=_0x3018d0;return _0x4f2fd1[_0x5a5892('0x170e')][_0x5a5892('0x1d97')]({'userProfileId':_0x20e385[_0x5a5892('0x155f')][_0x5a5892('0x1946')],'sectionId':0xca})[_0x5a5892('0x1964')];})[_0x3018d0('0x173b')](function(_0x2183b1){const _0x43f0db=_0x3018d0,_0x240a89=_0x2183b1&&_0x2183b1[_0x43f0db('0x6aa')]?_0x2183b1[_0x43f0db('0x6aa')][0x0]:null;if(!_0x240a89){const _0x118ad4=[];let _0x19b4c5=null;_0x20e385[_0x43f0db('0x7b0')]&&(_0x19b4c5=_0x3c8d8a()[_0x43f0db('0x18ab')](_0x20e385[_0x43f0db('0x11fa')],{'name':_0x20e385[_0x43f0db('0x7b0')][_0x43f0db('0x7b0')]}));for(let _0x3ddabc=0x0;_0x3ddabc<_0x20e385[_0x43f0db('0x11fa')][_0x43f0db('0x543')];_0x3ddabc++){_0x19b4c5&&_0x20e385['agents'][_0x3ddabc]['id']===_0x19b4c5['id']&&(_0x20e385[_0x43f0db('0x11fa')][_0x3ddabc]['canSelect']=![],_0x118ad4[_0x43f0db('0x18bb')](_0x20e385[_0x43f0db('0x11fa')][_0x3ddabc]));}_0x20e385[_0x43f0db('0x11fa')]=_0x118ad4;}else{if(!_0x240a89[_0x43f0db('0x273e')])return _0x4f2fd1[_0x43f0db('0xda9')][_0x43f0db('0x1d97')]({'sectionId':_0x240a89['id']})[_0x43f0db('0x1964')]['then'](function(_0x23e35e){const _0x1a6221=_0x43f0db,_0x4941ee=_0x3c8d8a()[_0x1a6221('0x8a2')](_0x23e35e['rows'],function(_0x395f3e){const _0x335f0d=_0x1a6221;return _0x3c8d8a()[_0x335f0d('0x18ab')](_0x20e385[_0x335f0d('0x11fa')],{'id':_0x395f3e[_0x335f0d('0x1ce0')]});});let _0x65f068=null;_0x20e385[_0x1a6221('0x7b0')]&&(_0x65f068=_0x3c8d8a()[_0x1a6221('0x18ab')](_0x20e385[_0x1a6221('0x11fa')],{'name':_0x20e385[_0x1a6221('0x7b0')]['agent']}));if(_0x65f068&&!_0x3c8d8a()[_0x1a6221('0x1ec')](_0x4941ee,['id',_0x65f068['id']])){const _0xfbb15b=_0x3c8d8a()[_0x1a6221('0x18ab')](_0x20e385[_0x1a6221('0x11fa')],{'id':_0x65f068['id']});_0xfbb15b[_0x1a6221('0x268e')]=![],_0x4941ee[_0x1a6221('0x18bb')](_0xfbb15b);}_0x20e385['agents']=_0x4941ee;});}})[_0x3018d0('0x103c')](function(_0x33320c){const _0x2fe238=_0x3018d0;_0x3e31fc[_0x2fe238('0x15aa')]({'title':_0x33320c[_0x2fe238('0x276f')]?'API:'+_0x33320c[_0x2fe238('0x276f')]+_0x2fe238('0x160c')+_0x33320c[_0x2fe238('0x2696')]:'SYSTEM:GETagents','msg':_0x33320c[_0x2fe238('0x1e07')]?JSON[_0x2fe238('0x100b')](_0x33320c[_0x2fe238('0x1e07')]):_0x33320c[_0x2fe238('0x1b75')]()});});function _0x5c1ec6(){const _0x5e025e=_0x3018d0;_0x20e385[_0x5e025e('0x1d4a')]=[];const _0xfe2049=[];_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x1810')]&&_0x20e385['agent'][_0x5e025e('0x1810')]['toLowerCase']()===_0x5e025e('0xb33')&&_0x20e385[_0x5e025e('0x7b0')]['appType']===_0x5e025e('0x2150')&&(_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0xa04')]=_0x169b7f[_0x5e025e('0x1429')]?(_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x23f7')]||'')+_0x5e025e('0x1957')+_0x169b7f['cutdigits']+'}':(_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x23f7')]||'')+'${EXTEN}',_0x169b7f[_0x5e025e('0x76c')]!==_0x5e025e('0x2741')?_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x2010')][_0x5e025e('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x2010')]+=_0x5e025e('0x2474')):_0x20e385[_0x5e025e('0x7b0')]['options']=_0x20e385[_0x5e025e('0x7b0')]['options'][_0x5e025e('0x166c')]('U(xcally-mixmonitor-context)',''));const _0x5ab1e1=_0x3c8d8a()['find'](_0x20e385[_0x5e025e('0x11fa')],{'name':_0x20e385['agent']['agent']});_0x5ab1e1&&(_0x20e385['agent'][_0x5e025e('0x181c')]=_0x5ab1e1['id']);if(_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x9d7')]&&_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x9d7')]===_0x5e025e('0xbb4')){}else switch((_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x17e')]||_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x9d7')])['toLowerCase']()){case _0x5e025e('0x256d'):_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x1c00')]=_0x20e385[_0x5e025e('0x7b0')]['name']+'='+_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0xa7b')];break;case _0x5e025e('0xbb4'):break;default:_0xfe2049[0x0]=_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x7b0')],_0xfe2049[0x1]=_0x20e385[_0x5e025e('0x7b0')][_0x5e025e('0x1f84')],_0x20e385['agent'][_0x5e025e('0x1c00')]=_0xfe2049[_0x5e025e('0x2259')](',');}_0x33d335(_0x20e385[_0x5e025e('0x7b0')]);}function _0x33d335(_0x5ffa05){const _0x225cd0=_0x3018d0;_0x5aebac[_0x225cd0('0x1cf4')](_0x5ffa05);}}const _0x51da7a=_0x10c5ad;_0x533006[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x23a5'),'faxAccount',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x533006(_0x2f22aa,_0x2868ac,_0x521a48,_0x505c0f,_0x536a22,_0x367892,_0x10c309,_0x30c204){const _0x4924dd=_0x566993,_0x5792e8=this;_0x5792e8[_0x4924dd('0x155f')]=_0x10c309['getCurrentUser'](),_0x5792e8[_0x4924dd('0x1d4a')]=[],_0x5792e8[_0x4924dd('0x20d6')]=_0x4924dd('0x14de')+(_0x505c0f['appType']||_0x505c0f[_0x4924dd('0x17e')])[_0x4924dd('0x1164')](),_0x5792e8[_0x4924dd('0x2151')]=angular[_0x4924dd('0x2e3')](_0x505c0f),_0x5792e8[_0x4924dd('0x1dc1')]=_0x30c204,_0x5792e8['hasModulePermissions']={};if(_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x1c00')])switch(_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x9d7')]?_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x9d7')][_0x4924dd('0x1e68')]():_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x17e')][_0x4924dd('0x1e68')]()){case _0x4924dd('0xbb4'):break;case _0x4924dd('0x1601'):{const _0x542551=_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x1c00')]['split'](',');_0x5792e8['close'][_0x4924dd('0x237a')]=_0x542551[0x0],_0x5792e8[_0x4924dd('0x2151')]['language']=_0x542551[0x1],_0x5792e8['close'][_0x4924dd('0x1a7')]=_0x542551['slice'](0x2,_0x542551[_0x4924dd('0x543')])[_0x4924dd('0x2259')](',');}break;case _0x4924dd('0x1680'):{const _0x354e39=_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x1c00')][_0x4924dd('0x43a')](',');_0x5792e8['close'][_0x4924dd('0x2e0')]=_0x354e39[0x0],_0x5792e8['close']['secretaccesskey']=_0x354e39[0x1],_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x10fc')]=_0x354e39[0x2],_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x53')]=_0x354e39[0x3],_0x5792e8[_0x4924dd('0x2151')]['welcomemessage']=_0x354e39['slice'](0x4,_0x354e39[_0x4924dd('0x543')])[_0x4924dd('0x2259')](',');}break;case _0x4924dd('0x23fe'):{const _0x1526f4=_0x5792e8[_0x4924dd('0x2151')]['appdata'][_0x4924dd('0x43a')](',');_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x611')]=isNaN(_0x1526f4[0x0])?_0x1526f4[0x0]:parseInt(_0x1526f4[0x0],0xa),_0x5792e8[_0x4924dd('0x2151')]['text']=_0x1526f4[_0x4924dd('0x2456')](0x1,_0x1526f4[_0x4924dd('0x543')])['join'](',');}break;case _0x4924dd('0x67f'):_0x5792e8[_0x4924dd('0x2151')]['text']=_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x1c00')];break;case _0x4924dd('0x256d'):_0x5792e8[_0x4924dd('0x2151')]['name']=_0x5792e8['close'][_0x4924dd('0x1c00')][_0x4924dd('0x43a')]('=')[0x0],_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0xa7b')]=_0x5792e8['close']['appdata']['split']('=')[0x1];break;case'agi':_0x5792e8['close'][_0x4924dd('0x220b')]=_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x1c00')];break;default:{const _0x571d1c=_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x1c00')][_0x4924dd('0x43a')](',');_0x5792e8[_0x4924dd('0x2151')]['disposition']=_0x3c8d8a()[_0x4924dd('0x1a56')](_0x571d1c[0x0])?_0x571d1c[0x0]:isNaN(_0x571d1c[0x0])?_0x571d1c[0x0]:parseInt(_0x571d1c[0x0],0xa);}break;}else{}_0x5792e8[_0x4924dd('0x2151')]['type']&&_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x1810')]['toLowerCase']()==='outbound'&&_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0x9d7')][_0x4924dd('0x1e68')]()===_0x4924dd('0x1edc')&&(_0x5792e8['close'][_0x4924dd('0x23f7')]=_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0xa04')]?_0x5792e8[_0x4924dd('0x2151')]['phone']['split']('$')[0x0]:undefined,_0x5792e8['close']['callerId']=_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0xe95')]?_0x4924dd('0x20a8')+_0x5792e8[_0x4924dd('0x2151')][_0x4924dd('0xe95')]:undefined);_0x5792e8[_0x4924dd('0x1246')]=_0x4d2b14,_0x5792e8[_0x4924dd('0x18e2')]=_0x2c8cde;function _0x4d2b14(){const _0x545c63=_0x4924dd;_0x5792e8['errors']=[];const _0x5b42dc=[];_0x5792e8['close'][_0x545c63('0x1810')]&&_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x1810')][_0x545c63('0x1e68')]()===_0x545c63('0xb33')&&_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x9d7')]===_0x545c63('0x2150')&&(_0x5792e8['close'][_0x545c63('0xa04')]=_0x536a22[_0x545c63('0x1429')]?(_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x23f7')]||'')+_0x545c63('0x1957')+_0x536a22[_0x545c63('0x1429')]+'}':(_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x23f7')]||'')+_0x545c63('0x1dc5'),_0x536a22[_0x545c63('0x76c')]!==_0x545c63('0x2741')?_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x2010')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x2010')]+=_0x545c63('0x2474')):_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x2010')]=_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x2010')][_0x545c63('0x166c')](_0x545c63('0x2474'),''));if(_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x9d7')]&&_0x5792e8[_0x545c63('0x2151')]['appType']==='custom'){}else switch((_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x17e')]||_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x9d7')])[_0x545c63('0x1e68')]()){case _0x545c63('0x256d'):_0x5792e8[_0x545c63('0x2151')]['appdata']=_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x10ad')]+'='+_0x5792e8[_0x545c63('0x2151')][_0x545c63('0xa7b')];break;case _0x545c63('0xbb4'):break;default:_0x5b42dc[0x0]=_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x2766')],_0x5792e8[_0x545c63('0x2151')][_0x545c63('0x1c00')]=_0x5b42dc[_0x545c63('0x2259')](',');}_0x2c8cde(_0x5792e8[_0x545c63('0x2151')]);}function _0x2c8cde(_0x1746c3){_0x2f22aa['hide'](_0x1746c3);}}const _0x11f10f=_0x533006;_0x3cf483[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x23a5'),_0x566993('0xe12'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x3cf483(_0x5ade2f,_0x2fe0f4,_0x12cb75,_0x5aa18d,_0x3318fa,_0xe71c47,_0x3f398c,_0x367789){const _0x32c103=_0x566993,_0x23a2ab=this;_0x23a2ab['currentUser']=_0x3f398c[_0x32c103('0x14d4')](),_0x23a2ab[_0x32c103('0x1d4a')]=[],_0x23a2ab[_0x32c103('0x20d6')]=_0x32c103('0x14de')+(_0x5aa18d[_0x32c103('0x9d7')]||_0x5aa18d[_0x32c103('0x17e')])[_0x32c103('0x1164')](),_0x23a2ab[_0x32c103('0xf5d')]=angular[_0x32c103('0x2e3')](_0x5aa18d),_0x23a2ab[_0x32c103('0x1dc1')]=_0x367789,_0x23a2ab['hasModulePermissions']={};if(_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1c00')])switch(_0x23a2ab['gotoif'][_0x32c103('0x9d7')]?_0x23a2ab[_0x32c103('0xf5d')]['appType'][_0x32c103('0x1e68')]():_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x17e')]['toLowerCase']()){case _0x32c103('0xbb4'):break;case'dialogflow':{const _0x5d7fc8=_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1c00')][_0x32c103('0x43a')](',');_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x237a')]=_0x5d7fc8[0x0],_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x604')]=_0x5d7fc8[0x1],_0x23a2ab['gotoif']['welcomemessage']=_0x5d7fc8[_0x32c103('0x2456')](0x2,_0x5d7fc8[_0x32c103('0x543')])[_0x32c103('0x2259')](',');}break;case'amazonlex':{const _0x2dc73f=_0x23a2ab['gotoif'][_0x32c103('0x1c00')][_0x32c103('0x43a')](',');_0x23a2ab['gotoif']['accesskeyid']=_0x2dc73f[0x0],_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1d93')]=_0x2dc73f[0x1],_0x23a2ab['gotoif'][_0x32c103('0x10fc')]=_0x2dc73f[0x2],_0x23a2ab[_0x32c103('0xf5d')]['botname']=_0x2dc73f[0x3],_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1a7')]=_0x2dc73f[_0x32c103('0x2456')](0x4,_0x2dc73f[_0x32c103('0x543')])[_0x32c103('0x2259')](',');}break;case'autoreply':{const _0x42cc66=_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1c00')][_0x32c103('0x43a')](',');_0x23a2ab['gotoif'][_0x32c103('0x611')]=isNaN(_0x42cc66[0x0])?_0x42cc66[0x0]:parseInt(_0x42cc66[0x0],0xa),_0x23a2ab['gotoif'][_0x32c103('0x86e')]=_0x42cc66[_0x32c103('0x2456')](0x1,_0x42cc66[_0x32c103('0x543')])['join'](',');}break;case _0x32c103('0x67f'):_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x86e')]=_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1c00')];break;case _0x32c103('0x256d'):_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x10ad')]=_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1c00')][_0x32c103('0x43a')]('=')[0x0],_0x23a2ab[_0x32c103('0xf5d')]['value']=_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1c00')]['split']('=')[0x1];break;case'agi':_0x23a2ab['gotoif'][_0x32c103('0x220b')]=_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1c00')];break;default:{const _0x474e17=_0x23a2ab['gotoif'][_0x32c103('0x1c00')][_0x32c103('0x43a')](',');_0x23a2ab['gotoif'][_0x32c103('0x1adb')]=_0x3c8d8a()['isEmpty'](_0x474e17[0x0])?_0x474e17[0x0]:isNaN(_0x474e17[0x0])?_0x474e17[0x0]:parseInt(_0x474e17[0x0],0xa),_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1cd7')]=_0x3c8d8a()['isEmpty'](_0x474e17[0x1])?_0x474e17[0x1]:isNaN(_0x474e17[0x1])?_0x474e17[0x1]:parseInt(_0x474e17[0x1],0xa),_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1ec9')]=_0x3c8d8a()['isEmpty'](_0x474e17[0x2])?_0x474e17[0x2]:isNaN(_0x474e17[0x2])?_0x474e17[0x2]:parseInt(_0x474e17[0x2],0xa);}break;}else{}_0x23a2ab[_0x32c103('0xf5d')]['type']&&_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1810')][_0x32c103('0x1e68')]()===_0x32c103('0xb33')&&_0x23a2ab[_0x32c103('0xf5d')]['appType'][_0x32c103('0x1e68')]()===_0x32c103('0x1edc')&&(_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x23f7')]=_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0xa04')]?_0x23a2ab[_0x32c103('0xf5d')]['phone']['split']('$')[0x0]:undefined,_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0x1961')]=_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0xe95')]?_0x32c103('0x20a8')+_0x23a2ab[_0x32c103('0xf5d')][_0x32c103('0xe95')]:undefined);_0x23a2ab[_0x32c103('0x1246')]=_0x423a8c,_0x23a2ab[_0x32c103('0x18e2')]=_0x15d4e2;function _0x423a8c(){const _0x539f5a=_0x32c103;_0x23a2ab[_0x539f5a('0x1d4a')]=[];const _0x363f8e=[];_0x23a2ab['gotoif']['type']&&_0x23a2ab[_0x539f5a('0xf5d')]['type'][_0x539f5a('0x1e68')]()===_0x539f5a('0xb33')&&_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x9d7')]===_0x539f5a('0x2150')&&(_0x23a2ab['gotoif'][_0x539f5a('0xa04')]=_0x3318fa[_0x539f5a('0x1429')]?(_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x23f7')]||'')+_0x539f5a('0x1957')+_0x3318fa[_0x539f5a('0x1429')]+'}':(_0x23a2ab['gotoif'][_0x539f5a('0x23f7')]||'')+_0x539f5a('0x1dc5'),_0x3318fa[_0x539f5a('0x76c')]!==_0x539f5a('0x2741')?_0x23a2ab['gotoif'][_0x539f5a('0x2010')][_0x539f5a('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x2010')]+='U(xcally-mixmonitor-context)'):_0x23a2ab['gotoif'][_0x539f5a('0x2010')]=_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x2010')]['replace'](_0x539f5a('0x2474'),''));if(_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x9d7')]&&_0x23a2ab['gotoif']['appType']===_0x539f5a('0xbb4')){}else switch((_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x17e')]||_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x9d7')])[_0x539f5a('0x1e68')]()){case _0x539f5a('0x256d'):_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x1c00')]=_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x10ad')]+'='+_0x23a2ab['gotoif'][_0x539f5a('0xa7b')];break;case _0x539f5a('0xbb4'):break;default:_0x363f8e[0x0]=_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x1adb')],_0x363f8e[0x1]=_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x1cd7')],_0x363f8e[0x2]=_0x23a2ab[_0x539f5a('0xf5d')][_0x539f5a('0x1ec9')],_0x23a2ab[_0x539f5a('0xf5d')]['appdata']=_0x363f8e['join'](',');}_0x15d4e2(_0x23a2ab[_0x539f5a('0xf5d')]);}function _0x15d4e2(_0x5d1bb9){_0x5ade2f['hide'](_0x5d1bb9);}}const _0x479069=_0x3cf483;_0x3bdafc[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'faxAccountApp',_0x566993('0xe12'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x3bdafc(_0x19972b,_0x42fac7,_0x3b4c4e,_0x3b8b2f,_0x27b3e5,_0x3c27db,_0x1ce677,_0xaaacfd){const _0x2d3d60=_0x566993,_0x97a8cf=this;_0x97a8cf[_0x2d3d60('0x155f')]=_0x1ce677[_0x2d3d60('0x14d4')](),_0x97a8cf[_0x2d3d60('0x1d4a')]=[],_0x97a8cf[_0x2d3d60('0x20d6')]='FAX.EDIT_'+(_0x3b8b2f['appType']||_0x3b8b2f['app'])[_0x2d3d60('0x1164')](),_0x97a8cf['gotop']=angular[_0x2d3d60('0x2e3')](_0x3b8b2f),_0x97a8cf[_0x2d3d60('0x1dc1')]=_0xaaacfd,_0x97a8cf[_0x2d3d60('0xb0')]={};if(_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x1c00')])switch(_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x9d7')]?_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x9d7')][_0x2d3d60('0x1e68')]():_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x17e')][_0x2d3d60('0x1e68')]()){case _0x2d3d60('0xbb4'):break;case'dialogflow':{const _0xb596ce=_0x97a8cf['gotop'][_0x2d3d60('0x1c00')][_0x2d3d60('0x43a')](',');_0x97a8cf['gotop'][_0x2d3d60('0x237a')]=_0xb596ce[0x0],_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x604')]=_0xb596ce[0x1],_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x1a7')]=_0xb596ce[_0x2d3d60('0x2456')](0x2,_0xb596ce['length'])[_0x2d3d60('0x2259')](',');}break;case'amazonlex':{const _0x7cee49=_0x97a8cf[_0x2d3d60('0x2ac')]['appdata']['split'](',');_0x97a8cf['gotop'][_0x2d3d60('0x2e0')]=_0x7cee49[0x0],_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x1d93')]=_0x7cee49[0x1],_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x10fc')]=_0x7cee49[0x2],_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x53')]=_0x7cee49[0x3],_0x97a8cf['gotop'][_0x2d3d60('0x1a7')]=_0x7cee49[_0x2d3d60('0x2456')](0x4,_0x7cee49['length'])[_0x2d3d60('0x2259')](',');}break;case'autoreply':{const _0x29e5d6=_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x1c00')][_0x2d3d60('0x43a')](',');_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x611')]=isNaN(_0x29e5d6[0x0])?_0x29e5d6[0x0]:parseInt(_0x29e5d6[0x0],0xa),_0x97a8cf['gotop']['text']=_0x29e5d6[_0x2d3d60('0x2456')](0x1,_0x29e5d6[_0x2d3d60('0x543')])[_0x2d3d60('0x2259')](',');}break;case _0x2d3d60('0x67f'):_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x86e')]=_0x97a8cf['gotop']['appdata'];break;case _0x2d3d60('0x256d'):_0x97a8cf[_0x2d3d60('0x2ac')]['name']=_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x1c00')]['split']('=')[0x0],_0x97a8cf[_0x2d3d60('0x2ac')]['value']=_0x97a8cf[_0x2d3d60('0x2ac')]['appdata']['split']('=')[0x1];break;case _0x2d3d60('0x2426'):_0x97a8cf['gotop'][_0x2d3d60('0x220b')]=_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x1c00')];break;default:{const _0x57febd=_0x97a8cf[_0x2d3d60('0x2ac')]['appdata']['split'](',');_0x97a8cf[_0x2d3d60('0x2ac')]['priority']=_0x3c8d8a()['isEmpty'](_0x57febd[0x0])?_0x57febd[0x0]:isNaN(_0x57febd[0x0])?_0x57febd[0x0]:parseInt(_0x57febd[0x0],0xa);}break;}else{}_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x1810')]&&_0x97a8cf['gotop']['type']['toLowerCase']()==='outbound'&&_0x97a8cf['gotop'][_0x2d3d60('0x9d7')]['toLowerCase']()==='outbounddial'&&(_0x97a8cf[_0x2d3d60('0x2ac')][_0x2d3d60('0x23f7')]=_0x97a8cf[_0x2d3d60('0x2ac')]['phone']?_0x97a8cf['gotop']['phone'][_0x2d3d60('0x43a')]('$')[0x0]:undefined,_0x97a8cf['gotop']['callerId']=_0x97a8cf[_0x2d3d60('0x2ac')]['callerID']?_0x2d3d60('0x20a8')+_0x97a8cf[_0x2d3d60('0x2ac')]['callerID']:undefined);_0x97a8cf[_0x2d3d60('0x1246')]=_0x110d28,_0x97a8cf[_0x2d3d60('0x18e2')]=_0xd01a9d;function _0x110d28(){const _0x2ca3db=_0x2d3d60;_0x97a8cf['errors']=[];const _0xa3b8b2=[];_0x97a8cf[_0x2ca3db('0x2ac')]['type']&&_0x97a8cf[_0x2ca3db('0x2ac')]['type'][_0x2ca3db('0x1e68')]()===_0x2ca3db('0xb33')&&_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x9d7')]===_0x2ca3db('0x2150')&&(_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0xa04')]=_0x27b3e5[_0x2ca3db('0x1429')]?(_0x97a8cf[_0x2ca3db('0x2ac')]['prefix']||'')+_0x2ca3db('0x1957')+_0x27b3e5[_0x2ca3db('0x1429')]+'}':(_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x23f7')]||'')+'${EXTEN}',_0x27b3e5['recordingFormat']!==_0x2ca3db('0x2741')?_0x97a8cf['gotop'][_0x2ca3db('0x2010')][_0x2ca3db('0x2087')](_0x2ca3db('0x2474'))<0x0&&(_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x2010')]+=_0x2ca3db('0x2474')):_0x97a8cf['gotop'][_0x2ca3db('0x2010')]=_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x2010')][_0x2ca3db('0x166c')](_0x2ca3db('0x2474'),''));if(_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x9d7')]&&_0x97a8cf[_0x2ca3db('0x2ac')]['appType']===_0x2ca3db('0xbb4')){}else switch((_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x17e')]||_0x97a8cf[_0x2ca3db('0x2ac')]['appType'])[_0x2ca3db('0x1e68')]()){case'set':_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x1c00')]=_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x10ad')]+'='+_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0xa7b')];break;case _0x2ca3db('0xbb4'):break;default:_0xa3b8b2[0x0]=_0x97a8cf['gotop']['priority'],_0x97a8cf[_0x2ca3db('0x2ac')][_0x2ca3db('0x1c00')]=_0xa3b8b2['join'](',');}_0xd01a9d(_0x97a8cf['gotop']);}function _0xd01a9d(_0x6e2bfd){const _0x4b1409=_0x2d3d60;_0x19972b[_0x4b1409('0x1cf4')](_0x6e2bfd);}}const _0x4278a1=_0x3bdafc;_0x4bdcbf['$inject']=['$state',_0x566993('0x1fe5'),_0x566993('0x1276'),'IndexFactory','interval',_0x566993('0x21c4'),'toasty',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4bdcbf(_0x21b4a7,_0x4eb0bf,_0x49bd5,_0x2c2bd7,_0x490da5,_0x43166b,_0x1e7c32,_0x81c8ed,_0x407846,_0x8f2646){const _0x2c1d9b=_0x566993,_0x2ff1a2=this;_0x2ff1a2[_0x2c1d9b('0x155f')]=_0x407846['getCurrentUser'](),_0x2ff1a2[_0x2c1d9b('0x1d4a')]=[],_0x2ff1a2['title']='TOOLS.EDIT_INTERVAL',_0x2ff1a2[_0x2c1d9b('0x55a')]=angular[_0x2c1d9b('0x2e3')](_0x490da5),_0x2ff1a2[_0x2c1d9b('0x21c4')]=_0x43166b,_0x2ff1a2[_0x2c1d9b('0x1d80')]=![],_0x2ff1a2[_0x2c1d9b('0xf00')]=[_0x2c1d9b('0x17b3'),_0x2c1d9b('0xbb4'),_0x2c1d9b('0x3e3')],_0x2ff1a2[_0x2c1d9b('0x1dc1')]=_0x8f2646,_0x2ff1a2[_0x2c1d9b('0x1626')]=_0x2c2bd7['getDaysOfWeek'](),_0x2ff1a2[_0x2c1d9b('0x8e4')]=_0x2c2bd7[_0x2c1d9b('0x266c')](),_0x2ff1a2['monthName']=_0x2c2bd7[_0x2c1d9b('0xb02')](),_0x2ff1a2[_0x2c1d9b('0x2742')]=_0x2c2bd7[_0x2c1d9b('0x1c80')]();if(!_0x2ff1a2[_0x2c1d9b('0x55a')])_0x2ff1a2['interval']={'interval':'*,*,*,*'},_0x2ff1a2[_0x2c1d9b('0x1810')]=_0x2c1d9b('0x17b3'),_0x2ff1a2[_0x2c1d9b('0x20d6')]='TOOLS.NEW_INTERVAL',_0x2ff1a2[_0x2c1d9b('0x1d80')]=!![];else{if(_0x2ff1a2[_0x2c1d9b('0x55a')][_0x2c1d9b('0x55a')]!==_0x2c1d9b('0x17c5')){_0x2ff1a2[_0x2c1d9b('0x1810')]=_0x2c1d9b('0xbb4');const _0x1a18ae=_0x2ff1a2['interval'][_0x2c1d9b('0x55a')][_0x2c1d9b('0x43a')](','),_0x2923cc=_0x1a18ae[0x0],_0x1a601d=_0x1a18ae[0x1],_0x54ac54=_0x1a18ae[0x2],_0x16626f=_0x1a18ae[0x3];if(_0x2923cc!=='*'){const _0x5d4b4d=_0x2923cc[_0x2c1d9b('0x43a')]('-')[0x0],_0x35020d=_0x2923cc['split']('-')[0x1];let _0x51a878;_0x51a878=new Date(),_0x51a878[_0x2c1d9b('0xd32')](Number(_0x5d4b4d[_0x2c1d9b('0x43a')](':')[0x0])),_0x51a878[_0x2c1d9b('0x14f9')](Number(_0x5d4b4d[_0x2c1d9b('0x43a')](':')[0x1])),_0x2ff1a2[_0x2c1d9b('0x2515')]=_0x51a878,_0x51a878=new Date(),_0x51a878[_0x2c1d9b('0xd32')](Number(_0x35020d[_0x2c1d9b('0x43a')](':')[0x0])),_0x51a878[_0x2c1d9b('0x14f9')](Number(_0x35020d[_0x2c1d9b('0x43a')](':')[0x1])),_0x2ff1a2[_0x2c1d9b('0x437')]=_0x51a878;}_0x1a601d!=='*'&&(_0x2ff1a2[_0x2c1d9b('0x37a')]=_0x1a601d[_0x2c1d9b('0x43a')]('-')[0x0],_0x2ff1a2[_0x2c1d9b('0x269e')]=_0x1a601d['split']('-')[0x1]),_0x54ac54!=='*'&&(_0x2ff1a2['monthDayFrom']=_0x54ac54[_0x2c1d9b('0x43a')]('-')[0x0],_0x2ff1a2[_0x2c1d9b('0x185e')]=_0x54ac54[_0x2c1d9b('0x43a')]('-')[0x1]),_0x16626f!=='*'&&(_0x2ff1a2['monthFrom']=_0x16626f[_0x2c1d9b('0x43a')]('-')[0x0],_0x2ff1a2[_0x2c1d9b('0xf74')]=_0x16626f[_0x2c1d9b('0x43a')]('-')[0x1]);}else _0x2ff1a2[_0x2c1d9b('0x1810')]=_0x2c1d9b('0x17b3');}_0x21b4a7[_0x2c1d9b('0x197a')]['id']&&!_0x2ff1a2['interval']['application']&&(_0x2ff1a2[_0x2c1d9b('0x55a')][_0x2c1d9b('0x600')]=_0x21b4a7[_0x2c1d9b('0x197a')]['id']);_0x2ff1a2[_0x2c1d9b('0x55a')][_0x2c1d9b('0x600')]&&_0x2ff1a2[_0x2c1d9b('0x55a')][_0x2c1d9b('0x17c2')]&&(_0x2ff1a2['type']=_0x2c1d9b('0x3e3'));_0x2ff1a2[_0x2c1d9b('0x11fc')]=_0x4b8195,_0x2ff1a2[_0x2c1d9b('0x1401')]=_0x593fb2,_0x2ff1a2['closeDialog']=_0x340ebc;_0x2ff1a2[_0x2c1d9b('0x55a')][_0x2c1d9b('0x17c2')]&&(_0x407846[_0x2c1d9b('0x1b4e')](_0x2c1d9b('0x79b'))?_0x81c8ed[_0x2c1d9b('0x55a')]['get']({'fields':_0x2c1d9b('0x2666'),'IntervalId':_0x2c1d9b('0x877'),'nolimit':!![]})[_0x2c1d9b('0x1964')][_0x2c1d9b('0x173b')](function(_0x54e077){_0x2ff1a2['intervals']=_0x54e077['rows']||[];})[_0x2c1d9b('0x103c')](function(_0x40b9ab){const _0x5d4cdb=_0x2c1d9b;_0x1e7c32[_0x5d4cdb('0x15aa')]({'title':_0x40b9ab[_0x5d4cdb('0x276f')]?_0x5d4cdb('0x137')+_0x40b9ab['status']+_0x5d4cdb('0x160c')+_0x40b9ab[_0x5d4cdb('0x2696')]:_0x5d4cdb('0x1daf'),'msg':_0x40b9ab['data']?JSON[_0x5d4cdb('0x100b')](_0x40b9ab[_0x5d4cdb('0x1e07')]):_0x40b9ab[_0x5d4cdb('0x1b75')]()});}):_0x81c8ed['interval'][_0x2c1d9b('0x1d97')]({'fields':_0x2c1d9b('0x2666'),'IntervalId':'null','nolimit':!![]})[_0x2c1d9b('0x1964')][_0x2c1d9b('0x173b')](function(_0x733364){const _0x4c1510=_0x2c1d9b;_0x2ff1a2['intervals']=_0x733364[_0x4c1510('0x6aa')]||[];})[_0x2c1d9b('0x173b')](function(){const _0xbb7af6=_0x2c1d9b;return _0x81c8ed[_0xbb7af6('0x170e')][_0xbb7af6('0x1d97')]({'userProfileId':_0x2ff1a2[_0xbb7af6('0x155f')]['userProfileId'],'sectionId':0x3ec})[_0xbb7af6('0x1964')];})[_0x2c1d9b('0x173b')](function(_0x342934){const _0x16747f=_0x2c1d9b,_0x4e2319=_0x342934&&_0x342934[_0x16747f('0x6aa')]?_0x342934[_0x16747f('0x6aa')][0x0]:null;if(!_0x4e2319)_0x2ff1a2[_0x16747f('0x21c4')]=[];else{if(!_0x4e2319[_0x16747f('0x273e')])return _0x81c8ed['userProfileResource']['get']({'sectionId':_0x4e2319['id']})['$promise']['then'](function(_0x47122f){const _0x398ba9=_0x16747f,_0x2bad09=_0x47122f&&_0x47122f[_0x398ba9('0x6aa')]?_0x47122f[_0x398ba9('0x6aa')]:[],_0x38a2bd=[];let _0x15d97a=null;_0x2ff1a2['interval']&&(_0x15d97a=_0x3c8d8a()[_0x398ba9('0x18ab')](_0x2ff1a2[_0x398ba9('0x21c4')],{'name':_0x2ff1a2[_0x398ba9('0x55a')][_0x398ba9('0x600')]})),_0x15d97a&&!_0x3c8d8a()[_0x398ba9('0x1ec')](_0x2bad09,[_0x398ba9('0x1ce0'),_0x15d97a['id']])&&_0x2ff1a2['intervals'][_0x398ba9('0xa6a')](function(_0x2f1b94){const _0x98392d=_0x398ba9;_0x2f1b94['id']===_0x15d97a['id']&&(_0x2f1b94[_0x98392d('0x268e')]=![],_0x38a2bd['push'](_0x2f1b94));}),_0x2ff1a2[_0x398ba9('0x21c4')]=_0x38a2bd;});}})[_0x2c1d9b('0x103c')](function(_0x4b7226){const _0x462c9c=_0x2c1d9b;_0x1e7c32[_0x462c9c('0x15aa')]({'title':_0x4b7226[_0x462c9c('0x276f')]?_0x462c9c('0x137')+_0x4b7226[_0x462c9c('0x276f')]+_0x462c9c('0x160c')+_0x4b7226[_0x462c9c('0x2696')]:_0x462c9c('0x1daf'),'msg':_0x4b7226[_0x462c9c('0x1e07')]?JSON[_0x462c9c('0x100b')](_0x4b7226[_0x462c9c('0x1e07')]):_0x4b7226['toString']()});}));function _0x35b4af(){const _0x24876f=_0x2c1d9b;switch(_0x2ff1a2['type']){case _0x24876f('0x17b3'):case _0x24876f('0x3e3'):return _0x24876f('0x17c5');case'custom':{const _0x3d62c3=[];if(_0x2ff1a2[_0x24876f('0x2515')]!=='*'&&_0x2ff1a2[_0x24876f('0x2515')]&&_0x2ff1a2['timeRangeTo']){const _0x16a8ce=(_0x2ff1a2[_0x24876f('0x2515')][_0x24876f('0x1a28')]()<0xa?'0':'')+_0x2ff1a2[_0x24876f('0x2515')]['getHours']()+':'+((_0x2ff1a2[_0x24876f('0x2515')][_0x24876f('0x1d2a')]()<0xa?'0':'')+_0x2ff1a2[_0x24876f('0x2515')]['getMinutes']()),_0x1039f2=(_0x2ff1a2[_0x24876f('0x437')][_0x24876f('0x1a28')]()<0xa?'0':'')+_0x2ff1a2[_0x24876f('0x437')][_0x24876f('0x1a28')]()+':'+((_0x2ff1a2[_0x24876f('0x437')]['getMinutes']()<0xa?'0':'')+_0x2ff1a2['timeRangeTo'][_0x24876f('0x1d2a')]());_0x3d62c3[_0x24876f('0x18bb')](_0x16a8ce+'-'+_0x1039f2);}else _0x3d62c3['push']('*');return _0x2ff1a2[_0x24876f('0x37a')]?_0x2ff1a2[_0x24876f('0x269e')]?_0x3d62c3['push'](_0x2ff1a2[_0x24876f('0x37a')]+'-'+_0x2ff1a2[_0x24876f('0x269e')]):_0x3d62c3['push'](_0x2ff1a2[_0x24876f('0x37a')]):_0x3d62c3['push']('*'),_0x2ff1a2['monthDayFrom']?_0x2ff1a2[_0x24876f('0x185e')]?_0x3d62c3['push'](_0x2ff1a2[_0x24876f('0x6df')]+'-'+_0x2ff1a2[_0x24876f('0x185e')]):_0x3d62c3['push'](_0x2ff1a2[_0x24876f('0x6df')]):_0x3d62c3[_0x24876f('0x18bb')]('*'),_0x2ff1a2[_0x24876f('0x1f34')]?_0x2ff1a2['monthTo']?_0x3d62c3['push'](_0x2ff1a2[_0x24876f('0x1f34')]+'-'+_0x2ff1a2['monthTo']):_0x3d62c3[_0x24876f('0x18bb')](_0x2ff1a2['monthFrom']):_0x3d62c3['push']('*'),_0x3d62c3['join']();}}}function _0x4b8195(){const _0x329a04=_0x2c1d9b;_0x2ff1a2[_0x329a04('0x1d4a')]=[],_0x2ff1a2[_0x329a04('0x55a')][_0x329a04('0x55a')]=_0x35b4af(),_0x81c8ed[_0x329a04('0x55a')][_0x329a04('0x1195')](_0x2ff1a2[_0x329a04('0x55a')])[_0x329a04('0x1964')][_0x329a04('0x173b')](function(_0x551712){const _0x171d58=_0x329a04;_0x2ff1a2['intervals'][_0x171d58('0x18bb')](_0x551712),_0x1e7c32['success']({'title':'Interval\x20properly\x20created','msg':_0x2ff1a2[_0x171d58('0x55a')][_0x171d58('0x10ad')]?_0x2ff1a2[_0x171d58('0x55a')][_0x171d58('0x10ad')]+_0x171d58('0x209a'):''}),_0x340ebc();})[_0x329a04('0x103c')](function(_0x9b424d){const _0x1b9b9a=_0x329a04;console[_0x1b9b9a('0x15aa')](_0x9b424d),_0x2ff1a2[_0x1b9b9a('0x1d4a')]=_0x9b424d['data'][_0x1b9b9a('0x1d4a')]||[{'message':_0x9b424d[_0x1b9b9a('0x1b75')](),'type':'api.interval.save'}];});}function _0x593fb2(){const _0x5c9b3d=_0x2c1d9b;_0x2ff1a2[_0x5c9b3d('0x1d4a')]=[],_0x2ff1a2[_0x5c9b3d('0x55a')][_0x5c9b3d('0x55a')]=_0x35b4af(),_0x2ff1a2['interval']['application']?(_0x2ff1a2[_0x5c9b3d('0x1810')]!==_0x5c9b3d('0x3e3')&&(_0x2ff1a2[_0x5c9b3d('0x55a')][_0x5c9b3d('0x600')]=null),_0x340ebc(_0x2ff1a2[_0x5c9b3d('0x55a')])):_0x81c8ed['interval'][_0x5c9b3d('0x1842')]({'id':_0x2ff1a2[_0x5c9b3d('0x55a')]['id']},_0x2ff1a2['interval'])[_0x5c9b3d('0x1964')][_0x5c9b3d('0x173b')](function(_0x555f7c){const _0x1f43a0=_0x5c9b3d,_0x27212f=_0x3c8d8a()['find'](_0x2ff1a2['intervals'],{'id':_0x555f7c['id']});_0x27212f&&_0x3c8d8a()[_0x1f43a0('0x9ef')](_0x27212f,_0x555f7c),_0x1e7c32[_0x1f43a0('0xdfe')]({'title':_0x1f43a0('0x39a'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x340ebc();})[_0x5c9b3d('0x103c')](function(_0x1e9a9f){const _0xa2a4a5=_0x5c9b3d;console[_0xa2a4a5('0x15aa')](_0x1e9a9f),_0x2ff1a2[_0xa2a4a5('0x1d4a')]=_0x1e9a9f['data'][_0xa2a4a5('0x1d4a')]||[{'message':_0x1e9a9f[_0xa2a4a5('0x1b75')](),'type':_0xa2a4a5('0xe20')}];});}function _0x340ebc(_0x2dd60f){_0x4eb0bf['hide'](_0x2dd60f);}}const _0x57cd7c=_0x4bdcbf;_0x4a2f9e['$inject']=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x23a5'),_0x566993('0xe12'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4a2f9e(_0x3a25c7,_0x46fcec,_0x35b9d7,_0x5ab0c9,_0x416a7c,_0x559804,_0x576a7d,_0x11e4c5){const _0x3fcce0=_0x566993,_0x2ebd06=this;_0x2ebd06[_0x3fcce0('0x155f')]=_0x576a7d[_0x3fcce0('0x14d4')](),_0x2ebd06[_0x3fcce0('0x1d4a')]=[],_0x2ebd06[_0x3fcce0('0x20d6')]=_0x3fcce0('0x14de')+(_0x5ab0c9['appType']||_0x5ab0c9[_0x3fcce0('0x17e')])[_0x3fcce0('0x1164')](),_0x2ebd06[_0x3fcce0('0x1086')]=angular['copy'](_0x5ab0c9),_0x2ebd06[_0x3fcce0('0x1dc1')]=_0x11e4c5,_0x2ebd06[_0x3fcce0('0xb0')]={};if(_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1c00')])switch(_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x9d7')]?_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x9d7')][_0x3fcce0('0x1e68')]():_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x17e')][_0x3fcce0('0x1e68')]()){case'custom':break;case _0x3fcce0('0x1601'):{const _0x3e743e=_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1c00')][_0x3fcce0('0x43a')](',');_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x237a')]=_0x3e743e[0x0],_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x604')]=_0x3e743e[0x1],_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1a7')]=_0x3e743e[_0x3fcce0('0x2456')](0x2,_0x3e743e[_0x3fcce0('0x543')])[_0x3fcce0('0x2259')](',');}break;case _0x3fcce0('0x1680'):{const _0xd5cf81=_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1c00')][_0x3fcce0('0x43a')](',');_0x2ebd06['noop'][_0x3fcce0('0x2e0')]=_0xd5cf81[0x0],_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1d93')]=_0xd5cf81[0x1],_0x2ebd06[_0x3fcce0('0x1086')]['lexregion']=_0xd5cf81[0x2],_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x53')]=_0xd5cf81[0x3],_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1a7')]=_0xd5cf81[_0x3fcce0('0x2456')](0x4,_0xd5cf81[_0x3fcce0('0x543')])[_0x3fcce0('0x2259')](',');}break;case _0x3fcce0('0x23fe'):{const _0x3833aa=_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1c00')][_0x3fcce0('0x43a')](',');_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x611')]=isNaN(_0x3833aa[0x0])?_0x3833aa[0x0]:parseInt(_0x3833aa[0x0],0xa),_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x86e')]=_0x3833aa[_0x3fcce0('0x2456')](0x1,_0x3833aa[_0x3fcce0('0x543')])[_0x3fcce0('0x2259')](',');}break;case _0x3fcce0('0x67f'):_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x86e')]=_0x2ebd06['noop'][_0x3fcce0('0x1c00')];break;case _0x3fcce0('0x256d'):_0x2ebd06['noop'][_0x3fcce0('0x10ad')]=_0x2ebd06['noop'][_0x3fcce0('0x1c00')][_0x3fcce0('0x43a')]('=')[0x0],_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0xa7b')]=_0x2ebd06[_0x3fcce0('0x1086')]['appdata']['split']('=')[0x1];break;case _0x3fcce0('0x2426'):_0x2ebd06[_0x3fcce0('0x1086')]['project']=_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1c00')];break;default:{const _0x279140=_0x2ebd06['noop'][_0x3fcce0('0x1c00')][_0x3fcce0('0x43a')](',');_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0xa7b')]=_0x3c8d8a()[_0x3fcce0('0x1a56')](_0x279140[0x0])?_0x279140[0x0]:isNaN(_0x279140[0x0])?_0x279140[0x0]:parseInt(_0x279140[0x0],0xa);}break;}else{}_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1810')]&&_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x1810')]['toLowerCase']()===_0x3fcce0('0xb33')&&_0x2ebd06[_0x3fcce0('0x1086')]['appType'][_0x3fcce0('0x1e68')]()===_0x3fcce0('0x1edc')&&(_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0x23f7')]=_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0xa04')]?_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0xa04')][_0x3fcce0('0x43a')]('$')[0x0]:undefined,_0x2ebd06[_0x3fcce0('0x1086')]['callerId']=_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0xe95')]?_0x3fcce0('0x20a8')+_0x2ebd06[_0x3fcce0('0x1086')][_0x3fcce0('0xe95')]:undefined);_0x2ebd06[_0x3fcce0('0x1246')]=_0x303962,_0x2ebd06[_0x3fcce0('0x18e2')]=_0x173a0c;function _0x303962(){const _0x2807e9=_0x3fcce0;_0x2ebd06['errors']=[];const _0xcf2d9=[];_0x2ebd06[_0x2807e9('0x1086')]['type']&&_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x1810')][_0x2807e9('0x1e68')]()===_0x2807e9('0xb33')&&_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x9d7')]==='outboundDial'&&(_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0xa04')]=_0x416a7c[_0x2807e9('0x1429')]?(_0x2ebd06['noop'][_0x2807e9('0x23f7')]||'')+'${EXTEN:'+_0x416a7c['cutdigits']+'}':(_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x23f7')]||'')+_0x2807e9('0x1dc5'),_0x416a7c['recordingFormat']!=='none'?_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x2010')][_0x2807e9('0x2087')](_0x2807e9('0x2474'))<0x0&&(_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x2010')]+=_0x2807e9('0x2474')):_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x2010')]=_0x2ebd06['noop']['options']['replace'](_0x2807e9('0x2474'),''));if(_0x2ebd06[_0x2807e9('0x1086')]['appType']&&_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x9d7')]===_0x2807e9('0xbb4')){}else switch((_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x17e')]||_0x2ebd06[_0x2807e9('0x1086')]['appType'])[_0x2807e9('0x1e68')]()){case'set':_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x1c00')]=_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0x10ad')]+'='+_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0xa7b')];break;case _0x2807e9('0xbb4'):break;default:_0xcf2d9[0x0]=_0x2ebd06[_0x2807e9('0x1086')][_0x2807e9('0xa7b')],_0x2ebd06[_0x2807e9('0x1086')]['appdata']=_0xcf2d9['join'](',');}_0x173a0c(_0x2ebd06[_0x2807e9('0x1086')]);}function _0x173a0c(_0x108dc5){const _0x54debb=_0x3fcce0;_0x3a25c7[_0x54debb('0x1cf4')](_0x108dc5);}}const _0x4c5e5a=_0x4a2f9e;_0x1e9b26[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x23a5'),_0x566993('0xe12'),'api','Auth',_0x566993('0x1dc1')];function _0x1e9b26(_0xffc066,_0x39d9f1,_0x191442,_0x3c43ac,_0x38301f,_0x1920d4,_0x4e7a94,_0x282ec8){const _0x81697f=_0x566993,_0x2034e2=this;_0x2034e2[_0x81697f('0x155f')]=_0x4e7a94['getCurrentUser'](),_0x2034e2['errors']=[],_0x2034e2[_0x81697f('0x20d6')]=_0x81697f('0x14de')+(_0x3c43ac[_0x81697f('0x9d7')]||_0x3c43ac[_0x81697f('0x17e')])['toUpperCase'](),_0x2034e2[_0x81697f('0x172')]=angular['copy'](_0x3c43ac),_0x2034e2[_0x81697f('0x1dc1')]=_0x282ec8,_0x2034e2['hasModulePermissions']={};if(_0x2034e2[_0x81697f('0x172')]['appdata'])switch(_0x2034e2['queue'][_0x81697f('0x9d7')]?_0x2034e2[_0x81697f('0x172')][_0x81697f('0x9d7')][_0x81697f('0x1e68')]():_0x2034e2[_0x81697f('0x172')]['app'][_0x81697f('0x1e68')]()){case _0x81697f('0xbb4'):break;case'dialogflow':{const _0x4dcd6d=_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1c00')][_0x81697f('0x43a')](',');_0x2034e2[_0x81697f('0x172')][_0x81697f('0x237a')]=_0x4dcd6d[0x0],_0x2034e2[_0x81697f('0x172')][_0x81697f('0x604')]=_0x4dcd6d[0x1],_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1a7')]=_0x4dcd6d['slice'](0x2,_0x4dcd6d[_0x81697f('0x543')])['join'](',');}break;case _0x81697f('0x1680'):{const _0x10dee8=_0x2034e2['queue']['appdata'][_0x81697f('0x43a')](',');_0x2034e2[_0x81697f('0x172')][_0x81697f('0x2e0')]=_0x10dee8[0x0],_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1d93')]=_0x10dee8[0x1],_0x2034e2['queue'][_0x81697f('0x10fc')]=_0x10dee8[0x2],_0x2034e2[_0x81697f('0x172')]['botname']=_0x10dee8[0x3],_0x2034e2[_0x81697f('0x172')]['welcomemessage']=_0x10dee8['slice'](0x4,_0x10dee8[_0x81697f('0x543')])['join'](',');}break;case'autoreply':{const _0x5f4a23=_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1c00')][_0x81697f('0x43a')](',');_0x2034e2[_0x81697f('0x172')][_0x81697f('0x611')]=isNaN(_0x5f4a23[0x0])?_0x5f4a23[0x0]:parseInt(_0x5f4a23[0x0],0xa),_0x2034e2[_0x81697f('0x172')][_0x81697f('0x86e')]=_0x5f4a23[_0x81697f('0x2456')](0x1,_0x5f4a23[_0x81697f('0x543')])[_0x81697f('0x2259')](',');}break;case _0x81697f('0x67f'):_0x2034e2['queue'][_0x81697f('0x86e')]=_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1c00')];break;case'set':_0x2034e2['queue'][_0x81697f('0x10ad')]=_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1c00')]['split']('=')[0x0],_0x2034e2[_0x81697f('0x172')][_0x81697f('0xa7b')]=_0x2034e2['queue'][_0x81697f('0x1c00')][_0x81697f('0x43a')]('=')[0x1];break;case _0x81697f('0x2426'):_0x2034e2[_0x81697f('0x172')][_0x81697f('0x220b')]=_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1c00')];break;default:{const _0x554288=_0x2034e2['queue']['appdata'][_0x81697f('0x43a')](',');_0x2034e2[_0x81697f('0x172')]['queue']=_0x3c8d8a()[_0x81697f('0x1a56')](_0x554288[0x0])?_0x554288[0x0]:isNaN(_0x554288[0x0])?_0x554288[0x0]:parseInt(_0x554288[0x0],0xa),_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1f84')]=_0x3c8d8a()['isEmpty'](_0x554288[0x1])?_0x554288[0x1]:isNaN(_0x554288[0x1])?_0x554288[0x1]:parseInt(_0x554288[0x1],0xa);}break;}else _0x2034e2['queue']['queue']=0x12c,_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1f84')]=0x12c;_0x2034e2[_0x81697f('0x172')][_0x81697f('0x1810')]&&_0x2034e2[_0x81697f('0x172')]['type'][_0x81697f('0x1e68')]()===_0x81697f('0xb33')&&_0x2034e2[_0x81697f('0x172')]['appType'][_0x81697f('0x1e68')]()===_0x81697f('0x1edc')&&(_0x2034e2['queue'][_0x81697f('0x23f7')]=_0x2034e2['queue']['phone']?_0x2034e2['queue']['phone']['split']('$')[0x0]:undefined,_0x2034e2[_0x81697f('0x172')]['callerId']=_0x2034e2[_0x81697f('0x172')][_0x81697f('0xe95')]?'CALLERID(all)='+_0x2034e2[_0x81697f('0x172')]['callerID']:undefined);_0x2034e2[_0x81697f('0x1246')]=_0x31c16e,_0x2034e2[_0x81697f('0x18e2')]=_0x3225e6,_0x4e7a94[_0x81697f('0x1b4e')](_0x81697f('0x79b'))?_0x1920d4[_0x81697f('0xd82')][_0x81697f('0x1d97')]({'fields':_0x81697f('0x1c66'),'sort':_0x81697f('0x10ad'),'nolimit':_0x81697f('0x799')})[_0x81697f('0x1964')][_0x81697f('0x173b')](function(_0x5a090e){const _0x103e10=_0x81697f;_0x2034e2[_0x103e10('0xeae')]=_0x5a090e[_0x103e10('0x6aa')]||[];})['catch'](function(_0xd3f3bd){const _0x18e95f=_0x81697f;_0x191442[_0x18e95f('0x15aa')]({'title':_0xd3f3bd[_0x18e95f('0x276f')]?_0x18e95f('0x137')+_0xd3f3bd[_0x18e95f('0x276f')]+_0x18e95f('0x160c')+_0xd3f3bd[_0x18e95f('0x2696')]:_0x18e95f('0x1e3c'),'msg':_0xd3f3bd[_0x18e95f('0x1e07')]?JSON[_0x18e95f('0x100b')](_0xd3f3bd['data']):_0xd3f3bd[_0x18e95f('0x1b75')]()});}):_0x1920d4[_0x81697f('0xd82')][_0x81697f('0x1d97')]({'fields':'id,name,type','sort':_0x81697f('0x10ad'),'nolimit':_0x81697f('0x799')})['$promise'][_0x81697f('0x173b')](function(_0x2faa17){const _0xc1a23c=_0x81697f;_0x2034e2[_0xc1a23c('0xeae')]=_0x2faa17['rows']||[];})['then'](function(){const _0x45358e=_0x81697f;return _0x1920d4[_0x45358e('0x170e')][_0x45358e('0x1d97')]({'userProfileId':_0x2034e2['currentUser'][_0x45358e('0x1946')],'sectionId':0x385})[_0x45358e('0x1964')];})[_0x81697f('0x173b')](function(_0x11bcf7){const _0x2594d2=_0x81697f,_0x1eb79b=_0x11bcf7&&_0x11bcf7[_0x2594d2('0x6aa')]?_0x11bcf7[_0x2594d2('0x6aa')][0x0]:null;if(!_0x1eb79b){const _0x2a64b0=[];let _0x39f04d=null;_0x2034e2[_0x2594d2('0x172')]&&(_0x39f04d=_0x3c8d8a()[_0x2594d2('0x18ab')](_0x2034e2[_0x2594d2('0xeae')],{'name':_0x2034e2[_0x2594d2('0x172')][_0x2594d2('0x172')]}));for(let _0x198718=0x0;_0x198718<_0x2034e2['queues'][_0x2594d2('0x543')];_0x198718++){_0x39f04d&&_0x2034e2['queues'][_0x198718]['id']===_0x39f04d['id']&&(_0x2034e2['queues'][_0x198718][_0x2594d2('0x268e')]=![],_0x2a64b0[_0x2594d2('0x18bb')](_0x2034e2[_0x2594d2('0xeae')][_0x198718]));}_0x2034e2[_0x2594d2('0xeae')]=_0x2a64b0;}else{if(!_0x1eb79b[_0x2594d2('0x273e')])return _0x1920d4[_0x2594d2('0xda9')][_0x2594d2('0x1d97')]({'sectionId':_0x1eb79b['id']})[_0x2594d2('0x1964')][_0x2594d2('0x173b')](function(_0x523383){const _0x5b7087=_0x2594d2,_0x1d87b8=_0x3c8d8a()[_0x5b7087('0x8a2')](_0x523383['rows'],function(_0x3288c2){const _0x4d803d=_0x5b7087;return _0x3c8d8a()[_0x4d803d('0x18ab')](_0x2034e2[_0x4d803d('0xeae')],{'id':_0x3288c2[_0x4d803d('0x1ce0')]});});let _0x361e5d=null;_0x2034e2[_0x5b7087('0x172')]&&(_0x361e5d=_0x3c8d8a()['find'](_0x2034e2[_0x5b7087('0xeae')],{'name':_0x2034e2['queue'][_0x5b7087('0x172')]}));if(_0x361e5d&&!_0x3c8d8a()[_0x5b7087('0x1ec')](_0x1d87b8,['id',_0x361e5d['id']])){const _0x17a25e=_0x3c8d8a()[_0x5b7087('0x18ab')](_0x2034e2['queues'],{'id':_0x361e5d['id']});_0x17a25e[_0x5b7087('0x268e')]=![],_0x1d87b8[_0x5b7087('0x18bb')](_0x17a25e);}_0x2034e2[_0x5b7087('0xeae')]=_0x1d87b8;});}})[_0x81697f('0x103c')](function(_0x2ca9bf){const _0x35b66f=_0x81697f;_0x191442[_0x35b66f('0x15aa')]({'title':_0x2ca9bf[_0x35b66f('0x276f')]?_0x35b66f('0x137')+_0x2ca9bf[_0x35b66f('0x276f')]+'\x20-\x20'+_0x2ca9bf[_0x35b66f('0x2696')]:_0x35b66f('0x75f'),'msg':_0x2ca9bf['data']?JSON[_0x35b66f('0x100b')](_0x2ca9bf[_0x35b66f('0x1e07')]):_0x2ca9bf[_0x35b66f('0x1b75')]()});});function _0x31c16e(){const _0x102056=_0x81697f;_0x2034e2['errors']=[];const _0x525cf3=[];_0x2034e2[_0x102056('0x172')]['type']&&_0x2034e2[_0x102056('0x172')][_0x102056('0x1810')]['toLowerCase']()===_0x102056('0xb33')&&_0x2034e2[_0x102056('0x172')][_0x102056('0x9d7')]===_0x102056('0x2150')&&(_0x2034e2[_0x102056('0x172')][_0x102056('0xa04')]=_0x38301f[_0x102056('0x1429')]?(_0x2034e2[_0x102056('0x172')]['prefix']||'')+_0x102056('0x1957')+_0x38301f[_0x102056('0x1429')]+'}':(_0x2034e2[_0x102056('0x172')]['prefix']||'')+_0x102056('0x1dc5'),_0x38301f[_0x102056('0x76c')]!==_0x102056('0x2741')?_0x2034e2[_0x102056('0x172')]['options'][_0x102056('0x2087')](_0x102056('0x2474'))<0x0&&(_0x2034e2[_0x102056('0x172')]['options']+=_0x102056('0x2474')):_0x2034e2[_0x102056('0x172')]['options']=_0x2034e2[_0x102056('0x172')][_0x102056('0x2010')][_0x102056('0x166c')](_0x102056('0x2474'),''));const _0x5e845d=_0x3c8d8a()[_0x102056('0x18ab')](_0x2034e2['queues'],{'name':_0x2034e2[_0x102056('0x172')][_0x102056('0x172')]});_0x5e845d&&(_0x2034e2['queue'][_0x3c8d8a()[_0x102056('0x587')]('fax')+_0x102056('0x1f06')]=_0x5e845d['id']);if(_0x2034e2[_0x102056('0x172')][_0x102056('0x9d7')]&&_0x2034e2[_0x102056('0x172')]['appType']==='custom'){}else switch((_0x2034e2[_0x102056('0x172')]['app']||_0x2034e2['queue']['appType'])[_0x102056('0x1e68')]()){case _0x102056('0x256d'):_0x2034e2['queue'][_0x102056('0x1c00')]=_0x2034e2[_0x102056('0x172')][_0x102056('0x10ad')]+'='+_0x2034e2[_0x102056('0x172')][_0x102056('0xa7b')];break;case _0x102056('0xbb4'):break;default:_0x525cf3[0x0]=_0x2034e2[_0x102056('0x172')][_0x102056('0x172')],_0x525cf3[0x1]=_0x2034e2[_0x102056('0x172')]['timeout'],_0x2034e2[_0x102056('0x172')][_0x102056('0x1c00')]=_0x525cf3[_0x102056('0x2259')](',');}_0x3225e6(_0x2034e2[_0x102056('0x172')]);}function _0x3225e6(_0x367793){_0xffc066['hide'](_0x367793);}}const _0x1c0fc3=_0x1e9b26;_0xa55b46[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'faxAccountApp',_0x566993('0xe12'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0xa55b46(_0x290ef6,_0x331fc7,_0x1f0fc2,_0x4f57bd,_0x2abd87,_0x53e73e,_0x123ee0,_0x3fd8cf){const _0xad895c=_0x566993,_0x873356=this;_0x873356[_0xad895c('0x155f')]=_0x123ee0['getCurrentUser'](),_0x873356['errors']=[],_0x873356[_0xad895c('0x20d6')]=_0xad895c('0x14de')+(_0x4f57bd[_0xad895c('0x9d7')]||_0x4f57bd[_0xad895c('0x17e')])[_0xad895c('0x1164')](),_0x873356[_0xad895c('0x1ed')]=angular[_0xad895c('0x2e3')](_0x4f57bd),_0x873356['crudPermissions']=_0x3fd8cf,_0x873356[_0xad895c('0xb0')]={};if(_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1c00')])switch(_0x873356[_0xad895c('0x1ed')]['appType']?_0x873356['system'][_0xad895c('0x9d7')][_0xad895c('0x1e68')]():_0x873356[_0xad895c('0x1ed')][_0xad895c('0x17e')]['toLowerCase']()){case _0xad895c('0xbb4'):break;case _0xad895c('0x1601'):{const _0x496a85=_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1c00')][_0xad895c('0x43a')](',');_0x873356['system'][_0xad895c('0x237a')]=_0x496a85[0x0],_0x873356[_0xad895c('0x1ed')][_0xad895c('0x604')]=_0x496a85[0x1],_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1a7')]=_0x496a85[_0xad895c('0x2456')](0x2,_0x496a85['length'])['join'](',');}break;case _0xad895c('0x1680'):{const _0x422ef2=_0x873356[_0xad895c('0x1ed')]['appdata'][_0xad895c('0x43a')](',');_0x873356[_0xad895c('0x1ed')][_0xad895c('0x2e0')]=_0x422ef2[0x0],_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1d93')]=_0x422ef2[0x1],_0x873356[_0xad895c('0x1ed')][_0xad895c('0x10fc')]=_0x422ef2[0x2],_0x873356[_0xad895c('0x1ed')]['botname']=_0x422ef2[0x3],_0x873356[_0xad895c('0x1ed')]['welcomemessage']=_0x422ef2[_0xad895c('0x2456')](0x4,_0x422ef2[_0xad895c('0x543')])[_0xad895c('0x2259')](',');}break;case _0xad895c('0x23fe'):{const _0xc7b670=_0x873356[_0xad895c('0x1ed')]['appdata'][_0xad895c('0x43a')](',');_0x873356[_0xad895c('0x1ed')]['times']=isNaN(_0xc7b670[0x0])?_0xc7b670[0x0]:parseInt(_0xc7b670[0x0],0xa),_0x873356[_0xad895c('0x1ed')][_0xad895c('0x86e')]=_0xc7b670[_0xad895c('0x2456')](0x1,_0xc7b670[_0xad895c('0x543')])[_0xad895c('0x2259')](',');}break;case'message':_0x873356[_0xad895c('0x1ed')][_0xad895c('0x86e')]=_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1c00')];break;case _0xad895c('0x256d'):_0x873356[_0xad895c('0x1ed')][_0xad895c('0x10ad')]=_0x873356['system'][_0xad895c('0x1c00')][_0xad895c('0x43a')]('=')[0x0],_0x873356['system'][_0xad895c('0xa7b')]=_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1c00')]['split']('=')[0x1];break;case _0xad895c('0x2426'):_0x873356[_0xad895c('0x1ed')][_0xad895c('0x220b')]=_0x873356['system']['appdata'];break;default:{const _0x19c47d=_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1c00')][_0xad895c('0x43a')](',');_0x873356[_0xad895c('0x1ed')][_0xad895c('0xdc4')]=_0x3c8d8a()[_0xad895c('0x1a56')](_0x19c47d[0x0])?_0x19c47d[0x0]:isNaN(_0x19c47d[0x0])?_0x19c47d[0x0]:parseInt(_0x19c47d[0x0],0xa),_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1b56')]=_0x3c8d8a()['isEmpty'](_0x19c47d[0x1])?_0x19c47d[0x1]:isNaN(_0x19c47d[0x1])?_0x19c47d[0x1]:parseInt(_0x19c47d[0x1],0xa);}}else _0x873356[_0xad895c('0x1ed')]['variable']='';_0x873356['system'][_0xad895c('0x1810')]&&_0x873356[_0xad895c('0x1ed')][_0xad895c('0x1810')][_0xad895c('0x1e68')]()==='outbound'&&_0x873356[_0xad895c('0x1ed')][_0xad895c('0x9d7')][_0xad895c('0x1e68')]()===_0xad895c('0x1edc')&&(_0x873356[_0xad895c('0x1ed')][_0xad895c('0x23f7')]=_0x873356['system'][_0xad895c('0xa04')]?_0x873356[_0xad895c('0x1ed')][_0xad895c('0xa04')]['split']('$')[0x0]:undefined,_0x873356['system']['callerId']=_0x873356['system'][_0xad895c('0xe95')]?_0xad895c('0x20a8')+_0x873356[_0xad895c('0x1ed')][_0xad895c('0xe95')]:undefined);_0x873356[_0xad895c('0x1246')]=_0x4ca9cf,_0x873356[_0xad895c('0x18e2')]=_0x2f02fd,_0x123ee0[_0xad895c('0x1b4e')]('admin')?_0x53e73e[_0xad895c('0x1b56')]['get']({'fields':'id,name','sort':_0xad895c('0x10ad'),'nolimit':'true'})[_0xad895c('0x1964')][_0xad895c('0x173b')](function(_0x2b1860){const _0x1ecb93=_0xad895c;_0x873356[_0x1ecb93('0x2715')]=_0x2b1860[_0x1ecb93('0x6aa')]||[];})['catch'](function(_0x1167fa){const _0x13933d=_0xad895c;_0x1f0fc2[_0x13933d('0x15aa')]({'title':_0x1167fa[_0x13933d('0x276f')]?_0x13933d('0x137')+_0x1167fa[_0x13933d('0x276f')]+_0x13933d('0x160c')+_0x1167fa[_0x13933d('0x2696')]:_0x13933d('0x1d22'),'msg':_0x1167fa[_0x13933d('0x1e07')]?JSON[_0x13933d('0x100b')](_0x1167fa[_0x13933d('0x1e07')]):_0x1167fa[_0x13933d('0x1b75')]()});}):_0x53e73e[_0xad895c('0x1b56')][_0xad895c('0x1d97')]({'fields':'id,name','sort':_0xad895c('0x10ad'),'nolimit':'true'})[_0xad895c('0x1964')][_0xad895c('0x173b')](function(_0xa82b6b){const _0x3c364f=_0xad895c;_0x873356[_0x3c364f('0x2715')]=_0xa82b6b[_0x3c364f('0x6aa')]||[];})[_0xad895c('0x173b')](function(){const _0x4b0cc6=_0xad895c;return _0x53e73e[_0x4b0cc6('0x170e')][_0x4b0cc6('0x1d97')]({'userProfileId':_0x873356['currentUser']['userProfileId'],'sectionId':0x3f4})[_0x4b0cc6('0x1964')];})[_0xad895c('0x173b')](function(_0x339a07){const _0x11a30e=_0xad895c,_0x58af04=_0x339a07&&_0x339a07['rows']?_0x339a07[_0x11a30e('0x6aa')][0x0]:null;if(!_0x58af04){const _0x123fc9=[];let _0x4885c1=null;_0x873356[_0x11a30e('0x1ed')]&&(_0x4885c1=_0x3c8d8a()['find'](_0x873356['variables'],{'name':_0x873356[_0x11a30e('0x1ed')][_0x11a30e('0x1b56')]}));for(let _0x3ce1bc=0x0;_0x3ce1bc<_0x873356[_0x11a30e('0x2715')]['length'];_0x3ce1bc++){_0x4885c1&&_0x873356[_0x11a30e('0x2715')][_0x3ce1bc]['id']===_0x4885c1['id']&&(_0x873356[_0x11a30e('0x2715')][_0x3ce1bc]['canSelect']=![],_0x123fc9[_0x11a30e('0x18bb')](_0x873356[_0x11a30e('0x2715')][_0x3ce1bc]));}_0x873356[_0x11a30e('0x2715')]=_0x123fc9;}else{if(!_0x58af04[_0x11a30e('0x273e')])return _0x53e73e['userProfileResource'][_0x11a30e('0x1d97')]({'sectionId':_0x58af04['id']})[_0x11a30e('0x1964')][_0x11a30e('0x173b')](function(_0x226f04){const _0x108ea4=_0x11a30e,_0x38c426=_0x3c8d8a()['map'](_0x226f04[_0x108ea4('0x6aa')],function(_0x417a6c){const _0xd91fb1=_0x108ea4;return _0x3c8d8a()[_0xd91fb1('0x18ab')](_0x873356[_0xd91fb1('0x2715')],{'id':_0x417a6c[_0xd91fb1('0x1ce0')]});});let _0x454ae8=null;_0x873356['system']&&(_0x454ae8=_0x3c8d8a()[_0x108ea4('0x18ab')](_0x873356['variables'],{'name':_0x873356['system'][_0x108ea4('0x1b56')]}));if(_0x454ae8&&!_0x3c8d8a()[_0x108ea4('0x1ec')](_0x38c426,['id',_0x454ae8['id']])){const _0x12f39b=_0x3c8d8a()[_0x108ea4('0x18ab')](_0x873356[_0x108ea4('0x2715')],{'id':_0x454ae8['id']});_0x12f39b[_0x108ea4('0x268e')]=![],_0x38c426['push'](_0x12f39b);}_0x873356[_0x108ea4('0x2715')]=_0x38c426;});}})['catch'](function(_0x2aa357){const _0x419ce6=_0xad895c;_0x1f0fc2[_0x419ce6('0x15aa')]({'title':_0x2aa357[_0x419ce6('0x276f')]?'API:'+_0x2aa357[_0x419ce6('0x276f')]+_0x419ce6('0x160c')+_0x2aa357[_0x419ce6('0x2696')]:'SYSTEM:GETvariables','msg':_0x2aa357[_0x419ce6('0x1e07')]?JSON[_0x419ce6('0x100b')](_0x2aa357['data']):_0x2aa357['toString']()});});function _0x4ca9cf(){const _0x560805=_0xad895c;_0x873356['errors']=[];const _0x20a67=[];_0x873356[_0x560805('0x1ed')][_0x560805('0x1810')]&&_0x873356[_0x560805('0x1ed')][_0x560805('0x1810')]['toLowerCase']()===_0x560805('0xb33')&&_0x873356['system'][_0x560805('0x9d7')]===_0x560805('0x2150')&&(_0x873356[_0x560805('0x1ed')]['phone']=_0x2abd87[_0x560805('0x1429')]?(_0x873356[_0x560805('0x1ed')]['prefix']||'')+'${EXTEN:'+_0x2abd87[_0x560805('0x1429')]+'}':(_0x873356[_0x560805('0x1ed')]['prefix']||'')+_0x560805('0x1dc5'),_0x2abd87[_0x560805('0x76c')]!==_0x560805('0x2741')?_0x873356[_0x560805('0x1ed')]['options'][_0x560805('0x2087')](_0x560805('0x2474'))<0x0&&(_0x873356['system'][_0x560805('0x2010')]+=_0x560805('0x2474')):_0x873356[_0x560805('0x1ed')][_0x560805('0x2010')]=_0x873356[_0x560805('0x1ed')][_0x560805('0x2010')][_0x560805('0x166c')](_0x560805('0x2474'),''));if(_0x873356[_0x560805('0x1ed')][_0x560805('0x9d7')]&&_0x873356[_0x560805('0x1ed')]['appType']==='custom'){}else switch((_0x873356[_0x560805('0x1ed')][_0x560805('0x17e')]||_0x873356[_0x560805('0x1ed')][_0x560805('0x9d7')])[_0x560805('0x1e68')]()){case'set':_0x873356[_0x560805('0x1ed')][_0x560805('0x1c00')]=_0x873356[_0x560805('0x1ed')][_0x560805('0x10ad')]+'='+_0x873356[_0x560805('0x1ed')][_0x560805('0xa7b')];break;case _0x560805('0xbb4'):break;default:_0x20a67[0x0]=_0x873356[_0x560805('0x1ed')][_0x560805('0xdc4')],_0x20a67[0x1]=_0x873356[_0x560805('0x1ed')][_0x560805('0x1b56')],_0x873356[_0x560805('0x1ed')][_0x560805('0x1c00')]=_0x20a67[_0x560805('0x2259')](',');}_0x2f02fd(_0x873356[_0x560805('0x1ed')]);}function _0x2f02fd(_0x1c9fc2){const _0x1fc710=_0xad895c;_0x290ef6[_0x1fc710('0x1cf4')](_0x1c9fc2);}}const _0x57f876=_0xa55b46;_0x7ffad9[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x23a5'),'faxAccount',_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x7ffad9(_0x57a98f,_0xa80d7d,_0x3fdbab,_0x344682,_0x567e2d,_0x3572b0,_0x31dafc,_0x35370a){const _0x3fae1e=_0x566993,_0x1c3dc4=this;_0x1c3dc4['currentUser']=_0x31dafc['getCurrentUser'](),_0x1c3dc4[_0x3fae1e('0x1d4a')]=[],_0x1c3dc4['title']=_0x3fae1e('0x14de')+(_0x344682[_0x3fae1e('0x9d7')]||_0x344682['app'])[_0x3fae1e('0x1164')](),_0x1c3dc4[_0x3fae1e('0x23b4')]=angular[_0x3fae1e('0x2e3')](_0x344682),_0x1c3dc4[_0x3fae1e('0x1dc1')]=_0x35370a,_0x1c3dc4[_0x3fae1e('0xb0')]={};if(_0x1c3dc4[_0x3fae1e('0x23b4')]['appdata'])switch(_0x1c3dc4['tag']['appType']?_0x1c3dc4[_0x3fae1e('0x23b4')]['appType']['toLowerCase']():_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x17e')][_0x3fae1e('0x1e68')]()){case _0x3fae1e('0xbb4'):break;case'dialogflow':{const _0x403542=_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1c00')][_0x3fae1e('0x43a')](',');_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x237a')]=_0x403542[0x0],_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x604')]=_0x403542[0x1],_0x1c3dc4[_0x3fae1e('0x23b4')]['welcomemessage']=_0x403542[_0x3fae1e('0x2456')](0x2,_0x403542[_0x3fae1e('0x543')])[_0x3fae1e('0x2259')](',');}break;case _0x3fae1e('0x1680'):{const _0x3b800d=_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1c00')][_0x3fae1e('0x43a')](',');_0x1c3dc4[_0x3fae1e('0x23b4')]['accesskeyid']=_0x3b800d[0x0],_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1d93')]=_0x3b800d[0x1],_0x1c3dc4[_0x3fae1e('0x23b4')]['lexregion']=_0x3b800d[0x2],_0x1c3dc4[_0x3fae1e('0x23b4')]['botname']=_0x3b800d[0x3],_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1a7')]=_0x3b800d[_0x3fae1e('0x2456')](0x4,_0x3b800d[_0x3fae1e('0x543')])['join'](',');}break;case _0x3fae1e('0x23fe'):{const _0x3d5239=_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1c00')]['split'](',');_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x611')]=isNaN(_0x3d5239[0x0])?_0x3d5239[0x0]:parseInt(_0x3d5239[0x0],0xa),_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x86e')]=_0x3d5239[_0x3fae1e('0x2456')](0x1,_0x3d5239[_0x3fae1e('0x543')])[_0x3fae1e('0x2259')](',');}break;case _0x3fae1e('0x67f'):_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x86e')]=_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1c00')];break;case _0x3fae1e('0x256d'):_0x1c3dc4[_0x3fae1e('0x23b4')]['name']=_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1c00')]['split']('=')[0x0],_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0xa7b')]=_0x1c3dc4['tag'][_0x3fae1e('0x1c00')][_0x3fae1e('0x43a')]('=')[0x1];break;case'agi':_0x1c3dc4['tag']['project']=_0x1c3dc4['tag'][_0x3fae1e('0x1c00')];break;default:{const _0x26204e=_0x1c3dc4['tag'][_0x3fae1e('0x1c00')][_0x3fae1e('0x43a')](',');_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x23b4')]=_0x3c8d8a()['isEmpty'](_0x26204e[0x0])?_0x26204e[0x0]:isNaN(_0x26204e[0x0])?_0x26204e[0x0]:parseInt(_0x26204e[0x0],0xa);}break;}else{}_0x1c3dc4[_0x3fae1e('0x23b4')]['type']&&_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1810')]['toLowerCase']()==='outbound'&&_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x9d7')][_0x3fae1e('0x1e68')]()===_0x3fae1e('0x1edc')&&(_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x23f7')]=_0x1c3dc4[_0x3fae1e('0x23b4')]['phone']?_0x1c3dc4['tag'][_0x3fae1e('0xa04')][_0x3fae1e('0x43a')]('$')[0x0]:undefined,_0x1c3dc4[_0x3fae1e('0x23b4')][_0x3fae1e('0x1961')]=_0x1c3dc4['tag'][_0x3fae1e('0xe95')]?_0x3fae1e('0x20a8')+_0x1c3dc4[_0x3fae1e('0x23b4')]['callerID']:undefined);_0x1c3dc4['saveFaxAccountApp']=_0x3d28d8,_0x1c3dc4['closeDialog']=_0x43fe22,_0x31dafc['hasRole'](_0x3fae1e('0x79b'))?_0x3572b0[_0x3fae1e('0x23b4')][_0x3fae1e('0x1d97')]({'fields':_0x3fae1e('0xd52'),'sort':_0x3fae1e('0x10ad'),'nolimit':_0x3fae1e('0x799')})['$promise'][_0x3fae1e('0x173b')](function(_0x225491){const _0x2d2431=_0x3fae1e;_0x1c3dc4['tags']=_0x225491[_0x2d2431('0x6aa')]||[];})[_0x3fae1e('0x103c')](function(_0xbe2bf9){const _0x1c77d2=_0x3fae1e;_0x3fdbab[_0x1c77d2('0x15aa')]({'title':_0xbe2bf9[_0x1c77d2('0x276f')]?_0x1c77d2('0x137')+_0xbe2bf9['status']+'\x20-\x20'+_0xbe2bf9['statusText']:_0x1c77d2('0x1a9b'),'msg':_0xbe2bf9[_0x1c77d2('0x1e07')]?JSON[_0x1c77d2('0x100b')](_0xbe2bf9[_0x1c77d2('0x1e07')]):_0xbe2bf9['toString']()});}):_0x3572b0[_0x3fae1e('0x23b4')]['get']({'fields':_0x3fae1e('0xd52'),'sort':_0x3fae1e('0x10ad'),'nolimit':_0x3fae1e('0x799')})[_0x3fae1e('0x1964')][_0x3fae1e('0x173b')](function(_0x424f05){const _0x261628=_0x3fae1e;_0x1c3dc4[_0x261628('0x22ac')]=_0x424f05[_0x261628('0x6aa')]||[];})[_0x3fae1e('0x173b')](function(){const _0x953ed6=_0x3fae1e;return _0x3572b0[_0x953ed6('0x170e')][_0x953ed6('0x1d97')]({'userProfileId':_0x1c3dc4['currentUser'][_0x953ed6('0x1946')],'sectionId':0x3f0})[_0x953ed6('0x1964')];})[_0x3fae1e('0x173b')](function(_0xd567ac){const _0x2aed16=_0x3fae1e,_0x4d1c63=_0xd567ac&&_0xd567ac['rows']?_0xd567ac[_0x2aed16('0x6aa')][0x0]:null;if(!_0x4d1c63){const _0x400748=[];let _0x5cae42=null;_0x1c3dc4[_0x2aed16('0x23b4')]&&(_0x5cae42=_0x3c8d8a()[_0x2aed16('0x18ab')](_0x1c3dc4['tags'],{'name':_0x1c3dc4[_0x2aed16('0x23b4')][_0x2aed16('0x23b4')]}));for(let _0x6a6bff=0x0;_0x6a6bff<_0x1c3dc4[_0x2aed16('0x22ac')]['length'];_0x6a6bff++){_0x5cae42&&_0x1c3dc4[_0x2aed16('0x22ac')][_0x6a6bff]['id']===_0x5cae42['id']&&(_0x1c3dc4[_0x2aed16('0x22ac')][_0x6a6bff][_0x2aed16('0x268e')]=![],_0x400748[_0x2aed16('0x18bb')](_0x1c3dc4[_0x2aed16('0x22ac')][_0x6a6bff]));}_0x1c3dc4[_0x2aed16('0x22ac')]=_0x400748;}else{if(!_0x4d1c63[_0x2aed16('0x273e')])return _0x3572b0[_0x2aed16('0xda9')]['get']({'sectionId':_0x4d1c63['id']})[_0x2aed16('0x1964')]['then'](function(_0x44791f){const _0x4eedab=_0x2aed16,_0x5e4074=_0x3c8d8a()[_0x4eedab('0x8a2')](_0x44791f['rows'],function(_0x1c9e47){const _0x7c88cc=_0x4eedab;return _0x3c8d8a()['find'](_0x1c3dc4[_0x7c88cc('0x22ac')],{'id':_0x1c9e47[_0x7c88cc('0x1ce0')]});});let _0x3929ca=null;_0x1c3dc4['tag']&&(_0x3929ca=_0x3c8d8a()[_0x4eedab('0x18ab')](_0x1c3dc4[_0x4eedab('0x22ac')],{'name':_0x1c3dc4[_0x4eedab('0x23b4')][_0x4eedab('0x23b4')]}));if(_0x3929ca&&!_0x3c8d8a()[_0x4eedab('0x1ec')](_0x5e4074,['id',_0x3929ca['id']])){const _0x5b9ed4=_0x3c8d8a()['find'](_0x1c3dc4[_0x4eedab('0x22ac')],{'id':_0x3929ca['id']});_0x5b9ed4[_0x4eedab('0x268e')]=![],_0x5e4074['push'](_0x5b9ed4);}_0x1c3dc4[_0x4eedab('0x22ac')]=_0x5e4074;});}})['catch'](function(_0x9ec1a4){const _0x1a50b6=_0x3fae1e;_0x3fdbab[_0x1a50b6('0x15aa')]({'title':_0x9ec1a4[_0x1a50b6('0x276f')]?'API:'+_0x9ec1a4[_0x1a50b6('0x276f')]+_0x1a50b6('0x160c')+_0x9ec1a4['statusText']:_0x1a50b6('0x1cc0'),'msg':_0x9ec1a4[_0x1a50b6('0x1e07')]?JSON[_0x1a50b6('0x100b')](_0x9ec1a4[_0x1a50b6('0x1e07')]):_0x9ec1a4['toString']()});});function _0x3d28d8(){const _0x42fbc8=_0x3fae1e;_0x1c3dc4[_0x42fbc8('0x1d4a')]=[];const _0x572129=[];_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x1810')]&&_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x1810')][_0x42fbc8('0x1e68')]()===_0x42fbc8('0xb33')&&_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x9d7')]==='outboundDial'&&(_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0xa04')]=_0x567e2d[_0x42fbc8('0x1429')]?(_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x23f7')]||'')+_0x42fbc8('0x1957')+_0x567e2d['cutdigits']+'}':(_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x23f7')]||'')+_0x42fbc8('0x1dc5'),_0x567e2d[_0x42fbc8('0x76c')]!=='none'?_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x2010')]['indexOf'](_0x42fbc8('0x2474'))<0x0&&(_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x2010')]+=_0x42fbc8('0x2474')):_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x2010')]=_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x2010')][_0x42fbc8('0x166c')]('U(xcally-mixmonitor-context)',''));const _0x487708=_0x3c8d8a()[_0x42fbc8('0x18ab')](_0x1c3dc4[_0x42fbc8('0x22ac')],{'name':_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x23b4')]});_0x487708&&(_0x1c3dc4[_0x42fbc8('0x23b4')]['TagId']=_0x487708['id']);if(_0x1c3dc4['tag'][_0x42fbc8('0x9d7')]&&_0x1c3dc4[_0x42fbc8('0x23b4')]['appType']==='custom'){}else switch((_0x1c3dc4['tag'][_0x42fbc8('0x17e')]||_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x9d7')])[_0x42fbc8('0x1e68')]()){case'set':_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x1c00')]=_0x1c3dc4[_0x42fbc8('0x23b4')]['name']+'='+_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0xa7b')];break;case _0x42fbc8('0xbb4'):break;default:_0x572129[0x0]=_0x1c3dc4[_0x42fbc8('0x23b4')][_0x42fbc8('0x23b4')],_0x1c3dc4[_0x42fbc8('0x23b4')]['appdata']=_0x572129[_0x42fbc8('0x2259')](',');}_0x43fe22(_0x1c3dc4[_0x42fbc8('0x23b4')]);}function _0x43fe22(_0x47d522){const _0x3dd480=_0x3fae1e;_0x57a98f[_0x3dd480('0x1cf4')](_0x47d522);}}const _0x50b248=_0x7ffad9;_0xfa5f16['$inject']=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$timeout',_0x566993('0x638'),'api',_0x566993('0x1558'),_0x566993('0x1600')];function _0xfa5f16(_0x341e04,_0x2de0e4,_0x56e1ef,_0x383668,_0x36208e,_0x408ebd,_0x403ea4,_0x58a21b,_0x5dcc88,_0x5e39c2,_0x44520e){const _0x13d906=_0x566993,_0x4f10ab=this;_0x4f10ab['currentUser']=_0x44520e[_0x13d906('0x14d4')](),_0x4f10ab['dispositions']={'count':0x0,'rows':[]},_0x4f10ab['selectedDispositions']=[],_0x4f10ab[_0x13d906('0x1dc1')],_0x4f10ab[_0x13d906('0x1d14')]={'first':'1st','second':_0x13d906('0x1136'),'third':_0x13d906('0x1486')},_0x4f10ab[_0x13d906('0xc49')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x13d906('0x1769'),'limit':0xa,'page':0x1},_0x4f10ab[_0x13d906('0xb9c')]=_0x2e2c2f,_0x4f10ab[_0x13d906('0x2051')]=_0x12b19a,_0x4f10ab['success']=_0x278ad2,_0x4f10ab[_0x13d906('0x251d')]=_0x45e688,_0x4f10ab[_0x13d906('0xfb1')]=_0x54890e,_0x4f10ab[_0x13d906('0x1d5a')]=_0x48eead,_0x4f10ab['exportSelectedDispositions']=_0x2fb276,_0x4f10ab[_0x13d906('0x269b')]=_0x214492,_0x4f10ab[_0x13d906('0x2307')]=_0x4b9b63,_0x4f10ab[_0x13d906('0x17fe')]=_0x7309fe;function _0x2e2c2f(_0x374f5d,_0x3ff03a){const _0x214bb0=_0x13d906;_0x4f10ab['faxAccount']=_0x374f5d||{},_0x4f10ab['crudPermissions']=typeof _0x3ff03a!=='undefined'?_0x3ff03a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4f10ab['query'][_0x214bb0('0xcba')]=_0x4f10ab[_0x214bb0('0xe12')]['id'],_0x4f10ab[_0x214bb0('0xc49')]['id']=_0x4f10ab[_0x214bb0('0xe12')]['id'],_0x45e688();}function _0x54890e(_0x24326e,_0x3d2ccc){const _0x1af8d5=_0x13d906;_0x36208e['show']({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x1db9b3,'parent':angular[_0x1af8d5('0xb6d')](_0x408ebd['body']),'targetEvent':_0x24326e,'clickOutsideToClose':!![],'locals':{'disposition':_0x3d2ccc,'dispositions':_0x4f10ab['dispositions'][_0x1af8d5('0x6aa')],'model':{'id':_0x4f10ab[_0x1af8d5('0xe12')]['id'],'field':_0x1af8d5('0xcba')},'license':null,'setting':null,'crudPermissions':_0x4f10ab[_0x1af8d5('0x1dc1')]}})[_0x1af8d5('0x173b')](function(_0x141d1b){if(_0x141d1b)_0x45e688();});}function _0x12b19a(_0x50ab4b,_0x56e99a){const _0xb65618=_0x13d906,_0x373f59=_0x3c8d8a()[_0xb65618('0x1ec')](_0x4f10ab['dispositions'][_0xb65618('0x6aa')],[_0xb65618('0x2644'),_0x50ab4b['id']]),_0x1d0993=_0x36208e[_0xb65618('0x1d02')]()[_0xb65618('0x20d6')](_0x58a21b[_0xb65618('0x1467')](_0xb65618('0xf13')))[_0xb65618('0x732')](_0x58a21b[_0xb65618('0x1467')](_0xb65618('0x15d6')+(_0x373f59?_0xb65618('0x6f'):_0xb65618('0xee2')),{'name':_0x50ab4b[_0xb65618('0x10ad')]}))['ariaLabel'](_0xb65618('0x843'))[_0xb65618('0x21de')](_0x56e99a)['ok']('OK')[_0xb65618('0x1e1f')](_0x58a21b[_0xb65618('0x1467')](_0xb65618('0x2224')));_0x36208e[_0xb65618('0x1cb7')](_0x1d0993)[_0xb65618('0x173b')](function(){_0x48eead(_0x50ab4b);});}function _0x278ad2(_0x4a3793){const _0x1171ee=_0x13d906;_0x4f10ab[_0x1171ee('0x9c6')]=_0x4a3793||{'count':0x0,'rows':[]};}function _0x45e688(){const _0x448da3=_0x13d906;_0x4f10ab[_0x448da3('0xc49')][_0x448da3('0x17f0')]=(_0x4f10ab[_0x448da3('0xc49')][_0x448da3('0x182e')]-0x1)*_0x4f10ab[_0x448da3('0xc49')]['limit'],_0x4f10ab['promise']=_0x5dcc88['faxAccount'][_0x448da3('0x251d')](_0x4f10ab['query'],_0x278ad2)['$promise'];}function _0x48eead(_0x337b6){const _0x301b77=_0x13d906;_0x5dcc88[_0x301b77('0x2766')][_0x301b77('0x15e8')]({'id':_0x337b6['id']})[_0x301b77('0x1964')][_0x301b77('0x173b')](function(){const _0x177c63=_0x301b77;_0x45e688(),_0x5e39c2[_0x177c63('0xdfe')]({'title':_0x58a21b[_0x177c63('0x1467')](_0x177c63('0x34b'))});})['catch'](function(_0x41f076){const _0x497180=_0x301b77;if(_0x41f076['data']&&_0x41f076[_0x497180('0x1e07')][_0x497180('0x1d4a')]&&_0x41f076[_0x497180('0x1e07')][_0x497180('0x1d4a')][_0x497180('0x543')]){_0x4f10ab[_0x497180('0x1d4a')]=_0x41f076[_0x497180('0x1e07')][_0x497180('0x1d4a')]||[{'message':_0x41f076[_0x497180('0x1b75')](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x1b363a=0x0;_0x1b363a<_0x41f076[_0x497180('0x1e07')][_0x497180('0x1d4a')]['length'];_0x1b363a++){_0x5e39c2['error']({'title':_0x41f076[_0x497180('0x1e07')]['errors'][_0x1b363a][_0x497180('0x1810')],'msg':_0x41f076[_0x497180('0x1e07')][_0x497180('0x1d4a')][_0x1b363a][_0x497180('0x67f')]});}}else _0x5e39c2[_0x497180('0x15aa')]({'title':_0x41f076[_0x497180('0x276f')]?'API:'+_0x41f076[_0x497180('0x276f')]+_0x497180('0x160c')+_0x41f076['statusText']:'SYSTEM:DELETEdisposition','msg':_0x41f076[_0x497180('0x1e07')]?JSON[_0x497180('0x100b')](_0x41f076['data'][_0x497180('0x67f')]):_0x41f076['message']||_0x41f076['toString']()});});}function _0x2fb276(){const _0x43fbe6=_0x13d906,_0x4b2438=angular[_0x43fbe6('0x2e3')](_0x4f10ab[_0x43fbe6('0x451')]);return _0x4f10ab[_0x43fbe6('0x451')]=[],_0x4b2438;}function _0x214492(_0x4706bd){const _0x3b5af5=_0x13d906,_0x579001=_0x36208e[_0x3b5af5('0x1d02')]()[_0x3b5af5('0x20d6')](_0x58a21b['instant']('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x3b5af5('0x732')](_0x58a21b[_0x3b5af5('0x1467')](_0x3b5af5('0x25a'),{'total':_0x4f10ab['selectedDispositions'][_0x3b5af5('0x543')]}))[_0x3b5af5('0x217')](_0x3b5af5('0x6b8'))['targetEvent'](_0x4706bd)['ok']('OK')[_0x3b5af5('0x1e1f')](_0x58a21b[_0x3b5af5('0x1467')](_0x3b5af5('0x2224')));_0x36208e[_0x3b5af5('0x1cb7')](_0x579001)['then'](function(){const _0x4a5840=_0x3b5af5;_0x4f10ab[_0x4a5840('0x451')][_0x4a5840('0xa6a')](function(_0x23f72a){_0x48eead(_0x23f72a);}),_0x4f10ab[_0x4a5840('0x451')]=[];});}function _0x4b9b63(){const _0xd2304=_0x13d906;_0x4f10ab[_0xd2304('0x451')]=[];}function _0x7309fe(){const _0x539830=_0x13d906;_0x4f10ab[_0x539830('0x451')]=_0x4f10ab['dispositions'][_0x539830('0x6aa')];}let _0x43043b=!![],_0x48b298=0x1;_0x341e04[_0x13d906('0x1bdb')]('vm_dc.query.filter',function(_0x2840ce,_0x1d0223){const _0x2f96ac=_0x13d906;_0x43043b?_0x403ea4(function(){_0x43043b=![];}):(!_0x1d0223&&(_0x48b298=_0x4f10ab[_0x2f96ac('0xc49')][_0x2f96ac('0x182e')]),_0x2840ce!==_0x1d0223&&(_0x4f10ab[_0x2f96ac('0xc49')][_0x2f96ac('0x182e')]=0x1),!_0x2840ce&&(_0x4f10ab[_0x2f96ac('0xc49')]['page']=_0x48b298),_0x45e688());});}const _0x5a2e1f=_0xfa5f16;_0x16b2f7['$inject']=[_0x566993('0x2166'),_0x566993('0x66f'),'$state','$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$document',_0x566993('0x1558'),_0x566993('0xbd4'),'Auth'];function _0x16b2f7(_0x155115,_0x3e42ab,_0x2eb1e8,_0x2df44d,_0x57ba8c,_0x4cdb10,_0x55602f,_0x430790,_0x4d697e,_0x1f08c3,_0x2ca58e){const _0x23428a=_0x566993,_0x47c309=this;_0x47c309[_0x23428a('0x155f')]=_0x2ca58e[_0x23428a('0x14d4')](),_0x47c309[_0x23428a('0xe12')]={},_0x47c309[_0x23428a('0x2d4')]={'count':0x0,'rows':[]},_0x47c309[_0x23428a('0x1516')]=[],_0x47c309[_0x23428a('0x1dc1')],_0x47c309[_0x23428a('0xc49')]={'read':_0x23428a('0x877'),'closed':'null','sort':_0x23428a('0x1cad'),'includeAll':_0x23428a('0x799'),'limit':0xa,'page':0x1},_0x47c309['init']=_0x2f0abd,_0x47c309['deleteConfirm']=_0x112046,_0x47c309['faxInteractionDownload']=_0x1f88ad,_0x47c309[_0x23428a('0xdfe')]=_0x2731c4,_0x47c309[_0x23428a('0x20ea')]=_0x6836ac,_0x47c309[_0x23428a('0xb24')]=_0x3fedc4,_0x47c309[_0x23428a('0x6f1')]=_0x1b3bca,_0x47c309[_0x23428a('0x1982')]=_0x37c252,_0x47c309[_0x23428a('0x116d')]=_0x5d97b2,_0x47c309[_0x23428a('0x273b')]=_0x44aa9f;function _0x2f0abd(_0x56658a,_0x4b5ba0){const _0x48978f=_0x23428a;_0x47c309[_0x48978f('0xe12')]=_0x56658a,_0x47c309['crudPermissions']=typeof _0x4b5ba0!=='undefined'?_0x4b5ba0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x47c309[_0x48978f('0xc49')][_0x48978f('0xcba')]=_0x47c309[_0x48978f('0xe12')]['id'],_0x47c309[_0x48978f('0x2706')]={'fields':_0x39da7b()},_0x50f17b();}function _0x50f17b(){const _0x3a6ea3=_0x23428a;return _0x1f08c3[_0x3a6ea3('0x23b4')][_0x3a6ea3('0x1d97')]()[_0x3a6ea3('0x1964')][_0x3a6ea3('0x173b')](function(_0x5e81a9){const _0x515bd5=_0x3a6ea3;_0x47c309[_0x515bd5('0x22ac')]=_0x5e81a9||{'count':0x0,'rows':[]};})['then'](function(){const _0x5b8f55=_0x3a6ea3;_0x47c309[_0x5b8f55('0x485')]=_0x5dc8df();});}function _0x5dc8df(){const _0x3ea8dd=_0x23428a;return[{'name':_0x3ea8dd('0x1406'),'key':'createdAt','type':_0x3ea8dd('0x22b6'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x3ea8dd('0x2634'),'key':_0x3ea8dd('0x69b'),'type':_0x3ea8dd('0xc65'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':'DASHBOARDS.UNREAD'},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x3ea8dd('0xef8'),'key':_0x3ea8dd('0x1636'),'type':_0x3ea8dd('0xc65'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x3ea8dd('0x163c')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x3ea8dd('0x1547'),'key':'UserId','type':_0x3ea8dd('0xc65'),'label':_0x3ea8dd('0x956'),'customOptions':[{'value':_0x3ea8dd('0x877'),'translate':_0x3ea8dd('0x27a8')},{'value':undefined,'translate':_0x3ea8dd('0x47a')}]},{'name':_0x3ea8dd('0x460'),'key':_0x3ea8dd('0x23b4'),'type':_0x3ea8dd('0x1c68'),'label':_0x3ea8dd('0x1e6f'),'options':_0x47c309[_0x3ea8dd('0x22ac')][_0x3ea8dd('0x6aa')],'placeholder':_0x3ea8dd('0x96')}];}function _0x39da7b(){const _0x30ec7f=_0x23428a;return[{'name':'Id','column':'id','type':_0x30ec7f('0x1d81')},{'name':'Contact','column':_0x30ec7f('0x1f70'),'type':_0x30ec7f('0xe92'),'options':{'searchFields':[_0x30ec7f('0x1e50'),_0x30ec7f('0x1806'),_0x30ec7f('0x28e')],'route':{'model':_0x30ec7f('0x1197'),'action':_0x30ec7f('0x1d97'),'params':{'fields':_0x30ec7f('0x1cf0'),'Contact':_0x30ec7f('0xdd7'),'nolimit':!![]}},'extraOperators':[_0x30ec7f('0x2694')],'excludedOperators':[_0x30ec7f('0x10be')]}},{'name':_0x30ec7f('0x224f'),'column':_0x30ec7f('0x11bc'),'type':'text','options':{'excludedOperators':[_0x30ec7f('0xc0c'),_0x30ec7f('0x10be')]}},{'name':'Body','column':_0x30ec7f('0x1405'),'type':'text','options':{'excludedOperators':[_0x30ec7f('0xc0c'),'$ne']}},{'name':_0x30ec7f('0xef8'),'column':'closed','type':_0x30ec7f('0xc65'),'values':[{'id':0x0,'translate':_0x30ec7f('0x163c')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x30ec7f('0x10be')]}},{'name':_0x30ec7f('0x1547'),'column':_0x30ec7f('0x2265'),'type':_0x30ec7f('0xe92'),'options':{'table':'i','route':{'model':_0x30ec7f('0x166f'),'action':_0x30ec7f('0x1d97'),'params':{'role':_0x30ec7f('0x7b0'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x30ec7f('0x572'),_0x30ec7f('0x10ad')],'extraOperators':[_0x30ec7f('0x2694')],'excludedOperators':[_0x30ec7f('0x10be')]}},{'name':_0x30ec7f('0xc38'),'column':_0x30ec7f('0x460'),'type':_0x30ec7f('0x1c68'),'options':{'route':{'model':_0x30ec7f('0x23b4'),'action':_0x30ec7f('0x1d97'),'params':{'nolimit':!![]}},'excludedOperators':[_0x30ec7f('0x2232')]}},{'name':_0x30ec7f('0x1406'),'column':'createdAt','type':_0x30ec7f('0x22b6'),'options':{'excludedOperators':['$ne']}},{'name':_0x30ec7f('0x247a'),'column':_0x30ec7f('0x25e9'),'type':'select','values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x30ec7f('0x1015')}],'options':{'excludedOperators':[_0x30ec7f('0x10be')]}}];}function _0x1b3bca(){const _0x4b4525=_0x23428a;_0x55602f['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x4b4525('0xb6d')](_0x430790[_0x4b4525('0x1a5')]),'clickOutsideToClose':![],'locals':{'fields':_0x47c309[_0x4b4525('0x2706')][_0x4b4525('0x2340')],'color':undefined,'storagePath':_0x4b4525('0x13fd')},'fullscreen':!![]})[_0x4b4525('0x173b')](function(_0x4f233d){const _0x4f635f=_0x4b4525;_0x47c309[_0x4f635f('0xc49')][_0x4f635f('0x23e7')]=_0x4f233d===![]?undefined:_0x4f233d;if(_0x47c309['query'][_0x4f635f('0x23e7')])_0x6836ac();else _0x4f233d===![]&&_0x6836ac();})[_0x4b4525('0x103c')](function(_0x1be9a3){const _0x3911d8=_0x4b4525;_0x4d697e[_0x3911d8('0x15aa')]({'title':_0x3911d8('0x280c'),'msg':_0x1be9a3[_0x3911d8('0x1e07')]?JSON[_0x3911d8('0x100b')](_0x1be9a3['data'][_0x3911d8('0x67f')]):_0x1be9a3[_0x3911d8('0x1b75')]()});});}function _0x1f88ad(_0x2bcb50,_0x596523,_0x4d89ce){const _0x506108=_0x23428a;return _0x1f08c3[_0x506108('0x2601')][_0x506108('0xfce')]({'id':_0x2bcb50['id'],'exists':!![],'attachments':_0x4d89ce})['$promise'][_0x506108('0x173b')](function(_0x2f8a84){const _0x593133=_0x506108,_0x4b250c=[_0x2f8a84['buffer']];let _0x337b9e=_0x593133('0x8d6')+_0x2bcb50['id'];const _0x964d8d=new Blob(_0x4b250c,{'type':_0x2f8a84[_0x593133('0x1810')]});_0x337b9e=_0x593133('0xcd2')+_0x2bcb50['id']+_0x593133('0x1421');const _0x3aae91=window[_0x593133('0x222a')]['createElement']('a');_0x3aae91['setAttribute']('href',URL[_0x593133('0x1466')](_0x964d8d)),_0x3aae91[_0x593133('0x11c3')](_0x593133('0xfce'),_0x337b9e),document['body'][_0x593133('0x1f8d')](_0x3aae91),_0x3aae91[_0x593133('0x3cb')]();})[_0x506108('0x103c')](function(_0x50cd1e){const _0x2a2be2=_0x506108;if(_0x50cd1e['data']&&_0x50cd1e[_0x2a2be2('0x1e07')]['errors']&&_0x50cd1e[_0x2a2be2('0x1e07')][_0x2a2be2('0x1d4a')]['length'])for(let _0x1151ec=0x0;_0x1151ec<_0x50cd1e[_0x2a2be2('0x1e07')]['errors'][_0x2a2be2('0x543')];_0x1151ec+=0x1){_0x4d697e['error']({'title':_0x50cd1e[_0x2a2be2('0x1e07')][_0x2a2be2('0x1d4a')][_0x1151ec][_0x2a2be2('0x1810')],'msg':_0x50cd1e[_0x2a2be2('0x1e07')]['errors'][_0x1151ec][_0x2a2be2('0x67f')]});}else _0x4d697e[_0x2a2be2('0x15aa')]({'title':_0x50cd1e[_0x2a2be2('0x276f')]?'API:'+_0x50cd1e[_0x2a2be2('0x276f')]+_0x2a2be2('0x160c')+_0x50cd1e[_0x2a2be2('0x2696')]:_0x2a2be2('0x2611'),'msg':_0x50cd1e['data']?JSON[_0x2a2be2('0x100b')](_0x50cd1e[_0x2a2be2('0x1e07')][_0x2a2be2('0x67f')]):_0x50cd1e['toString']()});});}function _0x112046(_0xe5b67d,_0x515c6b){const _0x3cf369=_0x23428a,_0x2b1ceb=_0x55602f[_0x3cf369('0x1d02')]()['title'](_0x3cf369('0x1169'))[_0x3cf369('0xf8b')](''+(_0xe5b67d[_0x3cf369('0x10ad')]||_0xe5b67d['id']&&_0x3c8d8a()[_0x3cf369('0x5ba')](_0x3cf369('0x1523'))+_0xe5b67d['id']||_0x3cf369('0x8d6'))+_0x3cf369('0x24be')+_0x3cf369('0xd23'))['ariaLabel'](_0x3cf369('0x10bd'))['targetEvent'](_0x515c6b)['ok']('OK')[_0x3cf369('0x1e1f')]('CANCEL');_0x55602f[_0x3cf369('0x1cb7')](_0x2b1ceb)['then'](function(){_0x5d97b2(_0xe5b67d);},function(){const _0x298076=_0x3cf369;console['log'](_0x298076('0x468'));});}function _0x2731c4(_0x275fa7){const _0x2a4474=_0x23428a;_0x47c309['faxAccountInteractions']=_0x275fa7||{'count':0x0,'rows':[]};for(let _0x3df4a5=0x0;_0x3df4a5<_0x47c309['faxAccountInteractions'][_0x2a4474('0x6aa')][_0x2a4474('0x543')];_0x3df4a5+=0x1){const _0x387b31=_0x47c309[_0x2a4474('0x2d4')][_0x2a4474('0x6aa')][_0x3df4a5];_0x1bded2(_0x387b31),_0x387b31[_0x2a4474('0x274f')]['name']=_0x3365b1(_0x387b31);}}function _0x6836ac(){const _0x2d5c37=_0x23428a;_0x47c309[_0x2d5c37('0xc49')][_0x2d5c37('0x17f0')]=(_0x47c309[_0x2d5c37('0xc49')][_0x2d5c37('0x182e')]-0x1)*_0x47c309[_0x2d5c37('0xc49')][_0x2d5c37('0x3e')],_0x47c309[_0x2d5c37('0x2219')]=_0x1f08c3[_0x2d5c37('0x2601')][_0x2d5c37('0x1d97')](_0x47c309[_0x2d5c37('0xc49')],_0x2731c4)[_0x2d5c37('0x1964')];}function _0x3fedc4(_0x325a47,_0x2309b5){const _0x1c2586=_0x23428a;_0x55602f[_0x1c2586('0x1cb7')]({'controller':_0x1c2586('0x58c'),'controllerAs':'vm','templateUrl':_0x4717ab,'parent':angular[_0x1c2586('0xb6d')](_0x430790[_0x1c2586('0x1a5')]),'targetEvent':_0x325a47,'clickOutsideToClose':!![],'onShowing':function(_0x584076){const _0x5a12f2=_0x1c2586;_0x584076['vm']['init']({'id':0x1,'channel':_0x5a12f2('0x16d'),'interaction':_0x2309b5,'spy':!![]},_0x3e42ab[_0x5a12f2('0x1d44')]['vm'][_0x5a12f2('0x251')]);}});}function _0x5d97b2(_0x59383f){const _0x537d33=_0x23428a;_0x1f08c3[_0x537d33('0x2601')][_0x537d33('0x15e8')]({'id':_0x59383f['id']})['$promise'][_0x537d33('0x173b')](function(){const _0x2af32c=_0x537d33;_0x3c8d8a()[_0x2af32c('0x1a8b')](_0x47c309[_0x2af32c('0x2d4')]['rows'],{'id':_0x59383f['id']}),_0x47c309[_0x2af32c('0x2d4')][_0x2af32c('0x1a2f')]-=0x1,!_0x47c309[_0x2af32c('0x2d4')][_0x2af32c('0x6aa')][_0x2af32c('0x543')]&&_0x6836ac(),_0x4d697e[_0x2af32c('0xdfe')]({'title':'Interaction\x20deleted!','msg':_0x59383f[_0x2af32c('0x10ad')]?_0x59383f[_0x2af32c('0x10ad')]+_0x2af32c('0x25d2'):''});})[_0x537d33('0x103c')](function(_0x4e07fe){const _0x5e50ae=_0x537d33;if(_0x4e07fe[_0x5e50ae('0x1e07')]&&_0x4e07fe[_0x5e50ae('0x1e07')][_0x5e50ae('0x1d4a')]&&_0x4e07fe[_0x5e50ae('0x1e07')][_0x5e50ae('0x1d4a')][_0x5e50ae('0x543')]){_0x47c309['errors']=_0x4e07fe['data']['errors']||[{'message':_0x4e07fe['toString'](),'type':_0x5e50ae('0x1f3f')}];for(let _0x683b23=0x0;_0x683b23<_0x4e07fe[_0x5e50ae('0x1e07')][_0x5e50ae('0x1d4a')][_0x5e50ae('0x543')];_0x683b23++){_0x4d697e['error']({'title':_0x4e07fe[_0x5e50ae('0x1e07')]['errors'][_0x683b23][_0x5e50ae('0x1810')],'msg':_0x4e07fe[_0x5e50ae('0x1e07')][_0x5e50ae('0x1d4a')][_0x683b23][_0x5e50ae('0x67f')]});}}else _0x4d697e[_0x5e50ae('0x15aa')]({'title':_0x4e07fe['status']?'API:'+_0x4e07fe[_0x5e50ae('0x276f')]+_0x5e50ae('0x160c')+_0x4e07fe[_0x5e50ae('0x2696')]:_0x5e50ae('0x1f3f'),'msg':_0x4e07fe[_0x5e50ae('0x1e07')]?JSON[_0x5e50ae('0x100b')](_0x4e07fe[_0x5e50ae('0x1e07')]['message']):_0x4e07fe[_0x5e50ae('0x67f')]||_0x4e07fe[_0x5e50ae('0x1b75')]()});});}function _0x37c252(){const _0x48e83f=_0x23428a,_0x2150c0=angular[_0x48e83f('0x2e3')](_0x47c309['selectedFaxAccountInteractions']);return _0x47c309[_0x48e83f('0x1516')]=[],_0x2150c0;}function _0x44aa9f(_0x397e0e){const _0x107099=_0x23428a,_0x15662b=_0x55602f[_0x107099('0x1d02')]()['title'](_0x107099('0x568'))[_0x107099('0xf8b')](''+_0x47c309[_0x107099('0x1516')][_0x107099('0x543')]+_0x107099('0xcb4')+_0x107099('0xd23'))[_0x107099('0x217')](_0x107099('0x19'))['targetEvent'](_0x397e0e)['ok']('OK')[_0x107099('0x1e1f')](_0x107099('0x468'));_0x55602f[_0x107099('0x1cb7')](_0x15662b)[_0x107099('0x173b')](function(){const _0x5add4a=_0x107099;_0x47c309[_0x5add4a('0x1516')][_0x5add4a('0xa6a')](function(_0x3b3d90){_0x5d97b2(_0x3b3d90);}),_0x47c309['selectedFaxAccountInteractions']=[];});}function _0x1bded2(_0x5b27c4){const _0x2f45f5=_0x23428a;_0x5b27c4[_0x2f45f5('0x1f70')]?(_0x5b27c4['contactName']=(_0x5b27c4[_0x2f45f5('0x1f70')]['firstName']||'')+'\x20'+(_0x5b27c4[_0x2f45f5('0x1f70')][_0x2f45f5('0x1806')]||''),_0x5b27c4[_0x2f45f5('0x2521')]=_0x5b27c4[_0x2f45f5('0x1f70')][_0x2f45f5('0x16d')]):_0x5b27c4[_0x2f45f5('0x98d')]=_0x57ba8c['instant'](_0x2f45f5('0x172b'));}function _0x3365b1(_0x1df0eb){const _0x1a50c3=_0x23428a;if(_0x1df0eb[_0x1a50c3('0x181c')])return _0x1df0eb[_0x1a50c3('0x181c')]===_0x47c309[_0x1a50c3('0x155f')]['id']?_0x57ba8c[_0x1a50c3('0x1467')]('DASHBOARDS.ME'):_0x1df0eb['Owner'][_0x1a50c3('0x572')]+'\x20<'+_0x1df0eb[_0x1a50c3('0x274f')][_0x1a50c3('0x138c')]+'>';return _0x57ba8c[_0x1a50c3('0x1467')]('DASHBOARDS.NOT_ASSIGNED');}let _0x2c6741=!![],_0x210cf7=0x1;_0x3e42ab['$watch'](_0x23428a('0x5b8'),function(_0xa3e73d,_0xb44df2){const _0x1e4783=_0x23428a;_0x2c6741?_0x4cdb10(function(){_0x2c6741=![];}):(!_0xb44df2&&(_0x210cf7=_0x47c309[_0x1e4783('0xc49')][_0x1e4783('0x182e')]),_0xa3e73d!==_0xb44df2&&(_0x47c309[_0x1e4783('0xc49')][_0x1e4783('0x182e')]=0x1),!_0xa3e73d&&(_0x47c309[_0x1e4783('0xc49')][_0x1e4783('0x182e')]=_0x210cf7),_0x6836ac());});}const _0x53c7a7=_0x16b2f7,_0x23859e=_0x21a6a1['p']+_0x566993('0x4d8');_0x4021f9[_0x566993('0x17bb')]=[_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),_0x566993('0x1b82'),'$translate',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0xe12'),_0x566993('0x170e')];function _0x4021f9(_0x55860a,_0x2fd0b9,_0x2ca515,_0x39871c,_0x35bc35,_0xf82035,_0x558184,_0x2930c7,_0x1ac335,_0x80679,_0x111ab6,_0x44a2f1){const _0x1e7d0f=_0x566993,_0x3596a9=this;_0x3596a9['currentUser']=_0x80679[_0x1e7d0f('0x14d4')](),_0x3596a9[_0x1e7d0f('0x1a29')]=_0xf82035,_0x3596a9[_0x1e7d0f('0x251')]=_0x558184,_0x3596a9[_0x1e7d0f('0x644')]=_0x3596a9[_0x1e7d0f('0x251')][_0x1e7d0f('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3596a9[_0x1e7d0f('0x614')]=_0x2fd0b9['protocol']()+_0x1e7d0f('0x122b')+_0x2fd0b9[_0x1e7d0f('0x4d1')](),_0x3596a9[_0x1e7d0f('0xe12')]=_0x111ab6||_0x55860a[_0x1e7d0f('0x197a')][_0x1e7d0f('0xe12')]||{},_0x3596a9['userProfileSection']=_0x44a2f1&&_0x44a2f1[_0x1e7d0f('0x1a2f')]==0x1?_0x44a2f1[_0x1e7d0f('0x6aa')][0x0]:null,_0x3596a9[_0x1e7d0f('0x1dc1')]=_0x80679[_0x1e7d0f('0xde6')](_0x3596a9[_0x1e7d0f('0x170e')]?_0x3596a9['userProfileSection'][_0x1e7d0f('0x1dc1')]:null),_0x3596a9[_0x1e7d0f('0xb0')]={},_0x3596a9[_0x1e7d0f('0xd5f')]=_0x55860a[_0x1e7d0f('0x197a')][_0x1e7d0f('0x1e66')]||0x0,_0x3596a9[_0x1e7d0f('0xa47')]=_0x591f7c,_0x3596a9[_0x1e7d0f('0x2118')]=_0x369e45,_0x3596a9[_0x1e7d0f('0x5a4')]=_0x1ac335[_0x1e7d0f('0x2787')],_0x3596a9[_0x1e7d0f('0x1f01')]=_0xe48d49,_0x3596a9['saveFaxAccount']=_0x2062d0,_0x80679[_0x1e7d0f('0x1b4e')](_0x1e7d0f('0x79b'))?_0x2930c7[_0x1e7d0f('0x15b7')][_0x1e7d0f('0x1d97')]({'fields':'id,name','sort':_0x1e7d0f('0x10ad')})[_0x1e7d0f('0x1964')][_0x1e7d0f('0x173b')](function(_0x56043a){const _0x98cc31=_0x1e7d0f;_0x3596a9[_0x98cc31('0x673')]=_0x56043a[_0x98cc31('0x6aa')]||[];})['catch'](function(_0x24b567){const _0x33a38a=_0x1e7d0f;_0x1ac335[_0x33a38a('0x15aa')]({'title':_0x24b567[_0x33a38a('0x276f')]?_0x33a38a('0x137')+_0x24b567[_0x33a38a('0x276f')]+_0x33a38a('0x160c')+_0x24b567[_0x33a38a('0x2696')]:_0x33a38a('0xbd8'),'msg':_0x24b567['data']?JSON[_0x33a38a('0x100b')](_0x24b567[_0x33a38a('0x1e07')]):_0x24b567['toString']()});}):_0x2930c7[_0x1e7d0f('0x15b7')][_0x1e7d0f('0x1d97')]({'fields':'id,name','sort':'name'})[_0x1e7d0f('0x1964')][_0x1e7d0f('0x173b')](function(_0x4a919c){const _0x541b88=_0x1e7d0f;_0x3596a9[_0x541b88('0x673')]=_0x4a919c['rows']||[];})['then'](function(){const _0x2e336e=_0x1e7d0f;return _0x2930c7['userProfileSection'][_0x2e336e('0x1d97')]({'userProfileId':_0x3596a9[_0x2e336e('0x155f')]['userProfileId'],'sectionId':0x3f3})['$promise'];})[_0x1e7d0f('0x173b')](function(_0x4d3335){const _0x13a3fa=_0x1e7d0f,_0x1cc9a7=_0x4d3335&&_0x4d3335[_0x13a3fa('0x6aa')]?_0x4d3335[_0x13a3fa('0x6aa')][0x0]:null;if(!_0x1cc9a7){const _0x458244=[];let _0x50ec32=null;_0x3596a9[_0x13a3fa('0xe12')]&&(_0x50ec32=_0x3c8d8a()[_0x13a3fa('0x18ab')](_0x3596a9[_0x13a3fa('0x673')],{'id':Number(_0x3596a9['faxAccount']['TrunkId'])}));for(let _0x53e420=0x0;_0x53e420<_0x3596a9[_0x13a3fa('0x673')][_0x13a3fa('0x543')];_0x53e420++){_0x50ec32&&_0x3596a9[_0x13a3fa('0x673')][_0x53e420]['id']===_0x50ec32['id']&&(_0x3596a9[_0x13a3fa('0x673')][_0x53e420][_0x13a3fa('0x268e')]=![],_0x458244[_0x13a3fa('0x18bb')](_0x3596a9['trunks'][_0x53e420]));}_0x3596a9[_0x13a3fa('0x673')]=_0x458244;}else{if(!_0x1cc9a7[_0x13a3fa('0x273e')])return _0x2930c7[_0x13a3fa('0xda9')][_0x13a3fa('0x1d97')]({'sectionId':_0x1cc9a7['id']})[_0x13a3fa('0x1964')]['then'](function(_0x5c91d0){const _0x53f0ca=_0x13a3fa,_0x456397=_0x3c8d8a()[_0x53f0ca('0x8a2')](_0x5c91d0[_0x53f0ca('0x6aa')],function(_0x32eb3c){const _0x5d53f4=_0x53f0ca;return _0x3c8d8a()[_0x5d53f4('0x18ab')](_0x3596a9['trunks'],{'id':_0x32eb3c[_0x5d53f4('0x1ce0')]});});let _0x3e91b2=null;_0x3596a9['faxAccount']&&(_0x3e91b2=_0x3c8d8a()[_0x53f0ca('0x18ab')](_0x3596a9[_0x53f0ca('0x673')],{'id':Number(_0x3596a9[_0x53f0ca('0xe12')][_0x53f0ca('0xdad')])}));if(_0x3e91b2&&!_0x3c8d8a()[_0x53f0ca('0x1ec')](_0x456397,['id',_0x3e91b2['id']])){const _0x4b880c=_0x3c8d8a()[_0x53f0ca('0x18ab')](_0x3596a9[_0x53f0ca('0x673')],{'id':_0x3e91b2['id']});_0x4b880c[_0x53f0ca('0x268e')]=![],_0x456397[_0x53f0ca('0x18bb')](_0x4b880c);}_0x3596a9[_0x53f0ca('0x673')]=_0x456397;});}})[_0x1e7d0f('0x103c')](function(_0x3f22f7){const _0x3b7c2a=_0x1e7d0f;_0x1ac335[_0x3b7c2a('0x15aa')]({'title':_0x3f22f7[_0x3b7c2a('0x276f')]?'API:'+_0x3f22f7['status']+_0x3b7c2a('0x160c')+_0x3f22f7['statusText']:_0x3b7c2a('0x21ed'),'msg':_0x3f22f7[_0x3b7c2a('0x1e07')]?JSON[_0x3b7c2a('0x100b')](_0x3f22f7[_0x3b7c2a('0x1e07')]):_0x3f22f7['toString']()});}),_0x80679['hasRole'](_0x1e7d0f('0x79b'))?_0x2930c7['cmList'][_0x1e7d0f('0x1d97')]({'fields':'id,name','sort':_0x1e7d0f('0x10ad')})[_0x1e7d0f('0x1964')][_0x1e7d0f('0x173b')](function(_0x930e53){const _0x146510=_0x1e7d0f;_0x3596a9[_0x146510('0x9e8')]=_0x930e53[_0x146510('0x6aa')]||[];})[_0x1e7d0f('0x103c')](function(_0x267e58){const _0x3f0a5c=_0x1e7d0f;_0x1ac335['error']({'title':_0x267e58['status']?_0x3f0a5c('0x137')+_0x267e58[_0x3f0a5c('0x276f')]+'\x20-\x20'+_0x267e58[_0x3f0a5c('0x2696')]:_0x3f0a5c('0x1d5c'),'msg':_0x267e58[_0x3f0a5c('0x1e07')]?JSON['stringify'](_0x267e58['data']):_0x267e58['toString']()});}):_0x2930c7['cmList'][_0x1e7d0f('0x1d97')]({'fields':'id,name','sort':_0x1e7d0f('0x10ad')})[_0x1e7d0f('0x1964')]['then'](function(_0x3bc7ce){const _0x232c37=_0x1e7d0f;_0x3596a9[_0x232c37('0x9e8')]=_0x3bc7ce[_0x232c37('0x6aa')]||[];})[_0x1e7d0f('0x173b')](function(){const _0xca94dc=_0x1e7d0f;return _0x2930c7[_0xca94dc('0x170e')][_0xca94dc('0x1d97')]({'userProfileId':_0x3596a9[_0xca94dc('0x155f')][_0xca94dc('0x1946')],'sectionId':0x12d})['$promise'];})[_0x1e7d0f('0x173b')](function(_0x3cc3ea){const _0x32ac04=_0x1e7d0f,_0x1b0e2c=_0x3cc3ea&&_0x3cc3ea[_0x32ac04('0x6aa')]?_0x3cc3ea[_0x32ac04('0x6aa')][0x0]:null;if(!_0x1b0e2c){const _0x1345ab=[];let _0x2157a5=null;_0x3596a9['faxAccount']&&(_0x2157a5=_0x3c8d8a()['find'](_0x3596a9['lists'],{'id':Number(_0x3596a9[_0x32ac04('0xe12')]['ListId'])}));for(let _0x28540e=0x0;_0x28540e<_0x3596a9[_0x32ac04('0x9e8')][_0x32ac04('0x543')];_0x28540e++){_0x2157a5&&_0x3596a9[_0x32ac04('0x9e8')][_0x28540e]['id']===_0x2157a5['id']&&(_0x3596a9['lists'][_0x28540e]['canSelect']=![],_0x1345ab[_0x32ac04('0x18bb')](_0x3596a9['lists'][_0x28540e]));}_0x3596a9[_0x32ac04('0x9e8')]=_0x1345ab;}else{if(!_0x1b0e2c[_0x32ac04('0x273e')])return _0x2930c7[_0x32ac04('0xda9')][_0x32ac04('0x1d97')]({'sectionId':_0x1b0e2c['id']})[_0x32ac04('0x1964')]['then'](function(_0x11f5c3){const _0x5d6de5=_0x32ac04,_0x353c1d=_0x3c8d8a()[_0x5d6de5('0x8a2')](_0x11f5c3[_0x5d6de5('0x6aa')],function(_0x5b9ceb){const _0x7475a9=_0x5d6de5;return _0x3c8d8a()[_0x7475a9('0x18ab')](_0x3596a9['lists'],{'id':_0x5b9ceb[_0x7475a9('0x1ce0')]});});let _0x53c0fc=null;_0x3596a9[_0x5d6de5('0xe12')]&&(_0x53c0fc=_0x3c8d8a()['find'](_0x3596a9[_0x5d6de5('0x9e8')],{'id':Number(_0x3596a9['faxAccount'][_0x5d6de5('0xef2')])}));if(_0x53c0fc&&!_0x3c8d8a()[_0x5d6de5('0x1ec')](_0x353c1d,['id',_0x53c0fc['id']])){const _0x1bc938=_0x3c8d8a()[_0x5d6de5('0x18ab')](_0x3596a9['lists'],{'id':_0x53c0fc['id']});_0x1bc938['canSelect']=![],_0x353c1d['push'](_0x1bc938);}_0x3596a9[_0x5d6de5('0x9e8')]=_0x353c1d;});}})['catch'](function(_0x15424b){const _0x3de36a=_0x1e7d0f;_0x1ac335['error']({'title':_0x15424b[_0x3de36a('0x276f')]?_0x3de36a('0x137')+_0x15424b[_0x3de36a('0x276f')]+_0x3de36a('0x160c')+_0x15424b[_0x3de36a('0x2696')]:_0x3de36a('0x1292'),'msg':_0x15424b[_0x3de36a('0x1e07')]?JSON[_0x3de36a('0x100b')](_0x15424b[_0x3de36a('0x1e07')]):_0x15424b[_0x3de36a('0x1b75')]()});}),_0x80679[_0x1e7d0f('0x1b4e')]('admin')?_0x2930c7[_0x1e7d0f('0x1751')][_0x1e7d0f('0x1d97')]({'fields':_0x1e7d0f('0x901'),'sort':_0x1e7d0f('0x10ad'),'nolimit':_0x1e7d0f('0x799')})['$promise'][_0x1e7d0f('0x173b')](function(_0x14e4fb){const _0x3d09af=_0x1e7d0f;_0x3596a9['pauses']=_0x14e4fb[_0x3d09af('0x6aa')]||[];})[_0x1e7d0f('0x103c')](function(_0x5b0e69){const _0xcaf388=_0x1e7d0f;_0x1ac335[_0xcaf388('0x15aa')]({'title':_0x5b0e69[_0xcaf388('0x276f')]?_0xcaf388('0x137')+_0x5b0e69[_0xcaf388('0x276f')]+_0xcaf388('0x160c')+_0x5b0e69[_0xcaf388('0x2696')]:'SYSTEM:GET_PAUSES','msg':_0x5b0e69['data']?JSON['stringify'](_0x5b0e69['data']):_0x5b0e69['toString']()});}):_0x2930c7[_0x1e7d0f('0x1751')]['get']({'fields':_0x1e7d0f('0x901'),'sort':_0x1e7d0f('0x10ad'),'nolimit':_0x1e7d0f('0x799')})[_0x1e7d0f('0x1964')][_0x1e7d0f('0x173b')](function(_0x4245db){const _0x4ec62f=_0x1e7d0f;_0x3596a9[_0x4ec62f('0x1d66')]=_0x4245db[_0x4ec62f('0x6aa')]||[];})['then'](function(){const _0x101710=_0x1e7d0f;return _0x2930c7[_0x101710('0x170e')][_0x101710('0x1d97')]({'userProfileId':_0x3596a9[_0x101710('0x155f')]['userProfileId'],'sectionId':0x3ed})[_0x101710('0x1964')];})[_0x1e7d0f('0x173b')](function(_0x51b9ab){const _0x576a08=_0x1e7d0f,_0x400544=_0x51b9ab&&_0x51b9ab['rows']?_0x51b9ab[_0x576a08('0x6aa')][0x0]:null;if(!_0x400544)_0x3596a9[_0x576a08('0x1d66')]=[];else{if(!_0x400544['autoAssociation'])return _0x2930c7[_0x576a08('0xda9')][_0x576a08('0x1d97')]({'sectionId':_0x400544['id']})[_0x576a08('0x1964')][_0x576a08('0x173b')](function(_0xce9803){const _0x8372cf=_0x576a08,_0x4c6c8a=_0x3c8d8a()['map'](_0xce9803['rows'],function(_0x6ca7a1){const _0x2d6ba1=a0_0xde5e;return _0x3c8d8a()[_0x2d6ba1('0x18ab')](_0x3596a9[_0x2d6ba1('0x1d66')],{'id':_0x6ca7a1[_0x2d6ba1('0x1ce0')]});});_0x3596a9[_0x8372cf('0x1d66')][_0x8372cf('0xa6a')](function(_0x5676c7){const _0x5aa099=_0x8372cf;!_0x3c8d8a()['some'](_0x4c6c8a,['id',_0x5676c7['id']])&&(_0x5676c7[_0x5aa099('0x268e')]=![]),_0x4c6c8a[_0x5aa099('0x18bb')](_0x5676c7);}),_0x3596a9[_0x8372cf('0x1d66')]=_0x4c6c8a;});}})[_0x1e7d0f('0x103c')](function(_0xef7a6d){const _0x9cce65=_0x1e7d0f;_0x1ac335[_0x9cce65('0x15aa')]({'title':_0xef7a6d[_0x9cce65('0x276f')]?'API:'+_0xef7a6d[_0x9cce65('0x276f')]+_0x9cce65('0x160c')+_0xef7a6d[_0x9cce65('0x2696')]:_0x9cce65('0x2595'),'msg':_0xef7a6d[_0x9cce65('0x1e07')]?JSON[_0x9cce65('0x100b')](_0xef7a6d[_0x9cce65('0x1e07')]):_0xef7a6d[_0x9cce65('0x1b75')]()});});function _0x591f7c(){const _0x4061f5=_0x1e7d0f;if(_0x80679[_0x4061f5('0x1b4e')](_0x4061f5('0x79b')))_0x55860a['go'](_0x4061f5('0x2451'),{});else return _0x2930c7['userProfileSection'][_0x4061f5('0x1d97')]({'userProfileId':_0x80679['getCurrentUser']()[_0x4061f5('0x1946')],'sectionId':0x38e})[_0x4061f5('0x1964')]['then'](function(_0x2034d5){const _0x23b48b=_0x4061f5,_0x1d065c=_0x2034d5&&_0x2034d5[_0x23b48b('0x6aa')]?_0x2034d5['rows'][0x0]:null;_0x1d065c&&_0x1d065c[_0x23b48b('0x830')]?_0x55860a['go'](_0x23b48b('0x2451'),{}):_0x1ac335[_0x23b48b('0x2787')]({'title':_0x35bc35['instant'](_0x23b48b('0x4aa')),'msg':_0x35bc35['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x4061f5('0x103c')](function(_0x442509){const _0x32aeff=_0x4061f5;_0x1ac335[_0x32aeff('0x15aa')]({'title':_0x442509[_0x32aeff('0x276f')]?_0x32aeff('0x137')+_0x442509[_0x32aeff('0x276f')]+_0x32aeff('0x160c')+_0x442509[_0x32aeff('0x2696')]:_0x32aeff('0x144d'),'msg':_0x442509[_0x32aeff('0x276f')]?JSON['stringify'](_0x442509['data']):_0x442509[_0x32aeff('0x1b75')]()});});}function _0x369e45(_0x1ce67a,_0x2d845d){const _0xe395e6=_0x1e7d0f;_0x2ca515[_0xe395e6('0x1cb7')]({'controller':_0xe395e6('0x17a3'),'controllerAs':'vm','templateUrl':_0x23859e,'parent':angular[_0xe395e6('0xb6d')](_0x39871c['body']),'targetEvent':_0x2d845d,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x1ce67a,'faxAccounts':_0x3596a9['faxAccounts']?_0x3596a9[_0xe395e6('0x17f2')][_0xe395e6('0x6aa')]:[],'crudPermissions':_0x3596a9[_0xe395e6('0x1dc1')],'realtime':![]}});}function _0xe48d49(){_0x55860a['go']('app.fax.faxAccounts',{},{'reload':'app.fax.faxAccounts'});}function _0x2062d0(){const _0x3206e3=_0x1e7d0f;_0x2930c7[_0x3206e3('0xe12')][_0x3206e3('0x1092')](_0x3596a9[_0x3206e3('0xe12')])['$promise'][_0x3206e3('0x173b')](function(){const _0x276842=_0x3206e3;_0x1ac335[_0x276842('0xdfe')]({'title':_0x276842('0xd4f'),'msg':_0x3596a9[_0x276842('0xe12')][_0x276842('0x10ad')]?_0x3596a9[_0x276842('0xe12')][_0x276842('0x10ad')]+_0x276842('0x1fd6'):''});})[_0x3206e3('0x103c')](function(_0x5bf7a8){const _0x5cdc73=_0x3206e3;_0x1ac335[_0x5cdc73('0x15aa')]({'title':_0x5bf7a8[_0x5cdc73('0x276f')]?_0x5cdc73('0x137')+_0x5bf7a8['status']+'\x20-\x20'+_0x5bf7a8[_0x5cdc73('0x2696')]:_0x5cdc73('0x1f3f'),'msg':_0x5bf7a8[_0x5cdc73('0x1e07')]?JSON[_0x5cdc73('0x100b')](_0x5bf7a8[_0x5cdc73('0x1e07')]):_0x5bf7a8[_0x5cdc73('0x1b75')]()});});}}const _0x47f987=_0x4021f9,_0x1df335=_0x21a6a1['p']+_0x566993('0x1894');_0x27187f[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x17f2'),_0x566993('0x257b'),'userProfileSection',_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x27187f(_0x1de522,_0x1deec6,_0x381741,_0x5e6af2,_0x45545e,_0x52ba62,_0xda034b,_0x8f5ef3,_0x307389,_0x2e7d76,_0x4650c9,_0x44d946,_0x7051a8,_0x5deb39,_0x13117f,_0x58b0ae,_0x46c018){const _0x5be2c0=_0x566993,_0x2edf70=this;_0x2edf70[_0x5be2c0('0x1a29')]=_0x58b0ae,_0x2edf70[_0x5be2c0('0x251')]=_0x46c018,_0x2edf70[_0x5be2c0('0x155f')]=_0x13117f[_0x5be2c0('0x14d4')](),_0x2edf70[_0x5be2c0('0x17f2')]=_0x307389||{'count':0x0,'rows':[]},_0x2edf70['userProfile']=_0x2e7d76,_0x2edf70['userProfileSection']=_0x4650c9&&_0x4650c9[_0x5be2c0('0x1a2f')]==0x1?_0x4650c9[_0x5be2c0('0x6aa')][0x0]:null,_0x2edf70[_0x5be2c0('0x1dc1')]=_0x13117f['parseCrudPermissions'](_0x2edf70['userProfileSection']?_0x2edf70[_0x5be2c0('0x170e')]['crudPermissions']:null),_0x2edf70[_0x5be2c0('0xdf9')]=_0x5be2c0('0x17f2'),_0x2edf70[_0x5be2c0('0x14d6')]='',_0x2edf70[_0x5be2c0('0x2303')]=null,_0x2edf70[_0x5be2c0('0x1ca3')]=[],_0x2edf70['query']={'fields':_0x5be2c0('0xace'),'sort':_0x5be2c0('0x1769'),'limit':0xa,'page':0x1},_0x2edf70[_0x5be2c0('0x1625')]=_0x3c8d8a()['keyBy']([{'option':_0x5be2c0('0x1d41'),'value':'\x27yes\x27'},{'option':'no','value':_0x5be2c0('0x13d1')}],function(_0x1c49cc){const _0x278e27=_0x5be2c0;return _0x3c8d8a()[_0x278e27('0x166c')](_0x1c49cc[_0x278e27('0xa7b')],new RegExp('\x27','g'),'');}),_0x2edf70[_0x5be2c0('0xd39')]=_0x3c8d8a()[_0x5be2c0('0x128')]([{'option':_0x5be2c0('0x13f7'),'value':_0x5be2c0('0x1004')},{'option':_0x5be2c0('0xa84'),'value':'\x274800\x27'},{'option':_0x5be2c0('0x596'),'value':'\x277200\x27'},{'option':'9600','value':'\x279600\x27'},{'option':'12000','value':_0x5be2c0('0x27b5')},{'option':_0x5be2c0('0xeb1'),'value':_0x5be2c0('0x10d9')}],function(_0x4b9c8c){const _0x2d9dd0=_0x5be2c0;return _0x3c8d8a()[_0x2d9dd0('0x166c')](_0x4b9c8c[_0x2d9dd0('0xa7b')],new RegExp('\x27','g'),'');}),_0x2edf70[_0x5be2c0('0xd72')]=_0x3c8d8a()[_0x5be2c0('0x128')]([{'option':_0x5be2c0('0x13f7'),'value':_0x5be2c0('0x1004')},{'option':_0x5be2c0('0xa84'),'value':_0x5be2c0('0x7dd')},{'option':_0x5be2c0('0x596'),'value':'\x277200\x27'},{'option':_0x5be2c0('0x15c3'),'value':_0x5be2c0('0x1e02')},{'option':_0x5be2c0('0x207d'),'value':_0x5be2c0('0x27b5')},{'option':_0x5be2c0('0xeb1'),'value':_0x5be2c0('0x10d9')}],function(_0x5bfe65){const _0x5abc51=_0x5be2c0;return _0x3c8d8a()[_0x5abc51('0x166c')](_0x5bfe65[_0x5abc51('0xa7b')],new RegExp('\x27','g'),'');}),_0x2edf70[_0x5be2c0('0x7a4')]=_0x3c8d8a()['keyBy']([{'option':_0x5be2c0('0x9e6'),'value':_0x5be2c0('0x1d25')},{'option':_0x5be2c0('0x137d'),'value':'\x27IAX\x27'},{'option':'DADHI','value':'\x27DADHI\x27'},{'option':_0x5be2c0('0x1d3f'),'value':'\x27KHOMP\x27'}],function(_0x540001){const _0x3d424f=_0x5be2c0;return _0x3c8d8a()[_0x3d424f('0x166c')](_0x540001[_0x3d424f('0xa7b')],new RegExp('\x27','g'),'');}),_0x2edf70['editstate']=_0x34c4dc,_0x2edf70[_0x5be2c0('0x426')]=_0x55ae72,_0x2edf70[_0x5be2c0('0x1c9c')]=_0x96c8c9,_0x2edf70[_0x5be2c0('0x2118')]=_0x4d5cc2,_0x2edf70[_0x5be2c0('0x1a20')]=_0x2f285f,_0x2edf70[_0x5be2c0('0xdfe')]=_0x324d58,_0x2edf70['getFaxAccounts']=_0x5dc346,_0x2edf70[_0x5be2c0('0x20f7')]=_0x9f8f59,_0x2edf70[_0x5be2c0('0x8c4')]=_0xca66f2,_0x2edf70[_0x5be2c0('0x529')]=_0x1deef4,_0x2edf70[_0x5be2c0('0x1ad6')]=_0x3fbb02,_0x2edf70[_0x5be2c0('0xefb')]=_0x398dc2,_0x2edf70['selectAllFaxAccounts']=_0x5e3bf3,_0x13117f[_0x5be2c0('0x1b4e')]('admin')?_0x44d946[_0x5be2c0('0x15b7')]['get']({'fields':_0x5be2c0('0xd52'),'sort':_0x5be2c0('0x10ad')})[_0x5be2c0('0x1964')][_0x5be2c0('0x173b')](function(_0x5476d1){const _0x3e8a5e=_0x5be2c0;_0x2edf70[_0x3e8a5e('0x673')]=_0x5476d1[_0x3e8a5e('0x6aa')]||[];})['catch'](function(_0x4d9b7d){const _0x4bc7b0=_0x5be2c0;_0x5deb39['error']({'title':_0x4d9b7d[_0x4bc7b0('0x276f')]?_0x4bc7b0('0x137')+_0x4d9b7d[_0x4bc7b0('0x276f')]+'\x20-\x20'+_0x4d9b7d[_0x4bc7b0('0x2696')]:_0x4bc7b0('0xbd8'),'msg':_0x4d9b7d[_0x4bc7b0('0x1e07')]?JSON[_0x4bc7b0('0x100b')](_0x4d9b7d[_0x4bc7b0('0x1e07')]):_0x4d9b7d[_0x4bc7b0('0x1b75')]()});}):_0x44d946['trunk']['get']({'fields':_0x5be2c0('0xd52'),'sort':_0x5be2c0('0x10ad')})[_0x5be2c0('0x1964')][_0x5be2c0('0x173b')](function(_0x10b7aa){const _0x5ec17f=_0x5be2c0;_0x2edf70[_0x5ec17f('0x673')]=_0x10b7aa[_0x5ec17f('0x6aa')]||[];})[_0x5be2c0('0x173b')](function(){const _0x54fef8=_0x5be2c0;return _0x44d946[_0x54fef8('0x170e')][_0x54fef8('0x1d97')]({'userProfileId':_0x2edf70[_0x54fef8('0x155f')][_0x54fef8('0x1946')],'sectionId':0x3f3})[_0x54fef8('0x1964')];})[_0x5be2c0('0x173b')](function(_0x3d6cf6){const _0x33036f=_0x5be2c0,_0x30021f=_0x3d6cf6&&_0x3d6cf6[_0x33036f('0x6aa')]?_0x3d6cf6['rows'][0x0]:null;if(!_0x30021f){const _0x4af867=[],_0x4bf84f=[];_0x2edf70[_0x33036f('0x17f2')][_0x33036f('0x6aa')][_0x33036f('0xa6a')](function(_0x1fabf6){const _0x444e8b=_0x33036f,_0x1d5c6f=_0x3c8d8a()[_0x444e8b('0x18ab')](_0x2edf70[_0x444e8b('0x673')],{'id':Number(_0x1fabf6[_0x444e8b('0xdad')])});_0x4bf84f[_0x444e8b('0x18bb')](_0x1d5c6f);});for(let _0x20cc47=0x0;_0x20cc47<_0x2edf70[_0x33036f('0x673')][_0x33036f('0x543')];_0x20cc47++){const _0x2309a7=_0x3c8d8a()[_0x33036f('0x1ec')](_0x4bf84f,{'id':_0x2edf70[_0x33036f('0x673')][_0x20cc47]['id']});_0x2309a7&&(_0x2edf70['trunks'][_0x20cc47][_0x33036f('0x268e')]=![],_0x4af867[_0x33036f('0x18bb')](_0x2edf70[_0x33036f('0x673')][_0x20cc47]));}_0x2edf70[_0x33036f('0x673')]=_0x4af867;}else{if(!_0x30021f[_0x33036f('0x273e')])return _0x44d946[_0x33036f('0xda9')][_0x33036f('0x1d97')]({'sectionId':_0x30021f['id']})[_0x33036f('0x1964')]['then'](function(_0x526c8b){const _0x8e58e9=_0x33036f,_0xa7f145=_0x3c8d8a()[_0x8e58e9('0x8a2')](_0x526c8b[_0x8e58e9('0x6aa')],function(_0x3825ce){const _0x499b13=_0x8e58e9;return _0x3c8d8a()[_0x499b13('0x18ab')](_0x2edf70['trunks'],{'id':_0x3825ce[_0x499b13('0x1ce0')]});});let _0x2bbdf0=null;_0x2bbdf0=[],_0x2edf70['faxAccounts'][_0x8e58e9('0x6aa')][_0x8e58e9('0xa6a')](function(_0x3ff328){const _0x4dda49=_0x8e58e9,_0x2de6ee=_0x3c8d8a()[_0x4dda49('0x18ab')](_0x2edf70['trunks'],{'id':Number(_0x3ff328[_0x4dda49('0xdad')])});_0x2bbdf0[_0x4dda49('0x18bb')](_0x2de6ee);}),!_0x3c8d8a()[_0x8e58e9('0x1a56')](_0x2bbdf0)&&_0x2bbdf0['forEach'](function(_0x311c07){const _0x1884d4=_0x8e58e9;if(!_0x3c8d8a()[_0x1884d4('0x1ec')](_0xa7f145,['id',_0x311c07['id']])){const _0xbd3baf=_0x3c8d8a()[_0x1884d4('0x18ab')](_0x2edf70[_0x1884d4('0x673')],{'id':_0x311c07['id']});_0xbd3baf[_0x1884d4('0x268e')]=![],_0xa7f145['push'](_0xbd3baf);}}),_0x2edf70[_0x8e58e9('0x673')]=_0xa7f145;});}})[_0x5be2c0('0x103c')](function(_0x4077c6){const _0x289832=_0x5be2c0;_0x5deb39['error']({'title':_0x4077c6[_0x289832('0x276f')]?_0x289832('0x137')+_0x4077c6[_0x289832('0x276f')]+_0x289832('0x160c')+_0x4077c6['statusText']:_0x289832('0x21ed'),'msg':_0x4077c6['data']?JSON[_0x289832('0x100b')](_0x4077c6[_0x289832('0x1e07')]):_0x4077c6[_0x289832('0x1b75')]()});}),_0x13117f[_0x5be2c0('0x1b4e')](_0x5be2c0('0x79b'))?_0x44d946[_0x5be2c0('0xbb3')][_0x5be2c0('0x1d97')]({'fields':_0x5be2c0('0xd52'),'sort':'name'})['$promise'][_0x5be2c0('0x173b')](function(_0x48db5c){_0x2edf70['lists']=_0x48db5c['rows']||[];})[_0x5be2c0('0x103c')](function(_0x451b3c){const _0x4bf3c2=_0x5be2c0;_0x5deb39['error']({'title':_0x451b3c['status']?_0x4bf3c2('0x137')+_0x451b3c['status']+_0x4bf3c2('0x160c')+_0x451b3c[_0x4bf3c2('0x2696')]:_0x4bf3c2('0x1d5c'),'msg':_0x451b3c[_0x4bf3c2('0x1e07')]?JSON[_0x4bf3c2('0x100b')](_0x451b3c[_0x4bf3c2('0x1e07')]):_0x451b3c[_0x4bf3c2('0x1b75')]()});}):_0x44d946[_0x5be2c0('0xbb3')][_0x5be2c0('0x1d97')]({'fields':_0x5be2c0('0xd52'),'sort':'name'})[_0x5be2c0('0x1964')]['then'](function(_0xff57b6){const _0x8f64=_0x5be2c0;_0x2edf70[_0x8f64('0x9e8')]=_0xff57b6['rows']||[];})['then'](function(){const _0x179d9c=_0x5be2c0;return _0x44d946[_0x179d9c('0x170e')][_0x179d9c('0x1d97')]({'userProfileId':_0x2edf70[_0x179d9c('0x155f')][_0x179d9c('0x1946')],'sectionId':0x12d})[_0x179d9c('0x1964')];})[_0x5be2c0('0x173b')](function(_0x525851){const _0x3532ae=_0x5be2c0,_0x4a587d=_0x525851&&_0x525851[_0x3532ae('0x6aa')]?_0x525851[_0x3532ae('0x6aa')][0x0]:null;if(!_0x4a587d){const _0x374f09=[];let _0x1607cb=null;_0x2edf70[_0x3532ae('0xe12')]&&(_0x1607cb=_0x3c8d8a()['find'](_0x2edf70[_0x3532ae('0x9e8')],{'id':Number(_0x2edf70['faxAccount'][_0x3532ae('0xef2')])}));for(let _0x4351fc=0x0;_0x4351fc<_0x2edf70['lists'][_0x3532ae('0x543')];_0x4351fc++){_0x1607cb&&_0x2edf70['lists'][_0x4351fc]['id']===_0x1607cb['id']&&(_0x2edf70['lists'][_0x4351fc][_0x3532ae('0x268e')]=![],_0x374f09[_0x3532ae('0x18bb')](_0x2edf70[_0x3532ae('0x9e8')][_0x4351fc]));}_0x2edf70['lists']=_0x374f09;}else{if(!_0x4a587d[_0x3532ae('0x273e')])return _0x44d946['userProfileResource']['get']({'sectionId':_0x4a587d['id']})[_0x3532ae('0x1964')][_0x3532ae('0x173b')](function(_0x58a008){const _0x3b07a4=_0x3532ae,_0xabaebf=_0x3c8d8a()['map'](_0x58a008['rows'],function(_0x1b8f15){const _0x3db147=a0_0xde5e;return _0x3c8d8a()[_0x3db147('0x18ab')](_0x2edf70['lists'],{'id':_0x1b8f15[_0x3db147('0x1ce0')]});});let _0x35986b=null;_0x2edf70[_0x3b07a4('0xe12')]&&(_0x35986b=_0x3c8d8a()['find'](_0x2edf70[_0x3b07a4('0x9e8')],{'id':Number(_0x2edf70[_0x3b07a4('0xe12')][_0x3b07a4('0xef2')])}));if(_0x35986b&&!_0x3c8d8a()['some'](_0xabaebf,['id',_0x35986b['id']])){const _0x5bb806=_0x3c8d8a()['find'](_0x2edf70[_0x3b07a4('0x9e8')],{'id':_0x35986b['id']});_0x5bb806[_0x3b07a4('0x268e')]=![],_0xabaebf[_0x3b07a4('0x18bb')](_0x5bb806);}_0x2edf70[_0x3b07a4('0x9e8')]=_0xabaebf;});}})[_0x5be2c0('0x103c')](function(_0x5238d4){const _0x30432e=_0x5be2c0;_0x5deb39['error']({'title':_0x5238d4[_0x30432e('0x276f')]?_0x30432e('0x137')+_0x5238d4['status']+_0x30432e('0x160c')+_0x5238d4[_0x30432e('0x2696')]:'SYSTEM:GETlists','msg':_0x5238d4[_0x30432e('0x1e07')]?JSON[_0x30432e('0x100b')](_0x5238d4['data']):_0x5238d4[_0x30432e('0x1b75')]()});});function _0x34c4dc(_0x5b939f){const _0x5374a8=_0x5be2c0;_0x381741['go'](_0x5374a8('0x27cf'),{'id':_0x5b939f['id'],'faxAccount':_0x5b939f,'crudPermissions':_0x2edf70[_0x5374a8('0x1dc1')]});}function _0x55ae72(_0x3aa013){const _0x3983b8=_0x5be2c0;_0x381741['go'](_0x3983b8('0x27cf'),{'id':_0x3aa013['id'],'tab':0x5});}function _0x96c8c9(){const _0x1de9db=_0x5be2c0;if(_0x13117f[_0x1de9db('0x1b4e')](_0x1de9db('0x79b')))_0x381741['go'](_0x1de9db('0x2451'),{});else return _0x44d946[_0x1de9db('0x170e')][_0x1de9db('0x1d97')]({'userProfileId':_0x13117f[_0x1de9db('0x14d4')]()[_0x1de9db('0x1946')],'sectionId':0x38e})['$promise']['then'](function(_0x174052){const _0x4e36de=_0x1de9db,_0x1cca25=_0x174052&&_0x174052[_0x4e36de('0x6aa')]?_0x174052[_0x4e36de('0x6aa')][0x0]:null;_0x1cca25&&_0x1cca25['enabled']?_0x381741['go']('app.fax.realtime.accounts',{}):_0x5deb39[_0x4e36de('0x2787')]({'title':_0x8f5ef3[_0x4e36de('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x8f5ef3[_0x4e36de('0x1467')](_0x4e36de('0x7d4'))});})[_0x1de9db('0x103c')](function(_0x1c1f40){const _0x6d2ccd=_0x1de9db;_0x5deb39[_0x6d2ccd('0x15aa')]({'title':_0x1c1f40[_0x6d2ccd('0x276f')]?'API:'+_0x1c1f40['status']+_0x6d2ccd('0x160c')+_0x1c1f40[_0x6d2ccd('0x2696')]:_0x6d2ccd('0x144d'),'msg':_0x1c1f40[_0x6d2ccd('0x276f')]?JSON[_0x6d2ccd('0x100b')](_0x1c1f40['data']):_0x1c1f40['toString']()});});}function _0x4d5cc2(_0x49d786,_0x246c7e){const _0x308bf1=_0x5be2c0;_0x45545e[_0x308bf1('0x1cb7')]({'controller':_0x308bf1('0x17a3'),'controllerAs':'vm','templateUrl':_0x23859e,'parent':angular['element'](_0x52ba62[_0x308bf1('0x1a5')]),'targetEvent':_0x246c7e,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x49d786,'faxAccounts':_0x2edf70['faxAccounts']?_0x2edf70[_0x308bf1('0x17f2')][_0x308bf1('0x6aa')]:[],'crudPermissions':_0x2edf70[_0x308bf1('0x1dc1')],'realtime':![]}});}function _0x2f285f(_0x547ae3,_0x2d3514){const _0x33cdd1=_0x5be2c0,_0x3b072a=_0x45545e['confirm']()[_0x33cdd1('0x20d6')](_0x33cdd1('0x5bb')+_0x3c8d8a()[_0x33cdd1('0x10e')](_0x33cdd1('0xe12'))+'?')[_0x33cdd1('0xf8b')](''+(_0x547ae3[_0x33cdd1('0x10ad')]||_0x33cdd1('0xe12'))+_0x33cdd1('0x24be')+_0x33cdd1('0xd23'))['ariaLabel']('delete\x20faxAccount')[_0x33cdd1('0x21de')](_0x2d3514)['ok']('OK')[_0x33cdd1('0x1e1f')](_0x33cdd1('0x468'));_0x45545e['show'](_0x3b072a)[_0x33cdd1('0x173b')](function(){_0xca66f2(_0x547ae3);},function(){const _0x30f3a9=_0x33cdd1;console['log'](_0x30f3a9('0x468'));});}let _0x30ed74=!![],_0x11bb89=0x1;_0x1de522[_0x5be2c0('0x1bdb')](_0x5be2c0('0x157b'),function(_0x44c3bb,_0x3d783c){const _0x1c4ec1=_0x5be2c0;_0x30ed74?_0xda034b(function(){_0x30ed74=![];}):(!_0x3d783c&&(_0x11bb89=_0x2edf70[_0x1c4ec1('0xc49')][_0x1c4ec1('0x182e')]),_0x44c3bb!==_0x3d783c&&(_0x2edf70['query']['page']=0x1),!_0x44c3bb&&(_0x2edf70[_0x1c4ec1('0xc49')][_0x1c4ec1('0x182e')]=_0x11bb89),_0x2edf70[_0x1c4ec1('0x2655')]());});function _0x324d58(_0x47bae2){const _0x553a68=_0x5be2c0;_0x2edf70[_0x553a68('0x17f2')]=_0x47bae2||{'count':0x0,'rows':[]};}function _0x5dc346(){const _0x210702=_0x5be2c0;_0x2edf70['query']['offset']=(_0x2edf70[_0x210702('0xc49')][_0x210702('0x182e')]-0x1)*_0x2edf70[_0x210702('0xc49')][_0x210702('0x3e')],_0x13117f[_0x210702('0x1b4e')](_0x210702('0x79b'))?_0x2edf70['promise']=_0x44d946[_0x210702('0xe12')][_0x210702('0x1d97')](_0x2edf70[_0x210702('0xc49')],_0x324d58)[_0x210702('0x1964')]:(_0x2edf70[_0x210702('0xc49')]['id']=_0x2edf70[_0x210702('0x257b')]['id'],_0x2edf70[_0x210702('0xc49')][_0x210702('0x17c9')]=_0x210702('0x1ba2'),_0x2edf70[_0x210702('0x2219')]=_0x44d946['userProfile'][_0x210702('0x135b')](_0x2edf70[_0x210702('0xc49')],_0x324d58)[_0x210702('0x1964')]);}function _0x9f8f59(_0x36f169,_0x41baa6){const _0x3e77e6=_0x5be2c0;_0x45545e[_0x3e77e6('0x1cb7')]({'controller':_0x3e77e6('0xc93'),'controllerAs':'vm','templateUrl':_0x1df335,'parent':angular[_0x3e77e6('0xb6d')](_0x52ba62[_0x3e77e6('0x1a5')]),'targetEvent':_0x36f169,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x41baa6,'faxAccounts':_0x2edf70['faxAccounts'][_0x3e77e6('0x6aa')],'license':_0x2edf70['license'],'setting':_0x2edf70[_0x3e77e6('0x251')],'crudPermissions':_0x2edf70[_0x3e77e6('0x1dc1')]}});}function _0xca66f2(_0x2f869c){const _0x44d4c6=_0x5be2c0;_0x44d946[_0x44d4c6('0xe12')][_0x44d4c6('0x15e8')]({'id':_0x2f869c['id']})['$promise'][_0x44d4c6('0x173b')](function(){const _0x1178bc=_0x44d4c6;_0x3c8d8a()[_0x1178bc('0x1a8b')](_0x2edf70[_0x1178bc('0x17f2')][_0x1178bc('0x6aa')],{'id':_0x2f869c['id']}),_0x2edf70[_0x1178bc('0x17f2')][_0x1178bc('0x1a2f')]-=0x1,!_0x2edf70[_0x1178bc('0x17f2')][_0x1178bc('0x6aa')][_0x1178bc('0x543')]&&_0x2edf70[_0x1178bc('0x2655')](),_0x5deb39[_0x1178bc('0xdfe')]({'title':_0x3c8d8a()['startCase']('FaxAccount')+_0x1178bc('0x1c5e'),'msg':_0x2f869c[_0x1178bc('0x10ad')]?_0x2f869c['name']+_0x1178bc('0x25d2'):''});})[_0x44d4c6('0x103c')](function(_0x4a6adb){const _0x193257=_0x44d4c6;if(_0x4a6adb[_0x193257('0x1e07')]&&_0x4a6adb['data'][_0x193257('0x1d4a')]&&_0x4a6adb[_0x193257('0x1e07')][_0x193257('0x1d4a')][_0x193257('0x543')]){_0x2edf70['errors']=_0x4a6adb[_0x193257('0x1e07')][_0x193257('0x1d4a')]||[{'message':_0x4a6adb['toString'](),'type':_0x193257('0x264b')}];for(let _0x11841b=0x0;_0x11841b<_0x4a6adb[_0x193257('0x1e07')][_0x193257('0x1d4a')][_0x193257('0x543')];_0x11841b++){_0x5deb39[_0x193257('0x15aa')]({'title':_0x4a6adb[_0x193257('0x1e07')][_0x193257('0x1d4a')][_0x11841b][_0x193257('0x1810')],'msg':_0x4a6adb[_0x193257('0x1e07')]['errors'][_0x11841b][_0x193257('0x67f')]});}}else _0x5deb39[_0x193257('0x15aa')]({'title':_0x4a6adb['status']?_0x193257('0x137')+_0x4a6adb[_0x193257('0x276f')]+_0x193257('0x160c')+_0x4a6adb[_0x193257('0x2696')]:_0x193257('0x264b'),'msg':_0x4a6adb[_0x193257('0x1e07')]?JSON['stringify'](_0x4a6adb[_0x193257('0x1e07')][_0x193257('0x67f')]):_0x4a6adb['message']||_0x4a6adb['toString']()});});}function _0x1deef4(){const _0x5ab6ab=_0x5be2c0,_0x37d3c6=angular['copy'](_0x2edf70[_0x5ab6ab('0x1ca3')]);return _0x2edf70[_0x5ab6ab('0x1ca3')]=[],_0x37d3c6;}function _0x3fbb02(_0x15b773){const _0x59250f=_0x5be2c0,_0x1cbd65=_0x45545e[_0x59250f('0x1d02')]()[_0x59250f('0x20d6')](_0x59250f('0x594'))[_0x59250f('0xf8b')](''+_0x2edf70[_0x59250f('0x1ca3')][_0x59250f('0x543')]+_0x59250f('0xcb4')+_0x59250f('0xd23'))[_0x59250f('0x217')]('delete\x20FaxAccounts')[_0x59250f('0x21de')](_0x15b773)['ok']('OK')[_0x59250f('0x1e1f')](_0x59250f('0x468'));_0x45545e['show'](_0x1cbd65)['then'](function(){const _0x5a991c=_0x59250f;_0x2edf70[_0x5a991c('0x1ca3')][_0x5a991c('0xa6a')](function(_0x2e8a81){_0xca66f2(_0x2e8a81);}),_0x2edf70[_0x5a991c('0x1ca3')]=[];});}function _0x398dc2(){const _0x1f1ca0=_0x5be2c0;_0x2edf70[_0x1f1ca0('0x1ca3')]=[];}function _0x5e3bf3(){const _0x101616=_0x5be2c0;_0x2edf70['selectedFaxAccounts']=_0x2edf70['faxAccounts'][_0x101616('0x6aa')];}}const _0x4a1ca2=_0x27187f;_0x183e2d[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0x264'),_0x566993('0xd82'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0x183e2d(_0x1f2ccb,_0xee5563,_0x424994,_0x75620b,_0x45e6d0,_0x2dd227,_0x349915,_0x3c512d,_0x249740,_0x5b0b92,_0x5223c2,_0x53f65d,_0x5208e6,_0x3b5a86){const _0x5ec27c=_0x566993,_0x3a797b=this;_0x3a797b[_0x5ec27c('0x155f')]=_0x5223c2['getCurrentUser'](),_0x3a797b[_0x5ec27c('0x1d4a')]=[],_0x3a797b[_0x5ec27c('0x251')]=_0x5208e6,_0x3a797b['license']=_0x53f65d,_0x3a797b['crudPermissions']=_0x3b5a86,_0x3a797b[_0x5ec27c('0xb0')]={},_0x3a797b[_0x5ec27c('0x644')]=_0x3a797b[_0x5ec27c('0x251')]&&_0x3a797b['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a797b[_0x5ec27c('0x20d6')]='FAX.EDIT_FAXQUEUE',_0x3a797b[_0x5ec27c('0xd82')]=angular[_0x5ec27c('0x2e3')](_0x249740),_0x3a797b[_0x5ec27c('0x264')]=_0x3c512d,_0x3a797b[_0x5ec27c('0x9b5')]=![];!_0x3a797b[_0x5ec27c('0xd82')]&&(_0x3a797b[_0x5ec27c('0xd82')]={'strategy':_0x5ec27c('0x61'),'timeout':0xa},_0x3a797b[_0x5ec27c('0x20d6')]=_0x5ec27c('0x1c4a'),_0x3a797b[_0x5ec27c('0x9b5')]=!![]);_0x3a797b[_0x5ec27c('0x1578')]=_0x346aed,_0x3a797b['saveFaxQueue']=_0x2f2839,_0x3a797b['deleteFaxQueue']=_0x278cad,_0x3a797b[_0x5ec27c('0x11ae')]=_0x52b9ea,_0x3a797b['closeDialog']=_0x27d5fe;function _0x346aed(){const _0x2697d7=_0x5ec27c;_0x3a797b[_0x2697d7('0x1d4a')]=[],_0x5b0b92[_0x2697d7('0xd82')][_0x2697d7('0x1195')](_0x3a797b['faxQueue'])[_0x2697d7('0x1964')]['then'](function(_0x31a6df){const _0x274651=_0x2697d7;_0x3a797b[_0x274651('0x264')][_0x274651('0x1377')](_0x31a6df[_0x274651('0xf1f')]()),_0x349915[_0x274651('0xdfe')]({'title':_0x274651('0x5e2'),'msg':_0x3a797b[_0x274651('0xd82')][_0x274651('0x10ad')]?_0x3a797b[_0x274651('0xd82')][_0x274651('0x10ad')]+_0x274651('0x209a'):''}),_0x27d5fe(_0x31a6df);})[_0x2697d7('0x103c')](function(_0x3eb9c9){const _0x2a0ccc=_0x2697d7;if(_0x3eb9c9[_0x2a0ccc('0x1e07')]&&_0x3eb9c9[_0x2a0ccc('0x1e07')]['errors']&&_0x3eb9c9[_0x2a0ccc('0x1e07')][_0x2a0ccc('0x1d4a')][_0x2a0ccc('0x543')]){_0x3a797b[_0x2a0ccc('0x1d4a')]=_0x3eb9c9[_0x2a0ccc('0x1e07')]['errors']||[{'message':_0x3eb9c9['toString'](),'type':_0x2a0ccc('0xdc0')}];for(let _0x48ef91=0x0;_0x48ef91<_0x3eb9c9['data'][_0x2a0ccc('0x1d4a')]['length'];_0x48ef91+=0x1){_0x349915[_0x2a0ccc('0x15aa')]({'title':_0x3eb9c9[_0x2a0ccc('0x1e07')][_0x2a0ccc('0x1d4a')][_0x48ef91][_0x2a0ccc('0x1810')],'msg':_0x3eb9c9[_0x2a0ccc('0x1e07')]['errors'][_0x48ef91]['message']});}}else _0x349915[_0x2a0ccc('0x15aa')]({'title':_0x3eb9c9['status']?_0x2a0ccc('0x137')+_0x3eb9c9[_0x2a0ccc('0x276f')]+_0x2a0ccc('0x160c')+_0x3eb9c9[_0x2a0ccc('0x2696')]:_0x2a0ccc('0xdc0'),'msg':_0x3eb9c9[_0x2a0ccc('0x1e07')]?JSON['stringify'](_0x3eb9c9[_0x2a0ccc('0x1e07')][_0x2a0ccc('0x67f')]):_0x3eb9c9[_0x2a0ccc('0x1b75')]()});});}function _0x2f2839(){const _0x512a88=_0x5ec27c;_0x3a797b['errors']=[],_0x5b0b92[_0x512a88('0xd82')][_0x512a88('0x1842')]({'id':_0x3a797b['faxQueue']['id']},_0x3a797b[_0x512a88('0xd82')])[_0x512a88('0x1964')]['then'](function(_0x275965){const _0x545009=_0x512a88,_0x45fe02=_0x3c8d8a()[_0x545009('0x18ab')](_0x3a797b['faxQueues'],{'id':_0x275965['id']});_0x45fe02&&_0x3c8d8a()['merge'](_0x45fe02,_0x3c8d8a()['pick'](_0x275965[_0x545009('0xf1f')](),_0x3c8d8a()['keys'](_0x45fe02))),_0x349915['success']({'title':_0x545009('0x10ed'),'msg':_0x3a797b[_0x545009('0xd82')][_0x545009('0x10ad')]?_0x3a797b[_0x545009('0xd82')][_0x545009('0x10ad')]+_0x545009('0x2788'):''}),_0x27d5fe(_0x275965);})[_0x512a88('0x103c')](function(_0x512c52){const _0x1561cc=_0x512a88;if(_0x512c52[_0x1561cc('0x1e07')]&&_0x512c52[_0x1561cc('0x1e07')][_0x1561cc('0x1d4a')]&&_0x512c52['data'][_0x1561cc('0x1d4a')]['length']){_0x3a797b['errors']=_0x512c52['data'][_0x1561cc('0x1d4a')]||[{'message':_0x512c52[_0x1561cc('0x1b75')](),'type':_0x1561cc('0xd8')}];for(let _0x17c1b2=0x0;_0x17c1b2<_0x512c52[_0x1561cc('0x1e07')][_0x1561cc('0x1d4a')][_0x1561cc('0x543')];_0x17c1b2++){_0x349915[_0x1561cc('0x15aa')]({'title':_0x512c52[_0x1561cc('0x1e07')][_0x1561cc('0x1d4a')][_0x17c1b2][_0x1561cc('0x1810')],'msg':_0x512c52[_0x1561cc('0x1e07')][_0x1561cc('0x1d4a')][_0x17c1b2][_0x1561cc('0x67f')]});}}else _0x349915[_0x1561cc('0x15aa')]({'title':_0x512c52['status']?_0x1561cc('0x137')+_0x512c52[_0x1561cc('0x276f')]+_0x1561cc('0x160c')+_0x512c52['statusText']:_0x1561cc('0xd8'),'msg':_0x512c52[_0x1561cc('0x1e07')]?JSON[_0x1561cc('0x100b')](_0x512c52['data'][_0x1561cc('0x67f')]):_0x512c52['toString']()});});}function _0x278cad(_0x6ed896){const _0x549706=_0x5ec27c;_0x3a797b[_0x549706('0x1d4a')]=[];const _0x597e15=_0x75620b[_0x549706('0x1d02')]()[_0x549706('0x20d6')](_0x549706('0x8ef'))[_0x549706('0x732')]('The\x20faxQueue\x20will\x20be\x20deleted.')['ariaLabel'](_0x549706('0x1b09'))['ok'](_0x549706('0x2373'))[_0x549706('0x1e1f')]('Cancel')[_0x549706('0x21de')](_0x6ed896);_0x75620b['show'](_0x597e15)[_0x549706('0x173b')](function(){const _0x5d60ba=_0x549706;_0x5b0b92['faxQueue'][_0x5d60ba('0x15e8')]({'id':_0x3a797b[_0x5d60ba('0xd82')]['id']})[_0x5d60ba('0x1964')][_0x5d60ba('0x173b')](function(){const _0x38ced6=_0x5d60ba;_0x3c8d8a()['remove'](_0x3a797b['faxQueues'],{'id':_0x3a797b[_0x38ced6('0xd82')]['id']}),_0x349915['success']({'title':'FaxQueue\x20properly\x20deleted!','msg':(_0x3a797b[_0x38ced6('0xd82')][_0x38ced6('0x10ad')]||_0x38ced6('0xd82'))+'\x20has\x20been\x20deleted!'}),_0x27d5fe(_0x3a797b[_0x38ced6('0xd82')]);})['catch'](function(_0x4a6e07){const _0x2de53c=_0x5d60ba;if(_0x4a6e07[_0x2de53c('0x1e07')]&&_0x4a6e07[_0x2de53c('0x1e07')][_0x2de53c('0x1d4a')]&&_0x4a6e07[_0x2de53c('0x1e07')][_0x2de53c('0x1d4a')][_0x2de53c('0x543')]){_0x3a797b[_0x2de53c('0x1d4a')]=_0x4a6e07[_0x2de53c('0x1e07')][_0x2de53c('0x1d4a')]||[{'message':_0x4a6e07[_0x2de53c('0x1b75')](),'type':_0x2de53c('0x2852')}];for(let _0x62067c=0x0;_0x62067c<_0x4a6e07['data'][_0x2de53c('0x1d4a')][_0x2de53c('0x543')];_0x62067c++){_0x349915[_0x2de53c('0x15aa')]({'title':_0x4a6e07['data'][_0x2de53c('0x1d4a')][_0x62067c]['type'],'msg':_0x4a6e07[_0x2de53c('0x1e07')][_0x2de53c('0x1d4a')][_0x62067c][_0x2de53c('0x67f')]});}}else _0x349915[_0x2de53c('0x15aa')]({'title':_0x4a6e07['status']?_0x2de53c('0x137')+_0x4a6e07[_0x2de53c('0x276f')]+_0x2de53c('0x160c')+_0x4a6e07['statusText']:_0x2de53c('0x2852'),'msg':_0x4a6e07[_0x2de53c('0x1e07')]?JSON[_0x2de53c('0x100b')](_0x4a6e07['data']['message']):_0x4a6e07[_0x2de53c('0x67f')]||_0x4a6e07[_0x2de53c('0x1b75')]()});});},function(){});}function _0x52b9ea(_0x29c573){return _0x29c573===null?undefined:new Date(_0x29c573);}function _0x27d5fe(_0x132792){const _0x2d89b4=_0x5ec27c;_0x75620b[_0x2d89b4('0x1cf4')](_0x132792);}}const _0xa41ddc=_0x183e2d;_0x181a8['$inject']=['$mdDialog','$q','toasty','api','faxQueue',_0x566993('0x264'),_0x566993('0x12a7'),_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x181a8(_0x42c162,_0x1134d0,_0x452a4b,_0x479abd,_0x5ce844,_0x2284c3,_0x17dd01,_0x5c561d,_0x4f0f62,_0x4927ff){const _0x1cb042=_0x566993,_0x58f477=this;_0x58f477[_0x1cb042('0x155f')]=_0x4f0f62[_0x1cb042('0x14d4')](),_0x58f477[_0x1cb042('0xd82')]=_0x5ce844,_0x58f477[_0x1cb042('0x1dc1')]=_0x4927ff,_0x58f477[_0x1cb042('0x12a7')]=_0x17dd01,_0x58f477[_0x1cb042('0x1b1f')]=[],_0x58f477['allowedItems']=[],_0x58f477[_0x1cb042('0x5f8')]=[],_0x58f477[_0x1cb042('0x1493')]=[],_0x58f477[_0x1cb042('0x15c9')]=[],_0x58f477[_0x1cb042('0x277e')]=![],_0x58f477[_0x1cb042('0x2535')]=_0x279c9e,_0x58f477['saveAgents']=_0x28d4f8,_0x58f477['closeDialog']=_0x1ca67b,_0x58f477[_0x1cb042('0x52e')]={'readOnly':!_0x58f477[_0x1cb042('0x1dc1')][_0x1cb042('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1cb042('0x10ad'),'line1':'fullname','line2':[_0x1cb042('0x10ad'),'internal'],'line3':'','labelAll':_0x5c561d[_0x1cb042('0x1467')](_0x1cb042('0x194c')),'labelSelected':_0x5c561d[_0x1cb042('0x1467')]('FAX.SELECTED_AGENTS'),'transferCallback':function(){const _0x129394=_0x1cb042,_0x5d6aa2=_0x3c8d8a()[_0x129394('0x226b')](_0x58f477['startingSelectedItems'],_0x58f477['selectedItems'],'id');_0x58f477[_0x129394('0x277e')]=_0x3c8d8a()['isEmpty'](_0x5d6aa2)?![]:!![];}};function _0x279c9e(){const _0x4d710f=_0x1cb042;return _0x4f0f62['hasRole']('admin')?_0xa47d5()[_0x4d710f('0x103c')](function(_0x17277b){const _0x46aef8=_0x4d710f;_0x452a4b[_0x46aef8('0x15aa')]({'title':_0x17277b[_0x46aef8('0x276f')]?_0x46aef8('0x137')+_0x17277b['status']+_0x46aef8('0x160c')+_0x17277b['statusText']:_0x46aef8('0x152b'),'msg':_0x17277b[_0x46aef8('0x276f')]?JSON[_0x46aef8('0x100b')](_0x17277b[_0x46aef8('0x1e07')]):_0x17277b[_0x46aef8('0x1b75')]()});}):_0x1f5835()[_0x4d710f('0x173b')](function(_0x8ced4d){const _0x24c9cc=_0x4d710f;return _0x58f477[_0x24c9cc('0x17c9')]=_0x8ced4d,_0xa47d5();})['catch'](function(_0x39154e){const _0x583d6b=_0x4d710f;_0x452a4b['error']({'title':_0x39154e[_0x583d6b('0x276f')]?'API:'+_0x39154e[_0x583d6b('0x276f')]+_0x583d6b('0x160c')+_0x39154e[_0x583d6b('0x2696')]:_0x583d6b('0x152b'),'msg':_0x39154e[_0x583d6b('0x276f')]?JSON[_0x583d6b('0x100b')](_0x39154e['data']):_0x39154e['toString']()});});}function _0x1f5835(){return _0x1134d0(function(_0x51ee46,_0xb50b57){const _0x1819d1=a0_0xde5e;_0x479abd[_0x1819d1('0x170e')][_0x1819d1('0x1d97')]({'userProfileId':_0x58f477[_0x1819d1('0x155f')][_0x1819d1('0x1946')],'name':_0x1819d1('0x1272')})[_0x1819d1('0x1964')][_0x1819d1('0x173b')](function(_0x5244f2){const _0xfa0d41=_0x5244f2&&_0x5244f2['rows']?_0x5244f2['rows'][0x0]:null;_0x51ee46(_0xfa0d41);})['catch'](function(_0x4cf872){_0xb50b57(_0x4cf872);});});}function _0xa47d5(){return _0x1134d0(function(_0x5455e1,_0x8e2ad7){const _0x3d321e=a0_0xde5e;return _0x5dec1f()[_0x3d321e('0x173b')](function(_0x2d8a83){const _0x96100a=_0x3d321e;return _0x58f477['items']=_0x2d8a83[_0x96100a('0x6aa')]?_0x2d8a83['rows']:[],_0x4f0f62[_0x96100a('0x1b4e')](_0x96100a('0x79b'))?_0x2d8a83:_0x58f477[_0x96100a('0x17c9')]?_0x58f477['section'][_0x96100a('0x273e')]?_0x2d8a83:_0x981e0b():null;})[_0x3d321e('0x173b')](function(_0xf3e90f){const _0x54a0c0=_0x3d321e,_0x4f7ef8=_0xf3e90f&&_0xf3e90f['rows']?_0xf3e90f[_0x54a0c0('0x6aa')]:[];return _0x58f477[_0x54a0c0('0x203e')]=_0x3c8d8a()['map'](_0x4f7ef8,function(_0x3d77a5){const _0x126738=_0x54a0c0;return _0x3c8d8a()[_0x126738('0x18ab')](_0x58f477['items'],{'id':_0x4f0f62[_0x126738('0x1b4e')](_0x126738('0x79b'))||_0x58f477[_0x126738('0x17c9')][_0x126738('0x273e')]?_0x3d77a5['id']:_0x3d77a5[_0x126738('0x1ce0')]});}),_0x58f477['startingAllowedItems']=angular[_0x54a0c0('0x2e3')](_0x58f477[_0x54a0c0('0x203e')]),_0x58f477[_0x54a0c0('0x1b1f')]['forEach'](function(_0x39e1cd){const _0x448a20=_0x54a0c0,_0x5ba65c=_0x3c8d8a()[_0x448a20('0x18ab')](_0x58f477[_0x448a20('0x203e')],{'id':_0x39e1cd['id']});_0x4f0f62[_0x448a20('0x1b4e')](_0x448a20('0x79b'))?_0x39e1cd[_0x448a20('0xf02')]=!![]:_0x39e1cd['isValid']=typeof _0x5ba65c!==_0x448a20('0x6e5')?!![]:![];}),_0x509f43();})[_0x3d321e('0x173b')](function(_0x4ce06a){const _0x5f4998=_0x3d321e,_0x5a850c=_0x4ce06a&&_0x4ce06a[_0x5f4998('0x6aa')]?_0x4ce06a['rows']:[];_0x58f477[_0x5f4998('0x5f8')]=_0x3c8d8a()['map'](_0x5a850c,function(_0x1f13c4){const _0x9dfff3=_0x5f4998,_0x1fd0fe=_0x3c8d8a()['find'](_0x58f477[_0x9dfff3('0x1b1f')],{'id':_0x1f13c4['id']});return _0x1fd0fe['penalty']=_0x1f13c4[_0x9dfff3('0x202d')]?_0x9dfff3('0x1929')+_0x1f13c4[_0x9dfff3('0x202d')]['penalty']:'',_0x1fd0fe['internal']=typeof _0x1f13c4['internal']!=='undefined'?'<'+_0x1f13c4['internal']+'>':'',_0x1fd0fe;}),_0x58f477[_0x5f4998('0x15c9')]=angular[_0x5f4998('0x2e3')](_0x58f477['selectedItems']),_0x58f477[_0x5f4998('0x52e')][_0x5f4998('0x5f8')]=_0x58f477[_0x5f4998('0x5f8')],_0x58f477[_0x5f4998('0x52e')]['items']=_0x3c8d8a()[_0x5f4998('0x1bd3')](_0x58f477[_0x5f4998('0x203e')],_0x58f477[_0x5f4998('0x52e')]['selectedItems'],'id'),_0x5455e1();})[_0x3d321e('0x103c')](function(_0x36b5fa){_0x8e2ad7(_0x36b5fa);});});}function _0x981e0b(){return _0x1134d0(function(_0x43214f,_0x14ccb7){const _0x597807=a0_0xde5e;return _0x479abd[_0x597807('0xda9')][_0x597807('0x1d97')]({'sectionId':_0x58f477['section']['id'],'nolimit':!![]})[_0x597807('0x1964')][_0x597807('0x173b')](function(_0xcb546f){_0x43214f(_0xcb546f);})[_0x597807('0x103c')](function(_0x78325a){_0x14ccb7(_0x78325a);});});}function _0x509f43(){return _0x1134d0(function(_0x1d97ed,_0x4fc2ad){const _0x2bfd17=a0_0xde5e;return _0x479abd[_0x2bfd17('0xd82')]['getAgents']({'id':_0x58f477[_0x2bfd17('0xd82')]['id'],'fields':_0x2bfd17('0x1d65'),'nolimit':!![],'role':_0x2bfd17('0x7b0')})[_0x2bfd17('0x1964')][_0x2bfd17('0x173b')](function(_0x2c90a6){_0x1d97ed(_0x2c90a6);})[_0x2bfd17('0x103c')](function(_0x46d351){_0x4fc2ad(_0x46d351);});});}function _0x5dec1f(){return _0x1134d0(function(_0x475b2c,_0x5b778e){const _0x22a512=a0_0xde5e;return _0x479abd[_0x22a512('0x166f')][_0x22a512('0x1d97')]({'fields':_0x22a512('0x1d65'),'nolimit':!![],'role':_0x22a512('0x7b0')})['$promise']['then'](function(_0x419574){_0x475b2c(_0x419574);})[_0x22a512('0x103c')](function(_0x59888b){_0x5b778e(_0x59888b);});});}function _0x174cda(_0x166156){return _0x1134d0(function(_0x3de337,_0x47f62a){const _0x3a784d=a0_0xde5e;_0x3c8d8a()[_0x3a784d('0x1a56')](_0x166156)?_0x3de337():_0x479abd[_0x3a784d('0xd82')][_0x3a784d('0x1ff1')]({'id':_0x58f477[_0x3a784d('0xd82')]['id'],'ids':_0x3c8d8a()[_0x3a784d('0x8a2')](_0x166156,'id')})[_0x3a784d('0x1964')][_0x3a784d('0x173b')](function(){_0x3de337();})['catch'](function(_0xc42d88){_0x47f62a(_0xc42d88);});});}function _0x957418(_0x204aa2){return _0x1134d0(function(_0x339a75,_0x1d32af){const _0x3430fe=a0_0xde5e;_0x3c8d8a()[_0x3430fe('0x1a56')](_0x204aa2)?_0x339a75():_0x479abd[_0x3430fe('0xd82')][_0x3430fe('0x2017')]({'id':_0x58f477[_0x3430fe('0xd82')]['id'],'ids':_0x3c8d8a()[_0x3430fe('0x8a2')](_0x204aa2,'id')})[_0x3430fe('0x1964')][_0x3430fe('0x173b')](function(){_0x339a75();})[_0x3430fe('0x103c')](function(_0x215093){_0x1d32af(_0x215093);});});}function _0x28d4f8(){const _0xedf9b9=_0x1cb042,_0x78f317=_0x3c8d8a()[_0xedf9b9('0x1bd3')](_0x58f477[_0xedf9b9('0x15c9')],_0x58f477['selectedItems'],'id'),_0x3360bd=_0x3c8d8a()[_0xedf9b9('0x1bd3')](_0x58f477['selectedItems'],_0x58f477['startingSelectedItems'],'id');return _0x957418(_0x78f317)['then'](function(){return _0x174cda(_0x3360bd);})['then'](function(){const _0x1ffe64=_0xedf9b9;_0x58f477[_0x1ffe64('0x277e')]=![],_0x58f477['startingAllowedItems']=angular[_0x1ffe64('0x2e3')](_0x58f477[_0x1ffe64('0x203e')]),_0x58f477[_0x1ffe64('0x15c9')]=angular[_0x1ffe64('0x2e3')](_0x58f477[_0x1ffe64('0x5f8')]),_0x452a4b[_0x1ffe64('0xdfe')]({'title':_0x1ffe64('0x23db'),'msg':_0x1ffe64('0x2027')});})['catch'](function(_0x334299){const _0x48d48a=_0xedf9b9;_0x452a4b[_0x48d48a('0x15aa')]({'title':_0x334299['status']?_0x48d48a('0x137')+_0x334299['status']+_0x48d48a('0x160c')+_0x334299[_0x48d48a('0x2696')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x334299[_0x48d48a('0x276f')]?JSON[_0x48d48a('0x100b')](_0x334299[_0x48d48a('0x1e07')]):_0x334299[_0x48d48a('0x1b75')]()});});}function _0x1ca67b(){_0x42c162['hide']();}}const _0x214ac3=_0x181a8;_0x4dbafe[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'api',_0x566993('0xd82'),_0x566993('0x638'),_0x566993('0x1600'),'crudPermissions'];function _0x4dbafe(_0xf7acbf,_0x5bfa8a,_0x1e93a3,_0xc9de05,_0x294edf,_0xcaa47a,_0x30daf2,_0x4241d2){const _0x3e2f51=_0x566993,_0x33984e=this;_0x33984e[_0x3e2f51('0x155f')]=_0x30daf2['getCurrentUser'](),_0x33984e[_0x3e2f51('0xd82')]=_0x294edf,_0x33984e['crudPermissions']=_0x4241d2,_0x33984e['items']=[],_0x33984e['allowedItems']=[],_0x33984e['selectedItems']=[],_0x33984e[_0x3e2f51('0x1493')]=[],_0x33984e['startingSelectedItems']=[],_0x33984e['pendingChanges']=![],_0x33984e[_0x3e2f51('0x52e')]={'readOnly':!_0x33984e['crudPermissions'][_0x3e2f51('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3e2f51('0x10ad'),'line1':_0x3e2f51('0x10ad'),'line2':'','line3':'','labelAll':_0xcaa47a['instant'](_0x3e2f51('0x17bc')),'labelSelected':_0xcaa47a[_0x3e2f51('0x1467')](_0x3e2f51('0x1708')),'transferCallback':function(){const _0x7b9354=_0x3e2f51,_0x4dc038=_0x3c8d8a()[_0x7b9354('0x226b')](_0x33984e['startingSelectedItems'],_0x33984e[_0x7b9354('0x5f8')],'id');_0x33984e['pendingChanges']=_0x3c8d8a()[_0x7b9354('0x1a56')](_0x4dc038)?![]:!![];}},_0x33984e['onInit']=_0x1c9fa6,_0x33984e[_0x3e2f51('0x2421')]=_0x204abb,_0x33984e[_0x3e2f51('0x18e2')]=_0x44da09;function _0x1c9fa6(){const _0x4ffa09=_0x3e2f51;return _0x30daf2[_0x4ffa09('0x1b4e')](_0x4ffa09('0x79b'))?_0x2ce2c9()[_0x4ffa09('0x103c')](function(_0x50eabf){const _0x30decf=_0x4ffa09;_0x1e93a3['error']({'title':_0x50eabf[_0x30decf('0x276f')]?_0x30decf('0x137')+_0x50eabf[_0x30decf('0x276f')]+'\x20-\x20'+_0x50eabf['statusText']:_0x30decf('0x15d3'),'msg':_0x50eabf[_0x30decf('0x276f')]?JSON[_0x30decf('0x100b')](_0x50eabf[_0x30decf('0x1e07')]):_0x50eabf[_0x30decf('0x1b75')]()});}):_0x35558f()[_0x4ffa09('0x173b')](function(_0x42899c){const _0x288464=_0x4ffa09;return _0x33984e[_0x288464('0x17c9')]=_0x42899c,_0x2ce2c9();})['catch'](function(_0x3ccce4){const _0x575fd3=_0x4ffa09;_0x1e93a3[_0x575fd3('0x15aa')]({'title':_0x3ccce4[_0x575fd3('0x276f')]?'API:'+_0x3ccce4[_0x575fd3('0x276f')]+_0x575fd3('0x160c')+_0x3ccce4[_0x575fd3('0x2696')]:_0x575fd3('0x15d3'),'msg':_0x3ccce4[_0x575fd3('0x276f')]?JSON[_0x575fd3('0x100b')](_0x3ccce4[_0x575fd3('0x1e07')]):_0x3ccce4[_0x575fd3('0x1b75')]()});});}function _0x35558f(){return _0x5bfa8a(function(_0xcd355f,_0x551aa5){const _0x23a4ab=a0_0xde5e;_0xc9de05['userProfileSection']['get']({'userProfileId':_0x33984e[_0x23a4ab('0x155f')][_0x23a4ab('0x1946')],'name':_0x23a4ab('0x1e5c')})[_0x23a4ab('0x1964')][_0x23a4ab('0x173b')](function(_0x56d4ca){const _0x2cf9b3=_0x23a4ab,_0xb262a0=_0x56d4ca&&_0x56d4ca[_0x2cf9b3('0x6aa')]?_0x56d4ca[_0x2cf9b3('0x6aa')][0x0]:null;_0xcd355f(_0xb262a0);})['catch'](function(_0x1581e7){_0x551aa5(_0x1581e7);});});}function _0x2ce2c9(){return _0x5bfa8a(function(_0x2d8e81,_0x2e492c){const _0x514dff=a0_0xde5e;return _0x191a15()['then'](function(_0x47bdb3){const _0x592a20=a0_0xde5e;return _0x33984e[_0x592a20('0x1b1f')]=_0x47bdb3['rows']?_0x47bdb3[_0x592a20('0x6aa')]:[],_0x30daf2[_0x592a20('0x1b4e')](_0x592a20('0x79b'))?_0x47bdb3:_0x33984e[_0x592a20('0x17c9')]?_0x33984e[_0x592a20('0x17c9')]['autoAssociation']?_0x47bdb3:_0x2809f2():null;})[_0x514dff('0x173b')](function(_0x57e306){const _0x42135e=_0x514dff,_0x3cae3b=_0x57e306&&_0x57e306[_0x42135e('0x6aa')]?_0x57e306[_0x42135e('0x6aa')]:[];return _0x33984e[_0x42135e('0x203e')]=_0x3c8d8a()[_0x42135e('0x8a2')](_0x3cae3b,function(_0xe8574c){const _0x540b05=_0x42135e;return _0x3c8d8a()[_0x540b05('0x18ab')](_0x33984e[_0x540b05('0x1b1f')],{'id':_0x30daf2['hasRole'](_0x540b05('0x79b'))||_0x33984e[_0x540b05('0x17c9')][_0x540b05('0x273e')]?_0xe8574c['id']:_0xe8574c['resourceId']});}),_0x33984e[_0x42135e('0x1b1f')][_0x42135e('0xa6a')](function(_0x5c8292){const _0x27860b=_0x42135e,_0x29f577=_0x3c8d8a()[_0x27860b('0x18ab')](_0x33984e[_0x27860b('0x203e')],{'id':_0x5c8292['id']});_0x30daf2[_0x27860b('0x1b4e')](_0x27860b('0x79b'))?_0x5c8292[_0x27860b('0xf02')]=!![]:_0x5c8292['isValid']=typeof _0x29f577!==_0x27860b('0x6e5')?!![]:![];}),_0x531db3();})[_0x514dff('0x173b')](function(_0x134c10){const _0x12eed5=_0x514dff,_0xa5d061=_0x134c10&&_0x134c10[_0x12eed5('0x6aa')]?_0x134c10[_0x12eed5('0x6aa')]:[];_0x33984e[_0x12eed5('0x5f8')]=_0x3c8d8a()[_0x12eed5('0x8a2')](_0xa5d061,function(_0xd038e3){const _0x28ce86=_0x12eed5;return _0x3c8d8a()[_0x28ce86('0x18ab')](_0x33984e[_0x28ce86('0x1b1f')],{'id':_0xd038e3['id']});}),_0x33984e['startingSelectedItems']=angular[_0x12eed5('0x2e3')](_0x33984e[_0x12eed5('0x5f8')]),_0x33984e[_0x12eed5('0x52e')][_0x12eed5('0x5f8')]=_0x33984e[_0x12eed5('0x5f8')],_0x33984e[_0x12eed5('0x52e')][_0x12eed5('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x33984e[_0x12eed5('0x203e')],_0x33984e[_0x12eed5('0x52e')][_0x12eed5('0x5f8')],'id'),_0x2d8e81();})[_0x514dff('0x103c')](function(_0x525cc2){_0x2e492c(_0x525cc2);});});}function _0x2809f2(){return _0x5bfa8a(function(_0x48c224,_0x5c343f){const _0x270d8e=a0_0xde5e;return _0xc9de05['userProfileResource'][_0x270d8e('0x1d97')]({'sectionId':_0x33984e[_0x270d8e('0x17c9')]['id'],'nolimit':!![]})[_0x270d8e('0x1964')][_0x270d8e('0x173b')](function(_0x4e318e){_0x48c224(_0x4e318e);})['catch'](function(_0x3082bb){_0x5c343f(_0x3082bb);});});}function _0x531db3(){return _0x5bfa8a(function(_0x232788,_0x502bdf){const _0x4dd35f=a0_0xde5e;return _0xc9de05[_0x4dd35f('0xd82')][_0x4dd35f('0x1592')]({'id':_0x33984e['faxQueue']['id'],'fields':'id,name','nolimit':!![]})[_0x4dd35f('0x1964')][_0x4dd35f('0x173b')](function(_0x382a6a){_0x232788(_0x382a6a);})[_0x4dd35f('0x103c')](function(_0x1ecfa1){_0x502bdf(_0x1ecfa1);});});}function _0x191a15(){return _0x5bfa8a(function(_0x452587,_0x266edd){const _0x4a6acf=a0_0xde5e;return _0xc9de05[_0x4a6acf('0xe10')][_0x4a6acf('0x1d97')]({'fields':_0x4a6acf('0xd52'),'nolimit':!![]})[_0x4a6acf('0x1964')][_0x4a6acf('0x173b')](function(_0x3fc003){_0x452587(_0x3fc003);})['catch'](function(_0x17685f){_0x266edd(_0x17685f);});});}function _0x325b4d(_0x59e3cb){return _0x5bfa8a(function(_0x4fb794,_0x15c9c0){const _0x3ce830=a0_0xde5e;_0x3c8d8a()[_0x3ce830('0x1a56')](_0x59e3cb)?_0x4fb794():_0xc9de05[_0x3ce830('0xd82')][_0x3ce830('0x500')]({'id':_0x33984e[_0x3ce830('0xd82')]['id'],'ids':_0x3c8d8a()[_0x3ce830('0x8a2')](_0x59e3cb,'id')})[_0x3ce830('0x1964')]['then'](function(){_0x4fb794();})[_0x3ce830('0x103c')](function(_0x3e440e){_0x15c9c0(_0x3e440e);});});}function _0x599acf(_0x20ecaf){return _0x5bfa8a(function(_0x22cf49,_0x49e4af){const _0x261d15=a0_0xde5e;_0x3c8d8a()[_0x261d15('0x1a56')](_0x20ecaf)?_0x22cf49():_0xc9de05['faxQueue']['removeTeams']({'id':_0x33984e['faxQueue']['id'],'ids':_0x3c8d8a()['map'](_0x20ecaf,'id')})[_0x261d15('0x1964')]['then'](function(){_0x22cf49();})[_0x261d15('0x103c')](function(_0x79f499){_0x49e4af(_0x79f499);});});}function _0x204abb(){const _0x184c69=_0x3e2f51,_0x10b8e3=_0x3c8d8a()[_0x184c69('0x1bd3')](_0x33984e[_0x184c69('0x15c9')],_0x33984e['selectedItems'],'id'),_0x5077ad=_0x3c8d8a()['differenceBy'](_0x33984e[_0x184c69('0x5f8')],_0x33984e[_0x184c69('0x15c9')],'id');return _0x599acf(_0x10b8e3)[_0x184c69('0x173b')](function(){return _0x325b4d(_0x5077ad);})[_0x184c69('0x173b')](function(){const _0x28f57d=_0x184c69;_0x33984e[_0x28f57d('0x277e')]=![],_0x33984e[_0x28f57d('0x1493')]=angular[_0x28f57d('0x2e3')](_0x33984e['allowedItems']),_0x33984e[_0x28f57d('0x15c9')]=angular['copy'](_0x33984e[_0x28f57d('0x5f8')]),_0x1e93a3[_0x28f57d('0xdfe')]({'title':_0x28f57d('0x23db'),'msg':_0x28f57d('0x1b39')});})[_0x184c69('0x103c')](function(_0x2a3e80){const _0x28dfd0=_0x184c69;_0x1e93a3[_0x28dfd0('0x15aa')]({'title':_0x2a3e80[_0x28dfd0('0x276f')]?'API:'+_0x2a3e80[_0x28dfd0('0x276f')]+_0x28dfd0('0x160c')+_0x2a3e80[_0x28dfd0('0x2696')]:_0x28dfd0('0x1f48'),'msg':_0x2a3e80[_0x28dfd0('0x276f')]?JSON[_0x28dfd0('0x100b')](_0x2a3e80[_0x28dfd0('0x1e07')]):_0x2a3e80[_0x28dfd0('0x1b75')]()});});}function _0x44da09(){const _0x14c099=_0x3e2f51;_0xf7acbf[_0x14c099('0x1cf4')]();}}const _0x33fba0=_0x4dbafe,_0x597106=_0x21a6a1['p']+_0x566993('0x240f');_0x339de0[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),'license','setting',_0x566993('0xbd4'),'toasty',_0x566993('0x1600'),_0x566993('0xd82'),'userProfileSection'];function _0x339de0(_0x4e3ccb,_0xcbee0f,_0x17765f,_0x526fa1,_0x190e43,_0x94c84a,_0x684688,_0x17ab76,_0x1bb01d,_0x168219,_0x1c4c75,_0x5d1488){const _0xf5983=_0x566993,_0x3e2f47=this;_0x3e2f47[_0xf5983('0x155f')]=_0x168219[_0xf5983('0x14d4')](),_0x3e2f47[_0xf5983('0x1a29')]=_0x94c84a,_0x3e2f47[_0xf5983('0x251')]=_0x684688,_0x3e2f47[_0xf5983('0x644')]=_0x3e2f47[_0xf5983('0x251')][_0xf5983('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3e2f47[_0xf5983('0x614')]=_0xcbee0f[_0xf5983('0x375')]()+_0xf5983('0x122b')+_0xcbee0f[_0xf5983('0x4d1')](),_0x3e2f47[_0xf5983('0xd82')]=_0x1c4c75||_0x4e3ccb[_0xf5983('0x197a')][_0xf5983('0xd82')]||{},_0x3e2f47['userProfileSection']=_0x5d1488&&_0x5d1488[_0xf5983('0x1a2f')]==0x1?_0x5d1488[_0xf5983('0x6aa')][0x0]:null,_0x3e2f47['crudPermissions']=_0x168219[_0xf5983('0xde6')](_0x3e2f47[_0xf5983('0x170e')]?_0x3e2f47['userProfileSection']['crudPermissions']:null),_0x3e2f47[_0xf5983('0xb0')]={},_0x3e2f47['selectedTab']=_0x4e3ccb[_0xf5983('0x197a')][_0xf5983('0x1e66')]||0x0,_0x3e2f47[_0xf5983('0x17d4')]=_0x47c06c,_0x3e2f47[_0xf5983('0x2118')]=_0x4e91a6,_0x3e2f47['alert']=_0x1bb01d[_0xf5983('0x2787')],_0x3e2f47['gotoFaxQueues']=_0x1cff11,_0x3e2f47[_0xf5983('0x1831')]=_0xb759b9;function _0x47c06c(_0x4a4c2e,_0xf61177){const _0x38807c=_0xf5983;_0x17765f['show']({'controller':_0x38807c('0xcae'),'controllerAs':'vm','templateUrl':_0x597106,'parent':angular['element'](_0x526fa1['body']),'targetEvent':_0xf61177,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x4a4c2e,'faxQueues':_0x3e2f47[_0x38807c('0x264')]?_0x3e2f47[_0x38807c('0x264')][_0x38807c('0x6aa')]:[],'crudPermissions':_0x3e2f47['crudPermissions']}});}function _0x4e91a6(_0x42bb25,_0x262b7d){const _0x2165b7=_0xf5983;_0x17765f[_0x2165b7('0x1cb7')]({'controller':_0x2165b7('0x410'),'controllerAs':'vm','templateUrl':_0x5d0afa,'parent':angular[_0x2165b7('0xb6d')](_0x526fa1[_0x2165b7('0x1a5')]),'targetEvent':_0x262b7d,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x42bb25,'faxQueues':_0x3e2f47[_0x2165b7('0x264')]?_0x3e2f47[_0x2165b7('0x264')][_0x2165b7('0x6aa')]:[],'crudPermissions':_0x3e2f47['crudPermissions'],'realtime':![]}});}function _0x1cff11(){const _0x2b7f0b=_0xf5983;_0x4e3ccb['go'](_0x2b7f0b('0x1186'),{},{'reload':_0x2b7f0b('0x1186')});}function _0xb759b9(){const _0x71ef03=_0xf5983;_0x17ab76['faxQueue']['update']({'id':_0x3e2f47['faxQueue']['id']},_0x3e2f47['faxQueue'])[_0x71ef03('0x1964')][_0x71ef03('0x173b')](function(){const _0x4a502a=_0x71ef03;_0x1bb01d[_0x4a502a('0xdfe')]({'title':'FaxQueue\x20updated!','msg':_0x3e2f47[_0x4a502a('0xd82')][_0x4a502a('0x10ad')]?_0x3e2f47[_0x4a502a('0xd82')]['name']+'\x20has\x20been\x20updated!':''});})[_0x71ef03('0x103c')](function(_0x15e5b2){const _0x895114=_0x71ef03;_0x1bb01d[_0x895114('0x15aa')]({'title':_0x15e5b2['status']?_0x895114('0x137')+_0x15e5b2['status']+_0x895114('0x160c')+_0x15e5b2['statusText']:_0x895114('0x1f61'),'msg':_0x15e5b2[_0x895114('0x1e07')]?JSON[_0x895114('0x100b')](_0x15e5b2[_0x895114('0x1e07')]):_0x15e5b2[_0x895114('0x1b75')]()});});}}const _0xc5027f=_0x339de0;_0x4d961c[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x264'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x4d961c(_0x3f03ab,_0x530736,_0x3d0dc3,_0x5df5b4,_0x43ad7b,_0x2b0f34,_0x1f1a2c,_0x31e3b7,_0x36ce06,_0x692462,_0x1b2dfe,_0x537f29,_0x566dad,_0x596888,_0x2c27c9,_0x2fe4aa,_0x413c41){const _0x3a599e=_0x566993,_0x2e142c=this;_0x2e142c[_0x3a599e('0x1a29')]=_0x2fe4aa,_0x2e142c[_0x3a599e('0x251')]=_0x413c41,_0x2e142c['currentUser']=_0x2c27c9[_0x3a599e('0x14d4')](),_0x2e142c[_0x3a599e('0x264')]=_0x36ce06||{'count':0x0,'rows':[]},_0x2e142c[_0x3a599e('0x257b')]=_0x692462,_0x2e142c[_0x3a599e('0x170e')]=_0x1b2dfe&&_0x1b2dfe[_0x3a599e('0x1a2f')]==0x1?_0x1b2dfe[_0x3a599e('0x6aa')][0x0]:null,_0x2e142c[_0x3a599e('0x1dc1')]=_0x2c27c9[_0x3a599e('0xde6')](_0x2e142c[_0x3a599e('0x170e')]?_0x2e142c[_0x3a599e('0x170e')][_0x3a599e('0x1dc1')]:null),_0x2e142c[_0x3a599e('0xdf9')]=_0x3a599e('0x264'),_0x2e142c[_0x3a599e('0x14d6')]='',_0x2e142c[_0x3a599e('0x2303')]=null,_0x2e142c[_0x3a599e('0x225c')]=[],_0x2e142c[_0x3a599e('0xc49')]={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x3a599e('0x1769'),'channel':_0x3a599e('0x16d'),'limit':0xa,'page':0x1},_0x2e142c[_0x3a599e('0x2125')]=_0x3c8d8a()['keyBy']([{'option':'Beepall','value':_0x3a599e('0x6ac')},{'option':_0x3a599e('0xd86'),'value':_0x3a599e('0x1b87')}],function(_0x4b400c){const _0x10c522=_0x3a599e;return _0x3c8d8a()[_0x10c522('0x166c')](_0x4b400c['value'],new RegExp('\x27','g'),'');}),_0x2e142c[_0x3a599e('0x222e')]=_0x74969c,_0x2e142c[_0x3a599e('0x17d4')]=_0x4a48fc,_0x2e142c['agentadddialog']=_0x37e74e,_0x2e142c[_0x3a599e('0x1a20')]=_0x2c514a,_0x2e142c['gotorealtimegoto']=_0x27999a,_0x2e142c[_0x3a599e('0xdfe')]=_0x249b90,_0x2e142c[_0x3a599e('0x816')]=_0xd32b77,_0x2e142c[_0x3a599e('0xf98')]=_0x533840,_0x2e142c[_0x3a599e('0x13b4')]=_0x32c53e,_0x2e142c[_0x3a599e('0xca7')]=_0x54a1ce,_0x2e142c[_0x3a599e('0xd0d')]=_0x42ab06,_0x2e142c[_0x3a599e('0xdfb')]=_0x33a62a,_0x2e142c['selectAllFaxQueues']=_0x55a776;function _0x74969c(_0x499a20){const _0x3f5e7c=_0x3a599e;_0x3d0dc3['go'](_0x3f5e7c('0x1e7b'),{'id':_0x499a20['id'],'faxQueue':_0x499a20,'crudPermissions':_0x2e142c[_0x3f5e7c('0x1dc1')]});}function _0x4a48fc(_0x2fc61c,_0x55605d){const _0x4f4752=_0x3a599e;_0x43ad7b['show']({'controller':'FaxQueueteamaddController','controllerAs':'vm','templateUrl':_0x597106,'parent':angular[_0x4f4752('0xb6d')](_0x2b0f34[_0x4f4752('0x1a5')]),'targetEvent':_0x55605d,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x2fc61c,'faxQueues':_0x2e142c[_0x4f4752('0x264')]?_0x2e142c['faxQueues']['rows']:[],'crudPermissions':_0x2e142c[_0x4f4752('0x1dc1')]}});}function _0x37e74e(_0x5ac201,_0x362323){const _0x38db7a=_0x3a599e;_0x43ad7b[_0x38db7a('0x1cb7')]({'controller':_0x38db7a('0x410'),'controllerAs':'vm','templateUrl':_0x5d0afa,'parent':angular['element'](_0x2b0f34[_0x38db7a('0x1a5')]),'targetEvent':_0x362323,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x5ac201,'faxQueues':_0x2e142c[_0x38db7a('0x264')]?_0x2e142c[_0x38db7a('0x264')]['rows']:[],'crudPermissions':_0x2e142c[_0x38db7a('0x1dc1')],'realtime':![]}});}function _0x2c514a(_0xf94a25,_0x4120f5){const _0x377d12=_0x3a599e,_0xc75fae=_0x43ad7b['confirm']()[_0x377d12('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()['startCase'](_0x377d12('0xd82'))+'?')[_0x377d12('0xf8b')](_0x377d12('0x15b9')+(_0xf94a25[_0x377d12('0x10ad')]||_0x377d12('0xd82'))+_0x377d12('0x24be')+_0x377d12('0xd23'))[_0x377d12('0x217')](_0x377d12('0x1f0e'))[_0x377d12('0x21de')](_0x4120f5)['ok']('OK')[_0x377d12('0x1e1f')](_0x377d12('0x468'));_0x43ad7b['show'](_0xc75fae)['then'](function(){_0x32c53e(_0xf94a25);},function(){const _0x1eb0f4=_0x377d12;console['log'](_0x1eb0f4('0x468'));});}function _0x27999a(){const _0x3d7fb1=_0x3a599e;if(_0x2c27c9[_0x3d7fb1('0x1b4e')](_0x3d7fb1('0x79b')))_0x3d0dc3['go']('app.fax.realtime.queues',{});else return _0x537f29['userProfileSection'][_0x3d7fb1('0x1d97')]({'userProfileId':_0x2c27c9[_0x3d7fb1('0x14d4')]()[_0x3d7fb1('0x1946')],'sectionId':0x38e})[_0x3d7fb1('0x1964')][_0x3d7fb1('0x173b')](function(_0x237d31){const _0x529582=_0x3d7fb1,_0x56e3ad=_0x237d31&&_0x237d31[_0x529582('0x6aa')]?_0x237d31[_0x529582('0x6aa')][0x0]:null;_0x56e3ad&&_0x56e3ad[_0x529582('0x830')]?_0x3d0dc3['go'](_0x529582('0x12e9'),{}):_0x596888[_0x529582('0x2787')]({'title':_0x31e3b7[_0x529582('0x1467')](_0x529582('0x4aa')),'msg':_0x31e3b7[_0x529582('0x1467')](_0x529582('0x7d4'))});})[_0x3d7fb1('0x103c')](function(_0x3ca47f){const _0x217a22=_0x3d7fb1;_0x596888[_0x217a22('0x15aa')]({'title':_0x3ca47f[_0x217a22('0x276f')]?_0x217a22('0x137')+_0x3ca47f['status']+_0x217a22('0x160c')+_0x3ca47f['statusText']:_0x217a22('0x144d'),'msg':_0x3ca47f['status']?JSON['stringify'](_0x3ca47f[_0x217a22('0x1e07')]):_0x3ca47f['toString']()});});}let _0x123339=!![],_0x51d009=0x1;_0x3f03ab[_0x3a599e('0x1bdb')](_0x3a599e('0x157b'),function(_0x8fa400,_0x35041a){const _0x2a31c4=_0x3a599e;_0x123339?_0x1f1a2c(function(){_0x123339=![];}):(!_0x35041a&&(_0x51d009=_0x2e142c[_0x2a31c4('0xc49')][_0x2a31c4('0x182e')]),_0x8fa400!==_0x35041a&&(_0x2e142c[_0x2a31c4('0xc49')][_0x2a31c4('0x182e')]=0x1),!_0x8fa400&&(_0x2e142c[_0x2a31c4('0xc49')][_0x2a31c4('0x182e')]=_0x51d009),_0x2e142c['getFaxQueues']());});function _0x249b90(_0x2919af){const _0x5b88d4=_0x3a599e;_0x2e142c[_0x5b88d4('0x264')]=_0x2919af||{'count':0x0,'rows':[]};}function _0xd32b77(){const _0x2528c2=_0x3a599e;_0x2e142c[_0x2528c2('0xc49')][_0x2528c2('0x17f0')]=(_0x2e142c[_0x2528c2('0xc49')]['page']-0x1)*_0x2e142c[_0x2528c2('0xc49')][_0x2528c2('0x3e')],_0x2c27c9[_0x2528c2('0x1b4e')]('admin')?_0x2e142c[_0x2528c2('0x2219')]=_0x537f29[_0x2528c2('0xd82')][_0x2528c2('0x1d97')](_0x2e142c[_0x2528c2('0xc49')],_0x249b90)[_0x2528c2('0x1964')]:(_0x2e142c['query']['id']=_0x2e142c[_0x2528c2('0x257b')]['id'],_0x2e142c['query'][_0x2528c2('0x17c9')]='FaxQueues',_0x2e142c[_0x2528c2('0x2219')]=_0x537f29[_0x2528c2('0x257b')][_0x2528c2('0x135b')](_0x2e142c[_0x2528c2('0xc49')],_0x249b90)[_0x2528c2('0x1964')]);}function _0x533840(_0x3534ec,_0x174377){const _0x379840=_0x3a599e;_0x43ad7b[_0x379840('0x1cb7')]({'controller':_0x379840('0x1e00'),'controllerAs':'vm','templateUrl':_0x24306f,'parent':angular[_0x379840('0xb6d')](_0x2b0f34['body']),'targetEvent':_0x3534ec,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x174377,'faxQueues':_0x2e142c['faxQueues'][_0x379840('0x6aa')],'license':_0x2e142c[_0x379840('0x1a29')],'setting':_0x2e142c[_0x379840('0x251')],'crudPermissions':_0x2e142c[_0x379840('0x1dc1')]}});}function _0x32c53e(_0x325722){const _0x1f8abf=_0x3a599e;_0x537f29[_0x1f8abf('0xd82')][_0x1f8abf('0x15e8')]({'id':_0x325722['id']})['$promise'][_0x1f8abf('0x173b')](function(){const _0x2d13b5=_0x1f8abf;_0x3c8d8a()[_0x2d13b5('0x1a8b')](_0x2e142c[_0x2d13b5('0x264')]['rows'],{'id':_0x325722['id']}),_0x2e142c[_0x2d13b5('0x264')][_0x2d13b5('0x1a2f')]-=0x1,!_0x2e142c[_0x2d13b5('0x264')][_0x2d13b5('0x6aa')][_0x2d13b5('0x543')]&&_0x2e142c[_0x2d13b5('0x816')](),_0x596888[_0x2d13b5('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x2d13b5('0x2cd'))+'\x20deleted!','msg':_0x325722[_0x2d13b5('0x10ad')]?_0x325722[_0x2d13b5('0x10ad')]+_0x2d13b5('0x25d2'):''});})['catch'](function(_0x40bd66){const _0x3bf992=_0x1f8abf;if(_0x40bd66['data']&&_0x40bd66['data'][_0x3bf992('0x1d4a')]&&_0x40bd66[_0x3bf992('0x1e07')]['errors'][_0x3bf992('0x543')]){_0x2e142c[_0x3bf992('0x1d4a')]=_0x40bd66[_0x3bf992('0x1e07')]['errors']||[{'message':_0x40bd66[_0x3bf992('0x1b75')](),'type':_0x3bf992('0x17a0')}];for(let _0x15bd6c=0x0;_0x15bd6c<_0x40bd66[_0x3bf992('0x1e07')][_0x3bf992('0x1d4a')][_0x3bf992('0x543')];_0x15bd6c++){_0x596888[_0x3bf992('0x15aa')]({'title':_0x40bd66[_0x3bf992('0x1e07')][_0x3bf992('0x1d4a')][_0x15bd6c][_0x3bf992('0x1810')],'msg':_0x40bd66[_0x3bf992('0x1e07')][_0x3bf992('0x1d4a')][_0x15bd6c]['message']});}}else _0x596888[_0x3bf992('0x15aa')]({'title':_0x40bd66[_0x3bf992('0x276f')]?'API:'+_0x40bd66['status']+_0x3bf992('0x160c')+_0x40bd66[_0x3bf992('0x2696')]:'SYSTEM:DELETEfaxQueue','msg':_0x40bd66['data']?JSON[_0x3bf992('0x100b')](_0x40bd66[_0x3bf992('0x1e07')][_0x3bf992('0x67f')]):_0x40bd66['message']||_0x40bd66[_0x3bf992('0x1b75')]()});});}function _0x54a1ce(){const _0x27273e=_0x3a599e,_0x1bc065=angular[_0x27273e('0x2e3')](_0x2e142c[_0x27273e('0x225c')]);return _0x2e142c['selectedFaxQueues']=[],_0x1bc065;}function _0x42ab06(_0x35aeda){const _0x3cf3ea=_0x3a599e,_0x35f23c=_0x43ad7b[_0x3cf3ea('0x1d02')]()['title'](_0x3cf3ea('0x24c1'))[_0x3cf3ea('0xf8b')](_0x3cf3ea('0x15b9')+_0x2e142c[_0x3cf3ea('0x225c')][_0x3cf3ea('0x543')]+_0x3cf3ea('0xcb4')+_0x3cf3ea('0xd23'))[_0x3cf3ea('0x217')]('delete\x20FaxQueues')[_0x3cf3ea('0x21de')](_0x35aeda)['ok']('OK')['cancel'](_0x3cf3ea('0x468'));_0x43ad7b[_0x3cf3ea('0x1cb7')](_0x35f23c)['then'](function(){const _0x345080=_0x3cf3ea;_0x2e142c[_0x345080('0x225c')][_0x345080('0xa6a')](function(_0x2ad2c5){_0x32c53e(_0x2ad2c5);}),_0x2e142c[_0x345080('0x225c')]=[];});}function _0x33a62a(){const _0x14a9fe=_0x3a599e;_0x2e142c[_0x14a9fe('0x225c')]=[];}function _0x55a776(){const _0x572ab7=_0x3a599e;_0x2e142c[_0x572ab7('0x225c')]=_0x2e142c[_0x572ab7('0x264')][_0x572ab7('0x6aa')];}}const _0x8456ef=_0x4d961c;_0x2f2da9[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x2f2da9(_0xd2262c,_0x55239d){const _0x3e8179=_0x566993;_0xd2262c['state']('app.fax',{'abstract':!![],'url':_0x3e8179('0x2011')})[_0x3e8179('0x1a49')](_0x3e8179('0x1186'),{'url':_0x3e8179('0x1e76'),'views':{'content@app':{'templateUrl':_0x31ba6b,'controller':_0x3e8179('0x243f')}},'resolve':{'faxQueues':[_0x3e8179('0x2401'),_0x3e8179('0x1600'),function(_0x287f2d,_0x3fbd0f){const _0x20db88=_0x3e8179;return _0x3fbd0f[_0x20db88('0x1b4e')](_0x20db88('0x79b'))?_0x287f2d[_0x20db88('0x155b')](_0x20db88('0x2560'),{'fields':_0x20db88('0xab9'),'sort':_0x20db88('0x1769'),'channel':_0x20db88('0x16d'),'limit':0xa,'offset':0x0}):_0x287f2d[_0x20db88('0x155b')](_0x20db88('0x14b3'),{'id':_0x3fbd0f[_0x20db88('0x14d4')]()[_0x20db88('0x1946')],'section':'FaxQueues','fields':_0x20db88('0xab9'),'sort':_0x20db88('0x1769'),'channel':_0x20db88('0x16d'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e8179('0x2401'),_0x3e8179('0x1600'),function(_0x43cc6a,_0x174122){const _0x24f84a=_0x3e8179;return _0x174122['hasRole'](_0x24f84a('0x79b'))?null:_0x43cc6a[_0x24f84a('0x155b')](_0x24f84a('0x1f20'),{'fields':_0x24f84a('0x19dd'),'id':_0x174122[_0x24f84a('0x14d4')]()[_0x24f84a('0x1946')]});}],'userProfileSection':[_0x3e8179('0x2401'),_0x3e8179('0x1600'),function(_0x2809b4,_0x56a6d8){const _0x2e372e=_0x3e8179;return _0x56a6d8[_0x2e372e('0x1b4e')](_0x2e372e('0x79b'))?null:_0x2809b4['resolve'](_0x2e372e('0x40'),{'fields':_0x2e372e('0x1348'),'userProfileId':_0x56a6d8[_0x2e372e('0x14d4')]()['userProfileId'],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x3e8179('0x16d')})[_0x3e8179('0x1a49')](_0x3e8179('0x1e7b'),{'url':'/:id?tab','params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2ae9d3,'controller':_0x3e8179('0xf8c')}},'resolve':{'faxQueue':['apiResolver','$stateParams',function(_0x24e343,_0x2a69a4){const _0x190944=_0x3e8179;return _0x24e343['resolve'](_0x190944('0x2560'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x2a69a4['id']});}],'userProfileSection':[_0x3e8179('0x2401'),'Auth',function(_0x345d01,_0x147b98){const _0x3baab7=_0x3e8179;return _0x345d01[_0x3baab7('0x155b')](_0x3baab7('0x40'),{'fields':_0x3baab7('0x1348'),'userProfileId':_0x147b98[_0x3baab7('0x14d4')]()[_0x3baab7('0x1946')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x3e8179('0x16d')})['state']('app.fax.faxAccounts',{'url':_0x3e8179('0x25d6'),'views':{'content@app':{'templateUrl':_0x502a00,'controller':_0x3e8179('0x1185')}},'resolve':{'faxAccounts':[_0x3e8179('0x2401'),_0x3e8179('0x1600'),function(_0x20e83e,_0x948a06){const _0x59b263=_0x3e8179;return _0x948a06[_0x59b263('0x1b4e')](_0x59b263('0x79b'))?_0x20e83e[_0x59b263('0x155b')](_0x59b263('0x2368'),{'fields':_0x59b263('0xace'),'sort':_0x59b263('0x1769'),'limit':0xa,'offset':0x0}):_0x20e83e[_0x59b263('0x155b')](_0x59b263('0x14b3'),{'id':_0x948a06['getCurrentUser']()[_0x59b263('0x1946')],'section':_0x59b263('0x1ba2'),'fields':_0x59b263('0xace'),'sort':_0x59b263('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3e8179('0x2401'),'Auth',function(_0xd84610,_0x158f05){const _0x51edc5=_0x3e8179;return _0x158f05[_0x51edc5('0x1b4e')](_0x51edc5('0x79b'))?null:_0xd84610[_0x51edc5('0x155b')](_0x51edc5('0x1f20'),{'fields':_0x51edc5('0x19dd'),'id':_0x158f05[_0x51edc5('0x14d4')]()[_0x51edc5('0x1946')]});}],'userProfileSection':[_0x3e8179('0x2401'),'Auth',function(_0x3c0c89,_0x59c82a){const _0x206031=_0x3e8179;return _0x59c82a[_0x206031('0x1b4e')](_0x206031('0x79b'))?null:_0x3c0c89[_0x206031('0x155b')](_0x206031('0x40'),{'fields':_0x206031('0x1348'),'userProfileId':_0x59c82a[_0x206031('0x14d4')]()['userProfileId'],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':'fax'})[_0x3e8179('0x1a49')]('app.fax.faxAccounts.edit',{'url':_0x3e8179('0xb4c'),'params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4d1941,'controller':_0x3e8179('0x1622')}},'resolve':{'faxAccount':[_0x3e8179('0x2401'),_0x3e8179('0x1caf'),function(_0x580f2e,_0x5460f8){const _0x2f5392=_0x3e8179;return _0x580f2e[_0x2f5392('0x155b')](_0x2f5392('0x2368'),{'fields':_0x2f5392('0xace'),'id':_0x5460f8['id']});}],'userProfileSection':[_0x3e8179('0x2401'),_0x3e8179('0x1600'),function(_0x455890,_0x6f09e5){const _0x3407c3=_0x3e8179;return _0x455890[_0x3407c3('0x155b')](_0x3407c3('0x40'),{'fields':_0x3407c3('0x1348'),'userProfileId':_0x6f09e5[_0x3407c3('0x14d4')]()['userProfileId'],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x3e8179('0x16d')}),_0x55239d[_0x3e8179('0x1b1a')](_0x3e8179('0x1071'));}angular[_0x566993('0x22c4')](_0x566993('0x1ffa'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),'ngAria',_0x566993('0x8a3'),_0x566993('0x1146'),_0x566993('0x1698'),_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),'material.components.expansionPanels',_0x566993('0x1eab'),_0x566993('0x2392'),_0x566993('0x181f')])[_0x566993('0xea9')](_0x2f2da9)[_0x566993('0x1e65')](_0x566993('0xc93'),_0x41dffe)['controller']('FaxAccountActionsController',_0x2b3776)[_0x566993('0x1e65')](_0x566993('0x17a3'),_0x54d19a)[_0x566993('0x1e65')](_0x566993('0xc14'),_0x51da7a)[_0x566993('0x1e65')]('EditFaxAccountAppcloseDialogController',_0x11f10f)[_0x566993('0x1e65')](_0x566993('0x2a3'),_0x479069)[_0x566993('0x1e65')](_0x566993('0x2142'),_0x4278a1)['controller'](_0x566993('0x18bc'),_0x57cd7c)['controller'](_0x566993('0x8e3'),_0x4c5e5a)['controller'](_0x566993('0x2403'),_0x1c0fc3)[_0x566993('0x1e65')](_0x566993('0x2338'),_0x57f876)['controller']('EditFaxAccountApptagDialogController',_0x50b248)[_0x566993('0x1e65')]('FaxAccountDispositionsController',_0x5a2e1f)[_0x566993('0x1e65')](_0x566993('0x282d'),_0x53c7a7)['controller'](_0x566993('0x1585'),_0x47f987)[_0x566993('0x1e65')](_0x566993('0x131c'),_0x4a1ca2)[_0x566993('0x1e65')](_0x566993('0x1e00'),_0xa41ddc)[_0x566993('0x1e65')](_0x566993('0x410'),_0x214ac3)[_0x566993('0x1e65')]('FaxQueueteamaddController',_0x33fba0)[_0x566993('0x1e65')]('FaxQueueController',_0xc5027f)[_0x566993('0x1e65')](_0x566993('0x2188'),_0x8456ef);const _0x464e5f=_0x21a6a1['p']+_0x566993('0x193a');_0x14d0ed['$inject']=[_0x566993('0x1fe5'),_0x566993('0x638'),'$q',_0x566993('0x1558'),_0x566993('0x9c6'),_0x566993('0x2766'),_0x566993('0x1cdb'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x14d0ed(_0x3b26bd,_0x499478,_0x3ac1cc,_0x9a079b,_0x32f503,_0x498d49,_0x2a77e1,_0x45ca9e,_0x316ef2,_0x5cfb68,_0x51b90b,_0xbf4e0e){const _0x3b6b60=_0x566993,_0x251eff=this;_0x251eff[_0x3b6b60('0x155f')]=_0x316ef2['getCurrentUser'](),_0x251eff[_0x3b6b60('0x2766')]=angular[_0x3b6b60('0x2e3')](_0x498d49),_0x251eff[_0x3b6b60('0x9c6')]=angular['copy'](_0x32f503),_0x251eff[_0x3b6b60('0x251')]=_0xbf4e0e,_0x251eff[_0x3b6b60('0x1a29')]=_0x51b90b,_0x251eff[_0x3b6b60('0x1dc1')]=_0x5cfb68,_0x251eff['newDisposition']=![],_0x251eff[_0x3b6b60('0x1d4a')]=[];!_0x251eff[_0x3b6b60('0x2766')]?(_0x251eff[_0x3b6b60('0x2766')]={'level':_0x3b6b60('0x1f3c')},_0x251eff['newDisposition']=!![]):_0x130ae2();if(_0x2a77e1){const _0xb89435=_0x2a77e1['field'];_0x251eff[_0x3b6b60('0x2766')][_0xb89435]=_0x2a77e1['id'];}_0x251eff[_0x3b6b60('0xe4b')]=_0x3e5dff,_0x251eff[_0x3b6b60('0x17b6')]=_0x57de67,_0x251eff[_0x3b6b60('0xe5b')]=_0x4fdf11,_0x251eff['deleteDisposition']=_0x290496,_0x251eff[_0x3b6b60('0x27a6')]=_0x1cbe72,_0x251eff[_0x3b6b60('0x18e2')]=_0x322dc1;function _0x130ae2(){const _0x373a33=_0x3b6b60;if(_0x251eff[_0x373a33('0x2766')][_0x373a33('0x1763')]==='first')return;_0x251eff[_0x373a33('0x20d2')]=_0x3c8d8a()[_0x373a33('0x18ab')](_0x251eff[_0x373a33('0x9c6')],['id',_0x251eff[_0x373a33('0x2766')][_0x373a33('0x2644')]]);if(!_0x251eff[_0x373a33('0x20d2')]){_0x2ac14c()['then'](function(){const _0x43cac3=_0x373a33;for(let _0x18e78a=0x0;_0x18e78a<_0x251eff[_0x43cac3('0x1adc')]['length'];_0x18e78a++){const _0x1d5ec9=_0x251eff[_0x43cac3('0x1adc')][_0x18e78a];if(_0x1d5ec9['id']===_0x251eff[_0x43cac3('0x2766')][_0x43cac3('0x2644')]){_0x2693aa(_0x1d5ec9),_0x1d5ec9[_0x43cac3('0x268e')]=![],_0x251eff['dispositions'][_0x43cac3('0x18bb')](_0x1d5ec9);break;}}});return;}_0x2693aa(_0x251eff[_0x373a33('0x20d2')]);}function _0x2ac14c(){return _0x3ac1cc(function(_0x17553e,_0x246d15){const _0x393a3a=a0_0xde5e;_0x45ca9e[_0x393a3a('0x2766')][_0x393a3a('0x1d97')]({'fields':_0x393a3a('0x8b6'),'sort':'id','nolimit':_0x393a3a('0x799')})['$promise']['then'](function(_0x293c25){const _0x504631=_0x393a3a;_0x251eff[_0x504631('0x1adc')]=_0x293c25[_0x504631('0x6aa')]||[],_0x17553e();})[_0x393a3a('0x103c')](function(_0x555985){_0x246d15(_0x555985);});});}function _0x2693aa(_0x2d1677){const _0x107036=_0x3b6b60;_0x2d1677[_0x107036('0x1763')]===_0x107036('0x1f3c')?_0x251eff[_0x107036('0x6a8')]=_0x2d1677:(_0x251eff[_0x107036('0xbd9')]=!![],_0x251eff[_0x107036('0x9a2')]=_0x2d1677,_0x251eff['firstLevelDisposition']=_0x3c8d8a()['find'](_0x251eff[_0x107036('0x9c6')],['id',_0x251eff[_0x107036('0x9a2')][_0x107036('0x2644')]]),!_0x251eff['firstLevelDisposition']&&_0x2ac14c()[_0x107036('0x173b')](function(){const _0x2f1334=_0x107036;_0x251eff[_0x2f1334('0x6a8')]=_0x3c8d8a()[_0x2f1334('0x18ab')](_0x251eff['allDispositions'],['id',_0x251eff[_0x2f1334('0x9a2')][_0x2f1334('0x2644')]]),_0x251eff[_0x2f1334('0x6a8')][_0x2f1334('0x268e')]=![],_0x251eff[_0x2f1334('0x9c6')][_0x2f1334('0x18bb')](_0x251eff[_0x2f1334('0x6a8')]);}));}function _0x1cbe72(_0x2e3eeb){const _0x462d38=_0x3b6b60;_0x2e3eeb===_0x462d38('0x1f3c')?(_0x251eff[_0x462d38('0x6a8')]=undefined,_0x251eff[_0x462d38('0x9a2')]=undefined,_0x251eff[_0x462d38('0xbd9')]=![]):_0x251eff[_0x462d38('0x9a2')]=undefined;}function _0x3e5dff(){const _0x11b393=_0x3b6b60;_0x251eff[_0x11b393('0x9a2')]=undefined,_0x251eff[_0x11b393('0xbd9')]=_0x3c8d8a()[_0x11b393('0x1ec')](_0x251eff['dispositions'],function(_0x179311){const _0x2e3232=_0x11b393;return _0x179311['ParentId']===_0x251eff[_0x2e3232('0x6a8')]['id']&&_0x179311['id']!=_0x251eff[_0x2e3232('0x2766')]['id'];});}function _0x57de67(){const _0x247ae7=_0x3b6b60;_0x251eff[_0x247ae7('0x1d4a')]=[];if(_0x251eff[_0x247ae7('0x9a2')])_0x251eff[_0x247ae7('0x2766')]['ParentId']=_0x251eff['secondLevelDisposition']['id'],_0x251eff[_0x247ae7('0x2766')][_0x247ae7('0x1763')]='third';else _0x251eff[_0x247ae7('0x6a8')]&&(_0x251eff['disposition']['ParentId']=_0x251eff['firstLevelDisposition']['id'],_0x251eff[_0x247ae7('0x2766')][_0x247ae7('0x1763')]=_0x247ae7('0x6f3'));_0x45ca9e[_0x247ae7('0x2766')][_0x247ae7('0x1195')](_0x251eff[_0x247ae7('0x2766')])[_0x247ae7('0x1964')][_0x247ae7('0x173b')](function(_0x158d40){const _0x529fa9=_0x247ae7;_0x251eff[_0x529fa9('0x9c6')][_0x529fa9('0x1377')](_0x158d40['toJSON']()),_0x9a079b[_0x529fa9('0xdfe')]({'title':_0x499478['instant'](_0x529fa9('0x6ad'))}),_0x322dc1(!![]);})[_0x247ae7('0x103c')](function(_0x5f17ae){const _0x5e3b60=_0x247ae7;if(_0x5f17ae[_0x5e3b60('0x1e07')]&&_0x5f17ae['data'][_0x5e3b60('0x1d4a')]&&_0x5f17ae[_0x5e3b60('0x1e07')][_0x5e3b60('0x1d4a')][_0x5e3b60('0x543')]){_0x251eff[_0x5e3b60('0x1d4a')]=_0x5f17ae[_0x5e3b60('0x1e07')][_0x5e3b60('0x1d4a')]||[{'message':_0x5f17ae[_0x5e3b60('0x1b75')](),'type':_0x5e3b60('0x1a5e')}];for(let _0x290015=0x0;_0x290015<_0x5f17ae['data'][_0x5e3b60('0x1d4a')]['length'];_0x290015+=0x1){_0x9a079b[_0x5e3b60('0x15aa')]({'title':_0x5f17ae[_0x5e3b60('0x1e07')][_0x5e3b60('0x1d4a')][_0x290015][_0x5e3b60('0x1810')],'msg':_0x5f17ae['data'][_0x5e3b60('0x1d4a')][_0x290015][_0x5e3b60('0x67f')]});}}else _0x9a079b[_0x5e3b60('0x15aa')]({'title':_0x5f17ae['status']?_0x5e3b60('0x137')+_0x5f17ae['status']+_0x5e3b60('0x160c')+_0x5f17ae[_0x5e3b60('0x2696')]:_0x5e3b60('0x1a5e'),'msg':_0x5f17ae[_0x5e3b60('0x1e07')]?JSON[_0x5e3b60('0x100b')](_0x5f17ae['data'][_0x5e3b60('0x67f')]):_0x5f17ae[_0x5e3b60('0x1b75')]()});});}function _0x4fdf11(){const _0x42ddf0=_0x3b6b60;_0x251eff[_0x42ddf0('0x1d4a')]=[];if(_0x251eff['secondLevelDisposition'])_0x251eff[_0x42ddf0('0x2766')][_0x42ddf0('0x2644')]=_0x251eff[_0x42ddf0('0x9a2')]['id'],_0x251eff[_0x42ddf0('0x2766')][_0x42ddf0('0x1763')]='third';else _0x251eff[_0x42ddf0('0x6a8')]&&(_0x251eff[_0x42ddf0('0x2766')][_0x42ddf0('0x2644')]=_0x251eff[_0x42ddf0('0x6a8')]['id'],_0x251eff['disposition'][_0x42ddf0('0x1763')]='second');_0x45ca9e['disposition']['update']({'id':_0x251eff['disposition']['id']},_0x251eff[_0x42ddf0('0x2766')])[_0x42ddf0('0x1964')][_0x42ddf0('0x173b')](function(_0x12ba72){const _0x497d34=_0x42ddf0,_0x53b768=_0x3c8d8a()[_0x497d34('0x18ab')](_0x251eff[_0x497d34('0x9c6')],{'id':_0x12ba72['id']});_0x53b768&&_0x3c8d8a()[_0x497d34('0x9ef')](_0x53b768,_0x3c8d8a()[_0x497d34('0x2114')](_0x12ba72[_0x497d34('0xf1f')](),_0x3c8d8a()[_0x497d34('0x1d3e')](_0x53b768))),_0x9a079b[_0x497d34('0xdfe')]({'title':_0x499478[_0x497d34('0x1467')](_0x497d34('0x24fa'))}),_0x322dc1(!![]);})[_0x42ddf0('0x103c')](function(_0x222a90){const _0x39c9a4=_0x42ddf0;if(_0x222a90[_0x39c9a4('0x1e07')]&&_0x222a90[_0x39c9a4('0x1e07')][_0x39c9a4('0x1d4a')]&&_0x222a90['data'][_0x39c9a4('0x1d4a')][_0x39c9a4('0x543')]){_0x251eff[_0x39c9a4('0x1d4a')]=_0x222a90[_0x39c9a4('0x1e07')][_0x39c9a4('0x1d4a')]||[{'message':_0x222a90[_0x39c9a4('0x1b75')](),'type':_0x39c9a4('0x1702')}];for(let _0x4ebdec=0x0;_0x4ebdec<_0x222a90[_0x39c9a4('0x1e07')][_0x39c9a4('0x1d4a')][_0x39c9a4('0x543')];_0x4ebdec++){_0x9a079b[_0x39c9a4('0x15aa')]({'title':_0x222a90['data'][_0x39c9a4('0x1d4a')][_0x4ebdec]['type'],'msg':_0x222a90[_0x39c9a4('0x1e07')][_0x39c9a4('0x1d4a')][_0x4ebdec][_0x39c9a4('0x67f')]});}}else _0x9a079b['error']({'title':_0x222a90[_0x39c9a4('0x276f')]?_0x39c9a4('0x137')+_0x222a90['status']+'\x20-\x20'+_0x222a90[_0x39c9a4('0x2696')]:_0x39c9a4('0x1702'),'msg':_0x222a90['data']?JSON[_0x39c9a4('0x100b')](_0x222a90['data'][_0x39c9a4('0x67f')]):_0x222a90[_0x39c9a4('0x1b75')]()});});}function _0x290496(_0x2665ba){const _0x57189e=_0x3b6b60;_0x251eff[_0x57189e('0x1d4a')]=[];const _0xb5864f=_0x3c8d8a()[_0x57189e('0x1ec')](_0x251eff[_0x57189e('0x9c6')],[_0x57189e('0x2644'),_0x251eff[_0x57189e('0x2766')]['id']]),_0x6ef24d=_0x3b26bd[_0x57189e('0x1d02')]({'skipHide':!![]})[_0x57189e('0x20d6')](_0x499478['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x57189e('0x732')](_0x499478[_0x57189e('0x1467')]('TOOLS.NOTIFICATIONS.'+(_0xb5864f?_0x57189e('0x6f'):_0x57189e('0xee2')),{'name':_0x251eff[_0x57189e('0x2766')]['name']}))[_0x57189e('0x217')](_0x57189e('0x843'))['ok'](_0x499478[_0x57189e('0x1467')](_0x57189e('0x1078')))[_0x57189e('0x1e1f')](_0x499478[_0x57189e('0x1467')](_0x57189e('0x2224')))['targetEvent'](_0x2665ba);_0x3b26bd[_0x57189e('0x1cb7')](_0x6ef24d)['then'](function(){const _0x2b4659=_0x57189e;_0x45ca9e[_0x2b4659('0x2766')][_0x2b4659('0x15e8')]({'id':_0x251eff[_0x2b4659('0x2766')]['id']})['$promise'][_0x2b4659('0x173b')](function(){const _0x43f4ac=_0x2b4659;_0x9a079b[_0x43f4ac('0xdfe')]({'title':_0x499478[_0x43f4ac('0x1467')](_0x43f4ac('0x34b'))}),_0x322dc1(!![]);})[_0x2b4659('0x103c')](function(_0x1a1a70){const _0x4afc17=_0x2b4659;if(_0x1a1a70[_0x4afc17('0x1e07')]&&_0x1a1a70[_0x4afc17('0x1e07')][_0x4afc17('0x1d4a')]&&_0x1a1a70[_0x4afc17('0x1e07')][_0x4afc17('0x1d4a')]['length']){_0x251eff[_0x4afc17('0x1d4a')]=_0x1a1a70[_0x4afc17('0x1e07')]['errors']||[{'message':_0x1a1a70['toString'](),'type':_0x4afc17('0x21c')}];for(let _0x7417e8=0x0;_0x7417e8<_0x1a1a70[_0x4afc17('0x1e07')][_0x4afc17('0x1d4a')]['length'];_0x7417e8++){_0x9a079b[_0x4afc17('0x15aa')]({'title':_0x1a1a70[_0x4afc17('0x1e07')]['errors'][_0x7417e8][_0x4afc17('0x1810')],'msg':_0x1a1a70['data'][_0x4afc17('0x1d4a')][_0x7417e8][_0x4afc17('0x67f')]});}}else _0x9a079b[_0x4afc17('0x15aa')]({'title':_0x1a1a70[_0x4afc17('0x276f')]?'API:'+_0x1a1a70[_0x4afc17('0x276f')]+_0x4afc17('0x160c')+_0x1a1a70['statusText']:_0x4afc17('0x21c'),'msg':_0x1a1a70[_0x4afc17('0x1e07')]?JSON['stringify'](_0x1a1a70[_0x4afc17('0x1e07')]['message']):_0x1a1a70[_0x4afc17('0x67f')]||_0x1a1a70[_0x4afc17('0x1b75')]()});});});}function _0x322dc1(_0xb7cb25){const _0x3b6d59=_0x3b6b60;_0x3b26bd[_0x3b6d59('0x1cf4')](_0xb7cb25);}}const _0x13432a=_0x14d0ed;_0x47a601[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),'$state','$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate','dispositions',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'toasty',_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x47a601(_0x2d7303,_0x4beff7,_0x522152,_0x5a9f21,_0x5c58fe,_0x1d05fa,_0x57990a,_0x11ade0,_0x3c924e,_0x3173e9,_0x5b738c,_0x471c9c,_0xe54c07,_0x15f57e,_0xffb149,_0x96a56b){const _0x51b2a1=_0x566993,_0x5c7928=this;_0x5c7928[_0x51b2a1('0x1a29')]=_0xffb149,_0x5c7928[_0x51b2a1('0x251')]=_0x96a56b,_0x5c7928[_0x51b2a1('0x155f')]=_0x15f57e[_0x51b2a1('0x14d4')](),_0x5c7928['dispositions']=_0x3c924e||{'count':0x0,'rows':[]},_0x5c7928[_0x51b2a1('0x257b')]=_0x3173e9,_0x5c7928[_0x51b2a1('0x170e')]=_0x5b738c&&_0x5b738c[_0x51b2a1('0x1a2f')]==0x1?_0x5b738c[_0x51b2a1('0x6aa')][0x0]:null,_0x5c7928[_0x51b2a1('0x1dc1')]=_0x15f57e[_0x51b2a1('0xde6')](_0x5c7928[_0x51b2a1('0x170e')]?_0x5c7928[_0x51b2a1('0x170e')]['crudPermissions']:null),_0x5c7928[_0x51b2a1('0x451')]=[],_0x5c7928['levels']={'first':_0x51b2a1('0x1d1b'),'second':_0x51b2a1('0x1136'),'third':_0x51b2a1('0x1486')},_0x5c7928['query']={'fields':_0x51b2a1('0xf3'),'sort':'-updatedAt','MailAccountId':_0x51b2a1('0x877'),'FaxAccountId':_0x51b2a1('0x877'),'SmsAccountId':_0x51b2a1('0x877'),'OpenchannelAccountId':'null','ChatWebsiteId':'null','WhatsappAccountId':_0x51b2a1('0x877'),'ListId':_0x51b2a1('0x877'),'limit':0xa,'page':0x1},_0x5c7928[_0x51b2a1('0x1a20')]=_0x347600,_0x5c7928[_0x51b2a1('0xdfe')]=_0x202fd7,_0x5c7928[_0x51b2a1('0x251d')]=_0xc51177,_0x5c7928[_0x51b2a1('0xfb1')]=_0x53b025,_0x5c7928['deleteDisposition']=_0x687adb,_0x5c7928[_0x51b2a1('0x1a6b')]=_0x2a98bb,_0x5c7928[_0x51b2a1('0x269b')]=_0x5b653a,_0x5c7928[_0x51b2a1('0x2307')]=_0x5187b0,_0x5c7928['selectAllDispositions']=_0x337fed;function _0x53b025(_0xd422,_0x12ebae){const _0x2b89ed=_0x51b2a1;_0x5c58fe['show']({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x1db9b3,'parent':angular['element'](_0x1d05fa[_0x2b89ed('0x1a5')]),'targetEvent':_0xd422,'clickOutsideToClose':!![],'locals':{'disposition':_0x12ebae,'dispositions':_0x5c7928[_0x2b89ed('0x9c6')]['rows'],'model':null,'license':_0x5c7928[_0x2b89ed('0x1a29')],'setting':_0x5c7928[_0x2b89ed('0x251')],'crudPermissions':_0x5c7928[_0x2b89ed('0x1dc1')]}})[_0x2b89ed('0x173b')](function(_0x21d5ad){if(_0x21d5ad===!![])_0xc51177();});}function _0x347600(_0x333467,_0x18136f){const _0x2f3ea9=_0x51b2a1,_0x5461e0=_0x3c8d8a()[_0x2f3ea9('0x1ec')](_0x5c7928[_0x2f3ea9('0x9c6')][_0x2f3ea9('0x6aa')],[_0x2f3ea9('0x2644'),_0x333467['id']]),_0x7d75c4=_0x5c58fe['confirm']()['title'](_0x11ade0[_0x2f3ea9('0x1467')](_0x2f3ea9('0xf13')))[_0x2f3ea9('0x732')](_0x11ade0[_0x2f3ea9('0x1467')](_0x2f3ea9('0x15d6')+(_0x5461e0?'DISPOSITION_DELETE_MESSAGE_CHILDREN':'DISPOSITION_DELETE_MESSAGE'),{'name':_0x333467[_0x2f3ea9('0x10ad')]}))[_0x2f3ea9('0x217')]('Delete\x20disposition')[_0x2f3ea9('0x21de')](_0x18136f)['ok']('OK')[_0x2f3ea9('0x1e1f')](_0x11ade0[_0x2f3ea9('0x1467')]('TOOLS.CANCEL'));_0x5c58fe[_0x2f3ea9('0x1cb7')](_0x7d75c4)['then'](function(){_0x687adb(_0x333467);});}function _0x202fd7(_0x569a9a){const _0x1be387=_0x51b2a1;_0x5c7928[_0x1be387('0x9c6')]=_0x569a9a||{'count':0x0,'rows':[]};}function _0xc51177(){const _0x1ce6fb=_0x51b2a1;_0x5c7928[_0x1ce6fb('0xc49')][_0x1ce6fb('0x17f0')]=(_0x5c7928[_0x1ce6fb('0xc49')][_0x1ce6fb('0x182e')]-0x1)*_0x5c7928[_0x1ce6fb('0xc49')]['limit'],_0x15f57e[_0x1ce6fb('0xfd8')]()?_0x5c7928[_0x1ce6fb('0x2219')]=_0x471c9c[_0x1ce6fb('0x2766')][_0x1ce6fb('0x1d97')](_0x5c7928[_0x1ce6fb('0xc49')],_0x202fd7)[_0x1ce6fb('0x1964')]:(_0x5c7928['query']['id']=_0x5c7928[_0x1ce6fb('0x257b')]['id'],_0x5c7928[_0x1ce6fb('0xc49')][_0x1ce6fb('0x17c9')]=_0x1ce6fb('0x1bbf'),_0x5c7928['promise']=_0x471c9c['userProfile'][_0x1ce6fb('0x135b')](_0x5c7928['query'],_0x202fd7)[_0x1ce6fb('0x1964')]);}function _0x687adb(_0x51c1f1){const _0x560979=_0x51b2a1;_0x471c9c['disposition']['delete']({'id':_0x51c1f1['id']})[_0x560979('0x1964')][_0x560979('0x173b')](function(){const _0x299b0a=_0x560979;_0xc51177(),_0xe54c07[_0x299b0a('0xdfe')]({'title':_0x11ade0['instant'](_0x299b0a('0x34b'))});})[_0x560979('0x103c')](function(_0x76cab2){const _0x1aef68=_0x560979;if(_0x76cab2['data']&&_0x76cab2['data'][_0x1aef68('0x1d4a')]&&_0x76cab2[_0x1aef68('0x1e07')][_0x1aef68('0x1d4a')][_0x1aef68('0x543')]){_0x5c7928[_0x1aef68('0x1d4a')]=_0x76cab2[_0x1aef68('0x1e07')][_0x1aef68('0x1d4a')]||[{'message':_0x76cab2['toString'](),'type':_0x1aef68('0x6af')}];for(let _0x46d069=0x0;_0x46d069<_0x76cab2[_0x1aef68('0x1e07')][_0x1aef68('0x1d4a')][_0x1aef68('0x543')];_0x46d069++){_0xe54c07[_0x1aef68('0x15aa')]({'title':_0x76cab2[_0x1aef68('0x1e07')]['errors'][_0x46d069][_0x1aef68('0x1810')],'msg':_0x76cab2['data'][_0x1aef68('0x1d4a')][_0x46d069]['message']});}}else _0xe54c07[_0x1aef68('0x15aa')]({'title':_0x76cab2[_0x1aef68('0x276f')]?'API:'+_0x76cab2[_0x1aef68('0x276f')]+'\x20-\x20'+_0x76cab2['statusText']:'SYSTEM:DELETEdisposition','msg':_0x76cab2[_0x1aef68('0x1e07')]?JSON[_0x1aef68('0x100b')](_0x76cab2[_0x1aef68('0x1e07')][_0x1aef68('0x67f')]):_0x76cab2['message']||_0x76cab2[_0x1aef68('0x1b75')]()});});}function _0x2a98bb(){const _0x137f94=_0x51b2a1,_0x24616b=angular['copy'](_0x5c7928['selectedDispositions']);return _0x5c7928[_0x137f94('0x451')]=[],_0x24616b;}function _0x5b653a(_0x2ed44f){const _0x45ea42=_0x51b2a1,_0x3139fd=_0x5c58fe[_0x45ea42('0x1d02')]()['title'](_0x11ade0['instant'](_0x45ea42('0xa25')))[_0x45ea42('0x732')](_0x11ade0[_0x45ea42('0x1467')](_0x45ea42('0x25a'),{'total':_0x5c7928['selectedDispositions']['length']}))[_0x45ea42('0x217')](_0x45ea42('0x6b8'))[_0x45ea42('0x21de')](_0x2ed44f)['ok']('OK')[_0x45ea42('0x1e1f')](_0x11ade0[_0x45ea42('0x1467')](_0x45ea42('0x2224')));_0x5c58fe['show'](_0x3139fd)[_0x45ea42('0x173b')](function(){const _0x16ee3a=_0x45ea42;_0x5c7928['selectedDispositions'][_0x16ee3a('0xa6a')](function(_0x4952fe){_0x687adb(_0x4952fe);}),_0x5c7928[_0x16ee3a('0x451')]=[];});}function _0x5187b0(){_0x5c7928['selectedDispositions']=[];}function _0x337fed(){const _0x161d1f=_0x51b2a1;_0x5c7928[_0x161d1f('0x451')]=_0x5c7928[_0x161d1f('0x9c6')][_0x161d1f('0x6aa')];}let _0x5386f9=!![],_0x1a7fd2=0x1;_0x2d7303['$watch'](_0x51b2a1('0x157b'),function(_0x1fb28b,_0x1894bd){const _0x3a6962=_0x51b2a1;_0x5386f9?_0x57990a(function(){_0x5386f9=![];}):(!_0x1894bd&&(_0x1a7fd2=_0x5c7928['query'][_0x3a6962('0x182e')]),_0x1fb28b!==_0x1894bd&&(_0x5c7928[_0x3a6962('0xc49')][_0x3a6962('0x182e')]=0x1),!_0x1fb28b&&(_0x5c7928[_0x3a6962('0xc49')][_0x3a6962('0x182e')]=_0x1a7fd2),_0xc51177());});}const _0x1829b8=_0x47a601;_0x48912d[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x48912d(_0x553fb7){const _0x575c9b=_0x566993;_0x553fb7['state'](_0x575c9b('0x7e9'),{'url':_0x575c9b('0x1db8'),'views':{'content@app':{'templateUrl':_0x464e5f,'controller':_0x575c9b('0x66e')}},'resolve':{'dispositions':[_0x575c9b('0x2401'),'Auth',function(_0x416f0c,_0x3520bf){const _0x18f83f=_0x575c9b;return _0x3520bf['hasRole'](_0x18f83f('0x79b'))?_0x416f0c[_0x18f83f('0x155b')]('disposition@get',{'fields':_0x18f83f('0xf3'),'sort':_0x18f83f('0x1769'),'MailAccountId':'null','FaxAccountId':_0x18f83f('0x877'),'SmsAccountId':_0x18f83f('0x877'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x18f83f('0x877'),'WhatsappAccountId':_0x18f83f('0x877'),'ListId':'null','limit':0xa,'offset':0x0}):_0x416f0c[_0x18f83f('0x155b')](_0x18f83f('0x14b3'),{'id':_0x3520bf[_0x18f83f('0x14d4')]()[_0x18f83f('0x1946')],'section':_0x18f83f('0x1bbf'),'fields':_0x18f83f('0xf3'),'sort':_0x18f83f('0x1769'),'MailAccountId':_0x18f83f('0x877'),'FaxAccountId':_0x18f83f('0x877'),'SmsAccountId':_0x18f83f('0x877'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x18f83f('0x877'),'WhatsappAccountId':_0x18f83f('0x877'),'ListId':_0x18f83f('0x877'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x575c9b('0x2401'),_0x575c9b('0x1600'),function(_0x35e8fd,_0x483695){const _0x1b5fc9=_0x575c9b;return _0x483695[_0x1b5fc9('0x1b4e')](_0x1b5fc9('0x79b'))?null:_0x35e8fd[_0x1b5fc9('0x155b')](_0x1b5fc9('0x1f20'),{'fields':_0x1b5fc9('0x19dd'),'id':_0x483695[_0x1b5fc9('0x14d4')]()[_0x1b5fc9('0x1946')]});}],'userProfileSection':['apiResolver',_0x575c9b('0x1600'),function(_0x4feb06,_0x7f3be4){const _0x2d6ddc=_0x575c9b;return _0x7f3be4['hasRole'](_0x2d6ddc('0x79b'))?null:_0x4feb06[_0x2d6ddc('0x155b')](_0x2d6ddc('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x7f3be4['getCurrentUser']()[_0x2d6ddc('0x1946')],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':_0x575c9b('0x170f')});}angular[_0x566993('0x22c4')](_0x566993('0x7e9'),[])['config'](_0x48912d)['controller'](_0x566993('0x19ff'),_0x13432a)[_0x566993('0x1e65')]('DispositionsController',_0x1829b8);const _0x6fb345=_0x21a6a1['p']+_0x566993('0x1704'),_0x545d1a=_0x21a6a1['p']+'src/js/modules/main/apps/tools/views/triggers/edit/view.html/view.html';_0x3173d9[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x638'),'toasty',_0x566993('0x151c'),_0x566993('0x237'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x3173d9(_0xdc89d6,_0x5b0301,_0x5e2f69,_0x313991,_0x103afa,_0xc68365,_0x34394d,_0xa537d1,_0x1daca4,_0x516912){const _0x1040c5=_0x566993,_0x431e72=this;_0x431e72[_0x1040c5('0x155f')]=_0x34394d['getCurrentUser'](),_0x431e72['trigger']=angular[_0x1040c5('0x2e3')](_0x103afa),_0x431e72['triggers']=angular[_0x1040c5('0x2e3')](_0x313991),_0x431e72['setting']=_0x1daca4,_0x431e72[_0x1040c5('0x1a29')]=_0xa537d1,_0x431e72[_0x1040c5('0x1dc1')]=_0x516912,_0x431e72['newTrigger']=![],_0x431e72['errors']=[];!_0x431e72['trigger']&&(_0x431e72[_0x1040c5('0x237')]={'channel':_0x1040c5('0x21a8')},_0x431e72['newTrigger']=!![]);_0x431e72[_0x1040c5('0x5d5')]=_0x5b1600,_0x431e72[_0x1040c5('0x198e')]=_0x4c6637,_0x431e72[_0x1040c5('0x111b')]=_0x10847a,_0x431e72['closeDialog']=_0xaec536;function _0x5b1600(){const _0x1d9df7=_0x1040c5;_0x431e72[_0x1d9df7('0x1d4a')]=[],_0xc68365[_0x1d9df7('0x237')]['save'](_0x431e72[_0x1d9df7('0x237')])[_0x1d9df7('0x1964')][_0x1d9df7('0x173b')](function(_0x353b50){const _0x1d1ae0=_0x1d9df7;_0x431e72['triggers'][_0x1d1ae0('0x1377')](_0x353b50['toJSON']()),_0x5e2f69['success']({'title':_0x5b0301[_0x1d1ae0('0x1467')](_0x1d1ae0('0x26a'))}),_0xaec536(_0x431e72[_0x1d1ae0('0x151c')]);})[_0x1d9df7('0x103c')](function(_0x53cfa9){const _0x172075=_0x1d9df7;if(_0x53cfa9['data']&&_0x53cfa9[_0x172075('0x1e07')][_0x172075('0x1d4a')]&&_0x53cfa9[_0x172075('0x1e07')][_0x172075('0x1d4a')][_0x172075('0x543')]){_0x431e72['errors']=_0x53cfa9[_0x172075('0x1e07')]['errors']||[{'message':_0x53cfa9[_0x172075('0x1b75')](),'type':_0x172075('0x18d4')}];for(let _0x22af55=0x0;_0x22af55<_0x53cfa9[_0x172075('0x1e07')][_0x172075('0x1d4a')][_0x172075('0x543')];_0x22af55+=0x1){_0x5e2f69[_0x172075('0x15aa')]({'title':_0x53cfa9[_0x172075('0x1e07')][_0x172075('0x1d4a')][_0x22af55]['type'],'msg':_0x53cfa9[_0x172075('0x1e07')]['errors'][_0x22af55][_0x172075('0x67f')]});}}else _0x5e2f69[_0x172075('0x15aa')]({'title':_0x53cfa9['status']?_0x172075('0x137')+_0x53cfa9[_0x172075('0x276f')]+'\x20-\x20'+_0x53cfa9['statusText']:_0x172075('0x18d4'),'msg':_0x53cfa9[_0x172075('0x1e07')]?JSON[_0x172075('0x100b')](_0x53cfa9['data'][_0x172075('0x67f')]):_0x53cfa9['toString']()});});}function _0x4c6637(){const _0x556932=_0x1040c5;_0x431e72[_0x556932('0x1d4a')]=[],_0xc68365[_0x556932('0x237')]['update']({'id':_0x431e72[_0x556932('0x237')]['id']},_0x431e72[_0x556932('0x237')])[_0x556932('0x1964')][_0x556932('0x173b')](function(){const _0x42b085=_0x556932;_0x431e72[_0x42b085('0x151c')]=_0x3c8d8a()[_0x42b085('0x8a2')](_0x431e72[_0x42b085('0x151c')],function(_0x1f9690){const _0x53e94e=_0x42b085;if(_0x1f9690['id']===_0x431e72[_0x53e94e('0x237')]['id'])return _0x431e72[_0x53e94e('0x237')];else return _0x1f9690;}),_0x5e2f69[_0x42b085('0xdfe')]({'title':_0x5b0301['instant'](_0x42b085('0x1d1c'))}),_0xaec536(_0x431e72[_0x42b085('0x151c')]);})[_0x556932('0x103c')](function(_0x17bd50){const _0x16cc69=_0x556932;if(_0x17bd50[_0x16cc69('0x1e07')]&&_0x17bd50['data'][_0x16cc69('0x1d4a')]&&_0x17bd50[_0x16cc69('0x1e07')]['errors'][_0x16cc69('0x543')]){_0x431e72[_0x16cc69('0x1d4a')]=_0x17bd50[_0x16cc69('0x1e07')][_0x16cc69('0x1d4a')]||[{'message':_0x17bd50[_0x16cc69('0x1b75')](),'type':'api.trigger.update'}];for(let _0x446f08=0x0;_0x446f08<_0x17bd50[_0x16cc69('0x1e07')][_0x16cc69('0x1d4a')][_0x16cc69('0x543')];_0x446f08++){_0x5e2f69['error']({'title':_0x17bd50[_0x16cc69('0x1e07')]['errors'][_0x446f08][_0x16cc69('0x1810')],'msg':_0x17bd50['data'][_0x16cc69('0x1d4a')][_0x446f08][_0x16cc69('0x67f')]});}}else _0x5e2f69[_0x16cc69('0x15aa')]({'title':_0x17bd50[_0x16cc69('0x276f')]?_0x16cc69('0x137')+_0x17bd50[_0x16cc69('0x276f')]+_0x16cc69('0x160c')+_0x17bd50['statusText']:_0x16cc69('0x209c'),'msg':_0x17bd50[_0x16cc69('0x1e07')]?JSON['stringify'](_0x17bd50[_0x16cc69('0x1e07')][_0x16cc69('0x67f')]):_0x17bd50[_0x16cc69('0x1b75')]()});});}function _0x10847a(_0x6bb1b2){const _0x4baee9=_0x1040c5;_0x431e72[_0x4baee9('0x1d4a')]=[];const _0x5dc502=_0xdc89d6[_0x4baee9('0x1d02')]({'skipHide':!![]})[_0x4baee9('0x20d6')](_0x5b0301[_0x4baee9('0x1467')](_0x4baee9('0x107d')))[_0x4baee9('0x732')](_0x5b0301[_0x4baee9('0x1467')](_0x4baee9('0x220e'),{'name':_0x431e72['trigger']['name']}))[_0x4baee9('0x217')]('Delete\x20trigger')['ok'](_0x5b0301['instant'](_0x4baee9('0x1078')))[_0x4baee9('0x1e1f')](_0x5b0301[_0x4baee9('0x1467')](_0x4baee9('0x2224')))['targetEvent'](_0x6bb1b2);_0xdc89d6[_0x4baee9('0x1cb7')](_0x5dc502)[_0x4baee9('0x173b')](function(){const _0x3d1367=_0x4baee9;_0xc68365[_0x3d1367('0x237')]['delete']({'id':_0x431e72[_0x3d1367('0x237')]['id']})[_0x3d1367('0x1964')]['then'](function(){const _0x321f64=_0x3d1367;_0x431e72[_0x321f64('0x151c')]=_0x3c8d8a()[_0x321f64('0x278d')](_0x431e72[_0x321f64('0x151c')],function(_0x1d09a2){const _0x25d7be=_0x321f64;return _0x1d09a2['id']!==_0x431e72[_0x25d7be('0x237')]['id'];}),_0x5e2f69[_0x321f64('0xdfe')]({'title':_0x5b0301['instant']('TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE')}),_0xaec536(_0x431e72['triggers']);})[_0x3d1367('0x103c')](function(_0xe48506){const _0x485648=_0x3d1367;if(_0xe48506[_0x485648('0x1e07')]&&_0xe48506[_0x485648('0x1e07')][_0x485648('0x1d4a')]&&_0xe48506[_0x485648('0x1e07')][_0x485648('0x1d4a')][_0x485648('0x543')]){_0x431e72[_0x485648('0x1d4a')]=_0xe48506[_0x485648('0x1e07')][_0x485648('0x1d4a')]||[{'message':_0xe48506[_0x485648('0x1b75')](),'type':_0x485648('0x318')}];for(let _0xd94635=0x0;_0xd94635<_0xe48506['data'][_0x485648('0x1d4a')][_0x485648('0x543')];_0xd94635++){_0x5e2f69[_0x485648('0x15aa')]({'title':_0xe48506[_0x485648('0x1e07')]['errors'][_0xd94635][_0x485648('0x1810')],'msg':_0xe48506[_0x485648('0x1e07')][_0x485648('0x1d4a')][_0xd94635][_0x485648('0x67f')]});}}else _0x5e2f69['error']({'title':_0xe48506[_0x485648('0x276f')]?_0x485648('0x137')+_0xe48506['status']+_0x485648('0x160c')+_0xe48506[_0x485648('0x2696')]:_0x485648('0x318'),'msg':_0xe48506[_0x485648('0x1e07')]?JSON['stringify'](_0xe48506[_0x485648('0x1e07')][_0x485648('0x67f')]):_0xe48506['message']||_0xe48506[_0x485648('0x1b75')]()});});},function(){});}function _0xaec536(_0x377540){const _0xe2c14a=_0x1040c5;_0xdc89d6[_0xe2c14a('0x1cf4')](_0x377540);}}const _0x384f40=_0x3173d9,_0xd0b918=_0x21a6a1['p']+'src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog.html';_0x49053b['$inject']=[_0x566993('0x66f'),'$translate',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'toasty',_0x566993('0xbd4'),'Auth'];function _0x49053b(_0x43869b,_0x5eb909,_0xf73ef4,_0x5c4167,_0x178fe6,_0x25c02a,_0x322975,_0x240b8b){const _0x13fb9b=_0x566993,_0x4daeaa=this;_0x4daeaa['currentUser']=_0x240b8b['getCurrentUser'](),_0x4daeaa['trigger']={},_0x4daeaa[_0x13fb9b('0x252e')]={'count':0x0,'rows':[]},_0x4daeaa['selectedTriggerActions']=[],_0x4daeaa[_0x13fb9b('0xc49')]={'fields':_0x13fb9b('0x104a'),'limit':0xa,'page':0x1},_0x4daeaa[_0x13fb9b('0xa6d')]={'zendesk':'Zendesk','salesforce':_0x13fb9b('0x23aa'),'sugarcrm':'SugarCRM','freshdesk':_0x13fb9b('0xd7f'),'desk':_0x13fb9b('0x278b'),'zoho':'Zoho','vtiger':'vTiger','dynamics365':_0x13fb9b('0xe74'),'servicenow':'ServiceNow','freshsales':_0x13fb9b('0x2146')},_0x4daeaa[_0x13fb9b('0x68c')]={0x0:_0x13fb9b('0x1ffc'),0x1:'CTI\x20URL',0x2:'Windows\x20App'},_0x4daeaa[_0x13fb9b('0x2535')]=_0x5eeecd,_0x4daeaa[_0x13fb9b('0xdfe')]=_0x3445cb,_0x4daeaa[_0x13fb9b('0x1bdc')]=_0x480d33,_0x4daeaa[_0x13fb9b('0x14b4')]=_0x54956c,_0x4daeaa['exportSelectedTriggerActions']=_0x484455,_0x4daeaa['deleteConfirm']=_0x94e271,_0x4daeaa[_0x13fb9b('0x28')]=_0x3a51cf;function _0x5eeecd(_0x54ad97,_0x647a7f){const _0x57e781=_0x13fb9b;_0x4daeaa[_0x57e781('0x237')]=_0x54ad97,_0x4daeaa['crudPermissions']=typeof _0x647a7f!==_0x57e781('0x6e5')?_0x647a7f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4daeaa[_0x57e781('0xc49')]['ActionId']=_0x4daeaa[_0x57e781('0x237')]['id'],_0x4daeaa[_0x57e781('0xc49')]['id']=_0x4daeaa['trigger']['id'],_0x480d33();}function _0x1ee5e2(){const _0x540eaa=_0x13fb9b;_0x240b8b[_0x540eaa('0xfd8')]()?_0x322975[_0x540eaa('0xbb3')][_0x540eaa('0x1d97')]({'fields':_0x540eaa('0xd52'),'sort':_0x540eaa('0x10ad'),'nolimit':'true'})[_0x540eaa('0x1964')][_0x540eaa('0x173b')](function(_0x797c8e){const _0x1db884=_0x540eaa;_0x4daeaa[_0x1db884('0x9e8')]=_0x797c8e[_0x1db884('0x6aa')]||[];})[_0x540eaa('0x103c')](function(_0x5b5e2e){const _0x5a8e1f=_0x540eaa;_0x25c02a[_0x5a8e1f('0x15aa')]({'title':_0x5b5e2e[_0x5a8e1f('0x276f')]?_0x5a8e1f('0x137')+_0x5b5e2e['status']+_0x5a8e1f('0x160c')+_0x5b5e2e[_0x5a8e1f('0x2696')]:'SYSTEM:GET_LISTS','msg':_0x5b5e2e['data']?JSON[_0x5a8e1f('0x100b')](_0x5b5e2e[_0x5a8e1f('0x1e07')]):_0x5b5e2e['toString']()});}):_0x322975['cmList'][_0x540eaa('0x1d97')]({'fields':_0x540eaa('0xd52'),'sort':_0x540eaa('0x10ad'),'nolimit':_0x540eaa('0x799')})['$promise']['then'](function(_0x59021b){const _0xd8c7c2=_0x540eaa;_0x4daeaa[_0xd8c7c2('0x9e8')]=_0x59021b[_0xd8c7c2('0x6aa')]||[];})[_0x540eaa('0x173b')](function(){const _0x2541a2=_0x540eaa;return _0x322975[_0x2541a2('0x170e')][_0x2541a2('0x1d97')]({'userProfileId':_0x4daeaa[_0x2541a2('0x155f')][_0x2541a2('0x1946')],'sectionId':0x12d})['$promise'];})[_0x540eaa('0x173b')](function(_0xf8d0ea){const _0x39c7de=_0x540eaa,_0x826a2a=_0xf8d0ea&&_0xf8d0ea[_0x39c7de('0x6aa')]?_0xf8d0ea['rows'][0x0]:null;if(!_0x826a2a){const _0x49726e=[],_0x5771b3=[];_0x4daeaa[_0x39c7de('0x252e')]['rows'][_0x39c7de('0xa6a')](function(_0x2fff11){const _0x33c30d=_0x39c7de;if(_0x2fff11[_0x33c30d('0x106d')]===_0x33c30d('0xfe1')){const _0x4f8add=_0x3c8d8a()[_0x33c30d('0x18ab')](_0x4daeaa['lists'],{'id':Number(_0x2fff11['data1'])});_0x5771b3[_0x33c30d('0x18bb')](_0x4f8add);}});for(let _0x4b6154=0x0;_0x4b6154<_0x4daeaa[_0x39c7de('0x9e8')][_0x39c7de('0x543')];_0x4b6154++){const _0x1f3ecd=_0x3c8d8a()[_0x39c7de('0x1ec')](_0x5771b3,{'id':_0x4daeaa['lists'][_0x4b6154]['id']});_0x1f3ecd&&(_0x4daeaa[_0x39c7de('0x9e8')][_0x4b6154][_0x39c7de('0x268e')]=![],_0x49726e['push'](_0x4daeaa['lists'][_0x4b6154]));}_0x4daeaa['lists']=_0x49726e;}else{if(!_0x826a2a['autoAssociation'])return _0x322975[_0x39c7de('0xda9')][_0x39c7de('0x1d97')]({'sectionId':_0x826a2a['id']})[_0x39c7de('0x1964')][_0x39c7de('0x173b')](function(_0x13bb1b){const _0x32adf9=_0x39c7de,_0x3470fd=_0x3c8d8a()[_0x32adf9('0x8a2')](_0x13bb1b[_0x32adf9('0x6aa')],function(_0x521113){const _0x460caa=_0x32adf9;return _0x3c8d8a()[_0x460caa('0x18ab')](_0x4daeaa[_0x460caa('0x9e8')],{'id':_0x521113[_0x460caa('0x1ce0')]});});let _0x3e8903=null;_0x3e8903=[],_0x4daeaa[_0x32adf9('0x252e')][_0x32adf9('0x6aa')]['forEach'](function(_0x12a591){const _0x33381d=_0x32adf9;if(_0x12a591[_0x33381d('0x106d')]==='contactManager'){const _0x59fb3e=_0x3c8d8a()[_0x33381d('0x18ab')](_0x4daeaa['lists'],{'id':Number(_0x12a591[_0x33381d('0x11b9')])});_0x3e8903[_0x33381d('0x18bb')](_0x59fb3e);}}),!_0x3c8d8a()[_0x32adf9('0x1a56')](_0x3e8903)&&_0x3e8903[_0x32adf9('0xa6a')](function(_0x1bfc8d){const _0x4143d7=_0x32adf9;if(!_0x3c8d8a()[_0x4143d7('0x1ec')](_0x3470fd,['id',_0x1bfc8d['id']])){const _0x28821c=_0x3c8d8a()[_0x4143d7('0x18ab')](_0x4daeaa['lists'],{'id':_0x1bfc8d['id']});_0x28821c[_0x4143d7('0x268e')]=![],_0x3470fd[_0x4143d7('0x18bb')](_0x28821c);}}),_0x4daeaa[_0x32adf9('0x9e8')]=_0x3470fd;});}})[_0x540eaa('0x103c')](function(_0x5d7119){const _0x3318c5=_0x540eaa;_0x25c02a['error']({'title':_0x5d7119['status']?_0x3318c5('0x137')+_0x5d7119[_0x3318c5('0x276f')]+_0x3318c5('0x160c')+_0x5d7119[_0x3318c5('0x2696')]:'SYSTEM:GETlists','msg':_0x5d7119['data']?JSON[_0x3318c5('0x100b')](_0x5d7119[_0x3318c5('0x1e07')]):_0x5d7119['toString']()});});}function _0x35251f(){const _0x41ab4e=_0x13fb9b,_0xa43f8b=_0x3c8d8a()(_0x4daeaa['triggerActions'][_0x41ab4e('0x6aa')])['map'](function(_0x36dd0b){const _0x49544c=_0x41ab4e;return _0x36dd0b[_0x49544c('0x106d')]===_0x49544c('0x180b')?_0x36dd0b[_0x49544c('0x11b9')]:undefined;})[_0x41ab4e('0x2714')]()[_0x41ab4e('0x9f0')]()['value']();_0xa43f8b[_0x41ab4e('0xa6a')](function(_0x5bda07){const _0x16b41d=_0x41ab4e,_0x345027=_0x5bda07+_0x16b41d('0xe6c');if(!_0x4daeaa[_0x345027]){const _0x443cc4=_0x16b41d('0x83c')+_0x3c8d8a()[_0x16b41d('0x10e')](_0x5bda07)+'Account';_0x322975[_0x443cc4][_0x16b41d('0x1d97')]({'fields':'id,name','sort':'id','nolimit':_0x16b41d('0x799')})['$promise'][_0x16b41d('0x173b')](function(_0x1e7ccd){const _0x27e549=_0x16b41d;_0x4daeaa[_0x345027]=_0x1e7ccd[_0x27e549('0x6aa')]||[];})['catch'](function(_0x550f7c){const _0x175535=_0x16b41d;_0x25c02a[_0x175535('0x15aa')]({'title':_0x550f7c[_0x175535('0x276f')]?'API:'+_0x550f7c[_0x175535('0x276f')]+_0x175535('0x160c')+_0x550f7c[_0x175535('0x2696')]:_0x175535('0xe17')+_0x345027['toUpperCase']()+_0x175535('0x400'),'msg':_0x550f7c[_0x175535('0x1e07')]?JSON[_0x175535('0x100b')](_0x550f7c[_0x175535('0x1e07')]):_0x550f7c['toString']()});});}});}function _0x32164c(){const _0x4958b4=_0x13fb9b;_0x240b8b['isAdmin']()?_0x322975[_0x4958b4('0x46f')]['get']({'fields':_0x4958b4('0xd52'),'sort':_0x4958b4('0x10ad'),'nolimit':_0x4958b4('0x799')})[_0x4958b4('0x1964')][_0x4958b4('0x173b')](function(_0x24f128){const _0x2e93dd=_0x4958b4;_0x4daeaa[_0x2e93dd('0x23a1')]=_0x24f128[_0x2e93dd('0x6aa')]||[];})[_0x4958b4('0x103c')](function(_0xa5a0e7){const _0xb424e9=_0x4958b4;_0x25c02a[_0xb424e9('0x15aa')]({'title':_0xa5a0e7[_0xb424e9('0x276f')]?'API:'+_0xa5a0e7[_0xb424e9('0x276f')]+'\x20-\x20'+_0xa5a0e7[_0xb424e9('0x2696')]:_0xb424e9('0x24bb'),'msg':_0xa5a0e7['data']?JSON[_0xb424e9('0x100b')](_0xa5a0e7[_0xb424e9('0x1e07')]):_0xa5a0e7[_0xb424e9('0x1b75')]()});}):_0x322975[_0x4958b4('0x46f')][_0x4958b4('0x1d97')]({'fields':_0x4958b4('0xd52'),'sort':_0x4958b4('0x10ad'),'nolimit':_0x4958b4('0x799')})[_0x4958b4('0x1964')]['then'](function(_0x31d698){const _0x19adc5=_0x4958b4;_0x4daeaa[_0x19adc5('0x23a1')]=_0x31d698[_0x19adc5('0x6aa')]||[];})['then'](function(){const _0x3fe7de=_0x4958b4;return _0x322975['userProfileSection']['get']({'userProfileId':_0x4daeaa[_0x3fe7de('0x155f')][_0x3fe7de('0x1946')],'sectionId':0x6a5})[_0x3fe7de('0x1964')];})['then'](function(_0x2fa14d){const _0x24c194=_0x4958b4,_0x10bd0a=_0x2fa14d&&_0x2fa14d[_0x24c194('0x6aa')]?_0x2fa14d[_0x24c194('0x6aa')][0x0]:null;if(!_0x10bd0a){const _0x294bbc=[],_0x4df1a9=[];_0x4daeaa[_0x24c194('0x252e')][_0x24c194('0x6aa')]['forEach'](function(_0x81f0a2){const _0x3b8ec2=_0x24c194;if(_0x81f0a2[_0x3b8ec2('0x106d')]===_0x3b8ec2('0x25a1')){const _0x5258d9=_0x3c8d8a()['find'](_0x4daeaa[_0x3b8ec2('0x23a1')],{'id':Number(_0x81f0a2[_0x3b8ec2('0x11b9')])});_0x4df1a9[_0x3b8ec2('0x18bb')](_0x5258d9);}});for(let _0x520e9b=0x0;_0x520e9b<_0x4daeaa[_0x24c194('0x23a1')][_0x24c194('0x543')];_0x520e9b++){const _0xcee423=_0x3c8d8a()[_0x24c194('0x1ec')](_0x4df1a9,{'id':_0x4daeaa[_0x24c194('0x23a1')][_0x520e9b]['id']});_0xcee423&&(_0x4daeaa['projects'][_0x520e9b]['canSelect']=![],_0x294bbc['push'](_0x4daeaa[_0x24c194('0x23a1')][_0x520e9b]));}_0x4daeaa[_0x24c194('0x23a1')]=_0x294bbc;}else{if(!_0x10bd0a[_0x24c194('0x273e')])return _0x322975[_0x24c194('0xda9')]['get']({'sectionId':_0x10bd0a['id']})[_0x24c194('0x1964')][_0x24c194('0x173b')](function(_0x26cd03){const _0x3689d2=_0x24c194,_0x6301f4=_0x3c8d8a()['map'](_0x26cd03[_0x3689d2('0x6aa')],function(_0x8037dc){const _0x509456=_0x3689d2;return _0x3c8d8a()[_0x509456('0x18ab')](_0x4daeaa[_0x509456('0x23a1')],{'id':_0x8037dc[_0x509456('0x1ce0')]});});let _0x1e2e95=null;_0x1e2e95=[],_0x4daeaa[_0x3689d2('0x252e')][_0x3689d2('0x6aa')][_0x3689d2('0xa6a')](function(_0xe55765){const _0xc32122=_0x3689d2;if(_0xe55765[_0xc32122('0x106d')]===_0xc32122('0x25a1')){const _0x56adb5=_0x3c8d8a()[_0xc32122('0x18ab')](_0x4daeaa[_0xc32122('0x23a1')],{'id':Number(_0xe55765[_0xc32122('0x11b9')])});_0x1e2e95['push'](_0x56adb5);}}),!_0x3c8d8a()['isEmpty'](_0x1e2e95)&&_0x1e2e95[_0x3689d2('0xa6a')](function(_0x2dd807){const _0x4a9abf=_0x3689d2;if(!_0x3c8d8a()[_0x4a9abf('0x1ec')](_0x6301f4,['id',_0x2dd807['id']])){const _0x25ec31=_0x3c8d8a()['find'](_0x4daeaa[_0x4a9abf('0x23a1')],{'id':_0x2dd807['id']});_0x25ec31['canSelect']=![],_0x6301f4[_0x4a9abf('0x18bb')](_0x25ec31);}}),_0x4daeaa[_0x3689d2('0x23a1')]=_0x6301f4;});}})[_0x4958b4('0x103c')](function(_0x29bbf4){const _0x9b16a3=_0x4958b4;_0x25c02a[_0x9b16a3('0x15aa')]({'title':_0x29bbf4[_0x9b16a3('0x276f')]?'API:'+_0x29bbf4[_0x9b16a3('0x276f')]+_0x9b16a3('0x160c')+_0x29bbf4[_0x9b16a3('0x2696')]:'SYSTEM:GETprojects','msg':_0x29bbf4[_0x9b16a3('0x1e07')]?JSON['stringify'](_0x29bbf4['data']):_0x29bbf4[_0x9b16a3('0x1b75')]()});});}function _0x17cabc(){const _0x582947=_0x13fb9b;_0x240b8b[_0x582947('0xfd8')]()?_0x322975[_0x582947('0x1a98')][_0x582947('0x1d97')]({'fields':_0x582947('0xd52'),'sort':'id','nolimit':_0x582947('0x799')})[_0x582947('0x1964')]['then'](function(_0x389c76){_0x4daeaa['templates']=_0x389c76['rows']||[];})[_0x582947('0x103c')](function(_0x44dd5b){const _0x1a4bc0=_0x582947;_0x25c02a[_0x1a4bc0('0x15aa')]({'title':_0x44dd5b[_0x1a4bc0('0x276f')]?_0x1a4bc0('0x137')+_0x44dd5b[_0x1a4bc0('0x276f')]+_0x1a4bc0('0x160c')+_0x44dd5b['statusText']:_0x1a4bc0('0x11c8'),'msg':_0x44dd5b[_0x1a4bc0('0x1e07')]?JSON[_0x1a4bc0('0x100b')](_0x44dd5b['data']):_0x44dd5b[_0x1a4bc0('0x1b75')]()});}):_0x322975[_0x582947('0x1a98')][_0x582947('0x1d97')]({'fields':'id,name','sort':'id','nolimit':_0x582947('0x799')})[_0x582947('0x1964')][_0x582947('0x173b')](function(_0x2bc40b){_0x4daeaa['templates']=_0x2bc40b['rows']||[];})[_0x582947('0x173b')](function(){const _0x2f38ea=_0x582947;return _0x322975['userProfileSection'][_0x2f38ea('0x1d97')]({'userProfileId':_0x4daeaa[_0x2f38ea('0x155f')][_0x2f38ea('0x1946')],'sectionId':0x3f1})[_0x2f38ea('0x1964')];})[_0x582947('0x173b')](function(_0x2afdd5){const _0xd091f7=_0x582947,_0x592e5d=_0x2afdd5&&_0x2afdd5['rows']?_0x2afdd5[_0xd091f7('0x6aa')][0x0]:null;if(!_0x592e5d){const _0x550771=[],_0x33f61f=[];_0x4daeaa[_0xd091f7('0x252e')][_0xd091f7('0x6aa')][_0xd091f7('0xa6a')](function(_0x133b79){const _0x376783=_0xd091f7;if(_0x3c8d8a()['includes']([_0x376783('0x2428'),_0x376783('0x244e')],_0x133b79['action'])){const _0x31986b=_0x3c8d8a()[_0x376783('0x18ab')](_0x4daeaa[_0x376783('0x2637')],{'id':Number(_0x133b79['data2'])});_0x33f61f[_0x376783('0x18bb')](_0x31986b);}});for(let _0x1b6201=0x0;_0x1b6201<_0x4daeaa[_0xd091f7('0x2637')]['length'];_0x1b6201++){const _0x3fd051=_0x3c8d8a()[_0xd091f7('0x1ec')](_0x33f61f,{'id':_0x4daeaa[_0xd091f7('0x2637')][_0x1b6201]['id']});_0x3fd051&&(_0x4daeaa[_0xd091f7('0x2637')][_0x1b6201][_0xd091f7('0x268e')]=![],_0x550771[_0xd091f7('0x18bb')](_0x4daeaa['templates'][_0x1b6201]));}_0x4daeaa[_0xd091f7('0x2637')]=_0x550771;}else{if(!_0x592e5d[_0xd091f7('0x273e')])return _0x322975[_0xd091f7('0xda9')][_0xd091f7('0x1d97')]({'sectionId':_0x592e5d['id']})['$promise'][_0xd091f7('0x173b')](function(_0x48a18e){const _0x34dc45=_0xd091f7,_0x55c8e5=_0x3c8d8a()[_0x34dc45('0x8a2')](_0x48a18e[_0x34dc45('0x6aa')],function(_0x351d69){const _0x50d55d=_0x34dc45;return _0x3c8d8a()['find'](_0x4daeaa[_0x50d55d('0x2637')],{'id':_0x351d69[_0x50d55d('0x1ce0')]});});let _0x5a7d8b=null;_0x5a7d8b=[],_0x4daeaa[_0x34dc45('0x252e')]['rows']['forEach'](function(_0x4f11aa){const _0x10362a=_0x34dc45;if(_0x3c8d8a()[_0x10362a('0x2814')](['motionbar','browser'],_0x4f11aa[_0x10362a('0x106d')])){const _0x24495a=_0x3c8d8a()[_0x10362a('0x18ab')](_0x4daeaa[_0x10362a('0x2637')],{'id':Number(_0x4f11aa[_0x10362a('0x1066')])});_0x5a7d8b[_0x10362a('0x18bb')](_0x24495a);}}),!_0x3c8d8a()['isEmpty'](_0x5a7d8b)&&_0x5a7d8b[_0x34dc45('0xa6a')](function(_0x526f82){const _0x33d16b=_0x34dc45;if(!_0x3c8d8a()[_0x33d16b('0x1ec')](_0x55c8e5,['id',_0x526f82['id']])){const _0x259a4f=_0x3c8d8a()[_0x33d16b('0x18ab')](_0x4daeaa[_0x33d16b('0x2637')],{'id':_0x526f82['id']});_0x259a4f[_0x33d16b('0x268e')]=![],_0x55c8e5[_0x33d16b('0x18bb')](_0x259a4f);}}),_0x4daeaa[_0x34dc45('0x2637')]=_0x55c8e5;});}})['catch'](function(_0x262185){const _0x1c5b27=_0x582947;_0x25c02a[_0x1c5b27('0x15aa')]({'title':_0x262185[_0x1c5b27('0x276f')]?_0x1c5b27('0x137')+_0x262185[_0x1c5b27('0x276f')]+_0x1c5b27('0x160c')+_0x262185[_0x1c5b27('0x2696')]:_0x1c5b27('0x11c8'),'msg':_0x262185[_0x1c5b27('0x1e07')]?JSON[_0x1c5b27('0x100b')](_0x262185[_0x1c5b27('0x1e07')]):_0x262185[_0x1c5b27('0x1b75')]()});});}function _0x5a265b(){const _0x45332a=_0x13fb9b;if(_0x3c8d8a()[_0x45332a('0x1ec')](_0x4daeaa[_0x45332a('0x252e')][_0x45332a('0x6aa')],[_0x45332a('0x106d'),_0x45332a('0xfe1')])){if(!_0x4daeaa[_0x45332a('0x9e8')])_0x1ee5e2();}_0x3c8d8a()['some'](_0x4daeaa[_0x45332a('0x252e')][_0x45332a('0x6aa')],[_0x45332a('0x106d'),_0x45332a('0x180b')])&&_0x35251f();if(_0x3c8d8a()['some'](_0x4daeaa['triggerActions']['rows'],function(_0x197a98){const _0x564bf4=_0x45332a;return _0x3c8d8a()[_0x564bf4('0x2814')]([_0x564bf4('0x2428'),'browser'],_0x197a98[_0x564bf4('0x106d')]);})){if(!_0x4daeaa[_0x45332a('0x2637')])_0x17cabc();}if(_0x3c8d8a()[_0x45332a('0x1ec')](_0x4daeaa[_0x45332a('0x252e')][_0x45332a('0x6aa')],[_0x45332a('0x106d'),_0x45332a('0x25a1')])){if(!_0x4daeaa[_0x45332a('0x23a1')])_0x32164c();}}function _0x3445cb(_0x14806e){const _0xbcc581=_0x13fb9b;_0x4daeaa[_0xbcc581('0x252e')]=_0x14806e||{'count':0x0,'rows':[]},_0x5a265b();}function _0x480d33(){const _0x105be2=_0x13fb9b;_0x4daeaa[_0x105be2('0xc49')]['offset']=(_0x4daeaa[_0x105be2('0xc49')]['page']-0x1)*_0x4daeaa[_0x105be2('0xc49')][_0x105be2('0x3e')],_0x4daeaa[_0x105be2('0x2219')]=_0x322975['trigger'][_0x105be2('0xa0e')](_0x4daeaa[_0x105be2('0xc49')],_0x3445cb)[_0x105be2('0x1964')];}function _0x54956c(_0x8025c3,_0x3938c4){const _0x235504=_0x13fb9b;_0x5c4167[_0x235504('0x1cb7')]({'controller':'CreateOrEditActionDialogController','controllerAs':'vm','templateUrl':_0xd0b918,'parent':angular[_0x235504('0xb6d')](_0x178fe6[_0x235504('0x1a5')]),'targetEvent':_0x8025c3,'clickOutsideToClose':!![],'locals':{'trigger':_0x4daeaa[_0x235504('0x237')],'action':_0x3938c4,'actions':_0x4daeaa[_0x235504('0x252e')][_0x235504('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x4daeaa[_0x235504('0x1dc1')]}})[_0x235504('0x173b')](function(_0x3fcec1){const _0x5356fb=_0x235504;_0x3fcec1&&(_0x4daeaa[_0x5356fb('0x252e')]={'count':_0x3fcec1[_0x5356fb('0x543')],'rows':_0x3fcec1},_0x5a265b());});}function _0x94e271(_0x2e0fd1,_0xcb1424){const _0x1db99e=_0x13fb9b,_0x60fd8b=_0x5c4167[_0x1db99e('0x1d02')]()['title'](_0x5eb909['instant'](_0x1db99e('0x540')))[_0x1db99e('0x217')](_0x1db99e('0x1839'))[_0x1db99e('0x21de')](_0xcb1424)['ok']('OK')[_0x1db99e('0x1e1f')](_0x5eb909[_0x1db99e('0x1467')](_0x1db99e('0x2224')));_0x5c4167[_0x1db99e('0x1cb7')](_0x60fd8b)[_0x1db99e('0x173b')](function(){_0x338c5e(_0x2e0fd1,!![]);});}function _0x338c5e(_0x36298c,_0x840ad5){const _0x3d5269=_0x13fb9b;_0x322975[_0x3d5269('0x106d')][_0x3d5269('0x15e8')]({'id':_0x36298c['id']})[_0x3d5269('0x1964')][_0x3d5269('0x173b')](function(){const _0x5e3a89=_0x3d5269;_0x480d33(),_0x840ad5&&_0x25c02a[_0x5e3a89('0xdfe')]({'title':_0x5eb909[_0x5e3a89('0x1467')]('TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE')});})[_0x3d5269('0x103c')](function(_0x4101de){const _0x2a7f8d=_0x3d5269;if(_0x4101de[_0x2a7f8d('0x1e07')]&&_0x4101de[_0x2a7f8d('0x1e07')][_0x2a7f8d('0x1d4a')]&&_0x4101de[_0x2a7f8d('0x1e07')]['errors'][_0x2a7f8d('0x543')]){_0x4daeaa[_0x2a7f8d('0x1d4a')]=_0x4101de[_0x2a7f8d('0x1e07')][_0x2a7f8d('0x1d4a')]||[{'message':_0x4101de['toString'](),'type':_0x2a7f8d('0x1df7')}];for(let _0x464fbf=0x0;_0x464fbf<_0x4101de['data'][_0x2a7f8d('0x1d4a')]['length'];_0x464fbf++){_0x25c02a[_0x2a7f8d('0x15aa')]({'title':_0x4101de[_0x2a7f8d('0x1e07')][_0x2a7f8d('0x1d4a')][_0x464fbf][_0x2a7f8d('0x1810')],'msg':_0x4101de[_0x2a7f8d('0x1e07')][_0x2a7f8d('0x1d4a')][_0x464fbf][_0x2a7f8d('0x67f')]});}}else _0x25c02a[_0x2a7f8d('0x15aa')]({'title':_0x4101de['status']?'API:'+_0x4101de[_0x2a7f8d('0x276f')]+'\x20-\x20'+_0x4101de[_0x2a7f8d('0x2696')]:_0x2a7f8d('0x1df7'),'msg':_0x4101de[_0x2a7f8d('0x1e07')]?JSON['stringify'](_0x4101de[_0x2a7f8d('0x1e07')]['message']):_0x4101de[_0x2a7f8d('0x67f')]||_0x4101de[_0x2a7f8d('0x1b75')]()});});}function _0x484455(){const _0x11bf2c=_0x13fb9b,_0x13864b=angular[_0x11bf2c('0x2e3')](_0x4daeaa[_0x11bf2c('0x1065')]);return _0x4daeaa['selectedTriggerActions']=[],_0x13864b;}function _0x3a51cf(_0x239c03){const _0x8c12bb=_0x13fb9b,_0x2fec6e=_0x5c4167[_0x8c12bb('0x1d02')]()[_0x8c12bb('0x20d6')](_0x5eb909[_0x8c12bb('0x1467')](_0x8c12bb('0xb29')))['content'](_0x5eb909[_0x8c12bb('0x1467')](_0x8c12bb('0x99d'),{'total':_0x4daeaa[_0x8c12bb('0x1065')]['length']}))[_0x8c12bb('0x217')](_0x8c12bb('0x135e'))[_0x8c12bb('0x21de')](_0x239c03)['ok']('OK')[_0x8c12bb('0x1e1f')](_0x5eb909[_0x8c12bb('0x1467')]('TOOLS.CANCEL'));_0x5c4167[_0x8c12bb('0x1cb7')](_0x2fec6e)[_0x8c12bb('0x173b')](function(){const _0x4a5a8e=_0x8c12bb;_0x4daeaa['selectedTriggerActions']['forEach'](function(_0x30cfbd){_0x338c5e(_0x30cfbd);}),_0x4daeaa['selectedTriggerActions']=[],_0x25c02a['success']({'title':_0x5eb909[_0x4a5a8e('0x1467')]('TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE')});});}let _0x47ff38=!![],_0x2e69de=0x1;_0x43869b['$watch'](_0x13fb9b('0x5b8'),function(_0x57bd83,_0x3d4b6e){const _0x5cb4d7=_0x13fb9b;_0x47ff38?_0xf73ef4(function(){_0x47ff38=![];}):(!_0x3d4b6e&&(_0x2e69de=_0x4daeaa['query'][_0x5cb4d7('0x182e')]),_0x57bd83!==_0x3d4b6e&&(_0x4daeaa[_0x5cb4d7('0xc49')]['page']=0x1),!_0x57bd83&&(_0x4daeaa[_0x5cb4d7('0xc49')][_0x5cb4d7('0x182e')]=_0x2e69de),_0x480d33());});}const _0x544fce=_0x49053b;_0x3580b7['$inject']=[_0x566993('0x2276'),'$mdDialog',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x39b'),_0x566993('0x106d'),_0x566993('0x237'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x3580b7(_0x49330f,_0x17abe4,_0x35e825,_0x50ef67,_0x49a4b3,_0xde9e6c,_0x304520,_0xc9d591,_0x21c992,_0x49933d,_0x46e28d,_0x2531c4){const _0x5b2f38=_0x566993,_0x3ae84f=this;_0x3ae84f[_0x5b2f38('0x155f')]=_0x21c992[_0x5b2f38('0x14d4')](),_0x3ae84f[_0x5b2f38('0x106d')]=angular['copy'](_0xde9e6c),_0x3ae84f[_0x5b2f38('0x39b')]=angular[_0x5b2f38('0x2e3')](_0x49a4b3),_0x3ae84f[_0x5b2f38('0x251')]=_0x46e28d,_0x3ae84f[_0x5b2f38('0x1a29')]=_0x49933d,_0x3ae84f['crudPermissions']=_0x2531c4,_0x3ae84f[_0x5b2f38('0x1fbf')]=![],_0x3ae84f[_0x5b2f38('0x1d4a')]=[],_0x3ae84f[_0x5b2f38('0x237')]=angular[_0x5b2f38('0x2e3')](_0x304520);!_0x3ae84f[_0x5b2f38('0x106d')]&&(_0x3ae84f['action']={},_0x3ae84f[_0x5b2f38('0x1fbf')]=!![]);_0x3ae84f['action']['ActionId']=_0x49330f['params']['id']||undefined,_0x3ae84f[_0x5b2f38('0x4ef')]=[_0x5b2f38('0xa04'),_0x5b2f38('0x1c56'),_0x5b2f38('0x16d')],_0x3ae84f[_0x5b2f38('0x122')]=_0x11fe4f,_0x3ae84f['saveAction']=_0x42294f,_0x3ae84f[_0x5b2f38('0xd17')]=_0x54cd35,_0x3ae84f['onActionInit']=_0x325d3d,_0x3ae84f['onIntegrationInit']=_0x502a47,_0x3ae84f[_0x5b2f38('0x1e06')]=_0x40a293,_0x3ae84f[_0x5b2f38('0x93e')]=_0x2e2792,_0x3ae84f[_0x5b2f38('0x16b6')]=_0x5eb0f7,_0x3ae84f['onListSelection']=_0x26c6ae,_0x3ae84f[_0x5b2f38('0x15c5')]=_0x139382,_0x3ae84f['onAutocreateSelection']=_0x219e71,_0x3ae84f[_0x5b2f38('0xf8a')]=_0x1ec633,_0x3ae84f[_0x5b2f38('0x18e2')]=_0x392af9;function _0x325d3d(){const _0x5ba2f0=_0x5b2f38;_0x21c992['hasModulePermissions'](_0x5ba2f0('0x198'))[_0x5ba2f0('0x173b')](function(_0x4bca98){const _0x275ef9=_0x5ba2f0;_0x3ae84f[_0x275ef9('0x18ec')]=_0x4bca98;})['catch'](function(_0x39ed85){const _0x1244ea=_0x5ba2f0;_0x50ef67['error']({'title':_0x39ed85[_0x1244ea('0x276f')]?_0x1244ea('0x137')+_0x39ed85[_0x1244ea('0x276f')]+_0x1244ea('0x160c')+_0x39ed85[_0x1244ea('0x2696')]:_0x1244ea('0x1afa'),'msg':_0x39ed85[_0x1244ea('0x1e07')]?JSON['stringify'](_0x39ed85['data']):_0x39ed85[_0x1244ea('0x1b75')]()});});if(_0x3ae84f[_0x5ba2f0('0x106d')][_0x5ba2f0('0x106d')])_0x5c7bfb();}function _0x502a47(){const _0x5956db=_0x5b2f38,_0x1bf9c9=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x21c992[_0x5956db('0x1671')](_0x1bf9c9)[_0x5956db('0x173b')](function(_0x4485e1){const _0x4062c9=_0x5956db;_0x3ae84f[_0x4062c9('0x19aa')]=_0x3c8d8a()[_0x4062c9('0x9ef')](_0x3ae84f['hasSectionPermissions'],_0x4485e1);})['catch'](function(_0x11f909){const _0x20db68=_0x5956db;_0x50ef67[_0x20db68('0x15aa')]({'title':_0x11f909['status']?'API:'+_0x11f909[_0x20db68('0x276f')]+'\x20-\x20'+_0x11f909['statusText']:'SYSTEM:GET_SECTIONS_PERMISSIONS','msg':_0x11f909[_0x20db68('0x1e07')]?JSON['stringify'](_0x11f909[_0x20db68('0x1e07')]):_0x11f909['toString']()});});}function _0x40a293(){const _0x5b7028=_0x5b2f38;if(!_0x3ae84f[_0x5b7028('0x1fbf')])_0x20b105();}function _0x1723f5(){const _0x3c4479=_0x5b2f38;_0x21c992[_0x3c4479('0xfd8')]()?_0xc9d591[_0x3c4479('0xbb3')]['get']({'fields':_0x3c4479('0xd52'),'sort':_0x3c4479('0x10ad'),'nolimit':_0x3c4479('0x799')})['$promise']['then'](function(_0x103de1){const _0x8fdf7=_0x3c4479;_0x3ae84f['lists']=_0x103de1[_0x8fdf7('0x6aa')]||[];})[_0x3c4479('0x103c')](function(_0x1bb3e3){const _0x34b7c6=_0x3c4479;_0x50ef67['error']({'title':_0x1bb3e3[_0x34b7c6('0x276f')]?_0x34b7c6('0x137')+_0x1bb3e3[_0x34b7c6('0x276f')]+_0x34b7c6('0x160c')+_0x1bb3e3[_0x34b7c6('0x2696')]:_0x34b7c6('0x1d5c'),'msg':_0x1bb3e3[_0x34b7c6('0x1e07')]?JSON[_0x34b7c6('0x100b')](_0x1bb3e3[_0x34b7c6('0x1e07')]):_0x1bb3e3[_0x34b7c6('0x1b75')]()});}):_0xc9d591['cmList'][_0x3c4479('0x1d97')]({'fields':_0x3c4479('0xd52'),'sort':'name','nolimit':_0x3c4479('0x799')})[_0x3c4479('0x1964')][_0x3c4479('0x173b')](function(_0x599740){const _0x1c5d05=_0x3c4479;_0x3ae84f[_0x1c5d05('0x9e8')]=_0x599740[_0x1c5d05('0x6aa')]||[];})[_0x3c4479('0x173b')](function(){const _0x10ac39=_0x3c4479;return _0xc9d591[_0x10ac39('0x170e')][_0x10ac39('0x1d97')]({'userProfileId':_0x3ae84f[_0x10ac39('0x155f')]['userProfileId'],'sectionId':0x12d})[_0x10ac39('0x1964')];})[_0x3c4479('0x173b')](function(_0x85b9f5){const _0x165af9=_0x3c4479,_0x5d3fcc=_0x85b9f5&&_0x85b9f5[_0x165af9('0x6aa')]?_0x85b9f5[_0x165af9('0x6aa')][0x0]:null;if(!_0x5d3fcc){const _0x46418e=[],_0x510e3a=[];_0x3ae84f[_0x165af9('0x252e')][_0x165af9('0x6aa')][_0x165af9('0xa6a')](function(_0x5b528e){const _0x1483a4=_0x165af9;if(_0x5b528e[_0x1483a4('0x106d')]==='contactManager'){const _0x18e6dd=_0x3c8d8a()[_0x1483a4('0x18ab')](_0x3ae84f['lists'],{'id':Number(_0x5b528e[_0x1483a4('0x11b9')])});_0x510e3a['push'](_0x18e6dd);}});for(let _0x1bec89=0x0;_0x1bec89<_0x3ae84f[_0x165af9('0x9e8')][_0x165af9('0x543')];_0x1bec89++){const _0x4df01b=_0x3c8d8a()[_0x165af9('0x1ec')](_0x510e3a,{'id':_0x3ae84f[_0x165af9('0x9e8')][_0x1bec89]['id']});_0x4df01b&&(_0x3ae84f[_0x165af9('0x9e8')][_0x1bec89][_0x165af9('0x268e')]=![],_0x46418e[_0x165af9('0x18bb')](_0x3ae84f['lists'][_0x1bec89]));}_0x3ae84f['lists']=_0x46418e;}else{if(!_0x5d3fcc[_0x165af9('0x273e')])return _0xc9d591['userProfileResource']['get']({'sectionId':_0x5d3fcc['id']})['$promise'][_0x165af9('0x173b')](function(_0x3c205f){const _0x227741=_0x165af9,_0x39c6f9=_0x3c8d8a()[_0x227741('0x8a2')](_0x3c205f[_0x227741('0x6aa')],function(_0x27407d){const _0xd6ced9=_0x227741;return _0x3c8d8a()[_0xd6ced9('0x18ab')](_0x3ae84f[_0xd6ced9('0x9e8')],{'id':_0x27407d[_0xd6ced9('0x1ce0')]});});let _0x285c5c=null;_0x285c5c=[],_0x3ae84f['triggerActions'][_0x227741('0x6aa')][_0x227741('0xa6a')](function(_0x5d8655){const _0x2e222a=_0x227741;if(_0x5d8655[_0x2e222a('0x106d')]===_0x2e222a('0xfe1')){const _0x4ba889=_0x3c8d8a()['find'](_0x3ae84f[_0x2e222a('0x9e8')],{'id':Number(_0x5d8655['data1'])});_0x285c5c[_0x2e222a('0x18bb')](_0x4ba889);}}),!_0x3c8d8a()['isEmpty'](_0x285c5c)&&_0x285c5c[_0x227741('0xa6a')](function(_0x6a0f37){const _0x12a78d=_0x227741;if(!_0x3c8d8a()[_0x12a78d('0x1ec')](_0x39c6f9,['id',_0x6a0f37['id']])){const _0x522f64=_0x3c8d8a()[_0x12a78d('0x18ab')](_0x3ae84f['lists'],{'id':_0x6a0f37['id']});_0x522f64[_0x12a78d('0x268e')]=![],_0x39c6f9[_0x12a78d('0x18bb')](_0x522f64);}}),_0x3ae84f['lists']=_0x39c6f9;});}})[_0x3c4479('0x103c')](function(_0x28874e){const _0x259dce=_0x3c4479;_0x50ef67['error']({'title':_0x28874e[_0x259dce('0x276f')]?'API:'+_0x28874e[_0x259dce('0x276f')]+'\x20-\x20'+_0x28874e['statusText']:'SYSTEM:GETlists','msg':_0x28874e['data']?JSON[_0x259dce('0x100b')](_0x28874e[_0x259dce('0x1e07')]):_0x28874e['toString']()});});}function _0x56ab18(){const _0x2c5c07=_0x5b2f38;_0xc9d591[_0x2c5c07('0x1197')][_0x2c5c07('0x2320')]({})[_0x2c5c07('0x1964')][_0x2c5c07('0x173b')](function(_0x391e6b){const _0x50ea5c=_0x2c5c07;_0x3ae84f[_0x50ea5c('0x1a7a')]=[],_0x3ae84f[_0x50ea5c('0x179b')]=[];const _0x275ac6=_0x3c8d8a()[_0x50ea5c('0xcaf')](_0x391e6b[_0x50ea5c('0xf1f')]());for(let _0x4d425b=0x0;_0x4d425b<_0x275ac6['length'];_0x4d425b++){if(_0x3c8d8a()[_0x50ea5c('0x2814')](_0x3ae84f[_0x50ea5c('0x4ef')],_0x275ac6[_0x4d425b][_0x50ea5c('0xf4d')]))_0x3ae84f[_0x50ea5c('0x1a7a')][_0x50ea5c('0x18bb')](_0x275ac6[_0x4d425b]);else{if(_0x3c8d8a()['startsWith'](_0x275ac6[_0x4d425b][_0x50ea5c('0xf4d')],_0x50ea5c('0x205b'))){if(_0x275ac6[_0x4d425b]['custom'][_0x50ea5c('0x1810')]===_0x50ea5c('0x86e'))_0x3ae84f[_0x50ea5c('0x179b')][_0x50ea5c('0x18bb')](_0x275ac6[_0x4d425b]);}}}})[_0x2c5c07('0x103c')](function(_0x42d1c3){const _0x2b7718=_0x2c5c07;_0x50ef67[_0x2b7718('0x15aa')]({'title':_0x42d1c3[_0x2b7718('0x276f')]?'API:'+_0x42d1c3[_0x2b7718('0x276f')]+_0x2b7718('0x160c')+_0x42d1c3[_0x2b7718('0x2696')]:_0x2b7718('0x5a5'),'msg':_0x42d1c3[_0x2b7718('0x1e07')]?JSON[_0x2b7718('0x100b')](_0x42d1c3[_0x2b7718('0x1e07')]):_0x42d1c3[_0x2b7718('0x1b75')]()});});}function _0x20b105(){const _0x320237=_0x5b2f38;_0xc9d591[_0x320237('0xbb3')][_0x320237('0x26f3')]({'id':_0x3ae84f[_0x320237('0x106d')][_0x320237('0x11b9')],'ListId':_0x3ae84f['action'][_0x320237('0x11b9')]})[_0x320237('0x1964')]['then'](function(_0x57ee69){const _0x260d3c=_0x320237;_0x3ae84f['listFields']=_0x3c8d8a()['filter'](_0x57ee69['rows'],[_0x260d3c('0x1810'),'text']),_0x3ae84f[_0x260d3c('0x27c2')][_0x260d3c('0xa6a')](function(_0x10819c){const _0x4af5fd=_0x260d3c;_0x10819c[_0x4af5fd('0xf4d')]='cf_'+_0x10819c['id'];});})[_0x320237('0x103c')](function(_0x41ddec){const _0x119fa6=_0x320237;_0x50ef67['error']({'title':_0x41ddec[_0x119fa6('0x276f')]?_0x119fa6('0x137')+_0x41ddec[_0x119fa6('0x276f')]+_0x119fa6('0x160c')+_0x41ddec[_0x119fa6('0x2696')]:_0x119fa6('0x1a09'),'msg':_0x41ddec[_0x119fa6('0x1e07')]?JSON[_0x119fa6('0x100b')](_0x41ddec['data']):_0x41ddec[_0x119fa6('0x1b75')]()});});}function _0x4d82cf(){const _0x21c744=_0x5b2f38;_0x21c992['isAdmin']()?_0xc9d591['jscriptyProject'][_0x21c744('0x1d97')]({'fields':_0x21c744('0xd52'),'sort':'name','nolimit':_0x21c744('0x799')})[_0x21c744('0x1964')][_0x21c744('0x173b')](function(_0x10f2c0){const _0x24f9c3=_0x21c744;_0x3ae84f[_0x24f9c3('0x23a1')]=_0x10f2c0[_0x24f9c3('0x6aa')]||[];})['catch'](function(_0x422c03){const _0x4f7fa0=_0x21c744;_0x50ef67[_0x4f7fa0('0x15aa')]({'title':_0x422c03[_0x4f7fa0('0x276f')]?_0x4f7fa0('0x137')+_0x422c03[_0x4f7fa0('0x276f')]+_0x4f7fa0('0x160c')+_0x422c03[_0x4f7fa0('0x2696')]:'SYSTEM:GET_PROJECTS','msg':_0x422c03[_0x4f7fa0('0x1e07')]?JSON['stringify'](_0x422c03[_0x4f7fa0('0x1e07')]):_0x422c03[_0x4f7fa0('0x1b75')]()});}):_0xc9d591[_0x21c744('0x46f')]['get']({'fields':_0x21c744('0xd52'),'sort':_0x21c744('0x10ad'),'nolimit':_0x21c744('0x799')})[_0x21c744('0x1964')][_0x21c744('0x173b')](function(_0x34c6aa){const _0x183517=_0x21c744;_0x3ae84f[_0x183517('0x23a1')]=_0x34c6aa[_0x183517('0x6aa')]||[];})[_0x21c744('0x173b')](function(){const _0x39bd29=_0x21c744;return _0xc9d591[_0x39bd29('0x170e')][_0x39bd29('0x1d97')]({'userProfileId':_0x3ae84f['currentUser'][_0x39bd29('0x1946')],'sectionId':0x6a5})['$promise'];})[_0x21c744('0x173b')](function(_0x242eea){const _0x478dc6=_0x21c744,_0x4131c7=_0x242eea&&_0x242eea[_0x478dc6('0x6aa')]?_0x242eea[_0x478dc6('0x6aa')][0x0]:null;if(!_0x4131c7){const _0x569402=[],_0xce9cbe=[];_0x3ae84f[_0x478dc6('0x252e')][_0x478dc6('0x6aa')][_0x478dc6('0xa6a')](function(_0x3027ab){const _0x1e5c85=_0x478dc6;if(_0x3027ab['action']==='jscripty'){const _0xe6c9bf=_0x3c8d8a()[_0x1e5c85('0x18ab')](_0x3ae84f['projects'],{'id':Number(_0x3027ab[_0x1e5c85('0x11b9')])});_0xce9cbe[_0x1e5c85('0x18bb')](_0xe6c9bf);}});for(let _0x280856=0x0;_0x280856<_0x3ae84f[_0x478dc6('0x23a1')][_0x478dc6('0x543')];_0x280856++){const _0x2c35af=_0x3c8d8a()[_0x478dc6('0x1ec')](_0xce9cbe,{'id':_0x3ae84f['projects'][_0x280856]['id']});_0x2c35af&&(_0x3ae84f[_0x478dc6('0x23a1')][_0x280856][_0x478dc6('0x268e')]=![],_0x569402[_0x478dc6('0x18bb')](_0x3ae84f[_0x478dc6('0x23a1')][_0x280856]));}_0x3ae84f[_0x478dc6('0x23a1')]=_0x569402;}else{if(!_0x4131c7[_0x478dc6('0x273e')])return _0xc9d591['userProfileResource'][_0x478dc6('0x1d97')]({'sectionId':_0x4131c7['id']})[_0x478dc6('0x1964')][_0x478dc6('0x173b')](function(_0x5e5544){const _0x15b2e7=_0x478dc6,_0x38c807=_0x3c8d8a()['map'](_0x5e5544[_0x15b2e7('0x6aa')],function(_0x612dae){const _0x1dd2fb=_0x15b2e7;return _0x3c8d8a()[_0x1dd2fb('0x18ab')](_0x3ae84f[_0x1dd2fb('0x23a1')],{'id':_0x612dae[_0x1dd2fb('0x1ce0')]});});let _0x525ff1=null;_0x525ff1=[],_0x3ae84f[_0x15b2e7('0x252e')][_0x15b2e7('0x6aa')][_0x15b2e7('0xa6a')](function(_0x27d073){const _0x697722=_0x15b2e7;if(_0x27d073[_0x697722('0x106d')]==='jscripty'){const _0xd10e81=_0x3c8d8a()[_0x697722('0x18ab')](_0x3ae84f['projects'],{'id':Number(_0x27d073['data1'])});_0x525ff1[_0x697722('0x18bb')](_0xd10e81);}}),!_0x3c8d8a()['isEmpty'](_0x525ff1)&&_0x525ff1[_0x15b2e7('0xa6a')](function(_0x392fe2){const _0x500719=_0x15b2e7;if(!_0x3c8d8a()[_0x500719('0x1ec')](_0x38c807,['id',_0x392fe2['id']])){const _0x208d13=_0x3c8d8a()[_0x500719('0x18ab')](_0x3ae84f['projects'],{'id':_0x392fe2['id']});_0x208d13[_0x500719('0x268e')]=![],_0x38c807[_0x500719('0x18bb')](_0x208d13);}}),_0x3ae84f[_0x15b2e7('0x23a1')]=_0x38c807;});}})['catch'](function(_0x3b7b13){const _0x12e5ca=_0x21c744;_0x50ef67[_0x12e5ca('0x15aa')]({'title':_0x3b7b13['status']?_0x12e5ca('0x137')+_0x3b7b13[_0x12e5ca('0x276f')]+_0x12e5ca('0x160c')+_0x3b7b13[_0x12e5ca('0x2696')]:_0x12e5ca('0x2233'),'msg':_0x3b7b13['data']?JSON[_0x12e5ca('0x100b')](_0x3b7b13['data']):_0x3b7b13['toString']()});});}function _0xc8c476(){const _0x25bbfc=_0x5b2f38;_0x21c992['isAdmin']()?_0xc9d591[_0x25bbfc('0x1a98')][_0x25bbfc('0x1d97')]({'fields':_0x25bbfc('0xd52'),'sort':'id','nolimit':_0x25bbfc('0x799')})[_0x25bbfc('0x1964')][_0x25bbfc('0x173b')](function(_0x44b261){const _0x102d6e=_0x25bbfc;_0x3ae84f[_0x102d6e('0x2637')]=_0x44b261[_0x102d6e('0x6aa')]||[];})[_0x25bbfc('0x103c')](function(_0x3698f9){const _0x5b4eaa=_0x25bbfc;_0x50ef67[_0x5b4eaa('0x15aa')]({'title':_0x3698f9[_0x5b4eaa('0x276f')]?_0x5b4eaa('0x137')+_0x3698f9[_0x5b4eaa('0x276f')]+'\x20-\x20'+_0x3698f9[_0x5b4eaa('0x2696')]:_0x5b4eaa('0x11c8'),'msg':_0x3698f9['data']?JSON[_0x5b4eaa('0x100b')](_0x3698f9[_0x5b4eaa('0x1e07')]):_0x3698f9[_0x5b4eaa('0x1b75')]()});}):_0xc9d591['template']['get']({'fields':_0x25bbfc('0xd52'),'sort':'id','nolimit':_0x25bbfc('0x799')})[_0x25bbfc('0x1964')]['then'](function(_0x18e03d){const _0x5c06e6=_0x25bbfc;_0x3ae84f[_0x5c06e6('0x2637')]=_0x18e03d[_0x5c06e6('0x6aa')]||[];})[_0x25bbfc('0x173b')](function(){const _0x5487e4=_0x25bbfc;return _0xc9d591['userProfileSection'][_0x5487e4('0x1d97')]({'userProfileId':_0x3ae84f[_0x5487e4('0x155f')][_0x5487e4('0x1946')],'sectionId':0x3f1})[_0x5487e4('0x1964')];})['then'](function(_0x4fce48){const _0x4d1382=_0x25bbfc,_0x452ecd=_0x4fce48&&_0x4fce48[_0x4d1382('0x6aa')]?_0x4fce48['rows'][0x0]:null;if(!_0x452ecd){const _0x2c00e5=[],_0xef20b8=[];_0x3ae84f[_0x4d1382('0x252e')][_0x4d1382('0x6aa')]['forEach'](function(_0x59d911){const _0x1d9edc=_0x4d1382;if(_0x3c8d8a()[_0x1d9edc('0x2814')](['motionbar',_0x1d9edc('0x244e')],_0x59d911[_0x1d9edc('0x106d')])){const _0xa28797=_0x3c8d8a()[_0x1d9edc('0x18ab')](_0x3ae84f[_0x1d9edc('0x2637')],{'id':Number(_0x59d911['data2'])});_0xef20b8[_0x1d9edc('0x18bb')](_0xa28797);}});for(let _0x227b7f=0x0;_0x227b7f<_0x3ae84f[_0x4d1382('0x2637')][_0x4d1382('0x543')];_0x227b7f++){const _0xa2907d=_0x3c8d8a()['some'](_0xef20b8,{'id':_0x3ae84f['templates'][_0x227b7f]['id']});_0xa2907d&&(_0x3ae84f[_0x4d1382('0x2637')][_0x227b7f]['canSelect']=![],_0x2c00e5[_0x4d1382('0x18bb')](_0x3ae84f['templates'][_0x227b7f]));}_0x3ae84f[_0x4d1382('0x2637')]=_0x2c00e5;}else{if(!_0x452ecd[_0x4d1382('0x273e')])return _0xc9d591[_0x4d1382('0xda9')][_0x4d1382('0x1d97')]({'sectionId':_0x452ecd['id']})[_0x4d1382('0x1964')][_0x4d1382('0x173b')](function(_0x149b24){const _0x30bccc=_0x4d1382,_0x38942f=_0x3c8d8a()[_0x30bccc('0x8a2')](_0x149b24['rows'],function(_0x4ee04d){const _0x9aa9ab=_0x30bccc;return _0x3c8d8a()[_0x9aa9ab('0x18ab')](_0x3ae84f['templates'],{'id':_0x4ee04d[_0x9aa9ab('0x1ce0')]});});let _0x5c2a2b=null;_0x5c2a2b=[],_0x3ae84f[_0x30bccc('0x252e')][_0x30bccc('0x6aa')][_0x30bccc('0xa6a')](function(_0x343f7e){const _0x43df8b=_0x30bccc;if(_0x3c8d8a()[_0x43df8b('0x2814')]([_0x43df8b('0x2428'),_0x43df8b('0x244e')],_0x343f7e['action'])){const _0x221554=_0x3c8d8a()[_0x43df8b('0x18ab')](_0x3ae84f[_0x43df8b('0x2637')],{'id':Number(_0x343f7e[_0x43df8b('0x1066')])});_0x5c2a2b[_0x43df8b('0x18bb')](_0x221554);}}),!_0x3c8d8a()[_0x30bccc('0x1a56')](_0x5c2a2b)&&_0x5c2a2b[_0x30bccc('0xa6a')](function(_0x474765){const _0x573ffc=_0x30bccc;if(!_0x3c8d8a()[_0x573ffc('0x1ec')](_0x38942f,['id',_0x474765['id']])){const _0x29cadf=_0x3c8d8a()['find'](_0x3ae84f[_0x573ffc('0x2637')],{'id':_0x474765['id']});_0x29cadf[_0x573ffc('0x268e')]=![],_0x38942f[_0x573ffc('0x18bb')](_0x29cadf);}}),_0x3ae84f['templates']=_0x38942f;});}})['catch'](function(_0x1109cd){const _0x2177fe=_0x25bbfc;_0x50ef67[_0x2177fe('0x15aa')]({'title':_0x1109cd[_0x2177fe('0x276f')]?'API:'+_0x1109cd[_0x2177fe('0x276f')]+'\x20-\x20'+_0x1109cd['statusText']:_0x2177fe('0x11c8'),'msg':_0x1109cd[_0x2177fe('0x1e07')]?JSON[_0x2177fe('0x100b')](_0x1109cd[_0x2177fe('0x1e07')]):_0x1109cd['toString']()});});}function _0x8b5ca3(){const _0x1fae14=_0x5b2f38;switch(_0x3ae84f[_0x1fae14('0x106d')][_0x1fae14('0x11b9')]){case'zendesk':return _0x3ae84f[_0x1fae14('0x19aa')][0x515];case _0x1fae14('0x1142'):return _0x3ae84f[_0x1fae14('0x19aa')][0x516];case _0x1fae14('0x277'):return _0x3ae84f[_0x1fae14('0x19aa')][0x519];case _0x1fae14('0x1ae7'):return _0x3ae84f['hasSectionPermissions'][0x517];case _0x1fae14('0x1ed4'):return _0x3ae84f[_0x1fae14('0x19aa')][0x51a];case'zoho':return _0x3ae84f[_0x1fae14('0x19aa')][0x51b];case _0x1fae14('0x247b'):return _0x3ae84f['hasSectionPermissions'][0x51c];case _0x1fae14('0x411'):return _0x3ae84f[_0x1fae14('0x19aa')][0x51d];case'servicenow':return _0x3ae84f[_0x1fae14('0x19aa')][0x51e];case _0x1fae14('0x2651'):return _0x3ae84f['hasSectionPermissions'][0x51f];}}function _0x53b170(){const _0x251b14=_0x5b2f38;_0x3ae84f['action']['data1']=undefined,_0x3ae84f[_0x251b14('0x106d')][_0x251b14('0x1066')]=undefined,_0x3ae84f[_0x251b14('0x106d')][_0x251b14('0x4d6')]=undefined,_0x3ae84f[_0x251b14('0x106d')]['data4']=undefined,_0x3ae84f[_0x251b14('0x106d')]['data5']=_0x3ae84f[_0x251b14('0x106d')][_0x251b14('0x106d')]==='urlForward'?0x5:undefined;}function _0x5c7bfb(){const _0x32d55d=_0x5b2f38;switch(_0x3ae84f['action'][_0x32d55d('0x106d')]){case _0x32d55d('0xfe1'):if(!_0x3ae84f[_0x32d55d('0x9e8')])_0x1723f5();if(!_0x3ae84f[_0x32d55d('0x1a7a')])_0x56ab18();_0x3ae84f['action'][_0x32d55d('0x4d6')]=_0x3ae84f[_0x32d55d('0x106d')][_0x32d55d('0x4d6')]?_0x3ae84f[_0x32d55d('0x106d')][_0x32d55d('0x4d6')][_0x32d55d('0x43a')](','):[_0x32d55d('0xa04')];if(_0x3ae84f['action']['data2']==='1'&&!_0x3ae84f[_0x32d55d('0x106d')][_0x32d55d('0x189b')])_0x3ae84f[_0x32d55d('0x106d')][_0x32d55d('0x189b')]='phone';break;case _0x32d55d('0x25a1'):if(!_0x3ae84f[_0x32d55d('0x23a1')])_0x4d82cf();break;case _0x32d55d('0x2bd'):if(!_0x3ae84f[_0x32d55d('0x106d')][_0x32d55d('0xbc7')])_0x3ae84f[_0x32d55d('0x106d')]['data5']=0x5;break;}}function _0x2e2792(){_0x53b170(),_0x5c7bfb();}function _0x5eb0f7(){const _0x420111=_0x5b2f38;_0x3ae84f[_0x420111('0x106d')]['data2']=undefined,_0x3ae84f['action'][_0x420111('0x4d6')]=undefined,_0x3ae84f[_0x420111('0x106d')][_0x420111('0x724')]=_0x3ae84f[_0x420111('0x1fbf')]?![]:!_0x8b5ca3();const _0x518c32=_0x420111('0x83c')+_0x3c8d8a()[_0x420111('0x587')](_0x3ae84f[_0x420111('0x106d')]['data1'])+'Account';_0xc9d591[_0x518c32]['get']({'fields':_0x420111('0xd52'),'sort':'id','nolimit':_0x420111('0x799')})['$promise'][_0x420111('0x173b')](function(_0xd4e4bf){const _0x34c1b6=_0x420111;_0x3ae84f[_0x34c1b6('0x102c')]=_0xd4e4bf[_0x34c1b6('0x6aa')]||[];})[_0x420111('0x103c')](function(_0x2b90c4){const _0x466219=_0x420111;_0x50ef67[_0x466219('0x15aa')]({'title':_0x2b90c4[_0x466219('0x276f')]?_0x466219('0x137')+_0x2b90c4[_0x466219('0x276f')]+_0x466219('0x160c')+_0x2b90c4[_0x466219('0x2696')]:'SYSTEM:GET_'+_0x3ae84f[_0x466219('0x106d')][_0x466219('0x11b9')]['toUpperCase']()+_0x466219('0x400'),'msg':_0x2b90c4[_0x466219('0x1e07')]?JSON[_0x466219('0x100b')](_0x2b90c4[_0x466219('0x1e07')]):_0x2b90c4['toString']()});});}function _0x26c6ae(){_0x20b105();}function _0x139382(){const _0x2e832b=_0x5b2f38;if(_0x3ae84f[_0x2e832b('0x106d')][_0x2e832b('0x11b9')]==='0'&&!_0x3ae84f[_0x2e832b('0x2637')])_0xc8c476();}function _0x219e71(){const _0x4ba3ec=_0x5b2f38;if(_0x3ae84f[_0x4ba3ec('0x106d')][_0x4ba3ec('0x1066')]==='0')_0x3ae84f['action'][_0x4ba3ec('0x189b')]=undefined;if(!_0x3ae84f[_0x4ba3ec('0x106d')][_0x4ba3ec('0x189b')]&&_0x3ae84f[_0x4ba3ec('0x106d')][_0x4ba3ec('0x1066')]==='1')_0x3ae84f[_0x4ba3ec('0x106d')][_0x4ba3ec('0x189b')]=_0x4ba3ec('0xa04');}function _0x1ec633(){const _0xf0e46c=_0x5b2f38;_0x3ae84f[_0xf0e46c('0x106d')][_0xf0e46c('0x4d6')]=undefined;const _0x3a59b8=_0xf0e46c('0x83c')+_0x3c8d8a()[_0xf0e46c('0x587')](_0x3ae84f['action']['data1'])+'Configuration';_0xc9d591[_0x3a59b8][_0xf0e46c('0x1d97')]({'fields':_0xf0e46c('0x2305'),'sort':'id','nolimit':_0xf0e46c('0x799')})[_0xf0e46c('0x1964')][_0xf0e46c('0x173b')](function(_0x3f74d8){const _0x561a9d=_0xf0e46c;_0x3ae84f[_0x561a9d('0x294')]=_0x3f74d8['rows']||[];})[_0xf0e46c('0x103c')](function(_0x4a34b2){const _0x14cd63=_0xf0e46c;_0x50ef67[_0x14cd63('0x15aa')]({'title':_0x4a34b2[_0x14cd63('0x276f')]?'API:'+_0x4a34b2[_0x14cd63('0x276f')]+_0x14cd63('0x160c')+_0x4a34b2['statusText']:_0x14cd63('0xe17')+_0x3ae84f[_0x14cd63('0x106d')]['data1'][_0x14cd63('0x1164')]()+'CONFIGURATIONS','msg':_0x4a34b2['data']?JSON['stringify'](_0x4a34b2[_0x14cd63('0x1e07')]):_0x4a34b2[_0x14cd63('0x1b75')]()});});}function _0xa717ab(){const _0x3b5877=_0x5b2f38,_0x4f2969=angular[_0x3b5877('0x2e3')](_0x3ae84f['action']);if(_0x3c8d8a()[_0x3b5877('0x118')](_0x4f2969[_0x3b5877('0x4d6')]))_0x4f2969[_0x3b5877('0x4d6')]=_0x3ae84f[_0x3b5877('0x106d')][_0x3b5877('0x4d6')]['join'](',');return _0x4f2969;}function _0x11fe4f(){const _0x1d13a7=_0x5b2f38;_0x3ae84f[_0x1d13a7('0x1d4a')]=[];const _0x29dbfa=_0xa717ab();_0xc9d591[_0x1d13a7('0x237')][_0x1d13a7('0x16d3')]({'id':_0x49330f['params']['id']},_0x29dbfa)[_0x1d13a7('0x1964')][_0x1d13a7('0x173b')](function(_0x59a136){const _0x4b852e=_0x1d13a7;_0x3ae84f[_0x4b852e('0x39b')][_0x4b852e('0x1377')](_0x59a136[_0x4b852e('0xf1f')]()),_0x50ef67[_0x4b852e('0xdfe')]({'title':_0x35e825[_0x4b852e('0x1467')]('TOOLS.NOTIFICATIONS.ACTION_CREATED_SUCCESS_TITLE')}),_0x392af9(_0x3ae84f[_0x4b852e('0x39b')]);})['catch'](function(_0x1469c6){const _0x23fccd=_0x1d13a7;if(_0x1469c6[_0x23fccd('0x1e07')]&&_0x1469c6[_0x23fccd('0x1e07')][_0x23fccd('0x1d4a')]&&_0x1469c6[_0x23fccd('0x1e07')][_0x23fccd('0x1d4a')][_0x23fccd('0x543')]){_0x3ae84f['errors']=_0x1469c6[_0x23fccd('0x1e07')][_0x23fccd('0x1d4a')]||[{'message':_0x1469c6['toString'](),'type':_0x23fccd('0x716')}];for(let _0x1b7d84=0x0;_0x1b7d84<_0x1469c6['data'][_0x23fccd('0x1d4a')][_0x23fccd('0x543')];_0x1b7d84+=0x1){_0x50ef67[_0x23fccd('0x15aa')]({'title':_0x1469c6[_0x23fccd('0x1e07')][_0x23fccd('0x1d4a')][_0x1b7d84][_0x23fccd('0x1810')],'msg':_0x1469c6[_0x23fccd('0x1e07')][_0x23fccd('0x1d4a')][_0x1b7d84][_0x23fccd('0x67f')]});}}else _0x50ef67['error']({'title':_0x1469c6['status']?_0x23fccd('0x137')+_0x1469c6[_0x23fccd('0x276f')]+_0x23fccd('0x160c')+_0x1469c6[_0x23fccd('0x2696')]:_0x23fccd('0x716'),'msg':_0x1469c6[_0x23fccd('0x1e07')]?JSON[_0x23fccd('0x100b')](_0x1469c6['data'][_0x23fccd('0x67f')]):_0x1469c6['toString']()});});}function _0x42294f(){const _0x1445ba=_0x5b2f38;_0x3ae84f[_0x1445ba('0x1d4a')]=[];const _0x543616=_0xa717ab();_0xc9d591[_0x1445ba('0x106d')]['update']({'id':_0x543616['id']},_0x543616)[_0x1445ba('0x1964')][_0x1445ba('0x173b')](function(){const _0x1c87bf=_0x1445ba;_0x3ae84f[_0x1c87bf('0x39b')]=_0x3c8d8a()[_0x1c87bf('0x8a2')](_0x3ae84f[_0x1c87bf('0x39b')],function(_0x28bbae){if(_0x28bbae['id']===_0x543616['id'])return _0x543616;else return _0x28bbae;}),_0x50ef67['success']({'title':_0x35e825[_0x1c87bf('0x1467')]('TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE')}),_0x392af9(_0x3ae84f[_0x1c87bf('0x39b')]);})[_0x1445ba('0x103c')](function(_0x4c3c90){const _0x2bc16f=_0x1445ba;if(_0x4c3c90[_0x2bc16f('0x1e07')]&&_0x4c3c90[_0x2bc16f('0x1e07')][_0x2bc16f('0x1d4a')]&&_0x4c3c90[_0x2bc16f('0x1e07')][_0x2bc16f('0x1d4a')][_0x2bc16f('0x543')]){_0x3ae84f[_0x2bc16f('0x1d4a')]=_0x4c3c90[_0x2bc16f('0x1e07')]['errors']||[{'message':_0x4c3c90['toString'](),'type':_0x2bc16f('0x1d89')}];for(let _0x3d373f=0x0;_0x3d373f<_0x4c3c90[_0x2bc16f('0x1e07')][_0x2bc16f('0x1d4a')][_0x2bc16f('0x543')];_0x3d373f++){_0x50ef67[_0x2bc16f('0x15aa')]({'title':_0x4c3c90[_0x2bc16f('0x1e07')][_0x2bc16f('0x1d4a')][_0x3d373f][_0x2bc16f('0x1810')],'msg':_0x4c3c90['data']['errors'][_0x3d373f]['message']});}}else _0x50ef67[_0x2bc16f('0x15aa')]({'title':_0x4c3c90['status']?_0x2bc16f('0x137')+_0x4c3c90[_0x2bc16f('0x276f')]+_0x2bc16f('0x160c')+_0x4c3c90[_0x2bc16f('0x2696')]:_0x2bc16f('0x1d89'),'msg':_0x4c3c90[_0x2bc16f('0x1e07')]?JSON[_0x2bc16f('0x100b')](_0x4c3c90[_0x2bc16f('0x1e07')][_0x2bc16f('0x67f')]):_0x4c3c90[_0x2bc16f('0x1b75')]()});});}function _0x54cd35(_0x2a8674){const _0x410e6d=_0x5b2f38;_0x3ae84f['errors']=[];const _0xf77742=_0x17abe4[_0x410e6d('0x1d02')]({'skipHide':!![]})[_0x410e6d('0x20d6')](_0x35e825[_0x410e6d('0x1467')]('TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE'))['ariaLabel'](_0x410e6d('0x1839'))['ok'](_0x35e825[_0x410e6d('0x1467')]('TOOLS.DELETE'))[_0x410e6d('0x1e1f')](_0x35e825[_0x410e6d('0x1467')](_0x410e6d('0x2224')))[_0x410e6d('0x21de')](_0x2a8674);_0x17abe4['show'](_0xf77742)[_0x410e6d('0x173b')](function(){const _0x80e020=_0x410e6d;_0xc9d591[_0x80e020('0x106d')][_0x80e020('0x15e8')]({'id':_0x3ae84f[_0x80e020('0x106d')]['id']})['$promise']['then'](function(){const _0x11ad85=_0x80e020;_0x3ae84f[_0x11ad85('0x39b')]=_0x3c8d8a()['filter'](_0x3ae84f['actions'],function(_0x2ff447){const _0x16537a=_0x11ad85;return _0x2ff447['id']!==_0x3ae84f[_0x16537a('0x106d')]['id'];}),_0x50ef67['success']({'title':_0x35e825[_0x11ad85('0x1467')](_0x11ad85('0x2104'))}),_0x392af9(_0x3ae84f[_0x11ad85('0x39b')]);})[_0x80e020('0x103c')](function(_0x142301){const _0x41e793=_0x80e020;if(_0x142301[_0x41e793('0x1e07')]&&_0x142301[_0x41e793('0x1e07')][_0x41e793('0x1d4a')]&&_0x142301[_0x41e793('0x1e07')]['errors'][_0x41e793('0x543')]){_0x3ae84f[_0x41e793('0x1d4a')]=_0x142301[_0x41e793('0x1e07')][_0x41e793('0x1d4a')]||[{'message':_0x142301[_0x41e793('0x1b75')](),'type':_0x41e793('0x219e')}];for(let _0x36ac14=0x0;_0x36ac14<_0x142301['data'][_0x41e793('0x1d4a')][_0x41e793('0x543')];_0x36ac14++){_0x50ef67[_0x41e793('0x15aa')]({'title':_0x142301['data'][_0x41e793('0x1d4a')][_0x36ac14][_0x41e793('0x1810')],'msg':_0x142301['data'][_0x41e793('0x1d4a')][_0x36ac14][_0x41e793('0x67f')]});}}else _0x50ef67[_0x41e793('0x15aa')]({'title':_0x142301[_0x41e793('0x276f')]?_0x41e793('0x137')+_0x142301['status']+_0x41e793('0x160c')+_0x142301[_0x41e793('0x2696')]:'api.action.delete','msg':_0x142301[_0x41e793('0x1e07')]?JSON[_0x41e793('0x100b')](_0x142301['data'][_0x41e793('0x67f')]):_0x142301[_0x41e793('0x67f')]||_0x142301[_0x41e793('0x1b75')]()});});},function(){});}function _0x392af9(_0x18714c){const _0x5cb4e8=_0x5b2f38;_0x17abe4[_0x5cb4e8('0x1cf4')](_0x18714c);}}const _0x469e75=_0x3580b7,_0x4a0e10=_0x21a6a1['p']+_0x566993('0x1115');_0x4bd68d['$inject']=[_0x566993('0x66f'),'$q',_0x566993('0x638'),'$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x4bd68d(_0xb34842,_0x164863,_0x149447,_0x36cdc4,_0x2c43de,_0x137726,_0x11941e,_0x5ba529,_0x48a116){const _0x1a9ae8=_0x566993,_0x4b40ec=this;_0x4b40ec[_0x1a9ae8('0x155f')]=_0x48a116[_0x1a9ae8('0x14d4')](),_0x4b40ec[_0x1a9ae8('0x237')]={},_0x4b40ec['triggerAllConditions']={'count':0x0,'rows':[]},_0x4b40ec['selectedTriggerAllConditions']=[],_0x4b40ec['query']={'fields':_0x1a9ae8('0x2da'),'limit':0xa,'page':0x1},_0x4b40ec[_0x1a9ae8('0x2340')]={'queue':_0x1a9ae8('0x1436'),'lastevent':'Call_Status','routeId':_0x1a9ae8('0x1a4'),'agent':'Agent','account':_0x1a9ae8('0x1b91'),'interaction':_0x1a9ae8('0x3a9'),'message':'Message'},_0x4b40ec[_0x1a9ae8('0x25c4')]={'abandoned':'Abandon','timeout':_0x1a9ae8('0x1b9a'),'complete':'Hangup','rejected':_0x1a9ae8('0x1262'),'called':_0x1a9ae8('0x213a'),'connect':'Answer','nosuchnumber':_0x1a9ae8('0x254d'),'busy':'Busy','noanswer':'NoAnswer','congestion':_0x1a9ae8('0x1f15'),'agentreject':_0x1a9ae8('0x9bc')},_0x4b40ec[_0x1a9ae8('0x1140')]={'in':_0x1a9ae8('0x6f9'),'out':_0x1a9ae8('0xd2c'),'accept':'Accepted','reject':'Rejected'},_0x4b40ec[_0x1a9ae8('0x2535')]=_0x1fe907,_0x4b40ec[_0x1a9ae8('0xdfe')]=_0x48b703,_0x4b40ec[_0x1a9ae8('0xc5f')]=_0x10b270,_0x4b40ec[_0x1a9ae8('0x1c5c')]=_0x375c5d,_0x4b40ec[_0x1a9ae8('0x2442')]=_0x4b0a7b,_0x4b40ec['deleteConfirm']=_0xe79863,_0x4b40ec[_0x1a9ae8('0x230d')]=_0x49dc5e;function _0x1fe907(_0x1faec1,_0x357219){const _0x4ebec8=_0x1a9ae8;_0x4b40ec[_0x4ebec8('0x237')]=_0x1faec1,_0x4b40ec[_0x4ebec8('0x1dc1')]=typeof _0x357219!==_0x4ebec8('0x6e5')?_0x357219:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4b40ec[_0x4ebec8('0xc49')][_0x4ebec8('0xf7d')]=_0x4b40ec[_0x4ebec8('0x237')]['id'],_0x4b40ec[_0x4ebec8('0xc49')]['id']=_0x4b40ec[_0x4ebec8('0x237')]['id'],_0x10b270();}function _0x269ce5(){const _0x37ca3d=_0x1a9ae8,_0x10470f=_0x4b40ec[_0x37ca3d('0x237')][_0x37ca3d('0x1134')],_0x2be10a=_0x4b40ec[_0x37ca3d('0x237')][_0x37ca3d('0x1134')]+_0x4b40ec[_0x37ca3d('0x237')][_0x37ca3d('0x1134')]==='chat'?_0x37ca3d('0x7fc'):_0x37ca3d('0xe6c'),_0x1ca527=_0x4b40ec[_0x37ca3d('0x237')][_0x37ca3d('0x1134')]+(_0x4b40ec[_0x37ca3d('0x237')]['channel']===_0x37ca3d('0x8c5')?_0x37ca3d('0x2675'):_0x37ca3d('0x1b91'));let _0x1129e9;switch(_0x4b40ec[_0x37ca3d('0x237')]['channel']){case _0x37ca3d('0x8c5'):_0x1129e9=0x1f6;break;case _0x37ca3d('0x16d'):_0x1129e9=0x386;break;case'mail':_0x1129e9=0x25a;break;case _0x37ca3d('0xab2'):_0x1129e9=0x322;break;case _0x37ca3d('0x1a8f'):_0x1129e9=0x2be;break;case _0x37ca3d('0x245'):_0x1129e9=0x836;break;}_0x48a116['isAdmin']()?_0x5ba529[_0x1ca527][_0x37ca3d('0x1d97')]({'fields':_0x37ca3d('0xd52'),'sort':'id','nolimit':_0x37ca3d('0x799')})[_0x37ca3d('0x1964')][_0x37ca3d('0x173b')](function(_0x2c54ec){_0x4b40ec[_0x2be10a]=_0x2c54ec['rows']||[];})[_0x37ca3d('0x103c')](function(_0x4f4aff){const _0x55b5c6=_0x37ca3d;_0x11941e[_0x55b5c6('0x15aa')]({'title':_0x4f4aff[_0x55b5c6('0x276f')]?_0x55b5c6('0x137')+_0x4f4aff[_0x55b5c6('0x276f')]+_0x55b5c6('0x160c')+_0x4f4aff[_0x55b5c6('0x2696')]:_0x55b5c6('0xe17')+_0x10470f[_0x55b5c6('0x1164')]()+_0x10470f==='chat'?_0x55b5c6('0x1c2b'):'ACCOUNTS','msg':_0x4f4aff[_0x55b5c6('0x1e07')]?JSON[_0x55b5c6('0x100b')](_0x4f4aff['data']):_0x4f4aff[_0x55b5c6('0x1b75')]()});}):_0x5ba529[_0x1ca527][_0x37ca3d('0x1d97')]({'fields':'id,name','sort':'id','nolimit':_0x37ca3d('0x799')})[_0x37ca3d('0x1964')][_0x37ca3d('0x173b')](function(_0x5f4744){const _0x23edd0=_0x37ca3d;_0x4b40ec[_0x2be10a]=_0x5f4744[_0x23edd0('0x6aa')]||[];})[_0x37ca3d('0x173b')](function(){const _0x4edd00=_0x37ca3d;return _0x5ba529[_0x4edd00('0x170e')]['get']({'userProfileId':_0x4b40ec[_0x4edd00('0x155f')][_0x4edd00('0x1946')],'sectionId':_0x1129e9})['$promise'];})[_0x37ca3d('0x173b')](function(_0x412526){const _0x4ceaf2=_0x37ca3d,_0x149f1e=_0x412526&&_0x412526['rows']?_0x412526[_0x4ceaf2('0x6aa')][0x0]:null;if(!_0x149f1e){const _0xea982d=[],_0x4423ba=[];_0x4b40ec['triggerAllConditions'][_0x4ceaf2('0x6aa')][_0x4ceaf2('0xa6a')](function(_0x540a3a){const _0x1a9dee=_0x4ceaf2;if(_0x540a3a[_0x1a9dee('0x81d')]===_0x1a9dee('0xde4')){const _0x237b03=_0x3c8d8a()[_0x1a9dee('0x18ab')](_0x4b40ec[_0x2be10a],{'id':Number(_0x540a3a['value'])});_0x4423ba[_0x1a9dee('0x18bb')](_0x237b03);}});for(let _0x4e402e=0x0;_0x4e402e<_0x4b40ec[_0x2be10a][_0x4ceaf2('0x543')];_0x4e402e++){const _0x41722f=_0x3c8d8a()[_0x4ceaf2('0x1ec')](_0x4423ba,{'id':_0x4b40ec[_0x2be10a][_0x4e402e]['id']});_0x41722f&&(_0x4b40ec[_0x2be10a][_0x4e402e]['canSelect']=![],_0xea982d['push'](_0x4b40ec[_0x2be10a][_0x4e402e]));}_0x4b40ec[_0x2be10a]=_0xea982d;}else{if(!_0x149f1e[_0x4ceaf2('0x273e')])return _0x5ba529['userProfileResource'][_0x4ceaf2('0x1d97')]({'sectionId':_0x149f1e['id']})[_0x4ceaf2('0x1964')]['then'](function(_0x521eaa){const _0x57311c=_0x4ceaf2,_0x2abe79=_0x3c8d8a()[_0x57311c('0x8a2')](_0x521eaa[_0x57311c('0x6aa')],function(_0x46e7b6){const _0x4b293e=_0x57311c;return _0x3c8d8a()[_0x4b293e('0x18ab')](_0x4b40ec[_0x2be10a],{'id':_0x46e7b6[_0x4b293e('0x1ce0')]});});let _0x559d11=null;_0x559d11=[],_0x4b40ec['triggerAllConditions'][_0x57311c('0x6aa')][_0x57311c('0xa6a')](function(_0x5a697a){const _0x10f24e=_0x57311c;if(_0x5a697a[_0x10f24e('0x81d')]==='account'){const _0x1789d9=_0x3c8d8a()[_0x10f24e('0x18ab')](_0x4b40ec[_0x2be10a],{'id':Number(_0x5a697a['value'])});_0x559d11['push'](_0x1789d9);}}),!_0x3c8d8a()[_0x57311c('0x1a56')](_0x559d11)&&_0x559d11[_0x57311c('0xa6a')](function(_0x5a8504){const _0x4a2e35=_0x57311c;if(!_0x3c8d8a()[_0x4a2e35('0x1ec')](_0x2abe79,['id',_0x5a8504['id']])){const _0x327abc=_0x3c8d8a()[_0x4a2e35('0x18ab')](_0x4b40ec[_0x2be10a],{'id':_0x5a8504['id']});_0x327abc[_0x4a2e35('0x268e')]=![],_0x2abe79[_0x4a2e35('0x18bb')](_0x327abc);}}),_0x4b40ec[_0x2be10a]=_0x2abe79;});}})[_0x37ca3d('0x103c')](function(_0x276cd7){const _0x238cdd=_0x37ca3d;_0x11941e[_0x238cdd('0x15aa')]({'title':_0x276cd7['status']?_0x238cdd('0x137')+_0x276cd7[_0x238cdd('0x276f')]+'\x20-\x20'+_0x276cd7['statusText']:_0x238cdd('0xe17')+_0x10470f[_0x238cdd('0x1164')]()+_0x10470f==='chat'?_0x238cdd('0x1c2b'):_0x238cdd('0x400'),'msg':_0x276cd7[_0x238cdd('0x1e07')]?JSON['stringify'](_0x276cd7[_0x238cdd('0x1e07')]):_0x276cd7['toString']()});});}function _0x1e8632(){const _0x205fa6=_0x1a9ae8,_0x3942ac=[{'id':0x191,'type':_0x205fa6('0x1755')},{'id':0x5dd,'type':'outbound'}];let _0x215679=null;_0x48a116[_0x205fa6('0xfd8')]()?_0x5ba529[_0x205fa6('0x1282')]['get']({'fields':_0x205fa6('0x1c66'),'sort':'name','nolimit':_0x205fa6('0x799')})[_0x205fa6('0x1964')]['then'](function(_0x47455a){const _0x438dc0=_0x205fa6;_0x4b40ec[_0x438dc0('0xeae')]=_0x47455a[_0x438dc0('0x6aa')]||[];})[_0x205fa6('0x103c')](function(_0x4c6b9b){const _0xa44e43=_0x205fa6;_0x11941e['error']({'title':_0x4c6b9b['status']?_0xa44e43('0x137')+_0x4c6b9b[_0xa44e43('0x276f')]+_0xa44e43('0x160c')+_0x4c6b9b[_0xa44e43('0x2696')]:'SYSTEM:GET_VOICEQUEUES','msg':_0x4c6b9b['data']?JSON[_0xa44e43('0x100b')](_0x4c6b9b[_0xa44e43('0x1e07')]):_0x4c6b9b[_0xa44e43('0x1b75')]()});}):_0x5ba529[_0x205fa6('0x1282')][_0x205fa6('0x1d97')]({'fields':'id,name,type','sort':_0x205fa6('0x10ad'),'nolimit':_0x205fa6('0x799')})['$promise'][_0x205fa6('0x173b')](function(_0x24244a){_0x215679=_0x24244a['rows']||[];})[_0x205fa6('0x173b')](function(){const _0x5ebcce=_0x205fa6,_0x2f6c65=[];for(let _0x342354=0x0;_0x342354<_0x3942ac[_0x5ebcce('0x543')];_0x342354++){_0x2f6c65[_0x5ebcce('0x18bb')](_0x5ba529['userProfileSection'][_0x5ebcce('0x1d97')]({'userProfileId':_0x4b40ec[_0x5ebcce('0x155f')][_0x5ebcce('0x1946')],'sectionId':_0x3942ac[_0x342354]['id']})[_0x5ebcce('0x1964')]);}return _0x164863[_0x5ebcce('0x27c8')](_0x2f6c65);})['then'](function(_0x4e6f79){const _0x4e5017=_0x205fa6,_0x2a644c=_0x3c8d8a()[_0x4e5017('0x8a2')](_0x4e6f79,function(_0x1db54b){const _0x3e1356=_0x4e5017;return _0x1db54b&&_0x1db54b[_0x3e1356('0x6aa')]?_0x1db54b[_0x3e1356('0x6aa')][0x0]:null;}),_0x19f772=[];for(let _0x22b1bf=0x0;_0x22b1bf<_0x3942ac[_0x4e5017('0x543')];_0x22b1bf++){const _0x34dc68=_0x3c8d8a()[_0x4e5017('0x18ab')](_0x2a644c,[_0x4e5017('0x15fe'),_0x3942ac[_0x22b1bf]['id']]);if(_0x34dc68){if(!_0x34dc68[_0x4e5017('0x273e')])_0x19f772[_0x4e5017('0x18bb')](_0x5ba529[_0x4e5017('0xda9')][_0x4e5017('0x1d97')]({'sectionId':_0x34dc68['id']})[_0x4e5017('0x1964')]);else{const _0x22040f=[];_0x215679['forEach'](function(_0x343197){const _0x485909=_0x4e5017;_0x343197[_0x485909('0x1810')]===_0x3942ac[_0x22b1bf][_0x485909('0x1810')]&&_0x22040f[_0x485909('0x18bb')](_0x343197);}),_0x19f772[_0x4e5017('0x18bb')]({'rows':_0x22040f,'count':_0x22040f['length']});}}}return _0x164863['all'](_0x19f772);})['then'](function(_0x3d5fb3){const _0x1aac76=_0x205fa6,_0x58c3fa=[],_0x35a8a1=[];_0x4b40ec[_0x1aac76('0x143b')][_0x1aac76('0x6aa')][_0x1aac76('0xa6a')](function(_0x3d143e){const _0x50e484=_0x1aac76;if(_0x3d143e[_0x50e484('0x81d')]===_0x50e484('0x172')){const _0x2b8ee9=_0x3c8d8a()['find'](_0x215679,{'name':_0x3d143e[_0x50e484('0xa7b')]});_0x35a8a1[_0x50e484('0x18bb')](_0x2b8ee9);}});for(let _0x388782=0x0;_0x388782<_0x3d5fb3[_0x1aac76('0x543')];_0x388782++){const _0x1e46a2=_0x3d5fb3[_0x388782][_0x1aac76('0x6aa')]||[];_0x1e46a2[_0x1aac76('0xa6a')](function(_0x4abe76){const _0x41b794=_0x1aac76;_0x58c3fa[_0x41b794('0x18bb')](_0x4abe76);});}!_0x3c8d8a()[_0x1aac76('0x1a56')](_0x35a8a1)&&_0x35a8a1[_0x1aac76('0xa6a')](function(_0xf3c3df){const _0x1411fc=_0x1aac76;if(!_0x3c8d8a()[_0x1411fc('0x1ec')](_0x58c3fa,[_0x1411fc('0x1ce0'),_0xf3c3df['id']])){const _0xb6f05a=_0x3c8d8a()['find'](_0x215679,{'id':_0xf3c3df['id']});_0xb6f05a[_0x1411fc('0x268e')]=![],_0x58c3fa['push'](_0xb6f05a);}}),_0x4b40ec[_0x1aac76('0xeae')]=_0x58c3fa;})[_0x205fa6('0x103c')](function(_0x2d34f6){const _0x33dc6c=_0x205fa6;_0x11941e[_0x33dc6c('0x15aa')]({'title':_0x2d34f6[_0x33dc6c('0x276f')]?_0x33dc6c('0x137')+_0x2d34f6[_0x33dc6c('0x276f')]+_0x33dc6c('0x160c')+_0x2d34f6[_0x33dc6c('0x2696')]:_0x33dc6c('0x1e3c'),'msg':_0x2d34f6[_0x33dc6c('0x1e07')]?JSON[_0x33dc6c('0x100b')](_0x2d34f6[_0x33dc6c('0x1e07')]):_0x2d34f6[_0x33dc6c('0x1b75')]()});});}function _0x21c565(){const _0x45b538=_0x1a9ae8;_0x48a116[_0x45b538('0xfd8')]()?_0x5ba529[_0x45b538('0x1630')]['get']({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x45b538('0x877'),'nolimit':_0x45b538('0x799')})['$promise'][_0x45b538('0x173b')](function(_0x5e4cc8){const _0x5b6078=_0x45b538;_0x4b40ec[_0x5b6078('0x26f')]=_0x5e4cc8[_0x5b6078('0x6aa')]||[];})[_0x45b538('0x103c')](function(_0x616cd7){const _0x47ba25=_0x45b538;_0x11941e[_0x47ba25('0x15aa')]({'title':_0x616cd7[_0x47ba25('0x276f')]?'API:'+_0x616cd7[_0x47ba25('0x276f')]+'\x20-\x20'+_0x616cd7[_0x47ba25('0x2696')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x616cd7['data']?JSON[_0x47ba25('0x100b')](_0x616cd7['data']):_0x616cd7[_0x47ba25('0x1b75')]()});}):_0x5ba529[_0x45b538('0x1630')]['get']({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x45b538('0x877'),'nolimit':_0x45b538('0x799')})[_0x45b538('0x1964')][_0x45b538('0x173b')](function(_0x414a49){const _0x29e755=_0x45b538;_0x4b40ec[_0x29e755('0x26f')]=_0x414a49['rows']||[];})[_0x45b538('0x173b')](function(){const _0x4c0d0e=_0x45b538;return _0x5ba529[_0x4c0d0e('0x170e')][_0x4c0d0e('0x1d97')]({'userProfileId':_0x4b40ec['currentUser'][_0x4c0d0e('0x1946')],'sectionId':0x193})[_0x4c0d0e('0x1964')];})[_0x45b538('0x173b')](function(_0x45e84a){const _0x43c0ba=_0x45b538,_0x530fbd=_0x45e84a&&_0x45e84a[_0x43c0ba('0x6aa')]?_0x45e84a[_0x43c0ba('0x6aa')][0x0]:null;if(!_0x530fbd){const _0x17efb5=[],_0x51a0d8=[];_0x4b40ec[_0x43c0ba('0x143b')][_0x43c0ba('0x6aa')]['forEach'](function(_0x21f130){const _0xfa3cf0=_0x43c0ba;if(_0x21f130[_0xfa3cf0('0x81d')]===_0xfa3cf0('0x14e8')){const _0x4b6da3=_0x3c8d8a()['find'](_0x4b40ec[_0xfa3cf0('0x26f')],{'id':Number(_0x21f130['value'])});_0x51a0d8[_0xfa3cf0('0x18bb')](_0x4b6da3);}});for(let _0x25ccf2=0x0;_0x25ccf2<_0x4b40ec[_0x43c0ba('0x26f')][_0x43c0ba('0x543')];_0x25ccf2++){const _0x2ba283=_0x3c8d8a()[_0x43c0ba('0x1ec')](_0x51a0d8,{'id':_0x4b40ec[_0x43c0ba('0x26f')][_0x25ccf2]['id']});_0x2ba283&&(_0x4b40ec[_0x43c0ba('0x26f')][_0x25ccf2][_0x43c0ba('0x268e')]=![],_0x17efb5[_0x43c0ba('0x18bb')](_0x4b40ec[_0x43c0ba('0x26f')][_0x25ccf2]));}_0x4b40ec[_0x43c0ba('0x26f')]=_0x17efb5;}else{if(!_0x530fbd[_0x43c0ba('0x273e')])return _0x5ba529[_0x43c0ba('0xda9')][_0x43c0ba('0x1d97')]({'sectionId':_0x530fbd['id']})[_0x43c0ba('0x1964')][_0x43c0ba('0x173b')](function(_0x3e58a2){const _0x104d83=_0x43c0ba,_0x24a6ec=_0x3c8d8a()[_0x104d83('0x8a2')](_0x3e58a2[_0x104d83('0x6aa')],function(_0x4843ec){const _0x1a1bec=_0x104d83;return _0x3c8d8a()[_0x1a1bec('0x18ab')](_0x4b40ec[_0x1a1bec('0x26f')],{'id':_0x4843ec['resourceId']});});let _0x41ac9f=null;_0x41ac9f=[],_0x4b40ec['triggerAllConditions']['rows'][_0x104d83('0xa6a')](function(_0x59be92){const _0x9091c=_0x104d83;if(_0x59be92['field']==='routeId'){const _0x47b7e5=_0x3c8d8a()['find'](_0x4b40ec[_0x9091c('0x26f')],{'id':Number(_0x59be92['value'])});_0x41ac9f['push'](_0x47b7e5);}}),!_0x3c8d8a()[_0x104d83('0x1a56')](_0x41ac9f)&&_0x41ac9f[_0x104d83('0xa6a')](function(_0x8209a2){const _0x56bc78=_0x104d83;if(!_0x3c8d8a()[_0x56bc78('0x1ec')](_0x24a6ec,['id',_0x8209a2['id']])){const _0x5430b0=_0x3c8d8a()[_0x56bc78('0x18ab')](_0x4b40ec[_0x56bc78('0x26f')],{'id':_0x8209a2['id']});_0x5430b0[_0x56bc78('0x268e')]=![],_0x24a6ec[_0x56bc78('0x18bb')](_0x5430b0);}}),_0x4b40ec[_0x104d83('0x26f')]=_0x24a6ec;});}})[_0x45b538('0x103c')](function(_0x4f979b){const _0x179444=_0x45b538;_0x11941e[_0x179444('0x15aa')]({'title':_0x4f979b[_0x179444('0x276f')]?_0x179444('0x137')+_0x4f979b['status']+_0x179444('0x160c')+_0x4f979b[_0x179444('0x2696')]:_0x179444('0x11d2'),'msg':_0x4f979b['data']?JSON[_0x179444('0x100b')](_0x4f979b[_0x179444('0x1e07')]):_0x4f979b[_0x179444('0x1b75')]()});});}function _0x5343f(){const _0x269e93=_0x1a9ae8;_0x48a116[_0x269e93('0xfd8')]()?_0x5ba529[_0x269e93('0x166f')][_0x269e93('0x1d97')]({'fields':'id,name,fullname','sort':_0x269e93('0x10ad'),'role':'agent','nolimit':'true'})[_0x269e93('0x1964')]['then'](function(_0x230346){const _0x18bc3a=_0x269e93;_0x4b40ec[_0x18bc3a('0x11fa')]=_0x230346[_0x18bc3a('0x6aa')]||[];})[_0x269e93('0x103c')](function(_0x26dc7a){const _0x863110=_0x269e93;_0x11941e[_0x863110('0x15aa')]({'title':_0x26dc7a[_0x863110('0x276f')]?_0x863110('0x137')+_0x26dc7a['status']+_0x863110('0x160c')+_0x26dc7a[_0x863110('0x2696')]:'SYSTEM:GET_AGENTS','msg':_0x26dc7a[_0x863110('0x1e07')]?JSON[_0x863110('0x100b')](_0x26dc7a[_0x863110('0x1e07')]):_0x26dc7a[_0x863110('0x1b75')]()});}):_0x5ba529[_0x269e93('0x166f')][_0x269e93('0x1d97')]({'fields':_0x269e93('0x112d'),'sort':_0x269e93('0x10ad'),'role':_0x269e93('0x7b0'),'nolimit':_0x269e93('0x799')})[_0x269e93('0x1964')][_0x269e93('0x173b')](function(_0x3c8019){_0x4b40ec['agents']=_0x3c8019['rows']||[];})[_0x269e93('0x173b')](function(){const _0x4bfb3a=_0x269e93;return _0x5ba529[_0x4bfb3a('0x170e')][_0x4bfb3a('0x1d97')]({'userProfileId':_0x4b40ec[_0x4bfb3a('0x155f')]['userProfileId'],'sectionId':0xca})[_0x4bfb3a('0x1964')];})[_0x269e93('0x173b')](function(_0x4323bd){const _0x292b1a=_0x269e93,_0x51ddf2=_0x4323bd&&_0x4323bd[_0x292b1a('0x6aa')]?_0x4323bd[_0x292b1a('0x6aa')][0x0]:null;if(!_0x51ddf2){const _0x40dc36=[],_0x4efbed=[];_0x4b40ec['triggerAllConditions'][_0x292b1a('0x6aa')][_0x292b1a('0xa6a')](function(_0x3df472){const _0x15bbff=_0x292b1a;if(_0x3df472[_0x15bbff('0x81d')]===_0x15bbff('0x7b0')){const _0x3716ad=_0x3c8d8a()[_0x15bbff('0x18ab')](_0x4b40ec[_0x15bbff('0x11fa')],{'name':_0x3df472[_0x15bbff('0xa7b')]});_0x4efbed[_0x15bbff('0x18bb')](_0x3716ad);}});for(let _0x5193b9=0x0;_0x5193b9<_0x4b40ec['agents']['length'];_0x5193b9++){const _0x3aead1=_0x3c8d8a()[_0x292b1a('0x1ec')](_0x4efbed,{'id':_0x4b40ec[_0x292b1a('0x11fa')][_0x5193b9]['id']});_0x3aead1&&(_0x4b40ec[_0x292b1a('0x11fa')][_0x5193b9]['canSelect']=![],_0x40dc36[_0x292b1a('0x18bb')](_0x4b40ec['agents'][_0x5193b9]));}_0x4b40ec['agents']=_0x40dc36;}else{if(!_0x51ddf2[_0x292b1a('0x273e')])return _0x5ba529[_0x292b1a('0xda9')]['get']({'sectionId':_0x51ddf2['id']})[_0x292b1a('0x1964')]['then'](function(_0xe68982){const _0x4ccdc2=_0x292b1a,_0x1ae3d3=_0x3c8d8a()[_0x4ccdc2('0x8a2')](_0xe68982['rows'],function(_0x1c8a34){const _0x46f1f2=_0x4ccdc2;return _0x3c8d8a()['find'](_0x4b40ec[_0x46f1f2('0x11fa')],{'id':_0x1c8a34[_0x46f1f2('0x1ce0')]});});let _0x322968=null;_0x322968=[],_0x4b40ec[_0x4ccdc2('0x143b')][_0x4ccdc2('0x6aa')]['forEach'](function(_0x2668f2){const _0x1b91e3=_0x4ccdc2;if(_0x2668f2[_0x1b91e3('0x81d')]==='agent'){const _0x317be9=_0x3c8d8a()['find'](_0x4b40ec[_0x1b91e3('0x11fa')],{'name':_0x2668f2[_0x1b91e3('0xa7b')]});_0x322968[_0x1b91e3('0x18bb')](_0x317be9);}}),!_0x3c8d8a()[_0x4ccdc2('0x1a56')](_0x322968)&&_0x322968[_0x4ccdc2('0xa6a')](function(_0x138adc){const _0x59416c=_0x4ccdc2;if(!_0x3c8d8a()[_0x59416c('0x1ec')](_0x1ae3d3,['id',_0x138adc['id']])){const _0xa66a72=_0x3c8d8a()[_0x59416c('0x18ab')](_0x4b40ec[_0x59416c('0x11fa')],{'id':_0x138adc['id']});_0xa66a72['canSelect']=![],_0x1ae3d3['push'](_0xa66a72);}}),_0x4b40ec[_0x4ccdc2('0x11fa')]=_0x1ae3d3;});}})[_0x269e93('0x103c')](function(_0x2a1a0d){const _0x5d6a0f=_0x269e93;_0x11941e[_0x5d6a0f('0x15aa')]({'title':_0x2a1a0d['status']?_0x5d6a0f('0x137')+_0x2a1a0d[_0x5d6a0f('0x276f')]+_0x5d6a0f('0x160c')+_0x2a1a0d[_0x5d6a0f('0x2696')]:_0x5d6a0f('0x152b'),'msg':_0x2a1a0d[_0x5d6a0f('0x1e07')]?JSON[_0x5d6a0f('0x100b')](_0x2a1a0d[_0x5d6a0f('0x1e07')]):_0x2a1a0d[_0x5d6a0f('0x1b75')]()});});}function _0xaf9ab9(){const _0x43acca=_0x1a9ae8;if(_0x4b40ec[_0x43acca('0x237')][_0x43acca('0x1134')]===_0x43acca('0x21a8')){if(_0x3c8d8a()['some'](_0x4b40ec[_0x43acca('0x143b')][_0x43acca('0x6aa')],[_0x43acca('0x81d'),_0x43acca('0x172')])){if(!_0x4b40ec[_0x43acca('0xeae')])_0x1e8632();}if(_0x3c8d8a()[_0x43acca('0x1ec')](_0x4b40ec[_0x43acca('0x143b')]['rows'],['field',_0x43acca('0x14e8')])){if(!_0x4b40ec[_0x43acca('0x26f')])_0x21c565();}if(_0x3c8d8a()[_0x43acca('0x1ec')](_0x4b40ec[_0x43acca('0x143b')][_0x43acca('0x6aa')],[_0x43acca('0x81d'),_0x43acca('0x7b0')])){if(!_0x4b40ec['agents'])_0x5343f();}}else _0x269ce5();}function _0x48b703(_0x489182){const _0x42e791=_0x1a9ae8;_0x4b40ec[_0x42e791('0x143b')]=_0x489182||{'count':0x0,'rows':[]},_0xaf9ab9();}function _0x10b270(){const _0x31f046=_0x1a9ae8;_0x4b40ec['query']['offset']=(_0x4b40ec[_0x31f046('0xc49')][_0x31f046('0x182e')]-0x1)*_0x4b40ec[_0x31f046('0xc49')][_0x31f046('0x3e')],_0x4b40ec['promise']=_0x5ba529['trigger'][_0x31f046('0x82a')](_0x4b40ec[_0x31f046('0xc49')],_0x48b703)['$promise'];}function _0x375c5d(_0x3210fc,_0x3e536a){const _0x4aaea4=_0x1a9ae8;_0x2c43de[_0x4aaea4('0x1cb7')]({'controller':_0x4aaea4('0x121a'),'controllerAs':'vm','templateUrl':_0x4a0e10,'parent':angular[_0x4aaea4('0xb6d')](_0x137726[_0x4aaea4('0x1a5')]),'targetEvent':_0x3210fc,'clickOutsideToClose':!![],'locals':{'trigger':_0x4b40ec[_0x4aaea4('0x237')],'allCondition':_0x3e536a,'allConditions':_0x4b40ec['triggerAllConditions']['rows'],'license':null,'setting':null,'crudPermissions':_0x4b40ec['crudPermissions']}})['then'](function(_0x5494c5){_0x5494c5&&(_0x4b40ec['triggerAllConditions']={'count':_0x5494c5['length'],'rows':_0x5494c5},_0xaf9ab9());});}function _0xe79863(_0x715870,_0x101545){const _0x214fa9=_0x1a9ae8,_0x339176=_0x2c43de[_0x214fa9('0x1d02')]()[_0x214fa9('0x20d6')](_0x149447[_0x214fa9('0x1467')](_0x214fa9('0x2640')))['ariaLabel'](_0x214fa9('0x17a8'))[_0x214fa9('0x21de')](_0x101545)['ok']('OK')[_0x214fa9('0x1e1f')](_0x149447[_0x214fa9('0x1467')]('TOOLS.CANCEL'));_0x2c43de['show'](_0x339176)[_0x214fa9('0x173b')](function(){_0x253a29(_0x715870,!![]);});}function _0x253a29(_0x401aba,_0x23fb56){const _0x4497fe=_0x1a9ae8;_0x5ba529[_0x4497fe('0x1adb')][_0x4497fe('0x15e8')]({'id':_0x401aba['id']})[_0x4497fe('0x1964')][_0x4497fe('0x173b')](function(){const _0x556a94=_0x4497fe;_0x10b270(),_0x23fb56&&_0x11941e[_0x556a94('0xdfe')]({'title':_0x149447[_0x556a94('0x1467')](_0x556a94('0x67e'))});})[_0x4497fe('0x103c')](function(_0x21def1){const _0x47cd5e=_0x4497fe;if(_0x21def1[_0x47cd5e('0x1e07')]&&_0x21def1[_0x47cd5e('0x1e07')][_0x47cd5e('0x1d4a')]&&_0x21def1['data']['errors'][_0x47cd5e('0x543')]){_0x4b40ec['errors']=_0x21def1[_0x47cd5e('0x1e07')][_0x47cd5e('0x1d4a')]||[{'message':_0x21def1[_0x47cd5e('0x1b75')](),'type':_0x47cd5e('0x1df7')}];for(let _0x47598d=0x0;_0x47598d<_0x21def1['data'][_0x47cd5e('0x1d4a')][_0x47cd5e('0x543')];_0x47598d++){_0x11941e[_0x47cd5e('0x15aa')]({'title':_0x21def1['data'][_0x47cd5e('0x1d4a')][_0x47598d][_0x47cd5e('0x1810')],'msg':_0x21def1[_0x47cd5e('0x1e07')][_0x47cd5e('0x1d4a')][_0x47598d][_0x47cd5e('0x67f')]});}}else _0x11941e[_0x47cd5e('0x15aa')]({'title':_0x21def1[_0x47cd5e('0x276f')]?'API:'+_0x21def1[_0x47cd5e('0x276f')]+_0x47cd5e('0x160c')+_0x21def1[_0x47cd5e('0x2696')]:_0x47cd5e('0x1df7'),'msg':_0x21def1[_0x47cd5e('0x1e07')]?JSON[_0x47cd5e('0x100b')](_0x21def1['data'][_0x47cd5e('0x67f')]):_0x21def1[_0x47cd5e('0x67f')]||_0x21def1[_0x47cd5e('0x1b75')]()});});}function _0x4b0a7b(){const _0x1fea41=_0x1a9ae8,_0x3e3eeb=angular['copy'](_0x4b40ec['selectedTriggerAllConditions']);return _0x4b40ec[_0x1fea41('0xa00')]=[],_0x3e3eeb;}function _0x49dc5e(_0x2bef8d){const _0x886830=_0x1a9ae8,_0x566683=_0x2c43de[_0x886830('0x1d02')]()[_0x886830('0x20d6')](_0x149447[_0x886830('0x1467')](_0x886830('0x1324')))[_0x886830('0x732')](_0x149447[_0x886830('0x1467')]('TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE',{'total':_0x4b40ec[_0x886830('0xa00')]['length']}))[_0x886830('0x217')](_0x886830('0x2109'))[_0x886830('0x21de')](_0x2bef8d)['ok']('OK')['cancel'](_0x149447[_0x886830('0x1467')](_0x886830('0x2224')));_0x2c43de[_0x886830('0x1cb7')](_0x566683)['then'](function(){const _0x313359=_0x886830;_0x4b40ec['selectedTriggerAllConditions']['forEach'](function(_0x174d1a){_0x253a29(_0x174d1a);}),_0x4b40ec['selectedTriggerAllConditions']=[],_0x11941e[_0x313359('0xdfe')]({'title':_0x149447['instant']('TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE')});});}let _0x4b1406=!![],_0x439a2f=0x1;_0xb34842[_0x1a9ae8('0x1bdb')](_0x1a9ae8('0x5b8'),function(_0x45f57f,_0x1aa09d){const _0x3ee06e=_0x1a9ae8;_0x4b1406?_0x36cdc4(function(){_0x4b1406=![];}):(!_0x1aa09d&&(_0x439a2f=_0x4b40ec[_0x3ee06e('0xc49')]['page']),_0x45f57f!==_0x1aa09d&&(_0x4b40ec['query']['page']=0x1),!_0x45f57f&&(_0x4b40ec[_0x3ee06e('0xc49')][_0x3ee06e('0x182e')]=_0x439a2f),_0x10b270());});}const _0x2bd1b6=_0x4bd68d;_0x243c30[_0x566993('0x17bb')]=['$scope','$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0x183e'),'allCondition',_0x566993('0x237'),_0x566993('0xbd4'),_0x566993('0x1600'),'license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x243c30(_0x421d47,_0x3a5951,_0x27fb7f,_0x1695ce,_0x186a55,_0x20334a,_0x479441,_0x213755,_0x388382,_0xd712b,_0x2da21b,_0x418ab8,_0x4f4e3e,_0x4a6e09,_0x59e891){const _0x1c83f8=_0x566993,_0x36dc00=this;_0x36dc00[_0x1c83f8('0x155f')]=_0x418ab8[_0x1c83f8('0x14d4')](),_0x36dc00[_0x1c83f8('0x1d4a')]=[],_0x36dc00[_0x1c83f8('0x251')]=_0x4a6e09,_0x36dc00['license']=_0x4f4e3e,_0x36dc00[_0x1c83f8('0x1dc1')]=_0x59e891,_0x36dc00[_0x1c83f8('0xb0')]={},_0x36dc00['passwordPattern']=_0x36dc00['setting']&&_0x36dc00[_0x1c83f8('0x251')][_0x1c83f8('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x36dc00[_0x1c83f8('0x20d6')]=_0x1c83f8('0x14e6'),_0x36dc00[_0x1c83f8('0x255b')]=angular[_0x1c83f8('0x2e3')](_0x388382),_0x36dc00[_0x1c83f8('0x183e')]=_0x213755,_0x36dc00[_0x1c83f8('0x26de')]=![],_0x36dc00[_0x1c83f8('0x237')]=angular['copy'](_0xd712b);!_0x36dc00[_0x1c83f8('0x255b')]&&(_0x36dc00[_0x1c83f8('0x255b')]={'field':_0x1c83f8('0x172'),'operator':_0x1c83f8('0x1482'),'value':'in'},_0x36dc00[_0x1c83f8('0x20d6')]=_0x1c83f8('0x1b5b'),_0x36dc00[_0x1c83f8('0x26de')]=!![]);_0x3a5951['params']['id']&&(_0x36dc00['allCondition'][_0x1c83f8('0xf7d')]=_0x3a5951['params']['id']);_0x36dc00[_0x1c83f8('0x25ce')]=_0x3705d4,_0x36dc00[_0x1c83f8('0x1212')]=_0x114fd4,_0x36dc00['deleteAllCondition']=_0x22dd4c,_0x36dc00[_0x1c83f8('0x11ae')]=_0x5203c2,_0x36dc00['closeDialog']=_0x1837d9,_0x418ab8[_0x1c83f8('0x1b4e')]('admin')?_0x2da21b['chatWebsite'][_0x1c83f8('0x1d97')]({'fields':_0x1c83f8('0xd52'),'sort':'id','nolimit':_0x1c83f8('0x799')})['$promise'][_0x1c83f8('0x173b')](function(_0x841391){const _0x4a5a61=_0x1c83f8;_0x36dc00[_0x4a5a61('0x1e0e')]=_0x841391[_0x4a5a61('0x6aa')]||[];})['catch'](function(_0x3756d7){const _0x4d2b9b=_0x1c83f8;_0x479441[_0x4d2b9b('0x15aa')]({'title':_0x3756d7[_0x4d2b9b('0x276f')]?_0x4d2b9b('0x137')+_0x3756d7[_0x4d2b9b('0x276f')]+_0x4d2b9b('0x160c')+_0x3756d7[_0x4d2b9b('0x2696')]:'SYSTEM:GET_CHATACCOUNTS','msg':_0x3756d7[_0x4d2b9b('0x1e07')]?JSON[_0x4d2b9b('0x100b')](_0x3756d7[_0x4d2b9b('0x1e07')]):_0x3756d7['toString']()});}):_0x2da21b['chatWebsite'][_0x1c83f8('0x1d97')]({'fields':_0x1c83f8('0xd52'),'sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')]['then'](function(_0x3428d4){const _0x26731e=_0x1c83f8;_0x36dc00[_0x26731e('0x1e0e')]=_0x3428d4[_0x26731e('0x6aa')]||[];})['then'](function(){const _0x5781e0=_0x1c83f8;return _0x2da21b[_0x5781e0('0x170e')][_0x5781e0('0x1d97')]({'userProfileId':_0x36dc00[_0x5781e0('0x155f')][_0x5781e0('0x1946')],'sectionId':0x1f6})[_0x5781e0('0x1964')];})['then'](function(_0x5b02d3){const _0x53a46a=_0x1c83f8,_0x20681e=_0x5b02d3&&_0x5b02d3[_0x53a46a('0x6aa')]?_0x5b02d3[_0x53a46a('0x6aa')][0x0]:null;if(!_0x20681e){const _0x270491=[];let _0xadf30a=null;_0x36dc00[_0x53a46a('0x255b')]&&(_0xadf30a=_0x3c8d8a()[_0x53a46a('0x18ab')](_0x36dc00['chatAccounts'],{'id':Number(_0x36dc00[_0x53a46a('0x255b')][_0x53a46a('0xa7b')])}));for(let _0x4deba1=0x0;_0x4deba1<_0x36dc00[_0x53a46a('0x1e0e')]['length'];_0x4deba1++){_0xadf30a&&_0x36dc00[_0x53a46a('0x1e0e')][_0x4deba1]['id']===_0xadf30a['id']&&(_0x36dc00[_0x53a46a('0x1e0e')][_0x4deba1][_0x53a46a('0x268e')]=![],_0x270491[_0x53a46a('0x18bb')](_0x36dc00[_0x53a46a('0x1e0e')][_0x4deba1]));}_0x36dc00[_0x53a46a('0x1e0e')]=_0x270491;}else{if(!_0x20681e[_0x53a46a('0x273e')])return _0x2da21b[_0x53a46a('0xda9')][_0x53a46a('0x1d97')]({'sectionId':_0x20681e['id']})[_0x53a46a('0x1964')][_0x53a46a('0x173b')](function(_0x27521f){const _0x65a5a4=_0x53a46a,_0x64f2f3=_0x3c8d8a()[_0x65a5a4('0x8a2')](_0x27521f['rows'],function(_0x5ac0bf){const _0x78e50f=_0x65a5a4;return _0x3c8d8a()[_0x78e50f('0x18ab')](_0x36dc00[_0x78e50f('0x1e0e')],{'id':_0x5ac0bf[_0x78e50f('0x1ce0')]});});let _0x3aece4=null;_0x36dc00['allCondition']&&(_0x3aece4=_0x3c8d8a()[_0x65a5a4('0x18ab')](_0x36dc00[_0x65a5a4('0x1e0e')],{'id':Number(_0x36dc00[_0x65a5a4('0x255b')][_0x65a5a4('0xa7b')])}));if(_0x3aece4&&!_0x3c8d8a()[_0x65a5a4('0x1ec')](_0x64f2f3,['id',_0x3aece4['id']])){const _0x589331=_0x3c8d8a()[_0x65a5a4('0x18ab')](_0x36dc00[_0x65a5a4('0x1e0e')],{'id':_0x3aece4['id']});_0x589331[_0x65a5a4('0x268e')]=![],_0x64f2f3[_0x65a5a4('0x18bb')](_0x589331);}_0x36dc00[_0x65a5a4('0x1e0e')]=_0x64f2f3;});}})['catch'](function(_0x21fc02){const _0x234173=_0x1c83f8;_0x479441[_0x234173('0x15aa')]({'title':_0x21fc02[_0x234173('0x276f')]?_0x234173('0x137')+_0x21fc02[_0x234173('0x276f')]+_0x234173('0x160c')+_0x21fc02[_0x234173('0x2696')]:'SYSTEM:GETchatAccounts','msg':_0x21fc02[_0x234173('0x1e07')]?JSON[_0x234173('0x100b')](_0x21fc02[_0x234173('0x1e07')]):_0x21fc02['toString']()});}),_0x418ab8[_0x1c83f8('0x1b4e')]('admin')?_0x2da21b[_0x1c83f8('0x77b')][_0x1c83f8('0x1d97')]({'fields':_0x1c83f8('0xd52'),'sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')]['then'](function(_0x52110f){const _0x3dd95b=_0x1c83f8;_0x36dc00['mailAccounts']=_0x52110f[_0x3dd95b('0x6aa')]||[];})[_0x1c83f8('0x103c')](function(_0x2a4ecc){const _0x54dd15=_0x1c83f8;_0x479441[_0x54dd15('0x15aa')]({'title':_0x2a4ecc[_0x54dd15('0x276f')]?_0x54dd15('0x137')+_0x2a4ecc[_0x54dd15('0x276f')]+_0x54dd15('0x160c')+_0x2a4ecc['statusText']:_0x54dd15('0x273f'),'msg':_0x2a4ecc[_0x54dd15('0x1e07')]?JSON[_0x54dd15('0x100b')](_0x2a4ecc[_0x54dd15('0x1e07')]):_0x2a4ecc[_0x54dd15('0x1b75')]()});}):_0x2da21b[_0x1c83f8('0x77b')]['get']({'fields':'id,name','sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')]['then'](function(_0x203188){const _0x2bc291=_0x1c83f8;_0x36dc00[_0x2bc291('0x2632')]=_0x203188[_0x2bc291('0x6aa')]||[];})['then'](function(){const _0x5b6407=_0x1c83f8;return _0x2da21b[_0x5b6407('0x170e')][_0x5b6407('0x1d97')]({'userProfileId':_0x36dc00[_0x5b6407('0x155f')][_0x5b6407('0x1946')],'sectionId':0x25a})[_0x5b6407('0x1964')];})[_0x1c83f8('0x173b')](function(_0x229447){const _0x2c2d38=_0x1c83f8,_0x42c289=_0x229447&&_0x229447[_0x2c2d38('0x6aa')]?_0x229447['rows'][0x0]:null;if(!_0x42c289){const _0x1d0b3c=[];let _0x20598f=null;_0x36dc00[_0x2c2d38('0x255b')]&&(_0x20598f=_0x3c8d8a()[_0x2c2d38('0x18ab')](_0x36dc00[_0x2c2d38('0x2632')],{'id':Number(_0x36dc00['allCondition']['value'])}));for(let _0xa2737d=0x0;_0xa2737d<_0x36dc00[_0x2c2d38('0x2632')][_0x2c2d38('0x543')];_0xa2737d++){_0x20598f&&_0x36dc00[_0x2c2d38('0x2632')][_0xa2737d]['id']===_0x20598f['id']&&(_0x36dc00[_0x2c2d38('0x2632')][_0xa2737d][_0x2c2d38('0x268e')]=![],_0x1d0b3c['push'](_0x36dc00[_0x2c2d38('0x2632')][_0xa2737d]));}_0x36dc00[_0x2c2d38('0x2632')]=_0x1d0b3c;}else{if(!_0x42c289[_0x2c2d38('0x273e')])return _0x2da21b[_0x2c2d38('0xda9')][_0x2c2d38('0x1d97')]({'sectionId':_0x42c289['id']})[_0x2c2d38('0x1964')][_0x2c2d38('0x173b')](function(_0x2e2f54){const _0x7e20f0=_0x2c2d38,_0x3211c5=_0x3c8d8a()['map'](_0x2e2f54[_0x7e20f0('0x6aa')],function(_0x435926){const _0x4991c9=_0x7e20f0;return _0x3c8d8a()['find'](_0x36dc00['mailAccounts'],{'id':_0x435926[_0x4991c9('0x1ce0')]});});let _0x3457e1=null;_0x36dc00[_0x7e20f0('0x255b')]&&(_0x3457e1=_0x3c8d8a()[_0x7e20f0('0x18ab')](_0x36dc00[_0x7e20f0('0x2632')],{'id':Number(_0x36dc00[_0x7e20f0('0x255b')][_0x7e20f0('0xa7b')])}));if(_0x3457e1&&!_0x3c8d8a()[_0x7e20f0('0x1ec')](_0x3211c5,['id',_0x3457e1['id']])){const _0x4d2e98=_0x3c8d8a()[_0x7e20f0('0x18ab')](_0x36dc00[_0x7e20f0('0x2632')],{'id':_0x3457e1['id']});_0x4d2e98[_0x7e20f0('0x268e')]=![],_0x3211c5[_0x7e20f0('0x18bb')](_0x4d2e98);}_0x36dc00['mailAccounts']=_0x3211c5;});}})[_0x1c83f8('0x103c')](function(_0x4b1135){const _0x485ea3=_0x1c83f8;_0x479441[_0x485ea3('0x15aa')]({'title':_0x4b1135[_0x485ea3('0x276f')]?'API:'+_0x4b1135[_0x485ea3('0x276f')]+_0x485ea3('0x160c')+_0x4b1135[_0x485ea3('0x2696')]:_0x485ea3('0xe09'),'msg':_0x4b1135[_0x485ea3('0x1e07')]?JSON['stringify'](_0x4b1135[_0x485ea3('0x1e07')]):_0x4b1135[_0x485ea3('0x1b75')]()});}),_0x418ab8[_0x1c83f8('0x1b4e')](_0x1c83f8('0x79b'))?_0x2da21b[_0x1c83f8('0x1e37')][_0x1c83f8('0x1d97')]({'fields':'id,name','sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')]['then'](function(_0x20c9ac){const _0x40e458=_0x1c83f8;_0x36dc00[_0x40e458('0x130a')]=_0x20c9ac[_0x40e458('0x6aa')]||[];})[_0x1c83f8('0x103c')](function(_0x474ead){const _0x11ce13=_0x1c83f8;_0x479441[_0x11ce13('0x15aa')]({'title':_0x474ead[_0x11ce13('0x276f')]?_0x11ce13('0x137')+_0x474ead[_0x11ce13('0x276f')]+_0x11ce13('0x160c')+_0x474ead['statusText']:'SYSTEM:GET_SMSACCOUNTS','msg':_0x474ead[_0x11ce13('0x1e07')]?JSON[_0x11ce13('0x100b')](_0x474ead['data']):_0x474ead[_0x11ce13('0x1b75')]()});}):_0x2da21b[_0x1c83f8('0x1e37')][_0x1c83f8('0x1d97')]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x1c83f8('0x1964')]['then'](function(_0x493fd7){const _0x150afe=_0x1c83f8;_0x36dc00[_0x150afe('0x130a')]=_0x493fd7['rows']||[];})['then'](function(){const _0xb3243=_0x1c83f8;return _0x2da21b[_0xb3243('0x170e')]['get']({'userProfileId':_0x36dc00['currentUser'][_0xb3243('0x1946')],'sectionId':0x2be})[_0xb3243('0x1964')];})[_0x1c83f8('0x173b')](function(_0x37f604){const _0x1a3122=_0x1c83f8,_0x47b7dd=_0x37f604&&_0x37f604[_0x1a3122('0x6aa')]?_0x37f604[_0x1a3122('0x6aa')][0x0]:null;if(!_0x47b7dd){const _0x50c2ec=[];let _0x39505a=null;_0x36dc00[_0x1a3122('0x255b')]&&(_0x39505a=_0x3c8d8a()[_0x1a3122('0x18ab')](_0x36dc00[_0x1a3122('0x130a')],{'id':Number(_0x36dc00[_0x1a3122('0x255b')][_0x1a3122('0xa7b')])}));for(let _0x229a8b=0x0;_0x229a8b<_0x36dc00[_0x1a3122('0x130a')][_0x1a3122('0x543')];_0x229a8b++){_0x39505a&&_0x36dc00['smsAccounts'][_0x229a8b]['id']===_0x39505a['id']&&(_0x36dc00[_0x1a3122('0x130a')][_0x229a8b]['canSelect']=![],_0x50c2ec[_0x1a3122('0x18bb')](_0x36dc00['smsAccounts'][_0x229a8b]));}_0x36dc00['smsAccounts']=_0x50c2ec;}else{if(!_0x47b7dd[_0x1a3122('0x273e')])return _0x2da21b[_0x1a3122('0xda9')][_0x1a3122('0x1d97')]({'sectionId':_0x47b7dd['id']})[_0x1a3122('0x1964')][_0x1a3122('0x173b')](function(_0x14ec3a){const _0xc5a143=_0x1a3122,_0x1c5fd6=_0x3c8d8a()[_0xc5a143('0x8a2')](_0x14ec3a[_0xc5a143('0x6aa')],function(_0x162ca2){const _0x4f053b=_0xc5a143;return _0x3c8d8a()[_0x4f053b('0x18ab')](_0x36dc00[_0x4f053b('0x130a')],{'id':_0x162ca2[_0x4f053b('0x1ce0')]});});let _0x3abe25=null;_0x36dc00[_0xc5a143('0x255b')]&&(_0x3abe25=_0x3c8d8a()[_0xc5a143('0x18ab')](_0x36dc00['smsAccounts'],{'id':Number(_0x36dc00[_0xc5a143('0x255b')][_0xc5a143('0xa7b')])}));if(_0x3abe25&&!_0x3c8d8a()[_0xc5a143('0x1ec')](_0x1c5fd6,['id',_0x3abe25['id']])){const _0x34eb3b=_0x3c8d8a()[_0xc5a143('0x18ab')](_0x36dc00[_0xc5a143('0x130a')],{'id':_0x3abe25['id']});_0x34eb3b['canSelect']=![],_0x1c5fd6[_0xc5a143('0x18bb')](_0x34eb3b);}_0x36dc00['smsAccounts']=_0x1c5fd6;});}})['catch'](function(_0x2b537e){const _0x5c192e=_0x1c83f8;_0x479441[_0x5c192e('0x15aa')]({'title':_0x2b537e[_0x5c192e('0x276f')]?_0x5c192e('0x137')+_0x2b537e[_0x5c192e('0x276f')]+_0x5c192e('0x160c')+_0x2b537e[_0x5c192e('0x2696')]:_0x5c192e('0x14f3'),'msg':_0x2b537e[_0x5c192e('0x1e07')]?JSON[_0x5c192e('0x100b')](_0x2b537e[_0x5c192e('0x1e07')]):_0x2b537e['toString']()});}),_0x418ab8[_0x1c83f8('0x1b4e')](_0x1c83f8('0x79b'))?_0x2da21b[_0x1c83f8('0x234')][_0x1c83f8('0x1d97')]({'fields':'id,name','sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')]['then'](function(_0x64d6d2){const _0x53580a=_0x1c83f8;_0x36dc00[_0x53580a('0x2154')]=_0x64d6d2[_0x53580a('0x6aa')]||[];})[_0x1c83f8('0x103c')](function(_0xc94710){const _0x1830a3=_0x1c83f8;_0x479441['error']({'title':_0xc94710[_0x1830a3('0x276f')]?'API:'+_0xc94710[_0x1830a3('0x276f')]+_0x1830a3('0x160c')+_0xc94710['statusText']:_0x1830a3('0x1144'),'msg':_0xc94710['data']?JSON[_0x1830a3('0x100b')](_0xc94710['data']):_0xc94710[_0x1830a3('0x1b75')]()});}):_0x2da21b[_0x1c83f8('0x234')][_0x1c83f8('0x1d97')]({'fields':_0x1c83f8('0xd52'),'sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0xc1a453){const _0x5b9414=_0x1c83f8;_0x36dc00[_0x5b9414('0x2154')]=_0xc1a453[_0x5b9414('0x6aa')]||[];})[_0x1c83f8('0x173b')](function(){const _0x561d81=_0x1c83f8;return _0x2da21b[_0x561d81('0x170e')][_0x561d81('0x1d97')]({'userProfileId':_0x36dc00[_0x561d81('0x155f')][_0x561d81('0x1946')],'sectionId':0x836})['$promise'];})['then'](function(_0x3c24cf){const _0x48a9ca=_0x1c83f8,_0x13f5ed=_0x3c24cf&&_0x3c24cf[_0x48a9ca('0x6aa')]?_0x3c24cf[_0x48a9ca('0x6aa')][0x0]:null;if(!_0x13f5ed){const _0xe01c58=[];let _0x3b3de0=null;_0x36dc00['allCondition']&&(_0x3b3de0=_0x3c8d8a()[_0x48a9ca('0x18ab')](_0x36dc00[_0x48a9ca('0x2154')],{'id':Number(_0x36dc00[_0x48a9ca('0x255b')][_0x48a9ca('0xa7b')])}));for(let _0x407c70=0x0;_0x407c70<_0x36dc00[_0x48a9ca('0x2154')]['length'];_0x407c70++){_0x3b3de0&&_0x36dc00[_0x48a9ca('0x2154')][_0x407c70]['id']===_0x3b3de0['id']&&(_0x36dc00[_0x48a9ca('0x2154')][_0x407c70][_0x48a9ca('0x268e')]=![],_0xe01c58[_0x48a9ca('0x18bb')](_0x36dc00['whatsappAccounts'][_0x407c70]));}_0x36dc00[_0x48a9ca('0x2154')]=_0xe01c58;}else{if(!_0x13f5ed[_0x48a9ca('0x273e')])return _0x2da21b[_0x48a9ca('0xda9')]['get']({'sectionId':_0x13f5ed['id']})[_0x48a9ca('0x1964')][_0x48a9ca('0x173b')](function(_0x2c8d23){const _0x5af6dc=_0x48a9ca,_0x178a55=_0x3c8d8a()[_0x5af6dc('0x8a2')](_0x2c8d23[_0x5af6dc('0x6aa')],function(_0x4312e6){const _0xdd4a99=_0x5af6dc;return _0x3c8d8a()['find'](_0x36dc00[_0xdd4a99('0x2154')],{'id':_0x4312e6[_0xdd4a99('0x1ce0')]});});let _0x5ca0c9=null;_0x36dc00[_0x5af6dc('0x255b')]&&(_0x5ca0c9=_0x3c8d8a()[_0x5af6dc('0x18ab')](_0x36dc00['whatsappAccounts'],{'id':Number(_0x36dc00[_0x5af6dc('0x255b')]['value'])}));if(_0x5ca0c9&&!_0x3c8d8a()[_0x5af6dc('0x1ec')](_0x178a55,['id',_0x5ca0c9['id']])){const _0x300140=_0x3c8d8a()[_0x5af6dc('0x18ab')](_0x36dc00[_0x5af6dc('0x2154')],{'id':_0x5ca0c9['id']});_0x300140[_0x5af6dc('0x268e')]=![],_0x178a55[_0x5af6dc('0x18bb')](_0x300140);}_0x36dc00[_0x5af6dc('0x2154')]=_0x178a55;});}})[_0x1c83f8('0x103c')](function(_0x4a8562){const _0xbf50d6=_0x1c83f8;_0x479441[_0xbf50d6('0x15aa')]({'title':_0x4a8562[_0xbf50d6('0x276f')]?'API:'+_0x4a8562[_0xbf50d6('0x276f')]+_0xbf50d6('0x160c')+_0x4a8562[_0xbf50d6('0x2696')]:_0xbf50d6('0x2673'),'msg':_0x4a8562['data']?JSON[_0xbf50d6('0x100b')](_0x4a8562[_0xbf50d6('0x1e07')]):_0x4a8562[_0xbf50d6('0x1b75')]()});}),_0x418ab8[_0x1c83f8('0x1b4e')](_0x1c83f8('0x79b'))?_0x2da21b[_0x1c83f8('0xe12')][_0x1c83f8('0x1d97')]({'fields':_0x1c83f8('0xd52'),'sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')]['then'](function(_0x52259a){const _0x5e5ba4=_0x1c83f8;_0x36dc00['faxAccounts']=_0x52259a[_0x5e5ba4('0x6aa')]||[];})[_0x1c83f8('0x103c')](function(_0x1ada8c){const _0x149bbe=_0x1c83f8;_0x479441[_0x149bbe('0x15aa')]({'title':_0x1ada8c[_0x149bbe('0x276f')]?_0x149bbe('0x137')+_0x1ada8c[_0x149bbe('0x276f')]+'\x20-\x20'+_0x1ada8c[_0x149bbe('0x2696')]:_0x149bbe('0x5ea'),'msg':_0x1ada8c[_0x149bbe('0x1e07')]?JSON[_0x149bbe('0x100b')](_0x1ada8c[_0x149bbe('0x1e07')]):_0x1ada8c[_0x149bbe('0x1b75')]()});}):_0x2da21b['faxAccount']['get']({'fields':_0x1c83f8('0xd52'),'sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0x1a4ce2){const _0x4abfd2=_0x1c83f8;_0x36dc00[_0x4abfd2('0x17f2')]=_0x1a4ce2[_0x4abfd2('0x6aa')]||[];})[_0x1c83f8('0x173b')](function(){const _0x373f2e=_0x1c83f8;return _0x2da21b['userProfileSection'][_0x373f2e('0x1d97')]({'userProfileId':_0x36dc00[_0x373f2e('0x155f')][_0x373f2e('0x1946')],'sectionId':0x386})[_0x373f2e('0x1964')];})[_0x1c83f8('0x173b')](function(_0x20c200){const _0xff2ce3=_0x1c83f8,_0x170ed0=_0x20c200&&_0x20c200[_0xff2ce3('0x6aa')]?_0x20c200[_0xff2ce3('0x6aa')][0x0]:null;if(!_0x170ed0){const _0x480abf=[];let _0x4ab312=null;_0x36dc00['allCondition']&&(_0x4ab312=_0x3c8d8a()[_0xff2ce3('0x18ab')](_0x36dc00[_0xff2ce3('0x17f2')],{'id':Number(_0x36dc00[_0xff2ce3('0x255b')][_0xff2ce3('0xa7b')])}));for(let _0x1e12f7=0x0;_0x1e12f7<_0x36dc00[_0xff2ce3('0x17f2')][_0xff2ce3('0x543')];_0x1e12f7++){_0x4ab312&&_0x36dc00[_0xff2ce3('0x17f2')][_0x1e12f7]['id']===_0x4ab312['id']&&(_0x36dc00[_0xff2ce3('0x17f2')][_0x1e12f7][_0xff2ce3('0x268e')]=![],_0x480abf[_0xff2ce3('0x18bb')](_0x36dc00['faxAccounts'][_0x1e12f7]));}_0x36dc00[_0xff2ce3('0x17f2')]=_0x480abf;}else{if(!_0x170ed0[_0xff2ce3('0x273e')])return _0x2da21b[_0xff2ce3('0xda9')][_0xff2ce3('0x1d97')]({'sectionId':_0x170ed0['id']})['$promise'][_0xff2ce3('0x173b')](function(_0x41f671){const _0x5536e2=_0xff2ce3,_0x11beff=_0x3c8d8a()['map'](_0x41f671[_0x5536e2('0x6aa')],function(_0x459357){const _0x28911b=_0x5536e2;return _0x3c8d8a()['find'](_0x36dc00[_0x28911b('0x17f2')],{'id':_0x459357[_0x28911b('0x1ce0')]});});let _0x2805c3=null;_0x36dc00[_0x5536e2('0x255b')]&&(_0x2805c3=_0x3c8d8a()['find'](_0x36dc00[_0x5536e2('0x17f2')],{'id':Number(_0x36dc00[_0x5536e2('0x255b')][_0x5536e2('0xa7b')])}));if(_0x2805c3&&!_0x3c8d8a()[_0x5536e2('0x1ec')](_0x11beff,['id',_0x2805c3['id']])){const _0x3bf7d0=_0x3c8d8a()[_0x5536e2('0x18ab')](_0x36dc00[_0x5536e2('0x17f2')],{'id':_0x2805c3['id']});_0x3bf7d0[_0x5536e2('0x268e')]=![],_0x11beff[_0x5536e2('0x18bb')](_0x3bf7d0);}_0x36dc00[_0x5536e2('0x17f2')]=_0x11beff;});}})[_0x1c83f8('0x103c')](function(_0x296fa9){const _0x16d09c=_0x1c83f8;_0x479441[_0x16d09c('0x15aa')]({'title':_0x296fa9[_0x16d09c('0x276f')]?'API:'+_0x296fa9[_0x16d09c('0x276f')]+_0x16d09c('0x160c')+_0x296fa9[_0x16d09c('0x2696')]:_0x16d09c('0x1631'),'msg':_0x296fa9[_0x16d09c('0x1e07')]?JSON[_0x16d09c('0x100b')](_0x296fa9['data']):_0x296fa9[_0x16d09c('0x1b75')]()});}),_0x418ab8['hasRole'](_0x1c83f8('0x79b'))?_0x2da21b[_0x1c83f8('0x13f1')]['get']({'fields':_0x1c83f8('0xd52'),'sort':'id','nolimit':'true'})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0x5c8be0){const _0x5aafc4=_0x1c83f8;_0x36dc00[_0x5aafc4('0x1a65')]=_0x5c8be0[_0x5aafc4('0x6aa')]||[];})[_0x1c83f8('0x103c')](function(_0x13aa53){const _0x5b79a2=_0x1c83f8;_0x479441[_0x5b79a2('0x15aa')]({'title':_0x13aa53['status']?'API:'+_0x13aa53[_0x5b79a2('0x276f')]+_0x5b79a2('0x160c')+_0x13aa53[_0x5b79a2('0x2696')]:_0x5b79a2('0x1240'),'msg':_0x13aa53['data']?JSON['stringify'](_0x13aa53[_0x5b79a2('0x1e07')]):_0x13aa53[_0x5b79a2('0x1b75')]()});}):_0x2da21b[_0x1c83f8('0x13f1')]['get']({'fields':'id,name','sort':'id','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0x3b5f36){_0x36dc00['openchannelAccounts']=_0x3b5f36['rows']||[];})[_0x1c83f8('0x173b')](function(){const _0x51344d=_0x1c83f8;return _0x2da21b[_0x51344d('0x170e')][_0x51344d('0x1d97')]({'userProfileId':_0x36dc00['currentUser']['userProfileId'],'sectionId':0x322})[_0x51344d('0x1964')];})[_0x1c83f8('0x173b')](function(_0x38628c){const _0x1a2cdc=_0x1c83f8,_0x1ad910=_0x38628c&&_0x38628c[_0x1a2cdc('0x6aa')]?_0x38628c[_0x1a2cdc('0x6aa')][0x0]:null;if(!_0x1ad910){const _0x2fd90e=[];let _0xaca125=null;_0x36dc00[_0x1a2cdc('0x255b')]&&(_0xaca125=_0x3c8d8a()[_0x1a2cdc('0x18ab')](_0x36dc00[_0x1a2cdc('0x1a65')],{'id':Number(_0x36dc00[_0x1a2cdc('0x255b')]['value'])}));for(let _0x1905bd=0x0;_0x1905bd<_0x36dc00['openchannelAccounts'][_0x1a2cdc('0x543')];_0x1905bd++){_0xaca125&&_0x36dc00[_0x1a2cdc('0x1a65')][_0x1905bd]['id']===_0xaca125['id']&&(_0x36dc00[_0x1a2cdc('0x1a65')][_0x1905bd][_0x1a2cdc('0x268e')]=![],_0x2fd90e[_0x1a2cdc('0x18bb')](_0x36dc00[_0x1a2cdc('0x1a65')][_0x1905bd]));}_0x36dc00[_0x1a2cdc('0x1a65')]=_0x2fd90e;}else{if(!_0x1ad910['autoAssociation'])return _0x2da21b[_0x1a2cdc('0xda9')]['get']({'sectionId':_0x1ad910['id']})[_0x1a2cdc('0x1964')][_0x1a2cdc('0x173b')](function(_0x528431){const _0xdb726f=_0x1a2cdc,_0x1128b5=_0x3c8d8a()[_0xdb726f('0x8a2')](_0x528431[_0xdb726f('0x6aa')],function(_0x2b3a46){const _0x5ae4a3=_0xdb726f;return _0x3c8d8a()[_0x5ae4a3('0x18ab')](_0x36dc00[_0x5ae4a3('0x1a65')],{'id':_0x2b3a46[_0x5ae4a3('0x1ce0')]});});let _0x1a798f=null;_0x36dc00[_0xdb726f('0x255b')]&&(_0x1a798f=_0x3c8d8a()[_0xdb726f('0x18ab')](_0x36dc00[_0xdb726f('0x1a65')],{'id':Number(_0x36dc00[_0xdb726f('0x255b')][_0xdb726f('0xa7b')])}));if(_0x1a798f&&!_0x3c8d8a()[_0xdb726f('0x1ec')](_0x1128b5,['id',_0x1a798f['id']])){const _0x53e207=_0x3c8d8a()['find'](_0x36dc00['openchannelAccounts'],{'id':_0x1a798f['id']});_0x53e207[_0xdb726f('0x268e')]=![],_0x1128b5[_0xdb726f('0x18bb')](_0x53e207);}_0x36dc00[_0xdb726f('0x1a65')]=_0x1128b5;});}})[_0x1c83f8('0x103c')](function(_0x4f21ec){const _0x17e2ac=_0x1c83f8;_0x479441[_0x17e2ac('0x15aa')]({'title':_0x4f21ec['status']?_0x17e2ac('0x137')+_0x4f21ec['status']+_0x17e2ac('0x160c')+_0x4f21ec['statusText']:'SYSTEM:GETopenchannelAccounts','msg':_0x4f21ec['data']?JSON['stringify'](_0x4f21ec[_0x17e2ac('0x1e07')]):_0x4f21ec[_0x17e2ac('0x1b75')]()});});const _0x1d13dd=[{'id':0x191,'type':_0x1c83f8('0x1755')},{'id':0x5dd,'type':'outbound'}];let _0x55f815=null;_0x418ab8[_0x1c83f8('0x1b4e')](_0x1c83f8('0x79b'))?_0x2da21b[_0x1c83f8('0x1282')]['get']({'fields':_0x1c83f8('0x1c66'),'sort':_0x1c83f8('0x10ad'),'nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0x2dd2a2){const _0xdec1ae=_0x1c83f8;_0x36dc00['queues']=_0x2dd2a2[_0xdec1ae('0x6aa')]||[];})[_0x1c83f8('0x103c')](function(_0xa3320d){const _0xbb24b0=_0x1c83f8;_0x479441[_0xbb24b0('0x15aa')]({'title':_0xa3320d[_0xbb24b0('0x276f')]?_0xbb24b0('0x137')+_0xa3320d[_0xbb24b0('0x276f')]+'\x20-\x20'+_0xa3320d[_0xbb24b0('0x2696')]:_0xbb24b0('0x1e3c'),'msg':_0xa3320d['data']?JSON[_0xbb24b0('0x100b')](_0xa3320d['data']):_0xa3320d[_0xbb24b0('0x1b75')]()});}):_0x2da21b[_0x1c83f8('0x1282')][_0x1c83f8('0x1d97')]({'fields':_0x1c83f8('0x1c66'),'sort':_0x1c83f8('0x10ad'),'nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0x5bbcd2){_0x55f815=_0x5bbcd2['rows']||[];})[_0x1c83f8('0x173b')](function(){const _0x2631fb=_0x1c83f8,_0x2e989c=[];for(let _0x11ce0e=0x0;_0x11ce0e<_0x1d13dd[_0x2631fb('0x543')];_0x11ce0e++){_0x2e989c['push'](_0x2da21b[_0x2631fb('0x170e')][_0x2631fb('0x1d97')]({'userProfileId':_0x36dc00[_0x2631fb('0x155f')][_0x2631fb('0x1946')],'sectionId':_0x1d13dd[_0x11ce0e]['id']})[_0x2631fb('0x1964')]);}return _0x186a55[_0x2631fb('0x27c8')](_0x2e989c);})[_0x1c83f8('0x173b')](function(_0x4f5403){const _0x57830a=_0x1c83f8,_0x597f0a=_0x3c8d8a()[_0x57830a('0x8a2')](_0x4f5403,function(_0x467cd6){const _0x540218=_0x57830a;return _0x467cd6&&_0x467cd6[_0x540218('0x6aa')]?_0x467cd6[_0x540218('0x6aa')][0x0]:null;}),_0x275b26=[];for(let _0x4f9c60=0x0;_0x4f9c60<_0x1d13dd[_0x57830a('0x543')];_0x4f9c60++){const _0x411231=_0x3c8d8a()['find'](_0x597f0a,[_0x57830a('0x15fe'),_0x1d13dd[_0x4f9c60]['id']]);if(_0x411231){if(!_0x411231[_0x57830a('0x273e')])_0x275b26[_0x57830a('0x18bb')](_0x2da21b[_0x57830a('0xda9')][_0x57830a('0x1d97')]({'sectionId':_0x411231['id']})[_0x57830a('0x1964')]);else{const _0x592760=[];_0x55f815[_0x57830a('0xa6a')](function(_0xe2bf94){const _0x5c3bc4=_0x57830a;_0xe2bf94[_0x5c3bc4('0x1810')]===_0x1d13dd[_0x4f9c60][_0x5c3bc4('0x1810')]&&_0x592760['push'](_0xe2bf94);}),_0x275b26[_0x57830a('0x18bb')]({'rows':_0x592760,'count':_0x592760[_0x57830a('0x543')]});}}}return _0x186a55[_0x57830a('0x27c8')](_0x275b26);})[_0x1c83f8('0x173b')](function(_0x25048c){const _0x36c0a3=_0x1c83f8,_0x3f68b1=[];let _0x4c9431=null;_0x36dc00[_0x36c0a3('0x255b')]&&(_0x4c9431=_0x3c8d8a()['find'](_0x55f815,{'name':_0x36dc00['allCondition'][_0x36c0a3('0xa7b')]}));for(let _0x4c52d2=0x0;_0x4c52d2<_0x25048c['length'];_0x4c52d2++){const _0x1cbf4f=_0x25048c[_0x4c52d2]['rows']||[];_0x1cbf4f['forEach'](function(_0x4cba1d){const _0x1ad383=_0x36c0a3;_0x3f68b1[_0x1ad383('0x18bb')](_0x4cba1d);});}_0x4c9431&&!_0x3c8d8a()[_0x36c0a3('0x1ec')](_0x3f68b1,[_0x36c0a3('0x1ce0'),_0x4c9431['id']])&&_0x55f815['forEach'](function(_0x4254dd){const _0x1428e1=_0x36c0a3;_0x4254dd['id']===_0x4c9431['id']&&(_0x4254dd[_0x1428e1('0x268e')]=![],_0x3f68b1[_0x1428e1('0x18bb')](_0x4254dd));}),_0x36dc00[_0x36c0a3('0xeae')]=_0x3f68b1;})[_0x1c83f8('0x103c')](function(_0x49979f){const _0x4a3dfe=_0x1c83f8;_0x479441[_0x4a3dfe('0x15aa')]({'title':_0x49979f[_0x4a3dfe('0x276f')]?_0x4a3dfe('0x137')+_0x49979f[_0x4a3dfe('0x276f')]+_0x4a3dfe('0x160c')+_0x49979f[_0x4a3dfe('0x2696')]:'SYSTEM:GETqueues','msg':_0x49979f[_0x4a3dfe('0x1e07')]?JSON[_0x4a3dfe('0x100b')](_0x49979f[_0x4a3dfe('0x1e07')]):_0x49979f[_0x4a3dfe('0x1b75')]()});}),_0x418ab8[_0x1c83f8('0x1b4e')](_0x1c83f8('0x79b'))?_0x2da21b['voiceExtension']['get']({'fields':_0x1c83f8('0x1378'),'type':_0x1c83f8('0xb33'),'VoiceExtensionId':_0x1c83f8('0x877'),'nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0x10cf9e){const _0x59b7a3=_0x1c83f8;_0x36dc00['outboundRoutes']=_0x10cf9e[_0x59b7a3('0x6aa')]||[];})[_0x1c83f8('0x103c')](function(_0x26e265){const _0x53288f=_0x1c83f8;_0x479441[_0x53288f('0x15aa')]({'title':_0x26e265[_0x53288f('0x276f')]?_0x53288f('0x137')+_0x26e265[_0x53288f('0x276f')]+_0x53288f('0x160c')+_0x26e265[_0x53288f('0x2696')]:_0x53288f('0x11d2'),'msg':_0x26e265[_0x53288f('0x1e07')]?JSON[_0x53288f('0x100b')](_0x26e265[_0x53288f('0x1e07')]):_0x26e265[_0x53288f('0x1b75')]()});}):_0x2da21b[_0x1c83f8('0x1630')][_0x1c83f8('0x1d97')]({'fields':_0x1c83f8('0x1378'),'type':'outbound','VoiceExtensionId':'null','nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0x9a19d){const _0x11003f=_0x1c83f8;_0x36dc00[_0x11003f('0x26f')]=_0x9a19d[_0x11003f('0x6aa')]||[];})[_0x1c83f8('0x173b')](function(){const _0x111215=_0x1c83f8;return _0x2da21b[_0x111215('0x170e')]['get']({'userProfileId':_0x36dc00['currentUser']['userProfileId'],'sectionId':0x193})['$promise'];})['then'](function(_0x4922a4){const _0x1e1fcf=_0x1c83f8,_0x39d46f=_0x4922a4&&_0x4922a4['rows']?_0x4922a4[_0x1e1fcf('0x6aa')][0x0]:null;if(!_0x39d46f){const _0x11eeaf=[];let _0x55094f=null;_0x36dc00[_0x1e1fcf('0x255b')]&&(_0x55094f=_0x3c8d8a()['find'](_0x36dc00[_0x1e1fcf('0x26f')],{'id':Number(_0x36dc00['allCondition'][_0x1e1fcf('0xa7b')])}));for(let _0x3dbfe4=0x0;_0x3dbfe4<_0x36dc00['outboundRoutes'][_0x1e1fcf('0x543')];_0x3dbfe4++){_0x55094f&&_0x36dc00[_0x1e1fcf('0x26f')][_0x3dbfe4]['id']===_0x55094f['id']&&(_0x36dc00[_0x1e1fcf('0x26f')][_0x3dbfe4][_0x1e1fcf('0x268e')]=![],_0x11eeaf['push'](_0x36dc00[_0x1e1fcf('0x26f')][_0x3dbfe4]));}_0x36dc00['outboundRoutes']=_0x11eeaf;}else{if(!_0x39d46f[_0x1e1fcf('0x273e')])return _0x2da21b[_0x1e1fcf('0xda9')]['get']({'sectionId':_0x39d46f['id']})['$promise'][_0x1e1fcf('0x173b')](function(_0x27a0f9){const _0x240aa6=_0x1e1fcf,_0x27c85b=_0x3c8d8a()[_0x240aa6('0x8a2')](_0x27a0f9[_0x240aa6('0x6aa')],function(_0x37e709){const _0x13a397=_0x240aa6;return _0x3c8d8a()[_0x13a397('0x18ab')](_0x36dc00[_0x13a397('0x26f')],{'id':_0x37e709[_0x13a397('0x1ce0')]});});let _0x270f7d=null;_0x36dc00[_0x240aa6('0x255b')]&&(_0x270f7d=_0x3c8d8a()[_0x240aa6('0x18ab')](_0x36dc00[_0x240aa6('0x26f')],{'id':Number(_0x36dc00[_0x240aa6('0x255b')]['value'])}));if(_0x270f7d&&!_0x3c8d8a()['some'](_0x27c85b,['id',_0x270f7d['id']])){const _0x84cfde=_0x3c8d8a()['find'](_0x36dc00[_0x240aa6('0x26f')],{'id':_0x270f7d['id']});_0x84cfde[_0x240aa6('0x268e')]=![],_0x27c85b[_0x240aa6('0x18bb')](_0x84cfde);}_0x36dc00[_0x240aa6('0x26f')]=_0x27c85b;});}})['catch'](function(_0x6d2930){const _0x5c5e27=_0x1c83f8;_0x479441['error']({'title':_0x6d2930[_0x5c5e27('0x276f')]?_0x5c5e27('0x137')+_0x6d2930[_0x5c5e27('0x276f')]+_0x5c5e27('0x160c')+_0x6d2930[_0x5c5e27('0x2696')]:_0x5c5e27('0x164e'),'msg':_0x6d2930[_0x5c5e27('0x1e07')]?JSON['stringify'](_0x6d2930[_0x5c5e27('0x1e07')]):_0x6d2930[_0x5c5e27('0x1b75')]()});}),_0x418ab8[_0x1c83f8('0x1b4e')](_0x1c83f8('0x79b'))?_0x2da21b[_0x1c83f8('0x166f')]['get']({'fields':_0x1c83f8('0x112d'),'sort':'name','role':_0x1c83f8('0x7b0'),'nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')][_0x1c83f8('0x173b')](function(_0x42d4f8){const _0x4efabb=_0x1c83f8;_0x36dc00[_0x4efabb('0x11fa')]=_0x42d4f8[_0x4efabb('0x6aa')]||[];})['catch'](function(_0x3d56a8){const _0x75d4d5=_0x1c83f8;_0x479441['error']({'title':_0x3d56a8['status']?_0x75d4d5('0x137')+_0x3d56a8[_0x75d4d5('0x276f')]+_0x75d4d5('0x160c')+_0x3d56a8['statusText']:_0x75d4d5('0x152b'),'msg':_0x3d56a8['data']?JSON[_0x75d4d5('0x100b')](_0x3d56a8[_0x75d4d5('0x1e07')]):_0x3d56a8[_0x75d4d5('0x1b75')]()});}):_0x2da21b[_0x1c83f8('0x166f')][_0x1c83f8('0x1d97')]({'fields':'id,name,fullname','sort':_0x1c83f8('0x10ad'),'role':_0x1c83f8('0x7b0'),'nolimit':_0x1c83f8('0x799')})[_0x1c83f8('0x1964')]['then'](function(_0x275fcd){const _0x31397b=_0x1c83f8;_0x36dc00[_0x31397b('0x11fa')]=_0x275fcd[_0x31397b('0x6aa')]||[];})['then'](function(){const _0x34b98d=_0x1c83f8;return _0x2da21b[_0x34b98d('0x170e')][_0x34b98d('0x1d97')]({'userProfileId':_0x36dc00[_0x34b98d('0x155f')][_0x34b98d('0x1946')],'sectionId':0xca})['$promise'];})[_0x1c83f8('0x173b')](function(_0x49b192){const _0x752872=_0x1c83f8,_0x55106a=_0x49b192&&_0x49b192[_0x752872('0x6aa')]?_0x49b192[_0x752872('0x6aa')][0x0]:null;if(!_0x55106a){const _0x3d41e2=[];let _0x311d8a=null;_0x36dc00[_0x752872('0x255b')]&&(_0x311d8a=_0x3c8d8a()[_0x752872('0x18ab')](_0x36dc00[_0x752872('0x11fa')],{'name':_0x36dc00['allCondition'][_0x752872('0xa7b')]}));for(let _0x3a758f=0x0;_0x3a758f<_0x36dc00[_0x752872('0x11fa')][_0x752872('0x543')];_0x3a758f++){_0x311d8a&&_0x36dc00['agents'][_0x3a758f]['id']===_0x311d8a['id']&&(_0x36dc00[_0x752872('0x11fa')][_0x3a758f][_0x752872('0x268e')]=![],_0x3d41e2[_0x752872('0x18bb')](_0x36dc00[_0x752872('0x11fa')][_0x3a758f]));}_0x36dc00['agents']=_0x3d41e2;}else{if(!_0x55106a[_0x752872('0x273e')])return _0x2da21b[_0x752872('0xda9')]['get']({'sectionId':_0x55106a['id']})[_0x752872('0x1964')][_0x752872('0x173b')](function(_0x2ca148){const _0xb0a77=_0x752872,_0x3de57a=_0x3c8d8a()[_0xb0a77('0x8a2')](_0x2ca148[_0xb0a77('0x6aa')],function(_0x57a985){const _0xfb8d1d=_0xb0a77;return _0x3c8d8a()['find'](_0x36dc00[_0xfb8d1d('0x11fa')],{'id':_0x57a985[_0xfb8d1d('0x1ce0')]});});let _0x243073=null;_0x36dc00[_0xb0a77('0x255b')]&&(_0x243073=_0x3c8d8a()[_0xb0a77('0x18ab')](_0x36dc00[_0xb0a77('0x11fa')],{'name':_0x36dc00[_0xb0a77('0x255b')][_0xb0a77('0xa7b')]}));if(_0x243073&&!_0x3c8d8a()[_0xb0a77('0x1ec')](_0x3de57a,['id',_0x243073['id']])){const _0x57b384=_0x3c8d8a()[_0xb0a77('0x18ab')](_0x36dc00[_0xb0a77('0x11fa')],{'id':_0x243073['id']});_0x57b384[_0xb0a77('0x268e')]=![],_0x3de57a[_0xb0a77('0x18bb')](_0x57b384);}_0x36dc00[_0xb0a77('0x11fa')]=_0x3de57a;});}})[_0x1c83f8('0x103c')](function(_0x2da6fe){const _0x1a3458=_0x1c83f8;_0x479441[_0x1a3458('0x15aa')]({'title':_0x2da6fe[_0x1a3458('0x276f')]?_0x1a3458('0x137')+_0x2da6fe[_0x1a3458('0x276f')]+_0x1a3458('0x160c')+_0x2da6fe[_0x1a3458('0x2696')]:_0x1a3458('0xceb'),'msg':_0x2da6fe[_0x1a3458('0x1e07')]?JSON[_0x1a3458('0x100b')](_0x2da6fe[_0x1a3458('0x1e07')]):_0x2da6fe[_0x1a3458('0x1b75')]()});});function _0x3705d4(){const _0x59ca72=_0x1c83f8;_0x36dc00[_0x59ca72('0x1d4a')]=[],_0x2da21b['trigger']['addAllCondition']({'id':_0x3a5951[_0x59ca72('0x197a')]['id']},_0x36dc00['allCondition'])[_0x59ca72('0x1964')][_0x59ca72('0x173b')](function(_0x2a0b15){const _0x51a51f=_0x59ca72;_0x36dc00[_0x51a51f('0x183e')][_0x51a51f('0x1377')](_0x2a0b15[_0x51a51f('0xf1f')]()),_0x479441[_0x51a51f('0xdfe')]({'title':_0x51a51f('0x1ac2'),'msg':_0x36dc00[_0x51a51f('0x255b')][_0x51a51f('0x10ad')]?_0x36dc00[_0x51a51f('0x255b')][_0x51a51f('0x10ad')]+_0x51a51f('0x209a'):''}),_0x1837d9(_0x2a0b15);})[_0x59ca72('0x103c')](function(_0x4855e9){const _0x29eb72=_0x59ca72;if(_0x4855e9[_0x29eb72('0x1e07')]&&_0x4855e9['data'][_0x29eb72('0x1d4a')]&&_0x4855e9['data'][_0x29eb72('0x1d4a')][_0x29eb72('0x543')]){_0x36dc00[_0x29eb72('0x1d4a')]=_0x4855e9['data'][_0x29eb72('0x1d4a')]||[{'message':_0x4855e9[_0x29eb72('0x1b75')](),'type':_0x29eb72('0x271f')}];for(let _0x29e3b8=0x0;_0x29e3b8<_0x4855e9['data'][_0x29eb72('0x1d4a')][_0x29eb72('0x543')];_0x29e3b8+=0x1){_0x479441[_0x29eb72('0x15aa')]({'title':_0x4855e9[_0x29eb72('0x1e07')]['errors'][_0x29e3b8][_0x29eb72('0x1810')],'msg':_0x4855e9[_0x29eb72('0x1e07')][_0x29eb72('0x1d4a')][_0x29e3b8][_0x29eb72('0x67f')]});}}else _0x479441[_0x29eb72('0x15aa')]({'title':_0x4855e9[_0x29eb72('0x276f')]?'API:'+_0x4855e9[_0x29eb72('0x276f')]+_0x29eb72('0x160c')+_0x4855e9[_0x29eb72('0x2696')]:_0x29eb72('0x271f'),'msg':_0x4855e9[_0x29eb72('0x1e07')]?JSON[_0x29eb72('0x100b')](_0x4855e9[_0x29eb72('0x1e07')][_0x29eb72('0x67f')]):_0x4855e9[_0x29eb72('0x1b75')]()});});}function _0x114fd4(){const _0x564632=_0x1c83f8;_0x36dc00[_0x564632('0x1d4a')]=[],_0x2da21b[_0x564632('0x1adb')][_0x564632('0x1842')]({'id':_0x36dc00[_0x564632('0x255b')]['id']},_0x36dc00['allCondition'])[_0x564632('0x1964')][_0x564632('0x173b')](function(_0x1bec03){const _0x332b85=_0x564632,_0x4cd78e=_0x3c8d8a()[_0x332b85('0x18ab')](_0x36dc00['allconditions'],{'id':_0x1bec03['id']});_0x4cd78e&&_0x3c8d8a()['merge'](_0x4cd78e,_0x3c8d8a()['pick'](_0x1bec03['toJSON'](),_0x3c8d8a()['keys'](_0x4cd78e))),_0x479441['success']({'title':_0x332b85('0x84'),'msg':_0x36dc00['allCondition'][_0x332b85('0x10ad')]?_0x36dc00['allCondition'][_0x332b85('0x10ad')]+_0x332b85('0x2788'):''}),_0x1837d9(_0x1bec03);})[_0x564632('0x103c')](function(_0x617e0a){const _0x12abc2=_0x564632;if(_0x617e0a[_0x12abc2('0x1e07')]&&_0x617e0a[_0x12abc2('0x1e07')][_0x12abc2('0x1d4a')]&&_0x617e0a[_0x12abc2('0x1e07')][_0x12abc2('0x1d4a')][_0x12abc2('0x543')]){_0x36dc00[_0x12abc2('0x1d4a')]=_0x617e0a[_0x12abc2('0x1e07')][_0x12abc2('0x1d4a')]||[{'message':_0x617e0a['toString'](),'type':_0x12abc2('0x27a9')}];for(let _0x2a5b3c=0x0;_0x2a5b3c<_0x617e0a[_0x12abc2('0x1e07')]['errors'][_0x12abc2('0x543')];_0x2a5b3c++){_0x479441[_0x12abc2('0x15aa')]({'title':_0x617e0a[_0x12abc2('0x1e07')][_0x12abc2('0x1d4a')][_0x2a5b3c]['type'],'msg':_0x617e0a[_0x12abc2('0x1e07')][_0x12abc2('0x1d4a')][_0x2a5b3c][_0x12abc2('0x67f')]});}}else _0x479441[_0x12abc2('0x15aa')]({'title':_0x617e0a[_0x12abc2('0x276f')]?'API:'+_0x617e0a[_0x12abc2('0x276f')]+_0x12abc2('0x160c')+_0x617e0a[_0x12abc2('0x2696')]:_0x12abc2('0x27a9'),'msg':_0x617e0a[_0x12abc2('0x1e07')]?JSON[_0x12abc2('0x100b')](_0x617e0a[_0x12abc2('0x1e07')][_0x12abc2('0x67f')]):_0x617e0a[_0x12abc2('0x1b75')]()});});}function _0x22dd4c(_0x46eb05){const _0x370cf3=_0x1c83f8;_0x36dc00[_0x370cf3('0x1d4a')]=[];const _0x2ca682=_0x1695ce[_0x370cf3('0x1d02')]()[_0x370cf3('0x20d6')](_0x370cf3('0x8ef'))[_0x370cf3('0x732')](_0x370cf3('0x27bf'))['ariaLabel'](_0x370cf3('0x875'))['ok'](_0x370cf3('0x2373'))[_0x370cf3('0x1e1f')](_0x370cf3('0x1d4e'))[_0x370cf3('0x21de')](_0x46eb05);_0x1695ce[_0x370cf3('0x1cb7')](_0x2ca682)[_0x370cf3('0x173b')](function(){const _0x294918=_0x370cf3;_0x2da21b[_0x294918('0x1adb')]['delete']({'id':_0x36dc00[_0x294918('0x255b')]['id']})[_0x294918('0x1964')][_0x294918('0x173b')](function(){const _0x2c0967=_0x294918;_0x3c8d8a()[_0x2c0967('0x1a8b')](_0x36dc00[_0x2c0967('0x183e')],{'id':_0x36dc00[_0x2c0967('0x255b')]['id']}),_0x479441[_0x2c0967('0xdfe')]({'title':_0x2c0967('0xb2c'),'msg':(_0x36dc00[_0x2c0967('0x255b')][_0x2c0967('0x10ad')]||_0x2c0967('0x255b'))+_0x2c0967('0x25d2')}),_0x1837d9(_0x36dc00[_0x2c0967('0x255b')]);})[_0x294918('0x103c')](function(_0x3eb6b3){const _0x53c88c=_0x294918;if(_0x3eb6b3['data']&&_0x3eb6b3['data'][_0x53c88c('0x1d4a')]&&_0x3eb6b3[_0x53c88c('0x1e07')][_0x53c88c('0x1d4a')][_0x53c88c('0x543')]){_0x36dc00[_0x53c88c('0x1d4a')]=_0x3eb6b3['data'][_0x53c88c('0x1d4a')]||[{'message':_0x3eb6b3[_0x53c88c('0x1b75')](),'type':_0x53c88c('0x114d')}];for(let _0xf12ecb=0x0;_0xf12ecb<_0x3eb6b3[_0x53c88c('0x1e07')][_0x53c88c('0x1d4a')][_0x53c88c('0x543')];_0xf12ecb++){_0x479441[_0x53c88c('0x15aa')]({'title':_0x3eb6b3[_0x53c88c('0x1e07')]['errors'][_0xf12ecb]['type'],'msg':_0x3eb6b3[_0x53c88c('0x1e07')][_0x53c88c('0x1d4a')][_0xf12ecb][_0x53c88c('0x67f')]});}}else _0x479441[_0x53c88c('0x15aa')]({'title':_0x3eb6b3['status']?_0x53c88c('0x137')+_0x3eb6b3[_0x53c88c('0x276f')]+_0x53c88c('0x160c')+_0x3eb6b3[_0x53c88c('0x2696')]:'api.condition.delete','msg':_0x3eb6b3[_0x53c88c('0x1e07')]?JSON[_0x53c88c('0x100b')](_0x3eb6b3[_0x53c88c('0x1e07')][_0x53c88c('0x67f')]):_0x3eb6b3[_0x53c88c('0x67f')]||_0x3eb6b3[_0x53c88c('0x1b75')]()});});},function(){});}function _0x5203c2(_0x180c8c){return _0x180c8c===null?undefined:new Date(_0x180c8c);}function _0x1837d9(_0x327f72){const _0x525afa=_0x1c83f8;_0x1695ce[_0x525afa('0x1cf4')](_0x327f72);}}const _0x91b380=_0x243c30,_0x3d5304=_0x21a6a1['p']+_0x566993('0x495');_0x1f8c32[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$q','$translate','$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),'toasty',_0x566993('0xbd4'),'Auth'];function _0x1f8c32(_0x40c108,_0x2bf138,_0x441e4e,_0x355e90,_0x3e406b,_0x17722b,_0x307b90,_0x3431b6,_0x5d340a){const _0x1db54d=_0x566993,_0x1e3bb2=this;_0x1e3bb2[_0x1db54d('0x155f')]=_0x5d340a['getCurrentUser'](),_0x1e3bb2[_0x1db54d('0x237')]={},_0x1e3bb2['triggerAnyConditions']={'count':0x0,'rows':[]},_0x1e3bb2[_0x1db54d('0x106b')]=[],_0x1e3bb2[_0x1db54d('0xc49')]={'fields':_0x1db54d('0x2da'),'limit':0xa,'page':0x1},_0x1e3bb2[_0x1db54d('0x2340')]={'queue':_0x1db54d('0x1436'),'lastevent':_0x1db54d('0xf96'),'routeId':_0x1db54d('0x1a4'),'agent':_0x1db54d('0x1547'),'account':_0x1db54d('0x1b91'),'interaction':'Interaction','message':_0x1db54d('0x1bd7')},_0x1e3bb2[_0x1db54d('0x25c4')]={'abandoned':_0x1db54d('0x1f00'),'timeout':_0x1db54d('0x1b9a'),'complete':_0x1db54d('0x1665'),'rejected':'Reject','called':'Ring','connect':'Answer','nosuchnumber':_0x1db54d('0x254d'),'busy':_0x1db54d('0x241c'),'noanswer':'NoAnswer','congestion':_0x1db54d('0x1f15'),'agentreject':_0x1db54d('0x9bc')},_0x1e3bb2['messageStatuses']={'in':'Incoming','out':_0x1db54d('0xd2c'),'accept':_0x1db54d('0x24c0'),'reject':_0x1db54d('0x878')},_0x1e3bb2['onInit']=_0x588cbd,_0x1e3bb2['success']=_0x3f4ec2,_0x1e3bb2[_0x1db54d('0x1c14')]=_0x34b483,_0x1e3bb2[_0x1db54d('0xb39')]=_0x1d8d9f,_0x1e3bb2[_0x1db54d('0x1030')]=_0x534aa1,_0x1e3bb2[_0x1db54d('0x2051')]=_0x5d2ced,_0x1e3bb2[_0x1db54d('0x47b')]=_0x1bc381,_0x1e3bb2[_0x1db54d('0x1bf6')]=_0x1a94f2;function _0x588cbd(_0x43e5b6,_0x5a258d){const _0x27f2ab=_0x1db54d;_0x1e3bb2['trigger']=_0x43e5b6,_0x1e3bb2['crudPermissions']=typeof _0x5a258d!==_0x27f2ab('0x6e5')?_0x5a258d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1e3bb2['query'][_0x27f2ab('0x8ee')]=_0x1e3bb2['trigger']['id'],_0x1e3bb2[_0x27f2ab('0xc49')]['id']=_0x1e3bb2['trigger']['id'],_0x34b483();}function _0x44ab14(){const _0x208772=_0x1db54d,_0x393b44=_0x1e3bb2[_0x208772('0x237')][_0x208772('0x1134')]+_0x1e3bb2[_0x208772('0x237')][_0x208772('0x1134')]===_0x208772('0x8c5')?'Websites':_0x208772('0xe6c'),_0x1723b1=_0x1e3bb2['trigger'][_0x208772('0x1134')]+(_0x1e3bb2['trigger'][_0x208772('0x1134')]===_0x208772('0x8c5')?_0x208772('0x2675'):_0x208772('0x1b91'));let _0x21fcfe;switch(_0x1e3bb2['trigger'][_0x208772('0x1134')]){case _0x208772('0x8c5'):_0x21fcfe=0x1f6;break;case _0x208772('0x16d'):_0x21fcfe=0x386;break;case _0x208772('0x108a'):_0x21fcfe=0x25a;break;case _0x208772('0xab2'):_0x21fcfe=0x322;break;case'sms':_0x21fcfe=0x2be;break;case'whatsapp':_0x21fcfe=0x836;break;}if(_0x5d340a['isAdmin']()){const _0x17f6b4=_0x1e3bb2[_0x208772('0x237')][_0x208772('0x1134')];_0x3431b6[_0x1723b1][_0x208772('0x1d97')]({'fields':_0x208772('0xd52'),'sort':'id','nolimit':_0x208772('0x799')})[_0x208772('0x1964')][_0x208772('0x173b')](function(_0x43d767){const _0x2c6af2=_0x208772;_0x1e3bb2[_0x393b44]=_0x43d767[_0x2c6af2('0x6aa')]||[];})['catch'](function(_0x18fa52){const _0x72fa64=_0x208772;_0x307b90[_0x72fa64('0x15aa')]({'title':_0x18fa52['status']?_0x72fa64('0x137')+_0x18fa52[_0x72fa64('0x276f')]+'\x20-\x20'+_0x18fa52[_0x72fa64('0x2696')]:_0x72fa64('0xe17')+_0x17f6b4[_0x72fa64('0x1164')]()+_0x17f6b4===_0x72fa64('0x8c5')?'WEBSITES':'ACCOUNTS','msg':_0x18fa52[_0x72fa64('0x1e07')]?JSON[_0x72fa64('0x100b')](_0x18fa52[_0x72fa64('0x1e07')]):_0x18fa52[_0x72fa64('0x1b75')]()});});}else{const _0x4c51c1=_0x1e3bb2[_0x208772('0x237')][_0x208772('0x1134')];_0x3431b6[_0x1723b1][_0x208772('0x1d97')]({'fields':_0x208772('0xd52'),'sort':'id','nolimit':_0x208772('0x799')})[_0x208772('0x1964')][_0x208772('0x173b')](function(_0xfc76f7){_0x1e3bb2[_0x393b44]=_0xfc76f7['rows']||[];})['then'](function(){const _0x4ea991=_0x208772;return _0x3431b6['userProfileSection'][_0x4ea991('0x1d97')]({'userProfileId':_0x1e3bb2[_0x4ea991('0x155f')][_0x4ea991('0x1946')],'sectionId':_0x21fcfe})[_0x4ea991('0x1964')];})[_0x208772('0x173b')](function(_0x1b5ac5){const _0x717090=_0x208772,_0x3019bf=_0x1b5ac5&&_0x1b5ac5['rows']?_0x1b5ac5['rows'][0x0]:null;if(!_0x3019bf){const _0x2b273b=[],_0x1b742e=[];_0x1e3bb2[_0x717090('0x15f9')]['rows'][_0x717090('0xa6a')](function(_0x2bcb2e){const _0x2b6dfb=_0x717090;if(_0x2bcb2e[_0x2b6dfb('0x81d')]===_0x2b6dfb('0xde4')){const _0x166148=_0x3c8d8a()['find'](_0x1e3bb2[_0x393b44],{'id':Number(_0x2bcb2e[_0x2b6dfb('0xa7b')])});_0x1b742e['push'](_0x166148);}});for(let _0x28cb9b=0x0;_0x28cb9b<_0x1e3bb2[_0x393b44][_0x717090('0x543')];_0x28cb9b++){const _0x2dc274=_0x3c8d8a()[_0x717090('0x1ec')](_0x1b742e,{'id':_0x1e3bb2[_0x393b44][_0x28cb9b]['id']});_0x2dc274&&(_0x1e3bb2[_0x393b44][_0x28cb9b][_0x717090('0x268e')]=![],_0x2b273b[_0x717090('0x18bb')](_0x1e3bb2[_0x393b44][_0x28cb9b]));}_0x1e3bb2[_0x393b44]=_0x2b273b;}else{if(!_0x3019bf['autoAssociation'])return _0x3431b6['userProfileResource']['get']({'sectionId':_0x3019bf['id']})['$promise'][_0x717090('0x173b')](function(_0x40edf1){const _0x1d6f6a=_0x717090,_0x820d9a=_0x3c8d8a()[_0x1d6f6a('0x8a2')](_0x40edf1[_0x1d6f6a('0x6aa')],function(_0x54a4ad){const _0x38ee34=_0x1d6f6a;return _0x3c8d8a()[_0x38ee34('0x18ab')](_0x1e3bb2[_0x393b44],{'id':_0x54a4ad[_0x38ee34('0x1ce0')]});});let _0x21432d=null;_0x21432d=[],_0x1e3bb2['triggerAnyConditions'][_0x1d6f6a('0x6aa')][_0x1d6f6a('0xa6a')](function(_0x2c5e09){const _0x2a1bd7=_0x1d6f6a;if(_0x2c5e09[_0x2a1bd7('0x81d')]===_0x2a1bd7('0xde4')){const _0x172678=_0x3c8d8a()[_0x2a1bd7('0x18ab')](_0x1e3bb2[_0x393b44],{'id':Number(_0x2c5e09[_0x2a1bd7('0xa7b')])});_0x21432d['push'](_0x172678);}}),!_0x3c8d8a()[_0x1d6f6a('0x1a56')](_0x21432d)&&_0x21432d[_0x1d6f6a('0xa6a')](function(_0x156e48){const _0x21f549=_0x1d6f6a;if(!_0x3c8d8a()['some'](_0x820d9a,['id',_0x156e48['id']])){const _0x311ded=_0x3c8d8a()[_0x21f549('0x18ab')](_0x1e3bb2[_0x393b44],{'id':_0x156e48['id']});_0x311ded[_0x21f549('0x268e')]=![],_0x820d9a[_0x21f549('0x18bb')](_0x311ded);}}),_0x1e3bb2[_0x393b44]=_0x820d9a;});}})[_0x208772('0x103c')](function(_0x759482){const _0x57f943=_0x208772;_0x307b90[_0x57f943('0x15aa')]({'title':_0x759482[_0x57f943('0x276f')]?_0x57f943('0x137')+_0x759482['status']+_0x57f943('0x160c')+_0x759482['statusText']:_0x57f943('0xe17')+_0x4c51c1['toUpperCase']()+_0x4c51c1===_0x57f943('0x8c5')?_0x57f943('0x1c2b'):_0x57f943('0x400'),'msg':_0x759482['data']?JSON[_0x57f943('0x100b')](_0x759482[_0x57f943('0x1e07')]):_0x759482[_0x57f943('0x1b75')]()});});}}function _0x3f45b4(){const _0x383917=_0x1db54d,_0x1214ce=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x383917('0xb33')}];let _0x4364fc=null;_0x5d340a[_0x383917('0xfd8')]()?_0x3431b6[_0x383917('0x1282')][_0x383917('0x1d97')]({'fields':'id,name,type','sort':'name','nolimit':'true'})[_0x383917('0x1964')]['then'](function(_0x53c2a0){const _0x4ff68a=_0x383917;_0x1e3bb2[_0x4ff68a('0xeae')]=_0x53c2a0[_0x4ff68a('0x6aa')]||[];})[_0x383917('0x103c')](function(_0x14319c){const _0x41f242=_0x383917;_0x307b90[_0x41f242('0x15aa')]({'title':_0x14319c[_0x41f242('0x276f')]?_0x41f242('0x137')+_0x14319c[_0x41f242('0x276f')]+_0x41f242('0x160c')+_0x14319c['statusText']:_0x41f242('0x278'),'msg':_0x14319c[_0x41f242('0x1e07')]?JSON[_0x41f242('0x100b')](_0x14319c[_0x41f242('0x1e07')]):_0x14319c['toString']()});}):_0x3431b6[_0x383917('0x1282')][_0x383917('0x1d97')]({'fields':'id,name,type','sort':_0x383917('0x10ad'),'nolimit':'true'})[_0x383917('0x1964')][_0x383917('0x173b')](function(_0x59d6cf){_0x4364fc=_0x59d6cf['rows']||[];})[_0x383917('0x173b')](function(){const _0x411d17=_0x383917,_0x4d3645=[];for(let _0x58fff2=0x0;_0x58fff2<_0x1214ce[_0x411d17('0x543')];_0x58fff2++){_0x4d3645[_0x411d17('0x18bb')](_0x3431b6[_0x411d17('0x170e')][_0x411d17('0x1d97')]({'userProfileId':_0x1e3bb2['currentUser'][_0x411d17('0x1946')],'sectionId':_0x1214ce[_0x58fff2]['id']})[_0x411d17('0x1964')]);}return _0x2bf138[_0x411d17('0x27c8')](_0x4d3645);})[_0x383917('0x173b')](function(_0x43d7bd){const _0x313b5b=_0x383917,_0x1cdeae=_0x3c8d8a()[_0x313b5b('0x8a2')](_0x43d7bd,function(_0x2acbc2){const _0x5298db=_0x313b5b;return _0x2acbc2&&_0x2acbc2[_0x5298db('0x6aa')]?_0x2acbc2[_0x5298db('0x6aa')][0x0]:null;}),_0xd12565=[];for(let _0x49fc5b=0x0;_0x49fc5b<_0x1214ce['length'];_0x49fc5b++){const _0xc6f48b=_0x3c8d8a()[_0x313b5b('0x18ab')](_0x1cdeae,['sectionId',_0x1214ce[_0x49fc5b]['id']]);if(_0xc6f48b){if(!_0xc6f48b[_0x313b5b('0x273e')])_0xd12565[_0x313b5b('0x18bb')](_0x3431b6['userProfileResource'][_0x313b5b('0x1d97')]({'sectionId':_0xc6f48b['id']})[_0x313b5b('0x1964')]);else{const _0x4b7102=[];_0x4364fc[_0x313b5b('0xa6a')](function(_0x5a3d1f){const _0x352cdd=_0x313b5b;_0x5a3d1f[_0x352cdd('0x1810')]===_0x1214ce[_0x49fc5b][_0x352cdd('0x1810')]&&_0x4b7102['push'](_0x5a3d1f);}),_0xd12565[_0x313b5b('0x18bb')]({'rows':_0x4b7102,'count':_0x4b7102[_0x313b5b('0x543')]});}}}return _0x2bf138[_0x313b5b('0x27c8')](_0xd12565);})[_0x383917('0x173b')](function(_0x27c781){const _0x4f9c3b=_0x383917,_0x18a08d=[],_0x529c6a=[];_0x1e3bb2[_0x4f9c3b('0x15f9')][_0x4f9c3b('0x6aa')][_0x4f9c3b('0xa6a')](function(_0x463569){const _0x442810=_0x4f9c3b;if(_0x463569[_0x442810('0x81d')]===_0x442810('0x172')){const _0x111bf2=_0x3c8d8a()[_0x442810('0x18ab')](_0x4364fc,{'name':_0x463569[_0x442810('0xa7b')]});_0x529c6a[_0x442810('0x18bb')](_0x111bf2);}});for(let _0x5299cd=0x0;_0x5299cd<_0x27c781[_0x4f9c3b('0x543')];_0x5299cd++){const _0x7fdbbd=_0x27c781[_0x5299cd]['rows']||[];_0x7fdbbd[_0x4f9c3b('0xa6a')](function(_0x492506){_0x18a08d['push'](_0x492506);});}!_0x3c8d8a()['isEmpty'](_0x529c6a)&&_0x529c6a['forEach'](function(_0x3d87b7){const _0x32e6dc=_0x4f9c3b;if(!_0x3c8d8a()[_0x32e6dc('0x1ec')](_0x18a08d,[_0x32e6dc('0x1ce0'),_0x3d87b7['id']])){const _0x150329=_0x3c8d8a()[_0x32e6dc('0x18ab')](_0x4364fc,{'id':_0x3d87b7['id']});_0x150329['canSelect']=![],_0x18a08d['push'](_0x150329);}}),_0x1e3bb2[_0x4f9c3b('0xeae')]=_0x18a08d;})['catch'](function(_0x5324e3){const _0x46b919=_0x383917;_0x307b90[_0x46b919('0x15aa')]({'title':_0x5324e3['status']?_0x46b919('0x137')+_0x5324e3[_0x46b919('0x276f')]+_0x46b919('0x160c')+_0x5324e3[_0x46b919('0x2696')]:_0x46b919('0x1e3c'),'msg':_0x5324e3[_0x46b919('0x1e07')]?JSON[_0x46b919('0x100b')](_0x5324e3[_0x46b919('0x1e07')]):_0x5324e3[_0x46b919('0x1b75')]()});});}function _0x4be7b4(){const _0xfb91c8=_0x1db54d;_0x5d340a[_0xfb91c8('0xfd8')]()?_0x3431b6[_0xfb91c8('0x1630')]['get']({'fields':_0xfb91c8('0x1378'),'type':_0xfb91c8('0xb33'),'VoiceExtensionId':'null','nolimit':'true'})[_0xfb91c8('0x1964')]['then'](function(_0x11ed71){const _0x13e631=_0xfb91c8;_0x1e3bb2[_0x13e631('0x26f')]=_0x11ed71[_0x13e631('0x6aa')]||[];})[_0xfb91c8('0x103c')](function(_0x3c27f0){const _0x669e85=_0xfb91c8;_0x307b90[_0x669e85('0x15aa')]({'title':_0x3c27f0[_0x669e85('0x276f')]?_0x669e85('0x137')+_0x3c27f0[_0x669e85('0x276f')]+_0x669e85('0x160c')+_0x3c27f0[_0x669e85('0x2696')]:_0x669e85('0x11d2'),'msg':_0x3c27f0[_0x669e85('0x1e07')]?JSON[_0x669e85('0x100b')](_0x3c27f0[_0x669e85('0x1e07')]):_0x3c27f0[_0x669e85('0x1b75')]()});}):_0x3431b6[_0xfb91c8('0x1630')]['get']({'fields':_0xfb91c8('0x1378'),'type':_0xfb91c8('0xb33'),'VoiceExtensionId':_0xfb91c8('0x877'),'nolimit':_0xfb91c8('0x799')})[_0xfb91c8('0x1964')][_0xfb91c8('0x173b')](function(_0xad9138){const _0x1a3af3=_0xfb91c8;_0x1e3bb2[_0x1a3af3('0x26f')]=_0xad9138['rows']||[];})[_0xfb91c8('0x173b')](function(){const _0x282684=_0xfb91c8;return _0x3431b6['userProfileSection'][_0x282684('0x1d97')]({'userProfileId':_0x1e3bb2[_0x282684('0x155f')]['userProfileId'],'sectionId':0x193})[_0x282684('0x1964')];})[_0xfb91c8('0x173b')](function(_0x1c42d5){const _0x282ea5=_0xfb91c8,_0x7fad29=_0x1c42d5&&_0x1c42d5[_0x282ea5('0x6aa')]?_0x1c42d5[_0x282ea5('0x6aa')][0x0]:null;if(!_0x7fad29){const _0x26bb22=[],_0x13b3eb=[];_0x1e3bb2[_0x282ea5('0x15f9')]['rows'][_0x282ea5('0xa6a')](function(_0x517744){const _0x4feed6=_0x282ea5;if(_0x517744[_0x4feed6('0x81d')]==='routeId'){const _0x4bad72=_0x3c8d8a()[_0x4feed6('0x18ab')](_0x1e3bb2[_0x4feed6('0x26f')],{'id':Number(_0x517744[_0x4feed6('0xa7b')])});_0x13b3eb[_0x4feed6('0x18bb')](_0x4bad72);}});for(let _0x579a4c=0x0;_0x579a4c<_0x1e3bb2[_0x282ea5('0x26f')][_0x282ea5('0x543')];_0x579a4c++){const _0x4b0d7b=_0x3c8d8a()[_0x282ea5('0x1ec')](_0x13b3eb,{'id':_0x1e3bb2[_0x282ea5('0x26f')][_0x579a4c]['id']});_0x4b0d7b&&(_0x1e3bb2[_0x282ea5('0x26f')][_0x579a4c]['canSelect']=![],_0x26bb22['push'](_0x1e3bb2['outboundRoutes'][_0x579a4c]));}_0x1e3bb2[_0x282ea5('0x26f')]=_0x26bb22;}else{if(!_0x7fad29[_0x282ea5('0x273e')])return _0x3431b6[_0x282ea5('0xda9')][_0x282ea5('0x1d97')]({'sectionId':_0x7fad29['id']})[_0x282ea5('0x1964')]['then'](function(_0x16488b){const _0x390ce0=_0x282ea5,_0x1582b2=_0x3c8d8a()['map'](_0x16488b[_0x390ce0('0x6aa')],function(_0x35c425){const _0xf8db44=_0x390ce0;return _0x3c8d8a()['find'](_0x1e3bb2[_0xf8db44('0x26f')],{'id':_0x35c425['resourceId']});});let _0x478297=null;_0x478297=[],_0x1e3bb2[_0x390ce0('0x15f9')][_0x390ce0('0x6aa')][_0x390ce0('0xa6a')](function(_0x5b0cb4){const _0x1aae96=_0x390ce0;if(_0x5b0cb4[_0x1aae96('0x81d')]==='routeId'){const _0x5c6ede=_0x3c8d8a()[_0x1aae96('0x18ab')](_0x1e3bb2[_0x1aae96('0x26f')],{'id':Number(_0x5b0cb4[_0x1aae96('0xa7b')])});_0x478297[_0x1aae96('0x18bb')](_0x5c6ede);}}),!_0x3c8d8a()['isEmpty'](_0x478297)&&_0x478297[_0x390ce0('0xa6a')](function(_0x2c0c60){const _0x312f00=_0x390ce0;if(!_0x3c8d8a()[_0x312f00('0x1ec')](_0x1582b2,['id',_0x2c0c60['id']])){const _0x2fa663=_0x3c8d8a()[_0x312f00('0x18ab')](_0x1e3bb2[_0x312f00('0x26f')],{'id':_0x2c0c60['id']});_0x2fa663[_0x312f00('0x268e')]=![],_0x1582b2[_0x312f00('0x18bb')](_0x2fa663);}}),_0x1e3bb2[_0x390ce0('0x26f')]=_0x1582b2;});}})[_0xfb91c8('0x103c')](function(_0x524a2b){const _0x151007=_0xfb91c8;_0x307b90['error']({'title':_0x524a2b[_0x151007('0x276f')]?_0x151007('0x137')+_0x524a2b['status']+_0x151007('0x160c')+_0x524a2b[_0x151007('0x2696')]:_0x151007('0x11d2'),'msg':_0x524a2b[_0x151007('0x1e07')]?JSON[_0x151007('0x100b')](_0x524a2b[_0x151007('0x1e07')]):_0x524a2b[_0x151007('0x1b75')]()});});}function _0x465208(){const _0x317e57=_0x1db54d;_0x5d340a['isAdmin']()?_0x3431b6[_0x317e57('0x166f')][_0x317e57('0x1d97')]({'fields':_0x317e57('0x112d'),'sort':_0x317e57('0x10ad'),'role':_0x317e57('0x7b0'),'nolimit':_0x317e57('0x799')})[_0x317e57('0x1964')][_0x317e57('0x173b')](function(_0x175a4c){const _0x11d956=_0x317e57;_0x1e3bb2[_0x11d956('0x11fa')]=_0x175a4c[_0x11d956('0x6aa')]||[];})[_0x317e57('0x103c')](function(_0x4a7f5b){const _0x22a3a0=_0x317e57;_0x307b90[_0x22a3a0('0x15aa')]({'title':_0x4a7f5b['status']?_0x22a3a0('0x137')+_0x4a7f5b['status']+_0x22a3a0('0x160c')+_0x4a7f5b[_0x22a3a0('0x2696')]:_0x22a3a0('0x152b'),'msg':_0x4a7f5b['data']?JSON[_0x22a3a0('0x100b')](_0x4a7f5b[_0x22a3a0('0x1e07')]):_0x4a7f5b[_0x22a3a0('0x1b75')]()});}):_0x3431b6['user'][_0x317e57('0x1d97')]({'fields':_0x317e57('0x112d'),'sort':'name','role':'agent','nolimit':_0x317e57('0x799')})['$promise'][_0x317e57('0x173b')](function(_0x7c42cb){const _0x2aee2e=_0x317e57;_0x1e3bb2['agents']=_0x7c42cb[_0x2aee2e('0x6aa')]||[];})[_0x317e57('0x173b')](function(){const _0x43524a=_0x317e57;return _0x3431b6['userProfileSection']['get']({'userProfileId':_0x1e3bb2[_0x43524a('0x155f')][_0x43524a('0x1946')],'sectionId':0xca})[_0x43524a('0x1964')];})[_0x317e57('0x173b')](function(_0x315ce6){const _0x417b62=_0x317e57,_0x45a31e=_0x315ce6&&_0x315ce6[_0x417b62('0x6aa')]?_0x315ce6[_0x417b62('0x6aa')][0x0]:null;if(!_0x45a31e){const _0x26c8b1=[],_0x5361eb=[];_0x1e3bb2[_0x417b62('0x15f9')][_0x417b62('0x6aa')][_0x417b62('0xa6a')](function(_0x200c44){const _0x41fad9=_0x417b62;if(_0x200c44[_0x41fad9('0x81d')]===_0x41fad9('0x7b0')){const _0x3e89d1=_0x3c8d8a()[_0x41fad9('0x18ab')](_0x1e3bb2[_0x41fad9('0x11fa')],{'name':_0x200c44['value']});_0x5361eb['push'](_0x3e89d1);}});for(let _0x2ef36b=0x0;_0x2ef36b<_0x1e3bb2[_0x417b62('0x11fa')][_0x417b62('0x543')];_0x2ef36b++){const _0x545b9d=_0x3c8d8a()[_0x417b62('0x1ec')](_0x5361eb,{'id':_0x1e3bb2[_0x417b62('0x11fa')][_0x2ef36b]['id']});_0x545b9d&&(_0x1e3bb2['agents'][_0x2ef36b][_0x417b62('0x268e')]=![],_0x26c8b1[_0x417b62('0x18bb')](_0x1e3bb2['agents'][_0x2ef36b]));}_0x1e3bb2[_0x417b62('0x11fa')]=_0x26c8b1;}else{if(!_0x45a31e[_0x417b62('0x273e')])return _0x3431b6[_0x417b62('0xda9')][_0x417b62('0x1d97')]({'sectionId':_0x45a31e['id']})['$promise'][_0x417b62('0x173b')](function(_0x292cc2){const _0x4faa27=_0x417b62,_0x27ac27=_0x3c8d8a()[_0x4faa27('0x8a2')](_0x292cc2[_0x4faa27('0x6aa')],function(_0x16672f){const _0x308276=_0x4faa27;return _0x3c8d8a()[_0x308276('0x18ab')](_0x1e3bb2[_0x308276('0x11fa')],{'id':_0x16672f[_0x308276('0x1ce0')]});});let _0x11942a=null;_0x11942a=[],_0x1e3bb2[_0x4faa27('0x15f9')][_0x4faa27('0x6aa')][_0x4faa27('0xa6a')](function(_0x420b2a){const _0x4d9dd1=_0x4faa27;if(_0x420b2a[_0x4d9dd1('0x81d')]===_0x4d9dd1('0x7b0')){const _0x118677=_0x3c8d8a()[_0x4d9dd1('0x18ab')](_0x1e3bb2[_0x4d9dd1('0x11fa')],{'name':_0x420b2a[_0x4d9dd1('0xa7b')]});_0x11942a[_0x4d9dd1('0x18bb')](_0x118677);}}),!_0x3c8d8a()[_0x4faa27('0x1a56')](_0x11942a)&&_0x11942a[_0x4faa27('0xa6a')](function(_0x246251){const _0x35ad2a=_0x4faa27;if(!_0x3c8d8a()[_0x35ad2a('0x1ec')](_0x27ac27,['id',_0x246251['id']])){const _0xb87734=_0x3c8d8a()[_0x35ad2a('0x18ab')](_0x1e3bb2[_0x35ad2a('0x11fa')],{'id':_0x246251['id']});_0xb87734[_0x35ad2a('0x268e')]=![],_0x27ac27[_0x35ad2a('0x18bb')](_0xb87734);}}),_0x1e3bb2[_0x4faa27('0x11fa')]=_0x27ac27;});}})[_0x317e57('0x103c')](function(_0x2dd224){const _0x570090=_0x317e57;_0x307b90['error']({'title':_0x2dd224[_0x570090('0x276f')]?_0x570090('0x137')+_0x2dd224[_0x570090('0x276f')]+_0x570090('0x160c')+_0x2dd224[_0x570090('0x2696')]:'SYSTEM:GET_AGENTS','msg':_0x2dd224['data']?JSON[_0x570090('0x100b')](_0x2dd224['data']):_0x2dd224['toString']()});});}function _0x2fc3eb(){const _0x48d516=_0x1db54d;if(_0x1e3bb2[_0x48d516('0x237')][_0x48d516('0x1134')]===_0x48d516('0x21a8')){if(_0x3c8d8a()['some'](_0x1e3bb2[_0x48d516('0x15f9')][_0x48d516('0x6aa')],['field',_0x48d516('0x172')])){if(!_0x1e3bb2[_0x48d516('0xeae')])_0x3f45b4();}if(_0x3c8d8a()[_0x48d516('0x1ec')](_0x1e3bb2[_0x48d516('0x15f9')][_0x48d516('0x6aa')],[_0x48d516('0x81d'),_0x48d516('0x14e8')])){if(!_0x1e3bb2[_0x48d516('0x26f')])_0x4be7b4();}if(_0x3c8d8a()['some'](_0x1e3bb2[_0x48d516('0x15f9')]['rows'],[_0x48d516('0x81d'),'agent'])){if(!_0x1e3bb2[_0x48d516('0x11fa')])_0x465208();}}else _0x44ab14();}function _0x3f4ec2(_0x4a35d6){const _0x1454e6=_0x1db54d;_0x1e3bb2[_0x1454e6('0x15f9')]=_0x4a35d6||{'count':0x0,'rows':[]},_0x2fc3eb();}function _0x34b483(){const _0x25de13=_0x1db54d;_0x1e3bb2['query'][_0x25de13('0x17f0')]=(_0x1e3bb2['query'][_0x25de13('0x182e')]-0x1)*_0x1e3bb2[_0x25de13('0xc49')][_0x25de13('0x3e')],_0x1e3bb2[_0x25de13('0x2219')]=_0x3431b6[_0x25de13('0x237')]['getAnyConditions'](_0x1e3bb2[_0x25de13('0xc49')],_0x3f4ec2)[_0x25de13('0x1964')];}function _0x1d8d9f(_0x142660,_0xee9bae){const _0x5bdd58=_0x1db54d;_0x3e406b[_0x5bdd58('0x1cb7')]({'controller':_0x5bdd58('0x1815'),'controllerAs':'vm','templateUrl':_0x3d5304,'parent':angular[_0x5bdd58('0xb6d')](_0x17722b[_0x5bdd58('0x1a5')]),'targetEvent':_0x142660,'clickOutsideToClose':!![],'locals':{'trigger':_0x1e3bb2[_0x5bdd58('0x237')],'anyCondition':_0xee9bae,'anyConditions':_0x1e3bb2[_0x5bdd58('0x15f9')][_0x5bdd58('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x1e3bb2['crudPermissions']}})[_0x5bdd58('0x173b')](function(_0x267094){const _0x33ffcd=_0x5bdd58;_0x267094&&(_0x1e3bb2['triggerAnyConditions']={'count':_0x267094[_0x33ffcd('0x543')],'rows':_0x267094},_0x2fc3eb());});}function _0x5d2ced(_0x19a9a9,_0x2784d6){const _0x16f4a9=_0x1db54d,_0x12403a=_0x3e406b[_0x16f4a9('0x1d02')]()[_0x16f4a9('0x20d6')](_0x441e4e[_0x16f4a9('0x1467')]('TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE'))['ariaLabel'](_0x16f4a9('0x17a8'))[_0x16f4a9('0x21de')](_0x2784d6)['ok']('OK')['cancel'](_0x441e4e[_0x16f4a9('0x1467')](_0x16f4a9('0x2224')));_0x3e406b[_0x16f4a9('0x1cb7')](_0x12403a)['then'](function(){_0x1bc381(_0x19a9a9,!![]);});}function _0x1bc381(_0x501d75,_0x33ae96){const _0x56dacf=_0x1db54d;_0x3431b6['condition']['delete']({'id':_0x501d75['id']})[_0x56dacf('0x1964')][_0x56dacf('0x173b')](function(){const _0xad5a53=_0x56dacf;_0x34b483(),_0x33ae96&&_0x307b90[_0xad5a53('0xdfe')]({'title':_0x441e4e['instant'](_0xad5a53('0x67e'))});})[_0x56dacf('0x103c')](function(_0x197dcd){const _0x42744c=_0x56dacf;if(_0x197dcd[_0x42744c('0x1e07')]&&_0x197dcd[_0x42744c('0x1e07')][_0x42744c('0x1d4a')]&&_0x197dcd[_0x42744c('0x1e07')][_0x42744c('0x1d4a')][_0x42744c('0x543')]){_0x1e3bb2[_0x42744c('0x1d4a')]=_0x197dcd[_0x42744c('0x1e07')][_0x42744c('0x1d4a')]||[{'message':_0x197dcd['toString'](),'type':_0x42744c('0x1df7')}];for(let _0x5d9a83=0x0;_0x5d9a83<_0x197dcd['data'][_0x42744c('0x1d4a')][_0x42744c('0x543')];_0x5d9a83++){_0x307b90[_0x42744c('0x15aa')]({'title':_0x197dcd[_0x42744c('0x1e07')][_0x42744c('0x1d4a')][_0x5d9a83][_0x42744c('0x1810')],'msg':_0x197dcd[_0x42744c('0x1e07')][_0x42744c('0x1d4a')][_0x5d9a83][_0x42744c('0x67f')]});}}else _0x307b90[_0x42744c('0x15aa')]({'title':_0x197dcd[_0x42744c('0x276f')]?_0x42744c('0x137')+_0x197dcd['status']+_0x42744c('0x160c')+_0x197dcd[_0x42744c('0x2696')]:_0x42744c('0x1df7'),'msg':_0x197dcd[_0x42744c('0x1e07')]?JSON['stringify'](_0x197dcd[_0x42744c('0x1e07')]['message']):_0x197dcd[_0x42744c('0x67f')]||_0x197dcd[_0x42744c('0x1b75')]()});});}function _0x534aa1(){const _0x50544a=angular['copy'](_0x1e3bb2['selectedTriggerAnyConditions']);return _0x1e3bb2['selectedTriggerAnyConditions']=[],_0x50544a;}function _0x1a94f2(_0x30a723){const _0x17f0e5=_0x1db54d,_0x493a1f=_0x3e406b[_0x17f0e5('0x1d02')]()[_0x17f0e5('0x20d6')](_0x441e4e['instant'](_0x17f0e5('0x1324')))[_0x17f0e5('0x732')](_0x441e4e['instant'](_0x17f0e5('0x1cc9'),{'total':_0x1e3bb2[_0x17f0e5('0x106b')][_0x17f0e5('0x543')]}))['ariaLabel'](_0x17f0e5('0x2109'))[_0x17f0e5('0x21de')](_0x30a723)['ok']('OK')[_0x17f0e5('0x1e1f')](_0x441e4e[_0x17f0e5('0x1467')](_0x17f0e5('0x2224')));_0x3e406b[_0x17f0e5('0x1cb7')](_0x493a1f)[_0x17f0e5('0x173b')](function(){const _0x587ea5=_0x17f0e5;_0x1e3bb2[_0x587ea5('0x106b')][_0x587ea5('0xa6a')](function(_0x4774ec){_0x1bc381(_0x4774ec);}),_0x1e3bb2[_0x587ea5('0x106b')]=[],_0x307b90[_0x587ea5('0xdfe')]({'title':_0x441e4e[_0x587ea5('0x1467')](_0x587ea5('0x1f13'))});});}let _0x123df1=!![],_0x11f581=0x1;_0x40c108[_0x1db54d('0x1bdb')]('vm_dc.query.filter',function(_0x13210b,_0x452c30){const _0x365c11=_0x1db54d;_0x123df1?_0x355e90(function(){_0x123df1=![];}):(!_0x452c30&&(_0x11f581=_0x1e3bb2['query'][_0x365c11('0x182e')]),_0x13210b!==_0x452c30&&(_0x1e3bb2[_0x365c11('0xc49')][_0x365c11('0x182e')]=0x1),!_0x13210b&&(_0x1e3bb2[_0x365c11('0xc49')][_0x365c11('0x182e')]=_0x11f581),_0x34b483());});}const _0x4a7fea=_0x1f8c32;_0x1b6e1d[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0x776'),_0x566993('0x255b'),_0x566993('0x237'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting','crudPermissions'];function _0x1b6e1d(_0xe888be,_0x5504b1,_0x2087b7,_0x1eb3d4,_0x73784d,_0x42e308,_0x1430c7,_0x5b96f3,_0x558911,_0x23b6f9,_0x5d22fb,_0x401ecc,_0x5699d7){const _0x46441b=_0x566993,_0xc4d03a=this;_0xc4d03a[_0x46441b('0x155f')]=_0x23b6f9['getCurrentUser'](),_0xc4d03a['allCondition']=angular[_0x46441b('0x2e3')](_0x1430c7),_0xc4d03a[_0x46441b('0x776')]=angular['copy'](_0x42e308),_0xc4d03a[_0x46441b('0x251')]=_0x401ecc,_0xc4d03a[_0x46441b('0x1a29')]=_0x5d22fb,_0xc4d03a[_0x46441b('0x1dc1')]=_0x5699d7,_0xc4d03a[_0x46441b('0xb0')]={},_0xc4d03a['newAllCondition']=![],_0xc4d03a[_0x46441b('0x1d4a')]=[],_0xc4d03a[_0x46441b('0x237')]=angular[_0x46441b('0x2e3')](_0x5b96f3);!_0xc4d03a[_0x46441b('0x255b')]?(_0xc4d03a[_0x46441b('0x255b')]={'operator':_0x46441b('0x1482')},_0xc4d03a['newAllCondition']=!![]):_0x490a41();_0xc4d03a[_0x46441b('0x255b')][_0x46441b('0xf7d')]=_0xe888be['params']['id']||undefined,_0xc4d03a[_0x46441b('0x25c4')]=[{'name':_0x46441b('0x1f00'),'value':_0x46441b('0x3b9')},{'name':_0x46441b('0x1b9a'),'value':_0x46441b('0x1f84')},{'name':_0x46441b('0x1665'),'value':'complete'},{'name':_0x46441b('0x1262'),'value':_0x46441b('0x1a63')},{'name':_0x46441b('0x213a'),'value':_0x46441b('0x2374')},{'name':_0x46441b('0xa76'),'value':'connect'},{'name':'NoSuchNumber','value':'nosuchnumber'},{'name':_0x46441b('0x241c'),'value':_0x46441b('0xe2b')},{'name':_0x46441b('0x189c'),'value':_0x46441b('0x2730')},{'name':_0x46441b('0x1f15'),'value':_0x46441b('0x694')},{'name':_0x46441b('0x9bc'),'value':_0x46441b('0x2749')}],_0xc4d03a['onFieldSelection']=_0xcd25e2,_0xc4d03a['addNewAllCondition']=_0x92ea2c,_0xc4d03a[_0x46441b('0x1212')]=_0x2c4825,_0xc4d03a[_0x46441b('0x19c7')]=_0x2fa895,_0xc4d03a['closeDialog']=_0xb2762a;function _0x713917(){const _0x2da273=_0x46441b,_0x1eacd1=[{'id':0x191,'type':_0x2da273('0x1755')},{'id':0x5dd,'type':_0x2da273('0xb33')}];let _0x163eda=null;_0x23b6f9[_0x2da273('0xfd8')]()?_0x558911[_0x2da273('0x1282')][_0x2da273('0x1d97')]({'fields':_0x2da273('0x1c66'),'sort':_0x2da273('0x10ad'),'nolimit':'true'})[_0x2da273('0x1964')][_0x2da273('0x173b')](function(_0x1bee14){const _0x28c575=_0x2da273;_0xc4d03a['queues']=_0x1bee14[_0x28c575('0x6aa')]||[];})[_0x2da273('0x103c')](function(_0x51d69b){const _0x49b756=_0x2da273;_0x73784d['error']({'title':_0x51d69b['status']?_0x49b756('0x137')+_0x51d69b[_0x49b756('0x276f')]+_0x49b756('0x160c')+_0x51d69b[_0x49b756('0x2696')]:_0x49b756('0x278'),'msg':_0x51d69b[_0x49b756('0x1e07')]?JSON[_0x49b756('0x100b')](_0x51d69b[_0x49b756('0x1e07')]):_0x51d69b[_0x49b756('0x1b75')]()});}):_0x558911[_0x2da273('0x1282')][_0x2da273('0x1d97')]({'fields':_0x2da273('0x1c66'),'sort':'name','nolimit':_0x2da273('0x799')})[_0x2da273('0x1964')]['then'](function(_0x451cfd){const _0x16baf1=_0x2da273;_0x163eda=_0x451cfd[_0x16baf1('0x6aa')]||[];})['then'](function(){const _0x180fa2=_0x2da273,_0x3cfed8=[];for(let _0x340ab6=0x0;_0x340ab6<_0x1eacd1['length'];_0x340ab6++){_0x3cfed8['push'](_0x558911[_0x180fa2('0x170e')][_0x180fa2('0x1d97')]({'userProfileId':_0xc4d03a[_0x180fa2('0x155f')][_0x180fa2('0x1946')],'sectionId':_0x1eacd1[_0x340ab6]['id']})['$promise']);}return _0x2087b7['all'](_0x3cfed8);})['then'](function(_0x2ab194){const _0xbb28c6=_0x2da273,_0xddaadb=_0x3c8d8a()[_0xbb28c6('0x8a2')](_0x2ab194,function(_0x2ba0c6){const _0x338cc3=_0xbb28c6;return _0x2ba0c6&&_0x2ba0c6[_0x338cc3('0x6aa')]?_0x2ba0c6[_0x338cc3('0x6aa')][0x0]:null;}),_0x5123d6=[];for(let _0x35b18f=0x0;_0x35b18f<_0x1eacd1[_0xbb28c6('0x543')];_0x35b18f++){const _0x4eb73f=_0x3c8d8a()[_0xbb28c6('0x18ab')](_0xddaadb,[_0xbb28c6('0x15fe'),_0x1eacd1[_0x35b18f]['id']]);if(_0x4eb73f){if(!_0x4eb73f[_0xbb28c6('0x273e')])_0x5123d6[_0xbb28c6('0x18bb')](_0x558911['userProfileResource']['get']({'sectionId':_0x4eb73f['id']})[_0xbb28c6('0x1964')]);else{const _0xb59944=[];_0x163eda[_0xbb28c6('0xa6a')](function(_0x13e534){const _0x458ad6=_0xbb28c6;_0x13e534[_0x458ad6('0x1810')]===_0x1eacd1[_0x35b18f][_0x458ad6('0x1810')]&&_0xb59944['push'](_0x13e534);}),_0x5123d6['push']({'rows':_0xb59944,'count':_0xb59944[_0xbb28c6('0x543')]});}}}return _0x2087b7[_0xbb28c6('0x27c8')](_0x5123d6);})[_0x2da273('0x173b')](function(_0xac8aeb){const _0x5c8fe8=_0x2da273,_0x3984f1=[],_0x4195cb=[];_0xc4d03a[_0x5c8fe8('0xcd7')][_0x5c8fe8('0x6aa')][_0x5c8fe8('0xa6a')](function(_0x3238f7){const _0x264668=_0x5c8fe8;if(_0x3238f7['field']===_0x264668('0x172')){const _0x526385=_0x3c8d8a()['find'](_0x163eda,{'name':_0x3238f7[_0x264668('0xa7b')]});_0x4195cb[_0x264668('0x18bb')](_0x526385);}});for(let _0x8148bb=0x0;_0x8148bb<_0xac8aeb[_0x5c8fe8('0x543')];_0x8148bb++){const _0x4fcb38=_0xac8aeb[_0x8148bb][_0x5c8fe8('0x6aa')]||[];_0x4fcb38[_0x5c8fe8('0xa6a')](function(_0x5e485f){_0x3984f1['push'](_0x5e485f);});}!_0x3c8d8a()[_0x5c8fe8('0x1a56')](_0x4195cb)&&_0x4195cb[_0x5c8fe8('0xa6a')](function(_0x7b00c){const _0x3f2150=_0x5c8fe8;if(!_0x3c8d8a()[_0x3f2150('0x1ec')](_0x3984f1,['resourceId',_0x7b00c['id']])){const _0x53b673=_0x3c8d8a()[_0x3f2150('0x18ab')](_0x163eda,{'id':_0x7b00c['id']});_0x53b673[_0x3f2150('0x268e')]=![],_0x3984f1[_0x3f2150('0x18bb')](_0x53b673);}}),_0xc4d03a['queues']=_0x3984f1;})[_0x2da273('0x103c')](function(_0x5528ce){const _0x4c5c24=_0x2da273;_0x73784d[_0x4c5c24('0x15aa')]({'title':_0x5528ce[_0x4c5c24('0x276f')]?'API:'+_0x5528ce['status']+_0x4c5c24('0x160c')+_0x5528ce['statusText']:_0x4c5c24('0x1e3c'),'msg':_0x5528ce[_0x4c5c24('0x1e07')]?JSON[_0x4c5c24('0x100b')](_0x5528ce[_0x4c5c24('0x1e07')]):_0x5528ce[_0x4c5c24('0x1b75')]()});});}function _0x5e3378(){const _0x4a527d=_0x46441b;_0x23b6f9['isAdmin']()?_0x558911[_0x4a527d('0x1630')][_0x4a527d('0x1d97')]({'fields':_0x4a527d('0x1378'),'type':_0x4a527d('0xb33'),'VoiceExtensionId':'null','nolimit':_0x4a527d('0x799')})[_0x4a527d('0x1964')][_0x4a527d('0x173b')](function(_0x19d2e2){const _0x182e2c=_0x4a527d;_0xc4d03a[_0x182e2c('0x26f')]=_0x19d2e2['rows']||[];})[_0x4a527d('0x103c')](function(_0x23d221){const _0x362e99=_0x4a527d;_0x73784d['error']({'title':_0x23d221[_0x362e99('0x276f')]?_0x362e99('0x137')+_0x23d221['status']+_0x362e99('0x160c')+_0x23d221[_0x362e99('0x2696')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x23d221[_0x362e99('0x1e07')]?JSON[_0x362e99('0x100b')](_0x23d221[_0x362e99('0x1e07')]):_0x23d221['toString']()});}):_0x558911['voiceExtension'][_0x4a527d('0x1d97')]({'fields':_0x4a527d('0x1378'),'type':_0x4a527d('0xb33'),'VoiceExtensionId':_0x4a527d('0x877'),'nolimit':'true'})[_0x4a527d('0x1964')][_0x4a527d('0x173b')](function(_0x265a74){const _0x8f92ba=_0x4a527d;_0xc4d03a[_0x8f92ba('0x26f')]=_0x265a74[_0x8f92ba('0x6aa')]||[];})[_0x4a527d('0x173b')](function(){const _0x486bd0=_0x4a527d;return _0x558911[_0x486bd0('0x170e')][_0x486bd0('0x1d97')]({'userProfileId':_0xc4d03a[_0x486bd0('0x155f')][_0x486bd0('0x1946')],'sectionId':0x193})[_0x486bd0('0x1964')];})[_0x4a527d('0x173b')](function(_0x2cc1ea){const _0x2df91a=_0x4a527d,_0x42ee5b=_0x2cc1ea&&_0x2cc1ea[_0x2df91a('0x6aa')]?_0x2cc1ea[_0x2df91a('0x6aa')][0x0]:null;if(!_0x42ee5b){const _0x505d93=[],_0x56f25f=[];_0xc4d03a[_0x2df91a('0xcd7')][_0x2df91a('0x6aa')][_0x2df91a('0xa6a')](function(_0x1cdf00){const _0x26419c=_0x2df91a;if(_0x1cdf00[_0x26419c('0x81d')]==='routeId'){const _0x46ce8e=_0x3c8d8a()[_0x26419c('0x18ab')](_0xc4d03a[_0x26419c('0x26f')],{'id':Number(_0x1cdf00[_0x26419c('0xa7b')])});_0x56f25f[_0x26419c('0x18bb')](_0x46ce8e);}});for(let _0x2147b5=0x0;_0x2147b5<_0xc4d03a[_0x2df91a('0x26f')][_0x2df91a('0x543')];_0x2147b5++){const _0x5aaeed=_0x3c8d8a()['some'](_0x56f25f,{'id':_0xc4d03a['outboundRoutes'][_0x2147b5]['id']});_0x5aaeed&&(_0xc4d03a[_0x2df91a('0x26f')][_0x2147b5][_0x2df91a('0x268e')]=![],_0x505d93[_0x2df91a('0x18bb')](_0xc4d03a[_0x2df91a('0x26f')][_0x2147b5]));}_0xc4d03a['outboundRoutes']=_0x505d93;}else{if(!_0x42ee5b[_0x2df91a('0x273e')])return _0x558911[_0x2df91a('0xda9')][_0x2df91a('0x1d97')]({'sectionId':_0x42ee5b['id']})[_0x2df91a('0x1964')]['then'](function(_0x32a334){const _0x15bad4=_0x2df91a,_0x14ec95=_0x3c8d8a()[_0x15bad4('0x8a2')](_0x32a334[_0x15bad4('0x6aa')],function(_0x214c13){const _0x229ecf=_0x15bad4;return _0x3c8d8a()['find'](_0xc4d03a[_0x229ecf('0x26f')],{'id':_0x214c13[_0x229ecf('0x1ce0')]});});let _0x39203a=null;_0x39203a=[],_0xc4d03a[_0x15bad4('0xcd7')][_0x15bad4('0x6aa')][_0x15bad4('0xa6a')](function(_0x33c5d0){const _0x5fc561=_0x15bad4;if(_0x33c5d0['field']==='routeId'){const _0x933699=_0x3c8d8a()[_0x5fc561('0x18ab')](_0xc4d03a[_0x5fc561('0x26f')],{'id':Number(_0x33c5d0[_0x5fc561('0xa7b')])});_0x39203a['push'](_0x933699);}}),!_0x3c8d8a()['isEmpty'](_0x39203a)&&_0x39203a[_0x15bad4('0xa6a')](function(_0x4f9130){const _0xe1279d=_0x15bad4;if(!_0x3c8d8a()[_0xe1279d('0x1ec')](_0x14ec95,['id',_0x4f9130['id']])){const _0x9337a8=_0x3c8d8a()[_0xe1279d('0x18ab')](_0xc4d03a['outboundRoutes'],{'id':_0x4f9130['id']});_0x9337a8[_0xe1279d('0x268e')]=![],_0x14ec95['push'](_0x9337a8);}}),_0xc4d03a[_0x15bad4('0x26f')]=_0x14ec95;});}})[_0x4a527d('0x103c')](function(_0x25167f){const _0x5a6dde=_0x4a527d;_0x73784d[_0x5a6dde('0x15aa')]({'title':_0x25167f[_0x5a6dde('0x276f')]?_0x5a6dde('0x137')+_0x25167f[_0x5a6dde('0x276f')]+'\x20-\x20'+_0x25167f[_0x5a6dde('0x2696')]:_0x5a6dde('0x11d2'),'msg':_0x25167f[_0x5a6dde('0x1e07')]?JSON[_0x5a6dde('0x100b')](_0x25167f['data']):_0x25167f['toString']()});});}function _0x398846(){const _0x252948=_0x46441b;_0x23b6f9[_0x252948('0xfd8')]()?_0x558911[_0x252948('0x166f')][_0x252948('0x1d97')]({'fields':_0x252948('0x112d'),'sort':_0x252948('0x10ad'),'role':_0x252948('0x7b0'),'nolimit':'true'})[_0x252948('0x1964')][_0x252948('0x173b')](function(_0x2d7925){const _0x437d67=_0x252948;_0xc4d03a[_0x437d67('0x11fa')]=_0x2d7925[_0x437d67('0x6aa')]||[];})['catch'](function(_0x2299b9){const _0x28a4e0=_0x252948;_0x73784d[_0x28a4e0('0x15aa')]({'title':_0x2299b9[_0x28a4e0('0x276f')]?_0x28a4e0('0x137')+_0x2299b9[_0x28a4e0('0x276f')]+_0x28a4e0('0x160c')+_0x2299b9['statusText']:_0x28a4e0('0x152b'),'msg':_0x2299b9['data']?JSON['stringify'](_0x2299b9[_0x28a4e0('0x1e07')]):_0x2299b9['toString']()});}):_0x558911['user'][_0x252948('0x1d97')]({'fields':_0x252948('0x112d'),'sort':_0x252948('0x10ad'),'role':_0x252948('0x7b0'),'nolimit':_0x252948('0x799')})[_0x252948('0x1964')][_0x252948('0x173b')](function(_0x4b7285){const _0x2bfe75=_0x252948;_0xc4d03a[_0x2bfe75('0x11fa')]=_0x4b7285[_0x2bfe75('0x6aa')]||[];})[_0x252948('0x173b')](function(){const _0x5704c7=_0x252948;return _0x558911[_0x5704c7('0x170e')][_0x5704c7('0x1d97')]({'userProfileId':_0xc4d03a[_0x5704c7('0x155f')][_0x5704c7('0x1946')],'sectionId':0xca})['$promise'];})[_0x252948('0x173b')](function(_0x4d80d7){const _0x5411ac=_0x252948,_0x4df9e4=_0x4d80d7&&_0x4d80d7[_0x5411ac('0x6aa')]?_0x4d80d7[_0x5411ac('0x6aa')][0x0]:null;if(!_0x4df9e4){const _0x339297=[],_0x55bb44=[];_0xc4d03a[_0x5411ac('0xcd7')][_0x5411ac('0x6aa')][_0x5411ac('0xa6a')](function(_0x5334c9){const _0x3d098d=_0x5411ac;if(_0x5334c9[_0x3d098d('0x81d')]===_0x3d098d('0x7b0')){const _0x33457f=_0x3c8d8a()[_0x3d098d('0x18ab')](_0xc4d03a['agents'],{'name':_0x5334c9[_0x3d098d('0xa7b')]});_0x55bb44[_0x3d098d('0x18bb')](_0x33457f);}});for(let _0xbae0c=0x0;_0xbae0c<_0xc4d03a[_0x5411ac('0x11fa')][_0x5411ac('0x543')];_0xbae0c++){const _0x2b0a5a=_0x3c8d8a()[_0x5411ac('0x1ec')](_0x55bb44,{'id':_0xc4d03a['agents'][_0xbae0c]['id']});_0x2b0a5a&&(_0xc4d03a[_0x5411ac('0x11fa')][_0xbae0c][_0x5411ac('0x268e')]=![],_0x339297[_0x5411ac('0x18bb')](_0xc4d03a['agents'][_0xbae0c]));}_0xc4d03a[_0x5411ac('0x11fa')]=_0x339297;}else{if(!_0x4df9e4[_0x5411ac('0x273e')])return _0x558911[_0x5411ac('0xda9')][_0x5411ac('0x1d97')]({'sectionId':_0x4df9e4['id']})[_0x5411ac('0x1964')][_0x5411ac('0x173b')](function(_0x26811d){const _0x3435dc=_0x5411ac,_0x5ac227=_0x3c8d8a()['map'](_0x26811d['rows'],function(_0x4f4ed8){const _0x1a57dd=a0_0xde5e;return _0x3c8d8a()[_0x1a57dd('0x18ab')](_0xc4d03a[_0x1a57dd('0x11fa')],{'id':_0x4f4ed8['resourceId']});});let _0x295a2d=null;_0x295a2d=[],_0xc4d03a[_0x3435dc('0xcd7')][_0x3435dc('0x6aa')][_0x3435dc('0xa6a')](function(_0x424e7f){const _0x51e5e6=_0x3435dc;if(_0x424e7f[_0x51e5e6('0x81d')]===_0x51e5e6('0x7b0')){const _0x262487=_0x3c8d8a()[_0x51e5e6('0x18ab')](_0xc4d03a[_0x51e5e6('0x11fa')],{'name':_0x424e7f[_0x51e5e6('0xa7b')]});_0x295a2d[_0x51e5e6('0x18bb')](_0x262487);}}),!_0x3c8d8a()[_0x3435dc('0x1a56')](_0x295a2d)&&_0x295a2d[_0x3435dc('0xa6a')](function(_0x22d37e){const _0x4e35d1=_0x3435dc;if(!_0x3c8d8a()['some'](_0x5ac227,['id',_0x22d37e['id']])){const _0x192260=_0x3c8d8a()['find'](_0xc4d03a[_0x4e35d1('0x11fa')],{'id':_0x22d37e['id']});_0x192260[_0x4e35d1('0x268e')]=![],_0x5ac227[_0x4e35d1('0x18bb')](_0x192260);}}),_0xc4d03a['agents']=_0x5ac227;});}})[_0x252948('0x103c')](function(_0x2fc0ab){const _0x4a346e=_0x252948;_0x73784d['error']({'title':_0x2fc0ab[_0x4a346e('0x276f')]?'API:'+_0x2fc0ab[_0x4a346e('0x276f')]+_0x4a346e('0x160c')+_0x2fc0ab[_0x4a346e('0x2696')]:_0x4a346e('0x152b'),'msg':_0x2fc0ab[_0x4a346e('0x1e07')]?JSON[_0x4a346e('0x100b')](_0x2fc0ab[_0x4a346e('0x1e07')]):_0x2fc0ab['toString']()});});}function _0x3be9fa(){const _0x55dc7e=_0x46441b,_0x11bf4d=_0xc4d03a[_0x55dc7e('0x237')][_0x55dc7e('0x1134')]+(_0xc4d03a[_0x55dc7e('0x237')]['channel']===_0x55dc7e('0x8c5')?_0x55dc7e('0x2675'):_0x55dc7e('0x1b91'));let _0x150bfa;switch(_0xc4d03a[_0x55dc7e('0x237')][_0x55dc7e('0x1134')]){case _0x55dc7e('0x8c5'):_0x150bfa=0x1f6;break;case _0x55dc7e('0x16d'):_0x150bfa=0x386;break;case _0x55dc7e('0x108a'):_0x150bfa=0x25a;break;case'openchannel':_0x150bfa=0x322;break;case'sms':_0x150bfa=0x2be;break;case _0x55dc7e('0x245'):_0x150bfa=0x836;break;}if(_0x23b6f9[_0x55dc7e('0xfd8')]()){const _0x51f027=_0xc4d03a[_0x55dc7e('0x237')][_0x55dc7e('0x1134')];_0x558911[_0x11bf4d][_0x55dc7e('0x1d97')]({'fields':'id,name','sort':'id','nolimit':_0x55dc7e('0x799')})[_0x55dc7e('0x1964')]['then'](function(_0x51be32){const _0x4f9e47=_0x55dc7e;_0xc4d03a[_0x4f9e47('0x102c')]=_0x51be32['rows']||[];})[_0x55dc7e('0x103c')](function(_0x482cab){const _0xacb09a=_0x55dc7e;_0x73784d[_0xacb09a('0x15aa')]({'title':_0x482cab[_0xacb09a('0x276f')]?_0xacb09a('0x137')+_0x482cab[_0xacb09a('0x276f')]+_0xacb09a('0x160c')+_0x482cab['statusText']:'SYSTEM:GET_'+_0x51f027[_0xacb09a('0x1164')]()+_0x51f027==='chat'?_0xacb09a('0x1c2b'):_0xacb09a('0x400'),'msg':_0x482cab[_0xacb09a('0x1e07')]?JSON[_0xacb09a('0x100b')](_0x482cab[_0xacb09a('0x1e07')]):_0x482cab['toString']()});});}else _0x558911[_0x11bf4d]['get']({'fields':_0x55dc7e('0xd52'),'sort':'id','nolimit':_0x55dc7e('0x799')})[_0x55dc7e('0x1964')][_0x55dc7e('0x173b')](function(_0x1afe28){const _0x407412=_0x55dc7e;_0xc4d03a[_0x407412('0x102c')]=_0x1afe28[_0x407412('0x6aa')]||[];})[_0x55dc7e('0x173b')](function(){const _0x20a107=_0x55dc7e;return _0x558911['userProfileSection'][_0x20a107('0x1d97')]({'userProfileId':_0xc4d03a['currentUser']['userProfileId'],'sectionId':_0x150bfa})[_0x20a107('0x1964')];})[_0x55dc7e('0x173b')](function(_0x335507){const _0x4522eb=_0x55dc7e,_0x14cc1c=_0x335507&&_0x335507[_0x4522eb('0x6aa')]?_0x335507['rows'][0x0]:null;if(!_0x14cc1c){const _0x25bb68=[],_0x4be87c=[];_0xc4d03a['triggerallConditions'][_0x4522eb('0x6aa')][_0x4522eb('0xa6a')](function(_0x25f026){const _0x251227=_0x4522eb;if(_0x25f026[_0x251227('0x81d')]===_0x251227('0xde4')){const _0x1efa93=_0x3c8d8a()[_0x251227('0x18ab')](_0xc4d03a['accounts'],{'id':Number(_0x25f026['value'])});_0x4be87c[_0x251227('0x18bb')](_0x1efa93);}});for(let _0x866ef9=0x0;_0x866ef9<_0xc4d03a[_0x4522eb('0x102c')][_0x4522eb('0x543')];_0x866ef9++){const _0x105972=_0x3c8d8a()[_0x4522eb('0x1ec')](_0x4be87c,{'id':_0xc4d03a[_0x4522eb('0x102c')][_0x866ef9]['id']});_0x105972&&(_0xc4d03a['accounts'][_0x866ef9][_0x4522eb('0x268e')]=![],_0x25bb68['push'](_0xc4d03a[_0x4522eb('0x102c')][_0x866ef9]));}_0xc4d03a[_0x4522eb('0x102c')]=_0x25bb68;}else{if(!_0x14cc1c[_0x4522eb('0x273e')])return _0x558911['userProfileResource'][_0x4522eb('0x1d97')]({'sectionId':_0x14cc1c['id']})[_0x4522eb('0x1964')][_0x4522eb('0x173b')](function(_0x11ff45){const _0x312aef=_0x4522eb,_0x4430d9=_0x3c8d8a()[_0x312aef('0x8a2')](_0x11ff45[_0x312aef('0x6aa')],function(_0x1b625b){const _0x4e3cd0=_0x312aef;return _0x3c8d8a()[_0x4e3cd0('0x18ab')](_0xc4d03a[_0x4e3cd0('0x102c')],{'id':_0x1b625b['resourceId']});});let _0x46f916=null;_0x46f916=[],_0xc4d03a[_0x312aef('0xcd7')][_0x312aef('0x6aa')]['forEach'](function(_0x1376a1){const _0x201b4c=_0x312aef;if(_0x1376a1['field']===_0x201b4c('0xde4')){const _0xfe0e5f=_0x3c8d8a()[_0x201b4c('0x18ab')](_0xc4d03a[_0x201b4c('0x102c')],{'id':Number(_0x1376a1[_0x201b4c('0xa7b')])});_0x46f916[_0x201b4c('0x18bb')](_0xfe0e5f);}}),!_0x3c8d8a()[_0x312aef('0x1a56')](_0x46f916)&&_0x46f916[_0x312aef('0xa6a')](function(_0x2a6df2){const _0x2e4983=_0x312aef;if(!_0x3c8d8a()[_0x2e4983('0x1ec')](_0x4430d9,['id',_0x2a6df2['id']])){const _0x37cfa0=_0x3c8d8a()[_0x2e4983('0x18ab')](_0xc4d03a[_0x2e4983('0x102c')],{'id':_0x2a6df2['id']});_0x37cfa0['canSelect']=![],_0x4430d9['push'](_0x37cfa0);}}),_0xc4d03a['accounts']=_0x4430d9;});}})['catch'](function(_0x4b4528){const _0x3aa5b9=_0x55dc7e,_0x4ef80e=_0xc4d03a[_0x3aa5b9('0x237')][_0x3aa5b9('0x1134')];_0x73784d[_0x3aa5b9('0x15aa')]({'title':_0x4b4528['status']?_0x3aa5b9('0x137')+_0x4b4528[_0x3aa5b9('0x276f')]+_0x3aa5b9('0x160c')+_0x4b4528['statusText']:_0x3aa5b9('0xe17')+_0x4ef80e[_0x3aa5b9('0x1164')]()+_0x4ef80e===_0x3aa5b9('0x8c5')?'WEBSITES':'ACCOUNTS','msg':_0x4b4528[_0x3aa5b9('0x1e07')]?JSON['stringify'](_0x4b4528[_0x3aa5b9('0x1e07')]):_0x4b4528['toString']()});});}function _0x490a41(){const _0x4f878d=_0x46441b;switch(_0xc4d03a[_0x4f878d('0x255b')]['field']){case _0x4f878d('0x172'):if(!_0xc4d03a[_0x4f878d('0xeae')])_0x713917();break;case _0x4f878d('0x14e8'):if(!_0xc4d03a[_0x4f878d('0x26f')])_0x5e3378();break;case _0x4f878d('0x7b0'):if(!_0xc4d03a[_0x4f878d('0x11fa')])_0x398846();break;case _0x4f878d('0xde4'):_0x3be9fa();break;}}function _0xcd25e2(){_0x490a41();}function _0x92ea2c(){const _0xd4428b=_0x46441b;_0xc4d03a[_0xd4428b('0x1d4a')]=[],_0x558911[_0xd4428b('0x237')][_0xd4428b('0x1bf8')]({'id':_0xe888be[_0xd4428b('0x197a')]['id']},_0xc4d03a[_0xd4428b('0x255b')])[_0xd4428b('0x1964')][_0xd4428b('0x173b')](function(_0x1dc84c){const _0x386bd9=_0xd4428b;_0xc4d03a[_0x386bd9('0x776')]['unshift'](_0x1dc84c[_0x386bd9('0xf1f')]()),_0x73784d['success']({'title':_0x1eb3d4[_0x386bd9('0x1467')](_0x386bd9('0x671'))}),_0xb2762a(_0xc4d03a[_0x386bd9('0x776')]);})[_0xd4428b('0x103c')](function(_0x46ed4c){const _0x1f1ab9=_0xd4428b;if(_0x46ed4c['data']&&_0x46ed4c[_0x1f1ab9('0x1e07')]['errors']&&_0x46ed4c[_0x1f1ab9('0x1e07')][_0x1f1ab9('0x1d4a')]['length']){_0xc4d03a['errors']=_0x46ed4c[_0x1f1ab9('0x1e07')]['errors']||[{'message':_0x46ed4c[_0x1f1ab9('0x1b75')](),'type':_0x1f1ab9('0x271f')}];for(let _0x589688=0x0;_0x589688<_0x46ed4c['data'][_0x1f1ab9('0x1d4a')][_0x1f1ab9('0x543')];_0x589688+=0x1){_0x73784d[_0x1f1ab9('0x15aa')]({'title':_0x46ed4c[_0x1f1ab9('0x1e07')]['errors'][_0x589688][_0x1f1ab9('0x1810')],'msg':_0x46ed4c[_0x1f1ab9('0x1e07')][_0x1f1ab9('0x1d4a')][_0x589688][_0x1f1ab9('0x67f')]});}}else _0x73784d[_0x1f1ab9('0x15aa')]({'title':_0x46ed4c[_0x1f1ab9('0x276f')]?_0x1f1ab9('0x137')+_0x46ed4c['status']+_0x1f1ab9('0x160c')+_0x46ed4c[_0x1f1ab9('0x2696')]:'api.condition.save','msg':_0x46ed4c[_0x1f1ab9('0x1e07')]?JSON[_0x1f1ab9('0x100b')](_0x46ed4c['data']['message']):_0x46ed4c['toString']()});});}function _0x2c4825(){const _0x3721e0=_0x46441b;_0xc4d03a['errors']=[],_0x558911[_0x3721e0('0x1adb')][_0x3721e0('0x1842')]({'id':_0xc4d03a[_0x3721e0('0x255b')]['id']},_0xc4d03a['allCondition'])['$promise'][_0x3721e0('0x173b')](function(){const _0x23478a=_0x3721e0;_0xc4d03a[_0x23478a('0x776')]=_0x3c8d8a()[_0x23478a('0x8a2')](_0xc4d03a[_0x23478a('0x776')],function(_0x3b1fbf){const _0x237f65=_0x23478a;if(_0x3b1fbf['id']===_0xc4d03a[_0x237f65('0x255b')]['id'])return _0xc4d03a[_0x237f65('0x255b')];else return _0x3b1fbf;}),_0x73784d[_0x23478a('0xdfe')]({'title':_0x1eb3d4['instant'](_0x23478a('0x60f'))}),_0xb2762a(_0xc4d03a[_0x23478a('0x776')]);})[_0x3721e0('0x103c')](function(_0x3de2e1){const _0x57ff83=_0x3721e0;if(_0x3de2e1[_0x57ff83('0x1e07')]&&_0x3de2e1['data'][_0x57ff83('0x1d4a')]&&_0x3de2e1['data'][_0x57ff83('0x1d4a')][_0x57ff83('0x543')]){_0xc4d03a[_0x57ff83('0x1d4a')]=_0x3de2e1['data'][_0x57ff83('0x1d4a')]||[{'message':_0x3de2e1[_0x57ff83('0x1b75')](),'type':_0x57ff83('0x27a9')}];for(let _0x55ecac=0x0;_0x55ecac<_0x3de2e1[_0x57ff83('0x1e07')][_0x57ff83('0x1d4a')][_0x57ff83('0x543')];_0x55ecac++){_0x73784d[_0x57ff83('0x15aa')]({'title':_0x3de2e1[_0x57ff83('0x1e07')]['errors'][_0x55ecac][_0x57ff83('0x1810')],'msg':_0x3de2e1[_0x57ff83('0x1e07')][_0x57ff83('0x1d4a')][_0x55ecac][_0x57ff83('0x67f')]});}}else _0x73784d['error']({'title':_0x3de2e1[_0x57ff83('0x276f')]?_0x57ff83('0x137')+_0x3de2e1[_0x57ff83('0x276f')]+_0x57ff83('0x160c')+_0x3de2e1[_0x57ff83('0x2696')]:_0x57ff83('0x27a9'),'msg':_0x3de2e1[_0x57ff83('0x1e07')]?JSON[_0x57ff83('0x100b')](_0x3de2e1[_0x57ff83('0x1e07')]['message']):_0x3de2e1[_0x57ff83('0x1b75')]()});});}function _0x2fa895(_0x165e0e){const _0x1cf992=_0x46441b;_0xc4d03a[_0x1cf992('0x1d4a')]=[];const _0x7e9bac=_0x5504b1[_0x1cf992('0x1d02')]({'skipHide':!![]})[_0x1cf992('0x20d6')](_0x1eb3d4['instant'](_0x1cf992('0x2640')))[_0x1cf992('0x217')](_0x1cf992('0x17a8'))['ok'](_0x1eb3d4[_0x1cf992('0x1467')](_0x1cf992('0x1078')))[_0x1cf992('0x1e1f')](_0x1eb3d4[_0x1cf992('0x1467')](_0x1cf992('0x2224')))[_0x1cf992('0x21de')](_0x165e0e);_0x5504b1[_0x1cf992('0x1cb7')](_0x7e9bac)[_0x1cf992('0x173b')](function(){const _0x25297e=_0x1cf992;_0x558911['condition']['delete']({'id':_0xc4d03a[_0x25297e('0x255b')]['id']})['$promise'][_0x25297e('0x173b')](function(){const _0x4de4fd=_0x25297e;_0xc4d03a[_0x4de4fd('0x776')]=_0x3c8d8a()[_0x4de4fd('0x278d')](_0xc4d03a[_0x4de4fd('0x776')],function(_0x2132f9){const _0xdbedba=_0x4de4fd;return _0x2132f9['id']!==_0xc4d03a[_0xdbedba('0x255b')]['id'];}),_0x73784d[_0x4de4fd('0xdfe')]({'title':_0x1eb3d4[_0x4de4fd('0x1467')](_0x4de4fd('0x67e'))}),_0xb2762a(_0xc4d03a[_0x4de4fd('0x776')]);})[_0x25297e('0x103c')](function(_0x52e87e){const _0x550a49=_0x25297e;if(_0x52e87e[_0x550a49('0x1e07')]&&_0x52e87e[_0x550a49('0x1e07')][_0x550a49('0x1d4a')]&&_0x52e87e[_0x550a49('0x1e07')][_0x550a49('0x1d4a')][_0x550a49('0x543')]){_0xc4d03a[_0x550a49('0x1d4a')]=_0x52e87e[_0x550a49('0x1e07')][_0x550a49('0x1d4a')]||[{'message':_0x52e87e[_0x550a49('0x1b75')](),'type':_0x550a49('0x114d')}];for(let _0x49e256=0x0;_0x49e256<_0x52e87e[_0x550a49('0x1e07')][_0x550a49('0x1d4a')]['length'];_0x49e256++){_0x73784d[_0x550a49('0x15aa')]({'title':_0x52e87e['data']['errors'][_0x49e256]['type'],'msg':_0x52e87e[_0x550a49('0x1e07')]['errors'][_0x49e256][_0x550a49('0x67f')]});}}else _0x73784d[_0x550a49('0x15aa')]({'title':_0x52e87e[_0x550a49('0x276f')]?'API:'+_0x52e87e[_0x550a49('0x276f')]+_0x550a49('0x160c')+_0x52e87e['statusText']:_0x550a49('0x114d'),'msg':_0x52e87e[_0x550a49('0x1e07')]?JSON['stringify'](_0x52e87e[_0x550a49('0x1e07')][_0x550a49('0x67f')]):_0x52e87e[_0x550a49('0x67f')]||_0x52e87e[_0x550a49('0x1b75')]()});});},function(){});}function _0xb2762a(_0x3082b5){const _0x3feeed=_0x46441b;_0x5504b1[_0x3feeed('0x1cf4')](_0x3082b5);}}const _0x6e2bf7=_0x1b6e1d;_0x42c419[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x237'),_0x566993('0x170e')];function _0x42c419(_0x2da5c3,_0x5841f4,_0x5ded79,_0x539215,_0x28129f,_0x33af26,_0x291a98,_0x596908,_0x46357a){const _0x114143=_0x566993,_0x1c7ff7=this;_0x1c7ff7[_0x114143('0x155f')]=_0x291a98['getCurrentUser'](),_0x1c7ff7[_0x114143('0x1a29')]=_0x5ded79,_0x1c7ff7[_0x114143('0x251')]=_0x539215,_0x1c7ff7[_0x114143('0x237')]=_0x596908||_0x2da5c3[_0x114143('0x197a')][_0x114143('0x237')]||{},_0x1c7ff7[_0x114143('0xd5f')]=_0x2da5c3[_0x114143('0x197a')]['tab']||0x0;_0x2da5c3[_0x114143('0x197a')][_0x114143('0x1dc1')]?_0x1c7ff7[_0x114143('0x1dc1')]=_0x2da5c3[_0x114143('0x197a')][_0x114143('0x1dc1')]:(_0x1c7ff7['userProfileSection']=_0x46357a&&_0x46357a[_0x114143('0x1a2f')]==0x1?_0x46357a[_0x114143('0x6aa')][0x0]:null,_0x1c7ff7[_0x114143('0x1dc1')]=_0x291a98[_0x114143('0xde6')](_0x1c7ff7[_0x114143('0x170e')]?_0x1c7ff7[_0x114143('0x170e')]['crudPermissions']:null));_0x1c7ff7[_0x114143('0x223c')]=_0x528cb0,_0x1c7ff7[_0x114143('0x198e')]=_0x2cb0df;function _0x528cb0(){const _0x509640=_0x114143;_0x2da5c3['go'](_0x509640('0x2346'),{},{'reload':_0x509640('0x2346')});}function _0x2cb0df(){const _0x4632ce=_0x114143;_0x28129f[_0x4632ce('0x237')][_0x4632ce('0x1842')]({'id':_0x1c7ff7[_0x4632ce('0x237')]['id']},_0x1c7ff7[_0x4632ce('0x237')])['$promise'][_0x4632ce('0x173b')](function(){const _0x252830=_0x4632ce;_0x33af26[_0x252830('0xdfe')]({'title':_0x5841f4[_0x252830('0x1467')]('TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE')});})[_0x4632ce('0x103c')](function(_0x1cd045){const _0x41ca9b=_0x4632ce;_0x33af26[_0x41ca9b('0x15aa')]({'title':_0x1cd045[_0x41ca9b('0x276f')]?_0x41ca9b('0x137')+_0x1cd045[_0x41ca9b('0x276f')]+_0x41ca9b('0x160c')+_0x1cd045[_0x41ca9b('0x2696')]:_0x41ca9b('0x1df7'),'msg':_0x1cd045[_0x41ca9b('0x1e07')]?JSON['stringify'](_0x1cd045[_0x41ca9b('0x1e07')]):_0x1cd045[_0x41ca9b('0x1b75')]()});});}}const _0x3b8bd0=_0x42c419,_0x590af6=_0x21a6a1['p']+_0x566993('0x2302');_0x3de84f[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$mdDialog','$document',_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x151c'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'toasty',_0x566993('0x1600'),'license',_0x566993('0x251')];function _0x3de84f(_0x18d9b0,_0x2b9564,_0x5947cf,_0x33bc3b,_0x1a33cd,_0x521d78,_0x40be2b,_0x16efed,_0x264eb3,_0x25951a,_0x4fe90c,_0x53fa36,_0xcad2a6,_0x32ce90){const _0x439a57=_0x566993,_0xa31720=this;_0xa31720['license']=_0xcad2a6,_0xa31720[_0x439a57('0x251')]=_0x32ce90,_0xa31720['currentUser']=_0x53fa36[_0x439a57('0x14d4')](),_0xa31720[_0x439a57('0x151c')]=_0x40be2b||{'count':0x0,'rows':[]},_0xa31720['userProfile']=_0x16efed,_0xa31720[_0x439a57('0x170e')]=_0x264eb3&&_0x264eb3[_0x439a57('0x1a2f')]==0x1?_0x264eb3[_0x439a57('0x6aa')][0x0]:null,_0xa31720['crudPermissions']=_0x53fa36[_0x439a57('0xde6')](_0xa31720[_0x439a57('0x170e')]?_0xa31720['userProfileSection'][_0x439a57('0x1dc1')]:null),_0xa31720[_0x439a57('0x239b')]=[],_0xa31720[_0x439a57('0xc49')]={'fields':_0x439a57('0x7ae'),'sort':_0x439a57('0x1769'),'limit':0xa,'page':0x1},_0xa31720[_0x439a57('0x22ec')]=_0x25f787,_0xa31720['createOrEditTrigger']=_0x4e67d4,_0xa31720[_0x439a57('0xdfe')]=_0x560da4,_0xa31720[_0x439a57('0x194f')]=_0x547056,_0xa31720[_0x439a57('0x1a20')]=_0x2cdcfa,_0xa31720[_0x439a57('0x1016')]=_0x4ae3e5,_0xa31720['deleteSelectedTriggers']=_0x537268,_0xa31720[_0x439a57('0x262c')]=_0x3178aa,_0xa31720[_0x439a57('0x94f')]=_0x44477f;function _0x25f787(_0x5b78bf){const _0x157ad1=_0x439a57;_0x2b9564['go'](_0x157ad1('0x96e'),{'id':_0x5b78bf['id'],'trigger':_0x5b78bf,'crudPermissions':_0xa31720[_0x157ad1('0x1dc1')]});}function _0x4e67d4(_0x4160b1,_0xabd4e4){const _0x4f8879=_0x439a57;if(_0xa31720[_0x4f8879('0x1dc1')]['readOnly']||_0xa31720['crudPermissions'][_0x4f8879('0x1404')]&&!_0xa31720[_0x4f8879('0x1dc1')][_0x4f8879('0x1f3d')]){_0x25f787(_0xabd4e4);return;}_0x5947cf[_0x4f8879('0x1cb7')]({'controller':_0x4f8879('0x1bfa'),'controllerAs':'vm','templateUrl':_0x590af6,'parent':angular['element'](_0x33bc3b['body']),'targetEvent':_0x4160b1,'clickOutsideToClose':!![],'locals':{'trigger':_0xabd4e4,'triggers':_0xa31720[_0x4f8879('0x151c')][_0x4f8879('0x6aa')],'license':_0xa31720[_0x4f8879('0x1a29')],'setting':_0xa31720[_0x4f8879('0x251')],'crudPermissions':_0xa31720[_0x4f8879('0x1dc1')]}})['then'](function(_0xd7b35b){const _0x100be7=_0x4f8879;_0xd7b35b&&(_0xa31720['triggers']={'count':_0xd7b35b[_0x100be7('0x543')],'rows':_0xd7b35b});});}function _0x560da4(_0x50db97){_0xa31720['triggers']=_0x50db97||{'count':0x0,'rows':[]};}function _0x547056(){const _0xededb=_0x439a57;_0xa31720[_0xededb('0xc49')]['offset']=(_0xa31720[_0xededb('0xc49')][_0xededb('0x182e')]-0x1)*_0xa31720['query']['limit'],_0x53fa36[_0xededb('0xfd8')]()?_0xa31720['promise']=_0x25951a['trigger'][_0xededb('0x1d97')](_0xa31720[_0xededb('0xc49')],_0x560da4)['$promise']:(_0xa31720[_0xededb('0xc49')]['id']=_0xa31720[_0xededb('0x257b')]['id'],_0xa31720[_0xededb('0xc49')][_0xededb('0x17c9')]=_0xededb('0x63e'),_0xa31720[_0xededb('0x2219')]=_0x25951a[_0xededb('0x257b')][_0xededb('0x135b')](_0xa31720[_0xededb('0xc49')],_0x560da4)['$promise']);}function _0x2cdcfa(_0x4f7fa6,_0x330b8a){const _0x532df2=_0x439a57,_0x4deb81=_0x5947cf[_0x532df2('0x1d02')]()[_0x532df2('0x20d6')](_0x521d78[_0x532df2('0x1467')](_0x532df2('0x107d')))[_0x532df2('0x732')](_0x521d78['instant']('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE',{'name':_0x4f7fa6[_0x532df2('0x10ad')]}))[_0x532df2('0x217')]('Delete\x20trigger')[_0x532df2('0x21de')](_0x330b8a)['ok']('OK')['cancel'](_0x521d78['instant'](_0x532df2('0x2224')));_0x5947cf['show'](_0x4deb81)[_0x532df2('0x173b')](function(){_0x201335(_0x4f7fa6,!![]);});}function _0x201335(_0x4c8e2f,_0x148c37){const _0x55171d=_0x439a57;_0x25951a[_0x55171d('0x237')][_0x55171d('0x15e8')]({'id':_0x4c8e2f['id']})[_0x55171d('0x1964')][_0x55171d('0x173b')](function(){const _0x47693e=_0x55171d;_0x547056(),_0x148c37&&_0x4fe90c[_0x47693e('0xdfe')]({'title':_0x521d78['instant'](_0x47693e('0x2439'))});})[_0x55171d('0x103c')](function(_0x5b60b4){const _0x170739=_0x55171d;if(_0x5b60b4['data']&&_0x5b60b4[_0x170739('0x1e07')]['errors']&&_0x5b60b4[_0x170739('0x1e07')][_0x170739('0x1d4a')][_0x170739('0x543')]){_0xa31720['errors']=_0x5b60b4['data'][_0x170739('0x1d4a')]||[{'message':_0x5b60b4[_0x170739('0x1b75')](),'type':_0x170739('0x575')}];for(let _0x53eec9=0x0;_0x53eec9<_0x5b60b4['data']['errors'][_0x170739('0x543')];_0x53eec9++){_0x4fe90c[_0x170739('0x15aa')]({'title':_0x5b60b4[_0x170739('0x1e07')][_0x170739('0x1d4a')][_0x53eec9][_0x170739('0x1810')],'msg':_0x5b60b4[_0x170739('0x1e07')][_0x170739('0x1d4a')][_0x53eec9][_0x170739('0x67f')]});}}else _0x4fe90c[_0x170739('0x15aa')]({'title':_0x5b60b4[_0x170739('0x276f')]?_0x170739('0x137')+_0x5b60b4['status']+_0x170739('0x160c')+_0x5b60b4[_0x170739('0x2696')]:_0x170739('0x575'),'msg':_0x5b60b4[_0x170739('0x1e07')]?JSON[_0x170739('0x100b')](_0x5b60b4[_0x170739('0x1e07')][_0x170739('0x67f')]):_0x5b60b4['message']||_0x5b60b4[_0x170739('0x1b75')]()});});}function _0x4ae3e5(){const _0x33be6b=_0x439a57,_0x2d4c76=angular[_0x33be6b('0x2e3')](_0xa31720[_0x33be6b('0x239b')]);return _0xa31720[_0x33be6b('0x239b')]=[],_0x2d4c76;}function _0x537268(_0x5740da){const _0x388c73=_0x439a57,_0x3cea8d=_0x5947cf[_0x388c73('0x1d02')]()[_0x388c73('0x20d6')](_0x521d78[_0x388c73('0x1467')](_0x388c73('0x69a')))['content'](_0x521d78[_0x388c73('0x1467')]('TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_MESSAGE',{'total':_0xa31720[_0x388c73('0x239b')][_0x388c73('0x543')]}))['ariaLabel'](_0x388c73('0xcc2'))[_0x388c73('0x21de')](_0x5740da)['ok']('OK')[_0x388c73('0x1e1f')](_0x521d78['instant'](_0x388c73('0x2224')));_0x5947cf[_0x388c73('0x1cb7')](_0x3cea8d)[_0x388c73('0x173b')](function(){const _0x58b414=_0x388c73;_0xa31720[_0x58b414('0x239b')]['forEach'](function(_0x2b2a00){_0x201335(_0x2b2a00);}),_0xa31720[_0x58b414('0x239b')]=[],_0x4fe90c['success']({'title':_0x521d78[_0x58b414('0x1467')](_0x58b414('0x1384'))});});}function _0x3178aa(){const _0x10c3c6=_0x439a57;_0xa31720[_0x10c3c6('0x239b')]=[];}function _0x44477f(){const _0x1ffeb0=_0x439a57;_0xa31720['selectedTriggers']=_0xa31720[_0x1ffeb0('0x151c')]['rows'];}let _0xaa2152=!![],_0x5cb162=0x1;_0x18d9b0['$watch'](_0x439a57('0x157b'),function(_0xdde050,_0x17ff4e){const _0x461d5e=_0x439a57;_0xaa2152?_0x1a33cd(function(){_0xaa2152=![];}):(!_0x17ff4e&&(_0x5cb162=_0xa31720[_0x461d5e('0xc49')]['page']),_0xdde050!==_0x17ff4e&&(_0xa31720[_0x461d5e('0xc49')][_0x461d5e('0x182e')]=0x1),!_0xdde050&&(_0xa31720[_0x461d5e('0xc49')][_0x461d5e('0x182e')]=_0x5cb162),_0x547056());});}const _0x4bafdb=_0x3de84f;_0x42825a[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x42825a(_0x1bcda8){const _0x1cc405=_0x566993;_0x1bcda8[_0x1cc405('0x1a49')](_0x1cc405('0x2346'),{'url':_0x1cc405('0x19e2'),'views':{'content@app':{'templateUrl':_0x6fb345,'controller':_0x1cc405('0xf82')}},'resolve':{'triggers':[_0x1cc405('0x2401'),'Auth',function(_0x1e4e0b,_0xa17e42){const _0x2ead68=_0x1cc405;return _0xa17e42[_0x2ead68('0x1b4e')](_0x2ead68('0x79b'))?_0x1e4e0b[_0x2ead68('0x155b')](_0x2ead68('0x2402'),{'fields':_0x2ead68('0x1a2c'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x1e4e0b[_0x2ead68('0x155b')](_0x2ead68('0x14b3'),{'id':_0xa17e42[_0x2ead68('0x14d4')]()[_0x2ead68('0x1946')],'section':_0x2ead68('0x63e'),'fields':_0x2ead68('0x1a2c'),'sort':_0x2ead68('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1cc405('0x2401'),_0x1cc405('0x1600'),function(_0x4a2810,_0x5bb787){const _0x28da30=_0x1cc405;return _0x5bb787[_0x28da30('0x1b4e')](_0x28da30('0x79b'))?null:_0x4a2810[_0x28da30('0x155b')]('userProfile@get',{'fields':_0x28da30('0x19dd'),'id':_0x5bb787[_0x28da30('0x14d4')]()[_0x28da30('0x1946')]});}],'userProfileSection':['apiResolver',_0x1cc405('0x1600'),function(_0x22fb11,_0x23f89b){const _0x2fbf11=_0x1cc405;return _0x23f89b[_0x2fbf11('0x1b4e')]('admin')?null:_0x22fb11['resolve'](_0x2fbf11('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x23f89b[_0x2fbf11('0x14d4')]()[_0x2fbf11('0x1946')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':'tools'})['state'](_0x1cc405('0x96e'),{'url':'/:id?tab','params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x545d1a,'controller':_0x1cc405('0x753')}},'resolve':{'trigger':[_0x1cc405('0x2401'),_0x1cc405('0x1caf'),function(_0x5b7626,_0x4473ef){const _0x3a254b=_0x1cc405;return _0x5b7626[_0x3a254b('0x155b')](_0x3a254b('0x2402'),{'fields':_0x3a254b('0x1a2c'),'id':_0x4473ef['id']});}],'userProfileSection':[_0x1cc405('0x2401'),_0x1cc405('0x1600'),function(_0x3edcc9,_0x1552b1){const _0x49bc31=_0x1cc405;return _0x3edcc9[_0x49bc31('0x155b')](_0x49bc31('0x40'),{'fields':_0x49bc31('0x1348'),'userProfileId':_0x1552b1[_0x49bc31('0x14d4')]()['userProfileId'],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x1cc405('0x170f')});}angular['module'](_0x566993('0x2346'),[])[_0x566993('0xea9')](_0x42825a)[_0x566993('0x1e65')]('CreateOrEditTriggerDialogController',_0x384f40)[_0x566993('0x1e65')]('TriggerActionsController',_0x544fce)[_0x566993('0x1e65')]('CreateOrEditActionDialogController',_0x469e75)[_0x566993('0x1e65')]('TriggerAllConditionsController',_0x2bd1b6)['controller']('CreateOrEditAllConditionDialogController',_0x91b380)[_0x566993('0x1e65')](_0x566993('0x141f'),_0x4a7fea)['controller'](_0x566993('0x1815'),_0x6e2bf7)[_0x566993('0x1e65')](_0x566993('0xc36'),_0x3b8bd0)['controller'](_0x566993('0x1fb'),_0x4bafdb);const _0x38088e=_0x21a6a1['p']+_0x566993('0x1b2'),_0x261681=_0x21a6a1['p']+_0x566993('0x9e0'),_0x2151bf=_0x21a6a1['p']+_0x566993('0x10aa'),_0x3ed636=_0x21a6a1['p']+_0x566993('0x856'),_0x327932=_0x21a6a1['p']+_0x566993('0x210e'),_0x4cc0c0=_0x21a6a1['p']+_0x566993('0x1045'),_0x4963d5=_0x21a6a1['p']+_0x566993('0x738'),_0x1dbf39=_0x21a6a1['p']+'src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds.html',_0x2b1ad9=_0x21a6a1['p']+_0x566993('0xd2e'),_0x5ba489=_0x21a6a1['p']+_0x566993('0xe55'),_0x49cc7c=_0x21a6a1['p']+'src/js/modules/main/apps/tools/views/trunks/trunks.html/trunks.html',_0x3906f6=_0x21a6a1['p']+_0x566993('0x1721'),_0x5e8702=_0x21a6a1['p']+_0x566993('0x15ea'),_0x1971ac=_0x21a6a1['p']+_0x566993('0x130');_0x39452a['$inject']=['$scope','$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),'cannedAnswers',_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0x1f9'),_0x566993('0x1558'),'Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0x39452a(_0x1164cf,_0x161551,_0x4cbddd,_0x55172d,_0x3a7fd1,_0x3c55cb,_0x3a75ef,_0x49c839,_0x394840,_0x44cf38,_0x36d10c,_0x227175,_0x324a57,_0x1ab9bc,_0x229bbd,_0x246cea,_0x1d6b2e){const _0x506aee=_0x566993,_0x136f7c=this;_0x136f7c[_0x506aee('0x1a29')]=_0x246cea,_0x136f7c['setting']=_0x1d6b2e,_0x136f7c[_0x506aee('0x155f')]=_0x229bbd[_0x506aee('0x14d4')](),_0x136f7c[_0x506aee('0xed')]=_0x394840||{'count':0x0,'rows':[]},_0x136f7c[_0x506aee('0x257b')]=_0x44cf38,_0x136f7c[_0x506aee('0x170e')]=_0x36d10c&&_0x36d10c[_0x506aee('0x1a2f')]==0x1?_0x36d10c['rows'][0x0]:null,_0x136f7c[_0x506aee('0x1dc1')]=_0x229bbd['parseCrudPermissions'](_0x136f7c[_0x506aee('0x170e')]?_0x136f7c['userProfileSection'][_0x506aee('0x1dc1')]:null),_0x136f7c['table']=_0x506aee('0xed'),_0x136f7c['listOrder']='',_0x136f7c['listOrderAsc']=null,_0x136f7c[_0x506aee('0x140')]=[],_0x136f7c[_0x506aee('0xc49')]={'fields':'createdAt,updatedAt,id,key,value,description','sort':_0x506aee('0x1769'),'MailAccountId':_0x506aee('0x877'),'FaxAccountId':_0x506aee('0x877'),'SmsAccountId':_0x506aee('0x877'),'OpenchannelAccountId':_0x506aee('0x877'),'ChatWebsiteId':_0x506aee('0x877'),'limit':0xa,'page':0x1},_0x136f7c[_0x506aee('0x19eb')]=_0x1aba2b,_0x136f7c[_0x506aee('0x1a20')]=_0x1bcede,_0x136f7c['success']=_0x517ed0,_0x136f7c[_0x506aee('0x834')]=_0x5a955b,_0x136f7c[_0x506aee('0x237b')]=_0x394526,_0x136f7c['deleteCannedAnswer']=_0x3a4fe2,_0x136f7c[_0x506aee('0x1e27')]=_0x5cad88,_0x136f7c[_0x506aee('0x68')]=_0x3bf82d,_0x136f7c[_0x506aee('0x6c3')]=_0x378563,_0x136f7c[_0x506aee('0x276c')]=_0x357715;function _0x1aba2b(_0x38d45a,_0x34b2b0){const _0xc035ef=_0x506aee;_0x3a7fd1[_0xc035ef('0x1cb7')]({'controller':_0xc035ef('0x258b'),'controllerAs':'vm','templateUrl':_0x1971ac,'parent':angular[_0xc035ef('0xb6d')](_0x3c55cb[_0xc035ef('0x1a5')]),'targetEvent':_0x34b2b0,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x38d45a,'cannedAnswers':_0x136f7c[_0xc035ef('0xed')]['rows'],'license':_0x136f7c[_0xc035ef('0x1a29')],'setting':null,'crudPermissions':_0x136f7c[_0xc035ef('0x1dc1')]}});}function _0x1bcede(_0x4a144e,_0x464167){const _0x4a7206=_0x506aee,_0x2f5001=_0x3a7fd1[_0x4a7206('0x1d02')]()[_0x4a7206('0x20d6')](_0x4a7206('0x5bb')+_0x3c8d8a()[_0x4a7206('0x10e')](_0x4a7206('0x2849'))+'?')[_0x4a7206('0xf8b')](_0x4a7206('0x15b9')+(_0x4a144e[_0x4a7206('0x10ad')]||'cannedAnswer')+''+_0x4a7206('0xd23'))['ariaLabel']('delete\x20cannedAnswer')['targetEvent'](_0x464167)['ok']('OK')[_0x4a7206('0x1e1f')](_0x4a7206('0x468'));_0x3a7fd1[_0x4a7206('0x1cb7')](_0x2f5001)[_0x4a7206('0x173b')](function(){_0x3a4fe2(_0x4a144e);},function(){const _0x236f2b=_0x4a7206;console['log'](_0x236f2b('0x468'));});}let _0x51a536=!![],_0x4ba627=0x1;_0x1164cf['$watch'](_0x506aee('0x157b'),function(_0x3b44e6,_0x577bdf){const _0x164a2b=_0x506aee;_0x51a536?_0x3a75ef(function(){_0x51a536=![];}):(!_0x577bdf&&(_0x4ba627=_0x136f7c[_0x164a2b('0xc49')][_0x164a2b('0x182e')]),_0x3b44e6!==_0x577bdf&&(_0x136f7c[_0x164a2b('0xc49')][_0x164a2b('0x182e')]=0x1),!_0x3b44e6&&(_0x136f7c[_0x164a2b('0xc49')][_0x164a2b('0x182e')]=_0x4ba627),_0x136f7c[_0x164a2b('0x834')]());});function _0x517ed0(_0x136f12){const _0x3fa4d4=_0x506aee;_0x136f7c[_0x3fa4d4('0xed')]=_0x136f12||{'count':0x0,'rows':[]};}function _0x5a955b(){const _0x27068c=_0x506aee;_0x136f7c[_0x27068c('0xc49')][_0x27068c('0x17f0')]=(_0x136f7c[_0x27068c('0xc49')]['page']-0x1)*_0x136f7c[_0x27068c('0xc49')][_0x27068c('0x3e')],_0x229bbd[_0x27068c('0x1b4e')](_0x27068c('0x79b'))?_0x136f7c[_0x27068c('0x2219')]=_0x227175[_0x27068c('0x2849')][_0x27068c('0x1d97')](_0x136f7c[_0x27068c('0xc49')],_0x517ed0)['$promise']:(_0x136f7c['query']['id']=_0x136f7c[_0x27068c('0x257b')]['id'],_0x136f7c[_0x27068c('0xc49')][_0x27068c('0x17c9')]='CannedAnswers',_0x136f7c['promise']=_0x227175['userProfile'][_0x27068c('0x135b')](_0x136f7c[_0x27068c('0xc49')],_0x517ed0)[_0x27068c('0x1964')]);}function _0x394526(_0x23b71f,_0x4f26fd){const _0x503863=_0x506aee;_0x3a7fd1[_0x503863('0x1cb7')]({'controller':_0x503863('0x258b'),'controllerAs':'vm','templateUrl':_0x1971ac,'parent':angular['element'](_0x3c55cb[_0x503863('0x1a5')]),'targetEvent':_0x23b71f,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x4f26fd,'cannedAnswers':_0x136f7c['cannedAnswers']['rows'],'license':_0x136f7c[_0x503863('0x1a29')],'setting':_0x136f7c['setting'],'crudPermissions':_0x136f7c[_0x503863('0x1dc1')]}});}function _0x3a4fe2(_0x543a5f){const _0x34439f=_0x506aee;_0x227175[_0x34439f('0x2849')][_0x34439f('0x15e8')]({'id':_0x543a5f['id']})[_0x34439f('0x1964')][_0x34439f('0x173b')](function(){const _0x13925d=_0x34439f;_0x3c8d8a()[_0x13925d('0x1a8b')](_0x136f7c[_0x13925d('0xed')][_0x13925d('0x6aa')],{'id':_0x543a5f['id']}),_0x136f7c[_0x13925d('0xed')][_0x13925d('0x1a2f')]-=0x1,!_0x136f7c[_0x13925d('0xed')][_0x13925d('0x6aa')][_0x13925d('0x543')]&&_0x136f7c[_0x13925d('0x834')](),_0x1ab9bc[_0x13925d('0xdfe')]({'title':_0x3c8d8a()[_0x13925d('0x10e')]('CannedAnswer')+_0x13925d('0x1c5e'),'msg':_0x543a5f[_0x13925d('0x10ad')]?_0x543a5f[_0x13925d('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x34439f('0x103c')](function(_0x181dbf){const _0x3c8d00=_0x34439f;if(_0x181dbf['data']&&_0x181dbf[_0x3c8d00('0x1e07')][_0x3c8d00('0x1d4a')]&&_0x181dbf[_0x3c8d00('0x1e07')][_0x3c8d00('0x1d4a')][_0x3c8d00('0x543')]){_0x136f7c[_0x3c8d00('0x1d4a')]=_0x181dbf[_0x3c8d00('0x1e07')]['errors']||[{'message':_0x181dbf['toString'](),'type':_0x3c8d00('0x1d45')}];for(let _0x154628=0x0;_0x154628<_0x181dbf['data'][_0x3c8d00('0x1d4a')][_0x3c8d00('0x543')];_0x154628++){_0x1ab9bc[_0x3c8d00('0x15aa')]({'title':_0x181dbf[_0x3c8d00('0x1e07')][_0x3c8d00('0x1d4a')][_0x154628]['type'],'msg':_0x181dbf[_0x3c8d00('0x1e07')][_0x3c8d00('0x1d4a')][_0x154628][_0x3c8d00('0x67f')]});}}else _0x1ab9bc[_0x3c8d00('0x15aa')]({'title':_0x181dbf[_0x3c8d00('0x276f')]?_0x3c8d00('0x137')+_0x181dbf[_0x3c8d00('0x276f')]+'\x20-\x20'+_0x181dbf['statusText']:'SYSTEM:DELETEcannedAnswer','msg':_0x181dbf[_0x3c8d00('0x1e07')]?JSON[_0x3c8d00('0x100b')](_0x181dbf[_0x3c8d00('0x1e07')][_0x3c8d00('0x67f')]):_0x181dbf[_0x3c8d00('0x67f')]||_0x181dbf[_0x3c8d00('0x1b75')]()});});}function _0x5cad88(){const _0x33fb96=_0x506aee,_0x3bcce0=angular[_0x33fb96('0x2e3')](_0x136f7c[_0x33fb96('0x140')]);return _0x136f7c[_0x33fb96('0x140')]=[],_0x3bcce0;}function _0x3bf82d(_0x5e658e){const _0x156ee4=_0x506aee,_0x5604fb=_0x3a7fd1[_0x156ee4('0x1d02')]()[_0x156ee4('0x20d6')](_0x156ee4('0x1cde'))[_0x156ee4('0xf8b')](_0x156ee4('0x15b9')+_0x136f7c[_0x156ee4('0x140')][_0x156ee4('0x543')]+_0x156ee4('0xcb4')+_0x156ee4('0xd23'))[_0x156ee4('0x217')]('delete\x20CannedAnswers')[_0x156ee4('0x21de')](_0x5e658e)['ok']('OK')[_0x156ee4('0x1e1f')](_0x156ee4('0x468'));_0x3a7fd1[_0x156ee4('0x1cb7')](_0x5604fb)['then'](function(){const _0x56d123=_0x156ee4;_0x136f7c[_0x56d123('0x140')]['forEach'](function(_0x24ee31){_0x3a4fe2(_0x24ee31);}),_0x136f7c[_0x56d123('0x140')]=[];});}function _0x378563(){const _0x346e8c=_0x506aee;_0x136f7c[_0x346e8c('0x140')]=[];}function _0x357715(){const _0x9e82b0=_0x506aee;_0x136f7c['selectedCannedAnswers']=_0x136f7c[_0x9e82b0('0xed')]['rows'];}}const _0x3a422f=_0x39452a;_0x5a07a9[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0xed'),_0x566993('0x2849'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x5a07a9(_0x209269,_0x1f5441,_0xd52560,_0xcf11fb,_0x2474f8,_0x123cbc,_0x64d7fe,_0x1af1d6,_0x3fa3de,_0x56d963,_0x1c5684,_0xc71cbd,_0x129ab1,_0x11098a){const _0x17c2cc=_0x566993,_0x5480a8=this;_0x5480a8[_0x17c2cc('0x155f')]=_0x1c5684[_0x17c2cc('0x14d4')](),_0x5480a8[_0x17c2cc('0x1d4a')]=[],_0x5480a8[_0x17c2cc('0x251')]=_0x129ab1,_0x5480a8[_0x17c2cc('0x1a29')]=_0xc71cbd,_0x5480a8[_0x17c2cc('0x1dc1')]=_0x11098a,_0x5480a8[_0x17c2cc('0xb0')]={},_0x5480a8['passwordPattern']=_0x5480a8[_0x17c2cc('0x251')]&&_0x5480a8[_0x17c2cc('0x251')][_0x17c2cc('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5480a8['title']=_0x17c2cc('0xe31'),_0x5480a8[_0x17c2cc('0x2849')]=angular[_0x17c2cc('0x2e3')](_0x3fa3de),_0x5480a8['cannedAnswers']=_0x1af1d6,_0x5480a8['newCannedAnswer']=![];!_0x5480a8[_0x17c2cc('0x2849')]&&(_0x5480a8['cannedAnswer']={},_0x5480a8['title']=_0x17c2cc('0x4f4'),_0x5480a8['newCannedAnswer']=!![]);_0x5480a8['addNewCannedAnswer']=_0x577fcf,_0x5480a8[_0x17c2cc('0x281d')]=_0xd2f48,_0x5480a8[_0x17c2cc('0x1583')]=_0x2aba8f,_0x5480a8[_0x17c2cc('0x11ae')]=_0x643398,_0x5480a8[_0x17c2cc('0x18e2')]=_0x16c146;function _0x577fcf(){const _0x1cb079=_0x17c2cc;_0x5480a8[_0x1cb079('0x1d4a')]=[],_0x56d963[_0x1cb079('0x2849')][_0x1cb079('0x1195')](_0x5480a8[_0x1cb079('0x2849')])[_0x1cb079('0x1964')][_0x1cb079('0x173b')](function(_0x4bfe56){const _0x1d4721=_0x1cb079;_0x5480a8[_0x1d4721('0xed')][_0x1d4721('0x1377')](_0x4bfe56[_0x1d4721('0xf1f')]()),_0x64d7fe[_0x1d4721('0xdfe')]({'title':_0x1d4721('0xec'),'msg':_0x5480a8[_0x1d4721('0x2849')][_0x1d4721('0x10ad')]?_0x5480a8[_0x1d4721('0x2849')][_0x1d4721('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x16c146(_0x4bfe56);})[_0x1cb079('0x103c')](function(_0xd3296c){const _0x3f6a5c=_0x1cb079;if(_0xd3296c[_0x3f6a5c('0x1e07')]&&_0xd3296c[_0x3f6a5c('0x1e07')][_0x3f6a5c('0x1d4a')]&&_0xd3296c[_0x3f6a5c('0x1e07')][_0x3f6a5c('0x1d4a')]['length']){_0x5480a8['errors']=_0xd3296c[_0x3f6a5c('0x1e07')][_0x3f6a5c('0x1d4a')]||[{'message':_0xd3296c[_0x3f6a5c('0x1b75')](),'type':'api.cannedAnswer.save'}];for(let _0x365c44=0x0;_0x365c44<_0xd3296c[_0x3f6a5c('0x1e07')][_0x3f6a5c('0x1d4a')]['length'];_0x365c44+=0x1){_0x64d7fe[_0x3f6a5c('0x15aa')]({'title':_0xd3296c[_0x3f6a5c('0x1e07')][_0x3f6a5c('0x1d4a')][_0x365c44]['type'],'msg':_0xd3296c[_0x3f6a5c('0x1e07')][_0x3f6a5c('0x1d4a')][_0x365c44]['message']});}}else _0x64d7fe[_0x3f6a5c('0x15aa')]({'title':_0xd3296c[_0x3f6a5c('0x276f')]?_0x3f6a5c('0x137')+_0xd3296c[_0x3f6a5c('0x276f')]+_0x3f6a5c('0x160c')+_0xd3296c[_0x3f6a5c('0x2696')]:_0x3f6a5c('0x1da7'),'msg':_0xd3296c['data']?JSON['stringify'](_0xd3296c[_0x3f6a5c('0x1e07')][_0x3f6a5c('0x67f')]):_0xd3296c[_0x3f6a5c('0x1b75')]()});});}function _0xd2f48(){const _0x149807=_0x17c2cc;_0x5480a8[_0x149807('0x1d4a')]=[],_0x56d963['cannedAnswer']['update']({'id':_0x5480a8[_0x149807('0x2849')]['id']},_0x5480a8[_0x149807('0x2849')])[_0x149807('0x1964')][_0x149807('0x173b')](function(_0x592697){const _0x429ee6=_0x149807,_0x488eb0=_0x3c8d8a()[_0x429ee6('0x18ab')](_0x5480a8['cannedAnswers'],{'id':_0x592697['id']});_0x488eb0&&_0x3c8d8a()[_0x429ee6('0x9ef')](_0x488eb0,_0x3c8d8a()[_0x429ee6('0x2114')](_0x592697[_0x429ee6('0xf1f')](),_0x3c8d8a()[_0x429ee6('0x1d3e')](_0x488eb0))),_0x64d7fe['success']({'title':_0x429ee6('0x26f9'),'msg':_0x5480a8[_0x429ee6('0x2849')][_0x429ee6('0x10ad')]?_0x5480a8[_0x429ee6('0x2849')]['name']+'\x20has\x20been\x20saved!':''}),_0x16c146(_0x592697);})[_0x149807('0x103c')](function(_0x5df4c9){const _0x4c7c83=_0x149807;if(_0x5df4c9['data']&&_0x5df4c9[_0x4c7c83('0x1e07')][_0x4c7c83('0x1d4a')]&&_0x5df4c9[_0x4c7c83('0x1e07')][_0x4c7c83('0x1d4a')][_0x4c7c83('0x543')]){_0x5480a8[_0x4c7c83('0x1d4a')]=_0x5df4c9[_0x4c7c83('0x1e07')]['errors']||[{'message':_0x5df4c9[_0x4c7c83('0x1b75')](),'type':_0x4c7c83('0x2786')}];for(let _0x212044=0x0;_0x212044<_0x5df4c9['data']['errors'][_0x4c7c83('0x543')];_0x212044++){_0x64d7fe[_0x4c7c83('0x15aa')]({'title':_0x5df4c9[_0x4c7c83('0x1e07')]['errors'][_0x212044][_0x4c7c83('0x1810')],'msg':_0x5df4c9[_0x4c7c83('0x1e07')]['errors'][_0x212044][_0x4c7c83('0x67f')]});}}else _0x64d7fe[_0x4c7c83('0x15aa')]({'title':_0x5df4c9[_0x4c7c83('0x276f')]?_0x4c7c83('0x137')+_0x5df4c9[_0x4c7c83('0x276f')]+_0x4c7c83('0x160c')+_0x5df4c9[_0x4c7c83('0x2696')]:_0x4c7c83('0x2786'),'msg':_0x5df4c9[_0x4c7c83('0x1e07')]?JSON[_0x4c7c83('0x100b')](_0x5df4c9[_0x4c7c83('0x1e07')]['message']):_0x5df4c9[_0x4c7c83('0x1b75')]()});});}function _0x2aba8f(_0x158c6b){const _0x4a709d=_0x17c2cc;_0x5480a8[_0x4a709d('0x1d4a')]=[];const _0x3899e2=_0xcf11fb[_0x4a709d('0x1d02')]()[_0x4a709d('0x20d6')]('Are\x20you\x20sure?')[_0x4a709d('0x732')]('The\x20cannedAnswer\x20will\x20be\x20deleted.')[_0x4a709d('0x217')](_0x4a709d('0xef0'))['ok']('Delete')[_0x4a709d('0x1e1f')](_0x4a709d('0x1d4e'))['targetEvent'](_0x158c6b);_0xcf11fb[_0x4a709d('0x1cb7')](_0x3899e2)[_0x4a709d('0x173b')](function(){const _0x3407fc=_0x4a709d;_0x56d963[_0x3407fc('0x2849')][_0x3407fc('0x15e8')]({'id':_0x5480a8[_0x3407fc('0x2849')]['id']})[_0x3407fc('0x1964')][_0x3407fc('0x173b')](function(){const _0x2ca39f=_0x3407fc;_0x3c8d8a()[_0x2ca39f('0x1a8b')](_0x5480a8[_0x2ca39f('0xed')],{'id':_0x5480a8[_0x2ca39f('0x2849')]['id']}),_0x64d7fe['success']({'title':'CannedAnswer\x20properly\x20deleted!','msg':(_0x5480a8[_0x2ca39f('0x2849')][_0x2ca39f('0x10ad')]||_0x2ca39f('0x2849'))+'\x20has\x20been\x20deleted!'}),_0x16c146(_0x5480a8['cannedAnswer']);})[_0x3407fc('0x103c')](function(_0x344af1){const _0x28b646=_0x3407fc;if(_0x344af1[_0x28b646('0x1e07')]&&_0x344af1[_0x28b646('0x1e07')][_0x28b646('0x1d4a')]&&_0x344af1[_0x28b646('0x1e07')][_0x28b646('0x1d4a')]['length']){_0x5480a8[_0x28b646('0x1d4a')]=_0x344af1[_0x28b646('0x1e07')][_0x28b646('0x1d4a')]||[{'message':_0x344af1[_0x28b646('0x1b75')](),'type':_0x28b646('0x1684')}];for(let _0x35783c=0x0;_0x35783c<_0x344af1[_0x28b646('0x1e07')][_0x28b646('0x1d4a')]['length'];_0x35783c++){_0x64d7fe[_0x28b646('0x15aa')]({'title':_0x344af1[_0x28b646('0x1e07')][_0x28b646('0x1d4a')][_0x35783c][_0x28b646('0x1810')],'msg':_0x344af1[_0x28b646('0x1e07')][_0x28b646('0x1d4a')][_0x35783c][_0x28b646('0x67f')]});}}else _0x64d7fe['error']({'title':_0x344af1[_0x28b646('0x276f')]?_0x28b646('0x137')+_0x344af1['status']+'\x20-\x20'+_0x344af1[_0x28b646('0x2696')]:_0x28b646('0x1684'),'msg':_0x344af1[_0x28b646('0x1e07')]?JSON[_0x28b646('0x100b')](_0x344af1['data'][_0x28b646('0x67f')]):_0x344af1[_0x28b646('0x67f')]||_0x344af1[_0x28b646('0x1b75')]()});});},function(){});}function _0x643398(_0x4beeb3){return _0x4beeb3===null?undefined:new Date(_0x4beeb3);}function _0x16c146(_0x3f1d9b){_0xcf11fb['hide'](_0x3f1d9b);}}const _0x1cafea=_0x5a07a9;_0x5b72f9[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x746'),_0x566993('0x46c'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x5b72f9(_0xeca41e,_0x1f357b,_0x5c581e,_0x1e2bac,_0x284055,_0x58b824,_0x3c4ae1,_0x4b4999,_0x3d9613,_0x5a7230,_0x418fc4,_0x3bbf9c,_0x78112a,_0x3b3a63){const _0x463d05=_0x566993,_0x4aef17=this;_0x4aef17['currentUser']=_0x418fc4[_0x463d05('0x14d4')](),_0x4aef17['errors']=[],_0x4aef17[_0x463d05('0x251')]=_0x78112a,_0x4aef17[_0x463d05('0x1a29')]=_0x3bbf9c,_0x4aef17[_0x463d05('0x1dc1')]=_0x3b3a63,_0x4aef17[_0x463d05('0xb0')]={},_0x4aef17[_0x463d05('0x644')]=_0x4aef17[_0x463d05('0x251')]&&_0x4aef17['setting'][_0x463d05('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4aef17[_0x463d05('0x20d6')]='TOOLS.EDIT_CUSTOMDASHBOARD',_0x4aef17[_0x463d05('0x46c')]=angular[_0x463d05('0x2e3')](_0x3d9613),_0x4aef17['customDashboards']=_0x4b4999,_0x4aef17['newCustomDashboard']=![];!_0x4aef17['customDashboard']&&(_0x4aef17[_0x463d05('0x46c')]={},_0x4aef17[_0x463d05('0x20d6')]='TOOLS.NEW_CUSTOMDASHBOARD',_0x4aef17[_0x463d05('0x1f40')]=!![]);_0x4aef17['addNewCustomDashboard']=_0x2ed112,_0x4aef17[_0x463d05('0x1440')]=_0x24ab9a,_0x4aef17['deleteCustomDashboard']=_0x168927,_0x4aef17[_0x463d05('0x11ae')]=_0x49a335,_0x4aef17[_0x463d05('0x18e2')]=_0xc38cbf;function _0x2ed112(){const _0x2dbf54=_0x463d05;_0x4aef17[_0x2dbf54('0x1d4a')]=[],_0x5a7230['dashboard'][_0x2dbf54('0x1195')](_0x4aef17['customDashboard'])[_0x2dbf54('0x1964')][_0x2dbf54('0x173b')](function(_0x2f8655){const _0x5e5921=_0x2dbf54;_0x4aef17[_0x5e5921('0x746')][_0x5e5921('0x1377')](_0x2f8655[_0x5e5921('0xf1f')]()),_0x3c4ae1[_0x5e5921('0xdfe')]({'title':_0x5e5921('0xd12'),'msg':_0x4aef17['customDashboard'][_0x5e5921('0x10ad')]?_0x4aef17['customDashboard'][_0x5e5921('0x10ad')]+_0x5e5921('0x209a'):''}),_0xc38cbf(_0x2f8655);})['catch'](function(_0x4523a7){const _0x3ab8e5=_0x2dbf54;if(_0x4523a7[_0x3ab8e5('0x1e07')]&&_0x4523a7[_0x3ab8e5('0x1e07')][_0x3ab8e5('0x1d4a')]&&_0x4523a7[_0x3ab8e5('0x1e07')][_0x3ab8e5('0x1d4a')][_0x3ab8e5('0x543')]){_0x4aef17[_0x3ab8e5('0x1d4a')]=_0x4523a7['data'][_0x3ab8e5('0x1d4a')]||[{'message':_0x4523a7[_0x3ab8e5('0x1b75')](),'type':_0x3ab8e5('0x449')}];for(let _0x2c83e4=0x0;_0x2c83e4<_0x4523a7[_0x3ab8e5('0x1e07')][_0x3ab8e5('0x1d4a')][_0x3ab8e5('0x543')];_0x2c83e4+=0x1){_0x3c4ae1[_0x3ab8e5('0x15aa')]({'title':_0x4523a7[_0x3ab8e5('0x1e07')]['errors'][_0x2c83e4][_0x3ab8e5('0x1810')],'msg':_0x4523a7['data']['errors'][_0x2c83e4][_0x3ab8e5('0x67f')]});}}else _0x3c4ae1[_0x3ab8e5('0x15aa')]({'title':_0x4523a7['status']?_0x3ab8e5('0x137')+_0x4523a7[_0x3ab8e5('0x276f')]+_0x3ab8e5('0x160c')+_0x4523a7['statusText']:_0x3ab8e5('0x449'),'msg':_0x4523a7['data']?JSON[_0x3ab8e5('0x100b')](_0x4523a7['data'][_0x3ab8e5('0x67f')]):_0x4523a7[_0x3ab8e5('0x1b75')]()});});}function _0x24ab9a(){const _0x5ae43f=_0x463d05;_0x4aef17[_0x5ae43f('0x1d4a')]=[],_0x5a7230[_0x5ae43f('0x10ea')][_0x5ae43f('0x1842')]({'id':_0x4aef17['customDashboard']['id']},_0x4aef17['customDashboard'])[_0x5ae43f('0x1964')]['then'](function(_0x503bad){const _0x5bee3c=_0x5ae43f,_0x1715a9=_0x3c8d8a()[_0x5bee3c('0x18ab')](_0x4aef17[_0x5bee3c('0x746')],{'id':_0x503bad['id']});_0x1715a9&&_0x3c8d8a()[_0x5bee3c('0x9ef')](_0x1715a9,_0x3c8d8a()[_0x5bee3c('0x2114')](_0x503bad[_0x5bee3c('0xf1f')](),_0x3c8d8a()[_0x5bee3c('0x1d3e')](_0x1715a9))),_0x3c4ae1[_0x5bee3c('0xdfe')]({'title':_0x5bee3c('0x2569'),'msg':_0x4aef17[_0x5bee3c('0x46c')][_0x5bee3c('0x10ad')]?_0x4aef17[_0x5bee3c('0x46c')]['name']+_0x5bee3c('0x2788'):''}),_0xc38cbf(_0x503bad);})[_0x5ae43f('0x103c')](function(_0x3d98d8){const _0x372974=_0x5ae43f;if(_0x3d98d8[_0x372974('0x1e07')]&&_0x3d98d8['data'][_0x372974('0x1d4a')]&&_0x3d98d8[_0x372974('0x1e07')][_0x372974('0x1d4a')][_0x372974('0x543')]){_0x4aef17[_0x372974('0x1d4a')]=_0x3d98d8['data'][_0x372974('0x1d4a')]||[{'message':_0x3d98d8[_0x372974('0x1b75')](),'type':_0x372974('0x14a5')}];for(let _0x38ddd9=0x0;_0x38ddd9<_0x3d98d8[_0x372974('0x1e07')]['errors'][_0x372974('0x543')];_0x38ddd9++){_0x3c4ae1[_0x372974('0x15aa')]({'title':_0x3d98d8['data'][_0x372974('0x1d4a')][_0x38ddd9][_0x372974('0x1810')],'msg':_0x3d98d8[_0x372974('0x1e07')]['errors'][_0x38ddd9][_0x372974('0x67f')]});}}else _0x3c4ae1[_0x372974('0x15aa')]({'title':_0x3d98d8['status']?_0x372974('0x137')+_0x3d98d8['status']+_0x372974('0x160c')+_0x3d98d8['statusText']:_0x372974('0x14a5'),'msg':_0x3d98d8[_0x372974('0x1e07')]?JSON[_0x372974('0x100b')](_0x3d98d8['data'][_0x372974('0x67f')]):_0x3d98d8[_0x372974('0x1b75')]()});});}function _0x168927(_0x19b5df){const _0x4e0f2e=_0x463d05;_0x4aef17[_0x4e0f2e('0x1d4a')]=[];const _0x2672b0=_0x1e2bac['confirm']()['title'](_0x4e0f2e('0x8ef'))[_0x4e0f2e('0x732')](_0x4e0f2e('0xafd'))['ariaLabel'](_0x4e0f2e('0x335'))['ok'](_0x4e0f2e('0x2373'))[_0x4e0f2e('0x1e1f')](_0x4e0f2e('0x1d4e'))[_0x4e0f2e('0x21de')](_0x19b5df);_0x1e2bac[_0x4e0f2e('0x1cb7')](_0x2672b0)['then'](function(){const _0x101dda=_0x4e0f2e;_0x5a7230['dashboard']['delete']({'id':_0x4aef17[_0x101dda('0x46c')]['id']})['$promise'][_0x101dda('0x173b')](function(){const _0x53002b=_0x101dda;_0x3c8d8a()['remove'](_0x4aef17[_0x53002b('0x746')],{'id':_0x4aef17[_0x53002b('0x46c')]['id']}),_0x3c4ae1[_0x53002b('0xdfe')]({'title':_0x53002b('0x17e3'),'msg':(_0x4aef17[_0x53002b('0x46c')][_0x53002b('0x10ad')]||_0x53002b('0x46c'))+'\x20has\x20been\x20deleted!'}),_0xc38cbf(_0x4aef17[_0x53002b('0x46c')]);})[_0x101dda('0x103c')](function(_0x449c7a){const _0x5bdf32=_0x101dda;if(_0x449c7a['data']&&_0x449c7a['data']['errors']&&_0x449c7a[_0x5bdf32('0x1e07')][_0x5bdf32('0x1d4a')][_0x5bdf32('0x543')]){_0x4aef17['errors']=_0x449c7a['data'][_0x5bdf32('0x1d4a')]||[{'message':_0x449c7a[_0x5bdf32('0x1b75')](),'type':'api.dashboard.delete'}];for(let _0x27415f=0x0;_0x27415f<_0x449c7a[_0x5bdf32('0x1e07')]['errors'][_0x5bdf32('0x543')];_0x27415f++){_0x3c4ae1[_0x5bdf32('0x15aa')]({'title':_0x449c7a[_0x5bdf32('0x1e07')][_0x5bdf32('0x1d4a')][_0x27415f][_0x5bdf32('0x1810')],'msg':_0x449c7a[_0x5bdf32('0x1e07')][_0x5bdf32('0x1d4a')][_0x27415f][_0x5bdf32('0x67f')]});}}else _0x3c4ae1['error']({'title':_0x449c7a['status']?'API:'+_0x449c7a[_0x5bdf32('0x276f')]+_0x5bdf32('0x160c')+_0x449c7a[_0x5bdf32('0x2696')]:'api.dashboard.delete','msg':_0x449c7a[_0x5bdf32('0x1e07')]?JSON[_0x5bdf32('0x100b')](_0x449c7a[_0x5bdf32('0x1e07')]['message']):_0x449c7a[_0x5bdf32('0x67f')]||_0x449c7a['toString']()});});},function(){});}function _0x49a335(_0x46ab69){return _0x46ab69===null?undefined:new Date(_0x46ab69);}function _0xc38cbf(_0x4840cb){const _0x1c7304=_0x463d05;_0x1e2bac[_0x1c7304('0x1cf4')](_0x4840cb);}}const _0x3485ab=_0x5b72f9,_0x2f0995=_0x21a6a1['p']+_0x566993('0x1853');_0x4b398c[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state',_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x746'),_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x4b398c(_0x4071f4,_0x4adf7f,_0x3cbe97,_0x2212e8,_0x582b19,_0x7516be,_0x2f5b02,_0x42770d,_0x2ec630,_0x9f4f9f,_0x554926,_0x12b853,_0x1c78b1,_0x38ca24,_0x2e6f45,_0x575076,_0x4b2451){const _0x1b9dc3=_0x566993,_0x5115c6=this;_0x5115c6[_0x1b9dc3('0x1a29')]=_0x575076,_0x5115c6[_0x1b9dc3('0x251')]=_0x4b2451,_0x5115c6[_0x1b9dc3('0x155f')]=_0x2e6f45['getCurrentUser'](),_0x5115c6[_0x1b9dc3('0x746')]=_0x2ec630||{'count':0x0,'rows':[]},_0x5115c6[_0x1b9dc3('0x257b')]=_0x9f4f9f,_0x5115c6['userProfileSection']=_0x554926&&_0x554926['count']==0x1?_0x554926[_0x1b9dc3('0x6aa')][0x0]:null,_0x5115c6[_0x1b9dc3('0x1dc1')]=_0x2e6f45[_0x1b9dc3('0xde6')](_0x5115c6[_0x1b9dc3('0x170e')]?_0x5115c6[_0x1b9dc3('0x170e')][_0x1b9dc3('0x1dc1')]:null),_0x5115c6[_0x1b9dc3('0xdf9')]=_0x1b9dc3('0x746'),_0x5115c6[_0x1b9dc3('0x14d6')]='',_0x5115c6[_0x1b9dc3('0x2303')]=null,_0x5115c6[_0x1b9dc3('0x56c')]=[],_0x5115c6[_0x1b9dc3('0xc49')]={'fields':_0x1b9dc3('0x2275'),'sort':_0x1b9dc3('0x1769'),'limit':0xa,'page':0x1},_0x5115c6[_0x1b9dc3('0x222e')]=_0x3ba488,_0x5115c6['gotodashboardgoto']=_0x2c1a22,_0x5115c6['deleteconfirm']=_0xe4cd4f,_0x5115c6[_0x1b9dc3('0xdfe')]=_0x342fa1,_0x5115c6[_0x1b9dc3('0xa14')]=_0x1b170e,_0x5115c6[_0x1b9dc3('0x11bd')]=_0x316fee,_0x5115c6[_0x1b9dc3('0xe6b')]=_0x2a99a0,_0x5115c6[_0x1b9dc3('0x4b5')]=_0x3daa01,_0x5115c6[_0x1b9dc3('0xc0b')]=_0xff79eb,_0x5115c6[_0x1b9dc3('0x2809')]=_0xb10d1d,_0x5115c6[_0x1b9dc3('0xdc3')]=_0x26db8a;function _0x3ba488(_0x29a266){const _0x1e9c16=_0x1b9dc3;_0x3cbe97['go'](_0x1e9c16('0x2204'),{'id':_0x29a266['id'],'customDashboard':_0x29a266,'crudPermissions':_0x5115c6[_0x1e9c16('0x1dc1')]});}function _0x2c1a22(_0x2584b5){const _0x51e09c=_0x1b9dc3;_0x3cbe97['go'](_0x51e09c('0x2351'),{'id':_0x2584b5['id']});}function _0xe4cd4f(_0x778abe,_0xf962ef){const _0xe2af60=_0x1b9dc3,_0x2f597e=_0x582b19[_0xe2af60('0x1d02')]()[_0xe2af60('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0xe2af60('0x10e')](_0xe2af60('0x46c'))+'?')['htmlContent'](_0xe2af60('0x15b9')+(_0x778abe[_0xe2af60('0x10ad')]||_0xe2af60('0x46c'))+''+_0xe2af60('0xd23'))[_0xe2af60('0x217')]('delete\x20customDashboard')[_0xe2af60('0x21de')](_0xf962ef)['ok']('OK')['cancel']('CANCEL');_0x582b19['show'](_0x2f597e)[_0xe2af60('0x173b')](function(){_0x2a99a0(_0x778abe);},function(){const _0x18bfee=_0xe2af60;console[_0x18bfee('0xe37')](_0x18bfee('0x468'));});}let _0x576839=!![],_0x31028d=0x1;_0x4071f4[_0x1b9dc3('0x1bdb')](_0x1b9dc3('0x157b'),function(_0x115901,_0x4e30ec){const _0x55b521=_0x1b9dc3;_0x576839?_0x2f5b02(function(){_0x576839=![];}):(!_0x4e30ec&&(_0x31028d=_0x5115c6['query'][_0x55b521('0x182e')]),_0x115901!==_0x4e30ec&&(_0x5115c6[_0x55b521('0xc49')][_0x55b521('0x182e')]=0x1),!_0x115901&&(_0x5115c6[_0x55b521('0xc49')][_0x55b521('0x182e')]=_0x31028d),_0x5115c6[_0x55b521('0xa14')]());});function _0x342fa1(_0x1e8672){const _0x179640=_0x1b9dc3;_0x5115c6[_0x179640('0x746')]=_0x1e8672||{'count':0x0,'rows':[]};}function _0x1b170e(){const _0x5ba5dd=_0x1b9dc3;_0x5115c6['query'][_0x5ba5dd('0x17f0')]=(_0x5115c6[_0x5ba5dd('0xc49')][_0x5ba5dd('0x182e')]-0x1)*_0x5115c6[_0x5ba5dd('0xc49')][_0x5ba5dd('0x3e')],_0x2e6f45['hasRole'](_0x5ba5dd('0x79b'))?_0x5115c6[_0x5ba5dd('0x2219')]=_0x12b853[_0x5ba5dd('0x10ea')][_0x5ba5dd('0x1d97')](_0x5115c6[_0x5ba5dd('0xc49')],_0x342fa1)['$promise']:(_0x5115c6['query']['id']=_0x5115c6[_0x5ba5dd('0x257b')]['id'],_0x5115c6[_0x5ba5dd('0xc49')][_0x5ba5dd('0x17c9')]=_0x5ba5dd('0x3a8'),_0x5115c6[_0x5ba5dd('0x2219')]=_0x12b853[_0x5ba5dd('0x257b')][_0x5ba5dd('0x135b')](_0x5115c6['query'],_0x342fa1)[_0x5ba5dd('0x1964')]);}function _0x316fee(_0xca911b,_0x57bb35){const _0x1df708=_0x1b9dc3;_0x582b19[_0x1df708('0x1cb7')]({'controller':_0x1df708('0x374'),'controllerAs':'vm','templateUrl':_0x2f0995,'parent':angular[_0x1df708('0xb6d')](_0x7516be[_0x1df708('0x1a5')]),'targetEvent':_0xca911b,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x57bb35,'customDashboards':_0x5115c6['customDashboards'][_0x1df708('0x6aa')],'license':_0x5115c6[_0x1df708('0x1a29')],'setting':_0x5115c6[_0x1df708('0x251')],'crudPermissions':_0x5115c6[_0x1df708('0x1dc1')]}});}function _0x2a99a0(_0x32bd1e){const _0x1548c6=_0x1b9dc3;_0x12b853[_0x1548c6('0x10ea')][_0x1548c6('0x15e8')]({'id':_0x32bd1e['id']})[_0x1548c6('0x1964')][_0x1548c6('0x173b')](function(){const _0x579922=_0x1548c6;_0x3c8d8a()[_0x579922('0x1a8b')](_0x5115c6[_0x579922('0x746')][_0x579922('0x6aa')],{'id':_0x32bd1e['id']}),_0x5115c6[_0x579922('0x746')][_0x579922('0x1a2f')]-=0x1,!_0x5115c6[_0x579922('0x746')][_0x579922('0x6aa')]['length']&&_0x5115c6[_0x579922('0xa14')](),_0x38ca24['success']({'title':_0x3c8d8a()[_0x579922('0x10e')](_0x579922('0x97f'))+_0x579922('0x1c5e'),'msg':_0x32bd1e[_0x579922('0x10ad')]?_0x32bd1e[_0x579922('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x1548c6('0x103c')](function(_0xea1883){const _0x36ea8d=_0x1548c6;if(_0xea1883['data']&&_0xea1883[_0x36ea8d('0x1e07')]['errors']&&_0xea1883['data']['errors']['length']){_0x5115c6[_0x36ea8d('0x1d4a')]=_0xea1883[_0x36ea8d('0x1e07')][_0x36ea8d('0x1d4a')]||[{'message':_0xea1883[_0x36ea8d('0x1b75')](),'type':'SYSTEM:DELETEdashboard'}];for(let _0x68e341=0x0;_0x68e341<_0xea1883['data']['errors'][_0x36ea8d('0x543')];_0x68e341++){_0x38ca24[_0x36ea8d('0x15aa')]({'title':_0xea1883[_0x36ea8d('0x1e07')][_0x36ea8d('0x1d4a')][_0x68e341][_0x36ea8d('0x1810')],'msg':_0xea1883[_0x36ea8d('0x1e07')][_0x36ea8d('0x1d4a')][_0x68e341]['message']});}}else _0x38ca24[_0x36ea8d('0x15aa')]({'title':_0xea1883[_0x36ea8d('0x276f')]?'API:'+_0xea1883[_0x36ea8d('0x276f')]+_0x36ea8d('0x160c')+_0xea1883[_0x36ea8d('0x2696')]:'SYSTEM:DELETEdashboard','msg':_0xea1883[_0x36ea8d('0x1e07')]?JSON['stringify'](_0xea1883['data'][_0x36ea8d('0x67f')]):_0xea1883[_0x36ea8d('0x67f')]||_0xea1883[_0x36ea8d('0x1b75')]()});});}function _0x3daa01(){const _0x322a26=_0x1b9dc3,_0x28c5f7=angular[_0x322a26('0x2e3')](_0x5115c6['selectedCustomDashboards']);return _0x5115c6[_0x322a26('0x56c')]=[],_0x28c5f7;}function _0xff79eb(_0x8605fd){const _0x42628a=_0x1b9dc3,_0x5bad67=_0x582b19[_0x42628a('0x1d02')]()['title'](_0x42628a('0x7e5'))[_0x42628a('0xf8b')](_0x42628a('0x15b9')+_0x5115c6[_0x42628a('0x56c')]['length']+'\x20selected'+_0x42628a('0xd23'))[_0x42628a('0x217')]('delete\x20CustomDashboards')[_0x42628a('0x21de')](_0x8605fd)['ok']('OK')['cancel'](_0x42628a('0x468'));_0x582b19[_0x42628a('0x1cb7')](_0x5bad67)[_0x42628a('0x173b')](function(){const _0x1a1c50=_0x42628a;_0x5115c6[_0x1a1c50('0x56c')]['forEach'](function(_0x278b18){_0x2a99a0(_0x278b18);}),_0x5115c6['selectedCustomDashboards']=[];});}function _0xb10d1d(){const _0x3967a3=_0x1b9dc3;_0x5115c6[_0x3967a3('0x56c')]=[];}function _0x26db8a(){const _0x361bf0=_0x1b9dc3;_0x5115c6[_0x361bf0('0x56c')]=_0x5115c6[_0x361bf0('0x746')][_0x361bf0('0x6aa')];}}const _0x2fee71=_0x4b398c;_0x8030a2['$inject']=[_0x566993('0x1fe5'),'$state','toasty',_0x566993('0xbd4'),_0x566993('0x46c'),'customDashboards',_0x566993('0x638')];function _0x8030a2(_0x15126e,_0x4a1be1,_0x18bcba,_0x24ddb2,_0x2dfa1b,_0x2ba790,_0x39e74e){const _0x23021e=_0x566993,_0x5d31bc=this;_0x5d31bc['newCustomDashboard']=!![],_0x5d31bc[_0x23021e('0x46c')]=angular[_0x23021e('0x2e3')](_0x2dfa1b),_0x5d31bc[_0x23021e('0x746')]=_0x2ba790,_0x5d31bc['title']=_0x39e74e[_0x23021e('0x1467')](_0x23021e('0x1c77'));_0x2dfa1b&&_0x2dfa1b[_0x23021e('0x10ad')]&&(_0x5d31bc[_0x23021e('0x20d6')]+=':\x20'+_0x2dfa1b[_0x23021e('0x10ad')]);_0x5d31bc[_0x23021e('0xd')]=_0x1b818e,_0x5d31bc[_0x23021e('0x18e2')]=_0x406205;function _0x1b818e(){const _0x3e5603=_0x23021e;return _0x24ddb2[_0x3e5603('0x10ea')][_0x3e5603('0x979')]({'id':_0x2dfa1b['id'],'includeAll':!![]},_0x5d31bc[_0x3e5603('0x46c')])[_0x3e5603('0x1964')][_0x3e5603('0x173b')](function(_0x49cac7){const _0x439006=_0x3e5603;_0x5d31bc[_0x439006('0x746')][_0x439006('0x1377')](_0x49cac7[_0x439006('0xf1f')]()),_0x18bcba[_0x439006('0xdfe')]({'title':_0x439006('0xc08'),'msg':_0x5d31bc[_0x439006('0x46c')][_0x439006('0x10ad')]?_0x5d31bc['customDashboard'][_0x439006('0x10ad')]+'\x20has\x20been\x20cloned!':''}),_0x4a1be1['go'](_0x439006('0x2204'),{'id':_0x49cac7['id']}),_0x406205(_0x49cac7);})[_0x3e5603('0x103c')](function(_0x2b23a7){const _0x4a0700=_0x3e5603;if(_0x2b23a7[_0x4a0700('0x1e07')]&&_0x2b23a7[_0x4a0700('0x1e07')][_0x4a0700('0x1d4a')]&&_0x2b23a7['data']['errors']['length']){_0x5d31bc['errors']=_0x2b23a7[_0x4a0700('0x1e07')][_0x4a0700('0x1d4a')]||[{'message':_0x2b23a7['toString'](),'type':_0x4a0700('0x555')}];for(let _0x1471fa=0x0;_0x1471fa<_0x2b23a7['data'][_0x4a0700('0x1d4a')][_0x4a0700('0x543')];_0x1471fa+=0x1){_0x18bcba['error']({'title':_0x2b23a7['data'][_0x4a0700('0x1d4a')][_0x1471fa][_0x4a0700('0x1810')],'msg':_0x2b23a7['data']['errors'][_0x1471fa][_0x4a0700('0x67f')]});}}else _0x18bcba[_0x4a0700('0x15aa')]({'title':_0x2b23a7[_0x4a0700('0x276f')]?_0x4a0700('0x137')+_0x2b23a7[_0x4a0700('0x276f')]+_0x4a0700('0x160c')+_0x2b23a7[_0x4a0700('0x2696')]:_0x4a0700('0x555'),'msg':_0x2b23a7['data']?JSON[_0x4a0700('0x100b')](_0x2b23a7[_0x4a0700('0x1e07')][_0x4a0700('0x67f')]):_0x2b23a7[_0x4a0700('0x1b75')]()});});}function _0x406205(_0x309d85){_0x15126e['hide'](_0x309d85);}}const _0x44affd=_0x8030a2,_0x58fc1f=_0x21a6a1['p']+_0x566993('0x2582');_0x1102df[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0xbd4')];function _0x1102df(_0x42c75d,_0x373466,_0x5aa457,_0xfd2828,_0x18c34b){const _0x268ae8=_0x566993,_0x407ccb=this;_0x407ccb['customDashboard']={},_0x407ccb[_0x268ae8('0x19f0')]=_0x18c34b[_0x268ae8('0x48c')]['getVoiceQueues']({'fields':_0x268ae8('0xd52')}),_0x407ccb[_0x268ae8('0xb9c')]=_0x418f8f,_0x407ccb['createOrEditWidget']=_0x524928,_0x407ccb['deleteWidget']=_0x22617d;function _0x418f8f(_0x248d23,_0x29db06){const _0x9f46dd=_0x268ae8;return _0x407ccb['crudPermissions']=typeof _0x29db06!==_0x9f46dd('0x6e5')?_0x29db06:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x407ccb[_0x9f46dd('0x46c')]=_0x248d23,_0x407ccb['customDashboard'][_0x9f46dd('0xc8e')]={'enabled':!![],'handle':_0x9f46dd('0x77e'),'stop':_0x3c73aa},_0x407ccb[_0x9f46dd('0x46c')][_0x9f46dd('0xe77')]={'enabled':!![],'handle':_0x9f46dd('0x24c6'),'stop':_0x3c73aa},_0x407ccb[_0x9f46dd('0x46c')]['widgets']=[],_0x18c34b[_0x9f46dd('0x10ea')]['getItems']({'id':_0x248d23['id']})[_0x9f46dd('0x1964')][_0x9f46dd('0x173b')](function(_0x4631b1){const _0x24b51d=_0x9f46dd;if(_0x4631b1&&_0x4631b1['count']&&_0x4631b1['rows'])for(let _0x45b4ce=0x0;_0x45b4ce<_0x4631b1[_0x24b51d('0x6aa')][_0x24b51d('0x543')];_0x45b4ce+=0x1){_0x4631b1[_0x24b51d('0x6aa')][_0x45b4ce][_0x24b51d('0x19f0')]=_0x407ccb[_0x24b51d('0x19f0')],_0x4631b1[_0x24b51d('0x6aa')][_0x45b4ce][_0x24b51d('0x1683')]=_0x3c8d8a()[_0x24b51d('0x8a2')](_0x407ccb[_0x24b51d('0x19f0')]['rows'],'id'),_0x4631b1[_0x24b51d('0x6aa')][_0x45b4ce]['templateUrl']=_0x24b51d('0x2214')+_0x4631b1[_0x24b51d('0x6aa')][_0x45b4ce]['type']+_0x24b51d('0x206e')+_0x4631b1[_0x24b51d('0x6aa')][_0x45b4ce][_0x24b51d('0x1810')]+_0x24b51d('0x21d8'),_0x407ccb[_0x24b51d('0x46c')]['widgets'][_0x24b51d('0x18bb')](_0x4631b1[_0x24b51d('0x6aa')][_0x45b4ce]);}})[_0x9f46dd('0x103c')](function(_0x4a8cd7){const _0x20e54e=_0x9f46dd;console[_0x20e54e('0x15aa')](_0x4a8cd7);});}function _0x524928(_0x541a47){const _0x5a0a48=_0x268ae8;if(_0x541a47&&_0x541a47[_0x5a0a48('0x24e2')])for(let _0x51807a=0x0;_0x51807a<_0x541a47[_0x5a0a48('0x24e2')]['length'];_0x51807a+=0x1){_0x541a47[_0x5a0a48('0x24e2')][_0x51807a][_0x5a0a48('0x10ad')]==='attrReport'&&(_0x541a47[_0x5a0a48('0x50a')]=_0x541a47[_0x5a0a48('0x24e2')][_0x51807a][_0x5a0a48('0x1810')]),_0x541a47[_0x541a47['attrs'][_0x51807a][_0x5a0a48('0x10ad')]]=_0x541a47[_0x5a0a48('0x24e2')][_0x51807a][_0x5a0a48('0xa7b')];}_0x42c75d[_0x5a0a48('0x1cb7')]({'controller':_0x5a0a48('0x1dc0'),'controllerAs':'vm','templateUrl':_0x58fc1f,'parent':angular['element'](_0x373466[_0x5a0a48('0x1a5')]),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x541a47,'dashboard':_0x407ccb[_0x5a0a48('0x46c')][_0x5a0a48('0x190a')],'license':null,'setting':null,'crudPermissions':_0x407ccb[_0x5a0a48('0x1dc1')]}})[_0x5a0a48('0x173b')](function(_0x517957){const _0xfd07b5=_0x5a0a48;if(_0x517957)for(let _0x229459=0x0;_0x229459<_0x407ccb[_0xfd07b5('0x46c')][_0xfd07b5('0x190a')][_0xfd07b5('0x543')];_0x229459+=0x1){_0x407ccb[_0xfd07b5('0x46c')][_0xfd07b5('0x190a')][_0x229459]['id']===_0x517957['id']&&(_0x407ccb[_0xfd07b5('0x46c')][_0xfd07b5('0x190a')][_0x229459]['attrs']=_0x517957[_0xfd07b5('0x24e2')],_0x407ccb[_0xfd07b5('0x46c')][_0xfd07b5('0x190a')][_0x229459][_0xfd07b5('0x19f0')]=_0x407ccb['voiceQueues'],_0x407ccb[_0xfd07b5('0x46c')][_0xfd07b5('0x190a')][_0x229459]['voiceQueuesSelected']=_0x3c8d8a()[_0xfd07b5('0x8a2')](_0x407ccb[_0xfd07b5('0x19f0')][_0xfd07b5('0x6aa')],'id'),_0x407ccb[_0xfd07b5('0x46c')]['widgets'][_0x229459][_0xfd07b5('0x23d2')]=_0xfd07b5('0x2214')+_0x407ccb[_0xfd07b5('0x46c')][_0xfd07b5('0x190a')][_0x229459]['type']+_0xfd07b5('0x206e')+_0x407ccb['customDashboard'][_0xfd07b5('0x190a')][_0x229459][_0xfd07b5('0x1810')]+_0xfd07b5('0x21d8'));}});}function _0x22617d(_0x5498cb){const _0x5b05fb=_0x268ae8,_0x36a205=_0x42c75d[_0x5b05fb('0x1d02')]()[_0x5b05fb('0x20d6')]('Would\x20you\x20like\x20to\x20delete\x20'+_0x5498cb[_0x5b05fb('0x20d6')]+'?')[_0x5b05fb('0x1f71')]('')[_0x5b05fb('0x217')](_0x5b05fb('0x15d2'))['ok'](_0x5b05fb('0x7ba'))[_0x5b05fb('0x1e1f')]('NO');_0x42c75d['show'](_0x36a205)[_0x5b05fb('0x173b')](function(){const _0x27eb31=_0x5b05fb;return _0x18c34b[_0x27eb31('0x1125')][_0x27eb31('0x15e8')]({'id':_0x5498cb['id']})[_0x27eb31('0x1964')][_0x27eb31('0x173b')](function(){const _0x513ff1=_0x27eb31;_0x3c8d8a()['remove'](_0x407ccb['customDashboard'][_0x513ff1('0x190a')],{'id':_0x5498cb['id']}),_0xfd2828[_0x513ff1('0xdfe')]({'title':'Widget\x20deleted!','msg':_0x5498cb[_0x513ff1('0x10ad')]?_0x5498cb[_0x513ff1('0x10ad')]+_0x513ff1('0x25d2'):'Widget\x20has\x20been\x20deleted!'});})['catch'](function(_0xe01341){const _0x4cc10e=_0x27eb31;if(_0xe01341[_0x4cc10e('0x1e07')]&&_0xe01341[_0x4cc10e('0x1e07')][_0x4cc10e('0x1d4a')]&&_0xe01341['data'][_0x4cc10e('0x1d4a')]['length']){_0x407ccb[_0x4cc10e('0x1d4a')]=_0xe01341[_0x4cc10e('0x1e07')][_0x4cc10e('0x1d4a')]||[{'message':_0xe01341['toString'](),'type':_0x4cc10e('0x3d9')}];for(let _0x531a3b=0x0;_0x531a3b<_0xe01341[_0x4cc10e('0x1e07')][_0x4cc10e('0x1d4a')][_0x4cc10e('0x543')];_0x531a3b++){_0xfd2828['error']({'title':_0xe01341[_0x4cc10e('0x1e07')]['errors'][_0x531a3b][_0x4cc10e('0x1810')],'msg':_0xe01341[_0x4cc10e('0x1e07')][_0x4cc10e('0x1d4a')][_0x531a3b][_0x4cc10e('0x67f')]});}}else _0xfd2828[_0x4cc10e('0x15aa')]({'title':_0xe01341[_0x4cc10e('0x276f')]?_0x4cc10e('0x137')+_0xe01341[_0x4cc10e('0x276f')]+'\x20-\x20'+_0xe01341[_0x4cc10e('0x2696')]:_0x4cc10e('0x10f2'),'msg':_0xe01341['data']?JSON['stringify'](_0xe01341['data'][_0x4cc10e('0x67f')]):_0xe01341[_0x4cc10e('0x67f')]||_0xe01341['toString']()});console['error'](_0xe01341);});});}function _0x3c73aa(_0x2b5314,_0x746e77,_0x338583){const _0x1845e9=_0x268ae8;return _0x18c34b[_0x1845e9('0x1125')][_0x1845e9('0x1842')](_0x338583)[_0x1845e9('0x1964')][_0x1845e9('0x103c')](function(_0x56fdb1){const _0x3c23dc=_0x1845e9;console[_0x3c23dc('0x15aa')](_0x56fdb1);});}}const _0x8de67b=_0x1102df,_0x909e24=_0x21a6a1['p']+_0x566993('0x89b');_0x34a6eb[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x10ea'),_0x566993('0x15de'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x34a6eb(_0xa2a210,_0x4019b7,_0x581f0e,_0x3fd81f,_0x327b9b,_0x3a62a5,_0x11e38d,_0x387ba4,_0x21bf1a,_0x1f5d5e,_0x5b36b2,_0x4366c3,_0x4ca13d,_0x1a70df){const _0x210198=_0x566993,_0x48df7b=this;_0x48df7b[_0x210198('0x155f')]=_0x5b36b2[_0x210198('0x14d4')](),_0x48df7b[_0x210198('0x1d4a')]=[],_0x48df7b[_0x210198('0x251')]=_0x4ca13d,_0x48df7b[_0x210198('0x1a29')]=_0x4366c3,_0x48df7b[_0x210198('0x1dc1')]=_0x1a70df,_0x48df7b[_0x210198('0xb0')]={},_0x48df7b[_0x210198('0x644')]=_0x48df7b['setting']&&_0x48df7b[_0x210198('0x251')][_0x210198('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x48df7b[_0x210198('0x20d6')]='TOOLS.EDIT_DASHBOARDITEM',_0x48df7b[_0x210198('0x15de')]=angular[_0x210198('0x2e3')](_0x21bf1a),_0x48df7b['dashboard']=_0x387ba4,_0x48df7b[_0x210198('0x1297')]=![],_0x48df7b['selectedReport']=[],_0x48df7b[_0x210198('0xc49')]={'fields':_0x210198('0xebb'),'limit':0xa,'page':0x1,'sort':_0x210198('0x1769')};!_0x48df7b[_0x210198('0x15de')]?(_0x48df7b['dashboarditem']={'type':'counter','attrUrl':_0x210198('0xfbf'),'attrHourFormat':_0x210198('0x18da'),'attrTimezone':_0x210198('0x22c9'),'attrMetric':_0x210198('0xa1f'),'attrSerie1':_0x210198('0xa1f'),'attrSerie2':_0x210198('0x877'),'attrSerie3':_0x210198('0x877'),'attrRefresh':0xa,'attrFontSize':0x14,'foreground':_0x210198('0x1816'),'background':_0x210198('0x725')},_0x48df7b['title']=_0x210198('0xeb7'),_0x48df7b[_0x210198('0x1297')]=!![]):_0x48df7b['dashboarditem'][_0x210198('0x1810')]==_0x210198('0xad6')&&(_0x48df7b[_0x210198('0x1521')]=_0x48df7b[_0x210198('0x15de')]['reportType']==='custom'?_0x210198('0x1ca6'):'analyticDefaultReport',_0x1f5d5e[_0x48df7b['apiName']][_0x210198('0x1d97')]({'fields':_0x210198('0x1942')})[_0x210198('0x1964')][_0x210198('0x173b')](function(_0x25d8fd){const _0x2ef9b8=_0x210198;_0x48df7b[_0x2ef9b8('0xcc3')]=_0x3c8d8a()[_0x2ef9b8('0x18ab')](_0x25d8fd[_0x2ef9b8('0x6aa')],{'id':_0x48df7b[_0x2ef9b8('0x15de')]['attrReport']}),_0x48df7b[_0x2ef9b8('0x15de')]['report']=_0x48df7b['currentReport']['name'],_0x48df7b[_0x2ef9b8('0xc49')]['parent']=_0x48df7b[_0x2ef9b8('0xcc3')][_0x2ef9b8('0x941')];}));_0x48df7b[_0x210198('0xbd5')]=_0x95d738,_0x48df7b[_0x210198('0xf59')]=_0x4dc14e,_0x48df7b[_0x210198('0x1717')]=_0x487f2f,_0x48df7b[_0x210198('0x11ae')]=_0x454fdb,_0x48df7b[_0x210198('0x1ebf')]=_0x5d39c1,_0x48df7b[_0x210198('0x1e6d')]=_0x22a680,_0x48df7b['closeReportDialog']=_0xadb6c7,_0x48df7b[_0x210198('0x45b')]=_0x446210,_0x48df7b[_0x210198('0x18e2')]=_0x3b896f,_0x1f5d5e[_0x210198('0x8de')]['get']({})[_0x210198('0x1964')]['then'](function(_0x17d66d){_0x48df7b['treeReports']=_0x17d66d['rows']||[];})['catch'](function(_0x505e7a){const _0x2c4247=_0x210198;_0x11e38d[_0x2c4247('0x15aa')]({'title':_0x505e7a[_0x2c4247('0x276f')]?_0x2c4247('0x137')+_0x505e7a[_0x2c4247('0x276f')]+_0x2c4247('0x160c')+_0x505e7a[_0x2c4247('0x2696')]:_0x2c4247('0x1bf1'),'msg':_0x505e7a[_0x2c4247('0x1e07')]?JSON[_0x2c4247('0x100b')](_0x505e7a[_0x2c4247('0x1e07')]):_0x505e7a[_0x2c4247('0x1b75')]()});});const _0x395d4b=[{'id':0x191,'type':_0x210198('0x1755')},{'id':0x5dd,'type':'outbound'}];let _0x439396=null;_0x5b36b2[_0x210198('0x1b4e')]('admin')?_0x1f5d5e[_0x210198('0x1282')]['get']({'fields':_0x210198('0x1c66'),'sort':'name','nolimit':_0x210198('0x799')})[_0x210198('0x1964')][_0x210198('0x173b')](function(_0x37387a){const _0x334ad0=_0x210198;_0x48df7b[_0x334ad0('0x19f0')]=_0x37387a[_0x334ad0('0x6aa')]||[];})[_0x210198('0x103c')](function(_0x335c03){const _0x139e0d=_0x210198;_0x11e38d[_0x139e0d('0x15aa')]({'title':_0x335c03[_0x139e0d('0x276f')]?'API:'+_0x335c03[_0x139e0d('0x276f')]+_0x139e0d('0x160c')+_0x335c03[_0x139e0d('0x2696')]:_0x139e0d('0x278'),'msg':_0x335c03[_0x139e0d('0x1e07')]?JSON[_0x139e0d('0x100b')](_0x335c03[_0x139e0d('0x1e07')]):_0x335c03[_0x139e0d('0x1b75')]()});}):_0x1f5d5e[_0x210198('0x1282')][_0x210198('0x1d97')]({'fields':_0x210198('0x1c66'),'sort':_0x210198('0x10ad'),'nolimit':_0x210198('0x799')})['$promise']['then'](function(_0x93f6a6){_0x439396=_0x93f6a6['rows']||[];})[_0x210198('0x173b')](function(){const _0x43b2a7=_0x210198,_0x3a58d8=[];for(let _0x3c4539=0x0;_0x3c4539<_0x395d4b[_0x43b2a7('0x543')];_0x3c4539++){_0x3a58d8[_0x43b2a7('0x18bb')](_0x1f5d5e[_0x43b2a7('0x170e')][_0x43b2a7('0x1d97')]({'userProfileId':_0x48df7b[_0x43b2a7('0x155f')][_0x43b2a7('0x1946')],'sectionId':_0x395d4b[_0x3c4539]['id']})[_0x43b2a7('0x1964')]);}return _0x327b9b[_0x43b2a7('0x27c8')](_0x3a58d8);})[_0x210198('0x173b')](function(_0x47a16d){const _0x292f3f=_0x210198,_0x5f1794=_0x3c8d8a()[_0x292f3f('0x8a2')](_0x47a16d,function(_0x3c8cef){const _0x587b51=_0x292f3f;return _0x3c8cef&&_0x3c8cef[_0x587b51('0x6aa')]?_0x3c8cef[_0x587b51('0x6aa')][0x0]:null;}),_0x5da432=[];for(let _0x50b453=0x0;_0x50b453<_0x395d4b[_0x292f3f('0x543')];_0x50b453++){const _0x5dc639=_0x3c8d8a()[_0x292f3f('0x18ab')](_0x5f1794,['sectionId',_0x395d4b[_0x50b453]['id']]);if(_0x5dc639){if(!_0x5dc639['autoAssociation'])_0x5da432[_0x292f3f('0x18bb')](_0x1f5d5e[_0x292f3f('0xda9')][_0x292f3f('0x1d97')]({'sectionId':_0x5dc639['id']})[_0x292f3f('0x1964')]);else{const _0x3ae9be=[];_0x439396['forEach'](function(_0x2dec4e){const _0x950ceb=_0x292f3f;_0x2dec4e[_0x950ceb('0x1810')]===_0x395d4b[_0x50b453]['type']&&_0x3ae9be[_0x950ceb('0x18bb')](_0x2dec4e);}),_0x5da432[_0x292f3f('0x18bb')]({'rows':_0x3ae9be,'count':_0x3ae9be[_0x292f3f('0x543')]});}}}return _0x327b9b['all'](_0x5da432);})[_0x210198('0x173b')](function(_0x229f7b){const _0x9f6201=_0x210198,_0x53a05b=[];let _0x227294=null;_0x48df7b[_0x9f6201('0x15de')]&&(_0x227294=_0x3c8d8a()['find'](_0x439396,{'id':Number(_0x48df7b[_0x9f6201('0x15de')][_0x9f6201('0xd1c')])}));for(let _0x376c91=0x0;_0x376c91<_0x229f7b[_0x9f6201('0x543')];_0x376c91++){const _0x2c11cd=_0x229f7b[_0x376c91][_0x9f6201('0x6aa')]||[];_0x2c11cd[_0x9f6201('0xa6a')](function(_0x4e9659){const _0x6d0ff9=_0x9f6201;_0x53a05b[_0x6d0ff9('0x18bb')](_0x4e9659);});}_0x227294&&!_0x3c8d8a()['some'](_0x53a05b,[_0x9f6201('0x1ce0'),_0x227294['id']])&&_0x439396[_0x9f6201('0xa6a')](function(_0x1a46c9){const _0x16778a=_0x9f6201;_0x1a46c9['id']===_0x227294['id']&&(_0x1a46c9['canSelect']=![],_0x53a05b[_0x16778a('0x18bb')](_0x1a46c9));}),_0x48df7b[_0x9f6201('0x19f0')]=_0x53a05b;})[_0x210198('0x103c')](function(_0x65c6e4){const _0x35ab80=_0x210198;_0x11e38d[_0x35ab80('0x15aa')]({'title':_0x65c6e4[_0x35ab80('0x276f')]?_0x35ab80('0x137')+_0x65c6e4[_0x35ab80('0x276f')]+'\x20-\x20'+_0x65c6e4[_0x35ab80('0x2696')]:_0x35ab80('0x57f'),'msg':_0x65c6e4[_0x35ab80('0x1e07')]?JSON[_0x35ab80('0x100b')](_0x65c6e4[_0x35ab80('0x1e07')]):_0x65c6e4[_0x35ab80('0x1b75')]()});});function _0x95d738(){const _0x2c6f86=_0x210198;_0x48df7b[_0x2c6f86('0x1d4a')]=[],_0x1f5d5e[_0x2c6f86('0x10ea')][_0x2c6f86('0xbc4')]({'id':_0x4019b7[_0x2c6f86('0x197a')]['id']},_0x48df7b['dashboarditem'])['$promise'][_0x2c6f86('0x173b')](function(_0x12f94a){const _0x53155b=_0x2c6f86;_0x48df7b[_0x53155b('0x10ea')][_0x53155b('0x1377')](_0x12f94a[_0x53155b('0xf1f')]()),_0x11e38d['success']({'title':_0x53155b('0x1a1f'),'msg':_0x48df7b[_0x53155b('0x15de')][_0x53155b('0x10ad')]?_0x48df7b[_0x53155b('0x15de')][_0x53155b('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x3b896f(_0x12f94a);})[_0x2c6f86('0x103c')](function(_0x172a82){const _0x56cdef=_0x2c6f86;if(_0x172a82['data']&&_0x172a82[_0x56cdef('0x1e07')][_0x56cdef('0x1d4a')]&&_0x172a82['data']['errors'][_0x56cdef('0x543')]){_0x48df7b['errors']=_0x172a82[_0x56cdef('0x1e07')]['errors']||[{'message':_0x172a82[_0x56cdef('0x1b75')](),'type':'api.dashboardItem.save'}];for(let _0x5b7e7b=0x0;_0x5b7e7b<_0x172a82[_0x56cdef('0x1e07')]['errors'][_0x56cdef('0x543')];_0x5b7e7b+=0x1){_0x11e38d[_0x56cdef('0x15aa')]({'title':_0x172a82[_0x56cdef('0x1e07')][_0x56cdef('0x1d4a')][_0x5b7e7b][_0x56cdef('0x1810')],'msg':_0x172a82[_0x56cdef('0x1e07')][_0x56cdef('0x1d4a')][_0x5b7e7b][_0x56cdef('0x67f')]});}}else _0x11e38d[_0x56cdef('0x15aa')]({'title':_0x172a82[_0x56cdef('0x276f')]?_0x56cdef('0x137')+_0x172a82[_0x56cdef('0x276f')]+_0x56cdef('0x160c')+_0x172a82[_0x56cdef('0x2696')]:'api.dashboardItem.save','msg':_0x172a82[_0x56cdef('0x1e07')]?JSON['stringify'](_0x172a82[_0x56cdef('0x1e07')][_0x56cdef('0x67f')]):_0x172a82['toString']()});});}function _0x4dc14e(){const _0x25b498=_0x210198;_0x48df7b[_0x25b498('0x1d4a')]=[],_0x1f5d5e[_0x25b498('0x1125')]['update']({'id':_0x48df7b[_0x25b498('0x15de')]['id']},_0x48df7b[_0x25b498('0x15de')])[_0x25b498('0x1964')][_0x25b498('0x173b')](function(_0x16d77e){const _0x5406d6=_0x25b498,_0x1535e1=_0x3c8d8a()[_0x5406d6('0x18ab')](_0x48df7b[_0x5406d6('0x10ea')],{'id':_0x16d77e['id']});_0x1535e1&&_0x3c8d8a()[_0x5406d6('0x9ef')](_0x1535e1,_0x3c8d8a()[_0x5406d6('0x2114')](_0x16d77e[_0x5406d6('0xf1f')](),_0x3c8d8a()['keys'](_0x1535e1))),_0x11e38d[_0x5406d6('0xdfe')]({'title':_0x5406d6('0x890'),'msg':_0x48df7b[_0x5406d6('0x15de')][_0x5406d6('0x10ad')]?_0x48df7b['dashboarditem'][_0x5406d6('0x10ad')]+_0x5406d6('0x2788'):''}),_0x3b896f(_0x16d77e);})['catch'](function(_0x3e34d5){const _0x4de393=_0x25b498;if(_0x3e34d5[_0x4de393('0x1e07')]&&_0x3e34d5['data'][_0x4de393('0x1d4a')]&&_0x3e34d5[_0x4de393('0x1e07')][_0x4de393('0x1d4a')][_0x4de393('0x543')]){_0x48df7b[_0x4de393('0x1d4a')]=_0x3e34d5[_0x4de393('0x1e07')][_0x4de393('0x1d4a')]||[{'message':_0x3e34d5[_0x4de393('0x1b75')](),'type':_0x4de393('0x1652')}];for(let _0x52aa74=0x0;_0x52aa74<_0x3e34d5[_0x4de393('0x1e07')]['errors'][_0x4de393('0x543')];_0x52aa74++){_0x11e38d[_0x4de393('0x15aa')]({'title':_0x3e34d5[_0x4de393('0x1e07')]['errors'][_0x52aa74][_0x4de393('0x1810')],'msg':_0x3e34d5[_0x4de393('0x1e07')][_0x4de393('0x1d4a')][_0x52aa74][_0x4de393('0x67f')]});}}else _0x11e38d[_0x4de393('0x15aa')]({'title':_0x3e34d5[_0x4de393('0x276f')]?_0x4de393('0x137')+_0x3e34d5[_0x4de393('0x276f')]+_0x4de393('0x160c')+_0x3e34d5['statusText']:_0x4de393('0x1652'),'msg':_0x3e34d5[_0x4de393('0x1e07')]?JSON['stringify'](_0x3e34d5['data'][_0x4de393('0x67f')]):_0x3e34d5[_0x4de393('0x1b75')]()});});}function _0x487f2f(_0x141756){const _0xf46c8c=_0x210198;_0x48df7b[_0xf46c8c('0x1d4a')]=[];const _0x5ecdb3=_0x3fd81f['confirm']()[_0xf46c8c('0x20d6')]('Are\x20you\x20sure?')[_0xf46c8c('0x732')](_0xf46c8c('0x11d'))['ariaLabel'](_0xf46c8c('0x10'))['ok'](_0xf46c8c('0x2373'))[_0xf46c8c('0x1e1f')](_0xf46c8c('0x1d4e'))[_0xf46c8c('0x21de')](_0x141756);_0x3fd81f[_0xf46c8c('0x1cb7')](_0x5ecdb3)['then'](function(){const _0x16a4e6=_0xf46c8c;_0x1f5d5e[_0x16a4e6('0x1125')][_0x16a4e6('0x15e8')]({'id':_0x48df7b[_0x16a4e6('0x15de')]['id']})[_0x16a4e6('0x1964')][_0x16a4e6('0x173b')](function(){const _0x2f8169=_0x16a4e6;_0x3c8d8a()[_0x2f8169('0x1a8b')](_0x48df7b[_0x2f8169('0x10ea')],{'id':_0x48df7b[_0x2f8169('0x15de')]['id']}),_0x11e38d[_0x2f8169('0xdfe')]({'title':'DashboardItem\x20properly\x20deleted!','msg':(_0x48df7b[_0x2f8169('0x15de')]['name']||_0x2f8169('0x15de'))+'\x20has\x20been\x20deleted!'}),_0x3b896f(_0x48df7b[_0x2f8169('0x15de')]);})['catch'](function(_0x5a82c2){const _0x36b0dc=_0x16a4e6;if(_0x5a82c2[_0x36b0dc('0x1e07')]&&_0x5a82c2[_0x36b0dc('0x1e07')][_0x36b0dc('0x1d4a')]&&_0x5a82c2['data']['errors'][_0x36b0dc('0x543')]){_0x48df7b[_0x36b0dc('0x1d4a')]=_0x5a82c2[_0x36b0dc('0x1e07')]['errors']||[{'message':_0x5a82c2[_0x36b0dc('0x1b75')](),'type':_0x36b0dc('0x1a8c')}];for(let _0x48d544=0x0;_0x48d544<_0x5a82c2[_0x36b0dc('0x1e07')][_0x36b0dc('0x1d4a')][_0x36b0dc('0x543')];_0x48d544++){_0x11e38d[_0x36b0dc('0x15aa')]({'title':_0x5a82c2[_0x36b0dc('0x1e07')][_0x36b0dc('0x1d4a')][_0x48d544]['type'],'msg':_0x5a82c2[_0x36b0dc('0x1e07')][_0x36b0dc('0x1d4a')][_0x48d544][_0x36b0dc('0x67f')]});}}else _0x11e38d['error']({'title':_0x5a82c2['status']?'API:'+_0x5a82c2[_0x36b0dc('0x276f')]+_0x36b0dc('0x160c')+_0x5a82c2[_0x36b0dc('0x2696')]:_0x36b0dc('0x1a8c'),'msg':_0x5a82c2[_0x36b0dc('0x1e07')]?JSON[_0x36b0dc('0x100b')](_0x5a82c2[_0x36b0dc('0x1e07')][_0x36b0dc('0x67f')]):_0x5a82c2['message']||_0x5a82c2[_0x36b0dc('0x1b75')]()});});},function(){});}function _0x417c28(){const _0x340ed8=_0x210198,_0x3b5c5a={'core':{'multiple':![],'animation':!![],'error':function(_0x4a2397){const _0x11410b=a0_0xde5e;console[_0x11410b('0x15aa')]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular['toJson'](_0x4a2397));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0x48df7b[_0x340ed8('0x155f')][_0x340ed8('0x14a')]!=='admin'?_0x1f5d5e['userProfileSection'][_0x340ed8('0x1d97')]({'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x48df7b[_0x340ed8('0x155f')][_0x340ed8('0x1946')],'sectionId':0x4b3})[_0x340ed8('0x1964')][_0x340ed8('0x173b')](function(_0x4417d0){const _0x19567d=_0x340ed8;return _0x48df7b[_0x19567d('0x170e')]=_0x4417d0&&_0x4417d0[_0x19567d('0x1a2f')]==0x1?_0x4417d0[_0x19567d('0x6aa')][0x0]:null,_0x3b5c5a;})[_0x340ed8('0x103c')](function(_0x3375f6){const _0xd8455c=_0x340ed8;_0x11e38d[_0xd8455c('0x15aa')]({'title':_0xd8455c('0x280c'),'msg':_0x3375f6[_0xd8455c('0x67f')]});}):_0x3b5c5a;}function _0x363e95(_0x4aaf51){return _0x4aaf51?{'loaded':_0x227855,'select_node':_0x56ee8d}:{'loaded':_0x153555,'select_node':_0x556b18};}function _0x56ee8d(_0x3ab86e,_0x1aac1b){const _0x404ee0=_0x210198;_0x48df7b['treeDefaultInstance']['jstree'](!![])[_0x404ee0('0x851')](),_0x48df7b[_0x404ee0('0xed0')][_0x404ee0('0x1bf7')](!![])[_0x404ee0('0x1877')](),_0x48df7b[_0x404ee0('0x549')]=_0x1aac1b[_0x404ee0('0x161b')],_0x48df7b[_0x404ee0('0x549')]['custom']=!![],_0x48df7b[_0x404ee0('0x1a52')]=_0x48df7b[_0x404ee0('0xdae')][_0x404ee0('0x1bf7')](!![])[_0x404ee0('0x12ba')](_0x48df7b[_0x404ee0('0x549')])[_0x404ee0('0x2259')]('/\x20'),_0x48df7b[_0x404ee0('0x1521')]='analyticCustomReport',_0x48df7b[_0x404ee0('0xc49')][_0x404ee0('0x941')]=_0x1aac1b[_0x404ee0('0x161b')]['id'],_0x5d39c1();}function _0x556b18(_0x34f7a3,_0x5bbcf8){const _0x5d3b7e=_0x210198;_0x48df7b[_0x5d3b7e('0xdae')][_0x5d3b7e('0x1bf7')](!![])[_0x5d3b7e('0x851')](),_0x48df7b[_0x5d3b7e('0xdae')][_0x5d3b7e('0x1bf7')](!![])[_0x5d3b7e('0x1877')](),_0x48df7b[_0x5d3b7e('0x549')]=_0x5bbcf8[_0x5d3b7e('0x161b')],_0x48df7b[_0x5d3b7e('0x549')][_0x5d3b7e('0xbb4')]=![],_0x48df7b[_0x5d3b7e('0x1a52')]=_0x48df7b['treeDefaultInstance'][_0x5d3b7e('0x1bf7')](!![])[_0x5d3b7e('0x12ba')](_0x48df7b[_0x5d3b7e('0x549')])[_0x5d3b7e('0x2259')]('/\x20'),_0x48df7b[_0x5d3b7e('0x1521')]='analyticDefaultReport',_0x48df7b[_0x5d3b7e('0xc49')][_0x5d3b7e('0x941')]=_0x5bbcf8['node']['id'],_0x5d39c1();}function _0x227855(){const _0x56f7ac=_0x210198;if(!_0x48df7b['newDashboardItem']&&_0x48df7b[_0x56f7ac('0x1521')]==='analyticCustomReport'){const _0x2d70d2=_0x48df7b['treeCustomInstance'][_0x56f7ac('0x1bf7')](!![])[_0x56f7ac('0x20cb')](_0x48df7b['query'][_0x56f7ac('0x941')]);_0x56ee8d(null,{'node':_0x2d70d2,'selected':_0x2d70d2['id']});}}function _0x153555(){const _0x3a47e1=_0x210198;if(!_0x48df7b[_0x3a47e1('0x1297')]&&_0x48df7b['apiName']===_0x3a47e1('0x1d73')){const _0x37013e=_0x48df7b[_0x3a47e1('0xed0')][_0x3a47e1('0x1bf7')](!![])[_0x3a47e1('0x20cb')](_0x48df7b[_0x3a47e1('0xc49')][_0x3a47e1('0x941')]);_0x556b18(null,{'node':_0x37013e,'selected':_0x37013e['id']});}}function _0x5d39c1(){const _0x343c83=_0x210198;_0x48df7b[_0x343c83('0xc49')][_0x343c83('0x17f0')]=(_0x48df7b[_0x343c83('0xc49')]['page']-0x1)*_0x48df7b[_0x343c83('0xc49')][_0x343c83('0x3e')];if(_0x48df7b[_0x343c83('0x1521')]){if(_0x48df7b[_0x343c83('0x155f')][_0x343c83('0x14a')]===_0x343c83('0x79b'))_0x48df7b[_0x343c83('0x2219')]=_0x1f5d5e[_0x48df7b['apiName']][_0x343c83('0x1d97')](_0x48df7b[_0x343c83('0xc49')],_0x5ef93c)['$promise'];else{if(!_0x48df7b['userProfileSection'])return _0x5ef93c(null);else{if(_0x48df7b['userProfileSection'][_0x343c83('0x273e')])_0x48df7b[_0x343c83('0x2219')]=_0x1f5d5e[_0x48df7b[_0x343c83('0x1521')]]['get'](_0x48df7b['query'],_0x5ef93c)[_0x343c83('0x1964')];else{let _0x4a5e44=[];_0x48df7b[_0x343c83('0x2219')]=_0x1f5d5e[_0x48df7b[_0x343c83('0x1521')]]['get'](_0x48df7b['query'])['$promise'][_0x343c83('0x173b')](function(_0x5e546d){const _0x2ef47f=_0x343c83;return _0x4a5e44=_0x5e546d&&_0x5e546d[_0x2ef47f('0x6aa')]?_0x5e546d[_0x2ef47f('0x6aa')]:[],_0x4a5e44[_0x2ef47f('0x543')]>0x0?_0x1f5d5e['userProfileResource'][_0x2ef47f('0x1d97')]({'sectionId':_0x48df7b['userProfileSection']['id'],'type':_0x48df7b[_0x2ef47f('0x1521')]==='analyticDefaultReport'?_0x2ef47f('0x1489'):'CustomReports'})[_0x2ef47f('0x1964')][_0x2ef47f('0x173b')](function(_0x1b7750){const _0x24bb6d=_0x2ef47f,_0x40624e=_0x1b7750&&_0x1b7750[_0x24bb6d('0x6aa')]?_0x1b7750['rows']:[];if(_0x40624e[_0x24bb6d('0x543')]>0x0){const _0x4b929c=[];return _0x4a5e44[_0x24bb6d('0xa6a')](function(_0x5d7add){const _0x4b82ac=_0x24bb6d,_0x218b07=_0x3c8d8a()['find'](_0x40624e,[_0x4b82ac('0x1ce0'),_0x5d7add['id']]);if(_0x218b07)_0x4b929c['push'](_0x5d7add);}),_0x5ef93c({'count':_0x4b929c[_0x24bb6d('0x543')],'rows':_0x4b929c});}else return _0x5ef93c(null);}):_0x5ef93c(null);})[_0x343c83('0x103c')](function(_0x315c21){const _0x3f363a=_0x343c83;_0x11e38d['error']({'title':_0x315c21[_0x3f363a('0x276f')]?_0x3f363a('0x137')+_0x315c21['status']+_0x3f363a('0x160c')+_0x315c21[_0x3f363a('0x2696')]:_0x3f363a('0x1ddc'),'msg':_0x315c21[_0x3f363a('0x1e07')]?JSON['stringify'](_0x315c21[_0x3f363a('0x1e07')]):_0x315c21[_0x3f363a('0x1b75')]()});});}}}}}function _0x5ef93c(_0x29f12d){const _0x10c350=_0x210198;_0x48df7b[_0x10c350('0xb50')]=_0x29f12d||{'count':0x0,'rows':[]},!_0x48df7b[_0x10c350('0x1297')]&&_0x48df7b[_0x10c350('0x3bf')][_0x10c350('0x18bb')](_0x3c8d8a()[_0x10c350('0x18ab')](_0x48df7b[_0x10c350('0xb50')]['rows'],{'id':_0x48df7b[_0x10c350('0xcc3')]['id']}));}function _0x446210(){const _0x2d9679=_0x210198;_0x48df7b['treeDefaultData']=_0x48df7b[_0x2d9679('0x1f76')][0x0]?angular[_0x2d9679('0x19c5')](_0x48df7b[_0x2d9679('0x1f76')][0x0][_0x2d9679('0x1328')]):[],_0x48df7b[_0x2d9679('0x1bde')]=_0x48df7b[_0x2d9679('0x1f76')][0x1]?angular[_0x2d9679('0x19c5')](_0x48df7b[_0x2d9679('0x1f76')][0x1][_0x2d9679('0x1328')]):[],_0x48df7b[_0x2d9679('0x13cd')]=_0x417c28(),_0x48df7b['treeDefaultEvents']=_0x363e95(![]),_0x48df7b[_0x2d9679('0x236a')]=_0x363e95(!![]),_0x3fd81f[_0x2d9679('0x1cb7')]({'controller':function(){return _0x48df7b;},'controllerAs':'vm','templateUrl':_0x909e24,'autoWrap':!![],'skipHide':!![]});}function _0x22a680(){const _0x4dcb2e=_0x210198;_0x48df7b[_0x4dcb2e('0x15de')]['report']=_0x48df7b[_0x4dcb2e('0x3bf')][0x0][_0x4dcb2e('0x10ad')],_0x48df7b[_0x4dcb2e('0x15de')][_0x4dcb2e('0x6a5')]=_0x48df7b['selectedReport'][0x0]['id'],_0x48df7b['dashboarditem']['reportType']=_0x48df7b[_0x4dcb2e('0x549')][_0x4dcb2e('0xbb4')]?_0x4dcb2e('0xbb4'):_0x4dcb2e('0x1ef2');if(!_0x48df7b['newDashboardItem']){const _0x38dc62={'name':_0x4dcb2e('0x6a5'),'type':_0x48df7b[_0x4dcb2e('0x15de')][_0x4dcb2e('0x50a')],'value':_0x48df7b['selectedReport'][0x0]['id']};_0x48df7b[_0x4dcb2e('0x15de')][_0x4dcb2e('0x24e2')][_0x4dcb2e('0x553')](_0x3c8d8a()[_0x4dcb2e('0x26c3')](_0x48df7b['dashboarditem'][_0x4dcb2e('0x24e2')],0x1,_0x38dc62));}_0xa2a210['dashboarditemForm'][_0x4dcb2e('0x358')][_0x4dcb2e('0xc35')](),_0x3fd81f[_0x4dcb2e('0x1cf4')]();}function _0xadb6c7(){const _0x5ea12c=_0x210198;_0x3fd81f[_0x5ea12c('0x1cf4')]();}function _0x454fdb(_0x4242ea){return _0x4242ea===null?undefined:new Date(_0x4242ea);}function _0x3b896f(_0x5e8c74){const _0x3cdbc7=_0x210198;_0x3fd81f[_0x3cdbc7('0x1cf4')](_0x5e8c74);}}const _0x2a1085=_0x34a6eb,_0x34aa86=_0x21a6a1['p']+_0x566993('0x1d51');_0x56cd67[_0x566993('0x17bb')]=[_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),'customDashboard',_0x566993('0x170e')];function _0x56cd67(_0x57d741,_0x238614,_0x3a203e,_0x55845a,_0x159787,_0x5631d4,_0x508c4d,_0xcc78f5,_0x1f5897,_0x1dae7f,_0x4e3d89,_0x3eaf78){const _0x20147e=_0x566993,_0x51df0d=this;_0x51df0d[_0x20147e('0x155f')]=_0x1dae7f[_0x20147e('0x14d4')](),_0x51df0d[_0x20147e('0x1a29')]=_0x5631d4,_0x51df0d[_0x20147e('0x251')]=_0x508c4d,_0x51df0d[_0x20147e('0x644')]=_0x51df0d[_0x20147e('0x251')][_0x20147e('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x51df0d[_0x20147e('0x614')]=_0x238614[_0x20147e('0x375')]()+'://'+_0x238614['host'](),_0x51df0d[_0x20147e('0x46c')]=_0x4e3d89||_0x57d741[_0x20147e('0x197a')]['customDashboard']||{},_0x51df0d[_0x20147e('0x170e')]=_0x3eaf78&&_0x3eaf78['count']==0x1?_0x3eaf78[_0x20147e('0x6aa')][0x0]:null,_0x51df0d[_0x20147e('0x1dc1')]=_0x1dae7f[_0x20147e('0xde6')](_0x51df0d[_0x20147e('0x170e')]?_0x51df0d[_0x20147e('0x170e')][_0x20147e('0x1dc1')]:null),_0x51df0d[_0x20147e('0xb0')]={},_0x51df0d['selectedTab']=_0x57d741[_0x20147e('0x197a')][_0x20147e('0x1e66')]||0x0,_0x51df0d[_0x20147e('0x28a')]=_0x4f4cfc,_0x51df0d[_0x20147e('0xa47')]=_0x164fb1,_0x51df0d[_0x20147e('0x5a4')]=_0x1f5897[_0x20147e('0x2787')],_0x51df0d[_0x20147e('0x1aec')]=_0x495393,_0x51df0d[_0x20147e('0x1440')]=_0x48b351;function _0x4f4cfc(_0x318b12,_0x959894){const _0x54bd2b=_0x20147e;_0x3a203e['show']({'controller':_0x54bd2b('0xf38'),'controllerAs':'vm','templateUrl':_0x34aa86,'parent':angular[_0x54bd2b('0xb6d')](_0x55845a['body']),'targetEvent':_0x959894,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x318b12,'customDashboards':_0x51df0d[_0x54bd2b('0x746')]?_0x51df0d[_0x54bd2b('0x746')][_0x54bd2b('0x6aa')]:[],'crudPermissions':_0x51df0d['crudPermissions']}});}function _0x164fb1(_0x2e2dca){const _0x114488=_0x20147e;_0x57d741['go'](_0x114488('0x2351'),{'id':_0x2e2dca['id']});}function _0x495393(){const _0x41bb68=_0x20147e;_0x57d741['go'](_0x41bb68('0x1e99'),{},{'reload':_0x41bb68('0x1e99')});}function _0x48b351(){const _0x351d42=_0x20147e;_0xcc78f5[_0x351d42('0x10ea')][_0x351d42('0x1842')]({'id':_0x51df0d[_0x351d42('0x46c')]['id']},_0x51df0d[_0x351d42('0x46c')])[_0x351d42('0x1964')]['then'](function(){const _0x192c50=_0x351d42;_0x1f5897[_0x192c50('0xdfe')]({'title':_0x192c50('0x284c'),'msg':_0x51df0d['customDashboard'][_0x192c50('0x10ad')]?_0x51df0d[_0x192c50('0x46c')][_0x192c50('0x10ad')]+_0x192c50('0x1fd6'):''});})[_0x351d42('0x103c')](function(_0x498a0a){const _0x93cd4f=_0x351d42;_0x1f5897[_0x93cd4f('0x15aa')]({'title':_0x498a0a[_0x93cd4f('0x276f')]?_0x93cd4f('0x137')+_0x498a0a['status']+'\x20-\x20'+_0x498a0a[_0x93cd4f('0x2696')]:'SYSTEM:GETdashboard','msg':_0x498a0a['data']?JSON[_0x93cd4f('0x100b')](_0x498a0a[_0x93cd4f('0x1e07')]):_0x498a0a[_0x93cd4f('0x1b75')]()});});}}const _0x4e2d03=_0x56cd67;_0x3163f5[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x21c4'),_0x566993('0x55a'),'api',_0x566993('0x1600'),'license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x3163f5(_0x318462,_0x5e3dcc,_0x577ce1,_0x39cdf8,_0x87e0c8,_0x516468,_0x54ba41,_0x2a94b3,_0x1709c1,_0x32e5fb,_0x468f56,_0x50dac4,_0x3607bf,_0x258d7f){const _0x52fbbb=_0x566993,_0x1e42db=this;_0x1e42db['currentUser']=_0x468f56[_0x52fbbb('0x14d4')](),_0x1e42db[_0x52fbbb('0x1d4a')]=[],_0x1e42db['setting']=_0x3607bf,_0x1e42db[_0x52fbbb('0x1a29')]=_0x50dac4,_0x1e42db[_0x52fbbb('0x1dc1')]=_0x258d7f,_0x1e42db['hasModulePermissions']={},_0x1e42db[_0x52fbbb('0x644')]=_0x1e42db[_0x52fbbb('0x251')]&&_0x1e42db[_0x52fbbb('0x251')][_0x52fbbb('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e42db[_0x52fbbb('0x20d6')]=_0x52fbbb('0x117b'),_0x1e42db[_0x52fbbb('0x55a')]=angular['copy'](_0x1709c1),_0x1e42db[_0x52fbbb('0x21c4')]=_0x2a94b3,_0x1e42db[_0x52fbbb('0x1d80')]=![];!_0x1e42db['interval']&&(_0x1e42db[_0x52fbbb('0x55a')]={},_0x1e42db[_0x52fbbb('0x20d6')]=_0x52fbbb('0xbb5'),_0x1e42db[_0x52fbbb('0x1d80')]=!![]);_0x1e42db['addNewInterval']=_0x334ae0,_0x1e42db[_0x52fbbb('0x1401')]=_0x226592,_0x1e42db[_0x52fbbb('0x1e26')]=_0x3d8580,_0x1e42db[_0x52fbbb('0x11ae')]=_0x447c46,_0x1e42db[_0x52fbbb('0x18e2')]=_0x3c793c;function _0x334ae0(){const _0x4a722d=_0x52fbbb;_0x1e42db[_0x4a722d('0x1d4a')]=[],_0x32e5fb[_0x4a722d('0x55a')][_0x4a722d('0x1195')](_0x1e42db[_0x4a722d('0x55a')])['$promise'][_0x4a722d('0x173b')](function(_0x607632){const _0x553082=_0x4a722d;_0x1e42db[_0x553082('0x21c4')][_0x553082('0x1377')](_0x607632[_0x553082('0xf1f')]()),_0x54ba41[_0x553082('0xdfe')]({'title':_0x553082('0x17fa'),'msg':_0x1e42db[_0x553082('0x55a')][_0x553082('0x10ad')]?_0x1e42db[_0x553082('0x55a')][_0x553082('0x10ad')]+_0x553082('0x209a'):''}),_0x3c793c(_0x607632);})['catch'](function(_0x274d2e){const _0xd427cd=_0x4a722d;if(_0x274d2e[_0xd427cd('0x1e07')]&&_0x274d2e[_0xd427cd('0x1e07')][_0xd427cd('0x1d4a')]&&_0x274d2e[_0xd427cd('0x1e07')]['errors'][_0xd427cd('0x543')]){_0x1e42db[_0xd427cd('0x1d4a')]=_0x274d2e['data'][_0xd427cd('0x1d4a')]||[{'message':_0x274d2e[_0xd427cd('0x1b75')](),'type':_0xd427cd('0xbde')}];for(let _0x48d4c0=0x0;_0x48d4c0<_0x274d2e['data'][_0xd427cd('0x1d4a')][_0xd427cd('0x543')];_0x48d4c0+=0x1){_0x54ba41[_0xd427cd('0x15aa')]({'title':_0x274d2e[_0xd427cd('0x1e07')][_0xd427cd('0x1d4a')][_0x48d4c0][_0xd427cd('0x1810')],'msg':_0x274d2e[_0xd427cd('0x1e07')][_0xd427cd('0x1d4a')][_0x48d4c0][_0xd427cd('0x67f')]});}}else _0x54ba41[_0xd427cd('0x15aa')]({'title':_0x274d2e[_0xd427cd('0x276f')]?_0xd427cd('0x137')+_0x274d2e[_0xd427cd('0x276f')]+'\x20-\x20'+_0x274d2e[_0xd427cd('0x2696')]:_0xd427cd('0xbde'),'msg':_0x274d2e[_0xd427cd('0x1e07')]?JSON[_0xd427cd('0x100b')](_0x274d2e[_0xd427cd('0x1e07')][_0xd427cd('0x67f')]):_0x274d2e[_0xd427cd('0x1b75')]()});});}function _0x226592(){const _0x512cd8=_0x52fbbb;_0x1e42db['errors']=[],_0x32e5fb[_0x512cd8('0x55a')][_0x512cd8('0x1842')]({'id':_0x1e42db[_0x512cd8('0x55a')]['id']},_0x1e42db[_0x512cd8('0x55a')])[_0x512cd8('0x1964')][_0x512cd8('0x173b')](function(_0x5d3add){const _0x1c17e2=_0x512cd8,_0x32364e=_0x3c8d8a()[_0x1c17e2('0x18ab')](_0x1e42db[_0x1c17e2('0x21c4')],{'id':_0x5d3add['id']});_0x32364e&&_0x3c8d8a()[_0x1c17e2('0x9ef')](_0x32364e,_0x3c8d8a()[_0x1c17e2('0x2114')](_0x5d3add[_0x1c17e2('0xf1f')](),_0x3c8d8a()[_0x1c17e2('0x1d3e')](_0x32364e))),_0x54ba41[_0x1c17e2('0xdfe')]({'title':_0x1c17e2('0x39a'),'msg':_0x1e42db[_0x1c17e2('0x55a')]['name']?_0x1e42db[_0x1c17e2('0x55a')]['name']+_0x1c17e2('0x2788'):''}),_0x3c793c(_0x5d3add);})['catch'](function(_0x224b5a){const _0x2f343c=_0x512cd8;if(_0x224b5a[_0x2f343c('0x1e07')]&&_0x224b5a[_0x2f343c('0x1e07')]['errors']&&_0x224b5a[_0x2f343c('0x1e07')][_0x2f343c('0x1d4a')][_0x2f343c('0x543')]){_0x1e42db[_0x2f343c('0x1d4a')]=_0x224b5a[_0x2f343c('0x1e07')]['errors']||[{'message':_0x224b5a[_0x2f343c('0x1b75')](),'type':_0x2f343c('0xe20')}];for(let _0x425f27=0x0;_0x425f27<_0x224b5a['data'][_0x2f343c('0x1d4a')][_0x2f343c('0x543')];_0x425f27++){_0x54ba41['error']({'title':_0x224b5a[_0x2f343c('0x1e07')][_0x2f343c('0x1d4a')][_0x425f27][_0x2f343c('0x1810')],'msg':_0x224b5a[_0x2f343c('0x1e07')][_0x2f343c('0x1d4a')][_0x425f27][_0x2f343c('0x67f')]});}}else _0x54ba41[_0x2f343c('0x15aa')]({'title':_0x224b5a['status']?'API:'+_0x224b5a[_0x2f343c('0x276f')]+_0x2f343c('0x160c')+_0x224b5a[_0x2f343c('0x2696')]:_0x2f343c('0xe20'),'msg':_0x224b5a[_0x2f343c('0x1e07')]?JSON['stringify'](_0x224b5a['data'][_0x2f343c('0x67f')]):_0x224b5a['toString']()});});}function _0x3d8580(_0x5ba4d1){const _0x41a703=_0x52fbbb;_0x1e42db[_0x41a703('0x1d4a')]=[];const _0x25a5c7=_0x39cdf8['confirm']()[_0x41a703('0x20d6')](_0x41a703('0x8ef'))['content'](_0x41a703('0x163d'))[_0x41a703('0x217')](_0x41a703('0xd67'))['ok'](_0x41a703('0x2373'))['cancel'](_0x41a703('0x1d4e'))[_0x41a703('0x21de')](_0x5ba4d1);_0x39cdf8[_0x41a703('0x1cb7')](_0x25a5c7)[_0x41a703('0x173b')](function(){const _0xf8d0bd=_0x41a703;_0x32e5fb['interval'][_0xf8d0bd('0x15e8')]({'id':_0x1e42db[_0xf8d0bd('0x55a')]['id']})[_0xf8d0bd('0x1964')][_0xf8d0bd('0x173b')](function(){const _0x6402d9=_0xf8d0bd;_0x3c8d8a()[_0x6402d9('0x1a8b')](_0x1e42db[_0x6402d9('0x21c4')],{'id':_0x1e42db[_0x6402d9('0x55a')]['id']}),_0x54ba41[_0x6402d9('0xdfe')]({'title':_0x6402d9('0xb4e'),'msg':(_0x1e42db[_0x6402d9('0x55a')][_0x6402d9('0x10ad')]||'interval')+_0x6402d9('0x25d2')}),_0x3c793c(_0x1e42db[_0x6402d9('0x55a')]);})[_0xf8d0bd('0x103c')](function(_0x3ed919){const _0x3f7277=_0xf8d0bd;if(_0x3ed919['data']&&_0x3ed919[_0x3f7277('0x1e07')][_0x3f7277('0x1d4a')]&&_0x3ed919[_0x3f7277('0x1e07')]['errors'][_0x3f7277('0x543')]){_0x1e42db[_0x3f7277('0x1d4a')]=_0x3ed919['data'][_0x3f7277('0x1d4a')]||[{'message':_0x3ed919[_0x3f7277('0x1b75')](),'type':_0x3f7277('0x1d78')}];for(let _0x1093a6=0x0;_0x1093a6<_0x3ed919['data'][_0x3f7277('0x1d4a')][_0x3f7277('0x543')];_0x1093a6++){_0x54ba41['error']({'title':_0x3ed919['data'][_0x3f7277('0x1d4a')][_0x1093a6]['type'],'msg':_0x3ed919[_0x3f7277('0x1e07')][_0x3f7277('0x1d4a')][_0x1093a6]['message']});}}else _0x54ba41[_0x3f7277('0x15aa')]({'title':_0x3ed919[_0x3f7277('0x276f')]?_0x3f7277('0x137')+_0x3ed919['status']+'\x20-\x20'+_0x3ed919[_0x3f7277('0x2696')]:_0x3f7277('0x1d78'),'msg':_0x3ed919[_0x3f7277('0x1e07')]?JSON[_0x3f7277('0x100b')](_0x3ed919[_0x3f7277('0x1e07')][_0x3f7277('0x67f')]):_0x3ed919['message']||_0x3ed919[_0x3f7277('0x1b75')]()});});},function(){});}function _0x447c46(_0x27c74b){return _0x27c74b===null?undefined:new Date(_0x27c74b);}function _0x3c793c(_0x1d10a1){const _0x3f3358=_0x52fbbb;_0x39cdf8[_0x3f3358('0x1cf4')](_0x1d10a1);}}const _0x330328=_0x3163f5;_0x70b7e0[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x1fe5'),_0x566993('0x1276'),_0x566993('0x1975'),_0x566993('0x55a'),_0x566993('0x21c4'),'toasty',_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x70b7e0(_0x4a2730,_0x48ea6e,_0xb98736,_0x39d159,_0x1e6673,_0x4cb686,_0x50fe89,_0x5ce1a8,_0x4049b5,_0x129629){const _0x261e54=_0x566993,_0x36fb27=this;_0x36fb27['currentUser']=_0x4049b5[_0x261e54('0x14d4')](),_0x36fb27[_0x261e54('0x1d4a')]=[],_0x36fb27['title']=_0x261e54('0x117b'),_0x36fb27['interval']=angular['copy'](_0x1e6673),_0x36fb27['intervals']=_0x4cb686,_0x36fb27['newInterval']=![],_0x36fb27[_0x261e54('0xf00')]=[_0x261e54('0x17b3'),_0x261e54('0xbb4')],_0x36fb27[_0x261e54('0x1dc1')]=_0x129629,_0x36fb27['daysOfWeek']=_0x39d159['getDaysOfWeek'](),_0x36fb27[_0x261e54('0x8e4')]=_0x39d159['getMonthNumber'](),_0x36fb27[_0x261e54('0x1d95')]=_0x39d159['getMonthName'](),_0x36fb27[_0x261e54('0x2742')]=_0x39d159[_0x261e54('0x1c80')]();if(!_0x36fb27[_0x261e54('0x55a')])_0x36fb27[_0x261e54('0x55a')]={'interval':_0x261e54('0x17c5')},_0x36fb27['type']=_0x261e54('0x17b3'),_0x36fb27[_0x261e54('0x20d6')]=_0x261e54('0xbb5'),_0x36fb27[_0x261e54('0x1d80')]=!![];else{if(_0x36fb27[_0x261e54('0x55a')]['interval']!=='*,*,*,*'){_0x36fb27['type']=_0x261e54('0xbb4');const _0xb8c855=_0x36fb27[_0x261e54('0x55a')][_0x261e54('0x55a')]['split'](','),_0x245a37=_0xb8c855[0x0],_0x2b33ef=_0xb8c855[0x1],_0x4db512=_0xb8c855[0x2],_0x1163e1=_0xb8c855[0x3];if(_0x245a37!=='*'){const _0x5316e5=_0x245a37['split']('-')[0x0],_0x38782a=_0x245a37[_0x261e54('0x43a')]('-')[0x1];let _0x401ef4;_0x401ef4=new Date(),_0x401ef4[_0x261e54('0xd32')](Number(_0x5316e5[_0x261e54('0x43a')](':')[0x0])),_0x401ef4['setMinutes'](Number(_0x5316e5[_0x261e54('0x43a')](':')[0x1])),_0x36fb27[_0x261e54('0x2515')]=_0x401ef4,_0x401ef4=new Date(),_0x401ef4[_0x261e54('0xd32')](Number(_0x38782a[_0x261e54('0x43a')](':')[0x0])),_0x401ef4['setMinutes'](Number(_0x38782a[_0x261e54('0x43a')](':')[0x1])),_0x36fb27[_0x261e54('0x437')]=_0x401ef4;}_0x2b33ef!=='*'&&(_0x36fb27[_0x261e54('0x37a')]=_0x2b33ef[_0x261e54('0x43a')]('-')[0x0],_0x36fb27['dayOfWeekTo']=_0x2b33ef['split']('-')[0x1]),_0x4db512!=='*'&&(_0x36fb27[_0x261e54('0x6df')]=_0x4db512['split']('-')[0x0],_0x36fb27[_0x261e54('0x185e')]=_0x4db512[_0x261e54('0x43a')]('-')[0x1]),_0x1163e1!=='*'&&(_0x36fb27[_0x261e54('0x1f34')]=_0x1163e1[_0x261e54('0x43a')]('-')[0x0],_0x36fb27[_0x261e54('0xf74')]=_0x1163e1[_0x261e54('0x43a')]('-')[0x1]);}else _0x36fb27['type']=_0x261e54('0x17b3');}_0x4a2730['params']['id']&&!_0x36fb27[_0x261e54('0x55a')][_0x261e54('0x17c2')]&&(_0x36fb27['interval'][_0x261e54('0x600')]=_0x4a2730[_0x261e54('0x197a')]['id']);_0x36fb27[_0x261e54('0x55a')]['IntervalId']&&_0x36fb27[_0x261e54('0x55a')][_0x261e54('0x17c2')]&&(_0x36fb27['type']='list');_0x36fb27[_0x261e54('0x11fc')]=_0x34d300,_0x36fb27[_0x261e54('0x1401')]=_0x3b82ca,_0x36fb27[_0x261e54('0x18e2')]=_0x9b8fc4;_0x36fb27[_0x261e54('0x55a')][_0x261e54('0x17c2')]&&(_0x4049b5[_0x261e54('0x1b4e')](_0x261e54('0x79b'))?_0x5ce1a8[_0x261e54('0x55a')]['get']({'fields':_0x261e54('0x2666'),'IntervalId':_0x261e54('0x877'),'nolimit':!![]})[_0x261e54('0x1964')]['then'](function(_0x4db256){const _0x2a491a=_0x261e54;_0x36fb27[_0x2a491a('0x21c4')]=_0x4db256[_0x2a491a('0x6aa')]||[];})[_0x261e54('0x103c')](function(_0x53dea5){const _0x4e12cf=_0x261e54;_0x50fe89['error']({'title':_0x53dea5[_0x4e12cf('0x276f')]?_0x4e12cf('0x137')+_0x53dea5[_0x4e12cf('0x276f')]+_0x4e12cf('0x160c')+_0x53dea5[_0x4e12cf('0x2696')]:_0x4e12cf('0x1daf'),'msg':_0x53dea5[_0x4e12cf('0x1e07')]?JSON['stringify'](_0x53dea5[_0x4e12cf('0x1e07')]):_0x53dea5['toString']()});}):_0x5ce1a8[_0x261e54('0x55a')][_0x261e54('0x1d97')]({'fields':_0x261e54('0x2666'),'IntervalId':_0x261e54('0x877'),'nolimit':!![]})[_0x261e54('0x1964')]['then'](function(_0x5ccb89){const _0x32e9dc=_0x261e54;_0x36fb27[_0x32e9dc('0x21c4')]=_0x5ccb89[_0x32e9dc('0x6aa')]||[];})['then'](function(){const _0x37b367=_0x261e54;return _0x5ce1a8[_0x37b367('0x170e')]['get']({'userProfileId':_0x36fb27[_0x37b367('0x155f')]['userProfileId'],'sectionId':0x3ec})['$promise'];})['then'](function(_0x1ef00d){const _0x53c730=_0x261e54,_0x328325=_0x1ef00d&&_0x1ef00d[_0x53c730('0x6aa')]?_0x1ef00d[_0x53c730('0x6aa')][0x0]:null;if(!_0x328325)_0x36fb27[_0x53c730('0x21c4')]=[];else{if(!_0x328325[_0x53c730('0x273e')])return _0x5ce1a8[_0x53c730('0xda9')][_0x53c730('0x1d97')]({'sectionId':_0x328325['id']})[_0x53c730('0x1964')][_0x53c730('0x173b')](function(_0x40b254){const _0x17acbf=_0x53c730,_0x58b222=_0x40b254&&_0x40b254[_0x17acbf('0x6aa')]?_0x40b254[_0x17acbf('0x6aa')]:[],_0x117658=[];let _0x23a86f=null;_0x36fb27[_0x17acbf('0x55a')]&&(_0x23a86f=_0x3c8d8a()['find'](_0x36fb27[_0x17acbf('0x21c4')],{'name':_0x36fb27[_0x17acbf('0x55a')][_0x17acbf('0x600')]})),_0x23a86f&&!_0x3c8d8a()[_0x17acbf('0x1ec')](_0x58b222,[_0x17acbf('0x1ce0'),_0x23a86f['id']])&&_0x36fb27[_0x17acbf('0x21c4')]['forEach'](function(_0x33b014){const _0x5b5614=_0x17acbf;_0x33b014['id']===_0x23a86f['id']&&(_0x33b014[_0x5b5614('0x268e')]=![],_0x117658['push'](_0x33b014));}),_0x36fb27[_0x17acbf('0x21c4')]=_0x117658;});}})[_0x261e54('0x103c')](function(_0x2dc558){const _0x23e81c=_0x261e54;_0x50fe89[_0x23e81c('0x15aa')]({'title':_0x2dc558['status']?_0x23e81c('0x137')+_0x2dc558['status']+_0x23e81c('0x160c')+_0x2dc558[_0x23e81c('0x2696')]:_0x23e81c('0x1daf'),'msg':_0x2dc558[_0x23e81c('0x1e07')]?JSON[_0x23e81c('0x100b')](_0x2dc558[_0x23e81c('0x1e07')]):_0x2dc558[_0x23e81c('0x1b75')]()});}));function _0x5173fa(){const _0x38a328=_0x261e54;switch(_0x36fb27['type']){case _0x38a328('0x17b3'):case _0x38a328('0x3e3'):return'*,*,*,*';case'custom':{const _0x2a2f16=[];if(_0x36fb27['timeRangeFrom']!=='*'&&_0x36fb27[_0x38a328('0x2515')]&&_0x36fb27[_0x38a328('0x437')]){const _0x3b8720=(_0x36fb27[_0x38a328('0x2515')][_0x38a328('0x1a28')]()<0xa?'0':'')+_0x36fb27[_0x38a328('0x2515')][_0x38a328('0x1a28')]()+':'+((_0x36fb27[_0x38a328('0x2515')][_0x38a328('0x1d2a')]()<0xa?'0':'')+_0x36fb27['timeRangeFrom'][_0x38a328('0x1d2a')]()),_0x380f18=(_0x36fb27[_0x38a328('0x437')][_0x38a328('0x1a28')]()<0xa?'0':'')+_0x36fb27[_0x38a328('0x437')][_0x38a328('0x1a28')]()+':'+((_0x36fb27['timeRangeTo'][_0x38a328('0x1d2a')]()<0xa?'0':'')+_0x36fb27[_0x38a328('0x437')][_0x38a328('0x1d2a')]());_0x2a2f16[_0x38a328('0x18bb')](_0x3b8720+'-'+_0x380f18);}else _0x2a2f16['push']('*');return _0x36fb27[_0x38a328('0x37a')]?_0x36fb27[_0x38a328('0x269e')]?_0x2a2f16[_0x38a328('0x18bb')](_0x36fb27[_0x38a328('0x37a')]+'-'+_0x36fb27['dayOfWeekTo']):_0x2a2f16[_0x38a328('0x18bb')](_0x36fb27[_0x38a328('0x37a')]):_0x2a2f16[_0x38a328('0x18bb')]('*'),_0x36fb27[_0x38a328('0x6df')]?_0x36fb27[_0x38a328('0x185e')]?_0x2a2f16[_0x38a328('0x18bb')](_0x36fb27[_0x38a328('0x6df')]+'-'+_0x36fb27[_0x38a328('0x185e')]):_0x2a2f16[_0x38a328('0x18bb')](_0x36fb27['monthDayFrom']):_0x2a2f16[_0x38a328('0x18bb')]('*'),_0x36fb27['monthFrom']?_0x36fb27['monthTo']?_0x2a2f16[_0x38a328('0x18bb')](_0x36fb27[_0x38a328('0x1f34')]+'-'+_0x36fb27['monthTo']):_0x2a2f16['push'](_0x36fb27['monthFrom']):_0x2a2f16[_0x38a328('0x18bb')]('*'),_0x2a2f16[_0x38a328('0x2259')]();}}}function _0x34d300(){const _0x47aeae=_0x261e54;_0x36fb27[_0x47aeae('0x1d4a')]=[],_0x36fb27[_0x47aeae('0x55a')][_0x47aeae('0x55a')]=_0x5173fa(),_0x5ce1a8[_0x47aeae('0x55a')][_0x47aeae('0x1195')](_0x36fb27[_0x47aeae('0x55a')])[_0x47aeae('0x1964')][_0x47aeae('0x173b')](function(_0x115bec){const _0x4df679=_0x47aeae;_0x36fb27[_0x4df679('0x21c4')][_0x4df679('0x18bb')](_0x115bec),_0x50fe89[_0x4df679('0xdfe')]({'title':_0x4df679('0x17fa'),'msg':_0x36fb27[_0x4df679('0x55a')][_0x4df679('0x10ad')]?_0x36fb27[_0x4df679('0x55a')][_0x4df679('0x10ad')]+_0x4df679('0x209a'):''}),_0x9b8fc4();})['catch'](function(_0x4d7560){const _0x4777ca=_0x47aeae;console[_0x4777ca('0x15aa')](_0x4d7560),_0x36fb27['errors']=_0x4d7560['data'][_0x4777ca('0x1d4a')]||[{'message':_0x4d7560[_0x4777ca('0x1b75')](),'type':_0x4777ca('0xbde')}];});}function _0x3b82ca(){const _0x300621=_0x261e54;_0x36fb27[_0x300621('0x1d4a')]=[],_0x36fb27[_0x300621('0x55a')][_0x300621('0x55a')]=_0x5173fa(),_0x36fb27[_0x300621('0x55a')][_0x300621('0x17c2')]?(_0x36fb27[_0x300621('0x1810')]!==_0x300621('0x3e3')&&(_0x36fb27['interval'][_0x300621('0x600')]=null),_0x9b8fc4(_0x36fb27[_0x300621('0x55a')])):_0x5ce1a8[_0x300621('0x55a')][_0x300621('0x1842')]({'id':_0x36fb27[_0x300621('0x55a')]['id']},_0x36fb27['interval'])['$promise']['then'](function(_0x1a9655){const _0x1276fe=_0x300621,_0x2ff239=_0x3c8d8a()[_0x1276fe('0x18ab')](_0x36fb27[_0x1276fe('0x21c4')],{'id':_0x1a9655['id']});_0x2ff239&&_0x3c8d8a()[_0x1276fe('0x9ef')](_0x2ff239,_0x1a9655),_0x50fe89['success']({'title':_0x1276fe('0x39a'),'msg':_0x1276fe('0x227f')}),_0x9b8fc4();})[_0x300621('0x103c')](function(_0x3f8feb){const _0x87c07d=_0x300621;console[_0x87c07d('0x15aa')](_0x3f8feb),_0x36fb27[_0x87c07d('0x1d4a')]=_0x3f8feb[_0x87c07d('0x1e07')][_0x87c07d('0x1d4a')]||[{'message':_0x3f8feb[_0x87c07d('0x1b75')](),'type':_0x87c07d('0xe20')}];});}function _0x9b8fc4(_0x3f5da7){const _0x5e156e=_0x261e54;_0x48ea6e[_0x5e156e('0x1cf4')](_0x3f5da7);}}const _0x56d290=_0x70b7e0,_0x4ca52f=_0x21a6a1['p']+_0x566993('0x388');_0x4178b7[_0x566993('0x17bb')]=[_0x566993('0x2166'),'$scope',_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),'Auth'];function _0x4178b7(_0x2cebf4,_0x165749,_0x3afae0,_0x5dc32b,_0x4052ed,_0x1e3244,_0xcf9504,_0x14ad11,_0x2bca8f,_0x70fe41,_0x55f35b){const _0x266c17=_0x566993,_0x32c44f=this;_0x32c44f[_0x266c17('0x155f')]=_0x55f35b[_0x266c17('0x14d4')](),_0x32c44f[_0x266c17('0x55a')]={},_0x32c44f[_0x266c17('0x9a7')]={'count':0x0,'rows':[]},_0x32c44f[_0x266c17('0x15f5')]=[],_0x32c44f[_0x266c17('0x1dc1')],_0x32c44f[_0x266c17('0x25ab')]={'animation':0x64,'onSort':function(_0x553fa4){const _0x18d19b=_0x266c17;_0x70fe41['interval'][_0x18d19b('0x1398')]({'id':_0x32c44f[_0x18d19b('0x55a')]['id']},_0x553fa4[_0x18d19b('0x1008')])[_0x18d19b('0x1964')]['then'](function(_0x994b6e){const _0x2ff534=_0x18d19b;_0x32c44f[_0x2ff534('0x9a7')][_0x2ff534('0x6aa')]=_0x994b6e;})[_0x18d19b('0x103c')](function(_0x5d198f){const _0xe79055=_0x18d19b;_0x2bca8f[_0xe79055('0x15aa')]({'title':_0x5d198f[_0xe79055('0x276f')]?'API:'+_0x5d198f[_0xe79055('0x276f')]+'\x20-\x20'+_0x5d198f[_0xe79055('0x2696')]:_0xe79055('0x52d'),'msg':_0x5d198f[_0xe79055('0x1e07')]?JSON[_0xe79055('0x100b')](_0x5d198f[_0xe79055('0x1e07')]):_0x5d198f['toString']()});});}},_0x32c44f['query']={'fields':_0x266c17('0x1487'),'nolimit':_0x266c17('0x799'),'limit':0xa,'page':0x1},_0x32c44f['init']=_0x26e884,_0x32c44f[_0x266c17('0x2051')]=_0x5a97c8,_0x32c44f['success']=_0x4a0541,_0x32c44f[_0x266c17('0x1d0b')]=_0xe86321,_0x32c44f[_0x266c17('0x14bc')]=_0x26e84b,_0x32c44f[_0x266c17('0x1b03')]=_0x261f1e,_0x32c44f[_0x266c17('0x20cd')]=_0x48d64a,_0x32c44f[_0x266c17('0x143e')]=_0x19e93e;function _0x26e884(_0xec401e,_0x28df07){const _0x997086=_0x266c17;_0x32c44f[_0x997086('0x55a')]=_0xec401e,_0x32c44f[_0x997086('0x1dc1')]=typeof _0x28df07!==_0x997086('0x6e5')?_0x28df07:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32c44f[_0x997086('0x25ab')][_0x997086('0x6fc')]=!_0x32c44f[_0x997086('0x1dc1')][_0x997086('0x1f3d')]?!![]:![],_0x32c44f[_0x997086('0xc49')]['id']=_0x32c44f[_0x997086('0x55a')]['id'],_0xe86321();}function _0x5a97c8(_0x1f56da,_0x4beb00){const _0x17dddf=_0x266c17,_0x1714a9=_0xcf9504['confirm']()[_0x17dddf('0x20d6')](_0x17dddf('0x21bc'))[_0x17dddf('0xf8b')](''+(_0x1f56da[_0x17dddf('0x10ad')]||_0x1f56da['id']&&_0x3c8d8a()[_0x17dddf('0x5ba')](_0x17dddf('0x131e'))+_0x1f56da['id']||_0x17dddf('0x55a'))+_0x17dddf('0x24be')+'\x20will\x20be\x20deleted.')[_0x17dddf('0x217')]('delete\x20interval')[_0x17dddf('0x21de')](_0x4beb00)['ok']('OK')[_0x17dddf('0x1e1f')](_0x17dddf('0x468'));_0xcf9504[_0x17dddf('0x1cb7')](_0x1714a9)[_0x17dddf('0x173b')](function(){_0x48d64a(_0x1f56da);},function(){const _0x3a03e1=_0x17dddf;console[_0x3a03e1('0xe37')](_0x3a03e1('0x468'));});}function _0x4a0541(_0x22662b){const _0x468828=_0x266c17;_0x32c44f[_0x468828('0x9a7')]=_0x22662b||{'count':0x0,'rows':[]};}function _0xe86321(){const _0x37849b=_0x266c17;_0x32c44f['query']['offset']=(_0x32c44f[_0x37849b('0xc49')][_0x37849b('0x182e')]-0x1)*_0x32c44f[_0x37849b('0xc49')][_0x37849b('0x3e')],_0x32c44f['promise']=_0x70fe41[_0x37849b('0x55a')][_0x37849b('0xf77')](_0x32c44f[_0x37849b('0xc49')],_0x4a0541)[_0x37849b('0x1964')];}function _0x26e84b(_0x171f9c,_0x2836d3){const _0x32b55a=_0x266c17;_0xcf9504['show']({'controller':_0x32b55a('0x1ac3'),'controllerAs':'vm','templateUrl':_0x4ca52f,'parent':angular[_0x32b55a('0xb6d')](_0x14ad11[_0x32b55a('0x1a5')]),'targetEvent':_0x171f9c,'clickOutsideToClose':!![],'locals':{'interval':_0x2836d3,'intervals':_0x32c44f['intervalIntervals'][_0x32b55a('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x32c44f['crudPermissions']}});}function _0x48d64a(_0x4509c8){const _0x4fb6d7=_0x266c17;_0x70fe41[_0x4fb6d7('0x55a')][_0x4fb6d7('0x15e8')]({'id':_0x4509c8['id']})[_0x4fb6d7('0x1964')]['then'](function(){const _0x5067ea=_0x4fb6d7;_0x3c8d8a()[_0x5067ea('0x1a8b')](_0x32c44f[_0x5067ea('0x9a7')][_0x5067ea('0x6aa')],{'id':_0x4509c8['id']}),_0x32c44f['intervalIntervals'][_0x5067ea('0x1a2f')]-=0x1,!_0x32c44f[_0x5067ea('0x9a7')][_0x5067ea('0x6aa')]['length']&&_0xe86321(),_0x2bca8f[_0x5067ea('0xdfe')]({'title':_0x5067ea('0xc03'),'msg':_0x4509c8[_0x5067ea('0x10ad')]?_0x4509c8[_0x5067ea('0x10ad')]+_0x5067ea('0x25d2'):''});})['catch'](function(_0x52db01){const _0x2767ae=_0x4fb6d7;if(_0x52db01['data']&&_0x52db01['data'][_0x2767ae('0x1d4a')]&&_0x52db01[_0x2767ae('0x1e07')]['errors'][_0x2767ae('0x543')]){_0x32c44f[_0x2767ae('0x1d4a')]=_0x52db01[_0x2767ae('0x1e07')]['errors']||[{'message':_0x52db01['toString'](),'type':_0x2767ae('0x2419')}];for(let _0x171740=0x0;_0x171740<_0x52db01[_0x2767ae('0x1e07')][_0x2767ae('0x1d4a')][_0x2767ae('0x543')];_0x171740++){_0x2bca8f['error']({'title':_0x52db01['data'][_0x2767ae('0x1d4a')][_0x171740][_0x2767ae('0x1810')],'msg':_0x52db01['data']['errors'][_0x171740]['message']});}}else _0x2bca8f[_0x2767ae('0x15aa')]({'title':_0x52db01[_0x2767ae('0x276f')]?'API:'+_0x52db01[_0x2767ae('0x276f')]+_0x2767ae('0x160c')+_0x52db01['statusText']:_0x2767ae('0x2419'),'msg':_0x52db01[_0x2767ae('0x1e07')]?JSON['stringify'](_0x52db01[_0x2767ae('0x1e07')]['message']):_0x52db01['message']||_0x52db01[_0x2767ae('0x1b75')]()});});}function _0x261f1e(){const _0x242757=_0x266c17,_0x5084a=angular[_0x242757('0x2e3')](_0x32c44f[_0x242757('0x15f5')]);return _0x32c44f['selectedIntervalIntervals']=[],_0x5084a;}function _0x19e93e(_0x558a43){const _0x4a8949=_0x266c17,_0x4f942e=_0xcf9504['confirm']()[_0x4a8949('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?')[_0x4a8949('0xf8b')](_0x4a8949('0x15b9')+_0x32c44f['selectedIntervalIntervals'][_0x4a8949('0x543')]+_0x4a8949('0xcb4')+_0x4a8949('0xd23'))[_0x4a8949('0x217')](_0x4a8949('0x15ca'))[_0x4a8949('0x21de')](_0x558a43)['ok']('OK')[_0x4a8949('0x1e1f')](_0x4a8949('0x468'));_0xcf9504[_0x4a8949('0x1cb7')](_0x4f942e)['then'](function(){const _0x5adbd0=_0x4a8949;_0x32c44f['selectedIntervalIntervals'][_0x5adbd0('0xa6a')](function(_0x33edcf){_0x48d64a(_0x33edcf);}),_0x32c44f['selectedIntervalIntervals']=[];});}let _0x53dc9c=!![],_0x3e52d1=0x1;_0x165749[_0x266c17('0x1bdb')](_0x266c17('0x5b8'),function(_0x4bd4cb,_0x42b017){const _0x5d20b5=_0x266c17;_0x53dc9c?_0x1e3244(function(){_0x53dc9c=![];}):(!_0x42b017&&(_0x3e52d1=_0x32c44f[_0x5d20b5('0xc49')][_0x5d20b5('0x182e')]),_0x4bd4cb!==_0x42b017&&(_0x32c44f['query']['page']=0x1),!_0x4bd4cb&&(_0x32c44f[_0x5d20b5('0xc49')][_0x5d20b5('0x182e')]=_0x3e52d1),_0xe86321());});}const _0x44cf5b=_0x4178b7;_0x2a515c[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x55a'),_0x566993('0x170e')];function _0x2a515c(_0x421c96,_0x45c84a,_0x2d31c4,_0x2c9b3e,_0x4ac6a6,_0x3bfef6,_0x3a84b8,_0xbdc884,_0x3367ca,_0x58f92f,_0x52b56e,_0x1db12f){const _0x58830d=_0x566993,_0x2d6fb9=this;_0x2d6fb9[_0x58830d('0x155f')]=_0x58f92f[_0x58830d('0x14d4')](),_0x2d6fb9[_0x58830d('0x1a29')]=_0x3bfef6,_0x2d6fb9['setting']=_0x3a84b8,_0x2d6fb9['passwordPattern']=_0x2d6fb9[_0x58830d('0x251')][_0x58830d('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d6fb9[_0x58830d('0x614')]=_0x45c84a['protocol']()+'://'+_0x45c84a[_0x58830d('0x4d1')](),_0x2d6fb9['interval']=_0x52b56e||_0x421c96['params']['interval']||{},_0x2d6fb9[_0x58830d('0x170e')]=_0x1db12f&&_0x1db12f['count']==0x1?_0x1db12f['rows'][0x0]:null,_0x2d6fb9[_0x58830d('0x1dc1')]=_0x58f92f[_0x58830d('0xde6')](_0x2d6fb9[_0x58830d('0x170e')]?_0x2d6fb9[_0x58830d('0x170e')][_0x58830d('0x1dc1')]:null),_0x2d6fb9[_0x58830d('0xb0')]={},_0x2d6fb9[_0x58830d('0xd5f')]=_0x421c96[_0x58830d('0x197a')][_0x58830d('0x1e66')]||0x0,_0x2d6fb9['alert']=_0x3367ca[_0x58830d('0x2787')],_0x2d6fb9[_0x58830d('0x2791')]=_0x13d9c8,_0x2d6fb9[_0x58830d('0x1401')]=_0x69827f;function _0x13d9c8(){const _0x33eddb=_0x58830d;_0x421c96['go'](_0x33eddb('0x1396'),{},{'reload':_0x33eddb('0x1396')});}function _0x69827f(){const _0x408c28=_0x58830d;_0xbdc884['interval']['update']({'id':_0x2d6fb9[_0x408c28('0x55a')]['id']},_0x2d6fb9[_0x408c28('0x55a')])[_0x408c28('0x1964')][_0x408c28('0x173b')](function(){const _0x58bb3b=_0x408c28;_0x3367ca[_0x58bb3b('0xdfe')]({'title':_0x58bb3b('0x405'),'msg':_0x2d6fb9[_0x58bb3b('0x55a')][_0x58bb3b('0x10ad')]?_0x2d6fb9[_0x58bb3b('0x55a')]['name']+_0x58bb3b('0x1fd6'):''});})['catch'](function(_0x1e2376){const _0x56d04d=_0x408c28;_0x3367ca[_0x56d04d('0x15aa')]({'title':_0x1e2376[_0x56d04d('0x276f')]?_0x56d04d('0x137')+_0x1e2376[_0x56d04d('0x276f')]+_0x56d04d('0x160c')+_0x1e2376[_0x56d04d('0x2696')]:'SYSTEM:GETinterval','msg':_0x1e2376[_0x56d04d('0x1e07')]?JSON[_0x56d04d('0x100b')](_0x1e2376[_0x56d04d('0x1e07')]):_0x1e2376[_0x56d04d('0x1b75')]()});});}}const _0x3c5ed7=_0x2a515c,_0x3b89e7=_0x21a6a1['p']+_0x566993('0x27f8');_0x8c0db3[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x21c4'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x8c0db3(_0x1b933b,_0x173ad0,_0x1fc32a,_0x1743ef,_0x304c4d,_0x5f1a7c,_0x521f8e,_0x4e4b97,_0x48ea86,_0x1d55a4,_0x13de8f,_0xb63404,_0x5accbe,_0x4f3b53,_0x5e684f,_0x42143d,_0x48ca3d){const _0x164ed4=_0x566993,_0x56bafe=this;_0x56bafe[_0x164ed4('0x1a29')]=_0x42143d,_0x56bafe[_0x164ed4('0x251')]=_0x48ca3d,_0x56bafe[_0x164ed4('0x155f')]=_0x5e684f['getCurrentUser'](),_0x56bafe['intervals']=_0x48ea86||{'count':0x0,'rows':[]},_0x56bafe[_0x164ed4('0x257b')]=_0x1d55a4,_0x56bafe[_0x164ed4('0x170e')]=_0x13de8f&&_0x13de8f[_0x164ed4('0x1a2f')]==0x1?_0x13de8f[_0x164ed4('0x6aa')][0x0]:null,_0x56bafe[_0x164ed4('0x1dc1')]=_0x5e684f[_0x164ed4('0xde6')](_0x56bafe[_0x164ed4('0x170e')]?_0x56bafe[_0x164ed4('0x170e')][_0x164ed4('0x1dc1')]:null),_0x56bafe['table']=_0x164ed4('0x21c4'),_0x56bafe[_0x164ed4('0x14d6')]='',_0x56bafe[_0x164ed4('0x2303')]=null,_0x56bafe[_0x164ed4('0xe72')]=[],_0x56bafe[_0x164ed4('0xc49')]={'fields':_0x164ed4('0x2275'),'sort':'-updatedAt','IntervalId':_0x164ed4('0x877'),'limit':0xa,'page':0x1},_0x56bafe['editstate']=_0x57bd0d,_0x56bafe[_0x164ed4('0x1a20')]=_0x1036ab,_0x56bafe[_0x164ed4('0xdfe')]=_0x16005c,_0x56bafe[_0x164ed4('0xf77')]=_0x3855e7,_0x56bafe[_0x164ed4('0x1b6e')]=_0xec34d6,_0x56bafe[_0x164ed4('0x1e26')]=_0x256de5,_0x56bafe[_0x164ed4('0xe7')]=_0x16a3da,_0x56bafe[_0x164ed4('0x1b02')]=_0x5b450b,_0x56bafe[_0x164ed4('0x1900')]=_0x215ee3,_0x56bafe[_0x164ed4('0x2043')]=_0x25b353;function _0x57bd0d(_0x2e3475){const _0x39459f=_0x164ed4;_0x1fc32a['go']('app.tools.intervals.edit',{'id':_0x2e3475['id'],'interval':_0x2e3475,'crudPermissions':_0x56bafe[_0x39459f('0x1dc1')]});}function _0x1036ab(_0xb23c11,_0x3efe6a){const _0x4a999f=_0x164ed4,_0x3a63c2=_0x304c4d['confirm']()['title'](_0x4a999f('0x5bb')+_0x3c8d8a()['startCase']('interval')+'?')[_0x4a999f('0xf8b')](_0x4a999f('0x15b9')+(_0xb23c11[_0x4a999f('0x10ad')]||_0x4a999f('0x55a'))+_0x4a999f('0x24be')+'\x20will\x20be\x20deleted.')[_0x4a999f('0x217')](_0x4a999f('0x261c'))['targetEvent'](_0x3efe6a)['ok']('OK')[_0x4a999f('0x1e1f')](_0x4a999f('0x468'));_0x304c4d['show'](_0x3a63c2)[_0x4a999f('0x173b')](function(){_0x256de5(_0xb23c11);},function(){const _0x597153=_0x4a999f;console['log'](_0x597153('0x468'));});}let _0x33fdda=!![],_0x53df1b=0x1;_0x1b933b[_0x164ed4('0x1bdb')](_0x164ed4('0x157b'),function(_0x1d7c38,_0x5a293f){const _0x3a5100=_0x164ed4;_0x33fdda?_0x521f8e(function(){_0x33fdda=![];}):(!_0x5a293f&&(_0x53df1b=_0x56bafe[_0x3a5100('0xc49')][_0x3a5100('0x182e')]),_0x1d7c38!==_0x5a293f&&(_0x56bafe['query'][_0x3a5100('0x182e')]=0x1),!_0x1d7c38&&(_0x56bafe[_0x3a5100('0xc49')][_0x3a5100('0x182e')]=_0x53df1b),_0x56bafe['getIntervals']());});function _0x16005c(_0x302783){_0x56bafe['intervals']=_0x302783||{'count':0x0,'rows':[]};}function _0x3855e7(){const _0x5bdc6b=_0x164ed4;_0x56bafe[_0x5bdc6b('0xc49')][_0x5bdc6b('0x17f0')]=(_0x56bafe[_0x5bdc6b('0xc49')][_0x5bdc6b('0x182e')]-0x1)*_0x56bafe['query'][_0x5bdc6b('0x3e')],_0x5e684f[_0x5bdc6b('0x1b4e')]('admin')?_0x56bafe[_0x5bdc6b('0x2219')]=_0xb63404[_0x5bdc6b('0x55a')][_0x5bdc6b('0x1d97')](_0x56bafe['query'],_0x16005c)[_0x5bdc6b('0x1964')]:(_0x56bafe['query']['id']=_0x56bafe['userProfile']['id'],_0x56bafe[_0x5bdc6b('0xc49')]['section']=_0x5bdc6b('0xb7a'),_0x56bafe[_0x5bdc6b('0x2219')]=_0xb63404[_0x5bdc6b('0x257b')]['getResources'](_0x56bafe[_0x5bdc6b('0xc49')],_0x16005c)[_0x5bdc6b('0x1964')]);}function _0xec34d6(_0x208bbc,_0x357ffc){const _0xe04731=_0x164ed4;_0x304c4d[_0xe04731('0x1cb7')]({'controller':_0xe04731('0x2171'),'controllerAs':'vm','templateUrl':_0x3b89e7,'parent':angular[_0xe04731('0xb6d')](_0x5f1a7c[_0xe04731('0x1a5')]),'targetEvent':_0x208bbc,'clickOutsideToClose':!![],'locals':{'interval':_0x357ffc,'intervals':_0x56bafe[_0xe04731('0x21c4')][_0xe04731('0x6aa')],'license':_0x56bafe['license'],'setting':_0x56bafe[_0xe04731('0x251')],'crudPermissions':_0x56bafe[_0xe04731('0x1dc1')]}});}function _0x256de5(_0x4d1da2){const _0x20ca87=_0x164ed4;_0xb63404['interval']['delete']({'id':_0x4d1da2['id']})[_0x20ca87('0x1964')][_0x20ca87('0x173b')](function(){const _0x26694b=_0x20ca87;_0x3c8d8a()[_0x26694b('0x1a8b')](_0x56bafe[_0x26694b('0x21c4')][_0x26694b('0x6aa')],{'id':_0x4d1da2['id']}),_0x56bafe[_0x26694b('0x21c4')][_0x26694b('0x1a2f')]-=0x1,!_0x56bafe[_0x26694b('0x21c4')][_0x26694b('0x6aa')][_0x26694b('0x543')]&&_0x56bafe['getIntervals'](),_0x4f3b53[_0x26694b('0xdfe')]({'title':_0x3c8d8a()[_0x26694b('0x10e')]('Interval')+'\x20deleted!','msg':_0x4d1da2['name']?_0x4d1da2[_0x26694b('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x20ca87('0x103c')](function(_0x439736){const _0x4ff5fc=_0x20ca87;if(_0x439736[_0x4ff5fc('0x1e07')]&&_0x439736[_0x4ff5fc('0x1e07')][_0x4ff5fc('0x1d4a')]&&_0x439736['data'][_0x4ff5fc('0x1d4a')]['length']){_0x56bafe['errors']=_0x439736[_0x4ff5fc('0x1e07')][_0x4ff5fc('0x1d4a')]||[{'message':_0x439736[_0x4ff5fc('0x1b75')](),'type':'SYSTEM:DELETEinterval'}];for(let _0x56abef=0x0;_0x56abef<_0x439736[_0x4ff5fc('0x1e07')][_0x4ff5fc('0x1d4a')][_0x4ff5fc('0x543')];_0x56abef++){_0x4f3b53['error']({'title':_0x439736['data']['errors'][_0x56abef][_0x4ff5fc('0x1810')],'msg':_0x439736['data'][_0x4ff5fc('0x1d4a')][_0x56abef][_0x4ff5fc('0x67f')]});}}else _0x4f3b53[_0x4ff5fc('0x15aa')]({'title':_0x439736[_0x4ff5fc('0x276f')]?_0x4ff5fc('0x137')+_0x439736['status']+_0x4ff5fc('0x160c')+_0x439736[_0x4ff5fc('0x2696')]:_0x4ff5fc('0x2242'),'msg':_0x439736[_0x4ff5fc('0x1e07')]?JSON[_0x4ff5fc('0x100b')](_0x439736[_0x4ff5fc('0x1e07')][_0x4ff5fc('0x67f')]):_0x439736[_0x4ff5fc('0x67f')]||_0x439736['toString']()});});}function _0x16a3da(){const _0x54e312=_0x164ed4,_0x10c4cc=angular[_0x54e312('0x2e3')](_0x56bafe['selectedIntervals']);return _0x56bafe[_0x54e312('0xe72')]=[],_0x10c4cc;}function _0x5b450b(_0x183242){const _0x569497=_0x164ed4,_0x5928e4=_0x304c4d[_0x569497('0x1d02')]()[_0x569497('0x20d6')](_0x569497('0x509'))['htmlContent'](''+_0x56bafe[_0x569497('0xe72')][_0x569497('0x543')]+_0x569497('0xcb4')+_0x569497('0xd23'))[_0x569497('0x217')](_0x569497('0xce8'))[_0x569497('0x21de')](_0x183242)['ok']('OK')[_0x569497('0x1e1f')]('CANCEL');_0x304c4d['show'](_0x5928e4)[_0x569497('0x173b')](function(){const _0x3d6326=_0x569497;_0x56bafe['selectedIntervals'][_0x3d6326('0xa6a')](function(_0x11e72d){_0x256de5(_0x11e72d);}),_0x56bafe['selectedIntervals']=[];});}function _0x215ee3(){const _0x39244a=_0x164ed4;_0x56bafe[_0x39244a('0xe72')]=[];}function _0x25b353(){const _0x4c502d=_0x164ed4;_0x56bafe[_0x4c502d('0xe72')]=_0x56bafe[_0x4c502d('0x21c4')][_0x4c502d('0x6aa')];}}const _0x1a51c7=_0x8c0db3;_0x1486f3[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1d66'),_0x566993('0x1751'),_0x566993('0xbd4'),'Auth',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x1486f3(_0x4c3149,_0x1e908f,_0x2e920e,_0x150008,_0x3f56be,_0x1238e2,_0x119826,_0xbcc24e,_0x220b59,_0x35b0ed,_0x38e3f3,_0x17d5e7,_0x498eea,_0xbbd61f){const _0x37d185=_0x566993,_0x22cd45=this;_0x22cd45[_0x37d185('0x155f')]=_0x38e3f3[_0x37d185('0x14d4')](),_0x22cd45[_0x37d185('0x1d4a')]=[],_0x22cd45[_0x37d185('0x251')]=_0x498eea,_0x22cd45[_0x37d185('0x1a29')]=_0x17d5e7,_0x22cd45[_0x37d185('0x1dc1')]=_0xbbd61f,_0x22cd45[_0x37d185('0xb0')]={},_0x22cd45[_0x37d185('0x644')]=_0x22cd45[_0x37d185('0x251')]&&_0x22cd45[_0x37d185('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x22cd45[_0x37d185('0x20d6')]=_0x37d185('0x23d4'),_0x22cd45[_0x37d185('0x1751')]=angular['copy'](_0x220b59),_0x22cd45[_0x37d185('0x1d66')]=_0xbcc24e,_0x22cd45[_0x37d185('0x1180')]=![];!_0x22cd45['pause']&&(_0x22cd45[_0x37d185('0x1751')]={},_0x22cd45[_0x37d185('0x20d6')]=_0x37d185('0x1d49'),_0x22cd45['newPause']=!![]);_0x22cd45[_0x37d185('0x554')]=_0x4f75ca,_0x22cd45[_0x37d185('0x7f2')]=_0x28b920,_0x22cd45[_0x37d185('0x7bb')]=_0x21c138,_0x22cd45[_0x37d185('0x11ae')]=_0x19de30,_0x22cd45[_0x37d185('0x18e2')]=_0xf65b84;function _0x4f75ca(){const _0x443db7=_0x37d185;_0x22cd45[_0x443db7('0x1d4a')]=[],_0x35b0ed[_0x443db7('0x1751')][_0x443db7('0x1195')](_0x22cd45[_0x443db7('0x1751')])[_0x443db7('0x1964')]['then'](function(_0x197318){const _0x231541=_0x443db7;_0x22cd45[_0x231541('0x1d66')][_0x231541('0x1377')](_0x197318[_0x231541('0xf1f')]()),_0x119826[_0x231541('0xdfe')]({'title':_0x231541('0x923'),'msg':_0x22cd45['pause'][_0x231541('0x10ad')]?_0x22cd45['pause'][_0x231541('0x10ad')]+_0x231541('0x209a'):''}),_0xf65b84(_0x197318);})[_0x443db7('0x103c')](function(_0x148b15){const _0x2ef214=_0x443db7;if(_0x148b15[_0x2ef214('0x1e07')]&&_0x148b15[_0x2ef214('0x1e07')][_0x2ef214('0x1d4a')]&&_0x148b15[_0x2ef214('0x1e07')][_0x2ef214('0x1d4a')][_0x2ef214('0x543')]){_0x22cd45[_0x2ef214('0x1d4a')]=_0x148b15[_0x2ef214('0x1e07')][_0x2ef214('0x1d4a')]||[{'message':_0x148b15[_0x2ef214('0x1b75')](),'type':'api.pause.save'}];for(let _0x13f1d0=0x0;_0x13f1d0<_0x148b15[_0x2ef214('0x1e07')]['errors'][_0x2ef214('0x543')];_0x13f1d0+=0x1){_0x119826['error']({'title':_0x148b15['data'][_0x2ef214('0x1d4a')][_0x13f1d0]['type'],'msg':_0x148b15[_0x2ef214('0x1e07')][_0x2ef214('0x1d4a')][_0x13f1d0]['message']});}}else _0x119826['error']({'title':_0x148b15[_0x2ef214('0x276f')]?_0x2ef214('0x137')+_0x148b15[_0x2ef214('0x276f')]+'\x20-\x20'+_0x148b15['statusText']:_0x2ef214('0x132a'),'msg':_0x148b15[_0x2ef214('0x1e07')]?JSON[_0x2ef214('0x100b')](_0x148b15[_0x2ef214('0x1e07')][_0x2ef214('0x67f')]):_0x148b15[_0x2ef214('0x1b75')]()});});}function _0x28b920(){const _0x130ded=_0x37d185;_0x22cd45[_0x130ded('0x1d4a')]=[],_0x35b0ed[_0x130ded('0x1751')][_0x130ded('0x1842')]({'id':_0x22cd45[_0x130ded('0x1751')]['id']},_0x22cd45['pause'])[_0x130ded('0x1964')][_0x130ded('0x173b')](function(_0x32898e){const _0x360699=_0x130ded,_0x2c8792=_0x3c8d8a()['find'](_0x22cd45[_0x360699('0x1d66')],{'id':_0x32898e['id']});_0x2c8792&&_0x3c8d8a()[_0x360699('0x9ef')](_0x2c8792,_0x3c8d8a()[_0x360699('0x2114')](_0x32898e['toJSON'](),_0x3c8d8a()['keys'](_0x2c8792))),_0x119826[_0x360699('0xdfe')]({'title':_0x360699('0xf8d'),'msg':_0x22cd45[_0x360699('0x1751')][_0x360699('0x10ad')]?_0x22cd45[_0x360699('0x1751')]['name']+'\x20has\x20been\x20saved!':''}),_0xf65b84(_0x32898e);})[_0x130ded('0x103c')](function(_0x357ef0){const _0x15feeb=_0x130ded;if(_0x357ef0[_0x15feeb('0x1e07')]&&_0x357ef0[_0x15feeb('0x1e07')][_0x15feeb('0x1d4a')]&&_0x357ef0[_0x15feeb('0x1e07')]['errors'][_0x15feeb('0x543')]){_0x22cd45['errors']=_0x357ef0[_0x15feeb('0x1e07')]['errors']||[{'message':_0x357ef0['toString'](),'type':_0x15feeb('0x11b1')}];for(let _0x9750ef=0x0;_0x9750ef<_0x357ef0['data'][_0x15feeb('0x1d4a')][_0x15feeb('0x543')];_0x9750ef++){_0x119826['error']({'title':_0x357ef0[_0x15feeb('0x1e07')][_0x15feeb('0x1d4a')][_0x9750ef][_0x15feeb('0x1810')],'msg':_0x357ef0[_0x15feeb('0x1e07')]['errors'][_0x9750ef][_0x15feeb('0x67f')]});}}else _0x119826[_0x15feeb('0x15aa')]({'title':_0x357ef0['status']?_0x15feeb('0x137')+_0x357ef0[_0x15feeb('0x276f')]+'\x20-\x20'+_0x357ef0[_0x15feeb('0x2696')]:_0x15feeb('0x11b1'),'msg':_0x357ef0[_0x15feeb('0x1e07')]?JSON[_0x15feeb('0x100b')](_0x357ef0[_0x15feeb('0x1e07')][_0x15feeb('0x67f')]):_0x357ef0['toString']()});});}function _0x21c138(_0x129f9f){const _0x89e3e5=_0x37d185;_0x22cd45[_0x89e3e5('0x1d4a')]=[];const _0x4a678c=_0x150008[_0x89e3e5('0x1d02')]()[_0x89e3e5('0x20d6')](_0x89e3e5('0x8ef'))[_0x89e3e5('0x732')](_0x89e3e5('0x235a'))[_0x89e3e5('0x217')]('Delete\x20Pause')['ok']('Delete')[_0x89e3e5('0x1e1f')](_0x89e3e5('0x1d4e'))[_0x89e3e5('0x21de')](_0x129f9f);_0x150008[_0x89e3e5('0x1cb7')](_0x4a678c)[_0x89e3e5('0x173b')](function(){const _0x59457b=_0x89e3e5;_0x35b0ed[_0x59457b('0x1751')][_0x59457b('0x15e8')]({'id':_0x22cd45[_0x59457b('0x1751')]['id']})['$promise'][_0x59457b('0x173b')](function(){const _0x126a7e=_0x59457b;_0x3c8d8a()[_0x126a7e('0x1a8b')](_0x22cd45[_0x126a7e('0x1d66')],{'id':_0x22cd45['pause']['id']}),_0x119826['success']({'title':_0x126a7e('0x12a9'),'msg':(_0x22cd45[_0x126a7e('0x1751')][_0x126a7e('0x10ad')]||_0x126a7e('0x1751'))+_0x126a7e('0x25d2')}),_0xf65b84(_0x22cd45['pause']);})['catch'](function(_0x27999d){const _0x1d8f81=_0x59457b;if(_0x27999d[_0x1d8f81('0x1e07')]&&_0x27999d['data'][_0x1d8f81('0x1d4a')]&&_0x27999d[_0x1d8f81('0x1e07')][_0x1d8f81('0x1d4a')][_0x1d8f81('0x543')]){_0x22cd45[_0x1d8f81('0x1d4a')]=_0x27999d['data'][_0x1d8f81('0x1d4a')]||[{'message':_0x27999d[_0x1d8f81('0x1b75')](),'type':_0x1d8f81('0x152c')}];for(let _0x88934d=0x0;_0x88934d<_0x27999d['data'][_0x1d8f81('0x1d4a')]['length'];_0x88934d++){_0x119826[_0x1d8f81('0x15aa')]({'title':_0x27999d[_0x1d8f81('0x1e07')][_0x1d8f81('0x1d4a')][_0x88934d][_0x1d8f81('0x1810')],'msg':_0x27999d['data']['errors'][_0x88934d][_0x1d8f81('0x67f')]});}}else _0x119826[_0x1d8f81('0x15aa')]({'title':_0x27999d[_0x1d8f81('0x276f')]?_0x1d8f81('0x137')+_0x27999d[_0x1d8f81('0x276f')]+_0x1d8f81('0x160c')+_0x27999d[_0x1d8f81('0x2696')]:_0x1d8f81('0x152c'),'msg':_0x27999d[_0x1d8f81('0x1e07')]?JSON[_0x1d8f81('0x100b')](_0x27999d[_0x1d8f81('0x1e07')][_0x1d8f81('0x67f')]):_0x27999d[_0x1d8f81('0x67f')]||_0x27999d[_0x1d8f81('0x1b75')]()});});},function(){});}function _0x19de30(_0x325ce0){return _0x325ce0===null?undefined:new Date(_0x325ce0);}function _0xf65b84(_0x397ea6){const _0x47d860=_0x37d185;_0x150008[_0x47d860('0x1cf4')](_0x397ea6);}}const _0x3a71ff=_0x1486f3,_0x4833f4=_0x21a6a1['p']+_0x566993('0x10db');_0x3c0d55[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x1d66'),_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x3c0d55(_0x3af9b8,_0x53ba48,_0x6d5f7d,_0x50da2d,_0x3dd17b,_0x25a800,_0x17cde4,_0xe211a5,_0x1aba12,_0x4a0e1e,_0x5d0770,_0x1433ad,_0x1295e9,_0x4fa4e9,_0x4e825f,_0x3eab99,_0x506fb9){const _0x4af4a4=_0x566993,_0x4ef26f=this;_0x4ef26f[_0x4af4a4('0x1a29')]=_0x3eab99,_0x4ef26f[_0x4af4a4('0x251')]=_0x506fb9,_0x4ef26f['currentUser']=_0x4e825f[_0x4af4a4('0x14d4')](),_0x4ef26f[_0x4af4a4('0x1d66')]=_0x1aba12||{'count':0x0,'rows':[]},_0x4ef26f[_0x4af4a4('0x257b')]=_0x4a0e1e,_0x4ef26f['userProfileSection']=_0x5d0770&&_0x5d0770['count']==0x1?_0x5d0770[_0x4af4a4('0x6aa')][0x0]:null,_0x4ef26f[_0x4af4a4('0x1dc1')]=_0x4e825f['parseCrudPermissions'](_0x4ef26f[_0x4af4a4('0x170e')]?_0x4ef26f[_0x4af4a4('0x170e')][_0x4af4a4('0x1dc1')]:null),_0x4ef26f['table']=_0x4af4a4('0x1d66'),_0x4ef26f['listOrder']='',_0x4ef26f[_0x4af4a4('0x2303')]=null,_0x4ef26f[_0x4af4a4('0x1ce4')]=[],_0x4ef26f['query']={'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x4ef26f[_0x4af4a4('0x19eb')]=_0x3bf181,_0x4ef26f[_0x4af4a4('0x1a20')]=_0x1aed64,_0x4ef26f[_0x4af4a4('0xdfe')]=_0x49b284,_0x4ef26f[_0x4af4a4('0x20c4')]=_0x110797,_0x4ef26f[_0x4af4a4('0x1b73')]=_0x5e312f,_0x4ef26f['deletePause']=_0x1f15fb,_0x4ef26f[_0x4af4a4('0x2672')]=_0x4a53db,_0x4ef26f[_0x4af4a4('0x12b6')]=_0x3cd143,_0x4ef26f['deselectPauses']=_0x273109,_0x4ef26f[_0x4af4a4('0x63b')]=_0x3f7094;function _0x3bf181(_0x581233,_0x17f671){const _0x322f00=_0x4af4a4;_0x3dd17b[_0x322f00('0x1cb7')]({'controller':_0x322f00('0x1d63'),'controllerAs':'vm','templateUrl':_0x4833f4,'parent':angular[_0x322f00('0xb6d')](_0x25a800['body']),'targetEvent':_0x17f671,'clickOutsideToClose':!![],'locals':{'pause':_0x581233,'pauses':_0x4ef26f['pauses'][_0x322f00('0x6aa')],'license':_0x4ef26f[_0x322f00('0x1a29')],'setting':null,'crudPermissions':_0x4ef26f['crudPermissions']}});}function _0x1aed64(_0x58c113,_0x14146a){const _0x44f259=_0x4af4a4,_0x22f0c5=_0x3dd17b['confirm']()[_0x44f259('0x20d6')](_0x44f259('0x5bb')+_0x3c8d8a()[_0x44f259('0x10e')]('pause')+'?')[_0x44f259('0xf8b')](_0x44f259('0x15b9')+(_0x58c113[_0x44f259('0x10ad')]||_0x44f259('0x1751'))+_0x44f259('0x24be')+_0x44f259('0xd23'))[_0x44f259('0x217')](_0x44f259('0x1a7c'))[_0x44f259('0x21de')](_0x14146a)['ok']('OK')['cancel']('CANCEL');_0x3dd17b['show'](_0x22f0c5)[_0x44f259('0x173b')](function(){_0x1f15fb(_0x58c113);},function(){const _0x40ce32=_0x44f259;console[_0x40ce32('0xe37')](_0x40ce32('0x468'));});}let _0x494ef3=!![],_0x31b49c=0x1;_0x3af9b8[_0x4af4a4('0x1bdb')](_0x4af4a4('0x157b'),function(_0x252484,_0x136a0){const _0x4c666a=_0x4af4a4;_0x494ef3?_0x17cde4(function(){_0x494ef3=![];}):(!_0x136a0&&(_0x31b49c=_0x4ef26f['query']['page']),_0x252484!==_0x136a0&&(_0x4ef26f[_0x4c666a('0xc49')][_0x4c666a('0x182e')]=0x1),!_0x252484&&(_0x4ef26f[_0x4c666a('0xc49')][_0x4c666a('0x182e')]=_0x31b49c),_0x4ef26f[_0x4c666a('0x20c4')]());});function _0x49b284(_0x4ae45e){const _0x2a0013=_0x4af4a4;_0x4ef26f[_0x2a0013('0x1d66')]=_0x4ae45e||{'count':0x0,'rows':[]};}function _0x110797(){const _0x20c166=_0x4af4a4;_0x4ef26f[_0x20c166('0xc49')][_0x20c166('0x17f0')]=(_0x4ef26f[_0x20c166('0xc49')][_0x20c166('0x182e')]-0x1)*_0x4ef26f[_0x20c166('0xc49')][_0x20c166('0x3e')],_0x4e825f[_0x20c166('0x1b4e')]('admin')?_0x4ef26f[_0x20c166('0x2219')]=_0x1433ad[_0x20c166('0x1751')][_0x20c166('0x1d97')](_0x4ef26f[_0x20c166('0xc49')],_0x49b284)[_0x20c166('0x1964')]:(_0x4ef26f['query']['id']=_0x4ef26f['userProfile']['id'],_0x4ef26f[_0x20c166('0xc49')][_0x20c166('0x17c9')]=_0x20c166('0xbe4'),_0x4ef26f[_0x20c166('0x2219')]=_0x1433ad[_0x20c166('0x257b')]['getResources'](_0x4ef26f['query'],_0x49b284)[_0x20c166('0x1964')]);}function _0x5e312f(_0x3d876a,_0x30f2d2){const _0x1cfaec=_0x4af4a4;_0x3dd17b[_0x1cfaec('0x1cb7')]({'controller':_0x1cfaec('0x1d63'),'controllerAs':'vm','templateUrl':_0x4833f4,'parent':angular[_0x1cfaec('0xb6d')](_0x25a800[_0x1cfaec('0x1a5')]),'targetEvent':_0x3d876a,'clickOutsideToClose':!![],'locals':{'pause':_0x30f2d2,'pauses':_0x4ef26f[_0x1cfaec('0x1d66')]['rows'],'license':_0x4ef26f['license'],'setting':_0x4ef26f[_0x1cfaec('0x251')],'crudPermissions':_0x4ef26f[_0x1cfaec('0x1dc1')]}});}function _0x1f15fb(_0x53ed16){const _0x3a3c4b=_0x4af4a4;_0x1433ad[_0x3a3c4b('0x1751')][_0x3a3c4b('0x15e8')]({'id':_0x53ed16['id']})['$promise']['then'](function(){const _0x239ffd=_0x3a3c4b;_0x3c8d8a()[_0x239ffd('0x1a8b')](_0x4ef26f[_0x239ffd('0x1d66')][_0x239ffd('0x6aa')],{'id':_0x53ed16['id']}),_0x4ef26f[_0x239ffd('0x1d66')][_0x239ffd('0x1a2f')]-=0x1,!_0x4ef26f[_0x239ffd('0x1d66')][_0x239ffd('0x6aa')]['length']&&_0x4ef26f['getPauses'](),_0x4fa4e9['success']({'title':_0x3c8d8a()['startCase']('Pause')+_0x239ffd('0x1c5e'),'msg':_0x53ed16[_0x239ffd('0x10ad')]?_0x53ed16[_0x239ffd('0x10ad')]+_0x239ffd('0x25d2'):''});})[_0x3a3c4b('0x103c')](function(_0x34e18d){const _0x501491=_0x3a3c4b;if(_0x34e18d[_0x501491('0x1e07')]&&_0x34e18d['data'][_0x501491('0x1d4a')]&&_0x34e18d[_0x501491('0x1e07')]['errors']['length']){_0x4ef26f[_0x501491('0x1d4a')]=_0x34e18d[_0x501491('0x1e07')][_0x501491('0x1d4a')]||[{'message':_0x34e18d[_0x501491('0x1b75')](),'type':'SYSTEM:DELETEpause'}];for(let _0xca7d37=0x0;_0xca7d37<_0x34e18d[_0x501491('0x1e07')][_0x501491('0x1d4a')]['length'];_0xca7d37++){_0x4fa4e9['error']({'title':_0x34e18d[_0x501491('0x1e07')][_0x501491('0x1d4a')][_0xca7d37][_0x501491('0x1810')],'msg':_0x34e18d[_0x501491('0x1e07')]['errors'][_0xca7d37][_0x501491('0x67f')]});}}else _0x4fa4e9[_0x501491('0x15aa')]({'title':_0x34e18d[_0x501491('0x276f')]?_0x501491('0x137')+_0x34e18d[_0x501491('0x276f')]+_0x501491('0x160c')+_0x34e18d['statusText']:_0x501491('0x1925'),'msg':_0x34e18d['data']?JSON['stringify'](_0x34e18d[_0x501491('0x1e07')][_0x501491('0x67f')]):_0x34e18d[_0x501491('0x67f')]||_0x34e18d['toString']()});});}function _0x4a53db(){const _0x334a01=_0x4af4a4,_0x5315b0=angular['copy'](_0x4ef26f[_0x334a01('0x1ce4')]);return _0x4ef26f[_0x334a01('0x1ce4')]=[],_0x5315b0;}function _0x3cd143(_0x166143){const _0x20edb0=_0x4af4a4,_0x58c318=_0x3dd17b[_0x20edb0('0x1d02')]()[_0x20edb0('0x20d6')](_0x20edb0('0xe0e'))[_0x20edb0('0xf8b')](''+_0x4ef26f[_0x20edb0('0x1ce4')]['length']+'\x20selected'+_0x20edb0('0xd23'))[_0x20edb0('0x217')]('delete\x20Pauses')[_0x20edb0('0x21de')](_0x166143)['ok']('OK')[_0x20edb0('0x1e1f')](_0x20edb0('0x468'));_0x3dd17b[_0x20edb0('0x1cb7')](_0x58c318)[_0x20edb0('0x173b')](function(){const _0x1c04a2=_0x20edb0;_0x4ef26f[_0x1c04a2('0x1ce4')]['forEach'](function(_0x3d67df){_0x1f15fb(_0x3d67df);}),_0x4ef26f[_0x1c04a2('0x1ce4')]=[];});}function _0x273109(){const _0x69662f=_0x4af4a4;_0x4ef26f[_0x69662f('0x1ce4')]=[];}function _0x3f7094(){const _0x3f9427=_0x4af4a4;_0x4ef26f[_0x3f9427('0x1ce4')]=_0x4ef26f[_0x3f9427('0x1d66')][_0x3f9427('0x6aa')];}}const _0x4eb643=_0x3c0d55,_0x5ba25c=_0x21a6a1['p']+_0x566993('0x740');_0x4b53ac[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x126c'),'schedule',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x4b53ac(_0x3171bd,_0x1ed259,_0x31c6d1,_0x5417c2,_0x494352,_0x10ebbf,_0x3dcc72,_0xe6239a,_0x3e23b3,_0x46ac17,_0x39411a,_0x446684,_0x34e292,_0x3e817a){const _0x766cef=_0x566993,_0xda7c51=this;_0xda7c51['currentUser']=_0x39411a[_0x766cef('0x14d4')](),_0xda7c51[_0x766cef('0x1d4a')]=[],_0xda7c51[_0x766cef('0x251')]=_0x34e292,_0xda7c51[_0x766cef('0x1a29')]=_0x446684,_0xda7c51[_0x766cef('0x1dc1')]=_0x3e817a,_0xda7c51[_0x766cef('0xb0')]={},_0xda7c51[_0x766cef('0x644')]=_0xda7c51['setting']&&_0xda7c51['setting'][_0x766cef('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xda7c51['title']=_0x766cef('0x27fc'),_0xda7c51[_0x766cef('0xf50')]=angular['copy'](_0x3e23b3),_0xda7c51['schedules']=_0xe6239a,_0xda7c51[_0x766cef('0x7f0')]=![],_0xda7c51['selectedReport']=[],_0xda7c51['query']={'fields':_0x766cef('0xebb'),'limit':0xa,'page':0x1,'sort':_0x766cef('0x1769')};if(!_0xda7c51[_0x766cef('0xf50')])_0xda7c51[_0x766cef('0xf50')]={'output':_0x766cef('0x1554'),'active':!![],'startAt':new Date(),'endAt':new Date(Date[_0x766cef('0xb64')]()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0x766cef('0x659'),'subtractNumber':0x1,'subtractUnit':'days','sendMail':![],'sendIfEmpty':!![]},_0xda7c51[_0x766cef('0x20d6')]=_0x766cef('0x1ba1'),_0xda7c51[_0x766cef('0x7f0')]=!![];else{_0xda7c51['apiName']=_0xda7c51[_0x766cef('0xf50')][_0x766cef('0x12e5')]?_0x766cef('0x1d73'):_0x766cef('0x1ca6');const _0x5d635c=_0xda7c51[_0x766cef('0xf50')][_0x766cef('0x12e5')]?_0xda7c51['schedule']['DefaultReportId']:_0xda7c51['schedule'][_0x766cef('0x2415')];_0x46ac17[_0xda7c51[_0x766cef('0x1521')]][_0x766cef('0x1d97')]({'fields':_0x766cef('0x1942')})[_0x766cef('0x1964')]['then'](function(_0x237fa5){const _0x44bc7f=_0x766cef;_0xda7c51[_0x44bc7f('0xcc3')]=_0x3c8d8a()[_0x44bc7f('0x18ab')](_0x237fa5['rows'],{'id':_0x5d635c}),_0xda7c51[_0x44bc7f('0xf50')][_0x44bc7f('0x358')]=_0xda7c51[_0x44bc7f('0xcc3')]['name'],_0xda7c51[_0x44bc7f('0xc49')][_0x44bc7f('0x941')]=_0xda7c51[_0x44bc7f('0xcc3')][_0x44bc7f('0x941')];});}_0xda7c51[_0x766cef('0x70a')]=_0x4e4a03,_0xda7c51[_0x766cef('0x1111')]=_0x1e2e0c,_0xda7c51[_0x766cef('0x26b1')]=_0x4edf08,_0xda7c51[_0x766cef('0x11ae')]=_0xf1b7c8,_0xda7c51[_0x766cef('0x1ebf')]=_0x2a48db,_0xda7c51['selectReport']=_0x5de4f1,_0xda7c51[_0x766cef('0x64f')]=_0x274278,_0xda7c51[_0x766cef('0x45b')]=_0x5654c5,_0xda7c51[_0x766cef('0x18e2')]=_0x185b68,_0x46ac17[_0x766cef('0x8de')][_0x766cef('0x1d97')]({})[_0x766cef('0x1964')][_0x766cef('0x173b')](function(_0x27075a){const _0x576aae=_0x766cef;_0xda7c51[_0x576aae('0x1f76')]=_0x27075a[_0x576aae('0x6aa')]||[];})[_0x766cef('0x103c')](function(_0x1325bc){const _0xafc7e9=_0x766cef;_0x3dcc72[_0xafc7e9('0x15aa')]({'title':_0x1325bc[_0xafc7e9('0x276f')]?_0xafc7e9('0x137')+_0x1325bc[_0xafc7e9('0x276f')]+_0xafc7e9('0x160c')+_0x1325bc[_0xafc7e9('0x2696')]:_0xafc7e9('0x1bf1'),'msg':_0x1325bc['data']?JSON[_0xafc7e9('0x100b')](_0x1325bc['data']):_0x1325bc['toString']()});}),_0x39411a[_0x766cef('0x1b4e')](_0x766cef('0x79b'))?_0x46ac17[_0x766cef('0x77b')]['get']({'fields':_0x766cef('0xd52'),'sort':_0x766cef('0x10ad')})[_0x766cef('0x1964')]['then'](function(_0x54b9f3){_0xda7c51['mailAccounts']=_0x54b9f3['rows']||[];})[_0x766cef('0x103c')](function(_0x5476f0){const _0x16b368=_0x766cef;_0x3dcc72[_0x16b368('0x15aa')]({'title':_0x5476f0[_0x16b368('0x276f')]?_0x16b368('0x137')+_0x5476f0[_0x16b368('0x276f')]+_0x16b368('0x160c')+_0x5476f0[_0x16b368('0x2696')]:_0x16b368('0x273f'),'msg':_0x5476f0[_0x16b368('0x1e07')]?JSON[_0x16b368('0x100b')](_0x5476f0[_0x16b368('0x1e07')]):_0x5476f0['toString']()});}):_0x46ac17[_0x766cef('0x77b')][_0x766cef('0x1d97')]({'fields':'id,name','sort':'name'})[_0x766cef('0x1964')][_0x766cef('0x173b')](function(_0x55a6a6){const _0x2f72c0=_0x766cef;_0xda7c51[_0x2f72c0('0x2632')]=_0x55a6a6[_0x2f72c0('0x6aa')]||[];})['then'](function(){const _0x556c52=_0x766cef;return _0x46ac17['userProfileSection'][_0x556c52('0x1d97')]({'userProfileId':_0xda7c51[_0x556c52('0x155f')]['userProfileId'],'sectionId':0x25a})['$promise'];})['then'](function(_0x34a7db){const _0x381ac4=_0x766cef,_0x3aecfc=_0x34a7db&&_0x34a7db[_0x381ac4('0x6aa')]?_0x34a7db[_0x381ac4('0x6aa')][0x0]:null;if(!_0x3aecfc){const _0x5dc33a=[];let _0x349e32=null;_0xda7c51[_0x381ac4('0xf50')]&&(_0x349e32=_0x3c8d8a()[_0x381ac4('0x18ab')](_0xda7c51[_0x381ac4('0x2632')],{'id':Number(_0xda7c51[_0x381ac4('0xf50')][_0x381ac4('0x559')])}));for(let _0x1feed7=0x0;_0x1feed7<_0xda7c51[_0x381ac4('0x2632')]['length'];_0x1feed7++){_0x349e32&&_0xda7c51[_0x381ac4('0x2632')][_0x1feed7]['id']===_0x349e32['id']&&(_0xda7c51[_0x381ac4('0x2632')][_0x1feed7][_0x381ac4('0x268e')]=![],_0x5dc33a['push'](_0xda7c51['mailAccounts'][_0x1feed7]));}_0xda7c51['mailAccounts']=_0x5dc33a;}else{if(!_0x3aecfc['autoAssociation'])return _0x46ac17['userProfileResource'][_0x381ac4('0x1d97')]({'sectionId':_0x3aecfc['id']})[_0x381ac4('0x1964')]['then'](function(_0x22f9bf){const _0x4bf004=_0x381ac4,_0x1f54a7=_0x3c8d8a()['map'](_0x22f9bf[_0x4bf004('0x6aa')],function(_0x4896a4){const _0x494d32=_0x4bf004;return _0x3c8d8a()[_0x494d32('0x18ab')](_0xda7c51[_0x494d32('0x2632')],{'id':_0x4896a4[_0x494d32('0x1ce0')]});});let _0x52f1ac=null;_0xda7c51[_0x4bf004('0xf50')]&&(_0x52f1ac=_0x3c8d8a()['find'](_0xda7c51[_0x4bf004('0x2632')],{'id':Number(_0xda7c51['schedule'][_0x4bf004('0x559')])}));if(_0x52f1ac&&!_0x3c8d8a()['some'](_0x1f54a7,['id',_0x52f1ac['id']])){const _0x575097=_0x3c8d8a()['find'](_0xda7c51[_0x4bf004('0x2632')],{'id':_0x52f1ac['id']});_0x575097['canSelect']=![],_0x1f54a7['push'](_0x575097);}_0xda7c51[_0x4bf004('0x2632')]=_0x1f54a7;});}})[_0x766cef('0x103c')](function(_0x5cd4f0){const _0x1ea066=_0x766cef;_0x3dcc72[_0x1ea066('0x15aa')]({'title':_0x5cd4f0[_0x1ea066('0x276f')]?_0x1ea066('0x137')+_0x5cd4f0[_0x1ea066('0x276f')]+'\x20-\x20'+_0x5cd4f0[_0x1ea066('0x2696')]:_0x1ea066('0xe09'),'msg':_0x5cd4f0['data']?JSON[_0x1ea066('0x100b')](_0x5cd4f0['data']):_0x5cd4f0[_0x1ea066('0x1b75')]()});});function _0x4e4a03(){const _0x180a9b=_0x766cef;_0xda7c51[_0x180a9b('0x1d4a')]=[],_0x46ac17[_0x180a9b('0xf50')]['save'](_0xda7c51[_0x180a9b('0xf50')])[_0x180a9b('0x1964')][_0x180a9b('0x173b')](function(_0x47cede){const _0x68da27=_0x180a9b;_0xda7c51[_0x68da27('0x126c')][_0x68da27('0x1377')](_0x47cede['toJSON']()),_0x3dcc72[_0x68da27('0xdfe')]({'title':_0x68da27('0x1860'),'msg':_0xda7c51[_0x68da27('0xf50')][_0x68da27('0x10ad')]?_0xda7c51[_0x68da27('0xf50')][_0x68da27('0x10ad')]+_0x68da27('0x209a'):''}),_0x185b68(_0x47cede);})[_0x180a9b('0x103c')](function(_0x443bb8){const _0x3b957c=_0x180a9b;if(_0x443bb8['data']&&_0x443bb8[_0x3b957c('0x1e07')][_0x3b957c('0x1d4a')]&&_0x443bb8[_0x3b957c('0x1e07')]['errors'][_0x3b957c('0x543')]){_0xda7c51['errors']=_0x443bb8['data'][_0x3b957c('0x1d4a')]||[{'message':_0x443bb8['toString'](),'type':_0x3b957c('0x2502')}];for(let _0x4dbf42=0x0;_0x4dbf42<_0x443bb8[_0x3b957c('0x1e07')]['errors'][_0x3b957c('0x543')];_0x4dbf42+=0x1){_0x3dcc72[_0x3b957c('0x15aa')]({'title':_0x443bb8[_0x3b957c('0x1e07')][_0x3b957c('0x1d4a')][_0x4dbf42][_0x3b957c('0x1810')],'msg':_0x443bb8[_0x3b957c('0x1e07')][_0x3b957c('0x1d4a')][_0x4dbf42][_0x3b957c('0x67f')]});}}else _0x3dcc72[_0x3b957c('0x15aa')]({'title':_0x443bb8[_0x3b957c('0x276f')]?_0x3b957c('0x137')+_0x443bb8[_0x3b957c('0x276f')]+_0x3b957c('0x160c')+_0x443bb8[_0x3b957c('0x2696')]:'api.schedule.save','msg':_0x443bb8[_0x3b957c('0x1e07')]?JSON[_0x3b957c('0x100b')](_0x443bb8[_0x3b957c('0x1e07')]['message']):_0x443bb8[_0x3b957c('0x1b75')]()});});}function _0x1e2e0c(){const _0x513469=_0x766cef;_0xda7c51[_0x513469('0x1d4a')]=[],_0x46ac17['schedule'][_0x513469('0x1842')]({'id':_0xda7c51[_0x513469('0xf50')]['id']},_0xda7c51[_0x513469('0xf50')])[_0x513469('0x1964')][_0x513469('0x173b')](function(_0x4c44f0){const _0x2f6947=_0x513469,_0x221bff=_0x3c8d8a()['find'](_0xda7c51[_0x2f6947('0x126c')],{'id':_0x4c44f0['id']});_0x221bff&&_0x3c8d8a()[_0x2f6947('0x9ef')](_0x221bff,_0x3c8d8a()[_0x2f6947('0x2114')](_0x4c44f0[_0x2f6947('0xf1f')](),_0x3c8d8a()[_0x2f6947('0x1d3e')](_0x221bff))),_0x3dcc72[_0x2f6947('0xdfe')]({'title':_0x2f6947('0x42a'),'msg':_0xda7c51[_0x2f6947('0xf50')]['name']?_0xda7c51['schedule'][_0x2f6947('0x10ad')]+_0x2f6947('0x2788'):''}),_0x185b68(_0x4c44f0);})[_0x513469('0x103c')](function(_0x20f560){const _0xc926aa=_0x513469;if(_0x20f560[_0xc926aa('0x1e07')]&&_0x20f560['data'][_0xc926aa('0x1d4a')]&&_0x20f560[_0xc926aa('0x1e07')][_0xc926aa('0x1d4a')][_0xc926aa('0x543')]){_0xda7c51[_0xc926aa('0x1d4a')]=_0x20f560['data'][_0xc926aa('0x1d4a')]||[{'message':_0x20f560[_0xc926aa('0x1b75')](),'type':'api.schedule.update'}];for(let _0x12bb70=0x0;_0x12bb70<_0x20f560[_0xc926aa('0x1e07')][_0xc926aa('0x1d4a')]['length'];_0x12bb70++){_0x3dcc72['error']({'title':_0x20f560[_0xc926aa('0x1e07')][_0xc926aa('0x1d4a')][_0x12bb70][_0xc926aa('0x1810')],'msg':_0x20f560[_0xc926aa('0x1e07')]['errors'][_0x12bb70][_0xc926aa('0x67f')]});}}else _0x3dcc72['error']({'title':_0x20f560[_0xc926aa('0x276f')]?_0xc926aa('0x137')+_0x20f560[_0xc926aa('0x276f')]+_0xc926aa('0x160c')+_0x20f560[_0xc926aa('0x2696')]:'api.schedule.update','msg':_0x20f560[_0xc926aa('0x1e07')]?JSON[_0xc926aa('0x100b')](_0x20f560[_0xc926aa('0x1e07')][_0xc926aa('0x67f')]):_0x20f560[_0xc926aa('0x1b75')]()});});}function _0x4edf08(_0x24d5fa){const _0x3dcf10=_0x766cef;_0xda7c51[_0x3dcf10('0x1d4a')]=[];const _0x2082c7=_0x5417c2[_0x3dcf10('0x1d02')]()[_0x3dcf10('0x20d6')](_0x3dcf10('0x8ef'))[_0x3dcf10('0x732')](_0x3dcf10('0x83a'))[_0x3dcf10('0x217')](_0x3dcf10('0x5e4'))['ok'](_0x3dcf10('0x2373'))[_0x3dcf10('0x1e1f')]('Cancel')[_0x3dcf10('0x21de')](_0x24d5fa);_0x5417c2[_0x3dcf10('0x1cb7')](_0x2082c7)[_0x3dcf10('0x173b')](function(){const _0x2aa32a=_0x3dcf10;_0x46ac17[_0x2aa32a('0xf50')][_0x2aa32a('0x15e8')]({'id':_0xda7c51[_0x2aa32a('0xf50')]['id']})[_0x2aa32a('0x1964')]['then'](function(){const _0x1ce42a=_0x2aa32a;_0x3c8d8a()[_0x1ce42a('0x1a8b')](_0xda7c51['schedules'],{'id':_0xda7c51['schedule']['id']}),_0x3dcc72[_0x1ce42a('0xdfe')]({'title':'Schedule\x20properly\x20deleted!','msg':(_0xda7c51['schedule']['name']||_0x1ce42a('0xf50'))+_0x1ce42a('0x25d2')}),_0x185b68(_0xda7c51[_0x1ce42a('0xf50')]);})[_0x2aa32a('0x103c')](function(_0x352b37){const _0x54a157=_0x2aa32a;if(_0x352b37[_0x54a157('0x1e07')]&&_0x352b37['data'][_0x54a157('0x1d4a')]&&_0x352b37['data'][_0x54a157('0x1d4a')]['length']){_0xda7c51['errors']=_0x352b37[_0x54a157('0x1e07')][_0x54a157('0x1d4a')]||[{'message':_0x352b37['toString'](),'type':_0x54a157('0x796')}];for(let _0x1156a8=0x0;_0x1156a8<_0x352b37[_0x54a157('0x1e07')][_0x54a157('0x1d4a')][_0x54a157('0x543')];_0x1156a8++){_0x3dcc72[_0x54a157('0x15aa')]({'title':_0x352b37[_0x54a157('0x1e07')]['errors'][_0x1156a8]['type'],'msg':_0x352b37[_0x54a157('0x1e07')][_0x54a157('0x1d4a')][_0x1156a8][_0x54a157('0x67f')]});}}else _0x3dcc72[_0x54a157('0x15aa')]({'title':_0x352b37['status']?'API:'+_0x352b37['status']+_0x54a157('0x160c')+_0x352b37[_0x54a157('0x2696')]:_0x54a157('0x796'),'msg':_0x352b37[_0x54a157('0x1e07')]?JSON['stringify'](_0x352b37[_0x54a157('0x1e07')][_0x54a157('0x67f')]):_0x352b37[_0x54a157('0x67f')]||_0x352b37[_0x54a157('0x1b75')]()});});},function(){});}function _0x5cd6dd(){const _0x395f14=_0x766cef,_0x5a9f29={'core':{'multiple':![],'animation':!![],'error':function(_0x5dbf2d){const _0x894afb=a0_0xde5e;console[_0x894afb('0x15aa')]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular[_0x894afb('0x36c')](_0x5dbf2d));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x395f14('0x2825')]};return _0xda7c51[_0x395f14('0x155f')]['role']!==_0x395f14('0x79b')?_0x46ac17[_0x395f14('0x170e')][_0x395f14('0x1d97')]({'fields':_0x395f14('0x1348'),'userProfileId':_0xda7c51['currentUser'][_0x395f14('0x1946')],'sectionId':0x4b3})[_0x395f14('0x1964')][_0x395f14('0x173b')](function(_0x56a1cb){const _0x1de027=_0x395f14;return _0xda7c51[_0x1de027('0x170e')]=_0x56a1cb&&_0x56a1cb[_0x1de027('0x1a2f')]==0x1?_0x56a1cb[_0x1de027('0x6aa')][0x0]:null,_0x5a9f29;})[_0x395f14('0x103c')](function(_0x5e502a){const _0x4d3066=_0x395f14;_0x3dcc72[_0x4d3066('0x15aa')]({'title':_0x4d3066('0x280c'),'msg':_0x5e502a[_0x4d3066('0x67f')]});}):_0x5a9f29;}function _0x5e53a0(_0x3db216){return _0x3db216?{'loaded':_0x2df4d4,'select_node':_0x585d80}:{'loaded':_0x58fb93,'select_node':_0x5a1117};}function _0x585d80(_0x318484,_0x4c6fe3){const _0xa4036a=_0x766cef;_0xda7c51[_0xa4036a('0xed0')][_0xa4036a('0x1bf7')](!![])[_0xa4036a('0x851')](),_0xda7c51['treeDefaultInstance'][_0xa4036a('0x1bf7')](!![])[_0xa4036a('0x1877')](),_0xda7c51['currentNode']=_0x4c6fe3[_0xa4036a('0x161b')],_0xda7c51[_0xa4036a('0x549')][_0xa4036a('0xbb4')]=!![],_0xda7c51['currentPath']=_0xda7c51[_0xa4036a('0xdae')][_0xa4036a('0x1bf7')](!![])[_0xa4036a('0x12ba')](_0xda7c51[_0xa4036a('0x549')])[_0xa4036a('0x2259')]('/\x20'),_0xda7c51['apiName']=_0xa4036a('0x1ca6'),_0xda7c51[_0xa4036a('0xc49')]['parent']=_0x4c6fe3['node']['id'],_0x2a48db();}function _0x5a1117(_0x4bda22,_0x1c4575){const _0x5bbb2e=_0x766cef;_0xda7c51['treeCustomInstance'][_0x5bbb2e('0x1bf7')](!![])[_0x5bbb2e('0x851')](),_0xda7c51['treeCustomInstance'][_0x5bbb2e('0x1bf7')](!![])[_0x5bbb2e('0x1877')](),_0xda7c51[_0x5bbb2e('0x549')]=_0x1c4575['node'],_0xda7c51[_0x5bbb2e('0x549')][_0x5bbb2e('0xbb4')]=![],_0xda7c51[_0x5bbb2e('0x1a52')]=_0xda7c51[_0x5bbb2e('0xed0')][_0x5bbb2e('0x1bf7')](!![])['get_path'](_0xda7c51[_0x5bbb2e('0x549')])[_0x5bbb2e('0x2259')]('/\x20'),_0xda7c51[_0x5bbb2e('0x1521')]='analyticDefaultReport',_0xda7c51[_0x5bbb2e('0xc49')]['parent']=_0x1c4575['node']['id'],_0x2a48db();}function _0x2df4d4(){const _0x2eadd6=_0x766cef;if(!_0xda7c51[_0x2eadd6('0x7f0')]&&_0xda7c51[_0x2eadd6('0x1521')]===_0x2eadd6('0x1ca6')){const _0x5976d3=_0xda7c51[_0x2eadd6('0xdae')][_0x2eadd6('0x1bf7')](!![])[_0x2eadd6('0x20cb')](_0xda7c51[_0x2eadd6('0xc49')]['parent']);_0x585d80(null,{'node':_0x5976d3,'selected':_0x5976d3['id']});}}function _0x58fb93(){const _0x3013cd=_0x766cef;if(!_0xda7c51[_0x3013cd('0x7f0')]&&_0xda7c51[_0x3013cd('0x1521')]===_0x3013cd('0x1d73')){const _0x50697b=_0xda7c51['treeDefaultInstance'][_0x3013cd('0x1bf7')](!![])[_0x3013cd('0x20cb')](_0xda7c51['query'][_0x3013cd('0x941')]);_0x5a1117(null,{'node':_0x50697b,'selected':_0x50697b['id']});}}function _0x2a48db(){const _0x4e9650=_0x766cef;_0xda7c51[_0x4e9650('0xc49')]['offset']=(_0xda7c51['query']['page']-0x1)*_0xda7c51[_0x4e9650('0xc49')]['limit'];if(_0xda7c51[_0x4e9650('0x1521')]){if(_0xda7c51[_0x4e9650('0x155f')][_0x4e9650('0x14a')]===_0x4e9650('0x79b'))_0xda7c51[_0x4e9650('0x2219')]=_0x46ac17[_0xda7c51[_0x4e9650('0x1521')]][_0x4e9650('0x1d97')](_0xda7c51['query'],_0x5b4457)[_0x4e9650('0x1964')];else{if(!_0xda7c51[_0x4e9650('0x170e')])return _0x5b4457(null);else{if(_0xda7c51[_0x4e9650('0x170e')][_0x4e9650('0x273e')])_0xda7c51[_0x4e9650('0x2219')]=_0x46ac17[_0xda7c51['apiName']][_0x4e9650('0x1d97')](_0xda7c51['query'],_0x5b4457)['$promise'];else{let _0x48b6e8=[];_0xda7c51[_0x4e9650('0x2219')]=_0x46ac17[_0xda7c51[_0x4e9650('0x1521')]][_0x4e9650('0x1d97')](_0xda7c51['query'])[_0x4e9650('0x1964')][_0x4e9650('0x173b')](function(_0x28a16d){const _0x4470ff=_0x4e9650;return _0x48b6e8=_0x28a16d&&_0x28a16d[_0x4470ff('0x6aa')]?_0x28a16d[_0x4470ff('0x6aa')]:[],_0x48b6e8[_0x4470ff('0x543')]>0x0?_0x46ac17[_0x4470ff('0xda9')][_0x4470ff('0x1d97')]({'sectionId':_0xda7c51[_0x4470ff('0x170e')]['id'],'type':_0xda7c51['apiName']===_0x4470ff('0x1d73')?'DefaultReports':_0x4470ff('0x151d')})[_0x4470ff('0x1964')][_0x4470ff('0x173b')](function(_0x4028fc){const _0x3d7943=_0x4470ff,_0xfa4730=_0x4028fc&&_0x4028fc[_0x3d7943('0x6aa')]?_0x4028fc[_0x3d7943('0x6aa')]:[];if(_0xfa4730[_0x3d7943('0x543')]>0x0){const _0x11db14=[];return _0x48b6e8[_0x3d7943('0xa6a')](function(_0x29a6b3){const _0x1c8b5f=_0x3d7943,_0x4152a9=_0x3c8d8a()[_0x1c8b5f('0x18ab')](_0xfa4730,[_0x1c8b5f('0x1ce0'),_0x29a6b3['id']]);if(_0x4152a9)_0x11db14['push'](_0x29a6b3);}),_0x5b4457({'count':_0x11db14[_0x3d7943('0x543')],'rows':_0x11db14});}else return _0x5b4457(null);}):_0x5b4457(null);})[_0x4e9650('0x103c')](function(_0x3d80de){const _0xd14d92=_0x4e9650;_0x3dcc72[_0xd14d92('0x15aa')]({'title':_0x3d80de[_0xd14d92('0x276f')]?'API:'+_0x3d80de[_0xd14d92('0x276f')]+'\x20-\x20'+_0x3d80de['statusText']:_0xd14d92('0x1ddc'),'msg':_0x3d80de[_0xd14d92('0x1e07')]?JSON['stringify'](_0x3d80de[_0xd14d92('0x1e07')]):_0x3d80de['toString']()});});}}}}}function _0x5b4457(_0x39bed5){const _0x1e9e03=_0x766cef;_0xda7c51['reports']=_0x39bed5||{'count':0x0,'rows':[]},!_0xda7c51[_0x1e9e03('0x7f0')]&&_0xda7c51[_0x1e9e03('0x3bf')]['push'](_0x3c8d8a()[_0x1e9e03('0x18ab')](_0xda7c51[_0x1e9e03('0xb50')][_0x1e9e03('0x6aa')],{'id':_0xda7c51[_0x1e9e03('0xcc3')]['id']}));}function _0x5654c5(){const _0x28500a=_0x766cef;_0xda7c51[_0x28500a('0x20b')]=_0xda7c51['treeReports'][0x0]?angular[_0x28500a('0x19c5')](_0xda7c51[_0x28500a('0x1f76')][0x0][_0x28500a('0x1328')]):[],_0xda7c51['treeCustomData']=_0xda7c51[_0x28500a('0x1f76')][0x1]?angular[_0x28500a('0x19c5')](_0xda7c51['treeReports'][0x1][_0x28500a('0x1328')]):[],_0xda7c51['treeConfig']=_0x5cd6dd(),_0xda7c51['treeDefaultEvents']=_0x5e53a0(![]),_0xda7c51[_0x28500a('0x236a')]=_0x5e53a0(!![]),_0x5417c2[_0x28500a('0x1cb7')]({'controller':function(){return _0xda7c51;},'controllerAs':'vm','templateUrl':_0x5ba25c,'autoWrap':!![],'skipHide':!![]});}function _0x5de4f1(){const _0x29cb3c=_0x766cef;_0xda7c51[_0x29cb3c('0xf50')][_0x29cb3c('0x358')]=_0xda7c51[_0x29cb3c('0x3bf')][0x0][_0x29cb3c('0x10ad')],_0xda7c51['currentNode'][_0x29cb3c('0xbb4')]?(_0xda7c51['schedule'][_0x29cb3c('0x2415')]=_0xda7c51['selectedReport'][0x0]['id'],delete _0xda7c51[_0x29cb3c('0xf50')][_0x29cb3c('0x12e5')]):(_0xda7c51[_0x29cb3c('0xf50')]['DefaultReportId']=_0xda7c51[_0x29cb3c('0x3bf')][0x0]['id'],delete _0xda7c51[_0x29cb3c('0xf50')][_0x29cb3c('0x2415')]),_0x3171bd[_0x29cb3c('0x56')][_0x29cb3c('0x358')]['$setDirty'](),_0x5417c2[_0x29cb3c('0x1cf4')]();}function _0x274278(){const _0x387a89=_0x766cef;_0x5417c2[_0x387a89('0x1cf4')]();}function _0xf1b7c8(_0x4b8e8c){return _0x4b8e8c===null?undefined:new Date(_0x4b8e8c);}function _0x185b68(_0x26194c){const _0x3fc61f=_0x766cef;_0x5417c2[_0x3fc61f('0x1cf4')](_0x26194c);}}const _0x5332a7=_0x4b53ac,_0xbf21d3=_0x21a6a1['p']+_0x566993('0x8f2');_0x206889[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state','$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x126c'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty',_0x566993('0x1600'),'license',_0x566993('0x251')];function _0x206889(_0x5ba517,_0x410ab8,_0x247ac6,_0x4ed4ce,_0x5846fe,_0x164907,_0x1facbb,_0x41379d,_0x57e41e,_0x24fd0d,_0x1445d4,_0x32b726,_0x1a2f81,_0x58cea5,_0x1e3f57,_0x230eb0,_0x13c503){const _0xce6056=_0x566993,_0x3ecde0=this;_0x3ecde0[_0xce6056('0x1a29')]=_0x230eb0,_0x3ecde0['setting']=_0x13c503,_0x3ecde0[_0xce6056('0x155f')]=_0x1e3f57['getCurrentUser'](),_0x3ecde0[_0xce6056('0x126c')]=_0x57e41e||{'count':0x0,'rows':[]},_0x3ecde0[_0xce6056('0x257b')]=_0x24fd0d,_0x3ecde0[_0xce6056('0x170e')]=_0x1445d4&&_0x1445d4[_0xce6056('0x1a2f')]==0x1?_0x1445d4[_0xce6056('0x6aa')][0x0]:null,_0x3ecde0['crudPermissions']=_0x1e3f57[_0xce6056('0xde6')](_0x3ecde0['userProfileSection']?_0x3ecde0[_0xce6056('0x170e')][_0xce6056('0x1dc1')]:null),_0x3ecde0[_0xce6056('0xdf9')]=_0xce6056('0x126c'),_0x3ecde0['listOrder']='',_0x3ecde0[_0xce6056('0x2303')]=null,_0x3ecde0[_0xce6056('0x23a3')]=[],_0x3ecde0['query']={'fields':'createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','sort':_0xce6056('0x1769'),'limit':0xa,'page':0x1},_0x3ecde0[_0xce6056('0x20bb')]=_0x3c8d8a()[_0xce6056('0x128')]([{'option':_0xce6056('0x1761'),'value':_0xce6056('0x406')},{'option':'PDF','value':_0xce6056('0x1b23')},{'option':_0xce6056('0x25dd'),'value':_0xce6056('0x197e')}],function(_0x5a959b){const _0x5e9a9a=_0xce6056;return _0x3c8d8a()['replace'](_0x5a959b[_0x5e9a9a('0xa7b')],new RegExp('\x27','g'),'');}),_0x3ecde0[_0xce6056('0x370')]=_0x3c8d8a()[_0xce6056('0x128')]([{'option':_0xce6056('0x5d2'),'value':_0xce6056('0x22bd')},{'option':_0xce6056('0x142b'),'value':_0xce6056('0x1419')},{'option':_0xce6056('0x21e4'),'value':_0xce6056('0xd74')},{'option':_0xce6056('0xa1b'),'value':'\x27weeks\x27'},{'option':_0xce6056('0x1f1f'),'value':'\x27months\x27'},{'option':_0xce6056('0x1c70'),'value':_0xce6056('0x113d')},{'option':'Years','value':_0xce6056('0xaf6')}],function(_0x5b3ade){const _0x18b74a=_0xce6056;return _0x3c8d8a()[_0x18b74a('0x166c')](_0x5b3ade[_0x18b74a('0xa7b')],new RegExp('\x27','g'),'');}),_0x3ecde0['editdialog']=_0x40e398,_0x3ecde0['runconfirm']=_0x166ba2,_0x3ecde0[_0xce6056('0x1a20')]=_0x3099c7,_0x3ecde0[_0xce6056('0xdfe')]=_0x1a2fd0,_0x3ecde0[_0xce6056('0x97')]=_0x1fb791,_0x3ecde0[_0xce6056('0x93')]=_0x1fd49e,_0x3ecde0[_0xce6056('0x26b1')]=_0x3079ad,_0x3ecde0[_0xce6056('0xc3f')]=_0x3f0ac0,_0x3ecde0[_0xce6056('0x996')]=_0x241902,_0x3ecde0[_0xce6056('0xbec')]=_0x599718,_0x3ecde0[_0xce6056('0x3e7')]=_0x2b546e,_0x32b726[_0xce6056('0x8de')][_0xce6056('0x1d97')]({})[_0xce6056('0x1964')][_0xce6056('0x173b')](function(_0x4d500b){_0x3ecde0['treeReports']=_0x4d500b['rows']||[];})['catch'](function(_0x4a381a){const _0x338c11=_0xce6056;_0x58cea5[_0x338c11('0x15aa')]({'title':_0x4a381a[_0x338c11('0x276f')]?'API:'+_0x4a381a['status']+_0x338c11('0x160c')+_0x4a381a['statusText']:_0x338c11('0x1bf1'),'msg':_0x4a381a[_0x338c11('0x1e07')]?JSON[_0x338c11('0x100b')](_0x4a381a[_0x338c11('0x1e07')]):_0x4a381a['toString']()});}),_0x1e3f57['hasRole'](_0xce6056('0x79b'))?_0x32b726['mailAccount']['get']({'fields':_0xce6056('0xd52'),'sort':_0xce6056('0x10ad')})[_0xce6056('0x1964')][_0xce6056('0x173b')](function(_0x252f12){const _0x144363=_0xce6056;_0x3ecde0[_0x144363('0x2632')]=_0x252f12[_0x144363('0x6aa')]||[];})[_0xce6056('0x103c')](function(_0x3bc891){const _0x4180e2=_0xce6056;_0x58cea5[_0x4180e2('0x15aa')]({'title':_0x3bc891[_0x4180e2('0x276f')]?_0x4180e2('0x137')+_0x3bc891[_0x4180e2('0x276f')]+'\x20-\x20'+_0x3bc891[_0x4180e2('0x2696')]:_0x4180e2('0x273f'),'msg':_0x3bc891[_0x4180e2('0x1e07')]?JSON[_0x4180e2('0x100b')](_0x3bc891[_0x4180e2('0x1e07')]):_0x3bc891['toString']()});}):_0x32b726['mailAccount'][_0xce6056('0x1d97')]({'fields':_0xce6056('0xd52'),'sort':_0xce6056('0x10ad')})[_0xce6056('0x1964')][_0xce6056('0x173b')](function(_0x233416){_0x3ecde0['mailAccounts']=_0x233416['rows']||[];})[_0xce6056('0x173b')](function(){const _0x2f73dc=_0xce6056;return _0x32b726[_0x2f73dc('0x170e')][_0x2f73dc('0x1d97')]({'userProfileId':_0x3ecde0[_0x2f73dc('0x155f')][_0x2f73dc('0x1946')],'sectionId':0x25a})[_0x2f73dc('0x1964')];})[_0xce6056('0x173b')](function(_0x497712){const _0x223fb5=_0xce6056,_0x21178e=_0x497712&&_0x497712['rows']?_0x497712['rows'][0x0]:null;if(!_0x21178e){const _0x5884fd=[];let _0x4dd9ed=null;_0x3ecde0[_0x223fb5('0xf50')]&&(_0x4dd9ed=_0x3c8d8a()[_0x223fb5('0x18ab')](_0x3ecde0[_0x223fb5('0x2632')],{'id':Number(_0x3ecde0[_0x223fb5('0xf50')][_0x223fb5('0x559')])}));for(let _0x1ae675=0x0;_0x1ae675<_0x3ecde0[_0x223fb5('0x2632')]['length'];_0x1ae675++){_0x4dd9ed&&_0x3ecde0[_0x223fb5('0x2632')][_0x1ae675]['id']===_0x4dd9ed['id']&&(_0x3ecde0[_0x223fb5('0x2632')][_0x1ae675][_0x223fb5('0x268e')]=![],_0x5884fd[_0x223fb5('0x18bb')](_0x3ecde0[_0x223fb5('0x2632')][_0x1ae675]));}_0x3ecde0[_0x223fb5('0x2632')]=_0x5884fd;}else{if(!_0x21178e[_0x223fb5('0x273e')])return _0x32b726[_0x223fb5('0xda9')][_0x223fb5('0x1d97')]({'sectionId':_0x21178e['id']})['$promise']['then'](function(_0x495f2a){const _0x307b6d=_0x223fb5,_0x32176c=_0x3c8d8a()[_0x307b6d('0x8a2')](_0x495f2a[_0x307b6d('0x6aa')],function(_0x2b5e0e){const _0x1905ca=_0x307b6d;return _0x3c8d8a()['find'](_0x3ecde0['mailAccounts'],{'id':_0x2b5e0e[_0x1905ca('0x1ce0')]});});let _0x57ab81=null;_0x3ecde0[_0x307b6d('0xf50')]&&(_0x57ab81=_0x3c8d8a()[_0x307b6d('0x18ab')](_0x3ecde0['mailAccounts'],{'id':Number(_0x3ecde0[_0x307b6d('0xf50')][_0x307b6d('0x559')])}));if(_0x57ab81&&!_0x3c8d8a()[_0x307b6d('0x1ec')](_0x32176c,['id',_0x57ab81['id']])){const _0x3af35a=_0x3c8d8a()[_0x307b6d('0x18ab')](_0x3ecde0[_0x307b6d('0x2632')],{'id':_0x57ab81['id']});_0x3af35a[_0x307b6d('0x268e')]=![],_0x32176c[_0x307b6d('0x18bb')](_0x3af35a);}_0x3ecde0[_0x307b6d('0x2632')]=_0x32176c;});}})['catch'](function(_0x37fa30){const _0x235679=_0xce6056;_0x58cea5[_0x235679('0x15aa')]({'title':_0x37fa30[_0x235679('0x276f')]?_0x235679('0x137')+_0x37fa30[_0x235679('0x276f')]+_0x235679('0x160c')+_0x37fa30['statusText']:'SYSTEM:GETmailAccounts','msg':_0x37fa30[_0x235679('0x1e07')]?JSON['stringify'](_0x37fa30[_0x235679('0x1e07')]):_0x37fa30[_0x235679('0x1b75')]()});});function _0x40e398(_0x500b38,_0x5299ee){const _0x24bb09=_0xce6056;_0x5846fe[_0x24bb09('0x1cb7')]({'controller':_0x24bb09('0x5aa'),'controllerAs':'vm','templateUrl':_0xbf21d3,'parent':angular[_0x24bb09('0xb6d')](_0x164907[_0x24bb09('0x1a5')]),'targetEvent':_0x5299ee,'clickOutsideToClose':!![],'locals':{'schedule':_0x500b38,'schedules':_0x3ecde0[_0x24bb09('0x126c')][_0x24bb09('0x6aa')],'license':_0x3ecde0['license'],'setting':null,'crudPermissions':_0x3ecde0['crudPermissions']}});}function _0x166ba2(_0x1b2f52,_0x251693){const _0x165e55=_0xce6056,_0x42118e=_0x5846fe[_0x165e55('0x1d02')]()['title'](_0x165e55('0x27fa'))[_0x165e55('0xf8b')](_0x165e55('0x15b9')+(_0x1b2f52[_0x165e55('0x10ad')]||_0x165e55('0xf50'))+_0x165e55('0x24be')+_0x165e55('0x21b8'))[_0x165e55('0x217')](_0x165e55('0xb93'))['targetEvent'](_0x251693)['ok']('OK')[_0x165e55('0x1e1f')](_0x165e55('0x468'));_0x5846fe[_0x165e55('0x1cb7')](_0x42118e)[_0x165e55('0x173b')](function(){const _0x1f0836=_0x165e55;return _0x32b726[_0x1f0836('0xf50')][_0x1f0836('0x24cf')]({'id':_0x1b2f52['id']})[_0x1f0836('0x1964')];},function(){const _0x824c57=_0x165e55;console[_0x824c57('0xe37')](_0x824c57('0x468'));});}function _0x3099c7(_0x6bc1f6,_0x396fd0){const _0x59af64=_0xce6056,_0x35aa0f=_0x5846fe[_0x59af64('0x1d02')]()['title'](_0x59af64('0x5bb')+_0x3c8d8a()[_0x59af64('0x10e')](_0x59af64('0xf50'))+'?')[_0x59af64('0xf8b')](_0x59af64('0x15b9')+(_0x6bc1f6[_0x59af64('0x10ad')]||_0x59af64('0xf50'))+''+_0x59af64('0xd23'))['ariaLabel'](_0x59af64('0xb93'))[_0x59af64('0x21de')](_0x396fd0)['ok']('OK')[_0x59af64('0x1e1f')](_0x59af64('0x468'));_0x5846fe[_0x59af64('0x1cb7')](_0x35aa0f)[_0x59af64('0x173b')](function(){_0x3079ad(_0x6bc1f6);},function(){const _0x154c46=_0x59af64;console['log'](_0x154c46('0x468'));});}let _0x1b92d7=!![],_0x3ee136=0x1;_0x5ba517[_0xce6056('0x1bdb')](_0xce6056('0x157b'),function(_0x544799,_0x511734){const _0x37c86d=_0xce6056;_0x1b92d7?_0x1facbb(function(){_0x1b92d7=![];}):(!_0x511734&&(_0x3ee136=_0x3ecde0[_0x37c86d('0xc49')]['page']),_0x544799!==_0x511734&&(_0x3ecde0[_0x37c86d('0xc49')]['page']=0x1),!_0x544799&&(_0x3ecde0['query'][_0x37c86d('0x182e')]=_0x3ee136),_0x3ecde0[_0x37c86d('0x97')]());});function _0x1a2fd0(_0xbc7384){const _0x3b43ae=_0xce6056;_0x3ecde0[_0x3b43ae('0x126c')]=_0xbc7384||{'count':0x0,'rows':[]};}function _0x1fb791(){const _0x51b2fd=_0xce6056;_0x3ecde0[_0x51b2fd('0xc49')]['offset']=(_0x3ecde0[_0x51b2fd('0xc49')][_0x51b2fd('0x182e')]-0x1)*_0x3ecde0[_0x51b2fd('0xc49')]['limit'],_0x1e3f57[_0x51b2fd('0x1b4e')](_0x51b2fd('0x79b'))?_0x3ecde0['promise']=_0x32b726[_0x51b2fd('0xf50')][_0x51b2fd('0x1d97')](_0x3ecde0[_0x51b2fd('0xc49')],_0x1a2fd0)[_0x51b2fd('0x1964')]:(_0x3ecde0[_0x51b2fd('0xc49')]['id']=_0x3ecde0['userProfile']['id'],_0x3ecde0[_0x51b2fd('0xc49')][_0x51b2fd('0x17c9')]=_0x51b2fd('0x198d'),_0x3ecde0[_0x51b2fd('0x2219')]=_0x32b726[_0x51b2fd('0x257b')][_0x51b2fd('0x135b')](_0x3ecde0[_0x51b2fd('0xc49')],_0x1a2fd0)[_0x51b2fd('0x1964')]);}function _0x1fd49e(_0x32d28b,_0x41ccc8){const _0x360262=_0xce6056;_0x5846fe['show']({'controller':_0x360262('0x5aa'),'controllerAs':'vm','templateUrl':_0xbf21d3,'parent':angular[_0x360262('0xb6d')](_0x164907['body']),'targetEvent':_0x32d28b,'clickOutsideToClose':!![],'locals':{'schedule':_0x41ccc8,'schedules':_0x3ecde0[_0x360262('0x126c')][_0x360262('0x6aa')],'license':_0x3ecde0[_0x360262('0x1a29')],'setting':_0x3ecde0[_0x360262('0x251')],'crudPermissions':_0x3ecde0[_0x360262('0x1dc1')]}});}function _0x3079ad(_0x38f65a){const _0x22c722=_0xce6056;_0x32b726[_0x22c722('0xf50')][_0x22c722('0x15e8')]({'id':_0x38f65a['id']})[_0x22c722('0x1964')][_0x22c722('0x173b')](function(){const _0x2801d3=_0x22c722;_0x3c8d8a()[_0x2801d3('0x1a8b')](_0x3ecde0['schedules']['rows'],{'id':_0x38f65a['id']}),_0x3ecde0['schedules'][_0x2801d3('0x1a2f')]-=0x1,!_0x3ecde0[_0x2801d3('0x126c')][_0x2801d3('0x6aa')][_0x2801d3('0x543')]&&_0x3ecde0[_0x2801d3('0x97')](),_0x58cea5['success']({'title':_0x3c8d8a()[_0x2801d3('0x10e')](_0x2801d3('0xa96'))+'\x20deleted!','msg':_0x38f65a['name']?_0x38f65a['name']+_0x2801d3('0x25d2'):''});})[_0x22c722('0x103c')](function(_0xf53bb5){const _0x48746c=_0x22c722;if(_0xf53bb5['data']&&_0xf53bb5[_0x48746c('0x1e07')][_0x48746c('0x1d4a')]&&_0xf53bb5['data']['errors'][_0x48746c('0x543')]){_0x3ecde0[_0x48746c('0x1d4a')]=_0xf53bb5[_0x48746c('0x1e07')][_0x48746c('0x1d4a')]||[{'message':_0xf53bb5[_0x48746c('0x1b75')](),'type':'SYSTEM:DELETEschedule'}];for(let _0x2a879b=0x0;_0x2a879b<_0xf53bb5[_0x48746c('0x1e07')][_0x48746c('0x1d4a')][_0x48746c('0x543')];_0x2a879b++){_0x58cea5['error']({'title':_0xf53bb5[_0x48746c('0x1e07')][_0x48746c('0x1d4a')][_0x2a879b][_0x48746c('0x1810')],'msg':_0xf53bb5[_0x48746c('0x1e07')]['errors'][_0x2a879b]['message']});}}else _0x58cea5[_0x48746c('0x15aa')]({'title':_0xf53bb5['status']?_0x48746c('0x137')+_0xf53bb5['status']+_0x48746c('0x160c')+_0xf53bb5[_0x48746c('0x2696')]:_0x48746c('0x1db9'),'msg':_0xf53bb5['data']?JSON[_0x48746c('0x100b')](_0xf53bb5[_0x48746c('0x1e07')]['message']):_0xf53bb5[_0x48746c('0x67f')]||_0xf53bb5[_0x48746c('0x1b75')]()});});}function _0x3f0ac0(){const _0x4a5737=_0xce6056,_0x2ac1f3=angular[_0x4a5737('0x2e3')](_0x3ecde0[_0x4a5737('0x23a3')]);return _0x3ecde0[_0x4a5737('0x23a3')]=[],_0x2ac1f3;}function _0x241902(_0x448ba7){const _0x18358d=_0xce6056,_0x3f4109=_0x5846fe['confirm']()[_0x18358d('0x20d6')](_0x18358d('0x1a80'))[_0x18358d('0xf8b')](_0x18358d('0x15b9')+_0x3ecde0[_0x18358d('0x23a3')][_0x18358d('0x543')]+_0x18358d('0xcb4')+_0x18358d('0xd23'))[_0x18358d('0x217')](_0x18358d('0x105d'))[_0x18358d('0x21de')](_0x448ba7)['ok']('OK')[_0x18358d('0x1e1f')](_0x18358d('0x468'));_0x5846fe['show'](_0x3f4109)[_0x18358d('0x173b')](function(){const _0x5ca512=_0x18358d;_0x3ecde0[_0x5ca512('0x23a3')][_0x5ca512('0xa6a')](function(_0x59628a){_0x3079ad(_0x59628a);}),_0x3ecde0[_0x5ca512('0x23a3')]=[];});}function _0x599718(){const _0x132144=_0xce6056;_0x3ecde0[_0x132144('0x23a3')]=[];}function _0x2b546e(){const _0xcac0e4=_0xce6056;_0x3ecde0[_0xcac0e4('0x23a3')]=_0x3ecde0[_0xcac0e4('0x126c')][_0xcac0e4('0x6aa')];}}const _0x1f9c59=_0x206889;_0x58b399['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1230'),_0x566993('0x156f'),'api','Auth','license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x58b399(_0x20e437,_0x4245fd,_0x38459c,_0x562893,_0xa76b2c,_0x3b6b2c,_0x564eb1,_0x5a140c,_0x256366,_0x214c95,_0x5d0218,_0x24e91b,_0x4d3bd0,_0x4d37ce){const _0x580803=_0x566993,_0x4fdb41=this;_0x4fdb41[_0x580803('0x155f')]=_0x5d0218[_0x580803('0x14d4')](),_0x4fdb41['errors']=[],_0x4fdb41[_0x580803('0x251')]=_0x4d3bd0,_0x4fdb41[_0x580803('0x1a29')]=_0x24e91b,_0x4fdb41['crudPermissions']=_0x4d37ce,_0x4fdb41[_0x580803('0xb0')]={},_0x4fdb41[_0x580803('0x644')]=_0x4fdb41[_0x580803('0x251')]&&_0x4fdb41[_0x580803('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4fdb41[_0x580803('0x20d6')]=_0x580803('0x1c6c'),_0x4fdb41[_0x580803('0x156f')]=angular[_0x580803('0x2e3')](_0x256366),_0x4fdb41[_0x580803('0x1230')]=_0x5a140c,_0x4fdb41[_0x580803('0x1bec')]=![];!_0x4fdb41['sound']&&(_0x4fdb41[_0x580803('0x156f')]={},_0x4fdb41[_0x580803('0x20d6')]=_0x580803('0x16c8'),_0x4fdb41[_0x580803('0x1bec')]=!![]);_0x4fdb41[_0x580803('0x19a7')]=_0x291e7b,_0x4fdb41[_0x580803('0x1069')]=_0x5d0702,_0x4fdb41[_0x580803('0x228')]=_0x324e78,_0x4fdb41[_0x580803('0x11ae')]=_0x57718e,_0x4fdb41[_0x580803('0x18e2')]=_0x2749ee;function _0x291e7b(){const _0x34967e=_0x580803;_0x4fdb41[_0x34967e('0x1d4a')]=[],_0x214c95[_0x34967e('0x156f')][_0x34967e('0x1195')](_0x4fdb41[_0x34967e('0x156f')])[_0x34967e('0x1964')][_0x34967e('0x173b')](function(_0x58e746){const _0x55dd5f=_0x34967e;_0x4fdb41[_0x55dd5f('0x1230')][_0x55dd5f('0x1377')](_0x58e746['toJSON']()),_0x564eb1[_0x55dd5f('0xdfe')]({'title':_0x55dd5f('0x1c93'),'msg':_0x4fdb41[_0x55dd5f('0x156f')]['name']?_0x4fdb41[_0x55dd5f('0x156f')][_0x55dd5f('0x10ad')]+_0x55dd5f('0x209a'):''}),_0x2749ee(_0x58e746);})['catch'](function(_0x532c7c){const _0x46a752=_0x34967e;if(_0x532c7c[_0x46a752('0x1e07')]&&_0x532c7c[_0x46a752('0x1e07')][_0x46a752('0x1d4a')]&&_0x532c7c[_0x46a752('0x1e07')][_0x46a752('0x1d4a')]['length']){_0x4fdb41[_0x46a752('0x1d4a')]=_0x532c7c['data'][_0x46a752('0x1d4a')]||[{'message':_0x532c7c[_0x46a752('0x1b75')](),'type':_0x46a752('0x504')}];for(let _0xacf690=0x0;_0xacf690<_0x532c7c[_0x46a752('0x1e07')][_0x46a752('0x1d4a')][_0x46a752('0x543')];_0xacf690+=0x1){_0x564eb1[_0x46a752('0x15aa')]({'title':_0x532c7c[_0x46a752('0x1e07')][_0x46a752('0x1d4a')][_0xacf690][_0x46a752('0x1810')],'msg':_0x532c7c[_0x46a752('0x1e07')][_0x46a752('0x1d4a')][_0xacf690][_0x46a752('0x67f')]});}}else _0x564eb1[_0x46a752('0x15aa')]({'title':_0x532c7c[_0x46a752('0x276f')]?_0x46a752('0x137')+_0x532c7c[_0x46a752('0x276f')]+_0x46a752('0x160c')+_0x532c7c[_0x46a752('0x2696')]:_0x46a752('0x504'),'msg':_0x532c7c[_0x46a752('0x1e07')]?JSON[_0x46a752('0x100b')](_0x532c7c[_0x46a752('0x1e07')]['message']):_0x532c7c['toString']()});});}function _0x5d0702(){const _0x9dc0db=_0x580803;_0x4fdb41[_0x9dc0db('0x1d4a')]=[],_0x214c95[_0x9dc0db('0x156f')][_0x9dc0db('0x1842')]({'id':_0x4fdb41[_0x9dc0db('0x156f')]['id']},_0x4fdb41[_0x9dc0db('0x156f')])['$promise']['then'](function(_0x22636c){const _0x476170=_0x9dc0db,_0x1592ef=_0x3c8d8a()[_0x476170('0x18ab')](_0x4fdb41[_0x476170('0x1230')],{'id':_0x22636c['id']});_0x1592ef&&_0x3c8d8a()[_0x476170('0x9ef')](_0x1592ef,_0x3c8d8a()[_0x476170('0x2114')](_0x22636c[_0x476170('0xf1f')](),_0x3c8d8a()[_0x476170('0x1d3e')](_0x1592ef))),_0x564eb1[_0x476170('0xdfe')]({'title':'Sound\x20properly\x20saved!','msg':_0x4fdb41[_0x476170('0x156f')][_0x476170('0x10ad')]?_0x4fdb41[_0x476170('0x156f')][_0x476170('0x10ad')]+_0x476170('0x2788'):''}),_0x2749ee(_0x22636c);})[_0x9dc0db('0x103c')](function(_0x43aec3){const _0x12aa8c=_0x9dc0db;if(_0x43aec3[_0x12aa8c('0x1e07')]&&_0x43aec3[_0x12aa8c('0x1e07')][_0x12aa8c('0x1d4a')]&&_0x43aec3[_0x12aa8c('0x1e07')][_0x12aa8c('0x1d4a')][_0x12aa8c('0x543')]){_0x4fdb41[_0x12aa8c('0x1d4a')]=_0x43aec3[_0x12aa8c('0x1e07')][_0x12aa8c('0x1d4a')]||[{'message':_0x43aec3[_0x12aa8c('0x1b75')](),'type':_0x12aa8c('0x136e')}];for(let _0x3760ed=0x0;_0x3760ed<_0x43aec3[_0x12aa8c('0x1e07')][_0x12aa8c('0x1d4a')][_0x12aa8c('0x543')];_0x3760ed++){_0x564eb1[_0x12aa8c('0x15aa')]({'title':_0x43aec3['data'][_0x12aa8c('0x1d4a')][_0x3760ed][_0x12aa8c('0x1810')],'msg':_0x43aec3[_0x12aa8c('0x1e07')][_0x12aa8c('0x1d4a')][_0x3760ed]['message']});}}else _0x564eb1[_0x12aa8c('0x15aa')]({'title':_0x43aec3[_0x12aa8c('0x276f')]?'API:'+_0x43aec3[_0x12aa8c('0x276f')]+'\x20-\x20'+_0x43aec3[_0x12aa8c('0x2696')]:_0x12aa8c('0x136e'),'msg':_0x43aec3[_0x12aa8c('0x1e07')]?JSON[_0x12aa8c('0x100b')](_0x43aec3[_0x12aa8c('0x1e07')][_0x12aa8c('0x67f')]):_0x43aec3['toString']()});});}function _0x324e78(_0x258526){const _0x22ae05=_0x580803;_0x4fdb41[_0x22ae05('0x1d4a')]=[];const _0x34b659=_0x562893['confirm']()['title']('Are\x20you\x20sure?')[_0x22ae05('0x732')](_0x22ae05('0x647'))[_0x22ae05('0x217')](_0x22ae05('0x1474'))['ok'](_0x22ae05('0x2373'))[_0x22ae05('0x1e1f')](_0x22ae05('0x1d4e'))['targetEvent'](_0x258526);_0x562893[_0x22ae05('0x1cb7')](_0x34b659)[_0x22ae05('0x173b')](function(){const _0x5b4b31=_0x22ae05;_0x214c95[_0x5b4b31('0x156f')][_0x5b4b31('0x15e8')]({'id':_0x4fdb41['sound']['id']})['$promise'][_0x5b4b31('0x173b')](function(){const _0x5a83f8=_0x5b4b31;_0x3c8d8a()[_0x5a83f8('0x1a8b')](_0x4fdb41[_0x5a83f8('0x1230')],{'id':_0x4fdb41['sound']['id']}),_0x564eb1[_0x5a83f8('0xdfe')]({'title':_0x5a83f8('0xcaa'),'msg':(_0x4fdb41[_0x5a83f8('0x156f')]['name']||_0x5a83f8('0x156f'))+_0x5a83f8('0x25d2')}),_0x2749ee(_0x4fdb41[_0x5a83f8('0x156f')]);})['catch'](function(_0x1694c8){const _0x58c377=_0x5b4b31;if(_0x1694c8['data']&&_0x1694c8[_0x58c377('0x1e07')][_0x58c377('0x1d4a')]&&_0x1694c8[_0x58c377('0x1e07')][_0x58c377('0x1d4a')]['length']){_0x4fdb41[_0x58c377('0x1d4a')]=_0x1694c8['data'][_0x58c377('0x1d4a')]||[{'message':_0x1694c8['toString'](),'type':'api.sound.delete'}];for(let _0x57d6ce=0x0;_0x57d6ce<_0x1694c8[_0x58c377('0x1e07')][_0x58c377('0x1d4a')][_0x58c377('0x543')];_0x57d6ce++){_0x564eb1[_0x58c377('0x15aa')]({'title':_0x1694c8['data'][_0x58c377('0x1d4a')][_0x57d6ce]['type'],'msg':_0x1694c8[_0x58c377('0x1e07')][_0x58c377('0x1d4a')][_0x57d6ce][_0x58c377('0x67f')]});}}else _0x564eb1[_0x58c377('0x15aa')]({'title':_0x1694c8[_0x58c377('0x276f')]?_0x58c377('0x137')+_0x1694c8[_0x58c377('0x276f')]+_0x58c377('0x160c')+_0x1694c8[_0x58c377('0x2696')]:_0x58c377('0x22d0'),'msg':_0x1694c8[_0x58c377('0x1e07')]?JSON['stringify'](_0x1694c8[_0x58c377('0x1e07')]['message']):_0x1694c8[_0x58c377('0x67f')]||_0x1694c8[_0x58c377('0x1b75')]()});});},function(){});}function _0x57718e(_0x4a6d45){return _0x4a6d45===null?undefined:new Date(_0x4a6d45);}function _0x2749ee(_0x57719f){_0x562893['hide'](_0x57719f);}}const _0x1a1444=_0x58b399,_0x1803ca=_0x21a6a1['p']+'src/js/modules/main/apps/tools/views/sounds/create/dialog.html/dialog.html',_0x439f20=_0x21a6a1['p']+_0x566993('0xf14');_0x47a736[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$timeout','$translate',_0x566993('0x1230'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty','Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0x47a736(_0x1bc3ca,_0x4d0dce,_0x5cb7d6,_0x26df18,_0x369845,_0x2cd8b2,_0x217fe6,_0x488fe4,_0xe0b3b0,_0x3b9692,_0x307171,_0xc12f4d,_0x1e0110,_0x3f9c95,_0x57e975,_0x136c9f,_0x191ca7){const _0x33cf64=_0x566993,_0x2eee2d=this;_0x2eee2d[_0x33cf64('0x1a29')]=_0x136c9f,_0x2eee2d['setting']=_0x191ca7,_0x2eee2d[_0x33cf64('0x155f')]=_0x57e975[_0x33cf64('0x14d4')](),_0x2eee2d[_0x33cf64('0x1230')]=_0xe0b3b0||{'count':0x0,'rows':[]},_0x2eee2d[_0x33cf64('0x257b')]=_0x3b9692,_0x2eee2d[_0x33cf64('0x170e')]=_0x307171&&_0x307171[_0x33cf64('0x1a2f')]==0x1?_0x307171[_0x33cf64('0x6aa')][0x0]:null,_0x2eee2d[_0x33cf64('0x1dc1')]=_0x57e975['parseCrudPermissions'](_0x2eee2d[_0x33cf64('0x170e')]?_0x2eee2d[_0x33cf64('0x170e')][_0x33cf64('0x1dc1')]:null),_0x2eee2d[_0x33cf64('0xdf9')]=_0x33cf64('0x1230'),_0x2eee2d[_0x33cf64('0x14d6')]='',_0x2eee2d[_0x33cf64('0x2303')]=null,_0x2eee2d[_0x33cf64('0xb6')]=[],_0x2eee2d[_0x33cf64('0xc49')]={'fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':_0x33cf64('0x1769'),'limit':0xa,'page':0x1},_0x2eee2d['editdialog']=_0x4f9029,_0x2eee2d['downloadfile2']=_0x153107,_0x2eee2d[_0x33cf64('0x1a20')]=_0x3e3f0c,_0x2eee2d[_0x33cf64('0xdfe')]=_0x56fb9d,_0x2eee2d[_0x33cf64('0x1eb')]=_0x426f2d,_0x2eee2d['createOrEditSound']=_0x51bbc4,_0x2eee2d['deleteSound']=_0x29e2ec,_0x2eee2d[_0x33cf64('0x274a')]=_0x3cb15d,_0x2eee2d[_0x33cf64('0x193d')]=_0x47300c,_0x2eee2d[_0x33cf64('0x96a')]=_0x4bed44,_0x2eee2d[_0x33cf64('0xe7f')]=_0x6ffff4,_0x2eee2d[_0x33cf64('0x398')]=_0x25380d;function _0x4f9029(_0x1ed62e,_0x1c23f2){const _0x18d69a=_0x33cf64;_0x369845[_0x18d69a('0x1cb7')]({'controller':_0x18d69a('0x2274'),'controllerAs':'vm','templateUrl':_0x1803ca,'parent':angular[_0x18d69a('0xb6d')](_0x2cd8b2['body']),'targetEvent':_0x1c23f2,'clickOutsideToClose':!![],'locals':{'sound':_0x1ed62e,'sounds':_0x2eee2d[_0x18d69a('0x1230')][_0x18d69a('0x6aa')],'license':_0x2eee2d[_0x18d69a('0x1a29')],'setting':null,'crudPermissions':_0x2eee2d[_0x18d69a('0x1dc1')]}});}function _0x153107(_0x44e72e){const _0x3ed767=_0x33cf64;return _0xc12f4d[_0x3ed767('0x156f')][_0x3ed767('0xfce')]({'id':_0x44e72e['id']})[_0x3ed767('0x1964')][_0x3ed767('0x173b')](function(_0x38aa41){const _0x42c463=_0x3ed767,_0x5a129d=[_0x38aa41[_0x42c463('0x1c22')]];let _0x4611a1=_0x42c463('0xfce');const _0x157938=new Blob(_0x5a129d,{'type':_0x38aa41[_0x42c463('0x1810')]});_0x4611a1=_0x44e72e['converted_format']?_0x44e72e['save_name']+'.'+_0x44e72e['converted_format']:_0x44e72e[_0x42c463('0x14c8')];const _0x23a5aa=window[_0x42c463('0x222a')][_0x42c463('0x1258')]('a');_0x23a5aa[_0x42c463('0x11c3')](_0x42c463('0x165c'),URL[_0x42c463('0x1466')](_0x157938)),_0x23a5aa['setAttribute'](_0x42c463('0xfce'),_0x4611a1),document[_0x42c463('0x1a5')][_0x42c463('0x1f8d')](_0x23a5aa),_0x23a5aa['click']();})[_0x3ed767('0x103c')](function(_0xf73ffa){const _0x53a7c0=_0x3ed767;if(_0xf73ffa['data']&&_0xf73ffa[_0x53a7c0('0x1e07')][_0x53a7c0('0x1d4a')]&&_0xf73ffa['data'][_0x53a7c0('0x1d4a')][_0x53a7c0('0x543')])for(let _0x23cad6=0x0;_0x23cad6<_0xf73ffa['data'][_0x53a7c0('0x1d4a')][_0x53a7c0('0x543')];_0x23cad6++){_0x3f9c95['error']({'title':_0xf73ffa[_0x53a7c0('0x1e07')][_0x53a7c0('0x1d4a')][_0x23cad6][_0x53a7c0('0x1810')],'msg':_0xf73ffa[_0x53a7c0('0x1e07')]['errors'][_0x23cad6]['message']});}else _0x3f9c95[_0x53a7c0('0x15aa')]({'title':_0xf73ffa[_0x53a7c0('0x276f')]?_0x53a7c0('0x137')+_0xf73ffa[_0x53a7c0('0x276f')]+_0x53a7c0('0x160c')+_0xf73ffa[_0x53a7c0('0x2696')]:'api.sound.save','msg':_0xf73ffa['data']?JSON[_0x53a7c0('0x100b')](_0xf73ffa[_0x53a7c0('0x1e07')]['message']):_0xf73ffa[_0x53a7c0('0x1b75')]()});});}function _0x3e3f0c(_0x1a9678,_0x27abe8){const _0x34eb5b=_0x33cf64,_0x161561=_0x369845[_0x34eb5b('0x1d02')]()['title'](_0x34eb5b('0x5bb')+_0x3c8d8a()[_0x34eb5b('0x10e')](_0x34eb5b('0x156f'))+'?')['htmlContent'](''+(_0x1a9678[_0x34eb5b('0x10ad')]||'sound')+_0x34eb5b('0x24be')+_0x34eb5b('0xd23'))[_0x34eb5b('0x217')]('delete\x20sound')[_0x34eb5b('0x21de')](_0x27abe8)['ok']('OK')[_0x34eb5b('0x1e1f')](_0x34eb5b('0x468'));_0x369845[_0x34eb5b('0x1cb7')](_0x161561)['then'](function(){_0x29e2ec(_0x1a9678);},function(){const _0x52387d=_0x34eb5b;console[_0x52387d('0xe37')](_0x52387d('0x468'));});}let _0x571bda=!![],_0x114af8=0x1;_0x1bc3ca['$watch'](_0x33cf64('0x157b'),function(_0x17c8ae,_0x44cba6){const _0x184034=_0x33cf64;_0x571bda?_0x217fe6(function(){_0x571bda=![];}):(!_0x44cba6&&(_0x114af8=_0x2eee2d[_0x184034('0xc49')][_0x184034('0x182e')]),_0x17c8ae!==_0x44cba6&&(_0x2eee2d['query'][_0x184034('0x182e')]=0x1),!_0x17c8ae&&(_0x2eee2d['query'][_0x184034('0x182e')]=_0x114af8),_0x2eee2d[_0x184034('0x1eb')]());});function _0x56fb9d(_0x4d836d){const _0x170405=_0x33cf64;_0x2eee2d[_0x170405('0x1230')]=_0x4d836d||{'count':0x0,'rows':[]};}function _0x426f2d(){const _0x157819=_0x33cf64;_0x2eee2d[_0x157819('0xc49')][_0x157819('0x17f0')]=(_0x2eee2d[_0x157819('0xc49')][_0x157819('0x182e')]-0x1)*_0x2eee2d['query'][_0x157819('0x3e')],_0x57e975[_0x157819('0x1b4e')]('admin')?_0x2eee2d[_0x157819('0x2219')]=_0xc12f4d[_0x157819('0x156f')][_0x157819('0x1d97')](_0x2eee2d[_0x157819('0xc49')],_0x56fb9d)[_0x157819('0x1964')]:(_0x2eee2d['query']['id']=_0x2eee2d['userProfile']['id'],_0x2eee2d['query']['section']='Sounds',_0x2eee2d[_0x157819('0x2219')]=_0xc12f4d[_0x157819('0x257b')][_0x157819('0x135b')](_0x2eee2d[_0x157819('0xc49')],_0x56fb9d)[_0x157819('0x1964')]);}function _0x51bbc4(_0x1fd6bb,_0x2acb39){const _0x530965=_0x33cf64;_0x369845['show']({'controller':_0x530965('0x2274'),'controllerAs':'vm','templateUrl':_0x1803ca,'parent':angular[_0x530965('0xb6d')](_0x2cd8b2['body']),'targetEvent':_0x1fd6bb,'clickOutsideToClose':!![],'locals':{'sound':_0x2acb39,'sounds':_0x2eee2d[_0x530965('0x1230')][_0x530965('0x6aa')],'license':_0x2eee2d['license'],'setting':_0x2eee2d[_0x530965('0x251')],'crudPermissions':_0x2eee2d[_0x530965('0x1dc1')]}});}function _0x29e2ec(_0x4cc86f){const _0x366252=_0x33cf64;_0xc12f4d[_0x366252('0x156f')][_0x366252('0x15e8')]({'id':_0x4cc86f['id']})['$promise'][_0x366252('0x173b')](function(){const _0x158f51=_0x366252;_0x3c8d8a()[_0x158f51('0x1a8b')](_0x2eee2d[_0x158f51('0x1230')][_0x158f51('0x6aa')],{'id':_0x4cc86f['id']}),_0x2eee2d['sounds']['count']-=0x1,!_0x2eee2d['sounds'][_0x158f51('0x6aa')][_0x158f51('0x543')]&&_0x2eee2d[_0x158f51('0x1eb')](),_0x3f9c95['success']({'title':_0x3c8d8a()[_0x158f51('0x10e')]('Sound')+'\x20deleted!','msg':_0x4cc86f[_0x158f51('0x10ad')]?_0x4cc86f['name']+_0x158f51('0x25d2'):''});})[_0x366252('0x103c')](function(_0x495fb1){const _0x3794c0=_0x366252;if(_0x495fb1[_0x3794c0('0x1e07')]&&_0x495fb1[_0x3794c0('0x1e07')][_0x3794c0('0x1d4a')]&&_0x495fb1[_0x3794c0('0x1e07')][_0x3794c0('0x1d4a')][_0x3794c0('0x543')]){_0x2eee2d[_0x3794c0('0x1d4a')]=_0x495fb1[_0x3794c0('0x1e07')][_0x3794c0('0x1d4a')]||[{'message':_0x495fb1[_0x3794c0('0x1b75')](),'type':_0x3794c0('0x23ae')}];for(let _0x4abf50=0x0;_0x4abf50<_0x495fb1[_0x3794c0('0x1e07')]['errors'][_0x3794c0('0x543')];_0x4abf50++){_0x3f9c95[_0x3794c0('0x15aa')]({'title':_0x495fb1[_0x3794c0('0x1e07')][_0x3794c0('0x1d4a')][_0x4abf50][_0x3794c0('0x1810')],'msg':_0x495fb1['data'][_0x3794c0('0x1d4a')][_0x4abf50][_0x3794c0('0x67f')]});}}else _0x3f9c95['error']({'title':_0x495fb1['status']?_0x3794c0('0x137')+_0x495fb1[_0x3794c0('0x276f')]+_0x3794c0('0x160c')+_0x495fb1[_0x3794c0('0x2696')]:_0x3794c0('0x23ae'),'msg':_0x495fb1['data']?JSON[_0x3794c0('0x100b')](_0x495fb1[_0x3794c0('0x1e07')][_0x3794c0('0x67f')]):_0x495fb1[_0x3794c0('0x67f')]||_0x495fb1[_0x3794c0('0x1b75')]()});});}function _0x3cb15d(){const _0x5db013=_0x33cf64,_0x1c299f=angular['copy'](_0x2eee2d['selectedSounds']);return _0x2eee2d[_0x5db013('0xb6')]=[],_0x1c299f;}function _0x47300c(_0x32a1e0){const _0x22b425=_0x33cf64,_0x383acf=_0x369845[_0x22b425('0x1d02')]()[_0x22b425('0x20d6')](_0x22b425('0x636'))[_0x22b425('0xf8b')](_0x22b425('0x15b9')+_0x2eee2d[_0x22b425('0xb6')][_0x22b425('0x543')]+_0x22b425('0xcb4')+_0x22b425('0xd23'))[_0x22b425('0x217')](_0x22b425('0xf'))[_0x22b425('0x21de')](_0x32a1e0)['ok']('OK')['cancel'](_0x22b425('0x468'));_0x369845[_0x22b425('0x1cb7')](_0x383acf)[_0x22b425('0x173b')](function(){const _0x4d17d3=_0x22b425;_0x2eee2d[_0x4d17d3('0xb6')][_0x4d17d3('0xa6a')](function(_0x1e8bc0){_0x29e2ec(_0x1e8bc0);}),_0x2eee2d[_0x4d17d3('0xb6')]=[];});}function _0x4bed44(){_0x2eee2d['selectedSounds']=[];}function _0x6ffff4(){const _0x33a105=_0x33cf64;_0x2eee2d[_0x33a105('0xb6')]=_0x2eee2d[_0x33a105('0x1230')][_0x33a105('0x6aa')];}function _0x25380d(_0x47f722){const _0xec5400=_0x33cf64;_0x369845[_0xec5400('0x1cb7')]({'controller':'UploadSoundDialogController','controllerAs':'vm','templateUrl':_0x439f20,'parent':angular[_0xec5400('0xb6d')](_0x2cd8b2[_0xec5400('0x1a5')]),'targetEvent':_0x47f722,'clickOutsideToClose':!![],'locals':{'sounds':_0x2eee2d['sounds'][_0xec5400('0x6aa')]}});}}const _0x18242b=_0x47a736;_0x1c0efa[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x1fe5'),'toasty',_0x566993('0x1230'),'api','Auth'];function _0x1c0efa(_0xa944a9,_0x4e5aa6,_0x1acd07,_0x3f0da3,_0x18bcef,_0x1448a6){const _0x4442c6=_0x566993,_0x37e49c=this,_0xb11ab4=0xf,_0x4ae074=_0xb11ab4*0x400*0x400;_0x37e49c['currentUser']=_0x1448a6[_0x4442c6('0x14d4')](),_0x37e49c[_0x4442c6('0x1d4a')]=[],_0x37e49c['title']=_0x4442c6('0xb00'),_0x37e49c['sounds']=_0x3f0da3,_0x37e49c[_0x4442c6('0x1c52')]=[],_0x37e49c[_0x4442c6('0x21f7')]=_0x4442c6('0x2741'),_0x37e49c[_0x4442c6('0x156f')]={},_0x37e49c[_0x4442c6('0x8f9')]={'maxChunkRetries':0x1,'chunkSize':_0x4ae074,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':'api/sounds'},_0x37e49c[_0x4442c6('0x428')]={'flow':{}},_0x37e49c[_0x4442c6('0x134a')]=![],_0x37e49c[_0x4442c6('0x23a9')]=_0x5de9cf,_0x37e49c['upload']=_0x6db769,_0x37e49c['fileSuccess']=_0x1fe93a,_0x37e49c[_0x4442c6('0x31f')]=_0x2b3419,_0x37e49c[_0x4442c6('0x1ff8')]=_0x1ba7be,_0x37e49c[_0x4442c6('0x18e2')]=_0x42ef52;function _0x5de9cf(_0x109314){const _0x423c2b=_0x4442c6,_0x5034a7=[_0x423c2b('0x1362'),_0x423c2b('0x14f7'),'gsm'];if(!_0x3c8d8a()[_0x423c2b('0x2814')](_0x5034a7,_0x109314[_0x423c2b('0x131a')]()))return _0x1acd07['error']({'title':'Invalid\x20extension:\x20'+_0x109314[_0x423c2b('0x131a')](),'msg':'Supported\x20extension:\x20'+_0x5034a7['join']()}),![];if(_0x109314[_0x423c2b('0x2361')]>_0x4ae074)return _0x1acd07[_0x423c2b('0x15aa')]({'title':_0x423c2b('0xd1e'),'msg':_0x423c2b('0xdfc')+_0xb11ab4+'MB'}),![];return _0x37e49c['sound']={'id':_0x109314[_0x423c2b('0x1b98')],'file':_0x109314},_0x37e49c['uploadSounds'][_0x423c2b('0x1377')](_0x37e49c[_0x423c2b('0x156f')]),!![];}function _0x6db769(){const _0x30cda4=_0x4442c6;_0x37e49c[_0x30cda4('0x21f7')]=_0x30cda4('0x2175'),_0x37e49c['ngFlow']['flow'][_0x30cda4('0x2431')]['headers']={'X-Requested-With':_0x30cda4('0x12c9'),'Authorization':_0x30cda4('0x221')+_0xa944a9['get'](_0x30cda4('0x7c6'))},_0x37e49c[_0x30cda4('0x428')][_0x30cda4('0x1789')][_0x30cda4('0x2431')][_0x30cda4('0xc49')]={'role':_0x37e49c[_0x30cda4('0x155f')][_0x30cda4('0x14a')],'userProfileId':_0x37e49c['currentUser'][_0x30cda4('0x1946')]},_0x37e49c[_0x30cda4('0x428')][_0x30cda4('0x1789')][_0x30cda4('0xb1e')]();}function _0x1fe93a(_0x3edb3a,_0x3b129b){const _0x1eb095=_0x4442c6;_0x37e49c['sounds'][_0x1eb095('0x1377')](JSON[_0x1eb095('0x1d5e')](_0x3b129b)),angular[_0x1eb095('0xa6a')](_0x37e49c[_0x1eb095('0x1c52')],function(_0x3af137){const _0x35b53f=_0x1eb095;if(_0x3af137['id']===_0x3edb3a[_0x35b53f('0x1b98')]){const _0x23c315=new FileReader();_0x23c315[_0x35b53f('0x427')](_0x3af137[_0x35b53f('0x2522')][_0x35b53f('0x2522')]),_0x23c315['onload']=function(_0x4af54b){const _0x4817f3=_0x35b53f;_0x3af137[_0x4817f3('0xd1')]=_0x4af54b[_0x4817f3('0x235')][_0x4817f3('0xd09')];};}});}function _0x2b3419(){const _0x20eeda=_0x4442c6;_0x37e49c['ngFlow'][_0x20eeda('0x1789')][_0x20eeda('0x1e1f')](),_0x1acd07[_0x20eeda('0x15aa')]({'title':'Upload\x20error','msg':_0x20eeda('0xc89')}),_0x37e49c[_0x20eeda('0x21f7')]=_0x20eeda('0x2780');}function _0x1ba7be(){const _0x340937=_0x4442c6;_0x37e49c[_0x340937('0x21f7')]!==_0x340937('0x2780')&&(_0x37e49c[_0x340937('0x21f7')]='completed',_0x1acd07[_0x340937('0xdfe')]({'title':_0x340937('0xcb'),'msg':_0x37e49c[_0x340937('0x156f')][_0x340937('0x2522')][_0x340937('0x10ad')]+_0x340937('0x230c')}));}function _0x42ef52(){_0x4e5aa6['hide']();}}const _0x2d9d62=_0x1c0efa;_0x3a07cd[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q','$translate','toasty',_0x566993('0x22ac'),_0x566993('0x23b4'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x3a07cd(_0x4dfe2c,_0x419efa,_0xd7a2b5,_0x2b650f,_0x52af75,_0x1ea8bb,_0x575b52,_0x7471f4,_0x252ecf,_0x2f5064,_0x53f7ea,_0xc65e47,_0x5cd15d,_0x4eb4ef){const _0x50edb4=_0x566993,_0x4d334c=this;_0x4d334c[_0x50edb4('0x155f')]=_0x53f7ea[_0x50edb4('0x14d4')](),_0x4d334c[_0x50edb4('0x1d4a')]=[],_0x4d334c[_0x50edb4('0x251')]=_0x5cd15d,_0x4d334c[_0x50edb4('0x1a29')]=_0xc65e47,_0x4d334c[_0x50edb4('0x1dc1')]=_0x4eb4ef,_0x4d334c[_0x50edb4('0xb0')]={},_0x4d334c[_0x50edb4('0x644')]=_0x4d334c['setting']&&_0x4d334c[_0x50edb4('0x251')][_0x50edb4('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4d334c[_0x50edb4('0x20d6')]=_0x50edb4('0x1d8f'),_0x4d334c[_0x50edb4('0x23b4')]=angular['copy'](_0x252ecf),_0x4d334c['tags']=_0x7471f4,_0x4d334c[_0x50edb4('0x15af')]=![];!_0x4d334c[_0x50edb4('0x23b4')]&&(_0x4d334c[_0x50edb4('0x23b4')]={},_0x4d334c[_0x50edb4('0x20d6')]='TOOLS.NEW_TAG',_0x4d334c[_0x50edb4('0x15af')]=!![]);_0x4d334c[_0x50edb4('0x1f8b')]=_0xf8683d,_0x4d334c[_0x50edb4('0x1dc8')]=_0x43f8d9,_0x4d334c[_0x50edb4('0x30c')]=_0x940b2a,_0x4d334c[_0x50edb4('0x11ae')]=_0x53494d,_0x4d334c[_0x50edb4('0x18e2')]=_0x12a87c;function _0xf8683d(){const _0x1f55e6=_0x50edb4;_0x4d334c[_0x1f55e6('0x1d4a')]=[],_0x2f5064[_0x1f55e6('0x23b4')][_0x1f55e6('0x1195')](_0x4d334c[_0x1f55e6('0x23b4')])[_0x1f55e6('0x1964')]['then'](function(_0x515db8){const _0x318e89=_0x1f55e6;_0x4d334c['tags'][_0x318e89('0x1377')](_0x515db8[_0x318e89('0xf1f')]()),_0x575b52['success']({'title':_0x318e89('0x8fc'),'msg':_0x4d334c['tag'][_0x318e89('0x10ad')]?_0x4d334c[_0x318e89('0x23b4')][_0x318e89('0x10ad')]+_0x318e89('0x209a'):''}),_0x12a87c(_0x515db8);})[_0x1f55e6('0x103c')](function(_0x36f905){const _0xc49159=_0x1f55e6;if(_0x36f905[_0xc49159('0x1e07')]&&_0x36f905['data'][_0xc49159('0x1d4a')]&&_0x36f905[_0xc49159('0x1e07')][_0xc49159('0x1d4a')][_0xc49159('0x543')]){_0x4d334c[_0xc49159('0x1d4a')]=_0x36f905[_0xc49159('0x1e07')][_0xc49159('0x1d4a')]||[{'message':_0x36f905['toString'](),'type':'api.tag.save'}];for(let _0x1c4ba0=0x0;_0x1c4ba0<_0x36f905[_0xc49159('0x1e07')][_0xc49159('0x1d4a')]['length'];_0x1c4ba0+=0x1){_0x575b52[_0xc49159('0x15aa')]({'title':_0x36f905[_0xc49159('0x1e07')]['errors'][_0x1c4ba0]['type'],'msg':_0x36f905[_0xc49159('0x1e07')]['errors'][_0x1c4ba0][_0xc49159('0x67f')]});}}else _0x575b52[_0xc49159('0x15aa')]({'title':_0x36f905[_0xc49159('0x276f')]?'API:'+_0x36f905[_0xc49159('0x276f')]+'\x20-\x20'+_0x36f905[_0xc49159('0x2696')]:_0xc49159('0x798'),'msg':_0x36f905['data']?JSON['stringify'](_0x36f905[_0xc49159('0x1e07')][_0xc49159('0x67f')]):_0x36f905[_0xc49159('0x1b75')]()});});}function _0x43f8d9(){const _0x4e13c3=_0x50edb4;_0x4d334c[_0x4e13c3('0x1d4a')]=[],_0x2f5064[_0x4e13c3('0x23b4')][_0x4e13c3('0x1842')]({'id':_0x4d334c[_0x4e13c3('0x23b4')]['id']},_0x4d334c[_0x4e13c3('0x23b4')])['$promise']['then'](function(_0x7681b){const _0x1cbdcb=_0x4e13c3,_0x24b32c=_0x3c8d8a()[_0x1cbdcb('0x18ab')](_0x4d334c[_0x1cbdcb('0x22ac')],{'id':_0x7681b['id']});_0x24b32c&&_0x3c8d8a()['merge'](_0x24b32c,_0x3c8d8a()[_0x1cbdcb('0x2114')](_0x7681b[_0x1cbdcb('0xf1f')](),_0x3c8d8a()[_0x1cbdcb('0x1d3e')](_0x24b32c))),_0x575b52[_0x1cbdcb('0xdfe')]({'title':_0x1cbdcb('0x171d'),'msg':_0x4d334c['tag']['name']?_0x4d334c['tag'][_0x1cbdcb('0x10ad')]+_0x1cbdcb('0x2788'):''}),_0x12a87c(_0x7681b);})[_0x4e13c3('0x103c')](function(_0x29b62e){const _0x51b59f=_0x4e13c3;if(_0x29b62e['data']&&_0x29b62e[_0x51b59f('0x1e07')][_0x51b59f('0x1d4a')]&&_0x29b62e[_0x51b59f('0x1e07')][_0x51b59f('0x1d4a')][_0x51b59f('0x543')]){_0x4d334c['errors']=_0x29b62e[_0x51b59f('0x1e07')][_0x51b59f('0x1d4a')]||[{'message':_0x29b62e['toString'](),'type':'api.tag.update'}];for(let _0x20b8f6=0x0;_0x20b8f6<_0x29b62e[_0x51b59f('0x1e07')]['errors'][_0x51b59f('0x543')];_0x20b8f6++){_0x575b52[_0x51b59f('0x15aa')]({'title':_0x29b62e[_0x51b59f('0x1e07')][_0x51b59f('0x1d4a')][_0x20b8f6][_0x51b59f('0x1810')],'msg':_0x29b62e['data'][_0x51b59f('0x1d4a')][_0x20b8f6][_0x51b59f('0x67f')]});}}else _0x575b52[_0x51b59f('0x15aa')]({'title':_0x29b62e[_0x51b59f('0x276f')]?_0x51b59f('0x137')+_0x29b62e[_0x51b59f('0x276f')]+'\x20-\x20'+_0x29b62e[_0x51b59f('0x2696')]:_0x51b59f('0x1f9e'),'msg':_0x29b62e['data']?JSON['stringify'](_0x29b62e[_0x51b59f('0x1e07')][_0x51b59f('0x67f')]):_0x29b62e[_0x51b59f('0x1b75')]()});});}function _0x940b2a(_0x4e2aa1){const _0x186b14=_0x50edb4;_0x4d334c[_0x186b14('0x1d4a')]=[];const _0xb035b4=_0x2b650f[_0x186b14('0x1d02')]()[_0x186b14('0x20d6')]('Are\x20you\x20sure?')['content'](_0x186b14('0x279b'))['ariaLabel'](_0x186b14('0x254f'))['ok'](_0x186b14('0x2373'))['cancel'](_0x186b14('0x1d4e'))['targetEvent'](_0x4e2aa1);_0x2b650f[_0x186b14('0x1cb7')](_0xb035b4)[_0x186b14('0x173b')](function(){const _0xf27df4=_0x186b14;_0x2f5064['tag'][_0xf27df4('0x15e8')]({'id':_0x4d334c['tag']['id']})[_0xf27df4('0x1964')][_0xf27df4('0x173b')](function(){const _0x5ebf3e=_0xf27df4;_0x3c8d8a()[_0x5ebf3e('0x1a8b')](_0x4d334c[_0x5ebf3e('0x22ac')],{'id':_0x4d334c[_0x5ebf3e('0x23b4')]['id']}),_0x575b52[_0x5ebf3e('0xdfe')]({'title':_0x5ebf3e('0x1f80'),'msg':(_0x4d334c[_0x5ebf3e('0x23b4')][_0x5ebf3e('0x10ad')]||_0x5ebf3e('0x23b4'))+'\x20has\x20been\x20deleted!'}),_0x12a87c(_0x4d334c[_0x5ebf3e('0x23b4')]);})[_0xf27df4('0x103c')](function(_0x16af9e){const _0x5c5e62=_0xf27df4;if(_0x16af9e[_0x5c5e62('0x1e07')]&&_0x16af9e[_0x5c5e62('0x1e07')]['errors']&&_0x16af9e['data'][_0x5c5e62('0x1d4a')][_0x5c5e62('0x543')]){_0x4d334c[_0x5c5e62('0x1d4a')]=_0x16af9e['data']['errors']||[{'message':_0x16af9e[_0x5c5e62('0x1b75')](),'type':_0x5c5e62('0xc69')}];for(let _0x4fef71=0x0;_0x4fef71<_0x16af9e[_0x5c5e62('0x1e07')][_0x5c5e62('0x1d4a')][_0x5c5e62('0x543')];_0x4fef71++){_0x575b52[_0x5c5e62('0x15aa')]({'title':_0x16af9e[_0x5c5e62('0x1e07')][_0x5c5e62('0x1d4a')][_0x4fef71][_0x5c5e62('0x1810')],'msg':_0x16af9e['data'][_0x5c5e62('0x1d4a')][_0x4fef71][_0x5c5e62('0x67f')]});}}else _0x575b52[_0x5c5e62('0x15aa')]({'title':_0x16af9e[_0x5c5e62('0x276f')]?_0x5c5e62('0x137')+_0x16af9e[_0x5c5e62('0x276f')]+_0x5c5e62('0x160c')+_0x16af9e[_0x5c5e62('0x2696')]:'api.tag.delete','msg':_0x16af9e['data']?JSON[_0x5c5e62('0x100b')](_0x16af9e['data']['message']):_0x16af9e['message']||_0x16af9e[_0x5c5e62('0x1b75')]()});});},function(){});}function _0x53494d(_0x40354a){return _0x40354a===null?undefined:new Date(_0x40354a);}function _0x12a87c(_0x584db0){const _0xb701b9=_0x50edb4;_0x2b650f[_0xb701b9('0x1cf4')](_0x584db0);}}const _0x4f0c25=_0x3a07cd,_0x3d4424=_0x21a6a1['p']+_0x566993('0x22b8');_0x31f3c6[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state',_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),_0x566993('0x638'),'tags',_0x566993('0x257b'),'userProfileSection',_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x31f3c6(_0x5b0a81,_0x1f7a52,_0x3a4209,_0x4b6344,_0x924fed,_0x30123e,_0x2608e5,_0x485ed7,_0x3ab33b,_0x110975,_0x8403cc,_0x3c8420,_0x50bbea,_0x1e4b32,_0x271a2b,_0x4cafb3,_0x271b85){const _0x355c9f=_0x566993,_0x5d929d=this;_0x5d929d[_0x355c9f('0x1a29')]=_0x4cafb3,_0x5d929d[_0x355c9f('0x251')]=_0x271b85,_0x5d929d[_0x355c9f('0x155f')]=_0x271a2b[_0x355c9f('0x14d4')](),_0x5d929d[_0x355c9f('0x22ac')]=_0x3ab33b||{'count':0x0,'rows':[]},_0x5d929d[_0x355c9f('0x257b')]=_0x110975,_0x5d929d[_0x355c9f('0x170e')]=_0x8403cc&&_0x8403cc[_0x355c9f('0x1a2f')]==0x1?_0x8403cc[_0x355c9f('0x6aa')][0x0]:null,_0x5d929d[_0x355c9f('0x1dc1')]=_0x271a2b[_0x355c9f('0xde6')](_0x5d929d['userProfileSection']?_0x5d929d[_0x355c9f('0x170e')][_0x355c9f('0x1dc1')]:null),_0x5d929d['table']=_0x355c9f('0x22ac'),_0x5d929d[_0x355c9f('0x14d6')]='',_0x5d929d[_0x355c9f('0x2303')]=null,_0x5d929d[_0x355c9f('0x1840')]=[],_0x5d929d[_0x355c9f('0xc49')]={'fields':'createdAt,updatedAt,id,name,description,color','sort':_0x355c9f('0x1769'),'limit':0xa,'page':0x1},_0x5d929d[_0x355c9f('0x19eb')]=_0x39b2c4,_0x5d929d['deleteconfirm']=_0x1e3616,_0x5d929d[_0x355c9f('0xdfe')]=_0x224ab8,_0x5d929d[_0x355c9f('0x1a74')]=_0xac02cb,_0x5d929d['createOrEditTag']=_0x1cdc34,_0x5d929d[_0x355c9f('0x30c')]=_0x268127,_0x5d929d[_0x355c9f('0x14c5')]=_0x362859,_0x5d929d['deleteSelectedTags']=_0x369fb2,_0x5d929d[_0x355c9f('0x1c79')]=_0x1faa0c,_0x5d929d[_0x355c9f('0x1f47')]=_0x3c0c32;function _0x39b2c4(_0x11ebd8,_0x381e1d){const _0x31b347=_0x355c9f;_0x924fed[_0x31b347('0x1cb7')]({'controller':'CreateOrEditTagDialogController','controllerAs':'vm','templateUrl':_0x3d4424,'parent':angular['element'](_0x30123e['body']),'targetEvent':_0x381e1d,'clickOutsideToClose':!![],'locals':{'tag':_0x11ebd8,'tags':_0x5d929d[_0x31b347('0x22ac')][_0x31b347('0x6aa')],'license':_0x5d929d[_0x31b347('0x1a29')],'setting':null,'crudPermissions':_0x5d929d[_0x31b347('0x1dc1')]}});}function _0x1e3616(_0x463ebe,_0x23111c){const _0x3c1fd9=_0x355c9f,_0x3c556a=_0x924fed[_0x3c1fd9('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x3c1fd9('0x10e')]('tag')+'?')[_0x3c1fd9('0xf8b')](_0x3c1fd9('0x15b9')+(_0x463ebe['name']||_0x3c1fd9('0x23b4'))+''+_0x3c1fd9('0xd23'))['ariaLabel'](_0x3c1fd9('0x1112'))[_0x3c1fd9('0x21de')](_0x23111c)['ok']('OK')[_0x3c1fd9('0x1e1f')](_0x3c1fd9('0x468'));_0x924fed[_0x3c1fd9('0x1cb7')](_0x3c556a)[_0x3c1fd9('0x173b')](function(){_0x268127(_0x463ebe);},function(){const _0x334325=_0x3c1fd9;console[_0x334325('0xe37')]('CANCEL');});}let _0x1700d8=!![],_0x1d6e0e=0x1;_0x5b0a81[_0x355c9f('0x1bdb')](_0x355c9f('0x157b'),function(_0x1a8741,_0x461a9f){const _0x371939=_0x355c9f;_0x1700d8?_0x2608e5(function(){_0x1700d8=![];}):(!_0x461a9f&&(_0x1d6e0e=_0x5d929d[_0x371939('0xc49')]['page']),_0x1a8741!==_0x461a9f&&(_0x5d929d['query'][_0x371939('0x182e')]=0x1),!_0x1a8741&&(_0x5d929d['query']['page']=_0x1d6e0e),_0x5d929d[_0x371939('0x1a74')]());});function _0x224ab8(_0x137289){_0x5d929d['tags']=_0x137289||{'count':0x0,'rows':[]};}function _0xac02cb(){const _0x49df69=_0x355c9f;_0x5d929d['query']['offset']=(_0x5d929d[_0x49df69('0xc49')][_0x49df69('0x182e')]-0x1)*_0x5d929d[_0x49df69('0xc49')][_0x49df69('0x3e')],_0x271a2b[_0x49df69('0x1b4e')](_0x49df69('0x79b'))?_0x5d929d['promise']=_0x3c8420['tag'][_0x49df69('0x1d97')](_0x5d929d['query'],_0x224ab8)[_0x49df69('0x1964')]:(_0x5d929d['query']['id']=_0x5d929d[_0x49df69('0x257b')]['id'],_0x5d929d[_0x49df69('0xc49')][_0x49df69('0x17c9')]=_0x49df69('0xc38'),_0x5d929d['promise']=_0x3c8420['userProfile']['getResources'](_0x5d929d[_0x49df69('0xc49')],_0x224ab8)[_0x49df69('0x1964')]);}function _0x1cdc34(_0xd79c31,_0x410d0a){const _0xe9ca0d=_0x355c9f;_0x924fed[_0xe9ca0d('0x1cb7')]({'controller':'CreateOrEditTagDialogController','controllerAs':'vm','templateUrl':_0x3d4424,'parent':angular[_0xe9ca0d('0xb6d')](_0x30123e['body']),'targetEvent':_0xd79c31,'clickOutsideToClose':!![],'locals':{'tag':_0x410d0a,'tags':_0x5d929d[_0xe9ca0d('0x22ac')]['rows'],'license':_0x5d929d['license'],'setting':_0x5d929d[_0xe9ca0d('0x251')],'crudPermissions':_0x5d929d[_0xe9ca0d('0x1dc1')]}});}function _0x268127(_0x330b5b){const _0x41ec30=_0x355c9f;_0x3c8420['tag'][_0x41ec30('0x15e8')]({'id':_0x330b5b['id']})[_0x41ec30('0x1964')]['then'](function(){const _0x130b53=_0x41ec30;_0x3c8d8a()[_0x130b53('0x1a8b')](_0x5d929d[_0x130b53('0x22ac')][_0x130b53('0x6aa')],{'id':_0x330b5b['id']}),_0x5d929d[_0x130b53('0x22ac')]['count']-=0x1,!_0x5d929d[_0x130b53('0x22ac')][_0x130b53('0x6aa')][_0x130b53('0x543')]&&_0x5d929d[_0x130b53('0x1a74')](),_0x1e4b32[_0x130b53('0xdfe')]({'title':_0x3c8d8a()[_0x130b53('0x10e')](_0x130b53('0x460'))+_0x130b53('0x1c5e'),'msg':_0x330b5b[_0x130b53('0x10ad')]?_0x330b5b['name']+'\x20has\x20been\x20deleted!':''});})[_0x41ec30('0x103c')](function(_0x4d0ae6){const _0x5e5a4a=_0x41ec30;if(_0x4d0ae6[_0x5e5a4a('0x1e07')]&&_0x4d0ae6[_0x5e5a4a('0x1e07')][_0x5e5a4a('0x1d4a')]&&_0x4d0ae6[_0x5e5a4a('0x1e07')][_0x5e5a4a('0x1d4a')][_0x5e5a4a('0x543')]){_0x5d929d[_0x5e5a4a('0x1d4a')]=_0x4d0ae6[_0x5e5a4a('0x1e07')][_0x5e5a4a('0x1d4a')]||[{'message':_0x4d0ae6[_0x5e5a4a('0x1b75')](),'type':_0x5e5a4a('0x1741')}];for(let _0x336cc9=0x0;_0x336cc9<_0x4d0ae6[_0x5e5a4a('0x1e07')][_0x5e5a4a('0x1d4a')]['length'];_0x336cc9++){_0x1e4b32[_0x5e5a4a('0x15aa')]({'title':_0x4d0ae6[_0x5e5a4a('0x1e07')]['errors'][_0x336cc9][_0x5e5a4a('0x1810')],'msg':_0x4d0ae6[_0x5e5a4a('0x1e07')][_0x5e5a4a('0x1d4a')][_0x336cc9][_0x5e5a4a('0x67f')]});}}else _0x1e4b32['error']({'title':_0x4d0ae6[_0x5e5a4a('0x276f')]?_0x5e5a4a('0x137')+_0x4d0ae6[_0x5e5a4a('0x276f')]+'\x20-\x20'+_0x4d0ae6[_0x5e5a4a('0x2696')]:_0x5e5a4a('0x1741'),'msg':_0x4d0ae6[_0x5e5a4a('0x1e07')]?JSON[_0x5e5a4a('0x100b')](_0x4d0ae6[_0x5e5a4a('0x1e07')]['message']):_0x4d0ae6[_0x5e5a4a('0x67f')]||_0x4d0ae6[_0x5e5a4a('0x1b75')]()});});}function _0x362859(){const _0x53dd51=_0x355c9f,_0x57cfc8=angular[_0x53dd51('0x2e3')](_0x5d929d[_0x53dd51('0x1840')]);return _0x5d929d[_0x53dd51('0x1840')]=[],_0x57cfc8;}function _0x369fb2(_0x57aaf8){const _0x1d1c00=_0x355c9f,_0x42bc5e=_0x924fed['confirm']()['title'](_0x1d1c00('0x1753'))[_0x1d1c00('0xf8b')](_0x1d1c00('0x15b9')+_0x5d929d[_0x1d1c00('0x1840')][_0x1d1c00('0x543')]+_0x1d1c00('0xcb4')+'\x20will\x20be\x20deleted.')[_0x1d1c00('0x217')](_0x1d1c00('0xc3'))[_0x1d1c00('0x21de')](_0x57aaf8)['ok']('OK')['cancel'](_0x1d1c00('0x468'));_0x924fed['show'](_0x42bc5e)[_0x1d1c00('0x173b')](function(){const _0x4c9d5f=_0x1d1c00;_0x5d929d[_0x4c9d5f('0x1840')][_0x4c9d5f('0xa6a')](function(_0x550ea7){_0x268127(_0x550ea7);}),_0x5d929d['selectedTags']=[];});}function _0x1faa0c(){const _0x4102c6=_0x355c9f;_0x5d929d[_0x4102c6('0x1840')]=[];}function _0x3c0c32(){const _0x1f0ba6=_0x355c9f;_0x5d929d[_0x1f0ba6('0x1840')]=_0x5d929d[_0x1f0ba6('0x22ac')]['rows'];}}const _0x459788=_0x31f3c6;_0x544551['$inject']=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x2637'),'template','api',_0x566993('0x1600'),_0x566993('0x1a29'),'setting','crudPermissions'];function _0x544551(_0x1997df,_0x533c92,_0xec46ef,_0x2911d9,_0x369f0b,_0x1ebb67,_0x5cc0e3,_0x1f043f,_0x2ddb0e,_0x1eecd0,_0x4541c2,_0x1229f5,_0x17eefb,_0x48417d){const _0x5ebd5b=_0x566993,_0x586055=this;_0x586055[_0x5ebd5b('0x155f')]=_0x4541c2[_0x5ebd5b('0x14d4')](),_0x586055[_0x5ebd5b('0x1d4a')]=[],_0x586055['setting']=_0x17eefb,_0x586055[_0x5ebd5b('0x1a29')]=_0x1229f5,_0x586055[_0x5ebd5b('0x1dc1')]=_0x48417d,_0x586055[_0x5ebd5b('0xb0')]={},_0x586055['passwordPattern']=_0x586055['setting']&&_0x586055[_0x5ebd5b('0x251')][_0x5ebd5b('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x586055[_0x5ebd5b('0x20d6')]='TOOLS.EDIT_TEMPLATE',_0x586055[_0x5ebd5b('0x1a98')]=angular[_0x5ebd5b('0x2e3')](_0x2ddb0e),_0x586055[_0x5ebd5b('0x2637')]=_0x1f043f,_0x586055['newTemplate']=![];!_0x586055[_0x5ebd5b('0x1a98')]&&(_0x586055[_0x5ebd5b('0x1a98')]={},_0x586055[_0x5ebd5b('0x20d6')]=_0x5ebd5b('0x15bf'),_0x586055[_0x5ebd5b('0x83')]=!![]);_0x586055[_0x5ebd5b('0xd98')]=_0x1daf95,_0x586055[_0x5ebd5b('0x1342')]=_0x16629f,_0x586055[_0x5ebd5b('0x8e2')]=_0x2136d0,_0x586055[_0x5ebd5b('0x11ae')]=_0x2b9a80,_0x586055[_0x5ebd5b('0x18e2')]=_0x113627;function _0x1daf95(){const _0x5272b9=_0x5ebd5b;_0x586055[_0x5272b9('0x1d4a')]=[],_0x1eecd0[_0x5272b9('0x1a98')][_0x5272b9('0x1195')](_0x586055[_0x5272b9('0x1a98')])[_0x5272b9('0x1964')]['then'](function(_0x49d3db){const _0xef8478=_0x5272b9;_0x586055[_0xef8478('0x2637')][_0xef8478('0x1377')](_0x49d3db[_0xef8478('0xf1f')]()),_0x5cc0e3[_0xef8478('0xdfe')]({'title':_0xef8478('0x15bd'),'msg':_0x586055[_0xef8478('0x1a98')][_0xef8478('0x10ad')]?_0x586055['template'][_0xef8478('0x10ad')]+_0xef8478('0x209a'):''}),_0x113627(_0x49d3db);})['catch'](function(_0x32ca62){const _0x2fa030=_0x5272b9;if(_0x32ca62[_0x2fa030('0x1e07')]&&_0x32ca62[_0x2fa030('0x1e07')][_0x2fa030('0x1d4a')]&&_0x32ca62[_0x2fa030('0x1e07')][_0x2fa030('0x1d4a')][_0x2fa030('0x543')]){_0x586055[_0x2fa030('0x1d4a')]=_0x32ca62['data'][_0x2fa030('0x1d4a')]||[{'message':_0x32ca62[_0x2fa030('0x1b75')](),'type':_0x2fa030('0x20b4')}];for(let _0x59857b=0x0;_0x59857b<_0x32ca62[_0x2fa030('0x1e07')][_0x2fa030('0x1d4a')]['length'];_0x59857b+=0x1){_0x5cc0e3['error']({'title':_0x32ca62[_0x2fa030('0x1e07')][_0x2fa030('0x1d4a')][_0x59857b][_0x2fa030('0x1810')],'msg':_0x32ca62[_0x2fa030('0x1e07')]['errors'][_0x59857b][_0x2fa030('0x67f')]});}}else _0x5cc0e3['error']({'title':_0x32ca62[_0x2fa030('0x276f')]?_0x2fa030('0x137')+_0x32ca62[_0x2fa030('0x276f')]+'\x20-\x20'+_0x32ca62[_0x2fa030('0x2696')]:_0x2fa030('0x20b4'),'msg':_0x32ca62['data']?JSON[_0x2fa030('0x100b')](_0x32ca62[_0x2fa030('0x1e07')][_0x2fa030('0x67f')]):_0x32ca62[_0x2fa030('0x1b75')]()});});}function _0x16629f(){const _0x2f6e14=_0x5ebd5b;_0x586055[_0x2f6e14('0x1d4a')]=[],_0x1eecd0[_0x2f6e14('0x1a98')][_0x2f6e14('0x1842')]({'id':_0x586055['template']['id']},_0x586055[_0x2f6e14('0x1a98')])[_0x2f6e14('0x1964')][_0x2f6e14('0x173b')](function(_0x3b8b88){const _0x12f18d=_0x2f6e14,_0x65aff2=_0x3c8d8a()['find'](_0x586055[_0x12f18d('0x2637')],{'id':_0x3b8b88['id']});_0x65aff2&&_0x3c8d8a()[_0x12f18d('0x9ef')](_0x65aff2,_0x3c8d8a()['pick'](_0x3b8b88[_0x12f18d('0xf1f')](),_0x3c8d8a()[_0x12f18d('0x1d3e')](_0x65aff2))),_0x5cc0e3[_0x12f18d('0xdfe')]({'title':'Template\x20properly\x20saved!','msg':_0x586055[_0x12f18d('0x1a98')]['name']?_0x586055[_0x12f18d('0x1a98')][_0x12f18d('0x10ad')]+_0x12f18d('0x2788'):''}),_0x113627(_0x3b8b88);})[_0x2f6e14('0x103c')](function(_0x38ded1){const _0x3ef5d5=_0x2f6e14;if(_0x38ded1['data']&&_0x38ded1[_0x3ef5d5('0x1e07')][_0x3ef5d5('0x1d4a')]&&_0x38ded1['data'][_0x3ef5d5('0x1d4a')][_0x3ef5d5('0x543')]){_0x586055[_0x3ef5d5('0x1d4a')]=_0x38ded1[_0x3ef5d5('0x1e07')][_0x3ef5d5('0x1d4a')]||[{'message':_0x38ded1[_0x3ef5d5('0x1b75')](),'type':'api.template.update'}];for(let _0x1b7a0d=0x0;_0x1b7a0d<_0x38ded1[_0x3ef5d5('0x1e07')][_0x3ef5d5('0x1d4a')][_0x3ef5d5('0x543')];_0x1b7a0d++){_0x5cc0e3[_0x3ef5d5('0x15aa')]({'title':_0x38ded1[_0x3ef5d5('0x1e07')][_0x3ef5d5('0x1d4a')][_0x1b7a0d][_0x3ef5d5('0x1810')],'msg':_0x38ded1[_0x3ef5d5('0x1e07')][_0x3ef5d5('0x1d4a')][_0x1b7a0d][_0x3ef5d5('0x67f')]});}}else _0x5cc0e3[_0x3ef5d5('0x15aa')]({'title':_0x38ded1[_0x3ef5d5('0x276f')]?'API:'+_0x38ded1[_0x3ef5d5('0x276f')]+_0x3ef5d5('0x160c')+_0x38ded1[_0x3ef5d5('0x2696')]:'api.template.update','msg':_0x38ded1[_0x3ef5d5('0x1e07')]?JSON[_0x3ef5d5('0x100b')](_0x38ded1[_0x3ef5d5('0x1e07')][_0x3ef5d5('0x67f')]):_0x38ded1[_0x3ef5d5('0x1b75')]()});});}function _0x2136d0(_0x18b9b){const _0x302804=_0x5ebd5b;_0x586055[_0x302804('0x1d4a')]=[];const _0x49e62f=_0x2911d9['confirm']()[_0x302804('0x20d6')]('Are\x20you\x20sure?')[_0x302804('0x732')](_0x302804('0x1175'))[_0x302804('0x217')](_0x302804('0xd2f'))['ok'](_0x302804('0x2373'))[_0x302804('0x1e1f')](_0x302804('0x1d4e'))['targetEvent'](_0x18b9b);_0x2911d9[_0x302804('0x1cb7')](_0x49e62f)[_0x302804('0x173b')](function(){const _0x47721d=_0x302804;_0x1eecd0[_0x47721d('0x1a98')][_0x47721d('0x15e8')]({'id':_0x586055[_0x47721d('0x1a98')]['id']})['$promise'][_0x47721d('0x173b')](function(){const _0x58f9d3=_0x47721d;_0x3c8d8a()[_0x58f9d3('0x1a8b')](_0x586055[_0x58f9d3('0x2637')],{'id':_0x586055['template']['id']}),_0x5cc0e3['success']({'title':'Template\x20properly\x20deleted!','msg':(_0x586055['template'][_0x58f9d3('0x10ad')]||'template')+'\x20has\x20been\x20deleted!'}),_0x113627(_0x586055[_0x58f9d3('0x1a98')]);})['catch'](function(_0x29f941){const _0x1c4c54=_0x47721d;if(_0x29f941[_0x1c4c54('0x1e07')]&&_0x29f941[_0x1c4c54('0x1e07')][_0x1c4c54('0x1d4a')]&&_0x29f941[_0x1c4c54('0x1e07')][_0x1c4c54('0x1d4a')][_0x1c4c54('0x543')]){_0x586055[_0x1c4c54('0x1d4a')]=_0x29f941['data']['errors']||[{'message':_0x29f941['toString'](),'type':'api.template.delete'}];for(let _0x350554=0x0;_0x350554<_0x29f941[_0x1c4c54('0x1e07')][_0x1c4c54('0x1d4a')]['length'];_0x350554++){_0x5cc0e3[_0x1c4c54('0x15aa')]({'title':_0x29f941[_0x1c4c54('0x1e07')][_0x1c4c54('0x1d4a')][_0x350554][_0x1c4c54('0x1810')],'msg':_0x29f941[_0x1c4c54('0x1e07')][_0x1c4c54('0x1d4a')][_0x350554][_0x1c4c54('0x67f')]});}}else _0x5cc0e3['error']({'title':_0x29f941[_0x1c4c54('0x276f')]?'API:'+_0x29f941[_0x1c4c54('0x276f')]+_0x1c4c54('0x160c')+_0x29f941[_0x1c4c54('0x2696')]:_0x1c4c54('0xdbb'),'msg':_0x29f941[_0x1c4c54('0x1e07')]?JSON[_0x1c4c54('0x100b')](_0x29f941[_0x1c4c54('0x1e07')][_0x1c4c54('0x67f')]):_0x29f941[_0x1c4c54('0x67f')]||_0x29f941[_0x1c4c54('0x1b75')]()});});},function(){});}function _0x2b9a80(_0x5a4ba2){return _0x5a4ba2===null?undefined:new Date(_0x5a4ba2);}function _0x113627(_0x165800){_0x2911d9['hide'](_0x165800);}}const _0x2102b9=_0x544551,_0x957d2a=_0x21a6a1['p']+_0x566993('0x1eb6');_0x4f21bf[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav','$mdDialog',_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x2637'),'userProfile','userProfileSection','api','msUtils',_0x566993('0x1558'),_0x566993('0x1600'),'license',_0x566993('0x251')];function _0x4f21bf(_0x29392c,_0x37b3f1,_0x44d70e,_0x4fdd51,_0x1e98ff,_0x5256cc,_0x4203fc,_0x1ba0cb,_0x4f5e15,_0x1e7fcb,_0x4029a5,_0xe5018a,_0x1f5bd6,_0x16ae4a,_0x1706ed,_0x269874,_0x1201eb){const _0x2ea6c4=_0x566993,_0x1a7fcf=this;_0x1a7fcf['license']=_0x269874,_0x1a7fcf[_0x2ea6c4('0x251')]=_0x1201eb,_0x1a7fcf[_0x2ea6c4('0x155f')]=_0x1706ed['getCurrentUser'](),_0x1a7fcf[_0x2ea6c4('0x2637')]=_0x4f5e15||{'count':0x0,'rows':[]},_0x1a7fcf['userProfile']=_0x1e7fcb,_0x1a7fcf[_0x2ea6c4('0x170e')]=_0x4029a5&&_0x4029a5[_0x2ea6c4('0x1a2f')]==0x1?_0x4029a5[_0x2ea6c4('0x6aa')][0x0]:null,_0x1a7fcf[_0x2ea6c4('0x1dc1')]=_0x1706ed[_0x2ea6c4('0xde6')](_0x1a7fcf[_0x2ea6c4('0x170e')]?_0x1a7fcf[_0x2ea6c4('0x170e')][_0x2ea6c4('0x1dc1')]:null),_0x1a7fcf['table']=_0x2ea6c4('0x2637'),_0x1a7fcf[_0x2ea6c4('0x14d6')]='',_0x1a7fcf['listOrderAsc']=null,_0x1a7fcf['selectedTemplates']=[],_0x1a7fcf[_0x2ea6c4('0xc49')]={'fields':_0x2ea6c4('0xc9a'),'sort':_0x2ea6c4('0x1769'),'limit':0xa,'page':0x1},_0x1a7fcf[_0x2ea6c4('0x19eb')]=_0x21342d,_0x1a7fcf[_0x2ea6c4('0x1a20')]=_0x12ab3f,_0x1a7fcf[_0x2ea6c4('0xdfe')]=_0xe2c98e,_0x1a7fcf[_0x2ea6c4('0x1202')]=_0x1e6bde,_0x1a7fcf[_0x2ea6c4('0x4cb')]=_0x38dc1a,_0x1a7fcf[_0x2ea6c4('0x8e2')]=_0x11d9fa,_0x1a7fcf[_0x2ea6c4('0x14e3')]=_0x2e74a0,_0x1a7fcf['deleteSelectedTemplates']=_0x2afd09,_0x1a7fcf[_0x2ea6c4('0xf3c')]=_0x5dd5f9,_0x1a7fcf[_0x2ea6c4('0x148b')]=_0xfc285f;function _0x21342d(_0x41bede,_0x2dec17){const _0x5aa3c4=_0x2ea6c4;_0x1e98ff[_0x5aa3c4('0x1cb7')]({'controller':_0x5aa3c4('0x13b2'),'controllerAs':'vm','templateUrl':_0x957d2a,'parent':angular['element'](_0x5256cc['body']),'targetEvent':_0x2dec17,'clickOutsideToClose':!![],'locals':{'template':_0x41bede,'templates':_0x1a7fcf[_0x5aa3c4('0x2637')][_0x5aa3c4('0x6aa')],'license':_0x1a7fcf[_0x5aa3c4('0x1a29')],'setting':null,'crudPermissions':_0x1a7fcf[_0x5aa3c4('0x1dc1')]}});}function _0x12ab3f(_0x486dcf,_0x4ffc7a){const _0x3b9e86=_0x2ea6c4,_0x150226=_0x1e98ff['confirm']()[_0x3b9e86('0x20d6')](_0x3b9e86('0x5bb')+_0x3c8d8a()['startCase']('template')+'?')[_0x3b9e86('0xf8b')](''+(_0x486dcf[_0x3b9e86('0x10ad')]||_0x3b9e86('0x1a98'))+_0x3b9e86('0x24be')+_0x3b9e86('0xd23'))[_0x3b9e86('0x217')](_0x3b9e86('0x91e'))['targetEvent'](_0x4ffc7a)['ok']('OK')[_0x3b9e86('0x1e1f')](_0x3b9e86('0x468'));_0x1e98ff['show'](_0x150226)[_0x3b9e86('0x173b')](function(){_0x11d9fa(_0x486dcf);},function(){const _0x228e3c=_0x3b9e86;console[_0x228e3c('0xe37')]('CANCEL');});}let _0x17a9fc=!![],_0x45370a=0x1;_0x29392c[_0x2ea6c4('0x1bdb')](_0x2ea6c4('0x157b'),function(_0x5870b5,_0x17b6ee){const _0x2defac=_0x2ea6c4;_0x17a9fc?_0x4203fc(function(){_0x17a9fc=![];}):(!_0x17b6ee&&(_0x45370a=_0x1a7fcf[_0x2defac('0xc49')][_0x2defac('0x182e')]),_0x5870b5!==_0x17b6ee&&(_0x1a7fcf[_0x2defac('0xc49')][_0x2defac('0x182e')]=0x1),!_0x5870b5&&(_0x1a7fcf[_0x2defac('0xc49')]['page']=_0x45370a),_0x1a7fcf[_0x2defac('0x1202')]());});function _0xe2c98e(_0x1c9c14){const _0x1a5cbe=_0x2ea6c4;_0x1a7fcf[_0x1a5cbe('0x2637')]=_0x1c9c14||{'count':0x0,'rows':[]};}function _0x1e6bde(){const _0x36f957=_0x2ea6c4;_0x1a7fcf[_0x36f957('0xc49')][_0x36f957('0x17f0')]=(_0x1a7fcf[_0x36f957('0xc49')][_0x36f957('0x182e')]-0x1)*_0x1a7fcf[_0x36f957('0xc49')][_0x36f957('0x3e')],_0x1706ed[_0x36f957('0x1b4e')](_0x36f957('0x79b'))?_0x1a7fcf[_0x36f957('0x2219')]=_0xe5018a['template']['get'](_0x1a7fcf['query'],_0xe2c98e)[_0x36f957('0x1964')]:(_0x1a7fcf['query']['id']=_0x1a7fcf[_0x36f957('0x257b')]['id'],_0x1a7fcf[_0x36f957('0xc49')][_0x36f957('0x17c9')]=_0x36f957('0x2db'),_0x1a7fcf[_0x36f957('0x2219')]=_0xe5018a[_0x36f957('0x257b')][_0x36f957('0x135b')](_0x1a7fcf[_0x36f957('0xc49')],_0xe2c98e)[_0x36f957('0x1964')]);}function _0x38dc1a(_0x1a4d14,_0x12d3ac){const _0x46e561=_0x2ea6c4;_0x1e98ff[_0x46e561('0x1cb7')]({'controller':_0x46e561('0x13b2'),'controllerAs':'vm','templateUrl':_0x957d2a,'parent':angular['element'](_0x5256cc[_0x46e561('0x1a5')]),'targetEvent':_0x1a4d14,'clickOutsideToClose':!![],'locals':{'template':_0x12d3ac,'templates':_0x1a7fcf['templates'][_0x46e561('0x6aa')],'license':_0x1a7fcf[_0x46e561('0x1a29')],'setting':_0x1a7fcf['setting'],'crudPermissions':_0x1a7fcf[_0x46e561('0x1dc1')]}});}function _0x11d9fa(_0xbd74cd){const _0x1ca954=_0x2ea6c4;_0xe5018a[_0x1ca954('0x1a98')][_0x1ca954('0x15e8')]({'id':_0xbd74cd['id']})[_0x1ca954('0x1964')][_0x1ca954('0x173b')](function(){const _0x6205a0=_0x1ca954;_0x3c8d8a()[_0x6205a0('0x1a8b')](_0x1a7fcf[_0x6205a0('0x2637')][_0x6205a0('0x6aa')],{'id':_0xbd74cd['id']}),_0x1a7fcf['templates']['count']-=0x1,!_0x1a7fcf['templates'][_0x6205a0('0x6aa')]['length']&&_0x1a7fcf[_0x6205a0('0x1202')](),_0x16ae4a[_0x6205a0('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x6205a0('0x1aa9'))+_0x6205a0('0x1c5e'),'msg':_0xbd74cd[_0x6205a0('0x10ad')]?_0xbd74cd['name']+_0x6205a0('0x25d2'):''});})[_0x1ca954('0x103c')](function(_0x38c98e){const _0x109e23=_0x1ca954;if(_0x38c98e[_0x109e23('0x1e07')]&&_0x38c98e[_0x109e23('0x1e07')]['errors']&&_0x38c98e[_0x109e23('0x1e07')][_0x109e23('0x1d4a')][_0x109e23('0x543')]){_0x1a7fcf[_0x109e23('0x1d4a')]=_0x38c98e[_0x109e23('0x1e07')]['errors']||[{'message':_0x38c98e[_0x109e23('0x1b75')](),'type':'SYSTEM:DELETEtemplate'}];for(let _0x145ff2=0x0;_0x145ff2<_0x38c98e[_0x109e23('0x1e07')][_0x109e23('0x1d4a')][_0x109e23('0x543')];_0x145ff2++){_0x16ae4a[_0x109e23('0x15aa')]({'title':_0x38c98e[_0x109e23('0x1e07')][_0x109e23('0x1d4a')][_0x145ff2]['type'],'msg':_0x38c98e[_0x109e23('0x1e07')][_0x109e23('0x1d4a')][_0x145ff2][_0x109e23('0x67f')]});}}else _0x16ae4a[_0x109e23('0x15aa')]({'title':_0x38c98e[_0x109e23('0x276f')]?_0x109e23('0x137')+_0x38c98e[_0x109e23('0x276f')]+'\x20-\x20'+_0x38c98e[_0x109e23('0x2696')]:'SYSTEM:DELETEtemplate','msg':_0x38c98e[_0x109e23('0x1e07')]?JSON[_0x109e23('0x100b')](_0x38c98e['data']['message']):_0x38c98e[_0x109e23('0x67f')]||_0x38c98e[_0x109e23('0x1b75')]()});});}function _0x2e74a0(){const _0x49dfaa=_0x2ea6c4,_0x4394f8=angular[_0x49dfaa('0x2e3')](_0x1a7fcf[_0x49dfaa('0x1247')]);return _0x1a7fcf['selectedTemplates']=[],_0x4394f8;}function _0x2afd09(_0x348be1){const _0x67261=_0x2ea6c4,_0x17ae5f=_0x1e98ff['confirm']()[_0x67261('0x20d6')](_0x67261('0x2174'))[_0x67261('0xf8b')](''+_0x1a7fcf[_0x67261('0x1247')]['length']+_0x67261('0xcb4')+_0x67261('0xd23'))[_0x67261('0x217')]('delete\x20Templates')[_0x67261('0x21de')](_0x348be1)['ok']('OK')[_0x67261('0x1e1f')]('CANCEL');_0x1e98ff[_0x67261('0x1cb7')](_0x17ae5f)[_0x67261('0x173b')](function(){const _0x5cb09b=_0x67261;_0x1a7fcf[_0x5cb09b('0x1247')][_0x5cb09b('0xa6a')](function(_0x242faf){_0x11d9fa(_0x242faf);}),_0x1a7fcf[_0x5cb09b('0x1247')]=[];});}function _0x5dd5f9(){const _0x3b329d=_0x2ea6c4;_0x1a7fcf[_0x3b329d('0x1247')]=[];}function _0xfc285f(){const _0x2a3328=_0x2ea6c4;_0x1a7fcf[_0x2a3328('0x1247')]=_0x1a7fcf['templates'][_0x2a3328('0x6aa')];}}const _0x5bae16=_0x4f21bf;_0x6ec2da['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q','$translate',_0x566993('0x1558'),'trunks','trunk','api','Auth',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x6ec2da(_0x45cb27,_0x1704b6,_0x39c386,_0x104c82,_0x4435da,_0x4a1c05,_0x516fb4,_0x5c84ce,_0x319608,_0x41c5ce,_0x21bebb,_0x222d1e,_0x241553,_0x57ba81){const _0x4b6b3f=_0x566993,_0x4573d1=this;_0x4573d1['currentUser']=_0x21bebb[_0x4b6b3f('0x14d4')](),_0x4573d1['errors']=[],_0x4573d1[_0x4b6b3f('0x251')]=_0x241553,_0x4573d1['license']=_0x222d1e,_0x4573d1[_0x4b6b3f('0x1dc1')]=_0x57ba81,_0x4573d1[_0x4b6b3f('0xb0')]={},_0x4573d1[_0x4b6b3f('0x644')]=_0x4573d1[_0x4b6b3f('0x251')]&&_0x4573d1['setting'][_0x4b6b3f('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4573d1[_0x4b6b3f('0x20d6')]=_0x4b6b3f('0x12a6'),_0x4573d1['trunk']=angular[_0x4b6b3f('0x2e3')](_0x319608),_0x4573d1[_0x4b6b3f('0x673')]=_0x5c84ce,_0x4573d1[_0x4b6b3f('0x7f1')]=![];!_0x4573d1[_0x4b6b3f('0x15b7')]&&(_0x4573d1[_0x4b6b3f('0x15b7')]={'active':!![],'type':_0x4b6b3f('0x1424'),'dtmfmode':_0x4b6b3f('0xeaf'),'qualify':_0x4b6b3f('0x1d41'),'t38pt_udptl':'no'},_0x4573d1[_0x4b6b3f('0x20d6')]='TOOLS.NEW_TRUNK',_0x4573d1[_0x4b6b3f('0x7f1')]=!![]);_0x4573d1['addNewTrunk']=_0xaf8600,_0x4573d1[_0x4b6b3f('0x761')]=_0x105472,_0x4573d1[_0x4b6b3f('0x771')]=_0x55af10,_0x4573d1['getDateFromString']=_0x2f8074,_0x4573d1[_0x4b6b3f('0x18e2')]=_0x270f6c;function _0xaf8600(){const _0x1e803f=_0x4b6b3f;_0x4573d1['errors']=[],_0x41c5ce[_0x1e803f('0x15b7')][_0x1e803f('0x1195')](_0x4573d1[_0x1e803f('0x15b7')])[_0x1e803f('0x1964')][_0x1e803f('0x173b')](function(_0x383ea8){const _0x1fca24=_0x1e803f;_0x4573d1[_0x1fca24('0x673')]['unshift'](_0x383ea8[_0x1fca24('0xf1f')]()),_0x516fb4[_0x1fca24('0xdfe')]({'title':'Trunk\x20properly\x20created','msg':_0x4573d1[_0x1fca24('0x15b7')][_0x1fca24('0x10ad')]?_0x4573d1['trunk']['name']+'\x20has\x20been\x20created!':''}),_0x270f6c(_0x383ea8);})['catch'](function(_0x2219f7){const _0xe3f59d=_0x1e803f;if(_0x2219f7[_0xe3f59d('0x1e07')]&&_0x2219f7[_0xe3f59d('0x1e07')][_0xe3f59d('0x1d4a')]&&_0x2219f7[_0xe3f59d('0x1e07')]['errors'][_0xe3f59d('0x543')]){_0x4573d1[_0xe3f59d('0x1d4a')]=_0x2219f7[_0xe3f59d('0x1e07')][_0xe3f59d('0x1d4a')]||[{'message':_0x2219f7[_0xe3f59d('0x1b75')](),'type':_0xe3f59d('0xb8e')}];for(let _0x539b72=0x0;_0x539b72<_0x2219f7[_0xe3f59d('0x1e07')][_0xe3f59d('0x1d4a')]['length'];_0x539b72+=0x1){_0x516fb4[_0xe3f59d('0x15aa')]({'title':_0x2219f7[_0xe3f59d('0x1e07')][_0xe3f59d('0x1d4a')][_0x539b72][_0xe3f59d('0x1810')],'msg':_0x2219f7[_0xe3f59d('0x1e07')]['errors'][_0x539b72]['message']});}}else _0x516fb4[_0xe3f59d('0x15aa')]({'title':_0x2219f7[_0xe3f59d('0x276f')]?_0xe3f59d('0x137')+_0x2219f7[_0xe3f59d('0x276f')]+_0xe3f59d('0x160c')+_0x2219f7[_0xe3f59d('0x2696')]:'api.trunk.save','msg':_0x2219f7[_0xe3f59d('0x1e07')]?JSON['stringify'](_0x2219f7[_0xe3f59d('0x1e07')][_0xe3f59d('0x67f')]):_0x2219f7[_0xe3f59d('0x1b75')]()});});}function _0x105472(){const _0x3b0b78=_0x4b6b3f;_0x4573d1[_0x3b0b78('0x1d4a')]=[],_0x41c5ce[_0x3b0b78('0x15b7')][_0x3b0b78('0x1842')]({'id':_0x4573d1[_0x3b0b78('0x15b7')]['id']},_0x4573d1[_0x3b0b78('0x15b7')])[_0x3b0b78('0x1964')][_0x3b0b78('0x173b')](function(_0x4545ea){const _0x6e3b9b=_0x3b0b78,_0x1bc072=_0x3c8d8a()['find'](_0x4573d1[_0x6e3b9b('0x673')],{'id':_0x4545ea['id']});_0x1bc072&&_0x3c8d8a()['merge'](_0x1bc072,_0x3c8d8a()[_0x6e3b9b('0x2114')](_0x4545ea[_0x6e3b9b('0xf1f')](),_0x3c8d8a()['keys'](_0x1bc072))),_0x516fb4[_0x6e3b9b('0xdfe')]({'title':_0x6e3b9b('0x1f22'),'msg':_0x4573d1['trunk'][_0x6e3b9b('0x10ad')]?_0x4573d1['trunk']['name']+_0x6e3b9b('0x2788'):''}),_0x270f6c(_0x4545ea);})[_0x3b0b78('0x103c')](function(_0x1ebc76){const _0x5c4287=_0x3b0b78;if(_0x1ebc76[_0x5c4287('0x1e07')]&&_0x1ebc76[_0x5c4287('0x1e07')][_0x5c4287('0x1d4a')]&&_0x1ebc76[_0x5c4287('0x1e07')][_0x5c4287('0x1d4a')]['length']){_0x4573d1[_0x5c4287('0x1d4a')]=_0x1ebc76[_0x5c4287('0x1e07')][_0x5c4287('0x1d4a')]||[{'message':_0x1ebc76[_0x5c4287('0x1b75')](),'type':_0x5c4287('0x1156')}];for(let _0x352a01=0x0;_0x352a01<_0x1ebc76[_0x5c4287('0x1e07')][_0x5c4287('0x1d4a')][_0x5c4287('0x543')];_0x352a01++){_0x516fb4[_0x5c4287('0x15aa')]({'title':_0x1ebc76[_0x5c4287('0x1e07')]['errors'][_0x352a01][_0x5c4287('0x1810')],'msg':_0x1ebc76[_0x5c4287('0x1e07')][_0x5c4287('0x1d4a')][_0x352a01][_0x5c4287('0x67f')]});}}else _0x516fb4['error']({'title':_0x1ebc76[_0x5c4287('0x276f')]?_0x5c4287('0x137')+_0x1ebc76[_0x5c4287('0x276f')]+_0x5c4287('0x160c')+_0x1ebc76[_0x5c4287('0x2696')]:'api.trunk.update','msg':_0x1ebc76[_0x5c4287('0x1e07')]?JSON[_0x5c4287('0x100b')](_0x1ebc76[_0x5c4287('0x1e07')]['message']):_0x1ebc76[_0x5c4287('0x1b75')]()});});}function _0x55af10(_0x2dfec2){const _0x4e18b6=_0x4b6b3f;_0x4573d1['errors']=[];const _0xba197c=_0x104c82[_0x4e18b6('0x1d02')]()[_0x4e18b6('0x20d6')](_0x4e18b6('0x8ef'))[_0x4e18b6('0x732')](_0x4e18b6('0x15e1'))[_0x4e18b6('0x217')](_0x4e18b6('0x10e3'))['ok'](_0x4e18b6('0x2373'))[_0x4e18b6('0x1e1f')](_0x4e18b6('0x1d4e'))['targetEvent'](_0x2dfec2);_0x104c82[_0x4e18b6('0x1cb7')](_0xba197c)['then'](function(){const _0x48b6cf=_0x4e18b6;_0x41c5ce['trunk'][_0x48b6cf('0x15e8')]({'id':_0x4573d1[_0x48b6cf('0x15b7')]['id']})['$promise'][_0x48b6cf('0x173b')](function(){const _0x3fb356=_0x48b6cf;_0x3c8d8a()[_0x3fb356('0x1a8b')](_0x4573d1[_0x3fb356('0x673')],{'id':_0x4573d1[_0x3fb356('0x15b7')]['id']}),_0x516fb4[_0x3fb356('0xdfe')]({'title':'Trunk\x20properly\x20deleted!','msg':(_0x4573d1['trunk']['name']||_0x3fb356('0x15b7'))+'\x20has\x20been\x20deleted!'}),_0x270f6c(_0x4573d1[_0x3fb356('0x15b7')]);})[_0x48b6cf('0x103c')](function(_0x460830){const _0x14302c=_0x48b6cf;if(_0x460830[_0x14302c('0x1e07')]&&_0x460830[_0x14302c('0x1e07')]['errors']&&_0x460830[_0x14302c('0x1e07')][_0x14302c('0x1d4a')][_0x14302c('0x543')]){_0x4573d1['errors']=_0x460830[_0x14302c('0x1e07')][_0x14302c('0x1d4a')]||[{'message':_0x460830['toString'](),'type':_0x14302c('0x1dbb')}];for(let _0x33267d=0x0;_0x33267d<_0x460830[_0x14302c('0x1e07')][_0x14302c('0x1d4a')][_0x14302c('0x543')];_0x33267d++){_0x516fb4[_0x14302c('0x15aa')]({'title':_0x460830[_0x14302c('0x1e07')]['errors'][_0x33267d][_0x14302c('0x1810')],'msg':_0x460830[_0x14302c('0x1e07')][_0x14302c('0x1d4a')][_0x33267d][_0x14302c('0x67f')]});}}else _0x516fb4[_0x14302c('0x15aa')]({'title':_0x460830[_0x14302c('0x276f')]?'API:'+_0x460830['status']+'\x20-\x20'+_0x460830[_0x14302c('0x2696')]:'api.trunk.delete','msg':_0x460830['data']?JSON[_0x14302c('0x100b')](_0x460830['data']['message']):_0x460830[_0x14302c('0x67f')]||_0x460830[_0x14302c('0x1b75')]()});});},function(){});}function _0x2f8074(_0x2d6247){return _0x2d6247===null?undefined:new Date(_0x2d6247);}function _0x270f6c(_0x3ae1b7){const _0x1f7d35=_0x4b6b3f;_0x104c82[_0x1f7d35('0x1cf4')](_0x3ae1b7);}}const _0xda6e46=_0x6ec2da;_0x364fcd[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x2276'),_0x566993('0x1558'),'api','trunk',_0x566993('0x673'),_0x566993('0x638')];function _0x364fcd(_0xf1885f,_0x4ba736,_0xe27019,_0x46d299,_0x3b6978,_0x46bbee,_0x302b02){const _0x2a5edf=_0x566993,_0x542de4=this;_0x542de4[_0x2a5edf('0x7f1')]=!![],_0x542de4['trunk']=angular['copy'](_0x3b6978),_0x542de4[_0x2a5edf('0x673')]=_0x46bbee,_0x542de4['title']=_0x302b02[_0x2a5edf('0x1467')]('TOOLS.CLONE_TRUNK');_0x3b6978&&_0x3b6978[_0x2a5edf('0x10ad')]&&(_0x542de4[_0x2a5edf('0x20d6')]+=':\x20'+_0x3b6978[_0x2a5edf('0x10ad')]);_0x542de4[_0x2a5edf('0x1141')]=_0x4f1bd9,_0x542de4[_0x2a5edf('0x18e2')]=_0x59f27b;function _0x4f1bd9(){const _0x5bd0ee=_0x2a5edf;return _0x46d299[_0x5bd0ee('0x15b7')]['clone']({'id':_0x3b6978['id']},_0x542de4[_0x5bd0ee('0x15b7')])[_0x5bd0ee('0x1964')]['then'](function(_0x4e9a89){const _0x5dd212=_0x5bd0ee;_0x542de4['trunks'][_0x5dd212('0x1377')](_0x4e9a89['toJSON']()),_0xe27019[_0x5dd212('0xdfe')]({'title':_0x5dd212('0xc83'),'msg':_0x542de4[_0x5dd212('0x15b7')]['name']?_0x542de4[_0x5dd212('0x15b7')][_0x5dd212('0x10ad')]+_0x5dd212('0x648'):''}),_0x4ba736['go'](_0x5dd212('0x1d9e'),{'id':_0x4e9a89['id']}),_0x59f27b(_0x4e9a89);})['catch'](function(_0x5d1a27){const _0x3e8b1b=_0x5bd0ee;if(_0x5d1a27[_0x3e8b1b('0x1e07')]&&_0x5d1a27[_0x3e8b1b('0x1e07')][_0x3e8b1b('0x1d4a')]&&_0x5d1a27['data'][_0x3e8b1b('0x1d4a')][_0x3e8b1b('0x543')]){_0x542de4[_0x3e8b1b('0x1d4a')]=_0x5d1a27[_0x3e8b1b('0x1e07')]['errors']||[{'message':_0x5d1a27[_0x3e8b1b('0x1b75')](),'type':_0x3e8b1b('0x20ab')}];for(let _0x16f8b9=0x0;_0x16f8b9<_0x5d1a27[_0x3e8b1b('0x1e07')][_0x3e8b1b('0x1d4a')][_0x3e8b1b('0x543')];_0x16f8b9+=0x1){_0xe27019[_0x3e8b1b('0x15aa')]({'title':_0x5d1a27['data'][_0x3e8b1b('0x1d4a')][_0x16f8b9]['type'],'msg':_0x5d1a27['data'][_0x3e8b1b('0x1d4a')][_0x16f8b9][_0x3e8b1b('0x67f')]});}}else _0xe27019[_0x3e8b1b('0x15aa')]({'title':_0x5d1a27[_0x3e8b1b('0x276f')]?_0x3e8b1b('0x137')+_0x5d1a27[_0x3e8b1b('0x276f')]+_0x3e8b1b('0x160c')+_0x5d1a27[_0x3e8b1b('0x2696')]:'api.trunk.clone','msg':_0x5d1a27[_0x3e8b1b('0x1e07')]?JSON[_0x3e8b1b('0x100b')](_0x5d1a27['data'][_0x3e8b1b('0x67f')]):_0x5d1a27[_0x3e8b1b('0x1b75')]()});});}function _0x59f27b(_0x5a6fc2){_0xf1885f['hide'](_0x5a6fc2);}}const _0x20696a=_0x364fcd,_0x41ede2=_0x21a6a1['p']+_0x566993('0xc09');_0x57d4c9['$inject']=[_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x15b7'),_0x566993('0x170e')];function _0x57d4c9(_0x3600ec,_0x9fdb63,_0xec2c28,_0x256d22,_0x526d1c,_0x398375,_0x6d7b6,_0xfc8b05,_0x1ad69e,_0x488fb4,_0x3c8cc3,_0x350cb6){const _0x5d997b=_0x566993,_0xd25449=this;_0xd25449[_0x5d997b('0x155f')]=_0x488fb4[_0x5d997b('0x14d4')](),_0xd25449['license']=_0x398375,_0xd25449[_0x5d997b('0x251')]=_0x6d7b6,_0xd25449[_0x5d997b('0x644')]=_0xd25449[_0x5d997b('0x251')][_0x5d997b('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xd25449[_0x5d997b('0x614')]=_0x9fdb63[_0x5d997b('0x375')]()+_0x5d997b('0x122b')+_0x9fdb63[_0x5d997b('0x4d1')](),_0xd25449[_0x5d997b('0x15b7')]=_0x3c8cc3||_0x3600ec[_0x5d997b('0x197a')]['trunk']||{},_0xd25449[_0x5d997b('0x170e')]=_0x350cb6&&_0x350cb6[_0x5d997b('0x1a2f')]==0x1?_0x350cb6['rows'][0x0]:null,_0xd25449[_0x5d997b('0x1dc1')]=_0x488fb4[_0x5d997b('0xde6')](_0xd25449['userProfileSection']?_0xd25449[_0x5d997b('0x170e')][_0x5d997b('0x1dc1')]:null),_0xd25449[_0x5d997b('0xb0')]={},_0xd25449[_0x5d997b('0xd5f')]=_0x3600ec[_0x5d997b('0x197a')][_0x5d997b('0x1e66')]||0x0,_0xd25449['gotogoto']=_0x4e2509,_0xd25449[_0x5d997b('0x28a')]=_0x2446d3,_0xd25449[_0x5d997b('0x5a4')]=_0x1ad69e[_0x5d997b('0x2787')],_0xd25449[_0x5d997b('0x13e6')]=_0x3079f7,_0xd25449[_0x5d997b('0x761')]=_0x441f5f,_0x488fb4['hasRole']('admin')?_0xfc8b05[_0x5d997b('0xf01')][_0x5d997b('0x1d97')]({'fields':_0x5d997b('0xd52'),'sort':_0x5d997b('0x10ad')})[_0x5d997b('0x1964')][_0x5d997b('0x173b')](function(_0x296cb8){const _0x132985=_0x5d997b;_0xd25449['contexts']=_0x296cb8[_0x132985('0x6aa')]||[];})['catch'](function(_0x4a01e5){const _0x291491=_0x5d997b;_0x1ad69e['error']({'title':_0x4a01e5[_0x291491('0x276f')]?_0x291491('0x137')+_0x4a01e5['status']+_0x291491('0x160c')+_0x4a01e5[_0x291491('0x2696')]:_0x291491('0x2064'),'msg':_0x4a01e5[_0x291491('0x1e07')]?JSON[_0x291491('0x100b')](_0x4a01e5[_0x291491('0x1e07')]):_0x4a01e5[_0x291491('0x1b75')]()});}):_0xfc8b05[_0x5d997b('0xf01')][_0x5d997b('0x1d97')]({'fields':'id,name','sort':'name'})[_0x5d997b('0x1964')][_0x5d997b('0x173b')](function(_0x19de20){const _0x4039f8=_0x5d997b;_0xd25449[_0x4039f8('0x22a9')]=_0x19de20[_0x4039f8('0x6aa')]||[];})['then'](function(){const _0x4ebf29=_0x5d997b;return _0xfc8b05[_0x4ebf29('0x170e')][_0x4ebf29('0x1d97')]({'userProfileId':_0xd25449[_0x4ebf29('0x155f')]['userProfileId'],'sectionId':0x195})['$promise'];})[_0x5d997b('0x173b')](function(_0x3e7810){const _0x10571a=_0x5d997b,_0x50dcf8=_0x3e7810&&_0x3e7810[_0x10571a('0x6aa')]?_0x3e7810[_0x10571a('0x6aa')][0x0]:null;if(!_0x50dcf8)return _0xfc8b05[_0x10571a('0xf01')][_0x10571a('0x1d97')]({'fields':_0x10571a('0xd52'),'sort':_0x10571a('0x10ad'),'defaultEntry':0x1})[_0x10571a('0x1964')][_0x10571a('0x173b')](function(_0x4a138b){const _0x3c92a0=_0x10571a;_0xd25449['contexts']=_0x4a138b[_0x3c92a0('0x6aa')]||[];});else{if(!_0x50dcf8[_0x10571a('0x273e')])return _0xfc8b05[_0x10571a('0xda9')][_0x10571a('0x1d97')]({'sectionId':_0x50dcf8['id']})[_0x10571a('0x1964')][_0x10571a('0x173b')](function(_0x1aa630){const _0x15b564=_0x10571a,_0x53a76a=_0x3c8d8a()[_0x15b564('0x8a2')](_0x1aa630[_0x15b564('0x6aa')],function(_0x26adee){const _0x1a8552=_0x15b564;return _0x3c8d8a()['find'](_0xd25449[_0x1a8552('0x22a9')],{'id':_0x26adee[_0x1a8552('0x1ce0')]});});let _0x66d34e=null;_0xd25449[_0x15b564('0x15b7')]&&(_0x66d34e=_0x3c8d8a()[_0x15b564('0x18ab')](_0xd25449[_0x15b564('0x22a9')],{'name':_0xd25449[_0x15b564('0x15b7')][_0x15b564('0x2b9')]}));if(_0x66d34e&&!_0x3c8d8a()['some'](_0x53a76a,['id',_0x66d34e['id']])){const _0x142006=_0x3c8d8a()[_0x15b564('0x18ab')](_0xd25449['contexts'],{'id':_0x66d34e['id']});_0x142006[_0x15b564('0x268e')]=![],_0x53a76a[_0x15b564('0x18bb')](_0x142006);}_0xd25449[_0x15b564('0x22a9')]=_0x53a76a;});}})[_0x5d997b('0x103c')](function(_0x37ce5d){const _0x4de5e8=_0x5d997b;_0x1ad69e[_0x4de5e8('0x15aa')]({'title':_0x37ce5d[_0x4de5e8('0x276f')]?_0x4de5e8('0x137')+_0x37ce5d[_0x4de5e8('0x276f')]+'\x20-\x20'+_0x37ce5d['statusText']:'SYSTEM:GETcontexts','msg':_0x37ce5d[_0x4de5e8('0x1e07')]?JSON[_0x4de5e8('0x100b')](_0x37ce5d['data']):_0x37ce5d[_0x4de5e8('0x1b75')]()});});function _0x4e2509(){const _0x597e4b=_0x5d997b;if(_0x488fb4[_0x597e4b('0x1b4e')](_0x597e4b('0x79b')))_0x3600ec['go'](_0x597e4b('0x218d'),{});else return _0xfc8b05['userProfileSection'][_0x597e4b('0x1d97')]({'userProfileId':_0x488fb4[_0x597e4b('0x14d4')]()[_0x597e4b('0x1946')],'sectionId':0x19b})[_0x597e4b('0x1964')][_0x597e4b('0x173b')](function(_0x1632de){const _0x2bb06f=_0x597e4b,_0x306b81=_0x1632de&&_0x1632de[_0x2bb06f('0x6aa')]?_0x1632de[_0x2bb06f('0x6aa')][0x0]:null;_0x306b81&&_0x306b81[_0x2bb06f('0x830')]?_0x3600ec['go'](_0x2bb06f('0x218d'),{}):_0x1ad69e[_0x2bb06f('0x2787')]({'title':_0x526d1c['instant'](_0x2bb06f('0x4aa')),'msg':_0x526d1c[_0x2bb06f('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x597e4b('0x103c')](function(_0x4d560c){const _0x464b5f=_0x597e4b;_0x1ad69e[_0x464b5f('0x15aa')]({'title':_0x4d560c['status']?_0x464b5f('0x137')+_0x4d560c[_0x464b5f('0x276f')]+_0x464b5f('0x160c')+_0x4d560c[_0x464b5f('0x2696')]:_0x464b5f('0x144d'),'msg':_0x4d560c[_0x464b5f('0x276f')]?JSON['stringify'](_0x4d560c[_0x464b5f('0x1e07')]):_0x4d560c[_0x464b5f('0x1b75')]()});});}function _0x2446d3(_0x15c07f,_0x261d89){const _0x286dee=_0x5d997b;_0xec2c28[_0x286dee('0x1cb7')]({'controller':_0x286dee('0x1376'),'controllerAs':'vm','templateUrl':_0x41ede2,'parent':angular[_0x286dee('0xb6d')](_0x256d22[_0x286dee('0x1a5')]),'targetEvent':_0x261d89,'clickOutsideToClose':!![],'locals':{'trunk':_0x15c07f,'trunks':_0xd25449[_0x286dee('0x673')]?_0xd25449['trunks'][_0x286dee('0x6aa')]:[],'crudPermissions':_0xd25449[_0x286dee('0x1dc1')]}});}function _0x3079f7(){const _0xf5774e=_0x5d997b;_0x3600ec['go']('app.tools.trunks',{},{'reload':_0xf5774e('0x1bff')});}function _0x441f5f(){const _0x2344d6=_0x5d997b;_0xfc8b05['trunk']['update']({'id':_0xd25449[_0x2344d6('0x15b7')]['id']},_0xd25449[_0x2344d6('0x15b7')])[_0x2344d6('0x1964')][_0x2344d6('0x173b')](function(){const _0x4e747e=_0x2344d6;_0x1ad69e['success']({'title':'Trunk\x20updated!','msg':_0xd25449[_0x4e747e('0x15b7')][_0x4e747e('0x10ad')]?_0xd25449[_0x4e747e('0x15b7')][_0x4e747e('0x10ad')]+_0x4e747e('0x1fd6'):''});})['catch'](function(_0x30e473){const _0x456135=_0x2344d6;_0x1ad69e[_0x456135('0x15aa')]({'title':_0x30e473[_0x456135('0x276f')]?_0x456135('0x137')+_0x30e473['status']+_0x456135('0x160c')+_0x30e473[_0x456135('0x2696')]:'SYSTEM:GETtrunk','msg':_0x30e473[_0x456135('0x1e07')]?JSON[_0x456135('0x100b')](_0x30e473[_0x456135('0x1e07')]):_0x30e473['toString']()});});}}const _0x422a92=_0x57d4c9,_0x5371c9=_0x21a6a1['p']+_0x566993('0x12dc');_0x57f0f7[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),'trunks',_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0x1f9'),'toasty',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x57f0f7(_0x191254,_0x3723e9,_0x4a1c56,_0x37603f,_0x211dbb,_0x2b7c18,_0x5edd1c,_0x5e66d3,_0x31f1d6,_0x34de19,_0x561d85,_0x44b47d,_0x2430ab,_0x3dea7c,_0x1e0ff1,_0x2e8318,_0x554ad0){const _0x28824f=_0x566993,_0x5e4ca3=this;_0x5e4ca3[_0x28824f('0x1a29')]=_0x2e8318,_0x5e4ca3['setting']=_0x554ad0,_0x5e4ca3[_0x28824f('0x155f')]=_0x1e0ff1[_0x28824f('0x14d4')](),_0x5e4ca3['trunks']=_0x31f1d6||{'count':0x0,'rows':[]},_0x5e4ca3[_0x28824f('0x257b')]=_0x34de19,_0x5e4ca3[_0x28824f('0x170e')]=_0x561d85&&_0x561d85['count']==0x1?_0x561d85['rows'][0x0]:null,_0x5e4ca3[_0x28824f('0x1dc1')]=_0x1e0ff1[_0x28824f('0xde6')](_0x5e4ca3[_0x28824f('0x170e')]?_0x5e4ca3[_0x28824f('0x170e')][_0x28824f('0x1dc1')]:null),_0x5e4ca3['table']='trunks',_0x5e4ca3[_0x28824f('0x14d6')]='',_0x5e4ca3[_0x28824f('0x2303')]=null,_0x5e4ca3[_0x28824f('0x26bd')]=[],_0x5e4ca3[_0x28824f('0xc49')]={'fields':_0x28824f('0x23ce'),'sort':_0x28824f('0x1769'),'limit':0xa,'page':0x1},_0x5e4ca3[_0x28824f('0x1f90')]=_0x3c8d8a()[_0x28824f('0x128')]([{'option':_0x28824f('0x1090'),'value':_0x28824f('0x1f69')},{'option':_0x28824f('0x2265'),'value':_0x28824f('0xdd5')},{'option':'Peer','value':_0x28824f('0x19f')}],function(_0x59e497){const _0x4c7cec=_0x28824f;return _0x3c8d8a()[_0x4c7cec('0x166c')](_0x59e497[_0x4c7cec('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x935')]=_0x3c8d8a()['keyBy']([{'option':_0x28824f('0xeaf'),'value':'\x27rfc2833\x27'},{'option':_0x28824f('0x2787'),'value':'\x27info\x27'},{'option':_0x28824f('0x1b95'),'value':_0x28824f('0x246')},{'option':'inband','value':_0x28824f('0x1915')},{'option':_0x28824f('0x1afd'),'value':_0x28824f('0xff3')}],function(_0x167181){const _0x28a32c=_0x28824f;return _0x3c8d8a()[_0x28a32c('0x166c')](_0x167181[_0x28a32c('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x29b')]=_0x3c8d8a()[_0x28824f('0x128')]([{'option':_0x28824f('0x339'),'value':'\x27force_rport\x27'},{'option':_0x28824f('0x281b'),'value':_0x28824f('0x1043')},{'option':_0x28824f('0x1d41'),'value':_0x28824f('0x26ec')},{'option':'no','value':_0x28824f('0x13d1')},{'option':_0x28824f('0x1633'),'value':_0x28824f('0x885')},{'option':'route','value':_0x28824f('0x41a')}],function(_0x2f21cb){const _0x5dcf5c=_0x28824f;return _0x3c8d8a()['replace'](_0x2f21cb[_0x5dcf5c('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x1508')]=_0x3c8d8a()[_0x28824f('0x128')]([{'option':_0x28824f('0x1d41'),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'}],function(_0x434617){const _0x1b90cb=_0x28824f;return _0x3c8d8a()[_0x1b90cb('0x166c')](_0x434617[_0x1b90cb('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3['arrayallow']=_0x3c8d8a()['keyBy']([{'option':_0x28824f('0x1710'),'value':_0x28824f('0xc61')},{'option':_0x28824f('0xf90'),'value':'\x27alaw\x27'},{'option':_0x28824f('0x2aa'),'value':_0x28824f('0x3e4')},{'option':_0x28824f('0xefd'),'value':_0x28824f('0x1479')},{'option':_0x28824f('0x1921'),'value':'\x27g726\x27'},{'option':'g722','value':_0x28824f('0x1e48')},{'option':_0x28824f('0x2769'),'value':_0x28824f('0x1b24')},{'option':_0x28824f('0x26fc'),'value':_0x28824f('0x17ee')},{'option':_0x28824f('0x27d1'),'value':'\x27opus\x27'},{'option':_0x28824f('0xbe8'),'value':_0x28824f('0xb88')}],function(_0x3c5a29){const _0x148676=_0x28824f;return _0x3c8d8a()[_0x148676('0x166c')](_0x3c5a29['value'],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x829')]=_0x3c8d8a()[_0x28824f('0x128')]([{'option':'port','value':_0x28824f('0xac4')},{'option':_0x28824f('0x265a'),'value':_0x28824f('0xb05')},{'option':_0x28824f('0x84c'),'value':_0x28824f('0x1dc3')}],function(_0x4d8498){const _0x57280c=_0x28824f;return _0x3c8d8a()[_0x57280c('0x166c')](_0x4d8498[_0x57280c('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0xf53')]=_0x3c8d8a()[_0x28824f('0x128')]([{'option':'yes','value':_0x28824f('0x26ec')},{'option':'no','value':'\x27no\x27'},{'option':'nonat','value':_0x28824f('0x25a4')},{'option':'update','value':'\x27update\x27'}],function(_0x368e8c){const _0x56dd27=_0x28824f;return _0x3c8d8a()[_0x56dd27('0x166c')](_0x368e8c[_0x56dd27('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0xff8')]=_0x3c8d8a()[_0x28824f('0x128')]([{'option':_0x28824f('0x1d41'),'value':_0x28824f('0x26ec')},{'option':'no','value':'\x27no\x27'}],function(_0xda94f8){const _0x25e95e=_0x28824f;return _0x3c8d8a()['replace'](_0xda94f8[_0x25e95e('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x1d4c')]=_0x3c8d8a()['keyBy']([{'option':_0x28824f('0x1d41'),'value':'\x27yes\x27'},{'option':'no','value':_0x28824f('0x13d1')}],function(_0x567964){const _0x4655e7=_0x28824f;return _0x3c8d8a()[_0x4655e7('0x166c')](_0x567964[_0x4655e7('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x98f')]=_0x3c8d8a()['keyBy']([{'option':'yes','value':_0x28824f('0x26ec')},{'option':'no','value':_0x28824f('0x13d1')}],function(_0x472248){const _0x4e0347=_0x28824f;return _0x3c8d8a()[_0x4e0347('0x166c')](_0x472248[_0x4e0347('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3['arraysendrpid']=_0x3c8d8a()[_0x28824f('0x128')]([{'option':_0x28824f('0x1d41'),'value':_0x28824f('0x26ec')},{'option':'no','value':'\x27no\x27'},{'option':_0x28824f('0x1c84'),'value':'\x27pai\x27'}],function(_0x5726e0){const _0x2decc8=_0x28824f;return _0x3c8d8a()[_0x2decc8('0x166c')](_0x5726e0[_0x2decc8('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x1539')]=_0x3c8d8a()[_0x28824f('0x128')]([{'option':_0x28824f('0x1d41'),'value':_0x28824f('0x26ec')},{'option':'no','value':_0x28824f('0x13d1')}],function(_0x279b7f){const _0x4df974=_0x28824f;return _0x3c8d8a()[_0x4df974('0x166c')](_0x279b7f['value'],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x188c')]=_0x3c8d8a()[_0x28824f('0x128')]([{'option':_0x28824f('0x3e2'),'value':_0x28824f('0x8d0')},{'option':_0x28824f('0x1923'),'value':_0x28824f('0x1373')},{'option':'ws','value':_0x28824f('0x7e1')},{'option':_0x28824f('0x197b'),'value':_0x28824f('0x24fc')},{'option':'tls','value':'\x27tls\x27'}],function(_0x16d056){const _0x1fea0e=_0x28824f;return _0x3c8d8a()[_0x1fea0e('0x166c')](_0x16d056['value'],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x1cf3')]=_0x3c8d8a()['keyBy']([{'option':_0x28824f('0x1029'),'value':_0x28824f('0x26ec')},{'option':'No','value':_0x28824f('0x13d1')},{'option':_0x28824f('0x2322'),'value':_0x28824f('0x1484')}],function(_0x409827){const _0x17ab05=_0x28824f;return _0x3c8d8a()[_0x17ab05('0x166c')](_0x409827[_0x17ab05('0xa7b')],new RegExp('\x27','g'),'');}),_0x5e4ca3[_0x28824f('0x222e')]=_0x21bb3c,_0x5e4ca3[_0x28824f('0x28a')]=_0x48095b,_0x5e4ca3['gotorealtimegoto']=_0x4749e7,_0x5e4ca3['deleteconfirm']=_0x1efba8,_0x5e4ca3[_0x28824f('0xdfe')]=_0x2a5721,_0x5e4ca3[_0x28824f('0x44e')]=_0x113abe,_0x5e4ca3[_0x28824f('0xaca')]=_0x56c7c2,_0x5e4ca3[_0x28824f('0x771')]=_0x101eed,_0x5e4ca3[_0x28824f('0xb12')]=_0x187573,_0x5e4ca3[_0x28824f('0x2e8')]=_0x33865f,_0x5e4ca3[_0x28824f('0x26b3')]=_0x31713e,_0x5e4ca3[_0x28824f('0x224b')]=_0x285fab;function _0x21bb3c(_0x4c1d01){const _0x11f08d=_0x28824f;_0x4a1c56['go'](_0x11f08d('0x1d9e'),{'id':_0x4c1d01['id'],'trunk':_0x4c1d01,'crudPermissions':_0x5e4ca3[_0x11f08d('0x1dc1')]});}function _0x48095b(_0x308c6a,_0x2e7f69){const _0x5554b3=_0x28824f;_0x211dbb[_0x5554b3('0x1cb7')]({'controller':_0x5554b3('0x1376'),'controllerAs':'vm','templateUrl':_0x41ede2,'parent':angular['element'](_0x2b7c18[_0x5554b3('0x1a5')]),'targetEvent':_0x2e7f69,'clickOutsideToClose':!![],'locals':{'trunk':_0x308c6a,'trunks':_0x5e4ca3['trunks']?_0x5e4ca3['trunks']['rows']:[],'crudPermissions':_0x5e4ca3['crudPermissions']}});}function _0x4749e7(){const _0x5b7c99=_0x28824f;if(_0x1e0ff1['hasRole'](_0x5b7c99('0x79b')))_0x4a1c56['go'](_0x5b7c99('0x218d'),{});else return _0x44b47d[_0x5b7c99('0x170e')]['get']({'userProfileId':_0x1e0ff1[_0x5b7c99('0x14d4')]()[_0x5b7c99('0x1946')],'sectionId':0x19b})[_0x5b7c99('0x1964')]['then'](function(_0x52afc7){const _0x36698e=_0x5b7c99,_0x4e430e=_0x52afc7&&_0x52afc7['rows']?_0x52afc7['rows'][0x0]:null;_0x4e430e&&_0x4e430e['enabled']?_0x4a1c56['go']('app.voice.realtime.trunks',{}):_0x3dea7c['info']({'title':_0x5e66d3[_0x36698e('0x1467')](_0x36698e('0x4aa')),'msg':_0x5e66d3[_0x36698e('0x1467')](_0x36698e('0x7d4'))});})[_0x5b7c99('0x103c')](function(_0x4efe20){const _0xcc0915=_0x5b7c99;_0x3dea7c['error']({'title':_0x4efe20['status']?_0xcc0915('0x137')+_0x4efe20[_0xcc0915('0x276f')]+_0xcc0915('0x160c')+_0x4efe20[_0xcc0915('0x2696')]:'USERPROFILE:GET_SECTION','msg':_0x4efe20[_0xcc0915('0x276f')]?JSON[_0xcc0915('0x100b')](_0x4efe20[_0xcc0915('0x1e07')]):_0x4efe20[_0xcc0915('0x1b75')]()});});}function _0x1efba8(_0x1f61a9,_0x544c16){const _0x4cdc74=_0x28824f,_0x32cc3c=_0x211dbb[_0x4cdc74('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x4cdc74('0x10e')]('trunk')+'?')[_0x4cdc74('0xf8b')](_0x4cdc74('0x15b9')+(_0x1f61a9[_0x4cdc74('0x10ad')]||'trunk')+_0x4cdc74('0x24be')+_0x4cdc74('0xd23'))[_0x4cdc74('0x217')](_0x4cdc74('0xadf'))[_0x4cdc74('0x21de')](_0x544c16)['ok']('OK')[_0x4cdc74('0x1e1f')](_0x4cdc74('0x468'));_0x211dbb[_0x4cdc74('0x1cb7')](_0x32cc3c)[_0x4cdc74('0x173b')](function(){_0x101eed(_0x1f61a9);},function(){const _0x39f5ae=_0x4cdc74;console[_0x39f5ae('0xe37')](_0x39f5ae('0x468'));});}let _0x1114da=!![],_0x1d6027=0x1;_0x191254[_0x28824f('0x1bdb')](_0x28824f('0x157b'),function(_0x34c1e4,_0x33be68){const _0x143d1e=_0x28824f;_0x1114da?_0x5edd1c(function(){_0x1114da=![];}):(!_0x33be68&&(_0x1d6027=_0x5e4ca3[_0x143d1e('0xc49')][_0x143d1e('0x182e')]),_0x34c1e4!==_0x33be68&&(_0x5e4ca3[_0x143d1e('0xc49')][_0x143d1e('0x182e')]=0x1),!_0x34c1e4&&(_0x5e4ca3['query'][_0x143d1e('0x182e')]=_0x1d6027),_0x5e4ca3[_0x143d1e('0x44e')]());});function _0x2a5721(_0x17efbe){_0x5e4ca3['trunks']=_0x17efbe||{'count':0x0,'rows':[]};}function _0x113abe(){const _0x2c7840=_0x28824f;_0x5e4ca3['query'][_0x2c7840('0x17f0')]=(_0x5e4ca3[_0x2c7840('0xc49')][_0x2c7840('0x182e')]-0x1)*_0x5e4ca3[_0x2c7840('0xc49')][_0x2c7840('0x3e')],_0x1e0ff1[_0x2c7840('0x1b4e')](_0x2c7840('0x79b'))?_0x5e4ca3[_0x2c7840('0x2219')]=_0x44b47d[_0x2c7840('0x15b7')][_0x2c7840('0x1d97')](_0x5e4ca3[_0x2c7840('0xc49')],_0x2a5721)['$promise']:(_0x5e4ca3[_0x2c7840('0xc49')]['id']=_0x5e4ca3[_0x2c7840('0x257b')]['id'],_0x5e4ca3[_0x2c7840('0xc49')][_0x2c7840('0x17c9')]=_0x2c7840('0x241e'),_0x5e4ca3[_0x2c7840('0x2219')]=_0x44b47d[_0x2c7840('0x257b')][_0x2c7840('0x135b')](_0x5e4ca3[_0x2c7840('0xc49')],_0x2a5721)[_0x2c7840('0x1964')]);}function _0x56c7c2(_0x2b589f,_0x195a39){const _0x18e9f1=_0x28824f;_0x211dbb[_0x18e9f1('0x1cb7')]({'controller':_0x18e9f1('0x18a6'),'controllerAs':'vm','templateUrl':_0x5371c9,'parent':angular[_0x18e9f1('0xb6d')](_0x2b7c18[_0x18e9f1('0x1a5')]),'targetEvent':_0x2b589f,'clickOutsideToClose':!![],'locals':{'trunk':_0x195a39,'trunks':_0x5e4ca3[_0x18e9f1('0x673')]['rows'],'license':_0x5e4ca3[_0x18e9f1('0x1a29')],'setting':_0x5e4ca3['setting'],'crudPermissions':_0x5e4ca3['crudPermissions']}});}function _0x101eed(_0x3a95cb){const _0x11d0b7=_0x28824f;_0x44b47d['trunk'][_0x11d0b7('0x15e8')]({'id':_0x3a95cb['id']})[_0x11d0b7('0x1964')][_0x11d0b7('0x173b')](function(){const _0x45973c=_0x11d0b7;_0x3c8d8a()[_0x45973c('0x1a8b')](_0x5e4ca3['trunks'][_0x45973c('0x6aa')],{'id':_0x3a95cb['id']}),_0x5e4ca3[_0x45973c('0x673')][_0x45973c('0x1a2f')]-=0x1,!_0x5e4ca3[_0x45973c('0x673')][_0x45973c('0x6aa')]['length']&&_0x5e4ca3['getTrunks'](),_0x3dea7c[_0x45973c('0xdfe')]({'title':_0x3c8d8a()[_0x45973c('0x10e')](_0x45973c('0x183a'))+_0x45973c('0x1c5e'),'msg':_0x3a95cb[_0x45973c('0x10ad')]?_0x3a95cb[_0x45973c('0x10ad')]+_0x45973c('0x25d2'):''});})[_0x11d0b7('0x103c')](function(_0xf7a79c){const _0x576681=_0x11d0b7;if(_0xf7a79c['data']&&_0xf7a79c[_0x576681('0x1e07')][_0x576681('0x1d4a')]&&_0xf7a79c[_0x576681('0x1e07')][_0x576681('0x1d4a')][_0x576681('0x543')]){_0x5e4ca3['errors']=_0xf7a79c[_0x576681('0x1e07')][_0x576681('0x1d4a')]||[{'message':_0xf7a79c['toString'](),'type':'SYSTEM:DELETEtrunk'}];for(let _0x228b22=0x0;_0x228b22<_0xf7a79c[_0x576681('0x1e07')][_0x576681('0x1d4a')]['length'];_0x228b22++){_0x3dea7c['error']({'title':_0xf7a79c['data']['errors'][_0x228b22][_0x576681('0x1810')],'msg':_0xf7a79c[_0x576681('0x1e07')][_0x576681('0x1d4a')][_0x228b22]['message']});}}else _0x3dea7c[_0x576681('0x15aa')]({'title':_0xf7a79c['status']?'API:'+_0xf7a79c[_0x576681('0x276f')]+_0x576681('0x160c')+_0xf7a79c[_0x576681('0x2696')]:'SYSTEM:DELETEtrunk','msg':_0xf7a79c[_0x576681('0x1e07')]?JSON[_0x576681('0x100b')](_0xf7a79c['data'][_0x576681('0x67f')]):_0xf7a79c[_0x576681('0x67f')]||_0xf7a79c[_0x576681('0x1b75')]()});});}function _0x187573(){const _0xc728d6=_0x28824f,_0x4acb1d=angular[_0xc728d6('0x2e3')](_0x5e4ca3[_0xc728d6('0x26bd')]);return _0x5e4ca3['selectedTrunks']=[],_0x4acb1d;}function _0x33865f(_0x4ddafa){const _0x555300=_0x28824f,_0x55392c=_0x211dbb['confirm']()[_0x555300('0x20d6')](_0x555300('0x1518'))['htmlContent'](_0x555300('0x15b9')+_0x5e4ca3[_0x555300('0x26bd')][_0x555300('0x543')]+_0x555300('0xcb4')+_0x555300('0xd23'))[_0x555300('0x217')](_0x555300('0x12fe'))[_0x555300('0x21de')](_0x4ddafa)['ok']('OK')[_0x555300('0x1e1f')](_0x555300('0x468'));_0x211dbb[_0x555300('0x1cb7')](_0x55392c)[_0x555300('0x173b')](function(){const _0x40a2d5=_0x555300;_0x5e4ca3[_0x40a2d5('0x26bd')][_0x40a2d5('0xa6a')](function(_0x31021f){_0x101eed(_0x31021f);}),_0x5e4ca3[_0x40a2d5('0x26bd')]=[];});}function _0x31713e(){_0x5e4ca3['selectedTrunks']=[];}function _0x285fab(){const _0x424cf2=_0x28824f;_0x5e4ca3['selectedTrunks']=_0x5e4ca3[_0x424cf2('0x673')][_0x424cf2('0x6aa')];}}const _0x1834be=_0x57f0f7;_0x5e30e3['$inject']=['$scope',_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x2715'),_0x566993('0x1b56'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x5e30e3(_0x163c4d,_0x6ca08b,_0xf729ff,_0x43346f,_0x3c7850,_0x19b2b0,_0x15f4e0,_0x54ff1e,_0x3f31f6,_0x307f70,_0xd365d9,_0x21fe35,_0x39c912,_0x4309a6){const _0x231f51=_0x566993,_0x8d14af=this;_0x8d14af[_0x231f51('0x155f')]=_0xd365d9[_0x231f51('0x14d4')](),_0x8d14af[_0x231f51('0x1d4a')]=[],_0x8d14af[_0x231f51('0x251')]=_0x39c912,_0x8d14af[_0x231f51('0x1a29')]=_0x21fe35,_0x8d14af[_0x231f51('0x1dc1')]=_0x4309a6,_0x8d14af['hasModulePermissions']={},_0x8d14af[_0x231f51('0x644')]=_0x8d14af[_0x231f51('0x251')]&&_0x8d14af[_0x231f51('0x251')][_0x231f51('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8d14af[_0x231f51('0x20d6')]=_0x231f51('0x29'),_0x8d14af['variable']=angular['copy'](_0x3f31f6),_0x8d14af[_0x231f51('0x2715')]=_0x54ff1e,_0x8d14af[_0x231f51('0x947')]=![];!_0x8d14af['variable']&&(_0x8d14af['variable']={},_0x8d14af[_0x231f51('0x20d6')]=_0x231f51('0x4d0'),_0x8d14af[_0x231f51('0x947')]=!![]);_0x8d14af[_0x231f51('0x4c8')]=_0x4b2634,_0x8d14af[_0x231f51('0x1228')]=_0x183867,_0x8d14af[_0x231f51('0x16b8')]=_0x3708cf,_0x8d14af['getDateFromString']=_0x4b4025,_0x8d14af[_0x231f51('0x18e2')]=_0x17e0c8;function _0x4b2634(){const _0x3652a1=_0x231f51;_0x8d14af[_0x3652a1('0x1d4a')]=[],_0x307f70[_0x3652a1('0x1b56')][_0x3652a1('0x1195')](_0x8d14af['variable'])['$promise'][_0x3652a1('0x173b')](function(_0x3f21f4){const _0x280600=_0x3652a1;_0x8d14af[_0x280600('0x2715')][_0x280600('0x1377')](_0x3f21f4['toJSON']()),_0x15f4e0['success']({'title':_0x280600('0x1214'),'msg':_0x8d14af[_0x280600('0x1b56')]['name']?_0x8d14af[_0x280600('0x1b56')][_0x280600('0x10ad')]+_0x280600('0x209a'):''}),_0x17e0c8(_0x3f21f4);})['catch'](function(_0x289fe7){const _0x504985=_0x3652a1;if(_0x289fe7['data']&&_0x289fe7[_0x504985('0x1e07')][_0x504985('0x1d4a')]&&_0x289fe7[_0x504985('0x1e07')][_0x504985('0x1d4a')][_0x504985('0x543')]){_0x8d14af[_0x504985('0x1d4a')]=_0x289fe7['data'][_0x504985('0x1d4a')]||[{'message':_0x289fe7[_0x504985('0x1b75')](),'type':_0x504985('0xc46')}];for(let _0xc849c7=0x0;_0xc849c7<_0x289fe7[_0x504985('0x1e07')][_0x504985('0x1d4a')]['length'];_0xc849c7+=0x1){_0x15f4e0['error']({'title':_0x289fe7[_0x504985('0x1e07')][_0x504985('0x1d4a')][_0xc849c7][_0x504985('0x1810')],'msg':_0x289fe7[_0x504985('0x1e07')][_0x504985('0x1d4a')][_0xc849c7][_0x504985('0x67f')]});}}else _0x15f4e0[_0x504985('0x15aa')]({'title':_0x289fe7[_0x504985('0x276f')]?_0x504985('0x137')+_0x289fe7['status']+_0x504985('0x160c')+_0x289fe7[_0x504985('0x2696')]:_0x504985('0xc46'),'msg':_0x289fe7[_0x504985('0x1e07')]?JSON[_0x504985('0x100b')](_0x289fe7['data'][_0x504985('0x67f')]):_0x289fe7[_0x504985('0x1b75')]()});});}function _0x183867(){const _0x3af09f=_0x231f51;_0x8d14af['errors']=[],_0x307f70['variable']['update']({'id':_0x8d14af[_0x3af09f('0x1b56')]['id']},_0x8d14af[_0x3af09f('0x1b56')])[_0x3af09f('0x1964')]['then'](function(_0x5dc3b4){const _0x303916=_0x3af09f,_0x3c9733=_0x3c8d8a()[_0x303916('0x18ab')](_0x8d14af[_0x303916('0x2715')],{'id':_0x5dc3b4['id']});_0x3c9733&&_0x3c8d8a()[_0x303916('0x9ef')](_0x3c9733,_0x3c8d8a()[_0x303916('0x2114')](_0x5dc3b4[_0x303916('0xf1f')](),_0x3c8d8a()[_0x303916('0x1d3e')](_0x3c9733))),_0x15f4e0[_0x303916('0xdfe')]({'title':_0x303916('0x1ee9'),'msg':_0x8d14af[_0x303916('0x1b56')][_0x303916('0x10ad')]?_0x8d14af[_0x303916('0x1b56')]['name']+_0x303916('0x2788'):''}),_0x17e0c8(_0x5dc3b4);})['catch'](function(_0x36110){const _0x47d9e4=_0x3af09f;if(_0x36110['data']&&_0x36110[_0x47d9e4('0x1e07')]['errors']&&_0x36110[_0x47d9e4('0x1e07')][_0x47d9e4('0x1d4a')][_0x47d9e4('0x543')]){_0x8d14af['errors']=_0x36110[_0x47d9e4('0x1e07')][_0x47d9e4('0x1d4a')]||[{'message':_0x36110[_0x47d9e4('0x1b75')](),'type':_0x47d9e4('0x2363')}];for(let _0x450c6e=0x0;_0x450c6e<_0x36110['data'][_0x47d9e4('0x1d4a')][_0x47d9e4('0x543')];_0x450c6e++){_0x15f4e0[_0x47d9e4('0x15aa')]({'title':_0x36110[_0x47d9e4('0x1e07')][_0x47d9e4('0x1d4a')][_0x450c6e][_0x47d9e4('0x1810')],'msg':_0x36110[_0x47d9e4('0x1e07')]['errors'][_0x450c6e][_0x47d9e4('0x67f')]});}}else _0x15f4e0[_0x47d9e4('0x15aa')]({'title':_0x36110['status']?_0x47d9e4('0x137')+_0x36110['status']+_0x47d9e4('0x160c')+_0x36110['statusText']:_0x47d9e4('0x2363'),'msg':_0x36110[_0x47d9e4('0x1e07')]?JSON[_0x47d9e4('0x100b')](_0x36110[_0x47d9e4('0x1e07')][_0x47d9e4('0x67f')]):_0x36110[_0x47d9e4('0x1b75')]()});});}function _0x3708cf(_0x27054e){const _0x12bf9a=_0x231f51;_0x8d14af['errors']=[];const _0x3da363=_0x43346f['confirm']()[_0x12bf9a('0x20d6')](_0x12bf9a('0x8ef'))[_0x12bf9a('0x732')](_0x12bf9a('0x20'))[_0x12bf9a('0x217')](_0x12bf9a('0x1114'))['ok']('Delete')[_0x12bf9a('0x1e1f')]('Cancel')[_0x12bf9a('0x21de')](_0x27054e);_0x43346f[_0x12bf9a('0x1cb7')](_0x3da363)['then'](function(){const _0x58352b=_0x12bf9a;_0x307f70['variable']['delete']({'id':_0x8d14af['variable']['id']})['$promise'][_0x58352b('0x173b')](function(){const _0x45a198=_0x58352b;_0x3c8d8a()[_0x45a198('0x1a8b')](_0x8d14af['variables'],{'id':_0x8d14af[_0x45a198('0x1b56')]['id']}),_0x15f4e0[_0x45a198('0xdfe')]({'title':_0x45a198('0x184f'),'msg':(_0x8d14af[_0x45a198('0x1b56')][_0x45a198('0x10ad')]||_0x45a198('0x1b56'))+_0x45a198('0x25d2')}),_0x17e0c8(_0x8d14af[_0x45a198('0x1b56')]);})[_0x58352b('0x103c')](function(_0x3bff6a){const _0x2cca5b=_0x58352b;if(_0x3bff6a[_0x2cca5b('0x1e07')]&&_0x3bff6a[_0x2cca5b('0x1e07')][_0x2cca5b('0x1d4a')]&&_0x3bff6a[_0x2cca5b('0x1e07')][_0x2cca5b('0x1d4a')]['length']){_0x8d14af[_0x2cca5b('0x1d4a')]=_0x3bff6a[_0x2cca5b('0x1e07')][_0x2cca5b('0x1d4a')]||[{'message':_0x3bff6a[_0x2cca5b('0x1b75')](),'type':'api.variable.delete'}];for(let _0x21c790=0x0;_0x21c790<_0x3bff6a[_0x2cca5b('0x1e07')][_0x2cca5b('0x1d4a')][_0x2cca5b('0x543')];_0x21c790++){_0x15f4e0['error']({'title':_0x3bff6a[_0x2cca5b('0x1e07')][_0x2cca5b('0x1d4a')][_0x21c790][_0x2cca5b('0x1810')],'msg':_0x3bff6a[_0x2cca5b('0x1e07')][_0x2cca5b('0x1d4a')][_0x21c790][_0x2cca5b('0x67f')]});}}else _0x15f4e0[_0x2cca5b('0x15aa')]({'title':_0x3bff6a['status']?_0x2cca5b('0x137')+_0x3bff6a[_0x2cca5b('0x276f')]+_0x2cca5b('0x160c')+_0x3bff6a['statusText']:_0x2cca5b('0x26cf'),'msg':_0x3bff6a['data']?JSON[_0x2cca5b('0x100b')](_0x3bff6a['data'][_0x2cca5b('0x67f')]):_0x3bff6a['message']||_0x3bff6a[_0x2cca5b('0x1b75')]()});});},function(){});}function _0x4b4025(_0x65b246){return _0x65b246===null?undefined:new Date(_0x65b246);}function _0x17e0c8(_0x47e60a){const _0x322393=_0x231f51;_0x43346f[_0x322393('0x1cf4')](_0x47e60a);}}const _0xcab07b=_0x5e30e3,_0xa89596=_0x21a6a1['p']+_0x566993('0x27ba');_0x2dd96e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x2715'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x2dd96e(_0x4f1a6a,_0x326b28,_0x5aa171,_0x3a549b,_0x3f2e1c,_0x28b3da,_0x16e37e,_0x5e78de,_0x296820,_0x38e8da,_0x1a3f9f,_0x31b50c,_0x43d3ed,_0x40b345,_0x1015fb,_0x48ebdb,_0xf7163e){const _0x1a5d5b=_0x566993,_0x2cbc1c=this;_0x2cbc1c[_0x1a5d5b('0x1a29')]=_0x48ebdb,_0x2cbc1c[_0x1a5d5b('0x251')]=_0xf7163e,_0x2cbc1c['currentUser']=_0x1015fb['getCurrentUser'](),_0x2cbc1c[_0x1a5d5b('0x2715')]=_0x296820||{'count':0x0,'rows':[]},_0x2cbc1c[_0x1a5d5b('0x257b')]=_0x38e8da,_0x2cbc1c[_0x1a5d5b('0x170e')]=_0x1a3f9f&&_0x1a3f9f[_0x1a5d5b('0x1a2f')]==0x1?_0x1a3f9f[_0x1a5d5b('0x6aa')][0x0]:null,_0x2cbc1c[_0x1a5d5b('0x1dc1')]=_0x1015fb['parseCrudPermissions'](_0x2cbc1c['userProfileSection']?_0x2cbc1c['userProfileSection'][_0x1a5d5b('0x1dc1')]:null),_0x2cbc1c[_0x1a5d5b('0xdf9')]=_0x1a5d5b('0x2715'),_0x2cbc1c[_0x1a5d5b('0x14d6')]='',_0x2cbc1c[_0x1a5d5b('0x2303')]=null,_0x2cbc1c[_0x1a5d5b('0x307')]=[],_0x2cbc1c['query']={'fields':_0x1a5d5b('0x2275'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x2cbc1c['editdialog']=_0x232272,_0x2cbc1c['deleteconfirm']=_0x4a837e,_0x2cbc1c[_0x1a5d5b('0xdfe')]=_0x240c64,_0x2cbc1c[_0x1a5d5b('0x1a15')]=_0x164044,_0x2cbc1c['createOrEditVariable']=_0x26991e,_0x2cbc1c['deleteVariable']=_0x314ceb,_0x2cbc1c[_0x1a5d5b('0x1242')]=_0x19e1a9,_0x2cbc1c[_0x1a5d5b('0xc17')]=_0xbca11b,_0x2cbc1c[_0x1a5d5b('0x96b')]=_0x440a49,_0x2cbc1c[_0x1a5d5b('0x105c')]=_0x4f640e;function _0x232272(_0x2dbfe5,_0x25d990){const _0x113c87=_0x1a5d5b;_0x3f2e1c['show']({'controller':_0x113c87('0x7da'),'controllerAs':'vm','templateUrl':_0xa89596,'parent':angular[_0x113c87('0xb6d')](_0x28b3da[_0x113c87('0x1a5')]),'targetEvent':_0x25d990,'clickOutsideToClose':!![],'locals':{'variable':_0x2dbfe5,'variables':_0x2cbc1c[_0x113c87('0x2715')]['rows'],'license':_0x2cbc1c[_0x113c87('0x1a29')],'setting':null,'crudPermissions':_0x2cbc1c[_0x113c87('0x1dc1')]}});}function _0x4a837e(_0x3435d5,_0x549a97){const _0x3fb565=_0x1a5d5b,_0x18a2e1=_0x3f2e1c[_0x3fb565('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x3fb565('0x10e')](_0x3fb565('0x1b56'))+'?')[_0x3fb565('0xf8b')](_0x3fb565('0x15b9')+(_0x3435d5[_0x3fb565('0x10ad')]||'variable')+_0x3fb565('0x24be')+_0x3fb565('0xd23'))[_0x3fb565('0x217')](_0x3fb565('0x21eb'))[_0x3fb565('0x21de')](_0x549a97)['ok']('OK')[_0x3fb565('0x1e1f')](_0x3fb565('0x468'));_0x3f2e1c['show'](_0x18a2e1)['then'](function(){_0x314ceb(_0x3435d5);},function(){const _0x37bd12=_0x3fb565;console[_0x37bd12('0xe37')]('CANCEL');});}let _0x519732=!![],_0x2e1465=0x1;_0x4f1a6a[_0x1a5d5b('0x1bdb')]('vm.query.filter',function(_0x7b81c8,_0x30ed16){const _0x363afa=_0x1a5d5b;_0x519732?_0x16e37e(function(){_0x519732=![];}):(!_0x30ed16&&(_0x2e1465=_0x2cbc1c['query'][_0x363afa('0x182e')]),_0x7b81c8!==_0x30ed16&&(_0x2cbc1c[_0x363afa('0xc49')][_0x363afa('0x182e')]=0x1),!_0x7b81c8&&(_0x2cbc1c[_0x363afa('0xc49')][_0x363afa('0x182e')]=_0x2e1465),_0x2cbc1c[_0x363afa('0x1a15')]());});function _0x240c64(_0xcf9f0){const _0x3e8717=_0x1a5d5b;_0x2cbc1c[_0x3e8717('0x2715')]=_0xcf9f0||{'count':0x0,'rows':[]};}function _0x164044(){const _0x4a087b=_0x1a5d5b;_0x2cbc1c['query'][_0x4a087b('0x17f0')]=(_0x2cbc1c['query']['page']-0x1)*_0x2cbc1c[_0x4a087b('0xc49')]['limit'],_0x1015fb[_0x4a087b('0x1b4e')](_0x4a087b('0x79b'))?_0x2cbc1c[_0x4a087b('0x2219')]=_0x31b50c['variable']['get'](_0x2cbc1c[_0x4a087b('0xc49')],_0x240c64)[_0x4a087b('0x1964')]:(_0x2cbc1c['query']['id']=_0x2cbc1c[_0x4a087b('0x257b')]['id'],_0x2cbc1c[_0x4a087b('0xc49')]['section']='Variables',_0x2cbc1c[_0x4a087b('0x2219')]=_0x31b50c[_0x4a087b('0x257b')][_0x4a087b('0x135b')](_0x2cbc1c[_0x4a087b('0xc49')],_0x240c64)['$promise']);}function _0x26991e(_0x5c4168,_0x304499){const _0x3400ab=_0x1a5d5b;_0x3f2e1c[_0x3400ab('0x1cb7')]({'controller':_0x3400ab('0x7da'),'controllerAs':'vm','templateUrl':_0xa89596,'parent':angular[_0x3400ab('0xb6d')](_0x28b3da[_0x3400ab('0x1a5')]),'targetEvent':_0x5c4168,'clickOutsideToClose':!![],'locals':{'variable':_0x304499,'variables':_0x2cbc1c['variables'][_0x3400ab('0x6aa')],'license':_0x2cbc1c[_0x3400ab('0x1a29')],'setting':_0x2cbc1c[_0x3400ab('0x251')],'crudPermissions':_0x2cbc1c[_0x3400ab('0x1dc1')]}});}function _0x314ceb(_0x1876f1){const _0x1730d4=_0x1a5d5b;_0x31b50c['variable'][_0x1730d4('0x15e8')]({'id':_0x1876f1['id']})['$promise'][_0x1730d4('0x173b')](function(){const _0x12e896=_0x1730d4;_0x3c8d8a()['remove'](_0x2cbc1c[_0x12e896('0x2715')]['rows'],{'id':_0x1876f1['id']}),_0x2cbc1c['variables'][_0x12e896('0x1a2f')]-=0x1,!_0x2cbc1c[_0x12e896('0x2715')]['rows']['length']&&_0x2cbc1c[_0x12e896('0x1a15')](),_0x40b345['success']({'title':_0x3c8d8a()[_0x12e896('0x10e')](_0x12e896('0xae6'))+_0x12e896('0x1c5e'),'msg':_0x1876f1[_0x12e896('0x10ad')]?_0x1876f1[_0x12e896('0x10ad')]+_0x12e896('0x25d2'):''});})[_0x1730d4('0x103c')](function(_0x4d3460){const _0xde28f9=_0x1730d4;if(_0x4d3460['data']&&_0x4d3460[_0xde28f9('0x1e07')][_0xde28f9('0x1d4a')]&&_0x4d3460['data'][_0xde28f9('0x1d4a')][_0xde28f9('0x543')]){_0x2cbc1c[_0xde28f9('0x1d4a')]=_0x4d3460['data'][_0xde28f9('0x1d4a')]||[{'message':_0x4d3460[_0xde28f9('0x1b75')](),'type':'SYSTEM:DELETEvariable'}];for(let _0x235dc1=0x0;_0x235dc1<_0x4d3460[_0xde28f9('0x1e07')][_0xde28f9('0x1d4a')][_0xde28f9('0x543')];_0x235dc1++){_0x40b345[_0xde28f9('0x15aa')]({'title':_0x4d3460['data']['errors'][_0x235dc1][_0xde28f9('0x1810')],'msg':_0x4d3460[_0xde28f9('0x1e07')][_0xde28f9('0x1d4a')][_0x235dc1][_0xde28f9('0x67f')]});}}else _0x40b345[_0xde28f9('0x15aa')]({'title':_0x4d3460['status']?'API:'+_0x4d3460[_0xde28f9('0x276f')]+_0xde28f9('0x160c')+_0x4d3460[_0xde28f9('0x2696')]:_0xde28f9('0x2574'),'msg':_0x4d3460[_0xde28f9('0x1e07')]?JSON[_0xde28f9('0x100b')](_0x4d3460[_0xde28f9('0x1e07')]['message']):_0x4d3460[_0xde28f9('0x67f')]||_0x4d3460[_0xde28f9('0x1b75')]()});});}function _0x19e1a9(){const _0x5b30b4=_0x1a5d5b,_0x4e4503=angular[_0x5b30b4('0x2e3')](_0x2cbc1c[_0x5b30b4('0x307')]);return _0x2cbc1c[_0x5b30b4('0x307')]=[],_0x4e4503;}function _0xbca11b(_0x48e6bd){const _0x2f861a=_0x1a5d5b,_0x3831ec=_0x3f2e1c[_0x2f861a('0x1d02')]()[_0x2f861a('0x20d6')](_0x2f861a('0xb4d'))[_0x2f861a('0xf8b')](''+_0x2cbc1c[_0x2f861a('0x307')][_0x2f861a('0x543')]+_0x2f861a('0xcb4')+_0x2f861a('0xd23'))['ariaLabel']('delete\x20Variables')['targetEvent'](_0x48e6bd)['ok']('OK')[_0x2f861a('0x1e1f')](_0x2f861a('0x468'));_0x3f2e1c[_0x2f861a('0x1cb7')](_0x3831ec)[_0x2f861a('0x173b')](function(){const _0xab0605=_0x2f861a;_0x2cbc1c['selectedVariables'][_0xab0605('0xa6a')](function(_0xe9e3a1){_0x314ceb(_0xe9e3a1);}),_0x2cbc1c[_0xab0605('0x307')]=[];});}function _0x440a49(){const _0x35ba88=_0x1a5d5b;_0x2cbc1c[_0x35ba88('0x307')]=[];}function _0x4f640e(){const _0x4bd7bd=_0x1a5d5b;_0x2cbc1c[_0x4bd7bd('0x307')]=_0x2cbc1c[_0x4bd7bd('0x2715')][_0x4bd7bd('0x6aa')];}}const _0xa9b2eb=_0x2dd96e;_0x55ac0c[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x55ac0c(_0x109d9a,_0x184396){const _0x54355c=_0x566993;_0x109d9a[_0x54355c('0x1a49')]('app.tools',{'abstract':!![],'url':_0x54355c('0x2736')})[_0x54355c('0x1a49')]('app.tools.cannedAnswers',{'url':_0x54355c('0xbbb'),'views':{'content@app':{'templateUrl':_0x38088e,'controller':'CannedAnswersController\x20as\x20vm'}},'resolve':{'cannedAnswers':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x1a903c,_0x29b728){const _0x54e98e=_0x54355c;return _0x29b728[_0x54e98e('0x1b4e')](_0x54e98e('0x79b'))?_0x1a903c[_0x54e98e('0x155b')](_0x54e98e('0xc26'),{'fields':_0x54e98e('0x1f12'),'sort':_0x54e98e('0x1769'),'MailAccountId':'null','FaxAccountId':_0x54e98e('0x877'),'SmsAccountId':_0x54e98e('0x877'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x54e98e('0x877'),'limit':0xa,'offset':0x0}):_0x1a903c[_0x54e98e('0x155b')](_0x54e98e('0x14b3'),{'id':_0x29b728[_0x54e98e('0x14d4')]()['userProfileId'],'section':'CannedAnswers','fields':_0x54e98e('0x1f12'),'sort':'-updatedAt','MailAccountId':_0x54e98e('0x877'),'FaxAccountId':'null','SmsAccountId':_0x54e98e('0x877'),'OpenchannelAccountId':_0x54e98e('0x877'),'ChatWebsiteId':_0x54e98e('0x877'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x2a2579,_0x3373e5){const _0x5d191b=_0x54355c;return _0x3373e5['hasRole'](_0x5d191b('0x79b'))?null:_0x2a2579[_0x5d191b('0x155b')](_0x5d191b('0x1f20'),{'fields':_0x5d191b('0x19dd'),'id':_0x3373e5[_0x5d191b('0x14d4')]()[_0x5d191b('0x1946')]});}],'userProfileSection':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x47d7b9,_0x281b87){const _0x5b6d4b=_0x54355c;return _0x281b87['hasRole']('admin')?null:_0x47d7b9[_0x5b6d4b('0x155b')](_0x5b6d4b('0x40'),{'fields':_0x5b6d4b('0x1348'),'userProfileId':_0x281b87[_0x5b6d4b('0x14d4')]()[_0x5b6d4b('0x1946')],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':_0x54355c('0x170f')})[_0x54355c('0x1a49')](_0x54355c('0x1e99'),{'url':_0x54355c('0x1c33'),'views':{'content@app':{'templateUrl':_0x261681,'controller':_0x54355c('0x24a5')}},'resolve':{'customDashboards':[_0x54355c('0x2401'),'Auth',function(_0x152762,_0x3e21c8){const _0x3918ab=_0x54355c;return _0x3e21c8[_0x3918ab('0x1b4e')]('admin')?_0x152762['resolve']('dashboard@get',{'fields':_0x3918ab('0x2275'),'sort':_0x3918ab('0x1769'),'limit':0xa,'offset':0x0}):_0x152762['resolve']('userProfile@getResources',{'id':_0x3e21c8[_0x3918ab('0x14d4')]()[_0x3918ab('0x1946')],'section':_0x3918ab('0x3a8'),'fields':_0x3918ab('0x2275'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x1ef0ed,_0x327caa){const _0xa7c4c0=_0x54355c;return _0x327caa['hasRole']('admin')?null:_0x1ef0ed[_0xa7c4c0('0x155b')](_0xa7c4c0('0x1f20'),{'fields':_0xa7c4c0('0x19dd'),'id':_0x327caa['getCurrentUser']()[_0xa7c4c0('0x1946')]});}],'userProfileSection':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x4ec6ab,_0x456f67){const _0x3b5643=_0x54355c;return _0x456f67['hasRole'](_0x3b5643('0x79b'))?null:_0x4ec6ab[_0x3b5643('0x155b')](_0x3b5643('0x40'),{'fields':_0x3b5643('0x1348'),'userProfileId':_0x456f67['getCurrentUser']()[_0x3b5643('0x1946')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':'tools'})[_0x54355c('0x1a49')](_0x54355c('0x2204'),{'url':_0x54355c('0xb4c'),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2151bf,'controller':_0x54355c('0x1928')}},'resolve':{'customDashboard':[_0x54355c('0x2401'),'$stateParams',function(_0x25ab2d,_0x498a9c){const _0x35e539=_0x54355c;return _0x25ab2d[_0x35e539('0x155b')](_0x35e539('0x1097'),{'fields':_0x35e539('0x2275'),'id':_0x498a9c['id']});}],'userProfileSection':[_0x54355c('0x2401'),'Auth',function(_0x50f4e0,_0x4492b9){const _0x13b1e1=_0x54355c;return _0x50f4e0['resolve'](_0x13b1e1('0x40'),{'fields':_0x13b1e1('0x1348'),'userProfileId':_0x4492b9[_0x13b1e1('0x14d4')]()[_0x13b1e1('0x1946')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x54355c('0x170f')})[_0x54355c('0x1a49')](_0x54355c('0x1396'),{'url':_0x54355c('0xe5a'),'views':{'content@app':{'templateUrl':_0x3ed636,'controller':_0x54355c('0x16dc')}},'resolve':{'intervals':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x5d8f3d,_0x12c642){const _0xd44b00=_0x54355c;return _0x12c642[_0xd44b00('0x1b4e')](_0xd44b00('0x79b'))?_0x5d8f3d[_0xd44b00('0x155b')](_0xd44b00('0x185'),{'fields':'createdAt,updatedAt,id,name,description','sort':_0xd44b00('0x1769'),'IntervalId':'null','limit':0xa,'offset':0x0}):_0x5d8f3d[_0xd44b00('0x155b')](_0xd44b00('0x14b3'),{'id':_0x12c642[_0xd44b00('0x14d4')]()[_0xd44b00('0x1946')],'section':_0xd44b00('0xb7a'),'fields':'createdAt,updatedAt,id,name,description','sort':_0xd44b00('0x1769'),'IntervalId':_0xd44b00('0x877'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x54355c('0x1600'),function(_0x5e50cd,_0x433a02){const _0x1b0b88=_0x54355c;return _0x433a02[_0x1b0b88('0x1b4e')](_0x1b0b88('0x79b'))?null:_0x5e50cd[_0x1b0b88('0x155b')](_0x1b0b88('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x433a02[_0x1b0b88('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x259a75,_0x2da4a8){const _0x252ee9=_0x54355c;return _0x2da4a8[_0x252ee9('0x1b4e')](_0x252ee9('0x79b'))?null:_0x259a75[_0x252ee9('0x155b')](_0x252ee9('0x40'),{'fields':_0x252ee9('0x1348'),'userProfileId':_0x2da4a8[_0x252ee9('0x14d4')]()[_0x252ee9('0x1946')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':'tools'})[_0x54355c('0x1a49')](_0x54355c('0xc72'),{'url':_0x54355c('0xb4c'),'params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x327932,'controller':'IntervalController\x20as\x20vm'}},'resolve':{'interval':[_0x54355c('0x2401'),_0x54355c('0x1caf'),function(_0x1fad6c,_0x3205b4){const _0x28b8f3=_0x54355c;return _0x1fad6c[_0x28b8f3('0x155b')](_0x28b8f3('0x185'),{'fields':_0x28b8f3('0x2275'),'id':_0x3205b4['id']});}],'userProfileSection':['apiResolver',_0x54355c('0x1600'),function(_0x39893e,_0x206cee){const _0x3ec57a=_0x54355c;return _0x39893e[_0x3ec57a('0x155b')]('userProfileSection@get',{'fields':_0x3ec57a('0x1348'),'userProfileId':_0x206cee[_0x3ec57a('0x14d4')]()[_0x3ec57a('0x1946')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x54355c('0x170f')})[_0x54355c('0x1a49')](_0x54355c('0x1862'),{'url':_0x54355c('0x17b5'),'views':{'content@app':{'templateUrl':_0x4cc0c0,'controller':_0x54355c('0x960')}},'resolve':{'pauses':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0xa51740,_0x5a1abd){const _0x9edcfb=_0x54355c;return _0x5a1abd[_0x9edcfb('0x1b4e')](_0x9edcfb('0x79b'))?_0xa51740[_0x9edcfb('0x155b')](_0x9edcfb('0x176a'),{'fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0xa51740[_0x9edcfb('0x155b')](_0x9edcfb('0x14b3'),{'id':_0x5a1abd[_0x9edcfb('0x14d4')]()[_0x9edcfb('0x1946')],'section':'Pauses','fields':'createdAt,updatedAt,id,name,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x54355c('0x1600'),function(_0x1826bc,_0x2e28e9){const _0x1bb3fd=_0x54355c;return _0x2e28e9['hasRole'](_0x1bb3fd('0x79b'))?null:_0x1826bc[_0x1bb3fd('0x155b')](_0x1bb3fd('0x1f20'),{'fields':_0x1bb3fd('0x19dd'),'id':_0x2e28e9[_0x1bb3fd('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x54355c('0x2401'),'Auth',function(_0x33b83f,_0x1710e8){const _0x292cd3=_0x54355c;return _0x1710e8[_0x292cd3('0x1b4e')](_0x292cd3('0x79b'))?null:_0x33b83f[_0x292cd3('0x155b')](_0x292cd3('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1710e8['getCurrentUser']()[_0x292cd3('0x1946')],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x54355c('0x170f')})[_0x54355c('0x1a49')](_0x54355c('0x209d'),{'url':_0x54355c('0x116f'),'views':{'content@app':{'templateUrl':_0x4963d5,'controller':_0x54355c('0xbcd')}},'resolve':{'schedules':[_0x54355c('0x2401'),'Auth',function(_0x15a01b,_0x88bf79){const _0xbf6ecf=_0x54355c;return _0x88bf79[_0xbf6ecf('0x1b4e')](_0xbf6ecf('0x79b'))?_0x15a01b[_0xbf6ecf('0x155b')](_0xbf6ecf('0x54c'),{'fields':'createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','sort':_0xbf6ecf('0x1769'),'limit':0xa,'offset':0x0}):_0x15a01b[_0xbf6ecf('0x155b')](_0xbf6ecf('0x14b3'),{'id':_0x88bf79['getCurrentUser']()[_0xbf6ecf('0x1946')],'section':'Scheduler','fields':_0xbf6ecf('0xa11'),'sort':_0xbf6ecf('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x1a1b1e,_0x2f2134){const _0x253f1a=_0x54355c;return _0x2f2134[_0x253f1a('0x1b4e')](_0x253f1a('0x79b'))?null:_0x1a1b1e['resolve'](_0x253f1a('0x1f20'),{'fields':_0x253f1a('0x19dd'),'id':_0x2f2134['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x54355c('0x1600'),function(_0x3febea,_0x57a618){const _0x1c3d59=_0x54355c;return _0x57a618[_0x1c3d59('0x1b4e')]('admin')?null:_0x3febea['resolve']('userProfileSection@get',{'fields':_0x1c3d59('0x1348'),'userProfileId':_0x57a618['getCurrentUser']()[_0x1c3d59('0x1946')],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':'tools'})[_0x54355c('0x1a49')](_0x54355c('0x18d6'),{'url':'/sounds','views':{'content@app':{'templateUrl':_0x1dbf39,'controller':_0x54355c('0x20f6')}},'resolve':{'sounds':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x5862c1,_0xe7eebf){const _0x59848e=_0x54355c;return _0xe7eebf[_0x59848e('0x1b4e')](_0x59848e('0x79b'))?_0x5862c1[_0x59848e('0x155b')]('sound@get',{'fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':_0x59848e('0x1769'),'limit':0xa,'offset':0x0}):_0x5862c1['resolve'](_0x59848e('0x14b3'),{'id':_0xe7eebf['getCurrentUser']()['userProfileId'],'section':_0x59848e('0x47d'),'fields':_0x59848e('0xef7'),'sort':_0x59848e('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x54355c('0x1600'),function(_0x2ee2f9,_0x94473f){const _0x26d6c5=_0x54355c;return _0x94473f[_0x26d6c5('0x1b4e')](_0x26d6c5('0x79b'))?null:_0x2ee2f9[_0x26d6c5('0x155b')](_0x26d6c5('0x1f20'),{'fields':_0x26d6c5('0x19dd'),'id':_0x94473f[_0x26d6c5('0x14d4')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x54355c('0x1600'),function(_0x4ffa38,_0x55e426){const _0x22dd16=_0x54355c;return _0x55e426['hasRole'](_0x22dd16('0x79b'))?null:_0x4ffa38[_0x22dd16('0x155b')](_0x22dd16('0x40'),{'fields':_0x22dd16('0x1348'),'userProfileId':_0x55e426[_0x22dd16('0x14d4')]()[_0x22dd16('0x1946')],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':_0x54355c('0x170f')})['state'](_0x54355c('0x1bb7'),{'url':_0x54355c('0xd18'),'views':{'content@app':{'templateUrl':_0x2b1ad9,'controller':_0x54355c('0x211c')}},'resolve':{'tags':['apiResolver',_0x54355c('0x1600'),function(_0x44ac10,_0x533360){const _0x59ca45=_0x54355c;return _0x533360[_0x59ca45('0x1b4e')]('admin')?_0x44ac10[_0x59ca45('0x155b')]('tag@get',{'fields':_0x59ca45('0x2044'),'sort':_0x59ca45('0x1769'),'limit':0xa,'offset':0x0}):_0x44ac10[_0x59ca45('0x155b')]('userProfile@getResources',{'id':_0x533360[_0x59ca45('0x14d4')]()['userProfileId'],'section':_0x59ca45('0xc38'),'fields':_0x59ca45('0x2044'),'sort':_0x59ca45('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x54355c('0x2401'),'Auth',function(_0x1d5a33,_0x448b6c){const _0x75c5a=_0x54355c;return _0x448b6c[_0x75c5a('0x1b4e')](_0x75c5a('0x79b'))?null:_0x1d5a33[_0x75c5a('0x155b')]('userProfile@get',{'fields':_0x75c5a('0x19dd'),'id':_0x448b6c[_0x75c5a('0x14d4')]()[_0x75c5a('0x1946')]});}],'userProfileSection':['apiResolver',_0x54355c('0x1600'),function(_0x2f7069,_0x1f0d18){const _0x14e850=_0x54355c;return _0x1f0d18[_0x14e850('0x1b4e')](_0x14e850('0x79b'))?null:_0x2f7069['resolve'](_0x14e850('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1f0d18['getCurrentUser']()[_0x14e850('0x1946')],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':_0x54355c('0x170f')})[_0x54355c('0x1a49')]('app.tools.templates',{'url':_0x54355c('0x11d0'),'views':{'content@app':{'templateUrl':_0x5ba489,'controller':_0x54355c('0xa4e')}},'resolve':{'templates':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x4acff0,_0x24e83b){const _0x3d9b8b=_0x54355c;return _0x24e83b[_0x3d9b8b('0x1b4e')](_0x3d9b8b('0x79b'))?_0x4acff0[_0x3d9b8b('0x155b')](_0x3d9b8b('0x3bd'),{'fields':'createdAt,updatedAt,id,name,html,description','sort':_0x3d9b8b('0x1769'),'limit':0xa,'offset':0x0}):_0x4acff0['resolve'](_0x3d9b8b('0x14b3'),{'id':_0x24e83b[_0x3d9b8b('0x14d4')]()[_0x3d9b8b('0x1946')],'section':_0x3d9b8b('0x2db'),'fields':_0x3d9b8b('0xc9a'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x142ef8,_0x379844){const _0x1f6dfb=_0x54355c;return _0x379844['hasRole'](_0x1f6dfb('0x79b'))?null:_0x142ef8['resolve'](_0x1f6dfb('0x1f20'),{'fields':_0x1f6dfb('0x19dd'),'id':_0x379844[_0x1f6dfb('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x54355c('0x2401'),'Auth',function(_0xd87e4a,_0xd50aaf){const _0x216cc4=_0x54355c;return _0xd50aaf[_0x216cc4('0x1b4e')]('admin')?null:_0xd87e4a[_0x216cc4('0x155b')](_0x216cc4('0x40'),{'fields':_0x216cc4('0x1348'),'userProfileId':_0xd50aaf[_0x216cc4('0x14d4')]()[_0x216cc4('0x1946')],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':'tools'})['state']('app.tools.trunks',{'url':_0x54355c('0x108d'),'views':{'content@app':{'templateUrl':_0x49cc7c,'controller':_0x54355c('0x1efe')}},'resolve':{'trunks':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x8dd16e,_0x5afcbd){const _0x532d7f=_0x54355c;return _0x5afcbd[_0x532d7f('0x1b4e')](_0x532d7f('0x79b'))?_0x8dd16e[_0x532d7f('0x155b')](_0x532d7f('0x1a6f'),{'fields':_0x532d7f('0x23ce'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x8dd16e[_0x532d7f('0x155b')](_0x532d7f('0x14b3'),{'id':_0x5afcbd[_0x532d7f('0x14d4')]()[_0x532d7f('0x1946')],'section':_0x532d7f('0x241e'),'fields':_0x532d7f('0x23ce'),'sort':_0x532d7f('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x54355c('0x1600'),function(_0x38bb20,_0xc0e27d){const _0x31914f=_0x54355c;return _0xc0e27d[_0x31914f('0x1b4e')](_0x31914f('0x79b'))?null:_0x38bb20['resolve'](_0x31914f('0x1f20'),{'fields':_0x31914f('0x19dd'),'id':_0xc0e27d[_0x31914f('0x14d4')]()[_0x31914f('0x1946')]});}],'userProfileSection':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x3d7f72,_0x53d476){const _0x414a29=_0x54355c;return _0x53d476[_0x414a29('0x1b4e')](_0x414a29('0x79b'))?null:_0x3d7f72[_0x414a29('0x155b')](_0x414a29('0x40'),{'fields':_0x414a29('0x1348'),'userProfileId':_0x53d476[_0x414a29('0x14d4')]()['userProfileId'],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x54355c('0x170f')})[_0x54355c('0x1a49')]('app.tools.trunks.edit',{'url':_0x54355c('0xb4c'),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3906f6,'controller':_0x54355c('0x1dbc')}},'resolve':{'trunk':['apiResolver',_0x54355c('0x1caf'),function(_0x54160c,_0x3a78bc){const _0x811ad9=_0x54355c;return _0x54160c[_0x811ad9('0x155b')]('trunk@get',{'fields':_0x811ad9('0x23ce'),'id':_0x3a78bc['id']});}],'userProfileSection':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x4fda2b,_0x5edeee){const _0x1d443d=_0x54355c;return _0x4fda2b[_0x1d443d('0x155b')](_0x1d443d('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5edeee[_0x1d443d('0x14d4')]()[_0x1d443d('0x1946')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':'tools'})[_0x54355c('0x1a49')](_0x54355c('0x2045'),{'url':'/variables','views':{'content@app':{'templateUrl':_0x5e8702,'controller':_0x54355c('0x1ecc')}},'resolve':{'variables':[_0x54355c('0x2401'),_0x54355c('0x1600'),function(_0x1a5d59,_0x185312){const _0x5286c3=_0x54355c;return _0x185312[_0x5286c3('0x1b4e')](_0x5286c3('0x79b'))?_0x1a5d59['resolve']('variable@get',{'fields':_0x5286c3('0x2275'),'sort':_0x5286c3('0x1769'),'limit':0xa,'offset':0x0}):_0x1a5d59['resolve'](_0x5286c3('0x14b3'),{'id':_0x185312[_0x5286c3('0x14d4')]()[_0x5286c3('0x1946')],'section':_0x5286c3('0xd92'),'fields':_0x5286c3('0x2275'),'sort':_0x5286c3('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x54355c('0x1600'),function(_0x2ea1d0,_0xa4dd60){const _0x539925=_0x54355c;return _0xa4dd60[_0x539925('0x1b4e')](_0x539925('0x79b'))?null:_0x2ea1d0[_0x539925('0x155b')](_0x539925('0x1f20'),{'fields':_0x539925('0x19dd'),'id':_0xa4dd60[_0x539925('0x14d4')]()[_0x539925('0x1946')]});}],'userProfileSection':['apiResolver',_0x54355c('0x1600'),function(_0x3153d8,_0x468d21){const _0x4bdd9f=_0x54355c;return _0x468d21[_0x4bdd9f('0x1b4e')]('admin')?null:_0x3153d8['resolve'](_0x4bdd9f('0x40'),{'fields':_0x4bdd9f('0x1348'),'userProfileId':_0x468d21['getCurrentUser']()[_0x4bdd9f('0x1946')],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0x54355c('0x170f')}),_0x184396[_0x54355c('0x1b1a')](_0x54355c('0x278e'));}angular[_0x566993('0x22c4')](_0x566993('0xba7'),['ngCsv',_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),'mdColorPicker',_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),'ngAnimate',_0x566993('0x1146'),_0x566993('0x1698'),_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),'ngEmbed',_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392'),'app.tools.dispositions',_0x566993('0x2346')])['config'](_0x55ac0c)[_0x566993('0x1e65')](_0x566993('0x2593'),_0x3a422f)[_0x566993('0x1e65')](_0x566993('0x258b'),_0x1cafea)[_0x566993('0x1e65')](_0x566993('0x374'),_0x3485ab)['controller']('CustomDashboardsController',_0x2fee71)['controller']('CustomDashboardcloneController',_0x44affd)[_0x566993('0x1e65')](_0x566993('0x1e2e'),_0x8de67b)[_0x566993('0x1e65')](_0x566993('0x1dc0'),_0x2a1085)[_0x566993('0x1e65')]('CustomDashboardController',_0x4e2d03)['controller']('CreateOrEditIntervalDialogController',_0x330328)[_0x566993('0x1e65')](_0x566993('0x1ac3'),_0x56d290)[_0x566993('0x1e65')](_0x566993('0x22e6'),_0x44cf5b)[_0x566993('0x1e65')](_0x566993('0x5c9'),_0x3c5ed7)[_0x566993('0x1e65')](_0x566993('0x2326'),_0x1a51c7)[_0x566993('0x1e65')]('CreateOrEditPauseDialogController',_0x3a71ff)[_0x566993('0x1e65')](_0x566993('0xa1'),_0x4eb643)['controller'](_0x566993('0x5aa'),_0x5332a7)[_0x566993('0x1e65')](_0x566993('0x1507'),_0x1f9c59)[_0x566993('0x1e65')]('CreateOrEditSoundDialogController',_0x1a1444)[_0x566993('0x1e65')](_0x566993('0x107'),_0x18242b)[_0x566993('0x1e65')](_0x566993('0x8ae'),_0x2d9d62)[_0x566993('0x1e65')]('CreateOrEditTagDialogController',_0x4f0c25)['controller'](_0x566993('0x6d0'),_0x459788)[_0x566993('0x1e65')]('CreateOrEditTemplateDialogController',_0x2102b9)['controller'](_0x566993('0x20da'),_0x5bae16)[_0x566993('0x1e65')](_0x566993('0x18a6'),_0xda6e46)['controller']('TrunkcloneController',_0x20696a)[_0x566993('0x1e65')](_0x566993('0x1b1'),_0x422a92)['controller'](_0x566993('0x1c8d'),_0x1834be)[_0x566993('0x1e65')](_0x566993('0x7da'),_0xcab07b)[_0x566993('0x1e65')]('VariablesController',_0xa9b2eb);const _0x32e2a4=_0x21a6a1['p']+_0x566993('0x208d'),_0x206c58=_0x21a6a1['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view.html';_0x55e1c4[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$window','$state','$q',_0x566993('0x1600'),_0x566993('0x1558'),_0x566993('0x23a1'),_0x566993('0x220b'),_0x566993('0xbd4'),_0x566993('0x272c'),_0x566993('0x1dc1')];function _0x55e1c4(_0x3b6b06,_0x2e14ea,_0x4516bb,_0xd40565,_0x32aee0,_0x4cef98,_0x64ae2,_0xdf1875,_0x2b3780,_0x485a47,_0x21faf3){const _0x2e04bd=_0x566993,_0x511dc5=this;_0x511dc5['errors']=[],_0x511dc5[_0x2e04bd('0x20d6')]='CALLYSQUARE.EDIT_PROJECT',_0x511dc5[_0x2e04bd('0x1dc1')]=_0x21faf3,_0x511dc5[_0x2e04bd('0x220b')]=angular[_0x2e04bd('0x2e3')](_0xdf1875),_0x511dc5[_0x2e04bd('0x209e')]=!![],_0x511dc5[_0x2e04bd('0x23a1')]=_0x64ae2,_0x511dc5[_0x2e04bd('0x269c')]=![],_0x511dc5['openFromEditor']=_0x485a47;!_0x511dc5[_0x2e04bd('0x220b')]&&(_0x511dc5[_0x2e04bd('0x220b')]={'name':'','description':''},_0x511dc5[_0x2e04bd('0x20d6')]=_0x2e04bd('0x322'),_0x511dc5[_0x2e04bd('0x269c')]=!![]);_0x511dc5[_0x2e04bd('0x33a')]=_0xba7e5f,_0x511dc5[_0x2e04bd('0x264f')]=_0x42edbb,_0x511dc5[_0x2e04bd('0x9ab')]=_0x11e917,_0x511dc5[_0x2e04bd('0x18e2')]=_0x1f0841;function _0xba7e5f(){const _0x3dda89=_0x2e04bd;_0x511dc5[_0x3dda89('0x1d4a')]=[],_0x2b3780[_0x3dda89('0x550')][_0x3dda89('0x1195')](_0x511dc5[_0x3dda89('0x220b')])[_0x3dda89('0x1964')][_0x3dda89('0x173b')](function(_0xc5a9a7){const _0x49e7ef=_0x3dda89;return _0x2b3780[_0x49e7ef('0x166f')][_0x49e7ef('0x5b5')]({'id':_0x32aee0[_0x49e7ef('0x14d4')]()['id'],'ids':[_0xc5a9a7['id']]})['$promise'],_0xc5a9a7;})[_0x3dda89('0x173b')](function(_0x49cdf9){const _0x53d1ea=_0x3dda89;_0x511dc5[_0x53d1ea('0x23a1')][_0x53d1ea('0x1377')](_0x49cdf9),_0x4cef98[_0x53d1ea('0xdfe')]({'title':_0x53d1ea('0x1f02'),'msg':_0x511dc5[_0x53d1ea('0x220b')][_0x53d1ea('0x10ad')]?_0x511dc5['project'][_0x53d1ea('0x10ad')]+_0x53d1ea('0x209a'):''}),_0x1f0841(_0x49cdf9),_0x511dc5[_0x53d1ea('0x272c')]&&(_0x511dc5[_0x53d1ea('0x209e')]?_0x2e14ea[_0x53d1ea('0x1c2')](_0x53d1ea('0x371')+_0x49cdf9['id'],'_blank'):_0x4516bb['go']('app.callysquare.projects.edit',{'id':_0x49cdf9['id']}));})[_0x3dda89('0x103c')](function(_0x2a4853){const _0x32fb23=_0x3dda89;if(_0x2a4853[_0x32fb23('0x1e07')]&&_0x2a4853['data']['errors']&&_0x2a4853[_0x32fb23('0x1e07')]['errors'][_0x32fb23('0x543')]){_0x511dc5[_0x32fb23('0x1d4a')]=_0x2a4853[_0x32fb23('0x1e07')][_0x32fb23('0x1d4a')]||[{'message':_0x2a4853[_0x32fb23('0x1b75')](),'type':_0x32fb23('0x2056')}];for(let _0x444fae=0x0;_0x444fae<_0x2a4853['data'][_0x32fb23('0x1d4a')]['length'];_0x444fae++){_0x4cef98[_0x32fb23('0x15aa')]({'title':_0x2a4853[_0x32fb23('0x1e07')]['errors'][_0x444fae][_0x32fb23('0x1810')],'msg':_0x2a4853[_0x32fb23('0x1e07')][_0x32fb23('0x1d4a')][_0x444fae][_0x32fb23('0x67f')]});}}else _0x4cef98[_0x32fb23('0x15aa')]({'title':_0x2a4853[_0x32fb23('0x276f')]?'API:'+_0x2a4853[_0x32fb23('0x276f')]+_0x32fb23('0x160c')+_0x2a4853[_0x32fb23('0x2696')]:_0x32fb23('0x2056'),'msg':_0x2a4853[_0x32fb23('0x1e07')]?JSON[_0x32fb23('0x100b')](_0x2a4853[_0x32fb23('0x1e07')]['message']):_0x2a4853['toString']()});});}function _0x42edbb(){const _0x4c5273=_0x2e04bd;_0x511dc5[_0x4c5273('0x1d4a')]=[],_0x2b3780[_0x4c5273('0x550')][_0x4c5273('0x1842')]({'id':_0x511dc5['project']['id']},_0x511dc5['project'])[_0x4c5273('0x1964')][_0x4c5273('0x173b')](function(_0x3f863d){const _0x37e6e4=_0x4c5273,_0x476c7e=_0x3c8d8a()[_0x37e6e4('0x18ab')](_0x511dc5[_0x37e6e4('0x23a1')],{'id':_0x3f863d['id']});_0x476c7e&&_0x3c8d8a()[_0x37e6e4('0x9ef')](_0x476c7e,_0x3f863d),_0x4cef98[_0x37e6e4('0xdfe')]({'title':_0x37e6e4('0x13e5'),'msg':_0x511dc5[_0x37e6e4('0x220b')]['name']?_0x511dc5[_0x37e6e4('0x220b')][_0x37e6e4('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x1f0841(_0x3f863d);})[_0x4c5273('0x103c')](function(_0x50a67c){const _0x439dab=_0x4c5273;if(_0x50a67c[_0x439dab('0x1e07')]&&_0x50a67c[_0x439dab('0x1e07')][_0x439dab('0x1d4a')]&&_0x50a67c[_0x439dab('0x1e07')][_0x439dab('0x1d4a')][_0x439dab('0x543')]){_0x511dc5['errors']=_0x50a67c[_0x439dab('0x1e07')][_0x439dab('0x1d4a')]||[{'message':_0x50a67c[_0x439dab('0x1b75')](),'type':_0x439dab('0x1b61')}];for(let _0x598606=0x0;_0x598606<_0x50a67c[_0x439dab('0x1e07')][_0x439dab('0x1d4a')][_0x439dab('0x543')];_0x598606++){_0x4cef98[_0x439dab('0x15aa')]({'title':_0x50a67c['data'][_0x439dab('0x1d4a')][_0x598606][_0x439dab('0x1810')],'msg':_0x50a67c[_0x439dab('0x1e07')][_0x439dab('0x1d4a')][_0x598606][_0x439dab('0x67f')]});}}else _0x4cef98['error']({'title':_0x50a67c['status']?_0x439dab('0x137')+_0x50a67c[_0x439dab('0x276f')]+_0x439dab('0x160c')+_0x50a67c[_0x439dab('0x2696')]:_0x439dab('0x1b61'),'msg':_0x50a67c[_0x439dab('0x1e07')]?JSON[_0x439dab('0x100b')](_0x50a67c[_0x439dab('0x1e07')][_0x439dab('0x67f')]):_0x50a67c[_0x439dab('0x1b75')]()});});}function _0x11e917(){const _0x5e28f2=_0x2e04bd;_0x511dc5[_0x5e28f2('0x1d4a')]=[];const _0x36e620=_0x3b6b06[_0x5e28f2('0x1d02')]()[_0x5e28f2('0x20d6')](_0x5e28f2('0x8ef'))['content'](_0x5e28f2('0x2847'))[_0x5e28f2('0x217')](_0x5e28f2('0x1d1d'))['ok'](_0x5e28f2('0x2373'))[_0x5e28f2('0x1e1f')]('Cancel')[_0x5e28f2('0x21de')](event);_0x3b6b06[_0x5e28f2('0x1cb7')](_0x36e620)[_0x5e28f2('0x173b')](function(){const _0x16be72=_0x5e28f2;_0x2b3780[_0x16be72('0x550')][_0x16be72('0x15e8')]({'id':_0x511dc5['project']['id']})[_0x16be72('0x1964')][_0x16be72('0x173b')](function(){const _0x21cd5b=_0x16be72;return _0x2b3780[_0x21cd5b('0x550')][_0x21cd5b('0x2050')]({'id':_0x511dc5['project']['id']})['$promise'];})[_0x16be72('0x173b')](function(_0xe3c8ee){const _0x566c43=_0x16be72,_0x74904a=[],_0xed6eda=_0xe3c8ee[_0x566c43('0x6aa')];for(let _0xb3db17=0x0;_0xb3db17<_0xed6eda['length'];_0xb3db17++){_0x74904a[_0x566c43('0x18bb')](_0x2b3780[_0x566c43('0x166f')][_0x566c43('0x1315')]({'id':_0x32aee0['getCurrentUser']()['id'],'ids':[_0x511dc5['project']['id']]})[_0x566c43('0x1964')]);}return _0xd40565[_0x566c43('0x27c8')](_0x74904a);})[_0x16be72('0x173b')](function(){const _0x427e73=_0x16be72;_0x3c8d8a()[_0x427e73('0x1a8b')](_0x511dc5[_0x427e73('0x23a1')],{'id':_0x511dc5['project']['id']}),_0x4cef98['success']({'title':_0x427e73('0x1cef'),'msg':_0x511dc5['project'][_0x427e73('0x10ad')]?_0x511dc5[_0x427e73('0x220b')][_0x427e73('0x10ad')]+_0x427e73('0x25d2'):''}),_0x1f0841(_0x511dc5[_0x427e73('0x220b')]);})[_0x16be72('0x103c')](function(_0x5d5d78){const _0x59817e=_0x16be72;console['error'](_0x5d5d78),_0x511dc5[_0x59817e('0x1d4a')]=_0x5d5d78[_0x59817e('0x1e07')][_0x59817e('0x1d4a')]||[{'message':_0x5d5d78[_0x59817e('0x1b75')](),'type':_0x59817e('0xa81')}];});},function(){});}function _0x1f0841(_0x5a0b94){_0x3b6b06['hide'](_0x5a0b94);}}const _0x1edb0f=_0x55e1c4;_0x26ecd4['$inject']=[_0x566993('0x1fe5'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x103e'),_0x566993('0x27cd'),'googleAsrLanguage',_0x566993('0x150c'),'googleCloudTtslanguageCode','googleTtsLanguage','users',_0x566993('0x673'),'queues',_0x566993('0x1230'),'variables','databases','projects',_0x566993('0x22a9'),'intervals',_0x566993('0x2632'),_0x566993('0x2637'),_0x566993('0x9e8'),_0x566993('0x20b3'),_0x566993('0x22ea'),_0x566993('0xd35'),_0x566993('0x1565'),_0x566993('0x130a'),_0x566993('0x1d66'),_0x566993('0x275'),'awsLexRegion',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x26ecd4(_0x324c14,_0x1352a2,_0x3a0641,_0x56f70c,_0x20940d,_0x360d83,_0x758780,_0x536c26,_0x16ded2,_0x445cef,_0x4a9e98,_0x5193bc,_0x1fd5b3,_0x35a1a1,_0xd2fc51,_0x37fc23,_0xd4d7b8,_0x459fe3,_0x2c8a1e,_0x2eb049,_0x2b8bc2,_0x551dd0,_0x1d433a,_0x29b295,_0x1271c4,_0x7b9014,_0x439a8d,_0x57a03d,_0x1b7fdb,_0x1c9301,_0x7c5b95){const _0xd39a69=_0x566993,_0xe27a80=this,_0x927463={'playback':[_0xd39a69('0x1664')],'answer':[_0xd39a69('0x1f84')],'menu':['file_id',_0xd39a69('0x2473'),_0xd39a69('0x12de'),'retry'],'getdigits':[_0xd39a69('0x1664'),_0xd39a69('0x192f'),_0xd39a69('0x343'),_0xd39a69('0xdb8'),_0xd39a69('0x213c')],'getsecretdigits':[_0xd39a69('0x1664'),_0xd39a69('0x192f'),'mindigit',_0xd39a69('0xdb8'),_0xd39a69('0x1cbf'),_0xd39a69('0x213c')],'vswitch':[_0xd39a69('0x192f')],'database':[_0xd39a69('0x1ad'),'query'],'ext_dial':[_0xd39a69('0x17c'),_0xd39a69('0xa04'),_0xd39a69('0x1f84')],'set':[_0xd39a69('0x192f')],'math':[_0xd39a69('0x192f')],'gotoc':[_0xd39a69('0x2b9'),_0xd39a69('0x22ce'),'priority'],'system':[_0xd39a69('0xdc4')],'agi':['command'],'gotoif':['condition'],'saydigits':[_0xd39a69('0x49c')],'saynumber':['number'],'sayphonetic':[_0xd39a69('0x86e')],'record':[_0xd39a69('0x2522'),_0xd39a69('0x1f84')],'goal':['goalname'],'dial':[_0xd39a69('0x241f'),_0xd39a69('0x1f84')],'queue':[_0xd39a69('0x1a47'),_0xd39a69('0x1f84')],'callback':[_0xd39a69('0x2042'),_0xd39a69('0x10ad'),'phone',_0xd39a69('0x16a6')],'gotoiftime':['interval_id'],'voicemail':[_0xd39a69('0x14d3')],'subproject':['project_id'],'sendSMS':['sms_account_id','to',_0xd39a69('0x1a92')],'sendMail':[_0xd39a69('0x278c'),'to'],'sendFax':[_0xd39a69('0x278c'),'to','attachment_path'],'google_cloud_tts':[_0xd39a69('0x200a'),_0xd39a69('0x17d6'),'text'],'tts':['text'],'ispeechtts':[_0xd39a69('0x86e'),'key',_0xd39a69('0x1ff7')],'ispeechasr':[_0xd39a69('0x237a'),_0xd39a69('0x1f84')],'custom_app':[_0xd39a69('0x17c2')],'googleasr':['key',_0xd39a69('0x1f84')],'awspolly':['aws_access_key_id','aws_secret_access_key',_0xd39a69('0x86e'),_0xd39a69('0x35')],'lumenvoxtts':['text'],'sestektts':[_0xd39a69('0x86e')],'lumenvoxasr':['grammar'],'sestekasr':[_0xd39a69('0x1f1e')],'tildeasr':[_0xd39a69('0x24b'),'appsecret',_0xd39a69('0x14a4')],'login':['findBy'],'pause':[_0xd39a69('0x1bce'),'pause_id'],'unpause':[_0xd39a69('0x1bce')],'logout':['findBy'],'dialogflow':['key',_0xd39a69('0x86e'),'dialogflow_language'],'awslex':[_0xd39a69('0xfa8'),_0xd39a69('0x2690'),'aws_lex_region','aws_bot_name',_0xd39a69('0x86e')],'sesteknda':[_0xd39a69('0x86e'),'ndauth_url','username',_0xd39a69('0xdb6'),_0xd39a69('0x19e4')],'restapi':[_0xd39a69('0xd1'),'method'],'mrcpsynth':[_0xd39a69('0x86e')],'mrcprecog':[_0xd39a69('0x1f1e')]},_0x1ba900={'queue':[_0xd39a69('0x1664')],'database':['variable_id'],'pause':['pause_id']},_0x17e654={'sendMail':['to','cc',_0xd39a69('0x2366')],'voicemail':['mailbox']};_0xe27a80[_0xd39a69('0x222f')]=_0x551dd0['tagName'],_0xe27a80[_0xd39a69('0x19b3')]=_0x3c8d8a()[_0xd39a69('0x8a2')](_0x551dd0[_0xd39a69('0x19b3')],function(_0x57d663){const _0x165d76=_0xd39a69;return{'name':_0x57d663[_0x165d76('0x10ad')],'value':_0x57d663[_0x165d76('0xa7b')],'defaultValue':_0x1ba900[_0xe27a80[_0x165d76('0x222f')]]&&_0x3c8d8a()[_0x165d76('0x2814')](_0x1ba900[_0xe27a80[_0x165d76('0x222f')]],_0x57d663['name']),'required':_0x927463[_0xe27a80[_0x165d76('0x222f')]]&&_0x3c8d8a()['includes'](_0x927463[_0xe27a80['cellName']],_0x57d663[_0x165d76('0x10ad')]),'help':_0x17e654[_0xe27a80[_0x165d76('0x222f')]]&&_0x3c8d8a()[_0x165d76('0x2814')](_0x17e654[_0xe27a80[_0x165d76('0x222f')]],_0x57d663[_0x165d76('0x10ad')])};}),_0xe27a80['values']={'authMethod':[{'value':_0xd39a69('0x268d'),'option':'NO\x20AUTH'},{'value':_0xd39a69('0xb01'),'option':'HMAC'}],'answer':[{'value':_0xd39a69('0x1d41'),'option':_0xd39a69('0x1029')},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':_0xd39a69('0x1029')},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0xd39a69('0x67f'),'option':_0xd39a69('0x1bd7')},{'value':_0xd39a69('0x5d4'),'option':'Conversation\x20Update'},{'value':_0xd39a69('0x6c0'),'option':_0xd39a69('0xefa')},{'value':_0xd39a69('0x1353'),'option':'End\x20of\x20Conversation'}],'hiddendigitspos':[{'value':'first','option':_0xd39a69('0x840')},{'value':'last','option':_0xd39a69('0xbc2')}],'recordingFormat':[{'value':_0xd39a69('0x1362'),'option':'Wav'},{'value':_0xd39a69('0x2aa'),'option':'Gsm'}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':'BEEP','option':_0xd39a69('0x1029')},{'value':'NOBEEP','option':'No'}],'model':_0x56f70c,'ispeech_asr_language':_0x20940d,'ispeech_tts_language':_0x758780,'languageCode':_0x536c26,'ssmlGender':[{'value':'FEMALE','option':'Female'},{'value':'MALE','option':'Male'}],'google_tts_language':_0x16ded2,'google_asr_language':_0x360d83,'google_cloud_tts_text_type':[{'value':_0xd39a69('0x86e'),'option':_0xd39a69('0x381')},{'value':_0xd39a69('0x22f8'),'option':'SSML'}],'aws_polly_region':_0x1271c4,'aws_polly_voice':_0x29b295,'aws_text_type':[{'value':_0xd39a69('0x86e'),'option':_0xd39a69('0x381')},{'value':'ssml','option':_0xd39a69('0x452')}],'callback_priority':[{'option':_0xd39a69('0x1091'),'value':0x4},{'option':'High','value':0x3},{'option':_0xd39a69('0x1897'),'value':0x2},{'option':_0xd39a69('0x25a5'),'value':0x1},{'option':_0xd39a69('0x13af'),'value':0x0}],'findBy':[{'value':_0xd39a69('0x138c'),'option':_0xd39a69('0x20e1')},{'value':_0xd39a69('0xa04'),'option':'Phone'},{'value':_0xd39a69('0x1c56'),'option':_0xd39a69('0x90b')}],'dialogflow_language':_0x57a03d,'aws_lex_region':_0x1b7fdb,'method':[{'value':_0xd39a69('0x2756'),'option':_0xd39a69('0x2756')},{'value':_0xd39a69('0x19a1'),'option':'POST'},{'value':_0xd39a69('0xd75'),'option':_0xd39a69('0xd75')},{'value':_0xd39a69('0xfc9'),'option':_0xd39a69('0xfc9')}]},_0xe27a80['crudPermissions']=_0x7c5b95,_0xe27a80[_0xd39a69('0x2535')]=_0x4866b7,_0xe27a80['closeDialog']=_0x9502b,_0xe27a80[_0xd39a69('0x68f')]=_0x4a5740;function _0x4866b7(){const _0x4d0729=_0xd39a69;_0x1c9301[_0x4d0729('0x1b4e')](_0x4d0729('0x79b'))?_0x568d1b():_0x2967c9();}function _0x4a5740(_0x9a6e02,_0x12c50f,_0x5674b8,_0x1f6350){return _0x3c8d8a()['map'](_0x9a6e02,function(_0x28a3bd){const _0x1d7708=a0_0xde5e;return{'value':_0x28a3bd[_0x12c50f],'option':_0x28a3bd[_0x5674b8],'group':_0x1f6350?_0x28a3bd[_0x1f6350]:undefined,'canSelect':typeof _0x28a3bd['canSelect']!==_0x1d7708('0x6e5')?_0x28a3bd[_0x1d7708('0x268e')]:!![]};});}function _0x4ae992(_0x4252a2,_0x3bd504,_0x492566,_0x1c9c6f){const _0x5c6257=_0xd39a69,_0x963797=_0x3c8d8a()['filter'](_0x4252a2,function(_0x3d296d){return _0x3d296d[_0x1c9c6f]===null;}),_0x218042=[];return _0x3c8d8a()[_0x5c6257('0xa6a')](_0x963797,function(_0x529be9){const _0x3a1fd9=_0x5c6257;_0x218042[_0x3a1fd9('0x18bb')]({'value':_0x529be9[_0x3bd504],'option':_0x529be9[_0x492566]});const _0xdd413f=_0x3c8d8a()[_0x3a1fd9('0x278d')](_0x4252a2,function(_0x592cfe){return _0x592cfe[_0x1c9c6f]===_0x529be9['id'];});_0x3c8d8a()[_0x3a1fd9('0xa6a')](_0xdd413f,function(_0x4bb023){const _0x53f4b7=_0x3a1fd9;_0x218042[_0x53f4b7('0x18bb')]({'value':_0x4bb023[_0x3bd504],'option':_0x53f4b7('0x160c')+_0x4bb023[_0x492566]});});}),_0x218042;}function _0x568d1b(){const _0x10186d=_0xd39a69,_0x36601c={'sip_id':_0x4a5740(_0x445cef,'id',_0x10186d('0x572'),_0x10186d('0x14a')),'trunk_name':_0x4a5740(_0x4a9e98,'name','name'),'trunk_id':_0x4a5740(_0x4a9e98,'id',_0x10186d('0x10ad')),'queue_id':_0x4a5740(_0x5193bc,'id',_0x10186d('0x10ad')),'file_id':_0x4a5740(_0x1fd5b3,'id','name'),'variable_id':_0x4a5740(_0x35a1a1,'id','name'),'odbc_id':_0x4a5740(_0xd2fc51,'id',_0x10186d('0x10ad')),'project_id':_0x4a5740(_0x37fc23,'id',_0x10186d('0x10ad')),'context':_0x4a5740(_0xd4d7b8,'id',_0x10186d('0x10ad')),'interval_id':_0x4ae992(_0x459fe3,'id',_0x10186d('0x10ad'),_0x10186d('0x600')),'account_id':_0x4a5740(_0x2c8a1e,'id','name'),'template_id':_0x4a5740(_0x2eb049,'id','name'),'list_id':_0x4a5740(_0x2b8bc2,'id',_0x10186d('0x10ad')),'sms_account_id':_0x4a5740(_0x7b9014,'id',_0x10186d('0x10ad')),'pause_id':_0x4a5740(_0x439a8d,'id','name')},_0x752d9d=_0x3c8d8a()[_0x10186d('0x9ef')](_0xe27a80[_0x10186d('0xcaf')],_0x36601c);_0xe27a80[_0x10186d('0xcaf')]=_0x752d9d;}function _0x2967c9(){const _0x1737c8=_0xd39a69,_0x4d4ccf=[_0x1737c8('0x241f'),_0x1737c8('0x17c'),_0x1737c8('0x1119'),_0x1737c8('0x1a47'),_0x1737c8('0x1664'),'variable_id',_0x1737c8('0x1ad'),_0x1737c8('0x1ee8'),_0x1737c8('0x2b9'),_0x1737c8('0xf57'),_0x1737c8('0x278c'),'template_id',_0x1737c8('0x2042'),_0x1737c8('0x158'),_0x1737c8('0xf16')];for(let _0x3606ff=0x0;_0x3606ff<_0xe27a80[_0x1737c8('0x19b3')][_0x1737c8('0x543')];_0x3606ff++){if(_0x3c8d8a()[_0x1737c8('0x2814')](_0x4d4ccf,_0xe27a80['attributes'][_0x3606ff]['name']))switch(_0xe27a80[_0x1737c8('0x19b3')][_0x3606ff][_0x1737c8('0x10ad')]){case _0x1737c8('0x241f'):_0x5bb6af();break;case _0x1737c8('0x17c'):_0x2bfc04();break;case _0x1737c8('0x1119'):_0x4b073e();break;case _0x1737c8('0x1a47'):_0x56fff6();break;case _0x1737c8('0x1664'):_0x519566();break;case _0x1737c8('0x192f'):_0x492879();break;case _0x1737c8('0x1ad'):_0x2e9fcc();break;case _0x1737c8('0x1ee8'):_0x3ceb54();break;case _0x1737c8('0x2b9'):_0x3128d();break;case _0x1737c8('0xf57'):_0x272864();break;case'account_id':_0x256658();break;case'template_id':_0x306917();break;case _0x1737c8('0x2042'):_0x2074cc();break;case _0x1737c8('0x158'):_0x2e3c9d();break;case _0x1737c8('0xf16'):_0x57ea0e();break;}}}function _0x5bb6af(){const _0x35fb4d=_0xd39a69,_0x13cf7b=Number(_0x3c8d8a()[_0x35fb4d('0x18ab')](_0xe27a80[_0x35fb4d('0x19b3')],{'name':'sip_id'})[_0x35fb4d('0xa7b')]),_0x5d6c3d=_0x3c8d8a()[_0x35fb4d('0x1ec')](_0x445cef,{'id':_0x13cf7b});if(!_0x5d6c3d&&_0x13cf7b>0x0)return _0x1352a2[_0x35fb4d('0x166f')]['get']({'id':_0x13cf7b,'fields':_0x35fb4d('0x17c8')})[_0x35fb4d('0x1964')][_0x35fb4d('0x173b')](function(_0x25ea7e){const _0x5d4b01=_0x35fb4d,_0x159d75=_0x25ea7e[_0x5d4b01('0xf1f')]();_0x159d75[_0x5d4b01('0x268e')]=![],_0x445cef[_0x5d4b01('0x18bb')](_0x159d75),_0xe27a80[_0x5d4b01('0xcaf')]['sip_id']=_0x4a5740(_0x445cef,'id','fullname','role');})['catch'](function(_0x581efb){const _0x48d7f8=_0x35fb4d;_0x3a0641[_0x48d7f8('0x15aa')]({'title':_0x581efb[_0x48d7f8('0x276f')]?_0x48d7f8('0x137')+_0x581efb[_0x48d7f8('0x276f')]+_0x48d7f8('0x160c')+_0x581efb[_0x48d7f8('0x2696')]:_0x48d7f8('0x14c'),'msg':_0x581efb[_0x48d7f8('0x1e07')]?JSON[_0x48d7f8('0x100b')](_0x581efb[_0x48d7f8('0x1e07')][_0x48d7f8('0x67f')]):_0x581efb[_0x48d7f8('0x1b75')]()});});else _0xe27a80[_0x35fb4d('0xcaf')]['sip_id']=_0x4a5740(_0x445cef,'id',_0x35fb4d('0x572'),_0x35fb4d('0x14a'));}function _0x2074cc(){const _0x39fb6e=_0xd39a69,_0xe70663=Number(_0x3c8d8a()[_0x39fb6e('0x18ab')](_0xe27a80[_0x39fb6e('0x19b3')],{'name':_0x39fb6e('0x2042')})['value']),_0x3ed4af=_0x3c8d8a()[_0x39fb6e('0x1ec')](_0x2b8bc2,{'id':_0xe70663});if(!_0x3ed4af&&_0xe70663>0x0)return _0x1352a2['cmList'][_0x39fb6e('0x1d97')]({'id':_0xe70663,'fields':_0x39fb6e('0xd52')})[_0x39fb6e('0x1964')][_0x39fb6e('0x173b')](function(_0x5ad4e0){const _0x37a173=_0x39fb6e,_0x2c9206=_0x5ad4e0['toJSON']();_0x2c9206['canSelect']=![],_0x2b8bc2[_0x37a173('0x18bb')](_0x2c9206),_0xe27a80[_0x37a173('0xcaf')][_0x37a173('0x2042')]=_0x4a5740(_0x2b8bc2,'id','name');})[_0x39fb6e('0x103c')](function(_0x202bb6){const _0x2f573c=_0x39fb6e;_0x3a0641[_0x2f573c('0x15aa')]({'title':_0x202bb6[_0x2f573c('0x276f')]?'API:'+_0x202bb6[_0x2f573c('0x276f')]+_0x2f573c('0x160c')+_0x202bb6['statusText']:_0x2f573c('0x2358'),'msg':_0x202bb6[_0x2f573c('0x1e07')]?JSON[_0x2f573c('0x100b')](_0x202bb6[_0x2f573c('0x1e07')][_0x2f573c('0x67f')]):_0x202bb6[_0x2f573c('0x1b75')]()});});else _0xe27a80['values'][_0x39fb6e('0x2042')]=_0x4a5740(_0x2b8bc2,'id',_0x39fb6e('0x10ad'));}function _0x4b073e(){const _0xb2635=_0xd39a69,_0x1765df=Number(_0x3c8d8a()['find'](_0xe27a80['attributes'],{'name':_0xb2635('0x1119')})[_0xb2635('0xa7b')]),_0xebd81c=_0x3c8d8a()[_0xb2635('0x1ec')](_0x4a9e98,{'id':_0x1765df});if(!_0xebd81c&&_0x1765df>0x0)return _0x1352a2[_0xb2635('0x15b7')][_0xb2635('0x1d97')]({'id':_0x1765df,'fields':_0xb2635('0xd52')})[_0xb2635('0x1964')][_0xb2635('0x173b')](function(_0x36226a){const _0x575976=_0xb2635,_0x42e67d=_0x36226a[_0x575976('0xf1f')]();_0x42e67d[_0x575976('0x268e')]=![],_0x4a9e98[_0x575976('0x18bb')](_0x42e67d),_0xe27a80['values'][_0x575976('0x1119')]=_0x4a5740(_0x4a9e98,'id',_0x575976('0x10ad'));})[_0xb2635('0x103c')](function(_0x12626a){const _0x226475=_0xb2635;_0x3a0641['error']({'title':_0x12626a[_0x226475('0x276f')]?_0x226475('0x137')+_0x12626a[_0x226475('0x276f')]+_0x226475('0x160c')+_0x12626a[_0x226475('0x2696')]:_0x226475('0x1fae'),'msg':_0x12626a[_0x226475('0x1e07')]?JSON[_0x226475('0x100b')](_0x12626a[_0x226475('0x1e07')][_0x226475('0x67f')]):_0x12626a[_0x226475('0x1b75')]()});});else _0xe27a80[_0xb2635('0xcaf')]['trunk_id']=_0x4a5740(_0x4a9e98,'id',_0xb2635('0x10ad'));}function _0x2bfc04(){const _0x1c0bd9=_0xd39a69,_0x1ae723=_0x3c8d8a()[_0x1c0bd9('0x18ab')](_0xe27a80[_0x1c0bd9('0x19b3')],{'name':'trunk_name'})[_0x1c0bd9('0xa7b')],_0x4b389e=_0x3c8d8a()[_0x1c0bd9('0x1ec')](_0x4a9e98,{'name':_0x1ae723});if(!_0x4b389e&&_0x1ae723)return _0x1352a2['trunk'][_0x1c0bd9('0x1d97')]({'name':_0x1ae723,'fields':_0x1c0bd9('0xd52')})[_0x1c0bd9('0x1964')][_0x1c0bd9('0x173b')](function(_0x5db620){const _0x443f94=_0x1c0bd9;if(_0x5db620[_0x443f94('0x1a2f')]>0x0&&_0x5db620[_0x443f94('0x6aa')]['length']>0x0){const _0x11db25=_0x5db620[_0x443f94('0x6aa')][0x0];_0x11db25[_0x443f94('0x268e')]=![],_0x4a9e98[_0x443f94('0x18bb')](_0x11db25),_0xe27a80['values'][_0x443f94('0x17c')]=_0x4a5740(_0x4a9e98,_0x443f94('0x10ad'),_0x443f94('0x10ad'));}})[_0x1c0bd9('0x103c')](function(_0x155a13){const _0x7cdb0=_0x1c0bd9;_0x3a0641[_0x7cdb0('0x15aa')]({'title':_0x155a13[_0x7cdb0('0x276f')]?_0x7cdb0('0x137')+_0x155a13[_0x7cdb0('0x276f')]+'\x20-\x20'+_0x155a13[_0x7cdb0('0x2696')]:'GET_TRUNK','msg':_0x155a13[_0x7cdb0('0x1e07')]?JSON[_0x7cdb0('0x100b')](_0x155a13[_0x7cdb0('0x1e07')][_0x7cdb0('0x67f')]):_0x155a13[_0x7cdb0('0x1b75')]()});});else _0xe27a80[_0x1c0bd9('0xcaf')]['trunk_name']=_0x4a5740(_0x4a9e98,_0x1c0bd9('0x10ad'),_0x1c0bd9('0x10ad'));}function _0x56fff6(){const _0x2785fd=_0xd39a69,_0x45cfd8=Number(_0x3c8d8a()[_0x2785fd('0x18ab')](_0xe27a80['attributes'],{'name':_0x2785fd('0x1a47')})['value']),_0x5eb286=_0x3c8d8a()[_0x2785fd('0x1ec')](_0x5193bc,{'id':_0x45cfd8});if(!_0x5eb286&&_0x45cfd8>0x0)return _0x1352a2[_0x2785fd('0x1282')][_0x2785fd('0x1d97')]({'id':_0x45cfd8,'fields':_0x2785fd('0xd52')})['$promise'][_0x2785fd('0x173b')](function(_0x2cb456){const _0x104846=_0x2785fd,_0x57966e=_0x2cb456[_0x104846('0xf1f')]();_0x57966e['canSelect']=![],_0x5193bc['push'](_0x57966e),_0xe27a80['values']['queue_id']=_0x4a5740(_0x5193bc,'id',_0x104846('0x10ad'));})[_0x2785fd('0x103c')](function(_0x5cbde5){const _0x31c7bd=_0x2785fd;_0x3a0641[_0x31c7bd('0x15aa')]({'title':_0x5cbde5[_0x31c7bd('0x276f')]?_0x31c7bd('0x137')+_0x5cbde5['status']+_0x31c7bd('0x160c')+_0x5cbde5['statusText']:_0x31c7bd('0x1e69'),'msg':_0x5cbde5[_0x31c7bd('0x1e07')]?JSON[_0x31c7bd('0x100b')](_0x5cbde5[_0x31c7bd('0x1e07')][_0x31c7bd('0x67f')]):_0x5cbde5[_0x31c7bd('0x1b75')]()});});else _0xe27a80[_0x2785fd('0xcaf')][_0x2785fd('0x1a47')]=_0x4a5740(_0x5193bc,'id',_0x2785fd('0x10ad'));}function _0x519566(){const _0x4e6286=_0xd39a69,_0x1cc250=Number(_0x3c8d8a()[_0x4e6286('0x18ab')](_0xe27a80[_0x4e6286('0x19b3')],{'name':_0x4e6286('0x1664')})[_0x4e6286('0xa7b')]),_0x45d23b=_0x3c8d8a()['some'](_0x1fd5b3,{'id':_0x1cc250});if(!_0x45d23b&&_0x1cc250>0x0)return _0x1352a2[_0x4e6286('0x156f')]['get']({'id':_0x1cc250,'fields':_0x4e6286('0xd52')})[_0x4e6286('0x1964')][_0x4e6286('0x173b')](function(_0xb48d70){const _0x453794=_0x4e6286,_0x2fa1d6=_0xb48d70[_0x453794('0xf1f')]();_0x2fa1d6['canSelect']=![],_0x1fd5b3['push'](_0x2fa1d6),_0xe27a80[_0x453794('0xcaf')]['file_id']=_0x4a5740(_0x1fd5b3,'id',_0x453794('0x10ad'));})[_0x4e6286('0x103c')](function(_0x3d54ba){const _0x1f5d9d=_0x4e6286;_0x3a0641['error']({'title':_0x3d54ba[_0x1f5d9d('0x276f')]?_0x1f5d9d('0x137')+_0x3d54ba[_0x1f5d9d('0x276f')]+_0x1f5d9d('0x160c')+_0x3d54ba[_0x1f5d9d('0x2696')]:'GET_SOUND','msg':_0x3d54ba[_0x1f5d9d('0x1e07')]?JSON['stringify'](_0x3d54ba['data'][_0x1f5d9d('0x67f')]):_0x3d54ba[_0x1f5d9d('0x1b75')]()});});else _0xe27a80[_0x4e6286('0xcaf')]['file_id']=_0x4a5740(_0x1fd5b3,'id','name');}function _0x492879(){const _0x5be04c=_0xd39a69,_0x5b4ffd=Number(_0x3c8d8a()['find'](_0xe27a80['attributes'],{'name':_0x5be04c('0x192f')})[_0x5be04c('0xa7b')]),_0xde0b76=_0x3c8d8a()['some'](_0x35a1a1,{'id':_0x5b4ffd});if(!_0xde0b76&&_0x5b4ffd>0x0)return _0x1352a2[_0x5be04c('0x1b56')][_0x5be04c('0x1d97')]({'id':_0x5b4ffd,'fields':_0x5be04c('0xd52')})[_0x5be04c('0x1964')][_0x5be04c('0x173b')](function(_0x1af314){const _0x2cc1fe=_0x5be04c,_0x515138=_0x1af314[_0x2cc1fe('0xf1f')]();_0x515138[_0x2cc1fe('0x268e')]=![],_0x35a1a1[_0x2cc1fe('0x18bb')](_0x515138),_0xe27a80[_0x2cc1fe('0xcaf')][_0x2cc1fe('0x192f')]=_0x4a5740(_0x35a1a1,'id',_0x2cc1fe('0x10ad'));})[_0x5be04c('0x103c')](function(_0xd3a969){const _0x15d56d=_0x5be04c;_0x3a0641[_0x15d56d('0x15aa')]({'title':_0xd3a969[_0x15d56d('0x276f')]?_0x15d56d('0x137')+_0xd3a969[_0x15d56d('0x276f')]+_0x15d56d('0x160c')+_0xd3a969[_0x15d56d('0x2696')]:_0x15d56d('0xcbc'),'msg':_0xd3a969['data']?JSON[_0x15d56d('0x100b')](_0xd3a969[_0x15d56d('0x1e07')]['message']):_0xd3a969[_0x15d56d('0x1b75')]()});});else _0xe27a80[_0x5be04c('0xcaf')][_0x5be04c('0x192f')]=_0x4a5740(_0x35a1a1,'id',_0x5be04c('0x10ad'));}function _0x2e9fcc(){const _0x3fce7f=_0xd39a69,_0x112554=Number(_0x3c8d8a()[_0x3fce7f('0x18ab')](_0xe27a80[_0x3fce7f('0x19b3')],{'name':_0x3fce7f('0x1ad')})[_0x3fce7f('0xa7b')]),_0x5e28df=_0x3c8d8a()[_0x3fce7f('0x1ec')](_0xd2fc51,{'id':_0x112554});if(!_0x5e28df&&_0x112554>0x0)return _0x1352a2['squareOdbc'][_0x3fce7f('0x1d97')]({'id':_0x112554,'fields':_0x3fce7f('0xd52')})[_0x3fce7f('0x1964')][_0x3fce7f('0x173b')](function(_0x15cd84){const _0x1aa8dd=_0x3fce7f,_0x50c402=_0x15cd84[_0x1aa8dd('0xf1f')]();_0x50c402['canSelect']=![],_0xd2fc51[_0x1aa8dd('0x18bb')](_0x50c402),_0xe27a80[_0x1aa8dd('0xcaf')][_0x1aa8dd('0x1ad')]=_0x4a5740(_0xd2fc51,'id',_0x1aa8dd('0x10ad'));})[_0x3fce7f('0x103c')](function(_0x534632){const _0x7d8248=_0x3fce7f;_0x3a0641['error']({'title':_0x534632[_0x7d8248('0x276f')]?_0x7d8248('0x137')+_0x534632[_0x7d8248('0x276f')]+_0x7d8248('0x160c')+_0x534632[_0x7d8248('0x2696')]:_0x7d8248('0x2c7'),'msg':_0x534632[_0x7d8248('0x1e07')]?JSON['stringify'](_0x534632['data'][_0x7d8248('0x67f')]):_0x534632[_0x7d8248('0x1b75')]()});});else _0xe27a80['values'][_0x3fce7f('0x1ad')]=_0x4a5740(_0xd2fc51,'id',_0x3fce7f('0x10ad'));}function _0x3ceb54(){const _0x598c4b=_0xd39a69,_0x353b99=Number(_0x3c8d8a()[_0x598c4b('0x18ab')](_0xe27a80['attributes'],{'name':_0x598c4b('0x1ee8')})[_0x598c4b('0xa7b')]),_0x2944d3=_0x3c8d8a()['some'](_0x37fc23,{'id':_0x353b99});if(!_0x2944d3&&_0x353b99>0x0)return _0x1352a2['squareProject'][_0x598c4b('0x1d97')]({'id':_0x353b99,'fields':_0x598c4b('0xd52')})[_0x598c4b('0x1964')]['then'](function(_0xcbe662){const _0x4dbcf6=_0x598c4b,_0x398c4a=_0xcbe662['toJSON']();_0x398c4a[_0x4dbcf6('0x268e')]=![],_0x37fc23[_0x4dbcf6('0x18bb')](_0x398c4a),_0xe27a80[_0x4dbcf6('0xcaf')]['project_id']=_0x4a5740(_0x37fc23,'id',_0x4dbcf6('0x10ad'));})[_0x598c4b('0x103c')](function(_0x1bb6ef){const _0x448256=_0x598c4b;_0x3a0641[_0x448256('0x15aa')]({'title':_0x1bb6ef['status']?_0x448256('0x137')+_0x1bb6ef[_0x448256('0x276f')]+_0x448256('0x160c')+_0x1bb6ef[_0x448256('0x2696')]:'GET_PROJECT','msg':_0x1bb6ef['data']?JSON[_0x448256('0x100b')](_0x1bb6ef[_0x448256('0x1e07')][_0x448256('0x67f')]):_0x1bb6ef[_0x448256('0x1b75')]()});});else _0xe27a80['values'][_0x598c4b('0x1ee8')]=_0x4a5740(_0x37fc23,'id',_0x598c4b('0x10ad'));}function _0x3128d(){const _0x33790b=_0xd39a69,_0x294f72=Number(_0x3c8d8a()[_0x33790b('0x18ab')](_0xe27a80[_0x33790b('0x19b3')],{'name':'context'})[_0x33790b('0xa7b')]),_0x5eafb7=_0x3c8d8a()[_0x33790b('0x1ec')](_0xd4d7b8,{'id':_0x294f72});if(!_0x5eafb7&&_0x294f72>0x0)return _0x1352a2['voiceContext'][_0x33790b('0x1d97')]({'id':_0x294f72,'fields':_0x33790b('0xd52')})[_0x33790b('0x1964')][_0x33790b('0x173b')](function(_0xacf708){const _0x3ef904=_0x33790b,_0x285b4a=_0xacf708[_0x3ef904('0xf1f')]();_0x285b4a[_0x3ef904('0x268e')]=![],_0xd4d7b8[_0x3ef904('0x18bb')](_0x285b4a),_0xe27a80['values'][_0x3ef904('0x2b9')]=_0x4a5740(_0xd4d7b8,'id','name');})[_0x33790b('0x103c')](function(_0xa32128){const _0x428e96=_0x33790b;_0x3a0641[_0x428e96('0x15aa')]({'title':_0xa32128[_0x428e96('0x276f')]?'API:'+_0xa32128['status']+'\x20-\x20'+_0xa32128['statusText']:_0x428e96('0x2348'),'msg':_0xa32128[_0x428e96('0x1e07')]?JSON[_0x428e96('0x100b')](_0xa32128[_0x428e96('0x1e07')][_0x428e96('0x67f')]):_0xa32128['toString']()});});else _0xe27a80[_0x33790b('0xcaf')]['context']=_0x4a5740(_0xd4d7b8,'id',_0x33790b('0x10ad'));}function _0x272864(){const _0x59bb7a=_0xd39a69,_0x1567ae=Number(_0x3c8d8a()[_0x59bb7a('0x18ab')](_0xe27a80['attributes'],{'name':'interval_id'})['value']),_0x5acb0d=_0x3c8d8a()[_0x59bb7a('0x1ec')](_0x459fe3,{'id':_0x1567ae});if(!_0x5acb0d&&_0x1567ae>0x0)return _0x1352a2['interval']['get']({'id':_0x1567ae,'fields':'id,name,IntervalId'})[_0x59bb7a('0x1964')][_0x59bb7a('0x173b')](function(_0x311fa9){const _0x489787=_0x59bb7a,_0xcf281=_0x311fa9[_0x489787('0xf1f')]();_0xcf281[_0x489787('0x268e')]=![],_0x459fe3[_0x489787('0x18bb')](_0xcf281),_0xe27a80[_0x489787('0xcaf')]['interval_id']=_0x4a5740(_0x459fe3,'id',_0x489787('0x10ad'),_0x489787('0x600'));})[_0x59bb7a('0x103c')](function(_0x54aa9d){const _0x326af=_0x59bb7a;_0x3a0641['error']({'title':_0x54aa9d[_0x326af('0x276f')]?_0x326af('0x137')+_0x54aa9d[_0x326af('0x276f')]+'\x20-\x20'+_0x54aa9d[_0x326af('0x2696')]:_0x326af('0x6b6'),'msg':_0x54aa9d['data']?JSON['stringify'](_0x54aa9d[_0x326af('0x1e07')][_0x326af('0x67f')]):_0x54aa9d[_0x326af('0x1b75')]()});});else _0xe27a80[_0x59bb7a('0xcaf')]['interval_id']=_0x4a5740(_0x459fe3,'id','name',_0x59bb7a('0x600'));}function _0x256658(){const _0x3e4d53=_0xd39a69,_0x510b54=Number(_0x3c8d8a()[_0x3e4d53('0x18ab')](_0xe27a80[_0x3e4d53('0x19b3')],{'name':'account_id'})['value']),_0x251a35=_0x3c8d8a()['some'](_0x2c8a1e,{'id':_0x510b54});if(!_0x251a35&&_0x510b54>0x0)return _0x1352a2[_0x3e4d53('0x77b')][_0x3e4d53('0x1d97')]({'id':_0x510b54,'fields':_0x3e4d53('0xd52')})[_0x3e4d53('0x1964')]['then'](function(_0x27692b){const _0x53346c=_0x3e4d53,_0x42e843=_0x27692b[_0x53346c('0xf1f')]();_0x42e843['canSelect']=![],_0x2c8a1e['push'](_0x42e843),_0xe27a80[_0x53346c('0xcaf')][_0x53346c('0x278c')]=_0x4a5740(_0x2c8a1e,'id','name');})[_0x3e4d53('0x103c')](function(_0x5b8175){const _0x55c6f8=_0x3e4d53;_0x3a0641[_0x55c6f8('0x15aa')]({'title':_0x5b8175[_0x55c6f8('0x276f')]?_0x55c6f8('0x137')+_0x5b8175[_0x55c6f8('0x276f')]+'\x20-\x20'+_0x5b8175[_0x55c6f8('0x2696')]:_0x55c6f8('0x242a'),'msg':_0x5b8175[_0x55c6f8('0x1e07')]?JSON[_0x55c6f8('0x100b')](_0x5b8175[_0x55c6f8('0x1e07')]['message']):_0x5b8175[_0x55c6f8('0x1b75')]()});});else _0xe27a80[_0x3e4d53('0xcaf')][_0x3e4d53('0x278c')]=_0x4a5740(_0x2c8a1e,'id',_0x3e4d53('0x10ad'));}function _0x2e3c9d(){const _0x1520a6=_0xd39a69,_0x4ebf03=Number(_0x3c8d8a()['find'](_0xe27a80[_0x1520a6('0x19b3')],{'name':_0x1520a6('0x158')})['value']),_0x446744=_0x3c8d8a()['some'](_0x7b9014,{'id':_0x4ebf03});if(!_0x446744&&_0x4ebf03>0x0)return _0x1352a2[_0x1520a6('0x1e37')][_0x1520a6('0x1d97')]({'id':_0x4ebf03,'fields':_0x1520a6('0xd52')})['$promise']['then'](function(_0x47d951){const _0x1eb5b3=_0x1520a6,_0x541a78=_0x47d951[_0x1eb5b3('0xf1f')]();_0x541a78['canSelect']=![],_0x7b9014[_0x1eb5b3('0x18bb')](_0x541a78),_0xe27a80[_0x1eb5b3('0xcaf')][_0x1eb5b3('0x158')]=_0x4a5740(_0x7b9014,'id','name');})[_0x1520a6('0x103c')](function(_0x139664){const _0x1eec06=_0x1520a6;_0x3a0641[_0x1eec06('0x15aa')]({'title':_0x139664[_0x1eec06('0x276f')]?'API:'+_0x139664['status']+_0x1eec06('0x160c')+_0x139664[_0x1eec06('0x2696')]:_0x1eec06('0x72b'),'msg':_0x139664['data']?JSON[_0x1eec06('0x100b')](_0x139664[_0x1eec06('0x1e07')][_0x1eec06('0x67f')]):_0x139664[_0x1eec06('0x1b75')]()});});else _0xe27a80[_0x1520a6('0xcaf')][_0x1520a6('0x158')]=_0x4a5740(_0x7b9014,'id',_0x1520a6('0x10ad'));}function _0x306917(){const _0x1ce4f7=_0xd39a69,_0x5054b1=Number(_0x3c8d8a()[_0x1ce4f7('0x18ab')](_0xe27a80[_0x1ce4f7('0x19b3')],{'name':_0x1ce4f7('0x1b70')})['value']),_0xc1dff3=_0x3c8d8a()[_0x1ce4f7('0x1ec')](_0x2eb049,{'id':_0x5054b1});if(!_0xc1dff3&&_0x5054b1>0x0)return _0x1352a2[_0x1ce4f7('0x1a98')][_0x1ce4f7('0x1d97')]({'id':_0x5054b1,'fields':_0x1ce4f7('0xd52')})['$promise'][_0x1ce4f7('0x173b')](function(_0x31b801){const _0x2ce0fc=_0x1ce4f7,_0x447a6f=_0x31b801[_0x2ce0fc('0xf1f')]();_0x447a6f['canSelect']=![],_0x2eb049['push'](_0x447a6f),_0xe27a80[_0x2ce0fc('0xcaf')][_0x2ce0fc('0x1b70')]=_0x4a5740(_0x2eb049,'id','name');})[_0x1ce4f7('0x103c')](function(_0x379851){const _0x4913ee=_0x1ce4f7;_0x3a0641[_0x4913ee('0x15aa')]({'title':_0x379851[_0x4913ee('0x276f')]?_0x4913ee('0x137')+_0x379851[_0x4913ee('0x276f')]+_0x4913ee('0x160c')+_0x379851['statusText']:_0x4913ee('0x1621'),'msg':_0x379851[_0x4913ee('0x1e07')]?JSON['stringify'](_0x379851['data']['message']):_0x379851[_0x4913ee('0x1b75')]()});});else _0xe27a80[_0x1ce4f7('0xcaf')][_0x1ce4f7('0x1b70')]=_0x4a5740(_0x2eb049,'id',_0x1ce4f7('0x10ad'));}function _0x57ea0e(){const _0x58dd90=_0xd39a69,_0x3953bc=Number(_0x3c8d8a()[_0x58dd90('0x18ab')](_0xe27a80[_0x58dd90('0x19b3')],{'name':_0x58dd90('0xf16')})[_0x58dd90('0xa7b')]),_0x2b097b=_0x3c8d8a()[_0x58dd90('0x1ec')](_0x439a8d,{'id':_0x3953bc});if(!_0x2b097b&&_0x3953bc>0x0)return _0x1352a2['pause']['get']({'id':_0x3953bc,'fields':_0x58dd90('0xd52')})['$promise'][_0x58dd90('0x173b')](function(_0x1e9240){const _0x29a91f=_0x58dd90,_0x314d33=_0x1e9240[_0x29a91f('0xf1f')]();_0x314d33['canSelect']=![],_0x439a8d[_0x29a91f('0x18bb')](_0x314d33),_0xe27a80[_0x29a91f('0xcaf')][_0x29a91f('0xf16')]=_0x4a5740(_0x439a8d,'id',_0x29a91f('0x10ad'));})[_0x58dd90('0x103c')](function(_0x16d10e){const _0x30d6c2=_0x58dd90;_0x3a0641[_0x30d6c2('0x15aa')]({'title':_0x16d10e[_0x30d6c2('0x276f')]?_0x30d6c2('0x137')+_0x16d10e[_0x30d6c2('0x276f')]+'\x20-\x20'+_0x16d10e['statusText']:'GET_PAUSE','msg':_0x16d10e[_0x30d6c2('0x1e07')]?JSON['stringify'](_0x16d10e['data'][_0x30d6c2('0x67f')]):_0x16d10e[_0x30d6c2('0x1b75')]()});});else _0xe27a80[_0x58dd90('0xcaf')][_0x58dd90('0xf16')]=_0x4a5740(_0x439a8d,'id',_0x58dd90('0x10ad'));}function _0x9502b(_0x17c1fb){const _0x499975=_0xd39a69;_0x17c1fb&&_0x1d433a(_0xe27a80[_0x499975('0x19b3')]),_0x324c14[_0x499975('0x1cf4')]();}}const _0x59171e=_0x26ecd4;function _0x31790c(){const _0x2ca141=_0x566993;return{'require':_0x2ca141('0x147e'),'link':function(_0x46f5b4,_0xc2a2fc,_0x6a185e,_0x30e20a){const _0x571955=_0x2ca141;_0x30e20a[_0x571955('0x2839')]['push'](function(_0x35248f){return''+_0x35248f;}),_0x30e20a[_0x571955('0x22a5')]['push'](function(_0x29eed6){return parseFloat(_0x29eed6);});}};}const _0x3b9b4a=_0x31790c;function _0x4af329(){const _0xa864bc=_0x566993;return[{'value':'da','option':_0xa864bc('0xac')},{'value':'en','option':_0xa864bc('0x22af')},{'value':'de','option':'German'},{'value':'it','option':'Italian'},{'value':'es','option':_0xa864bc('0x30b')},{'value':'fr','option':'French'},{'value':'id','option':_0xa864bc('0x10e2')},{'value':'ja','option':_0xa864bc('0x191f')},{'value':'ko','option':_0xa864bc('0xd6d')},{'value':'nl','option':_0xa864bc('0x1734')},{'value':'no','option':_0xa864bc('0x1930')},{'value':'pt','option':_0xa864bc('0x128c')},{'value':_0xa864bc('0x145f'),'option':_0xa864bc('0x1827')},{'value':'ru','option':_0xa864bc('0x1992')},{'value':'sv','option':'Swedish'},{'value':'th','option':_0xa864bc('0x1320')},{'value':'uk','option':_0xa864bc('0x302')},{'value':_0xa864bc('0x4bf'),'option':_0xa864bc('0x92d')},{'value':_0xa864bc('0x1220'),'option':_0xa864bc('0xc9')},{'value':_0xa864bc('0xfa2'),'option':_0xa864bc('0x1b43')}];}function _0xa02791(){const _0x29c5d4=_0x566993;return[{'value':'ar-XA','option':_0x29c5d4('0x2678')},{'value':_0x29c5d4('0x64'),'option':'Czech\x20(Czech\x20Republic)'},{'value':_0x29c5d4('0x1add'),'option':'Danish\x20(Denmark)'},{'value':_0x29c5d4('0x1102'),'option':_0x29c5d4('0x173a')},{'value':_0x29c5d4('0xf06'),'option':'Greek\x20(Greece)'},{'value':_0x29c5d4('0x176c'),'option':'English\x20(Australian)'},{'value':_0x29c5d4('0x14d1'),'option':'English\x20(India)'},{'value':_0x29c5d4('0x170'),'option':_0x29c5d4('0x842')},{'value':'en-US','option':_0x29c5d4('0x683')},{'value':_0x29c5d4('0x2277'),'option':'Finnish\x20(Finland)'},{'value':_0x29c5d4('0x15c8'),'option':_0x29c5d4('0x754')},{'value':'fr-CA','option':_0x29c5d4('0x1f87')},{'value':_0x29c5d4('0x27d4'),'option':_0x29c5d4('0x336')},{'value':_0x29c5d4('0x93c'),'option':_0x29c5d4('0x2463')},{'value':_0x29c5d4('0x13dd'),'option':_0x29c5d4('0x2508')},{'value':_0x29c5d4('0x2691'),'option':'Indonesian\x20(Indonesia)'},{'value':_0x29c5d4('0xa6'),'option':_0x29c5d4('0x26c')},{'value':'ja-JP','option':_0x29c5d4('0x615')},{'value':_0x29c5d4('0x1db5'),'option':_0x29c5d4('0xd6d')},{'value':_0x29c5d4('0x20a'),'option':_0x29c5d4('0xa9c')},{'value':_0x29c5d4('0x11f4'),'option':'Norwegian\x20(Norway)'},{'value':'pl-PL','option':_0x29c5d4('0x7b6')},{'value':_0x29c5d4('0x1c75'),'option':'Portuguese\x20(Brazil)'},{'value':_0x29c5d4('0x189'),'option':_0x29c5d4('0x2245')},{'value':'ru-RU','option':_0x29c5d4('0xed4')},{'value':_0x29c5d4('0x1a2e'),'option':_0x29c5d4('0x1d15')},{'value':'es-ES','option':_0x29c5d4('0x26b2')},{'value':_0x29c5d4('0x1a61'),'option':_0x29c5d4('0x244a')},{'value':_0x29c5d4('0x1679'),'option':_0x29c5d4('0xa94')},{'value':_0x29c5d4('0xcce'),'option':_0x29c5d4('0x20f4')},{'value':_0x29c5d4('0x6'),'option':_0x29c5d4('0x1390')}];}function _0x5a006b(){const _0x20c26b=_0x566993;return[{'value':'af','option':'Afrikaans'},{'value':'sq','option':_0x20c26b('0x21e6')},{'value':'am','option':'Amharic'},{'value':'ar','option':_0x20c26b('0x2678')},{'value':'hy','option':'Armenian'},{'value':'az','option':_0x20c26b('0x1c47')},{'value':'eu','option':'Basque'},{'value':'be','option':'Belarusian'},{'value':'bn','option':_0x20c26b('0x14d9')},{'value':'bh','option':_0x20c26b('0x171')},{'value':'bs','option':'Bosnian'},{'value':'br','option':_0x20c26b('0x157')},{'value':'bg','option':_0x20c26b('0x881')},{'value':'km','option':_0x20c26b('0xe89')},{'value':'ca','option':_0x20c26b('0x1c21')},{'value':_0x20c26b('0x4bf'),'option':'Chinese\x20(Simplified)'},{'value':_0x20c26b('0xfa2'),'option':'Chinese\x20(Traditional)'},{'value':'co','option':_0x20c26b('0x7db')},{'value':'hr','option':_0x20c26b('0x28b')},{'value':'cs','option':_0x20c26b('0x1ae5')},{'value':'da','option':_0x20c26b('0xac')},{'value':'nl','option':'Dutch'},{'value':'en','option':'English'},{'value':'eo','option':_0x20c26b('0x239c')},{'value':'et','option':'Estonian'},{'value':'fo','option':_0x20c26b('0x1017')},{'value':'tl','option':_0x20c26b('0x8c2')},{'value':'fi','option':'Finnish'},{'value':'fr','option':_0x20c26b('0xcdd')},{'value':'fy','option':_0x20c26b('0x2619')},{'value':'gl','option':_0x20c26b('0x229b')},{'value':'ka','option':_0x20c26b('0x11e0')},{'value':'de','option':_0x20c26b('0x12d4')},{'value':'el','option':_0x20c26b('0x217b')},{'value':'gn','option':_0x20c26b('0x680')},{'value':'gu','option':'Gujarati'},{'value':_0x20c26b('0x25a2'),'option':'Hacker'},{'value':'ha','option':_0x20c26b('0xfab')},{'value':'iw','option':_0x20c26b('0x199f')},{'value':'hi','option':_0x20c26b('0x3fe')},{'value':'hu','option':_0x20c26b('0x3d1')},{'value':'is','option':_0x20c26b('0x26d0')},{'value':'id','option':_0x20c26b('0x10e2')},{'value':'ia','option':_0x20c26b('0x11cb')},{'value':'ga','option':'Irish'},{'value':'it','option':_0x20c26b('0x24e4')},{'value':'jw','option':_0x20c26b('0x1d0c')},{'value':'ja','option':'Japanese'},{'value':'kn','option':'Kannada'},{'value':'kk','option':_0x20c26b('0x4d9')},{'value':'rw','option':_0x20c26b('0x3c3')},{'value':'rn','option':_0x20c26b('0x20eb')},{'value':'xx-klingon','option':_0x20c26b('0xca2')},{'value':'ku','option':_0x20c26b('0x1a9f')},{'value':'ko','option':'Korean'},{'value':'ky','option':'Kyrgyz'},{'value':'lo','option':_0x20c26b('0xbed')},{'value':'la','option':'Latin'},{'value':'lv','option':_0x20c26b('0x1c73')},{'value':'ln','option':_0x20c26b('0x3da')},{'value':'lt','option':'Lithuanian'},{'value':'mk','option':_0x20c26b('0x162f')},{'value':'mg','option':'Malagasy'},{'value':'ml','option':_0x20c26b('0x1da0')},{'value':'mt','option':_0x20c26b('0x2191')},{'value':'mi','option':_0x20c26b('0x20d4')},{'value':'mr','option':_0x20c26b('0x26ea')},{'value':'mo','option':_0x20c26b('0x3d8')},{'value':'mn','option':_0x20c26b('0x234b')},{'value':'sr-ME','option':_0x20c26b('0x432')},{'value':'ne','option':_0x20c26b('0xc96')},{'value':'no','option':_0x20c26b('0x1930')},{'value':'nn','option':_0x20c26b('0x14ff')},{'value':'oc','option':'Occitan'},{'value':'or','option':_0x20c26b('0x2184')},{'value':'om','option':'Oromo'},{'value':'ps','option':_0x20c26b('0x1dbf')},{'value':'fa','option':_0x20c26b('0x2120')},{'value':_0x20c26b('0x8c7'),'option':_0x20c26b('0x26a2')},{'value':'pl','option':_0x20c26b('0x1bd0')},{'value':_0x20c26b('0x1c75'),'option':'Portuguese\x20(Brazil)'},{'value':_0x20c26b('0x189'),'option':_0x20c26b('0x2245')},{'value':'pa','option':_0x20c26b('0x1321')},{'value':'qu','option':_0x20c26b('0xf27')},{'value':'ro','option':_0x20c26b('0x1963')},{'value':'rm','option':'Romansh'},{'value':'ru','option':_0x20c26b('0x1992')},{'value':'gd','option':_0x20c26b('0x2681')},{'value':'sr','option':_0x20c26b('0x171a')},{'value':'sh','option':_0x20c26b('0x243e')},{'value':'st','option':_0x20c26b('0x13a5')},{'value':'sn','option':'Shona'},{'value':'sd','option':_0x20c26b('0x1812')},{'value':'si','option':'Sinhalese'},{'value':'sk','option':_0x20c26b('0x435')},{'value':'sl','option':'Slovenian'},{'value':'so','option':'Somali'},{'value':'es','option':_0x20c26b('0x30b')},{'value':'su','option':_0x20c26b('0x13fb')},{'value':'sw','option':'Swahili'},{'value':'sv','option':_0x20c26b('0x25a9')},{'value':'tg','option':'Tajik'},{'value':'ta','option':'Tamil'},{'value':'tt','option':'Tatar'},{'value':'te','option':_0x20c26b('0xc6b')},{'value':'th','option':_0x20c26b('0x1320')},{'value':'ti','option':'Tigrinya'},{'value':'to','option':_0x20c26b('0x1bc6')},{'value':'tr','option':_0x20c26b('0xc52')},{'value':'tk','option':'Turkmen'},{'value':'tw','option':_0x20c26b('0x16b2')},{'value':'ug','option':_0x20c26b('0x187c')},{'value':'uk','option':'Ukrainian'},{'value':'ur','option':'Urdu'},{'value':'uz','option':_0x20c26b('0x2665')},{'value':'vi','option':'Vietnamese'},{'value':'cy','option':_0x20c26b('0x8cc')},{'value':'xh','option':_0x20c26b('0xa21')},{'value':'yi','option':_0x20c26b('0x1201')},{'value':'yo','option':_0x20c26b('0x1e54')},{'value':'zu','option':_0x20c26b('0x1334')}];}function _0x147689(){const _0x42e429=_0x566993;return[{'value':_0x42e429('0x80f'),'option':'Afrikaans\x20(South\x20Africa)'},{'value':_0x42e429('0x10f5'),'option':'Amharic\x20(Ethiopia)'},{'value':_0x42e429('0x11a5'),'option':_0x42e429('0xaa6')},{'value':_0x42e429('0x268b'),'option':_0x42e429('0xf97')},{'value':'id-ID','option':_0x42e429('0x76f')},{'value':_0x42e429('0x2650'),'option':_0x42e429('0x14f5')},{'value':_0x42e429('0x778'),'option':_0x42e429('0xec5')},{'value':_0x42e429('0x7f6'),'option':_0x42e429('0xdef')},{'value':'ca-ES','option':_0x42e429('0xe5d')},{'value':_0x42e429('0x64'),'option':_0x42e429('0x26bf')},{'value':_0x42e429('0x1add'),'option':_0x42e429('0x22d6')},{'value':_0x42e429('0x1102'),'option':_0x42e429('0x12df')},{'value':_0x42e429('0x176c'),'option':_0x42e429('0x1bd1')},{'value':'en-CA','option':'English\x20(Canada)'},{'value':_0x42e429('0x26ad'),'option':_0x42e429('0x1fb0')},{'value':'en-GB','option':_0x42e429('0x809')},{'value':_0x42e429('0x14d1'),'option':_0x42e429('0x202a')},{'value':_0x42e429('0x1350'),'option':_0x42e429('0x199b')},{'value':_0x42e429('0x1793'),'option':_0x42e429('0x136a')},{'value':'en-NZ','option':'English\x20(New\x20Zealand)'},{'value':_0x42e429('0x2dd'),'option':'English\x20(Nigeria)'},{'value':_0x42e429('0x13a3'),'option':'English\x20(Philippines)'},{'value':'en-ZA','option':_0x42e429('0x250c')},{'value':_0x42e429('0x7a1'),'option':_0x42e429('0xcde')},{'value':'en-US','option':_0x42e429('0x10f1')},{'value':'es-AR','option':_0x42e429('0x19be')},{'value':_0x42e429('0x1d7f'),'option':_0x42e429('0x1786')},{'value':'es-CL','option':_0x42e429('0x23da')},{'value':'es-CO','option':'Spanish\x20(Colombia)'},{'value':_0x42e429('0x1ca9'),'option':_0x42e429('0x7bd')},{'value':_0x42e429('0x191c'),'option':_0x42e429('0xba6')},{'value':'es-SV','option':_0x42e429('0xba1')},{'value':_0x42e429('0x14c6'),'option':'Spanish\x20(Spain)'},{'value':_0x42e429('0x949'),'option':_0x42e429('0x2c1')},{'value':_0x42e429('0x457'),'option':_0x42e429('0x1ab3')},{'value':_0x42e429('0x140a'),'option':_0x42e429('0x3ac')},{'value':_0x42e429('0xb0b'),'option':_0x42e429('0x1026')},{'value':_0x42e429('0x2ee'),'option':_0x42e429('0xd8a')},{'value':_0x42e429('0x1f6a'),'option':_0x42e429('0x291')},{'value':_0x42e429('0x1f79'),'option':'Spanish\x20(Paraguay)'},{'value':_0x42e429('0x1c91'),'option':'Spanish\x20(Peru)'},{'value':'es-PR','option':_0x42e429('0x10ca')},{'value':_0x42e429('0x18a0'),'option':_0x42e429('0x26ce')},{'value':'es-UY','option':_0x42e429('0x10cf')},{'value':'es-VE','option':_0x42e429('0x1b07')},{'value':'eu-ES','option':_0x42e429('0xdd2')},{'value':_0x42e429('0x15c8'),'option':_0x42e429('0x754')},{'value':'fr-CA','option':_0x42e429('0x1f87')},{'value':_0x42e429('0x27d4'),'option':'French\x20(France)'},{'value':_0x42e429('0x1e16'),'option':_0x42e429('0x67b')},{'value':_0x42e429('0x11a7'),'option':'Georgian\x20(Georgia)'},{'value':_0x42e429('0x51e'),'option':_0x42e429('0x1157')},{'value':_0x42e429('0x9e5'),'option':'Croatian\x20(Croatia)'},{'value':'zu-ZA','option':_0x42e429('0x11f0')},{'value':_0x42e429('0x9b3'),'option':'Icelandic\x20(Iceland)'},{'value':_0x42e429('0xa6'),'option':'Italian\x20(Italy)'},{'value':'jv-ID','option':_0x42e429('0x23df')},{'value':'kn-IN','option':_0x42e429('0x102')},{'value':'km-KH','option':'Khmer\x20(Cambodia)'},{'value':_0x42e429('0x19ec'),'option':_0x42e429('0x1d8')},{'value':_0x42e429('0x21e7'),'option':_0x42e429('0x959')},{'value':'lt-LT','option':_0x42e429('0x275b')},{'value':_0x42e429('0x13dd'),'option':_0x42e429('0x2508')},{'value':_0x42e429('0x20c5'),'option':_0x42e429('0x248e')},{'value':_0x42e429('0x1be'),'option':'Marathi\x20(India)'},{'value':'nl-NL','option':_0x42e429('0x173a')},{'value':_0x42e429('0x1018'),'option':'Nepali\x20(Nepal)'},{'value':_0x42e429('0x11f4'),'option':'Norwegian\x20Bokmal\x20(Norway)'},{'value':_0x42e429('0x21b9'),'option':'Polish\x20(Poland)'},{'value':_0x42e429('0x1c75'),'option':_0x42e429('0x1490')},{'value':_0x42e429('0x189'),'option':_0x42e429('0x2245')},{'value':_0x42e429('0x199d'),'option':_0x42e429('0x1dd9')},{'value':'si-LK','option':'Sinhala\x20(Srilanka)'},{'value':_0x42e429('0x1a2e'),'option':_0x42e429('0x1d15')},{'value':_0x42e429('0x256f'),'option':_0x42e429('0x1770')},{'value':_0x42e429('0x1dd3'),'option':'Sundanese\x20(Indonesia)'},{'value':_0x42e429('0x551'),'option':_0x42e429('0x11c2')},{'value':_0x42e429('0xd20'),'option':_0x42e429('0x231f')},{'value':'fi-FI','option':_0x42e429('0x1d')},{'value':'sv-SE','option':_0x42e429('0x244a')},{'value':_0x42e429('0xc6f'),'option':'Tamil\x20(India)'},{'value':'ta-SG','option':_0x42e429('0x85e')},{'value':_0x42e429('0x27c1'),'option':_0x42e429('0x125c')},{'value':'ta-MY','option':_0x42e429('0x27ae')},{'value':'te-IN','option':_0x42e429('0x15c2')},{'value':_0x42e429('0x6'),'option':'Vietnamese\x20(Vietnam)'},{'value':_0x42e429('0x1679'),'option':_0x42e429('0xa94')},{'value':_0x42e429('0xd5'),'option':_0x42e429('0x12ae')},{'value':_0x42e429('0x395'),'option':_0x42e429('0xeee')},{'value':_0x42e429('0xf06'),'option':_0x42e429('0x2565')},{'value':_0x42e429('0x225d'),'option':'Bulgarian\x20(Bulgaria)'},{'value':_0x42e429('0x26ba'),'option':_0x42e429('0xed4')},{'value':'sr-RS','option':_0x42e429('0x2827')},{'value':_0x42e429('0xcce'),'option':'Ukrainian\x20(Ukraine)'},{'value':_0x42e429('0x4d2'),'option':_0x42e429('0x11b4')},{'value':_0x42e429('0x1103'),'option':_0x42e429('0x1236')},{'value':_0x42e429('0x1f6'),'option':_0x42e429('0x1fc6')},{'value':_0x42e429('0x191e'),'option':_0x42e429('0x22ed')},{'value':_0x42e429('0x1c78'),'option':_0x42e429('0x2201')},{'value':_0x42e429('0xf4c'),'option':_0x42e429('0xd84')},{'value':_0x42e429('0x1a38'),'option':_0x42e429('0x303')},{'value':'ar-IQ','option':_0x42e429('0xfa')},{'value':_0x42e429('0xf0c'),'option':_0x42e429('0x1cb3')},{'value':_0x42e429('0x250d'),'option':'Arabic\x20(Morocco)'},{'value':_0x42e429('0xe08'),'option':'Arabic\x20(Tunisia)'},{'value':_0x42e429('0x27ec'),'option':_0x42e429('0x26b0')},{'value':_0x42e429('0x1af2'),'option':_0x42e429('0x1d2d')},{'value':'ar-QA','option':_0x42e429('0x2379')},{'value':_0x42e429('0x280'),'option':_0x42e429('0x3d2')},{'value':_0x42e429('0x2851'),'option':'Arabic\x20(Egypt)'},{'value':_0x42e429('0x1fce'),'option':_0x42e429('0x1024')},{'value':_0x42e429('0x93c'),'option':_0x42e429('0x2463')},{'value':'th-TH','option':_0x42e429('0x12cc')},{'value':_0x42e429('0x1db5'),'option':_0x42e429('0xd6d')},{'value':'cmn-Hant-TW','option':_0x42e429('0x1c19')},{'value':'yue-Hant-HK','option':_0x42e429('0x2414')},{'value':_0x42e429('0x215b'),'option':'Japanese\x20(Japan)'},{'value':_0x42e429('0x772'),'option':_0x42e429('0x338')},{'value':'cmn-Hans-CN','option':_0x42e429('0x1aaf')}];}function _0x4f5eb3(){const _0x34af16=_0x566993;return[{'value':_0x34af16('0x2767'),'option':_0x34af16('0x267a')},{'value':_0x34af16('0x1c97'),'option':_0x34af16('0x1d34')},{'value':'ukenglishfemale','option':_0x34af16('0x12ce')},{'value':_0x34af16('0x2682'),'option':_0x34af16('0x5f')},{'value':'auenglishfemale','option':_0x34af16('0x2210')},{'value':'usspanishfemale','option':_0x34af16('0x252a')},{'value':'usspanishmale','option':_0x34af16('0x2323')},{'value':_0x34af16('0x19a2'),'option':_0x34af16('0x1e41')},{'value':_0x34af16('0x129e'),'option':'Chinese\x20Male'},{'value':'hkchinesefemale','option':_0x34af16('0x211b')},{'value':'twchinesefemale','option':'Taiwan\x20Chinese\x20Female'},{'value':_0x34af16('0x111'),'option':_0x34af16('0xa15')},{'value':'jpjapanesemale','option':'Japanese\x20Male'},{'value':_0x34af16('0x25aa'),'option':'Korean\x20Female'},{'value':_0x34af16('0x407'),'option':_0x34af16('0x14b5')},{'value':_0x34af16('0x1ebb'),'option':_0x34af16('0x1a4e')},{'value':_0x34af16('0x656'),'option':'Hungarian\x20Female'},{'value':_0x34af16('0x24d'),'option':_0x34af16('0xf66')},{'value':'eurportuguesefemale','option':_0x34af16('0xa16')},{'value':_0x34af16('0x1c62'),'option':_0x34af16('0x27aa')},{'value':_0x34af16('0x12a'),'option':_0x34af16('0xe33')},{'value':_0x34af16('0xf81'),'option':_0x34af16('0x224')},{'value':'eurcatalanfemale','option':_0x34af16('0x6c9')},{'value':_0x34af16('0xe8f'),'option':'European\x20Czech\x20Female'},{'value':_0x34af16('0x2752'),'option':_0x34af16('0xce2')},{'value':_0x34af16('0x212a'),'option':_0x34af16('0x1198')},{'value':'eurfrenchfemale','option':_0x34af16('0x984')},{'value':'eurfrenchmale','option':_0x34af16('0x1a35')},{'value':_0x34af16('0x328'),'option':_0x34af16('0x246b')},{'value':'eurdutchfemale','option':_0x34af16('0x1c28')},{'value':_0x34af16('0x1023'),'option':'European\x20Polish\x20Female'},{'value':'euritalianfemale','option':_0x34af16('0x27ef')},{'value':_0x34af16('0x961'),'option':_0x34af16('0x17e2')},{'value':_0x34af16('0x2033'),'option':_0x34af16('0x5f0')},{'value':'eurturkishmale','option':'European\x20Turkish\x20Male'},{'value':'eurgermanfemale','option':_0x34af16('0x1cbe')},{'value':_0x34af16('0xd28'),'option':_0x34af16('0x21')},{'value':'rurussianfemale','option':_0x34af16('0x2079')},{'value':_0x34af16('0x1ac7'),'option':_0x34af16('0x3c8')},{'value':_0x34af16('0x22cc'),'option':'Swedish\x20Female'},{'value':_0x34af16('0x628'),'option':_0x34af16('0x1d38')},{'value':_0x34af16('0x1e3d'),'option':_0x34af16('0xcf3')}];}function _0x5b2f7f(){const _0x42976d=_0x566993;return[{'value':_0x42976d('0x11df'),'option':_0x42976d('0x683')},{'value':'en-CA','option':'English\x20(Canada)'},{'value':_0x42976d('0x170'),'option':'English\x20(UK)'},{'value':'en-AU','option':_0x42976d('0x1bd1')},{'value':_0x42976d('0x14c6'),'option':_0x42976d('0x26b2')},{'value':'es-MX','option':_0x42976d('0x1026')},{'value':_0x42976d('0xa6'),'option':_0x42976d('0x23ba')},{'value':_0x42976d('0x27d4'),'option':_0x42976d('0x12df')},{'value':_0x42976d('0x1f27'),'option':_0x42976d('0x1f87')},{'value':'pl-PL','option':_0x42976d('0x7b6')},{'value':_0x42976d('0x189'),'option':_0x42976d('0x2245')},{'value':_0x42976d('0x1830'),'option':_0x42976d('0x1f37')},{'value':_0x42976d('0xfa2'),'option':'Chinese\x20(Taiwan)'},{'value':'da-DK','option':_0x42976d('0x22d6')},{'value':'ja-JP','option':_0x42976d('0x615')},{'value':'ko-KR','option':_0x42976d('0x20e')},{'value':_0x42976d('0x4bc'),'option':_0x42976d('0x173a')},{'value':_0x42976d('0x11f4'),'option':'Norwegian\x20(Norway)'},{'value':'pt-BR','option':_0x42976d('0x1490')},{'value':_0x42976d('0x26ba'),'option':'Russian\x20(Russia)'},{'value':_0x42976d('0x1a61'),'option':'Swedish\x20(Sweden)'},{'value':_0x42976d('0x4bf'),'option':_0x42976d('0x25b9')},{'value':_0x42976d('0x1220'),'option':_0x42976d('0xc9')}];}function _0x40b0f1(){const _0x32a108=_0x566993;return[{'value':'0','option':_0x32a108('0x11cf')},{'value':'date','option':'Date'},{'value':_0x32a108('0x270e'),'option':'US\x20Money'},{'value':_0x32a108('0x1e6c'),'option':_0x32a108('0x1e95')},{'value':'numbersto99','option':_0x32a108('0x1c85')},{'value':_0x32a108('0x351'),'option':_0x32a108('0x1c60')},{'value':_0x32a108('0x953'),'option':'Time'},{'value':_0x32a108('0x3cd'),'option':'Phone\x20number'},{'value':_0x32a108('0x1745'),'option':'Streets'},{'value':'citystate','option':_0x32a108('0x22fe')}];}function _0x1e69b6(){const _0x2dc3e5=_0x566993;return[{'value':_0x2dc3e5('0x1f05'),'option':_0x2dc3e5('0x1cb4')},{'value':_0x2dc3e5('0x2f3'),'option':_0x2dc3e5('0x26e')},{'value':_0x2dc3e5('0xa03'),'option':'Brian\x20(English,\x20British,\x20Male)'},{'value':_0x2dc3e5('0x580'),'option':'Carla\x20(Italian,\x20Female)'},{'value':_0x2dc3e5('0x62'),'option':_0x2dc3e5('0x2469')},{'value':_0x2dc3e5('0x1b57'),'option':'Celine\x20(French,\x20Female)'},{'value':_0x2dc3e5('0x1538'),'option':'Chantal\x20(French,\x20Canadian,\x20Female)'},{'value':'Conchita','option':'Conchita\x20(Spanish,\x20Castilian,\x20Female)'},{'value':_0x2dc3e5('0x1d09'),'option':_0x2dc3e5('0x24c8')},{'value':_0x2dc3e5('0x104e'),'option':_0x2dc3e5('0x23ec')},{'value':_0x2dc3e5('0x1e89'),'option':_0x2dc3e5('0x1c4e')},{'value':_0x2dc3e5('0x6e4'),'option':_0x2dc3e5('0x7af')},{'value':_0x2dc3e5('0xb2'),'option':_0x2dc3e5('0x1643')},{'value':_0x2dc3e5('0x1ab8'),'option':_0x2dc3e5('0x225f')},{'value':_0x2dc3e5('0x538'),'option':'Geraint\x20(English,\x20Welsh,\x20Male)'},{'value':_0x2dc3e5('0x1530'),'option':_0x2dc3e5('0x1dfd')},{'value':_0x2dc3e5('0x1445'),'option':_0x2dc3e5('0x1e7e')},{'value':_0x2dc3e5('0x155'),'option':_0x2dc3e5('0x71b')},{'value':_0x2dc3e5('0x8e6'),'option':_0x2dc3e5('0x19de')},{'value':_0x2dc3e5('0x902'),'option':_0x2dc3e5('0x8b2')},{'value':_0x2dc3e5('0x189e'),'option':_0x2dc3e5('0x3b6')},{'value':_0x2dc3e5('0x24db'),'option':'Jan\x20(Polish,\x20Male)'},{'value':'Joanna','option':_0x2dc3e5('0x1293')},{'value':_0x2dc3e5('0x1d17'),'option':_0x2dc3e5('0x183')},{'value':'Justin','option':_0x2dc3e5('0x22be')},{'value':_0x2dc3e5('0x268f'),'option':_0x2dc3e5('0x27ab')},{'value':_0x2dc3e5('0x233'),'option':_0x2dc3e5('0x13ca')},{'value':_0x2dc3e5('0xa8c'),'option':_0x2dc3e5('0xe1b')},{'value':_0x2dc3e5('0xa29'),'option':'Liv\x20(Norwegian,\x20Female)'},{'value':'Lotte','option':'Lotte\x20(Dutch,\x20Female)'},{'value':_0x2dc3e5('0x130e'),'option':_0x2dc3e5('0x12ca')},{'value':_0x2dc3e5('0xf60'),'option':'Maja\x20(Polish,\x20Female)'},{'value':_0x2dc3e5('0x357'),'option':_0x2dc3e5('0x1b72')},{'value':_0x2dc3e5('0x1d6'),'option':_0x2dc3e5('0x320')},{'value':_0x2dc3e5('0x32f'),'option':_0x2dc3e5('0x1c01')},{'value':_0x2dc3e5('0x16ab'),'option':_0x2dc3e5('0x621')},{'value':_0x2dc3e5('0x255e'),'option':_0x2dc3e5('0x23c2')},{'value':_0x2dc3e5('0x5bd'),'option':_0x2dc3e5('0xe70')},{'value':_0x2dc3e5('0x1402'),'option':_0x2dc3e5('0x6cb')},{'value':_0x2dc3e5('0x925'),'option':'Penelope\x20(Spanish,\x20US,\x20Female)'},{'value':_0x2dc3e5('0x1603'),'option':'Raveena\x20(English,\x20Indian,\x20Female)'},{'value':'Ricardo','option':_0x2dc3e5('0xdca')},{'value':_0x2dc3e5('0x1a42'),'option':_0x2dc3e5('0x20f9')},{'value':_0x2dc3e5('0x17a'),'option':_0x2dc3e5('0x1374')},{'value':'Salli','option':_0x2dc3e5('0x563')},{'value':_0x2dc3e5('0x1783'),'option':_0x2dc3e5('0x22e9')},{'value':_0x2dc3e5('0xb2e'),'option':'Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)'}];}function _0x93362e(){const _0xfa4f=_0x566993;return[{'value':_0xfa4f('0x1de6'),'option':_0xfa4f('0x225b')},{'value':_0xfa4f('0x1013'),'option':'US\x20East\x20(Ohio)'},{'value':_0xfa4f('0x2746'),'option':_0xfa4f('0x27f6')},{'value':_0xfa4f('0x240c'),'option':'US\x20West\x20(Oregon)'},{'value':_0xfa4f('0x192'),'option':_0xfa4f('0x4a1')},{'value':'eu-west-1','option':'EU\x20(Ireland)'},{'value':'eu-central-1','option':_0xfa4f('0x13')},{'value':_0xfa4f('0x12d0'),'option':_0xfa4f('0xcf8')},{'value':_0xfa4f('0x12fb'),'option':_0xfa4f('0x227d')},{'value':'ap-southeast-1','option':_0xfa4f('0x22e7')},{'value':_0xfa4f('0x1260'),'option':_0xfa4f('0x146a')},{'value':_0xfa4f('0x1674'),'option':_0xfa4f('0x272f')},{'value':_0xfa4f('0x15b'),'option':_0xfa4f('0x1509')},{'value':'ap-south-1','option':_0xfa4f('0x275d')},{'value':_0xfa4f('0x60a'),'option':_0xfa4f('0x27df')}];}function _0x19d471(){const _0x33df82=_0x566993;return[{'value':_0x33df82('0x1de6'),'option':_0x33df82('0x225b')},{'value':'us-west-2','option':_0x33df82('0x2429')},{'value':_0x33df82('0x57c'),'option':_0x33df82('0x1d48')},{'value':_0x33df82('0x1260'),'option':_0x33df82('0x146a')}];}_0x206b40[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1558'),'currentXML',_0x566993('0x22ea')];function _0x206b40(_0x1c5736,_0x380710,_0x180219,_0x4d3a19){const _0x24575b=_0x566993,_0x3a79b8=this;_0x3a79b8[_0x24575b('0x220b')]={'preproduction':_0x180219};function _0xe0eb3e(_0x8be633){const _0x2c9be0=_0x24575b;_0x8be633?(_0x4d3a19(_0x3a79b8['project'][_0x2c9be0('0x24b9')]),_0x1c5736[_0x2c9be0('0x1cf4')](_0x3a79b8[_0x2c9be0('0x220b')][_0x2c9be0('0x24b9')])):_0x1c5736[_0x2c9be0('0x1cf4')]();}_0x3a79b8['closeDialog']=_0xe0eb3e;}const _0x247f28=_0x206b40;_0x5b208e[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x22ea')];function _0x5b208e(_0x23e12e,_0x58df14){const _0x17d5cb=_0x566993,_0x3160b2=this,_0x585661=0x5,_0x470cb8=_0x585661*0x400*0x400;_0x3160b2[_0x17d5cb('0x1d4a')]=[],_0x3160b2[_0x17d5cb('0x8f9')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x470cb8,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3160b2['ngFlow']={'flow':{}},_0x3160b2[_0x17d5cb('0x134a')]=![],_0x3160b2['closeDialog']=_0x58fc12,_0x3160b2[_0x17d5cb('0x23a9')]=_0x48b3df;function _0x48b3df(_0x260448){const _0x30f5bb=_0x17d5cb;_0x3160b2[_0x30f5bb('0x1d4a')]=[];const _0x4fe495=['xml'];!_0x3c8d8a()['includes'](_0x4fe495,_0x260448[_0x30f5bb('0x131a')]())&&_0x3160b2['errors'][_0x30f5bb('0x18bb')]({'message':_0x30f5bb('0x112c')+_0x260448[_0x30f5bb('0x131a')]()+_0x30f5bb('0x6f8')});_0x260448['size']>_0x470cb8&&_0x3160b2[_0x30f5bb('0x1d4a')][_0x30f5bb('0x18bb')]({'message':_0x30f5bb('0x18ee')+_0x585661+'MB'});if(!_0x3160b2[_0x30f5bb('0x1d4a')][_0x30f5bb('0x543')]){const _0x415392=new FileReader();_0x415392[_0x30f5bb('0x147d')]=function(_0x307e8c){const _0x42c1f8=_0x30f5bb;_0x58fc12(_0x307e8c[_0x42c1f8('0x235')][_0x42c1f8('0xd09')]);},_0x415392['readAsText'](_0x260448['file']);}}function _0x58fc12(_0x2caad0){const _0x508e42=_0x17d5cb;_0x2caad0?(_0x58df14(_0x2caad0),_0x23e12e['hide'](_0x2caad0)):_0x23e12e[_0x508e42('0x1cf4')]();}}const _0x3d131d=_0x5b208e;_0x477960['$inject']=[_0x566993('0x1fe5'),'toasty','project',_0x566993('0xbd4')];function _0x477960(_0x3de482,_0x802ad3,_0xae69f8,_0x45293d){const _0x3dc9c2=_0x566993,_0x40b22a=this;_0x40b22a['project']=_0x3c8d8a()[_0x3dc9c2('0x979')](_0xae69f8);function _0x4581cc(){const _0x45f416=_0x3dc9c2;_0x40b22a[_0x45f416('0x1d4a')]=[],_0x45293d['squareProject'][_0x45f416('0x1842')]({'id':_0x40b22a[_0x45f416('0x220b')]['id']},{'notes':_0x40b22a[_0x45f416('0x220b')][_0x45f416('0x780')],'description':_0x40b22a[_0x45f416('0x220b')]['description']})[_0x45f416('0x1964')][_0x45f416('0x173b')](function(_0x53b412){const _0x24691d=_0x45f416;_0x802ad3[_0x24691d('0xdfe')]({'title':_0x24691d('0x699'),'msg':_0x40b22a['project']['name']?_0x40b22a[_0x24691d('0x220b')][_0x24691d('0x10ad')]+_0x24691d('0x1fd6'):''}),_0x3de482[_0x24691d('0x1cf4')](_0x53b412);})[_0x45f416('0x103c')](function(_0x403556){const _0x3eb78f=_0x45f416;console[_0x3eb78f('0x15aa')](_0x403556),_0x40b22a[_0x3eb78f('0x1d4a')]=_0x403556[_0x3eb78f('0x1e07')][_0x3eb78f('0x1d4a')]||[{'message':_0x403556['toString'](),'type':_0x3eb78f('0x1b61')}];});}function _0x48515c(){_0x3de482['hide']();}_0x40b22a['closeDialog']=_0x48515c,_0x40b22a[_0x3dc9c2('0x1195')]=_0x4581cc;}const _0x3c10e7=_0x477960;_0x5441a9[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0x1558'),_0x566993('0x23a1'),_0x566993('0x1d31'),'$state'];function _0x5441a9(_0x41c16a,_0x212c68,_0x43f58c,_0x21c662,_0x51277b){const _0x397300=_0x566993,_0x11db0a=this;_0x11db0a[_0x397300('0x23a1')]=_0x43f58c,_0x11db0a['id']='',_0x11db0a[_0x397300('0x209e')]=!![];function _0x36d0c3(_0x1d56db){const _0x32c259=_0x397300;_0x11db0a[_0x32c259('0x1d4a')]=[],_0x1d56db?(_0x41c16a[_0x32c259('0x1cf4')](),_0x11db0a[_0x32c259('0x209e')]?_0x21c662[_0x32c259('0x1c2')]('/callysquare/projects/'+_0x11db0a['id'],'_blank'):_0x51277b['go'](_0x32c259('0x124b'),{'id':_0x11db0a['id']})):_0x41c16a[_0x32c259('0x1cf4')]();}_0x11db0a[_0x397300('0x18e2')]=_0x36d0c3;}const _0x2533e5=_0x5441a9;_0x44ecd6['$inject']=[_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x220b'),_0x566993('0x23a1'),_0x566993('0x638')];function _0x44ecd6(_0x35dd47,_0x2dae83,_0x1dd08b,_0xec9615,_0x1dbf80,_0x145783){const _0x185743=_0x566993,_0x4f927b=this;_0x4f927b[_0x185743('0x220b')]=_0xec9615,_0x4f927b['penalty']=0x0,_0x4f927b[_0x185743('0x1b1f')]=[],_0x4f927b[_0x185743('0x5f8')]=[],_0x4f927b[_0x185743('0x18e2')]=_0x1c5583,_0x4f927b[_0x185743('0x52e')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x185743('0x10ad'),'line1':_0x185743('0x572'),'line2':[_0x185743('0x10ad'),_0x185743('0x138c')],'line3':_0x185743('0x1692'),'labelAll':_0x145783[_0x185743('0x1467')](_0x185743('0x15f1')),'labelSelected':_0x145783[_0x185743('0x1467')](_0x185743('0xbf0')),'transferCallback':function(_0x559631,_0x40d9f4){const _0x21a381=_0x185743;_0x1dd08b[_0x21a381('0x550')][_0x40d9f4?_0x21a381('0x18f9'):_0x21a381('0x2413')]({'id':_0x4f927b['project']['id'],'ids':_0x3c8d8a()[_0x21a381('0x8a2')](_0x559631,'id'),'penalty':_0x4f927b['penalty']||0x0})['$promise'][_0x21a381('0x173b')](function(){const _0x473e20=_0x21a381;_0x2dae83[_0x473e20('0xdfe')]({'title':_0x473e20('0x1da4')+(_0x40d9f4?'removed':'added'),'msg':_0x473e20('0x25eb')+(_0x40d9f4?_0x473e20('0x24f3'):_0x473e20('0x492'))+'!'}),!_0x40d9f4&&_0x4032af();})[_0x21a381('0x103c')](function(_0xab80e2){const _0x413ba4=_0x21a381;_0x2dae83[_0x413ba4('0x15aa')]({'title':_0xab80e2[_0x413ba4('0x276f')]?'API:'+_0xab80e2[_0x413ba4('0x276f')]+_0x413ba4('0x160c')+_0xab80e2[_0x413ba4('0x2696')]:_0x413ba4('0x24b3'),'msg':_0xab80e2['status']?JSON[_0x413ba4('0x100b')](_0xab80e2['data']):_0xab80e2[_0x413ba4('0x1b75')]()});});}};function _0x4032af(){const _0x54b31c=_0x185743;return _0x1dd08b[_0x54b31c('0x550')][_0x54b31c('0x2050')]({'id':_0x4f927b[_0x54b31c('0x220b')]['id'],'fields':'id,name,fullname,internal','nolimit':!![],'role':_0x54b31c('0x166f')})['$promise'][_0x54b31c('0x173b')](function(_0x3bc2ac){const _0x109c3d=_0x54b31c;return _0x4f927b['selectedItems']=_0x3bc2ac[_0x109c3d('0x6aa')]?_0x3c8d8a()[_0x109c3d('0x8a2')](_0x3bc2ac['rows'],function(_0x19b956){return _0x19b956;}):[],_0x4f927b['dualMultiselectOptions'][_0x109c3d('0x5f8')]=_0x4f927b[_0x109c3d('0x5f8')],_0x1dd08b[_0x109c3d('0x166f')]['get']({'fields':_0x109c3d('0x27c'),'role':_0x109c3d('0x166f'),'nolimit':!![]})['$promise'];})[_0x54b31c('0x173b')](function(_0x59bf8c){const _0x2fdeaa=_0x54b31c;_0x4f927b[_0x2fdeaa('0x1b1f')]=_0x59bf8c[_0x2fdeaa('0x6aa')]?_0x3c8d8a()[_0x2fdeaa('0x8a2')](_0x59bf8c[_0x2fdeaa('0x6aa')],function(_0x5e82af){return _0x5e82af;}):[],_0x4f927b['dualMultiselectOptions'][_0x2fdeaa('0x1b1f')]=_0x3c8d8a()[_0x2fdeaa('0x1bd3')](_0x4f927b[_0x2fdeaa('0x1b1f')],_0x4f927b[_0x2fdeaa('0x5f8')],'id');})['catch'](function(_0x513393){const _0x2c2248=_0x54b31c;_0x2dae83[_0x2c2248('0x15aa')]({'title':_0x513393['status']?_0x2c2248('0x137')+_0x513393[_0x2c2248('0x276f')]+_0x2c2248('0x160c')+_0x513393['statusText']:_0x2c2248('0x46d'),'msg':_0x513393[_0x2c2248('0x276f')]?JSON['stringify'](_0x513393['data']):_0x513393['toString']()});});}function _0x1c5583(){const _0x328888=_0x185743;_0x35dd47[_0x328888('0x1cf4')]();}_0x4032af();}const _0x2285c3=_0x44ecd6;_0x189e26['$inject']=[_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0x220b'),_0x566993('0x6e1'),_0x566993('0xbd4'),'$window','$state'];function _0x189e26(_0x140bb5,_0x10ded6,_0x59ef9a,_0x2546cf,_0x287798,_0x501dfa,_0x8ea4cd){const _0x56fb2e=_0x566993,_0x4538a0=this;_0x4538a0['project']=angular[_0x56fb2e('0x2e3')](_0x59ef9a),_0x4538a0[_0x56fb2e('0x220b')][_0x56fb2e('0x10ad')]+=_0x56fb2e('0x968'),_0x4538a0[_0x56fb2e('0x220b')][_0x56fb2e('0x24b9')]=_0x2546cf,_0x4538a0[_0x56fb2e('0x209e')]=!![];function _0x3fa968(){const _0x52f9ca=_0x56fb2e;delete _0x4538a0[_0x52f9ca('0x220b')]['id'],_0x287798[_0x52f9ca('0x550')][_0x52f9ca('0x1195')](_0x4538a0[_0x52f9ca('0x220b')])[_0x52f9ca('0x1964')][_0x52f9ca('0x173b')](function(_0x17c117){const _0x3a0846=_0x52f9ca;_0x10ded6[_0x3a0846('0xdfe')]({'title':_0x3a0846('0x1f02'),'msg':_0x4538a0[_0x3a0846('0x220b')][_0x3a0846('0x10ad')]?_0x4538a0[_0x3a0846('0x220b')][_0x3a0846('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x140bb5[_0x3a0846('0x1cf4')](_0x17c117),_0x4538a0[_0x3a0846('0x209e')]?_0x501dfa['open'](_0x3a0846('0x371')+_0x17c117['id'],'_blank'):_0x8ea4cd['go'](_0x3a0846('0x124b'),{'id':_0x17c117['id']});})['catch'](function(_0x1194c6){const _0x2ecfeb=_0x52f9ca;console['error'](_0x1194c6),_0x4538a0[_0x2ecfeb('0x1d4a')]=_0x1194c6['data'][_0x2ecfeb('0x1d4a')]||[{'message':_0x1194c6[_0x2ecfeb('0x1b75')](),'type':'api.squareProject.save'}];});}function _0x3a2e58(){_0x140bb5['hide']();}_0x4538a0[_0x56fb2e('0x18e2')]=_0x3a2e58,_0x4538a0[_0x56fb2e('0x1195')]=_0x3fa968;}const _0x55ea6a=_0x189e26,_0x251d1d=_0x21a6a1['p']+_0x566993('0x12ea'),_0x4a44f6=_0x21a6a1['p']+_0x566993('0x159f'),_0x1fa5ea=_0x21a6a1['p']+_0x566993('0x1c5a'),_0x58d24e=_0x21a6a1['p']+_0x566993('0x1ef3'),_0x1593fe=_0x21a6a1['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info.html',_0xf9541e=_0x21a6a1['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html/edit.html',_0x162cad=_0x21a6a1['p']+_0x566993('0xd27');_0x50394b['$inject']=[_0x566993('0x2276'),_0x566993('0x1b82'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty','api','project',_0x566993('0x1e14'),_0x566993('0x673'),_0x566993('0xeae'),_0x566993('0x1230'),_0x566993('0x2715'),_0x566993('0xcc4'),_0x566993('0x22a9'),_0x566993('0x23a1'),'intervals',_0x566993('0x2632'),_0x566993('0x2637'),_0x566993('0x9e8'),'smsAccounts',_0x566993('0x1d66'),_0x566993('0x170e'),'Auth'];const _0x7cab30=window[_0x566993('0x17f9')],_0x47f94c=window['Editor'];function _0x50394b(_0x499439,_0x4476df,_0x38f8ef,_0x20bebf,_0x47ae59,_0x205dd6,_0x9ddd11,_0x44b898,_0x1a0088,_0x3f648f,_0x20e38a,_0x37baff,_0x15959e,_0x3dec78,_0x2e176d,_0x3ca9ad,_0xfe4dcc,_0x2e0098,_0x4cf755,_0x34b054,_0x282586,_0x96ba37,_0x3d2395,_0x44ebd0){const _0x10ef51=_0x566993,_0x24ab0a=this;_0x24ab0a[_0x10ef51('0x155f')]=_0x44ebd0['getCurrentUser'](),_0x24ab0a['project']=_0x44b898||{},_0x24ab0a['userProfileSection']=_0x3d2395&&_0x3d2395['count']==0x1?_0x3d2395[_0x10ef51('0x6aa')][0x0]:null,_0x24ab0a[_0x10ef51('0x1dc1')]=_0x44ebd0[_0x10ef51('0xde6')](_0x24ab0a[_0x10ef51('0x170e')]?_0x24ab0a[_0x10ef51('0x170e')][_0x10ef51('0x1dc1')]:null),_0x24ab0a[_0x10ef51('0x2535')]=_0x4e19cd,_0x24ab0a[_0x10ef51('0x1b4a')]=_0x9175b4,_0x24ab0a['openDialog']=_0x187b12,_0x24ab0a[_0x10ef51('0x269c')]=_0x406ec7,_0x24ab0a[_0x10ef51('0x21c8')]=_0xe16569,_0x24ab0a['saveProjectAs']=_0x4a447e,_0x24ab0a['newVariable']=_0x40ed5b,_0x24ab0a[_0x10ef51('0x9c7')]=_0x1e4fc3,_0x24ab0a['editXML']=_0x4aa0ca,_0x24ab0a['importXML']=_0xe4bcde,_0x24ab0a[_0x10ef51('0x1bfb')]=_0x5145cf;function _0x4e19cd(){const _0x2c2459=_0x10ef51,_0x220ba0=new _0x7cab30(_0x24ab0a,new _0x47f94c(),document[_0x2c2459('0x1c4d')](_0x2c2459('0x15df')));_0x220ba0[_0x2c2459('0xe68')](_0x24ab0a['project'][_0x2c2459('0x24b9')],_0x24ab0a[_0x2c2459('0x220b')][_0x2c2459('0x10ad')],_0x24ab0a[_0x2c2459('0x220b')]);}function _0x187b12(_0x3468bb,_0x3db376){const _0x3cd742=_0x10ef51;_0x38f8ef[_0x3cd742('0x1cb7')]({'controller':_0x3cd742('0x20fd'),'controllerAs':'vm','templateUrl':_0x251d1d,'parent':angular[_0x3cd742('0xb6d')](_0x4476df['body']),'clickOutsideToClose':!![],'locals':{'users':_0x1a0088[_0x3cd742('0x6aa')]||[],'trunks':_0x3f648f[_0x3cd742('0x6aa')]||[],'queues':_0x20e38a[_0x3cd742('0x6aa')]||[],'sounds':_0x37baff['rows']||[],'variables':_0x15959e[_0x3cd742('0x6aa')]||[],'databases':_0x3dec78['rows']||[],'contexts':_0x2e176d[_0x3cd742('0x6aa')]||[],'projects':_0x3ca9ad[_0x3cd742('0x6aa')]||[],'intervals':_0xfe4dcc[_0x3cd742('0x6aa')]||[],'mailAccounts':_0x2e0098[_0x3cd742('0x6aa')]||[],'smsAccounts':_0x282586[_0x3cd742('0x6aa')]||[],'pauses':_0x96ba37['rows']||[],'templates':_0x4cf755[_0x3cd742('0x6aa')]||[],'lists':_0x34b054['rows']||[],'cell':_0x3468bb,'saveCallback':_0x3db376,'crudPermissions':_0x24ab0a['crudPermissions']}});}function _0x406ec7(_0x4f7f58){const _0x18d3da=_0x10ef51;_0x38f8ef[_0x18d3da('0x1cb7')]({'controller':_0x18d3da('0x10b'),'controllerAs':'vm','templateUrl':_0x4a44f6,'parent':angular[_0x18d3da('0xb6d')](_0x4476df['body']),'clickOutsideToClose':!![],'locals':{'project':_0x4f7f58,'projects':_0x3ca9ad[_0x18d3da('0x6aa')],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x24ab0a[_0x18d3da('0x1dc1')]}});}function _0xe16569(){const _0x2db883=_0x10ef51;_0x38f8ef[_0x2db883('0x1cb7')]({'controller':_0x2db883('0x447'),'controllerAs':'vm','templateUrl':_0x1fa5ea,'parent':angular[_0x2db883('0xb6d')](_0x4476df[_0x2db883('0x1a5')]),'clickOutsideToClose':!![],'locals':{'projects':_0x3ca9ad[_0x2db883('0x6aa')]||[]}});}function _0x4a447e(_0x4362a7){const _0x4065bf=_0x10ef51;_0x38f8ef[_0x4065bf('0x1cb7')]({'controller':_0x4065bf('0x1ce'),'controllerAs':'vm','templateUrl':_0x58d24e,'parent':angular[_0x4065bf('0xb6d')](_0x4476df['body']),'clickOutsideToClose':!![],'locals':{'project':_0x24ab0a['project'],'currentXML':_0x4362a7}})[_0x4065bf('0x173b')](function(_0x3b8eb5){const _0xd9281b=_0x4065bf;_0x3b8eb5&&_0x3ca9ad[_0xd9281b('0x6aa')][_0xd9281b('0x18bb')](_0x3b8eb5);});}function _0x1b0b3c(){return _0x20bebf(function(_0x553f22,_0x4e9437){const _0x2709da=a0_0xde5e;return _0x9ddd11[_0x2709da('0x170e')][_0x2709da('0x1d97')]({'userProfileId':_0x24ab0a[_0x2709da('0x155f')][_0x2709da('0x1946')],'sectionId':0x3f4})[_0x2709da('0x1964')][_0x2709da('0x173b')](function(_0x4d692b){const _0x3784be=_0x2709da,_0x2f3142=_0x4d692b['rows']?_0x4d692b[_0x3784be('0x6aa')][0x0]:null,_0x28d218=_0x44ebd0[_0x3784be('0xde6')](_0x2f3142?_0x2f3142['crudPermissions']:null);_0x553f22(_0x28d218);})[_0x2709da('0x103c')](function(_0x1f7d64){_0x4e9437(_0x1f7d64);});});}function _0x40ed5b(_0x2fbb23){const _0x70367f=_0x10ef51;return _0x1b0b3c()['then'](function(_0x1eee17){const _0x28eb98=a0_0xde5e;_0x1eee17[_0x28eb98('0x1f3d')]?_0x38f8ef['show']({'controller':'CreateOrEditVariableDialogController','controllerAs':'vm','templateUrl':_0xa89596,'parent':angular['element'](_0x4476df['body']),'clickOutsideToClose':!![],'locals':{'variable':_0x2fbb23,'variables':_0x15959e[_0x28eb98('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x1eee17}}):_0x205dd6[_0x28eb98('0x2787')]({'title':_0x47ae59[_0x28eb98('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x47ae59['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE')});})[_0x70367f('0x103c')](function(_0x2f950b){const _0x167dfe=_0x70367f;_0x205dd6['error']({'title':_0x2f950b[_0x167dfe('0x276f')]?_0x167dfe('0x137')+_0x2f950b[_0x167dfe('0x276f')]+_0x167dfe('0x160c')+_0x2f950b['statusText']:'API:NEW_VARIABLE','msg':_0x2f950b[_0x167dfe('0x1e07')]?JSON[_0x167dfe('0x100b')](_0x2f950b[_0x167dfe('0x1e07')]):_0x2f950b[_0x167dfe('0x1b75')]()});});}function _0x1e4fc3(_0xd90034){const _0x4d8fa4=_0x10ef51;_0x38f8ef[_0x4d8fa4('0x1cb7')]({'controller':'MxGraphUpdateInfoController','controllerAs':'vm','templateUrl':_0x1593fe,'parent':angular[_0x4d8fa4('0xb6d')](_0x4476df['body']),'targetEvent':_0xd90034,'clickOutsideToClose':!![],'locals':{'project':_0x24ab0a[_0x4d8fa4('0x220b')]}})[_0x4d8fa4('0x173b')](function(_0x53bb6a){const _0x333a6c=_0x4d8fa4;_0x53bb6a&&_0x3c8d8a()[_0x333a6c('0x9ef')](_0x24ab0a[_0x333a6c('0x220b')],_0x53bb6a);});}function _0x4aa0ca(_0x19702f,_0x2444be){const _0x2af839=_0x10ef51;_0x38f8ef['show']({'controller':_0x2af839('0x833'),'controllerAs':'vm','templateUrl':_0xf9541e,'parent':angular['element'](_0x4476df['body']),'clickOutsideToClose':!![],'locals':{'currentXML':_0x19702f,'saveCallback':_0x2444be}})['then'](function(_0x4c7aea){const _0x4763a1=_0x2af839;_0x4c7aea&&(_0x24ab0a[_0x4763a1('0x220b')][_0x4763a1('0x24b9')]=_0x4c7aea);});}function _0xe4bcde(_0x4b9f4f){const _0x3b7405=_0x10ef51;_0x38f8ef['show']({'controller':_0x3b7405('0x25c2'),'controllerAs':'vm','templateUrl':_0x162cad,'parent':angular['element'](_0x4476df[_0x3b7405('0x1a5')]),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x4b9f4f}})['then'](function(_0x1ccf51){const _0x72856f=_0x3b7405;_0x1ccf51&&(_0x24ab0a[_0x72856f('0x220b')]['preproduction']=_0x1ccf51);});}function _0x9175b4(_0x923249,_0x23d177){const _0x319bfe=_0x10ef51,_0x3825b0={'preproduction':_0x923249};_0x23d177&&(_0x3825b0['production']=_0x923249),_0x9ddd11[_0x319bfe('0x550')][_0x319bfe('0x1842')]({'id':_0x24ab0a[_0x319bfe('0x220b')]['id']},_0x3825b0)[_0x319bfe('0x1964')]['then'](function(_0x5ae7a3){const _0x5b0f29=_0x319bfe;_0x205dd6[_0x5b0f29('0xdfe')]({'title':_0x5b0f29('0x466')+(_0x23d177?_0x5b0f29('0x1cda'):_0x5b0f29('0x1049'))+'!','msg':_0x24ab0a[_0x5b0f29('0x220b')][_0x5b0f29('0x10ad')]?_0x24ab0a[_0x5b0f29('0x220b')][_0x5b0f29('0x10ad')]+'\x20has\x20been\x20'+(_0x23d177?'published':_0x5b0f29('0x1049'))+'!':''}),_0x24ab0a[_0x5b0f29('0x220b')]['preproduction']=_0x5ae7a3[_0x5b0f29('0x24b9')];})[_0x319bfe('0x103c')](function(_0x15badd){const _0x1924a7=_0x319bfe;_0x205dd6[_0x1924a7('0x15aa')]({'title':_0x15badd[_0x1924a7('0x276f')]?_0x1924a7('0x137')+_0x15badd[_0x1924a7('0x276f')]+'\x20-\x20'+_0x15badd['statusText']:_0x1924a7('0x2435'),'msg':_0x15badd[_0x1924a7('0x1e07')]?JSON[_0x1924a7('0x100b')](_0x15badd['data']):_0x15badd['toString']()});});}function _0x5145cf(){const _0x15bedb=_0x10ef51;_0x499439['go']('app.callysquare.projects',{},{'reload':_0x15bedb('0x17f6')});}}const _0x3aed1e=_0x50394b;_0x157342[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x23a1'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$timeout',_0x566993('0x1558'),_0x566993('0x1600')];function _0x157342(_0x5678cd,_0x1a3a28,_0x463889,_0x223523,_0x82407b,_0x3ca5fb,_0xa87409,_0x25e778,_0x1e315a,_0x31dc80,_0x19ddd6,_0x58f955,_0x5e7d5c){const _0x17fa6f=_0x566993,_0xdafb70=this;_0xdafb70[_0x17fa6f('0x155f')]=_0x5e7d5c[_0x17fa6f('0x14d4')](),_0xdafb70[_0x17fa6f('0x23a1')]=_0x223523||{'count':0x0,'rows':[]},_0xdafb70[_0x17fa6f('0x257b')]=_0x82407b,_0xdafb70[_0x17fa6f('0x170e')]=_0x3ca5fb&&_0x3ca5fb[_0x17fa6f('0x1a2f')]==0x1?_0x3ca5fb[_0x17fa6f('0x6aa')][0x0]:null,_0xdafb70[_0x17fa6f('0x1dc1')]=_0x5e7d5c[_0x17fa6f('0xde6')](_0xdafb70[_0x17fa6f('0x170e')]?_0xdafb70['userProfileSection'][_0x17fa6f('0x1dc1')]:null),_0xdafb70[_0x17fa6f('0xdf9')]=_0x17fa6f('0x23a1'),_0xdafb70['listOrder']='',_0xdafb70[_0x17fa6f('0x2303')]=null,_0xdafb70[_0x17fa6f('0x2263')]=[],_0xdafb70[_0x17fa6f('0xc49')]={'fields':'id,name,description,notes','sort':_0x17fa6f('0x1769'),'limit':0xa,'page':0x1},_0xdafb70[_0x17fa6f('0x222e')]=_0x30c44a,_0xdafb70[_0x17fa6f('0x1a20')]=_0x1134e9,_0xdafb70[_0x17fa6f('0xdfe')]=_0x504bb9,_0xdafb70[_0x17fa6f('0x1e19')]=_0x16f77d,_0xdafb70['createOrEditProject']=_0x47b0d3,_0xdafb70['deleteProject']=_0x1fb1de,_0xdafb70['exportSelectedProjects']=_0x2aa309,_0xdafb70['deleteSelectedProjects']=_0x255f27,_0xdafb70['deselectProjects']=_0x454459,_0xdafb70[_0x17fa6f('0x235d')]=_0x3254fc;function _0x30c44a(_0x31625f){_0x1a3a28['go']('app.callysquare.projects.edit',{'id':_0x31625f['id'],'crudPermissions':_0xdafb70['crudPermissions']});}function _0x1134e9(_0xab95ef,_0x53e3b4){const _0x122e32=_0x17fa6f,_0xfc9428=_0x1e315a['confirm']()[_0x122e32('0x20d6')](_0x122e32('0x433'))[_0x122e32('0xf8b')](_0x122e32('0x15b9')+_0xab95ef[_0x122e32('0x10ad')]+_0x122e32('0x24be')+_0x122e32('0xd23'))['ariaLabel'](_0x122e32('0x19ee'))[_0x122e32('0x21de')](_0x53e3b4)['ok']('OK')[_0x122e32('0x1e1f')](_0x122e32('0x468'));_0x1e315a['show'](_0xfc9428)[_0x122e32('0x173b')](function(){_0x1fb1de(_0xab95ef);},function(){const _0x151668=_0x122e32;console[_0x151668('0xe37')](_0x151668('0x468'));});}let _0x22e557=!![],_0x1135fd=0x1;_0x5678cd[_0x17fa6f('0x1bdb')](_0x17fa6f('0x157b'),function(_0x20a4d5,_0xa6535a){const _0x3ea7d6=_0x17fa6f;_0x22e557?_0x19ddd6(function(){_0x22e557=![];}):(!_0xa6535a&&(_0x1135fd=_0xdafb70[_0x3ea7d6('0xc49')]['page']),_0x20a4d5!==_0xa6535a&&(_0xdafb70[_0x3ea7d6('0xc49')]['page']=0x1),!_0x20a4d5&&(_0xdafb70[_0x3ea7d6('0xc49')][_0x3ea7d6('0x182e')]=_0x1135fd),_0xdafb70[_0x3ea7d6('0x1e19')]());});function _0x504bb9(_0x234f10){const _0x3bd4be=_0x17fa6f;_0xdafb70[_0x3bd4be('0x23a1')]=_0x234f10||{'count':0x0,'rows':[]};}function _0x16f77d(){const _0x4e3728=_0x17fa6f;_0xdafb70['query'][_0x4e3728('0x17f0')]=(_0xdafb70[_0x4e3728('0xc49')][_0x4e3728('0x182e')]-0x1)*_0xdafb70[_0x4e3728('0xc49')][_0x4e3728('0x3e')],_0x5e7d5c[_0x4e3728('0x1b4e')](_0x4e3728('0x79b'))?_0xdafb70['promise']=_0xa87409[_0x4e3728('0x550')]['get'](_0xdafb70['query'],_0x504bb9)['$promise']:(_0xdafb70[_0x4e3728('0xc49')]['id']=_0xdafb70[_0x4e3728('0x257b')]['id'],_0xdafb70[_0x4e3728('0xc49')][_0x4e3728('0x17c9')]=_0x4e3728('0x24fe'),_0xdafb70[_0x4e3728('0x2219')]=_0xa87409[_0x4e3728('0x257b')][_0x4e3728('0x135b')](_0xdafb70[_0x4e3728('0xc49')],_0x504bb9)[_0x4e3728('0x1964')]);}function _0x47b0d3(_0x3de5ad,_0x426d70){const _0x308dd6=_0x17fa6f;_0x1e315a[_0x308dd6('0x1cb7')]({'controller':'CreateOrEditSquareProjectDialogController','controllerAs':'vm','templateUrl':_0x4a44f6,'parent':angular['element'](_0x31dc80[_0x308dd6('0x1a5')]),'targetEvent':_0x3de5ad,'clickOutsideToClose':!![],'locals':{'project':_0x426d70,'projects':_0xdafb70[_0x308dd6('0x23a1')][_0x308dd6('0x6aa')],'openFromEditor':null,'setting':null,'crudPermissions':_0xdafb70[_0x308dd6('0x1dc1')]}});}function _0x1fb1de(_0x20d4ea){const _0x18bb02=_0x17fa6f;_0xa87409['squareProject'][_0x18bb02('0x15e8')]({'id':_0x20d4ea['id']})['$promise'][_0x18bb02('0x173b')](function(){const _0x362df3=_0x18bb02;_0x3c8d8a()[_0x362df3('0x1a8b')](_0xdafb70[_0x362df3('0x23a1')][_0x362df3('0x6aa')],{'id':_0x20d4ea['id']}),_0xdafb70[_0x362df3('0x23a1')][_0x362df3('0x1a2f')]-=0x1,!_0xdafb70['projects'][_0x362df3('0x6aa')][_0x362df3('0x543')]&&_0xdafb70['getProjects'](),_0x58f955[_0x362df3('0xdfe')]({'title':_0x362df3('0xb82'),'msg':_0x20d4ea[_0x362df3('0x10ad')]?_0x20d4ea['name']+_0x362df3('0x25d2'):''});})[_0x18bb02('0x103c')](function(_0x5d4507){const _0x276f20=_0x18bb02;if(_0x5d4507[_0x276f20('0x1e07')]&&_0x5d4507[_0x276f20('0x1e07')][_0x276f20('0x1d4a')]&&_0x5d4507['data'][_0x276f20('0x1d4a')][_0x276f20('0x543')]){_0xdafb70['errors']=_0x5d4507[_0x276f20('0x1e07')]['errors']||[{'message':_0x5d4507['toString'](),'type':_0x276f20('0x2198')}];for(let _0x243a50=0x0;_0x243a50<_0x5d4507[_0x276f20('0x1e07')][_0x276f20('0x1d4a')]['length'];_0x243a50++){_0x58f955[_0x276f20('0x15aa')]({'title':_0x5d4507[_0x276f20('0x1e07')][_0x276f20('0x1d4a')][_0x243a50]['type'],'msg':_0x5d4507['data']['errors'][_0x243a50][_0x276f20('0x67f')]});}}else _0x58f955[_0x276f20('0x15aa')]({'title':_0x5d4507[_0x276f20('0x276f')]?_0x276f20('0x137')+_0x5d4507[_0x276f20('0x276f')]+_0x276f20('0x160c')+_0x5d4507['statusText']:_0x276f20('0x2198'),'msg':_0x5d4507[_0x276f20('0x1e07')]?JSON[_0x276f20('0x100b')](_0x5d4507[_0x276f20('0x1e07')][_0x276f20('0x67f')]):_0x5d4507['message']||_0x5d4507[_0x276f20('0x1b75')]()});});}function _0x2aa309(){const _0x21c8eb=_0x17fa6f,_0x5736dc=angular[_0x21c8eb('0x2e3')](_0xdafb70[_0x21c8eb('0x2263')]);return _0xdafb70[_0x21c8eb('0x2263')]=[],_0x5736dc;}function _0x255f27(_0x2d4411){const _0x24536e=_0x17fa6f,_0x4ea142=_0x1e315a['confirm']()[_0x24536e('0x20d6')](_0x24536e('0x1724'))[_0x24536e('0xf8b')](_0x24536e('0x15b9')+_0xdafb70[_0x24536e('0x2263')][_0x24536e('0x543')]+_0x24536e('0xcb4')+_0x24536e('0xd23'))['ariaLabel']('delete\x20Projects')[_0x24536e('0x21de')](_0x2d4411)['ok']('OK')[_0x24536e('0x1e1f')](_0x24536e('0x468'));_0x1e315a[_0x24536e('0x1cb7')](_0x4ea142)[_0x24536e('0x173b')](function(){const _0x1ee1c1=_0x24536e;_0xdafb70[_0x1ee1c1('0x2263')]['forEach'](function(_0xb46929){_0x1fb1de(_0xb46929);}),_0xdafb70[_0x1ee1c1('0x2263')]=[];});}function _0x454459(){const _0x3245ff=_0x17fa6f;_0xdafb70[_0x3245ff('0x2263')]=[];}function _0x3254fc(){const _0x2d4336=_0x17fa6f;_0xdafb70[_0x2d4336('0x2263')]=_0xdafb70['projects']['rows'];}}const _0x1985b9=_0x157342;_0x26988c[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x26988c(_0xcc3f78){const _0x232318=_0x566993;_0xcc3f78[_0x232318('0x1a49')](_0x232318('0x17f6'),{'url':'/projects','views':{'content@app':{'templateUrl':_0x32e2a4,'controller':_0x232318('0x20f')}},'resolve':{'projects':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x6f05b6,_0x55d454){const _0x196c4a=_0x232318;return _0x55d454[_0x196c4a('0x1b4e')](_0x196c4a('0x79b'))?_0x6f05b6[_0x196c4a('0x155b')]('squareProject@get',{'fields':_0x196c4a('0x1b7c'),'sort':_0x196c4a('0x10ad'),'limit':0xa,'offset':0x0}):_0x6f05b6[_0x196c4a('0x155b')](_0x196c4a('0x14b3'),{'id':_0x55d454[_0x196c4a('0x14d4')]()[_0x196c4a('0x1946')],'section':_0x196c4a('0x24fe'),'fields':_0x196c4a('0x1b7c'),'sort':_0x196c4a('0x10ad'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x424ff6,_0x210e2a){const _0x2cc5df=_0x232318;return _0x424ff6[_0x2cc5df('0x155b')](_0x2cc5df('0x1f20'),{'fields':_0x2cc5df('0x19dd'),'id':_0x210e2a[_0x2cc5df('0x14d4')]()[_0x2cc5df('0x1946')]});}],'userProfileSection':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x53a9f4,_0x528ce9){const _0x3ee182=_0x232318;return _0x53a9f4[_0x3ee182('0x155b')](_0x3ee182('0x40'),{'fields':_0x3ee182('0x1348'),'userProfileId':_0x528ce9['getCurrentUser']()[_0x3ee182('0x1946')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x232318('0x20f2')})[_0x232318('0x1a49')](_0x232318('0x124b'),{'url':_0x232318('0x127e'),'views':{'content@app':{'templateUrl':_0x206c58,'controller':_0x232318('0x3d')}},'params':{'crudPermissions':undefined},'resolve':{'project':[_0x232318('0x2401'),_0x232318('0x1caf'),function(_0x34223e,_0x2871ea){const _0x28b907=_0x232318;return _0x34223e[_0x28b907('0x155b')]('squareProject@get',{'id':_0x2871ea['id']});}],'users':[_0x232318('0x2401'),'Auth',function(_0x25f84b,_0x1b616f){const _0x167bfe=_0x232318;return _0x1b616f[_0x167bfe('0x1b4e')](_0x167bfe('0x79b'))?_0x25f84b['resolve'](_0x167bfe('0x15e6'),{'fields':_0x167bfe('0x17c8'),'sort':_0x167bfe('0x10ad'),'nolimit':!![]}):_0x25f84b[_0x167bfe('0x155b')]('userProfile@getResources',{'id':_0x1b616f[_0x167bfe('0x14d4')]()[_0x167bfe('0x1946')],'section':_0x167bfe('0x1999'),'mergeResources':!![],'fields':_0x167bfe('0x17c8'),'sort':_0x167bfe('0x10ad'),'nolimit':!![]});}],'trunks':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x153883,_0x22ac37){const _0x5613d7=_0x232318;return _0x22ac37[_0x5613d7('0x1b4e')](_0x5613d7('0x79b'))?_0x153883[_0x5613d7('0x155b')](_0x5613d7('0x1a6f'),{'fields':_0x5613d7('0xd52'),'sort':_0x5613d7('0x10ad'),'nolimit':!![]}):_0x153883[_0x5613d7('0x155b')]('userProfile@getResources',{'id':_0x22ac37[_0x5613d7('0x14d4')]()['userProfileId'],'section':'Trunks','fields':_0x5613d7('0xd52'),'sort':_0x5613d7('0x10ad'),'nolimit':!![]});}],'queues':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x462cf8,_0x599175){const _0x5f5cdd=_0x232318;return _0x599175['hasRole']('admin')?_0x462cf8[_0x5f5cdd('0x155b')](_0x5f5cdd('0x17be'),{'type':_0x5f5cdd('0x1755'),'fields':_0x5f5cdd('0xd52'),'sort':_0x5f5cdd('0x10ad'),'nolimit':!![]}):_0x462cf8[_0x5f5cdd('0x155b')](_0x5f5cdd('0x14b3'),{'id':_0x599175[_0x5f5cdd('0x14d4')]()[_0x5f5cdd('0x1946')],'section':_0x5f5cdd('0x32a'),'type':_0x5f5cdd('0x1755'),'fields':_0x5f5cdd('0xd52'),'sort':_0x5f5cdd('0x10ad'),'nolimit':!![]});}],'sounds':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x582eab,_0x212a49){const _0x173f8c=_0x232318;return _0x212a49['hasRole']('admin')?_0x582eab[_0x173f8c('0x155b')]('sound@get',{'fields':_0x173f8c('0xd52'),'sort':_0x173f8c('0x10ad'),'nolimit':!![]}):_0x582eab[_0x173f8c('0x155b')](_0x173f8c('0x14b3'),{'id':_0x212a49[_0x173f8c('0x14d4')]()[_0x173f8c('0x1946')],'section':_0x173f8c('0x47d'),'fields':_0x173f8c('0xd52'),'sort':_0x173f8c('0x10ad'),'nolimit':!![]});}],'variables':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x58df20,_0x2c0309){const _0xdd77b1=_0x232318;return _0x2c0309['hasRole'](_0xdd77b1('0x79b'))?_0x58df20[_0xdd77b1('0x155b')]('variable@get',{'fields':_0xdd77b1('0xd52'),'sort':_0xdd77b1('0x10ad'),'nolimit':!![]}):_0x58df20[_0xdd77b1('0x155b')](_0xdd77b1('0x14b3'),{'id':_0x2c0309[_0xdd77b1('0x14d4')]()['userProfileId'],'section':'Variables','fields':_0xdd77b1('0xd52'),'sort':_0xdd77b1('0x10ad'),'nolimit':!![]});}],'databases':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x569c65,_0x902420){const _0x59c392=_0x232318;return _0x902420[_0x59c392('0x1b4e')]('admin')?_0x569c65[_0x59c392('0x155b')](_0x59c392('0x190e'),{'fields':_0x59c392('0xd52'),'sort':_0x59c392('0x10ad'),'nolimit':!![]}):_0x569c65[_0x59c392('0x155b')](_0x59c392('0x14b3'),{'id':_0x902420[_0x59c392('0x14d4')]()[_0x59c392('0x1946')],'section':_0x59c392('0x1597'),'fields':_0x59c392('0xd52'),'sort':_0x59c392('0x10ad'),'nolimit':!![]});}],'projects':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x14903a,_0x5da10a){const _0x5ae734=_0x232318;return _0x5da10a[_0x5ae734('0x1b4e')](_0x5ae734('0x79b'))?_0x14903a[_0x5ae734('0x155b')]('squareProject@get',{'fields':'id,name','sort':_0x5ae734('0x10ad'),'nolimit':!![]}):_0x14903a[_0x5ae734('0x155b')]('userProfile@getResources',{'id':_0x5da10a[_0x5ae734('0x14d4')]()[_0x5ae734('0x1946')],'section':'SquareProjects','fields':_0x5ae734('0xd52'),'sort':_0x5ae734('0x10ad'),'nolimit':!![]});}],'contexts':[_0x232318('0x2401'),'Auth',function(_0x27e17c,_0x536112){const _0x1a8a9b=_0x232318;return _0x536112[_0x1a8a9b('0x1b4e')]('admin')?_0x27e17c[_0x1a8a9b('0x155b')](_0x1a8a9b('0x1b22'),{'fields':'id,name','sort':_0x1a8a9b('0x10ad'),'nolimit':!![]}):_0x27e17c[_0x1a8a9b('0x155b')](_0x1a8a9b('0x14b3'),{'id':_0x536112[_0x1a8a9b('0x14d4')]()['userProfileId'],'section':_0x1a8a9b('0x38a'),'fields':_0x1a8a9b('0xd52'),'sort':_0x1a8a9b('0x10ad'),'nolimit':!![]});}],'intervals':['apiResolver',_0x232318('0x1600'),function(_0xae4d7b,_0x48e56a){const _0x3949ff=_0x232318;return _0x48e56a[_0x3949ff('0x1b4e')]('admin')?_0xae4d7b[_0x3949ff('0x155b')](_0x3949ff('0x185'),{'fields':_0x3949ff('0x473'),'sort':_0x3949ff('0x10ad'),'nolimit':!![]}):_0xae4d7b[_0x3949ff('0x155b')](_0x3949ff('0x14b3'),{'id':_0x48e56a['getCurrentUser']()[_0x3949ff('0x1946')],'section':_0x3949ff('0xb7a'),'fields':_0x3949ff('0x473'),'sort':'name','nolimit':!![]});}],'mailAccounts':[_0x232318('0x2401'),'Auth',function(_0x1712e4,_0x579588){const _0x3dd5a8=_0x232318;return _0x579588['hasRole'](_0x3dd5a8('0x79b'))?_0x1712e4[_0x3dd5a8('0x155b')]('mailAccount@get',{'fields':_0x3dd5a8('0xd52'),'sort':_0x3dd5a8('0x10ad'),'nolimit':!![]}):_0x1712e4[_0x3dd5a8('0x155b')](_0x3dd5a8('0x14b3'),{'id':_0x579588[_0x3dd5a8('0x14d4')]()[_0x3dd5a8('0x1946')],'section':_0x3dd5a8('0x15ab'),'fields':'id,name','sort':'name','nolimit':!![]});}],'templates':[_0x232318('0x2401'),'Auth',function(_0xbc772a,_0x475570){const _0x10c6de=_0x232318;return _0x475570[_0x10c6de('0x1b4e')](_0x10c6de('0x79b'))?_0xbc772a[_0x10c6de('0x155b')]('template@get',{'fields':_0x10c6de('0xd52'),'sort':_0x10c6de('0x10ad'),'nolimit':!![]}):_0xbc772a[_0x10c6de('0x155b')]('userProfile@getResources',{'id':_0x475570['getCurrentUser']()[_0x10c6de('0x1946')],'section':_0x10c6de('0x2db'),'fields':_0x10c6de('0xd52'),'sort':_0x10c6de('0x10ad'),'nolimit':!![]});}],'lists':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x51ed86,_0x4f7fdf){const _0x335ea1=_0x232318;return _0x4f7fdf[_0x335ea1('0x1b4e')](_0x335ea1('0x79b'))?_0x51ed86[_0x335ea1('0x155b')](_0x335ea1('0x1b8b'),{'fields':'id,name','sort':_0x335ea1('0x10ad'),'nolimit':!![]}):_0x51ed86[_0x335ea1('0x155b')]('userProfile@getResources',{'id':_0x4f7fdf['getCurrentUser']()[_0x335ea1('0x1946')],'section':_0x335ea1('0xd8b'),'fields':_0x335ea1('0xd52'),'sort':_0x335ea1('0x10ad'),'nolimit':!![]});}],'smsAccounts':['apiResolver',_0x232318('0x1600'),function(_0x172a31,_0x3990bb){const _0x22676e=_0x232318;return _0x3990bb[_0x22676e('0x1b4e')](_0x22676e('0x79b'))?_0x172a31[_0x22676e('0x155b')]('smsAccount@get',{'fields':'id,name','sort':_0x22676e('0x10ad'),'nolimit':!![]}):_0x172a31[_0x22676e('0x155b')]('userProfile@getResources',{'id':_0x3990bb[_0x22676e('0x14d4')]()[_0x22676e('0x1946')],'section':'SmsAccounts','fields':_0x22676e('0xd52'),'sort':_0x22676e('0x10ad'),'nolimit':!![]});}],'pauses':[_0x232318('0x2401'),'Auth',function(_0x17085b,_0x3f5054){const _0x6b362e=_0x232318;return _0x3f5054['hasRole'](_0x6b362e('0x79b'))?_0x17085b[_0x6b362e('0x155b')](_0x6b362e('0x176a'),{'fields':_0x6b362e('0xd52'),'sort':'name','nolimit':!![]}):_0x17085b[_0x6b362e('0x155b')]('userProfile@getResources',{'id':_0x3f5054[_0x6b362e('0x14d4')]()['userProfileId'],'section':_0x6b362e('0xbe4'),'fields':'id,name','sort':_0x6b362e('0x10ad'),'nolimit':!![]});}],'userProfileSection':[_0x232318('0x2401'),_0x232318('0x1600'),function(_0x13d5dd,_0x57b476){const _0x408fbb=_0x232318;return _0x13d5dd[_0x408fbb('0x155b')](_0x408fbb('0x40'),{'fields':_0x408fbb('0x1348'),'userProfileId':_0x57b476[_0x408fbb('0x14d4')]()['userProfileId'],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x232318('0x20f2')});}angular[_0x566993('0x22c4')](_0x566993('0x17f6'),[])[_0x566993('0xea9')](_0x26988c)[_0x566993('0x1e65')]('CreateOrEditSquareProjectDialogController',_0x1edb0f)[_0x566993('0x1e65')](_0x566993('0x20fd'),_0x59171e)[_0x566993('0xd87')]('stringToNumber',_0x3b9b4a)[_0x566993('0x235c')]('ispeechAsrModel',_0x40b0f1)[_0x566993('0x235c')](_0x566993('0x27cd'),_0x5b2f7f)[_0x566993('0x235c')]('ispeechTtsLanguage',_0x4f5eb3)[_0x566993('0x235c')](_0x566993('0x1b6b'),_0xa02791)[_0x566993('0x235c')](_0x566993('0xcd1'),_0x5a006b)['factory'](_0x566993('0xccd'),_0x147689)[_0x566993('0x235c')](_0x566993('0xd35'),_0x1e69b6)[_0x566993('0x235c')]('awsPollyRegion',_0x93362e)[_0x566993('0x235c')](_0x566993('0x1271'),_0x19d471)[_0x566993('0x235c')](_0x566993('0x275'),_0x4af329)[_0x566993('0x1e65')](_0x566993('0x833'),_0x247f28)[_0x566993('0x1e65')](_0x566993('0x25c2'),_0x3d131d)[_0x566993('0x1e65')]('MxGraphUpdateInfoController',_0x3c10e7)[_0x566993('0x1e65')](_0x566993('0x447'),_0x2533e5)[_0x566993('0x1e65')]('ProjectspermissionaddController',_0x2285c3)[_0x566993('0x1e65')](_0x566993('0x1ce'),_0x55ea6a)[_0x566993('0x1e65')](_0x566993('0x2755'),_0x3aed1e)[_0x566993('0x1e65')](_0x566993('0x1be1'),_0x1985b9);const _0xa0b0bf=_0x21a6a1['p']+_0x566993('0x223d'),_0x4eb062=_0x21a6a1['p']+_0x566993('0x79c');_0xec5f7c['$inject']=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),'toasty',_0x566993('0x1911'),_0x566993('0x1dd1'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0xec5f7c(_0x35be40,_0x4ac0f2,_0x32a592,_0x36c3fd,_0x539cfe,_0x448e0f,_0x14919a,_0xa66b37,_0x2c7167,_0x1778e0,_0x4174ff,_0x1d1f11,_0x258b0e,_0x1234aa){const _0x12cad8=_0x566993,_0x41c5a3=this;_0x41c5a3['currentUser']=_0x4174ff['getCurrentUser'](),_0x41c5a3[_0x12cad8('0x1d4a')]=[],_0x41c5a3['setting']=_0x258b0e,_0x41c5a3['license']=_0x1d1f11,_0x41c5a3[_0x12cad8('0x1dc1')]=_0x1234aa,_0x41c5a3['hasModulePermissions']={},_0x41c5a3[_0x12cad8('0x644')]=_0x41c5a3[_0x12cad8('0x251')]&&_0x41c5a3['setting'][_0x12cad8('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41c5a3[_0x12cad8('0x20d6')]=_0x12cad8('0x16c0'),_0x41c5a3['odbc']=angular[_0x12cad8('0x2e3')](_0x2c7167),_0x41c5a3[_0x12cad8('0x1911')]=_0xa66b37,_0x41c5a3[_0x12cad8('0x2168')]=![];!_0x41c5a3[_0x12cad8('0x1dd1')]&&(_0x41c5a3['odbc']={},_0x41c5a3[_0x12cad8('0x20d6')]=_0x12cad8('0x2d7'),_0x41c5a3[_0x12cad8('0x2168')]=!![]);_0x41c5a3['addNewOdbc']=_0x102316,_0x41c5a3[_0x12cad8('0x27b9')]=_0x1fa62e,_0x41c5a3[_0x12cad8('0x1393')]=_0x391ce1,_0x41c5a3['getDateFromString']=_0x113930,_0x41c5a3[_0x12cad8('0x18e2')]=_0x355a2d;function _0x102316(){const _0x411e04=_0x12cad8;_0x41c5a3['errors']=[],_0x1778e0[_0x411e04('0x24bf')][_0x411e04('0x1195')](_0x41c5a3[_0x411e04('0x1dd1')])[_0x411e04('0x1964')]['then'](function(_0x243308){const _0x4da0d6=_0x411e04;_0x41c5a3[_0x4da0d6('0x1911')][_0x4da0d6('0x1377')](_0x243308[_0x4da0d6('0xf1f')]()),_0x14919a['success']({'title':_0x4da0d6('0x2152'),'msg':_0x41c5a3['odbc']['name']?_0x41c5a3[_0x4da0d6('0x1dd1')][_0x4da0d6('0x10ad')]+_0x4da0d6('0x209a'):''}),_0x355a2d(_0x243308);})[_0x411e04('0x103c')](function(_0x5ddb4d){const _0x51fa9d=_0x411e04;if(_0x5ddb4d[_0x51fa9d('0x1e07')]&&_0x5ddb4d['data'][_0x51fa9d('0x1d4a')]&&_0x5ddb4d[_0x51fa9d('0x1e07')]['errors'][_0x51fa9d('0x543')]){_0x41c5a3[_0x51fa9d('0x1d4a')]=_0x5ddb4d[_0x51fa9d('0x1e07')][_0x51fa9d('0x1d4a')]||[{'message':_0x5ddb4d[_0x51fa9d('0x1b75')](),'type':_0x51fa9d('0x23a6')}];for(let _0x85ba29=0x0;_0x85ba29<_0x5ddb4d[_0x51fa9d('0x1e07')][_0x51fa9d('0x1d4a')][_0x51fa9d('0x543')];_0x85ba29+=0x1){_0x14919a[_0x51fa9d('0x15aa')]({'title':_0x5ddb4d[_0x51fa9d('0x1e07')][_0x51fa9d('0x1d4a')][_0x85ba29][_0x51fa9d('0x1810')],'msg':_0x5ddb4d['data'][_0x51fa9d('0x1d4a')][_0x85ba29][_0x51fa9d('0x67f')]});}}else _0x14919a[_0x51fa9d('0x15aa')]({'title':_0x5ddb4d['status']?_0x51fa9d('0x137')+_0x5ddb4d[_0x51fa9d('0x276f')]+_0x51fa9d('0x160c')+_0x5ddb4d[_0x51fa9d('0x2696')]:'api.squareOdbc.save','msg':_0x5ddb4d['data']?JSON[_0x51fa9d('0x100b')](_0x5ddb4d[_0x51fa9d('0x1e07')][_0x51fa9d('0x67f')]):_0x5ddb4d[_0x51fa9d('0x1b75')]()});});}function _0x1fa62e(){const _0x2accc3=_0x12cad8;_0x41c5a3[_0x2accc3('0x1d4a')]=[],_0x1778e0['squareOdbc']['update']({'id':_0x41c5a3['odbc']['id']},_0x41c5a3[_0x2accc3('0x1dd1')])[_0x2accc3('0x1964')][_0x2accc3('0x173b')](function(_0x4c0712){const _0xbeae5e=_0x2accc3,_0x3ef49e=_0x3c8d8a()[_0xbeae5e('0x18ab')](_0x41c5a3[_0xbeae5e('0x1911')],{'id':_0x4c0712['id']});_0x3ef49e&&_0x3c8d8a()['merge'](_0x3ef49e,_0x3c8d8a()[_0xbeae5e('0x2114')](_0x4c0712[_0xbeae5e('0xf1f')](),_0x3c8d8a()[_0xbeae5e('0x1d3e')](_0x3ef49e))),_0x14919a[_0xbeae5e('0xdfe')]({'title':_0xbeae5e('0x229d'),'msg':_0x41c5a3[_0xbeae5e('0x1dd1')][_0xbeae5e('0x10ad')]?_0x41c5a3[_0xbeae5e('0x1dd1')][_0xbeae5e('0x10ad')]+_0xbeae5e('0x2788'):''}),_0x355a2d(_0x4c0712);})[_0x2accc3('0x103c')](function(_0x5842f3){const _0x4ec943=_0x2accc3;if(_0x5842f3[_0x4ec943('0x1e07')]&&_0x5842f3[_0x4ec943('0x1e07')][_0x4ec943('0x1d4a')]&&_0x5842f3[_0x4ec943('0x1e07')]['errors']['length']){_0x41c5a3[_0x4ec943('0x1d4a')]=_0x5842f3[_0x4ec943('0x1e07')][_0x4ec943('0x1d4a')]||[{'message':_0x5842f3[_0x4ec943('0x1b75')](),'type':'api.squareOdbc.update'}];for(let _0x3da1c4=0x0;_0x3da1c4<_0x5842f3[_0x4ec943('0x1e07')][_0x4ec943('0x1d4a')]['length'];_0x3da1c4++){_0x14919a['error']({'title':_0x5842f3[_0x4ec943('0x1e07')][_0x4ec943('0x1d4a')][_0x3da1c4][_0x4ec943('0x1810')],'msg':_0x5842f3[_0x4ec943('0x1e07')]['errors'][_0x3da1c4][_0x4ec943('0x67f')]});}}else _0x14919a[_0x4ec943('0x15aa')]({'title':_0x5842f3[_0x4ec943('0x276f')]?'API:'+_0x5842f3[_0x4ec943('0x276f')]+'\x20-\x20'+_0x5842f3['statusText']:'api.squareOdbc.update','msg':_0x5842f3[_0x4ec943('0x1e07')]?JSON[_0x4ec943('0x100b')](_0x5842f3[_0x4ec943('0x1e07')]['message']):_0x5842f3[_0x4ec943('0x1b75')]()});});}function _0x391ce1(_0x1b3aa7){const _0x2ff0e9=_0x12cad8;_0x41c5a3['errors']=[];const _0x482c74=_0x36c3fd[_0x2ff0e9('0x1d02')]()[_0x2ff0e9('0x20d6')](_0x2ff0e9('0x8ef'))['content']('The\x20odbc\x20will\x20be\x20deleted.')[_0x2ff0e9('0x217')]('Delete\x20Odbc')['ok'](_0x2ff0e9('0x2373'))['cancel'](_0x2ff0e9('0x1d4e'))['targetEvent'](_0x1b3aa7);_0x36c3fd['show'](_0x482c74)[_0x2ff0e9('0x173b')](function(){const _0x159fd8=_0x2ff0e9;_0x1778e0['squareOdbc'][_0x159fd8('0x15e8')]({'id':_0x41c5a3['odbc']['id']})['$promise'][_0x159fd8('0x173b')](function(){const _0x5ed7ef=_0x159fd8;_0x3c8d8a()[_0x5ed7ef('0x1a8b')](_0x41c5a3['odbcs'],{'id':_0x41c5a3[_0x5ed7ef('0x1dd1')]['id']}),_0x14919a[_0x5ed7ef('0xdfe')]({'title':_0x5ed7ef('0x8bd'),'msg':(_0x41c5a3[_0x5ed7ef('0x1dd1')][_0x5ed7ef('0x10ad')]||_0x5ed7ef('0x1dd1'))+_0x5ed7ef('0x25d2')}),_0x355a2d(_0x41c5a3[_0x5ed7ef('0x1dd1')]);})[_0x159fd8('0x103c')](function(_0x38b237){const _0x1863f8=_0x159fd8;if(_0x38b237[_0x1863f8('0x1e07')]&&_0x38b237[_0x1863f8('0x1e07')]['errors']&&_0x38b237[_0x1863f8('0x1e07')][_0x1863f8('0x1d4a')]['length']){_0x41c5a3[_0x1863f8('0x1d4a')]=_0x38b237[_0x1863f8('0x1e07')][_0x1863f8('0x1d4a')]||[{'message':_0x38b237[_0x1863f8('0x1b75')](),'type':_0x1863f8('0x134b')}];for(let _0x284a2c=0x0;_0x284a2c<_0x38b237[_0x1863f8('0x1e07')][_0x1863f8('0x1d4a')][_0x1863f8('0x543')];_0x284a2c++){_0x14919a['error']({'title':_0x38b237[_0x1863f8('0x1e07')]['errors'][_0x284a2c][_0x1863f8('0x1810')],'msg':_0x38b237[_0x1863f8('0x1e07')]['errors'][_0x284a2c][_0x1863f8('0x67f')]});}}else _0x14919a['error']({'title':_0x38b237['status']?_0x1863f8('0x137')+_0x38b237[_0x1863f8('0x276f')]+_0x1863f8('0x160c')+_0x38b237[_0x1863f8('0x2696')]:_0x1863f8('0x134b'),'msg':_0x38b237['data']?JSON[_0x1863f8('0x100b')](_0x38b237[_0x1863f8('0x1e07')]['message']):_0x38b237[_0x1863f8('0x67f')]||_0x38b237[_0x1863f8('0x1b75')]()});});},function(){});}function _0x113930(_0x12e40d){return _0x12e40d===null?undefined:new Date(_0x12e40d);}function _0x355a2d(_0x2b5b65){const _0x2b8112=_0x12cad8;_0x36c3fd[_0x2b8112('0x1cf4')](_0x2b5b65);}}const _0x5019c0=_0xec5f7c,_0x657ba1=_0x21a6a1['p']+'src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html/dialog.html';_0x11b841[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$timeout','$translate',_0x566993('0x1911'),_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0x1f9'),'toasty',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x11b841(_0x155700,_0x14eff2,_0x2a6476,_0x56afaa,_0x2be371,_0x33ca84,_0x478a61,_0x7b241c,_0x3f4938,_0x456c23,_0x3a7b2a,_0x2fe611,_0x5df5ee,_0x43bdb3,_0x3e7070,_0x2d5c27,_0x16dce3){const _0x1538b7=_0x566993,_0x3cdb3e=this;_0x3cdb3e[_0x1538b7('0x1a29')]=_0x2d5c27,_0x3cdb3e['setting']=_0x16dce3,_0x3cdb3e[_0x1538b7('0x155f')]=_0x3e7070[_0x1538b7('0x14d4')](),_0x3cdb3e['odbcs']=_0x3f4938||{'count':0x0,'rows':[]},_0x3cdb3e[_0x1538b7('0x257b')]=_0x456c23,_0x3cdb3e['userProfileSection']=_0x3a7b2a&&_0x3a7b2a[_0x1538b7('0x1a2f')]==0x1?_0x3a7b2a[_0x1538b7('0x6aa')][0x0]:null,_0x3cdb3e[_0x1538b7('0x1dc1')]=_0x3e7070[_0x1538b7('0xde6')](_0x3cdb3e['userProfileSection']?_0x3cdb3e[_0x1538b7('0x170e')][_0x1538b7('0x1dc1')]:null),_0x3cdb3e['table']='odbcs',_0x3cdb3e['listOrder']='',_0x3cdb3e[_0x1538b7('0x2303')]=null,_0x3cdb3e['selectedODBC']=[],_0x3cdb3e[_0x1538b7('0xc49')]={'fields':_0x1538b7('0x1352'),'sort':_0x1538b7('0x1769'),'limit':0xa,'page':0x1},_0x3cdb3e[_0x1538b7('0x19eb')]=_0x329953,_0x3cdb3e[_0x1538b7('0xb03')]=_0x545149,_0x3cdb3e[_0x1538b7('0x1a20')]=_0x1653b9,_0x3cdb3e['success']=_0x2330a9,_0x3cdb3e[_0x1538b7('0x99c')]=_0x398ef8,_0x3cdb3e[_0x1538b7('0x271d')]=_0x23f988,_0x3cdb3e[_0x1538b7('0x1393')]=_0x15e613,_0x3cdb3e[_0x1538b7('0x1e43')]=_0x2b9565,_0x3cdb3e[_0x1538b7('0x2724')]=_0x27f3a1,_0x3cdb3e[_0x1538b7('0x1824')]=_0x4158fb,_0x3cdb3e['selectAllODBC']=_0xc81899;function _0x329953(_0x52ee99,_0x10fa8a){const _0x4fbad1=_0x1538b7;_0x2be371['show']({'controller':_0x4fbad1('0x2254'),'controllerAs':'vm','templateUrl':_0x657ba1,'parent':angular['element'](_0x33ca84[_0x4fbad1('0x1a5')]),'targetEvent':_0x10fa8a,'clickOutsideToClose':!![],'locals':{'odbc':_0x52ee99,'odbcs':_0x3cdb3e[_0x4fbad1('0x1911')][_0x4fbad1('0x6aa')],'license':_0x3cdb3e[_0x4fbad1('0x1a29')],'setting':null,'crudPermissions':_0x3cdb3e[_0x4fbad1('0x1dc1')]}});}function _0x545149(_0x18e655){const _0x18733b=_0x1538b7;return _0x2fe611[_0x18733b('0x24bf')]['test']({'id':_0x18e655['id']})['$promise'][_0x18733b('0x173b')](function(){const _0x424971=_0x18733b;_0x43bdb3['success']({'title':_0x424971('0x1568'),'msg':_0x424971('0x13fe')});})[_0x18733b('0x103c')](function(_0xf72218){const _0x1afda9=_0x18733b;_0x43bdb3[_0x1afda9('0x15aa')]({'title':'Square\x20ODBC\x20properly\x20tested','msg':_0xf72218[_0x1afda9('0x1e07')]?JSON[_0x1afda9('0x100b')](_0xf72218[_0x1afda9('0x1e07')]):_0xf72218[_0x1afda9('0x1b75')]()});});}function _0x1653b9(_0x1fc918,_0x533d06){const _0x312d25=_0x1538b7,_0xdc9f98=_0x2be371[_0x312d25('0x1d02')]()[_0x312d25('0x20d6')](_0x312d25('0x5bb')+_0x3c8d8a()[_0x312d25('0x10e')](_0x312d25('0x1dd1'))+'?')[_0x312d25('0xf8b')](''+(_0x1fc918[_0x312d25('0x10ad')]||_0x312d25('0x1dd1'))+_0x312d25('0x24be')+'\x20will\x20be\x20deleted.')[_0x312d25('0x217')](_0x312d25('0x669'))[_0x312d25('0x21de')](_0x533d06)['ok']('OK')[_0x312d25('0x1e1f')](_0x312d25('0x468'));_0x2be371[_0x312d25('0x1cb7')](_0xdc9f98)[_0x312d25('0x173b')](function(){_0x15e613(_0x1fc918);},function(){const _0x311527=_0x312d25;console[_0x311527('0xe37')]('CANCEL');});}let _0x392b16=!![],_0x2e5438=0x1;_0x155700[_0x1538b7('0x1bdb')]('vm.query.filter',function(_0x356bbc,_0x188a2a){const _0x5ccd1f=_0x1538b7;_0x392b16?_0x478a61(function(){_0x392b16=![];}):(!_0x188a2a&&(_0x2e5438=_0x3cdb3e[_0x5ccd1f('0xc49')][_0x5ccd1f('0x182e')]),_0x356bbc!==_0x188a2a&&(_0x3cdb3e[_0x5ccd1f('0xc49')]['page']=0x1),!_0x356bbc&&(_0x3cdb3e[_0x5ccd1f('0xc49')]['page']=_0x2e5438),_0x3cdb3e['getODBC']());});function _0x2330a9(_0x40115b){const _0x4e82ab=_0x1538b7;_0x3cdb3e[_0x4e82ab('0x1911')]=_0x40115b||{'count':0x0,'rows':[]};}function _0x398ef8(){const _0x536b99=_0x1538b7;_0x3cdb3e[_0x536b99('0xc49')][_0x536b99('0x17f0')]=(_0x3cdb3e[_0x536b99('0xc49')][_0x536b99('0x182e')]-0x1)*_0x3cdb3e[_0x536b99('0xc49')][_0x536b99('0x3e')],_0x3e7070['hasRole']('admin')?_0x3cdb3e[_0x536b99('0x2219')]=_0x2fe611[_0x536b99('0x24bf')][_0x536b99('0x1d97')](_0x3cdb3e[_0x536b99('0xc49')],_0x2330a9)[_0x536b99('0x1964')]:(_0x3cdb3e[_0x536b99('0xc49')]['id']=_0x3cdb3e[_0x536b99('0x257b')]['id'],_0x3cdb3e[_0x536b99('0xc49')][_0x536b99('0x17c9')]=_0x536b99('0x1597'),_0x3cdb3e[_0x536b99('0x2219')]=_0x2fe611[_0x536b99('0x257b')][_0x536b99('0x135b')](_0x3cdb3e['query'],_0x2330a9)[_0x536b99('0x1964')]);}function _0x23f988(_0x53ef19,_0x2f3957){const _0xc8d4f6=_0x1538b7;_0x2be371['show']({'controller':_0xc8d4f6('0x2254'),'controllerAs':'vm','templateUrl':_0x657ba1,'parent':angular[_0xc8d4f6('0xb6d')](_0x33ca84[_0xc8d4f6('0x1a5')]),'targetEvent':_0x53ef19,'clickOutsideToClose':!![],'locals':{'odbc':_0x2f3957,'odbcs':_0x3cdb3e[_0xc8d4f6('0x1911')][_0xc8d4f6('0x6aa')],'license':_0x3cdb3e[_0xc8d4f6('0x1a29')],'setting':_0x3cdb3e[_0xc8d4f6('0x251')],'crudPermissions':_0x3cdb3e[_0xc8d4f6('0x1dc1')]}});}function _0x15e613(_0x4447b9){const _0x2f0fc5=_0x1538b7;_0x2fe611['squareOdbc']['delete']({'id':_0x4447b9['id']})[_0x2f0fc5('0x1964')][_0x2f0fc5('0x173b')](function(){const _0x2d1d05=_0x2f0fc5;_0x3c8d8a()[_0x2d1d05('0x1a8b')](_0x3cdb3e[_0x2d1d05('0x1911')]['rows'],{'id':_0x4447b9['id']}),_0x3cdb3e[_0x2d1d05('0x1911')][_0x2d1d05('0x1a2f')]-=0x1,!_0x3cdb3e[_0x2d1d05('0x1911')][_0x2d1d05('0x6aa')][_0x2d1d05('0x543')]&&_0x3cdb3e[_0x2d1d05('0x99c')](),_0x43bdb3[_0x2d1d05('0xdfe')]({'title':_0x3c8d8a()[_0x2d1d05('0x10e')](_0x2d1d05('0x43'))+'\x20deleted!','msg':_0x4447b9['name']?_0x4447b9[_0x2d1d05('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x2f0fc5('0x103c')](function(_0x57cf31){const _0x2769e7=_0x2f0fc5;if(_0x57cf31['data']&&_0x57cf31[_0x2769e7('0x1e07')]['errors']&&_0x57cf31[_0x2769e7('0x1e07')][_0x2769e7('0x1d4a')]['length']){_0x3cdb3e[_0x2769e7('0x1d4a')]=_0x57cf31['data'][_0x2769e7('0x1d4a')]||[{'message':_0x57cf31[_0x2769e7('0x1b75')](),'type':_0x2769e7('0x104b')}];for(let _0x220cf3=0x0;_0x220cf3<_0x57cf31[_0x2769e7('0x1e07')][_0x2769e7('0x1d4a')][_0x2769e7('0x543')];_0x220cf3++){_0x43bdb3[_0x2769e7('0x15aa')]({'title':_0x57cf31['data'][_0x2769e7('0x1d4a')][_0x220cf3]['type'],'msg':_0x57cf31[_0x2769e7('0x1e07')][_0x2769e7('0x1d4a')][_0x220cf3][_0x2769e7('0x67f')]});}}else _0x43bdb3['error']({'title':_0x57cf31[_0x2769e7('0x276f')]?'API:'+_0x57cf31['status']+_0x2769e7('0x160c')+_0x57cf31[_0x2769e7('0x2696')]:_0x2769e7('0x104b'),'msg':_0x57cf31[_0x2769e7('0x1e07')]?JSON[_0x2769e7('0x100b')](_0x57cf31[_0x2769e7('0x1e07')]['message']):_0x57cf31['message']||_0x57cf31['toString']()});});}function _0x2b9565(){const _0xd73c5f=_0x1538b7,_0xe8c0bd=angular[_0xd73c5f('0x2e3')](_0x3cdb3e[_0xd73c5f('0x1ed0')]);return _0x3cdb3e[_0xd73c5f('0x1ed0')]=[],_0xe8c0bd;}function _0x27f3a1(_0x16b522){const _0x5bc0b3=_0x1538b7,_0x4641c1=_0x2be371[_0x5bc0b3('0x1d02')]()[_0x5bc0b3('0x20d6')](_0x5bc0b3('0x100e'))['htmlContent'](_0x5bc0b3('0x15b9')+_0x3cdb3e['selectedODBC']['length']+_0x5bc0b3('0xcb4')+'\x20will\x20be\x20deleted.')[_0x5bc0b3('0x217')]('delete\x20Odbcs')['targetEvent'](_0x16b522)['ok']('OK')['cancel'](_0x5bc0b3('0x468'));_0x2be371[_0x5bc0b3('0x1cb7')](_0x4641c1)[_0x5bc0b3('0x173b')](function(){const _0x445b10=_0x5bc0b3;_0x3cdb3e[_0x445b10('0x1ed0')][_0x445b10('0xa6a')](function(_0x5a3af1){_0x15e613(_0x5a3af1);}),_0x3cdb3e[_0x445b10('0x1ed0')]=[];});}function _0x4158fb(){const _0x5355dc=_0x1538b7;_0x3cdb3e[_0x5355dc('0x1ed0')]=[];}function _0xc81899(){const _0x36f8cc=_0x1538b7;_0x3cdb3e[_0x36f8cc('0x1ed0')]=_0x3cdb3e[_0x36f8cc('0x1911')][_0x36f8cc('0x6aa')];}}const _0x3d56b2=_0x11b841;_0x1f7fd1['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1c41'),_0x566993('0x141c'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x1f7fd1(_0x2d077d,_0x2ae64b,_0x47c475,_0x78211,_0x54cb15,_0x48c924,_0xcf4ace,_0x576aa1,_0x469c99,_0x5d7679,_0x1beb91,_0x1725b6,_0x487510,_0x41fb04){const _0x46f72e=_0x566993,_0x283a95=this;_0x283a95[_0x46f72e('0x155f')]=_0x1beb91[_0x46f72e('0x14d4')](),_0x283a95[_0x46f72e('0x1d4a')]=[],_0x283a95[_0x46f72e('0x251')]=_0x487510,_0x283a95['license']=_0x1725b6,_0x283a95[_0x46f72e('0x1dc1')]=_0x41fb04,_0x283a95['hasModulePermissions']={},_0x283a95[_0x46f72e('0x644')]=_0x283a95[_0x46f72e('0x251')]&&_0x283a95[_0x46f72e('0x251')][_0x46f72e('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x283a95[_0x46f72e('0x20d6')]=_0x46f72e('0x373'),_0x283a95['squareRecording']=angular[_0x46f72e('0x2e3')](_0x469c99),_0x283a95[_0x46f72e('0x1c41')]=_0x576aa1,_0x283a95[_0x46f72e('0x670')]=![];!_0x283a95['squareRecording']&&(_0x283a95['squareRecording']={},_0x283a95[_0x46f72e('0x20d6')]='CALLYSQUARE.NEW_SQUARERECORDING',_0x283a95['newSquareRecording']=!![]);_0x283a95[_0x46f72e('0xc9e')]=_0x401967,_0x283a95[_0x46f72e('0x22ff')]=_0x247a5c,_0x283a95[_0x46f72e('0x860')]=_0x1d46ca,_0x283a95['getDateFromString']=_0x1fb2f1,_0x283a95[_0x46f72e('0x18e2')]=_0x7a606f;function _0x401967(){const _0xb6cae9=_0x46f72e;_0x283a95['errors']=[],_0x5d7679[_0xb6cae9('0x141c')][_0xb6cae9('0x1195')](_0x283a95[_0xb6cae9('0x141c')])[_0xb6cae9('0x1964')][_0xb6cae9('0x173b')](function(_0x1da9d0){const _0x233e0a=_0xb6cae9;_0x283a95['squareRecordings'][_0x233e0a('0x1377')](_0x1da9d0[_0x233e0a('0xf1f')]()),_0xcf4ace[_0x233e0a('0xdfe')]({'title':_0x233e0a('0x201b'),'msg':_0x283a95[_0x233e0a('0x141c')]['name']?_0x283a95[_0x233e0a('0x141c')][_0x233e0a('0x10ad')]+_0x233e0a('0x209a'):''}),_0x7a606f(_0x1da9d0);})[_0xb6cae9('0x103c')](function(_0x18af15){const _0xc47da7=_0xb6cae9;if(_0x18af15[_0xc47da7('0x1e07')]&&_0x18af15[_0xc47da7('0x1e07')]['errors']&&_0x18af15[_0xc47da7('0x1e07')]['errors']['length']){_0x283a95[_0xc47da7('0x1d4a')]=_0x18af15['data'][_0xc47da7('0x1d4a')]||[{'message':_0x18af15[_0xc47da7('0x1b75')](),'type':_0xc47da7('0x11b3')}];for(let _0x442f71=0x0;_0x442f71<_0x18af15[_0xc47da7('0x1e07')][_0xc47da7('0x1d4a')][_0xc47da7('0x543')];_0x442f71+=0x1){_0xcf4ace[_0xc47da7('0x15aa')]({'title':_0x18af15['data']['errors'][_0x442f71][_0xc47da7('0x1810')],'msg':_0x18af15[_0xc47da7('0x1e07')][_0xc47da7('0x1d4a')][_0x442f71][_0xc47da7('0x67f')]});}}else _0xcf4ace['error']({'title':_0x18af15['status']?_0xc47da7('0x137')+_0x18af15[_0xc47da7('0x276f')]+_0xc47da7('0x160c')+_0x18af15[_0xc47da7('0x2696')]:_0xc47da7('0x11b3'),'msg':_0x18af15[_0xc47da7('0x1e07')]?JSON['stringify'](_0x18af15['data'][_0xc47da7('0x67f')]):_0x18af15[_0xc47da7('0x1b75')]()});});}function _0x247a5c(){const _0x1be3ce=_0x46f72e;_0x283a95[_0x1be3ce('0x1d4a')]=[],_0x5d7679[_0x1be3ce('0x141c')][_0x1be3ce('0x1842')]({'id':_0x283a95['squareRecording']['id']},_0x283a95[_0x1be3ce('0x141c')])[_0x1be3ce('0x1964')][_0x1be3ce('0x173b')](function(_0x338579){const _0x51807e=_0x1be3ce,_0x5df3e6=_0x3c8d8a()['find'](_0x283a95['squareRecordings'],{'id':_0x338579['id']});_0x5df3e6&&_0x3c8d8a()[_0x51807e('0x9ef')](_0x5df3e6,_0x3c8d8a()[_0x51807e('0x2114')](_0x338579[_0x51807e('0xf1f')](),_0x3c8d8a()['keys'](_0x5df3e6))),_0xcf4ace[_0x51807e('0xdfe')]({'title':_0x51807e('0x1c6a'),'msg':_0x283a95[_0x51807e('0x141c')][_0x51807e('0x10ad')]?_0x283a95['squareRecording']['name']+_0x51807e('0x2788'):''}),_0x7a606f(_0x338579);})[_0x1be3ce('0x103c')](function(_0x45eb89){const _0x31e3f7=_0x1be3ce;if(_0x45eb89['data']&&_0x45eb89['data'][_0x31e3f7('0x1d4a')]&&_0x45eb89[_0x31e3f7('0x1e07')][_0x31e3f7('0x1d4a')][_0x31e3f7('0x543')]){_0x283a95['errors']=_0x45eb89[_0x31e3f7('0x1e07')][_0x31e3f7('0x1d4a')]||[{'message':_0x45eb89[_0x31e3f7('0x1b75')](),'type':_0x31e3f7('0x5e5')}];for(let _0x46dd0a=0x0;_0x46dd0a<_0x45eb89['data']['errors'][_0x31e3f7('0x543')];_0x46dd0a++){_0xcf4ace['error']({'title':_0x45eb89[_0x31e3f7('0x1e07')][_0x31e3f7('0x1d4a')][_0x46dd0a]['type'],'msg':_0x45eb89[_0x31e3f7('0x1e07')][_0x31e3f7('0x1d4a')][_0x46dd0a]['message']});}}else _0xcf4ace['error']({'title':_0x45eb89[_0x31e3f7('0x276f')]?'API:'+_0x45eb89[_0x31e3f7('0x276f')]+_0x31e3f7('0x160c')+_0x45eb89['statusText']:'api.squareRecording.update','msg':_0x45eb89['data']?JSON[_0x31e3f7('0x100b')](_0x45eb89[_0x31e3f7('0x1e07')][_0x31e3f7('0x67f')]):_0x45eb89[_0x31e3f7('0x1b75')]()});});}function _0x1d46ca(_0x1b4bb9){const _0x1d5123=_0x46f72e;_0x283a95[_0x1d5123('0x1d4a')]=[];const _0x5096cd=_0x78211[_0x1d5123('0x1d02')]()[_0x1d5123('0x20d6')](_0x1d5123('0x8ef'))[_0x1d5123('0x732')](_0x1d5123('0x1355'))[_0x1d5123('0x217')](_0x1d5123('0x1a64'))['ok'](_0x1d5123('0x2373'))[_0x1d5123('0x1e1f')](_0x1d5123('0x1d4e'))[_0x1d5123('0x21de')](_0x1b4bb9);_0x78211['show'](_0x5096cd)[_0x1d5123('0x173b')](function(){const _0x5318e0=_0x1d5123;_0x5d7679['squareRecording']['delete']({'id':_0x283a95[_0x5318e0('0x141c')]['id']})['$promise'][_0x5318e0('0x173b')](function(){const _0x32ec09=_0x5318e0;_0x3c8d8a()[_0x32ec09('0x1a8b')](_0x283a95[_0x32ec09('0x1c41')],{'id':_0x283a95[_0x32ec09('0x141c')]['id']}),_0xcf4ace['success']({'title':_0x32ec09('0x1d6c'),'msg':(_0x283a95[_0x32ec09('0x141c')][_0x32ec09('0x10ad')]||'squareRecording')+'\x20has\x20been\x20deleted!'}),_0x7a606f(_0x283a95[_0x32ec09('0x141c')]);})[_0x5318e0('0x103c')](function(_0x792fa9){const _0x3d6d18=_0x5318e0;if(_0x792fa9['data']&&_0x792fa9[_0x3d6d18('0x1e07')][_0x3d6d18('0x1d4a')]&&_0x792fa9[_0x3d6d18('0x1e07')][_0x3d6d18('0x1d4a')][_0x3d6d18('0x543')]){_0x283a95[_0x3d6d18('0x1d4a')]=_0x792fa9['data'][_0x3d6d18('0x1d4a')]||[{'message':_0x792fa9[_0x3d6d18('0x1b75')](),'type':_0x3d6d18('0x1f92')}];for(let _0x2ace9=0x0;_0x2ace9<_0x792fa9['data'][_0x3d6d18('0x1d4a')][_0x3d6d18('0x543')];_0x2ace9++){_0xcf4ace['error']({'title':_0x792fa9[_0x3d6d18('0x1e07')][_0x3d6d18('0x1d4a')][_0x2ace9][_0x3d6d18('0x1810')],'msg':_0x792fa9['data'][_0x3d6d18('0x1d4a')][_0x2ace9]['message']});}}else _0xcf4ace['error']({'title':_0x792fa9[_0x3d6d18('0x276f')]?_0x3d6d18('0x137')+_0x792fa9[_0x3d6d18('0x276f')]+_0x3d6d18('0x160c')+_0x792fa9[_0x3d6d18('0x2696')]:_0x3d6d18('0x1f92'),'msg':_0x792fa9[_0x3d6d18('0x1e07')]?JSON[_0x3d6d18('0x100b')](_0x792fa9[_0x3d6d18('0x1e07')][_0x3d6d18('0x67f')]):_0x792fa9[_0x3d6d18('0x67f')]||_0x792fa9[_0x3d6d18('0x1b75')]()});});},function(){});}function _0x1fb2f1(_0x3de283){return _0x3de283===null?undefined:new Date(_0x3de283);}function _0x7a606f(_0x3e9cf5){_0x78211['hide'](_0x3e9cf5);}}const _0x29a9c3=_0x1f7fd1,_0x318487=_0x21a6a1['p']+_0x566993('0x25c5');_0x54b40c[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog','$document',_0x566993('0x24b5'),_0x566993('0x638'),'squareRecordings',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),'Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0x54b40c(_0x1c86c8,_0x348dbe,_0x3ae555,_0x1814e0,_0x19b569,_0x5781a4,_0x101311,_0x2a3bd9,_0x294d72,_0x2c93e2,_0x43f8a3,_0x34cbcf,_0x6aba85,_0x1fe871,_0x157298,_0x14f464,_0x3bdde1){const _0x3c2482=_0x566993,_0x4146fb=this;_0x4146fb['license']=_0x14f464,_0x4146fb[_0x3c2482('0x251')]=_0x3bdde1,_0x4146fb['currentUser']=_0x157298[_0x3c2482('0x14d4')](),_0x4146fb[_0x3c2482('0x1c41')]=_0x294d72||{'count':0x0,'rows':[]},_0x4146fb[_0x3c2482('0x257b')]=_0x2c93e2,_0x4146fb[_0x3c2482('0x170e')]=_0x43f8a3&&_0x43f8a3['count']==0x1?_0x43f8a3[_0x3c2482('0x6aa')][0x0]:null,_0x4146fb[_0x3c2482('0x1dc1')]=_0x157298[_0x3c2482('0xde6')](_0x4146fb[_0x3c2482('0x170e')]?_0x4146fb[_0x3c2482('0x170e')][_0x3c2482('0x1dc1')]:null),_0x4146fb[_0x3c2482('0xdf9')]=_0x3c2482('0x1c41'),_0x4146fb[_0x3c2482('0x14d6')]='',_0x4146fb['listOrderAsc']=null,_0x4146fb['selectedSquareRecordings']=[],_0x4146fb[_0x3c2482('0xc49')]={'fields':_0x3c2482('0x1576'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4146fb['downloadfile2']=_0xa15599,_0x4146fb[_0x3c2482('0x1a20')]=_0xbcfc33,_0x4146fb['success']=_0x5936eb,_0x4146fb[_0x3c2482('0x1f5e')]=_0xc9dd17,_0x4146fb['createOrEditSquareRecording']=_0x2afb64,_0x4146fb[_0x3c2482('0x860')]=_0x1c064c,_0x4146fb['exportSelectedSquareRecordings']=_0xbea9a1,_0x4146fb[_0x3c2482('0x1b9f')]=_0x319934,_0x4146fb['deselectSquareRecordings']=_0x426c8e,_0x4146fb[_0x3c2482('0xb95')]=_0x3fb3d4;function _0xa15599(_0xe5235b){const _0x286e72=_0x3c2482;return _0x34cbcf[_0x286e72('0x141c')][_0x286e72('0xfce')]({'id':_0xe5235b['id']})['$promise']['then'](function(_0x36ad6e){const _0x415675=_0x286e72,_0x474f1f=[_0x36ad6e[_0x415675('0x1c22')]];let _0x23eaab='download';const _0x51dbdd=new Blob(_0x474f1f,{'type':_0x36ad6e['type']});_0x23eaab=_0xe5235b[_0x415675('0x207c')]+_0xe5235b['format'];const _0x46c2c7=window[_0x415675('0x222a')][_0x415675('0x1258')]('a');_0x46c2c7[_0x415675('0x11c3')](_0x415675('0x165c'),URL[_0x415675('0x1466')](_0x51dbdd)),_0x46c2c7[_0x415675('0x11c3')]('download',_0x23eaab),document[_0x415675('0x1a5')][_0x415675('0x1f8d')](_0x46c2c7),_0x46c2c7['click']();})['catch'](function(_0x515456){const _0x164eb2=_0x286e72;if(_0x515456[_0x164eb2('0x1e07')]&&_0x515456['data']['errors']&&_0x515456[_0x164eb2('0x1e07')][_0x164eb2('0x1d4a')][_0x164eb2('0x543')])for(let _0x3e87d7=0x0;_0x3e87d7<_0x515456[_0x164eb2('0x1e07')][_0x164eb2('0x1d4a')]['length'];_0x3e87d7++){_0x1fe871[_0x164eb2('0x15aa')]({'title':_0x515456[_0x164eb2('0x1e07')]['errors'][_0x3e87d7][_0x164eb2('0x1810')],'msg':_0x515456[_0x164eb2('0x1e07')][_0x164eb2('0x1d4a')][_0x3e87d7][_0x164eb2('0x67f')]});}else _0x1fe871['error']({'title':_0x515456[_0x164eb2('0x276f')]?_0x164eb2('0x137')+_0x515456[_0x164eb2('0x276f')]+'\x20-\x20'+_0x515456['statusText']:_0x164eb2('0x11b3'),'msg':_0x515456['data']?JSON['stringify'](_0x515456['data'][_0x164eb2('0x67f')]):_0x515456['toString']()});});}function _0xbcfc33(_0x494299,_0x5f32a8){const _0x2d38ee=_0x3c2482,_0x5ea6ce=_0x19b569[_0x2d38ee('0x1d02')]()[_0x2d38ee('0x20d6')](_0x2d38ee('0x5bb')+_0x3c8d8a()[_0x2d38ee('0x10e')]('squareRecording')+'?')[_0x2d38ee('0xf8b')](_0x2d38ee('0x15b9')+(_0x494299[_0x2d38ee('0x10ad')]||'squareRecording')+_0x2d38ee('0x24be')+_0x2d38ee('0xd23'))['ariaLabel'](_0x2d38ee('0x53a'))[_0x2d38ee('0x21de')](_0x5f32a8)['ok']('OK')[_0x2d38ee('0x1e1f')](_0x2d38ee('0x468'));_0x19b569[_0x2d38ee('0x1cb7')](_0x5ea6ce)[_0x2d38ee('0x173b')](function(){_0x1c064c(_0x494299);},function(){const _0x38e426=_0x2d38ee;console[_0x38e426('0xe37')](_0x38e426('0x468'));});}let _0x14a96c=!![],_0x3e7a59=0x1;_0x1c86c8[_0x3c2482('0x1bdb')](_0x3c2482('0x157b'),function(_0xd6b142,_0x451551){const _0x4ef63d=_0x3c2482;_0x14a96c?_0x101311(function(){_0x14a96c=![];}):(!_0x451551&&(_0x3e7a59=_0x4146fb[_0x4ef63d('0xc49')][_0x4ef63d('0x182e')]),_0xd6b142!==_0x451551&&(_0x4146fb[_0x4ef63d('0xc49')][_0x4ef63d('0x182e')]=0x1),!_0xd6b142&&(_0x4146fb[_0x4ef63d('0xc49')][_0x4ef63d('0x182e')]=_0x3e7a59),_0x4146fb[_0x4ef63d('0x1f5e')]());});function _0x5936eb(_0x152d05){_0x4146fb['squareRecordings']=_0x152d05||{'count':0x0,'rows':[]};}function _0xc9dd17(){const _0x30bbc7=_0x3c2482;_0x4146fb[_0x30bbc7('0xc49')]['offset']=(_0x4146fb[_0x30bbc7('0xc49')][_0x30bbc7('0x182e')]-0x1)*_0x4146fb['query'][_0x30bbc7('0x3e')],_0x157298[_0x30bbc7('0x1b4e')](_0x30bbc7('0x79b'))?_0x4146fb[_0x30bbc7('0x2219')]=_0x34cbcf[_0x30bbc7('0x141c')][_0x30bbc7('0x1d97')](_0x4146fb[_0x30bbc7('0xc49')],_0x5936eb)['$promise']:(_0x4146fb['query']['id']=_0x4146fb['userProfile']['id'],_0x4146fb[_0x30bbc7('0xc49')][_0x30bbc7('0x17c9')]=_0x30bbc7('0x11e5'),_0x4146fb[_0x30bbc7('0x2219')]=_0x34cbcf['userProfile']['getResources'](_0x4146fb[_0x30bbc7('0xc49')],_0x5936eb)['$promise']);}function _0x2afb64(_0x2cea1b,_0x35a6aa){const _0x205fb1=_0x3c2482;_0x19b569['show']({'controller':'CreateOrEditSquareRecordingDialogController','controllerAs':'vm','templateUrl':_0x318487,'parent':angular['element'](_0x5781a4[_0x205fb1('0x1a5')]),'targetEvent':_0x2cea1b,'clickOutsideToClose':!![],'locals':{'squareRecording':_0x35a6aa,'squareRecordings':_0x4146fb['squareRecordings'][_0x205fb1('0x6aa')],'license':_0x4146fb['license'],'setting':_0x4146fb[_0x205fb1('0x251')],'crudPermissions':_0x4146fb[_0x205fb1('0x1dc1')]}});}function _0x1c064c(_0x529a29){const _0x519b86=_0x3c2482;_0x34cbcf[_0x519b86('0x141c')][_0x519b86('0x15e8')]({'id':_0x529a29['id']})[_0x519b86('0x1964')][_0x519b86('0x173b')](function(){const _0x3705b1=_0x519b86;_0x3c8d8a()[_0x3705b1('0x1a8b')](_0x4146fb[_0x3705b1('0x1c41')][_0x3705b1('0x6aa')],{'id':_0x529a29['id']}),_0x4146fb[_0x3705b1('0x1c41')][_0x3705b1('0x1a2f')]-=0x1,!_0x4146fb['squareRecordings'][_0x3705b1('0x6aa')][_0x3705b1('0x543')]&&_0x4146fb['getSquareRecordings'](),_0x1fe871['success']({'title':_0x3c8d8a()[_0x3705b1('0x10e')]('SquareRecording')+'\x20deleted!','msg':_0x529a29[_0x3705b1('0x10ad')]?_0x529a29[_0x3705b1('0x10ad')]+_0x3705b1('0x25d2'):''});})[_0x519b86('0x103c')](function(_0xc8bee5){const _0x51c3c9=_0x519b86;if(_0xc8bee5['data']&&_0xc8bee5['data']['errors']&&_0xc8bee5[_0x51c3c9('0x1e07')][_0x51c3c9('0x1d4a')][_0x51c3c9('0x543')]){_0x4146fb['errors']=_0xc8bee5['data'][_0x51c3c9('0x1d4a')]||[{'message':_0xc8bee5[_0x51c3c9('0x1b75')](),'type':'SYSTEM:DELETEsquareRecording'}];for(let _0x3b0349=0x0;_0x3b0349<_0xc8bee5[_0x51c3c9('0x1e07')][_0x51c3c9('0x1d4a')][_0x51c3c9('0x543')];_0x3b0349++){_0x1fe871['error']({'title':_0xc8bee5[_0x51c3c9('0x1e07')][_0x51c3c9('0x1d4a')][_0x3b0349]['type'],'msg':_0xc8bee5[_0x51c3c9('0x1e07')][_0x51c3c9('0x1d4a')][_0x3b0349]['message']});}}else _0x1fe871['error']({'title':_0xc8bee5['status']?'API:'+_0xc8bee5[_0x51c3c9('0x276f')]+_0x51c3c9('0x160c')+_0xc8bee5[_0x51c3c9('0x2696')]:_0x51c3c9('0x1bd8'),'msg':_0xc8bee5[_0x51c3c9('0x1e07')]?JSON['stringify'](_0xc8bee5['data'][_0x51c3c9('0x67f')]):_0xc8bee5['message']||_0xc8bee5[_0x51c3c9('0x1b75')]()});});}function _0xbea9a1(){const _0x27d154=_0x3c2482,_0x7bc187=angular[_0x27d154('0x2e3')](_0x4146fb[_0x27d154('0x24cd')]);return _0x4146fb[_0x27d154('0x24cd')]=[],_0x7bc187;}function _0x319934(_0x2c3334){const _0x597b4a=_0x3c2482,_0xded5f3=_0x19b569[_0x597b4a('0x1d02')]()[_0x597b4a('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20squareRecordings?')['htmlContent'](_0x597b4a('0x15b9')+_0x4146fb[_0x597b4a('0x24cd')][_0x597b4a('0x543')]+_0x597b4a('0xcb4')+_0x597b4a('0xd23'))[_0x597b4a('0x217')]('delete\x20SquareRecordings')['targetEvent'](_0x2c3334)['ok']('OK')['cancel']('CANCEL');_0x19b569[_0x597b4a('0x1cb7')](_0xded5f3)['then'](function(){const _0x576e9c=_0x597b4a;_0x4146fb[_0x576e9c('0x24cd')][_0x576e9c('0xa6a')](function(_0x1902b2){_0x1c064c(_0x1902b2);}),_0x4146fb[_0x576e9c('0x24cd')]=[];});}function _0x426c8e(){const _0x4cb456=_0x3c2482;_0x4146fb[_0x4cb456('0x24cd')]=[];}function _0x3fb3d4(){_0x4146fb['selectedSquareRecordings']=_0x4146fb['squareRecordings']['rows'];}}const _0x1176a9=_0x54b40c;_0x5921ef['$inject']=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x5921ef(_0x2e3fd2,_0x4831c3){const _0x3ec032=_0x566993;_0x2e3fd2[_0x3ec032('0x1a49')](_0x3ec032('0x1e4'),{'abstract':!![],'url':'/callysquare'})[_0x3ec032('0x1a49')](_0x3ec032('0x1b78'),{'url':_0x3ec032('0x31'),'views':{'content@app':{'templateUrl':_0xa0b0bf,'controller':_0x3ec032('0x367')}},'resolve':{'odbcs':['apiResolver',_0x3ec032('0x1600'),function(_0x5b614b,_0x4a8cd4){const _0x21b076=_0x3ec032;return _0x4a8cd4[_0x21b076('0x1b4e')](_0x21b076('0x79b'))?_0x5b614b[_0x21b076('0x155b')](_0x21b076('0x190e'),{'fields':'createdAt,updatedAt,id,name,dsn,description','sort':_0x21b076('0x1769'),'limit':0xa,'offset':0x0}):_0x5b614b[_0x21b076('0x155b')](_0x21b076('0x14b3'),{'id':_0x4a8cd4[_0x21b076('0x14d4')]()[_0x21b076('0x1946')],'section':_0x21b076('0x1597'),'fields':'createdAt,updatedAt,id,name,dsn,description','sort':_0x21b076('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3ec032('0x2401'),_0x3ec032('0x1600'),function(_0x42edcd,_0x3871ee){const _0x37c6ed=_0x3ec032;return _0x3871ee[_0x37c6ed('0x1b4e')](_0x37c6ed('0x79b'))?null:_0x42edcd[_0x37c6ed('0x155b')](_0x37c6ed('0x1f20'),{'fields':_0x37c6ed('0x19dd'),'id':_0x3871ee[_0x37c6ed('0x14d4')]()[_0x37c6ed('0x1946')]});}],'userProfileSection':[_0x3ec032('0x2401'),'Auth',function(_0x1041cb,_0x2b51a8){const _0x1580d9=_0x3ec032;return _0x2b51a8[_0x1580d9('0x1b4e')](_0x1580d9('0x79b'))?null:_0x1041cb['resolve'](_0x1580d9('0x40'),{'fields':_0x1580d9('0x1348'),'userProfileId':_0x2b51a8[_0x1580d9('0x14d4')]()[_0x1580d9('0x1946')],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':_0x3ec032('0x20f2')})['state'](_0x3ec032('0x1995'),{'url':'/squareRecordings','views':{'content@app':{'templateUrl':_0x4eb062,'controller':_0x3ec032('0x245c')}},'resolve':{'squareRecordings':[_0x3ec032('0x2401'),_0x3ec032('0x1600'),function(_0x57c749,_0x132111){const _0xf4ec61=_0x3ec032;return _0x132111[_0xf4ec61('0x1b4e')](_0xf4ec61('0x79b'))?_0x57c749[_0xf4ec61('0x155b')]('squareRecording@get',{'fields':_0xf4ec61('0x1576'),'sort':_0xf4ec61('0x1769'),'limit':0xa,'offset':0x0}):_0x57c749[_0xf4ec61('0x155b')](_0xf4ec61('0x14b3'),{'id':_0x132111['getCurrentUser']()[_0xf4ec61('0x1946')],'section':'SquareRecordings','fields':'createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','sort':_0xf4ec61('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3ec032('0x2401'),_0x3ec032('0x1600'),function(_0x183bc9,_0x197ef0){const _0x21d184=_0x3ec032;return _0x197ef0[_0x21d184('0x1b4e')](_0x21d184('0x79b'))?null:_0x183bc9[_0x21d184('0x155b')](_0x21d184('0x1f20'),{'fields':_0x21d184('0x19dd'),'id':_0x197ef0[_0x21d184('0x14d4')]()['userProfileId']});}],'userProfileSection':['apiResolver','Auth',function(_0x4b5a3c,_0x1e7165){const _0x5cb863=_0x3ec032;return _0x1e7165[_0x5cb863('0x1b4e')]('admin')?null:_0x4b5a3c[_0x5cb863('0x155b')](_0x5cb863('0x40'),{'fields':_0x5cb863('0x1348'),'userProfileId':_0x1e7165['getCurrentUser']()['userProfileId'],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':_0x3ec032('0x20f2')}),_0x4831c3[_0x3ec032('0x1b1a')]('app/main/apps/callysquare');}angular[_0x566993('0x22c4')](_0x566993('0x1e4'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),_0x566993('0x1663'),'flow','mdColorPicker',_0x566993('0x26f0'),'ng-sortable',_0x566993('0x20fc'),_0x566993('0x8a3'),_0x566993('0x1146'),_0x566993('0x1698'),_0x566993('0x269'),'mwFormUtils',_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392'),_0x566993('0x17f6')])[_0x566993('0xea9')](_0x5921ef)[_0x566993('0x1e65')](_0x566993('0x2254'),_0x5019c0)['controller'](_0x566993('0x56e'),_0x3d56b2)[_0x566993('0x1e65')](_0x566993('0x8b4'),_0x29a9c3)[_0x566993('0x1e65')]('SquareRecordingsController',_0x1176a9);const _0x3df9e1=_0x21a6a1['p']+_0x566993('0x119e'),_0x4fae29=_0x21a6a1['p']+_0x566993('0x10ff'),_0x209915=_0x21a6a1['p']+'src/js/modules/main/apps/analytics/views/reports/reports.html/reports.html',_0x5d6925=_0x21a6a1['p']+'src/js/modules/main/apps/analytics/views/reports/edit/view.html/view.html';var _0x3c80c7=_0x21a6a1(0xd5a);_0x37c875['$inject']=['$location',_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0x358'),'api','apiName',_0x566993('0x1bde')];function _0x37c875(_0x143b69,_0xeee94f,_0x282ad1,_0xc59c70,_0x148828,_0x30fe98,_0x4787d9){const _0x58341a=_0x566993,_0x525e91=this;_0x525e91[_0x58341a('0x1d4a')]=[],_0x525e91[_0x58341a('0x358')]=angular[_0x58341a('0x2e3')](_0xc59c70),_0x525e91[_0x58341a('0x358')][_0x58341a('0x10ad')]+=_0x58341a('0x8c8'),_0x525e91[_0x58341a('0x1bde')]=_0x4787d9,_0x525e91[_0x58341a('0xb9d')]={'core':{'multiple':![],'animation':!![],'error':function(_0x5f55ff){const _0x31dfcb=_0x58341a;console['error'](_0x31dfcb('0x29a')+angular[_0x31dfcb('0x36c')](_0x5f55ff));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x58341a('0x2825')]},_0x525e91[_0x58341a('0x236a')]={'select_node':_0x5b3967},_0x525e91[_0x58341a('0x1635')]=_0x5ade33,_0x525e91[_0x58341a('0x18e2')]=_0xcb0e42;function _0x5ade33(){const _0x5a81a2=_0x58341a;_0x525e91['errors']=[];let _0xa99d37;_0x148828[_0x5a81a2('0x1ca6')][_0x5a81a2('0x1195')]({'name':_0x525e91['report'][_0x5a81a2('0x10ad')],'description':_0x525e91[_0x5a81a2('0x358')][_0x5a81a2('0x1c55')],'table':_0x525e91[_0x5a81a2('0x358')][_0x5a81a2('0xdf9')],'conditions':_0x525e91['report']['conditions'],'joins':_0x525e91[_0x5a81a2('0x358')][_0x5a81a2('0xa69')],'parent':_0x525e91[_0x5a81a2('0x549')]['id']})[_0x5a81a2('0x1964')][_0x5a81a2('0x173b')](function(_0x4b7422){const _0xc8961c=_0x5a81a2;_0xa99d37=_0x4b7422,_0x282ad1[_0xc8961c('0xdfe')]({'title':_0xc8961c('0x1c88'),'msg':_0x525e91[_0xc8961c('0x358')][_0xc8961c('0x10ad')]?_0x525e91[_0xc8961c('0x358')]['name']+_0xc8961c('0x49e'):''});const _0x2a133a={'fields':_0xc8961c('0x1752'),'nolimit':!![]};return _0x2a133a[_0x30fe98===_0xc8961c('0x1ca6')?'CustomReportId':_0xc8961c('0x12e5')]=_0x525e91[_0xc8961c('0x358')]['id'],_0x148828[_0xc8961c('0x1ddd')][_0xc8961c('0x1d97')](_0x2a133a)[_0xc8961c('0x1964')];})[_0x5a81a2('0x173b')](function(_0x516406){const _0x3e6263=_0x5a81a2,_0x5abab1=_0x3c8d8a()[_0x3e6263('0x8a2')](_0x516406[_0x3e6263('0x6aa')],function(_0x5bc2ca){const _0x35d152=_0x3e6263;return _0x3c8d8a()[_0x35d152('0x2d3')]({},_0x5bc2ca,{'CustomReportId':_0xa99d37['id']});});return _0x148828['analyticFieldReport'][_0x3e6263('0x5fe')](_0x5abab1)[_0x3e6263('0x1964')];})[_0x5a81a2('0x173b')](function(){const _0x35afee=_0x5a81a2;_0x282ad1[_0x35afee('0xdfe')]({'title':_0x35afee('0x1346'),'msg':'Fields\x20has\x20been\x20copied!'}),_0xcb0e42();})[_0x5a81a2('0x103c')](function(_0x1f133d){const _0x1aefe9=_0x5a81a2;_0x282ad1[_0x1aefe9('0x15aa')]({'title':_0x1f133d[_0x1aefe9('0x276f')]?_0x1aefe9('0x137')+_0x1f133d['status']+_0x1aefe9('0x160c')+_0x1f133d[_0x1aefe9('0x2696')]:'SYSTEM:COPYREPORT','msg':_0x1f133d[_0x1aefe9('0x1e07')]?JSON['stringify'](_0x1f133d[_0x1aefe9('0x1e07')][_0x1aefe9('0x67f')]):_0x1f133d[_0x1aefe9('0x1b75')]()});});}function _0x5b3967(_0x1ecd69,_0x59bed1){const _0x2a627a=_0x58341a;_0x525e91[_0x2a627a('0x549')]=_0x59bed1[_0x2a627a('0x161b')];}function _0xcb0e42(){const _0x53883c=_0x58341a;_0xeee94f[_0x53883c('0x1cf4')]();}}const _0x277c10=_0x37c875;_0x1821cd[_0x566993('0x17bb')]=[_0x566993('0x19df'),'$mdDialog',_0x566993('0x1558'),_0x566993('0xb50'),_0x566993('0x358'),_0x566993('0xbd4'),_0x566993('0x1521'),_0x566993('0x549'),'describeTable',_0x566993('0x1dc1')];function _0x1821cd(_0xfd8332,_0x22a326,_0x9880f9,_0x299e68,_0x17310a,_0x180927,_0xd38b30,_0x19b75e,_0x5cdd66,_0x59a79a){const _0x331860=_0x566993,_0x2476c7=this;_0x2476c7[_0x331860('0x1d4a')]=[],_0x2476c7[_0x331860('0x1aad')]=[],_0x2476c7[_0x331860('0x20d6')]=_0x331860('0x27f7'),_0x2476c7[_0x331860('0x1dc1')]=_0x59a79a,_0x2476c7['report']=angular['copy'](_0x17310a),_0x2476c7[_0x331860('0xb50')]=_0x299e68,_0x2476c7[_0x331860('0x95e')]=![],_0x2476c7[_0x331860('0x242e')]=_0x5cdd66['getMap'](),_0x2476c7['joinTypes']=[{'key':'join','value':_0x331860('0xef4')},{'key':_0x331860('0x24ec'),'value':'Left\x20Join'},{'key':_0x331860('0x177d'),'value':'Right\x20Join'},{'key':_0x331860('0x1d6f'),'value':'Cross\x20Join'}];!_0x2476c7['report']&&(_0x2476c7['report']={'name':'','table':_0x331860('0xa54'),'description':'','parent':_0x19b75e['id']},_0x2476c7[_0x331860('0x20d6')]=_0x331860('0x1bc8'),_0x2476c7[_0x331860('0x95e')]=!![]);_0x2476c7['addNewReport']=_0x5f029f,_0x2476c7[_0x331860('0x2383')]=_0x27148e,_0x2476c7[_0x331860('0x2794')]=_0x3a0dc2,_0x2476c7[_0x331860('0x18e2')]=_0x3e78aa,_0x2476c7['selectedTableChange']=_0x589dbf,_0x2476c7[_0x331860('0x43e')]=_0x372ea1,_0x2476c7['getFields']=_0x46417b;function _0x372ea1(_0x433c0d){const _0x483dae=_0x331860;_0x2476c7[_0x483dae('0x1aad')][_0x483dae('0x553')](_0x433c0d,0x1);}function _0x46417b(_0x1fc280,_0x2ce8c4,_0x1b0943){const _0x12c4d9=_0x331860,_0x33fbf3=_0x3c8d8a()[_0x12c4d9('0x18ab')](_0x2476c7[_0x12c4d9('0x242e')],{'name':_0x1b0943});_0x33fbf3&&_0x33fbf3[_0x12c4d9('0xbd4')]&&_0x180927[_0x33fbf3[_0x12c4d9('0xbd4')]][_0x12c4d9('0x2320')]()['$promise'][_0x12c4d9('0x173b')](function(_0x5bcc10){const _0x2ebd83=_0x12c4d9;_0x1fc280[_0x2ce8c4]=_0x3c8d8a()['difference'](_0x3c8d8a()[_0x2ebd83('0x1d3e')](_0x5bcc10),[_0x2ebd83('0x1964'),_0x2ebd83('0x14ad')]);})[_0x12c4d9('0x103c')](function(_0xa9ff7){const _0x4df3e3=_0x12c4d9;console[_0x4df3e3('0x15aa')](_0xa9ff7);});}function _0x589dbf(_0x43dad8){const _0x4f5353=_0x331860;_0x43dad8&&(delete _0x2476c7[_0x4f5353('0x23e9')],_0x2476c7['joinTables'][_0x4f5353('0x18bb')](_0x43dad8));}function _0x5f029f(){const _0x344bcd=_0x331860;_0x2476c7[_0x344bcd('0x1d4a')]=[],_0x2476c7[_0x344bcd('0x358')][_0x344bcd('0xa69')]=_0x3c8d8a()['map'](_0x2476c7['joinTables']||[],function(_0x432411){const _0x5e6625=_0x344bcd;return{'parentKey':_0x432411[_0x5e6625('0x524')],'foreignTable':_0x432411[_0x5e6625('0x10ad')],'foreignKey':_0x432411[_0x5e6625('0x1012')],'type':_0x432411['type'][_0x5e6625('0x1e68')]()};}),_0x2476c7[_0x344bcd('0x358')][_0x344bcd('0xa69')]=JSON['stringify'](_0x2476c7[_0x344bcd('0x358')]['joins']),_0x180927[_0xd38b30][_0x344bcd('0x1195')](_0x2476c7[_0x344bcd('0x358')])[_0x344bcd('0x1964')][_0x344bcd('0x173b')](function(_0x4a21e9){const _0x1c7712=_0x344bcd;_0x2476c7[_0x1c7712('0xb50')]['unshift'](_0x4a21e9),_0x9880f9[_0x1c7712('0xdfe')]({'title':_0x1c7712('0x5fa'),'msg':_0x2476c7[_0x1c7712('0x358')][_0x1c7712('0x10ad')]?_0x2476c7[_0x1c7712('0x358')][_0x1c7712('0x10ad')]+_0x1c7712('0x209a'):''}),_0x3e78aa();})['catch'](function(_0x402e5a){const _0x37930c=_0x344bcd;if(_0x402e5a[_0x37930c('0x1e07')]&&_0x402e5a[_0x37930c('0x1e07')][_0x37930c('0x1d4a')]&&_0x402e5a[_0x37930c('0x1e07')][_0x37930c('0x1d4a')][_0x37930c('0x543')]){_0x2476c7[_0x37930c('0x1d4a')]=_0x402e5a[_0x37930c('0x1e07')][_0x37930c('0x1d4a')]||[{'message':_0x402e5a[_0x37930c('0x1b75')](),'type':_0x37930c('0x1e88')}];for(let _0x20c634=0x0;_0x20c634<_0x402e5a['data'][_0x37930c('0x1d4a')][_0x37930c('0x543')];_0x20c634++){_0x9880f9[_0x37930c('0x15aa')]({'title':_0x402e5a[_0x37930c('0x1e07')][_0x37930c('0x1d4a')][_0x20c634][_0x37930c('0x1810')],'msg':_0x402e5a[_0x37930c('0x1e07')][_0x37930c('0x1d4a')][_0x20c634][_0x37930c('0x67f')]});}}else _0x9880f9[_0x37930c('0x15aa')]({'title':_0x402e5a[_0x37930c('0x276f')]?_0x37930c('0x137')+_0x402e5a[_0x37930c('0x276f')]+_0x37930c('0x160c')+_0x402e5a[_0x37930c('0x2696')]:_0x37930c('0x1e88'),'msg':_0x402e5a[_0x37930c('0x1e07')]?JSON[_0x37930c('0x100b')](_0x402e5a[_0x37930c('0x1e07')][_0x37930c('0x67f')]):_0x402e5a['toString']()});});}function _0x27148e(){const _0x254892=_0x331860;_0x2476c7[_0x254892('0x1d4a')]=[],_0x180927[_0xd38b30][_0x254892('0x1842')]({'id':_0x2476c7[_0x254892('0x358')]['id']},_0x2476c7[_0x254892('0x358')])[_0x254892('0x1964')][_0x254892('0x173b')](function(_0x182022){const _0x4bc4b3=_0x254892,_0x7e281c=_0x3c8d8a()[_0x4bc4b3('0x18ab')](_0x2476c7['reports'],{'id':_0x182022['id']});_0x7e281c&&_0x3c8d8a()[_0x4bc4b3('0x9ef')](_0x7e281c,_0x182022),_0x9880f9[_0x4bc4b3('0xdfe')]({'title':_0x4bc4b3('0x2bb'),'msg':_0x2476c7[_0x4bc4b3('0x358')]['name']?_0x2476c7[_0x4bc4b3('0x358')][_0x4bc4b3('0x10ad')]+_0x4bc4b3('0x2788'):''}),_0x3e78aa();})['catch'](function(_0x20d9b7){const _0x13fef1=_0x254892;if(_0x20d9b7[_0x13fef1('0x1e07')]&&_0x20d9b7[_0x13fef1('0x1e07')][_0x13fef1('0x1d4a')]&&_0x20d9b7[_0x13fef1('0x1e07')][_0x13fef1('0x1d4a')]['length']){_0x2476c7[_0x13fef1('0x1d4a')]=_0x20d9b7['data']['errors']||[{'message':_0x20d9b7[_0x13fef1('0x1b75')](),'type':_0x13fef1('0x5f2')}];for(let _0x2ca861=0x0;_0x2ca861<_0x20d9b7[_0x13fef1('0x1e07')]['errors'][_0x13fef1('0x543')];_0x2ca861++){_0x9880f9[_0x13fef1('0x15aa')]({'title':_0x20d9b7[_0x13fef1('0x1e07')][_0x13fef1('0x1d4a')][_0x2ca861][_0x13fef1('0x1810')],'msg':_0x20d9b7[_0x13fef1('0x1e07')][_0x13fef1('0x1d4a')][_0x2ca861]['message']});}}else _0x9880f9[_0x13fef1('0x15aa')]({'title':_0x20d9b7['status']?_0x13fef1('0x137')+_0x20d9b7[_0x13fef1('0x276f')]+_0x13fef1('0x160c')+_0x20d9b7[_0x13fef1('0x2696')]:_0x13fef1('0x5f2'),'msg':_0x20d9b7[_0x13fef1('0x1e07')]?JSON['stringify'](_0x20d9b7[_0x13fef1('0x1e07')]['message']):_0x20d9b7[_0x13fef1('0x1b75')]()});});}function _0x3a0dc2(){const _0x45e817=_0x331860;_0x2476c7[_0x45e817('0x1d4a')]=[];const _0x3fc078=_0x22a326[_0x45e817('0x1d02')]()[_0x45e817('0x20d6')]('Are\x20you\x20sure?')[_0x45e817('0x732')](_0x45e817('0xdd'))[_0x45e817('0x217')](_0x45e817('0x1926'))['ok']('Delete')[_0x45e817('0x1e1f')](_0x45e817('0x1d4e'))[_0x45e817('0x21de')](event);_0x22a326[_0x45e817('0x1cb7')](_0x3fc078)['then'](function(){const _0x2fe9c6=_0x45e817;_0x180927[_0xd38b30]['delete']({'id':_0x2476c7[_0x2fe9c6('0x358')]['id']})[_0x2fe9c6('0x1964')][_0x2fe9c6('0x173b')](function(){const _0x5a0288=_0x2fe9c6;_0x3c8d8a()[_0x5a0288('0x1a8b')](_0x2476c7[_0x5a0288('0xb50')],{'id':_0x2476c7['report']['id']}),_0x9880f9[_0x5a0288('0xdfe')]({'title':'Report\x20properly\x20deleted!','msg':_0x2476c7[_0x5a0288('0x358')][_0x5a0288('0x10ad')]?_0x2476c7['report'][_0x5a0288('0x10ad')]+_0x5a0288('0x25d2'):''}),_0x3e78aa();})[_0x2fe9c6('0x103c')](function(_0xfe166e){const _0x11e030=_0x2fe9c6;_0x2476c7[_0x11e030('0x1d4a')]=_0xfe166e[_0x11e030('0x1e07')]['errors']||[{'message':_0xfe166e[_0x11e030('0x1b75')](),'type':_0x11e030('0x3cc')}];});},function(){});}function _0x3e78aa(){const _0x46597a=_0x331860;_0x22a326[_0x46597a('0x1cf4')]();}}const _0x242504=_0x1821cd;_0xffbb8b[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'describeTable',_0x566993('0x1558'),_0x566993('0x1c3b')];function _0xffbb8b(_0x14ee13,_0x1ead44,_0x1b71b7,_0xd05282){const _0x137887=_0x566993,_0x409222=this;_0x409222[_0x137887('0x358')]={},_0x409222[_0x137887('0x23c3')]=_0xd05282[_0x137887('0x2359')],_0x409222[_0x137887('0xb9c')]=_0x4b9a7d,_0x409222[_0x137887('0x1cd5')]=_0x2a0ded,_0x409222[_0x137887('0x275f')]=_0x11bc49,_0x409222[_0x137887('0x2051')]=_0x430044,_0x409222[_0x137887('0xaa8')]=_0x222196;function _0x4b9a7d(_0x493aed,_0x29b164){const _0x1f6c8a=_0x137887;_0x409222[_0x1f6c8a('0x358')]=_0x493aed,_0x409222['report'][_0x1f6c8a('0x1adb')]=angular['fromJson'](_0x493aed[_0x1f6c8a('0x23c3')])||{'group':{'operator':_0x1f6c8a('0x356'),'rules':[]}},_0x409222['crudPermissions']=typeof _0x29b164!==_0x1f6c8a('0x6e5')?_0x29b164:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(let _0x48ff84=0x0;_0x48ff84<_0x409222[_0x1f6c8a('0x358')][_0x1f6c8a('0x1adb')][_0x1f6c8a('0x1ed6')]['rules'][_0x1f6c8a('0x543')];_0x48ff84++){if(_0x409222[_0x1f6c8a('0x358')]['condition']['group'][_0x1f6c8a('0x301')][_0x48ff84]['field']){const _0x200a39=_0x409222[_0x1f6c8a('0x358')][_0x1f6c8a('0x1adb')][_0x1f6c8a('0x1ed6')][_0x1f6c8a('0x301')][_0x48ff84]['field'][_0x1f6c8a('0x43a')]('.');_0x200a39[_0x1f6c8a('0x543')]===0x1&&(_0x409222[_0x1f6c8a('0x358')][_0x1f6c8a('0x1adb')][_0x1f6c8a('0x1ed6')][_0x1f6c8a('0x301')][_0x48ff84][_0x1f6c8a('0x81d')]=_0x409222[_0x1f6c8a('0x358')][_0x1f6c8a('0xdf9')]+'.'+_0x409222['report'][_0x1f6c8a('0x1adb')][_0x1f6c8a('0x1ed6')][_0x1f6c8a('0x301')][_0x48ff84][_0x1f6c8a('0x81d')]);}}_0x1ead44['getColumns'](_0x409222[_0x1f6c8a('0x358')]['table'])[_0x1f6c8a('0x173b')](function(_0x1e8b1d){const _0xdabf89=_0x1f6c8a;_0x409222['columns']=_0x3c8d8a()[_0xdabf89('0x1b31')](_0x3c8d8a()['keys'](_0x1e8b1d),[_0xdabf89('0x1964'),_0xdabf89('0x14ad'),'createdAt',_0xdabf89('0xad')]);})['catch'](function(_0x4c9757){const _0x10c59b=_0x1f6c8a;_0x1b71b7[_0x10c59b('0x15aa')]({'title':_0x4c9757[_0x10c59b('0x276f')]?'API:'+_0x4c9757[_0x10c59b('0x276f')]+_0x10c59b('0x160c')+_0x4c9757['statusText']:_0x10c59b('0x12bc'),'msg':_0x4c9757[_0x10c59b('0x1e07')]?JSON[_0x10c59b('0x100b')](_0x4c9757[_0x10c59b('0x1e07')]):_0x4c9757[_0x10c59b('0x1b75')]()});});}function _0x2a0ded(_0x41c641){_0x41c641['unshift']({'condition':'=','field':'','value':''});}function _0x11bc49(_0x421698){const _0x2c251b=_0x137887;_0x421698[_0x2c251b('0x18bb')]({'group':{'operator':'AND','rules':[]}});}function _0x430044(_0x1a0a2a,_0x4c4239,_0x110fd8){const _0x530697=_0x137887,_0x643c7d=_0x14ee13[_0x530697('0x1d02')]()[_0x530697('0x20d6')](_0x530697('0x27fb'))[_0x530697('0xf8b')](_0x530697('0x2c6'))[_0x530697('0x217')](_0x530697('0x26d1'))['targetEvent'](_0x110fd8)['ok']('OK')[_0x530697('0x1e1f')]('CANCEL');_0x14ee13['show'](_0x643c7d)[_0x530697('0x173b')](function(){const _0x348397=_0x530697;_0x1a0a2a[_0x348397('0x553')](_0x4c4239,0x1);},function(){const _0x57b356=_0x530697;console[_0x57b356('0xe37')](_0x57b356('0x468'));});}function _0x222196(_0x5c7143){const _0x49b46e=_0x137887;return!_0x3c8d8a()['includes']([_0x49b46e('0x18a3'),'IS\x20NOT\x20NULL',_0x49b46e('0xb87'),_0x49b46e('0x21c1')],_0x5c7143);}}const _0x58fb57=_0xffbb8b;_0x1554eb[_0x566993('0x17bb')]=[_0x566993('0xbd4')];function _0x1554eb(_0x1401bd){const _0x49dbc5=_0x566993,_0x55556a={'cm_companies':_0x49dbc5('0x1904'),'cm_contacts':_0x49dbc5('0x1197'),'cm_hopper':'cmHopper','cm_hopper_final':_0x49dbc5('0x1ccf'),'cm_hopper_history':_0x49dbc5('0x325'),'cm_lists':_0x49dbc5('0xbb3'),'chat_websites':_0x49dbc5('0x1740'),'chat_queues':_0x49dbc5('0x940'),'chat_interactions':'chatInteraction','chat_messages':'chatMessage','chat_offline_messages':_0x49dbc5('0x138d'),'report_chat_queue':_0x49dbc5('0xc2a'),'report_chat_transfer':_0x49dbc5('0x26ac'),'mail_accounts':_0x49dbc5('0x77b'),'mail_queues':'mailQueue','mail_interactions':_0x49dbc5('0x763'),'mail_messages':'mailMessage','report_mail_queue':_0x49dbc5('0x13e8'),'report_mail_transfer':_0x49dbc5('0x702'),'openchannel_accounts':_0x49dbc5('0x13f1'),'openchannel_queues':'openchannelQueue','openchannel_interactions':_0x49dbc5('0x2376'),'openchannel_messages':_0x49dbc5('0x289'),'report_openchannel_queue':'openchannelQueueReport','report_openchannel_transfer':_0x49dbc5('0x1c3e'),'sms_accounts':_0x49dbc5('0x1e37'),'sms_queues':_0x49dbc5('0xe99'),'sms_interactions':_0x49dbc5('0x1145'),'sms_messages':_0x49dbc5('0x27a2'),'report_sms_queue':'smsQueueReport','report_sms_transfer':_0x49dbc5('0x27a4'),'fax_accounts':_0x49dbc5('0xe12'),'fax_queues':'faxQueue','fax_interactions':'faxInteraction','fax_messages':_0x49dbc5('0x1044'),'report_fax_transfer':'faxTransferReport','report_fax_queue':_0x49dbc5('0x12b7'),'report_call':'voiceCallReport','report_agent':_0x49dbc5('0x934'),'report_square':'squareReport','report_member':'memberReport','report_queue':'voiceQueueReport','report_square_details':_0x49dbc5('0x8d1'),'report_dial':_0x49dbc5('0x242c'),'report_jscripty_sessions':_0x49dbc5('0xd95'),'report_jscripty_questions':_0x49dbc5('0x7a5'),'report_jscripty_answers':_0x49dbc5('0x22fc'),'users':_0x49dbc5('0x166f'),'voice_recordings':_0x49dbc5('0x14c3'),'cdr':'cdr','whatsapp_accounts':_0x49dbc5('0x234'),'whatsapp_queues':_0x49dbc5('0x9cb'),'whatsapp_interactions':_0x49dbc5('0x818'),'whatsapp_messages':_0x49dbc5('0x1a05'),'report_whatsapp_queue':_0x49dbc5('0x1165'),'report_whatsapp_transfer':_0x49dbc5('0x2750')};return{'getMap':function(){const _0x2ea833=_0x49dbc5,_0x22d2d4=[];return _0x3c8d8a()[_0x2ea833('0x33d')](_0x55556a,function(_0x2011d7,_0x4814b2){_0x22d2d4['push']({'name':_0x4814b2,'api':_0x2011d7});}),_0x22d2d4;},'getColumns':function(_0x25da73){const _0x2191ec=_0x49dbc5,_0x1caa25=_0x55556a[_0x25da73];return _0x1401bd[_0x1caa25][_0x2191ec('0x2320')]()['$promise'];}};}const _0x643ac8=_0x1554eb;_0x13b634[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x19df'),_0x566993('0x1fe5'),'toasty',_0x566993('0x358'),_0x566993('0x1938'),_0x566993('0x1'),'metrics','columns','sqlUtil','api',_0x566993('0x1dc1')];function _0x13b634(_0x13dd02,_0x525dfe,_0xd61935,_0x39a6a1,_0xf96c30,_0x29b69e,_0x2393da,_0x1fc0b6,_0x469729,_0x2fb652,_0x3df06c,_0x227080){const _0x3fe2bf=_0x566993,_0x49a0ee=this;_0x49a0ee['errors']=[],_0x49a0ee[_0x3fe2bf('0x20d6')]=_0x3fe2bf('0x2844'),_0x49a0ee[_0x3fe2bf('0x358')]=_0xf96c30,_0x49a0ee[_0x3fe2bf('0x1')]=angular[_0x3fe2bf('0x2e3')](_0x2393da),_0x49a0ee[_0x3fe2bf('0x1938')]=_0x29b69e,_0x49a0ee[_0x3fe2bf('0x1716')]=_0x1fc0b6,_0x49a0ee[_0x3fe2bf('0x284a')]=_0x469729,_0x49a0ee[_0x3fe2bf('0x1c3b')]=_0x2fb652,_0x49a0ee['newReportField']=![],_0x49a0ee[_0x3fe2bf('0x1dc1')]=_0x227080;if(!_0x49a0ee[_0x3fe2bf('0x1')])_0x49a0ee[_0x3fe2bf('0x1')]={'type':_0x3fe2bf('0x260d'),'function':null,'format':null,'groupBy':![],'orderBy':null},_0x49a0ee['title']='New\x20Report\x20Field',_0x49a0ee['newReportField']=!![];else{_0x49a0ee['reportField'][_0x3fe2bf('0x1810')]=_0x49a0ee[_0x3fe2bf('0x1')][_0x3fe2bf('0xbb4')]?_0x3fe2bf('0xbb4'):_0x49a0ee['reportField'][_0x3fe2bf('0xeeb')]?'metric':_0x3fe2bf('0x260d');if(_0x49a0ee[_0x3fe2bf('0x1')][_0x3fe2bf('0x81d')]&&!_0x49a0ee['reportField']['custom']&&_0x3c8d8a()[_0x3fe2bf('0x7d5')](_0x49a0ee[_0x3fe2bf('0x1')][_0x3fe2bf('0xeeb')])){const _0xa44598=_0x49a0ee[_0x3fe2bf('0x1')]['field'][_0x3fe2bf('0x43a')]('.');_0xa44598['length']===0x1&&(_0x49a0ee[_0x3fe2bf('0x1')][_0x3fe2bf('0x81d')]=_0x49a0ee[_0x3fe2bf('0x358')]['table']+'.'+_0x49a0ee[_0x3fe2bf('0x1')]['field']);}}_0x49a0ee[_0x3fe2bf('0x85')]=_0x37c144,_0x49a0ee[_0x3fe2bf('0x22eb')]=_0x1e3dcb,_0x49a0ee['deleteReportField']=_0x2df68b,_0x49a0ee['closeDialog']=_0x4fd98e;function _0x37c144(){const _0x3aae30=_0x3fe2bf;_0x49a0ee[_0x3aae30('0x1d4a')]=[],_0x49a0ee['reportField'][_0x3aae30('0xbb4')]=_0x49a0ee[_0x3aae30('0x1')]['type']===_0x3aae30('0xbb4'),_0x49a0ee[_0x3aae30('0x1')][_0x3aae30('0xeeb')]=_0x49a0ee['reportField'][_0x3aae30('0x1810')]===_0x3aae30('0x1fe')?_0x49a0ee[_0x3aae30('0x1')]['MetricId']:null,_0x49a0ee[_0x3aae30('0x1')][_0x3aae30('0x2415')]=_0x49a0ee[_0x3aae30('0x358')]['id'],_0x3df06c[_0x3aae30('0x1ddd')][_0x3aae30('0x1195')](_0x49a0ee[_0x3aae30('0x1')])[_0x3aae30('0x1964')][_0x3aae30('0x173b')](function(_0x5e40cb){const _0x16a252=_0x3aae30;_0x49a0ee[_0x16a252('0x1938')][_0x16a252('0x18bb')](_0x5e40cb),_0x39a6a1[_0x16a252('0xdfe')]({'title':_0x16a252('0x690'),'msg':_0x49a0ee[_0x16a252('0x1')]['field']?_0x49a0ee['reportField']['field']+_0x16a252('0x209a'):_0x49a0ee[_0x16a252('0x1')][_0x16a252('0x1810')]+_0x16a252('0x209a')}),_0x4fd98e();})[_0x3aae30('0x103c')](function(_0x2883e6){const _0x3e5df7=_0x3aae30;_0x49a0ee['errors']=_0x2883e6[_0x3e5df7('0x1e07')][_0x3e5df7('0x1d4a')]||[{'message':_0x2883e6['toString'](),'type':_0x3e5df7('0x650')}];});}function _0x1e3dcb(){const _0x31713b=_0x3fe2bf;_0x49a0ee[_0x31713b('0x1d4a')]=[],_0x49a0ee[_0x31713b('0x1')]['custom']=_0x49a0ee['reportField'][_0x31713b('0x1810')]===_0x31713b('0xbb4'),_0x49a0ee[_0x31713b('0x1')][_0x31713b('0xeeb')]=_0x49a0ee[_0x31713b('0x1')]['type']===_0x31713b('0x1fe')?_0x49a0ee[_0x31713b('0x1')][_0x31713b('0xeeb')]:null,_0x3df06c[_0x31713b('0x1ddd')][_0x31713b('0x1842')]({'id':_0x49a0ee[_0x31713b('0x1')]['id']},_0x49a0ee[_0x31713b('0x1')])[_0x31713b('0x1964')][_0x31713b('0x173b')](function(_0x1ba6c0){const _0x4874c2=_0x31713b,_0x32ad8e=_0x3c8d8a()[_0x4874c2('0x18ab')](_0x49a0ee[_0x4874c2('0x1938')],{'id':_0x1ba6c0['id']});_0x32ad8e&&_0x3c8d8a()['merge'](_0x32ad8e,_0x1ba6c0),_0x39a6a1[_0x4874c2('0xdfe')]({'title':'Report\x20Field\x20properly\x20saved!','msg':_0x49a0ee[_0x4874c2('0x1')][_0x4874c2('0x81d')]?_0x49a0ee['reportField'][_0x4874c2('0x81d')]+_0x4874c2('0x2788'):''}),_0x4fd98e();})['catch'](function(_0x5935ac){const _0x486855=_0x31713b;_0x49a0ee[_0x486855('0x1d4a')]=_0x5935ac[_0x486855('0x1e07')]['errors']||[{'message':_0x5935ac[_0x486855('0x1b75')](),'type':'api.analyticFieldReport.update'}];});}function _0x2df68b(_0x25653d){const _0x492fb8=_0x3fe2bf;_0x49a0ee[_0x492fb8('0x1d4a')]=[];const _0x162a4c=_0xd61935[_0x492fb8('0x1d02')]()[_0x492fb8('0x20d6')](_0x492fb8('0x8ef'))['content'](_0x492fb8('0xeec'))[_0x492fb8('0x217')](_0x492fb8('0x1926'))['ok'](_0x492fb8('0x2373'))[_0x492fb8('0x1e1f')](_0x492fb8('0x1d4e'))[_0x492fb8('0x21de')](_0x25653d);_0xd61935[_0x492fb8('0x1cb7')](_0x162a4c)[_0x492fb8('0x173b')](function(){const _0x2b50e9=_0x492fb8;_0x3df06c['analyticFieldReport'][_0x2b50e9('0x15e8')]({'id':_0x49a0ee[_0x2b50e9('0x1')]['id']})['$promise'][_0x2b50e9('0x173b')](function(){const _0x2253c1=_0x2b50e9;_0x3c8d8a()[_0x2253c1('0x1a8b')](_0x49a0ee[_0x2253c1('0x1938')],{'id':_0x49a0ee[_0x2253c1('0x1')]['id']}),_0x39a6a1[_0x2253c1('0xdfe')]({'title':_0x2253c1('0x643'),'msg':_0x49a0ee[_0x2253c1('0x1')][_0x2253c1('0x81d')]?_0x49a0ee[_0x2253c1('0x1')][_0x2253c1('0x81d')]+_0x2253c1('0x25d2'):''}),_0x4fd98e();})['catch'](function(_0x29d73b){const _0xf536a4=_0x2b50e9;_0x49a0ee['errors']=_0x29d73b[_0xf536a4('0x1e07')][_0xf536a4('0x1d4a')]||[{'message':_0x29d73b[_0xf536a4('0x1b75')](),'type':'api.analyticReportField.delete'}];});},function(){});}function _0x4fd98e(){const _0x150523=_0x3fe2bf;_0xd61935[_0x150523('0x1cf4')]();}}const _0x2a5c1a=_0x13b634,_0x478d96=_0x21a6a1['p']+_0x566993('0x11f9');_0xc45315[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),'$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x93d'),_0x566993('0x1c3b'),_0x566993('0x638')];function _0xc45315(_0x2742ee,_0x5b21a2,_0x25dba3,_0x316110,_0x2114f1,_0x4b7f83,_0x5752cf,_0x318cf1,_0x23ea8e,_0x2a5f56){const _0x1ee3fc=_0x566993,_0x2e5d24=this;_0x2e5d24[_0x1ee3fc('0x358')]={},_0x2e5d24['reportFields']={'count':0x0,'rows':[]},_0x2e5d24[_0x1ee3fc('0x25f2')]=_0x3c8d8a()[_0x1ee3fc('0x128')](_0x23ea8e[_0x1ee3fc('0x24fb')],_0x1ee3fc('0xa7b')),_0x2e5d24[_0x1ee3fc('0x8b9')]=_0x3c8d8a()[_0x1ee3fc('0x128')](_0x23ea8e[_0x1ee3fc('0x21c2')],_0x1ee3fc('0xa7b')),_0x2e5d24['groupBy']=_0x3c8d8a()[_0x1ee3fc('0x128')](_0x23ea8e[_0x1ee3fc('0x1c59')],_0x1ee3fc('0xa7b')),_0x2e5d24[_0x1ee3fc('0x1d16')]=_0x3c8d8a()[_0x1ee3fc('0x128')](_0x23ea8e[_0x1ee3fc('0x1857')],_0x1ee3fc('0xa7b')),_0x2e5d24[_0x1ee3fc('0x23ac')]=[],_0x2e5d24[_0x1ee3fc('0xc49')]={'fields':_0x1ee3fc('0x1010'),'nolimit':!![]},_0x2e5d24['sortableTable']={'animation':0x64,'onSort':function(_0xe0cf5){const _0x416b2e=_0x1ee3fc;_0x5752cf[_0x416b2e('0x1ddd')][_0x416b2e('0x1bb4')]({'id':_0x2e5d24['report']['id']},_0xe0cf5[_0x416b2e('0x1008')])[_0x416b2e('0x1964')][_0x416b2e('0x173b')](function(_0x2faec5){const _0x3e3fc9=_0x416b2e;_0x2e5d24[_0x3e3fc9('0x1938')][_0x3e3fc9('0x6aa')]=_0x2faec5;})[_0x416b2e('0x103c')](function(_0x4004b4){const _0xb96869=_0x416b2e;_0x4b7f83['error']({'title':_0x4004b4[_0xb96869('0x276f')]?'API:'+_0x4004b4['status']+_0xb96869('0x160c')+_0x4004b4[_0xb96869('0x2696')]:_0xb96869('0x2203')});});}},_0x2e5d24['init']=_0x1be5a8,_0x2e5d24[_0x1ee3fc('0x2051')]=_0xef1d8e,_0x2e5d24[_0x1ee3fc('0xdfe')]=_0x3b2e4f,_0x2e5d24['getReportFields']=_0x25ec3b,_0x2e5d24['createOrEditReportField']=_0x3016f3,_0x2e5d24['deleteReportField']=_0x3418b4,_0x2e5d24['deleteSelectedReportFields']=_0x377cfa,_0x2e5d24[_0x1ee3fc('0x1917')]=_0x43dc1b,_0x2e5d24['getMetricValue']=_0x1f560b;function _0x1be5a8(_0x513630,_0x4393ab){const _0x26fb01=_0x1ee3fc;_0x2e5d24['report']=_0x513630,_0x2e5d24[_0x26fb01('0xc49')][_0x26fb01('0x2415')]=_0x2e5d24[_0x26fb01('0x358')]['id'],_0x2e5d24[_0x26fb01('0x1dc1')]=typeof _0x4393ab!==_0x26fb01('0x6e5')?_0x4393ab:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2e5d24[_0x26fb01('0x25ab')][_0x26fb01('0x6fc')]=!_0x2e5d24[_0x26fb01('0x1dc1')][_0x26fb01('0x1f3d')]?!![]:![],_0x318cf1[_0x26fb01('0xf6f')](_0x2e5d24['report'][_0x26fb01('0xdf9')])['then'](function(_0x37ba55){const _0xe7947a=_0x26fb01;return _0x2e5d24[_0xe7947a('0x284a')]=_0x3c8d8a()[_0xe7947a('0x1b31')](_0x3c8d8a()[_0xe7947a('0x1d3e')](_0x37ba55),[_0xe7947a('0x1964'),_0xe7947a('0x14ad')]),_0x5752cf[_0xe7947a('0x2061')][_0xe7947a('0x1d97')]({'fields':_0xe7947a('0x2468'),'nolimit':!![]})[_0xe7947a('0x1964')];})[_0x26fb01('0x173b')](function(_0x10069f){const _0x4cd1d7=_0x26fb01;_0x2e5d24[_0x4cd1d7('0x1716')]=_0x10069f[_0x4cd1d7('0x6aa')];})[_0x26fb01('0x103c')](function(_0x4e7dd1){const _0x341c11=_0x26fb01;_0x4b7f83[_0x341c11('0x15aa')]({'title':_0x4e7dd1['status']?_0x341c11('0x137')+_0x4e7dd1[_0x341c11('0x276f')]+_0x341c11('0x160c')+_0x4e7dd1[_0x341c11('0x2696')]:_0x341c11('0x12bc'),'msg':_0x4e7dd1[_0x341c11('0x1e07')]?JSON[_0x341c11('0x100b')](_0x4e7dd1[_0x341c11('0x1e07')]):_0x4e7dd1[_0x341c11('0x1b75')]()});}),_0x2e5d24['getReportFields']();}function _0xef1d8e(_0x44c14d,_0x5b7ebb){const _0x40bbc1=_0x1ee3fc,_0x25deef=_0x316110[_0x40bbc1('0x1d02')]()[_0x40bbc1('0x20d6')](_0x40bbc1('0x985'))[_0x40bbc1('0xf8b')](_0x40bbc1('0x15b9')+_0x44c14d['field']+_0x40bbc1('0x24be')+_0x40bbc1('0xd23'))[_0x40bbc1('0x217')](_0x40bbc1('0x1b20'))[_0x40bbc1('0x21de')](_0x5b7ebb)['ok']('OK')[_0x40bbc1('0x1e1f')](_0x40bbc1('0x468'));_0x316110[_0x40bbc1('0x1cb7')](_0x25deef)[_0x40bbc1('0x173b')](function(){_0x3418b4(_0x44c14d);},function(){const _0x8a5c5f=_0x40bbc1;console['log'](_0x8a5c5f('0x468'));});}let _0x449eaa=!![];_0x5b21a2[_0x1ee3fc('0x1bdb')]('vm_rf.query.filter',function(){_0x449eaa?_0x25dba3(function(){_0x449eaa=![];}):_0x2e5d24['getReportFields']();});function _0x3b2e4f(_0x597cc4){const _0x2d81f2=_0x1ee3fc;_0x2e5d24[_0x2d81f2('0x1938')]=_0x597cc4||{'count':0x0,'rows':[]};}function _0x25ec3b(){const _0x20a417=_0x1ee3fc;_0x2e5d24['promise']=_0x5752cf['analyticFieldReport'][_0x20a417('0x1d97')](_0x2e5d24['query'],_0x3b2e4f)[_0x20a417('0x1964')];}function _0x3016f3(_0x34ad86,_0x536e1e){const _0x19d75b=_0x1ee3fc;_0x316110[_0x19d75b('0x1cb7')]({'controller':_0x19d75b('0x16c4'),'controllerAs':'vm','templateUrl':_0x478d96,'parent':angular[_0x19d75b('0xb6d')](_0x2114f1[_0x19d75b('0x1a5')]),'targetEvent':_0x34ad86,'clickOutsideToClose':!![],'locals':{'report':_0x2e5d24[_0x19d75b('0x358')],'reportField':_0x536e1e,'reportFields':_0x2e5d24[_0x19d75b('0x1938')][_0x19d75b('0x6aa')],'metrics':_0x2e5d24['metrics'],'columns':_0x2e5d24[_0x19d75b('0x284a')],'setting':null,'crudPermissions':_0x2e5d24[_0x19d75b('0x1dc1')]}});}function _0x3418b4(_0x741602){const _0x4d22e3=_0x1ee3fc;_0x5752cf[_0x4d22e3('0x1ddd')][_0x4d22e3('0x15e8')]({'id':_0x741602['id']})[_0x4d22e3('0x1964')]['then'](function(){const _0x2d0abd=_0x4d22e3;_0x2e5d24[_0x2d0abd('0x23ac')]=[],_0x3c8d8a()[_0x2d0abd('0x1a8b')](_0x2e5d24[_0x2d0abd('0x1938')][_0x2d0abd('0x6aa')],{'id':_0x741602['id']}),_0x2e5d24[_0x2d0abd('0x1938')]['count']-=0x1,!_0x2e5d24[_0x2d0abd('0x1938')][_0x2d0abd('0x6aa')][_0x2d0abd('0x543')]&&_0x2e5d24[_0x2d0abd('0x1135')](),_0x4b7f83[_0x2d0abd('0xdfe')]({'title':_0x2d0abd('0x2262'),'msg':_0x741602[_0x2d0abd('0x81d')]?_0x741602[_0x2d0abd('0x81d')]+_0x2d0abd('0x25d2'):''});})['catch'](function(_0x2fa1d2){const _0x37066f=_0x4d22e3;_0x4b7f83[_0x37066f('0x15aa')]({'title':_0x2fa1d2['status']?'API:'+_0x2fa1d2[_0x37066f('0x276f')]+'\x20-\x20'+_0x2fa1d2[_0x37066f('0x2696')]:_0x37066f('0xdc9'),'msg':_0x2fa1d2[_0x37066f('0x1e07')]?JSON['stringify'](_0x2fa1d2[_0x37066f('0x1e07')]):_0x2fa1d2['toString']()});});}function _0x377cfa(_0x32e969){const _0x449508=_0x1ee3fc,_0x3ce4b5=_0x316110[_0x449508('0x1d02')]()[_0x449508('0x20d6')](_0x449508('0x18ba'))[_0x449508('0xf8b')](_0x449508('0x15b9')+_0x2e5d24[_0x449508('0x23ac')][_0x449508('0x543')]+_0x449508('0xcb4')+_0x449508('0xd23'))['ariaLabel'](_0x449508('0xbaf'))[_0x449508('0x21de')](_0x32e969)['ok']('OK')[_0x449508('0x1e1f')](_0x449508('0x468'));_0x316110[_0x449508('0x1cb7')](_0x3ce4b5)['then'](function(){const _0x1d7ce4=_0x449508;_0x2e5d24[_0x1d7ce4('0x23ac')][_0x1d7ce4('0xa6a')](function(_0x434ab9){_0x3418b4(_0x434ab9);}),_0x2e5d24[_0x1d7ce4('0x23ac')]=[];});}function _0x43dc1b(_0x31297b){const _0x5583e0=_0x1ee3fc,_0x1bbea9=_0x3c8d8a()['find'](_0x2e5d24[_0x5583e0('0x1716')],{'id':_0x31297b});return _0x1bbea9?_0x1bbea9['name']:_0x2a5f56[_0x5583e0('0x1467')](_0x5583e0('0x2493'));}function _0x1f560b(_0x1bc03c){const _0xf2e6b8=_0x1ee3fc,_0x328af3=_0x3c8d8a()[_0xf2e6b8('0x18ab')](_0x2e5d24[_0xf2e6b8('0x1716')],{'id':_0x1bc03c});return _0x328af3?_0x328af3[_0xf2e6b8('0x1fe')]:_0x2a5f56['instant']('ANALYTICS.NO_METRIC_FOUND');}}const _0x156810=_0xc45315;function _0x432304(){const _0x3c49e1=_0x566993,_0x103234=[{'value':_0x3c49e1('0x127c'),'option':function(_0x883c49){const _0x605c53=_0x3c49e1;return _0x605c53('0x1abe')+_0x883c49+')';}},{'value':'COUNT','option':function(_0x7e7838){const _0x1f1171=_0x3c49e1;return _0x1f1171('0x3f1')+_0x7e7838+')';}},{'value':_0x3c49e1('0xddf'),'option':function(_0x979c05){const _0x399fd1=_0x3c49e1;return _0x399fd1('0x162e')+_0x979c05+')';}},{'value':_0x3c49e1('0x9ce'),'option':function(_0x2cd2ba){const _0x4cabbb=_0x3c49e1;return _0x4cabbb('0x2497')+_0x2cd2ba+')';}},{'value':_0x3c49e1('0xb7c'),'option':function(_0x21fde0){return'MIN\x20('+_0x21fde0+')';}},{'value':_0x3c49e1('0x21bb'),'option':function(_0x3f143d){const _0x317b8a=_0x3c49e1;return _0x317b8a('0x1d72')+_0x3f143d+')';}},{'value':_0x3c49e1('0x22d2'),'option':function(_0x4770fa){return'GROUP_CONCAT\x20('+_0x4770fa+')';}},{'value':_0x3c49e1('0x24fd'),'option':function(_0x4517e9){const _0x248b7d=_0x3c49e1;return'GROUP_CONCAT\x20('+_0x4517e9+_0x248b7d('0x218c')+_0x4517e9+_0x248b7d('0x280f');}},{'value':_0x3c49e1('0xf7e'),'option':function(_0x2bac83){const _0x52e81b=_0x3c49e1;return _0x52e81b('0x18a5')+_0x2bac83+'\x20ORDER\x20BY\x20'+_0x2bac83+'\x20DESC)';}}],_0x50bc53=[{'value':_0x3c49e1('0x1f03'),'option':function(_0x201d22){const _0x3f9f02=_0x3c49e1;return _0x3f9f02('0xdce')+_0x201d22+')';}},{'value':'DATE','option':function(_0x9ebd06){return'DATE\x20('+_0x9ebd06+')';}},{'value':'HOUR','option':function(_0x52d563){return'HOUR\x20('+_0x52d563+')';}},{'value':'ROUND','option':function(_0x320f06){return'ROUND\x20('+_0x320f06+')';}},{'value':_0x3c49e1('0xd59'),'option':function(_0x24c1ac){const _0x237c70=_0x3c49e1;return _0x237c70('0x126b')+_0x24c1ac+')';}}],_0x2e5364=[{'value':![],'option':function(){return'No';}},{'value':!![],'option':function(_0x1a82a5){const _0x529bf4=_0x3c49e1;return _0x529bf4('0x12a3')+_0x1a82a5;}}],_0x504b5f=[{'value':'ASC','option':function(_0x4a8f1d){const _0x57a5ea=_0x3c49e1;return _0x57a5ea('0x22b')+_0x4a8f1d+'\x20ASC';}},{'value':'DESC','option':function(_0x3d59de){const _0xb093b5=_0x3c49e1;return _0xb093b5('0x22b')+_0x3d59de+_0xb093b5('0x5b3');}}],_0x126bc9=['=','!=','<','<=','>','>=',_0x3c49e1('0x12ab'),_0x3c49e1('0x1416'),_0x3c49e1('0x18a3'),_0x3c49e1('0x124'),_0x3c49e1('0xb87'),_0x3c49e1('0x21c1')];return{'getFunctions':_0x103234,'getFormats':_0x50bc53,'getGroupBy':_0x2e5364,'getOrderBy':_0x504b5f,'getConditions':_0x126bc9};}const _0xf64b7d=_0x432304;_0x15745b[_0x566993('0x17bb')]=[_0x566993('0x2276'),'toasty',_0x566993('0xbd4'),_0x566993('0x358'),'Auth',_0x566993('0x170e')];function _0x15745b(_0x1e70ae,_0x13c752,_0x20898f,_0x1bf729,_0x4db170,_0x24464a){const _0x560be9=_0x566993,_0x104b2b=this;_0x104b2b['report']=_0x1bf729||{},_0x104b2b[_0x560be9('0x170e')]=_0x24464a&&_0x24464a[_0x560be9('0x1a2f')]==0x1?_0x24464a['rows'][0x0]:null,_0x104b2b[_0x560be9('0x1dc1')]=_0x4db170['parseCrudPermissions'](_0x104b2b[_0x560be9('0x170e')]?_0x104b2b[_0x560be9('0x170e')]['crudPermissions']:null),_0x104b2b[_0x560be9('0xd5f')]=_0x1e70ae[_0x560be9('0x197a')][_0x560be9('0x1e66')]||0x0,_0x104b2b['gotoReports']=_0x15754e,_0x104b2b[_0x560be9('0x2383')]=_0x1a60c6,_0x104b2b[_0x560be9('0x2487')]=_0x2d137d,_0x104b2b['queryReport']=_0x467dd1,_0x104b2b[_0x560be9('0x19fd')]=_0x525d66,_0x104b2b[_0x560be9('0x118')]=_0x4c4cb0,_0x104b2b['valueReplacer']=_0x2b4125;function _0x15754e(){const _0x47ca18=_0x560be9;_0x1e70ae['go'](_0x47ca18('0x185d'),{},{'reload':_0x47ca18('0x185d')});}function _0x1a60c6(){const _0x2faf92=_0x560be9;_0x104b2b[_0x2faf92('0x358')][_0x2faf92('0x23c3')]=angular[_0x2faf92('0x36c')](_0x104b2b[_0x2faf92('0x358')][_0x2faf92('0x1adb')]),_0x20898f[_0x2faf92('0x1ca6')]['update']({'id':_0x104b2b[_0x2faf92('0x358')]['id']},_0x3c8d8a()[_0x2faf92('0x2797')](_0x104b2b[_0x2faf92('0x358')],'joins'))['$promise'][_0x2faf92('0x173b')](function(){const _0x245a34=_0x2faf92;_0x13c752[_0x245a34('0xdfe')]({'title':_0x245a34('0x1606'),'msg':_0x104b2b[_0x245a34('0x358')][_0x245a34('0x10ad')]?_0x104b2b[_0x245a34('0x358')][_0x245a34('0x10ad')]+_0x245a34('0x1fd6'):''});})['catch'](function(_0x217d22){const _0x1e63d1=_0x2faf92;_0x13c752[_0x1e63d1('0x15aa')]({'title':_0x217d22['status']?_0x1e63d1('0x137')+_0x217d22[_0x1e63d1('0x276f')]+'\x20-\x20'+_0x217d22[_0x1e63d1('0x2696')]:'SYSTEM:GETreport','msg':_0x217d22[_0x1e63d1('0x1e07')]?JSON[_0x1e63d1('0x100b')](_0x217d22[_0x1e63d1('0x1e07')]):_0x217d22[_0x1e63d1('0x1b75')]()});});}function _0x2d137d(){const _0xc6a792=_0x560be9;_0x104b2b[_0xc6a792('0x284a')]=[],_0x104b2b['rows']=[],_0x104b2b['error']=![],_0x20898f[_0xc6a792('0x1ddd')][_0xc6a792('0x1d97')]({'fields':'field,alias','nolimit':!![],'CustomReportId':_0x104b2b['report']['id']})[_0xc6a792('0x1964')][_0xc6a792('0x173b')](function(_0x418f9c){const _0x1dd9c1=_0xc6a792;return _0x104b2b['columns']=_0x418f9c?_0x418f9c[_0x1dd9c1('0x6aa')]:[],_0x20898f[_0x1dd9c1('0x1ca6')][_0x1dd9c1('0x14e1')]({'id':_0x104b2b['report']['id']})['$promise'];})[_0xc6a792('0x173b')](function(_0x1db4ce){const _0x371d1f=_0xc6a792;_0x104b2b[_0x371d1f('0x6aa')]=_0x1db4ce;})[_0xc6a792('0x103c')](function(_0x5701f7){const _0x1fe2b4=_0xc6a792;console['log'](_0x5701f7),_0x104b2b[_0x1fe2b4('0x15aa')]={'title':_0x5701f7[_0x1fe2b4('0x276f')]?_0x1fe2b4('0x137')+_0x5701f7['status']+'\x20-\x20'+_0x5701f7[_0x1fe2b4('0x2696')]:'SYSTEM:analyticFieldReport','msg':_0x5701f7[_0x1fe2b4('0x1e07')]?_0x5701f7[_0x1fe2b4('0x1e07')]['message']:_0x5701f7['toString'](),'sql':_0x5701f7[_0x1fe2b4('0x1e07')]?_0x5701f7['data'][_0x1fe2b4('0x941')]?_0x5701f7['data'][_0x1fe2b4('0x941')][_0x1fe2b4('0x17cb')]:'NO\x20QUERY':_0x1fe2b4('0x120c')},_0x13c752[_0x1fe2b4('0x15aa')](_0x104b2b[_0x1fe2b4('0x15aa')]);});}function _0x2b4125(_0x536ca1,_0x167d17){const _0x4d85eb=_0x560be9;return _0x156524()(_0x167d17,_0x4d85eb('0x1a3d'),!![])['isValid']()&&(_0x167d17=_0x156524()(_0x167d17,'')[_0x4d85eb('0xddc')]('YYYY-MM-DD\x20HH:mm:ss')),_0x167d17;}function _0x467dd1(){const _0x34416b=_0x560be9;return _0x104b2b[_0x34416b('0x1153')]=_0x34416b('0x1bc3'),_0x20898f[_0x34416b('0x1ca6')][_0x34416b('0xc49')]({'id':_0x104b2b['report']['id']})[_0x34416b('0x1964')][_0x34416b('0x173b')](function(_0xeed2bd){_0x104b2b['queryResult']=_0xeed2bd['sql'];})['catch'](function(_0x55be69){const _0xb6b527=_0x34416b;_0x104b2b[_0xb6b527('0x1153')]='',console[_0xb6b527('0xe37')](_0x55be69),_0x104b2b['error']={'title':_0x55be69[_0xb6b527('0x276f')]?_0xb6b527('0x137')+_0x55be69[_0xb6b527('0x276f')]+_0xb6b527('0x160c')+_0x55be69[_0xb6b527('0x2696')]:_0xb6b527('0x25f5'),'msg':_0x55be69[_0xb6b527('0x1e07')]?_0x55be69[_0xb6b527('0x1e07')][_0xb6b527('0x67f')]:_0x55be69[_0xb6b527('0x1b75')](),'sql':_0x55be69['data']?_0x55be69[_0xb6b527('0x1e07')][_0xb6b527('0x941')]?_0x55be69['data'][_0xb6b527('0x941')][_0xb6b527('0x17cb')]:_0xb6b527('0x120c'):_0xb6b527('0x120c')},_0x13c752[_0xb6b527('0x15aa')](_0x104b2b['error']);});}function _0x525d66(_0x202a07,_0x33a22f){const _0xaa7cf8=_0x560be9;if(_0x4c4cb0(_0x202a07))return _0x3c8d8a()[_0xaa7cf8('0x8a2')](_0x202a07,_0x33a22f)[_0xaa7cf8('0x2259')](',');return'';}function _0x4c4cb0(_0x24fc89){return _0x3c8d8a()['isArray'](_0x24fc89);}}const _0x47128e=_0x15745b;_0x12121e[_0x566993('0x17bb')]=[_0x566993('0x19df'),'$mdDialog','toasty',_0x566993('0x358'),_0x566993('0xbd4'),_0x566993('0x1521')];function _0x12121e(_0x2c5a22,_0x45256b,_0x5187f7,_0x2ef2ba,_0x5912d5,_0x273f16){const _0x2e35c5=_0x566993,_0x2a8f4b=this;_0x2a8f4b[_0x2e35c5('0x1d4a')]=[],_0x2a8f4b[_0x2e35c5('0x358')]=angular[_0x2e35c5('0x2e3')](_0x2ef2ba),_0x2a8f4b[_0x2e35c5('0x14c0')]=_0x5624bf,_0x2a8f4b['closeDialog']=_0x447ac4,_0x42d355();function _0x42d355(){const _0x560ebb=_0x2e35c5;_0x2a8f4b[_0x560ebb('0x284a')]=[],_0x2a8f4b['rows']=[],_0x2a8f4b[_0x560ebb('0x15aa')]=![];const _0x3cc1fa={'fields':'field,alias','nolimit':!![]};_0x3cc1fa[_0x273f16===_0x560ebb('0x1ca6')?_0x560ebb('0x2415'):_0x560ebb('0x12e5')]=_0x2a8f4b[_0x560ebb('0x358')]['id'],_0x2a8f4b[_0x560ebb('0x2219')]=_0x5912d5[_0x560ebb('0x1ddd')][_0x560ebb('0x1d97')](_0x3cc1fa)[_0x560ebb('0x1964')][_0x560ebb('0x173b')](function(_0x4c0362){const _0x27b692=_0x560ebb;return _0x2a8f4b[_0x27b692('0x284a')]=_0x4c0362?_0x4c0362[_0x27b692('0x6aa')]:[],_0x5912d5[_0x273f16][_0x27b692('0x14e1')]({'id':_0x2a8f4b['report']['id']})[_0x27b692('0x1964')];})[_0x560ebb('0x173b')](function(_0x4e767e){const _0x3f00ad=_0x560ebb;_0x2a8f4b[_0x3f00ad('0x6aa')]=_0x4e767e;})['catch'](function(_0x20a1e5){const _0x3a2149=_0x560ebb;console['log'](_0x20a1e5),_0x2a8f4b['error']={'title':_0x20a1e5[_0x3a2149('0x276f')]?'API:'+_0x20a1e5[_0x3a2149('0x276f')]+_0x3a2149('0x160c')+_0x20a1e5['statusText']:_0x3a2149('0x25f5'),'msg':_0x20a1e5[_0x3a2149('0x1e07')]?_0x20a1e5[_0x3a2149('0x1e07')]['message']:_0x20a1e5[_0x3a2149('0x1b75')](),'sql':_0x20a1e5[_0x3a2149('0x1e07')]?_0x20a1e5[_0x3a2149('0x1e07')][_0x3a2149('0x941')]?_0x20a1e5[_0x3a2149('0x1e07')][_0x3a2149('0x941')][_0x3a2149('0x17cb')]:'NO\x20QUERY':'NO\x20QUERY'},_0x5187f7[_0x3a2149('0x15aa')](_0x2a8f4b[_0x3a2149('0x15aa')]);});}function _0x5624bf(_0x1add4b,_0x5cd350){const _0x476ae2=_0x2e35c5;return _0x156524()(_0x5cd350,_0x476ae2('0x1a3d'),!![])[_0x476ae2('0xf02')]()&&(_0x5cd350=_0x156524()(_0x5cd350,'')[_0x476ae2('0xddc')](_0x476ae2('0xf5f'))),_0x5cd350;}function _0x447ac4(){_0x45256b['hide']();}}const _0x4fdcc1=_0x12121e,_0x52e442=_0x21a6a1['p']+'src/js/modules/main/apps/analytics/views/reports/copy/dialog.html/dialog.html',_0x5796a2=_0x21a6a1['p']+_0x566993('0xce0'),_0x3a5953=_0x21a6a1['p']+_0x566993('0x1da3'),_0xa7d860=_0x21a6a1['p']+_0x566993('0x17ca');_0x1e0a77[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),'$document',_0x566993('0x1fe5'),'$state',_0x566993('0x1d31'),_0x566993('0x638'),_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0x1f76'),_0x566993('0x1558'),_0x566993('0x1600')];function _0x1e0a77(_0x390619,_0x5154c7,_0x2416a1,_0x3f5c0f,_0x1ea5e1,_0x435b22,_0x9dbab5,_0x34e87a,_0x119210,_0x104dd3,_0x27188d,_0x47d4ca,_0xdc8a78){const _0x1ca7e7=_0x566993,_0x5905fe=this;_0x5905fe[_0x1ca7e7('0x155f')]=_0xdc8a78[_0x1ca7e7('0x14d4')](),_0x5905fe[_0x1ca7e7('0xb50')]={'count':0x0,'rows':[]},_0x5905fe[_0x1ca7e7('0x257b')]=_0x34e87a,_0x5905fe[_0x1ca7e7('0x170e')]=_0x119210&&_0x119210['count']==0x1?_0x119210[_0x1ca7e7('0x6aa')][0x0]:null,_0x5905fe[_0x1ca7e7('0x1dc1')]=_0xdc8a78[_0x1ca7e7('0xde6')](_0x5905fe[_0x1ca7e7('0x170e')]?_0x5905fe['userProfileSection']['crudPermissions']:null),_0x5905fe[_0x1ca7e7('0x2753')]=[],_0x5905fe[_0x1ca7e7('0xc49')]={'fields':_0x1ca7e7('0xebb'),'limit':0xa,'page':0x1,'sort':_0x1ca7e7('0x1769')},_0x5905fe[_0x1ca7e7('0x1521')]=null,_0x5905fe['currentPath']='',_0x5905fe[_0x1ca7e7('0x36d')]=!![],_0x5905fe[_0x1ca7e7('0x222e')]=_0x418346,_0x5905fe[_0x1ca7e7('0x7d3')]=_0x235906,_0x5905fe[_0x1ca7e7('0xdb')]=_0x4fbcda,_0x5905fe[_0x1ca7e7('0x14d2')]=_0x5bda37,_0x5905fe[_0x1ca7e7('0x9cf')]=_0x35de9e,_0x5905fe[_0x1ca7e7('0x1a20')]=_0x247fda,_0x5905fe[_0x1ca7e7('0xdfe')]=_0x4da7be,_0x5905fe[_0x1ca7e7('0x1ebf')]=_0x405c62,_0x5905fe[_0x1ca7e7('0x18e1')]=_0x1d5f3a,_0x5905fe['importReport']=_0x2de109,_0x5905fe[_0x1ca7e7('0x2794')]=_0x3de77b,_0x5905fe[_0x1ca7e7('0x849')]=_0x42f80b,_0x5905fe['deleteSelectedReports']=_0x56766d,_0x5905fe[_0x1ca7e7('0x1524')]=_0x10cc35,_0x5905fe[_0x1ca7e7('0x1a8')]=_0xc2237e,_0x5905fe[_0x1ca7e7('0x20b')]=_0x27188d[_0x1ca7e7('0x6aa')][0x0]?angular[_0x1ca7e7('0x19c5')](_0x27188d[_0x1ca7e7('0x6aa')][0x0][_0x1ca7e7('0x1328')]):[],_0x5905fe[_0x1ca7e7('0x1bde')]=_0x27188d[_0x1ca7e7('0x6aa')][0x1]?angular[_0x1ca7e7('0x19c5')](_0x27188d[_0x1ca7e7('0x6aa')][0x1][_0x1ca7e7('0x1328')]):[],_0x5905fe[_0x1ca7e7('0xa0f')]=_0x3948f0(![]),_0x5905fe['treeCustomConfig']=_0x3948f0(!![]),_0x5905fe[_0x1ca7e7('0x158b')]=_0x3adf6a(![]),_0x5905fe[_0x1ca7e7('0x236a')]=_0x3adf6a(!![]);function _0x418346(_0x2b5f17){const _0x408547=_0x1ca7e7;_0x1ea5e1['go'](_0x408547('0xc62'),{'id':_0x2b5f17['id'],'crudPermissions':_0x5905fe['crudPermissions']});}function _0x235906(_0x539f36,_0x3d1317){const _0x4bb690=_0x1ca7e7;_0x3f5c0f[_0x4bb690('0x1cb7')]({'controller':_0x4bb690('0x174a'),'controllerAs':'vm','templateUrl':_0x52e442,'parent':angular[_0x4bb690('0xb6d')](_0x2416a1[_0x4bb690('0x1a5')]),'targetEvent':_0x3d1317,'clickOutsideToClose':!![],'locals':{'report':_0x539f36,'apiName':_0x5905fe[_0x4bb690('0x1521')],'treeCustomData':_0x5905fe[_0x4bb690('0xdae')][_0x4bb690('0x1bf7')](!![])['get_json']('#')}})[_0x4bb690('0xf25')](function(){});}function _0x4fbcda(_0x505a72,_0x13d493){const _0x1e00d8=_0x1ca7e7;_0x3f5c0f['show']({'controller':_0x1e00d8('0x1896'),'controllerAs':'vm','templateUrl':_0x5796a2,'parent':angular[_0x1e00d8('0xb6d')](_0x2416a1['body']),'targetEvent':_0x13d493,'clickOutsideToClose':!![],'locals':{'report':_0x505a72,'apiName':_0x5905fe[_0x1e00d8('0x1521')]}});}function _0x5bda37(_0x2555bb,_0x80ef51){const _0x1ba96b=_0x1ca7e7;_0x3f5c0f[_0x1ba96b('0x1cb7')]({'controller':'RunReportDialogController','controllerAs':'vm','templateUrl':_0x3a5953,'parent':angular[_0x1ba96b('0xb6d')](_0x2416a1[_0x1ba96b('0x1a5')]),'targetEvent':_0x80ef51,'clickOutsideToClose':!![],'locals':{'report':_0x2555bb,'apiName':_0x5905fe[_0x1ba96b('0x1521')],'currentPath':_0x5905fe[_0x1ba96b('0x1a52')]}});}function _0x35de9e(_0x5a854c){const _0xb45ab2=_0x1ca7e7;let _0x3a79db;_0x104dd3[_0xb45ab2('0x2061')][_0xb45ab2('0x1d97')]({'fields':'id,name,metric,table','nolimit':!![]})[_0xb45ab2('0x1964')]['then'](function(_0x5f03c7){const _0x56a67f=_0xb45ab2;_0x3a79db=_0x3c8d8a()['keyBy'](_0x5f03c7[_0x56a67f('0x6aa')],'id');const _0x3e54f2={'fields':_0x56a67f('0x1752'),'nolimit':!![]};return _0x3e54f2[_0x5905fe[_0x56a67f('0x1521')]==='analyticCustomReport'?_0x56a67f('0x2415'):'DefaultReportId']=_0x5a854c['id'],_0x104dd3['analyticFieldReport'][_0x56a67f('0x1d97')](_0x3e54f2)[_0x56a67f('0x1964')];})[_0xb45ab2('0x173b')](function(_0x17c0d5){const _0x478aa5=_0xb45ab2;for(let _0x368fea=0x0;_0x368fea<_0x17c0d5[_0x478aa5('0x6aa')][_0x478aa5('0x543')];_0x368fea+=0x1){_0x17c0d5[_0x478aa5('0x6aa')][_0x368fea][_0x478aa5('0xeeb')]&&(_0x17c0d5['rows'][_0x368fea]['field']=_0x3a79db[_0x17c0d5[_0x478aa5('0x6aa')][_0x368fea][_0x478aa5('0xeeb')]][_0x478aa5('0x1fe')],_0x17c0d5[_0x478aa5('0x6aa')][_0x368fea][_0x478aa5('0xbb4')]=!![]),delete _0x17c0d5[_0x478aa5('0x6aa')][_0x368fea][_0x478aa5('0xeeb')];}const _0x540c41=_0x435b22[_0x478aa5('0x222a')][_0x478aa5('0x1258')]('a');_0x540c41[_0x478aa5('0x165c')]=_0x478aa5('0x2790')+_0x435b22[_0x478aa5('0x194')](angular[_0x478aa5('0x36c')]({'name':_0x5a854c[_0x478aa5('0x10ad')],'description':_0x5a854c['description'],'table':_0x5a854c[_0x478aa5('0xdf9')],'conditions':_0x5a854c['conditions'],'joins':_0x5a854c[_0x478aa5('0xa69')],'fields':_0x17c0d5[_0x478aa5('0x6aa')]})),_0x540c41['download']=_0x5a854c[_0x478aa5('0x10ad')]+'.json',_0x540c41['target']=_0x478aa5('0x1edf'),_0x540c41['click'](),_0x47d4ca[_0x478aa5('0xdfe')]({'title':'Report\x20downloaded!','msg':_0x5a854c['name']?_0x5a854c[_0x478aa5('0x10ad')]+_0x478aa5('0x183b'):''});})[_0xb45ab2('0x103c')](function(_0x5bf79b){const _0x45576f=_0xb45ab2;_0x47d4ca['error']({'title':_0x5bf79b[_0x45576f('0x276f')]?'API:'+_0x5bf79b[_0x45576f('0x276f')]+_0x45576f('0x160c')+_0x5bf79b['statusText']:_0x45576f('0x1be9'),'msg':_0x5bf79b[_0x45576f('0x1e07')]?JSON['stringify'](_0x5bf79b[_0x45576f('0x1e07')]):_0x5bf79b[_0x45576f('0x1b75')]()});});}function _0x247fda(_0x30b231,_0x300f23){const _0x278820=_0x1ca7e7,_0x48760d=_0x3f5c0f[_0x278820('0x1d02')]()[_0x278820('0x20d6')](_0x278820('0x501'))[_0x278820('0xf8b')](_0x278820('0x15b9')+_0x30b231['name']+_0x278820('0x24be')+_0x278820('0xd23'))['ariaLabel'](_0x278820('0x1cac'))['targetEvent'](_0x300f23)['ok']('OK')[_0x278820('0x1e1f')](_0x278820('0x468'));_0x3f5c0f[_0x278820('0x1cb7')](_0x48760d)[_0x278820('0x173b')](function(){_0x3de77b(_0x30b231);},function(){const _0x8e87ec=_0x278820;console[_0x8e87ec('0xe37')](_0x8e87ec('0x468'));});}let _0x2d99e9=!![],_0x367efd=0x1;_0x390619[_0x1ca7e7('0x1bdb')](_0x1ca7e7('0x157b'),function(_0x3100f2,_0x2dffaf){const _0x66b2e9=_0x1ca7e7;_0x2d99e9?_0x5154c7(function(){_0x2d99e9=![];}):(!_0x2dffaf&&(_0x367efd=_0x5905fe[_0x66b2e9('0xc49')][_0x66b2e9('0x182e')]),_0x3100f2!==_0x2dffaf&&(_0x5905fe['query'][_0x66b2e9('0x182e')]=0x1),!_0x3100f2&&(_0x5905fe[_0x66b2e9('0xc49')][_0x66b2e9('0x182e')]=_0x367efd),_0x5905fe[_0x66b2e9('0x1ebf')]());}),_0x390619['$watch'](_0x1ca7e7('0x211'),function(_0x51dc77){const _0x5f51d9=_0x1ca7e7;_0x5905fe[_0x5f51d9('0xed0')]&&_0x5905fe[_0x5f51d9('0xed0')][_0x5f51d9('0x1bf7')](!![])[_0x5f51d9('0x23e7')](_0x51dc77),_0x5905fe['treeCustomInstance']&&_0x5905fe['treeCustomInstance'][_0x5f51d9('0x1bf7')](!![])[_0x5f51d9('0x23e7')](_0x51dc77);});function _0x4da7be(_0x35eee2){const _0x39860d=_0x1ca7e7;_0x5905fe[_0x39860d('0xb50')]=_0x35eee2||{'count':0x0,'rows':[]};}function _0x405c62(){const _0x1f0918=_0x1ca7e7;_0x5905fe['query'][_0x1f0918('0x17f0')]=(_0x5905fe[_0x1f0918('0xc49')]['page']-0x1)*_0x5905fe['query'][_0x1f0918('0x3e')];if(_0x5905fe['apiName']){if(_0x5905fe['currentUser']['role']===_0x1f0918('0x79b')||_0x5905fe['userProfileSection'][_0x1f0918('0x273e')])_0x5905fe['promise']=_0x104dd3[_0x5905fe[_0x1f0918('0x1521')]]['get'](_0x5905fe[_0x1f0918('0xc49')],_0x4da7be)['$promise'];else{let _0x51e88c=[];_0x5905fe['promise']=_0x104dd3[_0x5905fe[_0x1f0918('0x1521')]][_0x1f0918('0x1d97')](_0x5905fe['query'])['$promise'][_0x1f0918('0x173b')](function(_0x1ad455){const _0x2233d4=_0x1f0918;return _0x51e88c=_0x1ad455&&_0x1ad455[_0x2233d4('0x6aa')]?_0x1ad455[_0x2233d4('0x6aa')]:[],_0x51e88c[_0x2233d4('0x543')]>0x0?_0x104dd3['userProfileResource'][_0x2233d4('0x1d97')]({'sectionId':_0x5905fe[_0x2233d4('0x170e')]['id'],'type':_0x5905fe[_0x2233d4('0x1521')]===_0x2233d4('0x1d73')?_0x2233d4('0x1489'):_0x2233d4('0x151d')})[_0x2233d4('0x1964')][_0x2233d4('0x173b')](function(_0x1e0cc5){const _0x1fbee9=_0x2233d4,_0x28aead=_0x1e0cc5&&_0x1e0cc5[_0x1fbee9('0x6aa')]?_0x1e0cc5[_0x1fbee9('0x6aa')]:[];if(_0x28aead[_0x1fbee9('0x543')]>0x0){const _0x261e49=[];return _0x51e88c[_0x1fbee9('0xa6a')](function(_0x5f09f6){const _0x514d37=_0x1fbee9,_0x17eace=_0x3c8d8a()[_0x514d37('0x18ab')](_0x28aead,[_0x514d37('0x1ce0'),_0x5f09f6['id']]);if(_0x17eace)_0x261e49['push'](_0x5f09f6);}),_0x4da7be({'count':_0x261e49[_0x1fbee9('0x543')],'rows':_0x261e49});}else return _0x4da7be(null);}):_0x4da7be(null);});}}}function _0x1d5f3a(_0x569ed3,_0x9d61a7){const _0x1764f8=_0x1ca7e7;_0x3f5c0f['show']({'controller':_0x1764f8('0x1b69'),'controllerAs':'vm','templateUrl':_0xa7d860,'parent':angular[_0x1764f8('0xb6d')](_0x2416a1[_0x1764f8('0x1a5')]),'targetEvent':_0x569ed3,'clickOutsideToClose':!![],'locals':{'report':_0x9d61a7,'reports':_0x5905fe['reports'][_0x1764f8('0x6aa')],'apiName':_0x5905fe[_0x1764f8('0x1521')],'currentNode':_0x5905fe[_0x1764f8('0x549')],'setting':null,'crudPermissions':_0x5905fe[_0x1764f8('0x1dc1')]}});}function _0x2de109(_0x485ede){const _0x5128be=_0x1ca7e7;if(_0x485ede[_0x5128be('0x2522')]['type']==='application/json'){const _0x54185d=new FileReader();_0x54185d[_0x5128be('0x147d')]=function(_0x4f3c05){const _0x3e8314=_0x5128be;console[_0x3e8314('0xe37')](_0x4f3c05[_0x3e8314('0x235')][_0x3e8314('0xd09')]);try{let _0x5486cd=atob(_0x4f3c05['target']['result']['split'](',')[0x1]);_0x5486cd=angular[_0x3e8314('0x19c5')](_0x5486cd),_0x104dd3[_0x3e8314('0x1ca6')]['save']({'name':_0x5486cd[_0x3e8314('0x10ad')],'description':_0x5486cd[_0x3e8314('0x1c55')],'table':_0x5486cd[_0x3e8314('0xdf9')],'conditions':_0x5486cd['conditions'],'joins':_0x5486cd[_0x3e8314('0xa69')],'parent':_0x5905fe['currentNode']['id']})[_0x3e8314('0x1964')][_0x3e8314('0x173b')](function(_0x897dde){const _0x4dae4a=_0x3e8314;_0x5905fe[_0x4dae4a('0xb50')][_0x4dae4a('0x6aa')][_0x4dae4a('0x1377')](_0x897dde),_0x47d4ca[_0x4dae4a('0xdfe')]({'title':'Report\x20saved!','msg':_0x897dde[_0x4dae4a('0x10ad')]?_0x897dde[_0x4dae4a('0x10ad')]+'\x20has\x20been\x20saved!':''});const _0x22fd37=_0x3c8d8a()['map'](_0x5486cd[_0x4dae4a('0x2340')],function(_0x31198d){const _0x11ad64=_0x4dae4a;return _0x3c8d8a()[_0x11ad64('0x2d3')]({},_0x31198d,{'CustomReportId':_0x897dde['id']});});return _0x104dd3[_0x4dae4a('0x1ddd')]['bulkCreate'](_0x22fd37)['$promise'];})[_0x3e8314('0x173b')](function(){const _0x2aa52b=_0x3e8314;_0x47d4ca['success']({'title':_0x2aa52b('0x186c'),'msg':_0x2aa52b('0x1b7')});})[_0x3e8314('0x103c')](function(_0x1fba3c){const _0x265382=_0x3e8314;_0x47d4ca[_0x265382('0x15aa')]({'title':_0x1fba3c[_0x265382('0x276f')]?_0x265382('0x137')+_0x1fba3c[_0x265382('0x276f')]+'\x20-\x20'+_0x1fba3c[_0x265382('0x2696')]:'SYSTEM:GETanalyticReport','msg':_0x1fba3c[_0x265382('0x1e07')]?JSON[_0x265382('0x100b')](_0x1fba3c[_0x265382('0x1e07')]):_0x1fba3c[_0x265382('0x1b75')]()});});}catch(_0x5d9c50){console[_0x3e8314('0x15aa')](_0x5d9c50),_0x47d4ca['error']({'title':_0x3e8314('0x193e'),'msg':_0x5d9c50[_0x3e8314('0x1b75')]()});}},_0x54185d[_0x5128be('0x427')](_0x485ede['file']);}else _0x47d4ca[_0x5128be('0x15aa')]({'title':_0x5128be('0x139c'),'msg':_0x5128be('0x4f8')});}function _0x3de77b(_0x34bd91){const _0x47196d=_0x1ca7e7;_0x5905fe['apiName']&&_0x104dd3[_0x5905fe[_0x47196d('0x1521')]][_0x47196d('0x15e8')]({'id':_0x34bd91['id']})[_0x47196d('0x1964')][_0x47196d('0x173b')](function(){const _0x7df296=_0x47196d;_0x3c8d8a()['remove'](_0x5905fe[_0x7df296('0xb50')]['rows'],{'id':_0x34bd91['id']}),_0x5905fe[_0x7df296('0xb50')][_0x7df296('0x1a2f')]-=0x1,!_0x5905fe[_0x7df296('0xb50')][_0x7df296('0x6aa')]['length']&&_0x5905fe['getReports'](),_0x47d4ca[_0x7df296('0xdfe')]({'title':_0x7df296('0x1a69'),'msg':_0x34bd91[_0x7df296('0x10ad')]?_0x34bd91['name']+_0x7df296('0x25d2'):''});})['catch'](function(_0x4cf0a0){const _0x69a945=_0x47196d;if(_0x4cf0a0['data']&&_0x4cf0a0[_0x69a945('0x1e07')]['errors']&&_0x4cf0a0[_0x69a945('0x1e07')][_0x69a945('0x1d4a')][_0x69a945('0x543')]){_0x5905fe['errors']=_0x4cf0a0[_0x69a945('0x1e07')][_0x69a945('0x1d4a')]||[{'message':_0x4cf0a0[_0x69a945('0x1b75')](),'type':_0x69a945('0x2602')}];for(let _0x57dfd5=0x0;_0x57dfd5<_0x4cf0a0[_0x69a945('0x1e07')]['errors']['length'];_0x57dfd5++){_0x47d4ca[_0x69a945('0x15aa')]({'title':_0x4cf0a0[_0x69a945('0x1e07')]['errors'][_0x57dfd5][_0x69a945('0x1810')],'msg':_0x4cf0a0[_0x69a945('0x1e07')][_0x69a945('0x1d4a')][_0x57dfd5][_0x69a945('0x67f')]});}}else _0x47d4ca[_0x69a945('0x15aa')]({'title':_0x4cf0a0[_0x69a945('0x276f')]?_0x69a945('0x137')+_0x4cf0a0[_0x69a945('0x276f')]+_0x69a945('0x160c')+_0x4cf0a0['statusText']:_0x69a945('0x2602'),'msg':_0x4cf0a0[_0x69a945('0x1e07')]?JSON[_0x69a945('0x100b')](_0x4cf0a0[_0x69a945('0x1e07')][_0x69a945('0x67f')]):_0x4cf0a0[_0x69a945('0x67f')]||_0x4cf0a0[_0x69a945('0x1b75')]()});});}function _0x42f80b(){const _0x4fadda=_0x1ca7e7,_0x4f27b4=angular[_0x4fadda('0x2e3')](_0x5905fe[_0x4fadda('0x2753')]);return _0x5905fe[_0x4fadda('0x2753')]=[],_0x4f27b4;}function _0x56766d(_0x4528eb){const _0x3c4a3d=_0x1ca7e7,_0x56be2d=_0x3f5c0f[_0x3c4a3d('0x1d02')]()[_0x3c4a3d('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20reports?')[_0x3c4a3d('0xf8b')](_0x3c4a3d('0x15b9')+_0x5905fe[_0x3c4a3d('0x2753')]['length']+_0x3c4a3d('0xcb4')+_0x3c4a3d('0xd23'))[_0x3c4a3d('0x217')](_0x3c4a3d('0x2688'))[_0x3c4a3d('0x21de')](_0x4528eb)['ok']('OK')[_0x3c4a3d('0x1e1f')](_0x3c4a3d('0x468'));_0x3f5c0f['show'](_0x56be2d)['then'](function(){const _0x4c27fc=_0x3c4a3d;_0x5905fe[_0x4c27fc('0x2753')][_0x4c27fc('0xa6a')](function(_0x5c93bf){_0x3de77b(_0x5c93bf);}),_0x5905fe['selectedReports']=[];});}function _0x10cc35(){_0x5905fe['selectedReports']=[];}function _0xc2237e(){const _0x2e94e4=_0x1ca7e7;_0x5905fe['selectedReports']=_0x5905fe[_0x2e94e4('0xb50')][_0x2e94e4('0x6aa')];}function _0x5a40cf(_0x4b5fab,_0x43e89b){const _0x44d3db=_0x1ca7e7;_0x5905fe[_0x44d3db('0xed0')][_0x44d3db('0x1bf7')](!![])[_0x44d3db('0x851')](),_0x5905fe[_0x44d3db('0xed0')][_0x44d3db('0x1bf7')](!![])['close_all'](),_0x5905fe[_0x44d3db('0x549')]=_0x43e89b[_0x44d3db('0x161b')],_0x5905fe[_0x44d3db('0x549')][_0x44d3db('0xbb4')]=!![],_0x5905fe['currentPath']=_0x5905fe[_0x44d3db('0xdae')][_0x44d3db('0x1bf7')](!![])['get_path'](_0x5905fe[_0x44d3db('0x549')])[_0x44d3db('0x2259')]('/\x20'),_0x5905fe['apiName']=_0x44d3db('0x1ca6'),_0x5905fe[_0x44d3db('0xc49')][_0x44d3db('0x941')]=_0x43e89b['node']['id'],_0x405c62();}function _0x1e9394(_0x237488,_0x161950){const _0x17f1f2=_0x1ca7e7;_0x5905fe[_0x17f1f2('0xdae')][_0x17f1f2('0x1bf7')](!![])[_0x17f1f2('0x851')](),_0x5905fe[_0x17f1f2('0xdae')]['jstree'](!![])[_0x17f1f2('0x1877')](),_0x5905fe[_0x17f1f2('0x549')]=_0x161950[_0x17f1f2('0x161b')],_0x5905fe[_0x17f1f2('0x549')]['custom']=![],_0x5905fe[_0x17f1f2('0x1a52')]=_0x5905fe[_0x17f1f2('0xed0')]['jstree'](!![])[_0x17f1f2('0x12ba')](_0x5905fe['currentNode'])[_0x17f1f2('0x2259')]('/\x20'),_0x5905fe[_0x17f1f2('0x1521')]=_0x17f1f2('0x1d73'),_0x5905fe[_0x17f1f2('0xc49')][_0x17f1f2('0x941')]=_0x161950[_0x17f1f2('0x161b')]['id'],_0x405c62();}function _0x3f9c7d(_0x4dbc10,_0x3c9da3){const _0xa02b6a=_0x1ca7e7,_0x3dcbb0=angular[_0xa02b6a('0x36c')](_0x5905fe['treeCustomInstance'][_0xa02b6a('0x1bf7')](!![])[_0xa02b6a('0x2465')]('#'));_0x104dd3[_0xa02b6a('0x8de')]['update']({'id':0x2,'tree':_0x3dcbb0})[_0xa02b6a('0x1964')][_0xa02b6a('0x173b')](function(){const _0x39d815=_0xa02b6a;_0x27188d[_0x39d815('0x6aa')][0x1]&&(_0x27188d[_0x39d815('0x6aa')][0x1][_0x39d815('0x1328')]=_0x3dcbb0),_0x47d4ca[_0x39d815('0xdfe')]({'title':_0x39d815('0x1ea4'),'msg':_0x3c9da3[_0x39d815('0x161b')]['text']?_0x3c9da3['node'][_0x39d815('0x86e')]+_0x39d815('0x1fd6'):'Node\x20has\x20been\x20updated!'});})[_0xa02b6a('0x103c')](function(_0x26dd13){const _0x222215=_0xa02b6a;_0x47d4ca[_0x222215('0x15aa')]({'title':_0x26dd13[_0x222215('0x276f')]?_0x222215('0x137')+_0x26dd13[_0x222215('0x276f')]+_0x222215('0x160c')+_0x26dd13[_0x222215('0x2696')]:_0x222215('0x1b2b'),'msg':_0x26dd13[_0x222215('0x1e07')]?JSON['stringify'](_0x26dd13[_0x222215('0x1e07')]):_0x26dd13[_0x222215('0x1b75')]()});});}function _0x3948f0(_0x15681e){const _0x252836=_0x1ca7e7;return{'core':{'multiple':![],'animation':!![],'error':function(_0x29b6c3){const _0x594dff=a0_0xde5e;console['error'](_0x594dff('0x29a')+angular[_0x594dff('0x36c')](_0x29b6c3));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x15681e?[_0x252836('0x14f6'),_0x252836('0x1ffd'),_0x252836('0x23e7'),'state',_0x252836('0x2825')]:['search',_0x252836('0x1a49'),'wholerow'],'contextmenu':{'items':function(_0x5ae6ce){const _0x41c99c=_0x252836,_0x454389={};return _0x5905fe[_0x41c99c('0x1dc1')]['canEdit']&&_0x3c8d8a()[_0x41c99c('0x1b62')](_0x454389,{'create':{'label':_0x9dbab5[_0x41c99c('0x1467')](_0x41c99c('0x969')),'action':function(){const _0x47e644=_0x41c99c;_0x5ae6ce=_0x5905fe['treeCustomInstance']['jstree'](!![])[_0x47e644('0x23e1')](_0x5ae6ce),_0x5905fe[_0x47e644('0xdae')][_0x47e644('0x1bf7')](!![])[_0x47e644('0x331')](_0x5ae6ce);}},'rename':{'_disabled':_0x5ae6ce[_0x41c99c('0x941')]==='#','label':_0x9dbab5[_0x41c99c('0x1467')](_0x41c99c('0x2701')),'action':function(){const _0x22dab2=_0x41c99c;_0x5905fe[_0x22dab2('0xdae')][_0x22dab2('0x1bf7')](!![])[_0x22dab2('0x331')](_0x5ae6ce);}}}),_0x5905fe[_0x41c99c('0x1dc1')][_0x41c99c('0x1404')]&&_0x3c8d8a()[_0x41c99c('0x1b62')](_0x454389,{'remove':{'_disabled':_0x5ae6ce[_0x41c99c('0x941')]==='#','label':_0x9dbab5[_0x41c99c('0x1467')](_0x41c99c('0x12ef')),'action':function(){const _0x5eb89f=_0x41c99c,_0x4c8408=_0x3f5c0f[_0x5eb89f('0x1d02')]()[_0x5eb89f('0x20d6')](_0x5eb89f('0x1fb3'))[_0x5eb89f('0xf8b')](_0x5eb89f('0x15b9')+(_0x5ae6ce[_0x5eb89f('0x86e')]?_0x5ae6ce['text']:'Node')+_0x5eb89f('0x24be')+_0x5eb89f('0x19d'))[_0x5eb89f('0x217')]('delete\x20node')['ok']('OK')[_0x5eb89f('0x1e1f')](_0x5eb89f('0x468'));_0x3f5c0f[_0x5eb89f('0x1cb7')](_0x4c8408)[_0x5eb89f('0x173b')](function(){const _0x4b9e6c=_0x5eb89f;let _0x2a3d02=_0x5905fe[_0x4b9e6c('0xdae')]['jstree'](!![])[_0x4b9e6c('0x1811')](_0x5ae6ce);_0x2a3d02=_0x5905fe[_0x4b9e6c('0xdae')][_0x4b9e6c('0x1bf7')](!![])[_0x4b9e6c('0x20cb')](_0x2a3d02),_0x5905fe['treeCustomInstance'][_0x4b9e6c('0x1bf7')](!![])[_0x4b9e6c('0x703')](_0x5ae6ce),_0x15becb([_0x5ae6ce['id']][_0x4b9e6c('0x163f')](_0x5ae6ce[_0x4b9e6c('0x238c')]||[])),_0x5905fe[_0x4b9e6c('0xdae')][_0x4b9e6c('0x1bf7')](!![])['select_node'](_0x2a3d02);});}}}),_0x454389;}}};}function _0x15becb(_0x481e16){const _0x11ac90=_0x1ca7e7;return _0x104dd3[_0x11ac90('0x1ca6')][_0x11ac90('0x1d97')]({'parent':_0x481e16[_0x11ac90('0x2259')](','),'fields':_0x11ac90('0xd52')})[_0x11ac90('0x1964')]['then'](function(_0x6cc6f0){const _0x420ae1=_0x11ac90;_0x6cc6f0&&_0x6cc6f0[_0x420ae1('0x6aa')]&&_0x6cc6f0[_0x420ae1('0x6aa')][_0x420ae1('0xa6a')](function(_0x50e865){_0x3de77b(_0x50e865);});})[_0x11ac90('0x103c')](function(_0x48b3e0){const _0x1e18c2=_0x11ac90;_0x47d4ca[_0x1e18c2('0x15aa')]({'title':_0x48b3e0[_0x1e18c2('0x276f')]?_0x1e18c2('0x137')+_0x48b3e0[_0x1e18c2('0x276f')]+_0x1e18c2('0x160c')+_0x48b3e0[_0x1e18c2('0x2696')]:_0x1e18c2('0x3c9'),'msg':_0x48b3e0[_0x1e18c2('0x1e07')]?JSON['stringify'](_0x48b3e0[_0x1e18c2('0x1e07')]):_0x48b3e0[_0x1e18c2('0x1b75')]()});});}function _0x3adf6a(_0xa4ac87){return _0xa4ac87?{'create_node':_0x3f9c7d,'rename_node':_0x3f9c7d,'move_node':_0x3f9c7d,'delete_node':_0x3f9c7d,'select_node':_0x5a40cf}:{'select_node':_0x1e9394};}}const _0x348b08=_0x1e0a77,_0x197a11=_0x21a6a1['p']+'src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html/dialog.html';_0x24fb7c['$inject']=[_0x566993('0x19df'),_0x566993('0x1fe5'),'toasty',_0x566993('0x358'),_0x566993('0xbd4'),_0x566993('0x1521'),_0x566993('0x1b82'),_0x566993('0x1a52')];function _0x24fb7c(_0x3db80d,_0x175757,_0x54d695,_0x25b23d,_0x108a2b,_0x12939d,_0x163cbd,_0x9ca911){const _0x1e075f=_0x566993,_0x19b6af=this;_0x19b6af[_0x1e075f('0x1d4a')]=[],_0x19b6af[_0x1e075f('0x358')]=angular[_0x1e075f('0x2e3')](_0x25b23d),_0x19b6af[_0x1e075f('0x1dac')]={},_0x19b6af['runReport']=_0x5c3f57,_0x19b6af[_0x1e075f('0x18e2')]=_0x270c75,_0x19b6af[_0x1e075f('0x1c4f')]=_0x4cc240,_0x4cc240();function _0x4cc240(){const _0xc416ca=_0x1e075f;_0x19b6af['export']={'id':_0x19b6af['report']['id'],'name':_0x19b6af['report'][_0xc416ca('0x10ad')],'startDate':new Date(_0x156524()()['startOf'](_0xc416ca('0x48d'))),'endDate':new Date(_0x156524()()['endOf']('day')),'output':_0xc416ca('0x1554'),'fullPath':_0x9ca911?_0x9ca911+'/'+_0x19b6af[_0xc416ca('0x358')][_0xc416ca('0x10ad')]:_0x19b6af[_0xc416ca('0x358')][_0xc416ca('0x10ad')]};}function _0x5c3f57(_0x79ff25){const _0x248288=_0x1e075f;_0x19b6af['errors']=[],_0x19b6af['exportDate']=_0x3c8d8a()['assign']({},_0x19b6af[_0x248288('0x1dac')],{'startDate':_0x156524()(_0x19b6af[_0x248288('0x1dac')][_0x248288('0x1cab')])[_0x248288('0xddc')]('YYYY-MM-DD\x20HH:mm:ss'),'endDate':_0x156524()(_0x19b6af[_0x248288('0x1dac')][_0x248288('0x1a73')])[_0x248288('0xddc')]('YYYY-MM-DD\x20HH:mm:ss')}),_0x108a2b[_0x12939d]['run'](_0x19b6af['exportDate'])[_0x248288('0x1964')][_0x248288('0x173b')](function(_0x100a06){const _0x1d3bd5=_0x248288;_0x19b6af[_0x1d3bd5('0x1dac')][_0x1d3bd5('0x1e7a')]==='web'?_0x175757[_0x1d3bd5('0x1cb7')]({'controller':_0x1d3bd5('0x10c6'),'controllerAs':'vm','templateUrl':_0x197a11,'parent':angular[_0x1d3bd5('0xb6d')](_0x163cbd[_0x1d3bd5('0x1a5')]),'targetEvent':_0x79ff25,'skipHide':!![],'locals':{'apiName':_0x12939d,'exportDate':_0x19b6af[_0x1d3bd5('0x106c')],'results':_0x100a06},'resolve':{'columns':[_0x1d3bd5('0x2401'),function(_0x332560){const _0x2da354=_0x1d3bd5,_0x2cc18e={'fields':_0x2da354('0x242b'),'nolimit':!![]};return _0x2cc18e[_0x12939d===_0x2da354('0x1ca6')?_0x2da354('0x2415'):_0x2da354('0x12e5')]=_0x19b6af[_0x2da354('0x358')]['id'],_0x332560['resolve'](_0x2da354('0x15b2'),_0x2cc18e);}]}}):(_0x54d695[_0x1d3bd5('0xdfe')]({'title':'Report\x20properly\x20run!','msg':_0x19b6af[_0x1d3bd5('0x358')]['name']?_0x19b6af[_0x1d3bd5('0x358')][_0x1d3bd5('0x10ad')]+'\x20has\x20been\x20run!':''}),_0x270c75());})['catch'](function(_0x194179){const _0xfa5304=_0x248288;_0x54d695[_0xfa5304('0x15aa')]({'title':_0x194179['status']?_0xfa5304('0x137')+_0x194179['status']+'\x20-\x20'+_0x194179[_0xfa5304('0x2696')]:_0xfa5304('0x12bc'),'msg':_0x194179[_0xfa5304('0x1e07')]?JSON[_0xfa5304('0x100b')](_0x194179[_0xfa5304('0x1e07')]['message']):_0x194179[_0xfa5304('0x1b75')]()});});}function _0x270c75(){const _0x18f964=_0x1e075f;_0x175757[_0x18f964('0x1cf4')]();}}const _0x29457e=_0x24fb7c;_0x50ea9f[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x284a'),'results',_0x566993('0x1521'),'exportDate'];function _0x50ea9f(_0x44a203,_0x184788,_0x12c592,_0x2779ed,_0x47fb0d,_0x2f984b,_0x4b64a1){const _0x88aa87=_0x566993,_0x3140c7=this;_0x3140c7[_0x88aa87('0x1d4a')]=[],_0x3140c7[_0x88aa87('0x284a')]=_0x2779ed?_0x2779ed[_0x88aa87('0x6aa')]:[],_0x3140c7[_0x88aa87('0x718')]=_0x47fb0d||{'rows':[],'count':0x0},_0x3140c7['query']={'limit':0xa,'page':0x1},_0x3140c7[_0x88aa87('0x18e2')]=_0x1fd6cc,_0x3140c7[_0x88aa87('0x229c')]=_0x45489f,_0x3140c7[_0x88aa87('0x14c0')]=_0x384965;function _0x45489f(){const _0x6e9537=_0x88aa87;_0x4b64a1[_0x6e9537('0x17f0')]=(_0x3140c7[_0x6e9537('0xc49')]['page']-0x1)*_0x3140c7['query']['limit'],_0x4b64a1[_0x6e9537('0x3e')]=_0x3140c7[_0x6e9537('0xc49')]['limit'],_0x3140c7[_0x6e9537('0x2219')]=_0x12c592[_0x2f984b][_0x6e9537('0x24cf')](_0x4b64a1,_0x410790)[_0x6e9537('0x1964')];}function _0x384965(_0x422392,_0x361bbc){const _0x47d717=_0x88aa87;return _0x156524()(_0x361bbc,_0x47d717('0x1a3d'),!![])[_0x47d717('0xf02')]()&&(_0x361bbc=_0x156524()(_0x361bbc,'')[_0x47d717('0xddc')](_0x47d717('0xf5f'))),_0x361bbc;}function _0x410790(_0x574480){const _0x4e850f=_0x88aa87;_0x3140c7[_0x4e850f('0x718')]=_0x574480||{'count':0x0,'rows':[]};}function _0x1fd6cc(){const _0x5a939d=_0x88aa87;_0x44a203[_0x5a939d('0x1cf4')]();}}const _0x415a24=_0x50ea9f;_0x22d00b[_0x566993('0x17bb')]=['$stateProvider'];function _0x22d00b(_0x45a214){const _0x385f09=_0x566993;_0x45a214['state'](_0x385f09('0x185d'),{'url':_0x385f09('0xb8a'),'views':{'content@app':{'templateUrl':_0x209915,'controller':'ReportsController\x20as\x20vm'}},'resolve':{'treeReports':[_0x385f09('0x2401'),function(_0x274199){const _0x44e92a=_0x385f09;return _0x274199[_0x44e92a('0x155b')](_0x44e92a('0x204e'),{'fields':_0x44e92a('0x14ef'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x385f09('0x2401'),_0x385f09('0x1600'),function(_0x3ed65d,_0x225444){const _0x2a635b=_0x385f09;return _0x3ed65d[_0x2a635b('0x155b')](_0x2a635b('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x225444[_0x2a635b('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x385f09('0x2401'),_0x385f09('0x1600'),function(_0x7f1322,_0x17aa08){const _0x5e2ff6=_0x385f09;return _0x7f1322[_0x5e2ff6('0x155b')](_0x5e2ff6('0x40'),{'fields':_0x5e2ff6('0x1348'),'userProfileId':_0x17aa08[_0x5e2ff6('0x14d4')]()[_0x5e2ff6('0x1946')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x385f09('0x7c5')})[_0x385f09('0x1a49')](_0x385f09('0xc62'),{'url':_0x385f09('0xb4c'),'views':{'content@app':{'templateUrl':_0x5d6925,'controller':_0x385f09('0x1070')}},'resolve':{'report':['apiResolver',_0x385f09('0x1caf'),'$q',_0x385f09('0x93d'),function(_0xab6d6d,_0x575a40,_0x57c58b,_0x3c1d55){const _0x509cc2=_0x385f09;let _0x352913;return _0xab6d6d['resolve'](_0x509cc2('0x12c2'),{'fields':_0x509cc2('0xea2'),'id':_0x575a40['id']})[_0x509cc2('0x173b')](function(_0x2cf0b6){const _0x10d797=_0x509cc2,_0x3ab694=[];_0x352913=_0x2cf0b6;if(_0x352913['joins'])try{_0x352913[_0x10d797('0xa69')]=JSON['parse'](_0x352913[_0x10d797('0xa69')]);for(let _0x5f4b56=0x0;_0x5f4b56<_0x352913['joins'][_0x10d797('0x543')];_0x5f4b56+=0x1){_0x3ab694[_0x10d797('0x18bb')](_0x3c1d55['getColumns'](_0x352913[_0x10d797('0xa69')][_0x5f4b56]['foreignTable']));}}catch(_0x1a168f){console['log'](_0x1a168f);}return _0x57c58b[_0x10d797('0x27c8')](_0x3ab694);})[_0x509cc2('0x173b')](function(_0x23c383){const _0x355d91=_0x509cc2;for(let _0x149419=0x0;_0x149419<_0x23c383[_0x355d91('0x543')];_0x149419+=0x1){_0x352913['joins'][_0x149419]['foreignTableFields']=_0x3c8d8a()['difference'](_0x3c8d8a()[_0x355d91('0x1d3e')](_0x23c383[_0x149419]),[_0x355d91('0x1964'),_0x355d91('0x14ad')]);}return _0x352913;});}],'userProfileSection':['apiResolver','Auth',function(_0x23692b,_0x2bc341){const _0x2bbf6f=_0x385f09;return _0x23692b[_0x2bbf6f('0x155b')](_0x2bbf6f('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2bc341['getCurrentUser']()['userProfileId'],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x385f09('0x7c5')});}angular['module']('app.analytics.reports',[_0x566993('0x1fa6')])[_0x566993('0xea9')](_0x22d00b)[_0x566993('0x1e65')](_0x566993('0x174a'),_0x277c10)[_0x566993('0x1e65')]('CreateOrEditReportDialogController',_0x242504)[_0x566993('0x1e65')]('ReportConditionsController',_0x58fb57)['factory'](_0x566993('0x93d'),_0x643ac8)[_0x566993('0x1e65')](_0x566993('0x16c4'),_0x2a5c1a)['controller'](_0x566993('0x24f5'),_0x156810)[_0x566993('0x235c')](_0x566993('0x1c3b'),_0xf64b7d)[_0x566993('0x1e65')](_0x566993('0xda'),_0x47128e)[_0x566993('0x1e65')](_0x566993('0x1896'),_0x4fdcc1)[_0x566993('0x1e65')](_0x566993('0x1d9b'),_0x348b08)[_0x566993('0x1e65')](_0x566993('0x751'),_0x29457e)[_0x566993('0x1e65')]('WebReportDialogController',_0x415a24),_0x190934[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state','$location',_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0x14e4'),_0x566993('0xaee'),'api',_0x566993('0x1600'),'license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x190934(_0x4d33e3,_0x4df744,_0x4b5051,_0x516e91,_0xa2abe,_0x339d95,_0xce47fe,_0x2c8426,_0xfdde28,_0x3f957d,_0x1583e7,_0x37e5b3,_0x44cc87,_0x306a57){const _0x3d7185=_0x566993,_0x2c998c=this;_0x2c998c[_0x3d7185('0x155f')]=_0x1583e7[_0x3d7185('0x14d4')](),_0x2c998c[_0x3d7185('0x1d4a')]=[],_0x2c998c[_0x3d7185('0x251')]=_0x44cc87,_0x2c998c[_0x3d7185('0x1a29')]=_0x37e5b3,_0x2c998c[_0x3d7185('0x1dc1')]=_0x306a57,_0x2c998c[_0x3d7185('0xb0')]={},_0x2c998c[_0x3d7185('0x644')]=_0x2c998c[_0x3d7185('0x251')]&&_0x2c998c['setting'][_0x3d7185('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c998c['title']=_0x3d7185('0x637'),_0x2c998c[_0x3d7185('0xaee')]=angular[_0x3d7185('0x2e3')](_0xfdde28),_0x2c998c[_0x3d7185('0x14e4')]=_0x2c8426,_0x2c998c[_0x3d7185('0x1c83')]=![];!_0x2c998c[_0x3d7185('0xaee')]&&(_0x2c998c['extractedReport']={},_0x2c998c['title']=_0x3d7185('0x1632'),_0x2c998c[_0x3d7185('0x1c83')]=!![]);_0x2c998c[_0x3d7185('0x7bc')]=_0x17fd6c,_0x2c998c[_0x3d7185('0x762')]=_0x429210,_0x2c998c[_0x3d7185('0x1af0')]=_0x2c43fc,_0x2c998c[_0x3d7185('0x11ae')]=_0x17131,_0x2c998c[_0x3d7185('0x18e2')]=_0xa12892;function _0x17fd6c(){const _0x2fc03d=_0x3d7185;_0x2c998c['errors']=[],_0x3f957d[_0x2fc03d('0x1b3a')][_0x2fc03d('0x1195')](_0x2c998c[_0x2fc03d('0xaee')])['$promise']['then'](function(_0x1d70ed){const _0x4ae470=_0x2fc03d;_0x2c998c[_0x4ae470('0x14e4')][_0x4ae470('0x1377')](_0x1d70ed['toJSON']()),_0xce47fe[_0x4ae470('0xdfe')]({'title':_0x4ae470('0x1991'),'msg':_0x2c998c[_0x4ae470('0xaee')]['name']?_0x2c998c[_0x4ae470('0xaee')]['name']+'\x20has\x20been\x20created!':''}),_0xa12892(_0x1d70ed);})[_0x2fc03d('0x103c')](function(_0xb78a13){const _0x4f68cf=_0x2fc03d;if(_0xb78a13[_0x4f68cf('0x1e07')]&&_0xb78a13[_0x4f68cf('0x1e07')][_0x4f68cf('0x1d4a')]&&_0xb78a13[_0x4f68cf('0x1e07')][_0x4f68cf('0x1d4a')][_0x4f68cf('0x543')]){_0x2c998c[_0x4f68cf('0x1d4a')]=_0xb78a13['data'][_0x4f68cf('0x1d4a')]||[{'message':_0xb78a13[_0x4f68cf('0x1b75')](),'type':_0x4f68cf('0x12bf')}];for(let _0x26ae6a=0x0;_0x26ae6a<_0xb78a13['data'][_0x4f68cf('0x1d4a')][_0x4f68cf('0x543')];_0x26ae6a+=0x1){_0xce47fe[_0x4f68cf('0x15aa')]({'title':_0xb78a13[_0x4f68cf('0x1e07')][_0x4f68cf('0x1d4a')][_0x26ae6a][_0x4f68cf('0x1810')],'msg':_0xb78a13['data'][_0x4f68cf('0x1d4a')][_0x26ae6a][_0x4f68cf('0x67f')]});}}else _0xce47fe[_0x4f68cf('0x15aa')]({'title':_0xb78a13[_0x4f68cf('0x276f')]?'API:'+_0xb78a13[_0x4f68cf('0x276f')]+_0x4f68cf('0x160c')+_0xb78a13[_0x4f68cf('0x2696')]:'api.analyticExtractedReport.save','msg':_0xb78a13['data']?JSON[_0x4f68cf('0x100b')](_0xb78a13[_0x4f68cf('0x1e07')]['message']):_0xb78a13[_0x4f68cf('0x1b75')]()});});}function _0x429210(){const _0x48e0a8=_0x3d7185;_0x2c998c[_0x48e0a8('0x1d4a')]=[],_0x3f957d[_0x48e0a8('0x1b3a')][_0x48e0a8('0x1842')]({'id':_0x2c998c[_0x48e0a8('0xaee')]['id']},_0x2c998c[_0x48e0a8('0xaee')])[_0x48e0a8('0x1964')][_0x48e0a8('0x173b')](function(_0x33941e){const _0x4a9b5e=_0x48e0a8,_0x2b986c=_0x3c8d8a()['find'](_0x2c998c[_0x4a9b5e('0x14e4')],{'id':_0x33941e['id']});_0x2b986c&&_0x3c8d8a()[_0x4a9b5e('0x9ef')](_0x2b986c,_0x3c8d8a()[_0x4a9b5e('0x2114')](_0x33941e['toJSON'](),_0x3c8d8a()[_0x4a9b5e('0x1d3e')](_0x2b986c))),_0xce47fe['success']({'title':_0x4a9b5e('0x1f3b'),'msg':_0x2c998c[_0x4a9b5e('0xaee')][_0x4a9b5e('0x10ad')]?_0x2c998c[_0x4a9b5e('0xaee')]['name']+_0x4a9b5e('0x2788'):''}),_0xa12892(_0x33941e);})[_0x48e0a8('0x103c')](function(_0x30b294){const _0x68df7=_0x48e0a8;if(_0x30b294[_0x68df7('0x1e07')]&&_0x30b294[_0x68df7('0x1e07')][_0x68df7('0x1d4a')]&&_0x30b294[_0x68df7('0x1e07')][_0x68df7('0x1d4a')][_0x68df7('0x543')]){_0x2c998c[_0x68df7('0x1d4a')]=_0x30b294[_0x68df7('0x1e07')]['errors']||[{'message':_0x30b294[_0x68df7('0x1b75')](),'type':'api.analyticExtractedReport.update'}];for(let _0x49835d=0x0;_0x49835d<_0x30b294['data'][_0x68df7('0x1d4a')][_0x68df7('0x543')];_0x49835d++){_0xce47fe[_0x68df7('0x15aa')]({'title':_0x30b294[_0x68df7('0x1e07')]['errors'][_0x49835d][_0x68df7('0x1810')],'msg':_0x30b294[_0x68df7('0x1e07')][_0x68df7('0x1d4a')][_0x49835d][_0x68df7('0x67f')]});}}else _0xce47fe['error']({'title':_0x30b294[_0x68df7('0x276f')]?_0x68df7('0x137')+_0x30b294['status']+'\x20-\x20'+_0x30b294[_0x68df7('0x2696')]:_0x68df7('0x26cd'),'msg':_0x30b294['data']?JSON[_0x68df7('0x100b')](_0x30b294[_0x68df7('0x1e07')][_0x68df7('0x67f')]):_0x30b294['toString']()});});}function _0x2c43fc(_0x3d2047){const _0x22e62f=_0x3d7185;_0x2c998c[_0x22e62f('0x1d4a')]=[];const _0x683993=_0x516e91[_0x22e62f('0x1d02')]()['title'](_0x22e62f('0x8ef'))['content'](_0x22e62f('0x1028'))[_0x22e62f('0x217')]('Delete\x20ExtractedReport')['ok'](_0x22e62f('0x2373'))['cancel'](_0x22e62f('0x1d4e'))[_0x22e62f('0x21de')](_0x3d2047);_0x516e91[_0x22e62f('0x1cb7')](_0x683993)['then'](function(){const _0x55c545=_0x22e62f;_0x3f957d[_0x55c545('0x1b3a')][_0x55c545('0x15e8')]({'id':_0x2c998c[_0x55c545('0xaee')]['id']})[_0x55c545('0x1964')]['then'](function(){const _0x1db05d=_0x55c545;_0x3c8d8a()['remove'](_0x2c998c[_0x1db05d('0x14e4')],{'id':_0x2c998c[_0x1db05d('0xaee')]['id']}),_0xce47fe[_0x1db05d('0xdfe')]({'title':_0x1db05d('0x709'),'msg':(_0x2c998c[_0x1db05d('0xaee')][_0x1db05d('0x10ad')]||_0x1db05d('0xaee'))+_0x1db05d('0x25d2')}),_0xa12892(_0x2c998c[_0x1db05d('0xaee')]);})['catch'](function(_0x550c68){const _0x1ebe4c=_0x55c545;if(_0x550c68[_0x1ebe4c('0x1e07')]&&_0x550c68[_0x1ebe4c('0x1e07')][_0x1ebe4c('0x1d4a')]&&_0x550c68['data'][_0x1ebe4c('0x1d4a')]['length']){_0x2c998c[_0x1ebe4c('0x1d4a')]=_0x550c68[_0x1ebe4c('0x1e07')][_0x1ebe4c('0x1d4a')]||[{'message':_0x550c68['toString'](),'type':_0x1ebe4c('0x386')}];for(let _0x559153=0x0;_0x559153<_0x550c68[_0x1ebe4c('0x1e07')][_0x1ebe4c('0x1d4a')]['length'];_0x559153++){_0xce47fe[_0x1ebe4c('0x15aa')]({'title':_0x550c68[_0x1ebe4c('0x1e07')]['errors'][_0x559153][_0x1ebe4c('0x1810')],'msg':_0x550c68['data']['errors'][_0x559153][_0x1ebe4c('0x67f')]});}}else _0xce47fe['error']({'title':_0x550c68[_0x1ebe4c('0x276f')]?_0x1ebe4c('0x137')+_0x550c68[_0x1ebe4c('0x276f')]+_0x1ebe4c('0x160c')+_0x550c68['statusText']:_0x1ebe4c('0x386'),'msg':_0x550c68[_0x1ebe4c('0x1e07')]?JSON['stringify'](_0x550c68[_0x1ebe4c('0x1e07')][_0x1ebe4c('0x67f')]):_0x550c68[_0x1ebe4c('0x67f')]||_0x550c68[_0x1ebe4c('0x1b75')]()});});},function(){});}function _0x17131(_0x434689){return _0x434689===null?undefined:new Date(_0x434689);}function _0xa12892(_0x17efdf){const _0x175a3d=_0x3d7185;_0x516e91[_0x175a3d('0x1cf4')](_0x17efdf);}}const _0x54dfb6=_0x190934,_0xeb0396=_0x21a6a1['p']+_0x566993('0x86a');_0x5766b3[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x14e4'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x5766b3(_0x17892d,_0x2601a1,_0x3f9480,_0x1250c2,_0x4e3d47,_0x4c6f2b,_0x18516e,_0x3a34ee,_0x289dc5,_0x2fbce4,_0xbb8416,_0x51e3fe,_0xfd8ba1,_0x2cca92,_0x5aa9bf,_0x5cda2a,_0x210368){const _0x2fc997=_0x566993,_0x460193=this;_0x460193[_0x2fc997('0x1a29')]=_0x5cda2a,_0x460193[_0x2fc997('0x251')]=_0x210368,_0x460193[_0x2fc997('0x155f')]=_0x5aa9bf[_0x2fc997('0x14d4')](),_0x460193[_0x2fc997('0x14e4')]=_0x289dc5||{'count':0x0,'rows':[]},_0x460193[_0x2fc997('0x257b')]=_0x2fbce4,_0x460193['userProfileSection']=_0xbb8416&&_0xbb8416['count']==0x1?_0xbb8416[_0x2fc997('0x6aa')][0x0]:null,_0x460193[_0x2fc997('0x1dc1')]=_0x5aa9bf['parseCrudPermissions'](_0x460193['userProfileSection']?_0x460193[_0x2fc997('0x170e')]['crudPermissions']:null),_0x460193[_0x2fc997('0xdf9')]=_0x2fc997('0x14e4'),_0x460193[_0x2fc997('0x14d6')]='',_0x460193[_0x2fc997('0x2303')]=null,_0x460193['selectedExtractedReports']=[],_0x460193[_0x2fc997('0xc49')]={'fields':_0x2fc997('0x165a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x460193[_0x2fc997('0x19eb')]=_0xc33bfc,_0x460193[_0x2fc997('0x1302')]=_0x477fcd,_0x460193[_0x2fc997('0x1a20')]=_0x475977,_0x460193[_0x2fc997('0xdfe')]=_0x1751f1,_0x460193['getExtractedReports']=_0x4c6fee,_0x460193[_0x2fc997('0x10a5')]=_0x6bd79e,_0x460193[_0x2fc997('0x1af0')]=_0x51f6d8,_0x460193[_0x2fc997('0x1a87')]=_0x492999,_0x460193['deleteSelectedExtractedReports']=_0xb81dd,_0x460193['deselectExtractedReports']=_0xfce52c,_0x460193[_0x2fc997('0x2613')]=_0x31b36c;function _0xc33bfc(_0x5c0740,_0x196eab){const _0x24e346=_0x2fc997;_0x4e3d47[_0x24e346('0x1cb7')]({'controller':_0x24e346('0xdbd'),'controllerAs':'vm','templateUrl':_0xeb0396,'parent':angular['element'](_0x4c6f2b['body']),'targetEvent':_0x196eab,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x5c0740,'extractedReports':_0x460193[_0x24e346('0x14e4')][_0x24e346('0x6aa')],'license':_0x460193[_0x24e346('0x1a29')],'setting':null,'crudPermissions':_0x460193[_0x24e346('0x1dc1')]}});}function _0x477fcd(_0x59a89f){const _0x2a9e21=_0x2fc997;return _0x51e3fe[_0x2a9e21('0x1b3a')][_0x2a9e21('0xfce')]({'id':_0x59a89f['id']})[_0x2a9e21('0x1964')]['then'](function(_0x4d0f1c){const _0x7e370f=_0x2a9e21,_0x3e4644=[_0x4d0f1c[_0x7e370f('0x1c22')]];let _0x5d9508=_0x7e370f('0xfce');const _0x269053=new Blob(_0x3e4644,{'type':_0x4d0f1c['type']});_0x5d9508=_0x59a89f[_0x7e370f('0x1ba9')];const _0x15b7dc=window[_0x7e370f('0x222a')][_0x7e370f('0x1258')]('a');_0x15b7dc[_0x7e370f('0x11c3')]('href',URL[_0x7e370f('0x1466')](_0x269053)),_0x15b7dc[_0x7e370f('0x11c3')]('download',_0x5d9508),document[_0x7e370f('0x1a5')]['appendChild'](_0x15b7dc),_0x15b7dc[_0x7e370f('0x3cb')]();})['catch'](function(_0x566741){const _0x77f7b=_0x2a9e21;if(_0x566741[_0x77f7b('0x1e07')]&&_0x566741[_0x77f7b('0x1e07')][_0x77f7b('0x1d4a')]&&_0x566741[_0x77f7b('0x1e07')]['errors'][_0x77f7b('0x543')])for(let _0xe8148c=0x0;_0xe8148c<_0x566741['data']['errors']['length'];_0xe8148c++){_0x2cca92[_0x77f7b('0x15aa')]({'title':_0x566741[_0x77f7b('0x1e07')]['errors'][_0xe8148c][_0x77f7b('0x1810')],'msg':_0x566741['data']['errors'][_0xe8148c][_0x77f7b('0x67f')]});}else _0x2cca92['error']({'title':_0x566741[_0x77f7b('0x276f')]?_0x77f7b('0x137')+_0x566741[_0x77f7b('0x276f')]+_0x77f7b('0x160c')+_0x566741[_0x77f7b('0x2696')]:_0x77f7b('0x12bf'),'msg':_0x566741[_0x77f7b('0x1e07')]?JSON['stringify'](_0x566741[_0x77f7b('0x1e07')][_0x77f7b('0x67f')]):_0x566741[_0x77f7b('0x1b75')]()});});}function _0x475977(_0x25d52b,_0x4883fa){const _0x7b4b79=_0x2fc997,_0x2fb559=_0x4e3d47[_0x7b4b79('0x1d02')]()['title'](_0x7b4b79('0x5bb')+_0x3c8d8a()[_0x7b4b79('0x10e')](_0x7b4b79('0xaee'))+'?')['htmlContent'](_0x7b4b79('0x15b9')+(_0x25d52b['name']||_0x7b4b79('0xaee'))+_0x7b4b79('0x24be')+_0x7b4b79('0xd23'))[_0x7b4b79('0x217')](_0x7b4b79('0xada'))['targetEvent'](_0x4883fa)['ok']('OK')[_0x7b4b79('0x1e1f')](_0x7b4b79('0x468'));_0x4e3d47[_0x7b4b79('0x1cb7')](_0x2fb559)[_0x7b4b79('0x173b')](function(){_0x51f6d8(_0x25d52b);},function(){const _0x2ecb6f=_0x7b4b79;console[_0x2ecb6f('0xe37')](_0x2ecb6f('0x468'));});}let _0x2cf087=!![],_0x305449=0x1;_0x17892d[_0x2fc997('0x1bdb')](_0x2fc997('0x157b'),function(_0x25377a,_0x314508){const _0xa53b3a=_0x2fc997;_0x2cf087?_0x18516e(function(){_0x2cf087=![];}):(!_0x314508&&(_0x305449=_0x460193['query'][_0xa53b3a('0x182e')]),_0x25377a!==_0x314508&&(_0x460193[_0xa53b3a('0xc49')][_0xa53b3a('0x182e')]=0x1),!_0x25377a&&(_0x460193[_0xa53b3a('0xc49')][_0xa53b3a('0x182e')]=_0x305449),_0x460193['getExtractedReports']());});function _0x1751f1(_0x233058){const _0x860bed=_0x2fc997;_0x460193[_0x860bed('0x14e4')]=_0x233058||{'count':0x0,'rows':[]};}function _0x4c6fee(){const _0x36061d=_0x2fc997;_0x460193[_0x36061d('0xc49')][_0x36061d('0x17f0')]=(_0x460193[_0x36061d('0xc49')][_0x36061d('0x182e')]-0x1)*_0x460193[_0x36061d('0xc49')][_0x36061d('0x3e')],_0x5aa9bf[_0x36061d('0x1b4e')](_0x36061d('0x79b'))?_0x460193[_0x36061d('0x2219')]=_0x51e3fe[_0x36061d('0x1b3a')][_0x36061d('0x1d97')](_0x460193[_0x36061d('0xc49')],_0x1751f1)[_0x36061d('0x1964')]:(_0x460193[_0x36061d('0xc49')]['id']=_0x460193[_0x36061d('0x257b')]['id'],_0x460193[_0x36061d('0xc49')][_0x36061d('0x17c9')]=_0x36061d('0xb85'),_0x460193[_0x36061d('0x2219')]=_0x51e3fe[_0x36061d('0x257b')][_0x36061d('0x135b')](_0x460193[_0x36061d('0xc49')],_0x1751f1)[_0x36061d('0x1964')]);}function _0x6bd79e(_0x4ef5c8,_0x56d99d){const _0x50a835=_0x2fc997;_0x4e3d47['show']({'controller':_0x50a835('0xdbd'),'controllerAs':'vm','templateUrl':_0xeb0396,'parent':angular[_0x50a835('0xb6d')](_0x4c6f2b[_0x50a835('0x1a5')]),'targetEvent':_0x4ef5c8,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x56d99d,'extractedReports':_0x460193[_0x50a835('0x14e4')][_0x50a835('0x6aa')],'license':_0x460193[_0x50a835('0x1a29')],'setting':_0x460193[_0x50a835('0x251')],'crudPermissions':_0x460193[_0x50a835('0x1dc1')]}});}function _0x51f6d8(_0x29ad1f){const _0x42782c=_0x2fc997;_0x51e3fe['analyticExtractedReport'][_0x42782c('0x15e8')]({'id':_0x29ad1f['id']})[_0x42782c('0x1964')][_0x42782c('0x173b')](function(){const _0x583c24=_0x42782c;_0x3c8d8a()[_0x583c24('0x1a8b')](_0x460193['extractedReports']['rows'],{'id':_0x29ad1f['id']}),_0x460193[_0x583c24('0x14e4')][_0x583c24('0x1a2f')]-=0x1,!_0x460193[_0x583c24('0x14e4')][_0x583c24('0x6aa')][_0x583c24('0x543')]&&_0x460193[_0x583c24('0x23dd')](),_0x2cca92[_0x583c24('0xdfe')]({'title':_0x3c8d8a()[_0x583c24('0x10e')](_0x583c24('0x25ad'))+_0x583c24('0x1c5e'),'msg':_0x29ad1f[_0x583c24('0x10ad')]?_0x29ad1f[_0x583c24('0x10ad')]+_0x583c24('0x25d2'):''});})[_0x42782c('0x103c')](function(_0x3ba39a){const _0x3b2e56=_0x42782c;if(_0x3ba39a[_0x3b2e56('0x1e07')]&&_0x3ba39a[_0x3b2e56('0x1e07')]['errors']&&_0x3ba39a[_0x3b2e56('0x1e07')][_0x3b2e56('0x1d4a')][_0x3b2e56('0x543')]){_0x460193[_0x3b2e56('0x1d4a')]=_0x3ba39a[_0x3b2e56('0x1e07')][_0x3b2e56('0x1d4a')]||[{'message':_0x3ba39a[_0x3b2e56('0x1b75')](),'type':_0x3b2e56('0xc4d')}];for(let _0x489326=0x0;_0x489326<_0x3ba39a[_0x3b2e56('0x1e07')][_0x3b2e56('0x1d4a')]['length'];_0x489326++){_0x2cca92['error']({'title':_0x3ba39a['data'][_0x3b2e56('0x1d4a')][_0x489326]['type'],'msg':_0x3ba39a[_0x3b2e56('0x1e07')][_0x3b2e56('0x1d4a')][_0x489326][_0x3b2e56('0x67f')]});}}else _0x2cca92['error']({'title':_0x3ba39a[_0x3b2e56('0x276f')]?_0x3b2e56('0x137')+_0x3ba39a[_0x3b2e56('0x276f')]+_0x3b2e56('0x160c')+_0x3ba39a['statusText']:_0x3b2e56('0xc4d'),'msg':_0x3ba39a[_0x3b2e56('0x1e07')]?JSON[_0x3b2e56('0x100b')](_0x3ba39a[_0x3b2e56('0x1e07')]['message']):_0x3ba39a[_0x3b2e56('0x67f')]||_0x3ba39a['toString']()});});}function _0x492999(){const _0x2f2cdf=_0x2fc997,_0x26f440=angular[_0x2f2cdf('0x2e3')](_0x460193[_0x2f2cdf('0x177b')]);return _0x460193[_0x2f2cdf('0x177b')]=[],_0x26f440;}function _0xb81dd(_0x919003){const _0x43f27f=_0x2fc997,_0x287c8d=_0x4e3d47[_0x43f27f('0x1d02')]()[_0x43f27f('0x20d6')](_0x43f27f('0xb15'))[_0x43f27f('0xf8b')](''+_0x460193['selectedExtractedReports'][_0x43f27f('0x543')]+_0x43f27f('0xcb4')+_0x43f27f('0xd23'))[_0x43f27f('0x217')](_0x43f27f('0x252d'))[_0x43f27f('0x21de')](_0x919003)['ok']('OK')[_0x43f27f('0x1e1f')]('CANCEL');_0x4e3d47[_0x43f27f('0x1cb7')](_0x287c8d)[_0x43f27f('0x173b')](function(){const _0x102a8b=_0x43f27f;_0x460193[_0x102a8b('0x177b')][_0x102a8b('0xa6a')](function(_0x141ac5){_0x51f6d8(_0x141ac5);}),_0x460193['selectedExtractedReports']=[];});}function _0xfce52c(){const _0x3a746c=_0x2fc997;_0x460193[_0x3a746c('0x177b')]=[];}function _0x31b36c(){const _0x4e459e=_0x2fc997;_0x460193['selectedExtractedReports']=_0x460193[_0x4e459e('0x14e4')]['rows'];}}const _0x2ec5fb=_0x5766b3;_0x273b9c[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0x1716'),_0x566993('0x1fe'),_0x566993('0xbd4'),'Auth','license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x273b9c(_0x367a9a,_0x898763,_0x17cca0,_0x56e62c,_0x321702,_0x17fc85,_0x6638db,_0x54a655,_0x5201e1,_0x2d1be3,_0x85f03c,_0x17b48f,_0x10ebbc,_0x3563d4){const _0x3e96ec=_0x566993,_0x2655bf=this;_0x2655bf[_0x3e96ec('0x155f')]=_0x85f03c['getCurrentUser'](),_0x2655bf[_0x3e96ec('0x1d4a')]=[],_0x2655bf[_0x3e96ec('0x251')]=_0x10ebbc,_0x2655bf[_0x3e96ec('0x1a29')]=_0x17b48f,_0x2655bf[_0x3e96ec('0x1dc1')]=_0x3563d4,_0x2655bf[_0x3e96ec('0xb0')]={},_0x2655bf[_0x3e96ec('0x644')]=_0x2655bf[_0x3e96ec('0x251')]&&_0x2655bf[_0x3e96ec('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2655bf['title']=_0x3e96ec('0x153c'),_0x2655bf[_0x3e96ec('0x1fe')]=angular[_0x3e96ec('0x2e3')](_0x5201e1),_0x2655bf[_0x3e96ec('0x1716')]=_0x54a655,_0x2655bf['newMetric']=![];!_0x2655bf[_0x3e96ec('0x1fe')]&&(_0x2655bf[_0x3e96ec('0x1fe')]={'table':_0x3e96ec('0xa54')},_0x2655bf[_0x3e96ec('0x20d6')]=_0x3e96ec('0xf4b'),_0x2655bf[_0x3e96ec('0xa0c')]=!![]);_0x2655bf[_0x3e96ec('0x25f8')]=_0x8686e3,_0x2655bf['saveMetric']=_0xf280c2,_0x2655bf[_0x3e96ec('0xabc')]=_0x2d11e0,_0x2655bf[_0x3e96ec('0x11ae')]=_0x4b219e,_0x2655bf['closeDialog']=_0x20b33c;function _0x8686e3(){const _0x16d40a=_0x3e96ec;_0x2655bf[_0x16d40a('0x1d4a')]=[],_0x2d1be3[_0x16d40a('0x2061')]['save'](_0x2655bf[_0x16d40a('0x1fe')])[_0x16d40a('0x1964')][_0x16d40a('0x173b')](function(_0x380fb1){const _0x5ab656=_0x16d40a;_0x2655bf[_0x5ab656('0x1716')][_0x5ab656('0x1377')](_0x380fb1[_0x5ab656('0xf1f')]()),_0x6638db[_0x5ab656('0xdfe')]({'title':_0x5ab656('0x1f9f'),'msg':_0x2655bf[_0x5ab656('0x1fe')][_0x5ab656('0x10ad')]?_0x2655bf['metric'][_0x5ab656('0x10ad')]+_0x5ab656('0x209a'):''}),_0x20b33c(_0x380fb1);})[_0x16d40a('0x103c')](function(_0x183108){const _0x42b167=_0x16d40a;if(_0x183108['data']&&_0x183108['data'][_0x42b167('0x1d4a')]&&_0x183108[_0x42b167('0x1e07')][_0x42b167('0x1d4a')]['length']){_0x2655bf['errors']=_0x183108['data']['errors']||[{'message':_0x183108[_0x42b167('0x1b75')](),'type':_0x42b167('0xb19')}];for(let _0x39dce5=0x0;_0x39dce5<_0x183108[_0x42b167('0x1e07')][_0x42b167('0x1d4a')][_0x42b167('0x543')];_0x39dce5+=0x1){_0x6638db[_0x42b167('0x15aa')]({'title':_0x183108['data'][_0x42b167('0x1d4a')][_0x39dce5][_0x42b167('0x1810')],'msg':_0x183108[_0x42b167('0x1e07')][_0x42b167('0x1d4a')][_0x39dce5][_0x42b167('0x67f')]});}}else _0x6638db[_0x42b167('0x15aa')]({'title':_0x183108[_0x42b167('0x276f')]?'API:'+_0x183108[_0x42b167('0x276f')]+_0x42b167('0x160c')+_0x183108[_0x42b167('0x2696')]:_0x42b167('0xb19'),'msg':_0x183108['data']?JSON['stringify'](_0x183108[_0x42b167('0x1e07')][_0x42b167('0x67f')]):_0x183108['toString']()});});}function _0xf280c2(){const _0x4d1c2f=_0x3e96ec;_0x2655bf[_0x4d1c2f('0x1d4a')]=[],_0x2d1be3[_0x4d1c2f('0x2061')]['update']({'id':_0x2655bf[_0x4d1c2f('0x1fe')]['id']},_0x2655bf[_0x4d1c2f('0x1fe')])['$promise'][_0x4d1c2f('0x173b')](function(_0x2f36ad){const _0x2a86bf=_0x4d1c2f,_0x5e7f26=_0x3c8d8a()[_0x2a86bf('0x18ab')](_0x2655bf[_0x2a86bf('0x1716')],{'id':_0x2f36ad['id']});_0x5e7f26&&_0x3c8d8a()['merge'](_0x5e7f26,_0x3c8d8a()[_0x2a86bf('0x2114')](_0x2f36ad[_0x2a86bf('0xf1f')](),_0x3c8d8a()[_0x2a86bf('0x1d3e')](_0x5e7f26))),_0x6638db['success']({'title':'Metric\x20properly\x20saved!','msg':_0x2655bf['metric'][_0x2a86bf('0x10ad')]?_0x2655bf['metric'][_0x2a86bf('0x10ad')]+_0x2a86bf('0x2788'):''}),_0x20b33c(_0x2f36ad);})['catch'](function(_0x3c23bb){const _0x244cc0=_0x4d1c2f;if(_0x3c23bb[_0x244cc0('0x1e07')]&&_0x3c23bb['data'][_0x244cc0('0x1d4a')]&&_0x3c23bb['data'][_0x244cc0('0x1d4a')]['length']){_0x2655bf[_0x244cc0('0x1d4a')]=_0x3c23bb[_0x244cc0('0x1e07')]['errors']||[{'message':_0x3c23bb[_0x244cc0('0x1b75')](),'type':_0x244cc0('0x2491')}];for(let _0x5c464c=0x0;_0x5c464c<_0x3c23bb[_0x244cc0('0x1e07')][_0x244cc0('0x1d4a')][_0x244cc0('0x543')];_0x5c464c++){_0x6638db[_0x244cc0('0x15aa')]({'title':_0x3c23bb[_0x244cc0('0x1e07')][_0x244cc0('0x1d4a')][_0x5c464c][_0x244cc0('0x1810')],'msg':_0x3c23bb[_0x244cc0('0x1e07')]['errors'][_0x5c464c][_0x244cc0('0x67f')]});}}else _0x6638db[_0x244cc0('0x15aa')]({'title':_0x3c23bb[_0x244cc0('0x276f')]?_0x244cc0('0x137')+_0x3c23bb['status']+_0x244cc0('0x160c')+_0x3c23bb[_0x244cc0('0x2696')]:_0x244cc0('0x2491'),'msg':_0x3c23bb[_0x244cc0('0x1e07')]?JSON[_0x244cc0('0x100b')](_0x3c23bb[_0x244cc0('0x1e07')][_0x244cc0('0x67f')]):_0x3c23bb[_0x244cc0('0x1b75')]()});});}function _0x2d11e0(_0x297a7d){const _0x3738a4=_0x3e96ec;_0x2655bf[_0x3738a4('0x1d4a')]=[];const _0x3bb875=_0x56e62c[_0x3738a4('0x1d02')]()[_0x3738a4('0x20d6')]('Are\x20you\x20sure?')[_0x3738a4('0x732')](_0x3738a4('0x1ec1'))[_0x3738a4('0x217')](_0x3738a4('0x1acb'))['ok']('Delete')[_0x3738a4('0x1e1f')](_0x3738a4('0x1d4e'))[_0x3738a4('0x21de')](_0x297a7d);_0x56e62c[_0x3738a4('0x1cb7')](_0x3bb875)[_0x3738a4('0x173b')](function(){const _0x5cc561=_0x3738a4;_0x2d1be3['analyticMetric'][_0x5cc561('0x15e8')]({'id':_0x2655bf[_0x5cc561('0x1fe')]['id']})[_0x5cc561('0x1964')][_0x5cc561('0x173b')](function(){const _0x36cbd0=_0x5cc561;_0x3c8d8a()['remove'](_0x2655bf[_0x36cbd0('0x1716')],{'id':_0x2655bf[_0x36cbd0('0x1fe')]['id']}),_0x6638db[_0x36cbd0('0xdfe')]({'title':_0x36cbd0('0xb13'),'msg':(_0x2655bf['metric'][_0x36cbd0('0x10ad')]||'metric')+'\x20has\x20been\x20deleted!'}),_0x20b33c(_0x2655bf[_0x36cbd0('0x1fe')]);})[_0x5cc561('0x103c')](function(_0x39790e){const _0x3ea0d2=_0x5cc561;if(_0x39790e['data']&&_0x39790e[_0x3ea0d2('0x1e07')][_0x3ea0d2('0x1d4a')]&&_0x39790e[_0x3ea0d2('0x1e07')][_0x3ea0d2('0x1d4a')][_0x3ea0d2('0x543')]){_0x2655bf[_0x3ea0d2('0x1d4a')]=_0x39790e[_0x3ea0d2('0x1e07')][_0x3ea0d2('0x1d4a')]||[{'message':_0x39790e[_0x3ea0d2('0x1b75')](),'type':_0x3ea0d2('0x5e7')}];for(let _0x2ddc1d=0x0;_0x2ddc1d<_0x39790e['data']['errors'][_0x3ea0d2('0x543')];_0x2ddc1d++){_0x6638db[_0x3ea0d2('0x15aa')]({'title':_0x39790e[_0x3ea0d2('0x1e07')][_0x3ea0d2('0x1d4a')][_0x2ddc1d]['type'],'msg':_0x39790e[_0x3ea0d2('0x1e07')]['errors'][_0x2ddc1d][_0x3ea0d2('0x67f')]});}}else _0x6638db[_0x3ea0d2('0x15aa')]({'title':_0x39790e['status']?_0x3ea0d2('0x137')+_0x39790e['status']+_0x3ea0d2('0x160c')+_0x39790e[_0x3ea0d2('0x2696')]:_0x3ea0d2('0x5e7'),'msg':_0x39790e[_0x3ea0d2('0x1e07')]?JSON['stringify'](_0x39790e[_0x3ea0d2('0x1e07')]['message']):_0x39790e[_0x3ea0d2('0x67f')]||_0x39790e[_0x3ea0d2('0x1b75')]()});});},function(){});}function _0x4b219e(_0x19e1ba){return _0x19e1ba===null?undefined:new Date(_0x19e1ba);}function _0x20b33c(_0x1cb20b){const _0x3f5662=_0x3e96ec;_0x56e62c[_0x3f5662('0x1cf4')](_0x1cb20b);}}const _0x1c5228=_0x273b9c,_0x29da44=_0x21a6a1['p']+_0x566993('0x1966');_0x42b2e[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x1716'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),'Auth',_0x566993('0x1a29'),'setting'];function _0x42b2e(_0x2ae0c5,_0x461893,_0x39a884,_0x115d1f,_0x5903d9,_0x3bbc7e,_0x5edcff,_0x309aed,_0x243a60,_0x5df1cd,_0x19463c,_0x1a18cb,_0x3f6c21,_0x530b0d,_0x53ea92,_0x53341c,_0x15033a){const _0x41369f=_0x566993,_0x1426d7=this;_0x1426d7['license']=_0x53341c,_0x1426d7[_0x41369f('0x251')]=_0x15033a,_0x1426d7[_0x41369f('0x155f')]=_0x53ea92[_0x41369f('0x14d4')](),_0x1426d7['metrics']=_0x243a60||{'count':0x0,'rows':[]},_0x1426d7[_0x41369f('0x257b')]=_0x5df1cd,_0x1426d7[_0x41369f('0x170e')]=_0x19463c&&_0x19463c[_0x41369f('0x1a2f')]==0x1?_0x19463c['rows'][0x0]:null,_0x1426d7[_0x41369f('0x1dc1')]=_0x53ea92['parseCrudPermissions'](_0x1426d7['userProfileSection']?_0x1426d7['userProfileSection'][_0x41369f('0x1dc1')]:null),_0x1426d7[_0x41369f('0xdf9')]='metrics',_0x1426d7[_0x41369f('0x14d6')]='',_0x1426d7[_0x41369f('0x2303')]=null,_0x1426d7[_0x41369f('0x6d8')]=[],_0x1426d7[_0x41369f('0xc49')]={'fields':_0x41369f('0x1fd1'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x1426d7[_0x41369f('0xa')]=_0x3c8d8a()['keyBy']([{'option':_0x41369f('0x18b0'),'value':_0x41369f('0x5be')},{'option':_0x41369f('0x474'),'value':'\x27report_call\x27'},{'option':'CDR','value':'\x27cdr\x27'},{'option':_0x41369f('0x12c1'),'value':_0x41369f('0x15a2')},{'option':_0x41369f('0x4cf'),'value':_0x41369f('0x258a')},{'option':_0x41369f('0x41e'),'value':_0x41369f('0x5c')},{'option':_0x41369f('0x19a8'),'value':_0x41369f('0x257f')},{'option':_0x41369f('0xdb9'),'value':_0x41369f('0x601')},{'option':_0x41369f('0xae4'),'value':'\x27report_chat_queue\x27'},{'option':_0x41369f('0x1443'),'value':_0x41369f('0x1df8')},{'option':_0x41369f('0x254c'),'value':_0x41369f('0x14fd')},{'option':_0x41369f('0x215'),'value':_0x41369f('0x2009')},{'option':_0x41369f('0x46e'),'value':_0x41369f('0x1feb')},{'option':_0x41369f('0x231e'),'value':_0x41369f('0x162b')},{'option':_0x41369f('0xbf4'),'value':_0x41369f('0xfb2')},{'option':_0x41369f('0xfd6'),'value':_0x41369f('0x2075')},{'option':_0x41369f('0x1c5'),'value':_0x41369f('0x1ee6')},{'option':_0x41369f('0xb62'),'value':'\x27cm_hopper_final\x27'},{'option':'Email\x20Account','value':'\x27mail_accounts\x27'},{'option':_0x41369f('0x2612'),'value':_0x41369f('0x282a')},{'option':'Email\x20Messages','value':_0x41369f('0x1e38')},{'option':_0x41369f('0x10ef'),'value':_0x41369f('0x1979')},{'option':_0x41369f('0x5f3'),'value':_0x41369f('0x40b')},{'option':'Email\x20Report\x20Transfer','value':_0x41369f('0xae1')},{'option':_0x41369f('0x115'),'value':_0x41369f('0x150a')},{'option':_0x41369f('0xd93'),'value':_0x41369f('0x10e8')},{'option':_0x41369f('0x749'),'value':_0x41369f('0xfb5')},{'option':_0x41369f('0x252b'),'value':'\x27fax_queues\x27'},{'option':'Fax\x20Report\x20Queue','value':_0x41369f('0x21a4')},{'option':'Fax\x20Report\x20Transfer','value':'\x27report_fax_transfer\x27'},{'option':_0x41369f('0x157e'),'value':_0x41369f('0x1c51')},{'option':_0x41369f('0x3d5'),'value':_0x41369f('0xcb8')},{'option':'Jscripty\x20Answers','value':_0x41369f('0x1ed1')},{'option':_0x41369f('0xd8b'),'value':_0x41369f('0x15c6')},{'option':_0x41369f('0x150b'),'value':_0x41369f('0xf6a')},{'option':_0x41369f('0x14b0'),'value':_0x41369f('0x1073')},{'option':_0x41369f('0x589'),'value':'\x27openchannel_interactions\x27'},{'option':_0x41369f('0x8c1'),'value':_0x41369f('0x0')},{'option':'Openchannel\x20Queues','value':_0x41369f('0x1e6e')},{'option':'Openchannel\x20Report\x20Queue','value':_0x41369f('0x72c')},{'option':'Openchannel\x20Report\x20Transfer','value':_0x41369f('0x58e')},{'option':_0x41369f('0x2596'),'value':_0x41369f('0x1738')},{'option':'SMS\x20Account','value':_0x41369f('0x166e')},{'option':'SMS\x20Interaction','value':_0x41369f('0xb3c')},{'option':_0x41369f('0xf1d'),'value':_0x41369f('0x1f3')},{'option':_0x41369f('0x8b7'),'value':_0x41369f('0x15e0')},{'option':_0x41369f('0x1e23'),'value':_0x41369f('0x1d61')},{'option':_0x41369f('0xbbd'),'value':'\x27report_sms_transfer\x27'},{'option':'Users','value':_0x41369f('0x27b3')},{'option':_0x41369f('0x1238'),'value':'\x27voice_recordings\x27'},{'option':_0x41369f('0x1fe4'),'value':_0x41369f('0x731')},{'option':_0x41369f('0x418'),'value':_0x41369f('0xed3')},{'option':_0x41369f('0xe2f'),'value':'\x27whatsapp_messages\x27'},{'option':_0x41369f('0xd16'),'value':_0x41369f('0x1687')},{'option':_0x41369f('0x609'),'value':_0x41369f('0x1259')},{'option':_0x41369f('0x2d2'),'value':_0x41369f('0x20c7')}],function(_0xbc7d7e){const _0xbc16ca=_0x41369f;return _0x3c8d8a()[_0xbc16ca('0x166c')](_0xbc7d7e['value'],new RegExp('\x27','g'),'');}),_0x1426d7[_0x41369f('0x19eb')]=_0x575551,_0x1426d7['deleteconfirm']=_0x580fec,_0x1426d7[_0x41369f('0xdfe')]=_0x2a6bc1,_0x1426d7[_0x41369f('0x1ef9')]=_0x2ce174,_0x1426d7[_0x41369f('0x1f57')]=_0x1d0059,_0x1426d7[_0x41369f('0xabc')]=_0x33a645,_0x1426d7[_0x41369f('0xdf4')]=_0x159f34,_0x1426d7['deleteSelectedMetrics']=_0x42b857,_0x1426d7[_0x41369f('0x7cb')]=_0x59720f,_0x1426d7[_0x41369f('0x1f1')]=_0x440b44;function _0x575551(_0x3d7385,_0x22da25){const _0x21e289=_0x41369f;_0x5903d9[_0x21e289('0x1cb7')]({'controller':_0x21e289('0x9ff'),'controllerAs':'vm','templateUrl':_0x29da44,'parent':angular[_0x21e289('0xb6d')](_0x3bbc7e['body']),'targetEvent':_0x22da25,'clickOutsideToClose':!![],'locals':{'metric':_0x3d7385,'metrics':_0x1426d7[_0x21e289('0x1716')][_0x21e289('0x6aa')],'license':_0x1426d7[_0x21e289('0x1a29')],'setting':null,'crudPermissions':_0x1426d7[_0x21e289('0x1dc1')]}});}function _0x580fec(_0x166186,_0x227643){const _0x5175a4=_0x41369f,_0x139a33=_0x5903d9[_0x5175a4('0x1d02')]()[_0x5175a4('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x5175a4('0x10e')](_0x5175a4('0x1fe'))+'?')['htmlContent'](_0x5175a4('0x15b9')+(_0x166186[_0x5175a4('0x10ad')]||_0x5175a4('0x1fe'))+_0x5175a4('0x24be')+_0x5175a4('0xd23'))[_0x5175a4('0x217')]('delete\x20metric')[_0x5175a4('0x21de')](_0x227643)['ok']('OK')['cancel'](_0x5175a4('0x468'));_0x5903d9['show'](_0x139a33)[_0x5175a4('0x173b')](function(){_0x33a645(_0x166186);},function(){const _0x67a9d5=_0x5175a4;console[_0x67a9d5('0xe37')]('CANCEL');});}let _0x28067d=!![],_0x411b59=0x1;_0x2ae0c5[_0x41369f('0x1bdb')](_0x41369f('0x157b'),function(_0x546bf9,_0x5228c8){const _0x55d20a=_0x41369f;_0x28067d?_0x5edcff(function(){_0x28067d=![];}):(!_0x5228c8&&(_0x411b59=_0x1426d7[_0x55d20a('0xc49')]['page']),_0x546bf9!==_0x5228c8&&(_0x1426d7[_0x55d20a('0xc49')][_0x55d20a('0x182e')]=0x1),!_0x546bf9&&(_0x1426d7[_0x55d20a('0xc49')][_0x55d20a('0x182e')]=_0x411b59),_0x1426d7['getMetrics']());});function _0x2a6bc1(_0x370bfa){_0x1426d7['metrics']=_0x370bfa||{'count':0x0,'rows':[]};}function _0x2ce174(){const _0x136bd9=_0x41369f;_0x1426d7[_0x136bd9('0xc49')][_0x136bd9('0x17f0')]=(_0x1426d7[_0x136bd9('0xc49')][_0x136bd9('0x182e')]-0x1)*_0x1426d7['query'][_0x136bd9('0x3e')],_0x53ea92[_0x136bd9('0x1b4e')](_0x136bd9('0x79b'))?_0x1426d7['promise']=_0x1a18cb['analyticMetric'][_0x136bd9('0x1d97')](_0x1426d7[_0x136bd9('0xc49')],_0x2a6bc1)[_0x136bd9('0x1964')]:(_0x1426d7[_0x136bd9('0xc49')]['id']=_0x1426d7[_0x136bd9('0x257b')]['id'],_0x1426d7[_0x136bd9('0xc49')][_0x136bd9('0x17c9')]=_0x136bd9('0xb41'),_0x1426d7[_0x136bd9('0x2219')]=_0x1a18cb[_0x136bd9('0x257b')][_0x136bd9('0x135b')](_0x1426d7[_0x136bd9('0xc49')],_0x2a6bc1)[_0x136bd9('0x1964')]);}function _0x1d0059(_0x17c522,_0xc72f36){const _0x5c6cfc=_0x41369f;_0x5903d9['show']({'controller':_0x5c6cfc('0x9ff'),'controllerAs':'vm','templateUrl':_0x29da44,'parent':angular[_0x5c6cfc('0xb6d')](_0x3bbc7e['body']),'targetEvent':_0x17c522,'clickOutsideToClose':!![],'locals':{'metric':_0xc72f36,'metrics':_0x1426d7[_0x5c6cfc('0x1716')][_0x5c6cfc('0x6aa')],'license':_0x1426d7[_0x5c6cfc('0x1a29')],'setting':_0x1426d7['setting'],'crudPermissions':_0x1426d7[_0x5c6cfc('0x1dc1')]}});}function _0x33a645(_0x32ae49){const _0x4f892a=_0x41369f;_0x1a18cb['analyticMetric']['delete']({'id':_0x32ae49['id']})[_0x4f892a('0x1964')][_0x4f892a('0x173b')](function(){const _0xf74e60=_0x4f892a;_0x3c8d8a()['remove'](_0x1426d7['metrics'][_0xf74e60('0x6aa')],{'id':_0x32ae49['id']}),_0x1426d7['metrics']['count']-=0x1,!_0x1426d7[_0xf74e60('0x1716')][_0xf74e60('0x6aa')][_0xf74e60('0x543')]&&_0x1426d7['getMetrics'](),_0x530b0d[_0xf74e60('0xdfe')]({'title':_0x3c8d8a()[_0xf74e60('0x10e')](_0xf74e60('0x20c2'))+_0xf74e60('0x1c5e'),'msg':_0x32ae49[_0xf74e60('0x10ad')]?_0x32ae49[_0xf74e60('0x10ad')]+_0xf74e60('0x25d2'):''});})[_0x4f892a('0x103c')](function(_0x48a1e2){const _0x53a962=_0x4f892a;if(_0x48a1e2[_0x53a962('0x1e07')]&&_0x48a1e2[_0x53a962('0x1e07')][_0x53a962('0x1d4a')]&&_0x48a1e2[_0x53a962('0x1e07')][_0x53a962('0x1d4a')]['length']){_0x1426d7[_0x53a962('0x1d4a')]=_0x48a1e2[_0x53a962('0x1e07')][_0x53a962('0x1d4a')]||[{'message':_0x48a1e2['toString'](),'type':'SYSTEM:DELETEanalyticMetric'}];for(let _0x3d5f17=0x0;_0x3d5f17<_0x48a1e2[_0x53a962('0x1e07')][_0x53a962('0x1d4a')][_0x53a962('0x543')];_0x3d5f17++){_0x530b0d[_0x53a962('0x15aa')]({'title':_0x48a1e2[_0x53a962('0x1e07')][_0x53a962('0x1d4a')][_0x3d5f17]['type'],'msg':_0x48a1e2[_0x53a962('0x1e07')][_0x53a962('0x1d4a')][_0x3d5f17]['message']});}}else _0x530b0d[_0x53a962('0x15aa')]({'title':_0x48a1e2['status']?_0x53a962('0x137')+_0x48a1e2[_0x53a962('0x276f')]+_0x53a962('0x160c')+_0x48a1e2[_0x53a962('0x2696')]:_0x53a962('0x19ed'),'msg':_0x48a1e2[_0x53a962('0x1e07')]?JSON['stringify'](_0x48a1e2[_0x53a962('0x1e07')][_0x53a962('0x67f')]):_0x48a1e2[_0x53a962('0x67f')]||_0x48a1e2[_0x53a962('0x1b75')]()});});}function _0x159f34(){const _0x28e275=_0x41369f,_0x3ee6cd=angular[_0x28e275('0x2e3')](_0x1426d7[_0x28e275('0x6d8')]);return _0x1426d7[_0x28e275('0x6d8')]=[],_0x3ee6cd;}function _0x42b857(_0x47d00b){const _0x5609d6=_0x41369f,_0xd96e4b=_0x5903d9[_0x5609d6('0x1d02')]()[_0x5609d6('0x20d6')](_0x5609d6('0x11ec'))[_0x5609d6('0xf8b')](_0x5609d6('0x15b9')+_0x1426d7[_0x5609d6('0x6d8')][_0x5609d6('0x543')]+'\x20selected'+_0x5609d6('0xd23'))[_0x5609d6('0x217')](_0x5609d6('0xd77'))[_0x5609d6('0x21de')](_0x47d00b)['ok']('OK')[_0x5609d6('0x1e1f')]('CANCEL');_0x5903d9[_0x5609d6('0x1cb7')](_0xd96e4b)[_0x5609d6('0x173b')](function(){const _0x102b09=_0x5609d6;_0x1426d7[_0x102b09('0x6d8')][_0x102b09('0xa6a')](function(_0xa507de){_0x33a645(_0xa507de);}),_0x1426d7[_0x102b09('0x6d8')]=[];});}function _0x59720f(){_0x1426d7['selectedMetrics']=[];}function _0x440b44(){const _0x226ddb=_0x41369f;_0x1426d7[_0x226ddb('0x6d8')]=_0x1426d7[_0x226ddb('0x1716')][_0x226ddb('0x6aa')];}}const _0x3444f2=_0x42b2e;_0x588af5[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x588af5(_0x27de0d,_0x52f546){const _0x3946ad=_0x566993;_0x27de0d['state']('app.analytics',{'abstract':!![],'url':_0x3946ad('0xf5')})[_0x3946ad('0x1a49')](_0x3946ad('0x1f30'),{'url':_0x3946ad('0x7cf'),'views':{'content@app':{'templateUrl':_0x3df9e1,'controller':_0x3946ad('0x1ff')}},'resolve':{'metrics':[_0x3946ad('0x2401'),_0x3946ad('0x1600'),function(_0x5f3e7e,_0x2a964e){const _0x946415=_0x3946ad;return _0x2a964e[_0x946415('0x1b4e')](_0x946415('0x79b'))?_0x5f3e7e['resolve']('analyticMetric@get',{'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5f3e7e[_0x946415('0x155b')](_0x946415('0x14b3'),{'id':_0x2a964e[_0x946415('0x14d4')]()[_0x946415('0x1946')],'section':_0x946415('0xb41'),'fields':_0x946415('0x1fd1'),'sort':_0x946415('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3946ad('0x2401'),_0x3946ad('0x1600'),function(_0x120e56,_0x1aef19){const _0x2a0bba=_0x3946ad;return _0x1aef19[_0x2a0bba('0x1b4e')](_0x2a0bba('0x79b'))?null:_0x120e56[_0x2a0bba('0x155b')](_0x2a0bba('0x1f20'),{'fields':_0x2a0bba('0x19dd'),'id':_0x1aef19[_0x2a0bba('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x3946ad('0x2401'),'Auth',function(_0x5aeb70,_0x174366){const _0x12ff26=_0x3946ad;return _0x174366[_0x12ff26('0x1b4e')]('admin')?null:_0x5aeb70[_0x12ff26('0x155b')](_0x12ff26('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x174366[_0x12ff26('0x14d4')]()[_0x12ff26('0x1946')],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':_0x3946ad('0x7c5')})[_0x3946ad('0x1a49')](_0x3946ad('0x1458'),{'url':'/extractedReports','views':{'content@app':{'templateUrl':_0x4fae29,'controller':_0x3946ad('0x1191')}},'resolve':{'extractedReports':[_0x3946ad('0x2401'),'Auth',function(_0x18924c,_0x16eee6){const _0x3779b4=_0x3946ad;return _0x16eee6[_0x3779b4('0x1b4e')](_0x3779b4('0x79b'))?_0x18924c[_0x3779b4('0x155b')]('analyticExtractedReport@get',{'fields':_0x3779b4('0x165a'),'sort':_0x3779b4('0x1769'),'limit':0xa,'offset':0x0}):_0x18924c[_0x3779b4('0x155b')](_0x3779b4('0x14b3'),{'id':_0x16eee6['getCurrentUser']()[_0x3779b4('0x1946')],'section':_0x3779b4('0xb85'),'fields':_0x3779b4('0x165a'),'sort':_0x3779b4('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3946ad('0x2401'),_0x3946ad('0x1600'),function(_0x20893f,_0x42eb60){const _0x5c65e2=_0x3946ad;return _0x42eb60[_0x5c65e2('0x1b4e')]('admin')?null:_0x20893f[_0x5c65e2('0x155b')](_0x5c65e2('0x1f20'),{'fields':_0x5c65e2('0x19dd'),'id':_0x42eb60['getCurrentUser']()[_0x5c65e2('0x1946')]});}],'userProfileSection':['apiResolver',_0x3946ad('0x1600'),function(_0x84c2a3,_0x57136a){const _0x346507=_0x3946ad;return _0x57136a[_0x346507('0x1b4e')](_0x346507('0x79b'))?null:_0x84c2a3[_0x346507('0x155b')](_0x346507('0x40'),{'fields':_0x346507('0x1348'),'userProfileId':_0x57136a[_0x346507('0x14d4')]()[_0x346507('0x1946')],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':'analytics'}),_0x52f546[_0x3946ad('0x1b1a')]('app/main/apps/analytics');}angular[_0x566993('0x22c4')](_0x566993('0x25bd'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),_0x566993('0x8a3'),_0x566993('0x1146'),_0x566993('0x1698'),_0x566993('0x269'),_0x566993('0x1459'),'ngclipboard',_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392'),'app.analytics.reports'])[_0x566993('0xea9')](_0x588af5)[_0x566993('0x1e65')]('CreateOrEditExtractedReportDialogController',_0x54dfb6)[_0x566993('0x1e65')]('ExtractedReportsController',_0x2ec5fb)['controller']('CreateOrEditMetricDialogController',_0x1c5228)[_0x566993('0x1e65')]('MetricsController',_0x3444f2);const _0x1a8519=_0x21a6a1['p']+_0x566993('0x1cb8'),_0xcb6a01=_0x21a6a1['p']+_0x566993('0xa72'),_0x172e73=_0x21a6a1['p']+_0x566993('0x263d'),_0x2f3a56=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html/view.html',_0x4595be=_0x21a6a1['p']+_0x566993('0xd9d'),_0x213463=_0x21a6a1['p']+_0x566993('0x20c9'),_0x54030b=_0x21a6a1['p']+_0x566993('0x2d6'),_0x489d5d=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view.html',_0xda890c=_0x21a6a1['p']+_0x566993('0x12af'),_0x59f04e=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html/view.html',_0x5c1955=_0x21a6a1['p']+_0x566993('0x24a'),_0x3048da=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html/view.html',_0x244af7=_0x21a6a1['p']+_0x566993('0x1ef'),_0x5e829f=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html/view.html',_0x56fcca=_0x21a6a1['p']+_0x566993('0x1e46'),_0x38cd04=_0x21a6a1['p']+_0x566993('0x1042'),_0x227d2e=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts.html',_0x450a3f=_0x21a6a1['p']+_0x566993('0x1dfe'),_0x1ab028=_0x21a6a1['p']+_0x566993('0x2315'),_0x2acef5=_0x21a6a1['p']+_0x566993('0x110d');_0x35b06c['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0xf92'),_0x566993('0x1296'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x35b06c(_0xc61a7c,_0x2f8b16,_0xbc790e,_0x3639b4,_0x5caf9d,_0x5c6a41,_0x1c820b,_0x23fe8f,_0x398834,_0x16387a,_0x524845,_0xd1925d,_0x35835d,_0x5d7cf0){const _0x1f46d8=_0x566993,_0x156354=this;_0x156354[_0x1f46d8('0x155f')]=_0x524845[_0x1f46d8('0x14d4')](),_0x156354[_0x1f46d8('0x1d4a')]=[],_0x156354[_0x1f46d8('0x251')]=_0x35835d,_0x156354[_0x1f46d8('0x1a29')]=_0xd1925d,_0x156354[_0x1f46d8('0x1dc1')]=_0x5d7cf0,_0x156354[_0x1f46d8('0xb0')]={},_0x156354[_0x1f46d8('0x644')]=_0x156354['setting']&&_0x156354['setting'][_0x1f46d8('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x156354[_0x1f46d8('0x20d6')]=_0x1f46d8('0x162d'),_0x156354['deskAccount']=angular['copy'](_0x398834),_0x156354[_0x1f46d8('0xf92')]=_0x23fe8f,_0x156354['newDeskAccount']=![];!_0x156354[_0x1f46d8('0x1296')]&&(_0x156354[_0x1f46d8('0x1296')]={'type':'integrationTab','authType':_0x1f46d8('0x184'),'serverUrl':_0xbc790e['protocol']()+_0x1f46d8('0x122b')+_0xbc790e[_0x1f46d8('0x4d1')]()+(_0xbc790e[_0x1f46d8('0xe0d')]()?':'+_0xbc790e['port']():'')},_0x156354[_0x1f46d8('0x20d6')]=_0x1f46d8('0x1ac'),_0x156354[_0x1f46d8('0xf2a')]=!![]);_0x156354[_0x1f46d8('0x3d0')]=_0x41cf48,_0x156354[_0x1f46d8('0xe86')]=_0x9e8b23,_0x156354['deleteDeskAccount']=_0x4acb8f,_0x156354[_0x1f46d8('0x11ae')]=_0x218fb7,_0x156354['closeDialog']=_0x19f405;function _0x41cf48(){const _0x1451e8=_0x1f46d8;_0x156354[_0x1451e8('0x1d4a')]=[],_0x16387a[_0x1451e8('0x6a4')][_0x1451e8('0x1195')](_0x156354[_0x1451e8('0x1296')])[_0x1451e8('0x1964')][_0x1451e8('0x173b')](function(_0x33b5ac){const _0x1b1e18=_0x1451e8;_0x156354[_0x1b1e18('0xf92')][_0x1b1e18('0x1377')](_0x33b5ac[_0x1b1e18('0xf1f')]()),_0x1c820b[_0x1b1e18('0xdfe')]({'title':'DeskAccount\x20properly\x20created','msg':_0x156354[_0x1b1e18('0x1296')][_0x1b1e18('0x10ad')]?_0x156354[_0x1b1e18('0x1296')][_0x1b1e18('0x10ad')]+_0x1b1e18('0x209a'):''}),_0x19f405(_0x33b5ac);})['catch'](function(_0x2a0648){const _0x162cf5=_0x1451e8;if(_0x2a0648[_0x162cf5('0x1e07')]&&_0x2a0648[_0x162cf5('0x1e07')][_0x162cf5('0x1d4a')]&&_0x2a0648[_0x162cf5('0x1e07')][_0x162cf5('0x1d4a')][_0x162cf5('0x543')]){_0x156354[_0x162cf5('0x1d4a')]=_0x2a0648['data']['errors']||[{'message':_0x2a0648[_0x162cf5('0x1b75')](),'type':_0x162cf5('0x1655')}];for(let _0x2be491=0x0;_0x2be491<_0x2a0648[_0x162cf5('0x1e07')][_0x162cf5('0x1d4a')][_0x162cf5('0x543')];_0x2be491+=0x1){_0x1c820b[_0x162cf5('0x15aa')]({'title':_0x2a0648[_0x162cf5('0x1e07')][_0x162cf5('0x1d4a')][_0x2be491][_0x162cf5('0x1810')],'msg':_0x2a0648[_0x162cf5('0x1e07')][_0x162cf5('0x1d4a')][_0x2be491][_0x162cf5('0x67f')]});}}else _0x1c820b[_0x162cf5('0x15aa')]({'title':_0x2a0648[_0x162cf5('0x276f')]?'API:'+_0x2a0648['status']+_0x162cf5('0x160c')+_0x2a0648[_0x162cf5('0x2696')]:_0x162cf5('0x1655'),'msg':_0x2a0648['data']?JSON['stringify'](_0x2a0648['data'][_0x162cf5('0x67f')]):_0x2a0648[_0x162cf5('0x1b75')]()});});}function _0x9e8b23(){const _0x20aabf=_0x1f46d8;_0x156354['errors']=[],_0x16387a[_0x20aabf('0x6a4')][_0x20aabf('0x1842')]({'id':_0x156354[_0x20aabf('0x1296')]['id']},_0x156354['deskAccount'])[_0x20aabf('0x1964')][_0x20aabf('0x173b')](function(_0x255ed1){const _0x4abfa8=_0x20aabf,_0x1aa445=_0x3c8d8a()[_0x4abfa8('0x18ab')](_0x156354[_0x4abfa8('0xf92')],{'id':_0x255ed1['id']});_0x1aa445&&_0x3c8d8a()[_0x4abfa8('0x9ef')](_0x1aa445,_0x3c8d8a()['pick'](_0x255ed1[_0x4abfa8('0xf1f')](),_0x3c8d8a()['keys'](_0x1aa445))),_0x1c820b['success']({'title':_0x4abfa8('0x1693'),'msg':_0x156354[_0x4abfa8('0x1296')][_0x4abfa8('0x10ad')]?_0x156354[_0x4abfa8('0x1296')]['name']+_0x4abfa8('0x2788'):''}),_0x19f405(_0x255ed1);})[_0x20aabf('0x103c')](function(_0x33bcdb){const _0x4e0306=_0x20aabf;if(_0x33bcdb[_0x4e0306('0x1e07')]&&_0x33bcdb['data'][_0x4e0306('0x1d4a')]&&_0x33bcdb['data'][_0x4e0306('0x1d4a')][_0x4e0306('0x543')]){_0x156354[_0x4e0306('0x1d4a')]=_0x33bcdb[_0x4e0306('0x1e07')][_0x4e0306('0x1d4a')]||[{'message':_0x33bcdb[_0x4e0306('0x1b75')](),'type':_0x4e0306('0x5e6')}];for(let _0x2d5d18=0x0;_0x2d5d18<_0x33bcdb['data']['errors'][_0x4e0306('0x543')];_0x2d5d18++){_0x1c820b[_0x4e0306('0x15aa')]({'title':_0x33bcdb[_0x4e0306('0x1e07')][_0x4e0306('0x1d4a')][_0x2d5d18]['type'],'msg':_0x33bcdb[_0x4e0306('0x1e07')][_0x4e0306('0x1d4a')][_0x2d5d18]['message']});}}else _0x1c820b[_0x4e0306('0x15aa')]({'title':_0x33bcdb['status']?_0x4e0306('0x137')+_0x33bcdb['status']+'\x20-\x20'+_0x33bcdb['statusText']:'api.intDeskAccount.update','msg':_0x33bcdb['data']?JSON[_0x4e0306('0x100b')](_0x33bcdb[_0x4e0306('0x1e07')][_0x4e0306('0x67f')]):_0x33bcdb[_0x4e0306('0x1b75')]()});});}function _0x4acb8f(_0x14c7ed){const _0x3496d4=_0x1f46d8;_0x156354[_0x3496d4('0x1d4a')]=[];const _0x27fd02=_0x3639b4[_0x3496d4('0x1d02')]()[_0x3496d4('0x20d6')](_0x3496d4('0x8ef'))[_0x3496d4('0x732')]('The\x20deskAccount\x20will\x20be\x20deleted.')[_0x3496d4('0x217')]('Delete\x20DeskAccount')['ok'](_0x3496d4('0x2373'))[_0x3496d4('0x1e1f')](_0x3496d4('0x1d4e'))[_0x3496d4('0x21de')](_0x14c7ed);_0x3639b4[_0x3496d4('0x1cb7')](_0x27fd02)[_0x3496d4('0x173b')](function(){const _0x1d2b38=_0x3496d4;_0x16387a[_0x1d2b38('0x6a4')]['delete']({'id':_0x156354[_0x1d2b38('0x1296')]['id']})[_0x1d2b38('0x1964')][_0x1d2b38('0x173b')](function(){const _0x2b5613=_0x1d2b38;_0x3c8d8a()['remove'](_0x156354[_0x2b5613('0xf92')],{'id':_0x156354[_0x2b5613('0x1296')]['id']}),_0x1c820b[_0x2b5613('0xdfe')]({'title':'DeskAccount\x20properly\x20deleted!','msg':(_0x156354[_0x2b5613('0x1296')][_0x2b5613('0x10ad')]||'deskAccount')+_0x2b5613('0x25d2')}),_0x19f405(_0x156354[_0x2b5613('0x1296')]);})[_0x1d2b38('0x103c')](function(_0x423e0d){const _0x30ebb0=_0x1d2b38;if(_0x423e0d[_0x30ebb0('0x1e07')]&&_0x423e0d[_0x30ebb0('0x1e07')][_0x30ebb0('0x1d4a')]&&_0x423e0d[_0x30ebb0('0x1e07')][_0x30ebb0('0x1d4a')][_0x30ebb0('0x543')]){_0x156354[_0x30ebb0('0x1d4a')]=_0x423e0d['data'][_0x30ebb0('0x1d4a')]||[{'message':_0x423e0d['toString'](),'type':_0x30ebb0('0x94e')}];for(let _0x219aba=0x0;_0x219aba<_0x423e0d['data']['errors'][_0x30ebb0('0x543')];_0x219aba++){_0x1c820b[_0x30ebb0('0x15aa')]({'title':_0x423e0d[_0x30ebb0('0x1e07')]['errors'][_0x219aba][_0x30ebb0('0x1810')],'msg':_0x423e0d[_0x30ebb0('0x1e07')][_0x30ebb0('0x1d4a')][_0x219aba]['message']});}}else _0x1c820b[_0x30ebb0('0x15aa')]({'title':_0x423e0d[_0x30ebb0('0x276f')]?_0x30ebb0('0x137')+_0x423e0d[_0x30ebb0('0x276f')]+_0x30ebb0('0x160c')+_0x423e0d[_0x30ebb0('0x2696')]:_0x30ebb0('0x94e'),'msg':_0x423e0d[_0x30ebb0('0x1e07')]?JSON[_0x30ebb0('0x100b')](_0x423e0d[_0x30ebb0('0x1e07')][_0x30ebb0('0x67f')]):_0x423e0d[_0x30ebb0('0x67f')]||_0x423e0d[_0x30ebb0('0x1b75')]()});});},function(){});}function _0x218fb7(_0x360858){return _0x360858===null?undefined:new Date(_0x360858);}function _0x19f405(_0x5bff60){const _0x22e053=_0x1f46d8;_0x3639b4[_0x22e053('0x1cf4')](_0x5bff60);}}const _0xce7c48=_0x35b06c,_0x3efd04=_0x21a6a1['p']+_0x566993('0xb8f');_0xbce04b[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0xf92'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),'license',_0x566993('0x251')];function _0xbce04b(_0x108c14,_0x20efdd,_0x4e8721,_0xaa9ef4,_0x18b567,_0x1affd5,_0x2ad999,_0x1ed0d6,_0x96de0d,_0x408db9,_0x259814,_0xa60128,_0x16a889,_0x573fdd,_0xbbe3e2,_0xf094bb,_0x17142c){const _0x337e1b=_0x566993,_0x27d536=this;_0x27d536['license']=_0xf094bb,_0x27d536[_0x337e1b('0x251')]=_0x17142c,_0x27d536[_0x337e1b('0x155f')]=_0xbbe3e2[_0x337e1b('0x14d4')](),_0x27d536[_0x337e1b('0xf92')]=_0x96de0d||{'count':0x0,'rows':[]},_0x27d536[_0x337e1b('0x257b')]=_0x408db9,_0x27d536[_0x337e1b('0x170e')]=_0x259814&&_0x259814[_0x337e1b('0x1a2f')]==0x1?_0x259814['rows'][0x0]:null,_0x27d536[_0x337e1b('0x1dc1')]=_0xbbe3e2['parseCrudPermissions'](_0x27d536[_0x337e1b('0x170e')]?_0x27d536['userProfileSection'][_0x337e1b('0x1dc1')]:null),_0x27d536[_0x337e1b('0xdf9')]='deskAccounts',_0x27d536[_0x337e1b('0x14d6')]='',_0x27d536[_0x337e1b('0x2303')]=null,_0x27d536[_0x337e1b('0xb9a')]=[],_0x27d536[_0x337e1b('0xc49')]={'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','limit':0xa,'page':0x1},_0x27d536[_0x337e1b('0x1f90')]=_0x3c8d8a()['keyBy']([{'option':_0x337e1b('0x1fb6'),'value':_0x337e1b('0x685')},{'option':_0x337e1b('0x1407'),'value':_0x337e1b('0x2728')}],function(_0x3942a0){const _0x244089=_0x337e1b;return _0x3c8d8a()[_0x244089('0x166c')](_0x3942a0['value'],new RegExp('\x27','g'),'');}),_0x27d536[_0x337e1b('0x48')]=_0x3c8d8a()[_0x337e1b('0x128')]([{'option':_0x337e1b('0xd5d'),'value':'\x27basic\x27'}],function(_0x3e930b){const _0x2385d8=_0x337e1b;return _0x3c8d8a()[_0x2385d8('0x166c')](_0x3e930b[_0x2385d8('0xa7b')],new RegExp('\x27','g'),'');}),_0x27d536[_0x337e1b('0x222e')]=_0x28e975,_0x27d536['testtestintegrationaccount']=_0x283228,_0x27d536[_0x337e1b('0x1a20')]=_0x4da539,_0x27d536['success']=_0x5743cd,_0x27d536[_0x337e1b('0x1fea')]=_0x46b2ab,_0x27d536['createOrEditDeskAccount']=_0x2758a4,_0x27d536[_0x337e1b('0x1b9d')]=_0x3aba7d,_0x27d536[_0x337e1b('0x16e4')]=_0x32802e,_0x27d536['deleteSelectedDeskAccounts']=_0x22d3dc,_0x27d536[_0x337e1b('0x12db')]=_0x27457a,_0x27d536['selectAllDeskAccounts']=_0x4de991;function _0x28e975(_0x1145ee){const _0x5a80aa=_0x337e1b;_0x4e8721['go'](_0x5a80aa('0x1f74'),{'id':_0x1145ee['id'],'deskAccount':_0x1145ee,'crudPermissions':_0x27d536[_0x5a80aa('0x1dc1')]});}function _0x283228(_0x59530b){const _0x43ea9c=_0x337e1b;return _0xa60128[_0x43ea9c('0x6a4')][_0x43ea9c('0x223b')]({'id':_0x59530b['id'],'test':!![]})[_0x43ea9c('0x1964')][_0x43ea9c('0x173b')](function(){const _0x10869a=_0x43ea9c;_0x573fdd['success']({'title':_0x10869a('0x1a94'),'msg':_0x10869a('0x13fe')});})[_0x43ea9c('0x103c')](function(_0x31292e){const _0x352970=_0x43ea9c;_0x573fdd[_0x352970('0x15aa')]({'title':_0x352970('0x1a94'),'msg':_0x31292e[_0x352970('0x1e07')]?_0x31292e['data'][_0x352970('0x67f')]?_0x31292e[_0x352970('0x1e07')][_0x352970('0x67f')]:JSON[_0x352970('0x100b')](_0x31292e[_0x352970('0x1e07')]):_0x31292e[_0x352970('0x1b75')]()});});}function _0x4da539(_0x27fce3,_0x29f5a2){const _0xf697cd=_0x337e1b,_0x24a00b=_0x18b567['confirm']()[_0xf697cd('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0xf697cd('0x10e')]('deskAccount')+'?')[_0xf697cd('0xf8b')](''+(_0x27fce3[_0xf697cd('0x10ad')]||_0xf697cd('0x1296'))+_0xf697cd('0x24be')+_0xf697cd('0xd23'))['ariaLabel'](_0xf697cd('0x612'))[_0xf697cd('0x21de')](_0x29f5a2)['ok']('OK')['cancel'](_0xf697cd('0x468'));_0x18b567[_0xf697cd('0x1cb7')](_0x24a00b)[_0xf697cd('0x173b')](function(){_0x3aba7d(_0x27fce3);},function(){const _0x26b7bd=_0xf697cd;console[_0x26b7bd('0xe37')](_0x26b7bd('0x468'));});}let _0x5081b0=!![],_0x1b4724=0x1;_0x108c14[_0x337e1b('0x1bdb')](_0x337e1b('0x157b'),function(_0x46f111,_0x420bb9){const _0x292b57=_0x337e1b;_0x5081b0?_0x2ad999(function(){_0x5081b0=![];}):(!_0x420bb9&&(_0x1b4724=_0x27d536[_0x292b57('0xc49')]['page']),_0x46f111!==_0x420bb9&&(_0x27d536[_0x292b57('0xc49')][_0x292b57('0x182e')]=0x1),!_0x46f111&&(_0x27d536[_0x292b57('0xc49')][_0x292b57('0x182e')]=_0x1b4724),_0x27d536[_0x292b57('0x1fea')]());});function _0x5743cd(_0x3181a5){const _0x4c7f62=_0x337e1b;_0x27d536[_0x4c7f62('0xf92')]=_0x3181a5||{'count':0x0,'rows':[]};}function _0x46b2ab(){const _0x54f6e1=_0x337e1b;_0x27d536['query']['offset']=(_0x27d536[_0x54f6e1('0xc49')]['page']-0x1)*_0x27d536[_0x54f6e1('0xc49')][_0x54f6e1('0x3e')],_0xbbe3e2['hasRole'](_0x54f6e1('0x79b'))?_0x27d536[_0x54f6e1('0x2219')]=_0xa60128[_0x54f6e1('0x6a4')][_0x54f6e1('0x1d97')](_0x27d536[_0x54f6e1('0xc49')],_0x5743cd)[_0x54f6e1('0x1964')]:(_0x27d536['query']['id']=_0x27d536['userProfile']['id'],_0x27d536['query'][_0x54f6e1('0x17c9')]=_0x54f6e1('0x215c'),_0x27d536[_0x54f6e1('0x2219')]=_0xa60128[_0x54f6e1('0x257b')]['getResources'](_0x27d536[_0x54f6e1('0xc49')],_0x5743cd)[_0x54f6e1('0x1964')]);}function _0x2758a4(_0x148f2e,_0x5cf5e5){const _0x2f621a=_0x337e1b;_0x18b567['show']({'controller':_0x2f621a('0x16a5'),'controllerAs':'vm','templateUrl':_0x3efd04,'parent':angular[_0x2f621a('0xb6d')](_0x1affd5[_0x2f621a('0x1a5')]),'targetEvent':_0x148f2e,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x5cf5e5,'deskAccounts':_0x27d536[_0x2f621a('0xf92')][_0x2f621a('0x6aa')],'license':_0x27d536[_0x2f621a('0x1a29')],'setting':_0x27d536[_0x2f621a('0x251')],'crudPermissions':_0x27d536[_0x2f621a('0x1dc1')]}});}function _0x3aba7d(_0x2e49fe){const _0x210c21=_0x337e1b;_0xa60128[_0x210c21('0x6a4')][_0x210c21('0x15e8')]({'id':_0x2e49fe['id']})[_0x210c21('0x1964')][_0x210c21('0x173b')](function(){const _0x1e65b5=_0x210c21;_0x3c8d8a()['remove'](_0x27d536[_0x1e65b5('0xf92')][_0x1e65b5('0x6aa')],{'id':_0x2e49fe['id']}),_0x27d536[_0x1e65b5('0xf92')][_0x1e65b5('0x1a2f')]-=0x1,!_0x27d536[_0x1e65b5('0xf92')][_0x1e65b5('0x6aa')][_0x1e65b5('0x543')]&&_0x27d536['getDeskAccounts'](),_0x573fdd['success']({'title':_0x3c8d8a()[_0x1e65b5('0x10e')]('DeskAccount')+_0x1e65b5('0x1c5e'),'msg':_0x2e49fe[_0x1e65b5('0x10ad')]?_0x2e49fe[_0x1e65b5('0x10ad')]+_0x1e65b5('0x25d2'):''});})['catch'](function(_0x248e3e){const _0x1ea288=_0x210c21;if(_0x248e3e[_0x1ea288('0x1e07')]&&_0x248e3e[_0x1ea288('0x1e07')]['errors']&&_0x248e3e[_0x1ea288('0x1e07')]['errors'][_0x1ea288('0x543')]){_0x27d536[_0x1ea288('0x1d4a')]=_0x248e3e[_0x1ea288('0x1e07')][_0x1ea288('0x1d4a')]||[{'message':_0x248e3e[_0x1ea288('0x1b75')](),'type':_0x1ea288('0x440')}];for(let _0x2f0621=0x0;_0x2f0621<_0x248e3e[_0x1ea288('0x1e07')][_0x1ea288('0x1d4a')][_0x1ea288('0x543')];_0x2f0621++){_0x573fdd[_0x1ea288('0x15aa')]({'title':_0x248e3e['data'][_0x1ea288('0x1d4a')][_0x2f0621][_0x1ea288('0x1810')],'msg':_0x248e3e[_0x1ea288('0x1e07')][_0x1ea288('0x1d4a')][_0x2f0621][_0x1ea288('0x67f')]});}}else _0x573fdd[_0x1ea288('0x15aa')]({'title':_0x248e3e[_0x1ea288('0x276f')]?_0x1ea288('0x137')+_0x248e3e[_0x1ea288('0x276f')]+_0x1ea288('0x160c')+_0x248e3e[_0x1ea288('0x2696')]:_0x1ea288('0x440'),'msg':_0x248e3e[_0x1ea288('0x1e07')]?JSON[_0x1ea288('0x100b')](_0x248e3e[_0x1ea288('0x1e07')][_0x1ea288('0x67f')]):_0x248e3e[_0x1ea288('0x67f')]||_0x248e3e[_0x1ea288('0x1b75')]()});});}function _0x32802e(){const _0x788e41=_0x337e1b,_0x3b8e49=angular[_0x788e41('0x2e3')](_0x27d536['selectedDeskAccounts']);return _0x27d536[_0x788e41('0xb9a')]=[],_0x3b8e49;}function _0x22d3dc(_0x1473ef){const _0x2d0d33=_0x337e1b,_0xe04b71=_0x18b567[_0x2d0d33('0x1d02')]()[_0x2d0d33('0x20d6')](_0x2d0d33('0x17fd'))[_0x2d0d33('0xf8b')](_0x2d0d33('0x15b9')+_0x27d536['selectedDeskAccounts'][_0x2d0d33('0x543')]+'\x20selected'+_0x2d0d33('0xd23'))['ariaLabel'](_0x2d0d33('0x1210'))[_0x2d0d33('0x21de')](_0x1473ef)['ok']('OK')['cancel']('CANCEL');_0x18b567[_0x2d0d33('0x1cb7')](_0xe04b71)[_0x2d0d33('0x173b')](function(){const _0x4a5642=_0x2d0d33;_0x27d536[_0x4a5642('0xb9a')]['forEach'](function(_0x3a7e2a){_0x3aba7d(_0x3a7e2a);}),_0x27d536['selectedDeskAccounts']=[];});}function _0x27457a(){const _0x191285=_0x337e1b;_0x27d536[_0x191285('0xb9a')]=[];}function _0x4de991(){const _0x10c336=_0x337e1b;_0x27d536[_0x10c336('0xb9a')]=_0x27d536['deskAccounts']['rows'];}}const _0x4e9a10=_0xbce04b,_0x144629=_0x21a6a1['p']+_0x566993('0x23b0'),_0x47aff2=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog.html';_0x5b2de1['$inject']=['$mdDialog',_0x566993('0x1b82'),'api',_0x566993('0x1558'),'Auth'];function _0x5b2de1(_0x4c242e,_0x26e573,_0xd8d070,_0x2fdf1d,_0x643c24){const _0x15513a=_0x566993,_0x301e60=this;_0x301e60[_0x15513a('0x155f')]=_0x643c24[_0x15513a('0x14d4')](),_0x301e60[_0x15513a('0x1296')]={},_0x301e60['deskConfiguration']={},_0x301e60['configurations']=[],_0x301e60[_0x15513a('0x19ca')]=-0x1,_0x301e60['crudPermissions'],_0x301e60['init']=_0x56a998,_0x301e60['getDeskConfiguration']=_0x31d75e,_0x301e60[_0x15513a('0xa20')]=_0x151e2c,_0x301e60['deleteDeskConfiguration']=_0x53c13a,_0x301e60[_0x15513a('0x1840')]=[],_0x301e60[_0x15513a('0x1c4')]=_0x8f5c38,_0xd8d070['tag'][_0x15513a('0x1d97')]({'nolimit':!![],'sort':_0x15513a('0x10ad')})[_0x15513a('0x1964')][_0x15513a('0x173b')](function(_0x4b4e74){const _0x302ef4=_0x15513a;_0x301e60[_0x302ef4('0x22ac')]=_0x4b4e74['rows']?_0x4b4e74[_0x302ef4('0x6aa')]:[];})[_0x15513a('0x103c')](function(_0x568a79){const _0x5f2e25=_0x15513a;_0x2fdf1d['error']({'title':_0x568a79[_0x5f2e25('0x276f')]?_0x5f2e25('0x137')+_0x568a79[_0x5f2e25('0x276f')]+_0x5f2e25('0x160c')+_0x568a79[_0x5f2e25('0x2696')]:'SYSTEM:GETTAGS','msg':_0x568a79[_0x5f2e25('0x1e07')]?JSON[_0x5f2e25('0x100b')](_0x568a79[_0x5f2e25('0x1e07')]):_0x568a79['toString']()});});function _0x8f5c38(){const _0x2428d0=_0x15513a;_0xd8d070[_0x2428d0('0x1512')][_0x2428d0('0x15da')]({'id':_0x301e60['deskConfiguration']['id'],'ids':_0x301e60[_0x2428d0('0x1840')]})['$promise']['then'](function(){const _0x24ede0=_0x2428d0;_0x2fdf1d[_0x24ede0('0xdfe')]({'title':_0x24ede0('0x1fec'),'msg':_0x24ede0('0x1907')});})[_0x2428d0('0x103c')](function(_0x111d67){const _0x542d3d=_0x2428d0;_0x2fdf1d['error']({'title':_0x111d67[_0x542d3d('0x276f')]?_0x542d3d('0x137')+_0x111d67[_0x542d3d('0x276f')]+'\x20-\x20'+_0x111d67['statusText']:_0x542d3d('0x1528'),'msg':_0x111d67[_0x542d3d('0x1e07')]?JSON['stringify'](_0x111d67[_0x542d3d('0x1e07')]):_0x111d67[_0x542d3d('0x1b75')]()});});}function _0x56a998(_0x4f7f1e,_0x8078f1){const _0x35306b=_0x15513a;_0x301e60[_0x35306b('0x1296')]=_0x4f7f1e,_0x301e60[_0x35306b('0x1dc1')]=typeof _0x8078f1!==_0x35306b('0x6e5')?_0x8078f1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xd8d070[_0x35306b('0x6a4')][_0x35306b('0x1f25')]({'id':_0x301e60[_0x35306b('0x1296')]['id'],'sort':'-updatedAt'})[_0x35306b('0x1964')][_0x35306b('0x173b')](function(_0x424260){const _0xcd039b=_0x35306b;return _0x301e60[_0xcd039b('0x294')]=_0x424260[_0xcd039b('0x6aa')]?_0x424260['rows']:[],_0x301e60[_0xcd039b('0x294')]['length']&&_0x301e60['getDeskConfiguration'](0x0),_0xd8d070[_0xcd039b('0x1b56')][_0xcd039b('0x1d97')]({'nolimit':!![],'sort':_0xcd039b('0x10ad')})['$promise'];})[_0x35306b('0x173b')](function(_0x467bf4){const _0x2ca506=_0x35306b;_0x301e60[_0x2ca506('0x2715')]=_0x467bf4[_0x2ca506('0x6aa')]?_0x467bf4[_0x2ca506('0x6aa')]:[],_0x301e60[_0x2ca506('0x17f8')]=_0x3c8d8a()[_0x2ca506('0x128')](_0x301e60[_0x2ca506('0x2715')],'id');})[_0x35306b('0x103c')](function(_0x15e583){const _0x3e2c08=_0x35306b;_0x2fdf1d[_0x3e2c08('0x15aa')]({'title':_0x15e583[_0x3e2c08('0x276f')]?_0x3e2c08('0x137')+_0x15e583[_0x3e2c08('0x276f')]+'\x20-\x20'+_0x15e583['statusText']:_0x3e2c08('0x125a'),'msg':_0x15e583[_0x3e2c08('0x1e07')]?JSON['stringify'](_0x15e583[_0x3e2c08('0x1e07')]):_0x15e583[_0x3e2c08('0x1b75')]()});});}function _0x31d75e(_0x22e2ae){const _0x2f33c8=_0x15513a;_0x301e60[_0x2f33c8('0x1c5d')]=_0x301e60[_0x2f33c8('0x294')][_0x22e2ae],_0x301e60[_0x2f33c8('0x19ca')]=_0x22e2ae,_0xd8d070[_0x2f33c8('0x1512')][_0x2f33c8('0x717')]({'id':_0x301e60[_0x2f33c8('0x1c5d')]['id']})[_0x2f33c8('0x1964')][_0x2f33c8('0x173b')](function(_0x227012){const _0x3927a4=_0x2f33c8;return _0x301e60[_0x3927a4('0x1b35')]=_0x227012['rows']?_0x227012[_0x3927a4('0x6aa')]:[],_0xd8d070[_0x3927a4('0x1512')][_0x3927a4('0xb28')]({'id':_0x301e60[_0x3927a4('0x1c5d')]['id']})['$promise'];})[_0x2f33c8('0x173b')](function(_0x491288){const _0x503ce7=_0x2f33c8;return _0x301e60[_0x503ce7('0xb60')]=_0x491288['rows']?_0x491288[_0x503ce7('0x6aa')]:[],_0xd8d070[_0x503ce7('0x1512')][_0x503ce7('0x223b')]({'id':_0x301e60['deskConfiguration']['id']})[_0x503ce7('0x1964')];})[_0x2f33c8('0x173b')](function(_0x1e7828){const _0x383e18=_0x2f33c8;_0x301e60[_0x383e18('0x2340')]=_0x1e7828[_0x383e18('0x6aa')]?_0x1e7828[_0x383e18('0x6aa')]:[];})[_0x2f33c8('0x103c')](function(_0x4eaf3f){const _0x8b5817=_0x2f33c8;_0x2fdf1d[_0x8b5817('0x15aa')]({'title':_0x4eaf3f[_0x8b5817('0x276f')]?'API:'+_0x4eaf3f[_0x8b5817('0x276f')]+_0x8b5817('0x160c')+_0x4eaf3f[_0x8b5817('0x2696')]:_0x8b5817('0x1d19'),'msg':_0x4eaf3f['data']?JSON[_0x8b5817('0x100b')](_0x4eaf3f['data']):_0x4eaf3f[_0x8b5817('0x1b75')]()});}),_0xd8d070[_0x2f33c8('0x1512')]['getTags']({'id':_0x301e60[_0x2f33c8('0x1c5d')]['id']})['$promise'][_0x2f33c8('0x173b')](function(_0x27a8c6){const _0x5ce780=_0x2f33c8;_0x301e60[_0x5ce780('0x1840')]=_0x27a8c6[_0x5ce780('0x6aa')]?_0x3c8d8a()['map'](_0x27a8c6[_0x5ce780('0x6aa')],'id'):[];})['catch'](function(_0x285c19){const _0x4a4f55=_0x2f33c8;_0x2fdf1d[_0x4a4f55('0x15aa')]({'title':_0x285c19['status']?_0x4a4f55('0x137')+_0x285c19[_0x4a4f55('0x276f')]+_0x4a4f55('0x160c')+_0x285c19['statusText']:_0x4a4f55('0xa41'),'msg':_0x285c19[_0x4a4f55('0x1e07')]?JSON[_0x4a4f55('0x100b')](_0x285c19[_0x4a4f55('0x1e07')]):_0x285c19[_0x4a4f55('0x1b75')]()});});}function _0x151e2c(_0x3a9960,_0x23d3bb){const _0x28fa51=_0x15513a;_0x4c242e[_0x28fa51('0x1cb7')]({'controller':_0x28fa51('0xa62'),'controllerAs':'vm','templateUrl':_0x144629,'parent':angular[_0x28fa51('0xb6d')](_0x26e573[_0x28fa51('0x1a5')]),'targetEvent':_0x3a9960,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x23d3bb,'configurations':_0x301e60[_0x28fa51('0x294')],'license':null,'setting':null,'crudPermissions':_0x301e60[_0x28fa51('0x1dc1')]}})['finally'](function(){const _0xadae6c=_0x28fa51;_0x301e60[_0xadae6c('0x1bb2')](0x0);});}function _0x53c13a(_0x5b8a48,_0x551bed){const _0xecb6fa=_0x15513a,_0x55b050=_0x4c242e[_0xecb6fa('0x1d02')]()[_0xecb6fa('0x20d6')](_0xecb6fa('0x1658'))[_0xecb6fa('0xf8b')](_0xecb6fa('0x15b9')+(_0x551bed[_0xecb6fa('0x10ad')]||_0xecb6fa('0x1c5d'))+_0xecb6fa('0x24be')+'\x20will\x20be\x20deleted.')[_0xecb6fa('0x217')]('delete\x20deskConfiguration')['targetEvent'](_0x5b8a48)['ok']('OK')[_0xecb6fa('0x1e1f')]('CANCEL');_0x4c242e[_0xecb6fa('0x1cb7')](_0x55b050)[_0xecb6fa('0x173b')](function(){const _0x201d52=_0xecb6fa;_0xd8d070[_0x201d52('0x1512')][_0x201d52('0x15e8')]({'id':_0x551bed['id']})['$promise'][_0x201d52('0x173b')](function(){const _0x4c7149=_0x201d52;_0x3c8d8a()['remove'](_0x301e60['configurations'],{'id':_0x551bed['id']}),_0x2fdf1d[_0x4c7149('0xdfe')]({'title':_0x4c7149('0x20ed'),'msg':_0x551bed[_0x4c7149('0x10ad')]?_0x551bed['name']+_0x4c7149('0x25d2'):''});})[_0x201d52('0x103c')](function(_0x25dbb4){const _0x5b5be9=_0x201d52;_0x2fdf1d[_0x5b5be9('0x15aa')]({'title':_0x25dbb4[_0x5b5be9('0x276f')]?_0x5b5be9('0x137')+_0x25dbb4['status']+_0x5b5be9('0x160c')+_0x25dbb4[_0x5b5be9('0x2696')]:_0x5b5be9('0x1d30'),'msg':_0x25dbb4[_0x5b5be9('0x1e07')]?JSON[_0x5b5be9('0x100b')](_0x25dbb4['data']):_0x25dbb4[_0x5b5be9('0x1b75')]()});})[_0x201d52('0xf25')](function(){const _0x35fdd1=_0x201d52;_0x301e60[_0x35fdd1('0x1bb2')](0x0);});},function(){const _0x198e43=_0xecb6fa;console[_0x198e43('0xe37')](_0x198e43('0x468'));});}_0x301e60[_0x15513a('0x276e')]=[],_0x301e60[_0x15513a('0x1317')]=_0x769b44,_0x301e60[_0x15513a('0x156b')]=_0x289aff,_0x301e60['deleteSelectedSubjects']=_0x4be301;function _0x769b44(_0x339c58,_0x465b4a){const _0x2abf00=_0x15513a;_0x4c242e['show']({'controller':'CreateOrEditDeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x47aff2,'parent':angular[_0x2abf00('0xb6d')](_0x26e573[_0x2abf00('0x1a5')]),'targetEvent':_0x339c58,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x465b4a,'items':_0x301e60[_0x2abf00('0x1b35')],'configuration':_0x301e60[_0x2abf00('0x1c5d')],'account':_0x301e60[_0x2abf00('0x1296')],'license':null,'setting':null,'crudPermissions':_0x301e60[_0x2abf00('0x1dc1')]}});}function _0x11b110(_0x451517){const _0x247383=_0x15513a;_0xd8d070[_0x247383('0x121f')]['delete']({'id':_0x451517['id']})[_0x247383('0x1964')]['then'](function(){_0x3c8d8a()['remove'](_0x301e60['subjects'],{'id':_0x451517['id']}),_0x2fdf1d['success']({'title':'Subject\x20deleted!','msg':'Subject\x20has\x20been\x20deleted!'});})[_0x247383('0x103c')](function(_0x23ebbc){const _0x3b8925=_0x247383;_0x2fdf1d[_0x3b8925('0x15aa')]({'title':_0x23ebbc[_0x3b8925('0x276f')]?_0x3b8925('0x137')+_0x23ebbc[_0x3b8925('0x276f')]+_0x3b8925('0x160c')+_0x23ebbc[_0x3b8925('0x2696')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x23ebbc[_0x3b8925('0x1e07')]?JSON['stringify'](_0x23ebbc['data']):_0x23ebbc['toString']()});});}function _0x289aff(_0x56677a,_0x283ce4){const _0xe2fe7c=_0x15513a,_0x1daf55=_0x4c242e[_0xe2fe7c('0x1d02')]()[_0xe2fe7c('0x20d6')](_0xe2fe7c('0x31c'))['htmlContent'](_0xe2fe7c('0x1274')+'\x20will\x20be\x20deleted.')[_0xe2fe7c('0x217')](_0xe2fe7c('0x18b8'))['targetEvent'](_0x56677a)['ok']('OK')['cancel'](_0xe2fe7c('0x468'));_0x4c242e['show'](_0x1daf55)['then'](function(){_0x11b110(_0x283ce4);},function(){const _0x144c47=_0xe2fe7c;console[_0x144c47('0xe37')](_0x144c47('0x468'));});}function _0x4be301(_0x1c1d0d){const _0x4d6e59=_0x15513a,_0x32948e=_0x4c242e[_0x4d6e59('0x1d02')]()[_0x4d6e59('0x20d6')](_0x4d6e59('0x837'))[_0x4d6e59('0xf8b')](_0x4d6e59('0x15b9')+_0x301e60[_0x4d6e59('0x276e')][_0x4d6e59('0x543')]+_0x4d6e59('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4d6e59('0xe22'))[_0x4d6e59('0x21de')](_0x1c1d0d)['ok']('OK')[_0x4d6e59('0x1e1f')](_0x4d6e59('0x468'));_0x4c242e[_0x4d6e59('0x1cb7')](_0x32948e)[_0x4d6e59('0x173b')](function(){const _0x112df5=_0x4d6e59;_0x301e60[_0x112df5('0x276e')]['forEach'](function(_0x288b0e){_0x11b110(_0x288b0e);}),_0x301e60['selectedSubjects']=[];});}_0x301e60[_0x15513a('0x10e1')]=[],_0x301e60[_0x15513a('0x1720')]=_0x5cd3a4,_0x301e60['deleteDescriptionConfirm']=_0x5104a9,_0x301e60[_0x15513a('0x51d')]=_0x107c14;function _0x5cd3a4(_0x26cf4e,_0x1b6bbc){const _0x5e54cf=_0x15513a;_0x4c242e[_0x5e54cf('0x1cb7')]({'controller':_0x5e54cf('0x22fb'),'controllerAs':'vm','templateUrl':_0x47aff2,'parent':angular[_0x5e54cf('0xb6d')](_0x26e573[_0x5e54cf('0x1a5')]),'targetEvent':_0x26cf4e,'clickOutsideToClose':!![],'locals':{'type':_0x5e54cf('0x1c55'),'item':_0x1b6bbc,'items':_0x301e60[_0x5e54cf('0xb60')],'configuration':_0x301e60['deskConfiguration'],'account':_0x301e60['deskAccount'],'license':null,'setting':null,'crudPermissions':_0x301e60[_0x5e54cf('0x1dc1')]}});}function _0x291031(_0x4bab83){const _0x1ed4c6=_0x15513a;_0xd8d070[_0x1ed4c6('0x121f')][_0x1ed4c6('0x15e8')]({'id':_0x4bab83['id']})[_0x1ed4c6('0x1964')][_0x1ed4c6('0x173b')](function(){const _0xfe79c3=_0x1ed4c6;_0x3c8d8a()[_0xfe79c3('0x1a8b')](_0x301e60['descriptions'],{'id':_0x4bab83['id']}),_0x2fdf1d[_0xfe79c3('0xdfe')]({'title':_0xfe79c3('0x1c35'),'msg':_0xfe79c3('0x2298')});})[_0x1ed4c6('0x103c')](function(_0x1ba87e){const _0x1e3166=_0x1ed4c6;_0x2fdf1d[_0x1e3166('0x15aa')]({'title':_0x1ba87e['status']?'API:'+_0x1ba87e['status']+_0x1e3166('0x160c')+_0x1ba87e[_0x1e3166('0x2696')]:_0x1e3166('0x1400'),'msg':_0x1ba87e['data']?JSON[_0x1e3166('0x100b')](_0x1ba87e[_0x1e3166('0x1e07')]):_0x1ba87e[_0x1e3166('0x1b75')]()});});}function _0x5104a9(_0x593dc1,_0x4aab8d){const _0x38228b=_0x15513a,_0x5ebdf4=_0x4c242e[_0x38228b('0x1d02')]()[_0x38228b('0x20d6')](_0x38228b('0x11d7'))['htmlContent'](_0x38228b('0x1825')+_0x38228b('0xd23'))[_0x38228b('0x217')](_0x38228b('0xfff'))[_0x38228b('0x21de')](_0x593dc1)['ok']('OK')[_0x38228b('0x1e1f')](_0x38228b('0x468'));_0x4c242e[_0x38228b('0x1cb7')](_0x5ebdf4)['then'](function(){_0x291031(_0x4aab8d);},function(){const _0x3b5d7f=_0x38228b;console[_0x3b5d7f('0xe37')]('CANCEL');});}function _0x107c14(_0x5965d8){const _0x429c43=_0x15513a,_0x310541=_0x4c242e[_0x429c43('0x1d02')]()[_0x429c43('0x20d6')](_0x429c43('0x1807'))[_0x429c43('0xf8b')](_0x429c43('0x15b9')+_0x301e60[_0x429c43('0x10e1')][_0x429c43('0x543')]+_0x429c43('0xcb4')+_0x429c43('0xd23'))[_0x429c43('0x217')](_0x429c43('0x11fd'))['targetEvent'](_0x5965d8)['ok']('OK')[_0x429c43('0x1e1f')]('CANCEL');_0x4c242e[_0x429c43('0x1cb7')](_0x310541)[_0x429c43('0x173b')](function(){const _0x2ad444=_0x429c43;_0x301e60[_0x2ad444('0x10e1')]['forEach'](function(_0x1c37b1){_0x291031(_0x1c37b1);}),_0x301e60[_0x2ad444('0x10e1')]=[];});}_0x301e60[_0x15513a('0x86d')]=[],_0x301e60['createOrEditField']=_0x5441f7,_0x301e60[_0x15513a('0x218b')]=_0x459cc4,_0x301e60['deleteSelectedFields']=_0x593c64;function _0x5441f7(_0x3a08b7,_0x294fea){const _0x4b3c2e=_0x15513a;_0x4c242e[_0x4b3c2e('0x1cb7')]({'controller':'CreateOrEditDeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0x47aff2,'parent':angular[_0x4b3c2e('0xb6d')](_0x26e573[_0x4b3c2e('0x1a5')]),'targetEvent':_0x3a08b7,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x294fea,'items':_0x301e60['fields'],'configuration':_0x301e60[_0x4b3c2e('0x1c5d')],'account':_0x301e60[_0x4b3c2e('0x1296')],'license':null,'setting':null,'crudPermissions':_0x301e60[_0x4b3c2e('0x1dc1')]}});}function _0x57c08a(_0x3d5205){const _0x5b512c=_0x15513a;_0xd8d070[_0x5b512c('0x121f')][_0x5b512c('0x15e8')]({'id':_0x3d5205['id']})['$promise'][_0x5b512c('0x173b')](function(){const _0x1f47da=_0x5b512c;_0x3c8d8a()[_0x1f47da('0x1a8b')](_0x301e60['fields'],{'id':_0x3d5205['id']}),_0x2fdf1d['success']({'title':_0x1f47da('0x2262'),'msg':_0x1f47da('0x1063')});})[_0x5b512c('0x103c')](function(_0x5a973f){const _0x4ea8e6=_0x5b512c;_0x2fdf1d[_0x4ea8e6('0x15aa')]({'title':_0x5a973f[_0x4ea8e6('0x276f')]?_0x4ea8e6('0x137')+_0x5a973f[_0x4ea8e6('0x276f')]+'\x20-\x20'+_0x5a973f['statusText']:_0x4ea8e6('0x1400'),'msg':_0x5a973f[_0x4ea8e6('0x1e07')]?JSON[_0x4ea8e6('0x100b')](_0x5a973f[_0x4ea8e6('0x1e07')]):_0x5a973f[_0x4ea8e6('0x1b75')]()});});}function _0x459cc4(_0x272401,_0x504b71){const _0xe9614f=_0x15513a,_0x8294c=_0x4c242e['confirm']()['title'](_0xe9614f('0x985'))[_0xe9614f('0xf8b')](_0xe9614f('0x1cf')+_0xe9614f('0xd23'))[_0xe9614f('0x217')](_0xe9614f('0x1b20'))[_0xe9614f('0x21de')](_0x272401)['ok']('OK')[_0xe9614f('0x1e1f')](_0xe9614f('0x468'));_0x4c242e['show'](_0x8294c)[_0xe9614f('0x173b')](function(){_0x57c08a(_0x504b71);},function(){const _0x5a9b48=_0xe9614f;console[_0x5a9b48('0xe37')](_0x5a9b48('0x468'));});}function _0x593c64(_0x522eb8){const _0x395072=_0x15513a,_0x30cdf0=_0x4c242e['confirm']()[_0x395072('0x20d6')](_0x395072('0x18ba'))[_0x395072('0xf8b')](_0x395072('0x15b9')+_0x301e60[_0x395072('0x86d')]['length']+_0x395072('0xcb4')+'\x20will\x20be\x20deleted.')[_0x395072('0x217')](_0x395072('0xbaf'))[_0x395072('0x21de')](_0x522eb8)['ok']('OK')[_0x395072('0x1e1f')](_0x395072('0x468'));_0x4c242e['show'](_0x30cdf0)[_0x395072('0x173b')](function(){const _0x497c50=_0x395072;_0x301e60['selectedFields'][_0x497c50('0xa6a')](function(_0x531aa7){_0x57c08a(_0x531aa7);}),_0x301e60[_0x497c50('0x86d')]=[];});}}const _0x4cbab7=_0x5b2de1;_0xb67608[_0x566993('0x17bb')]=['$scope','$state',_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),'configurations',_0x566993('0x1c5d'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0xb67608(_0x13fd0d,_0x40ed88,_0x3b7b98,_0x57295a,_0x380319,_0x10e948,_0x266a74,_0xf072ae,_0x3847cd,_0x4712e5,_0x23d8fc,_0x8cfe78,_0x4767cc,_0x1e6ee6){const _0x344f25=_0x566993,_0x579c82=this;_0x579c82[_0x344f25('0x155f')]=_0x23d8fc['getCurrentUser'](),_0x579c82[_0x344f25('0x1d4a')]=[],_0x579c82[_0x344f25('0x251')]=_0x4767cc,_0x579c82[_0x344f25('0x1a29')]=_0x8cfe78,_0x579c82[_0x344f25('0x1dc1')]=_0x1e6ee6,_0x579c82[_0x344f25('0xb0')]={},_0x579c82['passwordPattern']=_0x579c82[_0x344f25('0x251')]&&_0x579c82[_0x344f25('0x251')][_0x344f25('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x579c82[_0x344f25('0x20d6')]='INTEGRATIONS.EDIT_DESKCONFIGURATION',_0x579c82[_0x344f25('0x1c5d')]=angular[_0x344f25('0x2e3')](_0x3847cd),_0x579c82[_0x344f25('0x294')]=_0xf072ae,_0x579c82[_0x344f25('0x277a')]=![];!_0x579c82[_0x344f25('0x1c5d')]&&(_0x579c82['deskConfiguration']={'channel':_0x344f25('0x21a8'),'type':'inbound'},_0x579c82[_0x344f25('0x20d6')]='INTEGRATIONS.NEW_DESKCONFIGURATION',_0x579c82['newDeskConfiguration']=!![]);_0x579c82[_0x344f25('0x8d4')]=_0x173ed0,_0x579c82[_0x344f25('0x3b0')]=_0x5f3d00,_0x579c82[_0x344f25('0x1d40')]=_0x40c7c6,_0x579c82[_0x344f25('0x11ae')]=_0x283a68,_0x579c82[_0x344f25('0x18e2')]=_0x3b0d2a;function _0x173ed0(){const _0x1a9358=_0x344f25;_0x579c82[_0x1a9358('0x1d4a')]=[],_0x4712e5[_0x1a9358('0x6a4')]['addConfiguration']({'id':_0x40ed88[_0x1a9358('0x197a')]['id']},_0x579c82['deskConfiguration'])[_0x1a9358('0x1964')][_0x1a9358('0x173b')](function(_0x17ba27){const _0x316336=_0x1a9358;_0x579c82[_0x316336('0x294')][_0x316336('0x1377')](_0x17ba27[_0x316336('0xf1f')]()),_0x266a74['success']({'title':_0x316336('0x122f'),'msg':_0x579c82[_0x316336('0x1c5d')][_0x316336('0x10ad')]?_0x579c82[_0x316336('0x1c5d')]['name']+'\x20has\x20been\x20created!':''}),_0x3b0d2a(_0x17ba27);})[_0x1a9358('0x103c')](function(_0x1eda06){const _0x202429=_0x1a9358;if(_0x1eda06[_0x202429('0x1e07')]&&_0x1eda06[_0x202429('0x1e07')][_0x202429('0x1d4a')]&&_0x1eda06[_0x202429('0x1e07')][_0x202429('0x1d4a')][_0x202429('0x543')]){_0x579c82['errors']=_0x1eda06[_0x202429('0x1e07')][_0x202429('0x1d4a')]||[{'message':_0x1eda06[_0x202429('0x1b75')](),'type':'api.intDeskConfiguration.save'}];for(let _0x54b4a3=0x0;_0x54b4a3<_0x1eda06[_0x202429('0x1e07')][_0x202429('0x1d4a')][_0x202429('0x543')];_0x54b4a3+=0x1){_0x266a74['error']({'title':_0x1eda06[_0x202429('0x1e07')][_0x202429('0x1d4a')][_0x54b4a3][_0x202429('0x1810')],'msg':_0x1eda06['data']['errors'][_0x54b4a3][_0x202429('0x67f')]});}}else _0x266a74[_0x202429('0x15aa')]({'title':_0x1eda06['status']?'API:'+_0x1eda06[_0x202429('0x276f')]+_0x202429('0x160c')+_0x1eda06[_0x202429('0x2696')]:_0x202429('0x21c5'),'msg':_0x1eda06[_0x202429('0x1e07')]?JSON[_0x202429('0x100b')](_0x1eda06[_0x202429('0x1e07')][_0x202429('0x67f')]):_0x1eda06[_0x202429('0x1b75')]()});});}function _0x5f3d00(){const _0x364a83=_0x344f25;_0x579c82[_0x364a83('0x1d4a')]=[],_0x4712e5[_0x364a83('0x1512')][_0x364a83('0x1842')]({'id':_0x579c82[_0x364a83('0x1c5d')]['id']},_0x579c82[_0x364a83('0x1c5d')])[_0x364a83('0x1964')]['then'](function(_0x29adf2){const _0x4ec961=_0x364a83,_0x5417ba=_0x3c8d8a()[_0x4ec961('0x18ab')](_0x579c82[_0x4ec961('0x294')],{'id':_0x29adf2['id']});_0x5417ba&&_0x3c8d8a()['merge'](_0x5417ba,_0x3c8d8a()[_0x4ec961('0x2114')](_0x29adf2[_0x4ec961('0xf1f')](),_0x3c8d8a()[_0x4ec961('0x1d3e')](_0x5417ba))),_0x266a74[_0x4ec961('0xdfe')]({'title':_0x4ec961('0x1a06'),'msg':_0x579c82[_0x4ec961('0x1c5d')]['name']?_0x579c82['deskConfiguration']['name']+'\x20has\x20been\x20saved!':''}),_0x3b0d2a(_0x29adf2);})['catch'](function(_0x1208a4){const _0x2c61fa=_0x364a83;if(_0x1208a4[_0x2c61fa('0x1e07')]&&_0x1208a4['data'][_0x2c61fa('0x1d4a')]&&_0x1208a4[_0x2c61fa('0x1e07')]['errors'][_0x2c61fa('0x543')]){_0x579c82[_0x2c61fa('0x1d4a')]=_0x1208a4[_0x2c61fa('0x1e07')][_0x2c61fa('0x1d4a')]||[{'message':_0x1208a4[_0x2c61fa('0x1b75')](),'type':_0x2c61fa('0xbef')}];for(let _0x3ee50f=0x0;_0x3ee50f<_0x1208a4[_0x2c61fa('0x1e07')][_0x2c61fa('0x1d4a')][_0x2c61fa('0x543')];_0x3ee50f++){_0x266a74[_0x2c61fa('0x15aa')]({'title':_0x1208a4['data'][_0x2c61fa('0x1d4a')][_0x3ee50f][_0x2c61fa('0x1810')],'msg':_0x1208a4[_0x2c61fa('0x1e07')][_0x2c61fa('0x1d4a')][_0x3ee50f][_0x2c61fa('0x67f')]});}}else _0x266a74[_0x2c61fa('0x15aa')]({'title':_0x1208a4[_0x2c61fa('0x276f')]?'API:'+_0x1208a4[_0x2c61fa('0x276f')]+_0x2c61fa('0x160c')+_0x1208a4[_0x2c61fa('0x2696')]:_0x2c61fa('0xbef'),'msg':_0x1208a4[_0x2c61fa('0x1e07')]?JSON[_0x2c61fa('0x100b')](_0x1208a4[_0x2c61fa('0x1e07')][_0x2c61fa('0x67f')]):_0x1208a4[_0x2c61fa('0x1b75')]()});});}function _0x40c7c6(_0x1ba5e6){const _0x12a12a=_0x344f25;_0x579c82[_0x12a12a('0x1d4a')]=[];const _0x2d444c=_0x57295a['confirm']()[_0x12a12a('0x20d6')]('Are\x20you\x20sure?')['content'](_0x12a12a('0x1a0b'))[_0x12a12a('0x217')]('Delete\x20DeskConfiguration')['ok'](_0x12a12a('0x2373'))[_0x12a12a('0x1e1f')](_0x12a12a('0x1d4e'))['targetEvent'](_0x1ba5e6);_0x57295a['show'](_0x2d444c)[_0x12a12a('0x173b')](function(){const _0x263bef=_0x12a12a;_0x4712e5[_0x263bef('0x1512')][_0x263bef('0x15e8')]({'id':_0x579c82[_0x263bef('0x1c5d')]['id']})[_0x263bef('0x1964')]['then'](function(){const _0x580058=_0x263bef;_0x3c8d8a()[_0x580058('0x1a8b')](_0x579c82['configurations'],{'id':_0x579c82['deskConfiguration']['id']}),_0x266a74[_0x580058('0xdfe')]({'title':'DeskConfiguration\x20properly\x20deleted!','msg':(_0x579c82[_0x580058('0x1c5d')][_0x580058('0x10ad')]||_0x580058('0x1c5d'))+_0x580058('0x25d2')}),_0x3b0d2a(_0x579c82[_0x580058('0x1c5d')]);})[_0x263bef('0x103c')](function(_0x5d4bf9){const _0x37d70d=_0x263bef;if(_0x5d4bf9[_0x37d70d('0x1e07')]&&_0x5d4bf9[_0x37d70d('0x1e07')][_0x37d70d('0x1d4a')]&&_0x5d4bf9[_0x37d70d('0x1e07')][_0x37d70d('0x1d4a')][_0x37d70d('0x543')]){_0x579c82[_0x37d70d('0x1d4a')]=_0x5d4bf9[_0x37d70d('0x1e07')][_0x37d70d('0x1d4a')]||[{'message':_0x5d4bf9[_0x37d70d('0x1b75')](),'type':_0x37d70d('0xd9a')}];for(let _0x2289c7=0x0;_0x2289c7<_0x5d4bf9[_0x37d70d('0x1e07')]['errors']['length'];_0x2289c7++){_0x266a74[_0x37d70d('0x15aa')]({'title':_0x5d4bf9['data'][_0x37d70d('0x1d4a')][_0x2289c7][_0x37d70d('0x1810')],'msg':_0x5d4bf9[_0x37d70d('0x1e07')]['errors'][_0x2289c7]['message']});}}else _0x266a74[_0x37d70d('0x15aa')]({'title':_0x5d4bf9[_0x37d70d('0x276f')]?_0x37d70d('0x137')+_0x5d4bf9[_0x37d70d('0x276f')]+_0x37d70d('0x160c')+_0x5d4bf9[_0x37d70d('0x2696')]:_0x37d70d('0xd9a'),'msg':_0x5d4bf9[_0x37d70d('0x1e07')]?JSON[_0x37d70d('0x100b')](_0x5d4bf9['data'][_0x37d70d('0x67f')]):_0x5d4bf9[_0x37d70d('0x67f')]||_0x5d4bf9[_0x37d70d('0x1b75')]()});});},function(){});}function _0x283a68(_0x10552e){return _0x10552e===null?undefined:new Date(_0x10552e);}function _0x3b0d2a(_0x22595e){_0x57295a['hide'](_0x22595e);}}const _0x12696a=_0xb67608;_0x1996b7[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1558'),'configuration','items',_0x566993('0x54'),_0x566993('0xde4'),_0x566993('0x1810'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x1996b7(_0x47abed,_0x2dbaf2,_0x24e9ef,_0x5cb8c2,_0x139ebe,_0x34e323,_0x1b6978,_0x10549a,_0xf65440,_0x252ee6,_0x195a4a,_0x3643ad,_0x1d3da3){const _0x3ea1bd=_0x566993,_0x3ffefb=this;_0x3ffefb[_0x3ea1bd('0x155f')]=_0x3643ad[_0x3ea1bd('0x14d4')](),_0x3ffefb[_0x3ea1bd('0x1d4a')]=[],_0x3ffefb[_0x3ea1bd('0x20d6')]=_0x3ea1bd('0x3a0')+_0x3c8d8a()[_0x3ea1bd('0x160d')](_0x252ee6),_0x3ffefb[_0x3ea1bd('0x54')]=angular[_0x3ea1bd('0x2e3')](_0x10549a),_0x3ffefb[_0x3ea1bd('0x1b1f')]=_0x1b6978,_0x3ffefb[_0x3ea1bd('0x1810')]=_0x252ee6,_0x3ffefb[_0x3ea1bd('0x1dc1')]=_0x1d3da3,_0x3ffefb[_0x3ea1bd('0x7')]=![];!_0x3ffefb[_0x3ea1bd('0x54')]&&(_0x3ffefb['item']={'type':_0x3ea1bd('0x1533')},_0x3ffefb['item'][_0x3c8d8a()['capitalize'](_0x252ee6)+'Id']=_0x34e323['id'],_0x3ffefb[_0x3ea1bd('0x20d6')]=_0x3ea1bd('0x99f')+_0x3c8d8a()[_0x3ea1bd('0x160d')](_0x252ee6),_0x3ffefb[_0x3ea1bd('0x7')]=!![]);_0x3ffefb[_0x3ea1bd('0x221f')]=_0x2ab5a9,_0x3ffefb[_0x3ea1bd('0x10e0')]=_0xd1fdcd,_0x3ffefb[_0x3ea1bd('0x2157')]=_0x6fc178,_0x3ffefb[_0x3ea1bd('0x1188')]=_0x50d484,_0x3ffefb['closeDialog']=_0x15e1af,_0x195a4a['variable'][_0x3ea1bd('0x1d97')]({'nolimit':!![]})[_0x3ea1bd('0x1964')]['then'](function(_0xd11d4f){const _0x6e28cf=_0x3ea1bd;return _0x3ffefb[_0x6e28cf('0x2715')]=_0xd11d4f[_0x6e28cf('0x6aa')]?_0xd11d4f[_0x6e28cf('0x6aa')]:[],_0x195a4a[_0x6e28cf('0x934')][_0x6e28cf('0x2320')]()[_0x6e28cf('0x1964')];})[_0x3ea1bd('0x173b')](function(_0x3abd9a){const _0x1d4d4f=_0x3ea1bd;return _0x3ffefb['voiceAgentReportColumns']=_0x3c8d8a()[_0x1d4d4f('0x1b31')](_0x3c8d8a()[_0x1d4d4f('0x1d3e')](_0x3abd9a),['$promise',_0x1d4d4f('0x14ad'),'createdAt',_0x1d4d4f('0xad'),_0x1d4d4f('0x24b1')]),_0x3ffefb[_0x1d4d4f('0x1fe8')]['push'](_0x1d4d4f('0x2313')),_0x195a4a[_0x1d4d4f('0x242c')][_0x1d4d4f('0x2320')]()[_0x1d4d4f('0x1964')];})[_0x3ea1bd('0x173b')](function(_0xe37206){const _0x6c4356=_0x3ea1bd;_0x3ffefb['voiceDialReportColumns']=_0x3c8d8a()[_0x6c4356('0x1b31')](_0x3c8d8a()[_0x6c4356('0x1d3e')](_0xe37206),[_0x6c4356('0x1964'),_0x6c4356('0x14ad'),_0x6c4356('0xda8'),_0x6c4356('0xad'),_0x6c4356('0x24b1')]),_0x3ffefb[_0x6c4356('0x20de')][_0x6c4356('0x18bb')](_0x6c4356('0x2313'));})[_0x3ea1bd('0x103c')](function(_0x4122d8){const _0x4c7f68=_0x3ea1bd;_0x139ebe[_0x4c7f68('0x15aa')]({'title':_0x4122d8['status']?'API:'+_0x4122d8['status']+_0x4c7f68('0x160c')+_0x4122d8[_0x4c7f68('0x2696')]:'SYSTEM:GETVARIABLES','msg':_0x4122d8[_0x4c7f68('0x1e07')]?JSON['stringify'](_0x4122d8[_0x4c7f68('0x1e07')]):_0x4122d8[_0x4c7f68('0x1b75')]()});}),_0x195a4a[_0x3ea1bd('0x6a4')]['getFields']({'id':_0xf65440['id'],'ticketType':_0x34e323[_0x3ea1bd('0x182')]?_0x34e323[_0x3ea1bd('0x182')]:undefined})[_0x3ea1bd('0x1964')][_0x3ea1bd('0x173b')](function(_0x2de394){const _0x1fe551=_0x3ea1bd;_0x3ffefb['accountConnected']=!![],_0x3ffefb['fields']=_0x2de394[_0x1fe551('0x6aa')]?_0x2de394[_0x1fe551('0x6aa')]:[],_0x3ffefb['item'][_0x1fe551('0x1ee7')]&&(_0x3ffefb[_0x1fe551('0x894')]=_0x3c8d8a()['find'](_0x3ffefb[_0x1fe551('0x2340')],{'id':_0x3ffefb['item']['idField']}));})[_0x3ea1bd('0x103c')](function(_0x6708a2){const _0x21bac1=_0x3ea1bd;_0x3ffefb[_0x21bac1('0x22ad')]=![],console[_0x21bac1('0x15aa')](_0x6708a2);});function _0x2ab5a9(){const _0x5a2e67=_0x3ea1bd;_0x3ffefb['errors']=[],_0x3ffefb[_0x5a2e67('0x894')]&&(_0x3ffefb[_0x5a2e67('0x54')][_0x5a2e67('0x1ee7')]=_0x3ffefb[_0x5a2e67('0x894')]['id'],_0x3ffefb[_0x5a2e67('0x54')][_0x5a2e67('0x194d')]=_0x3ffefb['customField'][_0x5a2e67('0x10ad')],_0x3ffefb[_0x5a2e67('0x54')][_0x5a2e67('0x894')]=_0x3ffefb[_0x5a2e67('0x894')][_0x5a2e67('0xbb4')]),_0x195a4a['intDeskField']['save'](_0x3ffefb[_0x5a2e67('0x54')])[_0x5a2e67('0x1964')]['then'](function(_0x29d464){const _0x19a8d7=_0x5a2e67;_0x3ffefb[_0x19a8d7('0x1b1f')][_0x19a8d7('0x1377')](_0x29d464),_0x139ebe['success']({'title':_0x3c8d8a()['capitalize'](_0x252ee6)+'\x20properly\x20created','msg':_0x3c8d8a()['capitalize'](_0x252ee6)+_0x19a8d7('0x209a')}),_0x15e1af();})[_0x5a2e67('0x103c')](function(_0xeeabcd){const _0x35d20d=_0x5a2e67;console[_0x35d20d('0x15aa')](_0xeeabcd),_0x3ffefb[_0x35d20d('0x1d4a')]=_0xeeabcd[_0x35d20d('0x1e07')][_0x35d20d('0x1d4a')]||[{'message':_0xeeabcd['toString'](),'type':_0x35d20d('0x18e4')}];});}function _0xd1fdcd(){const _0x547238=_0x3ea1bd;_0x3ffefb['errors']=[],_0x3ffefb[_0x547238('0x894')]&&(_0x3ffefb['item'][_0x547238('0x1ee7')]=_0x3ffefb[_0x547238('0x894')]['id'],_0x3ffefb[_0x547238('0x54')][_0x547238('0x194d')]=_0x3ffefb[_0x547238('0x894')][_0x547238('0x10ad')],_0x3ffefb[_0x547238('0x54')]['customField']=_0x3ffefb[_0x547238('0x894')][_0x547238('0xbb4')]),_0x195a4a[_0x547238('0x121f')][_0x547238('0x1842')]({'id':_0x3ffefb[_0x547238('0x54')]['id']},_0x3ffefb[_0x547238('0x54')])[_0x547238('0x1964')][_0x547238('0x173b')](function(_0x577776){const _0x42166d=_0x547238,_0x2953b9=_0x3c8d8a()['find'](_0x3ffefb[_0x42166d('0x1b1f')],{'id':_0x577776['id']});_0x2953b9&&_0x3c8d8a()['merge'](_0x2953b9,_0x577776),_0x139ebe[_0x42166d('0xdfe')]({'title':_0x3c8d8a()['capitalize'](_0x252ee6)+_0x42166d('0x10e9'),'msg':_0x3c8d8a()[_0x42166d('0x587')](_0x252ee6)+'\x20has\x20been\x20saved!'}),_0x15e1af();})[_0x547238('0x103c')](function(_0x265df6){const _0x1ec19b=_0x547238;console[_0x1ec19b('0x15aa')](_0x265df6),_0x3ffefb[_0x1ec19b('0x1d4a')]=_0x265df6[_0x1ec19b('0x1e07')][_0x1ec19b('0x1d4a')]||[{'message':_0x265df6[_0x1ec19b('0x1b75')](),'type':_0x1ec19b('0x1c43')}];});}function _0x6fc178(_0x273619){const _0x2a17a2=_0x3ea1bd;_0x3ffefb['errors']=[];const _0xf4d6cf=_0x5cb8c2[_0x2a17a2('0x1d02')]()[_0x2a17a2('0x20d6')](_0x2a17a2('0x8ef'))[_0x2a17a2('0x732')](_0x2a17a2('0x1aa5')+_0x252ee6+_0x2a17a2('0xd23'))[_0x2a17a2('0x217')](_0x2a17a2('0x133e')+_0x3c8d8a()[_0x2a17a2('0x587')](_0x252ee6))['ok'](_0x2a17a2('0x2373'))[_0x2a17a2('0x1e1f')](_0x2a17a2('0x1d4e'))['targetEvent'](_0x273619);_0x5cb8c2[_0x2a17a2('0x1cb7')](_0xf4d6cf)['then'](function(){const _0x1d2d75=_0x2a17a2;_0x195a4a['intDeskField']['delete']({'id':_0x3ffefb[_0x1d2d75('0x54')]['id']})[_0x1d2d75('0x1964')][_0x1d2d75('0x173b')](function(){const _0x532d50=_0x1d2d75;_0x3c8d8a()[_0x532d50('0x1a8b')](_0x3ffefb[_0x532d50('0x1b1f')],{'id':_0x3ffefb[_0x532d50('0x54')]['id']}),_0x139ebe[_0x532d50('0xdfe')]({'title':_0x3c8d8a()[_0x532d50('0x587')](_0x252ee6)+_0x532d50('0xb5'),'msg':_0x3c8d8a()['capitalize'](_0x252ee6)+'\x20has\x20been\x20deleted!'}),_0x15e1af();})[_0x1d2d75('0x103c')](function(_0x377dd8){const _0x584acc=_0x1d2d75;console[_0x584acc('0x15aa')](_0x377dd8),_0x3ffefb[_0x584acc('0x1d4a')]=_0x377dd8[_0x584acc('0x1e07')][_0x584acc('0x1d4a')]||[{'message':_0x377dd8[_0x584acc('0x1b75')](),'type':_0x584acc('0x238e')}];});},function(){});}function _0x50d484(){const _0x342b56=_0x3ea1bd;return _0x3ffefb['item']['variableName']!==undefined?_0x3ffefb[_0x342b56('0x54')][_0x342b56('0x195d')]:_0x342b56('0x1423');}function _0x15e1af(){const _0x554ca6=_0x3ea1bd;_0x5cb8c2[_0x554ca6('0x1cf4')]();}}const _0x68c68d=_0x1996b7;_0x3a54a7[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),'Auth',_0x566993('0x1296'),_0x566993('0x170e')];function _0x3a54a7(_0x258f2a,_0x48a5c0,_0x32d132,_0x46a0f9,_0x42be52,_0x4dc561,_0x3a9e1b,_0x2cf9f1,_0x537329,_0x3e2ef9,_0x21abd5,_0x482da0){const _0x4bfe29=_0x566993,_0x3036d0=this;_0x3036d0[_0x4bfe29('0x155f')]=_0x3e2ef9[_0x4bfe29('0x14d4')](),_0x3036d0[_0x4bfe29('0x1a29')]=_0x4dc561,_0x3036d0[_0x4bfe29('0x251')]=_0x3a9e1b,_0x3036d0['passwordPattern']=_0x3036d0['setting'][_0x4bfe29('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3036d0[_0x4bfe29('0x614')]=_0x48a5c0[_0x4bfe29('0x375')]()+_0x4bfe29('0x122b')+_0x48a5c0[_0x4bfe29('0x4d1')](),_0x3036d0[_0x4bfe29('0x1296')]=_0x21abd5||_0x258f2a['params'][_0x4bfe29('0x1296')]||{},_0x3036d0[_0x4bfe29('0x170e')]=_0x482da0&&_0x482da0['count']==0x1?_0x482da0[_0x4bfe29('0x6aa')][0x0]:null,_0x3036d0[_0x4bfe29('0x1dc1')]=_0x3e2ef9['parseCrudPermissions'](_0x3036d0['userProfileSection']?_0x3036d0[_0x4bfe29('0x170e')][_0x4bfe29('0x1dc1')]:null),_0x3036d0[_0x4bfe29('0xb0')]={},_0x3036d0[_0x4bfe29('0xd5f')]=_0x258f2a[_0x4bfe29('0x197a')]['tab']||0x0,_0x3036d0[_0x4bfe29('0x5a4')]=_0x537329['info'],_0x3036d0['gotoDeskAccounts']=_0x4bf83c,_0x3036d0[_0x4bfe29('0xe86')]=_0xfcccaf;function _0x4bf83c(){const _0xb869b2=_0x4bfe29;_0x258f2a['go'](_0xb869b2('0xddb'),{},{'reload':_0xb869b2('0xddb')});}function _0xfcccaf(){const _0x3f740b=_0x4bfe29;_0x2cf9f1[_0x3f740b('0x6a4')][_0x3f740b('0x1842')]({'id':_0x3036d0['deskAccount']['id']},_0x3036d0[_0x3f740b('0x1296')])[_0x3f740b('0x1964')]['then'](function(){const _0x49d906=_0x3f740b;_0x537329[_0x49d906('0xdfe')]({'title':_0x49d906('0x2019'),'msg':_0x3036d0[_0x49d906('0x1296')][_0x49d906('0x10ad')]?_0x3036d0[_0x49d906('0x1296')]['name']+_0x49d906('0x1fd6'):''});})[_0x3f740b('0x103c')](function(_0x32c1bc){const _0x5b2828=_0x3f740b;_0x537329['error']({'title':_0x32c1bc[_0x5b2828('0x276f')]?'API:'+_0x32c1bc['status']+'\x20-\x20'+_0x32c1bc['statusText']:_0x5b2828('0x1514'),'msg':_0x32c1bc[_0x5b2828('0x1e07')]?JSON[_0x5b2828('0x100b')](_0x32c1bc[_0x5b2828('0x1e07')]):_0x32c1bc[_0x5b2828('0x1b75')]()});});}}const _0x3313b7=_0x3a54a7;_0x3309f6[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q','$translate',_0x566993('0x1558'),_0x566993('0x185b'),_0x566993('0x142'),_0x566993('0xbd4'),'Auth',_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x3309f6(_0x5e2f41,_0x4ef460,_0x293ff1,_0xef52c4,_0x5b3e34,_0x58fca5,_0x3cbb5b,_0x34540d,_0x4da46d,_0x7ac9f6,_0x21377a,_0x4a1e9e,_0x1c86d6,_0x1852b8){const _0x1e5441=_0x566993,_0x41c923=this;_0x41c923['currentUser']=_0x21377a['getCurrentUser'](),_0x41c923[_0x1e5441('0x1d4a')]=[],_0x41c923[_0x1e5441('0x251')]=_0x1c86d6,_0x41c923[_0x1e5441('0x1a29')]=_0x4a1e9e,_0x41c923[_0x1e5441('0x1dc1')]=_0x1852b8,_0x41c923['hasModulePermissions']={},_0x41c923[_0x1e5441('0x644')]=_0x41c923['setting']&&_0x41c923[_0x1e5441('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41c923['title']=_0x1e5441('0x202e'),_0x41c923[_0x1e5441('0x142')]=angular[_0x1e5441('0x2e3')](_0x4da46d),_0x41c923[_0x1e5441('0x185b')]=_0x34540d,_0x41c923[_0x1e5441('0x21cf')]=![];!_0x41c923['dynamics365Account']&&(_0x41c923[_0x1e5441('0x142')]={'serverUrl':_0x293ff1[_0x1e5441('0x375')]()+'://'+_0x293ff1[_0x1e5441('0x4d1')]()+(_0x293ff1['port']()?':'+_0x293ff1['port']():'')},_0x41c923[_0x1e5441('0x20d6')]=_0x1e5441('0x259e'),_0x41c923[_0x1e5441('0x21cf')]=!![]);_0x41c923[_0x1e5441('0x1604')]=_0x3eba15,_0x41c923[_0x1e5441('0x897')]=_0x577125,_0x41c923['deleteDynamics365Account']=_0x4814aa,_0x41c923[_0x1e5441('0x11ae')]=_0x5bd7ff,_0x41c923[_0x1e5441('0x18e2')]=_0x30004c;function _0x3eba15(){const _0x5bda9d=_0x1e5441;_0x41c923[_0x5bda9d('0x1d4a')]=[],_0x7ac9f6[_0x5bda9d('0x1a37')][_0x5bda9d('0x1195')](_0x41c923[_0x5bda9d('0x142')])['$promise'][_0x5bda9d('0x173b')](function(_0x384824){const _0x524703=_0x5bda9d;_0x41c923[_0x524703('0x185b')][_0x524703('0x1377')](_0x384824[_0x524703('0xf1f')]()),_0x3cbb5b[_0x524703('0xdfe')]({'title':'Dynamics365Account\x20properly\x20created','msg':_0x41c923[_0x524703('0x142')][_0x524703('0x10ad')]?_0x41c923[_0x524703('0x142')]['name']+_0x524703('0x209a'):''}),_0x30004c(_0x384824);})[_0x5bda9d('0x103c')](function(_0x43e1c2){const _0x5af2d6=_0x5bda9d;if(_0x43e1c2['data']&&_0x43e1c2[_0x5af2d6('0x1e07')]['errors']&&_0x43e1c2[_0x5af2d6('0x1e07')]['errors']['length']){_0x41c923[_0x5af2d6('0x1d4a')]=_0x43e1c2['data'][_0x5af2d6('0x1d4a')]||[{'message':_0x43e1c2[_0x5af2d6('0x1b75')](),'type':_0x5af2d6('0x12e')}];for(let _0x214525=0x0;_0x214525<_0x43e1c2[_0x5af2d6('0x1e07')]['errors'][_0x5af2d6('0x543')];_0x214525+=0x1){_0x3cbb5b['error']({'title':_0x43e1c2[_0x5af2d6('0x1e07')]['errors'][_0x214525]['type'],'msg':_0x43e1c2[_0x5af2d6('0x1e07')][_0x5af2d6('0x1d4a')][_0x214525]['message']});}}else _0x3cbb5b[_0x5af2d6('0x15aa')]({'title':_0x43e1c2['status']?_0x5af2d6('0x137')+_0x43e1c2[_0x5af2d6('0x276f')]+_0x5af2d6('0x160c')+_0x43e1c2[_0x5af2d6('0x2696')]:_0x5af2d6('0x12e'),'msg':_0x43e1c2[_0x5af2d6('0x1e07')]?JSON[_0x5af2d6('0x100b')](_0x43e1c2[_0x5af2d6('0x1e07')][_0x5af2d6('0x67f')]):_0x43e1c2[_0x5af2d6('0x1b75')]()});});}function _0x577125(){const _0x44ee9e=_0x1e5441;_0x41c923[_0x44ee9e('0x1d4a')]=[],_0x7ac9f6['intDynamics365Account'][_0x44ee9e('0x1842')]({'id':_0x41c923[_0x44ee9e('0x142')]['id']},_0x41c923[_0x44ee9e('0x142')])[_0x44ee9e('0x1964')][_0x44ee9e('0x173b')](function(_0x1f987e){const _0x1a5973=_0x44ee9e,_0x5a3d81=_0x3c8d8a()['find'](_0x41c923[_0x1a5973('0x185b')],{'id':_0x1f987e['id']});_0x5a3d81&&_0x3c8d8a()[_0x1a5973('0x9ef')](_0x5a3d81,_0x3c8d8a()[_0x1a5973('0x2114')](_0x1f987e['toJSON'](),_0x3c8d8a()[_0x1a5973('0x1d3e')](_0x5a3d81))),_0x3cbb5b['success']({'title':'Dynamics365Account\x20properly\x20saved!','msg':_0x41c923[_0x1a5973('0x142')][_0x1a5973('0x10ad')]?_0x41c923[_0x1a5973('0x142')][_0x1a5973('0x10ad')]+_0x1a5973('0x2788'):''}),_0x30004c(_0x1f987e);})[_0x44ee9e('0x103c')](function(_0x5353b4){const _0x49460b=_0x44ee9e;if(_0x5353b4[_0x49460b('0x1e07')]&&_0x5353b4[_0x49460b('0x1e07')][_0x49460b('0x1d4a')]&&_0x5353b4[_0x49460b('0x1e07')][_0x49460b('0x1d4a')][_0x49460b('0x543')]){_0x41c923[_0x49460b('0x1d4a')]=_0x5353b4[_0x49460b('0x1e07')][_0x49460b('0x1d4a')]||[{'message':_0x5353b4[_0x49460b('0x1b75')](),'type':_0x49460b('0xe21')}];for(let _0x42c79d=0x0;_0x42c79d<_0x5353b4[_0x49460b('0x1e07')][_0x49460b('0x1d4a')][_0x49460b('0x543')];_0x42c79d++){_0x3cbb5b[_0x49460b('0x15aa')]({'title':_0x5353b4[_0x49460b('0x1e07')]['errors'][_0x42c79d][_0x49460b('0x1810')],'msg':_0x5353b4['data'][_0x49460b('0x1d4a')][_0x42c79d][_0x49460b('0x67f')]});}}else _0x3cbb5b[_0x49460b('0x15aa')]({'title':_0x5353b4['status']?_0x49460b('0x137')+_0x5353b4['status']+_0x49460b('0x160c')+_0x5353b4[_0x49460b('0x2696')]:_0x49460b('0xe21'),'msg':_0x5353b4[_0x49460b('0x1e07')]?JSON['stringify'](_0x5353b4[_0x49460b('0x1e07')][_0x49460b('0x67f')]):_0x5353b4[_0x49460b('0x1b75')]()});});}function _0x4814aa(_0x240cc7){const _0x40bf29=_0x1e5441;_0x41c923[_0x40bf29('0x1d4a')]=[];const _0x6efb5a=_0xef52c4[_0x40bf29('0x1d02')]()[_0x40bf29('0x20d6')]('Are\x20you\x20sure?')['content'](_0x40bf29('0x1573'))[_0x40bf29('0x217')](_0x40bf29('0x1bee'))['ok'](_0x40bf29('0x2373'))[_0x40bf29('0x1e1f')](_0x40bf29('0x1d4e'))[_0x40bf29('0x21de')](_0x240cc7);_0xef52c4[_0x40bf29('0x1cb7')](_0x6efb5a)['then'](function(){const _0x5899be=_0x40bf29;_0x7ac9f6[_0x5899be('0x1a37')]['delete']({'id':_0x41c923['dynamics365Account']['id']})[_0x5899be('0x1964')]['then'](function(){const _0x3fc8e7=_0x5899be;_0x3c8d8a()[_0x3fc8e7('0x1a8b')](_0x41c923['dynamics365Accounts'],{'id':_0x41c923['dynamics365Account']['id']}),_0x3cbb5b[_0x3fc8e7('0xdfe')]({'title':_0x3fc8e7('0x2f'),'msg':(_0x41c923['dynamics365Account'][_0x3fc8e7('0x10ad')]||_0x3fc8e7('0x142'))+'\x20has\x20been\x20deleted!'}),_0x30004c(_0x41c923['dynamics365Account']);})['catch'](function(_0x770fdb){const _0x3d9760=_0x5899be;if(_0x770fdb[_0x3d9760('0x1e07')]&&_0x770fdb[_0x3d9760('0x1e07')][_0x3d9760('0x1d4a')]&&_0x770fdb[_0x3d9760('0x1e07')]['errors']['length']){_0x41c923[_0x3d9760('0x1d4a')]=_0x770fdb[_0x3d9760('0x1e07')][_0x3d9760('0x1d4a')]||[{'message':_0x770fdb[_0x3d9760('0x1b75')](),'type':_0x3d9760('0x2215')}];for(let _0x4b6d83=0x0;_0x4b6d83<_0x770fdb[_0x3d9760('0x1e07')]['errors'][_0x3d9760('0x543')];_0x4b6d83++){_0x3cbb5b[_0x3d9760('0x15aa')]({'title':_0x770fdb['data'][_0x3d9760('0x1d4a')][_0x4b6d83]['type'],'msg':_0x770fdb['data'][_0x3d9760('0x1d4a')][_0x4b6d83][_0x3d9760('0x67f')]});}}else _0x3cbb5b['error']({'title':_0x770fdb[_0x3d9760('0x276f')]?_0x3d9760('0x137')+_0x770fdb['status']+_0x3d9760('0x160c')+_0x770fdb[_0x3d9760('0x2696')]:_0x3d9760('0x2215'),'msg':_0x770fdb[_0x3d9760('0x1e07')]?JSON['stringify'](_0x770fdb[_0x3d9760('0x1e07')][_0x3d9760('0x67f')]):_0x770fdb['message']||_0x770fdb['toString']()});});},function(){});}function _0x5bd7ff(_0x3bb3b7){return _0x3bb3b7===null?undefined:new Date(_0x3bb3b7);}function _0x30004c(_0x1fb833){const _0x14361f=_0x1e5441;_0xef52c4[_0x14361f('0x1cf4')](_0x1fb833);}}const _0x42aa1f=_0x3309f6,_0xb61400=_0x21a6a1['p']+_0x566993('0x19bc');_0x271772[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x185b'),'userProfile',_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x271772(_0x2844d1,_0x2890f0,_0x45bff1,_0x3bd04d,_0x17c826,_0x288418,_0x23ca4a,_0x5aeb16,_0x5c6afb,_0x1a0c51,_0x257175,_0x25c2b8,_0xd2a0f6,_0x3cba6b,_0x202b82,_0x2f95bf,_0x4346a6){const _0x192b1d=_0x566993,_0xd39004=this;_0xd39004[_0x192b1d('0x1a29')]=_0x2f95bf,_0xd39004[_0x192b1d('0x251')]=_0x4346a6,_0xd39004['currentUser']=_0x202b82['getCurrentUser'](),_0xd39004[_0x192b1d('0x185b')]=_0x5c6afb||{'count':0x0,'rows':[]},_0xd39004['userProfile']=_0x1a0c51,_0xd39004[_0x192b1d('0x170e')]=_0x257175&&_0x257175[_0x192b1d('0x1a2f')]==0x1?_0x257175[_0x192b1d('0x6aa')][0x0]:null,_0xd39004['crudPermissions']=_0x202b82[_0x192b1d('0xde6')](_0xd39004[_0x192b1d('0x170e')]?_0xd39004['userProfileSection'][_0x192b1d('0x1dc1')]:null),_0xd39004[_0x192b1d('0xdf9')]=_0x192b1d('0x185b'),_0xd39004[_0x192b1d('0x14d6')]='',_0xd39004[_0x192b1d('0x2303')]=null,_0xd39004[_0x192b1d('0x1e3b')]=[],_0xd39004[_0x192b1d('0xc49')]={'fields':_0x192b1d('0x2400'),'limit':0xa,'page':0x1},_0xd39004[_0x192b1d('0x222e')]=_0x375a7f,_0xd39004['testtestintegrationaccount']=_0x5435d2,_0xd39004[_0x192b1d('0x1a20')]=_0x127620,_0xd39004[_0x192b1d('0xdfe')]=_0x54e41a,_0xd39004[_0x192b1d('0x2708')]=_0x9da206,_0xd39004[_0x192b1d('0xea5')]=_0x2fb190,_0xd39004['deleteDynamics365Account']=_0x4a00de,_0xd39004['exportSelectedDynamics365Accounts']=_0x38fa65,_0xd39004[_0x192b1d('0x204d')]=_0x4f084e,_0xd39004[_0x192b1d('0x23bd')]=_0x1c460d,_0xd39004[_0x192b1d('0x122e')]=_0x2431a0;function _0x375a7f(_0x22311c){const _0x4837fc=_0x192b1d;_0x45bff1['go']('app.integrations.dynamics365Accounts.edit',{'id':_0x22311c['id'],'dynamics365Account':_0x22311c,'crudPermissions':_0xd39004[_0x4837fc('0x1dc1')]});}function _0x5435d2(_0x2f91d6){const _0x134635=_0x192b1d;return _0x25c2b8[_0x134635('0x1a37')][_0x134635('0x223b')]({'id':_0x2f91d6['id'],'test':!![]})[_0x134635('0x1964')][_0x134635('0x173b')](function(){const _0xfd4d74=_0x134635;_0x3cba6b[_0xfd4d74('0xdfe')]({'title':_0xfd4d74('0x1a50'),'msg':_0xfd4d74('0x13fe')});})[_0x134635('0x103c')](function(_0x275263){const _0x35144a=_0x134635;_0x3cba6b[_0x35144a('0x15aa')]({'title':'Dynamics365Account\x20properly\x20tested','msg':_0x275263[_0x35144a('0x1e07')]?_0x275263[_0x35144a('0x1e07')]['message']?_0x275263['data']['message']:JSON[_0x35144a('0x100b')](_0x275263[_0x35144a('0x1e07')]):_0x275263['toString']()});});}function _0x127620(_0x2ed1e2,_0x402242){const _0x2f190c=_0x192b1d,_0x1bf6b4=_0x17c826[_0x2f190c('0x1d02')]()[_0x2f190c('0x20d6')](_0x2f190c('0x5bb')+_0x3c8d8a()['startCase'](_0x2f190c('0x142'))+'?')['htmlContent'](_0x2f190c('0x15b9')+(_0x2ed1e2['name']||_0x2f190c('0x142'))+_0x2f190c('0x24be')+_0x2f190c('0xd23'))[_0x2f190c('0x217')](_0x2f190c('0x263'))[_0x2f190c('0x21de')](_0x402242)['ok']('OK')['cancel'](_0x2f190c('0x468'));_0x17c826['show'](_0x1bf6b4)[_0x2f190c('0x173b')](function(){_0x4a00de(_0x2ed1e2);},function(){const _0x12422c=_0x2f190c;console[_0x12422c('0xe37')]('CANCEL');});}let _0x5cd9f8=!![],_0x325cbe=0x1;_0x2844d1[_0x192b1d('0x1bdb')](_0x192b1d('0x157b'),function(_0x5db0f1,_0x36e2ef){const _0x87ad63=_0x192b1d;_0x5cd9f8?_0x23ca4a(function(){_0x5cd9f8=![];}):(!_0x36e2ef&&(_0x325cbe=_0xd39004[_0x87ad63('0xc49')]['page']),_0x5db0f1!==_0x36e2ef&&(_0xd39004[_0x87ad63('0xc49')][_0x87ad63('0x182e')]=0x1),!_0x5db0f1&&(_0xd39004[_0x87ad63('0xc49')]['page']=_0x325cbe),_0xd39004[_0x87ad63('0x2708')]());});function _0x54e41a(_0xe8cd26){const _0x4915ff=_0x192b1d;_0xd39004[_0x4915ff('0x185b')]=_0xe8cd26||{'count':0x0,'rows':[]};}function _0x9da206(){const _0x4e67a7=_0x192b1d;_0xd39004[_0x4e67a7('0xc49')][_0x4e67a7('0x17f0')]=(_0xd39004['query'][_0x4e67a7('0x182e')]-0x1)*_0xd39004[_0x4e67a7('0xc49')]['limit'],_0x202b82[_0x4e67a7('0x1b4e')](_0x4e67a7('0x79b'))?_0xd39004[_0x4e67a7('0x2219')]=_0x25c2b8[_0x4e67a7('0x1a37')][_0x4e67a7('0x1d97')](_0xd39004[_0x4e67a7('0xc49')],_0x54e41a)[_0x4e67a7('0x1964')]:(_0xd39004[_0x4e67a7('0xc49')]['id']=_0xd39004[_0x4e67a7('0x257b')]['id'],_0xd39004['query'][_0x4e67a7('0x17c9')]=_0x4e67a7('0x210d'),_0xd39004[_0x4e67a7('0x2219')]=_0x25c2b8[_0x4e67a7('0x257b')][_0x4e67a7('0x135b')](_0xd39004[_0x4e67a7('0xc49')],_0x54e41a)['$promise']);}function _0x2fb190(_0x2220fa,_0x23f60a){const _0x270973=_0x192b1d;_0x17c826[_0x270973('0x1cb7')]({'controller':'CreateOrEditDynamics365AccountDialogController','controllerAs':'vm','templateUrl':_0xb61400,'parent':angular[_0x270973('0xb6d')](_0x288418[_0x270973('0x1a5')]),'targetEvent':_0x2220fa,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x23f60a,'dynamics365Accounts':_0xd39004['dynamics365Accounts'][_0x270973('0x6aa')],'license':_0xd39004[_0x270973('0x1a29')],'setting':_0xd39004[_0x270973('0x251')],'crudPermissions':_0xd39004[_0x270973('0x1dc1')]}});}function _0x4a00de(_0x546355){const _0x43dba1=_0x192b1d;_0x25c2b8['intDynamics365Account']['delete']({'id':_0x546355['id']})['$promise'][_0x43dba1('0x173b')](function(){const _0x3126a5=_0x43dba1;_0x3c8d8a()[_0x3126a5('0x1a8b')](_0xd39004[_0x3126a5('0x185b')][_0x3126a5('0x6aa')],{'id':_0x546355['id']}),_0xd39004[_0x3126a5('0x185b')][_0x3126a5('0x1a2f')]-=0x1,!_0xd39004[_0x3126a5('0x185b')][_0x3126a5('0x6aa')][_0x3126a5('0x543')]&&_0xd39004[_0x3126a5('0x2708')](),_0x3cba6b[_0x3126a5('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x3126a5('0x214b'))+_0x3126a5('0x1c5e'),'msg':_0x546355[_0x3126a5('0x10ad')]?_0x546355['name']+_0x3126a5('0x25d2'):''});})[_0x43dba1('0x103c')](function(_0x877110){const _0x1151a4=_0x43dba1;if(_0x877110[_0x1151a4('0x1e07')]&&_0x877110[_0x1151a4('0x1e07')][_0x1151a4('0x1d4a')]&&_0x877110[_0x1151a4('0x1e07')][_0x1151a4('0x1d4a')][_0x1151a4('0x543')]){_0xd39004[_0x1151a4('0x1d4a')]=_0x877110[_0x1151a4('0x1e07')][_0x1151a4('0x1d4a')]||[{'message':_0x877110[_0x1151a4('0x1b75')](),'type':_0x1151a4('0x2284')}];for(let _0x26ea2d=0x0;_0x26ea2d<_0x877110[_0x1151a4('0x1e07')][_0x1151a4('0x1d4a')][_0x1151a4('0x543')];_0x26ea2d++){_0x3cba6b[_0x1151a4('0x15aa')]({'title':_0x877110[_0x1151a4('0x1e07')]['errors'][_0x26ea2d]['type'],'msg':_0x877110['data'][_0x1151a4('0x1d4a')][_0x26ea2d][_0x1151a4('0x67f')]});}}else _0x3cba6b[_0x1151a4('0x15aa')]({'title':_0x877110[_0x1151a4('0x276f')]?_0x1151a4('0x137')+_0x877110[_0x1151a4('0x276f')]+_0x1151a4('0x160c')+_0x877110['statusText']:_0x1151a4('0x2284'),'msg':_0x877110[_0x1151a4('0x1e07')]?JSON[_0x1151a4('0x100b')](_0x877110[_0x1151a4('0x1e07')][_0x1151a4('0x67f')]):_0x877110[_0x1151a4('0x67f')]||_0x877110[_0x1151a4('0x1b75')]()});});}function _0x38fa65(){const _0x1f7cc8=_0x192b1d,_0x539a93=angular['copy'](_0xd39004[_0x1f7cc8('0x1e3b')]);return _0xd39004[_0x1f7cc8('0x1e3b')]=[],_0x539a93;}function _0x4f084e(_0x155605){const _0xd972d5=_0x192b1d,_0x31533c=_0x17c826[_0xd972d5('0x1d02')]()[_0xd972d5('0x20d6')](_0xd972d5('0x2098'))[_0xd972d5('0xf8b')](_0xd972d5('0x15b9')+_0xd39004[_0xd972d5('0x1e3b')][_0xd972d5('0x543')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0xd972d5('0x217')]('delete\x20Dynamics365Accounts')['targetEvent'](_0x155605)['ok']('OK')[_0xd972d5('0x1e1f')](_0xd972d5('0x468'));_0x17c826[_0xd972d5('0x1cb7')](_0x31533c)[_0xd972d5('0x173b')](function(){const _0x39d125=_0xd972d5;_0xd39004[_0x39d125('0x1e3b')][_0x39d125('0xa6a')](function(_0x4cc77b){_0x4a00de(_0x4cc77b);}),_0xd39004[_0x39d125('0x1e3b')]=[];});}function _0x1c460d(){const _0x1b6ab6=_0x192b1d;_0xd39004[_0x1b6ab6('0x1e3b')]=[];}function _0x2431a0(){const _0x29488a=_0x192b1d;_0xd39004[_0x29488a('0x1e3b')]=_0xd39004['dynamics365Accounts']['rows'];}}const _0x58349a=_0x271772,_0x490d02=_0x21a6a1['p']+_0x566993('0x3d4'),_0x38d029=_0x21a6a1['p']+_0x566993('0xff1');_0x3ffe2c[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$document','api',_0x566993('0x1558'),_0x566993('0x1600')];function _0x3ffe2c(_0x336c43,_0x4d4078,_0x4ba7ba,_0x4a162f,_0x45d09d){const _0x19daf3=_0x566993,_0x37d3da=this;_0x37d3da['currentUser']=_0x45d09d[_0x19daf3('0x14d4')](),_0x37d3da[_0x19daf3('0x142')]={},_0x37d3da['dynamics365Configuration']={},_0x37d3da[_0x19daf3('0x294')]=[],_0x37d3da[_0x19daf3('0x1aa0')]=-0x1,_0x37d3da[_0x19daf3('0x1dc1')],_0x37d3da[_0x19daf3('0xb9c')]=_0xa1570c,_0x37d3da['getDynamics365Configuration']=_0x1b74cb,_0x37d3da[_0x19daf3('0xcc')]=_0x53b3e3,_0x37d3da['deleteDynamics365Configuration']=_0x2c7c0d;function _0xa1570c(_0x2bc192,_0x2387ff){const _0x3d7aa5=_0x19daf3;_0x37d3da[_0x3d7aa5('0x142')]=_0x2bc192,_0x37d3da[_0x3d7aa5('0x1dc1')]=typeof _0x2387ff!==_0x3d7aa5('0x6e5')?_0x2387ff:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4ba7ba['intDynamics365Account'][_0x3d7aa5('0x1f25')]({'id':_0x37d3da[_0x3d7aa5('0x142')]['id'],'sort':_0x3d7aa5('0x1769')})['$promise'][_0x3d7aa5('0x173b')](function(_0x27ea9d){const _0x10c088=_0x3d7aa5;return _0x37d3da[_0x10c088('0x294')]=_0x27ea9d[_0x10c088('0x6aa')]?_0x27ea9d[_0x10c088('0x6aa')]:[],_0x37d3da[_0x10c088('0x294')][_0x10c088('0x543')]&&_0x37d3da[_0x10c088('0x2227')](0x0),_0x4ba7ba[_0x10c088('0x1b56')][_0x10c088('0x1d97')]({'nolimit':!![],'sort':_0x10c088('0x10ad')})['$promise'];})['then'](function(_0x2dee07){const _0x102402=_0x3d7aa5;_0x37d3da['variables']=_0x2dee07[_0x102402('0x6aa')]?_0x2dee07['rows']:[],_0x37d3da[_0x102402('0x17f8')]=_0x3c8d8a()[_0x102402('0x128')](_0x37d3da[_0x102402('0x2715')],'id');})[_0x3d7aa5('0x103c')](function(_0x517d7c){const _0x55ee70=_0x3d7aa5;_0x4a162f[_0x55ee70('0x15aa')]({'title':_0x517d7c[_0x55ee70('0x276f')]?_0x55ee70('0x137')+_0x517d7c[_0x55ee70('0x276f')]+_0x55ee70('0x160c')+_0x517d7c[_0x55ee70('0x2696')]:'SYSTEM:GETCONFIGURATION','msg':_0x517d7c[_0x55ee70('0x1e07')]?JSON[_0x55ee70('0x100b')](_0x517d7c['data']):_0x517d7c[_0x55ee70('0x1b75')]()});});}function _0x1b74cb(_0x2f397c){const _0x47ae63=_0x19daf3;_0x37d3da[_0x47ae63('0x16a0')]=_0x37d3da[_0x47ae63('0x294')][_0x2f397c],_0x37d3da[_0x47ae63('0x1aa0')]=_0x2f397c,_0x4ba7ba[_0x47ae63('0x200c')]['getSubjects']({'id':_0x37d3da[_0x47ae63('0x16a0')]['id']})['$promise']['then'](function(_0x5067e3){const _0x34997e=_0x47ae63;return _0x37d3da[_0x34997e('0x1b35')]=_0x5067e3[_0x34997e('0x6aa')]?_0x5067e3['rows']:[],_0x4ba7ba[_0x34997e('0x200c')][_0x34997e('0xb28')]({'id':_0x37d3da['dynamics365Configuration']['id']})['$promise'];})['then'](function(_0x11dd0d){const _0xae36f7=_0x47ae63;return _0x37d3da[_0xae36f7('0xb60')]=_0x11dd0d['rows']?_0x11dd0d['rows']:[],_0x4ba7ba[_0xae36f7('0x200c')]['getFields']({'id':_0x37d3da[_0xae36f7('0x16a0')]['id']})['$promise'];})['then'](function(_0x453ce5){const _0x38b18f=_0x47ae63;_0x37d3da['fields']=_0x453ce5[_0x38b18f('0x6aa')]?_0x453ce5[_0x38b18f('0x6aa')]:[];})[_0x47ae63('0x103c')](function(_0x2ac488){const _0x4523af=_0x47ae63;_0x4a162f[_0x4523af('0x15aa')]({'title':_0x2ac488[_0x4523af('0x276f')]?_0x4523af('0x137')+_0x2ac488[_0x4523af('0x276f')]+_0x4523af('0x160c')+_0x2ac488['statusText']:_0x4523af('0x1d19'),'msg':_0x2ac488['data']?JSON['stringify'](_0x2ac488['data']):_0x2ac488[_0x4523af('0x1b75')]()});});}function _0x53b3e3(_0x48e8b1,_0x50d5b5){const _0x43d66d=_0x19daf3;_0x336c43[_0x43d66d('0x1cb7')]({'controller':_0x43d66d('0xe3f'),'controllerAs':'vm','templateUrl':_0x490d02,'parent':angular[_0x43d66d('0xb6d')](_0x4d4078[_0x43d66d('0x1a5')]),'targetEvent':_0x48e8b1,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0x50d5b5,'configurations':_0x37d3da[_0x43d66d('0x294')],'license':null,'setting':null,'crudPermissions':_0x37d3da[_0x43d66d('0x1dc1')]}})[_0x43d66d('0xf25')](function(){_0x37d3da['getDynamics365Configuration'](0x0);});}function _0x2c7c0d(_0x5456e8,_0x56bdf2){const _0x56a02f=_0x19daf3,_0x2842a9=_0x336c43['confirm']()[_0x56a02f('0x20d6')](_0x56a02f('0x185f'))[_0x56a02f('0xf8b')](''+(_0x56bdf2['name']||'dynamics365Configuration')+''+_0x56a02f('0xd23'))[_0x56a02f('0x217')](_0x56a02f('0x514'))[_0x56a02f('0x21de')](_0x5456e8)['ok']('OK')[_0x56a02f('0x1e1f')](_0x56a02f('0x468'));_0x336c43[_0x56a02f('0x1cb7')](_0x2842a9)['then'](function(){const _0x5ce172=_0x56a02f;_0x4ba7ba[_0x5ce172('0x200c')]['delete']({'id':_0x56bdf2['id']})['$promise']['then'](function(){const _0x5683e1=_0x5ce172;_0x3c8d8a()[_0x5683e1('0x1a8b')](_0x37d3da[_0x5683e1('0x294')],{'id':_0x56bdf2['id']}),_0x4a162f['success']({'title':_0x5683e1('0x1f1c'),'msg':_0x56bdf2[_0x5683e1('0x10ad')]?_0x56bdf2[_0x5683e1('0x10ad')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x101b1d){const _0x1244d3=_0x5ce172;_0x4a162f[_0x1244d3('0x15aa')]({'title':_0x101b1d['status']?_0x1244d3('0x137')+_0x101b1d['status']+_0x1244d3('0x160c')+_0x101b1d['statusText']:_0x1244d3('0x1d30'),'msg':_0x101b1d[_0x1244d3('0x1e07')]?JSON[_0x1244d3('0x100b')](_0x101b1d[_0x1244d3('0x1e07')]):_0x101b1d[_0x1244d3('0x1b75')]()});})[_0x5ce172('0xf25')](function(){const _0x2b4e32=_0x5ce172;_0x37d3da[_0x2b4e32('0x2227')](0x0);});},function(){const _0x3a970a=_0x56a02f;console[_0x3a970a('0xe37')](_0x3a970a('0x468'));});}_0x37d3da[_0x19daf3('0x276e')]=[],_0x37d3da['createOrEditSubject']=_0x5134a1,_0x37d3da[_0x19daf3('0x156b')]=_0x497c20,_0x37d3da['deleteSelectedSubjects']=_0xde58b7;function _0x5134a1(_0x153d46,_0x51540d){const _0x5f4e12=_0x19daf3;_0x336c43['show']({'controller':_0x5f4e12('0x2831'),'controllerAs':'vm','templateUrl':_0x38d029,'parent':angular[_0x5f4e12('0xb6d')](_0x4d4078[_0x5f4e12('0x1a5')]),'targetEvent':_0x153d46,'clickOutsideToClose':!![],'locals':{'type':_0x5f4e12('0x11bc'),'item':_0x51540d,'items':_0x37d3da[_0x5f4e12('0x1b35')],'configuration':_0x37d3da[_0x5f4e12('0x16a0')],'account':_0x37d3da[_0x5f4e12('0x142')],'license':null,'setting':null,'crudPermissions':_0x37d3da['crudPermissions']}});}function _0x2f29bf(_0xd8934f){const _0x5e2e65=_0x19daf3;_0x4ba7ba[_0x5e2e65('0x174')]['delete']({'id':_0xd8934f['id']})[_0x5e2e65('0x1964')]['then'](function(){const _0x2d8db6=_0x5e2e65;_0x3c8d8a()[_0x2d8db6('0x1a8b')](_0x37d3da[_0x2d8db6('0x1b35')],{'id':_0xd8934f['id']}),_0x4a162f['success']({'title':_0x2d8db6('0xa5e'),'msg':_0x2d8db6('0x213e')});})['catch'](function(_0x4fd769){const _0x2f2bfa=_0x5e2e65;_0x4a162f[_0x2f2bfa('0x15aa')]({'title':_0x4fd769['status']?_0x2f2bfa('0x137')+_0x4fd769[_0x2f2bfa('0x276f')]+_0x2f2bfa('0x160c')+_0x4fd769[_0x2f2bfa('0x2696')]:_0x2f2bfa('0x1400'),'msg':_0x4fd769[_0x2f2bfa('0x1e07')]?JSON[_0x2f2bfa('0x100b')](_0x4fd769[_0x2f2bfa('0x1e07')]):_0x4fd769[_0x2f2bfa('0x1b75')]()});});}function _0x497c20(_0x48dd39,_0x47bceb){const _0x4e26f1=_0x19daf3,_0xe0ee0d=_0x336c43[_0x4e26f1('0x1d02')]()[_0x4e26f1('0x20d6')](_0x4e26f1('0x31c'))[_0x4e26f1('0xf8b')](_0x4e26f1('0x1274')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4e26f1('0x18b8'))['targetEvent'](_0x48dd39)['ok']('OK')['cancel'](_0x4e26f1('0x468'));_0x336c43[_0x4e26f1('0x1cb7')](_0xe0ee0d)[_0x4e26f1('0x173b')](function(){_0x2f29bf(_0x47bceb);},function(){const _0x5ac504=_0x4e26f1;console[_0x5ac504('0xe37')](_0x5ac504('0x468'));});}function _0xde58b7(_0x106611){const _0x5824c2=_0x19daf3,_0x2e5d09=_0x336c43['confirm']()[_0x5824c2('0x20d6')](_0x5824c2('0x837'))[_0x5824c2('0xf8b')](_0x5824c2('0x15b9')+_0x37d3da[_0x5824c2('0x276e')]['length']+_0x5824c2('0xcb4')+_0x5824c2('0xd23'))[_0x5824c2('0x217')](_0x5824c2('0xe22'))['targetEvent'](_0x106611)['ok']('OK')[_0x5824c2('0x1e1f')](_0x5824c2('0x468'));_0x336c43[_0x5824c2('0x1cb7')](_0x2e5d09)[_0x5824c2('0x173b')](function(){const _0x5d6e71=_0x5824c2;_0x37d3da[_0x5d6e71('0x276e')][_0x5d6e71('0xa6a')](function(_0x273818){_0x2f29bf(_0x273818);}),_0x37d3da[_0x5d6e71('0x276e')]=[];});}_0x37d3da[_0x19daf3('0x10e1')]=[],_0x37d3da[_0x19daf3('0x1720')]=_0x198092,_0x37d3da[_0x19daf3('0x7e4')]=_0x2a2084,_0x37d3da[_0x19daf3('0x51d')]=_0x112a4a;function _0x198092(_0x52c357,_0x5ac7aa){const _0x1d9aec=_0x19daf3;_0x336c43[_0x1d9aec('0x1cb7')]({'controller':_0x1d9aec('0x2831'),'controllerAs':'vm','templateUrl':_0x38d029,'parent':angular[_0x1d9aec('0xb6d')](_0x4d4078['body']),'targetEvent':_0x52c357,'clickOutsideToClose':!![],'locals':{'type':_0x1d9aec('0x1c55'),'item':_0x5ac7aa,'items':_0x37d3da[_0x1d9aec('0xb60')],'configuration':_0x37d3da[_0x1d9aec('0x16a0')],'account':_0x37d3da[_0x1d9aec('0x142')],'license':null,'setting':null,'crudPermissions':_0x37d3da[_0x1d9aec('0x1dc1')]}});}function _0x2ec9f4(_0x175c32){const _0x425153=_0x19daf3;_0x4ba7ba['intDynamics365Field']['delete']({'id':_0x175c32['id']})['$promise']['then'](function(){const _0x5cc537=a0_0xde5e;_0x3c8d8a()[_0x5cc537('0x1a8b')](_0x37d3da[_0x5cc537('0xb60')],{'id':_0x175c32['id']}),_0x4a162f[_0x5cc537('0xdfe')]({'title':_0x5cc537('0x1c35'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x425153('0x103c')](function(_0x5b7ea6){const _0x25d492=_0x425153;_0x4a162f['error']({'title':_0x5b7ea6[_0x25d492('0x276f')]?_0x25d492('0x137')+_0x5b7ea6[_0x25d492('0x276f')]+_0x25d492('0x160c')+_0x5b7ea6['statusText']:_0x25d492('0x1400'),'msg':_0x5b7ea6['data']?JSON[_0x25d492('0x100b')](_0x5b7ea6['data']):_0x5b7ea6[_0x25d492('0x1b75')]()});});}function _0x2a2084(_0x394d72,_0xcca343){const _0x93addd=_0x19daf3,_0x5d1447=_0x336c43['confirm']()[_0x93addd('0x20d6')](_0x93addd('0x11d7'))['htmlContent'](_0x93addd('0x1825')+_0x93addd('0xd23'))[_0x93addd('0x217')](_0x93addd('0xfff'))[_0x93addd('0x21de')](_0x394d72)['ok']('OK')['cancel'](_0x93addd('0x468'));_0x336c43[_0x93addd('0x1cb7')](_0x5d1447)[_0x93addd('0x173b')](function(){_0x2ec9f4(_0xcca343);},function(){console['log']('CANCEL');});}function _0x112a4a(_0x2e7f24){const _0x3d57c2=_0x19daf3,_0x1585a2=_0x336c43['confirm']()[_0x3d57c2('0x20d6')](_0x3d57c2('0x1807'))['htmlContent'](_0x3d57c2('0x15b9')+_0x37d3da[_0x3d57c2('0x10e1')][_0x3d57c2('0x543')]+_0x3d57c2('0xcb4')+_0x3d57c2('0xd23'))['ariaLabel'](_0x3d57c2('0x11fd'))['targetEvent'](_0x2e7f24)['ok']('OK')[_0x3d57c2('0x1e1f')](_0x3d57c2('0x468'));_0x336c43['show'](_0x1585a2)[_0x3d57c2('0x173b')](function(){const _0x48d92e=_0x3d57c2;_0x37d3da['selectedDescriptions'][_0x48d92e('0xa6a')](function(_0x29affb){_0x2ec9f4(_0x29affb);}),_0x37d3da[_0x48d92e('0x10e1')]=[];});}_0x37d3da[_0x19daf3('0x86d')]=[],_0x37d3da['createOrEditField']=_0x90a200,_0x37d3da['deleteFieldConfirm']=_0x3e22ae,_0x37d3da['deleteSelectedFields']=_0xf9ffbb;function _0x90a200(_0x12a116,_0x37591c){const _0x36bdf8=_0x19daf3;_0x336c43[_0x36bdf8('0x1cb7')]({'controller':_0x36bdf8('0x2831'),'controllerAs':'vm','templateUrl':_0x38d029,'parent':angular[_0x36bdf8('0xb6d')](_0x4d4078[_0x36bdf8('0x1a5')]),'targetEvent':_0x12a116,'clickOutsideToClose':!![],'locals':{'type':_0x36bdf8('0x81d'),'item':_0x37591c,'items':_0x37d3da[_0x36bdf8('0x2340')],'configuration':_0x37d3da['dynamics365Configuration'],'account':_0x37d3da[_0x36bdf8('0x142')],'license':null,'setting':null,'crudPermissions':_0x37d3da[_0x36bdf8('0x1dc1')]}});}function _0x2a6478(_0x441b37){const _0x469a68=_0x19daf3;_0x4ba7ba['intDynamics365Field']['delete']({'id':_0x441b37['id']})[_0x469a68('0x1964')][_0x469a68('0x173b')](function(){const _0x4b1ceb=_0x469a68;_0x3c8d8a()[_0x4b1ceb('0x1a8b')](_0x37d3da[_0x4b1ceb('0x2340')],{'id':_0x441b37['id']}),_0x4a162f['success']({'title':_0x4b1ceb('0x2262'),'msg':_0x4b1ceb('0x1063')});})[_0x469a68('0x103c')](function(_0x3f7970){const _0x341fec=_0x469a68;_0x4a162f['error']({'title':_0x3f7970[_0x341fec('0x276f')]?_0x341fec('0x137')+_0x3f7970[_0x341fec('0x276f')]+_0x341fec('0x160c')+_0x3f7970[_0x341fec('0x2696')]:_0x341fec('0x1400'),'msg':_0x3f7970[_0x341fec('0x1e07')]?JSON['stringify'](_0x3f7970[_0x341fec('0x1e07')]):_0x3f7970[_0x341fec('0x1b75')]()});});}function _0x3e22ae(_0x302064,_0x31888c){const _0x2283cb=_0x19daf3,_0x151ce7=_0x336c43[_0x2283cb('0x1d02')]()[_0x2283cb('0x20d6')](_0x2283cb('0x985'))[_0x2283cb('0xf8b')](_0x2283cb('0x1cf')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20field')[_0x2283cb('0x21de')](_0x302064)['ok']('OK')['cancel'](_0x2283cb('0x468'));_0x336c43[_0x2283cb('0x1cb7')](_0x151ce7)[_0x2283cb('0x173b')](function(){_0x2a6478(_0x31888c);},function(){const _0x443d67=_0x2283cb;console[_0x443d67('0xe37')](_0x443d67('0x468'));});}function _0xf9ffbb(_0x4dbe4a){const _0x3e35ef=_0x19daf3,_0x4c93cd=_0x336c43[_0x3e35ef('0x1d02')]()[_0x3e35ef('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')['htmlContent'](_0x3e35ef('0x15b9')+_0x37d3da['selectedFields'][_0x3e35ef('0x543')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x3e35ef('0x217')](_0x3e35ef('0xbaf'))[_0x3e35ef('0x21de')](_0x4dbe4a)['ok']('OK')['cancel'](_0x3e35ef('0x468'));_0x336c43[_0x3e35ef('0x1cb7')](_0x4c93cd)[_0x3e35ef('0x173b')](function(){const _0x4c1161=_0x3e35ef;_0x37d3da['selectedFields'][_0x4c1161('0xa6a')](function(_0x4a5bfe){_0x2a6478(_0x4a5bfe);}),_0x37d3da['selectedFields']=[];});}}const _0x2d58d4=_0x3ffe2c;_0x39827a['$inject']=['$scope','$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x294'),_0x566993('0x16a0'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x39827a(_0x44bcad,_0x55a234,_0x221255,_0x2c8d60,_0x2967ce,_0x3e6b28,_0x343849,_0x175a14,_0x5cdc61,_0x2d73a4,_0x432db1,_0x1509d6,_0x34a8f3,_0x5a1287){const _0x1cb864=_0x566993,_0x444499=this;_0x444499[_0x1cb864('0x155f')]=_0x432db1['getCurrentUser'](),_0x444499[_0x1cb864('0x1d4a')]=[],_0x444499[_0x1cb864('0x251')]=_0x34a8f3,_0x444499['license']=_0x1509d6,_0x444499[_0x1cb864('0x1dc1')]=_0x5a1287,_0x444499['hasModulePermissions']={},_0x444499[_0x1cb864('0x644')]=_0x444499[_0x1cb864('0x251')]&&_0x444499[_0x1cb864('0x251')][_0x1cb864('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x444499['title']=_0x1cb864('0x2744'),_0x444499[_0x1cb864('0x16a0')]=angular[_0x1cb864('0x2e3')](_0x5cdc61),_0x444499['configurations']=_0x175a14,_0x444499[_0x1cb864('0x11cc')]=![];!_0x444499[_0x1cb864('0x16a0')]&&(_0x444499[_0x1cb864('0x16a0')]={'channel':_0x1cb864('0x21a8'),'type':_0x1cb864('0x1755'),'ticketType':_0x1cb864('0x1970')},_0x444499[_0x1cb864('0x20d6')]='INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION',_0x444499['newDynamics365Configuration']=!![]);_0x444499[_0x1cb864('0xc7')]=_0x1e7b61,_0x444499[_0x1cb864('0x1da9')]=_0x4ec243,_0x444499['deleteDynamics365Configuration']=_0x2161bd,_0x444499[_0x1cb864('0x11ae')]=_0x320157,_0x444499[_0x1cb864('0x18e2')]=_0x1a19af;function _0x1e7b61(){const _0x571512=_0x1cb864;_0x444499['errors']=[],_0x2d73a4[_0x571512('0x1a37')][_0x571512('0x795')]({'id':_0x55a234[_0x571512('0x197a')]['id']},_0x444499[_0x571512('0x16a0')])['$promise']['then'](function(_0x46439d){const _0x5989e5=_0x571512;_0x444499[_0x5989e5('0x294')][_0x5989e5('0x1377')](_0x46439d[_0x5989e5('0xf1f')]()),_0x343849[_0x5989e5('0xdfe')]({'title':_0x5989e5('0x3ea'),'msg':_0x444499['dynamics365Configuration'][_0x5989e5('0x10ad')]?_0x444499[_0x5989e5('0x16a0')][_0x5989e5('0x10ad')]+_0x5989e5('0x209a'):''}),_0x1a19af(_0x46439d);})[_0x571512('0x103c')](function(_0x413bee){const _0x244268=_0x571512;if(_0x413bee['data']&&_0x413bee[_0x244268('0x1e07')]['errors']&&_0x413bee['data'][_0x244268('0x1d4a')][_0x244268('0x543')]){_0x444499['errors']=_0x413bee[_0x244268('0x1e07')][_0x244268('0x1d4a')]||[{'message':_0x413bee[_0x244268('0x1b75')](),'type':_0x244268('0x23de')}];for(let _0xc7a313=0x0;_0xc7a313<_0x413bee[_0x244268('0x1e07')][_0x244268('0x1d4a')][_0x244268('0x543')];_0xc7a313+=0x1){_0x343849[_0x244268('0x15aa')]({'title':_0x413bee['data']['errors'][_0xc7a313][_0x244268('0x1810')],'msg':_0x413bee[_0x244268('0x1e07')][_0x244268('0x1d4a')][_0xc7a313][_0x244268('0x67f')]});}}else _0x343849[_0x244268('0x15aa')]({'title':_0x413bee['status']?_0x244268('0x137')+_0x413bee[_0x244268('0x276f')]+_0x244268('0x160c')+_0x413bee[_0x244268('0x2696')]:_0x244268('0x23de'),'msg':_0x413bee['data']?JSON['stringify'](_0x413bee[_0x244268('0x1e07')]['message']):_0x413bee['toString']()});});}function _0x4ec243(){const _0x2e59ec=_0x1cb864;_0x444499['errors']=[],_0x2d73a4[_0x2e59ec('0x200c')][_0x2e59ec('0x1842')]({'id':_0x444499['dynamics365Configuration']['id']},_0x444499[_0x2e59ec('0x16a0')])['$promise'][_0x2e59ec('0x173b')](function(_0x538b5d){const _0x5e3591=_0x2e59ec,_0x1ba447=_0x3c8d8a()[_0x5e3591('0x18ab')](_0x444499['configurations'],{'id':_0x538b5d['id']});_0x1ba447&&_0x3c8d8a()[_0x5e3591('0x9ef')](_0x1ba447,_0x3c8d8a()[_0x5e3591('0x2114')](_0x538b5d['toJSON'](),_0x3c8d8a()[_0x5e3591('0x1d3e')](_0x1ba447))),_0x343849[_0x5e3591('0xdfe')]({'title':_0x5e3591('0x1fac'),'msg':_0x444499[_0x5e3591('0x16a0')][_0x5e3591('0x10ad')]?_0x444499[_0x5e3591('0x16a0')][_0x5e3591('0x10ad')]+_0x5e3591('0x2788'):''}),_0x1a19af(_0x538b5d);})['catch'](function(_0x53299c){const _0x3cf6d6=_0x2e59ec;if(_0x53299c['data']&&_0x53299c[_0x3cf6d6('0x1e07')][_0x3cf6d6('0x1d4a')]&&_0x53299c[_0x3cf6d6('0x1e07')][_0x3cf6d6('0x1d4a')][_0x3cf6d6('0x543')]){_0x444499[_0x3cf6d6('0x1d4a')]=_0x53299c['data'][_0x3cf6d6('0x1d4a')]||[{'message':_0x53299c['toString'](),'type':_0x3cf6d6('0x173c')}];for(let _0x574d6=0x0;_0x574d6<_0x53299c[_0x3cf6d6('0x1e07')][_0x3cf6d6('0x1d4a')][_0x3cf6d6('0x543')];_0x574d6++){_0x343849['error']({'title':_0x53299c[_0x3cf6d6('0x1e07')][_0x3cf6d6('0x1d4a')][_0x574d6][_0x3cf6d6('0x1810')],'msg':_0x53299c[_0x3cf6d6('0x1e07')][_0x3cf6d6('0x1d4a')][_0x574d6][_0x3cf6d6('0x67f')]});}}else _0x343849[_0x3cf6d6('0x15aa')]({'title':_0x53299c['status']?_0x3cf6d6('0x137')+_0x53299c[_0x3cf6d6('0x276f')]+_0x3cf6d6('0x160c')+_0x53299c[_0x3cf6d6('0x2696')]:_0x3cf6d6('0x173c'),'msg':_0x53299c['data']?JSON['stringify'](_0x53299c[_0x3cf6d6('0x1e07')]['message']):_0x53299c[_0x3cf6d6('0x1b75')]()});});}function _0x2161bd(_0x1af286){const _0x248279=_0x1cb864;_0x444499['errors']=[];const _0x237828=_0x2c8d60['confirm']()[_0x248279('0x20d6')](_0x248279('0x8ef'))[_0x248279('0x732')](_0x248279('0x207e'))['ariaLabel']('Delete\x20Dynamics365Configuration')['ok'](_0x248279('0x2373'))[_0x248279('0x1e1f')](_0x248279('0x1d4e'))[_0x248279('0x21de')](_0x1af286);_0x2c8d60[_0x248279('0x1cb7')](_0x237828)[_0x248279('0x173b')](function(){const _0xff44d=_0x248279;_0x2d73a4[_0xff44d('0x200c')]['delete']({'id':_0x444499[_0xff44d('0x16a0')]['id']})[_0xff44d('0x1964')][_0xff44d('0x173b')](function(){const _0x57412a=_0xff44d;_0x3c8d8a()[_0x57412a('0x1a8b')](_0x444499[_0x57412a('0x294')],{'id':_0x444499['dynamics365Configuration']['id']}),_0x343849[_0x57412a('0xdfe')]({'title':_0x57412a('0x89'),'msg':(_0x444499[_0x57412a('0x16a0')][_0x57412a('0x10ad')]||_0x57412a('0x16a0'))+_0x57412a('0x25d2')}),_0x1a19af(_0x444499[_0x57412a('0x16a0')]);})[_0xff44d('0x103c')](function(_0x4f4bac){const _0x30680e=_0xff44d;if(_0x4f4bac[_0x30680e('0x1e07')]&&_0x4f4bac[_0x30680e('0x1e07')]['errors']&&_0x4f4bac[_0x30680e('0x1e07')][_0x30680e('0x1d4a')]['length']){_0x444499[_0x30680e('0x1d4a')]=_0x4f4bac[_0x30680e('0x1e07')][_0x30680e('0x1d4a')]||[{'message':_0x4f4bac[_0x30680e('0x1b75')](),'type':_0x30680e('0x1a45')}];for(let _0x28216f=0x0;_0x28216f<_0x4f4bac[_0x30680e('0x1e07')]['errors'][_0x30680e('0x543')];_0x28216f++){_0x343849[_0x30680e('0x15aa')]({'title':_0x4f4bac[_0x30680e('0x1e07')][_0x30680e('0x1d4a')][_0x28216f]['type'],'msg':_0x4f4bac[_0x30680e('0x1e07')]['errors'][_0x28216f][_0x30680e('0x67f')]});}}else _0x343849[_0x30680e('0x15aa')]({'title':_0x4f4bac['status']?_0x30680e('0x137')+_0x4f4bac[_0x30680e('0x276f')]+_0x30680e('0x160c')+_0x4f4bac[_0x30680e('0x2696')]:_0x30680e('0x1a45'),'msg':_0x4f4bac[_0x30680e('0x1e07')]?JSON[_0x30680e('0x100b')](_0x4f4bac[_0x30680e('0x1e07')]['message']):_0x4f4bac[_0x30680e('0x67f')]||_0x4f4bac[_0x30680e('0x1b75')]()});});},function(){});}function _0x320157(_0x366420){return _0x366420===null?undefined:new Date(_0x366420);}function _0x1a19af(_0x9a1b14){const _0x3f7f83=_0x1cb864;_0x2c8d60[_0x3f7f83('0x1cf4')](_0x9a1b14);}}const _0x1bbf69=_0x39827a;_0xc9519e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0x1dde'),_0x566993('0x1b1f'),_0x566993('0x54'),_0x566993('0xde4'),'type','api','Auth',_0x566993('0x1dc1')];function _0xc9519e(_0x514495,_0x2d2cd2,_0x58f1ee,_0x358a5c,_0x489a3b,_0x1e7bb5,_0x205ef3,_0x152ddc,_0x4cc24a,_0x27fe42,_0x19d2df,_0x51e65f,_0x327c73){const _0x2cec4b=_0x566993,_0x512686=this;_0x512686[_0x2cec4b('0x155f')]=_0x51e65f[_0x2cec4b('0x14d4')](),_0x512686[_0x2cec4b('0x1d4a')]=[],_0x512686[_0x2cec4b('0x20d6')]=_0x2cec4b('0x3a0')+_0x3c8d8a()[_0x2cec4b('0x160d')](_0x27fe42),_0x512686[_0x2cec4b('0x54')]=angular[_0x2cec4b('0x2e3')](_0x152ddc),_0x512686[_0x2cec4b('0x1b1f')]=_0x205ef3,_0x512686[_0x2cec4b('0x1810')]=_0x27fe42,_0x512686[_0x2cec4b('0x1dc1')]=_0x327c73,_0x512686[_0x2cec4b('0x7')]=![];!_0x512686[_0x2cec4b('0x54')]&&(_0x512686['item']={'type':_0x2cec4b('0x1533')},_0x512686[_0x2cec4b('0x54')][_0x3c8d8a()['capitalize'](_0x27fe42)+'Id']=_0x1e7bb5['id'],_0x512686[_0x2cec4b('0x20d6')]=_0x2cec4b('0x99f')+_0x3c8d8a()[_0x2cec4b('0x160d')](_0x27fe42),_0x512686[_0x2cec4b('0x7')]=!![]);_0x512686[_0x2cec4b('0x221f')]=_0x2978ec,_0x512686[_0x2cec4b('0x10e0')]=_0x44ee5c,_0x512686['deleteItem']=_0x87e148,_0x512686['getSelectedVariable']=_0x36ca85,_0x512686['closeDialog']=_0x30c279,_0x19d2df[_0x2cec4b('0x1b56')][_0x2cec4b('0x1d97')]({'nolimit':!![]})[_0x2cec4b('0x1964')][_0x2cec4b('0x173b')](function(_0x39d939){const _0x422908=_0x2cec4b;return _0x512686[_0x422908('0x2715')]=_0x39d939[_0x422908('0x6aa')]?_0x39d939[_0x422908('0x6aa')]:[],_0x19d2df[_0x422908('0x934')]['describe']()[_0x422908('0x1964')];})[_0x2cec4b('0x173b')](function(_0x596cf8){const _0x53cc46=_0x2cec4b;return _0x512686[_0x53cc46('0x1fe8')]=_0x3c8d8a()[_0x53cc46('0x1b31')](_0x3c8d8a()[_0x53cc46('0x1d3e')](_0x596cf8),[_0x53cc46('0x1964'),_0x53cc46('0x14ad'),_0x53cc46('0xda8'),'updatedAt',_0x53cc46('0x24b1')]),_0x512686[_0x53cc46('0x1fe8')][_0x53cc46('0x18bb')]('recordingURL'),_0x19d2df[_0x53cc46('0x242c')]['describe']()['$promise'];})[_0x2cec4b('0x173b')](function(_0x3f454c){const _0xcad17f=_0x2cec4b;_0x512686[_0xcad17f('0x20de')]=_0x3c8d8a()[_0xcad17f('0x1b31')](_0x3c8d8a()[_0xcad17f('0x1d3e')](_0x3f454c),['$promise','$resolved',_0xcad17f('0xda8'),_0xcad17f('0xad'),_0xcad17f('0x24b1')]),_0x512686[_0xcad17f('0x20de')][_0xcad17f('0x18bb')](_0xcad17f('0x2313'));})[_0x2cec4b('0x103c')](function(_0x434ed4){const _0x5ab73a=_0x2cec4b;_0x489a3b[_0x5ab73a('0x15aa')]({'title':_0x434ed4[_0x5ab73a('0x276f')]?_0x5ab73a('0x137')+_0x434ed4[_0x5ab73a('0x276f')]+_0x5ab73a('0x160c')+_0x434ed4['statusText']:_0x5ab73a('0xaf3'),'msg':_0x434ed4[_0x5ab73a('0x1e07')]?JSON['stringify'](_0x434ed4['data']):_0x434ed4[_0x5ab73a('0x1b75')]()});}),_0x19d2df[_0x2cec4b('0x1a37')][_0x2cec4b('0x223b')]({'id':_0x4cc24a['id'],'ticketType':_0x1e7bb5[_0x2cec4b('0x182')]?_0x1e7bb5[_0x2cec4b('0x182')]:undefined})['$promise'][_0x2cec4b('0x173b')](function(_0x1a08c1){const _0x12a64b=_0x2cec4b;_0x512686[_0x12a64b('0x22ad')]=!![],_0x512686[_0x12a64b('0x2340')]=_0x1a08c1[_0x12a64b('0x6aa')]?_0x1a08c1[_0x12a64b('0x6aa')]:[],_0x512686[_0x12a64b('0x54')][_0x12a64b('0x1ee7')]&&(_0x512686[_0x12a64b('0x894')]=_0x3c8d8a()['find'](_0x512686['fields'],{'id':_0x512686[_0x12a64b('0x54')][_0x12a64b('0x1ee7')]}));})[_0x2cec4b('0x103c')](function(_0x1af18f){const _0x5effcb=_0x2cec4b;_0x512686[_0x5effcb('0x22ad')]=![],console[_0x5effcb('0x15aa')](_0x1af18f);});function _0x2978ec(){const _0x45a0c1=_0x2cec4b;_0x512686['errors']=[],_0x512686[_0x45a0c1('0x894')]&&(_0x512686[_0x45a0c1('0x54')][_0x45a0c1('0x1ee7')]=_0x512686[_0x45a0c1('0x894')]['id'],_0x512686[_0x45a0c1('0x54')][_0x45a0c1('0x194d')]=_0x512686[_0x45a0c1('0x894')][_0x45a0c1('0x10ad')],_0x512686[_0x45a0c1('0x54')][_0x45a0c1('0x894')]=_0x512686[_0x45a0c1('0x894')][_0x45a0c1('0xbb4')]),_0x19d2df[_0x45a0c1('0x174')][_0x45a0c1('0x1195')](_0x512686['item'])[_0x45a0c1('0x1964')]['then'](function(_0x31bc3e){const _0x20bfcc=_0x45a0c1;_0x512686[_0x20bfcc('0x1b1f')][_0x20bfcc('0x1377')](_0x31bc3e),_0x489a3b[_0x20bfcc('0xdfe')]({'title':_0x3c8d8a()[_0x20bfcc('0x587')](_0x27fe42)+_0x20bfcc('0x348'),'msg':_0x3c8d8a()['capitalize'](_0x27fe42)+_0x20bfcc('0x209a')}),_0x30c279();})[_0x45a0c1('0x103c')](function(_0x34c4a6){const _0x4bcf8f=_0x45a0c1;console[_0x4bcf8f('0x15aa')](_0x34c4a6),_0x512686[_0x4bcf8f('0x1d4a')]=_0x34c4a6['data'][_0x4bcf8f('0x1d4a')]||[{'message':_0x34c4a6[_0x4bcf8f('0x1b75')](),'type':_0x4bcf8f('0x18e4')}];});}function _0x44ee5c(){const _0x534918=_0x2cec4b;_0x512686[_0x534918('0x1d4a')]=[],_0x512686['customField']&&(_0x512686[_0x534918('0x54')][_0x534918('0x1ee7')]=_0x512686['customField']['id'],_0x512686['item'][_0x534918('0x194d')]=_0x512686[_0x534918('0x894')][_0x534918('0x10ad')],_0x512686['item'][_0x534918('0x894')]=_0x512686[_0x534918('0x894')][_0x534918('0xbb4')]),_0x19d2df[_0x534918('0x174')][_0x534918('0x1842')]({'id':_0x512686['item']['id']},_0x512686[_0x534918('0x54')])['$promise'][_0x534918('0x173b')](function(_0x1b46e8){const _0xca4072=_0x534918,_0x59fd58=_0x3c8d8a()[_0xca4072('0x18ab')](_0x512686['items'],{'id':_0x1b46e8['id']});_0x59fd58&&_0x3c8d8a()[_0xca4072('0x9ef')](_0x59fd58,_0x1b46e8),_0x489a3b[_0xca4072('0xdfe')]({'title':_0x3c8d8a()['capitalize'](_0x27fe42)+_0xca4072('0x10e9'),'msg':_0x3c8d8a()[_0xca4072('0x587')](_0x27fe42)+_0xca4072('0x2788')}),_0x30c279();})['catch'](function(_0x4e1bff){const _0x55beaa=_0x534918;console[_0x55beaa('0x15aa')](_0x4e1bff),_0x512686['errors']=_0x4e1bff[_0x55beaa('0x1e07')][_0x55beaa('0x1d4a')]||[{'message':_0x4e1bff[_0x55beaa('0x1b75')](),'type':_0x55beaa('0x1c43')}];});}function _0x87e148(_0x4d3cf3){const _0x8ce94a=_0x2cec4b;_0x512686[_0x8ce94a('0x1d4a')]=[];const _0x47a8fa=_0x358a5c['confirm']()[_0x8ce94a('0x20d6')](_0x8ce94a('0x8ef'))[_0x8ce94a('0x732')](_0x8ce94a('0x1aa5')+_0x27fe42+_0x8ce94a('0xd23'))[_0x8ce94a('0x217')]('Delete\x20'+_0x3c8d8a()[_0x8ce94a('0x587')](_0x27fe42))['ok'](_0x8ce94a('0x2373'))[_0x8ce94a('0x1e1f')](_0x8ce94a('0x1d4e'))['targetEvent'](_0x4d3cf3);_0x358a5c[_0x8ce94a('0x1cb7')](_0x47a8fa)[_0x8ce94a('0x173b')](function(){const _0x2bca3e=_0x8ce94a;_0x19d2df[_0x2bca3e('0x174')][_0x2bca3e('0x15e8')]({'id':_0x512686[_0x2bca3e('0x54')]['id']})['$promise'][_0x2bca3e('0x173b')](function(){const _0x311de6=_0x2bca3e;_0x3c8d8a()[_0x311de6('0x1a8b')](_0x512686[_0x311de6('0x1b1f')],{'id':_0x512686[_0x311de6('0x54')]['id']}),_0x489a3b[_0x311de6('0xdfe')]({'title':_0x3c8d8a()[_0x311de6('0x587')](_0x27fe42)+_0x311de6('0xb5'),'msg':_0x3c8d8a()[_0x311de6('0x587')](_0x27fe42)+'\x20has\x20been\x20deleted!'}),_0x30c279();})['catch'](function(_0x202e32){const _0xf189d=_0x2bca3e;console[_0xf189d('0x15aa')](_0x202e32),_0x512686[_0xf189d('0x1d4a')]=_0x202e32[_0xf189d('0x1e07')][_0xf189d('0x1d4a')]||[{'message':_0x202e32[_0xf189d('0x1b75')](),'type':'api.item.delete'}];});},function(){});}function _0x36ca85(){const _0x4b0489=_0x2cec4b;return _0x512686[_0x4b0489('0x54')]['variableName']!==undefined?_0x512686[_0x4b0489('0x54')][_0x4b0489('0x195d')]:'Please\x20select\x20a\x20variable';}function _0x30c279(){const _0x188c5a=_0x2cec4b;_0x358a5c[_0x188c5a('0x1cf4')]();}}const _0x7e370c=_0xc9519e;_0x320359[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x142'),_0x566993('0x170e')];function _0x320359(_0x5986a1,_0x3598cc,_0x2a3768,_0x2abd6f,_0x41550a,_0x5a2f65,_0x12021c,_0x28e556,_0x489447,_0x5d2ac6,_0x5d1c77,_0x42c9d0){const _0x28e3f9=_0x566993,_0x3d5b17=this;_0x3d5b17['currentUser']=_0x5d2ac6[_0x28e3f9('0x14d4')](),_0x3d5b17[_0x28e3f9('0x1a29')]=_0x5a2f65,_0x3d5b17[_0x28e3f9('0x251')]=_0x12021c,_0x3d5b17[_0x28e3f9('0x644')]=_0x3d5b17[_0x28e3f9('0x251')][_0x28e3f9('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d5b17['location']=_0x3598cc['protocol']()+_0x28e3f9('0x122b')+_0x3598cc['host'](),_0x3d5b17['dynamics365Account']=_0x5d1c77||_0x5986a1[_0x28e3f9('0x197a')]['dynamics365Account']||{},_0x3d5b17[_0x28e3f9('0x170e')]=_0x42c9d0&&_0x42c9d0[_0x28e3f9('0x1a2f')]==0x1?_0x42c9d0[_0x28e3f9('0x6aa')][0x0]:null,_0x3d5b17[_0x28e3f9('0x1dc1')]=_0x5d2ac6['parseCrudPermissions'](_0x3d5b17[_0x28e3f9('0x170e')]?_0x3d5b17[_0x28e3f9('0x170e')][_0x28e3f9('0x1dc1')]:null),_0x3d5b17[_0x28e3f9('0xb0')]={},_0x3d5b17[_0x28e3f9('0xd5f')]=_0x5986a1['params']['tab']||0x0,_0x3d5b17[_0x28e3f9('0x5a4')]=_0x489447['info'],_0x3d5b17[_0x28e3f9('0xe02')]=_0x133149,_0x3d5b17[_0x28e3f9('0x897')]=_0x426858;function _0x133149(){_0x5986a1['go']('app.integrations.dynamics365Accounts',{},{'reload':'app.integrations.dynamics365Accounts'});}function _0x426858(){const _0x393443=_0x28e3f9;_0x28e556[_0x393443('0x1a37')][_0x393443('0x1842')]({'id':_0x3d5b17[_0x393443('0x142')]['id']},_0x3d5b17[_0x393443('0x142')])['$promise'][_0x393443('0x173b')](function(){const _0x477b06=_0x393443;_0x489447['success']({'title':'Dynamics365Account\x20updated!','msg':_0x3d5b17[_0x477b06('0x142')][_0x477b06('0x10ad')]?_0x3d5b17[_0x477b06('0x142')]['name']+_0x477b06('0x1fd6'):''});})[_0x393443('0x103c')](function(_0x55f3bb){const _0x248d6a=_0x393443;_0x489447[_0x248d6a('0x15aa')]({'title':_0x55f3bb[_0x248d6a('0x276f')]?_0x248d6a('0x137')+_0x55f3bb['status']+_0x248d6a('0x160c')+_0x55f3bb[_0x248d6a('0x2696')]:_0x248d6a('0x1ae4'),'msg':_0x55f3bb[_0x248d6a('0x1e07')]?JSON[_0x248d6a('0x100b')](_0x55f3bb['data']):_0x55f3bb[_0x248d6a('0x1b75')]()});});}}const _0x4a75b8=_0x320359;_0x196ca1[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state','$location','$mdDialog','$q',_0x566993('0x638'),'toasty',_0x566993('0x17db'),_0x566993('0x22a2'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0x196ca1(_0x3beabe,_0x3a832e,_0x878003,_0x3c0f2a,_0x5ce5b7,_0x443f8a,_0x27cbe2,_0x465016,_0x39289a,_0x13b021,_0x41f770,_0x2f6b9e,_0x15301e,_0x17b84f){const _0x40194a=_0x566993,_0x2356d8=this;_0x2356d8[_0x40194a('0x155f')]=_0x41f770[_0x40194a('0x14d4')](),_0x2356d8['errors']=[],_0x2356d8[_0x40194a('0x251')]=_0x15301e,_0x2356d8[_0x40194a('0x1a29')]=_0x2f6b9e,_0x2356d8[_0x40194a('0x1dc1')]=_0x17b84f,_0x2356d8[_0x40194a('0xb0')]={},_0x2356d8[_0x40194a('0x644')]=_0x2356d8[_0x40194a('0x251')]&&_0x2356d8['setting'][_0x40194a('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2356d8[_0x40194a('0x20d6')]=_0x40194a('0x23bb'),_0x2356d8[_0x40194a('0x22a2')]=angular['copy'](_0x39289a),_0x2356d8[_0x40194a('0x17db')]=_0x465016,_0x2356d8['newFreshdeskAccount']=![];!_0x2356d8[_0x40194a('0x22a2')]&&(_0x2356d8[_0x40194a('0x22a2')]={'serverUrl':_0x878003[_0x40194a('0x375')]()+_0x40194a('0x122b')+_0x878003[_0x40194a('0x4d1')]()+(_0x878003[_0x40194a('0xe0d')]()?':'+_0x878003[_0x40194a('0xe0d')]():'')},_0x2356d8['title']=_0x40194a('0x2c5'),_0x2356d8['newFreshdeskAccount']=!![]);_0x2356d8[_0x40194a('0x7ce')]=_0x30581a,_0x2356d8['saveFreshdeskAccount']=_0x38102a,_0x2356d8['deleteFreshdeskAccount']=_0x5ef0f4,_0x2356d8[_0x40194a('0x11ae')]=_0x23838c,_0x2356d8[_0x40194a('0x18e2')]=_0x4a97d2;function _0x30581a(){const _0x57790d=_0x40194a;_0x2356d8['errors']=[],_0x13b021[_0x57790d('0x45d')]['save'](_0x2356d8[_0x57790d('0x22a2')])[_0x57790d('0x1964')]['then'](function(_0x462f42){const _0x40ff45=_0x57790d;_0x2356d8[_0x40ff45('0x17db')]['unshift'](_0x462f42[_0x40ff45('0xf1f')]()),_0x27cbe2[_0x40ff45('0xdfe')]({'title':_0x40ff45('0x1f8a'),'msg':_0x2356d8['freshdeskAccount'][_0x40ff45('0x10ad')]?_0x2356d8[_0x40ff45('0x22a2')][_0x40ff45('0x10ad')]+_0x40ff45('0x209a'):''}),_0x4a97d2(_0x462f42);})[_0x57790d('0x103c')](function(_0xdfde8f){const _0x144929=_0x57790d;if(_0xdfde8f[_0x144929('0x1e07')]&&_0xdfde8f[_0x144929('0x1e07')][_0x144929('0x1d4a')]&&_0xdfde8f[_0x144929('0x1e07')][_0x144929('0x1d4a')][_0x144929('0x543')]){_0x2356d8[_0x144929('0x1d4a')]=_0xdfde8f[_0x144929('0x1e07')][_0x144929('0x1d4a')]||[{'message':_0xdfde8f['toString'](),'type':_0x144929('0x1f')}];for(let _0x59e118=0x0;_0x59e118<_0xdfde8f[_0x144929('0x1e07')][_0x144929('0x1d4a')][_0x144929('0x543')];_0x59e118+=0x1){_0x27cbe2['error']({'title':_0xdfde8f[_0x144929('0x1e07')][_0x144929('0x1d4a')][_0x59e118][_0x144929('0x1810')],'msg':_0xdfde8f[_0x144929('0x1e07')]['errors'][_0x59e118][_0x144929('0x67f')]});}}else _0x27cbe2[_0x144929('0x15aa')]({'title':_0xdfde8f['status']?'API:'+_0xdfde8f[_0x144929('0x276f')]+_0x144929('0x160c')+_0xdfde8f[_0x144929('0x2696')]:_0x144929('0x1f'),'msg':_0xdfde8f[_0x144929('0x1e07')]?JSON['stringify'](_0xdfde8f[_0x144929('0x1e07')]['message']):_0xdfde8f['toString']()});});}function _0x38102a(){const _0x556ac4=_0x40194a;_0x2356d8[_0x556ac4('0x1d4a')]=[],_0x13b021['intFreshdeskAccount'][_0x556ac4('0x1842')]({'id':_0x2356d8['freshdeskAccount']['id']},_0x2356d8[_0x556ac4('0x22a2')])[_0x556ac4('0x1964')]['then'](function(_0x39e5b5){const _0xc23e0b=_0x556ac4,_0x2d4517=_0x3c8d8a()[_0xc23e0b('0x18ab')](_0x2356d8[_0xc23e0b('0x17db')],{'id':_0x39e5b5['id']});_0x2d4517&&_0x3c8d8a()[_0xc23e0b('0x9ef')](_0x2d4517,_0x3c8d8a()[_0xc23e0b('0x2114')](_0x39e5b5[_0xc23e0b('0xf1f')](),_0x3c8d8a()[_0xc23e0b('0x1d3e')](_0x2d4517))),_0x27cbe2[_0xc23e0b('0xdfe')]({'title':'FreshdeskAccount\x20properly\x20saved!','msg':_0x2356d8[_0xc23e0b('0x22a2')]['name']?_0x2356d8[_0xc23e0b('0x22a2')]['name']+_0xc23e0b('0x2788'):''}),_0x4a97d2(_0x39e5b5);})[_0x556ac4('0x103c')](function(_0x49cb1e){const _0x52885c=_0x556ac4;if(_0x49cb1e[_0x52885c('0x1e07')]&&_0x49cb1e[_0x52885c('0x1e07')]['errors']&&_0x49cb1e['data'][_0x52885c('0x1d4a')][_0x52885c('0x543')]){_0x2356d8[_0x52885c('0x1d4a')]=_0x49cb1e[_0x52885c('0x1e07')]['errors']||[{'message':_0x49cb1e[_0x52885c('0x1b75')](),'type':_0x52885c('0x15a3')}];for(let _0x24cc09=0x0;_0x24cc09<_0x49cb1e[_0x52885c('0x1e07')][_0x52885c('0x1d4a')][_0x52885c('0x543')];_0x24cc09++){_0x27cbe2[_0x52885c('0x15aa')]({'title':_0x49cb1e[_0x52885c('0x1e07')][_0x52885c('0x1d4a')][_0x24cc09][_0x52885c('0x1810')],'msg':_0x49cb1e[_0x52885c('0x1e07')]['errors'][_0x24cc09][_0x52885c('0x67f')]});}}else _0x27cbe2[_0x52885c('0x15aa')]({'title':_0x49cb1e[_0x52885c('0x276f')]?_0x52885c('0x137')+_0x49cb1e[_0x52885c('0x276f')]+_0x52885c('0x160c')+_0x49cb1e['statusText']:'api.intFreshdeskAccount.update','msg':_0x49cb1e['data']?JSON[_0x52885c('0x100b')](_0x49cb1e[_0x52885c('0x1e07')][_0x52885c('0x67f')]):_0x49cb1e[_0x52885c('0x1b75')]()});});}function _0x5ef0f4(_0x261d4a){const _0x16b294=_0x40194a;_0x2356d8[_0x16b294('0x1d4a')]=[];const _0x228865=_0x3c0f2a[_0x16b294('0x1d02')]()[_0x16b294('0x20d6')](_0x16b294('0x8ef'))[_0x16b294('0x732')](_0x16b294('0xe4a'))['ariaLabel'](_0x16b294('0x2159'))['ok'](_0x16b294('0x2373'))['cancel'](_0x16b294('0x1d4e'))[_0x16b294('0x21de')](_0x261d4a);_0x3c0f2a['show'](_0x228865)[_0x16b294('0x173b')](function(){const _0x44ae0c=_0x16b294;_0x13b021[_0x44ae0c('0x45d')][_0x44ae0c('0x15e8')]({'id':_0x2356d8[_0x44ae0c('0x22a2')]['id']})[_0x44ae0c('0x1964')][_0x44ae0c('0x173b')](function(){const _0x18623d=_0x44ae0c;_0x3c8d8a()[_0x18623d('0x1a8b')](_0x2356d8[_0x18623d('0x17db')],{'id':_0x2356d8['freshdeskAccount']['id']}),_0x27cbe2[_0x18623d('0xdfe')]({'title':_0x18623d('0x5d3'),'msg':(_0x2356d8[_0x18623d('0x22a2')][_0x18623d('0x10ad')]||'freshdeskAccount')+'\x20has\x20been\x20deleted!'}),_0x4a97d2(_0x2356d8[_0x18623d('0x22a2')]);})[_0x44ae0c('0x103c')](function(_0xae3294){const _0x221e3a=_0x44ae0c;if(_0xae3294['data']&&_0xae3294[_0x221e3a('0x1e07')][_0x221e3a('0x1d4a')]&&_0xae3294[_0x221e3a('0x1e07')][_0x221e3a('0x1d4a')][_0x221e3a('0x543')]){_0x2356d8[_0x221e3a('0x1d4a')]=_0xae3294[_0x221e3a('0x1e07')][_0x221e3a('0x1d4a')]||[{'message':_0xae3294['toString'](),'type':'api.intFreshdeskAccount.delete'}];for(let _0x1215e2=0x0;_0x1215e2<_0xae3294[_0x221e3a('0x1e07')][_0x221e3a('0x1d4a')][_0x221e3a('0x543')];_0x1215e2++){_0x27cbe2['error']({'title':_0xae3294[_0x221e3a('0x1e07')][_0x221e3a('0x1d4a')][_0x1215e2][_0x221e3a('0x1810')],'msg':_0xae3294['data']['errors'][_0x1215e2][_0x221e3a('0x67f')]});}}else _0x27cbe2['error']({'title':_0xae3294[_0x221e3a('0x276f')]?_0x221e3a('0x137')+_0xae3294[_0x221e3a('0x276f')]+_0x221e3a('0x160c')+_0xae3294[_0x221e3a('0x2696')]:_0x221e3a('0x270'),'msg':_0xae3294[_0x221e3a('0x1e07')]?JSON[_0x221e3a('0x100b')](_0xae3294[_0x221e3a('0x1e07')][_0x221e3a('0x67f')]):_0xae3294[_0x221e3a('0x67f')]||_0xae3294[_0x221e3a('0x1b75')]()});});},function(){});}function _0x23838c(_0x506789){return _0x506789===null?undefined:new Date(_0x506789);}function _0x4a97d2(_0x17c341){const _0x483775=_0x40194a;_0x3c0f2a[_0x483775('0x1cf4')](_0x17c341);}}const _0x29bdcf=_0x196ca1,_0x3740f4=_0x21a6a1['p']+_0x566993('0x1d6d'),_0x125e0d=_0x21a6a1['p']+_0x566993('0x2');_0x3e1d9b['$inject']=['$mdDialog',_0x566993('0x1b82'),_0x566993('0xbd4'),'toasty','Auth'];function _0x3e1d9b(_0x86f826,_0x3bb116,_0x36542f,_0x3a7205,_0x1f7785){const _0x43fc8b=_0x566993,_0x166f8e=this;_0x166f8e[_0x43fc8b('0x155f')]=_0x1f7785[_0x43fc8b('0x14d4')](),_0x166f8e[_0x43fc8b('0x22a2')]={},_0x166f8e[_0x43fc8b('0x1750')]={},_0x166f8e['configurations']=[],_0x166f8e[_0x43fc8b('0x12c8')]=-0x1,_0x166f8e[_0x43fc8b('0x1dc1')],_0x166f8e['init']=_0x16df36,_0x166f8e[_0x43fc8b('0x11c1')]=_0x38b4c5,_0x166f8e['createOrEditFreshdeskConfiguration']=_0x996be1,_0x166f8e[_0x43fc8b('0x64d')]=_0x5ac037,_0x166f8e[_0x43fc8b('0x1840')]=[],_0x166f8e[_0x43fc8b('0x1c4')]=_0x38519b,_0x36542f[_0x43fc8b('0x23b4')]['get']({'nolimit':!![],'sort':'name'})[_0x43fc8b('0x1964')][_0x43fc8b('0x173b')](function(_0x405c29){const _0x4769e9=_0x43fc8b;_0x166f8e[_0x4769e9('0x22ac')]=_0x405c29[_0x4769e9('0x6aa')]?_0x405c29[_0x4769e9('0x6aa')]:[];})['catch'](function(_0x324473){const _0x55ba8a=_0x43fc8b;_0x3a7205[_0x55ba8a('0x15aa')]({'title':_0x324473[_0x55ba8a('0x276f')]?_0x55ba8a('0x137')+_0x324473[_0x55ba8a('0x276f')]+_0x55ba8a('0x160c')+_0x324473[_0x55ba8a('0x2696')]:'SYSTEM:GETTAGS','msg':_0x324473[_0x55ba8a('0x1e07')]?JSON['stringify'](_0x324473[_0x55ba8a('0x1e07')]):_0x324473['toString']()});});function _0x38519b(){const _0x40ee41=_0x43fc8b;_0x36542f['intFreshdeskConfiguration'][_0x40ee41('0x15da')]({'id':_0x166f8e[_0x40ee41('0x1750')]['id'],'ids':_0x166f8e[_0x40ee41('0x1840')]})[_0x40ee41('0x1964')][_0x40ee41('0x173b')](function(){const _0x142c62=_0x40ee41;_0x3a7205[_0x142c62('0xdfe')]({'title':'Tags\x20set!','msg':_0x142c62('0x1907')});})['catch'](function(_0x42c32d){const _0x593270=_0x40ee41;_0x3a7205[_0x593270('0x15aa')]({'title':_0x42c32d[_0x593270('0x276f')]?_0x593270('0x137')+_0x42c32d['status']+_0x593270('0x160c')+_0x42c32d['statusText']:_0x593270('0x1528'),'msg':_0x42c32d['data']?JSON['stringify'](_0x42c32d[_0x593270('0x1e07')]):_0x42c32d['toString']()});});}function _0x16df36(_0x39f6ac,_0x9e3d78){const _0x2fbd3f=_0x43fc8b;_0x166f8e['freshdeskAccount']=_0x39f6ac,_0x166f8e[_0x2fbd3f('0x1dc1')]=typeof _0x9e3d78!==_0x2fbd3f('0x6e5')?_0x9e3d78:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x36542f[_0x2fbd3f('0x45d')]['getConfigurations']({'id':_0x166f8e['freshdeskAccount']['id'],'sort':_0x2fbd3f('0x1769')})[_0x2fbd3f('0x1964')][_0x2fbd3f('0x173b')](function(_0x539cf8){const _0x40883c=_0x2fbd3f;return _0x166f8e[_0x40883c('0x294')]=_0x539cf8[_0x40883c('0x6aa')]?_0x539cf8[_0x40883c('0x6aa')]:[],_0x166f8e['configurations']['length']&&_0x166f8e['getFreshdeskConfiguration'](0x0),_0x36542f[_0x40883c('0x1b56')][_0x40883c('0x1d97')]({'nolimit':!![],'sort':_0x40883c('0x10ad')})[_0x40883c('0x1964')];})[_0x2fbd3f('0x173b')](function(_0x535936){const _0x6e8238=_0x2fbd3f;_0x166f8e['variables']=_0x535936['rows']?_0x535936['rows']:[],_0x166f8e['variablesById']=_0x3c8d8a()[_0x6e8238('0x128')](_0x166f8e[_0x6e8238('0x2715')],'id');})[_0x2fbd3f('0x103c')](function(_0x54f841){const _0x593fe5=_0x2fbd3f;_0x3a7205[_0x593fe5('0x15aa')]({'title':_0x54f841[_0x593fe5('0x276f')]?_0x593fe5('0x137')+_0x54f841[_0x593fe5('0x276f')]+_0x593fe5('0x160c')+_0x54f841[_0x593fe5('0x2696')]:_0x593fe5('0x125a'),'msg':_0x54f841['data']?JSON[_0x593fe5('0x100b')](_0x54f841['data']):_0x54f841[_0x593fe5('0x1b75')]()});});}function _0x38b4c5(_0x220394){const _0x4426e2=_0x43fc8b;_0x166f8e[_0x4426e2('0x1750')]=_0x166f8e[_0x4426e2('0x294')][_0x220394],_0x166f8e[_0x4426e2('0x12c8')]=_0x220394,_0x36542f[_0x4426e2('0x12b0')]['getSubjects']({'id':_0x166f8e['freshdeskConfiguration']['id']})[_0x4426e2('0x1964')][_0x4426e2('0x173b')](function(_0x4abc6e){const _0x19c26c=_0x4426e2;return _0x166f8e[_0x19c26c('0x1b35')]=_0x4abc6e['rows']?_0x4abc6e[_0x19c26c('0x6aa')]:[],_0x36542f[_0x19c26c('0x12b0')][_0x19c26c('0xb28')]({'id':_0x166f8e[_0x19c26c('0x1750')]['id']})[_0x19c26c('0x1964')];})[_0x4426e2('0x173b')](function(_0x1b48d8){const _0x3e9dab=_0x4426e2;return _0x166f8e['descriptions']=_0x1b48d8['rows']?_0x1b48d8[_0x3e9dab('0x6aa')]:[],_0x36542f[_0x3e9dab('0x12b0')][_0x3e9dab('0x223b')]({'id':_0x166f8e[_0x3e9dab('0x1750')]['id']})[_0x3e9dab('0x1964')];})[_0x4426e2('0x173b')](function(_0x1a77f4){const _0x197028=_0x4426e2;_0x166f8e[_0x197028('0x2340')]=_0x1a77f4[_0x197028('0x6aa')]?_0x1a77f4[_0x197028('0x6aa')]:[];})[_0x4426e2('0x103c')](function(_0x4a9c2f){const _0x288f83=_0x4426e2;_0x3a7205[_0x288f83('0x15aa')]({'title':_0x4a9c2f[_0x288f83('0x276f')]?_0x288f83('0x137')+_0x4a9c2f['status']+_0x288f83('0x160c')+_0x4a9c2f[_0x288f83('0x2696')]:'SYSTEM:GETConfigurations','msg':_0x4a9c2f[_0x288f83('0x1e07')]?JSON[_0x288f83('0x100b')](_0x4a9c2f[_0x288f83('0x1e07')]):_0x4a9c2f[_0x288f83('0x1b75')]()});}),_0x36542f[_0x4426e2('0x12b0')][_0x4426e2('0x1a74')]({'id':_0x166f8e[_0x4426e2('0x1750')]['id']})['$promise'][_0x4426e2('0x173b')](function(_0x2409be){const _0x9e9ca9=_0x4426e2;_0x166f8e[_0x9e9ca9('0x1840')]=_0x2409be[_0x9e9ca9('0x6aa')]?_0x3c8d8a()[_0x9e9ca9('0x8a2')](_0x2409be[_0x9e9ca9('0x6aa')],'id'):[];})[_0x4426e2('0x103c')](function(_0x5b0afc){const _0x1d792b=_0x4426e2;_0x3a7205[_0x1d792b('0x15aa')]({'title':_0x5b0afc[_0x1d792b('0x276f')]?_0x1d792b('0x137')+_0x5b0afc[_0x1d792b('0x276f')]+_0x1d792b('0x160c')+_0x5b0afc['statusText']:_0x1d792b('0xa41'),'msg':_0x5b0afc['data']?JSON[_0x1d792b('0x100b')](_0x5b0afc[_0x1d792b('0x1e07')]):_0x5b0afc[_0x1d792b('0x1b75')]()});});}function _0x996be1(_0x27259b,_0x4657b2){const _0x1a07a4=_0x43fc8b;_0x86f826['show']({'controller':_0x1a07a4('0x109e'),'controllerAs':'vm','templateUrl':_0x3740f4,'parent':angular[_0x1a07a4('0xb6d')](_0x3bb116['body']),'targetEvent':_0x27259b,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x4657b2,'configurations':_0x166f8e['configurations'],'license':null,'setting':null,'crudPermissions':_0x166f8e[_0x1a07a4('0x1dc1')]}})['finally'](function(){const _0x10b412=_0x1a07a4;_0x166f8e[_0x10b412('0x11c1')](0x0);});}function _0x5ac037(_0x2df38f,_0x55d702){const _0x46ca00=_0x43fc8b,_0x1792be=_0x86f826[_0x46ca00('0x1d02')]()[_0x46ca00('0x20d6')](_0x46ca00('0x1448'))['htmlContent'](_0x46ca00('0x15b9')+(_0x55d702[_0x46ca00('0x10ad')]||_0x46ca00('0x1750'))+_0x46ca00('0x24be')+'\x20will\x20be\x20deleted.')[_0x46ca00('0x217')](_0x46ca00('0x1f45'))[_0x46ca00('0x21de')](_0x2df38f)['ok']('OK')[_0x46ca00('0x1e1f')](_0x46ca00('0x468'));_0x86f826[_0x46ca00('0x1cb7')](_0x1792be)[_0x46ca00('0x173b')](function(){const _0x9ac96a=_0x46ca00;_0x36542f[_0x9ac96a('0x12b0')]['delete']({'id':_0x55d702['id']})[_0x9ac96a('0x1964')]['then'](function(){const _0x3a4fac=_0x9ac96a;_0x3c8d8a()[_0x3a4fac('0x1a8b')](_0x166f8e[_0x3a4fac('0x294')],{'id':_0x55d702['id']}),_0x3a7205[_0x3a4fac('0xdfe')]({'title':_0x3a4fac('0x18de'),'msg':_0x55d702[_0x3a4fac('0x10ad')]?_0x55d702[_0x3a4fac('0x10ad')]+_0x3a4fac('0x25d2'):''});})[_0x9ac96a('0x103c')](function(_0x4127bf){const _0x76d03e=_0x9ac96a;_0x3a7205[_0x76d03e('0x15aa')]({'title':_0x4127bf[_0x76d03e('0x276f')]?'API:'+_0x4127bf[_0x76d03e('0x276f')]+'\x20-\x20'+_0x4127bf[_0x76d03e('0x2696')]:_0x76d03e('0x1d30'),'msg':_0x4127bf[_0x76d03e('0x1e07')]?JSON['stringify'](_0x4127bf[_0x76d03e('0x1e07')]):_0x4127bf[_0x76d03e('0x1b75')]()});})[_0x9ac96a('0xf25')](function(){const _0x2a555e=_0x9ac96a;_0x166f8e[_0x2a555e('0x11c1')](0x0);});},function(){const _0x4b3cf0=_0x46ca00;console[_0x4b3cf0('0xe37')](_0x4b3cf0('0x468'));});}_0x166f8e['selectedSubjects']=[],_0x166f8e[_0x43fc8b('0x1317')]=_0x54a158,_0x166f8e[_0x43fc8b('0x156b')]=_0x4ab8c5,_0x166f8e[_0x43fc8b('0x178c')]=_0x135170;function _0x54a158(_0x3e40ca,_0x3384c7){const _0x3dd97d=_0x43fc8b;_0x86f826[_0x3dd97d('0x1cb7')]({'controller':_0x3dd97d('0x1fd0'),'controllerAs':'vm','templateUrl':_0x125e0d,'parent':angular[_0x3dd97d('0xb6d')](_0x3bb116[_0x3dd97d('0x1a5')]),'targetEvent':_0x3e40ca,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x3384c7,'items':_0x166f8e[_0x3dd97d('0x1b35')],'configuration':_0x166f8e[_0x3dd97d('0x1750')],'account':_0x166f8e['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x166f8e[_0x3dd97d('0x1dc1')]}});}function _0x42b63a(_0x5260de){const _0x474c51=_0x43fc8b;_0x36542f[_0x474c51('0x1572')][_0x474c51('0x15e8')]({'id':_0x5260de['id']})[_0x474c51('0x1964')][_0x474c51('0x173b')](function(){const _0x59e1f0=_0x474c51;_0x3c8d8a()[_0x59e1f0('0x1a8b')](_0x166f8e[_0x59e1f0('0x1b35')],{'id':_0x5260de['id']}),_0x3a7205['success']({'title':_0x59e1f0('0xa5e'),'msg':_0x59e1f0('0x213e')});})[_0x474c51('0x103c')](function(_0x12b453){const _0x50431f=_0x474c51;_0x3a7205[_0x50431f('0x15aa')]({'title':_0x12b453[_0x50431f('0x276f')]?_0x50431f('0x137')+_0x12b453[_0x50431f('0x276f')]+_0x50431f('0x160c')+_0x12b453[_0x50431f('0x2696')]:_0x50431f('0x1400'),'msg':_0x12b453[_0x50431f('0x1e07')]?JSON[_0x50431f('0x100b')](_0x12b453[_0x50431f('0x1e07')]):_0x12b453[_0x50431f('0x1b75')]()});});}function _0x4ab8c5(_0x3d1a86,_0x358bd3){const _0x34a0b8=_0x43fc8b,_0x4080d1=_0x86f826[_0x34a0b8('0x1d02')]()[_0x34a0b8('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x34a0b8('0xf8b')](_0x34a0b8('0x1274')+'\x20will\x20be\x20deleted.')[_0x34a0b8('0x217')](_0x34a0b8('0x18b8'))[_0x34a0b8('0x21de')](_0x3d1a86)['ok']('OK')[_0x34a0b8('0x1e1f')]('CANCEL');_0x86f826[_0x34a0b8('0x1cb7')](_0x4080d1)[_0x34a0b8('0x173b')](function(){_0x42b63a(_0x358bd3);},function(){const _0x5f3f20=_0x34a0b8;console[_0x5f3f20('0xe37')](_0x5f3f20('0x468'));});}function _0x135170(_0x3c57df){const _0x53b9c7=_0x43fc8b,_0x1eccd8=_0x86f826[_0x53b9c7('0x1d02')]()[_0x53b9c7('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x53b9c7('0xf8b')](''+_0x166f8e[_0x53b9c7('0x276e')][_0x53b9c7('0x543')]+_0x53b9c7('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20subjects')[_0x53b9c7('0x21de')](_0x3c57df)['ok']('OK')[_0x53b9c7('0x1e1f')](_0x53b9c7('0x468'));_0x86f826[_0x53b9c7('0x1cb7')](_0x1eccd8)['then'](function(){const _0x14c2dc=_0x53b9c7;_0x166f8e['selectedSubjects']['forEach'](function(_0x30f5b1){_0x42b63a(_0x30f5b1);}),_0x166f8e[_0x14c2dc('0x276e')]=[];});}_0x166f8e['selectedDescriptions']=[],_0x166f8e[_0x43fc8b('0x1720')]=_0x310b20,_0x166f8e[_0x43fc8b('0x7e4')]=_0xe48533,_0x166f8e[_0x43fc8b('0x51d')]=_0x487020;function _0x310b20(_0x42226b,_0x5b1065){const _0xffd182=_0x43fc8b;_0x86f826[_0xffd182('0x1cb7')]({'controller':_0xffd182('0x1fd0'),'controllerAs':'vm','templateUrl':_0x125e0d,'parent':angular[_0xffd182('0xb6d')](_0x3bb116[_0xffd182('0x1a5')]),'targetEvent':_0x42226b,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x5b1065,'items':_0x166f8e['descriptions'],'configuration':_0x166f8e['freshdeskConfiguration'],'account':_0x166f8e[_0xffd182('0x22a2')],'license':null,'setting':null,'crudPermissions':_0x166f8e['crudPermissions']}});}function _0xb7e1e2(_0x4e4a1b){const _0x3820ce=_0x43fc8b;_0x36542f[_0x3820ce('0x1572')][_0x3820ce('0x15e8')]({'id':_0x4e4a1b['id']})[_0x3820ce('0x1964')][_0x3820ce('0x173b')](function(){const _0x16d163=_0x3820ce;_0x3c8d8a()['remove'](_0x166f8e[_0x16d163('0xb60')],{'id':_0x4e4a1b['id']}),_0x3a7205[_0x16d163('0xdfe')]({'title':_0x16d163('0x1c35'),'msg':_0x16d163('0x2298')});})[_0x3820ce('0x103c')](function(_0x43dc81){const _0x125ef4=_0x3820ce;_0x3a7205[_0x125ef4('0x15aa')]({'title':_0x43dc81[_0x125ef4('0x276f')]?'API:'+_0x43dc81[_0x125ef4('0x276f')]+_0x125ef4('0x160c')+_0x43dc81[_0x125ef4('0x2696')]:_0x125ef4('0x1400'),'msg':_0x43dc81[_0x125ef4('0x1e07')]?JSON[_0x125ef4('0x100b')](_0x43dc81['data']):_0x43dc81[_0x125ef4('0x1b75')]()});});}function _0xe48533(_0x900422,_0x26994f){const _0xf40601=_0x43fc8b,_0x2b7538=_0x86f826[_0xf40601('0x1d02')]()[_0xf40601('0x20d6')](_0xf40601('0x11d7'))[_0xf40601('0xf8b')](_0xf40601('0x1825')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20description')[_0xf40601('0x21de')](_0x900422)['ok']('OK')[_0xf40601('0x1e1f')](_0xf40601('0x468'));_0x86f826[_0xf40601('0x1cb7')](_0x2b7538)['then'](function(){_0xb7e1e2(_0x26994f);},function(){const _0x518dee=_0xf40601;console[_0x518dee('0xe37')](_0x518dee('0x468'));});}function _0x487020(_0x5f5023){const _0x32a6bc=_0x43fc8b,_0x7cc589=_0x86f826[_0x32a6bc('0x1d02')]()[_0x32a6bc('0x20d6')](_0x32a6bc('0x1807'))[_0x32a6bc('0xf8b')](_0x32a6bc('0x15b9')+_0x166f8e[_0x32a6bc('0x10e1')][_0x32a6bc('0x543')]+_0x32a6bc('0xcb4')+_0x32a6bc('0xd23'))['ariaLabel'](_0x32a6bc('0x11fd'))[_0x32a6bc('0x21de')](_0x5f5023)['ok']('OK')[_0x32a6bc('0x1e1f')](_0x32a6bc('0x468'));_0x86f826['show'](_0x7cc589)[_0x32a6bc('0x173b')](function(){const _0x3b751e=_0x32a6bc;_0x166f8e[_0x3b751e('0x10e1')][_0x3b751e('0xa6a')](function(_0x570230){_0xb7e1e2(_0x570230);}),_0x166f8e['selectedDescriptions']=[];});}_0x166f8e['selectedFields']=[],_0x166f8e[_0x43fc8b('0xbb7')]=_0xb06392,_0x166f8e[_0x43fc8b('0x218b')]=_0x2fc89,_0x166f8e['deleteSelectedFields']=_0x15b8c0;function _0xb06392(_0x3f5d56,_0x136336){const _0x1fca3b=_0x43fc8b;_0x86f826[_0x1fca3b('0x1cb7')]({'controller':_0x1fca3b('0x1fd0'),'controllerAs':'vm','templateUrl':_0x125e0d,'parent':angular['element'](_0x3bb116['body']),'targetEvent':_0x3f5d56,'clickOutsideToClose':!![],'locals':{'type':_0x1fca3b('0x81d'),'item':_0x136336,'items':_0x166f8e[_0x1fca3b('0x2340')],'configuration':_0x166f8e['freshdeskConfiguration'],'account':_0x166f8e[_0x1fca3b('0x22a2')],'license':null,'setting':null,'crudPermissions':_0x166f8e[_0x1fca3b('0x1dc1')]}});}function _0x3710b7(_0x51309b){const _0x4e9c98=_0x43fc8b;_0x36542f[_0x4e9c98('0x1572')][_0x4e9c98('0x15e8')]({'id':_0x51309b['id']})[_0x4e9c98('0x1964')][_0x4e9c98('0x173b')](function(){const _0x920de3=_0x4e9c98;_0x3c8d8a()[_0x920de3('0x1a8b')](_0x166f8e[_0x920de3('0x2340')],{'id':_0x51309b['id']}),_0x3a7205[_0x920de3('0xdfe')]({'title':_0x920de3('0x2262'),'msg':_0x920de3('0x1063')});})[_0x4e9c98('0x103c')](function(_0x9132e0){const _0x312e24=_0x4e9c98;_0x3a7205[_0x312e24('0x15aa')]({'title':_0x9132e0[_0x312e24('0x276f')]?_0x312e24('0x137')+_0x9132e0[_0x312e24('0x276f')]+_0x312e24('0x160c')+_0x9132e0[_0x312e24('0x2696')]:_0x312e24('0x1400'),'msg':_0x9132e0['data']?JSON['stringify'](_0x9132e0['data']):_0x9132e0['toString']()});});}function _0x2fc89(_0xcd2350,_0x31f167){const _0x16b9fb=_0x43fc8b,_0x222c0f=_0x86f826[_0x16b9fb('0x1d02')]()[_0x16b9fb('0x20d6')](_0x16b9fb('0x985'))[_0x16b9fb('0xf8b')](_0x16b9fb('0x1cf')+_0x16b9fb('0xd23'))[_0x16b9fb('0x217')](_0x16b9fb('0x1b20'))[_0x16b9fb('0x21de')](_0xcd2350)['ok']('OK')[_0x16b9fb('0x1e1f')](_0x16b9fb('0x468'));_0x86f826[_0x16b9fb('0x1cb7')](_0x222c0f)[_0x16b9fb('0x173b')](function(){_0x3710b7(_0x31f167);},function(){const _0x17edc4=_0x16b9fb;console['log'](_0x17edc4('0x468'));});}function _0x15b8c0(_0x57450a){const _0x1a15a6=_0x43fc8b,_0x58c833=_0x86f826[_0x1a15a6('0x1d02')]()[_0x1a15a6('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x1a15a6('0xf8b')](_0x1a15a6('0x15b9')+_0x166f8e[_0x1a15a6('0x86d')][_0x1a15a6('0x543')]+_0x1a15a6('0xcb4')+'\x20will\x20be\x20deleted.')[_0x1a15a6('0x217')](_0x1a15a6('0xbaf'))[_0x1a15a6('0x21de')](_0x57450a)['ok']('OK')[_0x1a15a6('0x1e1f')]('CANCEL');_0x86f826[_0x1a15a6('0x1cb7')](_0x58c833)[_0x1a15a6('0x173b')](function(){const _0xd777da=_0x1a15a6;_0x166f8e[_0xd777da('0x86d')][_0xd777da('0xa6a')](function(_0x3af7d9){_0x3710b7(_0x3af7d9);}),_0x166f8e[_0xd777da('0x86d')]=[];});}}const _0x22f552=_0x3e1d9b;_0x4212ef['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x294'),'freshdeskConfiguration',_0x566993('0xbd4'),_0x566993('0x1600'),'license','setting','crudPermissions'];function _0x4212ef(_0x5e7fcf,_0x50b380,_0x34fc29,_0x410773,_0x1c518a,_0x424bc3,_0x366401,_0x3c714f,_0x3ffedc,_0x1d53d3,_0x4c1116,_0x47184d,_0x5373d9,_0x50a94c){const _0x1a0d6e=_0x566993,_0x2ecaa0=this;_0x2ecaa0['currentUser']=_0x4c1116[_0x1a0d6e('0x14d4')](),_0x2ecaa0[_0x1a0d6e('0x1d4a')]=[],_0x2ecaa0['setting']=_0x5373d9,_0x2ecaa0[_0x1a0d6e('0x1a29')]=_0x47184d,_0x2ecaa0[_0x1a0d6e('0x1dc1')]=_0x50a94c,_0x2ecaa0[_0x1a0d6e('0xb0')]={},_0x2ecaa0[_0x1a0d6e('0x644')]=_0x2ecaa0[_0x1a0d6e('0x251')]&&_0x2ecaa0['setting'][_0x1a0d6e('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ecaa0[_0x1a0d6e('0x20d6')]='INTEGRATIONS.EDIT_FRESHDESKCONFIGURATION',_0x2ecaa0[_0x1a0d6e('0x1750')]=angular[_0x1a0d6e('0x2e3')](_0x3ffedc),_0x2ecaa0[_0x1a0d6e('0x294')]=_0x3c714f,_0x2ecaa0[_0x1a0d6e('0x1356')]=![];!_0x2ecaa0[_0x1a0d6e('0x1750')]&&(_0x2ecaa0[_0x1a0d6e('0x1750')]={'channel':_0x1a0d6e('0x21a8'),'type':_0x1a0d6e('0x1755')},_0x2ecaa0[_0x1a0d6e('0x20d6')]='INTEGRATIONS.NEW_FRESHDESKCONFIGURATION',_0x2ecaa0[_0x1a0d6e('0x1356')]=!![]);_0x2ecaa0['addNewFreshdeskConfiguration']=_0x4cb6bc,_0x2ecaa0['saveFreshdeskConfiguration']=_0x23cdb8,_0x2ecaa0[_0x1a0d6e('0x64d')]=_0x322aa1,_0x2ecaa0[_0x1a0d6e('0x11ae')]=_0x3335cd,_0x2ecaa0[_0x1a0d6e('0x18e2')]=_0x379b76;function _0x4cb6bc(){const _0x56bd19=_0x1a0d6e;_0x2ecaa0['errors']=[],_0x1d53d3[_0x56bd19('0x45d')][_0x56bd19('0x795')]({'id':_0x50b380[_0x56bd19('0x197a')]['id']},_0x2ecaa0['freshdeskConfiguration'])[_0x56bd19('0x1964')]['then'](function(_0x9a8f0c){const _0x5f47bf=_0x56bd19;_0x2ecaa0[_0x5f47bf('0x294')][_0x5f47bf('0x1377')](_0x9a8f0c[_0x5f47bf('0xf1f')]()),_0x366401['success']({'title':_0x5f47bf('0xc47'),'msg':_0x2ecaa0[_0x5f47bf('0x1750')][_0x5f47bf('0x10ad')]?_0x2ecaa0[_0x5f47bf('0x1750')]['name']+_0x5f47bf('0x209a'):''}),_0x379b76(_0x9a8f0c);})[_0x56bd19('0x103c')](function(_0x32a6c6){const _0x160f9d=_0x56bd19;if(_0x32a6c6[_0x160f9d('0x1e07')]&&_0x32a6c6['data'][_0x160f9d('0x1d4a')]&&_0x32a6c6[_0x160f9d('0x1e07')][_0x160f9d('0x1d4a')][_0x160f9d('0x543')]){_0x2ecaa0[_0x160f9d('0x1d4a')]=_0x32a6c6['data']['errors']||[{'message':_0x32a6c6[_0x160f9d('0x1b75')](),'type':_0x160f9d('0x2807')}];for(let _0x2cf193=0x0;_0x2cf193<_0x32a6c6[_0x160f9d('0x1e07')]['errors'][_0x160f9d('0x543')];_0x2cf193+=0x1){_0x366401[_0x160f9d('0x15aa')]({'title':_0x32a6c6[_0x160f9d('0x1e07')][_0x160f9d('0x1d4a')][_0x2cf193][_0x160f9d('0x1810')],'msg':_0x32a6c6[_0x160f9d('0x1e07')]['errors'][_0x2cf193][_0x160f9d('0x67f')]});}}else _0x366401[_0x160f9d('0x15aa')]({'title':_0x32a6c6['status']?'API:'+_0x32a6c6[_0x160f9d('0x276f')]+'\x20-\x20'+_0x32a6c6[_0x160f9d('0x2696')]:_0x160f9d('0x2807'),'msg':_0x32a6c6[_0x160f9d('0x1e07')]?JSON[_0x160f9d('0x100b')](_0x32a6c6[_0x160f9d('0x1e07')]['message']):_0x32a6c6[_0x160f9d('0x1b75')]()});});}function _0x23cdb8(){const _0x2c7fe8=_0x1a0d6e;_0x2ecaa0[_0x2c7fe8('0x1d4a')]=[],_0x1d53d3[_0x2c7fe8('0x12b0')][_0x2c7fe8('0x1842')]({'id':_0x2ecaa0['freshdeskConfiguration']['id']},_0x2ecaa0[_0x2c7fe8('0x1750')])[_0x2c7fe8('0x1964')][_0x2c7fe8('0x173b')](function(_0xf1bbb6){const _0x2e73d9=_0x2c7fe8,_0x375018=_0x3c8d8a()[_0x2e73d9('0x18ab')](_0x2ecaa0[_0x2e73d9('0x294')],{'id':_0xf1bbb6['id']});_0x375018&&_0x3c8d8a()[_0x2e73d9('0x9ef')](_0x375018,_0x3c8d8a()['pick'](_0xf1bbb6[_0x2e73d9('0xf1f')](),_0x3c8d8a()[_0x2e73d9('0x1d3e')](_0x375018))),_0x366401[_0x2e73d9('0xdfe')]({'title':_0x2e73d9('0x1199'),'msg':_0x2ecaa0[_0x2e73d9('0x1750')][_0x2e73d9('0x10ad')]?_0x2ecaa0['freshdeskConfiguration']['name']+_0x2e73d9('0x2788'):''}),_0x379b76(_0xf1bbb6);})[_0x2c7fe8('0x103c')](function(_0x9b9b21){const _0x45e1ac=_0x2c7fe8;if(_0x9b9b21[_0x45e1ac('0x1e07')]&&_0x9b9b21[_0x45e1ac('0x1e07')][_0x45e1ac('0x1d4a')]&&_0x9b9b21[_0x45e1ac('0x1e07')]['errors'][_0x45e1ac('0x543')]){_0x2ecaa0[_0x45e1ac('0x1d4a')]=_0x9b9b21[_0x45e1ac('0x1e07')]['errors']||[{'message':_0x9b9b21[_0x45e1ac('0x1b75')](),'type':_0x45e1ac('0x2412')}];for(let _0x242b84=0x0;_0x242b84<_0x9b9b21['data'][_0x45e1ac('0x1d4a')]['length'];_0x242b84++){_0x366401[_0x45e1ac('0x15aa')]({'title':_0x9b9b21[_0x45e1ac('0x1e07')][_0x45e1ac('0x1d4a')][_0x242b84]['type'],'msg':_0x9b9b21[_0x45e1ac('0x1e07')][_0x45e1ac('0x1d4a')][_0x242b84]['message']});}}else _0x366401[_0x45e1ac('0x15aa')]({'title':_0x9b9b21[_0x45e1ac('0x276f')]?_0x45e1ac('0x137')+_0x9b9b21[_0x45e1ac('0x276f')]+_0x45e1ac('0x160c')+_0x9b9b21['statusText']:_0x45e1ac('0x2412'),'msg':_0x9b9b21[_0x45e1ac('0x1e07')]?JSON[_0x45e1ac('0x100b')](_0x9b9b21['data']['message']):_0x9b9b21[_0x45e1ac('0x1b75')]()});});}function _0x322aa1(_0x51294a){const _0x49c763=_0x1a0d6e;_0x2ecaa0[_0x49c763('0x1d4a')]=[];const _0x2f41cb=_0x410773['confirm']()['title'](_0x49c763('0x8ef'))['content'](_0x49c763('0x78a'))['ariaLabel']('Delete\x20FreshdeskConfiguration')['ok'](_0x49c763('0x2373'))['cancel'](_0x49c763('0x1d4e'))[_0x49c763('0x21de')](_0x51294a);_0x410773[_0x49c763('0x1cb7')](_0x2f41cb)[_0x49c763('0x173b')](function(){const _0x1188a0=_0x49c763;_0x1d53d3[_0x1188a0('0x12b0')]['delete']({'id':_0x2ecaa0[_0x1188a0('0x1750')]['id']})[_0x1188a0('0x1964')][_0x1188a0('0x173b')](function(){const _0x3f92bc=_0x1188a0;_0x3c8d8a()['remove'](_0x2ecaa0['configurations'],{'id':_0x2ecaa0[_0x3f92bc('0x1750')]['id']}),_0x366401['success']({'title':_0x3f92bc('0x14da'),'msg':(_0x2ecaa0[_0x3f92bc('0x1750')]['name']||_0x3f92bc('0x1750'))+'\x20has\x20been\x20deleted!'}),_0x379b76(_0x2ecaa0[_0x3f92bc('0x1750')]);})[_0x1188a0('0x103c')](function(_0x4f2cdc){const _0x3dba90=_0x1188a0;if(_0x4f2cdc['data']&&_0x4f2cdc[_0x3dba90('0x1e07')][_0x3dba90('0x1d4a')]&&_0x4f2cdc['data']['errors'][_0x3dba90('0x543')]){_0x2ecaa0[_0x3dba90('0x1d4a')]=_0x4f2cdc[_0x3dba90('0x1e07')]['errors']||[{'message':_0x4f2cdc['toString'](),'type':'api.intFreshdeskConfiguration.delete'}];for(let _0x51955b=0x0;_0x51955b<_0x4f2cdc[_0x3dba90('0x1e07')][_0x3dba90('0x1d4a')][_0x3dba90('0x543')];_0x51955b++){_0x366401[_0x3dba90('0x15aa')]({'title':_0x4f2cdc[_0x3dba90('0x1e07')][_0x3dba90('0x1d4a')][_0x51955b][_0x3dba90('0x1810')],'msg':_0x4f2cdc['data'][_0x3dba90('0x1d4a')][_0x51955b]['message']});}}else _0x366401[_0x3dba90('0x15aa')]({'title':_0x4f2cdc[_0x3dba90('0x276f')]?'API:'+_0x4f2cdc[_0x3dba90('0x276f')]+_0x3dba90('0x160c')+_0x4f2cdc['statusText']:_0x3dba90('0xd4a'),'msg':_0x4f2cdc[_0x3dba90('0x1e07')]?JSON[_0x3dba90('0x100b')](_0x4f2cdc[_0x3dba90('0x1e07')]['message']):_0x4f2cdc[_0x3dba90('0x67f')]||_0x4f2cdc['toString']()});});},function(){});}function _0x3335cd(_0x323d65){return _0x323d65===null?undefined:new Date(_0x323d65);}function _0x379b76(_0x29cdd8){const _0x566327=_0x1a0d6e;_0x410773[_0x566327('0x1cf4')](_0x29cdd8);}}const _0xd3f3f8=_0x4212ef;_0xe05063[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1558'),'configuration',_0x566993('0x1b1f'),_0x566993('0x54'),'account',_0x566993('0x1810'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0xe05063(_0x5924d9,_0x3d8ac3,_0x4371e3,_0x3c94e9,_0x41700c,_0x32c0b3,_0x575afe,_0x477f70,_0x3c84df,_0x5840a8,_0x1c74bd,_0x263f83,_0x3dfa98){const _0x33ee97=_0x566993,_0x4b8f77=this;_0x4b8f77[_0x33ee97('0x155f')]=_0x263f83['getCurrentUser'](),_0x4b8f77['errors']=[],_0x4b8f77[_0x33ee97('0x20d6')]=_0x33ee97('0x3a0')+_0x3c8d8a()[_0x33ee97('0x160d')](_0x5840a8),_0x4b8f77[_0x33ee97('0x54')]=angular['copy'](_0x477f70),_0x4b8f77['items']=_0x575afe,_0x4b8f77[_0x33ee97('0x1810')]=_0x5840a8,_0x4b8f77[_0x33ee97('0x1dc1')]=_0x3dfa98,_0x4b8f77[_0x33ee97('0x7')]=![];!_0x4b8f77[_0x33ee97('0x54')]&&(_0x4b8f77[_0x33ee97('0x54')]={'type':_0x33ee97('0x1533')},_0x4b8f77[_0x33ee97('0x54')][_0x3c8d8a()['capitalize'](_0x5840a8)+'Id']=_0x32c0b3['id'],_0x4b8f77[_0x33ee97('0x20d6')]=_0x33ee97('0x99f')+_0x3c8d8a()[_0x33ee97('0x160d')](_0x5840a8),_0x4b8f77[_0x33ee97('0x7')]=!![]);_0x4b8f77['addNewItem']=_0x45d4da,_0x4b8f77[_0x33ee97('0x10e0')]=_0x4636cb,_0x4b8f77[_0x33ee97('0x2157')]=_0x52be72,_0x4b8f77[_0x33ee97('0x1188')]=_0x50c710,_0x4b8f77[_0x33ee97('0x18e2')]=_0x3b0cfe,_0x1c74bd[_0x33ee97('0x1b56')][_0x33ee97('0x1d97')]({'nolimit':!![]})[_0x33ee97('0x1964')]['then'](function(_0x20ef2d){const _0x5093c4=_0x33ee97;return _0x4b8f77[_0x5093c4('0x2715')]=_0x20ef2d[_0x5093c4('0x6aa')]?_0x20ef2d[_0x5093c4('0x6aa')]:[],_0x1c74bd['voiceAgentReport']['describe']()[_0x5093c4('0x1964')];})['then'](function(_0x192f6a){const _0x3379d9=_0x33ee97;return _0x4b8f77[_0x3379d9('0x1fe8')]=_0x3c8d8a()[_0x3379d9('0x1b31')](_0x3c8d8a()[_0x3379d9('0x1d3e')](_0x192f6a),[_0x3379d9('0x1964'),_0x3379d9('0x14ad'),_0x3379d9('0xda8'),_0x3379d9('0xad'),_0x3379d9('0x24b1')]),_0x4b8f77[_0x3379d9('0x1fe8')][_0x3379d9('0x18bb')](_0x3379d9('0x2313')),_0x1c74bd[_0x3379d9('0x242c')][_0x3379d9('0x2320')]()[_0x3379d9('0x1964')];})['then'](function(_0x5d8e78){const _0x581853=_0x33ee97;_0x4b8f77[_0x581853('0x20de')]=_0x3c8d8a()[_0x581853('0x1b31')](_0x3c8d8a()['keys'](_0x5d8e78),[_0x581853('0x1964'),_0x581853('0x14ad'),_0x581853('0xda8'),_0x581853('0xad'),_0x581853('0x24b1')]),_0x4b8f77[_0x581853('0x20de')][_0x581853('0x18bb')](_0x581853('0x2313'));})[_0x33ee97('0x103c')](function(_0x491120){const _0x426d03=_0x33ee97;_0x41700c[_0x426d03('0x15aa')]({'title':_0x491120[_0x426d03('0x276f')]?_0x426d03('0x137')+_0x491120[_0x426d03('0x276f')]+'\x20-\x20'+_0x491120[_0x426d03('0x2696')]:_0x426d03('0xaf3'),'msg':_0x491120[_0x426d03('0x1e07')]?JSON[_0x426d03('0x100b')](_0x491120[_0x426d03('0x1e07')]):_0x491120[_0x426d03('0x1b75')]()});}),_0x1c74bd[_0x33ee97('0x45d')][_0x33ee97('0x223b')]({'id':_0x3c84df['id'],'ticketType':_0x32c0b3[_0x33ee97('0x182')]?_0x32c0b3[_0x33ee97('0x182')]:undefined})[_0x33ee97('0x1964')]['then'](function(_0x5bbb5e){const _0x508683=_0x33ee97;_0x4b8f77[_0x508683('0x22ad')]=!![],_0x4b8f77[_0x508683('0x2340')]=_0x5bbb5e['rows']?_0x5bbb5e[_0x508683('0x6aa')]:[],_0x4b8f77[_0x508683('0x54')][_0x508683('0x1ee7')]&&(_0x4b8f77['customField']=_0x3c8d8a()[_0x508683('0x18ab')](_0x4b8f77[_0x508683('0x2340')],{'id':_0x4b8f77[_0x508683('0x54')][_0x508683('0x1ee7')]}));})['catch'](function(_0x252b06){const _0x41d24e=_0x33ee97;_0x4b8f77[_0x41d24e('0x22ad')]=![],console[_0x41d24e('0x15aa')](_0x252b06);});function _0x45d4da(){const _0x1b5e71=_0x33ee97;_0x4b8f77[_0x1b5e71('0x1d4a')]=[],_0x4b8f77[_0x1b5e71('0x894')]&&(_0x4b8f77[_0x1b5e71('0x54')][_0x1b5e71('0x1ee7')]=_0x4b8f77[_0x1b5e71('0x894')]['id'],_0x4b8f77[_0x1b5e71('0x54')][_0x1b5e71('0x194d')]=_0x4b8f77[_0x1b5e71('0x894')][_0x1b5e71('0x10ad')],_0x4b8f77[_0x1b5e71('0x54')][_0x1b5e71('0x894')]=_0x4b8f77[_0x1b5e71('0x894')]['custom']),_0x1c74bd[_0x1b5e71('0x1572')][_0x1b5e71('0x1195')](_0x4b8f77[_0x1b5e71('0x54')])[_0x1b5e71('0x1964')][_0x1b5e71('0x173b')](function(_0x21cba4){const _0x2379bd=_0x1b5e71;_0x4b8f77['items'][_0x2379bd('0x1377')](_0x21cba4),_0x41700c['success']({'title':_0x3c8d8a()[_0x2379bd('0x587')](_0x5840a8)+_0x2379bd('0x348'),'msg':_0x3c8d8a()[_0x2379bd('0x587')](_0x5840a8)+_0x2379bd('0x209a')}),_0x3b0cfe();})[_0x1b5e71('0x103c')](function(_0x676aa0){const _0x36b342=_0x1b5e71;console[_0x36b342('0x15aa')](_0x676aa0),_0x4b8f77[_0x36b342('0x1d4a')]=_0x676aa0['data']['errors']||[{'message':_0x676aa0[_0x36b342('0x1b75')](),'type':_0x36b342('0x18e4')}];});}function _0x4636cb(){const _0x2ccc94=_0x33ee97;_0x4b8f77[_0x2ccc94('0x1d4a')]=[],_0x4b8f77['customField']&&(_0x4b8f77[_0x2ccc94('0x54')]['idField']=_0x4b8f77[_0x2ccc94('0x894')]['id'],_0x4b8f77['item'][_0x2ccc94('0x194d')]=_0x4b8f77[_0x2ccc94('0x894')][_0x2ccc94('0x10ad')],_0x4b8f77[_0x2ccc94('0x54')][_0x2ccc94('0x894')]=_0x4b8f77[_0x2ccc94('0x894')][_0x2ccc94('0xbb4')]),_0x1c74bd[_0x2ccc94('0x1572')][_0x2ccc94('0x1842')]({'id':_0x4b8f77[_0x2ccc94('0x54')]['id']},_0x4b8f77[_0x2ccc94('0x54')])[_0x2ccc94('0x1964')]['then'](function(_0x57ddec){const _0x5a5138=_0x2ccc94,_0x40c903=_0x3c8d8a()[_0x5a5138('0x18ab')](_0x4b8f77[_0x5a5138('0x1b1f')],{'id':_0x57ddec['id']});_0x40c903&&_0x3c8d8a()[_0x5a5138('0x9ef')](_0x40c903,_0x57ddec),_0x41700c['success']({'title':_0x3c8d8a()[_0x5a5138('0x587')](_0x5840a8)+_0x5a5138('0x10e9'),'msg':_0x3c8d8a()[_0x5a5138('0x587')](_0x5840a8)+_0x5a5138('0x2788')}),_0x3b0cfe();})[_0x2ccc94('0x103c')](function(_0x11c016){const _0x1c71db=_0x2ccc94;console[_0x1c71db('0x15aa')](_0x11c016),_0x4b8f77[_0x1c71db('0x1d4a')]=_0x11c016[_0x1c71db('0x1e07')]['errors']||[{'message':_0x11c016[_0x1c71db('0x1b75')](),'type':_0x1c71db('0x1c43')}];});}function _0x52be72(_0x57ef8b){const _0x22b6be=_0x33ee97;_0x4b8f77[_0x22b6be('0x1d4a')]=[];const _0x275c96=_0x3c94e9[_0x22b6be('0x1d02')]()['title'](_0x22b6be('0x8ef'))['content'](_0x22b6be('0x1aa5')+_0x5840a8+'\x20will\x20be\x20deleted.')[_0x22b6be('0x217')](_0x22b6be('0x133e')+_0x3c8d8a()[_0x22b6be('0x587')](_0x5840a8))['ok'](_0x22b6be('0x2373'))[_0x22b6be('0x1e1f')]('Cancel')[_0x22b6be('0x21de')](_0x57ef8b);_0x3c94e9[_0x22b6be('0x1cb7')](_0x275c96)['then'](function(){const _0x4db00a=_0x22b6be;_0x1c74bd[_0x4db00a('0x1572')]['delete']({'id':_0x4b8f77['item']['id']})[_0x4db00a('0x1964')][_0x4db00a('0x173b')](function(){const _0x29a29e=_0x4db00a;_0x3c8d8a()['remove'](_0x4b8f77[_0x29a29e('0x1b1f')],{'id':_0x4b8f77[_0x29a29e('0x54')]['id']}),_0x41700c[_0x29a29e('0xdfe')]({'title':_0x3c8d8a()[_0x29a29e('0x587')](_0x5840a8)+_0x29a29e('0xb5'),'msg':_0x3c8d8a()[_0x29a29e('0x587')](_0x5840a8)+'\x20has\x20been\x20deleted!'}),_0x3b0cfe();})['catch'](function(_0x3cd2fb){const _0x411b9f=_0x4db00a;console[_0x411b9f('0x15aa')](_0x3cd2fb),_0x4b8f77[_0x411b9f('0x1d4a')]=_0x3cd2fb[_0x411b9f('0x1e07')][_0x411b9f('0x1d4a')]||[{'message':_0x3cd2fb[_0x411b9f('0x1b75')](),'type':'api.item.delete'}];});},function(){});}function _0x50c710(){const _0x41354d=_0x33ee97;return _0x4b8f77[_0x41354d('0x54')]['variableName']!==undefined?_0x4b8f77['item']['variableName']:_0x41354d('0x1423');}function _0x3b0cfe(){_0x3c94e9['hide']();}}const _0x5cba02=_0xe05063;_0x3bfab4[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),'license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x22a2'),_0x566993('0x170e')];function _0x3bfab4(_0x4f670b,_0x119c0f,_0x39501e,_0x44a4ff,_0x534e17,_0xdee16e,_0x159dfe,_0x2696e3,_0x3f9e7e,_0x5a297e,_0x57023a,_0xdaadc0){const _0x299f6d=_0x566993,_0x494ce5=this;_0x494ce5['currentUser']=_0x5a297e[_0x299f6d('0x14d4')](),_0x494ce5[_0x299f6d('0x1a29')]=_0xdee16e,_0x494ce5[_0x299f6d('0x251')]=_0x159dfe,_0x494ce5['passwordPattern']=_0x494ce5[_0x299f6d('0x251')][_0x299f6d('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x494ce5[_0x299f6d('0x614')]=_0x119c0f[_0x299f6d('0x375')]()+_0x299f6d('0x122b')+_0x119c0f[_0x299f6d('0x4d1')](),_0x494ce5[_0x299f6d('0x22a2')]=_0x57023a||_0x4f670b[_0x299f6d('0x197a')][_0x299f6d('0x22a2')]||{},_0x494ce5[_0x299f6d('0x170e')]=_0xdaadc0&&_0xdaadc0[_0x299f6d('0x1a2f')]==0x1?_0xdaadc0[_0x299f6d('0x6aa')][0x0]:null,_0x494ce5[_0x299f6d('0x1dc1')]=_0x5a297e[_0x299f6d('0xde6')](_0x494ce5[_0x299f6d('0x170e')]?_0x494ce5[_0x299f6d('0x170e')]['crudPermissions']:null),_0x494ce5['hasModulePermissions']={},_0x494ce5[_0x299f6d('0xd5f')]=_0x4f670b[_0x299f6d('0x197a')]['tab']||0x0,_0x494ce5[_0x299f6d('0x5a4')]=_0x3f9e7e[_0x299f6d('0x2787')],_0x494ce5['gotoFreshdeskAccounts']=_0x46365d,_0x494ce5[_0x299f6d('0x167e')]=_0xe5f78a;function _0x46365d(){const _0x13188f=_0x299f6d;_0x4f670b['go'](_0x13188f('0x2796'),{},{'reload':_0x13188f('0x2796')});}function _0xe5f78a(){const _0x4bc034=_0x299f6d;_0x2696e3['intFreshdeskAccount'][_0x4bc034('0x1842')]({'id':_0x494ce5[_0x4bc034('0x22a2')]['id']},_0x494ce5[_0x4bc034('0x22a2')])[_0x4bc034('0x1964')]['then'](function(){const _0xfcd0ad=_0x4bc034;_0x3f9e7e[_0xfcd0ad('0xdfe')]({'title':_0xfcd0ad('0x2764'),'msg':_0x494ce5[_0xfcd0ad('0x22a2')][_0xfcd0ad('0x10ad')]?_0x494ce5[_0xfcd0ad('0x22a2')][_0xfcd0ad('0x10ad')]+_0xfcd0ad('0x1fd6'):''});})['catch'](function(_0x2aac44){const _0x573485=_0x4bc034;_0x3f9e7e[_0x573485('0x15aa')]({'title':_0x2aac44['status']?_0x573485('0x137')+_0x2aac44[_0x573485('0x276f')]+_0x573485('0x160c')+_0x2aac44['statusText']:'SYSTEM:GETintFreshdeskAccount','msg':_0x2aac44[_0x573485('0x1e07')]?JSON[_0x573485('0x100b')](_0x2aac44[_0x573485('0x1e07')]):_0x2aac44['toString']()});});}}const _0x56b0e7=_0x3bfab4,_0x4b46bd=_0x21a6a1['p']+_0x566993('0x21f6');_0x596885[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x17db'),_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0x1f9'),_0x566993('0x1558'),'Auth','license',_0x566993('0x251')];function _0x596885(_0xa687fa,_0x5c3f93,_0x17d542,_0x50e387,_0x4e3b8a,_0x5b4ab2,_0x457b4f,_0x380eb7,_0x95fadb,_0x1e07d1,_0x31b495,_0x1e4320,_0x588e7d,_0x757804,_0x37d77d,_0x3a720c,_0x53d978){const _0x51654b=_0x566993,_0x387a97=this;_0x387a97[_0x51654b('0x1a29')]=_0x3a720c,_0x387a97[_0x51654b('0x251')]=_0x53d978,_0x387a97['currentUser']=_0x37d77d[_0x51654b('0x14d4')](),_0x387a97['freshdeskAccounts']=_0x95fadb||{'count':0x0,'rows':[]},_0x387a97[_0x51654b('0x257b')]=_0x1e07d1,_0x387a97[_0x51654b('0x170e')]=_0x31b495&&_0x31b495[_0x51654b('0x1a2f')]==0x1?_0x31b495['rows'][0x0]:null,_0x387a97[_0x51654b('0x1dc1')]=_0x37d77d['parseCrudPermissions'](_0x387a97[_0x51654b('0x170e')]?_0x387a97[_0x51654b('0x170e')][_0x51654b('0x1dc1')]:null),_0x387a97[_0x51654b('0xdf9')]=_0x51654b('0x17db'),_0x387a97[_0x51654b('0x14d6')]='',_0x387a97[_0x51654b('0x2303')]=null,_0x387a97[_0x51654b('0x1b36')]=[],_0x387a97['query']={'fields':_0x51654b('0x26ae'),'limit':0xa,'page':0x1},_0x387a97['editstate']=_0x1220a3,_0x387a97[_0x51654b('0x1f58')]=_0x57e43a,_0x387a97[_0x51654b('0x1a20')]=_0x10a8c1,_0x387a97['success']=_0x421526,_0x387a97[_0x51654b('0x16fe')]=_0x29c25c,_0x387a97[_0x51654b('0x1a5d')]=_0x1e9584,_0x387a97[_0x51654b('0x1efa')]=_0x59b8c0,_0x387a97[_0x51654b('0x264c')]=_0x19052d,_0x387a97[_0x51654b('0x1e45')]=_0x26818a,_0x387a97[_0x51654b('0x2eb')]=_0x5beb33,_0x387a97[_0x51654b('0x18ff')]=_0x3cf4f9;function _0x1220a3(_0xa49f6f){const _0xfa97d9=_0x51654b;_0x17d542['go']('app.integrations.freshdeskAccounts.edit',{'id':_0xa49f6f['id'],'freshdeskAccount':_0xa49f6f,'crudPermissions':_0x387a97[_0xfa97d9('0x1dc1')]});}function _0x57e43a(_0x519864){const _0x3fdcb4=_0x51654b;return _0x1e4320['intFreshdeskAccount'][_0x3fdcb4('0x223b')]({'id':_0x519864['id'],'test':!![]})[_0x3fdcb4('0x1964')][_0x3fdcb4('0x173b')](function(){const _0x20dce9=_0x3fdcb4;_0x757804[_0x20dce9('0xdfe')]({'title':_0x20dce9('0x17a5'),'msg':_0x20dce9('0x13fe')});})[_0x3fdcb4('0x103c')](function(_0x550025){const _0x3532e8=_0x3fdcb4;_0x757804[_0x3532e8('0x15aa')]({'title':_0x3532e8('0x17a5'),'msg':_0x550025[_0x3532e8('0x1e07')]?_0x550025[_0x3532e8('0x1e07')][_0x3532e8('0x67f')]?_0x550025[_0x3532e8('0x1e07')]['message']:JSON[_0x3532e8('0x100b')](_0x550025[_0x3532e8('0x1e07')]):_0x550025['toString']()});});}function _0x10a8c1(_0x43744d,_0x1ff86b){const _0x12108b=_0x51654b,_0x37005c=_0x4e3b8a['confirm']()[_0x12108b('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x12108b('0x10e')](_0x12108b('0x22a2'))+'?')[_0x12108b('0xf8b')](_0x12108b('0x15b9')+(_0x43744d[_0x12108b('0x10ad')]||_0x12108b('0x22a2'))+_0x12108b('0x24be')+_0x12108b('0xd23'))['ariaLabel'](_0x12108b('0xff5'))[_0x12108b('0x21de')](_0x1ff86b)['ok']('OK')['cancel']('CANCEL');_0x4e3b8a[_0x12108b('0x1cb7')](_0x37005c)[_0x12108b('0x173b')](function(){_0x59b8c0(_0x43744d);},function(){const _0x49b144=_0x12108b;console['log'](_0x49b144('0x468'));});}let _0xd1d5b6=!![],_0x53c64b=0x1;_0xa687fa['$watch'](_0x51654b('0x157b'),function(_0x216afe,_0x5cda8d){const _0x44cca3=_0x51654b;_0xd1d5b6?_0x457b4f(function(){_0xd1d5b6=![];}):(!_0x5cda8d&&(_0x53c64b=_0x387a97['query'][_0x44cca3('0x182e')]),_0x216afe!==_0x5cda8d&&(_0x387a97[_0x44cca3('0xc49')]['page']=0x1),!_0x216afe&&(_0x387a97[_0x44cca3('0xc49')][_0x44cca3('0x182e')]=_0x53c64b),_0x387a97[_0x44cca3('0x16fe')]());});function _0x421526(_0x2e27){const _0x462ab0=_0x51654b;_0x387a97[_0x462ab0('0x17db')]=_0x2e27||{'count':0x0,'rows':[]};}function _0x29c25c(){const _0x2370ec=_0x51654b;_0x387a97[_0x2370ec('0xc49')][_0x2370ec('0x17f0')]=(_0x387a97[_0x2370ec('0xc49')][_0x2370ec('0x182e')]-0x1)*_0x387a97[_0x2370ec('0xc49')][_0x2370ec('0x3e')],_0x37d77d[_0x2370ec('0x1b4e')](_0x2370ec('0x79b'))?_0x387a97[_0x2370ec('0x2219')]=_0x1e4320[_0x2370ec('0x45d')]['get'](_0x387a97['query'],_0x421526)[_0x2370ec('0x1964')]:(_0x387a97['query']['id']=_0x387a97[_0x2370ec('0x257b')]['id'],_0x387a97[_0x2370ec('0xc49')]['section']='FreshdeskAccounts',_0x387a97[_0x2370ec('0x2219')]=_0x1e4320[_0x2370ec('0x257b')][_0x2370ec('0x135b')](_0x387a97['query'],_0x421526)['$promise']);}function _0x1e9584(_0x25cb08,_0x5ba924){const _0x3eafb5=_0x51654b;_0x4e3b8a[_0x3eafb5('0x1cb7')]({'controller':'CreateOrEditFreshdeskAccountDialogController','controllerAs':'vm','templateUrl':_0x4b46bd,'parent':angular['element'](_0x5b4ab2[_0x3eafb5('0x1a5')]),'targetEvent':_0x25cb08,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x5ba924,'freshdeskAccounts':_0x387a97[_0x3eafb5('0x17db')][_0x3eafb5('0x6aa')],'license':_0x387a97['license'],'setting':_0x387a97['setting'],'crudPermissions':_0x387a97[_0x3eafb5('0x1dc1')]}});}function _0x59b8c0(_0x404b67){const _0x3c1bdb=_0x51654b;_0x1e4320[_0x3c1bdb('0x45d')][_0x3c1bdb('0x15e8')]({'id':_0x404b67['id']})[_0x3c1bdb('0x1964')][_0x3c1bdb('0x173b')](function(){const _0x3db2e8=_0x3c1bdb;_0x3c8d8a()['remove'](_0x387a97[_0x3db2e8('0x17db')][_0x3db2e8('0x6aa')],{'id':_0x404b67['id']}),_0x387a97[_0x3db2e8('0x17db')]['count']-=0x1,!_0x387a97[_0x3db2e8('0x17db')][_0x3db2e8('0x6aa')][_0x3db2e8('0x543')]&&_0x387a97[_0x3db2e8('0x16fe')](),_0x757804['success']({'title':_0x3c8d8a()[_0x3db2e8('0x10e')]('FreshdeskAccount')+_0x3db2e8('0x1c5e'),'msg':_0x404b67[_0x3db2e8('0x10ad')]?_0x404b67[_0x3db2e8('0x10ad')]+_0x3db2e8('0x25d2'):''});})[_0x3c1bdb('0x103c')](function(_0x9178d2){const _0x2bfb32=_0x3c1bdb;if(_0x9178d2['data']&&_0x9178d2[_0x2bfb32('0x1e07')][_0x2bfb32('0x1d4a')]&&_0x9178d2['data'][_0x2bfb32('0x1d4a')][_0x2bfb32('0x543')]){_0x387a97[_0x2bfb32('0x1d4a')]=_0x9178d2['data']['errors']||[{'message':_0x9178d2[_0x2bfb32('0x1b75')](),'type':_0x2bfb32('0xe18')}];for(let _0x22635b=0x0;_0x22635b<_0x9178d2[_0x2bfb32('0x1e07')]['errors'][_0x2bfb32('0x543')];_0x22635b++){_0x757804[_0x2bfb32('0x15aa')]({'title':_0x9178d2[_0x2bfb32('0x1e07')]['errors'][_0x22635b][_0x2bfb32('0x1810')],'msg':_0x9178d2[_0x2bfb32('0x1e07')]['errors'][_0x22635b][_0x2bfb32('0x67f')]});}}else _0x757804[_0x2bfb32('0x15aa')]({'title':_0x9178d2[_0x2bfb32('0x276f')]?_0x2bfb32('0x137')+_0x9178d2['status']+_0x2bfb32('0x160c')+_0x9178d2[_0x2bfb32('0x2696')]:_0x2bfb32('0xe18'),'msg':_0x9178d2[_0x2bfb32('0x1e07')]?JSON[_0x2bfb32('0x100b')](_0x9178d2[_0x2bfb32('0x1e07')][_0x2bfb32('0x67f')]):_0x9178d2[_0x2bfb32('0x67f')]||_0x9178d2[_0x2bfb32('0x1b75')]()});});}function _0x19052d(){const _0x1c90a3=_0x51654b,_0x282ae7=angular[_0x1c90a3('0x2e3')](_0x387a97[_0x1c90a3('0x1b36')]);return _0x387a97[_0x1c90a3('0x1b36')]=[],_0x282ae7;}function _0x26818a(_0xf51d3a){const _0x4ef4c8=_0x51654b,_0x3ff52d=_0x4e3b8a[_0x4ef4c8('0x1d02')]()[_0x4ef4c8('0x20d6')](_0x4ef4c8('0x1bae'))[_0x4ef4c8('0xf8b')](''+_0x387a97[_0x4ef4c8('0x1b36')]['length']+'\x20selected'+_0x4ef4c8('0xd23'))[_0x4ef4c8('0x217')](_0x4ef4c8('0x16fd'))[_0x4ef4c8('0x21de')](_0xf51d3a)['ok']('OK')[_0x4ef4c8('0x1e1f')](_0x4ef4c8('0x468'));_0x4e3b8a['show'](_0x3ff52d)['then'](function(){const _0x2932ac=_0x4ef4c8;_0x387a97[_0x2932ac('0x1b36')]['forEach'](function(_0x72edc8){_0x59b8c0(_0x72edc8);}),_0x387a97['selectedFreshdeskAccounts']=[];});}function _0x5beb33(){const _0x43b3de=_0x51654b;_0x387a97[_0x43b3de('0x1b36')]=[];}function _0x3cf4f9(){const _0xfd607b=_0x51654b;_0x387a97[_0xfd607b('0x1b36')]=_0x387a97[_0xfd607b('0x17db')][_0xfd607b('0x6aa')];}}const _0x3d64f7=_0x596885;_0x36d338[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x3b8'),_0x566993('0xdb5'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x36d338(_0x2456cb,_0x13ee48,_0x4c6009,_0x48f0a0,_0x4ffb4b,_0xa86773,_0x45422a,_0x4131ab,_0x350b08,_0x471282,_0x4e2df1,_0x4883ee,_0x1d8289,_0x5756f9){const _0x2e93d5=_0x566993,_0x4a393e=this;_0x4a393e[_0x2e93d5('0x155f')]=_0x4e2df1[_0x2e93d5('0x14d4')](),_0x4a393e[_0x2e93d5('0x1d4a')]=[],_0x4a393e[_0x2e93d5('0x251')]=_0x1d8289,_0x4a393e[_0x2e93d5('0x1a29')]=_0x4883ee,_0x4a393e[_0x2e93d5('0x1dc1')]=_0x5756f9,_0x4a393e['hasModulePermissions']={},_0x4a393e[_0x2e93d5('0x644')]=_0x4a393e[_0x2e93d5('0x251')]&&_0x4a393e[_0x2e93d5('0x251')][_0x2e93d5('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a393e['title']=_0x2e93d5('0x4ac'),_0x4a393e[_0x2e93d5('0xdb5')]=angular[_0x2e93d5('0x2e3')](_0x350b08),_0x4a393e[_0x2e93d5('0x3b8')]=_0x4131ab,_0x4a393e['newFreshsalesAccount']=![];!_0x4a393e[_0x2e93d5('0xdb5')]&&(_0x4a393e[_0x2e93d5('0xdb5')]={'serverUrl':_0x4c6009[_0x2e93d5('0x375')]()+'://'+_0x4c6009[_0x2e93d5('0x4d1')]()+(_0x4c6009[_0x2e93d5('0xe0d')]()?':'+_0x4c6009[_0x2e93d5('0xe0d')]():'')},_0x4a393e[_0x2e93d5('0x20d6')]='INTEGRATIONS.NEW_FRESHSALESACCOUNT',_0x4a393e[_0x2e93d5('0x18af')]=!![]);_0x4a393e[_0x2e93d5('0x18a4')]=_0x5995de,_0x4a393e[_0x2e93d5('0x7d1')]=_0x2575d4,_0x4a393e[_0x2e93d5('0x865')]=_0x40ad1f,_0x4a393e[_0x2e93d5('0x11ae')]=_0x29aa5a,_0x4a393e[_0x2e93d5('0x18e2')]=_0x1f8370;function _0x5995de(){const _0x4b026a=_0x2e93d5;_0x4a393e[_0x4b026a('0x1d4a')]=[],_0x471282[_0x4b026a('0x1323')][_0x4b026a('0x1195')](_0x4a393e[_0x4b026a('0xdb5')])[_0x4b026a('0x1964')][_0x4b026a('0x173b')](function(_0x54b630){const _0x2b6549=_0x4b026a;_0x4a393e[_0x2b6549('0x3b8')][_0x2b6549('0x1377')](_0x54b630[_0x2b6549('0xf1f')]()),_0x45422a[_0x2b6549('0xdfe')]({'title':_0x2b6549('0xe79'),'msg':_0x4a393e[_0x2b6549('0xdb5')]['name']?_0x4a393e[_0x2b6549('0xdb5')][_0x2b6549('0x10ad')]+_0x2b6549('0x209a'):''}),_0x1f8370(_0x54b630);})[_0x4b026a('0x103c')](function(_0x4e1a1e){const _0x13c812=_0x4b026a;if(_0x4e1a1e[_0x13c812('0x1e07')]&&_0x4e1a1e[_0x13c812('0x1e07')]['errors']&&_0x4e1a1e[_0x13c812('0x1e07')]['errors'][_0x13c812('0x543')]){_0x4a393e[_0x13c812('0x1d4a')]=_0x4e1a1e[_0x13c812('0x1e07')][_0x13c812('0x1d4a')]||[{'message':_0x4e1a1e['toString'](),'type':_0x13c812('0x1bfe')}];for(let _0x309dce=0x0;_0x309dce<_0x4e1a1e[_0x13c812('0x1e07')][_0x13c812('0x1d4a')][_0x13c812('0x543')];_0x309dce+=0x1){_0x45422a[_0x13c812('0x15aa')]({'title':_0x4e1a1e[_0x13c812('0x1e07')][_0x13c812('0x1d4a')][_0x309dce]['type'],'msg':_0x4e1a1e[_0x13c812('0x1e07')]['errors'][_0x309dce][_0x13c812('0x67f')]});}}else _0x45422a[_0x13c812('0x15aa')]({'title':_0x4e1a1e[_0x13c812('0x276f')]?'API:'+_0x4e1a1e[_0x13c812('0x276f')]+_0x13c812('0x160c')+_0x4e1a1e[_0x13c812('0x2696')]:_0x13c812('0x1bfe'),'msg':_0x4e1a1e[_0x13c812('0x1e07')]?JSON[_0x13c812('0x100b')](_0x4e1a1e[_0x13c812('0x1e07')][_0x13c812('0x67f')]):_0x4e1a1e[_0x13c812('0x1b75')]()});});}function _0x2575d4(){const _0x349709=_0x2e93d5;_0x4a393e[_0x349709('0x1d4a')]=[],_0x471282['intFreshsalesAccount']['update']({'id':_0x4a393e[_0x349709('0xdb5')]['id']},_0x4a393e['freshsalesAccount'])[_0x349709('0x1964')][_0x349709('0x173b')](function(_0x2a0922){const _0x15c44b=_0x349709,_0x320910=_0x3c8d8a()['find'](_0x4a393e[_0x15c44b('0x3b8')],{'id':_0x2a0922['id']});_0x320910&&_0x3c8d8a()[_0x15c44b('0x9ef')](_0x320910,_0x3c8d8a()[_0x15c44b('0x2114')](_0x2a0922[_0x15c44b('0xf1f')](),_0x3c8d8a()['keys'](_0x320910))),_0x45422a[_0x15c44b('0xdfe')]({'title':_0x15c44b('0x224d'),'msg':_0x4a393e[_0x15c44b('0xdb5')]['name']?_0x4a393e[_0x15c44b('0xdb5')][_0x15c44b('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x1f8370(_0x2a0922);})['catch'](function(_0x39876e){const _0x3b04b5=_0x349709;if(_0x39876e[_0x3b04b5('0x1e07')]&&_0x39876e[_0x3b04b5('0x1e07')]['errors']&&_0x39876e['data'][_0x3b04b5('0x1d4a')][_0x3b04b5('0x543')]){_0x4a393e['errors']=_0x39876e[_0x3b04b5('0x1e07')][_0x3b04b5('0x1d4a')]||[{'message':_0x39876e[_0x3b04b5('0x1b75')](),'type':_0x3b04b5('0x270f')}];for(let _0x2a08fc=0x0;_0x2a08fc<_0x39876e[_0x3b04b5('0x1e07')][_0x3b04b5('0x1d4a')]['length'];_0x2a08fc++){_0x45422a[_0x3b04b5('0x15aa')]({'title':_0x39876e[_0x3b04b5('0x1e07')][_0x3b04b5('0x1d4a')][_0x2a08fc]['type'],'msg':_0x39876e[_0x3b04b5('0x1e07')][_0x3b04b5('0x1d4a')][_0x2a08fc][_0x3b04b5('0x67f')]});}}else _0x45422a[_0x3b04b5('0x15aa')]({'title':_0x39876e[_0x3b04b5('0x276f')]?_0x3b04b5('0x137')+_0x39876e[_0x3b04b5('0x276f')]+_0x3b04b5('0x160c')+_0x39876e['statusText']:_0x3b04b5('0x270f'),'msg':_0x39876e[_0x3b04b5('0x1e07')]?JSON['stringify'](_0x39876e[_0x3b04b5('0x1e07')]['message']):_0x39876e[_0x3b04b5('0x1b75')]()});});}function _0x40ad1f(_0x272cb3){const _0x21aa72=_0x2e93d5;_0x4a393e[_0x21aa72('0x1d4a')]=[];const _0x14da0b=_0x48f0a0[_0x21aa72('0x1d02')]()[_0x21aa72('0x20d6')](_0x21aa72('0x8ef'))[_0x21aa72('0x732')](_0x21aa72('0x472'))[_0x21aa72('0x217')]('Delete\x20FreshsalesAccount')['ok'](_0x21aa72('0x2373'))[_0x21aa72('0x1e1f')](_0x21aa72('0x1d4e'))[_0x21aa72('0x21de')](_0x272cb3);_0x48f0a0[_0x21aa72('0x1cb7')](_0x14da0b)['then'](function(){const _0x1130ff=_0x21aa72;_0x471282[_0x1130ff('0x1323')][_0x1130ff('0x15e8')]({'id':_0x4a393e[_0x1130ff('0xdb5')]['id']})[_0x1130ff('0x1964')][_0x1130ff('0x173b')](function(){const _0x1df5e8=_0x1130ff;_0x3c8d8a()['remove'](_0x4a393e['freshsalesAccounts'],{'id':_0x4a393e[_0x1df5e8('0xdb5')]['id']}),_0x45422a[_0x1df5e8('0xdfe')]({'title':'FreshsalesAccount\x20properly\x20deleted!','msg':(_0x4a393e['freshsalesAccount'][_0x1df5e8('0x10ad')]||_0x1df5e8('0xdb5'))+_0x1df5e8('0x25d2')}),_0x1f8370(_0x4a393e[_0x1df5e8('0xdb5')]);})['catch'](function(_0x470d8c){const _0x33e4db=_0x1130ff;if(_0x470d8c[_0x33e4db('0x1e07')]&&_0x470d8c[_0x33e4db('0x1e07')]['errors']&&_0x470d8c[_0x33e4db('0x1e07')][_0x33e4db('0x1d4a')][_0x33e4db('0x543')]){_0x4a393e['errors']=_0x470d8c[_0x33e4db('0x1e07')][_0x33e4db('0x1d4a')]||[{'message':_0x470d8c[_0x33e4db('0x1b75')](),'type':'api.intFreshsalesAccount.delete'}];for(let _0x61e97a=0x0;_0x61e97a<_0x470d8c[_0x33e4db('0x1e07')]['errors'][_0x33e4db('0x543')];_0x61e97a++){_0x45422a[_0x33e4db('0x15aa')]({'title':_0x470d8c[_0x33e4db('0x1e07')]['errors'][_0x61e97a][_0x33e4db('0x1810')],'msg':_0x470d8c[_0x33e4db('0x1e07')][_0x33e4db('0x1d4a')][_0x61e97a][_0x33e4db('0x67f')]});}}else _0x45422a[_0x33e4db('0x15aa')]({'title':_0x470d8c[_0x33e4db('0x276f')]?_0x33e4db('0x137')+_0x470d8c[_0x33e4db('0x276f')]+'\x20-\x20'+_0x470d8c[_0x33e4db('0x2696')]:_0x33e4db('0x376'),'msg':_0x470d8c['data']?JSON['stringify'](_0x470d8c[_0x33e4db('0x1e07')][_0x33e4db('0x67f')]):_0x470d8c[_0x33e4db('0x67f')]||_0x470d8c[_0x33e4db('0x1b75')]()});});},function(){});}function _0x29aa5a(_0x25cc28){return _0x25cc28===null?undefined:new Date(_0x25cc28);}function _0x1f8370(_0x439fff){const _0x5f0553=_0x2e93d5;_0x48f0a0[_0x5f0553('0x1cf4')](_0x439fff);}}const _0x429bdf=_0x36d338,_0x2be817=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html/dialog.html',_0x48bd83=_0x21a6a1['p']+_0x566993('0x270c');_0x132c9c[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$document',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600')];function _0x132c9c(_0x42ec8b,_0x18f366,_0x32bf77,_0x5c605a,_0x35eb71){const _0x12dd86=_0x566993,_0x195f3f=this;_0x195f3f[_0x12dd86('0x155f')]=_0x35eb71[_0x12dd86('0x14d4')](),_0x195f3f[_0x12dd86('0xdb5')]={},_0x195f3f['freshsalesConfiguration']={},_0x195f3f['configurations']=[],_0x195f3f[_0x12dd86('0x17a1')]=-0x1,_0x195f3f[_0x12dd86('0x1dc1')],_0x195f3f[_0x12dd86('0xb9c')]=_0x3707d,_0x195f3f[_0x12dd86('0x477')]=_0x3089bb,_0x195f3f['createOrEditFreshsalesConfiguration']=_0x5d53f9,_0x195f3f[_0x12dd86('0xd1d')]=_0x5e4678;function _0x3707d(_0x16c86d,_0x1e2075){const _0x5615ea=_0x12dd86;_0x195f3f[_0x5615ea('0xdb5')]=_0x16c86d,_0x195f3f[_0x5615ea('0x1dc1')]=typeof _0x1e2075!==_0x5615ea('0x6e5')?_0x1e2075:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32bf77[_0x5615ea('0x1323')]['getConfigurations']({'id':_0x195f3f['freshsalesAccount']['id'],'sort':_0x5615ea('0x1769')})[_0x5615ea('0x1964')][_0x5615ea('0x173b')](function(_0x6bdd5f){const _0x120921=_0x5615ea;return _0x195f3f[_0x120921('0x294')]=_0x6bdd5f[_0x120921('0x6aa')]?_0x6bdd5f[_0x120921('0x6aa')]:[],_0x195f3f[_0x120921('0x294')][_0x120921('0x543')]&&_0x195f3f[_0x120921('0x477')](0x0),_0x32bf77[_0x120921('0x1b56')][_0x120921('0x1d97')]({'nolimit':!![],'sort':_0x120921('0x10ad')})[_0x120921('0x1964')];})[_0x5615ea('0x173b')](function(_0xaf2577){const _0x25717c=_0x5615ea;_0x195f3f['variables']=_0xaf2577[_0x25717c('0x6aa')]?_0xaf2577[_0x25717c('0x6aa')]:[],_0x195f3f[_0x25717c('0x17f8')]=_0x3c8d8a()['keyBy'](_0x195f3f[_0x25717c('0x2715')],'id');})[_0x5615ea('0x103c')](function(_0xdf80d3){const _0x1c9911=_0x5615ea;_0x5c605a['error']({'title':_0xdf80d3[_0x1c9911('0x276f')]?_0x1c9911('0x137')+_0xdf80d3[_0x1c9911('0x276f')]+_0x1c9911('0x160c')+_0xdf80d3[_0x1c9911('0x2696')]:_0x1c9911('0x125a'),'msg':_0xdf80d3[_0x1c9911('0x1e07')]?JSON[_0x1c9911('0x100b')](_0xdf80d3[_0x1c9911('0x1e07')]):_0xdf80d3['toString']()});});}function _0x3089bb(_0x2b834c){const _0x2dea7a=_0x12dd86;_0x195f3f[_0x2dea7a('0xcf6')]=_0x195f3f[_0x2dea7a('0x294')][_0x2b834c],_0x195f3f['selectedFreshsalesConfiguration']=_0x2b834c,_0x32bf77[_0x2dea7a('0x100a')][_0x2dea7a('0x717')]({'id':_0x195f3f['freshsalesConfiguration']['id']})[_0x2dea7a('0x1964')][_0x2dea7a('0x173b')](function(_0x1b2c96){const _0xe2f66d=_0x2dea7a;return _0x195f3f[_0xe2f66d('0x1b35')]=_0x1b2c96[_0xe2f66d('0x6aa')]?_0x1b2c96['rows']:[],_0x32bf77[_0xe2f66d('0x100a')][_0xe2f66d('0xb28')]({'id':_0x195f3f[_0xe2f66d('0xcf6')]['id']})[_0xe2f66d('0x1964')];})[_0x2dea7a('0x173b')](function(_0x2944c4){const _0x59bd8e=_0x2dea7a;return _0x195f3f[_0x59bd8e('0xb60')]=_0x2944c4[_0x59bd8e('0x6aa')]?_0x2944c4[_0x59bd8e('0x6aa')]:[],_0x32bf77['intFreshsalesConfiguration'][_0x59bd8e('0x223b')]({'id':_0x195f3f[_0x59bd8e('0xcf6')]['id']})['$promise'];})[_0x2dea7a('0x173b')](function(_0x333b3a){const _0x3f446f=_0x2dea7a;_0x195f3f[_0x3f446f('0x2340')]=_0x333b3a['rows']?_0x333b3a[_0x3f446f('0x6aa')]:[];})[_0x2dea7a('0x103c')](function(_0xd1b818){const _0x3ee7de=_0x2dea7a;_0x5c605a[_0x3ee7de('0x15aa')]({'title':_0xd1b818[_0x3ee7de('0x276f')]?'API:'+_0xd1b818[_0x3ee7de('0x276f')]+_0x3ee7de('0x160c')+_0xd1b818[_0x3ee7de('0x2696')]:_0x3ee7de('0x1d19'),'msg':_0xd1b818[_0x3ee7de('0x1e07')]?JSON[_0x3ee7de('0x100b')](_0xd1b818['data']):_0xd1b818[_0x3ee7de('0x1b75')]()});});}function _0x5d53f9(_0x2c10b0,_0x29942a){const _0x3ea298=_0x12dd86;_0x42ec8b['show']({'controller':_0x3ea298('0xc05'),'controllerAs':'vm','templateUrl':_0x2be817,'parent':angular[_0x3ea298('0xb6d')](_0x18f366['body']),'targetEvent':_0x2c10b0,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x29942a,'configurations':_0x195f3f[_0x3ea298('0x294')],'license':null,'setting':null,'crudPermissions':_0x195f3f[_0x3ea298('0x1dc1')]}})[_0x3ea298('0xf25')](function(){const _0x3acf01=_0x3ea298;_0x195f3f[_0x3acf01('0x477')](0x0);});}function _0x5e4678(_0x4bdf86,_0x3236af){const _0xc3b619=_0x12dd86,_0x4b7edc=_0x42ec8b[_0xc3b619('0x1d02')]()[_0xc3b619('0x20d6')](_0xc3b619('0x118e'))[_0xc3b619('0xf8b')](_0xc3b619('0x15b9')+(_0x3236af['name']||_0xc3b619('0xcf6'))+''+_0xc3b619('0xd23'))[_0xc3b619('0x217')]('delete\x20freshsalesConfiguration')[_0xc3b619('0x21de')](_0x4bdf86)['ok']('OK')[_0xc3b619('0x1e1f')]('CANCEL');_0x42ec8b[_0xc3b619('0x1cb7')](_0x4b7edc)[_0xc3b619('0x173b')](function(){const _0x193820=_0xc3b619;_0x32bf77[_0x193820('0x100a')]['delete']({'id':_0x3236af['id']})[_0x193820('0x1964')][_0x193820('0x173b')](function(){const _0x2bd002=_0x193820;_0x3c8d8a()['remove'](_0x195f3f[_0x2bd002('0x294')],{'id':_0x3236af['id']}),_0x5c605a['success']({'title':_0x2bd002('0x2147'),'msg':_0x3236af[_0x2bd002('0x10ad')]?_0x3236af['name']+_0x2bd002('0x25d2'):''});})['catch'](function(_0x136c61){const _0x2e386c=_0x193820;_0x5c605a[_0x2e386c('0x15aa')]({'title':_0x136c61[_0x2e386c('0x276f')]?_0x2e386c('0x137')+_0x136c61[_0x2e386c('0x276f')]+_0x2e386c('0x160c')+_0x136c61[_0x2e386c('0x2696')]:_0x2e386c('0x1d30'),'msg':_0x136c61['data']?JSON[_0x2e386c('0x100b')](_0x136c61[_0x2e386c('0x1e07')]):_0x136c61['toString']()});})[_0x193820('0xf25')](function(){const _0x4b79cc=_0x193820;_0x195f3f[_0x4b79cc('0x477')](0x0);});},function(){const _0x42f1d0=_0xc3b619;console[_0x42f1d0('0xe37')](_0x42f1d0('0x468'));});}_0x195f3f[_0x12dd86('0x276e')]=[],_0x195f3f[_0x12dd86('0x1317')]=_0x565afa,_0x195f3f['deleteSubjectConfirm']=_0x3ffd77,_0x195f3f[_0x12dd86('0x178c')]=_0x484730;function _0x565afa(_0x128182,_0x3fc321){const _0x37ac73=_0x12dd86;_0x42ec8b[_0x37ac73('0x1cb7')]({'controller':_0x37ac73('0x11ee'),'controllerAs':'vm','templateUrl':_0x48bd83,'parent':angular[_0x37ac73('0xb6d')](_0x18f366[_0x37ac73('0x1a5')]),'targetEvent':_0x128182,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x3fc321,'items':_0x195f3f[_0x37ac73('0x1b35')],'configuration':_0x195f3f['freshsalesConfiguration'],'account':_0x195f3f[_0x37ac73('0xdb5')],'license':null,'setting':null,'crudPermissions':_0x195f3f[_0x37ac73('0x1dc1')]}});}function _0x60ac21(_0x46167d){const _0x31587f=_0x12dd86;_0x32bf77[_0x31587f('0x1148')]['delete']({'id':_0x46167d['id']})['$promise'][_0x31587f('0x173b')](function(){const _0xfed6eb=_0x31587f;_0x3c8d8a()['remove'](_0x195f3f[_0xfed6eb('0x1b35')],{'id':_0x46167d['id']}),_0x5c605a[_0xfed6eb('0xdfe')]({'title':_0xfed6eb('0xa5e'),'msg':_0xfed6eb('0x213e')});})[_0x31587f('0x103c')](function(_0x11679d){const _0x165b00=_0x31587f;_0x5c605a[_0x165b00('0x15aa')]({'title':_0x11679d['status']?_0x165b00('0x137')+_0x11679d[_0x165b00('0x276f')]+_0x165b00('0x160c')+_0x11679d[_0x165b00('0x2696')]:_0x165b00('0x1400'),'msg':_0x11679d[_0x165b00('0x1e07')]?JSON['stringify'](_0x11679d[_0x165b00('0x1e07')]):_0x11679d['toString']()});});}function _0x3ffd77(_0x5a6835,_0x5cd985){const _0x4ba5bd=_0x12dd86,_0xaa3073=_0x42ec8b[_0x4ba5bd('0x1d02')]()[_0x4ba5bd('0x20d6')](_0x4ba5bd('0x31c'))['htmlContent'](_0x4ba5bd('0x1274')+'\x20will\x20be\x20deleted.')[_0x4ba5bd('0x217')](_0x4ba5bd('0x18b8'))['targetEvent'](_0x5a6835)['ok']('OK')[_0x4ba5bd('0x1e1f')](_0x4ba5bd('0x468'));_0x42ec8b['show'](_0xaa3073)[_0x4ba5bd('0x173b')](function(){_0x60ac21(_0x5cd985);},function(){const _0x3a8454=_0x4ba5bd;console[_0x3a8454('0xe37')](_0x3a8454('0x468'));});}function _0x484730(_0x421115){const _0x19f30c=_0x12dd86,_0x49e1df=_0x42ec8b['confirm']()[_0x19f30c('0x20d6')](_0x19f30c('0x837'))['htmlContent'](_0x19f30c('0x15b9')+_0x195f3f[_0x19f30c('0x276e')][_0x19f30c('0x543')]+_0x19f30c('0xcb4')+_0x19f30c('0xd23'))[_0x19f30c('0x217')](_0x19f30c('0xe22'))[_0x19f30c('0x21de')](_0x421115)['ok']('OK')[_0x19f30c('0x1e1f')](_0x19f30c('0x468'));_0x42ec8b[_0x19f30c('0x1cb7')](_0x49e1df)[_0x19f30c('0x173b')](function(){const _0x306564=_0x19f30c;_0x195f3f[_0x306564('0x276e')][_0x306564('0xa6a')](function(_0x23e001){_0x60ac21(_0x23e001);}),_0x195f3f[_0x306564('0x276e')]=[];});}_0x195f3f[_0x12dd86('0x10e1')]=[],_0x195f3f[_0x12dd86('0x1720')]=_0x960fff,_0x195f3f[_0x12dd86('0x7e4')]=_0x1cdc38,_0x195f3f[_0x12dd86('0x51d')]=_0x5d74e2;function _0x960fff(_0x17e5da,_0x44aba0){const _0x39e92c=_0x12dd86;_0x42ec8b[_0x39e92c('0x1cb7')]({'controller':_0x39e92c('0x11ee'),'controllerAs':'vm','templateUrl':_0x48bd83,'parent':angular['element'](_0x18f366[_0x39e92c('0x1a5')]),'targetEvent':_0x17e5da,'clickOutsideToClose':!![],'locals':{'type':_0x39e92c('0x1c55'),'item':_0x44aba0,'items':_0x195f3f[_0x39e92c('0xb60')],'configuration':_0x195f3f['freshsalesConfiguration'],'account':_0x195f3f[_0x39e92c('0xdb5')],'license':null,'setting':null,'crudPermissions':_0x195f3f[_0x39e92c('0x1dc1')]}});}function _0x1442d7(_0x37e51c){const _0xb8d028=_0x12dd86;_0x32bf77[_0xb8d028('0x1148')][_0xb8d028('0x15e8')]({'id':_0x37e51c['id']})[_0xb8d028('0x1964')][_0xb8d028('0x173b')](function(){const _0x4b7503=_0xb8d028;_0x3c8d8a()[_0x4b7503('0x1a8b')](_0x195f3f['descriptions'],{'id':_0x37e51c['id']}),_0x5c605a['success']({'title':_0x4b7503('0x1c35'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0xb8d028('0x103c')](function(_0x417860){const _0x165ace=_0xb8d028;_0x5c605a[_0x165ace('0x15aa')]({'title':_0x417860['status']?'API:'+_0x417860[_0x165ace('0x276f')]+_0x165ace('0x160c')+_0x417860[_0x165ace('0x2696')]:_0x165ace('0x1400'),'msg':_0x417860[_0x165ace('0x1e07')]?JSON[_0x165ace('0x100b')](_0x417860[_0x165ace('0x1e07')]):_0x417860[_0x165ace('0x1b75')]()});});}function _0x1cdc38(_0x1f2780,_0x422fb9){const _0x4aad41=_0x12dd86,_0x52158d=_0x42ec8b[_0x4aad41('0x1d02')]()[_0x4aad41('0x20d6')](_0x4aad41('0x11d7'))['htmlContent'](_0x4aad41('0x1825')+_0x4aad41('0xd23'))['ariaLabel']('delete\x20description')[_0x4aad41('0x21de')](_0x1f2780)['ok']('OK')[_0x4aad41('0x1e1f')](_0x4aad41('0x468'));_0x42ec8b[_0x4aad41('0x1cb7')](_0x52158d)[_0x4aad41('0x173b')](function(){_0x1442d7(_0x422fb9);},function(){const _0x29106e=_0x4aad41;console[_0x29106e('0xe37')](_0x29106e('0x468'));});}function _0x5d74e2(_0x385b4b){const _0x5c4612=_0x12dd86,_0xd036bb=_0x42ec8b['confirm']()[_0x5c4612('0x20d6')](_0x5c4612('0x1807'))[_0x5c4612('0xf8b')](_0x5c4612('0x15b9')+_0x195f3f[_0x5c4612('0x10e1')][_0x5c4612('0x543')]+'\x20selected'+_0x5c4612('0xd23'))['ariaLabel'](_0x5c4612('0x11fd'))[_0x5c4612('0x21de')](_0x385b4b)['ok']('OK')[_0x5c4612('0x1e1f')](_0x5c4612('0x468'));_0x42ec8b[_0x5c4612('0x1cb7')](_0xd036bb)['then'](function(){const _0x260b9a=_0x5c4612;_0x195f3f[_0x260b9a('0x10e1')][_0x260b9a('0xa6a')](function(_0x37d252){_0x1442d7(_0x37d252);}),_0x195f3f['selectedDescriptions']=[];});}_0x195f3f[_0x12dd86('0x86d')]=[],_0x195f3f[_0x12dd86('0xbb7')]=_0x298aba,_0x195f3f[_0x12dd86('0x218b')]=_0xfa431,_0x195f3f[_0x12dd86('0x252f')]=_0xaffbc5;function _0x298aba(_0x29fa16,_0x58ffd8){const _0x31daa4=_0x12dd86;_0x42ec8b[_0x31daa4('0x1cb7')]({'controller':_0x31daa4('0x11ee'),'controllerAs':'vm','templateUrl':_0x48bd83,'parent':angular[_0x31daa4('0xb6d')](_0x18f366[_0x31daa4('0x1a5')]),'targetEvent':_0x29fa16,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x58ffd8,'items':_0x195f3f[_0x31daa4('0x2340')],'configuration':_0x195f3f['freshsalesConfiguration'],'account':_0x195f3f['freshsalesAccount'],'license':null,'setting':null,'crudPermissions':_0x195f3f[_0x31daa4('0x1dc1')]}});}function _0x17404c(_0x5f067a){const _0x904244=_0x12dd86;_0x32bf77[_0x904244('0x1148')]['delete']({'id':_0x5f067a['id']})[_0x904244('0x1964')][_0x904244('0x173b')](function(){const _0x226ddf=_0x904244;_0x3c8d8a()[_0x226ddf('0x1a8b')](_0x195f3f[_0x226ddf('0x2340')],{'id':_0x5f067a['id']}),_0x5c605a[_0x226ddf('0xdfe')]({'title':'Field\x20deleted!','msg':_0x226ddf('0x1063')});})[_0x904244('0x103c')](function(_0x4bd2cc){const _0x1f7802=_0x904244;_0x5c605a[_0x1f7802('0x15aa')]({'title':_0x4bd2cc[_0x1f7802('0x276f')]?'API:'+_0x4bd2cc[_0x1f7802('0x276f')]+'\x20-\x20'+_0x4bd2cc['statusText']:_0x1f7802('0x1400'),'msg':_0x4bd2cc[_0x1f7802('0x1e07')]?JSON[_0x1f7802('0x100b')](_0x4bd2cc[_0x1f7802('0x1e07')]):_0x4bd2cc[_0x1f7802('0x1b75')]()});});}function _0xfa431(_0x437a46,_0x58b244){const _0x3d5b78=_0x12dd86,_0x459d2b=_0x42ec8b['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')['htmlContent'](_0x3d5b78('0x1cf')+_0x3d5b78('0xd23'))[_0x3d5b78('0x217')](_0x3d5b78('0x1b20'))['targetEvent'](_0x437a46)['ok']('OK')[_0x3d5b78('0x1e1f')](_0x3d5b78('0x468'));_0x42ec8b['show'](_0x459d2b)['then'](function(){_0x17404c(_0x58b244);},function(){const _0x44f291=_0x3d5b78;console[_0x44f291('0xe37')](_0x44f291('0x468'));});}function _0xaffbc5(_0x5862d9){const _0x523af6=_0x12dd86,_0x4e2394=_0x42ec8b[_0x523af6('0x1d02')]()[_0x523af6('0x20d6')](_0x523af6('0x18ba'))[_0x523af6('0xf8b')](_0x523af6('0x15b9')+_0x195f3f[_0x523af6('0x86d')][_0x523af6('0x543')]+_0x523af6('0xcb4')+'\x20will\x20be\x20deleted.')[_0x523af6('0x217')]('delete\x20fields')['targetEvent'](_0x5862d9)['ok']('OK')['cancel']('CANCEL');_0x42ec8b['show'](_0x4e2394)['then'](function(){const _0x2b97aa=_0x523af6;_0x195f3f[_0x2b97aa('0x86d')][_0x2b97aa('0xa6a')](function(_0x1bd25a){_0x17404c(_0x1bd25a);}),_0x195f3f[_0x2b97aa('0x86d')]=[];});}}const _0x310854=_0x132c9c;_0x58e911['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0x294'),_0x566993('0xcf6'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x58e911(_0x4cec4b,_0xcb77a1,_0xbd37f5,_0x254f18,_0x5384d9,_0x2bfe03,_0xf49531,_0x37e6e2,_0x2f61cd,_0x456159,_0x7063af,_0x6de879,_0x58cfaf,_0x2f6071){const _0x3b2dfc=_0x566993,_0x3a1d24=this;_0x3a1d24[_0x3b2dfc('0x155f')]=_0x7063af[_0x3b2dfc('0x14d4')](),_0x3a1d24[_0x3b2dfc('0x1d4a')]=[],_0x3a1d24[_0x3b2dfc('0x251')]=_0x58cfaf,_0x3a1d24['license']=_0x6de879,_0x3a1d24[_0x3b2dfc('0x1dc1')]=_0x2f6071,_0x3a1d24[_0x3b2dfc('0xb0')]={},_0x3a1d24['passwordPattern']=_0x3a1d24[_0x3b2dfc('0x251')]&&_0x3a1d24[_0x3b2dfc('0x251')][_0x3b2dfc('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a1d24[_0x3b2dfc('0x20d6')]=_0x3b2dfc('0x96d'),_0x3a1d24[_0x3b2dfc('0xcf6')]=angular[_0x3b2dfc('0x2e3')](_0x2f61cd),_0x3a1d24[_0x3b2dfc('0x294')]=_0x37e6e2,_0x3a1d24[_0x3b2dfc('0x2dc')]=![];!_0x3a1d24['freshsalesConfiguration']&&(_0x3a1d24[_0x3b2dfc('0xcf6')]={'channel':_0x3b2dfc('0x21a8'),'type':_0x3b2dfc('0x1755')},_0x3a1d24[_0x3b2dfc('0x20d6')]=_0x3b2dfc('0xb04'),_0x3a1d24[_0x3b2dfc('0x2dc')]=!![]);_0x3a1d24[_0x3b2dfc('0x2843')]=_0x327c0b,_0x3a1d24[_0x3b2dfc('0x2241')]=_0xe6eeb6,_0x3a1d24['deleteFreshsalesConfiguration']=_0x1b9557,_0x3a1d24[_0x3b2dfc('0x11ae')]=_0x1fb288,_0x3a1d24[_0x3b2dfc('0x18e2')]=_0x16d18a;function _0x327c0b(){const _0x791a=_0x3b2dfc;_0x3a1d24[_0x791a('0x1d4a')]=[],_0x456159[_0x791a('0x1323')][_0x791a('0x795')]({'id':_0xcb77a1[_0x791a('0x197a')]['id']},_0x3a1d24[_0x791a('0xcf6')])[_0x791a('0x1964')][_0x791a('0x173b')](function(_0x33343e){const _0x55ba98=_0x791a;_0x3a1d24['configurations'][_0x55ba98('0x1377')](_0x33343e[_0x55ba98('0xf1f')]()),_0xf49531[_0x55ba98('0xdfe')]({'title':'FreshsalesConfiguration\x20properly\x20created','msg':_0x3a1d24[_0x55ba98('0xcf6')][_0x55ba98('0x10ad')]?_0x3a1d24[_0x55ba98('0xcf6')][_0x55ba98('0x10ad')]+_0x55ba98('0x209a'):''}),_0x16d18a(_0x33343e);})[_0x791a('0x103c')](function(_0x381bcb){const _0x1b12b6=_0x791a;if(_0x381bcb['data']&&_0x381bcb[_0x1b12b6('0x1e07')][_0x1b12b6('0x1d4a')]&&_0x381bcb[_0x1b12b6('0x1e07')][_0x1b12b6('0x1d4a')][_0x1b12b6('0x543')]){_0x3a1d24[_0x1b12b6('0x1d4a')]=_0x381bcb[_0x1b12b6('0x1e07')]['errors']||[{'message':_0x381bcb[_0x1b12b6('0x1b75')](),'type':_0x1b12b6('0x1046')}];for(let _0x3ce542=0x0;_0x3ce542<_0x381bcb[_0x1b12b6('0x1e07')]['errors'][_0x1b12b6('0x543')];_0x3ce542+=0x1){_0xf49531[_0x1b12b6('0x15aa')]({'title':_0x381bcb[_0x1b12b6('0x1e07')][_0x1b12b6('0x1d4a')][_0x3ce542][_0x1b12b6('0x1810')],'msg':_0x381bcb[_0x1b12b6('0x1e07')][_0x1b12b6('0x1d4a')][_0x3ce542][_0x1b12b6('0x67f')]});}}else _0xf49531[_0x1b12b6('0x15aa')]({'title':_0x381bcb[_0x1b12b6('0x276f')]?_0x1b12b6('0x137')+_0x381bcb[_0x1b12b6('0x276f')]+_0x1b12b6('0x160c')+_0x381bcb[_0x1b12b6('0x2696')]:_0x1b12b6('0x1046'),'msg':_0x381bcb[_0x1b12b6('0x1e07')]?JSON['stringify'](_0x381bcb[_0x1b12b6('0x1e07')][_0x1b12b6('0x67f')]):_0x381bcb[_0x1b12b6('0x1b75')]()});});}function _0xe6eeb6(){const _0x1137ca=_0x3b2dfc;_0x3a1d24['errors']=[],_0x456159[_0x1137ca('0x100a')][_0x1137ca('0x1842')]({'id':_0x3a1d24[_0x1137ca('0xcf6')]['id']},_0x3a1d24[_0x1137ca('0xcf6')])[_0x1137ca('0x1964')][_0x1137ca('0x173b')](function(_0x29f111){const _0x1baeb6=_0x1137ca,_0x11e332=_0x3c8d8a()['find'](_0x3a1d24[_0x1baeb6('0x294')],{'id':_0x29f111['id']});_0x11e332&&_0x3c8d8a()[_0x1baeb6('0x9ef')](_0x11e332,_0x3c8d8a()['pick'](_0x29f111[_0x1baeb6('0xf1f')](),_0x3c8d8a()[_0x1baeb6('0x1d3e')](_0x11e332))),_0xf49531[_0x1baeb6('0xdfe')]({'title':'FreshsalesConfiguration\x20properly\x20saved!','msg':_0x3a1d24['freshsalesConfiguration']['name']?_0x3a1d24[_0x1baeb6('0xcf6')]['name']+_0x1baeb6('0x2788'):''}),_0x16d18a(_0x29f111);})[_0x1137ca('0x103c')](function(_0xf92c53){const _0x3bc74a=_0x1137ca;if(_0xf92c53[_0x3bc74a('0x1e07')]&&_0xf92c53['data'][_0x3bc74a('0x1d4a')]&&_0xf92c53[_0x3bc74a('0x1e07')][_0x3bc74a('0x1d4a')][_0x3bc74a('0x543')]){_0x3a1d24['errors']=_0xf92c53[_0x3bc74a('0x1e07')][_0x3bc74a('0x1d4a')]||[{'message':_0xf92c53[_0x3bc74a('0x1b75')](),'type':_0x3bc74a('0x18a')}];for(let _0x2d686d=0x0;_0x2d686d<_0xf92c53[_0x3bc74a('0x1e07')]['errors'][_0x3bc74a('0x543')];_0x2d686d++){_0xf49531['error']({'title':_0xf92c53[_0x3bc74a('0x1e07')][_0x3bc74a('0x1d4a')][_0x2d686d][_0x3bc74a('0x1810')],'msg':_0xf92c53['data'][_0x3bc74a('0x1d4a')][_0x2d686d]['message']});}}else _0xf49531[_0x3bc74a('0x15aa')]({'title':_0xf92c53[_0x3bc74a('0x276f')]?_0x3bc74a('0x137')+_0xf92c53['status']+_0x3bc74a('0x160c')+_0xf92c53[_0x3bc74a('0x2696')]:_0x3bc74a('0x18a'),'msg':_0xf92c53['data']?JSON['stringify'](_0xf92c53[_0x3bc74a('0x1e07')][_0x3bc74a('0x67f')]):_0xf92c53[_0x3bc74a('0x1b75')]()});});}function _0x1b9557(_0x318e48){const _0x1b8f52=_0x3b2dfc;_0x3a1d24[_0x1b8f52('0x1d4a')]=[];const _0x1bf7f2=_0x254f18[_0x1b8f52('0x1d02')]()[_0x1b8f52('0x20d6')](_0x1b8f52('0x8ef'))[_0x1b8f52('0x732')](_0x1b8f52('0x1a4c'))[_0x1b8f52('0x217')](_0x1b8f52('0xfa1'))['ok'](_0x1b8f52('0x2373'))['cancel'](_0x1b8f52('0x1d4e'))[_0x1b8f52('0x21de')](_0x318e48);_0x254f18['show'](_0x1bf7f2)[_0x1b8f52('0x173b')](function(){const _0x1df44e=_0x1b8f52;_0x456159['intFreshsalesConfiguration'][_0x1df44e('0x15e8')]({'id':_0x3a1d24['freshsalesConfiguration']['id']})[_0x1df44e('0x1964')][_0x1df44e('0x173b')](function(){const _0x12f5e5=_0x1df44e;_0x3c8d8a()['remove'](_0x3a1d24[_0x12f5e5('0x294')],{'id':_0x3a1d24['freshsalesConfiguration']['id']}),_0xf49531[_0x12f5e5('0xdfe')]({'title':_0x12f5e5('0xeac'),'msg':(_0x3a1d24['freshsalesConfiguration'][_0x12f5e5('0x10ad')]||_0x12f5e5('0xcf6'))+'\x20has\x20been\x20deleted!'}),_0x16d18a(_0x3a1d24[_0x12f5e5('0xcf6')]);})['catch'](function(_0x293552){const _0x212bfb=_0x1df44e;if(_0x293552[_0x212bfb('0x1e07')]&&_0x293552['data'][_0x212bfb('0x1d4a')]&&_0x293552[_0x212bfb('0x1e07')]['errors'][_0x212bfb('0x543')]){_0x3a1d24['errors']=_0x293552['data'][_0x212bfb('0x1d4a')]||[{'message':_0x293552[_0x212bfb('0x1b75')](),'type':_0x212bfb('0x10d0')}];for(let _0x12f3f2=0x0;_0x12f3f2<_0x293552[_0x212bfb('0x1e07')][_0x212bfb('0x1d4a')][_0x212bfb('0x543')];_0x12f3f2++){_0xf49531[_0x212bfb('0x15aa')]({'title':_0x293552[_0x212bfb('0x1e07')][_0x212bfb('0x1d4a')][_0x12f3f2][_0x212bfb('0x1810')],'msg':_0x293552[_0x212bfb('0x1e07')][_0x212bfb('0x1d4a')][_0x12f3f2][_0x212bfb('0x67f')]});}}else _0xf49531['error']({'title':_0x293552[_0x212bfb('0x276f')]?'API:'+_0x293552[_0x212bfb('0x276f')]+'\x20-\x20'+_0x293552[_0x212bfb('0x2696')]:_0x212bfb('0x10d0'),'msg':_0x293552[_0x212bfb('0x1e07')]?JSON[_0x212bfb('0x100b')](_0x293552[_0x212bfb('0x1e07')][_0x212bfb('0x67f')]):_0x293552[_0x212bfb('0x67f')]||_0x293552[_0x212bfb('0x1b75')]()});});},function(){});}function _0x1fb288(_0x407a10){return _0x407a10===null?undefined:new Date(_0x407a10);}function _0x16d18a(_0x39d521){const _0x204a35=_0x3b2dfc;_0x254f18[_0x204a35('0x1cf4')](_0x39d521);}}const _0x1c4062=_0x58e911;_0x921142[_0x566993('0x17bb')]=['$scope','$state',_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0x1dde'),_0x566993('0x1b1f'),_0x566993('0x54'),_0x566993('0xde4'),_0x566993('0x1810'),'api',_0x566993('0x1600'),'crudPermissions'];function _0x921142(_0x49b2ab,_0x14eeb5,_0x2e5a04,_0x2b3d5d,_0x1bbf5f,_0xca09cd,_0x1cb378,_0x47c44c,_0x4f1602,_0x8b315,_0x1ccc55,_0x45626e,_0x7046a0){const _0xf76221=_0x566993,_0x47a74a=this;_0x47a74a['currentUser']=_0x45626e['getCurrentUser'](),_0x47a74a[_0xf76221('0x1d4a')]=[],_0x47a74a['title']=_0xf76221('0x3a0')+_0x3c8d8a()['toUpper'](_0x8b315),_0x47a74a['item']=angular[_0xf76221('0x2e3')](_0x47c44c),_0x47a74a[_0xf76221('0x1b1f')]=_0x1cb378,_0x47a74a[_0xf76221('0x1810')]=_0x8b315,_0x47a74a[_0xf76221('0x1dc1')]=_0x7046a0,_0x47a74a['newItem']=![];!_0x47a74a[_0xf76221('0x54')]&&(_0x47a74a[_0xf76221('0x54')]={'type':_0xf76221('0x1533')},_0x47a74a['item'][_0x3c8d8a()[_0xf76221('0x587')](_0x8b315)+'Id']=_0xca09cd['id'],_0x47a74a[_0xf76221('0x20d6')]=_0xf76221('0x99f')+_0x3c8d8a()[_0xf76221('0x160d')](_0x8b315),_0x47a74a[_0xf76221('0x7')]=!![]);_0x47a74a[_0xf76221('0x221f')]=_0xd8f580,_0x47a74a['saveItem']=_0x5d0817,_0x47a74a[_0xf76221('0x2157')]=_0x5e00f2,_0x47a74a['getSelectedVariable']=_0x35314e,_0x47a74a[_0xf76221('0x18e2')]=_0x5d5be9,_0x1ccc55[_0xf76221('0x1b56')][_0xf76221('0x1d97')]({'nolimit':!![]})[_0xf76221('0x1964')]['then'](function(_0x57d21f){const _0x274dd3=_0xf76221;return _0x47a74a[_0x274dd3('0x2715')]=_0x57d21f[_0x274dd3('0x6aa')]?_0x57d21f[_0x274dd3('0x6aa')]:[],_0x1ccc55['voiceAgentReport'][_0x274dd3('0x2320')]()[_0x274dd3('0x1964')];})[_0xf76221('0x173b')](function(_0x1007bc){const _0x421a22=_0xf76221;return _0x47a74a['voiceAgentReportColumns']=_0x3c8d8a()[_0x421a22('0x1b31')](_0x3c8d8a()[_0x421a22('0x1d3e')](_0x1007bc),[_0x421a22('0x1964'),_0x421a22('0x14ad'),_0x421a22('0xda8'),'updatedAt','sourceid']),_0x47a74a['voiceAgentReportColumns'][_0x421a22('0x18bb')](_0x421a22('0x2313')),_0x1ccc55['voiceDialReport'][_0x421a22('0x2320')]()[_0x421a22('0x1964')];})[_0xf76221('0x173b')](function(_0x4aedc1){const _0x2d620a=_0xf76221;_0x47a74a[_0x2d620a('0x20de')]=_0x3c8d8a()['difference'](_0x3c8d8a()[_0x2d620a('0x1d3e')](_0x4aedc1),[_0x2d620a('0x1964'),'$resolved',_0x2d620a('0xda8'),_0x2d620a('0xad'),'sourceid']),_0x47a74a[_0x2d620a('0x20de')]['push']('recordingURL');})[_0xf76221('0x103c')](function(_0x591506){const _0x196bbd=_0xf76221;_0x1bbf5f[_0x196bbd('0x15aa')]({'title':_0x591506['status']?_0x196bbd('0x137')+_0x591506[_0x196bbd('0x276f')]+_0x196bbd('0x160c')+_0x591506[_0x196bbd('0x2696')]:_0x196bbd('0xaf3'),'msg':_0x591506[_0x196bbd('0x1e07')]?JSON[_0x196bbd('0x100b')](_0x591506[_0x196bbd('0x1e07')]):_0x591506['toString']()});}),_0x1ccc55[_0xf76221('0x1323')][_0xf76221('0x223b')]({'id':_0x4f1602['id'],'ticketType':_0xca09cd[_0xf76221('0x182')]?_0xca09cd[_0xf76221('0x182')]:undefined})[_0xf76221('0x1964')]['then'](function(_0x3833c0){const _0x614949=_0xf76221;_0x47a74a['accountConnected']=!![],_0x47a74a['fields']=_0x3833c0[_0x614949('0x6aa')]?_0x3833c0['rows']:[],_0x47a74a[_0x614949('0x54')][_0x614949('0x1ee7')]&&(_0x47a74a[_0x614949('0x894')]=_0x3c8d8a()[_0x614949('0x18ab')](_0x47a74a[_0x614949('0x2340')],{'id':_0x47a74a['item'][_0x614949('0x1ee7')]}));})['catch'](function(_0x59d7f8){const _0x48a658=_0xf76221;_0x47a74a[_0x48a658('0x22ad')]=![],console[_0x48a658('0x15aa')](_0x59d7f8);});function _0xd8f580(){const _0x318f04=_0xf76221;_0x47a74a[_0x318f04('0x1d4a')]=[],_0x47a74a[_0x318f04('0x894')]&&(_0x47a74a[_0x318f04('0x54')][_0x318f04('0x1ee7')]=_0x47a74a[_0x318f04('0x894')]['id'],_0x47a74a[_0x318f04('0x54')][_0x318f04('0x194d')]=_0x47a74a[_0x318f04('0x894')][_0x318f04('0x10ad')],_0x47a74a[_0x318f04('0x54')][_0x318f04('0x894')]=_0x47a74a[_0x318f04('0x894')][_0x318f04('0xbb4')]),_0x1ccc55[_0x318f04('0x1148')][_0x318f04('0x1195')](_0x47a74a[_0x318f04('0x54')])[_0x318f04('0x1964')]['then'](function(_0x8656b1){const _0x572d8f=_0x318f04;_0x47a74a[_0x572d8f('0x1b1f')]['unshift'](_0x8656b1),_0x1bbf5f[_0x572d8f('0xdfe')]({'title':_0x3c8d8a()['capitalize'](_0x8b315)+_0x572d8f('0x348'),'msg':_0x3c8d8a()['capitalize'](_0x8b315)+_0x572d8f('0x209a')}),_0x5d5be9();})[_0x318f04('0x103c')](function(_0x3b5b68){const _0x6e0df6=_0x318f04;console['error'](_0x3b5b68),_0x47a74a['errors']=_0x3b5b68[_0x6e0df6('0x1e07')][_0x6e0df6('0x1d4a')]||[{'message':_0x3b5b68['toString'](),'type':_0x6e0df6('0x18e4')}];});}function _0x5d0817(){const _0x13ca0e=_0xf76221;_0x47a74a[_0x13ca0e('0x1d4a')]=[],_0x47a74a[_0x13ca0e('0x894')]&&(_0x47a74a['item'][_0x13ca0e('0x1ee7')]=_0x47a74a[_0x13ca0e('0x894')]['id'],_0x47a74a[_0x13ca0e('0x54')][_0x13ca0e('0x194d')]=_0x47a74a[_0x13ca0e('0x894')][_0x13ca0e('0x10ad')],_0x47a74a[_0x13ca0e('0x54')][_0x13ca0e('0x894')]=_0x47a74a['customField'][_0x13ca0e('0xbb4')]),_0x1ccc55[_0x13ca0e('0x1148')][_0x13ca0e('0x1842')]({'id':_0x47a74a['item']['id']},_0x47a74a[_0x13ca0e('0x54')])[_0x13ca0e('0x1964')][_0x13ca0e('0x173b')](function(_0x4a9a72){const _0x150b8c=_0x13ca0e,_0x228248=_0x3c8d8a()[_0x150b8c('0x18ab')](_0x47a74a[_0x150b8c('0x1b1f')],{'id':_0x4a9a72['id']});_0x228248&&_0x3c8d8a()['merge'](_0x228248,_0x4a9a72),_0x1bbf5f[_0x150b8c('0xdfe')]({'title':_0x3c8d8a()[_0x150b8c('0x587')](_0x8b315)+_0x150b8c('0x10e9'),'msg':_0x3c8d8a()[_0x150b8c('0x587')](_0x8b315)+_0x150b8c('0x2788')}),_0x5d5be9();})[_0x13ca0e('0x103c')](function(_0x17c161){const _0xef6ebe=_0x13ca0e;console[_0xef6ebe('0x15aa')](_0x17c161),_0x47a74a[_0xef6ebe('0x1d4a')]=_0x17c161[_0xef6ebe('0x1e07')][_0xef6ebe('0x1d4a')]||[{'message':_0x17c161[_0xef6ebe('0x1b75')](),'type':_0xef6ebe('0x1c43')}];});}function _0x5e00f2(_0x58d4c7){const _0x33711b=_0xf76221;_0x47a74a['errors']=[];const _0x4b41e9=_0x2b3d5d[_0x33711b('0x1d02')]()['title'](_0x33711b('0x8ef'))['content'](_0x33711b('0x1aa5')+_0x8b315+_0x33711b('0xd23'))['ariaLabel'](_0x33711b('0x133e')+_0x3c8d8a()[_0x33711b('0x587')](_0x8b315))['ok'](_0x33711b('0x2373'))['cancel'](_0x33711b('0x1d4e'))[_0x33711b('0x21de')](_0x58d4c7);_0x2b3d5d['show'](_0x4b41e9)[_0x33711b('0x173b')](function(){const _0x14ab49=_0x33711b;_0x1ccc55[_0x14ab49('0x1148')][_0x14ab49('0x15e8')]({'id':_0x47a74a[_0x14ab49('0x54')]['id']})['$promise'][_0x14ab49('0x173b')](function(){const _0x893770=_0x14ab49;_0x3c8d8a()[_0x893770('0x1a8b')](_0x47a74a[_0x893770('0x1b1f')],{'id':_0x47a74a[_0x893770('0x54')]['id']}),_0x1bbf5f[_0x893770('0xdfe')]({'title':_0x3c8d8a()[_0x893770('0x587')](_0x8b315)+'\x20properly\x20deleted!','msg':_0x3c8d8a()[_0x893770('0x587')](_0x8b315)+_0x893770('0x25d2')}),_0x5d5be9();})[_0x14ab49('0x103c')](function(_0x3da18c){const _0x29e00d=_0x14ab49;console[_0x29e00d('0x15aa')](_0x3da18c),_0x47a74a[_0x29e00d('0x1d4a')]=_0x3da18c[_0x29e00d('0x1e07')][_0x29e00d('0x1d4a')]||[{'message':_0x3da18c[_0x29e00d('0x1b75')](),'type':_0x29e00d('0x238e')}];});},function(){});}function _0x35314e(){const _0x1513dc=_0xf76221;return _0x47a74a[_0x1513dc('0x54')]['variableName']!==undefined?_0x47a74a[_0x1513dc('0x54')]['variableName']:'Please\x20select\x20a\x20variable';}function _0x5d5be9(){const _0x4ff552=_0xf76221;_0x2b3d5d[_0x4ff552('0x1cf4')]();}}const _0x4c923d=_0x921142;_0x2468a1[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog',_0x566993('0x1b82'),'$translate','license',_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),'freshsalesAccount',_0x566993('0x170e')];function _0x2468a1(_0x245be1,_0x179e66,_0x5a869c,_0x490ad1,_0xa7ea39,_0x6ecade,_0x153026,_0x2aba92,_0x34e0a8,_0x3dcb92,_0x1a542f,_0x5e778f){const _0x1b3829=_0x566993,_0x301b42=this;_0x301b42['currentUser']=_0x3dcb92[_0x1b3829('0x14d4')](),_0x301b42[_0x1b3829('0x1a29')]=_0x6ecade,_0x301b42['setting']=_0x153026,_0x301b42[_0x1b3829('0x644')]=_0x301b42[_0x1b3829('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x301b42[_0x1b3829('0x614')]=_0x179e66[_0x1b3829('0x375')]()+'://'+_0x179e66[_0x1b3829('0x4d1')](),_0x301b42[_0x1b3829('0xdb5')]=_0x1a542f||_0x245be1['params'][_0x1b3829('0xdb5')]||{},_0x301b42[_0x1b3829('0x170e')]=_0x5e778f&&_0x5e778f[_0x1b3829('0x1a2f')]==0x1?_0x5e778f[_0x1b3829('0x6aa')][0x0]:null,_0x301b42[_0x1b3829('0x1dc1')]=_0x3dcb92[_0x1b3829('0xde6')](_0x301b42['userProfileSection']?_0x301b42['userProfileSection'][_0x1b3829('0x1dc1')]:null),_0x301b42[_0x1b3829('0xb0')]={},_0x301b42[_0x1b3829('0xd5f')]=_0x245be1[_0x1b3829('0x197a')][_0x1b3829('0x1e66')]||0x0,_0x301b42[_0x1b3829('0x5a4')]=_0x34e0a8[_0x1b3829('0x2787')],_0x301b42[_0x1b3829('0x2747')]=_0x2c9e78,_0x301b42['saveFreshsalesAccount']=_0x5ac7b8;function _0x2c9e78(){const _0x2dd96a=_0x1b3829;_0x245be1['go'](_0x2dd96a('0xe3'),{},{'reload':_0x2dd96a('0xe3')});}function _0x5ac7b8(){const _0x22f5f3=_0x1b3829;_0x2aba92['intFreshsalesAccount']['update']({'id':_0x301b42[_0x22f5f3('0xdb5')]['id']},_0x301b42[_0x22f5f3('0xdb5')])[_0x22f5f3('0x1964')][_0x22f5f3('0x173b')](function(){const _0x400f12=_0x22f5f3;_0x34e0a8[_0x400f12('0xdfe')]({'title':'FreshsalesAccount\x20updated!','msg':_0x301b42[_0x400f12('0xdb5')][_0x400f12('0x10ad')]?_0x301b42[_0x400f12('0xdb5')]['name']+_0x400f12('0x1fd6'):''});})[_0x22f5f3('0x103c')](function(_0x575adb){const _0x4788fb=_0x22f5f3;_0x34e0a8[_0x4788fb('0x15aa')]({'title':_0x575adb['status']?_0x4788fb('0x137')+_0x575adb[_0x4788fb('0x276f')]+_0x4788fb('0x160c')+_0x575adb['statusText']:_0x4788fb('0xede'),'msg':_0x575adb[_0x4788fb('0x1e07')]?JSON[_0x4788fb('0x100b')](_0x575adb[_0x4788fb('0x1e07')]):_0x575adb[_0x4788fb('0x1b75')]()});});}}const _0x3afa5d=_0x2468a1,_0x87254=_0x21a6a1['p']+_0x566993('0x1c7a');_0x40f865[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x3b8'),_0x566993('0x257b'),'userProfileSection',_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x40f865(_0x4aac4d,_0x22e285,_0x371eee,_0x3ddffd,_0x998f5e,_0x53b01d,_0x1f4d00,_0x285819,_0x5d4776,_0x21cf8c,_0x53a177,_0x40181d,_0x3b9b0b,_0x4cd728,_0x1f0682,_0x323678,_0x5c38d0){const _0x10970c=_0x566993,_0x10e9d9=this;_0x10e9d9[_0x10970c('0x1a29')]=_0x323678,_0x10e9d9[_0x10970c('0x251')]=_0x5c38d0,_0x10e9d9[_0x10970c('0x155f')]=_0x1f0682['getCurrentUser'](),_0x10e9d9[_0x10970c('0x3b8')]=_0x5d4776||{'count':0x0,'rows':[]},_0x10e9d9['userProfile']=_0x21cf8c,_0x10e9d9[_0x10970c('0x170e')]=_0x53a177&&_0x53a177[_0x10970c('0x1a2f')]==0x1?_0x53a177[_0x10970c('0x6aa')][0x0]:null,_0x10e9d9[_0x10970c('0x1dc1')]=_0x1f0682[_0x10970c('0xde6')](_0x10e9d9[_0x10970c('0x170e')]?_0x10e9d9[_0x10970c('0x170e')][_0x10970c('0x1dc1')]:null),_0x10e9d9['table']='freshsalesAccounts',_0x10e9d9['listOrder']='',_0x10e9d9[_0x10970c('0x2303')]=null,_0x10e9d9[_0x10970c('0x10b8')]=[],_0x10e9d9[_0x10970c('0xc49')]={'fields':_0x10970c('0x26ae'),'limit':0xa,'page':0x1},_0x10e9d9[_0x10970c('0x222e')]=_0x1ce8d6,_0x10e9d9['testtestintegrationaccount']=_0x55ef42,_0x10e9d9[_0x10970c('0x1a20')]=_0x1afb70,_0x10e9d9['success']=_0x484d71,_0x10e9d9[_0x10970c('0x1ae9')]=_0x50e69c,_0x10e9d9['createOrEditFreshsalesAccount']=_0x177403,_0x10e9d9[_0x10970c('0x865')]=_0x344e63,_0x10e9d9[_0x10970c('0x1c69')]=_0x2cea64,_0x10e9d9[_0x10970c('0x1387')]=_0x1fdad4,_0x10e9d9[_0x10970c('0x77d')]=_0x38bb2f,_0x10e9d9[_0x10970c('0x27e3')]=_0x59f1ae;function _0x1ce8d6(_0x311678){const _0x3cfbcc=_0x10970c;_0x371eee['go'](_0x3cfbcc('0x1561'),{'id':_0x311678['id'],'freshsalesAccount':_0x311678,'crudPermissions':_0x10e9d9['crudPermissions']});}function _0x55ef42(_0x266fd2){const _0x1a561d=_0x10970c;return _0x40181d['intFreshsalesAccount']['getFields']({'id':_0x266fd2['id'],'test':!![]})['$promise'][_0x1a561d('0x173b')](function(){const _0xef486a=_0x1a561d;_0x4cd728['success']({'title':_0xef486a('0x1db7'),'msg':_0xef486a('0x13fe')});})[_0x1a561d('0x103c')](function(_0x4e46bd){const _0x539167=_0x1a561d;_0x4cd728[_0x539167('0x15aa')]({'title':_0x539167('0x1db7'),'msg':_0x4e46bd['data']?_0x4e46bd[_0x539167('0x1e07')]['message']?_0x4e46bd[_0x539167('0x1e07')][_0x539167('0x67f')]:JSON[_0x539167('0x100b')](_0x4e46bd[_0x539167('0x1e07')]):_0x4e46bd['toString']()});});}function _0x1afb70(_0x1ffa93,_0x1d2c4e){const _0x41fd42=_0x10970c,_0x244653=_0x998f5e[_0x41fd42('0x1d02')]()[_0x41fd42('0x20d6')](_0x41fd42('0x5bb')+_0x3c8d8a()[_0x41fd42('0x10e')](_0x41fd42('0xdb5'))+'?')[_0x41fd42('0xf8b')](_0x41fd42('0x15b9')+(_0x1ffa93[_0x41fd42('0x10ad')]||_0x41fd42('0xdb5'))+_0x41fd42('0x24be')+_0x41fd42('0xd23'))['ariaLabel'](_0x41fd42('0xd38'))[_0x41fd42('0x21de')](_0x1d2c4e)['ok']('OK')['cancel'](_0x41fd42('0x468'));_0x998f5e['show'](_0x244653)['then'](function(){_0x344e63(_0x1ffa93);},function(){const _0x36f106=_0x41fd42;console[_0x36f106('0xe37')]('CANCEL');});}let _0x483dce=!![],_0x2cd3f4=0x1;_0x4aac4d[_0x10970c('0x1bdb')](_0x10970c('0x157b'),function(_0x53ca07,_0x2e8602){const _0x5930e7=_0x10970c;_0x483dce?_0x1f4d00(function(){_0x483dce=![];}):(!_0x2e8602&&(_0x2cd3f4=_0x10e9d9[_0x5930e7('0xc49')]['page']),_0x53ca07!==_0x2e8602&&(_0x10e9d9[_0x5930e7('0xc49')][_0x5930e7('0x182e')]=0x1),!_0x53ca07&&(_0x10e9d9['query'][_0x5930e7('0x182e')]=_0x2cd3f4),_0x10e9d9[_0x5930e7('0x1ae9')]());});function _0x484d71(_0x1f200a){const _0x25e77b=_0x10970c;_0x10e9d9[_0x25e77b('0x3b8')]=_0x1f200a||{'count':0x0,'rows':[]};}function _0x50e69c(){const _0x346d14=_0x10970c;_0x10e9d9[_0x346d14('0xc49')][_0x346d14('0x17f0')]=(_0x10e9d9[_0x346d14('0xc49')][_0x346d14('0x182e')]-0x1)*_0x10e9d9[_0x346d14('0xc49')]['limit'],_0x1f0682[_0x346d14('0x1b4e')](_0x346d14('0x79b'))?_0x10e9d9[_0x346d14('0x2219')]=_0x40181d[_0x346d14('0x1323')][_0x346d14('0x1d97')](_0x10e9d9[_0x346d14('0xc49')],_0x484d71)['$promise']:(_0x10e9d9[_0x346d14('0xc49')]['id']=_0x10e9d9[_0x346d14('0x257b')]['id'],_0x10e9d9[_0x346d14('0xc49')][_0x346d14('0x17c9')]=_0x346d14('0x1171'),_0x10e9d9[_0x346d14('0x2219')]=_0x40181d[_0x346d14('0x257b')]['getResources'](_0x10e9d9[_0x346d14('0xc49')],_0x484d71)[_0x346d14('0x1964')]);}function _0x177403(_0x2b6153,_0x78da41){const _0x3a4753=_0x10970c;_0x998f5e[_0x3a4753('0x1cb7')]({'controller':'CreateOrEditFreshsalesAccountDialogController','controllerAs':'vm','templateUrl':_0x87254,'parent':angular[_0x3a4753('0xb6d')](_0x53b01d[_0x3a4753('0x1a5')]),'targetEvent':_0x2b6153,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x78da41,'freshsalesAccounts':_0x10e9d9[_0x3a4753('0x3b8')]['rows'],'license':_0x10e9d9[_0x3a4753('0x1a29')],'setting':_0x10e9d9['setting'],'crudPermissions':_0x10e9d9[_0x3a4753('0x1dc1')]}});}function _0x344e63(_0xfafbc9){const _0xd2d007=_0x10970c;_0x40181d['intFreshsalesAccount'][_0xd2d007('0x15e8')]({'id':_0xfafbc9['id']})[_0xd2d007('0x1964')][_0xd2d007('0x173b')](function(){const _0x2fee57=_0xd2d007;_0x3c8d8a()[_0x2fee57('0x1a8b')](_0x10e9d9[_0x2fee57('0x3b8')]['rows'],{'id':_0xfafbc9['id']}),_0x10e9d9['freshsalesAccounts']['count']-=0x1,!_0x10e9d9['freshsalesAccounts'][_0x2fee57('0x6aa')][_0x2fee57('0x543')]&&_0x10e9d9[_0x2fee57('0x1ae9')](),_0x4cd728[_0x2fee57('0xdfe')]({'title':_0x3c8d8a()['startCase']('FreshsalesAccount')+_0x2fee57('0x1c5e'),'msg':_0xfafbc9[_0x2fee57('0x10ad')]?_0xfafbc9['name']+'\x20has\x20been\x20deleted!':''});})[_0xd2d007('0x103c')](function(_0x3b6304){const _0x40ca96=_0xd2d007;if(_0x3b6304[_0x40ca96('0x1e07')]&&_0x3b6304[_0x40ca96('0x1e07')][_0x40ca96('0x1d4a')]&&_0x3b6304['data'][_0x40ca96('0x1d4a')][_0x40ca96('0x543')]){_0x10e9d9[_0x40ca96('0x1d4a')]=_0x3b6304[_0x40ca96('0x1e07')][_0x40ca96('0x1d4a')]||[{'message':_0x3b6304['toString'](),'type':_0x40ca96('0x1cd6')}];for(let _0x5e7e09=0x0;_0x5e7e09<_0x3b6304[_0x40ca96('0x1e07')]['errors']['length'];_0x5e7e09++){_0x4cd728[_0x40ca96('0x15aa')]({'title':_0x3b6304[_0x40ca96('0x1e07')][_0x40ca96('0x1d4a')][_0x5e7e09]['type'],'msg':_0x3b6304[_0x40ca96('0x1e07')][_0x40ca96('0x1d4a')][_0x5e7e09][_0x40ca96('0x67f')]});}}else _0x4cd728[_0x40ca96('0x15aa')]({'title':_0x3b6304[_0x40ca96('0x276f')]?_0x40ca96('0x137')+_0x3b6304['status']+_0x40ca96('0x160c')+_0x3b6304[_0x40ca96('0x2696')]:_0x40ca96('0x1cd6'),'msg':_0x3b6304[_0x40ca96('0x1e07')]?JSON[_0x40ca96('0x100b')](_0x3b6304['data'][_0x40ca96('0x67f')]):_0x3b6304[_0x40ca96('0x67f')]||_0x3b6304['toString']()});});}function _0x2cea64(){const _0x8ca031=_0x10970c,_0x4d9028=angular['copy'](_0x10e9d9[_0x8ca031('0x10b8')]);return _0x10e9d9['selectedFreshsalesAccounts']=[],_0x4d9028;}function _0x1fdad4(_0x3938d6){const _0x5eafa9=_0x10970c,_0x3f8bcc=_0x998f5e['confirm']()[_0x5eafa9('0x20d6')](_0x5eafa9('0x1fd8'))['htmlContent'](''+_0x10e9d9[_0x5eafa9('0x10b8')][_0x5eafa9('0x543')]+'\x20selected'+_0x5eafa9('0xd23'))[_0x5eafa9('0x217')](_0x5eafa9('0x1c7'))[_0x5eafa9('0x21de')](_0x3938d6)['ok']('OK')[_0x5eafa9('0x1e1f')]('CANCEL');_0x998f5e['show'](_0x3f8bcc)[_0x5eafa9('0x173b')](function(){const _0x4d0771=_0x5eafa9;_0x10e9d9['selectedFreshsalesAccounts'][_0x4d0771('0xa6a')](function(_0x5b0e16){_0x344e63(_0x5b0e16);}),_0x10e9d9[_0x4d0771('0x10b8')]=[];});}function _0x38bb2f(){const _0x18939c=_0x10970c;_0x10e9d9[_0x18939c('0x10b8')]=[];}function _0x59f1ae(){const _0x5ae70b=_0x10970c;_0x10e9d9[_0x5ae70b('0x10b8')]=_0x10e9d9['freshsalesAccounts'][_0x5ae70b('0x6aa')];}}const _0x116093=_0x40f865;_0x2f5eba[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),'salesforceAccounts',_0x566993('0x1ecb'),'api',_0x566993('0x1600'),'license','setting',_0x566993('0x1dc1')];function _0x2f5eba(_0x5032dc,_0x1b7243,_0x538df4,_0x2a02ed,_0x5866a2,_0x1e0087,_0x25551b,_0x5f282d,_0xacf36e,_0x113da8,_0x125504,_0x250fba,_0x15b78b,_0x1b8850){const _0x5fef58=_0x566993,_0xc79378=this;_0xc79378[_0x5fef58('0x155f')]=_0x125504[_0x5fef58('0x14d4')](),_0xc79378['errors']=[],_0xc79378[_0x5fef58('0x251')]=_0x15b78b,_0xc79378[_0x5fef58('0x1a29')]=_0x250fba,_0xc79378[_0x5fef58('0x1dc1')]=_0x1b8850,_0xc79378[_0x5fef58('0xb0')]={},_0xc79378[_0x5fef58('0x644')]=_0xc79378[_0x5fef58('0x251')]&&_0xc79378[_0x5fef58('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xc79378[_0x5fef58('0x20d6')]=_0x5fef58('0x160f'),_0xc79378[_0x5fef58('0x1ecb')]=angular['copy'](_0xacf36e),_0xc79378[_0x5fef58('0x262e')]=_0x5f282d,_0xc79378[_0x5fef58('0xe1e')]=![];!_0xc79378['salesforceAccount']&&(_0xc79378[_0x5fef58('0x1ecb')]={'type':_0x5fef58('0x2324'),'serverUrl':_0x538df4['protocol']()+_0x5fef58('0x122b')+_0x538df4[_0x5fef58('0x4d1')]()+(_0x538df4['port']()?':'+_0x538df4[_0x5fef58('0xe0d')]():'')},_0xc79378[_0x5fef58('0x20d6')]=_0x5fef58('0x129d'),_0xc79378[_0x5fef58('0xe1e')]=!![]);_0xc79378[_0x5fef58('0x3f3')]=_0x3977b3,_0xc79378[_0x5fef58('0x11a8')]=_0x38703b,_0xc79378[_0x5fef58('0x729')]=_0x5d697b,_0xc79378[_0x5fef58('0x11ae')]=_0x536b86,_0xc79378[_0x5fef58('0x18e2')]=_0x5f3d25;function _0x3977b3(){const _0x1b8bb8=_0x5fef58;_0xc79378[_0x1b8bb8('0x1d4a')]=[],_0x113da8[_0x1b8bb8('0x273a')][_0x1b8bb8('0x1195')](_0xc79378[_0x1b8bb8('0x1ecb')])[_0x1b8bb8('0x1964')][_0x1b8bb8('0x173b')](function(_0xc69780){const _0x58b3db=_0x1b8bb8;_0xc79378[_0x58b3db('0x262e')][_0x58b3db('0x1377')](_0xc69780['toJSON']()),_0x25551b[_0x58b3db('0xdfe')]({'title':'SalesforceAccount\x20properly\x20created','msg':_0xc79378[_0x58b3db('0x1ecb')][_0x58b3db('0x10ad')]?_0xc79378['salesforceAccount'][_0x58b3db('0x10ad')]+_0x58b3db('0x209a'):''}),_0x5f3d25(_0xc69780);})[_0x1b8bb8('0x103c')](function(_0x3638f5){const _0x572718=_0x1b8bb8;if(_0x3638f5[_0x572718('0x1e07')]&&_0x3638f5['data'][_0x572718('0x1d4a')]&&_0x3638f5['data'][_0x572718('0x1d4a')][_0x572718('0x543')]){_0xc79378[_0x572718('0x1d4a')]=_0x3638f5['data'][_0x572718('0x1d4a')]||[{'message':_0x3638f5[_0x572718('0x1b75')](),'type':_0x572718('0x24dd')}];for(let _0x44669d=0x0;_0x44669d<_0x3638f5[_0x572718('0x1e07')][_0x572718('0x1d4a')][_0x572718('0x543')];_0x44669d+=0x1){_0x25551b['error']({'title':_0x3638f5[_0x572718('0x1e07')][_0x572718('0x1d4a')][_0x44669d]['type'],'msg':_0x3638f5['data'][_0x572718('0x1d4a')][_0x44669d][_0x572718('0x67f')]});}}else _0x25551b[_0x572718('0x15aa')]({'title':_0x3638f5[_0x572718('0x276f')]?'API:'+_0x3638f5[_0x572718('0x276f')]+'\x20-\x20'+_0x3638f5['statusText']:_0x572718('0x24dd'),'msg':_0x3638f5['data']?JSON['stringify'](_0x3638f5[_0x572718('0x1e07')][_0x572718('0x67f')]):_0x3638f5[_0x572718('0x1b75')]()});});}function _0x38703b(){const _0x107194=_0x5fef58;_0xc79378[_0x107194('0x1d4a')]=[],_0x113da8[_0x107194('0x273a')][_0x107194('0x1842')]({'id':_0xc79378[_0x107194('0x1ecb')]['id']},_0xc79378[_0x107194('0x1ecb')])['$promise']['then'](function(_0x4d6242){const _0x5e7825=_0x107194,_0x188341=_0x3c8d8a()[_0x5e7825('0x18ab')](_0xc79378[_0x5e7825('0x262e')],{'id':_0x4d6242['id']});_0x188341&&_0x3c8d8a()[_0x5e7825('0x9ef')](_0x188341,_0x3c8d8a()[_0x5e7825('0x2114')](_0x4d6242[_0x5e7825('0xf1f')](),_0x3c8d8a()[_0x5e7825('0x1d3e')](_0x188341))),_0x25551b['success']({'title':_0x5e7825('0x1cd2'),'msg':_0xc79378['salesforceAccount'][_0x5e7825('0x10ad')]?_0xc79378['salesforceAccount']['name']+_0x5e7825('0x2788'):''}),_0x5f3d25(_0x4d6242);})[_0x107194('0x103c')](function(_0x3ab6b9){const _0x14120f=_0x107194;if(_0x3ab6b9[_0x14120f('0x1e07')]&&_0x3ab6b9[_0x14120f('0x1e07')]['errors']&&_0x3ab6b9['data']['errors'][_0x14120f('0x543')]){_0xc79378['errors']=_0x3ab6b9[_0x14120f('0x1e07')][_0x14120f('0x1d4a')]||[{'message':_0x3ab6b9[_0x14120f('0x1b75')](),'type':'api.intSalesforceAccount.update'}];for(let _0x29f1cd=0x0;_0x29f1cd<_0x3ab6b9[_0x14120f('0x1e07')][_0x14120f('0x1d4a')]['length'];_0x29f1cd++){_0x25551b[_0x14120f('0x15aa')]({'title':_0x3ab6b9['data'][_0x14120f('0x1d4a')][_0x29f1cd]['type'],'msg':_0x3ab6b9[_0x14120f('0x1e07')][_0x14120f('0x1d4a')][_0x29f1cd][_0x14120f('0x67f')]});}}else _0x25551b[_0x14120f('0x15aa')]({'title':_0x3ab6b9[_0x14120f('0x276f')]?'API:'+_0x3ab6b9[_0x14120f('0x276f')]+_0x14120f('0x160c')+_0x3ab6b9[_0x14120f('0x2696')]:_0x14120f('0x1ece'),'msg':_0x3ab6b9[_0x14120f('0x1e07')]?JSON[_0x14120f('0x100b')](_0x3ab6b9[_0x14120f('0x1e07')]['message']):_0x3ab6b9[_0x14120f('0x1b75')]()});});}function _0x5d697b(_0x6bae14){const _0x1cb5a9=_0x5fef58;_0xc79378['errors']=[];const _0x220122=_0x2a02ed['confirm']()[_0x1cb5a9('0x20d6')](_0x1cb5a9('0x8ef'))[_0x1cb5a9('0x732')](_0x1cb5a9('0x62a'))[_0x1cb5a9('0x217')]('Delete\x20SalesforceAccount')['ok'](_0x1cb5a9('0x2373'))[_0x1cb5a9('0x1e1f')](_0x1cb5a9('0x1d4e'))[_0x1cb5a9('0x21de')](_0x6bae14);_0x2a02ed[_0x1cb5a9('0x1cb7')](_0x220122)[_0x1cb5a9('0x173b')](function(){const _0x33b080=_0x1cb5a9;_0x113da8['intSalesforceAccount']['delete']({'id':_0xc79378[_0x33b080('0x1ecb')]['id']})[_0x33b080('0x1964')][_0x33b080('0x173b')](function(){const _0x173dc7=_0x33b080;_0x3c8d8a()['remove'](_0xc79378[_0x173dc7('0x262e')],{'id':_0xc79378['salesforceAccount']['id']}),_0x25551b[_0x173dc7('0xdfe')]({'title':'SalesforceAccount\x20properly\x20deleted!','msg':(_0xc79378[_0x173dc7('0x1ecb')][_0x173dc7('0x10ad')]||_0x173dc7('0x1ecb'))+_0x173dc7('0x25d2')}),_0x5f3d25(_0xc79378[_0x173dc7('0x1ecb')]);})[_0x33b080('0x103c')](function(_0x2cf9de){const _0x328cb5=_0x33b080;if(_0x2cf9de[_0x328cb5('0x1e07')]&&_0x2cf9de[_0x328cb5('0x1e07')][_0x328cb5('0x1d4a')]&&_0x2cf9de[_0x328cb5('0x1e07')][_0x328cb5('0x1d4a')][_0x328cb5('0x543')]){_0xc79378['errors']=_0x2cf9de[_0x328cb5('0x1e07')][_0x328cb5('0x1d4a')]||[{'message':_0x2cf9de[_0x328cb5('0x1b75')](),'type':_0x328cb5('0x11b7')}];for(let _0xcf85e1=0x0;_0xcf85e1<_0x2cf9de['data'][_0x328cb5('0x1d4a')][_0x328cb5('0x543')];_0xcf85e1++){_0x25551b['error']({'title':_0x2cf9de[_0x328cb5('0x1e07')][_0x328cb5('0x1d4a')][_0xcf85e1][_0x328cb5('0x1810')],'msg':_0x2cf9de[_0x328cb5('0x1e07')][_0x328cb5('0x1d4a')][_0xcf85e1][_0x328cb5('0x67f')]});}}else _0x25551b[_0x328cb5('0x15aa')]({'title':_0x2cf9de[_0x328cb5('0x276f')]?_0x328cb5('0x137')+_0x2cf9de['status']+'\x20-\x20'+_0x2cf9de[_0x328cb5('0x2696')]:'api.intSalesforceAccount.delete','msg':_0x2cf9de[_0x328cb5('0x1e07')]?JSON[_0x328cb5('0x100b')](_0x2cf9de[_0x328cb5('0x1e07')]['message']):_0x2cf9de['message']||_0x2cf9de[_0x328cb5('0x1b75')]()});});},function(){});}function _0x536b86(_0x1f1e1d){return _0x1f1e1d===null?undefined:new Date(_0x1f1e1d);}function _0x5f3d25(_0x5141db){const _0x4d250a=_0x5fef58;_0x2a02ed[_0x4d250a('0x1cf4')](_0x5141db);}}const _0x46ff42=_0x2f5eba,_0x3ee00d=_0x21a6a1['p']+_0x566993('0x13a6'),_0x272834=_0x21a6a1['p']+_0x566993('0xdb3');_0x519914[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0x1b82'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600')];function _0x519914(_0x10c921,_0x430e43,_0x4dbc3f,_0x602463,_0xfdad48){const _0xee9542=_0x566993,_0x5da716=this;_0x5da716[_0xee9542('0x155f')]=_0xfdad48['getCurrentUser'](),_0x5da716[_0xee9542('0x1ecb')]={},_0x5da716['salesforceConfiguration']={},_0x5da716[_0xee9542('0x294')]=[],_0x5da716[_0xee9542('0x20aa')]=-0x1,_0x5da716[_0xee9542('0x1dc1')],_0x5da716[_0xee9542('0xb9c')]=_0x55b4ed,_0x5da716[_0xee9542('0x164d')]=_0x462cea,_0x5da716[_0xee9542('0x848')]=_0x1cefc1,_0x5da716['deleteSalesforceConfiguration']=_0x4e2717,_0x5da716[_0xee9542('0x9e3')]=_0x2b0770;function _0x2b0770(){const _0x1812b3=_0xee9542;return _0x4dbc3f[_0x1812b3('0x2226')]['update']({'id':_0x5da716[_0x1812b3('0x15e5')]['id']},_0x5da716['salesforceConfiguration'])[_0x1812b3('0x1964')][_0x1812b3('0x173b')](function(){const _0x274e57=_0x1812b3;_0x602463['success']({'title':_0x274e57('0x1814'),'msg':_0x274e57('0x1a8e')});})[_0x1812b3('0x103c')](function(_0xe92d0e){const _0x3b76c6=_0x1812b3;_0x602463[_0x3b76c6('0x15aa')]({'title':_0xe92d0e['status']?_0x3b76c6('0x137')+_0xe92d0e['status']+_0x3b76c6('0x160c')+_0xe92d0e[_0x3b76c6('0x2696')]:'SYSTEM:UPDATECONFIGURATIONFIELD','msg':_0xe92d0e['data']?JSON[_0x3b76c6('0x100b')](_0xe92d0e[_0x3b76c6('0x1e07')]):_0xe92d0e[_0x3b76c6('0x1b75')]()});});}function _0x55b4ed(_0x4b3ad3,_0x1a2393){const _0x4194aa=_0xee9542;_0x5da716[_0x4194aa('0x1ecb')]=_0x4b3ad3,_0x5da716['crudPermissions']=typeof _0x1a2393!=='undefined'?_0x1a2393:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4dbc3f[_0x4194aa('0x273a')]['getConfigurations']({'id':_0x5da716['salesforceAccount']['id'],'sort':'-updatedAt'})[_0x4194aa('0x1964')][_0x4194aa('0x173b')](function(_0x5eff5a){const _0xb25a8f=_0x4194aa;return _0x5da716[_0xb25a8f('0x294')]=_0x5eff5a[_0xb25a8f('0x6aa')]?_0x5eff5a['rows']:[],_0x5da716[_0xb25a8f('0x294')][_0xb25a8f('0x543')]&&_0x5da716[_0xb25a8f('0x164d')](0x0),_0x4dbc3f[_0xb25a8f('0x1b56')][_0xb25a8f('0x1d97')]({'nolimit':!![],'sort':_0xb25a8f('0x10ad')})['$promise'];})[_0x4194aa('0x173b')](function(_0x32458f){const _0x6dd252=_0x4194aa;_0x5da716[_0x6dd252('0x2715')]=_0x32458f[_0x6dd252('0x6aa')]?_0x32458f[_0x6dd252('0x6aa')]:[],_0x5da716[_0x6dd252('0x17f8')]=_0x3c8d8a()[_0x6dd252('0x128')](_0x5da716['variables'],'id');})['catch'](function(_0x38c527){const _0x3abb75=_0x4194aa;_0x602463[_0x3abb75('0x15aa')]({'title':_0x38c527['status']?_0x3abb75('0x137')+_0x38c527[_0x3abb75('0x276f')]+_0x3abb75('0x160c')+_0x38c527[_0x3abb75('0x2696')]:'SYSTEM:GETCONFIGURATION','msg':_0x38c527[_0x3abb75('0x1e07')]?JSON['stringify'](_0x38c527[_0x3abb75('0x1e07')]):_0x38c527[_0x3abb75('0x1b75')]()});});}function _0x462cea(_0x12e129){const _0x29d455=_0xee9542;_0x5da716['salesforceConfiguration']=_0x5da716[_0x29d455('0x294')][_0x12e129],_0x5da716[_0x29d455('0x20aa')]=_0x12e129,_0x4dbc3f[_0x29d455('0x2226')][_0x29d455('0x717')]({'id':_0x5da716[_0x29d455('0x15e5')]['id']})['$promise'][_0x29d455('0x173b')](function(_0x4d7627){const _0x1e4ff1=_0x29d455;return _0x5da716[_0x1e4ff1('0x1b35')]=_0x4d7627['rows']?_0x4d7627[_0x1e4ff1('0x6aa')]:[],_0x4dbc3f['intSalesforceConfiguration']['getDescriptions']({'id':_0x5da716[_0x1e4ff1('0x15e5')]['id']})[_0x1e4ff1('0x1964')];})['then'](function(_0x4b13ac){const _0x2c9b23=_0x29d455;return _0x5da716[_0x2c9b23('0xb60')]=_0x4b13ac[_0x2c9b23('0x6aa')]?_0x4b13ac[_0x2c9b23('0x6aa')]:[],_0x4dbc3f['intSalesforceConfiguration']['getFields']({'id':_0x5da716[_0x2c9b23('0x15e5')]['id']})[_0x2c9b23('0x1964')];})[_0x29d455('0x173b')](function(_0x34c1ee){const _0xb82be3=_0x29d455;_0x5da716[_0xb82be3('0x2340')]=_0x34c1ee['rows']?_0x34c1ee[_0xb82be3('0x6aa')]:[];})[_0x29d455('0x103c')](function(_0x47be0c){const _0x2cf640=_0x29d455;_0x602463['error']({'title':_0x47be0c[_0x2cf640('0x276f')]?_0x2cf640('0x137')+_0x47be0c[_0x2cf640('0x276f')]+_0x2cf640('0x160c')+_0x47be0c[_0x2cf640('0x2696')]:'SYSTEM:GETConfigurations','msg':_0x47be0c['data']?JSON[_0x2cf640('0x100b')](_0x47be0c[_0x2cf640('0x1e07')]):_0x47be0c[_0x2cf640('0x1b75')]()});});}function _0x1cefc1(_0x5e6988,_0xa5f07f){const _0x3e0332=_0xee9542;_0x10c921[_0x3e0332('0x1cb7')]({'controller':_0x3e0332('0xc06'),'controllerAs':'vm','templateUrl':_0x3ee00d,'parent':angular['element'](_0x430e43[_0x3e0332('0x1a5')]),'targetEvent':_0x5e6988,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0xa5f07f,'configurations':_0x5da716[_0x3e0332('0x294')],'license':null,'setting':null,'crudPermissions':_0x5da716['crudPermissions']}})[_0x3e0332('0xf25')](function(){const _0x32f06e=_0x3e0332;_0x5da716[_0x32f06e('0x164d')](0x0);});}function _0x4e2717(_0xe94027,_0x46d946){const _0x41809a=_0xee9542,_0x2fcf8f=_0x10c921[_0x41809a('0x1d02')]()[_0x41809a('0x20d6')](_0x41809a('0x1fc5'))[_0x41809a('0xf8b')](_0x41809a('0x15b9')+(_0x46d946[_0x41809a('0x10ad')]||_0x41809a('0x15e5'))+_0x41809a('0x24be')+'\x20will\x20be\x20deleted.')[_0x41809a('0x217')](_0x41809a('0x62f'))[_0x41809a('0x21de')](_0xe94027)['ok']('OK')['cancel'](_0x41809a('0x468'));_0x10c921[_0x41809a('0x1cb7')](_0x2fcf8f)['then'](function(){const _0x5997b1=_0x41809a;_0x4dbc3f['intSalesforceConfiguration'][_0x5997b1('0x15e8')]({'id':_0x46d946['id']})[_0x5997b1('0x1964')][_0x5997b1('0x173b')](function(){const _0x525b94=_0x5997b1;_0x3c8d8a()[_0x525b94('0x1a8b')](_0x5da716[_0x525b94('0x294')],{'id':_0x46d946['id']}),_0x602463[_0x525b94('0xdfe')]({'title':_0x525b94('0x9a6'),'msg':_0x46d946[_0x525b94('0x10ad')]?_0x46d946[_0x525b94('0x10ad')]+_0x525b94('0x25d2'):''});})[_0x5997b1('0x103c')](function(_0x28331d){const _0x3dabcf=_0x5997b1;_0x602463['error']({'title':_0x28331d[_0x3dabcf('0x276f')]?_0x3dabcf('0x137')+_0x28331d['status']+_0x3dabcf('0x160c')+_0x28331d[_0x3dabcf('0x2696')]:_0x3dabcf('0x1d30'),'msg':_0x28331d[_0x3dabcf('0x1e07')]?JSON[_0x3dabcf('0x100b')](_0x28331d[_0x3dabcf('0x1e07')]):_0x28331d['toString']()});})[_0x5997b1('0xf25')](function(){const _0x3cdf52=_0x5997b1;_0x5da716[_0x3cdf52('0x164d')](0x0);});},function(){const _0x2f91cf=_0x41809a;console[_0x2f91cf('0xe37')](_0x2f91cf('0x468'));});}_0x5da716[_0xee9542('0x276e')]=[],_0x5da716[_0xee9542('0x1317')]=_0x3c6860,_0x5da716['deleteSubjectConfirm']=_0x59ec85,_0x5da716['deleteSelectedSubjects']=_0x1ed52e;function _0x3c6860(_0x2e3703,_0x12509a){const _0x4860b6=_0xee9542;_0x10c921['show']({'controller':_0x4860b6('0xa10'),'controllerAs':'vm','templateUrl':_0x272834,'parent':angular[_0x4860b6('0xb6d')](_0x430e43[_0x4860b6('0x1a5')]),'targetEvent':_0x2e3703,'clickOutsideToClose':!![],'locals':{'type':_0x4860b6('0x11bc'),'item':_0x12509a,'items':_0x5da716[_0x4860b6('0x1b35')],'configuration':_0x5da716['salesforceConfiguration'],'account':_0x5da716[_0x4860b6('0x1ecb')],'license':null,'setting':null,'crudPermissions':_0x5da716[_0x4860b6('0x1dc1')]}});}function _0x32e25b(_0x80aeb3){const _0xddbcbf=_0xee9542;_0x4dbc3f[_0xddbcbf('0xcc7')][_0xddbcbf('0x15e8')]({'id':_0x80aeb3['id']})[_0xddbcbf('0x1964')][_0xddbcbf('0x173b')](function(){const _0x522cc3=_0xddbcbf;_0x3c8d8a()[_0x522cc3('0x1a8b')](_0x5da716['subjects'],{'id':_0x80aeb3['id']}),_0x602463[_0x522cc3('0xdfe')]({'title':'Subject\x20deleted!','msg':'Subject\x20has\x20been\x20deleted!'});})[_0xddbcbf('0x103c')](function(_0x5a0b4e){const _0x21e3a9=_0xddbcbf;_0x602463['error']({'title':_0x5a0b4e[_0x21e3a9('0x276f')]?_0x21e3a9('0x137')+_0x5a0b4e[_0x21e3a9('0x276f')]+_0x21e3a9('0x160c')+_0x5a0b4e[_0x21e3a9('0x2696')]:_0x21e3a9('0x1400'),'msg':_0x5a0b4e[_0x21e3a9('0x1e07')]?JSON[_0x21e3a9('0x100b')](_0x5a0b4e['data']):_0x5a0b4e[_0x21e3a9('0x1b75')]()});});}function _0x59ec85(_0x4571a7,_0x212be9){const _0x25fb3e=_0xee9542,_0x52f5fa=_0x10c921[_0x25fb3e('0x1d02')]()[_0x25fb3e('0x20d6')](_0x25fb3e('0x31c'))[_0x25fb3e('0xf8b')](_0x25fb3e('0x1274')+_0x25fb3e('0xd23'))[_0x25fb3e('0x217')](_0x25fb3e('0x18b8'))[_0x25fb3e('0x21de')](_0x4571a7)['ok']('OK')['cancel'](_0x25fb3e('0x468'));_0x10c921['show'](_0x52f5fa)['then'](function(){_0x32e25b(_0x212be9);},function(){const _0x3e82ca=_0x25fb3e;console[_0x3e82ca('0xe37')](_0x3e82ca('0x468'));});}function _0x1ed52e(_0xed7a95){const _0x2c769b=_0xee9542,_0x1ab22d=_0x10c921['confirm']()['title'](_0x2c769b('0x837'))[_0x2c769b('0xf8b')](_0x2c769b('0x15b9')+_0x5da716[_0x2c769b('0x276e')][_0x2c769b('0x543')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x2c769b('0x217')]('delete\x20subjects')[_0x2c769b('0x21de')](_0xed7a95)['ok']('OK')['cancel'](_0x2c769b('0x468'));_0x10c921['show'](_0x1ab22d)['then'](function(){const _0x1db1f6=_0x2c769b;_0x5da716[_0x1db1f6('0x276e')][_0x1db1f6('0xa6a')](function(_0x96bcbf){_0x32e25b(_0x96bcbf);}),_0x5da716[_0x1db1f6('0x276e')]=[];});}_0x5da716['selectedDescriptions']=[],_0x5da716[_0xee9542('0x1720')]=_0xf2b13f,_0x5da716[_0xee9542('0x7e4')]=_0x3b9476,_0x5da716[_0xee9542('0x51d')]=_0x4ed159;function _0xf2b13f(_0x153e14,_0x1e4f9d){const _0x22949b=_0xee9542;_0x10c921[_0x22949b('0x1cb7')]({'controller':_0x22949b('0xa10'),'controllerAs':'vm','templateUrl':_0x272834,'parent':angular['element'](_0x430e43[_0x22949b('0x1a5')]),'targetEvent':_0x153e14,'clickOutsideToClose':!![],'locals':{'type':_0x22949b('0x1c55'),'item':_0x1e4f9d,'items':_0x5da716[_0x22949b('0xb60')],'configuration':_0x5da716[_0x22949b('0x15e5')],'account':_0x5da716[_0x22949b('0x1ecb')],'license':null,'setting':null,'crudPermissions':_0x5da716[_0x22949b('0x1dc1')]}});}function _0x468b98(_0x57a1e4){const _0x39f220=_0xee9542;_0x4dbc3f['intSalesforceField']['delete']({'id':_0x57a1e4['id']})['$promise'][_0x39f220('0x173b')](function(){const _0x54adbd=_0x39f220;_0x3c8d8a()[_0x54adbd('0x1a8b')](_0x5da716['descriptions'],{'id':_0x57a1e4['id']}),_0x602463[_0x54adbd('0xdfe')]({'title':_0x54adbd('0x1c35'),'msg':_0x54adbd('0x2298')});})[_0x39f220('0x103c')](function(_0x1cec06){const _0x53c155=_0x39f220;_0x602463[_0x53c155('0x15aa')]({'title':_0x1cec06[_0x53c155('0x276f')]?_0x53c155('0x137')+_0x1cec06[_0x53c155('0x276f')]+_0x53c155('0x160c')+_0x1cec06[_0x53c155('0x2696')]:_0x53c155('0x1400'),'msg':_0x1cec06['data']?JSON[_0x53c155('0x100b')](_0x1cec06['data']):_0x1cec06[_0x53c155('0x1b75')]()});});}function _0x3b9476(_0x50b9ec,_0x5a031b){const _0x571b6f=_0xee9542,_0x1639c4=_0x10c921[_0x571b6f('0x1d02')]()[_0x571b6f('0x20d6')](_0x571b6f('0x11d7'))[_0x571b6f('0xf8b')]('Description'+_0x571b6f('0xd23'))['ariaLabel'](_0x571b6f('0xfff'))[_0x571b6f('0x21de')](_0x50b9ec)['ok']('OK')['cancel']('CANCEL');_0x10c921['show'](_0x1639c4)[_0x571b6f('0x173b')](function(){_0x468b98(_0x5a031b);},function(){const _0x1d4243=_0x571b6f;console[_0x1d4243('0xe37')](_0x1d4243('0x468'));});}function _0x4ed159(_0x25dbd3){const _0x4aefb2=_0xee9542,_0x486e6a=_0x10c921[_0x4aefb2('0x1d02')]()[_0x4aefb2('0x20d6')](_0x4aefb2('0x1807'))[_0x4aefb2('0xf8b')](_0x4aefb2('0x15b9')+_0x5da716[_0x4aefb2('0x10e1')][_0x4aefb2('0x543')]+_0x4aefb2('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4aefb2('0x11fd'))[_0x4aefb2('0x21de')](_0x25dbd3)['ok']('OK')[_0x4aefb2('0x1e1f')](_0x4aefb2('0x468'));_0x10c921['show'](_0x486e6a)['then'](function(){const _0x799d18=_0x4aefb2;_0x5da716['selectedDescriptions'][_0x799d18('0xa6a')](function(_0x24adb8){_0x468b98(_0x24adb8);}),_0x5da716[_0x799d18('0x10e1')]=[];});}_0x5da716[_0xee9542('0x86d')]=[],_0x5da716[_0xee9542('0xbb7')]=_0x37c40d,_0x5da716[_0xee9542('0x218b')]=_0x24b02b,_0x5da716[_0xee9542('0x252f')]=_0x35d43f;function _0x37c40d(_0x338248,_0x4fbdc6){const _0x382112=_0xee9542;_0x10c921[_0x382112('0x1cb7')]({'controller':_0x382112('0xa10'),'controllerAs':'vm','templateUrl':_0x272834,'parent':angular[_0x382112('0xb6d')](_0x430e43[_0x382112('0x1a5')]),'targetEvent':_0x338248,'clickOutsideToClose':!![],'locals':{'type':_0x382112('0x81d'),'item':_0x4fbdc6,'items':_0x5da716['fields'],'configuration':_0x5da716[_0x382112('0x15e5')],'account':_0x5da716[_0x382112('0x1ecb')],'license':null,'setting':null,'crudPermissions':_0x5da716[_0x382112('0x1dc1')]}});}function _0x300a3c(_0x37dd6e){const _0x345ebf=_0xee9542;_0x4dbc3f[_0x345ebf('0xcc7')][_0x345ebf('0x15e8')]({'id':_0x37dd6e['id']})['$promise'][_0x345ebf('0x173b')](function(){const _0x4d4d4b=_0x345ebf;_0x3c8d8a()['remove'](_0x5da716[_0x4d4d4b('0x2340')],{'id':_0x37dd6e['id']}),_0x602463[_0x4d4d4b('0xdfe')]({'title':_0x4d4d4b('0x2262'),'msg':_0x4d4d4b('0x1063')});})[_0x345ebf('0x103c')](function(_0x3380ca){const _0xd98f50=_0x345ebf;_0x602463[_0xd98f50('0x15aa')]({'title':_0x3380ca['status']?_0xd98f50('0x137')+_0x3380ca[_0xd98f50('0x276f')]+'\x20-\x20'+_0x3380ca[_0xd98f50('0x2696')]:_0xd98f50('0x1400'),'msg':_0x3380ca['data']?JSON[_0xd98f50('0x100b')](_0x3380ca['data']):_0x3380ca[_0xd98f50('0x1b75')]()});});}function _0x24b02b(_0x4d1564,_0x5cd5d4){const _0x312b43=_0xee9542,_0x34964f=_0x10c921[_0x312b43('0x1d02')]()[_0x312b43('0x20d6')](_0x312b43('0x985'))[_0x312b43('0xf8b')]('Field'+_0x312b43('0xd23'))[_0x312b43('0x217')](_0x312b43('0x1b20'))['targetEvent'](_0x4d1564)['ok']('OK')[_0x312b43('0x1e1f')](_0x312b43('0x468'));_0x10c921[_0x312b43('0x1cb7')](_0x34964f)[_0x312b43('0x173b')](function(){_0x300a3c(_0x5cd5d4);},function(){const _0x5a5194=_0x312b43;console[_0x5a5194('0xe37')]('CANCEL');});}function _0x35d43f(_0x5f5a9b){const _0x1d04c5=_0xee9542,_0x45650a=_0x10c921[_0x1d04c5('0x1d02')]()['title'](_0x1d04c5('0x18ba'))['htmlContent'](_0x1d04c5('0x15b9')+_0x5da716[_0x1d04c5('0x86d')][_0x1d04c5('0x543')]+_0x1d04c5('0xcb4')+_0x1d04c5('0xd23'))[_0x1d04c5('0x217')]('delete\x20fields')[_0x1d04c5('0x21de')](_0x5f5a9b)['ok']('OK')[_0x1d04c5('0x1e1f')](_0x1d04c5('0x468'));_0x10c921[_0x1d04c5('0x1cb7')](_0x45650a)[_0x1d04c5('0x173b')](function(){const _0x1aa722=_0x1d04c5;_0x5da716[_0x1aa722('0x86d')][_0x1aa722('0xa6a')](function(_0x1f7a7e){_0x300a3c(_0x1f7a7e);}),_0x5da716['selectedFields']=[];});}}const _0x4e91e8=_0x519914;_0x371d06[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x294'),_0x566993('0x15e5'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x371d06(_0x56dc56,_0x18d58d,_0xce8278,_0xf9c037,_0x586739,_0x2a3f89,_0x3a65f8,_0x3ec125,_0x5ae01c,_0x1555ed,_0x509d27,_0x52adbe,_0x4edd93,_0x5277ed){const _0x1c0ddb=_0x566993,_0x5e30a7=this;_0x5e30a7[_0x1c0ddb('0x155f')]=_0x509d27[_0x1c0ddb('0x14d4')](),_0x5e30a7['errors']=[],_0x5e30a7[_0x1c0ddb('0x251')]=_0x4edd93,_0x5e30a7[_0x1c0ddb('0x1a29')]=_0x52adbe,_0x5e30a7['crudPermissions']=_0x5277ed,_0x5e30a7[_0x1c0ddb('0xb0')]={},_0x5e30a7[_0x1c0ddb('0x644')]=_0x5e30a7[_0x1c0ddb('0x251')]&&_0x5e30a7[_0x1c0ddb('0x251')][_0x1c0ddb('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5e30a7['title']=_0x1c0ddb('0x1161'),_0x5e30a7[_0x1c0ddb('0x15e5')]=angular[_0x1c0ddb('0x2e3')](_0x5ae01c),_0x5e30a7[_0x1c0ddb('0x294')]=_0x3ec125,_0x5e30a7['newSalesforceConfiguration']=![];!_0x5e30a7[_0x1c0ddb('0x15e5')]&&(_0x5e30a7[_0x1c0ddb('0x15e5')]={'channel':'voice','type':_0x1c0ddb('0x1755'),'ticketType':_0x1c0ddb('0x1f07')},_0x5e30a7['title']=_0x1c0ddb('0x1ef4'),_0x5e30a7['newSalesforceConfiguration']=!![]);_0x5e30a7[_0x1c0ddb('0x279f')]=_0x21efac,_0x5e30a7['saveSalesforceConfiguration']=_0x183eb9,_0x5e30a7[_0x1c0ddb('0x2005')]=_0x3b6c4c,_0x5e30a7[_0x1c0ddb('0x11ae')]=_0x3986bb,_0x5e30a7[_0x1c0ddb('0x18e2')]=_0x267afd;function _0x21efac(){const _0x3ef63c=_0x1c0ddb;_0x5e30a7[_0x3ef63c('0x1d4a')]=[],_0x1555ed[_0x3ef63c('0x273a')][_0x3ef63c('0x795')]({'id':_0x18d58d[_0x3ef63c('0x197a')]['id']},_0x5e30a7[_0x3ef63c('0x15e5')])['$promise'][_0x3ef63c('0x173b')](function(_0x3b7cef){const _0x56e319=_0x3ef63c;_0x5e30a7['configurations']['unshift'](_0x3b7cef[_0x56e319('0xf1f')]()),_0x3a65f8[_0x56e319('0xdfe')]({'title':_0x56e319('0xfe4'),'msg':_0x5e30a7['salesforceConfiguration'][_0x56e319('0x10ad')]?_0x5e30a7['salesforceConfiguration']['name']+_0x56e319('0x209a'):''}),_0x267afd(_0x3b7cef);})[_0x3ef63c('0x103c')](function(_0xb22518){const _0x450174=_0x3ef63c;if(_0xb22518[_0x450174('0x1e07')]&&_0xb22518[_0x450174('0x1e07')]['errors']&&_0xb22518[_0x450174('0x1e07')][_0x450174('0x1d4a')][_0x450174('0x543')]){_0x5e30a7[_0x450174('0x1d4a')]=_0xb22518[_0x450174('0x1e07')]['errors']||[{'message':_0xb22518[_0x450174('0x1b75')](),'type':_0x450174('0x152')}];for(let _0x539ab7=0x0;_0x539ab7<_0xb22518[_0x450174('0x1e07')][_0x450174('0x1d4a')][_0x450174('0x543')];_0x539ab7+=0x1){_0x3a65f8[_0x450174('0x15aa')]({'title':_0xb22518[_0x450174('0x1e07')][_0x450174('0x1d4a')][_0x539ab7][_0x450174('0x1810')],'msg':_0xb22518[_0x450174('0x1e07')][_0x450174('0x1d4a')][_0x539ab7][_0x450174('0x67f')]});}}else _0x3a65f8['error']({'title':_0xb22518[_0x450174('0x276f')]?'API:'+_0xb22518[_0x450174('0x276f')]+'\x20-\x20'+_0xb22518[_0x450174('0x2696')]:'api.intSalesforceConfiguration.save','msg':_0xb22518[_0x450174('0x1e07')]?JSON['stringify'](_0xb22518['data'][_0x450174('0x67f')]):_0xb22518[_0x450174('0x1b75')]()});});}function _0x183eb9(){const _0x2fd5c5=_0x1c0ddb;_0x5e30a7[_0x2fd5c5('0x1d4a')]=[],_0x1555ed[_0x2fd5c5('0x2226')][_0x2fd5c5('0x1842')]({'id':_0x5e30a7[_0x2fd5c5('0x15e5')]['id']},_0x5e30a7[_0x2fd5c5('0x15e5')])[_0x2fd5c5('0x1964')][_0x2fd5c5('0x173b')](function(_0x284ae4){const _0x372782=_0x2fd5c5,_0x21da31=_0x3c8d8a()[_0x372782('0x18ab')](_0x5e30a7[_0x372782('0x294')],{'id':_0x284ae4['id']});_0x21da31&&_0x3c8d8a()[_0x372782('0x9ef')](_0x21da31,_0x3c8d8a()[_0x372782('0x2114')](_0x284ae4[_0x372782('0xf1f')](),_0x3c8d8a()['keys'](_0x21da31))),_0x3a65f8[_0x372782('0xdfe')]({'title':'SalesforceConfiguration\x20properly\x20saved!','msg':_0x5e30a7[_0x372782('0x15e5')][_0x372782('0x10ad')]?_0x5e30a7[_0x372782('0x15e5')]['name']+_0x372782('0x2788'):''}),_0x267afd(_0x284ae4);})['catch'](function(_0x3064ec){const _0x4640d9=_0x2fd5c5;if(_0x3064ec['data']&&_0x3064ec[_0x4640d9('0x1e07')]['errors']&&_0x3064ec[_0x4640d9('0x1e07')]['errors'][_0x4640d9('0x543')]){_0x5e30a7[_0x4640d9('0x1d4a')]=_0x3064ec[_0x4640d9('0x1e07')][_0x4640d9('0x1d4a')]||[{'message':_0x3064ec[_0x4640d9('0x1b75')](),'type':_0x4640d9('0x206b')}];for(let _0x545d58=0x0;_0x545d58<_0x3064ec[_0x4640d9('0x1e07')][_0x4640d9('0x1d4a')][_0x4640d9('0x543')];_0x545d58++){_0x3a65f8[_0x4640d9('0x15aa')]({'title':_0x3064ec['data']['errors'][_0x545d58][_0x4640d9('0x1810')],'msg':_0x3064ec[_0x4640d9('0x1e07')][_0x4640d9('0x1d4a')][_0x545d58][_0x4640d9('0x67f')]});}}else _0x3a65f8[_0x4640d9('0x15aa')]({'title':_0x3064ec[_0x4640d9('0x276f')]?'API:'+_0x3064ec[_0x4640d9('0x276f')]+_0x4640d9('0x160c')+_0x3064ec['statusText']:_0x4640d9('0x206b'),'msg':_0x3064ec['data']?JSON[_0x4640d9('0x100b')](_0x3064ec['data']['message']):_0x3064ec[_0x4640d9('0x1b75')]()});});}function _0x3b6c4c(_0x4dddf7){const _0x36909f=_0x1c0ddb;_0x5e30a7['errors']=[];const _0x128fd2=_0xf9c037[_0x36909f('0x1d02')]()[_0x36909f('0x20d6')]('Are\x20you\x20sure?')[_0x36909f('0x732')](_0x36909f('0x1fc1'))[_0x36909f('0x217')](_0x36909f('0x170a'))['ok']('Delete')['cancel'](_0x36909f('0x1d4e'))[_0x36909f('0x21de')](_0x4dddf7);_0xf9c037[_0x36909f('0x1cb7')](_0x128fd2)[_0x36909f('0x173b')](function(){const _0x7d442d=_0x36909f;_0x1555ed[_0x7d442d('0x2226')][_0x7d442d('0x15e8')]({'id':_0x5e30a7[_0x7d442d('0x15e5')]['id']})[_0x7d442d('0x1964')]['then'](function(){const _0x31acbd=_0x7d442d;_0x3c8d8a()['remove'](_0x5e30a7['configurations'],{'id':_0x5e30a7['salesforceConfiguration']['id']}),_0x3a65f8[_0x31acbd('0xdfe')]({'title':_0x31acbd('0x1132'),'msg':(_0x5e30a7['salesforceConfiguration']['name']||'salesforceConfiguration')+_0x31acbd('0x25d2')}),_0x267afd(_0x5e30a7[_0x31acbd('0x15e5')]);})[_0x7d442d('0x103c')](function(_0x5e0600){const _0x32b1b4=_0x7d442d;if(_0x5e0600[_0x32b1b4('0x1e07')]&&_0x5e0600[_0x32b1b4('0x1e07')][_0x32b1b4('0x1d4a')]&&_0x5e0600[_0x32b1b4('0x1e07')][_0x32b1b4('0x1d4a')][_0x32b1b4('0x543')]){_0x5e30a7[_0x32b1b4('0x1d4a')]=_0x5e0600[_0x32b1b4('0x1e07')][_0x32b1b4('0x1d4a')]||[{'message':_0x5e0600[_0x32b1b4('0x1b75')](),'type':_0x32b1b4('0xb6f')}];for(let _0x106f88=0x0;_0x106f88<_0x5e0600['data'][_0x32b1b4('0x1d4a')]['length'];_0x106f88++){_0x3a65f8[_0x32b1b4('0x15aa')]({'title':_0x5e0600[_0x32b1b4('0x1e07')][_0x32b1b4('0x1d4a')][_0x106f88][_0x32b1b4('0x1810')],'msg':_0x5e0600[_0x32b1b4('0x1e07')][_0x32b1b4('0x1d4a')][_0x106f88]['message']});}}else _0x3a65f8[_0x32b1b4('0x15aa')]({'title':_0x5e0600[_0x32b1b4('0x276f')]?'API:'+_0x5e0600['status']+_0x32b1b4('0x160c')+_0x5e0600['statusText']:_0x32b1b4('0xb6f'),'msg':_0x5e0600['data']?JSON['stringify'](_0x5e0600[_0x32b1b4('0x1e07')][_0x32b1b4('0x67f')]):_0x5e0600[_0x32b1b4('0x67f')]||_0x5e0600['toString']()});});},function(){});}function _0x3986bb(_0x5a6800){return _0x5a6800===null?undefined:new Date(_0x5a6800);}function _0x267afd(_0x5dffce){const _0x3738bc=_0x1c0ddb;_0xf9c037[_0x3738bc('0x1cf4')](_0x5dffce);}}const _0x349e6e=_0x371d06;_0x234921['$inject']=['$scope',_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'toasty',_0x566993('0x1dde'),_0x566993('0x1b1f'),_0x566993('0x54'),_0x566993('0xde4'),_0x566993('0x1810'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x234921(_0x546d42,_0x41c245,_0x27a7e2,_0x2a3a48,_0x28cb0c,_0x2ef23d,_0x410706,_0x518f2e,_0x305285,_0x3c351a,_0x151d81,_0x44c231,_0x58a65b){const _0x5bd0a4=_0x566993,_0x3fca30=this;_0x3fca30[_0x5bd0a4('0x155f')]=_0x44c231[_0x5bd0a4('0x14d4')](),_0x3fca30[_0x5bd0a4('0x1d4a')]=[],_0x3fca30[_0x5bd0a4('0x20d6')]=_0x5bd0a4('0x3a0')+_0x3c8d8a()['toUpper'](_0x3c351a),_0x3fca30[_0x5bd0a4('0x54')]=angular[_0x5bd0a4('0x2e3')](_0x518f2e),_0x3fca30[_0x5bd0a4('0x1b1f')]=_0x410706,_0x3fca30[_0x5bd0a4('0x1810')]=_0x3c351a,_0x3fca30['crudPermissions']=_0x58a65b,_0x3fca30[_0x5bd0a4('0x7')]=![];!_0x3fca30[_0x5bd0a4('0x54')]&&(_0x3fca30[_0x5bd0a4('0x54')]={'type':_0x5bd0a4('0x1533')},_0x3fca30[_0x5bd0a4('0x54')][_0x3c8d8a()[_0x5bd0a4('0x587')](_0x3c351a)+'Id']=_0x2ef23d['id'],_0x3fca30[_0x5bd0a4('0x20d6')]=_0x5bd0a4('0x99f')+_0x3c8d8a()['toUpper'](_0x3c351a),_0x3fca30['newItem']=!![]);_0x3fca30[_0x5bd0a4('0x221f')]=_0x4b4bc1,_0x3fca30[_0x5bd0a4('0x10e0')]=_0xbaed51,_0x3fca30['deleteItem']=_0x44372b,_0x3fca30['getSelectedVariable']=_0x3b17f5,_0x3fca30[_0x5bd0a4('0x18e2')]=_0x181b7a,_0x151d81[_0x5bd0a4('0x1b56')][_0x5bd0a4('0x1d97')]({'nolimit':!![]})['$promise'][_0x5bd0a4('0x173b')](function(_0x10ab13){const _0x3c4a5e=_0x5bd0a4;return _0x3fca30[_0x3c4a5e('0x2715')]=_0x10ab13[_0x3c4a5e('0x6aa')]?_0x10ab13['rows']:[],_0x151d81[_0x3c4a5e('0x934')][_0x3c4a5e('0x2320')]()['$promise'];})[_0x5bd0a4('0x173b')](function(_0x4730fd){const _0x3feb51=_0x5bd0a4;return _0x3fca30[_0x3feb51('0x1fe8')]=_0x3c8d8a()[_0x3feb51('0x1b31')](_0x3c8d8a()[_0x3feb51('0x1d3e')](_0x4730fd),['$promise',_0x3feb51('0x14ad'),'createdAt',_0x3feb51('0xad'),_0x3feb51('0x24b1')]),_0x3fca30[_0x3feb51('0x1fe8')][_0x3feb51('0x18bb')](_0x3feb51('0x2313')),_0x151d81[_0x3feb51('0x242c')][_0x3feb51('0x2320')]()[_0x3feb51('0x1964')];})[_0x5bd0a4('0x173b')](function(_0x48becf){const _0x5c6bf2=_0x5bd0a4;_0x3fca30[_0x5c6bf2('0x20de')]=_0x3c8d8a()[_0x5c6bf2('0x1b31')](_0x3c8d8a()[_0x5c6bf2('0x1d3e')](_0x48becf),['$promise','$resolved',_0x5c6bf2('0xda8'),_0x5c6bf2('0xad'),_0x5c6bf2('0x24b1')]),_0x3fca30['voiceDialReportColumns'][_0x5c6bf2('0x18bb')](_0x5c6bf2('0x2313'));})[_0x5bd0a4('0x103c')](function(_0x215583){const _0xd6f1e7=_0x5bd0a4;_0x28cb0c[_0xd6f1e7('0x15aa')]({'title':_0x215583[_0xd6f1e7('0x276f')]?_0xd6f1e7('0x137')+_0x215583[_0xd6f1e7('0x276f')]+_0xd6f1e7('0x160c')+_0x215583[_0xd6f1e7('0x2696')]:_0xd6f1e7('0xaf3'),'msg':_0x215583[_0xd6f1e7('0x1e07')]?JSON[_0xd6f1e7('0x100b')](_0x215583[_0xd6f1e7('0x1e07')]):_0x215583[_0xd6f1e7('0x1b75')]()});}),_0x151d81[_0x5bd0a4('0x273a')][_0x5bd0a4('0x223b')]({'id':_0x305285['id'],'ticketType':_0x2ef23d[_0x5bd0a4('0x182')]?_0x2ef23d[_0x5bd0a4('0x182')]:undefined})[_0x5bd0a4('0x1964')]['then'](function(_0x593b9d){const _0xd57c61=_0x5bd0a4;_0x3fca30[_0xd57c61('0x22ad')]=!![],_0x3fca30[_0xd57c61('0x2340')]=_0x593b9d[_0xd57c61('0x6aa')]?_0x593b9d[_0xd57c61('0x6aa')]:[],_0x3fca30[_0xd57c61('0x54')][_0xd57c61('0x1ee7')]&&(_0x3fca30[_0xd57c61('0x894')]=_0x3c8d8a()['find'](_0x3fca30[_0xd57c61('0x2340')],{'id':_0x3fca30[_0xd57c61('0x54')][_0xd57c61('0x1ee7')]}));})['catch'](function(_0x3c59a5){const _0xcb7117=_0x5bd0a4;_0x3fca30[_0xcb7117('0x22ad')]=![],console[_0xcb7117('0x15aa')](_0x3c59a5);});function _0x4b4bc1(){const _0x1a1cea=_0x5bd0a4;_0x3fca30[_0x1a1cea('0x1d4a')]=[],_0x3fca30['customField']&&(_0x3fca30['item']['idField']=_0x3fca30['customField']['id'],_0x3fca30[_0x1a1cea('0x54')][_0x1a1cea('0x194d')]=_0x3fca30['customField']['name'],_0x3fca30[_0x1a1cea('0x54')][_0x1a1cea('0x894')]=_0x3fca30[_0x1a1cea('0x894')]['custom']),_0x151d81[_0x1a1cea('0xcc7')][_0x1a1cea('0x1195')](_0x3fca30[_0x1a1cea('0x54')])[_0x1a1cea('0x1964')][_0x1a1cea('0x173b')](function(_0x11b9ef){const _0x33ea81=_0x1a1cea;_0x3fca30[_0x33ea81('0x1b1f')][_0x33ea81('0x1377')](_0x11b9ef),_0x28cb0c[_0x33ea81('0xdfe')]({'title':_0x3c8d8a()[_0x33ea81('0x587')](_0x3c351a)+_0x33ea81('0x348'),'msg':_0x3c8d8a()[_0x33ea81('0x587')](_0x3c351a)+_0x33ea81('0x209a')}),_0x181b7a();})[_0x1a1cea('0x103c')](function(_0x12b040){const _0x117dcb=_0x1a1cea;console['error'](_0x12b040),_0x3fca30[_0x117dcb('0x1d4a')]=_0x12b040[_0x117dcb('0x1e07')]['errors']||[{'message':_0x12b040['toString'](),'type':'api.item.save'}];});}function _0xbaed51(){const _0x56c508=_0x5bd0a4;_0x3fca30[_0x56c508('0x1d4a')]=[],_0x3fca30['customField']&&(_0x3fca30[_0x56c508('0x54')]['idField']=_0x3fca30[_0x56c508('0x894')]['id'],_0x3fca30[_0x56c508('0x54')]['nameField']=_0x3fca30[_0x56c508('0x894')]['name'],_0x3fca30['item']['customField']=_0x3fca30[_0x56c508('0x894')][_0x56c508('0xbb4')]),_0x151d81[_0x56c508('0xcc7')][_0x56c508('0x1842')]({'id':_0x3fca30[_0x56c508('0x54')]['id']},_0x3fca30[_0x56c508('0x54')])[_0x56c508('0x1964')][_0x56c508('0x173b')](function(_0xb5535a){const _0x11da27=_0x56c508,_0x1bc9be=_0x3c8d8a()[_0x11da27('0x18ab')](_0x3fca30[_0x11da27('0x1b1f')],{'id':_0xb5535a['id']});_0x1bc9be&&_0x3c8d8a()[_0x11da27('0x9ef')](_0x1bc9be,_0xb5535a),_0x28cb0c[_0x11da27('0xdfe')]({'title':_0x3c8d8a()['capitalize'](_0x3c351a)+'\x20properly\x20saved!','msg':_0x3c8d8a()['capitalize'](_0x3c351a)+_0x11da27('0x2788')}),_0x181b7a();})[_0x56c508('0x103c')](function(_0x7bfc07){const _0xc88dbc=_0x56c508;console[_0xc88dbc('0x15aa')](_0x7bfc07),_0x3fca30[_0xc88dbc('0x1d4a')]=_0x7bfc07[_0xc88dbc('0x1e07')][_0xc88dbc('0x1d4a')]||[{'message':_0x7bfc07[_0xc88dbc('0x1b75')](),'type':_0xc88dbc('0x1c43')}];});}function _0x44372b(_0x5f189b){const _0x27b9e2=_0x5bd0a4;_0x3fca30[_0x27b9e2('0x1d4a')]=[];const _0x518a3f=_0x2a3a48[_0x27b9e2('0x1d02')]()[_0x27b9e2('0x20d6')](_0x27b9e2('0x8ef'))[_0x27b9e2('0x732')](_0x27b9e2('0x1aa5')+_0x3c351a+_0x27b9e2('0xd23'))[_0x27b9e2('0x217')]('Delete\x20'+_0x3c8d8a()[_0x27b9e2('0x587')](_0x3c351a))['ok'](_0x27b9e2('0x2373'))[_0x27b9e2('0x1e1f')]('Cancel')[_0x27b9e2('0x21de')](_0x5f189b);_0x2a3a48['show'](_0x518a3f)['then'](function(){const _0x1f27e1=_0x27b9e2;_0x151d81[_0x1f27e1('0xcc7')][_0x1f27e1('0x15e8')]({'id':_0x3fca30[_0x1f27e1('0x54')]['id']})[_0x1f27e1('0x1964')][_0x1f27e1('0x173b')](function(){const _0x131b61=_0x1f27e1;_0x3c8d8a()[_0x131b61('0x1a8b')](_0x3fca30[_0x131b61('0x1b1f')],{'id':_0x3fca30[_0x131b61('0x54')]['id']}),_0x28cb0c[_0x131b61('0xdfe')]({'title':_0x3c8d8a()['capitalize'](_0x3c351a)+_0x131b61('0xb5'),'msg':_0x3c8d8a()['capitalize'](_0x3c351a)+'\x20has\x20been\x20deleted!'}),_0x181b7a();})[_0x1f27e1('0x103c')](function(_0xae8f57){const _0x35cfa6=_0x1f27e1;console['error'](_0xae8f57),_0x3fca30[_0x35cfa6('0x1d4a')]=_0xae8f57[_0x35cfa6('0x1e07')][_0x35cfa6('0x1d4a')]||[{'message':_0xae8f57[_0x35cfa6('0x1b75')](),'type':'api.item.delete'}];});},function(){});}function _0x3b17f5(){const _0x43d395=_0x5bd0a4;return _0x3fca30[_0x43d395('0x54')][_0x43d395('0x195d')]!==undefined?_0x3fca30[_0x43d395('0x54')][_0x43d395('0x195d')]:_0x43d395('0x1423');}function _0x181b7a(){const _0x58dca4=_0x5bd0a4;_0x2a3a48[_0x58dca4('0x1cf4')]();}}const _0x5f346d=_0x234921;_0x2e6e58['$inject']=[_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),'setting',_0x566993('0xbd4'),'toasty','Auth',_0x566993('0x1ecb'),_0x566993('0x170e')];function _0x2e6e58(_0x2e9e3d,_0x12ba7,_0x5dbac5,_0x46e2a8,_0x2a3a96,_0x3e266a,_0x461ec2,_0x12cc70,_0xee94de,_0x200c3a,_0x84be0d,_0x1c5f17){const _0x1c41f8=_0x566993,_0x1c3c3f=this;_0x1c3c3f[_0x1c41f8('0x155f')]=_0x200c3a['getCurrentUser'](),_0x1c3c3f['license']=_0x3e266a,_0x1c3c3f['setting']=_0x461ec2,_0x1c3c3f[_0x1c41f8('0x644')]=_0x1c3c3f['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c3c3f[_0x1c41f8('0x614')]=_0x12ba7[_0x1c41f8('0x375')]()+_0x1c41f8('0x122b')+_0x12ba7[_0x1c41f8('0x4d1')](),_0x1c3c3f[_0x1c41f8('0x1ecb')]=_0x84be0d||_0x2e9e3d[_0x1c41f8('0x197a')][_0x1c41f8('0x1ecb')]||{},_0x1c3c3f['userProfileSection']=_0x1c5f17&&_0x1c5f17['count']==0x1?_0x1c5f17[_0x1c41f8('0x6aa')][0x0]:null,_0x1c3c3f['crudPermissions']=_0x200c3a[_0x1c41f8('0xde6')](_0x1c3c3f[_0x1c41f8('0x170e')]?_0x1c3c3f[_0x1c41f8('0x170e')][_0x1c41f8('0x1dc1')]:null),_0x1c3c3f[_0x1c41f8('0xb0')]={},_0x1c3c3f[_0x1c41f8('0xd5f')]=_0x2e9e3d['params']['tab']||0x0,_0x1c3c3f['alert']=_0xee94de[_0x1c41f8('0x2787')],_0x1c3c3f[_0x1c41f8('0x224c')]=_0x336f40,_0x1c3c3f['saveSalesforceAccount']=_0x35f31e;function _0x336f40(){const _0x358d2e=_0x1c41f8;_0x2e9e3d['go'](_0x358d2e('0x1e83'),{},{'reload':_0x358d2e('0x1e83')});}function _0x35f31e(){const _0x331420=_0x1c41f8;_0x12cc70[_0x331420('0x273a')]['update']({'id':_0x1c3c3f[_0x331420('0x1ecb')]['id']},_0x1c3c3f[_0x331420('0x1ecb')])['$promise'][_0x331420('0x173b')](function(){const _0x3a7ae5=_0x331420;_0xee94de[_0x3a7ae5('0xdfe')]({'title':_0x3a7ae5('0x2037'),'msg':_0x1c3c3f[_0x3a7ae5('0x1ecb')][_0x3a7ae5('0x10ad')]?_0x1c3c3f[_0x3a7ae5('0x1ecb')]['name']+'\x20has\x20been\x20updated!':''});})[_0x331420('0x103c')](function(_0x33f077){const _0x21fc0e=_0x331420;_0xee94de[_0x21fc0e('0x15aa')]({'title':_0x33f077['status']?_0x21fc0e('0x137')+_0x33f077[_0x21fc0e('0x276f')]+_0x21fc0e('0x160c')+_0x33f077['statusText']:_0x21fc0e('0x1e13'),'msg':_0x33f077[_0x21fc0e('0x1e07')]?JSON[_0x21fc0e('0x100b')](_0x33f077[_0x21fc0e('0x1e07')]):_0x33f077[_0x21fc0e('0x1b75')]()});});}}const _0x2dfb46=_0x2e6e58,_0x401375=_0x21a6a1['p']+_0x566993('0xa9e');_0x5802bb['$inject']=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x262e'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x5802bb(_0x2b90bf,_0x39dee1,_0x595015,_0x1d4c8e,_0x29a98a,_0x430002,_0x3aaa39,_0x659170,_0x2bea30,_0x44058c,_0x3848e0,_0x27bdf1,_0x1efe76,_0x2971c9,_0x5dae2c,_0x2ba0aa,_0x476cab){const _0xd48051=_0x566993,_0x4113e7=this;_0x4113e7[_0xd48051('0x1a29')]=_0x2ba0aa,_0x4113e7[_0xd48051('0x251')]=_0x476cab,_0x4113e7[_0xd48051('0x155f')]=_0x5dae2c['getCurrentUser'](),_0x4113e7[_0xd48051('0x262e')]=_0x2bea30||{'count':0x0,'rows':[]},_0x4113e7['userProfile']=_0x44058c,_0x4113e7[_0xd48051('0x170e')]=_0x3848e0&&_0x3848e0[_0xd48051('0x1a2f')]==0x1?_0x3848e0[_0xd48051('0x6aa')][0x0]:null,_0x4113e7['crudPermissions']=_0x5dae2c[_0xd48051('0xde6')](_0x4113e7['userProfileSection']?_0x4113e7['userProfileSection'][_0xd48051('0x1dc1')]:null),_0x4113e7[_0xd48051('0xdf9')]=_0xd48051('0x262e'),_0x4113e7[_0xd48051('0x14d6')]='',_0x4113e7[_0xd48051('0x2303')]=null,_0x4113e7['selectedSalesforceAccounts']=[],_0x4113e7['query']={'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','limit':0xa,'page':0x1},_0x4113e7[_0xd48051('0x1f90')]=_0x3c8d8a()['keyBy']([{'option':_0xd48051('0x1fb6'),'value':_0xd48051('0x685')},{'option':_0xd48051('0x1407'),'value':_0xd48051('0x2728')}],function(_0x3794e5){const _0x192b23=_0xd48051;return _0x3c8d8a()['replace'](_0x3794e5[_0x192b23('0xa7b')],new RegExp('\x27','g'),'');}),_0x4113e7[_0xd48051('0x222e')]=_0x38a80e,_0x4113e7[_0xd48051('0x1f58')]=_0x47b937,_0x4113e7[_0xd48051('0x1a20')]=_0x28ca51,_0x4113e7[_0xd48051('0xdfe')]=_0x2c3c18,_0x4113e7['getSalesforceAccounts']=_0x5f06e8,_0x4113e7[_0xd48051('0x1cc')]=_0x4cb5ed,_0x4113e7['deleteSalesforceAccount']=_0x1eb2e6,_0x4113e7['exportSelectedSalesforceAccounts']=_0x126d8a,_0x4113e7[_0xd48051('0x5cd')]=_0x37bc4b,_0x4113e7[_0xd48051('0x904')]=_0x50a20c,_0x4113e7[_0xd48051('0x1299')]=_0x2fa675;function _0x38a80e(_0x584016){const _0x372cfc=_0xd48051;_0x595015['go'](_0x372cfc('0x267b'),{'id':_0x584016['id'],'salesforceAccount':_0x584016,'crudPermissions':_0x4113e7[_0x372cfc('0x1dc1')]});}function _0x47b937(_0xa934d9){const _0x5288ed=_0xd48051;return _0x27bdf1['intSalesforceAccount'][_0x5288ed('0x223b')]({'id':_0xa934d9['id'],'test':!![]})[_0x5288ed('0x1964')][_0x5288ed('0x173b')](function(){const _0xc49b05=_0x5288ed;_0x2971c9['success']({'title':_0xc49b05('0x1dba'),'msg':_0xc49b05('0x13fe')});})[_0x5288ed('0x103c')](function(_0x1f1a81){const _0x443e9b=_0x5288ed;_0x2971c9[_0x443e9b('0x15aa')]({'title':'SalesforceAccount\x20properly\x20tested','msg':_0x1f1a81[_0x443e9b('0x1e07')]?_0x1f1a81[_0x443e9b('0x1e07')][_0x443e9b('0x67f')]?_0x1f1a81[_0x443e9b('0x1e07')][_0x443e9b('0x67f')]:JSON[_0x443e9b('0x100b')](_0x1f1a81['data']):_0x1f1a81[_0x443e9b('0x1b75')]()});});}function _0x28ca51(_0x22344d,_0x429bbd){const _0x5ac6a9=_0xd48051,_0x10fa7b=_0x29a98a['confirm']()[_0x5ac6a9('0x20d6')](_0x5ac6a9('0x5bb')+_0x3c8d8a()[_0x5ac6a9('0x10e')]('salesforceAccount')+'?')[_0x5ac6a9('0xf8b')](_0x5ac6a9('0x15b9')+(_0x22344d[_0x5ac6a9('0x10ad')]||_0x5ac6a9('0x1ecb'))+''+_0x5ac6a9('0xd23'))[_0x5ac6a9('0x217')]('delete\x20salesforceAccount')[_0x5ac6a9('0x21de')](_0x429bbd)['ok']('OK')[_0x5ac6a9('0x1e1f')](_0x5ac6a9('0x468'));_0x29a98a[_0x5ac6a9('0x1cb7')](_0x10fa7b)[_0x5ac6a9('0x173b')](function(){_0x1eb2e6(_0x22344d);},function(){const _0xf13736=_0x5ac6a9;console[_0xf13736('0xe37')]('CANCEL');});}let _0x5c32c4=!![],_0xf76801=0x1;_0x2b90bf[_0xd48051('0x1bdb')]('vm.query.filter',function(_0x30cb80,_0x100290){const _0x4a80d9=_0xd48051;_0x5c32c4?_0x3aaa39(function(){_0x5c32c4=![];}):(!_0x100290&&(_0xf76801=_0x4113e7[_0x4a80d9('0xc49')][_0x4a80d9('0x182e')]),_0x30cb80!==_0x100290&&(_0x4113e7[_0x4a80d9('0xc49')][_0x4a80d9('0x182e')]=0x1),!_0x30cb80&&(_0x4113e7[_0x4a80d9('0xc49')][_0x4a80d9('0x182e')]=_0xf76801),_0x4113e7[_0x4a80d9('0x1399')]());});function _0x2c3c18(_0x18cf26){_0x4113e7['salesforceAccounts']=_0x18cf26||{'count':0x0,'rows':[]};}function _0x5f06e8(){const _0x32a73d=_0xd48051;_0x4113e7[_0x32a73d('0xc49')][_0x32a73d('0x17f0')]=(_0x4113e7[_0x32a73d('0xc49')][_0x32a73d('0x182e')]-0x1)*_0x4113e7[_0x32a73d('0xc49')][_0x32a73d('0x3e')],_0x5dae2c[_0x32a73d('0x1b4e')](_0x32a73d('0x79b'))?_0x4113e7[_0x32a73d('0x2219')]=_0x27bdf1['intSalesforceAccount'][_0x32a73d('0x1d97')](_0x4113e7[_0x32a73d('0xc49')],_0x2c3c18)[_0x32a73d('0x1964')]:(_0x4113e7[_0x32a73d('0xc49')]['id']=_0x4113e7['userProfile']['id'],_0x4113e7[_0x32a73d('0xc49')][_0x32a73d('0x17c9')]=_0x32a73d('0x34f'),_0x4113e7['promise']=_0x27bdf1['userProfile']['getResources'](_0x4113e7[_0x32a73d('0xc49')],_0x2c3c18)[_0x32a73d('0x1964')]);}function _0x4cb5ed(_0xd796cd,_0x481577){const _0x55d2cb=_0xd48051;_0x29a98a[_0x55d2cb('0x1cb7')]({'controller':'CreateOrEditSalesforceAccountDialogController','controllerAs':'vm','templateUrl':_0x401375,'parent':angular['element'](_0x430002[_0x55d2cb('0x1a5')]),'targetEvent':_0xd796cd,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x481577,'salesforceAccounts':_0x4113e7[_0x55d2cb('0x262e')]['rows'],'license':_0x4113e7[_0x55d2cb('0x1a29')],'setting':_0x4113e7[_0x55d2cb('0x251')],'crudPermissions':_0x4113e7[_0x55d2cb('0x1dc1')]}});}function _0x1eb2e6(_0x387e5d){const _0x3d5b4c=_0xd48051;_0x27bdf1['intSalesforceAccount'][_0x3d5b4c('0x15e8')]({'id':_0x387e5d['id']})[_0x3d5b4c('0x1964')]['then'](function(){const _0x40c6bf=_0x3d5b4c;_0x3c8d8a()[_0x40c6bf('0x1a8b')](_0x4113e7[_0x40c6bf('0x262e')][_0x40c6bf('0x6aa')],{'id':_0x387e5d['id']}),_0x4113e7[_0x40c6bf('0x262e')]['count']-=0x1,!_0x4113e7[_0x40c6bf('0x262e')][_0x40c6bf('0x6aa')]['length']&&_0x4113e7['getSalesforceAccounts'](),_0x2971c9['success']({'title':_0x3c8d8a()[_0x40c6bf('0x10e')]('SalesforceAccount')+_0x40c6bf('0x1c5e'),'msg':_0x387e5d[_0x40c6bf('0x10ad')]?_0x387e5d[_0x40c6bf('0x10ad')]+_0x40c6bf('0x25d2'):''});})[_0x3d5b4c('0x103c')](function(_0x433f8c){const _0x545c36=_0x3d5b4c;if(_0x433f8c[_0x545c36('0x1e07')]&&_0x433f8c[_0x545c36('0x1e07')][_0x545c36('0x1d4a')]&&_0x433f8c[_0x545c36('0x1e07')]['errors']['length']){_0x4113e7['errors']=_0x433f8c[_0x545c36('0x1e07')]['errors']||[{'message':_0x433f8c[_0x545c36('0x1b75')](),'type':_0x545c36('0xaea')}];for(let _0x581f00=0x0;_0x581f00<_0x433f8c['data'][_0x545c36('0x1d4a')]['length'];_0x581f00++){_0x2971c9['error']({'title':_0x433f8c[_0x545c36('0x1e07')][_0x545c36('0x1d4a')][_0x581f00][_0x545c36('0x1810')],'msg':_0x433f8c[_0x545c36('0x1e07')][_0x545c36('0x1d4a')][_0x581f00]['message']});}}else _0x2971c9['error']({'title':_0x433f8c[_0x545c36('0x276f')]?'API:'+_0x433f8c['status']+_0x545c36('0x160c')+_0x433f8c[_0x545c36('0x2696')]:_0x545c36('0xaea'),'msg':_0x433f8c[_0x545c36('0x1e07')]?JSON[_0x545c36('0x100b')](_0x433f8c[_0x545c36('0x1e07')][_0x545c36('0x67f')]):_0x433f8c[_0x545c36('0x67f')]||_0x433f8c[_0x545c36('0x1b75')]()});});}function _0x126d8a(){const _0x215afe=_0xd48051,_0xa9706c=angular[_0x215afe('0x2e3')](_0x4113e7['selectedSalesforceAccounts']);return _0x4113e7[_0x215afe('0x323')]=[],_0xa9706c;}function _0x37bc4b(_0x5b1191){const _0x1aa5c6=_0xd48051,_0x10f1c4=_0x29a98a[_0x1aa5c6('0x1d02')]()['title'](_0x1aa5c6('0x18a9'))['htmlContent'](''+_0x4113e7[_0x1aa5c6('0x323')][_0x1aa5c6('0x543')]+_0x1aa5c6('0xcb4')+_0x1aa5c6('0xd23'))[_0x1aa5c6('0x217')]('delete\x20SalesforceAccounts')['targetEvent'](_0x5b1191)['ok']('OK')[_0x1aa5c6('0x1e1f')]('CANCEL');_0x29a98a[_0x1aa5c6('0x1cb7')](_0x10f1c4)[_0x1aa5c6('0x173b')](function(){const _0x14e16f=_0x1aa5c6;_0x4113e7['selectedSalesforceAccounts'][_0x14e16f('0xa6a')](function(_0x450778){_0x1eb2e6(_0x450778);}),_0x4113e7[_0x14e16f('0x323')]=[];});}function _0x50a20c(){const _0x281970=_0xd48051;_0x4113e7[_0x281970('0x323')]=[];}function _0x2fa675(){const _0x335bc3=_0xd48051;_0x4113e7[_0x335bc3('0x323')]=_0x4113e7[_0x335bc3('0x262e')]['rows'];}}const _0x3e9268=_0x5802bb;_0x42ae3f['$inject']=[_0x566993('0x66f'),'$state','$location',_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),'servicenowAccounts','servicenowAccount','api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x42ae3f(_0x54d6fb,_0x5d1eda,_0x502809,_0x3d4e31,_0x3ccdbb,_0x2429ef,_0x31813e,_0x590143,_0x13c4f9,_0x37336b,_0x19b1d2,_0x5d9457,_0x4b629e,_0x54dbfa){const _0x5b66ad=_0x566993,_0x125d6f=this;_0x125d6f[_0x5b66ad('0x155f')]=_0x19b1d2[_0x5b66ad('0x14d4')](),_0x125d6f[_0x5b66ad('0x1d4a')]=[],_0x125d6f[_0x5b66ad('0x251')]=_0x4b629e,_0x125d6f[_0x5b66ad('0x1a29')]=_0x5d9457,_0x125d6f['crudPermissions']=_0x54dbfa,_0x125d6f[_0x5b66ad('0xb0')]={},_0x125d6f[_0x5b66ad('0x644')]=_0x125d6f[_0x5b66ad('0x251')]&&_0x125d6f['setting'][_0x5b66ad('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x125d6f['title']=_0x5b66ad('0x14c9'),_0x125d6f[_0x5b66ad('0x55e')]=angular[_0x5b66ad('0x2e3')](_0x13c4f9),_0x125d6f[_0x5b66ad('0x1958')]=_0x590143,_0x125d6f[_0x5b66ad('0x16e1')]=![];!_0x125d6f[_0x5b66ad('0x55e')]&&(_0x125d6f['servicenowAccount']={'serverUrl':_0x502809[_0x5b66ad('0x375')]()+'://'+_0x502809[_0x5b66ad('0x4d1')]()+(_0x502809['port']()?':'+_0x502809[_0x5b66ad('0xe0d')]():'')},_0x125d6f[_0x5b66ad('0x20d6')]=_0x5b66ad('0x25c'),_0x125d6f[_0x5b66ad('0x16e1')]=!![]);_0x125d6f[_0x5b66ad('0x16b3')]=_0x2c40b3,_0x125d6f['saveServicenowAccount']=_0x4ef29a,_0x125d6f[_0x5b66ad('0x16a8')]=_0x39307f,_0x125d6f['getDateFromString']=_0x802303,_0x125d6f[_0x5b66ad('0x18e2')]=_0x56e61c;function _0x2c40b3(){const _0xed0540=_0x5b66ad;_0x125d6f[_0xed0540('0x1d4a')]=[],_0x37336b['intServicenowAccount']['save'](_0x125d6f[_0xed0540('0x55e')])[_0xed0540('0x1964')][_0xed0540('0x173b')](function(_0xf729b3){const _0x3e23d9=_0xed0540;_0x125d6f[_0x3e23d9('0x1958')][_0x3e23d9('0x1377')](_0xf729b3['toJSON']()),_0x31813e[_0x3e23d9('0xdfe')]({'title':_0x3e23d9('0x1a72'),'msg':_0x125d6f['servicenowAccount'][_0x3e23d9('0x10ad')]?_0x125d6f[_0x3e23d9('0x55e')][_0x3e23d9('0x10ad')]+_0x3e23d9('0x209a'):''}),_0x56e61c(_0xf729b3);})['catch'](function(_0x2ba607){const _0x4543f7=_0xed0540;if(_0x2ba607[_0x4543f7('0x1e07')]&&_0x2ba607[_0x4543f7('0x1e07')][_0x4543f7('0x1d4a')]&&_0x2ba607[_0x4543f7('0x1e07')][_0x4543f7('0x1d4a')][_0x4543f7('0x543')]){_0x125d6f['errors']=_0x2ba607[_0x4543f7('0x1e07')][_0x4543f7('0x1d4a')]||[{'message':_0x2ba607[_0x4543f7('0x1b75')](),'type':_0x4543f7('0x8c9')}];for(let _0x20c0f2=0x0;_0x20c0f2<_0x2ba607[_0x4543f7('0x1e07')][_0x4543f7('0x1d4a')][_0x4543f7('0x543')];_0x20c0f2+=0x1){_0x31813e[_0x4543f7('0x15aa')]({'title':_0x2ba607[_0x4543f7('0x1e07')]['errors'][_0x20c0f2]['type'],'msg':_0x2ba607[_0x4543f7('0x1e07')][_0x4543f7('0x1d4a')][_0x20c0f2][_0x4543f7('0x67f')]});}}else _0x31813e[_0x4543f7('0x15aa')]({'title':_0x2ba607[_0x4543f7('0x276f')]?'API:'+_0x2ba607[_0x4543f7('0x276f')]+_0x4543f7('0x160c')+_0x2ba607[_0x4543f7('0x2696')]:'api.intServicenowAccount.save','msg':_0x2ba607[_0x4543f7('0x1e07')]?JSON[_0x4543f7('0x100b')](_0x2ba607[_0x4543f7('0x1e07')][_0x4543f7('0x67f')]):_0x2ba607[_0x4543f7('0x1b75')]()});});}function _0x4ef29a(){const _0x4bcd05=_0x5b66ad;_0x125d6f['errors']=[],_0x37336b[_0x4bcd05('0x1c40')][_0x4bcd05('0x1842')]({'id':_0x125d6f[_0x4bcd05('0x55e')]['id']},_0x125d6f['servicenowAccount'])[_0x4bcd05('0x1964')][_0x4bcd05('0x173b')](function(_0x552aa0){const _0x18ca42=_0x4bcd05,_0x1985f1=_0x3c8d8a()[_0x18ca42('0x18ab')](_0x125d6f[_0x18ca42('0x1958')],{'id':_0x552aa0['id']});_0x1985f1&&_0x3c8d8a()[_0x18ca42('0x9ef')](_0x1985f1,_0x3c8d8a()[_0x18ca42('0x2114')](_0x552aa0[_0x18ca42('0xf1f')](),_0x3c8d8a()[_0x18ca42('0x1d3e')](_0x1985f1))),_0x31813e[_0x18ca42('0xdfe')]({'title':'ServicenowAccount\x20properly\x20saved!','msg':_0x125d6f[_0x18ca42('0x55e')][_0x18ca42('0x10ad')]?_0x125d6f[_0x18ca42('0x55e')]['name']+'\x20has\x20been\x20saved!':''}),_0x56e61c(_0x552aa0);})['catch'](function(_0x3ca224){const _0x3e88ea=_0x4bcd05;if(_0x3ca224[_0x3e88ea('0x1e07')]&&_0x3ca224['data']['errors']&&_0x3ca224['data'][_0x3e88ea('0x1d4a')]['length']){_0x125d6f[_0x3e88ea('0x1d4a')]=_0x3ca224[_0x3e88ea('0x1e07')][_0x3e88ea('0x1d4a')]||[{'message':_0x3ca224[_0x3e88ea('0x1b75')](),'type':_0x3e88ea('0xcb9')}];for(let _0x34c3f4=0x0;_0x34c3f4<_0x3ca224[_0x3e88ea('0x1e07')][_0x3e88ea('0x1d4a')]['length'];_0x34c3f4++){_0x31813e[_0x3e88ea('0x15aa')]({'title':_0x3ca224[_0x3e88ea('0x1e07')][_0x3e88ea('0x1d4a')][_0x34c3f4][_0x3e88ea('0x1810')],'msg':_0x3ca224['data'][_0x3e88ea('0x1d4a')][_0x34c3f4]['message']});}}else _0x31813e['error']({'title':_0x3ca224[_0x3e88ea('0x276f')]?_0x3e88ea('0x137')+_0x3ca224[_0x3e88ea('0x276f')]+'\x20-\x20'+_0x3ca224[_0x3e88ea('0x2696')]:_0x3e88ea('0xcb9'),'msg':_0x3ca224[_0x3e88ea('0x1e07')]?JSON['stringify'](_0x3ca224[_0x3e88ea('0x1e07')][_0x3e88ea('0x67f')]):_0x3ca224[_0x3e88ea('0x1b75')]()});});}function _0x39307f(_0x54fe7d){const _0x29d8e5=_0x5b66ad;_0x125d6f[_0x29d8e5('0x1d4a')]=[];const _0x56adf4=_0x3d4e31['confirm']()[_0x29d8e5('0x20d6')](_0x29d8e5('0x8ef'))[_0x29d8e5('0x732')](_0x29d8e5('0x1f9c'))[_0x29d8e5('0x217')]('Delete\x20ServicenowAccount')['ok'](_0x29d8e5('0x2373'))[_0x29d8e5('0x1e1f')](_0x29d8e5('0x1d4e'))[_0x29d8e5('0x21de')](_0x54fe7d);_0x3d4e31[_0x29d8e5('0x1cb7')](_0x56adf4)[_0x29d8e5('0x173b')](function(){const _0x469895=_0x29d8e5;_0x37336b['intServicenowAccount'][_0x469895('0x15e8')]({'id':_0x125d6f[_0x469895('0x55e')]['id']})[_0x469895('0x1964')][_0x469895('0x173b')](function(){const _0x58886d=_0x469895;_0x3c8d8a()[_0x58886d('0x1a8b')](_0x125d6f[_0x58886d('0x1958')],{'id':_0x125d6f[_0x58886d('0x55e')]['id']}),_0x31813e[_0x58886d('0xdfe')]({'title':_0x58886d('0x13c7'),'msg':(_0x125d6f['servicenowAccount'][_0x58886d('0x10ad')]||'servicenowAccount')+_0x58886d('0x25d2')}),_0x56e61c(_0x125d6f[_0x58886d('0x55e')]);})['catch'](function(_0x4dea29){const _0xee54ba=_0x469895;if(_0x4dea29[_0xee54ba('0x1e07')]&&_0x4dea29[_0xee54ba('0x1e07')][_0xee54ba('0x1d4a')]&&_0x4dea29[_0xee54ba('0x1e07')]['errors']['length']){_0x125d6f[_0xee54ba('0x1d4a')]=_0x4dea29['data'][_0xee54ba('0x1d4a')]||[{'message':_0x4dea29[_0xee54ba('0x1b75')](),'type':_0xee54ba('0x11ca')}];for(let _0x4cdafe=0x0;_0x4cdafe<_0x4dea29[_0xee54ba('0x1e07')][_0xee54ba('0x1d4a')][_0xee54ba('0x543')];_0x4cdafe++){_0x31813e[_0xee54ba('0x15aa')]({'title':_0x4dea29[_0xee54ba('0x1e07')][_0xee54ba('0x1d4a')][_0x4cdafe][_0xee54ba('0x1810')],'msg':_0x4dea29[_0xee54ba('0x1e07')][_0xee54ba('0x1d4a')][_0x4cdafe][_0xee54ba('0x67f')]});}}else _0x31813e[_0xee54ba('0x15aa')]({'title':_0x4dea29[_0xee54ba('0x276f')]?_0xee54ba('0x137')+_0x4dea29[_0xee54ba('0x276f')]+_0xee54ba('0x160c')+_0x4dea29[_0xee54ba('0x2696')]:_0xee54ba('0x11ca'),'msg':_0x4dea29[_0xee54ba('0x1e07')]?JSON[_0xee54ba('0x100b')](_0x4dea29[_0xee54ba('0x1e07')][_0xee54ba('0x67f')]):_0x4dea29['message']||_0x4dea29['toString']()});});},function(){});}function _0x802303(_0x2a7123){return _0x2a7123===null?undefined:new Date(_0x2a7123);}function _0x56e61c(_0x3b2ba6){const _0x4ca66f=_0x5b66ad;_0x3d4e31[_0x4ca66f('0x1cf4')](_0x3b2ba6);}}const _0x20ead4=_0x42ae3f,_0x150631=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog.html',_0xe89a14=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog.html';_0x33e7b3[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1b82'),'api',_0x566993('0x1558'),_0x566993('0x1600')];function _0x33e7b3(_0x178033,_0x1cb425,_0x2bfea0,_0x20558c,_0x17a216){const _0x19a12a=_0x566993,_0x169614=this;_0x169614[_0x19a12a('0x155f')]=_0x17a216[_0x19a12a('0x14d4')](),_0x169614[_0x19a12a('0x55e')]={},_0x169614[_0x19a12a('0x21c6')]={},_0x169614['configurations']=[],_0x169614[_0x19a12a('0x1025')]=-0x1,_0x169614['crudPermissions'],_0x169614[_0x19a12a('0xb9c')]=_0x12272d,_0x169614[_0x19a12a('0x548')]=_0x2223c7,_0x169614[_0x19a12a('0x366')]=_0x272e51,_0x169614[_0x19a12a('0x19ae')]=_0x27ff34;function _0x12272d(_0x1f2f1e,_0x3dc346){const _0x52271e=_0x19a12a;_0x169614['servicenowAccount']=_0x1f2f1e,_0x169614[_0x52271e('0x1dc1')]=typeof _0x3dc346!==_0x52271e('0x6e5')?_0x3dc346:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2bfea0[_0x52271e('0x1c40')][_0x52271e('0x1f25')]({'id':_0x169614[_0x52271e('0x55e')]['id'],'sort':'-updatedAt'})[_0x52271e('0x1964')][_0x52271e('0x173b')](function(_0x281d43){const _0x5ad4e1=_0x52271e;return _0x169614['configurations']=_0x281d43['rows']?_0x281d43[_0x5ad4e1('0x6aa')]:[],_0x169614[_0x5ad4e1('0x294')]['length']&&_0x169614[_0x5ad4e1('0x548')](0x0),_0x2bfea0[_0x5ad4e1('0x1b56')][_0x5ad4e1('0x1d97')]({'nolimit':!![],'sort':_0x5ad4e1('0x10ad')})[_0x5ad4e1('0x1964')];})[_0x52271e('0x173b')](function(_0x237a45){const _0x2daa05=_0x52271e;_0x169614['variables']=_0x237a45[_0x2daa05('0x6aa')]?_0x237a45[_0x2daa05('0x6aa')]:[],_0x169614[_0x2daa05('0x17f8')]=_0x3c8d8a()[_0x2daa05('0x128')](_0x169614[_0x2daa05('0x2715')],'id');})[_0x52271e('0x103c')](function(_0x5a3a16){const _0x5478d1=_0x52271e;_0x20558c[_0x5478d1('0x15aa')]({'title':_0x5a3a16['status']?_0x5478d1('0x137')+_0x5a3a16[_0x5478d1('0x276f')]+_0x5478d1('0x160c')+_0x5a3a16[_0x5478d1('0x2696')]:_0x5478d1('0x125a'),'msg':_0x5a3a16[_0x5478d1('0x1e07')]?JSON[_0x5478d1('0x100b')](_0x5a3a16[_0x5478d1('0x1e07')]):_0x5a3a16[_0x5478d1('0x1b75')]()});});}function _0x2223c7(_0x4cd995){const _0x29c011=_0x19a12a;_0x169614[_0x29c011('0x21c6')]=_0x169614[_0x29c011('0x294')][_0x4cd995],_0x169614[_0x29c011('0x1025')]=_0x4cd995,_0x2bfea0['intServicenowConfiguration'][_0x29c011('0x717')]({'id':_0x169614['servicenowConfiguration']['id']})[_0x29c011('0x1964')]['then'](function(_0x1caeef){const _0x16711e=_0x29c011;return _0x169614[_0x16711e('0x1b35')]=_0x1caeef[_0x16711e('0x6aa')]?_0x1caeef[_0x16711e('0x6aa')]:[],_0x2bfea0[_0x16711e('0x1b29')][_0x16711e('0xb28')]({'id':_0x169614[_0x16711e('0x21c6')]['id']})['$promise'];})[_0x29c011('0x173b')](function(_0x329dcc){const _0x1214dd=_0x29c011;return _0x169614[_0x1214dd('0xb60')]=_0x329dcc['rows']?_0x329dcc[_0x1214dd('0x6aa')]:[],_0x2bfea0[_0x1214dd('0x1b29')][_0x1214dd('0x223b')]({'id':_0x169614['servicenowConfiguration']['id']})['$promise'];})[_0x29c011('0x173b')](function(_0x3bf80f){const _0xfa6c53=_0x29c011;_0x169614[_0xfa6c53('0x2340')]=_0x3bf80f[_0xfa6c53('0x6aa')]?_0x3bf80f[_0xfa6c53('0x6aa')]:[];})[_0x29c011('0x103c')](function(_0x179fe2){const _0x51d997=_0x29c011;_0x20558c[_0x51d997('0x15aa')]({'title':_0x179fe2[_0x51d997('0x276f')]?_0x51d997('0x137')+_0x179fe2['status']+_0x51d997('0x160c')+_0x179fe2[_0x51d997('0x2696')]:'SYSTEM:GETConfigurations','msg':_0x179fe2[_0x51d997('0x1e07')]?JSON[_0x51d997('0x100b')](_0x179fe2['data']):_0x179fe2['toString']()});});}function _0x272e51(_0x4d2b42,_0x429b0c){const _0x133b9f=_0x19a12a;_0x178033[_0x133b9f('0x1cb7')]({'controller':_0x133b9f('0x16ed'),'controllerAs':'vm','templateUrl':_0x150631,'parent':angular[_0x133b9f('0xb6d')](_0x1cb425[_0x133b9f('0x1a5')]),'targetEvent':_0x4d2b42,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x429b0c,'configurations':_0x169614[_0x133b9f('0x294')],'license':null,'setting':null,'crudPermissions':_0x169614[_0x133b9f('0x1dc1')]}})[_0x133b9f('0xf25')](function(){_0x169614['getServicenowConfiguration'](0x0);});}function _0x27ff34(_0x4f95d5,_0xbfcada){const _0xb91965=_0x19a12a,_0x139a51=_0x178033[_0xb91965('0x1d02')]()[_0xb91965('0x20d6')](_0xb91965('0xb6e'))['htmlContent'](_0xb91965('0x15b9')+(_0xbfcada[_0xb91965('0x10ad')]||_0xb91965('0x21c6'))+_0xb91965('0x24be')+_0xb91965('0xd23'))['ariaLabel'](_0xb91965('0x2304'))[_0xb91965('0x21de')](_0x4f95d5)['ok']('OK')['cancel'](_0xb91965('0x468'));_0x178033[_0xb91965('0x1cb7')](_0x139a51)[_0xb91965('0x173b')](function(){const _0x41aa37=_0xb91965;_0x2bfea0[_0x41aa37('0x1b29')][_0x41aa37('0x15e8')]({'id':_0xbfcada['id']})['$promise'][_0x41aa37('0x173b')](function(){const _0x1d559d=_0x41aa37;_0x3c8d8a()[_0x1d559d('0x1a8b')](_0x169614['configurations'],{'id':_0xbfcada['id']}),_0x20558c[_0x1d559d('0xdfe')]({'title':_0x1d559d('0xe6e'),'msg':_0xbfcada[_0x1d559d('0x10ad')]?_0xbfcada[_0x1d559d('0x10ad')]+_0x1d559d('0x25d2'):''});})[_0x41aa37('0x103c')](function(_0x564f66){const _0x2afb60=_0x41aa37;_0x20558c[_0x2afb60('0x15aa')]({'title':_0x564f66[_0x2afb60('0x276f')]?'API:'+_0x564f66['status']+_0x2afb60('0x160c')+_0x564f66[_0x2afb60('0x2696')]:'SYSTEM:DELETECONFIGURATION','msg':_0x564f66[_0x2afb60('0x1e07')]?JSON[_0x2afb60('0x100b')](_0x564f66[_0x2afb60('0x1e07')]):_0x564f66[_0x2afb60('0x1b75')]()});})[_0x41aa37('0xf25')](function(){const _0x7a625=_0x41aa37;_0x169614[_0x7a625('0x548')](0x0);});},function(){console['log']('CANCEL');});}_0x169614[_0x19a12a('0x276e')]=[],_0x169614[_0x19a12a('0x1317')]=_0x56bbf9,_0x169614[_0x19a12a('0x156b')]=_0x26a05b,_0x169614['deleteSelectedSubjects']=_0x5396e5;function _0x56bbf9(_0x38634b,_0x4c1117){const _0x484953=_0x19a12a;_0x178033[_0x484953('0x1cb7')]({'controller':_0x484953('0x187b'),'controllerAs':'vm','templateUrl':_0xe89a14,'parent':angular[_0x484953('0xb6d')](_0x1cb425[_0x484953('0x1a5')]),'targetEvent':_0x38634b,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x4c1117,'items':_0x169614[_0x484953('0x1b35')],'configuration':_0x169614['servicenowConfiguration'],'account':_0x169614[_0x484953('0x55e')],'license':null,'setting':null,'crudPermissions':_0x169614[_0x484953('0x1dc1')]}});}function _0x4cf1eb(_0x53c8a1){const _0x48dcc1=_0x19a12a;_0x2bfea0['intServicenowField'][_0x48dcc1('0x15e8')]({'id':_0x53c8a1['id']})[_0x48dcc1('0x1964')]['then'](function(){const _0xf52a48=_0x48dcc1;_0x3c8d8a()[_0xf52a48('0x1a8b')](_0x169614['subjects'],{'id':_0x53c8a1['id']}),_0x20558c[_0xf52a48('0xdfe')]({'title':_0xf52a48('0xa5e'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x48dcc1('0x103c')](function(_0x37f015){const _0x5c4146=_0x48dcc1;_0x20558c[_0x5c4146('0x15aa')]({'title':_0x37f015[_0x5c4146('0x276f')]?_0x5c4146('0x137')+_0x37f015[_0x5c4146('0x276f')]+_0x5c4146('0x160c')+_0x37f015['statusText']:_0x5c4146('0x1400'),'msg':_0x37f015['data']?JSON[_0x5c4146('0x100b')](_0x37f015[_0x5c4146('0x1e07')]):_0x37f015[_0x5c4146('0x1b75')]()});});}function _0x26a05b(_0x4f4604,_0x32b5f0){const _0x2f83b7=_0x19a12a,_0x7b22fb=_0x178033[_0x2f83b7('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')['htmlContent'](_0x2f83b7('0x1274')+'\x20will\x20be\x20deleted.')[_0x2f83b7('0x217')](_0x2f83b7('0x18b8'))['targetEvent'](_0x4f4604)['ok']('OK')[_0x2f83b7('0x1e1f')](_0x2f83b7('0x468'));_0x178033[_0x2f83b7('0x1cb7')](_0x7b22fb)[_0x2f83b7('0x173b')](function(){_0x4cf1eb(_0x32b5f0);},function(){const _0x38409c=_0x2f83b7;console[_0x38409c('0xe37')](_0x38409c('0x468'));});}function _0x5396e5(_0x386efb){const _0x3c8ff2=_0x19a12a,_0x7f51d8=_0x178033[_0x3c8ff2('0x1d02')]()[_0x3c8ff2('0x20d6')](_0x3c8ff2('0x837'))['htmlContent'](_0x3c8ff2('0x15b9')+_0x169614['selectedSubjects']['length']+'\x20selected'+_0x3c8ff2('0xd23'))[_0x3c8ff2('0x217')](_0x3c8ff2('0xe22'))[_0x3c8ff2('0x21de')](_0x386efb)['ok']('OK')[_0x3c8ff2('0x1e1f')](_0x3c8ff2('0x468'));_0x178033[_0x3c8ff2('0x1cb7')](_0x7f51d8)[_0x3c8ff2('0x173b')](function(){const _0x222fd5=_0x3c8ff2;_0x169614[_0x222fd5('0x276e')]['forEach'](function(_0xc2f4e5){_0x4cf1eb(_0xc2f4e5);}),_0x169614[_0x222fd5('0x276e')]=[];});}_0x169614[_0x19a12a('0x10e1')]=[],_0x169614[_0x19a12a('0x1720')]=_0x4ec417,_0x169614[_0x19a12a('0x7e4')]=_0x348edf,_0x169614['deleteSelectedDescriptions']=_0x1a56ce;function _0x4ec417(_0x376aa8,_0x52aa04){const _0x262f72=_0x19a12a;_0x178033[_0x262f72('0x1cb7')]({'controller':_0x262f72('0x187b'),'controllerAs':'vm','templateUrl':_0xe89a14,'parent':angular[_0x262f72('0xb6d')](_0x1cb425[_0x262f72('0x1a5')]),'targetEvent':_0x376aa8,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x52aa04,'items':_0x169614[_0x262f72('0xb60')],'configuration':_0x169614[_0x262f72('0x21c6')],'account':_0x169614[_0x262f72('0x55e')],'license':null,'setting':null,'crudPermissions':_0x169614[_0x262f72('0x1dc1')]}});}function _0x5cec18(_0x234e1b){const _0x58a18b=_0x19a12a;_0x2bfea0[_0x58a18b('0x8ac')][_0x58a18b('0x15e8')]({'id':_0x234e1b['id']})[_0x58a18b('0x1964')][_0x58a18b('0x173b')](function(){const _0x3f52db=_0x58a18b;_0x3c8d8a()[_0x3f52db('0x1a8b')](_0x169614[_0x3f52db('0xb60')],{'id':_0x234e1b['id']}),_0x20558c[_0x3f52db('0xdfe')]({'title':_0x3f52db('0x1c35'),'msg':_0x3f52db('0x2298')});})['catch'](function(_0xcad341){const _0x464063=_0x58a18b;_0x20558c['error']({'title':_0xcad341[_0x464063('0x276f')]?_0x464063('0x137')+_0xcad341[_0x464063('0x276f')]+'\x20-\x20'+_0xcad341[_0x464063('0x2696')]:_0x464063('0x1400'),'msg':_0xcad341[_0x464063('0x1e07')]?JSON['stringify'](_0xcad341[_0x464063('0x1e07')]):_0xcad341[_0x464063('0x1b75')]()});});}function _0x348edf(_0x140c12,_0x2f90ec){const _0x1e299d=_0x19a12a,_0x202bdd=_0x178033[_0x1e299d('0x1d02')]()[_0x1e299d('0x20d6')](_0x1e299d('0x11d7'))[_0x1e299d('0xf8b')]('Description'+_0x1e299d('0xd23'))['ariaLabel'](_0x1e299d('0xfff'))[_0x1e299d('0x21de')](_0x140c12)['ok']('OK')[_0x1e299d('0x1e1f')](_0x1e299d('0x468'));_0x178033[_0x1e299d('0x1cb7')](_0x202bdd)[_0x1e299d('0x173b')](function(){_0x5cec18(_0x2f90ec);},function(){const _0x1235b4=_0x1e299d;console['log'](_0x1235b4('0x468'));});}function _0x1a56ce(_0x442972){const _0x59c441=_0x19a12a,_0x3cd196=_0x178033[_0x59c441('0x1d02')]()[_0x59c441('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0x59c441('0xf8b')](_0x59c441('0x15b9')+_0x169614[_0x59c441('0x10e1')]['length']+_0x59c441('0xcb4')+_0x59c441('0xd23'))[_0x59c441('0x217')](_0x59c441('0x11fd'))[_0x59c441('0x21de')](_0x442972)['ok']('OK')['cancel'](_0x59c441('0x468'));_0x178033[_0x59c441('0x1cb7')](_0x3cd196)[_0x59c441('0x173b')](function(){const _0x323d37=_0x59c441;_0x169614['selectedDescriptions']['forEach'](function(_0xf457f4){_0x5cec18(_0xf457f4);}),_0x169614[_0x323d37('0x10e1')]=[];});}_0x169614[_0x19a12a('0x86d')]=[],_0x169614[_0x19a12a('0xbb7')]=_0x95a2c8,_0x169614[_0x19a12a('0x218b')]=_0x133321,_0x169614['deleteSelectedFields']=_0x7d4ec6;function _0x95a2c8(_0x10def5,_0x4d0179){const _0x298f31=_0x19a12a;_0x178033[_0x298f31('0x1cb7')]({'controller':'CreateOrEditServicenowAccountItemDialogController','controllerAs':'vm','templateUrl':_0xe89a14,'parent':angular[_0x298f31('0xb6d')](_0x1cb425[_0x298f31('0x1a5')]),'targetEvent':_0x10def5,'clickOutsideToClose':!![],'locals':{'type':_0x298f31('0x81d'),'item':_0x4d0179,'items':_0x169614['fields'],'configuration':_0x169614['servicenowConfiguration'],'account':_0x169614[_0x298f31('0x55e')],'license':null,'setting':null,'crudPermissions':_0x169614['crudPermissions']}});}function _0x447770(_0x277754){const _0x226e8d=_0x19a12a;_0x2bfea0[_0x226e8d('0x8ac')]['delete']({'id':_0x277754['id']})[_0x226e8d('0x1964')][_0x226e8d('0x173b')](function(){const _0x1519c5=_0x226e8d;_0x3c8d8a()[_0x1519c5('0x1a8b')](_0x169614[_0x1519c5('0x2340')],{'id':_0x277754['id']}),_0x20558c[_0x1519c5('0xdfe')]({'title':_0x1519c5('0x2262'),'msg':_0x1519c5('0x1063')});})[_0x226e8d('0x103c')](function(_0x1ce1f0){const _0x3541ab=_0x226e8d;_0x20558c[_0x3541ab('0x15aa')]({'title':_0x1ce1f0[_0x3541ab('0x276f')]?_0x3541ab('0x137')+_0x1ce1f0['status']+'\x20-\x20'+_0x1ce1f0[_0x3541ab('0x2696')]:_0x3541ab('0x1400'),'msg':_0x1ce1f0[_0x3541ab('0x1e07')]?JSON[_0x3541ab('0x100b')](_0x1ce1f0[_0x3541ab('0x1e07')]):_0x1ce1f0['toString']()});});}function _0x133321(_0x4584c5,_0x2c0a5d){const _0x261482=_0x19a12a,_0x47918c=_0x178033[_0x261482('0x1d02')]()[_0x261482('0x20d6')](_0x261482('0x985'))[_0x261482('0xf8b')](_0x261482('0x1cf')+'\x20will\x20be\x20deleted.')[_0x261482('0x217')](_0x261482('0x1b20'))['targetEvent'](_0x4584c5)['ok']('OK')[_0x261482('0x1e1f')](_0x261482('0x468'));_0x178033[_0x261482('0x1cb7')](_0x47918c)['then'](function(){_0x447770(_0x2c0a5d);},function(){console['log']('CANCEL');});}function _0x7d4ec6(_0x36a1a3){const _0x2cf7c6=_0x19a12a,_0x41a9ed=_0x178033[_0x2cf7c6('0x1d02')]()['title'](_0x2cf7c6('0x18ba'))['htmlContent'](''+_0x169614[_0x2cf7c6('0x86d')]['length']+_0x2cf7c6('0xcb4')+_0x2cf7c6('0xd23'))[_0x2cf7c6('0x217')](_0x2cf7c6('0xbaf'))[_0x2cf7c6('0x21de')](_0x36a1a3)['ok']('OK')['cancel'](_0x2cf7c6('0x468'));_0x178033[_0x2cf7c6('0x1cb7')](_0x41a9ed)[_0x2cf7c6('0x173b')](function(){const _0x476e74=_0x2cf7c6;_0x169614['selectedFields']['forEach'](function(_0x3f588c){_0x447770(_0x3f588c);}),_0x169614[_0x476e74('0x86d')]=[];});}}const _0x37314f=_0x33e7b3;_0xaa0cc9[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),'configurations',_0x566993('0x21c6'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0xaa0cc9(_0xe93f23,_0x39d06d,_0x3d9a50,_0x3763e2,_0x499042,_0x4e9b59,_0x282ec0,_0x58396a,_0x408a27,_0x2e0ee3,_0xdfd0bf,_0x912808,_0x145988,_0x4f8333){const _0x139eeb=_0x566993,_0x2fd412=this;_0x2fd412[_0x139eeb('0x155f')]=_0xdfd0bf[_0x139eeb('0x14d4')](),_0x2fd412[_0x139eeb('0x1d4a')]=[],_0x2fd412[_0x139eeb('0x251')]=_0x145988,_0x2fd412[_0x139eeb('0x1a29')]=_0x912808,_0x2fd412['crudPermissions']=_0x4f8333,_0x2fd412['hasModulePermissions']={},_0x2fd412[_0x139eeb('0x644')]=_0x2fd412[_0x139eeb('0x251')]&&_0x2fd412[_0x139eeb('0x251')][_0x139eeb('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2fd412['title']=_0x139eeb('0x5a8'),_0x2fd412[_0x139eeb('0x21c6')]=angular[_0x139eeb('0x2e3')](_0x408a27),_0x2fd412['configurations']=_0x58396a,_0x2fd412[_0x139eeb('0x65b')]=![];!_0x2fd412[_0x139eeb('0x21c6')]&&(_0x2fd412[_0x139eeb('0x21c6')]={'channel':_0x139eeb('0x21a8'),'type':_0x139eeb('0x1755')},_0x2fd412[_0x139eeb('0x20d6')]=_0x139eeb('0xbc1'),_0x2fd412[_0x139eeb('0x65b')]=!![]);_0x2fd412[_0x139eeb('0x19f1')]=_0x20b1b4,_0x2fd412[_0x139eeb('0x21b4')]=_0x300c63,_0x2fd412['deleteServicenowConfiguration']=_0x4986fa,_0x2fd412[_0x139eeb('0x11ae')]=_0x25a7f6,_0x2fd412[_0x139eeb('0x18e2')]=_0x499b50;function _0x20b1b4(){const _0x4618a1=_0x139eeb;_0x2fd412[_0x4618a1('0x1d4a')]=[],_0x2e0ee3['intServicenowAccount']['addConfiguration']({'id':_0x39d06d['params']['id']},_0x2fd412[_0x4618a1('0x21c6')])[_0x4618a1('0x1964')][_0x4618a1('0x173b')](function(_0x408902){const _0x328253=_0x4618a1;_0x2fd412[_0x328253('0x294')]['unshift'](_0x408902[_0x328253('0xf1f')]()),_0x282ec0[_0x328253('0xdfe')]({'title':_0x328253('0x100c'),'msg':_0x2fd412[_0x328253('0x21c6')][_0x328253('0x10ad')]?_0x2fd412['servicenowConfiguration']['name']+_0x328253('0x209a'):''}),_0x499b50(_0x408902);})[_0x4618a1('0x103c')](function(_0x10dc8a){const _0xf9e215=_0x4618a1;if(_0x10dc8a[_0xf9e215('0x1e07')]&&_0x10dc8a[_0xf9e215('0x1e07')][_0xf9e215('0x1d4a')]&&_0x10dc8a['data']['errors'][_0xf9e215('0x543')]){_0x2fd412[_0xf9e215('0x1d4a')]=_0x10dc8a[_0xf9e215('0x1e07')]['errors']||[{'message':_0x10dc8a[_0xf9e215('0x1b75')](),'type':'api.intServicenowConfiguration.save'}];for(let _0xf54460=0x0;_0xf54460<_0x10dc8a[_0xf9e215('0x1e07')]['errors'][_0xf9e215('0x543')];_0xf54460+=0x1){_0x282ec0[_0xf9e215('0x15aa')]({'title':_0x10dc8a['data']['errors'][_0xf54460][_0xf9e215('0x1810')],'msg':_0x10dc8a[_0xf9e215('0x1e07')][_0xf9e215('0x1d4a')][_0xf54460][_0xf9e215('0x67f')]});}}else _0x282ec0[_0xf9e215('0x15aa')]({'title':_0x10dc8a[_0xf9e215('0x276f')]?_0xf9e215('0x137')+_0x10dc8a[_0xf9e215('0x276f')]+_0xf9e215('0x160c')+_0x10dc8a[_0xf9e215('0x2696')]:'api.intServicenowConfiguration.save','msg':_0x10dc8a[_0xf9e215('0x1e07')]?JSON[_0xf9e215('0x100b')](_0x10dc8a[_0xf9e215('0x1e07')][_0xf9e215('0x67f')]):_0x10dc8a[_0xf9e215('0x1b75')]()});});}function _0x300c63(){const _0x511319=_0x139eeb;_0x2fd412[_0x511319('0x1d4a')]=[],_0x2e0ee3[_0x511319('0x1b29')][_0x511319('0x1842')]({'id':_0x2fd412[_0x511319('0x21c6')]['id']},_0x2fd412[_0x511319('0x21c6')])[_0x511319('0x1964')][_0x511319('0x173b')](function(_0x2bcab5){const _0x221831=_0x511319,_0x266fef=_0x3c8d8a()[_0x221831('0x18ab')](_0x2fd412[_0x221831('0x294')],{'id':_0x2bcab5['id']});_0x266fef&&_0x3c8d8a()[_0x221831('0x9ef')](_0x266fef,_0x3c8d8a()[_0x221831('0x2114')](_0x2bcab5[_0x221831('0xf1f')](),_0x3c8d8a()['keys'](_0x266fef))),_0x282ec0[_0x221831('0xdfe')]({'title':_0x221831('0x2102'),'msg':_0x2fd412[_0x221831('0x21c6')]['name']?_0x2fd412[_0x221831('0x21c6')][_0x221831('0x10ad')]+_0x221831('0x2788'):''}),_0x499b50(_0x2bcab5);})[_0x511319('0x103c')](function(_0x488d0e){const _0x1edb23=_0x511319;if(_0x488d0e[_0x1edb23('0x1e07')]&&_0x488d0e[_0x1edb23('0x1e07')][_0x1edb23('0x1d4a')]&&_0x488d0e[_0x1edb23('0x1e07')][_0x1edb23('0x1d4a')][_0x1edb23('0x543')]){_0x2fd412[_0x1edb23('0x1d4a')]=_0x488d0e['data'][_0x1edb23('0x1d4a')]||[{'message':_0x488d0e[_0x1edb23('0x1b75')](),'type':_0x1edb23('0xa6c')}];for(let _0x1ce186=0x0;_0x1ce186<_0x488d0e['data'][_0x1edb23('0x1d4a')][_0x1edb23('0x543')];_0x1ce186++){_0x282ec0[_0x1edb23('0x15aa')]({'title':_0x488d0e[_0x1edb23('0x1e07')][_0x1edb23('0x1d4a')][_0x1ce186]['type'],'msg':_0x488d0e['data'][_0x1edb23('0x1d4a')][_0x1ce186][_0x1edb23('0x67f')]});}}else _0x282ec0[_0x1edb23('0x15aa')]({'title':_0x488d0e[_0x1edb23('0x276f')]?_0x1edb23('0x137')+_0x488d0e[_0x1edb23('0x276f')]+'\x20-\x20'+_0x488d0e[_0x1edb23('0x2696')]:_0x1edb23('0xa6c'),'msg':_0x488d0e[_0x1edb23('0x1e07')]?JSON['stringify'](_0x488d0e[_0x1edb23('0x1e07')]['message']):_0x488d0e[_0x1edb23('0x1b75')]()});});}function _0x4986fa(_0x1761d1){const _0x488988=_0x139eeb;_0x2fd412[_0x488988('0x1d4a')]=[];const _0x27b98d=_0x3763e2[_0x488988('0x1d02')]()['title']('Are\x20you\x20sure?')[_0x488988('0x732')](_0x488988('0x8ad'))[_0x488988('0x217')]('Delete\x20ServicenowConfiguration')['ok'](_0x488988('0x2373'))[_0x488988('0x1e1f')](_0x488988('0x1d4e'))[_0x488988('0x21de')](_0x1761d1);_0x3763e2['show'](_0x27b98d)['then'](function(){const _0x50d32d=_0x488988;_0x2e0ee3[_0x50d32d('0x1b29')][_0x50d32d('0x15e8')]({'id':_0x2fd412[_0x50d32d('0x21c6')]['id']})[_0x50d32d('0x1964')][_0x50d32d('0x173b')](function(){const _0x294226=_0x50d32d;_0x3c8d8a()[_0x294226('0x1a8b')](_0x2fd412[_0x294226('0x294')],{'id':_0x2fd412[_0x294226('0x21c6')]['id']}),_0x282ec0[_0x294226('0xdfe')]({'title':_0x294226('0x1da6'),'msg':(_0x2fd412[_0x294226('0x21c6')][_0x294226('0x10ad')]||'servicenowConfiguration')+'\x20has\x20been\x20deleted!'}),_0x499b50(_0x2fd412[_0x294226('0x21c6')]);})[_0x50d32d('0x103c')](function(_0x443dd7){const _0x841787=_0x50d32d;if(_0x443dd7['data']&&_0x443dd7[_0x841787('0x1e07')][_0x841787('0x1d4a')]&&_0x443dd7[_0x841787('0x1e07')]['errors']['length']){_0x2fd412[_0x841787('0x1d4a')]=_0x443dd7[_0x841787('0x1e07')][_0x841787('0x1d4a')]||[{'message':_0x443dd7[_0x841787('0x1b75')](),'type':_0x841787('0xdf8')}];for(let _0x585779=0x0;_0x585779<_0x443dd7['data'][_0x841787('0x1d4a')][_0x841787('0x543')];_0x585779++){_0x282ec0[_0x841787('0x15aa')]({'title':_0x443dd7[_0x841787('0x1e07')][_0x841787('0x1d4a')][_0x585779][_0x841787('0x1810')],'msg':_0x443dd7[_0x841787('0x1e07')]['errors'][_0x585779][_0x841787('0x67f')]});}}else _0x282ec0[_0x841787('0x15aa')]({'title':_0x443dd7[_0x841787('0x276f')]?'API:'+_0x443dd7['status']+_0x841787('0x160c')+_0x443dd7[_0x841787('0x2696')]:_0x841787('0xdf8'),'msg':_0x443dd7['data']?JSON[_0x841787('0x100b')](_0x443dd7[_0x841787('0x1e07')][_0x841787('0x67f')]):_0x443dd7[_0x841787('0x67f')]||_0x443dd7['toString']()});});},function(){});}function _0x25a7f6(_0x41c5e5){return _0x41c5e5===null?undefined:new Date(_0x41c5e5);}function _0x499b50(_0x261ef0){_0x3763e2['hide'](_0x261ef0);}}const _0x24e77c=_0xaa0cc9;_0x18dc60['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog',_0x566993('0x1558'),'configuration',_0x566993('0x1b1f'),_0x566993('0x54'),_0x566993('0xde4'),_0x566993('0x1810'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x18dc60(_0x327f18,_0x47ee59,_0x11b5a1,_0x47ea55,_0x22eeec,_0x8e96a2,_0x166786,_0x18ae2b,_0x25442e,_0xbcb2d9,_0x5ed2d7,_0x517e11,_0x11cc45){const _0x3b2a2a=_0x566993,_0x2aadf2=this;_0x2aadf2[_0x3b2a2a('0x155f')]=_0x517e11[_0x3b2a2a('0x14d4')](),_0x2aadf2[_0x3b2a2a('0x1d4a')]=[],_0x2aadf2['title']=_0x3b2a2a('0x3a0')+_0x3c8d8a()[_0x3b2a2a('0x160d')](_0xbcb2d9),_0x2aadf2[_0x3b2a2a('0x54')]=angular['copy'](_0x18ae2b),_0x2aadf2[_0x3b2a2a('0x1b1f')]=_0x166786,_0x2aadf2[_0x3b2a2a('0x1810')]=_0xbcb2d9,_0x2aadf2['crudPermissions']=_0x11cc45,_0x2aadf2[_0x3b2a2a('0x7')]=![];!_0x2aadf2[_0x3b2a2a('0x54')]&&(_0x2aadf2[_0x3b2a2a('0x54')]={'type':_0x3b2a2a('0x1533')},_0x2aadf2[_0x3b2a2a('0x54')][_0x3c8d8a()[_0x3b2a2a('0x587')](_0xbcb2d9)+'Id']=_0x8e96a2['id'],_0x2aadf2[_0x3b2a2a('0x20d6')]=_0x3b2a2a('0x99f')+_0x3c8d8a()['toUpper'](_0xbcb2d9),_0x2aadf2[_0x3b2a2a('0x7')]=!![]);_0x2aadf2[_0x3b2a2a('0x221f')]=_0x388369,_0x2aadf2[_0x3b2a2a('0x10e0')]=_0x417c4c,_0x2aadf2['deleteItem']=_0x1eb620,_0x2aadf2[_0x3b2a2a('0x1188')]=_0x4df2f6,_0x2aadf2[_0x3b2a2a('0x18e2')]=_0x1c3421,_0x5ed2d7['variable']['get']({'nolimit':!![]})[_0x3b2a2a('0x1964')]['then'](function(_0x5c5d5e){const _0x45e205=_0x3b2a2a;return _0x2aadf2[_0x45e205('0x2715')]=_0x5c5d5e[_0x45e205('0x6aa')]?_0x5c5d5e['rows']:[],_0x5ed2d7[_0x45e205('0x934')][_0x45e205('0x2320')]()[_0x45e205('0x1964')];})[_0x3b2a2a('0x173b')](function(_0xb4ab02){const _0x45795f=_0x3b2a2a;return _0x2aadf2[_0x45795f('0x1fe8')]=_0x3c8d8a()[_0x45795f('0x1b31')](_0x3c8d8a()['keys'](_0xb4ab02),['$promise',_0x45795f('0x14ad'),_0x45795f('0xda8'),_0x45795f('0xad'),_0x45795f('0x24b1')]),_0x2aadf2[_0x45795f('0x1fe8')][_0x45795f('0x18bb')](_0x45795f('0x2313')),_0x5ed2d7[_0x45795f('0x242c')][_0x45795f('0x2320')]()[_0x45795f('0x1964')];})[_0x3b2a2a('0x173b')](function(_0x32f204){const _0x5bb97a=_0x3b2a2a;_0x2aadf2['voiceDialReportColumns']=_0x3c8d8a()['difference'](_0x3c8d8a()[_0x5bb97a('0x1d3e')](_0x32f204),['$promise',_0x5bb97a('0x14ad'),_0x5bb97a('0xda8'),_0x5bb97a('0xad'),'sourceid']),_0x2aadf2['voiceDialReportColumns'][_0x5bb97a('0x18bb')](_0x5bb97a('0x2313'));})[_0x3b2a2a('0x103c')](function(_0x1e2372){const _0x4fe08d=_0x3b2a2a;_0x22eeec[_0x4fe08d('0x15aa')]({'title':_0x1e2372['status']?_0x4fe08d('0x137')+_0x1e2372['status']+_0x4fe08d('0x160c')+_0x1e2372[_0x4fe08d('0x2696')]:_0x4fe08d('0xaf3'),'msg':_0x1e2372[_0x4fe08d('0x1e07')]?JSON[_0x4fe08d('0x100b')](_0x1e2372[_0x4fe08d('0x1e07')]):_0x1e2372[_0x4fe08d('0x1b75')]()});}),_0x5ed2d7[_0x3b2a2a('0x1c40')][_0x3b2a2a('0x223b')]({'id':_0x25442e['id'],'ticketType':_0x8e96a2['ticketType']?_0x8e96a2[_0x3b2a2a('0x182')]:undefined})[_0x3b2a2a('0x1964')][_0x3b2a2a('0x173b')](function(_0x4eb0e3){const _0xd918e=_0x3b2a2a;_0x2aadf2['accountConnected']=!![],_0x2aadf2['fields']=_0x4eb0e3[_0xd918e('0x6aa')]?_0x4eb0e3[_0xd918e('0x6aa')]:[],_0x2aadf2[_0xd918e('0x54')]['idField']&&(_0x2aadf2['customField']=_0x3c8d8a()[_0xd918e('0x18ab')](_0x2aadf2[_0xd918e('0x2340')],{'id':_0x2aadf2[_0xd918e('0x54')][_0xd918e('0x1ee7')]}));})['catch'](function(_0x4f8350){const _0x60dd7b=_0x3b2a2a;_0x2aadf2[_0x60dd7b('0x22ad')]=![],console[_0x60dd7b('0x15aa')](_0x4f8350);});function _0x388369(){const _0xf37cb6=_0x3b2a2a;_0x2aadf2[_0xf37cb6('0x1d4a')]=[],_0x2aadf2['customField']&&(_0x2aadf2[_0xf37cb6('0x54')][_0xf37cb6('0x1ee7')]=_0x2aadf2[_0xf37cb6('0x894')]['id'],_0x2aadf2[_0xf37cb6('0x54')][_0xf37cb6('0x194d')]=_0x2aadf2['customField'][_0xf37cb6('0x10ad')],_0x2aadf2[_0xf37cb6('0x54')][_0xf37cb6('0x894')]=_0x2aadf2[_0xf37cb6('0x894')][_0xf37cb6('0xbb4')]),_0x5ed2d7[_0xf37cb6('0x8ac')][_0xf37cb6('0x1195')](_0x2aadf2[_0xf37cb6('0x54')])['$promise'][_0xf37cb6('0x173b')](function(_0x3822f){const _0x41a8af=_0xf37cb6;_0x2aadf2[_0x41a8af('0x1b1f')][_0x41a8af('0x1377')](_0x3822f),_0x22eeec[_0x41a8af('0xdfe')]({'title':_0x3c8d8a()[_0x41a8af('0x587')](_0xbcb2d9)+_0x41a8af('0x348'),'msg':_0x3c8d8a()[_0x41a8af('0x587')](_0xbcb2d9)+'\x20has\x20been\x20created!'}),_0x1c3421();})[_0xf37cb6('0x103c')](function(_0x4dd1b4){const _0x13f64e=_0xf37cb6;console[_0x13f64e('0x15aa')](_0x4dd1b4),_0x2aadf2['errors']=_0x4dd1b4[_0x13f64e('0x1e07')]['errors']||[{'message':_0x4dd1b4[_0x13f64e('0x1b75')](),'type':'api.item.save'}];});}function _0x417c4c(){const _0x25f85a=_0x3b2a2a;_0x2aadf2[_0x25f85a('0x1d4a')]=[],_0x2aadf2[_0x25f85a('0x894')]&&(_0x2aadf2['item'][_0x25f85a('0x1ee7')]=_0x2aadf2[_0x25f85a('0x894')]['id'],_0x2aadf2[_0x25f85a('0x54')]['nameField']=_0x2aadf2['customField'][_0x25f85a('0x10ad')],_0x2aadf2[_0x25f85a('0x54')][_0x25f85a('0x894')]=_0x2aadf2['customField'][_0x25f85a('0xbb4')]),_0x5ed2d7[_0x25f85a('0x8ac')][_0x25f85a('0x1842')]({'id':_0x2aadf2[_0x25f85a('0x54')]['id']},_0x2aadf2['item'])[_0x25f85a('0x1964')][_0x25f85a('0x173b')](function(_0xb48452){const _0x5c0c32=_0x25f85a,_0x37e9ba=_0x3c8d8a()[_0x5c0c32('0x18ab')](_0x2aadf2[_0x5c0c32('0x1b1f')],{'id':_0xb48452['id']});_0x37e9ba&&_0x3c8d8a()[_0x5c0c32('0x9ef')](_0x37e9ba,_0xb48452),_0x22eeec[_0x5c0c32('0xdfe')]({'title':_0x3c8d8a()[_0x5c0c32('0x587')](_0xbcb2d9)+_0x5c0c32('0x10e9'),'msg':_0x3c8d8a()[_0x5c0c32('0x587')](_0xbcb2d9)+_0x5c0c32('0x2788')}),_0x1c3421();})[_0x25f85a('0x103c')](function(_0x236729){const _0xf2b114=_0x25f85a;console[_0xf2b114('0x15aa')](_0x236729),_0x2aadf2[_0xf2b114('0x1d4a')]=_0x236729[_0xf2b114('0x1e07')][_0xf2b114('0x1d4a')]||[{'message':_0x236729[_0xf2b114('0x1b75')](),'type':_0xf2b114('0x1c43')}];});}function _0x1eb620(_0x3b0339){const _0x2d79c1=_0x3b2a2a;_0x2aadf2[_0x2d79c1('0x1d4a')]=[];const _0x1ecb54=_0x47ea55[_0x2d79c1('0x1d02')]()[_0x2d79c1('0x20d6')](_0x2d79c1('0x8ef'))['content'](_0x2d79c1('0x1aa5')+_0xbcb2d9+_0x2d79c1('0xd23'))[_0x2d79c1('0x217')](_0x2d79c1('0x133e')+_0x3c8d8a()[_0x2d79c1('0x587')](_0xbcb2d9))['ok'](_0x2d79c1('0x2373'))['cancel']('Cancel')[_0x2d79c1('0x21de')](_0x3b0339);_0x47ea55['show'](_0x1ecb54)[_0x2d79c1('0x173b')](function(){const _0x45f47a=_0x2d79c1;_0x5ed2d7[_0x45f47a('0x8ac')]['delete']({'id':_0x2aadf2[_0x45f47a('0x54')]['id']})[_0x45f47a('0x1964')]['then'](function(){const _0x32bcb7=_0x45f47a;_0x3c8d8a()['remove'](_0x2aadf2[_0x32bcb7('0x1b1f')],{'id':_0x2aadf2['item']['id']}),_0x22eeec[_0x32bcb7('0xdfe')]({'title':_0x3c8d8a()[_0x32bcb7('0x587')](_0xbcb2d9)+_0x32bcb7('0xb5'),'msg':_0x3c8d8a()[_0x32bcb7('0x587')](_0xbcb2d9)+'\x20has\x20been\x20deleted!'}),_0x1c3421();})[_0x45f47a('0x103c')](function(_0x53f558){const _0xba65ae=_0x45f47a;console[_0xba65ae('0x15aa')](_0x53f558),_0x2aadf2[_0xba65ae('0x1d4a')]=_0x53f558[_0xba65ae('0x1e07')][_0xba65ae('0x1d4a')]||[{'message':_0x53f558[_0xba65ae('0x1b75')](),'type':_0xba65ae('0x238e')}];});},function(){});}function _0x4df2f6(){const _0x55936d=_0x3b2a2a;return _0x2aadf2[_0x55936d('0x54')][_0x55936d('0x195d')]!==undefined?_0x2aadf2[_0x55936d('0x54')][_0x55936d('0x195d')]:_0x55936d('0x1423');}function _0x1c3421(){const _0x3f55d2=_0x3b2a2a;_0x47ea55[_0x3f55d2('0x1cf4')]();}}const _0x3cea38=_0x18dc60;_0x66d446[_0x566993('0x17bb')]=['$state',_0x566993('0x19df'),'$mdDialog','$document',_0x566993('0x638'),'license','setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x55e'),'userProfileSection'];function _0x66d446(_0x39f78b,_0x2f0a8d,_0x26df6c,_0x14fcea,_0x1a5fef,_0x66abd8,_0x459290,_0x4f00cc,_0x202d20,_0x50ceaf,_0x6671c3,_0x17c0e9){const _0xf99bb6=_0x566993,_0x3416ae=this;_0x3416ae[_0xf99bb6('0x155f')]=_0x50ceaf['getCurrentUser'](),_0x3416ae['license']=_0x66abd8,_0x3416ae[_0xf99bb6('0x251')]=_0x459290,_0x3416ae[_0xf99bb6('0x644')]=_0x3416ae[_0xf99bb6('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3416ae['location']=_0x2f0a8d[_0xf99bb6('0x375')]()+_0xf99bb6('0x122b')+_0x2f0a8d[_0xf99bb6('0x4d1')](),_0x3416ae[_0xf99bb6('0x55e')]=_0x6671c3||_0x39f78b[_0xf99bb6('0x197a')][_0xf99bb6('0x55e')]||{},_0x3416ae['userProfileSection']=_0x17c0e9&&_0x17c0e9[_0xf99bb6('0x1a2f')]==0x1?_0x17c0e9[_0xf99bb6('0x6aa')][0x0]:null,_0x3416ae['crudPermissions']=_0x50ceaf[_0xf99bb6('0xde6')](_0x3416ae[_0xf99bb6('0x170e')]?_0x3416ae['userProfileSection']['crudPermissions']:null),_0x3416ae[_0xf99bb6('0xb0')]={},_0x3416ae['selectedTab']=_0x39f78b['params'][_0xf99bb6('0x1e66')]||0x0,_0x3416ae[_0xf99bb6('0x5a4')]=_0x202d20[_0xf99bb6('0x2787')],_0x3416ae[_0xf99bb6('0x17ce')]=_0x3a963c,_0x3416ae[_0xf99bb6('0x622')]=_0x277974;function _0x3a963c(){const _0x1f8cb2=_0xf99bb6;_0x39f78b['go'](_0x1f8cb2('0x17e1'),{},{'reload':'app.integrations.servicenowAccounts'});}function _0x277974(){const _0x36511b=_0xf99bb6;_0x4f00cc[_0x36511b('0x1c40')][_0x36511b('0x1842')]({'id':_0x3416ae['servicenowAccount']['id']},_0x3416ae[_0x36511b('0x55e')])['$promise'][_0x36511b('0x173b')](function(){const _0x53412d=_0x36511b;_0x202d20[_0x53412d('0xdfe')]({'title':_0x53412d('0x2144'),'msg':_0x3416ae['servicenowAccount']['name']?_0x3416ae['servicenowAccount'][_0x53412d('0x10ad')]+_0x53412d('0x1fd6'):''});})[_0x36511b('0x103c')](function(_0x4b56fa){const _0x1c01db=_0x36511b;_0x202d20[_0x1c01db('0x15aa')]({'title':_0x4b56fa['status']?_0x1c01db('0x137')+_0x4b56fa[_0x1c01db('0x276f')]+_0x1c01db('0x160c')+_0x4b56fa[_0x1c01db('0x2696')]:'SYSTEM:GETintServicenowAccount','msg':_0x4b56fa[_0x1c01db('0x1e07')]?JSON[_0x1c01db('0x100b')](_0x4b56fa[_0x1c01db('0x1e07')]):_0x4b56fa[_0x1c01db('0x1b75')]()});});}}const _0xa31b53=_0x66d446,_0x1a9ea4=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog.html';_0x49490e[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$timeout','$translate',_0x566993('0x1958'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x49490e(_0x21eed8,_0x25b1cf,_0xdff790,_0x4b1004,_0x4b3d71,_0x48d409,_0x24eb69,_0x10cc85,_0x7ccdb9,_0x11c546,_0x440aff,_0x356896,_0x7d7772,_0x2b39ca,_0x1775bf,_0x7cbd3f,_0x4a6d07){const _0x2db5f4=_0x566993,_0x5d1615=this;_0x5d1615['license']=_0x7cbd3f,_0x5d1615['setting']=_0x4a6d07,_0x5d1615[_0x2db5f4('0x155f')]=_0x1775bf[_0x2db5f4('0x14d4')](),_0x5d1615['servicenowAccounts']=_0x7ccdb9||{'count':0x0,'rows':[]},_0x5d1615[_0x2db5f4('0x257b')]=_0x11c546,_0x5d1615['userProfileSection']=_0x440aff&&_0x440aff[_0x2db5f4('0x1a2f')]==0x1?_0x440aff['rows'][0x0]:null,_0x5d1615['crudPermissions']=_0x1775bf[_0x2db5f4('0xde6')](_0x5d1615['userProfileSection']?_0x5d1615[_0x2db5f4('0x170e')][_0x2db5f4('0x1dc1')]:null),_0x5d1615[_0x2db5f4('0xdf9')]=_0x2db5f4('0x1958'),_0x5d1615[_0x2db5f4('0x14d6')]='',_0x5d1615[_0x2db5f4('0x2303')]=null,_0x5d1615[_0x2db5f4('0x13fc')]=[],_0x5d1615[_0x2db5f4('0xc49')]={'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'page':0x1},_0x5d1615[_0x2db5f4('0x222e')]=_0x2d1f79,_0x5d1615[_0x2db5f4('0x1f58')]=_0x3648fd,_0x5d1615[_0x2db5f4('0x1a20')]=_0x5ec771,_0x5d1615['success']=_0x452b86,_0x5d1615['getServicenowAccounts']=_0x53d33d,_0x5d1615['createOrEditServicenowAccount']=_0x3cb875,_0x5d1615[_0x2db5f4('0x16a8')]=_0x1d447b,_0x5d1615[_0x2db5f4('0x1b4f')]=_0x2c0cd1,_0x5d1615[_0x2db5f4('0x18d')]=_0x3bf688,_0x5d1615[_0x2db5f4('0x22e8')]=_0x276924,_0x5d1615['selectAllServicenowAccounts']=_0x5a7544;function _0x2d1f79(_0x80252a){const _0x491d21=_0x2db5f4;_0xdff790['go'](_0x491d21('0x171f'),{'id':_0x80252a['id'],'servicenowAccount':_0x80252a,'crudPermissions':_0x5d1615[_0x491d21('0x1dc1')]});}function _0x3648fd(_0x40779b){const _0xb1efa2=_0x2db5f4;return _0x356896[_0xb1efa2('0x1c40')]['getFields']({'id':_0x40779b['id'],'test':!![]})['$promise'][_0xb1efa2('0x173b')](function(){const _0x2926db=_0xb1efa2;_0x2b39ca[_0x2926db('0xdfe')]({'title':_0x2926db('0x9fd'),'msg':_0x2926db('0x13fe')});})[_0xb1efa2('0x103c')](function(_0x3aabde){const _0x5837d0=_0xb1efa2;_0x2b39ca[_0x5837d0('0x15aa')]({'title':'ServicenowAccount\x20properly\x20tested','msg':_0x3aabde[_0x5837d0('0x1e07')]?_0x3aabde['data'][_0x5837d0('0x67f')]?_0x3aabde[_0x5837d0('0x1e07')][_0x5837d0('0x67f')]:JSON['stringify'](_0x3aabde[_0x5837d0('0x1e07')]):_0x3aabde['toString']()});});}function _0x5ec771(_0x1af028,_0x5c5788){const _0x67708b=_0x2db5f4,_0x21beb0=_0x4b3d71[_0x67708b('0x1d02')]()[_0x67708b('0x20d6')](_0x67708b('0x5bb')+_0x3c8d8a()[_0x67708b('0x10e')]('servicenowAccount')+'?')[_0x67708b('0xf8b')](_0x67708b('0x15b9')+(_0x1af028[_0x67708b('0x10ad')]||_0x67708b('0x55e'))+_0x67708b('0x24be')+_0x67708b('0xd23'))[_0x67708b('0x217')](_0x67708b('0x3aa'))[_0x67708b('0x21de')](_0x5c5788)['ok']('OK')[_0x67708b('0x1e1f')](_0x67708b('0x468'));_0x4b3d71[_0x67708b('0x1cb7')](_0x21beb0)['then'](function(){_0x1d447b(_0x1af028);},function(){const _0x391237=_0x67708b;console[_0x391237('0xe37')](_0x391237('0x468'));});}let _0x5c60c9=!![],_0x396b1d=0x1;_0x21eed8[_0x2db5f4('0x1bdb')](_0x2db5f4('0x157b'),function(_0x53d8af,_0x231ad3){const _0x384468=_0x2db5f4;_0x5c60c9?_0x24eb69(function(){_0x5c60c9=![];}):(!_0x231ad3&&(_0x396b1d=_0x5d1615[_0x384468('0xc49')]['page']),_0x53d8af!==_0x231ad3&&(_0x5d1615[_0x384468('0xc49')][_0x384468('0x182e')]=0x1),!_0x53d8af&&(_0x5d1615[_0x384468('0xc49')][_0x384468('0x182e')]=_0x396b1d),_0x5d1615['getServicenowAccounts']());});function _0x452b86(_0x28514f){_0x5d1615['servicenowAccounts']=_0x28514f||{'count':0x0,'rows':[]};}function _0x53d33d(){const _0xc46e10=_0x2db5f4;_0x5d1615[_0xc46e10('0xc49')][_0xc46e10('0x17f0')]=(_0x5d1615[_0xc46e10('0xc49')][_0xc46e10('0x182e')]-0x1)*_0x5d1615['query']['limit'],_0x1775bf[_0xc46e10('0x1b4e')](_0xc46e10('0x79b'))?_0x5d1615['promise']=_0x356896[_0xc46e10('0x1c40')][_0xc46e10('0x1d97')](_0x5d1615[_0xc46e10('0xc49')],_0x452b86)[_0xc46e10('0x1964')]:(_0x5d1615[_0xc46e10('0xc49')]['id']=_0x5d1615[_0xc46e10('0x257b')]['id'],_0x5d1615[_0xc46e10('0xc49')][_0xc46e10('0x17c9')]=_0xc46e10('0x1243'),_0x5d1615[_0xc46e10('0x2219')]=_0x356896[_0xc46e10('0x257b')]['getResources'](_0x5d1615[_0xc46e10('0xc49')],_0x452b86)['$promise']);}function _0x3cb875(_0x263b65,_0x503ef9){const _0x1b855e=_0x2db5f4;_0x4b3d71[_0x1b855e('0x1cb7')]({'controller':_0x1b855e('0x2af'),'controllerAs':'vm','templateUrl':_0x1a9ea4,'parent':angular[_0x1b855e('0xb6d')](_0x48d409['body']),'targetEvent':_0x263b65,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x503ef9,'servicenowAccounts':_0x5d1615[_0x1b855e('0x1958')]['rows'],'license':_0x5d1615[_0x1b855e('0x1a29')],'setting':_0x5d1615[_0x1b855e('0x251')],'crudPermissions':_0x5d1615['crudPermissions']}});}function _0x1d447b(_0x980617){const _0x424c36=_0x2db5f4;_0x356896[_0x424c36('0x1c40')][_0x424c36('0x15e8')]({'id':_0x980617['id']})['$promise'][_0x424c36('0x173b')](function(){const _0x5a1fe0=_0x424c36;_0x3c8d8a()[_0x5a1fe0('0x1a8b')](_0x5d1615['servicenowAccounts']['rows'],{'id':_0x980617['id']}),_0x5d1615[_0x5a1fe0('0x1958')][_0x5a1fe0('0x1a2f')]-=0x1,!_0x5d1615['servicenowAccounts'][_0x5a1fe0('0x6aa')]['length']&&_0x5d1615[_0x5a1fe0('0x1858')](),_0x2b39ca[_0x5a1fe0('0xdfe')]({'title':_0x3c8d8a()[_0x5a1fe0('0x10e')](_0x5a1fe0('0x1d59'))+_0x5a1fe0('0x1c5e'),'msg':_0x980617['name']?_0x980617[_0x5a1fe0('0x10ad')]+_0x5a1fe0('0x25d2'):''});})[_0x424c36('0x103c')](function(_0x4f9126){const _0x263138=_0x424c36;if(_0x4f9126['data']&&_0x4f9126['data'][_0x263138('0x1d4a')]&&_0x4f9126['data']['errors'][_0x263138('0x543')]){_0x5d1615[_0x263138('0x1d4a')]=_0x4f9126[_0x263138('0x1e07')]['errors']||[{'message':_0x4f9126[_0x263138('0x1b75')](),'type':_0x263138('0x10e4')}];for(let _0x51b5c2=0x0;_0x51b5c2<_0x4f9126[_0x263138('0x1e07')][_0x263138('0x1d4a')][_0x263138('0x543')];_0x51b5c2++){_0x2b39ca[_0x263138('0x15aa')]({'title':_0x4f9126['data'][_0x263138('0x1d4a')][_0x51b5c2][_0x263138('0x1810')],'msg':_0x4f9126[_0x263138('0x1e07')][_0x263138('0x1d4a')][_0x51b5c2][_0x263138('0x67f')]});}}else _0x2b39ca[_0x263138('0x15aa')]({'title':_0x4f9126[_0x263138('0x276f')]?_0x263138('0x137')+_0x4f9126['status']+_0x263138('0x160c')+_0x4f9126[_0x263138('0x2696')]:_0x263138('0x10e4'),'msg':_0x4f9126[_0x263138('0x1e07')]?JSON[_0x263138('0x100b')](_0x4f9126['data'][_0x263138('0x67f')]):_0x4f9126[_0x263138('0x67f')]||_0x4f9126[_0x263138('0x1b75')]()});});}function _0x2c0cd1(){const _0x2d6361=_0x2db5f4,_0x59e129=angular[_0x2d6361('0x2e3')](_0x5d1615[_0x2d6361('0x13fc')]);return _0x5d1615['selectedServicenowAccounts']=[],_0x59e129;}function _0x3bf688(_0x2ddacb){const _0x5d8485=_0x2db5f4,_0x427199=_0x4b3d71['confirm']()[_0x5d8485('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20servicenowAccounts?')[_0x5d8485('0xf8b')](''+_0x5d1615[_0x5d8485('0x13fc')]['length']+_0x5d8485('0xcb4')+'\x20will\x20be\x20deleted.')[_0x5d8485('0x217')](_0x5d8485('0xbb9'))[_0x5d8485('0x21de')](_0x2ddacb)['ok']('OK')[_0x5d8485('0x1e1f')](_0x5d8485('0x468'));_0x4b3d71[_0x5d8485('0x1cb7')](_0x427199)['then'](function(){const _0x279077=_0x5d8485;_0x5d1615['selectedServicenowAccounts'][_0x279077('0xa6a')](function(_0x35753d){_0x1d447b(_0x35753d);}),_0x5d1615[_0x279077('0x13fc')]=[];});}function _0x276924(){const _0xeb8b49=_0x2db5f4;_0x5d1615[_0xeb8b49('0x13fc')]=[];}function _0x5a7544(){const _0x10c2a0=_0x2db5f4;_0x5d1615[_0x10c2a0('0x13fc')]=_0x5d1615[_0x10c2a0('0x1958')][_0x10c2a0('0x6aa')];}}const _0x2b9140=_0x49490e;_0x3a9629[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x2111'),_0x566993('0xfae'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x3a9629(_0x10364a,_0x5a0c2c,_0xc559dd,_0x4f0a50,_0x56d9fc,_0x1aedd5,_0x2a2716,_0x3231a4,_0x5c21b5,_0x5636f3,_0x109d1e,_0x2ad145,_0x379b08,_0xcabc8e){const _0xeaffa3=_0x566993,_0x4981a3=this;_0x4981a3[_0xeaffa3('0x155f')]=_0x109d1e['getCurrentUser'](),_0x4981a3[_0xeaffa3('0x1d4a')]=[],_0x4981a3[_0xeaffa3('0x251')]=_0x379b08,_0x4981a3[_0xeaffa3('0x1a29')]=_0x2ad145,_0x4981a3['crudPermissions']=_0xcabc8e,_0x4981a3[_0xeaffa3('0xb0')]={},_0x4981a3[_0xeaffa3('0x644')]=_0x4981a3[_0xeaffa3('0x251')]&&_0x4981a3['setting'][_0xeaffa3('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4981a3[_0xeaffa3('0x20d6')]='INTEGRATIONS.EDIT_SUGARCRMACCOUNT',_0x4981a3[_0xeaffa3('0xfae')]=angular[_0xeaffa3('0x2e3')](_0x5c21b5),_0x4981a3[_0xeaffa3('0x2111')]=_0x3231a4,_0x4981a3['newSugarcrmAccount']=![];!_0x4981a3[_0xeaffa3('0xfae')]&&(_0x4981a3[_0xeaffa3('0xfae')]={'serverUrl':_0xc559dd['protocol']()+'://'+_0xc559dd['host']()+(_0xc559dd[_0xeaffa3('0xe0d')]()?':'+_0xc559dd[_0xeaffa3('0xe0d')]():'')},_0x4981a3[_0xeaffa3('0x20d6')]=_0xeaffa3('0x1133'),_0x4981a3[_0xeaffa3('0x708')]=!![]);_0x4981a3[_0xeaffa3('0x14d0')]=_0x4b1395,_0x4981a3[_0xeaffa3('0xcb2')]=_0x8d7488,_0x4981a3[_0xeaffa3('0x1b0c')]=_0x1a4ccb,_0x4981a3[_0xeaffa3('0x11ae')]=_0x4f32b0,_0x4981a3[_0xeaffa3('0x18e2')]=_0x53f2fd;function _0x4b1395(){const _0x545fe4=_0xeaffa3;_0x4981a3['errors']=[],_0x5636f3['intSugarcrmAccount'][_0x545fe4('0x1195')](_0x4981a3[_0x545fe4('0xfae')])[_0x545fe4('0x1964')][_0x545fe4('0x173b')](function(_0x1f9c36){const _0x49accc=_0x545fe4;_0x4981a3['sugarcrmAccounts'][_0x49accc('0x1377')](_0x1f9c36['toJSON']()),_0x2a2716[_0x49accc('0xdfe')]({'title':_0x49accc('0x313'),'msg':_0x4981a3[_0x49accc('0xfae')]['name']?_0x4981a3[_0x49accc('0xfae')][_0x49accc('0x10ad')]+_0x49accc('0x209a'):''}),_0x53f2fd(_0x1f9c36);})['catch'](function(_0x1b3b9e){const _0x12324c=_0x545fe4;if(_0x1b3b9e[_0x12324c('0x1e07')]&&_0x1b3b9e[_0x12324c('0x1e07')][_0x12324c('0x1d4a')]&&_0x1b3b9e[_0x12324c('0x1e07')]['errors'][_0x12324c('0x543')]){_0x4981a3[_0x12324c('0x1d4a')]=_0x1b3b9e[_0x12324c('0x1e07')]['errors']||[{'message':_0x1b3b9e[_0x12324c('0x1b75')](),'type':_0x12324c('0x26c8')}];for(let _0x1b58f0=0x0;_0x1b58f0<_0x1b3b9e[_0x12324c('0x1e07')][_0x12324c('0x1d4a')][_0x12324c('0x543')];_0x1b58f0+=0x1){_0x2a2716[_0x12324c('0x15aa')]({'title':_0x1b3b9e[_0x12324c('0x1e07')][_0x12324c('0x1d4a')][_0x1b58f0][_0x12324c('0x1810')],'msg':_0x1b3b9e[_0x12324c('0x1e07')][_0x12324c('0x1d4a')][_0x1b58f0][_0x12324c('0x67f')]});}}else _0x2a2716[_0x12324c('0x15aa')]({'title':_0x1b3b9e[_0x12324c('0x276f')]?_0x12324c('0x137')+_0x1b3b9e[_0x12324c('0x276f')]+_0x12324c('0x160c')+_0x1b3b9e[_0x12324c('0x2696')]:_0x12324c('0x26c8'),'msg':_0x1b3b9e[_0x12324c('0x1e07')]?JSON[_0x12324c('0x100b')](_0x1b3b9e[_0x12324c('0x1e07')]['message']):_0x1b3b9e[_0x12324c('0x1b75')]()});});}function _0x8d7488(){const _0x5f22e2=_0xeaffa3;_0x4981a3[_0x5f22e2('0x1d4a')]=[],_0x5636f3[_0x5f22e2('0x2584')]['update']({'id':_0x4981a3[_0x5f22e2('0xfae')]['id']},_0x4981a3[_0x5f22e2('0xfae')])[_0x5f22e2('0x1964')][_0x5f22e2('0x173b')](function(_0x315a2e){const _0x8a319d=_0x5f22e2,_0xce53f9=_0x3c8d8a()[_0x8a319d('0x18ab')](_0x4981a3['sugarcrmAccounts'],{'id':_0x315a2e['id']});_0xce53f9&&_0x3c8d8a()[_0x8a319d('0x9ef')](_0xce53f9,_0x3c8d8a()['pick'](_0x315a2e[_0x8a319d('0xf1f')](),_0x3c8d8a()[_0x8a319d('0x1d3e')](_0xce53f9))),_0x2a2716['success']({'title':'SugarcrmAccount\x20properly\x20saved!','msg':_0x4981a3[_0x8a319d('0xfae')][_0x8a319d('0x10ad')]?_0x4981a3[_0x8a319d('0xfae')][_0x8a319d('0x10ad')]+_0x8a319d('0x2788'):''}),_0x53f2fd(_0x315a2e);})[_0x5f22e2('0x103c')](function(_0x27fa4c){const _0x79f161=_0x5f22e2;if(_0x27fa4c['data']&&_0x27fa4c['data'][_0x79f161('0x1d4a')]&&_0x27fa4c[_0x79f161('0x1e07')][_0x79f161('0x1d4a')]['length']){_0x4981a3[_0x79f161('0x1d4a')]=_0x27fa4c[_0x79f161('0x1e07')]['errors']||[{'message':_0x27fa4c[_0x79f161('0x1b75')](),'type':_0x79f161('0x270b')}];for(let _0x382301=0x0;_0x382301<_0x27fa4c[_0x79f161('0x1e07')][_0x79f161('0x1d4a')][_0x79f161('0x543')];_0x382301++){_0x2a2716[_0x79f161('0x15aa')]({'title':_0x27fa4c[_0x79f161('0x1e07')][_0x79f161('0x1d4a')][_0x382301][_0x79f161('0x1810')],'msg':_0x27fa4c[_0x79f161('0x1e07')][_0x79f161('0x1d4a')][_0x382301][_0x79f161('0x67f')]});}}else _0x2a2716[_0x79f161('0x15aa')]({'title':_0x27fa4c[_0x79f161('0x276f')]?_0x79f161('0x137')+_0x27fa4c[_0x79f161('0x276f')]+_0x79f161('0x160c')+_0x27fa4c[_0x79f161('0x2696')]:_0x79f161('0x270b'),'msg':_0x27fa4c[_0x79f161('0x1e07')]?JSON[_0x79f161('0x100b')](_0x27fa4c['data'][_0x79f161('0x67f')]):_0x27fa4c[_0x79f161('0x1b75')]()});});}function _0x1a4ccb(_0x319321){const _0x5c7aac=_0xeaffa3;_0x4981a3['errors']=[];const _0x411611=_0x4f0a50['confirm']()[_0x5c7aac('0x20d6')]('Are\x20you\x20sure?')[_0x5c7aac('0x732')](_0x5c7aac('0x1fa8'))[_0x5c7aac('0x217')](_0x5c7aac('0x15ad'))['ok']('Delete')[_0x5c7aac('0x1e1f')](_0x5c7aac('0x1d4e'))[_0x5c7aac('0x21de')](_0x319321);_0x4f0a50[_0x5c7aac('0x1cb7')](_0x411611)[_0x5c7aac('0x173b')](function(){const _0x578dba=_0x5c7aac;_0x5636f3[_0x578dba('0x2584')][_0x578dba('0x15e8')]({'id':_0x4981a3[_0x578dba('0xfae')]['id']})[_0x578dba('0x1964')][_0x578dba('0x173b')](function(){const _0x73adb0=_0x578dba;_0x3c8d8a()[_0x73adb0('0x1a8b')](_0x4981a3[_0x73adb0('0x2111')],{'id':_0x4981a3[_0x73adb0('0xfae')]['id']}),_0x2a2716[_0x73adb0('0xdfe')]({'title':'SugarcrmAccount\x20properly\x20deleted!','msg':(_0x4981a3['sugarcrmAccount'][_0x73adb0('0x10ad')]||_0x73adb0('0xfae'))+_0x73adb0('0x25d2')}),_0x53f2fd(_0x4981a3['sugarcrmAccount']);})['catch'](function(_0xe80aef){const _0xc51230=_0x578dba;if(_0xe80aef['data']&&_0xe80aef[_0xc51230('0x1e07')][_0xc51230('0x1d4a')]&&_0xe80aef['data'][_0xc51230('0x1d4a')][_0xc51230('0x543')]){_0x4981a3['errors']=_0xe80aef[_0xc51230('0x1e07')]['errors']||[{'message':_0xe80aef[_0xc51230('0x1b75')](),'type':_0xc51230('0x1952')}];for(let _0x50a940=0x0;_0x50a940<_0xe80aef['data']['errors'][_0xc51230('0x543')];_0x50a940++){_0x2a2716[_0xc51230('0x15aa')]({'title':_0xe80aef['data'][_0xc51230('0x1d4a')][_0x50a940][_0xc51230('0x1810')],'msg':_0xe80aef['data']['errors'][_0x50a940]['message']});}}else _0x2a2716[_0xc51230('0x15aa')]({'title':_0xe80aef[_0xc51230('0x276f')]?_0xc51230('0x137')+_0xe80aef[_0xc51230('0x276f')]+_0xc51230('0x160c')+_0xe80aef[_0xc51230('0x2696')]:'api.intSugarcrmAccount.delete','msg':_0xe80aef[_0xc51230('0x1e07')]?JSON['stringify'](_0xe80aef['data'][_0xc51230('0x67f')]):_0xe80aef[_0xc51230('0x67f')]||_0xe80aef[_0xc51230('0x1b75')]()});});},function(){});}function _0x4f32b0(_0x4d6379){return _0x4d6379===null?undefined:new Date(_0x4d6379);}function _0x53f2fd(_0x245c76){_0x4f0a50['hide'](_0x245c76);}}const _0x22013d=_0x3a9629,_0x49f60b=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog.html',_0x367403=_0x21a6a1['p']+_0x566993('0x2c3');_0x556700['$inject']=[_0x566993('0x1fe5'),'$document','api',_0x566993('0x1558'),_0x566993('0x1600')];function _0x556700(_0xae452b,_0x15ea1c,_0x4c7a0f,_0x17b5e0,_0x155ede){const _0x4b0d14=_0x566993,_0x11af60=this;_0x11af60[_0x4b0d14('0x155f')]=_0x155ede['getCurrentUser'](),_0x11af60[_0x4b0d14('0xfae')]={},_0x11af60[_0x4b0d14('0x32d')]={},_0x11af60['configurations']=[],_0x11af60[_0x4b0d14('0x143a')]=-0x1,_0x11af60['crudPermissions'],_0x11af60[_0x4b0d14('0xb9c')]=_0x3c0344,_0x11af60[_0x4b0d14('0xad9')]=_0x372ef0,_0x11af60[_0x4b0d14('0x990')]=_0x576ae2,_0x11af60[_0x4b0d14('0x1461')]=_0x505db7;function _0x3c0344(_0x5d0c8a,_0x2ec4bb){const _0x3fc14e=_0x4b0d14;_0x11af60[_0x3fc14e('0xfae')]=_0x5d0c8a,_0x11af60[_0x3fc14e('0x1dc1')]=typeof _0x2ec4bb!=='undefined'?_0x2ec4bb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4c7a0f[_0x3fc14e('0x2584')][_0x3fc14e('0x1f25')]({'id':_0x11af60['sugarcrmAccount']['id'],'sort':_0x3fc14e('0x1769')})[_0x3fc14e('0x1964')][_0x3fc14e('0x173b')](function(_0x213f5f){const _0x4fdd55=_0x3fc14e;return _0x11af60[_0x4fdd55('0x294')]=_0x213f5f[_0x4fdd55('0x6aa')]?_0x213f5f[_0x4fdd55('0x6aa')]:[],_0x11af60[_0x4fdd55('0x294')][_0x4fdd55('0x543')]&&_0x11af60['getSugarcrmConfiguration'](0x0),_0x4c7a0f['variable'][_0x4fdd55('0x1d97')]({'nolimit':!![],'sort':_0x4fdd55('0x10ad')})['$promise'];})[_0x3fc14e('0x173b')](function(_0x586312){const _0x5e561b=_0x3fc14e;_0x11af60[_0x5e561b('0x2715')]=_0x586312[_0x5e561b('0x6aa')]?_0x586312[_0x5e561b('0x6aa')]:[],_0x11af60[_0x5e561b('0x17f8')]=_0x3c8d8a()['keyBy'](_0x11af60['variables'],'id');})[_0x3fc14e('0x103c')](function(_0x542db3){const _0x37c7a6=_0x3fc14e;_0x17b5e0[_0x37c7a6('0x15aa')]({'title':_0x542db3[_0x37c7a6('0x276f')]?_0x37c7a6('0x137')+_0x542db3[_0x37c7a6('0x276f')]+_0x37c7a6('0x160c')+_0x542db3['statusText']:_0x37c7a6('0x125a'),'msg':_0x542db3[_0x37c7a6('0x1e07')]?JSON[_0x37c7a6('0x100b')](_0x542db3[_0x37c7a6('0x1e07')]):_0x542db3[_0x37c7a6('0x1b75')]()});});}function _0x372ef0(_0x3164e9){const _0x2afb73=_0x4b0d14;_0x11af60[_0x2afb73('0x32d')]=_0x11af60[_0x2afb73('0x294')][_0x3164e9],_0x11af60[_0x2afb73('0x143a')]=_0x3164e9,_0x4c7a0f[_0x2afb73('0xc0f')][_0x2afb73('0x717')]({'id':_0x11af60[_0x2afb73('0x32d')]['id']})['$promise'][_0x2afb73('0x173b')](function(_0x12a43c){const _0x425ca0=_0x2afb73;return _0x11af60[_0x425ca0('0x1b35')]=_0x12a43c[_0x425ca0('0x6aa')]?_0x12a43c[_0x425ca0('0x6aa')]:[],_0x4c7a0f[_0x425ca0('0xc0f')][_0x425ca0('0xb28')]({'id':_0x11af60[_0x425ca0('0x32d')]['id']})[_0x425ca0('0x1964')];})[_0x2afb73('0x173b')](function(_0x3f51e6){const _0x28c7fe=_0x2afb73;return _0x11af60[_0x28c7fe('0xb60')]=_0x3f51e6['rows']?_0x3f51e6[_0x28c7fe('0x6aa')]:[],_0x4c7a0f[_0x28c7fe('0xc0f')]['getFields']({'id':_0x11af60[_0x28c7fe('0x32d')]['id']})[_0x28c7fe('0x1964')];})[_0x2afb73('0x173b')](function(_0x260c33){const _0x569370=_0x2afb73;_0x11af60[_0x569370('0x2340')]=_0x260c33[_0x569370('0x6aa')]?_0x260c33['rows']:[];})[_0x2afb73('0x103c')](function(_0x27459d){const _0x19c5ce=_0x2afb73;_0x17b5e0[_0x19c5ce('0x15aa')]({'title':_0x27459d[_0x19c5ce('0x276f')]?_0x19c5ce('0x137')+_0x27459d[_0x19c5ce('0x276f')]+_0x19c5ce('0x160c')+_0x27459d[_0x19c5ce('0x2696')]:'SYSTEM:GETConfigurations','msg':_0x27459d[_0x19c5ce('0x1e07')]?JSON['stringify'](_0x27459d[_0x19c5ce('0x1e07')]):_0x27459d[_0x19c5ce('0x1b75')]()});});}function _0x576ae2(_0x392b4d,_0x2c6c0e){const _0x79cd4f=_0x4b0d14;_0xae452b[_0x79cd4f('0x1cb7')]({'controller':_0x79cd4f('0xf72'),'controllerAs':'vm','templateUrl':_0x49f60b,'parent':angular[_0x79cd4f('0xb6d')](_0x15ea1c[_0x79cd4f('0x1a5')]),'targetEvent':_0x392b4d,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x2c6c0e,'configurations':_0x11af60[_0x79cd4f('0x294')],'license':null,'setting':null,'crudPermissions':_0x11af60[_0x79cd4f('0x1dc1')]}})['finally'](function(){const _0x538bb=_0x79cd4f;_0x11af60[_0x538bb('0xad9')](0x0);});}function _0x505db7(_0x3c4ff8,_0x28f985){const _0x5c8dd2=_0x4b0d14,_0x566560=_0xae452b[_0x5c8dd2('0x1d02')]()[_0x5c8dd2('0x20d6')](_0x5c8dd2('0x204a'))[_0x5c8dd2('0xf8b')](_0x5c8dd2('0x15b9')+(_0x28f985['name']||'sugarcrmConfiguration')+_0x5c8dd2('0x24be')+_0x5c8dd2('0xd23'))[_0x5c8dd2('0x217')](_0x5c8dd2('0x207'))[_0x5c8dd2('0x21de')](_0x3c4ff8)['ok']('OK')[_0x5c8dd2('0x1e1f')](_0x5c8dd2('0x468'));_0xae452b[_0x5c8dd2('0x1cb7')](_0x566560)[_0x5c8dd2('0x173b')](function(){const _0x26c9ed=_0x5c8dd2;_0x4c7a0f[_0x26c9ed('0xc0f')]['delete']({'id':_0x28f985['id']})['$promise']['then'](function(){const _0xa03559=_0x26c9ed;_0x3c8d8a()[_0xa03559('0x1a8b')](_0x11af60[_0xa03559('0x294')],{'id':_0x28f985['id']}),_0x17b5e0['success']({'title':_0xa03559('0xa97'),'msg':_0x28f985[_0xa03559('0x10ad')]?_0x28f985[_0xa03559('0x10ad')]+_0xa03559('0x25d2'):''});})[_0x26c9ed('0x103c')](function(_0x565112){const _0x30edfb=_0x26c9ed;_0x17b5e0['error']({'title':_0x565112[_0x30edfb('0x276f')]?_0x30edfb('0x137')+_0x565112[_0x30edfb('0x276f')]+_0x30edfb('0x160c')+_0x565112[_0x30edfb('0x2696')]:_0x30edfb('0x1d30'),'msg':_0x565112[_0x30edfb('0x1e07')]?JSON[_0x30edfb('0x100b')](_0x565112[_0x30edfb('0x1e07')]):_0x565112[_0x30edfb('0x1b75')]()});})['finally'](function(){_0x11af60['getSugarcrmConfiguration'](0x0);});},function(){const _0x366c3f=_0x5c8dd2;console['log'](_0x366c3f('0x468'));});}_0x11af60[_0x4b0d14('0x276e')]=[],_0x11af60[_0x4b0d14('0x1317')]=_0x559921,_0x11af60['deleteSubjectConfirm']=_0x4b497d,_0x11af60[_0x4b0d14('0x178c')]=_0x27946f;function _0x559921(_0x507ac9,_0x4483ff){const _0x313b3e=_0x4b0d14;_0xae452b[_0x313b3e('0x1cb7')]({'controller':_0x313b3e('0x14a6'),'controllerAs':'vm','templateUrl':_0x367403,'parent':angular[_0x313b3e('0xb6d')](_0x15ea1c['body']),'targetEvent':_0x507ac9,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x4483ff,'items':_0x11af60['subjects'],'configuration':_0x11af60['sugarcrmConfiguration'],'account':_0x11af60['sugarcrmAccount'],'license':null,'setting':null,'crudPermissions':_0x11af60[_0x313b3e('0x1dc1')]}});}function _0x44356b(_0x1aaa53){const _0x1456e1=_0x4b0d14;_0x4c7a0f[_0x1456e1('0x11f6')]['delete']({'id':_0x1aaa53['id']})[_0x1456e1('0x1964')][_0x1456e1('0x173b')](function(){const _0x6baf9f=_0x1456e1;_0x3c8d8a()[_0x6baf9f('0x1a8b')](_0x11af60[_0x6baf9f('0x1b35')],{'id':_0x1aaa53['id']}),_0x17b5e0[_0x6baf9f('0xdfe')]({'title':_0x6baf9f('0xa5e'),'msg':_0x6baf9f('0x213e')});})[_0x1456e1('0x103c')](function(_0x3bf215){const _0x451496=_0x1456e1;_0x17b5e0[_0x451496('0x15aa')]({'title':_0x3bf215[_0x451496('0x276f')]?_0x451496('0x137')+_0x3bf215['status']+_0x451496('0x160c')+_0x3bf215['statusText']:_0x451496('0x1400'),'msg':_0x3bf215['data']?JSON['stringify'](_0x3bf215[_0x451496('0x1e07')]):_0x3bf215['toString']()});});}function _0x4b497d(_0x17b365,_0x41b89b){const _0x25bbeb=_0x4b0d14,_0x4ffd98=_0xae452b[_0x25bbeb('0x1d02')]()['title'](_0x25bbeb('0x31c'))[_0x25bbeb('0xf8b')](_0x25bbeb('0x1274')+_0x25bbeb('0xd23'))['ariaLabel']('delete\x20subject')[_0x25bbeb('0x21de')](_0x17b365)['ok']('OK')['cancel'](_0x25bbeb('0x468'));_0xae452b[_0x25bbeb('0x1cb7')](_0x4ffd98)['then'](function(){_0x44356b(_0x41b89b);},function(){const _0x36e36f=_0x25bbeb;console[_0x36e36f('0xe37')](_0x36e36f('0x468'));});}function _0x27946f(_0x29bf60){const _0x4cef4c=_0x4b0d14,_0x47a52a=_0xae452b[_0x4cef4c('0x1d02')]()[_0x4cef4c('0x20d6')](_0x4cef4c('0x837'))[_0x4cef4c('0xf8b')](''+_0x11af60[_0x4cef4c('0x276e')][_0x4cef4c('0x543')]+'\x20selected'+_0x4cef4c('0xd23'))['ariaLabel'](_0x4cef4c('0xe22'))[_0x4cef4c('0x21de')](_0x29bf60)['ok']('OK')[_0x4cef4c('0x1e1f')](_0x4cef4c('0x468'));_0xae452b[_0x4cef4c('0x1cb7')](_0x47a52a)['then'](function(){const _0x22ed8a=_0x4cef4c;_0x11af60[_0x22ed8a('0x276e')]['forEach'](function(_0x42c045){_0x44356b(_0x42c045);}),_0x11af60[_0x22ed8a('0x276e')]=[];});}_0x11af60['selectedDescriptions']=[],_0x11af60[_0x4b0d14('0x1720')]=_0x43d483,_0x11af60[_0x4b0d14('0x7e4')]=_0xb7ee15,_0x11af60[_0x4b0d14('0x51d')]=_0x3283da;function _0x43d483(_0x335506,_0x41ae69){const _0x16dd2c=_0x4b0d14;_0xae452b[_0x16dd2c('0x1cb7')]({'controller':_0x16dd2c('0x14a6'),'controllerAs':'vm','templateUrl':_0x367403,'parent':angular['element'](_0x15ea1c[_0x16dd2c('0x1a5')]),'targetEvent':_0x335506,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x41ae69,'items':_0x11af60[_0x16dd2c('0xb60')],'configuration':_0x11af60[_0x16dd2c('0x32d')],'account':_0x11af60['sugarcrmAccount'],'license':null,'setting':null,'crudPermissions':_0x11af60[_0x16dd2c('0x1dc1')]}});}function _0x279445(_0x5b4b80){const _0x26444a=_0x4b0d14;_0x4c7a0f['intSugarcrmField']['delete']({'id':_0x5b4b80['id']})[_0x26444a('0x1964')]['then'](function(){const _0x37e1d1=_0x26444a;_0x3c8d8a()['remove'](_0x11af60[_0x37e1d1('0xb60')],{'id':_0x5b4b80['id']}),_0x17b5e0['success']({'title':_0x37e1d1('0x1c35'),'msg':_0x37e1d1('0x2298')});})['catch'](function(_0x26d0f5){const _0x1407a9=_0x26444a;_0x17b5e0['error']({'title':_0x26d0f5[_0x1407a9('0x276f')]?'API:'+_0x26d0f5[_0x1407a9('0x276f')]+_0x1407a9('0x160c')+_0x26d0f5[_0x1407a9('0x2696')]:_0x1407a9('0x1400'),'msg':_0x26d0f5[_0x1407a9('0x1e07')]?JSON[_0x1407a9('0x100b')](_0x26d0f5['data']):_0x26d0f5[_0x1407a9('0x1b75')]()});});}function _0xb7ee15(_0x40a0f5,_0x1e214c){const _0x1c9379=_0x4b0d14,_0xa957c9=_0xae452b['confirm']()[_0x1c9379('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0x1c9379('0xf8b')]('Description'+_0x1c9379('0xd23'))[_0x1c9379('0x217')](_0x1c9379('0xfff'))[_0x1c9379('0x21de')](_0x40a0f5)['ok']('OK')[_0x1c9379('0x1e1f')](_0x1c9379('0x468'));_0xae452b['show'](_0xa957c9)['then'](function(){_0x279445(_0x1e214c);},function(){const _0x4dfd25=_0x1c9379;console[_0x4dfd25('0xe37')](_0x4dfd25('0x468'));});}function _0x3283da(_0x11b870){const _0xaa9313=_0x4b0d14,_0x3b54c=_0xae452b[_0xaa9313('0x1d02')]()[_0xaa9313('0x20d6')](_0xaa9313('0x1807'))[_0xaa9313('0xf8b')](_0xaa9313('0x15b9')+_0x11af60['selectedDescriptions'][_0xaa9313('0x543')]+_0xaa9313('0xcb4')+_0xaa9313('0xd23'))[_0xaa9313('0x217')](_0xaa9313('0x11fd'))[_0xaa9313('0x21de')](_0x11b870)['ok']('OK')[_0xaa9313('0x1e1f')](_0xaa9313('0x468'));_0xae452b[_0xaa9313('0x1cb7')](_0x3b54c)[_0xaa9313('0x173b')](function(){const _0x15b929=_0xaa9313;_0x11af60[_0x15b929('0x10e1')][_0x15b929('0xa6a')](function(_0x430c3b){_0x279445(_0x430c3b);}),_0x11af60[_0x15b929('0x10e1')]=[];});}_0x11af60[_0x4b0d14('0x86d')]=[],_0x11af60[_0x4b0d14('0xbb7')]=_0x1115c3,_0x11af60[_0x4b0d14('0x218b')]=_0x41560b,_0x11af60[_0x4b0d14('0x252f')]=_0x190b40;function _0x1115c3(_0x52be03,_0x1121f8){const _0x126e9d=_0x4b0d14;_0xae452b['show']({'controller':_0x126e9d('0x14a6'),'controllerAs':'vm','templateUrl':_0x367403,'parent':angular[_0x126e9d('0xb6d')](_0x15ea1c[_0x126e9d('0x1a5')]),'targetEvent':_0x52be03,'clickOutsideToClose':!![],'locals':{'type':_0x126e9d('0x81d'),'item':_0x1121f8,'items':_0x11af60[_0x126e9d('0x2340')],'configuration':_0x11af60[_0x126e9d('0x32d')],'account':_0x11af60[_0x126e9d('0xfae')],'license':null,'setting':null,'crudPermissions':_0x11af60[_0x126e9d('0x1dc1')]}});}function _0x4a6a6c(_0x382421){const _0x3be693=_0x4b0d14;_0x4c7a0f[_0x3be693('0x11f6')][_0x3be693('0x15e8')]({'id':_0x382421['id']})['$promise'][_0x3be693('0x173b')](function(){const _0x3c53cc=_0x3be693;_0x3c8d8a()[_0x3c53cc('0x1a8b')](_0x11af60['fields'],{'id':_0x382421['id']}),_0x17b5e0[_0x3c53cc('0xdfe')]({'title':'Field\x20deleted!','msg':_0x3c53cc('0x1063')});})['catch'](function(_0x450662){const _0x240d1f=_0x3be693;_0x17b5e0['error']({'title':_0x450662['status']?'API:'+_0x450662[_0x240d1f('0x276f')]+_0x240d1f('0x160c')+_0x450662[_0x240d1f('0x2696')]:_0x240d1f('0x1400'),'msg':_0x450662['data']?JSON['stringify'](_0x450662[_0x240d1f('0x1e07')]):_0x450662[_0x240d1f('0x1b75')]()});});}function _0x41560b(_0x2cf632,_0x19ab12){const _0x364428=_0x4b0d14,_0x1b7973=_0xae452b[_0x364428('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x364428('0xf8b')](_0x364428('0x1cf')+_0x364428('0xd23'))[_0x364428('0x217')](_0x364428('0x1b20'))[_0x364428('0x21de')](_0x2cf632)['ok']('OK')[_0x364428('0x1e1f')]('CANCEL');_0xae452b[_0x364428('0x1cb7')](_0x1b7973)['then'](function(){_0x4a6a6c(_0x19ab12);},function(){const _0x4acbed=_0x364428;console[_0x4acbed('0xe37')](_0x4acbed('0x468'));});}function _0x190b40(_0x9963b){const _0x22ae66=_0x4b0d14,_0x290460=_0xae452b[_0x22ae66('0x1d02')]()['title'](_0x22ae66('0x18ba'))['htmlContent'](_0x22ae66('0x15b9')+_0x11af60[_0x22ae66('0x86d')]['length']+'\x20selected'+_0x22ae66('0xd23'))['ariaLabel'](_0x22ae66('0xbaf'))[_0x22ae66('0x21de')](_0x9963b)['ok']('OK')[_0x22ae66('0x1e1f')]('CANCEL');_0xae452b['show'](_0x290460)['then'](function(){const _0x30f6cc=_0x22ae66;_0x11af60[_0x30f6cc('0x86d')]['forEach'](function(_0x55fc0e){_0x4a6a6c(_0x55fc0e);}),_0x11af60['selectedFields']=[];});}}const _0x22195e=_0x556700;_0x45afc3[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q','$translate','toasty','configurations',_0x566993('0x32d'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x45afc3(_0x38580a,_0x145fdd,_0x3b8cf3,_0x7b4bdf,_0x259931,_0x44c2c3,_0x40f2ac,_0x318980,_0x1ed535,_0x4ccfce,_0x5f11e4,_0x2899eb,_0x343ef5,_0x3223a6){const _0x437aef=_0x566993,_0x3b0333=this;_0x3b0333[_0x437aef('0x155f')]=_0x5f11e4[_0x437aef('0x14d4')](),_0x3b0333['errors']=[],_0x3b0333[_0x437aef('0x251')]=_0x343ef5,_0x3b0333[_0x437aef('0x1a29')]=_0x2899eb,_0x3b0333[_0x437aef('0x1dc1')]=_0x3223a6,_0x3b0333['hasModulePermissions']={},_0x3b0333['passwordPattern']=_0x3b0333['setting']&&_0x3b0333[_0x437aef('0x251')][_0x437aef('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3b0333[_0x437aef('0x20d6')]='INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION',_0x3b0333[_0x437aef('0x32d')]=angular[_0x437aef('0x2e3')](_0x1ed535),_0x3b0333[_0x437aef('0x294')]=_0x318980,_0x3b0333[_0x437aef('0x1588')]=![];!_0x3b0333[_0x437aef('0x32d')]&&(_0x3b0333[_0x437aef('0x32d')]={'channel':_0x437aef('0x21a8'),'type':_0x437aef('0x1755')},_0x3b0333[_0x437aef('0x20d6')]=_0x437aef('0x1c11'),_0x3b0333[_0x437aef('0x1588')]=!![]);_0x3b0333[_0x437aef('0x21fa')]=_0x2ba41a,_0x3b0333[_0x437aef('0x824')]=_0x416d56,_0x3b0333[_0x437aef('0x1461')]=_0x126ce9,_0x3b0333['getDateFromString']=_0x55a0bb,_0x3b0333['closeDialog']=_0x15e888;function _0x2ba41a(){const _0x1d954e=_0x437aef;_0x3b0333['errors']=[],_0x4ccfce[_0x1d954e('0x2584')][_0x1d954e('0x795')]({'id':_0x145fdd[_0x1d954e('0x197a')]['id']},_0x3b0333[_0x1d954e('0x32d')])[_0x1d954e('0x1964')][_0x1d954e('0x173b')](function(_0x56624a){const _0x4104f0=_0x1d954e;_0x3b0333[_0x4104f0('0x294')][_0x4104f0('0x1377')](_0x56624a['toJSON']()),_0x40f2ac[_0x4104f0('0xdfe')]({'title':_0x4104f0('0x287'),'msg':_0x3b0333[_0x4104f0('0x32d')]['name']?_0x3b0333['sugarcrmConfiguration']['name']+_0x4104f0('0x209a'):''}),_0x15e888(_0x56624a);})[_0x1d954e('0x103c')](function(_0x120aa2){const _0x2875c3=_0x1d954e;if(_0x120aa2[_0x2875c3('0x1e07')]&&_0x120aa2[_0x2875c3('0x1e07')][_0x2875c3('0x1d4a')]&&_0x120aa2['data'][_0x2875c3('0x1d4a')]['length']){_0x3b0333[_0x2875c3('0x1d4a')]=_0x120aa2[_0x2875c3('0x1e07')][_0x2875c3('0x1d4a')]||[{'message':_0x120aa2[_0x2875c3('0x1b75')](),'type':_0x2875c3('0x6cf')}];for(let _0x501c9c=0x0;_0x501c9c<_0x120aa2['data'][_0x2875c3('0x1d4a')]['length'];_0x501c9c+=0x1){_0x40f2ac[_0x2875c3('0x15aa')]({'title':_0x120aa2[_0x2875c3('0x1e07')][_0x2875c3('0x1d4a')][_0x501c9c][_0x2875c3('0x1810')],'msg':_0x120aa2[_0x2875c3('0x1e07')]['errors'][_0x501c9c]['message']});}}else _0x40f2ac['error']({'title':_0x120aa2['status']?'API:'+_0x120aa2[_0x2875c3('0x276f')]+_0x2875c3('0x160c')+_0x120aa2['statusText']:'api.intSugarcrmConfiguration.save','msg':_0x120aa2[_0x2875c3('0x1e07')]?JSON[_0x2875c3('0x100b')](_0x120aa2['data'][_0x2875c3('0x67f')]):_0x120aa2['toString']()});});}function _0x416d56(){const _0x409925=_0x437aef;_0x3b0333[_0x409925('0x1d4a')]=[],_0x4ccfce[_0x409925('0xc0f')][_0x409925('0x1842')]({'id':_0x3b0333[_0x409925('0x32d')]['id']},_0x3b0333['sugarcrmConfiguration'])[_0x409925('0x1964')][_0x409925('0x173b')](function(_0x462405){const _0x253697=_0x409925,_0x5077b7=_0x3c8d8a()[_0x253697('0x18ab')](_0x3b0333[_0x253697('0x294')],{'id':_0x462405['id']});_0x5077b7&&_0x3c8d8a()['merge'](_0x5077b7,_0x3c8d8a()[_0x253697('0x2114')](_0x462405[_0x253697('0xf1f')](),_0x3c8d8a()[_0x253697('0x1d3e')](_0x5077b7))),_0x40f2ac[_0x253697('0xdfe')]({'title':_0x253697('0x148e'),'msg':_0x3b0333[_0x253697('0x32d')][_0x253697('0x10ad')]?_0x3b0333['sugarcrmConfiguration'][_0x253697('0x10ad')]+_0x253697('0x2788'):''}),_0x15e888(_0x462405);})[_0x409925('0x103c')](function(_0x3b9e22){const _0x4ad9db=_0x409925;if(_0x3b9e22['data']&&_0x3b9e22[_0x4ad9db('0x1e07')][_0x4ad9db('0x1d4a')]&&_0x3b9e22['data'][_0x4ad9db('0x1d4a')][_0x4ad9db('0x543')]){_0x3b0333['errors']=_0x3b9e22['data'][_0x4ad9db('0x1d4a')]||[{'message':_0x3b9e22['toString'](),'type':_0x4ad9db('0x2729')}];for(let _0x9b69ce=0x0;_0x9b69ce<_0x3b9e22['data'][_0x4ad9db('0x1d4a')][_0x4ad9db('0x543')];_0x9b69ce++){_0x40f2ac['error']({'title':_0x3b9e22['data'][_0x4ad9db('0x1d4a')][_0x9b69ce]['type'],'msg':_0x3b9e22[_0x4ad9db('0x1e07')][_0x4ad9db('0x1d4a')][_0x9b69ce][_0x4ad9db('0x67f')]});}}else _0x40f2ac[_0x4ad9db('0x15aa')]({'title':_0x3b9e22[_0x4ad9db('0x276f')]?'API:'+_0x3b9e22[_0x4ad9db('0x276f')]+_0x4ad9db('0x160c')+_0x3b9e22[_0x4ad9db('0x2696')]:_0x4ad9db('0x2729'),'msg':_0x3b9e22[_0x4ad9db('0x1e07')]?JSON[_0x4ad9db('0x100b')](_0x3b9e22[_0x4ad9db('0x1e07')][_0x4ad9db('0x67f')]):_0x3b9e22[_0x4ad9db('0x1b75')]()});});}function _0x126ce9(_0x25f0fe){const _0x43917f=_0x437aef;_0x3b0333[_0x43917f('0x1d4a')]=[];const _0x50460f=_0x7b4bdf[_0x43917f('0x1d02')]()[_0x43917f('0x20d6')](_0x43917f('0x8ef'))[_0x43917f('0x732')](_0x43917f('0x16d5'))[_0x43917f('0x217')](_0x43917f('0xaf4'))['ok'](_0x43917f('0x2373'))[_0x43917f('0x1e1f')](_0x43917f('0x1d4e'))[_0x43917f('0x21de')](_0x25f0fe);_0x7b4bdf[_0x43917f('0x1cb7')](_0x50460f)[_0x43917f('0x173b')](function(){const _0x800ee1=_0x43917f;_0x4ccfce[_0x800ee1('0xc0f')][_0x800ee1('0x15e8')]({'id':_0x3b0333[_0x800ee1('0x32d')]['id']})[_0x800ee1('0x1964')]['then'](function(){const _0x1db33c=_0x800ee1;_0x3c8d8a()['remove'](_0x3b0333[_0x1db33c('0x294')],{'id':_0x3b0333[_0x1db33c('0x32d')]['id']}),_0x40f2ac['success']({'title':_0x1db33c('0x117a'),'msg':(_0x3b0333[_0x1db33c('0x32d')][_0x1db33c('0x10ad')]||_0x1db33c('0x32d'))+_0x1db33c('0x25d2')}),_0x15e888(_0x3b0333[_0x1db33c('0x32d')]);})[_0x800ee1('0x103c')](function(_0x417331){const _0x17b430=_0x800ee1;if(_0x417331[_0x17b430('0x1e07')]&&_0x417331[_0x17b430('0x1e07')]['errors']&&_0x417331[_0x17b430('0x1e07')][_0x17b430('0x1d4a')][_0x17b430('0x543')]){_0x3b0333[_0x17b430('0x1d4a')]=_0x417331[_0x17b430('0x1e07')]['errors']||[{'message':_0x417331['toString'](),'type':_0x17b430('0x23fc')}];for(let _0x1e7b40=0x0;_0x1e7b40<_0x417331['data']['errors']['length'];_0x1e7b40++){_0x40f2ac[_0x17b430('0x15aa')]({'title':_0x417331[_0x17b430('0x1e07')]['errors'][_0x1e7b40][_0x17b430('0x1810')],'msg':_0x417331[_0x17b430('0x1e07')]['errors'][_0x1e7b40][_0x17b430('0x67f')]});}}else _0x40f2ac[_0x17b430('0x15aa')]({'title':_0x417331['status']?'API:'+_0x417331[_0x17b430('0x276f')]+_0x17b430('0x160c')+_0x417331[_0x17b430('0x2696')]:_0x17b430('0x23fc'),'msg':_0x417331[_0x17b430('0x1e07')]?JSON[_0x17b430('0x100b')](_0x417331[_0x17b430('0x1e07')]['message']):_0x417331[_0x17b430('0x67f')]||_0x417331['toString']()});});},function(){});}function _0x55a0bb(_0x5c4d23){return _0x5c4d23===null?undefined:new Date(_0x5c4d23);}function _0x15e888(_0x998f8){const _0xe8c618=_0x437aef;_0x7b4bdf[_0xe8c618('0x1cf4')](_0x998f8);}}const _0x4de3f1=_0x45afc3;_0x2545d9[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','toasty',_0x566993('0x1dde'),'items',_0x566993('0x54'),_0x566993('0xde4'),_0x566993('0x1810'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x2545d9(_0x46ffc8,_0x3b7e57,_0x431b11,_0x416479,_0x43611d,_0x5429f5,_0x200688,_0x1d4a40,_0x5a4751,_0x341563,_0x49bb71,_0x3405f8,_0x3b39cd){const _0x265cdc=_0x566993,_0x1f697a=this;_0x1f697a[_0x265cdc('0x155f')]=_0x3405f8['getCurrentUser'](),_0x1f697a['errors']=[],_0x1f697a[_0x265cdc('0x20d6')]='INTEGRATIONS.EDIT_'+_0x3c8d8a()[_0x265cdc('0x160d')](_0x341563),_0x1f697a['item']=angular[_0x265cdc('0x2e3')](_0x1d4a40),_0x1f697a[_0x265cdc('0x1b1f')]=_0x200688,_0x1f697a[_0x265cdc('0x1810')]=_0x341563,_0x1f697a[_0x265cdc('0x1dc1')]=_0x3b39cd,_0x1f697a[_0x265cdc('0x7')]=![];!_0x1f697a[_0x265cdc('0x54')]&&(_0x1f697a[_0x265cdc('0x54')]={'type':_0x265cdc('0x1533')},_0x1f697a[_0x265cdc('0x54')][_0x3c8d8a()['capitalize'](_0x341563)+'Id']=_0x5429f5['id'],_0x1f697a[_0x265cdc('0x20d6')]=_0x265cdc('0x99f')+_0x3c8d8a()['toUpper'](_0x341563),_0x1f697a[_0x265cdc('0x7')]=!![]);_0x1f697a[_0x265cdc('0x221f')]=_0x1ce3a5,_0x1f697a['saveItem']=_0x2b94e4,_0x1f697a[_0x265cdc('0x2157')]=_0x2c98d4,_0x1f697a['getSelectedVariable']=_0x5f190a,_0x1f697a[_0x265cdc('0x18e2')]=_0x262dac,_0x49bb71[_0x265cdc('0x1b56')][_0x265cdc('0x1d97')]({'nolimit':!![]})['$promise']['then'](function(_0x1cb5c5){const _0x584df3=_0x265cdc;return _0x1f697a[_0x584df3('0x2715')]=_0x1cb5c5[_0x584df3('0x6aa')]?_0x1cb5c5[_0x584df3('0x6aa')]:[],_0x49bb71[_0x584df3('0x934')][_0x584df3('0x2320')]()[_0x584df3('0x1964')];})[_0x265cdc('0x173b')](function(_0x44755f){const _0x10ac2d=_0x265cdc;return _0x1f697a[_0x10ac2d('0x1fe8')]=_0x3c8d8a()[_0x10ac2d('0x1b31')](_0x3c8d8a()[_0x10ac2d('0x1d3e')](_0x44755f),['$promise',_0x10ac2d('0x14ad'),_0x10ac2d('0xda8'),_0x10ac2d('0xad'),'sourceid']),_0x1f697a[_0x10ac2d('0x1fe8')]['push']('recordingURL'),_0x49bb71[_0x10ac2d('0x242c')][_0x10ac2d('0x2320')]()[_0x10ac2d('0x1964')];})[_0x265cdc('0x173b')](function(_0x23eab9){const _0x7c98ce=_0x265cdc;_0x1f697a[_0x7c98ce('0x20de')]=_0x3c8d8a()['difference'](_0x3c8d8a()[_0x7c98ce('0x1d3e')](_0x23eab9),[_0x7c98ce('0x1964'),'$resolved',_0x7c98ce('0xda8'),_0x7c98ce('0xad'),_0x7c98ce('0x24b1')]),_0x1f697a[_0x7c98ce('0x20de')][_0x7c98ce('0x18bb')]('recordingURL');})[_0x265cdc('0x103c')](function(_0x2efd0c){const _0x1bc76c=_0x265cdc;_0x43611d[_0x1bc76c('0x15aa')]({'title':_0x2efd0c[_0x1bc76c('0x276f')]?_0x1bc76c('0x137')+_0x2efd0c[_0x1bc76c('0x276f')]+'\x20-\x20'+_0x2efd0c[_0x1bc76c('0x2696')]:_0x1bc76c('0xaf3'),'msg':_0x2efd0c[_0x1bc76c('0x1e07')]?JSON[_0x1bc76c('0x100b')](_0x2efd0c[_0x1bc76c('0x1e07')]):_0x2efd0c[_0x1bc76c('0x1b75')]()});}),_0x49bb71[_0x265cdc('0x2584')]['getFields']({'id':_0x5a4751['id'],'ticketType':_0x5429f5[_0x265cdc('0x182')]?_0x5429f5[_0x265cdc('0x182')]:undefined})[_0x265cdc('0x1964')]['then'](function(_0xc5f4d8){const _0x51d319=_0x265cdc;_0x1f697a[_0x51d319('0x22ad')]=!![],_0x1f697a[_0x51d319('0x2340')]=_0xc5f4d8[_0x51d319('0x6aa')]?_0xc5f4d8[_0x51d319('0x6aa')]:[],_0x1f697a['item'][_0x51d319('0x1ee7')]&&(_0x1f697a[_0x51d319('0x894')]=_0x3c8d8a()['find'](_0x1f697a['fields'],{'id':_0x1f697a[_0x51d319('0x54')]['idField']}));})[_0x265cdc('0x103c')](function(_0xe93e50){const _0x5ca617=_0x265cdc;_0x1f697a['accountConnected']=![],console[_0x5ca617('0x15aa')](_0xe93e50);});function _0x1ce3a5(){const _0xc67c48=_0x265cdc;_0x1f697a[_0xc67c48('0x1d4a')]=[],_0x1f697a[_0xc67c48('0x894')]&&(_0x1f697a[_0xc67c48('0x54')][_0xc67c48('0x1ee7')]=_0x1f697a['customField']['id'],_0x1f697a[_0xc67c48('0x54')]['nameField']=_0x1f697a[_0xc67c48('0x894')][_0xc67c48('0x10ad')],_0x1f697a['item'][_0xc67c48('0x894')]=_0x1f697a[_0xc67c48('0x894')][_0xc67c48('0xbb4')]),_0x49bb71[_0xc67c48('0x11f6')]['save'](_0x1f697a[_0xc67c48('0x54')])[_0xc67c48('0x1964')][_0xc67c48('0x173b')](function(_0x16f3db){const _0x1423ff=_0xc67c48;_0x1f697a['items'][_0x1423ff('0x1377')](_0x16f3db),_0x43611d[_0x1423ff('0xdfe')]({'title':_0x3c8d8a()[_0x1423ff('0x587')](_0x341563)+_0x1423ff('0x348'),'msg':_0x3c8d8a()[_0x1423ff('0x587')](_0x341563)+_0x1423ff('0x209a')}),_0x262dac();})['catch'](function(_0x503109){const _0x4e7ca7=_0xc67c48;console[_0x4e7ca7('0x15aa')](_0x503109),_0x1f697a[_0x4e7ca7('0x1d4a')]=_0x503109['data']['errors']||[{'message':_0x503109[_0x4e7ca7('0x1b75')](),'type':_0x4e7ca7('0x18e4')}];});}function _0x2b94e4(){const _0x198cce=_0x265cdc;_0x1f697a[_0x198cce('0x1d4a')]=[],_0x1f697a[_0x198cce('0x894')]&&(_0x1f697a['item']['idField']=_0x1f697a[_0x198cce('0x894')]['id'],_0x1f697a[_0x198cce('0x54')][_0x198cce('0x194d')]=_0x1f697a['customField'][_0x198cce('0x10ad')],_0x1f697a['item'][_0x198cce('0x894')]=_0x1f697a[_0x198cce('0x894')][_0x198cce('0xbb4')]),_0x49bb71['intSugarcrmField'][_0x198cce('0x1842')]({'id':_0x1f697a[_0x198cce('0x54')]['id']},_0x1f697a[_0x198cce('0x54')])['$promise'][_0x198cce('0x173b')](function(_0x2153d9){const _0x10c5b4=_0x198cce,_0x1ec3b0=_0x3c8d8a()[_0x10c5b4('0x18ab')](_0x1f697a[_0x10c5b4('0x1b1f')],{'id':_0x2153d9['id']});_0x1ec3b0&&_0x3c8d8a()[_0x10c5b4('0x9ef')](_0x1ec3b0,_0x2153d9),_0x43611d['success']({'title':_0x3c8d8a()[_0x10c5b4('0x587')](_0x341563)+_0x10c5b4('0x10e9'),'msg':_0x3c8d8a()[_0x10c5b4('0x587')](_0x341563)+_0x10c5b4('0x2788')}),_0x262dac();})[_0x198cce('0x103c')](function(_0x2ae688){const _0x5cff77=_0x198cce;console[_0x5cff77('0x15aa')](_0x2ae688),_0x1f697a[_0x5cff77('0x1d4a')]=_0x2ae688[_0x5cff77('0x1e07')][_0x5cff77('0x1d4a')]||[{'message':_0x2ae688[_0x5cff77('0x1b75')](),'type':_0x5cff77('0x1c43')}];});}function _0x2c98d4(_0x5d52b9){const _0x2f730f=_0x265cdc;_0x1f697a[_0x2f730f('0x1d4a')]=[];const _0x5a87db=_0x416479[_0x2f730f('0x1d02')]()[_0x2f730f('0x20d6')](_0x2f730f('0x8ef'))[_0x2f730f('0x732')](_0x2f730f('0x1aa5')+_0x341563+'\x20will\x20be\x20deleted.')[_0x2f730f('0x217')](_0x2f730f('0x133e')+_0x3c8d8a()[_0x2f730f('0x587')](_0x341563))['ok']('Delete')['cancel'](_0x2f730f('0x1d4e'))['targetEvent'](_0x5d52b9);_0x416479[_0x2f730f('0x1cb7')](_0x5a87db)[_0x2f730f('0x173b')](function(){const _0x3b7216=_0x2f730f;_0x49bb71['intSugarcrmField'][_0x3b7216('0x15e8')]({'id':_0x1f697a[_0x3b7216('0x54')]['id']})[_0x3b7216('0x1964')][_0x3b7216('0x173b')](function(){const _0x532697=_0x3b7216;_0x3c8d8a()[_0x532697('0x1a8b')](_0x1f697a[_0x532697('0x1b1f')],{'id':_0x1f697a[_0x532697('0x54')]['id']}),_0x43611d['success']({'title':_0x3c8d8a()[_0x532697('0x587')](_0x341563)+_0x532697('0xb5'),'msg':_0x3c8d8a()['capitalize'](_0x341563)+_0x532697('0x25d2')}),_0x262dac();})[_0x3b7216('0x103c')](function(_0x11657d){const _0x5bfd75=_0x3b7216;console[_0x5bfd75('0x15aa')](_0x11657d),_0x1f697a[_0x5bfd75('0x1d4a')]=_0x11657d[_0x5bfd75('0x1e07')]['errors']||[{'message':_0x11657d[_0x5bfd75('0x1b75')](),'type':_0x5bfd75('0x238e')}];});},function(){});}function _0x5f190a(){const _0x2c6d75=_0x265cdc;return _0x1f697a[_0x2c6d75('0x54')][_0x2c6d75('0x195d')]!==undefined?_0x1f697a[_0x2c6d75('0x54')]['variableName']:_0x2c6d75('0x1423');}function _0x262dac(){const _0x499731=_0x265cdc;_0x416479[_0x499731('0x1cf4')]();}}const _0x1dbd0c=_0x2545d9;_0x3af878[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$document',_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),'sugarcrmAccount',_0x566993('0x170e')];function _0x3af878(_0x5561d2,_0x3364f1,_0x4ad6f0,_0x34cf03,_0x10a37b,_0x334e01,_0x53dbbe,_0x3e2bc5,_0x1ed95d,_0x4e9206,_0xa9bcb,_0x54bff8){const _0x345215=_0x566993,_0x1c351a=this;_0x1c351a[_0x345215('0x155f')]=_0x4e9206[_0x345215('0x14d4')](),_0x1c351a[_0x345215('0x1a29')]=_0x334e01,_0x1c351a['setting']=_0x53dbbe,_0x1c351a[_0x345215('0x644')]=_0x1c351a[_0x345215('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c351a[_0x345215('0x614')]=_0x3364f1['protocol']()+_0x345215('0x122b')+_0x3364f1[_0x345215('0x4d1')](),_0x1c351a[_0x345215('0xfae')]=_0xa9bcb||_0x5561d2[_0x345215('0x197a')][_0x345215('0xfae')]||{},_0x1c351a['userProfileSection']=_0x54bff8&&_0x54bff8[_0x345215('0x1a2f')]==0x1?_0x54bff8[_0x345215('0x6aa')][0x0]:null,_0x1c351a[_0x345215('0x1dc1')]=_0x4e9206[_0x345215('0xde6')](_0x1c351a[_0x345215('0x170e')]?_0x1c351a[_0x345215('0x170e')]['crudPermissions']:null),_0x1c351a['hasModulePermissions']={},_0x1c351a[_0x345215('0xd5f')]=_0x5561d2[_0x345215('0x197a')][_0x345215('0x1e66')]||0x0,_0x1c351a[_0x345215('0x5a4')]=_0x1ed95d[_0x345215('0x2787')],_0x1c351a['gotoSugarcrmAccounts']=_0x57ca9d,_0x1c351a[_0x345215('0xcb2')]=_0x16307a;function _0x57ca9d(){const _0x2a722e=_0x345215;_0x5561d2['go'](_0x2a722e('0xd21'),{},{'reload':_0x2a722e('0xd21')});}function _0x16307a(){const _0x182ef2=_0x345215;_0x3e2bc5[_0x182ef2('0x2584')][_0x182ef2('0x1842')]({'id':_0x1c351a[_0x182ef2('0xfae')]['id']},_0x1c351a[_0x182ef2('0xfae')])['$promise']['then'](function(){const _0x1352eb=_0x182ef2;_0x1ed95d[_0x1352eb('0xdfe')]({'title':_0x1352eb('0x1ef6'),'msg':_0x1c351a['sugarcrmAccount'][_0x1352eb('0x10ad')]?_0x1c351a['sugarcrmAccount'][_0x1352eb('0x10ad')]+_0x1352eb('0x1fd6'):''});})[_0x182ef2('0x103c')](function(_0xf94be3){const _0x132d1a=_0x182ef2;_0x1ed95d[_0x132d1a('0x15aa')]({'title':_0xf94be3[_0x132d1a('0x276f')]?_0x132d1a('0x137')+_0xf94be3[_0x132d1a('0x276f')]+_0x132d1a('0x160c')+_0xf94be3['statusText']:_0x132d1a('0x10dd'),'msg':_0xf94be3[_0x132d1a('0x1e07')]?JSON[_0x132d1a('0x100b')](_0xf94be3['data']):_0xf94be3[_0x132d1a('0x1b75')]()});});}}const _0x36629d=_0x3af878,_0x3849ae=_0x21a6a1['p']+_0x566993('0x97c');_0x53ac84['$inject']=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x2111'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),'Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0x53ac84(_0x19fb62,_0x4a9dd4,_0x2618d1,_0x54d0ce,_0x33dc96,_0x19559d,_0x434974,_0x53f381,_0x293477,_0x1b97f8,_0x1cc408,_0x280bb4,_0x50be86,_0x32709b,_0x1e5e78,_0xef660,_0x28d3e8){const _0x1ecb12=_0x566993,_0x518fa5=this;_0x518fa5[_0x1ecb12('0x1a29')]=_0xef660,_0x518fa5[_0x1ecb12('0x251')]=_0x28d3e8,_0x518fa5[_0x1ecb12('0x155f')]=_0x1e5e78['getCurrentUser'](),_0x518fa5[_0x1ecb12('0x2111')]=_0x293477||{'count':0x0,'rows':[]},_0x518fa5['userProfile']=_0x1b97f8,_0x518fa5['userProfileSection']=_0x1cc408&&_0x1cc408[_0x1ecb12('0x1a2f')]==0x1?_0x1cc408[_0x1ecb12('0x6aa')][0x0]:null,_0x518fa5[_0x1ecb12('0x1dc1')]=_0x1e5e78[_0x1ecb12('0xde6')](_0x518fa5[_0x1ecb12('0x170e')]?_0x518fa5[_0x1ecb12('0x170e')][_0x1ecb12('0x1dc1')]:null),_0x518fa5[_0x1ecb12('0xdf9')]='sugarcrmAccounts',_0x518fa5[_0x1ecb12('0x14d6')]='',_0x518fa5[_0x1ecb12('0x2303')]=null,_0x518fa5[_0x1ecb12('0x5e')]=[],_0x518fa5[_0x1ecb12('0xc49')]={'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'page':0x1},_0x518fa5['editstate']=_0x3ddcc2,_0x518fa5[_0x1ecb12('0x1f58')]=_0x4d4338,_0x518fa5[_0x1ecb12('0x1a20')]=_0x415dfb,_0x518fa5[_0x1ecb12('0xdfe')]=_0xb458a1,_0x518fa5['getSugarcrmAccounts']=_0xfd1d49,_0x518fa5[_0x1ecb12('0x202')]=_0x3f10ff,_0x518fa5[_0x1ecb12('0x1b0c')]=_0x5db352,_0x518fa5[_0x1ecb12('0x4d4')]=_0x563214,_0x518fa5[_0x1ecb12('0xa5c')]=_0x228ff7,_0x518fa5[_0x1ecb12('0x26f7')]=_0x5ad943,_0x518fa5[_0x1ecb12('0x234a')]=_0x3ccee0;function _0x3ddcc2(_0x402fcb){const _0xb60c2a=_0x1ecb12;_0x2618d1['go']('app.integrations.sugarcrmAccounts.edit',{'id':_0x402fcb['id'],'sugarcrmAccount':_0x402fcb,'crudPermissions':_0x518fa5[_0xb60c2a('0x1dc1')]});}function _0x4d4338(_0x3bd4e9){const _0x32c7c1=_0x1ecb12;return _0x280bb4[_0x32c7c1('0x2584')][_0x32c7c1('0x223b')]({'id':_0x3bd4e9['id'],'test':!![]})[_0x32c7c1('0x1964')][_0x32c7c1('0x173b')](function(){const _0x5432b2=_0x32c7c1;_0x32709b[_0x5432b2('0xdfe')]({'title':_0x5432b2('0x2838'),'msg':_0x5432b2('0x13fe')});})[_0x32c7c1('0x103c')](function(_0x344b3d){const _0x5f4124=_0x32c7c1;_0x32709b['error']({'title':'SugarcrmAccount\x20properly\x20tested','msg':_0x344b3d[_0x5f4124('0x1e07')]?_0x344b3d[_0x5f4124('0x1e07')]['message']?_0x344b3d[_0x5f4124('0x1e07')][_0x5f4124('0x67f')]:JSON[_0x5f4124('0x100b')](_0x344b3d[_0x5f4124('0x1e07')]):_0x344b3d[_0x5f4124('0x1b75')]()});});}function _0x415dfb(_0x263f60,_0x4513e1){const _0x5bca12=_0x1ecb12,_0x238e24=_0x33dc96[_0x5bca12('0x1d02')]()[_0x5bca12('0x20d6')](_0x5bca12('0x5bb')+_0x3c8d8a()[_0x5bca12('0x10e')](_0x5bca12('0xfae'))+'?')[_0x5bca12('0xf8b')](_0x5bca12('0x15b9')+(_0x263f60[_0x5bca12('0x10ad')]||'sugarcrmAccount')+_0x5bca12('0x24be')+_0x5bca12('0xd23'))[_0x5bca12('0x217')](_0x5bca12('0x1ea3'))[_0x5bca12('0x21de')](_0x4513e1)['ok']('OK')[_0x5bca12('0x1e1f')](_0x5bca12('0x468'));_0x33dc96[_0x5bca12('0x1cb7')](_0x238e24)[_0x5bca12('0x173b')](function(){_0x5db352(_0x263f60);},function(){const _0x3bf670=_0x5bca12;console[_0x3bf670('0xe37')](_0x3bf670('0x468'));});}let _0x2c3ad8=!![],_0x6f8eae=0x1;_0x19fb62[_0x1ecb12('0x1bdb')](_0x1ecb12('0x157b'),function(_0x4baf6f,_0x314e1e){const _0x4d4464=_0x1ecb12;_0x2c3ad8?_0x434974(function(){_0x2c3ad8=![];}):(!_0x314e1e&&(_0x6f8eae=_0x518fa5[_0x4d4464('0xc49')]['page']),_0x4baf6f!==_0x314e1e&&(_0x518fa5[_0x4d4464('0xc49')]['page']=0x1),!_0x4baf6f&&(_0x518fa5['query']['page']=_0x6f8eae),_0x518fa5['getSugarcrmAccounts']());});function _0xb458a1(_0x2a8955){const _0x1138b8=_0x1ecb12;_0x518fa5[_0x1138b8('0x2111')]=_0x2a8955||{'count':0x0,'rows':[]};}function _0xfd1d49(){const _0x49a86f=_0x1ecb12;_0x518fa5[_0x49a86f('0xc49')][_0x49a86f('0x17f0')]=(_0x518fa5[_0x49a86f('0xc49')][_0x49a86f('0x182e')]-0x1)*_0x518fa5[_0x49a86f('0xc49')][_0x49a86f('0x3e')],_0x1e5e78[_0x49a86f('0x1b4e')]('admin')?_0x518fa5['promise']=_0x280bb4['intSugarcrmAccount'][_0x49a86f('0x1d97')](_0x518fa5['query'],_0xb458a1)['$promise']:(_0x518fa5[_0x49a86f('0xc49')]['id']=_0x518fa5['userProfile']['id'],_0x518fa5[_0x49a86f('0xc49')][_0x49a86f('0x17c9')]=_0x49a86f('0x1e9e'),_0x518fa5[_0x49a86f('0x2219')]=_0x280bb4[_0x49a86f('0x257b')][_0x49a86f('0x135b')](_0x518fa5['query'],_0xb458a1)[_0x49a86f('0x1964')]);}function _0x3f10ff(_0x225947,_0xd5f638){const _0x312709=_0x1ecb12;_0x33dc96[_0x312709('0x1cb7')]({'controller':_0x312709('0x13c6'),'controllerAs':'vm','templateUrl':_0x3849ae,'parent':angular['element'](_0x19559d[_0x312709('0x1a5')]),'targetEvent':_0x225947,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0xd5f638,'sugarcrmAccounts':_0x518fa5[_0x312709('0x2111')][_0x312709('0x6aa')],'license':_0x518fa5[_0x312709('0x1a29')],'setting':_0x518fa5[_0x312709('0x251')],'crudPermissions':_0x518fa5['crudPermissions']}});}function _0x5db352(_0x476751){const _0x5875c8=_0x1ecb12;_0x280bb4[_0x5875c8('0x2584')][_0x5875c8('0x15e8')]({'id':_0x476751['id']})[_0x5875c8('0x1964')]['then'](function(){const _0x5533b0=_0x5875c8;_0x3c8d8a()[_0x5533b0('0x1a8b')](_0x518fa5[_0x5533b0('0x2111')]['rows'],{'id':_0x476751['id']}),_0x518fa5[_0x5533b0('0x2111')]['count']-=0x1,!_0x518fa5[_0x5533b0('0x2111')]['rows'][_0x5533b0('0x543')]&&_0x518fa5['getSugarcrmAccounts'](),_0x32709b[_0x5533b0('0xdfe')]({'title':_0x3c8d8a()[_0x5533b0('0x10e')](_0x5533b0('0x2607'))+'\x20deleted!','msg':_0x476751[_0x5533b0('0x10ad')]?_0x476751[_0x5533b0('0x10ad')]+_0x5533b0('0x25d2'):''});})[_0x5875c8('0x103c')](function(_0x3d39f4){const _0x14271e=_0x5875c8;if(_0x3d39f4['data']&&_0x3d39f4[_0x14271e('0x1e07')][_0x14271e('0x1d4a')]&&_0x3d39f4[_0x14271e('0x1e07')][_0x14271e('0x1d4a')][_0x14271e('0x543')]){_0x518fa5['errors']=_0x3d39f4['data'][_0x14271e('0x1d4a')]||[{'message':_0x3d39f4[_0x14271e('0x1b75')](),'type':_0x14271e('0x98a')}];for(let _0x505fb4=0x0;_0x505fb4<_0x3d39f4[_0x14271e('0x1e07')]['errors'][_0x14271e('0x543')];_0x505fb4++){_0x32709b[_0x14271e('0x15aa')]({'title':_0x3d39f4['data'][_0x14271e('0x1d4a')][_0x505fb4][_0x14271e('0x1810')],'msg':_0x3d39f4[_0x14271e('0x1e07')][_0x14271e('0x1d4a')][_0x505fb4]['message']});}}else _0x32709b['error']({'title':_0x3d39f4[_0x14271e('0x276f')]?_0x14271e('0x137')+_0x3d39f4[_0x14271e('0x276f')]+_0x14271e('0x160c')+_0x3d39f4[_0x14271e('0x2696')]:_0x14271e('0x98a'),'msg':_0x3d39f4[_0x14271e('0x1e07')]?JSON[_0x14271e('0x100b')](_0x3d39f4[_0x14271e('0x1e07')]['message']):_0x3d39f4[_0x14271e('0x67f')]||_0x3d39f4[_0x14271e('0x1b75')]()});});}function _0x563214(){const _0x558270=_0x1ecb12,_0x21dcac=angular[_0x558270('0x2e3')](_0x518fa5[_0x558270('0x5e')]);return _0x518fa5['selectedSugarcrmAccounts']=[],_0x21dcac;}function _0x228ff7(_0x306706){const _0x320526=_0x1ecb12,_0x29461d=_0x33dc96[_0x320526('0x1d02')]()[_0x320526('0x20d6')](_0x320526('0x16cd'))[_0x320526('0xf8b')](_0x320526('0x15b9')+_0x518fa5[_0x320526('0x5e')]['length']+_0x320526('0xcb4')+'\x20will\x20be\x20deleted.')[_0x320526('0x217')](_0x320526('0x1712'))[_0x320526('0x21de')](_0x306706)['ok']('OK')[_0x320526('0x1e1f')](_0x320526('0x468'));_0x33dc96[_0x320526('0x1cb7')](_0x29461d)[_0x320526('0x173b')](function(){const _0x47f280=_0x320526;_0x518fa5[_0x47f280('0x5e')][_0x47f280('0xa6a')](function(_0x104391){_0x5db352(_0x104391);}),_0x518fa5[_0x47f280('0x5e')]=[];});}function _0x5ad943(){const _0x527c6b=_0x1ecb12;_0x518fa5[_0x527c6b('0x5e')]=[];}function _0x3ccee0(){const _0x4393a5=_0x1ecb12;_0x518fa5[_0x4393a5('0x5e')]=_0x518fa5[_0x4393a5('0x2111')]['rows'];}}const _0x5366a0=_0x53ac84;_0x22ad5f[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0xe51'),'vtigerAccount','api',_0x566993('0x1600'),_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0x22ad5f(_0x327e1d,_0xa3505f,_0x438f0e,_0x29e33d,_0x4e4fa9,_0x4f0d74,_0x49f8f8,_0x38fb26,_0x22f15a,_0x2969a5,_0x1e7b76,_0x5030b1,_0x5ca7eb,_0x5e5174){const _0x492f2b=_0x566993,_0x2b7954=this;_0x2b7954['currentUser']=_0x1e7b76[_0x492f2b('0x14d4')](),_0x2b7954[_0x492f2b('0x1d4a')]=[],_0x2b7954['setting']=_0x5ca7eb,_0x2b7954[_0x492f2b('0x1a29')]=_0x5030b1,_0x2b7954[_0x492f2b('0x1dc1')]=_0x5e5174,_0x2b7954['hasModulePermissions']={},_0x2b7954[_0x492f2b('0x644')]=_0x2b7954['setting']&&_0x2b7954['setting'][_0x492f2b('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b7954[_0x492f2b('0x20d6')]='INTEGRATIONS.EDIT_VTIGERACCOUNT',_0x2b7954[_0x492f2b('0xca')]=angular[_0x492f2b('0x2e3')](_0x22f15a),_0x2b7954[_0x492f2b('0xe51')]=_0x38fb26,_0x2b7954[_0x492f2b('0x18e6')]=![];!_0x2b7954['vtigerAccount']&&(_0x2b7954[_0x492f2b('0xca')]={'serverUrl':_0x438f0e[_0x492f2b('0x375')]()+'://'+_0x438f0e[_0x492f2b('0x4d1')]()+(_0x438f0e['port']()?':'+_0x438f0e[_0x492f2b('0xe0d')]():'')},_0x2b7954[_0x492f2b('0x20d6')]=_0x492f2b('0x2088'),_0x2b7954['newVtigerAccount']=!![]);_0x2b7954[_0x492f2b('0x314')]=_0x4e8ea5,_0x2b7954[_0x492f2b('0x1a16')]=_0x13a8a3,_0x2b7954[_0x492f2b('0x241a')]=_0xa9246,_0x2b7954[_0x492f2b('0x11ae')]=_0x25b3f6,_0x2b7954[_0x492f2b('0x18e2')]=_0x2f9859;function _0x4e8ea5(){const _0x1136f7=_0x492f2b;_0x2b7954['errors']=[],_0x2969a5[_0x1136f7('0x44c')][_0x1136f7('0x1195')](_0x2b7954[_0x1136f7('0xca')])[_0x1136f7('0x1964')][_0x1136f7('0x173b')](function(_0x230df0){const _0x43ffce=_0x1136f7;_0x2b7954[_0x43ffce('0xe51')][_0x43ffce('0x1377')](_0x230df0[_0x43ffce('0xf1f')]()),_0x49f8f8['success']({'title':_0x43ffce('0x18e'),'msg':_0x2b7954['vtigerAccount']['name']?_0x2b7954[_0x43ffce('0xca')]['name']+'\x20has\x20been\x20created!':''}),_0x2f9859(_0x230df0);})[_0x1136f7('0x103c')](function(_0x541912){const _0x46d4e0=_0x1136f7;if(_0x541912['data']&&_0x541912[_0x46d4e0('0x1e07')]['errors']&&_0x541912[_0x46d4e0('0x1e07')][_0x46d4e0('0x1d4a')][_0x46d4e0('0x543')]){_0x2b7954[_0x46d4e0('0x1d4a')]=_0x541912['data'][_0x46d4e0('0x1d4a')]||[{'message':_0x541912[_0x46d4e0('0x1b75')](),'type':_0x46d4e0('0x16e5')}];for(let _0x38ff1d=0x0;_0x38ff1d<_0x541912[_0x46d4e0('0x1e07')][_0x46d4e0('0x1d4a')][_0x46d4e0('0x543')];_0x38ff1d+=0x1){_0x49f8f8[_0x46d4e0('0x15aa')]({'title':_0x541912[_0x46d4e0('0x1e07')]['errors'][_0x38ff1d][_0x46d4e0('0x1810')],'msg':_0x541912[_0x46d4e0('0x1e07')][_0x46d4e0('0x1d4a')][_0x38ff1d][_0x46d4e0('0x67f')]});}}else _0x49f8f8[_0x46d4e0('0x15aa')]({'title':_0x541912[_0x46d4e0('0x276f')]?'API:'+_0x541912[_0x46d4e0('0x276f')]+_0x46d4e0('0x160c')+_0x541912['statusText']:_0x46d4e0('0x16e5'),'msg':_0x541912[_0x46d4e0('0x1e07')]?JSON[_0x46d4e0('0x100b')](_0x541912[_0x46d4e0('0x1e07')][_0x46d4e0('0x67f')]):_0x541912[_0x46d4e0('0x1b75')]()});});}function _0x13a8a3(){const _0x376e55=_0x492f2b;_0x2b7954['errors']=[],_0x2969a5['intVtigerAccount'][_0x376e55('0x1842')]({'id':_0x2b7954[_0x376e55('0xca')]['id']},_0x2b7954['vtigerAccount'])[_0x376e55('0x1964')][_0x376e55('0x173b')](function(_0x5c322f){const _0x34af4c=_0x376e55,_0x124bf0=_0x3c8d8a()[_0x34af4c('0x18ab')](_0x2b7954[_0x34af4c('0xe51')],{'id':_0x5c322f['id']});_0x124bf0&&_0x3c8d8a()[_0x34af4c('0x9ef')](_0x124bf0,_0x3c8d8a()[_0x34af4c('0x2114')](_0x5c322f[_0x34af4c('0xf1f')](),_0x3c8d8a()[_0x34af4c('0x1d3e')](_0x124bf0))),_0x49f8f8[_0x34af4c('0xdfe')]({'title':_0x34af4c('0xff4'),'msg':_0x2b7954[_0x34af4c('0xca')]['name']?_0x2b7954[_0x34af4c('0xca')][_0x34af4c('0x10ad')]+_0x34af4c('0x2788'):''}),_0x2f9859(_0x5c322f);})['catch'](function(_0x134a18){const _0x14b01b=_0x376e55;if(_0x134a18[_0x14b01b('0x1e07')]&&_0x134a18[_0x14b01b('0x1e07')]['errors']&&_0x134a18[_0x14b01b('0x1e07')][_0x14b01b('0x1d4a')][_0x14b01b('0x543')]){_0x2b7954[_0x14b01b('0x1d4a')]=_0x134a18[_0x14b01b('0x1e07')]['errors']||[{'message':_0x134a18[_0x14b01b('0x1b75')](),'type':'api.intVtigerAccount.update'}];for(let _0x1f7e04=0x0;_0x1f7e04<_0x134a18[_0x14b01b('0x1e07')][_0x14b01b('0x1d4a')][_0x14b01b('0x543')];_0x1f7e04++){_0x49f8f8['error']({'title':_0x134a18[_0x14b01b('0x1e07')]['errors'][_0x1f7e04]['type'],'msg':_0x134a18[_0x14b01b('0x1e07')][_0x14b01b('0x1d4a')][_0x1f7e04]['message']});}}else _0x49f8f8['error']({'title':_0x134a18['status']?_0x14b01b('0x137')+_0x134a18[_0x14b01b('0x276f')]+_0x14b01b('0x160c')+_0x134a18[_0x14b01b('0x2696')]:_0x14b01b('0x1715'),'msg':_0x134a18[_0x14b01b('0x1e07')]?JSON['stringify'](_0x134a18[_0x14b01b('0x1e07')][_0x14b01b('0x67f')]):_0x134a18[_0x14b01b('0x1b75')]()});});}function _0xa9246(_0x1b7118){const _0xf894cc=_0x492f2b;_0x2b7954['errors']=[];const _0x282fa5=_0x29e33d[_0xf894cc('0x1d02')]()['title'](_0xf894cc('0x8ef'))['content'](_0xf894cc('0x2563'))[_0xf894cc('0x217')](_0xf894cc('0x1a2a'))['ok'](_0xf894cc('0x2373'))[_0xf894cc('0x1e1f')](_0xf894cc('0x1d4e'))[_0xf894cc('0x21de')](_0x1b7118);_0x29e33d[_0xf894cc('0x1cb7')](_0x282fa5)['then'](function(){const _0x19fd25=_0xf894cc;_0x2969a5[_0x19fd25('0x44c')][_0x19fd25('0x15e8')]({'id':_0x2b7954['vtigerAccount']['id']})['$promise'][_0x19fd25('0x173b')](function(){const _0x2858c2=_0x19fd25;_0x3c8d8a()['remove'](_0x2b7954[_0x2858c2('0xe51')],{'id':_0x2b7954[_0x2858c2('0xca')]['id']}),_0x49f8f8[_0x2858c2('0xdfe')]({'title':_0x2858c2('0x27ea'),'msg':(_0x2b7954[_0x2858c2('0xca')][_0x2858c2('0x10ad')]||'vtigerAccount')+'\x20has\x20been\x20deleted!'}),_0x2f9859(_0x2b7954[_0x2858c2('0xca')]);})[_0x19fd25('0x103c')](function(_0x6be6f2){const _0x3f59d5=_0x19fd25;if(_0x6be6f2[_0x3f59d5('0x1e07')]&&_0x6be6f2['data'][_0x3f59d5('0x1d4a')]&&_0x6be6f2[_0x3f59d5('0x1e07')][_0x3f59d5('0x1d4a')][_0x3f59d5('0x543')]){_0x2b7954[_0x3f59d5('0x1d4a')]=_0x6be6f2['data'][_0x3f59d5('0x1d4a')]||[{'message':_0x6be6f2[_0x3f59d5('0x1b75')](),'type':_0x3f59d5('0x1a93')}];for(let _0x5d912b=0x0;_0x5d912b<_0x6be6f2[_0x3f59d5('0x1e07')][_0x3f59d5('0x1d4a')][_0x3f59d5('0x543')];_0x5d912b++){_0x49f8f8[_0x3f59d5('0x15aa')]({'title':_0x6be6f2[_0x3f59d5('0x1e07')][_0x3f59d5('0x1d4a')][_0x5d912b][_0x3f59d5('0x1810')],'msg':_0x6be6f2['data']['errors'][_0x5d912b]['message']});}}else _0x49f8f8['error']({'title':_0x6be6f2[_0x3f59d5('0x276f')]?'API:'+_0x6be6f2['status']+_0x3f59d5('0x160c')+_0x6be6f2[_0x3f59d5('0x2696')]:_0x3f59d5('0x1a93'),'msg':_0x6be6f2[_0x3f59d5('0x1e07')]?JSON[_0x3f59d5('0x100b')](_0x6be6f2[_0x3f59d5('0x1e07')][_0x3f59d5('0x67f')]):_0x6be6f2[_0x3f59d5('0x67f')]||_0x6be6f2['toString']()});});},function(){});}function _0x25b3f6(_0x558c55){return _0x558c55===null?undefined:new Date(_0x558c55);}function _0x2f9859(_0x193976){const _0x5d980d=_0x492f2b;_0x29e33d[_0x5d980d('0x1cf4')](_0x193976);}}const _0x1cc6e7=_0x22ad5f,_0x4c6b50=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog.html',_0x59db93=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog.html';_0x2027fe[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0x1b82'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600')];function _0x2027fe(_0xe2e9cd,_0x19e7ce,_0x85e94b,_0x343f49,_0x34d9ee){const _0x4eb069=_0x566993,_0x10e7b1=this;_0x10e7b1[_0x4eb069('0x155f')]=_0x34d9ee[_0x4eb069('0x14d4')](),_0x10e7b1['vtigerAccount']={},_0x10e7b1['vtigerConfiguration']={},_0x10e7b1['configurations']=[],_0x10e7b1['selectedVtigerConfiguration']=-0x1,_0x10e7b1[_0x4eb069('0x1dc1')],_0x10e7b1[_0x4eb069('0xb9c')]=_0x4c0673,_0x10e7b1[_0x4eb069('0x12b')]=_0x499f98,_0x10e7b1[_0x4eb069('0x1978')]=_0x3e3f84,_0x10e7b1[_0x4eb069('0x6bf')]=_0x1fea51;function _0x4c0673(_0x5d5162,_0x5745e4){const _0x5b9411=_0x4eb069;_0x10e7b1[_0x5b9411('0xca')]=_0x5d5162,_0x10e7b1[_0x5b9411('0x1dc1')]=typeof _0x5745e4!==_0x5b9411('0x6e5')?_0x5745e4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x85e94b['intVtigerAccount'][_0x5b9411('0x1f25')]({'id':_0x10e7b1['vtigerAccount']['id'],'sort':_0x5b9411('0x1769')})['$promise'][_0x5b9411('0x173b')](function(_0x1ea6cd){const _0x2b0f9f=_0x5b9411;return _0x10e7b1[_0x2b0f9f('0x294')]=_0x1ea6cd[_0x2b0f9f('0x6aa')]?_0x1ea6cd['rows']:[],_0x10e7b1[_0x2b0f9f('0x294')]['length']&&_0x10e7b1[_0x2b0f9f('0x12b')](0x0),_0x85e94b['variable'][_0x2b0f9f('0x1d97')]({'nolimit':!![],'sort':_0x2b0f9f('0x10ad')})[_0x2b0f9f('0x1964')];})[_0x5b9411('0x173b')](function(_0x4790a0){const _0x4b332f=_0x5b9411;_0x10e7b1['variables']=_0x4790a0['rows']?_0x4790a0[_0x4b332f('0x6aa')]:[],_0x10e7b1[_0x4b332f('0x17f8')]=_0x3c8d8a()[_0x4b332f('0x128')](_0x10e7b1['variables'],'id');})[_0x5b9411('0x103c')](function(_0xc10255){const _0x435f65=_0x5b9411;_0x343f49[_0x435f65('0x15aa')]({'title':_0xc10255[_0x435f65('0x276f')]?'API:'+_0xc10255[_0x435f65('0x276f')]+'\x20-\x20'+_0xc10255[_0x435f65('0x2696')]:_0x435f65('0x125a'),'msg':_0xc10255[_0x435f65('0x1e07')]?JSON[_0x435f65('0x100b')](_0xc10255[_0x435f65('0x1e07')]):_0xc10255[_0x435f65('0x1b75')]()});});}function _0x499f98(_0x63c0a3){const _0x5ce72b=_0x4eb069;_0x10e7b1[_0x5ce72b('0x20af')]=_0x10e7b1[_0x5ce72b('0x294')][_0x63c0a3],_0x10e7b1[_0x5ce72b('0x147f')]=_0x63c0a3,_0x85e94b['intVtigerConfiguration'][_0x5ce72b('0x717')]({'id':_0x10e7b1[_0x5ce72b('0x20af')]['id']})[_0x5ce72b('0x1964')][_0x5ce72b('0x173b')](function(_0x211278){const _0x50c928=_0x5ce72b;return _0x10e7b1['subjects']=_0x211278[_0x50c928('0x6aa')]?_0x211278['rows']:[],_0x85e94b[_0x50c928('0xf24')][_0x50c928('0xb28')]({'id':_0x10e7b1[_0x50c928('0x20af')]['id']})['$promise'];})[_0x5ce72b('0x173b')](function(_0x1ef2a0){const _0x8da858=_0x5ce72b;return _0x10e7b1[_0x8da858('0xb60')]=_0x1ef2a0[_0x8da858('0x6aa')]?_0x1ef2a0['rows']:[],_0x85e94b['intVtigerConfiguration'][_0x8da858('0x223b')]({'id':_0x10e7b1[_0x8da858('0x20af')]['id']})[_0x8da858('0x1964')];})['then'](function(_0x9fd990){const _0x42716a=_0x5ce72b;_0x10e7b1[_0x42716a('0x2340')]=_0x9fd990['rows']?_0x9fd990['rows']:[];})[_0x5ce72b('0x103c')](function(_0x1aa7b3){const _0x5afbb6=_0x5ce72b;_0x343f49[_0x5afbb6('0x15aa')]({'title':_0x1aa7b3[_0x5afbb6('0x276f')]?'API:'+_0x1aa7b3[_0x5afbb6('0x276f')]+_0x5afbb6('0x160c')+_0x1aa7b3['statusText']:'SYSTEM:GETConfigurations','msg':_0x1aa7b3[_0x5afbb6('0x1e07')]?JSON[_0x5afbb6('0x100b')](_0x1aa7b3[_0x5afbb6('0x1e07')]):_0x1aa7b3[_0x5afbb6('0x1b75')]()});});}function _0x3e3f84(_0x22627f,_0x533f15){const _0x46190f=_0x4eb069;_0xe2e9cd['show']({'controller':'CreateOrEditVtigerConfigurationDialogController','controllerAs':'vm','templateUrl':_0x4c6b50,'parent':angular['element'](_0x19e7ce[_0x46190f('0x1a5')]),'targetEvent':_0x22627f,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x533f15,'configurations':_0x10e7b1[_0x46190f('0x294')],'license':null,'setting':null,'crudPermissions':_0x10e7b1[_0x46190f('0x1dc1')]}})[_0x46190f('0xf25')](function(){const _0x57aac6=_0x46190f;_0x10e7b1[_0x57aac6('0x12b')](0x0);});}function _0x1fea51(_0x3d704e,_0x55fe4e){const _0x3d4fa1=_0x4eb069,_0x5599ec=_0xe2e9cd[_0x3d4fa1('0x1d02')]()[_0x3d4fa1('0x20d6')](_0x3d4fa1('0xeb2'))['htmlContent'](''+(_0x55fe4e[_0x3d4fa1('0x10ad')]||_0x3d4fa1('0x20af'))+_0x3d4fa1('0x24be')+_0x3d4fa1('0xd23'))[_0x3d4fa1('0x217')]('delete\x20vtigerConfiguration')[_0x3d4fa1('0x21de')](_0x3d704e)['ok']('OK')[_0x3d4fa1('0x1e1f')](_0x3d4fa1('0x468'));_0xe2e9cd[_0x3d4fa1('0x1cb7')](_0x5599ec)[_0x3d4fa1('0x173b')](function(){const _0x3f799b=_0x3d4fa1;_0x85e94b['intVtigerConfiguration'][_0x3f799b('0x15e8')]({'id':_0x55fe4e['id']})[_0x3f799b('0x1964')][_0x3f799b('0x173b')](function(){const _0x1d8a39=_0x3f799b;_0x3c8d8a()[_0x1d8a39('0x1a8b')](_0x10e7b1['configurations'],{'id':_0x55fe4e['id']}),_0x343f49[_0x1d8a39('0xdfe')]({'title':_0x1d8a39('0x15f8'),'msg':_0x55fe4e[_0x1d8a39('0x10ad')]?_0x55fe4e['name']+'\x20has\x20been\x20deleted!':''});})[_0x3f799b('0x103c')](function(_0x47829a){const _0x573a99=_0x3f799b;_0x343f49[_0x573a99('0x15aa')]({'title':_0x47829a[_0x573a99('0x276f')]?_0x573a99('0x137')+_0x47829a[_0x573a99('0x276f')]+_0x573a99('0x160c')+_0x47829a[_0x573a99('0x2696')]:_0x573a99('0x1d30'),'msg':_0x47829a[_0x573a99('0x1e07')]?JSON['stringify'](_0x47829a['data']):_0x47829a[_0x573a99('0x1b75')]()});})[_0x3f799b('0xf25')](function(){const _0x34f13f=_0x3f799b;_0x10e7b1[_0x34f13f('0x12b')](0x0);});},function(){const _0x535f2b=_0x3d4fa1;console[_0x535f2b('0xe37')]('CANCEL');});}_0x10e7b1[_0x4eb069('0x276e')]=[],_0x10e7b1[_0x4eb069('0x1317')]=_0x4d62d1,_0x10e7b1[_0x4eb069('0x156b')]=_0x45c39b,_0x10e7b1[_0x4eb069('0x178c')]=_0x6a0043;function _0x4d62d1(_0x16fb6a,_0x3207e9){const _0x57a389=_0x4eb069;_0xe2e9cd[_0x57a389('0x1cb7')]({'controller':_0x57a389('0x117e'),'controllerAs':'vm','templateUrl':_0x59db93,'parent':angular['element'](_0x19e7ce[_0x57a389('0x1a5')]),'targetEvent':_0x16fb6a,'clickOutsideToClose':!![],'locals':{'type':_0x57a389('0x11bc'),'item':_0x3207e9,'items':_0x10e7b1[_0x57a389('0x1b35')],'configuration':_0x10e7b1[_0x57a389('0x20af')],'account':_0x10e7b1[_0x57a389('0xca')],'license':null,'setting':null,'crudPermissions':_0x10e7b1['crudPermissions']}});}function _0x50811d(_0x54ca21){const _0x54c08e=_0x4eb069;_0x85e94b[_0x54c08e('0x2717')]['delete']({'id':_0x54ca21['id']})['$promise']['then'](function(){const _0x530b88=_0x54c08e;_0x3c8d8a()[_0x530b88('0x1a8b')](_0x10e7b1['subjects'],{'id':_0x54ca21['id']}),_0x343f49['success']({'title':_0x530b88('0xa5e'),'msg':_0x530b88('0x213e')});})[_0x54c08e('0x103c')](function(_0x4a22ac){const _0x42931c=_0x54c08e;_0x343f49[_0x42931c('0x15aa')]({'title':_0x4a22ac[_0x42931c('0x276f')]?_0x42931c('0x137')+_0x4a22ac[_0x42931c('0x276f')]+_0x42931c('0x160c')+_0x4a22ac[_0x42931c('0x2696')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x4a22ac[_0x42931c('0x1e07')]?JSON[_0x42931c('0x100b')](_0x4a22ac[_0x42931c('0x1e07')]):_0x4a22ac[_0x42931c('0x1b75')]()});});}function _0x45c39b(_0x5d95ea,_0x41fe16){const _0x60d630=_0x4eb069,_0x104786=_0xe2e9cd[_0x60d630('0x1d02')]()[_0x60d630('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x60d630('0xf8b')](_0x60d630('0x1274')+_0x60d630('0xd23'))[_0x60d630('0x217')](_0x60d630('0x18b8'))[_0x60d630('0x21de')](_0x5d95ea)['ok']('OK')[_0x60d630('0x1e1f')]('CANCEL');_0xe2e9cd[_0x60d630('0x1cb7')](_0x104786)[_0x60d630('0x173b')](function(){_0x50811d(_0x41fe16);},function(){const _0x5f5933=_0x60d630;console[_0x5f5933('0xe37')](_0x5f5933('0x468'));});}function _0x6a0043(_0x45a76a){const _0x4fc256=_0x4eb069,_0xca6459=_0xe2e9cd[_0x4fc256('0x1d02')]()[_0x4fc256('0x20d6')](_0x4fc256('0x837'))[_0x4fc256('0xf8b')](_0x4fc256('0x15b9')+_0x10e7b1['selectedSubjects'][_0x4fc256('0x543')]+'\x20selected'+_0x4fc256('0xd23'))[_0x4fc256('0x217')]('delete\x20subjects')[_0x4fc256('0x21de')](_0x45a76a)['ok']('OK')[_0x4fc256('0x1e1f')](_0x4fc256('0x468'));_0xe2e9cd[_0x4fc256('0x1cb7')](_0xca6459)['then'](function(){const _0x5a60ce=_0x4fc256;_0x10e7b1[_0x5a60ce('0x276e')][_0x5a60ce('0xa6a')](function(_0x12f000){_0x50811d(_0x12f000);}),_0x10e7b1[_0x5a60ce('0x276e')]=[];});}_0x10e7b1[_0x4eb069('0x10e1')]=[],_0x10e7b1[_0x4eb069('0x1720')]=_0x2859d5,_0x10e7b1[_0x4eb069('0x7e4')]=_0x52846a,_0x10e7b1['deleteSelectedDescriptions']=_0x4bba7a;function _0x2859d5(_0x11c7c1,_0x41c53d){const _0x17c3aa=_0x4eb069;_0xe2e9cd['show']({'controller':_0x17c3aa('0x117e'),'controllerAs':'vm','templateUrl':_0x59db93,'parent':angular[_0x17c3aa('0xb6d')](_0x19e7ce[_0x17c3aa('0x1a5')]),'targetEvent':_0x11c7c1,'clickOutsideToClose':!![],'locals':{'type':_0x17c3aa('0x1c55'),'item':_0x41c53d,'items':_0x10e7b1[_0x17c3aa('0xb60')],'configuration':_0x10e7b1['vtigerConfiguration'],'account':_0x10e7b1['vtigerAccount'],'license':null,'setting':null,'crudPermissions':_0x10e7b1[_0x17c3aa('0x1dc1')]}});}function _0x232db3(_0x5e1d30){const _0x52a7a0=_0x4eb069;_0x85e94b[_0x52a7a0('0x2717')][_0x52a7a0('0x15e8')]({'id':_0x5e1d30['id']})[_0x52a7a0('0x1964')][_0x52a7a0('0x173b')](function(){const _0x10f742=_0x52a7a0;_0x3c8d8a()[_0x10f742('0x1a8b')](_0x10e7b1[_0x10f742('0xb60')],{'id':_0x5e1d30['id']}),_0x343f49[_0x10f742('0xdfe')]({'title':_0x10f742('0x1c35'),'msg':_0x10f742('0x2298')});})['catch'](function(_0x514471){const _0x332896=_0x52a7a0;_0x343f49[_0x332896('0x15aa')]({'title':_0x514471['status']?_0x332896('0x137')+_0x514471[_0x332896('0x276f')]+'\x20-\x20'+_0x514471[_0x332896('0x2696')]:_0x332896('0x1400'),'msg':_0x514471[_0x332896('0x1e07')]?JSON[_0x332896('0x100b')](_0x514471[_0x332896('0x1e07')]):_0x514471[_0x332896('0x1b75')]()});});}function _0x52846a(_0x4a4030,_0x502997){const _0x5d3365=_0x4eb069,_0x15f531=_0xe2e9cd[_0x5d3365('0x1d02')]()[_0x5d3365('0x20d6')](_0x5d3365('0x11d7'))['htmlContent'](_0x5d3365('0x1825')+_0x5d3365('0xd23'))[_0x5d3365('0x217')]('delete\x20description')[_0x5d3365('0x21de')](_0x4a4030)['ok']('OK')[_0x5d3365('0x1e1f')](_0x5d3365('0x468'));_0xe2e9cd['show'](_0x15f531)[_0x5d3365('0x173b')](function(){_0x232db3(_0x502997);},function(){const _0x491f9f=_0x5d3365;console[_0x491f9f('0xe37')](_0x491f9f('0x468'));});}function _0x4bba7a(_0x26bd9d){const _0x155cfd=_0x4eb069,_0x422c50=_0xe2e9cd[_0x155cfd('0x1d02')]()[_0x155cfd('0x20d6')](_0x155cfd('0x1807'))[_0x155cfd('0xf8b')](_0x155cfd('0x15b9')+_0x10e7b1[_0x155cfd('0x10e1')][_0x155cfd('0x543')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20descriptions')['targetEvent'](_0x26bd9d)['ok']('OK')[_0x155cfd('0x1e1f')](_0x155cfd('0x468'));_0xe2e9cd[_0x155cfd('0x1cb7')](_0x422c50)[_0x155cfd('0x173b')](function(){const _0x225d2a=_0x155cfd;_0x10e7b1[_0x225d2a('0x10e1')][_0x225d2a('0xa6a')](function(_0x989a64){_0x232db3(_0x989a64);}),_0x10e7b1[_0x225d2a('0x10e1')]=[];});}_0x10e7b1['selectedFields']=[],_0x10e7b1['createOrEditField']=_0x2edbf0,_0x10e7b1['deleteFieldConfirm']=_0x36216d,_0x10e7b1['deleteSelectedFields']=_0x355825;function _0x2edbf0(_0x18d764,_0x1b7514){const _0xfeb714=_0x4eb069;_0xe2e9cd[_0xfeb714('0x1cb7')]({'controller':_0xfeb714('0x117e'),'controllerAs':'vm','templateUrl':_0x59db93,'parent':angular['element'](_0x19e7ce[_0xfeb714('0x1a5')]),'targetEvent':_0x18d764,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x1b7514,'items':_0x10e7b1[_0xfeb714('0x2340')],'configuration':_0x10e7b1[_0xfeb714('0x20af')],'account':_0x10e7b1[_0xfeb714('0xca')],'license':null,'setting':null,'crudPermissions':_0x10e7b1[_0xfeb714('0x1dc1')]}});}function _0x1bc867(_0x16cc2b){const _0x303d28=_0x4eb069;_0x85e94b[_0x303d28('0x2717')]['delete']({'id':_0x16cc2b['id']})[_0x303d28('0x1964')][_0x303d28('0x173b')](function(){const _0x2fa104=_0x303d28;_0x3c8d8a()['remove'](_0x10e7b1[_0x2fa104('0x2340')],{'id':_0x16cc2b['id']}),_0x343f49[_0x2fa104('0xdfe')]({'title':_0x2fa104('0x2262'),'msg':_0x2fa104('0x1063')});})[_0x303d28('0x103c')](function(_0x3d136f){const _0x7fa9f5=_0x303d28;_0x343f49[_0x7fa9f5('0x15aa')]({'title':_0x3d136f[_0x7fa9f5('0x276f')]?_0x7fa9f5('0x137')+_0x3d136f[_0x7fa9f5('0x276f')]+_0x7fa9f5('0x160c')+_0x3d136f[_0x7fa9f5('0x2696')]:_0x7fa9f5('0x1400'),'msg':_0x3d136f[_0x7fa9f5('0x1e07')]?JSON[_0x7fa9f5('0x100b')](_0x3d136f['data']):_0x3d136f[_0x7fa9f5('0x1b75')]()});});}function _0x36216d(_0x5c4291,_0x4265bc){const _0x518421=_0x4eb069,_0x533844=_0xe2e9cd['confirm']()[_0x518421('0x20d6')](_0x518421('0x985'))[_0x518421('0xf8b')](_0x518421('0x1cf')+_0x518421('0xd23'))['ariaLabel']('delete\x20field')[_0x518421('0x21de')](_0x5c4291)['ok']('OK')[_0x518421('0x1e1f')](_0x518421('0x468'));_0xe2e9cd['show'](_0x533844)['then'](function(){_0x1bc867(_0x4265bc);},function(){const _0x36db10=_0x518421;console[_0x36db10('0xe37')](_0x36db10('0x468'));});}function _0x355825(_0x388dca){const _0xb14886=_0x4eb069,_0x3ba85b=_0xe2e9cd[_0xb14886('0x1d02')]()[_0xb14886('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0xb14886('0xf8b')](_0xb14886('0x15b9')+_0x10e7b1['selectedFields']['length']+'\x20selected'+_0xb14886('0xd23'))['ariaLabel']('delete\x20fields')[_0xb14886('0x21de')](_0x388dca)['ok']('OK')[_0xb14886('0x1e1f')](_0xb14886('0x468'));_0xe2e9cd[_0xb14886('0x1cb7')](_0x3ba85b)[_0xb14886('0x173b')](function(){const _0x43e042=_0xb14886;_0x10e7b1[_0x43e042('0x86d')][_0x43e042('0xa6a')](function(_0x3385a4){_0x1bc867(_0x3385a4);}),_0x10e7b1[_0x43e042('0x86d')]=[];});}}const _0x4bde12=_0x2027fe;_0x24239b['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),'configurations',_0x566993('0x20af'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x24239b(_0x3d7f28,_0xb56f06,_0x2429e3,_0x5104f5,_0x198570,_0x9cd4fe,_0x293c62,_0x14c820,_0x1e5cc4,_0x5bdc61,_0x11f927,_0x163577,_0x545b16,_0x2efced){const _0x92b2ec=_0x566993,_0x4409cf=this;_0x4409cf[_0x92b2ec('0x155f')]=_0x11f927[_0x92b2ec('0x14d4')](),_0x4409cf[_0x92b2ec('0x1d4a')]=[],_0x4409cf[_0x92b2ec('0x251')]=_0x545b16,_0x4409cf[_0x92b2ec('0x1a29')]=_0x163577,_0x4409cf[_0x92b2ec('0x1dc1')]=_0x2efced,_0x4409cf[_0x92b2ec('0xb0')]={},_0x4409cf[_0x92b2ec('0x644')]=_0x4409cf[_0x92b2ec('0x251')]&&_0x4409cf[_0x92b2ec('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4409cf['title']=_0x92b2ec('0x21fe'),_0x4409cf['vtigerConfiguration']=angular['copy'](_0x1e5cc4),_0x4409cf[_0x92b2ec('0x294')]=_0x14c820,_0x4409cf[_0x92b2ec('0x545')]=![];!_0x4409cf[_0x92b2ec('0x20af')]&&(_0x4409cf[_0x92b2ec('0x20af')]={'channel':_0x92b2ec('0x21a8'),'type':_0x92b2ec('0x1755')},_0x4409cf[_0x92b2ec('0x20d6')]='INTEGRATIONS.NEW_VTIGERCONFIGURATION',_0x4409cf[_0x92b2ec('0x545')]=!![]);_0x4409cf[_0x92b2ec('0x2c0')]=_0x1b9ec8,_0x4409cf[_0x92b2ec('0x1bd6')]=_0x576039,_0x4409cf[_0x92b2ec('0x6bf')]=_0x407235,_0x4409cf[_0x92b2ec('0x11ae')]=_0x5d0e18,_0x4409cf['closeDialog']=_0xcb68be;function _0x1b9ec8(){const _0x1aa79b=_0x92b2ec;_0x4409cf[_0x1aa79b('0x1d4a')]=[],_0x5bdc61[_0x1aa79b('0x44c')][_0x1aa79b('0x795')]({'id':_0xb56f06['params']['id']},_0x4409cf[_0x1aa79b('0x20af')])['$promise'][_0x1aa79b('0x173b')](function(_0x5e0818){const _0x35001a=_0x1aa79b;_0x4409cf['configurations'][_0x35001a('0x1377')](_0x5e0818['toJSON']()),_0x293c62['success']({'title':_0x35001a('0x9ad'),'msg':_0x4409cf['vtigerConfiguration'][_0x35001a('0x10ad')]?_0x4409cf[_0x35001a('0x20af')]['name']+_0x35001a('0x209a'):''}),_0xcb68be(_0x5e0818);})[_0x1aa79b('0x103c')](function(_0x349ee9){const _0x4b04ac=_0x1aa79b;if(_0x349ee9[_0x4b04ac('0x1e07')]&&_0x349ee9[_0x4b04ac('0x1e07')][_0x4b04ac('0x1d4a')]&&_0x349ee9['data'][_0x4b04ac('0x1d4a')][_0x4b04ac('0x543')]){_0x4409cf[_0x4b04ac('0x1d4a')]=_0x349ee9['data'][_0x4b04ac('0x1d4a')]||[{'message':_0x349ee9[_0x4b04ac('0x1b75')](),'type':_0x4b04ac('0x1d68')}];for(let _0x3e03b4=0x0;_0x3e03b4<_0x349ee9[_0x4b04ac('0x1e07')]['errors'][_0x4b04ac('0x543')];_0x3e03b4+=0x1){_0x293c62[_0x4b04ac('0x15aa')]({'title':_0x349ee9[_0x4b04ac('0x1e07')]['errors'][_0x3e03b4]['type'],'msg':_0x349ee9[_0x4b04ac('0x1e07')][_0x4b04ac('0x1d4a')][_0x3e03b4][_0x4b04ac('0x67f')]});}}else _0x293c62[_0x4b04ac('0x15aa')]({'title':_0x349ee9['status']?_0x4b04ac('0x137')+_0x349ee9[_0x4b04ac('0x276f')]+_0x4b04ac('0x160c')+_0x349ee9[_0x4b04ac('0x2696')]:_0x4b04ac('0x1d68'),'msg':_0x349ee9['data']?JSON['stringify'](_0x349ee9[_0x4b04ac('0x1e07')][_0x4b04ac('0x67f')]):_0x349ee9[_0x4b04ac('0x1b75')]()});});}function _0x576039(){const _0xabb20b=_0x92b2ec;_0x4409cf[_0xabb20b('0x1d4a')]=[],_0x5bdc61[_0xabb20b('0xf24')]['update']({'id':_0x4409cf[_0xabb20b('0x20af')]['id']},_0x4409cf[_0xabb20b('0x20af')])[_0xabb20b('0x1964')][_0xabb20b('0x173b')](function(_0x1e7f4f){const _0x14f4b8=_0xabb20b,_0x597bfb=_0x3c8d8a()[_0x14f4b8('0x18ab')](_0x4409cf[_0x14f4b8('0x294')],{'id':_0x1e7f4f['id']});_0x597bfb&&_0x3c8d8a()[_0x14f4b8('0x9ef')](_0x597bfb,_0x3c8d8a()[_0x14f4b8('0x2114')](_0x1e7f4f[_0x14f4b8('0xf1f')](),_0x3c8d8a()[_0x14f4b8('0x1d3e')](_0x597bfb))),_0x293c62[_0x14f4b8('0xdfe')]({'title':_0x14f4b8('0x16fb'),'msg':_0x4409cf[_0x14f4b8('0x20af')][_0x14f4b8('0x10ad')]?_0x4409cf[_0x14f4b8('0x20af')]['name']+'\x20has\x20been\x20saved!':''}),_0xcb68be(_0x1e7f4f);})['catch'](function(_0x46afb7){const _0x2ddae7=_0xabb20b;if(_0x46afb7[_0x2ddae7('0x1e07')]&&_0x46afb7[_0x2ddae7('0x1e07')][_0x2ddae7('0x1d4a')]&&_0x46afb7[_0x2ddae7('0x1e07')][_0x2ddae7('0x1d4a')][_0x2ddae7('0x543')]){_0x4409cf[_0x2ddae7('0x1d4a')]=_0x46afb7['data']['errors']||[{'message':_0x46afb7[_0x2ddae7('0x1b75')](),'type':'api.intVtigerConfiguration.update'}];for(let _0x2cee3c=0x0;_0x2cee3c<_0x46afb7[_0x2ddae7('0x1e07')]['errors'][_0x2ddae7('0x543')];_0x2cee3c++){_0x293c62[_0x2ddae7('0x15aa')]({'title':_0x46afb7[_0x2ddae7('0x1e07')][_0x2ddae7('0x1d4a')][_0x2cee3c][_0x2ddae7('0x1810')],'msg':_0x46afb7[_0x2ddae7('0x1e07')]['errors'][_0x2cee3c][_0x2ddae7('0x67f')]});}}else _0x293c62[_0x2ddae7('0x15aa')]({'title':_0x46afb7['status']?_0x2ddae7('0x137')+_0x46afb7['status']+_0x2ddae7('0x160c')+_0x46afb7[_0x2ddae7('0x2696')]:_0x2ddae7('0x9c1'),'msg':_0x46afb7['data']?JSON[_0x2ddae7('0x100b')](_0x46afb7[_0x2ddae7('0x1e07')][_0x2ddae7('0x67f')]):_0x46afb7[_0x2ddae7('0x1b75')]()});});}function _0x407235(_0x3f32b2){const _0x31132d=_0x92b2ec;_0x4409cf[_0x31132d('0x1d4a')]=[];const _0x1293c7=_0x5104f5['confirm']()['title'](_0x31132d('0x8ef'))['content'](_0x31132d('0xc90'))[_0x31132d('0x217')]('Delete\x20VtigerConfiguration')['ok'](_0x31132d('0x2373'))['cancel'](_0x31132d('0x1d4e'))[_0x31132d('0x21de')](_0x3f32b2);_0x5104f5['show'](_0x1293c7)[_0x31132d('0x173b')](function(){const _0x14c1b8=_0x31132d;_0x5bdc61[_0x14c1b8('0xf24')][_0x14c1b8('0x15e8')]({'id':_0x4409cf[_0x14c1b8('0x20af')]['id']})[_0x14c1b8('0x1964')][_0x14c1b8('0x173b')](function(){const _0x5d38d7=_0x14c1b8;_0x3c8d8a()[_0x5d38d7('0x1a8b')](_0x4409cf['configurations'],{'id':_0x4409cf[_0x5d38d7('0x20af')]['id']}),_0x293c62[_0x5d38d7('0xdfe')]({'title':_0x5d38d7('0xb86'),'msg':(_0x4409cf[_0x5d38d7('0x20af')][_0x5d38d7('0x10ad')]||_0x5d38d7('0x20af'))+_0x5d38d7('0x25d2')}),_0xcb68be(_0x4409cf['vtigerConfiguration']);})[_0x14c1b8('0x103c')](function(_0x4d1336){const _0x4b8db8=_0x14c1b8;if(_0x4d1336[_0x4b8db8('0x1e07')]&&_0x4d1336[_0x4b8db8('0x1e07')][_0x4b8db8('0x1d4a')]&&_0x4d1336[_0x4b8db8('0x1e07')][_0x4b8db8('0x1d4a')][_0x4b8db8('0x543')]){_0x4409cf['errors']=_0x4d1336['data'][_0x4b8db8('0x1d4a')]||[{'message':_0x4d1336[_0x4b8db8('0x1b75')](),'type':_0x4b8db8('0x15a6')}];for(let _0xbd08db=0x0;_0xbd08db<_0x4d1336[_0x4b8db8('0x1e07')][_0x4b8db8('0x1d4a')][_0x4b8db8('0x543')];_0xbd08db++){_0x293c62[_0x4b8db8('0x15aa')]({'title':_0x4d1336[_0x4b8db8('0x1e07')][_0x4b8db8('0x1d4a')][_0xbd08db][_0x4b8db8('0x1810')],'msg':_0x4d1336[_0x4b8db8('0x1e07')]['errors'][_0xbd08db][_0x4b8db8('0x67f')]});}}else _0x293c62[_0x4b8db8('0x15aa')]({'title':_0x4d1336[_0x4b8db8('0x276f')]?_0x4b8db8('0x137')+_0x4d1336['status']+_0x4b8db8('0x160c')+_0x4d1336[_0x4b8db8('0x2696')]:_0x4b8db8('0x15a6'),'msg':_0x4d1336['data']?JSON['stringify'](_0x4d1336['data']['message']):_0x4d1336[_0x4b8db8('0x67f')]||_0x4d1336[_0x4b8db8('0x1b75')]()});});},function(){});}function _0x5d0e18(_0x5ef342){return _0x5ef342===null?undefined:new Date(_0x5ef342);}function _0xcb68be(_0x110a04){_0x5104f5['hide'](_0x110a04);}}const _0x47ebce=_0x24239b;_0x477166[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0x1dde'),_0x566993('0x1b1f'),'item','account',_0x566993('0x1810'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x477166(_0x5e200a,_0x4c43f2,_0x45da7b,_0x4f1db4,_0x5adcd0,_0xa0e1ad,_0x364b60,_0x413dcc,_0x33db27,_0x105a84,_0x127b51,_0x4aafca,_0x2c90ee){const _0x356812=_0x566993,_0x5cfd31=this;_0x5cfd31[_0x356812('0x155f')]=_0x4aafca[_0x356812('0x14d4')](),_0x5cfd31[_0x356812('0x1d4a')]=[],_0x5cfd31[_0x356812('0x20d6')]=_0x356812('0x3a0')+_0x3c8d8a()[_0x356812('0x160d')](_0x105a84),_0x5cfd31[_0x356812('0x54')]=angular['copy'](_0x413dcc),_0x5cfd31[_0x356812('0x1b1f')]=_0x364b60,_0x5cfd31[_0x356812('0x1810')]=_0x105a84,_0x5cfd31[_0x356812('0x1dc1')]=_0x2c90ee,_0x5cfd31['newItem']=![];!_0x5cfd31[_0x356812('0x54')]&&(_0x5cfd31['item']={'type':_0x356812('0x1533')},_0x5cfd31['item'][_0x3c8d8a()['capitalize'](_0x105a84)+'Id']=_0xa0e1ad['id'],_0x5cfd31[_0x356812('0x20d6')]='INTEGRATIONS.NEW_'+_0x3c8d8a()[_0x356812('0x160d')](_0x105a84),_0x5cfd31['newItem']=!![]);_0x5cfd31[_0x356812('0x221f')]=_0x4ec7ee,_0x5cfd31['saveItem']=_0x33f182,_0x5cfd31[_0x356812('0x2157')]=_0x4c66cd,_0x5cfd31[_0x356812('0x1188')]=_0x379dc8,_0x5cfd31[_0x356812('0x18e2')]=_0x8b31c5,_0x127b51['variable']['get']({'nolimit':!![]})[_0x356812('0x1964')][_0x356812('0x173b')](function(_0x1c5203){const _0x45f502=_0x356812;return _0x5cfd31[_0x45f502('0x2715')]=_0x1c5203[_0x45f502('0x6aa')]?_0x1c5203[_0x45f502('0x6aa')]:[],_0x127b51['voiceAgentReport'][_0x45f502('0x2320')]()[_0x45f502('0x1964')];})[_0x356812('0x173b')](function(_0x783217){const _0x1c375b=_0x356812;return _0x5cfd31[_0x1c375b('0x1fe8')]=_0x3c8d8a()['difference'](_0x3c8d8a()[_0x1c375b('0x1d3e')](_0x783217),[_0x1c375b('0x1964'),_0x1c375b('0x14ad'),'createdAt','updatedAt',_0x1c375b('0x24b1')]),_0x5cfd31[_0x1c375b('0x1fe8')][_0x1c375b('0x18bb')](_0x1c375b('0x2313')),_0x127b51['voiceDialReport']['describe']()[_0x1c375b('0x1964')];})[_0x356812('0x173b')](function(_0x40e6df){const _0x3ca20d=_0x356812;_0x5cfd31['voiceDialReportColumns']=_0x3c8d8a()['difference'](_0x3c8d8a()['keys'](_0x40e6df),[_0x3ca20d('0x1964'),_0x3ca20d('0x14ad'),_0x3ca20d('0xda8'),_0x3ca20d('0xad'),'sourceid']),_0x5cfd31[_0x3ca20d('0x20de')][_0x3ca20d('0x18bb')](_0x3ca20d('0x2313'));})[_0x356812('0x103c')](function(_0x17b799){const _0x1719cf=_0x356812;_0x5adcd0['error']({'title':_0x17b799[_0x1719cf('0x276f')]?'API:'+_0x17b799[_0x1719cf('0x276f')]+_0x1719cf('0x160c')+_0x17b799[_0x1719cf('0x2696')]:_0x1719cf('0xaf3'),'msg':_0x17b799['data']?JSON['stringify'](_0x17b799['data']):_0x17b799[_0x1719cf('0x1b75')]()});}),_0x127b51[_0x356812('0x44c')][_0x356812('0x223b')]({'id':_0x33db27['id'],'ticketType':_0xa0e1ad['ticketType']?_0xa0e1ad[_0x356812('0x182')]:undefined})['$promise']['then'](function(_0x8255d5){const _0x963a63=_0x356812;_0x5cfd31['accountConnected']=!![],_0x5cfd31[_0x963a63('0x2340')]=_0x8255d5['rows']?_0x8255d5[_0x963a63('0x6aa')]:[],_0x5cfd31['item']['idField']&&(_0x5cfd31[_0x963a63('0x894')]=_0x3c8d8a()[_0x963a63('0x18ab')](_0x5cfd31[_0x963a63('0x2340')],{'id':_0x5cfd31[_0x963a63('0x54')][_0x963a63('0x1ee7')]}));})['catch'](function(_0x47a80d){_0x5cfd31['accountConnected']=![],console['error'](_0x47a80d);});function _0x4ec7ee(){const _0x57ff69=_0x356812;_0x5cfd31[_0x57ff69('0x1d4a')]=[],_0x5cfd31['customField']&&(_0x5cfd31[_0x57ff69('0x54')][_0x57ff69('0x1ee7')]=_0x5cfd31[_0x57ff69('0x894')]['id'],_0x5cfd31['item'][_0x57ff69('0x194d')]=_0x5cfd31[_0x57ff69('0x894')][_0x57ff69('0x10ad')],_0x5cfd31[_0x57ff69('0x54')][_0x57ff69('0x894')]=_0x5cfd31[_0x57ff69('0x894')]['custom']),_0x127b51['intVtigerField'][_0x57ff69('0x1195')](_0x5cfd31['item'])['$promise']['then'](function(_0x2c585b){const _0x83b2cf=_0x57ff69;_0x5cfd31[_0x83b2cf('0x1b1f')][_0x83b2cf('0x1377')](_0x2c585b),_0x5adcd0[_0x83b2cf('0xdfe')]({'title':_0x3c8d8a()[_0x83b2cf('0x587')](_0x105a84)+'\x20properly\x20created','msg':_0x3c8d8a()[_0x83b2cf('0x587')](_0x105a84)+'\x20has\x20been\x20created!'}),_0x8b31c5();})[_0x57ff69('0x103c')](function(_0x4d3735){const _0x3e5ea1=_0x57ff69;console[_0x3e5ea1('0x15aa')](_0x4d3735),_0x5cfd31[_0x3e5ea1('0x1d4a')]=_0x4d3735[_0x3e5ea1('0x1e07')]['errors']||[{'message':_0x4d3735['toString'](),'type':_0x3e5ea1('0x18e4')}];});}function _0x33f182(){const _0x168ca5=_0x356812;_0x5cfd31['errors']=[],_0x5cfd31[_0x168ca5('0x894')]&&(_0x5cfd31[_0x168ca5('0x54')]['idField']=_0x5cfd31[_0x168ca5('0x894')]['id'],_0x5cfd31[_0x168ca5('0x54')][_0x168ca5('0x194d')]=_0x5cfd31['customField'][_0x168ca5('0x10ad')],_0x5cfd31[_0x168ca5('0x54')][_0x168ca5('0x894')]=_0x5cfd31[_0x168ca5('0x894')][_0x168ca5('0xbb4')]),_0x127b51[_0x168ca5('0x2717')][_0x168ca5('0x1842')]({'id':_0x5cfd31[_0x168ca5('0x54')]['id']},_0x5cfd31['item'])['$promise'][_0x168ca5('0x173b')](function(_0x16d164){const _0x180563=_0x168ca5,_0x4744a5=_0x3c8d8a()[_0x180563('0x18ab')](_0x5cfd31['items'],{'id':_0x16d164['id']});_0x4744a5&&_0x3c8d8a()[_0x180563('0x9ef')](_0x4744a5,_0x16d164),_0x5adcd0['success']({'title':_0x3c8d8a()[_0x180563('0x587')](_0x105a84)+_0x180563('0x10e9'),'msg':_0x3c8d8a()[_0x180563('0x587')](_0x105a84)+_0x180563('0x2788')}),_0x8b31c5();})[_0x168ca5('0x103c')](function(_0x436778){const _0xa495b=_0x168ca5;console[_0xa495b('0x15aa')](_0x436778),_0x5cfd31[_0xa495b('0x1d4a')]=_0x436778[_0xa495b('0x1e07')][_0xa495b('0x1d4a')]||[{'message':_0x436778['toString'](),'type':_0xa495b('0x1c43')}];});}function _0x4c66cd(_0x1f0ae0){const _0x40bdab=_0x356812;_0x5cfd31[_0x40bdab('0x1d4a')]=[];const _0x45a12f=_0x4f1db4[_0x40bdab('0x1d02')]()[_0x40bdab('0x20d6')]('Are\x20you\x20sure?')[_0x40bdab('0x732')](_0x40bdab('0x1aa5')+_0x105a84+_0x40bdab('0xd23'))[_0x40bdab('0x217')](_0x40bdab('0x133e')+_0x3c8d8a()[_0x40bdab('0x587')](_0x105a84))['ok'](_0x40bdab('0x2373'))[_0x40bdab('0x1e1f')](_0x40bdab('0x1d4e'))['targetEvent'](_0x1f0ae0);_0x4f1db4[_0x40bdab('0x1cb7')](_0x45a12f)[_0x40bdab('0x173b')](function(){const _0x4155f7=_0x40bdab;_0x127b51['intVtigerField'][_0x4155f7('0x15e8')]({'id':_0x5cfd31['item']['id']})[_0x4155f7('0x1964')][_0x4155f7('0x173b')](function(){const _0x340a41=_0x4155f7;_0x3c8d8a()['remove'](_0x5cfd31[_0x340a41('0x1b1f')],{'id':_0x5cfd31[_0x340a41('0x54')]['id']}),_0x5adcd0['success']({'title':_0x3c8d8a()[_0x340a41('0x587')](_0x105a84)+_0x340a41('0xb5'),'msg':_0x3c8d8a()[_0x340a41('0x587')](_0x105a84)+_0x340a41('0x25d2')}),_0x8b31c5();})[_0x4155f7('0x103c')](function(_0x492e00){const _0x44fe72=_0x4155f7;console[_0x44fe72('0x15aa')](_0x492e00),_0x5cfd31[_0x44fe72('0x1d4a')]=_0x492e00[_0x44fe72('0x1e07')]['errors']||[{'message':_0x492e00[_0x44fe72('0x1b75')](),'type':_0x44fe72('0x238e')}];});},function(){});}function _0x379dc8(){const _0x15dae7=_0x356812;return _0x5cfd31[_0x15dae7('0x54')][_0x15dae7('0x195d')]!==undefined?_0x5cfd31['item'][_0x15dae7('0x195d')]:'Please\x20select\x20a\x20variable';}function _0x8b31c5(){const _0x37ec0f=_0x356812;_0x4f1db4[_0x37ec0f('0x1cf4')]();}}const _0x21cc71=_0x477166;_0x1f7230[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog',_0x566993('0x1b82'),'$translate','license','setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0xca'),'userProfileSection'];function _0x1f7230(_0x5bc742,_0xf983be,_0x530b86,_0x1fac2d,_0x46f3e5,_0x2859da,_0x2bedc9,_0x40ba23,_0x405d4c,_0x508332,_0x26ce16,_0x5b59d6){const _0x3ba787=_0x566993,_0x2c7d8b=this;_0x2c7d8b[_0x3ba787('0x155f')]=_0x508332[_0x3ba787('0x14d4')](),_0x2c7d8b[_0x3ba787('0x1a29')]=_0x2859da,_0x2c7d8b[_0x3ba787('0x251')]=_0x2bedc9,_0x2c7d8b[_0x3ba787('0x644')]=_0x2c7d8b['setting'][_0x3ba787('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c7d8b['location']=_0xf983be['protocol']()+_0x3ba787('0x122b')+_0xf983be['host'](),_0x2c7d8b[_0x3ba787('0xca')]=_0x26ce16||_0x5bc742[_0x3ba787('0x197a')][_0x3ba787('0xca')]||{},_0x2c7d8b['userProfileSection']=_0x5b59d6&&_0x5b59d6[_0x3ba787('0x1a2f')]==0x1?_0x5b59d6[_0x3ba787('0x6aa')][0x0]:null,_0x2c7d8b[_0x3ba787('0x1dc1')]=_0x508332['parseCrudPermissions'](_0x2c7d8b[_0x3ba787('0x170e')]?_0x2c7d8b[_0x3ba787('0x170e')]['crudPermissions']:null),_0x2c7d8b['hasModulePermissions']={},_0x2c7d8b[_0x3ba787('0xd5f')]=_0x5bc742[_0x3ba787('0x197a')]['tab']||0x0,_0x2c7d8b[_0x3ba787('0x5a4')]=_0x405d4c['info'],_0x2c7d8b[_0x3ba787('0x7e2')]=_0x422af6,_0x2c7d8b[_0x3ba787('0x1a16')]=_0x3f98cd;function _0x422af6(){const _0x10c1d9=_0x3ba787;_0x5bc742['go'](_0x10c1d9('0x2633'),{},{'reload':_0x10c1d9('0x2633')});}function _0x3f98cd(){const _0x1ace0b=_0x3ba787;_0x40ba23[_0x1ace0b('0x44c')]['update']({'id':_0x2c7d8b[_0x1ace0b('0xca')]['id']},_0x2c7d8b[_0x1ace0b('0xca')])[_0x1ace0b('0x1964')][_0x1ace0b('0x173b')](function(){const _0x43965f=_0x1ace0b;_0x405d4c[_0x43965f('0xdfe')]({'title':'VtigerAccount\x20updated!','msg':_0x2c7d8b[_0x43965f('0xca')][_0x43965f('0x10ad')]?_0x2c7d8b[_0x43965f('0xca')][_0x43965f('0x10ad')]+'\x20has\x20been\x20updated!':''});})[_0x1ace0b('0x103c')](function(_0x2fef67){const _0x3b154f=_0x1ace0b;_0x405d4c[_0x3b154f('0x15aa')]({'title':_0x2fef67[_0x3b154f('0x276f')]?_0x3b154f('0x137')+_0x2fef67[_0x3b154f('0x276f')]+_0x3b154f('0x160c')+_0x2fef67['statusText']:_0x3b154f('0x172c'),'msg':_0x2fef67[_0x3b154f('0x1e07')]?JSON['stringify'](_0x2fef67[_0x3b154f('0x1e07')]):_0x2fef67[_0x3b154f('0x1b75')]()});});}}const _0x45742d=_0x1f7230,_0x233498=_0x21a6a1['p']+_0x566993('0x17b0');_0x433c93[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),'$translate',_0x566993('0xe51'),_0x566993('0x257b'),'userProfileSection',_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x433c93(_0x281cfe,_0x1f462b,_0x474d3b,_0x1fd7ae,_0x141978,_0x25263d,_0x419804,_0x1f6594,_0x878b63,_0xca3258,_0x2c7a8c,_0x142f97,_0x3b6699,_0x44d5b9,_0x34ae43,_0x378109,_0x2a5ff9){const _0x4b6369=_0x566993,_0x3e5eb7=this;_0x3e5eb7['license']=_0x378109,_0x3e5eb7[_0x4b6369('0x251')]=_0x2a5ff9,_0x3e5eb7[_0x4b6369('0x155f')]=_0x34ae43[_0x4b6369('0x14d4')](),_0x3e5eb7[_0x4b6369('0xe51')]=_0x878b63||{'count':0x0,'rows':[]},_0x3e5eb7[_0x4b6369('0x257b')]=_0xca3258,_0x3e5eb7[_0x4b6369('0x170e')]=_0x2c7a8c&&_0x2c7a8c[_0x4b6369('0x1a2f')]==0x1?_0x2c7a8c[_0x4b6369('0x6aa')][0x0]:null,_0x3e5eb7['crudPermissions']=_0x34ae43[_0x4b6369('0xde6')](_0x3e5eb7[_0x4b6369('0x170e')]?_0x3e5eb7[_0x4b6369('0x170e')]['crudPermissions']:null),_0x3e5eb7[_0x4b6369('0xdf9')]=_0x4b6369('0xe51'),_0x3e5eb7[_0x4b6369('0x14d6')]='',_0x3e5eb7[_0x4b6369('0x2303')]=null,_0x3e5eb7[_0x4b6369('0x36a')]=[],_0x3e5eb7['query']={'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','limit':0xa,'page':0x1},_0x3e5eb7[_0x4b6369('0x222e')]=_0x1ee4a4,_0x3e5eb7[_0x4b6369('0x1f58')]=_0x5db30e,_0x3e5eb7[_0x4b6369('0x1a20')]=_0x444e43,_0x3e5eb7['success']=_0x4b4fb0,_0x3e5eb7[_0x4b6369('0x12a5')]=_0x2ea7ac,_0x3e5eb7[_0x4b6369('0x11a1')]=_0x33e291,_0x3e5eb7['deleteVtigerAccount']=_0x2ff0ff,_0x3e5eb7['exportSelectedVtigerAccounts']=_0x1cfd6f,_0x3e5eb7[_0x4b6369('0x1a')]=_0x1bbddf,_0x3e5eb7['deselectVtigerAccounts']=_0x472cc0,_0x3e5eb7[_0x4b6369('0xcf0')]=_0x4ec775;function _0x1ee4a4(_0x20343b){const _0x3f7d6b=_0x4b6369;_0x474d3b['go'](_0x3f7d6b('0x1221'),{'id':_0x20343b['id'],'vtigerAccount':_0x20343b,'crudPermissions':_0x3e5eb7[_0x3f7d6b('0x1dc1')]});}function _0x5db30e(_0x1dd838){const _0x5ea6b5=_0x4b6369;return _0x142f97[_0x5ea6b5('0x44c')][_0x5ea6b5('0x223b')]({'id':_0x1dd838['id'],'test':!![]})['$promise']['then'](function(){const _0x2e5a50=_0x5ea6b5;_0x44d5b9[_0x2e5a50('0xdfe')]({'title':_0x2e5a50('0x2002'),'msg':_0x2e5a50('0x13fe')});})[_0x5ea6b5('0x103c')](function(_0x23dfa6){const _0xec855f=_0x5ea6b5;_0x44d5b9['error']({'title':_0xec855f('0x2002'),'msg':_0x23dfa6['data']?_0x23dfa6[_0xec855f('0x1e07')]['message']?_0x23dfa6[_0xec855f('0x1e07')][_0xec855f('0x67f')]:JSON[_0xec855f('0x100b')](_0x23dfa6[_0xec855f('0x1e07')]):_0x23dfa6['toString']()});});}function _0x444e43(_0x5f5351,_0x38664b){const _0xcf9d3c=_0x4b6369,_0x386457=_0x141978[_0xcf9d3c('0x1d02')]()[_0xcf9d3c('0x20d6')](_0xcf9d3c('0x5bb')+_0x3c8d8a()['startCase'](_0xcf9d3c('0xca'))+'?')[_0xcf9d3c('0xf8b')](_0xcf9d3c('0x15b9')+(_0x5f5351['name']||_0xcf9d3c('0xca'))+_0xcf9d3c('0x24be')+_0xcf9d3c('0xd23'))[_0xcf9d3c('0x217')](_0xcf9d3c('0x69'))[_0xcf9d3c('0x21de')](_0x38664b)['ok']('OK')[_0xcf9d3c('0x1e1f')](_0xcf9d3c('0x468'));_0x141978[_0xcf9d3c('0x1cb7')](_0x386457)[_0xcf9d3c('0x173b')](function(){_0x2ff0ff(_0x5f5351);},function(){const _0x35e94b=_0xcf9d3c;console[_0x35e94b('0xe37')]('CANCEL');});}let _0x33ef1d=!![],_0x491bcf=0x1;_0x281cfe[_0x4b6369('0x1bdb')]('vm.query.filter',function(_0x39b62d,_0x20143d){const _0x549fa5=_0x4b6369;_0x33ef1d?_0x419804(function(){_0x33ef1d=![];}):(!_0x20143d&&(_0x491bcf=_0x3e5eb7[_0x549fa5('0xc49')]['page']),_0x39b62d!==_0x20143d&&(_0x3e5eb7[_0x549fa5('0xc49')][_0x549fa5('0x182e')]=0x1),!_0x39b62d&&(_0x3e5eb7[_0x549fa5('0xc49')]['page']=_0x491bcf),_0x3e5eb7['getVtigerAccounts']());});function _0x4b4fb0(_0x3f97a0){const _0x3cf606=_0x4b6369;_0x3e5eb7[_0x3cf606('0xe51')]=_0x3f97a0||{'count':0x0,'rows':[]};}function _0x2ea7ac(){const _0x2e62a4=_0x4b6369;_0x3e5eb7['query']['offset']=(_0x3e5eb7[_0x2e62a4('0xc49')][_0x2e62a4('0x182e')]-0x1)*_0x3e5eb7[_0x2e62a4('0xc49')][_0x2e62a4('0x3e')],_0x34ae43[_0x2e62a4('0x1b4e')]('admin')?_0x3e5eb7['promise']=_0x142f97[_0x2e62a4('0x44c')][_0x2e62a4('0x1d97')](_0x3e5eb7[_0x2e62a4('0xc49')],_0x4b4fb0)[_0x2e62a4('0x1964')]:(_0x3e5eb7[_0x2e62a4('0xc49')]['id']=_0x3e5eb7[_0x2e62a4('0x257b')]['id'],_0x3e5eb7[_0x2e62a4('0xc49')]['section']=_0x2e62a4('0x18fb'),_0x3e5eb7[_0x2e62a4('0x2219')]=_0x142f97[_0x2e62a4('0x257b')][_0x2e62a4('0x135b')](_0x3e5eb7[_0x2e62a4('0xc49')],_0x4b4fb0)[_0x2e62a4('0x1964')]);}function _0x33e291(_0x414b66,_0x102fd7){const _0x256430=_0x4b6369;_0x141978[_0x256430('0x1cb7')]({'controller':'CreateOrEditVtigerAccountDialogController','controllerAs':'vm','templateUrl':_0x233498,'parent':angular['element'](_0x25263d[_0x256430('0x1a5')]),'targetEvent':_0x414b66,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x102fd7,'vtigerAccounts':_0x3e5eb7[_0x256430('0xe51')][_0x256430('0x6aa')],'license':_0x3e5eb7[_0x256430('0x1a29')],'setting':_0x3e5eb7['setting'],'crudPermissions':_0x3e5eb7[_0x256430('0x1dc1')]}});}function _0x2ff0ff(_0xd6caa1){const _0x55fa21=_0x4b6369;_0x142f97[_0x55fa21('0x44c')][_0x55fa21('0x15e8')]({'id':_0xd6caa1['id']})['$promise'][_0x55fa21('0x173b')](function(){const _0x50158a=_0x55fa21;_0x3c8d8a()[_0x50158a('0x1a8b')](_0x3e5eb7['vtigerAccounts']['rows'],{'id':_0xd6caa1['id']}),_0x3e5eb7['vtigerAccounts'][_0x50158a('0x1a2f')]-=0x1,!_0x3e5eb7[_0x50158a('0xe51')][_0x50158a('0x6aa')][_0x50158a('0x543')]&&_0x3e5eb7[_0x50158a('0x12a5')](),_0x44d5b9[_0x50158a('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x50158a('0x39f'))+'\x20deleted!','msg':_0xd6caa1[_0x50158a('0x10ad')]?_0xd6caa1[_0x50158a('0x10ad')]+_0x50158a('0x25d2'):''});})[_0x55fa21('0x103c')](function(_0x458043){const _0x311ca4=_0x55fa21;if(_0x458043[_0x311ca4('0x1e07')]&&_0x458043[_0x311ca4('0x1e07')][_0x311ca4('0x1d4a')]&&_0x458043[_0x311ca4('0x1e07')][_0x311ca4('0x1d4a')][_0x311ca4('0x543')]){_0x3e5eb7['errors']=_0x458043[_0x311ca4('0x1e07')]['errors']||[{'message':_0x458043['toString'](),'type':_0x311ca4('0x18c')}];for(let _0x4edf78=0x0;_0x4edf78<_0x458043['data'][_0x311ca4('0x1d4a')][_0x311ca4('0x543')];_0x4edf78++){_0x44d5b9[_0x311ca4('0x15aa')]({'title':_0x458043['data']['errors'][_0x4edf78][_0x311ca4('0x1810')],'msg':_0x458043[_0x311ca4('0x1e07')]['errors'][_0x4edf78][_0x311ca4('0x67f')]});}}else _0x44d5b9[_0x311ca4('0x15aa')]({'title':_0x458043['status']?_0x311ca4('0x137')+_0x458043[_0x311ca4('0x276f')]+'\x20-\x20'+_0x458043[_0x311ca4('0x2696')]:_0x311ca4('0x18c'),'msg':_0x458043[_0x311ca4('0x1e07')]?JSON[_0x311ca4('0x100b')](_0x458043[_0x311ca4('0x1e07')][_0x311ca4('0x67f')]):_0x458043[_0x311ca4('0x67f')]||_0x458043[_0x311ca4('0x1b75')]()});});}function _0x1cfd6f(){const _0x51af42=_0x4b6369,_0x220db2=angular[_0x51af42('0x2e3')](_0x3e5eb7['selectedVtigerAccounts']);return _0x3e5eb7[_0x51af42('0x36a')]=[],_0x220db2;}function _0x1bbddf(_0x10b45c){const _0x35ddf0=_0x4b6369,_0x116a4c=_0x141978['confirm']()['title'](_0x35ddf0('0x199a'))[_0x35ddf0('0xf8b')](''+_0x3e5eb7[_0x35ddf0('0x36a')][_0x35ddf0('0x543')]+_0x35ddf0('0xcb4')+_0x35ddf0('0xd23'))[_0x35ddf0('0x217')](_0x35ddf0('0xf65'))[_0x35ddf0('0x21de')](_0x10b45c)['ok']('OK')[_0x35ddf0('0x1e1f')](_0x35ddf0('0x468'));_0x141978[_0x35ddf0('0x1cb7')](_0x116a4c)[_0x35ddf0('0x173b')](function(){const _0x1a4b33=_0x35ddf0;_0x3e5eb7[_0x1a4b33('0x36a')][_0x1a4b33('0xa6a')](function(_0x6b0779){_0x2ff0ff(_0x6b0779);}),_0x3e5eb7[_0x1a4b33('0x36a')]=[];});}function _0x472cc0(){const _0x3d922a=_0x4b6369;_0x3e5eb7[_0x3d922a('0x36a')]=[];}function _0x4ec775(){const _0x3ee697=_0x4b6369;_0x3e5eb7[_0x3ee697('0x36a')]=_0x3e5eb7['vtigerAccounts']['rows'];}}const _0x13d8ac=_0x433c93;_0x40152a['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x24b8'),'zendeskAccount','api',_0x566993('0x1600'),'license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x40152a(_0x3ac0f1,_0x5f17c7,_0x3a3867,_0x1efa82,_0xeed8d2,_0x26146e,_0xdfb777,_0x39214b,_0x594419,_0x2adff5,_0x22a55b,_0x2db70e,_0x119c9d,_0x5b19f8){const _0x2f532f=_0x566993,_0xbdf240=this;_0xbdf240[_0x2f532f('0x155f')]=_0x22a55b[_0x2f532f('0x14d4')](),_0xbdf240[_0x2f532f('0x1d4a')]=[],_0xbdf240[_0x2f532f('0x251')]=_0x119c9d,_0xbdf240[_0x2f532f('0x1a29')]=_0x2db70e,_0xbdf240['crudPermissions']=_0x5b19f8,_0xbdf240[_0x2f532f('0xb0')]={},_0xbdf240[_0x2f532f('0x644')]=_0xbdf240['setting']&&_0xbdf240[_0x2f532f('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbdf240[_0x2f532f('0x20d6')]=_0x2f532f('0x23c8'),_0xbdf240[_0x2f532f('0x2389')]=angular[_0x2f532f('0x2e3')](_0x594419),_0xbdf240['zendeskAccounts']=_0x39214b,_0xbdf240[_0x2f532f('0xb0f')]=![];!_0xbdf240[_0x2f532f('0x2389')]&&(_0xbdf240[_0x2f532f('0x2389')]={'type':_0x2f532f('0x2324'),'authType':_0x2f532f('0xdb6'),'serverUrl':_0x3a3867['protocol']()+_0x2f532f('0x122b')+_0x3a3867['host']()+(_0x3a3867[_0x2f532f('0xe0d')]()?':'+_0x3a3867[_0x2f532f('0xe0d')]():'')},_0xbdf240['title']=_0x2f532f('0xfa6'),_0xbdf240['newZendeskAccount']=!![]);_0xbdf240[_0x2f532f('0x2237')]=_0x53af26,_0xbdf240[_0x2f532f('0xa57')]=_0x5b2e2d,_0xbdf240['deleteZendeskAccount']=_0x457219,_0xbdf240[_0x2f532f('0x11ae')]=_0x328ab2,_0xbdf240[_0x2f532f('0x18e2')]=_0x15e893;function _0x53af26(){const _0x5cb736=_0x2f532f;_0xbdf240['errors']=[],_0x2adff5[_0x5cb736('0xd6f')][_0x5cb736('0x1195')](_0xbdf240[_0x5cb736('0x2389')])[_0x5cb736('0x1964')][_0x5cb736('0x173b')](function(_0x2ecbb7){const _0x2a596e=_0x5cb736;_0xbdf240[_0x2a596e('0x24b8')]['unshift'](_0x2ecbb7['toJSON']()),_0xdfb777[_0x2a596e('0xdfe')]({'title':_0x2a596e('0x3e0'),'msg':_0xbdf240[_0x2a596e('0x2389')]['name']?_0xbdf240[_0x2a596e('0x2389')]['name']+_0x2a596e('0x209a'):''}),_0x15e893(_0x2ecbb7);})[_0x5cb736('0x103c')](function(_0x1614da){const _0x2e24f7=_0x5cb736;if(_0x1614da['data']&&_0x1614da[_0x2e24f7('0x1e07')]['errors']&&_0x1614da[_0x2e24f7('0x1e07')][_0x2e24f7('0x1d4a')][_0x2e24f7('0x543')]){_0xbdf240[_0x2e24f7('0x1d4a')]=_0x1614da[_0x2e24f7('0x1e07')][_0x2e24f7('0x1d4a')]||[{'message':_0x1614da[_0x2e24f7('0x1b75')](),'type':'api.intZendeskAccount.save'}];for(let _0x57c578=0x0;_0x57c578<_0x1614da[_0x2e24f7('0x1e07')][_0x2e24f7('0x1d4a')][_0x2e24f7('0x543')];_0x57c578+=0x1){_0xdfb777[_0x2e24f7('0x15aa')]({'title':_0x1614da[_0x2e24f7('0x1e07')][_0x2e24f7('0x1d4a')][_0x57c578][_0x2e24f7('0x1810')],'msg':_0x1614da[_0x2e24f7('0x1e07')]['errors'][_0x57c578]['message']});}}else _0xdfb777[_0x2e24f7('0x15aa')]({'title':_0x1614da[_0x2e24f7('0x276f')]?_0x2e24f7('0x137')+_0x1614da[_0x2e24f7('0x276f')]+'\x20-\x20'+_0x1614da[_0x2e24f7('0x2696')]:'api.intZendeskAccount.save','msg':_0x1614da[_0x2e24f7('0x1e07')]?JSON['stringify'](_0x1614da[_0x2e24f7('0x1e07')][_0x2e24f7('0x67f')]):_0x1614da['toString']()});});}function _0x5b2e2d(){const _0x504310=_0x2f532f;_0xbdf240[_0x504310('0x1d4a')]=[],_0x2adff5['intZendeskAccount']['update']({'id':_0xbdf240['zendeskAccount']['id']},_0xbdf240['zendeskAccount'])[_0x504310('0x1964')][_0x504310('0x173b')](function(_0x3fa412){const _0x1a23a0=_0x504310,_0x5887e5=_0x3c8d8a()[_0x1a23a0('0x18ab')](_0xbdf240['zendeskAccounts'],{'id':_0x3fa412['id']});_0x5887e5&&_0x3c8d8a()[_0x1a23a0('0x9ef')](_0x5887e5,_0x3c8d8a()['pick'](_0x3fa412[_0x1a23a0('0xf1f')](),_0x3c8d8a()[_0x1a23a0('0x1d3e')](_0x5887e5))),_0xdfb777[_0x1a23a0('0xdfe')]({'title':'ZendeskAccount\x20properly\x20saved!','msg':_0xbdf240[_0x1a23a0('0x2389')]['name']?_0xbdf240['zendeskAccount']['name']+'\x20has\x20been\x20saved!':''}),_0x15e893(_0x3fa412);})[_0x504310('0x103c')](function(_0x226264){const _0x2ae6c1=_0x504310;if(_0x226264['data']&&_0x226264[_0x2ae6c1('0x1e07')][_0x2ae6c1('0x1d4a')]&&_0x226264['data'][_0x2ae6c1('0x1d4a')]['length']){_0xbdf240[_0x2ae6c1('0x1d4a')]=_0x226264[_0x2ae6c1('0x1e07')][_0x2ae6c1('0x1d4a')]||[{'message':_0x226264[_0x2ae6c1('0x1b75')](),'type':_0x2ae6c1('0x267f')}];for(let _0x339021=0x0;_0x339021<_0x226264[_0x2ae6c1('0x1e07')]['errors'][_0x2ae6c1('0x543')];_0x339021++){_0xdfb777['error']({'title':_0x226264[_0x2ae6c1('0x1e07')][_0x2ae6c1('0x1d4a')][_0x339021][_0x2ae6c1('0x1810')],'msg':_0x226264[_0x2ae6c1('0x1e07')]['errors'][_0x339021][_0x2ae6c1('0x67f')]});}}else _0xdfb777[_0x2ae6c1('0x15aa')]({'title':_0x226264[_0x2ae6c1('0x276f')]?'API:'+_0x226264['status']+'\x20-\x20'+_0x226264[_0x2ae6c1('0x2696')]:'api.intZendeskAccount.update','msg':_0x226264['data']?JSON[_0x2ae6c1('0x100b')](_0x226264[_0x2ae6c1('0x1e07')][_0x2ae6c1('0x67f')]):_0x226264[_0x2ae6c1('0x1b75')]()});});}function _0x457219(_0x3dd163){const _0x481dca=_0x2f532f;_0xbdf240[_0x481dca('0x1d4a')]=[];const _0x2faa2c=_0x1efa82[_0x481dca('0x1d02')]()['title']('Are\x20you\x20sure?')['content']('The\x20zendeskAccount\x20will\x20be\x20deleted.')[_0x481dca('0x217')](_0x481dca('0x4d3'))['ok'](_0x481dca('0x2373'))[_0x481dca('0x1e1f')]('Cancel')[_0x481dca('0x21de')](_0x3dd163);_0x1efa82['show'](_0x2faa2c)[_0x481dca('0x173b')](function(){const _0x252402=_0x481dca;_0x2adff5[_0x252402('0xd6f')][_0x252402('0x15e8')]({'id':_0xbdf240[_0x252402('0x2389')]['id']})[_0x252402('0x1964')][_0x252402('0x173b')](function(){const _0x3e6925=_0x252402;_0x3c8d8a()['remove'](_0xbdf240[_0x3e6925('0x24b8')],{'id':_0xbdf240[_0x3e6925('0x2389')]['id']}),_0xdfb777[_0x3e6925('0xdfe')]({'title':_0x3e6925('0x40c'),'msg':(_0xbdf240['zendeskAccount'][_0x3e6925('0x10ad')]||_0x3e6925('0x2389'))+_0x3e6925('0x25d2')}),_0x15e893(_0xbdf240[_0x3e6925('0x2389')]);})[_0x252402('0x103c')](function(_0x4c724d){const _0x4d7a0f=_0x252402;if(_0x4c724d[_0x4d7a0f('0x1e07')]&&_0x4c724d[_0x4d7a0f('0x1e07')][_0x4d7a0f('0x1d4a')]&&_0x4c724d[_0x4d7a0f('0x1e07')][_0x4d7a0f('0x1d4a')][_0x4d7a0f('0x543')]){_0xbdf240['errors']=_0x4c724d['data']['errors']||[{'message':_0x4c724d['toString'](),'type':_0x4d7a0f('0xc8a')}];for(let _0x1f5acf=0x0;_0x1f5acf<_0x4c724d[_0x4d7a0f('0x1e07')]['errors']['length'];_0x1f5acf++){_0xdfb777['error']({'title':_0x4c724d[_0x4d7a0f('0x1e07')][_0x4d7a0f('0x1d4a')][_0x1f5acf][_0x4d7a0f('0x1810')],'msg':_0x4c724d['data']['errors'][_0x1f5acf][_0x4d7a0f('0x67f')]});}}else _0xdfb777[_0x4d7a0f('0x15aa')]({'title':_0x4c724d[_0x4d7a0f('0x276f')]?_0x4d7a0f('0x137')+_0x4c724d[_0x4d7a0f('0x276f')]+_0x4d7a0f('0x160c')+_0x4c724d[_0x4d7a0f('0x2696')]:'api.intZendeskAccount.delete','msg':_0x4c724d['data']?JSON[_0x4d7a0f('0x100b')](_0x4c724d[_0x4d7a0f('0x1e07')]['message']):_0x4c724d[_0x4d7a0f('0x67f')]||_0x4c724d[_0x4d7a0f('0x1b75')]()});});},function(){});}function _0x328ab2(_0x5a1335){return _0x5a1335===null?undefined:new Date(_0x5a1335);}function _0x15e893(_0x4ca5ad){_0x1efa82['hide'](_0x4ca5ad);}}const _0x108d65=_0x40152a;_0x29753c['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0x1dde'),_0x566993('0x1b1f'),_0x566993('0x54'),'account',_0x566993('0x1810'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x29753c(_0x44e9ee,_0x374ee9,_0x3d6f23,_0x3cc5a9,_0x1bf09f,_0x2a4e18,_0x371272,_0x2cb046,_0x5aacf6,_0x50fd31,_0x3fcdc2,_0x1389b4,_0x523d64){const _0x235152=_0x566993,_0x156024=this;_0x156024['currentUser']=_0x1389b4['getCurrentUser'](),_0x156024['errors']=[],_0x156024[_0x235152('0x20d6')]='INTEGRATIONS.EDIT_'+_0x3c8d8a()[_0x235152('0x160d')](_0x50fd31),_0x156024[_0x235152('0x54')]=angular[_0x235152('0x2e3')](_0x2cb046),_0x156024[_0x235152('0x1b1f')]=_0x371272,_0x156024[_0x235152('0x1810')]=_0x50fd31,_0x156024[_0x235152('0x1dc1')]=_0x523d64,_0x156024[_0x235152('0x7')]=![];!_0x156024[_0x235152('0x54')]&&(_0x156024[_0x235152('0x54')]={'type':_0x235152('0x1533')},_0x156024['item'][_0x3c8d8a()[_0x235152('0x587')](_0x50fd31)+'Id']=_0x2a4e18['id'],_0x156024['title']=_0x235152('0x99f')+_0x3c8d8a()['toUpper'](_0x50fd31),_0x156024['newItem']=!![]);_0x156024[_0x235152('0x221f')]=_0x18a000,_0x156024['saveItem']=_0x2507c9,_0x156024['deleteItem']=_0x2fbed9,_0x156024[_0x235152('0x1188')]=_0x128c4a,_0x156024[_0x235152('0x18e2')]=_0x2f6b7c,_0x3fcdc2[_0x235152('0x1b56')][_0x235152('0x1d97')]({'nolimit':!![]})[_0x235152('0x1964')][_0x235152('0x173b')](function(_0x2442b7){const _0xe3960b=_0x235152;return _0x156024[_0xe3960b('0x2715')]=_0x2442b7[_0xe3960b('0x6aa')]?_0x2442b7['rows']:[],_0x3fcdc2[_0xe3960b('0x934')][_0xe3960b('0x2320')]()[_0xe3960b('0x1964')];})[_0x235152('0x173b')](function(_0x3ff5b9){const _0x2e0dae=_0x235152;return _0x156024[_0x2e0dae('0x1fe8')]=_0x3c8d8a()[_0x2e0dae('0x1b31')](_0x3c8d8a()[_0x2e0dae('0x1d3e')](_0x3ff5b9),[_0x2e0dae('0x1964'),'$resolved','createdAt',_0x2e0dae('0xad'),_0x2e0dae('0x24b1')]),_0x156024['voiceAgentReportColumns'][_0x2e0dae('0x18bb')](_0x2e0dae('0x2313')),_0x3fcdc2['voiceDialReport']['describe']()[_0x2e0dae('0x1964')];})['then'](function(_0x324ce6){const _0x3a5377=_0x235152;_0x156024[_0x3a5377('0x20de')]=_0x3c8d8a()[_0x3a5377('0x1b31')](_0x3c8d8a()[_0x3a5377('0x1d3e')](_0x324ce6),['$promise','$resolved',_0x3a5377('0xda8'),_0x3a5377('0xad'),_0x3a5377('0x24b1')]),_0x156024['voiceDialReportColumns'][_0x3a5377('0x18bb')](_0x3a5377('0x2313'));})[_0x235152('0x103c')](function(_0x13c54d){const _0x5aeaea=_0x235152;_0x1bf09f[_0x5aeaea('0x15aa')]({'title':_0x13c54d[_0x5aeaea('0x276f')]?'API:'+_0x13c54d['status']+_0x5aeaea('0x160c')+_0x13c54d[_0x5aeaea('0x2696')]:_0x5aeaea('0xaf3'),'msg':_0x13c54d[_0x5aeaea('0x1e07')]?JSON[_0x5aeaea('0x100b')](_0x13c54d['data']):_0x13c54d[_0x5aeaea('0x1b75')]()});}),_0x3fcdc2[_0x235152('0xd6f')][_0x235152('0x223b')]({'id':_0x5aacf6['id'],'ticketType':_0x2a4e18[_0x235152('0x182')]?_0x2a4e18['ticketType']:undefined})[_0x235152('0x1964')]['then'](function(_0x10c181){const _0x232f48=_0x235152;_0x156024[_0x232f48('0x22ad')]=!![],_0x156024['fields']=_0x10c181[_0x232f48('0x6aa')]?_0x10c181[_0x232f48('0x6aa')]:[],_0x156024['item'][_0x232f48('0x1ee7')]&&(_0x156024['customField']=_0x3c8d8a()[_0x232f48('0x18ab')](_0x156024[_0x232f48('0x2340')],{'id':_0x156024[_0x232f48('0x54')][_0x232f48('0x1ee7')]}));})[_0x235152('0x103c')](function(_0x14569a){const _0x3d50ee=_0x235152;_0x156024[_0x3d50ee('0x22ad')]=![],console[_0x3d50ee('0x15aa')](_0x14569a);});function _0x18a000(){const _0x95ccf=_0x235152;_0x156024[_0x95ccf('0x1d4a')]=[],_0x156024['customField']&&(_0x156024[_0x95ccf('0x54')][_0x95ccf('0x1ee7')]=_0x156024[_0x95ccf('0x894')]['id'],_0x156024['item'][_0x95ccf('0x194d')]=_0x156024[_0x95ccf('0x894')]['name'],_0x156024[_0x95ccf('0x54')][_0x95ccf('0x894')]=_0x156024[_0x95ccf('0x894')]['custom']),_0x3fcdc2[_0x95ccf('0xdc6')]['save'](_0x156024[_0x95ccf('0x54')])[_0x95ccf('0x1964')]['then'](function(_0xa41697){const _0x179209=_0x95ccf;_0x156024['items'][_0x179209('0x1377')](_0xa41697),_0x1bf09f[_0x179209('0xdfe')]({'title':_0x3c8d8a()[_0x179209('0x587')](_0x50fd31)+_0x179209('0x348'),'msg':_0x3c8d8a()[_0x179209('0x587')](_0x50fd31)+_0x179209('0x209a')}),_0x2f6b7c();})[_0x95ccf('0x103c')](function(_0x1f3780){const _0x328e26=_0x95ccf;console[_0x328e26('0x15aa')](_0x1f3780),_0x156024[_0x328e26('0x1d4a')]=_0x1f3780[_0x328e26('0x1e07')][_0x328e26('0x1d4a')]||[{'message':_0x1f3780[_0x328e26('0x1b75')](),'type':_0x328e26('0x18e4')}];});}function _0x2507c9(){const _0x5d1a33=_0x235152;_0x156024[_0x5d1a33('0x1d4a')]=[],_0x156024[_0x5d1a33('0x894')]&&(_0x156024[_0x5d1a33('0x54')]['idField']=_0x156024[_0x5d1a33('0x894')]['id'],_0x156024['item'][_0x5d1a33('0x194d')]=_0x156024[_0x5d1a33('0x894')][_0x5d1a33('0x10ad')],_0x156024[_0x5d1a33('0x54')][_0x5d1a33('0x894')]=_0x156024[_0x5d1a33('0x894')]['custom']),_0x3fcdc2[_0x5d1a33('0xdc6')][_0x5d1a33('0x1842')]({'id':_0x156024[_0x5d1a33('0x54')]['id']},_0x156024[_0x5d1a33('0x54')])['$promise'][_0x5d1a33('0x173b')](function(_0x314fd8){const _0x2832a6=_0x5d1a33,_0x12297a=_0x3c8d8a()['find'](_0x156024[_0x2832a6('0x1b1f')],{'id':_0x314fd8['id']});_0x12297a&&_0x3c8d8a()['merge'](_0x12297a,_0x314fd8),_0x1bf09f['success']({'title':_0x3c8d8a()[_0x2832a6('0x587')](_0x50fd31)+_0x2832a6('0x10e9'),'msg':_0x3c8d8a()['capitalize'](_0x50fd31)+'\x20has\x20been\x20saved!'}),_0x2f6b7c();})[_0x5d1a33('0x103c')](function(_0x3bea11){const _0x4b9a47=_0x5d1a33;console[_0x4b9a47('0x15aa')](_0x3bea11),_0x156024[_0x4b9a47('0x1d4a')]=_0x3bea11[_0x4b9a47('0x1e07')]['errors']||[{'message':_0x3bea11[_0x4b9a47('0x1b75')](),'type':_0x4b9a47('0x1c43')}];});}function _0x2fbed9(_0x3fbf75){const _0x172d19=_0x235152;_0x156024[_0x172d19('0x1d4a')]=[];const _0x3ee46f=_0x3cc5a9[_0x172d19('0x1d02')]()['title']('Are\x20you\x20sure?')[_0x172d19('0x732')](_0x172d19('0x1aa5')+_0x50fd31+_0x172d19('0xd23'))[_0x172d19('0x217')](_0x172d19('0x133e')+_0x3c8d8a()[_0x172d19('0x587')](_0x50fd31))['ok']('Delete')[_0x172d19('0x1e1f')](_0x172d19('0x1d4e'))[_0x172d19('0x21de')](_0x3fbf75);_0x3cc5a9[_0x172d19('0x1cb7')](_0x3ee46f)[_0x172d19('0x173b')](function(){const _0x4d5545=_0x172d19;_0x3fcdc2[_0x4d5545('0xdc6')]['delete']({'id':_0x156024['item']['id']})[_0x4d5545('0x1964')][_0x4d5545('0x173b')](function(){const _0x4f8f47=_0x4d5545;_0x3c8d8a()[_0x4f8f47('0x1a8b')](_0x156024[_0x4f8f47('0x1b1f')],{'id':_0x156024['item']['id']}),_0x1bf09f[_0x4f8f47('0xdfe')]({'title':_0x3c8d8a()['capitalize'](_0x50fd31)+_0x4f8f47('0xb5'),'msg':_0x3c8d8a()[_0x4f8f47('0x587')](_0x50fd31)+_0x4f8f47('0x25d2')}),_0x2f6b7c();})[_0x4d5545('0x103c')](function(_0x40363c){const _0x2b8109=_0x4d5545;console[_0x2b8109('0x15aa')](_0x40363c),_0x156024[_0x2b8109('0x1d4a')]=_0x40363c['data'][_0x2b8109('0x1d4a')]||[{'message':_0x40363c['toString'](),'type':'api.item.delete'}];});},function(){});}function _0x128c4a(){const _0x3110cf=_0x235152;return _0x156024[_0x3110cf('0x54')][_0x3110cf('0x195d')]!==undefined?_0x156024['item']['variableName']:_0x3110cf('0x1423');}function _0x2f6b7c(){_0x3cc5a9['hide']();}}const _0x19cf57=_0x29753c;_0xd8fc31[_0x566993('0x17bb')]=['$state',_0x566993('0x19df'),'$mdDialog','$document',_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x2389'),_0x566993('0x170e')];function _0xd8fc31(_0x54c67c,_0x3b3e52,_0x3ce370,_0x31aad1,_0xd16702,_0x36ce19,_0x4ae967,_0x334b28,_0x367b65,_0x349faf,_0x498c00,_0x55001b){const _0x3f59af=_0x566993,_0x3fdfd5=this;_0x3fdfd5['currentUser']=_0x349faf[_0x3f59af('0x14d4')](),_0x3fdfd5[_0x3f59af('0x1a29')]=_0x36ce19,_0x3fdfd5['setting']=_0x4ae967,_0x3fdfd5[_0x3f59af('0x644')]=_0x3fdfd5[_0x3f59af('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3fdfd5[_0x3f59af('0x614')]=_0x3b3e52['protocol']()+_0x3f59af('0x122b')+_0x3b3e52[_0x3f59af('0x4d1')](),_0x3fdfd5[_0x3f59af('0x2389')]=_0x498c00||_0x54c67c[_0x3f59af('0x197a')][_0x3f59af('0x2389')]||{},_0x3fdfd5[_0x3f59af('0x170e')]=_0x55001b&&_0x55001b['count']==0x1?_0x55001b[_0x3f59af('0x6aa')][0x0]:null,_0x3fdfd5[_0x3f59af('0x1dc1')]=_0x349faf[_0x3f59af('0xde6')](_0x3fdfd5[_0x3f59af('0x170e')]?_0x3fdfd5[_0x3f59af('0x170e')][_0x3f59af('0x1dc1')]:null),_0x3fdfd5[_0x3f59af('0xb0')]={},_0x3fdfd5[_0x3f59af('0xd5f')]=_0x54c67c['params'][_0x3f59af('0x1e66')]||0x0,_0x3fdfd5[_0x3f59af('0x5a4')]=_0x367b65[_0x3f59af('0x2787')],_0x3fdfd5['gotoZendeskAccounts']=_0x4f321a,_0x3fdfd5['saveZendeskAccount']=_0x803765;function _0x4f321a(){const _0x48cc80=_0x3f59af;_0x54c67c['go']('app.integrations.zendeskAccounts',{},{'reload':_0x48cc80('0xfeb')});}function _0x803765(){const _0x5d38c4=_0x3f59af;_0x334b28['intZendeskAccount'][_0x5d38c4('0x1842')]({'id':_0x3fdfd5[_0x5d38c4('0x2389')]['id']},_0x3fdfd5[_0x5d38c4('0x2389')])[_0x5d38c4('0x1964')][_0x5d38c4('0x173b')](function(){const _0x298044=_0x5d38c4;_0x367b65['success']({'title':_0x298044('0x2485'),'msg':_0x3fdfd5[_0x298044('0x2389')][_0x298044('0x10ad')]?_0x3fdfd5[_0x298044('0x2389')][_0x298044('0x10ad')]+_0x298044('0x1fd6'):''});})[_0x5d38c4('0x103c')](function(_0x3bbfc8){const _0x1f32d8=_0x5d38c4;_0x367b65[_0x1f32d8('0x15aa')]({'title':_0x3bbfc8[_0x1f32d8('0x276f')]?_0x1f32d8('0x137')+_0x3bbfc8[_0x1f32d8('0x276f')]+_0x1f32d8('0x160c')+_0x3bbfc8[_0x1f32d8('0x2696')]:'SYSTEM:GETintZendeskAccount','msg':_0x3bbfc8['data']?JSON[_0x1f32d8('0x100b')](_0x3bbfc8[_0x1f32d8('0x1e07')]):_0x3bbfc8['toString']()});});}}const _0x47dec9=_0xd8fc31,_0x528d0=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog.html',_0x24d8f7=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html/dialog.html';_0x23b41f['$inject']=[_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0xbd4'),_0x566993('0x1558'),'Auth'];function _0x23b41f(_0x313e03,_0x33562f,_0x213e8a,_0x4a5adb,_0xc6d3e2){const _0x190294=_0x566993,_0x53f745=this;_0x53f745[_0x190294('0x155f')]=_0xc6d3e2[_0x190294('0x14d4')](),_0x53f745[_0x190294('0x2389')]={},_0x53f745[_0x190294('0x1096')]={},_0x53f745[_0x190294('0xf6b')]=[],_0x53f745[_0x190294('0xb65')]=-0x1,_0x53f745[_0x190294('0x1dc1')],_0x53f745[_0x190294('0xb9c')]=_0x3cdd74,_0x53f745[_0x190294('0x2001')]=_0x15fdb3,_0x53f745[_0x190294('0x1ef7')]=_0x4f1df4,_0x53f745[_0x190294('0x239a')]=_0x51eea5,_0x53f745[_0x190294('0x1840')]=[],_0x53f745['selectTagsChanged']=_0x3854c2,_0x213e8a[_0x190294('0x23b4')][_0x190294('0x1d97')]({'nolimit':!![],'sort':_0x190294('0x10ad')})[_0x190294('0x1964')][_0x190294('0x173b')](function(_0x3ff7b4){const _0x331179=_0x190294;_0x53f745[_0x331179('0x22ac')]=_0x3ff7b4[_0x331179('0x6aa')]?_0x3ff7b4[_0x331179('0x6aa')]:[];})['catch'](function(_0x2ed38c){const _0x2d088d=_0x190294;_0x4a5adb['error']({'title':_0x2ed38c[_0x2d088d('0x276f')]?_0x2d088d('0x137')+_0x2ed38c[_0x2d088d('0x276f')]+_0x2d088d('0x160c')+_0x2ed38c[_0x2d088d('0x2696')]:_0x2d088d('0xa41'),'msg':_0x2ed38c['data']?JSON[_0x2d088d('0x100b')](_0x2ed38c[_0x2d088d('0x1e07')]):_0x2ed38c[_0x2d088d('0x1b75')]()});});function _0x3854c2(){const _0x1ad416=_0x190294;_0x213e8a[_0x1ad416('0x27f2')][_0x1ad416('0x15da')]({'id':_0x53f745['zendeskConfiguration']['id'],'ids':_0x53f745['selectedTags']})[_0x1ad416('0x1964')][_0x1ad416('0x173b')](function(){const _0x112460=_0x1ad416;_0x4a5adb[_0x112460('0xdfe')]({'title':_0x112460('0x1fec'),'msg':'Tags\x20has\x20been\x20set!'});})[_0x1ad416('0x103c')](function(_0x2402fa){const _0x49c063=_0x1ad416;_0x4a5adb[_0x49c063('0x15aa')]({'title':_0x2402fa[_0x49c063('0x276f')]?_0x49c063('0x137')+_0x2402fa[_0x49c063('0x276f')]+_0x49c063('0x160c')+_0x2402fa[_0x49c063('0x2696')]:_0x49c063('0x1528'),'msg':_0x2402fa[_0x49c063('0x1e07')]?JSON[_0x49c063('0x100b')](_0x2402fa[_0x49c063('0x1e07')]):_0x2402fa[_0x49c063('0x1b75')]()});});}function _0x3cdd74(_0x37b1ba,_0x208819){const _0x301185=_0x190294;_0x53f745['zendeskAccount']=_0x37b1ba,_0x53f745[_0x301185('0x1dc1')]=typeof _0x208819!=='undefined'?_0x208819:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x213e8a[_0x301185('0xd6f')][_0x301185('0x1f25')]({'id':_0x53f745[_0x301185('0x2389')]['id'],'sort':_0x301185('0x1769')})[_0x301185('0x1964')][_0x301185('0x173b')](function(_0x2fcac7){const _0x410b09=_0x301185;return _0x53f745['zendeskConfigurations']=_0x2fcac7['rows']?_0x2fcac7['rows']:[],_0x53f745[_0x410b09('0xf6b')][_0x410b09('0x543')]&&_0x53f745[_0x410b09('0x2001')](0x0),_0x213e8a[_0x410b09('0x1b56')][_0x410b09('0x1d97')]({'nolimit':!![],'sort':'name'})[_0x410b09('0x1964')];})['then'](function(_0x20ed2e){const _0x5e5399=_0x301185;_0x53f745['variables']=_0x20ed2e[_0x5e5399('0x6aa')]?_0x20ed2e[_0x5e5399('0x6aa')]:[],_0x53f745[_0x5e5399('0x17f8')]=_0x3c8d8a()[_0x5e5399('0x128')](_0x53f745[_0x5e5399('0x2715')],'id');})['catch'](function(_0x275702){const _0x221a87=_0x301185;_0x4a5adb['error']({'title':_0x275702[_0x221a87('0x276f')]?_0x221a87('0x137')+_0x275702[_0x221a87('0x276f')]+'\x20-\x20'+_0x275702['statusText']:'SYSTEM:GETCONFIGURATION','msg':_0x275702[_0x221a87('0x1e07')]?JSON['stringify'](_0x275702[_0x221a87('0x1e07')]):_0x275702[_0x221a87('0x1b75')]()});});}function _0x15fdb3(_0x3e4107){const _0x120d42=_0x190294;_0x53f745['zendeskConfiguration']=_0x53f745[_0x120d42('0xf6b')][_0x3e4107],_0x53f745[_0x120d42('0xb65')]=_0x3e4107,_0x213e8a[_0x120d42('0x27f2')][_0x120d42('0x717')]({'id':_0x53f745[_0x120d42('0x1096')]['id']})['$promise'][_0x120d42('0x173b')](function(_0x1487da){const _0x6e5a5c=_0x120d42;return _0x53f745[_0x6e5a5c('0x1b35')]=_0x1487da['rows']?_0x1487da[_0x6e5a5c('0x6aa')]:[],_0x213e8a[_0x6e5a5c('0x27f2')][_0x6e5a5c('0xb28')]({'id':_0x53f745['zendeskConfiguration']['id']})['$promise'];})[_0x120d42('0x173b')](function(_0x371372){const _0x5dd30d=_0x120d42;return _0x53f745[_0x5dd30d('0xb60')]=_0x371372[_0x5dd30d('0x6aa')]?_0x371372[_0x5dd30d('0x6aa')]:[],_0x213e8a[_0x5dd30d('0x27f2')][_0x5dd30d('0x223b')]({'id':_0x53f745[_0x5dd30d('0x1096')]['id']})[_0x5dd30d('0x1964')];})[_0x120d42('0x173b')](function(_0x392f2b){const _0x44c950=_0x120d42;_0x53f745['fields']=_0x392f2b[_0x44c950('0x6aa')]?_0x392f2b[_0x44c950('0x6aa')]:[];})[_0x120d42('0x103c')](function(_0x3494c3){const _0x4c29d9=_0x120d42;_0x4a5adb[_0x4c29d9('0x15aa')]({'title':_0x3494c3['status']?_0x4c29d9('0x137')+_0x3494c3['status']+_0x4c29d9('0x160c')+_0x3494c3[_0x4c29d9('0x2696')]:_0x4c29d9('0x1d19'),'msg':_0x3494c3['data']?JSON['stringify'](_0x3494c3['data']):_0x3494c3['toString']()});}),_0x213e8a[_0x120d42('0x27f2')][_0x120d42('0x1a74')]({'id':_0x53f745[_0x120d42('0x1096')]['id']})[_0x120d42('0x1964')][_0x120d42('0x173b')](function(_0x127687){const _0x3c11b3=_0x120d42;_0x53f745[_0x3c11b3('0x1840')]=_0x127687[_0x3c11b3('0x6aa')]?_0x3c8d8a()['map'](_0x127687['rows'],'id'):[];})['catch'](function(_0x3529c2){const _0x141eff=_0x120d42;_0x4a5adb[_0x141eff('0x15aa')]({'title':_0x3529c2['status']?_0x141eff('0x137')+_0x3529c2[_0x141eff('0x276f')]+_0x141eff('0x160c')+_0x3529c2[_0x141eff('0x2696')]:_0x141eff('0xa41'),'msg':_0x3529c2[_0x141eff('0x1e07')]?JSON['stringify'](_0x3529c2[_0x141eff('0x1e07')]):_0x3529c2[_0x141eff('0x1b75')]()});});}function _0x4f1df4(_0x563287,_0x55f030){const _0x5706d8=_0x190294;_0x313e03['show']({'controller':_0x5706d8('0x13f5'),'controllerAs':'vm','templateUrl':_0x528d0,'parent':angular[_0x5706d8('0xb6d')](_0x33562f['body']),'targetEvent':_0x563287,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x55f030,'zendeskConfigurations':_0x53f745[_0x5706d8('0xf6b')],'license':null,'setting':null,'crudPermissions':_0x53f745[_0x5706d8('0x1dc1')]}})[_0x5706d8('0xf25')](function(){const _0x16f18b=_0x5706d8;_0x53f745[_0x16f18b('0x2001')](0x0);});}function _0x51eea5(_0x120dd0,_0x3362f0){const _0x4447a6=_0x190294,_0x3154ff=_0x313e03[_0x4447a6('0x1d02')]()[_0x4447a6('0x20d6')](_0x4447a6('0x250e'))[_0x4447a6('0xf8b')](_0x4447a6('0x15b9')+(_0x3362f0[_0x4447a6('0x10ad')]||_0x4447a6('0x1096'))+''+_0x4447a6('0xd23'))[_0x4447a6('0x217')]('delete\x20zendeskConfiguration')['targetEvent'](_0x120dd0)['ok']('OK')[_0x4447a6('0x1e1f')](_0x4447a6('0x468'));_0x313e03['show'](_0x3154ff)[_0x4447a6('0x173b')](function(){const _0x44feac=_0x4447a6;_0x213e8a[_0x44feac('0x27f2')]['delete']({'id':_0x3362f0['id']})[_0x44feac('0x1964')][_0x44feac('0x173b')](function(){const _0x533d3d=_0x44feac;_0x3c8d8a()['remove'](_0x53f745['zendeskConfigurations'],{'id':_0x3362f0['id']}),_0x4a5adb['success']({'title':_0x533d3d('0xf45'),'msg':_0x3362f0[_0x533d3d('0x10ad')]?_0x3362f0[_0x533d3d('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x44feac('0x103c')](function(_0x5c73c4){const _0x37eb9d=_0x44feac;_0x4a5adb[_0x37eb9d('0x15aa')]({'title':_0x5c73c4[_0x37eb9d('0x276f')]?_0x37eb9d('0x137')+_0x5c73c4['status']+_0x37eb9d('0x160c')+_0x5c73c4[_0x37eb9d('0x2696')]:'SYSTEM:DELETECONFIGURATION','msg':_0x5c73c4[_0x37eb9d('0x1e07')]?JSON[_0x37eb9d('0x100b')](_0x5c73c4[_0x37eb9d('0x1e07')]):_0x5c73c4[_0x37eb9d('0x1b75')]()});})[_0x44feac('0xf25')](function(){const _0x51a880=_0x44feac;_0x53f745[_0x51a880('0x2001')](0x0);});},function(){const _0x38b59d=_0x4447a6;console[_0x38b59d('0xe37')](_0x38b59d('0x468'));});}_0x53f745[_0x190294('0x276e')]=[],_0x53f745[_0x190294('0x1317')]=_0x1d5125,_0x53f745[_0x190294('0x156b')]=_0x4c02f3,_0x53f745[_0x190294('0x178c')]=_0x32737f;function _0x1d5125(_0x6f61c1,_0x452fb4){const _0x59ee37=_0x190294;_0x313e03[_0x59ee37('0x1cb7')]({'controller':_0x59ee37('0xcb7'),'controllerAs':'vm','templateUrl':_0x24d8f7,'parent':angular[_0x59ee37('0xb6d')](_0x33562f[_0x59ee37('0x1a5')]),'targetEvent':_0x6f61c1,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x452fb4,'items':_0x53f745['subjects'],'configuration':_0x53f745[_0x59ee37('0x1096')],'account':_0x53f745['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x53f745['crudPermissions']}});}function _0x3286fa(_0x2f5282){const _0x163ea7=_0x190294;_0x213e8a[_0x163ea7('0xdc6')][_0x163ea7('0x15e8')]({'id':_0x2f5282['id']})[_0x163ea7('0x1964')]['then'](function(){const _0x40dd83=_0x163ea7;_0x3c8d8a()[_0x40dd83('0x1a8b')](_0x53f745['subjects'],{'id':_0x2f5282['id']}),_0x4a5adb['success']({'title':_0x40dd83('0xa5e'),'msg':_0x40dd83('0x213e')});})[_0x163ea7('0x103c')](function(_0x43e013){const _0x47c17a=_0x163ea7;_0x4a5adb['error']({'title':_0x43e013[_0x47c17a('0x276f')]?_0x47c17a('0x137')+_0x43e013[_0x47c17a('0x276f')]+_0x47c17a('0x160c')+_0x43e013[_0x47c17a('0x2696')]:_0x47c17a('0x1400'),'msg':_0x43e013['data']?JSON[_0x47c17a('0x100b')](_0x43e013[_0x47c17a('0x1e07')]):_0x43e013['toString']()});});}function _0x4c02f3(_0x129dc1,_0x5b0d52){const _0x5d6b4c=_0x190294,_0x246d3a=_0x313e03[_0x5d6b4c('0x1d02')]()[_0x5d6b4c('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x5d6b4c('0xf8b')](_0x5d6b4c('0x1274')+'\x20will\x20be\x20deleted.')[_0x5d6b4c('0x217')](_0x5d6b4c('0x18b8'))[_0x5d6b4c('0x21de')](_0x129dc1)['ok']('OK')[_0x5d6b4c('0x1e1f')](_0x5d6b4c('0x468'));_0x313e03[_0x5d6b4c('0x1cb7')](_0x246d3a)[_0x5d6b4c('0x173b')](function(){_0x3286fa(_0x5b0d52);},function(){const _0x4f062b=_0x5d6b4c;console['log'](_0x4f062b('0x468'));});}function _0x32737f(_0x34a751){const _0x4b4d8c=_0x190294,_0x1cc9f3=_0x313e03[_0x4b4d8c('0x1d02')]()[_0x4b4d8c('0x20d6')](_0x4b4d8c('0x837'))[_0x4b4d8c('0xf8b')](_0x4b4d8c('0x15b9')+_0x53f745[_0x4b4d8c('0x276e')][_0x4b4d8c('0x543')]+_0x4b4d8c('0xcb4')+'\x20will\x20be\x20deleted.')[_0x4b4d8c('0x217')](_0x4b4d8c('0xe22'))[_0x4b4d8c('0x21de')](_0x34a751)['ok']('OK')[_0x4b4d8c('0x1e1f')](_0x4b4d8c('0x468'));_0x313e03[_0x4b4d8c('0x1cb7')](_0x1cc9f3)[_0x4b4d8c('0x173b')](function(){const _0x486fb7=_0x4b4d8c;_0x53f745['selectedSubjects']['forEach'](function(_0xcaa400){_0x3286fa(_0xcaa400);}),_0x53f745[_0x486fb7('0x276e')]=[];});}_0x53f745[_0x190294('0x10e1')]=[],_0x53f745[_0x190294('0x1720')]=_0x1f4850,_0x53f745['deleteDescriptionConfirm']=_0x460e17,_0x53f745[_0x190294('0x51d')]=_0x2aaac7;function _0x1f4850(_0x5ae05b,_0x2e2870){const _0x346d24=_0x190294;_0x313e03[_0x346d24('0x1cb7')]({'controller':_0x346d24('0xcb7'),'controllerAs':'vm','templateUrl':_0x24d8f7,'parent':angular[_0x346d24('0xb6d')](_0x33562f['body']),'targetEvent':_0x5ae05b,'clickOutsideToClose':!![],'locals':{'type':_0x346d24('0x1c55'),'item':_0x2e2870,'items':_0x53f745[_0x346d24('0xb60')],'configuration':_0x53f745[_0x346d24('0x1096')],'account':_0x53f745[_0x346d24('0x2389')],'license':null,'setting':null,'crudPermissions':_0x53f745[_0x346d24('0x1dc1')]}});}function _0x13cc0d(_0x2759ea){const _0x272bc0=_0x190294;_0x213e8a[_0x272bc0('0xdc6')]['delete']({'id':_0x2759ea['id']})[_0x272bc0('0x1964')][_0x272bc0('0x173b')](function(){const _0x5d8cff=_0x272bc0;_0x3c8d8a()[_0x5d8cff('0x1a8b')](_0x53f745[_0x5d8cff('0xb60')],{'id':_0x2759ea['id']}),_0x4a5adb[_0x5d8cff('0xdfe')]({'title':_0x5d8cff('0x1c35'),'msg':'Description\x20has\x20been\x20deleted!'});})[_0x272bc0('0x103c')](function(_0x51374d){const _0x1890e3=_0x272bc0;_0x4a5adb[_0x1890e3('0x15aa')]({'title':_0x51374d['status']?'API:'+_0x51374d[_0x1890e3('0x276f')]+_0x1890e3('0x160c')+_0x51374d[_0x1890e3('0x2696')]:_0x1890e3('0x1400'),'msg':_0x51374d[_0x1890e3('0x1e07')]?JSON['stringify'](_0x51374d[_0x1890e3('0x1e07')]):_0x51374d['toString']()});});}function _0x460e17(_0x1598a0,_0x4329de){const _0x5d95a3=_0x190294,_0x9d4c65=_0x313e03[_0x5d95a3('0x1d02')]()[_0x5d95a3('0x20d6')](_0x5d95a3('0x11d7'))['htmlContent'](_0x5d95a3('0x1825')+_0x5d95a3('0xd23'))[_0x5d95a3('0x217')](_0x5d95a3('0xfff'))['targetEvent'](_0x1598a0)['ok']('OK')[_0x5d95a3('0x1e1f')](_0x5d95a3('0x468'));_0x313e03[_0x5d95a3('0x1cb7')](_0x9d4c65)[_0x5d95a3('0x173b')](function(){_0x13cc0d(_0x4329de);},function(){const _0x34efa9=_0x5d95a3;console[_0x34efa9('0xe37')](_0x34efa9('0x468'));});}function _0x2aaac7(_0x200edc){const _0xf6ab8a=_0x190294,_0x5c4098=_0x313e03[_0xf6ab8a('0x1d02')]()['title'](_0xf6ab8a('0x1807'))[_0xf6ab8a('0xf8b')](_0xf6ab8a('0x15b9')+_0x53f745[_0xf6ab8a('0x10e1')][_0xf6ab8a('0x543')]+_0xf6ab8a('0xcb4')+_0xf6ab8a('0xd23'))[_0xf6ab8a('0x217')](_0xf6ab8a('0x11fd'))[_0xf6ab8a('0x21de')](_0x200edc)['ok']('OK')['cancel'](_0xf6ab8a('0x468'));_0x313e03['show'](_0x5c4098)[_0xf6ab8a('0x173b')](function(){const _0x340b78=_0xf6ab8a;_0x53f745[_0x340b78('0x10e1')][_0x340b78('0xa6a')](function(_0x273316){_0x13cc0d(_0x273316);}),_0x53f745[_0x340b78('0x10e1')]=[];});}_0x53f745['selectedFields']=[],_0x53f745[_0x190294('0xbb7')]=_0x403627,_0x53f745[_0x190294('0x218b')]=_0x1c3ea3,_0x53f745[_0x190294('0x252f')]=_0x343c40;function _0x403627(_0x43b5d7,_0xb98e4b){const _0x575e86=_0x190294;_0x313e03['show']({'controller':_0x575e86('0xcb7'),'controllerAs':'vm','templateUrl':_0x24d8f7,'parent':angular[_0x575e86('0xb6d')](_0x33562f[_0x575e86('0x1a5')]),'targetEvent':_0x43b5d7,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0xb98e4b,'items':_0x53f745[_0x575e86('0x2340')],'configuration':_0x53f745[_0x575e86('0x1096')],'account':_0x53f745[_0x575e86('0x2389')],'license':null,'setting':null,'crudPermissions':_0x53f745[_0x575e86('0x1dc1')]}});}function _0x54554b(_0x39fab1){const _0x2fe900=_0x190294;_0x213e8a[_0x2fe900('0xdc6')]['delete']({'id':_0x39fab1['id']})['$promise'][_0x2fe900('0x173b')](function(){const _0x1630ff=_0x2fe900;_0x3c8d8a()[_0x1630ff('0x1a8b')](_0x53f745[_0x1630ff('0x2340')],{'id':_0x39fab1['id']}),_0x4a5adb[_0x1630ff('0xdfe')]({'title':_0x1630ff('0x2262'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x2fe900('0x103c')](function(_0x4325d7){const _0x58abad=_0x2fe900;_0x4a5adb[_0x58abad('0x15aa')]({'title':_0x4325d7[_0x58abad('0x276f')]?_0x58abad('0x137')+_0x4325d7[_0x58abad('0x276f')]+_0x58abad('0x160c')+_0x4325d7[_0x58abad('0x2696')]:_0x58abad('0x1400'),'msg':_0x4325d7[_0x58abad('0x1e07')]?JSON[_0x58abad('0x100b')](_0x4325d7[_0x58abad('0x1e07')]):_0x4325d7[_0x58abad('0x1b75')]()});});}function _0x1c3ea3(_0x4e8b29,_0xcb4d2f){const _0x23da1e=_0x190294,_0x678e4d=_0x313e03[_0x23da1e('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')['htmlContent'](_0x23da1e('0x1cf')+_0x23da1e('0xd23'))['ariaLabel']('delete\x20field')[_0x23da1e('0x21de')](_0x4e8b29)['ok']('OK')[_0x23da1e('0x1e1f')](_0x23da1e('0x468'));_0x313e03[_0x23da1e('0x1cb7')](_0x678e4d)[_0x23da1e('0x173b')](function(){_0x54554b(_0xcb4d2f);},function(){const _0x16cc5e=_0x23da1e;console[_0x16cc5e('0xe37')](_0x16cc5e('0x468'));});}function _0x343c40(_0xff25a1){const _0x11533f=_0x190294,_0x1c9ba4=_0x313e03[_0x11533f('0x1d02')]()[_0x11533f('0x20d6')](_0x11533f('0x18ba'))[_0x11533f('0xf8b')](_0x11533f('0x15b9')+_0x53f745[_0x11533f('0x86d')][_0x11533f('0x543')]+_0x11533f('0xcb4')+_0x11533f('0xd23'))[_0x11533f('0x217')](_0x11533f('0xbaf'))['targetEvent'](_0xff25a1)['ok']('OK')[_0x11533f('0x1e1f')](_0x11533f('0x468'));_0x313e03[_0x11533f('0x1cb7')](_0x1c9ba4)[_0x11533f('0x173b')](function(){const _0x2a51a0=_0x11533f;_0x53f745[_0x2a51a0('0x86d')][_0x2a51a0('0xa6a')](function(_0x23a509){_0x54554b(_0x23a509);}),_0x53f745[_0x2a51a0('0x86d')]=[];});}}const _0x2a46aa=_0x23b41f;_0x974325['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0xf6b'),'zendeskConfiguration',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x974325(_0x1b55a7,_0x2b5ddc,_0x47ac64,_0x2ae9d6,_0x22ec2d,_0x3784b0,_0x43d1cc,_0x8d393b,_0x94d0a1,_0xf1784e,_0x55be18,_0x124768,_0x109650,_0x276d1a){const _0x33c75b=_0x566993,_0xa218e4=this;_0xa218e4[_0x33c75b('0x155f')]=_0x55be18['getCurrentUser'](),_0xa218e4[_0x33c75b('0x1d4a')]=[],_0xa218e4[_0x33c75b('0x251')]=_0x109650,_0xa218e4['license']=_0x124768,_0xa218e4[_0x33c75b('0x1dc1')]=_0x276d1a,_0xa218e4['hasModulePermissions']={},_0xa218e4[_0x33c75b('0x644')]=_0xa218e4[_0x33c75b('0x251')]&&_0xa218e4['setting'][_0x33c75b('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xa218e4[_0x33c75b('0x20d6')]=_0x33c75b('0x1fbb'),_0xa218e4[_0x33c75b('0x1096')]=angular['copy'](_0x94d0a1),_0xa218e4[_0x33c75b('0xf6b')]=_0x8d393b,_0xa218e4['newZendeskConfiguration']=![];!_0xa218e4[_0x33c75b('0x1096')]&&(_0xa218e4[_0x33c75b('0x1096')]={'channel':'voice','type':'inbound'},_0xa218e4[_0x33c75b('0x20d6')]=_0x33c75b('0x2721'),_0xa218e4[_0x33c75b('0x1cca')]=!![]);_0xa218e4[_0x33c75b('0x134e')]=_0xacf98e,_0xa218e4[_0x33c75b('0x1a12')]=_0xffd1a,_0xa218e4[_0x33c75b('0x239a')]=_0x525c5c,_0xa218e4[_0x33c75b('0x11ae')]=_0x595c96,_0xa218e4['closeDialog']=_0x462b5a;function _0xacf98e(){const _0x3a26ab=_0x33c75b;_0xa218e4[_0x3a26ab('0x1d4a')]=[],_0xf1784e[_0x3a26ab('0xd6f')][_0x3a26ab('0x795')]({'id':_0x2b5ddc[_0x3a26ab('0x197a')]['id']},_0xa218e4[_0x3a26ab('0x1096')])['$promise'][_0x3a26ab('0x173b')](function(_0xa23fa3){const _0x3c3002=_0x3a26ab;_0xa218e4['zendeskConfigurations'][_0x3c3002('0x1377')](_0xa23fa3[_0x3c3002('0xf1f')]()),_0x43d1cc[_0x3c3002('0xdfe')]({'title':_0x3c3002('0x333'),'msg':_0xa218e4[_0x3c3002('0x1096')]['name']?_0xa218e4['zendeskConfiguration'][_0x3c3002('0x10ad')]+_0x3c3002('0x209a'):''}),_0x462b5a(_0xa23fa3);})[_0x3a26ab('0x103c')](function(_0x407814){const _0x44a656=_0x3a26ab;if(_0x407814[_0x44a656('0x1e07')]&&_0x407814[_0x44a656('0x1e07')][_0x44a656('0x1d4a')]&&_0x407814[_0x44a656('0x1e07')][_0x44a656('0x1d4a')][_0x44a656('0x543')]){_0xa218e4['errors']=_0x407814['data'][_0x44a656('0x1d4a')]||[{'message':_0x407814[_0x44a656('0x1b75')](),'type':_0x44a656('0x22ca')}];for(let _0x3b5a5c=0x0;_0x3b5a5c<_0x407814['data'][_0x44a656('0x1d4a')]['length'];_0x3b5a5c+=0x1){_0x43d1cc[_0x44a656('0x15aa')]({'title':_0x407814[_0x44a656('0x1e07')][_0x44a656('0x1d4a')][_0x3b5a5c][_0x44a656('0x1810')],'msg':_0x407814[_0x44a656('0x1e07')][_0x44a656('0x1d4a')][_0x3b5a5c][_0x44a656('0x67f')]});}}else _0x43d1cc[_0x44a656('0x15aa')]({'title':_0x407814['status']?_0x44a656('0x137')+_0x407814['status']+_0x44a656('0x160c')+_0x407814[_0x44a656('0x2696')]:'api.intZendeskConfiguration.save','msg':_0x407814['data']?JSON[_0x44a656('0x100b')](_0x407814[_0x44a656('0x1e07')][_0x44a656('0x67f')]):_0x407814['toString']()});});}function _0xffd1a(){const _0x19b42c=_0x33c75b;_0xa218e4[_0x19b42c('0x1d4a')]=[],_0xf1784e['intZendeskConfiguration'][_0x19b42c('0x1842')]({'id':_0xa218e4[_0x19b42c('0x1096')]['id']},_0xa218e4[_0x19b42c('0x1096')])[_0x19b42c('0x1964')][_0x19b42c('0x173b')](function(_0x3197d9){const _0x4d021f=_0x19b42c,_0x138263=_0x3c8d8a()['find'](_0xa218e4[_0x4d021f('0xf6b')],{'id':_0x3197d9['id']});_0x138263&&_0x3c8d8a()[_0x4d021f('0x9ef')](_0x138263,_0x3c8d8a()['pick'](_0x3197d9[_0x4d021f('0xf1f')](),_0x3c8d8a()['keys'](_0x138263))),_0x43d1cc[_0x4d021f('0xdfe')]({'title':_0x4d021f('0x159e'),'msg':_0xa218e4[_0x4d021f('0x1096')][_0x4d021f('0x10ad')]?_0xa218e4[_0x4d021f('0x1096')]['name']+'\x20has\x20been\x20saved!':''}),_0x462b5a(_0x3197d9);})[_0x19b42c('0x103c')](function(_0x178c4d){const _0x47c311=_0x19b42c;if(_0x178c4d[_0x47c311('0x1e07')]&&_0x178c4d[_0x47c311('0x1e07')][_0x47c311('0x1d4a')]&&_0x178c4d[_0x47c311('0x1e07')][_0x47c311('0x1d4a')][_0x47c311('0x543')]){_0xa218e4[_0x47c311('0x1d4a')]=_0x178c4d[_0x47c311('0x1e07')][_0x47c311('0x1d4a')]||[{'message':_0x178c4d[_0x47c311('0x1b75')](),'type':_0x47c311('0x27de')}];for(let _0x19263a=0x0;_0x19263a<_0x178c4d['data'][_0x47c311('0x1d4a')][_0x47c311('0x543')];_0x19263a++){_0x43d1cc[_0x47c311('0x15aa')]({'title':_0x178c4d['data']['errors'][_0x19263a][_0x47c311('0x1810')],'msg':_0x178c4d[_0x47c311('0x1e07')][_0x47c311('0x1d4a')][_0x19263a]['message']});}}else _0x43d1cc[_0x47c311('0x15aa')]({'title':_0x178c4d['status']?'API:'+_0x178c4d[_0x47c311('0x276f')]+_0x47c311('0x160c')+_0x178c4d['statusText']:_0x47c311('0x27de'),'msg':_0x178c4d[_0x47c311('0x1e07')]?JSON[_0x47c311('0x100b')](_0x178c4d['data'][_0x47c311('0x67f')]):_0x178c4d[_0x47c311('0x1b75')]()});});}function _0x525c5c(_0x5e3e5c){const _0x55cf8a=_0x33c75b;_0xa218e4[_0x55cf8a('0x1d4a')]=[];const _0x56d889=_0x2ae9d6[_0x55cf8a('0x1d02')]()[_0x55cf8a('0x20d6')](_0x55cf8a('0x8ef'))['content'](_0x55cf8a('0x17ed'))[_0x55cf8a('0x217')]('Delete\x20ZendeskConfiguration')['ok'](_0x55cf8a('0x2373'))[_0x55cf8a('0x1e1f')](_0x55cf8a('0x1d4e'))[_0x55cf8a('0x21de')](_0x5e3e5c);_0x2ae9d6['show'](_0x56d889)[_0x55cf8a('0x173b')](function(){const _0x42813f=_0x55cf8a;_0xf1784e['intZendeskConfiguration'][_0x42813f('0x15e8')]({'id':_0xa218e4[_0x42813f('0x1096')]['id']})['$promise'][_0x42813f('0x173b')](function(){const _0x49838b=_0x42813f;_0x3c8d8a()[_0x49838b('0x1a8b')](_0xa218e4[_0x49838b('0xf6b')],{'id':_0xa218e4['zendeskConfiguration']['id']}),_0x43d1cc['success']({'title':'ZendeskConfiguration\x20properly\x20deleted!','msg':(_0xa218e4[_0x49838b('0x1096')][_0x49838b('0x10ad')]||_0x49838b('0x1096'))+_0x49838b('0x25d2')}),_0x462b5a(_0xa218e4[_0x49838b('0x1096')]);})[_0x42813f('0x103c')](function(_0x3bc5e1){const _0x3148c9=_0x42813f;if(_0x3bc5e1[_0x3148c9('0x1e07')]&&_0x3bc5e1[_0x3148c9('0x1e07')][_0x3148c9('0x1d4a')]&&_0x3bc5e1['data']['errors'][_0x3148c9('0x543')]){_0xa218e4[_0x3148c9('0x1d4a')]=_0x3bc5e1['data'][_0x3148c9('0x1d4a')]||[{'message':_0x3bc5e1[_0x3148c9('0x1b75')](),'type':_0x3148c9('0x247e')}];for(let _0x138e7f=0x0;_0x138e7f<_0x3bc5e1[_0x3148c9('0x1e07')][_0x3148c9('0x1d4a')][_0x3148c9('0x543')];_0x138e7f++){_0x43d1cc[_0x3148c9('0x15aa')]({'title':_0x3bc5e1['data']['errors'][_0x138e7f][_0x3148c9('0x1810')],'msg':_0x3bc5e1['data'][_0x3148c9('0x1d4a')][_0x138e7f][_0x3148c9('0x67f')]});}}else _0x43d1cc['error']({'title':_0x3bc5e1[_0x3148c9('0x276f')]?_0x3148c9('0x137')+_0x3bc5e1[_0x3148c9('0x276f')]+_0x3148c9('0x160c')+_0x3bc5e1[_0x3148c9('0x2696')]:'api.intZendeskConfiguration.delete','msg':_0x3bc5e1[_0x3148c9('0x1e07')]?JSON[_0x3148c9('0x100b')](_0x3bc5e1[_0x3148c9('0x1e07')]['message']):_0x3bc5e1[_0x3148c9('0x67f')]||_0x3bc5e1[_0x3148c9('0x1b75')]()});});},function(){});}function _0x595c96(_0x29d9df){return _0x29d9df===null?undefined:new Date(_0x29d9df);}function _0x462b5a(_0xedeb24){const _0x36357f=_0x33c75b;_0x2ae9d6[_0x36357f('0x1cf4')](_0xedeb24);}}const _0x3ec6fb=_0x974325,_0x171d38=_0x21a6a1['p']+'src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog.html';_0x381700['$inject']=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state',_0x566993('0xd24'),_0x566993('0x1fe5'),'$document',_0x566993('0x24b5'),'$translate',_0x566993('0x24b8'),'userProfile',_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x381700(_0x50c61f,_0x4c2fca,_0x4cd6f2,_0x49e71a,_0x41de77,_0x226205,_0x27a1c3,_0x20c8d2,_0x351bb2,_0x34f5a9,_0x376191,_0x1e6b21,_0x5f2022,_0x203b92,_0x3c7803,_0x3b02bc,_0x4dd07c){const _0xe26ac5=_0x566993,_0x2b3188=this;_0x2b3188['license']=_0x3b02bc,_0x2b3188[_0xe26ac5('0x251')]=_0x4dd07c,_0x2b3188[_0xe26ac5('0x155f')]=_0x3c7803[_0xe26ac5('0x14d4')](),_0x2b3188['zendeskAccounts']=_0x351bb2||{'count':0x0,'rows':[]},_0x2b3188[_0xe26ac5('0x257b')]=_0x34f5a9,_0x2b3188['userProfileSection']=_0x376191&&_0x376191[_0xe26ac5('0x1a2f')]==0x1?_0x376191[_0xe26ac5('0x6aa')][0x0]:null,_0x2b3188[_0xe26ac5('0x1dc1')]=_0x3c7803[_0xe26ac5('0xde6')](_0x2b3188[_0xe26ac5('0x170e')]?_0x2b3188[_0xe26ac5('0x170e')][_0xe26ac5('0x1dc1')]:null),_0x2b3188['table']=_0xe26ac5('0x24b8'),_0x2b3188[_0xe26ac5('0x14d6')]='',_0x2b3188[_0xe26ac5('0x2303')]=null,_0x2b3188[_0xe26ac5('0x1189')]=[],_0x2b3188[_0xe26ac5('0xc49')]={'fields':_0xe26ac5('0x39c'),'limit':0xa,'page':0x1},_0x2b3188[_0xe26ac5('0x1f90')]=_0x3c8d8a()[_0xe26ac5('0x128')]([{'option':'Integration_Tab','value':_0xe26ac5('0x685')},{'option':_0xe26ac5('0x1407'),'value':_0xe26ac5('0x2728')}],function(_0x46e330){const _0x14d243=_0xe26ac5;return _0x3c8d8a()[_0x14d243('0x166c')](_0x46e330[_0x14d243('0xa7b')],new RegExp('\x27','g'),'');}),_0x2b3188[_0xe26ac5('0x48')]=_0x3c8d8a()['keyBy']([{'option':_0xe26ac5('0x238b'),'value':_0xe26ac5('0x850')},{'option':_0xe26ac5('0x5a3'),'value':'\x27token\x27'}],function(_0x575219){const _0x221ecf=_0xe26ac5;return _0x3c8d8a()[_0x221ecf('0x166c')](_0x575219[_0x221ecf('0xa7b')],new RegExp('\x27','g'),'');}),_0x2b3188[_0xe26ac5('0x222e')]=_0x193f8a,_0x2b3188['testtestintegrationaccount']=_0x4ae679,_0x2b3188[_0xe26ac5('0x1a20')]=_0x4bd4d5,_0x2b3188[_0xe26ac5('0xdfe')]=_0x17116d,_0x2b3188[_0xe26ac5('0x1f2c')]=_0x2af2fe,_0x2b3188[_0xe26ac5('0x5d7')]=_0x24f936,_0x2b3188[_0xe26ac5('0xe56')]=_0x37c031,_0x2b3188[_0xe26ac5('0x1f2a')]=_0x2ea324,_0x2b3188[_0xe26ac5('0x10b0')]=_0x3221ef,_0x2b3188['deselectZendeskAccounts']=_0x5d0094,_0x2b3188['selectAllZendeskAccounts']=_0x1f8ebf;function _0x193f8a(_0x10a587){const _0x1cb4b8=_0xe26ac5;_0x4cd6f2['go'](_0x1cb4b8('0xeaa'),{'id':_0x10a587['id'],'zendeskAccount':_0x10a587,'crudPermissions':_0x2b3188[_0x1cb4b8('0x1dc1')]});}function _0x4ae679(_0x4350fd){const _0x4e0d9d=_0xe26ac5;return _0x1e6b21[_0x4e0d9d('0xd6f')]['getFields']({'id':_0x4350fd['id'],'test':!![]})[_0x4e0d9d('0x1964')]['then'](function(){const _0x5df24f=_0x4e0d9d;_0x203b92['success']({'title':_0x5df24f('0xfe9'),'msg':_0x5df24f('0x13fe')});})[_0x4e0d9d('0x103c')](function(_0x313089){const _0x489204=_0x4e0d9d;_0x203b92['error']({'title':'ZendeskAccount\x20properly\x20tested','msg':_0x313089[_0x489204('0x1e07')]?_0x313089[_0x489204('0x1e07')][_0x489204('0x67f')]?_0x313089[_0x489204('0x1e07')][_0x489204('0x67f')]:JSON[_0x489204('0x100b')](_0x313089[_0x489204('0x1e07')]):_0x313089[_0x489204('0x1b75')]()});});}function _0x4bd4d5(_0x5c44f9,_0x2767e7){const _0x16969b=_0xe26ac5,_0x162e68=_0x41de77[_0x16969b('0x1d02')]()['title'](_0x16969b('0x5bb')+_0x3c8d8a()[_0x16969b('0x10e')]('zendeskAccount')+'?')[_0x16969b('0xf8b')](''+(_0x5c44f9[_0x16969b('0x10ad')]||_0x16969b('0x2389'))+_0x16969b('0x24be')+_0x16969b('0xd23'))[_0x16969b('0x217')](_0x16969b('0x176'))[_0x16969b('0x21de')](_0x2767e7)['ok']('OK')[_0x16969b('0x1e1f')](_0x16969b('0x468'));_0x41de77['show'](_0x162e68)[_0x16969b('0x173b')](function(){_0x37c031(_0x5c44f9);},function(){const _0x13f289=_0x16969b;console[_0x13f289('0xe37')](_0x13f289('0x468'));});}let _0x1e8147=!![],_0x4ec63d=0x1;_0x50c61f[_0xe26ac5('0x1bdb')](_0xe26ac5('0x157b'),function(_0x122472,_0x366aa3){const _0x6ec520=_0xe26ac5;_0x1e8147?_0x27a1c3(function(){_0x1e8147=![];}):(!_0x366aa3&&(_0x4ec63d=_0x2b3188[_0x6ec520('0xc49')]['page']),_0x122472!==_0x366aa3&&(_0x2b3188[_0x6ec520('0xc49')][_0x6ec520('0x182e')]=0x1),!_0x122472&&(_0x2b3188[_0x6ec520('0xc49')][_0x6ec520('0x182e')]=_0x4ec63d),_0x2b3188[_0x6ec520('0x1f2c')]());});function _0x17116d(_0x541350){const _0x4da380=_0xe26ac5;_0x2b3188[_0x4da380('0x24b8')]=_0x541350||{'count':0x0,'rows':[]};}function _0x2af2fe(){const _0x1aaebf=_0xe26ac5;_0x2b3188[_0x1aaebf('0xc49')][_0x1aaebf('0x17f0')]=(_0x2b3188[_0x1aaebf('0xc49')][_0x1aaebf('0x182e')]-0x1)*_0x2b3188[_0x1aaebf('0xc49')]['limit'],_0x3c7803[_0x1aaebf('0x1b4e')](_0x1aaebf('0x79b'))?_0x2b3188[_0x1aaebf('0x2219')]=_0x1e6b21[_0x1aaebf('0xd6f')][_0x1aaebf('0x1d97')](_0x2b3188[_0x1aaebf('0xc49')],_0x17116d)[_0x1aaebf('0x1964')]:(_0x2b3188[_0x1aaebf('0xc49')]['id']=_0x2b3188[_0x1aaebf('0x257b')]['id'],_0x2b3188[_0x1aaebf('0xc49')][_0x1aaebf('0x17c9')]=_0x1aaebf('0x25fb'),_0x2b3188['promise']=_0x1e6b21['userProfile']['getResources'](_0x2b3188['query'],_0x17116d)[_0x1aaebf('0x1964')]);}function _0x24f936(_0xa71b1b,_0x3acdde){const _0x164fcd=_0xe26ac5;_0x41de77[_0x164fcd('0x1cb7')]({'controller':'CreateOrEditZendeskAccountDialogController','controllerAs':'vm','templateUrl':_0x171d38,'parent':angular[_0x164fcd('0xb6d')](_0x226205[_0x164fcd('0x1a5')]),'targetEvent':_0xa71b1b,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x3acdde,'zendeskAccounts':_0x2b3188[_0x164fcd('0x24b8')][_0x164fcd('0x6aa')],'license':_0x2b3188[_0x164fcd('0x1a29')],'setting':_0x2b3188[_0x164fcd('0x251')],'crudPermissions':_0x2b3188[_0x164fcd('0x1dc1')]}});}function _0x37c031(_0x21d9ff){const _0x3a1324=_0xe26ac5;_0x1e6b21[_0x3a1324('0xd6f')]['delete']({'id':_0x21d9ff['id']})[_0x3a1324('0x1964')][_0x3a1324('0x173b')](function(){const _0x16df12=_0x3a1324;_0x3c8d8a()[_0x16df12('0x1a8b')](_0x2b3188['zendeskAccounts']['rows'],{'id':_0x21d9ff['id']}),_0x2b3188['zendeskAccounts'][_0x16df12('0x1a2f')]-=0x1,!_0x2b3188[_0x16df12('0x24b8')]['rows']['length']&&_0x2b3188['getZendeskAccounts'](),_0x203b92[_0x16df12('0xdfe')]({'title':_0x3c8d8a()[_0x16df12('0x10e')](_0x16df12('0x1788'))+_0x16df12('0x1c5e'),'msg':_0x21d9ff[_0x16df12('0x10ad')]?_0x21d9ff[_0x16df12('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x3a1324('0x103c')](function(_0x5596f1){const _0x9976d=_0x3a1324;if(_0x5596f1['data']&&_0x5596f1[_0x9976d('0x1e07')][_0x9976d('0x1d4a')]&&_0x5596f1['data'][_0x9976d('0x1d4a')][_0x9976d('0x543')]){_0x2b3188[_0x9976d('0x1d4a')]=_0x5596f1['data']['errors']||[{'message':_0x5596f1[_0x9976d('0x1b75')](),'type':_0x9976d('0x1ad5')}];for(let _0x14ee41=0x0;_0x14ee41<_0x5596f1['data'][_0x9976d('0x1d4a')][_0x9976d('0x543')];_0x14ee41++){_0x203b92['error']({'title':_0x5596f1['data']['errors'][_0x14ee41]['type'],'msg':_0x5596f1[_0x9976d('0x1e07')][_0x9976d('0x1d4a')][_0x14ee41][_0x9976d('0x67f')]});}}else _0x203b92[_0x9976d('0x15aa')]({'title':_0x5596f1['status']?_0x9976d('0x137')+_0x5596f1[_0x9976d('0x276f')]+'\x20-\x20'+_0x5596f1[_0x9976d('0x2696')]:_0x9976d('0x1ad5'),'msg':_0x5596f1[_0x9976d('0x1e07')]?JSON['stringify'](_0x5596f1[_0x9976d('0x1e07')][_0x9976d('0x67f')]):_0x5596f1[_0x9976d('0x67f')]||_0x5596f1['toString']()});});}function _0x2ea324(){const _0x38e3e4=_0xe26ac5,_0x322c12=angular[_0x38e3e4('0x2e3')](_0x2b3188['selectedZendeskAccounts']);return _0x2b3188[_0x38e3e4('0x1189')]=[],_0x322c12;}function _0x3221ef(_0x22d6f8){const _0x55435d=_0xe26ac5,_0x38bf1c=_0x41de77[_0x55435d('0x1d02')]()[_0x55435d('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zendeskAccounts?')[_0x55435d('0xf8b')](_0x55435d('0x15b9')+_0x2b3188[_0x55435d('0x1189')]['length']+_0x55435d('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20ZendeskAccounts')['targetEvent'](_0x22d6f8)['ok']('OK')[_0x55435d('0x1e1f')]('CANCEL');_0x41de77[_0x55435d('0x1cb7')](_0x38bf1c)[_0x55435d('0x173b')](function(){const _0x473617=_0x55435d;_0x2b3188['selectedZendeskAccounts'][_0x473617('0xa6a')](function(_0x2abd65){_0x37c031(_0x2abd65);}),_0x2b3188[_0x473617('0x1189')]=[];});}function _0x5d0094(){_0x2b3188['selectedZendeskAccounts']=[];}function _0x1f8ebf(){const _0x323dd0=_0xe26ac5;_0x2b3188[_0x323dd0('0x1189')]=_0x2b3188['zendeskAccounts'][_0x323dd0('0x6aa')];}}const _0x4a8067=_0x381700;_0x315913[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),'$location',_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x21d1'),_0x566993('0x10af'),_0x566993('0xbd4'),_0x566993('0x1600'),'license',_0x566993('0x251'),_0x566993('0x1dc1')];function _0x315913(_0x2a0733,_0x3fc3ed,_0x4f70a7,_0x24ac4f,_0x3ba983,_0x8a1dea,_0x4b86f7,_0x5b9fc0,_0x5d6dd4,_0x3aab83,_0x319f5d,_0xa6982,_0x460db2,_0x391850){const _0x52a524=_0x566993,_0xafc6d7=this;_0xafc6d7[_0x52a524('0x155f')]=_0x319f5d[_0x52a524('0x14d4')](),_0xafc6d7[_0x52a524('0x1d4a')]=[],_0xafc6d7[_0x52a524('0x251')]=_0x460db2,_0xafc6d7['license']=_0xa6982,_0xafc6d7[_0x52a524('0x1dc1')]=_0x391850,_0xafc6d7['hasModulePermissions']={},_0xafc6d7[_0x52a524('0x644')]=_0xafc6d7['setting']&&_0xafc6d7['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xafc6d7['title']='INTEGRATIONS.EDIT_ZOHOACCOUNT',_0xafc6d7[_0x52a524('0x10af')]=angular[_0x52a524('0x2e3')](_0x5d6dd4),_0xafc6d7[_0x52a524('0x21d1')]=_0x5b9fc0,_0xafc6d7[_0x52a524('0x887')]=![];!_0xafc6d7[_0x52a524('0x10af')]&&(_0xafc6d7[_0x52a524('0x10af')]={'host':_0x52a524('0x3e5'),'zone':'EU','serverUrl':_0x4f70a7[_0x52a524('0x375')]()+_0x52a524('0x122b')+_0x4f70a7[_0x52a524('0x4d1')]()+(_0x4f70a7['port']()?':'+_0x4f70a7[_0x52a524('0xe0d')]():'')},_0xafc6d7[_0x52a524('0x20d6')]='INTEGRATIONS.NEW_ZOHOACCOUNT',_0xafc6d7[_0x52a524('0x887')]=!![]);_0xafc6d7[_0x52a524('0xb52')]=_0x33344b,_0xafc6d7['saveZohoAccount']=_0x244504,_0xafc6d7['deleteZohoAccount']=_0x55a16b,_0xafc6d7['getDateFromString']=_0x56f750,_0xafc6d7[_0x52a524('0x18e2')]=_0x958a67;function _0x33344b(){const _0x420262=_0x52a524;_0xafc6d7['errors']=[],_0x3aab83[_0x420262('0x12f2')][_0x420262('0x1195')](_0xafc6d7[_0x420262('0x10af')])[_0x420262('0x1964')][_0x420262('0x173b')](function(_0x1d50e3){const _0x285a2f=_0x420262;_0xafc6d7[_0x285a2f('0x21d1')][_0x285a2f('0x1377')](_0x1d50e3[_0x285a2f('0xf1f')]()),_0x4b86f7['success']({'title':_0x285a2f('0x1e42'),'msg':_0xafc6d7[_0x285a2f('0x10af')][_0x285a2f('0x10ad')]?_0xafc6d7[_0x285a2f('0x10af')][_0x285a2f('0x10ad')]+_0x285a2f('0x209a'):''}),_0x958a67(_0x1d50e3);})['catch'](function(_0x2d1a5e){const _0x8b4566=_0x420262;if(_0x2d1a5e['data']&&_0x2d1a5e[_0x8b4566('0x1e07')][_0x8b4566('0x1d4a')]&&_0x2d1a5e['data'][_0x8b4566('0x1d4a')]['length']){_0xafc6d7[_0x8b4566('0x1d4a')]=_0x2d1a5e[_0x8b4566('0x1e07')]['errors']||[{'message':_0x2d1a5e[_0x8b4566('0x1b75')](),'type':_0x8b4566('0x7fb')}];for(let _0x2bc1ff=0x0;_0x2bc1ff<_0x2d1a5e['data'][_0x8b4566('0x1d4a')]['length'];_0x2bc1ff+=0x1){_0x4b86f7['error']({'title':_0x2d1a5e[_0x8b4566('0x1e07')][_0x8b4566('0x1d4a')][_0x2bc1ff][_0x8b4566('0x1810')],'msg':_0x2d1a5e['data'][_0x8b4566('0x1d4a')][_0x2bc1ff][_0x8b4566('0x67f')]});}}else _0x4b86f7[_0x8b4566('0x15aa')]({'title':_0x2d1a5e[_0x8b4566('0x276f')]?'API:'+_0x2d1a5e[_0x8b4566('0x276f')]+_0x8b4566('0x160c')+_0x2d1a5e['statusText']:'api.intZohoAccount.save','msg':_0x2d1a5e[_0x8b4566('0x1e07')]?JSON[_0x8b4566('0x100b')](_0x2d1a5e[_0x8b4566('0x1e07')]['message']):_0x2d1a5e[_0x8b4566('0x1b75')]()});});}function _0x244504(){const _0x1d5ba2=_0x52a524;_0xafc6d7[_0x1d5ba2('0x1d4a')]=[],_0x3aab83[_0x1d5ba2('0x12f2')][_0x1d5ba2('0x1842')]({'id':_0xafc6d7[_0x1d5ba2('0x10af')]['id']},_0xafc6d7[_0x1d5ba2('0x10af')])[_0x1d5ba2('0x1964')][_0x1d5ba2('0x173b')](function(_0x2c7bbb){const _0x5db848=_0x1d5ba2,_0x93451e=_0x3c8d8a()[_0x5db848('0x18ab')](_0xafc6d7[_0x5db848('0x21d1')],{'id':_0x2c7bbb['id']});_0x93451e&&_0x3c8d8a()[_0x5db848('0x9ef')](_0x93451e,_0x3c8d8a()[_0x5db848('0x2114')](_0x2c7bbb[_0x5db848('0xf1f')](),_0x3c8d8a()[_0x5db848('0x1d3e')](_0x93451e))),_0x4b86f7['success']({'title':_0x5db848('0x12a8'),'msg':_0xafc6d7[_0x5db848('0x10af')]['name']?_0xafc6d7[_0x5db848('0x10af')][_0x5db848('0x10ad')]+_0x5db848('0x2788'):''}),_0x958a67(_0x2c7bbb);})[_0x1d5ba2('0x103c')](function(_0x7f86c9){const _0x1cd060=_0x1d5ba2;if(_0x7f86c9[_0x1cd060('0x1e07')]&&_0x7f86c9['data'][_0x1cd060('0x1d4a')]&&_0x7f86c9['data'][_0x1cd060('0x1d4a')][_0x1cd060('0x543')]){_0xafc6d7[_0x1cd060('0x1d4a')]=_0x7f86c9[_0x1cd060('0x1e07')][_0x1cd060('0x1d4a')]||[{'message':_0x7f86c9[_0x1cd060('0x1b75')](),'type':_0x1cd060('0x6ee')}];for(let _0x160d6e=0x0;_0x160d6e<_0x7f86c9[_0x1cd060('0x1e07')][_0x1cd060('0x1d4a')][_0x1cd060('0x543')];_0x160d6e++){_0x4b86f7[_0x1cd060('0x15aa')]({'title':_0x7f86c9[_0x1cd060('0x1e07')][_0x1cd060('0x1d4a')][_0x160d6e]['type'],'msg':_0x7f86c9[_0x1cd060('0x1e07')][_0x1cd060('0x1d4a')][_0x160d6e][_0x1cd060('0x67f')]});}}else _0x4b86f7['error']({'title':_0x7f86c9[_0x1cd060('0x276f')]?'API:'+_0x7f86c9[_0x1cd060('0x276f')]+_0x1cd060('0x160c')+_0x7f86c9[_0x1cd060('0x2696')]:_0x1cd060('0x6ee'),'msg':_0x7f86c9[_0x1cd060('0x1e07')]?JSON[_0x1cd060('0x100b')](_0x7f86c9['data'][_0x1cd060('0x67f')]):_0x7f86c9[_0x1cd060('0x1b75')]()});});}function _0x55a16b(_0x3dbcf3){const _0x2a8dc9=_0x52a524;_0xafc6d7['errors']=[];const _0x22782c=_0x24ac4f[_0x2a8dc9('0x1d02')]()['title'](_0x2a8dc9('0x8ef'))[_0x2a8dc9('0x732')](_0x2a8dc9('0xfb0'))[_0x2a8dc9('0x217')]('Delete\x20ZohoAccount')['ok']('Delete')[_0x2a8dc9('0x1e1f')](_0x2a8dc9('0x1d4e'))[_0x2a8dc9('0x21de')](_0x3dbcf3);_0x24ac4f[_0x2a8dc9('0x1cb7')](_0x22782c)[_0x2a8dc9('0x173b')](function(){const _0xeec895=_0x2a8dc9;_0x3aab83[_0xeec895('0x12f2')][_0xeec895('0x15e8')]({'id':_0xafc6d7[_0xeec895('0x10af')]['id']})[_0xeec895('0x1964')][_0xeec895('0x173b')](function(){const _0x41fa66=_0xeec895;_0x3c8d8a()[_0x41fa66('0x1a8b')](_0xafc6d7[_0x41fa66('0x21d1')],{'id':_0xafc6d7[_0x41fa66('0x10af')]['id']}),_0x4b86f7[_0x41fa66('0xdfe')]({'title':_0x41fa66('0x140d'),'msg':(_0xafc6d7[_0x41fa66('0x10af')]['name']||_0x41fa66('0x10af'))+'\x20has\x20been\x20deleted!'}),_0x958a67(_0xafc6d7[_0x41fa66('0x10af')]);})[_0xeec895('0x103c')](function(_0x34fbbc){const _0x4209e4=_0xeec895;if(_0x34fbbc['data']&&_0x34fbbc['data'][_0x4209e4('0x1d4a')]&&_0x34fbbc[_0x4209e4('0x1e07')][_0x4209e4('0x1d4a')][_0x4209e4('0x543')]){_0xafc6d7[_0x4209e4('0x1d4a')]=_0x34fbbc[_0x4209e4('0x1e07')]['errors']||[{'message':_0x34fbbc[_0x4209e4('0x1b75')](),'type':_0x4209e4('0x26d')}];for(let _0x2c7d91=0x0;_0x2c7d91<_0x34fbbc[_0x4209e4('0x1e07')]['errors'][_0x4209e4('0x543')];_0x2c7d91++){_0x4b86f7[_0x4209e4('0x15aa')]({'title':_0x34fbbc['data']['errors'][_0x2c7d91][_0x4209e4('0x1810')],'msg':_0x34fbbc[_0x4209e4('0x1e07')][_0x4209e4('0x1d4a')][_0x2c7d91]['message']});}}else _0x4b86f7[_0x4209e4('0x15aa')]({'title':_0x34fbbc[_0x4209e4('0x276f')]?_0x4209e4('0x137')+_0x34fbbc[_0x4209e4('0x276f')]+'\x20-\x20'+_0x34fbbc[_0x4209e4('0x2696')]:_0x4209e4('0x26d'),'msg':_0x34fbbc[_0x4209e4('0x1e07')]?JSON[_0x4209e4('0x100b')](_0x34fbbc[_0x4209e4('0x1e07')][_0x4209e4('0x67f')]):_0x34fbbc['message']||_0x34fbbc[_0x4209e4('0x1b75')]()});});},function(){});}function _0x56f750(_0x3361a2){return _0x3361a2===null?undefined:new Date(_0x3361a2);}function _0x958a67(_0x5ab556){const _0x15a3d1=_0x52a524;_0x24ac4f[_0x15a3d1('0x1cf4')](_0x5ab556);}}const _0x456b65=_0x315913,_0x441b0d=_0x21a6a1['p']+_0x566993('0x3f7'),_0x13c746=_0x21a6a1['p']+_0x566993('0x1483');_0x116066[_0x566993('0x17bb')]=['$mdDialog','$document',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600')];function _0x116066(_0x2c814c,_0x330abf,_0x545c0e,_0x4e574d,_0xb97b6){const _0x32d803=_0x566993,_0x3a93c8=this;_0x3a93c8[_0x32d803('0x155f')]=_0xb97b6['getCurrentUser'](),_0x3a93c8[_0x32d803('0x10af')]={},_0x3a93c8[_0x32d803('0xb49')]={},_0x3a93c8[_0x32d803('0x294')]=[],_0x3a93c8[_0x32d803('0xb8')]=-0x1,_0x3a93c8[_0x32d803('0x1dc1')],_0x3a93c8[_0x32d803('0xb9c')]=_0xe79a59,_0x3a93c8['getZohoConfiguration']=_0x5ac2b3,_0x3a93c8[_0x32d803('0x2811')]=_0x56eaa1,_0x3a93c8[_0x32d803('0x1f7')]=_0x77d5fb,_0x3a93c8[_0x32d803('0x9e3')]=_0x15e4fd;function _0x15e4fd(){const _0xe3fcf2=_0x32d803;return _0x545c0e[_0xe3fcf2('0xa5b')]['update']({'id':_0x3a93c8['zohoConfiguration']['id']},_0x3a93c8[_0xe3fcf2('0xb49')])[_0xe3fcf2('0x1964')][_0xe3fcf2('0x173b')](function(){const _0x521c68=_0xe3fcf2;_0x4e574d[_0x521c68('0xdfe')]({'title':_0x521c68('0x1814'),'msg':_0x521c68('0x1a8e')});})[_0xe3fcf2('0x103c')](function(_0x16b781){const _0x6e6435=_0xe3fcf2;_0x4e574d[_0x6e6435('0x15aa')]({'title':_0x16b781[_0x6e6435('0x276f')]?'API:'+_0x16b781[_0x6e6435('0x276f')]+_0x6e6435('0x160c')+_0x16b781[_0x6e6435('0x2696')]:'SYSTEM:UPDATECONFIGURATIONFIELD','msg':_0x16b781[_0x6e6435('0x1e07')]?JSON[_0x6e6435('0x100b')](_0x16b781['data']):_0x16b781[_0x6e6435('0x1b75')]()});});}function _0xe79a59(_0xb75eac,_0x2a3fe1){const _0x843cf9=_0x32d803;_0x3a93c8[_0x843cf9('0x10af')]=_0xb75eac,_0x3a93c8[_0x843cf9('0x1dc1')]=typeof _0x2a3fe1!==_0x843cf9('0x6e5')?_0x2a3fe1:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x545c0e['intZohoAccount']['getConfigurations']({'id':_0x3a93c8[_0x843cf9('0x10af')]['id'],'sort':_0x843cf9('0x1769')})[_0x843cf9('0x1964')]['then'](function(_0x3319c7){const _0x532587=_0x843cf9;return _0x3a93c8[_0x532587('0x294')]=_0x3319c7[_0x532587('0x6aa')]?_0x3319c7[_0x532587('0x6aa')]:[],_0x3a93c8[_0x532587('0x294')][_0x532587('0x543')]&&_0x3a93c8['getZohoConfiguration'](0x0),_0x545c0e[_0x532587('0x1b56')][_0x532587('0x1d97')]({'nolimit':!![],'sort':_0x532587('0x10ad')})[_0x532587('0x1964')];})[_0x843cf9('0x173b')](function(_0x1b7baa){const _0x42e08e=_0x843cf9;_0x3a93c8['variables']=_0x1b7baa[_0x42e08e('0x6aa')]?_0x1b7baa[_0x42e08e('0x6aa')]:[],_0x3a93c8[_0x42e08e('0x17f8')]=_0x3c8d8a()[_0x42e08e('0x128')](_0x3a93c8['variables'],'id');})['catch'](function(_0xb56442){const _0x4236ca=_0x843cf9;_0x4e574d[_0x4236ca('0x15aa')]({'title':_0xb56442['status']?_0x4236ca('0x137')+_0xb56442[_0x4236ca('0x276f')]+_0x4236ca('0x160c')+_0xb56442[_0x4236ca('0x2696')]:_0x4236ca('0x125a'),'msg':_0xb56442[_0x4236ca('0x1e07')]?JSON['stringify'](_0xb56442[_0x4236ca('0x1e07')]):_0xb56442[_0x4236ca('0x1b75')]()});});}function _0x5ac2b3(_0x4e1d93){const _0x497d3a=_0x32d803;_0x3a93c8[_0x497d3a('0xb49')]=_0x3a93c8[_0x497d3a('0x294')][_0x4e1d93],_0x3a93c8[_0x497d3a('0xb8')]=_0x4e1d93,_0x545c0e[_0x497d3a('0xa5b')][_0x497d3a('0x717')]({'id':_0x3a93c8[_0x497d3a('0xb49')]['id']})[_0x497d3a('0x1964')][_0x497d3a('0x173b')](function(_0x2a4f11){const _0x7bc5f=_0x497d3a;return _0x3a93c8[_0x7bc5f('0x1b35')]=_0x2a4f11['rows']?_0x2a4f11['rows']:[],_0x545c0e['intZohoConfiguration'][_0x7bc5f('0xb28')]({'id':_0x3a93c8[_0x7bc5f('0xb49')]['id']})[_0x7bc5f('0x1964')];})[_0x497d3a('0x173b')](function(_0x45a77f){const _0x2bce94=_0x497d3a;return _0x3a93c8[_0x2bce94('0xb60')]=_0x45a77f[_0x2bce94('0x6aa')]?_0x45a77f['rows']:[],_0x545c0e[_0x2bce94('0xa5b')]['getFields']({'id':_0x3a93c8[_0x2bce94('0xb49')]['id']})[_0x2bce94('0x1964')];})[_0x497d3a('0x173b')](function(_0x5786ef){_0x3a93c8['fields']=_0x5786ef['rows']?_0x5786ef['rows']:[];})[_0x497d3a('0x103c')](function(_0x5072e2){const _0x4d2ac6=_0x497d3a;_0x4e574d[_0x4d2ac6('0x15aa')]({'title':_0x5072e2[_0x4d2ac6('0x276f')]?'API:'+_0x5072e2[_0x4d2ac6('0x276f')]+_0x4d2ac6('0x160c')+_0x5072e2['statusText']:'SYSTEM:GETConfigurations','msg':_0x5072e2[_0x4d2ac6('0x1e07')]?JSON['stringify'](_0x5072e2[_0x4d2ac6('0x1e07')]):_0x5072e2[_0x4d2ac6('0x1b75')]()});});}function _0x56eaa1(_0x32bd07,_0x1a66eb){const _0x5be6ab=_0x32d803;_0x2c814c[_0x5be6ab('0x1cb7')]({'controller':_0x5be6ab('0x4ae'),'controllerAs':'vm','templateUrl':_0x441b0d,'parent':angular['element'](_0x330abf[_0x5be6ab('0x1a5')]),'targetEvent':_0x32bd07,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0x1a66eb,'configurations':_0x3a93c8['configurations'],'license':null,'setting':null,'crudPermissions':_0x3a93c8[_0x5be6ab('0x1dc1')]}})[_0x5be6ab('0xf25')](function(){const _0x592430=_0x5be6ab;_0x3a93c8[_0x592430('0x15fd')](0x0);});}function _0x77d5fb(_0x45a08a,_0x127a1d){const _0x31d7c1=_0x32d803,_0x40eefd=_0x2c814c['confirm']()[_0x31d7c1('0x20d6')](_0x31d7c1('0xed8'))[_0x31d7c1('0xf8b')](_0x31d7c1('0x15b9')+(_0x127a1d[_0x31d7c1('0x10ad')]||_0x31d7c1('0xb49'))+_0x31d7c1('0x24be')+_0x31d7c1('0xd23'))['ariaLabel']('delete\x20zohoConfiguration')[_0x31d7c1('0x21de')](_0x45a08a)['ok']('OK')[_0x31d7c1('0x1e1f')](_0x31d7c1('0x468'));_0x2c814c['show'](_0x40eefd)[_0x31d7c1('0x173b')](function(){const _0x323941=_0x31d7c1;_0x545c0e[_0x323941('0xa5b')][_0x323941('0x15e8')]({'id':_0x127a1d['id']})[_0x323941('0x1964')]['then'](function(){const _0x289066=_0x323941;_0x3c8d8a()[_0x289066('0x1a8b')](_0x3a93c8['configurations'],{'id':_0x127a1d['id']}),_0x4e574d[_0x289066('0xdfe')]({'title':'ZohoConfiguration\x20deleted!','msg':_0x127a1d['name']?_0x127a1d[_0x289066('0x10ad')]+_0x289066('0x25d2'):''});})[_0x323941('0x103c')](function(_0x2ba851){const _0x289861=_0x323941;_0x4e574d['error']({'title':_0x2ba851['status']?'API:'+_0x2ba851['status']+_0x289861('0x160c')+_0x2ba851[_0x289861('0x2696')]:_0x289861('0x1d30'),'msg':_0x2ba851[_0x289861('0x1e07')]?JSON[_0x289861('0x100b')](_0x2ba851[_0x289861('0x1e07')]):_0x2ba851[_0x289861('0x1b75')]()});})[_0x323941('0xf25')](function(){const _0x2c6b0e=_0x323941;_0x3a93c8[_0x2c6b0e('0x15fd')](0x0);});},function(){const _0x7b3a1d=_0x31d7c1;console[_0x7b3a1d('0xe37')](_0x7b3a1d('0x468'));});}_0x3a93c8[_0x32d803('0x276e')]=[],_0x3a93c8[_0x32d803('0x1317')]=_0x48fa39,_0x3a93c8[_0x32d803('0x156b')]=_0x3ac8d6,_0x3a93c8[_0x32d803('0x178c')]=_0x2ba382;function _0x48fa39(_0x496b6e,_0x37d962){const _0x4198fb=_0x32d803;_0x2c814c['show']({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0x13c746,'parent':angular[_0x4198fb('0xb6d')](_0x330abf[_0x4198fb('0x1a5')]),'targetEvent':_0x496b6e,'clickOutsideToClose':!![],'locals':{'type':_0x4198fb('0x11bc'),'item':_0x37d962,'items':_0x3a93c8[_0x4198fb('0x1b35')],'configuration':_0x3a93c8['zohoConfiguration'],'account':_0x3a93c8[_0x4198fb('0x10af')],'license':null,'setting':null,'crudPermissions':_0x3a93c8[_0x4198fb('0x1dc1')]}});}function _0x170459(_0x485754){const _0x4c2f19=_0x32d803;_0x545c0e[_0x4c2f19('0x1729')][_0x4c2f19('0x15e8')]({'id':_0x485754['id']})[_0x4c2f19('0x1964')][_0x4c2f19('0x173b')](function(){const _0x130482=_0x4c2f19;_0x3c8d8a()['remove'](_0x3a93c8[_0x130482('0x1b35')],{'id':_0x485754['id']}),_0x4e574d['success']({'title':_0x130482('0xa5e'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0x4c2f19('0x103c')](function(_0x49e3e4){const _0x1a5625=_0x4c2f19;_0x4e574d[_0x1a5625('0x15aa')]({'title':_0x49e3e4['status']?_0x1a5625('0x137')+_0x49e3e4['status']+'\x20-\x20'+_0x49e3e4[_0x1a5625('0x2696')]:_0x1a5625('0x1400'),'msg':_0x49e3e4[_0x1a5625('0x1e07')]?JSON[_0x1a5625('0x100b')](_0x49e3e4['data']):_0x49e3e4[_0x1a5625('0x1b75')]()});});}function _0x3ac8d6(_0x59bd6f,_0x3759fd){const _0x3847f6=_0x32d803,_0x1a2a5e=_0x2c814c[_0x3847f6('0x1d02')]()[_0x3847f6('0x20d6')](_0x3847f6('0x31c'))[_0x3847f6('0xf8b')]('Subject'+_0x3847f6('0xd23'))[_0x3847f6('0x217')](_0x3847f6('0x18b8'))['targetEvent'](_0x59bd6f)['ok']('OK')['cancel'](_0x3847f6('0x468'));_0x2c814c[_0x3847f6('0x1cb7')](_0x1a2a5e)[_0x3847f6('0x173b')](function(){_0x170459(_0x3759fd);},function(){const _0x514bfc=_0x3847f6;console[_0x514bfc('0xe37')](_0x514bfc('0x468'));});}function _0x2ba382(_0x45c903){const _0x49903a=_0x32d803,_0x2d8c93=_0x2c814c['confirm']()[_0x49903a('0x20d6')](_0x49903a('0x837'))[_0x49903a('0xf8b')](_0x49903a('0x15b9')+_0x3a93c8[_0x49903a('0x276e')][_0x49903a('0x543')]+_0x49903a('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x49903a('0xe22'))[_0x49903a('0x21de')](_0x45c903)['ok']('OK')[_0x49903a('0x1e1f')](_0x49903a('0x468'));_0x2c814c[_0x49903a('0x1cb7')](_0x2d8c93)[_0x49903a('0x173b')](function(){const _0x3bd6b4=_0x49903a;_0x3a93c8[_0x3bd6b4('0x276e')][_0x3bd6b4('0xa6a')](function(_0x106de5){_0x170459(_0x106de5);}),_0x3a93c8[_0x3bd6b4('0x276e')]=[];});}_0x3a93c8[_0x32d803('0x10e1')]=[],_0x3a93c8[_0x32d803('0x1720')]=_0x42eb13,_0x3a93c8[_0x32d803('0x7e4')]=_0x363b1a,_0x3a93c8[_0x32d803('0x51d')]=_0x1dd1f8;function _0x42eb13(_0x6d2a4e,_0x4be336){const _0x4a268e=_0x32d803;_0x2c814c[_0x4a268e('0x1cb7')]({'controller':_0x4a268e('0x4ec'),'controllerAs':'vm','templateUrl':_0x13c746,'parent':angular['element'](_0x330abf[_0x4a268e('0x1a5')]),'targetEvent':_0x6d2a4e,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x4be336,'items':_0x3a93c8[_0x4a268e('0xb60')],'configuration':_0x3a93c8[_0x4a268e('0xb49')],'account':_0x3a93c8[_0x4a268e('0x10af')],'license':null,'setting':null,'crudPermissions':_0x3a93c8[_0x4a268e('0x1dc1')]}});}function _0xb92034(_0x4a0003){const _0x4348b7=_0x32d803;_0x545c0e[_0x4348b7('0x1729')]['delete']({'id':_0x4a0003['id']})['$promise'][_0x4348b7('0x173b')](function(){const _0x5e32bf=_0x4348b7;_0x3c8d8a()[_0x5e32bf('0x1a8b')](_0x3a93c8['descriptions'],{'id':_0x4a0003['id']}),_0x4e574d[_0x5e32bf('0xdfe')]({'title':'Description\x20deleted!','msg':_0x5e32bf('0x2298')});})[_0x4348b7('0x103c')](function(_0x23fd7f){const _0x35c329=_0x4348b7;_0x4e574d[_0x35c329('0x15aa')]({'title':_0x23fd7f[_0x35c329('0x276f')]?_0x35c329('0x137')+_0x23fd7f[_0x35c329('0x276f')]+_0x35c329('0x160c')+_0x23fd7f['statusText']:_0x35c329('0x1400'),'msg':_0x23fd7f[_0x35c329('0x1e07')]?JSON[_0x35c329('0x100b')](_0x23fd7f[_0x35c329('0x1e07')]):_0x23fd7f[_0x35c329('0x1b75')]()});});}function _0x363b1a(_0x2d781f,_0x5c71ca){const _0x7b9a8f=_0x32d803,_0x530ad9=_0x2c814c['confirm']()[_0x7b9a8f('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')[_0x7b9a8f('0xf8b')](_0x7b9a8f('0x1825')+_0x7b9a8f('0xd23'))[_0x7b9a8f('0x217')](_0x7b9a8f('0xfff'))[_0x7b9a8f('0x21de')](_0x2d781f)['ok']('OK')[_0x7b9a8f('0x1e1f')](_0x7b9a8f('0x468'));_0x2c814c['show'](_0x530ad9)['then'](function(){_0xb92034(_0x5c71ca);},function(){const _0x498c49=_0x7b9a8f;console[_0x498c49('0xe37')]('CANCEL');});}function _0x1dd1f8(_0x9d1f7f){const _0x38efae=_0x32d803,_0x6f9d49=_0x2c814c[_0x38efae('0x1d02')]()[_0x38efae('0x20d6')](_0x38efae('0x1807'))['htmlContent'](''+_0x3a93c8['selectedDescriptions'][_0x38efae('0x543')]+_0x38efae('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x38efae('0x11fd'))[_0x38efae('0x21de')](_0x9d1f7f)['ok']('OK')['cancel'](_0x38efae('0x468'));_0x2c814c[_0x38efae('0x1cb7')](_0x6f9d49)['then'](function(){const _0x53055a=_0x38efae;_0x3a93c8[_0x53055a('0x10e1')]['forEach'](function(_0x3c8bba){_0xb92034(_0x3c8bba);}),_0x3a93c8['selectedDescriptions']=[];});}_0x3a93c8['selectedFields']=[],_0x3a93c8[_0x32d803('0xbb7')]=_0x387713,_0x3a93c8[_0x32d803('0x218b')]=_0x114741,_0x3a93c8[_0x32d803('0x252f')]=_0x96daa8;function _0x387713(_0x1bd076,_0x5bb66a){const _0x54d7ca=_0x32d803;_0x2c814c[_0x54d7ca('0x1cb7')]({'controller':_0x54d7ca('0x4ec'),'controllerAs':'vm','templateUrl':_0x13c746,'parent':angular[_0x54d7ca('0xb6d')](_0x330abf[_0x54d7ca('0x1a5')]),'targetEvent':_0x1bd076,'clickOutsideToClose':!![],'locals':{'type':_0x54d7ca('0x81d'),'item':_0x5bb66a,'items':_0x3a93c8['fields'],'configuration':_0x3a93c8[_0x54d7ca('0xb49')],'account':_0x3a93c8[_0x54d7ca('0x10af')],'license':null,'setting':null,'crudPermissions':_0x3a93c8['crudPermissions']}});}function _0x64680c(_0x3ce165){const _0x3c79c2=_0x32d803;_0x545c0e[_0x3c79c2('0x1729')][_0x3c79c2('0x15e8')]({'id':_0x3ce165['id']})[_0x3c79c2('0x1964')][_0x3c79c2('0x173b')](function(){const _0x292724=_0x3c79c2;_0x3c8d8a()[_0x292724('0x1a8b')](_0x3a93c8[_0x292724('0x2340')],{'id':_0x3ce165['id']}),_0x4e574d['success']({'title':_0x292724('0x2262'),'msg':_0x292724('0x1063')});})[_0x3c79c2('0x103c')](function(_0x217a6e){const _0x42945d=_0x3c79c2;_0x4e574d[_0x42945d('0x15aa')]({'title':_0x217a6e[_0x42945d('0x276f')]?_0x42945d('0x137')+_0x217a6e[_0x42945d('0x276f')]+_0x42945d('0x160c')+_0x217a6e[_0x42945d('0x2696')]:_0x42945d('0x1400'),'msg':_0x217a6e[_0x42945d('0x1e07')]?JSON[_0x42945d('0x100b')](_0x217a6e[_0x42945d('0x1e07')]):_0x217a6e[_0x42945d('0x1b75')]()});});}function _0x114741(_0x2bcb27,_0x7069d7){const _0xa14db1=_0x32d803,_0x4a81f3=_0x2c814c[_0xa14db1('0x1d02')]()['title'](_0xa14db1('0x985'))[_0xa14db1('0xf8b')]('Field'+'\x20will\x20be\x20deleted.')[_0xa14db1('0x217')](_0xa14db1('0x1b20'))[_0xa14db1('0x21de')](_0x2bcb27)['ok']('OK')[_0xa14db1('0x1e1f')](_0xa14db1('0x468'));_0x2c814c['show'](_0x4a81f3)[_0xa14db1('0x173b')](function(){_0x64680c(_0x7069d7);},function(){console['log']('CANCEL');});}function _0x96daa8(_0x2ee0d9){const _0x5d8f41=_0x32d803,_0x44c685=_0x2c814c[_0x5d8f41('0x1d02')]()['title'](_0x5d8f41('0x18ba'))[_0x5d8f41('0xf8b')](_0x5d8f41('0x15b9')+_0x3a93c8['selectedFields'][_0x5d8f41('0x543')]+_0x5d8f41('0xcb4')+_0x5d8f41('0xd23'))[_0x5d8f41('0x217')](_0x5d8f41('0xbaf'))[_0x5d8f41('0x21de')](_0x2ee0d9)['ok']('OK')[_0x5d8f41('0x1e1f')]('CANCEL');_0x2c814c[_0x5d8f41('0x1cb7')](_0x44c685)['then'](function(){const _0x5456a4=_0x5d8f41;_0x3a93c8[_0x5456a4('0x86d')]['forEach'](function(_0xaf5ee9){_0x64680c(_0xaf5ee9);}),_0x3a93c8[_0x5456a4('0x86d')]=[];});}}const _0x2a40f7=_0x116066;_0xc04088[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),'toasty',_0x566993('0x294'),_0x566993('0xb49'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0xc04088(_0x4d29aa,_0x358c1b,_0x1fc22a,_0xa88dab,_0x5632f0,_0x170eb3,_0x32c6f8,_0x27e626,_0x4400e4,_0x389723,_0x7b18fa,_0x4749b6,_0x241ae0,_0x549d57){const _0x21e06b=_0x566993,_0x6a213a=this;_0x6a213a[_0x21e06b('0x155f')]=_0x7b18fa[_0x21e06b('0x14d4')](),_0x6a213a[_0x21e06b('0x1d4a')]=[],_0x6a213a[_0x21e06b('0x251')]=_0x241ae0,_0x6a213a['license']=_0x4749b6,_0x6a213a[_0x21e06b('0x1dc1')]=_0x549d57,_0x6a213a[_0x21e06b('0xb0')]={},_0x6a213a['passwordPattern']=_0x6a213a[_0x21e06b('0x251')]&&_0x6a213a[_0x21e06b('0x251')][_0x21e06b('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x6a213a[_0x21e06b('0x20d6')]=_0x21e06b('0x24ad'),_0x6a213a['zohoConfiguration']=angular[_0x21e06b('0x2e3')](_0x4400e4),_0x6a213a['configurations']=_0x27e626,_0x6a213a[_0x21e06b('0x2291')]=![];!_0x6a213a[_0x21e06b('0xb49')]&&(_0x6a213a[_0x21e06b('0xb49')]={'channel':_0x21e06b('0x21a8'),'type':_0x21e06b('0x1755')},_0x6a213a[_0x21e06b('0x20d6')]=_0x21e06b('0xf7f'),_0x6a213a['newZohoConfiguration']=!![]);_0x6a213a[_0x21e06b('0x13b9')]=_0x591cd4,_0x6a213a[_0x21e06b('0x1787')]=_0x3987fb,_0x6a213a['deleteZohoConfiguration']=_0x2f29c4,_0x6a213a[_0x21e06b('0x11ae')]=_0x554cb5,_0x6a213a['closeDialog']=_0x2f51e7;function _0x591cd4(){const _0x2f0fc4=_0x21e06b;_0x6a213a['errors']=[],_0x389723[_0x2f0fc4('0x12f2')]['addConfiguration']({'id':_0x358c1b[_0x2f0fc4('0x197a')]['id']},_0x6a213a[_0x2f0fc4('0xb49')])[_0x2f0fc4('0x1964')]['then'](function(_0x3c47c8){const _0x55828d=_0x2f0fc4;_0x6a213a['configurations']['unshift'](_0x3c47c8[_0x55828d('0xf1f')]()),_0x32c6f8[_0x55828d('0xdfe')]({'title':'ZohoConfiguration\x20properly\x20created','msg':_0x6a213a['zohoConfiguration'][_0x55828d('0x10ad')]?_0x6a213a[_0x55828d('0xb49')][_0x55828d('0x10ad')]+_0x55828d('0x209a'):''}),_0x2f51e7(_0x3c47c8);})[_0x2f0fc4('0x103c')](function(_0x28eecb){const _0x148a0f=_0x2f0fc4;if(_0x28eecb[_0x148a0f('0x1e07')]&&_0x28eecb[_0x148a0f('0x1e07')][_0x148a0f('0x1d4a')]&&_0x28eecb['data'][_0x148a0f('0x1d4a')][_0x148a0f('0x543')]){_0x6a213a[_0x148a0f('0x1d4a')]=_0x28eecb[_0x148a0f('0x1e07')]['errors']||[{'message':_0x28eecb[_0x148a0f('0x1b75')](),'type':_0x148a0f('0x8ba')}];for(let _0x44c89a=0x0;_0x44c89a<_0x28eecb[_0x148a0f('0x1e07')][_0x148a0f('0x1d4a')]['length'];_0x44c89a+=0x1){_0x32c6f8[_0x148a0f('0x15aa')]({'title':_0x28eecb[_0x148a0f('0x1e07')][_0x148a0f('0x1d4a')][_0x44c89a][_0x148a0f('0x1810')],'msg':_0x28eecb[_0x148a0f('0x1e07')][_0x148a0f('0x1d4a')][_0x44c89a][_0x148a0f('0x67f')]});}}else _0x32c6f8[_0x148a0f('0x15aa')]({'title':_0x28eecb[_0x148a0f('0x276f')]?_0x148a0f('0x137')+_0x28eecb['status']+_0x148a0f('0x160c')+_0x28eecb[_0x148a0f('0x2696')]:_0x148a0f('0x8ba'),'msg':_0x28eecb[_0x148a0f('0x1e07')]?JSON[_0x148a0f('0x100b')](_0x28eecb[_0x148a0f('0x1e07')][_0x148a0f('0x67f')]):_0x28eecb['toString']()});});}function _0x3987fb(){const _0x399036=_0x21e06b;_0x6a213a[_0x399036('0x1d4a')]=[],_0x389723['intZohoConfiguration'][_0x399036('0x1842')]({'id':_0x6a213a[_0x399036('0xb49')]['id']},_0x6a213a[_0x399036('0xb49')])[_0x399036('0x1964')][_0x399036('0x173b')](function(_0x1bb3e8){const _0x430d34=_0x399036,_0x4c08f3=_0x3c8d8a()[_0x430d34('0x18ab')](_0x6a213a[_0x430d34('0x294')],{'id':_0x1bb3e8['id']});_0x4c08f3&&_0x3c8d8a()['merge'](_0x4c08f3,_0x3c8d8a()[_0x430d34('0x2114')](_0x1bb3e8[_0x430d34('0xf1f')](),_0x3c8d8a()[_0x430d34('0x1d3e')](_0x4c08f3))),_0x32c6f8['success']({'title':_0x430d34('0x26bb'),'msg':_0x6a213a['zohoConfiguration'][_0x430d34('0x10ad')]?_0x6a213a[_0x430d34('0xb49')][_0x430d34('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x2f51e7(_0x1bb3e8);})['catch'](function(_0x39656b){const _0x532f25=_0x399036;if(_0x39656b[_0x532f25('0x1e07')]&&_0x39656b[_0x532f25('0x1e07')][_0x532f25('0x1d4a')]&&_0x39656b[_0x532f25('0x1e07')][_0x532f25('0x1d4a')]['length']){_0x6a213a[_0x532f25('0x1d4a')]=_0x39656b[_0x532f25('0x1e07')][_0x532f25('0x1d4a')]||[{'message':_0x39656b[_0x532f25('0x1b75')](),'type':_0x532f25('0x1c54')}];for(let _0x2d2857=0x0;_0x2d2857<_0x39656b[_0x532f25('0x1e07')][_0x532f25('0x1d4a')][_0x532f25('0x543')];_0x2d2857++){_0x32c6f8['error']({'title':_0x39656b['data'][_0x532f25('0x1d4a')][_0x2d2857][_0x532f25('0x1810')],'msg':_0x39656b[_0x532f25('0x1e07')][_0x532f25('0x1d4a')][_0x2d2857][_0x532f25('0x67f')]});}}else _0x32c6f8['error']({'title':_0x39656b['status']?_0x532f25('0x137')+_0x39656b[_0x532f25('0x276f')]+_0x532f25('0x160c')+_0x39656b[_0x532f25('0x2696')]:_0x532f25('0x1c54'),'msg':_0x39656b[_0x532f25('0x1e07')]?JSON[_0x532f25('0x100b')](_0x39656b[_0x532f25('0x1e07')][_0x532f25('0x67f')]):_0x39656b['toString']()});});}function _0x2f29c4(_0x4c6198){const _0x932f61=_0x21e06b;_0x6a213a[_0x932f61('0x1d4a')]=[];const _0x5a9ba2=_0xa88dab[_0x932f61('0x1d02')]()[_0x932f61('0x20d6')]('Are\x20you\x20sure?')[_0x932f61('0x732')](_0x932f61('0x2317'))['ariaLabel'](_0x932f61('0x24d9'))['ok'](_0x932f61('0x2373'))[_0x932f61('0x1e1f')](_0x932f61('0x1d4e'))[_0x932f61('0x21de')](_0x4c6198);_0xa88dab[_0x932f61('0x1cb7')](_0x5a9ba2)['then'](function(){const _0x25ddb0=_0x932f61;_0x389723['intZohoConfiguration']['delete']({'id':_0x6a213a[_0x25ddb0('0xb49')]['id']})[_0x25ddb0('0x1964')][_0x25ddb0('0x173b')](function(){const _0x2eb2c5=_0x25ddb0;_0x3c8d8a()[_0x2eb2c5('0x1a8b')](_0x6a213a['configurations'],{'id':_0x6a213a[_0x2eb2c5('0xb49')]['id']}),_0x32c6f8['success']({'title':_0x2eb2c5('0x118b'),'msg':(_0x6a213a[_0x2eb2c5('0xb49')]['name']||'zohoConfiguration')+'\x20has\x20been\x20deleted!'}),_0x2f51e7(_0x6a213a['zohoConfiguration']);})[_0x25ddb0('0x103c')](function(_0x4044aa){const _0x3b48fd=_0x25ddb0;if(_0x4044aa[_0x3b48fd('0x1e07')]&&_0x4044aa[_0x3b48fd('0x1e07')][_0x3b48fd('0x1d4a')]&&_0x4044aa['data'][_0x3b48fd('0x1d4a')]['length']){_0x6a213a['errors']=_0x4044aa['data'][_0x3b48fd('0x1d4a')]||[{'message':_0x4044aa['toString'](),'type':_0x3b48fd('0x2067')}];for(let _0x5e0d34=0x0;_0x5e0d34<_0x4044aa[_0x3b48fd('0x1e07')][_0x3b48fd('0x1d4a')]['length'];_0x5e0d34++){_0x32c6f8[_0x3b48fd('0x15aa')]({'title':_0x4044aa[_0x3b48fd('0x1e07')]['errors'][_0x5e0d34][_0x3b48fd('0x1810')],'msg':_0x4044aa[_0x3b48fd('0x1e07')]['errors'][_0x5e0d34][_0x3b48fd('0x67f')]});}}else _0x32c6f8['error']({'title':_0x4044aa[_0x3b48fd('0x276f')]?_0x3b48fd('0x137')+_0x4044aa['status']+'\x20-\x20'+_0x4044aa[_0x3b48fd('0x2696')]:_0x3b48fd('0x2067'),'msg':_0x4044aa[_0x3b48fd('0x1e07')]?JSON[_0x3b48fd('0x100b')](_0x4044aa[_0x3b48fd('0x1e07')][_0x3b48fd('0x67f')]):_0x4044aa[_0x3b48fd('0x67f')]||_0x4044aa[_0x3b48fd('0x1b75')]()});});},function(){});}function _0x554cb5(_0x202613){return _0x202613===null?undefined:new Date(_0x202613);}function _0x2f51e7(_0x1d1350){const _0x54c49e=_0x21e06b;_0xa88dab[_0x54c49e('0x1cf4')](_0x1d1350);}}const _0x5420cf=_0xc04088;_0x11dad5[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog',_0x566993('0x1558'),_0x566993('0x1dde'),_0x566993('0x1b1f'),_0x566993('0x54'),_0x566993('0xde4'),_0x566993('0x1810'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x11dad5(_0x5763fc,_0x4d155b,_0x51b311,_0x525c87,_0x585546,_0x291e58,_0x5acd55,_0xbb2b8a,_0x104e7c,_0x4ad57d,_0x41c397,_0x17b13b,_0x20e739){const _0x14f6fc=_0x566993,_0x5bc3c2=this;_0x5bc3c2[_0x14f6fc('0x155f')]=_0x17b13b[_0x14f6fc('0x14d4')](),_0x5bc3c2['errors']=[],_0x5bc3c2[_0x14f6fc('0x20d6')]='INTEGRATIONS.EDIT_'+_0x3c8d8a()[_0x14f6fc('0x160d')](_0x4ad57d),_0x5bc3c2['item']=angular[_0x14f6fc('0x2e3')](_0xbb2b8a),_0x5bc3c2[_0x14f6fc('0x1b1f')]=_0x5acd55,_0x5bc3c2['type']=_0x4ad57d,_0x5bc3c2['crudPermissions']=_0x20e739,_0x5bc3c2['newItem']=![];!_0x5bc3c2['item']&&(_0x5bc3c2['item']={'type':'string'},_0x5bc3c2['item'][_0x3c8d8a()[_0x14f6fc('0x587')](_0x4ad57d)+'Id']=_0x291e58['id'],_0x5bc3c2[_0x14f6fc('0x20d6')]=_0x14f6fc('0x99f')+_0x3c8d8a()[_0x14f6fc('0x160d')](_0x4ad57d),_0x5bc3c2[_0x14f6fc('0x7')]=!![]);_0x5bc3c2[_0x14f6fc('0x221f')]=_0x575a64,_0x5bc3c2[_0x14f6fc('0x10e0')]=_0x310457,_0x5bc3c2['deleteItem']=_0x34fcfc,_0x5bc3c2[_0x14f6fc('0x1188')]=_0x12fb2b,_0x5bc3c2[_0x14f6fc('0x18e2')]=_0x5efaf7,_0x41c397[_0x14f6fc('0x1b56')][_0x14f6fc('0x1d97')]({'nolimit':!![]})[_0x14f6fc('0x1964')][_0x14f6fc('0x173b')](function(_0x1bfe08){const _0x3ce310=_0x14f6fc;return _0x5bc3c2[_0x3ce310('0x2715')]=_0x1bfe08['rows']?_0x1bfe08[_0x3ce310('0x6aa')]:[],_0x41c397['voiceAgentReport'][_0x3ce310('0x2320')]()[_0x3ce310('0x1964')];})['then'](function(_0x5f00b9){const _0x75cac1=_0x14f6fc;return _0x5bc3c2[_0x75cac1('0x1fe8')]=_0x3c8d8a()[_0x75cac1('0x1b31')](_0x3c8d8a()['keys'](_0x5f00b9),[_0x75cac1('0x1964'),_0x75cac1('0x14ad'),'createdAt',_0x75cac1('0xad'),_0x75cac1('0x24b1')]),_0x5bc3c2[_0x75cac1('0x1fe8')][_0x75cac1('0x18bb')](_0x75cac1('0x2313')),_0x41c397[_0x75cac1('0x242c')][_0x75cac1('0x2320')]()[_0x75cac1('0x1964')];})[_0x14f6fc('0x173b')](function(_0x870b16){const _0x164ecf=_0x14f6fc;_0x5bc3c2[_0x164ecf('0x20de')]=_0x3c8d8a()[_0x164ecf('0x1b31')](_0x3c8d8a()[_0x164ecf('0x1d3e')](_0x870b16),['$promise',_0x164ecf('0x14ad'),_0x164ecf('0xda8'),_0x164ecf('0xad'),'sourceid']),_0x5bc3c2[_0x164ecf('0x20de')][_0x164ecf('0x18bb')](_0x164ecf('0x2313'));})['catch'](function(_0x466e14){const _0x4f7235=_0x14f6fc;_0x585546[_0x4f7235('0x15aa')]({'title':_0x466e14[_0x4f7235('0x276f')]?'API:'+_0x466e14['status']+_0x4f7235('0x160c')+_0x466e14[_0x4f7235('0x2696')]:'SYSTEM:GETVARIABLES','msg':_0x466e14[_0x4f7235('0x1e07')]?JSON[_0x4f7235('0x100b')](_0x466e14[_0x4f7235('0x1e07')]):_0x466e14[_0x4f7235('0x1b75')]()});}),_0x41c397[_0x14f6fc('0x12f2')][_0x14f6fc('0x223b')]({'id':_0x104e7c['id'],'ticketType':_0x291e58[_0x14f6fc('0x182')]?_0x291e58[_0x14f6fc('0x182')]:undefined})[_0x14f6fc('0x1964')][_0x14f6fc('0x173b')](function(_0x61286b){const _0x16ab67=_0x14f6fc;_0x5bc3c2[_0x16ab67('0x22ad')]=!![],_0x5bc3c2[_0x16ab67('0x2340')]=_0x61286b['rows']?_0x61286b['rows']:[],_0x5bc3c2[_0x16ab67('0x54')][_0x16ab67('0x1ee7')]&&(_0x5bc3c2[_0x16ab67('0x894')]=_0x3c8d8a()[_0x16ab67('0x18ab')](_0x5bc3c2[_0x16ab67('0x2340')],{'id':_0x5bc3c2[_0x16ab67('0x54')][_0x16ab67('0x1ee7')]}));})['catch'](function(_0x4f035c){const _0x5937f4=_0x14f6fc;_0x5bc3c2[_0x5937f4('0x22ad')]=![],console['error'](_0x4f035c);});function _0x575a64(){const _0x251059=_0x14f6fc;_0x5bc3c2['errors']=[],_0x5bc3c2[_0x251059('0x894')]&&(_0x5bc3c2[_0x251059('0x54')]['idField']=_0x5bc3c2[_0x251059('0x894')]['id'],_0x5bc3c2[_0x251059('0x54')]['nameField']=_0x5bc3c2['customField'][_0x251059('0x10ad')],_0x5bc3c2[_0x251059('0x54')]['customField']=_0x5bc3c2[_0x251059('0x894')]['custom']),_0x41c397[_0x251059('0x1729')]['save'](_0x5bc3c2['item'])[_0x251059('0x1964')][_0x251059('0x173b')](function(_0x5c80ed){const _0x26b2be=_0x251059;_0x5bc3c2['items'][_0x26b2be('0x1377')](_0x5c80ed),_0x585546[_0x26b2be('0xdfe')]({'title':_0x3c8d8a()[_0x26b2be('0x587')](_0x4ad57d)+_0x26b2be('0x348'),'msg':_0x3c8d8a()['capitalize'](_0x4ad57d)+_0x26b2be('0x209a')}),_0x5efaf7();})[_0x251059('0x103c')](function(_0x113645){const _0x745cbf=_0x251059;console[_0x745cbf('0x15aa')](_0x113645),_0x5bc3c2[_0x745cbf('0x1d4a')]=_0x113645['data']['errors']||[{'message':_0x113645['toString'](),'type':_0x745cbf('0x18e4')}];});}function _0x310457(){const _0x569679=_0x14f6fc;_0x5bc3c2[_0x569679('0x1d4a')]=[],_0x5bc3c2[_0x569679('0x894')]&&(_0x5bc3c2[_0x569679('0x54')]['idField']=_0x5bc3c2[_0x569679('0x894')]['id'],_0x5bc3c2['item']['nameField']=_0x5bc3c2['customField'][_0x569679('0x10ad')],_0x5bc3c2[_0x569679('0x54')]['customField']=_0x5bc3c2[_0x569679('0x894')][_0x569679('0xbb4')]),_0x41c397[_0x569679('0x1729')]['update']({'id':_0x5bc3c2[_0x569679('0x54')]['id']},_0x5bc3c2[_0x569679('0x54')])[_0x569679('0x1964')][_0x569679('0x173b')](function(_0x5869bc){const _0xe21c5d=_0x569679,_0x21ffe2=_0x3c8d8a()['find'](_0x5bc3c2['items'],{'id':_0x5869bc['id']});_0x21ffe2&&_0x3c8d8a()['merge'](_0x21ffe2,_0x5869bc),_0x585546['success']({'title':_0x3c8d8a()[_0xe21c5d('0x587')](_0x4ad57d)+'\x20properly\x20saved!','msg':_0x3c8d8a()['capitalize'](_0x4ad57d)+_0xe21c5d('0x2788')}),_0x5efaf7();})[_0x569679('0x103c')](function(_0x57ca93){const _0x1ad618=_0x569679;console[_0x1ad618('0x15aa')](_0x57ca93),_0x5bc3c2['errors']=_0x57ca93['data'][_0x1ad618('0x1d4a')]||[{'message':_0x57ca93['toString'](),'type':'api.intItem.update'}];});}function _0x34fcfc(_0x3ba949){const _0x5b4681=_0x14f6fc;_0x5bc3c2['errors']=[];const _0x5492ad=_0x525c87[_0x5b4681('0x1d02')]()[_0x5b4681('0x20d6')](_0x5b4681('0x8ef'))[_0x5b4681('0x732')]('The\x20'+_0x4ad57d+'\x20will\x20be\x20deleted.')[_0x5b4681('0x217')](_0x5b4681('0x133e')+_0x3c8d8a()[_0x5b4681('0x587')](_0x4ad57d))['ok']('Delete')[_0x5b4681('0x1e1f')](_0x5b4681('0x1d4e'))['targetEvent'](_0x3ba949);_0x525c87[_0x5b4681('0x1cb7')](_0x5492ad)[_0x5b4681('0x173b')](function(){const _0x394493=_0x5b4681;_0x41c397['intZohoField'][_0x394493('0x15e8')]({'id':_0x5bc3c2['item']['id']})[_0x394493('0x1964')][_0x394493('0x173b')](function(){const _0x417961=_0x394493;_0x3c8d8a()[_0x417961('0x1a8b')](_0x5bc3c2[_0x417961('0x1b1f')],{'id':_0x5bc3c2[_0x417961('0x54')]['id']}),_0x585546['success']({'title':_0x3c8d8a()['capitalize'](_0x4ad57d)+_0x417961('0xb5'),'msg':_0x3c8d8a()['capitalize'](_0x4ad57d)+_0x417961('0x25d2')}),_0x5efaf7();})[_0x394493('0x103c')](function(_0x136b78){const _0xbd88b3=_0x394493;console[_0xbd88b3('0x15aa')](_0x136b78),_0x5bc3c2[_0xbd88b3('0x1d4a')]=_0x136b78[_0xbd88b3('0x1e07')][_0xbd88b3('0x1d4a')]||[{'message':_0x136b78[_0xbd88b3('0x1b75')](),'type':_0xbd88b3('0x238e')}];});},function(){});}function _0x12fb2b(){const _0x5ac078=_0x14f6fc;return _0x5bc3c2[_0x5ac078('0x54')][_0x5ac078('0x195d')]!==undefined?_0x5bc3c2[_0x5ac078('0x54')][_0x5ac078('0x195d')]:_0x5ac078('0x1423');}function _0x5efaf7(){const _0x2aa1aa=_0x14f6fc;_0x525c87[_0x2aa1aa('0x1cf4')]();}}const _0x3cd7de=_0x11dad5;_0x2aa194[_0x566993('0x17bb')]=['$state',_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$translate',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),'zohoAccount',_0x566993('0x170e')];function _0x2aa194(_0x5cbba6,_0x3571c7,_0x1a0225,_0x12c113,_0x91e547,_0x60f40d,_0x41b9cd,_0x4bdb25,_0x53497d,_0x41ccf9,_0x102c3f,_0x37588c){const _0x5e160a=_0x566993,_0x56f79a=this;_0x56f79a['currentUser']=_0x41ccf9[_0x5e160a('0x14d4')](),_0x56f79a['license']=_0x60f40d,_0x56f79a['setting']=_0x41b9cd,_0x56f79a[_0x5e160a('0x644')]=_0x56f79a[_0x5e160a('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x56f79a[_0x5e160a('0x614')]=_0x3571c7[_0x5e160a('0x375')]()+_0x5e160a('0x122b')+_0x3571c7[_0x5e160a('0x4d1')](),_0x56f79a['zohoAccount']=_0x102c3f||_0x5cbba6['params'][_0x5e160a('0x10af')]||{},_0x56f79a[_0x5e160a('0x170e')]=_0x37588c&&_0x37588c[_0x5e160a('0x1a2f')]==0x1?_0x37588c[_0x5e160a('0x6aa')][0x0]:null,_0x56f79a['crudPermissions']=_0x41ccf9['parseCrudPermissions'](_0x56f79a[_0x5e160a('0x170e')]?_0x56f79a[_0x5e160a('0x170e')]['crudPermissions']:null),_0x56f79a[_0x5e160a('0xb0')]={},_0x56f79a['selectedTab']=_0x5cbba6[_0x5e160a('0x197a')][_0x5e160a('0x1e66')]||0x0,_0x56f79a['alert']=_0x53497d[_0x5e160a('0x2787')],_0x56f79a[_0x5e160a('0x54d')]=_0x4047bc,_0x56f79a[_0x5e160a('0x243')]=_0x13527b;function _0x4047bc(){const _0x199b85=_0x5e160a;_0x5cbba6['go']('app.integrations.zohoAccounts',{},{'reload':_0x199b85('0x81f')});}function _0x13527b(){const _0x2c91f3=_0x5e160a;_0x4bdb25[_0x2c91f3('0x12f2')][_0x2c91f3('0x1842')]({'id':_0x56f79a[_0x2c91f3('0x10af')]['id']},_0x56f79a[_0x2c91f3('0x10af')])[_0x2c91f3('0x1964')][_0x2c91f3('0x173b')](function(){const _0x3e6dcb=_0x2c91f3;_0x53497d[_0x3e6dcb('0xdfe')]({'title':'ZohoAccount\x20updated!','msg':_0x56f79a['zohoAccount'][_0x3e6dcb('0x10ad')]?_0x56f79a[_0x3e6dcb('0x10af')]['name']+_0x3e6dcb('0x1fd6'):''});})['catch'](function(_0x2e4f51){const _0x1dbb88=_0x2c91f3;_0x53497d['error']({'title':_0x2e4f51[_0x1dbb88('0x276f')]?_0x1dbb88('0x137')+_0x2e4f51[_0x1dbb88('0x276f')]+'\x20-\x20'+_0x2e4f51['statusText']:_0x1dbb88('0x15b3'),'msg':_0x2e4f51[_0x1dbb88('0x1e07')]?JSON[_0x1dbb88('0x100b')](_0x2e4f51[_0x1dbb88('0x1e07')]):_0x2e4f51['toString']()});});}}const _0xf3235f=_0x2aa194,_0x23fa94=_0x21a6a1['p']+_0x566993('0x1e9a');_0x555e99[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog',_0x566993('0x1b82'),'$timeout',_0x566993('0x638'),_0x566993('0x21d1'),_0x566993('0x257b'),_0x566993('0x170e'),'api',_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x555e99(_0x1a1c23,_0x1b1c92,_0x153257,_0x57fedb,_0x1f6ee9,_0x142cd8,_0x44dca3,_0x518d10,_0x39456f,_0x4e0d57,_0x234661,_0x5bf2b9,_0x114ecb,_0x1d5a28,_0x70658d,_0x2a6d97,_0x4cd4e4){const _0x10174b=_0x566993,_0x18d98e=this;_0x18d98e['license']=_0x2a6d97,_0x18d98e['setting']=_0x4cd4e4,_0x18d98e[_0x10174b('0x155f')]=_0x70658d['getCurrentUser'](),_0x18d98e[_0x10174b('0x21d1')]=_0x39456f||{'count':0x0,'rows':[]},_0x18d98e['userProfile']=_0x4e0d57,_0x18d98e['userProfileSection']=_0x234661&&_0x234661[_0x10174b('0x1a2f')]==0x1?_0x234661[_0x10174b('0x6aa')][0x0]:null,_0x18d98e['crudPermissions']=_0x70658d[_0x10174b('0xde6')](_0x18d98e['userProfileSection']?_0x18d98e[_0x10174b('0x170e')][_0x10174b('0x1dc1')]:null),_0x18d98e['table']=_0x10174b('0x21d1'),_0x18d98e[_0x10174b('0x14d6')]='',_0x18d98e[_0x10174b('0x2303')]=null,_0x18d98e['selectedZohoAccounts']=[],_0x18d98e[_0x10174b('0xc49')]={'fields':_0x10174b('0x2669'),'limit':0xa,'page':0x1},_0x18d98e[_0x10174b('0x268c')]=_0x3c8d8a()[_0x10174b('0x128')]([{'option':_0x10174b('0x3e5'),'value':_0x10174b('0xf19')},{'option':_0x10174b('0xa74'),'value':'\x27zoho.eu\x27'}],function(_0x1e9ba0){const _0x40f6fa=_0x10174b;return _0x3c8d8a()[_0x40f6fa('0x166c')](_0x1e9ba0['value'],new RegExp('\x27','g'),'');}),_0x18d98e[_0x10174b('0x625')]=_0x3c8d8a()[_0x10174b('0x128')]([{'option':'US','value':_0x10174b('0x19ba')},{'option':'AU','value':_0x10174b('0x8ab')},{'option':'EU','value':_0x10174b('0x5eb')},{'option':'IN','value':_0x10174b('0x22a7')},{'option':'CN','value':_0x10174b('0x1d99')}],function(_0x3fc491){const _0x96a0cd=_0x10174b;return _0x3c8d8a()[_0x96a0cd('0x166c')](_0x3fc491[_0x96a0cd('0xa7b')],new RegExp('\x27','g'),'');}),_0x18d98e[_0x10174b('0x222e')]=_0x3264d1,_0x18d98e[_0x10174b('0x1f58')]=_0x5f2f98,_0x18d98e['deleteconfirm']=_0x3868a4,_0x18d98e[_0x10174b('0xdfe')]=_0x200957,_0x18d98e['getZohoAccounts']=_0x5528b8,_0x18d98e[_0x10174b('0x1f5f')]=_0x4bd387,_0x18d98e['deleteZohoAccount']=_0x1f5551,_0x18d98e[_0x10174b('0x2f8')]=_0x3e057e,_0x18d98e['deleteSelectedZohoAccounts']=_0x300dc4,_0x18d98e[_0x10174b('0x1dd6')]=_0x1e737b,_0x18d98e[_0x10174b('0x1a88')]=_0x40c114;function _0x3264d1(_0x19a5da){const _0x10d171=_0x10174b;_0x153257['go'](_0x10d171('0x645'),{'id':_0x19a5da['id'],'zohoAccount':_0x19a5da,'crudPermissions':_0x18d98e[_0x10d171('0x1dc1')]});}function _0x5f2f98(_0x453ad1){const _0x32c201=_0x10174b;return _0x5bf2b9[_0x32c201('0x12f2')][_0x32c201('0x223b')]({'id':_0x453ad1['id'],'test':!![]})['$promise'][_0x32c201('0x173b')](function(){const _0x370d0e=_0x32c201;_0x1d5a28[_0x370d0e('0xdfe')]({'title':_0x370d0e('0x1be5'),'msg':_0x370d0e('0x13fe')});})[_0x32c201('0x103c')](function(_0x2c0028){const _0x144b20=_0x32c201;_0x1d5a28[_0x144b20('0x15aa')]({'title':_0x144b20('0x1be5'),'msg':_0x2c0028[_0x144b20('0x1e07')]?_0x2c0028['data'][_0x144b20('0x67f')]?_0x2c0028[_0x144b20('0x1e07')][_0x144b20('0x67f')]:JSON['stringify'](_0x2c0028[_0x144b20('0x1e07')]):_0x2c0028['toString']()});});}function _0x3868a4(_0x45044f,_0x180c6d){const _0x432cc5=_0x10174b,_0x32c643=_0x1f6ee9['confirm']()['title'](_0x432cc5('0x5bb')+_0x3c8d8a()['startCase']('zohoAccount')+'?')['htmlContent'](_0x432cc5('0x15b9')+(_0x45044f['name']||_0x432cc5('0x10af'))+''+_0x432cc5('0xd23'))[_0x432cc5('0x217')](_0x432cc5('0x1591'))[_0x432cc5('0x21de')](_0x180c6d)['ok']('OK')[_0x432cc5('0x1e1f')]('CANCEL');_0x1f6ee9[_0x432cc5('0x1cb7')](_0x32c643)[_0x432cc5('0x173b')](function(){_0x1f5551(_0x45044f);},function(){const _0x51fa13=_0x432cc5;console[_0x51fa13('0xe37')](_0x51fa13('0x468'));});}let _0x35f374=!![],_0x3f4f5a=0x1;_0x1a1c23[_0x10174b('0x1bdb')](_0x10174b('0x157b'),function(_0x264e99,_0x3932d6){const _0x127c44=_0x10174b;_0x35f374?_0x44dca3(function(){_0x35f374=![];}):(!_0x3932d6&&(_0x3f4f5a=_0x18d98e[_0x127c44('0xc49')][_0x127c44('0x182e')]),_0x264e99!==_0x3932d6&&(_0x18d98e[_0x127c44('0xc49')]['page']=0x1),!_0x264e99&&(_0x18d98e['query']['page']=_0x3f4f5a),_0x18d98e['getZohoAccounts']());});function _0x200957(_0x2932e1){_0x18d98e['zohoAccounts']=_0x2932e1||{'count':0x0,'rows':[]};}function _0x5528b8(){const _0x116a92=_0x10174b;_0x18d98e[_0x116a92('0xc49')][_0x116a92('0x17f0')]=(_0x18d98e[_0x116a92('0xc49')][_0x116a92('0x182e')]-0x1)*_0x18d98e[_0x116a92('0xc49')][_0x116a92('0x3e')],_0x70658d['hasRole'](_0x116a92('0x79b'))?_0x18d98e[_0x116a92('0x2219')]=_0x5bf2b9[_0x116a92('0x12f2')][_0x116a92('0x1d97')](_0x18d98e[_0x116a92('0xc49')],_0x200957)[_0x116a92('0x1964')]:(_0x18d98e['query']['id']=_0x18d98e[_0x116a92('0x257b')]['id'],_0x18d98e[_0x116a92('0xc49')]['section']=_0x116a92('0xf3a'),_0x18d98e['promise']=_0x5bf2b9['userProfile'][_0x116a92('0x135b')](_0x18d98e[_0x116a92('0xc49')],_0x200957)[_0x116a92('0x1964')]);}function _0x4bd387(_0x5df65a,_0x39f54e){const _0x5861fb=_0x10174b;_0x1f6ee9['show']({'controller':'CreateOrEditZohoAccountDialogController','controllerAs':'vm','templateUrl':_0x23fa94,'parent':angular[_0x5861fb('0xb6d')](_0x142cd8['body']),'targetEvent':_0x5df65a,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0x39f54e,'zohoAccounts':_0x18d98e[_0x5861fb('0x21d1')][_0x5861fb('0x6aa')],'license':_0x18d98e[_0x5861fb('0x1a29')],'setting':_0x18d98e['setting'],'crudPermissions':_0x18d98e['crudPermissions']}});}function _0x1f5551(_0x5c8090){const _0x327d0c=_0x10174b;_0x5bf2b9[_0x327d0c('0x12f2')][_0x327d0c('0x15e8')]({'id':_0x5c8090['id']})[_0x327d0c('0x1964')]['then'](function(){const _0xba52a0=_0x327d0c;_0x3c8d8a()[_0xba52a0('0x1a8b')](_0x18d98e[_0xba52a0('0x21d1')]['rows'],{'id':_0x5c8090['id']}),_0x18d98e[_0xba52a0('0x21d1')][_0xba52a0('0x1a2f')]-=0x1,!_0x18d98e['zohoAccounts'][_0xba52a0('0x6aa')]['length']&&_0x18d98e[_0xba52a0('0x1494')](),_0x1d5a28[_0xba52a0('0xdfe')]({'title':_0x3c8d8a()[_0xba52a0('0x10e')](_0xba52a0('0x17b'))+_0xba52a0('0x1c5e'),'msg':_0x5c8090['name']?_0x5c8090[_0xba52a0('0x10ad')]+_0xba52a0('0x25d2'):''});})['catch'](function(_0x25a5a2){const _0x58ea26=_0x327d0c;if(_0x25a5a2[_0x58ea26('0x1e07')]&&_0x25a5a2[_0x58ea26('0x1e07')][_0x58ea26('0x1d4a')]&&_0x25a5a2[_0x58ea26('0x1e07')][_0x58ea26('0x1d4a')][_0x58ea26('0x543')]){_0x18d98e[_0x58ea26('0x1d4a')]=_0x25a5a2[_0x58ea26('0x1e07')][_0x58ea26('0x1d4a')]||[{'message':_0x25a5a2[_0x58ea26('0x1b75')](),'type':_0x58ea26('0x1e0')}];for(let _0x210597=0x0;_0x210597<_0x25a5a2['data']['errors']['length'];_0x210597++){_0x1d5a28['error']({'title':_0x25a5a2[_0x58ea26('0x1e07')]['errors'][_0x210597][_0x58ea26('0x1810')],'msg':_0x25a5a2[_0x58ea26('0x1e07')][_0x58ea26('0x1d4a')][_0x210597][_0x58ea26('0x67f')]});}}else _0x1d5a28[_0x58ea26('0x15aa')]({'title':_0x25a5a2['status']?_0x58ea26('0x137')+_0x25a5a2['status']+_0x58ea26('0x160c')+_0x25a5a2[_0x58ea26('0x2696')]:_0x58ea26('0x1e0'),'msg':_0x25a5a2[_0x58ea26('0x1e07')]?JSON[_0x58ea26('0x100b')](_0x25a5a2['data'][_0x58ea26('0x67f')]):_0x25a5a2[_0x58ea26('0x67f')]||_0x25a5a2[_0x58ea26('0x1b75')]()});});}function _0x3e057e(){const _0x14934c=_0x10174b,_0x33fcf9=angular[_0x14934c('0x2e3')](_0x18d98e[_0x14934c('0x1ca2')]);return _0x18d98e[_0x14934c('0x1ca2')]=[],_0x33fcf9;}function _0x300dc4(_0x5cb5bf){const _0x1a93e8=_0x10174b,_0x1a1781=_0x1f6ee9[_0x1a93e8('0x1d02')]()[_0x1a93e8('0x20d6')](_0x1a93e8('0x1a0a'))['htmlContent'](''+_0x18d98e[_0x1a93e8('0x1ca2')]['length']+'\x20selected'+_0x1a93e8('0xd23'))[_0x1a93e8('0x217')]('delete\x20ZohoAccounts')[_0x1a93e8('0x21de')](_0x5cb5bf)['ok']('OK')[_0x1a93e8('0x1e1f')](_0x1a93e8('0x468'));_0x1f6ee9[_0x1a93e8('0x1cb7')](_0x1a1781)[_0x1a93e8('0x173b')](function(){const _0x212cc3=_0x1a93e8;_0x18d98e[_0x212cc3('0x1ca2')][_0x212cc3('0xa6a')](function(_0x449a63){_0x1f5551(_0x449a63);}),_0x18d98e[_0x212cc3('0x1ca2')]=[];});}function _0x1e737b(){const _0x2190e8=_0x10174b;_0x18d98e[_0x2190e8('0x1ca2')]=[];}function _0x40c114(){const _0xd1b7e5=_0x10174b;_0x18d98e[_0xd1b7e5('0x1ca2')]=_0x18d98e[_0xd1b7e5('0x21d1')][_0xd1b7e5('0x6aa')];}}const _0x2d4182=_0x555e99;_0x320286[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x320286(_0x320d7d,_0x52582c){const _0x837fd4=_0x566993;_0x320d7d['state'](_0x837fd4('0x28c'),{'abstract':!![],'url':_0x837fd4('0x1962')})[_0x837fd4('0x1a49')](_0x837fd4('0xfeb'),{'url':'/zendeskAccounts','views':{'content@app':{'templateUrl':_0x1a8519,'controller':_0x837fd4('0x1c1')}},'resolve':{'zendeskAccounts':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x5e39e4,_0x8850e5){const _0x271808=_0x837fd4;return _0x8850e5[_0x271808('0x1b4e')](_0x271808('0x79b'))?_0x5e39e4[_0x271808('0x155b')](_0x271808('0x205f'),{'fields':_0x271808('0x39c'),'limit':0xa,'offset':0x0}):_0x5e39e4[_0x271808('0x155b')]('userProfile@getResources',{'id':_0x8850e5[_0x271808('0x14d4')]()[_0x271808('0x1946')],'section':_0x271808('0x25fb'),'fields':_0x271808('0x39c'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x837fd4('0x1600'),function(_0x12701f,_0x24eac6){const _0x44db3f=_0x837fd4;return _0x24eac6[_0x44db3f('0x1b4e')](_0x44db3f('0x79b'))?null:_0x12701f[_0x44db3f('0x155b')]('userProfile@get',{'fields':_0x44db3f('0x19dd'),'id':_0x24eac6[_0x44db3f('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x17d1b5,_0x1b4f2d){const _0x1342ad=_0x837fd4;return _0x1b4f2d[_0x1342ad('0x1b4e')](_0x1342ad('0x79b'))?null:_0x17d1b5[_0x1342ad('0x155b')]('userProfileSection@get',{'fields':_0x1342ad('0x1348'),'userProfileId':_0x1b4f2d[_0x1342ad('0x14d4')]()[_0x1342ad('0x1946')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0xeaa'),{'url':'/:id?tab','params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xcb6a01,'controller':_0x837fd4('0x2396')}},'resolve':{'zendeskAccount':['apiResolver',_0x837fd4('0x1caf'),function(_0x53471c,_0xe0a595){const _0x59f1cc=_0x837fd4;return _0x53471c[_0x59f1cc('0x155b')](_0x59f1cc('0x205f'),{'fields':_0x59f1cc('0x39c'),'id':_0xe0a595['id']});}],'userProfileSection':['apiResolver',_0x837fd4('0x1600'),function(_0x421201,_0x5b1f9e){const _0x544fea=_0x837fd4;return _0x421201['resolve']('userProfileSection@get',{'fields':_0x544fea('0x1348'),'userProfileId':_0x5b1f9e['getCurrentUser']()[_0x544fea('0x1946')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0x1e83'),{'url':'/salesforceAccounts','views':{'content@app':{'templateUrl':_0x172e73,'controller':'SalesforceAccountsController\x20as\x20vm'}},'resolve':{'salesforceAccounts':['apiResolver',_0x837fd4('0x1600'),function(_0x27c215,_0x3caee3){const _0x57ec30=_0x837fd4;return _0x3caee3[_0x57ec30('0x1b4e')](_0x57ec30('0x79b'))?_0x27c215[_0x57ec30('0x155b')](_0x57ec30('0x2422'),{'fields':_0x57ec30('0x1d3d'),'limit':0xa,'offset':0x0}):_0x27c215['resolve'](_0x57ec30('0x14b3'),{'id':_0x3caee3[_0x57ec30('0x14d4')]()[_0x57ec30('0x1946')],'section':'SalesforceAccounts','fields':_0x57ec30('0x1d3d'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x1d2d03,_0x2b4362){const _0x274523=_0x837fd4;return _0x2b4362[_0x274523('0x1b4e')](_0x274523('0x79b'))?null:_0x1d2d03['resolve']('userProfile@get',{'fields':_0x274523('0x19dd'),'id':_0x2b4362[_0x274523('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x4695ad,_0x4b74fe){const _0x2bd669=_0x837fd4;return _0x4b74fe[_0x2bd669('0x1b4e')](_0x2bd669('0x79b'))?null:_0x4695ad[_0x2bd669('0x155b')]('userProfileSection@get',{'fields':_0x2bd669('0x1348'),'userProfileId':_0x4b74fe[_0x2bd669('0x14d4')]()[_0x2bd669('0x1946')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0x267b'),{'url':_0x837fd4('0xb4c'),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2f3a56,'controller':'SalesforceAccountController\x20as\x20vm'}},'resolve':{'salesforceAccount':['apiResolver','$stateParams',function(_0x163ec5,_0xbd1116){const _0x3bbce7=_0x837fd4;return _0x163ec5[_0x3bbce7('0x155b')]('intSalesforceAccount@get',{'fields':_0x3bbce7('0x1d3d'),'id':_0xbd1116['id']});}],'userProfileSection':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x2a6ef1,_0x4d1af1){const _0x1b4854=_0x837fd4;return _0x2a6ef1[_0x1b4854('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4d1af1[_0x1b4854('0x14d4')]()[_0x1b4854('0x1946')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0x2796'),{'url':_0x837fd4('0x203c'),'views':{'content@app':{'templateUrl':_0x4595be,'controller':_0x837fd4('0x695')}},'resolve':{'freshdeskAccounts':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x36ed94,_0x1c6d7d){const _0x4056ee=_0x837fd4;return _0x1c6d7d['hasRole'](_0x4056ee('0x79b'))?_0x36ed94[_0x4056ee('0x155b')](_0x4056ee('0x1936'),{'fields':_0x4056ee('0x26ae'),'limit':0xa,'offset':0x0}):_0x36ed94[_0x4056ee('0x155b')](_0x4056ee('0x14b3'),{'id':_0x1c6d7d['getCurrentUser']()[_0x4056ee('0x1946')],'section':'FreshdeskAccounts','fields':_0x4056ee('0x26ae'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x92963a,_0x239b77){const _0x571001=_0x837fd4;return _0x239b77[_0x571001('0x1b4e')](_0x571001('0x79b'))?null:_0x92963a[_0x571001('0x155b')]('userProfile@get',{'fields':_0x571001('0x19dd'),'id':_0x239b77[_0x571001('0x14d4')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x837fd4('0x1600'),function(_0x1d1b27,_0x4a021e){const _0x48c6ce=_0x837fd4;return _0x4a021e[_0x48c6ce('0x1b4e')](_0x48c6ce('0x79b'))?null:_0x1d1b27[_0x48c6ce('0x155b')]('userProfileSection@get',{'fields':_0x48c6ce('0x1348'),'userProfileId':_0x4a021e[_0x48c6ce('0x14d4')]()[_0x48c6ce('0x1946')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x837fd4('0xba9')})['state'](_0x837fd4('0x73c'),{'url':_0x837fd4('0xb4c'),'params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x213463,'controller':_0x837fd4('0xedc')}},'resolve':{'freshdeskAccount':['apiResolver',_0x837fd4('0x1caf'),function(_0x5e957d,_0x2a99ad){const _0x315046=_0x837fd4;return _0x5e957d[_0x315046('0x155b')](_0x315046('0x1936'),{'fields':_0x315046('0x26ae'),'id':_0x2a99ad['id']});}],'userProfileSection':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x81efd2,_0x5b69c6){const _0x216537=_0x837fd4;return _0x81efd2[_0x216537('0x155b')](_0x216537('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5b69c6['getCurrentUser']()['userProfileId'],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0xd21'),{'url':'/sugarcrmAccounts','views':{'content@app':{'templateUrl':_0x54030b,'controller':'SugarcrmAccountsController\x20as\x20vm'}},'resolve':{'sugarcrmAccounts':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x15a498,_0x57f31d){const _0x355818=_0x837fd4;return _0x57f31d[_0x355818('0x1b4e')]('admin')?_0x15a498[_0x355818('0x155b')](_0x355818('0x1475'),{'fields':_0x355818('0x10bb'),'limit':0xa,'offset':0x0}):_0x15a498[_0x355818('0x155b')](_0x355818('0x14b3'),{'id':_0x57f31d[_0x355818('0x14d4')]()[_0x355818('0x1946')],'section':'SugarcrmAccounts','fields':_0x355818('0x10bb'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x10153b,_0x2c4291){const _0x5213ec=_0x837fd4;return _0x2c4291['hasRole'](_0x5213ec('0x79b'))?null:_0x10153b[_0x5213ec('0x155b')](_0x5213ec('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x2c4291[_0x5213ec('0x14d4')]()[_0x5213ec('0x1946')]});}],'userProfileSection':[_0x837fd4('0x2401'),'Auth',function(_0x323f58,_0x35f57e){const _0x42ef51=_0x837fd4;return _0x35f57e['hasRole'](_0x42ef51('0x79b'))?null:_0x323f58[_0x42ef51('0x155b')]('userProfileSection@get',{'fields':_0x42ef51('0x1348'),'userProfileId':_0x35f57e['getCurrentUser']()['userProfileId'],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':'integrations'})[_0x837fd4('0x1a49')](_0x837fd4('0xbeb'),{'url':_0x837fd4('0xb4c'),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x489d5d,'controller':_0x837fd4('0xa7a')}},'resolve':{'sugarcrmAccount':[_0x837fd4('0x2401'),_0x837fd4('0x1caf'),function(_0x5f3d1f,_0x3d299c){const _0x2405a5=_0x837fd4;return _0x5f3d1f[_0x2405a5('0x155b')](_0x2405a5('0x1475'),{'fields':_0x2405a5('0x10bb'),'id':_0x3d299c['id']});}],'userProfileSection':['apiResolver',_0x837fd4('0x1600'),function(_0x59af4d,_0x11a891){const _0x56152a=_0x837fd4;return _0x59af4d[_0x56152a('0x155b')](_0x56152a('0x40'),{'fields':_0x56152a('0x1348'),'userProfileId':_0x11a891[_0x56152a('0x14d4')]()[_0x56152a('0x1946')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')]('app.integrations.deskAccounts',{'url':'/deskAccounts','views':{'content@app':{'templateUrl':_0xda890c,'controller':'DeskAccountsController\x20as\x20vm'}},'resolve':{'deskAccounts':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x42ef7f,_0x2d6eed){const _0x322ecd=_0x837fd4;return _0x2d6eed['hasRole']('admin')?_0x42ef7f[_0x322ecd('0x155b')]('intDeskAccount@get',{'fields':_0x322ecd('0x2617'),'limit':0xa,'offset':0x0}):_0x42ef7f['resolve']('userProfile@getResources',{'id':_0x2d6eed[_0x322ecd('0x14d4')]()[_0x322ecd('0x1946')],'section':_0x322ecd('0x215c'),'fields':_0x322ecd('0x2617'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x2dc21f,_0x534e40){const _0x243d17=_0x837fd4;return _0x534e40[_0x243d17('0x1b4e')](_0x243d17('0x79b'))?null:_0x2dc21f['resolve']('userProfile@get',{'fields':_0x243d17('0x19dd'),'id':_0x534e40['getCurrentUser']()[_0x243d17('0x1946')]});}],'userProfileSection':[_0x837fd4('0x2401'),'Auth',function(_0x2dccc3,_0x54519a){const _0x153227=_0x837fd4;return _0x54519a[_0x153227('0x1b4e')](_0x153227('0x79b'))?null:_0x2dccc3[_0x153227('0x155b')](_0x153227('0x40'),{'fields':_0x153227('0x1348'),'userProfileId':_0x54519a[_0x153227('0x14d4')]()[_0x153227('0x1946')],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0x1f74'),{'url':_0x837fd4('0xb4c'),'params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x59f04e,'controller':_0x837fd4('0x413')}},'resolve':{'deskAccount':[_0x837fd4('0x2401'),_0x837fd4('0x1caf'),function(_0x1f70cf,_0x288477){const _0x54f1af=_0x837fd4;return _0x1f70cf[_0x54f1af('0x155b')](_0x54f1af('0xccf'),{'fields':'createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','id':_0x288477['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x285a78,_0x5eaa7d){const _0x576591=_0x837fd4;return _0x285a78[_0x576591('0x155b')](_0x576591('0x40'),{'fields':_0x576591('0x1348'),'userProfileId':_0x5eaa7d['getCurrentUser']()[_0x576591('0x1946')],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0x81f'),{'url':_0x837fd4('0x21fb'),'views':{'content@app':{'templateUrl':_0x5c1955,'controller':_0x837fd4('0x1239')}},'resolve':{'zohoAccounts':[_0x837fd4('0x2401'),'Auth',function(_0x41a295,_0x2d07e1){const _0x2a3991=_0x837fd4;return _0x2d07e1[_0x2a3991('0x1b4e')]('admin')?_0x41a295[_0x2a3991('0x155b')](_0x2a3991('0x190f'),{'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'offset':0x0}):_0x41a295['resolve'](_0x2a3991('0x14b3'),{'id':_0x2d07e1[_0x2a3991('0x14d4')]()['userProfileId'],'section':'ZohoAccounts','fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x500d35,_0x28683e){const _0x4bf17e=_0x837fd4;return _0x28683e[_0x4bf17e('0x1b4e')](_0x4bf17e('0x79b'))?null:_0x500d35[_0x4bf17e('0x155b')](_0x4bf17e('0x1f20'),{'fields':_0x4bf17e('0x19dd'),'id':_0x28683e[_0x4bf17e('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x837fd4('0x2401'),'Auth',function(_0x9d2dc6,_0x15c3e0){const _0x18654e=_0x837fd4;return _0x15c3e0[_0x18654e('0x1b4e')](_0x18654e('0x79b'))?null:_0x9d2dc6['resolve']('userProfileSection@get',{'fields':_0x18654e('0x1348'),'userProfileId':_0x15c3e0[_0x18654e('0x14d4')]()['userProfileId'],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0x645'),{'url':_0x837fd4('0xb4c'),'params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3048da,'controller':_0x837fd4('0x2034')}},'resolve':{'zohoAccount':[_0x837fd4('0x2401'),'$stateParams',function(_0x488756,_0x6a5a3b){const _0x4bc579=_0x837fd4;return _0x488756[_0x4bc579('0x155b')](_0x4bc579('0x190f'),{'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','id':_0x6a5a3b['id']});}],'userProfileSection':['apiResolver',_0x837fd4('0x1600'),function(_0x40c700,_0x190c54){const _0x2bb5c1=_0x837fd4;return _0x40c700[_0x2bb5c1('0x155b')]('userProfileSection@get',{'fields':_0x2bb5c1('0x1348'),'userProfileId':_0x190c54['getCurrentUser']()[_0x2bb5c1('0x1946')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x837fd4('0xba9')})['state'](_0x837fd4('0x2633'),{'url':_0x837fd4('0x12eb'),'views':{'content@app':{'templateUrl':_0x244af7,'controller':_0x837fd4('0x282e')}},'resolve':{'vtigerAccounts':['apiResolver',_0x837fd4('0x1600'),function(_0x4fe64a,_0x2b49b5){const _0x43a09c=_0x837fd4;return _0x2b49b5[_0x43a09c('0x1b4e')](_0x43a09c('0x79b'))?_0x4fe64a[_0x43a09c('0x155b')](_0x43a09c('0x364'),{'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','limit':0xa,'offset':0x0}):_0x4fe64a['resolve'](_0x43a09c('0x14b3'),{'id':_0x2b49b5[_0x43a09c('0x14d4')]()['userProfileId'],'section':_0x43a09c('0x18fb'),'fields':_0x43a09c('0x1de4'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x837fd4('0x2401'),'Auth',function(_0x417e96,_0x30dc64){const _0xf19090=_0x837fd4;return _0x30dc64[_0xf19090('0x1b4e')](_0xf19090('0x79b'))?null:_0x417e96[_0xf19090('0x155b')]('userProfile@get',{'fields':_0xf19090('0x19dd'),'id':_0x30dc64[_0xf19090('0x14d4')]()[_0xf19090('0x1946')]});}],'userProfileSection':['apiResolver',_0x837fd4('0x1600'),function(_0x388672,_0x4d54da){const _0x352c25=_0x837fd4;return _0x4d54da[_0x352c25('0x1b4e')](_0x352c25('0x79b'))?null:_0x388672[_0x352c25('0x155b')](_0x352c25('0x40'),{'fields':_0x352c25('0x1348'),'userProfileId':_0x4d54da[_0x352c25('0x14d4')]()[_0x352c25('0x1946')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0x1221'),{'url':_0x837fd4('0xb4c'),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5e829f,'controller':_0x837fd4('0xbd7')}},'resolve':{'vtigerAccount':[_0x837fd4('0x2401'),_0x837fd4('0x1caf'),function(_0x48762a,_0xeb52){const _0x26b40d=_0x837fd4;return _0x48762a[_0x26b40d('0x155b')](_0x26b40d('0x364'),{'fields':_0x26b40d('0x1de4'),'id':_0xeb52['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x2a548f,_0x52e87b){const _0x51fed2=_0x837fd4;return _0x2a548f[_0x51fed2('0x155b')](_0x51fed2('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x52e87b['getCurrentUser']()[_0x51fed2('0x1946')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')]('app.integrations.dynamics365Accounts',{'url':_0x837fd4('0x1767'),'views':{'content@app':{'templateUrl':_0x56fcca,'controller':_0x837fd4('0x2568')}},'resolve':{'dynamics365Accounts':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x5d7f9c,_0x359687){const _0x19567e=_0x837fd4;return _0x359687[_0x19567e('0x1b4e')](_0x19567e('0x79b'))?_0x5d7f9c[_0x19567e('0x155b')](_0x19567e('0x13aa'),{'fields':_0x19567e('0x2400'),'limit':0xa,'offset':0x0}):_0x5d7f9c[_0x19567e('0x155b')]('userProfile@getResources',{'id':_0x359687['getCurrentUser']()[_0x19567e('0x1946')],'section':'Dynamics365Accounts','fields':'createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x5a4879,_0x571718){const _0x34c1f4=_0x837fd4;return _0x571718[_0x34c1f4('0x1b4e')](_0x34c1f4('0x79b'))?null:_0x5a4879[_0x34c1f4('0x155b')](_0x34c1f4('0x1f20'),{'fields':_0x34c1f4('0x19dd'),'id':_0x571718['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x837fd4('0x1600'),function(_0x36cc0c,_0xb67ccc){const _0x1e8696=_0x837fd4;return _0xb67ccc[_0x1e8696('0x1b4e')](_0x1e8696('0x79b'))?null:_0x36cc0c[_0x1e8696('0x155b')](_0x1e8696('0x40'),{'fields':_0x1e8696('0x1348'),'userProfileId':_0xb67ccc[_0x1e8696('0x14d4')]()[_0x1e8696('0x1946')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')]('app.integrations.dynamics365Accounts.edit',{'url':_0x837fd4('0xb4c'),'params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x38cd04,'controller':_0x837fd4('0xb5b')}},'resolve':{'dynamics365Account':['apiResolver',_0x837fd4('0x1caf'),function(_0x149d70,_0x288781){const _0x582cf4=_0x837fd4;return _0x149d70['resolve'](_0x582cf4('0x13aa'),{'fields':_0x582cf4('0x2400'),'id':_0x288781['id']});}],'userProfileSection':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x4b02fb,_0x5b02db){const _0x1127de=_0x837fd4;return _0x4b02fb['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5b02db[_0x1127de('0x14d4')]()['userProfileId'],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':'integrations'})[_0x837fd4('0x1a49')]('app.integrations.servicenowAccounts',{'url':_0x837fd4('0x266'),'views':{'content@app':{'templateUrl':_0x227d2e,'controller':'ServicenowAccountsController\x20as\x20vm'}},'resolve':{'servicenowAccounts':['apiResolver','Auth',function(_0x2290a5,_0x2a640c){const _0x56226c=_0x837fd4;return _0x2a640c[_0x56226c('0x1b4e')](_0x56226c('0x79b'))?_0x2290a5[_0x56226c('0x155b')]('intServicenowAccount@get',{'fields':_0x56226c('0x1aa1'),'limit':0xa,'offset':0x0}):_0x2290a5[_0x56226c('0x155b')](_0x56226c('0x14b3'),{'id':_0x2a640c['getCurrentUser']()['userProfileId'],'section':_0x56226c('0x1243'),'fields':_0x56226c('0x1aa1'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x525f98,_0x1c2ce9){const _0x4be54c=_0x837fd4;return _0x1c2ce9['hasRole']('admin')?null:_0x525f98[_0x4be54c('0x155b')](_0x4be54c('0x1f20'),{'fields':_0x4be54c('0x19dd'),'id':_0x1c2ce9[_0x4be54c('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x837fd4('0x2401'),'Auth',function(_0x39df7a,_0x4e451a){const _0x3c6239=_0x837fd4;return _0x4e451a['hasRole'](_0x3c6239('0x79b'))?null:_0x39df7a[_0x3c6239('0x155b')](_0x3c6239('0x40'),{'fields':_0x3c6239('0x1348'),'userProfileId':_0x4e451a['getCurrentUser']()[_0x3c6239('0x1946')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0x171f'),{'url':'/:id?tab','params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x450a3f,'controller':_0x837fd4('0x1403')}},'resolve':{'servicenowAccount':[_0x837fd4('0x2401'),_0x837fd4('0x1caf'),function(_0x419e96,_0x23f6bd){const _0x5bbdbf=_0x837fd4;return _0x419e96[_0x5bbdbf('0x155b')](_0x5bbdbf('0x1e39'),{'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','id':_0x23f6bd['id']});}],'userProfileSection':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x5d8284,_0x5dd5de){const _0x1599dd=_0x837fd4;return _0x5d8284[_0x1599dd('0x155b')](_0x1599dd('0x40'),{'fields':_0x1599dd('0x1348'),'userProfileId':_0x5dd5de[_0x1599dd('0x14d4')]()[_0x1599dd('0x1946')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x837fd4('0xba9')})[_0x837fd4('0x1a49')](_0x837fd4('0xe3'),{'url':_0x837fd4('0x491'),'views':{'content@app':{'templateUrl':_0x1ab028,'controller':_0x837fd4('0xc40')}},'resolve':{'freshsalesAccounts':['apiResolver',_0x837fd4('0x1600'),function(_0x4a86a2,_0x1fdb1b){const _0x2065c9=_0x837fd4;return _0x1fdb1b[_0x2065c9('0x1b4e')](_0x2065c9('0x79b'))?_0x4a86a2[_0x2065c9('0x155b')](_0x2065c9('0x19b2'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0}):_0x4a86a2[_0x2065c9('0x155b')](_0x2065c9('0x14b3'),{'id':_0x1fdb1b[_0x2065c9('0x14d4')]()[_0x2065c9('0x1946')],'section':'FreshsalesAccounts','fields':_0x2065c9('0x26ae'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x837fd4('0x2401'),'Auth',function(_0x30addb,_0xa8b4cc){const _0x598ca9=_0x837fd4;return _0xa8b4cc[_0x598ca9('0x1b4e')](_0x598ca9('0x79b'))?null:_0x30addb['resolve'](_0x598ca9('0x1f20'),{'fields':'id,name,crudPermissions','id':_0xa8b4cc[_0x598ca9('0x14d4')]()[_0x598ca9('0x1946')]});}],'userProfileSection':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x25fdf8,_0x502df5){const _0x2a1e91=_0x837fd4;return _0x502df5[_0x2a1e91('0x1b4e')](_0x2a1e91('0x79b'))?null:_0x25fdf8[_0x2a1e91('0x155b')](_0x2a1e91('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x502df5['getCurrentUser']()[_0x2a1e91('0x1946')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x837fd4('0xba9')})['state'](_0x837fd4('0x1561'),{'url':'/:id?tab','params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2acef5,'controller':'FreshsalesAccountController\x20as\x20vm'}},'resolve':{'freshsalesAccount':[_0x837fd4('0x2401'),_0x837fd4('0x1caf'),function(_0x59fea1,_0x59d386){const _0x4e4fa2=_0x837fd4;return _0x59fea1['resolve'](_0x4e4fa2('0x19b2'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x59d386['id']});}],'userProfileSection':[_0x837fd4('0x2401'),_0x837fd4('0x1600'),function(_0x50bffe,_0x498768){const _0x2f0f6c=_0x837fd4;return _0x50bffe[_0x2f0f6c('0x155b')]('userProfileSection@get',{'fields':_0x2f0f6c('0x1348'),'userProfileId':_0x498768[_0x2f0f6c('0x14d4')]()['userProfileId'],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x837fd4('0xba9')}),_0x52582c[_0x837fd4('0x1b1a')]('app/main/apps/integrations');}angular['module'](_0x566993('0x28c'),['ngCsv',_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),_0x566993('0x21f9'),'ckeditor',_0x566993('0x158f'),_0x566993('0x20fc'),'ngAnimate',_0x566993('0x1146'),_0x566993('0x1698'),_0x566993('0x269'),'mwFormUtils',_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392')])[_0x566993('0xea9')](_0x320286)['controller'](_0x566993('0x16a5'),_0xce7c48)['controller']('DeskAccountsController',_0x4e9a10)[_0x566993('0x1e65')](_0x566993('0x1ac6'),_0x4cbab7)[_0x566993('0x1e65')](_0x566993('0xa62'),_0x12696a)['controller']('CreateOrEditDeskAccountItemDialogController',_0x68c68d)['controller'](_0x566993('0x6c4'),_0x3313b7)[_0x566993('0x1e65')](_0x566993('0x1703'),_0x42aa1f)[_0x566993('0x1e65')]('Dynamics365AccountsController',_0x58349a)[_0x566993('0x1e65')](_0x566993('0x82d'),_0x2d58d4)['controller'](_0x566993('0xe3f'),_0x1bbf69)[_0x566993('0x1e65')](_0x566993('0x2831'),_0x7e370c)[_0x566993('0x1e65')](_0x566993('0x12f4'),_0x4a75b8)[_0x566993('0x1e65')](_0x566993('0x1df'),_0x29bdcf)[_0x566993('0x1e65')]('FreshdeskAccountConfigurationsController',_0x22f552)['controller'](_0x566993('0x109e'),_0xd3f3f8)[_0x566993('0x1e65')](_0x566993('0x1fd0'),_0x5cba02)['controller']('FreshdeskAccountController',_0x56b0e7)[_0x566993('0x1e65')](_0x566993('0x216'),_0x3d64f7)[_0x566993('0x1e65')](_0x566993('0x22f4'),_0x429bdf)['controller'](_0x566993('0x77a'),_0x310854)[_0x566993('0x1e65')](_0x566993('0xc05'),_0x1c4062)[_0x566993('0x1e65')](_0x566993('0x11ee'),_0x4c923d)['controller'](_0x566993('0x1777'),_0x3afa5d)[_0x566993('0x1e65')](_0x566993('0x6c7'),_0x116093)['controller']('CreateOrEditSalesforceAccountDialogController',_0x46ff42)[_0x566993('0x1e65')](_0x566993('0x1599'),_0x4e91e8)[_0x566993('0x1e65')](_0x566993('0xc06'),_0x349e6e)[_0x566993('0x1e65')](_0x566993('0xa10'),_0x5f346d)['controller'](_0x566993('0x179a'),_0x2dfb46)['controller'](_0x566993('0xfe'),_0x3e9268)[_0x566993('0x1e65')]('CreateOrEditServicenowAccountDialogController',_0x20ead4)[_0x566993('0x1e65')](_0x566993('0x121c'),_0x37314f)[_0x566993('0x1e65')]('CreateOrEditServicenowConfigurationDialogController',_0x24e77c)[_0x566993('0x1e65')](_0x566993('0x187b'),_0x3cea38)['controller'](_0x566993('0x17df'),_0xa31b53)[_0x566993('0x1e65')]('ServicenowAccountsController',_0x2b9140)[_0x566993('0x1e65')](_0x566993('0x13c6'),_0x22013d)[_0x566993('0x1e65')](_0x566993('0x120e'),_0x22195e)[_0x566993('0x1e65')](_0x566993('0xf72'),_0x4de3f1)['controller'](_0x566993('0x14a6'),_0x1dbd0c)[_0x566993('0x1e65')](_0x566993('0x1ee5'),_0x36629d)[_0x566993('0x1e65')]('SugarcrmAccountsController',_0x5366a0)[_0x566993('0x1e65')]('CreateOrEditVtigerAccountDialogController',_0x1cc6e7)['controller'](_0x566993('0x247d'),_0x4bde12)['controller'](_0x566993('0xc2c'),_0x47ebce)['controller']('CreateOrEditVtigerAccountItemDialogController',_0x21cc71)[_0x566993('0x1e65')]('VtigerAccountController',_0x45742d)[_0x566993('0x1e65')]('VtigerAccountsController',_0x13d8ac)[_0x566993('0x1e65')](_0x566993('0x1fcf'),_0x108d65)['controller']('CreateOrEditZendeskAccountItemDialogController',_0x19cf57)[_0x566993('0x1e65')]('ZendeskAccountController',_0x47dec9)[_0x566993('0x1e65')](_0x566993('0x2e6'),_0x2a46aa)[_0x566993('0x1e65')](_0x566993('0x13f5'),_0x3ec6fb)[_0x566993('0x1e65')](_0x566993('0x2785'),_0x4a8067)[_0x566993('0x1e65')](_0x566993('0xd6a'),_0x456b65)['controller'](_0x566993('0x2482'),_0x2a40f7)[_0x566993('0x1e65')]('CreateOrEditZohoConfigurationDialogController',_0x5420cf)['controller']('CreateOrEditZohoAccountItemDialogController',_0x3cd7de)[_0x566993('0x1e65')](_0x566993('0xad8'),_0xf3235f)['controller'](_0x566993('0x23b9'),_0x2d4182);const _0x4e0c69=_0x21a6a1['p']+_0x566993('0x1e1c'),_0x140450=_0x21a6a1['p']+_0x566993('0xe90'),_0x13e483=_0x21a6a1['p']+_0x566993('0x1706');_0x11f1bf[_0x566993('0x17bb')]=['$document',_0x566993('0x1fe5'),'$state',_0x566993('0x1a29'),_0x566993('0x1558'),'api'];function _0x11f1bf(_0x257f24,_0xac1d8,_0xef7ceb,_0x5ce177,_0x105361,_0xc82afe){const _0x5eb6ae=_0x566993,_0x489094=this;_0x489094[_0x5eb6ae('0x1a29')]=_0x5ce177||{},_0x489094[_0x5eb6ae('0x11fa')]=0x0,_0x489094[_0x5eb6ae('0x1e14')]=0x0,_0x489094[_0x5eb6ae('0x1b80')]=0x0,_0x489094[_0x5eb6ae('0x2774')]=[{'name':_0x5eb6ae('0x21a8'),'icon':_0x5eb6ae('0x1196')},{'name':_0x5eb6ae('0x8c5'),'icon':_0x5eb6ae('0x11d1')},{'name':_0x5eb6ae('0x108a'),'icon':_0x5eb6ae('0x16b4')},{'name':_0x5eb6ae('0x2228'),'icon':_0x5eb6ae('0x1147')},{'name':'fax','icon':_0x5eb6ae('0x41c')},{'name':_0x5eb6ae('0xab2'),'icon':_0x5eb6ae('0x1f64')},{'name':_0x5eb6ae('0x245'),'icon':_0x5eb6ae('0xfdd')}],_0x489094['modules']=[{'name':'cm','icon':'icon-account-circle'},{'name':_0x5eb6ae('0x707'),'icon':_0x5eb6ae('0x498')},{'name':'jscripty','icon':_0x5eb6ae('0x25f3')}],_0x489094[_0x5eb6ae('0x90f')]=[{'name':'webrtc','icon':_0x5eb6ae('0x20be')},{'name':_0x5eb6ae('0x2103'),'icon':_0x5eb6ae('0x1dae')},{'name':_0x5eb6ae('0xbb4'),'icon':_0x5eb6ae('0x1d57')},{'name':_0x5eb6ae('0x1fcd'),'icon':_0x5eb6ae('0x1ace')},{'name':'ai','icon':_0x5eb6ae('0xaed')}],_0x489094[_0x5eb6ae('0x94a')]=[{'name':_0x5eb6ae('0x20f2'),'icon':_0x5eb6ae('0x1d77'),'restart':!![],'label':_0x5eb6ae('0x2774'),'enabled':_0x5eb6ae('0x21a8')},{'name':_0x5eb6ae('0x22e0'),'icon':_0x5eb6ae('0x18d5'),'restart':![],'label':_0x5eb6ae('0x94a'),'enabled':_0x5eb6ae('0x8c5')}],_0x489094['others']=[{'name':_0x5eb6ae('0x1842'),'icon':'icon-cloud-download'}],_0xc82afe[_0x5eb6ae('0x166f')]['get']({'fields':'id','role':_0x5eb6ae('0x7b0'),'online':!![]})[_0x5eb6ae('0x1964')][_0x5eb6ae('0x173b')](function(_0x16c6f6){const _0x27a55f=_0x5eb6ae;return _0x489094[_0x27a55f('0x11fa')]=_0x16c6f6&&_0x16c6f6[_0x27a55f('0x1a2f')]?_0x16c6f6[_0x27a55f('0x1a2f')]:0x0,_0xc82afe['user'][_0x27a55f('0x1d97')]({'fields':'id','role':_0x27a55f('0xb97')})[_0x27a55f('0x1964')];})[_0x5eb6ae('0x173b')](function(_0x41d5ed){const _0x172242=_0x5eb6ae;return _0x489094[_0x172242('0x1e14')]=_0x41d5ed&&_0x41d5ed[_0x172242('0x1a2f')]?_0x41d5ed[_0x172242('0x1a2f')]:0x0,_0xc82afe['user'][_0x172242('0x1d97')]({'fields':'id','role':_0x172242('0x149c')})[_0x172242('0x1964')];})[_0x5eb6ae('0x173b')](function(_0x1f7828){const _0x4fc7e7=_0x5eb6ae;_0x489094[_0x4fc7e7('0x1b80')]=_0x1f7828&&_0x1f7828[_0x4fc7e7('0x1a2f')]?_0x1f7828['count']:0x0;})['catch'](function(_0x2c7ac6){const _0x569d29=_0x5eb6ae;console[_0x569d29('0xe37')](_0x2c7ac6);});function _0x469f57(_0x59033c){const _0x306fb2=_0x5eb6ae;_0xac1d8[_0x306fb2('0x1cb7')]({'controller':'UpdateLicenseDialogController','controllerAs':'vm','templateUrl':_0x140450,'parent':angular[_0x306fb2('0xb6d')](_0x257f24['body']),'targetEvent':_0x59033c,'clickOutsideToClose':!![],'locals':{'license':_0x5ce177}});}function _0x36d20a(_0x52a13a){const _0x3f2aeb=_0x5eb6ae;_0xac1d8[_0x3f2aeb('0x1cb7')]({'controller':_0x3f2aeb('0x1f08'),'controllerAs':'vm','templateUrl':_0x13e483,'parent':angular[_0x3f2aeb('0xb6d')](_0x257f24['body']),'targetEvent':_0x52a13a,'clickOutsideToClose':!![],'locals':{'license':_0x5ce177,'channels':_0x489094[_0x3f2aeb('0x2774')],'modules':_0x489094['modules'],'addons':_0x489094['addons'],'sessions':_0x489094['sessions'],'others':_0x489094[_0x3f2aeb('0x11d8')]}});}function _0x47de7e(){const _0x6d2e75=_0x5eb6ae;_0xef7ceb['go'](_0x6d2e75('0x1754'),{'tab':0x1});}_0x489094[_0x5eb6ae('0x1e34')]=_0x36d20a,_0x489094['updateLicense']=_0x469f57,_0x489094[_0x5eb6ae('0x53f')]=_0x47de7e;}const _0x525c88=_0x11f1bf;_0x1b6b84[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0x1a29'),_0x566993('0x2774'),_0x566993('0x2018'),'addons','sessions',_0x566993('0x11d8'),'api',_0x566993('0x1600'),'$translate'];function _0x1b6b84(_0x49673d,_0x53a339,_0x1c927f,_0x278c5d,_0x2a7b3f,_0x3b55a5,_0x126b77,_0x218f06,_0x4ae348,_0x18e56f,_0x176440){const _0xef9ba8=_0x566993,_0x10b04b=this;_0x10b04b['errors']=[],_0x10b04b['user']=_0x18e56f[_0xef9ba8('0x14d4')](),_0x10b04b['license']=angular[_0xef9ba8('0x2e3')](_0x1c927f),_0x10b04b[_0xef9ba8('0x2774')]=_0x278c5d,_0x10b04b[_0xef9ba8('0x2018')]=_0x2a7b3f,_0x10b04b[_0xef9ba8('0x90f')]=_0x3b55a5,_0x10b04b[_0xef9ba8('0x94a')]=_0x126b77,_0x10b04b[_0xef9ba8('0x11d8')]=_0x218f06,_0x10b04b[_0xef9ba8('0x1a29')]['name']=_0x10b04b[_0xef9ba8('0x166f')][_0xef9ba8('0x572')],_0x10b04b['license']['email']=_0x10b04b[_0xef9ba8('0x166f')][_0xef9ba8('0x28e')],_0x10b04b[_0xef9ba8('0x584')]=_0xaf5b2f,_0x10b04b[_0xef9ba8('0x18e2')]=_0x57b232;function _0xaf5b2f(){const _0x16c528=_0xef9ba8;_0x10b04b[_0x16c528('0x1d4a')]=[],_0x10b04b[_0x16c528('0xdf9')]=_0x16c528('0x19fc');for(const _0x3ccc38 in _0x10b04b[_0x16c528('0x1a29')]){typeof _0x10b04b[_0x16c528('0x1a29')][_0x3ccc38]!=='undefined'&&!_0x3c8d8a()[_0x16c528('0x2814')]([_0x16c528('0x1964'),'$resolved'],_0x3ccc38)&&(_0x1c927f[_0x3ccc38]===_0x10b04b[_0x16c528('0x1a29')][_0x3ccc38]?_0x10b04b[_0x16c528('0xdf9')]+='|'+_0x3ccc38+'|'+(_0x1c927f[_0x3ccc38]!==undefined?_0x1c927f[_0x3ccc38]:'')+'|'+_0x10b04b['license'][_0x3ccc38]+'|\x0a':_0x10b04b['table']+='|'+_0x3ccc38+_0x16c528('0x17c6')+(_0x1c927f[_0x3ccc38]!==undefined?_0x1c927f[_0x3ccc38]:'')+'{color}|*'+_0x10b04b['license'][_0x3ccc38]+_0x16c528('0x20db'));}_0x4ae348[_0x16c528('0x1681')][_0x16c528('0x1195')]({'key':_0x16c528('0xec1'),'summary':_0x16c528('0x10b2'),'description':_0x10b04b['table'],'issuetype':'License\x20Request'})['$promise']['then'](function(){const _0x125d1f=_0x16c528;_0x53a339['success']({'title':_0x125d1f('0x16b7'),'msg':_0x176440[_0x125d1f('0x1467')](_0x125d1f('0x1af')),'timeout':0x3a98}),_0x57b232();})[_0x16c528('0x103c')](function(_0x4bbe05){const _0x56808e=_0x16c528;console[_0x56808e('0x15aa')](_0x4bbe05),_0x10b04b[_0x56808e('0x1d4a')]=[{'message':_0x176440[_0x56808e('0x1467')](_0x56808e('0x2334')),'type':_0x56808e('0x1ab6')}];});}function _0x57b232(){_0x49673d['hide']();}}const _0x189fcc=_0x1b6b84;_0x3fab2e[_0x566993('0x17bb')]=['$mdDialog',_0x566993('0x1558'),_0x566993('0x1a29'),_0x566993('0xbd4')];function _0x3fab2e(_0x421c27,_0x494cfe,_0x45886a,_0x22f182){const _0x5d0099=_0x566993,_0x311c12=this;_0x311c12[_0x5d0099('0x1d4a')]=[],_0x311c12[_0x5d0099('0x1a29')]=angular[_0x5d0099('0x2e3')](_0x45886a),_0x311c12[_0x5d0099('0x18ae')],_0x311c12[_0x5d0099('0x11de')]=_0x54e4eb,_0x311c12[_0x5d0099('0x18e2')]=_0x5412c8;function _0x54e4eb(){const _0x147c19=_0x5d0099;return _0x22f182[_0x147c19('0x1a29')][_0x147c19('0x1842')]({'id':0x1,'key':_0x311c12[_0x147c19('0x18ae')]})['$promise']['then'](function(_0x54effd){const _0xd91548=_0x147c19;_0x54effd&&(_0x54effd[_0xd91548('0x1835')]?_0x494cfe[_0xd91548('0x15aa')]({'title':'License\x20update\x20failed!','msg':_0xd91548('0xbfb')}):_0x494cfe[_0xd91548('0xdfe')]({'title':'License\x20properly\x20updated!','msg':_0xd91548('0x6ce')}));})['catch'](function(_0x5aea46){const _0x2dbd29=_0x147c19;_0x494cfe[_0x2dbd29('0x15aa')]({'title':_0x5aea46['status']?_0x2dbd29('0x137')+_0x5aea46[_0x2dbd29('0x276f')]+'\x20-\x20'+_0x5aea46[_0x2dbd29('0x2696')]:_0x2dbd29('0x16bc'),'msg':_0x5aea46[_0x2dbd29('0x1e07')]?JSON[_0x2dbd29('0x100b')](_0x5aea46[_0x2dbd29('0x1e07')]):_0x5aea46[_0x2dbd29('0x1b75')]()});});}function _0x5412c8(){const _0x27079b=_0x5d0099;_0x421c27[_0x27079b('0x1cf4')]();}}const _0x4d587c=_0x3fab2e;_0x34336e[_0x566993('0x17bb')]=['$stateProvider'];function _0x34336e(_0x327774){const _0x26f73a=_0x566993;_0x327774[_0x26f73a('0x1a49')](_0x26f73a('0x1203'),{'url':_0x26f73a('0xd44'),'views':{'content@app':{'templateUrl':_0x4e0c69,'controller':_0x26f73a('0x308')}},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'});}angular[_0x566993('0x22c4')](_0x566993('0x1203'),[])['config'](_0x34336e)[_0x566993('0x1e65')](_0x566993('0x1540'),_0x525c88)[_0x566993('0x1e65')]('RequestLicenseDialogController',_0x189fcc)['controller'](_0x566993('0xb69'),_0x4d587c);const _0x412a3c=_0x21a6a1['p']+'src/js/modules/main/apps/settings/views/system/system.html/system.html';_0x1cdae6['$inject']=[_0x566993('0x66f'),_0x566993('0x1b13'),_0x566993('0x1fe5'),'$state',_0x566993('0x1ed'),'processes','toasty',_0x566993('0xbd4')];function _0x1cdae6(_0x4b0dfa,_0x53188a,_0x3a792c,_0x1b8d86,_0x458bb3,_0x4076b5,_0x42e12c,_0x5763cb){const _0x153f52=_0x566993,_0x47c5a8=this;let _0x2810a3=null;_0x47c5a8[_0x153f52('0x1ed')]=_0x458bb3||{},_0x47c5a8['processes']=_0x4076b5?_0x4076b5[_0x153f52('0x6aa')]:[],_0x47c5a8['processLimit']=0x7,_0x47c5a8[_0x153f52('0xd5f')]=_0x1b8d86[_0x153f52('0x197a')]['tab']||0x0,_0x47c5a8[_0x153f52('0x1cf7')]=_0x2a6d2d,_0x47c5a8[_0x153f52('0xb53')]=_0x2c7cae,_0x47c5a8['cancelInterval']=_0x594ade,_0x47c5a8[_0x153f52('0x446')]=_0x442b84;function _0x594ade(){_0x53188a['cancel'](_0x2810a3),_0x2810a3=null;}function _0x442b84(_0x1d4d5a,_0x556e32,_0x1ec43b){const _0x171ed2=_0x153f52,_0x514dbb=_0x3a792c[_0x171ed2('0x1d02')]()[_0x171ed2('0x20d6')](_0x171ed2('0x1620')+_0x556e32+'?')['textContent']('The\x20status\x20will\x20be\x20changed\x20to:\x20'+_0x1ec43b[_0x171ed2('0x1164')]())[_0x171ed2('0x217')]('Lucky\x20day')[_0x171ed2('0x21de')](_0x1d4d5a)['ok']('Ok')[_0x171ed2('0x1e1f')](_0x171ed2('0x1d4e'));_0x3a792c[_0x171ed2('0x1cb7')](_0x514dbb)[_0x171ed2('0x173b')](function(){const _0x15c5f9=_0x171ed2;return _0x5763cb[_0x15c5f9('0x278f')][_0x15c5f9('0x1842')]({'id':_0x556e32,'status':_0x1ec43b});})[_0x171ed2('0x173b')](function(){const _0x5f4b42=_0x171ed2;_0x53188a(_0x47c5a8[_0x5f4b42('0xb53')],0x3e8,0x1);})[_0x171ed2('0x173b')](function(){const _0x449b7d=_0x171ed2;_0x42e12c[_0x449b7d('0xdfe')]({'title':_0x449b7d('0x1d4'),'msg':_0x449b7d('0x441')+_0x1ec43b});});}function _0x2a6d2d(){const _0xdd2023=_0x153f52;return _0x5763cb[_0xdd2023('0x1ed')][_0xdd2023('0x1d97')]()[_0xdd2023('0x1964')][_0xdd2023('0x173b')](function(_0x502a60){const _0x42e173=_0xdd2023;_0x3c8d8a()[_0x42e173('0x9ef')](_0x47c5a8[_0x42e173('0x1ed')],_0x502a60);})[_0xdd2023('0x103c')](_0x47c5a8['cancelInterval']);}function _0x2c7cae(){const _0x2f443f=_0x153f52;return _0x5763cb['pm2'][_0x2f443f('0x1d97')]()[_0x2f443f('0x1964')][_0x2f443f('0x173b')](function(_0x4b9835){const _0x4d014b=_0x2f443f;_0x3c8d8a()['merge'](_0x47c5a8['processes'],_0x4b9835?_0x4b9835[_0x4d014b('0x6aa')]:[]);})[_0x2f443f('0x103c')](_0x47c5a8[_0x2f443f('0xd51')]);}_0x2810a3=_0x53188a(_0x47c5a8['getInfo'],0x1388),_0x4b0dfa[_0x153f52('0xbf6')](_0x153f52('0x16d2'),function(){const _0xbe4679=_0x153f52;_0x47c5a8[_0xbe4679('0xd51')]();});}const _0x48bcaf=_0x1cdae6;_0x2cb8c8['$inject']=[_0x566993('0xccc')];function _0x2cb8c8(_0x27813c){const _0x343803=_0x566993;_0x27813c[_0x343803('0x1a49')]('app.settings.system',{'url':_0x343803('0x678'),'views':{'content@app':{'templateUrl':_0x412a3c,'controller':_0x343803('0x114e')}},'resolve':{'system':['apiResolver',function(_0x560a33){const _0xb0436a=_0x343803;return _0x560a33[_0xb0436a('0x155b')](_0xb0436a('0x688'));}],'processes':[_0x343803('0x2401'),function(_0x500af7){const _0x4a3a38=_0x343803;return _0x500af7[_0x4a3a38('0x155b')](_0x4a3a38('0x15a0'));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x343803('0x1fe9')});}angular[_0x566993('0x22c4')](_0x566993('0x1754'),[])[_0x566993('0xea9')](_0x2cb8c8)['controller']('SystemController',_0x48bcaf);const _0x148d2e=_0x21a6a1['p']+_0x566993('0x1427');_0x107eaf[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$interval','$window',_0x566993('0x24b5'),_0x566993('0xbd4')];function _0x107eaf(_0x5177a5,_0x31b96f,_0x5cec84,_0x940f16,_0x454976){const _0x3998e1=_0x566993,_0x2e4de9=this;_0x2e4de9[_0x3998e1('0x20d6')]=_0x3998e1('0x10ac'),_0x2e4de9[_0x3998e1('0x217f')]=0x0,_0x2e4de9[_0x3998e1('0x1fad')]=!![],_0x2e4de9['output']=_0x3998e1('0x18fa'),_0x2e4de9[_0x3998e1('0xdfe')]=!![],_0x2e4de9[_0x3998e1('0x55a')]=_0x31b96f(function(){const _0x37cc69=_0x3998e1;_0x2e4de9['progress']<0x5a&&(_0x2e4de9[_0x37cc69('0x217f')]+=0x1);},0x3e8),_0x454976[_0x3998e1('0x516')][_0x3998e1('0x54f')]()[_0x3998e1('0x1964')][_0x3998e1('0x173b')](function(_0x1b89bf){const _0xd56b7b=_0x3998e1;return _0x2e4de9[_0xd56b7b('0x1e7a')]=_0x1b89bf['output']+'...',_0x454976['version'][_0xd56b7b('0x151')]()['$promise'];})[_0x3998e1('0x173b')](function(_0x52a867){const _0x57d996=_0x3998e1;return _0x2e4de9['output']=_0x52a867[_0x57d996('0x1e7a')]+_0x57d996('0xdee'),_0x454976[_0x57d996('0x516')][_0x57d996('0x3ad')]()[_0x57d996('0x1964')];})['then'](function(_0x4e442e){const _0x31fd8e=_0x3998e1;return _0x2e4de9[_0x31fd8e('0x1e7a')]=_0x4e442e[_0x31fd8e('0x1e7a')]+_0x31fd8e('0xdee'),_0x454976[_0x31fd8e('0x516')][_0x31fd8e('0x13d')]()[_0x31fd8e('0x1964')];})[_0x3998e1('0x173b')](function(_0x15d3bf){const _0x49d489=_0x3998e1;return _0x2e4de9['output']=_0x15d3bf[_0x49d489('0x1e7a')]+_0x49d489('0xdee'),_0x454976['version'][_0x49d489('0x1ebc')]()[_0x49d489('0x1964')];})['then'](function(){const _0x1e0e50=_0x3998e1;_0x2e4de9[_0x1e0e50('0x1e7a')]='Waiting\x20to\x20restart\x20motion...',_0x940f16(function(){const _0x1b3035=_0x1e0e50;_0x2e4de9[_0x1b3035('0x109d')]();},0x7530);})[_0x3998e1('0x103c')](function(_0x5f3ff7){const _0xe3f535=_0x3998e1;_0x2e4de9[_0xe3f535('0xdfe')]=![],_0x2e4de9[_0xe3f535('0x109d')](),_0x2e4de9[_0xe3f535('0x1e7a')]=JSON[_0xe3f535('0x100b')](_0x5f3ff7);});function _0x28fdf0(){const _0x1fee39=_0x3998e1;angular[_0x1fee39('0x4a5')](_0x2e4de9['interval'])&&(_0x31b96f[_0x1fee39('0x1e1f')](_0x2e4de9[_0x1fee39('0x55a')]),_0x2e4de9['interval']=undefined),_0x2e4de9[_0x1fee39('0x217f')]=0x64,_0x2e4de9[_0x1fee39('0x1fad')]=![];}function _0x588236(){const _0x56d544=_0x3998e1;_0x5cec84[_0x56d544('0x614')][_0x56d544('0x9e9')]();}function _0x5b04a2(){const _0x45df41=_0x3998e1;_0x5177a5[_0x45df41('0x1cf4')]();}_0x2e4de9[_0x3998e1('0x18e2')]=_0x5b04a2,_0x2e4de9[_0x3998e1('0x9e9')]=_0x588236,_0x2e4de9[_0x3998e1('0x109d')]=_0x28fdf0;}const _0xb0d395=_0x107eaf,_0x2557a2=_0x21a6a1['p']+_0x566993('0x1470');_0x52f78d[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1b13'),_0x566993('0x1b82'),_0x566993('0x516')];function _0x52f78d(_0x5b9cb9,_0x4ee480,_0x5b6793,_0x42679c){const _0x47abcd=_0x566993,_0x7ea57c=this;_0x7ea57c[_0x47abcd('0x516')]=_0x42679c||{};function _0x445b33(_0x423b19){const _0x4ca5d2=_0x47abcd,_0x39209b=_0x5b9cb9[_0x4ca5d2('0x1d02')]()['title'](_0x4ca5d2('0x1773'))['htmlContent']('The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement?')[_0x4ca5d2('0x217')]('')['targetEvent'](_0x423b19)[_0x4ca5d2('0x226c')](!![])[_0x4ca5d2('0x941')](angular[_0x4ca5d2('0xb6d')](_0x5b6793[_0x4ca5d2('0x1a5')]))['ok'](_0x4ca5d2('0x59'))[_0x4ca5d2('0x1e1f')]('Disagree');_0x5b9cb9[_0x4ca5d2('0x1cb7')](_0x39209b)['then'](function(){const _0x39c3ae=_0x4ca5d2;_0x5b9cb9[_0x39c3ae('0x1cb7')]({'controller':'UpdateDialogController','controllerAs':'vm','templateUrl':_0x2557a2,'parent':angular[_0x39c3ae('0xb6d')](_0x5b6793[_0x39c3ae('0x1a5')]),'targetEvent':_0x423b19,'clickOutsideToClose':![]});});}_0x7ea57c['updateConfirm']=_0x445b33;}const _0x40a3ea=_0x52f78d;_0x26ba21[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x26ba21(_0x258829){const _0x390012=_0x566993;_0x258829[_0x390012('0x1a49')](_0x390012('0x62e'),{'url':_0x390012('0x773'),'views':{'content@app':{'templateUrl':_0x148d2e,'controller':_0x390012('0x1a32')}},'resolve':{'version':[_0x390012('0x2401'),function(_0x45f3e0){const _0x38e7eb=_0x390012;return _0x45f3e0[_0x38e7eb('0x155b')](_0x38e7eb('0x1a7d'),{'latest':!![]});}],'userProfile':[_0x390012('0x2401'),_0x390012('0x1600'),function(_0x4b61dc,_0x2c7032){const _0x376df3=_0x390012;return _0x4b61dc[_0x376df3('0x155b')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x2c7032[_0x376df3('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x390012('0x2401'),'Auth',function(_0x4791c7,_0x2fb953){const _0x551e30=_0x390012;return _0x4791c7[_0x551e30('0x155b')](_0x551e30('0x40'),{'fields':_0x551e30('0x1348'),'userProfileId':_0x2fb953['getCurrentUser']()['userProfileId'],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x390012('0x1fe9')});}angular[_0x566993('0x22c4')](_0x566993('0x62e'),[])[_0x566993('0xea9')](_0x26ba21)[_0x566993('0x1e65')](_0x566993('0x391'),_0xb0d395)[_0x566993('0x1e65')](_0x566993('0x377'),_0x40a3ea);const _0x45052d=_0x21a6a1['p']+_0x566993('0x2423'),_0x2789f1=_0x21a6a1['p']+_0x566993('0x16ee'),_0x444115=_0x21a6a1['p']+_0x566993('0xba0'),_0x5758e7=_0x21a6a1['p']+'src/js/modules/main/apps/settings/views/customizations/customizations.html/customizations.html',_0x29512e=_0x21a6a1['p']+_0x566993('0x25ec'),_0x3bf8a4=_0x21a6a1['p']+_0x566993('0x15ba');_0x1e9ee8['$inject']=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x2542'),'api',_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x1e9ee8(_0x1ef7ac,_0x2deb1b,_0x41393a,_0x1cd286,_0x49c780,_0x553ec4,_0x52b68d,_0x2ac867,_0x3ff044,_0x38c530,_0x483d16,_0x35f1cf,_0x1318eb,_0x4eb95e,_0x3afc1d){const _0x15aac7=_0x566993,_0x1b21f6=this;_0x1b21f6[_0x15aac7('0x1a29')]=_0x4eb95e,_0x1b21f6['setting']=_0x3afc1d,_0x1b21f6['currentUser']=_0x1318eb[_0x15aac7('0x14d4')](),_0x1b21f6[_0x15aac7('0x2542')]=_0x3ff044||{'count':0x0,'rows':[]},_0x1b21f6['table']=_0x15aac7('0x2542'),_0x1b21f6[_0x15aac7('0x14d6')]='',_0x1b21f6[_0x15aac7('0x2303')]=null,_0x1b21f6[_0x15aac7('0x269f')]=[],_0x1b21f6['query']={'fields':'createdAt,updatedAt,id,name,service,data2,data1','sort':'-updatedAt','limit':0xa,'page':0x1},_0x1b21f6[_0x15aac7('0xd5a')]=_0x3c8d8a()[_0x15aac7('0x128')]([{'option':'AmazonAWS','value':'\x27AmazonAWS\x27'}],function(_0x47f9e7){const _0x2c6cf6=_0x15aac7;return _0x3c8d8a()['replace'](_0x47f9e7[_0x2c6cf6('0xa7b')],new RegExp('\x27','g'),'');}),_0x1b21f6[_0x15aac7('0x19eb')]=_0x4f3591,_0x1b21f6[_0x15aac7('0x1a20')]=_0x4ef68e,_0x1b21f6['success']=_0x50ed30,_0x1b21f6[_0x15aac7('0x1c15')]=_0x49c368,_0x1b21f6[_0x15aac7('0x1bbe')]=_0x312b72,_0x1b21f6[_0x15aac7('0x1059')]=_0x5592c1,_0x1b21f6[_0x15aac7('0x1927')]=_0x2c6465,_0x1b21f6['deleteSelectedAiTools']=_0x4c3498,_0x1b21f6[_0x15aac7('0x175f')]=_0x3332a1,_0x1b21f6['selectAllAiTools']=_0xf973e;function _0x4f3591(_0x5cf005,_0x52c0f5){const _0x91d2c5=_0x15aac7;_0x49c780['show']({'controller':_0x91d2c5('0x5a2'),'controllerAs':'vm','templateUrl':_0x3bf8a4,'parent':angular[_0x91d2c5('0xb6d')](_0x553ec4[_0x91d2c5('0x1a5')]),'targetEvent':_0x52c0f5,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x5cf005,'cloudProviders':_0x1b21f6[_0x91d2c5('0x2542')]['rows'],'license':_0x1b21f6['license'],'setting':null,'crudPermissions':_0x1b21f6[_0x91d2c5('0x1dc1')]}});}function _0x4ef68e(_0x2196b2,_0x1bdd58){const _0x16cd47=_0x15aac7,_0x5e7418=_0x49c780[_0x16cd47('0x1d02')]()['title'](_0x16cd47('0x5bb')+_0x3c8d8a()[_0x16cd47('0x10e')](_0x16cd47('0x144b'))+'?')['htmlContent'](_0x16cd47('0x15b9')+(_0x2196b2['name']||_0x16cd47('0x144b'))+_0x16cd47('0x24be')+_0x16cd47('0xd23'))[_0x16cd47('0x217')](_0x16cd47('0x1a67'))['targetEvent'](_0x1bdd58)['ok']('OK')['cancel']('CANCEL');_0x49c780[_0x16cd47('0x1cb7')](_0x5e7418)[_0x16cd47('0x173b')](function(){_0x5592c1(_0x2196b2);},function(){const _0x49ef25=_0x16cd47;console[_0x49ef25('0xe37')](_0x49ef25('0x468'));});}let _0x453784=!![],_0x141c1e=0x1;_0x1ef7ac[_0x15aac7('0x1bdb')](_0x15aac7('0x157b'),function(_0x180d73,_0x408b26){const _0x26ad43=_0x15aac7;_0x453784?_0x52b68d(function(){_0x453784=![];}):(!_0x408b26&&(_0x141c1e=_0x1b21f6[_0x26ad43('0xc49')]['page']),_0x180d73!==_0x408b26&&(_0x1b21f6[_0x26ad43('0xc49')]['page']=0x1),!_0x180d73&&(_0x1b21f6[_0x26ad43('0xc49')][_0x26ad43('0x182e')]=_0x141c1e),_0x1b21f6[_0x26ad43('0x1c15')]());});function _0x50ed30(_0x1f28b0){const _0x201522=_0x15aac7;_0x1b21f6[_0x201522('0x2542')]=_0x1f28b0||{'count':0x0,'rows':[]};}function _0x49c368(){const _0x53500a=_0x15aac7;_0x1b21f6[_0x53500a('0xc49')][_0x53500a('0x17f0')]=(_0x1b21f6[_0x53500a('0xc49')][_0x53500a('0x182e')]-0x1)*_0x1b21f6[_0x53500a('0xc49')][_0x53500a('0x3e')],_0x1318eb[_0x53500a('0x1b4e')](_0x53500a('0x79b'))?_0x1b21f6['promise']=_0x38c530[_0x53500a('0x144b')][_0x53500a('0x1d97')](_0x1b21f6[_0x53500a('0xc49')],_0x50ed30)[_0x53500a('0x1964')]:(_0x1b21f6[_0x53500a('0xc49')]['id']=_0x1b21f6[_0x53500a('0x257b')]['id'],_0x1b21f6[_0x53500a('0xc49')][_0x53500a('0x17c9')]='AiTools',_0x1b21f6['promise']=_0x38c530[_0x53500a('0x257b')][_0x53500a('0x135b')](_0x1b21f6[_0x53500a('0xc49')],_0x50ed30)[_0x53500a('0x1964')]);}function _0x312b72(_0x4edf35,_0x50e8da){const _0x3f5839=_0x15aac7;_0x49c780[_0x3f5839('0x1cb7')]({'controller':_0x3f5839('0x5a2'),'controllerAs':'vm','templateUrl':_0x3bf8a4,'parent':angular[_0x3f5839('0xb6d')](_0x553ec4[_0x3f5839('0x1a5')]),'targetEvent':_0x4edf35,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x50e8da,'cloudProviders':_0x1b21f6['cloudProviders']['rows'],'license':_0x1b21f6[_0x3f5839('0x1a29')],'setting':_0x1b21f6[_0x3f5839('0x251')],'crudPermissions':_0x1b21f6[_0x3f5839('0x1dc1')]}});}function _0x5592c1(_0x8d1cf7){const _0x20ac65=_0x15aac7;_0x38c530[_0x20ac65('0x144b')]['delete']({'id':_0x8d1cf7['id']})['$promise'][_0x20ac65('0x173b')](function(){const _0x1bf6ba=_0x20ac65;_0x3c8d8a()['remove'](_0x1b21f6[_0x1bf6ba('0x2542')][_0x1bf6ba('0x6aa')],{'id':_0x8d1cf7['id']}),_0x1b21f6[_0x1bf6ba('0x2542')][_0x1bf6ba('0x1a2f')]-=0x1,!_0x1b21f6[_0x1bf6ba('0x2542')][_0x1bf6ba('0x6aa')][_0x1bf6ba('0x543')]&&_0x1b21f6[_0x1bf6ba('0x1c15')](),_0x35f1cf[_0x1bf6ba('0xdfe')]({'title':_0x3c8d8a()[_0x1bf6ba('0x10e')](_0x1bf6ba('0x1160'))+_0x1bf6ba('0x1c5e'),'msg':_0x8d1cf7[_0x1bf6ba('0x10ad')]?_0x8d1cf7[_0x1bf6ba('0x10ad')]+_0x1bf6ba('0x25d2'):''});})[_0x20ac65('0x103c')](function(_0x136b58){const _0x5166bb=_0x20ac65;if(_0x136b58[_0x5166bb('0x1e07')]&&_0x136b58['data']['errors']&&_0x136b58[_0x5166bb('0x1e07')][_0x5166bb('0x1d4a')][_0x5166bb('0x543')]){_0x1b21f6[_0x5166bb('0x1d4a')]=_0x136b58[_0x5166bb('0x1e07')][_0x5166bb('0x1d4a')]||[{'message':_0x136b58[_0x5166bb('0x1b75')](),'type':_0x5166bb('0x4a')}];for(let _0x44bb1a=0x0;_0x44bb1a<_0x136b58[_0x5166bb('0x1e07')]['errors']['length'];_0x44bb1a++){_0x35f1cf['error']({'title':_0x136b58[_0x5166bb('0x1e07')][_0x5166bb('0x1d4a')][_0x44bb1a][_0x5166bb('0x1810')],'msg':_0x136b58['data'][_0x5166bb('0x1d4a')][_0x44bb1a]['message']});}}else _0x35f1cf[_0x5166bb('0x15aa')]({'title':_0x136b58[_0x5166bb('0x276f')]?_0x5166bb('0x137')+_0x136b58['status']+_0x5166bb('0x160c')+_0x136b58[_0x5166bb('0x2696')]:_0x5166bb('0x4a'),'msg':_0x136b58[_0x5166bb('0x1e07')]?JSON[_0x5166bb('0x100b')](_0x136b58[_0x5166bb('0x1e07')]['message']):_0x136b58[_0x5166bb('0x67f')]||_0x136b58[_0x5166bb('0x1b75')]()});});}function _0x2c6465(){const _0x454ee0=_0x15aac7,_0x2456e7=angular[_0x454ee0('0x2e3')](_0x1b21f6[_0x454ee0('0x269f')]);return _0x1b21f6[_0x454ee0('0x269f')]=[],_0x2456e7;}function _0x4c3498(_0x4a9648){const _0x32dccf=_0x15aac7,_0x10e22f=_0x49c780[_0x32dccf('0x1d02')]()['title'](_0x32dccf('0x6c6'))[_0x32dccf('0xf8b')](''+_0x1b21f6[_0x32dccf('0x269f')][_0x32dccf('0x543')]+_0x32dccf('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20CloudProviders')[_0x32dccf('0x21de')](_0x4a9648)['ok']('OK')[_0x32dccf('0x1e1f')]('CANCEL');_0x49c780[_0x32dccf('0x1cb7')](_0x10e22f)[_0x32dccf('0x173b')](function(){const _0x361e52=_0x32dccf;_0x1b21f6[_0x361e52('0x269f')][_0x361e52('0xa6a')](function(_0x4bcaab){_0x5592c1(_0x4bcaab);}),_0x1b21f6[_0x361e52('0x269f')]=[];});}function _0x3332a1(){const _0x2054eb=_0x15aac7;_0x1b21f6[_0x2054eb('0x269f')]=[];}function _0xf973e(){const _0x2e9489=_0x15aac7;_0x1b21f6[_0x2e9489('0x269f')]=_0x1b21f6[_0x2e9489('0x2542')][_0x2e9489('0x6aa')];}}const _0x1aa313=_0x1e9ee8;_0x33ae31[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x2542'),_0x566993('0x144b'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x33ae31(_0x3d542c,_0x3d96e2,_0x49871a,_0x4e3f5d,_0x4aa640,_0x1f26fe,_0x18db96,_0x43dcfc,_0x13376c,_0x131859,_0x36beb6,_0x24bde9,_0x36a194){const _0x506840=_0x566993,_0x5a22e5=this;_0x5a22e5['currentUser']=_0x36beb6[_0x506840('0x14d4')](),_0x5a22e5[_0x506840('0x1d4a')]=[],_0x5a22e5['setting']=_0x36a194,_0x5a22e5[_0x506840('0x1a29')]=_0x24bde9,_0x5a22e5[_0x506840('0xb0')]={},_0x5a22e5['passwordPattern']=_0x5a22e5[_0x506840('0x251')]&&_0x5a22e5[_0x506840('0x251')][_0x506840('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5a22e5[_0x506840('0x20d6')]=_0x506840('0x129a'),_0x5a22e5[_0x506840('0x144b')]=angular[_0x506840('0x2e3')](_0x13376c),_0x5a22e5[_0x506840('0x2542')]=_0x43dcfc,_0x5a22e5[_0x506840('0x19fb')]=![];!_0x5a22e5[_0x506840('0x144b')]&&(_0x5a22e5[_0x506840('0x144b')]={},_0x5a22e5[_0x506840('0x20d6')]='SETTINGS.NEW_CLOUDPROVIDER',_0x5a22e5[_0x506840('0x19fb')]=!![]);_0x5a22e5['addNewCloudProvider']=_0x375d6c,_0x5a22e5[_0x506840('0x1253')]=_0x375a37,_0x5a22e5[_0x506840('0x1059')]=_0x215100,_0x5a22e5[_0x506840('0x11ae')]=_0x51de0f,_0x5a22e5[_0x506840('0x18e2')]=_0x25617b;function _0x375d6c(){const _0x40d571=_0x506840;_0x5a22e5[_0x40d571('0x1d4a')]=[],_0x131859[_0x40d571('0x144b')][_0x40d571('0x1195')](_0x5a22e5[_0x40d571('0x144b')])['$promise'][_0x40d571('0x173b')](function(_0x2464e7){const _0x12edfb=_0x40d571;_0x5a22e5['cloudProviders'][_0x12edfb('0x1377')](_0x2464e7[_0x12edfb('0xf1f')]()),_0x18db96['success']({'title':_0x12edfb('0x13b8'),'msg':_0x5a22e5[_0x12edfb('0x144b')][_0x12edfb('0x10ad')]?_0x5a22e5[_0x12edfb('0x144b')][_0x12edfb('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x25617b(_0x2464e7);})[_0x40d571('0x103c')](function(_0x4d425e){const _0x56ec9d=_0x40d571;if(_0x4d425e[_0x56ec9d('0x1e07')]&&_0x4d425e['data'][_0x56ec9d('0x1d4a')]&&_0x4d425e['data']['errors'][_0x56ec9d('0x543')]){_0x5a22e5['errors']=_0x4d425e[_0x56ec9d('0x1e07')][_0x56ec9d('0x1d4a')]||[{'message':_0x4d425e[_0x56ec9d('0x1b75')](),'type':_0x56ec9d('0x205c')}];for(let _0x51c238=0x0;_0x51c238<_0x4d425e[_0x56ec9d('0x1e07')][_0x56ec9d('0x1d4a')]['length'];_0x51c238+=0x1){_0x18db96[_0x56ec9d('0x15aa')]({'title':_0x4d425e['data'][_0x56ec9d('0x1d4a')][_0x51c238][_0x56ec9d('0x1810')],'msg':_0x4d425e[_0x56ec9d('0x1e07')][_0x56ec9d('0x1d4a')][_0x51c238][_0x56ec9d('0x67f')]});}}else _0x18db96['error']({'title':_0x4d425e[_0x56ec9d('0x276f')]?'API:'+_0x4d425e[_0x56ec9d('0x276f')]+_0x56ec9d('0x160c')+_0x4d425e[_0x56ec9d('0x2696')]:_0x56ec9d('0x205c'),'msg':_0x4d425e[_0x56ec9d('0x1e07')]?JSON['stringify'](_0x4d425e[_0x56ec9d('0x1e07')][_0x56ec9d('0x67f')]):_0x4d425e[_0x56ec9d('0x1b75')]()});});}function _0x375a37(){const _0xa1c435=_0x506840;_0x5a22e5[_0xa1c435('0x1d4a')]=[],_0x131859['cloudProvider'][_0xa1c435('0x1842')]({'id':_0x5a22e5[_0xa1c435('0x144b')]['id']},_0x5a22e5['cloudProvider'])[_0xa1c435('0x1964')][_0xa1c435('0x173b')](function(_0x2e499f){const _0x1ee869=_0xa1c435,_0x18becc=_0x3c8d8a()[_0x1ee869('0x18ab')](_0x5a22e5[_0x1ee869('0x2542')],{'id':_0x2e499f['id']});_0x18becc&&_0x3c8d8a()[_0x1ee869('0x9ef')](_0x18becc,_0x3c8d8a()[_0x1ee869('0x2114')](_0x2e499f[_0x1ee869('0xf1f')](),_0x3c8d8a()['keys'](_0x18becc))),_0x18db96[_0x1ee869('0xdfe')]({'title':_0x1ee869('0x49'),'msg':_0x5a22e5[_0x1ee869('0x144b')][_0x1ee869('0x10ad')]?_0x5a22e5[_0x1ee869('0x144b')][_0x1ee869('0x10ad')]+_0x1ee869('0x2788'):''}),_0x25617b(_0x2e499f);})[_0xa1c435('0x103c')](function(_0x5e8224){const _0x3ced74=_0xa1c435;if(_0x5e8224['data']&&_0x5e8224[_0x3ced74('0x1e07')]['errors']&&_0x5e8224[_0x3ced74('0x1e07')][_0x3ced74('0x1d4a')]['length']){_0x5a22e5['errors']=_0x5e8224[_0x3ced74('0x1e07')][_0x3ced74('0x1d4a')]||[{'message':_0x5e8224['toString'](),'type':_0x3ced74('0x12a1')}];for(let _0x425cbf=0x0;_0x425cbf<_0x5e8224['data']['errors'][_0x3ced74('0x543')];_0x425cbf++){_0x18db96[_0x3ced74('0x15aa')]({'title':_0x5e8224[_0x3ced74('0x1e07')][_0x3ced74('0x1d4a')][_0x425cbf][_0x3ced74('0x1810')],'msg':_0x5e8224['data']['errors'][_0x425cbf]['message']});}}else _0x18db96['error']({'title':_0x5e8224['status']?'API:'+_0x5e8224[_0x3ced74('0x276f')]+_0x3ced74('0x160c')+_0x5e8224[_0x3ced74('0x2696')]:_0x3ced74('0x12a1'),'msg':_0x5e8224[_0x3ced74('0x1e07')]?JSON[_0x3ced74('0x100b')](_0x5e8224[_0x3ced74('0x1e07')][_0x3ced74('0x67f')]):_0x5e8224[_0x3ced74('0x1b75')]()});});}function _0x215100(_0x2eeaae){const _0x129cab=_0x506840;_0x5a22e5[_0x129cab('0x1d4a')]=[];const _0x1c35f0=_0x4e3f5d[_0x129cab('0x1d02')]()[_0x129cab('0x20d6')](_0x129cab('0x8ef'))[_0x129cab('0x732')](_0x129cab('0x2801'))['ariaLabel'](_0x129cab('0x25a8'))['ok']('Delete')[_0x129cab('0x1e1f')]('Cancel')[_0x129cab('0x21de')](_0x2eeaae);_0x4e3f5d[_0x129cab('0x1cb7')](_0x1c35f0)[_0x129cab('0x173b')](function(){const _0x1b24c4=_0x129cab;_0x131859[_0x1b24c4('0x144b')][_0x1b24c4('0x15e8')]({'id':_0x5a22e5[_0x1b24c4('0x144b')]['id']})[_0x1b24c4('0x1964')][_0x1b24c4('0x173b')](function(){const _0x448f70=_0x1b24c4;_0x3c8d8a()[_0x448f70('0x1a8b')](_0x5a22e5[_0x448f70('0x2542')],{'id':_0x5a22e5[_0x448f70('0x144b')]['id']}),_0x18db96[_0x448f70('0xdfe')]({'title':_0x448f70('0x203a'),'msg':(_0x5a22e5[_0x448f70('0x144b')][_0x448f70('0x10ad')]||'cloudProvider')+_0x448f70('0x25d2')}),_0x25617b(_0x5a22e5[_0x448f70('0x144b')]);})[_0x1b24c4('0x103c')](function(_0x131386){const _0x25567b=_0x1b24c4;if(_0x131386['data']&&_0x131386[_0x25567b('0x1e07')][_0x25567b('0x1d4a')]&&_0x131386[_0x25567b('0x1e07')][_0x25567b('0x1d4a')][_0x25567b('0x543')]){_0x5a22e5[_0x25567b('0x1d4a')]=_0x131386[_0x25567b('0x1e07')][_0x25567b('0x1d4a')]||[{'message':_0x131386[_0x25567b('0x1b75')](),'type':_0x25567b('0x525')}];for(let _0x5e4a36=0x0;_0x5e4a36<_0x131386['data']['errors'][_0x25567b('0x543')];_0x5e4a36++){_0x18db96[_0x25567b('0x15aa')]({'title':_0x131386['data'][_0x25567b('0x1d4a')][_0x5e4a36][_0x25567b('0x1810')],'msg':_0x131386[_0x25567b('0x1e07')][_0x25567b('0x1d4a')][_0x5e4a36][_0x25567b('0x67f')]});}}else _0x18db96[_0x25567b('0x15aa')]({'title':_0x131386[_0x25567b('0x276f')]?_0x25567b('0x137')+_0x131386[_0x25567b('0x276f')]+_0x25567b('0x160c')+_0x131386[_0x25567b('0x2696')]:_0x25567b('0x525'),'msg':_0x131386[_0x25567b('0x1e07')]?JSON[_0x25567b('0x100b')](_0x131386['data']['message']):_0x131386['message']||_0x131386[_0x25567b('0x1b75')]()});});},function(){});}function _0x51de0f(_0x3beda5){return _0x3beda5===null?undefined:new Date(_0x3beda5);}function _0x25617b(_0x240627){const _0x55f8ad=_0x506840;_0x4e3f5d[_0x55f8ad('0x1cf4')](_0x240627);}}const _0x4a0d13=_0x33ae31;_0x236ce8[_0x566993('0x17bb')]=['$scope',_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q','$translate','toasty',_0x566993('0x19c6'),_0x566993('0xe5c'),_0x566993('0xbd4'),_0x566993('0x1600'),'license','setting',_0x566993('0x1dc1')];function _0x236ce8(_0x2aa342,_0x318da2,_0x40f35c,_0xe6411d,_0x4e4da9,_0x3adec,_0x43fad2,_0x589444,_0x4a45e1,_0x123574,_0xa59c69,_0x547734,_0x4eb794,_0x56d918){const _0x338215=_0x566993,_0x28cf79=this;_0x28cf79[_0x338215('0x155f')]=_0xa59c69['getCurrentUser'](),_0x28cf79[_0x338215('0x1d4a')]=[],_0x28cf79[_0x338215('0x251')]=_0x4eb794,_0x28cf79[_0x338215('0x1a29')]=_0x547734,_0x28cf79[_0x338215('0x1dc1')]=_0x56d918,_0x28cf79[_0x338215('0xb0')]={},_0x28cf79['passwordPattern']=_0x28cf79['setting']&&_0x28cf79['setting'][_0x338215('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28cf79[_0x338215('0x20d6')]=_0x338215('0x1faf'),_0x28cf79[_0x338215('0xe5c')]=angular[_0x338215('0x2e3')](_0x4a45e1),_0x28cf79[_0x338215('0x19c6')]=_0x589444,_0x28cf79[_0x338215('0x57a')]=![];!_0x28cf79[_0x338215('0xe5c')]&&(_0x28cf79[_0x338215('0xe5c')]={},_0x28cf79[_0x338215('0x20d6')]='SETTINGS.NEW_CUSTOMIZATION',_0x28cf79[_0x338215('0x57a')]=!![]);_0x28cf79[_0x338215('0xa22')]=_0x57e3e9,_0x28cf79['saveCustomization']=_0x445c56,_0x28cf79['deleteCustomization']=_0x21dfa7,_0x28cf79['getDateFromString']=_0x1d43eb,_0x28cf79['closeDialog']=_0x40040b;function _0x57e3e9(){const _0x30c3ea=_0x338215;_0x28cf79[_0x30c3ea('0x1d4a')]=[],_0x123574[_0x30c3ea('0x251')][_0x30c3ea('0x1195')](_0x28cf79[_0x30c3ea('0xe5c')])[_0x30c3ea('0x1964')][_0x30c3ea('0x173b')](function(_0x42db0c){const _0x4c0aef=_0x30c3ea;_0x28cf79[_0x4c0aef('0x19c6')][_0x4c0aef('0x1377')](_0x42db0c[_0x4c0aef('0xf1f')]()),_0x43fad2['success']({'title':'Customization\x20properly\x20created','msg':_0x28cf79[_0x4c0aef('0xe5c')][_0x4c0aef('0x10ad')]?_0x28cf79[_0x4c0aef('0xe5c')]['name']+_0x4c0aef('0x209a'):''}),_0x40040b(_0x42db0c);})[_0x30c3ea('0x103c')](function(_0x292df5){const _0xc95513=_0x30c3ea;if(_0x292df5['data']&&_0x292df5[_0xc95513('0x1e07')][_0xc95513('0x1d4a')]&&_0x292df5[_0xc95513('0x1e07')]['errors'][_0xc95513('0x543')]){_0x28cf79['errors']=_0x292df5[_0xc95513('0x1e07')][_0xc95513('0x1d4a')]||[{'message':_0x292df5[_0xc95513('0x1b75')](),'type':'api.setting.save'}];for(let _0x16e10f=0x0;_0x16e10f<_0x292df5[_0xc95513('0x1e07')][_0xc95513('0x1d4a')]['length'];_0x16e10f+=0x1){_0x43fad2[_0xc95513('0x15aa')]({'title':_0x292df5[_0xc95513('0x1e07')][_0xc95513('0x1d4a')][_0x16e10f]['type'],'msg':_0x292df5['data']['errors'][_0x16e10f][_0xc95513('0x67f')]});}}else _0x43fad2[_0xc95513('0x15aa')]({'title':_0x292df5[_0xc95513('0x276f')]?_0xc95513('0x137')+_0x292df5[_0xc95513('0x276f')]+_0xc95513('0x160c')+_0x292df5[_0xc95513('0x2696')]:_0xc95513('0x1f68'),'msg':_0x292df5[_0xc95513('0x1e07')]?JSON[_0xc95513('0x100b')](_0x292df5['data'][_0xc95513('0x67f')]):_0x292df5[_0xc95513('0x1b75')]()});});}function _0x445c56(){const _0x5ec6b3=_0x338215;_0x28cf79[_0x5ec6b3('0x1d4a')]=[],_0x123574[_0x5ec6b3('0x251')][_0x5ec6b3('0x1842')]({'id':_0x28cf79[_0x5ec6b3('0xe5c')]['id']},_0x28cf79[_0x5ec6b3('0xe5c')])[_0x5ec6b3('0x1964')][_0x5ec6b3('0x173b')](function(_0x3c4703){const _0x3262af=_0x5ec6b3,_0x140670=_0x3c8d8a()[_0x3262af('0x18ab')](_0x28cf79['customizations'],{'id':_0x3c4703['id']});_0x140670&&_0x3c8d8a()['merge'](_0x140670,_0x3c8d8a()[_0x3262af('0x2114')](_0x3c4703['toJSON'](),_0x3c8d8a()[_0x3262af('0x1d3e')](_0x140670))),_0x43fad2[_0x3262af('0xdfe')]({'title':'Customization\x20properly\x20saved!','msg':_0x28cf79[_0x3262af('0xe5c')][_0x3262af('0x10ad')]?_0x28cf79[_0x3262af('0xe5c')][_0x3262af('0x10ad')]+_0x3262af('0x2788'):''}),_0x40040b(_0x3c4703);})[_0x5ec6b3('0x103c')](function(_0x50c9ed){const _0x47896d=_0x5ec6b3;if(_0x50c9ed[_0x47896d('0x1e07')]&&_0x50c9ed[_0x47896d('0x1e07')][_0x47896d('0x1d4a')]&&_0x50c9ed[_0x47896d('0x1e07')][_0x47896d('0x1d4a')]['length']){_0x28cf79[_0x47896d('0x1d4a')]=_0x50c9ed[_0x47896d('0x1e07')][_0x47896d('0x1d4a')]||[{'message':_0x50c9ed[_0x47896d('0x1b75')](),'type':_0x47896d('0x1c2e')}];for(let _0xbc3bf7=0x0;_0xbc3bf7<_0x50c9ed['data'][_0x47896d('0x1d4a')][_0x47896d('0x543')];_0xbc3bf7++){_0x43fad2[_0x47896d('0x15aa')]({'title':_0x50c9ed[_0x47896d('0x1e07')]['errors'][_0xbc3bf7][_0x47896d('0x1810')],'msg':_0x50c9ed[_0x47896d('0x1e07')][_0x47896d('0x1d4a')][_0xbc3bf7][_0x47896d('0x67f')]});}}else _0x43fad2[_0x47896d('0x15aa')]({'title':_0x50c9ed[_0x47896d('0x276f')]?'API:'+_0x50c9ed[_0x47896d('0x276f')]+_0x47896d('0x160c')+_0x50c9ed[_0x47896d('0x2696')]:_0x47896d('0x1c2e'),'msg':_0x50c9ed[_0x47896d('0x1e07')]?JSON['stringify'](_0x50c9ed[_0x47896d('0x1e07')][_0x47896d('0x67f')]):_0x50c9ed[_0x47896d('0x1b75')]()});});}function _0x21dfa7(_0x58c18f){const _0x18e031=_0x338215;_0x28cf79['errors']=[];const _0x139a37=_0xe6411d[_0x18e031('0x1d02')]()[_0x18e031('0x20d6')](_0x18e031('0x8ef'))[_0x18e031('0x732')](_0x18e031('0xffa'))['ariaLabel'](_0x18e031('0x84b'))['ok'](_0x18e031('0x2373'))[_0x18e031('0x1e1f')](_0x18e031('0x1d4e'))['targetEvent'](_0x58c18f);_0xe6411d[_0x18e031('0x1cb7')](_0x139a37)[_0x18e031('0x173b')](function(){const _0x55e379=_0x18e031;_0x123574[_0x55e379('0x251')][_0x55e379('0x15e8')]({'id':_0x28cf79[_0x55e379('0xe5c')]['id']})[_0x55e379('0x1964')][_0x55e379('0x173b')](function(){const _0x8e72c1=_0x55e379;_0x3c8d8a()[_0x8e72c1('0x1a8b')](_0x28cf79[_0x8e72c1('0x19c6')],{'id':_0x28cf79['customization']['id']}),_0x43fad2[_0x8e72c1('0xdfe')]({'title':_0x8e72c1('0xa1c'),'msg':(_0x28cf79[_0x8e72c1('0xe5c')][_0x8e72c1('0x10ad')]||_0x8e72c1('0xe5c'))+'\x20has\x20been\x20deleted!'}),_0x40040b(_0x28cf79[_0x8e72c1('0xe5c')]);})[_0x55e379('0x103c')](function(_0x5c8967){const _0x5953be=_0x55e379;if(_0x5c8967[_0x5953be('0x1e07')]&&_0x5c8967[_0x5953be('0x1e07')][_0x5953be('0x1d4a')]&&_0x5c8967[_0x5953be('0x1e07')][_0x5953be('0x1d4a')][_0x5953be('0x543')]){_0x28cf79[_0x5953be('0x1d4a')]=_0x5c8967[_0x5953be('0x1e07')][_0x5953be('0x1d4a')]||[{'message':_0x5c8967[_0x5953be('0x1b75')](),'type':_0x5953be('0x23ff')}];for(let _0x213fc3=0x0;_0x213fc3<_0x5c8967[_0x5953be('0x1e07')][_0x5953be('0x1d4a')]['length'];_0x213fc3++){_0x43fad2[_0x5953be('0x15aa')]({'title':_0x5c8967[_0x5953be('0x1e07')][_0x5953be('0x1d4a')][_0x213fc3][_0x5953be('0x1810')],'msg':_0x5c8967[_0x5953be('0x1e07')]['errors'][_0x213fc3][_0x5953be('0x67f')]});}}else _0x43fad2[_0x5953be('0x15aa')]({'title':_0x5c8967[_0x5953be('0x276f')]?'API:'+_0x5c8967[_0x5953be('0x276f')]+_0x5953be('0x160c')+_0x5c8967[_0x5953be('0x2696')]:_0x5953be('0x23ff'),'msg':_0x5c8967[_0x5953be('0x1e07')]?JSON[_0x5953be('0x100b')](_0x5c8967[_0x5953be('0x1e07')][_0x5953be('0x67f')]):_0x5c8967[_0x5953be('0x67f')]||_0x5c8967[_0x5953be('0x1b75')]()});});},function(){});}function _0x1d43eb(_0x120fc1){return _0x120fc1===null?undefined:new Date(_0x120fc1);}function _0x40040b(_0x310730){const _0x3c58cd=_0x338215;_0xe6411d[_0x3c58cd('0x1cf4')](_0x310730);}}const _0x3522ed=_0x236ce8;_0xea5901[_0x566993('0x17bb')]=[_0x566993('0x19c6'),_0x566993('0xbd4'),_0x566993('0x1558'),'license',_0x566993('0x1600')];function _0xea5901(_0x52033b,_0x163890,_0x5979a7,_0x37f192,_0x3ca002){const _0x41df0b=_0x566993,_0x542811=this;_0x542811[_0x41df0b('0x155f')]=_0x3ca002[_0x41df0b('0x14d4')](),_0x542811[_0x41df0b('0x1a29')]=_0x37f192,_0x542811[_0x41df0b('0x19c6')]=_0x52033b,_0x542811[_0x41df0b('0xe5c')]={};_0x542811['customizations']&&_0x542811[_0x41df0b('0x19c6')][_0x41df0b('0x6aa')]&&_0x542811['customizations']['rows'][_0x41df0b('0x543')]&&(_0x542811[_0x41df0b('0xe5c')]=_0x542811[_0x41df0b('0x19c6')]['rows'][0x0]);_0x542811['saveCustomization']=_0x3ab05a;function _0x3ab05a(){const _0x27b38d=_0x41df0b;_0x542811[_0x27b38d('0xe5c')]['id']?_0x163890[_0x27b38d('0x251')][_0x27b38d('0x1842')]({'id':_0x542811[_0x27b38d('0xe5c')]['id']},_0x542811[_0x27b38d('0xe5c')])[_0x27b38d('0x1964')][_0x27b38d('0x173b')](function(){const _0x3603ec=_0x27b38d;_0x5979a7[_0x3603ec('0xdfe')]({'title':_0x3603ec('0x1cb2'),'msg':_0x542811[_0x3603ec('0xe5c')][_0x3603ec('0x10ad')]?_0x542811[_0x3603ec('0xe5c')][_0x3603ec('0x10ad')]+_0x3603ec('0x1fd6'):''});})[_0x27b38d('0x103c')](function(_0x8f6479){const _0x59ebc1=_0x27b38d;_0x5979a7[_0x59ebc1('0x15aa')]({'title':_0x8f6479['status']?_0x59ebc1('0x137')+_0x8f6479[_0x59ebc1('0x276f')]+_0x59ebc1('0x160c')+_0x8f6479['statusText']:_0x59ebc1('0x1718'),'msg':_0x8f6479[_0x59ebc1('0x1e07')]?JSON[_0x59ebc1('0x100b')](_0x8f6479[_0x59ebc1('0x1e07')]):_0x8f6479[_0x59ebc1('0x1b75')]()});}):_0x163890[_0x27b38d('0x251')][_0x27b38d('0x1195')](_0x542811[_0x27b38d('0xe5c')])['$promise'][_0x27b38d('0x173b')](function(_0x5039df){const _0xffc35f=_0x27b38d;_0x3c8d8a()[_0xffc35f('0x9ef')](_0x542811[_0xffc35f('0xe5c')],_0x5039df),_0x5979a7[_0xffc35f('0xdfe')]({'title':_0xffc35f('0x1cb2'),'msg':_0x542811['customization'][_0xffc35f('0x10ad')]?_0x542811['customization'][_0xffc35f('0x10ad')]+_0xffc35f('0x1fd6'):''});})['catch'](function(_0x1711a5){const _0xbf68f9=_0x27b38d;_0x5979a7[_0xbf68f9('0x15aa')]({'title':_0x1711a5[_0xbf68f9('0x276f')]?'API:'+_0x1711a5[_0xbf68f9('0x276f')]+_0xbf68f9('0x160c')+_0x1711a5[_0xbf68f9('0x2696')]:_0xbf68f9('0x1718'),'msg':_0x1711a5[_0xbf68f9('0x1e07')]?JSON[_0xbf68f9('0x100b')](_0x1711a5[_0xbf68f9('0x1e07')]):_0x1711a5[_0xbf68f9('0x1b75')]()});});}}const _0x545af8=_0xea5901;_0x4ae881[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x1558')];function _0x4ae881(_0x203414,_0x5f52fd){const _0x2c7d07=_0x566993,_0x16cdaf=this,_0x1bdbbf=0x8,_0x37ccb4=_0x1bdbbf*0x400*0x400;_0x16cdaf[_0x2c7d07('0xe5c')]={},_0x16cdaf[_0x2c7d07('0x8f9')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x37ccb4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x16cdaf[_0x2c7d07('0x428')]={'flow':{}},_0x16cdaf[_0x2c7d07('0x134a')]=![],_0x16cdaf['fileAdded']=_0x2073da,_0x16cdaf[_0x2c7d07('0xb1e')]=_0x4fe61c,_0x16cdaf[_0x2c7d07('0x12b9')]=_0x42bfd3,_0x16cdaf[_0x2c7d07('0xb9c')]=_0x52fcc8;function _0x52fcc8(_0x369ce1){const _0x279531=_0x2c7d07;_0x16cdaf[_0x279531('0xe5c')]=angular[_0x279531('0x2e3')](_0x369ce1),_0x16cdaf[_0x279531('0x8f9')][_0x279531('0x235')]=_0x279531('0x1933')[_0x279531('0x166c')](_0x279531('0x17d5'),_0x16cdaf[_0x279531('0xe5c')]['id']),_0x16cdaf[_0x279531('0xe5c')][_0x279531('0x1f73')]=[];}function _0x2073da(_0x494c57){const _0x39abf9=_0x2c7d07,_0x3c61dc=[_0x39abf9('0x13f0'),_0x39abf9('0xa5a'),_0x39abf9('0x2239')];if(!_0x3c8d8a()['includes'](_0x3c61dc,_0x494c57['getExtension']()))return _0x5f52fd[_0x39abf9('0x15aa')]({'title':'Invalid\x20extension:\x20'+_0x494c57[_0x39abf9('0x131a')](),'msg':'Supported\x20extension:\x20'+_0x3c61dc['join']()}),![];if(_0x494c57[_0x39abf9('0x2361')]>_0x37ccb4)return _0x5f52fd[_0x39abf9('0x15aa')]({'title':_0x39abf9('0xd1e'),'msg':_0x39abf9('0xdfc')+_0x1bdbbf+'MB'}),![];const _0x56c4bc={'id':_0x494c57['uniqueIdentifier'],'file':_0x494c57,'type':'uploading'};return _0x16cdaf['customization'][_0x39abf9('0x1f73')]['unshift'](_0x56c4bc),!![];}function _0x4fe61c(){const _0x510dec=_0x2c7d07;_0x16cdaf['ngFlow'][_0x510dec('0x1789')][_0x510dec('0x2431')][_0x510dec('0x1670')]={'X-Requested-With':_0x510dec('0x12c9'),'Authorization':_0x510dec('0x221')+_0x203414[_0x510dec('0x1d97')](_0x510dec('0x7c6'))},_0x16cdaf[_0x510dec('0x428')][_0x510dec('0x1789')][_0x510dec('0xb1e')]();}function _0x42bfd3(_0x4d341c){const _0x5f326b=_0x2c7d07;angular[_0x5f326b('0xa6a')](_0x16cdaf['customization']['images'],function(_0x11a65f){const _0x2939f7=_0x5f326b;if(_0x11a65f['id']===_0x4d341c[_0x2939f7('0x1b98')]){const _0x462a18=new FileReader();_0x462a18[_0x2939f7('0x427')](_0x11a65f['file'][_0x2939f7('0x2522')]),_0x462a18['onload']=function(_0x3ae67c){const _0x1365c8=_0x2939f7;_0x11a65f[_0x1365c8('0xd1')]=_0x3ae67c[_0x1365c8('0x235')][_0x1365c8('0xd09')];},_0x11a65f[_0x2939f7('0x1810')]='image';}});}}const _0x1d5551=_0x4ae881;_0x8c574e[_0x566993('0x17bb')]=[_0x566993('0x2166'),'toasty'];function _0x8c574e(_0x421184,_0x41e9b8){const _0x8d96d1=_0x566993,_0x9a3580=this,_0xf606e5=0x8,_0x4c2db0=_0xf606e5*0x400*0x400;_0x9a3580[_0x8d96d1('0xe5c')]={},_0x9a3580[_0x8d96d1('0x8f9')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4c2db0,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x9a3580[_0x8d96d1('0x428')]={'flow':{}},_0x9a3580[_0x8d96d1('0x134a')]=![],_0x9a3580[_0x8d96d1('0x23a9')]=_0x505d3f,_0x9a3580[_0x8d96d1('0xb1e')]=_0x2c6b2f,_0x9a3580[_0x8d96d1('0x12b9')]=_0x29ccb1,_0x9a3580[_0x8d96d1('0xb9c')]=_0x38e50d;function _0x38e50d(_0x579b7e){const _0x3059f2=_0x8d96d1;_0x9a3580[_0x3059f2('0xe5c')]=angular[_0x3059f2('0x2e3')](_0x579b7e),_0x9a3580[_0x3059f2('0x8f9')][_0x3059f2('0x235')]=_0x3059f2('0x55')[_0x3059f2('0x166c')](_0x3059f2('0x17d5'),_0x9a3580[_0x3059f2('0xe5c')]['id']),_0x9a3580[_0x3059f2('0xe5c')][_0x3059f2('0x1f73')]=[];}function _0x505d3f(_0x45f423){const _0x22afe1=_0x8d96d1,_0x536416=['png',_0x22afe1('0xa5a')];if(!_0x3c8d8a()[_0x22afe1('0x2814')](_0x536416,_0x45f423['getExtension']()))return _0x41e9b8[_0x22afe1('0x15aa')]({'title':_0x22afe1('0xc5d')+_0x45f423[_0x22afe1('0x131a')](),'msg':_0x22afe1('0x10cc')+_0x536416[_0x22afe1('0x2259')]()}),![];if(_0x45f423[_0x22afe1('0x2361')]>_0x4c2db0)return _0x41e9b8[_0x22afe1('0x15aa')]({'title':_0x22afe1('0xd1e'),'msg':_0x22afe1('0xdfc')+_0xf606e5+'MB'}),![];const _0x55d564={'id':_0x45f423[_0x22afe1('0x1b98')],'file':_0x45f423,'type':_0x22afe1('0x2175')};return _0x9a3580[_0x22afe1('0xe5c')][_0x22afe1('0x1f73')][_0x22afe1('0x1377')](_0x55d564),!![];}function _0x2c6b2f(){const _0x34fd93=_0x8d96d1;_0x9a3580[_0x34fd93('0x428')][_0x34fd93('0x1789')][_0x34fd93('0x2431')][_0x34fd93('0x1670')]={'X-Requested-With':_0x34fd93('0x12c9'),'Authorization':_0x34fd93('0x221')+_0x421184[_0x34fd93('0x1d97')]('motion.token')},_0x9a3580[_0x34fd93('0x428')][_0x34fd93('0x1789')]['upload']();}function _0x29ccb1(_0x1b191e){const _0x20e3de=_0x8d96d1;angular[_0x20e3de('0xa6a')](_0x9a3580[_0x20e3de('0xe5c')]['images'],function(_0x5e6d11){const _0x19bbcb=_0x20e3de;if(_0x5e6d11['id']===_0x1b191e['uniqueIdentifier']){const _0x4e6e16=new FileReader();_0x4e6e16[_0x19bbcb('0x427')](_0x5e6d11[_0x19bbcb('0x2522')][_0x19bbcb('0x2522')]),_0x4e6e16[_0x19bbcb('0x147d')]=function(_0x2405a8){const _0xea9af6=_0x19bbcb;_0x5e6d11[_0xea9af6('0xd1')]=_0x2405a8['target']['result'];},_0x5e6d11[_0x19bbcb('0x1810')]=_0x19bbcb('0x204b');}});}}const _0x5d9d53=_0x8c574e;_0xf768e[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x1558')];function _0xf768e(_0x31c1ca,_0x3c5c75){const _0x1d61fa=_0x566993,_0x49610c=this,_0x48cb7e=0x8,_0x3f6cb4=_0x48cb7e*0x400*0x400;_0x49610c['customization']={},_0x49610c[_0x1d61fa('0x8f9')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3f6cb4,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x49610c['ngFlow']={'flow':{}},_0x49610c[_0x1d61fa('0x134a')]=![],_0x49610c[_0x1d61fa('0x23a9')]=_0x34a38f,_0x49610c[_0x1d61fa('0xb1e')]=_0x4ad5b0,_0x49610c['fileSuccess']=_0x147574,_0x49610c['init']=_0x3b7b5a;function _0x3b7b5a(_0x6abedc){const _0x13226d=_0x1d61fa;_0x49610c[_0x13226d('0xe5c')]=angular[_0x13226d('0x2e3')](_0x6abedc),_0x49610c[_0x13226d('0x8f9')][_0x13226d('0x235')]='/api/settings/1/logo_login'['replace'](_0x13226d('0x17d5'),_0x49610c[_0x13226d('0xe5c')]['id']),_0x49610c['customization'][_0x13226d('0x1f73')]=[];}function _0x34a38f(_0x1e9935){const _0x4b49f1=_0x1d61fa,_0xa64be2=[_0x4b49f1('0x13f0'),_0x4b49f1('0xa5a')];if(!_0x3c8d8a()[_0x4b49f1('0x2814')](_0xa64be2,_0x1e9935[_0x4b49f1('0x131a')]()))return _0x3c5c75['error']({'title':_0x4b49f1('0xc5d')+_0x1e9935[_0x4b49f1('0x131a')](),'msg':'Supported\x20extension:\x20'+_0xa64be2[_0x4b49f1('0x2259')]()}),![];if(_0x1e9935[_0x4b49f1('0x2361')]>_0x3f6cb4)return _0x3c5c75[_0x4b49f1('0x15aa')]({'title':_0x4b49f1('0xd1e'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x48cb7e+'MB'}),![];const _0x5e1235={'id':_0x1e9935['uniqueIdentifier'],'file':_0x1e9935,'type':_0x4b49f1('0x2175')};return _0x49610c[_0x4b49f1('0xe5c')][_0x4b49f1('0x1f73')][_0x4b49f1('0x1377')](_0x5e1235),!![];}function _0x4ad5b0(){const _0x1c8fce=_0x1d61fa;_0x49610c[_0x1c8fce('0x428')][_0x1c8fce('0x1789')][_0x1c8fce('0x2431')][_0x1c8fce('0x1670')]={'X-Requested-With':_0x1c8fce('0x12c9'),'Authorization':_0x1c8fce('0x221')+_0x31c1ca[_0x1c8fce('0x1d97')](_0x1c8fce('0x7c6'))},_0x49610c[_0x1c8fce('0x428')][_0x1c8fce('0x1789')][_0x1c8fce('0xb1e')]();}function _0x147574(_0x294c82){const _0x35aea5=_0x1d61fa;angular['forEach'](_0x49610c[_0x35aea5('0xe5c')]['images'],function(_0x4bc12e){const _0x430f69=_0x35aea5;if(_0x4bc12e['id']===_0x294c82[_0x430f69('0x1b98')]){const _0x3d353a=new FileReader();_0x3d353a[_0x430f69('0x427')](_0x4bc12e[_0x430f69('0x2522')][_0x430f69('0x2522')]),_0x3d353a['onload']=function(_0x8c91ec){const _0x3b9575=_0x430f69;_0x4bc12e[_0x3b9575('0xd1')]=_0x8c91ec['target'][_0x3b9575('0xd09')];},_0x4bc12e[_0x430f69('0x1810')]=_0x430f69('0x204b');}});}}const _0x5b1647=_0xf768e;_0x1e998a[_0x566993('0x17bb')]=[_0x566993('0x2166'),'toasty'];function _0x1e998a(_0x116d85,_0x4fcf29){const _0x281972=_0x566993,_0x4a9054=this,_0x4d44ae=0x8,_0x5d5e37=_0x4d44ae*0x400*0x400;_0x4a9054['customization']={},_0x4a9054[_0x281972('0x8f9')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x5d5e37,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x4a9054['ngFlow']={'flow':{}},_0x4a9054[_0x281972('0x134a')]=![],_0x4a9054[_0x281972('0x23a9')]=_0x2f8dc6,_0x4a9054['upload']=_0x5d2e28,_0x4a9054['fileSuccess']=_0x18128c,_0x4a9054['init']=_0x569d9f;function _0x569d9f(_0x5ec207){const _0x1f6279=_0x281972;_0x4a9054['customization']=angular[_0x1f6279('0x2e3')](_0x5ec207),_0x4a9054[_0x1f6279('0x8f9')][_0x1f6279('0x235')]='/api/settings/1/preferred'[_0x1f6279('0x166c')](_0x1f6279('0x17d5'),_0x4a9054['customization']['id']),_0x4a9054[_0x1f6279('0xe5c')][_0x1f6279('0x1f73')]=[];}function _0x2f8dc6(_0x1ca758){const _0x1c3b02=_0x281972,_0x3dd6ce=[_0x1c3b02('0x13f0'),_0x1c3b02('0xa5a')];if(!_0x3c8d8a()[_0x1c3b02('0x2814')](_0x3dd6ce,_0x1ca758[_0x1c3b02('0x131a')]()))return _0x4fcf29[_0x1c3b02('0x15aa')]({'title':_0x1c3b02('0xc5d')+_0x1ca758[_0x1c3b02('0x131a')](),'msg':_0x1c3b02('0x10cc')+_0x3dd6ce['join']()}),![];if(_0x1ca758[_0x1c3b02('0x2361')]>_0x5d5e37)return _0x4fcf29[_0x1c3b02('0x15aa')]({'title':'File\x20too\x20big','msg':_0x1c3b02('0xdfc')+_0x4d44ae+'MB'}),![];const _0x1e3936={'id':_0x1ca758[_0x1c3b02('0x1b98')],'file':_0x1ca758,'type':_0x1c3b02('0x2175')};return _0x4a9054[_0x1c3b02('0xe5c')][_0x1c3b02('0x1f73')][_0x1c3b02('0x1377')](_0x1e3936),!![];}function _0x5d2e28(){const _0xbac73=_0x281972;_0x4a9054[_0xbac73('0x428')][_0xbac73('0x1789')][_0xbac73('0x2431')][_0xbac73('0x1670')]={'X-Requested-With':_0xbac73('0x12c9'),'Authorization':_0xbac73('0x221')+_0x116d85[_0xbac73('0x1d97')](_0xbac73('0x7c6'))},_0x4a9054[_0xbac73('0x428')][_0xbac73('0x1789')][_0xbac73('0xb1e')]();}function _0x18128c(_0x109081){const _0x3d2e3d=_0x281972;angular[_0x3d2e3d('0xa6a')](_0x4a9054[_0x3d2e3d('0xe5c')][_0x3d2e3d('0x1f73')],function(_0x169e99){const _0x5a77ce=_0x3d2e3d;if(_0x169e99['id']===_0x109081[_0x5a77ce('0x1b98')]){const _0x43a54e=new FileReader();_0x43a54e[_0x5a77ce('0x427')](_0x169e99[_0x5a77ce('0x2522')]['file']),_0x43a54e[_0x5a77ce('0x147d')]=function(_0x1a49b8){const _0x3c4b0d=_0x5a77ce;_0x169e99[_0x3c4b0d('0xd1')]=_0x1a49b8[_0x3c4b0d('0x235')]['result'];},_0x169e99[_0x5a77ce('0x1810')]=_0x5a77ce('0x204b');}});}}const _0x221716=_0x1e998a;_0x473981[_0x566993('0x17bb')]=['$scope','$state',_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x27ca'),'general',_0x566993('0xbd4'),'Auth',_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0x473981(_0x1eb4e0,_0xf044cf,_0x440cd7,_0x2e4d1d,_0x5322a2,_0x326999,_0x27e18b,_0x39f4d5,_0x8550e1,_0x4d35bd,_0x2c2886,_0x3334ae,_0x39c58c,_0x49769e){const _0xea9708=_0x566993,_0x7ae96a=this;_0x7ae96a[_0xea9708('0x155f')]=_0x2c2886[_0xea9708('0x14d4')](),_0x7ae96a[_0xea9708('0x1d4a')]=[],_0x7ae96a[_0xea9708('0x251')]=_0x39c58c,_0x7ae96a[_0xea9708('0x1a29')]=_0x3334ae,_0x7ae96a['crudPermissions']=_0x49769e,_0x7ae96a[_0xea9708('0xb0')]={},_0x7ae96a['passwordPattern']=_0x7ae96a[_0xea9708('0x251')]&&_0x7ae96a[_0xea9708('0x251')][_0xea9708('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x7ae96a[_0xea9708('0x20d6')]=_0xea9708('0xb58'),_0x7ae96a['general']=angular['copy'](_0x8550e1),_0x7ae96a['generals']=_0x39f4d5,_0x7ae96a['newGeneral']=![];!_0x7ae96a[_0xea9708('0x981')]&&(_0x7ae96a[_0xea9708('0x981')]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':'https://www.xcally.com/bar/phonebar/autoupdater.xml','splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0xea9708('0xf35'),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x7ae96a[_0xea9708('0x20d6')]='SETTINGS.NEW_GENERAL',_0x7ae96a[_0xea9708('0x13b1')]=!![]);_0x7ae96a[_0xea9708('0xc64')]=_0x1f6bd0,_0x7ae96a[_0xea9708('0x280e')]=_0x27b561,_0x7ae96a[_0xea9708('0xef3')]=_0x32f543,_0x7ae96a[_0xea9708('0x11ae')]=_0x1f37fb,_0x7ae96a[_0xea9708('0x18e2')]=_0x44ce3e,_0x4d35bd['cloudProvider'][_0xea9708('0x1d97')]({'fields':_0xea9708('0xd52'),'sort':'name','nolimit':_0xea9708('0x799')})[_0xea9708('0x1964')][_0xea9708('0x173b')](function(_0xa8ceee){const _0x8092c1=_0xea9708;_0x7ae96a[_0x8092c1('0x2542')]=_0xa8ceee[_0x8092c1('0x6aa')]||[];})[_0xea9708('0x103c')](function(_0x578576){const _0x52dbc1=_0xea9708;_0x27e18b[_0x52dbc1('0x15aa')]({'title':_0x578576[_0x52dbc1('0x276f')]?_0x52dbc1('0x137')+_0x578576[_0x52dbc1('0x276f')]+_0x52dbc1('0x160c')+_0x578576[_0x52dbc1('0x2696')]:_0x52dbc1('0x1ef0'),'msg':_0x578576[_0x52dbc1('0x1e07')]?JSON[_0x52dbc1('0x100b')](_0x578576[_0x52dbc1('0x1e07')]):_0x578576[_0x52dbc1('0x1b75')]()});});function _0x1f6bd0(){const _0x275a69=_0xea9708;_0x7ae96a[_0x275a69('0x1d4a')]=[],_0x4d35bd['setting'][_0x275a69('0x1195')](_0x7ae96a[_0x275a69('0x981')])[_0x275a69('0x1964')][_0x275a69('0x173b')](function(_0xf27bb9){const _0xec80cb=_0x275a69;_0x7ae96a[_0xec80cb('0x27ca')][_0xec80cb('0x1377')](_0xf27bb9['toJSON']()),_0x27e18b[_0xec80cb('0xdfe')]({'title':'General\x20properly\x20created','msg':_0x7ae96a['general'][_0xec80cb('0x10ad')]?_0x7ae96a[_0xec80cb('0x981')][_0xec80cb('0x10ad')]+_0xec80cb('0x209a'):''}),_0x44ce3e(_0xf27bb9);})['catch'](function(_0x26ffc2){const _0x14f3d5=_0x275a69;if(_0x26ffc2['data']&&_0x26ffc2[_0x14f3d5('0x1e07')][_0x14f3d5('0x1d4a')]&&_0x26ffc2[_0x14f3d5('0x1e07')][_0x14f3d5('0x1d4a')][_0x14f3d5('0x543')]){_0x7ae96a[_0x14f3d5('0x1d4a')]=_0x26ffc2[_0x14f3d5('0x1e07')][_0x14f3d5('0x1d4a')]||[{'message':_0x26ffc2['toString'](),'type':_0x14f3d5('0x1f68')}];for(let _0x8ebfc7=0x0;_0x8ebfc7<_0x26ffc2[_0x14f3d5('0x1e07')][_0x14f3d5('0x1d4a')][_0x14f3d5('0x543')];_0x8ebfc7+=0x1){_0x27e18b[_0x14f3d5('0x15aa')]({'title':_0x26ffc2[_0x14f3d5('0x1e07')]['errors'][_0x8ebfc7][_0x14f3d5('0x1810')],'msg':_0x26ffc2['data']['errors'][_0x8ebfc7]['message']});}}else _0x27e18b['error']({'title':_0x26ffc2['status']?'API:'+_0x26ffc2[_0x14f3d5('0x276f')]+_0x14f3d5('0x160c')+_0x26ffc2['statusText']:_0x14f3d5('0x1f68'),'msg':_0x26ffc2[_0x14f3d5('0x1e07')]?JSON[_0x14f3d5('0x100b')](_0x26ffc2['data'][_0x14f3d5('0x67f')]):_0x26ffc2['toString']()});});}function _0x27b561(){const _0x45a8c1=_0xea9708;_0x7ae96a[_0x45a8c1('0x1d4a')]=[],_0x4d35bd['setting']['update']({'id':_0x7ae96a[_0x45a8c1('0x981')]['id']},_0x7ae96a['general'])[_0x45a8c1('0x1964')][_0x45a8c1('0x173b')](function(_0x4b5872){const _0x1df258=_0x45a8c1,_0x5836ac=_0x3c8d8a()[_0x1df258('0x18ab')](_0x7ae96a['generals'],{'id':_0x4b5872['id']});_0x5836ac&&_0x3c8d8a()[_0x1df258('0x9ef')](_0x5836ac,_0x3c8d8a()['pick'](_0x4b5872[_0x1df258('0xf1f')](),_0x3c8d8a()['keys'](_0x5836ac))),_0x27e18b[_0x1df258('0xdfe')]({'title':'General\x20properly\x20saved!','msg':_0x7ae96a[_0x1df258('0x981')][_0x1df258('0x10ad')]?_0x7ae96a[_0x1df258('0x981')][_0x1df258('0x10ad')]+_0x1df258('0x2788'):''}),_0x44ce3e(_0x4b5872);})[_0x45a8c1('0x103c')](function(_0x45308f){const _0x42f2b9=_0x45a8c1;if(_0x45308f['data']&&_0x45308f[_0x42f2b9('0x1e07')][_0x42f2b9('0x1d4a')]&&_0x45308f[_0x42f2b9('0x1e07')][_0x42f2b9('0x1d4a')][_0x42f2b9('0x543')]){_0x7ae96a[_0x42f2b9('0x1d4a')]=_0x45308f[_0x42f2b9('0x1e07')][_0x42f2b9('0x1d4a')]||[{'message':_0x45308f[_0x42f2b9('0x1b75')](),'type':_0x42f2b9('0x1c2e')}];for(let _0x115fa2=0x0;_0x115fa2<_0x45308f[_0x42f2b9('0x1e07')]['errors'][_0x42f2b9('0x543')];_0x115fa2++){_0x27e18b[_0x42f2b9('0x15aa')]({'title':_0x45308f[_0x42f2b9('0x1e07')][_0x42f2b9('0x1d4a')][_0x115fa2][_0x42f2b9('0x1810')],'msg':_0x45308f[_0x42f2b9('0x1e07')][_0x42f2b9('0x1d4a')][_0x115fa2][_0x42f2b9('0x67f')]});}}else _0x27e18b[_0x42f2b9('0x15aa')]({'title':_0x45308f[_0x42f2b9('0x276f')]?'API:'+_0x45308f['status']+_0x42f2b9('0x160c')+_0x45308f[_0x42f2b9('0x2696')]:'api.setting.update','msg':_0x45308f['data']?JSON[_0x42f2b9('0x100b')](_0x45308f[_0x42f2b9('0x1e07')]['message']):_0x45308f['toString']()});});}function _0x32f543(_0x20dad9){const _0x26a704=_0xea9708;_0x7ae96a['errors']=[];const _0x2015af=_0x2e4d1d[_0x26a704('0x1d02')]()[_0x26a704('0x20d6')](_0x26a704('0x8ef'))['content'](_0x26a704('0xacb'))[_0x26a704('0x217')](_0x26a704('0x1087'))['ok']('Delete')[_0x26a704('0x1e1f')]('Cancel')[_0x26a704('0x21de')](_0x20dad9);_0x2e4d1d[_0x26a704('0x1cb7')](_0x2015af)[_0x26a704('0x173b')](function(){const _0x1238eb=_0x26a704;_0x4d35bd[_0x1238eb('0x251')]['delete']({'id':_0x7ae96a[_0x1238eb('0x981')]['id']})[_0x1238eb('0x1964')][_0x1238eb('0x173b')](function(){const _0x1972b8=_0x1238eb;_0x3c8d8a()[_0x1972b8('0x1a8b')](_0x7ae96a[_0x1972b8('0x27ca')],{'id':_0x7ae96a[_0x1972b8('0x981')]['id']}),_0x27e18b[_0x1972b8('0xdfe')]({'title':_0x1972b8('0x15c4'),'msg':(_0x7ae96a[_0x1972b8('0x981')][_0x1972b8('0x10ad')]||_0x1972b8('0x981'))+_0x1972b8('0x25d2')}),_0x44ce3e(_0x7ae96a[_0x1972b8('0x981')]);})[_0x1238eb('0x103c')](function(_0x211771){const _0x5ad2a6=_0x1238eb;if(_0x211771['data']&&_0x211771['data']['errors']&&_0x211771[_0x5ad2a6('0x1e07')][_0x5ad2a6('0x1d4a')][_0x5ad2a6('0x543')]){_0x7ae96a[_0x5ad2a6('0x1d4a')]=_0x211771['data'][_0x5ad2a6('0x1d4a')]||[{'message':_0x211771['toString'](),'type':_0x5ad2a6('0x23ff')}];for(let _0x56f544=0x0;_0x56f544<_0x211771[_0x5ad2a6('0x1e07')][_0x5ad2a6('0x1d4a')][_0x5ad2a6('0x543')];_0x56f544++){_0x27e18b[_0x5ad2a6('0x15aa')]({'title':_0x211771[_0x5ad2a6('0x1e07')][_0x5ad2a6('0x1d4a')][_0x56f544]['type'],'msg':_0x211771['data'][_0x5ad2a6('0x1d4a')][_0x56f544]['message']});}}else _0x27e18b[_0x5ad2a6('0x15aa')]({'title':_0x211771[_0x5ad2a6('0x276f')]?'API:'+_0x211771[_0x5ad2a6('0x276f')]+_0x5ad2a6('0x160c')+_0x211771[_0x5ad2a6('0x2696')]:_0x5ad2a6('0x23ff'),'msg':_0x211771[_0x5ad2a6('0x1e07')]?JSON[_0x5ad2a6('0x100b')](_0x211771[_0x5ad2a6('0x1e07')][_0x5ad2a6('0x67f')]):_0x211771['message']||_0x211771[_0x5ad2a6('0x1b75')]()});});},function(){});}function _0x1f37fb(_0x14c423){return _0x14c423===null?undefined:new Date(_0x14c423);}function _0x44ce3e(_0x38a55d){const _0x5ce4ca=_0xea9708;_0x2e4d1d[_0x5ce4ca('0x1cf4')](_0x38a55d);}}const _0x34480c=_0x473981;_0x427d11[_0x566993('0x17bb')]=[_0x566993('0x27ca'),_0x566993('0xbd4'),'toasty',_0x566993('0x1a29'),_0x566993('0x1600')];function _0x427d11(_0x11f15f,_0x3fd595,_0x46e272,_0x20fe50,_0x59b7b7){const _0x2a7251=_0x566993,_0x306f11=this;_0x306f11[_0x2a7251('0x155f')]=_0x59b7b7[_0x2a7251('0x14d4')](),_0x306f11['license']=_0x20fe50,_0x306f11[_0x2a7251('0x27ca')]=_0x11f15f,_0x306f11[_0x2a7251('0x981')]={};_0x306f11[_0x2a7251('0x27ca')]&&_0x306f11['generals'][_0x2a7251('0x6aa')]&&_0x306f11[_0x2a7251('0x27ca')][_0x2a7251('0x6aa')]['length']&&(_0x306f11[_0x2a7251('0x981')]=_0x306f11['generals'][_0x2a7251('0x6aa')][0x0]);_0x3fd595['cloudProvider'][_0x2a7251('0x1d97')]({'fields':_0x2a7251('0xd52'),'sort':_0x2a7251('0x10ad'),'nolimit':_0x2a7251('0x799')})[_0x2a7251('0x1964')]['then'](function(_0x13b4bf){const _0x2f6e84=_0x2a7251;_0x306f11[_0x2f6e84('0x2542')]=_0x13b4bf[_0x2f6e84('0x6aa')]||[];})[_0x2a7251('0x103c')](function(_0x57023b){const _0x8da033=_0x2a7251;_0x46e272['error']({'title':_0x57023b[_0x8da033('0x276f')]?'API:'+_0x57023b[_0x8da033('0x276f')]+_0x8da033('0x160c')+_0x57023b['statusText']:_0x8da033('0x1ef0'),'msg':_0x57023b[_0x8da033('0x1e07')]?JSON[_0x8da033('0x100b')](_0x57023b['data']):_0x57023b[_0x8da033('0x1b75')]()});}),_0x306f11[_0x2a7251('0x280e')]=_0x4e23c2;function _0x4e23c2(){const _0x10de57=_0x2a7251;_0x306f11[_0x10de57('0x981')]['id']?_0x3fd595[_0x10de57('0x251')][_0x10de57('0x1842')]({'id':_0x306f11[_0x10de57('0x981')]['id']},_0x306f11[_0x10de57('0x981')])[_0x10de57('0x1964')][_0x10de57('0x173b')](function(){const _0x1d5a7f=_0x10de57;_0x46e272['success']({'title':_0x1d5a7f('0x1e44'),'msg':_0x306f11[_0x1d5a7f('0x981')]['name']?_0x306f11[_0x1d5a7f('0x981')][_0x1d5a7f('0x10ad')]+_0x1d5a7f('0x1fd6'):''});})[_0x10de57('0x103c')](function(_0x4d1ad9){const _0x450a72=_0x10de57;_0x46e272['error']({'title':_0x4d1ad9['status']?_0x450a72('0x137')+_0x4d1ad9[_0x450a72('0x276f')]+_0x450a72('0x160c')+_0x4d1ad9[_0x450a72('0x2696')]:_0x450a72('0x1718'),'msg':_0x4d1ad9[_0x450a72('0x1e07')]?JSON[_0x450a72('0x100b')](_0x4d1ad9['data']):_0x4d1ad9['toString']()});}):_0x3fd595[_0x10de57('0x251')][_0x10de57('0x1195')](_0x306f11[_0x10de57('0x981')])[_0x10de57('0x1964')][_0x10de57('0x173b')](function(_0x2b349b){const _0x113d44=_0x10de57;_0x3c8d8a()[_0x113d44('0x9ef')](_0x306f11['general'],_0x2b349b),_0x46e272[_0x113d44('0xdfe')]({'title':_0x113d44('0x1e44'),'msg':_0x306f11[_0x113d44('0x981')]['name']?_0x306f11[_0x113d44('0x981')]['name']+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x134797){const _0x118204=_0x10de57;_0x46e272[_0x118204('0x15aa')]({'title':_0x134797[_0x118204('0x276f')]?_0x118204('0x137')+_0x134797[_0x118204('0x276f')]+_0x118204('0x160c')+_0x134797[_0x118204('0x2696')]:_0x118204('0x1718'),'msg':_0x134797[_0x118204('0x1e07')]?JSON['stringify'](_0x134797['data']):_0x134797[_0x118204('0x1b75')]()});});}}const _0x817b4b=_0x427d11;_0x11da7e[_0x566993('0x17bb')]=['$scope','$state','$location','$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x1ae0'),_0x566993('0x1fd7'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x11da7e(_0x1b61b8,_0x1c25b,_0x3e19dd,_0x3ab23d,_0x50f415,_0x187847,_0x13d499,_0x214d6a,_0x5c8fff,_0x1ca817,_0x58cc09,_0x2c6135,_0x2158bb){const _0x1b4e87=_0x566993,_0x2fbbf4=this;_0x2fbbf4[_0x1b4e87('0x155f')]=_0x58cc09[_0x1b4e87('0x14d4')](),_0x2fbbf4[_0x1b4e87('0x1d4a')]=[],_0x2fbbf4[_0x1b4e87('0x251')]=_0x2158bb,_0x2fbbf4[_0x1b4e87('0x1a29')]=_0x2c6135,_0x2fbbf4[_0x1b4e87('0xb0')]={},_0x2fbbf4[_0x1b4e87('0x644')]=_0x2fbbf4[_0x1b4e87('0x251')]&&_0x2fbbf4[_0x1b4e87('0x251')][_0x1b4e87('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2fbbf4[_0x1b4e87('0x20d6')]=_0x1b4e87('0x1baa'),_0x2fbbf4['network']=angular['copy'](_0x5c8fff),_0x2fbbf4['networks']=_0x214d6a,_0x2fbbf4['newNetwork']=![];!_0x2fbbf4[_0x1b4e87('0x1fd7')]&&(_0x2fbbf4[_0x1b4e87('0x1fd7')]={'type':'localnet'},_0x2fbbf4[_0x1b4e87('0x20d6')]='SETTINGS.NEW_NETWORK',_0x2fbbf4[_0x1b4e87('0xad5')]=!![]);_0x2fbbf4[_0x1b4e87('0x382')]=_0x500f55,_0x2fbbf4[_0x1b4e87('0xe32')]=_0x2a67b5,_0x2fbbf4['deleteNetwork']=_0x171ffa,_0x2fbbf4[_0x1b4e87('0x11ae')]=_0x4aa3c9,_0x2fbbf4['closeDialog']=_0x8f4f7d;function _0x500f55(){const _0x40535a=_0x1b4e87;_0x2fbbf4['errors']=[],_0x1ca817[_0x40535a('0x1fd7')]['save'](_0x2fbbf4[_0x40535a('0x1fd7')])[_0x40535a('0x1964')][_0x40535a('0x173b')](function(_0x64b93f){const _0x1b19e4=_0x40535a;_0x2fbbf4[_0x1b19e4('0x1ae0')]['unshift'](_0x64b93f[_0x1b19e4('0xf1f')]()),_0x13d499[_0x1b19e4('0xdfe')]({'title':_0x1b19e4('0x2821'),'msg':_0x2fbbf4[_0x1b19e4('0x1fd7')]['name']?_0x2fbbf4[_0x1b19e4('0x1fd7')][_0x1b19e4('0x10ad')]+_0x1b19e4('0x209a'):''}),_0x8f4f7d(_0x64b93f);})['catch'](function(_0x2942b7){const _0x2adc86=_0x40535a;if(_0x2942b7[_0x2adc86('0x1e07')]&&_0x2942b7[_0x2adc86('0x1e07')][_0x2adc86('0x1d4a')]&&_0x2942b7[_0x2adc86('0x1e07')][_0x2adc86('0x1d4a')][_0x2adc86('0x543')]){_0x2fbbf4[_0x2adc86('0x1d4a')]=_0x2942b7[_0x2adc86('0x1e07')][_0x2adc86('0x1d4a')]||[{'message':_0x2942b7[_0x2adc86('0x1b75')](),'type':_0x2adc86('0x21ee')}];for(let _0x203b43=0x0;_0x203b43<_0x2942b7['data'][_0x2adc86('0x1d4a')][_0x2adc86('0x543')];_0x203b43+=0x1){_0x13d499['error']({'title':_0x2942b7['data']['errors'][_0x203b43][_0x2adc86('0x1810')],'msg':_0x2942b7[_0x2adc86('0x1e07')][_0x2adc86('0x1d4a')][_0x203b43][_0x2adc86('0x67f')]});}}else _0x13d499[_0x2adc86('0x15aa')]({'title':_0x2942b7[_0x2adc86('0x276f')]?'API:'+_0x2942b7[_0x2adc86('0x276f')]+_0x2adc86('0x160c')+_0x2942b7['statusText']:_0x2adc86('0x21ee'),'msg':_0x2942b7[_0x2adc86('0x1e07')]?JSON[_0x2adc86('0x100b')](_0x2942b7[_0x2adc86('0x1e07')]['message']):_0x2942b7[_0x2adc86('0x1b75')]()});});}function _0x2a67b5(){const _0x4aa39c=_0x1b4e87;_0x2fbbf4[_0x4aa39c('0x1d4a')]=[],_0x1ca817[_0x4aa39c('0x1fd7')]['update']({'id':_0x2fbbf4['network']['id']},_0x2fbbf4[_0x4aa39c('0x1fd7')])[_0x4aa39c('0x1964')]['then'](function(_0x3081e5){const _0x2bb2be=_0x4aa39c,_0x11f0ac=_0x3c8d8a()[_0x2bb2be('0x18ab')](_0x2fbbf4['networks'],{'id':_0x3081e5['id']});_0x11f0ac&&_0x3c8d8a()[_0x2bb2be('0x9ef')](_0x11f0ac,_0x3c8d8a()[_0x2bb2be('0x2114')](_0x3081e5[_0x2bb2be('0xf1f')](),_0x3c8d8a()[_0x2bb2be('0x1d3e')](_0x11f0ac))),_0x13d499['success']({'title':_0x2bb2be('0x1a9'),'msg':_0x2fbbf4[_0x2bb2be('0x1fd7')][_0x2bb2be('0x10ad')]?_0x2fbbf4['network']['name']+'\x20has\x20been\x20saved!':''}),_0x8f4f7d(_0x3081e5);})['catch'](function(_0x47f492){const _0x104f7e=_0x4aa39c;if(_0x47f492[_0x104f7e('0x1e07')]&&_0x47f492['data'][_0x104f7e('0x1d4a')]&&_0x47f492[_0x104f7e('0x1e07')][_0x104f7e('0x1d4a')][_0x104f7e('0x543')]){_0x2fbbf4[_0x104f7e('0x1d4a')]=_0x47f492['data'][_0x104f7e('0x1d4a')]||[{'message':_0x47f492[_0x104f7e('0x1b75')](),'type':_0x104f7e('0x1559')}];for(let _0x417935=0x0;_0x417935<_0x47f492[_0x104f7e('0x1e07')][_0x104f7e('0x1d4a')]['length'];_0x417935++){_0x13d499[_0x104f7e('0x15aa')]({'title':_0x47f492['data']['errors'][_0x417935][_0x104f7e('0x1810')],'msg':_0x47f492[_0x104f7e('0x1e07')][_0x104f7e('0x1d4a')][_0x417935][_0x104f7e('0x67f')]});}}else _0x13d499[_0x104f7e('0x15aa')]({'title':_0x47f492['status']?_0x104f7e('0x137')+_0x47f492[_0x104f7e('0x276f')]+_0x104f7e('0x160c')+_0x47f492['statusText']:_0x104f7e('0x1559'),'msg':_0x47f492[_0x104f7e('0x1e07')]?JSON[_0x104f7e('0x100b')](_0x47f492[_0x104f7e('0x1e07')][_0x104f7e('0x67f')]):_0x47f492[_0x104f7e('0x1b75')]()});});}function _0x171ffa(_0x2ac4a2){const _0x5ab524=_0x1b4e87;_0x2fbbf4[_0x5ab524('0x1d4a')]=[];const _0x29e221=_0x3ab23d[_0x5ab524('0x1d02')]()[_0x5ab524('0x20d6')]('Are\x20you\x20sure?')[_0x5ab524('0x732')]('The\x20network\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Network')['ok'](_0x5ab524('0x2373'))[_0x5ab524('0x1e1f')](_0x5ab524('0x1d4e'))[_0x5ab524('0x21de')](_0x2ac4a2);_0x3ab23d['show'](_0x29e221)['then'](function(){const _0x480acb=_0x5ab524;_0x1ca817[_0x480acb('0x1fd7')]['delete']({'id':_0x2fbbf4['network']['id']})[_0x480acb('0x1964')][_0x480acb('0x173b')](function(){const _0x2d2d2b=_0x480acb;_0x3c8d8a()['remove'](_0x2fbbf4['networks'],{'id':_0x2fbbf4[_0x2d2d2b('0x1fd7')]['id']}),_0x13d499[_0x2d2d2b('0xdfe')]({'title':_0x2d2d2b('0xe6d'),'msg':(_0x2fbbf4[_0x2d2d2b('0x1fd7')][_0x2d2d2b('0x10ad')]||_0x2d2d2b('0x1fd7'))+_0x2d2d2b('0x25d2')}),_0x8f4f7d(_0x2fbbf4[_0x2d2d2b('0x1fd7')]);})['catch'](function(_0x459b22){const _0x549dda=_0x480acb;if(_0x459b22[_0x549dda('0x1e07')]&&_0x459b22[_0x549dda('0x1e07')]['errors']&&_0x459b22[_0x549dda('0x1e07')]['errors'][_0x549dda('0x543')]){_0x2fbbf4[_0x549dda('0x1d4a')]=_0x459b22['data'][_0x549dda('0x1d4a')]||[{'message':_0x459b22[_0x549dda('0x1b75')](),'type':_0x549dda('0x1c53')}];for(let _0x123b1f=0x0;_0x123b1f<_0x459b22['data']['errors']['length'];_0x123b1f++){_0x13d499[_0x549dda('0x15aa')]({'title':_0x459b22[_0x549dda('0x1e07')][_0x549dda('0x1d4a')][_0x123b1f][_0x549dda('0x1810')],'msg':_0x459b22[_0x549dda('0x1e07')][_0x549dda('0x1d4a')][_0x123b1f]['message']});}}else _0x13d499[_0x549dda('0x15aa')]({'title':_0x459b22['status']?'API:'+_0x459b22[_0x549dda('0x276f')]+_0x549dda('0x160c')+_0x459b22[_0x549dda('0x2696')]:_0x549dda('0x1c53'),'msg':_0x459b22[_0x549dda('0x1e07')]?JSON[_0x549dda('0x100b')](_0x459b22['data']['message']):_0x459b22['message']||_0x459b22[_0x549dda('0x1b75')]()});});},function(){});}function _0x4aa3c9(_0x3e01bd){return _0x3e01bd===null?undefined:new Date(_0x3e01bd);}function _0x8f4f7d(_0x1e1cee){_0x3ab23d['hide'](_0x1e1cee);}}const _0x6b5dd=_0x11da7e,_0x5493c0=_0x21a6a1['p']+_0x566993('0x10de');_0x61fee1['$inject']=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state','$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0x1ae0'),'api',_0x566993('0x1f9'),_0x566993('0x1558'),'Auth',_0x566993('0x1a29'),_0x566993('0x251')];function _0x61fee1(_0x49f9d7,_0x13a6c8,_0x5df4a4,_0x3c23fa,_0x6a8abc,_0x5f181e,_0x59e2fa,_0x4748de,_0x42961b,_0x30365f,_0x58e88b,_0xdc2aec,_0x36409c,_0x3e39e5,_0x1cf705){const _0x3ad152=_0x566993,_0x567ebd=this;_0x567ebd[_0x3ad152('0x1a29')]=_0x3e39e5,_0x567ebd[_0x3ad152('0x251')]=_0x1cf705,_0x567ebd[_0x3ad152('0x155f')]=_0x36409c[_0x3ad152('0x14d4')](),_0x567ebd[_0x3ad152('0x1ae0')]=_0x42961b||{'count':0x0,'rows':[]},_0x567ebd[_0x3ad152('0xdf9')]=_0x3ad152('0x1ae0'),_0x567ebd['listOrder']='',_0x567ebd['listOrderAsc']=null,_0x567ebd['selectedNetworks']=[],_0x567ebd[_0x3ad152('0xc49')]={'fields':'createdAt,updatedAt,id,type,value,username,password','sort':_0x3ad152('0x1769'),'limit':0xa,'page':0x1},_0x567ebd[_0x3ad152('0x1f90')]=_0x3c8d8a()[_0x3ad152('0x128')]([{'option':_0x3ad152('0x1b86'),'value':'\x27localnet\x27'},{'option':_0x3ad152('0xf75'),'value':'\x27externip\x27'},{'option':_0x3ad152('0x134d'),'value':_0x3ad152('0x8dc')},{'option':_0x3ad152('0x164f'),'value':_0x3ad152('0x35d')}],function(_0x50638a){const _0x25a0f6=_0x3ad152;return _0x3c8d8a()[_0x25a0f6('0x166c')](_0x50638a['value'],new RegExp('\x27','g'),'');}),_0x567ebd[_0x3ad152('0x19eb')]=_0x44d852,_0x567ebd[_0x3ad152('0x1a20')]=_0x5c8fca,_0x567ebd['success']=_0x1d68d5,_0x567ebd['getNetworks']=_0x4f8e2d,_0x567ebd[_0x3ad152('0x168a')]=_0x163f7b,_0x567ebd[_0x3ad152('0x111a')]=_0x204f39,_0x567ebd['exportSelectedNetworks']=_0x30a5ad,_0x567ebd[_0x3ad152('0x13d9')]=_0x12a0a7,_0x567ebd[_0x3ad152('0x2424')]=_0x195843,_0x567ebd['selectAllNetworks']=_0x209467;function _0x44d852(_0x329f17,_0x128fe5){const _0x3afb15=_0x3ad152;_0x6a8abc[_0x3afb15('0x1cb7')]({'controller':_0x3afb15('0x9ca'),'controllerAs':'vm','templateUrl':_0x5493c0,'parent':angular[_0x3afb15('0xb6d')](_0x5f181e['body']),'targetEvent':_0x128fe5,'clickOutsideToClose':!![],'locals':{'network':_0x329f17,'networks':_0x567ebd[_0x3afb15('0x1ae0')][_0x3afb15('0x6aa')],'license':_0x567ebd['license'],'setting':null,'crudPermissions':_0x567ebd[_0x3afb15('0x1dc1')]}});}function _0x5c8fca(_0x496934,_0x59bcba){const _0x363f89=_0x3ad152,_0x373508=_0x6a8abc['confirm']()[_0x363f89('0x20d6')](_0x363f89('0x5bb')+_0x3c8d8a()[_0x363f89('0x10e')](_0x363f89('0x1fd7'))+'?')[_0x363f89('0xf8b')](''+(_0x496934[_0x363f89('0x10ad')]||_0x363f89('0x1fd7'))+''+'\x20will\x20be\x20deleted.')[_0x363f89('0x217')](_0x363f89('0x25d4'))[_0x363f89('0x21de')](_0x59bcba)['ok']('OK')[_0x363f89('0x1e1f')](_0x363f89('0x468'));_0x6a8abc[_0x363f89('0x1cb7')](_0x373508)[_0x363f89('0x173b')](function(){_0x204f39(_0x496934);},function(){const _0x214b93=_0x363f89;console['log'](_0x214b93('0x468'));});}let _0x43b2da=!![],_0x34eb02=0x1;_0x49f9d7[_0x3ad152('0x1bdb')](_0x3ad152('0x157b'),function(_0x90da42,_0x4d542b){const _0x7e27a6=_0x3ad152;_0x43b2da?_0x59e2fa(function(){_0x43b2da=![];}):(!_0x4d542b&&(_0x34eb02=_0x567ebd['query'][_0x7e27a6('0x182e')]),_0x90da42!==_0x4d542b&&(_0x567ebd['query'][_0x7e27a6('0x182e')]=0x1),!_0x90da42&&(_0x567ebd[_0x7e27a6('0xc49')]['page']=_0x34eb02),_0x567ebd[_0x7e27a6('0x27da')]());});function _0x1d68d5(_0x3fad3d){const _0x147d8c=_0x3ad152;_0x567ebd[_0x147d8c('0x1ae0')]=_0x3fad3d||{'count':0x0,'rows':[]};}function _0x4f8e2d(){const _0x2c3cc4=_0x3ad152;_0x567ebd[_0x2c3cc4('0xc49')][_0x2c3cc4('0x17f0')]=(_0x567ebd[_0x2c3cc4('0xc49')]['page']-0x1)*_0x567ebd['query'][_0x2c3cc4('0x3e')],_0x36409c[_0x2c3cc4('0x1b4e')](_0x2c3cc4('0x79b'))?_0x567ebd[_0x2c3cc4('0x2219')]=_0x30365f[_0x2c3cc4('0x1fd7')]['get'](_0x567ebd[_0x2c3cc4('0xc49')],_0x1d68d5)['$promise']:(_0x567ebd[_0x2c3cc4('0xc49')]['id']=_0x567ebd['userProfile']['id'],_0x567ebd[_0x2c3cc4('0xc49')][_0x2c3cc4('0x17c9')]=_0x2c3cc4('0x21d7'),_0x567ebd['promise']=_0x30365f['userProfile'][_0x2c3cc4('0x135b')](_0x567ebd[_0x2c3cc4('0xc49')],_0x1d68d5)[_0x2c3cc4('0x1964')]);}function _0x163f7b(_0x4297d9,_0x1efb84){const _0x579c85=_0x3ad152;_0x6a8abc[_0x579c85('0x1cb7')]({'controller':_0x579c85('0x9ca'),'controllerAs':'vm','templateUrl':_0x5493c0,'parent':angular['element'](_0x5f181e['body']),'targetEvent':_0x4297d9,'clickOutsideToClose':!![],'locals':{'network':_0x1efb84,'networks':_0x567ebd['networks'][_0x579c85('0x6aa')],'license':_0x567ebd[_0x579c85('0x1a29')],'setting':_0x567ebd[_0x579c85('0x251')],'crudPermissions':_0x567ebd[_0x579c85('0x1dc1')]}});}function _0x204f39(_0x4be2bc){const _0x5c2e07=_0x3ad152;_0x30365f[_0x5c2e07('0x1fd7')][_0x5c2e07('0x15e8')]({'id':_0x4be2bc['id']})[_0x5c2e07('0x1964')][_0x5c2e07('0x173b')](function(){const _0x37d984=_0x5c2e07;_0x3c8d8a()[_0x37d984('0x1a8b')](_0x567ebd['networks'][_0x37d984('0x6aa')],{'id':_0x4be2bc['id']}),_0x567ebd[_0x37d984('0x1ae0')][_0x37d984('0x1a2f')]-=0x1,!_0x567ebd['networks'][_0x37d984('0x6aa')][_0x37d984('0x543')]&&_0x567ebd[_0x37d984('0x27da')](),_0xdc2aec[_0x37d984('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x37d984('0x810'))+'\x20deleted!','msg':_0x4be2bc[_0x37d984('0x10ad')]?_0x4be2bc[_0x37d984('0x10ad')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x111d83){const _0x44859e=_0x5c2e07;if(_0x111d83[_0x44859e('0x1e07')]&&_0x111d83[_0x44859e('0x1e07')]['errors']&&_0x111d83[_0x44859e('0x1e07')][_0x44859e('0x1d4a')][_0x44859e('0x543')]){_0x567ebd['errors']=_0x111d83['data'][_0x44859e('0x1d4a')]||[{'message':_0x111d83['toString'](),'type':_0x44859e('0x1b16')}];for(let _0x3d309d=0x0;_0x3d309d<_0x111d83[_0x44859e('0x1e07')][_0x44859e('0x1d4a')][_0x44859e('0x543')];_0x3d309d++){_0xdc2aec[_0x44859e('0x15aa')]({'title':_0x111d83[_0x44859e('0x1e07')][_0x44859e('0x1d4a')][_0x3d309d][_0x44859e('0x1810')],'msg':_0x111d83['data']['errors'][_0x3d309d][_0x44859e('0x67f')]});}}else _0xdc2aec[_0x44859e('0x15aa')]({'title':_0x111d83['status']?_0x44859e('0x137')+_0x111d83[_0x44859e('0x276f')]+'\x20-\x20'+_0x111d83[_0x44859e('0x2696')]:_0x44859e('0x1b16'),'msg':_0x111d83[_0x44859e('0x1e07')]?JSON['stringify'](_0x111d83[_0x44859e('0x1e07')][_0x44859e('0x67f')]):_0x111d83[_0x44859e('0x67f')]||_0x111d83[_0x44859e('0x1b75')]()});});}function _0x30a5ad(){const _0x28082e=_0x3ad152,_0x458e63=angular['copy'](_0x567ebd['selectedNetworks']);return _0x567ebd[_0x28082e('0x128e')]=[],_0x458e63;}function _0x12a0a7(_0x11b335){const _0x332450=_0x3ad152,_0x5afb9d=_0x6a8abc[_0x332450('0x1d02')]()[_0x332450('0x20d6')](_0x332450('0x11ad'))[_0x332450('0xf8b')](''+_0x567ebd[_0x332450('0x128e')][_0x332450('0x543')]+_0x332450('0xcb4')+_0x332450('0xd23'))[_0x332450('0x217')](_0x332450('0x1aeb'))[_0x332450('0x21de')](_0x11b335)['ok']('OK')[_0x332450('0x1e1f')]('CANCEL');_0x6a8abc[_0x332450('0x1cb7')](_0x5afb9d)[_0x332450('0x173b')](function(){const _0xecbfd5=_0x332450;_0x567ebd['selectedNetworks'][_0xecbfd5('0xa6a')](function(_0x52018b){_0x204f39(_0x52018b);}),_0x567ebd['selectedNetworks']=[];});}function _0x195843(){const _0x25ccf8=_0x3ad152;_0x567ebd[_0x25ccf8('0x128e')]=[];}function _0x209467(){const _0x5381de=_0x3ad152;_0x567ebd['selectedNetworks']=_0x567ebd[_0x5381de('0x1ae0')][_0x5381de('0x6aa')];}}const _0x2554c0=_0x61fee1;_0x5fa505['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x1439'),_0x566993('0x94b'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x5fa505(_0x50d118,_0x59eacb,_0x4c9ff5,_0x395a11,_0x39f4a4,_0x56ad40,_0x49be27,_0xafc1e1,_0x16c7c1,_0xc86b7d,_0x28cc18,_0x16d122,_0x177115,_0x5c8f54){const _0x5d7979=_0x566993,_0x2a1af6=this;_0x2a1af6[_0x5d7979('0x155f')]=_0x28cc18[_0x5d7979('0x14d4')](),_0x2a1af6[_0x5d7979('0x1d4a')]=[],_0x2a1af6[_0x5d7979('0x251')]=_0x177115,_0x2a1af6[_0x5d7979('0x1a29')]=_0x16d122,_0x2a1af6['crudPermissions']=_0x5c8f54,_0x2a1af6[_0x5d7979('0xb0')]={},_0x2a1af6[_0x5d7979('0x644')]=_0x2a1af6[_0x5d7979('0x251')]&&_0x2a1af6[_0x5d7979('0x251')][_0x5d7979('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a1af6[_0x5d7979('0x20d6')]='SETTINGS.EDIT_SMTP',_0x2a1af6['smtp']=angular[_0x5d7979('0x2e3')](_0x16c7c1),_0x2a1af6[_0x5d7979('0x1439')]=_0xafc1e1,_0x2a1af6['newSmtp']=![];!_0x2a1af6[_0x5d7979('0x94b')]&&(_0x2a1af6[_0x5d7979('0x94b')]={'service':!![]},_0x2a1af6[_0x5d7979('0x20d6')]=_0x5d7979('0x1f46'),_0x2a1af6[_0x5d7979('0x75b')]=!![]);_0x2a1af6[_0x5d7979('0xbf9')]=_0x2e2cc7,_0x2a1af6[_0x5d7979('0x26f2')]=_0x556c1d,_0x2a1af6['deleteSmtp']=_0x1b39b2,_0x2a1af6[_0x5d7979('0x11ae')]=_0x17ce63,_0x2a1af6[_0x5d7979('0x18e2')]=_0x20a928;function _0x2e2cc7(){const _0x99516a=_0x5d7979;_0x2a1af6[_0x99516a('0x1d4a')]=[],_0xc86b7d['mailAccount'][_0x99516a('0x1195')](_0x2a1af6['smtp'])[_0x99516a('0x1964')][_0x99516a('0x173b')](function(_0x1c2c55){const _0x2cdb48=_0x99516a;_0x2a1af6[_0x2cdb48('0x1439')][_0x2cdb48('0x1377')](_0x1c2c55[_0x2cdb48('0xf1f')]()),_0x49be27[_0x2cdb48('0xdfe')]({'title':_0x2cdb48('0x1e71'),'msg':_0x2a1af6['smtp'][_0x2cdb48('0x10ad')]?_0x2a1af6[_0x2cdb48('0x94b')]['name']+_0x2cdb48('0x209a'):''}),_0x20a928(_0x1c2c55);})[_0x99516a('0x103c')](function(_0x525d10){const _0x148c75=_0x99516a;if(_0x525d10[_0x148c75('0x1e07')]&&_0x525d10[_0x148c75('0x1e07')]['errors']&&_0x525d10[_0x148c75('0x1e07')][_0x148c75('0x1d4a')][_0x148c75('0x543')]){_0x2a1af6[_0x148c75('0x1d4a')]=_0x525d10[_0x148c75('0x1e07')]['errors']||[{'message':_0x525d10[_0x148c75('0x1b75')](),'type':_0x148c75('0x768')}];for(let _0x22906a=0x0;_0x22906a<_0x525d10[_0x148c75('0x1e07')][_0x148c75('0x1d4a')]['length'];_0x22906a+=0x1){_0x49be27[_0x148c75('0x15aa')]({'title':_0x525d10['data']['errors'][_0x22906a][_0x148c75('0x1810')],'msg':_0x525d10[_0x148c75('0x1e07')][_0x148c75('0x1d4a')][_0x22906a][_0x148c75('0x67f')]});}}else _0x49be27[_0x148c75('0x15aa')]({'title':_0x525d10[_0x148c75('0x276f')]?_0x148c75('0x137')+_0x525d10[_0x148c75('0x276f')]+'\x20-\x20'+_0x525d10[_0x148c75('0x2696')]:_0x148c75('0x768'),'msg':_0x525d10[_0x148c75('0x1e07')]?JSON['stringify'](_0x525d10[_0x148c75('0x1e07')][_0x148c75('0x67f')]):_0x525d10['toString']()});});}function _0x556c1d(){const _0x4a2e4f=_0x5d7979;_0x2a1af6['errors']=[],_0xc86b7d[_0x4a2e4f('0x77b')][_0x4a2e4f('0x1842')]({'id':_0x2a1af6['smtp']['id']},_0x2a1af6[_0x4a2e4f('0x94b')])['$promise'][_0x4a2e4f('0x173b')](function(_0x211a45){const _0x7c487=_0x4a2e4f,_0x308245=_0x3c8d8a()[_0x7c487('0x18ab')](_0x2a1af6[_0x7c487('0x1439')],{'id':_0x211a45['id']});_0x308245&&_0x3c8d8a()['merge'](_0x308245,_0x3c8d8a()[_0x7c487('0x2114')](_0x211a45[_0x7c487('0xf1f')](),_0x3c8d8a()[_0x7c487('0x1d3e')](_0x308245))),_0x49be27[_0x7c487('0xdfe')]({'title':'Smtp\x20properly\x20saved!','msg':_0x2a1af6[_0x7c487('0x94b')][_0x7c487('0x10ad')]?_0x2a1af6[_0x7c487('0x94b')][_0x7c487('0x10ad')]+_0x7c487('0x2788'):''}),_0x20a928(_0x211a45);})[_0x4a2e4f('0x103c')](function(_0x5e2e36){const _0x22f8fc=_0x4a2e4f;if(_0x5e2e36[_0x22f8fc('0x1e07')]&&_0x5e2e36[_0x22f8fc('0x1e07')]['errors']&&_0x5e2e36[_0x22f8fc('0x1e07')][_0x22f8fc('0x1d4a')][_0x22f8fc('0x543')]){_0x2a1af6[_0x22f8fc('0x1d4a')]=_0x5e2e36[_0x22f8fc('0x1e07')][_0x22f8fc('0x1d4a')]||[{'message':_0x5e2e36[_0x22f8fc('0x1b75')](),'type':'api.mailAccount.update'}];for(let _0x169c8d=0x0;_0x169c8d<_0x5e2e36[_0x22f8fc('0x1e07')][_0x22f8fc('0x1d4a')][_0x22f8fc('0x543')];_0x169c8d++){_0x49be27[_0x22f8fc('0x15aa')]({'title':_0x5e2e36['data'][_0x22f8fc('0x1d4a')][_0x169c8d][_0x22f8fc('0x1810')],'msg':_0x5e2e36[_0x22f8fc('0x1e07')][_0x22f8fc('0x1d4a')][_0x169c8d][_0x22f8fc('0x67f')]});}}else _0x49be27[_0x22f8fc('0x15aa')]({'title':_0x5e2e36[_0x22f8fc('0x276f')]?'API:'+_0x5e2e36['status']+_0x22f8fc('0x160c')+_0x5e2e36['statusText']:_0x22f8fc('0x1624'),'msg':_0x5e2e36[_0x22f8fc('0x1e07')]?JSON[_0x22f8fc('0x100b')](_0x5e2e36[_0x22f8fc('0x1e07')][_0x22f8fc('0x67f')]):_0x5e2e36[_0x22f8fc('0x1b75')]()});});}function _0x1b39b2(_0x434d86){const _0x8cdf89=_0x5d7979;_0x2a1af6[_0x8cdf89('0x1d4a')]=[];const _0x5f0698=_0x395a11[_0x8cdf89('0x1d02')]()[_0x8cdf89('0x20d6')](_0x8cdf89('0x8ef'))[_0x8cdf89('0x732')]('The\x20smtp\x20will\x20be\x20deleted.')['ariaLabel'](_0x8cdf89('0x173d'))['ok']('Delete')[_0x8cdf89('0x1e1f')](_0x8cdf89('0x1d4e'))[_0x8cdf89('0x21de')](_0x434d86);_0x395a11[_0x8cdf89('0x1cb7')](_0x5f0698)[_0x8cdf89('0x173b')](function(){const _0x44c898=_0x8cdf89;_0xc86b7d[_0x44c898('0x77b')][_0x44c898('0x15e8')]({'id':_0x2a1af6[_0x44c898('0x94b')]['id']})['$promise'][_0x44c898('0x173b')](function(){const _0x19924a=_0x44c898;_0x3c8d8a()[_0x19924a('0x1a8b')](_0x2a1af6[_0x19924a('0x1439')],{'id':_0x2a1af6[_0x19924a('0x94b')]['id']}),_0x49be27[_0x19924a('0xdfe')]({'title':_0x19924a('0x12b2'),'msg':(_0x2a1af6[_0x19924a('0x94b')]['name']||'smtp')+'\x20has\x20been\x20deleted!'}),_0x20a928(_0x2a1af6[_0x19924a('0x94b')]);})[_0x44c898('0x103c')](function(_0x3ec869){const _0x47599f=_0x44c898;if(_0x3ec869[_0x47599f('0x1e07')]&&_0x3ec869[_0x47599f('0x1e07')][_0x47599f('0x1d4a')]&&_0x3ec869['data'][_0x47599f('0x1d4a')][_0x47599f('0x543')]){_0x2a1af6[_0x47599f('0x1d4a')]=_0x3ec869[_0x47599f('0x1e07')][_0x47599f('0x1d4a')]||[{'message':_0x3ec869[_0x47599f('0x1b75')](),'type':_0x47599f('0x99a')}];for(let _0x229a4d=0x0;_0x229a4d<_0x3ec869[_0x47599f('0x1e07')][_0x47599f('0x1d4a')]['length'];_0x229a4d++){_0x49be27[_0x47599f('0x15aa')]({'title':_0x3ec869['data'][_0x47599f('0x1d4a')][_0x229a4d][_0x47599f('0x1810')],'msg':_0x3ec869[_0x47599f('0x1e07')]['errors'][_0x229a4d][_0x47599f('0x67f')]});}}else _0x49be27[_0x47599f('0x15aa')]({'title':_0x3ec869[_0x47599f('0x276f')]?_0x47599f('0x137')+_0x3ec869['status']+_0x47599f('0x160c')+_0x3ec869[_0x47599f('0x2696')]:_0x47599f('0x99a'),'msg':_0x3ec869[_0x47599f('0x1e07')]?JSON['stringify'](_0x3ec869[_0x47599f('0x1e07')][_0x47599f('0x67f')]):_0x3ec869[_0x47599f('0x67f')]||_0x3ec869[_0x47599f('0x1b75')]()});});},function(){});}function _0x17ce63(_0x4f22d0){return _0x4f22d0===null?undefined:new Date(_0x4f22d0);}function _0x20a928(_0x1b309a){const _0x11226d=_0x5d7979;_0x395a11[_0x11226d('0x1cf4')](_0x1b309a);}}const _0x5d0085=_0x5fa505;_0x3f1bf4['$inject']=[_0x566993('0x1439'),_0x566993('0xbd4'),'toasty',_0x566993('0x1a29'),_0x566993('0x1600')];function _0x3f1bf4(_0x49fa1e,_0x3fae90,_0x58afdb,_0x1cbece,_0x2360dc){const _0x4a2dac=_0x566993,_0x358f00=this;_0x358f00[_0x4a2dac('0x155f')]=_0x2360dc[_0x4a2dac('0x14d4')](),_0x358f00[_0x4a2dac('0x1a29')]=_0x1cbece,_0x358f00[_0x4a2dac('0x1439')]=_0x49fa1e,_0x358f00[_0x4a2dac('0x94b')]={};_0x358f00[_0x4a2dac('0x1439')]&&_0x358f00[_0x4a2dac('0x1439')][_0x4a2dac('0x6aa')]&&_0x358f00[_0x4a2dac('0x1439')]['rows']['length']?_0x358f00[_0x4a2dac('0x94b')]=_0x358f00['smtps'][_0x4a2dac('0x6aa')][0x0]:_0x358f00[_0x4a2dac('0x94b')]={'service':!![],'Smtp':{'service':null}};_0x358f00[_0x4a2dac('0x26f2')]=_0x4868a0,_0x358f00[_0x4a2dac('0xab1')]=_0x4bbe51;function _0x4bbe51(){const _0x259c23=_0x4a2dac;_0x358f00[_0x259c23('0x94b')]['id']&&_0x3fae90['mailAccount'][_0x259c23('0xab1')]({'id':_0x358f00['smtp']['id']})[_0x259c23('0x1964')]['then'](function(){const _0x38c7b0=_0x259c23;_0x58afdb[_0x38c7b0('0xdfe')]({'title':_0x38c7b0('0x29c'),'msg':_0x358f00['smtp'][_0x38c7b0('0x10ad')]?_0x358f00[_0x38c7b0('0x94b')]['name']+_0x38c7b0('0x17e8'):''});})[_0x259c23('0x103c')](function(_0x29950f){const _0x388937=_0x259c23;_0x58afdb[_0x388937('0x15aa')]({'title':'Smtp\x20not\x20verified!\x20Remember\x20to\x20save\x20before\x20to\x20verify!','msg':_0x29950f[_0x388937('0x1e07')]?JSON[_0x388937('0x100b')](_0x29950f['data']):_0x29950f['toString'](),'timeout':0x2710});});}function _0x4868a0(){const _0x32e69d=_0x4a2dac;_0x358f00[_0x32e69d('0x94b')]['id']?_0x3fae90[_0x32e69d('0x77b')][_0x32e69d('0x1842')]({'id':_0x358f00[_0x32e69d('0x94b')]['id']},_0x358f00[_0x32e69d('0x94b')])[_0x32e69d('0x1964')][_0x32e69d('0x173b')](function(){const _0x1297ba=_0x32e69d;_0x58afdb[_0x1297ba('0xdfe')]({'title':_0x1297ba('0x1edb'),'msg':_0x358f00[_0x1297ba('0x94b')][_0x1297ba('0x10ad')]?_0x358f00['smtp'][_0x1297ba('0x10ad')]+_0x1297ba('0x1fd6'):''});})[_0x32e69d('0x103c')](function(_0x3320b){const _0x5a93aa=_0x32e69d;_0x58afdb[_0x5a93aa('0x15aa')]({'title':_0x3320b[_0x5a93aa('0x276f')]?'API:'+_0x3320b[_0x5a93aa('0x276f')]+'\x20-\x20'+_0x3320b[_0x5a93aa('0x2696')]:_0x5a93aa('0x22e2'),'msg':_0x3320b[_0x5a93aa('0x1e07')]?JSON[_0x5a93aa('0x100b')](_0x3320b[_0x5a93aa('0x1e07')]):_0x3320b['toString']()});}):_0x3fae90['mailAccount'][_0x32e69d('0x1195')](_0x358f00[_0x32e69d('0x94b')])[_0x32e69d('0x1964')][_0x32e69d('0x173b')](function(_0x291930){const _0x553b0f=_0x32e69d;_0x3c8d8a()[_0x553b0f('0x9ef')](_0x358f00[_0x553b0f('0x94b')],_0x291930),_0x58afdb[_0x553b0f('0xdfe')]({'title':_0x553b0f('0x1edb'),'msg':_0x358f00[_0x553b0f('0x94b')][_0x553b0f('0x10ad')]?_0x358f00[_0x553b0f('0x94b')][_0x553b0f('0x10ad')]+'\x20has\x20been\x20updated!':''});})[_0x32e69d('0x103c')](function(_0x5438ca){const _0x385605=_0x32e69d;_0x58afdb['error']({'title':_0x5438ca[_0x385605('0x276f')]?_0x385605('0x137')+_0x5438ca['status']+'\x20-\x20'+_0x5438ca['statusText']:_0x385605('0x22e2'),'msg':_0x5438ca[_0x385605('0x1e07')]?JSON[_0x385605('0x100b')](_0x5438ca['data']):_0x5438ca[_0x385605('0x1b75')]()});});}}const _0x4d9e58=_0x3f1bf4;_0x474ff7[_0x566993('0x17bb')]=['$stateProvider',_0x566993('0x8ca')];function _0x474ff7(_0x55453b,_0xbbaaca){const _0xe87c50=_0x566993;_0x55453b[_0xe87c50('0x1a49')]('app.settings',{'abstract':!![],'url':_0xe87c50('0x2008')})[_0xe87c50('0x1a49')]('app.settings.generals',{'url':'/generals','views':{'content@app':{'templateUrl':_0x45052d,'controller':'GeneralsController\x20as\x20vm'}},'resolve':{'generals':[_0xe87c50('0x2401'),function(_0x564475){const _0x1d375b=_0xe87c50;return _0x564475['resolve'](_0x1d375b('0x1e97'),{'fields':_0x1d375b('0x7d9'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'})[_0xe87c50('0x1a49')](_0xe87c50('0x15ec'),{'url':'/smtps','views':{'content@app':{'templateUrl':_0x2789f1,'controller':_0xe87c50('0x1a17')}},'resolve':{'smtps':[_0xe87c50('0x2401'),function(_0x501968){const _0x43960e=_0xe87c50;return _0x501968[_0x43960e('0x155b')](_0x43960e('0x1ff9'),{'fields':_0x43960e('0x1bc'),'service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0xe87c50('0x1fe9')})['state']('app.settings.networks',{'url':_0xe87c50('0x164a'),'views':{'content@app':{'templateUrl':_0x444115,'controller':_0xe87c50('0x53c')}},'resolve':{'networks':['apiResolver',function(_0x4387e6){const _0x2d8d1b=_0xe87c50;return _0x4387e6[_0x2d8d1b('0x155b')]('network@get',{'fields':_0x2d8d1b('0x2494'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0xe87c50('0x1fe9')})[_0xe87c50('0x1a49')](_0xe87c50('0x207b'),{'url':_0xe87c50('0x2066'),'views':{'content@app':{'templateUrl':_0x5758e7,'controller':_0xe87c50('0xe59')}},'resolve':{'customizations':[_0xe87c50('0x2401'),function(_0x571ee2){const _0x5a6da4=_0xe87c50;return _0x571ee2[_0x5a6da4('0x155b')](_0x5a6da4('0x1e97'),{'fields':_0x5a6da4('0xc16'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'})[_0xe87c50('0x1a49')]('app.settings.cloudProviders',{'url':_0xe87c50('0x9ac'),'views':{'content@app':{'templateUrl':_0x29512e,'controller':_0xe87c50('0x179e')}},'resolve':{'cloudProviders':['apiResolver',function(_0x48283e){const _0x32db88=_0xe87c50;return _0x48283e[_0x32db88('0x155b')](_0x32db88('0x17ad'),{'fields':_0x32db88('0x23c6'),'sort':_0x32db88('0x1769'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0xe87c50('0x1fe9')}),_0xbbaaca['addPart'](_0xe87c50('0x1f82'));}angular['module'](_0x566993('0x13d4'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),'md.data.table',_0x566993('0x1789'),'mdColorPicker',_0x566993('0x26f0'),'ng-sortable',_0x566993('0x20fc'),_0x566993('0x8a3'),_0x566993('0x1146'),'mwFormBuilder',_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),'angular-cron-jobs',_0x566993('0x1ce7'),'angularMaterialFormBuilder',_0x566993('0xcfd'),'chart.js',_0x566993('0x2392'),_0x566993('0x62e'),_0x566993('0x1203'),_0x566993('0x1754')])[_0x566993('0xea9')](_0x474ff7)[_0x566993('0x1e65')]('CloudProvidersController',_0x1aa313)[_0x566993('0x1e65')](_0x566993('0x5a2'),_0x4a0d13)[_0x566993('0x1e65')](_0x566993('0x1b9e'),_0x3522ed)[_0x566993('0x1e65')](_0x566993('0x11e'),_0x545af8)[_0x566993('0x1e65')](_0x566993('0x1af5'),_0x1d5551)[_0x566993('0x1e65')](_0x566993('0x2023'),_0x5d9d53)[_0x566993('0x1e65')](_0x566993('0xf9f'),_0x5b1647)[_0x566993('0x1e65')](_0x566993('0x1054'),_0x221716)[_0x566993('0x1e65')](_0x566993('0x228b'),_0x34480c)['controller']('GeneralsController',_0x817b4b)[_0x566993('0x1e65')](_0x566993('0x9ca'),_0x6b5dd)[_0x566993('0x1e65')](_0x566993('0x77c'),_0x2554c0)[_0x566993('0x1e65')]('CreateOrEditSmtpDialogController',_0x5d0085)[_0x566993('0x1e65')]('SmtpController',_0x4d9e58);const _0x112280=_0x21a6a1['p']+_0x566993('0xa07'),_0x29bc1e=_0x21a6a1['p']+_0x566993('0x955'),_0x29c065=_0x21a6a1['p']+_0x566993('0x25e'),_0x297b2e=_0x21a6a1['p']+_0x566993('0xe57'),_0x498d8d=_0x21a6a1['p']+_0x566993('0x1280'),_0x265966=_0x21a6a1['p']+_0x566993('0x1db3'),_0x1e35e2=_0x21a6a1['p']+_0x566993('0x99b'),_0x2730ea=_0x21a6a1['p']+_0x566993('0x22fd');_0x1c681a[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1d31'),_0x566993('0x638'),'api',_0x566993('0x257b'),'userProfileSection',_0x566993('0x1600'),_0x566993('0x2fc'),_0x566993('0x1558'),'agents',_0x566993('0x9c6')];function _0x1c681a(_0x504087,_0x5ad9b0,_0x537b2c,_0x30fcd8,_0x2d4f7c,_0x5e54e3,_0x300519,_0x57d692,_0x2d2894,_0x4c0a5a,_0x33cf4d,_0xc7cb0e,_0x11cd96,_0xc4fe3b){const _0x1ca133=_0x566993,_0x51130b=this;_0x51130b[_0x1ca133('0x155f')]=_0x4c0a5a[_0x1ca133('0x14d4')](),_0x51130b[_0x1ca133('0x11fa')]=_0x11cd96?_0x11cd96:[],_0x51130b['dispositions']=_0xc4fe3b,_0x51130b[_0x1ca133('0x3f')]={'count':0x0,'rows':[]},_0x51130b[_0x1ca133('0x1319')]=![],_0x51130b[_0x1ca133('0x1d82')]=!![],_0x51130b[_0x1ca133('0x257b')]=_0x57d692,_0x51130b['userProfileSection']=_0x2d2894&&_0x2d2894['count']==0x1?_0x2d2894[_0x1ca133('0x6aa')][0x0]:null,_0x51130b[_0x1ca133('0x1dc1')]=_0x4c0a5a[_0x1ca133('0xde6')](_0x51130b['userProfileSection']?_0x51130b[_0x1ca133('0x170e')][_0x1ca133('0x1dc1')]:null),_0x51130b[_0x1ca133('0xc49')]={'fields':_0x1ca133('0x88f'),'type':'outbound','queuecallerexitreason':_0x1ca133('0x16ac')+','+_0x1ca133('0x27e'),'sort':_0x1ca133('0x1769'),'limit':0xa,'page':0x1},_0x51130b[_0x1ca133('0xf4a')]=_0xc4cfa0,_0x51130b[_0x1ca133('0x25c1')]=_0x3062fe,_0x51130b[_0x1ca133('0x2094')]=_0x2693de,_0x51130b['dispose']=_0x4c6fce,_0x51130b['onSaveVoiceQueueReport']=_0x1a6596,_0x51130b[_0x1ca133('0x10f3')]=_0x3111bb,_0x33cf4d['onWithoutApply'](_0x1ca133('0x14b9'),_0x51130b['onSaveVoiceQueueReport']),_0x33cf4d['on']('voiceQueueReport:update',_0x51130b[_0x1ca133('0x10f3')]),_0x55bbbb();function _0x55bbbb(){const _0x9f3576=_0x1ca133;let _0x5a76bb=_0x2d4f7c[_0x9f3576('0x1937')][_0x9f3576('0x1949')](_0x9f3576('0x13f8')+_0x51130b['currentUser']['id']);if(_0x5a76bb)_0x5a76bb=JSON[_0x9f3576('0x1d5e')](_0x5a76bb),_0x5a76bb&&_0x5a76bb[_0x9f3576('0xc49')]&&(_0x51130b[_0x9f3576('0xc49')]=_0x3c8d8a()[_0x9f3576('0x9ef')](_0x5a76bb[_0x9f3576('0xc49')],_0x3c8d8a()['omit'](_0x51130b['query'],['sort',_0x9f3576('0x3e'),_0x9f3576('0x182e')])),_0x51130b[_0x9f3576('0xc49')]=_0x3c8d8a()['omit'](_0x51130b[_0x9f3576('0xc49')],_0x9f3576('0x278d')));else{const _0x1461c2={'$gte':_0x156524()()[_0x9f3576('0x2145')](_0x9f3576('0x70b'))[_0x9f3576('0xaf5')](0x0,!![])['format'](),'$lte':_0x156524()()[_0x9f3576('0x733')](_0x9f3576('0x70b'))[_0x9f3576('0xaf5')](0x0,!![])[_0x9f3576('0xddc')]()};_0x51130b[_0x9f3576('0xc49')]['createdAt']=_0x1461c2;}_0x4c0a5a[_0x9f3576('0x1b4e')](_0x9f3576('0x79b'))?_0x300519[_0x9f3576('0x166f')][_0x9f3576('0x115e')]({'id':_0x4c0a5a['getCurrentUser']()['id'],'fields':'id,name','channel':_0x9f3576('0x21a8'),'type':'outbound','nolimit':!![]})[_0x9f3576('0x1964')][_0x9f3576('0x173b')](function(_0x171742){const _0x3032c8=_0x9f3576;_0x51130b[_0x3032c8('0xeae')]=_0x171742||{'count':0x0,'rows':[]},_0x51130b[_0x3032c8('0xd5c')]=_0x3c8d8a()[_0x3032c8('0xa88')](_0x3c8d8a()[_0x3032c8('0x128')](_0x51130b[_0x3032c8('0xeae')][_0x3032c8('0x6aa')],_0x3032c8('0x10ad')),'name');})['catch'](function(_0x2329e0){const _0x46d8f5=_0x9f3576;console[_0x46d8f5('0x15aa')](_0x2329e0);})[_0x9f3576('0xf25')](function(){const _0x1ef800=_0x9f3576;_0x51130b[_0x1ef800('0x485')]=_0x418679(),_0x51130b[_0x1ef800('0xf4a')]();}):_0x300519['userProfile'][_0x9f3576('0x135b')]({'id':_0x51130b['currentUser'][_0x9f3576('0x1946')],'section':_0x9f3576('0x16ad'),'channel':_0x9f3576('0x21a8'),'type':_0x9f3576('0xb33'),'sort':_0x9f3576('0x1769'),'nolimit':!![]})[_0x9f3576('0x1964')]['then'](function(_0x5902dd){const _0x2520b0=_0x9f3576;_0x51130b[_0x2520b0('0xeae')]=_0x5902dd||{'count':0x0,'rows':[]},_0x51130b[_0x2520b0('0xd5c')]=_0x3c8d8a()[_0x2520b0('0xa88')](_0x3c8d8a()[_0x2520b0('0x128')](_0x51130b[_0x2520b0('0xeae')][_0x2520b0('0x6aa')],_0x2520b0('0x10ad')),_0x2520b0('0x10ad'));})[_0x9f3576('0x103c')](function(_0x2ceb61){const _0x298603=_0x9f3576;console[_0x298603('0x15aa')](_0x2ceb61);})['finally'](function(){_0x51130b['quickFilters']=_0x418679(),_0x51130b['getAbandonedCalls']();});}function _0x418679(){const _0x2c8000=_0x1ca133;return[{'name':'Start\x20Date','key':_0x2c8000('0xda8'),'type':_0x2c8000('0x22b6'),'label':_0x2c8000('0xa98')},{'name':_0x2c8000('0x1547'),'key':_0x2c8000('0xde7'),'type':_0x2c8000('0xc65'),'label':_0x2c8000('0x956'),'options':_0x51130b[_0x2c8000('0x11fa')]['rows'],'customOptions':[{'value':_0x2c8000('0x24e6'),'translate':_0x2c8000('0x27a8')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x2c8000('0xde5'),'key':_0x2c8000('0x172'),'type':_0x2c8000('0x1c68'),'label':_0x2c8000('0x6b'),'options':_0x51130b[_0x2c8000('0xeae')]['rows']}];}function _0xc4cfa0(){const _0x3afb13=_0x1ca133;_0x51130b[_0x3afb13('0x1d82')]=![],_0x51130b[_0x3afb13('0xeae')]['count']>0x0?(_0x51130b[_0x3afb13('0xc49')][_0x3afb13('0x172')]=_0x51130b[_0x3afb13('0xeae')][_0x3afb13('0x1a2f')]===0x1?_0x51130b[_0x3afb13('0xeae')][_0x3afb13('0x6aa')][0x0][_0x3afb13('0x10ad')]:_0x51130b[_0x3afb13('0xc49')][_0x3afb13('0x172')],_0x51130b['query'][_0x3afb13('0x17f0')]=(_0x51130b[_0x3afb13('0xc49')][_0x3afb13('0x182e')]-0x1)*_0x51130b[_0x3afb13('0xc49')][_0x3afb13('0x3e')],_0x2d4f7c['localStorage'][_0x3afb13('0x7e')]('motion2.realtime.abandoned.bull.abandonedCalls:'+_0x51130b[_0x3afb13('0x155f')]['id'],JSON[_0x3afb13('0x100b')]({'query':_0x3c8d8a()[_0x3afb13('0x2797')](_0x51130b[_0x3afb13('0xc49')],_0x3afb13('0x172'))})),_0x51130b[_0x3afb13('0x2219')]=_0x300519[_0x3afb13('0x1c98')][_0x3afb13('0x2bf')](_0x51130b[_0x3afb13('0xc49')],_0x3c6dc4)[_0x3afb13('0x1964')]):_0x3c6dc4(null);}function _0x3c6dc4(_0x1014e9){const _0x265342=_0x1ca133;_0x51130b[_0x265342('0x3f')]=_0x1014e9||{'count':0x0,'rows':[]},_0x51130b['refresh']=!![];}function _0x3062fe(){const _0x259a6f=_0x1ca133;_0x51130b[_0x259a6f('0x1319')]=![],_0x51130b[_0x259a6f('0xf4a')]();}function _0x1a6596(_0x24c188){const _0x50de83=_0x1ca133,_0x1913f5=_0x50de83('0xb33');_0x24c188&&_0x51130b[_0x50de83('0xd5c')]&&_0x24c188['queue']['type']===_0x1913f5&&_0x51130b[_0x50de83('0xd5c')][_0x24c188[_0x50de83('0x172')]]&&(_0x51130b['showTooltip']=!![]);}function _0x3111bb(_0xcab1d9){const _0x4c790a=_0x1ca133;if(_0xcab1d9){const _0x24109e=_0x3c8d8a()['findIndex'](_0x51130b[_0x4c790a('0x3f')][_0x4c790a('0x6aa')],['id',_0xcab1d9['id']]);_0x24109e>=0x0&&_0x3c8d8a()[_0x4c790a('0x9ef')](_0x51130b[_0x4c790a('0x3f')]['rows'][_0x24109e],_0xcab1d9);}}function _0x2693de(_0x17293e,_0x170014){const _0x128e97=_0x1ca133;_0x17293e&&_0x300519['voiceQueueReport'][_0x128e97('0x1842')]({'id':_0x17293e['id'],'lastAssignedTo':_0x170014?_0x170014[_0x128e97('0x10ad')]:null,'assigned':_0x170014?!![]:![]})[_0x128e97('0x1964')][_0x128e97('0x103c')](function(_0x16fe56){const _0x3e54f8=_0x128e97;console[_0x3e54f8('0xe37')](_0x16fe56);});}function _0x4c6fce(_0x43fd75){const _0x7b6743=_0x1ca133;_0x537b2c[_0x7b6743('0x1cb7')]({'controller':_0x7b6743('0xcd5'),'controllerAs':'vm','templateUrl':_0x2730ea,'parent':angular[_0x7b6743('0xb6d')](_0x30fcd8['body']),'targetEvent':_0x43fd75,'resolve':{'globalDispositions':[_0x7b6743('0x2401'),function(_0x37d09e){const _0x3f5e71=_0x7b6743;return _0x37d09e['resolve'](_0x3f5e71('0x16c5'),{'MailAccountId':_0x3f5e71('0x877'),'FaxAccountId':'null','SmsAccountId':_0x3f5e71('0x877'),'WhatsappAccountId':_0x3f5e71('0x877'),'OpenchannelAccountId':_0x3f5e71('0x877'),'ChatWebsiteId':'null','ListId':'null'});}]},'locals':{'dispositions':_0x51130b[_0x7b6743('0x9c6')],'call':_0x43fd75}})[_0x7b6743('0x173b')](function(_0x87f7c8){const _0x12ccef=_0x7b6743;if(_0x87f7c8){const _0x3a3de1={'id':_0x43fd75['id'],'disposition':_0x87f7c8['firstLevel']||null,'secondDisposition':_0x87f7c8[_0x12ccef('0xd7')]||null,'thirdDisposition':_0x87f7c8[_0x12ccef('0x1f1a')]||null};_0x300519[_0x12ccef('0x1c98')][_0x12ccef('0x1842')](_0x3a3de1)[_0x12ccef('0x1964')][_0x12ccef('0x103c')](function(_0x5821fe){const _0x5d7b70=_0x12ccef;console[_0x5d7b70('0xe37')](_0x5821fe);});}});}let _0x517b3c=!![],_0x1b731c=0x1;_0x504087[_0x1ca133('0x1bdb')]('vm.query.filter',function(_0x5683a0,_0x483283){const _0x486c52=_0x1ca133;_0x517b3c?_0x5ad9b0(function(){_0x517b3c=![];}):(!_0x483283&&(_0x1b731c=_0x51130b[_0x486c52('0xc49')][_0x486c52('0x182e')]),_0x5683a0!==_0x483283&&(_0x51130b[_0x486c52('0xc49')]['page']=0x1),!_0x5683a0&&(_0x51130b[_0x486c52('0xc49')][_0x486c52('0x182e')]=_0x1b731c),_0x51130b[_0x486c52('0xf4a')]());}),_0x504087[_0x1ca133('0xbf6')](_0x1ca133('0x16d2'),function(){const _0x3b9ca6=_0x1ca133;_0x33cf4d[_0x3b9ca6('0x251c')]('voiceQueueReport:save'),_0x33cf4d[_0x3b9ca6('0x251c')](_0x3b9ca6('0x20fa'));});}const _0x4ee898=_0x1c681a;_0x50a868[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$q',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$filter','pauses',_0x566993('0x11fa'),_0x566993('0x61d'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x1bf5'),_0x566993('0x257b'),'userProfileSection',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x1b13')];function _0x50a868(_0x5e282c,_0x28757f,_0x5efe3e,_0x126718,_0x5b08c3,_0x4c6aab,_0x56c9d5,_0x450928,_0x13d279,_0x40a56a,_0x550b52,_0xf4ca87,_0x309918,_0xb8f3e,_0x3ec276,_0x3a1f74,_0x5c37e8,_0x46a58c){const _0x2c949d=_0x566993,_0x5d0940=this,_0x1aeb73=['userpic',_0x2c949d('0xc7a'),_0x2c949d('0x13f3'),_0x2c949d('0x20a0'),_0x2c949d('0xd63'),_0x2c949d('0x20a0'),'internal',_0x2c949d('0x1e8'),_0x2c949d('0x988'),_0x2c949d('0x106'),_0x2c949d('0xf41'),_0x2c949d('0x2ea'),_0x2c949d('0x852'),_0x2c949d('0x13eb'),'voicePause',_0x2c949d('0x266d'),'openchannelCapacity',_0x2c949d('0xcc8'),_0x2c949d('0x784'),_0x2c949d('0x1502'),_0x2c949d('0x2761'),_0x2c949d('0x1791'),_0x2c949d('0x24df'),_0x2c949d('0x1d75'),_0x2c949d('0x1ade'),_0x2c949d('0x1932'),_0x2c949d('0x114b'),_0x2c949d('0x10ee'),'openchannelStatus',_0x2c949d('0x1120'),_0x2c949d('0x18e9'),'whatsappStatus','faxStatus',_0x2c949d('0x1b47'),_0x2c949d('0x2816'),_0x2c949d('0x205'),_0x2c949d('0x22a'),_0x2c949d('0x2176'),_0x2c949d('0x15b6'),_0x2c949d('0xbc9'),_0x2c949d('0x1c89'),_0x2c949d('0x172'),_0x2c949d('0x146b'),_0x2c949d('0x1fcd'),_0x2c949d('0x23ee'),_0x2c949d('0x1386')],_0x26efa5=[_0x2c949d('0x988'),_0x2c949d('0x106'),'mailPause','smsPause',_0x2c949d('0x852'),_0x2c949d('0x13eb'),_0x2c949d('0x67c'),_0x2c949d('0xc7a')];_0x5d0940[_0x2c949d('0x155f')]=_0x3a1f74[_0x2c949d('0x14d4')](),_0x5d0940[_0x2c949d('0x150')]=['ringing','inuse',_0x2c949d('0xe2b'),'onhold',_0x2c949d('0x273')],_0x5d0940[_0x2c949d('0x1d66')]=_0x56c9d5||{'count':0x0,'rows':[]},_0x5d0940['license']=_0x5c37e8,_0x5d0940['userProfile']=_0xb8f3e,_0x5d0940['userProfileSection']=_0x3ec276&&_0x3ec276['count']==0x1?_0x3ec276[_0x2c949d('0x6aa')][0x0]:null,_0x5d0940['crudPermissions']=_0x3a1f74[_0x2c949d('0xde6')](_0x5d0940[_0x2c949d('0x170e')]?_0x5d0940[_0x2c949d('0x170e')]['crudPermissions']:null),_0x5d0940[_0x2c949d('0x11fa')]=_0x450928?_0x3c8d8a()[_0x2c949d('0x128')](_0x450928[_0x2c949d('0x6aa')]?_0x450928[_0x2c949d('0x6aa')]:[],'id'):{},_0x5d0940[_0x2c949d('0x61d')]=_0x13d279?_0x3c8d8a()['keyBy'](_0x13d279[_0x2c949d('0x6aa')]?_0x13d279['rows']:[],'id'):{},_0x5d0940['paginatedAgents']={},_0x5d0940[_0x2c949d('0xda0')]=![],_0x5d0940['order']=[],_0x5d0940[_0x2c949d('0xa53')]={};for(const _0x251a29 in _0x5d0940['agents']){typeof _0x5d0940[_0x2c949d('0x11fa')][_0x251a29]!==_0x2c949d('0x6e5')&&(_0x5d0940[_0x2c949d('0x11fa')][_0x251a29][_0x2c949d('0xb9c')]=!![]);}_0x5d0940['query']={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x5d0940[_0x2c949d('0x1037')]=_0x4c83df,_0x5d0940[_0x2c949d('0x1b81')]=_0x130c70,_0x5d0940['pause']=_0x4d35a8,_0x5d0940[_0x2c949d('0x705')]=_0x90f10f,_0x5d0940[_0x2c949d('0x2230')]=_0x300b05,_0x5d0940['getAgentStatus']=_0x50c642,_0x5d0940['getAgentGlobalStatus']=_0x187512,_0x5d0940[_0x2c949d('0x1263')]=_0x737ba7,_0x5d0940[_0x2c949d('0xe1')]=_0x39bda4,_0x5d0940[_0x2c949d('0x83e')]=_0x11c31b,_0x5d0940[_0x2c949d('0x689')]=_0x591e65,_0x5d0940['onUpdate']=_0x5e67f0,_0x5d0940[_0x2c949d('0x2535')]=_0x55962b,_0x5d0940[_0x2c949d('0xc04')]=_0x363ad2,_0x5d0940[_0x2c949d('0xa6f')]=_0x427648,_0x5d0940[_0x2c949d('0x195a')]=_0x58a021,_0x550b52['on'](_0x2c949d('0x1f4c'),_0x5d0940['onSave']),_0x550b52['on'](_0x2c949d('0x2048'),_0x5d0940[_0x2c949d('0x2805')]),_0x550b52['on'](_0x2c949d('0x1bd5'),_0x5d0940[_0x2c949d('0xc04')]),_0x550b52['on'](_0x2c949d('0xa73'),_0x5d0940[_0x2c949d('0xa6f')]),_0x55962b();let _0x214465=_0x46a58c(function(){const _0x693f42=_0x2c949d;_0x5d0940[_0x693f42('0xda0')]&&(_0x5d0940[_0x693f42('0xda0')]=![],_0x55962b());},0x3e7);function _0x55962b(){const _0xd0a711=_0x2c949d;_0x5d0940[_0xd0a711('0xda0')]=![];const _0x579151=_0x28757f[_0xd0a711('0x112e')]();_0x5d0940[_0xd0a711('0x2219')]=_0x579151[_0xd0a711('0x2219')],_0x5d0940[_0xd0a711('0x3b')]=[],_0x5d0940['order']=[],_0x3c8d8a()[_0xd0a711('0x33d')](_0x5d0940[_0xd0a711('0x11fa')],function(_0x18a673,_0x3d188){const _0x43590f=_0xd0a711;_0x5d0940['rpcAgents'][_0x3d188]&&_0x3c8d8a()[_0x43590f('0x9ef')](_0x18a673,_0x3c8d8a()['pick'](_0x3c8d8a()[_0x43590f('0x2797')](_0x5d0940[_0x43590f('0x61d')][_0x3d188],_0x26efa5),_0x1aeb73)),_0x187512(_0x18a673),_0x18a673[_0x43590f('0xc7a')]?(_0x5d0940[_0x43590f('0x3b')][_0x43590f('0x18bb')](_0x18a673),_0x5d0940[_0x43590f('0xa53')][_0x18a673['internal']]=_0x3d188):_0x18a673[_0x43590f('0x1cd8')]=_0x3c8d8a()[_0x43590f('0x1acd')](_0x156524()()[_0x43590f('0xddc')]('x'));});_0x5d0940[_0xd0a711('0xc49')][_0xd0a711('0x1f52')]&&_0x3c8d8a()[_0xd0a711('0x1a8b')](_0x5d0940[_0xd0a711('0x3b')],function(_0xea5562){const _0x2361a0=_0xd0a711;return _0xea5562[_0x2361a0('0xd7e')]!==_0x5d0940[_0x2361a0('0xc49')][_0x2361a0('0x1f52')];});_0x5d0940[_0xd0a711('0xc49')][_0xd0a711('0x6a')]&&_0x3c8d8a()[_0xd0a711('0x1a8b')](_0x5d0940['filteredAgents'],function(_0x317b5f){const _0x5095b0=_0xd0a711;return _0x317b5f[_0x5095b0('0xd63')]!==_0x5d0940[_0x5095b0('0xc49')][_0x5095b0('0x6a')];});_0x5d0940[_0xd0a711('0xc49')][_0xd0a711('0x278d')]&&_0x3c8d8a()[_0xd0a711('0x1a8b')](_0x5d0940[_0xd0a711('0x3b')],function(_0x219965){const _0x30931c=_0xd0a711;return _0x219965[_0x30931c('0x572')][_0x30931c('0x1e68')]()['indexOf'](_0x5d0940[_0x30931c('0xc49')][_0x30931c('0x278d')][_0x30931c('0x1e68')]())<0x0;});_0x5d0940['filteredAgents']=_0x347bb6(_0x5d0940[_0xd0a711('0x3b')]);const _0x1aa930=(_0x5d0940['query'][_0xd0a711('0x182e')]-0x1)*_0x5d0940[_0xd0a711('0xc49')][_0xd0a711('0x3e')];_0x5d0940['paginatedAgents']=_0x3c8d8a()[_0xd0a711('0xf69')](_0x5d0940[_0xd0a711('0x3b')],_0x1aa930)[_0xd0a711('0x2456')](0x0,_0x5d0940[_0xd0a711('0xc49')][_0xd0a711('0x3e')]);for(let _0x6c1119=0x0;_0x6c1119<_0x5d0940[_0xd0a711('0x2cb')][_0xd0a711('0x543')];_0x6c1119+=0x1){_0x5d0940[_0xd0a711('0x144a')]['push'](_0x5d0940['paginatedAgents'][_0x6c1119]['id']);}_0x579151[_0xd0a711('0x155b')](),_0x5d0940[_0xd0a711('0xda0')]=!![];}function _0x591e65(_0x46afbb){const _0x40a8ee=_0x2c949d;_0x5d0940['agents'][_0x46afbb['id']]&&(_0x3c8d8a()[_0x40a8ee('0x9ef')](_0x5d0940[_0x40a8ee('0x11fa')][_0x46afbb['id']],_0x3c8d8a()[_0x40a8ee('0x2114')](_0x3c8d8a()['omit'](_0x46afbb,_0x26efa5),_0x1aeb73)),_0x3c8d8a()[_0x40a8ee('0x9ef')](_0x5d0940[_0x40a8ee('0x61d')][_0x46afbb['id']],_0x3c8d8a()['pick'](_0x3c8d8a()[_0x40a8ee('0x2797')](_0x46afbb,_0x26efa5),_0x1aeb73)),_0x187512(_0x5d0940['agents'][_0x46afbb['id']]));}function _0x5e67f0(_0x47c678){const _0x29d822=_0x2c949d;_0x5d0940[_0x29d822('0x11fa')][_0x47c678['id']]&&(_0x3c8d8a()['merge'](_0x5d0940['agents'][_0x47c678['id']],_0x3c8d8a()[_0x29d822('0x2114')](_0x47c678,_0x1aeb73)),_0x3c8d8a()[_0x29d822('0x9ef')](_0x5d0940[_0x29d822('0x61d')][_0x47c678['id']],_0x3c8d8a()[_0x29d822('0x2114')](_0x47c678,_0x1aeb73)),_0x47c678['lastPauseAt']&&(_0x5d0940['agents'][_0x47c678['id']][_0x29d822('0x1cd8')]=_0x47c678[_0x29d822('0x20a0')],_0x5d0940[_0x29d822('0x61d')][_0x47c678['id']][_0x29d822('0x1cd8')]=_0x47c678[_0x29d822('0x20a0')]),_0x187512(_0x5d0940[_0x29d822('0x11fa')][_0x47c678['id']]));}function _0x363ad2(_0x29c426){const _0xebd538=_0x2c949d;_0x5d0940[_0xebd538('0x11fa')][_0x5d0940[_0xebd538('0xa53')][_0x29c426[_0xebd538('0x203b')]]]&&(_0x3c8d8a()[_0xebd538('0x9ef')](_0x5d0940[_0xebd538('0x11fa')][_0x5d0940['agentInternal'][_0x29c426[_0xebd538('0x203b')]]],_0x3c8d8a()[_0xebd538('0x2114')](_0x29c426,[_0xebd538('0x172'),_0xebd538('0x146b')])),_0x3c8d8a()['merge'](_0x5d0940[_0xebd538('0x61d')][_0x5d0940[_0xebd538('0xa53')][_0x29c426['destaccountcode']]],_0x3c8d8a()['pick'](_0x29c426,[_0xebd538('0x172'),'destconnectedlinenum'])));}function _0x427648(_0x30c53a){const _0x4437ae=_0x2c949d;_0x5d0940[_0x4437ae('0x11fa')][_0x5d0940[_0x4437ae('0xa53')][_0x30c53a[_0x4437ae('0x203b')]]]&&(_0x5d0940[_0x4437ae('0x11fa')][_0x5d0940[_0x4437ae('0xa53')][_0x30c53a[_0x4437ae('0x203b')]]]=_0x3c8d8a()['omit'](_0x5d0940['agents'][_0x5d0940[_0x4437ae('0xa53')][_0x30c53a[_0x4437ae('0x203b')]]],['queue',_0x4437ae('0x146b')]),_0x5d0940[_0x4437ae('0x61d')][_0x5d0940[_0x4437ae('0xa53')][_0x30c53a[_0x4437ae('0x203b')]]]=_0x3c8d8a()['omit'](_0x5d0940['rpcAgents'][_0x5d0940['agentInternal'][_0x30c53a[_0x4437ae('0x203b')]]],[_0x4437ae('0x172'),'destconnectedlinenum']));}function _0x4c83df(_0x586f86){const _0x5db365=_0x2c949d;return _0x40a56a[_0x5db365('0x166f')]['logout']({'id':_0x586f86['id'],'device':'realtime','agent_id':_0x586f86['id'],'agent_name':_0x586f86[_0x5db365('0x10ad')]})[_0x5db365('0x1964')][_0x5db365('0x173b')](function(){const _0x471fc7=_0x5db365;_0xf4ca87['success']({'title':_0x471fc7('0x27c6'),'msg':_0x586f86[_0x471fc7('0x572')]+_0x471fc7('0x2189')}),_0x5d0940[_0x471fc7('0x11fa')][_0x586f86['id']]&&(_0x5d0940[_0x471fc7('0x11fa')][_0x586f86['id']][_0x471fc7('0xc7a')]=![]),_0x5d0940[_0x471fc7('0x61d')][_0x586f86['id']]&&(_0x5d0940['rpcAgents'][_0x586f86['id']][_0x471fc7('0xc7a')]=![]),_0x55962b();})['catch'](function(_0x34a971){const _0x4aaca6=_0x5db365;_0xf4ca87[_0x4aaca6('0x15aa')]({'title':_0x34a971['status']?_0x4aaca6('0x137')+_0x34a971[_0x4aaca6('0x276f')]+_0x4aaca6('0x160c')+_0x34a971[_0x4aaca6('0x2696')]:_0x4aaca6('0x1e36'),'msg':_0x34a971[_0x4aaca6('0x1e07')]?JSON[_0x4aaca6('0x100b')](_0x34a971['data']['message']):_0x34a971[_0x4aaca6('0x1b75')]()});});}function _0x4d35a8(_0x246150,_0x4642dd){const _0x1da649=_0x2c949d;return _0x40a56a[_0x1da649('0x166f')][_0x1da649('0x1751')]({'id':_0x246150['id'],'type':_0x4642dd})[_0x1da649('0x1964')][_0x1da649('0x173b')](function(_0x5dd9f6){const _0x3cdcc5=_0x1da649;_0x5d0940[_0x3cdcc5('0x11fa')][_0x246150['id']]&&_0x3c8d8a()['merge'](_0x5d0940[_0x3cdcc5('0x11fa')][_0x246150['id']],_0x3c8d8a()[_0x3cdcc5('0x2114')](_0x5dd9f6,_0x1aeb73)),_0x5d0940[_0x3cdcc5('0x61d')][_0x246150['id']]&&_0x3c8d8a()[_0x3cdcc5('0x9ef')](_0x5d0940[_0x3cdcc5('0x61d')][_0x246150['id']],_0x3c8d8a()[_0x3cdcc5('0x2114')](_0x5dd9f6,_0x1aeb73)),_0x187512(_0x5d0940[_0x3cdcc5('0x11fa')][_0x246150['id']]);})[_0x1da649('0x103c')](function(_0x66937c){const _0x268818=_0x1da649;_0xf4ca87['error']({'title':_0x66937c[_0x268818('0x276f')]?_0x268818('0x137')+_0x66937c[_0x268818('0x276f')]+_0x268818('0x160c')+_0x66937c[_0x268818('0x2696')]:'api.staff.save','msg':_0x66937c['data']?JSON[_0x268818('0x100b')](_0x66937c[_0x268818('0x1e07')][_0x268818('0x67f')]):_0x66937c[_0x268818('0x1b75')]()});});}function _0x90f10f(_0x44b8d3){const _0x55e6a5=_0x2c949d;return _0x40a56a[_0x55e6a5('0x166f')][_0x55e6a5('0x9da')]({'id':_0x44b8d3['id']})['$promise'][_0x55e6a5('0x173b')](function(_0x1fe851){const _0x5c820d=_0x55e6a5;_0x5d0940[_0x5c820d('0x11fa')][_0x44b8d3['id']]&&_0x3c8d8a()[_0x5c820d('0x9ef')](_0x5d0940['agents'][_0x44b8d3['id']],_0x3c8d8a()[_0x5c820d('0x2114')](_0x1fe851,_0x1aeb73)),_0x5d0940['rpcAgents'][_0x44b8d3['id']]&&_0x3c8d8a()['merge'](_0x5d0940[_0x5c820d('0x61d')][_0x44b8d3['id']],_0x3c8d8a()['pick'](_0x1fe851,_0x1aeb73)),_0x187512(_0x5d0940[_0x5c820d('0x11fa')][_0x44b8d3['id']]);})[_0x55e6a5('0x103c')](function(_0x54b8b1){const _0x4a1087=_0x55e6a5;_0xf4ca87[_0x4a1087('0x15aa')]({'title':_0x54b8b1[_0x4a1087('0x276f')]?_0x4a1087('0x137')+_0x54b8b1[_0x4a1087('0x276f')]+_0x4a1087('0x160c')+_0x54b8b1['statusText']:_0x4a1087('0x1e36'),'msg':_0x54b8b1[_0x4a1087('0x1e07')]?JSON[_0x4a1087('0x100b')](_0x54b8b1[_0x4a1087('0x1e07')][_0x4a1087('0x67f')]):_0x54b8b1[_0x4a1087('0x1b75')]()});});}function _0x300b05(_0x1c00eb){const _0x3204c2=_0x2c949d;_0x126718[_0x3204c2('0x1cb7')](_0x126718[_0x3204c2('0x5a4')]()[_0x3204c2('0x226c')](!![])[_0x3204c2('0x20d6')](_0x3204c2('0x526'))[_0x3204c2('0xf8b')](_0x3204c2('0x22f0'))['ok']('Ok')[_0x3204c2('0x21de')](_0x1c00eb));}function _0x130c70(_0x55fba3,_0x46f51e){const _0x2f5159=_0x2c949d;_0x126718[_0x2f5159('0x1cb7')]({'controller':_0x2f5159('0xfba'),'controllerAs':'vm','templateUrl':_0x66272d,'parent':angular[_0x2f5159('0xb6d')](_0x5b08c3[_0x2f5159('0x1a5')]),'targetEvent':_0x46f51e,'clickOutsideToClose':!![],'locals':{'agent':_0x55fba3,'agents':[],'channel':_0x2f5159('0x21a8'),'direction':_0x2f5159('0xb33'),'crudPermissions':_0x5d0940['crudPermissions']}});}function _0x737ba7(_0x1a98c2){const _0x599a68=_0x2c949d;return _0x1a98c2===_0x599a68('0x1751')||_0x1a98c2===_0x599a68('0xb3e');}function _0x39bda4(_0x161243){return _0x161243==='pause';}function _0x11c31b(_0x4af7f5){const _0x11a4fa=_0x2c949d;return _0x4af7f5===_0x11a4fa('0xb3e');}function _0x42ac0d(_0x590472){const _0x5dece0=_0x2c949d;return _0x590472===_0x5dece0('0x23b')||_0x590472===_0x5dece0('0x1b77')||_0x590472===_0x5dece0('0x1d8e')||_0x590472===_0x5dece0('0x263b')||_0x3c8d8a()['isNil'](_0x590472);}function _0x50c642(_0x201ea4,_0x2ac025){const _0x5a59fe=_0x2c949d;if(_0x2ac025===_0x5a59fe('0x21a8')){if(_0x201ea4[_0x2ac025+'Status']!==_0x5a59fe('0x23b'))return _0x201ea4[_0x2ac025+_0x5a59fe('0xef8')];if(_0x201ea4[_0x2ac025+_0x5a59fe('0x2408')])return _0x201ea4[_0x2ac025+_0x5a59fe('0xef8')]=_0x5a59fe('0x1751'),_0x5a59fe('0x1751');return _0x5a59fe('0x23b');}else{if(_0x201ea4[_0x2ac025+'Pause'])return _0x201ea4[_0x2ac025+_0x5a59fe('0xef8')]=_0x5a59fe('0x1751'),_0x5a59fe('0x1751');return _0x201ea4[_0x2ac025+_0x5a59fe('0xef8')];}}function _0x187512(_0x241dbf){const _0x14d250=_0x2c949d;let _0x1545be=_0x14d250('0x1b77');if(_0x3c8d8a()[_0x14d250('0x3ff')]([_0x50c642(_0x241dbf,_0x14d250('0x21a8')),_0x50c642(_0x241dbf,'chat'),_0x50c642(_0x241dbf,'mail'),_0x50c642(_0x241dbf,_0x14d250('0xab2')),_0x50c642(_0x241dbf,'sms'),_0x50c642(_0x241dbf,'whatsapp'),_0x50c642(_0x241dbf,_0x14d250('0x16d'))],_0x737ba7))_0x1545be=_0x14d250('0x1751');else{if(_0x3c8d8a()['some']([_0x50c642(_0x241dbf,_0x14d250('0x21a8')),_0x50c642(_0x241dbf,_0x14d250('0x8c5')),_0x50c642(_0x241dbf,_0x14d250('0x108a')),_0x50c642(_0x241dbf,'openchannel'),_0x50c642(_0x241dbf,_0x14d250('0x1a8f')),_0x50c642(_0x241dbf,'whatsapp'),_0x50c642(_0x241dbf,_0x14d250('0x16d'))],_0x737ba7))_0x1545be=_0x14d250('0xb3e');else _0x3c8d8a()[_0x14d250('0x3ff')]([_0x50c642(_0x241dbf,_0x14d250('0x21a8')),_0x50c642(_0x241dbf,_0x14d250('0x8c5')),_0x50c642(_0x241dbf,'mail'),_0x50c642(_0x241dbf,'openchannel'),_0x50c642(_0x241dbf,_0x14d250('0x1a8f')),_0x50c642(_0x241dbf,_0x14d250('0x245')),_0x50c642(_0x241dbf,'fax')],_0x42ac0d)?_0x1545be='idle':_0x1545be=_0x14d250('0xe2b');}_0x241dbf[_0x14d250('0xd7e')]!==_0x1545be&&(_0x241dbf[_0x14d250('0xd7e')]=_0x1545be,_0x241dbf[_0x14d250('0xb9c')]?(_0x241dbf[_0x14d250('0xb9c')]=![],_0x241dbf[_0x14d250('0x1cd8')]=_0x737ba7(_0x1545be)?_0x3c8d8a()[_0x14d250('0x1acd')](_0x156524()(_0x241dbf[_0x14d250('0x20a0')])[_0x14d250('0xddc')]('x')):_0x3c8d8a()[_0x14d250('0x18be')]([_0x241dbf[_0x14d250('0x1c89')],_0x241dbf[_0x14d250('0x2816')],_0x241dbf[_0x14d250('0x22a')],_0x241dbf[_0x14d250('0x2176')],_0x241dbf[_0x14d250('0x15b6')],_0x241dbf[_0x14d250('0x205')],_0x241dbf[_0x14d250('0xbc9')]])):_0x241dbf[_0x14d250('0x1cd8')]=_0x3c8d8a()[_0x14d250('0x1acd')](_0x156524()()[_0x14d250('0xddc')]('x')));}function _0x347bb6(_0x2ecf03){const _0x2eb49a=_0x2c949d,_0x4ace4c=_0x3c8d8a()[_0x2eb49a('0x17b2')](_0x5d0940[_0x2eb49a('0xc49')][_0x2eb49a('0x144a')],'-')?_0x2eb49a('0x231d'):'asc';return _0x3c8d8a()[_0x2eb49a('0x1d16')](_0x2ecf03,[_0x5d0940[_0x2eb49a('0xc49')][_0x2eb49a('0x144a')][_0x2eb49a('0x166c')]('-','')],[_0x4ace4c]);}function _0x4ecfe6(){const _0x1195d3=_0x2c949d;_0x214465&&(_0x46a58c[_0x1195d3('0x1e1f')](_0x214465),_0x214465=null);}function _0x58a021(_0x4f0d4b,_0x6c122b){const _0x1e0644=_0x2c949d;return _0x40a56a[_0x1e0644('0x166f')][_0x1e0644('0x1842')]({'id':_0x4f0d4b['id']},{'screenrecording':_0x6c122b})['$promise'][_0x1e0644('0x103c')](function(_0x16366f){const _0x87d895=_0x1e0644;_0xf4ca87[_0x87d895('0x15aa')]({'title':_0x16366f[_0x87d895('0x276f')]?_0x87d895('0x137')+_0x16366f['status']+_0x87d895('0x160c')+_0x16366f['statusText']:_0x87d895('0x2134'),'msg':_0x16366f[_0x87d895('0x1e07')]?JSON[_0x87d895('0x100b')](_0x16366f[_0x87d895('0x1e07')][_0x87d895('0x67f')]):_0x16366f[_0x87d895('0x1b75')]()});});}_0x5e282c['$on'](_0x2c949d('0x16d2'),function(){const _0x59d43d=_0x2c949d;_0x550b52[_0x59d43d('0x251c')]('user:save'),_0x550b52['removeAllListeners'](_0x59d43d('0x2048')),_0x550b52[_0x59d43d('0x251c')](_0x59d43d('0x1bd5')),_0x550b52[_0x59d43d('0x251c')]('user:agentcomplete'),_0x4ecfe6();});}const _0x32b730=_0x50a868,_0x250ee1=_0x21a6a1['p']+_0x566993('0x4db');_0x1520f7[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1b13'),_0x566993('0x1c7e'),_0x566993('0x527'),_0x566993('0xbd4'),_0x566993('0x2fc'),'userProfile',_0x566993('0x170e'),'Auth'];function _0x1520f7(_0x5a9466,_0x14a8b7,_0x5d7b49,_0x25cc45,_0x2ab366,_0x50abfd,_0x543eb1,_0x4542c0,_0x485af3,_0x11dd46,_0x5d65ad,_0x221412){const _0x455a1f=_0x566993,_0x5e6b80=this,_0x29dac5=[_0x455a1f('0x10ad'),_0x455a1f('0x1166'),'limitCalls',_0x455a1f('0x67f'),'originated',_0x455a1f('0x600'),_0x455a1f('0x11e1'),'Trunk',_0x455a1f('0xdad'),_0x455a1f('0x1ee0'),_0x455a1f('0x45e'),_0x455a1f('0xc9d'),'description'];_0x5e6b80[_0x455a1f('0x155f')]=_0x221412['getCurrentUser'](),_0x5e6b80['count']=_0x543eb1[_0x455a1f('0x1a2f')],_0x5e6b80[_0x455a1f('0x527')]=_0x543eb1?_0x3c8d8a()[_0x455a1f('0x128')](_0x543eb1[_0x455a1f('0x6aa')]?_0x543eb1['rows']:[],'id'):{},_0x5e6b80['rpcCampaigns']=_0x50abfd?_0x3c8d8a()[_0x455a1f('0x128')](_0x50abfd[_0x455a1f('0x6aa')]?_0x50abfd[_0x455a1f('0x6aa')]:[],'id'):{},_0x5e6b80[_0x455a1f('0x257b')]=_0x11dd46,_0x5e6b80['userProfileSection']=_0x5d65ad&&_0x5d65ad['count']==0x1?_0x5d65ad[_0x455a1f('0x6aa')][0x0]:null,_0x5e6b80[_0x455a1f('0x1dc1')]=_0x221412[_0x455a1f('0xde6')](_0x5e6b80[_0x455a1f('0x170e')]?_0x5e6b80[_0x455a1f('0x170e')]['crudPermissions']:null),_0x5e6b80[_0x455a1f('0xc49')]={'sort':_0x455a1f('0x1769'),'limit':0xa,'page':0x1},_0x5e6b80[_0x455a1f('0xdfe')]=_0x1c7f8d,_0x5e6b80[_0x455a1f('0xd61')]=_0x1bad46,_0x5e6b80[_0x455a1f('0x689')]=_0x45e2e3,_0x5e6b80[_0x455a1f('0x2444')]=_0x5d2ca0,_0x5e6b80['createOrEditIvrCampaign']=_0x279fc8,_0x485af3[_0x455a1f('0x165f')](_0x455a1f('0x255f'),_0x5e6b80[_0x455a1f('0x689')]),_0x5e6b80[_0x455a1f('0x55a')]=_0x2ab366(function(){},0x3e7);function _0x5d2ca0(){_0x3c8d8a()['forIn'](_0x5e6b80['campaigns'],function(_0x4e1146,_0x1a613f){const _0x1273e1=a0_0xde5e;_0x5e6b80[_0x1273e1('0x1c7e')][_0x1a613f]&&_0x3c8d8a()[_0x1273e1('0x9ef')](_0x4e1146,_0x3c8d8a()[_0x1273e1('0x2114')](_0x5e6b80[_0x1273e1('0x1c7e')][_0x1a613f],_0x29dac5));});}function _0x45e2e3(_0x318f4d){const _0x777706=_0x455a1f;_0x5e6b80['campaigns'][_0x318f4d['id']]&&(_0x3c8d8a()[_0x777706('0x9ef')](_0x5e6b80['campaigns'][_0x318f4d['id']],_0x3c8d8a()['pick'](_0x318f4d,_0x29dac5)),_0x3c8d8a()[_0x777706('0x9ef')](_0x5e6b80[_0x777706('0x1c7e')][_0x318f4d['id']],_0x3c8d8a()['pick'](_0x318f4d,_0x29dac5)));}let _0x22ea73=!![],_0x54248b=0x1;_0x5a9466[_0x455a1f('0x1bdb')](_0x455a1f('0x157b'),function(_0x157cbd,_0x5a85fa){const _0x4173cd=_0x455a1f;_0x22ea73?_0x14a8b7(function(){_0x22ea73=![];}):(!_0x5a85fa&&(_0x54248b=_0x5e6b80[_0x4173cd('0xc49')][_0x4173cd('0x182e')]),_0x157cbd!==_0x5a85fa&&(_0x5e6b80['query']['page']=0x1),!_0x157cbd&&(_0x5e6b80[_0x4173cd('0xc49')][_0x4173cd('0x182e')]=_0x54248b),_0x5e6b80['getCampaigns']());});function _0x1c7f8d(_0x14e5dd){const _0x4d189b=_0x455a1f;_0x5e6b80[_0x4d189b('0x1a2f')]=_0x14e5dd[_0x4d189b('0x1a2f')],_0x5e6b80[_0x4d189b('0x527')]=_0x14e5dd?_0x3c8d8a()[_0x4d189b('0x128')](_0x14e5dd[_0x4d189b('0x6aa')]?_0x14e5dd[_0x4d189b('0x6aa')]:[],'id'):{},_0x5d2ca0();}function _0x1bad46(){const _0x2f3ee8=_0x455a1f;_0x5e6b80[_0x2f3ee8('0xc49')][_0x2f3ee8('0x17f0')]=(_0x5e6b80[_0x2f3ee8('0xc49')]['page']-0x1)*_0x5e6b80[_0x2f3ee8('0xc49')][_0x2f3ee8('0x3e')],_0x221412[_0x2f3ee8('0x1b4e')](_0x2f3ee8('0x79b'))?_0x5e6b80[_0x2f3ee8('0x2219')]=_0x4542c0['campaign']['get'](_0x5e6b80[_0x2f3ee8('0xc49')],_0x1c7f8d)[_0x2f3ee8('0x1964')]:(_0x5e6b80[_0x2f3ee8('0xc49')]['id']=_0x5e6b80[_0x2f3ee8('0x257b')]['id'],_0x5e6b80[_0x2f3ee8('0xc49')]['section']=_0x2f3ee8('0x9fc'),_0x5e6b80[_0x2f3ee8('0x2219')]=_0x4542c0[_0x2f3ee8('0x257b')]['getResources'](_0x5e6b80[_0x2f3ee8('0xc49')],_0x1c7f8d)[_0x2f3ee8('0x1964')]);}function _0x279fc8(_0x4d29eb,_0x3ea08f){const _0x5f3dcc=_0x455a1f;_0x5d7b49['show']({'controller':_0x5f3dcc('0x1eaf'),'controllerAs':'vm','templateUrl':_0x250ee1,'parent':angular[_0x5f3dcc('0xb6d')](_0x25cc45['body']),'targetEvent':_0x4d29eb,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x3ea08f,'ivrCampaigns':_0x3c8d8a()[_0x5f3dcc('0xcaf')](_0x5e6b80[_0x5f3dcc('0x527')]),'license':null,'setting':null,'crudPermissions':_0x5e6b80['crudPermissions']}});}_0x5a9466['$on']('$destroy',function(){const _0x35313e=_0x455a1f;_0x485af3['removeAllListeners'](_0x35313e('0x255f')),_0x5e6b80['interval']&&_0x2ab366['cancel'](_0x5e6b80[_0x35313e('0x55a')]);});}const _0x101b17=_0x1520f7;_0x49348b['$inject']=[_0x566993('0x66f'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x11fa'),_0x566993('0xeae'),_0x566993('0x488'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1bf5'),_0x566993('0x1558'),_0x566993('0x257b'),'userProfileSection','Auth'];function _0x49348b(_0x2bbfcc,_0xe240c9,_0x1f172c,_0x4d8dd2,_0x410e12,_0x4555d6,_0x2cf088,_0x486d3a,_0x132839,_0x58c41e,_0x4f0db8,_0x5b41a8,_0x3ec1b7){const _0x562089=_0x566993,_0x513567=this;_0x513567['currentUser']=_0x3ec1b7[_0x562089('0x14d4')](),_0x513567['agents']=_0x4d8dd2||{'count':0x0,'rows':[]},_0x513567[_0x562089('0xeae')]=_0x410e12?_0x3c8d8a()[_0x562089('0x128')](_0x410e12[_0x562089('0x6aa')]?_0x410e12[_0x562089('0x6aa')]:[],_0x562089('0x10ad')):{},_0x513567['rpcVoiceQueuesChannelsTmp']=_0x4555d6?_0x3c8d8a()['keyBy'](_0x4555d6[_0x562089('0x6aa')]?_0x3c8d8a()[_0x562089('0x278d')](_0x4555d6['rows'],{'type':_0x562089('0xb33')}):[],'uniqueid'):{},_0x513567[_0x562089('0x488')]={},_0x513567[_0x562089('0x257b')]=_0x4f0db8,_0x513567['userProfileSection']=_0x5b41a8&&_0x5b41a8[_0x562089('0x1a2f')]==0x1?_0x5b41a8['rows'][0x0]:null,_0x513567['crudPermissions']=_0x3ec1b7[_0x562089('0xde6')](_0x513567[_0x562089('0x170e')]?_0x513567['userProfileSection']['crudPermissions']:null),_0x513567[_0x562089('0x15f6')]={'limit':0xa,'page':0x1},_0x513567[_0x562089('0x12c')]=_0x4765ff,_0x513567['$onInit']=_0x16f374,_0x513567[_0x562089('0x689')]=_0x3b9b00,_0x513567[_0x562089('0x261')]=_0x5ba212,_0x513567[_0x562089('0x13cc')]=_0x244738,_0x513567[_0x562089('0xee7')]=_0x4cd2f0,_0x513567[_0x562089('0x115d')]=_0x1748a1,_0x486d3a['on'](_0x562089('0xf10'),_0x513567[_0x562089('0x689')]),_0x486d3a['on']('voice_queue_channel:remove',_0x513567['onRemove']);function _0x4765ff(_0x22605f){const _0x5e6598=_0x562089;return _0x3c8d8a()[_0x5e6598('0x2361')](_0x22605f);}function _0x16f374(){const _0x169dad=_0x562089;_0x3c8d8a()[_0x169dad('0x33d')](_0x513567[_0x169dad('0xb08')],function(_0xb3d49b,_0x27989e){const _0x536545=_0x169dad;_0x3c8d8a()[_0x536545('0x18ab')](_0x513567['queues'],{'name':_0xb3d49b['name']})&&(_0x513567[_0x536545('0x488')][_0x27989e]=_0xb3d49b);});}function _0x3b9b00(_0x3c4052){const _0x34ada8=_0x562089;_0x3c4052['type']==='outbound'&&(_0x3c8d8a()[_0x34ada8('0x18ab')](_0x513567[_0x34ada8('0xeae')],{'name':_0x3c4052[_0x34ada8('0x10ad')]})&&(_0x513567[_0x34ada8('0x488')][_0x3c4052[_0x34ada8('0x207c')]]=_0x3c4052));}function _0x5ba212(_0x28bffc){const _0x53dc68=_0x562089;_0x513567['rpcVoiceQueuesChannels'][_0x28bffc[_0x53dc68('0x207c')]]&&delete _0x513567[_0x53dc68('0x488')][_0x28bffc[_0x53dc68('0x207c')]];}function _0x244738(_0x29c912){const _0x1e8208=_0x562089;return _0x2cf088[_0x1e8208('0x48c')]['getVoiceQueuesChannelHangup']({'uniqueid':_0x29c912})[_0x1e8208('0x1964')][_0x1e8208('0x173b')](function(_0x5c7e7a){const _0x1e749f=_0x1e8208;_0x58c41e[_0x1e749f('0xdfe')]({'title':_0x1e749f('0x1df1')+_0x29c912+_0x1e749f('0x17ae'),'msg':_0x5c7e7a[_0x1e749f('0x67f')]||''});})[_0x1e8208('0x103c')](function(_0x28119e){const _0x249566=_0x1e8208;_0x58c41e[_0x249566('0x15aa')]({'title':_0x28119e[_0x249566('0x276f')]+_0x249566('0x160c')+_0x28119e['statusText'],'msg':JSON[_0x249566('0x100b')](_0x28119e[_0x249566('0x1e07')])||_0x28119e[_0x249566('0x67f')][_0x249566('0x2259')]('\x20')});});}function _0x4cd2f0(_0x48021b,_0x4926d8,_0x20144f){const _0x1ecbb1=_0x562089;return _0x2cf088[_0x1ecbb1('0x48c')][_0x1ecbb1('0x32c')]({'uniqueid':_0x48021b,'exten':_0x4926d8,'context':_0x20144f})[_0x1ecbb1('0x1964')]['then'](function(_0x4d7ed7){const _0x4ce1d5=_0x1ecbb1;_0x58c41e[_0x4ce1d5('0xdfe')]({'title':_0x4ce1d5('0x1df1')+_0x48021b+'\x20properly\x20redirect!','msg':_0x4d7ed7['message']||''});})['catch'](function(_0x1535bb){const _0x4a5276=_0x1ecbb1;_0x58c41e['error']({'title':_0x1535bb[_0x4a5276('0x276f')]+_0x4a5276('0x160c')+_0x1535bb[_0x4a5276('0x2696')],'msg':JSON[_0x4a5276('0x100b')](_0x1535bb[_0x4a5276('0x1e07')])||_0x1535bb[_0x4a5276('0x67f')][_0x4a5276('0x2259')]('\x20')});});}function _0x1748a1(_0x24f545,_0xc5bb15){const _0x1e7bdb=_0x562089,_0x18b98c=_0x1f172c[_0x1e7bdb('0x1b38')]()['title']('Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?')[_0x1e7bdb('0x113b')](_0x1e7bdb('0x1c7d'))['targetEvent'](_0x24f545)['ok']('Ok')[_0x1e7bdb('0x1e1f')](_0x1e7bdb('0x1d4e'));return _0x1f172c[_0x1e7bdb('0x1cb7')](_0x18b98c)[_0x1e7bdb('0x173b')](function(_0x239ba3){const _0x10f984=_0x1e7bdb;return _0x2cf088[_0x10f984('0x48c')][_0x10f984('0x32c')]({'uniqueid':_0xc5bb15,'exten':_0x239ba3})[_0x10f984('0x1964')];})['then'](function(_0x9a1007){const _0x3b7ce3=_0x1e7bdb;_0x58c41e[_0x3b7ce3('0xdfe')]({'title':_0x3b7ce3('0x1df1')+_0xc5bb15+'\x20properly\x20redirect!','msg':_0x9a1007['message']||''});})['catch'](function(_0x2454ee){const _0x41588d=_0x1e7bdb;_0x58c41e[_0x41588d('0x15aa')]({'title':_0x2454ee[_0x41588d('0x276f')]+_0x41588d('0x160c')+_0x2454ee[_0x41588d('0x2696')],'msg':JSON[_0x41588d('0x100b')](_0x2454ee['data'])||_0x2454ee[_0x41588d('0x67f')][_0x41588d('0x2259')]('\x20')});});}_0x2bbfcc['$on']('$destroy',function(){const _0x2bd997=_0x562089;_0x486d3a[_0x2bd997('0x251c')](_0x2bd997('0xf10')),_0x486d3a[_0x2bd997('0x251c')](_0x2bd997('0x1039'));});}const _0x1b74cc=_0x49348b;_0x2730f3['$inject']=[_0x566993('0x66f'),'$timeout',_0x566993('0x1b13'),_0x566993('0xeae'),_0x566993('0x2156'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x257b'),'userProfileSection',_0x566993('0x1600')];function _0x2730f3(_0x217154,_0x1c2ea6,_0x8cf238,_0x3e7b76,_0x3ff484,_0x2d0f06,_0x5f5980,_0x1293b6,_0x1ad387,_0x3f9b62){const _0x104c77=_0x566993,_0x39d97e=this,_0x11c948=[_0x104c77('0xa1f'),_0x104c77('0x163a'),_0x104c77('0x1c39'),_0x104c77('0x186e'),'sumBillable','outboundNoAnswerCallsDay','outboundBusyCallsDay',_0x104c77('0x9e7'),_0x104c77('0x1a40'),_0x104c77('0x2573'),'outboundDropCallsDayTimeout',_0x104c77('0x995'),_0x104c77('0x16ff'),_0x104c77('0x154b'),_0x104c77('0xd65'),_0x104c77('0x1392'),_0x104c77('0x2663')];_0x39d97e[_0x104c77('0x1a2f')]=_0x3e7b76[_0x104c77('0x1a2f')],_0x39d97e['queues']=_0x3e7b76?_0x3c8d8a()['keyBy'](_0x3e7b76[_0x104c77('0x6aa')]?_0x3e7b76[_0x104c77('0x6aa')]:[],'id'):{},_0x39d97e['rpcQueues']=_0x3ff484?_0x3c8d8a()[_0x104c77('0x128')](_0x3ff484[_0x104c77('0x6aa')]?_0x3ff484[_0x104c77('0x6aa')]:[],'id'):{},_0x39d97e[_0x104c77('0x257b')]=_0x1293b6,_0x39d97e['userProfileSection']=_0x1ad387&&_0x1ad387[_0x104c77('0x1a2f')]==0x1?_0x1ad387[_0x104c77('0x6aa')][0x0]:null,_0x39d97e[_0x104c77('0x1dc1')]=_0x3f9b62['parseCrudPermissions'](_0x39d97e[_0x104c77('0x170e')]?_0x39d97e[_0x104c77('0x170e')][_0x104c77('0x1dc1')]:null);_0x3f9b62['hasRole'](_0x104c77('0x79b'))?_0x39d97e[_0x104c77('0xc49')]={'type':_0x104c77('0xb33'),'fields':_0x104c77('0xd52'),'sort':_0x104c77('0x1769'),'limit':0xa,'page':0x1}:_0x39d97e[_0x104c77('0xc49')]={'id':_0x3f9b62['getCurrentUser']()['id'],'channel':_0x104c77('0x21a8'),'type':_0x104c77('0xb33'),'fields':'id,name','sort':'-updatedAt','limit':0xa,'page':0x1};_0x39d97e[_0x104c77('0xdfe')]=_0x1fe0cb,_0x39d97e[_0x104c77('0x115e')]=_0x5bc134,_0x39d97e[_0x104c77('0x689')]=_0x5d2ab3,_0x39d97e[_0x104c77('0x2444')]=_0x52999b,_0x5f5980[_0x104c77('0x165f')]('voice_queue:save',_0x39d97e['onSave']),_0x39d97e[_0x104c77('0x55a')]=_0x8cf238(function(){},0x3e7);function _0x52999b(){_0x3c8d8a()['forIn'](_0x39d97e['queues'],function(_0x5b9ac6,_0x2f189f){const _0x1d99e3=a0_0xde5e;_0x39d97e[_0x1d99e3('0x2156')][_0x2f189f]&&_0x3c8d8a()[_0x1d99e3('0x9ef')](_0x5b9ac6,_0x3c8d8a()[_0x1d99e3('0x2114')](_0x39d97e[_0x1d99e3('0x2156')][_0x2f189f],_0x11c948));});}function _0x5d2ab3(_0x545b71){const _0x45abd3=_0x104c77;_0x39d97e[_0x45abd3('0xeae')][_0x545b71['id']]&&_0x3c8d8a()[_0x45abd3('0x9ef')](_0x39d97e[_0x45abd3('0xeae')][_0x545b71['id']],_0x3c8d8a()[_0x45abd3('0x2114')](_0x545b71,_0x11c948));}let _0x2d3e46=!![],_0x2443dc=0x1;_0x217154[_0x104c77('0x1bdb')]('vm.query.filter',function(_0x2a274f,_0x5d044a){const _0x413505=_0x104c77;_0x2d3e46?_0x1c2ea6(function(){_0x2d3e46=![];}):(!_0x5d044a&&(_0x2443dc=_0x39d97e['query']['page']),_0x2a274f!==_0x5d044a&&(_0x39d97e['query'][_0x413505('0x182e')]=0x1),!_0x2a274f&&(_0x39d97e[_0x413505('0xc49')][_0x413505('0x182e')]=_0x2443dc),_0x39d97e[_0x413505('0x115e')]());});function _0x1fe0cb(_0x5b9258){const _0x33cd11=_0x104c77;_0x39d97e[_0x33cd11('0x1a2f')]=_0x5b9258[_0x33cd11('0x1a2f')],_0x39d97e['queues']=_0x5b9258?_0x3c8d8a()[_0x33cd11('0x128')](_0x5b9258[_0x33cd11('0x6aa')]?_0x5b9258['rows']:[],'id'):{},_0x52999b();}function _0x5bc134(){const _0x30130d=_0x104c77;_0x39d97e[_0x30130d('0xc49')][_0x30130d('0x17f0')]=(_0x39d97e['query'][_0x30130d('0x182e')]-0x1)*_0x39d97e[_0x30130d('0xc49')][_0x30130d('0x3e')],_0x3f9b62['hasRole'](_0x30130d('0x79b'))?_0x39d97e['promise']=_0x2d0f06[_0x30130d('0x1282')][_0x30130d('0x1d97')](_0x39d97e['query'],_0x1fe0cb)[_0x30130d('0x1964')]:(_0x39d97e['query']['id']=_0x39d97e[_0x30130d('0x257b')]['id'],_0x39d97e[_0x30130d('0xc49')]['section']=_0x30130d('0x16ad'),_0x39d97e[_0x30130d('0x2219')]=_0x2d0f06[_0x30130d('0x257b')][_0x30130d('0x135b')](_0x39d97e[_0x30130d('0xc49')],_0x1fe0cb)['$promise']);}_0x217154[_0x104c77('0xbf6')](_0x104c77('0x16d2'),function(){const _0x2ce12a=_0x104c77;_0x5f5980[_0x2ce12a('0x251c')](_0x2ce12a('0x1414')),_0x39d97e[_0x2ce12a('0x55a')]&&_0x8cf238[_0x2ce12a('0x1e1f')](_0x39d97e[_0x2ce12a('0x55a')]);});}const _0x493dfa=_0x2730f3,_0xb6f812=_0x21a6a1['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html/dialog.html',_0x4a0f66=_0x21a6a1['p']+_0x566993('0xff2'),_0x1c65e2=_0x21a6a1['p']+_0x566993('0x1d4d');_0x21b72d[_0x566993('0x17bb')]=['$scope',_0x566993('0x24b5'),'$mdDialog','$q','$document',_0x566993('0x1b13'),_0x566993('0xeae'),_0x566993('0x2156'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1558'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0x1600')];function _0x21b72d(_0x910638,_0x4e17be,_0x2cffa2,_0xc15064,_0xc5f577,_0x481365,_0x223544,_0x3e5ed5,_0x1e9614,_0x39d825,_0x4a9d5d,_0x35f7b2,_0x2f20ad,_0x25fcec){const _0x17d771=_0x566993,_0x499a5e=this,_0x33582c=[_0x17d771('0x34e'),_0x17d771('0x825'),_0x17d771('0x1b68'),_0x17d771('0x157c'),_0x17d771('0x1e8d'),'originated',_0x17d771('0x67f'),_0x17d771('0x3ba'),_0x17d771('0xa87'),_0x17d771('0x183a'),'paused',_0x17d771('0x270d'),_0x17d771('0x1e3e'),_0x17d771('0xf31'),'erlangCallToSecond','erlangAbandonmentRate','erlangBusyFactor','dialPredictiveInterval',_0x17d771('0x384'),'dialPredictiveIntervalMinThreshold',_0x17d771('0x642'),_0x17d771('0x249f'),_0x17d771('0x2532'),_0x17d771('0x1667'),'predictiveIntervalDroppedCallsCallersExit','predictiveIntervalAvgHoldtime',_0x17d771('0xa7c')];_0x499a5e[_0x17d771('0x155f')]=_0x25fcec[_0x17d771('0x14d4')](),_0x499a5e[_0x17d771('0x1a2f')]=_0x223544['count']?_0x223544[_0x17d771('0x1a2f')]:0x0,_0x499a5e[_0x17d771('0xeae')]=_0x223544?_0x3c8d8a()[_0x17d771('0x128')](_0x223544[_0x17d771('0x6aa')]?_0x223544['rows']:[],'id'):{},_0x499a5e[_0x17d771('0x2156')]=_0x3e5ed5?_0x3c8d8a()[_0x17d771('0x128')](_0x3e5ed5[_0x17d771('0x6aa')]?_0x3e5ed5[_0x17d771('0x6aa')]:[],'id'):{},_0x499a5e['userProfile']=_0x35f7b2,_0x499a5e[_0x17d771('0x170e')]=_0x2f20ad&&_0x2f20ad[_0x17d771('0x1a2f')]==0x1?_0x2f20ad[_0x17d771('0x6aa')][0x0]:null,_0x499a5e['crudPermissions']=_0x25fcec[_0x17d771('0xde6')](_0x499a5e[_0x17d771('0x170e')]?_0x499a5e['userProfileSection'][_0x17d771('0x1dc1')]:null);_0x25fcec[_0x17d771('0x1b4e')](_0x17d771('0x79b'))?_0x499a5e[_0x17d771('0xc49')]={'type':_0x17d771('0xb33'),'sort':_0x17d771('0x1769'),'limit':0xa,'page':0x1}:_0x499a5e[_0x17d771('0xc49')]={'id':_0x499a5e[_0x17d771('0x155f')]['id'],'channel':_0x17d771('0x21a8'),'type':_0x17d771('0xb33'),'sort':_0x17d771('0x1769'),'limit':0xa,'page':0x1};_0x499a5e[_0x17d771('0xdfe')]=_0x2476c9,_0x499a5e[_0x17d771('0x115e')]=_0x2f3b59,_0x499a5e[_0x17d771('0x588')]=_0x28de84,_0x499a5e[_0x17d771('0x13cf')]=_0x961894,_0x499a5e[_0x17d771('0x24f8')]=_0x3332c7,_0x499a5e['updateQueue']=_0x273681,_0x499a5e['onSave']=_0x2433b7,_0x499a5e[_0x17d771('0x6f6')]=_0x45883c,_0x499a5e[_0x17d771('0x255')]=_0x2458ba,_0x499a5e[_0x17d771('0x5')]=_0x4e7bf6,_0x499a5e[_0x17d771('0x1e70')]=_0xd4e7bd,_0x499a5e[_0x17d771('0x2444')]=_0x1740eb,_0x499a5e[_0x17d771('0x144a')]=[],_0x3c8d8a()[_0x17d771('0x33d')](_0x499a5e[_0x17d771('0xeae')],function(_0x2d5ab8){const _0x1fa62b=_0x17d771;_0x499a5e[_0x1fa62b('0x144a')][_0x1fa62b('0x18bb')](_0x2d5ab8['id']);}),_0x39d825[_0x17d771('0x165f')](_0x17d771('0x1414'),_0x499a5e[_0x17d771('0x689')]),_0x499a5e['interval']=_0x481365(function(){},0x3e7),_0x39d825['on'](_0x17d771('0x24a7'),_0x499a5e['onSaveMember']),_0x39d825['on'](_0x17d771('0x2048'),_0x499a5e[_0x17d771('0x255')]),_0x39d825['on'](_0x17d771('0x22b7'),_0x499a5e[_0x17d771('0x1e70')]),_0x39d825['on'](_0x17d771('0x1379'),_0x499a5e[_0x17d771('0x5')]);function _0x1740eb(){const _0x2761f0=_0x17d771,_0x376e70=[];return _0x3c8d8a()[_0x2761f0('0x33d')](_0x499a5e[_0x2761f0('0xeae')],function(_0x3d8846,_0x162dc3){const _0x4eea0c=_0x2761f0;_0x3d8846[_0x4eea0c('0x1898')]=0x0,_0x3d8846[_0x4eea0c('0x1307')]=0x0,_0x499a5e[_0x4eea0c('0xeae')][_0x162dc3][_0x4eea0c('0x11fa')]={},_0x376e70['push'](_0x1e9614[_0x4eea0c('0x1282')][_0x4eea0c('0x230a')]({'id':_0x162dc3})[_0x4eea0c('0x1964')]),_0x499a5e[_0x4eea0c('0x2156')][_0x162dc3]&&_0x3c8d8a()[_0x4eea0c('0x9ef')](_0x3d8846,_0x3c8d8a()[_0x4eea0c('0x2114')](_0x499a5e[_0x4eea0c('0x2156')][_0x162dc3],_0x33582c));}),_0xc15064['all'](_0x376e70)['then'](function(_0x403f0a){const _0x46c76c=_0x2761f0;for(let _0x496528=0x0;_0x496528<_0x403f0a['length'];_0x496528+=0x1){for(let _0x2a1753=0x0;_0x2a1753<_0x403f0a[_0x496528][_0x46c76c('0x6aa')][_0x46c76c('0x543')];_0x2a1753++){_0x403f0a[_0x496528][_0x46c76c('0x6aa')][_0x2a1753][_0x46c76c('0x1898')]&&_0x499a5e['queues'][_0x403f0a[_0x496528][_0x46c76c('0x6aa')][_0x2a1753]['VoiceQueueId']]['paused']++,_0x499a5e['queues'][_0x403f0a[_0x496528][_0x46c76c('0x6aa')][_0x2a1753][_0x46c76c('0x11c9')]][_0x46c76c('0x1307')]++,_0x499a5e['queues'][_0x403f0a[_0x496528]['rows'][_0x2a1753]['VoiceQueueId']][_0x46c76c('0x11fa')][_0x403f0a[_0x496528][_0x46c76c('0x6aa')][_0x2a1753][_0x46c76c('0x181c')]]=_0x403f0a[_0x496528][_0x46c76c('0x6aa')][_0x2a1753][_0x46c76c('0x11c9')];}}})[_0x2761f0('0x103c')](function(_0x4200e7){const _0x3c80cf=_0x2761f0;console[_0x3c80cf('0x15aa')](_0x4200e7);});}function _0x2433b7(_0x3c560d){const _0x5acb2a=_0x17d771;_0x499a5e[_0x5acb2a('0xeae')][_0x3c560d['id']]&&(_0x3c8d8a()[_0x5acb2a('0x9ef')](_0x499a5e[_0x5acb2a('0xeae')][_0x3c560d['id']],_0x3c8d8a()[_0x5acb2a('0x2114')](_0x3c560d,_0x33582c)),_0x3c8d8a()[_0x5acb2a('0x7d5')](_0x3c560d[_0x5acb2a('0x270d')])&&(_0x499a5e[_0x5acb2a('0xeae')][_0x3c560d['id']][_0x5acb2a('0x270d')]=undefined));}function _0x45883c(_0x45387f){const _0x26a625=_0x17d771;_0x499a5e[_0x26a625('0xeae')][_0x45387f['MotionDialerQueueId']]&&_0x499a5e['queues'][_0x45387f[_0x26a625('0x1072')]]['loggedInDb']++;}function _0x2458ba(_0x4deebb){const _0x56b086=_0x17d771;console[_0x56b086('0xe37')](_0x56b086('0x255'),_0x4deebb);if(_0x4deebb[_0x56b086('0x67c')])_0x3c8d8a()['forIn'](_0x499a5e['queues'],function(_0x269d30){const _0x28a2c6=_0x56b086;_0x269d30[_0x28a2c6('0x11fa')][_0x4deebb['id']]&&(_0x269d30[_0x28a2c6('0x1898')]+=0x1,console[_0x28a2c6('0xe37')](_0x28a2c6('0x1751')));});else!_0x4deebb[_0x56b086('0x67c')]&&_0x3c8d8a()[_0x56b086('0x33d')](_0x499a5e['queues'],function(_0x1813b9){const _0xcaca40=_0x56b086;_0x1813b9[_0xcaca40('0x11fa')][_0x4deebb['id']]&&(_0x1813b9[_0xcaca40('0x1898')]>0x0&&(_0x1813b9[_0xcaca40('0x1898')]-=0x1,console[_0xcaca40('0xe37')](_0xcaca40('0x9da'))));});}function _0x4e7bf6(_0x541de1){const _0x30f0de=_0x17d771;console[_0x30f0de('0xe37')](_0x30f0de('0x1e15'),_0x541de1),_0x499a5e[_0x30f0de('0xeae')][_0x541de1[_0x30f0de('0x11c9')]]&&(_0x499a5e['queues'][_0x541de1[_0x30f0de('0x11c9')]][_0x30f0de('0x1307')]+=0x1,_0x499a5e['queues'][_0x541de1['VoiceQueueId']][_0x30f0de('0x11fa')][_0x541de1['UserId']]=_0x541de1[_0x30f0de('0x11c9')]);}function _0xd4e7bd(_0x452e5a){const _0x4ed0e4=_0x17d771;console[_0x4ed0e4('0xe37')](_0x4ed0e4('0x1e70'),_0x452e5a),_0x499a5e[_0x4ed0e4('0xeae')][_0x452e5a[_0x4ed0e4('0x11c9')]]&&_0x499a5e[_0x4ed0e4('0xeae')][_0x452e5a[_0x4ed0e4('0x11c9')]]['loggedInDb']>0x0&&(_0x499a5e[_0x4ed0e4('0xeae')][_0x452e5a[_0x4ed0e4('0x11c9')]][_0x4ed0e4('0x1307')]-=0x1,delete _0x499a5e['queues'][_0x452e5a[_0x4ed0e4('0x11c9')]]['agents'][_0x452e5a[_0x4ed0e4('0x181c')]]);}let _0x111088=!![],_0x27b10e=0x1;_0x910638[_0x17d771('0x1bdb')](_0x17d771('0x157b'),function(_0x4d7b55,_0x8049d0){const _0x119f15=_0x17d771;_0x111088?_0x4e17be(function(){_0x111088=![];}):(!_0x8049d0&&(_0x27b10e=_0x499a5e[_0x119f15('0xc49')]['page']),_0x4d7b55!==_0x8049d0&&(_0x499a5e[_0x119f15('0xc49')][_0x119f15('0x182e')]=0x1),!_0x4d7b55&&(_0x499a5e[_0x119f15('0xc49')][_0x119f15('0x182e')]=_0x27b10e),_0x499a5e[_0x119f15('0x115e')]());});function _0x2476c9(_0x3b9144){const _0x507621=_0x17d771;_0x499a5e[_0x507621('0x1a2f')]=_0x3b9144[_0x507621('0x1a2f')],_0x499a5e[_0x507621('0xeae')]=_0x3b9144?_0x3c8d8a()[_0x507621('0x128')](_0x3b9144['rows']?_0x3b9144['rows']:[],'id'):{};if(_0x3b9144['rows']){_0x499a5e['order']=[];for(let _0x418e2d=0x0;_0x418e2d<_0x3b9144[_0x507621('0x6aa')][_0x507621('0x543')];_0x418e2d++){_0x499a5e[_0x507621('0x144a')]['push'](_0x3b9144[_0x507621('0x6aa')][_0x418e2d]['id']);}}_0x1740eb();}function _0x2f3b59(){const _0x154aa9=_0x17d771;_0x499a5e[_0x154aa9('0xc49')][_0x154aa9('0x17f0')]=(_0x499a5e[_0x154aa9('0xc49')]['page']-0x1)*_0x499a5e[_0x154aa9('0xc49')][_0x154aa9('0x3e')],_0x25fcec[_0x154aa9('0x1b4e')]('admin')?_0x499a5e[_0x154aa9('0x2219')]=_0x1e9614[_0x154aa9('0x1282')][_0x154aa9('0x1d97')](_0x499a5e['query'],_0x2476c9)['$promise']:(_0x499a5e['query']['id']=_0x499a5e[_0x154aa9('0x257b')]['id'],_0x499a5e['query'][_0x154aa9('0x17c9')]=_0x154aa9('0x16ad'),_0x499a5e[_0x154aa9('0x2219')]=_0x1e9614['userProfile'][_0x154aa9('0x135b')](_0x499a5e[_0x154aa9('0xc49')],_0x2476c9)['$promise']);}function _0x28de84(_0x318935,_0x3a534f){const _0x335f23=_0x17d771;_0x2cffa2[_0x335f23('0x1cb7')]({'controller':_0x335f23('0x163'),'controllerAs':'vm','templateUrl':_0xb6f812,'parent':angular[_0x335f23('0xb6d')](_0xc5f577[_0x335f23('0x1a5')]),'targetEvent':_0x318935,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x3a534f,'queueCampaigns':_0x3c8d8a()[_0x335f23('0xcaf')](_0x499a5e[_0x335f23('0xeae')]),'license':null,'setting':null,'crudPermissions':_0x499a5e[_0x335f23('0x1dc1')]}});}function _0x961894(_0x1002e8,_0x300087){const _0x4eed74=_0x17d771;_0x2cffa2[_0x4eed74('0x1cb7')]({'controller':_0x4eed74('0x26e6'),'controllerAs':'vm','templateUrl':_0x4a0f66,'parent':angular['element'](_0xc5f577[_0x4eed74('0x1a5')]),'targetEvent':_0x1002e8,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x300087}});}function _0x3332c7(_0x5e9020,_0x15d870){const _0x464b81=_0x17d771;_0x2cffa2[_0x464b81('0x1cb7')]({'controller':_0x464b81('0x138e'),'controllerAs':'vm','templateUrl':_0x1c65e2,'parent':angular['element'](_0xc5f577[_0x464b81('0x1a5')]),'targetEvent':_0x5e9020,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x15d870,'queueCampaigns':_0x499a5e['queues']?_0x499a5e[_0x464b81('0xeae')][_0x464b81('0x6aa')]:[],'realtime':!![],'crudPermissions':_0x499a5e[_0x464b81('0x1dc1')]}});}function _0x273681(_0x44e562){const _0x314ab8=_0x17d771;return _0x1e9614[_0x314ab8('0x1282')]['update'](_0x44e562)[_0x314ab8('0x1964')][_0x314ab8('0x173b')](function(){const _0x562ae3=_0x314ab8;_0x4a9d5d['success']({'title':_0x562ae3('0x22bc'),'msg':_0x44e562[_0x562ae3('0x10ad')]?_0x44e562[_0x562ae3('0x10ad')]+_0x562ae3('0x1fd6'):''});})[_0x314ab8('0x103c')](function(_0x218efc){const _0x3c1432=_0x314ab8;_0x4a9d5d[_0x3c1432('0x15aa')]({'title':_0x3c1432('0xb5f'),'msg':_0x218efc['message']});});}_0x910638[_0x17d771('0xbf6')](_0x17d771('0x16d2'),function(){const _0x3ef99b=_0x17d771;_0x39d825[_0x3ef99b('0x251c')](_0x3ef99b('0x1414')),_0x499a5e[_0x3ef99b('0x55a')]&&_0x481365[_0x3ef99b('0x1e1f')](_0x499a5e[_0x3ef99b('0x55a')]),_0x39d825['removeAllListeners']('userVoiceQueueRt:save'),_0x39d825['removeAllListeners'](_0x3ef99b('0x2048')),_0x39d825[_0x3ef99b('0x251c')](_0x3ef99b('0x22b7')),_0x39d825['removeAllListeners']('userVoiceQueue:save');});}const _0x346661=_0x21b72d;_0xc7798b[_0x566993('0x17bb')]=['$mdDialog','$interval',_0x566993('0x100f')];function _0xc7798b(_0x4c810a,_0x5df0f4,_0x469c0e){const _0x2b9a59=_0x566993,_0x200681=this;_0x200681[_0x2b9a59('0x100f')]=_0x469c0e,_0x200681[_0x2b9a59('0x1d08')]=_0x2edb65,_0x200681[_0x2b9a59('0x2739')]=_0x1053dd,_0x200681[_0x2b9a59('0x18e2')]=_0x1f53ff;function _0x2edb65(_0x59b009,_0x219338){const _0x5f3cdf=_0x2b9a59;return _0x156524()(_0x59b009)[_0x5f3cdf('0x623')]('m',_0x219338)['format'](_0x5f3cdf('0x18da'));}function _0x1053dd(_0x74c1b4){const _0x12d6ca=_0x2b9a59;return _0x156524()(_0x74c1b4)[_0x12d6ca('0xddc')](_0x12d6ca('0x18da'));}function _0x1f53ff(){const _0x458d84=_0x2b9a59;_0x4c810a[_0x458d84('0x1cf4')]();}}const _0x392a87=_0xc7798b;function _0x2a3b43(){const _0xb56ab8=_0x566993;return{'status':{'registered':_0xb56ab8('0xdcf'),'unregistered':_0xb56ab8('0xc5a'),'lagged':_0xb56ab8('0xc5a'),'reachable':_0xb56ab8('0xdcf'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0xb56ab8('0x3c7')},'state':{'unknown':_0xb56ab8('0xd0a'),'not_inuse':_0xb56ab8('0x1dd'),'inuse':_0xb56ab8('0x2205'),'busy':_0xb56ab8('0x90c'),'invalid':_0xb56ab8('0xd0a'),'unavailable':_0xb56ab8('0xd0a'),'ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':_0xb56ab8('0x4da'),'onhold':_0xb56ab8('0x244d')},'channelStatus':{'ring':_0xb56ab8('0x4da'),'up':_0xb56ab8('0x6ed'),'hangup':_0xb56ab8('0x1797')},'channelStatusOut':{'ring':_0xb56ab8('0x1766'),'up':_0xb56ab8('0x6ed'),'hangup':_0xb56ab8('0x1797')}};}const _0x3840a9=_0x2a3b43;_0x4edcfa[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x2fc')];function _0x4edcfa(_0x3b7fdd,_0x563b6d,_0x315fd0){const _0x34cec2=_0x566993,_0x24f739=this;_0x315fd0['disconnect'](),_0x315fd0[_0x34cec2('0x45f')](),_0x24f739[_0x34cec2('0xd5f')]=0x0;switch(_0x563b6d['current'][_0x34cec2('0x10ad')]){case _0x34cec2('0x752'):_0x24f739[_0x34cec2('0xd5f')]=0x0;break;case _0x34cec2('0x2f5'):_0x24f739[_0x34cec2('0xd5f')]=0x1;break;case _0x34cec2('0x808'):_0x24f739[_0x34cec2('0xd5f')]=0x2;break;case _0x34cec2('0x165d'):_0x24f739[_0x34cec2('0xd5f')]=0x3;break;case _0x34cec2('0x12c3'):_0x24f739[_0x34cec2('0xd5f')]=0x4;break;case _0x34cec2('0x74b'):_0x24f739[_0x34cec2('0xd5f')]=0x5;break;default:_0x24f739[_0x34cec2('0xd5f')]=0x0,_0x563b6d['go'](_0x34cec2('0x752'));}_0x3b7fdd['$watch'](_0x34cec2('0x1a1'),function(_0x5dce74,_0x4f9832){const _0x131acc=_0x34cec2;if(_0x5dce74!==_0x4f9832)switch(_0x5dce74){case 0x0:_0x563b6d['go'](_0x131acc('0x752'));break;case 0x1:_0x563b6d['go']('app.motiondialer.realtime.queues');break;case 0x2:_0x563b6d['go'](_0x131acc('0x808'));break;case 0x3:_0x563b6d['go'](_0x131acc('0x165d'));break;case 0x4:_0x563b6d['go'](_0x131acc('0x12c3'));break;case 0x5:_0x563b6d['go'](_0x131acc('0x74b'));break;default:_0x563b6d['go'](_0x131acc('0x752'));}});}const _0x2d2517=_0x4edcfa;_0x4e87e7['$inject']=[_0x566993('0xccc')];function _0x4e87e7(_0x5676c4){const _0x307b0e=_0x566993;_0x5676c4['state'](_0x307b0e('0x989'),{'url':_0x307b0e('0x213'),'views':{'content@app':{'templateUrl':_0x112280,'controller':'MotionDialerRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':[_0x307b0e('0x2401'),'Auth',function(_0x2a30d0,_0x556234){const _0x5c0f07=_0x307b0e;return _0x556234[_0x5c0f07('0x1b4e')]('admin')?null:_0x2a30d0['resolve'](_0x5c0f07('0x1f20'),{'fields':_0x5c0f07('0x19dd'),'id':_0x556234[_0x5c0f07('0x14d4')]()[_0x5c0f07('0x1946')]});}],'userProfileSection':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x5921c5,_0x12f2dd){const _0x2212fc=_0x307b0e;return _0x12f2dd[_0x2212fc('0x1b4e')](_0x2212fc('0x79b'))?null:_0x5921c5[_0x2212fc('0x155b')](_0x2212fc('0x40'),{'fields':_0x2212fc('0x1348'),'userProfileId':_0x12f2dd[_0x2212fc('0x14d4')]()[_0x2212fc('0x1946')],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x307b0e('0x1a49')]('app.motiondialer.realtime.agents',{'url':_0x307b0e('0x1943'),'controller':_0x307b0e('0x8dd'),'templateUrl':_0x29bc1e,'resolve':{'pauses':[_0x307b0e('0x2401'),function(_0x2f316f){const _0x1a9c04=_0x307b0e;return _0x2f316f['resolve'](_0x1a9c04('0x176a'),{'nolimit':!![]});}],'agents':['apiResolver',_0x307b0e('0x1600'),function(_0x435f5d,_0x4edaad){const _0x201cba=_0x307b0e;return _0x4edaad[_0x201cba('0x1b4e')](_0x201cba('0x79b'))?_0x435f5d[_0x201cba('0x155b')]('user@get',{'fields':_0x201cba('0xd6b'),'role':'agent','sort':'fullname','nolimit':!![]}):_0x435f5d[_0x201cba('0x155b')](_0x201cba('0x14b3'),{'id':_0x4edaad[_0x201cba('0x14d4')]()['userProfileId'],'section':_0x201cba('0x1272'),'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':_0x201cba('0x7b0'),'sort':'fullname','nolimit':!![]});}],'userProfile':['apiResolver',_0x307b0e('0x1600'),function(_0x1be7be,_0x5e1eed){const _0x3de269=_0x307b0e;return _0x5e1eed[_0x3de269('0x1b4e')](_0x3de269('0x79b'))?null:_0x1be7be[_0x3de269('0x155b')](_0x3de269('0x1f20'),{'fields':_0x3de269('0x19dd'),'id':_0x5e1eed[_0x3de269('0x14d4')]()[_0x3de269('0x1946')]});}],'userProfileSection':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0xa97ad0,_0x4a29be){const _0x451b23=_0x307b0e;return _0x4a29be[_0x451b23('0x1b4e')](_0x451b23('0x79b'))?null:_0xa97ad0[_0x451b23('0x155b')]('userProfileSection@get',{'fields':_0x451b23('0x1348'),'userProfileId':_0x4a29be[_0x451b23('0x14d4')]()[_0x451b23('0x1946')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x396ff2){const _0xbdd6f=_0x307b0e;return _0x396ff2['resolve'](_0xbdd6f('0x58'));}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x307b0e('0x2f5'),{'url':'/queues','controller':_0x307b0e('0x27f'),'templateUrl':_0x29c065,'resolve':{'queues':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x2bbc6f,_0x5293da){const _0x354020=_0x307b0e;return _0x5293da[_0x354020('0x1b4e')](_0x354020('0x79b'))?_0x2bbc6f[_0x354020('0x155b')]('voiceQueue@get',{'type':'outbound','sort':_0x354020('0x1769'),'limit':0xa,'offset':0x0}):_0x2bbc6f['resolve']('userProfile@getResources',{'id':_0x5293da[_0x354020('0x14d4')]()['userProfileId'],'section':'QueueCampaigns','channel':_0x354020('0x21a8'),'type':_0x354020('0xb33'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x570b95,_0x373e8c){const _0x1d6562=_0x307b0e;return _0x373e8c[_0x1d6562('0x1b4e')](_0x1d6562('0x79b'))?null:_0x570b95[_0x1d6562('0x155b')](_0x1d6562('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x373e8c['getCurrentUser']()[_0x1d6562('0x1946')]});}],'userProfileSection':[_0x307b0e('0x2401'),'Auth',function(_0x1ab8ce,_0x93d906){const _0x50eacc=_0x307b0e;return _0x93d906['hasRole'](_0x50eacc('0x79b'))?null:_0x1ab8ce[_0x50eacc('0x155b')](_0x50eacc('0x40'),{'fields':_0x50eacc('0x1348'),'userProfileId':_0x93d906[_0x50eacc('0x14d4')]()[_0x50eacc('0x1946')],'sectionId':0x5dd});}],'rpcQueues':[_0x307b0e('0x2401'),function(_0x2e693f){const _0x59aed8=_0x307b0e;return _0x2e693f[_0x59aed8('0x155b')](_0x59aed8('0x7d8'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x307b0e('0x1a49')]('app.motiondialer.realtime.queue_calls',{'url':_0x307b0e('0xbca'),'controller':'QueueCallsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x297b2e,'resolve':{'agents':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x229e1d,_0x4727f0){const _0x4451ef=_0x307b0e;return _0x4727f0[_0x4451ef('0x1b4e')](_0x4451ef('0x79b'))?_0x229e1d[_0x4451ef('0x155b')](_0x4451ef('0x15e6'),{'fields':_0x4451ef('0x16d6'),'role':_0x4451ef('0x7b0'),'nolimit':!![]}):_0x229e1d[_0x4451ef('0x155b')](_0x4451ef('0x14b3'),{'id':_0x4727f0[_0x4451ef('0x14d4')]()[_0x4451ef('0x1946')],'section':_0x4451ef('0x1272'),'fields':_0x4451ef('0x16d6'),'role':_0x4451ef('0x7b0'),'nolimit':!![]});}],'queues':['apiResolver',_0x307b0e('0x1600'),function(_0x13f776,_0x641fcf){const _0x511b93=_0x307b0e;return _0x641fcf[_0x511b93('0x1b4e')](_0x511b93('0x79b'))?_0x13f776[_0x511b93('0x155b')](_0x511b93('0x17be'),{'type':_0x511b93('0xb33'),'sort':_0x511b93('0x1769'),'nolimit':!![]}):_0x13f776[_0x511b93('0x155b')](_0x511b93('0x14b3'),{'id':_0x641fcf[_0x511b93('0x14d4')]()[_0x511b93('0x1946')],'section':_0x511b93('0x16ad'),'channel':_0x511b93('0x21a8'),'type':_0x511b93('0xb33'),'sort':_0x511b93('0x1769'),'nolimit':!![]});}],'userProfile':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x2dd766,_0x2fbacb){const _0x1c004a=_0x307b0e;return _0x2fbacb[_0x1c004a('0x1b4e')](_0x1c004a('0x79b'))?null:_0x2dd766['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x2fbacb[_0x1c004a('0x14d4')]()[_0x1c004a('0x1946')]});}],'userProfileSection':[_0x307b0e('0x2401'),'Auth',function(_0x50398b,_0x3b67e5){const _0x52bdd8=_0x307b0e;return _0x3b67e5[_0x52bdd8('0x1b4e')](_0x52bdd8('0x79b'))?null:_0x50398b[_0x52bdd8('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3b67e5[_0x52bdd8('0x14d4')]()[_0x52bdd8('0x1946')],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':[_0x307b0e('0x2401'),function(_0x4eecfa){return _0x4eecfa['resolve']('rpc@getVoiceQueuesChannels');}]},'authenticate':!![],'permissionId':0x5e6})[_0x307b0e('0x1a49')](_0x307b0e('0x165d'),{'url':_0x307b0e('0xc5b'),'controller':'AbandonedCallsMotionDialerRealtimeController\x20as\x20vm','templateUrl':_0x498d8d,'resolve':{'agents':['apiResolver','Auth',function(_0x3ba4cd,_0x893a74){const _0x3dcdc1=_0x307b0e;return _0x893a74[_0x3dcdc1('0x1b4e')](_0x3dcdc1('0x79b'))?_0x3ba4cd[_0x3dcdc1('0x155b')](_0x3dcdc1('0x15e6'),{'fields':'id,name,role,context','role':_0x3dcdc1('0x7b0'),'nolimit':!![]}):_0x3ba4cd[_0x3dcdc1('0x155b')](_0x3dcdc1('0x14b3'),{'id':_0x893a74[_0x3dcdc1('0x14d4')]()[_0x3dcdc1('0x1946')],'section':_0x3dcdc1('0x1272'),'fields':_0x3dcdc1('0x16d6'),'role':_0x3dcdc1('0x7b0'),'nolimit':!![]});}],'queues':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x159760,_0x2cac6d){const _0x285169=_0x307b0e;return _0x2cac6d[_0x285169('0x1b4e')](_0x285169('0x79b'))?_0x159760['resolve'](_0x285169('0x17be'),{'type':_0x285169('0xb33'),'sort':_0x285169('0x1769'),'nolimit':!![]}):_0x159760[_0x285169('0x155b')]('userProfile@getResources',{'id':_0x2cac6d[_0x285169('0x14d4')]()[_0x285169('0x1946')],'section':_0x285169('0x16ad'),'channel':_0x285169('0x21a8'),'type':_0x285169('0xb33'),'sort':_0x285169('0x1769'),'nolimit':!![]});}],'dispositions':['apiResolver',_0x307b0e('0x1600'),function(_0x450b66,_0x344ea8){const _0x178bee=_0x307b0e;return _0x344ea8[_0x178bee('0x1b4e')](_0x178bee('0x79b'))?_0x450b66[_0x178bee('0x155b')](_0x178bee('0x16c5'),{'fields':_0x178bee('0xd78'),'sort':'-updatedAt','MailAccountId':'null','FaxAccountId':_0x178bee('0x877'),'SmsAccountId':_0x178bee('0x877'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x178bee('0x877'),'ChatWebsiteId':_0x178bee('0x877'),'ListId':_0x178bee('0x877'),'nolimit':!![]}):_0x450b66[_0x178bee('0x155b')](_0x178bee('0x14b3'),{'id':_0x344ea8[_0x178bee('0x14d4')]()[_0x178bee('0x1946')],'section':'Dispositions','fields':'createdAt,updatedAt,id,name','sort':_0x178bee('0x1769'),'MailAccountId':_0x178bee('0x877'),'FaxAccountId':_0x178bee('0x877'),'SmsAccountId':_0x178bee('0x877'),'WhatsappAccountId':'null','OpenchannelAccountId':_0x178bee('0x877'),'ChatWebsiteId':_0x178bee('0x877'),'ListId':_0x178bee('0x877'),'nolimit':!![]});}],'userProfile':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x319824,_0x50a841){const _0x5c769a=_0x307b0e;return _0x50a841['hasRole'](_0x5c769a('0x79b'))?null:_0x319824['resolve'](_0x5c769a('0x1f20'),{'fields':_0x5c769a('0x19dd'),'id':_0x50a841[_0x5c769a('0x14d4')]()[_0x5c769a('0x1946')]});}],'userProfileSection':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x49f432,_0x55b9d6){const _0x145595=_0x307b0e;return _0x55b9d6['hasRole']('admin')?null:_0x49f432[_0x145595('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x55b9d6[_0x145595('0x14d4')]()[_0x145595('0x1946')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})[_0x307b0e('0x1a49')]('app.motiondialer.realtime.queue_params',{'url':_0x307b0e('0xc63'),'controller':_0x307b0e('0x1dff'),'templateUrl':_0x265966,'resolve':{'queues':[_0x307b0e('0x2401'),'Auth',function(_0x56c8ba,_0x2cfcb2){const _0x3b8d24=_0x307b0e;return _0x2cfcb2[_0x3b8d24('0x1b4e')](_0x3b8d24('0x79b'))?_0x56c8ba['resolve']('voiceQueue@get',{'type':'outbound','fields':_0x3b8d24('0xd52'),'sort':_0x3b8d24('0x1769'),'limit':0xa,'offset':0x0}):_0x56c8ba[_0x3b8d24('0x155b')]('userProfile@getResources',{'id':_0x2cfcb2['getCurrentUser']()[_0x3b8d24('0x1946')],'section':_0x3b8d24('0x16ad'),'channel':_0x3b8d24('0x21a8'),'type':_0x3b8d24('0xb33'),'sort':_0x3b8d24('0x1769'),'nolimit':!![]});}],'userProfile':[_0x307b0e('0x2401'),'Auth',function(_0x182734,_0x3e137f){const _0x3d424b=_0x307b0e;return _0x3e137f[_0x3d424b('0x1b4e')]('admin')?null:_0x182734['resolve'](_0x3d424b('0x1f20'),{'fields':_0x3d424b('0x19dd'),'id':_0x3e137f[_0x3d424b('0x14d4')]()[_0x3d424b('0x1946')]});}],'userProfileSection':[_0x307b0e('0x2401'),'Auth',function(_0x2c07aa,_0x5b01e3){const _0x4f3501=_0x307b0e;return _0x5b01e3[_0x4f3501('0x1b4e')](_0x4f3501('0x79b'))?null:_0x2c07aa[_0x4f3501('0x155b')](_0x4f3501('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5b01e3[_0x4f3501('0x14d4')]()['userProfileId'],'sectionId':0x5dd});}],'rpcQueues':['apiResolver',function(_0x3a0744){const _0x4e2d23=_0x307b0e;return _0x3a0744[_0x4e2d23('0x155b')](_0x4e2d23('0x7d8'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x307b0e('0x1a49')]('app.motiondialer.realtime.ivr_campaigns',{'url':'/ivr_campaigns','controller':_0x307b0e('0x48e'),'templateUrl':_0x1e35e2,'resolve':{'campaigns':[_0x307b0e('0x2401'),_0x307b0e('0x1600'),function(_0x3bb395,_0x25cf7d){const _0x1e3a30=_0x307b0e;return _0x25cf7d['hasRole'](_0x1e3a30('0x79b'))?_0x3bb395['resolve'](_0x1e3a30('0x22ee'),{'sort':_0x1e3a30('0x1769'),'limit':0xa,'offset':0x0}):_0x3bb395[_0x1e3a30('0x155b')](_0x1e3a30('0x14b3'),{'id':_0x25cf7d[_0x1e3a30('0x14d4')]()[_0x1e3a30('0x1946')],'section':'IvrCampaigns','sort':_0x1e3a30('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x307b0e('0x2401'),'Auth',function(_0x1a9fc7,_0x2f2f50){const _0x3d350b=_0x307b0e;return _0x2f2f50['hasRole'](_0x3d350b('0x79b'))?null:_0x1a9fc7[_0x3d350b('0x155b')]('userProfile@get',{'fields':_0x3d350b('0x19dd'),'id':_0x2f2f50[_0x3d350b('0x14d4')]()[_0x3d350b('0x1946')]});}],'userProfileSection':['apiResolver',_0x307b0e('0x1600'),function(_0x47bd93,_0x3a2503){const _0x86c4de=_0x307b0e;return _0x3a2503[_0x86c4de('0x1b4e')](_0x86c4de('0x79b'))?null:_0x47bd93[_0x86c4de('0x155b')]('userProfileSection@get',{'fields':_0x86c4de('0x1348'),'userProfileId':_0x3a2503['getCurrentUser']()['userProfileId'],'sectionId':0x5de});}],'rpcCampaigns':['apiResolver',function(_0x38db61){const _0xc44f04=_0x307b0e;return _0x38db61[_0xc44f04('0x155b')](_0xc44f04('0x1c0b'));}]},'authenticate':!![],'permissionId':0x5e6});}angular[_0x566993('0x22c4')](_0x566993('0x989'),[])[_0x566993('0xea9')](_0x4e87e7)['controller'](_0x566993('0x26d2'),_0x4ee898)[_0x566993('0x1e65')]('AgentsMotionDialerRealtimeController',_0x32b730)[_0x566993('0x1e65')](_0x566993('0x404'),_0x101b17)[_0x566993('0x1e65')](_0x566993('0x2782'),_0x1b74cc)[_0x566993('0x1e65')]('QueueParamsMotionDialerRealtimeController',_0x493dfa)['controller'](_0x566993('0x283d'),_0x346661)[_0x566993('0x1e65')]('PredictiveQueueCampaignDialogController',_0x392a87)['factory'](_0x566993('0x1bf5'),_0x3840a9)['controller'](_0x566993('0x4bb'),_0x2d2517);const _0x3d3fe1=_0x21a6a1['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns.html',_0x3f2c14=_0x21a6a1['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view.html',_0x5c8758=_0x21a6a1['p']+_0x566993('0xf9d'),_0x543662=_0x21a6a1['p']+_0x566993('0x21cb');_0x5025cb['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),'ivrCampaigns',_0x566993('0x1d04'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x5025cb(_0x5506e3,_0x16fb55,_0x30d25c,_0x5f2947,_0x32b9e8,_0x49a7b1,_0x2d7335,_0x356c88,_0x1753b1,_0x524fa0,_0x36464c,_0x2775fd,_0x2f589c,_0xc583bc){const _0xf980be=_0x566993,_0xbc273d=this;_0xbc273d[_0xf980be('0x155f')]=_0x36464c['getCurrentUser'](),_0xbc273d[_0xf980be('0x1d4a')]=[],_0xbc273d[_0xf980be('0x251')]=_0x2f589c,_0xbc273d[_0xf980be('0x1a29')]=_0x2775fd,_0xbc273d[_0xf980be('0x1dc1')]=_0xc583bc,_0xbc273d[_0xf980be('0xb0')]={},_0xbc273d[_0xf980be('0x644')]=_0xbc273d[_0xf980be('0x251')]&&_0xbc273d['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbc273d['title']=_0xf980be('0x1d27'),_0xbc273d['ivrCampaign']=angular['copy'](_0x1753b1),_0xbc273d[_0xf980be('0x7b3')]=_0x356c88,_0xbc273d['newIvrCampaign']=![];!_0xbc273d['ivrCampaign']&&(_0xbc273d[_0xf980be('0x1d04')]={'active':!![],'type':'ivr','dialCheckDuplicateType':_0xf980be('0x17b3'),'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':_0xf980be('0x2085'),'dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0xbc273d['title']=_0xf980be('0xdd3'),_0xbc273d[_0xf980be('0x55c')]=!![]);_0xbc273d[_0xf980be('0x4e1')]=_0x429b24,_0xbc273d['saveIvrCampaign']=_0x1517f7,_0xbc273d[_0xf980be('0x197c')]=_0x1174f8,_0xbc273d[_0xf980be('0x11ae')]=_0x50d43e,_0xbc273d[_0xf980be('0x18e2')]=_0x35d44b,_0x36464c[_0xf980be('0x1b4e')](_0xf980be('0x79b'))?_0x524fa0[_0xf980be('0x15b7')][_0xf980be('0x1d97')]({'fields':'id,name','sort':_0xf980be('0x10ad'),'table':_0xf980be('0x799')})['$promise'][_0xf980be('0x173b')](function(_0x3ea6c7){const _0x834a1b=_0xf980be;_0xbc273d[_0x834a1b('0x673')]=_0x3ea6c7[_0x834a1b('0x6aa')]||[];})['catch'](function(_0x2fc08a){const _0x202a40=_0xf980be;_0x2d7335[_0x202a40('0x15aa')]({'title':_0x2fc08a['status']?_0x202a40('0x137')+_0x2fc08a[_0x202a40('0x276f')]+'\x20-\x20'+_0x2fc08a[_0x202a40('0x2696')]:_0x202a40('0xbd8'),'msg':_0x2fc08a['data']?JSON['stringify'](_0x2fc08a[_0x202a40('0x1e07')]):_0x2fc08a[_0x202a40('0x1b75')]()});}):_0x524fa0[_0xf980be('0x15b7')][_0xf980be('0x1d97')]({'fields':'id,name','sort':_0xf980be('0x10ad'),'table':_0xf980be('0x799')})[_0xf980be('0x1964')][_0xf980be('0x173b')](function(_0x59f0f7){const _0x4a047b=_0xf980be;_0xbc273d[_0x4a047b('0x673')]=_0x59f0f7[_0x4a047b('0x6aa')]||[];})['then'](function(){const _0x2f95a3=_0xf980be;return _0x524fa0[_0x2f95a3('0x170e')][_0x2f95a3('0x1d97')]({'userProfileId':_0xbc273d[_0x2f95a3('0x155f')][_0x2f95a3('0x1946')],'sectionId':0x3f3})['$promise'];})['then'](function(_0x5e2b28){const _0x3b4de2=_0xf980be,_0xc24b2f=_0x5e2b28&&_0x5e2b28[_0x3b4de2('0x6aa')]?_0x5e2b28['rows'][0x0]:null;if(!_0xc24b2f)_0xbc273d[_0x3b4de2('0x673')]=[];else{if(!_0xc24b2f[_0x3b4de2('0x273e')])return _0x524fa0[_0x3b4de2('0xda9')]['get']({'sectionId':_0xc24b2f['id']})[_0x3b4de2('0x1964')][_0x3b4de2('0x173b')](function(_0x2bf53c){const _0x23daa6=_0x3b4de2,_0x4fd13f=_0x3c8d8a()[_0x23daa6('0x8a2')](_0x2bf53c[_0x23daa6('0x6aa')],function(_0x3c5171){const _0x4af687=_0x23daa6;return _0x3c8d8a()[_0x4af687('0x18ab')](_0xbc273d['trunks'],{'id':_0x3c5171['resourceId']});});_0xbc273d[_0x23daa6('0x673')][_0x23daa6('0xa6a')](function(_0x394c1f){const _0x86e33d=_0x23daa6;!_0x3c8d8a()[_0x86e33d('0x1ec')](_0x4fd13f,['id',_0x394c1f['id']])&&(_0x394c1f[_0x86e33d('0x268e')]=![]),_0x4fd13f[_0x86e33d('0x18bb')](_0x394c1f);}),_0xbc273d[_0x23daa6('0x673')]=_0x4fd13f;});}})[_0xf980be('0x103c')](function(_0x4fc78b){const _0x534f9d=_0xf980be;_0x2d7335[_0x534f9d('0x15aa')]({'title':_0x4fc78b[_0x534f9d('0x276f')]?_0x534f9d('0x137')+_0x4fc78b[_0x534f9d('0x276f')]+_0x534f9d('0x160c')+_0x4fc78b[_0x534f9d('0x2696')]:_0x534f9d('0x21ed'),'msg':_0x4fc78b[_0x534f9d('0x1e07')]?JSON[_0x534f9d('0x100b')](_0x4fc78b[_0x534f9d('0x1e07')]):_0x4fc78b[_0x534f9d('0x1b75')]()});}),_0x36464c[_0xf980be('0x1b4e')](_0xf980be('0x79b'))?_0x524fa0[_0xf980be('0x550')][_0xf980be('0x1d97')]({'fields':_0xf980be('0xd52'),'sort':_0xf980be('0x10ad')})[_0xf980be('0x1964')][_0xf980be('0x173b')](function(_0x4adab9){const _0x48d6d0=_0xf980be;_0xbc273d[_0x48d6d0('0x23a1')]=_0x4adab9[_0x48d6d0('0x6aa')]||[];})[_0xf980be('0x103c')](function(_0x30af1d){const _0x316980=_0xf980be;_0x2d7335[_0x316980('0x15aa')]({'title':_0x30af1d[_0x316980('0x276f')]?'API:'+_0x30af1d[_0x316980('0x276f')]+_0x316980('0x160c')+_0x30af1d[_0x316980('0x2696')]:_0x316980('0x24bb'),'msg':_0x30af1d[_0x316980('0x1e07')]?JSON[_0x316980('0x100b')](_0x30af1d[_0x316980('0x1e07')]):_0x30af1d[_0x316980('0x1b75')]()});}):_0x524fa0[_0xf980be('0x550')][_0xf980be('0x1d97')]({'fields':_0xf980be('0xd52'),'sort':_0xf980be('0x10ad')})['$promise'][_0xf980be('0x173b')](function(_0x4be3ca){const _0xc76165=_0xf980be;_0xbc273d[_0xc76165('0x23a1')]=_0x4be3ca['rows']||[];})['then'](function(){const _0x44195f=_0xf980be;return _0x524fa0[_0x44195f('0x170e')]['get']({'userProfileId':_0xbc273d[_0x44195f('0x155f')][_0x44195f('0x1946')],'sectionId':0x44f})['$promise'];})['then'](function(_0x43000b){const _0x22820c=_0xf980be,_0x423ede=_0x43000b&&_0x43000b['rows']?_0x43000b[_0x22820c('0x6aa')][0x0]:null;if(!_0x423ede){const _0x5245fa=[];let _0xa322a9=null;_0xbc273d[_0x22820c('0x1d04')]&&(_0xa322a9=_0x3c8d8a()[_0x22820c('0x18ab')](_0xbc273d[_0x22820c('0x23a1')],{'id':Number(_0xbc273d['ivrCampaign'][_0x22820c('0x11e1')])}));for(let _0x15f463=0x0;_0x15f463<_0xbc273d[_0x22820c('0x23a1')][_0x22820c('0x543')];_0x15f463++){_0xa322a9&&_0xbc273d[_0x22820c('0x23a1')][_0x15f463]['id']===_0xa322a9['id']&&(_0xbc273d[_0x22820c('0x23a1')][_0x15f463][_0x22820c('0x268e')]=![],_0x5245fa[_0x22820c('0x18bb')](_0xbc273d[_0x22820c('0x23a1')][_0x15f463]));}_0xbc273d[_0x22820c('0x23a1')]=_0x5245fa;}else{if(!_0x423ede[_0x22820c('0x273e')])return _0x524fa0['userProfileResource'][_0x22820c('0x1d97')]({'sectionId':_0x423ede['id']})[_0x22820c('0x1964')][_0x22820c('0x173b')](function(_0x246673){const _0x46e075=_0x22820c,_0x3d1718=_0x3c8d8a()[_0x46e075('0x8a2')](_0x246673[_0x46e075('0x6aa')],function(_0x542fea){const _0xaf7748=_0x46e075;return _0x3c8d8a()['find'](_0xbc273d[_0xaf7748('0x23a1')],{'id':_0x542fea[_0xaf7748('0x1ce0')]});});let _0x8eb5c4=null;_0xbc273d[_0x46e075('0x1d04')]&&(_0x8eb5c4=_0x3c8d8a()['find'](_0xbc273d[_0x46e075('0x23a1')],{'id':Number(_0xbc273d['ivrCampaign']['SquareProjectId'])}));if(_0x8eb5c4&&!_0x3c8d8a()['some'](_0x3d1718,['id',_0x8eb5c4['id']])){const _0x1dbf03=_0x3c8d8a()[_0x46e075('0x18ab')](_0xbc273d[_0x46e075('0x23a1')],{'id':_0x8eb5c4['id']});_0x1dbf03[_0x46e075('0x268e')]=![],_0x3d1718[_0x46e075('0x18bb')](_0x1dbf03);}_0xbc273d[_0x46e075('0x23a1')]=_0x3d1718;});}})[_0xf980be('0x103c')](function(_0x389794){const _0x96e770=_0xf980be;_0x2d7335[_0x96e770('0x15aa')]({'title':_0x389794['status']?_0x96e770('0x137')+_0x389794[_0x96e770('0x276f')]+_0x96e770('0x160c')+_0x389794[_0x96e770('0x2696')]:_0x96e770('0x2233'),'msg':_0x389794[_0x96e770('0x1e07')]?JSON[_0x96e770('0x100b')](_0x389794[_0x96e770('0x1e07')]):_0x389794[_0x96e770('0x1b75')]()});}),_0x36464c[_0xf980be('0x1b4e')]('admin')?_0x524fa0[_0xf980be('0x55a')][_0xf980be('0x1d97')]({'fields':_0xf980be('0xd52'),'sort':_0xf980be('0x10ad'),'IntervalId':_0xf980be('0x877')})['$promise'][_0xf980be('0x173b')](function(_0x37dbd2){const _0x34dbbb=_0xf980be;_0xbc273d[_0x34dbbb('0x55a')]=_0x37dbd2['rows']||[];})[_0xf980be('0x103c')](function(_0x3e5e40){const _0x42b107=_0xf980be;_0x2d7335[_0x42b107('0x15aa')]({'title':_0x3e5e40[_0x42b107('0x276f')]?_0x42b107('0x137')+_0x3e5e40[_0x42b107('0x276f')]+'\x20-\x20'+_0x3e5e40[_0x42b107('0x2696')]:_0x42b107('0x1f4b'),'msg':_0x3e5e40[_0x42b107('0x1e07')]?JSON[_0x42b107('0x100b')](_0x3e5e40[_0x42b107('0x1e07')]):_0x3e5e40['toString']()});}):_0x524fa0[_0xf980be('0x55a')][_0xf980be('0x1d97')]({'fields':_0xf980be('0xd52'),'sort':_0xf980be('0x10ad'),'IntervalId':'null'})['$promise'][_0xf980be('0x173b')](function(_0x1af4f2){const _0x4eeca9=_0xf980be;_0xbc273d[_0x4eeca9('0x55a')]=_0x1af4f2[_0x4eeca9('0x6aa')]||[];})[_0xf980be('0x173b')](function(){const _0x5784ed=_0xf980be;return _0x524fa0[_0x5784ed('0x170e')][_0x5784ed('0x1d97')]({'userProfileId':_0xbc273d['currentUser'][_0x5784ed('0x1946')],'sectionId':0x3ec})[_0x5784ed('0x1964')];})[_0xf980be('0x173b')](function(_0x1aca32){const _0xcca269=_0xf980be,_0x1d00da=_0x1aca32&&_0x1aca32['rows']?_0x1aca32[_0xcca269('0x6aa')][0x0]:null;if(!_0x1d00da){const _0x52d9eb=[];let _0x441ebf=null;_0xbc273d[_0xcca269('0x1d04')]&&(_0x441ebf=_0x3c8d8a()['find'](_0xbc273d[_0xcca269('0x55a')],{'id':Number(_0xbc273d[_0xcca269('0x1d04')]['IntervalId'])}));for(let _0x440710=0x0;_0x440710<_0xbc273d[_0xcca269('0x55a')][_0xcca269('0x543')];_0x440710++){_0x441ebf&&_0xbc273d[_0xcca269('0x55a')][_0x440710]['id']===_0x441ebf['id']&&(_0xbc273d['interval'][_0x440710]['canSelect']=![],_0x52d9eb[_0xcca269('0x18bb')](_0xbc273d[_0xcca269('0x55a')][_0x440710]));}_0xbc273d[_0xcca269('0x55a')]=_0x52d9eb;}else{if(!_0x1d00da['autoAssociation'])return _0x524fa0[_0xcca269('0xda9')][_0xcca269('0x1d97')]({'sectionId':_0x1d00da['id']})['$promise'][_0xcca269('0x173b')](function(_0x468d49){const _0x2849e5=_0xcca269,_0x21ea0b=_0x3c8d8a()['map'](_0x468d49[_0x2849e5('0x6aa')],function(_0x163c71){const _0x488551=_0x2849e5;return _0x3c8d8a()[_0x488551('0x18ab')](_0xbc273d[_0x488551('0x55a')],{'id':_0x163c71[_0x488551('0x1ce0')]});});let _0x4594c9=null;_0xbc273d[_0x2849e5('0x1d04')]&&(_0x4594c9=_0x3c8d8a()['find'](_0xbc273d[_0x2849e5('0x55a')],{'id':Number(_0xbc273d['ivrCampaign'][_0x2849e5('0x600')])}));if(_0x4594c9&&!_0x3c8d8a()['some'](_0x21ea0b,['id',_0x4594c9['id']])){const _0x421745=_0x3c8d8a()[_0x2849e5('0x18ab')](_0xbc273d[_0x2849e5('0x55a')],{'id':_0x4594c9['id']});_0x421745['canSelect']=![],_0x21ea0b['push'](_0x421745);}_0xbc273d['interval']=_0x21ea0b;});}})[_0xf980be('0x103c')](function(_0x484a9a){const _0x21ce6e=_0xf980be;_0x2d7335[_0x21ce6e('0x15aa')]({'title':_0x484a9a[_0x21ce6e('0x276f')]?_0x21ce6e('0x137')+_0x484a9a[_0x21ce6e('0x276f')]+_0x21ce6e('0x160c')+_0x484a9a[_0x21ce6e('0x2696')]:_0x21ce6e('0x2419'),'msg':_0x484a9a[_0x21ce6e('0x1e07')]?JSON[_0x21ce6e('0x100b')](_0x484a9a[_0x21ce6e('0x1e07')]):_0x484a9a[_0x21ce6e('0x1b75')]()});});function _0x429b24(){const _0x47a6c0=_0xf980be;_0xbc273d['errors']=[],_0x524fa0[_0x47a6c0('0x1983')][_0x47a6c0('0x1195')](_0xbc273d[_0x47a6c0('0x1d04')])['$promise'][_0x47a6c0('0x173b')](function(_0x54d4ce){const _0x442def=_0x47a6c0;_0xbc273d[_0x442def('0x7b3')][_0x442def('0x1377')](_0x54d4ce[_0x442def('0xf1f')]()),_0x2d7335[_0x442def('0xdfe')]({'title':'IvrCampaign\x20properly\x20created','msg':_0xbc273d[_0x442def('0x1d04')][_0x442def('0x10ad')]?_0xbc273d[_0x442def('0x1d04')][_0x442def('0x10ad')]+_0x442def('0x209a'):''}),_0x35d44b(_0x54d4ce);})[_0x47a6c0('0x103c')](function(_0x4958b3){const _0x2c2026=_0x47a6c0;if(_0x4958b3['data']&&_0x4958b3[_0x2c2026('0x1e07')][_0x2c2026('0x1d4a')]&&_0x4958b3[_0x2c2026('0x1e07')][_0x2c2026('0x1d4a')][_0x2c2026('0x543')]){_0xbc273d[_0x2c2026('0x1d4a')]=_0x4958b3['data'][_0x2c2026('0x1d4a')]||[{'message':_0x4958b3[_0x2c2026('0x1b75')](),'type':_0x2c2026('0x19ac')}];for(let _0x50a005=0x0;_0x50a005<_0x4958b3['data']['errors'][_0x2c2026('0x543')];_0x50a005+=0x1){_0x2d7335['error']({'title':_0x4958b3[_0x2c2026('0x1e07')][_0x2c2026('0x1d4a')][_0x50a005][_0x2c2026('0x1810')],'msg':_0x4958b3[_0x2c2026('0x1e07')][_0x2c2026('0x1d4a')][_0x50a005][_0x2c2026('0x67f')]});}}else _0x2d7335['error']({'title':_0x4958b3[_0x2c2026('0x276f')]?_0x2c2026('0x137')+_0x4958b3['status']+_0x2c2026('0x160c')+_0x4958b3[_0x2c2026('0x2696')]:_0x2c2026('0x19ac'),'msg':_0x4958b3[_0x2c2026('0x1e07')]?JSON['stringify'](_0x4958b3[_0x2c2026('0x1e07')][_0x2c2026('0x67f')]):_0x4958b3[_0x2c2026('0x1b75')]()});});}function _0x1517f7(){const _0x454ae1=_0xf980be;_0xbc273d[_0x454ae1('0x1d4a')]=[],_0x524fa0[_0x454ae1('0x1983')][_0x454ae1('0x1842')]({'id':_0xbc273d[_0x454ae1('0x1d04')]['id']},_0xbc273d['ivrCampaign'])[_0x454ae1('0x1964')][_0x454ae1('0x173b')](function(_0x3361a8){const _0x40888c=_0x454ae1,_0xf5e319=_0x3c8d8a()['find'](_0xbc273d['ivrCampaigns'],{'id':_0x3361a8['id']});_0xf5e319&&_0x3c8d8a()[_0x40888c('0x9ef')](_0xf5e319,_0x3c8d8a()['pick'](_0x3361a8[_0x40888c('0xf1f')](),_0x3c8d8a()['keys'](_0xf5e319))),_0x2d7335[_0x40888c('0xdfe')]({'title':_0x40888c('0x279d'),'msg':_0xbc273d[_0x40888c('0x1d04')][_0x40888c('0x10ad')]?_0xbc273d[_0x40888c('0x1d04')][_0x40888c('0x10ad')]+_0x40888c('0x2788'):''}),_0x35d44b(_0x3361a8);})[_0x454ae1('0x103c')](function(_0x286aa2){const _0x2726fa=_0x454ae1;if(_0x286aa2[_0x2726fa('0x1e07')]&&_0x286aa2[_0x2726fa('0x1e07')]['errors']&&_0x286aa2['data'][_0x2726fa('0x1d4a')][_0x2726fa('0x543')]){_0xbc273d[_0x2726fa('0x1d4a')]=_0x286aa2[_0x2726fa('0x1e07')][_0x2726fa('0x1d4a')]||[{'message':_0x286aa2[_0x2726fa('0x1b75')](),'type':_0x2726fa('0x2a')}];for(let _0x3e1a68=0x0;_0x3e1a68<_0x286aa2['data'][_0x2726fa('0x1d4a')][_0x2726fa('0x543')];_0x3e1a68++){_0x2d7335[_0x2726fa('0x15aa')]({'title':_0x286aa2[_0x2726fa('0x1e07')]['errors'][_0x3e1a68]['type'],'msg':_0x286aa2[_0x2726fa('0x1e07')][_0x2726fa('0x1d4a')][_0x3e1a68][_0x2726fa('0x67f')]});}}else _0x2d7335[_0x2726fa('0x15aa')]({'title':_0x286aa2[_0x2726fa('0x276f')]?_0x2726fa('0x137')+_0x286aa2[_0x2726fa('0x276f')]+'\x20-\x20'+_0x286aa2[_0x2726fa('0x2696')]:_0x2726fa('0x2a'),'msg':_0x286aa2[_0x2726fa('0x1e07')]?JSON[_0x2726fa('0x100b')](_0x286aa2[_0x2726fa('0x1e07')][_0x2726fa('0x67f')]):_0x286aa2[_0x2726fa('0x1b75')]()});});}function _0x1174f8(_0x486c39){const _0x22bf33=_0xf980be;_0xbc273d[_0x22bf33('0x1d4a')]=[];const _0x3ee12e=_0x5f2947[_0x22bf33('0x1d02')]()['title'](_0x22bf33('0x8ef'))[_0x22bf33('0x732')]('The\x20ivrCampaign\x20will\x20be\x20deleted.')['ariaLabel'](_0x22bf33('0x44f'))['ok']('Delete')[_0x22bf33('0x1e1f')](_0x22bf33('0x1d4e'))[_0x22bf33('0x21de')](_0x486c39);_0x5f2947['show'](_0x3ee12e)[_0x22bf33('0x173b')](function(){const _0x38f1d9=_0x22bf33;_0x524fa0[_0x38f1d9('0x1983')]['delete']({'id':_0xbc273d['ivrCampaign']['id']})[_0x38f1d9('0x1964')][_0x38f1d9('0x173b')](function(){const _0x1e2042=_0x38f1d9;_0x3c8d8a()[_0x1e2042('0x1a8b')](_0xbc273d[_0x1e2042('0x7b3')],{'id':_0xbc273d[_0x1e2042('0x1d04')]['id']}),_0x2d7335[_0x1e2042('0xdfe')]({'title':'IvrCampaign\x20properly\x20deleted!','msg':(_0xbc273d['ivrCampaign'][_0x1e2042('0x10ad')]||'ivrCampaign')+_0x1e2042('0x25d2')}),_0x35d44b(_0xbc273d[_0x1e2042('0x1d04')]);})[_0x38f1d9('0x103c')](function(_0x9e81f4){const _0xbe8412=_0x38f1d9;if(_0x9e81f4['data']&&_0x9e81f4['data'][_0xbe8412('0x1d4a')]&&_0x9e81f4[_0xbe8412('0x1e07')][_0xbe8412('0x1d4a')]['length']){_0xbc273d[_0xbe8412('0x1d4a')]=_0x9e81f4[_0xbe8412('0x1e07')]['errors']||[{'message':_0x9e81f4[_0xbe8412('0x1b75')](),'type':_0xbe8412('0xf83')}];for(let _0x4d4557=0x0;_0x4d4557<_0x9e81f4[_0xbe8412('0x1e07')][_0xbe8412('0x1d4a')][_0xbe8412('0x543')];_0x4d4557++){_0x2d7335[_0xbe8412('0x15aa')]({'title':_0x9e81f4[_0xbe8412('0x1e07')][_0xbe8412('0x1d4a')][_0x4d4557]['type'],'msg':_0x9e81f4[_0xbe8412('0x1e07')][_0xbe8412('0x1d4a')][_0x4d4557][_0xbe8412('0x67f')]});}}else _0x2d7335[_0xbe8412('0x15aa')]({'title':_0x9e81f4[_0xbe8412('0x276f')]?_0xbe8412('0x137')+_0x9e81f4[_0xbe8412('0x276f')]+'\x20-\x20'+_0x9e81f4[_0xbe8412('0x2696')]:'api.campaign.delete','msg':_0x9e81f4['data']?JSON['stringify'](_0x9e81f4[_0xbe8412('0x1e07')]['message']):_0x9e81f4[_0xbe8412('0x67f')]||_0x9e81f4[_0xbe8412('0x1b75')]()});});},function(){});}function _0x50d43e(_0x3756b2){return _0x3756b2===null?undefined:new Date(_0x3756b2);}function _0x35d44b(_0x54a257){const _0x396f5a=_0xf980be;_0x5f2947[_0x396f5a('0x1cf4')](_0x54a257);}}const _0x727fea=_0x5025cb;_0x2bd5f6['$inject']=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0xbd4'),'ivrCampaign',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1600'),'crudPermissions'];function _0x2bd5f6(_0x137f82,_0x40b168,_0x1d69ba,_0x5e14ce,_0x4bb9c3,_0x5114c8,_0x58df99,_0x46738d,_0x34319c){const _0x32e548=_0x566993,_0x52cfe0=this;_0x52cfe0[_0x32e548('0x155f')]=_0x46738d[_0x32e548('0x14d4')](),_0x52cfe0[_0x32e548('0x1d04')]=_0x4bb9c3,_0x52cfe0[_0x32e548('0x1dc1')]=_0x34319c,_0x52cfe0[_0x32e548('0x1cc1')]='voiceQueue',_0x52cfe0[_0x32e548('0x75d')]='getBlackLists',_0x52cfe0[_0x32e548('0xd1f')]=_0x32e548('0x2062'),_0x52cfe0[_0x32e548('0x234f')]='removeBlackLists',_0x52cfe0[_0x32e548('0x1b1f')]=[],_0x52cfe0['allowedItems']=[],_0x52cfe0[_0x32e548('0x5f8')]=[],_0x52cfe0[_0x32e548('0x1493')]=[],_0x52cfe0[_0x32e548('0x15c9')]=[],_0x52cfe0['pendingChanges']=![],_0x52cfe0[_0x32e548('0x283e')]=![],_0x52cfe0[_0x32e548('0x52e')]={'readOnly':!_0x52cfe0[_0x32e548('0x1dc1')][_0x32e548('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x32e548('0x10ad'),'line1':_0x32e548('0x10ad'),'line2':'','line3':'','labelAll':_0x5114c8['instant'](_0x32e548('0x266b')),'labelSelected':_0x5114c8[_0x32e548('0x1467')](_0x32e548('0x1a90')),'transferCallback':function(){const _0x1e712e=_0x32e548,_0x46e7d7=_0x3c8d8a()[_0x1e712e('0x226b')](_0x52cfe0[_0x1e712e('0x15c9')],_0x52cfe0[_0x1e712e('0x5f8')],'id');_0x52cfe0[_0x1e712e('0x277e')]=_0x3c8d8a()['isEmpty'](_0x46e7d7)?![]:!![];}},_0x52cfe0[_0x32e548('0x2535')]=_0x5025f9,_0x52cfe0[_0x32e548('0x2331')]=_0x4c83ff,_0x52cfe0['closeDialog']=_0x48a61a;function _0x5025f9(){const _0x2cd759=_0x32e548;return _0x46738d['hasRole'](_0x2cd759('0x79b'))?_0x3ea547()['catch'](function(_0x344fed){const _0xc383dc=_0x2cd759;_0x1d69ba['error']({'title':_0x344fed[_0xc383dc('0x276f')]?_0xc383dc('0x137')+_0x344fed[_0xc383dc('0x276f')]+_0xc383dc('0x160c')+_0x344fed[_0xc383dc('0x2696')]:_0xc383dc('0x2054'),'msg':_0x344fed['status']?JSON[_0xc383dc('0x100b')](_0x344fed['data']):_0x344fed[_0xc383dc('0x1b75')]()});}):_0x4a4c07()[_0x2cd759('0x173b')](function(_0x2610c2){return _0x52cfe0['section']=_0x2610c2,_0x3ea547();})[_0x2cd759('0x103c')](function(_0x103a0f){const _0x16fba3=_0x2cd759;_0x1d69ba[_0x16fba3('0x15aa')]({'title':_0x103a0f[_0x16fba3('0x276f')]?_0x16fba3('0x137')+_0x103a0f[_0x16fba3('0x276f')]+_0x16fba3('0x160c')+_0x103a0f[_0x16fba3('0x2696')]:_0x16fba3('0x2054'),'msg':_0x103a0f['status']?JSON['stringify'](_0x103a0f[_0x16fba3('0x1e07')]):_0x103a0f[_0x16fba3('0x1b75')]()});});}function _0x4a4c07(){return _0x40b168(function(_0x27959d,_0x25bf19){const _0x3e02bd=a0_0xde5e;_0x5e14ce[_0x3e02bd('0x170e')][_0x3e02bd('0x1d97')]({'userProfileId':_0x52cfe0[_0x3e02bd('0x155f')][_0x3e02bd('0x1946')],'name':_0x3e02bd('0xd8b')})[_0x3e02bd('0x1964')][_0x3e02bd('0x173b')](function(_0x642aa3){const _0x4a6ce8=_0x3e02bd,_0xadb806=_0x642aa3&&_0x642aa3[_0x4a6ce8('0x6aa')]?_0x642aa3[_0x4a6ce8('0x6aa')][0x0]:null;_0x27959d(_0xadb806);})[_0x3e02bd('0x103c')](function(_0x3b8552){_0x25bf19(_0x3b8552);});});}function _0x3ea547(){return _0x40b168(function(_0x49c3d3,_0x3d2636){const _0x1b4afd=a0_0xde5e;return _0x439072()[_0x1b4afd('0x173b')](function(_0x105cdf){const _0x19a66f=_0x1b4afd;return _0x52cfe0[_0x19a66f('0x1b1f')]=_0x105cdf['rows']?_0x105cdf[_0x19a66f('0x6aa')]:[],_0x46738d[_0x19a66f('0x1b4e')](_0x19a66f('0x79b'))?_0x105cdf:_0x52cfe0[_0x19a66f('0x17c9')]?_0x52cfe0[_0x19a66f('0x17c9')][_0x19a66f('0x273e')]?_0x105cdf:_0x97e0af():null;})[_0x1b4afd('0x173b')](function(_0x50041f){const _0x2f23d3=_0x1b4afd,_0x297c1d=_0x50041f&&_0x50041f[_0x2f23d3('0x6aa')]?_0x50041f['rows']:[];return _0x52cfe0[_0x2f23d3('0x203e')]=_0x3c8d8a()['map'](_0x297c1d,function(_0x5acb73){const _0x1c43a8=_0x2f23d3;return _0x3c8d8a()[_0x1c43a8('0x18ab')](_0x52cfe0['items'],{'id':_0x46738d[_0x1c43a8('0x1b4e')](_0x1c43a8('0x79b'))||_0x52cfe0['section'][_0x1c43a8('0x273e')]?_0x5acb73['id']:_0x5acb73[_0x1c43a8('0x1ce0')]});}),_0x52cfe0[_0x2f23d3('0x1493')]=angular['copy'](_0x52cfe0['allowedItems']),_0x52cfe0[_0x2f23d3('0x1b1f')][_0x2f23d3('0xa6a')](function(_0x166a6b){const _0x5d0f8b=_0x2f23d3,_0x250b2b=_0x3c8d8a()[_0x5d0f8b('0x18ab')](_0x52cfe0[_0x5d0f8b('0x203e')],{'id':_0x166a6b['id']});_0x52cfe0['currentUser'][_0x5d0f8b('0x14a')]===_0x5d0f8b('0x79b')?_0x166a6b[_0x5d0f8b('0xf02')]=!![]:_0x166a6b[_0x5d0f8b('0xf02')]=typeof _0x250b2b!==_0x5d0f8b('0x6e5')?!![]:![];}),_0xa0d631();})['then'](function(_0x3c530b){const _0x1525e7=_0x1b4afd,_0x32418f=_0x3c530b&&_0x3c530b[_0x1525e7('0x6aa')]?_0x3c530b[_0x1525e7('0x6aa')]:[];_0x52cfe0[_0x1525e7('0x5f8')]=_0x3c8d8a()[_0x1525e7('0x8a2')](_0x32418f,function(_0x43d242){const _0x4227e1=_0x1525e7;return _0x3c8d8a()[_0x4227e1('0x18ab')](_0x52cfe0[_0x4227e1('0x1b1f')],{'id':_0x43d242['id']});}),_0x52cfe0[_0x1525e7('0x15c9')]=angular[_0x1525e7('0x2e3')](_0x52cfe0[_0x1525e7('0x5f8')]),_0x52cfe0[_0x1525e7('0x52e')][_0x1525e7('0x5f8')]=_0x52cfe0[_0x1525e7('0x5f8')],_0x52cfe0[_0x1525e7('0x52e')][_0x1525e7('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x52cfe0[_0x1525e7('0x203e')],_0x52cfe0[_0x1525e7('0x52e')][_0x1525e7('0x5f8')],'id'),_0x49c3d3();})['catch'](function(_0x3f612a){_0x3d2636(_0x3f612a);});});}function _0x97e0af(){return _0x40b168(function(_0x30e259,_0x380ea8){const _0x5bf830=a0_0xde5e;return _0x5e14ce[_0x5bf830('0xda9')]['get']({'sectionId':_0x52cfe0[_0x5bf830('0x17c9')]['id'],'nolimit':!![]})[_0x5bf830('0x1964')][_0x5bf830('0x173b')](function(_0x363687){_0x30e259(_0x363687);})['catch'](function(_0x3d4799){_0x380ea8(_0x3d4799);});});}function _0xa0d631(){return _0x40b168(function(_0x1642b4,_0x522603){const _0x36e1a1=a0_0xde5e,_0x2c2c43=_0x5e14ce[_0x52cfe0[_0x36e1a1('0x1cc1')]];return _0x2c2c43[_0x52cfe0['getApi']]({'id':_0x52cfe0['ivrCampaign']['id'],'fields':_0x36e1a1('0xd52'),'nolimit':!![]})[_0x36e1a1('0x1964')]['then'](function(_0x1a9284){_0x1642b4(_0x1a9284);})[_0x36e1a1('0x103c')](function(_0x533a31){_0x522603(_0x533a31);});});}function _0x439072(){return _0x40b168(function(_0x2bbe11,_0x447534){const _0x5cf5f5=a0_0xde5e;return _0x5e14ce[_0x5cf5f5('0xbb3')][_0x5cf5f5('0x1d97')]({'fields':'id,name','nolimit':!![]})['$promise']['then'](function(_0x4fde9e){_0x2bbe11(_0x4fde9e);})['catch'](function(_0x12645d){_0x447534(_0x12645d);});});}function _0x35445e(_0x155d99){return _0x40b168(function(_0x4be2eb,_0x45e245){const _0x564406=a0_0xde5e;if(_0x3c8d8a()[_0x564406('0x1a56')](_0x155d99))_0x4be2eb();else{const _0x374ac6=_0x5e14ce[_0x52cfe0[_0x564406('0x1cc1')]];_0x374ac6[_0x52cfe0[_0x564406('0xd1f')]]({'id':_0x52cfe0[_0x564406('0x1d04')]['id'],'ids':_0x3c8d8a()[_0x564406('0x8a2')](_0x155d99,'id')})[_0x564406('0x1964')][_0x564406('0x173b')](function(){_0x4be2eb();})[_0x564406('0x103c')](function(_0x2effc8){_0x45e245(_0x2effc8);});}});}function _0x2254cb(_0x410047){return _0x40b168(function(_0x129aaf,_0x3fa07c){const _0x3ce903=a0_0xde5e;if(_0x3c8d8a()[_0x3ce903('0x1a56')](_0x410047))_0x129aaf();else{const _0x43d651=_0x5e14ce[_0x52cfe0[_0x3ce903('0x1cc1')]];_0x43d651[_0x52cfe0[_0x3ce903('0x234f')]]({'id':_0x52cfe0[_0x3ce903('0x1d04')]['id'],'ids':_0x3c8d8a()[_0x3ce903('0x8a2')](_0x410047,'id')})['$promise']['then'](function(){_0x129aaf();})[_0x3ce903('0x103c')](function(_0x4eab56){_0x3fa07c(_0x4eab56);});}});}function _0x4c83ff(){const _0x3b622b=_0x32e548;_0x52cfe0['loading']=!![];const _0xd99cd3=_0x3c8d8a()[_0x3b622b('0x1bd3')](_0x52cfe0['startingSelectedItems'],_0x52cfe0[_0x3b622b('0x5f8')],'id'),_0x47e907=_0x3c8d8a()[_0x3b622b('0x1bd3')](_0x52cfe0[_0x3b622b('0x5f8')],_0x52cfe0[_0x3b622b('0x15c9')],'id');return _0x2254cb(_0xd99cd3)[_0x3b622b('0x173b')](function(){return _0x35445e(_0x47e907);})[_0x3b622b('0x173b')](function(){const _0x114d86=_0x3b622b;_0x52cfe0['pendingChanges']=![],_0x52cfe0[_0x114d86('0x1493')]=angular[_0x114d86('0x2e3')](_0x52cfe0['allowedItems']),_0x52cfe0[_0x114d86('0x15c9')]=angular[_0x114d86('0x2e3')](_0x52cfe0[_0x114d86('0x5f8')]),_0x1d69ba[_0x114d86('0xdfe')]({'title':_0x114d86('0x23db'),'msg':_0x114d86('0x10ae')});})[_0x3b622b('0x103c')](function(_0x26bccc){const _0x29856b=_0x3b622b;_0x1d69ba[_0x29856b('0x15aa')]({'title':_0x26bccc[_0x29856b('0x276f')]?'API:'+_0x26bccc[_0x29856b('0x276f')]+'\x20-\x20'+_0x26bccc[_0x29856b('0x2696')]:_0x29856b('0x1f48'),'msg':_0x26bccc[_0x29856b('0x276f')]?JSON[_0x29856b('0x100b')](_0x26bccc[_0x29856b('0x1e07')]):_0x26bccc['toString']()});})[_0x3b622b('0xf25')](function(){const _0x34f000=_0x3b622b;_0x52cfe0[_0x34f000('0x283e')]=![];});}function _0x48a61a(){const _0x1e3f3e=_0x32e548;_0x137f82[_0x1e3f3e('0x1cf4')]();}}const _0x5501da=_0x2bd5f6;_0x2c2595['$inject']=[_0x566993('0x1fe5'),'$state',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1d04'),'ivrCampaigns',_0x566993('0x638')];function _0x2c2595(_0x400aaf,_0x9a49e1,_0x3bd9aa,_0x45ee5e,_0x3614c6,_0x262b53,_0x446d9e){const _0x1028c2=_0x566993,_0x2162e2=this;_0x2162e2[_0x1028c2('0x55c')]=!![],_0x2162e2[_0x1028c2('0x1d04')]=angular['copy'](_0x3614c6),_0x2162e2[_0x1028c2('0x7b3')]=_0x262b53,_0x2162e2[_0x1028c2('0x20d6')]=_0x446d9e[_0x1028c2('0x1467')](_0x1028c2('0x3d3'));_0x3614c6&&_0x3614c6[_0x1028c2('0x10ad')]&&(_0x2162e2[_0x1028c2('0x20d6')]+=':\x20'+_0x3614c6[_0x1028c2('0x10ad')]);_0x2162e2[_0x1028c2('0x128d')]=_0x345af8,_0x2162e2[_0x1028c2('0x18e2')]=_0x4bc33a;function _0x345af8(){const _0x499ed7=_0x1028c2;return _0x45ee5e['campaign'][_0x499ed7('0x979')]({'id':_0x3614c6['id']},_0x2162e2['ivrCampaign'])['$promise'][_0x499ed7('0x173b')](function(_0x2736d9){const _0x3c6374=_0x499ed7;_0x2162e2[_0x3c6374('0x7b3')][_0x3c6374('0x1377')](_0x2736d9['toJSON']()),_0x3bd9aa[_0x3c6374('0xdfe')]({'title':'IvrCampaign\x20properly\x20cloned','msg':_0x2162e2['ivrCampaign'][_0x3c6374('0x10ad')]?_0x2162e2[_0x3c6374('0x1d04')]['name']+_0x3c6374('0x648'):''}),_0x9a49e1['go'](_0x3c6374('0x23b2'),{'id':_0x2736d9['id']}),_0x4bc33a(_0x2736d9);})['catch'](function(_0x2571a8){const _0x147435=_0x499ed7;if(_0x2571a8[_0x147435('0x1e07')]&&_0x2571a8[_0x147435('0x1e07')][_0x147435('0x1d4a')]&&_0x2571a8['data'][_0x147435('0x1d4a')]['length']){_0x2162e2[_0x147435('0x1d4a')]=_0x2571a8['data'][_0x147435('0x1d4a')]||[{'message':_0x2571a8[_0x147435('0x1b75')](),'type':_0x147435('0x1d2e')}];for(let _0x440a7a=0x0;_0x440a7a<_0x2571a8['data'][_0x147435('0x1d4a')]['length'];_0x440a7a+=0x1){_0x3bd9aa[_0x147435('0x15aa')]({'title':_0x2571a8[_0x147435('0x1e07')][_0x147435('0x1d4a')][_0x440a7a][_0x147435('0x1810')],'msg':_0x2571a8['data'][_0x147435('0x1d4a')][_0x440a7a]['message']});}}else _0x3bd9aa[_0x147435('0x15aa')]({'title':_0x2571a8[_0x147435('0x276f')]?_0x147435('0x137')+_0x2571a8[_0x147435('0x276f')]+_0x147435('0x160c')+_0x2571a8[_0x147435('0x2696')]:'api.campaign.clone','msg':_0x2571a8[_0x147435('0x1e07')]?JSON[_0x147435('0x100b')](_0x2571a8[_0x147435('0x1e07')][_0x147435('0x67f')]):_0x2571a8['toString']()});});}function _0x4bc33a(_0x43bf80){const _0x2a6df8=_0x1028c2;_0x400aaf[_0x2a6df8('0x1cf4')](_0x43bf80);}}const _0x4db396=_0x2c2595;_0x4ed7d6[_0x566993('0x17bb')]=['$cookies',_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$document',_0x566993('0x1558'),'api',_0x566993('0x1600')];function _0x4ed7d6(_0x23fd42,_0x34076f,_0x464f4c,_0xbf157c,_0x618a1e,_0x49c518,_0x926b4c,_0x497731,_0x4d9a6e,_0x572f5c,_0x334cc2){const _0x4052d3=_0x566993,_0x380d54=this;_0x380d54[_0x4052d3('0x155f')]=_0x334cc2['getCurrentUser'](),_0x380d54[_0x4052d3('0x1d04')]={},_0x380d54[_0x4052d3('0x1f21')]={'count':0x0,'rows':[]},_0x380d54[_0x4052d3('0x3f4')]=[],_0x380d54[_0x4052d3('0x1dc1')],_0x380d54[_0x4052d3('0xc49')]={'fields':_0x4052d3('0x26e2'),'sort':_0x4052d3('0x9a8'),'limit':0xa,'page':0x1},_0x380d54[_0x4052d3('0xb9c')]=_0x3e7831,_0x380d54[_0x4052d3('0x2051')]=_0x706506,_0x380d54[_0x4052d3('0xdfe')]=_0x5802e7,_0x380d54['getIvrCampaignHopperBlacks']=_0x3fee02,_0x380d54[_0x4052d3('0x1909')]=_0x1f61af,_0x380d54[_0x4052d3('0x602')]=_0x2d9273,_0x380d54[_0x4052d3('0x26fb')]=_0x5f6e66;function _0x3e7831(_0x4f101c,_0xfe8f64){const _0x176af9=_0x4052d3;_0x380d54[_0x176af9('0x1d04')]=_0x4f101c,_0x380d54[_0x176af9('0x1dc1')]=typeof _0xfe8f64!==_0x176af9('0x6e5')?_0xfe8f64:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x380d54[_0x176af9('0xc49')][_0x176af9('0x1659')]=_0x380d54[_0x176af9('0x1d04')]['id'],_0x380d54[_0x176af9('0xc49')]['id']=_0x380d54[_0x176af9('0x1d04')]['id'],_0x3fee02();}function _0x706506(_0x42cea0,_0x1e0355){const _0x38c325=_0x4052d3,_0x3eae7b=_0x926b4c[_0x38c325('0x1d02')]()[_0x38c325('0x20d6')](_0x38c325('0x1f5d'))['htmlContent'](_0x38c325('0x15b9')+(_0x42cea0[_0x38c325('0x10ad')]||_0x42cea0['id']&&_0x3c8d8a()[_0x38c325('0x5ba')]('hopperBlack\x20#')+_0x42cea0['id']||_0x38c325('0x71a'))+_0x38c325('0x24be')+'\x20will\x20be\x20deleted.')[_0x38c325('0x217')](_0x38c325('0xf09'))[_0x38c325('0x21de')](_0x1e0355)['ok']('OK')[_0x38c325('0x1e1f')]('CANCEL');_0x926b4c[_0x38c325('0x1cb7')](_0x3eae7b)[_0x38c325('0x173b')](function(){_0x2d9273(_0x42cea0);},function(){const _0x5db6b1=_0x38c325;console[_0x5db6b1('0xe37')](_0x5db6b1('0x468'));});}function _0x5802e7(_0x35a898){const _0x386f99=_0x4052d3;_0x380d54[_0x386f99('0x1f21')]=_0x35a898||{'count':0x0,'rows':[]};}function _0x3fee02(){const _0x556e12=_0x4052d3;_0x380d54[_0x556e12('0xc49')][_0x556e12('0x17f0')]=(_0x380d54['query'][_0x556e12('0x182e')]-0x1)*_0x380d54[_0x556e12('0xc49')][_0x556e12('0x3e')],_0x380d54['promise']=_0x572f5c[_0x556e12('0x1983')][_0x556e12('0x177c')](_0x380d54[_0x556e12('0xc49')],_0x5802e7)[_0x556e12('0x1964')];}function _0x2d9273(_0x2cce46){const _0x4b4694=_0x4052d3;_0x572f5c[_0x4b4694('0x71a')][_0x4b4694('0x15e8')]({'id':_0x2cce46['id']})[_0x4b4694('0x1964')][_0x4b4694('0x173b')](function(){const _0x2f69d3=_0x4b4694;_0x3c8d8a()['remove'](_0x380d54[_0x2f69d3('0x1f21')][_0x2f69d3('0x6aa')],{'id':_0x2cce46['id']}),_0x380d54[_0x2f69d3('0x1f21')][_0x2f69d3('0x1a2f')]-=0x1,!_0x380d54['ivrCampaignHopperBlacks'][_0x2f69d3('0x6aa')][_0x2f69d3('0x543')]&&_0x3fee02(),_0x4d9a6e[_0x2f69d3('0xdfe')]({'title':_0x2f69d3('0x1277'),'msg':_0x2cce46[_0x2f69d3('0x10ad')]?_0x2cce46[_0x2f69d3('0x10ad')]+_0x2f69d3('0x25d2'):''});})['catch'](function(_0x1ef4b3){const _0x523b7c=_0x4b4694;if(_0x1ef4b3[_0x523b7c('0x1e07')]&&_0x1ef4b3[_0x523b7c('0x1e07')][_0x523b7c('0x1d4a')]&&_0x1ef4b3[_0x523b7c('0x1e07')][_0x523b7c('0x1d4a')][_0x523b7c('0x543')]){_0x380d54[_0x523b7c('0x1d4a')]=_0x1ef4b3[_0x523b7c('0x1e07')][_0x523b7c('0x1d4a')]||[{'message':_0x1ef4b3['toString'](),'type':_0x523b7c('0xb2a')}];for(let _0x284ef9=0x0;_0x284ef9<_0x1ef4b3[_0x523b7c('0x1e07')][_0x523b7c('0x1d4a')][_0x523b7c('0x543')];_0x284ef9++){_0x4d9a6e['error']({'title':_0x1ef4b3[_0x523b7c('0x1e07')]['errors'][_0x284ef9][_0x523b7c('0x1810')],'msg':_0x1ef4b3[_0x523b7c('0x1e07')]['errors'][_0x284ef9][_0x523b7c('0x67f')]});}}else _0x4d9a6e[_0x523b7c('0x15aa')]({'title':_0x1ef4b3['status']?_0x523b7c('0x137')+_0x1ef4b3['status']+_0x523b7c('0x160c')+_0x1ef4b3[_0x523b7c('0x2696')]:'SYSTEM:GETcampaign','msg':_0x1ef4b3[_0x523b7c('0x1e07')]?JSON[_0x523b7c('0x100b')](_0x1ef4b3[_0x523b7c('0x1e07')]['message']):_0x1ef4b3['message']||_0x1ef4b3[_0x523b7c('0x1b75')]()});});}function _0x1f61af(){const _0x571cdc=_0x4052d3,_0x1b5db7=angular[_0x571cdc('0x2e3')](_0x380d54[_0x571cdc('0x3f4')]);return _0x380d54[_0x571cdc('0x3f4')]=[],_0x1b5db7;}function _0x5f6e66(_0x4b26e6){const _0x5c3f7f=_0x4052d3,_0x2ece52=_0x926b4c[_0x5c3f7f('0x1d02')]()[_0x5c3f7f('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?')[_0x5c3f7f('0xf8b')](''+_0x380d54['selectedIvrCampaignHopperBlacks']['length']+_0x5c3f7f('0xcb4')+_0x5c3f7f('0xd23'))['ariaLabel'](_0x5c3f7f('0x7f8'))[_0x5c3f7f('0x21de')](_0x4b26e6)['ok']('OK')[_0x5c3f7f('0x1e1f')]('CANCEL');_0x926b4c[_0x5c3f7f('0x1cb7')](_0x2ece52)[_0x5c3f7f('0x173b')](function(){const _0x2ab9f8=_0x5c3f7f;_0x380d54['selectedIvrCampaignHopperBlacks'][_0x2ab9f8('0xa6a')](function(_0xd3d245){_0x2d9273(_0xd3d245);}),_0x380d54[_0x2ab9f8('0x3f4')]=[];});}let _0x407e62=!![],_0x3a0383=0x1;_0x34076f[_0x4052d3('0x1bdb')](_0x4052d3('0x5b8'),function(_0x303d7f,_0x4b52ac){const _0x37a1e3=_0x4052d3;_0x407e62?_0x49c518(function(){_0x407e62=![];}):(!_0x4b52ac&&(_0x3a0383=_0x380d54['query'][_0x37a1e3('0x182e')]),_0x303d7f!==_0x4b52ac&&(_0x380d54[_0x37a1e3('0xc49')]['page']=0x1),!_0x303d7f&&(_0x380d54[_0x37a1e3('0xc49')]['page']=_0x3a0383),_0x3fee02());});}const _0x38fa66=_0x4ed7d6;_0x134e93['$inject']=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q','$translate',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x134e93(_0x464b91,_0x292f41,_0x269709,_0x512081,_0x1884df,_0x326d6a,_0x5d8f43,_0x52d356,_0x3bed96,_0x173ca5,_0x412e06){const _0x1984be=_0x566993,_0x1cf015=this;_0x1cf015['currentUser']=_0x412e06[_0x1984be('0x14d4')](),_0x1cf015['contacts']={},_0x1cf015['ivrCampaign']={},_0x1cf015[_0x1984be('0x107a')]={'count':0x0,'rows':[]},_0x1cf015['selectedIvrCampaignHopperFinals']=[],_0x1cf015[_0x1984be('0x1dc1')],_0x1cf015[_0x1984be('0xc49')]={'fields':'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','sort':_0x1984be('0x9a8'),'limit':0xa,'page':0x1},_0x1cf015['init']=_0x150244,_0x1cf015['deleteConfirm']=_0x37de09,_0x1cf015[_0x1984be('0xdfe')]=_0x570f28,_0x1cf015[_0x1984be('0xd34')]=_0x741385,_0x1cf015[_0x1984be('0x24de')]=_0x3c0c5f,_0x1cf015['deleteIvrCampaignHopperFinal']=_0xbdf75b,_0x1cf015['deleteSelectedIvrCampaignHopperFinals']=_0x541f0d,_0x1cf015['moveIvrCampaignHopperFinal']=_0x17d479,_0x1cf015['moveContactsIvrCampaignHopperFinal']=_0x441e69,_0x1cf015['countContactsIvrCampaignHopperFinal']=_0x131191,_0x1cf015[_0x1984be('0x22cd')]=_0xf48b04,_0x1cf015['moveSelectedIvrCampaignHopperFinals']=_0x1ef947;function _0x150244(_0x3e3d5e,_0x422881){const _0x431abc=_0x1984be;_0x1cf015[_0x431abc('0x1d04')]=_0x3e3d5e,_0x1cf015[_0x431abc('0x1dc1')]=typeof _0x422881!=='undefined'?_0x422881:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1cf015['query'][_0x431abc('0x1659')]=_0x1cf015[_0x431abc('0x1d04')]['id'],_0x1cf015[_0x431abc('0xc49')]['id']=_0x1cf015[_0x431abc('0x1d04')]['id'],_0x741385();}function _0x37de09(_0x5cd0ac,_0x33fe42){const _0x4e1472=_0x1984be,_0x536842=_0x5d8f43[_0x4e1472('0x1d02')]()['title'](_0x4e1472('0x3fd'))[_0x4e1472('0xf8b')](_0x4e1472('0x15b9')+(_0x5cd0ac['name']||_0x5cd0ac['id']&&_0x3c8d8a()['upperFirst'](_0x4e1472('0xe2a'))+_0x5cd0ac['id']||'hopperFinal')+_0x4e1472('0x24be')+_0x4e1472('0xd23'))[_0x4e1472('0x217')](_0x4e1472('0x1638'))[_0x4e1472('0x21de')](_0x33fe42)['ok']('OK')[_0x4e1472('0x1e1f')]('CANCEL');_0x5d8f43[_0x4e1472('0x1cb7')](_0x536842)[_0x4e1472('0x173b')](function(){_0xbdf75b(_0x5cd0ac);},function(){const _0x1d01c2=_0x4e1472;console[_0x1d01c2('0xe37')]('CANCEL');});}function _0x570f28(_0x1a5860){const _0x12ed77=_0x1984be;_0x1cf015[_0x12ed77('0x107a')]=_0x1a5860||{'count':0x0,'rows':[]};}function _0x741385(){const _0x20f93c=_0x1984be;_0x1cf015[_0x20f93c('0xc49')][_0x20f93c('0x17f0')]=(_0x1cf015[_0x20f93c('0xc49')][_0x20f93c('0x182e')]-0x1)*_0x1cf015[_0x20f93c('0xc49')]['limit'],_0x1cf015['promise']=_0x173ca5[_0x20f93c('0x1983')][_0x20f93c('0x1256')](_0x1cf015[_0x20f93c('0xc49')],_0x570f28)[_0x20f93c('0x1964')];}function _0xbdf75b(_0x541057){const _0xd5d3f5=_0x1984be;_0x173ca5[_0xd5d3f5('0x8f6')][_0xd5d3f5('0x15e8')]({'id':_0x541057['id']})[_0xd5d3f5('0x1964')][_0xd5d3f5('0x173b')](function(){const _0x2bbe73=_0xd5d3f5;_0x3c8d8a()['remove'](_0x1cf015['ivrCampaignHopperFinals']['rows'],{'id':_0x541057['id']}),_0x1cf015[_0x2bbe73('0x107a')][_0x2bbe73('0x1a2f')]-=0x1,!_0x1cf015[_0x2bbe73('0x107a')][_0x2bbe73('0x6aa')][_0x2bbe73('0x543')]&&_0x741385(),_0x3bed96[_0x2bbe73('0xdfe')]({'title':_0x2bbe73('0x1ca0'),'msg':_0x541057[_0x2bbe73('0x10ad')]?_0x541057['name']+_0x2bbe73('0x25d2'):''});})[_0xd5d3f5('0x103c')](function(_0x4412a5){const _0x2bb16f=_0xd5d3f5;if(_0x4412a5[_0x2bb16f('0x1e07')]&&_0x4412a5[_0x2bb16f('0x1e07')][_0x2bb16f('0x1d4a')]&&_0x4412a5[_0x2bb16f('0x1e07')]['errors'][_0x2bb16f('0x543')]){_0x1cf015[_0x2bb16f('0x1d4a')]=_0x4412a5[_0x2bb16f('0x1e07')][_0x2bb16f('0x1d4a')]||[{'message':_0x4412a5['toString'](),'type':_0x2bb16f('0xb2a')}];for(let _0x5d176f=0x0;_0x5d176f<_0x4412a5[_0x2bb16f('0x1e07')][_0x2bb16f('0x1d4a')][_0x2bb16f('0x543')];_0x5d176f++){_0x3bed96[_0x2bb16f('0x15aa')]({'title':_0x4412a5['data'][_0x2bb16f('0x1d4a')][_0x5d176f][_0x2bb16f('0x1810')],'msg':_0x4412a5[_0x2bb16f('0x1e07')]['errors'][_0x5d176f]['message']});}}else _0x3bed96['error']({'title':_0x4412a5[_0x2bb16f('0x276f')]?'API:'+_0x4412a5['status']+'\x20-\x20'+_0x4412a5[_0x2bb16f('0x2696')]:_0x2bb16f('0xb2a'),'msg':_0x4412a5[_0x2bb16f('0x1e07')]?JSON[_0x2bb16f('0x100b')](_0x4412a5[_0x2bb16f('0x1e07')]['message']):_0x4412a5[_0x2bb16f('0x67f')]||_0x4412a5[_0x2bb16f('0x1b75')]()});});}function _0x3c0c5f(){const _0x1f0aaa=_0x1984be,_0x3f6212=angular[_0x1f0aaa('0x2e3')](_0x1cf015[_0x1f0aaa('0xd91')]);return _0x1cf015[_0x1f0aaa('0xd91')]=[],_0x3f6212;}function _0x541f0d(_0xe6b174){const _0x472545=_0x1984be,_0x1642d7=_0x5d8f43[_0x472545('0x1d02')]()[_0x472545('0x20d6')](_0x472545('0x2ba'))[_0x472545('0xf8b')](_0x472545('0x15b9')+_0x1cf015[_0x472545('0xd91')][_0x472545('0x543')]+_0x472545('0xcb4')+_0x472545('0xd23'))[_0x472545('0x217')]('delete\x20hopperFinals')[_0x472545('0x21de')](_0xe6b174)['ok']('OK')['cancel'](_0x472545('0x468'));_0x5d8f43[_0x472545('0x1cb7')](_0x1642d7)[_0x472545('0x173b')](function(){const _0x16da83=_0x472545;_0x1cf015[_0x16da83('0xd91')][_0x16da83('0xa6a')](function(_0x1f5c5d){_0xbdf75b(_0x1f5c5d);}),_0x1cf015[_0x16da83('0xd91')]=[];});}function _0x441e69(_0x392232){const _0x4c2a3f=_0x1984be;_0x173ca5[_0x4c2a3f('0x1ccf')][_0x4c2a3f('0xca6')]({'id':_0x1cf015[_0x4c2a3f('0xc49')]['id'],'state':_0x392232})[_0x4c2a3f('0x1964')][_0x4c2a3f('0x173b')](function(_0x3857b3){const _0x454f03=_0x4c2a3f;_0x3c8d8a()[_0x454f03('0x7d5')](_0x3857b3)&&_0x3c8d8a()[_0x454f03('0x7d5')](_0x3857b3[0x0])?_0x3bed96[_0x454f03('0x2787')]({'title':_0x454f03('0x184c'),'msg':'0'}):_0x3bed96[_0x454f03('0x2787')]({'title':_0x454f03('0x184c'),'msg':JSON['stringify'](_0x3857b3[0x0]['affectedRows'])});})[_0x4c2a3f('0x103c')](function(_0x3fa74f){const _0x3a404e=_0x4c2a3f;_0x3bed96[_0x3a404e('0x15aa')]({'title':_0x3fa74f[_0x3a404e('0x276f')]?_0x3a404e('0x137')+_0x3fa74f[_0x3a404e('0x276f')]+'\x20-\x20'+_0x3fa74f[_0x3a404e('0x2696')]:_0x3a404e('0x27a5'),'msg':_0x3fa74f['data']?JSON['stringify'](_0x3fa74f['data'][_0x3a404e('0x67f')]):_0x3fa74f[_0x3a404e('0x67f')]||_0x3fa74f['toString']()});});}function _0x131191(_0x4f03b4){const _0x173403=_0x1984be;_0x173ca5[_0x173403('0x1ccf')]['countContactsIvrCampaignHopperFinal']({'id':_0x4f03b4})[_0x173403('0x1964')][_0x173403('0x173b')](function(_0x3d5a54){const _0x213ffa=_0x173403;_0x3c8d8a()[_0x213ffa('0x9ef')](_0x1cf015[_0x213ffa('0xd53')],_0x3d5a54[0x0]);})[_0x173403('0x103c')](function(_0x90ea47){const _0x5d6077=_0x173403;_0x3bed96[_0x5d6077('0x15aa')]({'title':_0x90ea47[_0x5d6077('0x276f')]?_0x5d6077('0x137')+_0x90ea47['status']+_0x5d6077('0x160c')+_0x90ea47[_0x5d6077('0x2696')]:'SYSTEM:GETcampaign','msg':_0x90ea47['data']?JSON[_0x5d6077('0x100b')](_0x90ea47[_0x5d6077('0x1e07')][_0x5d6077('0x67f')]):_0x90ea47[_0x5d6077('0x67f')]||_0x90ea47['toString']()});});}function _0x1ef947(_0x1f0342){const _0x18599f=_0x1984be,_0x4118fc=_0x5d8f43[_0x18599f('0x1d02')]()[_0x18599f('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?')[_0x18599f('0xf8b')]('\x20Contacts\x20selected'+_0x18599f('0x1b33'))[_0x18599f('0x217')]('Restore\x20Contacts')[_0x18599f('0x21de')](_0x1f0342)['ok']('OK')[_0x18599f('0x1e1f')]('CANCEL');_0x5d8f43['show'](_0x4118fc)[_0x18599f('0x173b')](function(){const _0x4688a7=_0x18599f;_0x1cf015[_0x4688a7('0xd91')][_0x4688a7('0xa6a')](function(_0x44164e){_0x17d479(_0x44164e);}),_0x1cf015[_0x4688a7('0xd91')]=[];});}function _0xf48b04(_0xf904b0,_0x24df36){const _0x12c182=_0x1984be,_0x4fca01=_0x5d8f43[_0x12c182('0x1d02')]()[_0x12c182('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?')[_0x12c182('0xf8b')](''+_0x12c182('0x1f70')+_0x12c182('0x24be')+_0x12c182('0x1b33'))[_0x12c182('0x217')](_0x12c182('0xa2e'))['targetEvent'](_0x24df36)['ok']('OK')[_0x12c182('0x1e1f')](_0x12c182('0x468'));_0x5d8f43['show'](_0x4fca01)[_0x12c182('0x173b')](function(){_0x17d479(_0xf904b0);},function(){const _0x12ed6c=_0x12c182;console[_0x12ed6c('0xe37')](_0x12ed6c('0x468'));});}function _0x547b1f(_0x4abfe5){const _0x417e16=_0x1984be,_0x426726={};return _0x426726[_0x417e16('0xa04')]=_0x4abfe5[_0x417e16('0x1c99')],_0x426726['scheduledat']=_0x156524()()[_0x417e16('0xddc')](_0x417e16('0xf5f')),_0x426726['countbusyretry']=0x0,_0x426726[_0x417e16('0x4ee')]=0x0,_0x426726[_0x417e16('0x2536')]=0x0,_0x426726[_0x417e16('0x913')]=0x0,_0x426726[_0x417e16('0x283f')]=_0x4abfe5[_0x417e16('0x283f')],_0x426726[_0x417e16('0xef2')]=_0x4abfe5[_0x417e16('0xef2')],_0x426726[_0x417e16('0x181c')]=_0x4abfe5[_0x417e16('0x8e5')]?null:_0x4abfe5['UserId'],_0x426726[_0x417e16('0x11c9')]=_0x4abfe5[_0x417e16('0x11c9')],_0x426726['CampaignId']=_0x4abfe5[_0x417e16('0x1659')],_0x426726[_0x417e16('0xb3')]=_0x4abfe5[_0x417e16('0x5f1')]?0x3:0x2,_0x426726[_0x417e16('0x5f1')]=_0x4abfe5['recallme']?!![]:![],_0x426726;}function _0x4e1288(_0x42ead1){const _0x44a0b4=_0x1984be,_0xff83a4={};return _0xff83a4[_0x44a0b4('0x1c99')]=_0x42ead1['calleridnum'],_0xff83a4[_0x44a0b4('0x1163')]=_0x42ead1[_0x44a0b4('0x1163')],_0xff83a4[_0x44a0b4('0x1b55')]=_0x156524()()[_0x44a0b4('0xddc')](_0x44a0b4('0xf5f')),_0xff83a4[_0x44a0b4('0x9a4')]=_0x42ead1[_0x44a0b4('0x9a4')],_0xff83a4['countcongestionretry']=_0x42ead1[_0x44a0b4('0x4ee')],_0xff83a4[_0x44a0b4('0x2536')]=_0x42ead1[_0x44a0b4('0x2536')],_0xff83a4['countglobal']=_0x42ead1[_0x44a0b4('0x913')],_0xff83a4['ContactId']=_0x42ead1['ContactId'],_0xff83a4['ListId']=_0x42ead1['ListId'],_0xff83a4['UserId']=_0x412e06[_0x44a0b4('0x14d4')]()['id'],_0xff83a4['VoiceQueueId']=_0x42ead1[_0x44a0b4('0x11c9')],_0xff83a4[_0x44a0b4('0x1659')]=_0x42ead1['CampaignId'],_0xff83a4[_0x44a0b4('0x1535')]=_0x156524()()[_0x44a0b4('0xddc')](_0x44a0b4('0xf5f')),_0xff83a4[_0x44a0b4('0x547')]=!![],_0xff83a4['state']=0x19,_0xff83a4['statedesc']=_0x44a0b4('0x345'),_0xff83a4[_0x44a0b4('0x1983')]=_0x42ead1[_0x44a0b4('0x1983')],_0xff83a4['campaigntype']=_0x42ead1[_0x44a0b4('0x11c9')]?_0x44a0b4('0x172'):_0x44a0b4('0x334'),_0xff83a4;}function _0x17d479(_0xfa4431){const _0x4a18c2=_0x1984be;_0x173ca5[_0x4a18c2('0x1ccf')][_0x4a18c2('0x911')](_0xfa4431)[_0x4a18c2('0x1964')]['then'](function(_0x2f820c){const _0x40138a=_0x4a18c2;_0x3bed96[_0x40138a('0x2787')]({'title':_0x40138a('0x1a41'),'msg':_0x40138a('0x1de8')+_0x2f820c[_0x40138a('0x283f')]});})['catch'](function(_0x321452){const _0x139965=_0x4a18c2;_0x321452[_0x139965('0x1e07')]==='Not\x20Found'?_0x173ca5['cmHopper'][_0x139965('0x1195')](_0x547b1f(_0xfa4431))[_0x139965('0x1964')][_0x139965('0x173b')](function(_0x33ace8){const _0x10ff33=_0x139965;_0x3bed96['info']({'title':_0x10ff33('0x1105'),'msg':_0x10ff33('0x1de8')+_0x33ace8[_0x10ff33('0x283f')]}),_0x33ace8[_0x10ff33('0x283f')]&&_0x173ca5[_0x10ff33('0x325')]['save'](_0x4e1288(_0xfa4431));})[_0x139965('0x103c')](function(_0x29e0bc){const _0x5d3db2=_0x139965;!_0x3c8d8a()[_0x5d3db2('0x7d5')](_0x29e0bc[_0x5d3db2('0x1e07')])&&_0x29e0bc[_0x5d3db2('0x1e07')][_0x5d3db2('0x67f')]===_0x5d3db2('0x1676')?_0x3bed96['info']({'title':_0x5d3db2('0x1a41'),'msg':'Contact\x20ID\x20'+_0xfa4431[_0x5d3db2('0x283f')]}):_0x3bed96['error']({'title':_0x29e0bc['status']?_0x5d3db2('0x137')+_0x29e0bc[_0x5d3db2('0x276f')]+_0x5d3db2('0x160c')+_0x29e0bc[_0x5d3db2('0x2696')]:_0x5d3db2('0x27a5'),'msg':_0x29e0bc[_0x5d3db2('0x1e07')]?JSON['stringify'](_0x29e0bc[_0x5d3db2('0x1e07')][_0x5d3db2('0x67f')]):_0x29e0bc[_0x5d3db2('0x67f')]||_0x29e0bc[_0x5d3db2('0x1b75')]()});}):_0x3bed96[_0x139965('0x15aa')]({'title':_0x321452['status']?'API:'+_0x321452[_0x139965('0x276f')]+_0x139965('0x160c')+_0x321452[_0x139965('0x2696')]:_0x139965('0x27a5'),'msg':_0x321452[_0x139965('0x1e07')]?JSON[_0x139965('0x100b')](_0x321452[_0x139965('0x1e07')][_0x139965('0x67f')]):_0x321452[_0x139965('0x67f')]||_0x321452[_0x139965('0x1b75')]()});});}let _0x3ec75d=!![],_0x8d075d=0x1;_0x292f41[_0x1984be('0x1bdb')]('vm_dc.query.filter',function(_0x151c4a,_0xa70eed){const _0x488302=_0x1984be;_0x3ec75d?_0x326d6a(function(){_0x3ec75d=![];}):(!_0xa70eed&&(_0x8d075d=_0x1cf015['query'][_0x488302('0x182e')]),_0x151c4a!==_0xa70eed&&(_0x1cf015[_0x488302('0xc49')]['page']=0x1),!_0x151c4a&&(_0x1cf015['query'][_0x488302('0x182e')]=_0x8d075d),_0x741385());});}const _0x14a0fa=_0x134e93;_0x58ebe6[_0x566993('0x17bb')]=['$cookies',_0x566993('0x66f'),'$state','$q',_0x566993('0x638'),'$timeout','$mdDialog',_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x58ebe6(_0x5caaba,_0x179b95,_0x3905f4,_0x43e5ee,_0x5e085a,_0x3482ac,_0x40905b,_0x36a800,_0x22abd7,_0x292527,_0x3c967c){const _0x559443=_0x566993,_0x3c6d2e=this;_0x3c6d2e['currentUser']=_0x3c967c[_0x559443('0x14d4')](),_0x3c6d2e[_0x559443('0x1d04')]={},_0x3c6d2e[_0x559443('0x228a')]={'count':0x0,'rows':[]},_0x3c6d2e[_0x559443('0xb0c')]=[],_0x3c6d2e[_0x559443('0x1dc1')],_0x3c6d2e['query']={'fields':_0x559443('0x20f3'),'sort':_0x559443('0x9a8'),'limit':0xa,'page':0x1},_0x3c6d2e[_0x559443('0xb9c')]=_0x574dd3,_0x3c6d2e[_0x559443('0x2051')]=_0x4bd724,_0x3c6d2e[_0x559443('0xdfe')]=_0x2c1eed,_0x3c6d2e[_0x559443('0xca1')]=_0x49218e,_0x3c6d2e[_0x559443('0x250')]=_0x4ee50e,_0x3c6d2e[_0x559443('0x566')]=_0x5b1cef,_0x3c6d2e[_0x559443('0x1c05')]=_0x511d7d;function _0x574dd3(_0x33f8fc,_0x410056){const _0x1ae2aa=_0x559443;_0x3c6d2e[_0x1ae2aa('0x1d04')]=_0x33f8fc,_0x3c6d2e[_0x1ae2aa('0x1dc1')]=typeof _0x410056!==_0x1ae2aa('0x6e5')?_0x410056:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3c6d2e[_0x1ae2aa('0xc49')][_0x1ae2aa('0x1659')]=_0x3c6d2e[_0x1ae2aa('0x1d04')]['id'],_0x3c6d2e[_0x1ae2aa('0xc49')]['id']=_0x3c6d2e[_0x1ae2aa('0x1d04')]['id'],_0x49218e();}function _0x4bd724(_0x2f52c4,_0x69dbac){const _0xb4d688=_0x559443,_0x39d843=_0x40905b[_0xb4d688('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?')['htmlContent'](_0xb4d688('0x15b9')+(_0x2f52c4[_0xb4d688('0x10ad')]||_0x2f52c4['id']&&_0x3c8d8a()['upperFirst'](_0xb4d688('0xb57'))+_0x2f52c4['id']||_0xb4d688('0x214f'))+''+_0xb4d688('0xd23'))['ariaLabel'](_0xb4d688('0xb2d'))[_0xb4d688('0x21de')](_0x69dbac)['ok']('OK')[_0xb4d688('0x1e1f')]('CANCEL');_0x40905b[_0xb4d688('0x1cb7')](_0x39d843)[_0xb4d688('0x173b')](function(){_0x5b1cef(_0x2f52c4);},function(){const _0x31e2ab=_0xb4d688;console['log'](_0x31e2ab('0x468'));});}function _0x2c1eed(_0x23ad3d){const _0x2b0eaa=_0x559443;_0x3c6d2e[_0x2b0eaa('0x228a')]=_0x23ad3d||{'count':0x0,'rows':[]};}function _0x49218e(){const _0x329fc6=_0x559443;_0x3c6d2e[_0x329fc6('0xc49')][_0x329fc6('0x17f0')]=(_0x3c6d2e[_0x329fc6('0xc49')][_0x329fc6('0x182e')]-0x1)*_0x3c6d2e['query'][_0x329fc6('0x3e')],_0x3c6d2e[_0x329fc6('0x2219')]=_0x292527[_0x329fc6('0x1983')]['getHopperHistories'](_0x3c6d2e[_0x329fc6('0xc49')],_0x2c1eed)['$promise'];}function _0x5b1cef(_0x18bbd9){const _0x56bb82=_0x559443;_0x292527[_0x56bb82('0x214f')][_0x56bb82('0x15e8')]({'id':_0x18bbd9['id']})[_0x56bb82('0x1964')][_0x56bb82('0x173b')](function(){const _0x4ea62a=_0x56bb82;_0x3c8d8a()[_0x4ea62a('0x1a8b')](_0x3c6d2e['ivrCampaignHopperHistories'][_0x4ea62a('0x6aa')],{'id':_0x18bbd9['id']}),_0x3c6d2e[_0x4ea62a('0x228a')][_0x4ea62a('0x1a2f')]-=0x1,!_0x3c6d2e[_0x4ea62a('0x228a')][_0x4ea62a('0x6aa')]['length']&&_0x49218e(),_0x22abd7['success']({'title':_0x4ea62a('0x149d'),'msg':_0x18bbd9[_0x4ea62a('0x10ad')]?_0x18bbd9[_0x4ea62a('0x10ad')]+_0x4ea62a('0x25d2'):''});})[_0x56bb82('0x103c')](function(_0x1e3e15){const _0x1acf88=_0x56bb82;if(_0x1e3e15[_0x1acf88('0x1e07')]&&_0x1e3e15[_0x1acf88('0x1e07')][_0x1acf88('0x1d4a')]&&_0x1e3e15[_0x1acf88('0x1e07')][_0x1acf88('0x1d4a')]['length']){_0x3c6d2e['errors']=_0x1e3e15[_0x1acf88('0x1e07')][_0x1acf88('0x1d4a')]||[{'message':_0x1e3e15['toString'](),'type':_0x1acf88('0xb2a')}];for(let _0x277e1a=0x0;_0x277e1a<_0x1e3e15[_0x1acf88('0x1e07')][_0x1acf88('0x1d4a')]['length'];_0x277e1a++){_0x22abd7['error']({'title':_0x1e3e15['data']['errors'][_0x277e1a][_0x1acf88('0x1810')],'msg':_0x1e3e15['data']['errors'][_0x277e1a]['message']});}}else _0x22abd7[_0x1acf88('0x15aa')]({'title':_0x1e3e15[_0x1acf88('0x276f')]?_0x1acf88('0x137')+_0x1e3e15[_0x1acf88('0x276f')]+_0x1acf88('0x160c')+_0x1e3e15['statusText']:_0x1acf88('0xb2a'),'msg':_0x1e3e15[_0x1acf88('0x1e07')]?JSON[_0x1acf88('0x100b')](_0x1e3e15[_0x1acf88('0x1e07')][_0x1acf88('0x67f')]):_0x1e3e15['message']||_0x1e3e15[_0x1acf88('0x1b75')]()});});}function _0x4ee50e(){const _0x1c7568=_0x559443,_0x4b3c4c=angular[_0x1c7568('0x2e3')](_0x3c6d2e[_0x1c7568('0xb0c')]);return _0x3c6d2e[_0x1c7568('0xb0c')]=[],_0x4b3c4c;}function _0x511d7d(_0x1877be){const _0x3cbd61=_0x559443,_0x2da384=_0x40905b[_0x3cbd61('0x1d02')]()[_0x3cbd61('0x20d6')](_0x3cbd61('0x415'))[_0x3cbd61('0xf8b')](_0x3cbd61('0x15b9')+_0x3c6d2e[_0x3cbd61('0xb0c')][_0x3cbd61('0x543')]+'\x20selected'+_0x3cbd61('0xd23'))['ariaLabel'](_0x3cbd61('0xc6c'))[_0x3cbd61('0x21de')](_0x1877be)['ok']('OK')[_0x3cbd61('0x1e1f')](_0x3cbd61('0x468'));_0x40905b['show'](_0x2da384)[_0x3cbd61('0x173b')](function(){const _0x4e0d3e=_0x3cbd61;_0x3c6d2e[_0x4e0d3e('0xb0c')][_0x4e0d3e('0xa6a')](function(_0x4243e3){_0x5b1cef(_0x4243e3);}),_0x3c6d2e[_0x4e0d3e('0xb0c')]=[];});}let _0x133552=!![],_0x1c849a=0x1;_0x179b95['$watch'](_0x559443('0x5b8'),function(_0x4bd768,_0x4f00e9){const _0x3c3215=_0x559443;_0x133552?_0x3482ac(function(){_0x133552=![];}):(!_0x4f00e9&&(_0x1c849a=_0x3c6d2e[_0x3c3215('0xc49')][_0x3c3215('0x182e')]),_0x4bd768!==_0x4f00e9&&(_0x3c6d2e[_0x3c3215('0xc49')][_0x3c3215('0x182e')]=0x1),!_0x4bd768&&(_0x3c6d2e[_0x3c3215('0xc49')][_0x3c3215('0x182e')]=_0x1c849a),_0x49218e());});}const _0x5807b8=_0x58ebe6;_0x529024[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x529024(_0x4c4385,_0x5cbc10,_0x542e4b,_0x37921b,_0x511d31,_0x1d0af3,_0x347909,_0x1381c9,_0x44a0ef,_0x1b9c9f,_0x51bbb1){const _0x132ac1=_0x566993,_0x2fe489=this;_0x2fe489['currentUser']=_0x51bbb1[_0x132ac1('0x14d4')](),_0x2fe489['ivrCampaign']={},_0x2fe489[_0x132ac1('0x1893')]={'count':0x0,'rows':[]},_0x2fe489[_0x132ac1('0xebf')]=[],_0x2fe489['crudPermissions'],_0x2fe489[_0x132ac1('0xc49')]={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority','sort':'-updatedAt','limit':0xa,'page':0x1},_0x2fe489[_0x132ac1('0x149e')]=_0x3c8d8a()[_0x132ac1('0x128')]([{'option':_0x132ac1('0x1091'),'value':_0x132ac1('0x164c')},{'option':_0x132ac1('0x4c9'),'value':_0x132ac1('0x62d')},{'option':'Medium','value':_0x132ac1('0xe83')},{'option':_0x132ac1('0x25a5'),'value':'\x271\x27'},{'option':_0x132ac1('0x13af'),'value':'\x270\x27'}],function(_0x12da8a){const _0xff28c1=_0x132ac1;return _0x3c8d8a()['replace'](_0x12da8a[_0xff28c1('0xa7b')],new RegExp('\x27','g'),'');}),_0x2fe489[_0x132ac1('0xb9c')]=_0x3f05ee,_0x2fe489['deleteConfirm']=_0x21d650,_0x2fe489[_0x132ac1('0xdfe')]=_0x4fe833,_0x2fe489[_0x132ac1('0x16bf')]=_0x352d2b,_0x2fe489[_0x132ac1('0x1527')]=_0x36fb11,_0x2fe489['exportSelectedIvrCampaignHoppers']=_0x59e830,_0x2fe489['deleteIvrCampaignHopper']=_0x11bfcc,_0x2fe489[_0x132ac1('0x275a')]=_0x381ec6,_0x51bbb1[_0x132ac1('0x1b4e')](_0x132ac1('0x79b'))?_0x1b9c9f[_0x132ac1('0x166f')][_0x132ac1('0x1d97')]({'fields':'id,name','role':_0x132ac1('0x7b0'),'sort':'name','nolimit':'true'})[_0x132ac1('0x1964')][_0x132ac1('0x173b')](function(_0x44d6b3){const _0x284949=_0x132ac1;_0x2fe489[_0x284949('0x11fa')]=_0x44d6b3[_0x284949('0x6aa')]||[];})['catch'](function(_0x51c8c4){const _0x3ca563=_0x132ac1;_0x44a0ef[_0x3ca563('0x15aa')]({'title':_0x51c8c4['status']?'API:'+_0x51c8c4[_0x3ca563('0x276f')]+_0x3ca563('0x160c')+_0x51c8c4[_0x3ca563('0x2696')]:_0x3ca563('0x152b'),'msg':_0x51c8c4['data']?JSON[_0x3ca563('0x100b')](_0x51c8c4[_0x3ca563('0x1e07')]):_0x51c8c4[_0x3ca563('0x1b75')]()});}):_0x1b9c9f[_0x132ac1('0x166f')]['get']({'fields':_0x132ac1('0xd52'),'role':_0x132ac1('0x7b0'),'sort':'name','nolimit':_0x132ac1('0x799')})[_0x132ac1('0x1964')][_0x132ac1('0x173b')](function(_0x3f1a8b){const _0x284813=_0x132ac1;_0x2fe489[_0x284813('0x11fa')]=_0x3f1a8b[_0x284813('0x6aa')]||[];})[_0x132ac1('0x173b')](function(){const _0x4fa19a=_0x132ac1;return _0x1b9c9f[_0x4fa19a('0x170e')][_0x4fa19a('0x1d97')]({'userProfileId':_0x2fe489[_0x4fa19a('0x155f')][_0x4fa19a('0x1946')],'sectionId':0xca})[_0x4fa19a('0x1964')];})[_0x132ac1('0x173b')](function(_0x518495){const _0x5745c4=_0x132ac1,_0x13e0f2=_0x518495&&_0x518495[_0x5745c4('0x6aa')]?_0x518495[_0x5745c4('0x6aa')][0x0]:null;if(!_0x13e0f2)_0x2fe489[_0x5745c4('0x11fa')]=[];else{if(!_0x13e0f2[_0x5745c4('0x273e')])return _0x1b9c9f[_0x5745c4('0xda9')][_0x5745c4('0x1d97')]({'sectionId':_0x13e0f2['id']})[_0x5745c4('0x1964')][_0x5745c4('0x173b')](function(_0x39a68f){const _0x1f29cf=_0x5745c4,_0x2153cb=_0x3c8d8a()[_0x1f29cf('0x8a2')](_0x39a68f[_0x1f29cf('0x6aa')],function(_0x45ca2c){const _0x198902=_0x1f29cf;return _0x3c8d8a()[_0x198902('0x18ab')](_0x2fe489['agents'],{'id':_0x45ca2c[_0x198902('0x1ce0')]});});_0x2fe489[_0x1f29cf('0x11fa')][_0x1f29cf('0xa6a')](function(_0x4a1896){const _0x4ee4ab=_0x1f29cf;!_0x3c8d8a()[_0x4ee4ab('0x1ec')](_0x2153cb,['id',_0x4a1896['id']])&&(_0x4a1896[_0x4ee4ab('0x268e')]=![]),_0x2153cb['push'](_0x4a1896);}),_0x2fe489[_0x1f29cf('0x11fa')]=_0x2153cb;});}})[_0x132ac1('0x103c')](function(_0x289e22){const _0x9ad192=_0x132ac1;_0x44a0ef[_0x9ad192('0x15aa')]({'title':_0x289e22[_0x9ad192('0x276f')]?'API:'+_0x289e22[_0x9ad192('0x276f')]+_0x9ad192('0x160c')+_0x289e22[_0x9ad192('0x2696')]:_0x9ad192('0xceb'),'msg':_0x289e22[_0x9ad192('0x1e07')]?JSON[_0x9ad192('0x100b')](_0x289e22['data']):_0x289e22[_0x9ad192('0x1b75')]()});});function _0x3f05ee(_0x295344,_0x15e42d){const _0x277363=_0x132ac1;_0x2fe489[_0x277363('0x1d04')]=_0x295344,_0x2fe489[_0x277363('0x1dc1')]=typeof _0x15e42d!==_0x277363('0x6e5')?_0x15e42d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2fe489[_0x277363('0xc49')][_0x277363('0x1659')]=_0x2fe489[_0x277363('0x1d04')]['id'],_0x2fe489[_0x277363('0xc49')]['id']=_0x2fe489[_0x277363('0x1d04')]['id'],_0x352d2b();}function _0x21d650(_0x4051e1,_0x3bfce3){const _0x5ccb57=_0x132ac1,_0x4d75fc=_0x347909[_0x5ccb57('0x1d02')]()[_0x5ccb57('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?')['htmlContent'](_0x5ccb57('0x15b9')+(_0x4051e1[_0x5ccb57('0x10ad')]||_0x4051e1['id']&&_0x3c8d8a()['upperFirst'](_0x5ccb57('0x175b'))+_0x4051e1['id']||_0x5ccb57('0x10f4'))+_0x5ccb57('0x24be')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20hopper')[_0x5ccb57('0x21de')](_0x3bfce3)['ok']('OK')[_0x5ccb57('0x1e1f')]('CANCEL');_0x347909['show'](_0x4d75fc)[_0x5ccb57('0x173b')](function(){_0x11bfcc(_0x4051e1);},function(){const _0x4b1cb0=_0x5ccb57;console[_0x4b1cb0('0xe37')](_0x4b1cb0('0x468'));});}function _0x4fe833(_0x2d07cb){_0x2fe489['ivrCampaignHoppers']=_0x2d07cb||{'count':0x0,'rows':[]};}function _0x352d2b(){const _0x8429da=_0x132ac1;_0x2fe489['query'][_0x8429da('0x17f0')]=(_0x2fe489[_0x8429da('0xc49')]['page']-0x1)*_0x2fe489[_0x8429da('0xc49')][_0x8429da('0x3e')],_0x2fe489['promise']=_0x1b9c9f[_0x8429da('0x1983')][_0x8429da('0x25af')](_0x2fe489[_0x8429da('0xc49')],_0x4fe833)[_0x8429da('0x1964')];}function _0x36fb11(_0x166895,_0x530a17){const _0x12240c=_0x132ac1;_0x347909[_0x12240c('0x1cb7')]({'controller':_0x12240c('0x686'),'controllerAs':'vm','templateUrl':_0x2f719e,'parent':angular[_0x12240c('0xb6d')](_0x1381c9['body']),'targetEvent':_0x166895,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2fe489[_0x12240c('0x1d04')],'hopper':_0x530a17,'hoppers':_0x2fe489[_0x12240c('0x1893')]['rows'],'license':null,'setting':null,'crudPermissions':_0x2fe489[_0x12240c('0x1dc1')]}});}function _0x11bfcc(_0xf93c91){const _0xc55b4b=_0x132ac1;_0x1b9c9f[_0xc55b4b('0x1f4f')][_0xc55b4b('0x15e8')]({'id':_0xf93c91['id']})[_0xc55b4b('0x1964')][_0xc55b4b('0x173b')](function(){const _0x15a388=_0xc55b4b;_0x3c8d8a()[_0x15a388('0x1a8b')](_0x2fe489['ivrCampaignHoppers'][_0x15a388('0x6aa')],{'id':_0xf93c91['id']}),_0x2fe489[_0x15a388('0x1893')][_0x15a388('0x1a2f')]-=0x1,!_0x2fe489[_0x15a388('0x1893')][_0x15a388('0x6aa')][_0x15a388('0x543')]&&_0x352d2b(),_0x44a0ef['success']({'title':_0x15a388('0xa6e'),'msg':_0xf93c91[_0x15a388('0x10ad')]?_0xf93c91[_0x15a388('0x10ad')]+_0x15a388('0x25d2'):''});})['catch'](function(_0x27e013){const _0x214194=_0xc55b4b;if(_0x27e013['data']&&_0x27e013[_0x214194('0x1e07')]['errors']&&_0x27e013['data'][_0x214194('0x1d4a')]['length']){_0x2fe489['errors']=_0x27e013[_0x214194('0x1e07')][_0x214194('0x1d4a')]||[{'message':_0x27e013[_0x214194('0x1b75')](),'type':_0x214194('0xb2a')}];for(let _0x15fe9c=0x0;_0x15fe9c<_0x27e013[_0x214194('0x1e07')][_0x214194('0x1d4a')][_0x214194('0x543')];_0x15fe9c++){_0x44a0ef['error']({'title':_0x27e013['data'][_0x214194('0x1d4a')][_0x15fe9c]['type'],'msg':_0x27e013[_0x214194('0x1e07')][_0x214194('0x1d4a')][_0x15fe9c][_0x214194('0x67f')]});}}else _0x44a0ef[_0x214194('0x15aa')]({'title':_0x27e013[_0x214194('0x276f')]?_0x214194('0x137')+_0x27e013[_0x214194('0x276f')]+'\x20-\x20'+_0x27e013[_0x214194('0x2696')]:_0x214194('0xb2a'),'msg':_0x27e013[_0x214194('0x1e07')]?JSON['stringify'](_0x27e013[_0x214194('0x1e07')][_0x214194('0x67f')]):_0x27e013['message']||_0x27e013[_0x214194('0x1b75')]()});});}function _0x59e830(){const _0x5db3e2=_0x132ac1,_0x40e0aa=angular[_0x5db3e2('0x2e3')](_0x2fe489[_0x5db3e2('0xebf')]);return _0x2fe489[_0x5db3e2('0xebf')]=[],_0x40e0aa;}function _0x381ec6(_0x2dae1f){const _0x28cc34=_0x132ac1,_0x2b4703=_0x347909[_0x28cc34('0x1d02')]()[_0x28cc34('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?')['htmlContent'](_0x28cc34('0x15b9')+_0x2fe489[_0x28cc34('0xebf')][_0x28cc34('0x543')]+_0x28cc34('0xcb4')+_0x28cc34('0xd23'))[_0x28cc34('0x217')]('delete\x20hoppers')[_0x28cc34('0x21de')](_0x2dae1f)['ok']('OK')['cancel'](_0x28cc34('0x468'));_0x347909[_0x28cc34('0x1cb7')](_0x2b4703)[_0x28cc34('0x173b')](function(){const _0x4c14d2=_0x28cc34;_0x2fe489[_0x4c14d2('0xebf')][_0x4c14d2('0xa6a')](function(_0x4e596b){_0x11bfcc(_0x4e596b);}),_0x2fe489[_0x4c14d2('0xebf')]=[];});}let _0xa3951b=!![],_0x5a562e=0x1;_0x5cbc10[_0x132ac1('0x1bdb')](_0x132ac1('0x5b8'),function(_0x4605f4,_0x492989){const _0x5be97b=_0x132ac1;_0xa3951b?_0x1d0af3(function(){_0xa3951b=![];}):(!_0x492989&&(_0x5a562e=_0x2fe489[_0x5be97b('0xc49')]['page']),_0x4605f4!==_0x492989&&(_0x2fe489[_0x5be97b('0xc49')]['page']=0x1),!_0x4605f4&&(_0x2fe489[_0x5be97b('0xc49')][_0x5be97b('0x182e')]=_0x5a562e),_0x352d2b());});}const _0x1a9106=_0x529024;_0x13f721['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate','toasty',_0x566993('0x23dc'),_0x566993('0x10f4'),'api',_0x566993('0x1600'),'license',_0x566993('0x251'),'crudPermissions'];function _0x13f721(_0x330e17,_0x2ba25b,_0x2babe3,_0x212b60,_0x508ad9,_0x2e7658,_0x115759,_0x3d1a84,_0x2e9dbe,_0x5b9d5d,_0x8b15ee,_0x3d2e6b,_0x5a65f2,_0x33fb84){const _0x11d445=_0x566993,_0x2b910f=this;_0x2b910f[_0x11d445('0x155f')]=_0x8b15ee[_0x11d445('0x14d4')](),_0x2b910f[_0x11d445('0x1d4a')]=[],_0x2b910f[_0x11d445('0x251')]=_0x5a65f2,_0x2b910f['license']=_0x3d2e6b,_0x2b910f[_0x11d445('0x1dc1')]=_0x33fb84,_0x2b910f[_0x11d445('0xb0')]={},_0x2b910f[_0x11d445('0x644')]=_0x2b910f['setting']&&_0x2b910f[_0x11d445('0x251')][_0x11d445('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2b910f['title']=_0x11d445('0x2467'),_0x2b910f['hopper']=angular[_0x11d445('0x2e3')](_0x2e9dbe),_0x2b910f[_0x11d445('0x23dc')]=_0x3d1a84,_0x2b910f[_0x11d445('0x1627')]=![];!_0x2b910f['hopper']&&(_0x2b910f[_0x11d445('0x10f4')]={},_0x2b910f[_0x11d445('0x20d6')]=_0x11d445('0x914'),_0x2b910f[_0x11d445('0x1627')]=!![]);_0x2ba25b[_0x11d445('0x197a')]['id']&&(_0x2b910f[_0x11d445('0x10f4')][_0x11d445('0x1659')]=_0x2ba25b[_0x11d445('0x197a')]['id']);_0x2b910f['addNewHopper']=_0x226684,_0x2b910f[_0x11d445('0x26fe')]=_0x37a1ea,_0x2b910f[_0x11d445('0x26ef')]=_0x4c4b59,_0x2b910f['getDateFromString']=_0x2fd96d,_0x2b910f[_0x11d445('0x18e2')]=_0x4c7fd9,_0x8b15ee[_0x11d445('0x1b4e')]('admin')?_0x5b9d5d[_0x11d445('0x166f')][_0x11d445('0x1d97')]({'fields':_0x11d445('0xd52'),'role':_0x11d445('0x7b0'),'sort':'name','nolimit':_0x11d445('0x799')})[_0x11d445('0x1964')][_0x11d445('0x173b')](function(_0x335bc8){const _0x428c6b=_0x11d445;_0x2b910f[_0x428c6b('0x11fa')]=_0x335bc8[_0x428c6b('0x6aa')]||[];})[_0x11d445('0x103c')](function(_0x184a37){const _0xd4b25=_0x11d445;_0x115759[_0xd4b25('0x15aa')]({'title':_0x184a37[_0xd4b25('0x276f')]?_0xd4b25('0x137')+_0x184a37[_0xd4b25('0x276f')]+'\x20-\x20'+_0x184a37[_0xd4b25('0x2696')]:_0xd4b25('0x152b'),'msg':_0x184a37['data']?JSON[_0xd4b25('0x100b')](_0x184a37['data']):_0x184a37[_0xd4b25('0x1b75')]()});}):_0x5b9d5d['user']['get']({'fields':'id,name','role':_0x11d445('0x7b0'),'sort':_0x11d445('0x10ad'),'nolimit':_0x11d445('0x799')})[_0x11d445('0x1964')]['then'](function(_0x56a766){const _0x13e200=_0x11d445;_0x2b910f['agents']=_0x56a766[_0x13e200('0x6aa')]||[];})['then'](function(){const _0x5afb18=_0x11d445;return _0x5b9d5d[_0x5afb18('0x170e')][_0x5afb18('0x1d97')]({'userProfileId':_0x2b910f[_0x5afb18('0x155f')][_0x5afb18('0x1946')],'sectionId':0xca})[_0x5afb18('0x1964')];})[_0x11d445('0x173b')](function(_0x2b85e2){const _0xec1ce3=_0x11d445,_0x37f18e=_0x2b85e2&&_0x2b85e2['rows']?_0x2b85e2[_0xec1ce3('0x6aa')][0x0]:null;if(!_0x37f18e)_0x2b910f[_0xec1ce3('0x11fa')]=[];else{if(!_0x37f18e[_0xec1ce3('0x273e')])return _0x5b9d5d[_0xec1ce3('0xda9')][_0xec1ce3('0x1d97')]({'sectionId':_0x37f18e['id']})[_0xec1ce3('0x1964')][_0xec1ce3('0x173b')](function(_0x406e6c){const _0x4f702d=_0xec1ce3,_0x30f16b=_0x3c8d8a()[_0x4f702d('0x8a2')](_0x406e6c['rows'],function(_0x5cf0c9){const _0x2cbf27=_0x4f702d;return _0x3c8d8a()[_0x2cbf27('0x18ab')](_0x2b910f[_0x2cbf27('0x11fa')],{'id':_0x5cf0c9['resourceId']});});_0x2b910f['agents'][_0x4f702d('0xa6a')](function(_0x2430a4){const _0x205190=_0x4f702d;!_0x3c8d8a()[_0x205190('0x1ec')](_0x30f16b,['id',_0x2430a4['id']])&&(_0x2430a4[_0x205190('0x268e')]=![]),_0x30f16b[_0x205190('0x18bb')](_0x2430a4);}),_0x2b910f[_0x4f702d('0x11fa')]=_0x30f16b;});}})[_0x11d445('0x103c')](function(_0x1f4250){const _0x4686f0=_0x11d445;_0x115759['error']({'title':_0x1f4250['status']?_0x4686f0('0x137')+_0x1f4250['status']+_0x4686f0('0x160c')+_0x1f4250['statusText']:_0x4686f0('0xceb'),'msg':_0x1f4250[_0x4686f0('0x1e07')]?JSON[_0x4686f0('0x100b')](_0x1f4250[_0x4686f0('0x1e07')]):_0x1f4250[_0x4686f0('0x1b75')]()});});function _0x226684(){const _0x145e2d=_0x11d445;_0x2b910f[_0x145e2d('0x1d4a')]=[],_0x5b9d5d[_0x145e2d('0x1f4f')][_0x145e2d('0x1195')](_0x2b910f['hopper'])['$promise'][_0x145e2d('0x173b')](function(_0x31839d){const _0x561c2b=_0x145e2d;_0x2b910f[_0x561c2b('0x23dc')]['unshift'](_0x31839d['toJSON']()),_0x115759[_0x561c2b('0xdfe')]({'title':_0x561c2b('0x17cf'),'msg':_0x2b910f['hopper'][_0x561c2b('0x10ad')]?_0x2b910f[_0x561c2b('0x10f4')][_0x561c2b('0x10ad')]+'\x20has\x20been\x20created!':''}),_0x4c7fd9(_0x31839d);})['catch'](function(_0x8bbb0c){const _0x2d43ce=_0x145e2d;if(_0x8bbb0c[_0x2d43ce('0x1e07')]&&_0x8bbb0c[_0x2d43ce('0x1e07')]['errors']&&_0x8bbb0c[_0x2d43ce('0x1e07')]['errors'][_0x2d43ce('0x543')]){_0x2b910f[_0x2d43ce('0x1d4a')]=_0x8bbb0c[_0x2d43ce('0x1e07')][_0x2d43ce('0x1d4a')]||[{'message':_0x8bbb0c['toString'](),'type':_0x2d43ce('0x7ad')}];for(let _0x40e316=0x0;_0x40e316<_0x8bbb0c[_0x2d43ce('0x1e07')][_0x2d43ce('0x1d4a')][_0x2d43ce('0x543')];_0x40e316+=0x1){_0x115759[_0x2d43ce('0x15aa')]({'title':_0x8bbb0c[_0x2d43ce('0x1e07')]['errors'][_0x40e316]['type'],'msg':_0x8bbb0c['data'][_0x2d43ce('0x1d4a')][_0x40e316]['message']});}}else _0x115759[_0x2d43ce('0x15aa')]({'title':_0x8bbb0c[_0x2d43ce('0x276f')]?'API:'+_0x8bbb0c[_0x2d43ce('0x276f')]+_0x2d43ce('0x160c')+_0x8bbb0c[_0x2d43ce('0x2696')]:_0x2d43ce('0x7ad'),'msg':_0x8bbb0c[_0x2d43ce('0x1e07')]?JSON[_0x2d43ce('0x100b')](_0x8bbb0c['data']['message']):_0x8bbb0c[_0x2d43ce('0x1b75')]()});});}function _0x37a1ea(){const _0x45a746=_0x11d445;_0x2b910f['errors']=[];let _0x302713,_0x570bf2,_0x2ba585,_0x508f41;_0x2b910f['hopper']['UserId']=_0x2b910f[_0x45a746('0x10f4')][_0x45a746('0x5f1')]?_0x2b910f[_0x45a746('0x10f4')]['UserId']:null,_0x2b910f['hopper'][_0x45a746('0xabe')]=_0x8b15ee[_0x45a746('0x14d4')]()['id'],_0x5b9d5d[_0x45a746('0x1f4f')][_0x45a746('0x1d97')]({'id':_0x2b910f[_0x45a746('0x10f4')]['id'],'attributes':['scheduledat']})[_0x45a746('0x1964')][_0x45a746('0x173b')](function(_0x5bacb3){const _0x231114=_0x45a746;_0x3c8d8a()[_0x231114('0x7d5')](_0x5bacb3)||_0x3c8d8a()[_0x231114('0x1a56')](_0x5bacb3)?_0x302713=_0x156524()()[_0x231114('0xddc')](_0x231114('0xf5f')):_0x302713=_0x5bacb3[_0x231114('0x1b55')];})[_0x45a746('0xf25')](function(){const _0x684ef9=_0x45a746;_0x5b9d5d[_0x684ef9('0x1f4f')][_0x684ef9('0x1842')]({'id':_0x2b910f[_0x684ef9('0x10f4')]['id']},_0x3c8d8a()[_0x684ef9('0x2797')](_0x2b910f[_0x684ef9('0x10f4')],[_0x684ef9('0x11c9'),_0x684ef9('0x1659'),_0x684ef9('0x283f'),_0x684ef9('0xef2')]))[_0x684ef9('0x1964')]['then'](function(_0x480fdb){const _0x33568f=_0x684ef9;_0x570bf2=_0x480fdb,_0x5b9d5d[_0x33568f('0x1197')][_0x33568f('0x1d97')]({'id':_0x570bf2[_0x33568f('0x283f')],'attributes':['firstName',_0x33568f('0x1806')]})[_0x33568f('0x1964')][_0x33568f('0x173b')](function(_0x58f604){const _0x4a65af=_0x33568f;!_0x3c8d8a()[_0x4a65af('0x7d5')](_0x58f604)&&!_0x3c8d8a()[_0x4a65af('0x7d5')](_0x58f604[_0x4a65af('0x1e50')])&&(_0x2ba585=_0x58f604[_0x4a65af('0x1e50')],!_0x3c8d8a()[_0x4a65af('0x7d5')](_0x58f604[_0x4a65af('0x1806')])&&(_0x2ba585+='\x20'+_0x58f604[_0x4a65af('0x1806')]));})['catch'](function(){_0x2ba585=undefined;})[_0x33568f('0xf25')](function(){const _0x164f25=_0x33568f;_0x5b9d5d[_0x164f25('0x1983')][_0x164f25('0x1d97')]({'raw':![],'id':_0x570bf2[_0x164f25('0x1659')],'attributes':['name']})[_0x164f25('0x1964')][_0x164f25('0x173b')](function(_0x43d5fb){const _0x5cfd51=_0x164f25;_0x508f41=_0x43d5fb[_0x5cfd51('0x10ad')];})['catch'](function(){_0x508f41=undefined;})['finally'](function(){const _0x479551=_0x164f25;_0x5b9d5d[_0x479551('0x325')][_0x479551('0x1195')]({'state':0x18,'statedesc':'Edited','scheduledat':_0x302713,'calleridnum':_0x570bf2[_0x479551('0xa04')],'calleridname':_0x2ba585,'campaigntype':_0x570bf2[_0x479551('0x11c9')]?'queue':_0x479551('0x334'),'campaign':_0x508f41,'editedat':_0x156524()()['format'](_0x479551('0xf5f')),'edited':!![],'ListId':_0x570bf2[_0x479551('0xef2')],'UserId':_0x8b15ee['getCurrentUser']()['id'],'VoiceQueueId':_0x570bf2[_0x479551('0x11c9')],'CampaignId':_0x570bf2[_0x479551('0x1659')],'ContactId':_0x570bf2[_0x479551('0x283f')],'callback':_0x570bf2['callback'],'callbackuniqueid':_0x570bf2[_0x479551('0x25c7')],'countbusyretry':_0x570bf2['countbusyretry'],'countcongestionretry':_0x570bf2[_0x479551('0x4ee')],'countglobal':_0x570bf2[_0x479551('0x913')],'countnoanswerretry':_0x570bf2[_0x479551('0x2536')],'followuptime':_0x570bf2[_0x479551('0x1b76')],'recallme':_0x570bf2[_0x479551('0x5f1')]});});});const _0x1c9ab1=_0x3c8d8a()[_0x33568f('0x18ab')](_0x2b910f[_0x33568f('0x23dc')],{'id':_0x480fdb['id']});_0x1c9ab1&&_0x3c8d8a()[_0x33568f('0x9ef')](_0x1c9ab1,_0x3c8d8a()[_0x33568f('0x2114')](_0x480fdb[_0x33568f('0xf1f')](),_0x3c8d8a()[_0x33568f('0x1d3e')](_0x1c9ab1))),_0x115759['success']({'title':_0x33568f('0xa68'),'msg':_0x2b910f[_0x33568f('0x10f4')][_0x33568f('0x10ad')]?_0x2b910f[_0x33568f('0x10f4')][_0x33568f('0x10ad')]+_0x33568f('0x2788'):''}),_0x4c7fd9(_0x480fdb);})[_0x684ef9('0x103c')](function(_0x2ff853){const _0x3f6c92=_0x684ef9;if(_0x2ff853[_0x3f6c92('0x1e07')]&&_0x2ff853[_0x3f6c92('0x1e07')][_0x3f6c92('0x1d4a')]&&_0x2ff853[_0x3f6c92('0x1e07')][_0x3f6c92('0x1d4a')][_0x3f6c92('0x543')]){_0x2b910f[_0x3f6c92('0x1d4a')]=_0x2ff853[_0x3f6c92('0x1e07')][_0x3f6c92('0x1d4a')]||[{'message':_0x2ff853['toString'](),'type':_0x3f6c92('0x2124')}];for(let _0x359ad4=0x0;_0x359ad4<_0x2ff853[_0x3f6c92('0x1e07')][_0x3f6c92('0x1d4a')][_0x3f6c92('0x543')];_0x359ad4++){_0x115759[_0x3f6c92('0x15aa')]({'title':_0x2ff853[_0x3f6c92('0x1e07')][_0x3f6c92('0x1d4a')][_0x359ad4][_0x3f6c92('0x1810')],'msg':_0x2ff853[_0x3f6c92('0x1e07')][_0x3f6c92('0x1d4a')][_0x359ad4]['message']});}}else _0x115759[_0x3f6c92('0x15aa')]({'title':_0x2ff853['status']?_0x3f6c92('0x137')+_0x2ff853[_0x3f6c92('0x276f')]+'\x20-\x20'+_0x2ff853[_0x3f6c92('0x2696')]:_0x3f6c92('0x2124'),'msg':_0x2ff853[_0x3f6c92('0x1e07')]?JSON[_0x3f6c92('0x100b')](_0x2ff853[_0x3f6c92('0x1e07')][_0x3f6c92('0x67f')]):_0x2ff853['toString']()});});});}function _0x4c4b59(_0x35fa7c){const _0x53697c=_0x11d445;_0x2b910f[_0x53697c('0x1d4a')]=[];const _0x4f6ef8=_0x212b60['confirm']()[_0x53697c('0x20d6')]('Are\x20you\x20sure?')['content'](_0x53697c('0xa42'))[_0x53697c('0x217')]('Delete\x20Hopper')['ok'](_0x53697c('0x2373'))['cancel'](_0x53697c('0x1d4e'))[_0x53697c('0x21de')](_0x35fa7c);_0x212b60[_0x53697c('0x1cb7')](_0x4f6ef8)[_0x53697c('0x173b')](function(){const _0x468f0e=_0x53697c;_0x5b9d5d[_0x468f0e('0x1f4f')]['delete']({'id':_0x2b910f[_0x468f0e('0x10f4')]['id']})[_0x468f0e('0x1964')][_0x468f0e('0x173b')](function(){const _0x147999=_0x468f0e;_0x3c8d8a()['remove'](_0x2b910f[_0x147999('0x23dc')],{'id':_0x2b910f['hopper']['id']}),_0x115759[_0x147999('0xdfe')]({'title':_0x147999('0x508'),'msg':(_0x2b910f[_0x147999('0x10f4')][_0x147999('0x10ad')]||_0x147999('0x10f4'))+_0x147999('0x25d2')}),_0x4c7fd9(_0x2b910f[_0x147999('0x10f4')]);})['catch'](function(_0x540d58){const _0xaade28=_0x468f0e;if(_0x540d58[_0xaade28('0x1e07')]&&_0x540d58[_0xaade28('0x1e07')][_0xaade28('0x1d4a')]&&_0x540d58['data'][_0xaade28('0x1d4a')][_0xaade28('0x543')]){_0x2b910f['errors']=_0x540d58[_0xaade28('0x1e07')][_0xaade28('0x1d4a')]||[{'message':_0x540d58['toString'](),'type':_0xaade28('0x305')}];for(let _0x523aa5=0x0;_0x523aa5<_0x540d58['data']['errors'][_0xaade28('0x543')];_0x523aa5++){_0x115759[_0xaade28('0x15aa')]({'title':_0x540d58[_0xaade28('0x1e07')][_0xaade28('0x1d4a')][_0x523aa5][_0xaade28('0x1810')],'msg':_0x540d58[_0xaade28('0x1e07')]['errors'][_0x523aa5][_0xaade28('0x67f')]});}}else _0x115759[_0xaade28('0x15aa')]({'title':_0x540d58[_0xaade28('0x276f')]?_0xaade28('0x137')+_0x540d58[_0xaade28('0x276f')]+_0xaade28('0x160c')+_0x540d58['statusText']:_0xaade28('0x305'),'msg':_0x540d58[_0xaade28('0x1e07')]?JSON[_0xaade28('0x100b')](_0x540d58[_0xaade28('0x1e07')][_0xaade28('0x67f')]):_0x540d58['message']||_0x540d58[_0xaade28('0x1b75')]()});});},function(){});}function _0x2fd96d(_0x5eabb8){return _0x5eabb8===null?undefined:new Date(_0x5eabb8);}function _0x4c7fd9(_0x384360){const _0x2b53c9=_0x11d445;_0x212b60[_0x2b53c9('0x1cf4')](_0x384360);}}const _0x5b5960=_0x13f721;_0x427d7c[_0x566993('0x17bb')]=[_0x566993('0xbd4'),'toasty'];function _0x427d7c(_0x8cce85,_0x4904ae){const _0x4a0763=this;_0x4a0763['ivrCampaign']={},_0x4a0763['init']=_0x6dcc39;function _0x6dcc39(_0xf41da4){const _0x3b4325=a0_0xde5e;_0x4a0763[_0x3b4325('0x1d04')]=_0xf41da4,_0x8cce85[_0x3b4325('0x1f4f')][_0x3b4325('0x1d97')]({'limit':0x0,'CampaignId':_0xf41da4['id']})[_0x3b4325('0x1964')][_0x3b4325('0x173b')](function(_0x5916a9){const _0x511b5a=_0x3b4325;return _0x4a0763[_0x511b5a('0xa1f')]=_0x5916a9[_0x511b5a('0x1a2f')]||0x0,_0x8cce85[_0x511b5a('0x1f4f')][_0x511b5a('0x1d97')]({'limit':0x0,'CampaignId':_0xf41da4['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x511b5a('0x1964')];})[_0x3b4325('0x173b')](function(_0x49af85){const _0x3ac5fd=_0x3b4325;return _0x4a0763['fresh']=_0x49af85[_0x3ac5fd('0x1a2f')]||0x0,_0x8cce85[_0x3ac5fd('0x1ccf')][_0x3ac5fd('0x1d97')]({'limit':0x0,'CampaignId':_0xf41da4['id']})[_0x3ac5fd('0x1964')];})[_0x3b4325('0x173b')](function(_0x1fc7de){const _0x415e24=_0x3b4325;_0x4a0763[_0x415e24('0x1636')]=_0x1fc7de['count']||0x0;})['catch'](function(_0x38d236){const _0x5936f1=_0x3b4325;_0x4904ae[_0x5936f1('0x15aa')]({'title':_0x38d236[_0x5936f1('0x276f')]?_0x5936f1('0x137')+_0x38d236[_0x5936f1('0x276f')]+_0x5936f1('0x160c')+_0x38d236[_0x5936f1('0x2696')]:'SYSTEM:GETTAGS','msg':_0x38d236[_0x5936f1('0x1e07')]?JSON[_0x5936f1('0x100b')](_0x38d236[_0x5936f1('0x1e07')]):_0x38d236[_0x5936f1('0x1b75')]()});});}}const _0x3cd498=_0x427d7c;_0xc87ef7[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),'ivrCampaign',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0xc87ef7(_0x11bdc2,_0x28e3c5,_0x5ea76b,_0x150bbd,_0x2febb1,_0x535a9d,_0x3e32c3,_0xa84b59,_0x422885){const _0x47da0a=_0x566993,_0x2100cf=this;_0x2100cf[_0x47da0a('0x155f')]=_0xa84b59['getCurrentUser'](),_0x2100cf['ivrCampaign']=_0x2febb1,_0x2100cf[_0x47da0a('0x1dc1')]=_0x422885,_0x2100cf['apiRoute']=_0x47da0a('0x1983'),_0x2100cf[_0x47da0a('0x75d')]=_0x47da0a('0xe91'),_0x2100cf['addApi']=_0x47da0a('0x5c6'),_0x2100cf[_0x47da0a('0x234f')]='removeLists',_0x2100cf[_0x47da0a('0x1b1f')]=[],_0x2100cf[_0x47da0a('0x203e')]=[],_0x2100cf[_0x47da0a('0x5f8')]=[],_0x2100cf['startingAllowedItems']=[],_0x2100cf[_0x47da0a('0x15c9')]=[],_0x2100cf[_0x47da0a('0x277e')]=![],_0x2100cf[_0x47da0a('0x283e')]=![],_0x2100cf[_0x47da0a('0x52e')]={'readOnly':!_0x2100cf['crudPermissions'][_0x47da0a('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x47da0a('0x10ad'),'line1':_0x47da0a('0x10ad'),'line2':'','line3':'','labelAll':_0x535a9d[_0x47da0a('0x1467')](_0x47da0a('0x266b')),'labelSelected':_0x535a9d[_0x47da0a('0x1467')](_0x47da0a('0x1a90')),'transferCallback':function(){const _0x35d27e=_0x47da0a,_0x4a0a4a=_0x3c8d8a()[_0x35d27e('0x226b')](_0x2100cf[_0x35d27e('0x15c9')],_0x2100cf[_0x35d27e('0x5f8')],'id');_0x2100cf[_0x35d27e('0x277e')]=_0x3c8d8a()[_0x35d27e('0x1a56')](_0x4a0a4a)?![]:!![];}},_0x2100cf[_0x47da0a('0x2535')]=_0x2d7788,_0x2100cf[_0x47da0a('0x2331')]=_0x579563,_0x2100cf['closeDialog']=_0x547c31;function _0x2d7788(){const _0x292999=_0x47da0a;return _0xa84b59[_0x292999('0x1b4e')](_0x292999('0x79b'))?_0x4110ea()[_0x292999('0x103c')](function(_0x521c2e){const _0x72ec71=_0x292999;_0x5ea76b[_0x72ec71('0x15aa')]({'title':_0x521c2e[_0x72ec71('0x276f')]?_0x72ec71('0x137')+_0x521c2e[_0x72ec71('0x276f')]+_0x72ec71('0x160c')+_0x521c2e[_0x72ec71('0x2696')]:_0x72ec71('0x2054'),'msg':_0x521c2e[_0x72ec71('0x276f')]?JSON['stringify'](_0x521c2e[_0x72ec71('0x1e07')]):_0x521c2e['toString']()});}):_0x257a73()[_0x292999('0x173b')](function(_0x30f744){const _0x30b000=_0x292999;return _0x2100cf[_0x30b000('0x17c9')]=_0x30f744,_0x4110ea();})[_0x292999('0x103c')](function(_0x7c45bb){const _0x4182bf=_0x292999;_0x5ea76b[_0x4182bf('0x15aa')]({'title':_0x7c45bb[_0x4182bf('0x276f')]?'API:'+_0x7c45bb['status']+_0x4182bf('0x160c')+_0x7c45bb[_0x4182bf('0x2696')]:_0x4182bf('0x2054'),'msg':_0x7c45bb[_0x4182bf('0x276f')]?JSON[_0x4182bf('0x100b')](_0x7c45bb[_0x4182bf('0x1e07')]):_0x7c45bb['toString']()});});}function _0x257a73(){return _0x28e3c5(function(_0x1569f5,_0x344962){const _0x2aaec3=a0_0xde5e;_0x150bbd[_0x2aaec3('0x170e')]['get']({'userProfileId':_0x2100cf[_0x2aaec3('0x155f')]['userProfileId'],'name':'Lists'})[_0x2aaec3('0x1964')][_0x2aaec3('0x173b')](function(_0x4295d6){const _0x3f2f19=_0x2aaec3,_0x1fcb8d=_0x4295d6&&_0x4295d6[_0x3f2f19('0x6aa')]?_0x4295d6[_0x3f2f19('0x6aa')][0x0]:null;_0x1569f5(_0x1fcb8d);})[_0x2aaec3('0x103c')](function(_0x1411e6){_0x344962(_0x1411e6);});});}function _0x4110ea(){return _0x28e3c5(function(_0x3ac6a0,_0x3c511a){const _0x3d646d=a0_0xde5e;return _0x457337()['then'](function(_0x28caec){const _0x5dba44=a0_0xde5e;return _0x2100cf[_0x5dba44('0x1b1f')]=_0x28caec[_0x5dba44('0x6aa')]?_0x28caec[_0x5dba44('0x6aa')]:[],_0xa84b59[_0x5dba44('0x1b4e')](_0x5dba44('0x79b'))?_0x28caec:_0x2100cf['section']?_0x2100cf[_0x5dba44('0x17c9')][_0x5dba44('0x273e')]?_0x28caec:_0x915ca7():null;})[_0x3d646d('0x173b')](function(_0x2b7294){const _0x3f20f9=_0x3d646d,_0x34825b=_0x2b7294&&_0x2b7294[_0x3f20f9('0x6aa')]?_0x2b7294['rows']:[];return _0x2100cf[_0x3f20f9('0x203e')]=_0x3c8d8a()[_0x3f20f9('0x8a2')](_0x34825b,function(_0x1e1328){const _0x5929e6=_0x3f20f9;return _0x3c8d8a()['find'](_0x2100cf[_0x5929e6('0x1b1f')],{'id':_0xa84b59[_0x5929e6('0x1b4e')](_0x5929e6('0x79b'))||_0x2100cf[_0x5929e6('0x17c9')][_0x5929e6('0x273e')]?_0x1e1328['id']:_0x1e1328[_0x5929e6('0x1ce0')]});}),_0x2100cf['startingAllowedItems']=angular[_0x3f20f9('0x2e3')](_0x2100cf[_0x3f20f9('0x203e')]),_0x2100cf[_0x3f20f9('0x1b1f')]['forEach'](function(_0x3fbdd1){const _0x31e668=_0x3f20f9,_0x57f1fa=_0x3c8d8a()['find'](_0x2100cf['allowedItems'],{'id':_0x3fbdd1['id']});_0x2100cf[_0x31e668('0x155f')][_0x31e668('0x14a')]===_0x31e668('0x79b')?_0x3fbdd1['isValid']=!![]:_0x3fbdd1[_0x31e668('0xf02')]=typeof _0x57f1fa!=='undefined'?!![]:![];}),_0x4e293c();})['then'](function(_0xcbcc06){const _0x4a1404=_0x3d646d,_0x31bad8=_0xcbcc06&&_0xcbcc06[_0x4a1404('0x6aa')]?_0xcbcc06['rows']:[];_0x2100cf[_0x4a1404('0x5f8')]=_0x3c8d8a()[_0x4a1404('0x8a2')](_0x31bad8,function(_0x5e8486){const _0x323040=_0x4a1404;return _0x3c8d8a()[_0x323040('0x18ab')](_0x2100cf[_0x323040('0x1b1f')],{'id':_0x5e8486['id']});}),_0x2100cf['startingSelectedItems']=angular[_0x4a1404('0x2e3')](_0x2100cf['selectedItems']),_0x2100cf[_0x4a1404('0x52e')][_0x4a1404('0x5f8')]=_0x2100cf[_0x4a1404('0x5f8')],_0x2100cf[_0x4a1404('0x52e')][_0x4a1404('0x1b1f')]=_0x3c8d8a()[_0x4a1404('0x1bd3')](_0x2100cf[_0x4a1404('0x203e')],_0x2100cf[_0x4a1404('0x52e')][_0x4a1404('0x5f8')],'id'),_0x3ac6a0();})[_0x3d646d('0x103c')](function(_0x250233){_0x3c511a(_0x250233);});});}function _0x915ca7(){return _0x28e3c5(function(_0x373267,_0x5a523a){const _0x117a02=a0_0xde5e;return _0x150bbd[_0x117a02('0xda9')]['get']({'sectionId':_0x2100cf[_0x117a02('0x17c9')]['id'],'nolimit':!![]})[_0x117a02('0x1964')]['then'](function(_0x4b2f94){_0x373267(_0x4b2f94);})[_0x117a02('0x103c')](function(_0x529278){_0x5a523a(_0x529278);});});}function _0x4e293c(){return _0x28e3c5(function(_0x34e1ee,_0x5830b5){const _0x29b71e=a0_0xde5e,_0x4acc05=_0x150bbd[_0x2100cf[_0x29b71e('0x1cc1')]];return _0x4acc05[_0x2100cf['getApi']]({'id':_0x2100cf[_0x29b71e('0x1d04')]['id'],'fields':_0x29b71e('0xd52'),'nolimit':!![]})[_0x29b71e('0x1964')][_0x29b71e('0x173b')](function(_0x54ac11){_0x34e1ee(_0x54ac11);})[_0x29b71e('0x103c')](function(_0x550b87){_0x5830b5(_0x550b87);});});}function _0x457337(){return _0x28e3c5(function(_0x52be4f,_0x149772){const _0x4d267b=a0_0xde5e;return _0x150bbd[_0x4d267b('0xbb3')]['get']({'fields':_0x4d267b('0xd52'),'nolimit':!![]})['$promise'][_0x4d267b('0x173b')](function(_0x2414dc){_0x52be4f(_0x2414dc);})[_0x4d267b('0x103c')](function(_0x3e1c88){_0x149772(_0x3e1c88);});});}function _0x1a6726(_0x2f4424){return _0x28e3c5(function(_0x49e193,_0x3b0211){const _0xc6d09d=a0_0xde5e;if(_0x3c8d8a()['isEmpty'](_0x2f4424))_0x49e193();else{const _0x3dd9ac=_0x150bbd[_0x2100cf[_0xc6d09d('0x1cc1')]];_0x3dd9ac[_0x2100cf[_0xc6d09d('0xd1f')]]({'id':_0x2100cf[_0xc6d09d('0x1d04')]['id'],'ids':_0x3c8d8a()[_0xc6d09d('0x8a2')](_0x2f4424,'id')})[_0xc6d09d('0x1964')]['then'](function(){_0x49e193();})[_0xc6d09d('0x103c')](function(_0x353d0e){_0x3b0211(_0x353d0e);});}});}function _0x39e3af(_0x4e9eec){return _0x28e3c5(function(_0x55084f,_0x56a9c1){const _0xd376c5=a0_0xde5e;if(_0x3c8d8a()[_0xd376c5('0x1a56')](_0x4e9eec))_0x55084f();else{const _0x8eb507=_0x150bbd[_0x2100cf[_0xd376c5('0x1cc1')]];_0x8eb507[_0x2100cf[_0xd376c5('0x234f')]]({'id':_0x2100cf['ivrCampaign']['id'],'ids':_0x3c8d8a()['map'](_0x4e9eec,'id')})[_0xd376c5('0x1964')]['then'](function(){_0x55084f();})[_0xd376c5('0x103c')](function(_0x1e222f){_0x56a9c1(_0x1e222f);});}});}function _0x579563(){const _0x378a92=_0x47da0a;_0x2100cf[_0x378a92('0x283e')]=!![];const _0x9d8de8=_0x3c8d8a()['differenceBy'](_0x2100cf[_0x378a92('0x15c9')],_0x2100cf[_0x378a92('0x5f8')],'id'),_0x20ad7d=_0x3c8d8a()[_0x378a92('0x1bd3')](_0x2100cf[_0x378a92('0x5f8')],_0x2100cf[_0x378a92('0x15c9')],'id');return _0x39e3af(_0x9d8de8)['then'](function(){return _0x1a6726(_0x20ad7d);})[_0x378a92('0x173b')](function(){const _0x499b20=_0x378a92;_0x2100cf[_0x499b20('0x277e')]=![],_0x2100cf[_0x499b20('0x1493')]=angular[_0x499b20('0x2e3')](_0x2100cf[_0x499b20('0x203e')]),_0x2100cf['startingSelectedItems']=angular[_0x499b20('0x2e3')](_0x2100cf['selectedItems']),_0x5ea76b[_0x499b20('0xdfe')]({'title':_0x499b20('0x23db'),'msg':_0x499b20('0x10ae')});})[_0x378a92('0x103c')](function(_0x5bfda1){const _0x53b55f=_0x378a92;_0x5ea76b['error']({'title':_0x5bfda1[_0x53b55f('0x276f')]?_0x53b55f('0x137')+_0x5bfda1[_0x53b55f('0x276f')]+_0x53b55f('0x160c')+_0x5bfda1[_0x53b55f('0x2696')]:_0x53b55f('0x1f48'),'msg':_0x5bfda1['status']?JSON['stringify'](_0x5bfda1[_0x53b55f('0x1e07')]):_0x5bfda1['toString']()});})[_0x378a92('0xf25')](function(){_0x2100cf['loading']=![];});}function _0x547c31(){const _0x2d248f=_0x47da0a;_0x11bdc2[_0x2d248f('0x1cf4')]();}}const _0x20ba19=_0xc87ef7;_0x76992e['$inject']=[_0x566993('0x66f'),_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xbd4'),'ivrCampaign',_0x566993('0x92'),_0x566993('0x65d'),'$q'];function _0x76992e(_0x3e2b8a,_0x25a84b,_0x30da83,_0xe4385f,_0x26c2e1,_0xe0fe88,_0x409e66,_0x414703){const _0x1f4ed3=_0x566993,_0x413573=this;_0x413573[_0x1f4ed3('0x556')]=[],_0x413573[_0x1f4ed3('0x1b1f')]=_0xe0fe88?_0xe0fe88:[],_0x413573[_0x1f4ed3('0x283e')]=![],_0x413573[_0x1f4ed3('0x18e2')]=_0x8e196c,_0x413573['exists']=_0x41509c,_0x413573['toggle']=_0x3f033a,_0x413573[_0x1f4ed3('0x16d0')]=_0x44203c,_0x413573[_0x1f4ed3('0x2060')]=_0x17c844,_0x413573['toggleAll']=_0x33c132,_0x413573[_0x1f4ed3('0x151f')]=_0x1f9b8e;function _0x3f033a(_0x4e7447,_0x201035){const _0x4d38be=_0x1f4ed3,_0x3b50f1=_0x201035['indexOf'](_0x4e7447);_0x3b50f1>-0x1?_0x201035[_0x4d38be('0x553')](_0x3b50f1,0x1):_0x201035[_0x4d38be('0x18bb')](_0x4e7447);}function _0x41509c(_0xad0b64,_0x5287e2){const _0x41d17a=_0x1f4ed3;return _0x5287e2[_0x41d17a('0x2087')](_0xad0b64)>-0x1;}function _0x44203c(){const _0x37baa7=_0x1f4ed3;return _0x413573[_0x37baa7('0x556')]['length']!==0x0&&_0x413573['selected'][_0x37baa7('0x543')]!==_0x413573[_0x37baa7('0x1b1f')][_0x37baa7('0x543')];}function _0x17c844(){const _0x4c1e69=_0x1f4ed3;return _0x413573[_0x4c1e69('0x556')]['length']===_0x413573[_0x4c1e69('0x1b1f')]['length'];}function _0x33c132(){const _0x3924ce=_0x1f4ed3;if(_0x413573['selected'][_0x3924ce('0x543')]===_0x413573[_0x3924ce('0x1b1f')][_0x3924ce('0x543')])_0x413573[_0x3924ce('0x556')]=[];else(_0x413573[_0x3924ce('0x556')][_0x3924ce('0x543')]===0x0||_0x413573['selected'][_0x3924ce('0x543')]>0x0)&&(_0x413573[_0x3924ce('0x556')]=_0x413573[_0x3924ce('0x1b1f')][_0x3924ce('0x2456')](0x0));}function _0x8e196c(){const _0xb69e49=_0x1f4ed3;_0x25a84b[_0xb69e49('0x1cf4')]();}function _0x1f9b8e(){_0x413573['loading']=!![];const _0x17cb76=_0x216125();_0x17cb76['finally'](function(){const _0x44735=a0_0xde5e;_0x413573[_0x44735('0x283e')]=![],_0x8e196c();});}function _0x216125(){return _0x414703(function(_0x1ea521){const _0x279a3b=a0_0xde5e;for(let _0x508649=0x0;_0x508649<_0x413573[_0x279a3b('0x556')][_0x279a3b('0x543')];_0x508649+=0x1){_0x1f17f0(_0x26c2e1['id'],_0x413573[_0x279a3b('0x556')][_0x508649]);}_0xbeebcd(_0x1ea521);});}function _0x1f17f0(_0x32bc30,_0x317664){const _0x5ef760=_0x317664['id'];_0x409e66['enqueue'](function(){const _0x282df0=a0_0xde5e;return _0xe4385f[_0x282df0('0x1983')][_0x282df0('0x6dc')]({'id':_0x32bc30,'ids':_0x5ef760})[_0x282df0('0x1964')][_0x282df0('0x173b')](function(){const _0x15da13=_0x282df0;return _0xe4385f['campaign'][_0x15da13('0x5c6')]({'id':_0x32bc30,'ids':_0x5ef760,'dialCheckDuplicateType':_0x15da13('0x1633')})[_0x15da13('0x1964')];})['then'](function(){const _0x17797e=_0x282df0;_0x30da83[_0x17797e('0xdfe')]({'title':_0x17797e('0x3f8'),'msg':_0x17797e('0x2206')+_0x317664[_0x17797e('0x10ad')]+_0x17797e('0x2086')});})[_0x282df0('0x103c')](function(_0x5979f7){const _0x3b8494=_0x282df0;_0x30da83[_0x3b8494('0x15aa')]({'title':_0x5979f7[_0x3b8494('0x276f')]?_0x3b8494('0x137')+_0x5979f7[_0x3b8494('0x276f')]+_0x3b8494('0x160c')+_0x5979f7['statusText']:_0x3b8494('0x1d70'),'msg':_0x5979f7['status']?JSON['stringify'](_0x5979f7['data']):_0x5979f7[_0x3b8494('0x1b75')]()});});});}function _0xbeebcd(_0x76fdbf){const _0x1cc26b=_0x1f4ed3;_0x409e66[_0x1cc26b('0x8fa')](function(){return _0x76fdbf();});}}const _0x5154d9=_0x76992e,_0x46bd7d=_0x21a6a1['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone.html',_0xc2e5e6=_0x21a6a1['p']+_0x566993('0x2cc'),_0x27c77d=_0x21a6a1['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html',_0x26e91f=_0x21a6a1['p']+_0x566993('0xca4');_0xc97ee['$inject']=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),'setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1d04'),_0x566993('0x170e')];function _0xc97ee(_0x5f095f,_0x178790,_0xf78f6b,_0xd5f886,_0x51d1fc,_0x35e2d9,_0x479db0,_0x229f85,_0x43da72,_0x38c0c4,_0x3c7f0f,_0x557f33){const _0x570fdc=_0x566993,_0x73fe14=this;_0x73fe14['currentUser']=_0x38c0c4[_0x570fdc('0x14d4')](),_0x73fe14['license']=_0x35e2d9,_0x73fe14[_0x570fdc('0x251')]=_0x479db0,_0x73fe14[_0x570fdc('0x644')]=_0x73fe14[_0x570fdc('0x251')][_0x570fdc('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x73fe14[_0x570fdc('0x614')]=_0x178790[_0x570fdc('0x375')]()+_0x570fdc('0x122b')+_0x178790[_0x570fdc('0x4d1')](),_0x73fe14[_0x570fdc('0x1d04')]=_0x3c7f0f||_0x5f095f[_0x570fdc('0x197a')]['ivrCampaign']||{},_0x73fe14['userProfileSection']=_0x557f33&&_0x557f33['count']==0x1?_0x557f33[_0x570fdc('0x6aa')][0x0]:null,_0x73fe14[_0x570fdc('0x1dc1')]=_0x38c0c4['parseCrudPermissions'](_0x73fe14[_0x570fdc('0x170e')]?_0x73fe14[_0x570fdc('0x170e')][_0x570fdc('0x1dc1')]:null),_0x73fe14[_0x570fdc('0xb0')]={},_0x73fe14[_0x570fdc('0xd5f')]=_0x5f095f[_0x570fdc('0x197a')]['tab']||0x0,_0x73fe14[_0x570fdc('0x28a')]=_0x20fada,_0x73fe14[_0x570fdc('0xc51')]=_0x2484b9,_0x73fe14[_0x570fdc('0x1ae6')]=_0x120b7a,_0x73fe14[_0x570fdc('0x11e8')]=_0x5aeb9a,_0x73fe14[_0x570fdc('0xa47')]=_0x215457,_0x73fe14['alert']=_0x43da72[_0x570fdc('0x2787')],_0x73fe14[_0x570fdc('0xae7')]=_0x1d297d,_0x73fe14['saveIvrCampaign']=_0x384132,_0x38c0c4[_0x570fdc('0x1b4e')]('admin')?_0x229f85[_0x570fdc('0x15b7')][_0x570fdc('0x1d97')]({'fields':_0x570fdc('0xd52'),'sort':_0x570fdc('0x10ad')})['$promise'][_0x570fdc('0x173b')](function(_0x4f0e8d){_0x73fe14['trunks']=_0x4f0e8d['rows']||[];})['catch'](function(_0x852222){const _0x4db036=_0x570fdc;_0x43da72[_0x4db036('0x15aa')]({'title':_0x852222[_0x4db036('0x276f')]?_0x4db036('0x137')+_0x852222[_0x4db036('0x276f')]+_0x4db036('0x160c')+_0x852222['statusText']:_0x4db036('0xbd8'),'msg':_0x852222[_0x4db036('0x1e07')]?JSON['stringify'](_0x852222[_0x4db036('0x1e07')]):_0x852222[_0x4db036('0x1b75')]()});}):_0x229f85['trunk'][_0x570fdc('0x1d97')]({'fields':_0x570fdc('0xd52'),'sort':'name'})['$promise'][_0x570fdc('0x173b')](function(_0x4eebc6){const _0x348cce=_0x570fdc;_0x73fe14[_0x348cce('0x673')]=_0x4eebc6['rows']||[];})[_0x570fdc('0x173b')](function(){const _0x4e4a9d=_0x570fdc;return _0x229f85[_0x4e4a9d('0x170e')][_0x4e4a9d('0x1d97')]({'userProfileId':_0x73fe14[_0x4e4a9d('0x155f')][_0x4e4a9d('0x1946')],'sectionId':0x3f3})['$promise'];})['then'](function(_0x53b0d4){const _0x4d0cb3=_0x570fdc,_0x3ca22b=_0x53b0d4&&_0x53b0d4[_0x4d0cb3('0x6aa')]?_0x53b0d4['rows'][0x0]:null;if(!_0x3ca22b)_0x73fe14[_0x4d0cb3('0x673')]=[];else{if(!_0x3ca22b[_0x4d0cb3('0x273e')])return _0x229f85[_0x4d0cb3('0xda9')][_0x4d0cb3('0x1d97')]({'sectionId':_0x3ca22b['id']})['$promise']['then'](function(_0x590f23){const _0x3a2242=_0x4d0cb3,_0x496c7f=_0x3c8d8a()['map'](_0x590f23[_0x3a2242('0x6aa')],function(_0x11ba14){const _0x1c0d34=_0x3a2242;return _0x3c8d8a()[_0x1c0d34('0x18ab')](_0x73fe14[_0x1c0d34('0x673')],{'id':_0x11ba14['resourceId']});});_0x73fe14[_0x3a2242('0x673')][_0x3a2242('0xa6a')](function(_0x38c2ea){const _0x4be234=_0x3a2242;!_0x3c8d8a()[_0x4be234('0x1ec')](_0x496c7f,['id',_0x38c2ea['id']])&&(_0x38c2ea['canSelect']=![]),_0x496c7f['push'](_0x38c2ea);}),_0x73fe14[_0x3a2242('0x673')]=_0x496c7f;});}})[_0x570fdc('0x103c')](function(_0x5f337a){const _0x3168f6=_0x570fdc;_0x43da72[_0x3168f6('0x15aa')]({'title':_0x5f337a[_0x3168f6('0x276f')]?_0x3168f6('0x137')+_0x5f337a[_0x3168f6('0x276f')]+_0x3168f6('0x160c')+_0x5f337a['statusText']:_0x3168f6('0x21ed'),'msg':_0x5f337a['data']?JSON[_0x3168f6('0x100b')](_0x5f337a[_0x3168f6('0x1e07')]):_0x5f337a[_0x3168f6('0x1b75')]()});}),_0x38c0c4[_0x570fdc('0x1b4e')](_0x570fdc('0x79b'))?_0x229f85[_0x570fdc('0x550')][_0x570fdc('0x1d97')]({'fields':_0x570fdc('0xd52'),'sort':_0x570fdc('0x10ad')})[_0x570fdc('0x1964')][_0x570fdc('0x173b')](function(_0x60efa5){const _0x540611=_0x570fdc;_0x73fe14[_0x540611('0x23a1')]=_0x60efa5['rows']||[];})[_0x570fdc('0x103c')](function(_0x26691b){const _0x10158f=_0x570fdc;_0x43da72['error']({'title':_0x26691b['status']?_0x10158f('0x137')+_0x26691b[_0x10158f('0x276f')]+_0x10158f('0x160c')+_0x26691b[_0x10158f('0x2696')]:_0x10158f('0x24bb'),'msg':_0x26691b[_0x10158f('0x1e07')]?JSON[_0x10158f('0x100b')](_0x26691b['data']):_0x26691b[_0x10158f('0x1b75')]()});}):_0x229f85['squareProject'][_0x570fdc('0x1d97')]({'fields':_0x570fdc('0xd52'),'sort':_0x570fdc('0x10ad')})[_0x570fdc('0x1964')][_0x570fdc('0x173b')](function(_0x1c3765){const _0x3886c4=_0x570fdc;_0x73fe14[_0x3886c4('0x23a1')]=_0x1c3765[_0x3886c4('0x6aa')]||[];})[_0x570fdc('0x173b')](function(){const _0x19e7e9=_0x570fdc;return _0x229f85[_0x19e7e9('0x170e')][_0x19e7e9('0x1d97')]({'userProfileId':_0x73fe14[_0x19e7e9('0x155f')][_0x19e7e9('0x1946')],'sectionId':0x44f})[_0x19e7e9('0x1964')];})['then'](function(_0x51b8f9){const _0x2f0834=_0x570fdc,_0x4313f8=_0x51b8f9&&_0x51b8f9[_0x2f0834('0x6aa')]?_0x51b8f9[_0x2f0834('0x6aa')][0x0]:null;if(!_0x4313f8){const _0x3071e5=[];let _0x4c7fb8=null;_0x73fe14['ivrCampaign']&&(_0x4c7fb8=_0x3c8d8a()[_0x2f0834('0x18ab')](_0x73fe14[_0x2f0834('0x23a1')],{'id':Number(_0x73fe14['ivrCampaign']['SquareProjectId'])}));for(let _0x9e1928=0x0;_0x9e1928<_0x73fe14[_0x2f0834('0x23a1')][_0x2f0834('0x543')];_0x9e1928++){_0x4c7fb8&&_0x73fe14[_0x2f0834('0x23a1')][_0x9e1928]['id']===_0x4c7fb8['id']&&(_0x73fe14['projects'][_0x9e1928][_0x2f0834('0x268e')]=![],_0x3071e5[_0x2f0834('0x18bb')](_0x73fe14['projects'][_0x9e1928]));}_0x73fe14[_0x2f0834('0x23a1')]=_0x3071e5;}else{if(!_0x4313f8[_0x2f0834('0x273e')])return _0x229f85[_0x2f0834('0xda9')]['get']({'sectionId':_0x4313f8['id']})[_0x2f0834('0x1964')]['then'](function(_0x1bf5fd){const _0x2caa52=_0x2f0834,_0x34c8d6=_0x3c8d8a()['map'](_0x1bf5fd['rows'],function(_0x301376){const _0x35e76a=a0_0xde5e;return _0x3c8d8a()[_0x35e76a('0x18ab')](_0x73fe14[_0x35e76a('0x23a1')],{'id':_0x301376[_0x35e76a('0x1ce0')]});});let _0x39925a=null;_0x73fe14[_0x2caa52('0x1d04')]&&(_0x39925a=_0x3c8d8a()[_0x2caa52('0x18ab')](_0x73fe14[_0x2caa52('0x23a1')],{'id':Number(_0x73fe14['ivrCampaign'][_0x2caa52('0x11e1')])}));if(_0x39925a&&!_0x3c8d8a()[_0x2caa52('0x1ec')](_0x34c8d6,['id',_0x39925a['id']])){const _0x4e1c6e=_0x3c8d8a()['find'](_0x73fe14['projects'],{'id':_0x39925a['id']});_0x4e1c6e['canSelect']=![],_0x34c8d6[_0x2caa52('0x18bb')](_0x4e1c6e);}_0x73fe14[_0x2caa52('0x23a1')]=_0x34c8d6;});}})[_0x570fdc('0x103c')](function(_0x53ef02){const _0x18bc38=_0x570fdc;_0x43da72['error']({'title':_0x53ef02[_0x18bc38('0x276f')]?_0x18bc38('0x137')+_0x53ef02[_0x18bc38('0x276f')]+_0x18bc38('0x160c')+_0x53ef02['statusText']:_0x18bc38('0x2233'),'msg':_0x53ef02[_0x18bc38('0x1e07')]?JSON[_0x18bc38('0x100b')](_0x53ef02[_0x18bc38('0x1e07')]):_0x53ef02['toString']()});}),_0x38c0c4[_0x570fdc('0x1b4e')]('admin')?_0x229f85[_0x570fdc('0x55a')]['get']({'fields':_0x570fdc('0xd52'),'sort':_0x570fdc('0x10ad'),'IntervalId':_0x570fdc('0x877')})[_0x570fdc('0x1964')]['then'](function(_0x3df597){const _0x2aeaa1=_0x570fdc;_0x73fe14['interval']=_0x3df597[_0x2aeaa1('0x6aa')]||[];})['catch'](function(_0x3eca63){const _0x37e958=_0x570fdc;_0x43da72[_0x37e958('0x15aa')]({'title':_0x3eca63[_0x37e958('0x276f')]?'API:'+_0x3eca63[_0x37e958('0x276f')]+_0x37e958('0x160c')+_0x3eca63[_0x37e958('0x2696')]:_0x37e958('0x1f4b'),'msg':_0x3eca63[_0x37e958('0x1e07')]?JSON[_0x37e958('0x100b')](_0x3eca63[_0x37e958('0x1e07')]):_0x3eca63[_0x37e958('0x1b75')]()});}):_0x229f85[_0x570fdc('0x55a')][_0x570fdc('0x1d97')]({'fields':_0x570fdc('0xd52'),'sort':'name','IntervalId':_0x570fdc('0x877')})[_0x570fdc('0x1964')][_0x570fdc('0x173b')](function(_0x8ed94f){const _0x28a78c=_0x570fdc;_0x73fe14[_0x28a78c('0x55a')]=_0x8ed94f[_0x28a78c('0x6aa')]||[];})['then'](function(){const _0x47a2de=_0x570fdc;return _0x229f85[_0x47a2de('0x170e')][_0x47a2de('0x1d97')]({'userProfileId':_0x73fe14['currentUser'][_0x47a2de('0x1946')],'sectionId':0x3ec})[_0x47a2de('0x1964')];})[_0x570fdc('0x173b')](function(_0x37bd05){const _0x5aba12=_0x570fdc,_0x393a76=_0x37bd05&&_0x37bd05['rows']?_0x37bd05['rows'][0x0]:null;if(!_0x393a76){const _0x85abd4=[];let _0x178a78=null;_0x73fe14[_0x5aba12('0x1d04')]&&(_0x178a78=_0x3c8d8a()[_0x5aba12('0x18ab')](_0x73fe14[_0x5aba12('0x55a')],{'id':Number(_0x73fe14['ivrCampaign'][_0x5aba12('0x600')])}));for(let _0xe0eaf9=0x0;_0xe0eaf9<_0x73fe14[_0x5aba12('0x55a')][_0x5aba12('0x543')];_0xe0eaf9++){_0x178a78&&_0x73fe14['interval'][_0xe0eaf9]['id']===_0x178a78['id']&&(_0x73fe14[_0x5aba12('0x55a')][_0xe0eaf9][_0x5aba12('0x268e')]=![],_0x85abd4['push'](_0x73fe14['interval'][_0xe0eaf9]));}_0x73fe14['interval']=_0x85abd4;}else{if(!_0x393a76[_0x5aba12('0x273e')])return _0x229f85['userProfileResource'][_0x5aba12('0x1d97')]({'sectionId':_0x393a76['id']})['$promise'][_0x5aba12('0x173b')](function(_0x234630){const _0x42f762=_0x5aba12,_0x100dad=_0x3c8d8a()['map'](_0x234630[_0x42f762('0x6aa')],function(_0x504bad){const _0x2d63aa=_0x42f762;return _0x3c8d8a()[_0x2d63aa('0x18ab')](_0x73fe14[_0x2d63aa('0x55a')],{'id':_0x504bad[_0x2d63aa('0x1ce0')]});});let _0xd87f0b=null;_0x73fe14[_0x42f762('0x1d04')]&&(_0xd87f0b=_0x3c8d8a()[_0x42f762('0x18ab')](_0x73fe14[_0x42f762('0x55a')],{'id':Number(_0x73fe14[_0x42f762('0x1d04')][_0x42f762('0x600')])}));if(_0xd87f0b&&!_0x3c8d8a()['some'](_0x100dad,['id',_0xd87f0b['id']])){const _0x460429=_0x3c8d8a()[_0x42f762('0x18ab')](_0x73fe14['interval'],{'id':_0xd87f0b['id']});_0x460429[_0x42f762('0x268e')]=![],_0x100dad[_0x42f762('0x18bb')](_0x460429);}_0x73fe14[_0x42f762('0x55a')]=_0x100dad;});}})[_0x570fdc('0x103c')](function(_0x28a397){const _0x5483fb=_0x570fdc;_0x43da72[_0x5483fb('0x15aa')]({'title':_0x28a397[_0x5483fb('0x276f')]?_0x5483fb('0x137')+_0x28a397[_0x5483fb('0x276f')]+_0x5483fb('0x160c')+_0x28a397['statusText']:'SYSTEM:GETinterval','msg':_0x28a397[_0x5483fb('0x1e07')]?JSON['stringify'](_0x28a397[_0x5483fb('0x1e07')]):_0x28a397['toString']()});});function _0x20fada(_0x52a307,_0x33101a){const _0x61c1f0=_0x570fdc;_0xf78f6b[_0x61c1f0('0x1cb7')]({'controller':'IvrCampaigncloneController','controllerAs':'vm','templateUrl':_0x46bd7d,'parent':angular[_0x61c1f0('0xb6d')](_0xd5f886['body']),'targetEvent':_0x33101a,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x52a307,'ivrCampaigns':_0x73fe14[_0x61c1f0('0x7b3')]?_0x73fe14[_0x61c1f0('0x7b3')][_0x61c1f0('0x6aa')]:[],'crudPermissions':_0x73fe14[_0x61c1f0('0x1dc1')]}});}function _0x2484b9(_0x4794c3,_0x111c7b){const _0x3f0548=_0x570fdc;_0xf78f6b['show']({'controller':_0x3f0548('0x25cb'),'controllerAs':'vm','templateUrl':_0xc2e5e6,'parent':angular[_0x3f0548('0xb6d')](_0xd5f886['body']),'targetEvent':_0x111c7b,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4794c3,'ivrCampaigns':_0x73fe14[_0x3f0548('0x7b3')]?_0x73fe14[_0x3f0548('0x7b3')][_0x3f0548('0x6aa')]:[],'crudPermissions':_0x73fe14[_0x3f0548('0x1dc1')]}});}function _0x120b7a(_0x22c2e5,_0x2b883d){const _0xa4cf1e=_0x570fdc;_0xf78f6b[_0xa4cf1e('0x1cb7')]({'controller':'IvrCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x27c77d,'parent':angular[_0xa4cf1e('0xb6d')](_0xd5f886[_0xa4cf1e('0x1a5')]),'targetEvent':_0x2b883d,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x22c2e5,'ivrCampaigns':_0x73fe14[_0xa4cf1e('0x7b3')]?_0x73fe14[_0xa4cf1e('0x7b3')][_0xa4cf1e('0x6aa')]:[],'crudPermissions':_0x73fe14[_0xa4cf1e('0x1dc1')]}});}function _0x1f1dc8(_0x49355c,_0x4ce6ad){const _0x5aebde=_0x570fdc,_0x4a8417=_0x4ce6ad['id'];_0x229f85[_0x5aebde('0x1983')]['removeLists']({'id':_0x49355c,'ids':_0x4a8417})[_0x5aebde('0x1964')][_0x5aebde('0x173b')](function(){const _0x21744e=_0x5aebde;return _0x229f85[_0x21744e('0x1983')]['addLists']({'id':_0x49355c,'ids':_0x4a8417,'dialCheckDuplicateType':'never'})[_0x21744e('0x1964')];})[_0x5aebde('0x173b')](function(){const _0x14871f=_0x5aebde;_0x43da72['success']({'title':_0x14871f('0x3f8'),'msg':'List\x20'+_0x4ce6ad['name']+_0x14871f('0x2086')});})[_0x5aebde('0x103c')](function(_0x3111ff){const _0x420695=_0x5aebde;_0x43da72[_0x420695('0x15aa')]({'title':_0x3111ff[_0x420695('0x276f')]?_0x420695('0x137')+_0x3111ff['status']+_0x420695('0x160c')+_0x3111ff[_0x420695('0x2696')]:_0x420695('0x26a9'),'msg':_0x3111ff[_0x420695('0x276f')]?JSON[_0x420695('0x100b')](_0x3111ff[_0x420695('0x1e07')]):_0x3111ff[_0x420695('0x1b75')]()});});}function _0x5aeb9a(_0x3df12f,_0x558aa1){const _0x38728e=_0x570fdc;_0x229f85[_0x38728e('0x1983')][_0x38728e('0xe91')]({'id':_0x3df12f['id'],'fields':_0x38728e('0xd52'),'nolimit':!![]})[_0x38728e('0x1964')][_0x38728e('0x173b')](function(_0x3dc804){const _0x273882=_0x38728e;if(_0x3c8d8a()[_0x273882('0x7d5')](_0x3dc804[_0x273882('0x6aa')])||_0x3c8d8a()['isEmpty'](_0x3dc804['rows']))_0x43da72['info']({'title':_0x273882('0xa60')});else{if(_0x3dc804[_0x273882('0x6aa')][_0x273882('0x543')]===0x1){const _0x5f06ae=_0xf78f6b[_0x273882('0x1d02')]()[_0x273882('0x20d6')](_0x273882('0x1c13')+_0x3dc804['rows'][0x0][_0x273882('0x10ad')]+'\x20?')[_0x273882('0xf8b')](''+_0x3dc804[_0x273882('0x6aa')][0x0]['name']+_0x273882('0x24be')+_0x273882('0x20e5'))[_0x273882('0x217')](_0x273882('0x1ff3'))[_0x273882('0x21de')](_0x558aa1)['ok']('OK')[_0x273882('0x1e1f')](_0x273882('0x468'));_0xf78f6b[_0x273882('0x1cb7')](_0x5f06ae)['then'](function(){const _0x1ed44e=_0x273882;_0x1f1dc8(_0x73fe14[_0x1ed44e('0x1d04')]['id'],_0x3dc804[_0x1ed44e('0x6aa')][0x0]);});}else _0xf78f6b[_0x273882('0x1cb7')]({'controller':_0x273882('0x2246'),'controllerAs':'vm','templateUrl':_0x26e91f,'parent':angular[_0x273882('0xb6d')](_0xd5f886['body']),'targetEvent':_0x558aa1,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x3df12f,'listsCampaign':_0x3dc804?_0x3dc804[_0x273882('0x6aa')]:[]}});}})[_0x38728e('0x103c')](function(_0x26ee49){const _0x546b7f=_0x38728e;_0x43da72[_0x546b7f('0x15aa')]({'title':_0x26ee49[_0x546b7f('0x276f')]?_0x546b7f('0x137')+_0x26ee49[_0x546b7f('0x276f')]+_0x546b7f('0x160c')+_0x26ee49[_0x546b7f('0x2696')]:_0x546b7f('0x696'),'msg':_0x26ee49[_0x546b7f('0x276f')]?JSON[_0x546b7f('0x100b')](_0x26ee49[_0x546b7f('0x1e07')]):_0x26ee49[_0x546b7f('0x1b75')]()});});}function _0x215457(){const _0x24ba36=_0x570fdc;if(_0x38c0c4[_0x24ba36('0x1b4e')](_0x24ba36('0x79b')))_0x5f095f['go']('app.motiondialer.realtime.ivr_campaigns',{});else return _0x229f85[_0x24ba36('0x170e')][_0x24ba36('0x1d97')]({'userProfileId':_0x38c0c4[_0x24ba36('0x14d4')]()['userProfileId'],'sectionId':0x5e6})[_0x24ba36('0x1964')][_0x24ba36('0x173b')](function(_0x2da8cd){const _0x1c914f=_0x24ba36,_0x2b9a89=_0x2da8cd&&_0x2da8cd[_0x1c914f('0x6aa')]?_0x2da8cd[_0x1c914f('0x6aa')][0x0]:null;_0x2b9a89&&_0x2b9a89['enabled']?_0x5f095f['go'](_0x1c914f('0x74b'),{}):_0x43da72[_0x1c914f('0x2787')]({'title':_0x51d1fc[_0x1c914f('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x51d1fc[_0x1c914f('0x1467')](_0x1c914f('0x7d4'))});})[_0x24ba36('0x103c')](function(_0x27dac9){const _0xc1a2d5=_0x24ba36;_0x43da72['error']({'title':_0x27dac9[_0xc1a2d5('0x276f')]?'API:'+_0x27dac9[_0xc1a2d5('0x276f')]+_0xc1a2d5('0x160c')+_0x27dac9[_0xc1a2d5('0x2696')]:_0xc1a2d5('0x144d'),'msg':_0x27dac9[_0xc1a2d5('0x276f')]?JSON[_0xc1a2d5('0x100b')](_0x27dac9[_0xc1a2d5('0x1e07')]):_0x27dac9[_0xc1a2d5('0x1b75')]()});});}function _0x1d297d(){const _0x4c6880=_0x570fdc;_0x5f095f['go'](_0x4c6880('0x236b'),{},{'reload':_0x4c6880('0x236b')});}function _0x384132(){const _0x30b132=_0x570fdc;_0x229f85[_0x30b132('0x1983')][_0x30b132('0x1842')]({'id':_0x73fe14[_0x30b132('0x1d04')]['id']},_0x73fe14[_0x30b132('0x1d04')])[_0x30b132('0x1964')][_0x30b132('0x173b')](function(){const _0x1f739d=_0x30b132;_0x43da72[_0x1f739d('0xdfe')]({'title':_0x1f739d('0xc4e'),'msg':_0x73fe14[_0x1f739d('0x1d04')][_0x1f739d('0x10ad')]?_0x73fe14[_0x1f739d('0x1d04')]['name']+_0x1f739d('0x1fd6'):''});})[_0x30b132('0x103c')](function(_0x3faa77){const _0xdbd0c7=_0x30b132;_0x43da72['error']({'title':_0x3faa77[_0xdbd0c7('0x276f')]?'API:'+_0x3faa77['status']+'\x20-\x20'+_0x3faa77[_0xdbd0c7('0x2696')]:_0xdbd0c7('0xb2a'),'msg':_0x3faa77['data']?JSON['stringify'](_0x3faa77[_0xdbd0c7('0x1e07')]):_0x3faa77[_0xdbd0c7('0x1b75')]()});});}}const _0x469059=_0xc97ee;_0x5ba391[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),'ivrCampaigns',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x5ba391(_0x123586,_0x2aed69,_0x1af9ac,_0x1b65b7,_0x4f79a0,_0x225b3b,_0x226609,_0xe80e51,_0x2016b1,_0x32bf21,_0x1fb603,_0x43375d,_0x51cbc8,_0x4c946d,_0x5a53d9,_0x6a761d,_0x48f024){const _0x201556=_0x566993,_0x1cda4e=this;_0x1cda4e[_0x201556('0x1a29')]=_0x6a761d,_0x1cda4e[_0x201556('0x251')]=_0x48f024,_0x1cda4e[_0x201556('0x155f')]=_0x5a53d9['getCurrentUser'](),_0x1cda4e[_0x201556('0x7b3')]=_0x2016b1||{'count':0x0,'rows':[]},_0x1cda4e[_0x201556('0x257b')]=_0x32bf21,_0x1cda4e[_0x201556('0x170e')]=_0x1fb603&&_0x1fb603[_0x201556('0x1a2f')]==0x1?_0x1fb603[_0x201556('0x6aa')][0x0]:null,_0x1cda4e[_0x201556('0x1dc1')]=_0x5a53d9[_0x201556('0xde6')](_0x1cda4e[_0x201556('0x170e')]?_0x1cda4e['userProfileSection']['crudPermissions']:null),_0x1cda4e[_0x201556('0xdf9')]='ivrCampaigns',_0x1cda4e[_0x201556('0x14d6')]='',_0x1cda4e[_0x201556('0x2303')]=null,_0x1cda4e['selectedIvrCampaigns']=[],_0x1cda4e[_0x201556('0xc49')]={'fields':_0x201556('0xbbc'),'type':_0x201556('0x334'),'sort':_0x201556('0x1769'),'limit':0xa,'page':0x1},_0x1cda4e[_0x201556('0x1615')]=_0x3c8d8a()[_0x201556('0x128')]([{'option':_0x201556('0x1a1a'),'value':_0x201556('0x1484')},{'option':_0x201556('0xeb4'),'value':_0x201556('0x885')},{'option':_0x201556('0x1409'),'value':_0x201556('0x214')}],function(_0x1258ba){const _0x2f8d7c=_0x201556;return _0x3c8d8a()[_0x2f8d7c('0x166c')](_0x1258ba['value'],new RegExp('\x27','g'),'');}),_0x1cda4e['arraydialOrderByScheduledAt']=_0x3c8d8a()[_0x201556('0x128')]([{'option':_0x201556('0x1b60'),'value':_0x201556('0x11c')},{'option':'ASC','value':_0x201556('0x4a3')}],function(_0x1b991c){const _0x7186c4=_0x201556;return _0x3c8d8a()[_0x7186c4('0x166c')](_0x1b991c['value'],new RegExp('\x27','g'),'');}),_0x1cda4e[_0x201556('0x222e')]=_0x1ef608,_0x1cda4e[_0x201556('0x28a')]=_0x302583,_0x1cda4e[_0x201556('0xc51')]=_0x172abe,_0x1cda4e['blacklistadddialog']=_0x4b76b6,_0x1cda4e[_0x201556('0x1a20')]=_0x2b8f96,_0x1cda4e[_0x201556('0x1c9c')]=_0x53beec,_0x1cda4e['success']=_0x502434,_0x1cda4e[_0x201556('0x1cce')]=_0x3e6b9b,_0x1cda4e[_0x201556('0x15d8')]=_0x18cd52,_0x1cda4e[_0x201556('0x197c')]=_0x2ddffc,_0x1cda4e[_0x201556('0x826')]=_0x3b9997,_0x1cda4e[_0x201556('0x1bed')]=_0x563f0d,_0x1cda4e['deselectIvrCampaigns']=_0xc95bd8,_0x1cda4e['selectAllIvrCampaigns']=_0x1c0518,_0x5a53d9['hasRole'](_0x201556('0x79b'))?_0x43375d[_0x201556('0x15b7')][_0x201556('0x1d97')]({'fields':_0x201556('0xd52'),'sort':_0x201556('0x10ad'),'table':_0x201556('0x799')})[_0x201556('0x1964')][_0x201556('0x173b')](function(_0x1819ff){const _0x2db36a=_0x201556;_0x1cda4e[_0x2db36a('0x673')]=_0x1819ff['rows']||[];})[_0x201556('0x103c')](function(_0x15f0cb){const _0x205e55=_0x201556;_0x4c946d[_0x205e55('0x15aa')]({'title':_0x15f0cb[_0x205e55('0x276f')]?_0x205e55('0x137')+_0x15f0cb[_0x205e55('0x276f')]+_0x205e55('0x160c')+_0x15f0cb[_0x205e55('0x2696')]:_0x205e55('0xbd8'),'msg':_0x15f0cb[_0x205e55('0x1e07')]?JSON['stringify'](_0x15f0cb[_0x205e55('0x1e07')]):_0x15f0cb[_0x205e55('0x1b75')]()});}):_0x43375d[_0x201556('0x15b7')][_0x201556('0x1d97')]({'fields':_0x201556('0xd52'),'sort':_0x201556('0x10ad'),'table':_0x201556('0x799')})['$promise']['then'](function(_0x258e88){const _0x162bad=_0x201556;_0x1cda4e[_0x162bad('0x673')]=_0x258e88['rows']||[];})['then'](function(){const _0x234384=_0x201556;return _0x43375d[_0x234384('0x170e')][_0x234384('0x1d97')]({'userProfileId':_0x1cda4e[_0x234384('0x155f')][_0x234384('0x1946')],'sectionId':0x3f3})['$promise'];})[_0x201556('0x173b')](function(_0x2f45a3){const _0x15e471=_0x201556,_0x346887=_0x2f45a3&&_0x2f45a3[_0x15e471('0x6aa')]?_0x2f45a3['rows'][0x0]:null;if(!_0x346887)_0x1cda4e[_0x15e471('0x673')]=[];else{if(!_0x346887['autoAssociation'])return _0x43375d[_0x15e471('0xda9')][_0x15e471('0x1d97')]({'sectionId':_0x346887['id']})[_0x15e471('0x1964')][_0x15e471('0x173b')](function(_0x5d763b){const _0x5b191d=_0x15e471,_0x221196=_0x3c8d8a()['map'](_0x5d763b['rows'],function(_0x1da182){const _0x24a14f=a0_0xde5e;return _0x3c8d8a()[_0x24a14f('0x18ab')](_0x1cda4e[_0x24a14f('0x673')],{'id':_0x1da182['resourceId']});});_0x1cda4e[_0x5b191d('0x673')]['forEach'](function(_0x38e00d){const _0x4596c7=_0x5b191d;!_0x3c8d8a()[_0x4596c7('0x1ec')](_0x221196,['id',_0x38e00d['id']])&&(_0x38e00d['canSelect']=![]),_0x221196[_0x4596c7('0x18bb')](_0x38e00d);}),_0x1cda4e[_0x5b191d('0x673')]=_0x221196;});}})[_0x201556('0x103c')](function(_0x4a2682){const _0xe48dd0=_0x201556;_0x4c946d['error']({'title':_0x4a2682[_0xe48dd0('0x276f')]?'API:'+_0x4a2682[_0xe48dd0('0x276f')]+_0xe48dd0('0x160c')+_0x4a2682[_0xe48dd0('0x2696')]:'SYSTEM:GETtrunks','msg':_0x4a2682[_0xe48dd0('0x1e07')]?JSON['stringify'](_0x4a2682['data']):_0x4a2682[_0xe48dd0('0x1b75')]()});}),_0x5a53d9[_0x201556('0x1b4e')](_0x201556('0x79b'))?_0x43375d[_0x201556('0x550')][_0x201556('0x1d97')]({'fields':_0x201556('0xd52'),'sort':_0x201556('0x10ad')})[_0x201556('0x1964')]['then'](function(_0x556662){const _0x366446=_0x201556;_0x1cda4e['projects']=_0x556662[_0x366446('0x6aa')]||[];})[_0x201556('0x103c')](function(_0x54a3e9){const _0x1483f8=_0x201556;_0x4c946d['error']({'title':_0x54a3e9[_0x1483f8('0x276f')]?_0x1483f8('0x137')+_0x54a3e9[_0x1483f8('0x276f')]+_0x1483f8('0x160c')+_0x54a3e9[_0x1483f8('0x2696')]:_0x1483f8('0x24bb'),'msg':_0x54a3e9['data']?JSON[_0x1483f8('0x100b')](_0x54a3e9[_0x1483f8('0x1e07')]):_0x54a3e9[_0x1483f8('0x1b75')]()});}):_0x43375d[_0x201556('0x550')][_0x201556('0x1d97')]({'fields':_0x201556('0xd52'),'sort':_0x201556('0x10ad')})[_0x201556('0x1964')][_0x201556('0x173b')](function(_0x258e42){const _0x499172=_0x201556;_0x1cda4e[_0x499172('0x23a1')]=_0x258e42['rows']||[];})[_0x201556('0x173b')](function(){const _0x13601f=_0x201556;return _0x43375d[_0x13601f('0x170e')]['get']({'userProfileId':_0x1cda4e[_0x13601f('0x155f')]['userProfileId'],'sectionId':0x44f})[_0x13601f('0x1964')];})[_0x201556('0x173b')](function(_0x6a1fc8){const _0x27ec4c=_0x201556,_0x705fa=_0x6a1fc8&&_0x6a1fc8[_0x27ec4c('0x6aa')]?_0x6a1fc8[_0x27ec4c('0x6aa')][0x0]:null;if(!_0x705fa){const _0x53099d=[],_0x4b255e=[];_0x1cda4e['ivrCampaigns']['rows']['forEach'](function(_0x38db3b){const _0x1038e8=_0x27ec4c,_0x462193=_0x3c8d8a()['find'](_0x1cda4e[_0x1038e8('0x23a1')],{'id':Number(_0x38db3b[_0x1038e8('0x11e1')])});_0x4b255e[_0x1038e8('0x18bb')](_0x462193);});for(let _0xe5f579=0x0;_0xe5f579<_0x1cda4e['projects'][_0x27ec4c('0x543')];_0xe5f579++){const _0x5dc434=_0x3c8d8a()[_0x27ec4c('0x1ec')](_0x4b255e,{'id':_0x1cda4e[_0x27ec4c('0x23a1')][_0xe5f579]['id']});_0x5dc434&&(_0x1cda4e[_0x27ec4c('0x23a1')][_0xe5f579][_0x27ec4c('0x268e')]=![],_0x53099d[_0x27ec4c('0x18bb')](_0x1cda4e[_0x27ec4c('0x23a1')][_0xe5f579]));}_0x1cda4e[_0x27ec4c('0x23a1')]=_0x53099d;}else{if(!_0x705fa['autoAssociation'])return _0x43375d[_0x27ec4c('0xda9')]['get']({'sectionId':_0x705fa['id']})[_0x27ec4c('0x1964')][_0x27ec4c('0x173b')](function(_0x417b31){const _0x11d3b2=_0x27ec4c,_0x57e6da=_0x3c8d8a()[_0x11d3b2('0x8a2')](_0x417b31[_0x11d3b2('0x6aa')],function(_0x2c3b29){const _0x29d645=_0x11d3b2;return _0x3c8d8a()[_0x29d645('0x18ab')](_0x1cda4e[_0x29d645('0x23a1')],{'id':_0x2c3b29[_0x29d645('0x1ce0')]});});let _0x17fe3e=null;_0x17fe3e=[],_0x1cda4e[_0x11d3b2('0x7b3')][_0x11d3b2('0x6aa')][_0x11d3b2('0xa6a')](function(_0x1879ff){const _0x374055=_0x11d3b2,_0xfeaab7=_0x3c8d8a()[_0x374055('0x18ab')](_0x1cda4e[_0x374055('0x23a1')],{'id':Number(_0x1879ff[_0x374055('0x11e1')])});_0x17fe3e[_0x374055('0x18bb')](_0xfeaab7);}),!_0x3c8d8a()[_0x11d3b2('0x1a56')](_0x17fe3e)&&_0x17fe3e[_0x11d3b2('0xa6a')](function(_0x5b60d1){const _0x1900c8=_0x11d3b2;if(!_0x3c8d8a()['some'](_0x57e6da,['id',_0x5b60d1['id']])){const _0x211f33=_0x3c8d8a()['find'](_0x1cda4e[_0x1900c8('0x23a1')],{'id':_0x5b60d1['id']});_0x211f33[_0x1900c8('0x268e')]=![],_0x57e6da['push'](_0x211f33);}}),_0x1cda4e[_0x11d3b2('0x23a1')]=_0x57e6da;});}})['catch'](function(_0x3a62df){const _0x5b0a21=_0x201556;_0x4c946d[_0x5b0a21('0x15aa')]({'title':_0x3a62df[_0x5b0a21('0x276f')]?_0x5b0a21('0x137')+_0x3a62df['status']+_0x5b0a21('0x160c')+_0x3a62df[_0x5b0a21('0x2696')]:_0x5b0a21('0x2233'),'msg':_0x3a62df[_0x5b0a21('0x1e07')]?JSON[_0x5b0a21('0x100b')](_0x3a62df[_0x5b0a21('0x1e07')]):_0x3a62df['toString']()});}),_0x5a53d9[_0x201556('0x1b4e')](_0x201556('0x79b'))?_0x43375d[_0x201556('0x55a')][_0x201556('0x1d97')]({'fields':_0x201556('0xd52'),'sort':_0x201556('0x10ad'),'IntervalId':'null'})['$promise']['then'](function(_0x157f5d){const _0x381ed7=_0x201556;_0x1cda4e[_0x381ed7('0x55a')]=_0x157f5d['rows']||[];})['catch'](function(_0x1b7272){const _0x114d7d=_0x201556;_0x4c946d[_0x114d7d('0x15aa')]({'title':_0x1b7272['status']?_0x114d7d('0x137')+_0x1b7272[_0x114d7d('0x276f')]+_0x114d7d('0x160c')+_0x1b7272['statusText']:_0x114d7d('0x1f4b'),'msg':_0x1b7272[_0x114d7d('0x1e07')]?JSON[_0x114d7d('0x100b')](_0x1b7272[_0x114d7d('0x1e07')]):_0x1b7272[_0x114d7d('0x1b75')]()});}):_0x43375d[_0x201556('0x55a')][_0x201556('0x1d97')]({'fields':_0x201556('0xd52'),'sort':_0x201556('0x10ad'),'IntervalId':_0x201556('0x877')})['$promise'][_0x201556('0x173b')](function(_0x2de5b8){const _0x1a513d=_0x201556;_0x1cda4e[_0x1a513d('0x55a')]=_0x2de5b8[_0x1a513d('0x6aa')]||[];})[_0x201556('0x173b')](function(){const _0x31a8bd=_0x201556;return _0x43375d[_0x31a8bd('0x170e')][_0x31a8bd('0x1d97')]({'userProfileId':_0x1cda4e[_0x31a8bd('0x155f')][_0x31a8bd('0x1946')],'sectionId':0x3ec})[_0x31a8bd('0x1964')];})['then'](function(_0x370a16){const _0x34f5fa=_0x201556,_0x1c1130=_0x370a16&&_0x370a16['rows']?_0x370a16[_0x34f5fa('0x6aa')][0x0]:null;if(!_0x1c1130){const _0x2ea327=[];let _0x461762=null;_0x1cda4e[_0x34f5fa('0x1d04')]&&(_0x461762=_0x3c8d8a()[_0x34f5fa('0x18ab')](_0x1cda4e['interval'],{'id':Number(_0x1cda4e[_0x34f5fa('0x1d04')][_0x34f5fa('0x600')])}));for(let _0x4976a3=0x0;_0x4976a3<_0x1cda4e[_0x34f5fa('0x55a')]['length'];_0x4976a3++){_0x461762&&_0x1cda4e[_0x34f5fa('0x55a')][_0x4976a3]['id']===_0x461762['id']&&(_0x1cda4e[_0x34f5fa('0x55a')][_0x4976a3][_0x34f5fa('0x268e')]=![],_0x2ea327['push'](_0x1cda4e[_0x34f5fa('0x55a')][_0x4976a3]));}_0x1cda4e[_0x34f5fa('0x55a')]=_0x2ea327;}else{if(!_0x1c1130[_0x34f5fa('0x273e')])return _0x43375d[_0x34f5fa('0xda9')][_0x34f5fa('0x1d97')]({'sectionId':_0x1c1130['id']})[_0x34f5fa('0x1964')][_0x34f5fa('0x173b')](function(_0x24c974){const _0x427071=_0x34f5fa,_0x619a45=_0x3c8d8a()[_0x427071('0x8a2')](_0x24c974[_0x427071('0x6aa')],function(_0x35eab4){const _0x5f3630=_0x427071;return _0x3c8d8a()['find'](_0x1cda4e['interval'],{'id':_0x35eab4[_0x5f3630('0x1ce0')]});});let _0x3eabb9=null;_0x1cda4e[_0x427071('0x1d04')]&&(_0x3eabb9=_0x3c8d8a()[_0x427071('0x18ab')](_0x1cda4e[_0x427071('0x55a')],{'id':Number(_0x1cda4e[_0x427071('0x1d04')][_0x427071('0x600')])}));if(_0x3eabb9&&!_0x3c8d8a()[_0x427071('0x1ec')](_0x619a45,['id',_0x3eabb9['id']])){const _0xc4c745=_0x3c8d8a()['find'](_0x1cda4e[_0x427071('0x55a')],{'id':_0x3eabb9['id']});_0xc4c745['canSelect']=![],_0x619a45['push'](_0xc4c745);}_0x1cda4e['interval']=_0x619a45;});}})[_0x201556('0x103c')](function(_0xea0cac){const _0x5904e2=_0x201556;_0x4c946d[_0x5904e2('0x15aa')]({'title':_0xea0cac[_0x5904e2('0x276f')]?_0x5904e2('0x137')+_0xea0cac[_0x5904e2('0x276f')]+'\x20-\x20'+_0xea0cac['statusText']:_0x5904e2('0x2419'),'msg':_0xea0cac[_0x5904e2('0x1e07')]?JSON[_0x5904e2('0x100b')](_0xea0cac[_0x5904e2('0x1e07')]):_0xea0cac[_0x5904e2('0x1b75')]()});});function _0x1ef608(_0x3ff86f){const _0x334171=_0x201556;_0x1af9ac['go'](_0x334171('0x23b2'),{'id':_0x3ff86f['id'],'ivrCampaign':_0x3ff86f,'crudPermissions':_0x1cda4e[_0x334171('0x1dc1')]});}function _0x302583(_0x476782,_0x175371){const _0x4fd279=_0x201556;_0x4f79a0[_0x4fd279('0x1cb7')]({'controller':_0x4fd279('0x25e7'),'controllerAs':'vm','templateUrl':_0x46bd7d,'parent':angular['element'](_0x225b3b[_0x4fd279('0x1a5')]),'targetEvent':_0x175371,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x476782,'ivrCampaigns':_0x1cda4e['ivrCampaigns']?_0x1cda4e[_0x4fd279('0x7b3')][_0x4fd279('0x6aa')]:[],'crudPermissions':_0x1cda4e[_0x4fd279('0x1dc1')]}});}function _0x172abe(_0x345784,_0x85db75){const _0x334f93=_0x201556;_0x4f79a0[_0x334f93('0x1cb7')]({'controller':_0x334f93('0x25cb'),'controllerAs':'vm','templateUrl':_0xc2e5e6,'parent':angular[_0x334f93('0xb6d')](_0x225b3b['body']),'targetEvent':_0x85db75,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x345784,'ivrCampaigns':_0x1cda4e[_0x334f93('0x7b3')]?_0x1cda4e[_0x334f93('0x7b3')][_0x334f93('0x6aa')]:[],'crudPermissions':_0x1cda4e[_0x334f93('0x1dc1')]}});}function _0x4b76b6(_0x2a33af,_0x102cbf){const _0x32ea81=_0x201556;_0x4f79a0[_0x32ea81('0x1cb7')]({'controller':_0x32ea81('0x1e81'),'controllerAs':'vm','templateUrl':_0x27c77d,'parent':angular[_0x32ea81('0xb6d')](_0x225b3b['body']),'targetEvent':_0x102cbf,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x2a33af,'ivrCampaigns':_0x1cda4e['ivrCampaigns']?_0x1cda4e[_0x32ea81('0x7b3')][_0x32ea81('0x6aa')]:[],'crudPermissions':_0x1cda4e[_0x32ea81('0x1dc1')]}});}function _0x2b8f96(_0x4adbcc,_0x67ca30){const _0x544924=_0x201556,_0x171b39=_0x4f79a0['confirm']()[_0x544924('0x20d6')](_0x544924('0x5bb')+_0x3c8d8a()[_0x544924('0x10e')](_0x544924('0x1d04'))+'?')[_0x544924('0xf8b')](_0x544924('0x15b9')+(_0x4adbcc[_0x544924('0x10ad')]||_0x544924('0x1d04'))+''+_0x544924('0xd23'))[_0x544924('0x217')](_0x544924('0x8b5'))[_0x544924('0x21de')](_0x67ca30)['ok']('OK')[_0x544924('0x1e1f')](_0x544924('0x468'));_0x4f79a0[_0x544924('0x1cb7')](_0x171b39)[_0x544924('0x173b')](function(){_0x2ddffc(_0x4adbcc);},function(){console['log']('CANCEL');});}function _0x53beec(){const _0x9ebe57=_0x201556;if(_0x5a53d9['hasRole']('admin'))_0x1af9ac['go'](_0x9ebe57('0x74b'),{});else return _0x43375d[_0x9ebe57('0x170e')][_0x9ebe57('0x1d97')]({'userProfileId':_0x5a53d9[_0x9ebe57('0x14d4')]()[_0x9ebe57('0x1946')],'sectionId':0x5e6})[_0x9ebe57('0x1964')]['then'](function(_0x4f90b0){const _0x2ea5b6=_0x9ebe57,_0x53e896=_0x4f90b0&&_0x4f90b0['rows']?_0x4f90b0[_0x2ea5b6('0x6aa')][0x0]:null;_0x53e896&&_0x53e896[_0x2ea5b6('0x830')]?_0x1af9ac['go']('app.motiondialer.realtime.ivr_campaigns',{}):_0x4c946d['info']({'title':_0xe80e51[_0x2ea5b6('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0xe80e51['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x9ebe57('0x103c')](function(_0x55bcb7){const _0x4ead7a=_0x9ebe57;_0x4c946d[_0x4ead7a('0x15aa')]({'title':_0x55bcb7[_0x4ead7a('0x276f')]?_0x4ead7a('0x137')+_0x55bcb7['status']+_0x4ead7a('0x160c')+_0x55bcb7[_0x4ead7a('0x2696')]:_0x4ead7a('0x144d'),'msg':_0x55bcb7['status']?JSON['stringify'](_0x55bcb7['data']):_0x55bcb7[_0x4ead7a('0x1b75')]()});});}let _0x14d892=!![],_0x678f06=0x1;_0x123586['$watch'](_0x201556('0x157b'),function(_0x48243a,_0x24cc9c){const _0x229450=_0x201556;_0x14d892?_0x226609(function(){_0x14d892=![];}):(!_0x24cc9c&&(_0x678f06=_0x1cda4e[_0x229450('0xc49')][_0x229450('0x182e')]),_0x48243a!==_0x24cc9c&&(_0x1cda4e[_0x229450('0xc49')][_0x229450('0x182e')]=0x1),!_0x48243a&&(_0x1cda4e[_0x229450('0xc49')][_0x229450('0x182e')]=_0x678f06),_0x1cda4e[_0x229450('0x1cce')]());});function _0x502434(_0x21514d){const _0x182afa=_0x201556;_0x1cda4e[_0x182afa('0x7b3')]=_0x21514d||{'count':0x0,'rows':[]};}function _0x3e6b9b(){const _0xc6625f=_0x201556;_0x1cda4e[_0xc6625f('0xc49')][_0xc6625f('0x17f0')]=(_0x1cda4e['query']['page']-0x1)*_0x1cda4e['query']['limit'],_0x5a53d9['hasRole'](_0xc6625f('0x79b'))?_0x1cda4e['promise']=_0x43375d['campaign'][_0xc6625f('0x1d97')](_0x1cda4e[_0xc6625f('0xc49')],_0x502434)[_0xc6625f('0x1964')]:(_0x1cda4e['query']['id']=_0x1cda4e['userProfile']['id'],_0x1cda4e[_0xc6625f('0xc49')][_0xc6625f('0x17c9')]=_0xc6625f('0x9fc'),_0x1cda4e['promise']=_0x43375d[_0xc6625f('0x257b')][_0xc6625f('0x135b')](_0x1cda4e[_0xc6625f('0xc49')],_0x502434)[_0xc6625f('0x1964')]);}function _0x18cd52(_0x5a52e4,_0x23a393){const _0x2f5791=_0x201556;_0x4f79a0['show']({'controller':_0x2f5791('0x1eaf'),'controllerAs':'vm','templateUrl':_0x250ee1,'parent':angular['element'](_0x225b3b[_0x2f5791('0x1a5')]),'targetEvent':_0x5a52e4,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x23a393,'ivrCampaigns':_0x1cda4e[_0x2f5791('0x7b3')]['rows'],'license':_0x1cda4e[_0x2f5791('0x1a29')],'setting':_0x1cda4e[_0x2f5791('0x251')],'crudPermissions':_0x1cda4e['crudPermissions']}});}function _0x2ddffc(_0x45d65c){const _0x4c580c=_0x201556;_0x43375d[_0x4c580c('0x1983')][_0x4c580c('0x15e8')]({'id':_0x45d65c['id']})[_0x4c580c('0x1964')][_0x4c580c('0x173b')](function(){const _0x264664=_0x4c580c;_0x3c8d8a()[_0x264664('0x1a8b')](_0x1cda4e[_0x264664('0x7b3')][_0x264664('0x6aa')],{'id':_0x45d65c['id']}),_0x1cda4e['ivrCampaigns'][_0x264664('0x1a2f')]-=0x1,!_0x1cda4e[_0x264664('0x7b3')][_0x264664('0x6aa')]['length']&&_0x1cda4e[_0x264664('0x1cce')](),_0x4c946d[_0x264664('0xdfe')]({'title':_0x3c8d8a()['startCase']('IvrCampaign')+'\x20deleted!','msg':_0x45d65c['name']?_0x45d65c[_0x264664('0x10ad')]+_0x264664('0x25d2'):''});})[_0x4c580c('0x103c')](function(_0x5d29de){const _0x2e38cd=_0x4c580c;if(_0x5d29de['data']&&_0x5d29de[_0x2e38cd('0x1e07')][_0x2e38cd('0x1d4a')]&&_0x5d29de[_0x2e38cd('0x1e07')]['errors'][_0x2e38cd('0x543')]){_0x1cda4e[_0x2e38cd('0x1d4a')]=_0x5d29de[_0x2e38cd('0x1e07')][_0x2e38cd('0x1d4a')]||[{'message':_0x5d29de[_0x2e38cd('0x1b75')](),'type':'SYSTEM:DELETEcampaign'}];for(let _0x10f811=0x0;_0x10f811<_0x5d29de[_0x2e38cd('0x1e07')][_0x2e38cd('0x1d4a')]['length'];_0x10f811++){_0x4c946d[_0x2e38cd('0x15aa')]({'title':_0x5d29de['data'][_0x2e38cd('0x1d4a')][_0x10f811][_0x2e38cd('0x1810')],'msg':_0x5d29de[_0x2e38cd('0x1e07')]['errors'][_0x10f811][_0x2e38cd('0x67f')]});}}else _0x4c946d[_0x2e38cd('0x15aa')]({'title':_0x5d29de[_0x2e38cd('0x276f')]?_0x2e38cd('0x137')+_0x5d29de[_0x2e38cd('0x276f')]+'\x20-\x20'+_0x5d29de[_0x2e38cd('0x2696')]:_0x2e38cd('0x6da'),'msg':_0x5d29de['data']?JSON[_0x2e38cd('0x100b')](_0x5d29de[_0x2e38cd('0x1e07')][_0x2e38cd('0x67f')]):_0x5d29de['message']||_0x5d29de[_0x2e38cd('0x1b75')]()});});}function _0x3b9997(){const _0x336215=_0x201556,_0x552f55=angular['copy'](_0x1cda4e[_0x336215('0x17d7')]);return _0x1cda4e['selectedIvrCampaigns']=[],_0x552f55;}function _0x563f0d(_0x4ed5ec){const _0x1dbaad=_0x201556,_0x42833d=_0x4f79a0[_0x1dbaad('0x1d02')]()[_0x1dbaad('0x20d6')](_0x1dbaad('0x102b'))[_0x1dbaad('0xf8b')](_0x1dbaad('0x15b9')+_0x1cda4e[_0x1dbaad('0x17d7')][_0x1dbaad('0x543')]+_0x1dbaad('0xcb4')+_0x1dbaad('0xd23'))['ariaLabel'](_0x1dbaad('0x1227'))[_0x1dbaad('0x21de')](_0x4ed5ec)['ok']('OK')[_0x1dbaad('0x1e1f')](_0x1dbaad('0x468'));_0x4f79a0[_0x1dbaad('0x1cb7')](_0x42833d)[_0x1dbaad('0x173b')](function(){const _0x5d5649=_0x1dbaad;_0x1cda4e[_0x5d5649('0x17d7')][_0x5d5649('0xa6a')](function(_0x2747fa){_0x2ddffc(_0x2747fa);}),_0x1cda4e['selectedIvrCampaigns']=[];});}function _0xc95bd8(){const _0x593c01=_0x201556;_0x1cda4e[_0x593c01('0x17d7')]=[];}function _0x1c0518(){const _0x5150e9=_0x201556;_0x1cda4e[_0x5150e9('0x17d7')]=_0x1cda4e[_0x5150e9('0x7b3')][_0x5150e9('0x6aa')];}}const _0x2a8f3f=_0x5ba391;_0xf13e01[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x5d6'),_0x566993('0x100f'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0xf13e01(_0x113895,_0x152ab2,_0x46718d,_0xc7fef2,_0x3b17dd,_0x53c726,_0x3d4d7b,_0x5ae3b1,_0x345f82,_0x1a9af3,_0x576dfa,_0x43c935,_0x57c224,_0x1152eb){const _0x49f809=_0x566993,_0x456f21=this;_0x456f21[_0x49f809('0x155f')]=_0x576dfa[_0x49f809('0x14d4')](),_0x456f21[_0x49f809('0x1d4a')]=[],_0x456f21['setting']=_0x57c224,_0x456f21[_0x49f809('0x1a29')]=_0x43c935,_0x456f21['crudPermissions']=_0x1152eb,_0x456f21[_0x49f809('0xb0')]={},_0x456f21['passwordPattern']=_0x456f21[_0x49f809('0x251')]&&_0x456f21[_0x49f809('0x251')][_0x49f809('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x456f21[_0x49f809('0x20d6')]=_0x49f809('0x222d'),_0x456f21['queueCampaign']=angular[_0x49f809('0x2e3')](_0x345f82),_0x456f21[_0x49f809('0x5d6')]=_0x5ae3b1,_0x456f21[_0x49f809('0x1c32')]=![];!_0x456f21[_0x49f809('0x100f')]&&(_0x456f21[_0x49f809('0x100f')]={'dialActive':!![],'type':_0x49f809('0xb33'),'dialCheckDuplicateType':_0x49f809('0x17b3'),'dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':_0x49f809('0x2085'),'dialGlobalInterval':_0x49f809('0x4c7'),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':'progressive','dialPowerLevel':0x1,'dialPredictiveOptimization':_0x49f809('0x6b7'),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x49f809('0x1688'),'dialQueueTimeout':0x3,'strategy':_0x49f809('0x52a'),'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},_0x456f21[_0x49f809('0x20d6')]=_0x49f809('0x12e0'),_0x456f21['newQueueCampaign']=!![]);_0x456f21[_0x49f809('0x1cc6')]=_0x542384,_0x456f21[_0x49f809('0x1f83')]=_0x131082,_0x456f21['deleteQueueCampaign']=_0x2f839d,_0x456f21['getDateFromString']=_0x23b6c0,_0x456f21['closeDialog']=_0x4035c1,_0x576dfa[_0x49f809('0x1b4e')](_0x49f809('0x79b'))?_0x1a9af3['trunk'][_0x49f809('0x1d97')]({'fields':_0x49f809('0xd52'),'sort':'name'})[_0x49f809('0x1964')]['then'](function(_0x416bd3){const _0x50204b=_0x49f809;_0x456f21['trunks']=_0x416bd3[_0x50204b('0x6aa')]||[];})['catch'](function(_0x29849b){const _0x1cfb0b=_0x49f809;_0x3d4d7b[_0x1cfb0b('0x15aa')]({'title':_0x29849b['status']?'API:'+_0x29849b[_0x1cfb0b('0x276f')]+_0x1cfb0b('0x160c')+_0x29849b[_0x1cfb0b('0x2696')]:_0x1cfb0b('0xbd8'),'msg':_0x29849b[_0x1cfb0b('0x1e07')]?JSON[_0x1cfb0b('0x100b')](_0x29849b['data']):_0x29849b['toString']()});}):_0x1a9af3['trunk'][_0x49f809('0x1d97')]({'fields':_0x49f809('0xd52'),'sort':'name'})[_0x49f809('0x1964')]['then'](function(_0x116041){const _0x51d33f=_0x49f809;_0x456f21[_0x51d33f('0x673')]=_0x116041['rows']||[];})[_0x49f809('0x173b')](function(){const _0x4b6308=_0x49f809;return _0x1a9af3[_0x4b6308('0x170e')]['get']({'userProfileId':_0x456f21[_0x4b6308('0x155f')][_0x4b6308('0x1946')],'sectionId':0x3f3})[_0x4b6308('0x1964')];})[_0x49f809('0x173b')](function(_0x3d9bb5){const _0x560150=_0x49f809,_0xadff95=_0x3d9bb5&&_0x3d9bb5['rows']?_0x3d9bb5[_0x560150('0x6aa')][0x0]:null;if(!_0xadff95){const _0x17267e=[];let _0x216b26=null;_0x456f21[_0x560150('0x100f')]&&(_0x216b26=_0x3c8d8a()[_0x560150('0x18ab')](_0x456f21[_0x560150('0x673')],{'id':Number(_0x456f21[_0x560150('0x100f')][_0x560150('0xdad')])}));for(let _0x470d40=0x0;_0x470d40<_0x456f21[_0x560150('0x673')]['length'];_0x470d40++){_0x216b26&&_0x456f21['trunks'][_0x470d40]['id']===_0x216b26['id']&&(_0x456f21[_0x560150('0x673')][_0x470d40][_0x560150('0x268e')]=![],_0x17267e[_0x560150('0x18bb')](_0x456f21['trunks'][_0x470d40]));}_0x456f21[_0x560150('0x673')]=_0x17267e;}else{if(!_0xadff95['autoAssociation'])return _0x1a9af3[_0x560150('0xda9')][_0x560150('0x1d97')]({'sectionId':_0xadff95['id']})['$promise'][_0x560150('0x173b')](function(_0x32166e){const _0x305b33=_0x560150,_0x5862df=_0x3c8d8a()['map'](_0x32166e[_0x305b33('0x6aa')],function(_0x474c7e){const _0x134ab6=_0x305b33;return _0x3c8d8a()['find'](_0x456f21[_0x134ab6('0x673')],{'id':_0x474c7e['resourceId']});});let _0x2e32ea=null;_0x456f21[_0x305b33('0x100f')]&&(_0x2e32ea=_0x3c8d8a()[_0x305b33('0x18ab')](_0x456f21[_0x305b33('0x673')],{'id':Number(_0x456f21[_0x305b33('0x100f')][_0x305b33('0xdad')])}));if(_0x2e32ea&&!_0x3c8d8a()[_0x305b33('0x1ec')](_0x5862df,['id',_0x2e32ea['id']])){const _0x4ecba0=_0x3c8d8a()[_0x305b33('0x18ab')](_0x456f21[_0x305b33('0x673')],{'id':_0x2e32ea['id']});_0x4ecba0[_0x305b33('0x268e')]=![],_0x5862df[_0x305b33('0x18bb')](_0x4ecba0);}_0x456f21[_0x305b33('0x673')]=_0x5862df;});}})[_0x49f809('0x103c')](function(_0x368514){const _0x3979f4=_0x49f809;_0x3d4d7b[_0x3979f4('0x15aa')]({'title':_0x368514[_0x3979f4('0x276f')]?_0x3979f4('0x137')+_0x368514['status']+'\x20-\x20'+_0x368514[_0x3979f4('0x2696')]:_0x3979f4('0x21ed'),'msg':_0x368514[_0x3979f4('0x1e07')]?JSON['stringify'](_0x368514[_0x3979f4('0x1e07')]):_0x368514['toString']()});}),_0x576dfa['hasRole']('admin')?_0x1a9af3[_0x49f809('0x55a')]['get']({'fields':_0x49f809('0xd52'),'sort':'name','IntervalId':_0x49f809('0x877')})['$promise'][_0x49f809('0x173b')](function(_0x1a3bb3){const _0x5b627c=_0x49f809;_0x456f21[_0x5b627c('0x55a')]=_0x1a3bb3[_0x5b627c('0x6aa')]||[];})[_0x49f809('0x103c')](function(_0x530aa2){const _0x574281=_0x49f809;_0x3d4d7b[_0x574281('0x15aa')]({'title':_0x530aa2[_0x574281('0x276f')]?_0x574281('0x137')+_0x530aa2['status']+_0x574281('0x160c')+_0x530aa2[_0x574281('0x2696')]:'SYSTEM:GET_INTERVAL','msg':_0x530aa2['data']?JSON['stringify'](_0x530aa2['data']):_0x530aa2[_0x574281('0x1b75')]()});}):_0x1a9af3['interval']['get']({'fields':_0x49f809('0xd52'),'sort':_0x49f809('0x10ad'),'IntervalId':'null'})[_0x49f809('0x1964')][_0x49f809('0x173b')](function(_0x2ed56b){const _0x4475c6=_0x49f809;_0x456f21[_0x4475c6('0x55a')]=_0x2ed56b[_0x4475c6('0x6aa')]||[];})[_0x49f809('0x173b')](function(){const _0x4172b7=_0x49f809;return _0x1a9af3[_0x4172b7('0x170e')]['get']({'userProfileId':_0x456f21[_0x4172b7('0x155f')][_0x4172b7('0x1946')],'sectionId':0x3ec})[_0x4172b7('0x1964')];})[_0x49f809('0x173b')](function(_0x2e0b4a){const _0x2ead37=_0x49f809,_0x9df492=_0x2e0b4a&&_0x2e0b4a[_0x2ead37('0x6aa')]?_0x2e0b4a['rows'][0x0]:null;if(!_0x9df492){const _0x55f415=[];let _0x15f0bf=null;_0x456f21['queueCampaign']&&(_0x15f0bf=_0x3c8d8a()[_0x2ead37('0x18ab')](_0x456f21[_0x2ead37('0x55a')],{'id':Number(_0x456f21[_0x2ead37('0x100f')][_0x2ead37('0x600')])}));for(let _0x55d7a1=0x0;_0x55d7a1<_0x456f21[_0x2ead37('0x55a')]['length'];_0x55d7a1++){_0x15f0bf&&_0x456f21[_0x2ead37('0x55a')][_0x55d7a1]['id']===_0x15f0bf['id']&&(_0x456f21[_0x2ead37('0x55a')][_0x55d7a1]['canSelect']=![],_0x55f415[_0x2ead37('0x18bb')](_0x456f21[_0x2ead37('0x55a')][_0x55d7a1]));}_0x456f21[_0x2ead37('0x55a')]=_0x55f415;}else{if(!_0x9df492[_0x2ead37('0x273e')])return _0x1a9af3['userProfileResource'][_0x2ead37('0x1d97')]({'sectionId':_0x9df492['id']})[_0x2ead37('0x1964')][_0x2ead37('0x173b')](function(_0x4db08b){const _0x25de2f=_0x2ead37,_0x282122=_0x3c8d8a()['map'](_0x4db08b[_0x25de2f('0x6aa')],function(_0x27657e){const _0x29d4d4=_0x25de2f;return _0x3c8d8a()[_0x29d4d4('0x18ab')](_0x456f21['interval'],{'id':_0x27657e['resourceId']});});let _0x36d9ec=null;_0x456f21['queueCampaign']&&(_0x36d9ec=_0x3c8d8a()[_0x25de2f('0x18ab')](_0x456f21[_0x25de2f('0x55a')],{'id':Number(_0x456f21['queueCampaign'][_0x25de2f('0x600')])}));if(_0x36d9ec&&!_0x3c8d8a()[_0x25de2f('0x1ec')](_0x282122,['id',_0x36d9ec['id']])){const _0x49cc3b=_0x3c8d8a()[_0x25de2f('0x18ab')](_0x456f21[_0x25de2f('0x55a')],{'id':_0x36d9ec['id']});_0x49cc3b[_0x25de2f('0x268e')]=![],_0x282122[_0x25de2f('0x18bb')](_0x49cc3b);}_0x456f21[_0x25de2f('0x55a')]=_0x282122;});}})[_0x49f809('0x103c')](function(_0xb61d87){const _0x40b465=_0x49f809;_0x3d4d7b[_0x40b465('0x15aa')]({'title':_0xb61d87['status']?_0x40b465('0x137')+_0xb61d87['status']+'\x20-\x20'+_0xb61d87[_0x40b465('0x2696')]:_0x40b465('0x2419'),'msg':_0xb61d87[_0x40b465('0x1e07')]?JSON[_0x40b465('0x100b')](_0xb61d87[_0x40b465('0x1e07')]):_0xb61d87[_0x40b465('0x1b75')]()});});function _0x542384(){const _0x25b650=_0x49f809;_0x456f21[_0x25b650('0x1d4a')]=[],_0x1a9af3[_0x25b650('0x1282')][_0x25b650('0x1195')](_0x456f21[_0x25b650('0x100f')])[_0x25b650('0x1964')][_0x25b650('0x173b')](function(_0x243422){const _0x159bf1=_0x25b650;_0x456f21['queueCampaigns'][_0x159bf1('0x1377')](_0x243422['toJSON']()),_0x3d4d7b[_0x159bf1('0xdfe')]({'title':'QueueCampaign\x20properly\x20created','msg':_0x456f21['queueCampaign']['name']?_0x456f21[_0x159bf1('0x100f')][_0x159bf1('0x10ad')]+_0x159bf1('0x209a'):''}),_0x4035c1(_0x243422);})[_0x25b650('0x103c')](function(_0x171047){const _0x3f9134=_0x25b650;if(_0x171047[_0x3f9134('0x1e07')]&&_0x171047[_0x3f9134('0x1e07')][_0x3f9134('0x1d4a')]&&_0x171047['data'][_0x3f9134('0x1d4a')][_0x3f9134('0x543')]){_0x456f21[_0x3f9134('0x1d4a')]=_0x171047[_0x3f9134('0x1e07')][_0x3f9134('0x1d4a')]||[{'message':_0x171047[_0x3f9134('0x1b75')](),'type':_0x3f9134('0x347')}];for(let _0x17fbbe=0x0;_0x17fbbe<_0x171047[_0x3f9134('0x1e07')][_0x3f9134('0x1d4a')]['length'];_0x17fbbe+=0x1){_0x3d4d7b[_0x3f9134('0x15aa')]({'title':_0x171047[_0x3f9134('0x1e07')][_0x3f9134('0x1d4a')][_0x17fbbe]['type'],'msg':_0x171047[_0x3f9134('0x1e07')]['errors'][_0x17fbbe][_0x3f9134('0x67f')]});}}else _0x3d4d7b[_0x3f9134('0x15aa')]({'title':_0x171047[_0x3f9134('0x276f')]?_0x3f9134('0x137')+_0x171047['status']+_0x3f9134('0x160c')+_0x171047['statusText']:'api.voiceQueue.save','msg':_0x171047[_0x3f9134('0x1e07')]?JSON[_0x3f9134('0x100b')](_0x171047[_0x3f9134('0x1e07')]['message']):_0x171047[_0x3f9134('0x1b75')]()});});}function _0x131082(){const _0x46b7c3=_0x49f809;_0x456f21[_0x46b7c3('0x1d4a')]=[],_0x1a9af3[_0x46b7c3('0x1282')]['update']({'id':_0x456f21['queueCampaign']['id']},_0x456f21[_0x46b7c3('0x100f')])[_0x46b7c3('0x1964')][_0x46b7c3('0x173b')](function(_0xbea72){const _0x50f123=_0x46b7c3,_0x522f97=_0x3c8d8a()[_0x50f123('0x18ab')](_0x456f21[_0x50f123('0x5d6')],{'id':_0xbea72['id']});_0x522f97&&_0x3c8d8a()[_0x50f123('0x9ef')](_0x522f97,_0x3c8d8a()['pick'](_0xbea72['toJSON'](),_0x3c8d8a()[_0x50f123('0x1d3e')](_0x522f97))),_0x3d4d7b[_0x50f123('0xdfe')]({'title':_0x50f123('0xabb'),'msg':_0x456f21[_0x50f123('0x100f')][_0x50f123('0x10ad')]?_0x456f21[_0x50f123('0x100f')][_0x50f123('0x10ad')]+_0x50f123('0x2788'):''}),_0x4035c1(_0xbea72);})[_0x46b7c3('0x103c')](function(_0x1ca18c){const _0x12a696=_0x46b7c3;if(_0x1ca18c[_0x12a696('0x1e07')]&&_0x1ca18c[_0x12a696('0x1e07')][_0x12a696('0x1d4a')]&&_0x1ca18c[_0x12a696('0x1e07')][_0x12a696('0x1d4a')][_0x12a696('0x543')]){_0x456f21['errors']=_0x1ca18c['data']['errors']||[{'message':_0x1ca18c[_0x12a696('0x1b75')](),'type':_0x12a696('0x210')}];for(let _0x22feae=0x0;_0x22feae<_0x1ca18c[_0x12a696('0x1e07')]['errors']['length'];_0x22feae++){_0x3d4d7b[_0x12a696('0x15aa')]({'title':_0x1ca18c[_0x12a696('0x1e07')][_0x12a696('0x1d4a')][_0x22feae][_0x12a696('0x1810')],'msg':_0x1ca18c[_0x12a696('0x1e07')][_0x12a696('0x1d4a')][_0x22feae][_0x12a696('0x67f')]});}}else _0x3d4d7b[_0x12a696('0x15aa')]({'title':_0x1ca18c[_0x12a696('0x276f')]?_0x12a696('0x137')+_0x1ca18c[_0x12a696('0x276f')]+'\x20-\x20'+_0x1ca18c[_0x12a696('0x2696')]:'api.voiceQueue.update','msg':_0x1ca18c['data']?JSON[_0x12a696('0x100b')](_0x1ca18c[_0x12a696('0x1e07')]['message']):_0x1ca18c['toString']()});});}function _0x2f839d(_0x1b15d4){const _0x518345=_0x49f809;_0x456f21[_0x518345('0x1d4a')]=[];const _0xeb2958=_0xc7fef2[_0x518345('0x1d02')]()[_0x518345('0x20d6')](_0x518345('0x8ef'))[_0x518345('0x732')](_0x518345('0x1041'))[_0x518345('0x217')](_0x518345('0x18e8'))['ok']('Delete')[_0x518345('0x1e1f')](_0x518345('0x1d4e'))[_0x518345('0x21de')](_0x1b15d4);_0xc7fef2[_0x518345('0x1cb7')](_0xeb2958)[_0x518345('0x173b')](function(){const _0x5c5f86=_0x518345;_0x1a9af3['voiceQueue'][_0x5c5f86('0x15e8')]({'id':_0x456f21['queueCampaign']['id']})[_0x5c5f86('0x1964')]['then'](function(){const _0x5cd46b=_0x5c5f86;_0x3c8d8a()[_0x5cd46b('0x1a8b')](_0x456f21['queueCampaigns'],{'id':_0x456f21[_0x5cd46b('0x100f')]['id']}),_0x3d4d7b['success']({'title':_0x5cd46b('0x18c0'),'msg':(_0x456f21[_0x5cd46b('0x100f')][_0x5cd46b('0x10ad')]||_0x5cd46b('0x100f'))+_0x5cd46b('0x25d2')}),_0x4035c1(_0x456f21[_0x5cd46b('0x100f')]);})[_0x5c5f86('0x103c')](function(_0x21155f){const _0x319544=_0x5c5f86;if(_0x21155f[_0x319544('0x1e07')]&&_0x21155f[_0x319544('0x1e07')]['errors']&&_0x21155f['data'][_0x319544('0x1d4a')][_0x319544('0x543')]){_0x456f21['errors']=_0x21155f[_0x319544('0x1e07')][_0x319544('0x1d4a')]||[{'message':_0x21155f['toString'](),'type':_0x319544('0x221b')}];for(let _0x565d8d=0x0;_0x565d8d<_0x21155f[_0x319544('0x1e07')][_0x319544('0x1d4a')]['length'];_0x565d8d++){_0x3d4d7b[_0x319544('0x15aa')]({'title':_0x21155f[_0x319544('0x1e07')][_0x319544('0x1d4a')][_0x565d8d][_0x319544('0x1810')],'msg':_0x21155f[_0x319544('0x1e07')][_0x319544('0x1d4a')][_0x565d8d]['message']});}}else _0x3d4d7b[_0x319544('0x15aa')]({'title':_0x21155f['status']?_0x319544('0x137')+_0x21155f['status']+_0x319544('0x160c')+_0x21155f['statusText']:'api.voiceQueue.delete','msg':_0x21155f[_0x319544('0x1e07')]?JSON[_0x319544('0x100b')](_0x21155f['data'][_0x319544('0x67f')]):_0x21155f['message']||_0x21155f['toString']()});});},function(){});}function _0x23b6c0(_0x139854){return _0x139854===null?undefined:new Date(_0x139854);}function _0x4035c1(_0x3e823e){_0xc7fef2['hide'](_0x3e823e);}}const _0x4be4bd=_0xf13e01;_0x4c1eae[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x100f'),_0x566993('0x5d6'),_0x566993('0x12a7'),'$translate',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4c1eae(_0x502207,_0x157d88,_0x48a1ef,_0x303312,_0xff0eef,_0x211e80,_0x163632,_0x4a163b,_0xdfa654,_0x26ff42){const _0x43d5f1=_0x566993,_0x5a1b48=this;_0x5a1b48[_0x43d5f1('0x155f')]=_0xdfa654[_0x43d5f1('0x14d4')](),_0x5a1b48[_0x43d5f1('0x100f')]=_0xff0eef,_0x5a1b48[_0x43d5f1('0x1dc1')]=_0x26ff42,_0x5a1b48[_0x43d5f1('0x1692')]=0x0,_0x5a1b48[_0x43d5f1('0x12a7')]=_0x163632,_0x5a1b48[_0x43d5f1('0x1b1f')]=[],_0x5a1b48[_0x43d5f1('0x203e')]=[],_0x5a1b48[_0x43d5f1('0x5f8')]=[],_0x5a1b48[_0x43d5f1('0x1493')]=[],_0x5a1b48[_0x43d5f1('0x15c9')]=[],_0x5a1b48[_0x43d5f1('0x277e')]=![],_0x5a1b48[_0x43d5f1('0x2535')]=_0x42c84a,_0x5a1b48[_0x43d5f1('0x21dc')]=_0x42cf9e,_0x5a1b48[_0x43d5f1('0x18e2')]=_0x37634f,_0x5a1b48[_0x43d5f1('0x52e')]={'readOnly':!_0x5a1b48['crudPermissions'][_0x43d5f1('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x43d5f1('0x10ad'),'line1':_0x43d5f1('0x572'),'line2':['name',_0x43d5f1('0x138c')],'line3':_0x43d5f1('0x1692'),'labelAll':_0x4a163b[_0x43d5f1('0x1467')](_0x43d5f1('0x2585')),'labelSelected':_0x4a163b['instant'](_0x43d5f1('0x23e0')),'transferCallback':function(_0xb90890,_0x334ea8){const _0x3344e9=_0x43d5f1;_0x334ea8?_0xb90890['forEach'](function(_0x5ee958){const _0x336c69=a0_0xde5e;_0x5ee958[_0x336c69('0x1692')]=undefined;}):_0xb90890[_0x3344e9('0xa6a')](function(_0x4c4b90){const _0xf8f63d=_0x3344e9;_0x4c4b90['penalty']=_0xf8f63d('0x1929')+_0x5a1b48[_0xf8f63d('0x1692')];});const _0x36f828=_0x3c8d8a()[_0x3344e9('0x461')](_0x5a1b48['startingSelectedItems'],_0x5a1b48[_0x3344e9('0x5f8')],function(_0x10a139,_0x1bdc38){const _0x3adc19=_0x3344e9;return _0x10a139['id']===_0x1bdc38['id']&&_0x10a139[_0x3adc19('0x1692')]===_0x1bdc38[_0x3adc19('0x1692')];});_0x5a1b48['pendingChanges']=_0x3c8d8a()[_0x3344e9('0x1a56')](_0x36f828)?![]:!![];}};function _0x42c84a(){const _0xa9e182=_0x43d5f1;return _0xdfa654[_0xa9e182('0x1b4e')](_0xa9e182('0x79b'))?_0x214624()[_0xa9e182('0x103c')](function(_0x1b1986){const _0x421389=_0xa9e182;_0x48a1ef['error']({'title':_0x1b1986[_0x421389('0x276f')]?_0x421389('0x137')+_0x1b1986[_0x421389('0x276f')]+_0x421389('0x160c')+_0x1b1986[_0x421389('0x2696')]:_0x421389('0x152b'),'msg':_0x1b1986[_0x421389('0x276f')]?JSON['stringify'](_0x1b1986[_0x421389('0x1e07')]):_0x1b1986[_0x421389('0x1b75')]()});}):_0x45e49d()[_0xa9e182('0x173b')](function(_0x459092){const _0x439937=_0xa9e182;return _0x5a1b48[_0x439937('0x17c9')]=_0x459092,_0x214624();})[_0xa9e182('0x103c')](function(_0x4f3caf){const _0x16bdf2=_0xa9e182;_0x48a1ef['error']({'title':_0x4f3caf[_0x16bdf2('0x276f')]?_0x16bdf2('0x137')+_0x4f3caf[_0x16bdf2('0x276f')]+_0x16bdf2('0x160c')+_0x4f3caf['statusText']:_0x16bdf2('0x152b'),'msg':_0x4f3caf[_0x16bdf2('0x276f')]?JSON['stringify'](_0x4f3caf[_0x16bdf2('0x1e07')]):_0x4f3caf['toString']()});});}function _0x45e49d(){return _0x157d88(function(_0x5bc144,_0x1f43d8){const _0x194e7b=a0_0xde5e;_0x303312['userProfileSection'][_0x194e7b('0x1d97')]({'userProfileId':_0x5a1b48['currentUser']['userProfileId'],'name':_0x194e7b('0x1272')})[_0x194e7b('0x1964')]['then'](function(_0x583429){const _0x4a07e2=_0x194e7b,_0x5858f7=_0x583429&&_0x583429[_0x4a07e2('0x6aa')]?_0x583429[_0x4a07e2('0x6aa')][0x0]:null;_0x5bc144(_0x5858f7);})[_0x194e7b('0x103c')](function(_0x2a879c){_0x1f43d8(_0x2a879c);});});}function _0x214624(){return _0x157d88(function(_0x250008,_0x4a70c1){const _0x5da6ed=a0_0xde5e;return _0x4dc534()[_0x5da6ed('0x173b')](function(_0x46dff5){const _0x4abdc9=_0x5da6ed;return _0x5a1b48[_0x4abdc9('0x1b1f')]=_0x46dff5[_0x4abdc9('0x6aa')]?_0x46dff5[_0x4abdc9('0x6aa')]:[],_0xdfa654['hasRole'](_0x4abdc9('0x79b'))?_0x46dff5:_0x5a1b48['section']?_0x5a1b48['section'][_0x4abdc9('0x273e')]?_0x46dff5:_0x281777():null;})['then'](function(_0xc6a38){const _0x2b33ed=_0x5da6ed,_0x21f3c5=_0xc6a38&&_0xc6a38['rows']?_0xc6a38[_0x2b33ed('0x6aa')]:[];return _0x5a1b48[_0x2b33ed('0x203e')]=_0x3c8d8a()[_0x2b33ed('0x8a2')](_0x21f3c5,function(_0x4514ae){const _0x58edc5=_0x2b33ed;return _0x3c8d8a()[_0x58edc5('0x18ab')](_0x5a1b48[_0x58edc5('0x1b1f')],{'id':_0xdfa654[_0x58edc5('0x1b4e')](_0x58edc5('0x79b'))||_0x5a1b48[_0x58edc5('0x17c9')][_0x58edc5('0x273e')]?_0x4514ae['id']:_0x4514ae[_0x58edc5('0x1ce0')]});}),_0x5a1b48[_0x2b33ed('0x1493')]=angular[_0x2b33ed('0x2e3')](_0x5a1b48['allowedItems']),_0x5a1b48[_0x2b33ed('0x1b1f')][_0x2b33ed('0xa6a')](function(_0x31ffa7){const _0x135ffb=_0x2b33ed,_0x46c03f=_0x3c8d8a()[_0x135ffb('0x18ab')](_0x5a1b48[_0x135ffb('0x203e')],{'id':_0x31ffa7['id']});_0xdfa654[_0x135ffb('0x1b4e')](_0x135ffb('0x79b'))?_0x31ffa7[_0x135ffb('0xf02')]=!![]:_0x31ffa7[_0x135ffb('0xf02')]=typeof _0x46c03f!==_0x135ffb('0x6e5')?!![]:![];}),_0x5b4557();})[_0x5da6ed('0x173b')](function(_0x18d3c2){const _0x53bb1c=_0x5da6ed,_0x17dafa=_0x18d3c2&&_0x18d3c2[_0x53bb1c('0x6aa')]?_0x18d3c2['rows']:[];_0x5a1b48[_0x53bb1c('0x5f8')]=_0x3c8d8a()[_0x53bb1c('0x8a2')](_0x17dafa,function(_0x2b8da2){const _0x48afec=_0x53bb1c,_0x6133b8=_0x3c8d8a()['find'](_0x5a1b48['items'],{'id':_0x2b8da2['id']});return _0x6133b8[_0x48afec('0x1692')]=_0x2b8da2['UserVoiceQueue']?_0x48afec('0x1929')+_0x2b8da2[_0x48afec('0x2639')]['penalty']:'',_0x6133b8[_0x48afec('0x138c')]=typeof _0x2b8da2[_0x48afec('0x138c')]!==_0x48afec('0x6e5')?'<'+_0x2b8da2[_0x48afec('0x138c')]+'>':'',_0x6133b8;}),_0x5a1b48[_0x53bb1c('0x15c9')]=angular[_0x53bb1c('0x2e3')](_0x5a1b48['selectedItems']),_0x5a1b48[_0x53bb1c('0x52e')][_0x53bb1c('0x5f8')]=_0x5a1b48['selectedItems'],_0x5a1b48[_0x53bb1c('0x52e')]['items']=_0x3c8d8a()[_0x53bb1c('0x1bd3')](_0x5a1b48[_0x53bb1c('0x203e')],_0x5a1b48[_0x53bb1c('0x52e')][_0x53bb1c('0x5f8')],'id'),_0x250008();})[_0x5da6ed('0x103c')](function(_0x435ac7){_0x4a70c1(_0x435ac7);});});}function _0x281777(){return _0x157d88(function(_0x58a76,_0x4525ff){const _0x1b41f0=a0_0xde5e;return _0x303312[_0x1b41f0('0xda9')][_0x1b41f0('0x1d97')]({'sectionId':_0x5a1b48['section']['id'],'nolimit':!![]})[_0x1b41f0('0x1964')][_0x1b41f0('0x173b')](function(_0x37e467){_0x58a76(_0x37e467);})[_0x1b41f0('0x103c')](function(_0x28df92){_0x4525ff(_0x28df92);});});}function _0x5b4557(){return _0x157d88(function(_0xfa5651,_0x357668){const _0x2c65c1=a0_0xde5e;return _0x303312[_0x2c65c1('0x1282')][_0x2c65c1('0x1903')]({'id':_0x5a1b48[_0x2c65c1('0x100f')]['id'],'fields':_0x2c65c1('0x1d65'),'nolimit':!![],'role':_0x2c65c1('0x7b0')})[_0x2c65c1('0x1964')][_0x2c65c1('0x173b')](function(_0x516ee0){_0xfa5651(_0x516ee0);})['catch'](function(_0xb39eb){_0x357668(_0xb39eb);});});}function _0x4dc534(){return _0x157d88(function(_0x37c4bf,_0x520d81){const _0x2bd0bc=a0_0xde5e;return _0x303312[_0x2bd0bc('0x166f')]['get']({'fields':_0x2bd0bc('0x1d65'),'nolimit':!![],'role':_0x2bd0bc('0x7b0')})[_0x2bd0bc('0x1964')]['then'](function(_0x190cb5){_0x37c4bf(_0x190cb5);})[_0x2bd0bc('0x103c')](function(_0x1519ff){_0x520d81(_0x1519ff);});});}function _0x46370a(_0x166541){return _0x157d88(function(_0x41f485,_0x41749e){const _0x415bef=a0_0xde5e;if(_0x3c8d8a()[_0x415bef('0x1a56')](_0x166541))_0x41f485();else{const _0x4aeef4=[],_0x5412c5=_0x3c8d8a()['groupBy'](_0x166541,_0x415bef('0x1692'));for(let _0x231b09=0x0;_0x231b09'+_0x1d6813('0xd23'))[_0x1d6813('0x217')](_0x1d6813('0xf09'))['targetEvent'](_0x3acc4f)['ok']('OK')[_0x1d6813('0x1e1f')]('CANCEL');_0x311137['show'](_0x468ab6)[_0x1d6813('0x173b')](function(){_0x5122fd(_0x195a98);},function(){const _0x340a20=_0x1d6813;console['log'](_0x340a20('0x468'));});}function _0x196d9c(_0xd394fb){_0x505ee1['queueCampaignHopperBlacks']=_0xd394fb||{'count':0x0,'rows':[]};}function _0x2710b6(){const _0x286018=_0x4a7efa;_0x505ee1[_0x286018('0xc49')][_0x286018('0x17f0')]=(_0x505ee1['query'][_0x286018('0x182e')]-0x1)*_0x505ee1['query'][_0x286018('0x3e')],_0x505ee1[_0x286018('0x2219')]=_0x4cf1f0[_0x286018('0x1282')][_0x286018('0x177c')](_0x505ee1[_0x286018('0xc49')],_0x196d9c)[_0x286018('0x1964')];}function _0x5122fd(_0x1a5846){const _0x1847ac=_0x4a7efa;_0x4cf1f0[_0x1847ac('0x71a')][_0x1847ac('0x15e8')]({'id':_0x1a5846['id']})['$promise'][_0x1847ac('0x173b')](function(){const _0x485e3f=_0x1847ac;_0x3c8d8a()[_0x485e3f('0x1a8b')](_0x505ee1[_0x485e3f('0x13d5')][_0x485e3f('0x6aa')],{'id':_0x1a5846['id']}),_0x505ee1[_0x485e3f('0x13d5')][_0x485e3f('0x1a2f')]-=0x1,!_0x505ee1[_0x485e3f('0x13d5')][_0x485e3f('0x6aa')][_0x485e3f('0x543')]&&_0x2710b6(),_0x516c6d[_0x485e3f('0xdfe')]({'title':_0x485e3f('0x1277'),'msg':_0x1a5846[_0x485e3f('0x10ad')]?_0x1a5846['name']+_0x485e3f('0x25d2'):''});})[_0x1847ac('0x103c')](function(_0x42da00){const _0x971114=_0x1847ac;if(_0x42da00[_0x971114('0x1e07')]&&_0x42da00[_0x971114('0x1e07')][_0x971114('0x1d4a')]&&_0x42da00[_0x971114('0x1e07')]['errors']['length']){_0x505ee1[_0x971114('0x1d4a')]=_0x42da00['data']['errors']||[{'message':_0x42da00[_0x971114('0x1b75')](),'type':_0x971114('0x27a5')}];for(let _0x46566c=0x0;_0x46566c<_0x42da00['data'][_0x971114('0x1d4a')][_0x971114('0x543')];_0x46566c++){_0x516c6d[_0x971114('0x15aa')]({'title':_0x42da00['data'][_0x971114('0x1d4a')][_0x46566c][_0x971114('0x1810')],'msg':_0x42da00[_0x971114('0x1e07')][_0x971114('0x1d4a')][_0x46566c][_0x971114('0x67f')]});}}else _0x516c6d[_0x971114('0x15aa')]({'title':_0x42da00[_0x971114('0x276f')]?'API:'+_0x42da00[_0x971114('0x276f')]+_0x971114('0x160c')+_0x42da00[_0x971114('0x2696')]:_0x971114('0x27a5'),'msg':_0x42da00[_0x971114('0x1e07')]?JSON[_0x971114('0x100b')](_0x42da00[_0x971114('0x1e07')][_0x971114('0x67f')]):_0x42da00[_0x971114('0x67f')]||_0x42da00[_0x971114('0x1b75')]()});});}function _0x1a71f0(){const _0x4c2b96=_0x4a7efa,_0x5d7c84=angular['copy'](_0x505ee1[_0x4c2b96('0x26d8')]);return _0x505ee1['selectedQueueCampaignHopperBlacks']=[],_0x5d7c84;}function _0xf6bd4c(_0x16ff42){const _0x289423=_0x4a7efa,_0x1bc876=_0x311137[_0x289423('0x1d02')]()[_0x289423('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?')[_0x289423('0xf8b')](_0x289423('0x15b9')+_0x505ee1['selectedQueueCampaignHopperBlacks'][_0x289423('0x543')]+'\x20selected'+_0x289423('0xd23'))[_0x289423('0x217')](_0x289423('0x7f8'))[_0x289423('0x21de')](_0x16ff42)['ok']('OK')[_0x289423('0x1e1f')](_0x289423('0x468'));_0x311137[_0x289423('0x1cb7')](_0x1bc876)[_0x289423('0x173b')](function(){const _0x529606=_0x289423;_0x505ee1[_0x529606('0x26d8')][_0x529606('0xa6a')](function(_0x434436){_0x5122fd(_0x434436);}),_0x505ee1['selectedQueueCampaignHopperBlacks']=[];});}let _0x13a241=!![],_0x200e6e=0x1;_0x153c59['$watch'](_0x4a7efa('0x5b8'),function(_0x2f8ec3,_0x47f43a){const _0x406da1=_0x4a7efa;_0x13a241?_0x28fb7c(function(){_0x13a241=![];}):(!_0x47f43a&&(_0x200e6e=_0x505ee1[_0x406da1('0xc49')][_0x406da1('0x182e')]),_0x2f8ec3!==_0x47f43a&&(_0x505ee1[_0x406da1('0xc49')][_0x406da1('0x182e')]=0x1),!_0x2f8ec3&&(_0x505ee1[_0x406da1('0xc49')]['page']=_0x200e6e),_0x2710b6());});}const _0x3cf5ac=_0x5edd1a;_0x20fd45[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),'Auth'];function _0x20fd45(_0x5ac698,_0xe82fcb,_0x381b76,_0x5deccc,_0x1c6714,_0x554a90,_0x129c12,_0x4608d1,_0x6f06ea,_0x4716a9,_0x5ee040){const _0x59ad0f=_0x566993,_0x3d246f=this;_0x3d246f['currentUser']=_0x5ee040[_0x59ad0f('0x14d4')](),_0x3d246f[_0x59ad0f('0xd53')]={},_0x3d246f[_0x59ad0f('0x100f')]={},_0x3d246f[_0x59ad0f('0xbf2')]={'count':0x0,'rows':[]},_0x3d246f['selectedQueueCampaignHopperFinals']=[],_0x3d246f['crudPermissions'],_0x3d246f[_0x59ad0f('0xc49')]={'fields':_0x59ad0f('0x20d9'),'sort':_0x59ad0f('0x9a8'),'limit':0xa,'page':0x1},_0x3d246f[_0x59ad0f('0xb9c')]=_0x56e67b,_0x3d246f[_0x59ad0f('0x2051')]=_0x1371c9,_0x3d246f[_0x59ad0f('0xdfe')]=_0x5e47fd,_0x3d246f[_0x59ad0f('0xea8')]=_0x171426,_0x3d246f[_0x59ad0f('0x1a8a')]=_0x183350,_0x3d246f['deleteQueueCampaignHopperFinal']=_0x501210,_0x3d246f['deleteSelectedQueueCampaignHopperFinals']=_0xba8d6d,_0x3d246f[_0x59ad0f('0x109f')]=_0x153e3b,_0x3d246f[_0x59ad0f('0x17ba')]=_0x5d6285,_0x3d246f[_0x59ad0f('0x1a13')]=_0x66c0b9,_0x3d246f[_0x59ad0f('0x22cd')]=_0x29dd44,_0x3d246f['moveSelectedQueueCampaignHopperFinals']=_0xa4add2;function _0x56e67b(_0x45e68e,_0x223e7a){const _0x5f3fc3=_0x59ad0f;_0x3d246f['queueCampaign']=_0x45e68e,_0x3d246f['crudPermissions']=typeof _0x223e7a!=='undefined'?_0x223e7a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3d246f[_0x5f3fc3('0xc49')][_0x5f3fc3('0x11c9')]=_0x3d246f[_0x5f3fc3('0x100f')]['id'],_0x3d246f[_0x5f3fc3('0xc49')]['id']=_0x3d246f[_0x5f3fc3('0x100f')]['id'],_0x171426();}function _0x1371c9(_0x5d70f1,_0x2871eb){const _0x435e33=_0x59ad0f,_0x125f3a=_0x129c12['confirm']()[_0x435e33('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?')[_0x435e33('0xf8b')](_0x435e33('0x15b9')+(_0x5d70f1[_0x435e33('0x10ad')]||_0x5d70f1['id']&&_0x3c8d8a()[_0x435e33('0x5ba')](_0x435e33('0xe2a'))+_0x5d70f1['id']||'hopperFinal')+_0x435e33('0x24be')+'\x20will\x20be\x20deleted.')[_0x435e33('0x217')](_0x435e33('0x1638'))[_0x435e33('0x21de')](_0x2871eb)['ok']('OK')[_0x435e33('0x1e1f')](_0x435e33('0x468'));_0x129c12[_0x435e33('0x1cb7')](_0x125f3a)[_0x435e33('0x173b')](function(){_0x501210(_0x5d70f1);},function(){const _0x560668=_0x435e33;console[_0x560668('0xe37')](_0x560668('0x468'));});}function _0x5e47fd(_0x4d87cd){const _0x3e1878=_0x59ad0f;_0x3d246f[_0x3e1878('0xbf2')]=_0x4d87cd||{'count':0x0,'rows':[]};}function _0x171426(){const _0x25d5a7=_0x59ad0f;_0x3d246f[_0x25d5a7('0xc49')][_0x25d5a7('0x17f0')]=(_0x3d246f[_0x25d5a7('0xc49')][_0x25d5a7('0x182e')]-0x1)*_0x3d246f[_0x25d5a7('0xc49')][_0x25d5a7('0x3e')],_0x3d246f[_0x25d5a7('0x2219')]=_0x4716a9[_0x25d5a7('0x1282')]['getHopperFinals'](_0x3d246f['query'],_0x5e47fd)[_0x25d5a7('0x1964')];}function _0x501210(_0x1862aa){const _0x3e08b7=_0x59ad0f;_0x4716a9[_0x3e08b7('0x8f6')][_0x3e08b7('0x15e8')]({'id':_0x1862aa['id']})[_0x3e08b7('0x1964')][_0x3e08b7('0x173b')](function(){const _0x32c785=_0x3e08b7;_0x3c8d8a()['remove'](_0x3d246f[_0x32c785('0xbf2')][_0x32c785('0x6aa')],{'id':_0x1862aa['id']}),_0x3d246f[_0x32c785('0xbf2')][_0x32c785('0x1a2f')]-=0x1,!_0x3d246f[_0x32c785('0xbf2')][_0x32c785('0x6aa')][_0x32c785('0x543')]&&_0x171426(),_0x6f06ea[_0x32c785('0xdfe')]({'title':_0x32c785('0x1ca0'),'msg':_0x1862aa['name']?_0x1862aa['name']+_0x32c785('0x25d2'):''});})[_0x3e08b7('0x103c')](function(_0x45970d){const _0x37cead=_0x3e08b7;if(_0x45970d[_0x37cead('0x1e07')]&&_0x45970d[_0x37cead('0x1e07')][_0x37cead('0x1d4a')]&&_0x45970d[_0x37cead('0x1e07')][_0x37cead('0x1d4a')][_0x37cead('0x543')]){_0x3d246f[_0x37cead('0x1d4a')]=_0x45970d[_0x37cead('0x1e07')]['errors']||[{'message':_0x45970d[_0x37cead('0x1b75')](),'type':'SYSTEM:GETvoiceQueue'}];for(let _0x2ddce3=0x0;_0x2ddce3<_0x45970d[_0x37cead('0x1e07')][_0x37cead('0x1d4a')][_0x37cead('0x543')];_0x2ddce3++){_0x6f06ea['error']({'title':_0x45970d[_0x37cead('0x1e07')]['errors'][_0x2ddce3]['type'],'msg':_0x45970d[_0x37cead('0x1e07')][_0x37cead('0x1d4a')][_0x2ddce3]['message']});}}else _0x6f06ea[_0x37cead('0x15aa')]({'title':_0x45970d[_0x37cead('0x276f')]?_0x37cead('0x137')+_0x45970d[_0x37cead('0x276f')]+_0x37cead('0x160c')+_0x45970d['statusText']:_0x37cead('0x27a5'),'msg':_0x45970d[_0x37cead('0x1e07')]?JSON[_0x37cead('0x100b')](_0x45970d['data']['message']):_0x45970d[_0x37cead('0x67f')]||_0x45970d['toString']()});});}function _0x183350(){const _0x4ab69b=_0x59ad0f,_0xaffb12=angular['copy'](_0x3d246f['selectedQueueCampaignHopperFinals']);return _0x3d246f[_0x4ab69b('0x2822')]=[],_0xaffb12;}function _0xba8d6d(_0x525115){const _0x2d9cd7=_0x59ad0f,_0x10e08a=_0x129c12[_0x2d9cd7('0x1d02')]()[_0x2d9cd7('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?')[_0x2d9cd7('0xf8b')](''+_0x3d246f[_0x2d9cd7('0x2822')][_0x2d9cd7('0x543')]+_0x2d9cd7('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20hopperFinals')[_0x2d9cd7('0x21de')](_0x525115)['ok']('OK')['cancel'](_0x2d9cd7('0x468'));_0x129c12[_0x2d9cd7('0x1cb7')](_0x10e08a)['then'](function(){const _0x2ae24c=_0x2d9cd7;_0x3d246f[_0x2ae24c('0x2822')][_0x2ae24c('0xa6a')](function(_0xa6655c){_0x501210(_0xa6655c);}),_0x3d246f[_0x2ae24c('0x2822')]=[];});}function _0x5d6285(_0x53c109){const _0xe5af95=_0x59ad0f;_0x4716a9['cmHopperFinal']['moveContactsQueueCampaignHopperFinal']({'id':_0x3d246f[_0xe5af95('0xc49')]['id'],'state':_0x53c109})[_0xe5af95('0x1964')][_0xe5af95('0x173b')](function(_0x4975f2){const _0x5b3eb6=_0xe5af95;_0x3c8d8a()[_0x5b3eb6('0x7d5')](_0x4975f2)&&_0x3c8d8a()[_0x5b3eb6('0x7d5')](_0x4975f2[0x0])?_0x6f06ea[_0x5b3eb6('0x2787')]({'title':_0x5b3eb6('0x184c'),'msg':'0'}):_0x6f06ea['info']({'title':'Restored\x20Contacts','msg':JSON[_0x5b3eb6('0x100b')](_0x4975f2[0x0]['affectedRows'])});})[_0xe5af95('0x103c')](function(_0xa75957){const _0x14fb24=_0xe5af95;_0x6f06ea['error']({'title':_0xa75957[_0x14fb24('0x276f')]?'API:'+_0xa75957[_0x14fb24('0x276f')]+_0x14fb24('0x160c')+_0xa75957[_0x14fb24('0x2696')]:_0x14fb24('0x27a5'),'msg':_0xa75957['data']?JSON['stringify'](_0xa75957['data'][_0x14fb24('0x67f')]):_0xa75957[_0x14fb24('0x67f')]||_0xa75957[_0x14fb24('0x1b75')]()});});}function _0x66c0b9(_0x3766f3){const _0x2cdbb1=_0x59ad0f;_0x4716a9[_0x2cdbb1('0x1ccf')][_0x2cdbb1('0x1a13')]({'id':_0x3766f3})[_0x2cdbb1('0x1964')]['then'](function(_0x126b58){const _0x2c763b=_0x2cdbb1;_0x3c8d8a()['merge'](_0x3d246f[_0x2c763b('0xd53')],_0x126b58[0x0]);})[_0x2cdbb1('0x103c')](function(_0x1d4f87){const _0x243e4c=_0x2cdbb1;_0x6f06ea[_0x243e4c('0x15aa')]({'title':_0x1d4f87[_0x243e4c('0x276f')]?_0x243e4c('0x137')+_0x1d4f87['status']+_0x243e4c('0x160c')+_0x1d4f87[_0x243e4c('0x2696')]:_0x243e4c('0x27a5'),'msg':_0x1d4f87[_0x243e4c('0x1e07')]?JSON[_0x243e4c('0x100b')](_0x1d4f87[_0x243e4c('0x1e07')]['message']):_0x1d4f87[_0x243e4c('0x67f')]||_0x1d4f87['toString']()});});}function _0xa4add2(_0x2a5d3e){const _0x18392c=_0x59ad0f,_0x259fb2=_0x129c12['confirm']()[_0x18392c('0x20d6')](_0x18392c('0x15a5'))[_0x18392c('0xf8b')]('\x20Contacts\x20selected'+_0x18392c('0x1b33'))[_0x18392c('0x217')](_0x18392c('0x8aa'))[_0x18392c('0x21de')](_0x2a5d3e)['ok']('OK')[_0x18392c('0x1e1f')](_0x18392c('0x468'));_0x129c12['show'](_0x259fb2)['then'](function(){const _0x3faac1=_0x18392c;_0x3d246f[_0x3faac1('0x2822')][_0x3faac1('0xa6a')](function(_0x5ccea7){_0x153e3b(_0x5ccea7);}),_0x3d246f[_0x3faac1('0x2822')]=[];});}function _0x29dd44(_0x263091,_0x1c4a0f){const _0x1cd9ae=_0x59ad0f,_0x1e8441=_0x129c12[_0x1cd9ae('0x1d02')]()[_0x1cd9ae('0x20d6')](_0x1cd9ae('0x1529'))[_0x1cd9ae('0xf8b')](_0x1cd9ae('0x15b9')+_0x1cd9ae('0x1f70')+_0x1cd9ae('0x24be')+_0x1cd9ae('0x1b33'))[_0x1cd9ae('0x217')](_0x1cd9ae('0xa2e'))['targetEvent'](_0x1c4a0f)['ok']('OK')[_0x1cd9ae('0x1e1f')](_0x1cd9ae('0x468'));_0x129c12[_0x1cd9ae('0x1cb7')](_0x1e8441)[_0x1cd9ae('0x173b')](function(){_0x153e3b(_0x263091);},function(){const _0x3591d3=_0x1cd9ae;console['log'](_0x3591d3('0x468'));});}function _0x5953f5(_0x3d8362){const _0x352d6c=_0x59ad0f,_0x491196={};return _0x491196['phone']=_0x3d8362['calleridnum'],_0x491196[_0x352d6c('0x1b55')]=_0x156524()()[_0x352d6c('0xddc')](_0x352d6c('0xf5f')),_0x491196[_0x352d6c('0x9a4')]=0x0,_0x491196['countcongestionretry']=0x0,_0x491196['countnoanswerretry']=0x0,_0x491196[_0x352d6c('0x913')]=0x0,_0x491196[_0x352d6c('0x283f')]=_0x3d8362['ContactId'],_0x491196[_0x352d6c('0xef2')]=_0x3d8362[_0x352d6c('0xef2')],_0x491196[_0x352d6c('0x181c')]=_0x3d8362[_0x352d6c('0x8e5')]?null:_0x3d8362[_0x352d6c('0x181c')],_0x491196['VoiceQueueId']=_0x3d8362[_0x352d6c('0x11c9')],_0x491196[_0x352d6c('0x1659')]=_0x3d8362['CampaignId'],_0x491196[_0x352d6c('0xb3')]=_0x3d8362['recallme']?0x3:0x2,_0x491196[_0x352d6c('0x5f1')]=_0x3d8362[_0x352d6c('0x5f1')]?!![]:![],_0x491196;}function _0x199b03(_0x38dace){const _0x5ceaa1=_0x59ad0f,_0x394447={};return _0x394447['calleridnum']=_0x38dace[_0x5ceaa1('0x1c99')],_0x394447[_0x5ceaa1('0x1163')]=_0x38dace[_0x5ceaa1('0x1163')],_0x394447[_0x5ceaa1('0x1b55')]=_0x156524()()[_0x5ceaa1('0xddc')](_0x5ceaa1('0xf5f')),_0x394447['countbusyretry']=_0x38dace[_0x5ceaa1('0x9a4')],_0x394447[_0x5ceaa1('0x4ee')]=_0x38dace[_0x5ceaa1('0x4ee')],_0x394447[_0x5ceaa1('0x2536')]=_0x38dace['countnoanswerretry'],_0x394447[_0x5ceaa1('0x913')]=_0x38dace[_0x5ceaa1('0x913')],_0x394447[_0x5ceaa1('0x283f')]=_0x38dace[_0x5ceaa1('0x283f')],_0x394447[_0x5ceaa1('0xef2')]=_0x38dace['ListId'],_0x394447[_0x5ceaa1('0x181c')]=_0x5ee040[_0x5ceaa1('0x14d4')]()['id'],_0x394447[_0x5ceaa1('0x11c9')]=_0x38dace[_0x5ceaa1('0x11c9')],_0x394447[_0x5ceaa1('0x1659')]=_0x38dace[_0x5ceaa1('0x1659')],_0x394447[_0x5ceaa1('0x1535')]=_0x156524()()[_0x5ceaa1('0xddc')]('YYYY-MM-DD\x20HH:mm:ss'),_0x394447[_0x5ceaa1('0x547')]=!![],_0x394447['state']=0x19,_0x394447['statedesc']=_0x5ceaa1('0x345'),_0x394447[_0x5ceaa1('0x1983')]=_0x38dace[_0x5ceaa1('0x1983')],_0x394447['campaigntype']=_0x38dace[_0x5ceaa1('0x11c9')]?'queue':'ivr',_0x394447;}function _0x153e3b(_0x504ada){const _0x2c37f5=_0x59ad0f;_0x4716a9[_0x2c37f5('0x1ccf')]['checkContactHopper'](_0x504ada)['$promise'][_0x2c37f5('0x173b')](function(_0x845dc9){const _0x3a63fd=_0x2c37f5;_0x6f06ea[_0x3a63fd('0x2787')]({'title':_0x3a63fd('0x1a41'),'msg':'Contact\x20ID\x20'+_0x845dc9[_0x3a63fd('0x283f')]});})[_0x2c37f5('0x103c')](function(_0xe9c440){const _0x17dcd7=_0x2c37f5;_0xe9c440[_0x17dcd7('0x1e07')]===_0x17dcd7('0x1e0c')?_0x4716a9[_0x17dcd7('0x1f4f')][_0x17dcd7('0x1195')](_0x5953f5(_0x504ada))[_0x17dcd7('0x1964')][_0x17dcd7('0x173b')](function(_0x256db6){const _0x414325=_0x17dcd7;_0x6f06ea[_0x414325('0x2787')]({'title':_0x414325('0x1105'),'msg':'Contact\x20ID\x20'+_0x256db6['ContactId']}),_0x256db6['ContactId']&&_0x4716a9[_0x414325('0x325')][_0x414325('0x1195')](_0x199b03(_0x504ada));})[_0x17dcd7('0x103c')](function(_0x222a64){const _0x16ddd4=_0x17dcd7;!_0x3c8d8a()[_0x16ddd4('0x7d5')](_0x222a64[_0x16ddd4('0x1e07')])&&_0x222a64[_0x16ddd4('0x1e07')][_0x16ddd4('0x67f')]==='Validation\x20error'?_0x6f06ea[_0x16ddd4('0x2787')]({'title':_0x16ddd4('0x1a41'),'msg':_0x16ddd4('0x1de8')+_0x504ada[_0x16ddd4('0x283f')]}):_0x6f06ea[_0x16ddd4('0x15aa')]({'title':_0x222a64[_0x16ddd4('0x276f')]?'API:'+_0x222a64[_0x16ddd4('0x276f')]+'\x20-\x20'+_0x222a64['statusText']:'SYSTEM:GETvoiceQueue','msg':_0x222a64['data']?JSON[_0x16ddd4('0x100b')](_0x222a64[_0x16ddd4('0x1e07')]['message']):_0x222a64[_0x16ddd4('0x67f')]||_0x222a64[_0x16ddd4('0x1b75')]()});}):_0x6f06ea['error']({'title':_0xe9c440['status']?_0x17dcd7('0x137')+_0xe9c440[_0x17dcd7('0x276f')]+_0x17dcd7('0x160c')+_0xe9c440['statusText']:_0x17dcd7('0x27a5'),'msg':_0xe9c440[_0x17dcd7('0x1e07')]?JSON[_0x17dcd7('0x100b')](_0xe9c440['data'][_0x17dcd7('0x67f')]):_0xe9c440[_0x17dcd7('0x67f')]||_0xe9c440[_0x17dcd7('0x1b75')]()});});}let _0x33b65e=!![],_0x3fb11e=0x1;_0xe82fcb[_0x59ad0f('0x1bdb')](_0x59ad0f('0x5b8'),function(_0x4df8a7,_0x40bc97){const _0x1993cf=_0x59ad0f;_0x33b65e?_0x554a90(function(){_0x33b65e=![];}):(!_0x40bc97&&(_0x3fb11e=_0x3d246f['query'][_0x1993cf('0x182e')]),_0x4df8a7!==_0x40bc97&&(_0x3d246f['query'][_0x1993cf('0x182e')]=0x1),!_0x4df8a7&&(_0x3d246f[_0x1993cf('0xc49')][_0x1993cf('0x182e')]=_0x3fb11e),_0x171426());});}const _0x2c25da=_0x20fd45;_0x168b14[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),'$state','$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x168b14(_0x1124a1,_0x3309c9,_0x492075,_0x1c8176,_0x547b6b,_0x403460,_0x4d6006,_0x49c04d,_0x440cc7,_0x1196c7,_0x50a1ac){const _0x3551a6=_0x566993,_0x16532c=this;_0x16532c[_0x3551a6('0x155f')]=_0x50a1ac[_0x3551a6('0x14d4')](),_0x16532c[_0x3551a6('0x100f')]={},_0x16532c[_0x3551a6('0x1314')]={'count':0x0,'rows':[]},_0x16532c[_0x3551a6('0xde1')]=[],_0x16532c[_0x3551a6('0x1dc1')],_0x16532c[_0x3551a6('0xc49')]={'fields':_0x3551a6('0x20f3'),'sort':_0x3551a6('0x9a8'),'limit':0xa,'page':0x1},_0x16532c[_0x3551a6('0xb9c')]=_0x304422,_0x16532c['deleteConfirm']=_0x5f0905,_0x16532c['success']=_0x4ade39,_0x16532c['getQueueCampaignHopperHistories']=_0x56e82b,_0x16532c[_0x3551a6('0xc43')]=_0x1db849,_0x16532c[_0x3551a6('0xa63')]=_0x4d7b45,_0x16532c[_0x3551a6('0x3f0')]=_0x1f9fd0;function _0x304422(_0x1685ed,_0xf06186){const _0x250053=_0x3551a6;_0x16532c[_0x250053('0x100f')]=_0x1685ed,_0x16532c[_0x250053('0x1dc1')]=typeof _0xf06186!==_0x250053('0x6e5')?_0xf06186:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x16532c[_0x250053('0xc49')][_0x250053('0x11c9')]=_0x16532c[_0x250053('0x100f')]['id'],_0x16532c[_0x250053('0xc49')]['id']=_0x16532c[_0x250053('0x100f')]['id'],_0x56e82b();}function _0x5f0905(_0xc075d,_0x15df38){const _0x52c845=_0x3551a6,_0x401377=_0x4d6006[_0x52c845('0x1d02')]()[_0x52c845('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?')[_0x52c845('0xf8b')](_0x52c845('0x15b9')+(_0xc075d[_0x52c845('0x10ad')]||_0xc075d['id']&&_0x3c8d8a()[_0x52c845('0x5ba')](_0x52c845('0xb57'))+_0xc075d['id']||_0x52c845('0x214f'))+_0x52c845('0x24be')+_0x52c845('0xd23'))[_0x52c845('0x217')](_0x52c845('0xb2d'))[_0x52c845('0x21de')](_0x15df38)['ok']('OK')[_0x52c845('0x1e1f')](_0x52c845('0x468'));_0x4d6006[_0x52c845('0x1cb7')](_0x401377)[_0x52c845('0x173b')](function(){_0x4d7b45(_0xc075d);},function(){const _0x27987f=_0x52c845;console[_0x27987f('0xe37')]('CANCEL');});}function _0x4ade39(_0x39ac47){const _0x37f0fd=_0x3551a6;_0x16532c[_0x37f0fd('0x1314')]=_0x39ac47||{'count':0x0,'rows':[]};}function _0x56e82b(){const _0x2dd46d=_0x3551a6;_0x16532c[_0x2dd46d('0xc49')]['offset']=(_0x16532c[_0x2dd46d('0xc49')]['page']-0x1)*_0x16532c['query']['limit'],_0x16532c[_0x2dd46d('0x2219')]=_0x1196c7['voiceQueue']['getHopperHistories'](_0x16532c[_0x2dd46d('0xc49')],_0x4ade39)[_0x2dd46d('0x1964')];}function _0x4d7b45(_0x123049){const _0x44f141=_0x3551a6;_0x1196c7[_0x44f141('0x214f')]['delete']({'id':_0x123049['id']})[_0x44f141('0x1964')]['then'](function(){const _0x5e3997=_0x44f141;_0x3c8d8a()[_0x5e3997('0x1a8b')](_0x16532c[_0x5e3997('0x1314')]['rows'],{'id':_0x123049['id']}),_0x16532c['queueCampaignHopperHistories'][_0x5e3997('0x1a2f')]-=0x1,!_0x16532c[_0x5e3997('0x1314')][_0x5e3997('0x6aa')][_0x5e3997('0x543')]&&_0x56e82b(),_0x440cc7['success']({'title':_0x5e3997('0x149d'),'msg':_0x123049[_0x5e3997('0x10ad')]?_0x123049[_0x5e3997('0x10ad')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x217741){const _0x1d809f=_0x44f141;if(_0x217741[_0x1d809f('0x1e07')]&&_0x217741[_0x1d809f('0x1e07')]['errors']&&_0x217741[_0x1d809f('0x1e07')][_0x1d809f('0x1d4a')]['length']){_0x16532c[_0x1d809f('0x1d4a')]=_0x217741['data'][_0x1d809f('0x1d4a')]||[{'message':_0x217741[_0x1d809f('0x1b75')](),'type':_0x1d809f('0x27a5')}];for(let _0x1fe526=0x0;_0x1fe526<_0x217741[_0x1d809f('0x1e07')][_0x1d809f('0x1d4a')][_0x1d809f('0x543')];_0x1fe526++){_0x440cc7['error']({'title':_0x217741['data'][_0x1d809f('0x1d4a')][_0x1fe526]['type'],'msg':_0x217741[_0x1d809f('0x1e07')][_0x1d809f('0x1d4a')][_0x1fe526][_0x1d809f('0x67f')]});}}else _0x440cc7[_0x1d809f('0x15aa')]({'title':_0x217741[_0x1d809f('0x276f')]?_0x1d809f('0x137')+_0x217741['status']+_0x1d809f('0x160c')+_0x217741['statusText']:_0x1d809f('0x27a5'),'msg':_0x217741[_0x1d809f('0x1e07')]?JSON[_0x1d809f('0x100b')](_0x217741[_0x1d809f('0x1e07')]['message']):_0x217741['message']||_0x217741[_0x1d809f('0x1b75')]()});});}function _0x1db849(){const _0x5b4db1=_0x3551a6,_0x3931db=angular[_0x5b4db1('0x2e3')](_0x16532c['selectedQueueCampaignHopperHistories']);return _0x16532c[_0x5b4db1('0xde1')]=[],_0x3931db;}function _0x1f9fd0(_0x25da2e){const _0x50aee7=_0x3551a6,_0x1f8462=_0x4d6006[_0x50aee7('0x1d02')]()[_0x50aee7('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?')['htmlContent'](''+_0x16532c[_0x50aee7('0xde1')]['length']+_0x50aee7('0xcb4')+_0x50aee7('0xd23'))[_0x50aee7('0x217')](_0x50aee7('0xc6c'))[_0x50aee7('0x21de')](_0x25da2e)['ok']('OK')['cancel']('CANCEL');_0x4d6006[_0x50aee7('0x1cb7')](_0x1f8462)[_0x50aee7('0x173b')](function(){const _0x5a53b5=_0x50aee7;_0x16532c['selectedQueueCampaignHopperHistories']['forEach'](function(_0x2bbe35){_0x4d7b45(_0x2bbe35);}),_0x16532c[_0x5a53b5('0xde1')]=[];});}let _0x394fc0=!![],_0x3c4d33=0x1;_0x3309c9[_0x3551a6('0x1bdb')](_0x3551a6('0x5b8'),function(_0x3b2865,_0x225dde){const _0x5ef2dc=_0x3551a6;_0x394fc0?_0x403460(function(){_0x394fc0=![];}):(!_0x225dde&&(_0x3c4d33=_0x16532c[_0x5ef2dc('0xc49')][_0x5ef2dc('0x182e')]),_0x3b2865!==_0x225dde&&(_0x16532c[_0x5ef2dc('0xc49')]['page']=0x1),!_0x3b2865&&(_0x16532c[_0x5ef2dc('0xc49')]['page']=_0x3c4d33),_0x56e82b());});}const _0x3f569f=_0x168b14;_0x1116da['$inject']=['$cookies',_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),'$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),'api',_0x566993('0x1600')];function _0x1116da(_0x3377fe,_0x2f7422,_0x5e6b97,_0x223ca6,_0x2968cc,_0x5bd3ee,_0x4a66d8,_0x345d13,_0x2a3aa8,_0x537335,_0x4375e3){const _0x492175=_0x566993,_0x22020e=this;_0x22020e['currentUser']=_0x4375e3[_0x492175('0x14d4')](),_0x22020e[_0x492175('0x100f')]={},_0x22020e[_0x492175('0x5ca')]={'count':0x0,'rows':[]},_0x22020e[_0x492175('0xdb0')]=[],_0x22020e['crudPermissions'],_0x22020e[_0x492175('0xc49')]={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId','sort':_0x492175('0x1769'),'limit':0xa,'page':0x1},_0x22020e['arraypriority']=_0x3c8d8a()[_0x492175('0x128')]([{'option':_0x492175('0x1091'),'value':_0x492175('0x164c')},{'option':'High','value':_0x492175('0x62d')},{'option':'Medium','value':_0x492175('0xe83')},{'option':_0x492175('0x25a5'),'value':_0x492175('0x1d26')},{'option':_0x492175('0x13af'),'value':_0x492175('0x160a')}],function(_0x477779){const _0x212593=_0x492175;return _0x3c8d8a()['replace'](_0x477779[_0x212593('0xa7b')],new RegExp('\x27','g'),'');}),_0x22020e[_0x492175('0xb9c')]=_0x36cc35,_0x22020e[_0x492175('0x2051')]=_0x19af47,_0x22020e['success']=_0x38cf5b,_0x22020e[_0x492175('0x2798')]=_0x3549e0,_0x22020e[_0x492175('0x272b')]=_0x31471b,_0x22020e['exportSelectedQueueCampaignHoppers']=_0x5f077f,_0x22020e[_0x492175('0x6be')]=_0x56035a,_0x22020e[_0x492175('0x2544')]=_0xd11047,_0x4375e3[_0x492175('0x1b4e')](_0x492175('0x79b'))?_0x537335[_0x492175('0x166f')][_0x492175('0x1d97')]({'fields':_0x492175('0xd52'),'role':_0x492175('0x7b0'),'sort':_0x492175('0x10ad'),'nolimit':_0x492175('0x799')})[_0x492175('0x1964')]['then'](function(_0x1e8a18){const _0x2b1e08=_0x492175;_0x22020e[_0x2b1e08('0x11fa')]=_0x1e8a18[_0x2b1e08('0x6aa')]||[];})[_0x492175('0x103c')](function(_0x1469ca){const _0x453707=_0x492175;_0x2a3aa8[_0x453707('0x15aa')]({'title':_0x1469ca[_0x453707('0x276f')]?_0x453707('0x137')+_0x1469ca['status']+'\x20-\x20'+_0x1469ca['statusText']:_0x453707('0x152b'),'msg':_0x1469ca[_0x453707('0x1e07')]?JSON[_0x453707('0x100b')](_0x1469ca['data']):_0x1469ca[_0x453707('0x1b75')]()});}):_0x537335[_0x492175('0x166f')]['get']({'fields':'id,name','role':_0x492175('0x7b0'),'sort':_0x492175('0x10ad'),'nolimit':'true'})[_0x492175('0x1964')]['then'](function(_0xda8fc1){const _0x19cc35=_0x492175;_0x22020e[_0x19cc35('0x11fa')]=_0xda8fc1[_0x19cc35('0x6aa')]||[];})[_0x492175('0x173b')](function(){const _0x3816cd=_0x492175;return _0x537335['userProfileSection']['get']({'userProfileId':_0x22020e[_0x3816cd('0x155f')][_0x3816cd('0x1946')],'sectionId':0xca})[_0x3816cd('0x1964')];})['then'](function(_0x42ea38){const _0x1a5010=_0x492175,_0x2e38e7=_0x42ea38&&_0x42ea38[_0x1a5010('0x6aa')]?_0x42ea38[_0x1a5010('0x6aa')][0x0]:null;if(!_0x2e38e7){const _0x5929a5=[];let _0x52512f=null;_0x22020e[_0x1a5010('0x100f')]&&(_0x52512f=_0x3c8d8a()[_0x1a5010('0x18ab')](_0x22020e[_0x1a5010('0x11fa')],{'id':Number(_0x22020e['queueCampaign'][_0x1a5010('0x181c')])}));for(let _0x20276d=0x0;_0x20276d<_0x22020e['agents']['length'];_0x20276d++){_0x52512f&&_0x22020e[_0x1a5010('0x11fa')][_0x20276d]['id']===_0x52512f['id']&&(_0x22020e[_0x1a5010('0x11fa')][_0x20276d][_0x1a5010('0x268e')]=![],_0x5929a5[_0x1a5010('0x18bb')](_0x22020e[_0x1a5010('0x11fa')][_0x20276d]));}_0x22020e['agents']=_0x5929a5;}else{if(!_0x2e38e7[_0x1a5010('0x273e')])return _0x537335[_0x1a5010('0xda9')][_0x1a5010('0x1d97')]({'sectionId':_0x2e38e7['id']})[_0x1a5010('0x1964')][_0x1a5010('0x173b')](function(_0x5d7839){const _0x5bc855=_0x1a5010,_0x47f424=_0x3c8d8a()[_0x5bc855('0x8a2')](_0x5d7839[_0x5bc855('0x6aa')],function(_0x3662dc){const _0x462790=_0x5bc855;return _0x3c8d8a()[_0x462790('0x18ab')](_0x22020e['agents'],{'id':_0x3662dc[_0x462790('0x1ce0')]});});let _0x17f3b1=null;_0x22020e['queueCampaign']&&(_0x17f3b1=_0x3c8d8a()[_0x5bc855('0x18ab')](_0x22020e[_0x5bc855('0x11fa')],{'id':Number(_0x22020e[_0x5bc855('0x100f')]['UserId'])}));if(_0x17f3b1&&!_0x3c8d8a()[_0x5bc855('0x1ec')](_0x47f424,['id',_0x17f3b1['id']])){const _0x287bea=_0x3c8d8a()[_0x5bc855('0x18ab')](_0x22020e['agents'],{'id':_0x17f3b1['id']});_0x287bea[_0x5bc855('0x268e')]=![],_0x47f424[_0x5bc855('0x18bb')](_0x287bea);}_0x22020e['agents']=_0x47f424;});}})[_0x492175('0x103c')](function(_0x27c83a){const _0xd5fa62=_0x492175;_0x2a3aa8['error']({'title':_0x27c83a[_0xd5fa62('0x276f')]?_0xd5fa62('0x137')+_0x27c83a['status']+_0xd5fa62('0x160c')+_0x27c83a[_0xd5fa62('0x2696')]:_0xd5fa62('0xceb'),'msg':_0x27c83a[_0xd5fa62('0x1e07')]?JSON[_0xd5fa62('0x100b')](_0x27c83a[_0xd5fa62('0x1e07')]):_0x27c83a[_0xd5fa62('0x1b75')]()});});function _0x36cc35(_0x2eb7d6,_0x2d0ba6){const _0x5f018b=_0x492175;_0x22020e[_0x5f018b('0x100f')]=_0x2eb7d6,_0x22020e['crudPermissions']=typeof _0x2d0ba6!==_0x5f018b('0x6e5')?_0x2d0ba6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x22020e[_0x5f018b('0xc49')][_0x5f018b('0x11c9')]=_0x22020e['queueCampaign']['id'],_0x22020e[_0x5f018b('0xc49')]['id']=_0x22020e['queueCampaign']['id'],_0x3549e0();}function _0x19af47(_0x28a1b5,_0x4c6c0e){const _0x4d7537=_0x492175,_0x3a7c09=_0x4a66d8[_0x4d7537('0x1d02')]()['title'](_0x4d7537('0x23ad'))['htmlContent'](''+(_0x28a1b5['name']||_0x28a1b5['id']&&_0x3c8d8a()[_0x4d7537('0x5ba')](_0x4d7537('0x175b'))+_0x28a1b5['id']||_0x4d7537('0x10f4'))+''+'\x20will\x20be\x20deleted.')[_0x4d7537('0x217')]('delete\x20hopper')[_0x4d7537('0x21de')](_0x4c6c0e)['ok']('OK')[_0x4d7537('0x1e1f')](_0x4d7537('0x468'));_0x4a66d8['show'](_0x3a7c09)[_0x4d7537('0x173b')](function(){_0x56035a(_0x28a1b5);},function(){const _0x106f28=_0x4d7537;console[_0x106f28('0xe37')](_0x106f28('0x468'));});}function _0x38cf5b(_0x2ae0ba){const _0x112c5b=_0x492175;_0x22020e[_0x112c5b('0x5ca')]=_0x2ae0ba||{'count':0x0,'rows':[]};}function _0x3549e0(){const _0x34a1f4=_0x492175;_0x22020e[_0x34a1f4('0xc49')][_0x34a1f4('0x17f0')]=(_0x22020e[_0x34a1f4('0xc49')][_0x34a1f4('0x182e')]-0x1)*_0x22020e[_0x34a1f4('0xc49')]['limit'],_0x22020e['promise']=_0x537335[_0x34a1f4('0x1282')][_0x34a1f4('0x25af')](_0x22020e[_0x34a1f4('0xc49')],_0x38cf5b)[_0x34a1f4('0x1964')];}function _0x31471b(_0x432d69,_0x4746d7){const _0x463107=_0x492175;_0x4a66d8['show']({'controller':_0x463107('0x1b9c'),'controllerAs':'vm','templateUrl':_0x47467f,'parent':angular[_0x463107('0xb6d')](_0x345d13[_0x463107('0x1a5')]),'targetEvent':_0x432d69,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x22020e[_0x463107('0x100f')],'hopper':_0x4746d7,'hoppers':_0x22020e['queueCampaignHoppers']['rows'],'license':null,'setting':null,'crudPermissions':_0x22020e[_0x463107('0x1dc1')]}});}function _0x56035a(_0x3ba3fd){const _0x4dd1b1=_0x492175;_0x537335[_0x4dd1b1('0x1f4f')]['delete']({'id':_0x3ba3fd['id']})[_0x4dd1b1('0x1964')][_0x4dd1b1('0x173b')](function(){const _0xcf2472=_0x4dd1b1;_0x3c8d8a()[_0xcf2472('0x1a8b')](_0x22020e[_0xcf2472('0x5ca')][_0xcf2472('0x6aa')],{'id':_0x3ba3fd['id']}),_0x22020e[_0xcf2472('0x5ca')][_0xcf2472('0x1a2f')]-=0x1,!_0x22020e[_0xcf2472('0x5ca')][_0xcf2472('0x6aa')][_0xcf2472('0x543')]&&_0x3549e0(),_0x2a3aa8[_0xcf2472('0xdfe')]({'title':_0xcf2472('0xa6e'),'msg':_0x3ba3fd[_0xcf2472('0x10ad')]?_0x3ba3fd[_0xcf2472('0x10ad')]+_0xcf2472('0x25d2'):''});})[_0x4dd1b1('0x103c')](function(_0x17bdba){const _0x29c05e=_0x4dd1b1;if(_0x17bdba[_0x29c05e('0x1e07')]&&_0x17bdba[_0x29c05e('0x1e07')][_0x29c05e('0x1d4a')]&&_0x17bdba['data'][_0x29c05e('0x1d4a')]['length']){_0x22020e[_0x29c05e('0x1d4a')]=_0x17bdba[_0x29c05e('0x1e07')]['errors']||[{'message':_0x17bdba[_0x29c05e('0x1b75')](),'type':_0x29c05e('0x27a5')}];for(let _0x45d6bf=0x0;_0x45d6bf<_0x17bdba[_0x29c05e('0x1e07')][_0x29c05e('0x1d4a')][_0x29c05e('0x543')];_0x45d6bf++){_0x2a3aa8[_0x29c05e('0x15aa')]({'title':_0x17bdba[_0x29c05e('0x1e07')][_0x29c05e('0x1d4a')][_0x45d6bf][_0x29c05e('0x1810')],'msg':_0x17bdba['data'][_0x29c05e('0x1d4a')][_0x45d6bf][_0x29c05e('0x67f')]});}}else _0x2a3aa8[_0x29c05e('0x15aa')]({'title':_0x17bdba[_0x29c05e('0x276f')]?_0x29c05e('0x137')+_0x17bdba[_0x29c05e('0x276f')]+'\x20-\x20'+_0x17bdba['statusText']:'SYSTEM:GETvoiceQueue','msg':_0x17bdba[_0x29c05e('0x1e07')]?JSON[_0x29c05e('0x100b')](_0x17bdba['data'][_0x29c05e('0x67f')]):_0x17bdba[_0x29c05e('0x67f')]||_0x17bdba[_0x29c05e('0x1b75')]()});});}function _0x5f077f(){const _0x2939bd=_0x492175,_0x580056=angular['copy'](_0x22020e[_0x2939bd('0xdb0')]);return _0x22020e[_0x2939bd('0xdb0')]=[],_0x580056;}function _0xd11047(_0x481097){const _0x3abab1=_0x492175,_0x416506=_0x4a66d8[_0x3abab1('0x1d02')]()[_0x3abab1('0x20d6')](_0x3abab1('0x16ca'))[_0x3abab1('0xf8b')](_0x3abab1('0x15b9')+_0x22020e[_0x3abab1('0xdb0')]['length']+_0x3abab1('0xcb4')+_0x3abab1('0xd23'))['ariaLabel'](_0x3abab1('0xb9f'))[_0x3abab1('0x21de')](_0x481097)['ok']('OK')[_0x3abab1('0x1e1f')](_0x3abab1('0x468'));_0x4a66d8[_0x3abab1('0x1cb7')](_0x416506)['then'](function(){const _0x15d648=_0x3abab1;_0x22020e[_0x15d648('0xdb0')][_0x15d648('0xa6a')](function(_0x3fd01d){_0x56035a(_0x3fd01d);}),_0x22020e[_0x15d648('0xdb0')]=[];});}let _0x1ceddc=!![],_0x5c5614=0x1;_0x2f7422[_0x492175('0x1bdb')](_0x492175('0x5b8'),function(_0x4b0e27,_0x35729a){const _0x454010=_0x492175;_0x1ceddc?_0x5bd3ee(function(){_0x1ceddc=![];}):(!_0x35729a&&(_0x5c5614=_0x22020e[_0x454010('0xc49')][_0x454010('0x182e')]),_0x4b0e27!==_0x35729a&&(_0x22020e[_0x454010('0xc49')][_0x454010('0x182e')]=0x1),!_0x4b0e27&&(_0x22020e['query']['page']=_0x5c5614),_0x3549e0());});}const _0x393321=_0x1116da;_0x460557[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$state',_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),'toasty','hoppers','hopper',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0x460557(_0x4015e8,_0x31f5e7,_0x27a66e,_0x106016,_0x1177e7,_0x14e1bf,_0x5b2399,_0x26e78,_0x39af8e,_0x45c68b,_0x2b69f5,_0x42b86f,_0x3df22e,_0x46f647){const _0x4b668b=_0x566993,_0x3f3d68=this;_0x3f3d68[_0x4b668b('0x155f')]=_0x2b69f5[_0x4b668b('0x14d4')](),_0x3f3d68[_0x4b668b('0x1d4a')]=[],_0x3f3d68['setting']=_0x3df22e,_0x3f3d68['license']=_0x42b86f,_0x3f3d68['crudPermissions']=_0x46f647,_0x3f3d68[_0x4b668b('0xb0')]={},_0x3f3d68[_0x4b668b('0x644')]=_0x3f3d68['setting']&&_0x3f3d68[_0x4b668b('0x251')][_0x4b668b('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3f3d68[_0x4b668b('0x20d6')]='MOTIONDIALER.EDIT_HOPPER',_0x3f3d68[_0x4b668b('0x10f4')]=angular[_0x4b668b('0x2e3')](_0x39af8e),_0x3f3d68[_0x4b668b('0x23dc')]=_0x26e78,_0x3f3d68[_0x4b668b('0x1627')]=![];!_0x3f3d68[_0x4b668b('0x10f4')]&&(_0x3f3d68['hopper']={},_0x3f3d68[_0x4b668b('0x20d6')]=_0x4b668b('0x914'),_0x3f3d68[_0x4b668b('0x1627')]=!![]);_0x31f5e7[_0x4b668b('0x197a')]['id']&&(_0x3f3d68[_0x4b668b('0x10f4')][_0x4b668b('0x11c9')]=_0x31f5e7[_0x4b668b('0x197a')]['id']);_0x3f3d68[_0x4b668b('0x2526')]=_0x13047e,_0x3f3d68[_0x4b668b('0x26fe')]=_0x21e5df,_0x3f3d68[_0x4b668b('0x26ef')]=_0x4cd0e1,_0x3f3d68[_0x4b668b('0x11ae')]=_0x3761cf,_0x3f3d68[_0x4b668b('0x18e2')]=_0x34eb1f,_0x2b69f5[_0x4b668b('0x1b4e')](_0x4b668b('0x79b'))?_0x45c68b[_0x4b668b('0x166f')][_0x4b668b('0x1d97')]({'fields':'id,name','role':'agent','sort':_0x4b668b('0x10ad'),'nolimit':_0x4b668b('0x799')})['$promise']['then'](function(_0x699363){const _0x792454=_0x4b668b;_0x3f3d68[_0x792454('0x11fa')]=_0x699363[_0x792454('0x6aa')]||[];})['catch'](function(_0x3b3d80){const _0x1a5525=_0x4b668b;_0x5b2399[_0x1a5525('0x15aa')]({'title':_0x3b3d80['status']?_0x1a5525('0x137')+_0x3b3d80[_0x1a5525('0x276f')]+_0x1a5525('0x160c')+_0x3b3d80[_0x1a5525('0x2696')]:_0x1a5525('0x152b'),'msg':_0x3b3d80[_0x1a5525('0x1e07')]?JSON[_0x1a5525('0x100b')](_0x3b3d80[_0x1a5525('0x1e07')]):_0x3b3d80[_0x1a5525('0x1b75')]()});}):_0x45c68b[_0x4b668b('0x166f')]['get']({'fields':_0x4b668b('0xd52'),'role':'agent','sort':_0x4b668b('0x10ad'),'nolimit':_0x4b668b('0x799')})[_0x4b668b('0x1964')][_0x4b668b('0x173b')](function(_0x1316e0){const _0x10c875=_0x4b668b;_0x3f3d68[_0x10c875('0x11fa')]=_0x1316e0[_0x10c875('0x6aa')]||[];})[_0x4b668b('0x173b')](function(){const _0x20777c=_0x4b668b;return _0x45c68b[_0x20777c('0x170e')][_0x20777c('0x1d97')]({'userProfileId':_0x3f3d68[_0x20777c('0x155f')][_0x20777c('0x1946')],'sectionId':0xca})[_0x20777c('0x1964')];})['then'](function(_0x40b5d2){const _0x29c8e6=_0x4b668b,_0x1ae16d=_0x40b5d2&&_0x40b5d2[_0x29c8e6('0x6aa')]?_0x40b5d2[_0x29c8e6('0x6aa')][0x0]:null;if(!_0x1ae16d){const _0x3e80eb=[];let _0x1022d6=null;_0x3f3d68[_0x29c8e6('0x10f4')]&&(_0x1022d6=_0x3c8d8a()[_0x29c8e6('0x18ab')](_0x3f3d68[_0x29c8e6('0x11fa')],{'id':Number(_0x3f3d68[_0x29c8e6('0x10f4')]['UserId'])}));for(let _0x242980=0x0;_0x242980<_0x3f3d68[_0x29c8e6('0x11fa')][_0x29c8e6('0x543')];_0x242980++){_0x1022d6&&_0x3f3d68[_0x29c8e6('0x11fa')][_0x242980]['id']===_0x1022d6['id']&&(_0x3f3d68['agents'][_0x242980][_0x29c8e6('0x268e')]=![],_0x3e80eb[_0x29c8e6('0x18bb')](_0x3f3d68['agents'][_0x242980]));}_0x3f3d68[_0x29c8e6('0x11fa')]=_0x3e80eb;}else{if(!_0x1ae16d[_0x29c8e6('0x273e')])return _0x45c68b[_0x29c8e6('0xda9')][_0x29c8e6('0x1d97')]({'sectionId':_0x1ae16d['id']})[_0x29c8e6('0x1964')][_0x29c8e6('0x173b')](function(_0x2c3edb){const _0xc38a54=_0x29c8e6,_0xccf348=_0x3c8d8a()[_0xc38a54('0x8a2')](_0x2c3edb[_0xc38a54('0x6aa')],function(_0x2822a1){const _0x2dd781=_0xc38a54;return _0x3c8d8a()['find'](_0x3f3d68[_0x2dd781('0x11fa')],{'id':_0x2822a1[_0x2dd781('0x1ce0')]});});let _0x1cf362=null;_0x3f3d68[_0xc38a54('0x10f4')]&&(_0x1cf362=_0x3c8d8a()[_0xc38a54('0x18ab')](_0x3f3d68[_0xc38a54('0x11fa')],{'id':Number(_0x3f3d68[_0xc38a54('0x10f4')][_0xc38a54('0x181c')])}));if(_0x1cf362&&!_0x3c8d8a()[_0xc38a54('0x1ec')](_0xccf348,['id',_0x1cf362['id']])){const _0x4eb461=_0x3c8d8a()[_0xc38a54('0x18ab')](_0x3f3d68[_0xc38a54('0x11fa')],{'id':_0x1cf362['id']});_0x4eb461[_0xc38a54('0x268e')]=![],_0xccf348['push'](_0x4eb461);}_0x3f3d68[_0xc38a54('0x11fa')]=_0xccf348;});}})[_0x4b668b('0x103c')](function(_0x393169){const _0x4542b7=_0x4b668b;_0x5b2399[_0x4542b7('0x15aa')]({'title':_0x393169[_0x4542b7('0x276f')]?_0x4542b7('0x137')+_0x393169[_0x4542b7('0x276f')]+'\x20-\x20'+_0x393169[_0x4542b7('0x2696')]:_0x4542b7('0xceb'),'msg':_0x393169[_0x4542b7('0x1e07')]?JSON['stringify'](_0x393169[_0x4542b7('0x1e07')]):_0x393169[_0x4542b7('0x1b75')]()});});function _0x13047e(){const _0x1d1d53=_0x4b668b;_0x3f3d68[_0x1d1d53('0x1d4a')]=[],_0x45c68b['cmHopper'][_0x1d1d53('0x1195')](_0x3f3d68[_0x1d1d53('0x10f4')])[_0x1d1d53('0x1964')][_0x1d1d53('0x173b')](function(_0x4872fb){const _0x3eced0=_0x1d1d53;_0x3f3d68[_0x3eced0('0x23dc')][_0x3eced0('0x1377')](_0x4872fb[_0x3eced0('0xf1f')]()),_0x5b2399[_0x3eced0('0xdfe')]({'title':'Hopper\x20properly\x20created','msg':_0x3f3d68[_0x3eced0('0x10f4')]['name']?_0x3f3d68[_0x3eced0('0x10f4')][_0x3eced0('0x10ad')]+_0x3eced0('0x209a'):''}),_0x34eb1f(_0x4872fb);})[_0x1d1d53('0x103c')](function(_0x148dcc){const _0x3fe94b=_0x1d1d53;if(_0x148dcc[_0x3fe94b('0x1e07')]&&_0x148dcc[_0x3fe94b('0x1e07')][_0x3fe94b('0x1d4a')]&&_0x148dcc[_0x3fe94b('0x1e07')][_0x3fe94b('0x1d4a')]['length']){_0x3f3d68['errors']=_0x148dcc[_0x3fe94b('0x1e07')][_0x3fe94b('0x1d4a')]||[{'message':_0x148dcc[_0x3fe94b('0x1b75')](),'type':'api.cmHopper.save'}];for(let _0x2c664a=0x0;_0x2c664a<_0x148dcc[_0x3fe94b('0x1e07')]['errors']['length'];_0x2c664a+=0x1){_0x5b2399[_0x3fe94b('0x15aa')]({'title':_0x148dcc[_0x3fe94b('0x1e07')][_0x3fe94b('0x1d4a')][_0x2c664a][_0x3fe94b('0x1810')],'msg':_0x148dcc['data'][_0x3fe94b('0x1d4a')][_0x2c664a][_0x3fe94b('0x67f')]});}}else _0x5b2399[_0x3fe94b('0x15aa')]({'title':_0x148dcc[_0x3fe94b('0x276f')]?_0x3fe94b('0x137')+_0x148dcc[_0x3fe94b('0x276f')]+_0x3fe94b('0x160c')+_0x148dcc[_0x3fe94b('0x2696')]:_0x3fe94b('0x7ad'),'msg':_0x148dcc[_0x3fe94b('0x1e07')]?JSON[_0x3fe94b('0x100b')](_0x148dcc[_0x3fe94b('0x1e07')][_0x3fe94b('0x67f')]):_0x148dcc['toString']()});});}function _0x21e5df(){const _0x172495=_0x4b668b;_0x3f3d68[_0x172495('0x1d4a')]=[];let _0x45e2b0,_0x4bf426,_0x10fa57,_0x28b79f;_0x3f3d68[_0x172495('0x10f4')][_0x172495('0x181c')]=_0x3f3d68['hopper']['recallme']?_0x3f3d68[_0x172495('0x10f4')][_0x172495('0x181c')]:null,_0x3f3d68[_0x172495('0x10f4')][_0x172495('0xabe')]=_0x2b69f5[_0x172495('0x14d4')]()['id'],_0x45c68b[_0x172495('0x1f4f')][_0x172495('0x1d97')]({'id':_0x3f3d68[_0x172495('0x10f4')]['id'],'attributes':[_0x172495('0x1b55')]})['$promise'][_0x172495('0x173b')](function(_0x393123){const _0x49ff69=_0x172495;_0x3c8d8a()['isNil'](_0x393123)||_0x3c8d8a()[_0x49ff69('0x1a56')](_0x393123)?_0x45e2b0=_0x156524()()[_0x49ff69('0xddc')]('YYYY-MM-DD\x20HH:mm:ss'):_0x45e2b0=_0x393123[_0x49ff69('0x1b55')];})[_0x172495('0xf25')](function(){const _0x40e321=_0x172495;_0x45c68b['cmHopper'][_0x40e321('0x1842')]({'id':_0x3f3d68[_0x40e321('0x10f4')]['id']},_0x3c8d8a()[_0x40e321('0x2797')](_0x3f3d68[_0x40e321('0x10f4')],[_0x40e321('0x11c9'),_0x40e321('0x1659'),_0x40e321('0x283f'),_0x40e321('0xef2')]))[_0x40e321('0x1964')][_0x40e321('0x173b')](function(_0x323e29){const _0x127a4a=_0x40e321;_0x4bf426=_0x323e29,_0x45c68b[_0x127a4a('0x1197')][_0x127a4a('0x1d97')]({'id':_0x4bf426[_0x127a4a('0x283f')],'attributes':['firstName','lastName']})['$promise'][_0x127a4a('0x173b')](function(_0x128717){const _0x27876e=_0x127a4a;!_0x3c8d8a()[_0x27876e('0x7d5')](_0x128717)&&!_0x3c8d8a()[_0x27876e('0x7d5')](_0x128717[_0x27876e('0x1e50')])&&(_0x10fa57=_0x128717['firstName'],!_0x3c8d8a()['isNil'](_0x128717['lastName'])&&(_0x10fa57+='\x20'+_0x128717[_0x27876e('0x1806')]));})[_0x127a4a('0x103c')](function(){_0x10fa57=undefined;})[_0x127a4a('0xf25')](function(){const _0x1d5e86=_0x127a4a;_0x45c68b['voiceQueue']['get']({'raw':![],'id':_0x4bf426['VoiceQueueId'],'attributes':['name']})[_0x1d5e86('0x1964')][_0x1d5e86('0x173b')](function(_0x178bf6){const _0x29550a=_0x1d5e86;_0x28b79f=_0x178bf6[_0x29550a('0x10ad')];})['catch'](function(){_0x28b79f=undefined;})['finally'](function(){const _0x561aec=_0x1d5e86;_0x45c68b[_0x561aec('0x325')][_0x561aec('0x1195')]({'state':0x18,'statedesc':_0x561aec('0x1a0f'),'scheduledat':_0x45e2b0,'calleridnum':_0x4bf426[_0x561aec('0xa04')],'calleridname':_0x10fa57,'campaigntype':_0x4bf426[_0x561aec('0x11c9')]?_0x561aec('0x172'):_0x561aec('0x334'),'campaign':_0x28b79f,'editedat':_0x156524()()['format'](_0x561aec('0xf5f')),'edited':!![],'ListId':_0x4bf426[_0x561aec('0xef2')],'UserId':_0x2b69f5['getCurrentUser']()['id'],'VoiceQueueId':_0x4bf426[_0x561aec('0x11c9')],'CampaignId':_0x4bf426[_0x561aec('0x1659')],'ContactId':_0x4bf426[_0x561aec('0x283f')],'callback':_0x4bf426['callback'],'callbackuniqueid':_0x4bf426[_0x561aec('0x25c7')],'countbusyretry':_0x4bf426[_0x561aec('0x9a4')],'countcongestionretry':_0x4bf426[_0x561aec('0x4ee')],'countglobal':_0x4bf426[_0x561aec('0x913')],'countnoanswerretry':_0x4bf426[_0x561aec('0x2536')],'followuptime':_0x4bf426[_0x561aec('0x1b76')],'recallme':_0x4bf426[_0x561aec('0x5f1')]});});});const _0x48cda7=_0x3c8d8a()[_0x127a4a('0x18ab')](_0x3f3d68[_0x127a4a('0x23dc')],{'id':_0x323e29['id']});_0x48cda7&&_0x3c8d8a()['merge'](_0x48cda7,_0x3c8d8a()[_0x127a4a('0x2114')](_0x323e29['toJSON'](),_0x3c8d8a()[_0x127a4a('0x1d3e')](_0x48cda7))),_0x5b2399[_0x127a4a('0xdfe')]({'title':_0x127a4a('0xa68'),'msg':_0x3f3d68[_0x127a4a('0x10f4')][_0x127a4a('0x10ad')]?_0x3f3d68[_0x127a4a('0x10f4')][_0x127a4a('0x10ad')]+_0x127a4a('0x2788'):''}),_0x34eb1f(_0x323e29);})['catch'](function(_0x49efba){const _0x27a675=_0x40e321;if(_0x49efba['data']&&_0x49efba[_0x27a675('0x1e07')][_0x27a675('0x1d4a')]&&_0x49efba[_0x27a675('0x1e07')]['errors'][_0x27a675('0x543')]){_0x3f3d68['errors']=_0x49efba[_0x27a675('0x1e07')]['errors']||[{'message':_0x49efba[_0x27a675('0x1b75')](),'type':'api.cmHopper.update'}];for(let _0x522646=0x0;_0x522646<_0x49efba['data']['errors'][_0x27a675('0x543')];_0x522646++){_0x5b2399['error']({'title':_0x49efba['data']['errors'][_0x522646][_0x27a675('0x1810')],'msg':_0x49efba[_0x27a675('0x1e07')]['errors'][_0x522646][_0x27a675('0x67f')]});}}else _0x5b2399['error']({'title':_0x49efba['status']?_0x27a675('0x137')+_0x49efba['status']+'\x20-\x20'+_0x49efba['statusText']:'api.cmHopper.update','msg':_0x49efba['data']?JSON['stringify'](_0x49efba[_0x27a675('0x1e07')][_0x27a675('0x67f')]):_0x49efba[_0x27a675('0x1b75')]()});});});}function _0x4cd0e1(_0x4ca113){const _0x271b0f=_0x4b668b;_0x3f3d68['errors']=[];const _0x583c66=_0x106016[_0x271b0f('0x1d02')]()[_0x271b0f('0x20d6')](_0x271b0f('0x8ef'))[_0x271b0f('0x732')](_0x271b0f('0xa42'))[_0x271b0f('0x217')](_0x271b0f('0x2133'))['ok']('Delete')[_0x271b0f('0x1e1f')](_0x271b0f('0x1d4e'))['targetEvent'](_0x4ca113);_0x106016[_0x271b0f('0x1cb7')](_0x583c66)[_0x271b0f('0x173b')](function(){const _0x4f2d2f=_0x271b0f;_0x45c68b['cmHopper']['delete']({'id':_0x3f3d68[_0x4f2d2f('0x10f4')]['id']})[_0x4f2d2f('0x1964')][_0x4f2d2f('0x173b')](function(){const _0x4a08a3=_0x4f2d2f;_0x3c8d8a()[_0x4a08a3('0x1a8b')](_0x3f3d68[_0x4a08a3('0x23dc')],{'id':_0x3f3d68[_0x4a08a3('0x10f4')]['id']}),_0x5b2399[_0x4a08a3('0xdfe')]({'title':_0x4a08a3('0x508'),'msg':(_0x3f3d68[_0x4a08a3('0x10f4')][_0x4a08a3('0x10ad')]||_0x4a08a3('0x10f4'))+_0x4a08a3('0x25d2')}),_0x34eb1f(_0x3f3d68[_0x4a08a3('0x10f4')]);})['catch'](function(_0x44a97e){const _0x49df9f=_0x4f2d2f;if(_0x44a97e[_0x49df9f('0x1e07')]&&_0x44a97e[_0x49df9f('0x1e07')][_0x49df9f('0x1d4a')]&&_0x44a97e[_0x49df9f('0x1e07')][_0x49df9f('0x1d4a')][_0x49df9f('0x543')]){_0x3f3d68[_0x49df9f('0x1d4a')]=_0x44a97e[_0x49df9f('0x1e07')]['errors']||[{'message':_0x44a97e[_0x49df9f('0x1b75')](),'type':_0x49df9f('0x305')}];for(let _0x8f4567=0x0;_0x8f4567<_0x44a97e['data'][_0x49df9f('0x1d4a')][_0x49df9f('0x543')];_0x8f4567++){_0x5b2399['error']({'title':_0x44a97e[_0x49df9f('0x1e07')]['errors'][_0x8f4567][_0x49df9f('0x1810')],'msg':_0x44a97e[_0x49df9f('0x1e07')][_0x49df9f('0x1d4a')][_0x8f4567][_0x49df9f('0x67f')]});}}else _0x5b2399[_0x49df9f('0x15aa')]({'title':_0x44a97e[_0x49df9f('0x276f')]?_0x49df9f('0x137')+_0x44a97e[_0x49df9f('0x276f')]+_0x49df9f('0x160c')+_0x44a97e[_0x49df9f('0x2696')]:'api.cmHopper.delete','msg':_0x44a97e[_0x49df9f('0x1e07')]?JSON[_0x49df9f('0x100b')](_0x44a97e[_0x49df9f('0x1e07')][_0x49df9f('0x67f')]):_0x44a97e['message']||_0x44a97e[_0x49df9f('0x1b75')]()});});},function(){});}function _0x3761cf(_0x22900a){return _0x22900a===null?undefined:new Date(_0x22900a);}function _0x34eb1f(_0x24a8e8){_0x106016['hide'](_0x24a8e8);}}const _0xabf148=_0x460557;_0x148733[_0x566993('0x17bb')]=[_0x566993('0xbd4'),_0x566993('0x1558')];function _0x148733(_0x4dc132,_0x4217d5){const _0x1b8adf=_0x566993,_0x2d8571=this;_0x2d8571['queueCampaign']={},_0x2d8571[_0x1b8adf('0xb9c')]=_0x2ef4ea;function _0x2ef4ea(_0x494077){const _0x42fc00=_0x1b8adf;_0x2d8571['queueCampaign']=_0x494077,_0x4dc132[_0x42fc00('0x1f4f')]['get']({'limit':0x0,'VoiceQueueId':_0x494077['id']})[_0x42fc00('0x1964')][_0x42fc00('0x173b')](function(_0x5e7ddd){const _0xd043f6=_0x42fc00;return _0x2d8571[_0xd043f6('0xa1f')]=_0x5e7ddd[_0xd043f6('0x1a2f')]||0x0,_0x4dc132[_0xd043f6('0x1f4f')][_0xd043f6('0x1d97')]({'limit':0x0,'VoiceQueueId':_0x494077['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0xd043f6('0x1964')];})[_0x42fc00('0x173b')](function(_0x2c35b5){const _0x592e20=_0x42fc00;return _0x2d8571['fresh']=_0x2c35b5['count']||0x0,_0x4dc132[_0x592e20('0x1ccf')][_0x592e20('0x1d97')]({'limit':0x0,'VoiceQueueId':_0x494077['id']})['$promise'];})['then'](function(_0x2bc26e){const _0x57ccc5=_0x42fc00;_0x2d8571['closed']=_0x2bc26e[_0x57ccc5('0x1a2f')]||0x0;})[_0x42fc00('0x103c')](function(_0x5df73c){const _0x4add2b=_0x42fc00;_0x4217d5[_0x4add2b('0x15aa')]({'title':_0x5df73c['status']?_0x4add2b('0x137')+_0x5df73c[_0x4add2b('0x276f')]+_0x4add2b('0x160c')+_0x5df73c[_0x4add2b('0x2696')]:_0x4add2b('0xa41'),'msg':_0x5df73c['data']?JSON[_0x4add2b('0x100b')](_0x5df73c[_0x4add2b('0x1e07')]):_0x5df73c[_0x4add2b('0x1b75')]()});});}}const _0x5529a4=_0x148733;_0x30036a[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'api',_0x566993('0x100f'),_0x566993('0x638'),'$timeout',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x30036a(_0x286613,_0x343ad2,_0x134f3f,_0x429ddc,_0x27381a,_0x4c1aa9,_0xf762de,_0x53ace2,_0x587032){const _0x582f48=_0x566993,_0x1c488f=this;_0x1c488f[_0x582f48('0x155f')]=_0x53ace2[_0x582f48('0x14d4')](),_0x1c488f[_0x582f48('0x100f')]=_0x27381a,_0x1c488f['crudPermissions']=_0x587032,_0x1c488f[_0x582f48('0x1cc1')]=_0x582f48('0x1282'),_0x1c488f[_0x582f48('0x75d')]=_0x582f48('0xe91'),_0x1c488f[_0x582f48('0xd1f')]=_0x582f48('0x5c6'),_0x1c488f[_0x582f48('0x234f')]=_0x582f48('0x6dc'),_0x1c488f['items']=[],_0x1c488f[_0x582f48('0x203e')]=[],_0x1c488f['selectedItems']=[],_0x1c488f[_0x582f48('0x1493')]=[],_0x1c488f[_0x582f48('0x15c9')]=[],_0x1c488f[_0x582f48('0x277e')]=![],_0x1c488f[_0x582f48('0x283e')]=![],_0x1c488f[_0x582f48('0x52e')]={'readOnly':!_0x1c488f[_0x582f48('0x1dc1')]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':'name','line1':_0x582f48('0x10ad'),'line2':'','line3':'','labelAll':_0x4c1aa9[_0x582f48('0x1467')]('MOTIONDIALER.ALL_LISTS'),'labelSelected':_0x4c1aa9[_0x582f48('0x1467')]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function(){const _0x595287=_0x582f48,_0x45645b=_0x3c8d8a()[_0x595287('0x226b')](_0x1c488f[_0x595287('0x15c9')],_0x1c488f['selectedItems'],'id');_0x1c488f['pendingChanges']=_0x3c8d8a()[_0x595287('0x1a56')](_0x45645b)?![]:!![];}},_0x1c488f[_0x582f48('0x2535')]=_0x20cddb,_0x1c488f[_0x582f48('0x2331')]=_0x409c9b,_0x1c488f[_0x582f48('0x18e2')]=_0x3e833d;function _0x20cddb(){const _0x130134=_0x582f48;return _0x53ace2[_0x130134('0x1b4e')](_0x130134('0x79b'))?_0x50cada()[_0x130134('0x103c')](function(_0x4bec28){const _0x5bc5ed=_0x130134;_0x134f3f[_0x5bc5ed('0x15aa')]({'title':_0x4bec28[_0x5bc5ed('0x276f')]?_0x5bc5ed('0x137')+_0x4bec28[_0x5bc5ed('0x276f')]+_0x5bc5ed('0x160c')+_0x4bec28[_0x5bc5ed('0x2696')]:_0x5bc5ed('0x2054'),'msg':_0x4bec28['status']?JSON['stringify'](_0x4bec28[_0x5bc5ed('0x1e07')]):_0x4bec28[_0x5bc5ed('0x1b75')]()});}):_0x5cd418()[_0x130134('0x173b')](function(_0x3b950f){return _0x1c488f['section']=_0x3b950f,_0x50cada();})[_0x130134('0x103c')](function(_0x28fae6){const _0x4cfc64=_0x130134;_0x134f3f['error']({'title':_0x28fae6[_0x4cfc64('0x276f')]?_0x4cfc64('0x137')+_0x28fae6[_0x4cfc64('0x276f')]+_0x4cfc64('0x160c')+_0x28fae6[_0x4cfc64('0x2696')]:'SYSTEM:GETLISTS','msg':_0x28fae6['status']?JSON[_0x4cfc64('0x100b')](_0x28fae6[_0x4cfc64('0x1e07')]):_0x28fae6[_0x4cfc64('0x1b75')]()});});}function _0x5cd418(){return _0x343ad2(function(_0x4a1bf9,_0x1795e0){const _0x10ef8e=a0_0xde5e;_0x429ddc[_0x10ef8e('0x170e')][_0x10ef8e('0x1d97')]({'userProfileId':_0x1c488f[_0x10ef8e('0x155f')][_0x10ef8e('0x1946')],'name':'Lists'})['$promise']['then'](function(_0x2e438f){const _0x4f4a70=_0x10ef8e,_0x120d85=_0x2e438f&&_0x2e438f[_0x4f4a70('0x6aa')]?_0x2e438f['rows'][0x0]:null;_0x4a1bf9(_0x120d85);})[_0x10ef8e('0x103c')](function(_0x4c9d3e){_0x1795e0(_0x4c9d3e);});});}function _0x50cada(){return _0x343ad2(function(_0xe1bd33,_0x6768f1){const _0x134032=a0_0xde5e;return _0x18adb9()[_0x134032('0x173b')](function(_0x43fedc){const _0x261ca9=_0x134032;return _0x1c488f[_0x261ca9('0x1b1f')]=_0x43fedc[_0x261ca9('0x6aa')]?_0x43fedc[_0x261ca9('0x6aa')]:[],_0x53ace2[_0x261ca9('0x1b4e')](_0x261ca9('0x79b'))?_0x43fedc:_0x1c488f[_0x261ca9('0x17c9')]?_0x1c488f[_0x261ca9('0x17c9')][_0x261ca9('0x273e')]?_0x43fedc:_0x4da3bf():null;})[_0x134032('0x173b')](function(_0x2459a1){const _0x40dcf6=_0x134032,_0x1021b6=_0x2459a1&&_0x2459a1[_0x40dcf6('0x6aa')]?_0x2459a1[_0x40dcf6('0x6aa')]:[];return _0x1c488f[_0x40dcf6('0x203e')]=_0x3c8d8a()['map'](_0x1021b6,function(_0x2d8b90){const _0x294d0e=_0x40dcf6;return _0x3c8d8a()[_0x294d0e('0x18ab')](_0x1c488f[_0x294d0e('0x1b1f')],{'id':_0x53ace2['hasRole']('admin')||_0x1c488f[_0x294d0e('0x17c9')][_0x294d0e('0x273e')]?_0x2d8b90['id']:_0x2d8b90['resourceId']});}),_0x1c488f[_0x40dcf6('0x1493')]=angular[_0x40dcf6('0x2e3')](_0x1c488f[_0x40dcf6('0x203e')]),_0x1c488f[_0x40dcf6('0x1b1f')][_0x40dcf6('0xa6a')](function(_0x5c850c){const _0x629f8a=_0x40dcf6,_0x1b0d9b=_0x3c8d8a()[_0x629f8a('0x18ab')](_0x1c488f[_0x629f8a('0x203e')],{'id':_0x5c850c['id']});_0x1c488f[_0x629f8a('0x155f')]['role']===_0x629f8a('0x79b')?_0x5c850c[_0x629f8a('0xf02')]=!![]:_0x5c850c['isValid']=typeof _0x1b0d9b!==_0x629f8a('0x6e5')?!![]:![];}),_0x464d45();})[_0x134032('0x173b')](function(_0x3ff4e7){const _0x345414=_0x134032,_0x49f207=_0x3ff4e7&&_0x3ff4e7[_0x345414('0x6aa')]?_0x3ff4e7[_0x345414('0x6aa')]:[];_0x1c488f[_0x345414('0x5f8')]=_0x3c8d8a()[_0x345414('0x8a2')](_0x49f207,function(_0x2a3397){const _0x2370e4=_0x345414;return _0x3c8d8a()[_0x2370e4('0x18ab')](_0x1c488f['items'],{'id':_0x2a3397['id']});}),_0x1c488f['startingSelectedItems']=angular[_0x345414('0x2e3')](_0x1c488f[_0x345414('0x5f8')]),_0x1c488f[_0x345414('0x52e')]['selectedItems']=_0x1c488f[_0x345414('0x5f8')],_0x1c488f['dualMultiselectOptions'][_0x345414('0x1b1f')]=_0x3c8d8a()[_0x345414('0x1bd3')](_0x1c488f[_0x345414('0x203e')],_0x1c488f['dualMultiselectOptions']['selectedItems'],'id'),_0xe1bd33();})[_0x134032('0x103c')](function(_0x14fd3f){_0x6768f1(_0x14fd3f);});});}function _0x4da3bf(){return _0x343ad2(function(_0x5d511c,_0x244479){const _0xe185b0=a0_0xde5e;return _0x429ddc['userProfileResource'][_0xe185b0('0x1d97')]({'sectionId':_0x1c488f[_0xe185b0('0x17c9')]['id'],'nolimit':!![]})[_0xe185b0('0x1964')][_0xe185b0('0x173b')](function(_0x34d34e){_0x5d511c(_0x34d34e);})[_0xe185b0('0x103c')](function(_0x30e760){_0x244479(_0x30e760);});});}function _0x464d45(){return _0x343ad2(function(_0x54c2a1,_0x25f103){const _0xd84af5=a0_0xde5e,_0x30a3e0=_0x429ddc[_0x1c488f[_0xd84af5('0x1cc1')]];return _0x30a3e0[_0x1c488f[_0xd84af5('0x75d')]]({'id':_0x1c488f['queueCampaign']['id'],'fields':_0xd84af5('0xd52'),'nolimit':!![]})[_0xd84af5('0x1964')][_0xd84af5('0x173b')](function(_0x5bb22b){_0x54c2a1(_0x5bb22b);})[_0xd84af5('0x103c')](function(_0x1176df){_0x25f103(_0x1176df);});});}function _0x18adb9(){return _0x343ad2(function(_0x465275,_0x2b2f15){const _0x11b761=a0_0xde5e;return _0x429ddc[_0x11b761('0xbb3')][_0x11b761('0x1d97')]({'fields':_0x11b761('0xd52'),'nolimit':!![]})['$promise'][_0x11b761('0x173b')](function(_0x413bcc){_0x465275(_0x413bcc);})[_0x11b761('0x103c')](function(_0x3efd4b){_0x2b2f15(_0x3efd4b);});});}function _0x45d777(_0x5ee82c){return _0x343ad2(function(_0x11205c,_0xb52e9){const _0x2af031=a0_0xde5e;if(_0x3c8d8a()[_0x2af031('0x1a56')](_0x5ee82c))_0x11205c();else{const _0x5f1656=_0x429ddc[_0x1c488f[_0x2af031('0x1cc1')]];_0x5f1656[_0x1c488f['addApi']]({'id':_0x1c488f[_0x2af031('0x100f')]['id'],'ids':_0x3c8d8a()['map'](_0x5ee82c,'id')})['$promise'][_0x2af031('0x173b')](function(){_0x11205c();})['catch'](function(_0x437516){_0xb52e9(_0x437516);});}});}function _0x5ac594(_0x14933f){return _0x343ad2(function(_0xee38c7,_0x3ef324){const _0x1075a4=a0_0xde5e;if(_0x3c8d8a()['isEmpty'](_0x14933f))_0xee38c7();else{const _0x1d7d45=_0x429ddc[_0x1c488f[_0x1075a4('0x1cc1')]];_0x1d7d45[_0x1c488f['removeApi']]({'id':_0x1c488f[_0x1075a4('0x100f')]['id'],'ids':_0x3c8d8a()[_0x1075a4('0x8a2')](_0x14933f,'id')})[_0x1075a4('0x1964')][_0x1075a4('0x173b')](function(){_0xee38c7();})['catch'](function(_0x2d5342){_0x3ef324(_0x2d5342);});}});}function _0x409c9b(){const _0x2a5142=_0x582f48;_0x1c488f[_0x2a5142('0x283e')]=!![];const _0x1c35b4=_0x3c8d8a()[_0x2a5142('0x1bd3')](_0x1c488f['startingSelectedItems'],_0x1c488f[_0x2a5142('0x5f8')],'id'),_0x4c20c7=_0x3c8d8a()[_0x2a5142('0x1bd3')](_0x1c488f['selectedItems'],_0x1c488f['startingSelectedItems'],'id');return _0x5ac594(_0x1c35b4)[_0x2a5142('0x173b')](function(){return _0x45d777(_0x4c20c7);})[_0x2a5142('0x173b')](function(){const _0x419f41=_0x2a5142;_0x1c488f[_0x419f41('0x277e')]=![],_0x1c488f[_0x419f41('0x1493')]=angular['copy'](_0x1c488f[_0x419f41('0x203e')]),_0x1c488f[_0x419f41('0x15c9')]=angular[_0x419f41('0x2e3')](_0x1c488f[_0x419f41('0x5f8')]),_0x134f3f['success']({'title':'SUCCESS','msg':_0x419f41('0x10ae')});})[_0x2a5142('0x103c')](function(_0x441f5a){const _0x59f3bf=_0x2a5142;_0x134f3f[_0x59f3bf('0x15aa')]({'title':_0x441f5a[_0x59f3bf('0x276f')]?_0x59f3bf('0x137')+_0x441f5a['status']+'\x20-\x20'+_0x441f5a[_0x59f3bf('0x2696')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x441f5a[_0x59f3bf('0x276f')]?JSON['stringify'](_0x441f5a[_0x59f3bf('0x1e07')]):_0x441f5a['toString']()});})[_0x2a5142('0xf25')](function(){const _0x156c9c=_0x2a5142;_0x1c488f[_0x156c9c('0x283e')]=![];});}function _0x3e833d(){const _0x27b1b9=_0x582f48;_0x286613[_0x27b1b9('0x1cf4')]();}}const _0x505ca7=_0x30036a;_0x46068f['$inject']=[_0x566993('0x66f'),_0x566993('0x1fe5'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x100f'),_0x566993('0x92'),_0x566993('0x65d'),'$q'];function _0x46068f(_0x51e281,_0x1471ae,_0x31d355,_0x4d410f,_0x2b5f00,_0x3ca114,_0x4e2616,_0x544906){const _0x170c87=_0x566993,_0x1df1a2=this;_0x1df1a2[_0x170c87('0x556')]=[],_0x1df1a2[_0x170c87('0x1b1f')]=_0x3ca114?_0x3ca114:[],_0x1df1a2[_0x170c87('0x283e')]=![],_0x1df1a2[_0x170c87('0x18e2')]=_0x4e05dd,_0x1df1a2[_0x170c87('0x4d')]=_0x19216e,_0x1df1a2[_0x170c87('0xa8')]=_0x788411,_0x1df1a2[_0x170c87('0x16d0')]=_0xa80dd1,_0x1df1a2[_0x170c87('0x2060')]=_0x182a1c,_0x1df1a2['toggleAll']=_0x5c7260,_0x1df1a2[_0x170c87('0x151f')]=_0x49956e;function _0x788411(_0x309455,_0x1eca07){const _0x435e41=_0x170c87,_0x107fe0=_0x1eca07[_0x435e41('0x2087')](_0x309455);_0x107fe0>-0x1?_0x1eca07[_0x435e41('0x553')](_0x107fe0,0x1):_0x1eca07['push'](_0x309455);}function _0x19216e(_0x4f8560,_0x108afe){const _0x4c7d2b=_0x170c87;return _0x108afe[_0x4c7d2b('0x2087')](_0x4f8560)>-0x1;}function _0xa80dd1(){const _0x15406b=_0x170c87;return _0x1df1a2[_0x15406b('0x556')][_0x15406b('0x543')]!==0x0&&_0x1df1a2['selected'][_0x15406b('0x543')]!==_0x1df1a2[_0x15406b('0x1b1f')]['length'];}function _0x182a1c(){const _0x1ba5b7=_0x170c87;return _0x1df1a2[_0x1ba5b7('0x556')]['length']===_0x1df1a2['items'][_0x1ba5b7('0x543')];}function _0x5c7260(){const _0x5073f7=_0x170c87;if(_0x1df1a2[_0x5073f7('0x556')]['length']===_0x1df1a2[_0x5073f7('0x1b1f')]['length'])_0x1df1a2['selected']=[];else(_0x1df1a2['selected'][_0x5073f7('0x543')]===0x0||_0x1df1a2[_0x5073f7('0x556')][_0x5073f7('0x543')]>0x0)&&(_0x1df1a2[_0x5073f7('0x556')]=_0x1df1a2[_0x5073f7('0x1b1f')][_0x5073f7('0x2456')](0x0));}function _0x4e05dd(){const _0x3bc139=_0x170c87;_0x1471ae[_0x3bc139('0x1cf4')]();}function _0x49956e(){const _0x5544dc=_0x170c87;_0x1df1a2[_0x5544dc('0x283e')]=!![];const _0x229251=_0x3589d7();_0x229251[_0x5544dc('0xf25')](function(){const _0x4bb01f=_0x5544dc;_0x1df1a2[_0x4bb01f('0x283e')]=![],_0x4e05dd();});}function _0x3589d7(){return _0x544906(function(_0x119b90){const _0x362ab7=a0_0xde5e;for(let _0x94bb3e=0x0;_0x94bb3e<_0x1df1a2[_0x362ab7('0x556')][_0x362ab7('0x543')];_0x94bb3e+=0x1){_0x25b545(_0x2b5f00['id'],_0x1df1a2[_0x362ab7('0x556')][_0x94bb3e]);}_0xea56f4(_0x119b90);});}function _0x25b545(_0x3ababd,_0x3cb798){const _0x1d0cda=_0x170c87,_0x113c4c=_0x3cb798['id'];_0x4e2616[_0x1d0cda('0x8fa')](function(){const _0xa724a6=_0x1d0cda;return _0x4d410f['voiceQueue'][_0xa724a6('0x6dc')]({'id':_0x3ababd,'ids':_0x113c4c})[_0xa724a6('0x1964')]['then'](function(){const _0x1b45d3=_0xa724a6;return _0x4d410f['voiceQueue'][_0x1b45d3('0x5c6')]({'id':_0x3ababd,'ids':_0x113c4c,'dialCheckDuplicateType':_0x1b45d3('0x1633')})['$promise'];})[_0xa724a6('0x173b')](function(){const _0x2dbe48=_0xa724a6;_0x31d355[_0x2dbe48('0xdfe')]({'title':'Reset\x20Succesfull','msg':_0x2dbe48('0x2206')+_0x3cb798[_0x2dbe48('0x10ad')]+'\x20has\x20been\x20reset'});})['catch'](function(_0x272cfe){const _0x4ee2b8=_0xa724a6;_0x31d355[_0x4ee2b8('0x15aa')]({'title':_0x272cfe['status']?_0x4ee2b8('0x137')+_0x272cfe[_0x4ee2b8('0x276f')]+_0x4ee2b8('0x160c')+_0x272cfe[_0x4ee2b8('0x2696')]:_0x4ee2b8('0x1d70'),'msg':_0x272cfe[_0x4ee2b8('0x276f')]?JSON[_0x4ee2b8('0x100b')](_0x272cfe[_0x4ee2b8('0x1e07')]):_0x272cfe[_0x4ee2b8('0x1b75')]()});});});}function _0xea56f4(_0x5f4761){const _0x1626b3=_0x170c87;_0x4e2616[_0x1626b3('0x8fa')](function(){return _0x5f4761();});}}const _0x537fdf=_0x46068f;_0x3da9dc[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x100f'),_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x3da9dc(_0x8f4177,_0x2420de,_0x57b539,_0x2be505,_0x3e652e,_0x5d2393,_0x25c443,_0x2938db){const _0x20249d=_0x566993,_0x2176e3=this;_0x2176e3[_0x20249d('0x155f')]=_0x25c443['getCurrentUser'](),_0x2176e3['queueCampaign']=_0x3e652e,_0x2176e3[_0x20249d('0x1dc1')]=_0x2938db,_0x2176e3[_0x20249d('0x1692')]=0x0,_0x2176e3['items']=[],_0x2176e3[_0x20249d('0x203e')]=[],_0x2176e3['selectedItems']=[],_0x2176e3[_0x20249d('0x1493')]=[],_0x2176e3[_0x20249d('0x15c9')]=[],_0x2176e3['pendingChanges']=![],_0x2176e3[_0x20249d('0x52e')]={'readOnly':!_0x2176e3[_0x20249d('0x1dc1')][_0x20249d('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x20249d('0x10ad'),'line2':'','line3':'','labelAll':_0x5d2393[_0x20249d('0x1467')](_0x20249d('0x1c9')),'labelSelected':_0x5d2393['instant'](_0x20249d('0xacc')),'transferCallback':function(_0x422d9d,_0x2402c1){const _0x3dd444=_0x20249d;_0x2402c1?_0x422d9d[_0x3dd444('0xa6a')](function(_0x2b0e5f){const _0x347d6a=_0x3dd444;_0x2b0e5f[_0x347d6a('0x1692')]=undefined;}):_0x422d9d[_0x3dd444('0xa6a')](function(_0x5024f9){const _0x423b3f=_0x3dd444;_0x5024f9[_0x423b3f('0x1692')]='penalty\x20'+_0x2176e3[_0x423b3f('0x1692')];});const _0x12d04e=_0x3c8d8a()[_0x3dd444('0x226b')](_0x2176e3[_0x3dd444('0x15c9')],_0x2176e3['selectedItems'],'id');_0x2176e3[_0x3dd444('0x277e')]=_0x3c8d8a()[_0x3dd444('0x1a56')](_0x12d04e)?![]:!![];}},_0x2176e3[_0x20249d('0x2535')]=_0x315ce2,_0x2176e3[_0x20249d('0x2421')]=_0x5972ad,_0x2176e3[_0x20249d('0x18e2')]=_0x4d42f3;function _0x315ce2(){const _0xc51f09=_0x20249d;return _0x25c443[_0xc51f09('0x1b4e')](_0xc51f09('0x79b'))?_0x2a7671()['catch'](function(_0x24c77c){const _0x2f1b8a=_0xc51f09;_0x57b539[_0x2f1b8a('0x15aa')]({'title':_0x24c77c[_0x2f1b8a('0x276f')]?'API:'+_0x24c77c[_0x2f1b8a('0x276f')]+_0x2f1b8a('0x160c')+_0x24c77c[_0x2f1b8a('0x2696')]:_0x2f1b8a('0x15d3'),'msg':_0x24c77c[_0x2f1b8a('0x276f')]?JSON[_0x2f1b8a('0x100b')](_0x24c77c[_0x2f1b8a('0x1e07')]):_0x24c77c[_0x2f1b8a('0x1b75')]()});}):_0x2c8bd0()[_0xc51f09('0x173b')](function(_0x26e2f3){const _0x520267=_0xc51f09;return _0x2176e3[_0x520267('0x17c9')]=_0x26e2f3,_0x2a7671();})[_0xc51f09('0x103c')](function(_0x1863d9){const _0x28abaa=_0xc51f09;_0x57b539[_0x28abaa('0x15aa')]({'title':_0x1863d9[_0x28abaa('0x276f')]?_0x28abaa('0x137')+_0x1863d9[_0x28abaa('0x276f')]+_0x28abaa('0x160c')+_0x1863d9[_0x28abaa('0x2696')]:'SYSTEM:GET_TEAMS','msg':_0x1863d9[_0x28abaa('0x276f')]?JSON[_0x28abaa('0x100b')](_0x1863d9[_0x28abaa('0x1e07')]):_0x1863d9[_0x28abaa('0x1b75')]()});});}function _0x2c8bd0(){return _0x2420de(function(_0x1fa5ae,_0x2f69c7){const _0x2b08e3=a0_0xde5e;_0x2be505[_0x2b08e3('0x170e')][_0x2b08e3('0x1d97')]({'userProfileId':_0x2176e3[_0x2b08e3('0x155f')][_0x2b08e3('0x1946')],'name':_0x2b08e3('0x1e5c')})[_0x2b08e3('0x1964')][_0x2b08e3('0x173b')](function(_0x4aeae0){const _0x36f77d=_0x2b08e3,_0xb9a8a9=_0x4aeae0&&_0x4aeae0['rows']?_0x4aeae0[_0x36f77d('0x6aa')][0x0]:null;_0x1fa5ae(_0xb9a8a9);})[_0x2b08e3('0x103c')](function(_0x1d030f){_0x2f69c7(_0x1d030f);});});}function _0x2a7671(){return _0x2420de(function(_0x59a1e6,_0x3f184a){const _0x5b1201=a0_0xde5e;return _0x126c83()[_0x5b1201('0x173b')](function(_0x5e0201){const _0x1cde2c=_0x5b1201;return _0x2176e3[_0x1cde2c('0x1b1f')]=_0x5e0201[_0x1cde2c('0x6aa')]?_0x5e0201[_0x1cde2c('0x6aa')]:[],_0x25c443[_0x1cde2c('0x1b4e')](_0x1cde2c('0x79b'))?_0x5e0201:_0x2176e3[_0x1cde2c('0x17c9')]?_0x2176e3[_0x1cde2c('0x17c9')][_0x1cde2c('0x273e')]?_0x5e0201:_0x37fd4d():null;})[_0x5b1201('0x173b')](function(_0xca492f){const _0x33f860=_0x5b1201,_0x4defbd=_0xca492f&&_0xca492f[_0x33f860('0x6aa')]?_0xca492f[_0x33f860('0x6aa')]:[];return _0x2176e3[_0x33f860('0x203e')]=_0x3c8d8a()[_0x33f860('0x8a2')](_0x4defbd,function(_0x3aa599){const _0x431ac0=_0x33f860;return _0x3c8d8a()[_0x431ac0('0x18ab')](_0x2176e3[_0x431ac0('0x1b1f')],{'id':_0x25c443[_0x431ac0('0x1b4e')](_0x431ac0('0x79b'))||_0x2176e3['section'][_0x431ac0('0x273e')]?_0x3aa599['id']:_0x3aa599['resourceId']});}),_0x2176e3['items']['forEach'](function(_0x213426){const _0x11f058=_0x33f860,_0x57a64b=_0x3c8d8a()['find'](_0x2176e3[_0x11f058('0x203e')],{'id':_0x213426['id']});_0x25c443[_0x11f058('0x1b4e')](_0x11f058('0x79b'))?_0x213426[_0x11f058('0xf02')]=!![]:_0x213426[_0x11f058('0xf02')]=typeof _0x57a64b!==_0x11f058('0x6e5')?!![]:![];}),_0x14d8a5();})[_0x5b1201('0x173b')](function(_0x19e3d3){const _0x4be414=_0x5b1201,_0x4bddd9=_0x19e3d3&&_0x19e3d3[_0x4be414('0x6aa')]?_0x19e3d3['rows']:[];_0x2176e3[_0x4be414('0x5f8')]=_0x3c8d8a()[_0x4be414('0x8a2')](_0x4bddd9,function(_0x34b401){const _0x559d52=_0x4be414;return _0x3c8d8a()[_0x559d52('0x18ab')](_0x2176e3[_0x559d52('0x1b1f')],{'id':_0x34b401['id']});}),_0x2176e3[_0x4be414('0x15c9')]=angular['copy'](_0x2176e3[_0x4be414('0x5f8')]),_0x2176e3[_0x4be414('0x52e')][_0x4be414('0x5f8')]=_0x2176e3[_0x4be414('0x5f8')],_0x2176e3[_0x4be414('0x52e')][_0x4be414('0x1b1f')]=_0x3c8d8a()['differenceBy'](_0x2176e3[_0x4be414('0x203e')],_0x2176e3['dualMultiselectOptions'][_0x4be414('0x5f8')],'id'),_0x59a1e6();})[_0x5b1201('0x103c')](function(_0x4903cb){_0x3f184a(_0x4903cb);});});}function _0x37fd4d(){return _0x2420de(function(_0x293fe9,_0x13a1d8){const _0x5a77e9=a0_0xde5e;return _0x2be505['userProfileResource'][_0x5a77e9('0x1d97')]({'sectionId':_0x2176e3[_0x5a77e9('0x17c9')]['id'],'nolimit':!![]})['$promise'][_0x5a77e9('0x173b')](function(_0x52e4f4){_0x293fe9(_0x52e4f4);})[_0x5a77e9('0x103c')](function(_0x4883a2){_0x13a1d8(_0x4883a2);});});}function _0x14d8a5(){return _0x2420de(function(_0x5d74f6,_0x3e1a80){const _0x32ba84=a0_0xde5e;return _0x2be505['voiceQueue'][_0x32ba84('0x1592')]({'id':_0x2176e3[_0x32ba84('0x100f')]['id'],'fields':_0x32ba84('0xd52'),'nolimit':!![]})['$promise']['then'](function(_0x7ed85e){_0x5d74f6(_0x7ed85e);})['catch'](function(_0x2fa52f){_0x3e1a80(_0x2fa52f);});});}function _0x126c83(){return _0x2420de(function(_0x17f370,_0x5a0cae){const _0x30ce76=a0_0xde5e;return _0x2be505[_0x30ce76('0xe10')][_0x30ce76('0x1d97')]({'fields':_0x30ce76('0xd52'),'nolimit':!![]})[_0x30ce76('0x1964')][_0x30ce76('0x173b')](function(_0x5e3fde){_0x17f370(_0x5e3fde);})['catch'](function(_0x6db641){_0x5a0cae(_0x6db641);});});}function _0x98685d(_0x3d262f){return _0x2420de(function(_0x4cd549,_0x429336){const _0x5b07a9=a0_0xde5e;if(_0x3c8d8a()[_0x5b07a9('0x1a56')](_0x3d262f))_0x4cd549();else{const _0x60b4cf=_0x3c8d8a()[_0x5b07a9('0x8a2')](_0x3d262f,function(_0x366496){const _0x5ed535=_0x5b07a9;return{'id':_0x366496['id'],'penalty':_0x3c8d8a()['trim'](_0x366496[_0x5ed535('0x1692')],'penalty\x20')};});return _0x2be505[_0x5b07a9('0x1282')][_0x5b07a9('0x500')]({'id':_0x2176e3[_0x5b07a9('0x100f')]['id'],'teams':_0x60b4cf})['$promise']['then'](function(){_0x4cd549();})[_0x5b07a9('0x103c')](function(_0x481955){_0x429336(_0x481955);});}});}function _0xfab11a(_0x49c10d){return _0x2420de(function(_0x15901a,_0x3739ca){const _0x19298e=a0_0xde5e;_0x3c8d8a()[_0x19298e('0x1a56')](_0x49c10d)?_0x15901a():_0x2be505[_0x19298e('0x1282')]['removeTeams']({'id':_0x2176e3[_0x19298e('0x100f')]['id'],'ids':_0x3c8d8a()['map'](_0x49c10d,'id')})[_0x19298e('0x1964')][_0x19298e('0x173b')](function(){_0x15901a();})['catch'](function(_0x133c13){_0x3739ca(_0x133c13);});});}function _0x5972ad(){const _0x12226f=_0x20249d,_0x5ed8e3=_0x3c8d8a()['differenceBy'](_0x2176e3['startingSelectedItems'],_0x2176e3[_0x12226f('0x5f8')],'id'),_0x53c39d=_0x3c8d8a()[_0x12226f('0x1bd3')](_0x2176e3[_0x12226f('0x5f8')],_0x2176e3[_0x12226f('0x15c9')],'id');return _0xfab11a(_0x5ed8e3)[_0x12226f('0x173b')](function(){return _0x98685d(_0x53c39d);})[_0x12226f('0x173b')](function(){const _0x13e4bc=_0x12226f;_0x2176e3['pendingChanges']=![],_0x2176e3[_0x13e4bc('0x1493')]=angular[_0x13e4bc('0x2e3')](_0x2176e3['allowedItems']),_0x2176e3['startingSelectedItems']=angular[_0x13e4bc('0x2e3')](_0x2176e3[_0x13e4bc('0x5f8')]),_0x57b539[_0x13e4bc('0xdfe')]({'title':'SUCCESS','msg':_0x13e4bc('0x1b39')});})[_0x12226f('0x103c')](function(_0xc21e77){const _0xe74249=_0x12226f;_0x57b539[_0xe74249('0x15aa')]({'title':_0xc21e77[_0xe74249('0x276f')]?_0xe74249('0x137')+_0xc21e77['status']+_0xe74249('0x160c')+_0xc21e77[_0xe74249('0x2696')]:_0xe74249('0x1f48'),'msg':_0xc21e77[_0xe74249('0x276f')]?JSON[_0xe74249('0x100b')](_0xc21e77[_0xe74249('0x1e07')]):_0xc21e77[_0xe74249('0x1b75')]()});});}function _0x4d42f3(){const _0x41d290=_0x20249d;_0x8f4177[_0x41d290('0x1cf4')]();}}const _0xcab25e=_0x3da9dc,_0xd21fb=_0x21a6a1['p']+_0x566993('0x265b'),_0xc53269=_0x21a6a1['p']+_0x566993('0x15ed'),_0x3aa02c=_0x21a6a1['p']+_0x566993('0xb0e'),_0x47ba9c=_0x21a6a1['p']+_0x566993('0xeed'),_0x1e0b5b=_0x21a6a1['p']+_0x566993('0xb81');_0x23ceac[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),'setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x100f'),_0x566993('0x170e')];function _0x23ceac(_0x14976a,_0x6dda30,_0x1f6e31,_0x58bafc,_0x36707e,_0x4673af,_0x216806,_0x56aed0,_0x1715b6,_0x5b2027,_0x514126,_0x4d8eb9){const _0x262779=_0x566993,_0x2d297a=this;_0x2d297a['currentUser']=_0x5b2027[_0x262779('0x14d4')](),_0x2d297a['license']=_0x4673af,_0x2d297a['setting']=_0x216806,_0x2d297a[_0x262779('0x644')]=_0x2d297a[_0x262779('0x251')][_0x262779('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2d297a[_0x262779('0x614')]=_0x6dda30[_0x262779('0x375')]()+_0x262779('0x122b')+_0x6dda30[_0x262779('0x4d1')](),_0x2d297a[_0x262779('0x100f')]=_0x514126||_0x14976a[_0x262779('0x197a')][_0x262779('0x100f')]||{},_0x2d297a[_0x262779('0x170e')]=_0x4d8eb9&&_0x4d8eb9[_0x262779('0x1a2f')]==0x1?_0x4d8eb9[_0x262779('0x6aa')][0x0]:null,_0x2d297a['crudPermissions']=_0x5b2027['parseCrudPermissions'](_0x2d297a[_0x262779('0x170e')]?_0x2d297a['userProfileSection'][_0x262779('0x1dc1')]:null),_0x2d297a['hasModulePermissions']={},_0x2d297a[_0x262779('0xd5f')]=_0x14976a['params']['tab']||0x0,_0x2d297a[_0x262779('0x28a')]=_0x6c5e75,_0x2d297a[_0x262779('0xc51')]=_0x108985,_0x2d297a[_0x262779('0x1ae6')]=_0x4764cd,_0x2d297a[_0x262779('0x17d4')]=_0x47c7db,_0x2d297a[_0x262779('0x2118')]=_0x380b46,_0x2d297a[_0x262779('0x11e8')]=_0x43cf68,_0x2d297a['gotogoto']=_0x5c2b2f,_0x2d297a[_0x262779('0x5a4')]=_0x1715b6[_0x262779('0x2787')],_0x2d297a[_0x262779('0x208')]=_0x2f3934,_0x2d297a[_0x262779('0x1f83')]=_0x56f92d,_0x5b2027[_0x262779('0x1b4e')](_0x262779('0x79b'))?_0x56aed0['voiceMusicOnHold'][_0x262779('0x1d97')]({'fields':_0x262779('0xd52'),'nolimit':_0x262779('0x799')})[_0x262779('0x1964')][_0x262779('0x173b')](function(_0x20ce83){const _0x382d0a=_0x262779;_0x2d297a[_0x382d0a('0x5b9')]=_0x20ce83[_0x382d0a('0x6aa')]||[];})[_0x262779('0x103c')](function(_0x1b688d){const _0x222a07=_0x262779;_0x1715b6[_0x222a07('0x15aa')]({'title':_0x1b688d[_0x222a07('0x276f')]?'API:'+_0x1b688d[_0x222a07('0x276f')]+'\x20-\x20'+_0x1b688d[_0x222a07('0x2696')]:_0x222a07('0xfc0'),'msg':_0x1b688d[_0x222a07('0x1e07')]?JSON[_0x222a07('0x100b')](_0x1b688d[_0x222a07('0x1e07')]):_0x1b688d[_0x222a07('0x1b75')]()});}):_0x56aed0[_0x262779('0x1bb5')][_0x262779('0x1d97')]({'fields':_0x262779('0xd52'),'nolimit':_0x262779('0x799')})[_0x262779('0x1964')][_0x262779('0x173b')](function(_0x277d9b){const _0x1c5bfe=_0x262779;_0x2d297a['musiconholds']=_0x277d9b[_0x1c5bfe('0x6aa')]||[];})[_0x262779('0x173b')](function(){const _0x5c7682=_0x262779;return _0x56aed0[_0x5c7682('0x170e')][_0x5c7682('0x1d97')]({'userProfileId':_0x2d297a[_0x5c7682('0x155f')][_0x5c7682('0x1946')],'sectionId':0x197})['$promise'];})[_0x262779('0x173b')](function(_0x30b143){const _0x37522b=_0x262779,_0x3653d5=_0x30b143&&_0x30b143[_0x37522b('0x6aa')]?_0x30b143[_0x37522b('0x6aa')][0x0]:null;if(!_0x3653d5)return _0x56aed0[_0x37522b('0x1bb5')][_0x37522b('0x1d97')]({'fields':_0x37522b('0xd52'),'nolimit':_0x37522b('0x799'),'defaultEntry':0x1})[_0x37522b('0x1964')][_0x37522b('0x173b')](function(_0x4702d3){const _0x2f8275=_0x37522b;_0x2d297a['musiconholds']=_0x4702d3[_0x2f8275('0x6aa')]||[];});else{if(!_0x3653d5['autoAssociation'])return _0x56aed0[_0x37522b('0xda9')]['get']({'sectionId':_0x3653d5['id']})[_0x37522b('0x1964')][_0x37522b('0x173b')](function(_0xd0891b){const _0x307f82=_0x37522b,_0x592a62=_0x3c8d8a()[_0x307f82('0x8a2')](_0xd0891b[_0x307f82('0x6aa')],function(_0x4fbd09){const _0x2950f7=_0x307f82;return _0x3c8d8a()[_0x2950f7('0x18ab')](_0x2d297a[_0x2950f7('0x5b9')],{'id':_0x4fbd09['resourceId']});});let _0x5a3990=null;_0x2d297a[_0x307f82('0x100f')]&&(_0x5a3990=_0x3c8d8a()[_0x307f82('0x18ab')](_0x2d297a[_0x307f82('0x5b9')],{'name':_0x2d297a[_0x307f82('0x100f')]['musiconhold']}));if(_0x5a3990&&!_0x3c8d8a()[_0x307f82('0x1ec')](_0x592a62,['id',_0x5a3990['id']])){const _0x4e5672=_0x3c8d8a()[_0x307f82('0x18ab')](_0x2d297a[_0x307f82('0x5b9')],{'id':_0x5a3990['id']});_0x4e5672[_0x307f82('0x268e')]=![],_0x592a62[_0x307f82('0x18bb')](_0x4e5672);}_0x2d297a[_0x307f82('0x5b9')]=_0x592a62;});}})[_0x262779('0x103c')](function(_0xda5390){const _0x35588f=_0x262779;_0x1715b6[_0x35588f('0x15aa')]({'title':_0xda5390['status']?_0x35588f('0x137')+_0xda5390['status']+'\x20-\x20'+_0xda5390[_0x35588f('0x2696')]:'SYSTEM:GETmusiconholds','msg':_0xda5390[_0x35588f('0x1e07')]?JSON['stringify'](_0xda5390[_0x35588f('0x1e07')]):_0xda5390[_0x35588f('0x1b75')]()});}),_0x5b2027[_0x262779('0x1b4e')](_0x262779('0x79b'))?_0x56aed0[_0x262779('0x15b7')][_0x262779('0x1d97')]({'fields':_0x262779('0xd52'),'sort':_0x262779('0x10ad')})[_0x262779('0x1964')][_0x262779('0x173b')](function(_0x2b12ee){const _0x33184c=_0x262779;_0x2d297a[_0x33184c('0x673')]=_0x2b12ee[_0x33184c('0x6aa')]||[];})[_0x262779('0x103c')](function(_0x558cb3){const _0x1093e8=_0x262779;_0x1715b6[_0x1093e8('0x15aa')]({'title':_0x558cb3[_0x1093e8('0x276f')]?_0x1093e8('0x137')+_0x558cb3['status']+'\x20-\x20'+_0x558cb3['statusText']:_0x1093e8('0xbd8'),'msg':_0x558cb3[_0x1093e8('0x1e07')]?JSON['stringify'](_0x558cb3[_0x1093e8('0x1e07')]):_0x558cb3[_0x1093e8('0x1b75')]()});}):_0x56aed0[_0x262779('0x15b7')][_0x262779('0x1d97')]({'fields':'id,name','sort':'name'})[_0x262779('0x1964')]['then'](function(_0x543f09){const _0x10aed3=_0x262779;_0x2d297a['trunks']=_0x543f09[_0x10aed3('0x6aa')]||[];})[_0x262779('0x173b')](function(){const _0x256419=_0x262779;return _0x56aed0['userProfileSection'][_0x256419('0x1d97')]({'userProfileId':_0x2d297a['currentUser']['userProfileId'],'sectionId':0x3f3})[_0x256419('0x1964')];})[_0x262779('0x173b')](function(_0xbf5042){const _0x4ca1a1=_0x262779,_0x56868b=_0xbf5042&&_0xbf5042['rows']?_0xbf5042[_0x4ca1a1('0x6aa')][0x0]:null;if(!_0x56868b){const _0x2f59e4=[];let _0x5f380c=null;_0x2d297a[_0x4ca1a1('0x100f')]&&(_0x5f380c=_0x3c8d8a()[_0x4ca1a1('0x18ab')](_0x2d297a['trunks'],{'id':Number(_0x2d297a['queueCampaign'][_0x4ca1a1('0xdad')])}));for(let _0x78a0be=0x0;_0x78a0be<_0x2d297a[_0x4ca1a1('0x673')][_0x4ca1a1('0x543')];_0x78a0be++){_0x5f380c&&_0x2d297a['trunks'][_0x78a0be]['id']===_0x5f380c['id']&&(_0x2d297a[_0x4ca1a1('0x673')][_0x78a0be]['canSelect']=![],_0x2f59e4[_0x4ca1a1('0x18bb')](_0x2d297a[_0x4ca1a1('0x673')][_0x78a0be]));}_0x2d297a[_0x4ca1a1('0x673')]=_0x2f59e4;}else{if(!_0x56868b[_0x4ca1a1('0x273e')])return _0x56aed0[_0x4ca1a1('0xda9')][_0x4ca1a1('0x1d97')]({'sectionId':_0x56868b['id']})['$promise'][_0x4ca1a1('0x173b')](function(_0x2bb622){const _0x1df477=_0x4ca1a1,_0x4c5bc0=_0x3c8d8a()[_0x1df477('0x8a2')](_0x2bb622[_0x1df477('0x6aa')],function(_0x40493b){const _0x50adca=_0x1df477;return _0x3c8d8a()[_0x50adca('0x18ab')](_0x2d297a[_0x50adca('0x673')],{'id':_0x40493b[_0x50adca('0x1ce0')]});});let _0x29087b=null;_0x2d297a[_0x1df477('0x100f')]&&(_0x29087b=_0x3c8d8a()[_0x1df477('0x18ab')](_0x2d297a[_0x1df477('0x673')],{'id':Number(_0x2d297a['queueCampaign']['TrunkId'])}));if(_0x29087b&&!_0x3c8d8a()[_0x1df477('0x1ec')](_0x4c5bc0,['id',_0x29087b['id']])){const _0x160e95=_0x3c8d8a()[_0x1df477('0x18ab')](_0x2d297a[_0x1df477('0x673')],{'id':_0x29087b['id']});_0x160e95[_0x1df477('0x268e')]=![],_0x4c5bc0[_0x1df477('0x18bb')](_0x160e95);}_0x2d297a['trunks']=_0x4c5bc0;});}})[_0x262779('0x103c')](function(_0x2d4280){const _0x36c647=_0x262779;_0x1715b6[_0x36c647('0x15aa')]({'title':_0x2d4280[_0x36c647('0x276f')]?'API:'+_0x2d4280[_0x36c647('0x276f')]+_0x36c647('0x160c')+_0x2d4280[_0x36c647('0x2696')]:_0x36c647('0x21ed'),'msg':_0x2d4280[_0x36c647('0x1e07')]?JSON[_0x36c647('0x100b')](_0x2d4280['data']):_0x2d4280[_0x36c647('0x1b75')]()});}),_0x5b2027[_0x262779('0x1b4e')](_0x262779('0x79b'))?_0x56aed0['squareProject'][_0x262779('0x1d97')]({'fields':_0x262779('0xd52'),'sort':_0x262779('0x10ad')})[_0x262779('0x1964')]['then'](function(_0x451052){const _0x1a4b91=_0x262779;_0x2d297a['projects']=_0x451052[_0x1a4b91('0x6aa')]||[];})[_0x262779('0x103c')](function(_0x498396){const _0x1c9604=_0x262779;_0x1715b6['error']({'title':_0x498396[_0x1c9604('0x276f')]?_0x1c9604('0x137')+_0x498396[_0x1c9604('0x276f')]+_0x1c9604('0x160c')+_0x498396['statusText']:_0x1c9604('0x24bb'),'msg':_0x498396[_0x1c9604('0x1e07')]?JSON['stringify'](_0x498396[_0x1c9604('0x1e07')]):_0x498396['toString']()});}):_0x56aed0[_0x262779('0x550')][_0x262779('0x1d97')]({'fields':_0x262779('0xd52'),'sort':'name'})[_0x262779('0x1964')][_0x262779('0x173b')](function(_0x997a24){const _0x4e05cd=_0x262779;_0x2d297a[_0x4e05cd('0x23a1')]=_0x997a24[_0x4e05cd('0x6aa')]||[];})[_0x262779('0x173b')](function(){const _0x128522=_0x262779;return _0x56aed0[_0x128522('0x170e')][_0x128522('0x1d97')]({'userProfileId':_0x2d297a['currentUser']['userProfileId'],'sectionId':0x44f})[_0x128522('0x1964')];})[_0x262779('0x173b')](function(_0x91c61c){const _0xe94fb4=_0x262779,_0x565bd6=_0x91c61c&&_0x91c61c[_0xe94fb4('0x6aa')]?_0x91c61c['rows'][0x0]:null;if(!_0x565bd6){const _0x3ff787=[];let _0x58e770=null;_0x2d297a[_0xe94fb4('0x100f')]&&(_0x58e770=_0x3c8d8a()[_0xe94fb4('0x18ab')](_0x2d297a[_0xe94fb4('0x23a1')],{'name':_0x2d297a['queueCampaign'][_0xe94fb4('0x45e')]}));for(let _0x461736=0x0;_0x461736<_0x2d297a[_0xe94fb4('0x23a1')][_0xe94fb4('0x543')];_0x461736++){_0x58e770&&_0x2d297a[_0xe94fb4('0x23a1')][_0x461736]['id']===_0x58e770['id']&&(_0x2d297a[_0xe94fb4('0x23a1')][_0x461736]['canSelect']=![],_0x3ff787[_0xe94fb4('0x18bb')](_0x2d297a[_0xe94fb4('0x23a1')][_0x461736]));}_0x2d297a[_0xe94fb4('0x23a1')]=_0x3ff787;}else{if(!_0x565bd6[_0xe94fb4('0x273e')])return _0x56aed0[_0xe94fb4('0xda9')][_0xe94fb4('0x1d97')]({'sectionId':_0x565bd6['id']})[_0xe94fb4('0x1964')][_0xe94fb4('0x173b')](function(_0x2b8fe8){const _0x3c5c26=_0xe94fb4,_0x4e6e8d=_0x3c8d8a()[_0x3c5c26('0x8a2')](_0x2b8fe8[_0x3c5c26('0x6aa')],function(_0x4db66e){const _0x1f6c8d=_0x3c5c26;return _0x3c8d8a()[_0x1f6c8d('0x18ab')](_0x2d297a[_0x1f6c8d('0x23a1')],{'id':_0x4db66e['resourceId']});});let _0x30e229=null;_0x2d297a[_0x3c5c26('0x100f')]&&(_0x30e229=_0x3c8d8a()[_0x3c5c26('0x18ab')](_0x2d297a['projects'],{'name':_0x2d297a['queueCampaign']['dialQueueProject']}));if(_0x30e229&&!_0x3c8d8a()[_0x3c5c26('0x1ec')](_0x4e6e8d,['id',_0x30e229['id']])){const _0x2b70a9=_0x3c8d8a()[_0x3c5c26('0x18ab')](_0x2d297a['projects'],{'id':_0x30e229['id']});_0x2b70a9['canSelect']=![],_0x4e6e8d[_0x3c5c26('0x18bb')](_0x2b70a9);}_0x2d297a[_0x3c5c26('0x23a1')]=_0x4e6e8d;});}})[_0x262779('0x103c')](function(_0x59da89){const _0x4c61b0=_0x262779;_0x1715b6['error']({'title':_0x59da89[_0x4c61b0('0x276f')]?_0x4c61b0('0x137')+_0x59da89['status']+_0x4c61b0('0x160c')+_0x59da89[_0x4c61b0('0x2696')]:_0x4c61b0('0x2233'),'msg':_0x59da89[_0x4c61b0('0x1e07')]?JSON[_0x4c61b0('0x100b')](_0x59da89[_0x4c61b0('0x1e07')]):_0x59da89[_0x4c61b0('0x1b75')]()});}),_0x5b2027[_0x262779('0x1b4e')](_0x262779('0x79b'))?_0x56aed0[_0x262779('0x55a')][_0x262779('0x1d97')]({'fields':_0x262779('0xd52'),'sort':'name','IntervalId':_0x262779('0x877')})[_0x262779('0x1964')][_0x262779('0x173b')](function(_0x184ad2){const _0x26dbdf=_0x262779;_0x2d297a[_0x26dbdf('0x55a')]=_0x184ad2['rows']||[];})[_0x262779('0x103c')](function(_0x10101d){const _0x58a840=_0x262779;_0x1715b6[_0x58a840('0x15aa')]({'title':_0x10101d['status']?_0x58a840('0x137')+_0x10101d[_0x58a840('0x276f')]+_0x58a840('0x160c')+_0x10101d['statusText']:_0x58a840('0x1f4b'),'msg':_0x10101d['data']?JSON[_0x58a840('0x100b')](_0x10101d[_0x58a840('0x1e07')]):_0x10101d['toString']()});}):_0x56aed0[_0x262779('0x55a')][_0x262779('0x1d97')]({'fields':_0x262779('0xd52'),'sort':_0x262779('0x10ad'),'IntervalId':_0x262779('0x877')})[_0x262779('0x1964')][_0x262779('0x173b')](function(_0x18d560){const _0x2c979d=_0x262779;_0x2d297a[_0x2c979d('0x55a')]=_0x18d560[_0x2c979d('0x6aa')]||[];})[_0x262779('0x173b')](function(){const _0x27cdef=_0x262779;return _0x56aed0[_0x27cdef('0x170e')]['get']({'userProfileId':_0x2d297a[_0x27cdef('0x155f')][_0x27cdef('0x1946')],'sectionId':0x3ec})[_0x27cdef('0x1964')];})[_0x262779('0x173b')](function(_0x2568ed){const _0x364a57=_0x262779,_0x50f662=_0x2568ed&&_0x2568ed[_0x364a57('0x6aa')]?_0x2568ed['rows'][0x0]:null;if(!_0x50f662){const _0x579e91=[];let _0x5b8145=null;_0x2d297a[_0x364a57('0x100f')]&&(_0x5b8145=_0x3c8d8a()['find'](_0x2d297a[_0x364a57('0x55a')],{'id':Number(_0x2d297a[_0x364a57('0x100f')][_0x364a57('0x600')])}));for(let _0x16f0c4=0x0;_0x16f0c4<_0x2d297a[_0x364a57('0x55a')][_0x364a57('0x543')];_0x16f0c4++){_0x5b8145&&_0x2d297a[_0x364a57('0x55a')][_0x16f0c4]['id']===_0x5b8145['id']&&(_0x2d297a[_0x364a57('0x55a')][_0x16f0c4]['canSelect']=![],_0x579e91['push'](_0x2d297a['interval'][_0x16f0c4]));}_0x2d297a['interval']=_0x579e91;}else{if(!_0x50f662['autoAssociation'])return _0x56aed0[_0x364a57('0xda9')][_0x364a57('0x1d97')]({'sectionId':_0x50f662['id']})[_0x364a57('0x1964')][_0x364a57('0x173b')](function(_0x476dd9){const _0x28f066=_0x364a57,_0x59533e=_0x3c8d8a()[_0x28f066('0x8a2')](_0x476dd9[_0x28f066('0x6aa')],function(_0x4d328a){const _0x1ff0ca=_0x28f066;return _0x3c8d8a()[_0x1ff0ca('0x18ab')](_0x2d297a['interval'],{'id':_0x4d328a['resourceId']});});let _0x3ae055=null;_0x2d297a[_0x28f066('0x100f')]&&(_0x3ae055=_0x3c8d8a()[_0x28f066('0x18ab')](_0x2d297a[_0x28f066('0x55a')],{'id':Number(_0x2d297a[_0x28f066('0x100f')][_0x28f066('0x600')])}));if(_0x3ae055&&!_0x3c8d8a()[_0x28f066('0x1ec')](_0x59533e,['id',_0x3ae055['id']])){const _0x5013c6=_0x3c8d8a()[_0x28f066('0x18ab')](_0x2d297a[_0x28f066('0x55a')],{'id':_0x3ae055['id']});_0x5013c6['canSelect']=![],_0x59533e['push'](_0x5013c6);}_0x2d297a[_0x28f066('0x55a')]=_0x59533e;});}})[_0x262779('0x103c')](function(_0x366f73){const _0x172ab2=_0x262779;_0x1715b6[_0x172ab2('0x15aa')]({'title':_0x366f73[_0x172ab2('0x276f')]?_0x172ab2('0x137')+_0x366f73['status']+_0x172ab2('0x160c')+_0x366f73['statusText']:_0x172ab2('0x2419'),'msg':_0x366f73[_0x172ab2('0x1e07')]?JSON[_0x172ab2('0x100b')](_0x366f73[_0x172ab2('0x1e07')]):_0x366f73[_0x172ab2('0x1b75')]()});}),_0x5b2027[_0x262779('0x1b4e')](_0x262779('0x79b'))?_0x56aed0[_0x262779('0x1751')][_0x262779('0x1d97')]({'fields':_0x262779('0x901'),'sort':_0x262779('0x10ad'),'nolimit':_0x262779('0x799')})[_0x262779('0x1964')]['then'](function(_0x167458){const _0x74b447=_0x262779;_0x2d297a[_0x74b447('0x1d66')]=_0x167458[_0x74b447('0x6aa')]||[];})['catch'](function(_0x15417c){const _0x104d01=_0x262779;_0x1715b6[_0x104d01('0x15aa')]({'title':_0x15417c[_0x104d01('0x276f')]?_0x104d01('0x137')+_0x15417c[_0x104d01('0x276f')]+_0x104d01('0x160c')+_0x15417c[_0x104d01('0x2696')]:_0x104d01('0xe0f'),'msg':_0x15417c[_0x104d01('0x1e07')]?JSON['stringify'](_0x15417c[_0x104d01('0x1e07')]):_0x15417c[_0x104d01('0x1b75')]()});}):_0x56aed0[_0x262779('0x1751')][_0x262779('0x1d97')]({'fields':_0x262779('0x901'),'sort':_0x262779('0x10ad'),'nolimit':'true'})[_0x262779('0x1964')][_0x262779('0x173b')](function(_0x553134){const _0xa1329=_0x262779;_0x2d297a[_0xa1329('0x1d66')]=_0x553134[_0xa1329('0x6aa')]||[];})[_0x262779('0x173b')](function(){const _0x16c4a4=_0x262779;return _0x56aed0[_0x16c4a4('0x170e')][_0x16c4a4('0x1d97')]({'userProfileId':_0x2d297a[_0x16c4a4('0x155f')][_0x16c4a4('0x1946')],'sectionId':0x3ed})[_0x16c4a4('0x1964')];})[_0x262779('0x173b')](function(_0x118287){const _0x413386=_0x262779,_0x1e609d=_0x118287&&_0x118287[_0x413386('0x6aa')]?_0x118287[_0x413386('0x6aa')][0x0]:null;if(!_0x1e609d)_0x2d297a['pauses']=[];else{if(!_0x1e609d[_0x413386('0x273e')])return _0x56aed0[_0x413386('0xda9')]['get']({'sectionId':_0x1e609d['id']})[_0x413386('0x1964')][_0x413386('0x173b')](function(_0x114fae){const _0x26e855=_0x413386,_0x4075d2=_0x3c8d8a()[_0x26e855('0x8a2')](_0x114fae[_0x26e855('0x6aa')],function(_0x39226d){const _0x93a6fe=_0x26e855;return _0x3c8d8a()[_0x93a6fe('0x18ab')](_0x2d297a['pauses'],{'id':_0x39226d[_0x93a6fe('0x1ce0')]});});_0x2d297a[_0x26e855('0x1d66')]['forEach'](function(_0x4ba18b){const _0x5a2b83=_0x26e855;!_0x3c8d8a()['some'](_0x4075d2,['id',_0x4ba18b['id']])&&(_0x4ba18b[_0x5a2b83('0x268e')]=![]),_0x4075d2[_0x5a2b83('0x18bb')](_0x4ba18b);}),_0x2d297a[_0x26e855('0x1d66')]=_0x4075d2;});}})[_0x262779('0x103c')](function(_0x130450){const _0x3b2ddd=_0x262779;_0x1715b6[_0x3b2ddd('0x15aa')]({'title':_0x130450[_0x3b2ddd('0x276f')]?_0x3b2ddd('0x137')+_0x130450[_0x3b2ddd('0x276f')]+'\x20-\x20'+_0x130450[_0x3b2ddd('0x2696')]:_0x3b2ddd('0x2595'),'msg':_0x130450[_0x3b2ddd('0x1e07')]?JSON[_0x3b2ddd('0x100b')](_0x130450[_0x3b2ddd('0x1e07')]):_0x130450[_0x3b2ddd('0x1b75')]()});});function _0x6c5e75(_0x35b08f,_0x488f35){const _0x15a9da=_0x262779;_0x1f6e31[_0x15a9da('0x1cb7')]({'controller':_0x15a9da('0x640'),'controllerAs':'vm','templateUrl':_0xd21fb,'parent':angular[_0x15a9da('0xb6d')](_0x58bafc[_0x15a9da('0x1a5')]),'targetEvent':_0x488f35,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x35b08f,'queueCampaigns':_0x2d297a[_0x15a9da('0x5d6')]?_0x2d297a['queueCampaigns'][_0x15a9da('0x6aa')]:[],'crudPermissions':_0x2d297a[_0x15a9da('0x1dc1')]}});}function _0x108985(_0x244fbd,_0x280436){const _0x2bd2d2=_0x262779;_0x1f6e31['show']({'controller':_0x2bd2d2('0x9ed'),'controllerAs':'vm','templateUrl':_0xc53269,'parent':angular['element'](_0x58bafc['body']),'targetEvent':_0x280436,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x244fbd,'queueCampaigns':_0x2d297a[_0x2bd2d2('0x5d6')]?_0x2d297a[_0x2bd2d2('0x5d6')][_0x2bd2d2('0x6aa')]:[],'crudPermissions':_0x2d297a[_0x2bd2d2('0x1dc1')]}});}function _0x4764cd(_0x2ba451,_0x58435b){const _0x196718=_0x262779;_0x1f6e31['show']({'controller':_0x196718('0xa95'),'controllerAs':'vm','templateUrl':_0x3aa02c,'parent':angular['element'](_0x58bafc[_0x196718('0x1a5')]),'targetEvent':_0x58435b,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x2ba451,'queueCampaigns':_0x2d297a[_0x196718('0x5d6')]?_0x2d297a[_0x196718('0x5d6')][_0x196718('0x6aa')]:[],'crudPermissions':_0x2d297a[_0x196718('0x1dc1')]}});}function _0x47c7db(_0x4af772,_0x1a4a81){const _0x351fd1=_0x262779;_0x1f6e31['show']({'controller':_0x351fd1('0x1449'),'controllerAs':'vm','templateUrl':_0x47ba9c,'parent':angular['element'](_0x58bafc[_0x351fd1('0x1a5')]),'targetEvent':_0x1a4a81,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4af772,'queueCampaigns':_0x2d297a[_0x351fd1('0x5d6')]?_0x2d297a[_0x351fd1('0x5d6')][_0x351fd1('0x6aa')]:[],'crudPermissions':_0x2d297a['crudPermissions']}});}function _0x380b46(_0x28c667,_0x51ac10){const _0x57b6d0=_0x262779;_0x1f6e31[_0x57b6d0('0x1cb7')]({'controller':_0x57b6d0('0x138e'),'controllerAs':'vm','templateUrl':_0x1c65e2,'parent':angular[_0x57b6d0('0xb6d')](_0x58bafc[_0x57b6d0('0x1a5')]),'targetEvent':_0x51ac10,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x28c667,'queueCampaigns':_0x2d297a[_0x57b6d0('0x5d6')]?_0x2d297a[_0x57b6d0('0x5d6')]['rows']:[],'crudPermissions':_0x2d297a[_0x57b6d0('0x1dc1')],'realtime':![]}});}function _0x4d1076(_0x59f0aa,_0x42f84c){const _0x210d6c=_0x262779,_0x4d0380=_0x42f84c['id'];_0x56aed0[_0x210d6c('0x1282')]['removeLists']({'id':_0x59f0aa,'ids':_0x4d0380})[_0x210d6c('0x1964')][_0x210d6c('0x173b')](function(){const _0x258930=_0x210d6c;return _0x56aed0['voiceQueue'][_0x258930('0x5c6')]({'id':_0x59f0aa,'ids':_0x4d0380,'dialCheckDuplicateType':'never'})[_0x258930('0x1964')];})[_0x210d6c('0x173b')](function(){const _0x260466=_0x210d6c;_0x1715b6['success']({'title':_0x260466('0x3f8'),'msg':'List\x20'+_0x42f84c['name']+_0x260466('0x2086')});})['catch'](function(_0x40f815){const _0x1767fb=_0x210d6c;_0x1715b6[_0x1767fb('0x15aa')]({'title':_0x40f815[_0x1767fb('0x276f')]?_0x1767fb('0x137')+_0x40f815['status']+_0x1767fb('0x160c')+_0x40f815[_0x1767fb('0x2696')]:'SYSTEM:queueCampaign.REMOVELIST','msg':_0x40f815[_0x1767fb('0x276f')]?JSON[_0x1767fb('0x100b')](_0x40f815[_0x1767fb('0x1e07')]):_0x40f815[_0x1767fb('0x1b75')]()});});}function _0x43cf68(_0x56059e,_0x76185b){const _0x4fd8f6=_0x262779;_0x56aed0[_0x4fd8f6('0x1282')][_0x4fd8f6('0xe91')]({'id':_0x56059e['id'],'fields':_0x4fd8f6('0xd52'),'nolimit':!![]})[_0x4fd8f6('0x1964')][_0x4fd8f6('0x173b')](function(_0x3f8901){const _0x4dd5d6=_0x4fd8f6;if(_0x3c8d8a()[_0x4dd5d6('0x7d5')](_0x3f8901[_0x4dd5d6('0x6aa')])||_0x3c8d8a()[_0x4dd5d6('0x1a56')](_0x3f8901[_0x4dd5d6('0x6aa')]))_0x1715b6['info']({'title':_0x4dd5d6('0xa60')});else{if(_0x3f8901[_0x4dd5d6('0x6aa')][_0x4dd5d6('0x543')]===0x1){const _0x47b672=_0x1f6e31['confirm']()['title'](_0x4dd5d6('0x1c13')+_0x3f8901[_0x4dd5d6('0x6aa')][0x0][_0x4dd5d6('0x10ad')]+'\x20?')[_0x4dd5d6('0xf8b')](_0x4dd5d6('0x15b9')+_0x3f8901[_0x4dd5d6('0x6aa')][0x0][_0x4dd5d6('0x10ad')]+_0x4dd5d6('0x24be')+_0x4dd5d6('0x20e5'))[_0x4dd5d6('0x217')](_0x4dd5d6('0x1ff3'))[_0x4dd5d6('0x21de')](_0x76185b)['ok']('OK')[_0x4dd5d6('0x1e1f')](_0x4dd5d6('0x468'));_0x1f6e31[_0x4dd5d6('0x1cb7')](_0x47b672)[_0x4dd5d6('0x173b')](function(){const _0x4dfcc9=_0x4dd5d6;_0x4d1076(_0x2d297a[_0x4dfcc9('0x100f')]['id'],_0x3f8901['rows'][0x0]);});}else _0x1f6e31[_0x4dd5d6('0x1cb7')]({'controller':_0x4dd5d6('0xe61'),'controllerAs':'vm','templateUrl':_0x1e0b5b,'parent':angular[_0x4dd5d6('0xb6d')](_0x58bafc[_0x4dd5d6('0x1a5')]),'targetEvent':_0x76185b,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x56059e,'listsCampaign':_0x3f8901?_0x3f8901[_0x4dd5d6('0x6aa')]:[]}});}})[_0x4fd8f6('0x103c')](function(_0x19d1a7){const _0x2c7a88=_0x4fd8f6;_0x1715b6['error']({'title':_0x19d1a7[_0x2c7a88('0x276f')]?_0x2c7a88('0x137')+_0x19d1a7[_0x2c7a88('0x276f')]+'\x20-\x20'+_0x19d1a7['statusText']:_0x2c7a88('0x696'),'msg':_0x19d1a7[_0x2c7a88('0x276f')]?JSON[_0x2c7a88('0x100b')](_0x19d1a7[_0x2c7a88('0x1e07')]):_0x19d1a7[_0x2c7a88('0x1b75')]()});});}function _0x5c2b2f(){const _0x458df2=_0x262779;if(_0x5b2027[_0x458df2('0x1b4e')](_0x458df2('0x79b')))_0x14976a['go'](_0x458df2('0x2f5'),{});else return _0x56aed0['userProfileSection'][_0x458df2('0x1d97')]({'userProfileId':_0x5b2027['getCurrentUser']()[_0x458df2('0x1946')],'sectionId':0x5e6})[_0x458df2('0x1964')]['then'](function(_0x5c3e21){const _0x3fb539=_0x458df2,_0x52de2f=_0x5c3e21&&_0x5c3e21['rows']?_0x5c3e21[_0x3fb539('0x6aa')][0x0]:null;_0x52de2f&&_0x52de2f[_0x3fb539('0x830')]?_0x14976a['go'](_0x3fb539('0x2f5'),{}):_0x1715b6[_0x3fb539('0x2787')]({'title':_0x36707e[_0x3fb539('0x1467')](_0x3fb539('0x4aa')),'msg':_0x36707e[_0x3fb539('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x458df2('0x103c')](function(_0x3c99fc){const _0x7eff97=_0x458df2;_0x1715b6['error']({'title':_0x3c99fc[_0x7eff97('0x276f')]?_0x7eff97('0x137')+_0x3c99fc[_0x7eff97('0x276f')]+_0x7eff97('0x160c')+_0x3c99fc['statusText']:_0x7eff97('0x144d'),'msg':_0x3c99fc[_0x7eff97('0x276f')]?JSON['stringify'](_0x3c99fc[_0x7eff97('0x1e07')]):_0x3c99fc[_0x7eff97('0x1b75')]()});});}function _0x2f3934(){const _0x86dba=_0x262779;_0x14976a['go']('app.motiondialer.queueCampaigns',{},{'reload':_0x86dba('0x78e')});}function _0x56f92d(){const _0x21b8e8=_0x262779;_0x56aed0[_0x21b8e8('0x1282')][_0x21b8e8('0x1842')]({'id':_0x2d297a[_0x21b8e8('0x100f')]['id']},_0x2d297a[_0x21b8e8('0x100f')])[_0x21b8e8('0x1964')]['then'](function(){const _0x134875=_0x21b8e8;_0x1715b6[_0x134875('0xdfe')]({'title':'QueueCampaign\x20updated!','msg':_0x2d297a['queueCampaign'][_0x134875('0x10ad')]?_0x2d297a[_0x134875('0x100f')]['name']+'\x20has\x20been\x20updated!':''});})[_0x21b8e8('0x103c')](function(_0x423c97){const _0x4661c6=_0x21b8e8;_0x1715b6[_0x4661c6('0x15aa')]({'title':_0x423c97['status']?_0x4661c6('0x137')+_0x423c97[_0x4661c6('0x276f')]+_0x4661c6('0x160c')+_0x423c97['statusText']:'SYSTEM:GETvoiceQueue','msg':_0x423c97['data']?JSON[_0x4661c6('0x100b')](_0x423c97[_0x4661c6('0x1e07')]):_0x423c97[_0x4661c6('0x1b75')]()});});}}const _0x5b62aa=_0x23ceac;_0x4264a4[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),'$state',_0x566993('0xd24'),_0x566993('0x1fe5'),'$document','$timeout','$translate',_0x566993('0x5d6'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),'license','setting'];function _0x4264a4(_0x2db5e1,_0x4c50a0,_0xa22450,_0x441175,_0x589218,_0x1fe59d,_0x4b6cb6,_0x4c1d4b,_0x1f82d9,_0x20717b,_0x4410f5,_0x364fd6,_0x3cbe76,_0xf094d9,_0x5a1402,_0x340c45,_0x3acd0c){const _0x46592f=_0x566993,_0xb6b240=this;_0xb6b240[_0x46592f('0x1a29')]=_0x340c45,_0xb6b240[_0x46592f('0x251')]=_0x3acd0c,_0xb6b240[_0x46592f('0x155f')]=_0x5a1402[_0x46592f('0x14d4')](),_0xb6b240[_0x46592f('0x5d6')]=_0x1f82d9||{'count':0x0,'rows':[]},_0xb6b240[_0x46592f('0x257b')]=_0x20717b,_0xb6b240[_0x46592f('0x170e')]=_0x4410f5&&_0x4410f5[_0x46592f('0x1a2f')]==0x1?_0x4410f5['rows'][0x0]:null,_0xb6b240['crudPermissions']=_0x5a1402[_0x46592f('0xde6')](_0xb6b240['userProfileSection']?_0xb6b240[_0x46592f('0x170e')][_0x46592f('0x1dc1')]:null),_0xb6b240[_0x46592f('0xdf9')]='queueCampaigns',_0xb6b240[_0x46592f('0x14d6')]='',_0xb6b240[_0x46592f('0x2303')]=null,_0xb6b240[_0x46592f('0x1269')]=[],_0xb6b240[_0x46592f('0xc49')]={'fields':_0x46592f('0x1c74'),'type':_0x46592f('0xb33'),'sort':_0x46592f('0x1769'),'channel':_0x46592f('0x21a8'),'limit':0xa,'page':0x1},_0xb6b240[_0x46592f('0x1615')]=_0x3c8d8a()[_0x46592f('0x128')]([{'option':_0x46592f('0x1a1a'),'value':_0x46592f('0x1484')},{'option':_0x46592f('0xeb4'),'value':_0x46592f('0x885')},{'option':_0x46592f('0x1409'),'value':'\x27onlyIfOpen\x27'}],function(_0x5da59c){const _0x356f06=_0x46592f;return _0x3c8d8a()[_0x356f06('0x166c')](_0x5da59c[_0x356f06('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240[_0x46592f('0xbd3')]=_0x3c8d8a()[_0x46592f('0x128')]([{'option':'Yes','value':_0x46592f('0x1873')},{'option':'No','value':_0x46592f('0x13d1')}],function(_0x1fd439){const _0x326ddb=_0x46592f;return _0x3c8d8a()['replace'](_0x1fd439[_0x326ddb('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240[_0x46592f('0x1df9')]=_0x3c8d8a()[_0x46592f('0x128')]([{'option':_0x46592f('0x1029'),'value':_0x46592f('0x26ec')},{'option':'No','value':'\x27no\x27'}],function(_0x255933){const _0x6654a0=_0x46592f;return _0x3c8d8a()['replace'](_0x255933[_0x6654a0('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240['arraytimeoutrestart']=_0x3c8d8a()[_0x46592f('0x128')]([{'option':'Yes','value':_0x46592f('0x26ec')},{'option':'No','value':'\x27no\x27'}],function(_0x42b936){const _0x2df220=_0x46592f;return _0x3c8d8a()[_0x2df220('0x166c')](_0x42b936['value'],new RegExp('\x27','g'),'');}),_0xb6b240[_0x46592f('0x15f0')]=_0x3c8d8a()[_0x46592f('0x128')]([{'option':_0x46592f('0x1776'),'value':'\x27\x27'},{'option':_0x46592f('0x1362'),'value':_0x46592f('0x675')},{'option':_0x46592f('0x165'),'value':_0x46592f('0x18d1')},{'option':_0x46592f('0x2aa'),'value':_0x46592f('0x3e4')}],function(_0x1eb66e){const _0x98bf09=_0x46592f;return _0x3c8d8a()[_0x98bf09('0x166c')](_0x1eb66e[_0x98bf09('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240['arraysetinterfacevar']=_0x3c8d8a()[_0x46592f('0x128')]([{'option':_0x46592f('0x1029'),'value':'\x27yes\x27'},{'option':'No','value':_0x46592f('0x13d1')}],function(_0x5280b6){const _0xbb1fdf=_0x46592f;return _0x3c8d8a()['replace'](_0x5280b6[_0xbb1fdf('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240['arraysetqueuevar']=_0x3c8d8a()['keyBy']([{'option':_0x46592f('0x1029'),'value':_0x46592f('0x26ec')},{'option':'No','value':_0x46592f('0x13d1')}],function(_0x57ce47){const _0xa41134=_0x46592f;return _0x3c8d8a()[_0xa41134('0x166c')](_0x57ce47[_0xa41134('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240[_0x46592f('0x121e')]=_0x3c8d8a()[_0x46592f('0x128')]([{'option':_0x46592f('0x1029'),'value':_0x46592f('0x26ec')},{'option':'No','value':_0x46592f('0x13d1')}],function(_0x20f6d8){return _0x3c8d8a()['replace'](_0x20f6d8['value'],new RegExp('\x27','g'),'');}),_0xb6b240[_0x46592f('0x1eb2')]=_0x3c8d8a()[_0x46592f('0x128')]([{'option':_0x46592f('0x1b60'),'value':'\x27DESC\x27'},{'option':_0x46592f('0x2085'),'value':'\x27ASC\x27'}],function(_0x123395){const _0x14aad9=_0x46592f;return _0x3c8d8a()[_0x14aad9('0x166c')](_0x123395['value'],new RegExp('\x27','g'),'');}),_0xb6b240[_0x46592f('0xc53')]=_0x3c8d8a()[_0x46592f('0x128')]([{'option':'Progressive','value':_0x46592f('0x113a')},{'option':_0x46592f('0xb70'),'value':_0x46592f('0x15e3')},{'option':_0x46592f('0xa3b'),'value':_0x46592f('0xf7b')},{'option':_0x46592f('0xbfd'),'value':'\x27preview\x27'},{'option':'BookedProgressive','value':_0x46592f('0x1871')}],function(_0x386647){const _0x5b7a48=_0x46592f;return _0x3c8d8a()[_0x5b7a48('0x166c')](_0x386647[_0x5b7a48('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240[_0x46592f('0x7ff')]=_0x3c8d8a()[_0x46592f('0x128')]([{'option':'AgentBusyFactor','value':_0x46592f('0x71f')},{'option':_0x46592f('0x1100'),'value':'\x27dropRate\x27'}],function(_0x3e7e6a){const _0x12fb5d=_0x46592f;return _0x3c8d8a()[_0x12fb5d('0x166c')](_0x3e7e6a[_0x12fb5d('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240['arraystrategy']=_0x3c8d8a()['keyBy']([{'option':'Round\x20Robin\x20Memory','value':_0x46592f('0x1b87')},{'option':_0x46592f('0x1076'),'value':_0x46592f('0xf7'),'ngIf':'vm.queueCampaign.dialMethod\x20===\x20\x27booked\x27'},{'option':_0x46592f('0x486'),'value':_0x46592f('0x465'),'ngIf':_0x46592f('0x1e')},{'option':_0x46592f('0x1868'),'value':_0x46592f('0x23f4'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'},{'option':_0x46592f('0xcf'),'value':'\x27random\x27','ngIf':_0x46592f('0x1e')},{'option':_0x46592f('0x425'),'value':_0x46592f('0x19c9'),'ngIf':_0x46592f('0x1e')},{'option':'Weight\x20Random','value':_0x46592f('0x7b9'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'}],function(_0x18b137){const _0x3d102c=_0x46592f;return _0x3c8d8a()[_0x3d102c('0x166c')](_0x18b137[_0x3d102c('0xa7b')],new RegExp('\x27','g'),'');}),_0xb6b240[_0x46592f('0x222e')]=_0x369c12,_0xb6b240['clonedialog']=_0x113030,_0xb6b240[_0x46592f('0xc51')]=_0x381bdf,_0xb6b240['blacklistadddialog']=_0x406cd6,_0xb6b240['teamadddialog']=_0x12977b,_0xb6b240[_0x46592f('0x2118')]=_0xd2718c,_0xb6b240[_0x46592f('0x1a20')]=_0x41929a,_0xb6b240[_0x46592f('0x1c9c')]=_0x387f67,_0xb6b240[_0x46592f('0xdfe')]=_0x5035e0,_0xb6b240['getQueueCampaigns']=_0x24cc34,_0xb6b240[_0x46592f('0x2466')]=_0x58bf2c,_0xb6b240[_0x46592f('0x2068')]=_0x55db37,_0xb6b240['exportSelectedQueueCampaigns']=_0x48600d,_0xb6b240[_0x46592f('0xe2e')]=_0x4e509a,_0xb6b240[_0x46592f('0x1c6d')]=_0x129e6d,_0xb6b240['selectAllQueueCampaigns']=_0x4baa69,_0x5a1402[_0x46592f('0x1b4e')]('admin')?_0x364fd6[_0x46592f('0x15b7')][_0x46592f('0x1d97')]({'fields':_0x46592f('0xd52'),'sort':_0x46592f('0x10ad')})[_0x46592f('0x1964')][_0x46592f('0x173b')](function(_0x4ce3f3){const _0x55c48b=_0x46592f;_0xb6b240['trunks']=_0x4ce3f3[_0x55c48b('0x6aa')]||[];})[_0x46592f('0x103c')](function(_0x422015){const _0x502e4d=_0x46592f;_0xf094d9['error']({'title':_0x422015['status']?_0x502e4d('0x137')+_0x422015[_0x502e4d('0x276f')]+_0x502e4d('0x160c')+_0x422015[_0x502e4d('0x2696')]:_0x502e4d('0xbd8'),'msg':_0x422015[_0x502e4d('0x1e07')]?JSON[_0x502e4d('0x100b')](_0x422015[_0x502e4d('0x1e07')]):_0x422015[_0x502e4d('0x1b75')]()});}):_0x364fd6[_0x46592f('0x15b7')][_0x46592f('0x1d97')]({'fields':_0x46592f('0xd52'),'sort':_0x46592f('0x10ad')})['$promise']['then'](function(_0x1b5cb7){const _0x5a64b9=_0x46592f;_0xb6b240[_0x5a64b9('0x673')]=_0x1b5cb7[_0x5a64b9('0x6aa')]||[];})['then'](function(){const _0x1c19fb=_0x46592f;return _0x364fd6['userProfileSection']['get']({'userProfileId':_0xb6b240[_0x1c19fb('0x155f')]['userProfileId'],'sectionId':0x3f3})[_0x1c19fb('0x1964')];})[_0x46592f('0x173b')](function(_0x2edc79){const _0x1b47bd=_0x46592f,_0x5d1400=_0x2edc79&&_0x2edc79[_0x1b47bd('0x6aa')]?_0x2edc79[_0x1b47bd('0x6aa')][0x0]:null;if(!_0x5d1400){const _0x3cf1ac=[],_0x234f6a=[];_0xb6b240[_0x1b47bd('0x5d6')][_0x1b47bd('0x6aa')][_0x1b47bd('0xa6a')](function(_0x231cd8){const _0x12b012=_0x1b47bd,_0x86f008=_0x3c8d8a()['find'](_0xb6b240['trunks'],{'id':Number(_0x231cd8[_0x12b012('0xdad')])});_0x234f6a[_0x12b012('0x18bb')](_0x86f008);});for(let _0x5afd15=0x0;_0x5afd15<_0xb6b240['trunks'][_0x1b47bd('0x543')];_0x5afd15++){const _0x3ede0e=_0x3c8d8a()[_0x1b47bd('0x1ec')](_0x234f6a,{'id':_0xb6b240[_0x1b47bd('0x673')][_0x5afd15]['id']});_0x3ede0e&&(_0xb6b240[_0x1b47bd('0x673')][_0x5afd15][_0x1b47bd('0x268e')]=![],_0x3cf1ac[_0x1b47bd('0x18bb')](_0xb6b240['trunks'][_0x5afd15]));}_0xb6b240[_0x1b47bd('0x673')]=_0x3cf1ac;}else{if(!_0x5d1400[_0x1b47bd('0x273e')])return _0x364fd6[_0x1b47bd('0xda9')]['get']({'sectionId':_0x5d1400['id']})[_0x1b47bd('0x1964')][_0x1b47bd('0x173b')](function(_0x2ec466){const _0x5ab6db=_0x1b47bd,_0x3146b8=_0x3c8d8a()[_0x5ab6db('0x8a2')](_0x2ec466[_0x5ab6db('0x6aa')],function(_0x35ee0a){const _0x45bce4=_0x5ab6db;return _0x3c8d8a()[_0x45bce4('0x18ab')](_0xb6b240[_0x45bce4('0x673')],{'id':_0x35ee0a[_0x45bce4('0x1ce0')]});});let _0x32cf06=null;_0x32cf06=[],_0xb6b240['queueCampaigns']['rows'][_0x5ab6db('0xa6a')](function(_0x210de5){const _0x4a389a=_0x5ab6db,_0x576bcd=_0x3c8d8a()[_0x4a389a('0x18ab')](_0xb6b240[_0x4a389a('0x673')],{'id':Number(_0x210de5['TrunkId'])});_0x32cf06[_0x4a389a('0x18bb')](_0x576bcd);}),!_0x3c8d8a()[_0x5ab6db('0x1a56')](_0x32cf06)&&_0x32cf06[_0x5ab6db('0xa6a')](function(_0x19fea1){const _0x128798=_0x5ab6db;if(!_0x3c8d8a()[_0x128798('0x1ec')](_0x3146b8,['id',_0x19fea1['id']])){const _0x11407d=_0x3c8d8a()[_0x128798('0x18ab')](_0xb6b240['trunks'],{'id':_0x19fea1['id']});_0x11407d[_0x128798('0x268e')]=![],_0x3146b8[_0x128798('0x18bb')](_0x11407d);}}),_0xb6b240[_0x5ab6db('0x673')]=_0x3146b8;});}})['catch'](function(_0x5ba2ae){const _0x122287=_0x46592f;_0xf094d9[_0x122287('0x15aa')]({'title':_0x5ba2ae[_0x122287('0x276f')]?'API:'+_0x5ba2ae[_0x122287('0x276f')]+'\x20-\x20'+_0x5ba2ae[_0x122287('0x2696')]:'SYSTEM:GETtrunks','msg':_0x5ba2ae['data']?JSON[_0x122287('0x100b')](_0x5ba2ae[_0x122287('0x1e07')]):_0x5ba2ae[_0x122287('0x1b75')]()});}),_0x5a1402[_0x46592f('0x1b4e')]('admin')?_0x364fd6['interval'][_0x46592f('0x1d97')]({'fields':_0x46592f('0xd52'),'sort':_0x46592f('0x10ad'),'IntervalId':'null'})['$promise'][_0x46592f('0x173b')](function(_0x9081f4){const _0x3fb7d3=_0x46592f;_0xb6b240[_0x3fb7d3('0x55a')]=_0x9081f4[_0x3fb7d3('0x6aa')]||[];})[_0x46592f('0x103c')](function(_0x2fcf2c){const _0xb9b6a2=_0x46592f;_0xf094d9[_0xb9b6a2('0x15aa')]({'title':_0x2fcf2c[_0xb9b6a2('0x276f')]?_0xb9b6a2('0x137')+_0x2fcf2c[_0xb9b6a2('0x276f')]+_0xb9b6a2('0x160c')+_0x2fcf2c['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x2fcf2c[_0xb9b6a2('0x1e07')]?JSON[_0xb9b6a2('0x100b')](_0x2fcf2c[_0xb9b6a2('0x1e07')]):_0x2fcf2c['toString']()});}):_0x364fd6['interval']['get']({'fields':_0x46592f('0xd52'),'sort':_0x46592f('0x10ad'),'IntervalId':_0x46592f('0x877')})['$promise'][_0x46592f('0x173b')](function(_0x17249f){const _0x3d8716=_0x46592f;_0xb6b240[_0x3d8716('0x55a')]=_0x17249f[_0x3d8716('0x6aa')]||[];})[_0x46592f('0x173b')](function(){const _0x5a1bb5=_0x46592f;return _0x364fd6[_0x5a1bb5('0x170e')][_0x5a1bb5('0x1d97')]({'userProfileId':_0xb6b240[_0x5a1bb5('0x155f')][_0x5a1bb5('0x1946')],'sectionId':0x3ec})[_0x5a1bb5('0x1964')];})['then'](function(_0x119ddb){const _0x267b39=_0x46592f,_0x46c574=_0x119ddb&&_0x119ddb['rows']?_0x119ddb[_0x267b39('0x6aa')][0x0]:null;if(!_0x46c574){const _0x58968a=[];let _0x58de0d=null;_0xb6b240[_0x267b39('0x100f')]&&(_0x58de0d=_0x3c8d8a()[_0x267b39('0x18ab')](_0xb6b240['interval'],{'id':Number(_0xb6b240[_0x267b39('0x100f')]['IntervalId'])}));for(let _0x234ea8=0x0;_0x234ea8<_0xb6b240[_0x267b39('0x55a')][_0x267b39('0x543')];_0x234ea8++){_0x58de0d&&_0xb6b240[_0x267b39('0x55a')][_0x234ea8]['id']===_0x58de0d['id']&&(_0xb6b240[_0x267b39('0x55a')][_0x234ea8][_0x267b39('0x268e')]=![],_0x58968a[_0x267b39('0x18bb')](_0xb6b240[_0x267b39('0x55a')][_0x234ea8]));}_0xb6b240[_0x267b39('0x55a')]=_0x58968a;}else{if(!_0x46c574['autoAssociation'])return _0x364fd6[_0x267b39('0xda9')][_0x267b39('0x1d97')]({'sectionId':_0x46c574['id']})[_0x267b39('0x1964')][_0x267b39('0x173b')](function(_0x4de3e0){const _0x561452=_0x267b39,_0x5dc020=_0x3c8d8a()[_0x561452('0x8a2')](_0x4de3e0[_0x561452('0x6aa')],function(_0x145b7f){const _0x195935=_0x561452;return _0x3c8d8a()[_0x195935('0x18ab')](_0xb6b240[_0x195935('0x55a')],{'id':_0x145b7f[_0x195935('0x1ce0')]});});let _0x384287=null;_0xb6b240[_0x561452('0x100f')]&&(_0x384287=_0x3c8d8a()['find'](_0xb6b240[_0x561452('0x55a')],{'id':Number(_0xb6b240[_0x561452('0x100f')][_0x561452('0x600')])}));if(_0x384287&&!_0x3c8d8a()[_0x561452('0x1ec')](_0x5dc020,['id',_0x384287['id']])){const _0xc54222=_0x3c8d8a()[_0x561452('0x18ab')](_0xb6b240[_0x561452('0x55a')],{'id':_0x384287['id']});_0xc54222[_0x561452('0x268e')]=![],_0x5dc020['push'](_0xc54222);}_0xb6b240[_0x561452('0x55a')]=_0x5dc020;});}})[_0x46592f('0x103c')](function(_0x344ec8){const _0x280c2f=_0x46592f;_0xf094d9['error']({'title':_0x344ec8[_0x280c2f('0x276f')]?'API:'+_0x344ec8[_0x280c2f('0x276f')]+'\x20-\x20'+_0x344ec8[_0x280c2f('0x2696')]:'SYSTEM:GETinterval','msg':_0x344ec8[_0x280c2f('0x1e07')]?JSON['stringify'](_0x344ec8[_0x280c2f('0x1e07')]):_0x344ec8[_0x280c2f('0x1b75')]()});});function _0x369c12(_0x3e45ae){const _0x4b3d62=_0x46592f;_0xa22450['go'](_0x4b3d62('0xdd0'),{'id':_0x3e45ae['id'],'queueCampaign':_0x3e45ae,'crudPermissions':_0xb6b240[_0x4b3d62('0x1dc1')]});}function _0x113030(_0x105ec4,_0x3454f9){const _0x47d739=_0x46592f;_0x589218['show']({'controller':_0x47d739('0x640'),'controllerAs':'vm','templateUrl':_0xd21fb,'parent':angular[_0x47d739('0xb6d')](_0x1fe59d[_0x47d739('0x1a5')]),'targetEvent':_0x3454f9,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x105ec4,'queueCampaigns':_0xb6b240[_0x47d739('0x5d6')]?_0xb6b240[_0x47d739('0x5d6')][_0x47d739('0x6aa')]:[],'crudPermissions':_0xb6b240[_0x47d739('0x1dc1')]}});}function _0x381bdf(_0x36c1b0,_0xd499bd){const _0x5103b6=_0x46592f;_0x589218[_0x5103b6('0x1cb7')]({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0xc53269,'parent':angular['element'](_0x1fe59d[_0x5103b6('0x1a5')]),'targetEvent':_0xd499bd,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x36c1b0,'queueCampaigns':_0xb6b240['queueCampaigns']?_0xb6b240['queueCampaigns'][_0x5103b6('0x6aa')]:[],'crudPermissions':_0xb6b240[_0x5103b6('0x1dc1')]}});}function _0x406cd6(_0xe423ed,_0x2aa5d1){const _0xbd6c87=_0x46592f;_0x589218['show']({'controller':_0xbd6c87('0xa95'),'controllerAs':'vm','templateUrl':_0x3aa02c,'parent':angular['element'](_0x1fe59d[_0xbd6c87('0x1a5')]),'targetEvent':_0x2aa5d1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xe423ed,'queueCampaigns':_0xb6b240[_0xbd6c87('0x5d6')]?_0xb6b240[_0xbd6c87('0x5d6')][_0xbd6c87('0x6aa')]:[],'crudPermissions':_0xb6b240[_0xbd6c87('0x1dc1')]}});}function _0x12977b(_0x4ee1d6,_0x2018b2){const _0x568614=_0x46592f;_0x589218[_0x568614('0x1cb7')]({'controller':'QueueCampaignteamaddController','controllerAs':'vm','templateUrl':_0x47ba9c,'parent':angular[_0x568614('0xb6d')](_0x1fe59d['body']),'targetEvent':_0x2018b2,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4ee1d6,'queueCampaigns':_0xb6b240[_0x568614('0x5d6')]?_0xb6b240[_0x568614('0x5d6')]['rows']:[],'crudPermissions':_0xb6b240['crudPermissions']}});}function _0xd2718c(_0x5c8130,_0x16320f){const _0x10b926=_0x46592f;_0x589218[_0x10b926('0x1cb7')]({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x1c65e2,'parent':angular[_0x10b926('0xb6d')](_0x1fe59d[_0x10b926('0x1a5')]),'targetEvent':_0x16320f,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x5c8130,'queueCampaigns':_0xb6b240[_0x10b926('0x5d6')]?_0xb6b240['queueCampaigns']['rows']:[],'crudPermissions':_0xb6b240[_0x10b926('0x1dc1')],'realtime':![]}});}function _0x41929a(_0xefa18c,_0x3516cf){const _0x5413a4=_0x46592f,_0x30b946=_0x589218['confirm']()[_0x5413a4('0x20d6')](_0x5413a4('0x5bb')+_0x3c8d8a()[_0x5413a4('0x10e')]('queueCampaign')+'?')['htmlContent'](_0x5413a4('0x15b9')+(_0xefa18c[_0x5413a4('0x10ad')]||_0x5413a4('0x100f'))+''+'\x20will\x20be\x20deleted.')[_0x5413a4('0x217')](_0x5413a4('0x18ed'))['targetEvent'](_0x3516cf)['ok']('OK')[_0x5413a4('0x1e1f')](_0x5413a4('0x468'));_0x589218[_0x5413a4('0x1cb7')](_0x30b946)[_0x5413a4('0x173b')](function(){_0x55db37(_0xefa18c);},function(){const _0x203105=_0x5413a4;console[_0x203105('0xe37')]('CANCEL');});}function _0x387f67(){const _0x5d2966=_0x46592f;if(_0x5a1402[_0x5d2966('0x1b4e')](_0x5d2966('0x79b')))_0xa22450['go'](_0x5d2966('0x2f5'),{});else return _0x364fd6[_0x5d2966('0x170e')][_0x5d2966('0x1d97')]({'userProfileId':_0x5a1402['getCurrentUser']()[_0x5d2966('0x1946')],'sectionId':0x5e6})['$promise'][_0x5d2966('0x173b')](function(_0x5c518f){const _0x9cf28a=_0x5d2966,_0x2751b1=_0x5c518f&&_0x5c518f['rows']?_0x5c518f['rows'][0x0]:null;_0x2751b1&&_0x2751b1[_0x9cf28a('0x830')]?_0xa22450['go']('app.motiondialer.realtime.queues',{}):_0xf094d9[_0x9cf28a('0x2787')]({'title':_0x4c1d4b['instant'](_0x9cf28a('0x4aa')),'msg':_0x4c1d4b[_0x9cf28a('0x1467')](_0x9cf28a('0x7d4'))});})[_0x5d2966('0x103c')](function(_0x5a13a0){const _0x3545f4=_0x5d2966;_0xf094d9[_0x3545f4('0x15aa')]({'title':_0x5a13a0[_0x3545f4('0x276f')]?_0x3545f4('0x137')+_0x5a13a0[_0x3545f4('0x276f')]+_0x3545f4('0x160c')+_0x5a13a0[_0x3545f4('0x2696')]:_0x3545f4('0x144d'),'msg':_0x5a13a0['status']?JSON['stringify'](_0x5a13a0[_0x3545f4('0x1e07')]):_0x5a13a0[_0x3545f4('0x1b75')]()});});}let _0x1e585a=!![],_0x5ba62e=0x1;_0x2db5e1[_0x46592f('0x1bdb')](_0x46592f('0x157b'),function(_0xa311c8,_0x512568){const _0x2d206c=_0x46592f;_0x1e585a?_0x4b6cb6(function(){_0x1e585a=![];}):(!_0x512568&&(_0x5ba62e=_0xb6b240[_0x2d206c('0xc49')][_0x2d206c('0x182e')]),_0xa311c8!==_0x512568&&(_0xb6b240[_0x2d206c('0xc49')][_0x2d206c('0x182e')]=0x1),!_0xa311c8&&(_0xb6b240[_0x2d206c('0xc49')][_0x2d206c('0x182e')]=_0x5ba62e),_0xb6b240[_0x2d206c('0x56d')]());});function _0x5035e0(_0x21aa70){_0xb6b240['queueCampaigns']=_0x21aa70||{'count':0x0,'rows':[]};}function _0x24cc34(){const _0x7dab9f=_0x46592f;_0xb6b240[_0x7dab9f('0xc49')][_0x7dab9f('0x17f0')]=(_0xb6b240[_0x7dab9f('0xc49')]['page']-0x1)*_0xb6b240[_0x7dab9f('0xc49')][_0x7dab9f('0x3e')],_0x5a1402['hasRole'](_0x7dab9f('0x79b'))?_0xb6b240[_0x7dab9f('0x2219')]=_0x364fd6['voiceQueue'][_0x7dab9f('0x1d97')](_0xb6b240[_0x7dab9f('0xc49')],_0x5035e0)['$promise']:(_0xb6b240[_0x7dab9f('0xc49')]['id']=_0xb6b240[_0x7dab9f('0x257b')]['id'],_0xb6b240[_0x7dab9f('0xc49')][_0x7dab9f('0x17c9')]=_0x7dab9f('0x16ad'),_0xb6b240['promise']=_0x364fd6[_0x7dab9f('0x257b')][_0x7dab9f('0x135b')](_0xb6b240[_0x7dab9f('0xc49')],_0x5035e0)[_0x7dab9f('0x1964')]);}function _0x58bf2c(_0x407766,_0x52a68d){const _0x281650=_0x46592f;_0x589218['show']({'controller':'CreateOrEditQueueCampaignDialogController','controllerAs':'vm','templateUrl':_0xb6f812,'parent':angular[_0x281650('0xb6d')](_0x1fe59d[_0x281650('0x1a5')]),'targetEvent':_0x407766,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x52a68d,'queueCampaigns':_0xb6b240[_0x281650('0x5d6')]['rows'],'license':_0xb6b240[_0x281650('0x1a29')],'setting':_0xb6b240[_0x281650('0x251')],'crudPermissions':_0xb6b240[_0x281650('0x1dc1')]}});}function _0x55db37(_0x260e43){const _0x514fde=_0x46592f;_0x364fd6[_0x514fde('0x1282')]['delete']({'id':_0x260e43['id']})[_0x514fde('0x1964')]['then'](function(){const _0x298adb=_0x514fde;_0x3c8d8a()[_0x298adb('0x1a8b')](_0xb6b240[_0x298adb('0x5d6')]['rows'],{'id':_0x260e43['id']}),_0xb6b240[_0x298adb('0x5d6')][_0x298adb('0x1a2f')]-=0x1,!_0xb6b240[_0x298adb('0x5d6')]['rows'][_0x298adb('0x543')]&&_0xb6b240['getQueueCampaigns'](),_0xf094d9[_0x298adb('0xdfe')]({'title':_0x3c8d8a()[_0x298adb('0x10e')](_0x298adb('0x16e0'))+'\x20deleted!','msg':_0x260e43['name']?_0x260e43[_0x298adb('0x10ad')]+_0x298adb('0x25d2'):''});})['catch'](function(_0x5ab20f){const _0x400bcf=_0x514fde;if(_0x5ab20f[_0x400bcf('0x1e07')]&&_0x5ab20f[_0x400bcf('0x1e07')][_0x400bcf('0x1d4a')]&&_0x5ab20f[_0x400bcf('0x1e07')][_0x400bcf('0x1d4a')]['length']){_0xb6b240[_0x400bcf('0x1d4a')]=_0x5ab20f[_0x400bcf('0x1e07')]['errors']||[{'message':_0x5ab20f[_0x400bcf('0x1b75')](),'type':_0x400bcf('0x17c1')}];for(let _0x2c1ae8=0x0;_0x2c1ae8<_0x5ab20f[_0x400bcf('0x1e07')][_0x400bcf('0x1d4a')]['length'];_0x2c1ae8++){_0xf094d9[_0x400bcf('0x15aa')]({'title':_0x5ab20f[_0x400bcf('0x1e07')]['errors'][_0x2c1ae8]['type'],'msg':_0x5ab20f['data'][_0x400bcf('0x1d4a')][_0x2c1ae8][_0x400bcf('0x67f')]});}}else _0xf094d9[_0x400bcf('0x15aa')]({'title':_0x5ab20f[_0x400bcf('0x276f')]?_0x400bcf('0x137')+_0x5ab20f[_0x400bcf('0x276f')]+_0x400bcf('0x160c')+_0x5ab20f[_0x400bcf('0x2696')]:_0x400bcf('0x17c1'),'msg':_0x5ab20f[_0x400bcf('0x1e07')]?JSON[_0x400bcf('0x100b')](_0x5ab20f[_0x400bcf('0x1e07')][_0x400bcf('0x67f')]):_0x5ab20f[_0x400bcf('0x67f')]||_0x5ab20f[_0x400bcf('0x1b75')]()});});}function _0x48600d(){const _0x2936e4=_0x46592f,_0x341dd8=angular[_0x2936e4('0x2e3')](_0xb6b240[_0x2936e4('0x1269')]);return _0xb6b240[_0x2936e4('0x1269')]=[],_0x341dd8;}function _0x4e509a(_0x43174a){const _0x1aaf57=_0x46592f,_0x5516d5=_0x589218[_0x1aaf57('0x1d02')]()[_0x1aaf57('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20queueCampaigns?')[_0x1aaf57('0xf8b')](_0x1aaf57('0x15b9')+_0xb6b240[_0x1aaf57('0x1269')][_0x1aaf57('0x543')]+'\x20selected'+_0x1aaf57('0xd23'))[_0x1aaf57('0x217')](_0x1aaf57('0x9ee'))[_0x1aaf57('0x21de')](_0x43174a)['ok']('OK')[_0x1aaf57('0x1e1f')](_0x1aaf57('0x468'));_0x589218[_0x1aaf57('0x1cb7')](_0x5516d5)[_0x1aaf57('0x173b')](function(){const _0x20a3d5=_0x1aaf57;_0xb6b240[_0x20a3d5('0x1269')][_0x20a3d5('0xa6a')](function(_0x12cf69){_0x55db37(_0x12cf69);}),_0xb6b240[_0x20a3d5('0x1269')]=[];});}function _0x129e6d(){_0xb6b240['selectedQueueCampaigns']=[];}function _0x4baa69(){const _0x1f0d44=_0x46592f;_0xb6b240['selectedQueueCampaigns']=_0xb6b240['queueCampaigns'][_0x1f0d44('0x6aa')];}}const _0x5eb779=_0x4264a4;_0x8dbaf8[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x8dbaf8(_0x53b8b2,_0x3e98c6){const _0x313b79=_0x566993;_0x53b8b2[_0x313b79('0x1a49')]('app.motiondialer',{'abstract':!![],'url':'/motiondialer'})[_0x313b79('0x1a49')]('app.motiondialer.queueCampaigns',{'url':_0x313b79('0x263e'),'views':{'content@app':{'templateUrl':_0x3d3fe1,'controller':_0x313b79('0x11bb')}},'resolve':{'queueCampaigns':[_0x313b79('0x2401'),_0x313b79('0x1600'),function(_0x4264bd,_0x24377e){const _0x1030ff=_0x313b79;return _0x24377e[_0x1030ff('0x1b4e')](_0x1030ff('0x79b'))?_0x4264bd['resolve']('voiceQueue@get',{'fields':_0x1030ff('0x1c74'),'type':'outbound','sort':_0x1030ff('0x1769'),'channel':_0x1030ff('0x21a8'),'limit':0xa,'offset':0x0}):_0x4264bd['resolve'](_0x1030ff('0x14b3'),{'id':_0x24377e[_0x1030ff('0x14d4')]()[_0x1030ff('0x1946')],'section':_0x1030ff('0x16ad'),'fields':_0x1030ff('0x1c74'),'type':_0x1030ff('0xb33'),'sort':_0x1030ff('0x1769'),'channel':_0x1030ff('0x21a8'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x313b79('0x2401'),_0x313b79('0x1600'),function(_0x4111fd,_0x4eeea2){const _0x3a740f=_0x313b79;return _0x4eeea2[_0x3a740f('0x1b4e')](_0x3a740f('0x79b'))?null:_0x4111fd[_0x3a740f('0x155b')](_0x3a740f('0x1f20'),{'fields':_0x3a740f('0x19dd'),'id':_0x4eeea2[_0x3a740f('0x14d4')]()[_0x3a740f('0x1946')]});}],'userProfileSection':[_0x313b79('0x2401'),_0x313b79('0x1600'),function(_0x3534f1,_0x28000d){const _0x3d6b02=_0x313b79;return _0x28000d[_0x3d6b02('0x1b4e')](_0x3d6b02('0x79b'))?null:_0x3534f1[_0x3d6b02('0x155b')](_0x3d6b02('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x28000d[_0x3d6b02('0x14d4')]()[_0x3d6b02('0x1946')],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x313b79('0xc4b')})[_0x313b79('0x1a49')](_0x313b79('0xdd0'),{'url':_0x313b79('0xb4c'),'params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3f2c14,'controller':_0x313b79('0x1785')}},'resolve':{'queueCampaign':[_0x313b79('0x2401'),_0x313b79('0x1caf'),function(_0x2eaa52,_0x5b03da){const _0x2b45b0=_0x313b79;return _0x2eaa52[_0x2b45b0('0x155b')]('voiceQueue@get',{'fields':_0x2b45b0('0x1c74'),'id':_0x5b03da['id']});}],'userProfileSection':[_0x313b79('0x2401'),_0x313b79('0x1600'),function(_0x5090c0,_0x5d86b6){const _0x42f6fb=_0x313b79;return _0x5090c0['resolve'](_0x42f6fb('0x40'),{'fields':_0x42f6fb('0x1348'),'userProfileId':_0x5d86b6['getCurrentUser']()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x313b79('0xc4b')})['state'](_0x313b79('0x236b'),{'url':_0x313b79('0xcf2'),'views':{'content@app':{'templateUrl':_0x5c8758,'controller':_0x313b79('0x206a')}},'resolve':{'ivrCampaigns':[_0x313b79('0x2401'),'Auth',function(_0x3707a4,_0x29b6ee){const _0x18c241=_0x313b79;return _0x29b6ee[_0x18c241('0x1b4e')]('admin')?_0x3707a4[_0x18c241('0x155b')]('campaign@get',{'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':_0x18c241('0x334'),'sort':_0x18c241('0x1769'),'limit':0xa,'offset':0x0}):_0x3707a4['resolve'](_0x18c241('0x14b3'),{'id':_0x29b6ee[_0x18c241('0x14d4')]()[_0x18c241('0x1946')],'section':'IvrCampaigns','fields':_0x18c241('0xbbc'),'type':_0x18c241('0x334'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x313b79('0x2401'),_0x313b79('0x1600'),function(_0x188aa9,_0xc5abf7){const _0x41899b=_0x313b79;return _0xc5abf7[_0x41899b('0x1b4e')]('admin')?null:_0x188aa9[_0x41899b('0x155b')](_0x41899b('0x1f20'),{'fields':'id,name,crudPermissions','id':_0xc5abf7['getCurrentUser']()[_0x41899b('0x1946')]});}],'userProfileSection':[_0x313b79('0x2401'),_0x313b79('0x1600'),function(_0x538aa1,_0x283137){const _0x492e12=_0x313b79;return _0x283137['hasRole'](_0x492e12('0x79b'))?null:_0x538aa1['resolve'](_0x492e12('0x40'),{'fields':_0x492e12('0x1348'),'userProfileId':_0x283137['getCurrentUser']()[_0x492e12('0x1946')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x313b79('0xc4b')})[_0x313b79('0x1a49')](_0x313b79('0x23b2'),{'url':'/:id?tab','params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x543662,'controller':_0x313b79('0x1f2')}},'resolve':{'ivrCampaign':[_0x313b79('0x2401'),_0x313b79('0x1caf'),function(_0x5602ef,_0x22e0ae){const _0x7936a7=_0x313b79;return _0x5602ef['resolve']('campaign@get',{'fields':_0x7936a7('0xbbc'),'id':_0x22e0ae['id']});}],'userProfileSection':[_0x313b79('0x2401'),'Auth',function(_0x2d6e99,_0x140e17){const _0x18326f=_0x313b79;return _0x2d6e99[_0x18326f('0x155b')](_0x18326f('0x40'),{'fields':_0x18326f('0x1348'),'userProfileId':_0x140e17[_0x18326f('0x14d4')]()[_0x18326f('0x1946')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':_0x313b79('0xc4b')}),_0x3e98c6[_0x313b79('0x1b1a')](_0x313b79('0x416'));}angular[_0x566993('0x22c4')](_0x566993('0x1851'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),'md.data.table',_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),_0x566993('0x8a3'),_0x566993('0x1146'),'mwFormBuilder','mwFormViewer',_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392'),_0x566993('0x989')])[_0x566993('0xea9')](_0x8dbaf8)['controller'](_0x566993('0x1eaf'),_0x727fea)[_0x566993('0x1e65')](_0x566993('0x1e81'),_0x5501da)[_0x566993('0x1e65')](_0x566993('0x25e7'),_0x4db396)['controller'](_0x566993('0x361'),_0x38fa66)['controller'](_0x566993('0x24ff'),_0x14a0fa)['controller'](_0x566993('0x2053'),_0x5807b8)[_0x566993('0x1e65')](_0x566993('0x2709'),_0x1a9106)[_0x566993('0x1e65')](_0x566993('0x686'),_0x5b5960)[_0x566993('0x1e65')](_0x566993('0x240'),_0x3cd498)['controller']('IvrCampaignlistaddController',_0x20ba19)[_0x566993('0x1e65')](_0x566993('0x2246'),_0x5154d9)[_0x566993('0x1e65')](_0x566993('0x67'),_0x469059)['controller'](_0x566993('0x899'),_0x2a8f3f)[_0x566993('0x1e65')](_0x566993('0x163'),_0x4be4bd)[_0x566993('0x1e65')]('QueueCampaignagentaddController',_0x327697)[_0x566993('0x1e65')](_0x566993('0xa95'),_0x1d2b62)[_0x566993('0x1e65')](_0x566993('0x640'),_0x28474d)[_0x566993('0x1e65')](_0x566993('0x76d'),_0x3cf5ac)[_0x566993('0x1e65')](_0x566993('0xc33'),_0x2c25da)[_0x566993('0x1e65')](_0x566993('0x1f09'),_0x3f569f)[_0x566993('0x1e65')](_0x566993('0x198c'),_0x393321)[_0x566993('0x1e65')](_0x566993('0x1b9c'),_0xabf148)[_0x566993('0x1e65')](_0x566993('0x2e'),_0x5529a4)[_0x566993('0x1e65')]('QueueCampaignlistaddController',_0x505ca7)[_0x566993('0x1e65')]('QueueCampaignresetlistController',_0x537fdf)[_0x566993('0x1e65')]('QueueCampaignteamaddController',_0xcab25e)[_0x566993('0x1e65')]('QueueCampaignController',_0x5b62aa)[_0x566993('0x1e65')]('QueueCampaignsController',_0x5eb779);const _0x3591b4=_0x21a6a1['p']+_0x566993('0x119c');_0x3e497a['$inject']=[_0x566993('0x2787'),_0x566993('0x1a29'),_0x566993('0xbd4')];function _0x254cf9(_0x54f598){const _0xd6fb37=_0x566993,_0x163853=_0x156524()(_0x54f598);return _0x163853[_0xd6fb37('0xf02')]()?_0x163853[_0xd6fb37('0xddc')]('lll\x20Z'):'';}function _0x3e497a(_0x417b8f,_0x1c91e6,_0x439380){const _0x62510a=_0x566993,_0x4d11e0=this;_0x4d11e0[_0x62510a('0x19d8')]=_0x439380[_0x62510a('0x19d8')],_0x4d11e0['info']={..._0x417b8f,'buildDate':_0x254cf9(_0x417b8f[_0x62510a('0x1bf2')]),'commitDate':_0x254cf9(_0x417b8f[_0x62510a('0x1500')]),'client':{'name':'motion-client','version':_0x62510a('0xbc6'),'shortHash':'fe8994f','branch':_0x62510a('0xa2d'),'tag':'','committedOn':_0x62510a('0x697'),'buildDate':_0x62510a('0x233c')}},_0x4d11e0[_0x62510a('0x1a29')]=_0x1c91e6;}const _0x5e9434=_0x3e497a;_0x504432['$inject']=[_0x566993('0xccc')];function _0x504432(_0x4d9876){const _0x4bb9c0=_0x566993;_0x4d9876[_0x4bb9c0('0x1a49')](_0x4bb9c0('0x14ee'),{'url':_0x4bb9c0('0x1a5c'),'views':{'content@app':{'templateUrl':_0x3591b4,'controller':_0x4bb9c0('0x25fc')}},'resolve':{'info':[_0x4bb9c0('0x2401'),function(_0x408b76){const _0x434d31=_0x4bb9c0;return _0x408b76[_0x434d31('0x155b')](_0x434d31('0x1a7d'));}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0x4bb9c0('0x942')});}angular['module'](_0x566993('0x14ee'),[])[_0x566993('0xea9')](_0x504432)[_0x566993('0x1e65')]('AboutController',_0x5e9434),_0xafc9d2[_0x566993('0x17bb')]=['$stateProvider',_0x566993('0x8ca')];function _0xafc9d2(_0x202b85,_0xafdb6){const _0xbc3b2a=_0x566993;_0x202b85[_0xbc3b2a('0x1a49')](_0xbc3b2a('0x137b'),{'abstract':!![],'url':_0xbc3b2a('0x101a')}),_0xafdb6[_0xbc3b2a('0x1b1a')](_0xbc3b2a('0x279c'));}angular['module'](_0x566993('0x137b'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),'md.data.table',_0x566993('0x1789'),'mdColorPicker',_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),'ngAnimate','mdPickers',_0x566993('0x1698'),_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),'ngEmbed','angularMaterialFormBuilder',_0x566993('0xcfd'),_0x566993('0x1eab'),'angular.filter',_0x566993('0x14ee')])[_0x566993('0xea9')](_0xafc9d2);const _0x1c66b9=_0x21a6a1['p']+_0x566993('0xf34'),_0x17b48c=_0x21a6a1['p']+_0x566993('0x10e6');_0x2f1396[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x23a1'),'project','api','Auth',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x2f1396(_0x7fae8c,_0x300fd8,_0x4722d9,_0x24a057,_0x5f1d8b,_0x1328ca,_0x4f3a92,_0x3d6f82,_0x41d620,_0x5bfd0e,_0x33e4d8,_0x72e831,_0x5dfcd9,_0x4b1ee2){const _0x1826c3=_0x566993,_0x448c91=this;_0x448c91['currentUser']=_0x33e4d8['getCurrentUser'](),_0x448c91['errors']=[],_0x448c91[_0x1826c3('0x251')]=_0x5dfcd9,_0x448c91[_0x1826c3('0x1a29')]=_0x72e831,_0x448c91[_0x1826c3('0x1dc1')]=_0x4b1ee2,_0x448c91[_0x1826c3('0xb0')]={},_0x448c91[_0x1826c3('0x644')]=_0x448c91['setting']&&_0x448c91[_0x1826c3('0x251')][_0x1826c3('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x448c91[_0x1826c3('0x20d6')]='JSCRIPTY.EDIT_PROJECT',_0x448c91[_0x1826c3('0x220b')]=angular[_0x1826c3('0x2e3')](_0x41d620),_0x448c91[_0x1826c3('0x23a1')]=_0x3d6f82,_0x448c91['newProject']=![];!_0x448c91[_0x1826c3('0x220b')]&&(_0x448c91['project']={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x448c91[_0x1826c3('0x20d6')]=_0x1826c3('0x1d91'),_0x448c91[_0x1826c3('0x269c')]=!![]);_0x448c91['addNewProject']=_0x2dff19,_0x448c91[_0x1826c3('0x264f')]=_0x1ebbf3,_0x448c91[_0x1826c3('0x9ab')]=_0x1d1eea,_0x448c91[_0x1826c3('0x11ae')]=_0x495044,_0x448c91[_0x1826c3('0x18e2')]=_0x2d7004;function _0x2dff19(){const _0x43ff9f=_0x1826c3;_0x448c91['errors']=[],_0x5bfd0e[_0x43ff9f('0x46f')][_0x43ff9f('0x1195')](_0x448c91['project'])[_0x43ff9f('0x1964')][_0x43ff9f('0x173b')](function(_0x75c5c7){const _0x5ef127=_0x43ff9f;_0x448c91[_0x5ef127('0x23a1')]['unshift'](_0x75c5c7[_0x5ef127('0xf1f')]()),_0x4f3a92[_0x5ef127('0xdfe')]({'title':_0x5ef127('0x1f02'),'msg':_0x448c91['project'][_0x5ef127('0x10ad')]?_0x448c91[_0x5ef127('0x220b')][_0x5ef127('0x10ad')]+_0x5ef127('0x209a'):''}),_0x2d7004(_0x75c5c7);})[_0x43ff9f('0x103c')](function(_0x3f22b4){const _0x36dcd1=_0x43ff9f;if(_0x3f22b4[_0x36dcd1('0x1e07')]&&_0x3f22b4[_0x36dcd1('0x1e07')]['errors']&&_0x3f22b4[_0x36dcd1('0x1e07')][_0x36dcd1('0x1d4a')][_0x36dcd1('0x543')]){_0x448c91[_0x36dcd1('0x1d4a')]=_0x3f22b4['data'][_0x36dcd1('0x1d4a')]||[{'message':_0x3f22b4[_0x36dcd1('0x1b75')](),'type':_0x36dcd1('0x10d7')}];for(let _0x423512=0x0;_0x423512<_0x3f22b4[_0x36dcd1('0x1e07')][_0x36dcd1('0x1d4a')][_0x36dcd1('0x543')];_0x423512+=0x1){_0x4f3a92['error']({'title':_0x3f22b4[_0x36dcd1('0x1e07')][_0x36dcd1('0x1d4a')][_0x423512][_0x36dcd1('0x1810')],'msg':_0x3f22b4['data']['errors'][_0x423512][_0x36dcd1('0x67f')]});}}else _0x4f3a92['error']({'title':_0x3f22b4[_0x36dcd1('0x276f')]?_0x36dcd1('0x137')+_0x3f22b4[_0x36dcd1('0x276f')]+_0x36dcd1('0x160c')+_0x3f22b4['statusText']:'api.jscriptyProject.save','msg':_0x3f22b4[_0x36dcd1('0x1e07')]?JSON[_0x36dcd1('0x100b')](_0x3f22b4['data'][_0x36dcd1('0x67f')]):_0x3f22b4['toString']()});});}function _0x1ebbf3(){const _0x2fbbd5=_0x1826c3;_0x448c91['errors']=[],_0x5bfd0e[_0x2fbbd5('0x46f')][_0x2fbbd5('0x1842')]({'id':_0x448c91[_0x2fbbd5('0x220b')]['id']},_0x448c91['project'])[_0x2fbbd5('0x1964')][_0x2fbbd5('0x173b')](function(_0x45beaa){const _0x358b40=_0x2fbbd5,_0x4bdbbd=_0x3c8d8a()[_0x358b40('0x18ab')](_0x448c91[_0x358b40('0x23a1')],{'id':_0x45beaa['id']});_0x4bdbbd&&_0x3c8d8a()[_0x358b40('0x9ef')](_0x4bdbbd,_0x3c8d8a()['pick'](_0x45beaa['toJSON'](),_0x3c8d8a()[_0x358b40('0x1d3e')](_0x4bdbbd))),_0x4f3a92[_0x358b40('0xdfe')]({'title':_0x358b40('0x13e5'),'msg':_0x448c91[_0x358b40('0x220b')]['name']?_0x448c91[_0x358b40('0x220b')][_0x358b40('0x10ad')]+_0x358b40('0x2788'):''}),_0x2d7004(_0x45beaa);})[_0x2fbbd5('0x103c')](function(_0x40a8cb){const _0x3aa1a9=_0x2fbbd5;if(_0x40a8cb['data']&&_0x40a8cb[_0x3aa1a9('0x1e07')][_0x3aa1a9('0x1d4a')]&&_0x40a8cb['data']['errors'][_0x3aa1a9('0x543')]){_0x448c91[_0x3aa1a9('0x1d4a')]=_0x40a8cb[_0x3aa1a9('0x1e07')][_0x3aa1a9('0x1d4a')]||[{'message':_0x40a8cb[_0x3aa1a9('0x1b75')](),'type':'api.jscriptyProject.update'}];for(let _0x4a8499=0x0;_0x4a8499<_0x40a8cb[_0x3aa1a9('0x1e07')][_0x3aa1a9('0x1d4a')][_0x3aa1a9('0x543')];_0x4a8499++){_0x4f3a92[_0x3aa1a9('0x15aa')]({'title':_0x40a8cb[_0x3aa1a9('0x1e07')][_0x3aa1a9('0x1d4a')][_0x4a8499]['type'],'msg':_0x40a8cb[_0x3aa1a9('0x1e07')][_0x3aa1a9('0x1d4a')][_0x4a8499]['message']});}}else _0x4f3a92[_0x3aa1a9('0x15aa')]({'title':_0x40a8cb[_0x3aa1a9('0x276f')]?_0x3aa1a9('0x137')+_0x40a8cb[_0x3aa1a9('0x276f')]+_0x3aa1a9('0x160c')+_0x40a8cb[_0x3aa1a9('0x2696')]:_0x3aa1a9('0x133d'),'msg':_0x40a8cb['data']?JSON[_0x3aa1a9('0x100b')](_0x40a8cb[_0x3aa1a9('0x1e07')]['message']):_0x40a8cb[_0x3aa1a9('0x1b75')]()});});}function _0x1d1eea(_0x351207){const _0x4177de=_0x1826c3;_0x448c91[_0x4177de('0x1d4a')]=[];const _0x358c4f=_0x24a057[_0x4177de('0x1d02')]()[_0x4177de('0x20d6')](_0x4177de('0x8ef'))['content'](_0x4177de('0x2847'))[_0x4177de('0x217')](_0x4177de('0x1d1d'))['ok'](_0x4177de('0x2373'))[_0x4177de('0x1e1f')](_0x4177de('0x1d4e'))[_0x4177de('0x21de')](_0x351207);_0x24a057[_0x4177de('0x1cb7')](_0x358c4f)['then'](function(){const _0x1105b2=_0x4177de;_0x5bfd0e[_0x1105b2('0x46f')][_0x1105b2('0x15e8')]({'id':_0x448c91[_0x1105b2('0x220b')]['id']})[_0x1105b2('0x1964')][_0x1105b2('0x173b')](function(){const _0x596182=_0x1105b2;_0x3c8d8a()[_0x596182('0x1a8b')](_0x448c91['projects'],{'id':_0x448c91[_0x596182('0x220b')]['id']}),_0x4f3a92[_0x596182('0xdfe')]({'title':_0x596182('0x1cef'),'msg':(_0x448c91[_0x596182('0x220b')]['name']||'project')+'\x20has\x20been\x20deleted!'}),_0x2d7004(_0x448c91['project']);})[_0x1105b2('0x103c')](function(_0x1d1a5e){const _0x37c7ed=_0x1105b2;if(_0x1d1a5e[_0x37c7ed('0x1e07')]&&_0x1d1a5e['data'][_0x37c7ed('0x1d4a')]&&_0x1d1a5e[_0x37c7ed('0x1e07')]['errors'][_0x37c7ed('0x543')]){_0x448c91[_0x37c7ed('0x1d4a')]=_0x1d1a5e['data']['errors']||[{'message':_0x1d1a5e['toString'](),'type':'api.jscriptyProject.delete'}];for(let _0x1e030c=0x0;_0x1e030c<_0x1d1a5e['data'][_0x37c7ed('0x1d4a')][_0x37c7ed('0x543')];_0x1e030c++){_0x4f3a92[_0x37c7ed('0x15aa')]({'title':_0x1d1a5e[_0x37c7ed('0x1e07')][_0x37c7ed('0x1d4a')][_0x1e030c][_0x37c7ed('0x1810')],'msg':_0x1d1a5e[_0x37c7ed('0x1e07')][_0x37c7ed('0x1d4a')][_0x1e030c][_0x37c7ed('0x67f')]});}}else _0x4f3a92['error']({'title':_0x1d1a5e[_0x37c7ed('0x276f')]?_0x37c7ed('0x137')+_0x1d1a5e[_0x37c7ed('0x276f')]+'\x20-\x20'+_0x1d1a5e[_0x37c7ed('0x2696')]:_0x37c7ed('0x81c'),'msg':_0x1d1a5e[_0x37c7ed('0x1e07')]?JSON['stringify'](_0x1d1a5e['data']['message']):_0x1d1a5e['message']||_0x1d1a5e[_0x37c7ed('0x1b75')]()});});},function(){});}function _0x495044(_0x24fc93){return _0x24fc93===null?undefined:new Date(_0x24fc93);}function _0x2d7004(_0x85fced){_0x24a057['hide'](_0x85fced);}}const _0x4c7cab=_0x2f1396;_0x5c44c0[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1d31'),_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x84a')];function _0x5c44c0(_0x4b2a76,_0x30f1a2,_0x12a1c7,_0x212bc3,_0x3a5764,_0x557f84){const _0x4421e6=_0x566993,_0x2588b8=this;_0x2588b8[_0x4421e6('0x220b')]={},_0x2588b8[_0x4421e6('0xe93')]=_0x557f84;const _0x47d5cd=new Date();_0x47d5cd[_0x4421e6('0xd32')](0x0,0x0,0x0,0x0),_0x2588b8[_0x4421e6('0x92e')]={'dateStart':new Date(_0x47d5cd[_0x4421e6('0x105a')](),_0x47d5cd['getMonth'](),0x1),'dateEnd':new Date(_0x47d5cd[_0x4421e6('0x105a')](),_0x47d5cd['getMonth']()+0x1,0x0),'selectedTemplate':'TM'},_0x2588b8['init']=_0xa28744,_0x2588b8['getSummary']=_0x261b68,_0x2588b8[_0x4421e6('0x57b')]=_0x48fb35;function _0x48fb35(){const _0x59c2bb=_0x4421e6;return _0x2588b8[_0x59c2bb('0x871')]=![],_0x212bc3['jscriptyProject'][_0x59c2bb('0x57b')]({'id':_0x2588b8['project']['id'],'sort':_0x59c2bb('0x1c8b'),'createdAt':{'$gte':_0x156524()(_0x2588b8[_0x59c2bb('0x92e')][_0x59c2bb('0x1168')])[_0x59c2bb('0x623')](0x0,_0x59c2bb('0x26b6'))[_0x59c2bb('0x623')](0x0,_0x59c2bb('0x893'))[_0x59c2bb('0x623')](0x0,'seconds')[_0x59c2bb('0xaf5')](0x0,!![])[_0x59c2bb('0xddc')](),'$lte':_0x156524()(_0x2588b8[_0x59c2bb('0x92e')][_0x59c2bb('0x171b')])['add'](0x17,'hours')['add'](0x3b,'minutes')['add'](0x3b,'seconds')[_0x59c2bb('0xaf5')](0x0,!![])[_0x59c2bb('0xddc')]()},'nolimit':!![]})[_0x59c2bb('0x1964')][_0x59c2bb('0x173b')](function(_0x28c526){const _0x5827a4=_0x59c2bb;if(_0x28c526&&_0x28c526[_0x5827a4('0x6aa')]&&typeof _0x28c526['count']!==_0x5827a4('0x6e5')){_0x2588b8[_0x5827a4('0x1cbb')]={};for(let _0x500789=0x0,_0xbb9b9f=_0x28c526[_0x5827a4('0x1a2f')];_0x500789<_0xbb9b9f;_0x500789++){_0x28c526[_0x5827a4('0x6aa')][_0x500789][_0x5827a4('0x8ec')]&&(_0x2588b8['hasIdAnswers']=!![],typeof _0x2588b8[_0x5827a4('0x1cbb')][_0x28c526[_0x5827a4('0x6aa')][_0x500789]['questionId']]===_0x5827a4('0x6e5')&&(_0x2588b8[_0x5827a4('0x1cbb')][_0x28c526[_0x5827a4('0x6aa')][_0x500789][_0x5827a4('0x8ec')]]={'question':_0x28c526['rows'][_0x500789][_0x5827a4('0xacf')],'answers':{},'sum':0x0}),_0x28c526[_0x5827a4('0x6aa')][_0x500789]['answer']===''&&(_0x28c526[_0x5827a4('0x6aa')][_0x500789][_0x5827a4('0x14a0')]=_0x5827a4('0x17d8')),_0x2588b8['answers'][_0x28c526[_0x5827a4('0x6aa')][_0x500789][_0x5827a4('0x8ec')]][_0x5827a4('0x1cbb')][_0x28c526[_0x5827a4('0x6aa')][_0x500789][_0x5827a4('0x14a0')]]?_0x2588b8[_0x5827a4('0x1cbb')][_0x28c526[_0x5827a4('0x6aa')][_0x500789][_0x5827a4('0x8ec')]][_0x5827a4('0x1cbb')][_0x28c526[_0x5827a4('0x6aa')][_0x500789]['answer']]+=0x1:_0x2588b8[_0x5827a4('0x1cbb')][_0x28c526[_0x5827a4('0x6aa')][_0x500789]['questionId']][_0x5827a4('0x1cbb')][_0x28c526[_0x5827a4('0x6aa')][_0x500789][_0x5827a4('0x14a0')]]=0x1,_0x2588b8[_0x5827a4('0x1cbb')][_0x28c526['rows'][_0x500789][_0x5827a4('0x8ec')]][_0x5827a4('0x9b9')]+=0x1);}}})[_0x59c2bb('0x103c')](function(_0x576ebe){const _0x51280b=_0x59c2bb;_0x3a5764[_0x51280b('0x15aa')]({'title':_0x576ebe[_0x51280b('0x276f')]?_0x51280b('0x137')+_0x576ebe[_0x51280b('0x276f')]+_0x51280b('0x160c')+_0x576ebe['statusText']:_0x51280b('0x21b0'),'msg':_0x576ebe[_0x51280b('0x1e07')]?JSON['stringify'](_0x576ebe[_0x51280b('0x1e07')]):_0x576ebe['toString']()});});}function _0xa28744(_0x37813c){const _0x225eb7=_0x4421e6;_0x2588b8[_0x225eb7('0x220b')]=_0x37813c,_0x2588b8[_0x225eb7('0x57b')]();}function _0x261b68(){const _0x11cd4f=_0x4421e6;return _0x212bc3[_0x11cd4f('0x46f')][_0x11cd4f('0xf2f')]({'id':_0x2588b8[_0x11cd4f('0x220b')]['id'],'startTime':{'$gte':_0x2588b8[_0x11cd4f('0x92e')][_0x11cd4f('0x1168')],'$lte':_0x156524()(_0x2588b8[_0x11cd4f('0x92e')][_0x11cd4f('0x171b')])[_0x11cd4f('0x623')](0x17,_0x11cd4f('0x26b6'))[_0x11cd4f('0x623')](0x3b,_0x11cd4f('0x893'))['add'](0x3b,_0x11cd4f('0x1adf'))['format']()},'nolimit':!![]})[_0x11cd4f('0x1964')][_0x11cd4f('0x173b')](function(_0x58cf5b){const _0x470f64=_0x11cd4f;if(typeof _0x58cf5b[_0x470f64('0x543')]!==_0x470f64('0x6e5')){const _0x557083=[_0x58cf5b[_0x470f64('0x1c22')]],_0x5242b7=new Blob(_0x557083,{'type':_0x58cf5b[_0x470f64('0x1810')]}),_0x45f460=window['document']['createElement']('a');_0x45f460['setAttribute'](_0x470f64('0x165c'),URL[_0x470f64('0x1466')](_0x5242b7)),_0x45f460[_0x470f64('0x11c3')](_0x470f64('0xfce'),_0x470f64('0x7ef')+_0x2588b8[_0x470f64('0x220b')]['id']+_0x470f64('0x632')),_0x45f460[_0x470f64('0x3cb')]();}else _0x3a5764[_0x470f64('0x2787')]({'title':_0x470f64('0x236'),'msg':_0x470f64('0x2362')});})[_0x11cd4f('0x103c')](function(_0x1aa89d){const _0x2b1ffb=_0x11cd4f;_0x3a5764[_0x2b1ffb('0x15aa')]({'title':_0x1aa89d[_0x2b1ffb('0x276f')]?_0x2b1ffb('0x137')+_0x1aa89d[_0x2b1ffb('0x276f')]+_0x2b1ffb('0x160c')+_0x1aa89d[_0x2b1ffb('0x2696')]:_0x2b1ffb('0x736'),'msg':_0x1aa89d[_0x2b1ffb('0x1e07')]?JSON[_0x2b1ffb('0x100b')](_0x1aa89d[_0x2b1ffb('0x1e07')]):_0x1aa89d[_0x2b1ffb('0x1b75')]()});});}}const _0x705cf6=_0x5c44c0;;function _0x4e3446(){const _0x5a8e83=_0x566993,_0x2155e4=this;_0x2155e4[_0x5a8e83('0x220b')]={},_0x2155e4['optionsBuilder']={'questionTypes':['text',_0x5a8e83('0x5de'),'radio',_0x5a8e83('0x1819'),_0x5a8e83('0xc65'),_0x5a8e83('0x1d81'),_0x5a8e83('0x22b6'),_0x5a8e83('0x953'),'email',_0x5a8e83('0x1205'),_0x5a8e83('0xd1')],'elementTypes':['question',_0x5a8e83('0xa2a')]},_0x2155e4['init']=_0x59bab6,_0x2155e4['isJsonString']=_0x4f58be;function _0x4f58be(_0x2e4644){const _0x6d38bb=_0x5a8e83;if(_0x3c8d8a()[_0x6d38bb('0x7d5')](_0x2e4644))return![];try{JSON['parse'](_0x2e4644);}catch(_0x1b6f17){return![];}return!![];}function _0x59bab6(_0x3ab19f){const _0x1f2d66=_0x5a8e83;_0x2155e4[_0x1f2d66('0x220b')]=_0x3ab19f;if(_0x3c8d8a()[_0x1f2d66('0xe62')](_0x3ab19f[_0x1f2d66('0x232b')]))_0x2155e4['project']['formData']=_0x3ab19f['formData'];else _0x2155e4[_0x1f2d66('0x363')](_0x3ab19f[_0x1f2d66('0x232b')])?_0x2155e4[_0x1f2d66('0x220b')][_0x1f2d66('0x232b')]=JSON[_0x1f2d66('0x1d5e')](_0x3ab19f[_0x1f2d66('0x232b')]):_0x2155e4[_0x1f2d66('0x220b')][_0x1f2d66('0x232b')]={};}}const _0x2d5d78=_0x4e3446;_0x28e19a['$inject']=['$mdDialog',_0x566993('0x2276'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x220b'),_0x566993('0x23a1'),'$translate'];function _0x28e19a(_0x1f85f9,_0x576e14,_0x573379,_0x32315b,_0x886ba9,_0x17f77d,_0x3b0b62){const _0xf92e83=_0x566993,_0x56741d=this;_0x56741d[_0xf92e83('0x269c')]=!![],_0x56741d['project']=angular['copy'](_0x886ba9),_0x56741d[_0xf92e83('0x23a1')]=_0x17f77d,_0x56741d[_0xf92e83('0x20d6')]=_0x3b0b62[_0xf92e83('0x1467')](_0xf92e83('0xce'));_0x886ba9&&_0x886ba9[_0xf92e83('0x10ad')]&&(_0x56741d[_0xf92e83('0x20d6')]+=':\x20'+_0x886ba9[_0xf92e83('0x10ad')]);_0x56741d[_0xf92e83('0x6d2')]=_0x286a4a,_0x56741d[_0xf92e83('0x18e2')]=_0x800e05;function _0x286a4a(){const _0x25dd16=_0xf92e83;return _0x32315b[_0x25dd16('0x46f')][_0x25dd16('0x979')]({'id':_0x886ba9['id']},_0x56741d['project'])[_0x25dd16('0x1964')][_0x25dd16('0x173b')](function(_0x5906a6){const _0x17f4de=_0x25dd16;_0x56741d['projects'][_0x17f4de('0x1377')](_0x5906a6[_0x17f4de('0xf1f')]()),_0x573379[_0x17f4de('0xdfe')]({'title':_0x17f4de('0x2832'),'msg':_0x56741d['project'][_0x17f4de('0x10ad')]?_0x56741d[_0x17f4de('0x220b')][_0x17f4de('0x10ad')]+_0x17f4de('0x648'):''}),_0x576e14['go'](_0x17f4de('0x1696'),{'id':_0x5906a6['id']}),_0x800e05(_0x5906a6);})[_0x25dd16('0x103c')](function(_0x2f65c6){const _0x46e8e7=_0x25dd16;if(_0x2f65c6[_0x46e8e7('0x1e07')]&&_0x2f65c6[_0x46e8e7('0x1e07')]['errors']&&_0x2f65c6[_0x46e8e7('0x1e07')]['errors'][_0x46e8e7('0x543')]){_0x56741d[_0x46e8e7('0x1d4a')]=_0x2f65c6[_0x46e8e7('0x1e07')]['errors']||[{'message':_0x2f65c6[_0x46e8e7('0x1b75')](),'type':_0x46e8e7('0x17a4')}];for(let _0x1b9cd8=0x0;_0x1b9cd8<_0x2f65c6[_0x46e8e7('0x1e07')]['errors']['length'];_0x1b9cd8+=0x1){_0x573379[_0x46e8e7('0x15aa')]({'title':_0x2f65c6[_0x46e8e7('0x1e07')][_0x46e8e7('0x1d4a')][_0x1b9cd8][_0x46e8e7('0x1810')],'msg':_0x2f65c6[_0x46e8e7('0x1e07')][_0x46e8e7('0x1d4a')][_0x1b9cd8][_0x46e8e7('0x67f')]});}}else _0x573379[_0x46e8e7('0x15aa')]({'title':_0x2f65c6['status']?'API:'+_0x2f65c6['status']+_0x46e8e7('0x160c')+_0x2f65c6[_0x46e8e7('0x2696')]:_0x46e8e7('0x17a4'),'msg':_0x2f65c6[_0x46e8e7('0x1e07')]?JSON[_0x46e8e7('0x100b')](_0x2f65c6[_0x46e8e7('0x1e07')][_0x46e8e7('0x67f')]):_0x2f65c6[_0x46e8e7('0x1b75')]()});});}function _0x800e05(_0x1596ad){const _0x2a493c=_0xf92e83;_0x1f85f9[_0x2a493c('0x1cf4')](_0x1596ad);}}const _0x29f469=_0x28e19a;_0x843bbb[_0x566993('0x17bb')]=['$q',_0x566993('0x1fe5'),_0x566993('0x66f')];function _0x843bbb(_0x51942c,_0x21bdd4,_0x28f1fa){const _0x525d65=_0x566993,_0x544224=this;_0x544224[_0x525d65('0x220b')]={},_0x544224[_0x525d65('0x630')]={},_0x544224[_0x525d65('0xe65')]={},_0x544224[_0x525d65('0xb9c')]=_0xc439af,_0x544224[_0x525d65('0x1c2d')]=_0x494c4e,_0x544224[_0x525d65('0x1bd2')]=_0x558936;function _0xc439af(_0x48cda2){const _0x59d740=_0x525d65;_0x544224[_0x59d740('0x220b')]=_0x48cda2,_0x28f1fa['$on']('mwForm.pageEvents.pageCurrentChanged',function(_0xf9a5a5,_0x380e0e){const _0x90e587=_0x59d740;if(_0x380e0e['currentPage']&&_0x544224[_0x90e587('0x220b')]['formData']&&_0x544224[_0x90e587('0x220b')]['formData']['pages'])for(let _0x988b24=0x0,_0x59eb8a=_0x544224[_0x90e587('0x220b')]['formData'][_0x90e587('0x1afb')]['length'];_0x988b24<_0x59eb8a;_0x988b24++){if(_0x380e0e[_0x90e587('0xf94')][_0x90e587('0x1d81')]<_0x988b24+0x1&&_0x544224[_0x90e587('0x220b')][_0x90e587('0x232b')][_0x90e587('0x1afb')][_0x988b24][_0x90e587('0x2113')])for(let _0x32f1e0=0x0,_0x3581ea=_0x544224[_0x90e587('0x220b')][_0x90e587('0x232b')][_0x90e587('0x1afb')][_0x988b24][_0x90e587('0x2113')][_0x90e587('0x543')];_0x32f1e0<_0x3581ea;_0x32f1e0++){_0x544224[_0x90e587('0x220b')][_0x90e587('0x232b')]['pages'][_0x988b24]['elements'][_0x32f1e0]['type']===_0x90e587('0xacf')&&_0x544224[_0x90e587('0x220b')][_0x90e587('0x232b')][_0x90e587('0x1afb')][_0x988b24][_0x90e587('0x2113')][_0x32f1e0][_0x90e587('0xacf')]&&delete _0x544224['responseData'][_0x544224[_0x90e587('0x220b')][_0x90e587('0x232b')][_0x90e587('0x1afb')][_0x988b24]['elements'][_0x32f1e0]['question']['id']];}}});}function _0x494c4e(_0x322217){const _0x376093=_0x525d65,_0x1c4f36=_0x51942c[_0x376093('0x112e')](),_0x203215=_0x21bdd4[_0x376093('0x1d02')]()[_0x376093('0x20d6')]('Would\x20you\x20like\x20to\x20save\x20your\x20survey?')[_0x376093('0x1f71')]('')['ariaLabel'](_0x376093('0x2800'))[_0x376093('0x21de')](_0x322217)['ok'](_0x376093('0x1fe0'))[_0x376093('0x1e1f')](_0x376093('0x468'));return _0x21bdd4[_0x376093('0x1cb7')](_0x203215)[_0x376093('0x173b')](function(){const _0x4fc7a0=_0x376093;_0x1c4f36[_0x4fc7a0('0x155b')](!![]);},function(){_0x1c4f36['reject']();}),_0x1c4f36[_0x376093('0x2219')];}function _0x558936(){const _0x1eadd3=_0x525d65;_0x544224[_0x1eadd3('0xe65')][_0x1eadd3('0x151')]&&_0x544224[_0x1eadd3('0xe65')]['reset']();}}const _0x4402e5=_0x843bbb,_0x483e69=_0x21a6a1['p']+_0x566993('0x9d4');_0x59fac4[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),'$state','$q',_0x566993('0x638'),'$timeout','$mdDialog',_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x59fac4(_0x5d8b18,_0x11756a,_0x306920,_0x243d80,_0x197609,_0x3b440f,_0x3a6d09,_0x26879f,_0x3f8b27,_0x268b63,_0x5d5a83){const _0x3e3a07=_0x566993,_0x5eb62b=this;_0x5eb62b[_0x3e3a07('0x155f')]=_0x5d5a83['getCurrentUser'](),_0x5eb62b[_0x3e3a07('0x220b')]={},_0x5eb62b[_0x3e3a07('0x723')]={'count':0x0,'rows':[]},_0x5eb62b[_0x3e3a07('0x21d3')]=[],_0x5eb62b[_0x3e3a07('0x1dc1')],_0x5eb62b['query']={'fields':'createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed','sort':'-starttime','limit':0xa,'page':0x1},_0x5eb62b[_0x3e3a07('0xb9c')]=_0xd91531,_0x5eb62b[_0x3e3a07('0x2051')]=_0x31c419,_0x5eb62b[_0x3e3a07('0xdfe')]=_0x47b47d,_0x5eb62b[_0x3e3a07('0x11a')]=_0x35d0bd,_0x5eb62b[_0x3e3a07('0xb84')]=_0x4ba782,_0x5eb62b[_0x3e3a07('0x22dd')]=_0x4d29ee,_0x5eb62b['exportSelectedProjectSessions']=_0x1ba406,_0x5eb62b[_0x3e3a07('0x1ac8')]=_0x6a13f6,_0x5eb62b[_0x3e3a07('0x147b')]=_0x3cd72b;function _0xd91531(_0x59bb1e,_0x3fe90d){const _0x58471d=_0x3e3a07;_0x5eb62b[_0x58471d('0x220b')]=_0x59bb1e,_0x5eb62b[_0x58471d('0x1dc1')]=typeof _0x3fe90d!==_0x58471d('0x6e5')?_0x3fe90d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5eb62b[_0x58471d('0xc49')]['id']=_0x5eb62b[_0x58471d('0x220b')]['id'],_0x35d0bd();}function _0x31c419(_0x4f97ca,_0x211595){const _0x2332ed=_0x3e3a07,_0x404bbb=_0x3a6d09[_0x2332ed('0x1d02')]()[_0x2332ed('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?')[_0x2332ed('0xf8b')](_0x2332ed('0x15b9')+(_0x4f97ca['name']||_0x4f97ca['id']&&_0x3c8d8a()[_0x2332ed('0x5ba')](_0x2332ed('0x845'))+_0x4f97ca['id']||_0x2332ed('0x1a11'))+_0x2332ed('0x24be')+_0x2332ed('0xd23'))['ariaLabel'](_0x2332ed('0x17cc'))[_0x2332ed('0x21de')](_0x211595)['ok']('OK')[_0x2332ed('0x1e1f')](_0x2332ed('0x468'));_0x3a6d09[_0x2332ed('0x1cb7')](_0x404bbb)[_0x2332ed('0x173b')](function(){_0x6a13f6(_0x4f97ca);},function(){const _0x4ca549=_0x2332ed;console[_0x4ca549('0xe37')](_0x4ca549('0x468'));});}function _0x47b47d(_0x2d0301){_0x5eb62b['projectSessions']=_0x2d0301||{'count':0x0,'rows':[]};}function _0x35d0bd(){const _0x1e4e86=_0x3e3a07;_0x5eb62b[_0x1e4e86('0xc49')][_0x1e4e86('0x17f0')]=(_0x5eb62b[_0x1e4e86('0xc49')][_0x1e4e86('0x182e')]-0x1)*_0x5eb62b[_0x1e4e86('0xc49')]['limit'],_0x5eb62b[_0x1e4e86('0x2219')]=_0x268b63[_0x1e4e86('0x46f')][_0x1e4e86('0xe36')](_0x5eb62b[_0x1e4e86('0xc49')],_0x47b47d)['$promise'];}function _0x4ba782(_0x543964,_0x4c0767){const _0xf4fbd9=_0x3e3a07;_0x3a6d09[_0xf4fbd9('0x1cb7')]({'controller':_0xf4fbd9('0x2225'),'controllerAs':'vm','templateUrl':_0x483e69,'parent':angular['element'](_0x26879f['body']),'targetEvent':_0x543964,'clickOutsideToClose':!![],'locals':{'project':_0x5eb62b[_0xf4fbd9('0x220b')],'session':_0x4c0767,'sessions':_0x5eb62b['projectSessions'][_0xf4fbd9('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x5eb62b[_0xf4fbd9('0x1dc1')]}});}function _0x4d29ee(_0xb7f57e,_0x4e15e7){const _0x7d9a74=_0x3e3a07;_0x3a6d09[_0x7d9a74('0x1cb7')]({'controller':'ShowQuestionsSessionDialogController','controllerAs':'vm','templateUrl':_0x483e69,'parent':angular[_0x7d9a74('0xb6d')](_0x26879f[_0x7d9a74('0x1a5')]),'targetEvent':_0xb7f57e,'clickOutsideToClose':!![],'resolve':{'questions':[_0x7d9a74('0x2401'),function(_0x52299b){const _0x270be8=_0x7d9a74;return _0x52299b[_0x270be8('0x155b')](_0x270be8('0xb16'),{'fields':_0x270be8('0x927'),'sort':'id','id':_0x4e15e7['id']});}]},'locals':{'project':_0x5eb62b[_0x7d9a74('0x220b')],'session':_0x4e15e7}});}function _0x6a13f6(_0x4d009d){const _0x3726aa=_0x3e3a07;_0x268b63[_0x3726aa('0xd95')][_0x3726aa('0x15e8')]({'id':_0x4d009d['id']})[_0x3726aa('0x1964')]['then'](function(){const _0x19d7de=_0x3726aa;_0x3c8d8a()[_0x19d7de('0x1a8b')](_0x5eb62b[_0x19d7de('0x723')][_0x19d7de('0x6aa')],{'id':_0x4d009d['id']}),_0x5eb62b['projectSessions'][_0x19d7de('0x1a2f')]-=0x1,!_0x5eb62b[_0x19d7de('0x723')][_0x19d7de('0x6aa')][_0x19d7de('0x543')]&&_0x35d0bd(),_0x3f8b27['success']({'title':_0x19d7de('0x1bf3'),'msg':_0x4d009d[_0x19d7de('0x10ad')]?_0x4d009d['name']+_0x19d7de('0x25d2'):''});})[_0x3726aa('0x103c')](function(_0xabb58f){const _0x71c730=_0x3726aa;if(_0xabb58f[_0x71c730('0x1e07')]&&_0xabb58f[_0x71c730('0x1e07')][_0x71c730('0x1d4a')]&&_0xabb58f[_0x71c730('0x1e07')][_0x71c730('0x1d4a')][_0x71c730('0x543')]){_0x5eb62b['errors']=_0xabb58f['data'][_0x71c730('0x1d4a')]||[{'message':_0xabb58f[_0x71c730('0x1b75')](),'type':_0x71c730('0x13ea')}];for(let _0x596bb5=0x0;_0x596bb5<_0xabb58f[_0x71c730('0x1e07')][_0x71c730('0x1d4a')][_0x71c730('0x543')];_0x596bb5++){_0x3f8b27[_0x71c730('0x15aa')]({'title':_0xabb58f[_0x71c730('0x1e07')][_0x71c730('0x1d4a')][_0x596bb5][_0x71c730('0x1810')],'msg':_0xabb58f[_0x71c730('0x1e07')][_0x71c730('0x1d4a')][_0x596bb5][_0x71c730('0x67f')]});}}else _0x3f8b27['error']({'title':_0xabb58f[_0x71c730('0x276f')]?_0x71c730('0x137')+_0xabb58f[_0x71c730('0x276f')]+_0x71c730('0x160c')+_0xabb58f[_0x71c730('0x2696')]:_0x71c730('0x13ea'),'msg':_0xabb58f[_0x71c730('0x1e07')]?JSON['stringify'](_0xabb58f[_0x71c730('0x1e07')][_0x71c730('0x67f')]):_0xabb58f[_0x71c730('0x67f')]||_0xabb58f[_0x71c730('0x1b75')]()});});}function _0x1ba406(){const _0x51f449=_0x3e3a07,_0x57e53f=angular['copy'](_0x5eb62b['selectedProjectSessions']);return _0x5eb62b[_0x51f449('0x21d3')]=[],_0x57e53f;}function _0x3cd72b(_0x43aa5a){const _0x493707=_0x3e3a07,_0x1d058b=_0x3a6d09[_0x493707('0x1d02')]()[_0x493707('0x20d6')](_0x493707('0x14ce'))[_0x493707('0xf8b')](_0x493707('0x15b9')+_0x5eb62b[_0x493707('0x21d3')][_0x493707('0x543')]+_0x493707('0xcb4')+_0x493707('0xd23'))['ariaLabel'](_0x493707('0x158c'))[_0x493707('0x21de')](_0x43aa5a)['ok']('OK')[_0x493707('0x1e1f')](_0x493707('0x468'));_0x3a6d09[_0x493707('0x1cb7')](_0x1d058b)[_0x493707('0x173b')](function(){const _0x2a029b=_0x493707;_0x5eb62b[_0x2a029b('0x21d3')][_0x2a029b('0xa6a')](function(_0x535514){_0x6a13f6(_0x535514);}),_0x5eb62b[_0x2a029b('0x21d3')]=[];});}let _0x573930=!![],_0x2463e6=0x1;_0x11756a[_0x3e3a07('0x1bdb')]('vm_dc.query.filter',function(_0x1ac00f,_0x4525f8){const _0x1f8c77=_0x3e3a07;_0x573930?_0x3b440f(function(){_0x573930=![];}):(!_0x4525f8&&(_0x2463e6=_0x5eb62b[_0x1f8c77('0xc49')]['page']),_0x1ac00f!==_0x4525f8&&(_0x5eb62b[_0x1f8c77('0xc49')][_0x1f8c77('0x182e')]=0x1),!_0x1ac00f&&(_0x5eb62b[_0x1f8c77('0xc49')]['page']=_0x2463e6),_0x35d0bd());});}const _0x48f7d2=_0x59fac4;_0x20f824['$inject']=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'toasty',_0x566993('0x1a11'),_0x566993('0x5ff'),'project'];function _0x20f824(_0x2c1c60,_0xdd8154,_0x4faf95,_0x536193,_0x3c5173,_0x2e8c68,_0x21ea73,_0x2e2abc){const _0x5cece9=_0x566993,_0xc2bd28=this;_0xc2bd28[_0x5cece9('0x20d6')]=_0x5cece9('0x2035'),_0xc2bd28[_0x5cece9('0x1a11')]=_0x2e8c68,_0xc2bd28[_0x5cece9('0x5ff')]=_0x21ea73,_0xc2bd28['project']=_0x2e2abc;function _0x3b6025(_0x3db292){const _0xb9b801=_0x5cece9;_0x536193[_0xb9b801('0x1cf4')](_0x3db292);}_0xc2bd28[_0x5cece9('0x18e2')]=_0x3b6025;}const _0x459e5c=_0x20f824,_0x23c47e=_0x21a6a1['p']+_0x566993('0x16b5');_0xc41d85[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$document',_0x566993('0x638'),'license','setting',_0x566993('0xbd4'),_0x566993('0x1558'),_0x566993('0x1600'),'project',_0x566993('0x170e')];function _0xc41d85(_0x6fa6ef,_0x51ab68,_0x7ab354,_0x5470fc,_0x4cc146,_0x1c554d,_0x33512f,_0x32486f,_0x3f0d00,_0x1c1b1b,_0x4c96c5,_0x310a49){const _0x1b4f5a=_0x566993,_0x1a43dc=this;_0x1a43dc[_0x1b4f5a('0x155f')]=_0x1c1b1b[_0x1b4f5a('0x14d4')](),_0x1a43dc[_0x1b4f5a('0x1a29')]=_0x1c554d,_0x1a43dc[_0x1b4f5a('0x251')]=_0x33512f,_0x1a43dc[_0x1b4f5a('0x644')]=_0x1a43dc[_0x1b4f5a('0x251')][_0x1b4f5a('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a43dc[_0x1b4f5a('0x614')]=_0x51ab68[_0x1b4f5a('0x375')]()+_0x1b4f5a('0x122b')+_0x51ab68['host'](),_0x1a43dc[_0x1b4f5a('0x220b')]=_0x4c96c5||_0x6fa6ef[_0x1b4f5a('0x197a')]['project']||{},_0x1a43dc[_0x1b4f5a('0x170e')]=_0x310a49&&_0x310a49[_0x1b4f5a('0x1a2f')]==0x1?_0x310a49[_0x1b4f5a('0x6aa')][0x0]:null,_0x1a43dc[_0x1b4f5a('0x1dc1')]=_0x1c1b1b[_0x1b4f5a('0xde6')](_0x1a43dc['userProfileSection']?_0x1a43dc[_0x1b4f5a('0x170e')][_0x1b4f5a('0x1dc1')]:null),_0x1a43dc[_0x1b4f5a('0xb0')]={},_0x1a43dc[_0x1b4f5a('0xd5f')]=_0x6fa6ef['params']['tab']||0x0,_0x1a43dc[_0x1b4f5a('0x28a')]=_0x210f20,_0x1a43dc[_0x1b4f5a('0x5a4')]=_0x3f0d00[_0x1b4f5a('0x2787')],_0x1a43dc[_0x1b4f5a('0x1bfb')]=_0x2f737f,_0x1a43dc[_0x1b4f5a('0x264f')]=_0x25fae8;function _0x210f20(_0x21d147,_0x174c89){const _0x12f0e4=_0x1b4f5a;_0x7ab354[_0x12f0e4('0x1cb7')]({'controller':'ProjectcloneController','controllerAs':'vm','templateUrl':_0x23c47e,'parent':angular[_0x12f0e4('0xb6d')](_0x5470fc[_0x12f0e4('0x1a5')]),'targetEvent':_0x174c89,'clickOutsideToClose':!![],'locals':{'project':_0x21d147,'projects':_0x1a43dc[_0x12f0e4('0x23a1')]?_0x1a43dc[_0x12f0e4('0x23a1')]['rows']:[],'crudPermissions':_0x1a43dc[_0x12f0e4('0x1dc1')]}});}function _0x2f737f(){const _0x122679=_0x1b4f5a;_0x6fa6ef['go'](_0x122679('0x25cc'),{},{'reload':'app.jscripty.projects'});}function _0x25fae8(){const _0x3123b0=_0x1b4f5a;_0x32486f[_0x3123b0('0x46f')][_0x3123b0('0x1842')]({'id':_0x1a43dc['project']['id']},_0x1a43dc[_0x3123b0('0x220b')])[_0x3123b0('0x1964')][_0x3123b0('0x173b')](function(){const _0x540695=_0x3123b0;_0x3f0d00[_0x540695('0xdfe')]({'title':'Project\x20updated!','msg':_0x1a43dc['project'][_0x540695('0x10ad')]?_0x1a43dc[_0x540695('0x220b')][_0x540695('0x10ad')]+_0x540695('0x1fd6'):''});})[_0x3123b0('0x103c')](function(_0x1ede66){const _0x34cbe9=_0x3123b0;_0x3f0d00[_0x34cbe9('0x15aa')]({'title':_0x1ede66[_0x34cbe9('0x276f')]?_0x34cbe9('0x137')+_0x1ede66[_0x34cbe9('0x276f')]+'\x20-\x20'+_0x1ede66[_0x34cbe9('0x2696')]:_0x34cbe9('0x13ea'),'msg':_0x1ede66['data']?JSON[_0x34cbe9('0x100b')](_0x1ede66['data']):_0x1ede66[_0x34cbe9('0x1b75')]()});});}}const _0x37dab2=_0xc41d85,_0x2ee837=_0x21a6a1['p']+_0x566993('0x1032');_0x29f95e[_0x566993('0x17bb')]=['$scope','$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),'projects',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),'Auth','license','setting'];function _0x29f95e(_0x3c02f9,_0x3518ea,_0x1c2816,_0x17ad8,_0x3f5289,_0x399411,_0x35c7f6,_0x45310e,_0x50553a,_0x3606de,_0xfd1913,_0x14eeaf,_0x396676,_0x3f5dad,_0x29284c,_0x57d7cd,_0x7837ca){const _0x208906=_0x566993,_0x40161d=this;_0x40161d[_0x208906('0x1a29')]=_0x57d7cd,_0x40161d[_0x208906('0x251')]=_0x7837ca,_0x40161d['currentUser']=_0x29284c[_0x208906('0x14d4')](),_0x40161d[_0x208906('0x23a1')]=_0x50553a||{'count':0x0,'rows':[]},_0x40161d[_0x208906('0x257b')]=_0x3606de,_0x40161d[_0x208906('0x170e')]=_0xfd1913&&_0xfd1913['count']==0x1?_0xfd1913[_0x208906('0x6aa')][0x0]:null,_0x40161d[_0x208906('0x1dc1')]=_0x29284c[_0x208906('0xde6')](_0x40161d[_0x208906('0x170e')]?_0x40161d[_0x208906('0x170e')]['crudPermissions']:null),_0x40161d[_0x208906('0xdf9')]=_0x208906('0x23a1'),_0x40161d[_0x208906('0x14d6')]='',_0x40161d['listOrderAsc']=null,_0x40161d[_0x208906('0x2263')]=[],_0x40161d[_0x208906('0xc49')]={'fields':_0x208906('0xe4d'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x40161d[_0x208906('0x222e')]=_0x221723,_0x40161d['clonedialog']=_0x2ad8f8,_0x40161d[_0x208906('0x73')]=_0x4cc22e,_0x40161d[_0x208906('0x1a20')]=_0x5570ba,_0x40161d['success']=_0x4f4719,_0x40161d['getProjects']=_0x5ea7e8,_0x40161d['createOrEditProject']=_0x5a0487,_0x40161d[_0x208906('0x9ab')]=_0x8d49b3,_0x40161d[_0x208906('0x1c65')]=_0x11d1bb,_0x40161d['deleteSelectedProjects']=_0x289168,_0x40161d[_0x208906('0x1c09')]=_0x322208,_0x40161d[_0x208906('0x235d')]=_0x5a36bc;function _0x221723(_0x381e8f){_0x1c2816['go']('app.jscripty.projects.edit',{'id':_0x381e8f['id'],'project':_0x381e8f,'crudPermissions':_0x40161d['crudPermissions']});}function _0x2ad8f8(_0x37628e,_0xaea90){const _0xc85907=_0x208906;_0x3f5289[_0xc85907('0x1cb7')]({'controller':_0xc85907('0x2506'),'controllerAs':'vm','templateUrl':_0x23c47e,'parent':angular['element'](_0x399411[_0xc85907('0x1a5')]),'targetEvent':_0xaea90,'clickOutsideToClose':!![],'locals':{'project':_0x37628e,'projects':_0x40161d[_0xc85907('0x23a1')]?_0x40161d[_0xc85907('0x23a1')][_0xc85907('0x6aa')]:[],'crudPermissions':_0x40161d[_0xc85907('0x1dc1')]}});}function _0x4cc22e(_0x3cdd01){const _0x1327f4=_0x208906;_0x1c2816['go'](_0x1327f4('0x1696'),{'id':_0x3cdd01['id'],'tab':0x3});}function _0x5570ba(_0x1d40f9,_0x2c3d95){const _0x544df3=_0x208906,_0x395efd=_0x3f5289[_0x544df3('0x1d02')]()[_0x544df3('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x3c8d8a()[_0x544df3('0x10e')]('project')+'?')[_0x544df3('0xf8b')](''+(_0x1d40f9['name']||_0x544df3('0x220b'))+''+_0x544df3('0xd23'))['ariaLabel'](_0x544df3('0x19ee'))[_0x544df3('0x21de')](_0x2c3d95)['ok']('OK')[_0x544df3('0x1e1f')](_0x544df3('0x468'));_0x3f5289[_0x544df3('0x1cb7')](_0x395efd)[_0x544df3('0x173b')](function(){_0x8d49b3(_0x1d40f9);},function(){const _0x1facfe=_0x544df3;console['log'](_0x1facfe('0x468'));});}let _0x170de8=!![],_0xad0000=0x1;_0x3c02f9[_0x208906('0x1bdb')](_0x208906('0x157b'),function(_0x16d7bc,_0x38e5f2){const _0x3ce925=_0x208906;_0x170de8?_0x35c7f6(function(){_0x170de8=![];}):(!_0x38e5f2&&(_0xad0000=_0x40161d[_0x3ce925('0xc49')][_0x3ce925('0x182e')]),_0x16d7bc!==_0x38e5f2&&(_0x40161d[_0x3ce925('0xc49')]['page']=0x1),!_0x16d7bc&&(_0x40161d[_0x3ce925('0xc49')][_0x3ce925('0x182e')]=_0xad0000),_0x40161d[_0x3ce925('0x1e19')]());});function _0x4f4719(_0x126e73){const _0xd0bd6a=_0x208906;_0x40161d[_0xd0bd6a('0x23a1')]=_0x126e73||{'count':0x0,'rows':[]};}function _0x5ea7e8(){const _0x440d5f=_0x208906;_0x40161d[_0x440d5f('0xc49')]['offset']=(_0x40161d[_0x440d5f('0xc49')]['page']-0x1)*_0x40161d[_0x440d5f('0xc49')][_0x440d5f('0x3e')],_0x29284c[_0x440d5f('0x1b4e')](_0x440d5f('0x79b'))?_0x40161d[_0x440d5f('0x2219')]=_0x14eeaf[_0x440d5f('0x46f')][_0x440d5f('0x1d97')](_0x40161d[_0x440d5f('0xc49')],_0x4f4719)[_0x440d5f('0x1964')]:(_0x40161d[_0x440d5f('0xc49')]['id']=_0x40161d[_0x440d5f('0x257b')]['id'],_0x40161d['query']['section']=_0x440d5f('0x557'),_0x40161d[_0x440d5f('0x2219')]=_0x14eeaf['userProfile'][_0x440d5f('0x135b')](_0x40161d[_0x440d5f('0xc49')],_0x4f4719)[_0x440d5f('0x1964')]);}function _0x5a0487(_0x4005fe,_0x40b615){const _0x2033f4=_0x208906;_0x3f5289[_0x2033f4('0x1cb7')]({'controller':_0x2033f4('0x13c5'),'controllerAs':'vm','templateUrl':_0x2ee837,'parent':angular[_0x2033f4('0xb6d')](_0x399411[_0x2033f4('0x1a5')]),'targetEvent':_0x4005fe,'clickOutsideToClose':!![],'locals':{'project':_0x40b615,'projects':_0x40161d[_0x2033f4('0x23a1')][_0x2033f4('0x6aa')],'license':_0x40161d[_0x2033f4('0x1a29')],'setting':_0x40161d[_0x2033f4('0x251')],'crudPermissions':_0x40161d['crudPermissions']}});}function _0x8d49b3(_0xe2d047){const _0x2d5eb4=_0x208906;_0x14eeaf[_0x2d5eb4('0x46f')][_0x2d5eb4('0x15e8')]({'id':_0xe2d047['id']})[_0x2d5eb4('0x1964')][_0x2d5eb4('0x173b')](function(){const _0x48755d=_0x2d5eb4;_0x3c8d8a()[_0x48755d('0x1a8b')](_0x40161d[_0x48755d('0x23a1')][_0x48755d('0x6aa')],{'id':_0xe2d047['id']}),_0x40161d[_0x48755d('0x23a1')][_0x48755d('0x1a2f')]-=0x1,!_0x40161d[_0x48755d('0x23a1')]['rows'][_0x48755d('0x543')]&&_0x40161d[_0x48755d('0x1e19')](),_0x3f5dad[_0x48755d('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x48755d('0x383'))+_0x48755d('0x1c5e'),'msg':_0xe2d047[_0x48755d('0x10ad')]?_0xe2d047[_0x48755d('0x10ad')]+_0x48755d('0x25d2'):''});})[_0x2d5eb4('0x103c')](function(_0x2d0d96){const _0x2a5f2a=_0x2d5eb4;if(_0x2d0d96[_0x2a5f2a('0x1e07')]&&_0x2d0d96[_0x2a5f2a('0x1e07')][_0x2a5f2a('0x1d4a')]&&_0x2d0d96['data']['errors']['length']){_0x40161d[_0x2a5f2a('0x1d4a')]=_0x2d0d96[_0x2a5f2a('0x1e07')]['errors']||[{'message':_0x2d0d96[_0x2a5f2a('0x1b75')](),'type':_0x2a5f2a('0x184e')}];for(let _0x1480a5=0x0;_0x1480a5<_0x2d0d96[_0x2a5f2a('0x1e07')][_0x2a5f2a('0x1d4a')]['length'];_0x1480a5++){_0x3f5dad['error']({'title':_0x2d0d96['data'][_0x2a5f2a('0x1d4a')][_0x1480a5][_0x2a5f2a('0x1810')],'msg':_0x2d0d96['data'][_0x2a5f2a('0x1d4a')][_0x1480a5][_0x2a5f2a('0x67f')]});}}else _0x3f5dad['error']({'title':_0x2d0d96['status']?_0x2a5f2a('0x137')+_0x2d0d96[_0x2a5f2a('0x276f')]+_0x2a5f2a('0x160c')+_0x2d0d96[_0x2a5f2a('0x2696')]:_0x2a5f2a('0x184e'),'msg':_0x2d0d96[_0x2a5f2a('0x1e07')]?JSON['stringify'](_0x2d0d96[_0x2a5f2a('0x1e07')][_0x2a5f2a('0x67f')]):_0x2d0d96[_0x2a5f2a('0x67f')]||_0x2d0d96['toString']()});});}function _0x11d1bb(){const _0x778b38=_0x208906,_0x26f223=angular[_0x778b38('0x2e3')](_0x40161d[_0x778b38('0x2263')]);return _0x40161d[_0x778b38('0x2263')]=[],_0x26f223;}function _0x289168(_0x3058e9){const _0x23d3b0=_0x208906,_0x857efd=_0x3f5289['confirm']()['title'](_0x23d3b0('0x1724'))[_0x23d3b0('0xf8b')](_0x23d3b0('0x15b9')+_0x40161d[_0x23d3b0('0x2263')]['length']+_0x23d3b0('0xcb4')+_0x23d3b0('0xd23'))['ariaLabel']('delete\x20Projects')[_0x23d3b0('0x21de')](_0x3058e9)['ok']('OK')[_0x23d3b0('0x1e1f')]('CANCEL');_0x3f5289[_0x23d3b0('0x1cb7')](_0x857efd)['then'](function(){const _0x150d25=_0x23d3b0;_0x40161d['selectedProjects'][_0x150d25('0xa6a')](function(_0x2406d3){_0x8d49b3(_0x2406d3);}),_0x40161d[_0x150d25('0x2263')]=[];});}function _0x322208(){const _0x1a5280=_0x208906;_0x40161d[_0x1a5280('0x2263')]=[];}function _0x5a36bc(){const _0x1edd90=_0x208906;_0x40161d[_0x1edd90('0x2263')]=_0x40161d[_0x1edd90('0x23a1')][_0x1edd90('0x6aa')];}}const _0x30c83b=_0x29f95e;_0x393ac5[_0x566993('0x17bb')]=[_0x566993('0xccc'),'$translatePartialLoaderProvider'];function _0x393ac5(_0x117bd6,_0x48568f){const _0x1aec68=_0x566993;_0x117bd6[_0x1aec68('0x1a49')](_0x1aec68('0x15fa'),{'abstract':!![],'url':_0x1aec68('0xce6')})[_0x1aec68('0x1a49')]('app.jscripty.projects',{'url':'/projects','views':{'content@app':{'templateUrl':_0x1c66b9,'controller':'JscriptyProjectsController\x20as\x20vm'}},'resolve':{'projects':[_0x1aec68('0x2401'),_0x1aec68('0x1600'),function(_0xa3ed24,_0x195f31){const _0x18adfe=_0x1aec68;return _0x195f31[_0x18adfe('0x1b4e')](_0x18adfe('0x79b'))?_0xa3ed24['resolve'](_0x18adfe('0x2337'),{'fields':_0x18adfe('0xe4d'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0xa3ed24[_0x18adfe('0x155b')]('userProfile@getResources',{'id':_0x195f31['getCurrentUser']()[_0x18adfe('0x1946')],'section':_0x18adfe('0x557'),'fields':_0x18adfe('0xe4d'),'sort':_0x18adfe('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1aec68('0x2401'),_0x1aec68('0x1600'),function(_0x31d179,_0x168b65){const _0x2951d5=_0x1aec68;return _0x168b65['hasRole']('admin')?null:_0x31d179[_0x2951d5('0x155b')](_0x2951d5('0x1f20'),{'fields':_0x2951d5('0x19dd'),'id':_0x168b65[_0x2951d5('0x14d4')]()['userProfileId']});}],'userProfileSection':[_0x1aec68('0x2401'),_0x1aec68('0x1600'),function(_0x46f1e5,_0x2fa047){const _0x3b3fd2=_0x1aec68;return _0x2fa047[_0x3b3fd2('0x1b4e')](_0x3b3fd2('0x79b'))?null:_0x46f1e5[_0x3b3fd2('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2fa047[_0x3b3fd2('0x14d4')]()[_0x3b3fd2('0x1946')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x1aec68('0x25a1')})[_0x1aec68('0x1a49')](_0x1aec68('0x1696'),{'url':_0x1aec68('0xb4c'),'params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x17b48c,'controller':_0x1aec68('0x2387')}},'resolve':{'project':[_0x1aec68('0x2401'),_0x1aec68('0x1caf'),function(_0x8a4e2a,_0x190291){const _0xeb860=_0x1aec68;return _0x8a4e2a[_0xeb860('0x155b')](_0xeb860('0x2337'),{'fields':_0xeb860('0xe4d'),'id':_0x190291['id']});}],'userProfileSection':[_0x1aec68('0x2401'),_0x1aec68('0x1600'),function(_0x1221b8,_0x486517){const _0x2508b4=_0x1aec68;return _0x1221b8['resolve'](_0x2508b4('0x40'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x486517['getCurrentUser']()[_0x2508b4('0x1946')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x1aec68('0x25a1')}),_0x48568f['addPart'](_0x1aec68('0xe64'));}angular['module'](_0x566993('0x15fa'),['ngCsv',_0x566993('0x1dd5'),_0x566993('0x1663'),_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),_0x566993('0x8a3'),'mdPickers',_0x566993('0x1698'),'mwFormViewer',_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),'material.components.expansionPanels',_0x566993('0x1eab'),'angular.filter'])[_0x566993('0xea9')](_0x393ac5)['controller'](_0x566993('0x13c5'),_0x4c7cab)[_0x566993('0x1e65')](_0x566993('0x907'),_0x705cf6)['controller'](_0x566993('0x2090'),_0x2d5d78)[_0x566993('0x1e65')]('ProjectcloneController',_0x29f469)[_0x566993('0x1e65')]('ProjectViewerController',_0x4402e5)[_0x566993('0x1e65')](_0x566993('0x1e5f'),_0x48f7d2)['controller'](_0x566993('0x1f65'),_0x459e5c)[_0x566993('0x1e65')](_0x566993('0x577'),_0x37dab2)[_0x566993('0x1e65')](_0x566993('0x27c3'),_0x30c83b);const _0x38e25e=_0x21a6a1['p']+_0x566993('0x23d3'),_0x3ad343=_0x21a6a1['p']+_0x566993('0x1aea');_0x455dbe[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),'toasty',_0x566993('0x2689'),_0x566993('0x19f2'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0x455dbe(_0xbfd20b,_0xd9261e,_0x40ee61,_0x26b323,_0x378ee8,_0x44f1c4,_0xa97e6b,_0x194757,_0x79a05f,_0x47aba0,_0x2708dc,_0x4f70df,_0x272fcd,_0x4b4ee2){const _0x30baac=_0x566993,_0x5c042b=this;_0x5c042b[_0x30baac('0x155f')]=_0x2708dc[_0x30baac('0x14d4')](),_0x5c042b[_0x30baac('0x1d4a')]=[],_0x5c042b[_0x30baac('0x251')]=_0x272fcd,_0x5c042b['license']=_0x4f70df,_0x5c042b[_0x30baac('0x1dc1')]=_0x4b4ee2,_0x5c042b[_0x30baac('0xb0')]={},_0x5c042b['passwordPattern']=_0x5c042b['setting']&&_0x5c042b[_0x30baac('0x251')][_0x30baac('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c042b[_0x30baac('0x20d6')]=_0x30baac('0xa32'),_0x5c042b['plugin']=angular['copy'](_0x79a05f),_0x5c042b[_0x30baac('0x2689')]=_0x194757,_0x5c042b[_0x30baac('0x1ad9')]=![];!_0x5c042b['plugin']&&(_0x5c042b['plugin']={},_0x5c042b[_0x30baac('0x20d6')]=_0x30baac('0x51c'),_0x5c042b[_0x30baac('0x1ad9')]=!![]);_0x5c042b['addNewPlugin']=_0x53792d,_0x5c042b['savePlugin']=_0xbac473,_0x5c042b[_0x30baac('0x42f')]=_0x463a6e,_0x5c042b['getDateFromString']=_0x135563,_0x5c042b['closeDialog']=_0xb1a59e;function _0x53792d(){const _0x52b1ec=_0x30baac;_0x5c042b[_0x52b1ec('0x1d4a')]=[],_0x47aba0[_0x52b1ec('0x19f2')][_0x52b1ec('0x1195')](_0x5c042b[_0x52b1ec('0x19f2')])['$promise'][_0x52b1ec('0x173b')](function(_0x102cec){const _0x15bdb7=_0x52b1ec;_0x5c042b[_0x15bdb7('0x2689')][_0x15bdb7('0x1377')](_0x102cec[_0x15bdb7('0xf1f')]()),_0xa97e6b[_0x15bdb7('0xdfe')]({'title':_0x15bdb7('0x801'),'msg':_0x5c042b['plugin']['name']?_0x5c042b[_0x15bdb7('0x19f2')][_0x15bdb7('0x10ad')]+_0x15bdb7('0x209a'):''}),_0xb1a59e(_0x102cec);})[_0x52b1ec('0x103c')](function(_0x235323){const _0x265bb1=_0x52b1ec;if(_0x235323[_0x265bb1('0x1e07')]&&_0x235323[_0x265bb1('0x1e07')]['errors']&&_0x235323['data']['errors'][_0x265bb1('0x543')]){_0x5c042b[_0x265bb1('0x1d4a')]=_0x235323[_0x265bb1('0x1e07')][_0x265bb1('0x1d4a')]||[{'message':_0x235323['toString'](),'type':_0x265bb1('0x31d')}];for(let _0x408be1=0x0;_0x408be1<_0x235323[_0x265bb1('0x1e07')]['errors'][_0x265bb1('0x543')];_0x408be1+=0x1){_0xa97e6b[_0x265bb1('0x15aa')]({'title':_0x235323[_0x265bb1('0x1e07')][_0x265bb1('0x1d4a')][_0x408be1][_0x265bb1('0x1810')],'msg':_0x235323[_0x265bb1('0x1e07')][_0x265bb1('0x1d4a')][_0x408be1]['message']});}}else _0xa97e6b[_0x265bb1('0x15aa')]({'title':_0x235323[_0x265bb1('0x276f')]?_0x265bb1('0x137')+_0x235323[_0x265bb1('0x276f')]+_0x265bb1('0x160c')+_0x235323[_0x265bb1('0x2696')]:_0x265bb1('0x31d'),'msg':_0x235323[_0x265bb1('0x1e07')]?JSON[_0x265bb1('0x100b')](_0x235323[_0x265bb1('0x1e07')][_0x265bb1('0x67f')]):_0x235323[_0x265bb1('0x1b75')]()});});}function _0xbac473(){const _0x1ad3d4=_0x30baac;_0x5c042b['errors']=[],_0x47aba0['plugin'][_0x1ad3d4('0x1842')]({'id':_0x5c042b[_0x1ad3d4('0x19f2')]['id']},_0x5c042b['plugin'])[_0x1ad3d4('0x1964')][_0x1ad3d4('0x173b')](function(_0x3d4531){const _0x34a815=_0x1ad3d4,_0x4a09cd=_0x3c8d8a()[_0x34a815('0x18ab')](_0x5c042b['plugins'],{'id':_0x3d4531['id']});_0x4a09cd&&_0x3c8d8a()[_0x34a815('0x9ef')](_0x4a09cd,_0x3c8d8a()[_0x34a815('0x2114')](_0x3d4531['toJSON'](),_0x3c8d8a()['keys'](_0x4a09cd))),_0xa97e6b[_0x34a815('0xdfe')]({'title':_0x34a815('0x1df5'),'msg':_0x5c042b['plugin'][_0x34a815('0x10ad')]?_0x5c042b[_0x34a815('0x19f2')][_0x34a815('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0xb1a59e(_0x3d4531);})[_0x1ad3d4('0x103c')](function(_0x16bbae){const _0x569748=_0x1ad3d4;if(_0x16bbae[_0x569748('0x1e07')]&&_0x16bbae[_0x569748('0x1e07')][_0x569748('0x1d4a')]&&_0x16bbae['data'][_0x569748('0x1d4a')][_0x569748('0x543')]){_0x5c042b[_0x569748('0x1d4a')]=_0x16bbae['data']['errors']||[{'message':_0x16bbae[_0x569748('0x1b75')](),'type':_0x569748('0x2659')}];for(let _0x1728e7=0x0;_0x1728e7<_0x16bbae[_0x569748('0x1e07')][_0x569748('0x1d4a')][_0x569748('0x543')];_0x1728e7++){_0xa97e6b[_0x569748('0x15aa')]({'title':_0x16bbae[_0x569748('0x1e07')]['errors'][_0x1728e7]['type'],'msg':_0x16bbae[_0x569748('0x1e07')]['errors'][_0x1728e7][_0x569748('0x67f')]});}}else _0xa97e6b[_0x569748('0x15aa')]({'title':_0x16bbae['status']?'API:'+_0x16bbae['status']+_0x569748('0x160c')+_0x16bbae['statusText']:'api.plugin.update','msg':_0x16bbae[_0x569748('0x1e07')]?JSON[_0x569748('0x100b')](_0x16bbae[_0x569748('0x1e07')]['message']):_0x16bbae[_0x569748('0x1b75')]()});});}function _0x463a6e(_0x5929f4){const _0x54fb5e=_0x30baac;_0x5c042b[_0x54fb5e('0x1d4a')]=[];const _0x1e48f6=_0x26b323[_0x54fb5e('0x1d02')]()[_0x54fb5e('0x20d6')](_0x54fb5e('0x8ef'))[_0x54fb5e('0x732')](_0x54fb5e('0x54b'))[_0x54fb5e('0x217')](_0x54fb5e('0x2143'))['ok'](_0x54fb5e('0x2373'))[_0x54fb5e('0x1e1f')]('Cancel')[_0x54fb5e('0x21de')](_0x5929f4);_0x26b323[_0x54fb5e('0x1cb7')](_0x1e48f6)[_0x54fb5e('0x173b')](function(){const _0x50b346=_0x54fb5e;_0x47aba0[_0x50b346('0x19f2')][_0x50b346('0x15e8')]({'id':_0x5c042b[_0x50b346('0x19f2')]['id']})[_0x50b346('0x1964')][_0x50b346('0x173b')](function(){const _0xf7d43d=_0x50b346;_0x3c8d8a()[_0xf7d43d('0x1a8b')](_0x5c042b[_0xf7d43d('0x2689')],{'id':_0x5c042b[_0xf7d43d('0x19f2')]['id']}),_0xa97e6b[_0xf7d43d('0xdfe')]({'title':_0xf7d43d('0xdc2'),'msg':(_0x5c042b[_0xf7d43d('0x19f2')][_0xf7d43d('0x10ad')]||_0xf7d43d('0x19f2'))+_0xf7d43d('0x25d2')}),_0xb1a59e(_0x5c042b['plugin']);})[_0x50b346('0x103c')](function(_0xd45bfa){const _0x3e06fa=_0x50b346;if(_0xd45bfa[_0x3e06fa('0x1e07')]&&_0xd45bfa[_0x3e06fa('0x1e07')]['errors']&&_0xd45bfa[_0x3e06fa('0x1e07')][_0x3e06fa('0x1d4a')]['length']){_0x5c042b['errors']=_0xd45bfa[_0x3e06fa('0x1e07')]['errors']||[{'message':_0xd45bfa[_0x3e06fa('0x1b75')](),'type':'api.plugin.delete'}];for(let _0x45e562=0x0;_0x45e562<_0xd45bfa[_0x3e06fa('0x1e07')][_0x3e06fa('0x1d4a')][_0x3e06fa('0x543')];_0x45e562++){_0xa97e6b[_0x3e06fa('0x15aa')]({'title':_0xd45bfa[_0x3e06fa('0x1e07')]['errors'][_0x45e562][_0x3e06fa('0x1810')],'msg':_0xd45bfa[_0x3e06fa('0x1e07')][_0x3e06fa('0x1d4a')][_0x45e562][_0x3e06fa('0x67f')]});}}else _0xa97e6b[_0x3e06fa('0x15aa')]({'title':_0xd45bfa[_0x3e06fa('0x276f')]?_0x3e06fa('0x137')+_0xd45bfa[_0x3e06fa('0x276f')]+_0x3e06fa('0x160c')+_0xd45bfa[_0x3e06fa('0x2696')]:_0x3e06fa('0x483'),'msg':_0xd45bfa[_0x3e06fa('0x1e07')]?JSON[_0x3e06fa('0x100b')](_0xd45bfa[_0x3e06fa('0x1e07')][_0x3e06fa('0x67f')]):_0xd45bfa[_0x3e06fa('0x67f')]||_0xd45bfa[_0x3e06fa('0x1b75')]()});});},function(){});}function _0x135563(_0xbd855a){return _0xbd855a===null?undefined:new Date(_0xbd855a);}function _0xb1a59e(_0xf1ea99){_0x26b323['hide'](_0xf1ea99);}}const _0x36f136=_0x455dbe;_0x2d96ea[_0x566993('0x17bb')]=['$state',_0x566993('0x19df'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),_0x566993('0x1558'),'Auth',_0x566993('0x19f2'),_0x566993('0x170e')];function _0x2d96ea(_0x1ecd18,_0x115a04,_0x50c3fe,_0x44cdea,_0x4da19b,_0x14e371,_0x14bb13,_0x3b45c5,_0x36a48a,_0x3c112f,_0x4db89f,_0x39305d){const _0x3ecc56=_0x566993,_0x521c1b=this;_0x521c1b[_0x3ecc56('0x155f')]=_0x3c112f[_0x3ecc56('0x14d4')](),_0x521c1b['license']=_0x14e371,_0x521c1b[_0x3ecc56('0x251')]=_0x14bb13,_0x521c1b[_0x3ecc56('0x644')]=_0x521c1b[_0x3ecc56('0x251')][_0x3ecc56('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x521c1b[_0x3ecc56('0x614')]=_0x115a04[_0x3ecc56('0x375')]()+_0x3ecc56('0x122b')+_0x115a04[_0x3ecc56('0x4d1')](),_0x521c1b['plugin']=_0x4db89f||_0x1ecd18[_0x3ecc56('0x197a')][_0x3ecc56('0x19f2')]||{},_0x521c1b['userProfileSection']=_0x39305d&&_0x39305d[_0x3ecc56('0x1a2f')]==0x1?_0x39305d[_0x3ecc56('0x6aa')][0x0]:null,_0x521c1b[_0x3ecc56('0x1dc1')]=_0x3c112f[_0x3ecc56('0xde6')](_0x521c1b[_0x3ecc56('0x170e')]?_0x521c1b[_0x3ecc56('0x170e')][_0x3ecc56('0x1dc1')]:null),_0x521c1b['hasModulePermissions']={},_0x521c1b['selectedTab']=_0x1ecd18[_0x3ecc56('0x197a')][_0x3ecc56('0x1e66')]||0x0,_0x521c1b[_0x3ecc56('0x5a4')]=_0x36a48a[_0x3ecc56('0x2787')],_0x521c1b[_0x3ecc56('0x4f7')]=_0x425ea3,_0x521c1b[_0x3ecc56('0x1da5')]=_0x44592b;function _0x425ea3(){const _0x1863c3=_0x3ecc56;_0x1ecd18['go'](_0x1863c3('0x4df'),{},{'reload':_0x1863c3('0x4df')});}function _0x44592b(){const _0x1a33af=_0x3ecc56;_0x3b45c5[_0x1a33af('0x19f2')][_0x1a33af('0x1842')]({'id':_0x521c1b[_0x1a33af('0x19f2')]['id']},_0x521c1b[_0x1a33af('0x19f2')])[_0x1a33af('0x1964')][_0x1a33af('0x173b')](function(){const _0xfe40b3=_0x1a33af;_0x36a48a[_0xfe40b3('0xdfe')]({'title':_0xfe40b3('0x1245'),'msg':_0x521c1b[_0xfe40b3('0x19f2')]['name']?_0x521c1b[_0xfe40b3('0x19f2')][_0xfe40b3('0x10ad')]+_0xfe40b3('0x1fd6'):''});})[_0x1a33af('0x103c')](function(_0x3251d2){const _0x5e9101=_0x1a33af;_0x36a48a[_0x5e9101('0x15aa')]({'title':_0x3251d2['status']?_0x5e9101('0x137')+_0x3251d2[_0x5e9101('0x276f')]+_0x5e9101('0x160c')+_0x3251d2['statusText']:_0x5e9101('0xdd4'),'msg':_0x3251d2[_0x5e9101('0x1e07')]?JSON[_0x5e9101('0x100b')](_0x3251d2['data']):_0x3251d2['toString']()});});}}const _0x11c94e=_0x2d96ea,_0x1086d5=_0x21a6a1['p']+_0x566993('0xd3b'),_0xc3447=_0x21a6a1['p']+_0x566993('0x1040');_0x28a44c[_0x566993('0x17bb')]=['$scope',_0x566993('0x1d31'),_0x566993('0x2276'),_0x566993('0xd24'),'$mdDialog',_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate',_0x566993('0x2689'),'userProfile',_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x28a44c(_0x112f85,_0x25100d,_0x30fde5,_0x64426d,_0x39924f,_0x39123f,_0xc1737c,_0xb27694,_0x30d239,_0x5782ff,_0x11461a,_0x2ec312,_0x2e4e63,_0x57b79d,_0x97485b,_0x375a86,_0x2aa3d1){const _0x44779c=_0x566993,_0x530cc4=this;_0x530cc4[_0x44779c('0x1a29')]=_0x375a86,_0x530cc4['setting']=_0x2aa3d1,_0x530cc4[_0x44779c('0x155f')]=_0x97485b['getCurrentUser'](),_0x530cc4[_0x44779c('0x2689')]=_0x30d239||{'count':0x0,'rows':[]},_0x530cc4[_0x44779c('0x257b')]=_0x5782ff,_0x530cc4['userProfileSection']=_0x11461a&&_0x11461a['count']==0x1?_0x11461a[_0x44779c('0x6aa')][0x0]:null,_0x530cc4['crudPermissions']=_0x97485b[_0x44779c('0xde6')](_0x530cc4[_0x44779c('0x170e')]?_0x530cc4['userProfileSection']['crudPermissions']:null),_0x530cc4[_0x44779c('0xdf9')]=_0x44779c('0x2689'),_0x530cc4[_0x44779c('0x14d6')]='',_0x530cc4['listOrderAsc']=null,_0x530cc4[_0x44779c('0x864')]=[],_0x530cc4['query']={'fields':_0x44779c('0xeb'),'sort':_0x44779c('0x10ad'),'limit':0xa,'page':0x1},_0x530cc4[_0x44779c('0xead')]=![],_0x530cc4[_0x44779c('0x258')]=_0x3c8d8a()[_0x44779c('0x128')]([{'option':_0x44779c('0x2322'),'value':'\x27always\x27'},{'option':_0x44779c('0x1977'),'value':'\x27adminOnly\x27'},{'option':'Agent\x20Only','value':_0x44779c('0x73b')},{'option':_0x44779c('0x232f'),'value':_0x44779c('0x885')}],function(_0x26f602){const _0x50c32d=_0x44779c;return _0x3c8d8a()[_0x50c32d('0x166c')](_0x26f602['value'],new RegExp('\x27','g'),'');}),_0x530cc4[_0x44779c('0x9aa')]=_0x6026ec,_0x530cc4[_0x44779c('0x222e')]=_0x4d1cfc,_0x530cc4[_0x44779c('0x180e')]=_0x2f6fec,_0x530cc4[_0x44779c('0x170c')]=_0x3ee365,_0x530cc4[_0x44779c('0x1302')]=_0x44bede,_0x530cc4['uninstallplugin']=_0x1f0cf5,_0x530cc4[_0x44779c('0x1a20')]=_0x4602aa,_0x530cc4[_0x44779c('0xdfe')]=_0x1b225c,_0x530cc4[_0x44779c('0x2441')]=_0x75ac05,_0x530cc4['createOrEditPlugin']=_0x5978a9,_0x530cc4['deletePlugin']=_0x2779aa,_0x530cc4[_0x44779c('0x1fd3')]=_0xf41942,_0x530cc4['deleteSelectedPlugins']=_0x24ad86,_0x530cc4['deselectPlugins']=_0x103d6d,_0x530cc4[_0x44779c('0x1501')]=_0x5cfbcd,_0x530cc4[_0x44779c('0x2031')]=_0x3bae9e;function _0x6026ec(_0xa9620a){const _0x41b76b=_0x44779c;if(_0xa9620a[_0x41b76b('0x1810')]===_0x41b76b('0x196'))_0x530cc4[_0x41b76b('0xead')]=!![],_0x2ec312[_0x41b76b('0x278f')]['save']({'name':_0xa9620a[_0x41b76b('0x110f')],'script':_0xa9620a[_0x41b76b('0x1da1')]+'/'+_0xa9620a['scriptPath']})['$promise'][_0x41b76b('0x173b')](function(){const _0x55258d=_0x41b76b;return _0xa9620a[_0x55258d('0x1166')]=!![],_0x2ec312[_0x55258d('0x19f2')]['update']({'id':_0xa9620a['id']},_0xa9620a)[_0x55258d('0x1964')];})[_0x41b76b('0x173b')](function(){const _0x5332d3=_0x41b76b;_0x530cc4[_0x5332d3('0xead')]=![],_0x57b79d['success']({'title':_0x5332d3('0x27c0'),'msg':_0xa9620a[_0x5332d3('0x10ad')]?_0xa9620a[_0x5332d3('0x10ad')]+_0x5332d3('0x1492'):''});})['catch'](function(_0x874df5){const _0x5c00eb=_0x41b76b;if(_0x874df5[_0x5c00eb('0x1e07')]&&_0x874df5['data'][_0x5c00eb('0x1d4a')]&&_0x874df5[_0x5c00eb('0x1e07')][_0x5c00eb('0x1d4a')]['length']){_0x530cc4[_0x5c00eb('0x1d4a')]=_0x874df5[_0x5c00eb('0x1e07')][_0x5c00eb('0x1d4a')]||[{'message':_0x874df5['toString'](),'type':_0x5c00eb('0x1225')}];for(let _0x270911=0x0;_0x270911<_0x874df5['data']['errors']['length'];_0x270911++){_0x57b79d[_0x5c00eb('0x15aa')]({'title':_0x874df5[_0x5c00eb('0x1e07')][_0x5c00eb('0x1d4a')][_0x270911][_0x5c00eb('0x1810')],'msg':_0x874df5[_0x5c00eb('0x1e07')]['errors'][_0x270911][_0x5c00eb('0x67f')]});}}else _0x57b79d[_0x5c00eb('0x15aa')]({'title':_0x874df5[_0x5c00eb('0x276f')]?'API:'+_0x874df5['status']+_0x5c00eb('0x160c')+_0x874df5[_0x5c00eb('0x2696')]:_0x5c00eb('0x1225'),'msg':_0x874df5[_0x5c00eb('0x1e07')]?JSON[_0x5c00eb('0x100b')](_0x874df5[_0x5c00eb('0x1e07')][_0x5c00eb('0x67f')]):_0x874df5[_0x5c00eb('0x67f')]||_0x874df5['toString']()});});else return _0xa9620a[_0x41b76b('0x1166')]=!![],_0x2ec312[_0x41b76b('0x19f2')][_0x41b76b('0x1842')]({'id':_0xa9620a['id']},_0xa9620a)[_0x41b76b('0x1964')][_0x41b76b('0x173b')](function(){const _0x44abf6=_0x41b76b;_0x57b79d['success']({'title':_0x44abf6('0x27c0'),'msg':_0xa9620a[_0x44abf6('0x10ad')]?_0xa9620a['name']+'\x20has\x20been\x20installed!':''});})[_0x41b76b('0x103c')](function(_0x15baae){const _0x2f8714=_0x41b76b;if(_0x15baae[_0x2f8714('0x1e07')]&&_0x15baae[_0x2f8714('0x1e07')]['errors']&&_0x15baae[_0x2f8714('0x1e07')][_0x2f8714('0x1d4a')]['length']){_0x530cc4[_0x2f8714('0x1d4a')]=_0x15baae[_0x2f8714('0x1e07')]['errors']||[{'message':_0x15baae['toString'](),'type':'api.plugin.update'}];for(let _0x2062a6=0x0;_0x2062a6<_0x15baae[_0x2f8714('0x1e07')][_0x2f8714('0x1d4a')][_0x2f8714('0x543')];_0x2062a6++){_0x57b79d[_0x2f8714('0x15aa')]({'title':_0x15baae[_0x2f8714('0x1e07')][_0x2f8714('0x1d4a')][_0x2062a6][_0x2f8714('0x1810')],'msg':_0x15baae['data'][_0x2f8714('0x1d4a')][_0x2062a6][_0x2f8714('0x67f')]});}}else _0x57b79d[_0x2f8714('0x15aa')]({'title':_0x15baae[_0x2f8714('0x276f')]?_0x2f8714('0x137')+_0x15baae['status']+_0x2f8714('0x160c')+_0x15baae['statusText']:_0x2f8714('0x2659'),'msg':_0x15baae[_0x2f8714('0x1e07')]?JSON['stringify'](_0x15baae[_0x2f8714('0x1e07')][_0x2f8714('0x67f')]):_0x15baae['message']||_0x15baae[_0x2f8714('0x1b75')]()});});}function _0x4d1cfc(_0x2d04dd){const _0x385ec6=_0x44779c;_0x30fde5['go'](_0x385ec6('0x1941'),{'id':_0x2d04dd['id'],'plugin':_0x2d04dd,'crudPermissions':_0x530cc4[_0x385ec6('0x1dc1')]});}function _0x2f6fec(_0x29c058,_0x2386be){const _0x34ce5b=_0x44779c,_0x597ff3=_0x39924f[_0x34ce5b('0x1d02')]()[_0x34ce5b('0x20d6')](_0x34ce5b('0x1a33'))[_0x34ce5b('0xf8b')](_0x34ce5b('0x15b9')+(_0x29c058[_0x34ce5b('0x10ad')]||'plugin')+_0x34ce5b('0x24be')+_0x34ce5b('0x14ac'))[_0x34ce5b('0x217')](_0x34ce5b('0x254a'))[_0x34ce5b('0x21de')](_0x2386be)['ok']('OK')[_0x34ce5b('0x1e1f')](_0x34ce5b('0x468'));_0x39924f[_0x34ce5b('0x1cb7')](_0x597ff3)['then'](function(){_0x2b6def(_0x29c058);},function(){const _0xd5511f=_0x34ce5b;console[_0xd5511f('0xe37')](_0xd5511f('0x468'));});}function _0x2b6def(_0x2dc081){const _0x4d549e=_0x44779c;_0x2ec312[_0x4d549e('0x278f')][_0x4d549e('0x1d97')]()[_0x4d549e('0x1964')]['then'](function(_0x16a278){const _0x52cc84=_0x4d549e;if(!_0x16a278||!_0x16a278[_0x52cc84('0x6aa')])throw new Error(_0x52cc84('0x1053'));const _0x270381=_0x3c8d8a()[_0x52cc84('0x18ab')](_0x16a278['rows'],{'name':_0x2dc081['scriptName']});if(!_0x270381)throw new Error('No\x20corresponding\x20process\x20found');_0x2ec312[_0x52cc84('0x278f')]['update']({'id':_0x270381[_0x52cc84('0x2013')],'status':'stopped'})['$promise'][_0x52cc84('0x173b')](function(){const _0x1f4e83=_0x52cc84;_0x57b79d[_0x1f4e83('0xdfe')]({'title':_0x1f4e83('0x61f'),'msg':'Attached\x20pm2\x20process\x20successfully\x20stopped'});});})[_0x4d549e('0x103c')](function(_0x1c19c2){const _0xd9b637=_0x4d549e;if(_0x1c19c2[_0xd9b637('0x1e07')]&&_0x1c19c2[_0xd9b637('0x1e07')][_0xd9b637('0x1d4a')]&&_0x1c19c2[_0xd9b637('0x1e07')][_0xd9b637('0x1d4a')]['length']){_0x530cc4[_0xd9b637('0x1d4a')]=_0x1c19c2['data'][_0xd9b637('0x1d4a')]||[{'message':_0x1c19c2[_0xd9b637('0x1b75')](),'type':_0xd9b637('0x392')}];for(let _0x2cd25c=0x0;_0x2cd25c<_0x1c19c2['data'][_0xd9b637('0x1d4a')][_0xd9b637('0x543')];_0x2cd25c++){_0x57b79d[_0xd9b637('0x15aa')]({'title':_0x1c19c2['data'][_0xd9b637('0x1d4a')][_0x2cd25c][_0xd9b637('0x1810')],'msg':_0x1c19c2[_0xd9b637('0x1e07')][_0xd9b637('0x1d4a')][_0x2cd25c]['message']});}}else _0x57b79d[_0xd9b637('0x15aa')]({'title':_0x1c19c2[_0xd9b637('0x276f')]?_0xd9b637('0x137')+_0x1c19c2[_0xd9b637('0x276f')]+_0xd9b637('0x160c')+_0x1c19c2[_0xd9b637('0x2696')]:_0xd9b637('0x392'),'msg':_0x1c19c2['data']?JSON['stringify'](_0x1c19c2[_0xd9b637('0x1e07')]['message']):_0x1c19c2[_0xd9b637('0x67f')]||_0x1c19c2['toString']()});});}function _0x3ee365(_0x197c1e,_0x416c0e){const _0x4fa679=_0x44779c,_0x25f917=_0x39924f[_0x4fa679('0x1d02')]()['title']('Are\x20you\x20sure\x20want\x20to\x20restart\x20the\x20plugin\x20attached\x20process?')['htmlContent'](_0x4fa679('0x15b9')+(_0x197c1e[_0x4fa679('0x10ad')]||_0x4fa679('0x19f2'))+_0x4fa679('0x24be')+_0x4fa679('0xfc'))[_0x4fa679('0x217')]('restart\x20plugin\x20process')[_0x4fa679('0x21de')](_0x416c0e)['ok']('OK')[_0x4fa679('0x1e1f')](_0x4fa679('0x468'));_0x39924f[_0x4fa679('0x1cb7')](_0x25f917)[_0x4fa679('0x173b')](function(){_0x4402d7(_0x197c1e);},function(){const _0x4a900a=_0x4fa679;console['log'](_0x4a900a('0x468'));});}function _0x4402d7(_0x43cf50){const _0x59badd=_0x44779c;_0x2ec312[_0x59badd('0x278f')][_0x59badd('0x1d97')]()[_0x59badd('0x1964')][_0x59badd('0x173b')](function(_0x51e66e){const _0x4867f7=_0x59badd;if(!_0x51e66e||!_0x51e66e['rows'])throw new Error(_0x4867f7('0x1053'));const _0x4fd8ec=_0x3c8d8a()['find'](_0x51e66e[_0x4867f7('0x6aa')],{'name':_0x43cf50[_0x4867f7('0x110f')]});if(!_0x4fd8ec)throw new Error(_0x4867f7('0x12dd'));_0x2ec312[_0x4867f7('0x278f')][_0x4867f7('0x1842')]({'id':_0x4fd8ec[_0x4867f7('0x2013')],'status':_0x4867f7('0xc7a')})['$promise'][_0x4867f7('0x173b')](function(){const _0x15d4b1=_0x4867f7;_0x57b79d[_0x15d4b1('0xdfe')]({'title':_0x15d4b1('0xffc'),'msg':'Attached\x20pm2\x20process\x20successfully\x20restarted'});});})[_0x59badd('0x103c')](function(_0x1d6c0c){const _0x76f3=_0x59badd;if(_0x1d6c0c['data']&&_0x1d6c0c['data']['errors']&&_0x1d6c0c['data']['errors']['length']){_0x530cc4['errors']=_0x1d6c0c[_0x76f3('0x1e07')][_0x76f3('0x1d4a')]||[{'message':_0x1d6c0c['toString'](),'type':_0x76f3('0x392')}];for(let _0x3a968f=0x0;_0x3a968f<_0x1d6c0c[_0x76f3('0x1e07')]['errors'][_0x76f3('0x543')];_0x3a968f++){_0x57b79d['error']({'title':_0x1d6c0c['data']['errors'][_0x3a968f][_0x76f3('0x1810')],'msg':_0x1d6c0c[_0x76f3('0x1e07')][_0x76f3('0x1d4a')][_0x3a968f][_0x76f3('0x67f')]});}}else _0x57b79d[_0x76f3('0x15aa')]({'title':_0x1d6c0c[_0x76f3('0x276f')]?_0x76f3('0x137')+_0x1d6c0c[_0x76f3('0x276f')]+'\x20-\x20'+_0x1d6c0c[_0x76f3('0x2696')]:_0x76f3('0x392'),'msg':_0x1d6c0c[_0x76f3('0x1e07')]?JSON[_0x76f3('0x100b')](_0x1d6c0c['data'][_0x76f3('0x67f')]):_0x1d6c0c[_0x76f3('0x67f')]||_0x1d6c0c[_0x76f3('0x1b75')]()});});}function _0x44bede(_0x4a7b40){const _0x3da16c=_0x44779c;return _0x2ec312[_0x3da16c('0x19f2')][_0x3da16c('0xfce')]({'id':_0x4a7b40['id']})[_0x3da16c('0x1964')][_0x3da16c('0x173b')](function(_0x195250){const _0x134b36=_0x3da16c,_0x512e39=[_0x195250['buffer']];let _0x5e1bd7=_0x134b36('0xfce');const _0x3436a6=new Blob(_0x512e39,{'type':_0x195250[_0x134b36('0x1810')]});_0x5e1bd7=_0x4a7b40[_0x134b36('0x10ad')][_0x134b36('0x166c')]('\x20','_')['toLowerCase']()+'.zip';const _0x51720d=window['document']['createElement']('a');_0x51720d[_0x134b36('0x11c3')](_0x134b36('0x165c'),URL[_0x134b36('0x1466')](_0x3436a6)),_0x51720d[_0x134b36('0x11c3')]('download',_0x5e1bd7),document[_0x134b36('0x1a5')][_0x134b36('0x1f8d')](_0x51720d),_0x51720d[_0x134b36('0x3cb')]();})[_0x3da16c('0x103c')](function(_0x5779cf){const _0x4ed3af=_0x3da16c;if(_0x5779cf['data']&&_0x5779cf['data'][_0x4ed3af('0x1d4a')]&&_0x5779cf[_0x4ed3af('0x1e07')][_0x4ed3af('0x1d4a')][_0x4ed3af('0x543')])for(let _0x3420fd=0x0;_0x3420fd<_0x5779cf['data']['errors'][_0x4ed3af('0x543')];_0x3420fd++){_0x57b79d[_0x4ed3af('0x15aa')]({'title':_0x5779cf[_0x4ed3af('0x1e07')]['errors'][_0x3420fd]['type'],'msg':_0x5779cf[_0x4ed3af('0x1e07')][_0x4ed3af('0x1d4a')][_0x3420fd][_0x4ed3af('0x67f')]});}else _0x57b79d['error']({'title':_0x5779cf['status']?_0x4ed3af('0x137')+_0x5779cf[_0x4ed3af('0x276f')]+_0x4ed3af('0x160c')+_0x5779cf[_0x4ed3af('0x2696')]:_0x4ed3af('0x31d'),'msg':_0x5779cf[_0x4ed3af('0x1e07')]?JSON[_0x4ed3af('0x100b')](_0x5779cf[_0x4ed3af('0x1e07')]['message']):_0x5779cf[_0x4ed3af('0x1b75')]()});});}function _0x1f0cf5(_0x4af8f4,_0x4a7e87){const _0x49291b=_0x44779c,_0xa2e9e0=_0x39924f[_0x49291b('0x1d02')]()[_0x49291b('0x20d6')](_0x49291b('0x1dab'))[_0x49291b('0xf8b')](_0x49291b('0x15b9')+(_0x4af8f4[_0x49291b('0x10ad')]||_0x49291b('0x19f2'))+_0x49291b('0x24be')+_0x49291b('0x2261'))[_0x49291b('0x217')](_0x49291b('0x1e2'))[_0x49291b('0x21de')](_0x4a7e87)['ok']('OK')['cancel']('CANCEL');_0x39924f[_0x49291b('0x1cb7')](_0xa2e9e0)[_0x49291b('0x173b')](function(){_0x43838e(_0x4af8f4);},function(){const _0x462592=_0x49291b;console[_0x462592('0xe37')](_0x462592('0x468'));});}function _0x43838e(_0x343cc2){const _0x313621=_0x44779c;return _0x343cc2[_0x313621('0x1810')]===_0x313621('0x196')&&_0x2ec312[_0x313621('0x278f')][_0x313621('0x1d97')]()['$promise'][_0x313621('0x173b')](function(_0x25f522){const _0x10ff49=_0x313621;if(!_0x25f522||!_0x25f522[_0x10ff49('0x6aa')])throw new Error(_0x10ff49('0x1053'));const _0x201da9=_0x3c8d8a()[_0x10ff49('0x18ab')](_0x25f522[_0x10ff49('0x6aa')],{'name':_0x343cc2['scriptName']});if(!_0x201da9)throw new Error(_0x10ff49('0x12dd'));_0x2ec312[_0x10ff49('0x278f')][_0x10ff49('0x15e8')]({'id':_0x201da9[_0x10ff49('0x2013')],'name':_0x343cc2[_0x10ff49('0x110f')]})[_0x10ff49('0x1964')];})[_0x313621('0x103c')](function(_0x1ce625){const _0x475db6=_0x313621;_0x57b79d[_0x475db6('0x15aa')]({'title':_0x1ce625['status']?_0x475db6('0x137')+_0x1ce625[_0x475db6('0x276f')]+_0x475db6('0x160c')+_0x1ce625[_0x475db6('0x2696')]:_0x475db6('0x1a2d'),'msg':_0x1ce625[_0x475db6('0x1e07')]?JSON[_0x475db6('0x100b')](_0x1ce625[_0x475db6('0x1e07')][_0x475db6('0x67f')]):_0x1ce625['message']||_0x1ce625[_0x475db6('0x1b75')]()});}),_0x343cc2[_0x313621('0x1166')]=![],_0x2ec312[_0x313621('0x19f2')][_0x313621('0x1842')]({'id':_0x343cc2['id']},_0x343cc2)[_0x313621('0x1964')]['then'](function(){const _0x113928=_0x313621;_0x57b79d[_0x113928('0xdfe')]({'title':_0x113928('0x196a'),'msg':_0x343cc2[_0x113928('0x10ad')]?_0x343cc2[_0x113928('0x10ad')]+_0x113928('0x3de'):''});})[_0x313621('0x103c')](function(_0x1851f6){const _0x1a4a5c=_0x313621;if(_0x1851f6[_0x1a4a5c('0x1e07')]&&_0x1851f6['data'][_0x1a4a5c('0x1d4a')]&&_0x1851f6[_0x1a4a5c('0x1e07')]['errors']['length']){_0x530cc4[_0x1a4a5c('0x1d4a')]=_0x1851f6[_0x1a4a5c('0x1e07')][_0x1a4a5c('0x1d4a')]||[{'message':_0x1851f6['toString'](),'type':'api.plugin.update'}];for(let _0x2c0f9f=0x0;_0x2c0f9f<_0x1851f6[_0x1a4a5c('0x1e07')][_0x1a4a5c('0x1d4a')][_0x1a4a5c('0x543')];_0x2c0f9f++){_0x57b79d[_0x1a4a5c('0x15aa')]({'title':_0x1851f6['data'][_0x1a4a5c('0x1d4a')][_0x2c0f9f][_0x1a4a5c('0x1810')],'msg':_0x1851f6[_0x1a4a5c('0x1e07')]['errors'][_0x2c0f9f][_0x1a4a5c('0x67f')]});}}else _0x57b79d[_0x1a4a5c('0x15aa')]({'title':_0x1851f6[_0x1a4a5c('0x276f')]?'API:'+_0x1851f6[_0x1a4a5c('0x276f')]+_0x1a4a5c('0x160c')+_0x1851f6[_0x1a4a5c('0x2696')]:'api.plugin.update','msg':_0x1851f6['data']?JSON[_0x1a4a5c('0x100b')](_0x1851f6[_0x1a4a5c('0x1e07')]['message']):_0x1851f6[_0x1a4a5c('0x67f')]||_0x1851f6[_0x1a4a5c('0x1b75')]()});});}function _0x4602aa(_0x331f4d,_0x39f8fa){const _0x33674f=_0x44779c,_0x56a9f2=_0x39924f[_0x33674f('0x1d02')]()[_0x33674f('0x20d6')](_0x33674f('0x5bb')+_0x3c8d8a()[_0x33674f('0x10e')](_0x33674f('0x19f2'))+'?')[_0x33674f('0xf8b')](''+(_0x331f4d['name']||_0x33674f('0x19f2'))+_0x33674f('0x24be')+_0x33674f('0xd23'))[_0x33674f('0x217')](_0x33674f('0x37f'))[_0x33674f('0x21de')](_0x39f8fa)['ok']('OK')[_0x33674f('0x1e1f')](_0x33674f('0x468'));_0x39924f['show'](_0x56a9f2)[_0x33674f('0x173b')](function(){_0x2779aa(_0x331f4d);},function(){const _0x3c3966=_0x33674f;console[_0x3c3966('0xe37')]('CANCEL');});}let _0x2ea609=!![],_0x306c11=0x1;_0x112f85[_0x44779c('0x1bdb')](_0x44779c('0x157b'),function(_0x43b7f1,_0x7f98e0){const _0x3cb933=_0x44779c;_0x2ea609?_0xc1737c(function(){_0x2ea609=![];}):(!_0x7f98e0&&(_0x306c11=_0x530cc4[_0x3cb933('0xc49')][_0x3cb933('0x182e')]),_0x43b7f1!==_0x7f98e0&&(_0x530cc4['query'][_0x3cb933('0x182e')]=0x1),!_0x43b7f1&&(_0x530cc4[_0x3cb933('0xc49')]['page']=_0x306c11),_0x530cc4[_0x3cb933('0x2441')]());});function _0x1b225c(_0x4c4423){const _0x1cb77c=_0x44779c;_0x530cc4[_0x1cb77c('0x2689')]=_0x4c4423||{'count':0x0,'rows':[]};}function _0x75ac05(){const _0x19963e=_0x44779c;_0x530cc4['query']['offset']=(_0x530cc4[_0x19963e('0xc49')][_0x19963e('0x182e')]-0x1)*_0x530cc4['query']['limit'],_0x97485b[_0x19963e('0x1b4e')](_0x19963e('0x79b'))?_0x530cc4['promise']=_0x2ec312['plugin'][_0x19963e('0x1d97')](_0x530cc4[_0x19963e('0xc49')],_0x1b225c)['$promise']:(_0x530cc4[_0x19963e('0xc49')]['id']=_0x530cc4[_0x19963e('0x257b')]['id'],_0x530cc4[_0x19963e('0xc49')][_0x19963e('0x17c9')]=_0x19963e('0x1e18'),_0x530cc4[_0x19963e('0x2219')]=_0x2ec312[_0x19963e('0x257b')][_0x19963e('0x135b')](_0x530cc4[_0x19963e('0xc49')],_0x1b225c)[_0x19963e('0x1964')]);}function _0x5978a9(_0xc4e238,_0x389f4f){const _0x57c28d=_0x44779c;_0x39924f['show']({'controller':_0x57c28d('0x19e6'),'controllerAs':'vm','templateUrl':_0x1086d5,'parent':angular[_0x57c28d('0xb6d')](_0x39123f[_0x57c28d('0x1a5')]),'targetEvent':_0xc4e238,'clickOutsideToClose':!![],'locals':{'plugin':_0x389f4f,'plugins':_0x530cc4['plugins'][_0x57c28d('0x6aa')],'license':_0x530cc4[_0x57c28d('0x1a29')],'setting':_0x530cc4[_0x57c28d('0x251')],'crudPermissions':_0x530cc4['crudPermissions']}});}function _0x2779aa(_0x2562e4){const _0x58a80b=_0x44779c;_0x2562e4[_0x58a80b('0x1166')]&&_0x2562e4[_0x58a80b('0x1810')]==_0x58a80b('0x196')&&_0x2ec312[_0x58a80b('0x278f')][_0x58a80b('0x1d97')]()['$promise'][_0x58a80b('0x173b')](function(_0x27a9e4){const _0x48f093=_0x58a80b;if(!_0x27a9e4||!_0x27a9e4[_0x48f093('0x6aa')])return _0x57b79d['error']({'title':_0x48f093('0xd8c'),'msg':_0x48f093('0x1053')});const _0x587b5c=_0x3c8d8a()[_0x48f093('0x18ab')](_0x27a9e4[_0x48f093('0x6aa')],{'name':_0x2562e4[_0x48f093('0x110f')]});if(!_0x587b5c){console['log'](_0x48f093('0x712'),_0x2562e4[_0x48f093('0x110f')]);return;}_0x2ec312['pm2'][_0x48f093('0x15e8')]({'id':_0x587b5c['pm_id'],'name':_0x2562e4['scriptName']})[_0x48f093('0x1964')];})['catch'](function(){const _0x36d569=_0x58a80b;return _0x57b79d[_0x36d569('0x15aa')]({'title':_0x36d569('0x48a'),'msg':_0x36d569('0x1a18')});}),_0x2ec312[_0x58a80b('0x19f2')][_0x58a80b('0x15e8')]({'id':_0x2562e4['id']})[_0x58a80b('0x1964')][_0x58a80b('0x173b')](function(){const _0x4fc27f=_0x58a80b;_0x3c8d8a()['remove'](_0x530cc4[_0x4fc27f('0x2689')][_0x4fc27f('0x6aa')],{'id':_0x2562e4['id']}),_0x530cc4[_0x4fc27f('0x2689')][_0x4fc27f('0x1a2f')]-=0x1,!_0x530cc4[_0x4fc27f('0x2689')][_0x4fc27f('0x6aa')][_0x4fc27f('0x543')]&&_0x530cc4['getPlugins'](),_0x57b79d['success']({'title':_0x3c8d8a()['startCase'](_0x4fc27f('0x1e49'))+_0x4fc27f('0x1c5e'),'msg':_0x2562e4['name']?_0x2562e4[_0x4fc27f('0x10ad')]+'\x20has\x20been\x20deleted!':''});})[_0x58a80b('0x103c')](function(_0x50b693){const _0x2e3a96=_0x58a80b;if(_0x50b693[_0x2e3a96('0x1e07')]&&_0x50b693[_0x2e3a96('0x1e07')]['errors']&&_0x50b693[_0x2e3a96('0x1e07')][_0x2e3a96('0x1d4a')][_0x2e3a96('0x543')]){_0x530cc4[_0x2e3a96('0x1d4a')]=_0x50b693[_0x2e3a96('0x1e07')]['errors']||[{'message':_0x50b693[_0x2e3a96('0x1b75')](),'type':_0x2e3a96('0x1098')}];for(let _0x185be0=0x0;_0x185be0<_0x50b693[_0x2e3a96('0x1e07')][_0x2e3a96('0x1d4a')][_0x2e3a96('0x543')];_0x185be0++){_0x57b79d[_0x2e3a96('0x15aa')]({'title':_0x50b693['data']['errors'][_0x185be0][_0x2e3a96('0x1810')],'msg':_0x50b693['data'][_0x2e3a96('0x1d4a')][_0x185be0][_0x2e3a96('0x67f')]});}}else _0x57b79d['error']({'title':_0x50b693[_0x2e3a96('0x276f')]?_0x2e3a96('0x137')+_0x50b693[_0x2e3a96('0x276f')]+_0x2e3a96('0x160c')+_0x50b693[_0x2e3a96('0x2696')]:'SYSTEM:DELETEplugin','msg':_0x50b693['data']?JSON[_0x2e3a96('0x100b')](_0x50b693['data'][_0x2e3a96('0x67f')]):_0x50b693['message']||_0x50b693[_0x2e3a96('0x1b75')]()});});}function _0xf41942(){const _0x34ff9b=_0x44779c,_0x28be47=angular[_0x34ff9b('0x2e3')](_0x530cc4[_0x34ff9b('0x864')]);return _0x530cc4[_0x34ff9b('0x864')]=[],_0x28be47;}function _0x24ad86(_0x2c3f67){const _0x75feb3=_0x44779c,_0x449475=_0x39924f['confirm']()[_0x75feb3('0x20d6')](_0x75feb3('0x1173'))[_0x75feb3('0xf8b')](_0x75feb3('0x15b9')+_0x530cc4[_0x75feb3('0x864')]['length']+_0x75feb3('0xcb4')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x75feb3('0x1bbd'))['targetEvent'](_0x2c3f67)['ok']('OK')[_0x75feb3('0x1e1f')](_0x75feb3('0x468'));_0x39924f[_0x75feb3('0x1cb7')](_0x449475)[_0x75feb3('0x173b')](function(){const _0x3fd699=_0x75feb3;_0x530cc4[_0x3fd699('0x864')][_0x3fd699('0xa6a')](function(_0x57b5d1){_0x2779aa(_0x57b5d1);}),_0x530cc4[_0x3fd699('0x864')]=[];});}function _0x103d6d(){const _0x5932e7=_0x44779c;_0x530cc4[_0x5932e7('0x864')]=[];}function _0x5cfbcd(){const _0x27b7c3=_0x44779c;_0x530cc4[_0x27b7c3('0x864')]=_0x530cc4[_0x27b7c3('0x2689')][_0x27b7c3('0x6aa')];}function _0x3bae9e(_0x5bd488){const _0xc7ca5a=_0x44779c;_0x39924f[_0xc7ca5a('0x1cb7')]({'controller':_0xc7ca5a('0x11db'),'controllerAs':'vm','templateUrl':_0xc3447,'parent':angular[_0xc7ca5a('0xb6d')](_0x39123f[_0xc7ca5a('0x1a5')]),'targetEvent':_0x5bd488,'clickOutsideToClose':!![],'locals':{'plugins':_0x530cc4[_0xc7ca5a('0x2689')][_0xc7ca5a('0x6aa')]}});}}const _0x402cba=_0x28a44c;_0x3daf5d['$inject']=[_0x566993('0x2166'),_0x566993('0x1fe5'),'toasty',_0x566993('0x2689'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x3daf5d(_0x5d8209,_0x2eac13,_0x2dfe32,_0x28d8a2,_0x17a705,_0x99ff98){const _0x40cb0f=_0x566993,_0x36acea=this,_0x11be02=0x2,_0x2f379b=_0x11be02*0x400*0x400;_0x36acea[_0x40cb0f('0x155f')]=_0x99ff98[_0x40cb0f('0x14d4')](),_0x36acea[_0x40cb0f('0x1d4a')]=[],_0x36acea['title']=_0x40cb0f('0x63d'),_0x36acea[_0x40cb0f('0x2689')]=_0x28d8a2,_0x36acea[_0x40cb0f('0x27e8')]=[],_0x36acea[_0x40cb0f('0x21f7')]=_0x40cb0f('0x2741'),_0x36acea[_0x40cb0f('0x19f2')]={},_0x36acea['ngFlowOptions']={'maxChunkRetries':0x1,'chunkSize':_0x2f379b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x40cb0f('0x1469')},_0x36acea[_0x40cb0f('0x428')]={'flow':{}},_0x36acea['dropping']=![],_0x36acea[_0x40cb0f('0x23a9')]=_0x24cbb0,_0x36acea[_0x40cb0f('0xb1e')]=_0x1cc9e5,_0x36acea[_0x40cb0f('0x12b9')]=_0x394734,_0x36acea[_0x40cb0f('0x31f')]=_0x23dcc4,_0x36acea[_0x40cb0f('0x1ff8')]=_0x33796a,_0x36acea[_0x40cb0f('0x18e2')]=_0x2e3ea7;function _0x24cbb0(_0x2f00fd){const _0x4b64ea=_0x40cb0f,_0x3b4650=[_0x4b64ea('0x2a6')];if(!_0x3c8d8a()[_0x4b64ea('0x2814')](_0x3b4650,_0x2f00fd[_0x4b64ea('0x131a')]()))return _0x2dfe32['error']({'title':_0x4b64ea('0xc5d')+_0x2f00fd[_0x4b64ea('0x131a')](),'msg':_0x4b64ea('0x10cc')+_0x3b4650[_0x4b64ea('0x2259')]()}),![];if(_0x2f00fd['size']>_0x2f379b)return _0x2dfe32[_0x4b64ea('0x15aa')]({'title':_0x4b64ea('0xd1e'),'msg':_0x4b64ea('0xdfc')+_0x11be02+'MB'}),![];return _0x36acea[_0x4b64ea('0x19f2')]={'id':_0x2f00fd[_0x4b64ea('0x1b98')],'file':_0x2f00fd},_0x36acea[_0x4b64ea('0x27e8')][_0x4b64ea('0x1377')](_0x36acea[_0x4b64ea('0x19f2')]),!![];}function _0x1cc9e5(){const _0x3450af=_0x40cb0f;_0x36acea['uploadState']=_0x3450af('0x2175'),_0x36acea[_0x3450af('0x428')][_0x3450af('0x1789')][_0x3450af('0x2431')][_0x3450af('0x1670')]={'X-Requested-With':_0x3450af('0x12c9'),'Authorization':'Bearer\x20'+_0x5d8209[_0x3450af('0x1d97')]('motion.token')},_0x36acea[_0x3450af('0x428')][_0x3450af('0x1789')][_0x3450af('0x2431')][_0x3450af('0xc49')]={'role':_0x36acea[_0x3450af('0x155f')][_0x3450af('0x14a')],'userProfileId':_0x36acea['currentUser'][_0x3450af('0x1946')]},_0x36acea[_0x3450af('0x428')][_0x3450af('0x1789')]['upload']();}function _0x394734(_0x2ffa37,_0x765f0d){const _0x26a395=_0x40cb0f;_0x36acea[_0x26a395('0x2689')][_0x26a395('0x1377')](JSON['parse'](_0x765f0d)),angular[_0x26a395('0xa6a')](_0x36acea['uploadPlugins'],function(_0x32b5f4){const _0x3c77fa=_0x26a395;if(_0x32b5f4['id']===_0x2ffa37['uniqueIdentifier']){const _0x39e342=new FileReader();_0x39e342[_0x3c77fa('0x427')](_0x32b5f4[_0x3c77fa('0x2522')][_0x3c77fa('0x2522')]),_0x39e342['onload']=function(_0x1efa91){const _0x261b05=_0x3c77fa;_0x32b5f4[_0x261b05('0xd1')]=_0x1efa91[_0x261b05('0x235')]['result'];};}});}function _0x23dcc4(){const _0x36507f=_0x40cb0f;_0x36acea[_0x36507f('0x428')]['flow']['cancel'](),_0x2dfe32[_0x36507f('0x15aa')]({'title':_0x36507f('0xf2b'),'msg':'Cannot\x20upload\x20the\x20plugin'}),_0x36acea[_0x36507f('0x21f7')]=_0x36507f('0x2780');}function _0x33796a(){const _0x52e10e=_0x40cb0f;_0x36acea['uploadState']!=='failed'&&(_0x36acea[_0x52e10e('0x21f7')]=_0x52e10e('0x1fb1'),_0x2dfe32[_0x52e10e('0xdfe')]({'title':_0x52e10e('0xcb'),'msg':_0x36acea[_0x52e10e('0x19f2')][_0x52e10e('0x2522')][_0x52e10e('0x10ad')]+'\x20uploaded\x20successfully'}));}function _0x2e3ea7(){const _0x3dcc77=_0x40cb0f;_0x2eac13[_0x3dcc77('0x1cf4')]();}}const _0x2acc2c=_0x3daf5d;_0x4cc131[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x4cc131(_0x291077,_0x2e838c){const _0x4b18d7=_0x566993;_0x291077[_0x4b18d7('0x1a49')](_0x4b18d7('0x180c'),{'abstract':!![],'url':'/marketplace'})[_0x4b18d7('0x1a49')]('app.marketplace.plugins',{'url':_0x4b18d7('0x9b2'),'views':{'content@app':{'templateUrl':_0x38e25e,'controller':_0x4b18d7('0x1bbc')}},'resolve':{'plugins':['apiResolver','Auth',function(_0x65423f,_0x1f2021){const _0x2a685e=_0x4b18d7;return _0x1f2021[_0x2a685e('0x1b4e')](_0x2a685e('0x79b'))?_0x65423f[_0x2a685e('0x155b')](_0x2a685e('0x421'),{'fields':_0x2a685e('0xeb'),'sort':'name','limit':0xa,'offset':0x0}):_0x65423f[_0x2a685e('0x155b')](_0x2a685e('0x14b3'),{'id':_0x1f2021['getCurrentUser']()[_0x2a685e('0x1946')],'section':'Plugins','fields':_0x2a685e('0xeb'),'sort':'name','limit':0xa,'offset':0x0});}],'userProfile':[_0x4b18d7('0x2401'),'Auth',function(_0x47bb52,_0x41e2fd){const _0x5ef9fc=_0x4b18d7;return _0x41e2fd[_0x5ef9fc('0x1b4e')]('admin')?null:_0x47bb52['resolve']('userProfile@get',{'fields':_0x5ef9fc('0x19dd'),'id':_0x41e2fd['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x4b18d7('0x1600'),function(_0x264cf5,_0x214b98){const _0x2f91e4=_0x4b18d7;return _0x214b98['hasRole'](_0x2f91e4('0x79b'))?null:_0x264cf5[_0x2f91e4('0x155b')](_0x2f91e4('0x40'),{'fields':_0x2f91e4('0x1348'),'userProfileId':_0x214b98[_0x2f91e4('0x14d4')]()[_0x2f91e4('0x1946')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x4b18d7('0x2137')})['state']('app.marketplace.plugins.edit',{'url':_0x4b18d7('0xb4c'),'params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3ad343,'controller':'MarketplacePluginController\x20as\x20vm'}},'resolve':{'plugin':[_0x4b18d7('0x2401'),_0x4b18d7('0x1caf'),function(_0x320927,_0x35bcf5){const _0x19cad9=_0x4b18d7;return _0x320927[_0x19cad9('0x155b')](_0x19cad9('0x421'),{'fields':_0x19cad9('0xeb'),'id':_0x35bcf5['id']});}],'userProfileSection':[_0x4b18d7('0x2401'),_0x4b18d7('0x1600'),function(_0x1edaa4,_0x2f4fab){const _0x48db18=_0x4b18d7;return _0x1edaa4[_0x48db18('0x155b')](_0x48db18('0x40'),{'fields':_0x48db18('0x1348'),'userProfileId':_0x2f4fab[_0x48db18('0x14d4')]()[_0x48db18('0x1946')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x4b18d7('0x2137')}),_0x2e838c[_0x4b18d7('0x1b1a')]('app/main/apps/marketplace');}angular[_0x566993('0x22c4')](_0x566993('0x180c'),[_0x566993('0x2a9'),_0x566993('0x1dd5'),'md.data.table',_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),_0x566993('0x8a3'),'mdPickers',_0x566993('0x1698'),_0x566993('0x269'),_0x566993('0x1459'),'ngclipboard',_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),_0x566993('0xcfd'),_0x566993('0x1eab'),_0x566993('0x2392')])[_0x566993('0xea9')](_0x4cc131)[_0x566993('0x1e65')](_0x566993('0x19e6'),_0x36f136)[_0x566993('0x1e65')](_0x566993('0x592'),_0x11c94e)[_0x566993('0x1e65')](_0x566993('0xaa0'),_0x402cba)[_0x566993('0x1e65')](_0x566993('0x11db'),_0x2acc2c);const _0x3cff33=_0x21a6a1['p']+'src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin.html';_0x789452[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x66f'),_0x566993('0xb5a'),_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1600')];function _0x789452(_0xbea374,_0x14d82a,_0x5b38df,_0x34299b,_0x386d0d,_0x48ccf9){const _0x5322ee=_0x566993,_0x46ad6b=this;_0x46ad6b[_0x5322ee('0x155f')]=_0x48ccf9[_0x5322ee('0x14d4')](),_0x46ad6b[_0x5322ee('0x19f2')]={},_0x46ad6b['getTrustedURL']=_0x4c622b,_0x34299b[_0x5322ee('0x19f2')][_0x5322ee('0x1d97')]({'id':_0xbea374[_0x5322ee('0x197a')]['id']})[_0x5322ee('0x1964')]['then'](function(_0x1d64d2){const _0x346562=_0x5322ee;if(_0x1d64d2)return _0x46ad6b[_0x346562('0x19f2')]=_0x1d64d2,_0x34299b[_0x346562('0x19f2')]['get']({'id':_0x46ad6b[_0x346562('0x19f2')]['id']})['$promise'];})[_0x5322ee('0x103c')](function(){const _0x238565=_0x5322ee;_0x46ad6b[_0x238565('0x19f2')]=undefined;});function _0x4c622b(){const _0x5757f6=_0x5322ee;return _0x5b38df[_0x5757f6('0xb94')](_0x46ad6b['plugin'][_0x5757f6('0x1510')]);}}const _0x5d0c80=_0x789452;_0xb1163[_0x566993('0x17bb')]=['$stateProvider'];function _0xb1163(_0x400c76){const _0x10d79a=_0x566993;_0x400c76[_0x10d79a('0x1a49')](_0x10d79a('0x1980'),{'url':_0x10d79a('0xd1b'),'views':{'content@app':{'templateUrl':_0x3cff33,'controller':_0x10d79a('0x2594')}},'resolve':{},'authenticate':!![],'bodyClass':_0x10d79a('0x2689')});}angular[_0x566993('0x22c4')](_0x566993('0x1980'),[])['config'](_0xb1163)[_0x566993('0x1e65')]('PluginController',_0x5d0c80),_0x681286['$inject']=['$stateProvider','$translatePartialLoaderProvider'];function _0x681286(_0x43c315,_0x4e3c93){const _0x9715d=_0x566993;_0x43c315[_0x9715d('0x1a49')](_0x9715d('0x22b5'),{'abstract':!![],'url':_0x9715d('0x9b2')}),_0x4e3c93[_0x9715d('0x1b1a')](_0x9715d('0x2610'));}angular[_0x566993('0x22c4')](_0x566993('0x22b5'),[_0x566993('0x2a9'),'ngPassword',_0x566993('0x1663'),_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),'ngAria',_0x566993('0x8a3'),_0x566993('0x1146'),'mwFormBuilder',_0x566993('0x269'),_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),'material.components.expansionPanels','chart.js','angular.filter',_0x566993('0x1980')])['config'](_0x681286);const _0x1da061=_0x21a6a1['p']+_0x566993('0x240a');_0xd7afd0[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q','$translate',_0x566993('0x1558'),_0x566993('0x12f1'),_0x566993('0x195a'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),'setting',_0x566993('0x1dc1')];function _0xd7afd0(_0x2fc7a5,_0x185599,_0x2a05f5,_0x36b2d2,_0x569114,_0x46cc0c,_0x2393fd,_0x1946e7,_0x5d4548,_0x33336a,_0x20941b,_0x59e865,_0x1ab429,_0x333e89){const _0x1e2813=_0x566993,_0x4a7e42=this;_0x4a7e42[_0x1e2813('0x155f')]=_0x20941b['getCurrentUser'](),_0x4a7e42[_0x1e2813('0x1d4a')]=[],_0x4a7e42['setting']=_0x1ab429,_0x4a7e42[_0x1e2813('0x1a29')]=_0x59e865,_0x4a7e42[_0x1e2813('0x1dc1')]=_0x333e89,_0x4a7e42[_0x1e2813('0xb0')]={},_0x4a7e42[_0x1e2813('0x644')]=_0x4a7e42[_0x1e2813('0x251')]&&_0x4a7e42[_0x1e2813('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4a7e42[_0x1e2813('0x20d6')]=_0x1e2813('0x130c'),_0x4a7e42['screenRecording']=angular[_0x1e2813('0x2e3')](_0x5d4548),_0x4a7e42[_0x1e2813('0x12f1')]=_0x1946e7,_0x4a7e42[_0x1e2813('0x80')]=![];!_0x4a7e42['screenRecording']&&(_0x4a7e42['screenRecording']={},_0x4a7e42[_0x1e2813('0x20d6')]=_0x1e2813('0x1be8'),_0x4a7e42[_0x1e2813('0x80')]=!![]);_0x4a7e42['addNewscreenRecording']=_0x5eb8a4,_0x4a7e42[_0x1e2813('0x1d01')]=_0xbe8d42,_0x4a7e42[_0x1e2813('0xe42')]=_0x1ee8b6,_0x4a7e42['getDateFromString']=_0x31efa0,_0x4a7e42['closeDialog']=_0x414435,_0x33336a[_0x1e2813('0x166f')][_0x1e2813('0x1d97')]({'fields':_0x1e2813('0x112d'),'sort':_0x1e2813('0x10ad'),'nolimit':_0x1e2813('0x799')})[_0x1e2813('0x1964')]['then'](function(_0x12f6b1){const _0x133e04=_0x1e2813;_0x4a7e42[_0x133e04('0x1e14')]=_0x12f6b1[_0x133e04('0x6aa')]||[];})[_0x1e2813('0x103c')](function(_0x142b9a){const _0x581f96=_0x1e2813;_0x2393fd['error']({'title':_0x142b9a[_0x581f96('0x276f')]?'API:'+_0x142b9a[_0x581f96('0x276f')]+'\x20-\x20'+_0x142b9a[_0x581f96('0x2696')]:'SYSTEM:GET_USERS','msg':_0x142b9a[_0x581f96('0x1e07')]?JSON[_0x581f96('0x100b')](_0x142b9a['data']):_0x142b9a[_0x581f96('0x1b75')]()});});function _0x5eb8a4(){const _0x3c3fca=_0x1e2813;_0x4a7e42[_0x3c3fca('0x1d4a')]=[],_0x33336a[_0x3c3fca('0x195a')][_0x3c3fca('0x1195')](_0x4a7e42['screenRecording'])[_0x3c3fca('0x1964')][_0x3c3fca('0x173b')](function(_0x45fc32){const _0x29f9ef=_0x3c3fca;_0x4a7e42['screenRecordings'][_0x29f9ef('0x1377')](_0x45fc32[_0x29f9ef('0xf1f')]()),_0x2393fd[_0x29f9ef('0xdfe')]({'title':_0x29f9ef('0x78c'),'msg':_0x4a7e42[_0x29f9ef('0x195a')]['name']?_0x4a7e42[_0x29f9ef('0x195a')]['name']+_0x29f9ef('0x209a'):''}),_0x414435(_0x45fc32);})[_0x3c3fca('0x103c')](function(_0xe95706){const _0x2ab3ab=_0x3c3fca;if(_0xe95706[_0x2ab3ab('0x1e07')]&&_0xe95706[_0x2ab3ab('0x1e07')][_0x2ab3ab('0x1d4a')]&&_0xe95706[_0x2ab3ab('0x1e07')][_0x2ab3ab('0x1d4a')]['length']){_0x4a7e42[_0x2ab3ab('0x1d4a')]=_0xe95706['data'][_0x2ab3ab('0x1d4a')]||[{'message':_0xe95706[_0x2ab3ab('0x1b75')](),'type':_0x2ab3ab('0x203f')}];for(let _0x3697bf=0x0;_0x3697bf<_0xe95706[_0x2ab3ab('0x1e07')][_0x2ab3ab('0x1d4a')]['length'];_0x3697bf+=0x1){_0x2393fd[_0x2ab3ab('0x15aa')]({'title':_0xe95706['data'][_0x2ab3ab('0x1d4a')][_0x3697bf][_0x2ab3ab('0x1810')],'msg':_0xe95706['data'][_0x2ab3ab('0x1d4a')][_0x3697bf][_0x2ab3ab('0x67f')]});}}else _0x2393fd['error']({'title':_0xe95706['status']?_0x2ab3ab('0x137')+_0xe95706[_0x2ab3ab('0x276f')]+_0x2ab3ab('0x160c')+_0xe95706[_0x2ab3ab('0x2696')]:_0x2ab3ab('0x203f'),'msg':_0xe95706[_0x2ab3ab('0x1e07')]?JSON['stringify'](_0xe95706[_0x2ab3ab('0x1e07')][_0x2ab3ab('0x67f')]):_0xe95706['toString']()});});}function _0xbe8d42(){const _0x8b1fb6=_0x1e2813;_0x4a7e42['errors']=[],_0x33336a[_0x8b1fb6('0x195a')][_0x8b1fb6('0x1842')]({'id':_0x4a7e42[_0x8b1fb6('0x195a')]['id']},_0x4a7e42[_0x8b1fb6('0x195a')])[_0x8b1fb6('0x1964')][_0x8b1fb6('0x173b')](function(_0x41ae43){const _0x10294a=_0x8b1fb6,_0x2e995d=_0x3c8d8a()[_0x10294a('0x18ab')](_0x4a7e42[_0x10294a('0x12f1')],{'id':_0x41ae43['id']});_0x2e995d&&_0x3c8d8a()[_0x10294a('0x9ef')](_0x2e995d,_0x3c8d8a()[_0x10294a('0x2114')](_0x41ae43[_0x10294a('0xf1f')](),_0x3c8d8a()[_0x10294a('0x1d3e')](_0x2e995d))),_0x2393fd['success']({'title':_0x10294a('0x1d92'),'msg':_0x4a7e42[_0x10294a('0x195a')][_0x10294a('0x10ad')]?_0x4a7e42[_0x10294a('0x195a')][_0x10294a('0x10ad')]+_0x10294a('0x2788'):''}),_0x414435(_0x41ae43);})['catch'](function(_0x109bda){const _0x4e829f=_0x8b1fb6;if(_0x109bda['data']&&_0x109bda[_0x4e829f('0x1e07')][_0x4e829f('0x1d4a')]&&_0x109bda[_0x4e829f('0x1e07')]['errors']['length']){_0x4a7e42[_0x4e829f('0x1d4a')]=_0x109bda[_0x4e829f('0x1e07')][_0x4e829f('0x1d4a')]||[{'message':_0x109bda[_0x4e829f('0x1b75')](),'type':_0x4e829f('0xdd1')}];for(let _0x3cd9be=0x0;_0x3cd9be<_0x109bda['data'][_0x4e829f('0x1d4a')]['length'];_0x3cd9be++){_0x2393fd[_0x4e829f('0x15aa')]({'title':_0x109bda[_0x4e829f('0x1e07')]['errors'][_0x3cd9be]['type'],'msg':_0x109bda[_0x4e829f('0x1e07')][_0x4e829f('0x1d4a')][_0x3cd9be][_0x4e829f('0x67f')]});}}else _0x2393fd[_0x4e829f('0x15aa')]({'title':_0x109bda[_0x4e829f('0x276f')]?_0x4e829f('0x137')+_0x109bda[_0x4e829f('0x276f')]+'\x20-\x20'+_0x109bda[_0x4e829f('0x2696')]:'api.screenRecording.update','msg':_0x109bda['data']?JSON[_0x4e829f('0x100b')](_0x109bda[_0x4e829f('0x1e07')][_0x4e829f('0x67f')]):_0x109bda[_0x4e829f('0x1b75')]()});});}function _0x1ee8b6(_0x2e6285){const _0x28d677=_0x1e2813;_0x4a7e42[_0x28d677('0x1d4a')]=[];const _0x3b122d=_0x36b2d2[_0x28d677('0x1d02')]()[_0x28d677('0x20d6')](_0x28d677('0x8ef'))[_0x28d677('0x732')](_0x28d677('0x512'))[_0x28d677('0x217')](_0x28d677('0x194a'))['ok'](_0x28d677('0x2373'))[_0x28d677('0x1e1f')](_0x28d677('0x1d4e'))[_0x28d677('0x21de')](_0x2e6285);_0x36b2d2[_0x28d677('0x1cb7')](_0x3b122d)[_0x28d677('0x173b')](function(){const _0x165be8=_0x28d677;_0x33336a[_0x165be8('0x195a')]['delete']({'id':_0x4a7e42['screenRecording']['id']})[_0x165be8('0x1964')][_0x165be8('0x173b')](function(){const _0xcb4313=_0x165be8;_0x3c8d8a()[_0xcb4313('0x1a8b')](_0x4a7e42['screenRecordings'],{'id':_0x4a7e42[_0xcb4313('0x195a')]['id']}),_0x2393fd['success']({'title':_0xcb4313('0x20b0'),'msg':(_0x4a7e42['screenRecording'][_0xcb4313('0x10ad')]||_0xcb4313('0x195a'))+_0xcb4313('0x25d2')}),_0x414435(_0x4a7e42[_0xcb4313('0x195a')]);})[_0x165be8('0x103c')](function(_0x2ea088){const _0x585476=_0x165be8;if(_0x2ea088['data']&&_0x2ea088['data'][_0x585476('0x1d4a')]&&_0x2ea088[_0x585476('0x1e07')][_0x585476('0x1d4a')]['length']){_0x4a7e42['errors']=_0x2ea088[_0x585476('0x1e07')][_0x585476('0x1d4a')]||[{'message':_0x2ea088[_0x585476('0x1b75')](),'type':'api.screenRecording.delete'}];for(let _0x46cf5c=0x0;_0x46cf5c<_0x2ea088[_0x585476('0x1e07')][_0x585476('0x1d4a')][_0x585476('0x543')];_0x46cf5c++){_0x2393fd[_0x585476('0x15aa')]({'title':_0x2ea088[_0x585476('0x1e07')][_0x585476('0x1d4a')][_0x46cf5c][_0x585476('0x1810')],'msg':_0x2ea088[_0x585476('0x1e07')][_0x585476('0x1d4a')][_0x46cf5c]['message']});}}else _0x2393fd['error']({'title':_0x2ea088['status']?'API:'+_0x2ea088[_0x585476('0x276f')]+_0x585476('0x160c')+_0x2ea088[_0x585476('0x2696')]:_0x585476('0x249'),'msg':_0x2ea088[_0x585476('0x1e07')]?JSON[_0x585476('0x100b')](_0x2ea088[_0x585476('0x1e07')][_0x585476('0x67f')]):_0x2ea088[_0x585476('0x67f')]||_0x2ea088[_0x585476('0x1b75')]()});});},function(){});}function _0x31efa0(_0x442df8){return _0x442df8===null?undefined:new Date(_0x442df8);}function _0x414435(_0x36c020){_0x36b2d2['hide'](_0x36c020);}}const _0x421afe=_0xd7afd0;_0x5c886f[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$mdDialog',_0x566993('0x1558'),_0x566993('0xbd4'),'recording',_0x566993('0x2341'),'label',_0x566993('0x1634'),_0x566993('0x3a7'),'$q'];function _0x5c886f(_0x2dde6d,_0x80243f,_0x10dd63,_0x2bd8e3,_0x273cfb,_0x48281f,_0x115b89,_0x36e281,_0x40e46c,_0x4e7851){const _0x2525e8=_0x566993,_0x237d6f=this;_0x237d6f[_0x2525e8('0x283e')]=![],_0x237d6f['recording']=Object[_0x2525e8('0x1b62')]({},_0x273cfb),_0x237d6f[_0x2525e8('0x26e9')]='screenRecording',_0x237d6f[_0x2525e8('0xb6d')]=_0x40e46c,_0x237d6f[_0x2525e8('0x2341')]=Object['assign']({},_0x48281f),_0x237d6f['path']=_0x36e281,_0x237d6f[_0x2525e8('0x22d8')]=_0x115b89,_0x237d6f[_0x2525e8('0x17e')]=_0x2525e8('0x52c'),_0x237d6f[_0x2525e8('0x1cdb')]='screenRecording',console[_0x2525e8('0xe37')](_0x2525e8('0xfcd'),_0x237d6f[_0x2525e8('0x1da1')]),console['log']('TCL:\x20vm.recording[vm.path]',_0x237d6f['recording'][_0x237d6f[_0x2525e8('0x1da1')]]),_0x237d6f['filename']=_0x237d6f[_0x2525e8('0x1c9f')][_0x237d6f['path']][_0x2525e8('0x2087')]('/')>-0x1?_0x237d6f[_0x2525e8('0x1c9f')][_0x237d6f['path']]['substring'](_0x237d6f['recording'][_0x237d6f['path']]['lastIndexOf']('/')+0x1):_0x237d6f[_0x2525e8('0x1c9f')][_0x237d6f[_0x2525e8('0x1da1')]][_0x2525e8('0x2087')]('\x5c')>-0x1?_0x237d6f[_0x2525e8('0x1c9f')][_0x237d6f[_0x2525e8('0x1da1')]][_0x2525e8('0x1a4d')](_0x237d6f['recording'][_0x237d6f[_0x2525e8('0x1da1')]][_0x2525e8('0x24a8')]('\x5c')+0x1):_0x237d6f[_0x2525e8('0x1c9f')][_0x237d6f[_0x2525e8('0x1da1')]],_0x237d6f['format']=![];_0x3c8d8a()['isNil'](_0x237d6f[_0x2525e8('0x1c9f')][_0x2525e8('0xddc')])&&(_0x237d6f['recording'][_0x2525e8('0xddc')]=_0x237d6f['filename'][_0x2525e8('0x2456')](_0x237d6f[_0x2525e8('0x84d')][_0x2525e8('0x24a8')]('.')));(_0x237d6f['recording'][_0x2525e8('0xddc')]==='.wav'&&_0x237d6f[_0x2525e8('0xb6d')]==='audio'||_0x237d6f[_0x2525e8('0x1c9f')]['format']===_0x2525e8('0x21ec')&&_0x237d6f[_0x2525e8('0xb6d')]===_0x2525e8('0x52c'))&&(_0x237d6f[_0x2525e8('0xddc')]=!![]);_0x237d6f[_0x2525e8('0x1176')]=!![];_0x237d6f[_0x2525e8('0xddc')]&&_0x408eaa();function _0x408eaa(){const _0x16301a=_0x2525e8,_0x1311d8=_0x4e7851[_0x16301a('0x112e')]();return _0x2bd8e3[_0x16301a('0x195a')]['download']({'id':_0x237d6f['recording']['id'],'path':String(_0x237d6f[_0x16301a('0x1da1')])})['$promise']['then'](function(){const _0x44e61b=_0x16301a;_0x237d6f[_0x44e61b('0xddc')]=!![],_0x237d6f[_0x44e61b('0x1176')]=!![],_0x1311d8['resolve']();})[_0x16301a('0x103c')](function(){const _0x1c2086=_0x16301a;console[_0x1c2086('0xe37')](_0x1c2086('0x2108')),_0x237d6f[_0x1c2086('0xddc')]=![],_0x237d6f[_0x1c2086('0x1176')]=![],_0x1311d8[_0x1c2086('0x155b')]();}),_0x1311d8[_0x16301a('0x2219')];}if(!_0x3c8d8a()[_0x2525e8('0x7d5')](_0x48281f['properties'])&&_0x48281f['properties']){_0x237d6f[_0x2525e8('0x187d')]=Object[_0x2525e8('0x1b62')]({},_0x273cfb);const _0x15d786=Object[_0x2525e8('0x1d3e')](_0x273cfb);_0x15d786[_0x2525e8('0xa6a')](function(_0x38b96e){const _0x11b5d6=_0x2525e8;String(_0x38b96e[0x0][_0x11b5d6('0x1164')]())===String(_0x38b96e[0x0])&&delete _0x237d6f[_0x11b5d6('0x187d')][_0x38b96e];}),_0x237d6f['propertiesDefault']={};if(!_0x3c8d8a()[_0x2525e8('0x7d5')](_0x48281f[_0x2525e8('0x6ab')])&&_0x48281f[_0x2525e8('0x6ab')][_0x2525e8('0x543')]>0x0){_0x237d6f[_0x2525e8('0x1c71')]=Object[_0x2525e8('0x1b62')]({},_0x273cfb);const _0x5e2fb5=_0x48281f[_0x2525e8('0x6ab')],_0x147d24=Object[_0x2525e8('0x1d3e')](_0x273cfb);let _0x5e0a3f=!![];_0x147d24['forEach'](function(_0x2b7247){const _0x592030=_0x2525e8;_0x5e0a3f=!![],_0x5e2fb5[_0x592030('0xa6a')](function(_0x4009ac){String(_0x2b7247)===String(_0x4009ac)&&(_0x5e0a3f=![]);}),_0x5e0a3f&&delete _0x237d6f['propertiesDefault'][_0x2b7247];}),_0x237d6f[_0x2525e8('0x187d')]=_0x237d6f[_0x2525e8('0x1c71')];}if(!_0x3c8d8a()[_0x2525e8('0x7d5')](_0x48281f['extraData'])&&_0x48281f['extraData']['length']>0x0){_0x237d6f['propertiesExtra']={};const _0x10fafe=_0x48281f[_0x2525e8('0x510')];for(let _0x1d6987=0x0;_0x1d6987<_0x10fafe[_0x2525e8('0x543')];_0x1d6987++){const _0x52771e=_0x10fafe[_0x1d6987]['values'],_0x399837=_0x10fafe[_0x1d6987][_0x2525e8('0x1cdb')];for(let _0xf12d8d=0x0;_0xf12d8d<_0x52771e['length'];_0xf12d8d++){_0x237d6f[_0x2525e8('0x1368')][_0x52771e[_0xf12d8d]['text']]=_0x273cfb[_0x399837][_0x52771e[_0xf12d8d]['key']];}}_0x237d6f['properties']=Object[_0x2525e8('0x1b62')]({},_0x237d6f[_0x2525e8('0x1c71')],_0x237d6f[_0x2525e8('0x1368')]);}}_0x237d6f[_0x2525e8('0x18e2')]=_0x561893;function _0x561893(){const _0x20d85f=_0x2525e8;_0x80243f[_0x20d85f('0x1cf4')]();}}const _0x29424b=_0x5c886f,_0x2fab23=_0x21a6a1['p']+_0x566993('0x23d9'),_0x53761b=_0x21a6a1['p']+_0x566993('0x1cba');_0x364957[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav','$mdDialog',_0x566993('0x1b82'),'$timeout',_0x566993('0x638'),'screenRecordings',_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty',_0x566993('0x1600'),_0x566993('0x1a29'),'setting'];function _0x364957(_0x1e36df,_0xaa1882,_0x575760,_0x2b0a7a,_0x441c36,_0x1a4cb5,_0x4937d2,_0x3a7628,_0x4506fa,_0x3a40c9,_0x4eb94d,_0x4ae648,_0x4fa871,_0x5cd800,_0x1ddf5b,_0x5f37d5,_0x398b64){const _0x5180c5=_0x566993,_0x49c957=this;_0x49c957[_0x5180c5('0x1a29')]=_0x5f37d5,_0x49c957[_0x5180c5('0x251')]=_0x398b64,_0x49c957['currentUser']=_0x1ddf5b[_0x5180c5('0x14d4')](),_0x49c957[_0x5180c5('0x12f1')]=_0x4506fa||{'count':0x0,'rows':[]},_0x49c957[_0x5180c5('0x257b')]=_0x3a40c9,_0x49c957['userProfileSection']=_0x4eb94d&&_0x4eb94d[_0x5180c5('0x1a2f')]==0x1?_0x4eb94d[_0x5180c5('0x6aa')][0x0]:null,_0x49c957[_0x5180c5('0x1dc1')]=_0x1ddf5b[_0x5180c5('0xde6')](_0x49c957['userProfileSection']?_0x49c957['userProfileSection'][_0x5180c5('0x1dc1')]:null),_0x49c957[_0x5180c5('0xdf9')]=_0x5180c5('0x12f1'),_0x49c957[_0x5180c5('0x14d6')]='',_0x49c957['listOrderAsc']=null,_0x49c957[_0x5180c5('0x2828')]=[],_0x49c957['query']={'fields':_0x5180c5('0xcad'),'createdAt':'@msUtils.firstLastDayMonth()','includeAll':'true','sort':_0x5180c5('0x1769'),'limit':0xa,'page':0x1},_0x49c957['query'][_0x5180c5('0xda8')]=_0x4fa871[_0x5180c5('0x25c3')](),_0x49c957[_0x5180c5('0x485')]=_0x43bb15();function _0x43bb15(){const _0x6d6df8=_0x5180c5;return[{'name':_0x6d6df8('0x1406'),'key':_0x6d6df8('0xda8'),'type':_0x6d6df8('0x22b6'),'label':'DASHBOARDS.SELECT_DATE_RANGE'}];}_0x49c957[_0x5180c5('0x16fa')]=_0x46fec7,_0x49c957['downloadfile2']=_0x5a3888,_0x49c957[_0x5180c5('0x1a20')]=_0x3fbc60,_0x49c957[_0x5180c5('0xdfe')]=_0x242e21,_0x49c957[_0x5180c5('0xe88')]=_0x153685,_0x49c957['createOrEditscreenRecording']=_0x157b38,_0x49c957[_0x5180c5('0xe42')]=_0x68ac5c,_0x49c957[_0x5180c5('0x20bd')]=_0x2e1c9f,_0x49c957['deleteSelectedScreenRecordings']=_0x8bc181,_0x49c957['deselectScreenRecordings']=_0x44a19d,_0x49c957['selectAllScreenRecordings']=_0x440add,_0x49c957[_0x5180c5('0x1454')]=_0x297022,_0x4ae648[_0x5180c5('0x166f')][_0x5180c5('0x1d97')]({'fields':_0x5180c5('0x112d'),'sort':_0x5180c5('0x10ad'),'nolimit':_0x5180c5('0x799')})[_0x5180c5('0x1964')]['then'](function(_0x436234){const _0x1894b3=_0x5180c5;_0x49c957[_0x1894b3('0x1e14')]=_0x436234[_0x1894b3('0x6aa')]||[];})[_0x5180c5('0x103c')](function(_0x5785cc){const _0x35a804=_0x5180c5;_0x5cd800[_0x35a804('0x15aa')]({'title':_0x5785cc[_0x35a804('0x276f')]?'API:'+_0x5785cc[_0x35a804('0x276f')]+_0x35a804('0x160c')+_0x5785cc[_0x35a804('0x2696')]:_0x35a804('0xbdd'),'msg':_0x5785cc[_0x35a804('0x1e07')]?JSON['stringify'](_0x5785cc[_0x35a804('0x1e07')]):_0x5785cc[_0x35a804('0x1b75')]()});});function _0x46fec7(_0x469312,_0x238e49,_0x1929bc,_0x3cffad,_0xd6885d){const _0x52a591=_0x5180c5,_0x38e1ae={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':'icon-video','propertiesList':[_0x52a591('0xddc'),_0x52a591('0x7ee'),'duration',_0x52a591('0x2231'),_0x52a591('0x1eb5'),_0x52a591('0xda8')],'extraData':[{'model':_0x52a591('0x2265'),'values':[{'key':_0x52a591('0x10ad'),'text':_0x52a591('0x1ee')}]}]},_0x161c7f={};_0x161c7f[_0x52a591('0x26e9')]='screenRecording',_0x161c7f[_0x52a591('0x10ad')]=_0x52a591('0x12f1'),_0x161c7f[_0x52a591('0x1cdb')]=_0x52a591('0x195a'),_0x161c7f[_0x52a591('0x16a2')]=_0x52a591('0x195a'),_0x3cffad=String(_0x3cffad);const _0x435c9b=String(_0x1929bc);console[_0x52a591('0xe37')](_0x52a591('0x93a'),String(_0x1929bc)),_0x441c36['show']({'controller':'ScreenRecordingplayController','controllerAs':'vm','templateUrl':_0x53761b,'parent':angular['element'](_0x1a4cb5[_0x52a591('0x1a5')]),'targetEvent':_0x238e49,'clickOutsideToClose':!![],'locals':{'recording':_0x469312,'recordings':_0x49c957[_0x52a591('0x12f1')][_0x52a591('0x6aa')],'license':_0x49c957['license'],'setting':null,'item':_0x161c7f,'actionOptions':_0x38e1ae,'label':_0x3cffad,'varPath':_0x435c9b,'elementTag':String(_0xd6885d)}});}function _0x5a3888(_0x41d69c){const _0x5db21e=_0x5180c5;let _0x4aabd8=![];const _0x408d8d=!_0x3c8d8a()[_0x5db21e('0x7d5')](_0x41d69c[_0x5db21e('0xddc')])?_0x41d69c[_0x5db21e('0xddc')]:_0x41d69c[_0x5db21e('0xa7b')][_0x5db21e('0x1a4d')](_0x41d69c['value']['lastIndexOf']('.'));_0x4aabd8=_0x408d8d===_0x5db21e('0x21ec')?!![]:![];const _0x384725=_0x41d69c[_0x5db21e('0xa7b')][_0x5db21e('0x24a8')]('/')>-0x1?_0x41d69c[_0x5db21e('0xa7b')][_0x5db21e('0x1a4d')](_0x41d69c[_0x5db21e('0xa7b')][_0x5db21e('0x24a8')]('/')+0x1):_0x41d69c[_0x5db21e('0xa7b')][_0x5db21e('0x24a8')]('\x5c')>-0x1?_0x41d69c['value'][_0x5db21e('0x1a4d')](_0x41d69c[_0x5db21e('0xa7b')][_0x5db21e('0x24a8')]('\x5c')+0x1):_0x41d69c[_0x5db21e('0xa7b')];return _0x4ae648['screenRecording'][_0x5db21e('0xfce')]({'id':_0x41d69c['id']})[_0x5db21e('0x1964')][_0x5db21e('0x173b')](function(_0x549e8b){const _0x14f6a1=_0x5db21e,_0x2e4e42=[_0x549e8b['buffer']];let _0x1dfe75='download';const _0x23a8ec=new Blob(_0x2e4e42,{'type':_0x549e8b[_0x14f6a1('0x1810')]});_0x1dfe75=_0x384725;const _0x5044a3=window[_0x14f6a1('0x222a')][_0x14f6a1('0x1258')]('a');_0x5044a3[_0x14f6a1('0x11c3')](_0x14f6a1('0x165c'),URL[_0x14f6a1('0x1466')](_0x23a8ec)),_0x5044a3[_0x14f6a1('0x11c3')](_0x14f6a1('0xfce'),_0x1dfe75),document['body'][_0x14f6a1('0x1f8d')](_0x5044a3),_0x5044a3[_0x14f6a1('0x3cb')]();})[_0x5db21e('0x103c')](function(_0x161416){const _0x4a1977=_0x5db21e;if(_0x161416[_0x4a1977('0x1e07')]&&_0x161416[_0x4a1977('0x1e07')][_0x4a1977('0x1d4a')]&&_0x161416[_0x4a1977('0x1e07')][_0x4a1977('0x1d4a')][_0x4a1977('0x543')])for(let _0x3028b7=0x0;_0x3028b7<_0x161416[_0x4a1977('0x1e07')]['errors'][_0x4a1977('0x543')];_0x3028b7++){_0x5cd800['error']({'title':_0x161416[_0x4a1977('0x1e07')][_0x4a1977('0x1d4a')][_0x3028b7][_0x4a1977('0x1810')],'msg':_0x161416[_0x4a1977('0x1e07')][_0x4a1977('0x1d4a')][_0x3028b7][_0x4a1977('0x67f')]});}else{if(String(_0x161416['status'])===_0x4a1977('0x197')&&_0x4aabd8===![])_0x5cd800[_0x4a1977('0x2787')]({'title':_0x3a7628['instant'](_0x4a1977('0x1060')),'msg':_0x3a7628[_0x4a1977('0x1467')](_0x4a1977('0x722'))});else String(_0x161416[_0x4a1977('0x276f')])==='404'?_0x5cd800[_0x4a1977('0x2787')]({'title':_0x3a7628['instant'](_0x4a1977('0x1060')),'msg':_0x3a7628[_0x4a1977('0x1467')]('VIDEO.FILE_NOT_FOUND')}):_0x5cd800['error']({'title':_0x161416['status']?'API:'+_0x161416[_0x4a1977('0x276f')]+_0x4a1977('0x160c')+_0x161416[_0x4a1977('0x2696')]:_0x4a1977('0x203f'),'msg':_0x161416['data']?JSON[_0x4a1977('0x100b')](_0x161416[_0x4a1977('0x1e07')][_0x4a1977('0x67f')]):_0x161416[_0x4a1977('0x1b75')]()});}});}function _0x3fbc60(_0x32cdf5,_0x915c1a){const _0x4f07e0=_0x5180c5,_0x4e6f4c=_0x441c36[_0x4f07e0('0x1d02')]()['title'](_0x4f07e0('0x5bb')+_0x3c8d8a()[_0x4f07e0('0x10e')](_0x4f07e0('0x195a'))+'?')[_0x4f07e0('0xf8b')](''+(_0x32cdf5[_0x4f07e0('0x10ad')]||_0x4f07e0('0x195a'))+_0x4f07e0('0x24be')+_0x4f07e0('0xd23'))[_0x4f07e0('0x217')]('delete\x20screenRecording')[_0x4f07e0('0x21de')](_0x915c1a)['ok']('OK')[_0x4f07e0('0x1e1f')](_0x4f07e0('0x468'));_0x441c36[_0x4f07e0('0x1cb7')](_0x4e6f4c)['then'](function(){_0x68ac5c(_0x32cdf5);},function(){const _0x223e3b=_0x4f07e0;console[_0x223e3b('0xe37')](_0x223e3b('0x468'));});}let _0x46439c=!![],_0x6cae39=0x1;_0x1e36df['$watch'](_0x5180c5('0x157b'),function(_0x3c6d36,_0x30d353){const _0x960b7f=_0x5180c5;_0x46439c?_0x4937d2(function(){_0x46439c=![];}):(!_0x30d353&&(_0x6cae39=_0x49c957[_0x960b7f('0xc49')][_0x960b7f('0x182e')]),_0x3c6d36!==_0x30d353&&(_0x49c957[_0x960b7f('0xc49')][_0x960b7f('0x182e')]=0x1),!_0x3c6d36&&(_0x49c957[_0x960b7f('0xc49')]['page']=_0x6cae39),_0x49c957['getScreenRecordings']());});function _0x297022(_0x1a0d6f){const _0x57cfbc=_0x5180c5,_0x2b6f52=Math[_0x57cfbc('0x2207')](_0x1a0d6f/0x3e8%0x3c),_0x4755ff=Math[_0x57cfbc('0x2207')](_0x1a0d6f/(0x3e8*0x3c)%0x3c),_0x3eacba=Math['floor'](_0x1a0d6f/(0x3e8*0x3c*0x3c)%0x18),_0xe73c88=_0x3eacba<0xa?'0'+String(_0x3eacba):String(_0x3eacba),_0x40d45a=_0x4755ff<0xa?'0'+String(_0x4755ff):String(_0x4755ff),_0x1fd636=_0x2b6f52<0xa?'0'+String(_0x2b6f52):String(_0x2b6f52);return _0xe73c88+':'+_0x40d45a+':'+_0x1fd636;}function _0x242e21(_0x17e883){const _0x54f3a3=_0x5180c5;_0x49c957[_0x54f3a3('0x12f1')]=_0x17e883||{'count':0x0,'rows':[]};}function _0x153685(){const _0x10deb5=_0x5180c5;_0x49c957['query'][_0x10deb5('0x17f0')]=(_0x49c957[_0x10deb5('0xc49')][_0x10deb5('0x182e')]-0x1)*_0x49c957[_0x10deb5('0xc49')][_0x10deb5('0x3e')],_0x1ddf5b[_0x10deb5('0x1b4e')]('admin')?_0x49c957[_0x10deb5('0x2219')]=_0x4ae648['screenRecording'][_0x10deb5('0x1d97')](_0x49c957[_0x10deb5('0xc49')],_0x242e21)[_0x10deb5('0x1964')]:(_0x49c957[_0x10deb5('0xc49')]['id']=_0x49c957[_0x10deb5('0x257b')]['id'],_0x49c957[_0x10deb5('0xc49')][_0x10deb5('0x17c9')]=_0x10deb5('0xdf'),_0x49c957[_0x10deb5('0x2219')]=_0x4ae648[_0x10deb5('0x257b')]['getResources'](_0x49c957['query'],_0x242e21)[_0x10deb5('0x1964')]);}function _0x157b38(_0x39a603,_0x30a01){const _0x5bc6f9=_0x5180c5;_0x441c36[_0x5bc6f9('0x1cb7')]({'controller':_0x5bc6f9('0x249d'),'controllerAs':'vm','templateUrl':_0x2fab23,'parent':angular[_0x5bc6f9('0xb6d')](_0x1a4cb5['body']),'targetEvent':_0x39a603,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x30a01,'screenRecordings':_0x49c957[_0x5bc6f9('0x12f1')][_0x5bc6f9('0x6aa')],'license':_0x49c957['license'],'setting':_0x49c957[_0x5bc6f9('0x251')],'crudPermissions':_0x49c957[_0x5bc6f9('0x1dc1')]}});}function _0x68ac5c(_0xa54980){const _0x4f04c9=_0x5180c5;_0x4ae648['screenRecording']['delete']({'id':_0xa54980['id']})[_0x4f04c9('0x1964')][_0x4f04c9('0x173b')](function(){const _0x33f65c=_0x4f04c9;_0x3c8d8a()[_0x33f65c('0x1a8b')](_0x49c957[_0x33f65c('0x12f1')][_0x33f65c('0x6aa')],{'id':_0xa54980['id']}),_0x49c957['screenRecordings'][_0x33f65c('0x1a2f')]-=0x1,!_0x49c957[_0x33f65c('0x12f1')]['rows'][_0x33f65c('0x543')]&&_0x49c957[_0x33f65c('0xe88')](),_0x5cd800[_0x33f65c('0xdfe')]({'title':_0x3c8d8a()['startCase'](_0x33f65c('0x195a'))+_0x33f65c('0x1c5e'),'msg':_0xa54980['name']?_0xa54980[_0x33f65c('0x10ad')]+_0x33f65c('0x25d2'):''});})[_0x4f04c9('0x103c')](function(_0x109a07){const _0x576f6b=_0x4f04c9;if(_0x109a07[_0x576f6b('0x1e07')]&&_0x109a07[_0x576f6b('0x1e07')][_0x576f6b('0x1d4a')]&&_0x109a07['data'][_0x576f6b('0x1d4a')][_0x576f6b('0x543')]){_0x49c957[_0x576f6b('0x1d4a')]=_0x109a07[_0x576f6b('0x1e07')][_0x576f6b('0x1d4a')]||[{'message':_0x109a07['toString'](),'type':_0x576f6b('0x1ad2')}];for(let _0x4fca05=0x0;_0x4fca05<_0x109a07['data']['errors'][_0x576f6b('0x543')];_0x4fca05++){_0x5cd800[_0x576f6b('0x15aa')]({'title':_0x109a07[_0x576f6b('0x1e07')][_0x576f6b('0x1d4a')][_0x4fca05][_0x576f6b('0x1810')],'msg':_0x109a07[_0x576f6b('0x1e07')][_0x576f6b('0x1d4a')][_0x4fca05][_0x576f6b('0x67f')]});}}else _0x5cd800['error']({'title':_0x109a07[_0x576f6b('0x276f')]?_0x576f6b('0x137')+_0x109a07[_0x576f6b('0x276f')]+_0x576f6b('0x160c')+_0x109a07[_0x576f6b('0x2696')]:_0x576f6b('0x1ad2'),'msg':_0x109a07[_0x576f6b('0x1e07')]?JSON[_0x576f6b('0x100b')](_0x109a07[_0x576f6b('0x1e07')][_0x576f6b('0x67f')]):_0x109a07['message']||_0x109a07['toString']()});});}function _0x2e1c9f(){const _0x512e42=_0x5180c5,_0x5b6577=angular['copy'](_0x49c957[_0x512e42('0x2828')]);return _0x49c957[_0x512e42('0x2828')]=[],_0x5b6577;}function _0x8bc181(_0x2f6007){const _0x51f47d=_0x5180c5,_0x1988e3=_0x441c36[_0x51f47d('0x1d02')]()[_0x51f47d('0x20d6')](_0x51f47d('0x1829'))[_0x51f47d('0xf8b')](_0x51f47d('0x15b9')+_0x49c957['selectedScreenRecordings']['length']+_0x51f47d('0xcb4')+_0x51f47d('0xd23'))[_0x51f47d('0x217')](_0x51f47d('0x16d9'))[_0x51f47d('0x21de')](_0x2f6007)['ok']('OK')[_0x51f47d('0x1e1f')](_0x51f47d('0x468'));_0x441c36[_0x51f47d('0x1cb7')](_0x1988e3)[_0x51f47d('0x173b')](function(){const _0x12e50c=_0x51f47d;_0x49c957[_0x12e50c('0x2828')][_0x12e50c('0xa6a')](function(_0x4e0c77){_0x68ac5c(_0x4e0c77);}),_0x49c957[_0x12e50c('0x2828')]=[];});}function _0x44a19d(){const _0x39504a=_0x5180c5;_0x49c957[_0x39504a('0x2828')]=[];}function _0x440add(){const _0x9d6f7a=_0x5180c5;_0x49c957[_0x9d6f7a('0x2828')]=_0x49c957[_0x9d6f7a('0x12f1')]['rows'];}}const _0x47e36e=_0x364957;_0x26b2f8[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x26b2f8(_0xf34f2a,_0xcd947){const _0x239764=_0x566993;_0xf34f2a['state'](_0x239764('0xf73'),{'abstract':!![],'url':'/video'})[_0x239764('0x1a49')](_0x239764('0x6dd'),{'url':_0x239764('0x1a54'),'views':{'content@app':{'templateUrl':_0x1da061,'controller':_0x239764('0x1cc4')}},'resolve':{'screenRecordings':[_0x239764('0x2401'),_0x239764('0x1600'),_0x239764('0x1f9'),function(_0x23d5d2,_0x56e9c1,_0x3e705c){const _0x2101c2=_0x239764;return _0x56e9c1[_0x2101c2('0x1b4e')]('admin')?_0x23d5d2[_0x2101c2('0x155b')](_0x2101c2('0x25cd'),{'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x3e705c[_0x2101c2('0x25c3')](),'includeAll':_0x2101c2('0x799'),'sort':_0x2101c2('0x1769'),'limit':0xa,'offset':0x0}):_0x23d5d2[_0x2101c2('0x155b')](_0x2101c2('0x14b3'),{'id':_0x56e9c1['getCurrentUser']()[_0x2101c2('0x1946')],'section':_0x2101c2('0xdf'),'fields':_0x2101c2('0xcad'),'createdAt':_0x3e705c['firstLastDayMonth'](),'includeAll':_0x2101c2('0x799'),'sort':_0x2101c2('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x239764('0x1600'),function(_0x1dfae6,_0x26a3d0){const _0x171321=_0x239764;return _0x26a3d0[_0x171321('0x1b4e')](_0x171321('0x79b'))?null:_0x1dfae6[_0x171321('0x155b')](_0x171321('0x1f20'),{'fields':_0x171321('0x19dd'),'id':_0x26a3d0['getCurrentUser']()[_0x171321('0x1946')]});}],'userProfileSection':['apiResolver',_0x239764('0x1600'),function(_0x53093f,_0x429a21){const _0x5569fe=_0x239764;return _0x429a21['hasRole'](_0x5569fe('0x79b'))?null:_0x53093f[_0x5569fe('0x155b')]('userProfileSection@get',{'fields':_0x5569fe('0x1348'),'userProfileId':_0x429a21[_0x5569fe('0x14d4')]()[_0x5569fe('0x1946')],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':_0x239764('0x52c')}),_0xcd947[_0x239764('0x1b1a')](_0x239764('0x13e2'));}angular[_0x566993('0x22c4')]('app.video',['ngCsv','ngPassword',_0x566993('0x1663'),_0x566993('0x1789'),_0x566993('0x21f9'),_0x566993('0x26f0'),_0x566993('0x158f'),_0x566993('0x20fc'),_0x566993('0x8a3'),_0x566993('0x1146'),_0x566993('0x1698'),'mwFormViewer',_0x566993('0x1459'),_0x566993('0x24ca'),_0x566993('0xfd4'),_0x566993('0x1ce7'),_0x566993('0x11c7'),'material.components.expansionPanels','chart.js',_0x566993('0x2392')])[_0x566993('0xea9')](_0x26b2f8)['controller'](_0x566993('0x249d'),_0x421afe)['controller'](_0x566993('0xc0'),_0x29424b)[_0x566993('0x1e65')](_0x566993('0x342'),_0x47e36e);const _0x1ca43b=_0x21a6a1['p']+_0x566993('0x262'),_0x5c35ba=_0x21a6a1['p']+_0x566993('0x27b8'),_0x34de40=_0x21a6a1['p']+_0x566993('0x5c3');_0x2f6b76['$inject']=[_0x566993('0x66f'),'$q','$timeout',_0x566993('0x1fe5'),_0x566993('0x1b82'),'$filter',_0x566993('0x1d66'),_0x566993('0x11fa'),'rpcAgents',_0x566993('0xbd4'),_0x566993('0x2fc'),'toasty',_0x566993('0x1bf5'),_0x566993('0x257b'),'userProfileSection',_0x566993('0x1600'),_0x566993('0x1a29'),'$interval'];function _0x2f6b76(_0x255adb,_0x35b8d8,_0x1d5651,_0x4a954c,_0x43d3c6,_0x4f5645,_0x317a7e,_0x42e4c4,_0x3546b6,_0x32778f,_0x517e33,_0xf5591f,_0x9fb809,_0x373b6c,_0x44512b,_0x2d4c2c,_0x401725,_0x25d4ea){const _0x1a0420=_0x566993,_0x553dd5=this,_0xa31077=[_0x1a0420('0x1def'),_0x1a0420('0xc7a'),'lastLoginAt',_0x1a0420('0x20a0'),_0x1a0420('0xd63'),_0x1a0420('0x20a0'),'internal',_0x1a0420('0x1e8'),'chatPause',_0x1a0420('0x106'),_0x1a0420('0xf41'),_0x1a0420('0x2ea'),'whatsappPause',_0x1a0420('0x13eb'),_0x1a0420('0x67c'),_0x1a0420('0x266d'),_0x1a0420('0xa4'),'mailCapacity',_0x1a0420('0x784'),_0x1a0420('0x1502'),_0x1a0420('0x2761'),_0x1a0420('0x1791'),_0x1a0420('0x24df'),_0x1a0420('0x1d75'),'smsCurrentCapacity','whatsappCurrentCapacity',_0x1a0420('0x114b'),_0x1a0420('0x10ee'),_0x1a0420('0x1eba'),_0x1a0420('0x1120'),'smsStatus',_0x1a0420('0x14be'),_0x1a0420('0x2735'),_0x1a0420('0x1b47'),_0x1a0420('0x2816'),_0x1a0420('0x205'),_0x1a0420('0x22a'),_0x1a0420('0x2176'),_0x1a0420('0x15b6'),_0x1a0420('0xbc9'),_0x1a0420('0x1c89'),_0x1a0420('0x172'),_0x1a0420('0x146b'),_0x1a0420('0x1fcd'),_0x1a0420('0x23ee'),_0x1a0420('0x1386')],_0x15991c=[_0x1a0420('0x988'),'openchannelPause','mailPause','smsPause',_0x1a0420('0x852'),_0x1a0420('0x13eb'),'voicePause',_0x1a0420('0xc7a')];_0x553dd5[_0x1a0420('0x155f')]=_0x2d4c2c[_0x1a0420('0x14d4')](),_0x553dd5['availableStates']=[_0x1a0420('0x263b'),'inuse',_0x1a0420('0xe2b'),_0x1a0420('0x1c3f'),_0x1a0420('0x273')],_0x553dd5[_0x1a0420('0x1d66')]=_0x317a7e||{'count':0x0,'rows':[]},_0x553dd5[_0x1a0420('0x1a29')]=_0x401725,_0x553dd5[_0x1a0420('0x257b')]=_0x373b6c,_0x553dd5[_0x1a0420('0x170e')]=_0x44512b&&_0x44512b['count']==0x1?_0x44512b[_0x1a0420('0x6aa')][0x0]:null,_0x553dd5[_0x1a0420('0x1dc1')]=_0x2d4c2c[_0x1a0420('0xde6')](_0x553dd5['userProfileSection']?_0x553dd5[_0x1a0420('0x170e')][_0x1a0420('0x1dc1')]:null),_0x553dd5[_0x1a0420('0x11fa')]=_0x42e4c4?_0x3c8d8a()[_0x1a0420('0x128')](_0x42e4c4[_0x1a0420('0x6aa')]?_0x42e4c4[_0x1a0420('0x6aa')]:[],'id'):{},_0x553dd5['rpcAgents']=_0x3546b6?_0x3c8d8a()[_0x1a0420('0x128')](_0x3546b6[_0x1a0420('0x6aa')]?_0x3546b6[_0x1a0420('0x6aa')]:[],'id'):{},_0x553dd5['paginatedAgents']={},_0x553dd5['load']=![],_0x553dd5[_0x1a0420('0x144a')]=[],_0x553dd5['agentInternal']={};for(const _0x24a0fc in _0x553dd5[_0x1a0420('0x11fa')]){typeof _0x553dd5[_0x1a0420('0x11fa')][_0x24a0fc]!==_0x1a0420('0x6e5')&&(_0x553dd5[_0x1a0420('0x11fa')][_0x24a0fc][_0x1a0420('0xb9c')]=!![]);}_0x553dd5[_0x1a0420('0xc49')]={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x553dd5[_0x1a0420('0x1037')]=_0x1af20d,_0x553dd5['queueAdd']=_0x1a99d5,_0x553dd5[_0x1a0420('0x1751')]=_0x4beb6f,_0x553dd5['unPause']=_0x4e9fdd,_0x553dd5[_0x1a0420('0x2230')]=_0x2b57f1,_0x553dd5[_0x1a0420('0x8da')]=_0x493bdf,_0x553dd5[_0x1a0420('0xc8c')]=_0x4957ea,_0x553dd5[_0x1a0420('0x1263')]=_0x2474a5,_0x553dd5['checkPause']=_0x5dea8e,_0x553dd5[_0x1a0420('0x83e')]=_0x2fa6b9,_0x553dd5['onSave']=_0x4edc9b,_0x553dd5[_0x1a0420('0x2805')]=_0x4b04c3,_0x553dd5['onInit']=_0x139798,_0x553dd5['onConnect']=_0x16d943,_0x553dd5[_0x1a0420('0xa6f')]=_0x3db1a9,_0x553dd5[_0x1a0420('0x195a')]=_0x4e9318,_0x517e33['on'](_0x1a0420('0x1f4c'),_0x553dd5[_0x1a0420('0x689')]),_0x517e33['on'](_0x1a0420('0x2048'),_0x553dd5[_0x1a0420('0x2805')]),_0x517e33['on'](_0x1a0420('0x1bd5'),_0x553dd5['onConnect']),_0x517e33['on'](_0x1a0420('0xa73'),_0x553dd5[_0x1a0420('0xa6f')]),_0x139798();let _0x44e1c5=_0x25d4ea(function(){const _0x4a3843=_0x1a0420;_0x553dd5['load']&&(_0x553dd5[_0x4a3843('0xda0')]=![],_0x139798());},0x3e7);function _0x139798(){const _0x2089f9=_0x1a0420;_0x553dd5[_0x2089f9('0xda0')]=![];const _0x3a6ad2=_0x35b8d8['defer']();_0x553dd5[_0x2089f9('0x2219')]=_0x3a6ad2[_0x2089f9('0x2219')],_0x553dd5[_0x2089f9('0x3b')]=[],_0x553dd5[_0x2089f9('0x144a')]=[],_0x3c8d8a()[_0x2089f9('0x33d')](_0x553dd5[_0x2089f9('0x11fa')],function(_0x22650e,_0x563e3b){const _0x5746fe=_0x2089f9;_0x553dd5[_0x5746fe('0x61d')][_0x563e3b]&&_0x3c8d8a()[_0x5746fe('0x9ef')](_0x22650e,_0x3c8d8a()['pick'](_0x3c8d8a()[_0x5746fe('0x2797')](_0x553dd5[_0x5746fe('0x61d')][_0x563e3b],_0x15991c),_0xa31077)),_0x4957ea(_0x22650e),_0x22650e[_0x5746fe('0xc7a')]?(_0x553dd5[_0x5746fe('0x3b')]['push'](_0x22650e),_0x553dd5[_0x5746fe('0xa53')][_0x22650e['internal']]=_0x563e3b):_0x22650e[_0x5746fe('0x1cd8')]=_0x3c8d8a()[_0x5746fe('0x1acd')](_0x156524()()[_0x5746fe('0xddc')]('x'));});_0x553dd5[_0x2089f9('0xc49')][_0x2089f9('0x1f52')]&&_0x3c8d8a()[_0x2089f9('0x1a8b')](_0x553dd5[_0x2089f9('0x3b')],function(_0x1670ad){const _0x168f75=_0x2089f9;return _0x1670ad['globalStatus']!==_0x553dd5[_0x168f75('0xc49')][_0x168f75('0x1f52')];});_0x553dd5[_0x2089f9('0xc49')][_0x2089f9('0x6a')]&&_0x3c8d8a()[_0x2089f9('0x1a8b')](_0x553dd5['filteredAgents'],function(_0x3ff6d0){const _0x54f5e8=_0x2089f9;return _0x3ff6d0['pauseType']!==_0x553dd5[_0x54f5e8('0xc49')][_0x54f5e8('0x6a')];});_0x553dd5[_0x2089f9('0xc49')][_0x2089f9('0x278d')]&&_0x3c8d8a()[_0x2089f9('0x1a8b')](_0x553dd5[_0x2089f9('0x3b')],function(_0x52b79c){const _0x2e9a72=_0x2089f9;return _0x52b79c[_0x2e9a72('0x572')][_0x2e9a72('0x1e68')]()[_0x2e9a72('0x2087')](_0x553dd5[_0x2e9a72('0xc49')][_0x2e9a72('0x278d')][_0x2e9a72('0x1e68')]())<0x0;});_0x553dd5[_0x2089f9('0x3b')]=_0x18f861(_0x553dd5['filteredAgents']);const _0x2b332e=(_0x553dd5[_0x2089f9('0xc49')][_0x2089f9('0x182e')]-0x1)*_0x553dd5[_0x2089f9('0xc49')][_0x2089f9('0x3e')];_0x553dd5['paginatedAgents']=_0x3c8d8a()['drop'](_0x553dd5[_0x2089f9('0x3b')],_0x2b332e)['slice'](0x0,_0x553dd5['query'][_0x2089f9('0x3e')]);for(let _0x42727a=0x0;_0x42727a<_0x553dd5[_0x2089f9('0x2cb')]['length'];_0x42727a+=0x1){_0x553dd5[_0x2089f9('0x144a')]['push'](_0x553dd5[_0x2089f9('0x2cb')][_0x42727a]['id']);}_0x3a6ad2['resolve'](),_0x553dd5[_0x2089f9('0xda0')]=!![];}function _0x4edc9b(_0x55fa9f){const _0x1c706b=_0x1a0420;_0x553dd5[_0x1c706b('0x11fa')][_0x55fa9f['id']]&&(_0x3c8d8a()[_0x1c706b('0x9ef')](_0x553dd5[_0x1c706b('0x11fa')][_0x55fa9f['id']],_0x3c8d8a()[_0x1c706b('0x2114')](_0x3c8d8a()[_0x1c706b('0x2797')](_0x55fa9f,_0x15991c),_0xa31077)),_0x3c8d8a()['merge'](_0x553dd5[_0x1c706b('0x61d')][_0x55fa9f['id']],_0x3c8d8a()[_0x1c706b('0x2114')](_0x3c8d8a()[_0x1c706b('0x2797')](_0x55fa9f,_0x15991c),_0xa31077)),_0x4957ea(_0x553dd5[_0x1c706b('0x11fa')][_0x55fa9f['id']]));}function _0x4b04c3(_0x55f87c){const _0x2754f7=_0x1a0420;_0x553dd5[_0x2754f7('0x11fa')][_0x55f87c['id']]&&(_0x3c8d8a()[_0x2754f7('0x9ef')](_0x553dd5[_0x2754f7('0x11fa')][_0x55f87c['id']],_0x3c8d8a()[_0x2754f7('0x2114')](_0x55f87c,_0xa31077)),_0x3c8d8a()[_0x2754f7('0x9ef')](_0x553dd5[_0x2754f7('0x61d')][_0x55f87c['id']],_0x3c8d8a()['pick'](_0x55f87c,_0xa31077)),_0x55f87c[_0x2754f7('0x20a0')]&&(_0x553dd5[_0x2754f7('0x11fa')][_0x55f87c['id']]['globalStatusTime']=_0x55f87c[_0x2754f7('0x20a0')],_0x553dd5['rpcAgents'][_0x55f87c['id']][_0x2754f7('0x1cd8')]=_0x55f87c[_0x2754f7('0x20a0')]),_0x4957ea(_0x553dd5[_0x2754f7('0x11fa')][_0x55f87c['id']]));}function _0x16d943(_0x5b0cc7){const _0x352e25=_0x1a0420;_0x553dd5[_0x352e25('0x11fa')][_0x553dd5[_0x352e25('0xa53')][_0x5b0cc7[_0x352e25('0x203b')]]]&&(_0x3c8d8a()[_0x352e25('0x9ef')](_0x553dd5['agents'][_0x553dd5['agentInternal'][_0x5b0cc7[_0x352e25('0x203b')]]],_0x3c8d8a()['pick'](_0x5b0cc7,[_0x352e25('0x172'),_0x352e25('0x146b')])),_0x3c8d8a()['merge'](_0x553dd5['rpcAgents'][_0x553dd5[_0x352e25('0xa53')][_0x5b0cc7[_0x352e25('0x203b')]]],_0x3c8d8a()['pick'](_0x5b0cc7,[_0x352e25('0x172'),_0x352e25('0x146b')])));}function _0x3db1a9(_0x9eedfd){const _0x7401ba=_0x1a0420;_0x553dd5[_0x7401ba('0x11fa')][_0x553dd5[_0x7401ba('0xa53')][_0x9eedfd[_0x7401ba('0x203b')]]]&&(_0x553dd5[_0x7401ba('0x11fa')][_0x553dd5['agentInternal'][_0x9eedfd['destaccountcode']]]=_0x3c8d8a()['omit'](_0x553dd5[_0x7401ba('0x11fa')][_0x553dd5['agentInternal'][_0x9eedfd[_0x7401ba('0x203b')]]],['queue',_0x7401ba('0x146b')]),_0x553dd5['rpcAgents'][_0x553dd5[_0x7401ba('0xa53')][_0x9eedfd[_0x7401ba('0x203b')]]]=_0x3c8d8a()[_0x7401ba('0x2797')](_0x553dd5['rpcAgents'][_0x553dd5[_0x7401ba('0xa53')][_0x9eedfd[_0x7401ba('0x203b')]]],[_0x7401ba('0x172'),_0x7401ba('0x146b')]));}function _0x1af20d(_0x4719b1){const _0x5e28d1=_0x1a0420;return _0x32778f['user']['logout']({'id':_0x4719b1['id'],'device':'realtime','agent_id':_0x4719b1['id'],'agent_name':_0x4719b1[_0x5e28d1('0x10ad')]})[_0x5e28d1('0x1964')][_0x5e28d1('0x173b')](function(){const _0x2dc17d=_0x5e28d1;_0xf5591f[_0x2dc17d('0xdfe')]({'title':_0x2dc17d('0x27c6'),'msg':_0x4719b1['fullname']+'\x20\x20properly\x20logout'}),_0x553dd5[_0x2dc17d('0x11fa')][_0x4719b1['id']]&&(_0x553dd5['agents'][_0x4719b1['id']][_0x2dc17d('0xc7a')]=![]),_0x553dd5['rpcAgents'][_0x4719b1['id']]&&(_0x553dd5[_0x2dc17d('0x61d')][_0x4719b1['id']][_0x2dc17d('0xc7a')]=![]),_0x139798();})['catch'](function(_0xc5891a){const _0x50b936=_0x5e28d1;_0xf5591f[_0x50b936('0x15aa')]({'title':_0xc5891a[_0x50b936('0x276f')]?_0x50b936('0x137')+_0xc5891a[_0x50b936('0x276f')]+'\x20-\x20'+_0xc5891a['statusText']:_0x50b936('0x1e36'),'msg':_0xc5891a[_0x50b936('0x1e07')]?JSON[_0x50b936('0x100b')](_0xc5891a[_0x50b936('0x1e07')][_0x50b936('0x67f')]):_0xc5891a['toString']()});});}function _0x4beb6f(_0x10a84d,_0x4d1df5){const _0x593a27=_0x1a0420;return _0x32778f[_0x593a27('0x166f')]['pause']({'id':_0x10a84d['id'],'type':_0x4d1df5})[_0x593a27('0x1964')][_0x593a27('0x173b')](function(_0x1208fc){const _0xcc82=_0x593a27;_0x553dd5[_0xcc82('0x11fa')][_0x10a84d['id']]&&_0x3c8d8a()[_0xcc82('0x9ef')](_0x553dd5[_0xcc82('0x11fa')][_0x10a84d['id']],_0x3c8d8a()[_0xcc82('0x2114')](_0x1208fc,_0xa31077)),_0x553dd5[_0xcc82('0x61d')][_0x10a84d['id']]&&_0x3c8d8a()[_0xcc82('0x9ef')](_0x553dd5['rpcAgents'][_0x10a84d['id']],_0x3c8d8a()[_0xcc82('0x2114')](_0x1208fc,_0xa31077)),_0x4957ea(_0x553dd5['agents'][_0x10a84d['id']]);})[_0x593a27('0x103c')](function(_0x3da854){const _0x5b1cdf=_0x593a27;_0xf5591f[_0x5b1cdf('0x15aa')]({'title':_0x3da854[_0x5b1cdf('0x276f')]?'API:'+_0x3da854[_0x5b1cdf('0x276f')]+_0x5b1cdf('0x160c')+_0x3da854[_0x5b1cdf('0x2696')]:'api.staff.save','msg':_0x3da854[_0x5b1cdf('0x1e07')]?JSON[_0x5b1cdf('0x100b')](_0x3da854[_0x5b1cdf('0x1e07')][_0x5b1cdf('0x67f')]):_0x3da854['toString']()});});}function _0x4e9fdd(_0x4ac509){const _0x5956cc=_0x1a0420;return _0x32778f[_0x5956cc('0x166f')][_0x5956cc('0x9da')]({'id':_0x4ac509['id']})[_0x5956cc('0x1964')]['then'](function(_0x1f71b6){const _0x485c00=_0x5956cc;_0x553dd5[_0x485c00('0x11fa')][_0x4ac509['id']]&&_0x3c8d8a()[_0x485c00('0x9ef')](_0x553dd5[_0x485c00('0x11fa')][_0x4ac509['id']],_0x3c8d8a()['pick'](_0x1f71b6,_0xa31077)),_0x553dd5['rpcAgents'][_0x4ac509['id']]&&_0x3c8d8a()[_0x485c00('0x9ef')](_0x553dd5['rpcAgents'][_0x4ac509['id']],_0x3c8d8a()[_0x485c00('0x2114')](_0x1f71b6,_0xa31077)),_0x4957ea(_0x553dd5[_0x485c00('0x11fa')][_0x4ac509['id']]);})['catch'](function(_0x4b402d){const _0x58c7ce=_0x5956cc;_0xf5591f[_0x58c7ce('0x15aa')]({'title':_0x4b402d[_0x58c7ce('0x276f')]?_0x58c7ce('0x137')+_0x4b402d[_0x58c7ce('0x276f')]+_0x58c7ce('0x160c')+_0x4b402d['statusText']:'api.staff.save','msg':_0x4b402d[_0x58c7ce('0x1e07')]?JSON[_0x58c7ce('0x100b')](_0x4b402d['data'][_0x58c7ce('0x67f')]):_0x4b402d[_0x58c7ce('0x1b75')]()});});}function _0x2b57f1(_0x876698){const _0x1b2a0b=_0x1a0420;_0x4a954c[_0x1b2a0b('0x1cb7')](_0x4a954c[_0x1b2a0b('0x5a4')]()[_0x1b2a0b('0x226c')](!![])[_0x1b2a0b('0x20d6')](_0x1b2a0b('0x526'))[_0x1b2a0b('0xf8b')](_0x1b2a0b('0x22f0'))['ok']('Ok')[_0x1b2a0b('0x21de')](_0x876698));}function _0x1a99d5(_0x45f7a0,_0x53fa55){const _0x593ca3=_0x1a0420;_0x4a954c[_0x593ca3('0x1cb7')]({'controller':_0x593ca3('0xfba'),'controllerAs':'vm','templateUrl':_0x66272d,'parent':angular[_0x593ca3('0xb6d')](_0x43d3c6[_0x593ca3('0x1a5')]),'targetEvent':_0x53fa55,'clickOutsideToClose':!![],'locals':{'agent':_0x45f7a0,'agents':[],'channel':_0x593ca3('0x245'),'direction':_0x593ca3('0x1755'),'crudPermissions':_0x553dd5['crudPermissions']}});}function _0x2474a5(_0x59b9ad){const _0x769df1=_0x1a0420;return _0x59b9ad===_0x769df1('0x1751')||_0x59b9ad==='*pause';}function _0x5dea8e(_0x46bbe8){const _0x2b7e63=_0x1a0420;return _0x46bbe8===_0x2b7e63('0x1751');}function _0x2fa6b9(_0x12c553){const _0x44c5da=_0x1a0420;return _0x12c553===_0x44c5da('0xb3e');}function _0x365433(_0x1198a7){const _0x2dd6d9=_0x1a0420;return _0x1198a7==='idle'||_0x1198a7==='unknown'||_0x1198a7===_0x2dd6d9('0x1d8e')||_0x1198a7===_0x2dd6d9('0x263b')||_0x3c8d8a()[_0x2dd6d9('0x7d5')](_0x1198a7);}function _0x493bdf(_0x38ff63,_0x2792a4){const _0x4b05a9=_0x1a0420;if(_0x2792a4===_0x4b05a9('0x21a8')){if(_0x38ff63[_0x2792a4+_0x4b05a9('0xef8')]!==_0x4b05a9('0x23b'))return _0x38ff63[_0x2792a4+_0x4b05a9('0xef8')];if(_0x38ff63[_0x2792a4+_0x4b05a9('0x2408')])return _0x38ff63[_0x2792a4+_0x4b05a9('0xef8')]=_0x4b05a9('0x1751'),_0x4b05a9('0x1751');return _0x4b05a9('0x23b');}else{if(_0x38ff63[_0x2792a4+_0x4b05a9('0x2408')])return _0x38ff63[_0x2792a4+'Status']=_0x4b05a9('0x1751'),'pause';return _0x38ff63[_0x2792a4+'Status'];}}function _0x4957ea(_0x311f63){const _0x525e08=_0x1a0420;let _0x5afe7='unknown';if(_0x3c8d8a()[_0x525e08('0x3ff')]([_0x493bdf(_0x311f63,_0x525e08('0x21a8')),_0x493bdf(_0x311f63,_0x525e08('0x8c5')),_0x493bdf(_0x311f63,_0x525e08('0x108a')),_0x493bdf(_0x311f63,_0x525e08('0xab2')),_0x493bdf(_0x311f63,_0x525e08('0x1a8f')),_0x493bdf(_0x311f63,_0x525e08('0x245')),_0x493bdf(_0x311f63,_0x525e08('0x16d'))],_0x2474a5))_0x5afe7=_0x525e08('0x1751');else{if(_0x3c8d8a()[_0x525e08('0x1ec')]([_0x493bdf(_0x311f63,_0x525e08('0x21a8')),_0x493bdf(_0x311f63,_0x525e08('0x8c5')),_0x493bdf(_0x311f63,_0x525e08('0x108a')),_0x493bdf(_0x311f63,_0x525e08('0xab2')),_0x493bdf(_0x311f63,'sms'),_0x493bdf(_0x311f63,_0x525e08('0x245')),_0x493bdf(_0x311f63,_0x525e08('0x16d'))],_0x2474a5))_0x5afe7=_0x525e08('0xb3e');else _0x3c8d8a()['every']([_0x493bdf(_0x311f63,_0x525e08('0x21a8')),_0x493bdf(_0x311f63,_0x525e08('0x8c5')),_0x493bdf(_0x311f63,_0x525e08('0x108a')),_0x493bdf(_0x311f63,_0x525e08('0xab2')),_0x493bdf(_0x311f63,'sms'),_0x493bdf(_0x311f63,_0x525e08('0x245')),_0x493bdf(_0x311f63,_0x525e08('0x16d'))],_0x365433)?_0x5afe7='idle':_0x5afe7=_0x525e08('0xe2b');}_0x311f63[_0x525e08('0xd7e')]!==_0x5afe7&&(_0x311f63[_0x525e08('0xd7e')]=_0x5afe7,_0x311f63[_0x525e08('0xb9c')]?(_0x311f63[_0x525e08('0xb9c')]=![],_0x311f63[_0x525e08('0x1cd8')]=_0x2474a5(_0x5afe7)?_0x3c8d8a()[_0x525e08('0x1acd')](_0x156524()(_0x311f63[_0x525e08('0x20a0')])['format']('x')):_0x3c8d8a()[_0x525e08('0x18be')]([_0x311f63[_0x525e08('0x1c89')],_0x311f63[_0x525e08('0x2816')],_0x311f63[_0x525e08('0x22a')],_0x311f63[_0x525e08('0x2176')],_0x311f63[_0x525e08('0x15b6')],_0x311f63[_0x525e08('0x205')],_0x311f63['faxStatusTime']])):_0x311f63['globalStatusTime']=_0x3c8d8a()[_0x525e08('0x1acd')](_0x156524()()[_0x525e08('0xddc')]('x')));}function _0x18f861(_0x335a80){const _0x553e28=_0x1a0420,_0x578080=_0x3c8d8a()['startsWith'](_0x553dd5[_0x553e28('0xc49')][_0x553e28('0x144a')],'-')?_0x553e28('0x231d'):'asc';return _0x3c8d8a()[_0x553e28('0x1d16')](_0x335a80,[_0x553dd5[_0x553e28('0xc49')][_0x553e28('0x144a')][_0x553e28('0x166c')]('-','')],[_0x578080]);}function _0x7804e7(){const _0x5559ff=_0x1a0420;_0x44e1c5&&(_0x25d4ea[_0x5559ff('0x1e1f')](_0x44e1c5),_0x44e1c5=null);}function _0x4e9318(_0x7a72a2,_0x1c6f9d){const _0xb7a5d3=_0x1a0420;return _0x32778f[_0xb7a5d3('0x166f')][_0xb7a5d3('0x1842')]({'id':_0x7a72a2['id']},{'screenrecording':_0x1c6f9d})[_0xb7a5d3('0x1964')][_0xb7a5d3('0x103c')](function(_0x29a7b7){const _0x42ebba=_0xb7a5d3;_0xf5591f[_0x42ebba('0x15aa')]({'title':_0x29a7b7[_0x42ebba('0x276f')]?_0x42ebba('0x137')+_0x29a7b7['status']+_0x42ebba('0x160c')+_0x29a7b7[_0x42ebba('0x2696')]:_0x42ebba('0x2134'),'msg':_0x29a7b7[_0x42ebba('0x1e07')]?JSON[_0x42ebba('0x100b')](_0x29a7b7['data'][_0x42ebba('0x67f')]):_0x29a7b7[_0x42ebba('0x1b75')]()});});}_0x255adb[_0x1a0420('0xbf6')]('$destroy',function(){const _0x3d5a3a=_0x1a0420;_0x517e33[_0x3d5a3a('0x251c')](_0x3d5a3a('0x1f4c')),_0x517e33['removeAllListeners'](_0x3d5a3a('0x2048')),_0x517e33[_0x3d5a3a('0x251c')]('user:agentconnect'),_0x517e33[_0x3d5a3a('0x251c')](_0x3d5a3a('0xa73')),_0x7804e7();});}const _0x3eae47=_0x2f6b76,_0x37afa1=_0x21a6a1['p']+_0x566993('0x169d'),_0x399aad=_0x21a6a1['p']+_0x566993('0x13a0');_0x47d633[_0x566993('0x17bb')]=['$scope',_0x566993('0x24b5'),_0x566993('0x1fe5'),'$q',_0x566993('0x1b82'),_0x566993('0x1b13'),_0x566993('0xeae'),'rpcQueues',_0x566993('0xbd4'),_0x566993('0x2fc'),_0x566993('0x1558'),'userProfile',_0x566993('0x170e'),_0x566993('0x1600')];function _0x47d633(_0xd41f00,_0x3857f1,_0x210b2d,_0x1ca5d5,_0x3c1c02,_0x42d69d,_0xc96679,_0xabc782,_0x29c918,_0x268ff1,_0x5d10ae,_0x652ee8,_0x1fde91,_0x422f4f){const _0x25d27e=_0x566993,_0x1213b6=this,_0x4b6640=[_0x25d27e('0x34e'),'available',_0x25d27e('0x1b68'),_0x25d27e('0x157c'),_0x25d27e('0x1e8d'),_0x25d27e('0x203d'),_0x25d27e('0x67f'),_0x25d27e('0x3ba'),_0x25d27e('0xa87'),'Trunk',_0x25d27e('0x1898')];_0x1213b6['currentUser']=_0x422f4f[_0x25d27e('0x14d4')](),_0x1213b6[_0x25d27e('0x1a2f')]=_0xc96679['count']?_0xc96679[_0x25d27e('0x1a2f')]:0x0,_0x1213b6['queues']=_0xc96679?_0x3c8d8a()['keyBy'](_0xc96679[_0x25d27e('0x6aa')]?_0xc96679[_0x25d27e('0x6aa')]:[],'id'):{},_0x1213b6[_0x25d27e('0x2156')]=_0xabc782?_0x3c8d8a()[_0x25d27e('0x128')](_0xabc782[_0x25d27e('0x6aa')]?_0xabc782[_0x25d27e('0x6aa')]:[],'id'):{},_0x1213b6[_0x25d27e('0x257b')]=_0x652ee8,_0x1213b6[_0x25d27e('0x170e')]=_0x1fde91&&_0x1fde91[_0x25d27e('0x1a2f')]==0x1?_0x1fde91[_0x25d27e('0x6aa')][0x0]:null,_0x1213b6[_0x25d27e('0x1dc1')]=_0x422f4f[_0x25d27e('0xde6')](_0x1213b6['userProfileSection']?_0x1213b6['userProfileSection']['crudPermissions']:null);_0x422f4f[_0x25d27e('0x1b4e')]('admin')?_0x1213b6[_0x25d27e('0xc49')]={'type':_0x25d27e('0x1755'),'sort':_0x25d27e('0x1769'),'limit':0xa,'page':0x1}:_0x1213b6[_0x25d27e('0xc49')]={'id':_0x1213b6[_0x25d27e('0x155f')]['id'],'channel':_0x25d27e('0x245'),'type':'inbound','sort':'-updatedAt','limit':0xa,'page':0x1};_0x1213b6[_0x25d27e('0xdfe')]=_0x493606,_0x1213b6[_0x25d27e('0x115e')]=_0x4f4408,_0x1213b6[_0x25d27e('0x2445')]=_0xc3f0ff,_0x1213b6['agentAdd']=_0x42cb90,_0x1213b6[_0x25d27e('0x578')]=_0x59a981,_0x1213b6['onSave']=_0x409aef,_0x1213b6[_0x25d27e('0x6f6')]=_0x383476,_0x1213b6[_0x25d27e('0xc12')]=_0x18ffad,_0x1213b6[_0x25d27e('0x255')]=_0x1dc466,_0x1213b6[_0x25d27e('0x5')]=_0x1d0771,_0x1213b6[_0x25d27e('0x1e70')]=_0x1f345a,_0x1213b6[_0x25d27e('0x2444')]=_0x301933,_0x1213b6['order']=[],_0x3c8d8a()[_0x25d27e('0x33d')](_0x1213b6[_0x25d27e('0xeae')],function(_0x5a38a2){_0x1213b6['order']['push'](_0x5a38a2['id']);}),_0x268ff1['on'](_0x25d27e('0xa28'),_0x1213b6['onSave']),_0x268ff1['on']('userWhatsappQueue:save',_0x1213b6[_0x25d27e('0x6f6')]),_0x268ff1['on'](_0x25d27e('0x169a'),_0x1213b6[_0x25d27e('0xc12')]),_0x268ff1['on'](_0x25d27e('0x2048'),_0x1213b6['onPause']),_0x268ff1['on']('userVoiceQueue:remove',_0x1213b6[_0x25d27e('0x1e70')]),_0x268ff1['on'](_0x25d27e('0x1379'),_0x1213b6[_0x25d27e('0x5')]);function _0x301933(){const _0x4c2520=_0x25d27e,_0x32c9ad=[];return _0x3c8d8a()['forIn'](_0x1213b6['queues'],function(_0x2c6e9e,_0x35cfdd){const _0x264ffa=a0_0xde5e;_0x2c6e9e[_0x264ffa('0x1898')]=0x0,_0x2c6e9e[_0x264ffa('0x1307')]=0x0,_0x1213b6['queues'][_0x35cfdd][_0x264ffa('0x11fa')]={},_0x32c9ad[_0x264ffa('0x18bb')](_0x29c918[_0x264ffa('0x9cb')][_0x264ffa('0x230a')]({'id':_0x35cfdd})[_0x264ffa('0x1964')]),_0x1213b6['rpcQueues'][_0x35cfdd]&&_0x3c8d8a()['merge'](_0x2c6e9e,_0x3c8d8a()['pick'](_0x1213b6[_0x264ffa('0x2156')][_0x35cfdd],_0x4b6640));}),_0x1ca5d5['all'](_0x32c9ad)[_0x4c2520('0x173b')](function(_0x20956c){const _0xab246b=_0x4c2520;for(let _0x5cf52f=0x0;_0x5cf52f<_0x20956c[_0xab246b('0x543')];_0x5cf52f+=0x1){for(let _0x379c0e=0x0;_0x379c0e<_0x20956c[_0x5cf52f][_0xab246b('0x6aa')]['length'];_0x379c0e++){_0x20956c[_0x5cf52f]['rows'][_0x379c0e][_0xab246b('0x1898')]&&_0x1213b6[_0xab246b('0xeae')][_0x20956c[_0x5cf52f][_0xab246b('0x6aa')][_0x379c0e]['WhatsappQueueId']][_0xab246b('0x1898')]++,_0x1213b6[_0xab246b('0xeae')][_0x20956c[_0x5cf52f][_0xab246b('0x6aa')][_0x379c0e]['WhatsappQueueId']][_0xab246b('0x1307')]++,_0x1213b6[_0xab246b('0xeae')][_0x20956c[_0x5cf52f][_0xab246b('0x6aa')][_0x379c0e][_0xab246b('0x1d58')]][_0xab246b('0x11fa')][_0x20956c[_0x5cf52f]['rows'][_0x379c0e]['UserId']]=_0x20956c[_0x5cf52f][_0xab246b('0x6aa')][_0x379c0e][_0xab246b('0x1d58')];}}})[_0x4c2520('0x103c')](function(_0x2e729b){console['error'](_0x2e729b);});}function _0x409aef(_0x5b9e0a){const _0x476be7=_0x25d27e;_0x1213b6['queues'][_0x5b9e0a['id']]&&_0x3c8d8a()['merge'](_0x1213b6[_0x476be7('0xeae')][_0x5b9e0a['id']],_0x3c8d8a()[_0x476be7('0x2114')](_0x5b9e0a,_0x4b6640));}function _0x383476(_0x1637aa){const _0xd63f=_0x25d27e;_0x1213b6[_0xd63f('0xeae')][_0x1637aa[_0xd63f('0x1d58')]]&&_0x1213b6[_0xd63f('0xeae')][_0x1637aa[_0xd63f('0x1d58')]][_0xd63f('0x1307')]++;}function _0x18ffad(_0x5f1198){const _0xfdd9db=_0x25d27e;_0x1213b6[_0xfdd9db('0xeae')][_0x5f1198[_0xfdd9db('0x1d58')]]&&_0x1213b6[_0xfdd9db('0xeae')][_0x5f1198['WhatsappQueueId']][_0xfdd9db('0x1307')]--;}function _0x1dc466(_0x3e664c){const _0x761187=_0x25d27e;console[_0x761187('0xe37')](_0x761187('0x255'),_0x3e664c);if(_0x3e664c['voicePause'])_0x3c8d8a()[_0x761187('0x33d')](_0x1213b6[_0x761187('0xeae')],function(_0x45859d){const _0x4dc5dd=_0x761187;_0x45859d['agents'][_0x3e664c['id']]&&(_0x45859d['paused']+=0x1,console[_0x4dc5dd('0xe37')](_0x4dc5dd('0x1751')));});else!_0x3e664c[_0x761187('0x67c')]&&_0x3c8d8a()[_0x761187('0x33d')](_0x1213b6[_0x761187('0xeae')],function(_0x58f29b){const _0x4184ce=_0x761187;_0x58f29b[_0x4184ce('0x11fa')][_0x3e664c['id']]&&(_0x58f29b[_0x4184ce('0x1898')]>0x0&&(_0x58f29b['paused']-=0x1,console['log'](_0x4184ce('0x9da'))));});}function _0x1d0771(_0x2b94db){const _0x3d5255=_0x25d27e;console[_0x3d5255('0xe37')](_0x3d5255('0x1e15'),_0x2b94db),_0x1213b6[_0x3d5255('0xeae')][_0x2b94db['WhatsappQueueId']]&&(_0x1213b6[_0x3d5255('0xeae')][_0x2b94db[_0x3d5255('0x1d58')]][_0x3d5255('0x1307')]+=0x1,_0x1213b6[_0x3d5255('0xeae')][_0x2b94db[_0x3d5255('0x1d58')]][_0x3d5255('0x11fa')][_0x2b94db[_0x3d5255('0x181c')]]=_0x2b94db[_0x3d5255('0x1d58')]);}function _0x1f345a(_0x5c71b5){const _0x2ced7b=_0x25d27e;console['log'](_0x2ced7b('0x1e70'),_0x5c71b5),_0x1213b6[_0x2ced7b('0xeae')][_0x5c71b5[_0x2ced7b('0x1d58')]]&&_0x1213b6[_0x2ced7b('0xeae')][_0x5c71b5[_0x2ced7b('0x1d58')]][_0x2ced7b('0x1307')]>0x0&&(_0x1213b6[_0x2ced7b('0xeae')][_0x5c71b5[_0x2ced7b('0x1d58')]]['loggedInDb']-=0x1,delete _0x1213b6[_0x2ced7b('0xeae')][_0x5c71b5['WhatsappQueueId']]['agents'][_0x5c71b5[_0x2ced7b('0x181c')]]);}let _0x4b3a24=!![],_0x2a5c04=0x1;_0xd41f00[_0x25d27e('0x1bdb')](_0x25d27e('0x157b'),function(_0x3536fb,_0x23167c){const _0x564e23=_0x25d27e;_0x4b3a24?_0x3857f1(function(){_0x4b3a24=![];}):(!_0x23167c&&(_0x2a5c04=_0x1213b6[_0x564e23('0xc49')][_0x564e23('0x182e')]),_0x3536fb!==_0x23167c&&(_0x1213b6[_0x564e23('0xc49')]['page']=0x1),!_0x3536fb&&(_0x1213b6[_0x564e23('0xc49')][_0x564e23('0x182e')]=_0x2a5c04),_0x1213b6['getQueues']());});function _0x493606(_0x1963c8){const _0x155da6=_0x25d27e;_0x1213b6[_0x155da6('0x1a2f')]=_0x1963c8[_0x155da6('0x1a2f')],_0x1213b6[_0x155da6('0xeae')]=_0x1963c8?_0x3c8d8a()[_0x155da6('0x128')](_0x1963c8['rows']?_0x1963c8[_0x155da6('0x6aa')]:[],'id'):{};if(_0x1963c8[_0x155da6('0x6aa')]){_0x1213b6[_0x155da6('0x144a')]=[];for(let _0x3386e7=0x0;_0x3386e7<_0x1963c8[_0x155da6('0x6aa')][_0x155da6('0x543')];_0x3386e7++){_0x1213b6[_0x155da6('0x144a')][_0x155da6('0x18bb')](_0x1963c8[_0x155da6('0x6aa')][_0x3386e7]['id']);}}_0x301933();}function _0x4f4408(){const _0x7285f1=_0x25d27e;_0x1213b6['query'][_0x7285f1('0x17f0')]=(_0x1213b6[_0x7285f1('0xc49')][_0x7285f1('0x182e')]-0x1)*_0x1213b6[_0x7285f1('0xc49')][_0x7285f1('0x3e')],_0x422f4f['hasRole'](_0x7285f1('0x79b'))?_0x1213b6[_0x7285f1('0x2219')]=_0x29c918[_0x7285f1('0x9cb')]['get'](_0x1213b6[_0x7285f1('0xc49')],_0x493606)[_0x7285f1('0x1964')]:(_0x1213b6[_0x7285f1('0xc49')]['id']=_0x1213b6[_0x7285f1('0x257b')]['id'],_0x1213b6[_0x7285f1('0xc49')]['section']=_0x7285f1('0xff6'),_0x1213b6[_0x7285f1('0x2219')]=_0x29c918[_0x7285f1('0x257b')][_0x7285f1('0x135b')](_0x1213b6['query'],_0x493606)[_0x7285f1('0x1964')]);}function _0xc3f0ff(_0x149e1c,_0x2b58f3){const _0x209212=_0x25d27e;_0x210b2d[_0x209212('0x1cb7')]({'controller':'CreateOrEditWhatsappQueueDialogController','controllerAs':'vm','templateUrl':_0x37afa1,'parent':angular[_0x209212('0xb6d')](_0x3c1c02[_0x209212('0x1a5')]),'targetEvent':_0x149e1c,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x2b58f3,'whatsappQueues':_0x3c8d8a()[_0x209212('0xcaf')](_0x1213b6['queues']),'license':null,'setting':null,'crudPermissions':_0x1213b6['crudPermissions']}});}function _0x42cb90(_0x3f1a4f,_0x380073){const _0x347cf3=_0x25d27e;_0x210b2d[_0x347cf3('0x1cb7')]({'controller':'WhatsappQueueagentaddController','controllerAs':'vm','templateUrl':_0x399aad,'parent':angular[_0x347cf3('0xb6d')](_0x3c1c02['body']),'targetEvent':_0x3f1a4f,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x380073,'whatsappQueues':_0x1213b6[_0x347cf3('0xeae')]?_0x1213b6[_0x347cf3('0xeae')][_0x347cf3('0x6aa')]:[],'realtime':![],'crudPermissions':_0x1213b6[_0x347cf3('0x1dc1')]}});}function _0x59a981(_0x30727c){const _0x8e4467=_0x25d27e;return _0x29c918[_0x8e4467('0x9cb')]['update'](_0x30727c)[_0x8e4467('0x1964')][_0x8e4467('0x173b')](function(){const _0x1af908=_0x8e4467;_0x5d10ae[_0x1af908('0xdfe')]({'title':'Queue\x20properly\x20updated!','msg':_0x30727c['name']?_0x30727c['name']+_0x1af908('0x1fd6'):''});})[_0x8e4467('0x103c')](function(_0xf367f3){const _0x3b1a4b=_0x8e4467;_0x5d10ae[_0x3b1a4b('0x15aa')]({'title':_0x3b1a4b('0xb5f'),'msg':_0xf367f3[_0x3b1a4b('0x67f')]});});}_0xd41f00[_0x25d27e('0xbf6')](_0x25d27e('0x16d2'),function(){const _0x98e7e2=_0x25d27e;_0x268ff1[_0x98e7e2('0x251c')](_0x98e7e2('0xa28')),_0x268ff1[_0x98e7e2('0x251c')]('userWhatsappQueue:remove'),_0x268ff1[_0x98e7e2('0x251c')]('userWhatsappQueue:save'),_0x268ff1['removeAllListeners']('user:update'),_0x268ff1[_0x98e7e2('0x251c')](_0x98e7e2('0x22b7')),_0x268ff1[_0x98e7e2('0x251c')](_0x98e7e2('0x1379'));});}const _0x3b56f8=_0x47d633;function _0xa232e7(){const _0x3ae3b8=_0x566993;return{'status':{'registered':_0x3ae3b8('0xdcf'),'unregistered':_0x3ae3b8('0xc5a'),'lagged':_0x3ae3b8('0xc5a'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':'red-300-fg\x20icon-close-circle','unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x3ae3b8('0xd0a'),'not_inuse':_0x3ae3b8('0x1dd'),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x3ae3b8('0x90c'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':_0x3ae3b8('0xd0a'),'ringing':_0x3ae3b8('0x4da'),'ringinuse':_0x3ae3b8('0x4da'),'onhold':_0x3ae3b8('0x244d')},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x3ae3b8('0x6ed'),'hangup':_0x3ae3b8('0x1797')},'channelStatusOut':{'ring':_0x3ae3b8('0x1766'),'up':_0x3ae3b8('0x6ed'),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x59c1fd=_0xa232e7;_0x59fb60[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x2fc')];function _0x59fb60(_0x1e0850,_0x452582,_0x520919){const _0x5a9183=_0x566993,_0x243173=this;_0x520919[_0x5a9183('0x1878')](),_0x520919['connect'](),_0x243173[_0x5a9183('0xd5f')]=0x0;switch(_0x452582[_0x5a9183('0x9fe')][_0x5a9183('0x10ad')]){case _0x5a9183('0x14aa'):_0x243173['selectedTab']=0x0;break;case'app.whatsapp.realtime.queues':_0x243173[_0x5a9183('0xd5f')]=0x1;break;default:_0x243173['selectedTab']=0x0,_0x452582['go']('app.whatsapp.realtime.agents');}_0x1e0850[_0x5a9183('0x1bdb')]('vm.selectedTab',function(_0x418166,_0x39de06){const _0x41a8be=_0x5a9183;if(_0x418166!==_0x39de06)switch(_0x418166){case 0x0:_0x452582['go'](_0x41a8be('0x14aa'));break;case 0x1:_0x452582['go'](_0x41a8be('0x9de'));break;default:_0x452582['go'](_0x41a8be('0x14aa'));break;}});}const _0x93bf67=_0x59fb60;_0x331795[_0x566993('0x17bb')]=[_0x566993('0xccc')];function _0x331795(_0x16ebf5){const _0x3ce490=_0x566993;_0x16ebf5[_0x3ce490('0x1a49')](_0x3ce490('0x227a'),{'url':_0x3ce490('0x213'),'views':{'content@app':{'templateUrl':_0x1ca43b,'controller':_0x3ce490('0x2587')}},'resolve':{'userProfile':['apiResolver',_0x3ce490('0x1600'),function(_0x433e8b,_0x2734d8){const _0x3adc2c=_0x3ce490;return _0x2734d8['hasRole'](_0x3adc2c('0x79b'))?null:_0x433e8b[_0x3adc2c('0x155b')](_0x3adc2c('0x1f20'),{'fields':_0x3adc2c('0x19dd'),'id':_0x2734d8[_0x3adc2c('0x14d4')]()[_0x3adc2c('0x1946')]});}],'userProfileSection':[_0x3ce490('0x2401'),_0x3ce490('0x1600'),function(_0xf14e6a,_0x38a140){const _0x17f116=_0x3ce490;return _0x38a140[_0x17f116('0x1b4e')](_0x17f116('0x79b'))?null:_0xf14e6a[_0x17f116('0x155b')]('userProfileSection@get',{'fields':_0x17f116('0x1348'),'userProfileId':_0x38a140[_0x17f116('0x14d4')]()[_0x17f116('0x1946')],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0x3ce490('0x1a49')](_0x3ce490('0x14aa'),{'url':_0x3ce490('0x1943'),'controller':_0x3ce490('0xee0'),'templateUrl':_0x5c35ba,'resolve':{'pauses':[_0x3ce490('0x2401'),function(_0x482119){const _0x37ac69=_0x3ce490;return _0x482119[_0x37ac69('0x155b')](_0x37ac69('0x176a'),{'nolimit':!![]});}],'agents':['apiResolver',_0x3ce490('0x1600'),function(_0x407b39,_0x4303b9){const _0x4223be=_0x3ce490;return _0x4303b9[_0x4223be('0x1b4e')](_0x4223be('0x79b'))?_0x407b39[_0x4223be('0x155b')]('user@get',{'fields':_0x4223be('0xd6b'),'role':_0x4223be('0x7b0'),'sort':_0x4223be('0x572'),'nolimit':!![]}):_0x407b39['resolve'](_0x4223be('0x14b3'),{'id':_0x4303b9['getCurrentUser']()[_0x4223be('0x1946')],'section':_0x4223be('0x1272'),'fields':_0x4223be('0xd6b'),'role':'agent','sort':_0x4223be('0x572'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x3ce490('0x1600'),function(_0x4117fa,_0x3c6488){const _0x1b35c4=_0x3ce490;return _0x3c6488['hasRole'](_0x1b35c4('0x79b'))?null:_0x4117fa[_0x1b35c4('0x155b')](_0x1b35c4('0x1f20'),{'fields':_0x1b35c4('0x19dd'),'id':_0x3c6488[_0x1b35c4('0x14d4')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x3ce490('0x1600'),function(_0x57a54e,_0x2d0734){const _0x1a18d9=_0x3ce490;return _0x2d0734['hasRole'](_0x1a18d9('0x79b'))?null:_0x57a54e[_0x1a18d9('0x155b')](_0x1a18d9('0x40'),{'fields':_0x1a18d9('0x1348'),'userProfileId':_0x2d0734[_0x1a18d9('0x14d4')]()[_0x1a18d9('0x1946')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x4241a0){const _0x4b5d9a=_0x3ce490;return _0x4241a0[_0x4b5d9a('0x155b')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x83e})['state'](_0x3ce490('0x9de'),{'url':_0x3ce490('0x1bb0'),'controller':'QueuesWhatsappRealtimeController\x20as\x20vm','templateUrl':_0x34de40,'resolve':{'queues':[_0x3ce490('0x2401'),'Auth',function(_0x3c403b,_0x132720){const _0x3f0bce=_0x3ce490;return _0x132720[_0x3f0bce('0x1b4e')]('admin')?_0x3c403b['resolve'](_0x3f0bce('0x1cd'),{'type':_0x3f0bce('0x1755'),'sort':_0x3f0bce('0x1769'),'limit':0xa,'offset':0x0}):_0x3c403b['resolve'](_0x3f0bce('0x14b3'),{'id':_0x132720[_0x3f0bce('0x14d4')]()[_0x3f0bce('0x1946')],'section':'WhatsappQueues','channel':_0x3f0bce('0x245'),'type':'inbound','sort':_0x3f0bce('0x1769'),'limit':0xa,'page':0x1});}],'userProfile':[_0x3ce490('0x2401'),_0x3ce490('0x1600'),function(_0x11e454,_0x234c68){const _0x14be04=_0x3ce490;return _0x234c68[_0x14be04('0x1b4e')](_0x14be04('0x79b'))?null:_0x11e454['resolve'](_0x14be04('0x1f20'),{'fields':_0x14be04('0x19dd'),'id':_0x234c68[_0x14be04('0x14d4')]()[_0x14be04('0x1946')]});}],'userProfileSection':[_0x3ce490('0x2401'),_0x3ce490('0x1600'),function(_0x190bb3,_0x506826){const _0x3b58f8=_0x3ce490;return _0x506826[_0x3b58f8('0x1b4e')](_0x3b58f8('0x79b'))?null:_0x190bb3[_0x3b58f8('0x155b')]('userProfileSection@get',{'fields':_0x3b58f8('0x1348'),'userProfileId':_0x506826['getCurrentUser']()[_0x3b58f8('0x1946')],'sectionId':0x835});}],'rpcQueues':[_0x3ce490('0x2401'),function(_0x5f4dbf){const _0x5ead58=_0x3ce490;return _0x5f4dbf[_0x5ead58('0x155b')](_0x5ead58('0x14b2'));}]},'authenticate':!![],'permissionId':0x83e});}angular['module'](_0x566993('0x227a'),[])[_0x566993('0xea9')](_0x331795)['controller']('AgentsWhatsappRealtimeController',_0x3eae47)[_0x566993('0x1e65')](_0x566993('0x1425'),_0x3b56f8)[_0x566993('0x235c')](_0x566993('0x1bf5'),_0x59c1fd)['controller'](_0x566993('0xb3b'),_0x93bf67);const _0x106118=_0x21a6a1['p']+_0x566993('0x583'),_0x516363=_0x21a6a1['p']+_0x566993('0x23f1'),_0x50342b=_0x21a6a1['p']+_0x566993('0xeff'),_0x15e734=_0x21a6a1['p']+_0x566993('0xea0');_0x2fc5a5[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0x2154'),_0x566993('0x234'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),'crudPermissions'];function _0x2fc5a5(_0x4a93cf,_0x59d830,_0x18c905,_0x1f9f28,_0x4d54a3,_0x3bc811,_0x36ee16,_0x34c774,_0x3f4091,_0xd29d35,_0x9a553c,_0x27d0b6,_0x384c7f,_0x264a38){const _0x4eb53c=_0x566993,_0x5bdba2=this;_0x5bdba2[_0x4eb53c('0x155f')]=_0x9a553c[_0x4eb53c('0x14d4')](),_0x5bdba2[_0x4eb53c('0x1d4a')]=[],_0x5bdba2[_0x4eb53c('0x251')]=_0x384c7f,_0x5bdba2[_0x4eb53c('0x1a29')]=_0x27d0b6,_0x5bdba2[_0x4eb53c('0x1dc1')]=_0x264a38,_0x5bdba2[_0x4eb53c('0xb0')]={},_0x5bdba2[_0x4eb53c('0x644')]=_0x5bdba2['setting']&&_0x5bdba2[_0x4eb53c('0x251')][_0x4eb53c('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5bdba2[_0x4eb53c('0x20d6')]=_0x4eb53c('0x12d1'),_0x5bdba2[_0x4eb53c('0x234')]=angular[_0x4eb53c('0x2e3')](_0x3f4091),_0x5bdba2[_0x4eb53c('0x2154')]=_0x34c774,_0x5bdba2['newWhatsappAccount']=![];!_0x5bdba2[_0x4eb53c('0x234')]&&(_0x5bdba2[_0x4eb53c('0x234')]={'remote':_0x18c905[_0x4eb53c('0x375')]()+'://'+_0x18c905[_0x4eb53c('0x4d1')]()+(_0x18c905[_0x4eb53c('0xe0d')]()?':'+_0x18c905[_0x4eb53c('0xe0d')]():''),'type':_0x4eb53c('0x8d2'),'notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x5bdba2['title']=_0x4eb53c('0x662'),_0x5bdba2[_0x4eb53c('0x2ce')]=!![]);_0x59d830['params']['id']&&(_0x5bdba2[_0x4eb53c('0x234')][_0x4eb53c('0x2720')]=_0x59d830[_0x4eb53c('0x197a')]['id']);_0x5bdba2[_0x4eb53c('0x595')]=_0x370661,_0x5bdba2[_0x4eb53c('0xd9e')]=_0x2b18e1,_0x5bdba2['deleteWhatsappAccount']=_0x51c097,_0x5bdba2['getDateFromString']=_0x4bd7e4,_0x5bdba2[_0x4eb53c('0x18e2')]=_0x206426,_0x9a553c[_0x4eb53c('0x1b4e')](_0x4eb53c('0x79b'))?_0xd29d35[_0x4eb53c('0xbb3')][_0x4eb53c('0x1d97')]({'fields':'id,name','sort':'name'})[_0x4eb53c('0x1964')][_0x4eb53c('0x173b')](function(_0xf81cdb){const _0x542300=_0x4eb53c;_0x5bdba2['lists']=_0xf81cdb[_0x542300('0x6aa')]||[];})['catch'](function(_0x1ec7dd){const _0x4307c3=_0x4eb53c;_0x36ee16['error']({'title':_0x1ec7dd[_0x4307c3('0x276f')]?_0x4307c3('0x137')+_0x1ec7dd[_0x4307c3('0x276f')]+_0x4307c3('0x160c')+_0x1ec7dd[_0x4307c3('0x2696')]:_0x4307c3('0x1d5c'),'msg':_0x1ec7dd['data']?JSON['stringify'](_0x1ec7dd[_0x4307c3('0x1e07')]):_0x1ec7dd[_0x4307c3('0x1b75')]()});}):_0xd29d35[_0x4eb53c('0xbb3')]['get']({'fields':'id,name','sort':_0x4eb53c('0x10ad')})[_0x4eb53c('0x1964')]['then'](function(_0xac9ff0){const _0x44c286=_0x4eb53c;_0x5bdba2[_0x44c286('0x9e8')]=_0xac9ff0[_0x44c286('0x6aa')]||[];})[_0x4eb53c('0x173b')](function(){const _0x32fd16=_0x4eb53c;return _0xd29d35[_0x32fd16('0x170e')][_0x32fd16('0x1d97')]({'userProfileId':_0x5bdba2[_0x32fd16('0x155f')][_0x32fd16('0x1946')],'sectionId':0x12d})[_0x32fd16('0x1964')];})[_0x4eb53c('0x173b')](function(_0x3e96f9){const _0x32b7a6=_0x4eb53c,_0xf3b738=_0x3e96f9&&_0x3e96f9[_0x32b7a6('0x6aa')]?_0x3e96f9[_0x32b7a6('0x6aa')][0x0]:null;if(!_0xf3b738){const _0x1c4c32=[];let _0x3b1253=null;_0x5bdba2['whatsappAccount']&&(_0x3b1253=_0x3c8d8a()['find'](_0x5bdba2[_0x32b7a6('0x9e8')],{'id':Number(_0x5bdba2[_0x32b7a6('0x234')]['ListId'])}));for(let _0x5251b7=0x0;_0x5251b7<_0x5bdba2[_0x32b7a6('0x9e8')]['length'];_0x5251b7++){_0x3b1253&&_0x5bdba2[_0x32b7a6('0x9e8')][_0x5251b7]['id']===_0x3b1253['id']&&(_0x5bdba2['lists'][_0x5251b7][_0x32b7a6('0x268e')]=![],_0x1c4c32['push'](_0x5bdba2[_0x32b7a6('0x9e8')][_0x5251b7]));}_0x5bdba2['lists']=_0x1c4c32;}else{if(!_0xf3b738[_0x32b7a6('0x273e')])return _0xd29d35['userProfileResource']['get']({'sectionId':_0xf3b738['id']})['$promise'][_0x32b7a6('0x173b')](function(_0x513139){const _0x2f935a=_0x32b7a6,_0xb18d2c=_0x3c8d8a()[_0x2f935a('0x8a2')](_0x513139[_0x2f935a('0x6aa')],function(_0x28e734){const _0x5b92ef=_0x2f935a;return _0x3c8d8a()[_0x5b92ef('0x18ab')](_0x5bdba2['lists'],{'id':_0x28e734[_0x5b92ef('0x1ce0')]});});let _0x2c6532=null;_0x5bdba2['whatsappAccount']&&(_0x2c6532=_0x3c8d8a()['find'](_0x5bdba2[_0x2f935a('0x9e8')],{'id':Number(_0x5bdba2[_0x2f935a('0x234')][_0x2f935a('0xef2')])}));if(_0x2c6532&&!_0x3c8d8a()[_0x2f935a('0x1ec')](_0xb18d2c,['id',_0x2c6532['id']])){const _0x37138d=_0x3c8d8a()[_0x2f935a('0x18ab')](_0x5bdba2['lists'],{'id':_0x2c6532['id']});_0x37138d['canSelect']=![],_0xb18d2c['push'](_0x37138d);}_0x5bdba2['lists']=_0xb18d2c;});}})['catch'](function(_0x1ef978){const _0x13eb3b=_0x4eb53c;_0x36ee16[_0x13eb3b('0x15aa')]({'title':_0x1ef978[_0x13eb3b('0x276f')]?_0x13eb3b('0x137')+_0x1ef978['status']+_0x13eb3b('0x160c')+_0x1ef978['statusText']:_0x13eb3b('0x1292'),'msg':_0x1ef978[_0x13eb3b('0x1e07')]?JSON[_0x13eb3b('0x100b')](_0x1ef978[_0x13eb3b('0x1e07')]):_0x1ef978[_0x13eb3b('0x1b75')]()});}),_0x9a553c['hasRole'](_0x4eb53c('0x79b'))?_0xd29d35['pause'][_0x4eb53c('0x1d97')]({'fields':_0x4eb53c('0x901'),'sort':_0x4eb53c('0x10ad'),'nolimit':'true'})[_0x4eb53c('0x1964')][_0x4eb53c('0x173b')](function(_0x5cabf3){const _0x380c72=_0x4eb53c;_0x5bdba2[_0x380c72('0x1d66')]=_0x5cabf3['rows']||[];})[_0x4eb53c('0x103c')](function(_0x3a246f){const _0x41cbe3=_0x4eb53c;_0x36ee16[_0x41cbe3('0x15aa')]({'title':_0x3a246f[_0x41cbe3('0x276f')]?_0x41cbe3('0x137')+_0x3a246f['status']+_0x41cbe3('0x160c')+_0x3a246f[_0x41cbe3('0x2696')]:_0x41cbe3('0xe0f'),'msg':_0x3a246f['data']?JSON[_0x41cbe3('0x100b')](_0x3a246f[_0x41cbe3('0x1e07')]):_0x3a246f[_0x41cbe3('0x1b75')]()});}):_0xd29d35['pause']['get']({'fields':_0x4eb53c('0x901'),'sort':'name','nolimit':'true'})[_0x4eb53c('0x1964')][_0x4eb53c('0x173b')](function(_0x189111){const _0x1d4587=_0x4eb53c;_0x5bdba2['pauses']=_0x189111[_0x1d4587('0x6aa')]||[];})[_0x4eb53c('0x173b')](function(){const _0x134bbc=_0x4eb53c;return _0xd29d35[_0x134bbc('0x170e')][_0x134bbc('0x1d97')]({'userProfileId':_0x5bdba2[_0x134bbc('0x155f')]['userProfileId'],'sectionId':0x3ed})['$promise'];})[_0x4eb53c('0x173b')](function(_0x405bb6){const _0x3b1ec5=_0x4eb53c,_0x231f43=_0x405bb6&&_0x405bb6[_0x3b1ec5('0x6aa')]?_0x405bb6[_0x3b1ec5('0x6aa')][0x0]:null;if(!_0x231f43)_0x5bdba2[_0x3b1ec5('0x1d66')]=[];else{if(!_0x231f43[_0x3b1ec5('0x273e')])return _0xd29d35[_0x3b1ec5('0xda9')][_0x3b1ec5('0x1d97')]({'sectionId':_0x231f43['id']})[_0x3b1ec5('0x1964')]['then'](function(_0x541277){const _0x50b378=_0x3b1ec5,_0x3e02a2=_0x3c8d8a()[_0x50b378('0x8a2')](_0x541277['rows'],function(_0x45441c){const _0x9038be=_0x50b378;return _0x3c8d8a()[_0x9038be('0x18ab')](_0x5bdba2['pauses'],{'id':_0x45441c[_0x9038be('0x1ce0')]});});_0x5bdba2['pauses'][_0x50b378('0xa6a')](function(_0x1f7596){const _0x2e2e5a=_0x50b378;!_0x3c8d8a()[_0x2e2e5a('0x1ec')](_0x3e02a2,['id',_0x1f7596['id']])&&(_0x1f7596[_0x2e2e5a('0x268e')]=![]),_0x3e02a2['push'](_0x1f7596);}),_0x5bdba2['pauses']=_0x3e02a2;});}})['catch'](function(_0x393fb7){const _0x29e0eb=_0x4eb53c;_0x36ee16[_0x29e0eb('0x15aa')]({'title':_0x393fb7[_0x29e0eb('0x276f')]?'API:'+_0x393fb7['status']+_0x29e0eb('0x160c')+_0x393fb7['statusText']:_0x29e0eb('0x2595'),'msg':_0x393fb7['data']?JSON[_0x29e0eb('0x100b')](_0x393fb7[_0x29e0eb('0x1e07')]):_0x393fb7['toString']()});});function _0x370661(){const _0x2350af=_0x4eb53c;_0x5bdba2[_0x2350af('0x1d4a')]=[],_0xd29d35['whatsappAccount'][_0x2350af('0x1195')](_0x5bdba2[_0x2350af('0x234')])[_0x2350af('0x1964')][_0x2350af('0x173b')](function(_0x465442){const _0x250b6e=_0x2350af;_0x5bdba2['whatsappAccounts'][_0x250b6e('0x1377')](_0x465442['toJSON']()),_0x36ee16['success']({'title':_0x250b6e('0xbc'),'msg':_0x5bdba2[_0x250b6e('0x234')]['name']?_0x5bdba2[_0x250b6e('0x234')][_0x250b6e('0x10ad')]+_0x250b6e('0x209a'):''}),_0x206426(_0x465442);})['catch'](function(_0x38fa48){const _0x4ea9fc=_0x2350af;if(_0x38fa48[_0x4ea9fc('0x1e07')]&&_0x38fa48[_0x4ea9fc('0x1e07')][_0x4ea9fc('0x1d4a')]&&_0x38fa48[_0x4ea9fc('0x1e07')][_0x4ea9fc('0x1d4a')]['length']){_0x5bdba2[_0x4ea9fc('0x1d4a')]=_0x38fa48['data'][_0x4ea9fc('0x1d4a')]||[{'message':_0x38fa48['toString'](),'type':'api.whatsappAccount.save'}];for(let _0x436f3a=0x0;_0x436f3a<_0x38fa48['data']['errors'][_0x4ea9fc('0x543')];_0x436f3a+=0x1){_0x36ee16[_0x4ea9fc('0x15aa')]({'title':_0x38fa48['data'][_0x4ea9fc('0x1d4a')][_0x436f3a][_0x4ea9fc('0x1810')],'msg':_0x38fa48['data'][_0x4ea9fc('0x1d4a')][_0x436f3a][_0x4ea9fc('0x67f')]});}}else _0x36ee16[_0x4ea9fc('0x15aa')]({'title':_0x38fa48['status']?_0x4ea9fc('0x137')+_0x38fa48['status']+_0x4ea9fc('0x160c')+_0x38fa48[_0x4ea9fc('0x2696')]:_0x4ea9fc('0x1a07'),'msg':_0x38fa48['data']?JSON[_0x4ea9fc('0x100b')](_0x38fa48[_0x4ea9fc('0x1e07')][_0x4ea9fc('0x67f')]):_0x38fa48[_0x4ea9fc('0x1b75')]()});});}function _0x2b18e1(){const _0x26b1d5=_0x4eb53c;_0x5bdba2[_0x26b1d5('0x1d4a')]=[],_0xd29d35[_0x26b1d5('0x234')][_0x26b1d5('0x1842')]({'id':_0x5bdba2[_0x26b1d5('0x234')]['id']},_0x5bdba2[_0x26b1d5('0x234')])[_0x26b1d5('0x1964')]['then'](function(_0x31763e){const _0x540e7e=_0x26b1d5,_0x4f1092=_0x3c8d8a()['find'](_0x5bdba2[_0x540e7e('0x2154')],{'id':_0x31763e['id']});_0x4f1092&&_0x3c8d8a()[_0x540e7e('0x9ef')](_0x4f1092,_0x3c8d8a()[_0x540e7e('0x2114')](_0x31763e['toJSON'](),_0x3c8d8a()[_0x540e7e('0x1d3e')](_0x4f1092))),_0x36ee16[_0x540e7e('0xdfe')]({'title':'WhatsappAccount\x20properly\x20saved!','msg':_0x5bdba2[_0x540e7e('0x234')]['name']?_0x5bdba2[_0x540e7e('0x234')][_0x540e7e('0x10ad')]+_0x540e7e('0x2788'):''}),_0x206426(_0x31763e);})['catch'](function(_0x43fefe){const _0x419915=_0x26b1d5;if(_0x43fefe[_0x419915('0x1e07')]&&_0x43fefe[_0x419915('0x1e07')][_0x419915('0x1d4a')]&&_0x43fefe['data']['errors']['length']){_0x5bdba2[_0x419915('0x1d4a')]=_0x43fefe[_0x419915('0x1e07')]['errors']||[{'message':_0x43fefe[_0x419915('0x1b75')](),'type':_0x419915('0xcf4')}];for(let _0xb423cb=0x0;_0xb423cb<_0x43fefe[_0x419915('0x1e07')][_0x419915('0x1d4a')][_0x419915('0x543')];_0xb423cb++){_0x36ee16[_0x419915('0x15aa')]({'title':_0x43fefe[_0x419915('0x1e07')]['errors'][_0xb423cb][_0x419915('0x1810')],'msg':_0x43fefe[_0x419915('0x1e07')]['errors'][_0xb423cb]['message']});}}else _0x36ee16[_0x419915('0x15aa')]({'title':_0x43fefe[_0x419915('0x276f')]?'API:'+_0x43fefe[_0x419915('0x276f')]+_0x419915('0x160c')+_0x43fefe[_0x419915('0x2696')]:'api.whatsappAccount.update','msg':_0x43fefe[_0x419915('0x1e07')]?JSON[_0x419915('0x100b')](_0x43fefe['data'][_0x419915('0x67f')]):_0x43fefe['toString']()});});}function _0x51c097(_0x4a820a){const _0x3f9fbe=_0x4eb53c;_0x5bdba2[_0x3f9fbe('0x1d4a')]=[];const _0x244def=_0x1f9f28[_0x3f9fbe('0x1d02')]()[_0x3f9fbe('0x20d6')](_0x3f9fbe('0x8ef'))[_0x3f9fbe('0x732')](_0x3f9fbe('0x1335'))[_0x3f9fbe('0x217')](_0x3f9fbe('0x175a'))['ok'](_0x3f9fbe('0x2373'))[_0x3f9fbe('0x1e1f')]('Cancel')['targetEvent'](_0x4a820a);_0x1f9f28[_0x3f9fbe('0x1cb7')](_0x244def)[_0x3f9fbe('0x173b')](function(){const _0x556d5f=_0x3f9fbe;_0xd29d35[_0x556d5f('0x234')][_0x556d5f('0x15e8')]({'id':_0x5bdba2['whatsappAccount']['id']})[_0x556d5f('0x1964')][_0x556d5f('0x173b')](function(){const _0x31e56f=_0x556d5f;_0x3c8d8a()[_0x31e56f('0x1a8b')](_0x5bdba2[_0x31e56f('0x2154')],{'id':_0x5bdba2['whatsappAccount']['id']}),_0x36ee16[_0x31e56f('0xdfe')]({'title':'WhatsappAccount\x20properly\x20deleted!','msg':(_0x5bdba2[_0x31e56f('0x234')][_0x31e56f('0x10ad')]||'whatsappAccount')+_0x31e56f('0x25d2')}),_0x206426(_0x5bdba2[_0x31e56f('0x234')]);})[_0x556d5f('0x103c')](function(_0x166ec5){const _0x1843c3=_0x556d5f;if(_0x166ec5[_0x1843c3('0x1e07')]&&_0x166ec5['data'][_0x1843c3('0x1d4a')]&&_0x166ec5[_0x1843c3('0x1e07')]['errors']['length']){_0x5bdba2['errors']=_0x166ec5[_0x1843c3('0x1e07')][_0x1843c3('0x1d4a')]||[{'message':_0x166ec5['toString'](),'type':_0x1843c3('0x33b')}];for(let _0x5e3b43=0x0;_0x5e3b43<_0x166ec5['data']['errors'][_0x1843c3('0x543')];_0x5e3b43++){_0x36ee16[_0x1843c3('0x15aa')]({'title':_0x166ec5[_0x1843c3('0x1e07')][_0x1843c3('0x1d4a')][_0x5e3b43][_0x1843c3('0x1810')],'msg':_0x166ec5['data'][_0x1843c3('0x1d4a')][_0x5e3b43]['message']});}}else _0x36ee16[_0x1843c3('0x15aa')]({'title':_0x166ec5[_0x1843c3('0x276f')]?_0x1843c3('0x137')+_0x166ec5[_0x1843c3('0x276f')]+'\x20-\x20'+_0x166ec5['statusText']:_0x1843c3('0x33b'),'msg':_0x166ec5['data']?JSON[_0x1843c3('0x100b')](_0x166ec5['data'][_0x1843c3('0x67f')]):_0x166ec5[_0x1843c3('0x67f')]||_0x166ec5['toString']()});});},function(){});}function _0x4bd7e4(_0x18be89){return _0x18be89===null?undefined:new Date(_0x18be89);}function _0x206426(_0x152a25){const _0x3eb44e=_0x4eb53c;_0x1f9f28[_0x3eb44e('0x1cf4')](_0x152a25);}}const _0x5d7f6f=_0x2fc5a5,_0x336d80=_0x21a6a1['p']+_0x566993('0x1e35'),_0x2cbe40=_0x21a6a1['p']+_0x566993('0x27bc'),_0x26ba39=_0x21a6a1['p']+_0x566993('0x22d3'),_0xc0160c=_0x21a6a1['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html/dialog.html',_0x1aad97=_0x21a6a1['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog.html',_0x5a303f=_0x21a6a1['p']+_0x566993('0x536'),_0x407872=_0x21a6a1['p']+_0x566993('0xc9c'),_0x36bda7=_0x21a6a1['p']+_0x566993('0x245e'),_0x5dcf9c=_0x21a6a1['p']+_0x566993('0x174d'),_0x3ab152=_0x21a6a1['p']+_0x566993('0x1fd2'),_0x275ff1=_0x21a6a1['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog.html',_0x330f75=_0x21a6a1['p']+_0x566993('0x1aba');_0x518fae[_0x566993('0x17bb')]=[_0x566993('0xbd4'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),'Auth'];const _0x1189c1={'agent':_0x336d80,'amazonlex':_0x2cbe40,'autoreply':_0x26ba39,'close':_0xc0160c,'dialogflow':_0x1aad97,'gotoif':_0x5a303f,'gotop':_0x407872,'interval':_0x36bda7,'noop':_0x5dcf9c,'queue':_0x3ab152,'system':_0x275ff1,'tag':_0x330f75};function _0x518fae(_0x468b1c,_0x5b9ba4,_0x491dba,_0x409160,_0x370744){const _0x2e31dd=_0x566993,_0x2349e8=this;_0x2349e8[_0x2e31dd('0x155f')]=_0x370744[_0x2e31dd('0x14d4')](),_0x2349e8[_0x2e31dd('0x234')]={},_0x2349e8[_0x2e31dd('0x20a5')]={'count':0x0,'rows':[]},_0x2349e8['selectedWhatsappAccountApps']=[],_0x2349e8[_0x2e31dd('0x1dc1')],_0x2349e8[_0x2e31dd('0xc49')]={'sort':_0x2e31dd('0xb3')},_0x2349e8[_0x2e31dd('0x5cb')]=_0x3c8d8a()[_0x2e31dd('0x12a4')](_0x3c8d8a()[_0x2e31dd('0x1b45')]([{'app':'Interval','appType':_0x2e31dd('0x55a'),'types':[_0x2e31dd('0x17b3'),_0x2e31dd('0xbb4'),_0x2e31dd('0x3e3')],'fields':[],'isApp':![]},{'app':_0x2e31dd('0x1086'),'appType':'noop','type':_0x2e31dd('0x1086'),'icon':'icon-apps','interval':_0x2e31dd('0x17c5'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x2e31dd('0xa7b'),'type':_0x2e31dd('0x86e'),'param':0x0}]},{'app':'system','appType':_0x2e31dd('0x1ed'),'type':'system','icon':'icon-apps','interval':_0x2e31dd('0x17c5'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x2e31dd('0x2715'),'field':{'name':'variable','key':_0x2e31dd('0x10ad')},'route':_0x2e31dd('0x1b56'),'filters':{'fields':_0x2e31dd('0xd52'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x2e31dd('0x1bfd'),'name':_0x2e31dd('0xdc4'),'type':_0x2e31dd('0x86e'),'required':!![],'param':0x0},{'title':_0x2e31dd('0xae6'),'name':_0x2e31dd('0x1b56'),'type':_0x2e31dd('0x23fd'),'values':_0x2e31dd('0x2715'),'value':_0x2e31dd('0x1fd4'),'option':_0x2e31dd('0x1fd4'),'defaultValues':[{'value':'\x27\x27','option':_0x2e31dd('0x2187')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':'gotop','type':_0x2e31dd('0x2016'),'icon':_0x2e31dd('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Priority','name':_0x2e31dd('0xb3'),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x2e31dd('0xf5d'),'appType':'gotoif','type':_0x2e31dd('0xf5d'),'icon':_0x2e31dd('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2e31dd('0x5f4'),'name':'condition','type':_0x2e31dd('0x86e'),'required':!![],'param':0x0},{'title':_0x2e31dd('0x1cd7'),'name':_0x2e31dd('0x1cd7'),'type':_0x2e31dd('0x1d81'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':'falsepriority','type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x2e31dd('0x172'),'appType':_0x2e31dd('0x172'),'foreignKey':_0x2e31dd('0x1d58'),'type':_0x2e31dd('0x172'),'icon':_0x2e31dd('0x108b'),'interval':_0x2e31dd('0x17c5'),'isApp':!![],'extraApi':[{'name':_0x2e31dd('0xeae'),'field':{'name':_0x2e31dd('0x172'),'key':_0x2e31dd('0x10ad')},'route':'whatsappQueue','filters':{'fields':_0x2e31dd('0x1c66'),'sort':_0x2e31dd('0x10ad'),'nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':_0x2e31dd('0x1436'),'name':_0x2e31dd('0x172'),'type':_0x2e31dd('0x23fd'),'values':'queues','value':'queue.name','option':'queue.name','defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x2e31dd('0x1d81'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':_0x2e31dd('0x7b0'),'type':_0x2e31dd('0x7b0'),'foreignKey':_0x2e31dd('0x181c'),'icon':_0x2e31dd('0x108b'),'interval':_0x2e31dd('0x17c5'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x2e31dd('0x7b0'),'key':_0x2e31dd('0x10ad')},'route':'user','filters':{'fields':_0x2e31dd('0xd52'),'sort':'name','nolimit':!![],'role':_0x2e31dd('0x7b0')},'permissions':{'section':0xca}}],'fields':[{'title':_0x2e31dd('0x1547'),'name':_0x2e31dd('0x7b0'),'type':_0x2e31dd('0x23fd'),'values':_0x2e31dd('0x11fa'),'value':'agent.name','option':_0x2e31dd('0x660'),'required':!![],'param':0x0},{'title':_0x2e31dd('0x1b9a'),'name':_0x2e31dd('0x1f84'),'type':_0x2e31dd('0x1d81'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x2e31dd('0x23fe'),'appType':'autoreply','type':_0x2e31dd('0x23fe'),'icon':'icon-apps','interval':_0x2e31dd('0x17c5'),'isApp':!![],'fields':[{'title':_0x2e31dd('0x611'),'name':_0x2e31dd('0x611'),'type':_0x2e31dd('0xc65'),'defaultValue':'1','values':[{'option':_0x2e31dd('0x1f24'),'value':'1'},{'option':_0x2e31dd('0x2322'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x2e31dd('0x381'),'name':_0x2e31dd('0x86e'),'type':_0x2e31dd('0x5de'),'required':!![],'param':0x1}]},{'app':'close','appType':_0x2e31dd('0x2151'),'type':_0x2e31dd('0x2151'),'icon':_0x2e31dd('0x108b'),'interval':_0x2e31dd('0x17c5'),'isApp':!![],'fields':[{'title':_0x2e31dd('0x2ab'),'name':'disposition','type':_0x2e31dd('0x86e'),'required':!![],'param':0x0}]},{'app':_0x2e31dd('0x23b4'),'appType':_0x2e31dd('0x23b4'),'type':_0x2e31dd('0x23b4'),'foreignKey':_0x2e31dd('0xe46'),'icon':_0x2e31dd('0x108b'),'interval':_0x2e31dd('0x17c5'),'isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0x2e31dd('0x23b4'),'key':_0x2e31dd('0x10ad')},'route':_0x2e31dd('0x23b4'),'filters':{'fields':_0x2e31dd('0xd52'),'sort':_0x2e31dd('0x10ad'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x2e31dd('0x460'),'name':'tag','type':_0x2e31dd('0x23fd'),'values':_0x2e31dd('0x22ac'),'value':_0x2e31dd('0x2648'),'option':_0x2e31dd('0x2648'),'required':!![],'param':0x0}]},{'app':'dialogflow','appType':_0x2e31dd('0x1601'),'type':_0x2e31dd('0x1601'),'icon':_0x2e31dd('0x108b'),'interval':_0x2e31dd('0x17c5'),'isApp':!![],'fields':[{'title':'Key','name':_0x2e31dd('0x237a'),'type':_0x2e31dd('0x86e'),'required':!![],'param':0x0},{'title':_0x2e31dd('0x604'),'name':_0x2e31dd('0x604'),'type':_0x2e31dd('0xc65'),'defaultValue':_0x2e31dd('0x910'),'values':[{'option':_0x2e31dd('0xac'),'value':_0x2e31dd('0x2386')},{'option':'English','value':_0x2e31dd('0x910')},{'option':_0x2e31dd('0x12d4'),'value':_0x2e31dd('0x5ac')},{'option':_0x2e31dd('0x24e4'),'value':_0x2e31dd('0xf39')},{'option':_0x2e31dd('0x30b'),'value':_0x2e31dd('0x1c86')},{'option':_0x2e31dd('0xcdd'),'value':_0x2e31dd('0x2293')},{'option':_0x2e31dd('0x10e2'),'value':_0x2e31dd('0x1c9d')},{'option':'Japanese','value':_0x2e31dd('0xa78')},{'option':_0x2e31dd('0xd6d'),'value':_0x2e31dd('0x176b')},{'option':_0x2e31dd('0x1734'),'value':_0x2e31dd('0x1855')},{'option':_0x2e31dd('0x1930'),'value':_0x2e31dd('0x13d1')},{'option':_0x2e31dd('0x128c'),'value':_0x2e31dd('0x6db')},{'option':'Portuguese\x20(Nrazilian)','value':_0x2e31dd('0xfc7')},{'option':_0x2e31dd('0x1992'),'value':_0x2e31dd('0x2332')},{'option':'Swedish','value':_0x2e31dd('0x804')},{'option':'Thai','value':_0x2e31dd('0x966')},{'option':_0x2e31dd('0x302'),'value':_0x2e31dd('0x14ab')},{'option':_0x2e31dd('0x92d'),'value':_0x2e31dd('0x1f97')},{'option':_0x2e31dd('0xc9'),'value':_0x2e31dd('0x2218')},{'option':_0x2e31dd('0x1b43'),'value':'\x27zh-TW\x27'}],'required':!![],'param':0x1},{'title':_0x2e31dd('0x1a7'),'name':_0x2e31dd('0x1a7'),'type':_0x2e31dd('0x5de'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x2e31dd('0x1680'),'appType':'amazonlex','type':_0x2e31dd('0x1680'),'icon':_0x2e31dd('0x108b'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2e31dd('0x2e0'),'name':_0x2e31dd('0x2e0'),'type':_0x2e31dd('0x86e'),'required':!![],'param':0x0},{'title':_0x2e31dd('0x1d93'),'name':_0x2e31dd('0x1d93'),'type':'text','required':!![],'param':0x1},{'title':'lexregion','name':_0x2e31dd('0x10fc'),'type':_0x2e31dd('0xc65'),'defaultValue':_0x2e31dd('0x1ee4'),'values':[{'option':_0x2e31dd('0x225b'),'value':_0x2e31dd('0x1ee4')},{'option':'US\x20West\x20(Oregon)','value':_0x2e31dd('0x116a')},{'option':_0x2e31dd('0x1d48'),'value':_0x2e31dd('0x68e')},{'option':_0x2e31dd('0x146a'),'value':_0x2e31dd('0xd64')}],'required':!![],'param':0x2},{'title':'botname','name':_0x2e31dd('0x53'),'type':_0x2e31dd('0x86e'),'required':!![],'param':0x3},{'title':_0x2e31dd('0x1a7'),'name':_0x2e31dd('0x1a7'),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],['app']),{'isApp':![]}),_0x2349e8[_0x2e31dd('0x3e3')]={'group':{'name':_0x2e31dd('0x1749'),'pull':_0x2e31dd('0x979')},'animation':0x64,'sort':![]},_0x2349e8['applications']={'group':{'name':_0x2e31dd('0x1fb7'),'put':_0x2e31dd('0x1749')},'animation':0x64,'onAdd':function(_0x504797){const _0x34c190=_0x2e31dd;_0x460d40(_0x504797,_0x504797[_0x34c190('0x1c1b')]);},'onSort':function(){_0x46bd3c();}},_0x2349e8[_0x2e31dd('0xb9c')]=_0x4e3558,_0x2349e8[_0x2e31dd('0x2051')]=_0x4beed2,_0x2349e8[_0x2e31dd('0x134')]=_0x3eb951,_0x2349e8[_0x2e31dd('0x11ff')]=_0x460d40,_0x2349e8[_0x2e31dd('0xc28')]=_0x3b979a,_0x2349e8[_0x2e31dd('0x24b4')]=_0x3c84ce,_0x2349e8[_0x2e31dd('0x64a')]=_0x3fb78c,_0x2349e8['rewriteRouting']=_0x46bd3c,_0x2349e8[_0x2e31dd('0xf77')]=_0x43c0d5;function _0x4e3558(_0x11a25e,_0x479693){const _0x57b6e1=_0x2e31dd;_0x2349e8[_0x57b6e1('0x234')]=_0x11a25e,_0x2349e8[_0x57b6e1('0x1dc1')]=typeof _0x479693!=='undefined'?_0x479693:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2349e8[_0x57b6e1('0x1f7e')][_0x57b6e1('0x6fc')]=!_0x2349e8[_0x57b6e1('0x1dc1')][_0x57b6e1('0x1f3d')]?!![]:![],_0x2349e8[_0x57b6e1('0xc49')]['id']=_0x11a25e['id'],_0x2349e8['query']['isApp']=!![],_0x2349e8[_0x57b6e1('0xc49')]['nolimit']=!![],_0x2349e8[_0x57b6e1('0x134')](),_0x2349e8['getIntervals']();}function _0x4beed2(_0x53df3f,_0x243746,_0x4788e1){const _0x55447b=_0x2e31dd,_0x36b892=_0x5b9ba4[_0x55447b('0x1d02')]()[_0x55447b('0x20d6')](_0x55447b('0xbac'))[_0x55447b('0xf8b')](_0x55447b('0x15b9')+_0x53df3f[_0x55447b('0x17e')]+_0x55447b('0x24be')+_0x55447b('0xd23'))[_0x55447b('0x217')](_0x55447b('0x499'))['targetEvent'](_0x4788e1)['ok']('OK')['cancel'](_0x55447b('0x468'));_0x5b9ba4['show'](_0x36b892)['then'](function(){const _0x4f7c01=_0x55447b;_0x2349e8[_0x4f7c01('0x20a5')][_0x4f7c01('0x6aa')][_0x4f7c01('0x553')](_0x243746,0x1),_0x46bd3c();},function(){const _0x116dc9=_0x55447b;console['log'](_0x116dc9('0x468'));});}function _0x460d40(_0x413cd9,_0x35449f){const _0x55a83d=_0x2e31dd;if(_0x2349e8['whatsappAccountApps'][_0x55a83d('0x6aa')][_0x55a83d('0x543')]){const _0x2b103c=_0x2349e8[_0x55a83d('0x20a5')][_0x55a83d('0x6aa')][_0x35449f]?_0x2349e8[_0x55a83d('0x20a5')][_0x55a83d('0x6aa')][_0x35449f]:_0x2349e8[_0x55a83d('0x20a5')][_0x55a83d('0x6aa')][0x0],_0x187980=(_0x2b103c[_0x55a83d('0x9d7')]||_0x2b103c[_0x55a83d('0x17e')])[_0x55a83d('0x1e68')]();_0x5b9ba4[_0x55a83d('0x1cb7')]({'controller':_0x55a83d('0x2546')+_0x187980+_0x55a83d('0x1c96'),'controllerAs':'vm','templateUrl':_0x1189c1[_0x187980],'parent':angular['element'](_0x491dba['body']),'targetEvent':_0x413cd9,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x2b103c,'whatsappAccount':_0x2349e8['whatsappAccount'],'crudPermissions':_0x2349e8[_0x55a83d('0x1dc1')]}})[_0x55a83d('0x173b')](function(_0x498673){const _0x37c305=_0x55a83d;_0x498673&&(_0x498673['id']?_0x2349e8['whatsappAccountApps'][_0x37c305('0x6aa')][_0x35449f]=_0x498673:_0x2349e8['whatsappAccountApps'][_0x37c305('0x6aa')][_0x37c305('0x553')](_0x35449f,0x0,_0x498673),_0x46bd3c());})['catch'](function(_0x48cf6d){const _0x727a34=_0x55a83d;_0x48cf6d&&_0x409160[_0x727a34('0x15aa')]({'title':_0x48cf6d['status']?_0x727a34('0x137')+_0x48cf6d[_0x727a34('0x276f')]+_0x727a34('0x160c')+_0x48cf6d[_0x727a34('0x2696')]:'SYSTEM:EDITMODALSHOW','msg':_0x48cf6d['data']?JSON[_0x727a34('0x100b')](_0x48cf6d[_0x727a34('0x1e07')]):_0x48cf6d[_0x727a34('0x1b75')]()});});}}function _0x3b979a(_0x41213d,_0x2ac1d7){const _0x4ce5be=_0x2e31dd;if(_0x2349e8['whatsappAccountApps'][_0x4ce5be('0x6aa')][_0x4ce5be('0x543')]){const _0x2a3add=_0x2349e8[_0x4ce5be('0x20a5')]['rows'][_0x2ac1d7]?_0x2349e8[_0x4ce5be('0x20a5')]['rows'][_0x2ac1d7]:_0x2349e8['whatsappAccountApps'][_0x4ce5be('0x6aa')][0x0];_0x5b9ba4[_0x4ce5be('0x1cb7')]({'controller':'EditWhatsappAccountAppintervalDialogController','controllerAs':'vm','templateUrl':_0x36bda7,'parent':angular['element'](_0x491dba[_0x4ce5be('0x1a5')]),'targetEvent':_0x41213d,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x2a3add[_0x4ce5be('0x55a')],'IntervalId':_0x2a3add['IntervalId'],'application':!![]},'intervals':[],'crudPermissions':_0x2349e8[_0x4ce5be('0x1dc1')]}})[_0x4ce5be('0x173b')](function(_0x5a6975){const _0x20c295=_0x4ce5be;_0x5a6975&&(_0x2a3add[_0x20c295('0x55a')]=_0x5a6975[_0x20c295('0x55a')]||_0x20c295('0x17c5'),_0x2a3add[_0x20c295('0x600')]=_0x5a6975[_0x20c295('0x600')]||null,_0x46bd3c());});}}function _0x46bd3c(){const _0x142a6b=_0x2e31dd;let _0x4a94e2=0x1,_0x450cb5=[];for(let _0x21d109=0x0;_0x21d109<_0x2349e8['whatsappAccountApps'][_0x142a6b('0x6aa')][_0x142a6b('0x543')];_0x21d109++){const _0x49bb2f=_0x2349e8['whatsappAccountApps'][_0x142a6b('0x6aa')][_0x21d109],_0x348000=[],_0x53ce68=[];_0x49bb2f[_0x142a6b('0x21c4')]=_0x49bb2f[_0x142a6b('0x55a')]!==_0x142a6b('0x17c5')?[_0x49bb2f[_0x142a6b('0x55a')]]:_0x49bb2f[_0x142a6b('0x600')]?_0x3c8d8a()[_0x142a6b('0x8a2')](_0x3c8d8a()['filter'](_0x2349e8[_0x142a6b('0x21c4')][_0x142a6b('0x6aa')],{'IntervalId':_0x49bb2f[_0x142a6b('0x600')]}),'interval'):[],_0x49bb2f[_0x142a6b('0x2b9')]=_0x2349e8[_0x142a6b('0x234')]['context'],_0x49bb2f[_0x142a6b('0x1a60')]=_0x2349e8['whatsappAccount'][_0x142a6b('0x1a60')],_0x49bb2f['type']&&(_0x49bb2f[_0x142a6b('0x1810')]=_0x49bb2f[_0x142a6b('0x1810')][_0x142a6b('0x1e68')]()),_0x49bb2f[_0x142a6b('0xb3')]=_0x348000[_0x142a6b('0x543')]?_0x3c8d8a()[_0x142a6b('0x7f')](_0x348000)[_0x142a6b('0xb3')]+0x1:_0x4a94e2,_0x4a94e2=(_0x53ce68[_0x142a6b('0x543')]?_0x3c8d8a()[_0x142a6b('0x7f')](_0x53ce68)[_0x142a6b('0xb3')]:_0x49bb2f[_0x142a6b('0xb3')])+0x1,_0x450cb5=_0x3c8d8a()[_0x142a6b('0x163f')](_0x450cb5,_0x348000,[_0x49bb2f],_0x53ce68);}_0x468b1c[_0x142a6b('0x234')][_0x142a6b('0x271c')]({'id':_0x2349e8[_0x142a6b('0x234')]['id']},_0x3c8d8a()[_0x142a6b('0x1b45')](_0x450cb5,_0x142a6b('0xb3')))[_0x142a6b('0x1964')][_0x142a6b('0x173b')](function(_0x2dc859){const _0xd7ca7d=_0x142a6b;_0x2349e8[_0xd7ca7d('0x20a5')]['rows']=_0x2dc859['rows'];})[_0x142a6b('0x103c')](function(_0x553418){const _0x37dec5=_0x142a6b;console[_0x37dec5('0x15aa')](_0x553418);});}function _0x91cd1e(_0x20b006){const _0x1e65fc=_0x2e31dd;_0x2349e8[_0x1e65fc('0x20a5')]=_0x20b006||{'count':0x0,'rows':[]};}function _0x43c0d5(){const _0xe03267=_0x2e31dd;return _0x468b1c[_0xe03267('0x55a')][_0xe03267('0x1d97')]({'fields':_0xe03267('0x23e4')})[_0xe03267('0x1964')][_0xe03267('0x173b')](function(_0x5a5d12){const _0x14c376=_0xe03267;_0x2349e8[_0x14c376('0x21c4')]=_0x5a5d12;})['catch'](function(_0x4be910){const _0x2f9ec8=_0xe03267;console[_0x2f9ec8('0x15aa')](_0x4be910);});}function _0x3eb951(){const _0x3812f5=_0x2e31dd;_0x2349e8[_0x3812f5('0x2219')]=_0x468b1c[_0x3812f5('0x234')][_0x3812f5('0xb')](_0x2349e8[_0x3812f5('0xc49')],_0x91cd1e)[_0x3812f5('0x1964')];}function _0x3c84ce(_0x2a400e){const _0x4112df=_0x2e31dd;_0x3c8d8a()[_0x4112df('0x1a8b')](_0x2349e8[_0x4112df('0x20a5')][_0x4112df('0x6aa')],{'id':_0x2a400e['id']}),_0x46bd3c(),_0x409160['success']({'title':_0x4112df('0x236d'),'msg':_0x2a400e[_0x4112df('0x17e')]?_0x2a400e[_0x4112df('0x17e')]+_0x4112df('0x25d2'):''});}function _0x3fb78c(_0x326123){const _0x2a33ad=_0x2e31dd,_0x49388a=_0x5b9ba4[_0x2a33ad('0x1d02')]()['title'](_0x2a33ad('0x8a0'))[_0x2a33ad('0xf8b')](_0x2a33ad('0x15b9')+_0x2349e8['selectedWhatsappAccountApps'][_0x2a33ad('0x543')]+_0x2a33ad('0xcb4')+_0x2a33ad('0xd23'))[_0x2a33ad('0x217')]('delete\x20applications')[_0x2a33ad('0x21de')](_0x326123)['ok']('OK')[_0x2a33ad('0x1e1f')]('CANCEL');_0x5b9ba4[_0x2a33ad('0x1cb7')](_0x49388a)['then'](function(){const _0x155345=_0x2a33ad;_0x2349e8[_0x155345('0x1d10')][_0x155345('0xa6a')](function(_0x4b23db){const _0x2b0009=_0x155345;_0x3c8d8a()[_0x2b0009('0x1a8b')](_0x2349e8[_0x2b0009('0x20a5')][_0x2b0009('0x6aa')],{'id':_0x4b23db['id']});}),_0x2349e8['selectedWhatsappAccountApps']=[],_0x46bd3c();});}}const _0x20fc3b=_0x518fae;_0x2da824[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0xbd4'),_0x566993('0x234'),'whatsappAccounts',_0x566993('0x12a7'),'$translate','Auth',_0x566993('0x1dc1')];function _0x2da824(_0x4132aa,_0x11acfd,_0x431ed7,_0x3a39a7,_0x2ae6dc,_0x393f40,_0x3579f4,_0x3b7d8f,_0x349441,_0x5a0986){const _0x2e0d76=_0x566993,_0x5b8e11=this;_0x5b8e11[_0x2e0d76('0x155f')]=_0x349441[_0x2e0d76('0x14d4')](),_0x5b8e11[_0x2e0d76('0x234')]=_0x2ae6dc,_0x5b8e11['crudPermissions']=_0x5a0986,_0x5b8e11['realtime']=_0x3579f4,_0x5b8e11[_0x2e0d76('0x1b1f')]=[],_0x5b8e11[_0x2e0d76('0x203e')]=[],_0x5b8e11['selectedItems']=[],_0x5b8e11[_0x2e0d76('0x1493')]=[],_0x5b8e11[_0x2e0d76('0x15c9')]=[],_0x5b8e11['pendingChanges']=![],_0x5b8e11[_0x2e0d76('0x2535')]=_0x29327f,_0x5b8e11[_0x2e0d76('0x21dc')]=_0xdefd3f,_0x5b8e11[_0x2e0d76('0x18e2')]=_0x100447,_0x5b8e11[_0x2e0d76('0x52e')]={'readOnly':!_0x5b8e11[_0x2e0d76('0x1dc1')][_0x2e0d76('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2e0d76('0x10ad'),'line1':'fullname','line2':[_0x2e0d76('0x10ad'),'internal'],'line3':'','labelAll':_0x3b7d8f[_0x2e0d76('0x1467')]('WHATSAPP.ALL_AGENTS'),'labelSelected':_0x3b7d8f[_0x2e0d76('0x1467')](_0x2e0d76('0x1a3c')),'transferCallback':function(){const _0x3438fd=_0x2e0d76,_0x30b510=_0x3c8d8a()['xorBy'](_0x5b8e11['startingSelectedItems'],_0x5b8e11[_0x3438fd('0x5f8')],'id');_0x5b8e11[_0x3438fd('0x277e')]=_0x3c8d8a()[_0x3438fd('0x1a56')](_0x30b510)?![]:!![];}};function _0x29327f(){const _0x4afeed=_0x2e0d76;return _0x349441['hasRole'](_0x4afeed('0x79b'))?_0x487776()[_0x4afeed('0x103c')](function(_0x34b4ee){const _0x548ae9=_0x4afeed;_0x431ed7[_0x548ae9('0x15aa')]({'title':_0x34b4ee[_0x548ae9('0x276f')]?_0x548ae9('0x137')+_0x34b4ee[_0x548ae9('0x276f')]+_0x548ae9('0x160c')+_0x34b4ee[_0x548ae9('0x2696')]:_0x548ae9('0x152b'),'msg':_0x34b4ee[_0x548ae9('0x276f')]?JSON[_0x548ae9('0x100b')](_0x34b4ee[_0x548ae9('0x1e07')]):_0x34b4ee[_0x548ae9('0x1b75')]()});}):_0x340e2d()['then'](function(_0x5b06c3){return _0x5b8e11['section']=_0x5b06c3,_0x487776();})['catch'](function(_0x4fc108){const _0x59b6df=_0x4afeed;_0x431ed7['error']({'title':_0x4fc108['status']?_0x59b6df('0x137')+_0x4fc108[_0x59b6df('0x276f')]+_0x59b6df('0x160c')+_0x4fc108[_0x59b6df('0x2696')]:_0x59b6df('0x152b'),'msg':_0x4fc108['status']?JSON[_0x59b6df('0x100b')](_0x4fc108['data']):_0x4fc108[_0x59b6df('0x1b75')]()});});}function _0x340e2d(){return _0x11acfd(function(_0x2aabe5,_0x1d6f8d){const _0x35aee8=a0_0xde5e;_0x3a39a7['userProfileSection'][_0x35aee8('0x1d97')]({'userProfileId':_0x5b8e11['currentUser'][_0x35aee8('0x1946')],'name':_0x35aee8('0x1272')})[_0x35aee8('0x1964')]['then'](function(_0x440df1){const _0x2c4d70=_0x440df1&&_0x440df1['rows']?_0x440df1['rows'][0x0]:null;_0x2aabe5(_0x2c4d70);})[_0x35aee8('0x103c')](function(_0x5ba02a){_0x1d6f8d(_0x5ba02a);});});}function _0x487776(){return _0x11acfd(function(_0x5e2b87,_0x150588){const _0x4aa3aa=a0_0xde5e;return _0x272760()[_0x4aa3aa('0x173b')](function(_0x55b415){const _0x596585=_0x4aa3aa;return _0x5b8e11[_0x596585('0x1b1f')]=_0x55b415['rows']?_0x55b415[_0x596585('0x6aa')]:[],_0x349441[_0x596585('0x1b4e')](_0x596585('0x79b'))?_0x55b415:_0x5b8e11['section']?_0x5b8e11[_0x596585('0x17c9')][_0x596585('0x273e')]?_0x55b415:_0x531478():null;})[_0x4aa3aa('0x173b')](function(_0xb3f1a6){const _0x35f636=_0x4aa3aa,_0x4beaf7=_0xb3f1a6&&_0xb3f1a6['rows']?_0xb3f1a6[_0x35f636('0x6aa')]:[];return _0x5b8e11[_0x35f636('0x203e')]=_0x3c8d8a()['map'](_0x4beaf7,function(_0x52947d){const _0x1fa1f6=_0x35f636;return _0x3c8d8a()[_0x1fa1f6('0x18ab')](_0x5b8e11[_0x1fa1f6('0x1b1f')],{'id':_0x349441['hasRole'](_0x1fa1f6('0x79b'))||_0x5b8e11[_0x1fa1f6('0x17c9')][_0x1fa1f6('0x273e')]?_0x52947d['id']:_0x52947d['resourceId']});}),_0x5b8e11[_0x35f636('0x1493')]=angular['copy'](_0x5b8e11[_0x35f636('0x203e')]),_0x5b8e11[_0x35f636('0x1b1f')][_0x35f636('0xa6a')](function(_0x65206e){const _0x5b36a3=_0x35f636,_0x2c6f61=_0x3c8d8a()[_0x5b36a3('0x18ab')](_0x5b8e11['allowedItems'],{'id':_0x65206e['id']});_0x349441['hasRole'](_0x5b36a3('0x79b'))?_0x65206e['isValid']=!![]:_0x65206e[_0x5b36a3('0xf02')]=typeof _0x2c6f61!==_0x5b36a3('0x6e5')?!![]:![];}),_0x33d8e9();})[_0x4aa3aa('0x173b')](function(_0x384dfc){const _0x5853d8=_0x4aa3aa,_0x48716f=_0x384dfc&&_0x384dfc[_0x5853d8('0x6aa')]?_0x384dfc[_0x5853d8('0x6aa')]:[];_0x5b8e11[_0x5853d8('0x5f8')]=_0x3c8d8a()[_0x5853d8('0x8a2')](_0x48716f,function(_0x12d763){const _0x40442a=_0x5853d8,_0x1148d4=_0x3c8d8a()['find'](_0x5b8e11[_0x40442a('0x1b1f')],{'id':_0x12d763['id']});return _0x1148d4['penalty']=_0x12d763[_0x40442a('0xcf5')]?_0x40442a('0x1929')+_0x12d763['UserWhatsappAccount'][_0x40442a('0x1692')]:'',_0x1148d4['internal']=typeof _0x12d763['internal']!=='undefined'?'<'+_0x12d763[_0x40442a('0x138c')]+'>':'',_0x1148d4;}),_0x5b8e11[_0x5853d8('0x15c9')]=angular[_0x5853d8('0x2e3')](_0x5b8e11[_0x5853d8('0x5f8')]),_0x5b8e11[_0x5853d8('0x52e')][_0x5853d8('0x5f8')]=_0x5b8e11[_0x5853d8('0x5f8')],_0x5b8e11[_0x5853d8('0x52e')][_0x5853d8('0x1b1f')]=_0x3c8d8a()[_0x5853d8('0x1bd3')](_0x5b8e11[_0x5853d8('0x203e')],_0x5b8e11[_0x5853d8('0x52e')]['selectedItems'],'id'),_0x5e2b87();})[_0x4aa3aa('0x103c')](function(_0x2a6632){_0x150588(_0x2a6632);});});}function _0x531478(){return _0x11acfd(function(_0x4b5933,_0x256e13){const _0x3d9162=a0_0xde5e;return _0x3a39a7[_0x3d9162('0xda9')][_0x3d9162('0x1d97')]({'sectionId':_0x5b8e11[_0x3d9162('0x17c9')]['id'],'nolimit':!![]})[_0x3d9162('0x1964')][_0x3d9162('0x173b')](function(_0x126af3){_0x4b5933(_0x126af3);})[_0x3d9162('0x103c')](function(_0xc411a9){_0x256e13(_0xc411a9);});});}function _0x33d8e9(){return _0x11acfd(function(_0x1d1387,_0x1f8a4a){const _0x6ae602=a0_0xde5e;return _0x3a39a7[_0x6ae602('0x234')][_0x6ae602('0x1903')]({'id':_0x5b8e11[_0x6ae602('0x234')]['id'],'fields':_0x6ae602('0x1d65'),'nolimit':!![],'role':_0x6ae602('0x7b0')})['$promise']['then'](function(_0x21946d){_0x1d1387(_0x21946d);})[_0x6ae602('0x103c')](function(_0x3a4d8f){_0x1f8a4a(_0x3a4d8f);});});}function _0x272760(){return _0x11acfd(function(_0x3c0d80,_0x34a434){const _0x499775=a0_0xde5e;return _0x3a39a7[_0x499775('0x166f')][_0x499775('0x1d97')]({'fields':_0x499775('0x1d65'),'nolimit':!![],'role':_0x499775('0x7b0')})[_0x499775('0x1964')][_0x499775('0x173b')](function(_0xaa4556){_0x3c0d80(_0xaa4556);})[_0x499775('0x103c')](function(_0x4dc89a){_0x34a434(_0x4dc89a);});});}function _0x2e4efe(_0x15e117){return _0x11acfd(function(_0x561f1d,_0x1cb4a3){const _0x1640e4=a0_0xde5e;_0x3c8d8a()[_0x1640e4('0x1a56')](_0x15e117)?_0x561f1d():_0x3a39a7[_0x1640e4('0x234')]['addAgents']({'id':_0x5b8e11[_0x1640e4('0x234')]['id'],'ids':_0x3c8d8a()['map'](_0x15e117,'id')})[_0x1640e4('0x1964')][_0x1640e4('0x173b')](function(){_0x561f1d();})[_0x1640e4('0x103c')](function(_0x1cacf2){_0x1cb4a3(_0x1cacf2);});});}function _0x124037(_0x1c63ff){return _0x11acfd(function(_0x12236f,_0x18e8aa){const _0x4e3ea7=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x1c63ff)?_0x12236f():_0x3a39a7[_0x4e3ea7('0x234')][_0x4e3ea7('0x2017')]({'id':_0x5b8e11['whatsappAccount']['id'],'ids':_0x3c8d8a()['map'](_0x1c63ff,'id')})[_0x4e3ea7('0x1964')][_0x4e3ea7('0x173b')](function(){_0x12236f();})['catch'](function(_0x2e2d19){_0x18e8aa(_0x2e2d19);});});}function _0xdefd3f(){const _0x1e1b1d=_0x2e0d76,_0x39be5e=_0x3c8d8a()['differenceBy'](_0x5b8e11[_0x1e1b1d('0x15c9')],_0x5b8e11[_0x1e1b1d('0x5f8')],'id'),_0x201dd6=_0x3c8d8a()[_0x1e1b1d('0x1bd3')](_0x5b8e11[_0x1e1b1d('0x5f8')],_0x5b8e11[_0x1e1b1d('0x15c9')],'id');return _0x124037(_0x39be5e)[_0x1e1b1d('0x173b')](function(){return _0x2e4efe(_0x201dd6);})['then'](function(){const _0xbcd0a2=_0x1e1b1d;_0x5b8e11['pendingChanges']=![],_0x5b8e11['startingAllowedItems']=angular[_0xbcd0a2('0x2e3')](_0x5b8e11['allowedItems']),_0x5b8e11[_0xbcd0a2('0x15c9')]=angular[_0xbcd0a2('0x2e3')](_0x5b8e11[_0xbcd0a2('0x5f8')]),_0x431ed7['success']({'title':'SUCCESS','msg':'Agents\x20association\x20has\x20been\x20updated!'});})['catch'](function(_0x58cb85){const _0x2acea2=_0x1e1b1d;_0x431ed7[_0x2acea2('0x15aa')]({'title':_0x58cb85[_0x2acea2('0x276f')]?_0x2acea2('0x137')+_0x58cb85[_0x2acea2('0x276f')]+_0x2acea2('0x160c')+_0x58cb85[_0x2acea2('0x2696')]:_0x2acea2('0x1f48'),'msg':_0x58cb85['status']?JSON[_0x2acea2('0x100b')](_0x58cb85[_0x2acea2('0x1e07')]):_0x58cb85[_0x2acea2('0x1b75')]()});});}function _0x100447(){const _0x3d9bf1=_0x2e0d76;_0x4132aa[_0x3d9bf1('0x1cf4')]();}}const _0x3e9455=_0x2da824;_0x46c80e[_0x566993('0x17bb')]=['$mdDialog','$q','toasty',_0x566993('0x2007'),_0x566993('0x234'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x46c80e(_0x5dd14c,_0x456f64,_0xa614cb,_0x347397,_0x50220a,_0x408aa6,_0x57b1d6,_0x872ca9){const _0xd869ff=_0x566993,_0xab0041=this;_0xab0041[_0xd869ff('0x155f')]=_0x57b1d6[_0xd869ff('0x14d4')](),_0xab0041[_0xd869ff('0x1d4a')]=[],_0xab0041[_0xd869ff('0x20d6')]=_0xd869ff('0x1bd4')+(_0x347397[_0xd869ff('0x9d7')]||_0x347397[_0xd869ff('0x17e')])['toUpperCase'](),_0xab0041['agent']=angular['copy'](_0x347397),_0xab0041[_0xd869ff('0x1dc1')]=_0x872ca9,_0xab0041[_0xd869ff('0xb0')]={};if(_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1c00')])switch(_0xab0041['agent']['appType']?_0xab0041[_0xd869ff('0x7b0')]['appType'][_0xd869ff('0x1e68')]():_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x17e')]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0x278c73=_0xab0041['agent'][_0xd869ff('0x1c00')]['split'](',');_0xab0041[_0xd869ff('0x7b0')]['key']=_0x278c73[0x0],_0xab0041[_0xd869ff('0x7b0')]['language']=_0x278c73[0x1],_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1a7')]=_0x278c73['slice'](0x2,_0x278c73[_0xd869ff('0x543')])[_0xd869ff('0x2259')](',');}break;case'amazonlex':{const _0x1e7b47=_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1c00')]['split'](',');_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x2e0')]=_0x1e7b47[0x0],_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1d93')]=_0x1e7b47[0x1],_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x10fc')]=_0x1e7b47[0x2],_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x53')]=_0x1e7b47[0x3],_0xab0041['agent'][_0xd869ff('0x1a7')]=_0x1e7b47['slice'](0x4,_0x1e7b47[_0xd869ff('0x543')])[_0xd869ff('0x2259')](',');}break;case _0xd869ff('0x23fe'):{const _0x2f88c2=_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1c00')][_0xd869ff('0x43a')](',');_0xab0041[_0xd869ff('0x7b0')]['times']=isNaN(_0x2f88c2[0x0])?_0x2f88c2[0x0]:parseInt(_0x2f88c2[0x0],0xa),_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x86e')]=_0x2f88c2[_0xd869ff('0x2456')](0x1,_0x2f88c2['length'])[_0xd869ff('0x2259')](',');}break;case _0xd869ff('0x67f'):_0xab0041[_0xd869ff('0x7b0')]['text']=_0xab0041['agent'][_0xd869ff('0x1c00')];break;case _0xd869ff('0x256d'):_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x10ad')]=_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1c00')][_0xd869ff('0x43a')]('=')[0x0],_0xab0041[_0xd869ff('0x7b0')]['value']=_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1c00')][_0xd869ff('0x43a')]('=')[0x1];break;case _0xd869ff('0x2426'):_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x220b')]=_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1c00')];break;default:{const _0x1d4b7f=_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1c00')][_0xd869ff('0x43a')](',');_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x7b0')]=_0x3c8d8a()[_0xd869ff('0x1a56')](_0x1d4b7f[0x0])?_0x1d4b7f[0x0]:isNaN(_0x1d4b7f[0x0])?_0x1d4b7f[0x0]:parseInt(_0x1d4b7f[0x0],0xa),_0xab0041[_0xd869ff('0x7b0')]['timeout']=_0x3c8d8a()['isEmpty'](_0x1d4b7f[0x1])?_0x1d4b7f[0x1]:isNaN(_0x1d4b7f[0x1])?_0x1d4b7f[0x1]:parseInt(_0x1d4b7f[0x1],0xa);}break;}else _0xab0041['agent'][_0xd869ff('0x1f84')]=0x1e;_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1810')]&&_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1810')][_0xd869ff('0x1e68')]()===_0xd869ff('0xb33')&&_0xab0041['agent']['appType'][_0xd869ff('0x1e68')]()===_0xd869ff('0x1edc')&&(_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x23f7')]=_0xab0041['agent'][_0xd869ff('0xa04')]?_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0xa04')][_0xd869ff('0x43a')]('$')[0x0]:undefined,_0xab0041[_0xd869ff('0x7b0')][_0xd869ff('0x1961')]=_0xab0041['agent'][_0xd869ff('0xe95')]?_0xd869ff('0x20a8')+_0xab0041[_0xd869ff('0x7b0')]['callerID']:undefined);_0xab0041[_0xd869ff('0x1e8a')]=_0x46cf45,_0xab0041[_0xd869ff('0x18e2')]=_0x44696e,_0x57b1d6[_0xd869ff('0x1b4e')]('admin')?_0x408aa6[_0xd869ff('0x166f')][_0xd869ff('0x1d97')]({'fields':'id,name','sort':_0xd869ff('0x10ad'),'nolimit':_0xd869ff('0x799'),'role':_0xd869ff('0x7b0')})['$promise']['then'](function(_0x29d5e0){const _0x5be05b=_0xd869ff;_0xab0041['agents']=_0x29d5e0[_0x5be05b('0x6aa')]||[];})[_0xd869ff('0x103c')](function(_0x61e41d){const _0xa87da1=_0xd869ff;_0xa614cb['error']({'title':_0x61e41d['status']?'API:'+_0x61e41d[_0xa87da1('0x276f')]+_0xa87da1('0x160c')+_0x61e41d['statusText']:_0xa87da1('0x152b'),'msg':_0x61e41d[_0xa87da1('0x1e07')]?JSON[_0xa87da1('0x100b')](_0x61e41d['data']):_0x61e41d['toString']()});}):_0x408aa6[_0xd869ff('0x166f')]['get']({'fields':'id,name','sort':_0xd869ff('0x10ad'),'nolimit':_0xd869ff('0x799'),'role':'agent'})[_0xd869ff('0x1964')]['then'](function(_0x41a27c){const _0xe3cb9c=_0xd869ff;_0xab0041['agents']=_0x41a27c[_0xe3cb9c('0x6aa')]||[];})[_0xd869ff('0x173b')](function(){const _0x62510d=_0xd869ff;return _0x408aa6['userProfileSection']['get']({'userProfileId':_0xab0041['currentUser'][_0x62510d('0x1946')],'sectionId':0xca})['$promise'];})[_0xd869ff('0x173b')](function(_0xd82b8d){const _0x549752=_0xd869ff,_0x1ba8e5=_0xd82b8d&&_0xd82b8d[_0x549752('0x6aa')]?_0xd82b8d[_0x549752('0x6aa')][0x0]:null;if(!_0x1ba8e5){const _0x2b6903=[];let _0x38607a=null;_0xab0041['agent']&&(_0x38607a=_0x3c8d8a()[_0x549752('0x18ab')](_0xab0041[_0x549752('0x11fa')],{'name':_0xab0041[_0x549752('0x7b0')][_0x549752('0x7b0')]}));for(let _0x2d38c8=0x0;_0x2d38c8<_0xab0041[_0x549752('0x11fa')][_0x549752('0x543')];_0x2d38c8++){_0x38607a&&_0xab0041[_0x549752('0x11fa')][_0x2d38c8]['id']===_0x38607a['id']&&(_0xab0041[_0x549752('0x11fa')][_0x2d38c8][_0x549752('0x268e')]=![],_0x2b6903[_0x549752('0x18bb')](_0xab0041[_0x549752('0x11fa')][_0x2d38c8]));}_0xab0041[_0x549752('0x11fa')]=_0x2b6903;}else{if(!_0x1ba8e5[_0x549752('0x273e')])return _0x408aa6[_0x549752('0xda9')]['get']({'sectionId':_0x1ba8e5['id']})['$promise'][_0x549752('0x173b')](function(_0x11b521){const _0x29ae5b=_0x549752,_0x1189ff=_0x3c8d8a()['map'](_0x11b521[_0x29ae5b('0x6aa')],function(_0x3b3450){const _0x3d8044=_0x29ae5b;return _0x3c8d8a()[_0x3d8044('0x18ab')](_0xab0041[_0x3d8044('0x11fa')],{'id':_0x3b3450['resourceId']});});let _0x591e6f=null;_0xab0041[_0x29ae5b('0x7b0')]&&(_0x591e6f=_0x3c8d8a()[_0x29ae5b('0x18ab')](_0xab0041[_0x29ae5b('0x11fa')],{'name':_0xab0041[_0x29ae5b('0x7b0')][_0x29ae5b('0x7b0')]}));if(_0x591e6f&&!_0x3c8d8a()[_0x29ae5b('0x1ec')](_0x1189ff,['id',_0x591e6f['id']])){const _0x4e0de8=_0x3c8d8a()[_0x29ae5b('0x18ab')](_0xab0041[_0x29ae5b('0x11fa')],{'id':_0x591e6f['id']});_0x4e0de8[_0x29ae5b('0x268e')]=![],_0x1189ff[_0x29ae5b('0x18bb')](_0x4e0de8);}_0xab0041[_0x29ae5b('0x11fa')]=_0x1189ff;});}})[_0xd869ff('0x103c')](function(_0xb617b4){const _0xcd781b=_0xd869ff;_0xa614cb[_0xcd781b('0x15aa')]({'title':_0xb617b4[_0xcd781b('0x276f')]?_0xcd781b('0x137')+_0xb617b4[_0xcd781b('0x276f')]+_0xcd781b('0x160c')+_0xb617b4[_0xcd781b('0x2696')]:'SYSTEM:GETagents','msg':_0xb617b4['data']?JSON[_0xcd781b('0x100b')](_0xb617b4[_0xcd781b('0x1e07')]):_0xb617b4[_0xcd781b('0x1b75')]()});});function _0x46cf45(){const _0x2c89ac=_0xd869ff;_0xab0041[_0x2c89ac('0x1d4a')]=[];const _0x3d7ab5=[];_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x1810')]&&_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x1810')][_0x2c89ac('0x1e68')]()==='outbound'&&_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x9d7')]==='outboundDial'&&(_0xab0041[_0x2c89ac('0x7b0')]['phone']=_0x50220a[_0x2c89ac('0x1429')]?(_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x23f7')]||'')+'${EXTEN:'+_0x50220a[_0x2c89ac('0x1429')]+'}':(_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x23f7')]||'')+'${EXTEN}',_0x50220a[_0x2c89ac('0x76c')]!==_0x2c89ac('0x2741')?_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x2010')]['indexOf'](_0x2c89ac('0x2474'))<0x0&&(_0xab0041['agent'][_0x2c89ac('0x2010')]+=_0x2c89ac('0x2474')):_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x2010')]=_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x2010')][_0x2c89ac('0x166c')](_0x2c89ac('0x2474'),''));const _0x5c86f7=_0x3c8d8a()[_0x2c89ac('0x18ab')](_0xab0041[_0x2c89ac('0x11fa')],{'name':_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x7b0')]});_0x5c86f7&&(_0xab0041[_0x2c89ac('0x7b0')]['UserId']=_0x5c86f7['id']);if(_0xab0041['agent']['appType']&&_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x9d7')]===_0x2c89ac('0xbb4')){}else switch((_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x17e')]||_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x9d7')])['toLowerCase']()){case'set':_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x1c00')]=_0xab0041['agent'][_0x2c89ac('0x10ad')]+'='+_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0xa7b')];break;case'custom':break;default:_0x3d7ab5[0x0]=_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x7b0')],_0x3d7ab5[0x1]=_0xab0041[_0x2c89ac('0x7b0')]['timeout'],_0xab0041[_0x2c89ac('0x7b0')][_0x2c89ac('0x1c00')]=_0x3d7ab5[_0x2c89ac('0x2259')](',');}_0x44696e(_0xab0041['agent']);}function _0x44696e(_0x189fec){_0x5dd14c['hide'](_0x189fec);}}const _0x501419=_0x46c80e;_0x1f783f[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'whatsappAccountApp',_0x566993('0x234'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x1f783f(_0x4060be,_0xe4ea12,_0x2aca05,_0x4346f5,_0x82d310,_0x59a357,_0x418f1f,_0x4c5aa6){const _0x4d2229=_0x566993,_0x2feb72=this;_0x2feb72[_0x4d2229('0x155f')]=_0x418f1f[_0x4d2229('0x14d4')](),_0x2feb72[_0x4d2229('0x1d4a')]=[],_0x2feb72['title']=_0x4d2229('0x1bd4')+(_0x4346f5[_0x4d2229('0x9d7')]||_0x4346f5[_0x4d2229('0x17e')])[_0x4d2229('0x1164')](),_0x2feb72[_0x4d2229('0x1680')]=angular[_0x4d2229('0x2e3')](_0x4346f5),_0x2feb72[_0x4d2229('0x1dc1')]=_0x4c5aa6,_0x2feb72['hasModulePermissions']={};if(_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1c00')])switch(_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x9d7')]?_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x9d7')][_0x4d2229('0x1e68')]():_0x2feb72['amazonlex']['app'][_0x4d2229('0x1e68')]()){case _0x4d2229('0xbb4'):break;case'dialogflow':{const _0x2198be=_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1c00')][_0x4d2229('0x43a')](',');_0x2feb72['amazonlex']['key']=_0x2198be[0x0],_0x2feb72[_0x4d2229('0x1680')]['language']=_0x2198be[0x1],_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1a7')]=_0x2198be['slice'](0x2,_0x2198be[_0x4d2229('0x543')])[_0x4d2229('0x2259')](',');}break;case _0x4d2229('0x1680'):{const _0x963c07=_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1c00')][_0x4d2229('0x43a')](',');_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x2e0')]=_0x963c07[0x0],_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1d93')]=_0x963c07[0x1],_0x2feb72[_0x4d2229('0x1680')]['lexregion']=_0x963c07[0x2],_0x2feb72[_0x4d2229('0x1680')]['botname']=_0x963c07[0x3],_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1a7')]=_0x963c07[_0x4d2229('0x2456')](0x4,_0x963c07[_0x4d2229('0x543')])[_0x4d2229('0x2259')](',');}break;case _0x4d2229('0x23fe'):{const _0x3e5e75=_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1c00')][_0x4d2229('0x43a')](',');_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x611')]=isNaN(_0x3e5e75[0x0])?_0x3e5e75[0x0]:parseInt(_0x3e5e75[0x0],0xa),_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x86e')]=_0x3e5e75[_0x4d2229('0x2456')](0x1,_0x3e5e75[_0x4d2229('0x543')])[_0x4d2229('0x2259')](',');}break;case'message':_0x2feb72['amazonlex'][_0x4d2229('0x86e')]=_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1c00')];break;case _0x4d2229('0x256d'):_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x10ad')]=_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1c00')][_0x4d2229('0x43a')]('=')[0x0],_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0xa7b')]=_0x2feb72[_0x4d2229('0x1680')]['appdata'][_0x4d2229('0x43a')]('=')[0x1];break;case _0x4d2229('0x2426'):_0x2feb72['amazonlex'][_0x4d2229('0x220b')]=_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1c00')];break;default:{const _0x8a6376=_0x2feb72['amazonlex'][_0x4d2229('0x1c00')][_0x4d2229('0x43a')](',');_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x2e0')]=_0x3c8d8a()[_0x4d2229('0x1a56')](_0x8a6376[0x0])?_0x8a6376[0x0]:isNaN(_0x8a6376[0x0])?_0x8a6376[0x0]:parseInt(_0x8a6376[0x0],0xa),_0x2feb72[_0x4d2229('0x1680')]['secretaccesskey']=_0x3c8d8a()[_0x4d2229('0x1a56')](_0x8a6376[0x1])?_0x8a6376[0x1]:isNaN(_0x8a6376[0x1])?_0x8a6376[0x1]:parseInt(_0x8a6376[0x1],0xa),_0x2feb72['amazonlex'][_0x4d2229('0x10fc')]=_0x3c8d8a()['isEmpty'](_0x8a6376[0x2])?_0x8a6376[0x2]:isNaN(_0x8a6376[0x2])?_0x8a6376[0x2]:parseInt(_0x8a6376[0x2],0xa),_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x53')]=_0x3c8d8a()[_0x4d2229('0x1a56')](_0x8a6376[0x3])?_0x8a6376[0x3]:isNaN(_0x8a6376[0x3])?_0x8a6376[0x3]:parseInt(_0x8a6376[0x3],0xa),_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1a7')]=_0x3c8d8a()[_0x4d2229('0x1a56')](_0x8a6376[0x4])?_0x8a6376[0x4]:isNaN(_0x8a6376[0x4])?_0x8a6376[0x4]:parseInt(_0x8a6376[0x4],0xa);}break;}else _0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x10fc')]=_0x4d2229('0x1de6');_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1810')]&&_0x2feb72['amazonlex']['type'][_0x4d2229('0x1e68')]()===_0x4d2229('0xb33')&&_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x9d7')][_0x4d2229('0x1e68')]()===_0x4d2229('0x1edc')&&(_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x23f7')]=_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0xa04')]?_0x2feb72['amazonlex']['phone']['split']('$')[0x0]:undefined,_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0x1961')]=_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0xe95')]?_0x4d2229('0x20a8')+_0x2feb72[_0x4d2229('0x1680')][_0x4d2229('0xe95')]:undefined);_0x2feb72['saveWhatsappAccountApp']=_0x225c96,_0x2feb72[_0x4d2229('0x18e2')]=_0x547548;function _0x225c96(){const _0x1fcb43=_0x4d2229;_0x2feb72[_0x1fcb43('0x1d4a')]=[];const _0x498232=[];_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x1810')]&&_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x1810')][_0x1fcb43('0x1e68')]()===_0x1fcb43('0xb33')&&_0x2feb72['amazonlex'][_0x1fcb43('0x9d7')]===_0x1fcb43('0x2150')&&(_0x2feb72[_0x1fcb43('0x1680')]['phone']=_0x82d310['cutdigits']?(_0x2feb72['amazonlex']['prefix']||'')+_0x1fcb43('0x1957')+_0x82d310['cutdigits']+'}':(_0x2feb72[_0x1fcb43('0x1680')]['prefix']||'')+_0x1fcb43('0x1dc5'),_0x82d310[_0x1fcb43('0x76c')]!=='none'?_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x2010')]['indexOf'](_0x1fcb43('0x2474'))<0x0&&(_0x2feb72['amazonlex'][_0x1fcb43('0x2010')]+=_0x1fcb43('0x2474')):_0x2feb72['amazonlex'][_0x1fcb43('0x2010')]=_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x2010')][_0x1fcb43('0x166c')](_0x1fcb43('0x2474'),''));if(_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x9d7')]&&_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x9d7')]===_0x1fcb43('0xbb4')){}else switch((_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x17e')]||_0x2feb72['amazonlex'][_0x1fcb43('0x9d7')])[_0x1fcb43('0x1e68')]()){case _0x1fcb43('0x256d'):_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x1c00')]=_0x2feb72['amazonlex'][_0x1fcb43('0x10ad')]+'='+_0x2feb72['amazonlex'][_0x1fcb43('0xa7b')];break;case'custom':break;default:_0x498232[0x0]=_0x2feb72[_0x1fcb43('0x1680')]['accesskeyid'],_0x498232[0x1]=_0x2feb72[_0x1fcb43('0x1680')]['secretaccesskey'],_0x498232[0x2]=_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x10fc')],_0x498232[0x3]=_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x53')],_0x498232[0x4]=_0x2feb72[_0x1fcb43('0x1680')][_0x1fcb43('0x1a7')],_0x2feb72[_0x1fcb43('0x1680')]['appdata']=_0x498232[_0x1fcb43('0x2259')](',');}_0x547548(_0x2feb72[_0x1fcb43('0x1680')]);}function _0x547548(_0x710a61){const _0x85b13c=_0x4d2229;_0x4060be[_0x85b13c('0x1cf4')](_0x710a61);}}const _0x17a0f1=_0x1f783f;_0x1a0275[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x2007'),_0x566993('0x234'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x1a0275(_0x28428a,_0x1e6a63,_0x211879,_0x563dd9,_0x5e7e5d,_0x1790f7,_0x9008ef,_0x18ccf6){const _0x5deb2e=_0x566993,_0x109936=this;_0x109936[_0x5deb2e('0x155f')]=_0x9008ef[_0x5deb2e('0x14d4')](),_0x109936[_0x5deb2e('0x1d4a')]=[],_0x109936['title']=_0x5deb2e('0x1bd4')+(_0x563dd9[_0x5deb2e('0x9d7')]||_0x563dd9['app'])[_0x5deb2e('0x1164')](),_0x109936[_0x5deb2e('0x23fe')]=angular[_0x5deb2e('0x2e3')](_0x563dd9),_0x109936[_0x5deb2e('0x1dc1')]=_0x18ccf6,_0x109936[_0x5deb2e('0xb0')]={};if(_0x109936['autoreply'][_0x5deb2e('0x1c00')])switch(_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x9d7')]?_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x9d7')][_0x5deb2e('0x1e68')]():_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x17e')]['toLowerCase']()){case _0x5deb2e('0xbb4'):break;case _0x5deb2e('0x1601'):{const _0x593866=_0x109936['autoreply'][_0x5deb2e('0x1c00')][_0x5deb2e('0x43a')](',');_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x237a')]=_0x593866[0x0],_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x604')]=_0x593866[0x1],_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1a7')]=_0x593866['slice'](0x2,_0x593866[_0x5deb2e('0x543')])[_0x5deb2e('0x2259')](',');}break;case _0x5deb2e('0x1680'):{const _0x546916=_0x109936[_0x5deb2e('0x23fe')]['appdata']['split'](',');_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x2e0')]=_0x546916[0x0],_0x109936[_0x5deb2e('0x23fe')]['secretaccesskey']=_0x546916[0x1],_0x109936['autoreply']['lexregion']=_0x546916[0x2],_0x109936['autoreply'][_0x5deb2e('0x53')]=_0x546916[0x3],_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1a7')]=_0x546916['slice'](0x4,_0x546916['length'])[_0x5deb2e('0x2259')](',');}break;case _0x5deb2e('0x23fe'):{const _0x3f7248=_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1c00')][_0x5deb2e('0x43a')](',');_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x611')]=isNaN(_0x3f7248[0x0])?_0x3f7248[0x0]:parseInt(_0x3f7248[0x0],0xa),_0x109936['autoreply'][_0x5deb2e('0x86e')]=_0x3f7248[_0x5deb2e('0x2456')](0x1,_0x3f7248['length'])['join'](',');}break;case _0x5deb2e('0x67f'):_0x109936['autoreply'][_0x5deb2e('0x86e')]=_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1c00')];break;case'set':_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x10ad')]=_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1c00')]['split']('=')[0x0],_0x109936['autoreply'][_0x5deb2e('0xa7b')]=_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1c00')][_0x5deb2e('0x43a')]('=')[0x1];break;case _0x5deb2e('0x2426'):_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x220b')]=_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1c00')];break;default:{const _0x1abe4b=_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1c00')][_0x5deb2e('0x43a')](',');_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x611')]=_0x3c8d8a()['isEmpty'](_0x1abe4b[0x0])?_0x1abe4b[0x0]:isNaN(_0x1abe4b[0x0])?_0x1abe4b[0x0]:parseInt(_0x1abe4b[0x0],0xa),_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x86e')]=_0x3c8d8a()[_0x5deb2e('0x1a56')](_0x1abe4b[0x1])?_0x1abe4b[0x1]:isNaN(_0x1abe4b[0x1])?_0x1abe4b[0x1]:parseInt(_0x1abe4b[0x1],0xa);}break;}else _0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x611')]=0x1;_0x109936[_0x5deb2e('0x23fe')]['type']&&_0x109936[_0x5deb2e('0x23fe')]['type'][_0x5deb2e('0x1e68')]()===_0x5deb2e('0xb33')&&_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x9d7')]['toLowerCase']()===_0x5deb2e('0x1edc')&&(_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x23f7')]=_0x109936['autoreply'][_0x5deb2e('0xa04')]?_0x109936[_0x5deb2e('0x23fe')]['phone']['split']('$')[0x0]:undefined,_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0x1961')]=_0x109936[_0x5deb2e('0x23fe')][_0x5deb2e('0xe95')]?_0x5deb2e('0x20a8')+_0x109936['autoreply'][_0x5deb2e('0xe95')]:undefined);_0x109936[_0x5deb2e('0x1e8a')]=_0x59f96c,_0x109936[_0x5deb2e('0x18e2')]=_0x39c6bf;function _0x59f96c(){const _0x37ec96=_0x5deb2e;_0x109936[_0x37ec96('0x1d4a')]=[];const _0x4eff6d=[];_0x109936[_0x37ec96('0x23fe')]['type']&&_0x109936['autoreply'][_0x37ec96('0x1810')][_0x37ec96('0x1e68')]()===_0x37ec96('0xb33')&&_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0x9d7')]===_0x37ec96('0x2150')&&(_0x109936['autoreply'][_0x37ec96('0xa04')]=_0x5e7e5d[_0x37ec96('0x1429')]?(_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0x23f7')]||'')+_0x37ec96('0x1957')+_0x5e7e5d['cutdigits']+'}':(_0x109936['autoreply'][_0x37ec96('0x23f7')]||'')+'${EXTEN}',_0x5e7e5d[_0x37ec96('0x76c')]!=='none'?_0x109936['autoreply'][_0x37ec96('0x2010')]['indexOf'](_0x37ec96('0x2474'))<0x0&&(_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0x2010')]+=_0x37ec96('0x2474')):_0x109936[_0x37ec96('0x23fe')]['options']=_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0x2010')]['replace'](_0x37ec96('0x2474'),''));if(_0x109936[_0x37ec96('0x23fe')]['appType']&&_0x109936['autoreply'][_0x37ec96('0x9d7')]===_0x37ec96('0xbb4')){}else switch((_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0x17e')]||_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0x9d7')])[_0x37ec96('0x1e68')]()){case _0x37ec96('0x256d'):_0x109936[_0x37ec96('0x23fe')]['appdata']=_0x109936[_0x37ec96('0x23fe')]['name']+'='+_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0xa7b')];break;case _0x37ec96('0xbb4'):break;default:_0x4eff6d[0x0]=_0x109936[_0x37ec96('0x23fe')]['times'],_0x4eff6d[0x1]=_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0x86e')],_0x109936[_0x37ec96('0x23fe')][_0x37ec96('0x1c00')]=_0x4eff6d[_0x37ec96('0x2259')](',');}_0x39c6bf(_0x109936[_0x37ec96('0x23fe')]);}function _0x39c6bf(_0x57f2cd){const _0x275b21=_0x5deb2e;_0x28428a[_0x275b21('0x1cf4')](_0x57f2cd);}}const _0x1b8bea=_0x1a0275;_0x441c74[_0x566993('0x17bb')]=['$mdDialog','$q','toasty',_0x566993('0x2007'),_0x566993('0x234'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x441c74(_0x50c839,_0x160255,_0x5f07cc,_0x55e2ff,_0x26252d,_0x1c4a5b,_0x237abb,_0x1f4407){const _0x5edd70=_0x566993,_0x5c16b0=this;_0x5c16b0[_0x5edd70('0x155f')]=_0x237abb[_0x5edd70('0x14d4')](),_0x5c16b0['errors']=[],_0x5c16b0[_0x5edd70('0x20d6')]=_0x5edd70('0x1bd4')+(_0x55e2ff[_0x5edd70('0x9d7')]||_0x55e2ff[_0x5edd70('0x17e')])[_0x5edd70('0x1164')](),_0x5c16b0[_0x5edd70('0x2151')]=angular['copy'](_0x55e2ff),_0x5c16b0['crudPermissions']=_0x1f4407,_0x5c16b0[_0x5edd70('0xb0')]={};if(_0x5c16b0[_0x5edd70('0x2151')]['appdata'])switch(_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x9d7')]?_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x9d7')][_0x5edd70('0x1e68')]():_0x5c16b0['close'][_0x5edd70('0x17e')]['toLowerCase']()){case _0x5edd70('0xbb4'):break;case _0x5edd70('0x1601'):{const _0x3ffb61=_0x5c16b0[_0x5edd70('0x2151')]['appdata']['split'](',');_0x5c16b0['close'][_0x5edd70('0x237a')]=_0x3ffb61[0x0],_0x5c16b0['close'][_0x5edd70('0x604')]=_0x3ffb61[0x1],_0x5c16b0[_0x5edd70('0x2151')]['welcomemessage']=_0x3ffb61[_0x5edd70('0x2456')](0x2,_0x3ffb61[_0x5edd70('0x543')])[_0x5edd70('0x2259')](',');}break;case _0x5edd70('0x1680'):{const _0x168a14=_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1c00')][_0x5edd70('0x43a')](',');_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x2e0')]=_0x168a14[0x0],_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1d93')]=_0x168a14[0x1],_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x10fc')]=_0x168a14[0x2],_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x53')]=_0x168a14[0x3],_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1a7')]=_0x168a14[_0x5edd70('0x2456')](0x4,_0x168a14[_0x5edd70('0x543')])[_0x5edd70('0x2259')](',');}break;case _0x5edd70('0x23fe'):{const _0x14f67=_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1c00')][_0x5edd70('0x43a')](',');_0x5c16b0[_0x5edd70('0x2151')]['times']=isNaN(_0x14f67[0x0])?_0x14f67[0x0]:parseInt(_0x14f67[0x0],0xa),_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x86e')]=_0x14f67[_0x5edd70('0x2456')](0x1,_0x14f67[_0x5edd70('0x543')])['join'](',');}break;case _0x5edd70('0x67f'):_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x86e')]=_0x5c16b0[_0x5edd70('0x2151')]['appdata'];break;case _0x5edd70('0x256d'):_0x5c16b0['close'][_0x5edd70('0x10ad')]=_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1c00')]['split']('=')[0x0],_0x5c16b0['close']['value']=_0x5c16b0['close'][_0x5edd70('0x1c00')][_0x5edd70('0x43a')]('=')[0x1];break;case _0x5edd70('0x2426'):_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x220b')]=_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1c00')];break;default:{const _0x4d001e=_0x5c16b0[_0x5edd70('0x2151')]['appdata']['split'](',');_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x2766')]=_0x3c8d8a()[_0x5edd70('0x1a56')](_0x4d001e[0x0])?_0x4d001e[0x0]:isNaN(_0x4d001e[0x0])?_0x4d001e[0x0]:parseInt(_0x4d001e[0x0],0xa);}break;}else{}_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1810')]&&_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1810')][_0x5edd70('0x1e68')]()===_0x5edd70('0xb33')&&_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x9d7')]['toLowerCase']()==='outbounddial'&&(_0x5c16b0[_0x5edd70('0x2151')]['prefix']=_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0xa04')]?_0x5c16b0['close'][_0x5edd70('0xa04')][_0x5edd70('0x43a')]('$')[0x0]:undefined,_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0x1961')]=_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0xe95')]?'CALLERID(all)='+_0x5c16b0[_0x5edd70('0x2151')][_0x5edd70('0xe95')]:undefined);_0x5c16b0[_0x5edd70('0x1e8a')]=_0x21c470,_0x5c16b0[_0x5edd70('0x18e2')]=_0x483df1;function _0x21c470(){const _0x470eaa=_0x5edd70;_0x5c16b0[_0x470eaa('0x1d4a')]=[];const _0x5c2ae8=[];_0x5c16b0[_0x470eaa('0x2151')]['type']&&_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x1810')][_0x470eaa('0x1e68')]()===_0x470eaa('0xb33')&&_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x9d7')]===_0x470eaa('0x2150')&&(_0x5c16b0['close']['phone']=_0x26252d[_0x470eaa('0x1429')]?(_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x23f7')]||'')+'${EXTEN:'+_0x26252d['cutdigits']+'}':(_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x23f7')]||'')+_0x470eaa('0x1dc5'),_0x26252d[_0x470eaa('0x76c')]!==_0x470eaa('0x2741')?_0x5c16b0[_0x470eaa('0x2151')]['options'][_0x470eaa('0x2087')](_0x470eaa('0x2474'))<0x0&&(_0x5c16b0['close'][_0x470eaa('0x2010')]+=_0x470eaa('0x2474')):_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x2010')]=_0x5c16b0[_0x470eaa('0x2151')]['options'][_0x470eaa('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x9d7')]&&_0x5c16b0['close'][_0x470eaa('0x9d7')]===_0x470eaa('0xbb4')){}else switch((_0x5c16b0['close'][_0x470eaa('0x17e')]||_0x5c16b0[_0x470eaa('0x2151')]['appType'])[_0x470eaa('0x1e68')]()){case'set':_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x1c00')]=_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x10ad')]+'='+_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0xa7b')];break;case _0x470eaa('0xbb4'):break;default:_0x5c2ae8[0x0]=_0x5c16b0['close']['disposition'],_0x5c16b0[_0x470eaa('0x2151')][_0x470eaa('0x1c00')]=_0x5c2ae8[_0x470eaa('0x2259')](',');}_0x483df1(_0x5c16b0['close']);}function _0x483df1(_0x1843b5){const _0x26a6ad=_0x5edd70;_0x50c839[_0x26a6ad('0x1cf4')](_0x1843b5);}}const _0x318d80=_0x441c74;_0x56a983[_0x566993('0x17bb')]=['$mdDialog','$q',_0x566993('0x1558'),_0x566993('0x2007'),_0x566993('0x234'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x56a983(_0x7fd852,_0xe2cb70,_0x16dc25,_0x45fffe,_0x21e349,_0x5d51b7,_0x2a31ab,_0x127b56){const _0x4b319d=_0x566993,_0x5a9d57=this;_0x5a9d57[_0x4b319d('0x155f')]=_0x2a31ab[_0x4b319d('0x14d4')](),_0x5a9d57[_0x4b319d('0x1d4a')]=[],_0x5a9d57[_0x4b319d('0x20d6')]=_0x4b319d('0x1bd4')+(_0x45fffe[_0x4b319d('0x9d7')]||_0x45fffe[_0x4b319d('0x17e')])['toUpperCase'](),_0x5a9d57[_0x4b319d('0x1601')]=angular['copy'](_0x45fffe),_0x5a9d57[_0x4b319d('0x1dc1')]=_0x127b56,_0x5a9d57[_0x4b319d('0xb0')]={};if(_0x5a9d57['dialogflow']['appdata'])switch(_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x9d7')]?_0x5a9d57['dialogflow']['appType'][_0x4b319d('0x1e68')]():_0x5a9d57['dialogflow'][_0x4b319d('0x17e')][_0x4b319d('0x1e68')]()){case _0x4b319d('0xbb4'):break;case'dialogflow':{const _0x3755bc=_0x5a9d57[_0x4b319d('0x1601')]['appdata'][_0x4b319d('0x43a')](',');_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x237a')]=_0x3755bc[0x0],_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x604')]=_0x3755bc[0x1],_0x5a9d57[_0x4b319d('0x1601')]['welcomemessage']=_0x3755bc[_0x4b319d('0x2456')](0x2,_0x3755bc[_0x4b319d('0x543')])['join'](',');}break;case'amazonlex':{const _0x589e52=_0x5a9d57['dialogflow'][_0x4b319d('0x1c00')][_0x4b319d('0x43a')](',');_0x5a9d57['dialogflow'][_0x4b319d('0x2e0')]=_0x589e52[0x0],_0x5a9d57['dialogflow'][_0x4b319d('0x1d93')]=_0x589e52[0x1],_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x10fc')]=_0x589e52[0x2],_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x53')]=_0x589e52[0x3],_0x5a9d57[_0x4b319d('0x1601')]['welcomemessage']=_0x589e52['slice'](0x4,_0x589e52['length'])[_0x4b319d('0x2259')](',');}break;case _0x4b319d('0x23fe'):{const _0x4d1046=_0x5a9d57[_0x4b319d('0x1601')]['appdata'][_0x4b319d('0x43a')](',');_0x5a9d57[_0x4b319d('0x1601')]['times']=isNaN(_0x4d1046[0x0])?_0x4d1046[0x0]:parseInt(_0x4d1046[0x0],0xa),_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x86e')]=_0x4d1046[_0x4b319d('0x2456')](0x1,_0x4d1046[_0x4b319d('0x543')])[_0x4b319d('0x2259')](',');}break;case _0x4b319d('0x67f'):_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x86e')]=_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x1c00')];break;case'set':_0x5a9d57[_0x4b319d('0x1601')]['name']=_0x5a9d57[_0x4b319d('0x1601')]['appdata'][_0x4b319d('0x43a')]('=')[0x0],_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0xa7b')]=_0x5a9d57[_0x4b319d('0x1601')]['appdata'][_0x4b319d('0x43a')]('=')[0x1];break;case'agi':_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x220b')]=_0x5a9d57['dialogflow'][_0x4b319d('0x1c00')];break;default:{const _0x3ff0e8=_0x5a9d57[_0x4b319d('0x1601')]['appdata']['split'](',');_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x237a')]=_0x3c8d8a()[_0x4b319d('0x1a56')](_0x3ff0e8[0x0])?_0x3ff0e8[0x0]:isNaN(_0x3ff0e8[0x0])?_0x3ff0e8[0x0]:parseInt(_0x3ff0e8[0x0],0xa),_0x5a9d57['dialogflow'][_0x4b319d('0x604')]=_0x3c8d8a()[_0x4b319d('0x1a56')](_0x3ff0e8[0x1])?_0x3ff0e8[0x1]:isNaN(_0x3ff0e8[0x1])?_0x3ff0e8[0x1]:parseInt(_0x3ff0e8[0x1],0xa),_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x1a7')]=_0x3c8d8a()[_0x4b319d('0x1a56')](_0x3ff0e8[0x2])?_0x3ff0e8[0x2]:isNaN(_0x3ff0e8[0x2])?_0x3ff0e8[0x2]:parseInt(_0x3ff0e8[0x2],0xa);}break;}else _0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x604')]='en';_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x1810')]&&_0x5a9d57[_0x4b319d('0x1601')]['type'][_0x4b319d('0x1e68')]()===_0x4b319d('0xb33')&&_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x9d7')][_0x4b319d('0x1e68')]()==='outbounddial'&&(_0x5a9d57['dialogflow'][_0x4b319d('0x23f7')]=_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0xa04')]?_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0xa04')]['split']('$')[0x0]:undefined,_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0x1961')]=_0x5a9d57[_0x4b319d('0x1601')]['callerID']?_0x4b319d('0x20a8')+_0x5a9d57[_0x4b319d('0x1601')][_0x4b319d('0xe95')]:undefined);_0x5a9d57[_0x4b319d('0x1e8a')]=_0x3ae886,_0x5a9d57[_0x4b319d('0x18e2')]=_0x6ddbcd;function _0x3ae886(){const _0x5eecc0=_0x4b319d;_0x5a9d57[_0x5eecc0('0x1d4a')]=[];const _0x3c80f4=[];_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x1810')]&&_0x5a9d57[_0x5eecc0('0x1601')]['type'][_0x5eecc0('0x1e68')]()===_0x5eecc0('0xb33')&&_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x9d7')]===_0x5eecc0('0x2150')&&(_0x5a9d57[_0x5eecc0('0x1601')]['phone']=_0x21e349[_0x5eecc0('0x1429')]?(_0x5a9d57[_0x5eecc0('0x1601')]['prefix']||'')+'${EXTEN:'+_0x21e349['cutdigits']+'}':(_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x23f7')]||'')+_0x5eecc0('0x1dc5'),_0x21e349[_0x5eecc0('0x76c')]!==_0x5eecc0('0x2741')?_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x2010')][_0x5eecc0('0x2087')](_0x5eecc0('0x2474'))<0x0&&(_0x5a9d57[_0x5eecc0('0x1601')]['options']+='U(xcally-mixmonitor-context)'):_0x5a9d57[_0x5eecc0('0x1601')]['options']=_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x2010')][_0x5eecc0('0x166c')](_0x5eecc0('0x2474'),''));if(_0x5a9d57[_0x5eecc0('0x1601')]['appType']&&_0x5a9d57['dialogflow'][_0x5eecc0('0x9d7')]===_0x5eecc0('0xbb4')){}else switch((_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x17e')]||_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x9d7')])['toLowerCase']()){case'set':_0x5a9d57[_0x5eecc0('0x1601')]['appdata']=_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x10ad')]+'='+_0x5a9d57['dialogflow']['value'];break;case'custom':break;default:_0x3c80f4[0x0]=_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x237a')],_0x3c80f4[0x1]=_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x604')],_0x3c80f4[0x2]=_0x5a9d57[_0x5eecc0('0x1601')][_0x5eecc0('0x1a7')],_0x5a9d57[_0x5eecc0('0x1601')]['appdata']=_0x3c80f4[_0x5eecc0('0x2259')](',');}_0x6ddbcd(_0x5a9d57[_0x5eecc0('0x1601')]);}function _0x6ddbcd(_0x210628){const _0x3bff91=_0x4b319d;_0x7fd852[_0x3bff91('0x1cf4')](_0x210628);}}const _0x3da9c7=_0x56a983;_0x1bf991[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x2007'),_0x566993('0x234'),_0x566993('0xbd4'),_0x566993('0x1600'),'crudPermissions'];function _0x1bf991(_0x4e2078,_0x2a1d97,_0x544851,_0x1ec81b,_0x3c235f,_0x2fe1a5,_0x5da6ad,_0x40c45e){const _0x5aa4f6=_0x566993,_0x4abf28=this;_0x4abf28[_0x5aa4f6('0x155f')]=_0x5da6ad[_0x5aa4f6('0x14d4')](),_0x4abf28[_0x5aa4f6('0x1d4a')]=[],_0x4abf28[_0x5aa4f6('0x20d6')]='WHATSAPP.EDIT_'+(_0x1ec81b[_0x5aa4f6('0x9d7')]||_0x1ec81b[_0x5aa4f6('0x17e')])['toUpperCase'](),_0x4abf28[_0x5aa4f6('0xf5d')]=angular[_0x5aa4f6('0x2e3')](_0x1ec81b),_0x4abf28[_0x5aa4f6('0x1dc1')]=_0x40c45e,_0x4abf28[_0x5aa4f6('0xb0')]={};if(_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1c00')])switch(_0x4abf28[_0x5aa4f6('0xf5d')]['appType']?_0x4abf28['gotoif'][_0x5aa4f6('0x9d7')][_0x5aa4f6('0x1e68')]():_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x17e')]['toLowerCase']()){case _0x5aa4f6('0xbb4'):break;case _0x5aa4f6('0x1601'):{const _0x3bb0b3=_0x4abf28['gotoif'][_0x5aa4f6('0x1c00')][_0x5aa4f6('0x43a')](',');_0x4abf28['gotoif']['key']=_0x3bb0b3[0x0],_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x604')]=_0x3bb0b3[0x1],_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1a7')]=_0x3bb0b3[_0x5aa4f6('0x2456')](0x2,_0x3bb0b3['length'])[_0x5aa4f6('0x2259')](',');}break;case _0x5aa4f6('0x1680'):{const _0x114532=_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1c00')][_0x5aa4f6('0x43a')](',');_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x2e0')]=_0x114532[0x0],_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1d93')]=_0x114532[0x1],_0x4abf28['gotoif'][_0x5aa4f6('0x10fc')]=_0x114532[0x2],_0x4abf28[_0x5aa4f6('0xf5d')]['botname']=_0x114532[0x3],_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1a7')]=_0x114532[_0x5aa4f6('0x2456')](0x4,_0x114532[_0x5aa4f6('0x543')])[_0x5aa4f6('0x2259')](',');}break;case _0x5aa4f6('0x23fe'):{const _0x221f8d=_0x4abf28['gotoif'][_0x5aa4f6('0x1c00')][_0x5aa4f6('0x43a')](',');_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x611')]=isNaN(_0x221f8d[0x0])?_0x221f8d[0x0]:parseInt(_0x221f8d[0x0],0xa),_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x86e')]=_0x221f8d[_0x5aa4f6('0x2456')](0x1,_0x221f8d['length'])[_0x5aa4f6('0x2259')](',');}break;case _0x5aa4f6('0x67f'):_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x86e')]=_0x4abf28['gotoif']['appdata'];break;case _0x5aa4f6('0x256d'):_0x4abf28['gotoif'][_0x5aa4f6('0x10ad')]=_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1c00')][_0x5aa4f6('0x43a')]('=')[0x0],_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0xa7b')]=_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1c00')]['split']('=')[0x1];break;case _0x5aa4f6('0x2426'):_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x220b')]=_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1c00')];break;default:{const _0x4d8b7e=_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1c00')][_0x5aa4f6('0x43a')](',');_0x4abf28['gotoif'][_0x5aa4f6('0x1adb')]=_0x3c8d8a()[_0x5aa4f6('0x1a56')](_0x4d8b7e[0x0])?_0x4d8b7e[0x0]:isNaN(_0x4d8b7e[0x0])?_0x4d8b7e[0x0]:parseInt(_0x4d8b7e[0x0],0xa),_0x4abf28['gotoif'][_0x5aa4f6('0x1cd7')]=_0x3c8d8a()[_0x5aa4f6('0x1a56')](_0x4d8b7e[0x1])?_0x4d8b7e[0x1]:isNaN(_0x4d8b7e[0x1])?_0x4d8b7e[0x1]:parseInt(_0x4d8b7e[0x1],0xa),_0x4abf28['gotoif'][_0x5aa4f6('0x1ec9')]=_0x3c8d8a()['isEmpty'](_0x4d8b7e[0x2])?_0x4d8b7e[0x2]:isNaN(_0x4d8b7e[0x2])?_0x4d8b7e[0x2]:parseInt(_0x4d8b7e[0x2],0xa);}break;}else{}_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1810')]&&_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1810')][_0x5aa4f6('0x1e68')]()==='outbound'&&_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x9d7')][_0x5aa4f6('0x1e68')]()===_0x5aa4f6('0x1edc')&&(_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x23f7')]=_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0xa04')]?_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0xa04')][_0x5aa4f6('0x43a')]('$')[0x0]:undefined,_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0x1961')]=_0x4abf28[_0x5aa4f6('0xf5d')]['callerID']?_0x5aa4f6('0x20a8')+_0x4abf28[_0x5aa4f6('0xf5d')][_0x5aa4f6('0xe95')]:undefined);_0x4abf28[_0x5aa4f6('0x1e8a')]=_0x49cdf3,_0x4abf28['closeDialog']=_0x812283;function _0x49cdf3(){const _0x24348a=_0x5aa4f6;_0x4abf28[_0x24348a('0x1d4a')]=[];const _0x15e293=[];_0x4abf28['gotoif'][_0x24348a('0x1810')]&&_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x1810')][_0x24348a('0x1e68')]()==='outbound'&&_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x9d7')]==='outboundDial'&&(_0x4abf28[_0x24348a('0xf5d')]['phone']=_0x3c235f[_0x24348a('0x1429')]?(_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x23f7')]||'')+_0x24348a('0x1957')+_0x3c235f[_0x24348a('0x1429')]+'}':(_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x23f7')]||'')+_0x24348a('0x1dc5'),_0x3c235f[_0x24348a('0x76c')]!==_0x24348a('0x2741')?_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x2010')][_0x24348a('0x2087')](_0x24348a('0x2474'))<0x0&&(_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x2010')]+='U(xcally-mixmonitor-context)'):_0x4abf28['gotoif'][_0x24348a('0x2010')]=_0x4abf28[_0x24348a('0xf5d')]['options'][_0x24348a('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x9d7')]&&_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x9d7')]==='custom'){}else switch((_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x17e')]||_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x9d7')])[_0x24348a('0x1e68')]()){case _0x24348a('0x256d'):_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x1c00')]=_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x10ad')]+'='+_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0xa7b')];break;case _0x24348a('0xbb4'):break;default:_0x15e293[0x0]=_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x1adb')],_0x15e293[0x1]=_0x4abf28[_0x24348a('0xf5d')]['truepriority'],_0x15e293[0x2]=_0x4abf28['gotoif'][_0x24348a('0x1ec9')],_0x4abf28[_0x24348a('0xf5d')][_0x24348a('0x1c00')]=_0x15e293[_0x24348a('0x2259')](',');}_0x812283(_0x4abf28[_0x24348a('0xf5d')]);}function _0x812283(_0x5080f3){const _0x2943bc=_0x5aa4f6;_0x4e2078[_0x2943bc('0x1cf4')](_0x5080f3);}}const _0x154c15=_0x1bf991;_0x524998[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x2007'),'whatsappAccount',_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x524998(_0x156bc9,_0x28606b,_0x292f2f,_0xd5c6e8,_0x6f74ad,_0x2ab7e1,_0x1727f4,_0x400b4f){const _0x3b52dd=_0x566993,_0x2427ed=this;_0x2427ed[_0x3b52dd('0x155f')]=_0x1727f4[_0x3b52dd('0x14d4')](),_0x2427ed[_0x3b52dd('0x1d4a')]=[],_0x2427ed[_0x3b52dd('0x20d6')]=_0x3b52dd('0x1bd4')+(_0xd5c6e8[_0x3b52dd('0x9d7')]||_0xd5c6e8['app'])[_0x3b52dd('0x1164')](),_0x2427ed[_0x3b52dd('0x2ac')]=angular['copy'](_0xd5c6e8),_0x2427ed['crudPermissions']=_0x400b4f,_0x2427ed[_0x3b52dd('0xb0')]={};if(_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1c00')])switch(_0x2427ed['gotop']['appType']?_0x2427ed['gotop'][_0x3b52dd('0x9d7')][_0x3b52dd('0x1e68')]():_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x17e')][_0x3b52dd('0x1e68')]()){case _0x3b52dd('0xbb4'):break;case _0x3b52dd('0x1601'):{const _0x1aa037=_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1c00')][_0x3b52dd('0x43a')](',');_0x2427ed['gotop']['key']=_0x1aa037[0x0],_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x604')]=_0x1aa037[0x1],_0x2427ed[_0x3b52dd('0x2ac')]['welcomemessage']=_0x1aa037[_0x3b52dd('0x2456')](0x2,_0x1aa037[_0x3b52dd('0x543')])['join'](',');}break;case'amazonlex':{const _0x4cedb7=_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1c00')][_0x3b52dd('0x43a')](',');_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x2e0')]=_0x4cedb7[0x0],_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1d93')]=_0x4cedb7[0x1],_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x10fc')]=_0x4cedb7[0x2],_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x53')]=_0x4cedb7[0x3],_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1a7')]=_0x4cedb7[_0x3b52dd('0x2456')](0x4,_0x4cedb7[_0x3b52dd('0x543')])[_0x3b52dd('0x2259')](',');}break;case _0x3b52dd('0x23fe'):{const _0x266924=_0x2427ed['gotop'][_0x3b52dd('0x1c00')][_0x3b52dd('0x43a')](',');_0x2427ed[_0x3b52dd('0x2ac')]['times']=isNaN(_0x266924[0x0])?_0x266924[0x0]:parseInt(_0x266924[0x0],0xa),_0x2427ed[_0x3b52dd('0x2ac')]['text']=_0x266924[_0x3b52dd('0x2456')](0x1,_0x266924[_0x3b52dd('0x543')])[_0x3b52dd('0x2259')](',');}break;case _0x3b52dd('0x67f'):_0x2427ed['gotop'][_0x3b52dd('0x86e')]=_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1c00')];break;case _0x3b52dd('0x256d'):_0x2427ed['gotop'][_0x3b52dd('0x10ad')]=_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1c00')][_0x3b52dd('0x43a')]('=')[0x0],_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0xa7b')]=_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1c00')][_0x3b52dd('0x43a')]('=')[0x1];break;case _0x3b52dd('0x2426'):_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x220b')]=_0x2427ed['gotop'][_0x3b52dd('0x1c00')];break;default:{const _0x5ca374=_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1c00')][_0x3b52dd('0x43a')](',');_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0xb3')]=_0x3c8d8a()[_0x3b52dd('0x1a56')](_0x5ca374[0x0])?_0x5ca374[0x0]:isNaN(_0x5ca374[0x0])?_0x5ca374[0x0]:parseInt(_0x5ca374[0x0],0xa);}break;}else{}_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x1810')]&&_0x2427ed['gotop'][_0x3b52dd('0x1810')]['toLowerCase']()===_0x3b52dd('0xb33')&&_0x2427ed['gotop']['appType']['toLowerCase']()===_0x3b52dd('0x1edc')&&(_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0x23f7')]=_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0xa04')]?_0x2427ed['gotop'][_0x3b52dd('0xa04')][_0x3b52dd('0x43a')]('$')[0x0]:undefined,_0x2427ed['gotop'][_0x3b52dd('0x1961')]=_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0xe95')]?_0x3b52dd('0x20a8')+_0x2427ed[_0x3b52dd('0x2ac')][_0x3b52dd('0xe95')]:undefined);_0x2427ed[_0x3b52dd('0x1e8a')]=_0x10820c,_0x2427ed['closeDialog']=_0x1751dc;function _0x10820c(){const _0x449067=_0x3b52dd;_0x2427ed[_0x449067('0x1d4a')]=[];const _0x595cd1=[];_0x2427ed[_0x449067('0x2ac')][_0x449067('0x1810')]&&_0x2427ed[_0x449067('0x2ac')][_0x449067('0x1810')][_0x449067('0x1e68')]()==='outbound'&&_0x2427ed[_0x449067('0x2ac')][_0x449067('0x9d7')]===_0x449067('0x2150')&&(_0x2427ed[_0x449067('0x2ac')][_0x449067('0xa04')]=_0x6f74ad[_0x449067('0x1429')]?(_0x2427ed[_0x449067('0x2ac')][_0x449067('0x23f7')]||'')+_0x449067('0x1957')+_0x6f74ad['cutdigits']+'}':(_0x2427ed[_0x449067('0x2ac')][_0x449067('0x23f7')]||'')+_0x449067('0x1dc5'),_0x6f74ad[_0x449067('0x76c')]!==_0x449067('0x2741')?_0x2427ed[_0x449067('0x2ac')]['options'][_0x449067('0x2087')](_0x449067('0x2474'))<0x0&&(_0x2427ed[_0x449067('0x2ac')]['options']+='U(xcally-mixmonitor-context)'):_0x2427ed[_0x449067('0x2ac')][_0x449067('0x2010')]=_0x2427ed[_0x449067('0x2ac')][_0x449067('0x2010')][_0x449067('0x166c')](_0x449067('0x2474'),''));if(_0x2427ed[_0x449067('0x2ac')][_0x449067('0x9d7')]&&_0x2427ed['gotop'][_0x449067('0x9d7')]===_0x449067('0xbb4')){}else switch((_0x2427ed['gotop']['app']||_0x2427ed[_0x449067('0x2ac')]['appType'])['toLowerCase']()){case'set':_0x2427ed[_0x449067('0x2ac')][_0x449067('0x1c00')]=_0x2427ed[_0x449067('0x2ac')][_0x449067('0x10ad')]+'='+_0x2427ed[_0x449067('0x2ac')][_0x449067('0xa7b')];break;case _0x449067('0xbb4'):break;default:_0x595cd1[0x0]=_0x2427ed[_0x449067('0x2ac')][_0x449067('0xb3')],_0x2427ed[_0x449067('0x2ac')][_0x449067('0x1c00')]=_0x595cd1['join'](',');}_0x1751dc(_0x2427ed[_0x449067('0x2ac')]);}function _0x1751dc(_0x23c9c5){const _0x3e752a=_0x3b52dd;_0x156bc9[_0x3e752a('0x1cf4')](_0x23c9c5);}}const _0x4c58d9=_0x524998;_0x1a62bb['$inject']=[_0x566993('0x2276'),_0x566993('0x1fe5'),'$mdToast',_0x566993('0x1975'),_0x566993('0x55a'),_0x566993('0x21c4'),_0x566993('0x1558'),_0x566993('0xbd4'),'Auth','crudPermissions'];function _0x1a62bb(_0x524427,_0x3c6567,_0x45c89c,_0x10b306,_0x4fe507,_0x30d250,_0x547e58,_0x34d042,_0x5c8686,_0x4e0040){const _0xd11625=_0x566993,_0x3e03ae=this;_0x3e03ae[_0xd11625('0x155f')]=_0x5c8686['getCurrentUser'](),_0x3e03ae[_0xd11625('0x1d4a')]=[],_0x3e03ae['title']=_0xd11625('0x117b'),_0x3e03ae['interval']=angular[_0xd11625('0x2e3')](_0x4fe507),_0x3e03ae['intervals']=_0x30d250,_0x3e03ae[_0xd11625('0x1d80')]=![],_0x3e03ae[_0xd11625('0xf00')]=[_0xd11625('0x17b3'),_0xd11625('0xbb4'),_0xd11625('0x3e3')],_0x3e03ae[_0xd11625('0x1dc1')]=_0x4e0040,_0x3e03ae[_0xd11625('0x1626')]=_0x10b306['getDaysOfWeek'](),_0x3e03ae['monthNumber']=_0x10b306['getMonthNumber'](),_0x3e03ae[_0xd11625('0x1d95')]=_0x10b306[_0xd11625('0xb02')](),_0x3e03ae[_0xd11625('0x2742')]=_0x10b306[_0xd11625('0x1c80')]();if(!_0x3e03ae[_0xd11625('0x55a')])_0x3e03ae[_0xd11625('0x55a')]={'interval':'*,*,*,*'},_0x3e03ae[_0xd11625('0x1810')]=_0xd11625('0x17b3'),_0x3e03ae['title']=_0xd11625('0xbb5'),_0x3e03ae[_0xd11625('0x1d80')]=!![];else{if(_0x3e03ae['interval'][_0xd11625('0x55a')]!==_0xd11625('0x17c5')){_0x3e03ae[_0xd11625('0x1810')]=_0xd11625('0xbb4');const _0xc39017=_0x3e03ae[_0xd11625('0x55a')][_0xd11625('0x55a')]['split'](','),_0x37b43e=_0xc39017[0x0],_0x11544a=_0xc39017[0x1],_0x2a7cc7=_0xc39017[0x2],_0x1297f1=_0xc39017[0x3];if(_0x37b43e!=='*'){const _0x44f615=_0x37b43e['split']('-')[0x0],_0x282d66=_0x37b43e[_0xd11625('0x43a')]('-')[0x1];let _0x4b67eb;_0x4b67eb=new Date(),_0x4b67eb[_0xd11625('0xd32')](Number(_0x44f615[_0xd11625('0x43a')](':')[0x0])),_0x4b67eb[_0xd11625('0x14f9')](Number(_0x44f615['split'](':')[0x1])),_0x3e03ae['timeRangeFrom']=_0x4b67eb,_0x4b67eb=new Date(),_0x4b67eb[_0xd11625('0xd32')](Number(_0x282d66[_0xd11625('0x43a')](':')[0x0])),_0x4b67eb[_0xd11625('0x14f9')](Number(_0x282d66[_0xd11625('0x43a')](':')[0x1])),_0x3e03ae[_0xd11625('0x437')]=_0x4b67eb;}_0x11544a!=='*'&&(_0x3e03ae[_0xd11625('0x37a')]=_0x11544a[_0xd11625('0x43a')]('-')[0x0],_0x3e03ae[_0xd11625('0x269e')]=_0x11544a['split']('-')[0x1]),_0x2a7cc7!=='*'&&(_0x3e03ae[_0xd11625('0x6df')]=_0x2a7cc7[_0xd11625('0x43a')]('-')[0x0],_0x3e03ae[_0xd11625('0x185e')]=_0x2a7cc7['split']('-')[0x1]),_0x1297f1!=='*'&&(_0x3e03ae[_0xd11625('0x1f34')]=_0x1297f1[_0xd11625('0x43a')]('-')[0x0],_0x3e03ae[_0xd11625('0xf74')]=_0x1297f1['split']('-')[0x1]);}else _0x3e03ae[_0xd11625('0x1810')]=_0xd11625('0x17b3');}_0x524427[_0xd11625('0x197a')]['id']&&!_0x3e03ae[_0xd11625('0x55a')]['application']&&(_0x3e03ae['interval'][_0xd11625('0x600')]=_0x524427[_0xd11625('0x197a')]['id']);_0x3e03ae['interval'][_0xd11625('0x600')]&&_0x3e03ae[_0xd11625('0x55a')][_0xd11625('0x17c2')]&&(_0x3e03ae['type']=_0xd11625('0x3e3'));_0x3e03ae['addNewInterval']=_0x4f80aa,_0x3e03ae[_0xd11625('0x1401')]=_0x2ebeac,_0x3e03ae[_0xd11625('0x18e2')]=_0x1b32d1;_0x3e03ae[_0xd11625('0x55a')][_0xd11625('0x17c2')]&&(_0x5c8686[_0xd11625('0x1b4e')](_0xd11625('0x79b'))?_0x34d042[_0xd11625('0x55a')]['get']({'fields':_0xd11625('0x2666'),'IntervalId':_0xd11625('0x877'),'nolimit':!![]})['$promise'][_0xd11625('0x173b')](function(_0x47cbb8){const _0x161099=_0xd11625;_0x3e03ae[_0x161099('0x21c4')]=_0x47cbb8['rows']||[];})[_0xd11625('0x103c')](function(_0x3719e7){const _0x57066f=_0xd11625;_0x547e58[_0x57066f('0x15aa')]({'title':_0x3719e7[_0x57066f('0x276f')]?'API:'+_0x3719e7[_0x57066f('0x276f')]+_0x57066f('0x160c')+_0x3719e7['statusText']:_0x57066f('0x1daf'),'msg':_0x3719e7[_0x57066f('0x1e07')]?JSON[_0x57066f('0x100b')](_0x3719e7[_0x57066f('0x1e07')]):_0x3719e7[_0x57066f('0x1b75')]()});}):_0x34d042[_0xd11625('0x55a')][_0xd11625('0x1d97')]({'fields':'id,name,interval,IntervalId','IntervalId':_0xd11625('0x877'),'nolimit':!![]})[_0xd11625('0x1964')]['then'](function(_0x33994c){const _0x3c545f=_0xd11625;_0x3e03ae[_0x3c545f('0x21c4')]=_0x33994c[_0x3c545f('0x6aa')]||[];})[_0xd11625('0x173b')](function(){const _0x51d0b8=_0xd11625;return _0x34d042['userProfileSection']['get']({'userProfileId':_0x3e03ae[_0x51d0b8('0x155f')][_0x51d0b8('0x1946')],'sectionId':0x3ec})[_0x51d0b8('0x1964')];})[_0xd11625('0x173b')](function(_0x24670e){const _0x2ad139=_0xd11625,_0x10a7f1=_0x24670e&&_0x24670e[_0x2ad139('0x6aa')]?_0x24670e['rows'][0x0]:null;if(!_0x10a7f1)_0x3e03ae['intervals']=[];else{if(!_0x10a7f1['autoAssociation'])return _0x34d042['userProfileResource'][_0x2ad139('0x1d97')]({'sectionId':_0x10a7f1['id']})[_0x2ad139('0x1964')][_0x2ad139('0x173b')](function(_0x1d8f6b){const _0x4e0965=_0x2ad139,_0x398fa5=_0x1d8f6b&&_0x1d8f6b['rows']?_0x1d8f6b['rows']:[],_0x2515df=[];let _0x58d8e0=null;_0x3e03ae[_0x4e0965('0x55a')]&&(_0x58d8e0=_0x3c8d8a()[_0x4e0965('0x18ab')](_0x3e03ae[_0x4e0965('0x21c4')],{'name':_0x3e03ae[_0x4e0965('0x55a')][_0x4e0965('0x600')]})),_0x58d8e0&&!_0x3c8d8a()[_0x4e0965('0x1ec')](_0x398fa5,[_0x4e0965('0x1ce0'),_0x58d8e0['id']])&&_0x3e03ae[_0x4e0965('0x21c4')][_0x4e0965('0xa6a')](function(_0x4cc6f0){const _0x4a39da=_0x4e0965;_0x4cc6f0['id']===_0x58d8e0['id']&&(_0x4cc6f0['canSelect']=![],_0x2515df[_0x4a39da('0x18bb')](_0x4cc6f0));}),_0x3e03ae[_0x4e0965('0x21c4')]=_0x2515df;});}})[_0xd11625('0x103c')](function(_0x4bd905){const _0x2d85c9=_0xd11625;_0x547e58['error']({'title':_0x4bd905[_0x2d85c9('0x276f')]?_0x2d85c9('0x137')+_0x4bd905['status']+_0x2d85c9('0x160c')+_0x4bd905[_0x2d85c9('0x2696')]:_0x2d85c9('0x1daf'),'msg':_0x4bd905[_0x2d85c9('0x1e07')]?JSON['stringify'](_0x4bd905['data']):_0x4bd905[_0x2d85c9('0x1b75')]()});}));function _0x4e67b5(){const _0xdd9e34=_0xd11625;switch(_0x3e03ae[_0xdd9e34('0x1810')]){case _0xdd9e34('0x17b3'):case _0xdd9e34('0x3e3'):return _0xdd9e34('0x17c5');case _0xdd9e34('0xbb4'):{const _0x56744d=[];if(_0x3e03ae[_0xdd9e34('0x2515')]!=='*'&&_0x3e03ae[_0xdd9e34('0x2515')]&&_0x3e03ae['timeRangeTo']){const _0x43eb3b=(_0x3e03ae[_0xdd9e34('0x2515')][_0xdd9e34('0x1a28')]()<0xa?'0':'')+_0x3e03ae['timeRangeFrom'][_0xdd9e34('0x1a28')]()+':'+((_0x3e03ae[_0xdd9e34('0x2515')][_0xdd9e34('0x1d2a')]()<0xa?'0':'')+_0x3e03ae['timeRangeFrom'][_0xdd9e34('0x1d2a')]()),_0x10968b=(_0x3e03ae[_0xdd9e34('0x437')][_0xdd9e34('0x1a28')]()<0xa?'0':'')+_0x3e03ae[_0xdd9e34('0x437')]['getHours']()+':'+((_0x3e03ae[_0xdd9e34('0x437')][_0xdd9e34('0x1d2a')]()<0xa?'0':'')+_0x3e03ae[_0xdd9e34('0x437')]['getMinutes']());_0x56744d[_0xdd9e34('0x18bb')](_0x43eb3b+'-'+_0x10968b);}else _0x56744d['push']('*');return _0x3e03ae[_0xdd9e34('0x37a')]?_0x3e03ae[_0xdd9e34('0x269e')]?_0x56744d[_0xdd9e34('0x18bb')](_0x3e03ae[_0xdd9e34('0x37a')]+'-'+_0x3e03ae[_0xdd9e34('0x269e')]):_0x56744d['push'](_0x3e03ae[_0xdd9e34('0x37a')]):_0x56744d[_0xdd9e34('0x18bb')]('*'),_0x3e03ae['monthDayFrom']?_0x3e03ae['monthDayTo']?_0x56744d[_0xdd9e34('0x18bb')](_0x3e03ae[_0xdd9e34('0x6df')]+'-'+_0x3e03ae[_0xdd9e34('0x185e')]):_0x56744d['push'](_0x3e03ae[_0xdd9e34('0x6df')]):_0x56744d[_0xdd9e34('0x18bb')]('*'),_0x3e03ae['monthFrom']?_0x3e03ae['monthTo']?_0x56744d[_0xdd9e34('0x18bb')](_0x3e03ae['monthFrom']+'-'+_0x3e03ae[_0xdd9e34('0xf74')]):_0x56744d[_0xdd9e34('0x18bb')](_0x3e03ae['monthFrom']):_0x56744d[_0xdd9e34('0x18bb')]('*'),_0x56744d['join']();}}}function _0x4f80aa(){const _0xd2b88e=_0xd11625;_0x3e03ae['errors']=[],_0x3e03ae[_0xd2b88e('0x55a')]['interval']=_0x4e67b5(),_0x34d042[_0xd2b88e('0x55a')][_0xd2b88e('0x1195')](_0x3e03ae[_0xd2b88e('0x55a')])[_0xd2b88e('0x1964')][_0xd2b88e('0x173b')](function(_0x3a8f3e){const _0x45dfee=_0xd2b88e;_0x3e03ae['intervals'][_0x45dfee('0x18bb')](_0x3a8f3e),_0x547e58['success']({'title':'Interval\x20properly\x20created','msg':_0x3e03ae[_0x45dfee('0x55a')][_0x45dfee('0x10ad')]?_0x3e03ae['interval'][_0x45dfee('0x10ad')]+_0x45dfee('0x209a'):''}),_0x1b32d1();})[_0xd2b88e('0x103c')](function(_0x176ca7){const _0x578591=_0xd2b88e;console[_0x578591('0x15aa')](_0x176ca7),_0x3e03ae[_0x578591('0x1d4a')]=_0x176ca7['data'][_0x578591('0x1d4a')]||[{'message':_0x176ca7[_0x578591('0x1b75')](),'type':_0x578591('0xbde')}];});}function _0x2ebeac(){const _0x1ef1ea=_0xd11625;_0x3e03ae[_0x1ef1ea('0x1d4a')]=[],_0x3e03ae[_0x1ef1ea('0x55a')]['interval']=_0x4e67b5(),_0x3e03ae[_0x1ef1ea('0x55a')][_0x1ef1ea('0x17c2')]?(_0x3e03ae[_0x1ef1ea('0x1810')]!=='list'&&(_0x3e03ae[_0x1ef1ea('0x55a')][_0x1ef1ea('0x600')]=null),_0x1b32d1(_0x3e03ae[_0x1ef1ea('0x55a')])):_0x34d042['interval'][_0x1ef1ea('0x1842')]({'id':_0x3e03ae[_0x1ef1ea('0x55a')]['id']},_0x3e03ae[_0x1ef1ea('0x55a')])[_0x1ef1ea('0x1964')][_0x1ef1ea('0x173b')](function(_0x514a26){const _0x34bfb0=_0x1ef1ea,_0x3bb80d=_0x3c8d8a()[_0x34bfb0('0x18ab')](_0x3e03ae[_0x34bfb0('0x21c4')],{'id':_0x514a26['id']});_0x3bb80d&&_0x3c8d8a()[_0x34bfb0('0x9ef')](_0x3bb80d,_0x514a26),_0x547e58[_0x34bfb0('0xdfe')]({'title':_0x34bfb0('0x39a'),'msg':_0x34bfb0('0x227f')}),_0x1b32d1();})[_0x1ef1ea('0x103c')](function(_0x41859a){const _0x3c2e94=_0x1ef1ea;console[_0x3c2e94('0x15aa')](_0x41859a),_0x3e03ae[_0x3c2e94('0x1d4a')]=_0x41859a['data'][_0x3c2e94('0x1d4a')]||[{'message':_0x41859a[_0x3c2e94('0x1b75')](),'type':_0x3c2e94('0xe20')}];});}function _0x1b32d1(_0x2035d0){_0x3c6567['hide'](_0x2035d0);}}const _0x9f118d=_0x1a62bb;_0x4fa3c2[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),'whatsappAccountApp','whatsappAccount',_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4fa3c2(_0x48634c,_0x590098,_0x26075f,_0x448acb,_0x2fc579,_0x37f25d,_0x11294b,_0x27511a){const _0xb0cf97=_0x566993,_0x2a3423=this;_0x2a3423[_0xb0cf97('0x155f')]=_0x11294b[_0xb0cf97('0x14d4')](),_0x2a3423[_0xb0cf97('0x1d4a')]=[],_0x2a3423['title']=_0xb0cf97('0x1bd4')+(_0x448acb[_0xb0cf97('0x9d7')]||_0x448acb['app'])[_0xb0cf97('0x1164')](),_0x2a3423[_0xb0cf97('0x1086')]=angular[_0xb0cf97('0x2e3')](_0x448acb),_0x2a3423['crudPermissions']=_0x27511a,_0x2a3423[_0xb0cf97('0xb0')]={};if(_0x2a3423[_0xb0cf97('0x1086')]['appdata'])switch(_0x2a3423[_0xb0cf97('0x1086')]['appType']?_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x9d7')][_0xb0cf97('0x1e68')]():_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x17e')][_0xb0cf97('0x1e68')]()){case _0xb0cf97('0xbb4'):break;case _0xb0cf97('0x1601'):{const _0x5ef8ff=_0x2a3423['noop'][_0xb0cf97('0x1c00')]['split'](',');_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x237a')]=_0x5ef8ff[0x0],_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x604')]=_0x5ef8ff[0x1],_0x2a3423['noop']['welcomemessage']=_0x5ef8ff[_0xb0cf97('0x2456')](0x2,_0x5ef8ff['length'])[_0xb0cf97('0x2259')](',');}break;case _0xb0cf97('0x1680'):{const _0x7ab12a=_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x1c00')][_0xb0cf97('0x43a')](',');_0x2a3423['noop'][_0xb0cf97('0x2e0')]=_0x7ab12a[0x0],_0x2a3423['noop'][_0xb0cf97('0x1d93')]=_0x7ab12a[0x1],_0x2a3423['noop']['lexregion']=_0x7ab12a[0x2],_0x2a3423['noop'][_0xb0cf97('0x53')]=_0x7ab12a[0x3],_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x1a7')]=_0x7ab12a[_0xb0cf97('0x2456')](0x4,_0x7ab12a[_0xb0cf97('0x543')])[_0xb0cf97('0x2259')](',');}break;case _0xb0cf97('0x23fe'):{const _0x1d059c=_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x1c00')][_0xb0cf97('0x43a')](',');_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x611')]=isNaN(_0x1d059c[0x0])?_0x1d059c[0x0]:parseInt(_0x1d059c[0x0],0xa),_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x86e')]=_0x1d059c[_0xb0cf97('0x2456')](0x1,_0x1d059c[_0xb0cf97('0x543')])['join'](',');}break;case _0xb0cf97('0x67f'):_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x86e')]=_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x1c00')];break;case _0xb0cf97('0x256d'):_0x2a3423['noop'][_0xb0cf97('0x10ad')]=_0x2a3423['noop'][_0xb0cf97('0x1c00')]['split']('=')[0x0],_0x2a3423['noop'][_0xb0cf97('0xa7b')]=_0x2a3423['noop']['appdata'][_0xb0cf97('0x43a')]('=')[0x1];break;case _0xb0cf97('0x2426'):_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x220b')]=_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x1c00')];break;default:{const _0x46cc37=_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x1c00')][_0xb0cf97('0x43a')](',');_0x2a3423['noop'][_0xb0cf97('0xa7b')]=_0x3c8d8a()[_0xb0cf97('0x1a56')](_0x46cc37[0x0])?_0x46cc37[0x0]:isNaN(_0x46cc37[0x0])?_0x46cc37[0x0]:parseInt(_0x46cc37[0x0],0xa);}break;}else{}_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x1810')]&&_0x2a3423[_0xb0cf97('0x1086')]['type'][_0xb0cf97('0x1e68')]()==='outbound'&&_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0x9d7')]['toLowerCase']()==='outbounddial'&&(_0x2a3423['noop']['prefix']=_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0xa04')]?_0x2a3423[_0xb0cf97('0x1086')][_0xb0cf97('0xa04')][_0xb0cf97('0x43a')]('$')[0x0]:undefined,_0x2a3423['noop'][_0xb0cf97('0x1961')]=_0x2a3423['noop']['callerID']?_0xb0cf97('0x20a8')+_0x2a3423['noop'][_0xb0cf97('0xe95')]:undefined);_0x2a3423[_0xb0cf97('0x1e8a')]=_0x4dc9e7,_0x2a3423[_0xb0cf97('0x18e2')]=_0x1f456f;function _0x4dc9e7(){const _0x493428=_0xb0cf97;_0x2a3423['errors']=[];const _0x4bd35d=[];_0x2a3423[_0x493428('0x1086')][_0x493428('0x1810')]&&_0x2a3423[_0x493428('0x1086')][_0x493428('0x1810')][_0x493428('0x1e68')]()===_0x493428('0xb33')&&_0x2a3423[_0x493428('0x1086')][_0x493428('0x9d7')]==='outboundDial'&&(_0x2a3423[_0x493428('0x1086')][_0x493428('0xa04')]=_0x2fc579[_0x493428('0x1429')]?(_0x2a3423['noop'][_0x493428('0x23f7')]||'')+_0x493428('0x1957')+_0x2fc579[_0x493428('0x1429')]+'}':(_0x2a3423[_0x493428('0x1086')][_0x493428('0x23f7')]||'')+'${EXTEN}',_0x2fc579[_0x493428('0x76c')]!=='none'?_0x2a3423[_0x493428('0x1086')][_0x493428('0x2010')][_0x493428('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x2a3423[_0x493428('0x1086')]['options']+='U(xcally-mixmonitor-context)'):_0x2a3423['noop']['options']=_0x2a3423[_0x493428('0x1086')]['options'][_0x493428('0x166c')](_0x493428('0x2474'),''));if(_0x2a3423[_0x493428('0x1086')][_0x493428('0x9d7')]&&_0x2a3423[_0x493428('0x1086')]['appType']===_0x493428('0xbb4')){}else switch((_0x2a3423['noop'][_0x493428('0x17e')]||_0x2a3423[_0x493428('0x1086')][_0x493428('0x9d7')])[_0x493428('0x1e68')]()){case _0x493428('0x256d'):_0x2a3423[_0x493428('0x1086')]['appdata']=_0x2a3423[_0x493428('0x1086')][_0x493428('0x10ad')]+'='+_0x2a3423[_0x493428('0x1086')]['value'];break;case _0x493428('0xbb4'):break;default:_0x4bd35d[0x0]=_0x2a3423['noop']['value'],_0x2a3423[_0x493428('0x1086')][_0x493428('0x1c00')]=_0x4bd35d['join'](',');}_0x1f456f(_0x2a3423['noop']);}function _0x1f456f(_0x48f650){_0x48634c['hide'](_0x48f650);}}const _0x4b610a=_0x4fa3c2;_0x4970dc[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x2007'),_0x566993('0x234'),'api',_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x4970dc(_0x4087e5,_0x5311cd,_0x59c8a4,_0x422322,_0x2d43fa,_0x9f1e91,_0x423615,_0x4266ad){const _0x1b30d4=_0x566993,_0x1a0f40=this;_0x1a0f40[_0x1b30d4('0x155f')]=_0x423615[_0x1b30d4('0x14d4')](),_0x1a0f40[_0x1b30d4('0x1d4a')]=[],_0x1a0f40[_0x1b30d4('0x20d6')]='WHATSAPP.EDIT_'+(_0x422322[_0x1b30d4('0x9d7')]||_0x422322[_0x1b30d4('0x17e')])[_0x1b30d4('0x1164')](),_0x1a0f40[_0x1b30d4('0x172')]=angular[_0x1b30d4('0x2e3')](_0x422322),_0x1a0f40[_0x1b30d4('0x1dc1')]=_0x4266ad,_0x1a0f40[_0x1b30d4('0xb0')]={};if(_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1c00')])switch(_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x9d7')]?_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x9d7')][_0x1b30d4('0x1e68')]():_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x17e')][_0x1b30d4('0x1e68')]()){case _0x1b30d4('0xbb4'):break;case _0x1b30d4('0x1601'):{const _0x2b9913=_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1c00')][_0x1b30d4('0x43a')](',');_0x1a0f40['queue']['key']=_0x2b9913[0x0],_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x604')]=_0x2b9913[0x1],_0x1a0f40['queue'][_0x1b30d4('0x1a7')]=_0x2b9913[_0x1b30d4('0x2456')](0x2,_0x2b9913[_0x1b30d4('0x543')])['join'](',');}break;case _0x1b30d4('0x1680'):{const _0x2d7c75=_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1c00')][_0x1b30d4('0x43a')](',');_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x2e0')]=_0x2d7c75[0x0],_0x1a0f40['queue'][_0x1b30d4('0x1d93')]=_0x2d7c75[0x1],_0x1a0f40['queue'][_0x1b30d4('0x10fc')]=_0x2d7c75[0x2],_0x1a0f40[_0x1b30d4('0x172')]['botname']=_0x2d7c75[0x3],_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1a7')]=_0x2d7c75[_0x1b30d4('0x2456')](0x4,_0x2d7c75[_0x1b30d4('0x543')])['join'](',');}break;case'autoreply':{const _0x3e3725=_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1c00')][_0x1b30d4('0x43a')](',');_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x611')]=isNaN(_0x3e3725[0x0])?_0x3e3725[0x0]:parseInt(_0x3e3725[0x0],0xa),_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x86e')]=_0x3e3725[_0x1b30d4('0x2456')](0x1,_0x3e3725[_0x1b30d4('0x543')])[_0x1b30d4('0x2259')](',');}break;case'message':_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x86e')]=_0x1a0f40['queue'][_0x1b30d4('0x1c00')];break;case'set':_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x10ad')]=_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1c00')][_0x1b30d4('0x43a')]('=')[0x0],_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0xa7b')]=_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1c00')][_0x1b30d4('0x43a')]('=')[0x1];break;case _0x1b30d4('0x2426'):_0x1a0f40['queue'][_0x1b30d4('0x220b')]=_0x1a0f40['queue'][_0x1b30d4('0x1c00')];break;default:{const _0x4fe4d5=_0x1a0f40['queue'][_0x1b30d4('0x1c00')][_0x1b30d4('0x43a')](',');_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x172')]=_0x3c8d8a()[_0x1b30d4('0x1a56')](_0x4fe4d5[0x0])?_0x4fe4d5[0x0]:isNaN(_0x4fe4d5[0x0])?_0x4fe4d5[0x0]:parseInt(_0x4fe4d5[0x0],0xa),_0x1a0f40[_0x1b30d4('0x172')]['timeout']=_0x3c8d8a()['isEmpty'](_0x4fe4d5[0x1])?_0x4fe4d5[0x1]:isNaN(_0x4fe4d5[0x1])?_0x4fe4d5[0x1]:parseInt(_0x4fe4d5[0x1],0xa);}break;}else _0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x172')]=0x12c,_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1f84')]=0x12c;_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1810')]&&_0x1a0f40[_0x1b30d4('0x172')]['type'][_0x1b30d4('0x1e68')]()===_0x1b30d4('0xb33')&&_0x1a0f40['queue'][_0x1b30d4('0x9d7')][_0x1b30d4('0x1e68')]()===_0x1b30d4('0x1edc')&&(_0x1a0f40[_0x1b30d4('0x172')]['prefix']=_0x1a0f40[_0x1b30d4('0x172')]['phone']?_0x1a0f40['queue'][_0x1b30d4('0xa04')][_0x1b30d4('0x43a')]('$')[0x0]:undefined,_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0x1961')]=_0x1a0f40['queue']['callerID']?'CALLERID(all)='+_0x1a0f40[_0x1b30d4('0x172')][_0x1b30d4('0xe95')]:undefined);_0x1a0f40[_0x1b30d4('0x1e8a')]=_0x22e50f,_0x1a0f40['closeDialog']=_0x1e894a,_0x423615[_0x1b30d4('0x1b4e')](_0x1b30d4('0x79b'))?_0x9f1e91[_0x1b30d4('0x9cb')]['get']({'fields':'id,name,type','sort':_0x1b30d4('0x10ad'),'nolimit':_0x1b30d4('0x799')})[_0x1b30d4('0x1964')]['then'](function(_0x57fa52){const _0x164c71=_0x1b30d4;_0x1a0f40[_0x164c71('0xeae')]=_0x57fa52[_0x164c71('0x6aa')]||[];})['catch'](function(_0x4041c6){const _0x56deae=_0x1b30d4;_0x59c8a4[_0x56deae('0x15aa')]({'title':_0x4041c6[_0x56deae('0x276f')]?'API:'+_0x4041c6[_0x56deae('0x276f')]+_0x56deae('0x160c')+_0x4041c6['statusText']:'SYSTEM:GET_QUEUES','msg':_0x4041c6['data']?JSON[_0x56deae('0x100b')](_0x4041c6[_0x56deae('0x1e07')]):_0x4041c6[_0x56deae('0x1b75')]()});}):_0x9f1e91[_0x1b30d4('0x9cb')][_0x1b30d4('0x1d97')]({'fields':_0x1b30d4('0x1c66'),'sort':_0x1b30d4('0x10ad'),'nolimit':_0x1b30d4('0x799')})[_0x1b30d4('0x1964')][_0x1b30d4('0x173b')](function(_0x2e18e8){const _0x2cff00=_0x1b30d4;_0x1a0f40[_0x2cff00('0xeae')]=_0x2e18e8[_0x2cff00('0x6aa')]||[];})[_0x1b30d4('0x173b')](function(){const _0x3c8230=_0x1b30d4;return _0x9f1e91[_0x3c8230('0x170e')]['get']({'userProfileId':_0x1a0f40[_0x3c8230('0x155f')][_0x3c8230('0x1946')],'sectionId':0x836})[_0x3c8230('0x1964')];})[_0x1b30d4('0x173b')](function(_0x198947){const _0x514c63=_0x1b30d4,_0x5e80ce=_0x198947&&_0x198947[_0x514c63('0x6aa')]?_0x198947[_0x514c63('0x6aa')][0x0]:null;if(!_0x5e80ce){const _0x14d2b7=[];let _0x40f497=null;_0x1a0f40['queue']&&(_0x40f497=_0x3c8d8a()[_0x514c63('0x18ab')](_0x1a0f40[_0x514c63('0xeae')],{'name':_0x1a0f40[_0x514c63('0x172')][_0x514c63('0x172')]}));for(let _0x4c70db=0x0;_0x4c70db<_0x1a0f40['queues']['length'];_0x4c70db++){_0x40f497&&_0x1a0f40[_0x514c63('0xeae')][_0x4c70db]['id']===_0x40f497['id']&&(_0x1a0f40[_0x514c63('0xeae')][_0x4c70db][_0x514c63('0x268e')]=![],_0x14d2b7[_0x514c63('0x18bb')](_0x1a0f40[_0x514c63('0xeae')][_0x4c70db]));}_0x1a0f40[_0x514c63('0xeae')]=_0x14d2b7;}else{if(!_0x5e80ce['autoAssociation'])return _0x9f1e91[_0x514c63('0xda9')][_0x514c63('0x1d97')]({'sectionId':_0x5e80ce['id']})[_0x514c63('0x1964')][_0x514c63('0x173b')](function(_0x390998){const _0x1945d3=_0x514c63,_0x5a4ee1=_0x3c8d8a()['map'](_0x390998[_0x1945d3('0x6aa')],function(_0x32383f){const _0x538a42=_0x1945d3;return _0x3c8d8a()[_0x538a42('0x18ab')](_0x1a0f40['queues'],{'id':_0x32383f['resourceId']});});let _0x17e517=null;_0x1a0f40[_0x1945d3('0x172')]&&(_0x17e517=_0x3c8d8a()[_0x1945d3('0x18ab')](_0x1a0f40[_0x1945d3('0xeae')],{'name':_0x1a0f40[_0x1945d3('0x172')]['queue']}));if(_0x17e517&&!_0x3c8d8a()[_0x1945d3('0x1ec')](_0x5a4ee1,['id',_0x17e517['id']])){const _0x19a6ad=_0x3c8d8a()['find'](_0x1a0f40[_0x1945d3('0xeae')],{'id':_0x17e517['id']});_0x19a6ad[_0x1945d3('0x268e')]=![],_0x5a4ee1[_0x1945d3('0x18bb')](_0x19a6ad);}_0x1a0f40[_0x1945d3('0xeae')]=_0x5a4ee1;});}})['catch'](function(_0x26bb63){const _0x32eca8=_0x1b30d4;_0x59c8a4['error']({'title':_0x26bb63[_0x32eca8('0x276f')]?_0x32eca8('0x137')+_0x26bb63[_0x32eca8('0x276f')]+_0x32eca8('0x160c')+_0x26bb63[_0x32eca8('0x2696')]:_0x32eca8('0x75f'),'msg':_0x26bb63[_0x32eca8('0x1e07')]?JSON[_0x32eca8('0x100b')](_0x26bb63[_0x32eca8('0x1e07')]):_0x26bb63['toString']()});});function _0x22e50f(){const _0x202ee1=_0x1b30d4;_0x1a0f40[_0x202ee1('0x1d4a')]=[];const _0x11dc3f=[];_0x1a0f40['queue'][_0x202ee1('0x1810')]&&_0x1a0f40['queue'][_0x202ee1('0x1810')][_0x202ee1('0x1e68')]()===_0x202ee1('0xb33')&&_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x9d7')]==='outboundDial'&&(_0x1a0f40['queue'][_0x202ee1('0xa04')]=_0x2d43fa['cutdigits']?(_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x23f7')]||'')+_0x202ee1('0x1957')+_0x2d43fa[_0x202ee1('0x1429')]+'}':(_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x23f7')]||'')+_0x202ee1('0x1dc5'),_0x2d43fa[_0x202ee1('0x76c')]!==_0x202ee1('0x2741')?_0x1a0f40[_0x202ee1('0x172')]['options'][_0x202ee1('0x2087')](_0x202ee1('0x2474'))<0x0&&(_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x2010')]+=_0x202ee1('0x2474')):_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x2010')]=_0x1a0f40[_0x202ee1('0x172')]['options'][_0x202ee1('0x166c')](_0x202ee1('0x2474'),''));const _0x11d49b=_0x3c8d8a()[_0x202ee1('0x18ab')](_0x1a0f40[_0x202ee1('0xeae')],{'name':_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x172')]});_0x11d49b&&(_0x1a0f40[_0x202ee1('0x172')][_0x3c8d8a()[_0x202ee1('0x587')](_0x202ee1('0x245'))+_0x202ee1('0x1f06')]=_0x11d49b['id']);if(_0x1a0f40[_0x202ee1('0x172')]['appType']&&_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x9d7')]==='custom'){}else switch((_0x1a0f40['queue']['app']||_0x1a0f40['queue'][_0x202ee1('0x9d7')])['toLowerCase']()){case _0x202ee1('0x256d'):_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x1c00')]=_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x10ad')]+'='+_0x1a0f40[_0x202ee1('0x172')]['value'];break;case _0x202ee1('0xbb4'):break;default:_0x11dc3f[0x0]=_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x172')],_0x11dc3f[0x1]=_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x1f84')],_0x1a0f40[_0x202ee1('0x172')][_0x202ee1('0x1c00')]=_0x11dc3f[_0x202ee1('0x2259')](',');}_0x1e894a(_0x1a0f40[_0x202ee1('0x172')]);}function _0x1e894a(_0x44f4a2){_0x4087e5['hide'](_0x44f4a2);}}const _0x8b6f87=_0x4970dc;_0x414304[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0x2007'),_0x566993('0x234'),_0x566993('0xbd4'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x414304(_0x606579,_0x556e71,_0x20f675,_0x271374,_0x2a1566,_0x37a8db,_0x2994f1,_0x33e8a5){const _0x5dd262=_0x566993,_0x16e8fd=this;_0x16e8fd[_0x5dd262('0x155f')]=_0x2994f1['getCurrentUser'](),_0x16e8fd[_0x5dd262('0x1d4a')]=[],_0x16e8fd[_0x5dd262('0x20d6')]=_0x5dd262('0x1bd4')+(_0x271374[_0x5dd262('0x9d7')]||_0x271374[_0x5dd262('0x17e')])[_0x5dd262('0x1164')](),_0x16e8fd[_0x5dd262('0x1ed')]=angular[_0x5dd262('0x2e3')](_0x271374),_0x16e8fd[_0x5dd262('0x1dc1')]=_0x33e8a5,_0x16e8fd[_0x5dd262('0xb0')]={};if(_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1c00')])switch(_0x16e8fd['system'][_0x5dd262('0x9d7')]?_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x9d7')][_0x5dd262('0x1e68')]():_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x17e')][_0x5dd262('0x1e68')]()){case _0x5dd262('0xbb4'):break;case _0x5dd262('0x1601'):{const _0x4c2f6b=_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1c00')][_0x5dd262('0x43a')](',');_0x16e8fd['system'][_0x5dd262('0x237a')]=_0x4c2f6b[0x0],_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x604')]=_0x4c2f6b[0x1],_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1a7')]=_0x4c2f6b[_0x5dd262('0x2456')](0x2,_0x4c2f6b[_0x5dd262('0x543')])[_0x5dd262('0x2259')](',');}break;case _0x5dd262('0x1680'):{const _0x33c24d=_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1c00')]['split'](',');_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x2e0')]=_0x33c24d[0x0],_0x16e8fd[_0x5dd262('0x1ed')]['secretaccesskey']=_0x33c24d[0x1],_0x16e8fd['system'][_0x5dd262('0x10fc')]=_0x33c24d[0x2],_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x53')]=_0x33c24d[0x3],_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1a7')]=_0x33c24d['slice'](0x4,_0x33c24d[_0x5dd262('0x543')])['join'](',');}break;case _0x5dd262('0x23fe'):{const _0x4425ea=_0x16e8fd['system'][_0x5dd262('0x1c00')][_0x5dd262('0x43a')](',');_0x16e8fd['system'][_0x5dd262('0x611')]=isNaN(_0x4425ea[0x0])?_0x4425ea[0x0]:parseInt(_0x4425ea[0x0],0xa),_0x16e8fd[_0x5dd262('0x1ed')]['text']=_0x4425ea['slice'](0x1,_0x4425ea[_0x5dd262('0x543')])[_0x5dd262('0x2259')](',');}break;case _0x5dd262('0x67f'):_0x16e8fd[_0x5dd262('0x1ed')]['text']=_0x16e8fd[_0x5dd262('0x1ed')]['appdata'];break;case _0x5dd262('0x256d'):_0x16e8fd[_0x5dd262('0x1ed')]['name']=_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1c00')][_0x5dd262('0x43a')]('=')[0x0],_0x16e8fd['system'][_0x5dd262('0xa7b')]=_0x16e8fd['system'][_0x5dd262('0x1c00')]['split']('=')[0x1];break;case'agi':_0x16e8fd['system'][_0x5dd262('0x220b')]=_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1c00')];break;default:{const _0x3b6ce1=_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1c00')][_0x5dd262('0x43a')](',');_0x16e8fd['system'][_0x5dd262('0xdc4')]=_0x3c8d8a()[_0x5dd262('0x1a56')](_0x3b6ce1[0x0])?_0x3b6ce1[0x0]:isNaN(_0x3b6ce1[0x0])?_0x3b6ce1[0x0]:parseInt(_0x3b6ce1[0x0],0xa),_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x1b56')]=_0x3c8d8a()[_0x5dd262('0x1a56')](_0x3b6ce1[0x1])?_0x3b6ce1[0x1]:isNaN(_0x3b6ce1[0x1])?_0x3b6ce1[0x1]:parseInt(_0x3b6ce1[0x1],0xa);}break;}else _0x16e8fd[_0x5dd262('0x1ed')]['variable']='';_0x16e8fd['system']['type']&&_0x16e8fd['system'][_0x5dd262('0x1810')][_0x5dd262('0x1e68')]()===_0x5dd262('0xb33')&&_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0x9d7')][_0x5dd262('0x1e68')]()===_0x5dd262('0x1edc')&&(_0x16e8fd['system'][_0x5dd262('0x23f7')]=_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0xa04')]?_0x16e8fd[_0x5dd262('0x1ed')][_0x5dd262('0xa04')]['split']('$')[0x0]:undefined,_0x16e8fd['system'][_0x5dd262('0x1961')]=_0x16e8fd['system']['callerID']?_0x5dd262('0x20a8')+_0x16e8fd['system'][_0x5dd262('0xe95')]:undefined);_0x16e8fd['saveWhatsappAccountApp']=_0x20462f,_0x16e8fd[_0x5dd262('0x18e2')]=_0x5a0610,_0x2994f1['hasRole'](_0x5dd262('0x79b'))?_0x37a8db[_0x5dd262('0x1b56')][_0x5dd262('0x1d97')]({'fields':_0x5dd262('0xd52'),'sort':_0x5dd262('0x10ad'),'nolimit':_0x5dd262('0x799')})[_0x5dd262('0x1964')][_0x5dd262('0x173b')](function(_0x47ecf7){const _0x2f7dcc=_0x5dd262;_0x16e8fd[_0x2f7dcc('0x2715')]=_0x47ecf7['rows']||[];})[_0x5dd262('0x103c')](function(_0x31c9f9){const _0x12f3e9=_0x5dd262;_0x20f675['error']({'title':_0x31c9f9[_0x12f3e9('0x276f')]?'API:'+_0x31c9f9[_0x12f3e9('0x276f')]+_0x12f3e9('0x160c')+_0x31c9f9[_0x12f3e9('0x2696')]:_0x12f3e9('0x1d22'),'msg':_0x31c9f9[_0x12f3e9('0x1e07')]?JSON[_0x12f3e9('0x100b')](_0x31c9f9[_0x12f3e9('0x1e07')]):_0x31c9f9[_0x12f3e9('0x1b75')]()});}):_0x37a8db[_0x5dd262('0x1b56')][_0x5dd262('0x1d97')]({'fields':_0x5dd262('0xd52'),'sort':'name','nolimit':_0x5dd262('0x799')})[_0x5dd262('0x1964')][_0x5dd262('0x173b')](function(_0x2dff1e){const _0x3c7be8=_0x5dd262;_0x16e8fd[_0x3c7be8('0x2715')]=_0x2dff1e[_0x3c7be8('0x6aa')]||[];})[_0x5dd262('0x173b')](function(){const _0x5e710e=_0x5dd262;return _0x37a8db[_0x5e710e('0x170e')][_0x5e710e('0x1d97')]({'userProfileId':_0x16e8fd['currentUser']['userProfileId'],'sectionId':0x3f4})[_0x5e710e('0x1964')];})[_0x5dd262('0x173b')](function(_0x4c5d1b){const _0x546347=_0x5dd262,_0x1c1a24=_0x4c5d1b&&_0x4c5d1b[_0x546347('0x6aa')]?_0x4c5d1b[_0x546347('0x6aa')][0x0]:null;if(!_0x1c1a24){const _0x4dae88=[];let _0x25706e=null;_0x16e8fd[_0x546347('0x1ed')]&&(_0x25706e=_0x3c8d8a()[_0x546347('0x18ab')](_0x16e8fd[_0x546347('0x2715')],{'name':_0x16e8fd['system'][_0x546347('0x1b56')]}));for(let _0x59164a=0x0;_0x59164a<_0x16e8fd[_0x546347('0x2715')]['length'];_0x59164a++){_0x25706e&&_0x16e8fd['variables'][_0x59164a]['id']===_0x25706e['id']&&(_0x16e8fd[_0x546347('0x2715')][_0x59164a][_0x546347('0x268e')]=![],_0x4dae88['push'](_0x16e8fd[_0x546347('0x2715')][_0x59164a]));}_0x16e8fd[_0x546347('0x2715')]=_0x4dae88;}else{if(!_0x1c1a24[_0x546347('0x273e')])return _0x37a8db[_0x546347('0xda9')][_0x546347('0x1d97')]({'sectionId':_0x1c1a24['id']})[_0x546347('0x1964')][_0x546347('0x173b')](function(_0x170887){const _0x3ece55=_0x546347,_0x1de773=_0x3c8d8a()[_0x3ece55('0x8a2')](_0x170887[_0x3ece55('0x6aa')],function(_0x322e4f){const _0x3b8da=_0x3ece55;return _0x3c8d8a()[_0x3b8da('0x18ab')](_0x16e8fd[_0x3b8da('0x2715')],{'id':_0x322e4f[_0x3b8da('0x1ce0')]});});let _0xf98bb=null;_0x16e8fd['system']&&(_0xf98bb=_0x3c8d8a()[_0x3ece55('0x18ab')](_0x16e8fd[_0x3ece55('0x2715')],{'name':_0x16e8fd['system']['variable']}));if(_0xf98bb&&!_0x3c8d8a()[_0x3ece55('0x1ec')](_0x1de773,['id',_0xf98bb['id']])){const _0xaaccb6=_0x3c8d8a()[_0x3ece55('0x18ab')](_0x16e8fd[_0x3ece55('0x2715')],{'id':_0xf98bb['id']});_0xaaccb6[_0x3ece55('0x268e')]=![],_0x1de773['push'](_0xaaccb6);}_0x16e8fd[_0x3ece55('0x2715')]=_0x1de773;});}})['catch'](function(_0x5af1e0){const _0x246ade=_0x5dd262;_0x20f675[_0x246ade('0x15aa')]({'title':_0x5af1e0[_0x246ade('0x276f')]?_0x246ade('0x137')+_0x5af1e0[_0x246ade('0x276f')]+_0x246ade('0x160c')+_0x5af1e0['statusText']:_0x246ade('0x27a'),'msg':_0x5af1e0[_0x246ade('0x1e07')]?JSON['stringify'](_0x5af1e0[_0x246ade('0x1e07')]):_0x5af1e0[_0x246ade('0x1b75')]()});});function _0x20462f(){const _0x121c45=_0x5dd262;_0x16e8fd[_0x121c45('0x1d4a')]=[];const _0x18391b=[];_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0x1810')]&&_0x16e8fd[_0x121c45('0x1ed')]['type']['toLowerCase']()===_0x121c45('0xb33')&&_0x16e8fd[_0x121c45('0x1ed')]['appType']===_0x121c45('0x2150')&&(_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0xa04')]=_0x2a1566[_0x121c45('0x1429')]?(_0x16e8fd['system']['prefix']||'')+_0x121c45('0x1957')+_0x2a1566['cutdigits']+'}':(_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0x23f7')]||'')+_0x121c45('0x1dc5'),_0x2a1566[_0x121c45('0x76c')]!=='none'?_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0x2010')][_0x121c45('0x2087')]('U(xcally-mixmonitor-context)')<0x0&&(_0x16e8fd[_0x121c45('0x1ed')]['options']+=_0x121c45('0x2474')):_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0x2010')]=_0x16e8fd['system'][_0x121c45('0x2010')][_0x121c45('0x166c')]('U(xcally-mixmonitor-context)',''));if(_0x16e8fd['system']['appType']&&_0x16e8fd[_0x121c45('0x1ed')]['appType']===_0x121c45('0xbb4')){}else switch((_0x16e8fd[_0x121c45('0x1ed')]['app']||_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0x9d7')])[_0x121c45('0x1e68')]()){case _0x121c45('0x256d'):_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0x1c00')]=_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0x10ad')]+'='+_0x16e8fd[_0x121c45('0x1ed')]['value'];break;case'custom':break;default:_0x18391b[0x0]=_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0xdc4')],_0x18391b[0x1]=_0x16e8fd[_0x121c45('0x1ed')][_0x121c45('0x1b56')],_0x16e8fd['system'][_0x121c45('0x1c00')]=_0x18391b[_0x121c45('0x2259')](',');}_0x5a0610(_0x16e8fd[_0x121c45('0x1ed')]);}function _0x5a0610(_0x24b5db){const _0x238597=_0x5dd262;_0x606579[_0x238597('0x1cf4')](_0x24b5db);}}const _0x3e57a=_0x414304;_0x240c05[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0x2007'),_0x566993('0x234'),_0x566993('0xbd4'),'Auth',_0x566993('0x1dc1')];function _0x240c05(_0x225f75,_0x371aa2,_0x25f977,_0x335e1a,_0x386b1d,_0x439502,_0xb73ff5,_0x401cb7){const _0x798edc=_0x566993,_0x68452e=this;_0x68452e['currentUser']=_0xb73ff5[_0x798edc('0x14d4')](),_0x68452e['errors']=[],_0x68452e[_0x798edc('0x20d6')]=_0x798edc('0x1bd4')+(_0x335e1a[_0x798edc('0x9d7')]||_0x335e1a['app'])[_0x798edc('0x1164')](),_0x68452e[_0x798edc('0x23b4')]=angular['copy'](_0x335e1a),_0x68452e[_0x798edc('0x1dc1')]=_0x401cb7,_0x68452e[_0x798edc('0xb0')]={};if(_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1c00')])switch(_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x9d7')]?_0x68452e['tag'][_0x798edc('0x9d7')][_0x798edc('0x1e68')]():_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x17e')]['toLowerCase']()){case _0x798edc('0xbb4'):break;case'dialogflow':{const _0x3f6da5=_0x68452e['tag']['appdata'][_0x798edc('0x43a')](',');_0x68452e[_0x798edc('0x23b4')]['key']=_0x3f6da5[0x0],_0x68452e['tag'][_0x798edc('0x604')]=_0x3f6da5[0x1],_0x68452e['tag'][_0x798edc('0x1a7')]=_0x3f6da5[_0x798edc('0x2456')](0x2,_0x3f6da5[_0x798edc('0x543')])['join'](',');}break;case'amazonlex':{const _0x9ee4d3=_0x68452e['tag'][_0x798edc('0x1c00')][_0x798edc('0x43a')](',');_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x2e0')]=_0x9ee4d3[0x0],_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1d93')]=_0x9ee4d3[0x1],_0x68452e['tag'][_0x798edc('0x10fc')]=_0x9ee4d3[0x2],_0x68452e[_0x798edc('0x23b4')]['botname']=_0x9ee4d3[0x3],_0x68452e[_0x798edc('0x23b4')]['welcomemessage']=_0x9ee4d3[_0x798edc('0x2456')](0x4,_0x9ee4d3[_0x798edc('0x543')])[_0x798edc('0x2259')](',');}break;case _0x798edc('0x23fe'):{const _0x33b2b4=_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1c00')][_0x798edc('0x43a')](',');_0x68452e['tag']['times']=isNaN(_0x33b2b4[0x0])?_0x33b2b4[0x0]:parseInt(_0x33b2b4[0x0],0xa),_0x68452e[_0x798edc('0x23b4')]['text']=_0x33b2b4[_0x798edc('0x2456')](0x1,_0x33b2b4[_0x798edc('0x543')])[_0x798edc('0x2259')](',');}break;case _0x798edc('0x67f'):_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x86e')]=_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1c00')];break;case'set':_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x10ad')]=_0x68452e['tag'][_0x798edc('0x1c00')]['split']('=')[0x0],_0x68452e[_0x798edc('0x23b4')][_0x798edc('0xa7b')]=_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1c00')][_0x798edc('0x43a')]('=')[0x1];break;case _0x798edc('0x2426'):_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x220b')]=_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1c00')];break;default:{const _0x396bbe=_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1c00')][_0x798edc('0x43a')](',');_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x23b4')]=_0x3c8d8a()[_0x798edc('0x1a56')](_0x396bbe[0x0])?_0x396bbe[0x0]:isNaN(_0x396bbe[0x0])?_0x396bbe[0x0]:parseInt(_0x396bbe[0x0],0xa);}break;}else{}_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1810')]&&_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x1810')][_0x798edc('0x1e68')]()===_0x798edc('0xb33')&&_0x68452e['tag']['appType'][_0x798edc('0x1e68')]()===_0x798edc('0x1edc')&&(_0x68452e[_0x798edc('0x23b4')][_0x798edc('0x23f7')]=_0x68452e[_0x798edc('0x23b4')]['phone']?_0x68452e[_0x798edc('0x23b4')][_0x798edc('0xa04')]['split']('$')[0x0]:undefined,_0x68452e['tag'][_0x798edc('0x1961')]=_0x68452e['tag'][_0x798edc('0xe95')]?_0x798edc('0x20a8')+_0x68452e['tag'][_0x798edc('0xe95')]:undefined);_0x68452e[_0x798edc('0x1e8a')]=_0x37970b,_0x68452e['closeDialog']=_0x290176,_0xb73ff5[_0x798edc('0x1b4e')](_0x798edc('0x79b'))?_0x439502[_0x798edc('0x23b4')]['get']({'fields':'id,name','sort':_0x798edc('0x10ad'),'nolimit':_0x798edc('0x799')})[_0x798edc('0x1964')][_0x798edc('0x173b')](function(_0x4f4d4){const _0xe8233a=_0x798edc;_0x68452e[_0xe8233a('0x22ac')]=_0x4f4d4[_0xe8233a('0x6aa')]||[];})[_0x798edc('0x103c')](function(_0x1ae57d){const _0x59be24=_0x798edc;_0x25f977['error']({'title':_0x1ae57d['status']?'API:'+_0x1ae57d[_0x59be24('0x276f')]+_0x59be24('0x160c')+_0x1ae57d[_0x59be24('0x2696')]:_0x59be24('0x1a9b'),'msg':_0x1ae57d['data']?JSON[_0x59be24('0x100b')](_0x1ae57d[_0x59be24('0x1e07')]):_0x1ae57d[_0x59be24('0x1b75')]()});}):_0x439502[_0x798edc('0x23b4')][_0x798edc('0x1d97')]({'fields':_0x798edc('0xd52'),'sort':'name','nolimit':_0x798edc('0x799')})[_0x798edc('0x1964')][_0x798edc('0x173b')](function(_0x43537b){const _0x36e2f0=_0x798edc;_0x68452e[_0x36e2f0('0x22ac')]=_0x43537b[_0x36e2f0('0x6aa')]||[];})[_0x798edc('0x173b')](function(){const _0x46af7f=_0x798edc;return _0x439502['userProfileSection']['get']({'userProfileId':_0x68452e[_0x46af7f('0x155f')][_0x46af7f('0x1946')],'sectionId':0x3f0})[_0x46af7f('0x1964')];})['then'](function(_0x279927){const _0x4a7420=_0x798edc,_0x4b55fd=_0x279927&&_0x279927['rows']?_0x279927[_0x4a7420('0x6aa')][0x0]:null;if(!_0x4b55fd){const _0x116e4a=[];let _0xc808ef=null;_0x68452e[_0x4a7420('0x23b4')]&&(_0xc808ef=_0x3c8d8a()[_0x4a7420('0x18ab')](_0x68452e[_0x4a7420('0x22ac')],{'name':_0x68452e[_0x4a7420('0x23b4')][_0x4a7420('0x23b4')]}));for(let _0x53b14c=0x0;_0x53b14c<_0x68452e[_0x4a7420('0x22ac')][_0x4a7420('0x543')];_0x53b14c++){_0xc808ef&&_0x68452e[_0x4a7420('0x22ac')][_0x53b14c]['id']===_0xc808ef['id']&&(_0x68452e[_0x4a7420('0x22ac')][_0x53b14c][_0x4a7420('0x268e')]=![],_0x116e4a[_0x4a7420('0x18bb')](_0x68452e[_0x4a7420('0x22ac')][_0x53b14c]));}_0x68452e[_0x4a7420('0x22ac')]=_0x116e4a;}else{if(!_0x4b55fd['autoAssociation'])return _0x439502[_0x4a7420('0xda9')][_0x4a7420('0x1d97')]({'sectionId':_0x4b55fd['id']})[_0x4a7420('0x1964')][_0x4a7420('0x173b')](function(_0x411a4f){const _0x2f11df=_0x4a7420,_0x56a093=_0x3c8d8a()[_0x2f11df('0x8a2')](_0x411a4f[_0x2f11df('0x6aa')],function(_0x5adaa8){const _0x4f4d5c=_0x2f11df;return _0x3c8d8a()[_0x4f4d5c('0x18ab')](_0x68452e['tags'],{'id':_0x5adaa8[_0x4f4d5c('0x1ce0')]});});let _0x737551=null;_0x68452e['tag']&&(_0x737551=_0x3c8d8a()['find'](_0x68452e[_0x2f11df('0x22ac')],{'name':_0x68452e[_0x2f11df('0x23b4')][_0x2f11df('0x23b4')]}));if(_0x737551&&!_0x3c8d8a()[_0x2f11df('0x1ec')](_0x56a093,['id',_0x737551['id']])){const _0x402b73=_0x3c8d8a()['find'](_0x68452e['tags'],{'id':_0x737551['id']});_0x402b73[_0x2f11df('0x268e')]=![],_0x56a093[_0x2f11df('0x18bb')](_0x402b73);}_0x68452e[_0x2f11df('0x22ac')]=_0x56a093;});}})[_0x798edc('0x103c')](function(_0x4a53fc){const _0x4cc562=_0x798edc;_0x25f977[_0x4cc562('0x15aa')]({'title':_0x4a53fc[_0x4cc562('0x276f')]?'API:'+_0x4a53fc[_0x4cc562('0x276f')]+_0x4cc562('0x160c')+_0x4a53fc['statusText']:_0x4cc562('0x1cc0'),'msg':_0x4a53fc[_0x4cc562('0x1e07')]?JSON[_0x4cc562('0x100b')](_0x4a53fc['data']):_0x4a53fc['toString']()});});function _0x37970b(){const _0x28d4f1=_0x798edc;_0x68452e[_0x28d4f1('0x1d4a')]=[];const _0x256930=[];_0x68452e['tag'][_0x28d4f1('0x1810')]&&_0x68452e[_0x28d4f1('0x23b4')]['type'][_0x28d4f1('0x1e68')]()===_0x28d4f1('0xb33')&&_0x68452e[_0x28d4f1('0x23b4')]['appType']===_0x28d4f1('0x2150')&&(_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0xa04')]=_0x386b1d[_0x28d4f1('0x1429')]?(_0x68452e[_0x28d4f1('0x23b4')]['prefix']||'')+_0x28d4f1('0x1957')+_0x386b1d[_0x28d4f1('0x1429')]+'}':(_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x23f7')]||'')+'${EXTEN}',_0x386b1d[_0x28d4f1('0x76c')]!==_0x28d4f1('0x2741')?_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x2010')][_0x28d4f1('0x2087')](_0x28d4f1('0x2474'))<0x0&&(_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x2010')]+=_0x28d4f1('0x2474')):_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x2010')]=_0x68452e[_0x28d4f1('0x23b4')]['options'][_0x28d4f1('0x166c')](_0x28d4f1('0x2474'),''));const _0x5dd2b7=_0x3c8d8a()[_0x28d4f1('0x18ab')](_0x68452e[_0x28d4f1('0x22ac')],{'name':_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x23b4')]});_0x5dd2b7&&(_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0xe46')]=_0x5dd2b7['id']);if(_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x9d7')]&&_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x9d7')]===_0x28d4f1('0xbb4')){}else switch((_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x17e')]||_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x9d7')])[_0x28d4f1('0x1e68')]()){case _0x28d4f1('0x256d'):_0x68452e['tag'][_0x28d4f1('0x1c00')]=_0x68452e[_0x28d4f1('0x23b4')][_0x28d4f1('0x10ad')]+'='+_0x68452e['tag']['value'];break;case _0x28d4f1('0xbb4'):break;default:_0x256930[0x0]=_0x68452e[_0x28d4f1('0x23b4')]['tag'],_0x68452e[_0x28d4f1('0x23b4')]['appdata']=_0x256930[_0x28d4f1('0x2259')](',');}_0x290176(_0x68452e[_0x28d4f1('0x23b4')]);}function _0x290176(_0x38be80){const _0x11b31b=_0x798edc;_0x225f75[_0x11b31b('0x1cf4')](_0x38be80);}}const _0x538286=_0x240c05;_0x1b36ca[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q','$translate',_0x566993('0x24b5'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x1600')];function _0x1b36ca(_0x33eef6,_0x20d99e,_0x25ae12,_0x323534,_0x22f502,_0x3ec9de,_0x150459,_0xfbe292,_0x132338,_0xe9d4f0,_0x461898){const _0x68b804=_0x566993,_0x102154=this;_0x102154['currentUser']=_0x461898[_0x68b804('0x14d4')](),_0x102154[_0x68b804('0x234')]={},_0x102154[_0x68b804('0xe43')]={'count':0x0,'rows':[]},_0x102154[_0x68b804('0xe01')]=[],_0x102154[_0x68b804('0x1dc1')],_0x102154[_0x68b804('0xc49')]={'read':_0x68b804('0x877'),'closed':_0x68b804('0x877'),'sort':_0x68b804('0x1cad'),'includeAll':_0x68b804('0x799'),'limit':0xa,'page':0x1},_0x102154['init']=_0x5c66a8,_0x102154[_0x68b804('0x2051')]=_0x1fe204,_0x102154[_0x68b804('0x629')]=_0x1b7172,_0x102154[_0x68b804('0xdfe')]=_0xe968cc,_0x102154[_0x68b804('0x619')]=_0x42fe59,_0x102154[_0x68b804('0x265c')]=_0x4864f8,_0x102154[_0x68b804('0x6f1')]=_0x55783a,_0x102154[_0x68b804('0x154d')]=_0x1e9fbb,_0x102154[_0x68b804('0x1ebe')]=_0x5161f2,_0x102154[_0x68b804('0xe8')]=_0x304730;function _0x5c66a8(_0x48ce84,_0x348efb){const _0x5ed1bc=_0x68b804;_0x102154[_0x5ed1bc('0x234')]=_0x48ce84,_0x102154[_0x5ed1bc('0x1dc1')]=typeof _0x348efb!==_0x5ed1bc('0x6e5')?_0x348efb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x102154[_0x5ed1bc('0xc49')]['WhatsappAccountId']=_0x102154[_0x5ed1bc('0x234')]['id'],_0x102154[_0x5ed1bc('0x2706')]={'fields':_0xee605f()},_0x1f7e18();}function _0x1f7e18(){const _0xb0b7f0=_0x68b804;return _0xe9d4f0[_0xb0b7f0('0x23b4')][_0xb0b7f0('0x1d97')]()[_0xb0b7f0('0x1964')][_0xb0b7f0('0x173b')](function(_0x347557){const _0x58ffb7=_0xb0b7f0;_0x102154[_0x58ffb7('0x22ac')]=_0x347557||{'count':0x0,'rows':[]};})[_0xb0b7f0('0x173b')](function(){const _0x206abf=_0xb0b7f0;_0x102154[_0x206abf('0x485')]=_0x2a7390();});}function _0x2a7390(){const _0x1e710d=_0x68b804;return[{'name':'Start\x20Date','key':_0x1e710d('0xda8'),'type':'date','label':_0x1e710d('0xa98')},{'name':_0x1e710d('0x2634'),'key':_0x1e710d('0x69b'),'type':_0x1e710d('0xc65'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x1e710d('0x1015')},{'value':0x1,'translate':_0x1e710d('0x1170')},{'value':null,'translate':_0x1e710d('0x47a')}]},{'name':'Status','key':'closed','type':_0x1e710d('0xc65'),'label':_0x1e710d('0x1647'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x1e710d('0x1389')},{'value':null,'translate':_0x1e710d('0x47a')}]},{'name':_0x1e710d('0x1547'),'key':'UserId','type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x1e710d('0x877'),'translate':_0x1e710d('0x27a8')},{'value':undefined,'translate':_0x1e710d('0x47a')}]},{'name':_0x1e710d('0x460'),'key':_0x1e710d('0x23b4'),'type':_0x1e710d('0x1c68'),'label':_0x1e710d('0x1e6f'),'options':_0x102154[_0x1e710d('0x22ac')][_0x1e710d('0x6aa')],'placeholder':_0x1e710d('0x96')}];}function _0xee605f(){const _0xe8443f=_0x68b804;return[{'name':'Id','column':'id','type':_0xe8443f('0x1d81')},{'name':_0xe8443f('0x1f70'),'column':_0xe8443f('0x1f70'),'type':'autocomplete','options':{'searchFields':[_0xe8443f('0x1e50'),_0xe8443f('0x1806'),'email'],'route':{'model':_0xe8443f('0x1197'),'action':_0xe8443f('0x1d97'),'params':{'fields':_0xe8443f('0x1cf0'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0xe8443f('0x10be')]}},{'name':_0xe8443f('0x224f'),'column':_0xe8443f('0x11bc'),'type':_0xe8443f('0x86e'),'options':{'excludedOperators':[_0xe8443f('0xc0c'),_0xe8443f('0x10be')]}},{'name':'Body','column':_0xe8443f('0x1405'),'type':_0xe8443f('0x86e'),'options':{'excludedOperators':[_0xe8443f('0xc0c'),_0xe8443f('0x10be')]}},{'name':'Status','column':_0xe8443f('0x1636'),'type':_0xe8443f('0xc65'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':['$ne']}},{'name':_0xe8443f('0x1547'),'column':'User','type':_0xe8443f('0xe92'),'options':{'table':'i','route':{'model':_0xe8443f('0x166f'),'action':_0xe8443f('0x1d97'),'params':{'role':_0xe8443f('0x7b0'),'fields':_0xe8443f('0x112d'),'nolimit':!![]}},'searchFields':[_0xe8443f('0x572'),'name'],'extraOperators':['$substring'],'excludedOperators':[_0xe8443f('0x10be')]}},{'name':'Tags','column':_0xe8443f('0x460'),'type':'multiselect','options':{'route':{'model':_0xe8443f('0x23b4'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0xe8443f('0x2232')]}},{'name':'Start\x20Date','column':_0xe8443f('0xda8'),'type':_0xe8443f('0x22b6'),'options':{'excludedOperators':[_0xe8443f('0x10be')]}},{'name':_0xe8443f('0x247a'),'column':_0xe8443f('0x25e9'),'type':_0xe8443f('0xc65'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0xe8443f('0x1015')}],'options':{'excludedOperators':[_0xe8443f('0x10be')]}}];}function _0x55783a(){const _0x133d67=_0x68b804;_0x150459['show']({'controller':_0x133d67('0x1c5b'),'controllerAs':'vm','templateUrl':_0xe7b9fa,'parent':angular[_0x133d67('0xb6d')](_0xfbe292[_0x133d67('0x1a5')]),'clickOutsideToClose':![],'locals':{'fields':_0x102154['advancedSearch'][_0x133d67('0x2340')],'color':undefined,'storagePath':_0x133d67('0x11c4')},'fullscreen':!![]})[_0x133d67('0x173b')](function(_0x2447ee){const _0xe1f71a=_0x133d67;_0x102154[_0xe1f71a('0xc49')][_0xe1f71a('0x23e7')]=_0x2447ee===![]?undefined:_0x2447ee;if(_0x102154['query'][_0xe1f71a('0x23e7')])_0x42fe59();else _0x2447ee===![]&&_0x42fe59();})[_0x133d67('0x103c')](function(_0x3e5946){const _0x3767f8=_0x133d67;_0x132338[_0x3767f8('0x15aa')]({'title':'ERROR','msg':_0x3e5946[_0x3767f8('0x1e07')]?JSON[_0x3767f8('0x100b')](_0x3e5946['data'][_0x3767f8('0x67f')]):_0x3e5946['toString']()});});}function _0x1b7172(_0x9e2088,_0x4eadb2,_0x4dae49){const _0x1f926e=_0x68b804;return _0xe9d4f0['whatsappInteraction'][_0x1f926e('0xfce')]({'id':_0x9e2088['id'],'exists':!![],'attachments':_0x4dae49})['$promise'][_0x1f926e('0x173b')](function(_0x16657c){const _0x5ac42a=_0x1f926e,_0x3eebd7=[_0x16657c[_0x5ac42a('0x1c22')]];let _0x38c13b=_0x5ac42a('0x8d6')+_0x9e2088['id'];const _0x588137=new Blob(_0x3eebd7,{'type':_0x16657c[_0x5ac42a('0x1810')]});_0x38c13b=_0x5ac42a('0x119b')+_0x9e2088['id']+_0x5ac42a('0x1421');const _0x5aa2b9=window[_0x5ac42a('0x222a')][_0x5ac42a('0x1258')]('a');_0x5aa2b9[_0x5ac42a('0x11c3')]('href',URL[_0x5ac42a('0x1466')](_0x588137)),_0x5aa2b9[_0x5ac42a('0x11c3')]('download',_0x38c13b),document['body'][_0x5ac42a('0x1f8d')](_0x5aa2b9),_0x5aa2b9['click']();})[_0x1f926e('0x103c')](function(_0x3a25d2){const _0x1ea7f9=_0x1f926e;if(_0x3a25d2[_0x1ea7f9('0x1e07')]&&_0x3a25d2[_0x1ea7f9('0x1e07')][_0x1ea7f9('0x1d4a')]&&_0x3a25d2[_0x1ea7f9('0x1e07')][_0x1ea7f9('0x1d4a')][_0x1ea7f9('0x543')])for(let _0x338a8c=0x0;_0x338a8c<_0x3a25d2[_0x1ea7f9('0x1e07')][_0x1ea7f9('0x1d4a')][_0x1ea7f9('0x543')];_0x338a8c+=0x1){_0x132338['error']({'title':_0x3a25d2[_0x1ea7f9('0x1e07')][_0x1ea7f9('0x1d4a')][_0x338a8c][_0x1ea7f9('0x1810')],'msg':_0x3a25d2['data'][_0x1ea7f9('0x1d4a')][_0x338a8c][_0x1ea7f9('0x67f')]});}else _0x132338[_0x1ea7f9('0x15aa')]({'title':_0x3a25d2[_0x1ea7f9('0x276f')]?'API:'+_0x3a25d2[_0x1ea7f9('0x276f')]+'\x20-\x20'+_0x3a25d2[_0x1ea7f9('0x2696')]:_0x1ea7f9('0x1a07'),'msg':_0x3a25d2[_0x1ea7f9('0x1e07')]?JSON[_0x1ea7f9('0x100b')](_0x3a25d2[_0x1ea7f9('0x1e07')][_0x1ea7f9('0x67f')]):_0x3a25d2[_0x1ea7f9('0x1b75')]()});});}function _0x1fe204(_0x212adb,_0x14f937){const _0x12fbca=_0x68b804,_0x28979d=_0x150459[_0x12fbca('0x1d02')]()[_0x12fbca('0x20d6')](_0x12fbca('0x1169'))[_0x12fbca('0xf8b')](_0x12fbca('0x15b9')+(_0x212adb[_0x12fbca('0x10ad')]||_0x212adb['id']&&_0x3c8d8a()[_0x12fbca('0x5ba')](_0x12fbca('0x1523'))+_0x212adb['id']||'interaction')+_0x12fbca('0x24be')+_0x12fbca('0xd23'))[_0x12fbca('0x217')](_0x12fbca('0x10bd'))[_0x12fbca('0x21de')](_0x14f937)['ok']('OK')[_0x12fbca('0x1e1f')](_0x12fbca('0x468'));_0x150459['show'](_0x28979d)['then'](function(){_0x5161f2(_0x212adb);},function(){const _0x15009d=_0x12fbca;console[_0x15009d('0xe37')](_0x15009d('0x468'));});}function _0xe968cc(_0x1ec2be){const _0x506115=_0x68b804;_0x102154['whatsappAccountInteractions']=_0x1ec2be||{'count':0x0,'rows':[]};for(let _0x92bcc3=0x0;_0x92bcc3<_0x102154['whatsappAccountInteractions'][_0x506115('0x6aa')][_0x506115('0x543')];_0x92bcc3+=0x1){const _0x536537=_0x102154['whatsappAccountInteractions'][_0x506115('0x6aa')][_0x92bcc3];_0x5b233d(_0x536537),_0x536537[_0x506115('0x274f')]['name']=_0x15b839(_0x536537);}}function _0x42fe59(){const _0x47ecd1=_0x68b804;_0x102154['query'][_0x47ecd1('0x17f0')]=(_0x102154[_0x47ecd1('0xc49')][_0x47ecd1('0x182e')]-0x1)*_0x102154[_0x47ecd1('0xc49')][_0x47ecd1('0x3e')],_0x102154[_0x47ecd1('0x2219')]=_0xe9d4f0['whatsappInteraction'][_0x47ecd1('0x1d97')](_0x102154[_0x47ecd1('0xc49')],_0xe968cc)[_0x47ecd1('0x1964')];}function _0x4864f8(_0x38719d,_0x16ee5b){const _0x595bbf=_0x68b804;_0x150459[_0x595bbf('0x1cb7')]({'controller':_0x595bbf('0x58c'),'controllerAs':'vm','templateUrl':_0x4717ab,'parent':angular[_0x595bbf('0xb6d')](_0xfbe292[_0x595bbf('0x1a5')]),'targetEvent':_0x38719d,'clickOutsideToClose':!![],'onShowing':function(_0x1a3f43){const _0x5265ba=_0x595bbf;_0x1a3f43['vm']['init']({'id':0x1,'channel':_0x5265ba('0x245'),'interaction':_0x16ee5b,'spy':!![]},_0x20d99e[_0x5265ba('0x1d44')]['vm'][_0x5265ba('0x251')]);}});}function _0x5161f2(_0x92b081){const _0xe35bc6=_0x68b804;_0xe9d4f0[_0xe35bc6('0x818')]['delete']({'id':_0x92b081['id']})[_0xe35bc6('0x1964')][_0xe35bc6('0x173b')](function(){const _0x39097a=_0xe35bc6;_0x3c8d8a()[_0x39097a('0x1a8b')](_0x102154[_0x39097a('0xe43')][_0x39097a('0x6aa')],{'id':_0x92b081['id']}),_0x102154[_0x39097a('0xe43')][_0x39097a('0x1a2f')]-=0x1,!_0x102154['whatsappAccountInteractions'][_0x39097a('0x6aa')][_0x39097a('0x543')]&&_0x42fe59(),_0x132338[_0x39097a('0xdfe')]({'title':_0x39097a('0x22c0'),'msg':_0x92b081[_0x39097a('0x10ad')]?_0x92b081[_0x39097a('0x10ad')]+_0x39097a('0x25d2'):''});})[_0xe35bc6('0x103c')](function(_0x2d88ef){const _0x37a05c=_0xe35bc6;if(_0x2d88ef['data']&&_0x2d88ef[_0x37a05c('0x1e07')]['errors']&&_0x2d88ef['data']['errors'][_0x37a05c('0x543')]){_0x102154[_0x37a05c('0x1d4a')]=_0x2d88ef[_0x37a05c('0x1e07')]['errors']||[{'message':_0x2d88ef[_0x37a05c('0x1b75')](),'type':_0x37a05c('0x1db1')}];for(let _0x1271d4=0x0;_0x1271d4<_0x2d88ef[_0x37a05c('0x1e07')][_0x37a05c('0x1d4a')][_0x37a05c('0x543')];_0x1271d4++){_0x132338['error']({'title':_0x2d88ef['data'][_0x37a05c('0x1d4a')][_0x1271d4][_0x37a05c('0x1810')],'msg':_0x2d88ef['data'][_0x37a05c('0x1d4a')][_0x1271d4][_0x37a05c('0x67f')]});}}else _0x132338[_0x37a05c('0x15aa')]({'title':_0x2d88ef['status']?_0x37a05c('0x137')+_0x2d88ef[_0x37a05c('0x276f')]+'\x20-\x20'+_0x2d88ef[_0x37a05c('0x2696')]:_0x37a05c('0x1db1'),'msg':_0x2d88ef['data']?JSON[_0x37a05c('0x100b')](_0x2d88ef[_0x37a05c('0x1e07')][_0x37a05c('0x67f')]):_0x2d88ef['message']||_0x2d88ef['toString']()});});}function _0x1e9fbb(){const _0x57b41a=_0x68b804,_0x4290c6=angular[_0x57b41a('0x2e3')](_0x102154[_0x57b41a('0xe01')]);return _0x102154[_0x57b41a('0xe01')]=[],_0x4290c6;}function _0x304730(_0x31b9db){const _0x3b2a1b=_0x68b804,_0x12619b=_0x150459[_0x3b2a1b('0x1d02')]()[_0x3b2a1b('0x20d6')](_0x3b2a1b('0x568'))[_0x3b2a1b('0xf8b')](_0x3b2a1b('0x15b9')+_0x102154[_0x3b2a1b('0xe01')]['length']+_0x3b2a1b('0xcb4')+_0x3b2a1b('0xd23'))['ariaLabel'](_0x3b2a1b('0x19'))['targetEvent'](_0x31b9db)['ok']('OK')[_0x3b2a1b('0x1e1f')](_0x3b2a1b('0x468'));_0x150459[_0x3b2a1b('0x1cb7')](_0x12619b)[_0x3b2a1b('0x173b')](function(){const _0x1331d0=_0x3b2a1b;_0x102154[_0x1331d0('0xe01')]['forEach'](function(_0x26f211){_0x5161f2(_0x26f211);}),_0x102154[_0x1331d0('0xe01')]=[];});}function _0x5b233d(_0x4bd2de){const _0x258d4e=_0x68b804;_0x4bd2de[_0x258d4e('0x1f70')]?_0x4bd2de['contactName']=(_0x4bd2de['Contact'][_0x258d4e('0x1e50')]||'')+'\x20'+(_0x4bd2de[_0x258d4e('0x1f70')]['lastName']||''):_0x4bd2de[_0x258d4e('0x98d')]=_0x22f502[_0x258d4e('0x1467')](_0x258d4e('0x172b'));}function _0x15b839(_0x42d565){const _0xf802c8=_0x68b804;if(_0x42d565['UserId'])return _0x42d565[_0xf802c8('0x181c')]===_0x102154[_0xf802c8('0x155f')]['id']?_0x22f502[_0xf802c8('0x1467')]('DASHBOARDS.ME'):_0x42d565[_0xf802c8('0x274f')][_0xf802c8('0x572')]+'\x20<'+_0x42d565['Owner'][_0xf802c8('0x138c')]+'>';return _0x22f502[_0xf802c8('0x1467')](_0xf802c8('0x27a8'));}let _0x2b422a=!![],_0x16ba19=0x1;_0x20d99e['$watch']('vm_dc.query.filter',function(_0x5f4207,_0x46c6cc){const _0x39be5c=_0x68b804;_0x2b422a?_0x3ec9de(function(){_0x2b422a=![];}):(!_0x46c6cc&&(_0x16ba19=_0x102154['query'][_0x39be5c('0x182e')]),_0x5f4207!==_0x46c6cc&&(_0x102154[_0x39be5c('0xc49')]['page']=0x1),!_0x5f4207&&(_0x102154[_0x39be5c('0xc49')][_0x39be5c('0x182e')]=_0x16ba19),_0x42fe59());});}const _0x2a2169=_0x1b36ca,_0x73a01d=_0x21a6a1['p']+_0x566993('0x2452');_0xd85134['$inject']=[_0x566993('0x2276'),_0x566993('0x19df'),'$mdDialog','$document',_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0xbd4'),'toasty',_0x566993('0x1600'),_0x566993('0x234'),_0x566993('0x170e')];function _0xd85134(_0x1ba90f,_0x4ba936,_0x52fdb7,_0x3f09ff,_0x2f7357,_0x56c4df,_0x5598a1,_0x541363,_0x74ac4c,_0x1ece74,_0x5a4a7b,_0x2ded29){const _0x5e16eb=_0x566993,_0x3e6c8b=this;_0x3e6c8b[_0x5e16eb('0x155f')]=_0x1ece74['getCurrentUser'](),_0x3e6c8b[_0x5e16eb('0x1a29')]=_0x56c4df,_0x3e6c8b[_0x5e16eb('0x251')]=_0x5598a1,_0x3e6c8b[_0x5e16eb('0x644')]=_0x3e6c8b[_0x5e16eb('0x251')][_0x5e16eb('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3e6c8b[_0x5e16eb('0x614')]=_0x4ba936['protocol']()+_0x5e16eb('0x122b')+_0x4ba936[_0x5e16eb('0x4d1')](),_0x3e6c8b['whatsappAccount']=_0x5a4a7b||_0x1ba90f[_0x5e16eb('0x197a')][_0x5e16eb('0x234')]||{},_0x3e6c8b[_0x5e16eb('0x170e')]=_0x2ded29&&_0x2ded29[_0x5e16eb('0x1a2f')]==0x1?_0x2ded29[_0x5e16eb('0x6aa')][0x0]:null,_0x3e6c8b[_0x5e16eb('0x1dc1')]=_0x1ece74[_0x5e16eb('0xde6')](_0x3e6c8b[_0x5e16eb('0x170e')]?_0x3e6c8b[_0x5e16eb('0x170e')][_0x5e16eb('0x1dc1')]:null),_0x3e6c8b[_0x5e16eb('0xb0')]={},_0x3e6c8b['selectedTab']=_0x1ba90f[_0x5e16eb('0x197a')][_0x5e16eb('0x1e66')]||0x0,_0x3e6c8b['agentadddialog']=_0x14fd22,_0x3e6c8b[_0x5e16eb('0x5a4')]=_0x74ac4c[_0x5e16eb('0x2787')],_0x3e6c8b[_0x5e16eb('0x915')]=_0x1a9296,_0x3e6c8b[_0x5e16eb('0xd9e')]=_0x515294,_0x1ece74['hasRole']('admin')?_0x541363[_0x5e16eb('0xbb3')][_0x5e16eb('0x1d97')]({'fields':_0x5e16eb('0xd52'),'sort':_0x5e16eb('0x10ad')})[_0x5e16eb('0x1964')][_0x5e16eb('0x173b')](function(_0x2b5d3d){const _0xb55f40=_0x5e16eb;_0x3e6c8b[_0xb55f40('0x9e8')]=_0x2b5d3d['rows']||[];})[_0x5e16eb('0x103c')](function(_0x4ea8f8){const _0x1793d1=_0x5e16eb;_0x74ac4c[_0x1793d1('0x15aa')]({'title':_0x4ea8f8[_0x1793d1('0x276f')]?_0x1793d1('0x137')+_0x4ea8f8['status']+_0x1793d1('0x160c')+_0x4ea8f8[_0x1793d1('0x2696')]:'SYSTEM:GET_LISTS','msg':_0x4ea8f8['data']?JSON[_0x1793d1('0x100b')](_0x4ea8f8[_0x1793d1('0x1e07')]):_0x4ea8f8[_0x1793d1('0x1b75')]()});}):_0x541363[_0x5e16eb('0xbb3')]['get']({'fields':_0x5e16eb('0xd52'),'sort':'name'})[_0x5e16eb('0x1964')][_0x5e16eb('0x173b')](function(_0x40c598){const _0xd0a16a=_0x5e16eb;_0x3e6c8b[_0xd0a16a('0x9e8')]=_0x40c598[_0xd0a16a('0x6aa')]||[];})['then'](function(){const _0xbd9c81=_0x5e16eb;return _0x541363[_0xbd9c81('0x170e')][_0xbd9c81('0x1d97')]({'userProfileId':_0x3e6c8b['currentUser'][_0xbd9c81('0x1946')],'sectionId':0x12d})[_0xbd9c81('0x1964')];})[_0x5e16eb('0x173b')](function(_0x3ffb07){const _0x25a4ca=_0x5e16eb,_0x43ec24=_0x3ffb07&&_0x3ffb07[_0x25a4ca('0x6aa')]?_0x3ffb07['rows'][0x0]:null;if(!_0x43ec24){const _0x5603c5=[];let _0x6d7c2a=null;_0x3e6c8b[_0x25a4ca('0x234')]&&(_0x6d7c2a=_0x3c8d8a()[_0x25a4ca('0x18ab')](_0x3e6c8b['lists'],{'id':Number(_0x3e6c8b[_0x25a4ca('0x234')][_0x25a4ca('0xef2')])}));for(let _0x51fad7=0x0;_0x51fad7<_0x3e6c8b['lists'][_0x25a4ca('0x543')];_0x51fad7++){_0x6d7c2a&&_0x3e6c8b[_0x25a4ca('0x9e8')][_0x51fad7]['id']===_0x6d7c2a['id']&&(_0x3e6c8b[_0x25a4ca('0x9e8')][_0x51fad7][_0x25a4ca('0x268e')]=![],_0x5603c5[_0x25a4ca('0x18bb')](_0x3e6c8b[_0x25a4ca('0x9e8')][_0x51fad7]));}_0x3e6c8b[_0x25a4ca('0x9e8')]=_0x5603c5;}else{if(!_0x43ec24[_0x25a4ca('0x273e')])return _0x541363['userProfileResource'][_0x25a4ca('0x1d97')]({'sectionId':_0x43ec24['id']})[_0x25a4ca('0x1964')]['then'](function(_0x490235){const _0x45ae13=_0x25a4ca,_0x4324ee=_0x3c8d8a()[_0x45ae13('0x8a2')](_0x490235['rows'],function(_0x254234){const _0x5ad8a5=_0x45ae13;return _0x3c8d8a()[_0x5ad8a5('0x18ab')](_0x3e6c8b[_0x5ad8a5('0x9e8')],{'id':_0x254234[_0x5ad8a5('0x1ce0')]});});let _0x18a338=null;_0x3e6c8b[_0x45ae13('0x234')]&&(_0x18a338=_0x3c8d8a()[_0x45ae13('0x18ab')](_0x3e6c8b[_0x45ae13('0x9e8')],{'id':Number(_0x3e6c8b[_0x45ae13('0x234')][_0x45ae13('0xef2')])}));if(_0x18a338&&!_0x3c8d8a()[_0x45ae13('0x1ec')](_0x4324ee,['id',_0x18a338['id']])){const _0x455e11=_0x3c8d8a()['find'](_0x3e6c8b[_0x45ae13('0x9e8')],{'id':_0x18a338['id']});_0x455e11[_0x45ae13('0x268e')]=![],_0x4324ee[_0x45ae13('0x18bb')](_0x455e11);}_0x3e6c8b[_0x45ae13('0x9e8')]=_0x4324ee;});}})[_0x5e16eb('0x103c')](function(_0x15536f){const _0x3794bc=_0x5e16eb;_0x74ac4c[_0x3794bc('0x15aa')]({'title':_0x15536f[_0x3794bc('0x276f')]?_0x3794bc('0x137')+_0x15536f[_0x3794bc('0x276f')]+_0x3794bc('0x160c')+_0x15536f[_0x3794bc('0x2696')]:_0x3794bc('0x1292'),'msg':_0x15536f[_0x3794bc('0x1e07')]?JSON[_0x3794bc('0x100b')](_0x15536f['data']):_0x15536f[_0x3794bc('0x1b75')]()});}),_0x1ece74[_0x5e16eb('0x1b4e')](_0x5e16eb('0x79b'))?_0x541363['pause'][_0x5e16eb('0x1d97')]({'fields':_0x5e16eb('0x901'),'sort':'name','nolimit':_0x5e16eb('0x799')})[_0x5e16eb('0x1964')]['then'](function(_0x266cab){const _0xce9c82=_0x5e16eb;_0x3e6c8b[_0xce9c82('0x1d66')]=_0x266cab[_0xce9c82('0x6aa')]||[];})[_0x5e16eb('0x103c')](function(_0x8737a6){const _0x3f7929=_0x5e16eb;_0x74ac4c[_0x3f7929('0x15aa')]({'title':_0x8737a6[_0x3f7929('0x276f')]?'API:'+_0x8737a6['status']+_0x3f7929('0x160c')+_0x8737a6[_0x3f7929('0x2696')]:_0x3f7929('0xe0f'),'msg':_0x8737a6['data']?JSON[_0x3f7929('0x100b')](_0x8737a6[_0x3f7929('0x1e07')]):_0x8737a6[_0x3f7929('0x1b75')]()});}):_0x541363[_0x5e16eb('0x1751')][_0x5e16eb('0x1d97')]({'fields':'name,id','sort':_0x5e16eb('0x10ad'),'nolimit':_0x5e16eb('0x799')})[_0x5e16eb('0x1964')][_0x5e16eb('0x173b')](function(_0x37a664){const _0x205ab6=_0x5e16eb;_0x3e6c8b[_0x205ab6('0x1d66')]=_0x37a664[_0x205ab6('0x6aa')]||[];})[_0x5e16eb('0x173b')](function(){const _0x274441=_0x5e16eb;return _0x541363[_0x274441('0x170e')][_0x274441('0x1d97')]({'userProfileId':_0x3e6c8b[_0x274441('0x155f')][_0x274441('0x1946')],'sectionId':0x3ed})['$promise'];})[_0x5e16eb('0x173b')](function(_0x54e0ed){const _0x59e02c=_0x5e16eb,_0x4e2fd7=_0x54e0ed&&_0x54e0ed[_0x59e02c('0x6aa')]?_0x54e0ed[_0x59e02c('0x6aa')][0x0]:null;if(!_0x4e2fd7)_0x3e6c8b[_0x59e02c('0x1d66')]=[];else{if(!_0x4e2fd7[_0x59e02c('0x273e')])return _0x541363[_0x59e02c('0xda9')][_0x59e02c('0x1d97')]({'sectionId':_0x4e2fd7['id']})[_0x59e02c('0x1964')][_0x59e02c('0x173b')](function(_0x320765){const _0xe1a718=_0x59e02c,_0xe6c7a5=_0x3c8d8a()['map'](_0x320765[_0xe1a718('0x6aa')],function(_0x369eb3){const _0x19fd4e=_0xe1a718;return _0x3c8d8a()[_0x19fd4e('0x18ab')](_0x3e6c8b['pauses'],{'id':_0x369eb3[_0x19fd4e('0x1ce0')]});});_0x3e6c8b['pauses'][_0xe1a718('0xa6a')](function(_0x86ee18){const _0x220994=_0xe1a718;!_0x3c8d8a()['some'](_0xe6c7a5,['id',_0x86ee18['id']])&&(_0x86ee18[_0x220994('0x268e')]=![]),_0xe6c7a5['push'](_0x86ee18);}),_0x3e6c8b[_0xe1a718('0x1d66')]=_0xe6c7a5;});}})['catch'](function(_0x3d34a9){const _0x453032=_0x5e16eb;_0x74ac4c['error']({'title':_0x3d34a9[_0x453032('0x276f')]?_0x453032('0x137')+_0x3d34a9['status']+_0x453032('0x160c')+_0x3d34a9[_0x453032('0x2696')]:_0x453032('0x2595'),'msg':_0x3d34a9[_0x453032('0x1e07')]?JSON[_0x453032('0x100b')](_0x3d34a9[_0x453032('0x1e07')]):_0x3d34a9[_0x453032('0x1b75')]()});});function _0x14fd22(_0x3bea81,_0xe9742d){const _0x4b3121=_0x5e16eb;_0x52fdb7[_0x4b3121('0x1cb7')]({'controller':'WhatsappAccountagentaddController','controllerAs':'vm','templateUrl':_0x73a01d,'parent':angular[_0x4b3121('0xb6d')](_0x3f09ff['body']),'targetEvent':_0xe9742d,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x3bea81,'whatsappAccounts':_0x3e6c8b[_0x4b3121('0x2154')]?_0x3e6c8b['whatsappAccounts'][_0x4b3121('0x6aa')]:[],'crudPermissions':_0x3e6c8b[_0x4b3121('0x1dc1')],'realtime':![]}});}function _0x1a9296(){const _0x50c3f6=_0x5e16eb;_0x1ba90f['go'](_0x50c3f6('0x1c42'),{},{'reload':_0x50c3f6('0x1c42')});}function _0x515294(){const _0xf44845=_0x5e16eb;_0x541363['whatsappAccount'][_0xf44845('0x1842')]({'id':_0x3e6c8b[_0xf44845('0x234')]['id']},_0x3e6c8b[_0xf44845('0x234')])['$promise'][_0xf44845('0x173b')](function(){const _0xa2b214=_0xf44845;_0x74ac4c[_0xa2b214('0xdfe')]({'title':_0xa2b214('0x1e79'),'msg':_0x3e6c8b[_0xa2b214('0x234')][_0xa2b214('0x10ad')]?_0x3e6c8b[_0xa2b214('0x234')][_0xa2b214('0x10ad')]+_0xa2b214('0x1fd6'):''});})[_0xf44845('0x103c')](function(_0x3651d5){const _0x4ca0ed=_0xf44845;_0x74ac4c[_0x4ca0ed('0x15aa')]({'title':_0x3651d5[_0x4ca0ed('0x276f')]?'API:'+_0x3651d5[_0x4ca0ed('0x276f')]+_0x4ca0ed('0x160c')+_0x3651d5['statusText']:'SYSTEM:GETwhatsappAccount','msg':_0x3651d5['data']?JSON['stringify'](_0x3651d5[_0x4ca0ed('0x1e07')]):_0x3651d5[_0x4ca0ed('0x1b75')]()});});}}const _0x2cbb84=_0xd85134,_0x256fd8=_0x21a6a1['p']+_0x566993('0x1332');_0x5ba601[_0x566993('0x17bb')]=[_0x566993('0x2166'),_0x566993('0x66f'),_0x566993('0x2276'),'$q',_0x566993('0x638'),_0x566993('0x24b5'),_0x566993('0x1fe5'),'$document','toasty',_0x566993('0xbd4'),_0x566993('0x1600')];function _0x5ba601(_0x4551ad,_0x488f22,_0x2aab56,_0x870160,_0x1fbf0f,_0x326cc4,_0x421d08,_0x2a4fca,_0x2d0e54,_0x8af8de,_0x49a2ca){const _0xcc5893=_0x566993,_0x580ba9=this;_0x580ba9[_0xcc5893('0x155f')]=_0x49a2ca[_0xcc5893('0x14d4')](),_0x580ba9[_0xcc5893('0x234')]={},_0x580ba9[_0xcc5893('0x24ac')]={'count':0x0,'rows':[]},_0x580ba9[_0xcc5893('0x1190')]=[],_0x580ba9[_0xcc5893('0x1dc1')],_0x580ba9[_0xcc5893('0xc49')]={'fields':_0xcc5893('0x1f12'),'limit':0xa,'page':0x1},_0x580ba9[_0xcc5893('0xb9c')]=_0x3c8f2f,_0x580ba9[_0xcc5893('0x2051')]=_0x1b0001,_0x580ba9[_0xcc5893('0xdfe')]=_0x1442a3,_0x580ba9[_0xcc5893('0x1641')]=_0x492dea,_0x580ba9['createOrEditWhatsappAccountWhatsappCannedAnswer']=_0xd847d9,_0x580ba9[_0xcc5893('0x20ef')]=_0x46d1dd,_0x580ba9[_0xcc5893('0x2740')]=_0x269500,_0x580ba9[_0xcc5893('0x1c76')]=_0x12bf07;function _0x3c8f2f(_0x5af719,_0x10ff56){const _0xc70df=_0xcc5893;_0x580ba9[_0xc70df('0x234')]=_0x5af719,_0x580ba9['crudPermissions']=typeof _0x10ff56!==_0xc70df('0x6e5')?_0x10ff56:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x580ba9[_0xc70df('0xc49')]['WhatsappAccountId']=_0x580ba9['whatsappAccount']['id'],_0x580ba9[_0xc70df('0xc49')]['id']=_0x580ba9[_0xc70df('0x234')]['id'],_0x492dea();}function _0x1b0001(_0x4863db,_0x4f20c6){const _0x2140f1=_0xcc5893,_0x4adb94=_0x421d08[_0x2140f1('0x1d02')]()[_0x2140f1('0x20d6')](_0x2140f1('0x1c6'))['htmlContent'](''+(_0x4863db[_0x2140f1('0x10ad')]||_0x4863db['id']&&_0x3c8d8a()[_0x2140f1('0x5ba')](_0x2140f1('0x1e4a'))+_0x4863db['id']||_0x2140f1('0x10dc'))+_0x2140f1('0x24be')+_0x2140f1('0xd23'))[_0x2140f1('0x217')](_0x2140f1('0x1bc2'))[_0x2140f1('0x21de')](_0x4f20c6)['ok']('OK')['cancel'](_0x2140f1('0x468'));_0x421d08['show'](_0x4adb94)[_0x2140f1('0x173b')](function(){_0x269500(_0x4863db);},function(){const _0x47ec24=_0x2140f1;console[_0x47ec24('0xe37')](_0x47ec24('0x468'));});}function _0x1442a3(_0x57d761){_0x580ba9['whatsappAccountWhatsappCannedAnswers']=_0x57d761||{'count':0x0,'rows':[]};}function _0x492dea(){const _0x4ea130=_0xcc5893;_0x580ba9[_0x4ea130('0xc49')][_0x4ea130('0x17f0')]=(_0x580ba9[_0x4ea130('0xc49')][_0x4ea130('0x182e')]-0x1)*_0x580ba9[_0x4ea130('0xc49')][_0x4ea130('0x3e')],_0x580ba9[_0x4ea130('0x2219')]=_0x8af8de[_0x4ea130('0x234')]['getAnswers'](_0x580ba9[_0x4ea130('0xc49')],_0x1442a3)['$promise'];}function _0xd847d9(_0x305754,_0x44915b){const _0x2e8d2e=_0xcc5893;_0x421d08['show']({'controller':'CreateOrEditWhatsappCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x256fd8,'parent':angular[_0x2e8d2e('0xb6d')](_0x2a4fca['body']),'targetEvent':_0x305754,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x580ba9[_0x2e8d2e('0x234')],'whatsappCannedAnswer':_0x44915b,'whatsappCannedAnswers':_0x580ba9['whatsappAccountWhatsappCannedAnswers'][_0x2e8d2e('0x6aa')],'license':null,'setting':null,'crudPermissions':_0x580ba9['crudPermissions']}});}function _0x269500(_0x31476f){const _0x3c9fd1=_0xcc5893;_0x8af8de[_0x3c9fd1('0x2849')][_0x3c9fd1('0x15e8')]({'id':_0x31476f['id']})[_0x3c9fd1('0x1964')]['then'](function(){const _0x436331=_0x3c9fd1;_0x3c8d8a()[_0x436331('0x1a8b')](_0x580ba9[_0x436331('0x24ac')][_0x436331('0x6aa')],{'id':_0x31476f['id']}),_0x580ba9[_0x436331('0x24ac')][_0x436331('0x1a2f')]-=0x1,!_0x580ba9[_0x436331('0x24ac')][_0x436331('0x6aa')][_0x436331('0x543')]&&_0x492dea(),_0x2d0e54['success']({'title':_0x436331('0x1b96'),'msg':_0x31476f[_0x436331('0x10ad')]?_0x31476f[_0x436331('0x10ad')]+_0x436331('0x25d2'):''});})[_0x3c9fd1('0x103c')](function(_0x4e7d93){const _0x613694=_0x3c9fd1;if(_0x4e7d93[_0x613694('0x1e07')]&&_0x4e7d93['data'][_0x613694('0x1d4a')]&&_0x4e7d93['data']['errors'][_0x613694('0x543')]){_0x580ba9[_0x613694('0x1d4a')]=_0x4e7d93[_0x613694('0x1e07')][_0x613694('0x1d4a')]||[{'message':_0x4e7d93[_0x613694('0x1b75')](),'type':'SYSTEM:GETwhatsappAccount'}];for(let _0x10ea40=0x0;_0x10ea40<_0x4e7d93[_0x613694('0x1e07')]['errors'][_0x613694('0x543')];_0x10ea40++){_0x2d0e54[_0x613694('0x15aa')]({'title':_0x4e7d93[_0x613694('0x1e07')][_0x613694('0x1d4a')][_0x10ea40][_0x613694('0x1810')],'msg':_0x4e7d93[_0x613694('0x1e07')]['errors'][_0x10ea40][_0x613694('0x67f')]});}}else _0x2d0e54[_0x613694('0x15aa')]({'title':_0x4e7d93[_0x613694('0x276f')]?_0x613694('0x137')+_0x4e7d93[_0x613694('0x276f')]+'\x20-\x20'+_0x4e7d93['statusText']:_0x613694('0x1db1'),'msg':_0x4e7d93[_0x613694('0x1e07')]?JSON[_0x613694('0x100b')](_0x4e7d93[_0x613694('0x1e07')][_0x613694('0x67f')]):_0x4e7d93[_0x613694('0x67f')]||_0x4e7d93['toString']()});});}function _0x46d1dd(){const _0x58e73e=_0xcc5893,_0x4cee05=angular[_0x58e73e('0x2e3')](_0x580ba9[_0x58e73e('0x1190')]);return _0x580ba9['selectedWhatsappAccountWhatsappCannedAnswers']=[],_0x4cee05;}function _0x12bf07(_0x135eb7){const _0x7f2435=_0xcc5893,_0x5c5a85=_0x421d08[_0x7f2435('0x1d02')]()['title'](_0x7f2435('0x1b19'))['htmlContent'](_0x7f2435('0x15b9')+_0x580ba9[_0x7f2435('0x1190')][_0x7f2435('0x543')]+_0x7f2435('0xcb4')+_0x7f2435('0xd23'))[_0x7f2435('0x217')](_0x7f2435('0x360'))['targetEvent'](_0x135eb7)['ok']('OK')['cancel'](_0x7f2435('0x468'));_0x421d08[_0x7f2435('0x1cb7')](_0x5c5a85)[_0x7f2435('0x173b')](function(){const _0x114c69=_0x7f2435;_0x580ba9[_0x114c69('0x1190')][_0x114c69('0xa6a')](function(_0x26c926){_0x269500(_0x26c926);}),_0x580ba9[_0x114c69('0x1190')]=[];});}let _0x434280=!![],_0x314a9c=0x1;_0x488f22[_0xcc5893('0x1bdb')]('vm_dc.query.filter',function(_0x5d3ba9,_0x3eb9d9){const _0x157f01=_0xcc5893;_0x434280?_0x326cc4(function(){_0x434280=![];}):(!_0x3eb9d9&&(_0x314a9c=_0x580ba9['query'][_0x157f01('0x182e')]),_0x5d3ba9!==_0x3eb9d9&&(_0x580ba9[_0x157f01('0xc49')][_0x157f01('0x182e')]=0x1),!_0x5d3ba9&&(_0x580ba9[_0x157f01('0xc49')][_0x157f01('0x182e')]=_0x314a9c),_0x492dea());});}const _0x26fdfc=_0x5ba601;_0x4e8e52[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0xec0'),_0x566993('0x10dc'),'api','Auth',_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x4e8e52(_0x5b5f8a,_0xd54aa0,_0x49b856,_0x5e37e2,_0x284104,_0xb27edb,_0x2e9ab9,_0x44f08d,_0xfff4b,_0x1dff3b,_0x185d7f,_0xd0a0c7,_0x216b3e,_0x32e8a6){const _0x4fe4fd=_0x566993,_0x8fa65e=this;_0x8fa65e[_0x4fe4fd('0x155f')]=_0x185d7f[_0x4fe4fd('0x14d4')](),_0x8fa65e[_0x4fe4fd('0x1d4a')]=[],_0x8fa65e['setting']=_0x216b3e,_0x8fa65e[_0x4fe4fd('0x1a29')]=_0xd0a0c7,_0x8fa65e[_0x4fe4fd('0x1dc1')]=_0x32e8a6,_0x8fa65e[_0x4fe4fd('0xb0')]={},_0x8fa65e[_0x4fe4fd('0x644')]=_0x8fa65e[_0x4fe4fd('0x251')]&&_0x8fa65e[_0x4fe4fd('0x251')][_0x4fe4fd('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8fa65e[_0x4fe4fd('0x20d6')]='WHATSAPP.EDIT_WHATSAPPCANNEDANSWER',_0x8fa65e['whatsappCannedAnswer']=angular['copy'](_0xfff4b),_0x8fa65e['whatsappCannedAnswers']=_0x44f08d,_0x8fa65e['newWhatsappCannedAnswer']=![];!_0x8fa65e[_0x4fe4fd('0x10dc')]&&(_0x8fa65e['whatsappCannedAnswer']={},_0x8fa65e[_0x4fe4fd('0x20d6')]=_0x4fe4fd('0x1488'),_0x8fa65e[_0x4fe4fd('0x1f26')]=!![]);_0xd54aa0['params']['id']&&(_0x8fa65e[_0x4fe4fd('0x10dc')]['WhatsappAccountId']=_0xd54aa0['params']['id']);_0x8fa65e[_0x4fe4fd('0x946')]=_0x3a8753,_0x8fa65e[_0x4fe4fd('0x23fa')]=_0x3b11bb,_0x8fa65e[_0x4fe4fd('0x750')]=_0xefd20a,_0x8fa65e[_0x4fe4fd('0x11ae')]=_0x21aba0,_0x8fa65e[_0x4fe4fd('0x18e2')]=_0x498733;function _0x3a8753(){const _0x559feb=_0x4fe4fd;_0x8fa65e[_0x559feb('0x1d4a')]=[],_0x1dff3b[_0x559feb('0x2849')]['save'](_0x8fa65e['whatsappCannedAnswer'])[_0x559feb('0x1964')]['then'](function(_0x1fe78d){const _0x33f6e5=_0x559feb;_0x8fa65e[_0x33f6e5('0xec0')][_0x33f6e5('0x1377')](_0x1fe78d['toJSON']()),_0x2e9ab9['success']({'title':'WhatsappCannedAnswer\x20properly\x20created','msg':_0x8fa65e[_0x33f6e5('0x10dc')]['name']?_0x8fa65e['whatsappCannedAnswer']['name']+_0x33f6e5('0x209a'):''}),_0x498733(_0x1fe78d);})[_0x559feb('0x103c')](function(_0x20e597){const _0x28aa3f=_0x559feb;if(_0x20e597[_0x28aa3f('0x1e07')]&&_0x20e597['data'][_0x28aa3f('0x1d4a')]&&_0x20e597[_0x28aa3f('0x1e07')][_0x28aa3f('0x1d4a')][_0x28aa3f('0x543')]){_0x8fa65e['errors']=_0x20e597['data']['errors']||[{'message':_0x20e597['toString'](),'type':_0x28aa3f('0x1da7')}];for(let _0x4f6b3b=0x0;_0x4f6b3b<_0x20e597[_0x28aa3f('0x1e07')][_0x28aa3f('0x1d4a')][_0x28aa3f('0x543')];_0x4f6b3b+=0x1){_0x2e9ab9[_0x28aa3f('0x15aa')]({'title':_0x20e597[_0x28aa3f('0x1e07')][_0x28aa3f('0x1d4a')][_0x4f6b3b]['type'],'msg':_0x20e597[_0x28aa3f('0x1e07')][_0x28aa3f('0x1d4a')][_0x4f6b3b][_0x28aa3f('0x67f')]});}}else _0x2e9ab9[_0x28aa3f('0x15aa')]({'title':_0x20e597['status']?_0x28aa3f('0x137')+_0x20e597[_0x28aa3f('0x276f')]+'\x20-\x20'+_0x20e597[_0x28aa3f('0x2696')]:'api.cannedAnswer.save','msg':_0x20e597[_0x28aa3f('0x1e07')]?JSON[_0x28aa3f('0x100b')](_0x20e597[_0x28aa3f('0x1e07')][_0x28aa3f('0x67f')]):_0x20e597[_0x28aa3f('0x1b75')]()});});}function _0x3b11bb(){const _0x1a8998=_0x4fe4fd;_0x8fa65e[_0x1a8998('0x1d4a')]=[],_0x1dff3b['cannedAnswer'][_0x1a8998('0x1842')]({'id':_0x8fa65e[_0x1a8998('0x10dc')]['id']},_0x8fa65e[_0x1a8998('0x10dc')])['$promise'][_0x1a8998('0x173b')](function(_0x4c64ce){const _0x38cc83=_0x1a8998,_0x59abbc=_0x3c8d8a()[_0x38cc83('0x18ab')](_0x8fa65e[_0x38cc83('0xec0')],{'id':_0x4c64ce['id']});_0x59abbc&&_0x3c8d8a()[_0x38cc83('0x9ef')](_0x59abbc,_0x3c8d8a()[_0x38cc83('0x2114')](_0x4c64ce[_0x38cc83('0xf1f')](),_0x3c8d8a()[_0x38cc83('0x1d3e')](_0x59abbc))),_0x2e9ab9[_0x38cc83('0xdfe')]({'title':'WhatsappCannedAnswer\x20properly\x20saved!','msg':_0x8fa65e['whatsappCannedAnswer']['name']?_0x8fa65e[_0x38cc83('0x10dc')][_0x38cc83('0x10ad')]+_0x38cc83('0x2788'):''}),_0x498733(_0x4c64ce);})[_0x1a8998('0x103c')](function(_0x4ad409){const _0x5d7a03=_0x1a8998;if(_0x4ad409[_0x5d7a03('0x1e07')]&&_0x4ad409[_0x5d7a03('0x1e07')][_0x5d7a03('0x1d4a')]&&_0x4ad409[_0x5d7a03('0x1e07')][_0x5d7a03('0x1d4a')][_0x5d7a03('0x543')]){_0x8fa65e[_0x5d7a03('0x1d4a')]=_0x4ad409[_0x5d7a03('0x1e07')]['errors']||[{'message':_0x4ad409['toString'](),'type':_0x5d7a03('0x2786')}];for(let _0x4042e1=0x0;_0x4042e1<_0x4ad409[_0x5d7a03('0x1e07')][_0x5d7a03('0x1d4a')][_0x5d7a03('0x543')];_0x4042e1++){_0x2e9ab9[_0x5d7a03('0x15aa')]({'title':_0x4ad409['data'][_0x5d7a03('0x1d4a')][_0x4042e1][_0x5d7a03('0x1810')],'msg':_0x4ad409[_0x5d7a03('0x1e07')][_0x5d7a03('0x1d4a')][_0x4042e1]['message']});}}else _0x2e9ab9[_0x5d7a03('0x15aa')]({'title':_0x4ad409[_0x5d7a03('0x276f')]?'API:'+_0x4ad409[_0x5d7a03('0x276f')]+_0x5d7a03('0x160c')+_0x4ad409[_0x5d7a03('0x2696')]:_0x5d7a03('0x2786'),'msg':_0x4ad409[_0x5d7a03('0x1e07')]?JSON[_0x5d7a03('0x100b')](_0x4ad409[_0x5d7a03('0x1e07')][_0x5d7a03('0x67f')]):_0x4ad409[_0x5d7a03('0x1b75')]()});});}function _0xefd20a(_0x332423){const _0x6f8fc=_0x4fe4fd;_0x8fa65e[_0x6f8fc('0x1d4a')]=[];const _0xae2784=_0x5e37e2['confirm']()[_0x6f8fc('0x20d6')](_0x6f8fc('0x8ef'))[_0x6f8fc('0x732')](_0x6f8fc('0x257'))[_0x6f8fc('0x217')](_0x6f8fc('0x7c8'))['ok'](_0x6f8fc('0x2373'))['cancel']('Cancel')[_0x6f8fc('0x21de')](_0x332423);_0x5e37e2[_0x6f8fc('0x1cb7')](_0xae2784)[_0x6f8fc('0x173b')](function(){const _0x4a3624=_0x6f8fc;_0x1dff3b['cannedAnswer'][_0x4a3624('0x15e8')]({'id':_0x8fa65e[_0x4a3624('0x10dc')]['id']})['$promise'][_0x4a3624('0x173b')](function(){const _0x153e07=_0x4a3624;_0x3c8d8a()[_0x153e07('0x1a8b')](_0x8fa65e[_0x153e07('0xec0')],{'id':_0x8fa65e['whatsappCannedAnswer']['id']}),_0x2e9ab9[_0x153e07('0xdfe')]({'title':_0x153e07('0x149a'),'msg':(_0x8fa65e[_0x153e07('0x10dc')][_0x153e07('0x10ad')]||_0x153e07('0x10dc'))+_0x153e07('0x25d2')}),_0x498733(_0x8fa65e[_0x153e07('0x10dc')]);})['catch'](function(_0x1c4928){const _0x43441a=_0x4a3624;if(_0x1c4928[_0x43441a('0x1e07')]&&_0x1c4928[_0x43441a('0x1e07')][_0x43441a('0x1d4a')]&&_0x1c4928[_0x43441a('0x1e07')][_0x43441a('0x1d4a')][_0x43441a('0x543')]){_0x8fa65e['errors']=_0x1c4928[_0x43441a('0x1e07')]['errors']||[{'message':_0x1c4928['toString'](),'type':_0x43441a('0x1684')}];for(let _0x3d398e=0x0;_0x3d398e<_0x1c4928['data'][_0x43441a('0x1d4a')][_0x43441a('0x543')];_0x3d398e++){_0x2e9ab9[_0x43441a('0x15aa')]({'title':_0x1c4928[_0x43441a('0x1e07')]['errors'][_0x3d398e]['type'],'msg':_0x1c4928[_0x43441a('0x1e07')][_0x43441a('0x1d4a')][_0x3d398e][_0x43441a('0x67f')]});}}else _0x2e9ab9[_0x43441a('0x15aa')]({'title':_0x1c4928['status']?_0x43441a('0x137')+_0x1c4928[_0x43441a('0x276f')]+_0x43441a('0x160c')+_0x1c4928[_0x43441a('0x2696')]:_0x43441a('0x1684'),'msg':_0x1c4928['data']?JSON[_0x43441a('0x100b')](_0x1c4928[_0x43441a('0x1e07')][_0x43441a('0x67f')]):_0x1c4928[_0x43441a('0x67f')]||_0x1c4928['toString']()});});},function(){});}function _0x21aba0(_0x3e5c9d){return _0x3e5c9d===null?undefined:new Date(_0x3e5c9d);}function _0x498733(_0x5b5ef3){const _0x18b456=_0x4fe4fd;_0x5e37e2[_0x18b456('0x1cf4')](_0x5b5ef3);}}const _0x47cfa9=_0x4e8e52;_0x459397[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),'$translate','api','toasty',_0x566993('0x1600')];function _0x459397(_0x2e9abe,_0xd7ec20,_0x53f78a,_0x254d5e,_0x4cc617,_0x29991b,_0x4dfce0,_0x462b95,_0x1e6cc6,_0x2145f8,_0x525003){const _0x1bcd89=_0x566993,_0x273668=this;_0x273668[_0x1bcd89('0x155f')]=_0x525003[_0x1bcd89('0x14d4')](),_0x273668[_0x1bcd89('0x9c6')]={'count':0x0,'rows':[]},_0x273668[_0x1bcd89('0x451')]=[],_0x273668['crudPermissions'],_0x273668['levels']={'first':_0x1bcd89('0x1d1b'),'second':_0x1bcd89('0x1136'),'third':_0x1bcd89('0x1486')},_0x273668[_0x1bcd89('0xc49')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':_0x1bcd89('0x1769'),'limit':0xa,'page':0x1},_0x273668[_0x1bcd89('0xb9c')]=_0x34b223,_0x273668[_0x1bcd89('0x2051')]=_0x1e5ab1,_0x273668[_0x1bcd89('0xdfe')]=_0x518f8f,_0x273668[_0x1bcd89('0x251d')]=_0x1a53ec,_0x273668[_0x1bcd89('0xfb1')]=_0x1bd658,_0x273668[_0x1bcd89('0x1d5a')]=_0x2bc977,_0x273668['exportSelectedDispositions']=_0x326ca7,_0x273668['deleteSelectedDispositions']=_0xb8e163,_0x273668[_0x1bcd89('0x2307')]=_0x47fb97,_0x273668[_0x1bcd89('0x17fe')]=_0x305948;function _0x34b223(_0x21c426,_0x499bd6){const _0x566410=_0x1bcd89;_0x273668[_0x566410('0x234')]=_0x21c426||{},_0x273668['crudPermissions']=typeof _0x499bd6!==_0x566410('0x6e5')?_0x499bd6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x273668['query'][_0x566410('0x2720')]=_0x273668[_0x566410('0x234')]['id'],_0x273668['query']['id']=_0x273668[_0x566410('0x234')]['id'],_0x1a53ec();}function _0x1bd658(_0x3ef9c2,_0x4bbdd5){const _0x1cbb7e=_0x1bcd89;_0x4cc617['show']({'controller':_0x1cbb7e('0x19ff'),'controllerAs':'vm','templateUrl':_0x1db9b3,'parent':angular[_0x1cbb7e('0xb6d')](_0x29991b[_0x1cbb7e('0x1a5')]),'targetEvent':_0x3ef9c2,'clickOutsideToClose':!![],'locals':{'disposition':_0x4bbdd5,'dispositions':_0x273668[_0x1cbb7e('0x9c6')][_0x1cbb7e('0x6aa')],'model':{'id':_0x273668[_0x1cbb7e('0x234')]['id'],'field':_0x1cbb7e('0x2720')},'license':null,'setting':null,'crudPermissions':_0x273668[_0x1cbb7e('0x1dc1')]}})['then'](function(_0x507c7a){if(_0x507c7a)_0x1a53ec();});}function _0x1e5ab1(_0x16b5d4,_0x4acdb2){const _0x5284dc=_0x1bcd89,_0xdc5d6=_0x3c8d8a()[_0x5284dc('0x1ec')](_0x273668[_0x5284dc('0x9c6')][_0x5284dc('0x6aa')],[_0x5284dc('0x2644'),_0x16b5d4['id']]),_0x52922c=_0x4cc617[_0x5284dc('0x1d02')]()[_0x5284dc('0x20d6')](_0x462b95['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x5284dc('0x732')](_0x462b95[_0x5284dc('0x1467')](_0x5284dc('0x15d6')+(_0xdc5d6?'DISPOSITION_DELETE_MESSAGE_CHILDREN':'DISPOSITION_DELETE_MESSAGE'),{'name':_0x16b5d4[_0x5284dc('0x10ad')]}))[_0x5284dc('0x217')](_0x5284dc('0x843'))[_0x5284dc('0x21de')](_0x4acdb2)['ok']('OK')[_0x5284dc('0x1e1f')](_0x462b95[_0x5284dc('0x1467')](_0x5284dc('0x2224')));_0x4cc617['show'](_0x52922c)[_0x5284dc('0x173b')](function(){_0x2bc977(_0x16b5d4);});}function _0x518f8f(_0x30e28a){const _0x38f5c1=_0x1bcd89;_0x273668[_0x38f5c1('0x9c6')]=_0x30e28a||{'count':0x0,'rows':[]};}function _0x1a53ec(){const _0x2eee26=_0x1bcd89;_0x273668[_0x2eee26('0xc49')]['offset']=(_0x273668[_0x2eee26('0xc49')][_0x2eee26('0x182e')]-0x1)*_0x273668[_0x2eee26('0xc49')][_0x2eee26('0x3e')],_0x273668[_0x2eee26('0x2219')]=_0x1e6cc6['whatsappAccount'][_0x2eee26('0x251d')](_0x273668[_0x2eee26('0xc49')],_0x518f8f)[_0x2eee26('0x1964')];}function _0x2bc977(_0x268683){const _0x5dea08=_0x1bcd89;_0x1e6cc6[_0x5dea08('0x2766')][_0x5dea08('0x15e8')]({'id':_0x268683['id']})[_0x5dea08('0x1964')][_0x5dea08('0x173b')](function(){const _0x5f1b8b=_0x5dea08;_0x1a53ec(),_0x2145f8['success']({'title':_0x462b95[_0x5f1b8b('0x1467')](_0x5f1b8b('0x34b'))});})[_0x5dea08('0x103c')](function(_0x29d64f){const _0x43e8eb=_0x5dea08;if(_0x29d64f['data']&&_0x29d64f[_0x43e8eb('0x1e07')]['errors']&&_0x29d64f['data'][_0x43e8eb('0x1d4a')][_0x43e8eb('0x543')]){_0x273668[_0x43e8eb('0x1d4a')]=_0x29d64f['data'][_0x43e8eb('0x1d4a')]||[{'message':_0x29d64f[_0x43e8eb('0x1b75')](),'type':_0x43e8eb('0x6af')}];for(let _0x4398da=0x0;_0x4398da<_0x29d64f[_0x43e8eb('0x1e07')]['errors']['length'];_0x4398da++){_0x2145f8['error']({'title':_0x29d64f[_0x43e8eb('0x1e07')][_0x43e8eb('0x1d4a')][_0x4398da][_0x43e8eb('0x1810')],'msg':_0x29d64f[_0x43e8eb('0x1e07')]['errors'][_0x4398da][_0x43e8eb('0x67f')]});}}else _0x2145f8['error']({'title':_0x29d64f[_0x43e8eb('0x276f')]?_0x43e8eb('0x137')+_0x29d64f[_0x43e8eb('0x276f')]+_0x43e8eb('0x160c')+_0x29d64f[_0x43e8eb('0x2696')]:'SYSTEM:DELETEdisposition','msg':_0x29d64f[_0x43e8eb('0x1e07')]?JSON[_0x43e8eb('0x100b')](_0x29d64f[_0x43e8eb('0x1e07')][_0x43e8eb('0x67f')]):_0x29d64f[_0x43e8eb('0x67f')]||_0x29d64f['toString']()});});}function _0x326ca7(){const _0x4151fe=_0x1bcd89,_0x4dd6be=angular[_0x4151fe('0x2e3')](_0x273668[_0x4151fe('0x451')]);return _0x273668[_0x4151fe('0x451')]=[],_0x4dd6be;}function _0xb8e163(_0x58fede){const _0x171753=_0x1bcd89,_0x220a63=_0x4cc617[_0x171753('0x1d02')]()['title'](_0x462b95[_0x171753('0x1467')](_0x171753('0xa25')))[_0x171753('0x732')](_0x462b95[_0x171753('0x1467')](_0x171753('0x25a'),{'total':_0x273668[_0x171753('0x451')][_0x171753('0x543')]}))['ariaLabel'](_0x171753('0x6b8'))[_0x171753('0x21de')](_0x58fede)['ok']('OK')[_0x171753('0x1e1f')](_0x462b95[_0x171753('0x1467')](_0x171753('0x2224')));_0x4cc617[_0x171753('0x1cb7')](_0x220a63)[_0x171753('0x173b')](function(){const _0x16fa74=_0x171753;_0x273668[_0x16fa74('0x451')]['forEach'](function(_0x594eeb){_0x2bc977(_0x594eeb);}),_0x273668[_0x16fa74('0x451')]=[];});}function _0x47fb97(){const _0x21b0dd=_0x1bcd89;_0x273668[_0x21b0dd('0x451')]=[];}function _0x305948(){const _0x444b42=_0x1bcd89;_0x273668[_0x444b42('0x451')]=_0x273668[_0x444b42('0x9c6')]['rows'];}let _0x5dd8b4=!![],_0xa5a161=0x1;_0x2e9abe[_0x1bcd89('0x1bdb')](_0x1bcd89('0x5b8'),function(_0x8fc7cb,_0x2821e2){const _0x3a673f=_0x1bcd89;_0x5dd8b4?_0x4dfce0(function(){_0x5dd8b4=![];}):(!_0x2821e2&&(_0xa5a161=_0x273668[_0x3a673f('0xc49')]['page']),_0x8fc7cb!==_0x2821e2&&(_0x273668[_0x3a673f('0xc49')][_0x3a673f('0x182e')]=0x1),!_0x8fc7cb&&(_0x273668[_0x3a673f('0xc49')]['page']=_0xa5a161),_0x1a53ec());});}const _0x28b694=_0x459397,_0x24bc02=_0x21a6a1['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog.html';_0x74fb0c[_0x566993('0x17bb')]=[_0x566993('0x66f'),'$window',_0x566993('0x2276'),_0x566993('0xd24'),_0x566993('0x1fe5'),_0x566993('0x1b82'),'$timeout','$translate',_0x566993('0x2154'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),_0x566993('0x1f9'),'toasty','Auth','license',_0x566993('0x251')];function _0x74fb0c(_0x184c9a,_0x38fda6,_0x262cb7,_0x264b48,_0x105dd5,_0x5dc18e,_0x219afa,_0x24fbc9,_0x225ba6,_0x55d121,_0x88a9f2,_0x14ffe8,_0x587e80,_0xd55e35,_0x303337,_0x5ea75c,_0x1896c9){const _0x5afb15=_0x566993,_0x46c6a5=this;_0x46c6a5[_0x5afb15('0x1a29')]=_0x5ea75c,_0x46c6a5[_0x5afb15('0x251')]=_0x1896c9,_0x46c6a5[_0x5afb15('0x155f')]=_0x303337[_0x5afb15('0x14d4')](),_0x46c6a5[_0x5afb15('0x2154')]=_0x225ba6||{'count':0x0,'rows':[]},_0x46c6a5[_0x5afb15('0x257b')]=_0x55d121,_0x46c6a5[_0x5afb15('0x170e')]=_0x88a9f2&&_0x88a9f2[_0x5afb15('0x1a2f')]==0x1?_0x88a9f2[_0x5afb15('0x6aa')][0x0]:null,_0x46c6a5[_0x5afb15('0x1dc1')]=_0x303337['parseCrudPermissions'](_0x46c6a5[_0x5afb15('0x170e')]?_0x46c6a5[_0x5afb15('0x170e')]['crudPermissions']:null),_0x46c6a5['table']=_0x5afb15('0x2154'),_0x46c6a5[_0x5afb15('0x14d6')]='',_0x46c6a5['listOrderAsc']=null,_0x46c6a5[_0x5afb15('0x22f6')]=[],_0x46c6a5['query']={'fields':_0x5afb15('0x1bcf'),'sort':_0x5afb15('0x1769'),'limit':0xa,'page':0x1},_0x46c6a5['arraytype']=_0x3c8d8a()[_0x5afb15('0x128')]([{'option':_0x5afb15('0x767'),'value':_0x5afb15('0x1eed')}],function(_0x4e39e5){const _0x2c0656=_0x5afb15;return _0x3c8d8a()['replace'](_0x4e39e5[_0x2c0656('0xa7b')],new RegExp('\x27','g'),'');}),_0x46c6a5[_0x5afb15('0x222e')]=_0x28ac96,_0x46c6a5['interactionsgoto']=_0x36d51d,_0x46c6a5[_0x5afb15('0x2118')]=_0x176aa2,_0x46c6a5[_0x5afb15('0x1a20')]=_0x1d1575,_0x46c6a5[_0x5afb15('0xdfe')]=_0x24d0ad,_0x46c6a5[_0x5afb15('0xb90')]=_0x6c108d,_0x46c6a5[_0x5afb15('0x24b6')]=_0x430192,_0x46c6a5['deleteWhatsappAccount']=_0x39ad07,_0x46c6a5[_0x5afb15('0x1ca')]=_0x43f994,_0x46c6a5[_0x5afb15('0x1411')]=_0x429002,_0x46c6a5[_0x5afb15('0xbae')]=_0x59f6d4,_0x46c6a5[_0x5afb15('0x16f5')]=_0xfb276d,_0x303337['hasRole'](_0x5afb15('0x79b'))?_0x14ffe8['cmList'][_0x5afb15('0x1d97')]({'fields':'id,name','sort':'name'})[_0x5afb15('0x1964')]['then'](function(_0x4264b9){const _0x1e1008=_0x5afb15;_0x46c6a5[_0x1e1008('0x9e8')]=_0x4264b9[_0x1e1008('0x6aa')]||[];})[_0x5afb15('0x103c')](function(_0x257cd0){const _0x520436=_0x5afb15;_0xd55e35[_0x520436('0x15aa')]({'title':_0x257cd0[_0x520436('0x276f')]?'API:'+_0x257cd0[_0x520436('0x276f')]+_0x520436('0x160c')+_0x257cd0['statusText']:'SYSTEM:GET_LISTS','msg':_0x257cd0[_0x520436('0x1e07')]?JSON[_0x520436('0x100b')](_0x257cd0[_0x520436('0x1e07')]):_0x257cd0['toString']()});}):_0x14ffe8[_0x5afb15('0xbb3')][_0x5afb15('0x1d97')]({'fields':_0x5afb15('0xd52'),'sort':'name'})[_0x5afb15('0x1964')][_0x5afb15('0x173b')](function(_0xe0f784){const _0x5d5d20=_0x5afb15;_0x46c6a5[_0x5d5d20('0x9e8')]=_0xe0f784[_0x5d5d20('0x6aa')]||[];})['then'](function(){const _0x32480c=_0x5afb15;return _0x14ffe8['userProfileSection'][_0x32480c('0x1d97')]({'userProfileId':_0x46c6a5[_0x32480c('0x155f')][_0x32480c('0x1946')],'sectionId':0x12d})['$promise'];})[_0x5afb15('0x173b')](function(_0x13b9c7){const _0x5ea820=_0x5afb15,_0x439506=_0x13b9c7&&_0x13b9c7[_0x5ea820('0x6aa')]?_0x13b9c7[_0x5ea820('0x6aa')][0x0]:null;if(!_0x439506){const _0x5bed08=[];let _0x562fcb=null;_0x46c6a5['whatsappAccount']&&(_0x562fcb=_0x3c8d8a()[_0x5ea820('0x18ab')](_0x46c6a5[_0x5ea820('0x9e8')],{'id':Number(_0x46c6a5[_0x5ea820('0x234')][_0x5ea820('0xef2')])}));for(let _0xde0a8=0x0;_0xde0a8<_0x46c6a5['lists'][_0x5ea820('0x543')];_0xde0a8++){_0x562fcb&&_0x46c6a5['lists'][_0xde0a8]['id']===_0x562fcb['id']&&(_0x46c6a5[_0x5ea820('0x9e8')][_0xde0a8][_0x5ea820('0x268e')]=![],_0x5bed08[_0x5ea820('0x18bb')](_0x46c6a5[_0x5ea820('0x9e8')][_0xde0a8]));}_0x46c6a5[_0x5ea820('0x9e8')]=_0x5bed08;}else{if(!_0x439506[_0x5ea820('0x273e')])return _0x14ffe8[_0x5ea820('0xda9')]['get']({'sectionId':_0x439506['id']})['$promise'][_0x5ea820('0x173b')](function(_0x62ddba){const _0x435a9e=_0x5ea820,_0x56b593=_0x3c8d8a()['map'](_0x62ddba[_0x435a9e('0x6aa')],function(_0x2c43e1){const _0x521d9e=_0x435a9e;return _0x3c8d8a()[_0x521d9e('0x18ab')](_0x46c6a5[_0x521d9e('0x9e8')],{'id':_0x2c43e1[_0x521d9e('0x1ce0')]});});let _0x15fdd1=null;_0x46c6a5['whatsappAccount']&&(_0x15fdd1=_0x3c8d8a()[_0x435a9e('0x18ab')](_0x46c6a5['lists'],{'id':Number(_0x46c6a5[_0x435a9e('0x234')][_0x435a9e('0xef2')])}));if(_0x15fdd1&&!_0x3c8d8a()['some'](_0x56b593,['id',_0x15fdd1['id']])){const _0x8356ff=_0x3c8d8a()[_0x435a9e('0x18ab')](_0x46c6a5[_0x435a9e('0x9e8')],{'id':_0x15fdd1['id']});_0x8356ff[_0x435a9e('0x268e')]=![],_0x56b593[_0x435a9e('0x18bb')](_0x8356ff);}_0x46c6a5[_0x435a9e('0x9e8')]=_0x56b593;});}})[_0x5afb15('0x103c')](function(_0x50d17c){const _0x41a70f=_0x5afb15;_0xd55e35[_0x41a70f('0x15aa')]({'title':_0x50d17c['status']?_0x41a70f('0x137')+_0x50d17c[_0x41a70f('0x276f')]+'\x20-\x20'+_0x50d17c[_0x41a70f('0x2696')]:_0x41a70f('0x1292'),'msg':_0x50d17c[_0x41a70f('0x1e07')]?JSON[_0x41a70f('0x100b')](_0x50d17c[_0x41a70f('0x1e07')]):_0x50d17c['toString']()});}),_0x303337['hasRole'](_0x5afb15('0x79b'))?_0x14ffe8[_0x5afb15('0x1751')][_0x5afb15('0x1d97')]({'fields':_0x5afb15('0x901'),'sort':_0x5afb15('0x10ad'),'nolimit':_0x5afb15('0x799')})['$promise'][_0x5afb15('0x173b')](function(_0x11cd09){const _0x212a85=_0x5afb15;_0x46c6a5[_0x212a85('0x1d66')]=_0x11cd09[_0x212a85('0x6aa')]||[];})['catch'](function(_0x21872e){const _0x276ae4=_0x5afb15;_0xd55e35[_0x276ae4('0x15aa')]({'title':_0x21872e[_0x276ae4('0x276f')]?'API:'+_0x21872e[_0x276ae4('0x276f')]+'\x20-\x20'+_0x21872e['statusText']:_0x276ae4('0xe0f'),'msg':_0x21872e[_0x276ae4('0x1e07')]?JSON[_0x276ae4('0x100b')](_0x21872e[_0x276ae4('0x1e07')]):_0x21872e[_0x276ae4('0x1b75')]()});}):_0x14ffe8['pause']['get']({'fields':'name,id','sort':_0x5afb15('0x10ad'),'nolimit':_0x5afb15('0x799')})[_0x5afb15('0x1964')][_0x5afb15('0x173b')](function(_0x2c285b){const _0x53f712=_0x5afb15;_0x46c6a5[_0x53f712('0x1d66')]=_0x2c285b[_0x53f712('0x6aa')]||[];})[_0x5afb15('0x173b')](function(){const _0x4b776f=_0x5afb15;return _0x14ffe8[_0x4b776f('0x170e')][_0x4b776f('0x1d97')]({'userProfileId':_0x46c6a5[_0x4b776f('0x155f')][_0x4b776f('0x1946')],'sectionId':0x3ed})[_0x4b776f('0x1964')];})[_0x5afb15('0x173b')](function(_0x561b36){const _0x3870ce=_0x5afb15,_0x59c514=_0x561b36&&_0x561b36[_0x3870ce('0x6aa')]?_0x561b36[_0x3870ce('0x6aa')][0x0]:null;if(!_0x59c514)_0x46c6a5[_0x3870ce('0x1d66')]=[];else{if(!_0x59c514[_0x3870ce('0x273e')])return _0x14ffe8[_0x3870ce('0xda9')][_0x3870ce('0x1d97')]({'sectionId':_0x59c514['id']})[_0x3870ce('0x1964')][_0x3870ce('0x173b')](function(_0x489f9b){const _0x4619ed=_0x3870ce,_0x4326fc=_0x3c8d8a()[_0x4619ed('0x8a2')](_0x489f9b['rows'],function(_0x40ea91){const _0x323a1a=_0x4619ed;return _0x3c8d8a()['find'](_0x46c6a5[_0x323a1a('0x1d66')],{'id':_0x40ea91['resourceId']});});_0x46c6a5['pauses'][_0x4619ed('0xa6a')](function(_0x548282){const _0x373882=_0x4619ed;!_0x3c8d8a()[_0x373882('0x1ec')](_0x4326fc,['id',_0x548282['id']])&&(_0x548282[_0x373882('0x268e')]=![]),_0x4326fc[_0x373882('0x18bb')](_0x548282);}),_0x46c6a5[_0x4619ed('0x1d66')]=_0x4326fc;});}})[_0x5afb15('0x103c')](function(_0x5cbb16){const _0x1f7f90=_0x5afb15;_0xd55e35[_0x1f7f90('0x15aa')]({'title':_0x5cbb16['status']?_0x1f7f90('0x137')+_0x5cbb16[_0x1f7f90('0x276f')]+_0x1f7f90('0x160c')+_0x5cbb16['statusText']:_0x1f7f90('0x2595'),'msg':_0x5cbb16[_0x1f7f90('0x1e07')]?JSON[_0x1f7f90('0x100b')](_0x5cbb16['data']):_0x5cbb16[_0x1f7f90('0x1b75')]()});});function _0x28ac96(_0x41e4a6){const _0x5c6cbe=_0x5afb15;_0x262cb7['go'](_0x5c6cbe('0xaef'),{'id':_0x41e4a6['id'],'whatsappAccount':_0x41e4a6,'crudPermissions':_0x46c6a5[_0x5c6cbe('0x1dc1')]});}function _0x36d51d(_0x157952){const _0x136e62=_0x5afb15;_0x262cb7['go'](_0x136e62('0xaef'),{'id':_0x157952['id'],'tab':0x5});}function _0x176aa2(_0x82be81,_0xda68bd){const _0x18114c=_0x5afb15;_0x105dd5[_0x18114c('0x1cb7')]({'controller':_0x18114c('0x18cf'),'controllerAs':'vm','templateUrl':_0x73a01d,'parent':angular[_0x18114c('0xb6d')](_0x5dc18e[_0x18114c('0x1a5')]),'targetEvent':_0xda68bd,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x82be81,'whatsappAccounts':_0x46c6a5[_0x18114c('0x2154')]?_0x46c6a5['whatsappAccounts']['rows']:[],'crudPermissions':_0x46c6a5[_0x18114c('0x1dc1')],'realtime':![]}});}function _0x1d1575(_0x3eb7ac,_0x5bd554){const _0x3e4d21=_0x5afb15,_0x169a45=_0x105dd5['confirm']()[_0x3e4d21('0x20d6')](_0x3e4d21('0x5bb')+_0x3c8d8a()[_0x3e4d21('0x10e')](_0x3e4d21('0x234'))+'?')[_0x3e4d21('0xf8b')](_0x3e4d21('0x15b9')+(_0x3eb7ac[_0x3e4d21('0x10ad')]||_0x3e4d21('0x234'))+_0x3e4d21('0x24be')+_0x3e4d21('0xd23'))[_0x3e4d21('0x217')](_0x3e4d21('0x1d37'))[_0x3e4d21('0x21de')](_0x5bd554)['ok']('OK')[_0x3e4d21('0x1e1f')](_0x3e4d21('0x468'));_0x105dd5[_0x3e4d21('0x1cb7')](_0x169a45)[_0x3e4d21('0x173b')](function(){_0x39ad07(_0x3eb7ac);},function(){const _0x20d152=_0x3e4d21;console[_0x20d152('0xe37')](_0x20d152('0x468'));});}let _0x4588ee=!![],_0x117816=0x1;_0x184c9a[_0x5afb15('0x1bdb')](_0x5afb15('0x157b'),function(_0x239425,_0x6c3d5b){const _0x2f2fb6=_0x5afb15;_0x4588ee?_0x219afa(function(){_0x4588ee=![];}):(!_0x6c3d5b&&(_0x117816=_0x46c6a5[_0x2f2fb6('0xc49')][_0x2f2fb6('0x182e')]),_0x239425!==_0x6c3d5b&&(_0x46c6a5['query']['page']=0x1),!_0x239425&&(_0x46c6a5[_0x2f2fb6('0xc49')][_0x2f2fb6('0x182e')]=_0x117816),_0x46c6a5[_0x2f2fb6('0xb90')]());});function _0x24d0ad(_0x1064d2){const _0x57b274=_0x5afb15;_0x46c6a5[_0x57b274('0x2154')]=_0x1064d2||{'count':0x0,'rows':[]};}function _0x6c108d(){const _0x1a3f91=_0x5afb15;_0x46c6a5[_0x1a3f91('0xc49')]['offset']=(_0x46c6a5[_0x1a3f91('0xc49')]['page']-0x1)*_0x46c6a5[_0x1a3f91('0xc49')][_0x1a3f91('0x3e')],_0x303337['hasRole']('admin')?_0x46c6a5[_0x1a3f91('0x2219')]=_0x14ffe8['whatsappAccount']['get'](_0x46c6a5['query'],_0x24d0ad)[_0x1a3f91('0x1964')]:(_0x46c6a5['query']['id']=_0x46c6a5[_0x1a3f91('0x257b')]['id'],_0x46c6a5[_0x1a3f91('0xc49')][_0x1a3f91('0x17c9')]='WhatsappAccounts',_0x46c6a5[_0x1a3f91('0x2219')]=_0x14ffe8[_0x1a3f91('0x257b')][_0x1a3f91('0x135b')](_0x46c6a5[_0x1a3f91('0xc49')],_0x24d0ad)[_0x1a3f91('0x1964')]);}function _0x430192(_0xc96258,_0x39b9af){const _0x217a41=_0x5afb15;_0x105dd5['show']({'controller':'CreateOrEditWhatsappAccountDialogController','controllerAs':'vm','templateUrl':_0x24bc02,'parent':angular[_0x217a41('0xb6d')](_0x5dc18e[_0x217a41('0x1a5')]),'targetEvent':_0xc96258,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x39b9af,'whatsappAccounts':_0x46c6a5[_0x217a41('0x2154')]['rows'],'license':_0x46c6a5[_0x217a41('0x1a29')],'setting':_0x46c6a5[_0x217a41('0x251')],'crudPermissions':_0x46c6a5[_0x217a41('0x1dc1')]}});}function _0x39ad07(_0x4799d1){const _0x1cab92=_0x5afb15;_0x14ffe8[_0x1cab92('0x234')][_0x1cab92('0x15e8')]({'id':_0x4799d1['id']})[_0x1cab92('0x1964')][_0x1cab92('0x173b')](function(){const _0x3feb3a=_0x1cab92;_0x3c8d8a()[_0x3feb3a('0x1a8b')](_0x46c6a5[_0x3feb3a('0x2154')][_0x3feb3a('0x6aa')],{'id':_0x4799d1['id']}),_0x46c6a5[_0x3feb3a('0x2154')][_0x3feb3a('0x1a2f')]-=0x1,!_0x46c6a5[_0x3feb3a('0x2154')]['rows'][_0x3feb3a('0x543')]&&_0x46c6a5[_0x3feb3a('0xb90')](),_0xd55e35[_0x3feb3a('0xdfe')]({'title':_0x3c8d8a()[_0x3feb3a('0x10e')](_0x3feb3a('0xc84'))+_0x3feb3a('0x1c5e'),'msg':_0x4799d1[_0x3feb3a('0x10ad')]?_0x4799d1[_0x3feb3a('0x10ad')]+_0x3feb3a('0x25d2'):''});})[_0x1cab92('0x103c')](function(_0x5a84b1){const _0x128c49=_0x1cab92;if(_0x5a84b1['data']&&_0x5a84b1[_0x128c49('0x1e07')][_0x128c49('0x1d4a')]&&_0x5a84b1[_0x128c49('0x1e07')][_0x128c49('0x1d4a')][_0x128c49('0x543')]){_0x46c6a5[_0x128c49('0x1d4a')]=_0x5a84b1[_0x128c49('0x1e07')][_0x128c49('0x1d4a')]||[{'message':_0x5a84b1[_0x128c49('0x1b75')](),'type':_0x128c49('0x168b')}];for(let _0x2f7cd9=0x0;_0x2f7cd9<_0x5a84b1[_0x128c49('0x1e07')][_0x128c49('0x1d4a')][_0x128c49('0x543')];_0x2f7cd9++){_0xd55e35['error']({'title':_0x5a84b1[_0x128c49('0x1e07')][_0x128c49('0x1d4a')][_0x2f7cd9][_0x128c49('0x1810')],'msg':_0x5a84b1[_0x128c49('0x1e07')][_0x128c49('0x1d4a')][_0x2f7cd9]['message']});}}else _0xd55e35[_0x128c49('0x15aa')]({'title':_0x5a84b1[_0x128c49('0x276f')]?'API:'+_0x5a84b1['status']+_0x128c49('0x160c')+_0x5a84b1[_0x128c49('0x2696')]:_0x128c49('0x168b'),'msg':_0x5a84b1['data']?JSON[_0x128c49('0x100b')](_0x5a84b1[_0x128c49('0x1e07')][_0x128c49('0x67f')]):_0x5a84b1['message']||_0x5a84b1[_0x128c49('0x1b75')]()});});}function _0x43f994(){const _0x70621d=_0x5afb15,_0x16ab4a=angular[_0x70621d('0x2e3')](_0x46c6a5[_0x70621d('0x22f6')]);return _0x46c6a5[_0x70621d('0x22f6')]=[],_0x16ab4a;}function _0x429002(_0x29c039){const _0x4834e5=_0x5afb15,_0x242336=_0x105dd5[_0x4834e5('0x1d02')]()[_0x4834e5('0x20d6')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappAccounts?')['htmlContent'](''+_0x46c6a5[_0x4834e5('0x22f6')]['length']+_0x4834e5('0xcb4')+_0x4834e5('0xd23'))[_0x4834e5('0x217')](_0x4834e5('0x12d3'))['targetEvent'](_0x29c039)['ok']('OK')[_0x4834e5('0x1e1f')]('CANCEL');_0x105dd5[_0x4834e5('0x1cb7')](_0x242336)[_0x4834e5('0x173b')](function(){const _0x12975a=_0x4834e5;_0x46c6a5[_0x12975a('0x22f6')][_0x12975a('0xa6a')](function(_0xb8f8b7){_0x39ad07(_0xb8f8b7);}),_0x46c6a5[_0x12975a('0x22f6')]=[];});}function _0x59f6d4(){_0x46c6a5['selectedWhatsappAccounts']=[];}function _0xfb276d(){const _0x2ddc60=_0x5afb15;_0x46c6a5[_0x2ddc60('0x22f6')]=_0x46c6a5[_0x2ddc60('0x2154')][_0x2ddc60('0x6aa')];}}const _0x2cf0c4=_0x74fb0c;_0x2f0852[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x2276'),_0x566993('0x19df'),_0x566993('0x1fe5'),'$q',_0x566993('0x638'),_0x566993('0x1558'),_0x566993('0xbbf'),_0x566993('0x9cb'),'api',_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251'),_0x566993('0x1dc1')];function _0x2f0852(_0x2b1132,_0x235694,_0x2e3492,_0x2c3992,_0x37c635,_0x5054ef,_0x39b99f,_0x575ce3,_0x62d31b,_0x2d6b74,_0x390e13,_0xec6fa1,_0x4b7eea,_0x4ff946){const _0x539354=_0x566993,_0x2930cb=this;_0x2930cb['currentUser']=_0x390e13[_0x539354('0x14d4')](),_0x2930cb[_0x539354('0x1d4a')]=[],_0x2930cb['setting']=_0x4b7eea,_0x2930cb[_0x539354('0x1a29')]=_0xec6fa1,_0x2930cb[_0x539354('0x1dc1')]=_0x4ff946,_0x2930cb[_0x539354('0xb0')]={},_0x2930cb[_0x539354('0x644')]=_0x2930cb[_0x539354('0x251')]&&_0x2930cb['setting'][_0x539354('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2930cb[_0x539354('0x20d6')]='WHATSAPP.EDIT_WHATSAPPQUEUE',_0x2930cb[_0x539354('0x9cb')]=angular['copy'](_0x62d31b),_0x2930cb[_0x539354('0xbbf')]=_0x575ce3,_0x2930cb['newWhatsappQueue']=![];!_0x2930cb[_0x539354('0x9cb')]&&(_0x2930cb[_0x539354('0x9cb')]={'strategy':_0x539354('0x61'),'timeout':0xa},_0x2930cb['title']='WHATSAPP.NEW_WHATSAPPQUEUE',_0x2930cb[_0x539354('0xf04')]=!![]);_0x2930cb[_0x539354('0xd9c')]=_0x17984a,_0x2930cb[_0x539354('0x18d0')]=_0x3f6580,_0x2930cb[_0x539354('0x1dea')]=_0x41fada,_0x2930cb[_0x539354('0x11ae')]=_0x2ca145,_0x2930cb[_0x539354('0x18e2')]=_0x4737fd;function _0x17984a(){const _0x1f0469=_0x539354;_0x2930cb[_0x1f0469('0x1d4a')]=[],_0x2d6b74[_0x1f0469('0x9cb')][_0x1f0469('0x1195')](_0x2930cb['whatsappQueue'])['$promise'][_0x1f0469('0x173b')](function(_0x260085){const _0x8a6d30=_0x1f0469;_0x2930cb[_0x8a6d30('0xbbf')][_0x8a6d30('0x1377')](_0x260085['toJSON']()),_0x39b99f[_0x8a6d30('0xdfe')]({'title':_0x8a6d30('0x2296'),'msg':_0x2930cb['whatsappQueue'][_0x8a6d30('0x10ad')]?_0x2930cb[_0x8a6d30('0x9cb')][_0x8a6d30('0x10ad')]+_0x8a6d30('0x209a'):''}),_0x4737fd(_0x260085);})[_0x1f0469('0x103c')](function(_0x1c80ae){const _0x4cfd7f=_0x1f0469;if(_0x1c80ae[_0x4cfd7f('0x1e07')]&&_0x1c80ae[_0x4cfd7f('0x1e07')][_0x4cfd7f('0x1d4a')]&&_0x1c80ae[_0x4cfd7f('0x1e07')]['errors'][_0x4cfd7f('0x543')]){_0x2930cb['errors']=_0x1c80ae[_0x4cfd7f('0x1e07')][_0x4cfd7f('0x1d4a')]||[{'message':_0x1c80ae[_0x4cfd7f('0x1b75')](),'type':_0x4cfd7f('0x639')}];for(let _0x4238eb=0x0;_0x4238eb<_0x1c80ae[_0x4cfd7f('0x1e07')]['errors'][_0x4cfd7f('0x543')];_0x4238eb+=0x1){_0x39b99f[_0x4cfd7f('0x15aa')]({'title':_0x1c80ae[_0x4cfd7f('0x1e07')]['errors'][_0x4238eb]['type'],'msg':_0x1c80ae[_0x4cfd7f('0x1e07')][_0x4cfd7f('0x1d4a')][_0x4238eb][_0x4cfd7f('0x67f')]});}}else _0x39b99f[_0x4cfd7f('0x15aa')]({'title':_0x1c80ae[_0x4cfd7f('0x276f')]?'API:'+_0x1c80ae[_0x4cfd7f('0x276f')]+_0x4cfd7f('0x160c')+_0x1c80ae['statusText']:_0x4cfd7f('0x639'),'msg':_0x1c80ae[_0x4cfd7f('0x1e07')]?JSON[_0x4cfd7f('0x100b')](_0x1c80ae[_0x4cfd7f('0x1e07')][_0x4cfd7f('0x67f')]):_0x1c80ae[_0x4cfd7f('0x1b75')]()});});}function _0x3f6580(){const _0x169ad2=_0x539354;_0x2930cb['errors']=[],_0x2d6b74['whatsappQueue'][_0x169ad2('0x1842')]({'id':_0x2930cb[_0x169ad2('0x9cb')]['id']},_0x2930cb[_0x169ad2('0x9cb')])['$promise'][_0x169ad2('0x173b')](function(_0xcfdc23){const _0x3dd858=_0x169ad2,_0x17a169=_0x3c8d8a()[_0x3dd858('0x18ab')](_0x2930cb[_0x3dd858('0xbbf')],{'id':_0xcfdc23['id']});_0x17a169&&_0x3c8d8a()[_0x3dd858('0x9ef')](_0x17a169,_0x3c8d8a()['pick'](_0xcfdc23[_0x3dd858('0xf1f')](),_0x3c8d8a()[_0x3dd858('0x1d3e')](_0x17a169))),_0x39b99f[_0x3dd858('0xdfe')]({'title':_0x3dd858('0x1bf4'),'msg':_0x2930cb[_0x3dd858('0x9cb')][_0x3dd858('0x10ad')]?_0x2930cb[_0x3dd858('0x9cb')][_0x3dd858('0x10ad')]+'\x20has\x20been\x20saved!':''}),_0x4737fd(_0xcfdc23);})[_0x169ad2('0x103c')](function(_0x2f139d){const _0x574f3b=_0x169ad2;if(_0x2f139d[_0x574f3b('0x1e07')]&&_0x2f139d['data'][_0x574f3b('0x1d4a')]&&_0x2f139d[_0x574f3b('0x1e07')][_0x574f3b('0x1d4a')][_0x574f3b('0x543')]){_0x2930cb[_0x574f3b('0x1d4a')]=_0x2f139d[_0x574f3b('0x1e07')][_0x574f3b('0x1d4a')]||[{'message':_0x2f139d['toString'](),'type':_0x574f3b('0x43f')}];for(let _0x2d902f=0x0;_0x2d902f<_0x2f139d[_0x574f3b('0x1e07')][_0x574f3b('0x1d4a')][_0x574f3b('0x543')];_0x2d902f++){_0x39b99f[_0x574f3b('0x15aa')]({'title':_0x2f139d[_0x574f3b('0x1e07')][_0x574f3b('0x1d4a')][_0x2d902f]['type'],'msg':_0x2f139d[_0x574f3b('0x1e07')][_0x574f3b('0x1d4a')][_0x2d902f][_0x574f3b('0x67f')]});}}else _0x39b99f[_0x574f3b('0x15aa')]({'title':_0x2f139d[_0x574f3b('0x276f')]?_0x574f3b('0x137')+_0x2f139d[_0x574f3b('0x276f')]+_0x574f3b('0x160c')+_0x2f139d[_0x574f3b('0x2696')]:'api.whatsappQueue.update','msg':_0x2f139d[_0x574f3b('0x1e07')]?JSON['stringify'](_0x2f139d[_0x574f3b('0x1e07')][_0x574f3b('0x67f')]):_0x2f139d['toString']()});});}function _0x41fada(_0x5c7971){const _0x55e548=_0x539354;_0x2930cb[_0x55e548('0x1d4a')]=[];const _0x56ff6c=_0x2c3992[_0x55e548('0x1d02')]()['title'](_0x55e548('0x8ef'))[_0x55e548('0x732')](_0x55e548('0xa18'))[_0x55e548('0x217')](_0x55e548('0x15f3'))['ok'](_0x55e548('0x2373'))[_0x55e548('0x1e1f')]('Cancel')[_0x55e548('0x21de')](_0x5c7971);_0x2c3992[_0x55e548('0x1cb7')](_0x56ff6c)[_0x55e548('0x173b')](function(){const _0x49f0ae=_0x55e548;_0x2d6b74['whatsappQueue'][_0x49f0ae('0x15e8')]({'id':_0x2930cb[_0x49f0ae('0x9cb')]['id']})[_0x49f0ae('0x1964')]['then'](function(){const _0x10c362=_0x49f0ae;_0x3c8d8a()['remove'](_0x2930cb[_0x10c362('0xbbf')],{'id':_0x2930cb['whatsappQueue']['id']}),_0x39b99f['success']({'title':'WhatsappQueue\x20properly\x20deleted!','msg':(_0x2930cb['whatsappQueue']['name']||'whatsappQueue')+'\x20has\x20been\x20deleted!'}),_0x4737fd(_0x2930cb[_0x10c362('0x9cb')]);})['catch'](function(_0x2eabfe){const _0x545102=_0x49f0ae;if(_0x2eabfe[_0x545102('0x1e07')]&&_0x2eabfe[_0x545102('0x1e07')][_0x545102('0x1d4a')]&&_0x2eabfe['data']['errors'][_0x545102('0x543')]){_0x2930cb[_0x545102('0x1d4a')]=_0x2eabfe[_0x545102('0x1e07')][_0x545102('0x1d4a')]||[{'message':_0x2eabfe[_0x545102('0x1b75')](),'type':'api.whatsappQueue.delete'}];for(let _0x469c26=0x0;_0x469c26<_0x2eabfe[_0x545102('0x1e07')]['errors'][_0x545102('0x543')];_0x469c26++){_0x39b99f[_0x545102('0x15aa')]({'title':_0x2eabfe['data'][_0x545102('0x1d4a')][_0x469c26][_0x545102('0x1810')],'msg':_0x2eabfe[_0x545102('0x1e07')][_0x545102('0x1d4a')][_0x469c26][_0x545102('0x67f')]});}}else _0x39b99f[_0x545102('0x15aa')]({'title':_0x2eabfe[_0x545102('0x276f')]?_0x545102('0x137')+_0x2eabfe[_0x545102('0x276f')]+_0x545102('0x160c')+_0x2eabfe[_0x545102('0x2696')]:_0x545102('0x26c9'),'msg':_0x2eabfe[_0x545102('0x1e07')]?JSON[_0x545102('0x100b')](_0x2eabfe['data']['message']):_0x2eabfe[_0x545102('0x67f')]||_0x2eabfe['toString']()});});},function(){});}function _0x2ca145(_0x18b34b){return _0x18b34b===null?undefined:new Date(_0x18b34b);}function _0x4737fd(_0x43a32b){const _0x389215=_0x539354;_0x2c3992[_0x389215('0x1cf4')](_0x43a32b);}}const _0x171575=_0x2f0852;_0x5e63f3[_0x566993('0x17bb')]=[_0x566993('0x1fe5'),'$q',_0x566993('0x1558'),_0x566993('0xbd4'),_0x566993('0x9cb'),'whatsappQueues',_0x566993('0x12a7'),_0x566993('0x638'),_0x566993('0x1600'),_0x566993('0x1dc1')];function _0x5e63f3(_0x4b3cf4,_0x155a77,_0x390a61,_0x368b19,_0x3c3b6b,_0x121950,_0xbf4109,_0x278963,_0x3818d7,_0x1783c9){const _0x232b1e=_0x566993,_0x5843c9=this;_0x5843c9[_0x232b1e('0x155f')]=_0x3818d7[_0x232b1e('0x14d4')](),_0x5843c9[_0x232b1e('0x9cb')]=_0x3c3b6b,_0x5843c9['crudPermissions']=_0x1783c9,_0x5843c9[_0x232b1e('0x12a7')]=_0xbf4109,_0x5843c9[_0x232b1e('0x1b1f')]=[],_0x5843c9[_0x232b1e('0x203e')]=[],_0x5843c9['selectedItems']=[],_0x5843c9[_0x232b1e('0x1493')]=[],_0x5843c9[_0x232b1e('0x15c9')]=[],_0x5843c9['pendingChanges']=![],_0x5843c9[_0x232b1e('0x2535')]=_0x1b7411,_0x5843c9[_0x232b1e('0x21dc')]=_0x2074b6,_0x5843c9[_0x232b1e('0x18e2')]=_0x4a7f6a,_0x5843c9['dualMultiselectOptions']={'readOnly':!_0x5843c9[_0x232b1e('0x1dc1')][_0x232b1e('0x1f3d')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x232b1e('0x572'),'line2':['name','internal'],'line3':'','labelAll':_0x278963[_0x232b1e('0x1467')]('WHATSAPP.ALL_AGENTS'),'labelSelected':_0x278963[_0x232b1e('0x1467')]('WHATSAPP.SELECTED_AGENTS'),'transferCallback':function(){const _0x177b90=_0x232b1e,_0x298d9c=_0x3c8d8a()[_0x177b90('0x226b')](_0x5843c9[_0x177b90('0x15c9')],_0x5843c9[_0x177b90('0x5f8')],'id');_0x5843c9[_0x177b90('0x277e')]=_0x3c8d8a()[_0x177b90('0x1a56')](_0x298d9c)?![]:!![];}};function _0x1b7411(){const _0x2f593f=_0x232b1e;return _0x3818d7[_0x2f593f('0x1b4e')](_0x2f593f('0x79b'))?_0x346a5c()[_0x2f593f('0x103c')](function(_0x144955){const _0x5a8dab=_0x2f593f;_0x390a61[_0x5a8dab('0x15aa')]({'title':_0x144955[_0x5a8dab('0x276f')]?_0x5a8dab('0x137')+_0x144955['status']+_0x5a8dab('0x160c')+_0x144955['statusText']:_0x5a8dab('0x152b'),'msg':_0x144955[_0x5a8dab('0x276f')]?JSON[_0x5a8dab('0x100b')](_0x144955['data']):_0x144955[_0x5a8dab('0x1b75')]()});}):_0x10ac56()[_0x2f593f('0x173b')](function(_0x167f24){const _0x2ba123=_0x2f593f;return _0x5843c9[_0x2ba123('0x17c9')]=_0x167f24,_0x346a5c();})[_0x2f593f('0x103c')](function(_0x66373a){const _0x33618d=_0x2f593f;_0x390a61[_0x33618d('0x15aa')]({'title':_0x66373a[_0x33618d('0x276f')]?_0x33618d('0x137')+_0x66373a[_0x33618d('0x276f')]+'\x20-\x20'+_0x66373a[_0x33618d('0x2696')]:_0x33618d('0x152b'),'msg':_0x66373a[_0x33618d('0x276f')]?JSON['stringify'](_0x66373a[_0x33618d('0x1e07')]):_0x66373a['toString']()});});}function _0x10ac56(){return _0x155a77(function(_0x10919a,_0x2b8d78){const _0x9a580b=a0_0xde5e;_0x368b19[_0x9a580b('0x170e')][_0x9a580b('0x1d97')]({'userProfileId':_0x5843c9['currentUser'][_0x9a580b('0x1946')],'name':'Agents'})['$promise'][_0x9a580b('0x173b')](function(_0xd88212){const _0x4fecd8=_0x9a580b,_0x3c1051=_0xd88212&&_0xd88212[_0x4fecd8('0x6aa')]?_0xd88212[_0x4fecd8('0x6aa')][0x0]:null;_0x10919a(_0x3c1051);})[_0x9a580b('0x103c')](function(_0x3abf0e){_0x2b8d78(_0x3abf0e);});});}function _0x346a5c(){return _0x155a77(function(_0x3fd53a,_0x2d7120){const _0x10513f=a0_0xde5e;return _0x4c0d3c()[_0x10513f('0x173b')](function(_0x1b459a){const _0x2fd1f5=_0x10513f;return _0x5843c9[_0x2fd1f5('0x1b1f')]=_0x1b459a[_0x2fd1f5('0x6aa')]?_0x1b459a[_0x2fd1f5('0x6aa')]:[],_0x3818d7[_0x2fd1f5('0x1b4e')](_0x2fd1f5('0x79b'))?_0x1b459a:_0x5843c9[_0x2fd1f5('0x17c9')]?_0x5843c9['section'][_0x2fd1f5('0x273e')]?_0x1b459a:_0x5775e1():null;})[_0x10513f('0x173b')](function(_0x5bcdd3){const _0x164860=_0x10513f,_0x54ebbe=_0x5bcdd3&&_0x5bcdd3[_0x164860('0x6aa')]?_0x5bcdd3['rows']:[];return _0x5843c9[_0x164860('0x203e')]=_0x3c8d8a()[_0x164860('0x8a2')](_0x54ebbe,function(_0xd6f910){const _0x4942fa=_0x164860;return _0x3c8d8a()[_0x4942fa('0x18ab')](_0x5843c9[_0x4942fa('0x1b1f')],{'id':_0x3818d7[_0x4942fa('0x1b4e')](_0x4942fa('0x79b'))||_0x5843c9[_0x4942fa('0x17c9')][_0x4942fa('0x273e')]?_0xd6f910['id']:_0xd6f910[_0x4942fa('0x1ce0')]});}),_0x5843c9[_0x164860('0x1493')]=angular['copy'](_0x5843c9[_0x164860('0x203e')]),_0x5843c9[_0x164860('0x1b1f')][_0x164860('0xa6a')](function(_0x55ba7c){const _0xd4a289=_0x164860,_0x15c924=_0x3c8d8a()['find'](_0x5843c9['allowedItems'],{'id':_0x55ba7c['id']});_0x3818d7[_0xd4a289('0x1b4e')](_0xd4a289('0x79b'))?_0x55ba7c[_0xd4a289('0xf02')]=!![]:_0x55ba7c[_0xd4a289('0xf02')]=typeof _0x15c924!==_0xd4a289('0x6e5')?!![]:![];}),_0x3f279f();})['then'](function(_0x19316c){const _0x9a113b=_0x10513f,_0x5b56bc=_0x19316c&&_0x19316c['rows']?_0x19316c[_0x9a113b('0x6aa')]:[];_0x5843c9[_0x9a113b('0x5f8')]=_0x3c8d8a()[_0x9a113b('0x8a2')](_0x5b56bc,function(_0x2ca82b){const _0x305482=_0x9a113b,_0x100143=_0x3c8d8a()[_0x305482('0x18ab')](_0x5843c9['items'],{'id':_0x2ca82b['id']});return _0x100143[_0x305482('0x1692')]=_0x2ca82b['UserWhatsappQueue']?_0x305482('0x1929')+_0x2ca82b[_0x305482('0x105')][_0x305482('0x1692')]:'',_0x100143[_0x305482('0x138c')]=typeof _0x2ca82b[_0x305482('0x138c')]!==_0x305482('0x6e5')?'<'+_0x2ca82b[_0x305482('0x138c')]+'>':'',_0x100143;}),_0x5843c9['startingSelectedItems']=angular['copy'](_0x5843c9[_0x9a113b('0x5f8')]),_0x5843c9['dualMultiselectOptions'][_0x9a113b('0x5f8')]=_0x5843c9['selectedItems'],_0x5843c9[_0x9a113b('0x52e')][_0x9a113b('0x1b1f')]=_0x3c8d8a()[_0x9a113b('0x1bd3')](_0x5843c9['allowedItems'],_0x5843c9[_0x9a113b('0x52e')][_0x9a113b('0x5f8')],'id'),_0x3fd53a();})[_0x10513f('0x103c')](function(_0x113ce2){_0x2d7120(_0x113ce2);});});}function _0x5775e1(){return _0x155a77(function(_0x1af480,_0x53f5c2){const _0x2f20d1=a0_0xde5e;return _0x368b19[_0x2f20d1('0xda9')][_0x2f20d1('0x1d97')]({'sectionId':_0x5843c9['section']['id'],'nolimit':!![]})[_0x2f20d1('0x1964')]['then'](function(_0x46fe18){_0x1af480(_0x46fe18);})[_0x2f20d1('0x103c')](function(_0x13df53){_0x53f5c2(_0x13df53);});});}function _0x3f279f(){return _0x155a77(function(_0x6010c,_0x935df9){const _0x2a6a7c=a0_0xde5e;return _0x368b19[_0x2a6a7c('0x9cb')]['getAgents']({'id':_0x5843c9['whatsappQueue']['id'],'fields':_0x2a6a7c('0x1d65'),'nolimit':!![],'role':'agent'})[_0x2a6a7c('0x1964')][_0x2a6a7c('0x173b')](function(_0x166a09){_0x6010c(_0x166a09);})[_0x2a6a7c('0x103c')](function(_0x1653d9){_0x935df9(_0x1653d9);});});}function _0x4c0d3c(){return _0x155a77(function(_0x2df2d3,_0x3cf197){const _0x5f229b=a0_0xde5e;return _0x368b19[_0x5f229b('0x166f')][_0x5f229b('0x1d97')]({'fields':_0x5f229b('0x1d65'),'nolimit':!![],'role':_0x5f229b('0x7b0')})[_0x5f229b('0x1964')][_0x5f229b('0x173b')](function(_0x4e022f){_0x2df2d3(_0x4e022f);})['catch'](function(_0x4a220f){_0x3cf197(_0x4a220f);});});}function _0x19fae2(_0x3316a5){return _0x155a77(function(_0x540984,_0x4c41cf){const _0x2c2bc4=a0_0xde5e;_0x3c8d8a()[_0x2c2bc4('0x1a56')](_0x3316a5)?_0x540984():_0x368b19['whatsappQueue'][_0x2c2bc4('0x1ff1')]({'id':_0x5843c9[_0x2c2bc4('0x9cb')]['id'],'ids':_0x3c8d8a()[_0x2c2bc4('0x8a2')](_0x3316a5,'id')})[_0x2c2bc4('0x1964')][_0x2c2bc4('0x173b')](function(){_0x540984();})[_0x2c2bc4('0x103c')](function(_0x1be640){_0x4c41cf(_0x1be640);});});}function _0xf0d64d(_0x4dcef3){return _0x155a77(function(_0x16b7ea,_0x2aa936){const _0x6ddefc=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x4dcef3)?_0x16b7ea():_0x368b19[_0x6ddefc('0x9cb')]['removeAgents']({'id':_0x5843c9[_0x6ddefc('0x9cb')]['id'],'ids':_0x3c8d8a()[_0x6ddefc('0x8a2')](_0x4dcef3,'id')})[_0x6ddefc('0x1964')]['then'](function(){_0x16b7ea();})[_0x6ddefc('0x103c')](function(_0x4b40e2){_0x2aa936(_0x4b40e2);});});}function _0x2074b6(){const _0x559b10=_0x232b1e,_0x291bc9=_0x3c8d8a()[_0x559b10('0x1bd3')](_0x5843c9[_0x559b10('0x15c9')],_0x5843c9[_0x559b10('0x5f8')],'id'),_0x2c9b10=_0x3c8d8a()[_0x559b10('0x1bd3')](_0x5843c9[_0x559b10('0x5f8')],_0x5843c9[_0x559b10('0x15c9')],'id');return _0xf0d64d(_0x291bc9)['then'](function(){return _0x19fae2(_0x2c9b10);})[_0x559b10('0x173b')](function(){const _0x5051f0=_0x559b10;_0x5843c9[_0x5051f0('0x277e')]=![],_0x5843c9[_0x5051f0('0x1493')]=angular['copy'](_0x5843c9[_0x5051f0('0x203e')]),_0x5843c9[_0x5051f0('0x15c9')]=angular[_0x5051f0('0x2e3')](_0x5843c9[_0x5051f0('0x5f8')]),_0x390a61[_0x5051f0('0xdfe')]({'title':'SUCCESS','msg':_0x5051f0('0x2027')});})[_0x559b10('0x103c')](function(_0x4f36c1){const _0x215a37=_0x559b10;_0x390a61['error']({'title':_0x4f36c1[_0x215a37('0x276f')]?_0x215a37('0x137')+_0x4f36c1[_0x215a37('0x276f')]+_0x215a37('0x160c')+_0x4f36c1[_0x215a37('0x2696')]:_0x215a37('0x1f48'),'msg':_0x4f36c1[_0x215a37('0x276f')]?JSON[_0x215a37('0x100b')](_0x4f36c1[_0x215a37('0x1e07')]):_0x4f36c1[_0x215a37('0x1b75')]()});});}function _0x4a7f6a(){const _0x155445=_0x232b1e;_0x4b3cf4[_0x155445('0x1cf4')]();}}const _0x4bc3ca=_0x5e63f3;_0x5eb1b8['$inject']=[_0x566993('0x1fe5'),'$q','toasty',_0x566993('0xbd4'),_0x566993('0x9cb'),_0x566993('0x638'),'Auth',_0x566993('0x1dc1')];function _0x5eb1b8(_0x8d9a62,_0x38e8d5,_0x18300c,_0x280df7,_0x1b54b0,_0x2645ae,_0x23fc36,_0x49a9f0){const _0x46b15e=_0x566993,_0x712bed=this;_0x712bed[_0x46b15e('0x155f')]=_0x23fc36[_0x46b15e('0x14d4')](),_0x712bed[_0x46b15e('0x9cb')]=_0x1b54b0,_0x712bed[_0x46b15e('0x1dc1')]=_0x49a9f0,_0x712bed[_0x46b15e('0x1b1f')]=[],_0x712bed[_0x46b15e('0x203e')]=[],_0x712bed[_0x46b15e('0x5f8')]=[],_0x712bed[_0x46b15e('0x1493')]=[],_0x712bed['startingSelectedItems']=[],_0x712bed['pendingChanges']=![],_0x712bed['dualMultiselectOptions']={'readOnly':!_0x712bed[_0x46b15e('0x1dc1')][_0x46b15e('0x1f3d')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x46b15e('0x10ad'),'line1':_0x46b15e('0x10ad'),'line2':'','line3':'','labelAll':_0x2645ae['instant'](_0x46b15e('0xce3')),'labelSelected':_0x2645ae[_0x46b15e('0x1467')](_0x46b15e('0x91c')),'transferCallback':function(){const _0x3e00cd=_0x46b15e,_0x479907=_0x3c8d8a()[_0x3e00cd('0x226b')](_0x712bed['startingSelectedItems'],_0x712bed[_0x3e00cd('0x5f8')],'id');_0x712bed[_0x3e00cd('0x277e')]=_0x3c8d8a()['isEmpty'](_0x479907)?![]:!![];}},_0x712bed[_0x46b15e('0x2535')]=_0x24e6f8,_0x712bed[_0x46b15e('0x2421')]=_0x15fcea,_0x712bed[_0x46b15e('0x18e2')]=_0x311894;function _0x24e6f8(){const _0x2553ae=_0x46b15e;return _0x23fc36[_0x2553ae('0x1b4e')](_0x2553ae('0x79b'))?_0x1f299c()[_0x2553ae('0x103c')](function(_0x3ae3a7){const _0x337a15=_0x2553ae;_0x18300c[_0x337a15('0x15aa')]({'title':_0x3ae3a7[_0x337a15('0x276f')]?_0x337a15('0x137')+_0x3ae3a7[_0x337a15('0x276f')]+_0x337a15('0x160c')+_0x3ae3a7['statusText']:'SYSTEM:GET_TEAMS','msg':_0x3ae3a7[_0x337a15('0x276f')]?JSON['stringify'](_0x3ae3a7['data']):_0x3ae3a7['toString']()});}):_0x1d90ed()[_0x2553ae('0x173b')](function(_0x258e87){const _0x4d3044=_0x2553ae;return _0x712bed[_0x4d3044('0x17c9')]=_0x258e87,_0x1f299c();})[_0x2553ae('0x103c')](function(_0x1edd99){const _0x3187dd=_0x2553ae;_0x18300c['error']({'title':_0x1edd99[_0x3187dd('0x276f')]?_0x3187dd('0x137')+_0x1edd99[_0x3187dd('0x276f')]+_0x3187dd('0x160c')+_0x1edd99[_0x3187dd('0x2696')]:'SYSTEM:GET_TEAMS','msg':_0x1edd99[_0x3187dd('0x276f')]?JSON[_0x3187dd('0x100b')](_0x1edd99[_0x3187dd('0x1e07')]):_0x1edd99[_0x3187dd('0x1b75')]()});});}function _0x1d90ed(){return _0x38e8d5(function(_0x26729f,_0x30a6aa){const _0x1f9dea=a0_0xde5e;_0x280df7['userProfileSection'][_0x1f9dea('0x1d97')]({'userProfileId':_0x712bed[_0x1f9dea('0x155f')]['userProfileId'],'name':_0x1f9dea('0x1e5c')})[_0x1f9dea('0x1964')][_0x1f9dea('0x173b')](function(_0x2578f1){const _0x4525cd=_0x1f9dea,_0x3bcee2=_0x2578f1&&_0x2578f1['rows']?_0x2578f1[_0x4525cd('0x6aa')][0x0]:null;_0x26729f(_0x3bcee2);})['catch'](function(_0x4a70d0){_0x30a6aa(_0x4a70d0);});});}function _0x1f299c(){return _0x38e8d5(function(_0xfacc66,_0x4f70fb){const _0x434c86=a0_0xde5e;return _0x51bad8()[_0x434c86('0x173b')](function(_0x45874c){const _0x5b1429=_0x434c86;return _0x712bed[_0x5b1429('0x1b1f')]=_0x45874c[_0x5b1429('0x6aa')]?_0x45874c['rows']:[],_0x23fc36['hasRole'](_0x5b1429('0x79b'))?_0x45874c:_0x712bed[_0x5b1429('0x17c9')]?_0x712bed[_0x5b1429('0x17c9')]['autoAssociation']?_0x45874c:_0x238f15():null;})[_0x434c86('0x173b')](function(_0x54b847){const _0x150cb6=_0x434c86,_0x573c48=_0x54b847&&_0x54b847[_0x150cb6('0x6aa')]?_0x54b847[_0x150cb6('0x6aa')]:[];return _0x712bed[_0x150cb6('0x203e')]=_0x3c8d8a()[_0x150cb6('0x8a2')](_0x573c48,function(_0x2b94d3){const _0x11a629=_0x150cb6;return _0x3c8d8a()[_0x11a629('0x18ab')](_0x712bed[_0x11a629('0x1b1f')],{'id':_0x23fc36[_0x11a629('0x1b4e')](_0x11a629('0x79b'))||_0x712bed[_0x11a629('0x17c9')][_0x11a629('0x273e')]?_0x2b94d3['id']:_0x2b94d3[_0x11a629('0x1ce0')]});}),_0x712bed[_0x150cb6('0x1b1f')][_0x150cb6('0xa6a')](function(_0x58c753){const _0x33410f=_0x150cb6,_0x180fda=_0x3c8d8a()[_0x33410f('0x18ab')](_0x712bed[_0x33410f('0x203e')],{'id':_0x58c753['id']});_0x23fc36[_0x33410f('0x1b4e')]('admin')?_0x58c753[_0x33410f('0xf02')]=!![]:_0x58c753[_0x33410f('0xf02')]=typeof _0x180fda!=='undefined'?!![]:![];}),_0xe3cf45();})[_0x434c86('0x173b')](function(_0x557c94){const _0x3bcf3e=_0x434c86,_0x18a142=_0x557c94&&_0x557c94[_0x3bcf3e('0x6aa')]?_0x557c94[_0x3bcf3e('0x6aa')]:[];_0x712bed[_0x3bcf3e('0x5f8')]=_0x3c8d8a()[_0x3bcf3e('0x8a2')](_0x18a142,function(_0x3f8fae){const _0x422b38=_0x3bcf3e;return _0x3c8d8a()[_0x422b38('0x18ab')](_0x712bed['items'],{'id':_0x3f8fae['id']});}),_0x712bed[_0x3bcf3e('0x15c9')]=angular[_0x3bcf3e('0x2e3')](_0x712bed[_0x3bcf3e('0x5f8')]),_0x712bed[_0x3bcf3e('0x52e')]['selectedItems']=_0x712bed[_0x3bcf3e('0x5f8')],_0x712bed['dualMultiselectOptions'][_0x3bcf3e('0x1b1f')]=_0x3c8d8a()[_0x3bcf3e('0x1bd3')](_0x712bed['allowedItems'],_0x712bed[_0x3bcf3e('0x52e')][_0x3bcf3e('0x5f8')],'id'),_0xfacc66();})[_0x434c86('0x103c')](function(_0x1b7902){_0x4f70fb(_0x1b7902);});});}function _0x238f15(){return _0x38e8d5(function(_0x601d5f,_0x1a2dff){const _0xbcb458=a0_0xde5e;return _0x280df7[_0xbcb458('0xda9')][_0xbcb458('0x1d97')]({'sectionId':_0x712bed[_0xbcb458('0x17c9')]['id'],'nolimit':!![]})[_0xbcb458('0x1964')][_0xbcb458('0x173b')](function(_0x5e379b){_0x601d5f(_0x5e379b);})['catch'](function(_0x28f526){_0x1a2dff(_0x28f526);});});}function _0xe3cf45(){return _0x38e8d5(function(_0x1d5ee6,_0x16ae28){const _0x1e1ce9=a0_0xde5e;return _0x280df7['whatsappQueue'][_0x1e1ce9('0x1592')]({'id':_0x712bed[_0x1e1ce9('0x9cb')]['id'],'fields':_0x1e1ce9('0xd52'),'nolimit':!![]})[_0x1e1ce9('0x1964')][_0x1e1ce9('0x173b')](function(_0x23ce27){_0x1d5ee6(_0x23ce27);})['catch'](function(_0x158b92){_0x16ae28(_0x158b92);});});}function _0x51bad8(){return _0x38e8d5(function(_0x5c2e76,_0x3527f5){const _0x4a7aa3=a0_0xde5e;return _0x280df7[_0x4a7aa3('0xe10')][_0x4a7aa3('0x1d97')]({'fields':_0x4a7aa3('0xd52'),'nolimit':!![]})[_0x4a7aa3('0x1964')]['then'](function(_0x421bff){_0x5c2e76(_0x421bff);})[_0x4a7aa3('0x103c')](function(_0x363741){_0x3527f5(_0x363741);});});}function _0x179d8a(_0x486f85){return _0x38e8d5(function(_0x4ea988,_0x158532){const _0x450934=a0_0xde5e;_0x3c8d8a()[_0x450934('0x1a56')](_0x486f85)?_0x4ea988():_0x280df7[_0x450934('0x9cb')][_0x450934('0x500')]({'id':_0x712bed['whatsappQueue']['id'],'ids':_0x3c8d8a()['map'](_0x486f85,'id')})[_0x450934('0x1964')][_0x450934('0x173b')](function(){_0x4ea988();})[_0x450934('0x103c')](function(_0x38ffb1){_0x158532(_0x38ffb1);});});}function _0x4f59ed(_0x47bd0a){return _0x38e8d5(function(_0xf232cf,_0x273541){const _0x4e9512=a0_0xde5e;_0x3c8d8a()['isEmpty'](_0x47bd0a)?_0xf232cf():_0x280df7[_0x4e9512('0x9cb')][_0x4e9512('0x7a')]({'id':_0x712bed[_0x4e9512('0x9cb')]['id'],'ids':_0x3c8d8a()[_0x4e9512('0x8a2')](_0x47bd0a,'id')})['$promise'][_0x4e9512('0x173b')](function(){_0xf232cf();})[_0x4e9512('0x103c')](function(_0x2dd953){_0x273541(_0x2dd953);});});}function _0x15fcea(){const _0x14aaa3=_0x46b15e,_0x460ba9=_0x3c8d8a()[_0x14aaa3('0x1bd3')](_0x712bed[_0x14aaa3('0x15c9')],_0x712bed['selectedItems'],'id'),_0x49cca9=_0x3c8d8a()[_0x14aaa3('0x1bd3')](_0x712bed[_0x14aaa3('0x5f8')],_0x712bed[_0x14aaa3('0x15c9')],'id');return _0x4f59ed(_0x460ba9)['then'](function(){return _0x179d8a(_0x49cca9);})[_0x14aaa3('0x173b')](function(){const _0x39346b=_0x14aaa3;_0x712bed[_0x39346b('0x277e')]=![],_0x712bed[_0x39346b('0x1493')]=angular[_0x39346b('0x2e3')](_0x712bed[_0x39346b('0x203e')]),_0x712bed['startingSelectedItems']=angular[_0x39346b('0x2e3')](_0x712bed['selectedItems']),_0x18300c[_0x39346b('0xdfe')]({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x14aaa3('0x103c')](function(_0x16b2c1){const _0x5c74e1=_0x14aaa3;_0x18300c[_0x5c74e1('0x15aa')]({'title':_0x16b2c1[_0x5c74e1('0x276f')]?_0x5c74e1('0x137')+_0x16b2c1[_0x5c74e1('0x276f')]+_0x5c74e1('0x160c')+_0x16b2c1[_0x5c74e1('0x2696')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x16b2c1[_0x5c74e1('0x276f')]?JSON[_0x5c74e1('0x100b')](_0x16b2c1[_0x5c74e1('0x1e07')]):_0x16b2c1['toString']()});});}function _0x311894(){const _0x5d227a=_0x46b15e;_0x8d9a62[_0x5d227a('0x1cf4')]();}}const _0x10e1c8=_0x5eb1b8,_0x930271=_0x21a6a1['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd.html';_0xefc967[_0x566993('0x17bb')]=[_0x566993('0x2276'),'$location','$mdDialog',_0x566993('0x1b82'),_0x566993('0x638'),_0x566993('0x1a29'),_0x566993('0x251'),'api','toasty',_0x566993('0x1600'),'whatsappQueue',_0x566993('0x170e')];function _0xefc967(_0x4c4dd5,_0x45ea4d,_0x5f16d6,_0x28a068,_0x2458aa,_0x30ac00,_0x3ea6a6,_0x5b8590,_0x28fb8d,_0x28cc91,_0x34608f,_0x57b900){const _0x4ca2ec=_0x566993,_0x77f8e1=this;_0x77f8e1[_0x4ca2ec('0x155f')]=_0x28cc91[_0x4ca2ec('0x14d4')](),_0x77f8e1[_0x4ca2ec('0x1a29')]=_0x30ac00,_0x77f8e1[_0x4ca2ec('0x251')]=_0x3ea6a6,_0x77f8e1[_0x4ca2ec('0x644')]=_0x77f8e1[_0x4ca2ec('0x251')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x77f8e1[_0x4ca2ec('0x614')]=_0x45ea4d['protocol']()+_0x4ca2ec('0x122b')+_0x45ea4d['host'](),_0x77f8e1[_0x4ca2ec('0x9cb')]=_0x34608f||_0x4c4dd5[_0x4ca2ec('0x197a')][_0x4ca2ec('0x9cb')]||{},_0x77f8e1['userProfileSection']=_0x57b900&&_0x57b900[_0x4ca2ec('0x1a2f')]==0x1?_0x57b900[_0x4ca2ec('0x6aa')][0x0]:null,_0x77f8e1[_0x4ca2ec('0x1dc1')]=_0x28cc91[_0x4ca2ec('0xde6')](_0x77f8e1[_0x4ca2ec('0x170e')]?_0x77f8e1[_0x4ca2ec('0x170e')]['crudPermissions']:null),_0x77f8e1[_0x4ca2ec('0xb0')]={},_0x77f8e1[_0x4ca2ec('0xd5f')]=_0x4c4dd5[_0x4ca2ec('0x197a')]['tab']||0x0,_0x77f8e1[_0x4ca2ec('0x17d4')]=_0x1aacb3,_0x77f8e1[_0x4ca2ec('0x2118')]=_0x237ec2,_0x77f8e1[_0x4ca2ec('0x5a4')]=_0x28fb8d[_0x4ca2ec('0x2787')],_0x77f8e1[_0x4ca2ec('0x18fc')]=_0xfe9f76,_0x77f8e1['saveWhatsappQueue']=_0x58c5e0;function _0x1aacb3(_0x1176a3,_0x2fe56e){const _0x48e071=_0x4ca2ec;_0x5f16d6[_0x48e071('0x1cb7')]({'controller':_0x48e071('0x1183'),'controllerAs':'vm','templateUrl':_0x930271,'parent':angular[_0x48e071('0xb6d')](_0x28a068[_0x48e071('0x1a5')]),'targetEvent':_0x2fe56e,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x1176a3,'whatsappQueues':_0x77f8e1[_0x48e071('0xbbf')]?_0x77f8e1[_0x48e071('0xbbf')][_0x48e071('0x6aa')]:[],'crudPermissions':_0x77f8e1[_0x48e071('0x1dc1')]}});}function _0x237ec2(_0x1b4163,_0x281faa){const _0x339f0c=_0x4ca2ec;_0x5f16d6[_0x339f0c('0x1cb7')]({'controller':_0x339f0c('0x299'),'controllerAs':'vm','templateUrl':_0x399aad,'parent':angular['element'](_0x28a068['body']),'targetEvent':_0x281faa,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x1b4163,'whatsappQueues':_0x77f8e1[_0x339f0c('0xbbf')]?_0x77f8e1['whatsappQueues'][_0x339f0c('0x6aa')]:[],'crudPermissions':_0x77f8e1[_0x339f0c('0x1dc1')],'realtime':![]}});}function _0xfe9f76(){const _0x446ad9=_0x4ca2ec;_0x4c4dd5['go'](_0x446ad9('0x1184'),{},{'reload':_0x446ad9('0x1184')});}function _0x58c5e0(){const _0x1ea3fc=_0x4ca2ec;_0x5b8590['whatsappQueue']['update']({'id':_0x77f8e1[_0x1ea3fc('0x9cb')]['id']},_0x77f8e1[_0x1ea3fc('0x9cb')])[_0x1ea3fc('0x1964')][_0x1ea3fc('0x173b')](function(){const _0xa8dc6a=_0x1ea3fc;_0x28fb8d[_0xa8dc6a('0xdfe')]({'title':_0xa8dc6a('0x1da2'),'msg':_0x77f8e1['whatsappQueue'][_0xa8dc6a('0x10ad')]?_0x77f8e1[_0xa8dc6a('0x9cb')][_0xa8dc6a('0x10ad')]+_0xa8dc6a('0x1fd6'):''});})[_0x1ea3fc('0x103c')](function(_0x10c734){const _0x1b586f=_0x1ea3fc;_0x28fb8d[_0x1b586f('0x15aa')]({'title':_0x10c734['status']?'API:'+_0x10c734[_0x1b586f('0x276f')]+_0x1b586f('0x160c')+_0x10c734[_0x1b586f('0x2696')]:_0x1b586f('0x2393'),'msg':_0x10c734[_0x1b586f('0x1e07')]?JSON[_0x1b586f('0x100b')](_0x10c734['data']):_0x10c734['toString']()});});}}const _0x19f076=_0xefc967;_0x30a8b1[_0x566993('0x17bb')]=[_0x566993('0x66f'),_0x566993('0x1d31'),_0x566993('0x2276'),'$mdSidenav',_0x566993('0x1fe5'),_0x566993('0x1b82'),_0x566993('0x24b5'),_0x566993('0x638'),_0x566993('0xbbf'),_0x566993('0x257b'),_0x566993('0x170e'),_0x566993('0xbd4'),'msUtils',_0x566993('0x1558'),_0x566993('0x1600'),_0x566993('0x1a29'),_0x566993('0x251')];function _0x30a8b1(_0x537777,_0x434c85,_0x49610f,_0x193242,_0x29508d,_0x566e13,_0x527937,_0x448447,_0x5abd48,_0x459169,_0x2752ae,_0x1db7c8,_0x296f44,_0x5dd812,_0x4f5927,_0x2494a3,_0x2e922d){const _0x38c8ed=_0x566993,_0x2831af=this;_0x2831af['license']=_0x2494a3,_0x2831af['setting']=_0x2e922d,_0x2831af['currentUser']=_0x4f5927[_0x38c8ed('0x14d4')](),_0x2831af[_0x38c8ed('0xbbf')]=_0x5abd48||{'count':0x0,'rows':[]},_0x2831af['userProfile']=_0x459169,_0x2831af[_0x38c8ed('0x170e')]=_0x2752ae&&_0x2752ae[_0x38c8ed('0x1a2f')]==0x1?_0x2752ae[_0x38c8ed('0x6aa')][0x0]:null,_0x2831af['crudPermissions']=_0x4f5927[_0x38c8ed('0xde6')](_0x2831af[_0x38c8ed('0x170e')]?_0x2831af['userProfileSection']['crudPermissions']:null),_0x2831af[_0x38c8ed('0xdf9')]='whatsappQueues',_0x2831af[_0x38c8ed('0x14d6')]='',_0x2831af[_0x38c8ed('0x2303')]=null,_0x2831af[_0x38c8ed('0x255d')]=[],_0x2831af[_0x38c8ed('0xc49')]={'fields':_0x38c8ed('0xab9'),'sort':_0x38c8ed('0x1769'),'channel':_0x38c8ed('0x245'),'limit':0xa,'page':0x1},_0x2831af[_0x38c8ed('0x2125')]=_0x3c8d8a()[_0x38c8ed('0x128')]([{'option':_0x38c8ed('0x27db'),'value':'\x27beepall\x27'},{'option':'RR\x20Memory','value':_0x38c8ed('0x1b87')}],function(_0x56b211){const _0x4379ef=_0x38c8ed;return _0x3c8d8a()[_0x4379ef('0x166c')](_0x56b211['value'],new RegExp('\x27','g'),'');}),_0x2831af[_0x38c8ed('0x222e')]=_0x54cce7,_0x2831af[_0x38c8ed('0x17d4')]=_0x1285ca,_0x2831af['agentadddialog']=_0x8ce147,_0x2831af[_0x38c8ed('0x1a20')]=_0x4c1053,_0x2831af[_0x38c8ed('0x1c9c')]=_0xa8a9aa,_0x2831af[_0x38c8ed('0xdfe')]=_0x88473c,_0x2831af['getWhatsappQueues']=_0x20dc4c,_0x2831af[_0x38c8ed('0x2445')]=_0x1d43f1,_0x2831af[_0x38c8ed('0x1dea')]=_0x92a810,_0x2831af[_0x38c8ed('0x22c3')]=_0x177813,_0x2831af[_0x38c8ed('0x1ba5')]=_0x448ad8,_0x2831af[_0x38c8ed('0x1d69')]=_0x3ff748,_0x2831af['selectAllWhatsappQueues']=_0x407caa;function _0x54cce7(_0x40c009){const _0x1cc4f6=_0x38c8ed;_0x49610f['go'](_0x1cc4f6('0x1e51'),{'id':_0x40c009['id'],'whatsappQueue':_0x40c009,'crudPermissions':_0x2831af[_0x1cc4f6('0x1dc1')]});}function _0x1285ca(_0x3eb738,_0x1ec832){const _0xc746d9=_0x38c8ed;_0x29508d[_0xc746d9('0x1cb7')]({'controller':_0xc746d9('0x1183'),'controllerAs':'vm','templateUrl':_0x930271,'parent':angular[_0xc746d9('0xb6d')](_0x566e13[_0xc746d9('0x1a5')]),'targetEvent':_0x1ec832,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x3eb738,'whatsappQueues':_0x2831af[_0xc746d9('0xbbf')]?_0x2831af[_0xc746d9('0xbbf')][_0xc746d9('0x6aa')]:[],'crudPermissions':_0x2831af['crudPermissions']}});}function _0x8ce147(_0x224413,_0x54a909){const _0x448f6e=_0x38c8ed;_0x29508d[_0x448f6e('0x1cb7')]({'controller':_0x448f6e('0x299'),'controllerAs':'vm','templateUrl':_0x399aad,'parent':angular['element'](_0x566e13[_0x448f6e('0x1a5')]),'targetEvent':_0x54a909,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x224413,'whatsappQueues':_0x2831af[_0x448f6e('0xbbf')]?_0x2831af['whatsappQueues']['rows']:[],'crudPermissions':_0x2831af[_0x448f6e('0x1dc1')],'realtime':![]}});}function _0x4c1053(_0x19b1f0,_0x10b5b2){const _0x29203e=_0x38c8ed,_0x26453d=_0x29508d[_0x29203e('0x1d02')]()[_0x29203e('0x20d6')](_0x29203e('0x5bb')+_0x3c8d8a()['startCase'](_0x29203e('0x9cb'))+'?')[_0x29203e('0xf8b')](''+(_0x19b1f0[_0x29203e('0x10ad')]||'whatsappQueue')+_0x29203e('0x24be')+'\x20will\x20be\x20deleted.')[_0x29203e('0x217')]('delete\x20whatsappQueue')[_0x29203e('0x21de')](_0x10b5b2)['ok']('OK')[_0x29203e('0x1e1f')](_0x29203e('0x468'));_0x29508d[_0x29203e('0x1cb7')](_0x26453d)[_0x29203e('0x173b')](function(){_0x92a810(_0x19b1f0);},function(){const _0x5bf28c=_0x29203e;console[_0x5bf28c('0xe37')](_0x5bf28c('0x468'));});}function _0xa8a9aa(){const _0x23f1ab=_0x38c8ed;if(_0x4f5927[_0x23f1ab('0x1b4e')]('admin'))_0x49610f['go'](_0x23f1ab('0x9de'),{});else return _0x1db7c8[_0x23f1ab('0x170e')]['get']({'userProfileId':_0x4f5927[_0x23f1ab('0x14d4')]()['userProfileId'],'sectionId':0x83e})[_0x23f1ab('0x1964')]['then'](function(_0x1b297c){const _0x147382=_0x23f1ab,_0x1aae42=_0x1b297c&&_0x1b297c['rows']?_0x1b297c[_0x147382('0x6aa')][0x0]:null;_0x1aae42&&_0x1aae42['enabled']?_0x49610f['go'](_0x147382('0x9de'),{}):_0x5dd812[_0x147382('0x2787')]({'title':_0x448447['instant'](_0x147382('0x4aa')),'msg':_0x448447[_0x147382('0x1467')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x23f1ab('0x103c')](function(_0x1105a6){const _0xb6ac04=_0x23f1ab;_0x5dd812[_0xb6ac04('0x15aa')]({'title':_0x1105a6[_0xb6ac04('0x276f')]?_0xb6ac04('0x137')+_0x1105a6[_0xb6ac04('0x276f')]+_0xb6ac04('0x160c')+_0x1105a6[_0xb6ac04('0x2696')]:'USERPROFILE:GET_SECTION','msg':_0x1105a6[_0xb6ac04('0x276f')]?JSON[_0xb6ac04('0x100b')](_0x1105a6[_0xb6ac04('0x1e07')]):_0x1105a6['toString']()});});}let _0x92a65c=!![],_0x46d139=0x1;_0x537777[_0x38c8ed('0x1bdb')](_0x38c8ed('0x157b'),function(_0x165e08,_0xd66e28){const _0x5c6498=_0x38c8ed;_0x92a65c?_0x527937(function(){_0x92a65c=![];}):(!_0xd66e28&&(_0x46d139=_0x2831af['query'][_0x5c6498('0x182e')]),_0x165e08!==_0xd66e28&&(_0x2831af['query'][_0x5c6498('0x182e')]=0x1),!_0x165e08&&(_0x2831af['query']['page']=_0x46d139),_0x2831af[_0x5c6498('0x7a9')]());});function _0x88473c(_0x267cea){const _0x26f274=_0x38c8ed;_0x2831af[_0x26f274('0xbbf')]=_0x267cea||{'count':0x0,'rows':[]};}function _0x20dc4c(){const _0x555c91=_0x38c8ed;_0x2831af[_0x555c91('0xc49')][_0x555c91('0x17f0')]=(_0x2831af['query'][_0x555c91('0x182e')]-0x1)*_0x2831af[_0x555c91('0xc49')][_0x555c91('0x3e')],_0x4f5927[_0x555c91('0x1b4e')](_0x555c91('0x79b'))?_0x2831af[_0x555c91('0x2219')]=_0x1db7c8[_0x555c91('0x9cb')][_0x555c91('0x1d97')](_0x2831af[_0x555c91('0xc49')],_0x88473c)[_0x555c91('0x1964')]:(_0x2831af['query']['id']=_0x2831af['userProfile']['id'],_0x2831af[_0x555c91('0xc49')][_0x555c91('0x17c9')]='WhatsappQueues',_0x2831af[_0x555c91('0x2219')]=_0x1db7c8[_0x555c91('0x257b')][_0x555c91('0x135b')](_0x2831af[_0x555c91('0xc49')],_0x88473c)[_0x555c91('0x1964')]);}function _0x1d43f1(_0x7e506f,_0x517e47){const _0x1fb490=_0x38c8ed;_0x29508d[_0x1fb490('0x1cb7')]({'controller':_0x1fb490('0x385'),'controllerAs':'vm','templateUrl':_0x37afa1,'parent':angular['element'](_0x566e13[_0x1fb490('0x1a5')]),'targetEvent':_0x7e506f,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x517e47,'whatsappQueues':_0x2831af['whatsappQueues'][_0x1fb490('0x6aa')],'license':_0x2831af['license'],'setting':_0x2831af['setting'],'crudPermissions':_0x2831af[_0x1fb490('0x1dc1')]}});}function _0x92a810(_0xbcd78d){const _0x4b0cf1=_0x38c8ed;_0x1db7c8[_0x4b0cf1('0x9cb')][_0x4b0cf1('0x15e8')]({'id':_0xbcd78d['id']})[_0x4b0cf1('0x1964')][_0x4b0cf1('0x173b')](function(){const _0x199068=_0x4b0cf1;_0x3c8d8a()[_0x199068('0x1a8b')](_0x2831af[_0x199068('0xbbf')]['rows'],{'id':_0xbcd78d['id']}),_0x2831af[_0x199068('0xbbf')][_0x199068('0x1a2f')]-=0x1,!_0x2831af[_0x199068('0xbbf')][_0x199068('0x6aa')][_0x199068('0x543')]&&_0x2831af[_0x199068('0x7a9')](),_0x5dd812[_0x199068('0xdfe')]({'title':_0x3c8d8a()[_0x199068('0x10e')](_0x199068('0x1fc0'))+_0x199068('0x1c5e'),'msg':_0xbcd78d['name']?_0xbcd78d[_0x199068('0x10ad')]+_0x199068('0x25d2'):''});})[_0x4b0cf1('0x103c')](function(_0x3bc027){const _0x40dbf6=_0x4b0cf1;if(_0x3bc027[_0x40dbf6('0x1e07')]&&_0x3bc027[_0x40dbf6('0x1e07')][_0x40dbf6('0x1d4a')]&&_0x3bc027[_0x40dbf6('0x1e07')][_0x40dbf6('0x1d4a')][_0x40dbf6('0x543')]){_0x2831af[_0x40dbf6('0x1d4a')]=_0x3bc027[_0x40dbf6('0x1e07')][_0x40dbf6('0x1d4a')]||[{'message':_0x3bc027[_0x40dbf6('0x1b75')](),'type':'SYSTEM:DELETEwhatsappQueue'}];for(let _0x4354f1=0x0;_0x4354f1<_0x3bc027[_0x40dbf6('0x1e07')]['errors'][_0x40dbf6('0x543')];_0x4354f1++){_0x5dd812['error']({'title':_0x3bc027[_0x40dbf6('0x1e07')]['errors'][_0x4354f1][_0x40dbf6('0x1810')],'msg':_0x3bc027[_0x40dbf6('0x1e07')][_0x40dbf6('0x1d4a')][_0x4354f1][_0x40dbf6('0x67f')]});}}else _0x5dd812[_0x40dbf6('0x15aa')]({'title':_0x3bc027[_0x40dbf6('0x276f')]?_0x40dbf6('0x137')+_0x3bc027[_0x40dbf6('0x276f')]+_0x40dbf6('0x160c')+_0x3bc027[_0x40dbf6('0x2696')]:_0x40dbf6('0x19b4'),'msg':_0x3bc027[_0x40dbf6('0x1e07')]?JSON[_0x40dbf6('0x100b')](_0x3bc027[_0x40dbf6('0x1e07')][_0x40dbf6('0x67f')]):_0x3bc027[_0x40dbf6('0x67f')]||_0x3bc027[_0x40dbf6('0x1b75')]()});});}function _0x177813(){const _0x189d4f=_0x38c8ed,_0x190319=angular[_0x189d4f('0x2e3')](_0x2831af[_0x189d4f('0x255d')]);return _0x2831af['selectedWhatsappQueues']=[],_0x190319;}function _0x448ad8(_0x1a4e80){const _0x193f35=_0x38c8ed,_0x2812b8=_0x29508d[_0x193f35('0x1d02')]()['title'](_0x193f35('0x1f86'))[_0x193f35('0xf8b')](_0x193f35('0x15b9')+_0x2831af['selectedWhatsappQueues'][_0x193f35('0x543')]+_0x193f35('0xcb4')+_0x193f35('0xd23'))[_0x193f35('0x217')](_0x193f35('0x110a'))[_0x193f35('0x21de')](_0x1a4e80)['ok']('OK')[_0x193f35('0x1e1f')](_0x193f35('0x468'));_0x29508d[_0x193f35('0x1cb7')](_0x2812b8)['then'](function(){const _0x10a908=_0x193f35;_0x2831af[_0x10a908('0x255d')][_0x10a908('0xa6a')](function(_0xbbd888){_0x92a810(_0xbbd888);}),_0x2831af[_0x10a908('0x255d')]=[];});}function _0x3ff748(){const _0x333c9d=_0x38c8ed;_0x2831af[_0x333c9d('0x255d')]=[];}function _0x407caa(){const _0x4fc300=_0x38c8ed;_0x2831af[_0x4fc300('0x255d')]=_0x2831af['whatsappQueues'][_0x4fc300('0x6aa')];}}const _0x178df2=_0x30a8b1;_0x48d25b[_0x566993('0x17bb')]=[_0x566993('0xccc'),'$translatePartialLoaderProvider'];function _0x48d25b(_0x465da4,_0x2bbbbe){const _0x2c2a0d=_0x566993;_0x465da4[_0x2c2a0d('0x1a49')](_0x2c2a0d('0xd15'),{'abstract':!![],'url':'/whatsapp'})['state'](_0x2c2a0d('0x1184'),{'url':_0x2c2a0d('0xb72'),'views':{'content@app':{'templateUrl':_0x106118,'controller':'WhatsappQueuesController\x20as\x20vm'}},'resolve':{'whatsappQueues':[_0x2c2a0d('0x2401'),_0x2c2a0d('0x1600'),function(_0xe1c33c,_0x249afa){const _0x1b715c=_0x2c2a0d;return _0x249afa[_0x1b715c('0x1b4e')](_0x1b715c('0x79b'))?_0xe1c33c['resolve'](_0x1b715c('0x1cd'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x1b715c('0x1769'),'channel':_0x1b715c('0x245'),'limit':0xa,'offset':0x0}):_0xe1c33c[_0x1b715c('0x155b')]('userProfile@getResources',{'id':_0x249afa[_0x1b715c('0x14d4')]()['userProfileId'],'section':'WhatsappQueues','fields':_0x1b715c('0xab9'),'sort':_0x1b715c('0x1769'),'channel':_0x1b715c('0x245'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2c2a0d('0x2401'),_0x2c2a0d('0x1600'),function(_0x526330,_0x100c38){const _0x1aafcb=_0x2c2a0d;return _0x100c38[_0x1aafcb('0x1b4e')](_0x1aafcb('0x79b'))?null:_0x526330[_0x1aafcb('0x155b')](_0x1aafcb('0x1f20'),{'fields':'id,name,crudPermissions','id':_0x100c38[_0x1aafcb('0x14d4')]()[_0x1aafcb('0x1946')]});}],'userProfileSection':['apiResolver',_0x2c2a0d('0x1600'),function(_0x24beff,_0x340e90){const _0x4ceeef=_0x2c2a0d;return _0x340e90[_0x4ceeef('0x1b4e')](_0x4ceeef('0x79b'))?null:_0x24beff[_0x4ceeef('0x155b')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x340e90['getCurrentUser']()['userProfileId'],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x2c2a0d('0x245')})[_0x2c2a0d('0x1a49')](_0x2c2a0d('0x1e51'),{'url':_0x2c2a0d('0xb4c'),'params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x516363,'controller':_0x2c2a0d('0x534')}},'resolve':{'whatsappQueue':[_0x2c2a0d('0x2401'),_0x2c2a0d('0x1caf'),function(_0x543b50,_0x26ed00){const _0x3cb140=_0x2c2a0d;return _0x543b50['resolve'](_0x3cb140('0x1cd'),{'fields':_0x3cb140('0xab9'),'id':_0x26ed00['id']});}],'userProfileSection':[_0x2c2a0d('0x2401'),_0x2c2a0d('0x1600'),function(_0x54e25a,_0x159a3b){const _0x3bf448=_0x2c2a0d;return _0x54e25a[_0x3bf448('0x155b')]('userProfileSection@get',{'fields':_0x3bf448('0x1348'),'userProfileId':_0x159a3b[_0x3bf448('0x14d4')]()[_0x3bf448('0x1946')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x2c2a0d('0x245')})[_0x2c2a0d('0x1a49')](_0x2c2a0d('0x1c42'),{'url':'/whatsappAccounts','views':{'content@app':{'templateUrl':_0x50342b,'controller':'WhatsappAccountsController\x20as\x20vm'}},'resolve':{'whatsappAccounts':[_0x2c2a0d('0x2401'),_0x2c2a0d('0x1600'),function(_0x444c56,_0x4c56a6){const _0x55a38e=_0x2c2a0d;return _0x4c56a6['hasRole']('admin')?_0x444c56['resolve'](_0x55a38e('0xcc6'),{'fields':_0x55a38e('0x1bcf'),'sort':_0x55a38e('0x1769'),'limit':0xa,'offset':0x0}):_0x444c56[_0x55a38e('0x155b')](_0x55a38e('0x14b3'),{'id':_0x4c56a6[_0x55a38e('0x14d4')]()['userProfileId'],'section':_0x55a38e('0x26e3'),'fields':_0x55a38e('0x1bcf'),'sort':_0x55a38e('0x1769'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2c2a0d('0x2401'),_0x2c2a0d('0x1600'),function(_0x269852,_0x1db4a4){const _0x16d67f=_0x2c2a0d;return _0x1db4a4[_0x16d67f('0x1b4e')](_0x16d67f('0x79b'))?null:_0x269852[_0x16d67f('0x155b')]('userProfile@get',{'fields':_0x16d67f('0x19dd'),'id':_0x1db4a4['getCurrentUser']()[_0x16d67f('0x1946')]});}],'userProfileSection':['apiResolver',_0x2c2a0d('0x1600'),function(_0xcb59dc,_0x5d5522){const _0x3fdb49=_0x2c2a0d;return _0x5d5522[_0x3fdb49('0x1b4e')](_0x3fdb49('0x79b'))?null:_0xcb59dc[_0x3fdb49('0x155b')](_0x3fdb49('0x40'),{'fields':_0x3fdb49('0x1348'),'userProfileId':_0x5d5522[_0x3fdb49('0x14d4')]()[_0x3fdb49('0x1946')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':'whatsapp'})['state'](_0x2c2a0d('0xaef'),{'url':_0x2c2a0d('0xb4c'),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x15e734,'controller':'WhatsappAccountController\x20as\x20vm'}},'resolve':{'whatsappAccount':[_0x2c2a0d('0x2401'),_0x2c2a0d('0x1caf'),function(_0x28f204,_0x1b866b){const _0x39b436=_0x2c2a0d;return _0x28f204[_0x39b436('0x155b')](_0x39b436('0xcc6'),{'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','id':_0x1b866b['id']});}],'userProfileSection':['apiResolver',_0x2c2a0d('0x1600'),function(_0x3d08fe,_0x351d9c){const _0x2a26bf=_0x2c2a0d;return _0x3d08fe[_0x2a26bf('0x155b')]('userProfileSection@get',{'fields':_0x2a26bf('0x1348'),'userProfileId':_0x351d9c[_0x2a26bf('0x14d4')]()[_0x2a26bf('0x1946')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x2c2a0d('0x245')}),_0x2bbbbe[_0x2c2a0d('0x1b1a')](_0x2c2a0d('0x40e'));}angular[_0x566993('0x22c4')](_0x566993('0xd15'),['ngCsv',_0x566993('0x1dd5'),_0x566993('0x1663'),'flow','mdColorPicker',_0x566993('0x26f0'),_0x566993('0x158f'),'ngAria',_0x566993('0x8a3'),'mdPickers',_0x566993('0x1698'),'mwFormViewer',_0x566993('0x1459'),_0x566993('0x24ca'),'angular-cron-jobs',_0x566993('0x1ce7'),'angularMaterialFormBuilder','material.components.expansionPanels','chart.js',_0x566993('0x2392'),_0x566993('0x227a')])['config'](_0x48d25b)[_0x566993('0x1e65')]('CreateOrEditWhatsappAccountDialogController',_0x5d7f6f)[_0x566993('0x1e65')](_0x566993('0x104c'),_0x20fc3b)[_0x566993('0x1e65')]('WhatsappAccountagentaddController',_0x3e9455)[_0x566993('0x1e65')](_0x566993('0x123b'),_0x501419)[_0x566993('0x1e65')]('EditWhatsappAccountAppamazonlexDialogController',_0x17a0f1)['controller'](_0x566993('0x1993'),_0x1b8bea)[_0x566993('0x1e65')]('EditWhatsappAccountAppcloseDialogController',_0x318d80)['controller']('EditWhatsappAccountAppdialogflowDialogController',_0x3da9c7)[_0x566993('0x1e65')]('EditWhatsappAccountAppgotoifDialogController',_0x154c15)['controller'](_0x566993('0xb27'),_0x4c58d9)[_0x566993('0x1e65')](_0x566993('0x1349'),_0x9f118d)['controller'](_0x566993('0x1618'),_0x4b610a)[_0x566993('0x1e65')]('EditWhatsappAccountAppqueueDialogController',_0x8b6f87)[_0x566993('0x1e65')]('EditWhatsappAccountAppsystemDialogController',_0x3e57a)[_0x566993('0x1e65')]('EditWhatsappAccountApptagDialogController',_0x538286)[_0x566993('0x1e65')](_0x566993('0x17d9'),_0x2a2169)['controller'](_0x566993('0xfd1'),_0x2cbb84)[_0x566993('0x1e65')](_0x566993('0x1f7d'),_0x26fdfc)[_0x566993('0x1e65')](_0x566993('0x1eb7'),_0x47cfa9)[_0x566993('0x1e65')](_0x566993('0xc1'),_0x28b694)[_0x566993('0x1e65')](_0x566993('0xbaa'),_0x2cf0c4)[_0x566993('0x1e65')](_0x566993('0x385'),_0x171575)['controller'](_0x566993('0x299'),_0x4bc3ca)[_0x566993('0x1e65')](_0x566993('0x1183'),_0x10e1c8)[_0x566993('0x1e65')](_0x566993('0x1dee'),_0x19f076)[_0x566993('0x1e65')](_0x566993('0xbdb'),_0x178df2);const _0x410b75=_0x21a6a1['p']+_0x566993('0x396'),_0x4e1788=_0x21a6a1['p']+_0x566993('0x277f'),_0x115214=_0x21a6a1['p']+'src/js/modules/core/layouts/content-with-toolbar.html/content-with-toolbar.html',_0x4e4340=_0x21a6a1['p']+'src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation.html',_0x377c22=_0x21a6a1['p']+'src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html/vertical-navigation-fullwidth-toolbar-2.html',_0x267783=_0x21a6a1['p']+_0x566993('0xd2'),_0x3475f7=_0x21a6a1['p']+_0x566993('0xaeb');_0x252682[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x1d31'),_0x566993('0x2166'),_0x566993('0x24b5'),'api',_0x566993('0x1600'),_0x566993('0x251')];function _0x252682(_0x4a8e67,_0x30aacc,_0x619582,_0x2f7da6,_0x13f23f,_0x4bd9fc,_0x457dda){const _0xd87f9c=_0x566993,_0x25fc9b=this;_0x25fc9b[_0xd87f9c('0x1a6c')]=![],_0x25fc9b[_0xd87f9c('0x174e')]=![],_0x25fc9b['baseUrl']=_0x13f23f[_0xd87f9c('0x19d8')];function _0x2652c7(){const _0x318e6d=_0xd87f9c;if(_0x4a8e67[_0x318e6d('0x197a')][_0x318e6d('0x1499')]&&_0x4a8e67[_0x318e6d('0x197a')][_0x318e6d('0x251b')])return _0x4bd9fc[_0x318e6d('0x1e2f')](),_0x25fc9b[_0x318e6d('0x1a6c')]=!![],_0x619582[_0x318e6d('0x14cd')](_0x318e6d('0x7c6'),_0x4a8e67[_0x318e6d('0x197a')][_0x318e6d('0x1499')]),_0x13f23f[_0x318e6d('0x166f')]['get']({'id':_0x4a8e67['params'][_0x318e6d('0x251b')]})[_0x318e6d('0x1964')][_0x318e6d('0x173b')](function(_0x2c1634){const _0x27e60a=_0x318e6d;_0x2c1634&&(_0x4bd9fc[_0x27e60a('0x5fd')](_0x2c1634),_0x4a8e67['go'](_0x27e60a('0x1057')));})['finally'](function(){const _0x2b1296=_0x318e6d;_0x25fc9b[_0x2b1296('0x1a6c')]=![];});else _0x4bd9fc['isLoggedIn']()&&_0x4a8e67['go']('app.dashboards.general');_0x25fc9b[_0x318e6d('0x174e')]=_0x457dda['googleSsoEnabled'];}function _0x5e4ce9(){const _0x45759b=_0xd87f9c;return _0x25fc9b[_0x45759b('0x1a6c')]=!![],_0x25fc9b['message']='',_0x4bd9fc[_0x45759b('0x1fee')](_0x25fc9b[_0x45759b('0x1556')])[_0x45759b('0x173b')](function(){const _0x884f8c=_0x45759b;return _0x4a8e67['go'](_0x884f8c('0x1057'));})[_0x45759b('0x103c')](function(_0x3d23c1){const _0x5ac7a0=_0x45759b;_0x25fc9b[_0x5ac7a0('0x67f')]=_0x3d23c1['data']?_0x3d23c1['data'][_0x5ac7a0('0x67f')]:_0x3d23c1[_0x5ac7a0('0x67f')];})[_0x45759b('0xf25')](function(){const _0xb46424=_0x45759b;_0x25fc9b[_0xb46424('0x1a6c')]=![];});}function _0x6206b2(_0x4fa532){const _0x3253b1=_0xd87f9c;_0x25fc9b[_0x3253b1('0x67f')]='',_0x30aacc['location'][_0x3253b1('0x165c')]=_0x4bd9fc['loginSSO'](_0x4fa532);}_0x25fc9b[_0xd87f9c('0x1fee')]=_0x5e4ce9,_0x25fc9b[_0xd87f9c('0x2253')]=_0x6206b2,_0x25fc9b[_0xd87f9c('0x2535')]=_0x2652c7,_0x25fc9b[_0xd87f9c('0x2535')]();}const _0x3cf41e=_0x252682;_0x5d1a0f[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x5d1a0f(_0xc5bccd,_0x5baed1){const _0x217519=_0x566993;_0xc5bccd['state'](_0x217519('0xb0a'),{'url':_0x217519('0x16f0'),'views':{'main@':{'templateUrl':_0x4e1788,'controller':_0x217519('0x839')},'content@app.login':{'templateUrl':_0x410b75,'controller':_0x217519('0xed9')}},'bodyClass':_0x217519('0x1fee')}),_0x5baed1['addPart'](_0x217519('0xe40'));}angular[_0x566993('0x22c4')](_0x566993('0xb0a'),[])['config'](_0x5d1a0f)['controller'](_0x566993('0x23b6'),_0x3cf41e);const _0x35de56=_0x21a6a1['p']+'src/js/modules/forgot/forgot.html/forgot.html';_0x5a519d['$inject']=['Auth',_0x566993('0x1558'),'$translate',_0x566993('0x2276'),_0x566993('0xbd4')];function _0x5a519d(_0x270f40,_0x5321b3,_0x233584,_0x3e09a8,_0x4d8033){const _0x5ed42e=_0x566993,_0xcd56e1=this;_0xcd56e1[_0x5ed42e('0x1556')]={},_0xcd56e1[_0x5ed42e('0x19d8')]=_0x4d8033['baseUrl'];function _0x471f8d(){const _0x1508ac=_0x5ed42e;_0x270f40['isLoggedIn']()&&_0x3e09a8['go'](_0x1508ac('0x1057'));}function _0x7e7e16(){const _0x558d50=_0x5ed42e;return _0x4d8033[_0x558d50('0x2059')][_0x558d50('0x4af')](_0xcd56e1[_0x558d50('0x1556')])[_0x558d50('0x1964')][_0x558d50('0x173b')](function(){const _0x2f9412=_0x558d50;_0x5321b3[_0x2f9412('0xdfe')]({'title':_0x233584[_0x2f9412('0x1467')](_0x2f9412('0x7d0')),'msg':_0x233584['instant'](_0x2f9412('0x24ea'))});})[_0x558d50('0x103c')](function(_0x4cd572){const _0x1cd035=_0x558d50;_0x4cd572&&_0x5321b3[_0x1cd035('0x15aa')]({'title':_0x233584[_0x1cd035('0x1467')](_0x1cd035('0xf99')),'msg':_0x4cd572[_0x1cd035('0x1e07')]?_0x4cd572['data'][_0x1cd035('0x67f')]||_0x4cd572['message']||_0x4cd572:_0x4cd572[_0x1cd035('0x67f')]||_0x4cd572});});}_0xcd56e1[_0x5ed42e('0x2806')]=_0x7e7e16,_0xcd56e1['onInit']=_0x471f8d;}const _0x35aa1e=_0x5a519d;_0x19a1be[_0x566993('0x17bb')]=[_0x566993('0xccc'),'$translatePartialLoaderProvider'];function _0x19a1be(_0x3a5139,_0x41ff7f){const _0xfb5d33=_0x566993;_0x3a5139[_0xfb5d33('0x1a49')](_0xfb5d33('0x7a8'),{'url':'/forgot','views':{'main@':{'templateUrl':_0x4e1788,'controller':_0xfb5d33('0x839')},'content@app.forgot':{'templateUrl':_0x35de56,'controller':_0xfb5d33('0x86f')}},'bodyClass':'forgot'}),_0x41ff7f['addPart'](_0xfb5d33('0x26d3'));}angular[_0x566993('0x22c4')]('app.forgot',[])[_0x566993('0xea9')](_0x19a1be)['controller'](_0x566993('0x147c'),_0x35aa1e);const _0x46e42e=_0x21a6a1['p']+_0x566993('0x992');_0x477914[_0x566993('0x17bb')]=[_0x566993('0x1600'),_0x566993('0x1558'),_0x566993('0x638'),_0x566993('0x2276'),_0x566993('0xbd4'),'$stateParams'];function _0x477914(_0x31374d,_0x33b1d2,_0x52d3fc,_0x10ce8f,_0x52a76a,_0x5bd74c){const _0x1fef84=_0x566993,_0x3567bd=this;_0x3567bd[_0x1fef84('0x1556')]={'token':_0x5bd74c[_0x1fef84('0x1499')]},_0x3567bd[_0x1fef84('0x251')]={},_0x3567bd['baseUrl']=_0x52a76a['baseUrl'];function _0x55ac82(){const _0x45a888=_0x1fef84;return _0x31374d[_0x45a888('0x1c0f')]()&&_0x10ce8f['go'](_0x45a888('0x1057')),_0x52a76a[_0x45a888('0x251')][_0x45a888('0x3c1')]({'id':0x1})[_0x45a888('0x1964')][_0x45a888('0x173b')](function(_0x5b237e){const _0x3ad0ff=_0x45a888;_0x3567bd[_0x3ad0ff('0x251')]=_0x5b237e,_0x3567bd[_0x3ad0ff('0x644')]=_0x3567bd[_0x3ad0ff('0x251')][_0x3ad0ff('0xde2')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x45a888('0x103c')](function(_0x231beb){const _0x1144e4=_0x45a888;_0x231beb&&_0x33b1d2[_0x1144e4('0x15aa')]({'title':'Error','msg':_0x231beb['data']?_0x231beb[_0x1144e4('0x1e07')][_0x1144e4('0x67f')]||_0x231beb[_0x1144e4('0x67f')]||_0x231beb:_0x231beb[_0x1144e4('0x67f')]||_0x231beb});});}function _0x4aa36d(){const _0x428308=_0x1fef84;return _0x52a76a[_0x428308('0x2059')][_0x428308('0x151')](_0x3567bd[_0x428308('0x1556')])['$promise'][_0x428308('0x173b')](function(){const _0x284279=_0x428308;_0x33b1d2[_0x284279('0xdfe')]({'title':_0x52d3fc['instant'](_0x284279('0x1c18')),'msg':_0x52d3fc[_0x284279('0x1467')](_0x284279('0x1219'))}),_0x10ce8f['go'](_0x284279('0xb0a'));})[_0x428308('0x103c')](function(_0x170be2){const _0x3b088a=_0x428308;_0x170be2&&_0x33b1d2[_0x3b088a('0x15aa')]({'title':_0x52d3fc[_0x3b088a('0x1467')]('RESETPASSWORD.PASSWORD_RESET_ERROR'),'msg':_0x170be2[_0x3b088a('0x1e07')]?_0x170be2[_0x3b088a('0x1e07')]['message']||_0x170be2[_0x3b088a('0x67f')]||_0x170be2:_0x170be2[_0x3b088a('0x67f')]||_0x170be2});});}_0x3567bd[_0x1fef84('0x922')]=_0x4aa36d,_0x3567bd[_0x1fef84('0x2535')]=_0x55ac82;}const _0x3a1812=_0x477914;_0x4ab796['$inject']=['$stateProvider',_0x566993('0x8ca')];function _0x4ab796(_0x14c91f,_0x23b010){const _0x4c8792=_0x566993;_0x14c91f['state']('app.reset',{'url':_0x4c8792('0x1d56'),'views':{'main@':{'templateUrl':_0x4e1788,'controller':_0x4c8792('0x839')},'content@app.reset':{'templateUrl':_0x46e42e,'controller':_0x4c8792('0x23c0')}},'bodyClass':'reset'}),_0x23b010[_0x4c8792('0x1b1a')]('app/reset');}angular[_0x566993('0x22c4')](_0x566993('0x1f14'),[])[_0x566993('0xea9')](_0x4ab796)[_0x566993('0x1e65')]('ResetPasswordController',_0x3a1812);const _0x316a60=_0x21a6a1['p']+_0x566993('0x24ce');_0x56db52[_0x566993('0x17bb')]=[_0x566993('0x2276'),_0x566993('0x24b5'),'$q',_0x566993('0x1009')];function _0x56db52(_0x372992,_0x21109d,_0x407cc5,_0x4d02e1){const _0xf775a1=_0x566993,_0x1fc037=this;function _0x4be9c5(_0x373867){const _0x31475c=a0_0xde5e;let _0x47dfdb=[];const _0x41d60c=_0x4d02e1[_0x31475c('0x19e')](),_0x202c8b=_0x407cc5[_0x31475c('0x112e')]();for(let _0x545bad=0x0;_0x545bad<_0x41d60c[_0x31475c('0x543')];_0x545bad+=0x1){_0x41d60c[_0x545bad]['uisref']&&_0x47dfdb[_0x31475c('0x18bb')](_0x41d60c[_0x545bad]);}return _0x373867&&(_0x47dfdb=_0x47dfdb[_0x31475c('0x278d')](function(_0x383cc5){const _0x2e14f7=_0x31475c;if(_0x383cc5[_0x2e14f7('0x20d6')][_0x2e14f7('0x1e68')]()[_0x2e14f7('0x2814')](_0x373867[_0x2e14f7('0x1e68')]()))return!![];})),_0x21109d(function(){_0x202c8b['resolve'](_0x47dfdb);},0x3e8),_0x202c8b[_0x31475c('0x2219')];}function _0x58c802(_0x501176){const _0x1d2da4=a0_0xde5e;_0x501176[_0x1d2da4('0x4e0')]&&(_0x501176[_0x1d2da4('0x819')]?_0x372992['go'](_0x501176[_0x1d2da4('0x1a49')],_0x501176[_0x1d2da4('0x819')]):_0x372992['go'](_0x501176[_0x1d2da4('0x1a49')]));}_0x1fc037[_0xf775a1('0x23e7')]=_0x4be9c5,_0x1fc037['searchResultClick']=_0x58c802;}const _0x540d69=_0x56db52;_0xc5202e[_0x566993('0x17bb')]=['$stateProvider',_0x566993('0x8ca')];function _0xc5202e(_0x185694,_0x13c31e){const _0x3270b4=_0x566993;_0x185694[_0x3270b4('0x1a49')](_0x3270b4('0x245d'),{'url':_0x3270b4('0x1159'),'views':{'main@':{'templateUrl':_0x4e1788,'controller':_0x3270b4('0x839')},'content@app.errors_error-404':{'templateUrl':_0x316a60,'controller':_0x3270b4('0x25fd')}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':_0x3270b4('0x2461')}),_0x13c31e[_0x3270b4('0x1b1a')](_0x3270b4('0x260'));}angular['module'](_0x566993('0x45c'),[])[_0x566993('0xea9')](_0xc5202e)[_0x566993('0x1e65')](_0x566993('0xb23'),_0x540d69);const _0x466480=_0x21a6a1['p']+'src/js/modules/errors/500/error-500.html/error-500.html';_0x23cba1[_0x566993('0x17bb')]=['$state',_0x566993('0xa91')];function _0x23cba1(_0x2cc4ce,_0x5ab7ea){const _0x1478f2=_0x566993,_0x1bf936=this;function _0x5ced6e(){const _0x486fe4=a0_0xde5e;_0x5ab7ea[_0x486fe4('0x1d67')](_0x486fe4('0x1d0d'),_0x1bf936[_0x486fe4('0x15aa')])[_0x486fe4('0x173b')](function(_0x2ff131){const _0x37644b=_0x486fe4;_0x1bf936[_0x37644b('0x482')]=!![],_0x2ff131[_0x37644b('0x1e07')]&&(_0x1bf936[_0x37644b('0x20c6')]=_0x2ff131[_0x37644b('0x1e07')]['id']);},function(){_0x1bf936['send']=![];});}_0x1bf936[_0x1478f2('0x20c6')]='',_0x1bf936[_0x1478f2('0x482')]=![],_0x1bf936[_0x1478f2('0x15aa')]=_0x2cc4ce[_0x1478f2('0x197a')],_0x1bf936[_0x1478f2('0x12f6')]=_0x5ced6e;}const _0x3585ad=_0x23cba1;_0x497ac4[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x8ca')];function _0x497ac4(_0x358106,_0x3b9955){const _0x3d11c7=_0x566993;_0x358106[_0x3d11c7('0x1a49')]('app.errors_error-500',{'url':_0x3d11c7('0x2197'),'views':{'main@':{'templateUrl':_0x4e1788,'controller':_0x3d11c7('0x839')},'content@app.errors_error-500':{'templateUrl':_0x466480,'controller':_0x3d11c7('0x256')}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':_0x3d11c7('0x2737')}),_0x3b9955[_0x3d11c7('0x1b1a')]('app/errors/500');}angular[_0x566993('0x22c4')]('app.errors.error-500',[])['config'](_0x497ac4)[_0x566993('0x1e65')]('Error500Controller',_0x3585ad);;angular[_0x566993('0x22c4')](_0x566993('0x1a9a'),[_0x566993('0x45c'),_0x566993('0x2165')]),_0x10e2e9[_0x566993('0x17bb')]=[_0x566993('0xd80')];function _0x10e2e9(_0x5ace71){const _0x20c9ee=_0x566993,_0x215964={};return _0x215964[_0x20c9ee('0x19d8')]=!![]?_0x20c9ee('0x1b3f'):0x0,_0x215964['auth']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2743'),{},{'local':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2743')},'forgot':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xb54')},'reset':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20f8'),'params':{'token':_0x20c9ee('0x489')}},'user':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1255'),'params':{'token':_0x20c9ee('0x489')}},'google':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'auth/google'}}),_0x215964[_0x20c9ee('0x1681')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1681')),_0x215964[_0x20c9ee('0x48c')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x48c'),{},{'startMonitor':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x79a'),'params':{'uniqueid':_0x20c9ee('0x419')}},'stopMonitor':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x13b3'),'params':{'uniqueid':_0x20c9ee('0x419')}},'getVoiceChannels':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1bba')},'getVoiceQueues':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/voice/queues'},'getChatQueues':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x16da')},'getMailQueues':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2615')},'getSmsQueues':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x813')},'getWhatsappQueues':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x813')},'getOpenchannelQueues':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1395')},'getFaxQueues':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x81b')},'getVoiceQueuesPreview':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe24')},'getVoiceQueuesChannels':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x635')},'getVoiceQueuesChannel':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/voice/queues/channels/:uniqueid'},'getVoiceQueuesChannelHangup':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1948')},'getVoiceQueuesChannelRedirect':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x120b')},'getOutbound':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0xb4')},'getOutboundChannels':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'rpc/outbound/channels'},'getAgents':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xad0')},'setAgentCapacity':{'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x28d'),'params':{'id':_0x20c9ee('0x2702')}},'getTelephones':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x306')},'getTrunks':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1774')},'getCampaigns':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2301')},'getMailAccounts':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'rpc/mail/accounts'},'getFaxAccounts':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x19af')},'getChatQueuesWaitingInteractions':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1849')},'getMailQueuesWaitingInteractions':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x132')},'getOpenchannelQueuesWaitingInteractions':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'rpc/openchannel/queues/waitinginteractions'},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/openchannel/queues/:id/waitinginteractions'},'getSmsQueuesWaitingInteractions':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/sms/queues/waitinginteractions'},'getFaxQueuesWaitingInteractions':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c57')},'getWhatsappQueuesWaitingInteractions':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/whatsapp/queues/waitinginteractions'},'mailQueueNotify':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/mail/queues/:id/notify','params':{'id':'@id'}},'chatQueueNotify':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2032'),'params':{'id':_0x20c9ee('0x2702')}},'faxQueueNotify':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/fax/queues/:id/notify','params':{'id':_0x20c9ee('0x2702')}},'smsQueueNotify':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/sms/queues/:id/notify','params':{'id':'@id'}},'openchannelQueueNotify':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'rpc/openchannel/queues/:id/notify','params':{'id':_0x20c9ee('0x2702')}},'agentNotify':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x12b3'),'params':{'id':'@id'}}}),_0x215964[_0x20c9ee('0x516')]=_0x5ace71(_0x215964['baseUrl']+'version',{},{'fetch':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x111c')},'reset':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'version/reset'},'pull':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x122a')},'restart':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c20')},'migrations':{'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x27e9')}}),_0x215964[_0x20c9ee('0x1ed')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ed'),{},{'killProcess':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd70'),'params':{'pid':_0x20c9ee('0x8eb')}}}),_0x215964[_0x20c9ee('0x278f')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1f60'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put','isArray':!![]}}),_0x215964[_0x20c9ee('0x166f')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xc94'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964['baseUrl']+'users/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'bulkCreate':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x2158'),'isArray':!![]},'addContacts':{'isArray':!![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/contacts'},'changePassword':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x64e')},'addQueues':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22bf')},'removeQueues':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/queues'},'addAvatar':{'isArray':![],'method':'post','url':_0x215964['baseUrl']+'users/:id/avatar'},'getAvatar':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24d7')},'getContacts':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/contacts'},'getQueues':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22bf')},'getVoiceQueuesRt':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x189f')},'getGroups':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'users/:id/groups'},'getRecordings':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/recordings'},'getScreenRecordings':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1e1')},'getChatInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x19bf')},'getOpenchannelInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xc98')},'getMailInteractions':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x954')},'getSmsInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/sms/interactions'},'getFaxInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd6c')},'getWhatsappInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xa30')},'login':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x6a0')},'logout':{'isArray':![],'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x227')},'pause':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2355')},'unpause':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1289')},'getTeams':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xffd')},'addTeams':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/teams'},'removeTeams':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xffd')},'getLists':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1fc4')},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1906')},'addChatInteractions':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x179')},'removeChatInteractions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/chat_interactions'},'addMailInteractions':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'users/:id/mail_interactions'},'removeMailInteractions':{'isArray':![],'method':'delete','url':_0x215964['baseUrl']+_0x20c9ee('0x27be')},'addFaxInteractions':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2475')},'removeFaxInteractions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2475')},'addSmsInteractions':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xf30')},'removeSmsInteractions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf30')},'addOpenchannelInteractions':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x17c0')},'removeOpenchannelInteractions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964['baseUrl']+_0x20c9ee('0x17c0')},'addWhatsappInteractions':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x115f')},'removeWhatsappInteractions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964['baseUrl']+_0x20c9ee('0x115f')},'getVoicePrefixes':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x24ab')},'getFaxAccounts':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1779')},'addFaxAccounts':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1779')},'removeFaxAccounts':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1779')},'getMailAccounts':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1782')},'addMailAccounts':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1782')},'removeMailAccounts':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1782')},'getOpenchannelAccounts':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/openchannel_accounts'},'addOpenchannelAccounts':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x672')},'removeOpenchannelAccounts':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/openchannel_accounts'},'getSmsAccounts':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/sms_accounts'},'addSmsAccounts':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x977')},'removeSmsAccounts':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x977')},'getChatWebsites':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/chat_websites'},'addChatWebsites':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1222')},'removeChatWebsites':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1222')},'getWhatsappAccounts':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2711')},'addWhatsappAccounts':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2711')},'removeWhatsappAccounts':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2711')},'getSquareProjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/square_projects'},'addSquareProjects':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2347')},'removeSquareProjects':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2347')},'getScheduledCalls':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x25fa')},'getApiKey':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x199c')},'createApiKey':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x199c')},'removeApiKey':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+'users/:id/api_key'},'whoami':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x139f')}}),_0x215964[_0x20c9ee('0x103b')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c34'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x403')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x2349'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0xf01')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x14a3'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1216')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe5e'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1630')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x268a'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x4e4')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1563'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addApplications':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1609')}}),_0x215964[_0x20c9ee('0x1bb5')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x18cc'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1354')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x9f8'),'params':{'includeAll':'@includeAll'}},'addSound':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x329')},'removeSound':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x7dc')},'getSounds':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/mohs/:id/sounds'}}),_0x215964[_0x20c9ee('0x1282')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe85'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1850')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'voice/queues/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getHoppers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x20f1')},'getHopperHistories':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x14f2')},'getHopperFinals':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x146f')},'getHopperBlacks':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'voice/queues/:id/hopper_black'},'getTeams':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x55f')},'addTeams':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x55f')},'removeTeams':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x55f')},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/queues/:id/users'},'getMembers':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x242')},'getLists':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20e0')},'addLists':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'voice/queues/:id/lists'},'removeLists':{'isArray':!![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/queues/:id/lists'},'getBlackLists':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1080')},'addBlackLists':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/queues/:id/blacklists'},'removeBlackLists':{'isArray':!![],'method':_0x20c9ee('0x15e8'),'url':_0x215964['baseUrl']+'voice/queues/:id/blacklists'}}),_0x215964[_0x20c9ee('0x14c3')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2110'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x261f')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22a8'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'download':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'voice/recordings/:id/download','responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0xd5d7b,_0xc19270){const _0x537dc6=_0x20c9ee,_0x4d128f=_0xc19270();return{'type':_0x4d128f[_0x537dc6('0x9fa')],'length':_0x4d128f['content-length'],'buffer':_0xd5d7b};}},'downloads':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2826')},'runTranscribe':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x5d')},'downloadTranscribe':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x5d'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x482c73,_0x2059d2){const _0x1d5e87=_0x20c9ee,_0x31e9d8=_0x2059d2();return{'type':_0x31e9d8['content-type'],'length':_0x31e9d8[_0x1d5e87('0xc30')],'buffer':_0x482c73};}}}),_0x215964[_0x20c9ee('0x195a')]=_0x5ace71(_0x215964['baseUrl']+'screen/recordings/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0xcfc')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'screen/recordings/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xee'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x534c6a,_0x216655){const _0xf0e290=_0x20c9ee,_0x124317=_0x216655();return{'type':_0x124317[_0xf0e290('0x9fa')],'length':_0x124317['content-length'],'buffer':_0x534c6a};}}}),_0x215964['voiceMail']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'voice/mails/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/mails/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'voice/mails/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'voice/mails/:id/messages'}}),_0x215964['voiceMailMessage']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'voice/mails/messages/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1464')},'clone':{'method':'post','url':_0x215964['baseUrl']+'voice/mails/messages/:id/clone','params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1194'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x28c023,_0x55ec33){const _0x1e3e21=_0x20c9ee,_0x1bbb54=_0x55ec33();return{'type':_0x1bbb54[_0x1e3e21('0x9fa')],'length':_0x1bbb54['content-length'],'buffer':_0x28c023};}}}),_0x215964[_0x20c9ee('0x250f')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24dc'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1b1d')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/calls/reports/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x242c')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x1c61'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x87e')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/dials/reports/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x934')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x253c'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/agents/reports/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x37b'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1c98')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'voice/queues/reports/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'voice/queues/reports/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/queues/reports/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getVoiceQueuesReport':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1f10')}}),_0x215964[_0x20c9ee('0x212')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'members/reports/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2528')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1553'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x15b7')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x280a'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x19ea')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x8b1'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1a27')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'voice/transfers/reports/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1340')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/transfers/reports/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0xfac')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x297'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd3f')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ac4'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['mailAccount']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0xe52'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x13b7')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1daa'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addDisposition':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x832')},'getDispositions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x832')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x832')},'addAnswer':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x8b0')},'getAnswers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8b0')},'removeAnswers':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8b0')},'getImap':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1d1e')},'addImap':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'mail/accounts/:id/in_servers'},'removeImap':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'mail/accounts/:id/in_servers'},'getSmtp':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x18f0')},'addSmtp':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x18f0')},'removeSmtp':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'mail/accounts/:id/out_servers'},'addInteraction':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2459')},'getInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2459')},'addApplications':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8f0')},'getApplications':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8f0')},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x17e0')},'send':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'mail/accounts/:id/send'},'verifySmtp':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x37d')},'addAgents':{'isArray':!![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x475')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x475')},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x475')}}),_0x215964[_0x20c9ee('0x1b0')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2170'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1504')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x266e'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22b9')},'getTeams':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1370')},'addTeams':{'isArray':!![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1370')},'removeTeams':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1370')},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x85b')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964['baseUrl']+_0x20c9ee('0x85b')},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'mail/queues/:id/users'}}),_0x215964[_0x20c9ee('0x1f8e')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1fcc'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ea')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x17de'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['mailInteraction']=_0x5ace71(_0x215964['baseUrl']+'mail/interactions/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1590')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x882'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addMessage':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x21da')},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'mail/interactions/:id/messages'},'addTags':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x163e')},'removeTags':{'isArray':![],'method':'delete','url':_0x215964['baseUrl']+_0x20c9ee('0x163e')},'download':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0xddd'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x1170cd,_0x201204){const _0x232342=_0x20c9ee,_0x378900=_0x201204();return{'type':_0x378900['content-type'],'length':_0x378900[_0x232342('0xc30')],'buffer':_0x1170cd};}}}),_0x215964['mailMessage']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x17bd'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1872')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x13ee'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'accept':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20e6')},'reject':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x243d')},'download':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1901'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x23cc14,_0x49f964){const _0x102ec9=_0x20c9ee,_0x3d31e0=_0x49f964();return{'type':_0x3d31e0[_0x102ec9('0x9fa')],'length':_0x3d31e0[_0x102ec9('0xc30')],'buffer':_0x23cc14};}}}),_0x215964[_0x20c9ee('0x4a4')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x216d'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x7e0')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'mail/applications/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['mailQueueReport']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8b8'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'mail/reports/queue/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'mail/reports/queue/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x10ea')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'dashboards/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'dashboards/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1955'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addItem':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xaaa')},'getItems':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xaaa')}}),_0x215964[_0x20c9ee('0x1125')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x82c'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1838')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'dashboards/items/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['faxAccount']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xa01'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1605')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x282'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addDisposition':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2058')},'getDispositions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2058')},'removeDispositions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2058')},'addAnswer':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x4e8')},'getAnswers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'fax/accounts/:id/canned_answers'},'removeAnswers':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x4e8')},'addInteraction':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2434')},'getInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'fax/accounts/:id/interactions'},'addApplications':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'fax/accounts/:id/applications'},'getApplications':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xb9')},'addAccountApplications':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x153e')},'updateAccountApplications':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2834')},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x317')},'send':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x156d')},'addAgents':{'isArray':!![],'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x11c6')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'fax/accounts/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'fax/accounts/:id/users'}}),_0x215964[_0x20c9ee('0x1ebd')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'fax/applications/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1231')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'fax/applications/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x2601')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x52b'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'fax/interactions/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x280b'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addMessage':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'fax/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xb42')},'addTags':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd1a')},'removeTags':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'fax/interactions/:id/tags'},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x59a'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x574012,_0x34ac1f){const _0x1fde5a=_0x20c9ee,_0x56049e=_0x34ac1f();return{'type':_0x56049e['content-type'],'length':_0x56049e[_0x1fde5a('0xc30')],'buffer':_0x574012};}}}),_0x215964['faxMessage']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1bc5'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1215')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf4'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'accept':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+'fax/messages/:id/accept'},'reject':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x14df')},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x27d0'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x4c4ef8,_0x5bce65){const _0x40c370=_0x20c9ee,_0x30f583=_0x5bce65();return{'type':_0x30f583[_0x40c370('0x9fa')],'length':_0x30f583['content-length'],'buffer':_0x4c4ef8};}}}),_0x215964['faxQueue']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x19ab'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1410')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x144c'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getMembers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x167a')},'getTeams':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1d1a')},'addTeams':{'isArray':!![],'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x1d1a')},'removeTeams':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+'fax/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x24ae')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24ae')},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24ae')}}),_0x215964[_0x20c9ee('0x12b7')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x401'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'fax/reports/queue/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1261'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1e37')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x125d'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x6f0')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x200e'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'sms/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x10d6')},'removeDispositions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'sms/accounts/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'sms/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x196f')},'removeAnswers':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x196f')},'notify':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22c5')},'addApplications':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22dc')},'getApplications':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22dc')},'getInteractions':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+'sms/accounts/:id/interactions'},'send':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1472')},'status':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xdde')},'statusGet':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'sms/accounts/:id/status'},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xf26')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf26')},'getAgents':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'sms/accounts/:id/users'}}),_0x215964['smsApplication']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0xfbd'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x10c1')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x219b'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1145')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'sms/interactions/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2483')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x9b4'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addMessage':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1d35')},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1d35')},'addTags':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'sms/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x408')},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c94'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x4d1712,_0x2a8132){const _0x34d21b=_0x20c9ee,_0x4ed7ca=_0x2a8132();return{'type':_0x4ed7ca[_0x34d21b('0x9fa')],'length':_0x4ed7ca['content-length'],'buffer':_0x4d1712};}}}),_0x215964[_0x20c9ee('0x27a2')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1649'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x277b')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x21d2'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'accept':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf21')},'reject':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964['baseUrl']+_0x20c9ee('0x181e')},'status':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x27b4')}}),_0x215964[_0x20c9ee('0xe99')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1866'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ed8')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xa26'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getMembers':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x812')},'getTeams':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x12ee')},'addTeams':{'isArray':!![],'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x12ee')},'removeTeams':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x12ee')},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1193')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1193')},'getAgents':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'sms/queues/:id/users'}}),_0x215964[_0x20c9ee('0x13f1')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x2762'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x26c6')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x24c'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addDisposition':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x16c')},'getDispositions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x16c')},'removeDispositions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x16c')},'addAnswer':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x513')},'getAnswers':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x513')},'removeAnswers':{'isArray':![],'method':'delete','url':_0x215964['baseUrl']+_0x20c9ee('0x513')},'notify':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x69c')},'addApplications':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2781')},'getApplications':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2781')},'getInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1690')},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2460')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2460')},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2460')},'send':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x667')}}),_0x215964[_0x20c9ee('0x1d4f')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'openchannel/applications/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x14cb')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x17d0'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x2376')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x993'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x6e6')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xbba'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addMessage':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8c6')},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8c6')},'addTags':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x520')},'removeTags':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964['baseUrl']+'openchannel/interactions/:id/tags'},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x116b'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x48f551,_0x336cb2){const _0x2e6ce9=_0x20c9ee,_0x4f431c=_0x336cb2();return{'type':_0x4f431c[_0x2e6ce9('0x9fa')],'length':_0x4f431c[_0x2e6ce9('0xc30')],'buffer':_0x48f551};}}}),_0x215964[_0x20c9ee('0x289')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24f'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1106')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xb55'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'accept':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1137')},'reject':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8a5')}}),_0x215964[_0x20c9ee('0x1611')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'openchannel/queues/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x295')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x918'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getMembers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1cf9')},'getTeams':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'openchannel/queues/:id/teams'},'addTeams':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xee1')},'removeTeams':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xee1')},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'openchannel/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x246e')},'getAgents':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x246e')}}),_0x215964[_0x20c9ee('0x1740')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x240b'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x27e0')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x616'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addDisposition':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1bcb')},'getDispositions':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1bcb')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x215964['baseUrl']+'chat/websites/:id/dispositions'},'addAnswer':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20e8')},'getAnswers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20e8')},'removeAnswers':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/websites/:id/canned_answers'},'addLogo':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x113')},'addAvatar':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1660')},'addCustomerAvatar':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xcff')},'addSystemAvatar':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x6a6')},'getLogo':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/websites/:id/logo'},'getAvatar':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/websites/:id/avatar'},'getCustomerAvatar':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0xcff')},'getSystemAvatar':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/websites/:id/system_avatar'},'notify':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'chat/websites/:id/notify'},'offline':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1b8c')},'addInteraction':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x26c4')},'getInteractions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x26c4')},'getSnippet':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1d29')},'addApplications':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x167f')},'getApplications':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x167f')},'addProactiveActions':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xcfb')},'getProactiveActions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xcfb')},'getFields':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0xb4b')},'getOfflineMessages':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2768')},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1dc9')},'removeAgents':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1dc9')},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1dc9')}}),_0x215964[_0x20c9ee('0x971')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x15b0'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x35b')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x78b'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x15c1')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0xb92'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/applications/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1dfb'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x22a3')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'chat/interactions/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x16be')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1d7c'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'createVidaooSession':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/interactions/:id/vidaoo'},'customUpdate':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x139e')},'abandon':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964['baseUrl']+_0x20c9ee('0x208c')},'attachmentUpload':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/interactions/:id/attachment_upload'},'attachmentDownload':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'chat/interactions/:id/attachment_download'},'close':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/interactions/:id/close'},'addMessage':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/interactions/:id/messages'},'getMyMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/interactions/:id/my_messages'},'addTags':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/interactions/:id/tags'},'removeTags':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x6b1')},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c1f'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0xfc0d16,_0xfaf29c){const _0x5a42f6=_0x20c9ee,_0x33faf6=_0xfaf29c();return{'type':_0x33faf6['content-type'],'length':_0x33faf6[_0x5a42f6('0xc30')],'buffer':_0xfc0d16};}}}),_0x215964['chatMessage']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1bb6'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/messages/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xa8e'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'accept':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1b85')},'reject':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x26a0')}}),_0x215964[_0x20c9ee('0x138d')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x1bb3'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xa3a')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0xd6'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x940')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x1b5'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/queues/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1244'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x79e')},'getTeams':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x12c4')},'addTeams':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x12c4')},'removeTeams':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964['baseUrl']+_0x20c9ee('0x12c4')},'addAgents':{'isArray':!![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x245f')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/queues/:id/users'},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/queues/:id/users'}}),_0x215964[_0x20c9ee('0x1462')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1a3e'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1748')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x274c'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getUnread':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20ff')},'addMembers':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1771')},'getMembers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1771')},'removeMembers':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1771')},'addMessage':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd4e')},'getMessages':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd4e')}}),_0x215964[_0x20c9ee('0x13be')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1a53'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x188a')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2757'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x1904')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1557'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22ef')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'cm/companies/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'addContacts':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'cm/companies/:id/contacts'},'getContacts':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xae0')}}),_0x215964[_0x20c9ee('0x1197')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1d86'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x253b')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x300'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'merge':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x42d')},'bulkCreate':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'cm/contacts/create_many'},'getTags':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x5b1')},'setTags':{'isArray':!![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x5b1')},'getHoppers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'cm/contacts/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x652')},'getHopperFinals':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1465')},'getJscriptySessions':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2083')},'uploadCsv':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c36')},'upload':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x10a')},'import':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x170b')}}),_0x215964['cmHopper']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x61a'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x337')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'cm/hopper/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getPreview':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xc58')},'getOpenContacts':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1312')}}),_0x215964['cmHopperBlack']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x77'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x241d')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'cm/hopper_black/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1ccf')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x677'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1dcc')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x9f9'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1db2')},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x3ce')},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x26d4')},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x21e1')},'checkContactHopper':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'cm/hopper_final/checkContactHopper'}}),_0x215964['cmHopperHistory']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x204'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x252')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1ae'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x157a')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'cm/custom_fields/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x11e9')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'cm/custom_fields/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x106d')]=_0x5ace71(_0x215964['baseUrl']+'actions/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'actions/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'actions/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['automation']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2281'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1912')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'automations/:id/clone','params':{'includeAll':'@includeAll'}},'addConditions':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x6f4')},'getConditions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x6f4')},'addActions':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'automations/:id/actions'},'getActions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x11b')}}),_0x215964[_0x20c9ee('0x2849')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'canned_answers/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x9c2')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1eec'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x2766')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1e96'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x4de')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1f5'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1adb')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'conditions/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x898')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1476'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x55a')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x698'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xaf2')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x21c7'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addInterval':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x835')},'getIntervals':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x835')},'addIntervals':{'isArray':!![],'method':'post','url':_0x215964['baseUrl']+'intervals/:id/sub_intervals/create_many'}}),_0x215964[_0x20c9ee('0x1751')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'pauses/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'pauses/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xb7'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x84e')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x1075'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x593')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2662'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0xd60')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0xf0d'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2384')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1e5d'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0xf50')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'schedules/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x5fb')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2a1'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'run':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x6f2')}}),_0x215964[_0x20c9ee('0x156f')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xc20'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'sounds/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'sounds/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1874'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x4ab0c1,_0x4330a8){const _0x5a2d12=_0x20c9ee,_0x3b76b4=_0x4330a8();return{'type':_0x3b76b4[_0x5a2d12('0x9fa')],'length':_0x3b76b4[_0x5a2d12('0xc30')],'buffer':_0x4ab0c1};}},'delete':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xc20')}}),_0x215964[_0x20c9ee('0x23b4')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1701'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1226')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2169'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x1a98')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xbe7'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x20a2')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x21a0'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x237')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'triggers/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x353')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x154c'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addAllCondition':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1e03')},'addAnyCondition':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'triggers/:id/any_conditions'},'getAllConditions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1e03')},'getAnyConditions':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x20a3')},'addAction':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1491')},'getActions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1491')}}),_0x215964[_0x20c9ee('0x1b56')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'variables/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'variables/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x7de'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['integration']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0xee9'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'integrations/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1f04'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['integrationReport']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x2cf'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1a34')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x523'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1ca6')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x72e'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x1ba0')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x431'),'params':{'includeAll':'@includeAll'}},'preview':{'isArray':!![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x127f')},'run':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'analytics/custom_reports/:id/run'},'query':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c7b')}}),_0x215964[_0x20c9ee('0x1d73')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c92'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x4ab')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'analytics/default_reports/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'preview':{'isArray':!![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'analytics/default_reports/:id/preview'},'run':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x21f0')},'query':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'analytics/default_reports/:id/query'}}),_0x215964[_0x20c9ee('0x1b3a')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1520'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x573')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x107b'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'analytics/extracted_reports/:id/download','responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x45f3c5,_0x5bbe19){const _0x248561=_0x20c9ee,_0x11019e=_0x5bbe19();return{'type':_0x11019e[_0x248561('0x9fa')],'length':_0x11019e[_0x248561('0xc30')],'buffer':_0x45f3c5};}}}),_0x215964[_0x20c9ee('0x2061')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x11b2'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1f44')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'analytics/metrics/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1ddd')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'analytics/field_reports/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2354')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x608'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'bulkCreate':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x936'),'isArray':!![]},'bulkDestroy':{'method':_0x20c9ee('0x15e8'),'url':_0x215964['baseUrl']+_0x20c9ee('0xc25'),'isArray':!![]},'addFields':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1b64')}}),_0x215964[_0x20c9ee('0x8de')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x276'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964['baseUrl']+'analytics/tree_reports/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x17d'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x273a')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xc5e'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x26f5')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/salesforce/accounts/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getConfigurations':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2209')},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/salesforce/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1a1b')}}),_0x215964[_0x20c9ee('0x2226')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20c8'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2b')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2581'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/salesforce/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1b46')},'getDescriptions':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x187e')}}),_0x215964[_0x20c9ee('0xcc7')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1dd7'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x986')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'integrations/salesforce/fields/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x2584')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe73'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1455')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd96'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getConfigurations':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x655')},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'integrations/sugarcrm/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x173f')}}),_0x215964[_0x20c9ee('0xc0f')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x184b'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0xf8e')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2783'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/sugarcrm/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1e61')},'getDescriptions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x87c')}}),_0x215964['intSugarcrmField']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0xc10'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd04')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1325'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x6a4')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24a1'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/desk/accounts/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x216c'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+'integrations/desk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'integrations/desk/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x232')}}),_0x215964[_0x20c9ee('0x1512')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x1d0a'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x9e')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x7a6'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x110c')},'getSubjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1371')},'getDescriptions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1f8f')},'getTags':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1237')},'setTags':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'integrations/desk/configurations/:id/tags'}}),_0x215964[_0x20c9ee('0x121f')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xffe'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ad0')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2820'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['intZohoAccount']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'integrations/zoho/accounts/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/zoho/accounts/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1192'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getConfigurations':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/zoho/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x1e5e')},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xed7')}}),_0x215964[_0x20c9ee('0xa5b')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'integrations/zoho/configurations/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/zoho/configurations/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'integrations/zoho/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x221a')},'getSubjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/zoho/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x6b2')}}),_0x215964[_0x20c9ee('0x1729')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x1b04'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1cdd')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x86b'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['intZendeskAccount']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0xa4d'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xcd3')},'clone':{'method':'post','url':_0x215964['baseUrl']+_0x20c9ee('0x9e4'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getConfigurations':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1864')},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1864')},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe81')}}),_0x215964['intZendeskConfiguration']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2580'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/zendesk/configurations/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/zendesk/configurations/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ed3')},'getSubjects':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2404')},'getDescriptions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/zendesk/configurations/:id/descriptions'},'getTags':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/zendesk/configurations/:id/tags'},'setTags':{'isArray':!![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xee8')}}),_0x215964[_0x20c9ee('0xdc6')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x161'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x743')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x98b'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x45d')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf7a'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2733')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/freshdesk/accounts/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getConfigurations':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1434')},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1434')},'getFields':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2a7')}}),_0x215964[_0x20c9ee('0x12b0')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'integrations/freshdesk/configurations/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2297')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x23ab'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getFields':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xc1e')},'getSubjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x132b')},'getDescriptions':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x177a')},'getTags':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf1')},'setTags':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf1')}}),_0x215964[_0x20c9ee('0x1572')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'integrations/freshdesk/fields/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/freshdesk/fields/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x560'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x44c')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x11d6'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/vtiger/accounts/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/vtiger/accounts/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getConfigurations':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x853')},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x853')},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24e7')}}),_0x215964['intVtigerConfiguration']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x19fe'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1d53')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2057'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x4a6')},'getSubjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1b28')},'getDescriptions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'integrations/vtiger/configurations/:id/descriptions'}}),_0x215964[_0x20c9ee('0x2717')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x121b'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xaf1')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x15e7'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['intServicenowAccount']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'integrations/servicenow/accounts/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xae5')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xbfc'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1a62')},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1a62')},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20dc')}}),_0x215964[_0x20c9ee('0x1b29')]=_0x5ace71(_0x215964['baseUrl']+'integrations/servicenow/configurations/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xa2f')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/servicenow/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1f4a')},'getSubjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x27f1')},'getDescriptions':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x27d2')}}),_0x215964[_0x20c9ee('0x8ac')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'integrations/servicenow/fields/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x56f')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x269a'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1a37')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1dd8'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2216')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x253e'),'params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ff6')},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ff6')},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x304')}}),_0x215964[_0x20c9ee('0x200c')]=_0x5ace71(_0x215964['baseUrl']+'integrations/dynamics365/configurations/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1035')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'integrations/dynamics365/configurations/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2c')},'getSubjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1d05')},'getDescriptions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x80b')}}),_0x215964[_0x20c9ee('0x174')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0xbc3'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x691')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/dynamics365/fields/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1323')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2496'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8bb')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'integrations/freshsales/accounts/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'getConfigurations':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1965')},'addConfiguration':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1965')},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'integrations/freshsales/accounts/:id/fields'}}),_0x215964[_0x20c9ee('0x100a')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe80'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0xe7d')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x9d2'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getSubjects':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2d9')},'getDescriptions':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x1b63')},'getFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x22a4')}}),_0x215964[_0x20c9ee('0x1148')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x9db'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2096')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1596'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1fd7')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x700'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xedb')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'networks/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['chatQueueReport']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x1b9'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x119')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/reports/queue/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['chatInternalMessage']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24bd'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1fba')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd42'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getUsers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x19d9')}}),_0x215964[_0x20c9ee('0x22fc')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1ab0'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x3c0')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x9d0'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x7a5')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xbfa'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'jscripty/questions/reports/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x4cc'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0xd95')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x13ae'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2278')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x207a'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getQuestions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x225')}}),_0x215964['smsQueueReport']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x9fb'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'sms/reports/queue/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x260c'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x40d')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1b94'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1c17')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x8a6'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x8d1')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'square/details/reports/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x18a2')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'square/details/reports/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x46f')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'jscripty/projects/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x2282')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x117c'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getSessions':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'jscripty/projects/:id/sessions'},'getAnswers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'jscripty/projects/:id/answers'},'getSummary':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x13a7'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0xcb69a0,_0x1da360){const _0x4e4b08=_0x20c9ee,_0x3e5e86=_0x1da360();return{'type':_0x3e5e86[_0x4e4b08('0x9fa')],'length':_0x3e5e86['content-length'],'buffer':_0xcb69a0};}}}),_0x215964[_0x20c9ee('0x251')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x6d3'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x23a4')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xe35'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addLogo':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'settings/:id/logo'},'addLogoLogin':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1a36')},'getLogo':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x10cd')},'getLogoLogin':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'settings/:id/logo_login'},'gdpr':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'settings/:id/gdpr'},'addPreferred':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'settings/:id/preferred'},'getPreferred':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'settings/:id/preferred'},'addFavicon':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'settings/:id/favicon'},'getFavicon':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1bac')}}),_0x215964[_0x20c9ee('0x24bf')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd3a'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'square/odbc/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xc7b'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'test':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1505')}}),_0x215964[_0x20c9ee('0x550')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe15'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1477')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'square/projects/:id/clone','params':{'includeAll':'@includeAll'}},'addUsers':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1cb5')},'removeUsers':{'isArray':![],'method':'delete','url':_0x215964['baseUrl']+_0x20c9ee('0x1cb5')},'getUsers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1cb5')}}),_0x215964['squareRecording']=_0x5ace71(_0x215964['baseUrl']+'square/recordings/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x5e8')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x141b'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'square/recordings/:id/download','responseType':'arraybuffer','cache':![],'transformResponse':function(_0x30337d,_0xcb3ae1){const _0x267964=_0x20c9ee,_0x360537=_0xcb3ae1();return{'type':_0x360537[_0x267964('0x9fa')],'length':_0x360537[_0x267964('0xc30')],'buffer':_0x30337d};}}}),_0x215964['squareMessage']=_0x5ace71(_0x215964['baseUrl']+'square/messages/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'square/messages/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'square/messages/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0xe10')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1da'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1109')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2411'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getQueues':{'isArray':!![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x19da')},'addQueues':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x19da')},'removeQueues':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+'teams/:id/queues'},'addAgents':{'isArray':!![],'method':'post','url':_0x215964['baseUrl']+'teams/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+'teams/:id/users'},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2406')}}),_0x215964[_0x20c9ee('0x1a29')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'license/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x18a8')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2638'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x1983')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'campaigns/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24a3')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x60e'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'getHoppers':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x13f6')},'getHopperHistories':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x8d7')},'getHopperFinals':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x10f0')},'getHopperBlacks':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+'campaigns/:id/hopper_black'},'getLists':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'campaigns/:id/lists'},'addLists':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x279a')},'removeLists':{'isArray':!![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x279a')},'getBlackLists':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24d6')},'addBlackLists':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24d6')},'removeBlackLists':{'isArray':!![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x24d6')}}),_0x215964[_0x20c9ee('0x1cc8')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'migrations/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1a79')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'migrations/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['attachment']=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x208f'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'attachments/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'attachments/:id/clone','params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x248b'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0xeab1b7,_0x1f254a){const _0x2d77d0=_0x20c9ee,_0x4034ed=_0x1f254a();return{'type':_0x4034ed[_0x2d77d0('0x9fa')],'length':_0x4034ed[_0x2d77d0('0xc30')],'buffer':_0xeab1b7};}}}),_0x215964[_0x20c9ee('0x19f2')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x11e4'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0xf71')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xa67'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20ad'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x24494b,_0x301e9f){const _0x2ff165=_0x20c9ee,_0x18ac07=_0x301e9f();return{'type':_0x18ac07[_0x2ff165('0x9fa')],'length':_0x18ac07[_0x2ff165('0xc30')],'buffer':_0x24494b};}},'upload':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xcdc')},'delete':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x11e4')},'webhookGet':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x3fb')},'webhookPost':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'plugins/webhook'}}),_0x215964['mailTransferReport']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x19ce'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x12f3')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'mail/reports/transfer/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x26ac')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xced'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'chat/reports/transfer/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x17b9'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1002')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x9c3'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'fax/reports/transfer/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20a1'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x1c3e')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1d8a'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x11c0')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x23d0'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x27a4')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x213d'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe41')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2162'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['cmList']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x21a9'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x11e3')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x1036'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addDisposition':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf7c')},'getDispositions':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'cm/lists/:id/dispositions'},'removeDispositions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf7c')},'addContacts':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'cm/lists/:id/contacts'},'getContacts':{'isArray':!![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x23ea')},'getContactsCsv':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0x4f1'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x567837,_0x48c141){const _0x1b6589=_0x20c9ee,_0x2bc589=_0x48c141();return{'type':_0x2bc589[_0x1b6589('0x9fa')],'length':_0x2bc589[_0x1b6589('0xc30')],'buffer':_0x567837};}},'addCustomField':{'isArray':![],'method':'post','url':_0x215964['baseUrl']+'cm/lists/:id/fields'},'getCustomFields':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x238f')},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x266a')},'removeAgents':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+'cm/lists/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x266a')}}),_0x215964[_0x20c9ee('0x1e12')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1844'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x25b')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'voice/prefixes/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'voice/prefixes/:id/users'},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xa8b')},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'voice/prefixes/:id/users'}}),_0x215964[_0x20c9ee('0x257b')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x930'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x151a')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x7c2'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addSections':{'isArray':!![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2555')},'removeSections':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2555')},'getSections':{'isArray':!![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2555')},'addResources':{'isArray':!![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd0e')},'removeResources':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd0e')},'getResources':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xd0e')}}),_0x215964[_0x20c9ee('0x170e')]=_0x5ace71(_0x215964['baseUrl']+_0x20c9ee('0x72f'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1756')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x236e'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['userProfileResource']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x14a1'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1673')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'userProfile/resources/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964[_0x20c9ee('0x15a7')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf17'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x9f2')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1471'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'sendNotification':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'notifications/'}}),_0x215964[_0x20c9ee('0x234')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xcab'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'whatsapp/accounts/describe'},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1795'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+'whatsapp/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':'get','url':_0x215964['baseUrl']+_0x20c9ee('0xe3b')},'removeDispositions':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe3b')},'addAnswer':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe4')},'getAnswers':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe4')},'removeAnswers':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe4')},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'whatsapp/accounts/:id/users'},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1577')},'getAgents':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1577')},'addApplications':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xb17')},'getApplications':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0xb17')},'notify':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1aa6')},'send':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x453')}}),_0x215964[_0x20c9ee('0x21f5')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x188f'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2713')},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+'whatsapp/applications/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964['whatsappInteraction']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1b15'),{'id':_0x20c9ee('0x2702')},{'update':{'method':'put'},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x30')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c03'),'params':{'includeAll':_0x20c9ee('0x9a9')}},'addMessage':{'isArray':![],'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x12f0')},'getMessages':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x12f0')},'addTags':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'whatsapp/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2343')},'download':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x25d0'),'responseType':_0x20c9ee('0x2c2'),'cache':![],'transformResponse':function(_0x281598,_0x4bb8e2){const _0x4c536=_0x20c9ee,_0x20e530=_0x4bb8e2();return{'type':_0x20e530[_0x4c536('0x9fa')],'length':_0x20e530[_0x4c536('0xc30')],'buffer':_0x281598};}}}),_0x215964[_0x20c9ee('0x1a05')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x32'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1177')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'whatsapp/messages/:id/clone','params':{'includeAll':_0x20c9ee('0x9a9')}},'accept':{'isArray':![],'method':_0x20c9ee('0x14cd'),'url':_0x215964['baseUrl']+_0x20c9ee('0xbd')},'reject':{'isArray':![],'method':'put','url':_0x215964['baseUrl']+_0x20c9ee('0xe23')},'status':{'isArray':![],'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x20d0')}}),_0x215964[_0x20c9ee('0x1165')]=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xe2'),{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':_0x20c9ee('0x1d97'),'url':_0x215964['baseUrl']+_0x20c9ee('0x817')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x2390'),'params':{'includeAll':'@includeAll'}}}),_0x215964[_0x20c9ee('0x2750')]=_0x5ace71(_0x215964['baseUrl']+'whatsapp/reports/transfer/:id',{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1c81')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+'whatsapp/reports/transfer/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x215964['whatsappQueue']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1522'),{'id':'@id'},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xa17')},'clone':{'method':_0x20c9ee('0x1d67'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xc00'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x1574')},'getTeams':{'isArray':![],'method':_0x20c9ee('0x1d97'),'url':_0x215964[_0x20c9ee('0x19d8')]+'whatsapp/queues/:id/teams'},'addTeams':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0x2135')},'removeTeams':{'isArray':![],'method':'delete','url':_0x215964[_0x20c9ee('0x19d8')]+'whatsapp/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x20c9ee('0x1d67'),'url':_0x215964['baseUrl']+_0x20c9ee('0xf4f')},'removeAgents':{'isArray':![],'method':_0x20c9ee('0x15e8'),'url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf4f')},'getAgents':{'isArray':![],'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0xf4f')}}),_0x215964['cloudProvider']=_0x5ace71(_0x215964[_0x20c9ee('0x19d8')]+'cloudProviders/:id',{'id':_0x20c9ee('0x2702')},{'update':{'method':_0x20c9ee('0x14cd')},'describe':{'method':'get','url':_0x215964[_0x20c9ee('0x19d8')]+'cloudProviders/describe'},'clone':{'method':'post','url':_0x215964[_0x20c9ee('0x19d8')]+_0x20c9ee('0x284'),'params':{'includeAll':_0x20c9ee('0x9a9')}}}),_0x215964;}const _0x2fb700=_0x10e2e9;_0x28ce25['$inject']=[_0x566993('0x24e'),_0x566993('0xa70')];function _0x28ce25(_0x183f83,_0x2bb98b){const _0x4e58bd=_0x566993;_0x2bb98b[_0x4e58bd('0x1956')]({'position':_0x4e58bd('0x657'),'sound':![],'html':!![],'theme':_0x4e58bd('0x10b6')}),_0x183f83[_0x4e58bd('0x165e')]('$translatePartialLoader',{'urlTemplate':_0x4e58bd('0x1048')}),_0x183f83['preferredLanguage']('en'),_0x183f83[_0x4e58bd('0x1dcf')](null);}const _0x9254fe=_0x28ce25;_0x5428c2[_0x566993('0x17bb')]=[_0x566993('0xbd6'),_0x566993('0x638'),_0x566993('0x2166'),_0x566993('0xbd4'),_0x566993('0x1558')];function _0x5428c2(_0x249a5b,_0x49fef0,_0x46d0e5,_0x1225f,_0x44c39a){const _0x11149e=_0x566993,_0x1110d1=this;_0x1110d1[_0x11149e('0x18a1')]=_0x249a5b[_0x11149e('0x18a1')],_0x1110d1[_0x11149e('0x15f4')]=_0x11149e('0x1cb6');const _0x2c5b7f=['ar','fa','he'],_0xe2de62=_0x46d0e5[_0x11149e('0x1d97')](_0x11149e('0xdbc'));_0xe2de62&&(_0x49fef0[_0x11149e('0x25')](_0xe2de62),_0x2c5b7f[_0x11149e('0x2087')](_0xe2de62)>=0x0&&_0x1225f['setting'][_0x11149e('0x1d97')]({'id':0x1})[_0x11149e('0x1964')][_0x11149e('0x173b')](function(_0x235717){const _0x3bc8a9=_0x11149e;_0x235717&&_0x235717[_0x3bc8a9('0x1fd9')]&&(_0x1110d1[_0x3bc8a9('0x15f4')]=_0x3bc8a9('0x19fa'));})[_0x11149e('0x103c')](function(_0x467080){const _0x167b1c=_0x11149e;_0x467080&&_0x44c39a[_0x167b1c('0x15aa')]({'title':_0x167b1c('0x16de'),'msg':_0x467080['data']?_0x467080[_0x167b1c('0x1e07')][_0x167b1c('0x67f')]||_0x467080[_0x167b1c('0x67f')]||_0x467080:_0x467080[_0x167b1c('0x67f')]||_0x467080});}));}const _0x80940c=_0x5428c2;_0x505d23[_0x566993('0x17bb')]=[_0x566993('0x638')],_0xedb1e9['$inject']=[_0x566993('0x1537'),_0x566993('0x638')];function _0xedb1e9(_0x131c85,_0x2c296a){return function(_0x2ccab7){const _0x5ac96b=a0_0xde5e,_0x4d5400=new Date(),_0x2534f2=new Date(_0x2ccab7);if(_0x2534f2[_0x5ac96b('0x1587')]()===_0x4d5400[_0x5ac96b('0x1587')]()&&_0x2534f2['getMonth']()===_0x4d5400[_0x5ac96b('0x164b')]()&&_0x2534f2[_0x5ac96b('0x105a')]()===_0x4d5400[_0x5ac96b('0x105a')]())return _0x131c85('date')(_0x2534f2[_0x5ac96b('0xab4')](),_0x5ac96b('0x6fa'));if(_0x2534f2[_0x5ac96b('0x1587')]()===_0x4d5400[_0x5ac96b('0x1587')]()-0x1&&_0x2534f2[_0x5ac96b('0x164b')]()===_0x4d5400['getMonth']()&&_0x2534f2[_0x5ac96b('0x105a')]()===_0x4d5400[_0x5ac96b('0x105a')]())return _0x2c296a[_0x5ac96b('0x1467')](_0x5ac96b('0x58a'))+'\x20'+_0x131c85(_0x5ac96b('0x22b6'))(_0x2534f2[_0x5ac96b('0xab4')](),_0x5ac96b('0x6fa'));return _0x131c85('date')(_0x2534f2[_0x5ac96b('0xab4')](),'MMM\x20d,\x20y\x20h:mm\x20a');};}function _0x127489(){return function(_0x2a9141,_0x25bea1,_0x1ba9d1){const _0xff86f2={};let _0x275948=0x0,_0x4f5fb9;for(_0x4f5fb9 in _0x2a9141){_0x275948>=_0x1ba9d1&&(_0xff86f2[_0x4f5fb9]=_0x2a9141[_0x4f5fb9]);if(++_0x275948===_0x1ba9d1+_0x25bea1)break;}return _0xff86f2;};}function _0x52ac6f(){const _0x59a16f=_0x566993,_0x1f510a=[{'value':'jan'},{'value':_0x59a16f('0x1fc7')},{'value':_0x59a16f('0x154f')},{'value':_0x59a16f('0x20d3')},{'value':_0x59a16f('0x9dd')},{'value':_0x59a16f('0xe39')},{'value':_0x59a16f('0x12fc')},{'value':_0x59a16f('0x139a')},{'value':_0x59a16f('0x8cd')},{'value':'oct'},{'value':_0x59a16f('0x1e30')},{'value':_0x59a16f('0x1cec')}],_0x58df2f=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x2bf0ef=[{'value':_0x59a16f('0xcdf')},{'value':_0x59a16f('0x937')},{'value':_0x59a16f('0x19e7')},{'value':_0x59a16f('0x1f0')},{'value':'fri'},{'value':'sat'},{'value':_0x59a16f('0x1582')}],_0x638552=[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(){return _0x1f510a;},'getMonthNumber':function(){return _0x58df2f;},'getDaysOfWeek':function(){return _0x2bf0ef;},'getDaysOfMonth':function(){return _0x638552;}};}function _0x505d23(_0x165e0a){const _0x469f30=_0x566993;return{'Today':_0x165e0a[_0x469f30('0x1467')]('DASHBOARDS.TODAY'),'Yesterday':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x58a')),'This\x20Week':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x13e7')),'Last\x20Week':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x8ed')),'This\x20Month':_0x165e0a['instant'](_0x469f30('0x1ba8')),'Last\x20Month':_0x165e0a[_0x469f30('0x1467')]('DASHBOARDS.LAST_MONTH'),'This\x20Year':_0x165e0a['instant'](_0x469f30('0x1e32')),'Last\x20Year':_0x165e0a[_0x469f30('0x1467')]('DASHBOARDS.LAST_YEAR'),'January':_0x165e0a['instant'](_0x469f30('0x102e')),'February':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0xab8')),'March':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x1ef8')),'April':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x195e')),'May':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x167')),'June':_0x165e0a['instant'](_0x469f30('0x43c')),'July':_0x165e0a['instant'](_0x469f30('0x11a3')),'August':_0x165e0a['instant'](_0x469f30('0x12f')),'September':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x19f3')),'October':_0x165e0a[_0x469f30('0x1467')]('DASHBOARDS.OCTOBER'),'November':_0x165e0a['instant'](_0x469f30('0xf54')),'December':_0x165e0a['instant']('DASHBOARDS.DECEMBER'),'Mon':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x2763')),'Tue':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x1b21')),'Wed':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0xa85')),'Thu':_0x165e0a['instant'](_0x469f30('0x21b5')),'Fri':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0x476')),'Sat':_0x165e0a[_0x469f30('0x1467')](_0x469f30('0xb1a')),'Sun':_0x165e0a[_0x469f30('0x1467')]('DASHBOARDS.SUN')};}function _0x345647(){return{'enqueue':function(_0x50f5ef){const _0x276eee=a0_0xde5e;this[_0x276eee('0x8d5')]=this[_0x276eee('0x8d5')]?this[_0x276eee('0x8d5')]['finally'](_0x50f5ef):_0x50f5ef();}};}const _0x2b0c20=_0x21a6a1['p']+_0x566993('0x4c3'),_0x2a2213=_0x21a6a1['p']+'src/js/modules/navigation/layouts/horizontal-navigation/navigation.html/navigation.html',_0x46b66a=_0x21a6a1['p']+_0x566993('0x1ac0'),_0x5dd049=_0x21a6a1['p']+_0x566993('0x1e01'),_0x137170=_0x21a6a1['p']+_0x566993('0x195c'),_0x338ccc=_0x21a6a1['p']+'src/js/modules/footer/layouts/vertical-navigation/footer.html/footer.html',_0x33ec28=_0x21a6a1['p']+_0x566993('0xb3f');_0x90a135[_0x566993('0x17bb')]=[_0x566993('0xccc'),_0x566993('0x16ae'),'$locationProvider'];function _0x90a135(_0x4aea48,_0x58a877,_0x43ac81){const _0x1e3dff=_0x566993;_0x43ac81[_0x1e3dff('0x14d')](!![]),_0x58a877['otherwise'](_0x1e3dff('0xb07'));let _0x46c24e;angular[_0x1e3dff('0x1a89')]([_0x1e3dff('0x4d7')])[_0x1e3dff('0x1b2e')]([_0x1e3dff('0x2166'),function(_0x35b60e){_0x46c24e=_0x35b60e;}]);const _0x26bfd2=_0x46c24e[_0x1e3dff('0x1d97')](_0x1e3dff('0x24a0'))||'verticalNavigation',_0x27ae3b={'verticalNavigation':{'main':_0x3475f7,'toolbar':_0x2b0c20,'navigation':_0x46b66a,'header':_0x137170,'footer':_0x338ccc},'verticalNavigationFullwidthToolbar':{'main':_0x267783,'toolbar':'','navigation':_0x46b66a},'verticalNavigationFullwidthToolbar2':{'main':_0x377c22,'toolbar':'','navigation':_0x5dd049},'horizontalNavigation':{'main':_0x4e4340,'toolbar':'','navigation':_0x2a2213},'contentOnly':{'main':_0x4e1788,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x115214,'toolbar':'','navigation':''}};_0x4aea48[_0x1e3dff('0x1a49')](_0x1e3dff('0x17e'),{'abstract':!![],'views':{'main@':{'templateUrl':_0x27ae3b[_0x26bfd2]['main'],'controller':'MainController\x20as\x20vm'},'toolbar@app':{'templateUrl':_0x27ae3b[_0x26bfd2][_0x1e3dff('0x19d6')],'controller':_0x1e3dff('0x14e0')},'navigation@app':{'templateUrl':_0x27ae3b[_0x26bfd2][_0x1e3dff('0x1ea9')],'controller':'NavigationController\x20as\x20vm'},'quickPanel@app':{'templateUrl':_0x33ec28,'controller':_0x1e3dff('0xdd9')},'header@app':{'templateUrl':_0x27ae3b[_0x26bfd2][_0x1e3dff('0xa8f')],'controller':_0x1e3dff('0x14ec')},'footer@app':{'templateUrl':_0x27ae3b[_0x26bfd2][_0x1e3dff('0x213f')],'controller':_0x1e3dff('0x987')}},'resolve':{'license':[_0x1e3dff('0x2401'),function(_0x5a8917){const _0x32be98=_0x1e3dff;return _0x5a8917[_0x32be98('0x155b')](_0x32be98('0x2074'));}],'setting':[_0x1e3dff('0x2401'),function(_0x260a87){const _0x3f78ff=_0x1e3dff;return _0x260a87[_0x3f78ff('0x155b')]('setting@get',{'id':0x1});}]}});}const _0x52b5cf=_0x90a135;_0x36abf2[_0x566993('0x17bb')]=[_0x566993('0x1f6e'),_0x566993('0x2616')];function _0x36abf2(_0x2b2ab7,_0x5f1cbb){const _0x14042e=_0x566993;_0x2b2ab7['onStart']({},_0x5f1cbb[_0x14042e('0x1375')]),_0x2b2ab7[_0x14042e('0x1f53')]({},_0x5f1cbb[_0x14042e('0xed2')]);}const _0x42673c=_0x36abf2;var _0x7d34ed=_0x21a6a1(0x15ef);_0x5c7131[_0x566993('0x17bb')]=[_0x566993('0xca5'),_0x566993('0x1600')];function _0x5c7131(_0x40926e,_0x597036){let _0xfd1b82;function _0x153cd6(){const _0x328ecb=a0_0xde5e,_0x5372fc=!![]?window['io']:0x0,_0x3809d5={'query':'id='+_0x597036[_0x328ecb('0x14d4')]()['id'],'transports':[_0x328ecb('0x124c'),'polling']};_0xfd1b82=!![]?_0x5372fc(_0x3809d5):0x0;}return{'connect':_0x153cd6,'on':function(_0x1d12ab,_0x296868){const _0x830d67=a0_0xde5e;_0x296868=_0x296868||angular[_0x830d67('0x1086')],!_0xfd1b82&&_0x153cd6(),_0xfd1b82['on'](_0x1d12ab,function(){const _0x4238b1=_0x830d67,_0x58a3b3=arguments;_0x40926e[_0x4238b1('0x1517')](function(){const _0x3dabfe=_0x4238b1;_0x296868[_0x3dabfe('0x25ea')](_0xfd1b82,_0x58a3b3);});});},'onWithoutApply':function(_0x459043,_0x539235){const _0x780d2b=a0_0xde5e;_0x539235=_0x539235||angular[_0x780d2b('0x1086')],!_0xfd1b82&&_0x153cd6(),_0xfd1b82['on'](_0x459043,function(){const _0x302e94=_0x780d2b;_0x539235[_0x302e94('0x25ea')](_0xfd1b82,arguments);});},'emit':function(_0x13f566,_0x48cf45,_0x55c388){const _0x18bdd8=a0_0xde5e;_0x55c388=_0x55c388||angular[_0x18bdd8('0x1086')],!_0xfd1b82&&_0x153cd6(),_0xfd1b82['emit'](_0x13f566,_0x48cf45,function(){const _0x3aedcc=_0x18bdd8,_0x47ae20=arguments;_0x40926e[_0x3aedcc('0x1517')](function(){const _0x5e70b1=_0x3aedcc;_0x55c388[_0x5e70b1('0x25ea')](_0xfd1b82,_0x47ae20);});});},'removeAllListeners':function(_0x4ac100){const _0x3930a5=a0_0xde5e;!_0xfd1b82&&_0x153cd6(),_0xfd1b82[_0x3930a5('0x251c')](_0x4ac100);},'removeListener':function(_0x9e65a4,_0x578f6d){const _0x4991bd=a0_0xde5e;!_0xfd1b82&&_0x153cd6(),_0xfd1b82[_0x4991bd('0x1cea')](_0x9e65a4,_0x578f6d);},'disconnect':function(){const _0x249972=a0_0xde5e;!_0xfd1b82&&_0x153cd6(),_0xfd1b82[_0x249972('0x1878')]();}};}const _0x1d2ade=_0x5c7131;_0x1bf62b[_0x566993('0x17bb')]=['$scope',_0x566993('0xca5'),_0x566993('0x638'),_0x566993('0x1009'),_0x566993('0x38'),_0x566993('0x1600'),_0x566993('0x1558'),_0x566993('0x1a29'),_0x566993('0xbd4'),'setting'];function _0x1bf62b(_0x5f32a3,_0x25e316,_0x270a3f,_0xb02a63,_0x20e83d,_0x221ab1,_0x4900ae,_0x42a4f9,_0x42c45e,_0x5bd3e4){const _0x2d522e=_0x566993,_0x15c117=this;_0x4900ae[_0x2d522e('0x1e1b')]();function _0x266930(){const _0x5222f0=_0x2d522e;return _0x221ab1['getCurrentUser']()&&_0x221ab1[_0x5222f0('0x1b4e')](_0x5222f0('0x7b0'));}_0x15c117[_0x2d522e('0x23c7')]=_0x266930;function _0x1a8f82(_0xc03da1,_0x546a9c){const _0x470a34=_0x2d522e;return{'id':_0xc03da1,'title':_0x546a9c['name']||_0x470a34('0x1847'),'state':_0x470a34('0x2351'),'stateParams':_0x546a9c,'weight':0x2,'hidden':function(){const _0x18d439=_0x470a34;return _0x221ab1[_0x18d439('0x1b4e')]('agent')||!_0x221ab1[_0x18d439('0x1f1b')](_0xc03da1)&&!_0x221ab1['hasRole'](_0x18d439('0x79b'));}};}function _0xd1234a(_0x1883c3,_0x2d4b0d){const _0x2aa54f=_0x2d522e;return{'id':_0x1883c3,'title':_0x2d4b0d['name']||'NONAME','state':_0x2aa54f('0x1980'),'stateParams':_0x2d4b0d,'weight':0x2,'hidden':function(){const _0x1a838c=_0x2aa54f;return _0x221ab1['hasRole'](_0x1a838c('0x7b0'))||!_0x221ab1[_0x1a838c('0x1f1b')](_0x1883c3)&&!_0x221ab1[_0x1a838c('0x1b4e')](_0x1a838c('0x79b'));}};}function _0x2f23ed(_0x28f056,_0x1d8881){const _0x171478=_0x2d522e,_0x4e55ee={'user':_0x3c8d8a()[_0x171478('0x2114')](_0x221ab1['getCurrentUser'](),['id',_0x171478('0x10ad'),_0x171478('0x572'),_0x171478('0x28e'),'role','internal',_0x171478('0x15a8')])};_0x1d8881[_0x171478('0x121')]=_0x5df7ee()[_0x171478('0xa4c')](_0x1d8881[_0x171478('0x121')],_0x4e55ee),_0x20e83d['saveItem']('apps.home.plugin_'+_0x28f056,{'id':_0x28f056,'title':_0x1d8881[_0x171478('0x10ad')],'translate':_0x1d8881['name'],'state':'plugin_'+_0x1d8881['id'],'stateParams':_0x1d8881,'view':_0x171478('0x19f2'),'icon':_0x1d8881['icon'],'weight':0xc,'hidden':function(){const _0x30b8a2=_0x171478;return!_0x221ab1[_0x30b8a2('0x1f1b')](_0x28f056);}});}_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x5cb'),{'title':'APPS','group':!![],'weight':0x1,'hidden':function(){const _0xf1e351=_0x2d522e;return _0x221ab1[_0xf1e351('0x1b4e')](_0xf1e351('0x7b0'));}}),_0x42c45e['version'][_0x2d522e('0x1d97')]()[_0x2d522e('0x1964')][_0x2d522e('0x173b')](function(_0x27ad62){const _0x3476c9=_0x2d522e;_0x15c117[_0x3476c9('0x516')]=_0x27ad62&&_0x27ad62[_0x3476c9('0x9fe')]?_0x27ad62[_0x3476c9('0x9fe')]:_0x3476c9('0x13dc');})[_0x2d522e('0x103c')](function(){const _0x1ae9b9=_0x2d522e;_0x15c117['version']=_0x1ae9b9('0x13dc');})[_0x2d522e('0xf25')](function(){const _0x573535=_0x2d522e;_0xb02a63[_0x573535('0x10e0')](_0x573535('0x516'),{'title':_0x573535('0x1b12')+_0x15c117[_0x573535('0x516')],'group':!![],'weight':0x2,'hidden':function(){const _0x36c24d=_0x573535;return _0x221ab1[_0x36c24d('0x1b4e')](_0x36c24d('0x7b0'));}});});function _0x588605(_0xcac606){const _0x211527=_0x2d522e;return _0x3c8d8a()[_0x211527('0x8a2')](_0xcac606[_0x211527('0x13da')],function(_0x21576b){return _0x21576b['id'];});}_0x221ab1['isLoggedIn']()&&(_0x42a4f9[_0x2d522e('0x21e0')]&&_0x4900ae['warning']({'msg':_0x270a3f[_0x2d522e('0x1467')](_0x2d522e('0x4ba')),'showClose':!![],'timeout':![]}),_0x42c45e[_0x2d522e('0x10ea')][_0x2d522e('0x1d97')]()[_0x2d522e('0x1964')][_0x2d522e('0x173b')](function(_0x22bdb4){const _0x59d5fc=_0x2d522e;let _0x1886b6=0x0;for(let _0x5e5f63=0x0;_0x5e5f63<_0x22bdb4[_0x59d5fc('0x6aa')][_0x59d5fc('0x543')];_0x5e5f63+=0x1){_0x1886b6=0x1869f+_0x22bdb4['rows'][_0x5e5f63]['id'],_0xb02a63[_0x59d5fc('0x10e0')]('apps.dashboards.custom_'+_0x1886b6,_0x1a8f82(_0x1886b6,_0x22bdb4[_0x59d5fc('0x6aa')][_0x5e5f63]));}}),_0x42c45e[_0x2d522e('0x19f2')][_0x2d522e('0x1d97')]({'active':!![]})[_0x2d522e('0x1964')][_0x2d522e('0x173b')](function(_0x3fc7a2){const _0xfbb39e=_0x2d522e;let _0x1c2465=0x0;if(_0x3fc7a2[_0xfbb39e('0x1a2f')]){const _0x23151b=_0x3c8d8a()[_0xfbb39e('0x278d')](_0x3fc7a2['rows'],function(_0x16c830){const _0x23393e=_0xfbb39e;return _0x16c830['sidebar']!=_0x23393e('0x1633')&&_0x16c830[_0x23393e('0x217d')]!=_0x23393e('0x26d6');});if(_0x23151b[_0xfbb39e('0x543')]>0x0){_0xb02a63['saveItem']('apps.plugins',{'id':0x76c,'title':_0xfbb39e('0x1e18'),'translate':_0xfbb39e('0x2454'),'icon':_0xfbb39e('0x108b'),'permissions':{'hidden':!![]},'weight':0x11,'hidden':function(){const _0x267ddb=_0xfbb39e;return _0x221ab1['hasRole'](_0x267ddb('0x7b0'))||!_0x221ab1['hasChildrenPermissions'](_0x588605(this))&&!_0x221ab1['hasRole'](_0x267ddb('0x79b'));}});for(let _0x2b6142=0x0;_0x2b6142<_0x23151b[_0xfbb39e('0x543')];_0x2b6142+=0x1){_0x1c2465=0x15b38+_0x23151b[_0x2b6142]['id'],_0xb02a63[_0xfbb39e('0x10e0')](_0xfbb39e('0xf6c')+_0x1c2465,_0xd1234a(_0x1c2465,_0x23151b[_0x2b6142]));}_0xb02a63['sort']();}const _0x138b01=_0x3c8d8a()[_0xfbb39e('0x278d')](_0x3fc7a2[_0xfbb39e('0x6aa')],function(_0x2c2ece){const _0x123dc6=_0xfbb39e;return _0x2c2ece[_0x123dc6('0x217d')]!='never'&&_0x2c2ece[_0x123dc6('0x217d')]!='adminOnly';});if(_0x138b01['length']>0x0)for(let _0x1f0232=0x0;_0x1f0232<_0x138b01[_0xfbb39e('0x543')];_0x1f0232+=0x1){_0x1c2465=0x15b38+_0x138b01[_0x1f0232]['id'],_0x2f23ed(_0x1c2465,_0x138b01[_0x1f0232]);}}})),_0x42a4f9[_0x2d522e('0xbb4')]&&!_0x5bd3e4[_0x2d522e('0xa4b')]&&_0x5bd3e4[_0x2d522e('0x124e')]&&angular['element']('#pageTitle')[_0x2d522e('0x267e')](_0x5bd3e4['pageTitle']),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x490'),{'id':0x64,'title':_0x2d522e('0x154a'),'translate':'DASHBOARDS.DASHBOARDS','icon':_0x2d522e('0x266f'),'weight':0x2,'hidden':function(){const _0x577880=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1['hasChildrenPermissions'](_0x588605(this))&&!_0x221ab1[_0x577880('0x1b4e')](_0x577880('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1910'),{'id':0x65,'title':_0x2d522e('0x1cb9'),'route':'','translate':_0x2d522e('0xe47'),'state':_0x2d522e('0x1057'),'weight':0x1,'hidden':function(){const _0x16504f=_0x2d522e;return _0x221ab1[_0x16504f('0x1b4e')](_0x16504f('0x7b0'))||!_0x221ab1[_0x16504f('0x1f1b')](0x65)&&!_0x221ab1[_0x16504f('0x1b4e')](_0x16504f('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x23cc'),{'id':0xc8,'title':_0x2d522e('0x6d7'),'translate':_0x2d522e('0x2121'),'icon':'icon-account-multiple','weight':0x3,'hidden':function(){const _0x5772d5=_0x2d522e;return _0x221ab1['hasRole'](_0x5772d5('0x7b0'))||!_0x221ab1[_0x5772d5('0x2656')](_0x588605(this))&&!_0x221ab1[_0x5772d5('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xfe7'),{'id':0xc9,'title':_0x2d522e('0x1999'),'route':_0x2d522e('0x166f'),'translate':_0x2d522e('0x2391'),'state':_0x2d522e('0xfc1'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x30ee40=_0x2d522e;return _0x221ab1['hasRole'](_0x30ee40('0x7b0'))||_0x221ab1[_0x30ee40('0x1b4e')]('user')||!_0x221ab1[_0x30ee40('0x1f1b')](0xc9)&&!_0x221ab1[_0x30ee40('0x1b4e')](_0x30ee40('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x2052'),{'id':0xca,'title':_0x2d522e('0x1272'),'route':'user','translate':'STAFF.AGENTS','state':'app.staff.agents','weight':0x1,'hidden':function(){const _0x38066b=_0x2d522e;return _0x221ab1['hasRole'](_0x38066b('0x7b0'))||!_0x221ab1[_0x38066b('0x1f1b')](0xca)&&!_0x221ab1[_0x38066b('0x1b4e')](_0x38066b('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.staff.telephones',{'id':0xcb,'title':_0x2d522e('0x76'),'route':_0x2d522e('0x166f'),'translate':_0x2d522e('0x872'),'state':_0x2d522e('0x1ce2'),'weight':0x1,'hidden':function(){const _0x1e4cb2=_0x2d522e;return _0x221ab1[_0x1e4cb2('0x1b4e')](_0x1e4cb2('0x7b0'))||!_0x221ab1['hasPermission'](0xcb)&&!_0x221ab1[_0x1e4cb2('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1b14'),{'id':0xcc,'title':_0x2d522e('0x1e5c'),'route':'team','translate':_0x2d522e('0x950'),'state':_0x2d522e('0x1a86'),'weight':0x1,'hidden':function(){const _0x25fe49=_0x2d522e;return _0x221ab1['hasRole'](_0x25fe49('0x7b0'))||!_0x221ab1[_0x25fe49('0x1f1b')](0xcc)&&!_0x221ab1['hasRole'](_0x25fe49('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0xb4a'),{'id':0xcd,'title':_0x2d522e('0x1fa'),'route':_0x2d522e('0x257b'),'translate':_0x2d522e('0x1d13'),'state':_0x2d522e('0x11aa'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x7fc9db=_0x2d522e;return _0x221ab1[_0x7fc9db('0x1b4e')](_0x7fc9db('0x7b0'))||!_0x221ab1[_0x7fc9db('0x1f1b')](0xcd)&&!_0x221ab1[_0x7fc9db('0x1b4e')](_0x7fc9db('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x2141'),{'id':0x12c,'title':_0x2d522e('0x387'),'translate':_0x2d522e('0x1f0d'),'icon':_0x2d522e('0x150d'),'weight':0x4,'license':'cm','hidden':function(){const _0x173fc7=_0x2d522e;return!_0x42a4f9['cm']||_0x221ab1[_0x173fc7('0x1b4e')](_0x173fc7('0x7b0'))||!_0x221ab1[_0x173fc7('0x2656')](_0x588605(this))&&!_0x221ab1[_0x173fc7('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xb6b'),{'id':0x12d,'title':_0x2d522e('0xd8b'),'route':'cmList','translate':'CONTACTMANAGER.LISTS','state':_0x2d522e('0x1c87'),'weight':0x2,'hidden':function(){const _0x2e2b52=_0x2d522e;return _0x221ab1['hasRole'](_0x2e2b52('0x7b0'))||!_0x221ab1[_0x2e2b52('0x1f1b')](0x12d)&&!_0x221ab1[_0x2e2b52('0x1b4e')](_0x2e2b52('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x1a04'),{'id':0x12e,'title':'Companies','route':_0x2d522e('0x1904'),'translate':_0x2d522e('0x1879'),'state':_0x2d522e('0xbcc'),'weight':0x3,'hidden':function(){const _0xac7e17=_0x2d522e;return _0x221ab1[_0xac7e17('0x1b4e')](_0xac7e17('0x7b0'))||!_0x221ab1['hasPermission'](0x12e)&&!_0x221ab1[_0xac7e17('0x1b4e')](_0xac7e17('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.contactmanager.globalCustomFields',{'id':0x130,'title':'GlobalCustomFields','route':'cmCustomField','translate':_0x2d522e('0x2155'),'state':_0x2d522e('0xe9e'),'weight':0x4,'permissions':{'association':![]},'hidden':function(){const _0x16ba9a=_0x2d522e;return _0x221ab1[_0x16ba9a('0x1b4e')](_0x16ba9a('0x7b0'))||!_0x221ab1['hasPermission'](0x130)&&!_0x221ab1['hasRole']('admin');}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.contactmanager.contacts',{'id':0x12f,'title':_0x2d522e('0x215'),'route':'','translate':_0x2d522e('0x132d'),'state':_0x2d522e('0xaf8'),'weight':0x1,'permissions':{'association':![]},'hidden':function(){const _0x262616=_0x2d522e;return _0x221ab1['hasRole'](_0x262616('0x7b0'))||!_0x221ab1[_0x262616('0x1f1b')](0x12f)&&!_0x221ab1['hasRole'](_0x262616('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x2329'),{'id':0x190,'title':_0x2d522e('0x20b1'),'translate':_0x2d522e('0xd79'),'icon':_0x2d522e('0x1196'),'weight':0x5,'license':_0x2d522e('0x21a8'),'hidden':function(){const _0x472359=_0x2d522e;return!_0x42a4f9[_0x472359('0x21a8')]||_0x221ab1['hasRole']('agent')||!_0x221ab1['hasChildrenPermissions'](_0x588605(this))&&!_0x221ab1[_0x472359('0x1b4e')](_0x472359('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x9c5'),{'id':0x191,'title':_0x2d522e('0x32a'),'route':_0x2d522e('0x1282'),'translate':_0x2d522e('0x2003'),'state':_0x2d522e('0x2484'),'weight':0x1,'channel':_0x2d522e('0x21a8'),'hidden':function(){const _0xbbb748=_0x2d522e;return _0x221ab1[_0xbbb748('0x1b4e')](_0xbbb748('0x7b0'))||!_0x221ab1['hasPermission'](0x191)&&!_0x221ab1[_0xbbb748('0x1b4e')](_0xbbb748('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x25a0'),{'id':0x192,'title':_0x2d522e('0x2286'),'route':_0x2d522e('0x1630'),'translate':_0x2d522e('0x2697'),'state':_0x2d522e('0x1bc4'),'weight':0x1,'hidden':function(){const _0x45e3ad=_0x2d522e;return _0x221ab1[_0x45e3ad('0x1b4e')](_0x45e3ad('0x7b0'))||!_0x221ab1['hasPermission'](0x192)&&!_0x221ab1['hasRole']('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1ec6'),{'id':0x193,'title':_0x2d522e('0xf0b'),'route':_0x2d522e('0x1630'),'translate':_0x2d522e('0x258d'),'state':'app.voice.outboundroutes','weight':0x1,'hidden':function(){const _0x3a1844=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1[_0x3a1844('0x1f1b')](0x193)&&!_0x221ab1[_0x3a1844('0x1b4e')](_0x3a1844('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1c29'),{'id':0x194,'title':_0x2d522e('0x1c72'),'route':'voiceExtension','translate':'VOICE.INTERNALROUTES','state':_0x2d522e('0x1de7'),'weight':0x1,'hidden':function(){const _0x4ccc2c=_0x2d522e;return _0x221ab1[_0x4ccc2c('0x1b4e')](_0x4ccc2c('0x7b0'))||!_0x221ab1[_0x4ccc2c('0x1f1b')](0x194)&&!_0x221ab1[_0x4ccc2c('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x2523'),{'id':0x195,'title':_0x2d522e('0x38a'),'route':_0x2d522e('0xf01'),'translate':_0x2d522e('0x23c4'),'state':'app.voice.contexts','weight':0x1,'hidden':function(){const _0x50e5f8=_0x2d522e;return _0x221ab1[_0x50e5f8('0x1b4e')](_0x50e5f8('0x7b0'))||!_0x221ab1[_0x50e5f8('0x1f1b')](0x195)&&!_0x221ab1[_0x50e5f8('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.voice.voicemails',{'id':0x196,'title':'Voicemails','route':_0x2d522e('0x579'),'translate':'VOICE.VOICEMAILS','state':_0x2d522e('0x10b1'),'weight':0x1,'hidden':function(){const _0x13a376=_0x2d522e;return _0x221ab1[_0x13a376('0x1b4e')](_0x13a376('0x7b0'))||!_0x221ab1['hasPermission'](0x196)&&!_0x221ab1[_0x13a376('0x1b4e')](_0x13a376('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x1e8f'),{'id':0x197,'title':_0x2d522e('0x1139'),'route':_0x2d522e('0x1bb5'),'translate':_0x2d522e('0x1924'),'state':'app.voice.musiconholds','weight':0x1,'hidden':function(){const _0x20074f=_0x2d522e;return _0x221ab1['hasRole'](_0x20074f('0x7b0'))||!_0x221ab1[_0x20074f('0x1f1b')](0x197)&&!_0x221ab1[_0x20074f('0x1b4e')](_0x20074f('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x21d4'),{'id':0x198,'title':'VoiceRecordings','route':_0x2d522e('0x14c3'),'translate':_0x2d522e('0x978'),'state':_0x2d522e('0x1faa'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x212ead=_0x2d522e;return _0x221ab1[_0x212ead('0x1b4e')]('agent')||!_0x221ab1[_0x212ead('0x1f1b')](0x198)&&!_0x221ab1[_0x212ead('0x1b4e')](_0x212ead('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xb8d'),{'id':0x199,'title':_0x2d522e('0x3c4'),'route':_0x2d522e('0x103b'),'translate':_0x2d522e('0x8e1'),'state':_0x2d522e('0x1aca'),'weight':0x1,'hidden':function(){const _0x3fec10=_0x2d522e;return _0x221ab1[_0x3fec10('0x1b4e')](_0x3fec10('0x7b0'))||!_0x221ab1[_0x3fec10('0x1f1b')](0x199)&&!_0x221ab1['hasRole'](_0x3fec10('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x10da'),{'id':0x19a,'title':_0x2d522e('0x19d1'),'route':_0x2d522e('0x1e12'),'translate':_0x2d522e('0x2357'),'state':_0x2d522e('0x20ce'),'weight':0x1,'hidden':function(){const _0x553cbb=_0x2d522e;return _0x221ab1[_0x553cbb('0x1b4e')](_0x553cbb('0x7b0'))||!_0x221ab1['hasPermission'](0x19a)&&!_0x221ab1['hasRole'](_0x553cbb('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x4f2'),{'id':0x19b,'title':_0x2d522e('0x66'),'route':'','translate':'VOICE.REALTIME','state':_0x2d522e('0x20a4'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x187f09=_0x2d522e;return _0x221ab1[_0x187f09('0x1b4e')](_0x187f09('0x7b0'))||!_0x221ab1[_0x187f09('0x1f1b')](0x19b)&&!_0x221ab1[_0x187f09('0x1b4e')](_0x187f09('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1d84'),{'id':0x1f4,'title':_0x2d522e('0x180a'),'translate':_0x2d522e('0xb1c'),'icon':_0x2d522e('0x11d1'),'weight':0x6,'license':_0x2d522e('0x8c5'),'hidden':function(){const _0x1efabb=_0x2d522e;return!_0x42a4f9[_0x1efabb('0x8c5')]||_0x221ab1[_0x1efabb('0x1b4e')]('agent')||!_0x221ab1[_0x1efabb('0x2656')](_0x588605(this))&&!_0x221ab1[_0x1efabb('0x1b4e')]('admin');}}),_0xb02a63['saveItem'](_0x2d522e('0x219f'),{'id':0x1f5,'title':_0x2d522e('0x80a'),'route':_0x2d522e('0x940'),'translate':_0x2d522e('0x1363'),'state':'app.chat.chatQueues','weight':0x1,'channel':_0x2d522e('0x8c5'),'hidden':function(){const _0x5b2638=_0x2d522e;return _0x221ab1[_0x5b2638('0x1b4e')](_0x5b2638('0x7b0'))||!_0x221ab1[_0x5b2638('0x1f1b')](0x1f5)&&!_0x221ab1[_0x5b2638('0x1b4e')](_0x5b2638('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x2765'),{'id':0x1f6,'title':_0x2d522e('0x27'),'route':_0x2d522e('0x1740'),'translate':_0x2d522e('0x9ae'),'state':_0x2d522e('0x2848'),'weight':0x1,'channel':'chat','hidden':function(){const _0x233901=_0x2d522e;return _0x221ab1[_0x233901('0x1b4e')](_0x233901('0x7b0'))||!_0x221ab1['hasPermission'](0x1f6)&&!_0x221ab1[_0x233901('0x1b4e')](_0x233901('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x57e'),{'id':0x1fe,'title':_0x2d522e('0x66'),'route':'','translate':_0x2d522e('0x1b65'),'state':_0x2d522e('0x346'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x279f84=_0x2d522e;return _0x221ab1[_0x279f84('0x1b4e')](_0x279f84('0x7b0'))||!_0x221ab1[_0x279f84('0x1f1b')](0x1fe)&&!_0x221ab1['hasRole']('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1fbd'),{'id':0x258,'title':_0x2d522e('0x12c6'),'translate':_0x2d522e('0x535'),'icon':_0x2d522e('0x16b4'),'weight':0x7,'license':'mail','hidden':function(){const _0xa50718=_0x2d522e;return!_0x42a4f9[_0xa50718('0x108a')]||_0x221ab1[_0xa50718('0x1b4e')](_0xa50718('0x7b0'))||!_0x221ab1['hasChildrenPermissions'](_0x588605(this))&&!_0x221ab1[_0xa50718('0x1b4e')](_0xa50718('0x79b'));}}),_0xb02a63['saveItem']('apps.mail.mailQueues',{'id':0x259,'title':_0x2d522e('0x233d'),'route':_0x2d522e('0x1b0'),'translate':'MAIL.MAILQUEUES','state':_0x2d522e('0x1fdf'),'weight':0x1,'channel':_0x2d522e('0x108a'),'hidden':function(){const _0x52a5c=_0x2d522e;return _0x221ab1[_0x52a5c('0x1b4e')](_0x52a5c('0x7b0'))||!_0x221ab1[_0x52a5c('0x1f1b')](0x259)&&!_0x221ab1['hasRole'](_0x52a5c('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x106a'),{'id':0x25a,'title':_0x2d522e('0x15ab'),'route':_0x2d522e('0x77b'),'translate':_0x2d522e('0xa0'),'state':'app.mail.mailAccounts','weight':0x1,'channel':_0x2d522e('0x108a'),'hidden':function(){const _0x4a6e55=_0x2d522e;return _0x221ab1[_0x4a6e55('0x1b4e')](_0x4a6e55('0x7b0'))||!_0x221ab1[_0x4a6e55('0x1f1b')](0x25a)&&!_0x221ab1[_0x4a6e55('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x7d7'),{'id':0x25b,'title':_0x2d522e('0x1229'),'route':'mailSubstatus','translate':_0x2d522e('0xbe5'),'state':_0x2d522e('0x6c'),'weight':0x1,'channel':_0x2d522e('0x108a'),'permissions':{'association':![]},'hidden':function(){const _0x336c71=_0x2d522e;return _0x221ab1[_0x336c71('0x1b4e')](_0x336c71('0x7b0'))||!_0x221ab1[_0x336c71('0x1f1b')](0x25b)&&!_0x221ab1[_0x336c71('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xb6a'),{'id':0x262,'title':_0x2d522e('0x66'),'route':'','translate':_0x2d522e('0x8c3'),'state':_0x2d522e('0x60b'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x47eb9e=_0x2d522e;return _0x221ab1['hasRole'](_0x47eb9e('0x7b0'))||!_0x221ab1[_0x47eb9e('0x1f1b')](0x262)&&!_0x221ab1['hasRole'](_0x47eb9e('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x27a1'),{'id':0x2bc,'title':_0x2d522e('0x2667'),'translate':_0x2d522e('0x16f7'),'icon':_0x2d522e('0x1147'),'weight':0x8,'license':_0x2d522e('0x2228'),'hidden':function(){const _0x42ac2f=_0x2d522e;return!_0x42a4f9[_0x42ac2f('0x2228')]||_0x221ab1[_0x42ac2f('0x1b4e')](_0x42ac2f('0x7b0'))||!_0x221ab1[_0x42ac2f('0x2656')](_0x588605(this))&&!_0x221ab1[_0x42ac2f('0x1b4e')](_0x42ac2f('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xd25'),{'id':0x2bd,'title':_0x2d522e('0x2d8'),'route':_0x2d522e('0xe99'),'translate':_0x2d522e('0x1895'),'state':_0x2d522e('0x759'),'weight':0x1,'channel':_0x2d522e('0x1a8f'),'hidden':function(){const _0x2255c8=_0x2d522e;return _0x221ab1['hasRole'](_0x2255c8('0x7b0'))||!_0x221ab1['hasPermission'](0x2bd)&&!_0x221ab1['hasRole'](_0x2255c8('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xd54'),{'id':0x2be,'title':'SmsAccounts','route':'smsAccount','translate':_0x2d522e('0x25fe'),'state':_0x2d522e('0x242d'),'weight':0x1,'channel':_0x2d522e('0x1a8f'),'hidden':function(){const _0x12d2ab=_0x2d522e;return _0x221ab1[_0x12d2ab('0x1b4e')]('agent')||!_0x221ab1[_0x12d2ab('0x1f1b')](0x2be)&&!_0x221ab1[_0x12d2ab('0x1b4e')](_0x12d2ab('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x5e1'),{'id':0x2c6,'title':_0x2d522e('0x66'),'route':'','translate':_0x2d522e('0xb61'),'state':_0x2d522e('0xd9f'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x544ee4=_0x2d522e;return _0x221ab1[_0x544ee4('0x1b4e')]('agent')||!_0x221ab1['hasPermission'](0x2c6)&&!_0x221ab1['hasRole']('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x262b'),{'id':0x320,'title':'Openchannel','translate':_0x2d522e('0xf1c'),'icon':_0x2d522e('0x1f64'),'weight':0x9,'license':_0x2d522e('0xab2'),'hidden':function(){const _0x1cbcae=_0x2d522e;return!_0x42a4f9[_0x1cbcae('0xab2')]||_0x221ab1[_0x1cbcae('0x1b4e')](_0x1cbcae('0x7b0'))||!_0x221ab1[_0x1cbcae('0x2656')](_0x588605(this))&&!_0x221ab1[_0x1cbcae('0x1b4e')](_0x1cbcae('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1506'),{'id':0x321,'title':_0x2d522e('0xd97'),'route':_0x2d522e('0x1611'),'translate':_0x2d522e('0x1e7d'),'state':_0x2d522e('0x1a9d'),'weight':0x1,'channel':_0x2d522e('0x1503'),'hidden':function(){const _0x4dc487=_0x2d522e;return _0x221ab1['hasRole'](_0x4dc487('0x7b0'))||!_0x221ab1[_0x4dc487('0x1f1b')](0x321)&&!_0x221ab1['hasRole'](_0x4dc487('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x17b8'),{'id':0x322,'title':_0x2d522e('0xecc'),'route':_0x2d522e('0x13f1'),'translate':'OPENCHANNEL.OPENCHANNELACCOUNTS','state':_0x2d522e('0xe0c'),'weight':0x1,'channel':'openChannel','hidden':function(){const _0x1a2594=_0x2d522e;return _0x221ab1[_0x1a2594('0x1b4e')](_0x1a2594('0x7b0'))||!_0x221ab1[_0x1a2594('0x1f1b')](0x322)&&!_0x221ab1[_0x1a2594('0x1b4e')](_0x1a2594('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.openchannel.realtime',{'id':0x32a,'title':_0x2d522e('0x66'),'route':'','translate':'OPENCHANNEL.REALTIME','state':_0x2d522e('0x21a7'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x2748f9=_0x2d522e;return _0x221ab1['hasRole'](_0x2748f9('0x7b0'))||!_0x221ab1[_0x2748f9('0x1f1b')](0x32a)&&!_0x221ab1[_0x2748f9('0x1b4e')](_0x2748f9('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x26e0'),{'id':0x384,'title':_0x2d522e('0x45a'),'translate':_0x2d522e('0x951'),'icon':'icon-deskphone','weight':0xa,'license':_0x2d522e('0x16d'),'hidden':function(){const _0xdbb054=_0x2d522e;return!_0x42a4f9[_0xdbb054('0x16d')]||_0x221ab1['hasRole'](_0xdbb054('0x7b0'))||!_0x221ab1[_0xdbb054('0x2656')](_0x588605(this))&&!_0x221ab1[_0xdbb054('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xfea'),{'id':0x385,'title':_0x2d522e('0x1f23'),'route':_0x2d522e('0xd82'),'translate':_0x2d522e('0xcbf'),'state':_0x2d522e('0x1186'),'weight':0x1,'channel':_0x2d522e('0x16d'),'hidden':function(){const _0x2adaf7=_0x2d522e;return _0x221ab1[_0x2adaf7('0x1b4e')](_0x2adaf7('0x7b0'))||!_0x221ab1[_0x2adaf7('0x1f1b')](0x385)&&!_0x221ab1[_0x2adaf7('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1d87'),{'id':0x386,'title':_0x2d522e('0x1ba2'),'route':_0x2d522e('0xe12'),'translate':_0x2d522e('0x230'),'state':'app.fax.faxAccounts','weight':0x1,'channel':_0x2d522e('0x16d'),'hidden':function(){const _0x164216=_0x2d522e;return _0x221ab1[_0x164216('0x1b4e')](_0x164216('0x7b0'))||!_0x221ab1['hasPermission'](0x386)&&!_0x221ab1[_0x164216('0x1b4e')](_0x164216('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x184d'),{'id':0x38e,'title':'Realtime','route':'','translate':'FAX.REALTIME','state':_0x2d522e('0x181f'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0xfed2ef=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1[_0xfed2ef('0x1f1b')](0x38e)&&!_0x221ab1[_0xfed2ef('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x20a9'),{'id':0x3e8,'title':_0x2d522e('0x27f3'),'translate':_0x2d522e('0xaf9'),'icon':_0x2d522e('0x102d'),'weight':0xf,'hidden':function(){const _0x543a57=_0x2d522e;return _0x221ab1[_0x543a57('0x1b4e')](_0x543a57('0x7b0'))||!_0x221ab1[_0x543a57('0x2656')](_0x588605(this))&&!_0x221ab1['hasRole'](_0x543a57('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x14d5'),{'id':0x3e9,'title':_0x2d522e('0x235f'),'route':_0x2d522e('0x2849'),'translate':_0x2d522e('0x12e6'),'state':_0x2d522e('0x2646'),'weight':0x1,'hidden':function(){const _0x59ac64=_0x2d522e;return _0x221ab1[_0x59ac64('0x1b4e')](_0x59ac64('0x7b0'))||!_0x221ab1[_0x59ac64('0x1f1b')](0x3e9)&&!_0x221ab1[_0x59ac64('0x1b4e')](_0x59ac64('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1513'),{'id':0x3eb,'title':_0x2d522e('0x3a8'),'route':'dashboard','translate':_0x2d522e('0x8e9'),'state':'app.tools.customDashboards','weight':0x3,'hidden':function(){const _0x5284db=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1[_0x5284db('0x1f1b')](0x3eb)&&!_0x221ab1[_0x5284db('0x1b4e')](_0x5284db('0x79b'));}}),_0xb02a63['saveItem']('apps.tools.intervals',{'id':0x3ec,'title':_0x2d522e('0xb7a'),'route':'interval','translate':_0x2d522e('0x180f'),'state':_0x2d522e('0x1396'),'weight':0x4,'hidden':function(){const _0x218c1=_0x2d522e;return _0x221ab1[_0x218c1('0x1b4e')](_0x218c1('0x7b0'))||!_0x221ab1[_0x218c1('0x1f1b')](0x3ec)&&!_0x221ab1['hasRole'](_0x218c1('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x13ce'),{'id':0x3ed,'title':_0x2d522e('0xbe4'),'route':_0x2d522e('0x1751'),'translate':_0x2d522e('0x1150'),'state':'app.tools.pauses','weight':0x5,'hidden':function(){const _0x1a604b=_0x2d522e;return _0x221ab1[_0x1a604b('0x1b4e')]('agent')||!_0x221ab1[_0x1a604b('0x1f1b')](0x3ed)&&!_0x221ab1['hasRole'](_0x1a604b('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1d62'),{'id':0x3ee,'title':_0x2d522e('0x198d'),'route':'schedule','translate':_0x2d522e('0xe7c'),'state':'app.tools.schedules','weight':0x6,'hidden':function(){const _0x4b6bc2=_0x2d522e;return _0x221ab1[_0x4b6bc2('0x1b4e')](_0x4b6bc2('0x7b0'))||!_0x221ab1[_0x4b6bc2('0x1f1b')](0x3ee)&&!_0x221ab1['hasRole'](_0x4b6bc2('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.tools.sounds',{'id':0x3ef,'title':_0x2d522e('0x47d'),'route':_0x2d522e('0x156f'),'translate':_0x2d522e('0x2636'),'state':_0x2d522e('0x18d6'),'weight':0x7,'hidden':function(){const _0x56aa40=_0x2d522e;return _0x221ab1[_0x56aa40('0x1b4e')](_0x56aa40('0x7b0'))||!_0x221ab1['hasPermission'](0x3ef)&&!_0x221ab1[_0x56aa40('0x1b4e')](_0x56aa40('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.tools.tags',{'id':0x3f0,'title':_0x2d522e('0xc38'),'route':_0x2d522e('0x23b4'),'translate':_0x2d522e('0x158a'),'state':_0x2d522e('0x1bb7'),'weight':0x8,'hidden':function(){const _0x4ec197=_0x2d522e;return _0x221ab1['hasRole'](_0x4ec197('0x7b0'))||!_0x221ab1['hasPermission'](0x3f0)&&!_0x221ab1[_0x4ec197('0x1b4e')](_0x4ec197('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1f11'),{'id':0x3f1,'title':_0x2d522e('0x2db'),'route':_0x2d522e('0x1a98'),'translate':_0x2d522e('0x1526'),'state':_0x2d522e('0x668'),'weight':0x9,'hidden':function(){const _0x2692bf=_0x2d522e;return _0x221ab1[_0x2692bf('0x1b4e')](_0x2692bf('0x7b0'))||!_0x221ab1[_0x2692bf('0x1f1b')](0x3f1)&&!_0x221ab1[_0x2692bf('0x1b4e')](_0x2692bf('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x101b'),{'id':0x3f3,'title':'Trunks','route':_0x2d522e('0x15b7'),'translate':_0x2d522e('0x160'),'state':_0x2d522e('0x1bff'),'weight':0xb,'hidden':function(){const _0xbfe03f=_0x2d522e;return _0x221ab1[_0xbfe03f('0x1b4e')](_0xbfe03f('0x7b0'))||!_0x221ab1['hasPermission'](0x3f3)&&!_0x221ab1[_0xbfe03f('0x1b4e')](_0xbfe03f('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xd48'),{'id':0x3f4,'title':_0x2d522e('0xd92'),'route':'variable','translate':_0x2d522e('0x1b44'),'state':_0x2d522e('0x2045'),'weight':0xc,'hidden':function(){const _0x573d00=_0x2d522e;return _0x221ab1[_0x573d00('0x1b4e')](_0x573d00('0x7b0'))||!_0x221ab1[_0x573d00('0x1f1b')](0x3f4)&&!_0x221ab1[_0x573d00('0x1b4e')](_0x573d00('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1be0'),{'id':0x3ea,'title':_0x2d522e('0x1bbf'),'route':_0x2d522e('0x2766'),'translate':_0x2d522e('0x12e7'),'state':_0x2d522e('0x7e9'),'weight':0x2,'hidden':function(){const _0xc79647=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1[_0xc79647('0x1f1b')](0x3ea)&&!_0x221ab1[_0xc79647('0x1b4e')]('admin');}}),_0xb02a63['saveItem'](_0x2d522e('0x19bb'),{'id':0x3f2,'title':_0x2d522e('0x63e'),'route':'','translate':_0x2d522e('0x2116'),'state':_0x2d522e('0x2346'),'weight':0xa,'hidden':function(){const _0xa53e75=_0x2d522e;return _0x221ab1[_0xa53e75('0x1b4e')](_0xa53e75('0x7b0'))||!_0x221ab1[_0xa53e75('0x1f1b')](0x3f2)&&!_0x221ab1[_0xa53e75('0x1b4e')](_0xa53e75('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x2727'),{'id':0x44c,'title':_0x2d522e('0x27e7'),'translate':_0x2d522e('0x1885'),'icon':'icon-sitemap','weight':0xd,'license':_0x2d522e('0x21a8'),'hidden':function(){const _0x1d92ea=_0x2d522e;return!_0x42a4f9['voice']||_0x221ab1[_0x1d92ea('0x1b4e')](_0x1d92ea('0x7b0'))||!_0x221ab1[_0x1d92ea('0x2656')](_0x588605(this))&&!_0x221ab1[_0x1d92ea('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.callysquare.odbcs',{'id':0x44d,'title':_0x2d522e('0x1597'),'route':'squareOdbc','translate':_0x2d522e('0x994'),'state':_0x2d522e('0x1b78'),'weight':0x2,'hidden':function(){const _0x81abab=_0x2d522e;return _0x221ab1[_0x81abab('0x1b4e')](_0x81abab('0x7b0'))||!_0x221ab1['hasPermission'](0x44d)&&!_0x221ab1['hasRole'](_0x81abab('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x192d'),{'id':0x44e,'title':_0x2d522e('0x11e5'),'route':_0x2d522e('0x141c'),'translate':_0x2d522e('0x193c'),'state':_0x2d522e('0x1995'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x4f358d=_0x2d522e;return _0x221ab1[_0x4f358d('0x1b4e')]('agent')||!_0x221ab1[_0x4f358d('0x1f1b')](0x44e)&&!_0x221ab1['hasRole']('admin');}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.callysquare.projects',{'id':0x44f,'title':_0x2d522e('0x557'),'route':'squareProject','translate':_0x2d522e('0x1fef'),'state':_0x2d522e('0x17f6'),'weight':0x1,'hidden':function(){const _0x379d40=_0x2d522e;return _0x221ab1[_0x379d40('0x1b4e')]('agent')||!_0x221ab1['hasPermission'](0x44f)&&!_0x221ab1[_0x379d40('0x1b4e')](_0x379d40('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x11d5'),{'id':0x4b0,'title':_0x2d522e('0x1154'),'translate':_0x2d522e('0xafb'),'icon':_0x2d522e('0x3b4'),'weight':0x10,'hidden':function(){const _0x1a299c=_0x2d522e;return _0x221ab1[_0x1a299c('0x1b4e')](_0x1a299c('0x7b0'))||!_0x221ab1[_0x1a299c('0x2656')](_0x588605(this))&&!_0x221ab1['hasRole'](_0x1a299c('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.analytics.metrics',{'id':0x4b1,'title':_0x2d522e('0xb41'),'route':_0x2d522e('0x2061'),'translate':'ANALYTICS.METRICS','state':_0x2d522e('0x1f30'),'weight':0x3,'hidden':function(){const _0x1386e9=_0x2d522e;return _0x221ab1['hasRole'](_0x1386e9('0x7b0'))||!_0x221ab1[_0x1386e9('0x1f1b')](0x4b1)&&!_0x221ab1['hasRole'](_0x1386e9('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x10f'),{'id':0x4b2,'title':_0x2d522e('0xb85'),'route':_0x2d522e('0x1b3a'),'translate':_0x2d522e('0x1f9b'),'state':'app.analytics.extractedReports','weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2dcea1=_0x2d522e;return _0x221ab1[_0x2dcea1('0x1b4e')](_0x2dcea1('0x7b0'))||!_0x221ab1[_0x2dcea1('0x1f1b')](0x4b2)&&!_0x221ab1[_0x2dcea1('0x1b4e')](_0x2dcea1('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.analytics.reports',{'id':0x4b3,'title':_0x2d522e('0x163b'),'route':'','translate':_0x2d522e('0x19f6'),'state':_0x2d522e('0x185d'),'weight':0x1,'hidden':function(){const _0x2f8981=_0x2d522e;return _0x221ab1[_0x2f8981('0x1b4e')](_0x2f8981('0x7b0'))||!_0x221ab1['hasPermission'](0x4b3)&&!_0x221ab1[_0x2f8981('0x1b4e')]('admin');}}),_0xb02a63['saveItem'](_0x2d522e('0x21b'),{'id':0x514,'title':_0x2d522e('0x198'),'translate':_0x2d522e('0x234c'),'icon':_0x2d522e('0x321'),'weight':0x11,'hidden':function(){const _0x24f91b=_0x2d522e;return _0x221ab1[_0x24f91b('0x1b4e')](_0x24f91b('0x7b0'))||!_0x221ab1[_0x24f91b('0x2656')](_0x588605(this))&&!_0x221ab1[_0x24f91b('0x1b4e')](_0x24f91b('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x72a'),{'id':0x515,'title':_0x2d522e('0x25fb'),'route':'intZendeskAccount','translate':'INTEGRATIONS.ZENDESKACCOUNTS','state':_0x2d522e('0xfeb'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x3744d8=_0x2d522e;return _0x221ab1[_0x3744d8('0x1b4e')](_0x3744d8('0x7b0'))||!_0x221ab1[_0x3744d8('0x1f1b')](0x515)&&!_0x221ab1['hasRole']('admin');}}),_0xb02a63['saveItem'](_0x2d522e('0x783'),{'id':0x516,'title':_0x2d522e('0x34f'),'route':_0x2d522e('0x273a'),'translate':'INTEGRATIONS.SALESFORCEACCOUNTS','state':_0x2d522e('0x1e83'),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1f66d1=_0x2d522e;return _0x221ab1[_0x1f66d1('0x1b4e')](_0x1f66d1('0x7b0'))||!_0x221ab1['hasPermission'](0x516)&&!_0x221ab1[_0x1f66d1('0x1b4e')](_0x1f66d1('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x1b30'),{'id':0x517,'title':'FreshdeskAccounts','route':'intFreshdeskAccount','translate':_0x2d522e('0x1af4'),'state':'app.integrations.freshdeskAccounts','weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x5cad0b=_0x2d522e;return _0x221ab1[_0x5cad0b('0x1b4e')]('agent')||!_0x221ab1[_0x5cad0b('0x1f1b')](0x517)&&!_0x221ab1[_0x5cad0b('0x1b4e')](_0x5cad0b('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1358'),{'id':0x519,'title':_0x2d522e('0x1e9e'),'route':'intSugarcrmAccount','translate':_0x2d522e('0x82e'),'state':_0x2d522e('0xd21'),'weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x28c1a3=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1[_0x28c1a3('0x1f1b')](0x519)&&!_0x221ab1[_0x28c1a3('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1361'),{'id':0x51a,'title':_0x2d522e('0x215c'),'route':'intDeskAccount','translate':_0x2d522e('0x21a3'),'state':_0x2d522e('0xddb'),'weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x3e4845=_0x2d522e;return _0x221ab1['hasRole'](_0x3e4845('0x7b0'))||!_0x221ab1[_0x3e4845('0x1f1b')](0x51a)&&!_0x221ab1[_0x3e4845('0x1b4e')](_0x3e4845('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x13b6'),{'id':0x51b,'title':_0x2d522e('0xf3a'),'route':_0x2d522e('0x12f2'),'translate':_0x2d522e('0x148a'),'state':'app.integrations.zohoAccounts','weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x3139d3=_0x2d522e;return _0x221ab1[_0x3139d3('0x1b4e')](_0x3139d3('0x7b0'))||!_0x221ab1[_0x3139d3('0x1f1b')](0x51b)&&!_0x221ab1[_0x3139d3('0x1b4e')](_0x3139d3('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.integrations.vtigerAccounts',{'id':0x51c,'title':_0x2d522e('0x18fb'),'route':_0x2d522e('0x44c'),'translate':'INTEGRATIONS.VTIGERACCOUNTS','state':_0x2d522e('0x2633'),'weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x502d03=_0x2d522e;return _0x221ab1['hasRole'](_0x502d03('0x7b0'))||!_0x221ab1[_0x502d03('0x1f1b')](0x51c)&&!_0x221ab1[_0x502d03('0x1b4e')](_0x502d03('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0xc37'),{'id':0x51d,'title':_0x2d522e('0x210d'),'route':'intDynamics365Account','translate':_0x2d522e('0xe4c'),'state':'app.integrations.dynamics365Accounts','weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x3a5e52=_0x2d522e;return _0x221ab1[_0x3a5e52('0x1b4e')](_0x3a5e52('0x7b0'))||!_0x221ab1[_0x3a5e52('0x1f1b')](0x51d)&&!_0x221ab1[_0x3a5e52('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x12b4'),{'id':0x51e,'title':'ServicenowAccounts','route':_0x2d522e('0x1c40'),'translate':_0x2d522e('0x11d3'),'state':_0x2d522e('0x17e1'),'weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x267a6e=_0x2d522e;return _0x221ab1[_0x267a6e('0x1b4e')](_0x267a6e('0x7b0'))||!_0x221ab1[_0x267a6e('0x1f1b')](0x51e)&&!_0x221ab1['hasRole']('admin');}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.integrations.freshsalesAccounts',{'id':0x518,'title':_0x2d522e('0x1171'),'route':_0x2d522e('0x1323'),'translate':_0x2d522e('0x1d76'),'state':_0x2d522e('0xe3'),'weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0xed5a81=_0x2d522e;return _0x221ab1['hasRole'](_0xed5a81('0x7b0'))||!_0x221ab1[_0xed5a81('0x1f1b')](0x518)&&!_0x221ab1[_0xed5a81('0x1b4e')]('admin');}}),_0xb02a63['saveItem'](_0x2d522e('0x24af'),{'id':0x578,'title':_0x2d522e('0x72'),'translate':_0x2d522e('0x3e1'),'icon':_0x2d522e('0x147a'),'weight':0x14,'permissions':{'hidden':!![]},'hidden':function(){const _0x43acc1=_0x2d522e;return _0x221ab1[_0x43acc1('0x1b4e')](_0x43acc1('0x7b0'))||!_0x221ab1['hasPermission'](0x578)&&!_0x221ab1[_0x43acc1('0x1b4e')](_0x43acc1('0x79b'))||_0x221ab1[_0x43acc1('0x1b4e')](_0x43acc1('0x79b'))&&!_0x221ab1['getCurrentUser']()[_0x43acc1('0x1cbd')];}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xf76'),{'id':0x579,'title':_0x2d522e('0x1cb9'),'route':'setting','translate':'SETTINGS.GENERAL','state':_0x2d522e('0x1918'),'weight':0x1,'hidden':function(){const _0x524eb1=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1[_0x524eb1('0x1f1b')](0x578)&&!_0x221ab1[_0x524eb1('0x1b4e')](_0x524eb1('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x134f'),{'id':0x57a,'title':'Smtp','route':_0x2d522e('0x77b'),'translate':_0x2d522e('0xfd3'),'state':_0x2d522e('0x15ec'),'weight':0x1,'hidden':function(){const _0x422f7c=_0x2d522e;return _0x221ab1['hasRole'](_0x422f7c('0x7b0'))||!_0x221ab1[_0x422f7c('0x1f1b')](0x578)&&!_0x221ab1[_0x422f7c('0x1b4e')](_0x422f7c('0x79b'));}}),_0xb02a63['saveItem']('apps.settings.networks',{'id':0x57b,'title':_0x2d522e('0x21d7'),'route':_0x2d522e('0x1fd7'),'translate':_0x2d522e('0x239d'),'state':_0x2d522e('0x2437'),'weight':0x1,'hidden':function(){const _0x73764f=_0x2d522e;return _0x221ab1['hasRole'](_0x73764f('0x7b0'))||!_0x221ab1['hasPermission'](0x578)&&!_0x221ab1[_0x73764f('0x1b4e')](_0x73764f('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1f59'),{'id':0x57f,'title':_0x2d522e('0x1064'),'route':_0x2d522e('0x251'),'translate':_0x2d522e('0x787'),'state':_0x2d522e('0x207b'),'weight':0x1,'hidden':function(){const _0x1187e1=_0x2d522e;return!_0x42a4f9['custom']||_0x221ab1[_0x1187e1('0x1b4e')](_0x1187e1('0x7b0'))||!_0x221ab1['hasPermission'](0x578)&&!_0x221ab1[_0x1187e1('0x1b4e')](_0x1187e1('0x79b'));}}),_0xb02a63['saveItem']('apps.settings.cloudProviders',{'id':0x580,'title':_0x2d522e('0x5e3'),'route':'cloudProvider','translate':_0x2d522e('0x131b'),'state':'app.settings.cloudProviders','weight':0x1,'hidden':function(){const _0x51201c=_0x2d522e;return!_0x42a4f9['ai']||_0x221ab1['hasRole'](_0x51201c('0x7b0'))||!_0x221ab1[_0x51201c('0x1f1b')](0x578)&&!_0x221ab1[_0x51201c('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x2140'),{'id':0x57c,'title':'Updates','route':'','translate':_0x2d522e('0x88'),'state':'app.settings.updates','weight':0x1,'hidden':function(){const _0x32769d=_0x2d522e;return!_0x42a4f9[_0x32769d('0x1842')]||_0x221ab1[_0x32769d('0x1b4e')](_0x32769d('0x7b0'))||!_0x221ab1['hasPermission'](0x578)&&!_0x221ab1[_0x32769d('0x1b4e')](_0x32769d('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0xaec'),{'id':0x57d,'title':'License','route':'','translate':_0x2d522e('0xfc6'),'state':_0x2d522e('0x1203'),'weight':0x1,'hidden':function(){const _0x2d3db0=_0x2d522e;return _0x221ab1['hasRole'](_0x2d3db0('0x7b0'))||!_0x221ab1['hasPermission'](0x578)&&!_0x221ab1[_0x2d3db0('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1d64'),{'id':0x57e,'title':_0x2d522e('0xc9b'),'route':'','translate':_0x2d522e('0x10ba'),'state':_0x2d522e('0x1754'),'weight':0x1,'hidden':function(){const _0x3bf5dc=_0x2d522e;return _0x221ab1[_0x3bf5dc('0x1b4e')](_0x3bf5dc('0x7b0'))||!_0x221ab1['hasPermission'](0x578)&&!_0x221ab1[_0x3bf5dc('0x1b4e')](_0x3bf5dc('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1de'),{'id':0x5dc,'title':_0x2d522e('0x2183'),'translate':_0x2d522e('0x1a19'),'icon':'icon-fire','weight':0x5,'license':_0x2d522e('0x707'),'hidden':function(){const _0x356e0c=_0x2d522e;return!_0x42a4f9[_0x356e0c('0x707')]||_0x221ab1[_0x356e0c('0x1b4e')](_0x356e0c('0x7b0'))||!_0x221ab1[_0x356e0c('0x2656')](_0x588605(this))&&!_0x221ab1[_0x356e0c('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1093'),{'id':0x5dd,'title':'QueueCampaigns','route':_0x2d522e('0x1282'),'translate':_0x2d522e('0x7a2'),'state':_0x2d522e('0x78e'),'weight':0x1,'channel':_0x2d522e('0xce4'),'hidden':function(){const _0x46a6d1=_0x2d522e;return _0x221ab1[_0x46a6d1('0x1b4e')](_0x46a6d1('0x7b0'))||!_0x221ab1[_0x46a6d1('0x1f1b')](0x5dd)&&!_0x221ab1[_0x46a6d1('0x1b4e')](_0x46a6d1('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1c1a'),{'id':0x5de,'title':'IvrCampaigns','route':_0x2d522e('0x1983'),'translate':_0x2d522e('0xb63'),'state':_0x2d522e('0x236b'),'weight':0x1,'hidden':function(){const _0x50998a=_0x2d522e;return _0x221ab1[_0x50998a('0x1b4e')]('agent')||!_0x221ab1['hasPermission'](0x5de)&&!_0x221ab1[_0x50998a('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xcc0'),{'id':0x5e6,'title':_0x2d522e('0x66'),'route':'','translate':'MOTIONDIALER.REALTIME','state':'app.motiondialer.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x3fa148=_0x2d522e;return _0x221ab1['hasRole'](_0x3fa148('0x7b0'))||!_0x221ab1[_0x3fa148('0x1f1b')](0x5e6)&&!_0x221ab1['hasRole'](_0x3fa148('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x15dd'),{'id':0x640,'title':'Help','translate':_0x2d522e('0x748'),'icon':_0x2d522e('0x135d'),'weight':0x15,'permissions':{'association':![]},'hidden':function(){const _0xf093c0=_0x2d522e;return _0x221ab1[_0xf093c0('0x1b4e')](_0xf093c0('0x7b0'))||!_0x221ab1['hasPermission'](0x640)&&!_0x221ab1[_0xf093c0('0x1b4e')](_0xf093c0('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x34c'),{'id':0x641,'title':_0x2d522e('0x1c26'),'route':'','translate':'HELP.ABOUT','state':_0x2d522e('0x14ee'),'weight':0x1,'hidden':function(){const _0xda7682=_0x2d522e;return _0x221ab1[_0xda7682('0x1b4e')](_0xda7682('0x7b0'))||!_0x221ab1[_0xda7682('0x1f1b')](0x640)&&!_0x221ab1[_0xda7682('0x1b4e')](_0xda7682('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x1672'),{'id':0x6a4,'title':'jscripty','translate':'JSCRIPTY.JSCRIPTY','icon':_0x2d522e('0x3e6'),'weight':0xe,'license':_0x2d522e('0x25a1'),'hidden':function(){const _0x387344=_0x2d522e;return!_0x42a4f9[_0x387344('0x25a1')]||_0x221ab1[_0x387344('0x1b4e')](_0x387344('0x7b0'))||!_0x221ab1[_0x387344('0x2656')](_0x588605(this))&&!_0x221ab1[_0x387344('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.jscripty.projects',{'id':0x6a5,'title':'Projects','route':_0x2d522e('0x46f'),'translate':'JSCRIPTY.PROJECTS','state':'app.jscripty.projects','weight':0x1,'hidden':function(){const _0x48dbf9=_0x2d522e;return _0x221ab1[_0x48dbf9('0x1b4e')](_0x48dbf9('0x7b0'))||!_0x221ab1[_0x48dbf9('0x1f1b')](0x6a5)&&!_0x221ab1[_0x48dbf9('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x13e9'),{'id':0x708,'title':_0x2d522e('0x5f7'),'translate':'MARKETPLACE.MARKETPLACE','icon':_0x2d522e('0x23f8'),'weight':0x12,'hidden':function(){const _0x1f6160=_0x2d522e;return _0x221ab1['hasRole'](_0x1f6160('0x7b0'))||!_0x221ab1[_0x1f6160('0x2656')](_0x588605(this))&&!_0x221ab1['hasRole'](_0x1f6160('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x1a85'),{'id':0x709,'title':_0x2d522e('0x1e18'),'route':'plugin','translate':'MARKETPLACE.PLUGINS','state':'app.marketplace.plugins','weight':0x1,'hidden':function(){const _0x5bd3d8=_0x2d522e;return _0x221ab1[_0x5bd3d8('0x1b4e')]('agent')||!_0x221ab1[_0x5bd3d8('0x1f1b')](0x709)&&!_0x221ab1[_0x5bd3d8('0x1b4e')]('admin');}}),_0xb02a63[_0x2d522e('0x10e0')]('apps.video',{'id':0x7d0,'title':_0x2d522e('0x146d'),'translate':'VIDEO.VIDEO','icon':'icon-video','weight':0xc,'license':_0x2d522e('0x1fcd'),'hidden':function(){const _0x4e9458=_0x2d522e;return!_0x42a4f9[_0x4e9458('0x1fcd')]||_0x221ab1[_0x4e9458('0x1b4e')](_0x4e9458('0x7b0'))||!_0x221ab1[_0x4e9458('0x2656')](_0x588605(this))&&!_0x221ab1[_0x4e9458('0x1b4e')](_0x4e9458('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x21a6'),{'id':0x7d1,'title':_0x2d522e('0xdf'),'route':_0x2d522e('0x195a'),'translate':_0x2d522e('0x620'),'state':'app.video.screenRecordings','weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x3387ce=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1[_0x3387ce('0x1f1b')](0x7d1)&&!_0x221ab1[_0x3387ce('0x1b4e')](_0x3387ce('0x79b'));}}),_0xb02a63['saveItem'](_0x2d522e('0x41b'),{'id':0x834,'title':_0x2d522e('0xf42'),'translate':_0x2d522e('0x1dca'),'icon':_0x2d522e('0xfdd'),'weight':0xb,'license':_0x2d522e('0x245'),'hidden':function(){const _0x2d8445=_0x2d522e;return!_0x42a4f9[_0x2d8445('0x245')]||_0x221ab1['hasRole'](_0x2d8445('0x7b0'))||!_0x221ab1['hasChildrenPermissions'](_0x588605(this))&&!_0x221ab1[_0x2d8445('0x1b4e')](_0x2d8445('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0xcb0'),{'id':0x835,'title':_0x2d522e('0xff6'),'route':_0x2d522e('0x9cb'),'translate':_0x2d522e('0x1646'),'state':_0x2d522e('0x1184'),'weight':0x1,'channel':_0x2d522e('0x245'),'hidden':function(){const _0x4230a6=_0x2d522e;return _0x221ab1[_0x4230a6('0x1b4e')](_0x4230a6('0x7b0'))||!_0x221ab1[_0x4230a6('0x1f1b')](0x835)&&!_0x221ab1[_0x4230a6('0x1b4e')](_0x4230a6('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x884'),{'id':0x836,'title':_0x2d522e('0x26e3'),'route':'whatsappAccount','translate':_0x2d522e('0x16e'),'state':_0x2d522e('0x1c42'),'weight':0x1,'channel':_0x2d522e('0x245'),'hidden':function(){const _0x4f74b9=_0x2d522e;return _0x221ab1['hasRole']('agent')||!_0x221ab1[_0x4f74b9('0x1f1b')](0x836)&&!_0x221ab1[_0x4f74b9('0x1b4e')](_0x4f74b9('0x79b'));}}),_0xb02a63[_0x2d522e('0x10e0')](_0x2d522e('0x2295'),{'id':0x83e,'title':_0x2d522e('0x66'),'route':'','translate':'WHATSAPP.REALTIME','state':_0x2d522e('0x227a'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x32f0d7=_0x2d522e;return _0x221ab1[_0x32f0d7('0x1b4e')](_0x32f0d7('0x7b0'))||!_0x221ab1[_0x32f0d7('0x1f1b')](0x83e)&&!_0x221ab1[_0x32f0d7('0x1b4e')](_0x32f0d7('0x79b'));}}),_0xb02a63[_0x2d522e('0xfbe')](),_0x20e83d[_0x2d522e('0x10e0')](_0x2d522e('0x5cb'),{'title':_0x2d522e('0x166'),'group':!![],'weight':0x1}),_0x20e83d['saveItem'](_0x2d522e('0x273d'),{'id':0x64,'title':'Home','translate':_0x2d522e('0x15f'),'icon':_0x2d522e('0x106e'),'weight':0x1}),_0x20e83d[_0x2d522e('0x10e0')](_0x2d522e('0xb51'),{'id':0x65,'title':_0x2d522e('0x21c0'),'translate':_0x2d522e('0x1d52'),'state':_0x2d522e('0x10ea'),'view':'dashboard','icon':'icon-tile-four','iconClass':_0x2d522e('0x14f'),'weight':0x1,'hidden':function(){return!_0x221ab1['hasPermission'](0x65);}}),_0x20e83d[_0x2d522e('0x10e0')](_0x2d522e('0x1b5f'),{'id':0x66,'title':_0x2d522e('0x215'),'translate':'DASHBOARDS.CONTACTS','state':_0x2d522e('0xd53'),'view':'contacts','icon':_0x2d522e('0x150d'),'iconClass':_0x2d522e('0xdac'),'weight':0x2,'hidden':function(){const _0x3ba4b2=_0x2d522e;return!_0x42a4f9['cm']||!_0x221ab1[_0x3ba4b2('0x1f1b')](0x66);}}),_0x20e83d[_0x2d522e('0x10e0')]('apps.home.mycontacts',{'id':0x67,'title':'Contacts','translate':_0x2d522e('0x5df'),'state':'mycontacts','view':_0x2d522e('0xf05'),'icon':_0x2d522e('0x270a'),'iconClass':'red-fg','weight':0x3,'hidden':function(){return!_0x42a4f9['cm']||!_0x221ab1['hasPermission'](0x67);}}),_0x20e83d['saveItem'](_0x2d522e('0x52f'),{'id':0x71,'title':_0x2d522e('0xb6c'),'translate':_0x2d522e('0x26e1'),'state':_0x2d522e('0xebc'),'view':_0x2d522e('0xebc'),'icon':_0x2d522e('0xac3'),'iconClass':_0x2d522e('0x1719'),'weight':0x3,'hidden':function(){const _0x5ef6f7=_0x2d522e;return!_0x42a4f9[_0x5ef6f7('0x707')]||!_0x221ab1[_0x5ef6f7('0x1f1b')](0x71);}}),_0x20e83d['saveItem']('apps.home.voice',{'id':0x6e,'title':'Voice','translate':_0x2d522e('0x21cd'),'state':_0x2d522e('0x21a8'),'view':'voice','icon':_0x2d522e('0x1196'),'iconClass':_0x2d522e('0x170d'),'weight':0x4,'hidden':function(){const _0x29d06e=_0x2d522e;return!_0x42a4f9[_0x29d06e('0x21a8')]||!_0x221ab1[_0x29d06e('0x1f1b')](0x6e);}}),_0x20e83d[_0x2d522e('0x10e0')](_0x2d522e('0x226f'),{'id':0x6f,'title':_0x2d522e('0x1884'),'translate':_0x2d522e('0x2590'),'state':_0x2d522e('0x3b9'),'view':_0x2d522e('0x3b9'),'icon':_0x2d522e('0x1300'),'iconClass':'blue-fg','weight':0x5,'hidden':function(){const _0x26530b=_0x2d522e;return!_0x42a4f9['voice']||!_0x221ab1[_0x26530b('0x1f1b')](0x6f);}}),_0x20e83d[_0x2d522e('0x10e0')]('apps.home.recordings',{'id':0x68,'title':_0x2d522e('0x1ce3'),'translate':_0x2d522e('0x2489'),'state':_0x2d522e('0x1a24'),'view':_0x2d522e('0x1a24'),'icon':_0x2d522e('0xf95'),'iconClass':_0x2d522e('0x2745'),'weight':0x6,'hidden':function(){const _0x11e244=_0x2d522e;return!_0x42a4f9[_0x11e244('0x21a8')]||!_0x221ab1[_0x11e244('0x1f1b')](0x68);}}),_0x20e83d[_0x2d522e('0x10e0')](_0x2d522e('0x775'),{'id':0x69,'title':_0x2d522e('0x180a'),'translate':_0x2d522e('0xcfe'),'state':'chat','view':_0x2d522e('0x8c5'),'icon':'icon-hangouts','iconClass':_0x2d522e('0xde9'),'weight':0x7,'hidden':function(){const _0x2bc63c=_0x2d522e;return!_0x42a4f9['chat']||!_0x221ab1[_0x2bc63c('0x1f1b')](0x69);}}),_0x20e83d[_0x2d522e('0x10e0')](_0x2d522e('0x2557'),{'id':0x6a,'title':_0x2d522e('0x12c6'),'translate':_0x2d522e('0x13e'),'state':_0x2d522e('0x108a'),'view':_0x2d522e('0x108a'),'icon':_0x2d522e('0x16b4'),'iconClass':'teal-fg','weight':0x8,'hidden':function(){const _0x4d18d2=_0x2d522e;return!_0x42a4f9[_0x4d18d2('0x108a')]||!_0x221ab1[_0x4d18d2('0x1f1b')](0x6a);}}),_0x20e83d[_0x2d522e('0x10e0')](_0x2d522e('0x649'),{'id':0x6b,'title':'Sms','translate':_0x2d522e('0x24d3'),'state':_0x2d522e('0x1a8f'),'view':'sms','icon':'icon-message-text','iconClass':'orange-fg','weight':0x9,'hidden':function(){const _0x352ada=_0x2d522e;return!_0x42a4f9[_0x352ada('0x2228')]||!_0x221ab1[_0x352ada('0x1f1b')](0x6b);}}),_0x20e83d[_0x2d522e('0x10e0')](_0x2d522e('0x1d9c'),{'id':0x6c,'title':_0x2d522e('0x1fa2'),'translate':_0x2d522e('0x23ed'),'state':_0x2d522e('0xab2'),'view':_0x2d522e('0xab2'),'icon':_0x2d522e('0x1f64'),'iconClass':'amber-fg','weight':0xa,'hidden':function(){const _0x27a0ed=_0x2d522e;return!_0x42a4f9['openchannel']||!_0x221ab1[_0x27a0ed('0x1f1b')](0x6c);}}),_0x20e83d[_0x2d522e('0x10e0')]('apps.home.fax',{'id':0x6d,'title':_0x2d522e('0x45a'),'translate':_0x2d522e('0x1129'),'state':_0x2d522e('0x16d'),'view':_0x2d522e('0x16d'),'icon':_0x2d522e('0x41c'),'iconClass':'blue-grey-A200-fg','weight':0xb,'hidden':function(){const _0x97852f=_0x2d522e;return!_0x42a4f9[_0x97852f('0x16d')]||!_0x221ab1[_0x97852f('0x1f1b')](0x6d);}}),_0x20e83d['saveItem'](_0x2d522e('0x117f'),{'id':0x72,'title':_0x2d522e('0xf42'),'translate':_0x2d522e('0x13ac'),'state':'whatsapp','view':_0x2d522e('0x245'),'icon':_0x2d522e('0xfdd'),'iconClass':_0x2d522e('0x734'),'weight':0xc,'hidden':function(){const _0x27bdbf=_0x2d522e;return!_0x42a4f9[_0x27bdbf('0x245')]||!_0x221ab1[_0x27bdbf('0x1f1b')](0x72);}}),_0x5f32a3['$on'](_0x2d522e('0x18b5'),function(_0x5f3f08){const _0x14ea35=_0x2d522e;_0x5f3f08[_0x14ea35('0x125')][_0x14ea35('0x24d5')]===_0x5f32a3[_0x14ea35('0x24d5')]&&_0x25e316[_0x14ea35('0x21e8')](_0x14ea35('0x6c8'));});}const _0x56443e=_0x1bf62b;;const _0x4c6253=['angular-toasty',_0x566993('0x1e4e'),_0x566993('0x4dd'),_0x566993('0xf52'),_0x566993('0x2369'),_0x566993('0x256e'),_0x566993('0xa3'),_0x566993('0x27e4'),'app.dashboards',_0x566993('0xc7c'),_0x566993('0x20bc'),_0x566993('0xadc'),'app.chat',_0x566993('0x7c0'),_0x566993('0xd30'),_0x566993('0x2126'),_0x566993('0x1ffa'),_0x566993('0xba7'),'app.callysquare',_0x566993('0x25bd'),'app.integrations',_0x566993('0x13d4'),_0x566993('0x1851'),_0x566993('0x137b'),_0x566993('0x15fa'),_0x566993('0x180c'),_0x566993('0x22b5'),_0x566993('0xf73'),'app.whatsapp','app.login',_0x566993('0x7a8'),'app.reset','app.errors'];angular['module'](_0x566993('0x27a0'),_0x4c6253)['factory'](_0x566993('0xbd4'),_0x2fb700)[_0x566993('0xea9')](_0x9254fe)[_0x566993('0x1e65')]('IndexController',_0x80940c)['filter'](_0x566993('0x100d'),_0x127489)['filter'](_0x566993('0x26d5'),_0xedb1e9)[_0x566993('0x235c')]('IndexFactory',_0x52ac6f)['factory']('dateFilterLocalizationFactory',_0x505d23)[_0x566993('0x235c')]('Sequence',_0x345647)['config'](_0x52b5cf)['run'](_0x42673c)[_0x566993('0x235c')](_0x566993('0x2fc'),_0x1d2ade)[_0x566993('0x1e65')](_0x566993('0x2095'),_0x56443e);},0x1a2c:(_0x418179,_0x4f4858,_0x34d5c5)=>{const _0x28c531=_0x4d4e38;var _0x449275={'./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 _0x37ba1d(_0x2e30f5){var _0xbbae93=_0x5d6b68(_0x2e30f5);return _0x34d5c5(_0xbbae93);}function _0x5d6b68(_0x1da465){const _0x1e5a31=a0_0xde5e;if(!_0x34d5c5['o'](_0x449275,_0x1da465)){var _0x3fae4f=new Error(_0x1e5a31('0x24d1')+_0x1da465+'\x27');_0x3fae4f['code']=_0x1e5a31('0x1c2f');throw _0x3fae4f;}return _0x449275[_0x1da465];}_0x37ba1d[_0x28c531('0x1d3e')]=function _0x35a88a(){return Object['keys'](_0x449275);},_0x37ba1d[_0x28c531('0x155b')]=_0x5d6b68,_0x418179[_0x28c531('0x19e8')]=_0x37ba1d,_0x37ba1d['id']=0x1a2c;},0x1666:_0x3d9e68=>{const _0x3d2a8e=_0x4d4e38;'use strict';_0x3d9e68[_0x3d2a8e('0x19e8')]=angular;}},0x0,[[0x1efd,0x29a,0x301]]]); \ No newline at end of file diff --git a/public/app-9e390876547714908ca5.js b/public/app-9e390876547714908ca5.js new file mode 100644 index 0000000..560b135 --- /dev/null +++ b/public/app-9e390876547714908ca5.js @@ -0,0 +1,21 @@ +/*! + * @license + * ************************************************************************* + * * * + * * xCALLY Motion - The Omnichannel Contact Center * + * * Copyright (c) Xenialab s.r.l. All Rights Reserved * + * * * + * ************************************************************************* + * * * + * * Email: info@xcally.com * + * * Website: https://www.xcally.com * + * * * + * ************************************************************************* + * * * + * * The SOFTWARE PRODUCT is protected by copyright laws and international * + * * copyright treaties, as well as other intellectual property laws and * + * * treaties. The SOFTWARE PRODUCT is licensed, not sold. * + * * * + * ************************************************************************* + */ +const a0_0xc6c5=['toggleChat','User\x20properly\x20saved!','hljs','dispositions/describe','isEqual','api.user.removeApiKey','integrations/zendesk/accounts/:id/configurations','mail/applications/describe','GET_TEMPLATE','ExtractedReport\x20properly\x20deleted!','cm/hopper_black/:id','trunk_id','exportSelectedTriggerActions','isString','AgentsMailRealtimeController\x20as\x20vm','Call\x20properly\x20handled!','conf','api.condition.save','Interval\x20has\x20been\x20saved!','id=','gotogoto','absorbEvent','getODBC','rpcSmsQueuesWaitingInteractions','European\x20Italian\x20Male','The\x20item\x20will\x20be\x20deleted.','intZohoAccount','deletevoicePrefix','TOOLS.CANNEDANSWERS','ZohoAccount\x20properly\x20created','Indian/Maldives','pt-br','getApi','voiceContext@get','unreadTotalGroupMessages','api.voiceMusicOnHold.save','deleteVoiceQueue','deleteNetwork','intDynamics365Configuration','accent','selectedServicenowAccounts','api.voiceMail.save','CloudProvider\x20properly\x20deleted!','OutboundRoute\x20properly\x20created','saveList','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappQueues?','addNewVariable','Fax\x20Report\x20Transfer','auth/local','contrast4','OPENCHANNEL.ALL_TEAMS','icon-server-plus','ivrCampaigns','analytics/default_reports/:id/clone','700','SYSTEM:GETprojects','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','ar-MA','update','The\x20mohSound\x20will\x20be\x20deleted.','exportSelectedChatQueues','palettes','rpcChatQueues','SystemController','OpenchannelQueue\x20properly\x20deleted!','gotoProjects','ProjectID','deleteSelectedSquareRecordings','sounds','exportSelectedMailAccountMailCannedAnswers','zohoAccounts','CreateOrEditFreshdeskConfigurationDialogController','voicemail','-05:00','HANGUPCAUSE_38','deskAccount','agentreject','notes','getSmsInteractions','eurgermanfemale','chat/reports/queue/:id/clone','SmtpController\x20as\x20vm','src/js/modules/main/apps/motiondialer/views/realtime/realtime.html/realtime.html','reLayoutDebounce','/freshsalesAccounts','src/js/modules/main/apps/video/views/screenRecordings/screenRecordings.html/screenRecordings.html','ms-scroll','#9ea1a9','onSaveUserMailQueue','motion2.home.sms:','DASHBOARDS.SELECT_ACCOUNT','SYSTEM:GETopenchannelAccounts','Format\x20Error','OpenchannelAccount\x20properly\x20saved!','substr','exportSelectedODBC','shift','America/Noronha','ckeditor','isInConference','src/js/modules/main/apps/dashboards/views/general/user/whatsapp/user.general.whatsapp.html/user.general.whatsapp.html','mwForm.pageEvents.changePage','Carmen','openDialog','removeTeams','#c2d4ef','fax/queues/:id/clone','Apple','Pacific/Guam','associatedReports','rpcChatQueuesWaitingInteractions','msEmojiArea','HotDeskDialogController','cm/hopper_final/:id/clone','Antarctica/Casey','deleteSelectedZendeskAccounts','delete\x20globalCustomField','delete\x20OpenchannelQueues','treeCustomConfig','parentKey','composeWhatsappInteraction','mdColorPicker','\x20ms','invalid','originalMessage','deleteSelectedInboundRoutes','openchannelMessage','expand-animation','Trunk\x20properly\x20created','/motiondialer','deleteDisposition','VoiceQueueId','waitImagesLoaded','onSaveUserWhatsappQueue','The\x20userProfile\x20will\x20be\x20deleted.','serviceWorker','cm/companies/:id/clone','scheduledat','phoneBarAutoAnswerDelay','Preview','English\x20(Kenya)','session\x20#','CreateOrEditWhatsappQueueDialogController','internalroutes','id,body','change','/assets/images/theme-options/vertical-nav.jpg','getApiKey','clientEmail','exportSelectedZendeskAccounts','selectedChatQueues','\x27th\x27','integrations/dynamics365/fields/:id/clone','Africa/Ceuta','src/js/modules/main/apps/dashboards/views/general/agent/contact/selection/dialog.html/dialog.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20globalCustomFields?','getSugarcrmAccounts','motion2.home.abandoned.voice.calls:','API\x20reject\x20message\x20not\x20found:\x20','chat/queues/describe','screenRecording\x20properly\x20created','deleteSelectedSugarcrmAccounts','openchannel/reports/transfer/:id','DASHBOARDS.THIS_YEAR','DeskAccount','SYSTEM:GETtrunks','addNewReportField','onUpdateWhatsappQueue','smsInteraction:update','checkContactHopper','src/js/modules/main/apps/voice/views/musiconholds/edit/mohSounds/dialog.html/dialog.html','apps.home.mycontacts','service','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/whatsappAccounts.html/whatsappAccounts.html','The\x20openchannelAccount\x20will\x20be\x20deleted.','customDashboard','mailInteraction:save','getCurrentUser','Asia/Srednekolymsk','settingsEnabled','gotocontactsgoto','select_node','Pacific/Tahiti','contrast3','deleteVariable','mailMessage','America/Juneau','draft','America/Indiana/Winamac','createOrEditSalesforceAccount','Customization\x20properly\x20deleted!','sr-ME','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/resetlist/resetlist.html/resetlist.html','Icelandic','The\x20agent\x20will\x20be\x20deleted.','SMS.SMS','Outbound\x20route\x20not\x20deleted!','BookedProgressive','msMasonryItem:finishReLayout','ngMaterialDateRangePicker','analytics/field_reports/destroy_many','VoicePrefixes','createOrEditZohoConfiguration','addNewSugarcrmConfiguration','mapAgentsId','Australia/Sydney','AgentHomeChatController','user:update','CreateOrEditCompanyDialogController','downloadOpenchannelInteraction','memberReport','rundialog','Body','nb-NO','ltr','children','flipped','Azerbaijani','ChatQueueteamaddController','MOTIONDIALER.CLONE_IVRCAMPAIGN','MOTIONDIALER.MOTIONDIALER','yue-Hant-HK','src/js/modules/main/apps/chat/views/chatQueues/create/dialog.html/dialog.html','Last\x20Year','European\x20Finnish\x20Female','Japanese\x20Male','selectedDeskAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20group?','Delete\x20MusicOnHold','predictiveIntervalDroppedCallsTimeout','MOTIONDIALER.NEW_HOPPER','WhatsappQueueController\x20as\x20vm','Montenegrin','voice_outbound_channel:remove','Are\x20you\x20sure\x20want\x20to\x20stop\x20the\x20plugin\x20attached\x20process?','getZendeskAccounts','saveCloudProvider','Tags\x20set!','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE','toUpper','\x27gmail\x27','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/tag/dialog.html/dialog.html','Africa/Algiers','UserSmsQueue','DASHBOARDS.READ','Last\x20Month','SmsAccount\x20properly\x20created','ms-stepper-step','Delete\x20Sound','api.smsAccount.save','getGlobalCustomFields','apps.home.abandoned','SYSTEM:DELETEanalyticExtractedReport','.UNKNOWN','CannedAnswer\x20properly\x20deleted!','newTeam','src/js/modules/footer/layouts/vertical-navigation/footer.html/footer.html','UserController\x20as\x20vm','substatus','apiName','newCompany','QueuesMailRealtimeController\x20as\x20vm','deleteGlobalCustomField','chatWebsiteChatCannedAnswers','TOOLBAR.ARABIC','uri','addNewContext','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20offlineMessage?','Uighur','autostart','Arabic\x20(Saudi\x20Arabia)','Invalid\x20number\x20of\x20arguments\x20supplied\x20in\x20the\x20color\x20array:\x20','forgot','editOpenchannelAccountApp','Sound','green-A700-fg','OPENCHANNEL.SELECTED_TEAMS','You\x20can\x27t\x20reply\x20or\x20send\x20an\x20email.\x20Please\x20contact\x20the\x20administrator!','black','select','tags/:id/clone','api.openchannel.account','\x27report_fax_queue\x27','fax-interaction','CreateOrEditSmtpDialogController','/companies','icon-keyboard','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','CANCEL','uselessFields','Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction','SalesforceConfiguration\x20deleted!','SYSTEM:GEToutboundRoutes','app/core/directives/ms-widget-engine/ms-widget-engine-','Tags','campaigns/:id','7200','accountProperty','Azerbaijani\x20(Azerbaijan)','projectId','outboundanswerRate','obj','CreateOrEditZohoAccountDialogController','hasClass','delete\x20message','ms-nav-toggle-items','addNewInterval','listSelected','SalesforceConfiguration\x20properly\x20saved!','toggleHorizontalMobileMenu','messagesAlignment','America/Nome','item','America/Merida','cm/contacts/:id/hopper_finals','src/js/modules/main/apps/voice/views/realtime/queues/view.html/view.html','fax/queues/describe','\x20will\x20be\x20restored.','api.cmCompany.save','CreateOrEditSquareRecordingDialogController','Asia/Ho_Chi_Minh','onSaveCampaign','integrations/freshdesk/accounts/:id/configurations','dashboarditem','sql','YES','Weight\x20Random','CreateOrEditOfflineMessageDialogController','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/view.html/view.html','saveChatQueue','Asia/Anadyr','Dutch','Tamil\x20(Malaysia)','Project\x20properly\x20saved!','createObjectURL','OpenchannelAccounts','onDateRangeSelection','saveOutboundRoute','createdAt,updatedAt,id,name,description,table,conditions,joins','12000','NavigationController','STAFF.EDIT_TEAM','Asia/Magadan','S:\x20Stop\x20when\x20no\x20more\x20channels\x20are\x20left\x20to\x20spy\x20on.','extraOperators','src/js/modules/main/apps/mail/views/mailAccounts/edit/agentadd/agentadd.html/agentadd.html','$translate','$cookies','yAxes','webbar:unhold','Customization\x20properly\x20created','ap-south-1','highlight','voice/recordings/:id/transcribe','show','Fields\x20saved!','saveSound','app.voice.inboundroutes.edit','sv-SE','Africa/Maputo','Bearer\x20','dialerCall','\x27openchannel_messages\x27','hideStep','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailQueues?','squareRecording','\x27user\x27','id,starttime,endtime,membername,projectname','SYSTEM:GETplugin','createOrEditDeskAccount','src/js/modules/main/apps/staff/views/teams/edit/agentadd/agentadd.html/agentadd.html','addNewWhatsappQueue','AgentDashboardGeneralController','motion2.home.chat:','CustomDashboard','files','mailCapacity','\x27{{voiceMail.mailbox}}@from-voicemail\x27','getMonth','web','rpc@getCampaigns','mediaConstraints','://','address','xorWith','createOrEditTriggerAllCondition','TOOLS.NEW_TAG','options','dialPredictiveIntervalMinThreshold','squareRecording@get','backgroundPalette','wss://','integrations/sugarcrm/fields/:id/clone','KDE','rpc/fax/accounts','AgentHomeMyContactsController','MAIL.ALL_TEAMS','webtransfer','TIMEOUT','integrations/desk/accounts/:id/configurations','onTransfer','campaigns','selectedWhatsappAccountWhatsappCannedAnswers','_path','results','newWindow','FAX:SEND','rpc@getChatQueues','The\x20license\x20has\x20been\x20updated!','progress','smsStatus','users/:id/unpause','delete\x20messages','onResultClick','WHATSAPP.WHATSAPP','MIN\x20(','square/recordings/:id/clone','accept','Enrique\x20(Spanish,\x20Castilian,\x20Male)','ChanSpies','userChatQueue:save','noauth','propertiesList','UserProfilesController','src/js/modules/main/apps/voice/views/voiceQueues/voiceQueues.html/voiceQueues.html','newContact','onChange','Africa/Ndjamena','Edge','Spanish\x20(Dominican\x20Republic)','fax/queues/:id/teams','app.mail.realtime','beep','Android','&token=','displayValue','botname','msInfoBar','intFreshdeskConfiguration','toDate','teal-bg','onFirstLevelSelection','\x27whatsapp_accounts\x27','top-right','emojioneArea','Dashboard','integrations/desk/accounts/:id/fields','getChatWebsiteChatCannedAnswers','saveUserProfile','deleteWhatsappAccountInteraction','ROUND','cmContact@getHopperHistories','createOrEditUserProfile','CreateOrEditFreshsalesAccountDialogController','hidden','Gujarati','diff','ERROR\x20OPENING\x20JSCRIPTY\x20PROJECT','src/js/modules/main/apps/voice/views/voiceQueues/edit/teamadd/teamadd.html/teamadd.html','users/:id/screen_recordings','sms_queue:save','.ms-stepper-step-content','apps.contactmanager.globalCustomFields','cmList@getCustomFields','mailSubstatus','onSelectList','selectedcrudPermissions','xm-mail-content-','EditInternalAppagiDialogController','Reject','addNewVoiceQueue','findSessionBySessionId\x20->\x20sessionId,\x20vm_pb.sessions','userId','DASHBOARDS.DASHBOARDS','Female','GlobalCustomField\x20properly\x20saved!','TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE','Korean\x20Female','DASHBOARDS.WHATSAPP','gotoPlugins','getDeskConfiguration','HopperBlack\x20deleted!','SYSTEM:GETcontexts','jscripty/projects/describe','app.staff.agents','Infobip','motion.cookieAlertHide:','onChangeList','OpenchannelAccountsController\x20as\x20vm','resetPassword','SmsCannedAnswer\x20properly\x20created','SYSTEM:DELETEintFreshsalesAccount','selectedInboundRouteApps','QuickPanelController\x20as\x20vm','stateClass','SYSTEM:DELETEcmList','apps.openchannel.realtime','api.chatWebsite.update','viber','VoiceRecording\x20properly\x20saved!','putOtherCallsOnHold\x20->\x20session','selectedWhatsappAccountInteractions','No\x20answers\x20available','intervalAttr','cm/contacts/upload/:id','scheduledCalls','FreshdeskConfiguration\x20properly\x20saved!','SugarcrmAccountController','Delete\x20Widget','FaxAccountDispositionsController','Asia/Amman','hi-IN','\x27outlook365\x27','^msNav','chatInteractionTags:save','SYSTEM:GETfaxAccounts','getFields','Africa/Monrovia','/dashboards','daysOfWeek','delete\x20hopperBlacks','isIntegrationDisabled','ListDispositionsController','integrations/vtiger/fields/:id/clone','mailQueuesTotal','STAFF.SELECTED_TEAMS','users/:id/avatar','mailInteraction','SETTINGS.EDIT_CUSTOMIZATION','selectedMailQueues','Task','deselectTelephones','TCL:\x20vm.path','width:\x20265px;','SugarcrmAccount\x20updated!','yearsS','SYSTEM:DELETE_HOPPER','CreateOrEditZohoAccountItemDialogController','musiconhold','EditWhatsappAccountAppdialogflowDialogController','ms-navigation-folded\x20ms-navigation-folded-open','SYSTEM:GET_TREEREPORTS','voice/contexts/:id/clone','TrunkController','isReschedule','integrations/freshsales/fields/:id','FreshdeskAccountConfigurationsController','head','campaign@get','TOOLBAR.LATVIAN','collapseOnBlur','SYSTEM:DELETEreportsByParents','api.tag.update','AgentBusyFactor','TOOLS.NEW_CUSTOMDASHBOARD','api.contacts.save','mail','deleteSelectedQueueCampaignHopperFinals','SYSTEM:GETanalyticReport','Asia/Hovd','interceptors','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/system/dialog.html/dialog.html','saveLists','arraytransport','Set','saveCallback','integrations/dynamics365/accounts/describe','voicemails','es-DO','Delete\x20FaxQueue','monthNumber','voice/calls/reports/:id/clone','SYSTEM:DELETEmailAccount','Network','getIvrCampaignHoppers','content','ar-QA','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?','Africa/Bissau','integrations/sugarcrm/configurations/:id/subjects','Mailbox@Context','vm.customField.type','DashboardItem\x20properly\x20saved!','conditions/:id/clone','getServicenowAccounts','clear','attr','deselectVoiceRecordings','MOTIONDIALER.IVRCAMPAIGNS','CreateOrEditProjectDialogController','getNetworks','CONTACTS\x20NOT\x20AVAILABLE.\x20REWINDING\x20THE\x20LIST','Asia/Krasnoyarsk','+04:00','ivr','transferLastMessage','isOnHold','onExpand','id,action,contact,data1,data2,data3,data4,data5,data6,data7,createdAt,updatedAt','addApi','SYSTEM:GETwhatsappAccounts','whatsapp/accounts/:id','Re:\x20','secondDisposition','INTEGRATIONS.EDIT_VTIGERCONFIGURATION','Celine','QueueCallsMotionDialerRealtimeController','voiceCallReport','Cannot\x20find\x20module\x20\x27','clearSelection','SYSTEM:DELETEtrunk','exportSelectedSmsAccountInteractions','saveVariable','marketplace','pt-BR','=startTime','wide','Europe/Simferopol','thirdDisposition','delete\x20mailSubstatus','getOutboundRoutes','+08:00','selectedVoicemailMessages','msNavigationAgentService','selectedField','trigger@get','host','America/Guatemala','node','headers','drafts','delete\x20offlineMessages','Asia/Dushanbe','saveInternalRouteApp','onRemoveMember','FaxRealtimeController\x20as\x20vm','TriggersController\x20as\x20vm','INTEGRATIONS.ZENDESKACCOUNTS','/queueCampaigns','CreateOrEditchanSpyDialogController','Delete\x20Dynamics365Account','TOOLS.NEW_PAUSE','network','faxAccount','deleteSelectedChatWebsites','ExtractedReports','SYSTEM:GET_MAILACCOUNTS','America/Barbados','invite','faxQueueReport','customFieldsMap','Chinese\x20(Cantonese)','Asia/Ulaanbaatar','delete\x20hopperFinal','theme','call\x20with\x20session\x20Id\x20','loadMore','deselectSalesforceAccounts','app.sms.smsAccounts.edit','intServicenowField','TOOLS.EDIT_TEMPLATE','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/queue/dialog.html/dialog.html','end','api.contact.update','IS_LESS_THAN_OR_EQUAL_TO','apps.dashboards','icon-checkbox-marked-outline','Chat\x20Website','Dial','\x22\x20style=\x22display:none\x22','Delete\x20Context','microphoneId','voice/mails/:id/messages','xorBy','Record','chatCurrentCapacity','wed','attributes','voice/queues/:id/members','\x27hotmail\x27','European\x20Portuguese\x20Female','networks/:id','saveTag','OutboundRoutesController','isoWeek','answer\x20->\x20session','en-IN','.resizable','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/configurations/dialog.html/dialog.html','urlForward','analyticTreeReport','height','ListController','onCollapse','/ms-widget-engine.','addContacts','parent','VOICE.NEW_VOICEPREFIX','gu-IN','TelephonechangepasswordController','','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20squareRecordings?','Linear','saveCompany','templateUrl','delete\x20openchannelCannedAnswer','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopper?','MotionDialerQueueId','\x20has\x20been\x20created!','integrations/zendesk/configurations/:id/subjects','api/attachments','Europe/Prague','America/Indiana/Knox','chatWebsiteApps','importContacts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatQueues?','deleteSugarcrmConfiguration','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','redirectToNumber','allReportsSelected','internalroute','voiceQueue:update','smsAccountApp','operators','gotoZohoAccounts','closeReportDialog','OpenchannelQueueController\x20as\x20vm','Disposition','app/main/apps/chat','getObject','getBlackLists','users/:id/logout','\x27wrandom\x27','FaxAccountsController\x20as\x20vm','UserFaxAccount','updateCondition','team','apiResolver','deleteDescriptionConfirm','api.intZendeskAccount.save','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/view.html/view.html','Delete\x20Template','ChatQueueId','app.tools.intervals.edit','Clickatell','SYSTEM:DELETEvoiceChanSpy','\x27unavailable\x27','userProfiles/describe','unavailable','TOOLS.UPLOAD_SOUND','api/cm/contacts/upload','\x27B\x27','#1a3865','deleteSelectedSounds','analytics/field_reports/:id/clone','Queue\x20Report','cmContact@getHoppers','chat/websites/:id/dispositions','addNewVoiceRecording','Voice\x20Recordings','src/js/modules/main/apps/staff/views/teams/teams.html/teams.html','exportSelectedInboundRoutes','STAFF.PERMISSIONS_ALL_RESOURCES','TOOLS.SCHEDULER','deselectAgents','tables','transfer','mail/accounts/describe','Trunk\x20properly\x20deleted!','America/Paramaribo','Subject\x20deleted!','Hausa','integrations/zoho/configurations/:id/clone','toLowerCase','whatsappQueuesTotal','hopperFinal','draggable','addNewZohoAccount','chatInteraction','localizationMap','Notification\x20API\x20not\x20supported','updateView','phoneBarDnd','user:agentconnect','loadedSection','countbusyretry','SYSTEM:GET_CHATACCOUNTS','api.cmList.save','Asia/Shanghai','CompanyController','integrations/freshsales/fields/:id/clone','hasDashboardPermissions','md.data.table','DeskAccountController','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','saveMohSound','\x27xlsx\x27','voice_queue_channel:save','selectedSmsAccountInteractions','setupSteps','aws_lex_region','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27invalid\x27','deleteProject','rpc/mail/queues/waitinginteractions','The\x20report\x20will\x20be\x20deleted.','Greek\x20(Greece)','delete\x20subjects','queue','api.intZohoAccount.delete','InboundRoute\x20properly\x20deleted!','addTab','app.staff.telephones.edit','deleteTeam','\x274\x27','configuration','api.action.delete','QueueCampaignteamaddController','_blank','shortTime','Amharic\x20(Ethiopia)','ATTENTION','Europe/Madrid','gotoMailAccounts','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/playback/dialog.html/dialog.html','/mailSubtatuses','The\x20vtigerAccount\x20will\x20be\x20deleted.','app.dashboards.general.sms','ServicenowConfiguration\x20properly\x20deleted!','apps.home.chat','deleteReport','ANALYTICS.EDIT_EXTRACTEDREPORT','selectAllVoiceQueues','deleteSelectedOpenchannelAccountApps','disableCustomScrollbarsOnMobile','License','cm/hopper_history/describe','selectedHues','deleteSelectedVoiceRecordings','$element','chat/websites/:id/interactions','en-ZA','api.condition.delete','integrations/servicenow/fields/:id/clone','deleteCompany','ngModel','selectedFreshdeskConfiguration','QueuesMotionDialerRealtimeController\x20as\x20vm','PhoneBar\x20API\x20Error','ja-JP','delete\x20interval','compact','voiceExtension:update','api/plugins','app.integrations','test','ServicenowConfiguration\x20properly\x20created','OPENCHANNEL.EDIT_','convertDuration','chatApplication','err','src/js/modules/main/apps/tools/views/pauses/pauses.html/pauses.html','identity','blue-300-fg\x20icon-phone-paused','src/js/modules/main/apps/settings/views/networks/networks.html/networks.html','Openchannel\x20Account','id,name,fullname','Europe/Budapest','TriggerAnyConditionsController','home.mycontacts','MxGraphEditXMLController','createOrEditWhatsappAccountWhatsappCannedAnswer','InteractionDialogController','The\x20queueCampaign\x20will\x20be\x20deleted.','EditOpenchannelAccountAppnoopDialogController','-04:30','tech','whatsapp/applications/:id','api.intDeskConfiguration.update','whatsappInteraction','msTimeline','md-hue-3','adminUrl','CustomField\x20properly\x20saved!','MailAccountsController','api.mailAccount.save','setBaseUrl','api.contact.save','TOOLBAR.HEBREW','Carla','src/js/modules/main/apps/dashboards/views/general/agent/interaction/transfer/dialog.html/dialog.html','The\x20team\x20will\x20be\x20deleted.','app.openchannel.openchannelQueues.edit','TOOLS.NOTIFICATIONS.CONDITION_CREATED_SUCCESS_TITLE','Message','IndexController','gotoTrunks','navigation','wrapup','SYSTEM:DELETEvoiceRecording','blue-grey','getChatWebsiteLabel','addNewDeskConfiguration','cmCustomField@get','addNewCustomDashboard','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE','EditFaxAccountAppsystemDialogController','createOrEditSugarcrmAccount','voice/queues/:id/teams','vm.queryHistory.filter','mailCannedAnswer','setAttribute','selectedSquareRecordings','selectedDeskConfiguration','screenRecording\x20properly\x20deleted!','SYSTEM:GET_OUTBOUNDROUTES','recallme','getMailQueuesWaitingInteractions','DASHBOARDS.OPENCHANNEL','udp','api.cmHopper.update','rpc@getVoiceQueuesChannels','SYSTEM:GETtrunk','hasIdAnswers','yyears','ZohoConfiguration\x20deleted!','','/mailAccounts','SYSTEM:GET_APIKEY','Pacific/Marquesas','apps.home.scheduled','motion2.home.fax:','mailMessage:update','MsThemeOptionsController','question,answer','IvrCampaign\x20properly\x20deleted!','Asia/Sakhalin','runconfirm','saveGeneral','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20session?','unionBy','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','The\x20interval\x20will\x20be\x20deleted.','api.trigger.update','\x27hi\x27','hopper\x20#','arrayqualify','arrayallow','Delete\x20action','app.whatsapp','FromId','getSmsAccounts','intFreshdeskAccount@get','onEnableAutomaticScreenRecordingSelection','INTEGRATIONS.NEW_SUGARCRMACCOUNT','createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,countglobal,scheduledat,starttime,responsetime,endtime,disposition,secondDisposition,thirdDisposition,ListId,UserId,VoiceQueueId,CampaignId,recallme,deleted,campaign','Project\x20updated!','HOUR\x20(','users/:id/agents','whatsappInteractions','Kyrgyz','VtigerConfiguration\x20deleted!','IntervalController','TrunksController\x20as\x20vm','ChatWebsiteId','append','cmList','isWebRTCSupported','Whatsapp\x20Messages','voice/contexts/describe','trustedHtml','queuecallerleaveAt','AgentHomeDashboardMultiChannelFaxController','InboundRouteActionsController','DASHBOARDS.UNREAD','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicemails?','ChatWebsite\x20properly\x20created','CONTACTMANAGER.NEW_HOPPER','InternalRoute\x20properly\x20deleted!','Nepali','getConfig','createOrEditVoicemail','delete\x20mailQueue','createOrEditDynamics365Account','integrations/desk/configurations/:id','home.sms','deleteMetric','ListagentaddController','userVoiceQueueRt:save','ChatQueues','\x27alaw\x27','addNewWhatsappAccount','deleteSelectedScreenRecordings','createdAt,','api.analyticMetric.save','intDeskAccount','src/js/modules/main/apps/integrations/views/vtigerAccounts/create/dialog.html/dialog.html','composeMailInteraction','src/js/modules/main/apps/contactmanager/views/lists/lists.html/lists.html','removeApi','src/js/modules/main/apps/staff/views/userProfiles/userProfiles.html/userProfiles.html','cmCompany','openchannelInteractions','digit','cm/contacts/:id/clone','newMailQueue','SalesforceAccount\x20properly\x20tested','UserFaxDashboardGeneralController','Caller_ID','template_id','recordingFormat','jscripty/sessions/reports/:id/questions','app.voice.outboundroutes','delete\x20WhatsappQueues','Classic+','ChatQueueController','getUserDeviceMediaExt','icon-video','userFaxQueue:save','red-A700-bg','ms-navigation','\x27sv\x27','whatsappApplication','MailQueues','isDisabled','globalUserLists','VoicemailsController\x20as\x20vm','Galician\x20(Spain)','\x27es\x27','app.integrations.servicenowAccounts','ChatCannedAnswer\x20properly\x20deleted!','Invisible','CustomDashboardsController','MailSubstatus\x20properly\x20created','isOpen','ChatQueue','onload','queueCampaigns','icon-crosshairs','Team\x20properly\x20deleted!','app.voice.contexts','chanSpies','arraydirectmedia','EditSmsAccountAppdialogflowDialogController','reset','name','TOOLS.NOTIFICATIONS.','enable','output','Asia/Baghdad','createOrEditchanSpy','addIntervals','rpc/voice/queues/channels','IS_LESS_THAN','thirdLevelDisposition','$destroy','api.whatsappAccount.update','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20whatsappCannedAnswer?','selectedZendeskConfiguration','\x20properly\x20saved!','id,level,name,description,ParentId,createdAt,updatedAt','Schedule\x20properly\x20created','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?','closed','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/agentadd/agentadd.html/agentadd.html','document','eurgermanmale','UserChatQueue','SYSTEM:GETopenchannelQueue','INTEGRATIONS.EDIT_FRESHSALESCONFIGURATION','src/js/modules/main/apps/tools/views/trunks/create/dialog.html/dialog.html','MailAccountDispositionsController','

','Asia/Thimphu','arrayleavewhenempty','Ewa\x20(Polish,\x20Female)','Delete\x20SmsAccount','No\x20corresponding\x20process\x20found','Resource\x20part\x20\x22','members/reports/:id','sms','ProjectViewerController','callback','src/js/modules/main/apps/tools/views/triggers/triggers.html/triggers.html','sms/interactions/describe','getChatWebsiteApps','getChatWebsiteInteractions','Report\x20Field\x20properly\x20saved!','ToolbarController','column','api.analyticMetric.delete','put','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_MESSAGE','isChecked','VOICE.INTERNALROUTES','fax/applications/:id','jscripty/sessions/reports/:id','chatWebsiteApp','English\x20(UK)','dashboard:save','saveMailQueue','tls','cm/hopper/opencontacts','whatsapp/accounts/:id/canned_answers','\x27S\x27','api.intFreshsalesAccount.update','/generals','VOICE.EDIT_VOICEPREFIX','Ivy','mobileBarActive','WhatsappInteractionId','getTracks','app/core/directives/ms-phonebar/sounds/dialpad/','The\x20dynamics365Account\x20will\x20be\x20deleted.','delete\x20freshdeskAccount','screenRecordings','plugins/describe','$pristine','ERROR\x20UPDATE\x20LOCAL\x20TABS','clickOutsideToClose','chatQueue:remove','Tags\x20has\x20been\x20set!','queue_id','$mdConstant','src/js/modules/main/apps/openchannel/views/openchannelQueues/openchannelQueues.html/openchannelQueues.html','app.sms.realtime.agents','delete\x20Sounds','teal','id,name,channel,status,description,createdAt,updatedAt','muted','app.footer','removeBlackLists','automations/:id','CreateOrEditCloudProviderDialogController','Plugin\x20uninstalled!','Delete','deleteSelectedTeams','/chat','FreshsalesAccountsController','auth/google','selectAllWhatsappQueues','DASHBOARDS.UNKNOWN','MailAccountsRealtimeController\x20as\x20vm','CreateOrEditVariableDialogController','deleteSelectedLists','ListsController\x20as\x20vm','src/js/modules/main/apps/sms/views/smsAccounts/edit/view.html/view.html','whatsappTransferReport','arraynat','saveDialog','PREVIEW','api.intVtigerAccount.delete','FaxQueue\x20properly\x20created','sw-TZ','\x27zh-HK\x27','Brazilian\x20Portuguese\x20Female','setCurrentUser','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/item/dialog.html/dialog.html','|{color:red}','EditInboundAppvoicemailDialogController','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/agent/dialog.html/dialog.html','saveQueueCampaign','mailApplication','Never','vertical','SmsQueue\x20properly\x20deleted!','OPENCHANNEL.EDIT_OPENCHANNELACCOUNT','smtp','version@get','chat/interactions/:id/my_messages','getPauses','toggleClass','response','sms/reports/transfer/describe','analytics/custom_reports/:id','api.trunk.delete','Jacek','currentReport','getInfo','inboundroutes','MAIL.SELECTED_TEAMS','','dialogFlowV2Language','/sms','count','CustomDashboard\x20properly\x20saved!','Freshsales','USERPROFILE:GET_SECTION','onSaveVoiceQueueReport','$interval','osName','smsQueues','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/configurations/dialog.html/dialog.html','delete\x20UserProfiles','goToFaxAccount','getChatWebsiteOfflineMessages','lastLoginAt','trim','rpc/fax/queues/waitinginteractions','src/js/modules/main/apps/dashboards/views/custom/custom.html/custom.html','selectedColor','userProfiles','deleteVtigerAccount','trigger:contactmanager','The\x20max\x20allowed\x20size\x20is\x20','Maxim\x20(Russian,\x20Male)','arrayannounce_holdtime','The\x20cannedAnswer\x20will\x20be\x20deleted.','getIvrCampaignHopperHistories','FreshdeskAccountController','TOOLS.CANCEL','cm/hopper_black/:id/clone','DASHBOARDS.SELECT_AGENT','EditSmsAccountAppcloseDialogController','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,description,receiveUri,notificationSound,notificationShake,notificationTemplate','Failed\x20to\x20retrieve\x20pm2\x20processes','api.schedule.update','smsCannedAnswer','api.voiceMusicOnHold.update','src/js/modules/main/apps/motiondialer/views/realtime/queues/predictive/dialog.html/dialog.html','TOOLS.NOTIFICATIONS.TRIGGERS_DELETED_SUCCESS_TITLE','arraysmsMethod','uniqueid','Basic','UserVoiceQueue','smsAccounts','src/js/modules/main/apps/integrations/views/dynamics365Accounts/dynamics365Accounts.html/dynamics365Accounts.html','never','removeCookies','delete\x20applications','app.integrations.freshsalesAccounts','delete\x20team','\x22path\x22\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','Fax','whatsapp/messages/describe','DASHBOARDS.LAST_MONTH','parentDisposition','inReplyTo','HH:mm:ss','UserOpenchannelAccount','Antarctica/Macquarie','monthName','deleteSelectedSmsQueues','TOOLS.','List\x20','$lt','YYYY-MM-DD','Dynamics365','salesforceAccount','ChineseSimplified','rpc@getFaxAccounts','SYSTEM:DELETEFIELD','TOOLBAR.JAPANESE','api/','delete\x20application','getDaysOfMonth','src/js/modules/main/apps/settings/views/license/request/dialog.html/dialog.html','delete\x20Variables','voiceQueuesLog/:id','apply','apps.analytics.metrics','euritalianfemale','userProfileSection','faxQueue','TOOLBAR.NOTIFICATION_TITLE','\x20has\x20been\x20downloaded!','deleteFaxAccount','getZendeskConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20message?','firstStep','selectedUserProfiles','schedules/describe','whatsappStatus','\x27SIP\x27','onEnded\x20->\x20session,\x20data','isNil','whatsappQueue:save','whatsapp_queue_waiting_interaction:save','Sindhi','app.fax.realtime.trunks','plugins/webhook','America/Winnipeg','src/js/modules/main/apps/motiondialer/views/realtime/agents/view.html/view.html','newFreshsalesAccount','intDynamics365Account','MsStepperController','API:NEW_VARIABLE','unit','intServicenowAccount@get','icon-sitemap','deleteZendeskConfiguration','CONTACTMANAGER.EDIT_CUSTOMFIELD','src/js/modules/main/apps/settings/views/license/license.html/license.html','addInteractionTab','AgentHomeAbandonedController','stopped','app/main/apps/settings','openchannel/accounts/:id','id,type,uniqueid,tag,starttime,endtime,source,destination,userDisposition,userSecondDisposition,userThirdDisposition,note,duration,billableseconds,answertime','app.mail.realtime.accounts','SYSTEM:GETVARIABLES','\x27g722\x27','dd\x20MMM\x20yyyy','selectedOpenchannelAccounts','delete\x20faxQueue','EditInternalAppsetDialogController','Trasfer\x20properly\x20done!','global','saveVoiceQueue','FreshsalesConfiguration\x20deleted!','src/js/modules/main/apps/motiondialer/views/realtime/queue_params/view.html/view.html','\x27files\x27','am-ET','apps.plugins.plugin_','tabs','getItem','deleteCloudProvider','third','flow','Yoruba','TOOLBAR.GERMAN','ListCustomFieldsController','ar-OM','api.voiceContext.save','exportSelectedOpenchannelAccounts','{{\x20name\x20}}\x20<{{\x20email\x20}}>','Europe/Athens','angular-cron-jobs','America/Argentina/Mendoza','deleteMailCannedAnswer','QUICKPANEL.MESSENGER_DISABLED','answered','Contacts','buffer','delete\x20CloudProviders','DispositionsController\x20as\x20vm','\x27agi://127.0.0.1/square,{{project.name}}\x27','\x27onlyIfOpen\x27','delete\x20FaxAccounts','SYSTEM:GET_USERPROFILES','Antarctica/DumontDUrville','deleteVoicemail','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/noop/dialog.html/dialog.html','exportSelectedFreshsalesAccounts','downloadFaxInteraction','en-GB','en-IE','removeJoin','mailAccounts','FreshsalesAccount\x20properly\x20created','EQUALS','quickFilterManager','onInternalMessageUpdate','Interaction','addNewProject','src/js/modules/main/apps/staff/views/teams/create/dialog.html/dialog.html','language','America/Goose_Bay','Call\x20Report','onSaveSmsQueueChannel','ChatQueue\x20properly\x20saved!','customFieldForm','GotoIfTime','exports','evt','CreateOrEditIvrCampaignDialogController','showInfo','recentEmojis','vm.query.filter','integrations/zendesk/configurations/describe','api.faxAccount.update','integrations/sugarcrm/fields/:id','DASHBOARDS.SCHEDULED_CALLS','/servicenowAccounts','The\x20component\x20will\x20be\x20deleted.','faxCapacity','\x273\x27','CSquare\x20Details\x20Report','VOICE.ALL_TEAMS','fax/accounts/:id/dispositions','\x2721\x27','notifications/:id/clone','chat/interactions/:id/messages','deletescreenRecording','companiesMap','ExternIP','QueueCallsMotionDialerRealtimeController\x20as\x20vm','citystate','app.voice.musiconholds','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsCannedAnswers?','WhatsappAccountWhatsappCannedAnswersController','createOrEditCloudProvider','dialogFlowLanguage','motion2.home.scheduled:','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/outbounddial/dialog.html/dialog.html','SYSTEM:GET_TEMPLATES','grey','selectedAgents','Supported\x20extensions:\x20','apps.integrations.salesforceAccounts','\x27invite\x27','createOrEditCannedAnswer','dashboard','onConnect','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatWebsites?','type','fax_queue_waiting_interaction:save','addShortcut','deleteSelectedIntervals','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/interval/dialog.html/dialog.html','app.voice.realtime.trunks','Asia/Baku','user_has_chat_interactions:remove','Spanish\x20(Bolivia)','intSugarcrmField','motion2.user:','exportSelectedIvrCampaignHopperBlacks','controls','api.userProfile.update','api.smsAccount.update','QueueCampaignlistaddController','getContactLabel','Not\x20Found','Macro','exportSelectedQueueCampaigns','msScrollConfigProvider','bcc','api.intItem.update','settings','Unlicensed','America/Havana','sms_account_id','newInterval','analytics/custom_reports/:id/preview','+10:00','redirectToAgent','GlobalCustomFields','rpc/openchannel/queues','AgentsFaxRealtimeController','currentTab','ChatWebsite\x20updated!','md-background-bg\x20md-hue-3','brportuguesefemale','Asia/Colombo','EditChatWebsiteApp','TrunkcloneController','squareRecordings','America/Belem','ui.router.state.events','MsStepperController\x20as\x20MsStepper','The\x20openchannelQueue\x20will\x20be\x20deleted.','selectedDispositions','square/recordings/:id','chatWebsiteOfflineMessages','German\x20(Germany)','user_has_whatsapp_interactions:save','\x27zh-TW\x27','IvrCampaignlistaddController','TOOLS.CLONE_CUSTOMDASHBOARD','href','app.callysquare.odbcs','fax/messages/describe','The\x20theme\x20\x22','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/hoppers/dialog.html/dialog.html','SYSTEM:DELETE.customDashboard','America/Tegucigalpa','pauseTypeFilter','hangup','DASHBOARDS.MYCONTACTS','CompanyId','TriggerController','First','internalrouteApps','savePlugin','onInteractionSave','Contact\x20not\x20available','SYSTEM:ivrCampaign.REMOVELIST','intSalesforceAccount@get','Outlook365','Unknown\x20status','/squareRecordings','app.fax.realtime.queues','America/Eirunepe','chatCannedAnswer\x20#','selectedOpenchannelAccountInteractions','searchOptions','getQuestionWithResponseList','Chrome','deleteSelectedMetrics','CreateOrEditOpenchannelQueueDialogController','newCustomDashboard','rpc@getWhatsappQueues','active','selectedChatWebsites','addNewVtigerConfiguration','queryReport','Agent\x20Report','extravar','deleteContact','IvrCampaignHopperBlacksController','removeTab','src/js/modules/main/apps/mail/views/realtime/realtime.html/realtime.html','CONTACTMANAGER.EDIT_COMPANY','msModelType','app.tools.customDashboards.edit','triggers/:id/all_conditions','app/errors/500','WHATSAPPACCOUNT:SEND','IvrCampaignresetlistController','DASHBOARDS.YESTERDAY','attachments/describe','smsQueue:update','Thai','Latvian','America/Santo_Domingo','\x27report_mail_transfer\x27','cf_','createdAt,updatedAt,id,name,username,password,remoteUri,tenantId,clientId,clientSecret,serverUrl,description','smsPause','The\x20list\x20is\x20empty','motionConfigProvider','display','Safari','^msNavigationHorizontalNode','AgentController\x20as\x20vm','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/queue/dialog.html/dialog.html','voice/agents/reports/:id','src/js/modules/main/apps/contactmanager/views/lists/edit/customFields/dialog.html/dialog.html','delete\x20SugarcrmAccounts','GET_MAIL_ACCOUNT','delete\x20FreshsalesAccounts','CreateOrEditTelephoneDialogController','api.intZendeskConfiguration.delete','Hopper\x20properly\x20created','sms/accounts/:id/notify','The\x20context\x20will\x20be\x20deleted.','FreshdeskAccountsController\x20as\x20vm','Jabra\x20library\x20correctly\x20initialized\x20and\x20device\x20correctly\x20installed','aws_bot_name','getAttachments','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/whatsappCannedAnswers/dialog.html/dialog.html','api.analyticExtractedReport.save','apps.home.voice','ringall','ZendeskAccount\x20properly\x20deleted!','app.plugins','CreateOrEditHopperVoiceQueueIdDialogController','WhatsappQueueController','getVoicemails','addNewAction','input','saveSettings','saveZendeskConfiguration','zendeskConfiguration','SalesforceAccountsController\x20as\x20vm','intervals/:id/clone','ChangePasswordController','changeDisplayCannedAnswerInputValue','deleteSelectedFaxAccountInteractions','deleteZohoAccount','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/configurations/dialog.html/dialog.html','deleteSelectedVariables','uploadCsv','onRemoveOpenchannelQueueChannel','SYSTEM:DELETEhopper','getItems','app.integrations.freshdeskAccounts.edit','apps.integrations.dynamics365Accounts','chat/websites/:id/notify','webrtc','Delete\x20SmsQueue','chatOfflineMessage','The\x20sugarcrmConfiguration\x20will\x20be\x20deleted.','src/js/modules/header/layouts/vertical-navigation/header.html/header.html','SYSTEM:DELETEschedule','setTags','OpenchannelQueue','src/js/modules/main/apps/voice/views/internalroutes/create/dialog.html/dialog.html','Whatsapp\x20Report\x20Transfer','chat/queues/:id/members','AgentsMotionDialerRealtimeController\x20as\x20vm','getElementById','vm_dc.query.filter','America/Bahia','Greek','AgentHomeAbandonedBullController','SYSTEM:DELETEintSugarcrmAccount','chart.js','enableUncompleteSave','createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','deselectDispositions','ar-TN','Portuguese\x20(European)','newTag','faxTransferReport','outboundBusyCallsDay','SquareRecording\x20properly\x20saved!','getUsers','Australia/Perth','basename','removeSquareProjects','hangupHook\x20->\x20payload','rpc@getTrunks','replyMessage','gotoVoicemails','/dispositions','fax/queues/:id','createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','endValue','integrations/vtiger/configurations/:id/descriptions','apps.staff.userProfiles','msChipColor','src/js/modules/main/apps/mail/views/mailQueues/mailQueues.html/mailQueues.html','msTimezone','isLockedOpen','MsNavigationHorizontalNodeController\x20as\x20vm','The\x20whatsappAccount\x20will\x20be\x20deleted.','faxAccountApp','openchannel/accounts/:id/interactions','cm/lists/:id','ServicenowAccounts','SystemController\x20as\x20vm','deselectVoiceQueues','time','motion','countdownattr','SMS\x20Interaction','newZendeskAccount','difference','from-voip-provider','Alphabetical','newMailSubstatus','\x27uk\x27','faxInteractionTags:save','INTEGRATIONS.EDIT_DESKACCOUNT','CreateOrEditZohoConfigurationDialogController','histories','rtl','app.settings.cloudProviders','integrations/freshdesk/configurations/:id/descriptions','variableName','deleteUserProfile','lastIndexOf','newDeskAccount','/contexts','addNewDynamics365Account','TOOLS.EDIT_PAUSE','us-east-2','.ogg','MAIL.EDIT_MAILSUBSTATUS','\x27sms_queues\x27','windowHeight','DASHBOARDS.APRIL','OPENCHANNEL.UNKNOWN','hold\x20->\x20session','setCurrentStep','$get','Indian/Reunion','onFaxMessageSave','AppZone','CHAT.EDIT_','admin,user','createOrEditFreshsalesAccount','300','SYSTEM:DELETEopenchannelAccount','api.mailAccount.delete','\x27peer\x27','queryFinal','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20outboundroutes?','screen/recordings/describe','TriggerAllId','Status','saved','SmsQueueteamaddController','api.jscriptyProject.save','saveGlobalCustomField','Company\x20name','eurspanishfemale','replaceTrack','/analytics','globalTags','NOBEEP','deleteSelectedReportFields','apps.voice.voiceQueues','Delete\x20Trunk','apps.voice.contexts','selectedMetrics','CreateOrEditDashboardItemDialogController','dynamics365Account','DeskAccount\x20properly\x20tested','urlParse','Are\x20you\x20sure?','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/item/dialog.html/dialog.html','items','Would\x20you\x20like\x20to\x20change\x20the\x20status\x20of\x20the\x20process\x20#','WhatsappAccount\x20properly\x20created','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cannedAnswers?','OwnerId','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20scheduled\x20call?','delete\x20hopper','isMobile','Arabic\x20(Qatar)','\x27s\x27','\x27csv\x27','rpc/openchannel/queues/:id/waitinginteractions','staff','dropRate','selectedIvrCampaignHoppers','addNote','Arial','ChatQueue\x20properly\x20deleted!','SmsQueues','.result','app.callysquare','src/js/modules/main/apps/staff/views/telephones/create/dialog.html/dialog.html','whoami','comedia','$filter','src/js/modules/main/apps/analytics/views/reports/run/web/dialog.html/dialog.html','SYSTEM:GETintFreshdeskAccount','chchinesefemale','arrayenvelope','/inboundroutes','eurpolishfemale','DASHBOARDS.DISABLED','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','saveCustomDashboard','eu-west-2','VOICE.SELECTED_AGENTS','SMS.EDIT_SMSCANNEDANSWER','myQueues','The\x20metric\x20will\x20be\x20deleted.','MAIL.NEW_MAILCANNEDANSWER','selectAllScheduler','HELP.ABOUT','openchannelInteraction:update','addApplications','\x27g726\x27','nonat','fax_queue:save','Chinese\x20(Traditional)','onUpdateVoiceQueueReport','api.chatQueue.save','newDynamics365Configuration','sessionConf','onSaveOpenchannelQueue','Dynamics365AccountsController\x20as\x20vm','^msHorizontalStepper','-stamp','addNewCustomization','desk','deleteSelectedODBC','arrayservice','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperFinals?','Description\x20has\x20been\x20deleted!','arrayheader_shape','The\x20user\x20will\x20be\x20deleted.','app.motiondialer.realtime.agents','QueuesOpenchannelRealtimeController','CreateOrEditUserDialogController','foreignTable','addNewNetwork','addTrack','userChatQueue:remove','onChangeVoiceQueues','Unknown','setMinutes','Lucida\x20Sans\x20Unicode','whatsappInteraction:update','FaxAccountController\x20as\x20vm','src/js/modules/main/apps/staff/views/userProfiles/create/dialog.html/dialog.html','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/create/dialog.html/dialog.html','CreateOrEditSmsAccountDialogController','animateHeightClass','\x22\x20called\x20successfully','id,name,save_name','openAdvancedSearch','File\x20too\x20big','chatStatusTime','createdAt,updatedAt,id,name,html,description','motion.user:','src/js/modules/main/apps/jscripty/views/projects/create/dialog.html/dialog.html','whatsappAccounts','users/:id/contacts','apps.contactmanager.contacts','SYSTEM:GETcmList','Delete\x20ZohoAccount','Playback','Delete\x20Interval','Portuguese\x20(Brazil)','delete\x20sugarcrmAccount','XCALLY-MOTION-ANSWER=0','setNavigationScope','integrations/salesforce/accounts/:id/clone','api.pm2.delete','avgHoldTime','VERSION\x20','getHopperBlacks','CHAT.OFFLINE_MESSAGE','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zendeskAccounts?','top','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/sugarcrmAccounts.html/sugarcrmAccounts.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20smsQueues?','isFirstStep','Uzbek','\x20MMM','AbandonedCallsMotionDialerRealtimeController','onSaveMailQueueChannel','dddd','Europe/Paris','deselectIntervals','chat/interactions/describe','deskAccounts','Karl','lastAssignedTo','EditChatWebsiteAppdialogflowDialogController','twitter','delete\x20sugarcrmConfiguration','currentNode','rpc/voice/channels/:uniqueid/mixmonitor','es-NI','SSML','disconnect','onVoiceChannelRemove\x20->\x20evt','User\x20properly\x20deleted!','onRemoveUserMailQueue','readAsText','Legend','isPause','\x27pt\x27','selectedSounds','The\x20extension\x20','userProfile/sections/describe','currentConferenceSessions','src/js/modules/main/apps/tools/views/variables/create/dialog.html/dialog.html','data4','selectAllQueueCampaigns','saveSugarcrmAccount','14400','integrations/reports/:id/clone','users/:id/whatsapp/interactions','createOrEditFaxQueue','Inactive','callNumber','/chanSpies','selectTagsChanged','whatsappQueueReport','getByInteraction','removed','controller','osVersion','Integration_Tab','FAX.EDIT_FAXQUEUE','api.voiceExtension.update','DASHBOARDS.AUGUST','toggleFold','Pause','selectedScheduler','The\x20allCondition\x20will\x20be\x20deleted.','dashboard@get','unknown-os','addNewFaxQueue','resourceId','VoiceRecording\x20updated!','Import\x20process\x20failed!','selectedServicenowConfiguration','googleAsrLanguage','addConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20','src/js/modules/core/directives/ms-navigation/templates/horizontal.html/horizontal.html','Report\x20Field\x20properly\x20deleted!','ZohoAccount\x20updated!','UserId','Motion\x20WebRTC\x20Bar\x200.2.0','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sessions?','last','Cross\x20Join','WHATSAPP.ALL_TEAMS','integrations/zendesk/accounts/:id/clone','MailAccountMailCannedAnswersController','onAutocreateSelection','/intervals','jpg','team@get','whatsapp/interactions/describe','integrations/desk/configurations/describe','remove','voiceRecording','ZendeskAccounts','STAFF.PERMISSIONS_WARNING_ENABLE_ALL','onHold\x20->\x20session,\x20data','Asia/Qyzylorda','UserchangepasswordController','gotoLists','delete\x20report','mail/messages/:id/accept','SYSTEM:DELETEtag','PredictiveQueueCampaignDialogController','newMusicOnHold','ZendeskConfiguration\x20deleted!','America/Danmarkshavn','integrations/dynamics365/accounts/:id','deleteWhatsappAccountApp','deselectVtigerAccounts','removeUsers','saveChatWebsiteApp','WhatsappAccount\x20properly\x20saved!','selectedSection','src/js/modules/main/apps/marketplace/views/plugins/plugins.html/plugins.html','setFolded','msNav::forceCollapse','createOrEditChatWebsiteChatCannedAnswer','#content','isNavFoldedOpen','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20projects?','firstLastDayMonth','WebReportDialogController','getOfflineMessages','/smtps','cm/contacts/upload','The\x20salesforceAccount\x20will\x20be\x20deleted.','runReport','createOrEditPause','CONTACTMANAGER.GLOBALCUSTOMFIELDS','Delete\x20Voicemail','generals','Delete\x20conditions','deleteSelectedTemplates','Turkmen','||MailAccountId:=$eq[','msg_id','$watch','voice/transfers/reports/:id','selectSession','src/js/modules/main/apps/callysquare/views/odbcs/odbcs.html/odbcs.html','upload','integrations/salesforce/accounts/:id/fields','api.voiceQueue.clone','getQueueCampaignHoppers','helperClasses','STAFF.USERS','onSaveFaxInteraction','api.intZohoAccount.save','api.screenRecording.save','users/:id/clone','\x27GP\x27','transformContact','composeFaxInteraction','INTEGRATIONS.NEW_SERVICENOWCONFIGURATION','contact:import:','\x27en-AU\x27','arraydialPredictiveOptimization','Delete\x20ServicenowAccount','delete\x20DeskAccounts','GROUP_CONCAT\x20(','src/js/modules/main/apps/openchannel/views/openchannelAccounts/openchannelAccounts.html/openchannelAccounts.html','New_Tab','blue-A700-fg','Atlantic/Cape_Verde','uploadState','id,name,level,ParentId','deleteSelectedCustomDashboards','delete\x20Group','voiceMusicOnHold@get','app/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html','Turkish\x20(Turkey)','app','#4CAF50','SYSTEM:DELETEintVtigerAccount','VOICE.SELECTED_TEAMS','\x27report_dial\x27','CHAT.EDIT_CHATQUEUE','SYSTEM:GETvoiceQueues','mr-IN','createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','VoiceExtensionId','Asia/Kolkata','Europe/Luxembourg','TelephonesVoiceRealtimeController','\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/interval/dialog.html/dialog.html','faxAccount@get','EditChatWebsiteApptagDialogController','newServicenowConfiguration','$rootScope','fax/queues/:id/members','api.intFreshsalesConfiguration.update','api.intSugarcrmAccount.delete','SquareRecordingsController\x20as\x20vm','collapsable','VOICE.SELECT_TYPE','api.intSalesforceConfiguration.delete','newVoicemail','vm_bull.query.filter','WhatsappQueue\x20properly\x20saved!','Message\x20properly\x20accepted!','queue.name','WhatsappAccount','externaldial','DASHBOARDS.SELECT_SUBSTATUS','sqlUtil','onUpdateSmsInteraction','\x27EU\x27','$scope','iPhone','EditChatWebsiteAppnoopDialogController','exportContacts_','integrations/sugarcrm/accounts/:id/fields','#chat-group-dialog','newVoiceQueue','src/js/modules/main/apps/chat/views/realtime/queues/view.html/view.html','addTeams','stepInfo','resizable','Linux','CreateOrEditVoiceRecordingDialogController','src/js/modules/main/apps/mail/views/realtime/queues/view.html/view.html','sms_text','arrayratingType','stringify','Pacific/Apia','saveServicenowConfiguration','addNewSalesforceConfiguration','\x20will\x20be\x20reset.','addNewscreenRecording','DASHBOARDS.TODAY','Updates','HANGUPCAUSE_41','Spanish\x20(Costa\x20Rica)','autocomplete','newVariable','agent','isSame','Agent\x20logout','deleteQueueCampaignHopper','Delete\x20CustomDashboard','Are\x20you\x20sure\x20want\x20to\x20uninstall\x20the\x20plugin?','HELP.HELP','app.integrations.deskAccounts','treeDefaultInstance','createElement','Process\x20stopped!','src/js/modules/main/apps/tools/views/templates/create/dialog.html/dialog.html','api.faxQueue.delete','/telephones','GRANTED','cm/custom_fields/:id/clone','Subject','\x27rounded\x27','whatsapp/accounts/:id/send','ChatWebsiteInteractionsController','createOrEditChatQueue','src/js/modules/navigation/layouts/vertical-navigation-fullwidth-toolbar-2/navigation.html/navigation.html','America/Recife','gotoWhatsappAccounts','exportSelectedFaxQueues','app.integrations.dynamics365Accounts.edit','VoiceQueueController\x20as\x20vm',',${EXTEN},','getVoiceChannels','deleteSelectedGlobalCustomFields','FreshsalesAccount\x20updated!','icon-table-edit','audioinput','shutdown','DeskConfiguration\x20properly\x20created','AgentHomeContactsController','saveWhatsappCannedAnswer','Interval\x20properly\x20saved!','../../../../../../../assets/images/avatars/customer.png','SMS.NEW_SMSQUEUE','app.staff.teams','version/restart','America/Pangnirtung','bn-IN','EditFaxAccountAppintervalDialogController','call','Email\x20','filename','awsLexRegion','Answer','Australia/Currie','jscripty/projects/:id/sessions','NetworksController','selectAllODBC','jpjapanesefemale','TOOLBAR.INDONESIAN','api.inteactionMessage.get','excludedOperators','rpc/agents','focusOnclick','drop','cookieAlertHide','loggedInDb','/abandonedcalls','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotop/dialog.html/dialog.html','MsNavigationNodeController\x20as\x20vm','Faroese','getCustomFields','Scheduler','JSCRIPTY.SESSION_RESULTS','deleteSelectedIvrCampaignHoppers','b:\x20Only\x20spy\x20on\x20channels\x20involved\x20in\x20a\x20bridged\x20call.','onSaveUserOpenchannelQueue','Asia/Qatar','app.callysquare.projects','MONITOR_OPTIONS=ab','pl-PL','SYSTEM:USERPROFILE.ADDSECTIONS','Opera','textarea','=msNavigationNode','Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.','delete\x20cloudProvider','selectedChatWebsiteApps','ChatWebsitesController\x20as\x20vm','voiceCalls','onRemoveOpenchannelQueue','Danish','Plugin\x20not\x20deleted!','selectAllPauses','apps.voice.voiceRecordings','XCALLY-MOTION-PROGRESS=0','newCloudProvider','macro','confirmed','CALLYSQUARE.EDIT_PROJECT','UserOpenchannelDashboardGeneralController\x20as\x20vm','sugarcrmAccount','odbc_id','white-bg','Sundanese\x20(Indonesia)','EditInboundAppinternaldialDialogController','id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','onProgress\x20->\x20session,\x20data','src/js/modules/core/directives/ms-timezone/ms-timezone.html/ms-timezone.html','CDR(prefix)=${EXTEN:0:','hasModulePermissions','username','onChangeAutoAssociation','Pacific/Wake','MAIL.EDIT_MAILCANNEDANSWER','messaging','src/js/modules/main/apps/integrations/views/vtigerAccounts/vtigerAccounts.html/vtigerAccounts.html','\x27newTab\x27','authInterceptor','mar','app.contactmanager.contacts','To\x20is\x20mandatory','registry','msNavigation','fonts','/schedules','INTEGRATIONS.NEW_','app.dashboards.general.whatsapp','MusicOnHoldsController\x20as\x20vm','DASHBOARDS.ACCEPT_ELSEWHERE','phoneBarAutoAnswer','saveOpenchannelQueue','deleteSelectedFaxAccounts','prefixes','exportSelectedIvrCampaigns','position','mail/queues/:id/clone','patchConference','motionGenerator','white','selectedInboundRoutes','EditoutboundAppcustomDialogController','translate3d(','ap-southeast-2','integrationTypes','$gte','msNavigation::collapse','SETTINGS.NEW_CUSTOMIZATION','apiRoute','TOOLBAR.WARNING','onSaveOutbound','Extension','getQueueCampaignHopperFinals','CustomDashboard\x20properly\x20cloned','rpc/outbound','.zip','eurfinnishfemale','extractedReport','Georgia,serif','fontColor','icon-home','gotop','\x20has\x20been\x20reset','MotionDialerRealtimeController','Twi','apps.settings','deleteDeskAccount','hold','onTypeSelection','\x27rfc2833\x27','Message\x20has\x20been\x20rejected!','Pacific/Bougainville','Conchita','gotoTriggers','The\x20screenRecording\x20will\x20be\x20deleted.','AgentReject','/api/settings/1/logo_login','manageResources','square/odbc/:id','direction','scrollLeft','api.pause.update','exportSelectedTriggerAnyConditions','replace','/sounds','ivrCampaignHoppers','arrayreportholdtime','targetScope','src/js/modules/forgot/forgot.html/forgot.html','TriggerAnyId','errors','TOOLS.EDIT_DASHBOARDITEM','getSquareRecordings','notification:remove','question','chat/applications/:id/clone','Delete\x20voicePrefix','trigger:jscripty','mail/accounts/:id/verify','mail/queues/:id/teams','webbar:hangup','Numbers\x20to\x209','setText','CALLYSQUARE.ODBC','createOrEditProject','Delete\x20SalesforceAccount','finally','DASHBOARDS.RESCHEDULE','multipleChoices','Unable\x20to\x20answer\x20the\x20call','-interaction','id,phone,scheduledat,recallme,priority,UserId,OwnerId','OpenchannelAccountOpenchannelCannedAnswersController','rpc/voice/queues/channels/:uniqueid/hangup','createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','shouldInterpolate','navigator','SmsAccountsController','md5secret','vm.options.isOpen','src/js/modules/main/apps/dashboards/views/general/user/fax/user.general.fax.html/user.general.fax.html','getNavigation','appdata.name','src/js/modules/main/apps/tools/views/triggers/edit/allconditions/create/dialog.html/dialog.html','The\x20servicenowConfiguration\x20will\x20be\x20deleted.','user@getLists','VOICE.CHANSPIES','gotoSmsAccounts','sounds/:id/download','X-callback-url:\x20','delete\x20Users','Giorgio\x20(Italian,\x20Male)','Always','New\x20Item','#ffffff','blue-grey-A200-bg','delete\x20IvrCampaigns','allowDelete','AgentController','getMessagesAlignment','voiceAgentReport','app/main/apps/staff','ar-BH','selectedLanguage','\x27AmazonAWS\x27','lo-LA','api.analyticreport.delete','deleteMailQueue','Telephones','ScreenRecordings','ChatWebsite','openchannelCannedAnswers','INTEGRATIONS.NEW_ZENDESKACCOUNT','SYSTEM:DELETEintDeskAccount','\x27cm_hopper\x27','editSmsAccountApp','src/js/modules/core/directives/ms-phonebar/ms-phonebar.html/ms-phonebar.html','','loading','$digest','app/main/apps/callysquare','EditMailAccountAppintervalDialogController','_id','map','\x272\x27','outboundRoutes','HopperFinal\x20deleted!','arraycservice','salesforceConfiguration','userProfileResource','arrayautopause','arraymaxrate','ringgroup','CreateOrEditIntervalDialogController','user:called','SYSTEM:GET_VOICEQUEUES','newAction','ENTER_BR','Home','finishCallback','/accounts','Asia\x20Pacific\x20(Tokyo)','getTags','closest','getWhatsappAccounts','deleteFreshdeskConfiguration','interval@get','settings/:id/favicon','onSearch','CHAT.SELECTED_AGENTS','OPENCHANNEL.NEW_OPENCHANNELCANNEDANSWER','openchannel/accounts/:id/applications','addNewSmtp','gridster','delete\x20chatCannedAnswer','whatsappCannedAnswer\x20#','startDate','gotoif','icon-phone-missed','apps.integrations.zohoAccounts','\x27datetime\x27','\x27SIP/{{user.name}}\x27','mailAccountApp','mail/interactions/:id','setActiveTheme','CustomDashboardController\x20as\x20vm','America/Chicago','America/North_Dakota/Beulah','countDown','OutboundRoute','\x20is\x20not\x20valid','ticks','number','ToolbarController\x20as\x20vm','ngPassword','exportSelectedChatWebsiteInteractions','resources','setScrollEl','America/Ojinaga','api.mail.account','userStatusOptions','INTEGRATIONS.NEW_FRESHSALESCONFIGURATION','api.faxAccount.delete','AVG\x20(','listsMap','Integrations','VtigerConfiguration\x20properly\x20saved!','month','users/:id/password','createdAt','\x2722\x27','European\x20Portuguese\x20Male','deleteWhatsappQueuesWaitingInteractions','getMailAccountLabel','windowWidth','Unable\x20to\x20convert\x20question','Asia/Urumqi','Telephone\x20properly\x20saved!','selectedPalette','es-CL','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20lists?','spy','integrations/salesforce/accounts/describe','600','lastOut','$mdThemingProvider','$ariaProvider','exportSelectedIntervalIntervals','mailServerOut','ca-ES','2400','\x27report_queue\x27','Basque','CSV','api.chatGroup.delete','Group\x20properly\x20deleted!','CALLYSQUARE.SELECTED_USERS','digits','apps.whatsapp','ChatQueue\x20properly\x20created','chat_queue_waiting_interaction:save','exportSelectedChatWebsiteProactiveActions','displayName','createOrEditSmsAccountSmsCannedAnswer','o:\x20Only\x20listen\x20to\x20audio\x20coming\x20from\x20this\x20channel.','NotificationController','none','msFormWizardForm','SMS.EDIT_SMSQUEUE','dashboardItems','UserMailAccount','VoiceRecordingController','Marathi\x20(India)','deleteFieldConfirm','getAgentStatus','users/:id/groups','ListId','gray','createOrEditWhatsappAccount','/custom/:id','Celine\x20(French,\x20Female)','mail/reports/queue/describe','setLockedItem','SETTINGS.EDIT_CLOUDPROVIDER','rule','downloadtranscribe','apps.home.dashboard','failedRows','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?','huhungarianfemale','deleteSelectedChatWebsiteChatCannedAnswers','Sundanese','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20trunks?','$transitions','jscriptyProjectSummary_','contrast','fa-IR','TriggerActionsController','src/js/modules/main/apps/tools/views/schedules/partialViews/reports/treeReports.html/treeReports.html','partial','apps.contactmanager.companies','srcObject','numbersto9','MarketplacePluginController','saveShortcuts','Delete\x20VtigerConfiguration','Join','SYSTEM:DELETEscreenRecording','startsWith','createOrEditFreshdeskAccount','OutboundRoutesController\x20as\x20vm','CreateOrEditSmsQueueDialogController','addNewServicenowAccount','src/js/modules/main/apps/integrations/views/zohoAccounts/create/dialog.html/dialog.html','getLabelByMessage','schedules/:id/run','$mdTheming','teams/describe','email','','FAX.SELECTED_TEAMS','SmsAccount\x20properly\x20saved!','query','NO\x20QUERY','id,interval,IntervalId','originated','saveTeam','createOrEditDeskConfiguration','Delete\x20DashboardItem','bn-BD','sortable','api.analyticReportField.delete','nl-NL','Telephone\x20updated!','delete\x20chatWebsite','square/projects/:id/clone','-04:00','userProfile/resources/:id/clone','Supported\x20extension:\x20','+01:00','savePassword','companies','Maja','integrations/reports/describe','sounds/:id','exportSelectedCompanies','app.voice.voicemails.edit','api.tag.delete','smsTransferReport','analyticExtractedReport','selectedReports','agi://127.0.0.1/square,','Delete\x20dispositions','delete\x20Metrics','ChatWebsiteChatDispositionsController','xmd-voicequeueid','updateProcess','ms-form-wizard','VOICE.OUTBOUND','ANALYTICS.NO_METRIC_FOUND','originalObject','loadShortcuts','America/Martinique','openchannel/accounts/:id/canned_answers','chat/messages/:id/accept','deleteSelectedSmsAccountApps','getLists','ms-card','src/js/modules/main/apps/callysquare/views/projects/edit/dialog/dialog.html/dialog.html','chatInteraction:update','Token','MyTitle','draftManager','addNewSmsCannedAnswer','intSalesforceField','members','square/recordings/describe','msApi::resolveStart','\x20properly\x20hangup!','apps.voice.voicemails','enableDtmfTone','src/js/modules/main/apps/jscripty/views/projects/edit/clone/clone.html/clone.html','src/js/modules/main/apps/staff/views/users/create/dialog.html/dialog.html','appid','Asia/Novosibirsk','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20vtigerAccounts?','isJabraEnabled','English\x20(South\x20Africa)','closeOnClick','between','EditMailAccountApptagDialogController','DeskAccount\x20updated!','defaultQueues','users/:id/teams','English\x20(Australia)','getReceivers','notifications','mail/accounts/:id/applications','saveInterval','MAIL.MAILACCOUNTS','sidebar','JscriptyProjectController\x20as\x20vm','motion2.home.','fax/accounts/:id/applications','deselectSugarcrmAccounts','registerStep','SYSTEM:GET_INTERVALS','sectionColor','project','deselectTrunks','sms/messages/:id','VOICE.EDIT_MUSICONHOLD','SYSTEM:DELETEplugin','selectedWhatsappAccountApps','The\x20mailAccount\x20will\x20be\x20deleted.','TOOLS.TRUNKS','getMailSubstatuses','app.chat.chatQueues.edit','Netscape','dashboards/describe','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_TITLE','createdAt,updatedAt,id,name,description,color','\x27zh-CN\x27','src/js/modules/main/apps/jscripty/views/projects/edit/sessions/dialog.html/dialog.html','monthFrom','SYSTEM:DELETEsound','More','UserapikeymanagerController','sound.name','openchannelQueue','api.cm.lists','smsStatusTime','Delete\x20CannedAnswer','jscripty/projects/:id','Account','UserProfile','resolve','api.intFreshsalesConfiguration.delete','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','SYSTEM:COPYREPORT','QueueCampaign\x20properly\x20cloned','src/js/modules/main/apps/contactmanager/views/contacts/import/import.html/import.html','app.callysquare.projects.edit','MsSearchBarController','addJscriptyTab','steps','openchannel/messages/:id','selectedFaxAccountApps','/avatar','Tamil\x20(Singapore)','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/close/dialog.html/dialog.html','gotoProcess','createOrEditGlobalCustomField','SYSTEM:GET_USERS','STAFF.TEAMS','$evalAsync','HeaderController','iframe','users/:id/whatsapp_interactions','TOOLS.NOTIFICATIONS.CONDITION_DELETE_TITLE','SchedulesController','createOrEditscreenRecording','functions','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/view.html/view.html','selectedTags','deleteSelectedChatWebsiteInteractions','selectedChanSpies','intZohoConfiguration','DASHBOARDS.SELECT_DATE_RANGE','debounce','Dora','WHATSAPP.NEW_WHATSAPPCANNEDANSWER','Polish\x20(Poland)','/plugins','\x27h264\x27','exportSelectedOpenchannelAccountOpenchannelCannedAnswers','selectSession\x20->\x20session','onRemoveSmsQueue','smsMessage','getOpenchannelQueuesWaitingInteractions','complete','md-toolbar','app.whatsapp.realtime.queues','WHATSAPP.EDIT_WHATSAPPQUEUE','src/js/modules/quick-panel/tabs/groups/info/dialog.html/dialog.html','src/js/modules/main/apps/voice/views/voicemails/edit/view.html/view.html','Pacific/Enderbury','\x27stun\x27','fax/messages/:id/download','getSections','updateLocalStorage','target','not_inuse','api.telephone.changePassword','api.intServicenowAccount.delete','id,name,crudPermissions','America/Cayenne','ProjectAnswersController','lastName','apps.tools.cannedAnswers','idField','auth/local/user/:token','onUpdateChatInteraction','deleteSelectedListCustomFields','deleteChatWebsiteApp','refer','keyBy','app.dashboards.general.chat','CreateOrEditDispositionDialogController','exportSelectedVoiceRecordings','variable.name','Yes','keyup','openchannel/accounts/describe','FAX.SELECTED_AGENTS','bull','deleteTrunk','api.smsQueue.save','onSearchBarCollapse','api.user.changePassword','integrations/sugarcrm/accounts/:id/configurations','cm_contacts','selectedTeams','selectAllMusicOnHolds','SYSTEM:GETjscriptyProject','chat/applications/describe','settings/:id/logo_login','0px','wav','src/js/modules/main/apps/sms/views/smsAccounts/create/dialog.html/dialog.html','mailQueue:remove','DASHBOARDS.SELECT_QUEUE','sms/interactions/:id/tags','api.setting.delete','custom','ringingVolume','getChatWebsites','chatQueueReport','FORGOTPASSWORD.PASSWORD_RESET_ERROR','api.sound.update','integrations/desk/accounts/describe','SETTINGS.SYSTEM','VtigerAccount\x20properly\x20tested','.results','QueueParamsVoiceRealtimeController\x20as\x20vm','src/js/modules/main/apps/tools/views/triggers/create/dialog.html/dialog.html','src/js/modules/main/apps/chat/views/realtime/agents/view.html/view.html','src/js/modules/main/apps/voice/views/realtime/trunks/view.html/view.html','app.staff.users','apps.sms.smsQueues','changeSidebarTab','VIDEO.CANT_DOWNLOAD_THIS_FILE','name,id','closeReason','AgentHomeRecordingsController','\x20will\x20be\x20overwritten\x20by\x20the\x20fields\x20of\x20the\x20contact\x20#','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelQueues?','abandonedCalls','getMonthName','createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','ms-nav-title','hues','Slovak\x20(Slovakia)','align','smsInteractionTags:save','Wide','whatsapp/accounts/:id/notify','onRemoveWhatsappQueue','DASHBOARDS.SUN','Fwd:','America/Moncton','getListCustomFields','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','IvrCampaignsController','h-128','\x27nl\x27','Cannot\x20upload\x20the\x20plugin','addTags','indigo-A100-fg','isCustomField','beepall','zendeskAccounts','SYSTEM:GET_QUEUES','app.voice.voiceRecordings.edit','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshsalesAccounts?','$sce','onMultiselectSelection','voicePrefix','newSugarcrmConfiguration','Files','/assets/images/theme-options/content-only.jpg','\x27preview\x27','GeneralsController\x20as\x20vm','newMailCannedAnswer','selectedMusicOnHoldMohSounds','outboundOriginateFailureCallsDay','exportDate','deleteSugarcrmAccount','openDraft','CHAT.ALL_AGENTS','Dynamics365Configuration\x20properly\x20saved!','apps.whatsapp.whatsappQueues','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','api.cmCustomField.update','Asia/Jakarta','param','rpc/mail/queues','You\x20are\x20not\x20the\x20owner\x20of\x20the\x20last\x20message!','selectAllVoicemails','Refer\x20Attended','The\x20internalroute\x20will\x20be\x20deleted.','verticalNavigationFullwidthToolbar2','onUserCalled','Delete\x20SugarcrmAccount','src/js/modules/main/apps/tools/views/templates/templates.html/templates.html','get_path','Portuguese\x20(Portugal)','+04:30','getSubjects','disable','Ring','Openchannel','openchannel_queue_waiting_interaction:save','Telugu\x20(India)','Validation\x20error','offlineForm','Georgian','delete\x20Telephones','EditInternalAppplaybackDialogController','apps.settings.cloudProviders','Mads\x20(Danish,\x20Male)','selectedSubjects','outboundDropRate','otherwise','responseData','selectedQueueCampaignHopperBlacks','id,name,type','mail/reports/transfer/:id','CloudProvidersController\x20as\x20vm','delete\x20extractedReport','openchannel/interactions/:id/messages','0.3','smsQueue@get','SYSTEM:queueCampaign.RESETLIST','US\x20Spanish\x20Male','\x27admin\x27','Url','VOICE.VOICEQUEUES','\x27integrationTab\x27','newHopper','autoreply','\x22\x20does\x20not\x20exist!\x20Falling\x20back\x20to\x20the\x20\x22default\x22\x20theme.','apps','apps.settings.customizations','Input','penalty\x20','layoutStyle','es-ES','localnet','countContactsIvrCampaignHopperFinal','ar-AE','Miguel\x20(Spanish,\x20US,\x20Male)','Agent\x20updated!','version/pull','$setViewValue','src/js/modules/main/apps/settings/views/cloudProviders/cloudProviders.html/cloudProviders.html','sipcalluniqueid','\x2712000\x27','app.dashboards.general','SquareProjectId','Upload\x20error','int','app.errors','testtestOdbc','description','verticalNavigation','Indian/Chagos','SYSTEM:UPDATEBLACKLIST','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20report?','Abandon','delete\x20Plugins','arraysendrpid','E:\x20Exit\x20when\x20the\x20spied-on\x20channel\x20hangs\x20up.','getTime','ZendeskAccount\x20properly\x20tested','Russian','Norwegian\x20Bokmal\x20(Norway)','exportSelectedVoicemails','List\x20properly\x20deleted!','Europe/Sofia','app.motiondialer.realtime.queue_params','The\x20freshsalesAccount\x20will\x20be\x20deleted.','/api/originate/','TOOLBAR.KOREAN','triggerActions','SYSTEM:GETuser','Maltese','MailAccountInteractionsController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customFields?','alert','#FFC107','pm2','call_id','users/:id/api_key','actions/:id/clone','ChatWebsite\x20properly\x20saved!','CustomReportId','mailStatus','OpenchannelAccount\x20properly\x20deleted!','app.whatsapp.whatsappAccounts.edit','internaldial','ChatGroupController','next','polling','
','Process\x20restarted!','openchannelQueue:remove','whatsapp/messages/:id/status','voiceMail@get','voice/queues/:id/hopper_black','green-300-fg\x20icon-checkbox-marked-circle','SYSTEM:DELETEsquareOdbc','toString','api.squareProject.save','DeskConfiguration\x20properly\x20deleted!','timer-stop','Re:','null','SmsRealtimeController\x20as\x20vm','variables/:id/clone','TOOLBAR.FRENCH','\x27mail_interactions\x27','ANALYTICS.CREATE','getVoiceChannels\x20->\x20session','ngAria','ChatQueueagentaddController','searchText','freshdesk','Pacific/Kiritimati','lime-A700','attachment_path','fields','CreateOrEditSugarcrmConfigurationDialogController','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/system/dialog.html/dialog.html','SYSTEM:DELETEintZohoAccount','setPermission','DASHBOARDS.ABANDONED','DASHBOARDS.ALL','Delete\x20DeskAccount','SUCCESS','report','api.intFreshsalesConfiguration.save','Antarctica/Syowa','separatorKeys','Contact\x20properly\x20deleted!','grey-fg\x20icon-phone-hangup','saveCustomField','Lao\x20(Laos)','verticalNavigationFullwidthToolbar','deleteSelectedUsers','ndauth_url','INTEGRATIONS.EDIT_','api.voiceContext.delete','src/js/modules/main/apps/analytics/views/reports/edit/view.html/view.html','Status\x20properly\x20changed\x20to:\x20','CDR(type)=inbound','voice/queues/reports/:id/clone','autoAssociation','EditSmsAccountAppautoreplyDialogController','Delete\x20GlobalCustomField','rpc/telephones','association','Customization\x20properly\x20saved!','deselectMailQueues','countContactsQueueCampaignHopperFinal','createOrEditZohoAccount','app.dashboards.general.voice','lastIn','EditWhatsappAccountAppnoopDialogController','Chinese\x20Female','MailSubstatuses','conditions/describe','CHAT.EDIT_CHATCANNEDANSWER','STAFF.CLOSE','ExecIf','SmsInteractionId','_interactions:save','Swedish\x20(Sweden)','g722','src/js/modules/main/apps/dashboards/views/general/user/chat/user.general.chat.html/user.general.chat.html','\x27mouseOver\x27','DefaultReports','inband',',height=','getFreshsalesConfiguration','GlobalCustomFieldsController','SYSTEM:DELETEsquareRecording','onhold','deleteList','deleteContext','addNewCompany','selectedIntervals','ShowMessageInfoDialogController','apps.home.fax','firstDayMonth','onSaveMailQueue','DISPOSITION_DELETE_MESSAGE_CHILDREN','app.auth','DASHBOARDS.FEBRUARY','phoneBarEnableAutomaticScreenRecording','Armenian\x20(Armenia)','removeCondition','Odbc','whatsappInteraction:save','reserved','1st','getMultiBarChart','Ringall','Content\x20with\x20Toolbar','OpenchannelQueueController','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/amazonlex/dialog.html/dialog.html','src/js/modules/main/apps/tools/views/trunks/edit/clone/clone.html/clone.html','America/Jamaica','isStepDisabled','en-AU','unregistered','chat/reports/transfer/:id','MailCannedAnswer\x20properly\x20saved!','saveDeskAccount','krkoreanmale','U(xcally-mixmonitor-context)','DuplicateContactDialogController','resultsLoading','ngCookies','getSmsQueues','published','.ms-search-bar-results','$injector','expand','jscripty/sessions/reports/:id/clone','SYSTEM:GET_CONTEXTS','deleteSelectedFreshsalesAccounts','selectedFields','auth/local/forgot','SYSTEM:GETPAUSES','src/js/modules/main/apps/voice/views/voiceQueues/edit/agentadd/agentadd.html/agentadd.html','xxxxxxxx','toNumber','setAs','CONTACTMANAGER.EDIT_GLOBALCUSTOMFIELD','orderBy','SYSTEM:GETagents','CreateOrEditSessionDialogController','dialMethod','/zendeskAccounts','addItem','delete\x20CannedAnswers','ZendeskAccount\x20updated!','parser','DashboardItem\x20properly\x20created','CreateOrEditChatCannedAnswerDialogController','HANGUPCAUSE_17','+05:00','api.mailAccount.update','Editor','VoiceQueue','Text','addons','getVariables','UserChatDashboardGeneralController\x20as\x20vm','STAFF.','ignoreMouseEvents','EditInboundAppgotoDialogController','deleteSelectedReports','msWidgetFront','mobile','apps.mail.realtime','getScheduler','rtlSupport','','Pacific/Norfolk','forgotPassword','openchannel_queue_waiting_interaction:remove','CreateOrEditVoicemailDialogController','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/playback/dialog.html/dialog.html','CreateOrEditReportFieldDialogController','voiceQueue@get','America/Lima','app.tools.templates','onSaveFaxQueueChannel','FAX.FAX','Project\x20deleted!','mailQueue@get','msNavigationService','deselectMusicOnHolds','notifications/','fontFamily','substring','cardTemplateLoaded','condition','exportSelectedPauses','Schedule','api.cmHopper.save','The\x20array\x20must\x20have\x203\x20or\x204\x20colors.','app.voice.realtime','paramDefaults','users/:id/square_projects','servicenowConfiguration','Delete\x20ExtractedReport','function','values','\x27report_fax_transfer\x27','selectedUsers','record\x20->\x20session','arrayextensionMonitor','selectAllSquareRecordings','dynamics365Accounts','showWebBar','ChatCannedAnswer\x20deleted!','jscriptySessionReport@getQuestions','addCall\x20->\x20target,\x20inbound,\x20fullname','stepTitleTranslate','reportFields','\x27cm_companies\x27','Delete\x20Odbc','sms_queue_waiting_interaction:remove','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappCannedAnswers?',',xX,,,300,,,,,','America/Bogota','app.tools.trunks','INTEGRATIONS.NEW_SALESFORCECONFIGURATION','+06:30','vtigerConfiguration','saveDashboardItem','scroll','savedAsDraft','CreateOrEditPluginDialogController','intSugarcrmAccount@get','exportSelectedDispositions','URL','MAIL.MAILQUEUES','mailQueue:save','RECALLME','msApi::resolveError','Malayalam','deleteSelectedPauses','answers','exportSelectedSounds','SYSTEM:GETchatWebsite','saveChatProactiveAction','mailAccountMailCannedAnswers','','ms-form-wizard-form','AgentDashboardGeneralController\x20as\x20vm','Delete\x20ZohoConfiguration','selectedCustomDashboards','unlicensed','delete\x20template','rpc/openchannel/queues/waitinginteractions','src/js/modules/main/apps/staff/views/telephones/edit/view.html/view.html','members/reports/:id/clone','src/js/modules/main/apps/integrations/views/deskAccounts/create/dialog.html/dialog.html','apps.tools.tags','ispeechTtsLanguage','QueueParamsMotionDialerRealtimeController','smsCannedAnswer\x20#','CHAT.NEW_CHATPROACTIVEACTION','The\x20salesforceConfiguration\x20will\x20be\x20deleted.','firstName,lastName,phone,mobile','Pacific/Palau','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27loose\x27','pm_id','src/js/modules/main/apps/dashboards/views/general/user/user.general.html/user.general.html','currentPath','api.intServicenowAccount.update','users/:id/chat/interactions','propertiesExtra','getSugarcrmConfiguration','app.integrations.zendeskAccounts','api.squareProject.delete','Chinese,\x20Mandarin\x20(Traditional,\x20Taiwan)','cm/contacts/:id/jscripty_sessions','-createdAt,questionId','SETTINGS.GENERAL','deleteSmsQueuesWaitingInteractions','skype','queryChannels','openchannelQueue:save','api.chatProactiveAction.delete','Scheduled\x20call\x20deleted!','deleteQueueCampaign','integrations/freshdesk/accounts/describe','resetlistdialog','Chinese\x20(Hong\x20Kong)','campaigntype','pendingCondition','api.openchannelAccount.update','followuptime','EditInternalAppcustomDialogController','whatsappAccount@get','CreateOrEditChatWebsiteDialogController','delete\x20deskConfiguration','America/Inuvik','actions','ProjectcloneController','900','attachments/:id','api.user.update','modelCtrl','app.settings.updates','\x27beepall\x27','MailSubstatus\x20properly\x20saved!','home.openchannel','selectReport','denied','@msUtils.firstLastDayMonth()','OpenchannelRealtimeController\x20as\x20vm','chat/websites/:id/users','The\x20mailQueue\x20will\x20be\x20deleted.','app.voice.voicemails','treeCustomData','getApiObject','load','outboundDropCallsDayCallersExit','registerForm','app.help','delete\x20telephone','SugarCRM','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','MsWidgetController','Interval','createOrEditQueueCampaign','createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','location','alaw','New\x20Report\x20Field','openchannelCannedAnswer','setConfig','analytics/default_reports/describe','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/close/dialog.html/dialog.html','createdAt,updatedAt,id,starttime,endtime,membername,calleridnum,completed','ulaw','id-ID','dateEnd','Resource\x20\x22','contentWithToolbar','mail/accounts/:id','Gwineth\x20(Welsh,\x20Female)','Queue:\x20','Delete\x20MailSubstatus','h264','Delete\x20OutboundRoute','UserMailQueue','EditInternalAppqueueDialogController','api.intDeskConfiguration.save','intVtigerConfiguration','newFreshdeskConfiguration','Rounded','icon-cog','communications','isApp','addNewWhatsappCannedAnswer','variable','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?','pid','Contact\x20properly\x20updated!','_new','selectedDescriptions','\x27twilio\x27','sender','US\x20Spanish\x20Female','OpenchannelAccountagentaddController','.html','delete\x20mailAccount','openchannel_queue:save','findLast','widgets','getLine','calendar','TCL:\x20vm.recording[vm.path]','Pacific/Guadalcanal','Europe/Vilnius','ico','others','mandatoryDisposition','app.voice.realtime.outbound_calls','FORGOTPASSWORD.LINNK_SENT_MESSAGE','intVtigerField','European\x20Dutch\x20Female','whatsappCannedAnswers','CreateOrEditMailCannedAnswerDialogController','rpc@getAgents','app.integrations.vtigerAccounts','STAFF.ALL_QUEUES_','motion.token','whatsapp/queues/:id/users','src/js/modules/main/apps/marketplace/views/plugins/edit/view.html/view.html','fax/accounts/addaccountapplications','allDispositions','chat/offline_messages/:id','app.tools.triggers.edit','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','editdialog','getMusicOnHolds','Are\x20you\x20sure\x20want\x20to\x20close\x20the\x20','Javanese','delete\x20Contacts','deleteSelectedFaxQueues','jira','app.motiondialer.realtime.queue_calls','src/js/modules/main/apps/analytics/views/reports/edit/field/dialog.html/dialog.html','escapeToClose','CreateOrEditSquareProjectDialogController','chatGroup:remove','ServicenowAccountsController','src/js/modules/main/apps/mail/views/mailQueues/edit/view.html/view.html','sms/accounts/:id/clone','capitalize','notification:send','remotePlayer','deleteSelectedSmsAccounts','#21467e','\x27W\x27','auto\x20answer\x20enabled\x20after:','showOpenchannelInteraction','square/projects/describe','MailRealtimeController','newContext','users/:id/fax/interactions','INTEGRATIONS.EDIT_FRESHDESKACCOUNT','FreshsalesConfiguration\x20properly\x20created','api.sms.account','selectedMailShowDetails','app.contactmanager.contacts.edit','mouseOver','onRemoveMailQueueChannel','\x27pt-br\x27','tue','api.intDynamics365Account.save','squareReport','cm/companies/describe','app/main/apps/sms','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zohoConfiguration?','\x27website_alias\x27','rpcWhatsappQueuesWaitingInteractions','runsentimentSelectedVoiceRecordings','DADHI','SYSTEM:GETqueues','/assets/images/theme-options/content-with-toolbar.jpg','GET_COMPANY','password','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/goto/dialog.html/dialog.html','\x27fax_messages\x27','enqueue','addNewCannedAnswer','Contexts','@includeAll','integrations/desk/configurations/:id/fields','Asia/Hong_Kong','Voicemail\x20properly\x20deleted!','delete\x20MailAccounts','openchannel/reports/queue/:id','\x27squared\x27','InternalRouteController','+07:00','Smtp\x20not\x20verified!\x20Remember\x20to\x20save\x20before\x20to\x20verify!','The\x20voicemail\x20will\x20be\x20deleted.','fileAdded','MsTimerController','saveTelephone','deleteSelectedMailAccountInteractions','MailInteractionId','dashboard:remove','src/js/modules/main/apps/voice/views/voicePrefixes/voicePrefixes.html/voicePrefixes.html','Delete\x20FreshdeskAccount','selectedMailShowSystemMessage','src/js/modules/quick-panel/tabs/groups/create/dialog.html/dialog.html','UserOpenchannelQueue','selectedFaxQueues','src/js/modules/main/apps/sms/views/realtime/queues/view.html/view.html','icon-checkbox-marked-circle','$setUntouched','cm/custom_fields/describe','MAIL.SELECTED_AGENTS','\x27null\x27','SugarcrmConfiguration\x20deleted!','centered','/fax','src/js/modules/main/apps/voice/views/realtime/queue_params/view.html/view.html','selectedSmsAccountSmsCannedAnswers','updatedAt','api.jscriptyProject.getSummary','delete\x20smsCannedAnswer','ms-stepper','sw-KE','integrations/zendesk/configurations/:id/clone','sms/accounts/:id/canned_answers','intSugarcrmConfiguration','Arabic\x20(Kuwait)','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/set/dialog.html/dialog.html','delete\x20dynamics365Account','secondLevelDisposition','America/Yakutat','content-type','analytics/custom_reports/:id/run','matchType','interaction\x20#','\x27centered\x27','onIntegrationInit','intVtigerAccount@get','en-PH','-starttime','chat/interactions/:id/attachment_upload','Hacker','\x27info\x27','\x27voice_recordings\x27','SYSTEM:GETcmCompany','src/js/modules/login/login.html/login.html','users/describe','src/js/modules/core/layouts/horizontal-navigation.html/horizontal-navigation.html','timer-start','setConditionStatus','exportSelectedTriggerAllConditions','OdbcsController\x20as\x20vm','INTEGRATIONS.EDIT_ZOHOACCOUNT','whatsapp/interactions/:id/download','createOrEditVtigerAccount','icon-fire','src/js/modules/main/apps/voice/views/chanSpies/create/dialog.html/dialog.html','ZohoAccounts','RESETPASSWORD.PASSWORD_RESET_MESSAGE','ta-SG','jscripty/answers/reports/:id/clone','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/clone/clone.html/clone.html','/ivr_campaigns','CSCTelecom','Field\x20has\x20been\x20deleted!','toggleMsNavigationFolded','newExtractedReport','api.whatsapp.account','pop','app.dashboards.general.mail','Restored','getFreshdeskAccounts','DESC','CSV\x20import\x20process\x20stopped!','Inbound\x20Call','gsm','/voiceQueues','createdAt,updatedAt,id,callerid,duration,audio,stamp,msg_id','PLUGINS.PLUGINS','Asia/Khandyga','Voicemails','close','Project\x20','CreateOrEditDynamics365AccountItemDialogController','Delete\x20IvrCampaign','\x20will\x20be\x20uninstalled.','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html','VtigerAccount\x20properly\x20created','onSaveChatInteraction','\x27agent_fullname\x27','red-300-fg\x20icon-phone-in-talk','ms-timeline','date','expanding','groupId','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/voicemail/dialog.html/dialog.html','$mdComponentRegistry','Chat\x20Queues','MailAccountId','faxStatusTime','outboundDial','deleteSelectedExtractedReports','CreateOrEditVtigerConfigurationDialogController','ngFlow','api.item.save','exportSelectedOpenchannelAccountInteractions','debug','saveContact','Select','src/js/modules/main/apps/analytics/views/reports/run/dialog.html/dialog.html','Latvian\x20(Latvia)','api.intDynamics365Configuration.save','app.motiondialer.realtime','DENIED','integrations/freshdesk/accounts/:id','connection','SYSTEM:GETfaxAccount','America/Bahia_Banderas','cloneIvrCampaign','api.voiceMail.delete','legend','SIP','intFreshdeskField','attrs','deleteconfirm','motion2.home.mycontacts:','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20zendeskConfiguration?','EU\x20(Frankfurt)','motion2.home.abandoned.bull.calls:','endRangeValue','CreateOrEditSugarcrmAccountDialogController','deleteCustomization','Video','FreshdeskAccount\x20properly\x20created','src/js/modules/main/apps/staff/views/users/users.html/users.html','migrations','icon-radiobox-marked','ZohoAccount','apps.integrations.vtigerAccounts','Fields\x20copied!','MailQueue','selectedTemplates','deleteSelectedIntervalIntervals','app.openchannel.realtime.agents','createOrEditZendeskAccount','charAt','STAFF.PERMISSIONS_WARNING_CLOSE','incident','blue-300-fg\x20icon-phone-outgoing','analyticMetric@get','userStatus','\x27IAX\x27','ShowOfflineMessageOfflineMessageDialogController','version/reset','delete\x20Pauses','Mail\x20Account\x20not\x20deleted!','selectedItems','\x27udp\x27','onSaveChatQueueChannel','Australia/Darwin','saveDeskConfiguration','copyReport','chat/reports/queue/:id','whatsapp/interactions/:id','.wav','Please\x20enable\x20browser\x20notifications!','/plugin/:id','addCondition','dashboards/:id','green-300-fg\x20icon-phone-in-talk','showFaxInteraction','fax','zh-HK','delete\x20dynamics365Configuration','Delete\x20QueueCampaign','apps.integrations.sugarcrmAccounts','api.cmCustomField.save','msTimelineItem','Europe/Malta','msCard::cardTemplateLoaded','Pacific/Rarotonga','QueueCampaign\x20properly\x20created','id,name,parent','outboundRejectCallsDay','ended','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/create/dialog.html/dialog.html','openchannel/accounts/:id/users','\x27strict\x27','Yiddish','ar-XA','pauses/:id','voice/mails/messages/:id/download','Rule','CustomReports','jscriptyQuestionReport','tagInteraction','disabled','/dialer','getSalesforceConfiguration','addVoiceQueuesChannels','WhatsappQueueagentaddController','arraytype','/zohoAccounts','sendUnpauseOnSubmit','America/La_Paz','Asia/Brunei','MAIL.NEW_MAILACCOUNT','rpc/agents/:id/capacity','Lithuanian','SYSTEM:DELETEvoiceMail','cm/hopper/preview','Smtp\x20properly\x20saved!','$state','\x27never\x27','mail/messages/describe','saveTrigger','@uniqueid','processes','TOOLBAR.TURKISH','createOrEditField','app.mail.mailSubtatuses','ar-DZ','eurdanishfemale','unpause','$emit','VoiceRecording','onChangeReportType','addCustomField','src/js/modules/main/apps/settings/views/customizations/customizations.html/customizations.html','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20customDashboards?','deleteVoicemailMessage','FAX.ALL_TEAMS','delete\x20salesforceConfiguration','isAgent','The\x20chanSpy\x20will\x20be\x20deleted.','SYSTEM:DELETEmailSubstatus','checkbox','voice/queues/:id/clone','MusicOnHold\x20properly\x20created','app.dashboards','\x27all\x27','sms/accounts/describe','SMS\x20Queues','gotoWhatsappQueues','addNewInboundRoute','getIvrCampaigns','id,uniqueid,calleridnum,statedesc,starttime,disposition','voiceDialReport','Delete\x20VoiceQueue','Lucida\x20Sans\x20Unicode,Lucida\x20Grande,sans-serif','accounts','ANSWERED','\x27loose\x27','screen/recordings/:id','voiceContext','agent\x20updated!','VOICE.VOICE','users/:id/prefixes','Queue\x20properly\x20updated!','ispeechAsrModel','VoiceQueueController','CreateOrEditCustomDashboardDialogController','SYSTEM:GETintDynamics365Account','delete\x20Trunks','\x27quarters\x27','deleteSelectedDispositions','createOrEditIvrCampaignHopper','msg','Delete\x20OpenchannelQueue','chatInternalMessage:update','warning','addNewMetric','delete\x20Teams','file','rpc/whatsapp/queues/waitinginteractions','api.downloadMessage.get','Reports','fax/messages/:id/accept','TOOLBAR.WEBRTC_MICROPHONE_NOT_AVAILABLE','voice/queues/:id/hopper_finals','icon-playlist-plus','/vtigerAccounts','a..','SYSTEM:GETchatAccounts','pluginId','CreateOrEditServicenowAccountItemDialogController','onVoiceQueue','FreshdeskAccountsController','isValid','app.dashboards.custom','AND','ChatWebsiteonlineFormController','Error\x20while\x20removing\x20tab','chat_queue_waiting_interaction:remove','Type','app.staff.users.edit','gotoSalesforceAccounts','failed','IAX','Project\x20properly\x20','deskConfiguration','America/Nassau','icon-checkbox-blank-circle-outline','onFinish','system','OpenchannelCannedAnswer\x20properly\x20created','stopMonitor','addMinutes','Pacific/Wallis','actions/describe','chatProactiveAction','km-KH','en-US','\x20or\x20','app.mail','selectAllCompanies','app.tools.sounds','saveSection','selectAllPlugins','app.voice.musiconholds.edit','Module\x20not\x20included\x20in\x20the\x20license','delete\x20zohoConfiguration','ui-sref','app.integrations.deskAccounts.edit','saveInternalRoute','You\x20are\x20selecting\x20the\x20list\x20number:\x20','','Congestion','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/view.html/view.html','Comic\x20Sans\x20MS,cursive','GeneralsController','addNewOpenchannelAccount','VoiceQueue\x20properly\x20saved!','editInboundRouteApp','ChatProactiveAction\x20properly\x20created','TagInteractionDialogController','selectedIvrCampaignHopperBlacks','assigned','VOICE.NEW_CONTEXT','deleteSelectedContacts','src/js/modules/main/apps/contactmanager/views/lists/edit/agentadd/agentadd.html/agentadd.html','/templates','This\x20Month','User\x20API\x20key\x20removed!','onUpdateFaxInteraction','IS_GREATER_THAN','\x27pai\x27','api.voiceExtension.delete','Last\x20Week','\x27b\x27','Asia/Tashkent','Smtp\x20updated!','createdAt,updatedAt,id,key,value,description','\x27whatsapp_queues\x27','mwFormBuilder','Australian\x20English','ChatRealtimeController','selectedChatWebsiteProactiveActions','jabra','spymailInteraction','TOOLS.NOTIFICATIONS.ACTION_SAVED_SUCCESS_TITLE','TOOLBAR.USER_FORCE_LOGOUT','America/Swift_Current','\x27years\x27','write','Messages','downloadMailInteraction','onSaveChannel','ready','local','open','src/js/modules/main/apps/settings/views/updates/updates.html/updates.html','devices','saveInboundRouteApp','saveDynamics365Account','OpenchannelAccountController\x20as\x20vm','teal-fg','apps.fax.faxQueues','FreshdeskAccountController\x20as\x20vm','api.voiceRecording.save','STAFF.PERMISSIONS_UNAUTHORIZED_CREATION_MESSAGE','vm_rf.query.filter','Start\x20new\x20recording','Pacific/Kwajalein','deleteSelectedFields','whatsappMessage:save','Round\x20Robin\x20Memory','European\x20German\x20Female','cm/hopper_final/:id','voiceMusicOnHold','America/Sao_Paulo','IntervalsController\x20as\x20vm','Chat\x20Offline\x20Messages','Tonga','America/Argentina/Buenos_Aires','variables','cm/contacts/describe','deleteTelephone','\x27random\x27','exportSelectedMusicOnHolds','intDeskConfiguration','FaxAccountActionsController','#262933','msMasonry:relayoutStarted','timeout','chat/internal/messages/:id/clone','addNewMailSubstatus','apps.voice.inboundroutes','+08:30','app.whatsapp.realtime.agents','INTEGRATIONS.NEW_DYNAMICS365ACCOUNT','user_has_mail_interactions:save','motion2.home:','addNewTag','jul','chatWebsiteInteractions','QueueCampaigncloneController','integrations/vtiger/configurations/:id','Interaction\x20has\x20been\x20closed!','getApplications','getContexts','\x27chat_messages\x27','session','Penelope','msPhonebar','XCALLY-MOTION-PROGRESS=1','ORDER\x20BY\x20','apps.marketplace','chatMessage','mail/reports/transfer/describe','addNewFreshdeskAccount','initialize','chatInteraction@get','fromUrl','0.00','dialPredictiveIntervalMaxThreshold','Tag\x20properly\x20created','Pacific/Pohnpei','telephones','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperFinal?','statedesc','MOTIONDIALER.SELECTED_LISTS','MergeContactDialogController','dial','addNewTelephone','STAFF.CANCEL','Campaign','pow','There\x20is\x20a\x20call\x20that\x20hasn\x27t\x20been\x20disposed\x20yet.','src/js/modules/main/apps/contactmanager/views/contacts/duplicate/dialog.html/dialog.html','Esperanto','OpenchannelRealtimeController','api_key','NEVER','intDeskField','add','Estonian','Interactions','hopperFinal\x20#','app.tools.intervals','setAgentCapacity','MailCannedAnswer\x20properly\x20created','QueueCampaignController\x20as\x20vm','Variable','delete\x20FreshdeskAccounts','DISPOSITION_DELETE_MESSAGE','\x27wrapup\x27','predictiveIntervalAvgTalktime','getMailAccountApps','Delete\x20ChatWebsite','api.voiceChanSpy.save','columns','pending','getQueueCampaigns','deleteServicenowConfiguration','\x27en-US\x27','exportSelectedCustomDashboards','/errors/error-404','eurturkishfemale','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/item/dialog.html/dialog.html','\x27yes\x27','Asia/Kabul','api.voiceExtension.save','Whatsapp','EditChatWebsiteAppautoreplyDialogController','deleteSmsCannedAnswer','customization','exportSelectedWhatsappAccounts','CHAT.EDIT_CHATPROACTIVEACTION','src/js/modules/main/apps/staff/views/userProfiles/edit/clone/clone.html/clone.html','addNewOutboundRoute','\x27progressive\x27','cannedAnswer@get','QueueCampaignHoppersController','integrations/:id/clone','\x20has\x20been\x20uninstalled!','truepriority','targetChanged','CONTACTMANAGER.ALL_AGENTS','offlineMessage','Dutch\x20(Netherlands)','WhatsappQueue','WhatsappAccounts','SYSTEM:GETsquareProject','loop','integrations/salesforce/configurations/:id/fields','DASHBOARDS.CANCEL','delete\x20FaxQueues','mailInteractionTags:save','DASHBOARDS.JULY','ChatWebsiteofflineFormController','America/Boise','MOTIONDIALER.QUEUECAMPAIGNS','userProfiles/:id/sections','SYSTEM:DELETEanalyticMetric','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','app.settings.system','','isSupported','apps.analytics.extractedReports','contactFields','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperHistory?','SmsAccount\x20properly\x20deleted!','onRemoveFaxQueueChannel','msNavigationHorizontalNode','gotorealtimegoto','intFreshsalesConfiguration','$ne','freshdeskAccounts','globalCustomFields','icon-tile-four','src/js/modules/core/directives/ms-advanced-search/ms-advanced-search.html/ms-advanced-search.html','integrationReport','smsQueue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20openchannelCannedAnswer?','chatWebsite','orange-bg','US\x20City/States','key','uploadSound','general','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/configurations/dialog.html/dialog.html','pTalking','Trunk\x20updated!','AgentHomeDashboardMultiChannelSmsController','red','isBetween','match','omniChannels','IS\x20EMPTY','','mouseenter','interactions','MusicOnHold\x20updated!','preventDefault','newSquareRecording','kn-IN','handleKeyboardAction','\x27CN\x27','Interaction\x20deleted!','layoutMode','saveProject','googleTtsLanguage','getTriggers','dashboardItem','N/A','Delete\x20FreshsalesConfiguration','motionConfig','AgentsWhatsappRealtimeController\x20as\x20vm','app.mail.mailQueues','whatsapp_queue_waiting_interaction:remove','EditInboundAppplaybackDialogController','when','elementTag','messages','mail/accounts/:id/send','The\x20tag\x20will\x20be\x20deleted.','\x27limit\x27','America/Thule','migrations/describe','fax/applications/:id/clone','safari','fax/interactions/describe','\x27inuse\x27','sms/queues/:id/teams','Kinyarwanda','motion2.realtime.abandoned.bull.abandonedCalls:','The\x20smtp\x20will\x20be\x20deleted.','selectedTab','chatCannedAnswer','nospace','onSaveUserChatQueue','userProfile','sendReport','#c5c6cb','newTrunk','DESCRIBE_CM_CONTACTS','onInit','az-AZ','saveHopper','addSquareProjects','IS\x20NOT\x20NULL','api.intDynamics365Account.delete','exportSelectedTriggers','api.intSalesforceConfiguration.update','deselectSquareRecordings','Contact\x20properly\x20created','answer','intervals/:id/sub_intervals','foreignTableFields','Occitan','chat/internal/messages/:id','-11:00','voiceDialReportColumns','app.contactmanager.lists','msMaterialColorPicker','ivrCampaignHopperBlacks','reports','render','','delete\x20scheduled\x20call','motionPalettes','voiceQueuesLog/:id/clone','createdAt,updatedAt,id,name,mode,directory,application,format,sort','editInternalRouteApp','+11:00','fax/interactions/:id/tags','FreshdeskConfiguration\x20deleted!','selectAllChanSpies','faxAccountApps','api.voiceQueue.delete','TemplatesController','\x27cm_contacts\x27','animate','WhatsappCannedAnswer\x20properly\x20created','Tag','ExtractedReport','de-DE','Asia/Aqtobe','Away','concat','\x2716\x27','VoiceMusicOnHoldId','@autocomplete','delete\x20odbc','deleteSelectedZohoAccounts','\x20\x20properly\x20logout','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotop/dialog.html/dialog.html','exportSelectedChanSpies','tooltipVisible','openchannel/queues/:id','src/js/modules/navigation/layouts/horizontal-navigation/navigation.html/navigation.html','Australia/Hobart','grey-A400-bg','integrations/freshsales/accounts/:id/fields','eu-ES','getInternalRouteApps','md-content[name*=\x27interaction-content-','Europe/Belgrade','MAX\x20(','+03:00','addAccountApplications','EditWhatsappAccountAppcloseDialogController','listFields','queueNotifyMethod','true','selectAllSugarcrmAccounts','getIconByChannel','SugarcrmAccount\x20properly\x20deleted!','onRemoveChatQueue','line','UK\x20English\x20Male','TOOLS.DISPOSITIONS','autocompleteRequireMatch','addNewchanSpy','internal','delete\x20squareRecording','Partially\x20Enabled','app.voice.outboundroutes.edit','deleteSelectedDescriptions','SYSTEM:GET_PAUSES','0\x200\x20*\x20*\x20*','DASHBOARDS.JUNE','/mailQueues','rpc/voice/queues/preview/:id','su-ID','Owner','intServicenowConfiguration','app.integrations.zohoAccounts','plugin_','Template\x20properly\x20deleted!','CustomField\x20deleted!','createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','\x22resource\x22\x20must\x20be\x20an\x20array\x20and\x20it\x20must\x20follow\x20$resource\x20definition','sugarcrm','app.sms.smsQueues','Your\x20survey\x20session\x20has\x20been\x20properly\x20saved!','Unable\x20to\x20open\x20the\x20contact','varPath','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27invalid\x27','Conchita\x20(Spanish,\x20Castilian,\x20Female)','onClick','faxQueue:save','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/queue/dialog.html/dialog.html','createdAt,updatedAt,id,name','canSelect','code','kind','selectedMailAccountApps','newChatQueue','ms-search-bar-expanded','\x274800\x27','hasChildrenPermissions','/dynamics365Accounts','nextContact','\x27US\x27','toggleSidenav','sms/messages/:id/clone','faxInteractionDownload','uk-UA','All\x20unfilled\x20values\x20of\x20the\x20contact\x20#','motion2.realtime.abandoned.voice.abandonedCalls:','VOICE.RUNTRANSCRIBE_VOICERECORDING','queryOptions','sms/messages/:id/reject','app.marketplace.plugins.edit','/callysquare','blue-grey-A200','cm/contacts/:id/hopper_histories','QuickFilterManager::setPlaceholder','SoundsController','Analytics','delete\x20hoppers','deselectCannedAnswers','CreateOrEditQueueCampaignDialogController','allowEdit','MotionDialerRealtimeController\x20as\x20vm','getTrustedURL','Russian\x20(Russia)','limitCalls','FreshsalesAccounts','id,fullname,role','getNotifications','deleteSelectedScheduler','SmsQueue\x20properly\x20created','SYSTEM:DELETEuserProfile','countnoanswerretry','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27paused\x27','settings/describe','busy','onUpdateMailQueue','QUICKPANEL.NEW_CHATGROUP','src/js/modules/main/apps/voice/views/inboundroutes/edit/view.html/view.html','CDR(prefix)=noprefix','\x27ulaw\x27','find','cannedAnswers','EditAppintervalDialogController','\x27report_openchannel_transfer\x27','firstName,lastName,fax','Type\x20the\x20target','/userProfiles','Plivo','newUser','msScrollOptions','sms/applications/describe','openchannelCapacity','deleteSchedule','chanSpy\x20properly\x20deleted!','mail/reports/queue/:id/clone','falsepriority','deleteFaxAccountApp','\x20will\x20be\x20deleted.','websocket','fax/interactions/:id','isAdmin','General\x20updated!','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/close/dialog.html/dialog.html','VOICE.DIALER','fullname','SYSTEM:GETUSERS','CONTACTMANAGER.SELECT_LIST','users/:id/mail_accounts','apps.settings.system','\x27id\x27','api.analyticExtractedReport.delete','createOrEditSugarcrmConfiguration','icon-label','OdbcsController','isSameOrigin','SYSTEM:DELETEchatQueue','SYSTEM:GETopenchannelAccount','VOICE.RUNSENTIMENT_VOICERECORDING','IvrCampaignblacklistaddController','Nepali\x20(Nepal)','getVoiceQueuesReport','answeredAt','delete\x20vtigerAccount','VOICE.EDIT_VOICEMAIL','browserVersion','src/js/modules/main/apps/contactmanager/views/contacts/merge/dialog.html/dialog.html','cm/lists/:id/dispositions','SYSTEM:GET_INTERVAL','allResourcesEnabled','URI','EditInternalApp','SYSTEM:DELETEfaxAccount','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/hoppers/dialog.html/dialog.html','Vitoria\x20(Portuguese,\x20Brazilian,\x20Female)','faxAccounts','MsTabScrollController','SYSTEM:GETvoiceExtension','src/js/modules/main/apps/analytics/views/reports/create/dialog.html/dialog.html','delete\x20whatsappAccount','playback','FaxAccounts','off','UserMailDashboardGeneralController','PowerDialing','chat-interaction','Delete\x20Tag','zendeskConfigurations','Incoming\x20call\x20from:\x20','INTEGRATIONS.EDIT_SALESFORCEACCOUNT','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/blacklistadd/blacklistadd.html/blacklistadd.html','plugin:save','api.interval.update','/chatWebsites','app.mail.realtime.queues','faxInteraction','whatsappQueue:update','onUpdateWhatsappInteraction','UNIX_TIMESTAMP','createOrEditVoiceQueue','apps.voice','app.whatsapp.realtime','MailAccounts','getConfigurations','saveSmsQueue','primary','integrations/zendesk/fields/:id/clone','userIsNotPhonebar','globalCompanies','users/create_many','app.tools','downloadMessage','exten','Application_Name','The\x20list\x20will\x20be\x20deleted.','msApi','SETTINGS.AITOOLS','Lists','WhatsappAccountController','TOOLBAR.BRAZILIAN','$timeout','smsAccount@get','Pacific/Galapagos','id,name,fullname,userpic','fi-FI','Hangup','SYSTEM:GETvariables','api.network.save','apps.integrations','restartplugin','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/interval/dialog.html/dialog.html','chat/websites/:id','selectAllWhatsappAccounts','selectAllOutboundRoutes','es-US','Asia\x20Pacific\x20(Singapore)','TOOLS.NEW_SCHEDULE','The\x20whatsappQueue\x20will\x20be\x20deleted.','ssml','size','deleteSelectedDeskAccounts','src/js/modules/main/apps/voice/views/realtime/outbound_calls/view.html/view.html','stop\x20plugin\x20process','CreateOrEditExtractedReportDialogController','gotoFaxQueues','\x27left\x27','multipleUsers.name','newIndex','Interaction\x20properly\x20tagged!','src/js/modules/main/apps/dashboards/views/general/agent/interaction/dispose/dialog.html/dialog.html','selectedVoiceRecordings','unknown','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/tag/dialog.html/dialog.html','selectedResultIndex','exportSelectedVoicemailMessages','\x27sms_interactions\x27','twilio','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voicePrefixes?','scope','ANALYTICS.METRICS','offset','screenrecording','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/externaldial/dialog.html/dialog.html','delete\x20VoiceRecordings','MODULE_NOT_FOUND','High','previousContact','SYSTEM:DELETEchatWebsite','addNewContact','newReportField','jpjapanesemale','newscreenRecording','displayCannedAnswerInput','app.openchannel.openchannelQueues','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshdeskConfiguration?','app.analytics.extractedReports','INTEGRATIONS.DESKACCOUNTS','ms-target','CustomDashboard\x20properly\x20deleted!','integrations/vtiger/fields/:id','oldPassword','set','cross_join','Unable\x20to\x20retrieve\x20voice\x20channels','searchFields','acceptcall','delete_node','createVidaooSession','removeAttachment','deleteSelectedMailAccountApps','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/ringgroup/dialog.html/dialog.html','arrayringinuse','onRemoveVoiceQueue','testtestintegrationaccount','thu','answerRate','Invalid\x20extension:\x20','integrations/freshsales/accounts/:id/configurations','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/tag/dialog.html/dialog.html','CustomDashboardcloneController','src/js/modules/main/apps/dashboards/views/general/agent/contact/dispose/dialog.html/dialog.html','getMinutes','Whatsapp\x20Queues','chat/queues/:id','globalStatus','Once','motionBullFields','msWidgetEngine','What\x20would\x20you\x20name\x20your\x20list?','ms-nav-toggle',';font-size:','getSessions','ms-navigation-folded','app.motiondialer.ivrCampaigns','isValueByCondition','TOOLS.EDIT_SCHEDULE','hasPermission','odbcs','SmsQueueId','mdPickers','\x27en-GB\x27','saveChatWebsite','gotoChatQueues','inboundroute','\x27bottom_right\x27','The\x20customDashboard\x20will\x20be\x20deleted.','Customization\x20updated!','SIP/','SYSTEM:DELETEintZendeskAccount','OPENCHANNEL.OPENCHANNEL','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperHistories?','integrations/dynamics365/accounts/:id/clone','apps.staff.telephones','Africa/Lagos','The\x20system\x20request\x20time\x20for\x20the\x20update\x20should\x20be\x20below\x201\x20minute.

Do\x20you\x20agree\x20the\x20terms\x20of\x20this\x20End\x20User\x20License\x20Agreement
?','read','vi-VN','onSaveQueue','2nd','app.whatsapp.whatsappAccounts','$mdSidenav','cmHopper','tag.name','Please\x20use\x20only\x20json\x20files','DASHBOARDS.NOTAVAILABLE','WHATSAPP.SELECTED_AGENTS','processLimit','hoppers','chat/interactions/:id','exportSelectedVariables','\x27wav49\x27','mouseenter\x20mouseleave','mandatoryDispositionPause','GET_CONTEXT','\x27force_rport\x27','layoutStyles','openContact','openchannelCannedAnswer\x20#','DisposeAbandonedCallDialogController','replyAll','InternalRoute\x20properly\x20saved!','outboundCongestionCallsDay','FreshdeskAccount\x20properly\x20deleted!','differenceWith','callCallback\x20->\x20url,\x20params','Chinese\x20Male','VOICE.WRONG_EXTENSION','application','us-east-1','city','Spanish','Intervals','web-report','outboundQueues','Read','Asia/Singapore','analytics/metrics/:id/clone','motion.newsAlertHide:','TOOLBAR.SWEDISH','jv-ID','queuesMap','newWhatsappCannedAnswer','delete\x20InternalRoutes','integrations/salesforce/configurations/:id/subjects','delete\x20whatsappQueue','api.analyticExtractedReport.update','sumDuration','agentForm','getFunctions','app.settings','q:\x20Don\x27t\x20play\x20a\x20beep\x20when\x20beginning\x20to\x20spy\x20on\x20a\x20channel,\x20or\x20speak\x20the\x20selected\x20channel\x20name.','','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/queue/dialog.html/dialog.html','red-300-fg\x20icon-phone-locked','
TODO\x20legend\x20status\x20+\x20state
','createOrEditFaxAccount','Pacific/Fakaofo','chatWebsite@get','variable_id','delete\x20chatProactiveAction','AgentGeneralContactController','Ricardo\x20(Portuguese,\x20Brazilian,\x20Male)','mailAccount@get','CONTACTMANAGER.CONTACTMANAGER','offsetHeight','America/El_Salvador','voice/transfers/reports/:id/clone','app.voice.voiceRecordings','undefined','motiondialer','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/view.html/view.html','dashboards/items/describe','ZohoAccountController','TOOLBAR.STAY_LOGGED','contexts','showTooltip','icon-help','advancedSearch','MARKETPLACE.UPLOAD_PLUGIN','COMMA','project_id','search','filterByPropIds','campaign:save','SYSTEM:GET_REPORTS','mediaDevices','deleteSelectedFreshdeskAccounts','outerHeight','\x27pt-BR\x27','ScreenRecordingplayController','binding','\x20has\x20been\x20copied!','models','AgentFullname','report_agent','app.contactmanager.companies.edit','SYSTEM:GET_WHATSAPPACCOUNTS','mon','/voice','Queues\x20association\x20has\x20been\x20updated!','TOOLS.NEW_VARIABLE','getServicenowConfiguration','selectAllTags','YYYY-MM-DDTHH:mm:ssZ','isObject','Low','paginatedInteractions','addNewVtigerAccount','onSave','src/js/modules/main/apps/voice/views/musiconholds/musiconholds.html/musiconholds.html','apps.voice.outboundroutes','ReferAttendedDialogController','FreshsalesAccount\x20properly\x20deleted!','AgentsOpenchannelRealtimeController\x20as\x20vm','Spanish\x20(Honduras)','deleteChatWebsiteOfflineMessage','Agent\x20Only','cancelInterval','delete\x20servicenowAccount','apps.jscripty','HANGUPCAUSE_1','ResetPasswordController\x20as\x20vm','it-IT','msNavFoldService','ReportsController\x20as\x20vm','America/Indiana/Tell_City','SMS.NEW_SMSACCOUNT','America/Denver','CreateOrEditZendeskAccountItemDialogController','mail/queues/describe','src/js/modules/main/apps/motiondialer/views/queueCampaigns/queueCampaigns.html/queueCampaigns.html','getFaxQueues','sounds/:id/clone','users/:id','scrollWidth','INTEGRATIONS.VTIGERACCOUNTS','faxQueue@get','$startsWith','getColumns','gotoCompanies','Plugin\x20properly\x20created','The\x20zendeskAccount\x20will\x20be\x20deleted.','','logout','src/js/modules/toolbar/layouts/vertical-navigation/toolbar.html/toolbar.html','\x20attached\x20process\x20will\x20be\x20stoppped.','Chat\x20Report\x20Queue','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27wrapup\x27','selectedReport','delete\x20ChatWebsites','SUM','deleteInternalRoute','ContactController\x20as\x20vm','addNewSalesforceAccount','fax/interactions/:id/clone','\x27q\x27','ringingId','mail/substatuses/:id/clone','CKEDITOR','integrations/zendesk/configurations/:id/tags','\x27dropRate\x27','WebSocketInterface','deleteDynamics365Configuration','SYSTEM:GET_CLOUDPROVIDERS','addAction','America/Sitka','TOOLBAR.CHINESETRADITIONAL','\x27comedia\x27','CreateOrEditFaxQueueDialogController','Tools','file_id','api.pause.delete','=endTime','-10:00','UpdatesController\x20as\x20vm','FAX.EDIT_','selectedVtigerAccounts','Phone','openchannel/interactions/:id/download','prototype','delete\x20customField','url','Slovenian','migrations/:id/clone','transferNumber','SETTINGS.EDIT_SMTP','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20screenRecordings?','America/Vancouver','CreateOrEditTagDialogController','Help','addNewUserProfile','avgTalkTime','createdAt,updatedAt,id,name,strategy,timeout,description','channelStatusOut','newchanSpy','\x27shortinfo\x27','status_code','monthsS','MsSearchBarController\x20as\x20vm','Mathieu','maxdigit','ZohoAccountController\x20as\x20vm','delete\x20network','Network\x20properly\x20deleted!','SYSTEM:GETintSugarcrmAccount','Breton','FaxQueuesController','callbackurl:\x22','deviceInfo','Authorization','max','Report\x20properly\x20deleted!','mmonths','crudPermissions','openchannelAccountApps','SYSTEM:GETLISTS','Attachment\x20is\x20mandatory','Streets','\x27fewestcalls\x27','Variables','Europe/Chisinau','src/js/modules/main/apps/contactmanager/views/contacts/edit/view.html/view.html','endOfConversation','assign','AgentHomeVoiceDetailsController','SYSTEM:DELETEdisposition','analytics/field_reports/create_many','OpenchannelQueueagentaddController','apps.settings.updates','delete\x20OpenchannelAccounts','targetEvent','ZendeskAccountController\x20as\x20vm','delete\x20zohoAccount','onRemoveSmsQueueChannel','square/details/reports/:id/clone','wss','NONAME','America/Panama','ContactsController','onConfirmed\x20->\x20session,\x20data','zoho.eu','removeItem','Delete\x20actions','Antarctica/Mawson','9888','openchannelPause','

\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra:\x20','smsAccount','describeTable','sms/reports/queue/:id','motion-blue','Error','app.voice.voiceQueues.edit','createOrEditSubject','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27paused\x27','apps.integrations.freshsalesAccounts','TelephoneController\x20as\x20vm','getTrunks','deselectMetrics','id,name,type,dialMethod,dialActive','mailMessage:save','tTxX','deleteZohoConfiguration','HMAC','400','src/js/modules/main/apps/staff/views/users/edit/view.html/view.html','requestPermission','saveWhatsappAccount','\x27es-419\x27','-06:00','Company\x20updated!','deleteOdbc','deselectInternalRoutes','id,mailbox','rewriteRouting','/salesforceAccounts','\x27once\x27','Spanish\x20(Ecuador)','{part}/i18n/{lang}.json','trunks/:id','app.dashboards.general.openchannel','deselectUserProfiles','welcomemessage','\x20has\x20been\x20done!','role','mailTransferReport','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/dial/dialog.html/dialog.html','WhatsappCannedAnswer\x20properly\x20saved!','apps.mail.mailSubtatuses','toasty','channels','VOICE.INBOUND','selectAllReports','@pid','MsPhonebarController','src/js/modules/main/apps/settings/views/networks/create/dialog.html/dialog.html','Teams\x20association\x20has\x20been\x20updated!','WHATSAPP.NEW_WHATSAPPQUEUE','columnCount','getScreenRecordings','OutboundRouteActionsController','apps.openchannel.openchannelAccounts','krkoreanfemale','cm/hopper/:id','isDraft','isEmpty','blue-300-fg\x20icon-phone-incoming','deleteFreshsalesAccount','outboundAbandonRate','ChatCannedAnswer\x20properly\x20created','OpenchannelCannedAnswer\x20properly\x20saved!','MailQueuesController','mapArray','resetViewer','newSmsQueue','tcp','mindigit','endTime','addNewSugarcrmAccount','A100','$to','MailQueuesController\x20as\x20vm','saveFreshsalesAccount','VtigerAccount','Smpt\x20id\x20unknown','setFoldable','Switch','onInternalMessageSave','FreshsalesAccountConfigurationsController','SYSTEM:UPDATECMHOPPERHISTORY','addPart','mail/queues/:id/users','rpcMailQueuesWaitingInteractions','ToId','deselectVariables','\x20and\x20its\x20subnode\x20will\x20be\x20deleted.','focusOn','VOICE.FILE_NOT_FOUND','Europe/Andorra','Indonesian\x20(Indonesia)','whatsapp/messages/:id/accept','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/dialogflow/dialog.html/dialog.html','api.faxQueue.update','motion-theme-options','mail/messages/:id/download','ko-KR','createOrEditOutboundRoute','Comic\x20Sans\x20MS','SYSTEM:GETvoiceMail','Draft','Voicemail\x20updated!','selectedOpenchannelAccountOpenchannelCannedAnswers','dialActive','customDashboards','createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','deleteOutboundRoute','Mac','gotodashboardgoto','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','fax/applications/describe','api.intVtigerAccount.save','SquareRecording\x20properly\x20created','webbar:originate','\x27ja\x27','addMessage','OmniWeb/','WhatsappAccountId','app.navigation','INTEGRATIONS.EDIT_SUGARCRMACCOUNT','SYSTEM:GETusers','saveMailAccountApp','TOOLS.NOTIFICATIONS.DISPOSITION_DELETED_SUCCESS_TITLE','America/Asuncion','chatInternalMessage:save','startMonitor','Fewest\x20Calls','Gsm','settings/:id/clone','app.mail.mailAccounts','/mail','TOOLBAR.CHINESESIMPLIFIED','vm.selectedTags','voiceMusicOnHoldDownload','MAIL.REALTIME','freshsalesConfiguration','delete\x20VtigerAccounts','queueCampaignHopperFinals','externalDial','Emma\x20(English,\x20British,\x20Female)','src/js/modules/main/apps/marketplace/views/plugins/upload/dialog.html/dialog.html','freshsalesAccount','SYSTEM:DELETEsmsQueue','enter','QueueCallsVoiceRealtimeController','src/js/modules/core/directives/ms-phonebar/referAttended/dialog.html/dialog.html','restart','selectChangedAdvanced','ReportController\x20as\x20vm','deleteMailAccountInteraction','icon-checkbox-multiple-marked-outline','app/core/directives/ms-phonebar/sounds/incoming-call.ogg','api.intVtigerConfiguration.delete','notifications/:id','contactSearch','script','Voicemail\x20properly\x20created','Spanish\x20(Peru)','id,name,strategy,type','Javanese\x20(Indonesia)','\x27voice\x27','OpenchannelQueuesController\x20as\x20vm','\x27none\x27','ServicenowAccount\x20properly\x20created','preload','delete\x20Lists','\x27pdf\x27','chat/websites/:id/canned_answers','lastPauseAt','fax/accounts/:id/canned_answers','NO_ANSWER','onRemoteCall\x20->\x20evt,\x20data','DisposeInteractionDialogController','addNewList','GET_SOUND','id,uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','api.intSugarcrmAccount.update','CreateOrEditInboundRouteDialogController','translate','command','g729','api.intDeskConfiguration.delete','fax/reports/queue/describe','$viewValue','Numbers\x20to\x2099','SETTINGS.UPDATE','VOICE.ALL_AGENTS','Company','src/js/modules/main/apps/voice/views/inboundroutes/inboundroutes.html/inboundroutes.html','Invalid\x20tag\x20name.','selectedMailAccountInteractions','confirm','voiceChanSpy','Mozilla','mail/reports/transfer/:id/clone','app.whatsapp.whatsappQueues','The\x20network\x20will\x20be\x20deleted.','EditFaxAccountApp','/dashboards/general','saveSquareRecording','DASHBOARDS.OCTOBER','Afrikaans\x20(South\x20Africa)','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contacts?','ha1','The\x20deskAccount\x20will\x20be\x20deleted.','offlinemessagesgoto','Left\x20Join','api.voiceMail.update','tag','triggers','id,name,enabled,includeAll,autoAssociation,crudPermissions','Lowest','QueuesMotionDialerRealtimeController','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','save_name','wait','$mdMedia','intDeskAccount@get','defer','Dynamics365AccountsController','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE','app.errors_error-500','createOrEditvoicePrefix','api.action.update','userAgent','mailAccountApps','users/:id/fax_accounts','STAFF.CLONE_USERPROFILE','createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribeStatus,UserId','red-300-fg\x20icon-phone-hangup','reLayout','openchannelCurrentCapacity','getGroups','users/:id/chat_websites','Romanian\x20(Romania)','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/queue/dialog.html/dialog.html','square/reports/describe','onRemoveUserOpenchannelQueue','MsNavigationNodeController','fax/messages/:id','id,name,internal,fullname','lang','Urdu','paginate','selectedAiTools','FooterController','onSaveUserFaxQueue','timer','page','isStepCurrent','ScreenRecordingsController\x20as\x20vm','ReportController','SugarcrmAccountController\x20as\x20vm','msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)','onVoiceExtensionUpdate','voiceRecordings','selectedIntervalIntervals','OutboundRouteController','userProfile@getResources','src/js/modules/main/apps/voice/views/voiceQueues/create/dialog.html/dialog.html','inuse','outboundroutes','jscriptyProjects','STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE','unmanaged','SYSTEM:GET_VOICEMAILS','musiconholds','getMetrics','ServicenowConfiguration\x20properly\x20saved!','deselectTriggers','whatsapp/interactions/:id/messages','xx-hacker','teams/:id/queues','ASC','EditMailAccountAppgotoifDialogController','app.dashboards.general.dialer','savePause','destaccountcode','info','SYSTEM:DELETEvariable','api.voicePrefix.delete','queryResult','No\x20\x27%s\x27\x20process\x20found','ServicenowConfiguration\x20deleted!','api.intFreshsalesAccount.delete','plugin:update','placeholders','onSearchBarExpand','Delete\x20MailQueue','createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority','chatQueue:update','Korean\x20(Korea)','step','ng-sortable','saveContext','Warning!\x20You\x20won\x27t\x20select\x20a\x20different\x20list\x20for\x20the\x20contact\x20','voicePause','$stateParams','userOpenchannelQueue:remove','desktopNotification','hue','Disabled','intFreshdeskAccount','CreateOrEditAllConditionDialogController','getZohoConfiguration','Are\x20you\x20sure\x20want\x20to\x20run\x20the\x20schedule?','AgentsWhatsappRealtimeController','apps.chat.chatWebsites','cm/hopper_final/voice/campaign/moveContacts/:id','app.voice.inboundroutes','Swedish','motion.shortcuts','SquareProjects','ms-nav-folded\x20ms-nav-folded-open','src/js/modules/main/apps/whatsapp/views/whatsappQueues/edit/teamadd/teamadd.html/teamadd.html','blue-A700','fil-PH','$stateChangeStart','mail_queue:save','onVoiceChannelRemove\x20->\x20\x20key,\x20tab,\x20tab.calls','CSquare\x20Report','getInboundRoutes','es-PY','deselectScheduler','onActionSelection','integrations/salesforce/configurations/describe','width','EditWhatsappAccountAppsystemDialogController','hasMicrophone','datetime','newDashboardItem','analytics/extracted_reports/:id/clone','TOOLBAR.WEBRTC_SPEAKER_NOT_AVAILABLE','exportSelectedZohoAccounts','getExtension','api.dashboard.save','Antarctica/Davis','lime-A700-bg','SYSTEM:DELETECONFIGURATION','TOOLS.NOTIFICATIONS.TRIGGERS_DELETE_MESSAGE','Asia/Kuala_Lumpur','goToTrunk','TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE','addSound','app/main/apps/video','CONTACTMANAGER.NEW_CONTACT','Australia/Lord_Howe','cafrenchmale','UserWhatsappAccount','getClass','WhatsappQueuesController','integrations/freshdesk/accounts/:id/fields','deleteSelectedQueueCampaignHopperHistories','CDR','module','status','MAIL.MAILSUBSTATUSES','rpcOpenchannelQueuesWaitingInteractions','msRecording','chat/messages/:id','msMasonryController','app.fax.faxAccounts.edit','chrome','WhatsappAccount\x20updated!','selectedSmsAccountApps','SYSTEM:GETsetting','configurations','SETTINGS.UPDATES','downloadTranscribe','createOrEditListCustomField','prefix','selectAllIntervals','newProject','createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','selectAllDispositions','IvrCampaignsMotionDialerRealtimeController','app.mail.realtime.agents','TrunksVoiceRealtimeController','icon-format-text','voice/agents/reports/:id/clone','customFieldsForm','msVerticalStepper','types','addNewIvrCampaign','red-fg','Phonebar','api.cmCustomField.delete','mailAccountInteractions','src/js/modules/main/apps/integrations/views/servicenowAccounts/create/dialog.html/dialog.html','European\x20Spanish\x20Male','$onInit','CreateOrEditMailAccountDialogController','Highest','processing','pauseType','stepNumber','The\x20freshdeskAccount\x20will\x20be\x20deleted.','onUpdateChatQueue','Contact\x20updated!','Report\x20deleted!','Asia/Kathmandu','currentSidebarTab','firstLevel','voicePrefixes','AllCondition\x20properly\x20saved!','mixmonitorid','\x27it\x27','attachment','secondsS','isMyAccount','instances','newTelephone','cm/hopper_history/:id/clone','smsQueuesTotal','getContact','newMail','CreateOrEditPauseDialogController','\x27leastrecent\x27','exportSelectedDeskAccounts','strict','CreateOrEditSmsCannedAnswerDialogController','rpc','chat/reports/queue/describe','id,name,metric,table','isJabraInitialized','requestSucceeded','\x27chat_queues\x27','Connection\x20succeded!','EditOpenchannelAccountAppagentDialogController','apps.marketplace.plugins','api.mailQueue.save','selectAllMailQueues','isRunning','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/agi/dialog.html/dialog.html','VoiceRecordings','isHidden','api.voicePrefix.save','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeMail/dialog.html/dialog.html','squareProject','interaction','deleteSelectedIvrCampaignHopperHistories','deselectAiTools','Process\x20updated!','saveOpenchannelCannedAnswer','Dynamics365AccountController','$gt','api.analyticReport.save','SYSTEM:GETtags','app.fax.faxQueues','prop','src/js/modules/main/apps/dashboards/views/general/agent/home/voice/details/dialog.html/dialog.html','Mail','api.jira','multiselect','editMailAccountApp','ZohoConfiguration\x20properly\x20created','es-MX','createOrEditReportField','penalty','integrations/vtiger/accounts/:id','SmsAccountagentaddController','European\x20Turkish\x20Male','runtranscribeSelectedVoiceRecordings','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20tags?','take','openchannelAccountInteractions','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','voice/queues/:id','stepTitle','createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','app.sms.realtime.queues','/users','cm/hopper/:id/clone','JSCRIPTY.CLONE_PROJECT','onAddstream\x20->\x20data','mail_queue_waiting_interaction:save','app.marketplace','rpc/chat/queues/waitinginteractions','stopUpload','agreement','MsStepper','voiceQueue','download','createOrEditSmsQueue','Filipino','current','newPlugin','getChatQueuesWaitingInteractions','apps.mail.mailQueues','Spanish\x20(Spain)','+12:00','SYSTEM:DELETEopenchannelQueue','data3','whatsapp/accounts/:id/applications','SYSTEM:GETintServicenowAccount','voice/dials/reports/:id/clone','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/interval/dialog.html/dialog.html','deleteSelectedSmsAccountSmsCannedAnswers','toInteger','Serbo-Croatian','always','userSmsQueue:remove','content-length','api.voiceRecording.update','eurfrenchmale','VIDEO.WRONG_EXTENSION','addNewQueueCampaign','getVoiceRecordings','group','DELETE_PERMISSION','openchannel/reports/transfer/:id/clone','subjects','Africa/Windhoek','\x27report_whatsapp_transfer\x27','src/js/modules/main/apps/staff/views/agents/edit/queueadd/queueadd.html/queueadd.html','EditInboundAppcustomDialogController','MAIL.EDIT_MAILACCOUNT','TOOLS.NOTIFICATIONS.ACTIONS_DELETE_MESSAGE','isValidRange','snakecase','SalesforceConfiguration\x20properly\x20created','app.openchannel.openchannelAccounts','newDeskConfiguration','apps.analytics','hue-2','The\x20extractedReport\x20will\x20be\x20deleted.','Atlantic/Reykjavik','Arguments','clearDate','hmac','arrayannounce_position','WhatsappAccountagentaddController','src/js/modules/main/apps/integrations/views/freshdeskAccounts/create/dialog.html/dialog.html','\x27nonat\x27','firstLevelDisposition','api/sounds','hue-3','mailAccount','whatsapp/accounts/:id/dispositions','createOrEditReport','integrations/zendesk/configurations/:id','SYSTEM:ADDFIELDS','\x27more\x27','cmCompany@get','createOrEditMailAccount','all','dynamics365Configuration','apps.contactmanager.lists','apps.home.recordings','\x27wss\x27','ERROR','agentCapacity','JSCRIPTY.DO_YOU_WANT_TO_RESET_SESSION','newMailAccount','appendChild','nextStep','journey','yes','icon-script','src/js/modules/main/apps/chat/views/chatWebsites/edit/agentadd/agentadd.html/agentadd.html','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/zendeskConfigurations/dialog.html/dialog.html','Sinhala\x20(Srilanka)','integration','-09:00','EU\x20(Ireland)','src/js/modules/main/apps/staff/views/users/edit/apikeymanager/apikeymanager.html/apikeymanager.html','\x20DESC)','QueueCampaigns','gotoQueueCampaigns','X-callback-url','intZendeskConfiguration','limitObjectFromTo','Friend','TrunkId','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','formsIncomplete','api.voiceRecording.delete','Limit','delete\x20internalroute','ChatRealtimeController\x20as\x20vm','times','rgba(','SYSTEM:GETsounds','mail/accounts/:id/in_servers','WhatsappAccountsController\x20as\x20vm','delete\x20chanSpy','UpdateLicenseDialogController','createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','deselectPlugins','cutdigits','\x20has\x20been\x20updated!','api.dashboardItem.update','Spanish\x20(Venezuela)','integrations/zoho/configurations/:id/descriptions','\x20ORDER\x20BY\x20','There\x20has\x20been\x20an\x20error\x20while\x20trying\x20to\x20save\x20your\x20survey\x20session!','sip_id','French\x20(France)','treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20','apiAccountRoute','fri','chat/proactive_actions/describe','onSaveVoiceQueue','Smtp\x20properly\x20deleted!','Pirate','flash','createOrEditServicenowConfiguration','ChatWebsiteController\x20as\x20vm','api.intVtigerConfiguration.save','queryHopper.filter','app.openchannel.realtime.queues','QueuesChatRealtimeController\x20as\x20vm','network@get','removeShortcut','LOCAL_LOGIN','ONLY_IF_OPEN','Asia/Omsk','boxed','integrations/freshdesk/fields/:id','gt-md','EditFaxAccountAppagentDialogController','chatTransferReport','FAX.REALTIME','DASHBOARDS.CONTACTS','id,name','recordings','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?','SYSTEM:GET_MODULE_PERMISSIONS','checkboxes','saveWhatsappQueue','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27no\x27','TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE','from','\x27whatsapp_messages\x27','\x27fr-CA\x27','getVoiceQueuesChannels','onClose','every','startTime','newInboundRoute','saveZohoAccount','createOrEditIvrCampaign','rpcWhatsappQueues','cell','fromJson','mailCurrentCapacity','Asia/Samarkand','integrations/vtiger/configurations/:id/fields','America/Menominee','hh:mm:ss','\x20has\x20been\x20modified.\x20Closing\x20will\x20lose\x20all\x20changes!','users','UserWhatsappQueue','fax/accounts/:id/send','Xhosa','IndexFactory','DASHBOARDS.SELECT_STATUS','No\x20images','AgentsVoiceRealtimeController','sessionTarget','The\x20faxQueue\x20will\x20be\x20deleted.','Europe/Bucharest','request','LoadingIndicatorService','hhours','jscriptyProject','webpackChunkmotion_client','Pacific/Kosrae','CreateOrEditMailQueueDialogController','apps.openchannel.openchannelQueues','getDateFromString','error-500','createOrEditOpenchannelQueue','TrunkController\x20as\x20vm','stateService','closeDialpad','Delete\x20VoiceRecording','called','DASHBOARDS.CALL_SAVED','Atlantic/South_Georgia','SYSTEM:GET_TRUNKS','hours','\x27report_member\x27','success','SmsAccountDispositionsController','European\x20Polish\x20Female','$urlRouterProvider','jscriptyProject@get','/api/settings/1/preferred','colors','$resolved','cmn-Hant-TW','api.dashboard.delete','TOOLS.CUSTOMDASHBOARDS','Spanish\x20(Panama)','gotoUserProfiles','Sound\x20properly\x20saved!','getProjects','icon-deskphone','mp3','integrations/zoho/configurations/describe','api.user.save','selectedVtigerConfiguration','saveItem','/whatsapp','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27penalty\x27','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/system/dialog.html/dialog.html','SETTINGS.NEW_GENERAL','selectedChatWebsiteOfflineMessages','onReply','Reset\x20Succesfull','app.chat.realtime.agents','app.integrations.zendeskAccounts.edit','getIvrCampaignHopperBlacks','MailQueueteamaddController','src/js/modules/main/apps/analytics/views/metrics/metrics.html/metrics.html','src/js/modules/main/apps/voice/views/outboundroutes/create/dialog.html/dialog.html','text','delete\x20company','Outbound','getOpenchannelQueues','','apps.sms.smsAccounts','onWithoutApply','NetworksController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperBlack?','jscriptySessionReport','createOrEditFreshdeskConfiguration','The\x20freshsalesConfiguration\x20will\x20be\x20deleted.','OpenchannelQueueteamaddController','editHopper','subtract','timer-resume','selectedContacts','clipboard','customFields','src/js/modules/main/apps/callysquare/views/squareRecordings/create/dialog.html/dialog.html','\x20and\x20','Cristiano','msMasonryItem','Delete\x20SalesforceConfiguration','MailAccount\x20properly\x20created','cloneProject','Delete\x20Project','QueueCampaignHopperFinalsController','America/Argentina/Cordoba','list','is-IS','cm/hopper_final/campaign/countAttributes/:id','api.voiceQueue.update','deleteItem','ServicenowAccountsController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20telephones?','VOICE.INTERNAL','analytics/extracted_reports/describe','mergeContact','SYSTEM:DELETEcloudProvider','Atlantic/Faroe','Asia/Gaza','cmHopperBlack','America/Porto_Velho','Raveena','voiceMailMessageDownload','\x20will\x20be\x20run.','\x20properly\x20redirect!','app.sms','newFaxAccount','closedAt','PreviewReportDialogController','allCondition','/callysquare/projects/','DASHBOARDS.GENERAL','newGlobalCustomField','selectedGlobalCustomFields','EditMailAccountAppagentDialogController','analyticDefaultReport','integrations/zoho/fields/:id','proactive','src/js/modules/core/layouts/content-only.html/content-only.html','Widget\x20has\x20been\x20deleted!','closeDialog','thirdLevel','You\x20can\x27t\x20remove\x20yourself','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?','Project\x20has\x20been\x20','\x27report_sms_transfer\x27','editInterval','screenRecording','utcOffset','disposeInteraction','appsecret','arrayactionType','pound','Delete\x20screenRecording','prompt','quickFilters','Europe/Minsk','selectAll','ChatWebsiteagentAvatarController','InternalRoutesController','Lithuanian\x20(Lithuania)','gotoAgents','InternalRoute\x20updated!','src/js/modules/main/apps/staff/views/users/edit/changepassword/changepassword.html/changepassword.html','integrations/freshsales/configurations/describe','user_has_sms_interactions:save','OpenchannelQueueId','xCALLY\x20Motion','SYSTEM:GETtrigger','The\x20template\x20will\x20be\x20deleted.','agentOnly','api.template.update','currentStep','getChatInteractions','TOOLS.NEW_SOUND','$location','calls','selectAllChatWebsites','src/js/modules/main/apps/chat/views/chatWebsites/edit/offlineMessages/dialog.html/dialog.html','Cambodian','rfc2833','faxQueuesTotal','Liv','xAxes','selectAllTriggers','plainBody','updateQueue','autoAnswerDelay','getScheduledCalls','groupBy','voiceQueue:save','app.voice.voiceQueues','3rd','Compose','erlangCalls','track','createOrEditVoiceRecording','tags/describe','savevoicePrefix','\x27alpha\x27','body','Asia/Dili','SmsQueue\x20properly\x20saved!','America/Tijuana','Antarctica/Vostok','eurportuguesemale','getVoiceQueues','schedule@get','ar-LB','vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27','AgentGeneralInteractionController','TOOLS.EDIT_CANNEDANSWER','saveSchedule','send','VOICE.NEW_MOHSOUND','addContactTab','affectedRows','VoiceQueuesController','\x27DADHI\x27','api.squareOdbc.delete','apps.jscripty.projects','voicemailMessages','OpenchannelAccount\x20properly\x20created','/faxAccounts','Somali','arrayoutput','app.video.screenRecordings','newOpenchannelAccount','getHours','\x27penalty\x27','Malay\x20(Malaysia)','service-worker.js','getSounds','ddays','dashboarditemForm','networks/:id/clone','random','addNewOpenchannelCannedAnswer','SYSTEM:GET_PROJECTS','mailQueues','QueuesChatRealtimeController','MailAccount\x20properly\x20deleted!','endTimeAttr','chat/interactions/:id/vidaoo','KEY_CODE','AgentsOpenchannelRealtimeController','&autoStart','\x27password\x27','Europe/Zaporozhye','pause@get','selectedSalesforceAccounts','installplugin','Hungarian','OPENCHANNEL.EDIT_OPENCHANNELQUEUE','whatsapp/interactions/:id/tags','nov','queryHistory','VoicemailController\x20as\x20vm','CustomizationfaviconController','intFreshsalesAccount','awsPollyVoice','getResponseSheetRow','NoSuchNumber','Arabic\x20(Jordan)','Round\x20Robin','api.faxAccount.save','eu-west-1','Explorer','gotoIvrCampaigns','formData','STAFF.NEW_TEAM','onSaveOpenchannelInteraction','ChatWebsitesystemAvatarController','Delete\x20Report','SYSTEM:GETchatQueue','eurnorwegianfemale','chatInteractions','userSmsQueue:save','EditInternalAppdialDialogController','apps.fax.realtime','data5','CONTACTMANAGER.NEW_LIST','chat/reports/transfer/:id/clone','Plugin\x20properly\x20saved!','selectedOpenchannelAccountApps','\x27pl\x27','integrations/freshdesk/configurations/:id/subjects','metric','buttonClicked','Are\x20you\x20sure\x20want\x20to\x20restart\x20the\x20plugin\x20attached\x20process?','selectAllChatQueues','iPad','FaxAccount\x20properly\x20deleted!','src/js/modules/main/apps/openchannel/views/realtime/agents/view.html/view.html','openchannelAccounts','cloudProviders','getSelectedVariable','mail/accounts/:id/dispositions','SmsQueue\x20updated!','Australia/Adelaide','getPieChart','voiceQueueReport:update','Medium','createdAt,updatedAt,id,name,type,active,description,icon,sidebar,path,adminUrl,agentUrl,scriptName,scriptPath,version','ChatWebsiteagentaddController','onSaveChatQueue','createOrEditAgent','/voiceRecordings','Urdu\x20(Pakistan)','template@get','whatsapp/accounts/:id/users','app.voice','cancelUpdateCondition','auto','outboundrouteid=','Europe/Monaco','maxDateRange','getTeams','deleteInterval','List\x20properly\x20created','motionbar','\x27--\x27','delete\x20GlobalCustomFields','Tatar','\x27externip\x27','bottom_right','voice/chanspy/:id','remote-audio','getDynamics365Configuration','SYSTEM:DELETEpause','intZohoField','createdAt,updatedAt,id,name,description','app.toolbar','ms-navigation-horizontal','getVoiceQueuesPreview','Dynamics365Account\x20properly\x20tested','One\x20Time','TriggersController','WhatsappAccountActionsController','SYSTEM:GETTAGS','api.template.delete','Oromo','America/Edmonton','/trunks','/license','inboundrouteApp','Agent\x20properly\x20saved!','Whatsapp\x20Account','templates','autoStart','Delete\x20condition','isAfter','selectedOutboundRoutes','UserProfilePermissionsController','chat/websites/:id/logo','createOrEditVtigerConfiguration','resetForm','Norwegian\x20(Nynorsk)','deselectContexts','Fax\x20Account','ar-PS','simple','api.disposition.delete','delete\x20Voicemails','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?','years','openchannel/reports/transfer/describe','unmute','accesskeyid','whatsapp/reports/transfer/:id/clone','exportSelectedSquareRecordings','SugarcrmAccount\x20properly\x20tested','app.openchannel','data','loggedIn','clonedialog','\x20selected
','preview','newOutboundRoute','deleteTrigger','America/Mazatlan','apps.motiondialer.ivrCampaigns','saveVoiceRecording','Thumb','\x2718\x27','Pacific/Nauru','msFormWizard','level','smsQueue:remove','mailPause','MainController\x20as\x20vm','icon-message-text','app.staff','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.','chatWebsites','createMediaStreamDestination','app.tools.cannedAnswers','unknown\x20device','selectedZohoConfiguration','/voicePrefixes','\x27us-west-2\x27','LoginController','The\x20outboundroute\x20will\x20be\x20deleted.','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20variables?','selectedSmsAccounts','motion.selectedTheme','LIST:GETCustomFields','-01:00','chat/websites/:id/applications','integrations/dynamics365/configurations/:id/clone','onInteractionOpen','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20salesforceConfiguration?','CONTACT\x20NOT\x20AVAILABLE','addLists','deletedAt','TOOLS.EDIT_INTERVAL','fax/reports/transfer/describe','delete\x20hopperBlack','Afrikaans','icon-whatsapp','intSalesforceConfiguration','series','ENDS_WITH','TOOLBAR.SOMEONE_LOGGED_YOU_OUT','pickerModel','Gmail','SugarcrmAccounts','FaxQueueagentaddController','ticketType','AgentHomeOpenchannelController','schedules/:id/clone','completed','pauses','STAFF.SELECTED_QUEUES_','voiceQueuesSelected','Norwegian\x20(Norway)','getOpenchannelAccountOpenchannelCannedAnswers','Report\x20properly\x20run!','newSugarcrmAccount','feb','Variable\x20properly\x20created','src/js/modules/main/apps/sms/views/smsQueues/edit/agentadd/agentadd.html/agentadd.html','addNewGlobalCustomField','option','whatsappAccountApp','\x20has\x20been\x20deleted!','interactionid','Jscripty\x20Sessions','src/js/modules/main/apps/fax/views/faxQueues/faxQueues.html/faxQueues.html','vm_pb','permissionsmanagedialog','voiceStatus','app.analytics.metrics','children_d','gotoOpenchannelQueues','saveOutboundRouteApp','unknown-browser','\x27opus\x27','CHAT.SELECTED_TEAMS','src/js/modules/main/apps/integrations/views/zohoAccounts/edit/item/dialog.html/dialog.html','Hong\x20Kong\x20Cantonese\x20Female','exportSelectedNetworks','square/details/reports/describe','Chinese\x20(Simplified)','cm/contacts/:id/hoppers','src/js/modules/main/apps/fax/views/faxQueues/create/dialog.html/dialog.html','selectedQueueCampaignHoppers','office2013','app.integrations.dynamics365Accounts','OpenchannelQueue\x20properly\x20created','te-IN','faxStatus','DASHBOARDS.SELECT_CAMPAIGN','Which\x20number\x20do\x20you\x20want\x20transfer\x20the\x20call\x20to?','vm.voiceQueue.joinempty.length\x20===\x201\x20\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27no\x27','SYSTEM:DELETECONFIGURATIONFIELD','RecordDialogController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20templates?','This\x20Week','cdr','delete\x20MailSubstatuss','cmCustomField','queues','newFreshsalesConfiguration','ml-IN','integrations/freshsales/accounts/describe','saveDraft','CloudProvidersController','msApi::requestStart','pluginUpdated','CreateOrEditContactDialogController','ngCsv','api.variable.delete','es-BO','English','notifications/describe','Turkish','QueueCampaignHopperStatisticsController','Dial\x20Report','\x27tr\x27','MusicOnHolds','changePassword','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','vm.queryHopper.filter','data2','Delete\x20ChatQueue','America/Monterrey','icon-account-multiple','ChatWebsites','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/teamadd/teamadd.html/teamadd.html','delete\x20MusicOnHolds','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','toUpperCase','selectAllOpenchannelQueues','xml','copy','app.sms.smsAccounts','SYSTEM:GET_TAGS','customTree','px,','getActiveItem','Spanish\x20(Colombia)','constant','onPause','labels','SYSTEM:GETintZendeskAccount','Error\x20creating\x20company!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20agent?','integrations/freshdesk/configurations/:id','saveAction','ALWAYS','UserProfile\x20properly\x20deleted!','$mdDialog','API:','selectedCompany','globalStatusFilter','style','Openchannel\x20Report\x20Transfer','currentXML','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/custom/dialog.html/dialog.html','protocol','SquareRecording','VoiceRecordingsController\x20as\x20vm','selectAllInternalRoutes','icon-calendar-clock','messageStatuses','Description\x20deleted!','delete\x20Networks','OutboundRoute\x20properly\x20saved!','IvrCampaign\x20properly\x20created','openchannel','home.contacts','whatsappQueue@get','delete\x20smsAccount','SYSTEM:DESCRIBE','Module\x20has\x20been\x20updated!','${EXTEN}','MetricId','Save\x20draft','license@get','TOOLS.VARIABLES','Agent\x20properly\x20created','users/:id/mail_interactions','field','openchannel/applications/:id/clone','TrunksVoiceRealtimeController\x20as\x20vm','requestFailed','api.dashboard.clone','SYSTEM:MERGE_CONTACT','/tools','home.chat','iceCandidateTimeout','getFlatNavigation','Europe/Tallinn','/queues','INTEGRATIONS.EDIT_ZOHOCONFIGURATION','tags','tab','TOOLS.NEW_DASHBOARDITEM','Close\x20Contact','src/js/modules/main/apps/mail/views/mailQueues/edit/agentadd/agentadd.html/agentadd.html','mailInteraction@get','\x270\x27','SYSTEM:DELETEcmCompany','UserSmsAccount','Session\x20saved','/about','addNewFaxAccount','ndassistant_url','openchannelAccount','scrollEl','America/Atikokan','onLogout','initializeRealtimeQueue','Norwegian','recording','Swahili','\x27weeks\x27','Czech\x20(Czech\x20Republic)','SmsQueuesController\x20as\x20vm','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/close/dialog.html/dialog.html','ChatWebsiteController','squareOdbc','selectedMusicOnHolds','getSmsAccountSmsCannedAnswers','InternalRoute\x20properly\x20created','saveZohoConfiguration','EditChatWebsiteAppcloseDialogController','mail/interactions/:id/tags','default','api.whatsappQueue.save','SETTINGS.NEW_NETWORK','-09:30','columnName','isDateBeforeToday','UserVoiceDashboardDialerController\x20as\x20vm','handleMouseenter','src/js/modules/main/apps/tools/views/sounds/upload/dialog.html/dialog.html','src/js/modules/main/apps/sms/views/smsQueues/create/dialog.html/dialog.html','DASHBOARDS.NOT_ASSIGNED','arrayrandom_periodic_announce','faxCurrentCapacity','Tag\x20name','showIncompleteSubmitButton','app.callysquare.squareRecordings','DialogController','api.whatsappQueue.delete','WebsiteAlias','arrayagentIdentifier','deleteMailQueuesWaitingInteractions','api.schedule.save','Scots\x20Gaelic','isBoolean','Romansh','flippable','Sinhalese','si-LK','VoiceRecordingSentimentStatisticsController','isEstablished','Tajik','src/js/modules/main/apps/voice/views/realtime/queue_calls/view.html/view.html','images','addNewTemplate','searchTerm','showOnPageHidden','Attachments','deleteAllCondition','getCampaigns','user.name','screenRecording@get','INTEGRATIONS.EDIT_ZENDESKACCOUNT','chat/queues/:id/teams','isInProgress','\x27/var/opt/motion2/server/files/sounds/converted/{{sound.save_name}}\x27','arrayvideosupport','\x27mail_messages\x27','passwordPattern','gotoDeskAccounts','America/Fort_Nelson','selectedFreshdeskAccounts','openchannel/interactions/describe','Europe/Zurich','America/Port-au-Prince','\x27report_chat_transfer\x27','deleteMusicOnHoldMohSound','full','outgoing','formatter','pm2@get','getTriggerAllConditions','Russell\x20(English,\x20Austrialian,\x20Male)','Time','deleteSelectedChatWebsiteOfflineMessages','whatsapp/reports/queue/:id/clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceQueues?','msScroll','analytics','delete\x20SmsAccounts','import','ringing','api.openchannelAccount.delete','soundPlayer','plugin:remove','selectAllTeams','ceil','smsQueue:save','TCL:\x20\x20path','openFromEditor','SYSTEM:DELETEvoicePrefix','rpcAgents','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20metrics?','timeoutId','Delete\x20disposition','System','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20vtigerConfiguration?','mail/accounts/:id/users','deleteSelectedChatWebsiteProactiveActions','phoneBarRemoteControlPort','\x27o\x27','selectedTriggers','webrtc::logout','CreateOrEditOpenchannelAccountDialogController','getVtigerAccounts','showChatInteraction','Desk','faxInteractions','aws_secret_access_key','addNewOpenchannelQueue','/freshdeskAccounts','FreshdeskAccount\x20properly\x20saved!','AboutController','InboundRoute\x20properly\x20saved!','openchannel/accounts/:id/notify','horizontal','onSaveFaxQueue','Century\x20Gothic,Futura,Didact\x20Gothic,san-serif','newWhatsappAccount','cloudProviders/describe','src/js/modules/main/apps/contactmanager/views/lists/edit/view.html/view.html','Hindi\x20(India)','showLastMessage','NONE','saveVtigerConfiguration','settings/:id/preferred','D\x20MMM\x20YYYY','rpcVoiceQueuesChannelsTmp','Predictive','IvrCampaign\x20updated!','disableGetContact','MIN','SmsAccountController\x20as\x20vm','\x27ru\x27','CONTACTMANAGER.ERRORS.PHONEBAR_API','queryHistory.filter','selectAllSalesforceAccounts','\x27linear\x27','Gwineth','omit','#main','api.intSalesforceConfiguration.save','integrations/freshdesk/configurations/:id/clone','app.settings.smtps','spyopenchannelInteraction','SmsQueuesController','\x20has\x20been\x20saved!','exportSelectedLists','LoginController\x20as\x20vm','Bulgarian','selectAllMetrics','Would\x20you\x20like\x20to\x20delete\x20','SugarcrmAccount\x20properly\x20created','app.jscripty','equals','QueuesFaxRealtimeController','Users','Italian\x20(Italy)','getJscriptyProjects','channel','grey-fg\x20icon-minus-circle','DASHBOARDS.NEW_CONTACT','api.jscriptyProject.delete','VOICE.EDIT_MOHSOUND','currentStepInvalid','selectAllAiTools','integrations/desk/fields/:id/clone','{{millis}}','secToTime','smsInteraction:save','gotoMailQueues','WHATSAPP.WHATSAPPACCOUNTS','exportSelectedMailAccounts','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/queue/dialog.html/dialog.html','contrast1','Restored\x20Contact','Maja\x20(Polish,\x20Female)','chatOfflineMessage@get','smsAccountApps','WEBSITES','chatWebsiteProactiveActions','getResponseSheet','delete\x20fields','showConfirm','deleteDeskConfiguration','voiceMails','Asia/Irkutsk','CreateOrEditListDialogController','deselectMailSubstatuses','Ruben','sms/queues/describe','extend','createOrEditWidget','The\x20contact\x20will\x20be\x20deleted.','\x27report_jscripty_answers\x27','start3WayConf','getProjectSessions','America/Iqaluit','properties','INTEGRATIONS.NEW_FRESHSALESACCOUNT','deleteOpenchannelQueue','America/Chihuahua','sumBillable','message','src/js/modules/core/directives/ms-info-bar/ms-info-bar.html/ms-info-bar.html','Field\x20deleted!','msUtils','CreateOrEditFreshsalesConfigurationDialogController','Notification','ZendeskAccountsController\x20as\x20vm','delete\x20metric','\x2717\x27','pt\x22>','checkPause','variables/:id','voiceQueues','QueuesVoiceRealtimeController\x20as\x20vm','Lists\x20association\x20has\x20been\x20updated!','survey','getPreview','analyticFieldReport@get','src/js/modules/main/apps/tools/views/customDashboards/partialViews/reports/treeReports.html/treeReports.html','OpenchannelAccountController','bodyEl','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20userProfiles?','src/js/modules/main/apps/settings/views/generals/generals.html/generals.html','asc','queryHopper','startOf','init','AiTools','src/js/modules/main/apps/analytics/views/reports/preview/dialog.html/dialog.html','DropRate','uniqBy','CreateOrEditMetricDialogController','deselectLists','first','removeAgents','currentPage','dayOfWeekTo','Restored\x20Contacts','trunk.name','src/js/modules/main/apps/tools/views/dispositions/create/dialog.html/dialog.html','post','intZohoAccount@get','0.87','Firefox','JSCRIPTY.NO','SYSTEM:GETlists','src/js/modules/main/apps/tools/views/customDashboards/edit/clone/clone.html/clone.html','\x27always\x27','integrations/zoho/accounts/:id/fields','interactionsgoto','id,name,role','selectedOperator','down','cloudProvider@get','\x27localnet\x27','openchannelMessage:save','integrations/servicenow/fields/:id','motNotification','motion-paleblue','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20deskConfiguration?','Custom','icon-text-to-speech','The\x20deskConfiguration\x20will\x20be\x20deleted.','speakerMute','Voicemail','usspanishfemale','delete\x20musiconhold','dialer','SYSTEM:DELETEintSalesforceAccount','MailQueueagentaddController','LIKE','apr','UserProfileController\x20as\x20vm','dispose','onStart','class','getChannelByItem','saveSmsAccount','Canadian\x20English\x20Female','deleteChatQueue','userOpenchannelQueue:save','userFaxQueue:remove','mail/accounts/:id/out_servers','odbc','voice/recordings/:id/download','api.cmList.update','SMS.NEW_SMSCANNEDANSWER','id,name,interval,IntervalId','InboundRoute\x20updated!','whatsapp/accounts/describe','Welsh','downloadfile','mozNotification','MOTIONDIALER.EDIT_IVRCAMPAIGN','Context\x20properly\x20saved!','getTelephones','phoneBarEnableRecording','The\x20','src/js/modules/main/apps/tools/views/intervals/create/dialog.html/dialog.html','Asia/Karachi','sessionId\x20required','MarketplacePluginsController\x20as\x20vm','exportSelectedMailAccountInteractions','VtigerAccount\x20properly\x20saved!','app.header','getOpenchannelAccountApps','chat/interactions/:id/download','api.intFreshdeskConfiguration.update','INTEGRATIONS.EDIT_SUGARCRMCONFIGURATION','/api/chat/websites/:id/logo','onTransferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','DASHBOARDS.MARCH','createOrEditZendeskConfiguration','isStepOptional','createOrEditVariable','whatsappCapacity','integrations/salesforce/fields/:id/clone','deleteSelectedMusicOnHoldMohSounds','src/js/modules/main/apps/analytics/views/metrics/create/dialog.html/dialog.html','VoiceQueueagentaddController','delete\x20proactive','src/js/modules/main/apps/openchannel/views/openchannelAccounts/create/dialog.html/dialog.html','\x22\x20err:','registerMainForm','Progressive','deleteSalesforceAccount','cm/hopper/describe','selectedQueueCampaignHopperHistories','applications','mail/interactions/:id/clone','firstName,lastName,mobile','TagId','Africa/Khartoum','selectAllFreshsalesAccounts','app.staff.telephones','Delete\x20CloudProvider','conditions/:id','Upload\x20completed','api.fax.account','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/agentadd/agentadd.html/agentadd.html','SETTINGS.EDIT_GENERAL','saveIvrCampaign','promise','integrations/vtiger/accounts/:id/fields','msMasonry:relayout','delete\x20cannedAnswer','pages','reportRoute','voiceAccounts','DASHBOARDS.RECALLME','INTEGRATIONS.NEW_DESKCONFIGURATION','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20contact?','user_has_fax_interactions:remove','api.intSugarcrmConfiguration.delete','\x27paused\x27','\x27ko\x27','EditInboundAppexternaldialDialogController','FaxQueue\x20properly\x20saved!','-copy','showDialpad','showMenu','mailStatusTime','telephone:save','ms-MY','src/js/modules/main/apps/openchannel/views/realtime/queues/view.html/view.html','rpcTelephones','amazonlex','voice/prefixes/describe','hopperBlack\x20#','English\x20(Australian)','Korean','ChatWebsitesController','remotePlayerId','uriLocation','Tamil\x20(Sri\x20Lanka)','toJSON','PALETTES','exportSelectedTeams','integrations/zendesk/accounts/describe','duplicatedRows','MailQueueId','motion.language','app.sms.smsQueues.edit','api.intZohoConfiguration.delete','alias','lastMessageAt','channelStatus','api.intDeskAccount.delete','apikeymanagerdialog','ProjectController','src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/tag/dialog.html/dialog.html','voiceExtension','scrollHeight','app.chat.realtime','{color}|*','api.mailSubstatus.update','motion2.home.contacts:','The\x20hopper\x20will\x20be\x20deleted.','openchannelQueuesTotal','app.staff.userProfiles','bottom-right','/chatQueues','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20inboundroutes?','FORGOTPASSWORD.LINK_SENT','saveQueues','deleteSelectedContexts','delete\x20subject','defaultEntry','TeamagentaddController','CreateOrEditSoundDialogController','getTemplates','voice/mails/messages/:id','onClickTab','ODBC','MotionDialer','STAFF.NEW_USER','CreateOrEditDeskAccountDialogController','PausesController\x20as\x20vm','onSaveMailInteraction','amd','catch','getConditions','WhatsappAccountDispositionsController','UNIX_TIMESTAMP\x20(','Start','\x20-\x20','addClass','MMM\x20d,\x20y\x20h:mm\x20a','ckEditorInstance','European\x20Turkish\x20Female','eurportuguesefemale','createdAt,updatedAt,id,name,table,metric,description','getCompanies','selectedDynamics365Accounts','selectedVoiceQueues','jscripty/projects/:id/summary','faxMessage:update','The\x20customization\x20will\x20be\x20deleted.','bot','MsShortcutsController\x20as\x20MsShortcuts','error-404','smsCapacity','importReport','/contacts?ListId&CompanyId','newDisposition','section','onInteractionClose','CONTACTMANAGER.SELECTED_AGENTS','params','src/js/modules/main/apps/staff/views/agents/agents.html/agents.html','Widget\x20deleted!','setUserStatus','pieChart','.eml','isValidCondition','intZendeskAccount@get','showOfflineMessageChatWebsiteOfflineMessage','trunk:save','selectedDisposition','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/view.html/view.html','MohSound\x20properly\x20saved!','CreateOrEditTrunkDialogController','api.project.delete','isDefined','TOOLBAR.PORTUGUESE','deleteSelectedProjectSessions','ilbc','SalesforceAccount\x20properly\x20saved!','es-CR','chat/websites/:id/offline_messages','outbounddial','voice/mails/describe','ngFlowOptions','Kimberly','singular','Unable\x20to\x20create\x20session!','Error404Controller\x20as\x20vm','app.motiondialer.realtime.queues','preproduction','delete\x20node','AdvancedSearchController','SMS\x20Messages','searchReport','cm/hopper_final/voice/queue/moveContacts/:id','Europe/Tirane','contactInfo','Karl\x20(Icelandic,\x20Male)','refreshAbandonedCalls','lastMessage','delete\x20list','onReadyEditor','Fields\x20has\x20been\x20saved!','sseconds','delete\x20freshdeskConfiguration','msMaterialColorPickerController','app.staff.agents.edit','vtiger','getAllConditions','Asia/Kuching','msMasonry','getHoppers','src/js/modules/main/apps/mail/views/realtime/agents/view.html/view.html','DisposeCallDialogController','inboundrouteApps','deselectSmsQueues','-03:00','INTEGRATIONS.EDIT_FRESHSALESACCOUNT','WebRTC','deselectWhatsappQueues','ANALYTICS.EXTRACTEDREPORTS','MOTIONDIALER.SELECTED_AGENTS','blue-grey-A200-fg','delete\x20hopperFinals','src/js/modules/core/directives/ms-phonebar/record/dialog.html/dialog.html','QueueParamsVoiceRealtimeController','European\x20Norwegian\x20Female','DashboardItem\x20properly\x20deleted!','zh-CN','JSCRIPTY.ALL_SURVEY_DATA_WILL_BE_LOST','src/js/modules/main/apps/settings/views/system/system.html/system.html','getMonthNumber','zu-ZA','onaddstream','close_all','CreateOrEditUserProfileDialogController','Fields\x20has\x20been\x20copied!','User\x20properly\x20created','SYSTEM:GETsmsAccount','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mailCannedAnswer?','voiceQueueReport:save','IvrCampaignHopperHistoriesController','newCustomField','elements','ChatInteractionId','newZohoAccount','src/js/modules/main/apps/sms/views/smsAccounts/smsAccounts.html/smsAccounts.html','api.intDeskAccount.save','analyticTreeReport@get','src/js/modules/main/apps/tools/views/customDashboards/customDashboards.html/customDashboards.html','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/goto/dialog.html/dialog.html','tail','CreateOrEditOpenchannelCannedAnswerDialogController','htmlToPlaintext','controlsList','value','INTEGRATIONS.SUGARCRMACCOUNTS','\x27tls\x27','src/js/modules/core/dialogs/advanced-search/dialog.html/dialog.html','arrayhost','integrations','firstName','Error\x20retrieving\x20user\x20profile\x20permissions','VtigerAccounts','hopperHistory\x20#','saveFaxQueue','found','$eq','mail/accounts/:id/interactions','integrations/sugarcrm/configurations/:id/clone','delete\x20voiceRecording','createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','onSelectListSuccess','selectAllZohoAccounts','newCannedAnswer','queueMethod','/cannedAnswers','opts','You\x20can\x27t\x20remove\x20service\x20account','SMS.EDIT_','integrations/zendesk/fields/describe','Arabic\x20(State\x20of\x20Palestine)','duration','cloneTrunk','chat/websites/:id/snippet','Windows','$apply','Maxim','startTimeAttr','pid\x20is\x20unknown','importXML','sms/accounts/:id/status','startPredictive','onLogin','SalesforceAccount\x20properly\x20created','string','api.action.save','app.jscripty.projects','Start\x20Date','ur-PK','FaxAccountagentaddController','/jscripty','unix','angular.filter','$parent','api.trigger.delete','#5c616f','http://127.0.0.1:','src/js/modules/main/apps/integrations/views/salesforceAccounts/create/dialog.html/dialog.html','integrations/vtiger/configurations/:id/clone','onUnhold\x20->\x20session,\x20data','English\x20(New\x20Zealand)','$translateProvider','createOrEditUser','removeItems','src/js/modules/main/apps/callysquare/views/projects/edit/saveAs/saveAs.html/saveAs.html','whatsappCurrentCapacity','Europe/Vienna','Inbound','isPartialPause','Subject\x20has\x20been\x20deleted!','EditChatWebsiteAppqueueDialogController','showNotification','Message:save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxQueues?','chatProactiveAction\x20#','createOrEditMailQueue','TOOLBAR.DUTCH','attachments/:id/clone','toolbar','api.team.update','arrayinsecure','smsInteraction','parseCrudPermissions','firstName,lastName,email','FaxAccountsRealtimeController','analytics/field_reports/describe','contrast2','ROUND\x20(','chat/websites/describe','exportSelectedSalesforceAccounts','API\x20accept\x20message\x20not\x20found:\x20','allConditions','context','SYSTEM:GETintSalesforceAccount','delete\x20mohSound','Authorization\x20error','deleteDashboardItem','composeSmsInteraction','chat/queues/:id/users','INTEGRATIONS.NEW_ZOHOCONFIGURATION','loadLastMessage','webbar:transfer','selectAllContacts','MAIL.NEW_MAILSUBSTATUS','editWhatsappAccountApp','CreateOrEditFreshdeskAccountDialogController','telephoneForm','cmContact@getHopperFinals','createMediaStreamSource','selectedQueueCampaignHopperFinals','addNewServicenowConfiguration','agi','salesforce','outboundDropCallsDayTimeout','exportSelectedProjects','globalDispositions','AgentHomeDashboardMultiChannelChatController','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/queue/dialog.html/dialog.html','gotoSmsQueues','USERPROFILE:GETRESOURCES(',':id','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailCannedAnswers?','attrReport','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27strict\x27','alwaysWatchTheme','MarketplacePluginsController','hasBlackLists','America/Argentina/Salta','getFaxAccounts','hasSpeakers','sessions','api.intZendeskAccount.delete','TelephonesController','interval\x20#','dialQueueProject','createdAt,updatedAt,id,name,service,data2,data1','contactManager','analytics/extracted_reports/:id/download','gotoInboundRoutes','VOICE.EDIT_INBOUNDROUTE','VOICE.NEW_INBOUNDROUTE','sms/interactions/:id/clone','turn','MusicOnHoldsController','then','Hotmail','src/js/modules/main/apps/tools/views/pauses/create/dialog.html/dialog.html','saveTemplate','rpc/trunks','flipWidget','api.squareRecording.update','use','toggleAll','clearConditions','smsAccountSmsCannedAnswers','mail/messages/:id','ms-info-bar-active','callerID','toISOString','addNewMailQueue','Metric\x20properly\x20created','round','src/js/modules/main/apps/tools/views/tags/tags.html/tags.html','File\x20name','msMasonryItem:startReLayout','selectedSugarcrmConfiguration','Not\x20defined','SmsAccountId','chat.chatWebsites','$and','app.contactmanager.lists.edit','operator','selectedNetworks','smsCannedAnswers','getAnswers','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20reports?','license/describe','voiceChanSpy@get','api.campaign.delete','AgentsController\x20as\x20vm','setActiveItem','xmd-cdrtype','','Hans','SMS.ALL_AGENTS','attrSerie','ANALYTICS.REMOVE','expanded','Tatyana\x20(Russian,\x20Female)','ContactManager','api.team.delete','timer-stopped','delete\x20screenRecordings','downloadfile2','pause_id','user@get','startingAllowedItems','icon-account-circle','Pauses','xlsx','AGI','api.voiceChanSpy.update','SYSTEM:DELETEjscriptyProject','msDialogRecording','gotoCustomDashboards','startingSelectedItems','src/js/modules/main/apps/video/views/screenRecordings/partialViews/play.html/play.html','msSplashScreen::remove','rpcTrunks','CustomizationsController','Filiz\x20(Turkish,\x20Female)','Miguel','Delete\x20MailAccount','Priority','apps.dashboards.custom_','CreateOrEditCannedAnswerDialogController','icon-auto-fix','rpc@getFaxQueues','src/js/modules/core/directives/ms-material-color-picker/ms-material-color-picker.html/ms-material-color-picker.html','CannedAnswersController','statusText','SYSTEM:GETvoiceRecording','newZendeskConfiguration','Asia\x20Pacific\x20(Sydney)','createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','trunks/describe','chat/messages/:id/reject','$stateProvider','SYSTEM:GETCONFIGURATION','api.cmHopper.delete','FreshsalesAccount\x20properly\x20tested','Pacific/Port_Moresby','app/main/apps/dashboards','loadingProgress','app.chat.realtime.queues','id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','propertiesDefault','External','ar-EG','/projects','initDeviceInProgress','Conversation\x20Update','vm.selectedCompany','isLastStep','selectedPauses','integrations/zoho/accounts/:id/configurations','getScrollEl','openedAt','#pageTitle','sms/interactions/:id/download','ruri','fileSuccess','empty','api.cloudProvider.save','INTEGRATIONS.NEW_VTIGERACCOUNT','joins','forIn','createOrEditTemplate','apps.mail','handleResultClick','whatsappPause','src/js/modules/main/apps/tools/views/triggers/edit/actions/create/dialog.html/dialog.html','#2196f3','queryMessage','DASHBOARDS.THU','\x2741\x27','getActiveTheme','reply','rpcCalls','DispositionsController','Context\x20properly\x20deleted!','selectedIvrCampaignHopperHistories','/screenRecordings','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/autoreply/dialog.html/dialog.html','interface','Jan\x20(Polish,\x20Male)','lime-A700-fg','Context','^msWidget','ivrCampaignHopperFinals','ServicenowAccountController','faxInteraction:update','emit','online','Campaigns','Agent','\x272400\x27','dark','predictiveIntervalAvailable','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/interval/dialog.html/dialog.html','SMS\x20Account','FAX.NEW_FAXQUEUE','desc','SMS.EDIT_SMSACCOUNT','valueReplacer','Error\x20creating\x20notification\x20for\x20incoming\x20call','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/amazonlex/dialog.html/dialog.html','msNavigation::clearActive','api.variable.save','Maori','project.name','app/main/apps/integrations','Auth','src/js/modules/main/apps/callysquare/views/projects/projects.html/projects.html','userProfileForm','MsWidgetEngineController','chat/internal/messages/describe','50\x20100\x20200\x20A100','newTemplate','smsAccountInteractions','transferCallback','dashboards/:id/items','STAFF.NEW_TELEPHONE','Beepall','integrations/servicenow/accounts/:id/configurations','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20item?','unshift','id,name,dialActive','UserProfile\x20properly\x20created','uninstallplugin','deleteTriggerAnyCondition','Userchange_avatarController','onSaveMember','pauses/describe','apps.integrations.deskAccounts','provider','\x27agent_alias\x27','deleteSelectedMailAccountMailCannedAnswers','Edit\x20Report\x20Field','src/js/modules/core/directives/ms-click-to-call/ms-click-to-call.html/ms-click-to-call.html','MxGraphUpdateInfoController','Util','America/Cambridge_Bay','api.plugin.update','us-west-2','addNewMailCannedAnswer','addEventListener','Asia/Riyadh','$formatters','api.chatAccounts.account','stateRegistry','MsNavigationController\x20as\x20vm','Swedish\x20Female','newList','newSound','MAIL.ALL_AGENTS','openchannelStatusTime','ACCOUNTS','extractedReports','FaxAccountsController','whatsapp/queues/:id/teams','angucomplete-alt:changeInput','getSmsAccountApps','usersMap','onSaveSmsInteraction','queueAdd','RunReportDialogController','analyticCustomReport','loginOauth','#9ab8e5','id,name,IntervalId','InboundRoutesController','collapsed','intServicenowAccount','IvrCampaigncloneController','chat/groups/:id/clone','textContent','Vietnamese\x20(Vietnam)','chat/applications/:id','api.agent.changePassword','\x27custom\x27','MAILACCOUNT:SEND','getDaysOfWeek','cmn-Hans-HK','optionalStep','ReportFieldsController','CopyReportDialogController','voicePrefixagentaddController','monthDayFrom','collapse-animation','app/core/directives/ms-phonebar/sounds/outgoing-call.ogg','MsWidgetEngineCounterController','disposition@get','Companies','Quechua','addNewPlugin','Mads','statusClass','$templateFactory','ensureSelectedResultIsVisible','exportSelectedPlugins','SYSTEM:DELETEvoiceQueue','.json','getMessages','Chat\x20Interaction','src/js/modules/main/apps/sms/views/smsQueues/smsQueues.html/smsQueues.html','SYSTEM:GETwhatsappAccount','agentcalledAt','ms-navigation-folded-open','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27penalty\x27','id,name,color','authenticate','createdAt,updatedAt,id,Contact.firstName','api.staff.save','callysquare','users/:id/whatsapp_accounts','setFoldedOpen','selectAllIvrCampaigns','Voice','DASHBOARDS.NO_DISPOSITION_SET','Trunks','.ms-nav-button','Datetime','Connectel','sessionsgoto','exportSelectedWhatsappQueues','MsFormWizardController','Unable\x20to\x20init\x20media\x20devices','app.voice.realtime.telephones','user_has_mail_interactions:remove','TOOLBAR.ITALIAN','api.intZendeskConfiguration.save','app.voice.realtime.queue_calls','MALE','Sounds','ClientEmail','/metrics','editedat','contactmanager','hasSectionPermissions','integrations/desk/configurations/:id/descriptions','UserProfiles','deleteSquareRecording','src/js/modules/main/apps/tools/views/schedules/schedules.html/schedules.html','CreateOrEditServicenowConfigurationDialogController','MailQueue\x20properly\x20saved!','MsShortcuts.query','selectedSalesforceConfiguration','selectedTemplateName','deleteUser','daysS','mozHidden','Waiting...','createdAt,updatedAt,id,name,description,dialPrefix','\x27number\x27','INTEGRATIONS.NEW_FRESHDESKCONFIGURATION','salesforceAccounts','src/js/modules/main/apps/contactmanager/views/contacts/create/dialog.html/dialog.html','TOOLS.NEW_INTERVAL','X-Answer-Mode','delete\x20Agents','CreateOrEditvoicePrefixDialogController','Delete\x20Company','AgentHomeAbandonedVoiceController','exportSelectedScreenRecordings','EditChatWebsiteAppamazonlexDialogController','\x27us-east-1\x27','anySecondLevelDisposition','pickerModels','MOTIONDIALER.REALTIME','vm.queryFinal.filter','UserFaxQueue','editChatWebsiteApp','Spanish\x20(United\x20States)','mail.mailAccounts','action','vm.selectedList','Asia/Aqtau','Amharic','contactName','Delete\x20triggers','angular-toasty','listadddialog','\x27fr\x27','The\x20chatCannedAnswer\x20will\x20be\x20deleted.','+02:00','newvoicePrefix','Fax\x20','/deskAccounts','Notification\x20creating\x20error','outboundroute','src/js/modules/main/apps/tools/views/intervals/intervals.html/intervals.html','msNavigationNode','deleteQueueCampaignHopperBlack','limit','VOICE.VOICEMAILS','plugin@get','The\x20chatWebsite\x20will\x20be\x20deleted.','The\x20zohoConfiguration\x20will\x20be\x20deleted.','$in','MxGraphSaveProjectAsController','Settings','integrations/freshdesk/fields/:id/clone','api.cmCompany.delete','STAFF.EDIT_USER','CreateOrEditWhatsappCannedAnswerDialogController','\x27months\x27','delete\x20contact','isSearchBarVisible','chatQueuesTotal','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotoif/dialog.html/dialog.html','DEFAULT\x20PAUSE','Chinese\x20(China)','/api/chat/websites/','MailAccountagentaddController','api.dashboardItem.save','deleteExtractedReport','NotFoundError','networks/describe','chat/offline_messages/describe','getAiTools','European\x20Czech\x20Female','Image\x20is\x20loaded','api.smsAccount.delete','CreateOrEditDynamics365AccountDialogController','src/js/modules/main/apps/jscripty/views/projects/projects.html/projects.html','+13:45','saveChatCannedAnswer','CreateOrEditSalesforceConfigurationDialogController','required','Africa/Accra','selectedItem','openMailDraft','Networks','originateHook\x20->\x20payload','integrations/dynamics365/accounts/:id/fields','The\x20project\x20cannot\x20be\x20started','app.integrations.sugarcrmAccounts.edit','Persian\x20(Iran)','AmazonAWS','OpenchannelAccountId','SYSTEM:GETsmsAccounts','light-blue','The\x20ivrCampaign\x20will\x20be\x20deleted.','plugins','setHours','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotop/dialog.html/dialog.html','abandonRate','Openchannel\x20Interaction','WhatsappQueue\x20properly\x20deleted!','createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','SYSTEM:GETintDeskAccount','newTrigger','tr-TR','fax/accounts/:id/interactions','addNewItem','unhold\x20->\x20session','app.chat.chatWebsites','selectedTriggerAllConditions','currentUser','rrmemory','voice/extensions/:id/clone','SYSTEM:DELETEuser','config','Europe/Kiev','exportSelectedMailSubstatuses','apiResolver.resolve\x20requires\x20correct\x20action\x20parameter\x20(ResourceName@methodName)','HANGUPCAUSE_18','/pauses','uploadError','/:id','CDR(type)=internal','OmniWeb','MsTimelineController','English\x20(Great\x20Britain)','invoke','Email\x20Interaction','CreateOrEditChatProactiveActionDialogController','$window','$eval','Message\x20has\x20been\x20accepted!','userMailQueue:save','CONTACTMANAGER.EDIT_LIST','integrationTab','gotoContacts','Start\x20Video\x20Call','SYSTEM:UPDATEVOICECALLREPORT','*pause','CreateOrEditscreenRecordingDialogController','cdr/:id','saveZendeskAccount','app.reset','$mdToast','mwFormUtils','campaigns/:id/blacklists','SYSTEM:DELETEvoiceMusicOnHold','closeFolded','app.voice.realtime.agents','The\x20odbc\x20will\x20be\x20deleted.','label','addNewFreshsalesConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20project?','Korean\x20(South\x20Korea)','VOICE.EDIT_VOICERECORDING','saveMusicOnHold','SYSTEM:UPDATEcontact','\x27friend\x27','onChangeEnableAllResources','Error\x20creating\x20tag!','Minutes','onUpdateVoiceQueue','deselectFaxAccounts','\x27rrmemory\x27','FaxQueuesController\x20as\x20vm','arraysetqueueentryvar','InboundRoute\x20properly\x20created','apps.mail.mailAccounts','html','$http','sms_queue_waiting_interaction:save','createdAt,updatedAt,id,service,name,email,Smtp.service,Smtp.host,Smtp.port,Smtp.secure,Smtp.authentication,Smtp.user,Smtp.pass,description','getRemoteStreams','webrtc::settings','motion2.home.mail:','voice/queues/:id/users','dateFilterLocalizationFactory','timeRangeFrom','EditWhatsappAccountAppgotopDialogController','userProfile/resources/:id','Pacific/Auckland','ZendeskConfiguration\x20properly\x20created','America/Guyana','OPENCHANNEL.ALL_AGENTS','createdAt,updatedAt,id,save_name,converted_format,name,audio,description','api.team.save','VOICE.VOICEPREFIXES','Asia/Rangoon','secondLevel','trunks','EditChatWebsiteAppagentDialogController','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/listadd/listadd.html/listadd.html','Incoming','Customer\x20Ip','disableMdInkRippleOnMobile','src/js/modules/main/apps/voice/views/musiconholds/edit/view.html/view.html','newWhatsappQueue','EditOpenchannelAccountAppintervalDialogController','ChatWebsite\x20properly\x20deleted!','selected','EditMailAccountAppgotopDialogController','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27wrapup\x27','chatMessage:save','selectedODBC','src/js/modules/main/apps/dashboards/views/general/agent/agent.general.html/agent.general.html','EditMailAccountAppautoreplyDialogController','$invalid','apps.tools.pauses','selectedPlugins','createdAt,updatedAt,id,name,interval','reload','excludeFrom','MxGraphDialogController','CreateOrEditSalesforceAccountDialogController','api.analyticReport.delete','freshsalesAccounts','zendesk','src/js/modules/main/apps/integrations/views/freshsalesAccounts/create/dialog.html/dialog.html','addNewSchedule','SmsAccountInteractionsController','voice/mohs/:id/sounds/:id2','bg-BG','snakeCase','erlangAbandonmentRate','opera','Delete\x20ZendeskConfiguration','forward','delete\x20ZohoAccounts','$animate','src/js/modules/core/directives/ms-phonebar/settings/settings.html/settings.html','newInternalRoute','Projects','Spanish\x20(El\x20Salvador)','delete\x20CustomDashboards','rpc/openchannel/queues/:id/notify','PrefixDialogController','+05:30','createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','hostname','deselectTeams','cdr/describe','getVoiceCalls','MusicOnHoldMohSoundsController','deleteMailSubstatus','selectedQueueCampaigns','onNewRTCSession\x20->\x20vm_pb.sessions','typeWrapper','Network\x20properly\x20created','SYSTEM:GET_','chatQueue@get','isStepNumberValid','Tamil\x20(India)','Spanish\x20(Guatemala)','STAFF.NEW_AGENT','Announce_Overrides','getIntervals','autoClose','jscripty/answers/reports/describe','FaxQueues','Arabic\x20(Oman)','nameField','User\x20updated!','integrations/zendesk/accounts/:id/fields','zohoAccount','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeSms/dialog.html/dialog.html','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','ms-navigation-horizontal-node','stopInterval','deleteFreshdeskAccount','arraypriority','https','Pacific/Honolulu','Canada\x20(Central)','color','deleteConfirm','jabraSession','deleteSelectedAgents','MOTIONDIALER.SELECTED_TEAMS','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20plugins?','VoiceRecordingController\x20as\x20vm','selectedMailAccountMailCannedAnswers','ParentId','browserName','COUNT','descriptions','CreateOrEditMohSoundDialogController','apps.voice.voicePrefixes','back','initializeRealtimeCampaign','CreateOrEditScheduleDialogController','timelineOptions','/api/auth/','+05:45','+00:00','autoSelectOperator','integrations/dynamics365/fields/describe','analyticFieldReport','vm.password','ChatWebsiteProactiveActionsController','display_name','onFailed\x20->\x20session,\x20data','layoutModes','Fully\x20Enabled','SYSTEM:GETsmsQueue','src/js/modules/main/apps/fax/views/realtime/trunks/view.html/view.html','QueueParamsMotionDialerRealtimeController\x20as\x20vm','ServicenowAccountConfigurationsController','installing','addNewCloudProvider','$endsWith','selectedDynamics365Configuration','updateInfo','run','src/js/modules/main/apps/integrations/views/zohoAccounts/zohoAccounts.html/zohoAccounts.html','openChannel','canGoInConference','$mdMenu','fr-FR','Square\x20ODBC\x20properly\x20tested','vm_voice.query.filter','Swahili\x20(Tanzania)','Slovak','ResetPasswordController','cmContact@getJscriptySessions','mwForm.pageEvents.pageCurrentChanged','newOdbc','STARTS_WITH','getSize','expandAnimation','src/js/modules/core/directives/ms-shortcuts/ms-shortcuts.html/ms-shortcuts.html','ne-NP','analytics/default_reports/:id/preview','TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE','fax/accounts/describe','Mizuki\x20(Japanese,\x20Female)','referAttended','delete\x20hopperHistories','IntervalController\x20as\x20vm','dialogflowV2_project_id','AgentHomeDashboardController','secretaccesskey','QueueCampaignController','showWhatsappInteraction','analytics/metrics/describe','deleteSalesforceConfiguration','getInternalRoutes','ContactSelectionController','mail/substatuses/:id','deleteCustomField','onLogged','integrations/zoho/configurations/:id','priority','Asia/Yerevan','api.intDynamics365Configuration.update','blur','English\x20(US)','TOOLBAR.NOTIFICATION_TITLE_RECIPIENT','MOTIONDIALER.EDIT_HOPPER','users/:id/openchannel_interactions','CDR(type)=outbound','French','isUndefined','agentAdd','embedOptions','deleteChatCannedAnswer','deleteChatProactiveAction','play','hideLoadingIndicator','deleteSelectedOutboundRouteApps','src/js/modules/main/apps/contactmanager/views/globalCustomFields/create/dialog.html/dialog.html','ctrlMethods','pull','friend','api.campaign.save','Phone\x20number','/agents','saveDynamics365Configuration','BLACKLIST','now','createTag','refreshContacts','isNumber','buttons','id,name,description,notes','callerId','saveTeams','selectedZohoAccounts','app.motiondialer.ivrCampaigns.edit','Schedule\x20properly\x20saved!','localStorage','W:\x20Enable\x20private\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel\x20but\x20cannot\x20listen\x20to\x20that\x20channel.','internalControl','CompaniesController\x20as\x20vm','Websites','dayOfWeekFrom','plugins/','api.voiceContext.update','#tab-container','Delete\x20chanSpy','app.voice.realtime.queue_params','notification:save','CustomDashboards','SalesforceAccounts','$destroy\x20event\x20fired','US\x20Money','End\x20of\x20Conversation','sms/accounts/:id/applications','onRemoveFaxQueue','SYSTEM:analyticFieldReport','#interaction-content','InternalRoutes','gosub','Delete\x20','\x27days\x27','EditHopperDialogController','unreadMessages','ENTER','uploadPlugin','VoiceQueueteamaddController','Japanese\x20(Japan)','gotoFirstStep','intSugarcrmAccount','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/internaldial/dialog.html/dialog.html','TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE','This\x20message\x20has\x20no\x20subject.\x20Are\x20you\x20sure\x20you\x20want\x20to\x20send\x20it?','treeReports','English\x20(United\x20States)','faxMessage:save','VOICE.CANT_DOWNLOAD_THIS_FILE','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Call\x20from:\x20','scriptName','minutes','subStatuses','app.help.about','delete\x20SalesforceAccounts','src/js/modules/main/apps/tools/views/cannedAnswers/create/dialog.html/dialog.html','IntervalIntervalsController','\x27en\x27','selectAllTrunks','newItem','-updatedAt','US\x20West\x20(N.\x20California)','createOrEditDescription','cm/companies/:id/contacts','remote','altDate','instant','addUsers','mwFormViewer','integrations/servicenow/accounts/:id','fr-CA','reject','hiddenCC','mminutes','selectedContexts','CreateOrEditServicenowAccountDialogController','onHook','FaxAccount\x20properly\x20saved!','gotoReports','analytics/default_reports/:id','differenceBy','api.analyticFieldReport.save','moveConfirm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20users?','outbound','exportSelectedWhatsappAccountInteractions','Popup','INTEGRATIONS.EDIT_DYNAMICS365CONFIGURATION','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','rpc/chat/queues/:id/notify','/forgot','src/js/modules/main/apps/integrations/views/deskAccounts/deskAccounts.html/deskAccounts.html','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/system/dialog.html/dialog.html','ngBindHtmlUnsafe','CreateOrEditOutboundRouteDialogController','voiceQueuesLog','4800','setting','$locationProvider','\x27alternate\x27','metrics','Delete\x20InboundRoute','STAFF.EDIT_AGENT','delete\x20chatQueue','orange-fg','createdAt,updatedAt,id,appdata,type,exten,context,description','api.intFreshdeskConfiguration.save','$promise','user_has_sms_interactions:remove','msAdvancedSearch','SYSTEM:DELETEintFreshdeskAccount','deleteSelectedIvrCampaigns','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeFax/dialog.html/dialog.html','NoAnswer','statusList','SYSTEM:DELETEdashboard','integrations/zoho/configurations/:id/fields','listCustomFields','Indian/Cocos','faxQueues','gotoLastStep','\x27SIP/{{multipleUsers.name}}\x27','userProfile/sections/:id/clone','EditSmsAccountAppamazonlexDialogController','QueuesMailRealtimeController','cm/contacts/merge','dateRangeManager','QueueCampaignsController','eurczechfemale','ms-navigation-horizontal-item','iCab','hopperIds','\x22>','PluginController\x20as\x20vm','deselectQueueCampaigns','deselectFaxQueues','vTiger','ServicenowAccount\x20updated!','RR\x20Memory','src/js/modules/main/apps/fax/views/realtime/agents/view.html/view.html','ms-target-wrap','applyTo','path\x20must\x20be\x20a\x20string\x20(eg.\x20`dashboard.project`)','wholerow','chatCapacity','addNewChatQueue','FAX.ALL_AGENTS','voiceStatusTime','src/js/modules/main/apps/analytics/views/extractedReports/create/dialog.html/dialog.html','api.sound.delete','\x27cm_lists\x27','src/js/modules/main/apps/chat/views/chatWebsites/edit/proactive/dialog.html/dialog.html','sort','saveCustomization','MsWidgetEngineMultibarChartController','oldPasswordMatch','openchannel/accounts/:id/dispositions','getLockedItems','onListSelection','Years','\x27intelepeer\x27','className','MailQueue\x20properly\x20created','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/agent/dialog.html/dialog.html','is-mobile','^mdSidenav','WhatsappQueueteamaddController','speaker','f50000','getColorByChannel','vtigerAccounts','Latin','insertHtml','onUserUpdate','America/Detroit','new','auth/local/reset/:token','EditFaxAccountAppnoopDialogController','onRemoveUserSmsQueue','EditInboundAppdialDialogController','pdf','delete\x20VoiceQueues','analytics/default_reports/:id/run','src/js/modules/main/apps/callysquare/views/projects/create/dialog.html/dialog.html','OpenchannelInteractionId','SYSTEM:USERPROFILE.REMOVESECTIONS','Arabic\x20(Lebanon)','Freshdesk','getWhatsappAccountApps','goToEdit','Zulu','delete\x20voicePrefix','runTranscribe','Company\x20properly\x20saved!','VOICE.NEW_INTERNALROUTE','app/main/apps/motiondialer','VOICE.ALL','whatsappMessage:update','PDF','EditWhatsappAccountAppintervalDialogController','api.variable.update','getLogo','toTrusted','integrations/dynamics365/configurations/describe','getMailInteractions','rpcFaxQueuesWaitingInteractions','SETTINGS.NEW_SMTP','src/js/modules/main/apps/mail/views/mailSubtatuses/create/dialog.html/dialog.html','src/js/modules/main/apps/voice/views/internalroutes/edit/apps/internaldial/dialog.html/dialog.html','jan','arrayattach','
','addSections','smtps','sortableTable','src/js/modules/core/layouts/content-with-toolbar.html/content-with-toolbar.html','\x27token\x27','IvrCampaignsController\x20as\x20vm','exportSelectedTrunks','America/Thunder_Bay','badges','home.whatsapp','get','appType','unhold','Chantal\x20(French,\x20Canadian,\x20Female)','DASHBOARDS.MON','contact','sourceid','CONTACTMANAGER.LISTS','SalesforceConfiguration\x20properly\x20deleted!','\x27).style.display=\x27block\x27;\x20this.parentNode.removeChild(this)\x22>See\x20More
\x20Contacts\x20selected
','IS\x20NULL','msNavIsFolded','9600','DASHBOARDS.INFO','version/fetch','background','FaxAccount\x20updated!','pullAllBy','mailSubstatus@get','src/js/modules/main/apps/tools/views/tags/create/dialog.html/dialog.html','Dora\x20(Icelandic,\x20Female)','US\x20West\x20(Oregon)','SMS.SELECTED_AGENTS','Checkboxes','retrieveUser','createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','audio','SYSTEM:UPDATEVOICERECORDING','gotoOpenchannelAccounts','CreateOrEditTriggerDialogController','https://www.xcally.com/bar/phonebar/autoupdater.xml','newFaxQueue','\x27r\x27','trigger','secret','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20voiceRecordings?','ap-southeast-1','SYSTEM:DELETEteam','deleteSelectedPlugins','saveFreshdeskConfiguration','VariablesController\x20as\x20vm','saveTrunk','createOrEditOdbc','api.agent.save','startCase','onUserVoiceQueue','rpc/sms/queues','folded','MailRealtimeController\x20as\x20vm','newUserProfile','chat/groups/:id/messages','$observe','SmsCannedAnswer\x20deleted!','app/login','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sounds?','MARKETPLACE.NEW_PLUGIN','extraData','Delete_permission','deleteInternalRouteApp','unknown-version','dialstatus','src/js/modules/main/apps/integrations/views/servicenowAccounts/edit/view.html/view.html','America/Grand_Turk','src/js/modules/reset/reset.html/reset.html','INTEGRATIONS.SALESFORCEACCOUNTS','includeAll','pm2/:id','warnPalette','QueuesSmsRealtimeController','app.tools.dispositions','deleteFaxQueuesWaitingInteractions','\x2727\x27','CustomDashboardItemsController','runsentimentruntranscribesentiment','$lte','List\x20updated!','Delete\x20ChatProactiveAction','AgentPermissionsController','ShowQuestionsSessionDialogController','users/:id/openchannel/interactions','Telephone\x20password\x20properly\x20updated!','deleteSelectedFaxAccountApps','selectedIvrCampaigns','Random','users/:id/fax_interactions','reportField','app.settings.generals','X-CID:\x20','api.chatProactiveAction.update','icon-tablet','EditSmsAccountAppgotopDialogController','*|\x0a','square/reports/:id','Team\x20properly\x20created','openchannelQueues','onComplete','America/Manaus','+14:00','treeDefaultEvents','Windows\x20App','icon-console','+09:00','id,exten','enabled','\x27report_agent\x27','showPredictiveQueueCampaignInfo','Malagasy','api.pm2.save','WHATSAPP.WHATSAPPQUEUES','deselectChatWebsites','activateHueSelection','WhatsappAccountInteractionsController','\x27ASC\x27','ANALYTICS.REPORTS','openchannelInteraction:save','SYSTEM:SENDMESSAGE','voicePrefix@get','element','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20queueCampaigns?','SSO_LOGIN','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/noop/dialog.html/dialog.html','addNewOdbc','SquareRecordingsController','exportSelectedChatWebsiteChatCannedAnswers','delete\x20intervals','FAX.FAXACCOUNTS','Persian','Timeout','\x27es-ES\x27','merge','versionSearch','integrations/freshsales/fields/describe','..a','jstree','Teams','cafrenchfemale','getJscriptySessions','Node\x20Updated','delete\x20openchannelCannedAnswers','delete\x20description','ringingMute','HANGUPCAUSE_22','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20freshdeskAccounts?','userVoiceQueue:save','screen/recordings/:id/download','ServiceNow','rpc@getVoiceQueues','mouseenter\x20touchstart','automations/:id/conditions','Restore\x20Contact','unreadMessage','/errors/error-500','toJson','\x27ws\x27','removeColor','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailAccounts?','0.12','DASHBOARDS.NONE','Lotte\x20(Dutch,\x20Female)','removeListener','src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar-2.html/vertical-navigation-fullwidth-toolbar-2.html','mute','total','getTriggerActions','newIvrCampaign','license','Africa/Abidjan','alternate','sumHoldTime','api.intSalesforceAccount.update','+13:00','app.motiondialer.queueCampaigns','\x20uploaded\x20successfully','Klingon','verifysmtpverifysmtp','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/gotoif/dialog.html/dialog.html','OPENCHANNEL.EDIT_OPENCHANNELCANNEDANSWER','getDeskAccounts','enumerateDevices','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?','talking','delete\x20interactions','green-A700-bg','
','/triggers','selectedProjectSessions','\x271\x27','whatsapp','CALLERID(all)=','arrayzone','cmContact','FreshdeskAccount','Sms','STAFF.STAFF','integrations/salesforce/configurations/:id','enableSettings','Polish','openFolded','api.voiceQueue.save','$mdColorPalette','canEdit','OutboundRoutes','Command','intervals/:id','delete\x20MailQueues','CreateOrEditMailSubstatusDialogController','delete\x20sessions','src/js/modules/main/apps/integrations/views/freshsalesAccounts/freshsalesAccounts.html/freshsalesAccounts.html','CONFIGURATIONS','license/:id/clone','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelAccounts?','Plugin\x20updated!','src/js/modules/main/apps/motiondialer/views/ivrCampaigns/ivrCampaigns.html/ivrCampaigns.html','onUpdateMailInteraction','mail/queues/:id','Trebuchet\x20MS','conditions','Interval\x20properly\x20deleted!','STAFF.QUEUEADD_AGENT_','cancel','\x27zoho.com\x27','The\x20squareRecording\x20will\x20be\x20deleted.','speed','Project\x20properly\x20created','AgentsMotionDialerRealtimeController','selectedMailSubstatuses','Send\x20Anyway','focus','ta-IN','top\x20right','vm.detailForm.$pristine','SmsQueueagentaddController','Plugins','America/Nipigon','humanizeDoc','customizations','STAFF.TELEPHONES','createList','membersByKeys','DefaultReportId','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?','rpcVoiceQueues','deleteSelectedMusicOnHolds','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20faxAccounts?','unreadGroupMessages','Accept','arraysubtractUnit','log','AVG','chanSpy\x20properly\x20created','ServicenowAccount\x20properly\x20tested','app.mail.mailAccounts.edit','deleteSelectedChatWebsiteApps','Asia/Jerusalem','ChatWebsitecustomerAvatarController','Ines','ring','TOOLS.TEMPLATES','VoicePrefixesController','src/js/modules/main/apps/mail/views/mailAccounts/create/dialog.html/dialog.html','queryJscriptySession','WhatsappQueue\x20properly\x20created','monitors','priorities','delete\x20customFields','Options','The\x20telephone\x20will\x20be\x20deleted.','api.cannedAnswer.update','intZendeskField','ZohoAccount\x20properly\x20tested','CSV\x20stop\x20import\x20process\x20failed!','HANGUPCAUSE_21','saveFreshdeskAccount','src/js/modules/main/apps/chat/views/chatQueues/edit/teamadd/teamadd.html/teamadd.html','templateSettings','motion-client','VtigerAccount\x20updated!','audiooutput','America/Argentina/Tucuman','Delete\x20Customization','addAllCondition','WhatsappQueues','getSalesforceAccounts','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/close/dialog.html/dialog.html','deleteSelectedVoicemailMessages','src/js/modules/main/apps/voice/views/musiconholds/create/dialog.html/dialog.html','browserGroupId','gotoVoiceQueues','SETTINGS.EDIT_NETWORK','integrations/:id','0.7','@from-voicemail','rpcQueues','msNavigation::stateMatched','api.rpc.notify','rpcMailQueues','changePasswordForm','updateLayoutStyle','MARKETPLACE.MARKETPLACE','selectedTriggerActions','faxPause','intersection','msCard','voice/mails/messages/:id/clone','VOICE.VOICERECORDINGS','after','src/js/modules/main/apps/fax/views/realtime/queues/view.html/view.html','closed\x20===\x200','ringGroup','EditOpenchannelAccountAppgotopDialogController','onUpdateOpenchannelQueue','zh-TW','deleteFreshsalesConfiguration','footer','delete','\x27users\x27','/ivrCampaigns','clearLockedItems','wav49','chat/offline_messages/:id/clone','getAgents','OpenchannelQueues','sipcalllinkedid','Delete\x20FreshsalesAccount','GlobalCustomField\x20properly\x20deleted!','CreateOrEditHopperCampaignIdDialogController','Armenian','square/recordings/:id/download','$logProvider','Key','onclick','dispositionsValues','MailAccountController\x20as\x20vm','error','createOrEditMailAccountMailCannedAnswer','delete\x20OutboundRoutes','millis','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/item/dialog.html/dialog.html','th-TH','/musiconholds','rpc/campaigns','/realtime','Would\x20you\x20like\x20to\x20update\x20your\x20system?','mailQueueReport','_XCALLY_MIXMONITOR_FORMAT=','outboundrouteApp','dnd','\x20not\x20found','deleteWidget','api.contact.delete','stoppedTime','SYSTEM:SORTABLETABLE','CONTACTS\x20NOT\x20AVAILABLE','EditInboundAppintervalDialogController','msDatepickerFixConfig','lexregion','isHiddenField','usmoney','setToggleItem','streets','-03:30','closeTab','Arabic','motion.authenticationtype','fax/accounts/:id','src/js/modules/main/apps/callysquare/views/projects/edit/edit/edit.html/edit.html','app.tools.customDashboards','voice_queue:save','User\x20password\x20properly\x20updated!','DASHBOARDS.ENABLED','app.marketplace.plugins','Dynamics365Account','TeamsController','teams/:id/users','src/js/modules/main/apps/motiondialer/views/queueCampaigns/create/dialog.html/dialog.html','\x27basic\x27','rpc@getMailQueues','deleteSelectedAiTools','sa-east-1','saveSalesforceAccount','AgentGeneralHomeController','\x27select\x27','users/:id/login','EditWhatsappAccountApptagDialogController','XCALLY-MOTION-ANSWER=1','exportSelectedScheduler','The\x20globalCustomField\x20will\x20be\x20deleted.','selectAllVoiceRecordings','getWhatsappAccountInteractions','newZohoConfiguration','chooseFromList','src/js/modules/main/apps/voice/views/outboundroutes/edit/view.html/view.html','scrollTop','#275498','icon-clock','integrations/dynamics365/configurations/:id/subjects','speakerId','api.jscriptyProject.clone','src/js/modules/main/apps/dashboards/views/general/agent/home/abandoned/dispose/dialog.html/dialog.html','fail\x20callbackurl:\x22','addNewZendeskConfiguration','api.sound.save','ANALYTICS.EDIT_METRIC','voiceMailMessage','UserProfile\x20properly\x20cloned','routeId','get_parent','notification','Asia/Jayapura','Edit_permission','CreateOrEditFreshdeskAccountItemDialogController','integrations/servicenow/configurations/:id/subjects','getReports','replyTemplate','ServicenowAccountController\x20as\x20vm','European\x20French\x20Female','apps.settings.license','ngclipboard','Moldavian','api.user.delete','voice_outbound_channel:save','sms/queues/:id/users','selectAllSounds','voice/calls/reports/describe','inboundQueues','api.whatsappAccount.delete','SETTINGS.JIRA_ERROR_MESSAGE','YYYY-MM-DD\x20HH:mm:ss','mail_queue_waiting_interaction:remove','globalLists','out','OPENCHANNEL.SELECTED_AGENTS','queueCampaignHoppers','addNewZohoConfiguration','src/js/modules/main/apps/video/views/screenRecordings/create/dialog.html/dialog.html','getOpenContacts','DELETE','whatsappAccountWhatsappCannedAnswers','GROUP_CONCAT\x20ASC','freshdeskAccount','getColorByItem','VtigerAccountController','levels','SYSTEM:DELETEintServicenowAccount','whatsappQueue','delete\x20schedule','whatsappStatusTime','Message\x20properly\x20rejected!','America/Miquelon','07:00-22:00,*,*,*','AgentchangepasswordController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20deskAccounts?','amber-A200-bg','endtime','es-UY','/login?token&userId','teamadddialog','whatsappQueues','order','/general','cm/lists/:id/contacts','trunk_name','get_json','apps.callysquare.squareRecordings','Jscripty\x20can\x27t\x20open\x20the\x20contact','getVoicePrefixes','Internal','\x27cm_hopper_final\x27','Months','DASHBOARDS.SMS','api.userProfile.clone','api.intServicenowConfiguration.update','MohSound\x20deleted!','/cloudProviders','src/js/modules/navigation/layouts/vertical-navigation/navigation.html/navigation.html','0.54','Delete\x20Plugin','noop','QueueCampaignagentaddController','Company\x20properly\x20created!','src/js/modules/main/apps/fax/views/faxAccounts/faxAccounts.html/faxAccounts.html','DASHBOARDS.SELECT_TAG','CONTACTMANAGER.NEW_COMPANY','CreateOrEditVoiceQueueDialogController','range','Asia/Chita','deleteGeneral','src/js/modules/main/apps/tools/views/trunks/trunks.html/trunks.html','Courier\x20New','src','removeClass','usspanishmale','api.analyticMetric.update','src/js/modules/main/apps/callysquare/views/odbcs/create/dialog.html/dialog.html','second','$log','ComposeOpenchannelInteractionDialogController','voiceExtension@get','jabraClicked','ACCOUNT:SEND','trustAsHtml','AEC','selectAllDeskAccounts','ngEmbed','deleteIvrCampaignHopper','CloudProvider','INTEGRATIONS.EDIT_VTIGERACCOUNT','grammar','src/js/modules/main/apps/settings/views/license/update/dialog.html/dialog.html','selectedChatWebsiteChatCannedAnswers','openchannel/messages/:id/accept','$translatePartialLoader','HH:mm','EditInternalAppvoicemailDialogController','Accounts','\x27fr-FR\x27','api.intFreshdeskConfiguration.delete','CreateOrEditDynamics365ConfigurationDialogController','The\x20vtigerConfiguration\x20will\x20be\x20deleted.','mail/messages/:id/reject','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/configurations/dialog.html/dialog.html','Dynamics365Configuration\x20properly\x20created','userProfileId','inbound','Company\x20properly\x20created','BEEP','languages','ms-nav-folded-open','ReportsController','createdAt,updatedAt,id,name,CustomReportId,DefaultReportId,output,active,startAt,endAt,cron,subtractNumber,subtractUnit,sendMail,MailAccountId,email,cc,bcc,sendIfEmpty,description','days','goToEditState','createOrEditProjectSession','/whatsappQueues','Hopper\x20properly\x20saved!','Type\x20the\x20file\x20name.','ContactId','get_node','hour','app.voice.chanSpies','api.intFreshdeskAccount.delete','newNetwork','getSenders','mailQueue','Rejected','Type\x20a\x20message','FreshdeskAccounts','ms-nav-folded','Module\x20updated!','motion.layoutStyle','id,tree','Times\x20New\x20Roman,Times,serif','+08:45','selectAllDynamics365Accounts','toggleDialpad','newSchedule','addNewHopper','CONTACTMANAGER.NEW_GLOBALCUSTOMFIELD','ms-navigation-horizontal-mobile-menu-active','selectedIvrCampaignHopperFinals','\x27report_whatsapp_queue\x27','msNavTitle','voicePrefix\x20properly\x20saved!','DeskAccountController\x20as\x20vm','schedules/:id','deleteChatWebsiteChatProactiveAction','hoursS','voice/queues/:id/lists','readAsDataURL','Busy','chat/groups/describe','createOrEditChatWebsiteChatProactiveAction','404','Dynamics365Configuration\x20deleted!','createOrEditWhatsappQueue','incoming','user_has_openchannel_interactions:remove','exportSelectedSmsAccounts','\x27d\x27','GET','note','permissionId','Queue','saveWhatsappAccountApp','Contact\x20ID\x20','duplicateContact','CALLYSQUARE.CALLYSQUARE','SYSTEM:DELETEcampaign','reschedule','getAbandonedCalls','join','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20sugarcrmAccounts?','webrtc::call','currentStepNumber','findBy','Tag\x20properly\x20created!','ZohoAccount\x20properly\x20saved!','UserWhatsappDashboardGeneralController','UserChatWebsite','plugin','EditWhatsappAccountAppgotoifDialogController','onBefore','onSubmit','src/js/modules/errors/500/error-500.html/error-500.html','es-SV','delete\x20Reports','addNewDynamics365Configuration','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27strict\x27','apiselect','disposedAt','TOOLBAR.DANISH','src/js/modules/main/apps/integrations/views/zendeskAccounts/zendeskAccounts.html/zendeskAccounts.html','src/js/modules/main/apps/tools/views/sounds/sounds.html/sounds.html','src/js/modules/main/apps/mail/views/mailAccounts/edit/mailCannedAnswers/dialog.html/dialog.html','hideDelay','<%3B','chat/websites/:id/proactive_actions','users/whoami','escape','$substring','/api/chat/interactions/','createOrEditMusicOnHold','\x22\x20target=\x22_self\x22>','#353a48','SYSTEM:GET_VARIABLES','phoneBarEnableDtmfTone','FaxQueue\x20properly\x20deleted!','$valid','createOrEditTeam','DASHBOARDS.SELECT_DATE','gotoDynamics365Accounts','api.userProfile.delete','chatInteraction:save','trimStart','getHopperFinals','cloudProviders/:id/clone','MsShortcutsController','Agentchange_avatarController','attrVoiceQueues','Label','FreshdeskAccount\x20properly\x20tested','Korean\x20Male','deleteVtigerConfiguration','isJsonString','TrunksFaxRealtimeController','both','The\x20mailCannedAnswer\x20will\x20be\x20deleted.','getFaxAccountLabel','users/:id/sms_accounts','nosuchnumber','FreshsalesConfiguration\x20properly\x20saved!','selectedScreenRecordings','Asia\x20Pacific\x20(Mumbai)','treeCustomEvents','rpc/agents/:id/notify','CreateOrEditVtigerAccountItemDialogController','apps.voice.musiconholds','gotoStep','autoAnswer','createOrEditDisposition','Dashboards','delete\x20field','cm/contacts/:id/tags','createOrEditOpenchannelAccountOpenchannelCannedAnswer','app.integrations.sugarcrmAccounts','onSaveUserSmsQueue','OPENCHANNEL.REALTIME','api.chatQueue.update','iPod','monthTo','parse','mwFormResponseUtils','STAFF.AGENTS','app.contactmanager','The\x20customField\x20will\x20be\x20deleted.','FaxInteractionId','deleteSelectedTriggerActions','exists','injector','app.motiondialer','motion.folded','chat/interactions/:id/clone','selectAllUserProfiles','openchannel/queues/:id/teams','integrations/salesforce/accounts/:id/configurations','googleCloudTtslanguageCode','/api/chat/websites/:id/customer_avatar','popup','queueCampaignHopperBlacks','Hopper\x20deleted!','selectedLists','user:agentcomplete','Ukrainian','Target','addAgents','id,name,role,context','Interaction:update','Logout','EXPORT','disposition','cmContact@get','JscriptyProjectsController','InternalRoute','Dialer\x20Hopper\x20Final','Indian/Mauritius','app.integrations.zohoAccounts.edit','@id','deleteSmsQueue','Number','chat/reports/transfer/describe','Asia/Bangkok','STAFF.USERPROFILES','userVoiceQueue:remove','orange-A700-bg','openchannel/messages/describe','Japanese','projectSessions','src/js/modules/main/apps/contactmanager/views/globalCustomFields/globalCustomFields.html/globalCustomFields.html','deselectChanSpies','getQueues','HopperHistory\x20deleted!','Asia/Bishkek','INTEGRATIONS.FRESHSALESACCOUNTS','EditFaxAccountAppgotopDialogController','openchannel-interaction','APPS','Spanish\x20(Nicaragua)','createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','INTEGRATIONS.NEW_FRESHDESKACCOUNT','analytics/tree_reports/describe','CreateOrEditContextDialogController','#2d323e','MOTLICENSE','getFreshsalesAccounts','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27inuse\x27','src/js/modules/main/apps/plugins/views/plugin/plugin.html/plugin.html','findIndex','modules','setOrientation','DASHBOARDS.OPENED','msTabScroll','src/js/modules/main/apps/sms/views/smsQueues/edit/teamadd/teamadd.html/teamadd.html','Version','delete\x20tag','converted_format','whatsapp-interaction','DASHBOARDS.LAST_WEEK','user:forcelogout','getMembers','src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/interval/dialog.html/dialog.html','MetricsController\x20as\x20vm','InboundRoute','editXML','rpc/sms/queues/waitinginteractions','predictiveIntervalDroppedCallsCallersExit','composeOpenchannelInteraction','msResponsiveTable','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20servicenowConfiguration?','ngValue','CONTACTMANAGER.COPY_CONTACT','sound','Service\x20Worker\x20is\x20not\x20supported','platform','Delete\x20Dynamics365Configuration','selectedVoicemails','America/St_Johns','grey-A700-bg','deleteSelectedTriggerAllConditions','createOrEditOpenchannelAccount','phoneBarPrefixRequired','IvrCampaign\x20properly\x20saved!','Kannada','fromKey','encodeURIComponent','MsNavigationHorizontalNodeController','length','getSmsAccountInteractions','cm/contacts/csv','version/migrations','InboundRoutes','originator','SYSTEM:GETinterval','Interval\x20deleted!','arraytable','What\x20would\x20you\x20name\x20your\x20tag?','CAMPAIGN\x20NOT\x20ACTIVE','\x27cdr\x27','apps.tools.schedules','onUpdateOpenchannelInteraction','connect','src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/view.html/view.html','mailInteractionDownload','Sound\x20properly\x20deleted!','md-no-ink','GET_QUEUE','Georgia','createdAt,updatedAt,id,name,channel,status,description','scriptPath','WhatsappAccountsController','icon-email','Tamil','mailInteraction:update','UserSmsDashboardGeneralController\x20as\x20vm','customField\x20#','/sugarcrmAccounts','UNKNOWN','api.disposition.update','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotoif/dialog.html/dialog.html','mohSound','\x27report_call\x27','app.forgot','selectedSmsQueues','America/Matamoros','selectAllSmsAccounts','icon-cloud-download','TOOLS.NOTIFICATIONS.CONDITIONS_DELETE_TITLE','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/autoreply/dialog.html/dialog.html','getResults','api.openchannelQueue.delete','api.screenRecording.update','The\x20contact\x20is\x20in\x20the\x20hopper','newChatProactiveAction','createOrEditTriggerAction','+10:30','customField','voice/queues/:id/blacklists','selectAllNetworks','Dispositions','newGeneral','voice/queues/:id/hoppers','ProjectBuilderController','=viewModel','g726','da-DK','SYSTEM:GETpauses','shiftKey','goto','delete\x20descriptions','src/js/modules/main/apps/staff/views/telephones/telephones.html/telephones.html','hasShortcut','rpc/voice/channels','whatsappMessage','selectAllExtractedReports','integrations/sugarcrm/accounts/describe','JscriptyProjectsController\x20as\x20vm','squareProject@get','onActionInit','sms/interactions/:id/messages','chat/proactive_actions/:id/clone','createdAt,updatedAt,id,name,description,table,parent,conditions,joins','Contact\x20properly\x20saved!','mailCannedAnswers','utc','Asia/Yakutsk','readOnly','ComposeFaxInteractionDialogController','onUpdate','allowedStandardFields','months','dec','Romanian','path','selectedChatWebsiteInteractions','saveVoicemail','delete\x20hopperHistory','src/js/modules/main/apps/integrations/views/sugarcrmAccounts/edit/view.html/view.html','acceptedMessages','faxAccountInteractions','Delete\x20WhatsappQueue','countdownAttr','onDateRangeInit','arrayImap.service','MsNavController','trunks/:id/clone','ap-northeast-2','Brian\x20(English,\x20British,\x20Male)','getMailAccountMailCannedAnswers','cmList@get','Atlantic/Canary','intDynamics365Field','Session\x20save\x20error','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?','joinAt','MsNavigationController','stun','voice','OpenchannelQueue\x20updated!','populateResults','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeWhatsapp/dialog.html/dialog.html','/extractedReports','api.squareOdbc.update','POST','listsCampaign','addNewZendeskAccount','onMessageUpdate','webkitHidden','INTEGRATIONS.NEW_DESKACCOUNT','ContextsController\x20as\x20vm','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hoppers?','onReferCallback\x20->\x20session,\x20textContent,\x20position,\x20delay','Substatus','Trebuchet\x20MS,Helvetica,sans-serif','idle','openchannelQueue@get','analytics/custom_reports/describe','category','CreateOrEditAgentDialogController','fax/accounts/updateaccountapplications','apps.contactmanager','deleteFaxQueue','searchTextChange','subsections','deviceId','Call\x20%s\x20not\x20found\x20or\x20already\x20completed','Sesotho','icon-hangouts','selectedList','fax/accounts/:id/users','migration','opt1','app.whatsapp.whatsappQueues.edit','api.squareRecording.save','America/Resolute','split','screen/recordings/:id/clone','TOOLS.TRIGGERS','$stateChangeSuccess','getHopperHistories','openchannelStatus','voice/prefixes/:id/users','endOf','toggleFolded','$parsers','Error500Controller','The\x20musiconhold\x20will\x20be\x20deleted.','selectedFreshsalesConfiguration','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20contexts?','delete\x20userProfile','Dynamics365AccountController\x20as\x20vm','plugins/:id/clone','CHAT.NEW_CHATCANNEDANSWER','Triggers','onRemove','ms-color-picker-button','src/js/modules/main/apps/chat/views/chatWebsites/edit/chatCannedAnswers/dialog.html/dialog.html','/api/jira','deleteSelectedSmsAccountInteractions','oct','apps.motiondialer.queueCampaigns','selectAllProjects','id,name,fullname,internal','api.intZohoConfiguration.save','$between','Group\x20properly\x20saved!','CreateOrEditZendeskConfigurationDialogController','newPause','rpcSmsQueues','zendeskAccount','app.sms.realtime','America/Argentina/Jujuy','removeByInteraction','Call_Status','webbar:hold','US\x20East\x20(Ohio)','id,firstName,lastName,email','EditMailAccountAppqueueDialogController','src/js/modules/main/apps/integrations/views/salesforceAccounts/edit/configurations/dialog.html/dialog.html','VoicemailsController','SMS.ALL_TEAMS','jscriptyAnswerReport','Audio_Files','isIndeterminate','callbackQueue','America/Indiana/Marengo','mail/messages/:id/clone','integrations/sugarcrm/configurations/:id/fields','fax/messages/:id/reject','app.errors.error-500','zip','src/js/modules/main/apps/openchannel/views/realtime/realtime.html/realtime.html','unPause','api.intFreshdeskAccount.update','rounded','cannedAnswer','/api/settings/1/logo','$notIn','filterByIds','app.settings.customizations','voiceQueuesTotal','DASHBOARDS.NOVEMBER','rpc@getMailAccounts','tree','exportSelectedSugarcrmAccounts','ServicenowAccount\x20properly\x20deleted!','licenseKey','CannedAnswers','app.quick-panel','apps.staff.users','delay','integrations/freshsales/accounts/:id/clone','src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/gotop/dialog.html/dialog.html','browser','/*\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}','READ_PERMISSION','deselectSounds','selectedTableChange','VoicemailMessagesController','googleSsoEnabled','destcalleridnum','WhatsappRealtimeController\x20as\x20vm','CreateOrEditTemplateDialogController','debugEnabled','uniqueid,calleridnum,statedesc,starttime,disposition,secondDisposition,thirdDisposition','SYSTEM:GETmailAccount','Delete\x20Agent','CONTACTMANAGER.COMPANIES','interval_id','app.tools.triggers','dateOfBirth','Filipino\x20(Philippines)','VoiceQueues','detailForm','AgentHomeDashboardMultiChannelOpenchannelController','Spanish\x20(Mexico)','selectAllGlobalCustomFields','PERMISSIONS','aug','SalesforceAccount\x20updated!','app.chat','app.errors.error-404','ms-widget','apps.plugins','inline','selectedOpenchannelQueues','selectAllScreenRecordings','appdata','main','html-area','SugarcrmConfiguration\x20properly\x20deleted!','Technology/Resource','$on','=ngModel','src/js/modules/main/apps/integrations/views/deskAccounts/edit/view.html/view.html','putOtherCallsOnHold','clone','deleteChatQueuesWaitingInteractions','\x2738\x27','unreadTotalMessages','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20networks?','createdAt,updatedAt,id,name,description,crudPermissions','voiceQueueReport','SMSACCOUNT:SEND','\x27da\x27','TOOLBAR.NORWEGIAN','sms/reports/transfer/:id/clone','apps.dashboards.general','cm/lists/:id/users','EditorUi','QueueNotify','Delete\x20SquareRecording','intVtigerAccount','/customizations','id,name,mapAgentsId,waiting','||FIELD||OLD||NEW||\x0a','deleted','ariaLabel','INTEGRATIONS.SERVICENOWACCOUNTS','hu-HU','AgentHomeWhatsappController','GlobalCustomFieldsController\x20as\x20vm','whatsapp/applications/:id/clone','getIntervalIntervals','arraydialCheckDuplicateType','members/reports/describe','\x27mail_queues\x27','requestLicense','Atlantic/Madeira','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27unknown\x27','voice/prefixes/:id','Japanese\x20Female','rpcFaxQueues','agentInternal','XMLHttpRequest','EditMailAccountAppcloseDialogController','deselectNetworks','\x27report_sms_queue\x27','warn','exportSelectedVoicePrefixes','TOOLS.NOTIFICATIONS.CONDITION_SAVED_SUCCESS_TITLE','/snippet?token=','Asia/Tehran','selectedTriggerAnyConditions','selectAllFaxAccounts','Joanna','SYSTEM:UNPAUSEUSER','duplicates','EditSmsAccountApp','hasIntegrationsPermissions','delete\x20Projects','delete\x20item','TOOLS.EDIT_TAG','phoneBarEnableSettings','horizontalNavigation','ZendeskAccountConfigurationsController','app.openchannel.realtime','isExtra','defaultHeaderWhiteLabel','admin','collapsing','api.intZendeskConfiguration.update','accountConnected','*,*,*,*','app.plugins.plugin','updateAccountApplications','onNewRTCSession\x20->\x20data','dialogflowV2_language','realtime','orange','Successful\x20call','triggers/:id/actions','api.pause.save','starttime','src/js/modules/main/apps/voice/views/realtime/telephones/view.html/view.html','SYSTEM:GET_TEAMS','.mp4','AgentsMailRealtimeController','Lucky\x20day','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/tag/dialog.html/dialog.html','click','en-NZ','apps.staff.teams','Catalan','api.chatWebsite.save','Fwd:\x20','QueueCampaignblacklistaddController','updateLicense','createdAt,updatedAt,id,name,type,remoteUri,authType,username,password,serverUrl,description','UpdateDialogController','toggle','router','projects','\x27France\x20(France)','delete\x20openchannelAccount','src/js/modules/main/apps/fax/views/faxQueues/edit/view.html/view.html','createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','api.intSalesforceAccount.save','\x27de\x27','onlineForm','api.intSugarcrmAccount.save','prev','api.interval.delete','version','red-300-fg\x20icon-close-circle','License\x20update\x20failed!','app.voice.internalroutes.edit','The\x20sugarcrmAccount\x20will\x20be\x20deleted.','America/Belize','Position','DEFAULT','onRemoveMailQueue','SoundsController\x20as\x20vm','You\x20can\x27t\x20remove\x20an\x20outbound\x20route\x20associated\x20to\x20an\x20out\x20prefix','MouseOver','numbersto99','\x27connectel\x27','delete\x20agent','WHATSAPP.ALL_AGENTS','OpenchannelAccount\x20updated!','ChatProactiveAction\x20properly\x20deleted!','api.tag.save','selectedIndex','The\x20servicenowAccount\x20will\x20be\x20deleted.','Europe/London','src/js/modules/main/apps/fax/views/realtime/realtime.html/realtime.html','createdAt,updatedAt,id,name,description,createdAt,formData,enableUncompleteSave','analyticMetric','trustAsResourceUrl','Report\x20updated!','AllCondition\x20properly\x20deleted!','#5688d3','newVtigerAccount','ListsController','Textarea','\x27route\x27','Tigrinya','EditSmsAccountAppsystemDialogController','Kendra','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20intervals?','Danish\x20(Denmark)','PrivateKey','Tag\x20properly\x20deleted!','styles','/api/transfer?number=','America/Santa_Isabel','holdHook\x20->\x20payload','app.voice.internalroutes','Marketplace','networks','openchannel/applications/:id','saveAgent','America/Managua','app.tools.schedules','floor','htmlContent','selectedInternalRoutes','Anonymous','app.analytics.reports.edit','saveFaxAccountApp','forms','IntervalsController','exportSelectedUsers','Africa/Nairobi','\x27hours\x27','Pause\x20properly\x20deleted!','hide','app.integrations.salesforceAccounts.edit','Reset\x20List','getMap','api','multipleUsers','selectedFaxAccountInteractions','ro-RO','selectedZendeskAccounts','$compile','arrayalignment','voice/dials/reports/:id','read1stAt','reportType','api.intVtigerAccount.update','SugarcrmConfiguration\x20properly\x20created','whatsapp/queues/:id','es-HN','integrations/vtiger/configurations/:id/subjects','directive','Africa/Tripoli','arrayusereqphone','whatsapp/reports/queue/describe','leave','SYSTEM:PAUSEUSER','waiting','MxGraphOpenProjectController','getCannedAnswers','SYSTEM:GETcampaign','Amy','ivrCampaign','Project','currentconferenceSessions','IS\x20NOT\x20EMPTY','agentUrl','variablesById','chatInternalMessage','isLoggedIn','responsive','EditFaxAccountAppcloseDialogController','chatQueue:save','Fax\x20Queues','phone','rpc/chat/queues','QueuesOpenchannelRealtimeController\x20as\x20vm','Agents','sortByWeight','app.settings.license','zoho.com','saveSugarcrmConfiguration','msShortcuts','addNewAllCondition','nodeType','gotoInternalRoutes','onSaveWhatsappInteraction','delete\x20ServicenowAccounts','runtranscribesentimentruntranscribesentiment','Dynamics365Accounts','ivrTotalCallsDays','from-sip','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE','weeks','bulkCreate','src/js/modules/main/apps/dashboards/views/general/user/sms/user.general.sms.html/user.general.sms.html','getCount','Email\x20Messages','arraysetinterfacevar','Transfer','record','messageId','License\x20Request','ZohoAccount\x20properly\x20deleted!','Schedule\x20properly\x20deleted!','\x20has\x20been\x20run!','DASHBOARDS.DECEMBER','FaxRealtimeController','createdAt,updatedAt,id,name,type,selector,timeout','Realtime','$resource','subject','Description','voiceAgentReportColumns','onplay','selectedCompanies','Failed\x20to\x20delete\x20the\x20attached\x20pm2\x20process','green-A700','Warning','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chanSpies?','voice/mohs/:id','Vertical\x20Navigation','openchannelQueue:update','id,fullname','stream','IvrCampaigns','erlangBusyFactor','delete\x20session','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','font,colorbutton,autogrow,autoembed,autocorrect,googlethisterm,pastebase64','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27unknown\x27','api.chatProactiveAction.save','teams/:id/clone','microphoneVolume','=>%3B=','IvrCampaignHopperFinalsController','deselectDynamics365Accounts','forwardTemplate','Punjabi','Delete\x20ServicenowConfiguration','src/js/modules/main/apps/mail/views/mailAccounts/mailAccounts.html/mailAccounts.html','src/js/modules/main/apps/dashboards/views/general/user/openchannel/user.general.openchannel.html/user.general.openchannel.html','#ebf1fa','id,fullname,userpic,internal','paginatedAgents','countBy','\x27ilbc\x27','onDispositionChange','RequestLicenseDialogController','daysOfMonth','getAgentGlobalStatus','app.integrations.freshsalesAccounts.edit','user:save','MOTIONDIALER.ALL_LISTS','SYSTEM:DELETEmailQueue','api.network.update','src/js/modules/main/apps/fax/views/faxQueues/edit/agentadd/agentadd.html/agentadd.html','DASHBOARDS.CALL_DISPOSED','ChatWebsiteOfflineMessagesController','export','DASHBOARDS.TAGS','SYSTEM:GETvoiceQueue','getContactsCsv','DASHBOARDS.SEPTEMBER','openchannel/accounts/:id/clone','sms-interaction','TOOLBAR.RUSSIAN','VOICE.NEW_CHANSPY','field,alias,function,format,groupBy,orderBy,custom,MetricId','jscriptySessions','src/js/modules/main/apps/contactmanager/views/lists/create/dialog.html/dialog.html','telephone','STAFF.EDIT_TELEPHONE','method','Unable\x20to\x20get\x20Html\x20Editor\x20instance','name.name','allconditions','api.plugin.save','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20customField?','SYSTEM:squareProjects.ADDUSERS','src/js/modules/main/apps/sms/views/smsAccounts/edit/smsCannedAnswers/dialog.html/dialog.html','MOTIONDIALER.NEW_QUEUECAMPAIGN','OpenchannelCannedAnswer\x20deleted!','SYSTEM:GET_SOUNDS','TelephonesController\x20as\x20vm','deleteSelectedMailAccounts','automations/:id/actions','restart\x20plugin\x20process','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/gotop/dialog.html/dialog.html','analytics/field_reports/:id','Belarusian','ImportContactsDialogController','screenRecording\x20properly\x20saved!','CreateOrEditReportDialogController','amaflags','getVoiceQueuesChannelHangup','Europe/Samara','api.pm2.update','America/Argentina/Rio_Gallegos','searchResultClick','mail/reports/queue/:id','demo','api.campaign.update','selectedSugarcrmAccounts','SYSTEM:QUEUES_ASSOCIATION','rpc@getOpenchannelQueues','getMailAccounts','sms/accounts/:id','AgentsChatRealtimeController\x20as\x20vm','api.openchannelMessage.accept','API:ERROR','edit','deselectFreshdeskAccounts','Email\x20field\x20is\x20not\x20valid','ANALYTICS.EDIT_REPORT','deleteChatWebsiteInteraction','apps.tools.templates','arraydialMethod','onRemoveChatQueueChannel','chat/proactive_actions/:id','getAnyConditions','analytics/tree_reports/:id','trigger:bot','France\x20(France)','Password','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/noop/dialog.html/dialog.html','route','microphoneMute','EditoutboundAppintervalDialogController','Dynamics365Account\x20properly\x20created','GET_LIST','SYSTEM:DELETEnetwork','delete\x20ChatQueues','arraytech','CHAT.NEW_CHATQUEUE','triggerAllConditions','treeStructure','saveUser','-07:00','EditoutboundAppoutbounddialDialogController','clearFilter','openchannelInteraction','$translatePartialLoaderProvider','Asia/Manila','message\x20#','rpcCampaigns','gotoNextStep','selectedWhatsappAccounts','calleridnum','campaigns/describe','EditChatWebsiteAppsystemDialogController','addNewTrigger','src/js/modules/main/apps/staff/views/agents/edit/view.html/view.html','TOOLS.NOTIFICATIONS.TRIGGER_CREATED_SUCCESS_TITLE','detectBrowser','api.voicePrefix.update','TOOLS.NOTIFICATIONS.DISPOSITION_CREATED_SUCCESS_TITLE','SETTINGS.CUSTOMIZATIONS','right','getInstallInfo','elapsed','arrayjoinempty','fontSize','AgentsFaxRealtimeController\x20as\x20vm','DASHBOARDS.DASHBOARD','GET_PROJECT','chatQueues','quick-panel','year','https://','delete\x20sound','chat','Dynamics365Account\x20properly\x20saved!','deselect_all','square/messages/:id/clone','createOrEditTrunk','user','Arabic\x20(Iraq)','api.item.delete','Interaction\x20properly\x20closed!','MsWidgetEngineWebReportController','retry','MailSubstatusesController','zohoConfiguration','saveVtigerAccount','addFields','\x27AU\x27','getOpenchannelInteractions','motionTheming','CreateOrEditSalesforceAccountItemDialogController','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_TITLE','mail/applications/:id','deleteAction','force_rport','SmsAccounts','cmHopperHistory','saveOpenchannelAccount','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','describe','Message\x20has\x20been\x20sent!','Carmen\x20(Romanian,\x20Female)','faxQueue:remove','addBlackLists','chat/websites/:id/system_avatar','Corsican','STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_MESSAGE','deselectScreenRecordings','America/Puerto_Rico','SUM\x20(','integrations/freshsales/configurations/:id/descriptions','plugins/:id/download','TOOLS.TAGS','newReport','selectAllOpenchannelAccounts','America/Dawson','SYSTEM:GETwhatsappQueue','ZendeskConfiguration\x20properly\x20saved!','STAFF.PERMISSIONS_SELECTED_RESOURCES','scales','sms/accounts/:id/send','api.intSugarcrmConfiguration.update','src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/item/dialog.html/dialog.html','SYSTEM:GET_SMSACCOUNTS','IvrCampaignsMotionDialerRealtimeController\x20as\x20vm','createCompany','src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/view.html/view.html','users/:id/recordings','Agent\x20properly\x20deleted!','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27inuse\x27','exportSelectedIvrCampaignHopperFinals','Error500Controller\x20as\x20vm','Tag\x20properly\x20saved!','You\x20can\x27t\x20mark\x20as\x20unread','api.intFreshdeskAccount.save','Asia/Macau','predictiveIntervalAvgHoldtime','SalesforceAccountController\x20as\x20vm','teams','application/json','toolbarColor','loading...','delete\x20whatsappCannedAnswers','template','api.userProfile.save','api.campaign.clone','EditChatWebsiteAppintervalDialogController','Antarctica/Palmer','${EXTEN:','ru-RU','api.intFreshsalesAccount.save','app.integrations.servicenowAccounts.edit','gotoPreviousStep','getFullYear','api.mailQueue.delete','SYSTEM:GETvoiceMusicOnHold','TeamsController\x20as\x20vm','Serbian','icon-chart-line','Date','app.jscripty.projects.edit','isFunction','moveQueueCampaignHopperFinal','getRegisteredPalettes','wasUserInPause','SYSTEM:DELETEwhatsappAccount','CustomizationpreferredController','intFreshsalesField','monitor','DASHBOARDS.WED','ABANDONED','Excel','eurturkishmale','Least\x20Recent','UserProfileController','OpenchannelQueue\x20properly\x20saved!','All\x20resources\x20enabled','src/js/modules/core/directives/ms-stepper/templates/vertical/step/vertical-step.html/vertical-step.html','Hungarian\x20Female','result','isObjectLike','delete\x20zendeskAccount','src/js/modules/main/apps/mail/views/mailQueues/edit/teamadd/teamadd.html/teamadd.html','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/system/dialog.html/dialog.html','sms/queues/:id','MOTIONDIALER.NEW_IVRCAMPAIGN','whatsappInteractionTags:save','el-GR','delete\x20ZendeskAccounts','faxAccount:update','cm/lists/:id/clone','DeskAccountsController','servicenowAccounts','MOTIONDIALER.ALL_TEAMS','General\x20properly\x20saved!','America/Kentucky/Monticello','pageTitle','arraysidebar','spyfaxInteraction','src/js/modules/main/apps/dashboards/views/general/agent/interaction/composeOpenchannel/dialog.html/dialog.html','selectAllZendeskAccounts','goTo','app.login','\x0a\x20\x20\x20\x20

','rpc/outbound/channels','api.squareOdbc.save','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','saveOpenchannelAccountApp','voice_queue_channel:remove','rpc@getTelephones','src/js/modules/main/apps/tools/views/dispositions/dispositions.html/dispositions.html','sms/reports/transfer/:id','bind','collapse','app.video','+06:00','chatGroup','voice/queues/reports/describe','openInteraction','voice/transfers/reports/describe','icecandidate','containerPos','uploading','out-left-aligned','DASHBOARDS.ATTENTION','opt2','DASHBOARDS.MAIL','$setPristine','DASHBOARDS.DRAFT_SAVE_WARNING_MESSAGE','faxMessage','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatProactiveAction?','Portuguese\x20(Nrazilian)','saveReport','added','vendor','CALLYSQUARE.NEW_ODBC','Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20contact?','Delete\x20InternalRoute','canScroll','dialogflowV2','templates/describe','mycontacts','chat/interactions/:id/abandon','TOOLS.NOTIFICATIONS.ACTION_CREATED_SUCCESS_TITLE','CHAT.REALTIME','WHATSAPP.REALTIME','\x27agentBusyFactor\x27','FaxQueueId','SYSTEM:UPDATECONFIGURATIONFIELD','dialPredictiveInterval','paragraph','DASHBOARDS.RECORDINGS','showFooter','users/:id/openchannel_accounts','chat/groups/:id/unread','savechanSpy','List\x20name','voicePrefix\x20properly\x20created','STAFF.CONFIRM','useLoader','getFolded','fax/queues/:id/users','without','Asia/Vladivostok','\x27text\x27','pick','app/forgot','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/gotoif/dialog.html/dialog.html','columnWidth','outboundNoAnswerCallsDay','setItem','\x27report_openchannel_queue\x27','\x20DESC','AgentGeneralJscriptyController','integrations/freshsales/accounts/:id','delete\x20vtigerConfiguration','api.intZohoConfiguration.update','permissions','switch','FaxAccountsRealtimeController\x20as\x20vm','rows','Mobile\x20','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/hangup/dialog.html/dialog.html','src/js/modules/main/apps/motiondialer/views/realtime/queues/view.html/view.html','msApi::requestSuccess','mohSounds','interval','VtigerConfiguration\x20properly\x20deleted!','checkRange','DASHBOARDS.CLOSED','OPENCHANNELACCOUNT:SEND','reduce','deleteDynamics365Account','Urdu\x20(India)','canned_answers/:id','European\x20Catalan\x20Female','filtered','DASHBOARDS.MAY','Hindi','availableStates','stopping','onSaveSmsQueue','SugarcrmAccountsController','sl-SI','America/Maceio','selectedVoicePrefixes','OpenchannelAccountDispositionsController','ar-IQ','splice','addNewPause','createOrEditServicenowAccount','INTEGRATIONS.EDIT_ZENDESKCONFIGURATION','createOrEditTriggerAnyCondition','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20smsCannedAnswer?','QUICKPANEL.NEW_INTERNAL_MESSAGE','upperFirst','treeDefaultData','Delete\x20OpenchannelAccount','TOOLS.NEW_TEMPLATE','voice/contexts/:id','rpc@getOutboundChannels','exportSelectedFaxAccountInteractions','jscripty','schedules','_self','DASHBOARDS.LAST_YEAR','CreateOrEditWhatsappAccountDialogController','Subject','800','SYSTEM:GET_FIELDS','square/projects/:id/users','Hungarian\x20(Hungary)','Dynamics365Configuration\x20properly\x20deleted!','rpc@getSmsQueues','UserChatDashboardGeneralController','Ukrainian\x20(Ukraine)','showDetails','MailMessageId','blacklist','createOrEditChatWebsite','msNav','UserWhatsappDashboardGeneralController\x20as\x20vm','Edited','UservoicePrefix','agentadddialog','congestion','Message\x20properly\x20sent!','\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','userProfile@get','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20chatCannedAnswer?','src/js/modules/main/apps/whatsapp/views/realtime/realtime.html/realtime.html','smsInteraction@get','fax/reports/queue/:id','vm.agent.showWebBar\x20==\x201','user_has_openchannel_interactions:save','app.motiondialer.realtime.abandonedcalls','VtigerAccountController\x20as\x20vm','globalCustomField','api\x20preview','Outgoing','STAFF.NOTIFICATIONS.PERMISSIONS_ENABLED_ALL_SUCCESS_MESSAGE_NO_RESOURCES','deselectODBC','availableOperators','JSCRIPTY.JSCRIPTY','analytics/default_reports/:id/query','plugins/:id','Chat\x20Report\x20Transfer','/:id?tab','id,field,operator,value,createdAt,updatedAt','ATTACHMENTS:GET','ComposeMailInteractionDialogController','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/listadd/listadd.html/listadd.html','showInteraction','app.core','CreateOrEditOdbcDialogController','Interval\x20properly\x20created','icon-audiobook','onUpdateFaxQueue','AgentHomeSmsController','api.jscriptyProject.update','endDate','VoiceRecording\x20properly\x20created','app.integrations.vtigerAccounts.edit','Condition','progresslogin','chatCannedAnswers','Delete\x20ChatCannedAnswer','CreateOrEditChatQueueDialogController','-name','#1e2129','deleteMailAccount','newQueueCampaign','sortableOptions','deleteSmsAccountApp','\x27yahoo\x27','showSmsInteraction','msNav::collapse','dispositions/:id/clone','tools','faxInteraction:save','Arabic\x20(United\x20Arab\x20Emirates)','\x20session','timer-clear','COUNT\x20(','src/js/modules/main/apps/tools/views/intervals/edit/apps/interval/dialog.html/dialog.html','ChineseTraditional','src/js/modules/main/apps/sms/views/realtime/realtime.html/realtime.html','\x27sw\x27','selectedFreshsalesAccounts','SYSTEM:DELETEsmsAccount','ScreenRecordingsController','ms-search-bar','api.cloudProvider.delete','selectedReportFields','selectedOutboundRouteApps','\x20properly\x20created','cloneUserProfile','getFirstAvailableContact','Accepted','IS_NOT_EQUAL','src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/teamadd/teamadd.html/teamadd.html','EditOpenchannelAccountAppcloseDialogController','Verdana,Geneva,sans-serif','mailSubtatuses','createOrEditMotionDialerQueue','CampaignId','/globalCustomFields','.txt','Bihari','2020-11-12T13:59:09.000Z','createOrEditExtractedReport','CONTACTMANAGER.MERGE_CONTACT','SYSTEM:GETConfigurations','resume','minutesS','delete\x20Contexts','outboundReCallsDay','table','baseUrl','mainForm','startProgressive','getDynamics365Accounts','app.integrations.freshdeskAccounts','voiceQueue:remove','sounds/describe','exportSelectedChatWebsiteOfflineMessages','msSearchBar','editDraft','green-300-fg\x20icon-phone-hangup','app.chat.chatQueues','FaxQueueController','/customDashboards','musiconholdMohSounds','faxQueue:update','trigger:browser:popup','license/:id','\x27en-CA\x27','countglobal','webcall','Indian/Christmas','getExtractedReports','api.intSugarcrmConfiguration.save','cmn-Hans-CN','app.openchannel.openchannelAccounts.edit','icon-phone','users/:id/chat_interactions','SYSTEM:GET_AGENTS','foreground','ChatGroupId','MailAccountController','voice/recordings/:id/clone','addNewDisposition','exportSelectedListCustomFields','userProfileSection@get','\x27E\x27','formViewer','securePassword','users/:id/queues','motion2.home.voice:','model','addNewMohSound','areaText','app.tools.pauses','SYSTEM:RESETLIST','weight','ExtractedReport\x20properly\x20saved!','\x27report_jscripty_questions\x27','$setDirty','app.analytics.reports','/assets/images/theme-options/vertical-nav-with-full-toolbar-2.jpg','Europe/Stockholm','','src/js/modules/main/apps/mail/views/mailAccounts/edit/view.html/view.html','chat/groups/:id/members','moveContactsIvrCampaignHopperFinal','campaigns/:id/clone','dispositions','Field','calleridname','editFaxAccountApp','api.chatQueue.delete','openchannel/reports/queue/describe','getUserProfiles','integrations/salesforce/configurations/:id/clone','CreateOrEditCustomizationDialogController','openchannel/accounts/:id/send','Basque\x20(Spain)','Mongolian','app/main/apps/openchannel','granted','Team','attachments','removeApiKey','addNewGeneral','SYSTEM:GET_LISTS','MusicOnHoldController\x20as\x20vm','DASHBOARDS.FAX','Attached\x20pm2\x20process\x20successfully\x20stopped','settings/:id/logo','seconds','eurfrenchfemale','createOrEditCustomDashboard','EditFaxAccountAppgotoifDialogController','dashboards','Asia/Nicosia','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/create/dialog.html/dialog.html','src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/noop/dialog.html/dialog.html','/updates','America/Regina','Allowing\x20disposition\x20for\x20call\x20%s','multiBarChart','createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','DASHBOARDS.ME','ERROR\x20OPEN\x20CONTACT','\x27turn\x27','\x279600\x27','duplicate','getVoiceQueuesChannelRedirect','onSaveWhatsappQueueChannel','Dialer\x20Hopper\x20Processing','STAFF.ALL_AGENTS','createApiKey','userProfiles/:id/resources','selectedMailAccounts','GlobalCustomField','hasResourcePermission','QUICKPANEL.EDIT_CHATGROUP','analytics/field_reports/:id/create_many','Australia/Broken_Hill','America/Rio_Branco','Galician','ProjectController\x20as\x20vm','deleteVoiceQueuesChannels','Weeks','context.name','save','dashboardSections','src/js/modules/main/apps/tools/views/customDashboards/edit/dashboard/dialog.html/dialog.html','getArrayErrors','General','Your\x20password\x20properly\x20updated','mail/interactions/:id/messages','The\x20status\x20will\x20be\x20changed\x20to:\x20','src/js/modules/main/apps/voice/views/realtime/agents/view.html/view.html','port','app/main/apps/whatsapp','Delete\x20trigger','form','$broadcast','getResources','whatsappAccountApps','motion2.','usenglishmale','OpenchannelAccount','finals','arrayrecordingFormat','SYSTEM:LISTS_ASSOCIATION','ispeechAsrLanguage','VIDEO.FILE_NOT_FOUND','flip','Invalid\x20transfer','TOOLS.NOTIFICATIONS.TRIGGER_DELETE_TITLE','apps.video','ComposeSmsInteractionDialogController','exportSelectedContacts','Calibri','getFinals','angularMaterialFormBuilder','-02:00','arraystrategy','isActive','squareOdbc@get','ContactController','sugarcrmAccounts','motionThemes','Konqueror','ms-nav','#3c4252','Justin\x20(English,\x20US,\x20Male)','voiceRecording@get','deleteIvrCampaign','virtual','api.cloudProvider.update','moveSelectedIvrCampaignHopperFinals','app.chat.chatWebsites.edit','minimize','hopperHistory','addNewMailAccount','delete\x20mohSounds','g723','delete\x20smsQueue','\x27no\x27','api.screenRecording.delete','openchannel/messages/:id/reject','getHistories','api.interval.save','createdAt,updatedAt,ContactId,phone','EditSmsAccountAppqueueDialogController','dialogflow_language','UserProfilepermissionsmanageController','Campaign\x20Without\x20Lists','apps.staff','ngMessages','arraysort','stateParams','internalDial','Error\x20creating\x20queue!','Europe/Amsterdam','SYSTEM:DELETEwhatsappQueue','filter','blacklistadddialog','src/js/modules/main/apps/dashboards/views/general/agent/interaction/agent.general.interaction.dialog.html/agent.general.interaction.dialog.html','apps.chat.realtime','view','America/Cayman','delete\x20whatsappCannedAnswer','root','selectedFaxAccounts','Project\x20properly\x20cloned','ngSanitize','||User:=$eq[','$selectedColor','ANALYTICS.NEW_REPORT','angucomplete-alt','src/js/modules/main/apps/fax/views/faxAccounts/edit/view.html/view.html','fromTemplate','\x27clickatell\x27','openchannelInteractionTags:save','app.contactmanager.globalCustomFields','faxInteraction@get','getVtigerConfiguration','account_id','actionOptions','setSelectedDate','available','addGroup','America/Indiana/Indianapolis','createOrEditQueueCampaignHopper','icon-apps','DASHBOARDS.JANUARY','','\x27eu-west-1\x27','src/js/modules/main/apps/integrations/views/dynamics365Accounts/create/dialog.html/dialog.html','INTEGRATIONS.NEW_DYNAMICS365CONFIGURATION','ar-KW','onRemoveUserWhatsappQueue','offHook','IntervalId','getPlugins','optionsBuilder','onSaveWhatsappQueue','300\x20400','interpolate','Raveena\x20(English,\x20Indian,\x20Female)','includes','selectedExtractedReports','UserVoiceDashboardGeneralController','left','getWhatsappInteractions','blue','newOpenchannelCannedAnswer','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20offlineMessages?','Unable\x20to\x20convert\x20answer','id,name,dialPrefix','DASHBOARDS.','ukenglishfemale','TAB','whatsappCannedAnswer','api.user.createApiKey','selectAllInboundRoutes','erlangCallToSecond','has','api.smsQueue.delete','appVersion','outboundrouteApps','selectedInternalRouteApps','nolimit','getDescriptions','.csv','api.chatWebsite.delete','_interactions:remove','#chat-dialog','fresh','chatAccounts','dateStart','credential','en-CA','video','ms-navigation-node','title','sms/accounts/:id/users','Network\x20properly\x20saved!','saveDisposition','users/:id/mail/interactions','getHeaderErrors','userProfiles/:id','exportSelectedMusicOnHoldMohSounds','getReportFields','capacity','Bengali','onIcecandidate\x20->\x20session,\x20data','uploadSounds','Agent\x20password\x20properly\x20updated!','listOrderAsc','America/Araguaina','Atlantic/Azores','deleteAgent','Zulu\x20(South\x20Africa)','integrations/freshdesk/configurations/:id/fields','/queue_params','src/js/modules/main/apps/voice/views/outboundroutes/outboundroutes.html/outboundroutes.html','Templates','treeCustomInstance','awsPollyRegion','\x27gsm\x27','Win','Chat\x20Messages','VOICE.EDIT_CONTEXT','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20teams?','saveServicenowAccount','fax_queue_waiting_interaction:remove','getTriggerAnyConditions','killProcess','moveContactsQueueCampaignHopperFinal','ukenglishmale','api.whatsappAccount.save','/marketplace','FaxAccountId','sep','onIntegrationSelection','app/main/apps/plugins','User','EditInternalAppinternaldialDialogController','triggerAnyConditions','EditSmsAccountAppintervalDialogController','registered','Gujarati\x20(India)','\x27very\x27','lists','integrations/zoho/fields/:id/clone','\x27power\x27','Geraint\x20(English,\x20Welsh,\x20Male)','delete\x20servicenowConfiguration','phonenumber','basicstyles','gotoZendeskAccounts','src/js/modules/main/apps/contactmanager/views/companies/companies.html/companies.html','LocalNET','mapValues','\x27KHOMP\x27','openchannel/interactions/:id/clone','api.intServicenowAccount.save','integrations/zoho/accounts/:id','src/js/modules/main/apps/mail/views/mailQueues/create/dialog.html/dialog.html','SYSTEM:EDITMODALSHOW','src/js/modules/main/apps/voice/views/chanSpies/chanSpies.html/chanSpies.html','FreshsalesAccount','sugarcrmConfiguration','The\x20faxAccount\x20will\x20be\x20deleted.','deleteInboundRoute','EditSmsAccountAppgotoifDialogController','delete\x20queueCampaign','arraycrudPermissions','cellName','user_has_','Smtp','api.plugin.delete','src/js/modules/main/apps/voice/views/voiceRecordings/edit/view.html/view.html','setFormatTime','CreateOrEditDeskAccountItemDialogController','VIDEO.EDIT_SCREENRECORDING','app.fax.faxAccounts','dialogflow','auth','integrations/servicenow/accounts/describe','Openchannel\x20Queues','trunk','CreateOrEditZendeskAccountDialogController','delete\x20voicemail','hue-1','sessionId','KHOMP','SettingsController','INTEGRATIONS.DYNAMICS365ACCOUNTS','getOpenchannelAccounts','deselectFreshsalesAccounts','left_join','cloudProvider','Italian','whatsapp/reports/transfer/describe','getOutboundRouteApps','handleKeydown','\x20properly\x20deleted!','onMessageSave','integrations/reports/:id','vm.voiceQueue.joinempty.length\x20===\x201\x20&&\x20vm.voiceQueue.joinempty[0]\x20===\x20\x27loose\x27','THEMES','UsersController\x20as\x20vm','apps.callysquare.odbcs','delete\x20deskAccount','delete\x20Templates','formatdate','deleteWhatsappQueue','SMS.SMSQUEUES','CreateOrEditSugarcrmAccountItemDialogController','sk-SK','Delete\x20MohSound','addNewAgent','deleteSelectedInternalRouteApps','CALLYSQUARE.PROJECTS','\x27IN\x27','updating','deleteOpenchannelCannedAnswer','whatsappAccount','api.cmCompany.update','timer-set-countdown','vm.voiceQueue.leavewhenempty.length\x20===\x201\x20&&\x20vm.voiceQueue.leavewhenempty[0]\x20===\x20\x27yes\x27','sms.smsAccounts','AccountId','-createdAt','The\x20general\x20will\x20be\x20deleted.','Telephone\x20properly\x20created','EditInternalAppexternaldialDialogController','delete\x20project','Finnish','America/Phoenix','cmHopperFinal','fas\x20fa-robot','Mobile','Motion\x20License\x20Request','Staff','deselectServicenowAccounts','Delete\x20List','America/Hermosillo','app.tools.tags','America/Creston','English\x20(Canada)','indexOf','variable@get','chanSpy','.draggable','PUT','createdAt,updatedAt,id,type,value,username,password','amber-A200','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20odbcs?','MxGraphImportXMLController','delete\x20SquareRecordings','CreateOrEditActionDialogController','apps.sms.realtime','selectedContact','src/js/modules/main/apps/integrations/views/zendeskAccounts/create/dialog.html/dialog.html','createdAt,updatedAt,id,name,dsn,description','None','src/js/modules/core/directives/ms-search-bar/ms-search-bar.html/ms-search-bar.html','chat/interactions/:id/attachment_download','deleteTemplate','saveAgents','finish','createOrEditIntervalInterval','integrations/salesforce/accounts/:id','OpenchannelAccountActionsController','CreateOrEditAnyConditionDialogController','app.staff.userProfiles.edit','user_has_fax_interactions:save','Delete\x20WhatsappAccount','src/js/modules/main/apps/settings/views/smtps/smtps.html/smtps.html','icon-google-earth','contents','\x27fax_queues\x27','opus','Please\x20select\x20a\x20variable','Message\x20deleted!','scheduled','goalname','VIDEO.SCREENRECORDINGS','SYSTEM:DELETEvoiceExtension','api.cannedAnswer.save','Company\x20properly\x20deleted!','fax/interactions/:id/download','addNewMusicOnHold','swswedishfemale','CreateOrEditDeskConfigurationDialogController','api.intServicenowConfiguration.delete','transferHook\x20->\x20payload','geEditor','questions','OPENCHANNEL.OPENCHANNELACCOUNTS','\x27report_square\x27','GET_TRUNK','exportSelectedIvrCampaignHopperHistories','chat/interactions/:id/tags','DeskAccount\x20properly\x20created','voice/queues/:id/hopper_histories','openchannel/queues/:id/clone','/queue_calls','app/main/apps/marketplace','selectAllContexts','icon','SmtpController','rec','contextmenu','participants','CreateOrEditMusicOnHoldDialogController','assignTo','socket','Import\x20has\x20been\x20stopped!','/whatsappAccounts','src/js/modules/errors/404/error-404.html/error-404.html','saveSmsAccountApp','Mathieu\x20(French,\x20Male)','SYSTEM:ADDTAGS','userpic','integrations/vtiger/accounts/:id/configurations','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/agentadd/agentadd.html/agentadd.html','loginSSO','createdAt,updatedAt,id,name,level,ParentId','deleteSelectedWhatsappAccountWhatsappCannedAnswers','integrations/describe','\x27chat_offline_messages\x27','src/js/modules/main/apps/motiondialer/views/realtime/ivr_campaigns/view.html/view.html','integrations/desk/configurations/:id/clone','hasChildren','contact_import_error','token','callbackuniqueid','Smtp\x20properly\x20verified','-08:00','Delete\x20Hopper','SYSTEM:DELETEtrigger','sms/accounts/:id/dispositions','SYSTEM:GETdashboard','Scheduled\x20call','mailbox','CALLYSQUARE.NEW_PROJECT','ERROR\x20OPEN\x20INTERACTION','sr-RS','deleteSelectedVoicemails','apiKey','id,fullname,name,internal','InternalRouteController\x20as\x20vm','Team\x20properly\x20saved!','groups','triggerallConditions','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/autoreply/dialog.html/dialog.html','getResponseSheetHeaders','openchannelMessage:update','VOICE.OUTBOUNDROUTES','deselectVoicePrefixes','Spanish\x20(Puerto\x20Rico)','squareReportDetail','ChatCannedAnswer\x20properly\x20saved!','+=400','collapseAnimation','uninstall\x20plugin','pendingChanges','SYSTEM:GETmailAccounts','deleteCannedAnswer','originateInProgress','Taiwan\x20Chinese\x20Female','extraHeaders','Brazilian','api.setting.save','deselectDeskAccounts','initialValue','openchannelTransferReport','api.intSalesforceAccount.delete','\x27ap-southeast-2\x27','Trident/7','agents','hy-AM','FaxQueue\x20updated!','AgentqueueaddController','SYSTEM:GET_OPENCHANNELACCOUNTS','block','globalCustomFieldForm','userWhatsappQueue:remove','deletechanSpy','isArray','openchannelAccountOpenchannelCannedAnswers','fullPath','autoCreate','queueCampaign','ZendeskAccountController','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20dynamics365Accounts?','apps.motiondialer','MyBody','Quarters','Are\x20you\x20sure\x20want\x20to\x20reset\x20the\x20list\x20','getOpenchannelAccountLabel','America/Boa_Vista','Zendesk','api.trigger.save','','Agents\x20association\x20has\x20been\x20updated!','dynamics365','Pacific/Gambier','SMS\x20Report\x20Transfer','getOrderBy','anyThirdLevelDisposition','getWhatsappQueuesWaitingInteractions','TOOLBAR.SPANISH','America/Argentina/Ushuaia','motion2.home.openchannel:','The\x20variable\x20will\x20be\x20deleted.','false','api.voiceChanSpy.delete','TOOLS.NOTIFICATIONS.CONDITIONS_DELETED_SUCCESS_TITLE','src/js/modules/main/apps/dashboards/views/general/agent/interaction/tag/dialog.html/dialog.html','whatsappAccountInteractions','\x27en-IN\x27','selectedListCustomFields','exportSelectedDynamics365Accounts','newCustomization','GoSub','hopperBlack','membername','InternalRouteActionsController','callbackUrl','apps.sms','America/Argentina/La_Rioja','getAssignedCompanies','America/Yellowknife','mailQueue:update','changepassworddialog','getChanSpies','WHATSAPP.EDIT_WHATSAPPACCOUNT','The\x20project\x20will\x20be\x20deleted.','callStatuses','Indian/Mahe','Arabic\x20(Israel)','api.cmList.get','exportSelectedMetrics','getCustomDashboards','stop','European\x20Italian\x20Female','voice/recordings/:id/downloads','chatQueue','querySearch','MAIL.EDIT_','onRemoveUserChatQueue','VoiceRecordingsController','getProcesses','HANGUPCAUSE_27','$id','integrations/dynamics365/configurations/:id/descriptions','user_has_whatsapp_interactions:remove','TOOLS.EDIT_ALLCONDITION','deleteSelectedOpenchannelAccountInteractions','arraybuffer','SalesforceAccountController','EU\x20(Paris)','arraydtmfmode','QueuesSmsRealtimeController\x20as\x20vm','ContextsController','Yahoo','deleteWhatsappAccount','rpcOpenchannelQueues','whatsappInteractionDownload','container','SquareRecordings','deleteOpenchannelAccount','HANGUPCAUSE_16','INTEGRATIONS.NEW_SERVICENOWACCOUNT','chat/websites/:id/offline','createOrEditChatWebsiteOfflineMessage','Metric','Marlene','api.faxQueue.save','transcribeStatus','rpcFaxAccounts','delete\x20smsCannedAnswers','schedule','whatsapp_queue:save','userMailQueue:remove','rpc/mail/accounts','TOOLS.NOTIFICATIONS.ACTION_DELETE_TITLE','src/js/modules/main/apps/dashboards/views/general/user/mail/user.general.mail.html/user.general.mail.html','INTEGRATIONS.NEW_ZOHOACCOUNT','apps.motiondialer.realtime','\x27TI\x27','100','=msNavigationHorizontalNode','newSmtp','Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar\x202','src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/voicemail/dialog.html/dialog.html','servicenowAccount','sendDTMF','integrations/freshdesk/configurations/:id/tags','/var/opt/motion2/server/files/sounds/converted/','$setValidity','DASHBOARDS.CHOOSE','TOOLS.NEW_CANNEDANSWER','DASHBOARDS.FRI','allowmessenger','CompaniesController','EditOpenchannelAccountApp','treeConfig','TOOLS.EDIT_SOUND','lastDayMonth','QUICKPANEL.WARNING','LicenseController\x20as\x20vm','getAgentLabel','create','headerWhiteLabel','src/js/modules/main/apps/chat/views/chatWebsites/edit/view.html/view.html','\x20deleted!','Guarani','exportSelectedProjectSessions','sectionId','gdpr','deleteReportField','account','pause','0.26','addNewCustomField','migrations/:id','loose','
\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Queue:\x20','newMohSound','addNewExtractedReport','addNewInternalRoute','integrations/freshdesk/configurations/describe','api.mailQueue.update','Interaction\x20has\x20been\x20tagged!','src/js/modules/main/apps/integrations/views/zendeskAccounts/edit/view.html/view.html','Asia/Taipei','squareMessage','\x27WAV\x27','deleteSubjectConfirm','app/main/apps/voice','ComposeWhatsappInteractionDialogController','getHeader','dateTime','treeDefaultConfig','uploadPlugins','America/North_Dakota/New_Salem','deselectChatQueues','getFreshdeskConfiguration','UserList','accentPalette','TOOLS.NOTIFICATIONS.TRIGGER_DELETED_SUCCESS_TITLE','SmsCannedAnswer\x20properly\x20deleted!','Error\x20initializing\x20Jabra\x20integration','CreateOrEditChatGroupDialogController','\x27sms_accounts\x27','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20salesforceAccounts?','SYSTEM:GET','selectedCannedAnswers','America/Anchorage','push','GROUP\x20BY\x20','listOrder','CreateOrEditTeamDialogController','SYSTEM:DOWNLOADJSON','$viewContentAnimationEnded','...','factory','api.cannedAnswer.delete','CreateOrEditGeneralDialogController','msNav::pushToLockedList','=interval','counter','intervalIntervals','The\x20chatQueue\x20will\x20be\x20deleted.','WhatsappQueueId','msNav::expandMatchingToggles','\x27pt-PT\x27','copydialog','newsAlertHide','selectedTrunks','msRandomClass','getVoicemailMessages','deleteOpenchannelAccountOpenchannelCannedAnswer','deleteProjectSession','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20hopperBlacks?','api.intDeskAccount.update','data1','msHorizontalStepperStep','WHATSAPP.SELECTED_TEAMS','QueuesWhatsappRealtimeController','America/Halifax','selectedItemChange','canned_answers/describe','tif','getDispositions','extension','smsInteractions','\x27ringing\x27','imagesLoaded','UploadPluginDialogController','Arabic\x20(Egypt)','\x27g729\x27','$document','exportSelectedVtigerAccounts','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20openchannelCannedAnswers?','INTEGRATIONS.INTEGRATIONS','field,alias','gotoVtigerAccounts','Europe/Gibraltar','createOrEditContext','ur-IN','openchannelInteraction@get','api.squareProject.update','arrayoptions','day','SYSTEM:UPDATElicense','newSmsCannedAnswer','orientation','onRemoveWhatsappQueueChannel','api.intZohoAccount.update','Please\x20retry\x20with\x20a\x20new\x20file','DeskAccounts','refresh','createOrEditSquareRecording','OutboundCallsVoiceRealtimeController','app.fax.realtime.accounts','CDR(tag)=','Europe/Dublin','header','QUEUE_NAME','AgentsSmsRealtimeController\x20as\x20vm','SYSTEM:DELETEfaxQueue','es-EC','\x27tcp\x27','PREVIOUS\x20CONTACTS\x20NOT\x20AVAILABLE','app.fax.faxQueues.edit','delete\x20pause','countcongestionretry','Contact\x20Relation\x20Update','start','api.condition.update','deletePlugin','intDynamics365Account@get','UserProfile\x20properly\x20saved!','dualMultiselectOptions','src/js/modules/main/apps/jscripty/views/projects/edit/view.html/view.html','getActions','VOICE.NEW_MUSICONHOLD','some','$attrs','EditOpenchannelAccountApptagDialogController','pt-PT','deleteSelectedNetworks','matchingField','apps.fax.faxAccounts','localHold','WhatsappQueue\x20updated!','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20companies?','src/js/modules/main/apps/openchannel/views/openchannelQueues/create/dialog.html/dialog.html','whatsapp/reports/transfer/:id','America/Argentina/Catamarca','SmsRealtimeController','themes','Read_permission','indent','ChanSpiesController\x20as\x20vm','src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/interval/dialog.html/dialog.html','deep-orange','src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/interval/dialog.html/dialog.html','Delete\x20DeskConfiguration','trigger:browser:url','toggleCollapsed','addNewDeskAccount','app/main/apps/mail','EditWhatsappAccountAppautoreplyDialogController','French\x20(Canada)','Asia/Dubai','ZohoAccountsController\x20as\x20vm','mapKey','src/js/modules/main/apps/voice/views/outboundroutes/edit/apps/custom/dialog.html/dialog.html','INTEGRATIONS.EDIT_FRESHDESKCONFIGURATION','app.integrations.salesforceAccounts','newSalesforceConfiguration','freshdeskConfiguration','Filiz','monthDayTo','api.jscripty.account','rules','contacts','api.template.save','allowedItems','QueuesFaxRealtimeController\x20as\x20vm','Australia/Eucla','pink','speakerVolume','Kimberly\x20(English,\x20US,\x20Female)','newChatGroup','app.voice.realtime.queues','Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?','material.components.expansionPanels','api.openchannelAccount.save','deleteChatWebsite','Joanna\x20(English,\x20US,\x20Female)','/api/chat/websites/:id/avatar','openchannelInteractionDownload','$[${XCALLY-MOTION-ANSWER}=0]?Answer','CreateOrEditNetworkDialogController','FreshdeskConfiguration\x20properly\x20deleted!','src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/view.html/view.html','deleteMohSound','chat/interactions/:id/custom_update','voice/queues/describe','deleteSelectedSubjects','GROUP_CONCAT\x20DESC','develop','SYSTEM:GETmailQueue','TOOLS.NOTIFICATIONS.ACTIONS_DELETED_SUCCESS_TITLE','500','Configuration','SYSTEM:GETvoiceMails','app.fax.realtime.agents','app.fax.realtime','openchannelQueueReport','analyticExtractedReport@get','\x27wav\x27','getDate','deleteSelectedCompanies','FooterController\x20as\x20vm','markAsUnread','api.disposition.save','Node','s:\x20Skip\x20the\x20playback\x20of\x20the\x20channel\x20type\x20(i.e.\x20SIP,\x20IAX,\x20etc)\x20when\x20speaking\x20the\x20selected\x20channel\x20name.','exportSelectedInternalRoutes','CreateOrEditGlobalCustomFieldDialogController','agent.name','openchannelAccountApp','api/users/','localstationid','MailQueue\x20properly\x20deleted!','voiceMail','maxTimeUnit','Finnish\x20(Finland)','MusicOnHold\x20properly\x20deleted!','ngAnimate','vm_home.sidebar','exportSelectedIvrCampaignHoppers','deleteSelectedOpenchannelAccounts','):Goto(','company','FAX.FAXQUEUES','EditWhatsappAccountApp','slice','newOpenchannelQueue','VOICE.NEW_OUTBOUNDROUTE','/assets/images/theme-options/vertical-nav-with-full-toolbar.jpg','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','chatPause','private_key','chatStatus','Classic','newAllCondition','uisref','users/:id/pause','delete\x20trunk','CDR(routeid)=','deletePause','chip-disabled','keyCode','chat/internal/messages/users','app.analytics','deleteOpenchannelQueuesWaitingInteractions','deleteVoiceRecording','hopper','Value','css','Delete\x20Network','IS_GREATER_THAN_OR_EQUAL_TO','Channel\x20','es-VE','Sound\x20properly\x20created','Project\x20properly\x20deleted!','voice/dials/reports/describe','deleteIntervalInterval','SchedulesController\x20as\x20vm'];(function(_0x433c0e,_0xc6c52b){const _0xd29ed7=function(_0x3e0402){while(--_0x3e0402){_0x433c0e['push'](_0x433c0e['shift']());}};_0xd29ed7(++_0xc6c52b);}(a0_0xc6c5,0x16a));const a0_0xd29e=function(_0x433c0e,_0xc6c52b){_0x433c0e=_0x433c0e-0x0;let _0xd29ed7=a0_0xc6c5[_0x433c0e];return _0xd29ed7;};const _0x226888=a0_0xd29e;(self[_0x226888('0x12fc')]=self['webpackChunkmotion_client']||[])['push']([[0x8f],{0x1efd:(_0x3e0402,_0x4594b1,_0x4cf2bc)=>{const _0x4376d8=_0x226888;'use strict';var _0x5b8e93=_0x4cf2bc(0x304);_0xd2e4af[_0x4376d8('0x1b9c')]=['$httpProvider'];function _0xd2e4af(_0x366d79){const _0x8b05d4=_0x4376d8;_0x366d79[_0x8b05d4('0xc6')][_0x8b05d4('0x269f')](_0x8b05d4('0x6f6'));}const _0x4f5370=_0xd2e4af;_0x4c3f7f[_0x4376d8('0x1b9c')]=['$transitions'];function _0x4c3f7f(_0x4785ec){const _0x54f5bb=_0x4376d8,_0x27ed61={'to':function(_0x54b873){const _0x173a03=a0_0xd29e;return _0x54b873[_0x173a03('0x18e8')]===!![];}},_0x4a4773={'to':function(_0x3b4aa3){const _0x49a031=a0_0xd29e;return _0x3b4aa3['name']!==_0x49a031('0x229b');}},_0x31edc8={'to':function(_0x290137){return _0x290137['permissionId'];}},_0x137cc5={'to':function(_0x2c6169){const _0x29105f=a0_0xd29e;return _0x2c6169[_0x29105f('0x14e')][_0x29105f('0x2aa')]===_0x29105f('0x980');}},_0x27850f=function(_0x14e554){const _0x2bc8e5=a0_0xd29e,_0x107ff9=_0x14e554[_0x2bc8e5('0x1f12')]()[_0x2bc8e5('0x1c53')]('Auth'),_0x4d501d=_0x14e554[_0x2bc8e5('0x20df')][_0x2bc8e5('0x1304')];return!_0x107ff9[_0x2bc8e5('0x214f')]()?_0x4d501d[_0x2bc8e5('0x8cf')](_0x2bc8e5('0x229b'),undefined,{'reload':!![]}):_0x107ff9[_0x2bc8e5('0x1c84')]()['catch'](function(){const _0x50f7fe=_0x2bc8e5;return _0x4d501d['target'](_0x50f7fe('0x229b'),undefined,{'reload':!![]});});},_0x362225=function(_0x5e0f2d){const _0x48a737=a0_0xd29e,_0x269ec8=_0x5e0f2d[_0x48a737('0x1f12')]()[_0x48a737('0x1c53')](_0x48a737('0x1885')),_0x3628c9=_0x5e0f2d[_0x48a737('0x20df')][_0x48a737('0x1304')],_0x4ecc5d=_0x5e0f2d[_0x48a737('0x10a9')]();if(_0x269ec8[_0x48a737('0x1ba2')](_0x48a737('0x684'))&&_0x4ecc5d['name']!=_0x48a737('0x980'))return _0x3628c9[_0x48a737('0x8cf')](_0x48a737('0x980'),{'redirect':![]},{'reload':!![]});},_0x2e5cca=function(_0x2473e9){const _0xd8e5b4=a0_0xd29e,_0x16f106=_0x2473e9[_0xd8e5b4('0x1f12')]()[_0xd8e5b4('0x1c53')]('Auth'),_0x365437=_0x2473e9[_0xd8e5b4('0x20df')][_0xd8e5b4('0x1304')],_0x1a5cb8=_0x2473e9['$to']();if(_0x16f106[_0xd8e5b4('0x1ba2')]('user')){if(!_0x16f106[_0xd8e5b4('0xf51')](_0x1a5cb8[_0xd8e5b4('0x1eb1')]))return _0x365437['target'](_0xd8e5b4('0x980'),{'redirect':![]},{'reload':!![]});else{const _0x3cf5b1=_0x2473e9[_0xd8e5b4('0x16fb')]()['id']?Number(_0x2473e9[_0xd8e5b4('0x16fb')]()['id']):undefined;if(_0x3cf5b1)return _0x16f106[_0xd8e5b4('0x242f')](_0x1a5cb8[_0xd8e5b4('0x1eb1')],_0x3cf5b1)[_0xd8e5b4('0x16df')](function(){const _0x570913=_0xd8e5b4;return _0x365437[_0x570913('0x8cf')](_0x1a5cb8['parent']['name'],{'redirect':![]},{'reload':!![]});});}}},_0x3d29f6=function(_0x22c989){const _0x4b82c8=a0_0xd29e,_0xf4611b=_0x22c989[_0x4b82c8('0x1f12')]()[_0x4b82c8('0x1c53')](_0x4b82c8('0x1885')),_0x956ade=_0x22c989[_0x4b82c8('0x20df')][_0x4b82c8('0x1304')];if(_0xf4611b[_0x4b82c8('0x1ba2')](_0x4b82c8('0x221e'))&&!_0xf4611b[_0x4b82c8('0xf51')](0x64))return _0x956ade['target'](_0x4b82c8('0x980'),{'redirect':![]},{'reload':!![]});};_0x4785ec[_0x54f5bb('0x1ec5')](_0x27ed61,_0x27850f),_0x4785ec[_0x54f5bb('0x164d')](_0x4a4773,_0x362225),_0x4785ec[_0x54f5bb('0xca7')](_0x31edc8,_0x2e5cca),_0x4785ec[_0x54f5bb('0xca7')](_0x137cc5,_0x3d29f6);}const _0x21b8a0=_0x4c3f7f;var _0x77ba33=_0x4cf2bc(0x1956),_0x49cbdd=_0x4cf2bc['n'](_0x77ba33),_0x19d5c7=_0x4cf2bc(0x17d),_0x107a13=_0x4cf2bc['n'](_0x19d5c7);const _0x487a2a=_0x4cf2bc['p']+'src/js/modules/auth/services/hotdesk/dialog.html/dialog.html';_0x51d996[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x28db'),'$q','api',_0x4376d8('0x198f'),_0x4376d8('0x26ca')];function _0x51d996(_0x9946b0,_0x1cd33c,_0x3c60c3,_0x110694,_0x2a6a99,_0x4b99ba){let _0x4ec75c;const _0x502820={'getToken':_0x11e9c1,'getCurrentUser':_0x35a7b1,'getPermissions':_0x3734ef,'hasChildrenPermissions':_0x4f4bd6,'hasModulePermissions':_0xd4faed,'hasModulesPermissions':_0x2bba18,'hasRole':_0x1b9e96,'hasPermission':_0x120b0a,'hasResourcePermission':_0x17caff,'hasSectionPermissions':_0x3c8601,'hasSectionsPermissions':_0x9c3194,'isAgent':_0x4a8f73,'isAdmin':_0xe0b6be,'isLoggedIn':_0x1c358c,'isTelephone':_0x1df397,'isUser':_0x4fd7e8,'login':_0x40543e,'logout':_0x3562f3,'parseCrudPermissions':_0x5329a8,'queueLogin':_0xac169a,'reloadPermissions':_0x3bcc35,'removeCookies':_0x594548,'retrieveUser':_0x1b65d5,'setCurrentUser':_0x338d8d,'getAuthenticationType':_0x277589,'loginSSO':_0x5d0067};return _0x502820;function _0x11e9c1(){const _0x429028=a0_0xd29e;return _0x1cd33c[_0x429028('0x1c53')]('motion.token');}function _0x35a7b1(){return _0x4ec75c;}function _0x338d8d(_0xb0394){const _0x16a75=a0_0xd29e;_0x4ec75c=_0x49cbdd()[_0x16a75('0x1ced')](_0x4ec75c,_0xb0394);}function _0xac169a(_0x900df8){return _0x3c60c3(function(_0x3adfd9,_0x112929){const _0x1c6253=a0_0xd29e;_0x110694[_0x1c6253('0x221e')][_0x1c6253('0x1c45')]({'id':_0x4ec75c['id'],'device':_0x1c6253('0x11'),'intrf':_0x900df8})[_0x1c6253('0x1af5')][_0x1c6253('0x17e7')](function(_0x2896c5){_0x3adfd9(_0x2896c5);})[_0x1c6253('0x16df')](function(_0x4a4089){_0x112929(_0x4a4089);});});}function _0x264eef(){return _0x3c60c3(function(_0x5ee0ab,_0x19e27d){const _0x8337c7=a0_0xd29e;_0x110694[_0x8337c7('0x221e')][_0x8337c7('0xff8')]({'id':_0x4ec75c['id'],'device':'web'})[_0x8337c7('0x1af5')][_0x8337c7('0x17e7')](function(){_0x5ee0ab();})[_0x8337c7('0x16df')](function(_0x29f2e6){_0x19e27d(_0x29f2e6);});});}function _0x3286d1(_0x405bba){return _0x3c60c3(function(_0xb0e8fd,_0xb75990){const _0x305412=a0_0xd29e,_0x1c789c={'online':_0x405bba,'lastLoginAt':_0x405bba?_0x107a13()()[_0x305412('0x1c0d')]('YYYY-MM-DD\x20HH:mm:ss'):undefined};_0x110694[_0x305412('0x221e')][_0x305412('0x27ba')]({'id':_0x4ec75c['id']},_0x1c789c)[_0x305412('0x1af5')][_0x305412('0x17e7')](function(_0x518fd3){_0xb0e8fd(_0x518fd3);})[_0x305412('0x16df')](function(_0x4abb90){_0xb75990(_0x4abb90);});});}function _0x40543e(_0x5a83b7){return _0x3c60c3(function(_0x47af78,_0x5b35ba){const _0x33da37=a0_0xd29e;_0x110694['auth'][_0x33da37('0xd0c')](_0x5a83b7)['$promise']['then'](function(_0x5a05cb){const _0x1bb155=_0x33da37;return _0x1cd33c[_0x1bb155('0x2d8')](_0x1bb155('0xb2a'),_0x5a05cb['token']),_0x110694[_0x1bb155('0x221e')]['get']({'id':_0x5a05cb['id']})[_0x1bb155('0x1af5')];})[_0x33da37('0x17e7')](function(_0xb2a095){const _0x1c8c38=_0x33da37;_0x4ec75c=_0xb2a095,_0x4ec75c['lastLoginAt']=_0x107a13()()[_0x1c8c38('0x1c0d')]('YYYY-MM-DD\x20HH:mm:ss'),_0x4661a5(_0x1c8c38('0x12c8'));})['then'](function(){const _0x4afe23=_0x33da37;if(_0x4a8f73()&&_0x4ec75c[_0x4afe23('0xa79')]===0x1&&_0x4ec75c['hotdesk'])return _0x9946b0[_0x4afe23('0x28e2')]({'controller':_0x4afe23('0x27f0'),'controllerAs':'vm','templateUrl':_0x487a2a,'parent':angular[_0x4afe23('0x1ce1')](_0x4b99ba[_0x4afe23('0x13aa')]),'clickOutsideToClose':![],'resolve':{'telephones':['apiResolver',function(_0x1f7f75){const _0x51c6f6=_0x4afe23;return _0x1f7f75[_0x51c6f6('0x898')]('user@get',{'fields':_0x51c6f6('0x25cc'),'role':_0x51c6f6('0x21b5'),'nolimit':!![]});}]}});})[_0x33da37('0x17e7')](function(_0x412ce1){if(_0x4a8f73()&&_0x4ec75c['showWebBar']!==0x0)return _0xac169a(_0x412ce1);else{if(_0xe0b6be()||_0x4fd7e8())return _0x3286d1(!![]);else return;}})[_0x33da37('0x17e7')](function(_0x3e15aa){const _0x45a4b4=_0x33da37;_0x4ec75c=_0x49cbdd()[_0x45a4b4('0x1048')](_0x4ec75c,_0x3e15aa),_0x47af78();})['catch'](function(_0x30fa68){_0x5b35ba(_0x30fa68);});});}function _0x594548(){const _0x4a141c=a0_0xd29e;_0x1cd33c['remove'](_0x4a141c('0xb2a')),_0x4ec75c&&(_0x2a6a99[_0x4a141c('0x1a93')][_0x4a141c('0x105a')](_0x4a141c('0x589')+_0x4ec75c['id']),_0x2a6a99[_0x4a141c('0x1a93')][_0x4a141c('0x105a')]('motion.authenticationtype'),_0x4ec75c=null);}function _0x3562f3(_0x1d5d5d){return _0x3c60c3(function(_0x1def76,_0x222a05){const _0x3e588f=a0_0xd29e;_0x1d5d5d?(_0x594548(),_0x1def76()):_0x3c60c3['resolve']()[_0x3e588f('0x17e7')](function(){if(_0x4a8f73()&&_0x4ec75c['showWebBar']!==0x0)return _0x264eef();else{if(_0xe0b6be()||_0x4fd7e8())return _0x3286d1(![]);else return;}})['then'](function(){_0x594548(),_0x1def76();})[_0x3e588f('0x16df')](function(_0x4556c9){_0x222a05(_0x4556c9);});});}function _0x1c358c(){return _0x11e9c1()?!![]:![];}function _0x4a8f73(){return _0x4ec75c['role']==='agent';}function _0xe0b6be(){const _0x272c5e=a0_0xd29e;return _0x4ec75c[_0x272c5e('0x1085')]===_0x272c5e('0x20bf');}function _0x4fd7e8(){const _0x599c97=a0_0xd29e;return _0x4ec75c[_0x599c97('0x1085')]===_0x599c97('0x221e');}function _0x1df397(){const _0x10cc00=a0_0xd29e;return _0x4ec75c[_0x10cc00('0x1085')]===_0x10cc00('0x21b5');}function _0x1b65d5(){return _0x3c60c3(function(_0x4ae3e6,_0x598233){const _0x423d24=a0_0xd29e;_0x110694[_0x423d24('0x221e')][_0x423d24('0x548')]()['$promise'][_0x423d24('0x17e7')](function(_0x2b9ebb){const _0x30f0aa=_0x423d24;return _0x2b9ebb['role']===_0x30f0aa('0x221e')?_0x3734ef(_0x2b9ebb[_0x30f0aa('0x1e76')])['then'](function(_0x34597c){const _0x401a9c=_0x30f0aa;return _0x2b9ebb[_0x401a9c('0x2316')]=_0x34597c,_0x2b9ebb;}):_0x2b9ebb;})[_0x423d24('0x17e7')](function(_0x157eb4){_0x4ec75c=_0x157eb4,_0x4ae3e6(_0x4ec75c);})[_0x423d24('0x16df')](function(_0x2a8530){_0x598233(_0x2a8530);});});}function _0x1b9e96(_0x16d870){const _0x373ccb=a0_0xd29e;return _0x4ec75c?_0x4ec75c[_0x373ccb('0x1085')]===_0x16d870:![];}function _0x120b0a(_0x4ae865){const _0x556dca=a0_0xd29e;return _0x4ec75c?_0x49cbdd()[_0x556dca('0x24b0')](_0x4ec75c[_0x556dca('0x2316')],_0x4ae865):![];}function _0x3734ef(_0x3b7ff7){let _0x278639=[];return _0x3c60c3(function(_0x34b668,_0x8a00cd){const _0x152e9c=a0_0xd29e;return!_0x3b7ff7&&_0x34b668(_0x278639),_0x110694['userProfile'][_0x152e9c('0x8cd')]({'id':_0x3b7ff7})['$promise'][_0x152e9c('0x17e7')](function(_0x272a91){const _0x41d3a6=_0x152e9c;for(let _0x2707b1=0x0;_0x2707b1<_0x272a91[_0x41d3a6('0x1f73')];_0x2707b1++){const _0x12df7c=_0x272a91[_0x2707b1];_0x278639[_0x41d3a6('0x269f')](_0x12df7c[_0x41d3a6('0x2676')]),_0x12df7c[_0x41d3a6('0x1ffb')]&&(_0x278639=_0x49cbdd()[_0x41d3a6('0xe1b')](_0x278639,_0x12df7c['subsections']));}return _0x278639;})['then'](function(_0x2b5aa6){_0x34b668(_0x2b5aa6);})[_0x152e9c('0x16df')](function(_0x4e0ddb){const _0x12f9d2=_0x152e9c;_0x8a00cd(_0x12f9d2('0x1762'),_0x4e0ddb);});});}function _0x4f4bd6(_0x2faa1c){if(!_0x2faa1c)return![];return _0x49cbdd()['some'](_0x2faa1c,function(_0x5caed6){return _0x120b0a(_0x5caed6);});}function _0x3bcc35(){return _0x3c60c3(function(_0x4e0f40,_0x641d13){const _0x8f35c6=a0_0xd29e;_0x3734ef(_0x4ec75c[_0x8f35c6('0x1e76')])[_0x8f35c6('0x17e7')](function(_0x4ebbc1){_0x4ec75c['permissions']=_0x4ebbc1,_0x4e0f40();})[_0x8f35c6('0x16df')](function(_0x186a47){_0x641d13(_0x186a47);});});}function _0x5329a8(_0x6a31ba){const _0x3ad7c8=a0_0xd29e;return _0xe0b6be()?{'readOnly':![],'canEdit':!![],'canDelete':!![]}:!_0x6a31ba?{'readOnly':!![],'canEdit':![],'canDelete':![]}:{'readOnly':_0x49cbdd()[_0x3ad7c8('0x24b0')](_0x6a31ba,'r')&&_0x6a31ba[_0x3ad7c8('0x1f73')]===0x1?!![]:![],'canEdit':_0x49cbdd()[_0x3ad7c8('0x24b0')](_0x6a31ba,'e')?!![]:![],'canDelete':_0x49cbdd()[_0x3ad7c8('0x24b0')](_0x6a31ba,'d')?!![]:![]};}function _0x17caff(_0x8b5ba9,_0x382fcf){return _0x3c60c3(function(_0x2b45cf,_0x40c9f3){const _0x418eb3=a0_0xd29e;return _0x110694[_0x418eb3('0x383')][_0x418eb3('0x1c53')]({'userProfileId':_0x4ec75c[_0x418eb3('0x1e76')],'sectionId':_0x8b5ba9})[_0x418eb3('0x1af5')][_0x418eb3('0x17e7')](function(_0x32cd4f){const _0x1cac4d=_0x418eb3,_0x397ab3=_0x32cd4f[_0x1cac4d('0x2319')][0x0];if(_0x397ab3[_0x1cac4d('0x9e3')])_0x2b45cf();else return _0x110694[_0x1cac4d('0x78d')]['get']({'sectionId':_0x397ab3['id'],'nolimit':!![]})[_0x1cac4d('0x1af5')]['then'](function(_0x159784){const _0x2e83ba=_0x1cac4d,_0x3a55fb=_0x159784[_0x2e83ba('0x2319')];_0x49cbdd()[_0x2e83ba('0x26f8')](_0x3a55fb,[_0x2e83ba('0x5db'),_0x382fcf])?_0x2b45cf():_0x40c9f3();});})[_0x418eb3('0x16df')](function(_0x1e2557){const _0x2f691b=_0x418eb3;_0x40c9f3(_0x2f691b('0x1762'),_0x1e2557);});});}function _0x3c8601(_0x235024){return _0x3c60c3(function(_0x3d037,_0x5d182f){const _0x4d25e6=a0_0xd29e,_0x4fdd72={};return _0x3bcc35()[_0x4d25e6('0x17e7')](function(){const _0x317380=_0x4d25e6;_0x49cbdd()[_0x317380('0x24b0')](_0x4ec75c[_0x317380('0x2316')],_0x235024)&&(_0x4fdd72[_0x235024]=!![]),_0x3d037(_0x4fdd72);})[_0x4d25e6('0x16df')](function(_0x21158c){_0x5d182f(_0x21158c);});});}function _0x9c3194(_0x303f0f){return _0x3c60c3(function(_0x3c84ce,_0x4a57d5){const _0x38f73e=a0_0xd29e,_0x56d156={};if(_0xe0b6be())_0x303f0f['forEach'](function(_0x5d3ff4){_0x56d156[_0x5d3ff4]=!![];}),_0x3c84ce(_0x56d156);else return _0x3bcc35()[_0x38f73e('0x17e7')](function(){const _0x4b8124=_0x38f73e;_0x303f0f[_0x4b8124('0xccd')](function(_0x22cb34){const _0x1386e0=_0x4b8124;_0x49cbdd()[_0x1386e0('0x24b0')](_0x4ec75c[_0x1386e0('0x2316')],_0x22cb34)&&(_0x56d156[_0x22cb34]=!![]);}),_0x3c84ce(_0x56d156);})['catch'](function(_0x1888bd){_0x4a57d5(_0x1888bd);});});}function _0xd4faed(_0x138bbd){return _0x3c60c3(function(_0xf53a0b,_0x85b265){const _0x468bcd=a0_0xd29e;_0xe0b6be()?_0xf53a0b(!![]):_0x110694['userProfileSection'][_0x468bcd('0x1c53')]({'userProfileId':_0x4ec75c['userProfileId']})[_0x468bcd('0x1af5')][_0x468bcd('0x17e7')](function(_0x388ed1){const _0x5c1c63=_0x468bcd,_0x112334=_0x388ed1&&_0x388ed1[_0x5c1c63('0x2319')]?_0x388ed1[_0x5c1c63('0x2319')]:[];if(!_0x49cbdd()[_0x5c1c63('0x109a')](_0x112334)){const _0x5dae6f=_0x49cbdd()['filter'](_0x112334,function(_0x1fbb31){const _0x5c3037=_0x5c1c63;return _0x1fbb31[_0x5c3037('0x1cd3')];});_0xf53a0b(_0x49cbdd()['some'](_0x5dae6f,['category',_0x138bbd]));}else _0xf53a0b(![]);})[_0x468bcd('0x16df')](function(_0x12b6a7){_0x85b265(_0x12b6a7);});});}function _0x2bba18(_0x4c3b08){return _0x3c60c3(function(_0x4ee438,_0x2515e0){const _0x3e06fd=a0_0xd29e,_0x166477={};_0xe0b6be()?(_0x4c3b08[_0x3e06fd('0xccd')](function(_0x2def5d){_0x166477[_0x2def5d]=!![];}),_0x4ee438(_0x166477)):_0x110694[_0x3e06fd('0x383')][_0x3e06fd('0x1c53')]({'userProfileId':_0x4ec75c['userProfileId']})[_0x3e06fd('0x1af5')][_0x3e06fd('0x17e7')](function(_0x42ebc4){const _0x1ad755=_0x3e06fd,_0x19082a=_0x42ebc4&&_0x42ebc4[_0x1ad755('0x2319')]?_0x42ebc4[_0x1ad755('0x2319')]:[];if(!_0x49cbdd()[_0x1ad755('0x109a')](_0x19082a)){const _0x3ced90=_0x49cbdd()(_0x19082a)[_0x1ad755('0x2483')](function(_0x3ae823){const _0xd596e4=_0x1ad755;return _0x3ae823[_0xd596e4('0x1cd3')]&&_0x49cbdd()[_0xd596e4('0x24b0')](_0x4c3b08,_0x3ae823[_0xd596e4('0x1ff5')]);})[_0x1ad755('0x1621')](function(_0x5bff5c){const _0x3b6681=_0x1ad755;return _0x5bff5c[_0x3b6681('0x1ff5')];})[_0x1ad755('0x787')](function(_0x1190e4){const _0x22ad78=_0x1ad755;return _0x1190e4[_0x22ad78('0x1ff5')];})[_0x1ad755('0x175b')]();_0x3ced90[_0x1ad755('0xccd')](function(_0x5bf99e){_0x166477[_0x5bf99e]=!![];}),_0x4ee438(_0x166477);}else _0x4ee438({});})[_0x3e06fd('0x16df')](function(_0x2973b6){_0x2515e0(_0x2973b6);});});}function _0x277589(){const _0x5bba1a=a0_0xd29e;return _0x2a6a99['localStorage'][_0x5bba1a('0x1dd7')]||_0x5bba1a('0x15b3');}function _0x4661a5(_0x5b6a6c){const _0x3d9758=a0_0xd29e;_0x2a6a99[_0x3d9758('0x1a93')][_0x3d9758('0x1dd7')]=_0x5b6a6c;}function _0x5d0067(_0x48e4c8){const _0x496a82=a0_0xd29e;return _0x4661a5(_0x496a82('0x1ce3')),_0x496a82('0x1a31')+_0x48e4c8;}}const _0x3dfcfe=_0x51d996;_0x9d1554[_0x4376d8('0x1b9c')]=['$mdDialog',_0x4376d8('0xd51')];function _0x9d1554(_0x1a8a88,_0xe5e43d){const _0x367ab1=_0x4376d8,_0x3ea22c=this;function _0x3233e3(_0x5a38c5){_0x1a8a88['hide'](_0x5a38c5);}_0x3ea22c['telephones']=_0xe5e43d,_0x3ea22c[_0x367ab1('0x136e')]=_0x3233e3,_0xe5e43d[_0x367ab1('0x335')]&&(_0x3ea22c[_0x367ab1('0x2aa')]=_0xe5e43d['rows'][0x0]['name']);}const _0x311c62=_0x9d1554;_0x4d4e0b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x655'),'$q','$cookies',_0x4376d8('0xa29'),'Util'];function _0x4d4e0b(_0x24b4d6,_0x5c9a47,_0x118d15,_0x5ed322,_0x45b6d7){let _0x11ac4b;return{'request':function(_0x30b1ee){const _0x1c7e8d=a0_0xd29e,_0x571e8f=_0x118d15[_0x1c7e8d('0x1c53')]('motion.token');return _0x30b1ee[_0x1c7e8d('0x10b')]=_0x30b1ee['headers']||{},(![]||_0x45b6d7[_0x1c7e8d('0xeb0')](_0x30b1ee['url']))&&_0x571e8f&&(_0x30b1ee[_0x1c7e8d('0x10b')][_0x1c7e8d('0x103a')]=_0x1c7e8d('0x28e8')+_0x571e8f),_0x30b1ee;},'responseError':function(_0x5790df){const _0x385213=a0_0xd29e;switch(_0x5790df['status']){case 0x191:_0x118d15['remove']('motion.token'),(_0x11ac4b||(_0x11ac4b=_0x5ed322[_0x385213('0x1c53')](_0x385213('0xc4c'))))['go'](_0x385213('0x229b'));break;case 0x194:break;default:break;}return _0x5c9a47[_0x385213('0x1ad1')](_0x5790df);}};}const _0x729dff=_0x4d4e0b;_0x6766a1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x198f')];function _0x6766a1(_0x37ed5d){const _0x139374={'safeCb':function(_0x3e484){const _0x2f0651=a0_0xd29e;return angular[_0x2f0651('0x2272')](_0x3e484)?_0x3e484:angular['noop'];},'urlParse':function(_0x120ac7){const _0x1f1971=a0_0xd29e,_0x4ea55d=document[_0x1f1971('0x68d')]('a');return _0x4ea55d[_0x1f1971('0x448')]=_0x120ac7,_0x4ea55d[_0x1f1971('0x108')]===''&&(_0x4ea55d['href']=_0x4ea55d['href']),_0x4ea55d;},'isSameOrigin':function(_0x2df20a,_0x6cb484){const _0x496262=a0_0xd29e;return _0x2df20a=_0x139374[_0x496262('0x52f')](_0x2df20a),_0x6cb484=_0x6cb484&&[][_0x496262('0xe1b')](_0x6cb484)||[],_0x6cb484=_0x6cb484['map'](_0x139374[_0x496262('0x52f')]),_0x6cb484[_0x496262('0x269f')](_0x37ed5d['location']),_0x6cb484=_0x6cb484[_0x496262('0x2483')](function(_0x57c01c){const _0x35d99a=_0x496262,_0x5b7e65=_0x2df20a[_0x35d99a('0x19fc')]===_0x57c01c[_0x35d99a('0x19fc')],_0x59ce77=_0x2df20a[_0x35d99a('0x14fe')]===_0x57c01c[_0x35d99a('0x14fe')],_0x488898=_0x2df20a[_0x35d99a('0x2442')]===_0x57c01c['port']||_0x57c01c[_0x35d99a('0x2442')]===''&&(_0x2df20a['port']==='80'||_0x2df20a[_0x35d99a('0x2442')]==='443');return _0x5b7e65&&_0x59ce77&&_0x488898;}),_0x6cb484[_0x496262('0x1f73')]>=0x1;}};return _0x139374;}const _0x75c05e=_0x6766a1;;angular[_0x4376d8('0x11c4')](_0x4376d8('0xa0b'),[])[_0x4376d8('0x1980')](_0x4f5370)[_0x4376d8('0x1a46')](_0x21b8a0)[_0x4376d8('0x26a6')]('Auth',_0x3dfcfe)['controller']('HotDeskDialogController',_0x311c62)['factory']('authInterceptor',_0x729dff)['factory'](_0x4376d8('0x18a2'),_0x75c05e);var _0x5ad5fb=_0x4cf2bc(0xca2),_0x178c51=_0x4cf2bc(0x1e94),_0x20700d=_0x4cf2bc(0x1e80),_0x42db3f=_0x4cf2bc(0x11ee),_0xdc838d=_0x4cf2bc(0x36e),_0x5af3a9=_0x4cf2bc(0x1bdb),_0x29dad3=_0x4cf2bc(0x1c17),_0x3f705e=_0x4cf2bc(0x813),_0xf1dbe1=_0x4cf2bc(0xdff),_0x1c2b36=_0x4cf2bc(0x251),_0x5ccc53=_0x4cf2bc(0xdf),_0x383198=_0x4cf2bc(0x1299),_0x28789d=_0x4cf2bc(0x177),_0x36b226=_0x4cf2bc(0x573);function _0x2b75d6(){const _0x1a2e88=_0x4376d8;let _0x1ed1b6={'disableCustomScrollbars':![],'disableMdInkRippleOnMobile':!![],'disableCustomScrollbarsOnMobile':!![]};function _0x3ff2de(_0x49a105){const _0x2d6fcf=a0_0xd29e;_0x1ed1b6=angular[_0x2d6fcf('0x15f7')]({},_0x1ed1b6,_0x49a105);}function _0x3849ac(_0x3e5be9){if(angular['isUndefined'](_0x1ed1b6[_0x3e5be9]))return![];return _0x1ed1b6[_0x3e5be9];}function _0x8ef25e(_0x5980cc,_0x579be1){_0x1ed1b6[_0x5980cc]=_0x579be1;}this['$get']=function(){const _0x1ccd37={'getConfig':_0x3849ac,'setConfig':_0x8ef25e};return _0x1ccd37;},this[_0x1a2e88('0x1980')]=_0x3ff2de;}const _0x219782=_0x2b75d6;_0x326337['$inject']=[_0x4376d8('0x7da'),_0x4376d8('0x1db4'),_0x4376d8('0x426'),_0x4376d8('0x485')];function _0x326337(_0x2a8288,_0x16f9bf,_0x414737,_0x31a123){const _0x20d913=_0x4376d8;_0x16f9bf[_0x20d913('0x205f')](!![]),_0x2a8288[_0x20d913('0x1980')]({'tabindex':![]}),_0x31a123[_0x20d913('0x1980')]({'disableCustomScrollbars':![],'disableCustomScrollbarsOnMobile':!![],'disableMdInkRippleOnMobile':!![]}),_0x414737[_0x20d913('0x1980')]({'wheelPropagation':!![]});}const _0x2a61f5=_0x326337;_0x1b1706['$inject']=[_0x4376d8('0x1606'),_0x4376d8('0x70a'),_0x4376d8('0xdd2')];function _0x1b1706(_0xd5af45,_0xa2ca4,_0x17f2f0){const _0x212c92=_0x4376d8;_0xa2ca4['generate']();if(_0x17f2f0[_0x212c92('0x269')](_0x212c92('0x19d0'))&&_0xd5af45[_0x212c92('0x539')]()){const _0x36d423=angular['element']('body');_0x36d423['attr'](_0x212c92('0x1f85'),!![]);}_0xd5af45[_0x212c92('0x539')]()&&angular[_0x212c92('0x1ce1')](_0x212c92('0x19b6'))[_0x212c92('0x16e5')](_0x212c92('0x1b2e'));const _0x16da12=_0xd5af45[_0x212c92('0x2208')]();if(_0x16da12){const _0x11b543=_0x16da12[_0x212c92('0x2055')]+'\x20'+_0x16da12[_0x212c92('0x20eb')]+'\x20'+_0x16da12['os'];angular[_0x212c92('0x1ce1')](_0x212c92('0x19b6'))['addClass'](_0x11b543);}}const _0x5b3e1a=_0x1b1706;_0x1f93ab[_0x4376d8('0x1b9c')]=[_0x4376d8('0x198f'),'$mdDialog','Auth',_0x4376d8('0x1a1f'),_0x4376d8('0x9c9'),'storagePath'];function _0x1f93ab(_0x6d73fd,_0x4f6dcf,_0x4f0f5d,_0x3802d9,_0x2c51bf,_0x4636a0){const _0x21a74a=_0x4376d8,_0x395700=this;_0x395700[_0x21a74a('0x197c')]=_0x4f0f5d['getCurrentUser'](),_0x395700[_0x21a74a('0x462')]={'matchType':_0x21a74a('0x1800'),'conditions':[],'fields':_0x2c51bf},_0x395700[_0x21a74a('0x225d')]=_0x3802d9,_0x395700[_0x21a74a('0xdf0')]=_0x4c26ae,_0x395700['applyFilter']=_0x5b5bee,_0x395700[_0x21a74a('0x17f0')]=_0x31be7b,_0x395700[_0x21a74a('0x246b')]=_0x13b42e,_0x395700[_0x21a74a('0xbc9')]=_0x3b798c;function _0x4c26ae(){const _0x58ae05=_0x21a74a;if(_0x4636a0){const _0xa27c30=_0x31ab26();typeof _0xa27c30[_0x58ae05('0xfb6')]!==_0x58ae05('0xfad')&&(_0x395700[_0x58ae05('0x462')]=_0x49cbdd()[_0x58ae05('0x1ced')](_0x395700['searchOptions'],_0xa27c30[_0x58ae05('0xfb6')]));}}function _0x5b5bee(){const _0x5ca772=_0x21a74a,_0x20d61f=_0x49cbdd()[_0x5ca772('0x2483')](_0x395700['searchOptions'][_0x5ca772('0x1d44')],[_0x5ca772('0xc3c'),![]]);let _0x54b80a='['+_0x395700['searchOptions'][_0x5ca772('0xb99')]+']';const _0xa39f2d=[];let _0x317331='';_0x49cbdd()(_0x20d61f)[_0x5ca772('0x139f')](_0x5ca772('0x2aa'))[_0x5ca772('0xccd')](function(_0x3d6ecf){const _0x3dba23=_0x5ca772,_0x1dfe6b=_0x3d6ecf[0x0],_0x2dcd99=_0x3d6ecf[_0x3dba23('0x1f73')]>0x1?!![]:![],_0x397913=_0x1dfe6b['query'][_0x3dba23('0x2d6')];if(_0x2dcd99){const _0x481e78=_0x49cbdd()(_0x3d6ecf)['groupBy'](function(_0xc2a8c){const _0x3efb3b=_0x3dba23;return _0xc2a8c[_0x3efb3b('0x826')][_0x3efb3b('0x1802')];})[_0x3dba23('0x250e')](function(_0x58086c){const _0x32b08e=_0x3dba23;return _0x49cbdd()['chain'](_0x58086c)['map'](function(_0x302036){const _0x27588b=a0_0xd29e;return _0x302036[_0x27588b('0x826')][_0x27588b('0x175b')];})['flattenDeep']()[_0x32b08e('0x175b')]();})['value'](),_0x2fa7ae=[];_0x49cbdd()[_0x3dba23('0x1c0f')](_0x481e78)[_0x3dba23('0xccd')](function(_0xbf49f6){const _0x24b41d=_0x3dba23,_0x4275fe=_0x481e78[_0xbf49f6];let _0xa0744=_0xbf49f6;_0x49cbdd()[_0x24b41d('0x24b0')]([_0x24b41d('0x2024'),_0x24b41d('0x1940'),_0x24b41d('0x2045')],_0xbf49f6)?_0xa0744+='['+_0x4275fe+']':_0x4275fe[_0x24b41d('0xccd')](function(_0x3bedd7){_0xa0744+='['+_0x3bedd7+']';}),_0x2fa7ae[_0x24b41d('0x269f')](_0xa0744);}),_0x317331+=_0x397913+':='+_0x2fa7ae[_0x3dba23('0x1eba')](':=');}else _0x317331=_0x397913+':='+_0x1dfe6b[_0x3dba23('0x826')][_0x3dba23('0x1802')]+'['+_0x1dfe6b[_0x3dba23('0x826')][_0x3dba23('0x175b')]+']';_0xa39f2d[_0x3dba23('0x269f')](_0x317331);}),_0x54b80a+=_0xa39f2d[_0x5ca772('0x1eba')]('||'),_0x4a0a21(),_0x4f6dcf['hide'](_0x54b80a);}function _0x31be7b(){const _0xc81d45=_0x21a74a;_0x395700['searchOptions'][_0xc81d45('0x1d44')]=[],_0x17fb2d();}function _0x13b42e(){_0x4a0a21(),_0x4f6dcf['hide']();}function _0x3b798c(){const _0x11ed7=_0x21a74a;_0x4f6dcf[_0x11ed7('0x212a')](![]);}function _0x31ab26(){const _0x5ebb9e=_0x21a74a,_0x2dc1f7=_0x6d73fd[_0x5ebb9e('0x1a93')]['getItem'](_0x5ebb9e('0x2449')+_0x4636a0+':'+_0x395700[_0x5ebb9e('0x197c')]['id']);return _0x2dc1f7?JSON[_0x5ebb9e('0x1f0a')](_0x2dc1f7):{};}function _0x37af55(_0x2d5309){const _0x13cb43=_0x21a74a;_0x6d73fd[_0x13cb43('0x1a93')][_0x13cb43('0x230f')]('motion2.'+_0x4636a0+':'+_0x395700[_0x13cb43('0x197c')]['id'],JSON[_0x13cb43('0x678')](_0x2d5309));}function _0x4a0a21(){const _0x3de385=_0x21a74a;if(_0x4636a0){const _0x189258=_0x31ab26();_0x189258['advancedSearch']=_0x49cbdd()[_0x3de385('0x15c3')](_0x395700['searchOptions'],'fields'),_0x37af55(_0x189258);}}function _0x17fb2d(){const _0xb20274=_0x21a74a;if(_0x4636a0){const _0x2cfda2=_0x31ab26();delete _0x2cfda2[_0xb20274('0xfb6')];if(_0x2cfda2[_0xb20274('0x826')])delete _0x2cfda2[_0xb20274('0x826')]['search'];_0x37af55(_0x2cfda2);}}}const _0x414c8f=_0x1f93ab;_0x2fdb92['$inject']=[_0x4376d8('0xef1')];function _0x2fdb92(_0x4dbaee){return{'restrict':'A','link':function(_0x24aedd,_0x5e9aec,_0x3e08a2){const _0x1de56d=a0_0xd29e;_0x24aedd[_0x1de56d('0x620')](_0x3e08a2[_0x1de56d('0x10b9')],function(_0x3f23ce){_0x4dbaee(function(){const _0x536c55=a0_0xd29e;_0x3f23ce?_0x5e9aec[0x0][_0x536c55('0x1d4f')]():_0x5e9aec[0x0][_0x536c55('0x1a70')]();});});}};}const _0x56999f=_0x2fdb92;var _0x48448a=_0x4cf2bc(0x1433),_0xc71a41=_0x4cf2bc['n'](_0x48448a);_0x4994e3['$inject']=[_0x4376d8('0xef1'),'$q','$interpolate'];function _0x4994e3(_0x5e91cf,_0x4051b4,_0x1b38d1){return{'restrict':'E','compile':function(_0x3ce5c9,_0x5b9fcb){const _0x334f7e=a0_0xd29e;let _0xfacbd8;return!_0x5b9fcb[_0x334f7e('0xe5d')]&&(_0xfacbd8=_0x3ce5c9[_0x334f7e('0x19b6')](),_0x3ce5c9['empty']()),function(_0x5a6b44,_0x4160f2,_0x4320be){const _0x151098=_0x334f7e;_0x4320be[_0x151098('0xe5d')]&&(_0xfacbd8=_0x5a6b44[_0x151098('0x1990')](_0x4320be[_0x151098('0xe5d')]));const _0x5da0d0=_0x5a6b44[_0x151098('0x1990')](_0x4320be[_0x151098('0x757')]);_0x4051b4[_0x151098('0xdd7')](_0xfacbd8)[_0x151098('0x17e7')](function(_0x2e9589){const _0x2fc664=_0x151098;if(_0x2e9589){_0x5da0d0&&(_0x2e9589=_0x1b38d1(_0x2e9589)(_0x5a6b44));const _0x29e68e=angular[_0x2fc664('0x1ce1')](_0x2fc664('0x9ae'));_0x4160f2[_0x2fc664('0x25a')](_0x29e68e),_0x5e91cf(function(){_0x1f2f74(_0x2e9589,_0x29e68e);},0x22,![]);}});function _0x1f2f74(_0x3e230c,_0x201af7){const _0x308c7c=_0x151098,_0x52f252=_0x201af7[_0x308c7c('0xe8e')]('code');let _0x22b79e=_0x3e230c[_0x308c7c('0x2007')]('\x0a');_0x22b79e=_0x22b79e[_0x308c7c('0x2483')](function(_0x3ba1ce){const _0x1f0ba7=_0x308c7c;return _0x3ba1ce[_0x1f0ba7('0x342')]()['length'];});const _0x4e74b5=_0x22b79e[0x0][_0x308c7c('0xdbe')](/^\s*/)[0x0],_0x370369=new RegExp('^'+_0x4e74b5);_0x22b79e=_0x22b79e[_0x308c7c('0x787')](function(_0x4ba259){const _0x5c5476=_0x308c7c;return _0x4ba259[_0x5c5476('0x737')](_0x370369,'')[_0x5c5476('0x737')](/\s+$/,'');});const _0x4785e2=_0xc71a41()['highlight'](_0x4320be[_0x308c7c('0x3e1')]||_0x4320be[_0x308c7c('0x1153')],_0x22b79e[_0x308c7c('0x1eba')]('\x0a'),!![]);_0x4785e2[_0x308c7c('0x175b')]=_0x4785e2['value'][_0x308c7c('0x737')](/=""<\/span>/gi,'')[_0x308c7c('0x737')](_0x308c7c('0x332'),'')[_0x308c7c('0x737')](_0x308c7c('0xa9b'),''),_0x52f252['append'](_0x4785e2[_0x308c7c('0x175b')])[_0x308c7c('0x16e5')](_0x308c7c('0x28e0'));}};}};}const _0x184688=_0x4994e3,_0x46eee6=_0x4cf2bc['p']+_0x4376d8('0xdae');_0x2c56dd[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28da'),'$q',_0x4376d8('0x212e'),_0x4376d8('0x108a')];function _0x4cac4a(){return{'restrict':'E','scope':{'options':'=','clearFilter':'&'},'controller':_0x2c56dd,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x46eee6};}function _0x2c56dd(_0x875449,_0x1e1bb4,_0x3c680d,_0x53c23d){const _0x4ca380=_0x4376d8,_0x183417=this;_0x183417['availableOperators']=[{'type':'$eq','symbol':'=','translate':_0x4ca380('0x3db'),'excludeFrom':[_0x4ca380('0x1227')]},{'type':'$ne','symbol':'≠','translate':_0x4ca380('0x23b1'),'excludeFrom':[_0x4ca380('0x1227')]},{'type':_0x4ca380('0x1940'),'symbol':'∈','translate':'IS_AMONG','applyTo':['multiselect']},{'type':_0x4ca380('0x2045'),'symbol':'∉','translate':'IS_NOT_AMONG','applyTo':[_0x4ca380('0x1227')]},{'type':_0x4ca380('0x1ed7'),'symbol':'⊃','translate':'CONTAINS','applyTo':[_0x4ca380('0x132f')]},{'type':_0x4ca380('0xff2'),'symbol':_0x4ca380('0xc92'),'translate':_0x4ca380('0x1a54'),'applyTo':[_0x4ca380('0x132f')]},{'type':'$endsWith','symbol':_0x4ca380('0x1cf0'),'translate':_0x4ca380('0x1488'),'applyTo':['text']},{'type':_0x4ca380('0x372'),'symbol':'<','translate':_0x4ca380('0x2b2'),'applyTo':[_0x4ca380('0xbd4'),_0x4ca380('0x7b8')]},{'type':_0x4ca380('0x121f'),'symbol':'>','translate':_0x4ca380('0xcf4'),'applyTo':[_0x4ca380('0xbd4'),_0x4ca380('0x7b8')]},{'type':'$lte','symbol':'≤','translate':_0x4ca380('0x12e'),'applyTo':[_0x4ca380('0xbd4'),_0x4ca380('0x7b8')]},{'type':'$gte','symbol':'≥','translate':_0x4ca380('0x2778'),'applyTo':[_0x4ca380('0xbd4'),'number']},{'type':'$between','symbol':'≬','translate':'IS_BETWEEN','applyTo':['date',_0x4ca380('0x7b8')]}],_0x183417[_0x4ca380('0x169')]=_0x183417[_0x4ca380('0x236b')],_0x183417[_0x4ca380('0xc1f')]=_0xa2b703,_0x183417['editCondition']=_0x576a58,_0x183417[_0x4ca380('0x175')]=_0x579e6c,_0x183417[_0x4ca380('0x141a')]=_0x43703a,_0x183417[_0x4ca380('0xba9')]=_0x353b0b,_0x183417[_0x4ca380('0xa0f')]=_0x3b5c16,_0x183417['getValues']=_0x90e1ea,_0x183417['onFieldChange']=_0x4ab5ba,_0x183417['onOperatorChange']=_0x208a08,_0x183417[_0x4ca380('0x1bf5')]=_0x31bde1,_0x183417[_0x4ca380('0x2321')]=_0x4af8db,_0x183417[_0x4ca380('0xdc8')]=_0x333b25;function _0x4ab5ba(){const _0x1d23ca=_0x4ca380;_0x183417[_0x1d23ca('0x175b')]=undefined,_0x183417[_0x1d23ca('0xbf9')]=undefined,_0x183417[_0x1d23ca('0x9c4')]=undefined,_0x183417[_0x1d23ca('0x1701')]=![],_0x4b4f01(),_0x183417[_0x1d23ca('0x1a34')]=_0x183417[_0x1d23ca('0x236b')][_0x1d23ca('0x1f73')]===0x1?!![]:![];if(!_0x183417[_0x1d23ca('0x1a34')])_0x183417[_0x1d23ca('0x1636')]=undefined;}function _0x208a08(_0x261f63){const _0x3bd3ea=_0x4ca380;_0x183417[_0x3bd3ea('0x1268')]=!![],_0x183417['selectedOperator']&&(_0x261f63?_0x261f63[_0x3bd3ea('0x1b17')]?_0x49cbdd()[_0x3bd3ea('0x4f1')](_0x183417[_0x3bd3ea('0x1636')][_0x3bd3ea('0x1b17')],_0x261f63[_0x3bd3ea('0x1b17')])[_0x3bd3ea('0x1f73')]>0x0&&(_0x183417[_0x3bd3ea('0x175b')]=null):_0x183417[_0x3bd3ea('0x1636')]['applyTo']&&(_0x183417[_0x3bd3ea('0x175b')]=null):_0x183417[_0x3bd3ea('0x175b')]=null,_0x183417[_0x3bd3ea('0x1636')][_0x3bd3ea('0x412')]!=_0x3bd3ea('0x869')&&(_0x183417[_0x3bd3ea('0xbf9')]=null),_0x183417['selectedField'][_0x3bd3ea('0x19')]&&!_0x49cbdd()[_0x3bd3ea('0x109a')](_0x183417['selectedField'][_0x3bd3ea('0x19')]['extraOperators'])&&(_0x183417[_0x3bd3ea('0x1636')][_0x3bd3ea('0x20bd')]=_0x49cbdd()[_0x3bd3ea('0x26f8')](_0x183417[_0x3bd3ea('0x106')][_0x3bd3ea('0x19')][_0x3bd3ea('0x28d8')],function(_0x2e5687){const _0x19c44f=_0x3bd3ea;return _0x2e5687===_0x183417['selectedOperator'][_0x19c44f('0x412')];}))),_0x2fbb3a();}function _0x31bde1(){const _0x2279b1=_0x4ca380;if(_0x183417[_0x2279b1('0x1636')]&&_0x183417[_0x2279b1('0x1636')][_0x2279b1('0x412')]===_0x2279b1('0x2024')){if(_0x183417[_0x2279b1('0x106')][_0x2279b1('0x412')]===_0x2279b1('0x7b8'))_0x4af8db();else _0x183417[_0x2279b1('0x106')]['type']===_0x2279b1('0xbd4')&&(_0x183417[_0x2279b1('0x1bcf')]=_0x107a13()(_0x183417[_0x2279b1('0x175b')])[_0x2279b1('0xd62')](0x1,'day'),_0x2fbb3a());}else _0x2fbb3a();}function _0x4b4f01(){const _0x3ab330=_0x4ca380,_0x3be989=_0x183417[_0x3ab330('0x106')][_0x3ab330('0x19')]&&!_0x49cbdd()[_0x3ab330('0x109a')](_0x183417['selectedField'][_0x3ab330('0x19')][_0x3ab330('0x28d8')]),_0x4351fc=_0x183417[_0x3ab330('0x106')]['options']&&!_0x49cbdd()['isEmpty'](_0x183417[_0x3ab330('0x106')][_0x3ab330('0x19')]['excludedOperators']);_0x183417[_0x3ab330('0x236b')]=_0x49cbdd()['filter'](_0x183417[_0x3ab330('0x169')],function(_0x26d253){const _0x5da367=_0x3ab330,_0x57ed26=!_0x26d253[_0x5da367('0x1b17')]||_0x49cbdd()[_0x5da367('0x24b0')](_0x26d253['applyTo'],_0x183417[_0x5da367('0x106')][_0x5da367('0x412')]);_0x26d253[_0x5da367('0x20bd')]=_0x3be989&&_0x49cbdd()[_0x5da367('0x26f8')](_0x183417[_0x5da367('0x106')]['options'][_0x5da367('0x28d8')],function(_0x1c12f1){const _0x5d1d86=_0x5da367;return _0x1c12f1===_0x26d253[_0x5d1d86('0x412')];});const _0x19624e=_0x49cbdd()[_0x5da367('0x24b0')](_0x26d253[_0x5da367('0x19e1')],_0x183417['selectedField']['type'])||_0x4351fc&&_0x49cbdd()[_0x5da367('0x24b0')](_0x183417[_0x5da367('0x106')][_0x5da367('0x19')][_0x5da367('0x6bd')],_0x26d253[_0x5da367('0x412')]);if((_0x57ed26||_0x26d253[_0x5da367('0x20bd')])&&!_0x19624e)return _0x26d253;});}function _0x90e1ea(){const _0x4284fc=_0x4ca380,_0x6077ca=angular[_0x4284fc('0x14e5')](_0x183417[_0x4284fc('0x106')][_0x4284fc('0x19')]['route']);if(_0x183417['selectedField'][_0x4284fc('0x412')]===_0x4284fc('0x682'))for(let _0x611d8e=0x0;_0x611d8eNumber(_0x183417['value'])?!![]:![]:_0x183417[_0x1f28a5('0x1268')]=!![];else _0x183417[_0x1f28a5('0x106')][_0x1f28a5('0x412')]===_0x1f28a5('0xbd4')&&(_0x183417[_0x1f28a5('0x141e')]=_0x107a13()(_0x183417[_0x1f28a5('0xbf9')])[_0x1f28a5('0x133d')](0x1,'day'),_0x183417[_0x1f28a5('0x1268')]=!![]);_0x2fbb3a();}function _0xa2b703(){const _0xe7028e=_0x4ca380,_0x4c1544=_0x24b82();_0x183417['options'][_0xe7028e('0x1d44')][_0xe7028e('0x269f')](_0x4c1544),_0x51215e();}function _0x576a58(_0x33873a){const _0x419964=_0x4ca380;_0x183417[_0x419964('0xac7')]=_0x33873a,_0x183417['pendingCondition']['style']='md-amber-200-bg',_0x183417[_0x419964('0x106')]=_0x49cbdd()[_0x419964('0xe8e')](_0x183417[_0x419964('0x19')][_0x419964('0x9c9')],['name',_0x183417[_0x419964('0xac7')]['name']]),_0x4b4f01(),_0x183417[_0x419964('0x1636')]=_0x49cbdd()[_0x419964('0xe8e')](_0x183417[_0x419964('0x236b')],['type',_0x183417['pendingCondition'][_0x419964('0x826')][_0x419964('0x1802')]]),_0x183417[_0x419964('0x106')][_0x419964('0x412')]===_0x419964('0xbd4')&&typeof _0x183417[_0x419964('0xac7')]['value']===_0x419964('0x1783')?(_0x183417[_0x419964('0x175b')]=new Date(_0x183417[_0x419964('0xac7')][_0x419964('0x175b')]),_0x183417[_0x419964('0x1bcf')]=_0x107a13()(_0x183417[_0x419964('0x175b')])[_0x419964('0xd62')](0x1,'day'),_0x183417[_0x419964('0xbf9')]=_0x183417[_0x419964('0xac7')][_0x419964('0x4dd')]?new Date(_0x183417[_0x419964('0xac7')][_0x419964('0x4dd')]):undefined):(_0x183417[_0x419964('0x175b')]=_0x183417[_0x419964('0xac7')][_0x419964('0x175b')],_0x183417[_0x419964('0xbf9')]=_0x183417[_0x419964('0xac7')][_0x419964('0x4dd')]),_0x183417['isValidRange']=!![],_0x183417['isValidCondition']=!![];}function _0x579e6c(){const _0x1ffd5f=_0x4ca380,_0x2eb0b7=_0x24b82(),_0x120bad=_0x49cbdd()[_0x1ffd5f('0x1f4c')](_0x183417[_0x1ffd5f('0x19')]['conditions'],_0x1ffd5f('0x14fa'));_0x183417[_0x1ffd5f('0x19')]['conditions'][_0x1ffd5f('0x2335')](_0x120bad,0x1,_0x2eb0b7),_0x51215e(),_0x183417[_0x1ffd5f('0xac7')][_0x1ffd5f('0x14fa')]=null,_0x183417[_0x1ffd5f('0xac7')]=undefined;}function _0x43703a(){const _0x45801f=_0x4ca380;_0x183417[_0x45801f('0xac7')]['style']=null,_0x183417['pendingCondition']=undefined;}function _0x353b0b(_0x4a2b60){const _0x3e0aaf=_0x4ca380;_0x4a2b60[_0x3e0aaf('0x14fa')]=_0x4a2b60[_0x3e0aaf('0xc3c')]?undefined:_0x3e0aaf('0x276e'),_0x4a2b60[_0x3e0aaf('0xc3c')]=!_0x4a2b60[_0x3e0aaf('0xc3c')];}function _0x3b5c16(){const _0x3a3bbe=_0x4ca380;if(_0x49cbdd()[_0x3a3bbe('0x109a')](_0x183417[_0x3a3bbe('0x19')]['conditions']))_0x183417[_0x3a3bbe('0x21fa')]();}function _0x333b25(){_0x183417['pendingCondition']?_0x579e6c():_0xa2b703();}function _0x24b82(){const _0x3fb9ee=_0x4ca380;return{'name':_0x183417['selectedField'][_0x3fb9ee('0x2aa')],'operator':_0x875449[_0x3fb9ee('0x1acc')](_0x3fb9ee('0x24ba')+_0x183417[_0x3fb9ee('0x1636')][_0x3fb9ee('0x1114')]),'value':_0x183417[_0x3fb9ee('0x175b')],'endValue':_0x183417['endRangeValue'],'displayValue':_0x5eb663(_0x183417[_0x3fb9ee('0x175b')]),'displayEndValue':_0x5eb663(_0x183417['endRangeValue']),'query':{'column':_0x183417[_0x3fb9ee('0x106')]['column'],'operator':_0x183417[_0x3fb9ee('0x1636')][_0x3fb9ee('0x412')],'value':_0x1f1e78()},'disabled':![]};}function _0x5eb663(_0x26918d){const _0x2e37b9=_0x4ca380;let _0x548943;if(!_0x26918d)return undefined;switch(_0x183417[_0x2e37b9('0x106')][_0x2e37b9('0x412')]){case _0x2e37b9('0xbd4'):_0x548943=_0x107a13()(_0x26918d)[_0x2e37b9('0x1c0d')](_0x2e37b9('0x373'));break;case _0x2e37b9('0x1227'):{const _0x2f634d=_0x49cbdd()['map'](_0x26918d,function(_0x2cec84){const _0x41052a=_0x2e37b9;return _0x2cec84[_0x41052a('0x2aa')];});_0x548943=_0x183417[_0x2e37b9('0x1636')][_0x2e37b9('0x412')]===_0x2e37b9('0x1767')?_0x2f634d['join'](_0x2e37b9('0xcb1')):_0x2f634d[_0x2e37b9('0x1eba')](_0x2e37b9('0x1343'));}break;case _0x2e37b9('0x2897'):_0x548943=_0x26918d['name'];break;case _0x2e37b9('0x682'):_0x548943=_0x183417['selectedOperator']['isExtra']?_0x26918d:_0x26918d[_0x2e37b9('0x49')];break;default:_0x548943=_0x26918d;break;}return _0x548943;}function _0x1f1e78(){const _0x1a4e0c=_0x4ca380,_0x5bc6bb=_0x183417[_0x1a4e0c('0x175b')],_0x2e0d7b=_0x183417[_0x1a4e0c('0xbf9')];let _0x3fbe22;switch(_0x183417[_0x1a4e0c('0x106')]['type']){case _0x1a4e0c('0xbd4'):{const _0x5d6162=_0x107a13()(_0x5bc6bb)[_0x1a4e0c('0x1376')](0x0,!![])[_0x1a4e0c('0x1c0d')](_0x1a4e0c('0x373'));if(_0x183417[_0x1a4e0c('0x1636')][_0x1a4e0c('0x412')]===_0x1a4e0c('0x2024')){const _0x20afa9=_0x107a13()(_0x2e0d7b)[_0x1a4e0c('0x1376')](0x0,!![])[_0x1a4e0c('0x1c0d')](_0x1a4e0c('0x373'));_0x3fbe22=[_0x5d6162,_0x20afa9];}else _0x3fbe22=_0x5d6162;}break;case _0x1a4e0c('0x7b8'):_0x3fbe22=_0x183417[_0x1a4e0c('0x1636')][_0x1a4e0c('0x412')]===_0x1a4e0c('0x2024')?[_0x5bc6bb,_0x2e0d7b]:_0x5bc6bb;break;case _0x1a4e0c('0x1227'):{const _0x5befd5=_0x183417[_0x1a4e0c('0x106')][_0x1a4e0c('0x19')]['field']||'id';_0x3fbe22=_0x49cbdd()[_0x1a4e0c('0x787')](_0x5bc6bb,_0x5befd5);}break;case _0x1a4e0c('0x2897'):_0x3fbe22=_0x5bc6bb['id'];break;case'autocomplete':_0x3fbe22=_0x183417[_0x1a4e0c('0x1636')]['isExtra']?_0x5bc6bb:_0x5bc6bb['id'];break;default:_0x3fbe22=_0x5bc6bb;break;}return _0x3fbe22;}function _0x51215e(){const _0x38ed40=_0x4ca380;_0x183417[_0x38ed40('0x175b')]=null,_0x183417['endRangeValue']=null,_0x183417[_0x38ed40('0x1bcf')]=null,_0x183417[_0x38ed40('0x141e')]=null,_0x183417[_0x38ed40('0x1701')]=![];}}const _0x2ccb8f=_0x4cac4a;function _0xec5c80(){const _0x3a5bdb=_0x4376d8;return{'restrict':'E','scope':{'templatePath':'=template','card':_0x3a5bdb('0x207d'),'vm':_0x3a5bdb('0x1fab')},'template':_0x3a5bdb('0xf9c'),'compile':function(_0x2965eb){const _0x54473a=_0x3a5bdb;return _0x2965eb[_0x54473a('0x16e5')]('ms-card'),function _0x351c6d(_0x2dc16b,_0x1544b4){const _0x5b58be=_0x54473a;function _0x30c690(){const _0x720aeb=a0_0xd29e;_0x2dc16b['$emit'](_0x720aeb('0xc2b'),_0x1544b4);}_0x2dc16b[_0x5b58be('0xa66')]=_0x30c690;};}};}const _0x3f9526=_0xec5c80;;function _0x2a6f39(){return{'restrict':'A','link':function(_0x3f6a25,_0x3c2a8b,_0x1ac482){const _0x1dbfbb=a0_0xd29e;_0x1ac482[_0x1dbfbb('0x1c9f')](_0x1dbfbb('0x4e0'),function(_0x13eff6){const _0x528bc4=_0x1dbfbb,_0x144b29=_0x3c2a8b[_0x528bc4('0x14e')]()[_0x528bc4('0x14e')]();!_0x144b29[_0x528bc4('0x28af')]('md-background-bg\x20md-hue-3')&&_0x144b29['addClass'](_0x528bc4('0x436'));if(!_0x49cbdd()[_0x528bc4('0x109a')](_0x13eff6))_0x144b29[_0x528bc4('0x16e5')](_0x13eff6);else{const _0x4fc021=_0x144b29[0x0][_0x528bc4('0x1b2b')][_0x528bc4('0x2007')]('\x20'),_0x38486a=_0x4fc021[_0x528bc4('0x2567')](_0x528bc4('0x206'));_0x4fc021[_0x528bc4('0x1f73')]=_0x38486a+0x1,_0x144b29[0x0][_0x528bc4('0x1b2b')]=_0x4fc021[_0x528bc4('0x1eba')]('\x20');}});}};}const _0x558517=_0x2a6f39,_0x7788c2=_0x4cf2bc['p']+_0x4376d8('0x18a0'),_0x1ac9d2=_0x4cf2bc['p']+_0x4376d8('0x1c33');;function _0x54391e(){const _0x1422a0=_0x4376d8;return{'restrict':'E','scope':{'type':'=','disabled':'=','target':'=','prefix':'=','license':'='},'controller':[_0x1422a0('0x668'),_0x1422a0('0x655'),_0x1422a0('0x19b7'),_0x1422a0('0x28da'),'$document',_0x1422a0('0x14f6'),_0x1422a0('0x1885'),_0x1422a0('0x108a'),_0x1422a0('0x212e'),function(_0x1ea046,_0x37a4c1,_0x1f8874,_0x583a0c,_0x146bb3,_0x419ede,_0x5ac46a,_0x2874d7,_0x2f0471){const _0x29902c=_0x1422a0;_0x1ea046[_0x29902c('0x197c')]=_0x5ac46a[_0x29902c('0x2831')](),_0x1ea046[_0x29902c('0x16a3')]=function(){const _0x43b66c=_0x29902c;return _0x1ea046[_0x43b66c('0x8cf')]&&_0x1ea046[_0x43b66c('0x8cf')]['indexOf']('@')<0x0&&_0x1ea046[_0x43b66c('0x8cf')]!=_0x1ea046[_0x43b66c('0x197c')][_0x43b66c('0xe3e')]&&_0x1ea046[_0x43b66c('0x8cf')]!=_0x1ea046[_0x43b66c('0x197c')][_0x43b66c('0x2aa')]&&(_0x1ea046[_0x43b66c('0x197c')][_0x43b66c('0xa79')]==0x0&&_0x1ea046[_0x43b66c('0x197c')]['phoneBarRemoteControl']||_0x1ea046[_0x43b66c('0x197c')][_0x43b66c('0xa79')]==0x2&&_0x1ea046[_0x43b66c('0x1d11')]['webrtc'])&&!_0x1ea046[_0x43b66c('0xc3c')];};function _0x35d0c2(_0x3ff4e3){const _0xce42c6=_0x29902c;return _0x2f0471[_0xce42c6('0x221e')][_0xce42c6('0x1e3d')]({'id':_0x1ea046['currentUser']['id']})[_0xce42c6('0x1af5')]['then'](function(_0x41cbd2){const _0x10a0e4=_0xce42c6;if(_0x41cbd2['count'])return _0x419ede[_0x10a0e4('0x28e2')]({'controller':_0x10a0e4('0x19f9'),'controllerAs':'vm','templateUrl':_0x1ac9d2,'parent':angular[_0x10a0e4('0x1ce1')](_0x146bb3[_0x10a0e4('0x13aa')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x41cbd2,'required':_0x1ea046['currentUser'][_0x10a0e4('0x1f6d')]}});})[_0xce42c6('0x17e7')](function(_0x198942){const _0x5f119e=_0xce42c6;if(!_0x1ea046[_0x5f119e('0x197c')][_0x5f119e('0x1f6d')]){if(_0x198942&&_0x198942!==-0x1)_0x8e3294(_0x198942+_0x3ff4e3);else!_0x198942&&_0x8e3294(_0x3ff4e3);}else _0x198942&&_0x198942!==-0x1&&_0x8e3294(_0x198942+_0x3ff4e3);});}function _0x8e3294(_0xe01271){const _0x271068=_0x29902c;switch(_0x1ea046['currentUser'][_0x271068('0xa79')]){case 0x0:return _0x45406b(_0x271068('0x178f')+(_0x1ea046['currentUser'][_0x271068('0x159b')]||_0x271068('0x105d'))+_0x271068('0x998')+_0x35c678(_0xe01271));case 0x2:return _0x37a4c1['$broadcast'](_0x271068('0x1ebc'),{'target':_0x35c678(_0xe01271)});default:break;}}_0x1ea046[_0x29902c('0x6b1')]=function(_0xddc585){const _0x2ee8b0=_0x29902c;return _0x1ea046[_0x2ee8b0('0x197c')][_0x2ee8b0('0xa79')]!==0x2?_0x35d0c2(_0xddc585):_0x8e3294(_0xddc585);},_0x1ea046[_0x29902c('0x194')]=function(_0xacffdc){const _0x2d98f0=_0x29902c;switch(_0x1ea046[_0x2d98f0('0x197c')][_0x2d98f0('0xa79')]){case 0x0:return _0x45406b('http://127.0.0.1:'+(_0x1ea046[_0x2d98f0('0x197c')]['phoneBarRemoteControlPort']||'9888')+_0x2d98f0('0x2114')+_0x35c678(_0xacffdc));case 0x2:_0x37a4c1[_0x2d98f0('0x2446')]('webrtc::transfer',{'target':_0x35c678(_0xacffdc)});break;default:break;}};function _0x35c678(_0x4153db){const _0xd699a9=_0x29902c;return!_0x49cbdd()[_0xd699a9('0x390')](_0x4153db)?_0x4153db[_0xd699a9('0x737')](/[^\w.+#*-]+/g,''):'';}function _0x45406b(_0x215885){const _0x4b996e=_0x29902c;return _0x1f8874['get'](_0x215885)[_0x4b996e('0x130d')](function(){const _0x2c10b6=_0x4b996e;_0x2874d7[_0x2c10b6('0x130d')]({'title':_0x2c10b6('0x20ca'),'msg':_0x2c10b6('0x278f')});})[_0x4b996e('0x1db9')](function(){const _0x1a2079=_0x4b996e;_0x2874d7[_0x1a2079('0x1db9')]({'title':_0x1a2079('0x1e5'),'msg':_0x583a0c[_0x1a2079('0x1acc')](_0x1a2079('0x15be'))});});}}],'templateUrl':_0x7788c2};}const _0x3eeeca=_0x54391e;_0x3a0cf8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x1dce')];function _0x2ca6ed(){const _0x217eb7=_0x4376d8;_0x4d87b3[_0x217eb7('0x1b9c')]=['configuration'];const _0x11a7e4=this;let _0x39ba64={'formatter':function(_0x48269c){if(!_0x48269c)return'';return _0x48269c===''?_0x48269c:new Date(_0x48269c);},'parser':function(_0x157643){const _0x4f3182=_0x217eb7;if(!_0x157643)return'';return _0x107a13()(_0x157643)[_0x4f3182('0xd62')](_0x107a13()(_0x157643)[_0x4f3182('0x1376')](),'m')[_0x4f3182('0x4d')]();}};function _0x4d87b3(_0x3493a2){const _0x2031c5=_0x217eb7;_0x39ba64=angular[_0x2031c5('0x15f7')]({},_0x39ba64,_0x3493a2);}_0x11a7e4['config']=_0x4d87b3,_0x11a7e4[_0x217eb7('0x50d')]=function(){return _0x39ba64;};}function _0x3a0cf8(_0x4cd34b){return{'require':'ngModel','priority':0x1,'link':function(_0x257528,_0x537e62,_0x291692,_0x7de539){const _0x203b60=a0_0xd29e;_0x7de539[_0x203b60('0x18a9')]['push'](_0x4cd34b[_0x203b60('0x157d')]),_0x7de539['$parsers'][_0x203b60('0x269f')](_0x4cd34b[_0x203b60('0xa3e')]);}};}_0x32eb77['$inject']=[_0x4376d8('0x212e')];function _0x32eb77(_0x3a7319){return{'restrict':'E','scope':{'id':'=','model':'=','element':'=','title':'=','path':'='},'replace':!![],'link':function(_0x473a25,_0xaf26ec){const _0x175792=a0_0xd29e;let _0x144de8=![];const _0x2c21a1={};_0x2c21a1['id']=_0x473a25['id'];!_0x49cbdd()[_0x175792('0x390')](_0x473a25[_0x175792('0x1fc9')])&&(_0x2c21a1[_0x175792('0x1fc9')]=_0x473a25[_0x175792('0x1fc9')]);const _0x4bd947=document[_0x175792('0x68d')](_0x473a25['element']);_0x4bd947['setAttribute']('preload','none'),_0x4bd947[_0x175792('0x224')](_0x175792('0x41e'),_0x175792('0xe34')),_0x473a25[_0x175792('0x1ce1')]===_0x175792('0x1c86')&&_0x4bd947[_0x175792('0x224')](_0x175792('0x14fa'),_0x175792('0xab')),_0x473a25[_0x175792('0x1ce1')]===_0x175792('0x24d1')&&_0x4bd947['setAttribute'](_0x175792('0x14fa'),'max-width:\x20500px;'),_0x4bd947['setAttribute'](_0x175792('0x24d3'),_0x473a25[_0x175792('0x24d3')]),_0x4bd947[_0x175792('0x224')](_0x175792('0x1e55'),'\x20'),_0x4bd947[_0x175792('0x217c')]=function(_0x13fdea){const _0x429a32=_0x175792;!_0x144de8&&(_0x144de8=!![],_0x13fdea[_0x429a32('0xdc5')](),_0x3a7319[_0x473a25[_0x429a32('0x23ed')]]['download'](_0x2c21a1)[_0x429a32('0x1af5')]['then'](function(_0x1ae05f){const _0x4e0afa=_0x429a32,_0x4ccabc=[_0x1ae05f['buffer']],_0x476dc6=new Blob(_0x4ccabc,{'type':_0x1ae05f[_0x4e0afa('0x412')]});_0x4bd947['setAttribute']('type',_0x1ae05f[_0x4e0afa('0x412')]),_0x4bd947[_0x4e0afa('0x224')]('src',URL[_0x4e0afa('0x28ce')](_0x476dc6)),_0x4bd947[_0x4e0afa('0x1a7c')]();})[_0x429a32('0x16df')](function(_0x23199c){const _0x40103a=_0x429a32;console[_0x40103a('0x1db9')](_0x23199c);}));},_0xaf26ec[_0x175792('0x25a')](_0x4bd947);}};}const _0x4e3cd0=_0x32eb77,_0x4ac165=_0x4cf2bc['p']+'src/js/modules/core/directives/ms-dual-multiselect/ms-dual-multiselect.html/ms-dual-multiselect.html';;function _0x2ceecf(){const _0x187507=_0x4376d8;return{'restrict':'E','scope':{'options':'='},'controller':[_0x187507('0x668'),function(_0x26437c){const _0xcaf277=_0x187507;_0x26437c['canTransfer']=function(_0x4f54d7,_0x20b823,_0x78c67b){const _0x4d6b86=a0_0xd29e;if(_0x20b823[_0x4d6b86('0x1fc2')])return;else{if(typeof _0x4f54d7['isValid']!==_0x4d6b86('0xfad')&&_0x4f54d7[_0x4d6b86('0xc98')])return _0x78c67b?_0x26437c[_0x4d6b86('0x194')](_0x20b823[_0x4d6b86('0xc14')],_0x20b823[_0x4d6b86('0x532')],_0x20b823[_0x4d6b86('0xc14')][_0x4d6b86('0x2567')](_0x4f54d7),_0x78c67b):_0x26437c[_0x4d6b86('0x194')](_0x20b823[_0x4d6b86('0x532')],_0x20b823[_0x4d6b86('0xc14')],_0x20b823[_0x4d6b86('0x532')]['indexOf'](_0x4f54d7),_0x78c67b);}},_0x26437c[_0xcaf277('0x194')]=function(_0x54c302,_0x5afcfd,_0x24aff5,_0x13d2c1){const _0x27b72d=_0xcaf277;let _0x14a4fb=[];if(_0x24aff5>=0x0)_0x14a4fb[_0x27b72d('0x269f')](_0x54c302[_0x24aff5]),_0x5afcfd['push'](_0x54c302[_0x24aff5]),_0x54c302[_0x27b72d('0x2335')](_0x24aff5,0x1);else{for(let _0x1b3f8d=0x0;_0x1b3f8d<_0x54c302[_0x27b72d('0x1f73')];_0x1b3f8d++){typeof _0x54c302[_0x1b3f8d][_0x27b72d('0xc98')]!==_0x27b72d('0xfad')&&_0x54c302[_0x1b3f8d]['isValid']&&_0x5afcfd[_0x27b72d('0x269f')](_0x54c302[_0x1b3f8d]);}for(let _0x5193a1=_0x54c302[_0x27b72d('0x1f73')]-0x1;_0x5193a1>=0x0;_0x5193a1--){_0x54c302[_0x5193a1][_0x27b72d('0xc98')]&&_0x54c302['splice'](_0x5193a1,0x1);}_0x14a4fb=_0x5afcfd;}_0x26437c[_0x27b72d('0x19')]['transferCallback']&&_0x26437c[_0x27b72d('0x19')][_0x27b72d('0x188d')](_0x14a4fb,_0x13d2c1);},_0x26437c[_0xcaf277('0xb19')]=function(_0x27b7c7,_0x32e78a){const _0x26625a=_0xcaf277;let _0x1518d3='';if(_0x49cbdd()['isNil'](_0x32e78a))return _0x1518d3;if(_0x49cbdd()['isArray'](_0x32e78a)){for(let _0x481af8=0x0;_0x481af8<_0x32e78a[_0x26625a('0x1f73')];_0x481af8++){_0x1518d3+='\x20'+(_0x27b7c7[_0x32e78a[_0x481af8]]?_0x27b7c7[_0x32e78a[_0x481af8]]:'');}return _0x1518d3;}else return _0x27b7c7[_0x32e78a]?_0x27b7c7[_0x32e78a]:'';};}],'templateUrl':_0x4ac165};}const _0x2a249b=_0x2ceecf;_0x2f3dce[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28da')];function _0x2f3dce(_0x4aa832){return{'restrict':'E','replace':!![],'scope':{'onReply':'&','ngModel':'=','ctrlMethods':'=','pickerPosition':'=','search':'=','recentEmojis':'=','placeholder':'='},'template':'','link':function(_0x401aba,_0x24e598){const _0x588385=a0_0xd29e,_0x3d3e2a=_0x24e598[_0x588385('0x52')]({'pickerPosition':_0x401aba['pickerPosition'],'search':_0x401aba[_0x588385('0xfba')],'recentEmojis':_0x401aba[_0x588385('0x3ec')],'placeholder':_0x4aa832[_0x588385('0x1acc')](_0x401aba[_0x588385('0x1ba5')]||_0x588385('0x1e8d')),'attributes':{'spellcheck':!![]},'events':{'keypress':function(_0x464f31,_0x78e199){const _0x70babf=_0x588385;_0x401aba[_0x70babf('0x1e2')]=this[_0x70babf('0x1c71')](),_0x401aba[_0x70babf('0x1327')]({'event':_0x78e199,'body':this[_0x70babf('0x1c71')]()});},'emojibtn_click':function(){const _0x528b9a=_0x588385;_0x401aba[_0x528b9a('0x1e2')]=this['getText']();}}});_0x401aba[_0x588385('0x1e2')]&&_0x3d3e2a[0x0][_0x588385('0x52')][_0x588385('0x74a')](_0x401aba[_0x588385('0x1e2')]),_0x401aba[_0x588385('0x1a95')]=_0x401aba[_0x588385('0x1a80')]||{},_0x401aba[_0x588385('0x1a95')]['setText']=function(_0x5082be){const _0x5a4dcc=_0x588385;_0x3d3e2a[0x0]['emojioneArea'][_0x5a4dcc('0x74a')](_0x5082be);},_0x401aba[_0x588385('0x1a95')][_0x588385('0x1c71')]=function(){const _0x500d0b=_0x588385;return _0x3d3e2a[0x0][_0x500d0b('0x52')][_0x500d0b('0x1c71')]();},_0x401aba[_0x588385('0x620')](_0x588385('0x1e2'),function(_0x1fdfd1){const _0x46e6e1=_0x588385;!_0x1fdfd1&&_0x3d3e2a[0x0]['emojioneArea'][_0x46e6e1('0x74a')]('');});}};}const _0x53d786=_0x2f3dce,_0x4c72df=_0x4cf2bc['p']+'src/js/modules/core/directives/ms-font-family/ms-font-family.html/ms-font-family.html';;function _0x5c08d8(){return{'restrict':'E','scope':{'ngModel':'='},'controller':['$scope',function(_0x17a1f9){const _0x47d901=a0_0xd29e;_0x17a1f9[_0x47d901('0x6fc')]=[{'option':_0x47d901('0x542'),'value':'Arial,Helvetica,sans-serif'},{'option':'Century\x20Gothic','value':_0x47d901('0x15ad')},{'option':_0x47d901('0x2457'),'value':'Calibri,\x20Verdana,\x20Geneva,\x20sans-serif'},{'option':_0x47d901('0x10c4'),'value':_0x47d901('0xce4')},{'option':_0x47d901('0x1e54'),'value':'Courier\x20New,Courier,monospace'},{'option':_0x47d901('0x1f87'),'value':_0x47d901('0x71e')},{'option':_0x47d901('0x57c'),'value':_0x47d901('0xc71')},{'option':'Tahoma','value':'Tahoma,Geneva,sans-serif'},{'option':'Times\x20New\x20Roman','value':_0x47d901('0x1e93')},{'option':_0x47d901('0x1d43'),'value':_0x47d901('0x1ff1')},{'option':'Verdana','value':_0x47d901('0x23b4')}];}],'templateUrl':_0x4c72df};}const _0x1f32f4=_0x5c08d8;function _0x525cf7(){const _0x38fb98=_0x4376d8,_0x4181a5=this;_0x4181a5[_0x38fb98('0x2124')]=[],_0x4181a5[_0x38fb98('0x20fe')]=0x0,_0x4181a5[_0x38fb98('0xae4')]=_0x7e93b5,_0x4181a5['previousStep']=_0x29eb9b,_0x4181a5[_0x38fb98('0x128d')]=_0x1777ba,_0x4181a5[_0x38fb98('0x38a')]=_0xa25a3e,_0x4181a5['lastStep']=_0x88b0ec,_0x4181a5['totalSteps']=_0x593ac1,_0x4181a5[_0x38fb98('0x5a0')]=_0x11ec57,_0x4181a5[_0x38fb98('0x184a')]=_0x56c64b,_0x4181a5[_0x38fb98('0x15dc')]=_0x32b23a,_0x4181a5['previousStepInvalid']=_0x44291f,_0x4181a5[_0x38fb98('0x12a1')]=_0x4a5db8,_0x4181a5['resetForm']=_0xa179c6;function _0x7e93b5(_0x41da26){const _0x4d676b=_0x38fb98;_0x4181a5[_0x4d676b('0x2124')][_0x4d676b('0x269f')](_0x41da26);}function _0x29eb9b(){const _0x4198b2=_0x38fb98;if(_0x11ec57())return;_0x4181a5[_0x4198b2('0x20fe')]--;}function _0x1777ba(){const _0x488fa6=_0x38fb98;if(_0x56c64b())return;_0x4181a5[_0x488fa6('0x20fe')]++;}function _0xa25a3e(){const _0x2c0025=_0x38fb98;_0x4181a5[_0x2c0025('0x20fe')]=0x0;}function _0x88b0ec(){_0x4181a5['selectedIndex']=_0x593ac1()-0x1;}function _0x593ac1(){const _0x1b4932=_0x38fb98;return _0x4181a5[_0x1b4932('0x2124')][_0x1b4932('0x1f73')];}function _0x11ec57(){return _0x4181a5['selectedIndex']===0x0;}function _0x56c64b(){const _0x2c3c84=_0x38fb98;return _0x4181a5[_0x2c3c84('0x20fe')]===_0x593ac1()-0x1;}function _0x32b23a(){const _0x26e4d8=_0x38fb98;return angular['isDefined'](_0x4181a5[_0x26e4d8('0x2124')][_0x4181a5[_0x26e4d8('0x20fe')]])&&_0x4181a5[_0x26e4d8('0x2124')][_0x4181a5['selectedIndex']]['$invalid'];}function _0x44291f(){const _0x11147d=_0x38fb98;return _0x4181a5[_0x11147d('0x20fe')]>0x0&&angular[_0x11147d('0x170a')](_0x4181a5[_0x11147d('0x2124')][_0x4181a5[_0x11147d('0x20fe')]-0x1])&&_0x4181a5[_0x11147d('0x2124')][_0x4181a5[_0x11147d('0x20fe')]-0x1][_0x11147d('0x19dc')];}function _0x4a5db8(){const _0x1c6291=_0x38fb98;for(let _0x3bd493=0x0;_0x3bd493<_0x4181a5[_0x1c6291('0x2124')][_0x1c6291('0x1f73')];_0x3bd493++){if(_0x4181a5[_0x1c6291('0x2124')][_0x3bd493]['$invalid'])return!![];}return![];}function _0xa179c6(){const _0x3cc947=_0x38fb98;_0x4181a5[_0x3cc947('0x20fe')]=0x0;for(let _0xda90d6=0x0;_0xda90d6<_0x4181a5[_0x3cc947('0x2124')][_0x3cc947('0x1f73')];_0xda90d6++){_0x4181a5['forms'][_0xda90d6][_0x3cc947('0x22e4')](),_0x4181a5[_0x3cc947('0x2124')][_0xda90d6][_0x3cc947('0xb81')]();}}}function _0x127249(){const _0xa8c3e7=_0x4376d8;return{'restrict':'E','scope':!![],'controller':_0xa8c3e7('0xcd3'),'compile':function(_0x5e149c){const _0x26e7f8=_0xa8c3e7;return _0x5e149c['addClass'](_0x26e7f8('0x849')),function _0x30bf02(){};}};}function _0x425e14(){return{'restrict':'A','require':['form','^msFormWizard'],'compile':function(_0x31f761){const _0x5c2509=a0_0xd29e;return _0x31f761[_0x5c2509('0x16e5')](_0x5c2509('0xa9c')),function _0x712fd2(_0x232de6,_0x580220,_0x22053d,_0x414c7e){const _0x40638e=_0x414c7e[0x0],_0x5d3408=_0x414c7e[0x1];_0x5d3408['registerForm'](_0x40638e);};}};}const _0x57227d=_0x4cf2bc['p']+_0x4376d8('0x1604');_0x386ea2['$inject']=[_0x4376d8('0x26ca')];function _0x386ea2(_0x187d8a){return{'restrict':'E','scope':{'onClose':'&'},'transclude':!![],'templateUrl':_0x57227d,'link':function(_0x34ef4f,_0x3bfd7b){const _0x2443c3=a0_0xd29e,_0x48d008=_0x187d8a['find'](_0x2443c3('0x17f3')),_0x72554c=_0x2443c3('0x17f3');_0x48d008[_0x2443c3('0x16e5')](_0x72554c);function _0x195609(){const _0x429008=_0x2443c3;_0x48d008[_0x429008('0x1e56')](_0x72554c),_0x3bfd7b[_0x429008('0x5f3')](),_0x34ef4f[_0x429008('0x12de')]&&_0x34ef4f[_0x429008('0x12de')](),_0x34ef4f[_0x429008('0x2b4')]();}_0x34ef4f['removeInfoBar']=_0x195609;}};}const _0x54ae52=_0x386ea2;_0x357ac9[_0x4376d8('0x1b9c')]=[_0x4376d8('0xef1')],_0x9ecd4c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0x113a'),_0x4376d8('0xef1')];function _0x9ecd4c(_0x33468a,_0x24388a,_0xc0bb0f,_0x282928){const _0x393c13=_0x4376d8,_0x34587b=this,_0xdb19f4={'columnCount':0x5,'respectItemOrder':![],'reLayoutDebounce':0x190,'responsive':{'md':0x3,'sm':0x2,'xs':0x1}};let _0x30536d=!![];_0x34587b[_0x393c13('0x19')]=null,_0x34587b[_0x393c13('0x2644')]=[],_0x34587b[_0x393c13('0x22de')]='',_0x34587b['columnWidth']='',_0x34587b[_0x393c13('0x532')]=[],_0x34587b[_0x393c13('0x1148')]=_0x11959f,_0x34587b[_0x393c13('0xd4a')]=_0x56f5f1,_0x34587b[_0x393c13('0x2804')]=_0x26e802;function _0x56f5f1(){_0x34587b['options']=!_0x34587b['options']?_0xdb19f4:angular['extend'](_0xdb19f4,_0x34587b['options']),_0x1aff27();}_0x33468a[_0x393c13('0x207c')](_0x393c13('0x1693'),function(){_0x11959f();});function _0x26e802(_0x4993eb,_0x2a7d07){const _0xdd6633=_0x393c13;if(typeof imagesLoaded!==_0xdd6633('0xfad')){const _0x5d169b=_0x24388a[_0xdd6633('0x26c6')](_0x4993eb);_0x5d169b['on']('done',function(){_0x2a7d07();});}else _0x2a7d07();}function _0x1aff27(){const _0x219a19=_0x393c13;_0x33468a[_0x219a19('0x620')](function(){const _0x2eca30=_0x219a19;return _0x34587b[_0x2eca30('0x2644')][_0x2eca30('0x11a8')]();},function(_0x45e7a4,_0x21e8b7){_0x45e7a4!==_0x21e8b7&&_0x11959f();});}function _0x11959f(){const _0x26187a=_0x393c13;_0x30536d&&_0x282928['cancel'](_0x30536d);_0x30536d=_0x282928(function(){_0x83e982(),_0x33468a['$broadcast']('msMasonry:relayoutFinished');},_0x34587b['options'][_0x26187a('0x27d3')]);function _0x83e982(){const _0x1f5d31=_0x26187a;_0x34587b[_0x1f5d31('0x22de')]=_0x34587b[_0x1f5d31('0x2644')][0x0][_0x1f5d31('0x1c0b')](),_0x2b7b7a(),_0x33468a[_0x1f5d31('0x2446')](_0x1f5d31('0xd2e')),_0x34587b[_0x1f5d31('0x532')]=_0x34587b[_0x1f5d31('0x2644')][_0x1f5d31('0xe8e')]('ms-masonry-item');const _0x325e0f=Array[_0x1f5d31('0x380')](null,new Array(_0x34587b[_0x1f5d31('0x1093')]))[_0x1f5d31('0x787')](function(){return 0x0;});for(let _0x12bf7a=0x0;_0x12bf7a<_0x34587b[_0x1f5d31('0x532')][_0x1f5d31('0x1f73')];_0x12bf7a++){let _0x213503=_0x34587b[_0x1f5d31('0x532')][_0x12bf7a],_0x12ab2b,_0xeebb27;_0x213503=angular[_0x1f5d31('0x1ce1')](_0x213503);_0x213503[_0x1f5d31('0xf17')]()&&_0x213503[_0x1f5d31('0xf17')]()[_0x1f5d31('0x2446')](_0x1f5d31('0x17fb'));_0x213503['css']({'width':_0x34587b[_0x1f5d31('0x230d')]});_0x34587b[_0x1f5d31('0x19')]['respectItemOrder']?(_0x12ab2b=_0x12bf7a%_0x34587b[_0x1f5d31('0x1093')],_0xeebb27=_0x325e0f[_0x12ab2b]):(_0xeebb27=Math['min'][_0x1f5d31('0x380')](Math,_0x325e0f),_0x12ab2b=_0x325e0f[_0x1f5d31('0x2567')](_0xeebb27));_0x325e0f[_0x12ab2b]=_0xeebb27+_0x213503[0x0][_0x1f5d31('0x1c0b')]()[_0x1f5d31('0x149')];const _0x499558=Math[_0x1f5d31('0x17f8')](_0x12ab2b*_0x34587b['columnWidth']),_0x59ae80=_0xeebb27;_0x213503[_0x1f5d31('0x2776')]({'transform':_0x1f5d31('0x70e')+_0x499558+_0x1f5d31('0x14e9')+_0x59ae80+'px,0px)'}),_0x213503[_0x1f5d31('0x16e5')]('placed'),_0x213503[_0x1f5d31('0xf17')]()&&_0x213503[_0x1f5d31('0xf17')]()[_0x1f5d31('0x2446')](_0x1f5d31('0x2846'));}}}function _0x2b7b7a(){const _0x11b8df=_0x393c13;_0x34587b['columnCount']=_0x34587b[_0x11b8df('0x19')][_0x11b8df('0x1093')];if(_0xc0bb0f(_0x11b8df('0x12cd')))_0x34587b[_0x11b8df('0x1093')]=_0x34587b[_0x11b8df('0x19')][_0x11b8df('0x1093')];else{if(_0xc0bb0f('md'))_0x34587b[_0x11b8df('0x1093')]=_0x34587b[_0x11b8df('0x1093')]>_0x34587b[_0x11b8df('0x19')]['responsive']['md']?_0x34587b[_0x11b8df('0x19')][_0x11b8df('0x2150')]['md']:_0x34587b[_0x11b8df('0x1093')];else _0xc0bb0f('sm')?_0x34587b[_0x11b8df('0x1093')]=_0x34587b[_0x11b8df('0x1093')]>_0x34587b[_0x11b8df('0x19')][_0x11b8df('0x2150')]['sm']?_0x34587b[_0x11b8df('0x19')][_0x11b8df('0x2150')]['sm']:_0x34587b[_0x11b8df('0x1093')]:_0x34587b[_0x11b8df('0x1093')]=_0x34587b[_0x11b8df('0x19')][_0x11b8df('0x2150')]['xs'];}_0x34587b[_0x11b8df('0x230d')]=_0x34587b['containerPos'][_0x11b8df('0x11a8')]/_0x34587b['columnCount'];}}function _0x357ac9(_0x5dbcec){const _0x534d58=_0x4376d8;return{'restrict':_0x534d58('0x1e61'),'controller':_0x534d58('0x11ca'),'compile':_0x288858};function _0x288858(_0x23f5eb,_0xb4b8ff){return{'pre':function _0x3c2f01(_0x46ffd7,_0x444d6b,_0x186b91,_0x19b73a){const _0x3b944c=a0_0xd29e;_0x19b73a['options']=angular['fromJson'](_0xb4b8ff[_0x3b944c('0x19')]||'{}'),_0x19b73a['container']=_0x23f5eb;},'post':function _0x1495fa(_0x568e82,_0x5617ef,_0x36d8a9,_0x46eac0){_0x5dbcec(function(){const _0xb3d132=a0_0xd29e;_0x46eac0[_0xb3d132('0xd4a')]();});}};}}function _0x55f727(){const _0x3291e5=_0x4376d8;return{'restrict':_0x3291e5('0x1e61'),'require':'^msMasonry','priority':0x1,'link':_0x508c3e};function _0x508c3e(_0x4ec217,_0x32120a,_0x2c7d67,_0x4835ea){const _0x40286b=_0x3291e5;_0x4835ea[_0x40286b('0x2804')](_0x32120a,function(){const _0x595c69=_0x40286b;_0x4835ea[_0x595c69('0x1148')]();}),_0x4ec217[_0x40286b('0x207c')](_0x40286b('0x2846'),function(){const _0xb0092e=_0x40286b;_0x4ec217[_0xb0092e('0x620')](function(){const _0xa8e390=_0xb0092e;return _0x32120a[_0xa8e390('0x149')]();},function(_0x505af5,_0x3000ce){_0x505af5!==_0x3000ce&&_0x4835ea['reLayout']();});}),_0x32120a['on'](_0x40286b('0x2b4'),function(){const _0x89ed2f=_0x40286b;_0x4835ea[_0x89ed2f('0x1148')]();});}}const _0x5012ec=_0x4cf2bc['p']+_0x4376d8('0x1831');_0x3ff731[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x1d33'),_0x4376d8('0x1a4a'),_0x4376d8('0x70a')];function _0x3ff731(_0x2ed39f,_0x509fb5,_0x556b4f,_0x5aa015){const _0x43bef0=_0x4376d8,_0x2f4cba=this;_0x2f4cba[_0x43bef0('0x27bd')]=_0x509fb5,_0x2f4cba[_0x43bef0('0x7d2')]=![],_0x2f4cba[_0x43bef0('0x1da')]=![],_0x2ed39f[_0x43bef0('0x248f')]={},_0x2f4cba[_0x43bef0('0x1cda')]=_0x1940fb,_0x2f4cba[_0x43bef0('0x1bcd')]=_0x4f43ed,_0x2f4cba[_0x43bef0('0x1d06')]=_0x387fcd,_0x2ed39f[_0x43bef0('0x620')](_0x43bef0('0x1e2'),_0x3a1447);function _0x1940fb(_0x552d80,_0x10ddfe){const _0x4c7838=_0x43bef0;_0x2f4cba[_0x4c7838('0x7d2')]=_0x552d80,_0x2f4cba[_0x4c7838('0x1da')]=_0x10ddfe;}function _0x4f43ed(_0x12a4dd,_0x1f0c26){const _0x2412c2=_0x43bef0;_0x5e692d(_0x12a4dd,_0x1f0c26),_0x2f596f(),_0x556b4f[_0x2412c2('0x212a')]();}function _0x387fcd(){const _0x546b1b=_0x43bef0;_0x2f4cba[_0x546b1b('0x345')]={'palette':'','hue':'','class':''},_0x1940fb(![],![]),_0x2f596f();}function _0x3a1447(){const _0x15a514=_0x43bef0;if(!_0x2f4cba['modelCtrl'][_0x15a514('0x1119')]||_0x2f4cba['modelCtrl'][_0x15a514('0x1119')]===''){_0x387fcd();return;}let _0x280899,_0x154ed3;if(_0x2f4cba[_0x15a514('0x474')]===_0x15a514('0x164e')){const _0x300441=_0x2f4cba['modelCtrl'][_0x15a514('0x1119')][_0x15a514('0x2007')]('-');_0x300441[_0x15a514('0x1f73')]>=0x5?(_0x280899=_0x300441[0x1]+'-'+_0x300441[0x2],_0x154ed3=_0x300441[0x3]):(_0x280899=_0x300441[0x1],_0x154ed3=_0x300441[0x2]);}else _0x2f4cba[_0x15a514('0x474')]===_0x15a514('0x28ad')&&(_0x280899=_0x2f4cba[_0x15a514('0xad4')][_0x15a514('0x1119')]['palette'],_0x154ed3=_0x2f4cba['modelCtrl'][_0x15a514('0x1119')][_0x15a514('0x118e')]||0x1f4);_0x5e692d(_0x280899,_0x154ed3);}function _0x5e692d(_0x2b38ec,_0xd8f3f8){const _0x2d94fe=_0x43bef0;_0x2f4cba['selectedColor']={'palette':_0x2b38ec,'hue':_0xd8f3f8,'class':'md-'+_0x2b38ec+'-'+_0xd8f3f8+'-bg','bgColorValue':_0x5aa015[_0x2d94fe('0x1c6e')](_0x2f4cba['palettes'][_0x2b38ec][_0xd8f3f8]['value']),'fgColorValue':_0x5aa015['rgba'](_0x2f4cba[_0x2d94fe('0x27bd')][_0x2b38ec][_0xd8f3f8][_0x2d94fe('0x80b')])},_0x2f4cba[_0x2d94fe('0x474')]===_0x2d94fe('0x28ad')&&!angular[_0x2d94fe('0x15d2')](_0x2f4cba[_0x2d94fe('0x345')],_0x2f4cba[_0x2d94fe('0xad4')][_0x2d94fe('0x1119')])&&_0x2f596f(),_0x1940fb(_0x2b38ec,_0x2f4cba[_0x2d94fe('0x27bd')][_0x2b38ec]),_0x2ed39f['$selectedColor']=_0x2f4cba[_0x2d94fe('0x345')];}function _0x2f596f(){const _0x1e18d0=_0x43bef0;if(_0x2f4cba[_0x1e18d0('0x474')]===_0x1e18d0('0x164e'))_0x2f4cba[_0x1e18d0('0xad4')][_0x1e18d0('0x97c')](_0x2f4cba[_0x1e18d0('0x345')][_0x1e18d0('0x164e')]);else _0x2f4cba[_0x1e18d0('0x474')]===_0x1e18d0('0x28ad')&&_0x2f4cba[_0x1e18d0('0xad4')][_0x1e18d0('0x97c')](_0x2f4cba['selectedColor']);}}function _0x585561(){const _0x3620e4=_0x4376d8;return{'require':[_0x3620e4('0xe02'),_0x3620e4('0x1e2')],'restrict':'E','scope':{'ngModel':'=','msModelType':'@?'},'controller':'msMaterialColorPickerController\x20as\x20vm','transclude':!![],'templateUrl':_0x5012ec,'link':function(_0x10849e,_0x3919d7,_0x54a38e,_0x38030a,_0x4df8e1){const _0x50d972=_0x3620e4,_0x3fad02=_0x38030a[0x0];_0x3fad02['modelCtrl']=_0x38030a[0x1],_0x3fad02[_0x50d972('0x474')]=_0x10849e[_0x50d972('0x474')]||_0x50d972('0x164e'),_0x4df8e1(_0x10849e,function(_0x2a3963){const _0x29dea8=_0x50d972;_0x2a3963=_0x2a3963[_0x29dea8('0x2483')](function(_0x25d186,_0x339ccf){const _0x5a1fc0=_0x29dea8;return _0x339ccf[_0x5a1fc0('0x215e')]===0x1?!![]:![];}),_0x2a3963['length']&&_0x3919d7[_0x29dea8('0xe8e')](_0x29dea8('0x201b'))['replaceWith'](_0x2a3963);});}};}_0xa12e9[_0x4376d8('0x1b9c')]=[_0x4376d8('0x655'),'$q',_0x4376d8('0x19f2'),_0x4376d8('0xc4c')],_0x4e7a70['$inject']=[_0x4376d8('0x655'),_0x4376d8('0xbd8'),_0x4376d8('0xfe4')],_0x112c62[_0x4376d8('0x1b9c')]=[_0x4376d8('0x26ca'),_0x4376d8('0x655'),_0x4376d8('0xfe4')];function _0x9218e4(){let _0x53ee5c={};const _0x356d07={'setFoldable':_0x4b32d1,'isNavFoldedOpen':_0x3f6aba,'toggleFold':_0x35cbf7,'openFolded':_0xd01f74,'closeFolded':_0x5803de};return _0x356d07;function _0x4b32d1(_0x4dfe1a,_0x119efd){_0x53ee5c={'scope':_0x4dfe1a,'element':_0x119efd};}function _0x3f6aba(){const _0x4c1b8a=a0_0xd29e;return _0x53ee5c[_0x4c1b8a('0xf17')][_0x4c1b8a('0x60e')]();}function _0x35cbf7(){const _0x534c66=a0_0xd29e;_0x53ee5c[_0x534c66('0xf17')][_0x534c66('0x5d4')]();}function _0xd01f74(){_0x53ee5c['scope']['openFolded']();}function _0x5803de(){const _0x5bc802=a0_0xd29e;_0x53ee5c['scope'][_0x5bc802('0x19a1')]();}}function _0x112c62(_0x5b3684,_0x1f78fe,_0x3e60db){return{'restrict':'A','link':function(_0x26e429,_0x67a955,_0x200187){const _0x996a6=a0_0xd29e;let _0x5b7167=_0x200187[_0x996a6('0x1c77')]===_0x996a6('0xe34'),_0x32b1ce=![];const _0x498d5b=angular[_0x996a6('0x1ce1')](_0x5b3684[0x0]['body']),_0x56d790=angular[_0x996a6('0x1ce1')](_0x996a6('0x1c48')),_0x10ff19=angular[_0x996a6('0x1ce1')](_0x996a6('0x823')),_0x11579d=_0x67a955['parent']();_0x3e60db[_0x996a6('0x10ae')](_0x26e429,_0x67a955,_0x5b7167);_0x5b7167?_0x4623ac():_0x101acb();function _0x5be055(){return _0x32b1ce;}function _0x58b6f7(){_0x5b7167=!_0x5b7167,_0x5b7167?_0x4623ac():_0x101acb();}function _0x4623ac(){const _0x1711c0=_0x996a6;_0x498d5b[_0x1711c0('0x16e5')](_0x1711c0('0x1e8f')),_0x1f78fe[_0x1711c0('0x2446')]('msNav::forceCollapse'),_0x67a955[_0x1711c0('0x1df4')](0x0),_0x11579d[_0x1711c0('0x25a')](_0x56d790),_0x56d790['on'](_0x1711c0('0x1cff'),function(_0x594d90){_0x7b6e7d(_0x594d90),_0x32b1ce=!![];});}function _0x7b6e7d(_0x235740){const _0x373457=_0x996a6;angular[_0x373457('0x170a')](_0x235740)&&_0x235740[_0x373457('0xdc5')](),_0x498d5b[_0x373457('0x16e5')](_0x373457('0x1e7b')),_0x1f78fe[_0x373457('0x2446')](_0x373457('0x26af')),_0x11579d[_0x373457('0xe8e')](_0x56d790)[_0x373457('0x5f3')](),_0x11579d[_0x373457('0x14e')]()[_0x373457('0x25a')](_0x10ff19),_0x10ff19['on'](_0x373457('0x1cff'),function(_0x4fe848){_0x54ef07(_0x4fe848),_0x32b1ce=![];});}function _0x54ef07(_0x6b08a9){const _0x2ef1b5=_0x996a6;angular[_0x2ef1b5('0x170a')](_0x6b08a9)&&_0x6b08a9[_0x2ef1b5('0xdc5')](),_0x1f78fe[_0x2ef1b5('0x2446')](_0x2ef1b5('0x60b')),_0x67a955[_0x2ef1b5('0x1df4')](0x0),_0x498d5b[_0x2ef1b5('0x1e56')](_0x2ef1b5('0x1e7b')),_0x11579d[_0x2ef1b5('0x14e')]()['find'](_0x10ff19)[_0x2ef1b5('0x5f3')](),_0x11579d[_0x2ef1b5('0x25a')](_0x56d790),_0x56d790['on'](_0x2ef1b5('0x1cff'),function(_0x3cfc3c){_0x7b6e7d(_0x3cfc3c),_0x32b1ce=!![];});}function _0x101acb(){const _0x3fa074=_0x996a6;_0x498d5b[_0x3fa074('0x1e56')](_0x3fa074('0x119b')),_0x1f78fe[_0x3fa074('0x2446')]('msNav::expandMatchingToggles'),_0x67a955[_0x3fa074('0xecb')](_0x3fa074('0xf74'));}_0x26e429[_0x996a6('0x5d4')]=_0x58b6f7,_0x26e429[_0x996a6('0x1d31')]=_0x7b6e7d,_0x26e429[_0x996a6('0x19a1')]=_0x54ef07,_0x26e429['isNavFoldedOpen']=_0x5be055,_0x26e429['$on'](_0x996a6('0x2b4'),function(){const _0x383017=_0x996a6;_0x56d790[_0x383017('0xecb')](_0x383017('0x1cff')),_0x10ff19['off']('mouseenter\x20touchstart'),_0x67a955[_0x383017('0xecb')]('mouseenter\x20mouseleave');});}};}function _0x4bddd6(){const _0x564d4c=_0x4376d8,_0x2cacae=this;let _0x24a002=![];const _0xed214b=[];let _0xbf744e=[];_0x2cacae[_0x564d4c('0x295')]=_0x362860,_0x2cacae['enable']=_0x4437d5,_0x2cacae[_0x564d4c('0x94f')]=_0x3fe75b,_0x2cacae[_0x564d4c('0x1dd2')]=_0x1c09ca,_0x2cacae[_0x564d4c('0x1b27')]=_0xefabf1,_0x2cacae[_0x564d4c('0x7fe')]=_0x2ff597,_0x2cacae[_0x564d4c('0x1da9')]=_0x57e2c8;function _0x362860(){return _0x24a002;}function _0x3fe75b(){_0x24a002=!![];}function _0x4437d5(){_0x24a002=![];}function _0x1c09ca(_0x3519cf,_0x33055e){_0xed214b['push']({'element':_0x3519cf,'scope':_0x33055e});}function _0xefabf1(){return _0xbf744e;}function _0x2ff597(_0x2d9f8f,_0x4c6f71){const _0x2c4c30=_0x564d4c;_0xbf744e[_0x2c4c30('0x269f')]({'element':_0x2d9f8f,'scope':_0x4c6f71});}function _0x57e2c8(){_0xbf744e=[];}}function _0x4e7a70(_0xe60992,_0x5c5381,_0x116583){const _0x2e3ecc=_0x4376d8;return{'restrict':'E','scope':{},'controller':_0x2e3ecc('0x1fd4'),'compile':function(_0x54a95c){const _0x5822ed=_0x2e3ecc;return _0x54a95c['addClass'](_0x5822ed('0x2462')),function _0x3e05dd(_0x215e32){const _0x3023aa=_0x5822ed;_0xe60992[_0x3023aa('0x2446')](_0x3023aa('0x26af'));const _0x7d8173=_0xe60992[_0x3023aa('0x207c')]('$stateChangeSuccess',function(){const _0x41ad70=_0x3023aa;_0xe60992[_0x41ad70('0x2446')]('msNav::expandMatchingToggles'),_0x5c5381[_0x41ad70('0xdd7')]('navigation')[_0x41ad70('0x17e7')](function(_0x17c8cf){_0x17c8cf['close'](),_0x116583['isNavFoldedOpen']()&&_0x116583['closeFolded']();});});_0x215e32[_0x3023aa('0x207c')]('$destroy',function(){_0x7d8173();});};}};}function _0x25034a(){return{'restrict':'A','compile':function(_0x389c4b){const _0x1ea2a7=a0_0xd29e;return _0x389c4b[_0x1ea2a7('0x16e5')](_0x1ea2a7('0x914')),function _0x5be028(){};}};}function _0x124d40(){return{'restrict':'AE','compile':function(_0x4c04a4){const _0x61b80b=a0_0xd29e;return _0x4c04a4[_0x61b80b('0x16e5')]('ms-nav-button'),function _0x39a5df(){};}};}function _0xa12e9(_0xf9182f,_0x28b968,_0x121911,_0x2f72fb){const _0x1ee3d7=_0x4376d8;return{'restrict':'A','require':_0x1ee3d7('0x97'),'scope':!![],'compile':function(_0x234988,_0x31bd87){const _0x297522=_0x1ee3d7;return _0x234988[_0x297522('0x16e5')](_0x297522('0xf4a')),angular[_0x297522('0x1a77')](_0x31bd87[_0x297522('0x18c1')])&&(_0x31bd87[_0x297522('0x18c1')]=!![]),_0x234988[_0x297522('0xe0')](_0x297522('0x18c1'),_0x31bd87['collapsed']),function _0x28e698(_0x246172,_0x219544,_0x3831c7,_0x439edc){const _0x5ccff4=_0x297522,_0x2b6503={'expanded':'expanded','expandAnimation':_0x5ccff4('0x27ff'),'collapseAnimation':_0x5ccff4('0x18d2')},_0x2b9103=_0x219544[_0x5ccff4('0xe8e')]('a'),_0xba1935=[],_0xc82871=/\(.*\)/g;angular['forEach'](_0x2b9103,function(_0x51dd29){const _0x43c72a=_0x5ccff4;let _0x167855=angular['element'](_0x51dd29)[_0x43c72a('0xe0')](_0x43c72a('0xcba'));if(angular[_0x43c72a('0x1a77')](_0x167855))return;_0x167855=_0x167855[_0x43c72a('0x737')](_0xc82871,''),_0xba1935[_0x43c72a('0x269f')](_0x167855);}),_0x439edc[_0x5ccff4('0x1dd2')](_0x219544,_0x246172),_0x219544['children'](_0x5ccff4('0x18f2'))['on'](_0x5ccff4('0x20d4'),_0x527786);function _0x527786(){const _0x1dd495=_0x5ccff4;if(_0x439edc[_0x1dd495('0x295')]())return;_0x439edc[_0x1dd495('0x94f')](),_0x210dd5()?(_0x439edc[_0x1dd495('0x1da9')](),_0x246172[_0x1dd495('0xc58')]('msNav::pushToLockedList'),_0xf9182f['$broadcast']('msNav::collapse'),_0x505654()['then'](function(){const _0x2c2430=_0x1dd495;_0x439edc[_0x2c2430('0x2ac')]();})):_0x246172[_0x1dd495('0x2446')](_0x1dd495('0x60b'));}_0x246172['$on'](_0x5ccff4('0x2b4'),function(){const _0x443ccc=_0x5ccff4;_0x219544[_0x443ccc('0x2857')](_0x443ccc('0x18f2'))[_0x443ccc('0xecb')](_0x443ccc('0x20d4'));}),_0x246172[_0x5ccff4('0x207c')](_0x5ccff4('0x238d'),function(){const _0x119329=_0x5ccff4,_0x25beab=_0x439edc[_0x119329('0x1b27')]();let _0x32f4ce=![];angular[_0x119329('0xccd')](_0x25beab,function(_0x3ebc9d){const _0x257f2a=_0x119329;angular[_0x257f2a('0x15d2')](_0x3ebc9d[_0x257f2a('0xf17')],_0x246172)&&(_0x32f4ce=!![]);});if(_0x32f4ce)return;_0x167eba()[_0x119329('0x17e7')](function(){_0x439edc['enable']();});}),_0x246172[_0x5ccff4('0x207c')](_0x5ccff4('0x60b'),function(){const _0x74d68a=_0x5ccff4;_0x167eba()[_0x74d68a('0x17e7')](function(){const _0x1b4ca7=_0x74d68a;_0x439edc[_0x1b4ca7('0x2ac')]();});}),_0x246172[_0x5ccff4('0x207c')](_0x5ccff4('0x26af'),function(){const _0x430518=_0x5ccff4,_0x52cc86=_0x2f72fb[_0x430518('0x1247')][_0x430518('0x2aa')];let _0x5818fc=![];angular[_0x430518('0xccd')](_0xba1935,function(_0x51e1d6){_0x52cc86===_0x51e1d6&&(_0x5818fc=!![]);}),_0x5818fc?_0x505654():_0x167eba();}),_0x246172['$on'](_0x5ccff4('0x26a9'),function(){const _0x18deb8=_0x5ccff4;_0x439edc[_0x18deb8('0x7fe')](_0x219544,_0x246172);});function _0x210dd5(){const _0xae597e=_0x5ccff4;return _0x219544['attr'](_0xae597e('0x18c1'))===_0xae597e('0xe34');}function _0x298697(){return!_0x210dd5();}function _0x505654(){const _0x47bf58=_0x5ccff4,_0xef05f8=_0x28b968[_0x47bf58('0x113c')]();if(_0x298697())return _0xef05f8[_0x47bf58('0x1ad1')]({'error':!![]}),_0xef05f8['promise'];_0x219544[_0x47bf58('0xe0')](_0x47bf58('0x18c1'),![]);const _0x17752d=angular[_0x47bf58('0x1ce1')](_0x219544[_0x47bf58('0xe8e')]('ms-nav-toggle-items')[0x0]);_0x17752d[_0x47bf58('0x2776')]({'position':'absolute','visibility':_0x47bf58('0x5c'),'display':_0x47bf58('0x25ef'),'height':'auto'});const _0x414b07=_0x17752d[0x0][_0x47bf58('0xfa9')];return _0x17752d[_0x47bf58('0x2776')]({'position':'','visibility':'','display':'','height':''}),_0x246172[_0x47bf58('0x8ab')](function(){const _0xac1809=_0x47bf58;_0x121911['animate'](_0x17752d,{'display':'block','height':_0xac1809('0x8f3')},{'height':_0x414b07+'px'},_0x2b6503[_0xac1809('0x1a56')])[_0xac1809('0x17e7')](function(){const _0x225fed=_0xac1809;_0x17752d[_0x225fed('0x16e5')](_0x2b6503[_0x225fed('0x1812')]),_0x17752d[_0x225fed('0x2776')]({'height':''}),_0xef05f8[_0x225fed('0x898')]({'success':!![]});});}),_0xef05f8[_0x47bf58('0x1691')];}function _0x167eba(){const _0x307f74=_0x5ccff4,_0x9f0695=_0x28b968[_0x307f74('0x113c')]();if(_0x210dd5())return _0x9f0695[_0x307f74('0x1ad1')]({'error':!![]}),_0x9f0695[_0x307f74('0x1691')];_0x219544[_0x307f74('0xe0')]('collapsed',!![]);const _0x2ab58a=angular[_0x307f74('0x1ce1')](_0x219544[_0x307f74('0xe8e')](_0x307f74('0x28b1'))[0x0]),_0x1ee6e0=_0x2ab58a[0x0][_0x307f74('0xfa9')];return _0x246172[_0x307f74('0x8ab')](function(){const _0x93411b=_0x307f74;_0x121911[_0x93411b('0xe14')](_0x2ab58a,{'height':_0x1ee6e0+'px'},{'height':_0x93411b('0x8f3')},_0x2b6503[_0x93411b('0x25da')])[_0x93411b('0x17e7')](function(){const _0x450f66=_0x93411b;_0x2ab58a[_0x450f66('0x1e56')](_0x2b6503[_0x450f66('0x1812')]),_0x2ab58a['css']({'display':'','height':''}),_0x9f0695[_0x450f66('0x898')]({'success':!![]});});}),_0x9f0695[_0x307f74('0x1691')];}};}};}const _0x3aa109=_0x4cf2bc['p']+_0x4376d8('0x5e2'),_0x494a4c=_0x4cf2bc['p']+'src/js/modules/core/directives/ms-navigation/templates/vertical.html/vertical.html';_0x5c0228[_0x4376d8('0x1b9c')]=[_0x4376d8('0x113a')],_0x37c6a4[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x1dc'),'$rootScope',_0x4376d8('0xc4c'),_0x4376d8('0xa61')],_0x56fed2[_0x4376d8('0x1b9c')]=[_0x4376d8('0xa61')],_0xf20ffd['$inject']=['$scope','$element',_0x4376d8('0x655'),_0x4376d8('0x19f2'),_0x4376d8('0xc4c'),_0x4376d8('0xa61')],_0x133b34[_0x4376d8('0x1b9c')]=[_0x4376d8('0x655'),_0x4376d8('0xef1'),_0x4376d8('0xf69'),_0x4376d8('0xa61')],_0x229d03[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xa61')];function _0x3e4a0e(){const _0x521eca=_0x4376d8,_0xc46c58=angular[_0x521eca('0x1f12')](['ng'])[_0x521eca('0x1c53')]('$log');let _0x27383d=[];const _0x406f2b=this;_0x406f2b[_0x521eca('0x1321')]=_0x4e4a98,_0x406f2b[_0x521eca('0x1350')]=_0x53bb3a,_0x406f2b[_0x521eca('0x2158')]=_0x2d7677;function _0x4e4a98(_0x597c16,_0x2065fe){const _0x243f38=_0x521eca;if(!angular[_0x243f38('0x278d')](_0x597c16)){_0xc46c58[_0x243f38('0x1db9')](_0x243f38('0x1b18'));return;}const _0x4c6ff5=_0x597c16[_0x243f38('0x2007')]('.'),_0x2a9559=_0x4c6ff5[_0x4c6ff5[_0x243f38('0x1f73')]-0x1],_0x3289aa=_0x4866fb(_0x4c6ff5);let _0xa7ec54=![];for(let _0x91a714=0x0;_0x91a714<_0x3289aa[_0x243f38('0x1f73')];_0x91a714++){if(_0x3289aa[_0x91a714][_0x243f38('0x786')]===_0x2a9559){_0xa7ec54=_0x3289aa[_0x91a714];break;}}_0xa7ec54?(angular[_0x243f38('0x15f7')](_0xa7ec54,_0x2065fe),_0xa7ec54[_0x243f38('0x2769')]=_0x29c1ff(_0xa7ec54)):(_0x2065fe[_0x243f38('0x2857')]=[],(angular[_0x243f38('0x1a77')](_0x2065fe['weight'])||!angular['isNumber'](_0x2065fe[_0x243f38('0x23f2')]))&&(_0x2065fe[_0x243f38('0x23f2')]=0x1),_0x2065fe[_0x243f38('0x786')]=_0x2a9559,_0x2065fe[_0x243f38('0x29')]=_0x597c16,_0x2065fe[_0x243f38('0x2769')]=_0x29c1ff(_0x2065fe),_0x3289aa[_0x243f38('0x269f')](_0x2065fe));}function _0x53bb3a(_0x40f729){const _0x57d076=_0x521eca;if(!angular[_0x57d076('0x278d')](_0x40f729)){_0xc46c58[_0x57d076('0x1db9')](_0x57d076('0x1b18'));return;}let _0x30f3bb=_0x27383d;const _0x48d330=_0x40f729['split']('.');for(let _0x4381bb=0x0;_0x4381bb<_0x48d330[_0x57d076('0x1f73')];_0x4381bb++){const _0xb48c92=_0x48d330[_0x4381bb];for(let _0x2b2167=0x0;_0x2b2167<_0x30f3bb[_0x57d076('0x1f73')];_0x2b2167++){if(_0x30f3bb[_0x2b2167][_0x57d076('0x786')]===_0xb48c92){if(_0x30f3bb[_0x2b2167][_0x57d076('0x29')]===_0x40f729)return _0x30f3bb['splice'](_0x2b2167,0x1),!![];_0x30f3bb=_0x30f3bb[_0x2b2167][_0x57d076('0x2857')];break;}}}return![];}function _0x2d7677(_0x1f8c96){const _0x2834e7=_0x521eca;!_0x1f8c96&&(_0x1f8c96=_0x27383d,_0x1f8c96['sort'](_0x23d2a4));for(let _0x3f1a3f=0x0;_0x3f1a3f<_0x1f8c96[_0x2834e7('0x1f73')];_0x3f1a3f++){const _0x13d9f8=_0x1f8c96[_0x3f1a3f][_0x2834e7('0x2857')];_0x13d9f8[_0x2834e7('0x1f73')]>0x1&&_0x13d9f8[_0x2834e7('0x1b22')](_0x23d2a4),_0x13d9f8[_0x2834e7('0x1f73')]>0x0&&_0x2d7677(_0x13d9f8);}}function _0x4866fb(_0x20888a){const _0x316e0c=_0x521eca;let _0x146629=_0x27383d;if(_0x20888a[_0x316e0c('0x1f73')]===0x1)return _0x146629;_0x20888a[_0x316e0c('0xbbc')]();for(let _0x427723=0x0;_0x427723<_0x20888a[_0x316e0c('0x1f73')];_0x427723++){const _0xc489f1=_0x20888a[_0x427723];let _0xbcaf36=!![];for(let _0x7ec1b=0x0;_0x7ec1b<_0x146629[_0x316e0c('0x1f73')];_0x7ec1b++){if(_0x146629[_0x7ec1b][_0x316e0c('0x786')]===_0xc489f1){_0x146629=_0x146629[_0x7ec1b][_0x316e0c('0x2857')],_0xbcaf36=![];break;}}if(_0xbcaf36){const _0x4216c6={'_id':_0xc489f1,'_path':_0x20888a[_0x316e0c('0x1eba')]('.'),'title':_0xc489f1,'weight':0x1,'children':[]};_0x146629['push'](_0x4216c6),_0x146629=_0x4216c6[_0x316e0c('0x2857')];}}return _0x146629;}function _0x23d2a4(_0x335e99,_0xe79c44){const _0x5d5cc3=_0x521eca;return parseInt(_0x335e99[_0x5d5cc3('0x23f2')])-parseInt(_0xe79c44[_0x5d5cc3('0x23f2')]);}function _0x29c1ff(_0x2fdaf0){const _0x49dea6=_0x521eca;let _0x5bb272='';return angular['isDefined'](_0x2fdaf0['state'])&&(_0x5bb272=_0x2fdaf0['state'],angular['isDefined'](_0x2fdaf0[_0x49dea6('0x247e')])&&angular['isObject'](_0x2fdaf0[_0x49dea6('0x247e')])&&(_0x5bb272=_0x5bb272+'('+angular['toJson'](_0x2fdaf0[_0x49dea6('0x247e')])+')')),_0x5bb272;}this['$get']=function(){let _0x3e8483=null,_0x21f5a1=null,_0x4af6f3=null,_0x506557=null;const _0x2de22b={'saveItem':_0x4e4a98,'deleteItem':_0x53bb3a,'sort':_0x2d7677,'clearNavigation':_0x15801a,'setActiveItem':_0x3a5fe2,'getActiveItem':_0x1f660a,'getNavigation':_0xd975aa,'getFlatNavigation':_0x5d8e87,'setNavigationScope':_0x4a3ce8,'setFolded':_0x302805,'getFolded':_0x128ec4,'setFoldedOpen':_0x1d28eb,'getFoldedOpen':_0x2254ee,'toggleFolded':_0x172595};return _0x2de22b;function _0x15801a(){const _0x7d36ee=a0_0xd29e;_0x27383d=[],_0x21f5a1&&(_0x21f5a1['vm'][_0x7d36ee('0x216')]=_0x27383d);}function _0x3a5fe2(_0x30fe58,_0x1945cf){_0x3e8483={'node':_0x30fe58,'scope':_0x1945cf};}function _0x1f660a(){return _0x3e8483;}function _0xd975aa(_0x4eb744){const _0x3b78ff=a0_0xd29e;if(_0x4eb744){for(let _0x105681=0x0;_0x105681<_0x27383d[_0x3b78ff('0x1f73')];_0x105681++){if(_0x27383d[_0x105681][_0x3b78ff('0x786')]===_0x4eb744)return[_0x27383d[_0x105681]];}return null;}return _0x27383d;}function _0x5d8e87(_0x2e1747){const _0x1c7cb1=_0xd975aa(_0x2e1747);return _0x4d37ea(_0x1c7cb1);}function _0x4a3ce8(_0x11ca4a){_0x21f5a1=_0x11ca4a;}function _0x302805(_0x4360a4){_0x4af6f3=_0x4360a4;}function _0x128ec4(){return _0x4af6f3;}function _0x1d28eb(_0x166f03){_0x506557=_0x166f03;}function _0x2254ee(){return _0x506557;}function _0x172595(){const _0x39d3ec=a0_0xd29e;_0x21f5a1[_0x39d3ec('0x200f')]();}function _0x4d37ea(_0x35312b){const _0x255d73=a0_0xd29e;let _0x3c081b=[];for(let _0x41ee9c=0x0;_0x41ee9c<_0x35312b[_0x255d73('0x1f73')];_0x41ee9c++){const _0x39c263=angular[_0x255d73('0x14e5')](_0x35312b[_0x41ee9c]);_0x39c263['children']=[],_0x3c081b[_0x255d73('0x269f')](_0x39c263),_0x35312b[_0x41ee9c][_0x255d73('0x2857')][_0x255d73('0x1f73')]>0x0&&(_0x3c081b=_0x3c081b[_0x255d73('0xe1b')](_0x4d37ea(_0x35312b[_0x41ee9c][_0x255d73('0x2857')])));}return _0x3c081b;}};}function _0x229d03(_0x1e14fb,_0x329a4c){const _0x1ac940=_0x4376d8,_0x18d0cd=this;_0x1e14fb[_0x1ac940('0x248a')]?_0x18d0cd[_0x1ac940('0x216')]=_0x329a4c['getNavigation'](_0x1e14fb[_0x1ac940('0x248a')]):_0x18d0cd[_0x1ac940('0x216')]=_0x329a4c['getNavigation']();_0x18d0cd[_0x1ac940('0x28b5')]=_0x29e28e,_0x24c165();function _0x24c165(){const _0x43322e=_0x1ac940;_0x329a4c[_0x43322e('0x1b22')]();}function _0x29e28e(){const _0x36735c=_0x1ac940;angular[_0x36735c('0x1ce1')](_0x36735c('0x13aa'))[_0x36735c('0x328')](_0x36735c('0x1e9a'));}}function _0x133b34(_0x1601af,_0x574f8c,_0x483fd5,_0x567624){const _0x379760=_0x4376d8;return{'restrict':'E','scope':{'folded':'=','root':'@'},'controller':_0x379760('0x18ac'),'templateUrl':_0x494a4c,'transclude':!![],'compile':function(_0x11bdf8){const _0xb1d711=_0x379760;return _0x11bdf8[_0xb1d711('0x16e5')](_0xb1d711('0x291')),function _0x148905(_0x5b0fe1,_0x1de075){const _0x2facf5=_0xb1d711,_0x558702=angular['element'](_0x2facf5('0x13aa')),_0x2cdafc=angular[_0x2facf5('0x1ce1')](_0x2facf5('0xe06')),_0x44ebda=angular[_0x2facf5('0x1ce1')](''),_0x36082c=_0x483fd5(_0x2facf5('0x216'));_0x567624['setNavigationScope'](_0x5b0fe1),_0x3a7fd5();function _0x3a7fd5(){const _0x2982fa=_0x2facf5;_0x567624[_0x2982fa('0x2305')]()===null&&_0x567624[_0x2982fa('0x60a')](_0x5b0fe1['folded']),_0x567624[_0x2982fa('0x2305')]()&&(_0x574f8c(function(){const _0x4495c6=_0x2982fa;_0x1601af[_0x4495c6('0x2446')](_0x4495c6('0x712'));}),_0x558702['addClass'](_0x2982fa('0xf4d')),_0xbb4d67());}_0x5b0fe1[_0x2facf5('0x620')](function(){const _0x24c451=_0x2facf5;return _0x36082c[_0x24c451('0x4e3')]();},function(_0x52d3a1,_0x49d693){const _0x484952=_0x2facf5;if(angular[_0x484952('0x1a77')](_0x52d3a1)||angular[_0x484952('0x15d2')](_0x52d3a1,_0x49d693))return;const _0xd0e971=_0x567624[_0x484952('0x2305')]();if(_0xd0e971){if(_0x52d3a1)_0x1601af[_0x484952('0x2446')](_0x484952('0x712'));else{const _0x4a4796=_0x567624['getActiveItem']();_0x4a4796&&_0x4a4796[_0x484952('0xf17')][_0x484952('0xc58')]('msNavigation::stateMatched');}}}),_0x5b0fe1[_0x2facf5('0x620')]('folded',function(_0x171999,_0x2f408f){const _0x567c8e=_0x2facf5;if(angular[_0x567c8e('0x1a77')](_0x171999)||angular[_0x567c8e('0x15d2')](_0x171999,_0x2f408f))return;_0x53effb(_0x171999);});function _0x53effb(_0x493e42){const _0x435243=_0x2facf5;_0x567624[_0x435243('0x60a')](_0x493e42);if(_0x493e42)_0x1601af[_0x435243('0x2446')]('msNavigation::collapse'),_0x558702[_0x435243('0x16e5')]('ms-navigation-folded'),_0xbb4d67();else{const _0x128176=_0x567624[_0x435243('0x14ea')]();_0x128176&&_0x128176[_0x435243('0xf17')][_0x435243('0xc58')](_0x435243('0x1d91')),_0x558702[_0x435243('0x1e56')](_0x435243('0xb2')),_0x18393c();}}function _0xbb4d67(){const _0x5c3f2e=_0x2facf5;_0x1de075[_0x5c3f2e('0x14e')]()[_0x5c3f2e('0x25a')](_0x2cdafc),_0x574f8c(function(){_0x2cdafc['on']('mouseenter\x20touchstart',_0x1d7c82);});}function _0x19bbb4(){const _0x3d632c=_0x2facf5;_0x558702[_0x3d632c('0xe8e')](_0x3d632c('0x15c4'))[_0x3d632c('0x25a')](_0x44ebda),_0x44ebda['on'](_0x3d632c('0x1cff'),_0x505ddf);}function _0x18393c(){const _0x1a62ae=_0x2facf5;_0x44ebda[_0x1a62ae('0x5f3')]();}function _0x1d7c82(_0x40fa7c){const _0x88afaf=_0x2facf5;_0x40fa7c&&_0x40fa7c['preventDefault']();_0x567624[_0x88afaf('0x18ed')](!![]);const _0x191248=_0x567624[_0x88afaf('0x14ea')]();_0x191248&&_0x191248[_0x88afaf('0xf17')][_0x88afaf('0xc58')](_0x88afaf('0x1d91')),_0x558702[_0x88afaf('0x16e5')]('ms-navigation-folded-open'),_0x2cdafc[_0x88afaf('0x5f3')](),_0x19bbb4();}function _0x505ddf(_0x17376c){const _0x478f2d=_0x2facf5;_0x17376c&&_0x17376c[_0x478f2d('0xdc5')](),_0x567624[_0x478f2d('0x18ed')](![]),_0x1601af[_0x478f2d('0x2446')]('msNavigation::collapse'),_0x558702['removeClass'](_0x478f2d('0x18e5')),_0x44ebda[_0x478f2d('0x5f3')](),_0xbb4d67();}_0x5b0fe1['toggleFolded']=function(){const _0x21ec1e=_0x2facf5,_0x15aa1c=_0x567624[_0x21ec1e('0x2305')]();_0x53effb(!_0x15aa1c);},_0x5b0fe1[_0x2facf5('0x207c')](_0x2facf5('0x119f'),function(){const _0x263e9c=_0x2facf5;_0x36082c[_0x263e9c('0xbc9')]();}),_0x5b0fe1[_0x2facf5('0x207c')](_0x2facf5('0x2b4'),function(){const _0x5ea7fd=_0x2facf5;_0x44ebda[_0x5ea7fd('0xecb')]('mouseenter\x20touchstart'),_0x2cdafc[_0x5ea7fd('0xecb')](_0x5ea7fd('0x1cff'));});};}};}function _0xf20ffd(_0x271e17,_0x3548ce,_0x56b50e,_0x29949d,_0xa747ae,_0x4783e5){const _0x31bce8=_0x4376d8,_0x2fb3e5=this;_0x2fb3e5[_0x31bce8('0x1ce1')]=_0x3548ce,_0x2fb3e5[_0x31bce8('0x10a')]=_0x271e17['node'],_0x2fb3e5[_0x31bce8('0x25bb')]=undefined,_0x2fb3e5[_0x31bce8('0x18c1')]=undefined,_0x2fb3e5[_0x31bce8('0x65a')]=undefined,_0x2fb3e5[_0x31bce8('0x125e')]=undefined,_0x2fb3e5[_0x31bce8('0x582')]=_0x31bce8('0x1ba3'),_0x2fb3e5[_0x31bce8('0x270f')]=_0x20e231,_0x2fb3e5[_0x31bce8('0x22d6')]=_0x1bc280,_0x2fb3e5[_0x31bce8('0xa2a')]=_0x2db8b1,_0x2fb3e5[_0x31bce8('0x11bf')]=_0x24a141,_0x2fb3e5[_0x31bce8('0x1215')]=_0x58b760,_0xa67293();function _0xa67293(){const _0x19ee56=_0x31bce8;_0x2fb3e5[_0x19ee56('0x25bb')]=_0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x2857')][_0x19ee56('0x1f73')]>0x0,_0x2fb3e5[_0x19ee56('0x125e')]=!!(angular[_0x19ee56('0x170a')](_0x2fb3e5[_0x19ee56('0x10a')]['group'])&&_0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x125e')]===!![]);!_0x2fb3e5['hasChildren']||_0x2fb3e5['group']?_0x2fb3e5['collapsable']=![]:_0x2fb3e5[_0x19ee56('0x65a')]=!!(angular['isUndefined'](_0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x65a')])||typeof _0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x65a')]!=='boolean'||_0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x65a')]===!![]);!_0x2fb3e5[_0x19ee56('0x65a')]?_0x2fb3e5[_0x19ee56('0x18c1')]=![]:_0x2fb3e5[_0x19ee56('0x18c1')]=!!(angular[_0x19ee56('0x1a77')](_0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x18c1')])||typeof _0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x18c1')]!=='boolean'||_0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x18c1')]===!![]);if(_0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x1b9a')]===_0xa747ae[_0x19ee56('0x1247')][_0x19ee56('0x2aa')]||_0xa747ae[_0x19ee56('0x24b0')](_0x2fb3e5['node']['state'])){if(angular['isDefined'](_0x2fb3e5[_0x19ee56('0x10a')]['stateParams'])&&angular[_0x19ee56('0x170a')](_0xa747ae[_0x19ee56('0x16fb')])&&!angular[_0x19ee56('0x15d2')](_0x2fb3e5[_0x19ee56('0x10a')][_0x19ee56('0x247e')],_0xa747ae[_0x19ee56('0x16fb')]))return;_0x271e17[_0x19ee56('0xc58')](_0x19ee56('0x1d91')),_0x4783e5[_0x19ee56('0x180b')](_0x2fb3e5[_0x19ee56('0x10a')],_0x271e17);}_0x271e17['$on'](_0x19ee56('0x1d91'),function(){const _0x58aff7=_0x19ee56;_0x2fb3e5[_0x58aff7('0x65a')]&&_0x2fb3e5[_0x58aff7('0x18c1')]&&_0x271e17[_0x58aff7('0x8ab')](function(){_0x2fb3e5['collapsed']=![];});}),_0x271e17[_0x19ee56('0x207c')](_0x19ee56('0x712'),function(_0x2815bc,_0x278019){const _0x50aa3c=_0x19ee56;if(_0x2fb3e5[_0x50aa3c('0x18c1')]||!_0x2fb3e5[_0x50aa3c('0x65a')])return;if(angular[_0x50aa3c('0x1a77')](_0x278019))_0x2fb3e5['collapse']();else{const _0x26026c=_0x278019['split']('.');let _0xde700c=[];const _0x556d68=_0x4783e5[_0x50aa3c('0x14ea')]();_0x556d68&&(_0xde700c=_0x556d68[_0x50aa3c('0x10a')][_0x50aa3c('0x29')]['split']('.'));if(_0x26026c[_0x50aa3c('0x2567')](_0x2fb3e5[_0x50aa3c('0x10a')][_0x50aa3c('0x786')])>-0x1)return;if(_0xde700c['indexOf'](_0x2fb3e5[_0x50aa3c('0x10a')][_0x50aa3c('0x786')])>-0x1)return;_0x2fb3e5[_0x50aa3c('0x22d6')]();}}),_0x271e17['$on'](_0x19ee56('0x200a'),function(){const _0x291385=_0x19ee56;if(_0x2fb3e5[_0x291385('0x10a')][_0x291385('0x1b9a')]===_0xa747ae[_0x291385('0x1247')][_0x291385('0x2aa')]){if(angular[_0x291385('0x170a')](_0x2fb3e5[_0x291385('0x10a')][_0x291385('0x247e')])&&angular[_0x291385('0x170a')](_0xa747ae['params'])&&!angular[_0x291385('0x15d2')](_0x2fb3e5[_0x291385('0x10a')][_0x291385('0x247e')],_0xa747ae[_0x291385('0x16fb')]))return;_0x4783e5[_0x291385('0x180b')](_0x2fb3e5[_0x291385('0x10a')],_0x271e17),_0x56b50e['$broadcast'](_0x291385('0x712'),_0x2fb3e5['node']['_path']);}if(_0xa747ae['includes'](_0x2fb3e5[_0x291385('0x10a')][_0x291385('0x1b9a')])){if(angular['isDefined'](_0x2fb3e5[_0x291385('0x10a')][_0x291385('0x247e')])&&angular['isDefined'](_0xa747ae['params'])&&!angular[_0x291385('0x15d2')](_0x2fb3e5['node'][_0x291385('0x247e')],_0xa747ae[_0x291385('0x16fb')]))return;_0x271e17[_0x291385('0xc58')](_0x291385('0x1d91'));}});}function _0x20e231(){const _0x49eeb2=_0x31bce8;_0x2fb3e5[_0x49eeb2('0x18c1')]?_0x2fb3e5['expand']():_0x2fb3e5[_0x49eeb2('0x22d6')]();}function _0x1bc280(){const _0x1a5ad1=_0x31bce8,_0x528bf4=_0x2fb3e5[_0x1a5ad1('0x1ce1')][_0x1a5ad1('0x2857')]('ul'),_0x5b5b93=_0x528bf4[0x0][_0x1a5ad1('0xfa9')];_0x271e17['$evalAsync'](function(){const _0x3b843c=_0x1a5ad1;_0x2fb3e5['collapsed']=!![],_0x2fb3e5['element'][_0x3b843c('0x16e5')](_0x3b843c('0x20c0')),_0x29949d['animate'](_0x528bf4,{'display':_0x3b843c('0x25ef'),'height':_0x5b5b93+'px'},{'height':_0x3b843c('0x8f3')},_0x2fb3e5[_0x3b843c('0x582')])[_0x3b843c('0x17e7')](function(){const _0x268882=_0x3b843c;_0x528bf4[_0x268882('0x2776')]({'display':'','height':''}),_0x2fb3e5[_0x268882('0x1ce1')][_0x268882('0x1e56')](_0x268882('0x20c0'));}),_0x271e17[_0x3b843c('0x2446')]('msNavigation::collapse');});}function _0x2db8b1(){const _0x5ee57c=_0x31bce8,_0x4fa150=_0x2fb3e5[_0x5ee57c('0x1ce1')][_0x5ee57c('0x2857')]('ul');_0x4fa150[_0x5ee57c('0x2776')]({'position':'absolute','visibility':_0x5ee57c('0x5c'),'display':_0x5ee57c('0x25ef'),'height':_0x5ee57c('0x141b')});const _0x1696d4=_0x4fa150[0x0]['offsetHeight'];_0x4fa150['css']({'position':'','visibility':'','display':'','height':''}),_0x271e17[_0x5ee57c('0x8ab')](function(){const _0x4ec131=_0x5ee57c;_0x2fb3e5[_0x4ec131('0x18c1')]=![],_0x2fb3e5['element'][_0x4ec131('0x16e5')](_0x4ec131('0xbd5')),_0x29949d[_0x4ec131('0xe14')](_0x4fa150,{'display':_0x4ec131('0x25ef'),'height':_0x4ec131('0x8f3')},{'height':_0x1696d4+'px'},_0x2fb3e5[_0x4ec131('0x582')])[_0x4ec131('0x17e7')](function(){const _0x1b1713=_0x4ec131;_0x4fa150['css']({'height':''}),_0x2fb3e5[_0x1b1713('0x1ce1')][_0x1b1713('0x1e56')](_0x1b1713('0xbd5'));}),_0x56b50e['$broadcast'](_0x4ec131('0x712'),_0x2fb3e5[_0x4ec131('0x10a')]['_path']);});}function _0x24a141(){return _0x2fb3e5['node']['class'];}function _0x58b760(){const _0x22c2b3=_0x31bce8;if(angular[_0x22c2b3('0x170a')](_0x2fb3e5[_0x22c2b3('0x10a')][_0x22c2b3('0x5c')])&&angular['isFunction'](_0x2fb3e5[_0x22c2b3('0x10a')]['hidden']))return _0x2fb3e5[_0x22c2b3('0x10a')][_0x22c2b3('0x5c')]();return![];}}function _0x599794(){const _0x10e04e=_0x4376d8;return{'restrict':'A','bindToController':{'node':_0x10e04e('0x6d4')},'controller':_0x10e04e('0x6c5'),'compile':function(_0x5142ad){const _0x491575=_0x10e04e;return _0x5142ad[_0x491575('0x16e5')](_0x491575('0x24d2')),function _0x1c8c93(_0x41486f,_0x42eef0,_0x57a7ad,_0x608909){const _0x1be29b=_0x491575;_0x42eef0[_0x1be29b('0x16e5')](_0x608909[_0x1be29b('0x11bf')]()),_0x608909['group']&&_0x42eef0['addClass'](_0x1be29b('0x125e'));};}};}function _0x5ea854(){return{'restrict':'A','require':'^msNavigationNode','compile':function(_0x49e8c5){const _0x1d72df=a0_0xd29e;return _0x49e8c5[_0x1d72df('0x16e5')]('ms-navigation-item'),function _0x413525(_0x442c8b,_0x3b763b,_0x24b507,_0x2cdc79){const _0x3e0298=_0x1d72df;_0x2cdc79[_0x3e0298('0x65a')]&&_0x3b763b['on'](_0x3e0298('0x20d4'),_0x2cdc79[_0x3e0298('0x270f')]),_0x442c8b[_0x3e0298('0x207c')](_0x3e0298('0x2b4'),function(){const _0x4c27e5=_0x3e0298;_0x3b763b[_0x4c27e5('0xecb')](_0x4c27e5('0x20d4'));});};}};}function _0x56fed2(_0x275e1e){return{'restrict':'E','scope':{'root':'@'},'controller':'MsNavigationController\x20as\x20vm','templateUrl':_0x3aa109,'transclude':!![],'compile':function(_0x27dff1){const _0xb709b1=a0_0xd29e;return _0x27dff1[_0xb709b1('0x16e5')](_0xb709b1('0x142f')),function _0x2acbb2(_0x4c93eb){const _0x3afee5=_0xb709b1;_0x275e1e[_0x3afee5('0x595')](_0x4c93eb);};}};}function _0x37c6a4(_0x1760cf,_0x2ead3f,_0x545773,_0x1e3b55,_0x30a3aa){const _0x2280fb=_0x4376d8,_0x45ff1c=this;_0x45ff1c['element']=_0x2ead3f,_0x45ff1c[_0x2280fb('0x10a')]=_0x1760cf['node'],_0x45ff1c[_0x2280fb('0x25bb')]=undefined,_0x45ff1c[_0x2280fb('0x125e')]=undefined,_0x45ff1c[_0x2280fb('0x11bf')]=_0x220c00,_0x18fdd7();function _0x18fdd7(){const _0x2ca795=_0x2280fb;_0x45ff1c['isActive']=![],_0x45ff1c[_0x2ca795('0x25bb')]=_0x45ff1c[_0x2ca795('0x10a')][_0x2ca795('0x2857')][_0x2ca795('0x1f73')]>0x0,_0x45ff1c['group']=!!(angular[_0x2ca795('0x170a')](_0x45ff1c[_0x2ca795('0x10a')][_0x2ca795('0x125e')])&&_0x45ff1c[_0x2ca795('0x10a')][_0x2ca795('0x125e')]===!![]);if(_0x45ff1c[_0x2ca795('0x10a')][_0x2ca795('0x1b9a')]===_0x1e3b55[_0x2ca795('0x1247')]['name']||_0x1e3b55[_0x2ca795('0x24b0')](_0x45ff1c[_0x2ca795('0x10a')]['state'])){if(angular[_0x2ca795('0x170a')](_0x45ff1c[_0x2ca795('0x10a')][_0x2ca795('0x247e')])&&angular[_0x2ca795('0x170a')](_0x1e3b55[_0x2ca795('0x16fb')])&&!angular[_0x2ca795('0x15d2')](_0x45ff1c[_0x2ca795('0x10a')][_0x2ca795('0x247e')],_0x1e3b55[_0x2ca795('0x16fb')]))return;_0x1760cf[_0x2ca795('0xc58')]('msNavigation::stateMatched'),_0x30a3aa['setActiveItem'](_0x45ff1c['node'],_0x1760cf);}_0x1760cf['$on'](_0x2ca795('0x1d91'),function(){const _0x2a5637=_0x2ca795;_0x45ff1c[_0x2a5637('0x25bb')]&&_0x1760cf[_0x2a5637('0x8ab')](function(){const _0x5ba27a=_0x2a5637;_0x45ff1c[_0x5ba27a('0x245c')]=!![];});}),_0x1760cf[_0x2ca795('0x207c')]('msNavigation::clearActive',function(){const _0xa9cee2=_0x2ca795;if(!_0x45ff1c[_0xa9cee2('0x25bb')])return;let _0x1573a8=[];const _0x23eb83=_0x30a3aa['getActiveItem']();_0x23eb83&&(_0x1573a8=_0x23eb83[_0xa9cee2('0x10a')][_0xa9cee2('0x29')]['split']('.')),_0x1573a8['indexOf'](_0x45ff1c['node'][_0xa9cee2('0x786')])>-0x1?_0x1760cf['$evalAsync'](function(){_0x45ff1c['isActive']=!![];}):_0x1760cf['$evalAsync'](function(){const _0x4f5f44=_0xa9cee2;_0x45ff1c[_0x4f5f44('0x245c')]=![];});}),_0x1760cf[_0x2ca795('0x207c')](_0x2ca795('0x200a'),function(){const _0x9ad744=_0x2ca795;if(_0x45ff1c['node'][_0x9ad744('0x1b9a')]===_0x1e3b55['current']['name']||_0x1e3b55[_0x9ad744('0x24b0')](_0x45ff1c['node'][_0x9ad744('0x1b9a')])){if(angular[_0x9ad744('0x170a')](_0x45ff1c[_0x9ad744('0x10a')][_0x9ad744('0x247e')])&&angular[_0x9ad744('0x170a')](_0x1e3b55[_0x9ad744('0x16fb')])&&!angular[_0x9ad744('0x15d2')](_0x45ff1c['node'][_0x9ad744('0x247e')],_0x1e3b55[_0x9ad744('0x16fb')]))return;_0x30a3aa['setActiveItem'](_0x45ff1c['node'],_0x1760cf),_0x545773['$broadcast'](_0x9ad744('0x1880'));}});}function _0x220c00(){const _0x22d33f=_0x2280fb;return _0x45ff1c['node'][_0x22d33f('0x164e')];}}function _0x254c32(){const _0x2fb7af=_0x4376d8;return{'restrict':'A','bindToController':{'node':_0x2fb7af('0x265b')},'controller':_0x2fb7af('0x4e4'),'compile':function(_0x2c816a){const _0x1177e6=_0x2fb7af;return _0x2c816a[_0x1177e6('0x16e5')](_0x1177e6('0x1a18')),function _0x420d3e(_0x27f053,_0x5a8974,_0x3b6ff7,_0x5b3445){const _0x37a405=_0x1177e6;_0x5a8974['addClass'](_0x5b3445[_0x37a405('0x11bf')]()),_0x5b3445[_0x37a405('0x125e')]&&_0x5a8974[_0x37a405('0x16e5')](_0x37a405('0x125e'));};}};}function _0x5c0228(_0xb7cb0e){const _0x2a467a=_0x4376d8;return{'restrict':'A','require':_0x2a467a('0x488'),'compile':function(_0x26c19f){const _0x1eb4aa=_0x2a467a;return _0x26c19f[_0x1eb4aa('0x16e5')](_0x1eb4aa('0x1b0b')),function _0x591fbd(_0x3c3baf,_0x327573,_0x24f124,_0x5b8152){const _0x10fca7=_0x1eb4aa;_0x327573['on'](_0x10fca7('0x20d4'),_0x5c3839);function _0x5c3839(){const _0x432660=_0x10fca7;if(!_0x5b8152[_0x432660('0x25bb')]||_0xb7cb0e('gt-md'))return;_0x327573['toggleClass'](_0x432660('0x1812'));}_0x3c3baf[_0x10fca7('0x207c')](_0x10fca7('0x2b4'),function(){const _0x28a630=_0x10fca7;_0x327573[_0x28a630('0xecb')](_0x28a630('0x20d4'));});};}};}const _0x178922=_0x4cf2bc['p']+_0x4376d8('0x173c'),_0x97ed4f=_0x4cf2bc['p']+_0x4376d8('0x10f3'),_0x261b36=_0x4cf2bc['p']+_0x4376d8('0x19f3'),_0x397f94=_0x4cf2bc['p']+_0x4376d8('0x780');var _0x59cc58=_0x4cf2bc(0x175b),_0x543c3f=_0x4cf2bc['n'](_0x59cc58),_0x3d75b9=_0x4cf2bc(0x26ba),_0x451482=_0x4cf2bc['n'](_0x3d75b9);_0x457de1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x33a'),'$mdDialog',_0x4376d8('0x199d'),'$window','$translate','$http','toasty',_0x4376d8('0x212e'),'motNotification',_0x4376d8('0x1885'),_0x4376d8('0x25aa')];function _0x457de1(_0x45cb06,_0x5c9c0a,_0x3bd7f0,_0x3e9989,_0x5e6426,_0x10ae2a,_0x13a41a,_0x573fd0,_0x9cb339,_0x3121a2,_0x25071d,_0xbb61ea,_0x385ee3,_0x42d227){const _0x29b697=_0x4376d8,_0x2a7c75=this,_0x5ec58a=window[_0x29b697('0xd01')];_0x2a7c75[_0x29b697('0x23c4')]=_0x25071d['baseUrl'],_0x2a7c75['conf']=_0x45cb06['$parent']['vm'][_0x29b697('0x2790')];const _0x2ac6c0=[_0x29b697('0x1005'),'speakerId',_0x29b697('0x135'),_0x29b697('0x8fb'),'speakerVolume',_0x29b697('0x218f'),'ringingMute',_0x29b697('0x1642'),_0x29b697('0x21ed')],_0x40dd21=_0x2a7c75[_0x29b697('0x2790')]&&JSON[_0x29b697('0x1f0a')](_0x13a41a[_0x29b697('0x1a93')]['getItem'](_0x29b697('0x41c')+_0x2a7c75[_0x29b697('0x2790')]['id']))||{'webrtc':{'ringingVolume':0.5,'speakerVolume':0.5,'microphoneVolume':0x1,'ringingMute':![],'speakerMute':![],'microphoneMute':![]}};_0x3e9989(function(){},0x3e7),_0x2a7c75[_0x29b697('0x733')]=_0x29b697('0x220c'),_0x2a7c75['selectedMode']='md-scale',_0x2a7c75['target']='',_0x2a7c75[_0x29b697('0x16a2')]=![],_0x2a7c75[_0x29b697('0x158b')]=document[_0x29b697('0x68d')]('audio'),_0x2a7c75['remotePlayer']=document['getElementById'](_0x2a7c75[_0x29b697('0x2790')][_0x29b697('0x16af')]),_0x2a7c75['soundPlayer'][_0x29b697('0x1c20')]=0x1,_0x2a7c75[_0x29b697('0x565')]={'mediaConstraints':{'audio':!![],'video':![]},'pcConfig':{'iceServers':[]}},_0x2a7c75['sessions']=[],_0x2a7c75[_0x29b697('0x1392')]=[],_0x2a7c75[_0x29b697('0x2038')]=[],_0x2a7c75[_0x29b697('0x1a49')]=![],_0x2a7c75[_0x29b697('0x27e3')]=![],_0x2a7c75[_0x29b697('0x5be')]=[],_0x2a7c75['ua']=new(_0x543c3f())['UA']({'sockets':[new(_0x543c3f())[(_0x29b697('0x100a'))](_0x29b697('0x1d')+_0x2a7c75[_0x29b697('0x2790')][_0x29b697('0x108')]+':8089/ws')],'uri':new(_0x543c3f())[(_0x29b697('0xebf'))]('sip',_0x2a7c75['conf']['name'],_0x2a7c75[_0x29b697('0x2790')][_0x29b697('0x108')],0x13c4,null,null)['toString'](),'authorization_user':_0x2a7c75[_0x29b697('0x2790')][_0x29b697('0x2aa')],'ha1':_0x2a7c75[_0x29b697('0x2790')]['ha1'],'realm':_0x2a7c75[_0x29b697('0x2790')]['realm'],'user_agent':_0x2a7c75[_0x29b697('0x2790')]['ua'],'session_timers_refresh_method':'invite','register_expires':_0x2a7c75[_0x29b697('0x2790')][_0x29b697('0x1b5f')]||0x3c,'register':!![]}),_0x2a7c75[_0x29b697('0x2790')]=_0x49cbdd()['merge'](_0x40dd21[_0x29b697('0x4b6')],_0x2a7c75[_0x29b697('0x2790')]),_0x2a7c75[_0x29b697('0x1847')]=![],_0x2a7c75[_0x29b697('0x866')]=![],_0x2a7c75[_0x29b697('0x120a')]=![],_0x2a7c75[_0x29b697('0x1a21')]=null,_0x2a7c75[_0x29b697('0x1e5e')]=![],_0x2a7c75[_0x29b697('0x1402')]=![],_0x2a7c75[_0x29b697('0x25df')]=![];function _0x515bcf(){const _0x1cb381=_0x29b697;_0x3952e6(![]),navigator['mediaDevices'][_0x1cb381('0x1bb4')]=function(){const _0x1f9c32=_0x1cb381;!_0x2a7c75[_0x1f9c32('0x1847')]&&(_0x2a7c75['initDeviceInProgress']=!![],_0x5ec58a&&_0x2a7c75[_0x1f9c32('0x120a')]?_0x5ec58a[_0x1f9c32('0x6a5')]()['then'](function(){const _0x55f0c6=_0x1f9c32;_0x2a7c75[_0x55f0c6('0x120a')]=![],_0x2a7c75[_0x55f0c6('0x866')]=![],_0x3952e6(!![]);})['catch'](function(_0x4fa954){const _0x1e9dae=_0x1f9c32;console['error'](_0x1e9dae('0x1bbb'),_0x4fa954);}):_0x3952e6(!![]));};const _0xfc278a=[_0x25071d[_0x1cb381('0x118')]['get']({'type':_0x1cb381('0x17e5'),'nolimit':!![]})[_0x1cb381('0x1af5')],_0x25071d[_0x1cb381('0x118')]['get']({'type':_0x1cb381('0x1fe0'),'nolimit':!![]})[_0x1cb381('0x1af5')]];Promise[_0x1cb381('0x1283')](_0xfc278a)['then'](function(_0x1487d2){const _0xb593d=_0x1cb381,_0x3691f9=_0x1487d2[0x0][_0xb593d('0x2319')],_0x5e5ebf=_0x1487d2[0x1]['rows'],_0x3d3503=[],_0x9a1670=[];_0x5e5ebf[_0xb593d('0xccd')](function(_0x1c79e6){const _0x17744e=_0xb593d;_0x9a1670[_0x17744e('0x269f')]('stun:'+_0x1c79e6[_0x17744e('0x175b')]);}),_0x3d3503[_0xb593d('0x269f')]({'urls':_0x9a1670}),_0x3691f9[_0xb593d('0xccd')](function(_0x5e0631){const _0x1f8817=_0xb593d,_0x5c27f7={'urls':'turn:'+_0x5e0631[_0x1f8817('0x175b')]};_0x5e0631[_0x1f8817('0x6ef')]&&(_0x5c27f7['username']=_0x5e0631[_0x1f8817('0x6ef')]),_0x5e0631[_0x1f8817('0xb62')]&&(_0x5c27f7[_0x1f8817('0x24cf')]=_0x5e0631[_0x1f8817('0xb62')]),_0x3d3503[_0x1f8817('0x269f')](_0x5c27f7);}),_0x2a7c75[_0xb593d('0x565')]['pcConfig']={'iceServers':_0x3d3503};}),this['ua']['on'](_0x1cb381('0x2501'),_0x1eecda['bind'](this)),this['ua']['on'](_0x1cb381('0xa1d'),_0x7dc54e[_0x1cb381('0x22d5')](this)),this['ua']['on']('newRTCSession',_0x3c40ac[_0x1cb381('0x22d5')](this)),_0x42d227['on'](_0x1cb381('0x10d3'),_0x5e2c63[_0x1cb381('0x22d5')](this)),_0x42d227['on'](_0x1cb381('0x748'),_0x49b0bd['bind'](this)),_0x42d227['on']('webbar:answer',_0xbe1c17['bind'](this)),_0x42d227['on']('webbar:hold',_0x5a34f9[_0x1cb381('0x22d5')](this)),_0x42d227['on'](_0x1cb381('0x28dd'),_0x3601fa[_0x1cb381('0x22d5')](this)),_0x42d227['on'](_0x1cb381('0x17bc'),_0x26c3bc[_0x1cb381('0x22d5')](this));}function _0x3952e6(_0x2dd213){const _0x35c2cb=_0x29b697;let _0x2ca420,_0x30d276,_0x11b243;return _0x2a7c75[_0x35c2cb('0x1847')]=!![],navigator[_0x35c2cb('0xfbe')]['getUserMedia']({'audio':!![]})[_0x35c2cb('0x17e7')](function(_0x2668bd){const _0x2c00d3=_0x35c2cb;return _0x2668bd[_0x2c00d3('0x2ec')]()['forEach'](function(_0x2cd555){_0x2cd555['stop']();}),navigator[_0x2c00d3('0xfbe')][_0x2c00d3('0x1d1e')]();})[_0x35c2cb('0x17e7')](function(_0x4d179a){const _0x4b5be4=_0x35c2cb,_0x35f1c1=_0x49cbdd()[_0x4b5be4('0x2483')](_0x4d179a,function(_0x1bf21c){const _0x41b644=_0x4b5be4;return _0x1bf21c[_0x41b644('0xe5e')]===_0x41b644('0x6a4')&&_0x1bf21c[_0x41b644('0x1ffc')]!==_0x41b644('0x1543')&&_0x1bf21c[_0x41b644('0x1ffc')]!==_0x41b644('0xb07');});if(_0x35f1c1['length']>0x0){const _0x2e8f1d=_0x49cbdd()[_0x4b5be4('0xe8e')](_0x4d179a,function(_0x573522){const _0x42ede4=_0x4b5be4;return _0x573522[_0x42ede4('0x1ffc')]===_0x42ede4('0x1543')&&_0x573522[_0x42ede4('0xe5e')]===_0x42ede4('0x6a4');});_0x11b243=_0x49cbdd()[_0x4b5be4('0xe8e')](_0x35f1c1,function(_0x22a2da){const _0x4e3d00=_0x4b5be4;return _0x22a2da[_0x4e3d00('0xbd6')]===_0x2e8f1d['groupId'];});if(_0x2a7c75[_0x4b5be4('0x2790')][_0x4b5be4('0x135')]&&!_0x2dd213){const _0x3450c1=_0x49cbdd()[_0x4b5be4('0xe8e')](_0x35f1c1,function(_0x275022){const _0x454406=_0x4b5be4;return _0x275022[_0x454406('0x1ffc')]===_0x2a7c75[_0x454406('0x2790')][_0x454406('0x135')];});_0x3450c1&&(_0x11b243=_0x3450c1);}_0x2a7c75[_0x4b5be4('0x2790')][_0x4b5be4('0x135')]=_0x11b243[_0x4b5be4('0x1ffc')];}else _0x3121a2[_0x4b5be4('0xc86')]({'title':_0x573fd0[_0x4b5be4('0x1acc')]('TOOLBAR.WARNING'),'msg':_0x573fd0[_0x4b5be4('0x1acc')](_0x4b5be4('0xc8e')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':'bottom-right'});_0x2a7c75[_0x4b5be4('0x2790')][_0x4b5be4('0x135')]?_0x2a7c75[_0x4b5be4('0x565')][_0x4b5be4('0x13')]['audio']={'deviceId':_0x2a7c75[_0x4b5be4('0x2790')][_0x4b5be4('0x135')]}:_0x2a7c75[_0x4b5be4('0x565')][_0x4b5be4('0x13')][_0x4b5be4('0x1c86')]=!![];_0x4b6a66(_0x4b5be4('0x22b1'),![]);const _0x33e158=_0x49cbdd()[_0x4b5be4('0x2483')](_0x4d179a,function(_0x537194){const _0x25c18c=_0x4b5be4;return _0x537194['kind']===_0x25c18c('0x1d81')&&_0x537194[_0x25c18c('0x1ffc')]!=='default'&&_0x537194[_0x25c18c('0x1ffc')]!==_0x25c18c('0xb07');});if(_0x33e158[_0x4b5be4('0x1f73')]>0x0){const _0x5dc450=_0x49cbdd()[_0x4b5be4('0xe8e')](_0x4d179a,function(_0x32fc19){const _0x4afe85=_0x4b5be4;return _0x32fc19['deviceId']===_0x4afe85('0x1543')&&_0x32fc19[_0x4afe85('0xe5e')]==='audiooutput';});_0x2ca420=_0x49cbdd()[_0x4b5be4('0xe8e')](_0x33e158,function(_0x4435c6){const _0x1a4984=_0x4b5be4;return _0x4435c6[_0x1a4984('0xbd6')]===_0x5dc450[_0x1a4984('0xbd6')];}),_0x30d276=_0x2ca420;if(_0x2a7c75[_0x4b5be4('0x2790')]['speakerId']&&!_0x2dd213){const _0x55b54a=_0x49cbdd()[_0x4b5be4('0xe8e')](_0x33e158,function(_0x5046ee){const _0x40e5bf=_0x4b5be4;return _0x5046ee[_0x40e5bf('0x1ffc')]===_0x2a7c75[_0x40e5bf('0x2790')][_0x40e5bf('0x1df8')];});_0x55b54a&&(_0x30d276=_0x55b54a);}_0x2a7c75[_0x4b5be4('0x2790')]['speakerId']=_0x30d276[_0x4b5be4('0x1ffc')];if(_0x2a7c75[_0x4b5be4('0x2790')][_0x4b5be4('0x1005')]&&!_0x2dd213){const _0x2353cc=_0x49cbdd()['find'](_0x33e158,function(_0x192f03){const _0x32ec47=_0x4b5be4;return _0x192f03[_0x32ec47('0x1ffc')]===_0x2a7c75[_0x32ec47('0x2790')]['ringingId'];});_0x2353cc&&(_0x2ca420=_0x2353cc);}_0x2a7c75[_0x4b5be4('0x2790')][_0x4b5be4('0x1005')]=_0x2ca420['deviceId'];}else _0x3121a2[_0x4b5be4('0xc86')]({'title':_0x573fd0[_0x4b5be4('0x1acc')](_0x4b5be4('0x715')),'msg':_0x573fd0[_0x4b5be4('0x1acc')](_0x4b5be4('0x11ae')),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x4b5be4('0x16cb')});return _0x4b6a66(_0x4b5be4('0x1b31'),![]);})['then'](function(){const _0x419281=_0x35c2cb;return _0x4b6a66(_0x419281('0x1589'),![]);})['then'](function(){const _0x122890=_0x35c2cb;if(_0x5ec58a)return _0x5ec58a['init']()[_0x122890('0x17e7')](function(){const _0x355a4a=_0x122890;return _0x2a7c75[_0x355a4a('0x120a')]=!![],_0x5ec58a[_0x355a4a('0x220d')]();})[_0x122890('0x17e7')](function(){const _0x155a88=_0x122890;return _0x5ec58a[_0x155a88('0x28d')]();})['then'](function(_0x36a841){const _0xaa2dd9=_0x122890;_0x11b243&&_0x30d276&&_0x2ca420&&_0x36a841&&(_0x49cbdd()['includes']([_0x11b243['groupId'],_0x30d276[_0xaa2dd9('0xbd6')],_0x2ca420[_0xaa2dd9('0xbd6')]],_0x36a841[_0xaa2dd9('0x1039')][_0xaa2dd9('0x1d8a')])&&(console['log'](_0xaa2dd9('0x496')),_0x2a7c75[_0xaa2dd9('0x866')]=!![],_0x5ec58a[_0xaa2dd9('0x1ad6')](),_0x5ec58a[_0xaa2dd9('0x18a7')](_0xaa2dd9('0xf32'),_0x30e679[_0xaa2dd9('0x22d5')](this)),_0x5ec58a['addEventListener'](_0xaa2dd9('0x1d0d'),_0x349be3['bind'](this)),_0x5ec58a[_0xaa2dd9('0x18a7')](_0xaa2dd9('0x1451'),_0x5b80de[_0xaa2dd9('0x22d5')](this)),_0x5ec58a[_0xaa2dd9('0x18a7')](_0xaa2dd9('0x12bf'),_0x6d8616[_0xaa2dd9('0x22d5')](this)),_0x5ec58a['addEventListener']('endcall',_0x2e54db[_0xaa2dd9('0x22d5')](this))));})[_0x122890('0x16df')](function(_0x5303b8){const _0x497318=_0x122890;console[_0x497318('0x20aa')](_0x497318('0x2698'),_0x5303b8);});})[_0x35c2cb('0x16df')](function(_0x4a494a){const _0x181123=_0x35c2cb;console['error'](_0x181123('0x18f8'),_0x4a494a),_0x4a494a[_0x181123('0x2aa')]===_0x181123('0x1952')&&_0x3121a2[_0x181123('0xc86')]({'title':_0x573fd0[_0x181123('0x1acc')](_0x181123('0x715')),'msg':_0x573fd0['instant']('TOOLBAR.WEBRTC_AUDIO_DEVICES_NOT_AVAILABLE'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x181123('0x16cb')});})[_0x35c2cb('0x74e')](function(){const _0x1687fe=_0x35c2cb;_0x2a7c75[_0x1687fe('0x1847')]=![],_0x2bb6e9(),_0x451482()[_0x1687fe('0xae2')](_0x845ef1['bind'](this));});}function _0x30e679(_0x542859){const _0x1195f6=_0x29b697,_0x22a6fb=_0x49cbdd()[_0x1195f6('0x5e8')](_0x2a7c75['sessions']);_0x22a6fb?_0x22a6fb['direction']===_0x1195f6('0x1eab')&&_0x22a6fb['isInProgress']()?_0x2a7c75[_0x1195f6('0xdfa')](_0x22a6fb):console[_0x1195f6('0x1db9')]('Unable\x20to\x20find\x20a\x20valid\x20call\x20to\x20answer',_0x542859):console[_0x1195f6('0x1db9')](_0x1195f6('0x751'),_0x542859);}function _0x349be3(){const _0x4d1ed1=_0x29b697;_0x2a7c75[_0x4d1ed1('0x2790')]['microphoneMute']=!![],_0x4b6a66(_0x4d1ed1('0x22b1'),!![]);}function _0x5b80de(){const _0x145564=_0x29b697;_0x2a7c75[_0x145564('0x2790')][_0x145564('0x21ed')]=![],_0x4b6a66(_0x145564('0x22b1'),!![]);}function _0x6d8616(){const _0x4f8be9=_0x29b697;_0x2a7c75[_0x4f8be9('0x1a21')][_0x4f8be9('0x26ff')]?_0x2a7c75[_0x4f8be9('0x1c55')](_0x2a7c75[_0x4f8be9('0x1a21')]):_0x2a7c75[_0x4f8be9('0x727')](_0x2a7c75[_0x4f8be9('0x1a21')]);}function _0x2e54db(){const _0x211cee=_0x29b697;_0x470c0a()[_0x211cee('0x17e7')](function(_0x105c8b){_0x105c8b!==null&&_0x2a7c75['terminate'](_0x105c8b);});}function _0x2bb6e9(){const _0x2af69c=_0x29b697;_0x40dd21[_0x2af69c('0x4b6')]=_0x49cbdd()[_0x2af69c('0x230a')](_0x2a7c75[_0x2af69c('0x2790')],_0x2ac6c0),_0x13a41a[_0x2af69c('0x1a93')]['setItem'](_0x2af69c('0x41c')+_0x2a7c75[_0x2af69c('0x2790')]['id'],JSON['stringify'](_0x40dd21));}function _0x1eecda(){const _0x3a5cf7=_0x29b697;this[_0x3a5cf7('0x2501')]=!![];}function _0x7dc54e(){this['registered']=![];}function _0x845ef1(){const _0x542ddd=_0x29b697;_0x2a7c75[_0x542ddd('0x2790')][_0x542ddd('0x11aa')]=_0x451482()[_0x542ddd('0x11aa')],_0x2a7c75[_0x542ddd('0x2790')]['hasSpeakers']=_0x451482()['browser'][_0x542ddd('0x2aa')]===_0x542ddd('0x464')||_0x451482()[_0x542ddd('0x2055')][_0x542ddd('0x2aa')]===_0x542ddd('0x42')||_0x451482()[_0x542ddd('0x2055')][_0x542ddd('0x2aa')]===_0x542ddd('0x6d2')?_0x451482()[_0x542ddd('0x17d8')]:!![],_0x2a7c75['conf'][_0x542ddd('0x25c')]=_0x451482()[_0x542ddd('0x25c')],_0x2a7c75[_0x542ddd('0x2790')][_0x542ddd('0x33b')]=_0x451482()[_0x542ddd('0x33b')],_0x2a7c75['conf'][_0x542ddd('0x5cf')]=_0x451482()[_0x542ddd('0x5cf')],_0x2a7c75[_0x542ddd('0x2790')][_0x542ddd('0x1a28')]=_0x451482()[_0x542ddd('0x2055')][_0x542ddd('0x2aa')],_0x2a7c75['conf'][_0x542ddd('0xeba')]=_0x451482()[_0x542ddd('0x2055')]['version'];if(_0x5b36bd())!_0x2a7c75['register']&&_0x2a7c75['ua']['start']();else!_0x2a7c75['conf'][_0x542ddd('0x1d11')]&&_0x3121a2[_0x542ddd('0xc86')]({'title':_0x573fd0['instant'](_0x542ddd('0x715')),'msg':_0x573fd0[_0x542ddd('0x1acc')]('TOOLBAR.WEBRTC_LICENSE_NOT_ENABELD'),'clickToClose':!![],'showClose':!![],'shake':![],'timeout':![],'position':_0x542ddd('0x16cb')});}function _0x5b36bd(){const _0x365936=_0x29b697;return _0x2a7c75[_0x365936('0x2790')][_0x365936('0x1d11')]&&_0x2a7c75[_0x365936('0x2790')][_0x365936('0x25c')]&&_0x2a7c75['conf']['hasMicrophone']&&_0x2a7c75[_0x365936('0x2790')][_0x365936('0x17d8')]&&_0x2a7c75[_0x365936('0x2790')][_0x365936('0x14fe')]===_0x365936('0x1a1c')&&_0x4d2e11();}function _0x4d2e11(){const _0x4c4d6e=_0x29b697;return _0x2a7c75[_0x4c4d6e('0x2790')][_0x4c4d6e('0x1a28')]['toLowerCase']()===_0x4c4d6e('0x11cc')||_0x2a7c75[_0x4c4d6e('0x2790')][_0x4c4d6e('0x1a28')][_0x4c4d6e('0x19b')]()==='opera'||_0x2a7c75[_0x4c4d6e('0x2790')][_0x4c4d6e('0x1a28')]['toLowerCase']()==='safari';}function _0x3c40ac(_0x3943cc){const _0xa7bfcd=_0x29b697;console['debug'](_0xa7bfcd('0x20c6'),_0x3943cc);const _0x3763a7=_0x3943cc[_0xa7bfcd('0xd41')];let _0x495d8f=!![],_0x517d5c='',_0x4598f6=0x0,_0x2fcbf3;switch(_0x3943cc[_0xa7bfcd('0x1f78')]){case _0xa7bfcd('0xd0c'):{_0x3763a7['outgoing']=!![],_0x3763a7[_0xa7bfcd('0x2aa')]=_0x3943cc[_0xa7bfcd('0x12f8')]['ruri']['user'],_0x3763a7[_0xa7bfcd('0x221e')]=_0x3943cc[_0xa7bfcd('0x12f8')][_0xa7bfcd('0x1851')]['user'],_0x4fba09(_0x3763a7['user'],![]);const _0x42f145=_0xa7bfcd('0x129b');_0x2fcbf3=_0x30be16(_0x3943cc[_0xa7bfcd('0x12f8')][_0xa7bfcd('0x25e1')],_0x42f145),_0x2a7c75[_0xa7bfcd('0x866')]&&(_0x2a7c75['jabraSession']&&_0x5ec58a[_0xa7bfcd('0x23bf')](),_0x2a7c75['jabraSession']=_0x3763a7,_0x5ec58a[_0xa7bfcd('0x24a8')]());}break;case _0xa7bfcd('0x1aca'):{const _0x1cac1e=_0x385ee3[_0xa7bfcd('0x2831')]();if(_0x1cac1e[_0xa7bfcd('0x118a')]&&_0x1cac1e[_0xa7bfcd('0x1a4')]||_0x2a7c75[_0xa7bfcd('0x25df')])_0x495d8f=![];else{_0x3763a7[_0xa7bfcd('0x1eab')]=!![],_0x3763a7[_0xa7bfcd('0x2aa')]=_0x3943cc[_0xa7bfcd('0x12f8')][_0xa7bfcd('0x12da')][_0xa7bfcd('0x1a39')],_0x3763a7[_0xa7bfcd('0x221e')]=_0x3943cc[_0xa7bfcd('0x12f8')][_0xa7bfcd('0x12da')]['uri'][_0xa7bfcd('0x221e')],_0x517d5c=_0x3943cc[_0xa7bfcd('0x12f8')][_0xa7bfcd('0x268d')](_0xa7bfcd('0x1918'))||'',_0x4598f6=_0x3943cc[_0xa7bfcd('0x12f8')][_0xa7bfcd('0x268d')]('X-Answer-After')||0x0,_0x328f22(_0x3943cc['session']),_0x4fba09(_0x3943cc[_0xa7bfcd('0xd41')][_0xa7bfcd('0x221e')],!![]);_0x2a7c75[_0xa7bfcd('0x866')]&&_0x5ec58a[_0xa7bfcd('0x1d6c')]();_0x2a7c75['conf'][_0xa7bfcd('0x1efe')]&&_0x3bd7f0(function(){const _0x526f8c=_0xa7bfcd;_0x3763a7[_0x526f8c('0x156e')]()&&(_0x3763a7['autoAnswer']=!![],_0x436e74(_0x3763a7));},_0x2a7c75[_0xa7bfcd('0x2790')][_0xa7bfcd('0x139d')]?_0x2a7c75[_0xa7bfcd('0x2790')][_0xa7bfcd('0x139d')]*0x3e8:0x0);console[_0xa7bfcd('0xbe2')]('xAnswerMode',_0x517d5c),console[_0xa7bfcd('0xbe2')]('xAnswerAfterSec',_0x4598f6);if(_0x517d5c[_0xa7bfcd('0x19b')]()=='auto'){const _0x34bd31=_0x4598f6==0x0?0x1f4:_0x4598f6*0x3e8;console[_0xa7bfcd('0xbe2')](_0xa7bfcd('0xb47')+_0x34bd31+_0xa7bfcd('0x27fa')),_0x3bd7f0(function(){const _0x10f150=_0xa7bfcd;_0x3763a7[_0x10f150('0x156e')]()&&(_0x3763a7['autoAnswer']=!![],_0x436e74(_0x3763a7));},_0x34bd31);}}break;}default:}_0x495d8f?(_0x3763a7['call_id']=_0x3943cc[_0xa7bfcd('0x12f8')]['call_id'],_0x2fcbf3&&(_0x2a7c75[_0xa7bfcd('0x2038')][_0x3763a7[_0xa7bfcd('0x9a2')]]=_0x2fcbf3,_0x2e18cd(_0x2fcbf3,{'call_id':_0x3763a7[_0xa7bfcd('0x9a2')]})['then'](function(){const _0x5f44f3=_0xa7bfcd;console[_0x5f44f3('0x1d63')]('callbackurl:\x22'+_0x2fcbf3+'\x22\x20called\x20successfully');})[_0xa7bfcd('0x16df')](function(_0x3d15f3){const _0x31e55b=_0xa7bfcd;console[_0x31e55b('0x1d63')](_0x31e55b('0x1dfb')+_0x2fcbf3+_0x31e55b('0x167d'),_0x3d15f3);})),_0x3763a7[_0xa7bfcd('0xbeb')]&&(_0x3763a7['connection'][_0xa7bfcd('0x1745')]=_0x2510e4[_0xa7bfcd('0x22d5')](this)),_0x3763a7[_0xa7bfcd('0x151d')]=null,_0x3763a7['on'](_0xa7bfcd('0x2f'),_0x2f69a2['bind'](this,_0x3763a7)),_0x3763a7['on'](_0xa7bfcd('0x6e2'),_0x3c3ae9[_0xa7bfcd('0x22d5')](this,_0x3763a7)),_0x3763a7['on'](_0xa7bfcd('0x727'),_0x3084f0[_0xa7bfcd('0x22d5')](this,_0x3763a7)),_0x3763a7['on'](_0xa7bfcd('0x1c55'),_0x15b8bb['bind'](this,_0x3763a7)),_0x3763a7['on'](_0xa7bfcd('0xc30'),_0xc6da1c['bind'](this,_0x3763a7)),_0x3763a7['on'](_0xa7bfcd('0xca1'),_0x264cc2[_0xa7bfcd('0x22d5')](this,_0x3763a7)),_0x3763a7['on'](_0xa7bfcd('0x22dd'),_0x56d2da[_0xa7bfcd('0x22d5')](this,_0x3763a7)),_0x2a7c75[_0xa7bfcd('0x17d9')]['push'](_0x3763a7),_0x3bd7f0(function(){const _0x4d3ba1=_0xa7bfcd;_0x45cb06[_0x4d3ba1('0x177a')](),console[_0x4d3ba1('0xbe2')](_0x4d3ba1('0x1a03'),_0x2a7c75[_0x4d3ba1('0x17d9')]);})):_0x25dd9e(_0x3763a7,0x1e6);}function _0x4fba09(_0x14a1ea,_0x43cc4e,_0x53121f){const _0x1b1675=_0x29b697;console[_0x1b1675('0xbe2')](_0x1b1675('0xa7c'),_0x14a1ea,_0x43cc4e,_0x53121f),_0x2a7c75[_0x1b1675('0x1392')]['unshift']({'target':_0x14a1ea,'fullname':_0x53121f||_0x14a1ea,'inbound':_0x43cc4e,'time':_0x107a13()()[_0x1b1675('0x1c0d')](_0x1b1675('0x1e6c'))}),_0x2a7c75[_0x1b1675('0x1392')]['length']>0x32&&_0x2a7c75[_0x1b1675('0x1392')][_0x1b1675('0xbbc')]();}function _0x328f22(_0x34dcf5){const _0x3cb0b2=_0x29b697;console[_0x3cb0b2('0xbe2')]('getNotification\x20->\x20session',_0x34dcf5);const _0x15b372=_0x34dcf5[_0x3cb0b2('0x2aa')]?_0x34dcf5['name']+'\x20<'+_0x34dcf5[_0x3cb0b2('0x221e')]+'>':_0x34dcf5['user'];_0xbb61ea[_0x3cb0b2('0x2670')](_0x3cb0b2('0xed1'),_0x15b372,null,function(){_0x436e74(_0x34dcf5);},function(){_0x25dd9e(_0x34dcf5);})[_0x3cb0b2('0x17e7')](function(_0x39ad43){_0x34dcf5['notification']=_0x39ad43;})[_0x3cb0b2('0x16df')](function(_0x4718bb){const _0x2b7981=_0x3cb0b2;console[_0x2b7981('0x1db9')](_0x2b7981('0x187e'),_0x4718bb);});}function _0x436e74(_0x5c5e47){const _0x4df490=_0x29b697;console[_0x4df490('0xbe2')](_0x4df490('0x143'),_0x5c5e47),_0x2a7c75['conf'][_0x4df490('0x135')]?_0x2a7c75['sessionConf'][_0x4df490('0x13')][_0x4df490('0x1c86')]={'deviceId':_0x2a7c75[_0x4df490('0x2790')][_0x4df490('0x135')]}:_0x2a7c75[_0x4df490('0x565')]['mediaConstraints'][_0x4df490('0x1c86')]=!![],_0x5c5e47[_0x4df490('0xdfa')](_0x2a7c75[_0x4df490('0x565')]),_0x2a7c75[_0x4df490('0x866')]&&(_0x5ec58a[_0x4df490('0x24a8')](),_0x2a7c75[_0x4df490('0x1a21')]=_0x5c5e47);}function _0x25dd9e(_0x1c283d,_0x31ed7a){const _0x41eeee=_0x29b697;console[_0x41eeee('0xbe2')]('terminate\x20->\x20session',_0x1c283d);const _0x8e93d9={};if(_0x31ed7a)_0x8e93d9[_0x41eeee('0x102d')]=_0x31ed7a;else!_0x1c283d[_0x41eeee('0x1560')]()&&(_0x8e93d9['status_code']=0x25b);_0x1c283d[_0x41eeee('0x1c00')](_0x8e93d9);if(_0x2a7c75[_0x41eeee('0x866')]){if(_0x2a7c75[_0x41eeee('0x17d9')]['length']===0x0)_0x1c283d[_0x41eeee('0x26ff')]&&_0x5ec58a[_0x41eeee('0x23bf')](),_0x5ec58a[_0x41eeee('0x1ad6')](),_0x2a7c75[_0x41eeee('0x1a21')]=null;else{const _0x475e48=_0x49cbdd()[_0x41eeee('0x5e8')](_0x2a7c75[_0x41eeee('0x17d9')]);_0x475e48[_0x41eeee('0x26ff')]?(_0x5ec58a['onHook'](),_0x5ec58a['hold'](),_0x2a7c75[_0x41eeee('0x1a21')]=_0x475e48):_0x5ec58a['offHook']();}}}function _0x2f69a2(_0x11e7a6,_0xe068aa){const _0x2e752c=_0x29b697;console['debug'](_0x2e752c('0x6eb'),_0x11e7a6,_0xe068aa);let _0x56eac8=![];switch(_0xe068aa[_0x2e752c('0x1f78')]){case _0x2e752c('0xd0c'):!this[_0x2e752c('0x2790')][_0x2e752c('0x1cf8')]&&(this[_0x2e752c('0x158b')][_0x2e752c('0x224')]('src',_0x2e752c('0x10f9')),_0x56eac8=!![]);break;case _0x2e752c('0x1aca'):this[_0x2e752c('0x207f')](_0x11e7a6),this['soundPlayer']['setAttribute']('src',_0x2e752c('0x18d3')),_0x56eac8=!![];break;}_0x2a7c75['originateInProgress']&&(_0x2a7c75[_0x2e752c('0x25df')]=![]),_0x56eac8&&(this[_0x2e752c('0x158b')][_0x2e752c('0xd93')]=_0x2e752c('0xd93'),this[_0x2e752c('0x158b')][_0x2e752c('0x1a7c')]()['catch'](function(_0x5d0c29){const _0x26eac6=_0x2e752c;console[_0x26eac6('0x1d63')](_0x5d0c29[_0x26eac6('0x1603')]);})),_0x527430(_0x11e7a6)[_0x2e752c('0x17e7')](function(){const _0x51f462=_0x2e752c,_0x3ec368=_0x2a7c75[_0x51f462('0x2038')][_0x11e7a6[_0x51f462('0x9a2')]];_0x3ec368&&_0x2e18cd(_0x3ec368,{'uniqueid':_0x11e7a6['uniqueid'],'call_id':_0x11e7a6[_0x51f462('0x9a2')],'number_called':_0x11e7a6[_0x51f462('0x221e')]})[_0x51f462('0x17e7')](function(){const _0x359b19=_0x51f462;console['log'](_0x359b19('0x1038')+_0x3ec368+_0x359b19('0x583'));})[_0x51f462('0x16df')](function(_0x1bc306){const _0x20abbc=_0x51f462;console[_0x20abbc('0x1d63')]('fail\x20callbackurl:\x22'+_0x3ec368+_0x20abbc('0x167d'),_0x1bc306);})['finally'](function(){const _0x3fd94e=_0x51f462;delete _0x2a7c75[_0x3fd94e('0x2038')][_0x11e7a6[_0x3fd94e('0x9a2')]];});})['catch'](function(_0x4bcff1){const _0x43fe89=_0x2e752c;console[_0x43fe89('0x1db9')](_0x43fe89('0xf30'),_0x4bcff1);});}function _0x527430(_0x5341e0){const _0xc22852=_0x29b697;return console[_0xc22852('0xbe2')](_0xc22852('0x9c1'),_0x5341e0),_0x25071d[_0xc22852('0x1207')][_0xc22852('0x6a0')]()[_0xc22852('0x1af5')]['then'](function(_0xae2af4){const _0xbd491b=_0xc22852,_0x57ac36=_0x49cbdd()[_0xbd491b('0xe8e')](_0xae2af4[_0xbd491b('0x2319')],function(_0x5b72e1){const _0x546058=_0xbd491b;if(_0x5b72e1[_0x546058('0x1dae')]===_0x5341e0[_0x546058('0x9a2')])return _0x5b72e1;if(_0x5b72e1[_0x546058('0x97e')]===_0x5341e0[_0x546058('0x9a2')])return _0x5b72e1;return null;});_0x57ac36&&(_0x5341e0[_0xbd491b('0x2279')]=_0x57ac36['monitor'],_0x5341e0['uniqueid']=_0x57ac36[_0xbd491b('0x35b')],_0x5341e0[_0xbd491b('0x1d72')]=_0x57ac36['monitors']);return;});}function _0x3c3ae9(_0x27cba2,_0x4dfa5f){const _0x70d7f1=_0x29b697;console[_0x70d7f1('0xbe2')](_0x70d7f1('0x1058'),_0x27cba2,_0x4dfa5f);const _0x264ad0=document[_0x70d7f1('0x4c2')]('div_session_'+_0x27cba2['id'][_0x70d7f1('0x27de')](0x0,0x20));_0x264ad0&&$(_0x264ad0)[_0x70d7f1('0xf17')]()['$broadcast'](_0x70d7f1('0xba8')),_0x27cba2['confirmed']=!![],_0x4dfa5f[_0x70d7f1('0x1f78')]===_0x70d7f1('0x1aca')&&_0x27cba2[_0x70d7f1('0xbeb')]&&(_0x27cba2[_0x70d7f1('0xbeb')][_0x70d7f1('0x1745')]=_0x2510e4[_0x70d7f1('0x22d5')](this),_0x49cbdd()[_0x70d7f1('0xb9')](_0x27cba2[_0x70d7f1('0xbeb')][_0x70d7f1('0x19ba')]())&&(this[_0x70d7f1('0xb43')][_0x70d7f1('0x811')]=_0x49cbdd()[_0x70d7f1('0xb9')](_0x27cba2[_0x70d7f1('0xbeb')][_0x70d7f1('0x19ba')]()),this[_0x70d7f1('0xb43')][_0x70d7f1('0x1a7c')]())),this[_0x70d7f1('0x158b')]['pause'](),this[_0x70d7f1('0x158b')][_0x70d7f1('0xd93')]=null,this['putOtherCallsOnHold'](_0x27cba2),_0x27cba2[_0x70d7f1('0x1efe')]&&(this[_0x70d7f1('0x158b')][_0x70d7f1('0x224')](_0x70d7f1('0x1e55'),'app/core/directives/ms-phonebar/sounds/beep.ogg'),this[_0x70d7f1('0x158b')][_0x70d7f1('0x1a7c')]()[_0x70d7f1('0x16df')](function(_0x17b0ff){const _0xe22b8b=_0x70d7f1;console[_0xe22b8b('0x1d63')]('Unable\x20to\x20play\x20autoAnswer\x20notification',_0x17b0ff);})),_0x2a7c75[_0x70d7f1('0x1a49')]=_0x2a7c75[_0x70d7f1('0x17d9')]['length']==0x2,_0x527430(_0x27cba2)[_0x70d7f1('0x16df')](function(_0x2b8143){const _0x47d967=_0x70d7f1;console[_0x47d967('0x1db9')](_0x47d967('0xf30'),_0x2b8143);});}function _0x2510e4(_0x57d296){const _0x16558c=_0x29b697;console[_0x16558c('0xbe2')](_0x16558c('0x123c'),_0x57d296),this[_0x16558c('0xb43')][_0x16558c('0x811')]=_0x57d296['stream'],this['remotePlayer'][_0x16558c('0x1a7c')]();}function _0x3084f0(_0x447a2e,_0x1c6378){const _0x44efb0=_0x29b697;console[_0x44efb0('0xbe2')](_0x44efb0('0x5f7'),_0x447a2e,_0x1c6378),_0x1c6378[_0x44efb0('0x1f78')]===_0x44efb0('0xd0c')&&(_0x447a2e[_0x44efb0('0x26ff')]=!![]);}function _0x15b8bb(_0x8a751c,_0x197a5d){const _0x178d24=_0x29b697;console[_0x178d24('0xbe2')](_0x178d24('0x1792'),_0x8a751c,_0x197a5d),_0x197a5d[_0x178d24('0x1f78')]===_0x178d24('0xd0c')&&(_0x8a751c[_0x178d24('0x26ff')]=![]);}function _0xc6da1c(_0x48aeed,_0x1f065d){const _0x2e4862=_0x29b697;console[_0x2e4862('0xbe2')](_0x2e4862('0x38f'),_0x48aeed,_0x1f065d);_0x2a7c75[_0x2e4862('0x27e3')]&&(_0x49cbdd()[_0x2e4862('0x24b0')](_0x2a7c75[_0x2e4862('0x5be')],_0x48aeed['id'])&&(_0x5528d4(),_0x2a7c75[_0x2e4862('0x1402')]=!![]));_0x49cbdd()[_0x2e4862('0x5f3')](this[_0x2e4862('0x17d9')],{'id':_0x48aeed['id']});_0x2a7c75['sessions'][_0x2e4862('0x1f73')]!==0x2&&(_0x2a7c75[_0x2e4862('0x1a49')]=![]);if(_0x2a7c75[_0x2e4862('0x866')]){if(_0x2a7c75[_0x2e4862('0x17d9')][_0x2e4862('0x1f73')]===0x0)_0x48aeed[_0x2e4862('0x26ff')]&&_0x5ec58a[_0x2e4862('0x23bf')](),_0x5ec58a['onHook'](),_0x2a7c75['jabraSession']=null;else{const _0x3ecd1c=_0x49cbdd()[_0x2e4862('0x5e8')](_0x2a7c75[_0x2e4862('0x17d9')]);_0x3ecd1c[_0x2e4862('0x26ff')]?(_0x5ec58a[_0x2e4862('0x1ad6')](),_0x5ec58a['hold'](),_0x2a7c75[_0x2e4862('0x1a21')]=_0x3ecd1c):_0x5ec58a['offHook']();}}}function _0x5528d4(){const _0x2e6b82=_0x29b697;_0x2a7c75[_0x2e6b82('0x1a49')]=![],_0x2a7c75['isInConference']=![],_0x2a7c75[_0x2e6b82('0x214a')]=[];}function _0x264cc2(_0x424a85,_0x1e26c4){const _0x576f2d=_0x29b697;console[_0x576f2d('0xbe2')](_0x576f2d('0x1a3a'),_0x424a85,_0x1e26c4),this[_0x576f2d('0x158b')][_0x576f2d('0x267a')](),this[_0x576f2d('0x158b')][_0x576f2d('0xd93')]=null;_0x424a85[_0x576f2d('0x1e03')]&&_0x424a85[_0x576f2d('0x1e03')][_0x576f2d('0xbc9')]();_0x2a7c75[_0x576f2d('0x27e3')]&&(_0x49cbdd()[_0x576f2d('0x24b0')](_0x2a7c75[_0x576f2d('0x5be')],_0x424a85['id'])&&_0x5528d4());_0x2a7c75['originateInProgress']&&(_0x2a7c75[_0x576f2d('0x25df')]=![]);_0x49cbdd()[_0x576f2d('0x5f3')](this['sessions'],{'id':_0x424a85['id']});_0x2a7c75[_0x576f2d('0x17d9')][_0x576f2d('0x1f73')]!==0x2&&(_0x2a7c75[_0x576f2d('0x1a49')]=![]);if(_0x2a7c75[_0x576f2d('0x866')]){if(_0x2a7c75[_0x576f2d('0x17d9')]['length']===0x0)_0x424a85[_0x576f2d('0x26ff')]&&_0x5ec58a[_0x576f2d('0x23bf')](),_0x5ec58a[_0x576f2d('0x1ad6')](),_0x2a7c75[_0x576f2d('0x1a21')]=null;else{const _0x2dfef8=_0x49cbdd()['last'](_0x2a7c75[_0x576f2d('0x17d9')]);_0x2dfef8[_0x576f2d('0x26ff')]?(_0x5ec58a[_0x576f2d('0x1ad6')](),_0x5ec58a[_0x576f2d('0x727')](),_0x2a7c75[_0x576f2d('0x1a21')]=_0x2dfef8):_0x5ec58a[_0x576f2d('0x24a8')]();}}}function _0x56d2da(_0x1f1b64,_0x5c65e9){const _0x264e0a=_0x29b697;console[_0x264e0a('0xbe2')](_0x264e0a('0x24de'),_0x1f1b64,_0x5c65e9),_0x1f1b64[_0x264e0a('0x151d')]!==null&&clearTimeout(_0x1f1b64[_0x264e0a('0x151d')]),_0x1f1b64[_0x264e0a('0x151d')]=setTimeout(_0x5c65e9[_0x264e0a('0xd0b')],0x1*0x3e8);}function _0x996868(){const _0x2be859=_0x29b697;_0x2a7c75[_0x2be859('0x16a2')]=![];}function _0x2f6296(_0x160460,_0x514845){const _0x5e81cb=_0x29b697;let _0x2ecbba=_0x160460;!_0x2a7c75[_0x5e81cb('0x8cf')]&&(_0x2a7c75[_0x5e81cb('0x8cf')]='');_0x514845&&(_0x2a7c75[_0x5e81cb('0x8cf')]+=_0x160460,_0x45cb06[_0x5e81cb('0x2446')](_0x5e81cb('0x18b6'),_0x5e81cb('0x1b16'),_0x2a7c75[_0x5e81cb('0x8cf')]));switch(_0x160460){case'*':_0x2ecbba='asterisk';break;case'#':_0x2ecbba=_0x5e81cb('0x137a');break;default:}_0x2a7c75['conf'][_0x5e81cb('0x860')]&&(_0x2a7c75['soundPlayer'][_0x5e81cb('0x224')]('src',_0x5e81cb('0x2ed')+_0x2ecbba+_0x5e81cb('0x505')),_0x2a7c75[_0x5e81cb('0x158b')][_0x5e81cb('0x1a7c')]()['catch'](function(_0x131df5){const _0x3dc3a3=_0x5e81cb;console[_0x3dc3a3('0x1d63')](_0x131df5[_0x3dc3a3('0x1603')]);}));for(let _0x1c710f=0x0;_0x1c710f<_0x2a7c75['sessions'][_0x5e81cb('0x1f73')];_0x1c710f+=0x1){_0x2a7c75[_0x5e81cb('0x17d9')][_0x1c710f][_0x5e81cb('0x1560')]()&&!_0x2a7c75[_0x5e81cb('0x17d9')][_0x1c710f][_0x5e81cb('0xea')]()[_0x5e81cb('0xd0c')]&&_0x2a7c75[_0x5e81cb('0x17d9')][_0x1c710f][_0x5e81cb('0x2660')](_0x160460);}}function _0x4b6a66(_0x214aa6,_0x3891eb){const _0xd9b3e7=_0x29b697;switch(_0x214aa6){case _0xd9b3e7('0x1589'):_0x2a7c75[_0xd9b3e7('0x158b')][_0xd9b3e7('0x2fe')]=_0x2a7c75['conf']['ringingMute'];_0x2a7c75['conf']['ringingId']&&_0x2a7c75[_0xd9b3e7('0x158b')]['setSinkId'](_0x2a7c75[_0xd9b3e7('0x2790')]['ringingId'])[_0xd9b3e7('0x17e7')](function(){const _0x3bad31=_0xd9b3e7;_0x2a7c75[_0x3bad31('0x158b')][_0x3bad31('0x1c20')]=_0x2a7c75[_0x3bad31('0x2790')][_0x3bad31('0x8fb')];})[_0xd9b3e7('0x17e7')](function(){_0x3891eb&&_0x2bb6e9();})[_0xd9b3e7('0x16df')](function(_0xc87bc3){const _0x1c09ed=_0xd9b3e7;console[_0x1c09ed('0x1178')](_0xc87bc3[_0x1c09ed('0x1603')],_0x2a7c75['conf'][_0x1c09ed('0x1005')]);});break;case _0xd9b3e7('0x1b31'):_0x2a7c75[_0xd9b3e7('0xb43')][_0xd9b3e7('0x2fe')]=_0x2a7c75[_0xd9b3e7('0x2790')][_0xd9b3e7('0x1642')];_0x2a7c75[_0xd9b3e7('0x2790')][_0xd9b3e7('0x1df8')]&&_0x2a7c75['remotePlayer'][_0xd9b3e7('0xcca')](_0x2a7c75[_0xd9b3e7('0x2790')][_0xd9b3e7('0x1df8')])[_0xd9b3e7('0x17e7')](function(){const _0x578bbd=_0xd9b3e7;_0x2a7c75['remotePlayer'][_0x578bbd('0x1c20')]=_0x2a7c75[_0x578bbd('0x2790')]['speakerVolume'];})[_0xd9b3e7('0x17e7')](function(){_0x3891eb&&_0x2bb6e9();})[_0xd9b3e7('0x16df')](function(_0x246d7c){const _0x526d46=_0xd9b3e7;console[_0x526d46('0x1178')](_0x246d7c['message'],_0x2a7c75['conf'][_0x526d46('0x1df8')]);});break;case _0xd9b3e7('0x22b1'):for(let _0x4bce44=0x0;_0x4bce44<_0x2a7c75[_0xd9b3e7('0x17d9')][_0xd9b3e7('0x1f73')];_0x4bce44+=0x1){_0x2a7c75[_0xd9b3e7('0x2790')][_0xd9b3e7('0x21ed')]?_0x2a7c75['sessions'][_0x4bce44][_0xd9b3e7('0x1d0d')]():_0x2a7c75[_0xd9b3e7('0x17d9')][_0x4bce44][_0xd9b3e7('0x1451')]();}_0x5ec58a&&_0x2a7c75[_0xd9b3e7('0x866')]&&(_0x2a7c75['conf']['microphoneMute']?_0x5ec58a['mute']():_0x5ec58a['unmute']());_0x3891eb&&_0x2bb6e9();break;default:console[_0xd9b3e7('0x1d63')](_0xd9b3e7('0x146f'));}}function _0x200327(_0x2b631b){const _0x1e4ecc=_0x29b697;if(!_0x2b631b)_0x5b44fd();else/^(\w|\.|\+|#|\*|\(|\)|\s|-)*$/[_0x1e4ecc('0x1ec')](_0x2b631b)?(_0x2a7c75[_0x1e4ecc('0x8cf')]=_0x2b631b,_0x45cb06['$broadcast'](_0x1e4ecc('0x18b6'),_0x1e4ecc('0x1b16'),_0x2a7c75['target'])):_0x2a7c75[_0x1e4ecc('0x8cf')]?_0x45cb06[_0x1e4ecc('0x2446')]('angucomplete-alt:changeInput',_0x1e4ecc('0x1b16'),_0x2a7c75[_0x1e4ecc('0x8cf')]):_0x5b44fd();}function _0x5b44fd(){const _0x3ea769=_0x29b697;_0x2a7c75[_0x3ea769('0x8cf')]='',document[_0x3ea769('0x4c2')]('ms-target')[_0x3ea769('0x1a70')](),document[_0x3ea769('0x4c2')](_0x3ea769('0xf2a'))['value']='',_0x45cb06[_0x3ea769('0x2446')]('angucomplete-alt:clearInput','ms-target-wrap');}function _0x29b2e3(_0x1af7dc){const _0x533049=_0x29b697;_0x1af7dc&&(_0x2a7c75[_0x533049('0x8cf')]=_0x1af7dc[_0x533049('0x84c')]['target'],_0x2a7c75[_0x533049('0x6b1')](),_0x5b44fd());}function _0x39eb6c(){const _0xdbc68b=_0x29b697;if(_0x2a7c75[_0xdbc68b('0x8cf')]&&_0x2a7c75[_0xdbc68b('0x8cf')]!==_0x2a7c75['conf'][_0xdbc68b('0x2aa')]&&_0x2a7c75['target']!==_0x2a7c75['conf'][_0xdbc68b('0xe3e')]){_0x2a7c75['conf']['microphoneId']?_0x2a7c75[_0xdbc68b('0x565')][_0xdbc68b('0x13')][_0xdbc68b('0x1c86')]={'deviceId':_0x2a7c75[_0xdbc68b('0x2790')][_0xdbc68b('0x135')]}:_0x2a7c75['sessionConf'][_0xdbc68b('0x13')]['audio']=!![];let _0x50aac5=_0x2a7c75[_0xdbc68b('0x8cf')]['replace'](/ /g,'');return _0x50aac5=_0x50aac5[_0xdbc68b('0x737')](/\(/g,''),_0x50aac5=_0x50aac5['replace'](/\)/g,''),_0x542fb5(_0x50aac5)[_0xdbc68b('0x17e7')](function(_0x5897ac){const _0x1b6dff=_0xdbc68b;_0x5897ac&&_0x2a7c75['ua'][_0x1b6dff('0x6b1')](_0x5897ac,_0x2a7c75[_0x1b6dff('0x565')]);})['then'](function(){_0x5b44fd();});}}function _0x542fb5(_0x523fc8){const _0x4e83cc=_0x29b697;return _0x25071d[_0x4e83cc('0x221e')][_0x4e83cc('0x1e3d')]({'id':_0x2a7c75[_0x4e83cc('0x2790')]['id']})[_0x4e83cc('0x1af5')][_0x4e83cc('0x17e7')](function(_0x5f0bd3){const _0x187625=_0x4e83cc;if(_0x5f0bd3[_0x187625('0x335')])return _0x5e6426[_0x187625('0x28e2')]({'controller':'PrefixDialogController','controllerAs':'vm','templateUrl':_0x1ac9d2,'parent':angular[_0x187625('0x1ce1')](_0x5c9c0a[_0x187625('0x13aa')]),'clickOutsideToClose':!![],'locals':{'prefixes':_0x5f0bd3,'required':_0x2a7c75[_0x187625('0x2790')][_0x187625('0x1f6d')]}});})['then'](function(_0xb3ab8d){const _0x115db4=_0x4e83cc;if(!_0x2a7c75[_0x115db4('0x2790')][_0x115db4('0x1f6d')]){if(_0xb3ab8d&&_0xb3ab8d!==-0x1)return _0xb3ab8d+_0x523fc8;else{if(!_0xb3ab8d)return _0x523fc8;}}else{if(_0xb3ab8d&&_0xb3ab8d!==-0x1)return _0xb3ab8d+_0x523fc8;}});}function _0x5b4a04(_0x1be40d){const _0x344bde=_0x29b697;switch(_0x1be40d[_0x344bde('0xdb5')]['toLowerCase']()){case'0':case'1':case'2':case'3':case'4':case'5':case'6':case'7':case'8':case'9':case'*':case'#':_0x2a7c75['type'](_0x1be40d[_0x344bde('0xdb5')]);break;case _0x344bde('0x10f1'):_0x2a7c75[_0x344bde('0x6b1')]();break;default:}}function _0x1a27ea(){const _0x328630=_0x29b697;_0x2a7c75[_0x328630('0x16a2')]=!_0x2a7c75[_0x328630('0x16a2')];}_0x5c9c0a[_0x29b697('0x22d5')](_0x29b697('0x8e4'),function(_0x70a9b0){switch(_0x70a9b0['keyCode']){case 0x1b:_0x3bd7f0(function(){const _0x25c26a=a0_0xd29e;_0x2a7c75[_0x25c26a('0x16a2')]=![];});break;default:}});function _0x45da40(){const _0xbe98f0=_0x29b697;_0x2a7c75[_0xbe98f0('0x27e3')]=!![],_0x2a7c75[_0xbe98f0('0x1a49')]=![],_0x2a7c75[_0xbe98f0('0x5be')][_0xbe98f0('0x269f')](_0x2a7c75[_0xbe98f0('0x17d9')][0x0]['id']),_0x2a7c75[_0xbe98f0('0x5be')]['push'](_0x2a7c75[_0xbe98f0('0x17d9')][0x1]['id']);const _0x31cfd6=_0x2a7c75[_0xbe98f0('0x17d9')][0x0]['connection'][_0xbe98f0('0x1e8a')]()[0x0],_0x167bde=_0x2a7c75['sessions'][0x0][_0xbe98f0('0xbeb')][_0xbe98f0('0x86f')]()[0x0];_0x167bde[_0xbe98f0('0x13a5')]['addEventListener']('unmute',function(){setTimeout(function(){_0x488132();},0x3e8);},![]);const _0x230dc2=_0x2a7c75[_0xbe98f0('0x17d9')][0x1][_0xbe98f0('0xbeb')][_0xbe98f0('0x1e8a')]()[0x0],_0x45eac4=_0x2a7c75[_0xbe98f0('0x17d9')][0x1][_0xbe98f0('0xbeb')]['getReceivers']()[0x0];_0x45eac4[_0xbe98f0('0x13a5')][_0xbe98f0('0x18a7')](_0xbe98f0('0x1451'),function(){setTimeout(function(){_0x488132();},0x3e8);},![]),_0x2a7c75['sessions'][0x0][_0xbe98f0('0x1c55')]({'useUpdate':![]}),_0x2a7c75['sessions'][0x1][_0xbe98f0('0x1c55')]({'useUpdate':![]}),_0x167bde['track'][_0xbe98f0('0x1cd3')]=!![],_0x45eac4[_0xbe98f0('0x13a5')][_0xbe98f0('0x1cd3')]=!![];const _0x573111=new MediaStream(),_0x56fbcb=new AudioContext();let _0x13786f=_0x56fbcb['createMediaStreamDestination'](),_0x4415cc=_0x56fbcb[_0xbe98f0('0x17c3')](new MediaStream([_0x45eac4[_0xbe98f0('0x13a5')]]));_0x4415cc[_0xbe98f0('0x1f81')](_0x13786f),_0x4415cc=_0x56fbcb[_0xbe98f0('0x17c3')](new MediaStream([_0x31cfd6['track']])),_0x4415cc[_0xbe98f0('0x1f81')](_0x13786f),_0x31cfd6[_0xbe98f0('0x523')](_0x13786f[_0xbe98f0('0x2186')]['getTracks']()[0x0])[_0xbe98f0('0x17e7')](function(){}),_0x13786f=_0x56fbcb[_0xbe98f0('0x146d')](),_0x4415cc=_0x56fbcb[_0xbe98f0('0x17c3')](new MediaStream([_0x167bde[_0xbe98f0('0x13a5')]])),_0x4415cc[_0xbe98f0('0x1f81')](_0x13786f),_0x4415cc=_0x56fbcb[_0xbe98f0('0x17c3')](new MediaStream([_0x230dc2[_0xbe98f0('0x13a5')]])),_0x4415cc['connect'](_0x13786f),_0x230dc2[_0xbe98f0('0x523')](_0x13786f[_0xbe98f0('0x2186')]['getTracks']()[0x0])['then'](function(){const _0x27360c=_0xbe98f0;_0x573111[_0x27360c('0x577')](_0x167bde[_0x27360c('0x13a5')]),_0x573111['addTrack'](_0x45eac4['track']);const _0x24458f=document[_0x27360c('0x4c2')](_0x27360c('0x1429'));_0x24458f[_0x27360c('0x811')]=_0x573111;const _0x15277b=_0x24458f[_0x27360c('0x1a7c')]();_0x15277b!==undefined&&_0x15277b['then'](function(){})['catch'](function(_0x2d28a0){const _0x30c4fe=_0x27360c;console[_0x30c4fe('0x1d63')](_0x2d28a0);});});}function _0x488132(){const _0xe3a536=_0x29b697;if(_0x2a7c75['isInConference']){const _0x410a77=_0x2a7c75['sessions'][0x0][_0xe3a536('0xbeb')]['getReceivers']()[0x0],_0x507c99=_0x2a7c75[_0xe3a536('0x17d9')][0x1][_0xe3a536('0xbeb')][_0xe3a536('0x86f')]()[0x0],_0x1e66b8=new MediaStream();_0x1e66b8[_0xe3a536('0x577')](_0x410a77['track']),_0x1e66b8[_0xe3a536('0x577')](_0x507c99[_0xe3a536('0x13a5')]);const _0x3e25af=document[_0xe3a536('0x4c2')]('remote-audio');_0x3e25af[_0xe3a536('0x811')]=_0x1e66b8;const _0x33037d=_0x3e25af[_0xe3a536('0x1a7c')]();_0x33037d!==undefined&&_0x33037d[_0xe3a536('0x17e7')](function(){})[_0xe3a536('0x16df')](function(_0x2863b3){console['log'](_0x2863b3);});}}function _0x12e285(_0x32f2bc){const _0xdbcd01=_0x29b697;console[_0xdbcd01('0xbe2')](_0xdbcd01('0x8c0'),_0x32f2bc),_0x2a7c75['unhold'](_0x32f2bc);}function _0x393daf(_0x21b96d){const _0x598e18=_0x29b697;console[_0x598e18('0xbe2')](_0x598e18('0x1979'),_0x21b96d),_0x21b96d[_0x598e18('0x1c55')]({'useUpdate':![]}),_0x2a7c75['putOtherCallsOnHold'](_0x21b96d),_0x2a7c75[_0x598e18('0x866')]&&(_0x5ec58a[_0x598e18('0x24a8')](),_0x5ec58a[_0x598e18('0x23bf')]());}function _0x1ffa3f(_0x399835){const _0x440993=_0x29b697;console[_0x440993('0xbe2')](_0x440993('0xa75'),_0x399835),_0x5e6426['show']({'controller':_0x440993('0x14be'),'controllerAs':'vm','templateUrl':_0x178922,'parent':angular[_0x440993('0x1ce1')](_0x5c9c0a[_0x440993('0x13aa')]),'clickOutsideToClose':!![],'locals':{'session':_0x399835,'sessions':_0x2a7c75['sessions']}});}function _0x11ec4b(_0x274226){const _0x33c4a2=_0x29b697;console[_0x33c4a2('0xbe2')](_0x33c4a2('0x50b'),_0x274226),_0x274226[_0x33c4a2('0x727')]({'useUpdate':![]}),_0x2a7c75['isJabraEnabled']&&(_0x5ec58a[_0x33c4a2('0x727')](),_0x5ec58a['onHook']());}function _0xed32c9(_0x439dd0){const _0x3ca870=_0x29b697;console['debug']('refer\x20->\x20session',_0x439dd0);const _0x45eaee=_0x5e6426['prompt']()[_0x3ca870('0x24d3')](_0x3ca870('0x216d'))['textContent'](_0x3ca870('0xe93'))[_0x3ca870('0x1ba5')](_0x3ca870('0x1f21'))[_0x3ca870('0x2095')](_0x3ca870('0x1f21'))['ok'](_0x3ca870('0x216d'))[_0x3ca870('0x1d47')]('Cancel');_0x5e6426[_0x3ca870('0x28e2')](_0x45eaee)[_0x3ca870('0x17e7')](function(_0x193cd3){return _0x542fb5(_0x193cd3);})[_0x3ca870('0x17e7')](function(_0x550c66){const _0x10eac0=_0x3ca870;_0x439dd0['refer'](_0x550c66,{'eventHandlers':{'requestSucceeded':_0x43c6bf(_0x439dd0,_0x10eac0('0x120b'),_0x10eac0('0x1d51'),0xbb8),'requestFailed':_0x43c6bf(_0x439dd0,_0x10eac0('0x1518'),_0x10eac0('0x1d51'),0xbb8)}});});}function _0x43c6bf(_0x5de410,_0x2fa118,_0x44af40,_0xd1fa7c){const _0x11504a=_0x29b697;return console[_0x11504a('0xbe2')](_0x11504a('0x1fef'),_0x5de410,_0x2fa118,_0x44af40,_0xd1fa7c),function(){const _0x43deef=_0x11504a;_0x10ae2a[_0x43deef('0x28e2')](_0x10ae2a['simple']()[_0x43deef('0x18c5')](_0x2fa118)[_0x43deef('0x707')](_0x44af40)[_0x43deef('0x1ed2')](_0xd1fa7c)),_0x25dd9e(_0x5de410);};}function _0x575b42(_0x44e342){const _0x248540=_0x29b697;console[_0x248540('0xbe2')](_0x248540('0x239f'),_0x44e342),_0x5e6426[_0x248540('0x28e2')]({'controller':_0x248540('0xfd8'),'controllerAs':'vm','templateUrl':_0x97ed4f,'parent':angular['element'](_0x5c9c0a[_0x248540('0x13aa')]),'clickOutsideToClose':!![],'locals':{'session':_0x44e342,'sessions':_0x49cbdd()['reject'](_0x2a7c75['sessions'],{'id':_0x44e342['id']}),'isJabraEnabled':_0x2a7c75['isJabraEnabled']}});}function _0x15c344(_0x424373){const _0x5ba2a0=_0x29b697;console[_0x5ba2a0('0xbe2')](_0x5ba2a0('0x8a'),_0x424373);if(_0x2a7c75[_0x5ba2a0('0x17d9')][_0x5ba2a0('0x1f73')]>0x1)for(let _0x9ebd43=0x0;_0x9ebd43<_0x2a7c75[_0x5ba2a0('0x17d9')][_0x5ba2a0('0x1f73')];_0x9ebd43+=0x1){_0x2a7c75[_0x5ba2a0('0x17d9')][_0x9ebd43]['id']!==_0x424373['id']&&!_0x2a7c75[_0x5ba2a0('0x17d9')][_0x9ebd43]['isOnHold']()[_0x5ba2a0('0x1aca')]&&_0x2a7c75['sessions'][_0x9ebd43]['hold']({'useUpdate':![]});}}function _0x4e29c6(_0x42fba0){const _0x5c9a0f=_0x29b697;_0x5e6426[_0x5c9a0f('0x28e2')]({'controller':'SettingsController','controllerAs':'vm','templateUrl':_0x261b36,'parent':angular[_0x5c9a0f('0x1ce1')](_0x5c9c0a[_0x5c9a0f('0x13aa')]),'targetEvent':_0x42fba0,'clickOutsideToClose':!![],'resolve':{'devices':function(){const _0x6f834f=_0x5c9a0f;return navigator[_0x6f834f('0xfbe')][_0x6f834f('0x1d1e')]();}},'locals':{'conf':_0x2a7c75[_0x5c9a0f('0x2790')]}})['then'](function(_0x16e0c3){const _0x1711e2=_0x5c9a0f;_0x16e0c3&&(_0x2a7c75[_0x1711e2('0x2790')]=_0x16e0c3,!_0x2a7c75[_0x1711e2('0x1847')]&&(_0x2a7c75['initDeviceInProgress']=!![],_0x5ec58a&&_0x2a7c75['isJabraInitialized']?_0x5ec58a[_0x1711e2('0x6a5')]()['then'](function(){_0x2a7c75['isJabraInitialized']=![],_0x2a7c75['isJabraEnabled']=![],_0x3952e6(![]);})['catch'](function(_0x16660b){const _0x364725=_0x1711e2;console[_0x364725('0x1db9')](_0x364725('0x1bbb'),_0x16660b);}):_0x3952e6(![])));});}function _0x214a26(){const _0x4ace7b=_0x29b697;_0x2a7c75['ua']['stop'](),_0x5ec58a&&_0x2a7c75['isJabraInitialized']&&_0x5ec58a[_0x4ace7b('0x6a5')](),navigator[_0x4ace7b('0xfbe')][_0x4ace7b('0x1bb4')]=function(){};}function _0x230140(_0x548cd3,_0x55dda4){const _0x5e9898=_0x29b697;console[_0x5e9898('0xbe2')](_0x5e9898('0x110d'),_0x548cd3,_0x55dda4),_0x55dda4[_0x5e9898('0x8cf')]&&(_0x2a7c75[_0x5e9898('0x8cf')]=_0x55dda4[_0x5e9898('0x8cf')],_0x2a7c75[_0x5e9898('0x6b1')]());}function _0x192668(_0x4ed761,_0x5623e5){const _0x31f4d7=_0x29b697;console[_0x31f4d7('0xbe2')]('onRemoteTransfer\x20->\x20evt,\x20data',_0x4ed761,_0x5623e5);if(_0x5623e5[_0x31f4d7('0x8cf')])for(let _0x2b5eb4=0x0;_0x2b5eb4<_0x2a7c75[_0x31f4d7('0x17d9')][_0x31f4d7('0x1f73')];_0x2b5eb4+=0x1){if(_0x2a7c75['sessions'][_0x2b5eb4][_0x31f4d7('0x1560')]()&&!_0x2a7c75[_0x31f4d7('0x17d9')][_0x2b5eb4][_0x31f4d7('0xea')]()['local'])return _0x542fb5(_0x5623e5[_0x31f4d7('0x8cf')])[_0x31f4d7('0x17e7')](function(_0x1af304){const _0x711555=_0x31f4d7;_0x1af304&&_0x2a7c75['sessions'][_0x2b5eb4][_0x711555('0x8dd')](_0x1af304,{'eventHandlers':{'requestSucceeded':_0x43c6bf(_0x2a7c75[_0x711555('0x17d9')][_0x2b5eb4],_0x711555('0x120b'),_0x711555('0x1d51'),0xbb8),'requestFailed':_0x43c6bf(_0x2a7c75[_0x711555('0x17d9')][_0x2b5eb4],'requestFailed',_0x711555('0x1d51'),0xbb8)}});});}}function _0x470c0a(){return new Promise(function(_0x2c3c88){const _0xd50afe=a0_0xd29e;let _0x42e02d=null;for(let _0x1e5d60=0x0;_0x1e5d60<_0x2a7c75[_0xd50afe('0x17d9')][_0xd50afe('0x1f73')];_0x1e5d60++){!_0x49cbdd()[_0xd50afe('0x24c1')](_0x2a7c75[_0xd50afe('0x17d9')][_0x1e5d60],'localHold')?_0x42e02d=_0x2a7c75[_0xd50afe('0x17d9')][_0x1e5d60]:!_0x2a7c75[_0xd50afe('0x17d9')][_0x1e5d60][_0xd50afe('0x26ff')]&&(_0x42e02d=_0x2a7c75['sessions'][_0x1e5d60]);}_0x2c3c88(_0x42e02d);});}function _0x5e2c63(_0x4b4160){const _0x22f7e3=_0x29b697;console[_0x22f7e3('0xbe2')](_0x22f7e3('0x1963'),_0x4b4160);const _0x2f0104=_0x4b4160[_0x22f7e3('0x5c8')],_0xccb3db=_0x4b4160[_0x22f7e3('0x1a8e')],_0x172efa=_0x4b4160[_0x22f7e3('0x261b')];_0x2a7c75['conf'][_0x22f7e3('0x135')]?_0x2a7c75[_0x22f7e3('0x565')][_0x22f7e3('0x13')]['audio']={'deviceId':_0x2a7c75[_0x22f7e3('0x2790')][_0x22f7e3('0x135')]}:_0x2a7c75[_0x22f7e3('0x565')][_0x22f7e3('0x13')][_0x22f7e3('0x1c86')]=!![];let _0x128ae3=_0x2f0104[_0x22f7e3('0x737')](/ /g,'');_0x128ae3=_0x128ae3[_0x22f7e3('0x737')](/\(/g,''),_0x128ae3=_0x128ae3['replace'](/\)/g,'');if(_0x128ae3){const _0x14a5fd=angular[_0x22f7e3('0x14e5')](_0x2a7c75[_0x22f7e3('0x565')]);_0x14a5fd[_0x22f7e3('0x25e1')]=[],_0xccb3db&&_0x14a5fd['extraHeaders'][_0x22f7e3('0x269f')](_0x22f7e3('0x1cc3')+_0xccb3db),_0x172efa&&_0x14a5fd['extraHeaders'][_0x22f7e3('0x269f')](_0x22f7e3('0x765')+_0x172efa),_0x2a7c75[_0x22f7e3('0x25df')]=!![],_0x2a7c75['ua'][_0x22f7e3('0x6b1')](_0x128ae3,_0x14a5fd);}}function _0x49b0bd(_0x1bd8c8){const _0x246885=_0x29b697;console[_0x246885('0xbe2')](_0x246885('0x4d6'),_0x1bd8c8);let _0x43df08=_0x2a7c75[_0x246885('0x17d9')];if(_0x1bd8c8[_0x246885('0x252e')]){_0x43df08=[];const _0x9f7f01=_0x1bd8c8['sessionId'];_0x43df08[_0x246885('0x269f')](_0x2aaf70(_0x1bd8c8[_0x246885('0x252e')]));if(_0x43df08[_0x246885('0x1f73')]==0x0){console[_0x246885('0x20aa')](_0x246885('0x125')+_0x9f7f01+_0x246885('0x1dc7'));return;}}for(let _0xa70a98=0x0;_0xa70a98<_0x43df08['length'];_0xa70a98++){const _0x5ba098=_0x43df08[_0xa70a98];console[_0x246885('0x1d63')]('hangupHook\x20->\x20sessionToHangup',_0x5ba098),_0x2a7c75[_0x246885('0x1c00')](_0x5ba098);}}function _0xbe1c17(_0x459e98){const _0x4fd32b=_0x29b697;console[_0x4fd32b('0xbe2')]('answerHook\x20->\x20payload',_0x459e98);let _0x3cc260=_0x47a735();if(_0x459e98[_0x4fd32b('0x252e')]){const _0x12e3bd=_0x459e98[_0x4fd32b('0x252e')],_0x52cd84=_0x2aaf70(_0x459e98[_0x4fd32b('0x252e')]);if(!_0x52cd84){console[_0x4fd32b('0x20aa')](_0x4fd32b('0x125')+_0x12e3bd+'\x20not\x20found');return;}_0x3cc260=[_0x52cd84];}for(let _0x6cb74c=0x0;_0x6cb74c<_0x3cc260[_0x4fd32b('0x1f73')];_0x6cb74c++){const _0x30a9af=_0x3cc260[_0x6cb74c];_0x2a7c75[_0x4fd32b('0xdfa')](_0x30a9af);}}function _0x47a735(){const _0x3f5097=_0x29b697,_0x246f28=_0x49cbdd()[_0x3f5097('0xe8e')](_0x2a7c75['sessions'],function(_0x49af2b){const _0x548845=_0x3f5097;return _0x49af2b[_0x548845('0x1eab')]&&!_0x49af2b['confirmed'];});return _0x246f28;}function _0x5a34f9(_0x382cac){const _0x31dc64=_0x29b697;console[_0x31dc64('0xbe2')](_0x31dc64('0x2116'),_0x382cac);let _0x2fd2b2=_0x2a7c75[_0x31dc64('0x17d9')];if(_0x382cac[_0x31dc64('0x252e')]){_0x2fd2b2=[],_0x2fd2b2['push'](_0x2aaf70(_0x382cac['sessionId']));const _0x13863e=_0x382cac[_0x31dc64('0x252e')];if(_0x2fd2b2[_0x31dc64('0x1f73')]==0x0){console[_0x31dc64('0x20aa')](_0x31dc64('0x125')+_0x13863e+_0x31dc64('0x1dc7'));return;}}for(let _0x2eb499=0x0;_0x2eb499<_0x2fd2b2['length'];_0x2eb499++){const _0x3d7b73=_0x2fd2b2[_0x2eb499];_0x2a7c75['hold'](_0x3d7b73);}}function _0x3601fa(_0x1c915e){const _0x30545a=_0x29b697;console[_0x30545a('0xbe2')](_0x30545a('0x2116'),_0x1c915e);if(!_0x1c915e[_0x30545a('0x252e')]){console[_0x30545a('0x1db9')]('sessionId\x20required');return;}const _0x31d32c=_0x2aaf70(_0x1c915e[_0x30545a('0x252e')]);if(!_0x31d32c){const _0x482e5f=_0x1c915e[_0x30545a('0x252e')];console[_0x30545a('0x20aa')]('call\x20with\x20session\x20Id\x20'+_0x482e5f+_0x30545a('0x1dc7'));return;}_0x2a7c75['unhold'](_0x31d32c);}function _0x26c3bc(_0x4b086f){const _0x57ae4d=_0x29b697;console['debug'](_0x57ae4d('0x2595'),_0x4b086f);if(!_0x4b086f[_0x57ae4d('0x252e')]){console[_0x57ae4d('0x1db9')](_0x57ae4d('0x1667'));return;}if(!_0x4b086f[_0x57ae4d('0x1021')]){console[_0x57ae4d('0x1db9')]('transferNumber\x20required');return;}const _0x169dd3=_0x2aaf70(_0x4b086f[_0x57ae4d('0x252e')]);if(!_0x169dd3){const _0x3452d8=_0x4b086f[_0x57ae4d('0x252e')];console[_0x57ae4d('0x20aa')]('call\x20with\x20session\x20Id\x20'+_0x3452d8+'\x20not\x20found');return;}_0x169dd3[_0x57ae4d('0x8dd')](_0x4b086f[_0x57ae4d('0x1021')],{'eventHandlers':{'requestSucceeded':_0x43c6bf(_0x169dd3,_0x57ae4d('0x120b'),_0x57ae4d('0x1d51'),0xbb8),'requestFailed':_0x43c6bf(_0x169dd3,_0x57ae4d('0x1518'),_0x57ae4d('0x1d51'),0xbb8)}});}function _0x2aaf70(_0x387f1a){const _0x5bcc4c=_0x29b697;console[_0x5bcc4c('0xbe2')](_0x5bcc4c('0x6d'),_0x387f1a,_0x2a7c75[_0x5bcc4c('0x17d9')]);const _0x130a98=_0x49cbdd()['find'](_0x2a7c75['sessions'],function(_0x122b31){return _0x122b31['call_id']==_0x387f1a;});return _0x130a98;}function _0x2e18cd(_0x17494e,_0x5e69b3){const _0x4abd54=_0x29b697;return console[_0x4abd54('0xbe2')](_0x4abd54('0xf81'),_0x17494e,_0x5e69b3),_0x9cb339({'url':_0x17494e,'method':'GET','params':_0x5e69b3});}function _0x30be16(_0x1da8b3,_0x23ad64,_0x2193f9){const _0x1e3849=_0x29b697,_0x5605bd=_0x49cbdd()[_0x1e3849('0xe8e')](_0x1da8b3,function(_0x245158){return _0x49cbdd()['startsWith'](_0x245158,_0x23ad64);});if(_0x5605bd)return _0x49cbdd()[_0x1e3849('0x342')](_0x5605bd['replace'](_0x23ad64,'')[_0x1e3849('0x737')](_0x2193f9||':',''));return![];}_0x2a7c75['$onInit']=_0x515bcf[_0x29b697('0x22d5')](this),_0x2a7c75[_0x29b697('0x412')]=_0x2f6296,_0x2a7c75['call']=_0x39eb6c,_0x2a7c75[_0x29b697('0x727')]=_0x11ec4b,_0x2a7c75[_0x29b697('0x8dd')]=_0xed32c9,_0x2a7c75[_0x29b697('0x216e')]=_0x1ffa3f,_0x2a7c75['unhold']=_0x393daf,_0x2a7c75[_0x29b697('0xdfa')]=_0x436e74,_0x2a7c75['terminate']=_0x25dd9e,_0x2a7c75[_0x29b697('0x622')]=_0x12e285,_0x2a7c75[_0x29b697('0x1a04')]=_0x5b4a04,_0x2a7c75[_0x29b697('0x1e96')]=_0x1a27ea,_0x2a7c75[_0x29b697('0x1a5d')]=_0x575b42,_0x2a7c75[_0x29b697('0x1305')]=_0x996868,_0x2a7c75['initDevice']=_0x4b6a66,_0x2a7c75[_0x29b697('0x207f')]=_0x15c344,_0x2a7c75[_0x29b697('0xd8c')]=_0x200327,_0x2a7c75['targetSelected']=_0x29b2e3,_0x2a7c75[_0x29b697('0x15fb')]=_0x45da40,_0x2a7c75[_0x29b697('0x709')]=_0x488132,_0x45cb06[_0x29b697('0x207c')](_0x29b697('0x19bb'),_0x4e29c6),_0x45cb06[_0x29b697('0x207c')]('webrtc::logout',_0x214a26),_0x45cb06[_0x29b697('0x207c')](_0x29b697('0x1ebc'),_0x230140),_0x45cb06[_0x29b697('0x207c')]('webrtc::transfer',_0x192668),_0x45cb06['$on']('$destroy',function(){const _0x550247=_0x29b697;console['debug'](_0x550247('0x1aa1')),_0x42d227[_0x550247('0x1c65')](_0x550247('0x10d3')),_0x42d227[_0x550247('0x1c65')](_0x550247('0x748')),_0x42d227[_0x550247('0x1c65')]('webbar:answer'),_0x42d227[_0x550247('0x1c65')](_0x550247('0x202e')),_0x42d227[_0x550247('0x1c65')](_0x550247('0x28dd')),_0x42d227['removeAllListeners']('webbar:transfer');});}function _0x496223(){const _0x13d9dd=_0x4376d8;return{'restrict':'E','scope':{'conf':'='},'require':_0x13d9dd('0xd43'),'controller':_0x13d9dd('0x108f'),'controllerAs':_0x13d9dd('0x14a3'),'bindToController':!![],'templateUrl':_0x397f94};}_0x26ac87['$inject']=[_0x4376d8('0x14f6'),_0x4376d8('0x705'),_0x4376d8('0x195e')];function _0x26ac87(_0x34890e,_0x2aa033,_0x2598a3){const _0x4a790d=_0x4376d8,_0x3c1af4=this;function _0x5bd777(){const _0x57224c=a0_0xd29e;_0x34890e['hide'](_0x3c1af4[_0x57224c('0x11d4')]);}function _0x538034(_0x1736dd){const _0x20eec5=a0_0xd29e;_0x34890e[_0x20eec5('0x212a')](_0x1736dd);}_0x3c1af4[_0x4a790d('0x705')]=_0x2aa033,_0x3c1af4['required']=_0x2598a3,_0x3c1af4[_0x4a790d('0x136e')]=_0x538034,_0x3c1af4[_0x4a790d('0x6b1')]=_0x5bd777;}const _0x20b3a3=_0x26ac87;_0x409ec8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x212e'),'sessions',_0x4376d8('0xd41')],_0x90321[_0x4376d8('0x1b9c')]=[_0x4376d8('0xef1')];function _0x90321(_0x2587d4){const _0x339e1a=_0x4376d8;return{'restrict':'C','controller':['$scope',_0x339e1a('0x1dc'),function(_0x3b8255,_0x391014){function _0x39a325(){const _0x2636d6=a0_0xd29e;_0x391014[_0x2636d6('0x2776')](_0x2636d6('0x486'),_0x2636d6('0x2074')),_0x2587d4(_0x4c7d70,0x3e8);}function _0x4c7d70(){const _0x5cc11d=a0_0xd29e;_0x391014['css'](_0x5cc11d('0x486'),_0x5cc11d('0x7ee')),_0x2587d4(_0x39a325,0x3e8);}_0x39a325();}],'replace':!![]};}function _0x409ec8(_0x50e562,_0x2721e7,_0x364cb9,_0x395ea5,_0x326438){const _0x2ff398=_0x4376d8,_0x5d7c6a=this;_0x5d7c6a[_0x2ff398('0x24d3')]=_0x2ff398('0x138'),_0x5d7c6a['sessions']=_0x395ea5,_0x5d7c6a['session']=_0x326438,_0x5d7c6a['closeDialog']=_0x32e0b6,_0x5d7c6a['addRecording']=_0x33123c,_0x5d7c6a['stop']=_0x33f778,_0x5d7c6a['start']=_0x38b42b;function _0xbf36a(){function _0x59d9ef(){const _0x230fdc=a0_0xd29e;return Math[_0x230fdc('0x211e')]((0x1+Math[_0x230fdc('0x13ce')]())*0x10000)['toString'](0x10)[_0x230fdc('0xa65')](0x1);}return _0x59d9ef()+_0x59d9ef()+'-'+_0x59d9ef()+'-'+_0x59d9ef()+'-'+_0x59d9ef()+'-'+_0x59d9ef()+_0x59d9ef()+_0x59d9ef();}function _0x38b42b(_0x181b68,_0x536791){const _0x3a16c4=_0x2ff398;console[_0x3a16c4('0x1d63')](_0x3a16c4('0x10df'));const _0x623f86=_0x2721e7[_0x3a16c4('0x113c')](),_0x59fa3a=_0x536791||_0x181b68[_0x3a16c4('0x6b3')][_0x3a16c4('0x737')](/^.*[\\/]/,''),_0x4716bb=_0x59fa3a[_0x3a16c4('0x2007')]('.')[0x0];return _0x364cb9[_0x3a16c4('0x1207')][_0x3a16c4('0x10df')]({'uniqueid':_0x5d7c6a[_0x3a16c4('0xd41')][_0x3a16c4('0x35b')],'filename':_0x4716bb,'format':_0x3a16c4('0x8f4')})[_0x3a16c4('0x1af5')][_0x3a16c4('0x17e7')](function(_0x451a16){const _0xc72732=_0x3a16c4;_0x181b68[_0xc72732('0x6b3')]=_0x4716bb+_0xc72732('0xc1c'),_0x181b68[_0xc72732('0x11f7')]=_0x451a16[_0xc72732('0x11f7')],_0x181b68[_0xc72732('0x11c5')]=_0xc72732('0x25a5'),_0x5d7c6a[_0xc72732('0xd41')]['monitor']=!![],_0x623f86['resolve'](_0x181b68);})['catch'](function(_0x433605){const _0x3fd1b3=_0x3a16c4;_0x623f86[_0x3fd1b3('0x1ad1')](_0x433605);}),_0x623f86[_0x3a16c4('0x1691')];}function _0x33f778(_0x5b45f5){const _0x5c6b80=_0x2ff398;return console[_0x5c6b80('0x1d63')](_0x5c6b80('0xcaa')),_0x364cb9[_0x5c6b80('0x1207')][_0x5c6b80('0xcaa')]({'uniqueid':_0x5d7c6a['session'][_0x5c6b80('0x35b')],'mixmonitorid':_0x5b45f5[_0x5c6b80('0x11f7')]})[_0x5c6b80('0x1af5')][_0x5c6b80('0x17e7')](function(){const _0x48b427=_0x5c6b80;_0x5b45f5[_0x48b427('0x11c5')]=_0x48b427('0x267a'),_0x5d7c6a[_0x48b427('0xd41')][_0x48b427('0x2279')]=_0x49cbdd()['includes'](_0x5d7c6a[_0x48b427('0xd41')][_0x48b427('0x1d72')],{'status':'rec'});})[_0x5c6b80('0x16df')](function(_0x1b5fa0){const _0x4dddca=_0x5c6b80;console[_0x4dddca('0x1db9')](_0x1b5fa0);});}function _0x33123c(){const _0x2fb5a9=_0x2ff398,_0x3a701e=_0x50e562[_0x2fb5a9('0x137c')]({'skipHide':!![]})[_0x2fb5a9('0x24d3')](_0x2fb5a9('0xd19'))[_0x2fb5a9('0x18c5')](_0x2fb5a9('0x1e83'))['placeholder'](_0x2fb5a9('0x17fa'))['ariaLabel'](_0x2fb5a9('0x17fa'))[_0x2fb5a9('0x25e5')](_0xbf36a())['ok'](_0x2fb5a9('0x16e3'))['cancel'](_0x2fb5a9('0x1b70'));_0x50e562[_0x2fb5a9('0x28e2')](_0x3a701e)[_0x2fb5a9('0x17e7')](function(_0x2682a4){return _0x38b42b({},_0x2682a4);})[_0x2fb5a9('0x17e7')](function(_0x3f1a16){const _0x4efd74=_0x2fb5a9;_0x5d7c6a[_0x4efd74('0xd41')][_0x4efd74('0x1d72')][_0x4efd74('0x269f')](_0x3f1a16);});}function _0x32e0b6(){const _0x4e1477=_0x2ff398;_0x50e562[_0x4e1477('0x212a')]();}}_0x58ad26[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x199d'),_0x4376d8('0x17d9'),_0x4376d8('0xd41'),_0x4376d8('0x866')];function _0x58ad26(_0x4a0f4e,_0x497122,_0x1a5659,_0x5e8ba3,_0x496873){const _0xc5b08d=_0x4376d8,_0x11927f=this,_0x136d09=window[_0xc5b08d('0xd01')];_0x11927f[_0xc5b08d('0x24d3')]=_0xc5b08d('0x945'),_0x11927f[_0xc5b08d('0x17d9')]=_0x1a5659,_0x11927f['session']=_0x5e8ba3,_0x11927f[_0xc5b08d('0x866')]=_0x496873,_0x11927f[_0xc5b08d('0x12f5')]=null;_0x1a5659[_0xc5b08d('0x1f73')]&&(_0x11927f[_0xc5b08d('0x8cf')]=_0x1a5659[0x0][_0xc5b08d('0x221e')]);_0x11927f[_0xc5b08d('0x136e')]=_0x302a86,_0x11927f[_0xc5b08d('0x194')]=_0x73d242;function _0x73d242(){const _0x37c45d=_0xc5b08d;let _0x279691,_0x3dc878;const _0xfe22d4=_0x49cbdd()['find'](_0x1a5659,function(_0x52b750){const _0x2fec61=a0_0xd29e;if(_0x52b750[_0x2fec61('0x221e')]===_0x11927f[_0x2fec61('0x8cf')])return _0x52b750;});_0xfe22d4[_0x37c45d('0x157c')]?(_0x279691=_0xfe22d4,_0x3dc878=_0x11927f[_0x37c45d('0xd41')]):(_0x279691=_0x11927f['session'],_0x3dc878=_0xfe22d4),_0x3dc878[_0x37c45d('0x8dd')](_0x279691[_0x37c45d('0x221e')],{'replaces':_0x279691,'eventHandlers':{'requestSucceeded':_0x244a24(_0x5e8ba3,_0x37c45d('0x120b'),_0x37c45d('0x1d51'),0xbb8,_0x11927f['isJabraEnabled']),'requestFailed':_0x244a24(_0x5e8ba3,_0x37c45d('0x1518'),_0x37c45d('0x1d51'),0xbb8,_0x11927f[_0x37c45d('0x866')])}});}function _0x244a24(_0x277c50,_0x2cd1f7,_0x3b0971,_0x408b47,_0x444466){const _0x3cb5e1=_0xc5b08d;return console['debug'](_0x3cb5e1('0x1671'),_0x277c50,_0x2cd1f7,_0x3b0971,_0x408b47),function(){const _0x537b94=_0x3cb5e1;_0x497122[_0x537b94('0x28e2')](_0x497122['simple']()['textContent'](_0x2cd1f7)['position'](_0x3b0971)[_0x537b94('0x1ed2')](_0x408b47)),_0x277c50[_0x537b94('0x1c00')](),_0x136d09&&_0x444466&&_0x136d09['onHook'](),_0x302a86();};}function _0x302a86(_0x569d52){const _0x3539ae=_0xc5b08d;_0x4a0f4e[_0x3539ae('0x212a')](_0x569d52);}}const _0x2651c9=_0x58ad26;_0x79bb9d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x2790'),'devices'];function _0x79bb9d(_0x3b255d,_0x2aa468,_0x10d821){const _0x4d1086=_0x4376d8,_0x4fea99=this;_0x49cbdd()['remove'](_0x10d821,function(_0x386bd9){const _0x36e2a8=a0_0xd29e;return _0x386bd9[_0x36e2a8('0xe5e')]==='audioinput'&&(_0x386bd9[_0x36e2a8('0x1ffc')]===_0x36e2a8('0x1543')||_0x386bd9[_0x36e2a8('0x1ffc')]===_0x36e2a8('0xb07'))||_0x386bd9[_0x36e2a8('0xe5e')]==='audiooutput'&&(_0x386bd9[_0x36e2a8('0x1ffc')]===_0x36e2a8('0x1543')||_0x386bd9[_0x36e2a8('0x1ffc')]===_0x36e2a8('0xb07'));}),_0x2aa468[_0x4d1086('0x1005')]=_0x68aae1(_0x10d821,'audiooutput',_0x4d1086('0x1005')),_0x2aa468[_0x4d1086('0x1df8')]=_0x68aae1(_0x10d821,_0x4d1086('0x1d81'),'speakerId'),_0x2aa468[_0x4d1086('0x135')]=_0x68aae1(_0x10d821,_0x4d1086('0x6a4'),_0x4d1086('0x135')),_0x2aa468[_0x4d1086('0x8fb')]=_0x2aa468[_0x4d1086('0x8fb')]||0.5,_0x2aa468[_0x4d1086('0x2726')]=_0x2aa468[_0x4d1086('0x2726')]||0.5,_0x2aa468[_0x4d1086('0x218f')]=_0x2aa468[_0x4d1086('0x218f')]||0x1,_0x2aa468[_0x4d1086('0x1cf8')]=_0x2aa468[_0x4d1086('0x1cf8')]||![],_0x2aa468[_0x4d1086('0x1642')]=_0x2aa468[_0x4d1086('0x1642')]||![],_0x2aa468[_0x4d1086('0x21ed')]=_0x2aa468[_0x4d1086('0x21ed')]||![],_0x4fea99[_0x4d1086('0x2790')]=angular['copy'](_0x2aa468),_0x4fea99[_0x4d1086('0xd0f')]=_0x10d821,_0x4fea99[_0x4d1086('0x4a4')]=_0x1663fa,_0x4fea99[_0x4d1086('0x136e')]=_0x3c6e58,_0x4fea99['isCompatibleBrowser']=_0x2a543d;function _0x2a543d(){const _0x4756a0=_0x4d1086;return _0x4fea99[_0x4756a0('0x2790')][_0x4756a0('0x1a28')][_0x4756a0('0x19b')]()==='chrome'||_0x4fea99['conf'][_0x4756a0('0x1a28')]['toLowerCase']()===_0x4756a0('0x19ee')||_0x4fea99['conf']['browserName'][_0x4756a0('0x19b')]()===_0x4756a0('0xde0');}function _0x68aae1(_0x18668c,_0xc9b682,_0x33c3b3){const _0x4c1e2d=_0x4d1086;let _0x1cb54c;if(!_0x2aa468[_0x33c3b3])_0x1cb54c=_0x49cbdd()['find'](_0x18668c,function(_0x5206c4){const _0x9dbfc9=a0_0xd29e;return _0x5206c4[_0x9dbfc9('0xe5e')]===_0xc9b682;}),_0x1cb54c&&(_0x2aa468[_0x33c3b3]=_0x1cb54c[_0x4c1e2d('0x1ffc')]);else{_0x1cb54c=_0x49cbdd()[_0x4c1e2d('0xe8e')](_0x18668c,function(_0x326c67){const _0x422491=_0x4c1e2d;return _0x326c67[_0x422491('0x1ffc')]===_0x2aa468[_0x33c3b3];});if(_0x1cb54c)return _0x1cb54c[_0x4c1e2d('0x1ffc')];const _0x3515ab=_0x49cbdd()[_0x4c1e2d('0x1f4c')](_0x18668c,function(_0x209b2){const _0x481559=_0x4c1e2d;return _0x209b2[_0x481559('0xe5e')]===_0xc9b682;});if(_0x3515ab>=0x0)return _0x18668c[_0x3515ab][_0x4c1e2d('0x1ffc')];}return _0x2aa468[_0x33c3b3]||null;}function _0x1663fa(){const _0xa9b3f0=_0x4d1086;_0x3b255d[_0xa9b3f0('0x212a')](_0x4fea99['conf']);}function _0x3c6e58(){const _0x28036a=_0x4d1086;_0x3b255d[_0x28036a('0x212a')]();}}const _0x525620=_0x79bb9d,_0x44b1bf=_0x4cf2bc['p']+'src/js/modules/core/directives/ms-quick-filter/ms-quick-filter.html/ms-quick-filter.html';_0x382af2['$inject']=['$filter',_0x4376d8('0x19be')],_0x3f4a49[_0x4376d8('0x1b9c')]=['dateRangeManager',_0x4376d8('0x3dc')];function _0x312ad3(){return{'restrict':'E','scope':{'query':'=','filters':'=','search':'&'},'controller':_0x3f4a49,'controllerAs':'vm','bindToController':!![],'templateUrl':_0x44b1bf};}function _0x3f4a49(_0x1230cf,_0x54a96d){const _0x257a19=_0x4376d8,_0x317632=this;_0x317632[_0x257a19('0x1921')]={},_0x317632[_0x257a19('0x1180')]={},_0x317632['localizationMap']=_0x1230cf[_0x257a19('0x1a1')],_0x317632['onMultiselectInit']=_0xd94066,_0x317632[_0x257a19('0x1fd2')]=_0x1c6f41,_0x317632[_0x257a19('0x92e')]=_0x18c681,_0x317632[_0x257a19('0x28d0')]=_0x5b6876,_0x317632[_0x257a19('0x1272')]=_0x271273,_0x317632[_0x257a19('0xf7')]=_0x3bbf73,_0x317632[_0x257a19('0x137f')]=_0x17f5f6;function _0xd94066(_0x3dcb63){_0x4e806c(_0x3dcb63);}function _0x1c6f41(_0x4166d5){const _0x1288b1=_0x257a19,_0x48d415=_0x4166d5[_0x1288b1('0xdb5')];_0x317632['query'][_0x48d415]?_0x317632['pickerModels'][_0x48d415]=_0x1230cf[_0x1288b1('0x249b')](_0x317632[_0x1288b1('0x826')][_0x48d415]):_0x317632[_0x1288b1('0x1921')][_0x48d415]={'dateStart':null};}function _0x18c681(_0x331d9f){const _0x1dfdaf=_0x257a19;_0x4e806c(_0x331d9f),_0x317632[_0x1dfdaf('0xfba')]();}function _0x5b6876(_0x38ca62){const _0xb573f7=_0x257a19,_0x5aefae=_0x38ca62['key'];_0x317632[_0xb573f7('0x1921')][_0x5aefae][_0xb573f7('0x24ce')]?_0x317632['query'][_0x5aefae]={'$gte':_0x107a13()(_0x317632[_0xb573f7('0x1921')][_0x5aefae]['dateStart'])[_0xb573f7('0x1376')](0x0,!![])['format'](),'$lte':_0x107a13()(_0x317632[_0xb573f7('0x1921')][_0x5aefae]['dateEnd'])['utcOffset'](0x0,!![])[_0xb573f7('0xd62')](0x17,_0xb573f7('0x130b'))[_0xb573f7('0xd62')](0x3b,'minutes')[_0xb573f7('0xd62')](0x3b,_0xb573f7('0x2415'))[_0xb573f7('0x1c0d')]()}:_0x317632[_0xb573f7('0x826')][_0x5aefae]=undefined,_0x317632[_0xb573f7('0xfba')]();}function _0x271273(_0x7facde){const _0x2939bf=_0x257a19,_0x6d524d=_0x7facde['key'];_0x317632['pickerModels'][_0x6d524d]={'dateStart':null},delete _0x317632['query'][_0x6d524d],_0x317632[_0x2939bf('0xfba')]();}function _0x17f5f6(_0x48a276){const _0x593944=_0x257a19,_0x27b908=_0x48a276['key'],_0x94202=_0x48a276['ngValue']||'id';_0x317632[_0x593944('0x826')][_0x27b908]=_0x49cbdd()[_0x593944('0x787')](_0x48a276[_0x593944('0x19')],_0x94202),_0x4e806c(_0x48a276),_0x317632[_0x593944('0xfba')]();}function _0x3bbf73(_0x285c36){const _0x247e06=_0x257a19,_0x1ab07b=_0x285c36['key'],_0x444815=_0x285c36['ngValue']||'id';_0x317632[_0x247e06('0x826')][_0x1ab07b]=_0x285c36[_0x247e06('0x22b2')]===![]?[_0x49cbdd()[_0x247e06('0xb9')](_0x285c36['options'])[_0x444815]]:[],_0x4e806c(_0x285c36),_0x317632['search']();}function _0x4e806c(_0x1831d3){const _0x2e9831=_0x257a19,_0x1138c3=_0x1831d3['key'],_0x17e4b2={'param':_0x317632['query'][_0x1138c3],'resources':_0x1831d3[_0x2e9831('0x19')],'placeholder':_0x1831d3[_0x2e9831('0x1ba5')],'ngValue':_0x1831d3[_0x2e9831('0x1f62')]};_0x54a96d['setPlaceholder'](_0x17e4b2)[_0x2e9831('0x17e7')](function(_0x1baed5){const _0x1ae0af=_0x2e9831;_0x317632[_0x1ae0af('0x1180')][_0x1138c3]=_0x1baed5;});}}function _0x382af2(_0x5e0b8e,_0x45b8d0){const _0x3ec96c={'localizationMap':_0x45b8d0,'setSelectedDate':_0x24471c};function _0x24471c(_0x2f7633){const _0x42c34a=a0_0xd29e,_0x1e5a76=new Date(_0x107a13()[_0x42c34a('0x1fc0')](_0x2f7633[_0x42c34a('0x711')])[_0x42c34a('0x1c0d')](_0x42c34a('0x373'))),_0x5ed560=new Date(_0x107a13()[_0x42c34a('0x1fc0')](_0x2f7633[_0x42c34a('0x1cb6')])['format'](_0x42c34a('0x373'))),_0x47ad2b={'dateStart':new Date(_0x1e5a76[_0x42c34a('0x226a')](),_0x1e5a76['getMonth'](),_0x1e5a76['getDate']()),'dateEnd':new Date(_0x5ed560['getFullYear'](),_0x5ed560[_0x42c34a('0x10')](),_0x5ed560[_0x42c34a('0x2745')]())};return _0x47ad2b[_0x42c34a('0x190d')]=_0x99a583(_0x47ad2b),_0x47ad2b;}function _0x99a583(_0x3b4833){const _0x3e1476=a0_0xd29e;if(_0x107a13()(_0x3b4833['dateStart'])[_0x3e1476('0x685')](_0x3b4833[_0x3e1476('0xaf7')])){if(_0x126cd0(_0x3b4833))return _0x3ec96c[_0x3e1476('0x1a1')]['Today'];else return _0x334637(_0x3b4833)?_0x3ec96c[_0x3e1476('0x1a1')]['Yesterday']:_0x5e0b8e(_0x3e1476('0xbd4'))(_0x3b4833[_0x3e1476('0x24ce')],_0x3e1476('0x3ab'));}else{if(_0x1453c0(_0x3b4833))return _0x3ec96c[_0x3e1476('0x1a1')][_0x3e1476('0x14c0')];else{if(_0x418b31(_0x3b4833))return _0x3ec96c[_0x3e1476('0x1a1')][_0x3e1476('0xcf7')];else{if(_0x347da9(_0x3b4833))return _0x3ec96c[_0x3e1476('0x1a1')][_0x3e1476('0xcf1')];else{if(_0x59c357(_0x3b4833))return _0x3ec96c['localizationMap'][_0x3e1476('0x2875')];else{if(_0x5dc4b2(_0x3b4833))return _0x3ec96c[_0x3e1476('0x1a1')]['This\x20Year'];else return _0x456f79(_0x3b4833)?_0x3ec96c['localizationMap'][_0x3e1476('0x285f')]:_0x5e0b8e('date')(_0x3b4833['dateStart'],'dd'+(_0x3b4833[_0x3e1476('0x24ce')][_0x3e1476('0x10')]()!==_0x3b4833[_0x3e1476('0xaf7')]['getMonth']()||_0x3b4833[_0x3e1476('0x24ce')][_0x3e1476('0x226a')]()!==_0x3b4833['dateEnd'][_0x3e1476('0x226a')]()?_0x3e1476('0x5a2'):'')+(_0x3b4833[_0x3e1476('0x24ce')][_0x3e1476('0x226a')]()!==_0x3b4833[_0x3e1476('0xaf7')]['getFullYear']()?'\x20yyyy':''))+'\x20-\x20'+_0x5e0b8e(_0x3e1476('0xbd4'))(_0x3b4833[_0x3e1476('0xaf7')],_0x3e1476('0x3ab'));}}}}}}function _0x126cd0(_0x18bbf4){const _0x3d003f=a0_0xd29e;return _0x107a13()()[_0x3d003f('0x161c')](_0x3d003f('0x26d6'))['isSame'](_0x18bbf4[_0x3d003f('0x24ce')]);}function _0x334637(_0x1a8a1a){const _0x2cd99a=a0_0xd29e;return _0x107a13()()[_0x2cd99a('0x133d')](0x1,_0x2cd99a('0x1e7e'))[_0x2cd99a('0x161c')]('day')[_0x2cd99a('0x685')](_0x1a8a1a['dateStart']);}function _0x1453c0(_0x2c69d1){const _0x2017cf=a0_0xd29e;return _0x107a13()()['startOf'](_0x2017cf('0x142'))[_0x2017cf('0x685')](_0x2c69d1['dateStart'],_0x2017cf('0x26d6'))&&_0x107a13()()[_0x2017cf('0x200e')](_0x2017cf('0x142'))['isSame'](_0x2c69d1['dateEnd'],_0x2017cf('0x26d6'));}function _0x418b31(_0x5458fd){const _0x170997=a0_0xd29e;return _0x107a13()()[_0x170997('0x133d')](0x1,_0x170997('0x2167'))[_0x170997('0x161c')](_0x170997('0x142'))['isSame'](_0x5458fd[_0x170997('0x24ce')],_0x170997('0x26d6'))&&_0x107a13()()[_0x170997('0x133d')](0x1,_0x170997('0x2167'))[_0x170997('0x200e')](_0x170997('0x142'))[_0x170997('0x685')](_0x5458fd[_0x170997('0xaf7')],_0x170997('0x26d6'));}function _0x347da9(_0x5df65c){const _0x5bcd22=a0_0xd29e;return _0x107a13()()['startOf'](_0x5bcd22('0x7c7'))[_0x5bcd22('0x685')](_0x5df65c[_0x5bcd22('0x24ce')],'day')&&_0x107a13()()[_0x5bcd22('0x200e')](_0x5bcd22('0x7c7'))[_0x5bcd22('0x685')](_0x5df65c[_0x5bcd22('0xaf7')],_0x5bcd22('0x26d6'));}function _0x59c357(_0x495835){const _0x242110=a0_0xd29e;return _0x107a13()()[_0x242110('0x133d')](0x1,_0x242110('0x1fc6'))[_0x242110('0x161c')](_0x242110('0x7c7'))[_0x242110('0x685')](_0x495835[_0x242110('0x24ce')],'day')&&_0x107a13()()[_0x242110('0x133d')](0x1,_0x242110('0x1fc6'))[_0x242110('0x200e')](_0x242110('0x7c7'))[_0x242110('0x685')](_0x495835[_0x242110('0xaf7')],_0x242110('0x26d6'));}function _0x5dc4b2(_0x1d1f8e){const _0x116d99=a0_0xd29e;return _0x107a13()()[_0x116d99('0x161c')](_0x116d99('0x2216'))[_0x116d99('0x685')](_0x1d1f8e[_0x116d99('0x24ce')],_0x116d99('0x26d6'))&&_0x107a13()()['endOf']('year')[_0x116d99('0x685')](_0x1d1f8e[_0x116d99('0xaf7')],_0x116d99('0x26d6'));}function _0x456f79(_0x4cd6c4){const _0x29e6af=a0_0xd29e;return _0x107a13()()[_0x29e6af('0x133d')](0x1,_0x29e6af('0x144f'))[_0x29e6af('0x161c')](_0x29e6af('0x2216'))[_0x29e6af('0x685')](_0x4cd6c4['dateStart'],_0x29e6af('0x26d6'))&&_0x107a13()()[_0x29e6af('0x133d')](0x1,_0x29e6af('0x144f'))[_0x29e6af('0x200e')](_0x29e6af('0x2216'))[_0x29e6af('0x685')](_0x4cd6c4[_0x29e6af('0xaf7')],'day');}return _0x3ec96c;}function _0x5d9c9b(){return{'restrict':'A','scope':{'msRandomClass':'='},'link':function(_0x1186f6,_0x23da91){const _0x37a4e1=a0_0xd29e,_0x167bfc=_0x1186f6[_0x37a4e1('0x26b4')][Math['floor'](Math[_0x37a4e1('0x13ce')]()*_0x1186f6[_0x37a4e1('0x26b4')][_0x37a4e1('0x1f73')])];_0x23da91['addClass'](_0x167bfc);}};}const _0x190bfd=_0x5d9c9b;_0x23e9f5['$inject']=[_0x4376d8('0x212e')];function _0x23e9f5(_0x196e48){return{'restrict':'E','scope':{'id':'=','model':'=','download':'='},'replace':!![],'link':function(_0x1da29d,_0x456511){const _0x530d56=a0_0xd29e;let _0x41920c=![];const _0x1c7cbc=document[_0x530d56('0x68d')](_0x530d56('0x1c86'));!_0x1da29d[_0x530d56('0x1244')]&&_0x1c7cbc[_0x530d56('0x224')](_0x530d56('0x175a'),'nodownload'),_0x1c7cbc['setAttribute'](_0x530d56('0x1106'),_0x530d56('0x7ee')),_0x1c7cbc['setAttribute']('controls',''),_0x1c7cbc['setAttribute'](_0x530d56('0x14fa'),_0x530d56('0xab')),_0x1c7cbc['setAttribute'](_0x530d56('0x1e55'),'\x20'),_0x1c7cbc['onplay']=function(_0x52c13d){const _0x4d83d9=_0x530d56;!_0x41920c&&(_0x41920c=!![],_0x52c13d[_0x4d83d9('0xdc5')](),_0x196e48[_0x1da29d['model']||'voiceRecording'][_0x4d83d9('0x1244')]({'id':_0x1da29d['id']})['$promise'][_0x4d83d9('0x17e7')](function(_0x375f9d){const _0x42c1d9=_0x4d83d9,_0x39c509=[_0x375f9d['buffer']],_0xe51c98=new Blob(_0x39c509,{'type':_0x375f9d[_0x42c1d9('0x412')]});_0x1c7cbc['setAttribute'](_0x42c1d9('0x412'),_0x375f9d[_0x42c1d9('0x412')]),_0x1c7cbc[_0x42c1d9('0x224')](_0x42c1d9('0x1e55'),URL['createObjectURL'](_0xe51c98)),_0x1c7cbc[_0x42c1d9('0x1a7c')]();})[_0x4d83d9('0x16df')](function(_0x5f0a27){const _0x3a9396=_0x4d83d9;console[_0x3a9396('0x1db9')](_0x5f0a27);}));},_0x456511[_0x530d56('0x25a')](_0x1c7cbc);}};}const _0x102d0f=_0x23e9f5;function _0x329bf3(){return{'restrict':'A','link':function(_0x506c5e,_0x2faebb){const _0x4d8de8=a0_0xd29e,_0x22faf4=angular[_0x4d8de8('0x1ce1')](_0x4d8de8('0x24a2'));_0x2faebb[_0x4d8de8('0x1d9d')](_0x22faf4),_0x22faf4[_0x4d8de8('0x25a')](_0x2faebb);}};}const _0x53dcf4=_0x329bf3;var _0x1f3bee=_0x4cf2bc(0x1703),_0x5ad8ea=_0x4cf2bc['n'](_0x1f3bee);_0x1c607d['$inject']=['$timeout','msScrollConfig','msUtils',_0x4376d8('0xdd2')];function _0x25a451(){const _0x53d5d3=_0x4376d8;let _0x568056={'wheelSpeed':0x1,'wheelPropagation':![],'swipePropagation':!![],'minScrollbarLength':null,'maxScrollbarLength':null,'useBothWheelAxes':![],'useKeyboard':!![],'suppressScrollX':![],'suppressScrollY':![],'scrollXMarginOffset':0x0,'scrollYMarginOffset':0x0,'stopPropagationOnClick':!![]};this[_0x53d5d3('0x50d')]=function(){function _0x42f58c(){return _0x568056;}const _0x516685={'getConfig':_0x42f58c};return _0x516685;};function _0x2b5949(_0x131825){_0x568056=angular['extend']({},_0x568056,_0x131825);}this[_0x53d5d3('0x1980')]=_0x2b5949;}function _0x1c607d(_0x554b86,_0x18f961,_0x16ef10,_0x1cdf32){return{'restrict':'AE','compile':function(_0x40c06a){const _0x4c4971=a0_0xd29e;if(_0x1cdf32[_0x4c4971('0x269')]('disableCustomScrollbars'))return;if(_0x1cdf32[_0x4c4971('0x269')](_0x4c4971('0x1d7'))&&_0x16ef10[_0x4c4971('0x539')]())return;return _0x40c06a[_0x4c4971('0x16e5')](_0x4c4971('0x27d6')),function _0x548477(_0x253724,_0x3df3c1,_0x925750){const _0x157a72=_0x4c4971;let _0x48d49d={};_0x925750['msScroll']&&(_0x48d49d=_0x253724['$eval'](_0x925750[_0x157a72('0x1585')]));_0x48d49d=angular['extend']({},_0x18f961[_0x157a72('0x269')](),_0x48d49d),_0x5ad8ea()['initialize'](_0x3df3c1[0x0],_0x48d49d);function _0x2bb52e(){_0x5ad8ea()['update'](_0x3df3c1[0x0]);}_0x3df3c1['on'](_0x157a72('0xdc2'),_0x2bb52e),_0x253724[_0x157a72('0x620')](function(){const _0x3e7625=_0x157a72;return _0x3df3c1[_0x3e7625('0x1223')](_0x3e7625('0x16c3'));},function(_0x430754,_0x3d8425){const _0x130093=_0x157a72;if(angular[_0x130093('0x1a77')](_0x430754)||angular[_0x130093('0x15d2')](_0x430754,_0x3d8425))return;_0x2bb52e();}),_0x253724[_0x157a72('0x620')](function(){const _0x23eecc=_0x157a72;return _0x3df3c1[_0x23eecc('0x1223')](_0x23eecc('0xfef'));},function(_0x1c1fa0,_0x22cc27){const _0x2c12d3=_0x157a72;if(angular[_0x2c12d3('0x1a77')](_0x1c1fa0)||angular['equals'](_0x1c1fa0,_0x22cc27))return;_0x2bb52e();}),_0x253724[_0x157a72('0x207c')](_0x157a72('0x2b4'),function(){const _0x521b6c=_0x157a72;_0x3df3c1['off'](_0x521b6c('0xdc2')),_0x5ad8ea()['destroy'](_0x3df3c1[0x0]);});};}};}const _0xd0d964=_0x4cf2bc['p']+_0x4376d8('0x2577');_0x35d188[_0x4376d8('0x1b9c')]=['$document'],_0x56a337['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x1dc'),'$timeout'];function _0x56a337(_0x554b8a,_0x2ac76a,_0x4e57d6){const _0x23e328=_0x4376d8,_0x44a297=this;_0x44a297[_0x23e328('0x18c1')]=!![],_0x44a297['query']=undefined,_0x44a297[_0x23e328('0xe6e')]={'debounce':_0x44a297[_0x23e328('0x8b9')]||0x0};const _0x2ec044=_0x44a297[_0x23e328('0xbc')]&&_0x44a297[_0x23e328('0xbc')]==_0x23e328('0xe34')?!![]:![];_0x44a297[_0x23e328('0xa24')]=![],_0x44a297[_0x23e328('0x2a')]=null,_0x44a297['selectedResultIndex']=0x0,_0x44a297[_0x23e328('0xa4b')]=![],_0x44a297['onInit']=_0x4a6b1b,_0x44a297[_0x23e328('0x1fe3')]=_0x2e1324,_0x44a297[_0x23e328('0xa2a')]=_0x1b72c0,_0x44a297['collapse']=_0x57a7ba,_0x44a297['blurCollapse']=_0x21b2ab,_0x44a297[_0x23e328('0x2795')]=_0x23e819,_0x44a297[_0x23e328('0x2539')]=_0x56cb56,_0x44a297[_0x23e328('0x154a')]=_0x214c5d,_0x44a297['temporarilyIgnoreMouseEvents']=_0x1b38e3,_0x44a297[_0x23e328('0x185a')]=_0x3a5a53,_0x44a297[_0x23e328('0x18dc')]=_0x4e39cf;function _0x4a6b1b(){const _0x312e04=_0x23e328;_0x554b8a[_0x312e04('0x620')]('vm.query',function(_0x184c46,_0x225bf5){const _0x405119=_0x312e04;if(angular['isUndefined'](_0x184c46))return;if(angular[_0x405119('0x15d2')](_0x184c46,_0x225bf5))return;if(_0x44a297[_0x405119('0x18c1')]){if(_0x184c46)_0x554b8a[_0x405119('0xa2a')]();else return;}const _0x2e6430=_0x554b8a[_0x405119('0x178c')]['$eval'](_0x44a297[_0x405119('0x7a0')],{'query':_0x184c46}),_0x382090=angular[_0x405119('0x25f3')](_0x2e6430),_0x3aed16=_0x2e6430&&!!_0x2e6430[_0x405119('0x17e7')];_0x382090&&_0x44a297[_0x405119('0x1fe3')](_0x2e6430),_0x3aed16&&(_0x44a297[_0x405119('0xa24')]=!![],_0x2e6430[_0x405119('0x17e7')](function(_0x4c93c){const _0x453abd=_0x405119;_0x44a297[_0x453abd('0x1fe3')](_0x4c93c);},function(){const _0x467af4=_0x405119;_0x44a297[_0x467af4('0x1fe3')]([]);})['finally'](function(){const _0x1b9321=_0x405119;_0x44a297[_0x1b9321('0xa24')]=![];}));});}function _0x2e1324(_0x260c09){const _0x1b6efc=_0x23e328;if(_0x44a297['collapsed'])return;const _0x532d42=angular[_0x1b6efc('0x25f3')](_0x260c09),_0x88d630=_0x260c09===null;if(!_0x532d42&&!_0x88d630)return;_0x44a297['selectedResultIndex']=0x0,_0x44a297[_0x1b6efc('0x2a')]=_0x260c09;}function _0x1b72c0(){const _0x59dc1d=_0x23e328;_0x44a297['collapsed']=![],_0x554b8a[_0x59dc1d('0xa2a')](),_0x44a297[_0x59dc1d('0xeb')]&&angular[_0x59dc1d('0x2272')](_0x44a297[_0x59dc1d('0xeb')])&&_0x44a297['onExpand']();}function _0x57a7ba(){const _0x56c091=_0x23e328;_0x44a297[_0x56c091('0x826')]='',_0x44a297[_0x56c091('0x1fe3')](null),_0x44a297[_0x56c091('0x18c1')]=!![],_0x554b8a[_0x56c091('0x22d6')](),_0x44a297[_0x56c091('0x14b')]&&angular[_0x56c091('0x2272')](_0x44a297[_0x56c091('0x14b')])&&_0x44a297[_0x56c091('0x14b')]();}function _0x21b2ab(){const _0x1e562c=_0x23e328;if(!_0x2ec044)return;_0x44a297[_0x1e562c('0x22d6')]();}function _0x23e819(_0x44b579){const _0xcefefe=_0x23e328;_0x44b579[_0xcefefe('0xdc5')]();}function _0x56cb56(_0x17ed27){const _0x44ef6d=_0x23e328,_0x58ac6d=_0x17ed27[_0x44ef6d('0x276f')],_0x450dcd=[0x1b,0x26,0x28];_0x450dcd[_0x44ef6d('0x2567')](_0x58ac6d)>-0x1&&_0x17ed27[_0x44ef6d('0xdc5')]();switch(_0x58ac6d){case 0xd:if(!_0x44a297[_0x44ef6d('0x2a')])return;_0x44a297['handleResultClick'](_0x44a297[_0x44ef6d('0x2a')][_0x44a297[_0x44ef6d('0xf12')]]);break;case 0x1b:_0x44a297[_0x44ef6d('0x22d6')]();break;case 0x26:_0x44a297[_0x44ef6d('0xf12')]-0x1>=0x0&&(_0x44a297['selectedResultIndex']--,_0x44a297[_0x44ef6d('0x18dc')]());break;case 0x28:if(!_0x44a297[_0x44ef6d('0x2a')])return;_0x44a297[_0x44ef6d('0xf12')]+0x1<_0x44a297[_0x44ef6d('0x2a')][_0x44ef6d('0x1f73')]&&(_0x44a297[_0x44ef6d('0xf12')]++,_0x44a297[_0x44ef6d('0x18dc')]());break;default:break;}}function _0x214c5d(_0x32129d){if(_0x44a297['ignoreMouseEvents'])return;_0x44a297['selectedResultIndex']=_0x32129d;}function _0x1b38e3(){const _0x2c2b65=_0x23e328;_0x44a297[_0x2c2b65('0xa4b')]=!![],_0x4e57d6[_0x2c2b65('0x1d47')](_0x44a297['mouseEventIgnoreTimeout']),_0x44a297[_0x2c2b65('0x1c1f')]=_0x4e57d6(function(){const _0x531e7a=_0x2c2b65;_0x44a297[_0x531e7a('0xa4b')]=![];},0xfa);}function _0x3a5a53(_0x2a1c86){const _0x2f1c96=_0x23e328;_0x44a297[_0x2f1c96('0x33')]&&_0x44a297[_0x2f1c96('0x33')]({'item':_0x2a1c86}),_0x44a297[_0x2f1c96('0x22d6')]();}function _0x4e39cf(){const _0x338368=_0x23e328,_0x142a67=_0x2ac76a[_0x338368('0xe8e')](_0x338368('0xa28')),_0x6f4d7d=angular['element'](_0x142a67['find']('.result')[_0x44a297[_0x338368('0xf12')]]);if(_0x142a67&&_0x6f4d7d){const _0x5caf7e=_0x6f4d7d[_0x338368('0x707')]()[_0x338368('0x59d')]-0x8,_0xc9c573=_0x6f4d7d['position']()['top']+_0x6f4d7d[_0x338368('0xfc0')]()+0x8;_0x44a297[_0x338368('0x239d')](),_0x142a67['scrollTop']()>_0x5caf7e&&_0x142a67[_0x338368('0x1df4')](_0x5caf7e),_0xc9c573>_0x142a67[_0x338368('0x149')]()+_0x142a67[_0x338368('0x1df4')]()&&_0x142a67[_0x338368('0x1df4')](_0xc9c573-_0x142a67[_0x338368('0x149')]());}}}function _0x35d188(_0x1a1aa4){const _0x3bef00=_0x4376d8;return{'restrict':'E','scope':{},'require':_0x3bef00('0x23cc'),'controller':_0x3bef00('0x102f'),'bindToController':{'query':'=?','debounce':'=?','direction':'@','iconColor':'@','onSearch':'@','onResultClick':'&?','onExpand':'&?','onCollapse':'&?','collapseOnBlur':'@'},'templateUrl':_0xd0d964,'compile':function(_0x325a28){const _0x4fc397=_0x3bef00;return _0x325a28[_0x4fc397('0x16e5')](_0x4fc397('0x23a9')),function _0x17e25c(_0x433d5f,_0x295120){const _0x210625=_0x4fc397,_0x2e6125=_0x1a1aa4[_0x210625('0xe8e')](_0x210625('0x13aa'));function _0x2de9c9(){const _0x556db2=_0x210625;_0x295120[_0x556db2('0x16e5')](_0x556db2('0x1812'));if(_0x433d5f['vm']['direction']===_0x556db2('0x1637')){_0x295120['addClass'](_0x556db2('0x1637'));const _0x2a6b64=_0x295120[_0x556db2('0x79b')](_0x556db2('0x8c5'));if(_0x2a6b64)_0x2a6b64[_0x556db2('0x16e5')]('h-128');}_0x2e6125[_0x556db2('0x16e5')](_0x556db2('0xe61'));}function _0x39896d(){const _0x5f31bc=_0x210625;_0x295120[_0x5f31bc('0x1e56')](_0x5f31bc('0x1812'));if(_0x433d5f['vm'][_0x5f31bc('0x733')]===_0x5f31bc('0x1637')){_0x295120['removeClass'](_0x5f31bc('0x1637'));const _0xde0ee2=_0x295120[_0x5f31bc('0x79b')](_0x5f31bc('0x8c5'));if(_0xde0ee2)_0xde0ee2[_0x5f31bc('0x1e56')](_0x5f31bc('0x922'));}_0x2e6125['removeClass'](_0x5f31bc('0xe61'));}_0x433d5f[_0x210625('0x22d6')]=_0x39896d,_0x433d5f['expand']=_0x2de9c9;};}};}const _0x2b0e3d=_0x4cf2bc['p']+_0x4376d8('0x1a57');_0x4f28db[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x28db'),_0x4376d8('0x26ca'),'$timeout','$q',_0x4376d8('0xa61')];function _0x4f28db(_0x544004,_0x5e76c7,_0x4af15c,_0x445c8f,_0x352a83,_0x36641a){const _0x48ce97=_0x4376d8,_0x2b353d=this;_0x2b353d[_0x48ce97('0x826')]='',_0x2b353d[_0x48ce97('0xe6e')]={'debounce':0x12c},_0x2b353d[_0x48ce97('0xa24')]=![],_0x2b353d[_0x48ce97('0xf12')]=0x0,_0x2b353d[_0x48ce97('0xa4b')]=![],_0x2b353d[_0x48ce97('0x2ea')]=![],_0x2b353d['results']=null,_0x2b353d['shortcuts']=[],_0x2b353d[_0x48ce97('0x2389')]={'ghostClass':'ghost','forceFallback':!![],'fallbackClass':'dragging','onSort':function(){const _0x531c35=_0x48ce97;_0x2b353d[_0x531c35('0x814')]();}};function _0x513b47(){const _0x2a8436=_0x48ce97;_0x2b353d[_0x2a8436('0x84d')]()[_0x2a8436('0x17e7')](function(_0x3ab7d3){const _0x5da43c=_0x2a8436;_0x2b353d[_0x5da43c('0xcd6')]=_0x3ab7d3,_0x2b353d[_0x5da43c('0xcd6')][_0x5da43c('0x1f73')]>0x0&&(_0x2b353d[_0x5da43c('0x2a')]=_0x3ab7d3);}),_0x544004[_0x2a8436('0x620')](_0x2a8436('0x190b'),function(_0x4e16a9,_0x29bdeb){const _0x3738da=_0x2a8436;if(angular[_0x3738da('0x1a77')](_0x4e16a9))return;if(angular['equals'](_0x4e16a9,_0x29bdeb))return;_0x2b353d['resultsLoading']=!![],_0x2b353d[_0x3738da('0x1fe3')]()[_0x3738da('0x17e7')](function(_0x54c42e){_0x2b353d['results']=_0x54c42e;},function(){const _0x4fc1e9=_0x3738da;_0x2b353d[_0x4fc1e9('0x2a')]=[];})[_0x3738da('0x74e')](function(){const _0x540000=_0x3738da;_0x2b353d[_0x540000('0xa24')]=![];});});}function _0x328948(){const _0x33504f=_0x48ce97;let _0x188bfd=[];const _0x4bc10f=_0x36641a[_0x33504f('0x151e')](),_0x3a38d1=_0x352a83['defer']();for(let _0x11dc85=0x0;_0x11dc85<_0x4bc10f[_0x33504f('0x1f73')];_0x11dc85++){_0x4bc10f[_0x11dc85][_0x33504f('0x2769')]&&_0x188bfd['push'](_0x4bc10f[_0x11dc85]);}if(_0x2b353d['query']){_0x188bfd=_0x188bfd[_0x33504f('0x2483')](function(_0x10d902){const _0x1f8d9b=_0x33504f;if(_0x10d902[_0x1f8d9b('0x24d3')][_0x1f8d9b('0x19b')]()[_0x1f8d9b('0x24b0')](_0x2b353d['query'][_0x1f8d9b('0x19b')]()))return!![];});for(let _0xd2763e=0x0;_0xd2763e<_0x188bfd[_0x33504f('0x1f73')];_0xd2763e++){_0x188bfd[_0xd2763e]['hasShortcut']=![];for(let _0x2a6d9a=0x0;_0x2a6d9a<_0x2b353d['shortcuts']['length'];_0x2a6d9a++){if(_0x2b353d[_0x33504f('0xcd6')][_0x2a6d9a][_0x33504f('0x786')]===_0x188bfd[_0xd2763e][_0x33504f('0x786')]){_0x188bfd[_0xd2763e][_0x33504f('0x1fb3')]=!![];break;}}}}else _0x2b353d[_0x33504f('0xcd6')][_0x33504f('0x1f73')]>0x0&&(_0x188bfd=_0x2b353d[_0x33504f('0xcd6')]);return _0x2b353d[_0x33504f('0xf12')]=0x0,_0x445c8f(function(){const _0x575c2a=_0x33504f;_0x3a38d1[_0x575c2a('0x898')](_0x188bfd);},0xfa),_0x3a38d1[_0x33504f('0x1691')];}function _0x159e1c(){const _0x4eac42=_0x48ce97,_0x512c12=_0x352a83[_0x4eac42('0x113c')]();let _0x488f9f=angular['fromJson'](_0x5e76c7[_0x4eac42('0x1c53')](_0x4eac42('0x1199')));return angular[_0x4eac42('0x1a77')](_0x488f9f)&&(_0x488f9f=[{'title':_0x4eac42('0x2157'),'icon':_0x4eac42('0x14dd'),'state':_0x4eac42('0x7a'),'weight':0x5,'children':[],'uisref':'app.staff.agents','hasShortcut':!![]},{'title':_0x4eac42('0x1d8'),'icon':_0x4eac42('0xb06'),'state':_0x4eac42('0x2159'),'weight':0xa,'children':[],'uisref':_0x4eac42('0x2159'),'hasShortcut':!![]}],_0x5e76c7['put']('motion.shortcuts',angular[_0x4eac42('0x1d04')](_0x488f9f))),_0x512c12[_0x4eac42('0x898')](_0x488f9f),_0x512c12[_0x4eac42('0x1691')];}function _0x195404(){const _0x1825fc=_0x48ce97,_0x6ec7b5=_0x352a83['defer']();return _0x5e76c7[_0x1825fc('0x2d8')](_0x1825fc('0x1199'),angular['toJson'](_0x2b353d[_0x1825fc('0xcd6')])),_0x445c8f(function(){const _0x33804f=_0x1825fc;_0x6ec7b5[_0x33804f('0x898')]({'success':!![]});},0xfa),_0x6ec7b5[_0x1825fc('0x1691')];}function _0x60e1c8(_0x27f9f7){const _0x448803=_0x48ce97;_0x27f9f7[_0x448803('0x1fb3')]=!![],_0x2b353d['shortcuts'][_0x448803('0x269f')](_0x27f9f7),_0x2b353d[_0x448803('0x814')]();}function _0x53283e(_0x5bffe3){const _0x2c72a4=_0x48ce97;_0x5bffe3['hasShortcut']=![];for(let _0x1d9921=0x0;_0x1d9921<_0x2b353d[_0x2c72a4('0xcd6')][_0x2c72a4('0x1f73')];_0x1d9921++){_0x2b353d[_0x2c72a4('0xcd6')][_0x1d9921][_0x2c72a4('0x786')]===_0x5bffe3[_0x2c72a4('0x786')]&&(_0x2b353d['shortcuts'][_0x2c72a4('0x2335')](_0x1d9921,0x1),!_0x2b353d[_0x2c72a4('0x826')]&&(_0x2b353d[_0x2c72a4('0xcd6')][_0x2c72a4('0x1f73')]===0x0?_0x2b353d[_0x2c72a4('0x2a')]=null:_0x1d9921>=_0x2b353d['shortcuts'][_0x2c72a4('0x1f73')]&&(_0x2b353d[_0x2c72a4('0xf12')]=_0x2b353d[_0x2c72a4('0xcd6')][_0x2c72a4('0x1f73')]-0x1)));}_0x2b353d[_0x2c72a4('0x814')]();}function _0x2028a1(_0x3ae2e5){const _0x1d7b9a=_0x48ce97;_0x3ae2e5[_0x1d7b9a('0x1fb3')]?_0x2b353d[_0x1d7b9a('0x12c7')](_0x3ae2e5):_0x2b353d[_0x1d7b9a('0x414')](_0x3ae2e5);}function _0x89dfab(_0x1f686a){const _0x2ad50e=_0x48ce97;_0x1f686a[_0x2ad50e('0xdc5')]();}function _0x5b5593(_0xe1ce13){const _0x4acca6=_0x48ce97,_0x5894ce=_0xe1ce13[_0x4acca6('0x276f')],_0x2e62ae=[0x26,0x28];_0x2e62ae[_0x4acca6('0x2567')](_0x5894ce)>-0x1&&_0xe1ce13[_0x4acca6('0xdc5')]();switch(_0x5894ce){case 0xd:_0x2b353d['handleResultClick'](_0x2b353d[_0x4acca6('0x2a')][_0x2b353d[_0x4acca6('0xf12')]]);break;case 0x26:_0x2b353d[_0x4acca6('0xf12')]-0x1>=0x0&&(_0x2b353d['selectedResultIndex']--,_0x2b353d[_0x4acca6('0x18dc')]());break;case 0x28:_0x2b353d[_0x4acca6('0xf12')]+0x1<_0x2b353d[_0x4acca6('0x2a')]['length']&&(_0x2b353d[_0x4acca6('0xf12')]++,_0x2b353d[_0x4acca6('0x18dc')]());break;default:break;}}function _0x15c4aa(_0x745e8b){const _0x505087=_0x48ce97;if(_0x2b353d[_0x505087('0xa4b')])return;_0x2b353d[_0x505087('0xf12')]=_0x745e8b;}function _0x47f410(){const _0x4c5886=_0x48ce97;_0x2b353d[_0x4c5886('0xa4b')]=!![],_0x445c8f[_0x4c5886('0x1d47')](_0x2b353d['mouseEventIgnoreTimeout']),_0x2b353d[_0x4c5886('0x1c1f')]=_0x445c8f(function(){const _0x18c5c0=_0x4c5886;_0x2b353d[_0x18c5c0('0xa4b')]=![];},0xfa);}function _0x2e0115(){const _0x4508de=_0x48ce97,_0x159757=_0x4af15c[_0x4508de('0xe8e')]('#ms-shortcut-add-menu')[_0x4508de('0xe8e')](_0x4508de('0x903')),_0x5aa16f=angular[_0x4508de('0x1ce1')](_0x159757[_0x4508de('0xe8e')](_0x4508de('0x545'))[_0x2b353d[_0x4508de('0xf12')]]);if(_0x159757&&_0x5aa16f){const _0x46f037=_0x5aa16f[_0x4508de('0x707')]()[_0x4508de('0x59d')]-0x8,_0x216bfd=_0x5aa16f['position']()[_0x4508de('0x59d')]+_0x5aa16f[_0x4508de('0xfc0')]()+0x8;_0x2b353d[_0x4508de('0x239d')](),_0x159757[_0x4508de('0x1df4')]()>_0x46f037&&_0x159757['scrollTop'](_0x46f037),_0x216bfd>_0x159757[_0x4508de('0x149')]()+_0x159757[_0x4508de('0x1df4')]()&&_0x159757['scrollTop'](_0x216bfd-_0x159757['height']());}}function _0x350bba(){const _0x23646e=_0x48ce97;_0x2b353d[_0x23646e('0x2ea')]=!_0x2b353d[_0x23646e('0x2ea')];}_0x2b353d['populateResults']=_0x328948,_0x2b353d[_0x48ce97('0x84d')]=_0x159e1c,_0x2b353d[_0x48ce97('0x814')]=_0x195404,_0x2b353d[_0x48ce97('0x414')]=_0x60e1c8,_0x2b353d[_0x48ce97('0x12c7')]=_0x53283e,_0x2b353d['handleResultClick']=_0x2028a1,_0x2b353d[_0x48ce97('0x2795')]=_0x89dfab,_0x2b353d['handleKeydown']=_0x5b5593,_0x2b353d['handleMouseenter']=_0x15c4aa,_0x2b353d[_0x48ce97('0x239d')]=_0x47f410,_0x2b353d[_0x48ce97('0x18dc')]=_0x2e0115,_0x2b353d[_0x48ce97('0x1c25')]=_0x350bba,_0x513b47();}function _0x3d4e27(){const _0x3311b6=_0x4376d8;return{'restrict':'E','scope':{},'require':_0x3311b6('0x215c'),'controller':_0x3311b6('0x16f2'),'bindToController':{},'templateUrl':_0x2b0e3d,'compile':function(_0x420412){const _0x4ac6c8=_0x3311b6;return _0x420412[_0x4ac6c8('0x16e5')]('ms-shortcuts'),function _0x97af7d(){};}};}function _0xa37468(){const _0x50e021=_0x4376d8;return{'restrict':'A','require':_0x50e021('0x1b2f'),'link':function(_0x4e3453,_0x1c1201,_0x5e5845,_0x85a523){const _0x23e504=_0x50e021;_0x4e3453[_0x23e504('0x620')](function(){const _0x1b45ce=_0x23e504;return _0x85a523[_0x1b45ce('0x29f')]()&&!_0x85a523[_0x1b45ce('0x4e3')]();},function(_0x2463a1){const _0x3a185d=_0x23e504;if(angular[_0x3a185d('0x1a77')](_0x2463a1))return;_0x1c1201[_0x3a185d('0x14e')]()[_0x3a185d('0x328')]('full-height',_0x2463a1),angular[_0x3a185d('0x1ce1')](_0x3a185d('0x19b6'))[_0x3a185d('0x328')]('sidenav-open',_0x2463a1);});}};}const _0x4ead9c=_0xa37468;_0x18d3e6[_0x4376d8('0x1b9c')]=[_0x4376d8('0x19f2')];function _0x18d3e6(_0x17fe9c){return{'restrict':'E','link':function(_0x42c42a,_0x4dffd0){const _0x238668=a0_0xd29e,_0x42478a=_0x42c42a[_0x238668('0x207c')]('msSplashScreen::remove',function(){const _0x1466da=_0x238668;_0x17fe9c[_0x1466da('0x2141')](_0x4dffd0)[_0x1466da('0x17e7')](function(){_0x42478a(),_0x42c42a=null,_0x4dffd0=null;});});}};}const _0x4aa4ce=_0x18d3e6,_0x223552=_0x4cf2bc['p']+'src/js/modules/core/directives/ms-stepper/templates/horizontal/horizontal.html/horizontal.html',_0x43e1b8=_0x4cf2bc['p']+'src/js/modules/core/directives/ms-stepper/templates/vertical/vertical.html/vertical.html',_0x5b00cb=_0x4cf2bc['p']+_0x4376d8('0x2282');_0x199786[_0x4376d8('0x1b9c')]=[_0x4376d8('0xef1')],_0x581575[_0x4376d8('0x1b9c')]=[_0x4376d8('0xef1')];function _0x581575(_0x27f4ab){const _0x343699=_0x4376d8,_0x594720=this;_0x594720[_0x343699('0x23c5')]=undefined,_0x594720[_0x343699('0x26d9')]=_0x343699('0x15ab'),_0x594720[_0x343699('0x8a1')]=[],_0x594720[_0x343699('0x138e')]=undefined,_0x594720[_0x343699('0x1ebd')]=0x1;function _0x31760c(_0x5a9b54){const _0x22fd41=_0x343699;return!(angular[_0x22fd41('0x1a77')](_0x5a9b54)||_0x5a9b54<0x1||_0x5a9b54>_0x594720['steps']['length']);}function _0x30318a(_0x2a21ca){const _0x59dfe1=_0x343699;_0x594720[_0x59dfe1('0x26d9')]=_0x2a21ca||_0x59dfe1('0x15ab');}function _0x3401d8(_0x16e553){const _0x13527f=_0x343699;_0x594720[_0x13527f('0x23c5')]=_0x16e553;}function _0x488745(){const _0x141433=_0x343699;_0x594720[_0x141433('0x50c')](0x1);}function _0x343feb(_0x131bfc){const _0x4d611c=_0x343699;if(!_0x31760c(_0x131bfc))return null;return!!_0x594720[_0x4d611c('0x8a1')][_0x131bfc-0x1][_0x4d611c('0xf17')][_0x4d611c('0x1')];}function _0x3cb57f(_0xdc904b,_0x2176c2,_0x20207f){const _0x156a2d=_0x343699,_0x3f0157={'element':_0xdc904b,'scope':_0x2176c2,'form':_0x20207f,'stepNumber':_0x2176c2[_0x156a2d('0x1186')]||_0x594720[_0x156a2d('0x8a1')][_0x156a2d('0x1f73')]+0x1,'stepTitle':_0x2176c2[_0x156a2d('0x1236')],'stepTitleTranslate':_0x2176c2[_0x156a2d('0xa7d')]};return _0x594720['steps']['push'](_0x3f0157),_0x594720[_0x156a2d('0x8a1')][_0x156a2d('0x1b22')](function(_0x5b2e8a,_0x468841){const _0x4b07cd=_0x156a2d;return _0x5b2e8a[_0x4b07cd('0x11ed')]-_0x468841[_0x4b07cd('0x11ed')];}),_0x3f0157;}function _0x136637(){const _0xac3667=_0x343699;_0x594720['setCurrentStep'](_0x594720[_0xac3667('0x1ebd')]);}function _0xe7e6f(){_0x27f4ab(function(){const _0x85e780=a0_0xd29e;for(let _0x2d3ab0=0x0;_0x2d3ab0<_0x594720[_0x85e780('0x8a1')]['length'];_0x2d3ab0++){_0x594720['steps'][_0x2d3ab0][_0x85e780('0x2445')][_0x85e780('0x22e4')](),_0x594720[_0x85e780('0x8a1')][_0x2d3ab0][_0x85e780('0x2445')][_0x85e780('0xb81')]();}_0x594720[_0x85e780('0x23c5')]['$setPristine'](),_0x594720[_0x85e780('0x23c5')]['$setUntouched'](),_0x488745();});}function _0x1041a3(_0x139233){const _0x5cbf8f=_0x343699;if(!_0x31760c(_0x139233))return;_0x594720[_0x5cbf8f('0x1ebd')]=_0x139233;if(_0x594720[_0x5cbf8f('0x26d9')]===_0x5cbf8f('0x15ab')){for(let _0x561d2f=0x0;_0x561d2f<_0x594720[_0x5cbf8f('0x8a1')][_0x5cbf8f('0x1f73')];_0x561d2f++){_0x594720['steps'][_0x561d2f][_0x5cbf8f('0x1ce1')]['hide']();}_0x594720[_0x5cbf8f('0x8a1')][_0x594720[_0x5cbf8f('0x1ebd')]-0x1]['element'][_0x5cbf8f('0x28e2')]();}else{if(_0x594720[_0x5cbf8f('0x26d9')]===_0x5cbf8f('0x321')){for(let _0x567c4b=0x0;_0x567c4b<_0x594720[_0x5cbf8f('0x8a1')][_0x5cbf8f('0x1f73')];_0x567c4b++){_0x594720[_0x5cbf8f('0x8a1')][_0x567c4b]['element']['find'](_0x5cbf8f('0x63'))[_0x5cbf8f('0x212a')]();}_0x594720['steps'][_0x594720[_0x5cbf8f('0x1ebd')]-0x1][_0x5cbf8f('0x1ce1')][_0x5cbf8f('0xe8e')](_0x5cbf8f('0x63'))['show']();}}}function _0x49ac6a(_0x3f2a6f){const _0x3a9fb1=_0x343699;if(_0x343feb(_0x3f2a6f))return;_0x594720[_0x3a9fb1('0x50c')](_0x3f2a6f);}function _0x1cefb7(){const _0x2ff458=_0x343699;let _0x24a001=_0x594720['currentStepNumber']-0x1;for(let _0x4da0c8=_0x24a001;_0x4da0c8>=0x1;_0x4da0c8--){if(!_0x343feb(_0x4da0c8)){_0x24a001=_0x4da0c8;break;}}_0x594720[_0x2ff458('0x50c')](_0x24a001);}function _0x3d406b(){const _0x300693=_0x343699;let _0xda5b52=_0x594720[_0x300693('0x1ebd')]+0x1;for(let _0x5d341b=_0xda5b52;_0x5d341b<=_0x594720[_0x300693('0x8a1')][_0x300693('0x1f73')];_0x5d341b++){if(!_0x343feb(_0x5d341b)){_0xda5b52=_0x5d341b;break;}}_0x594720[_0x300693('0x50c')](_0xda5b52);}function _0x2109e8(){const _0xabc0be=_0x343699;_0x594720[_0xabc0be('0x50c')](_0x594720[_0xabc0be('0x8a1')][_0xabc0be('0x1f73')]);}function _0x3368bc(){const _0x350e14=_0x343699;return _0x594720[_0x350e14('0x1ebd')]===0x1;}function _0x52e68f(){const _0x29d4d6=_0x343699;return _0x594720['currentStepNumber']===_0x594720['steps'][_0x29d4d6('0x1f73')];}function _0x5194a2(_0x30eadf){const _0x42189a=_0x343699;if(!_0x31760c(_0x30eadf))return null;return _0x594720[_0x42189a('0x1ebd')]===_0x30eadf;}function _0x182be5(_0x5607e4){const _0x37828a=_0x343699;if(!_0x31760c(_0x5607e4))return null;return _0x594720[_0x37828a('0x8a1')][_0x5607e4-0x1][_0x37828a('0xf17')][_0x37828a('0x18cd')];}function _0x4c75ab(_0x4bd287){const _0x41d550=_0x343699;if(!_0x31760c(_0x4bd287))return null;if(_0x182be5(_0x4bd287))return!![];return _0x594720[_0x41d550('0x8a1')][_0x4bd287-0x1][_0x41d550('0x2445')]['$valid'];}function _0x5023cd(_0x45c664){if(!_0x31760c(_0x45c664))return null;let _0x18289c=![];for(let _0x3ba80e=0x1;_0x3ba80e<_0x45c664;_0x3ba80e++){if(!_0x4c75ab(_0x3ba80e)){_0x18289c=!![];break;}}return _0x18289c;}function _0x137992(_0x87cea1){return!_0x343feb(_0x87cea1['stepNumber']);}function _0x28571a(){const _0x142fd8=_0x343699;return _0x594720[_0x142fd8('0x23c5')][_0x142fd8('0x1edf')];}_0x594720[_0x343699('0x1f4e')]=_0x30318a,_0x594720['registerMainForm']=_0x3401d8,_0x594720[_0x343699('0x879')]=_0x3cb57f,_0x594720['setupSteps']=_0x136637,_0x594720[_0x343699('0x1446')]=_0xe7e6f,_0x594720[_0x343699('0x50c')]=_0x1041a3,_0x594720[_0x343699('0x1efd')]=_0x49ac6a,_0x594720[_0x343699('0x2269')]=_0x1cefb7,_0x594720[_0x343699('0x2200')]=_0x3d406b,_0x594720[_0x343699('0x1ab2')]=_0x488745,_0x594720[_0x343699('0x1b02')]=_0x2109e8,_0x594720[_0x343699('0x5a0')]=_0x3368bc,_0x594720['isLastStep']=_0x52e68f,_0x594720[_0x343699('0x115b')]=_0x5194a2,_0x594720[_0x343699('0xa1b')]=_0x5023cd,_0x594720[_0x343699('0x1674')]=_0x182be5,_0x594720['isStepHidden']=_0x343feb,_0x594720['filterHiddenStep']=_0x137992,_0x594720['isStepValid']=_0x4c75ab,_0x594720[_0x343699('0x1a08')]=_0x31760c,_0x594720['isFormValid']=_0x28571a;}function _0x51e49e(){const _0x526862=_0x4376d8;return{'restrict':'A','scope':{},'require':[_0x526862('0x2445'),'msHorizontalStepper'],'priority':0x3e9,'controller':_0x526862('0x43e'),'bindToController':{'model':_0x526862('0x207d')},'transclude':!![],'templateUrl':_0x223552,'compile':function(_0x3ee681){const _0x183620=_0x526862;return _0x3ee681['addClass'](_0x183620('0xb8d')),function _0x4c62b0(_0x5c107e,_0x549cbc,_0x376c6c,_0x20a299){const _0x3d27f3=_0x183620,_0xaba054=_0x20a299[0x0],_0x4e70d5=_0x20a299[0x1];_0x4e70d5[_0x3d27f3('0x1f4e')]('horizontal'),_0x4e70d5[_0x3d27f3('0x167e')](_0xaba054),_0x4e70d5[_0x3d27f3('0x1b5')]();};}};}function _0x295429(){const _0x147dce=_0x4376d8;return{'restrict':'E','require':[_0x147dce('0x2445'),_0x147dce('0x568')],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'compile':function(_0x3a06d6){const _0x41d9c4=_0x147dce;return _0x3a06d6['addClass'](_0x41d9c4('0x2877')),function _0x584ee4(_0x47ddf3,_0x5cdff2,_0x41d60f,_0x2d1c0d){const _0x25b52f=_0x41d9c4,_0x15f036=_0x2d1c0d[0x0],_0x10c344=_0x2d1c0d[0x1];_0x47ddf3[_0x25b52f('0x18cd')]=angular[_0x25b52f('0x170a')](_0x41d60f[_0x25b52f('0x18cd')]),_0x10c344[_0x25b52f('0x879')](_0x5cdff2,_0x47ddf3,_0x15f036),_0x5cdff2['hide']();};}};}function _0x199786(_0x541080){const _0x3ca71a=_0x4376d8;return{'restrict':'A','scope':{},'require':[_0x3ca71a('0x2445'),_0x3ca71a('0x11df')],'priority':0x3e9,'controller':_0x3ca71a('0x43e'),'bindToController':{'model':_0x3ca71a('0x207d')},'transclude':!![],'templateUrl':_0x43e1b8,'compile':function(_0x5d893d){return _0x5d893d['addClass']('ms-stepper'),function _0x453570(_0x2f3a49,_0x432d32,_0x87f422,_0x7f96f0){const _0x554e4b=_0x7f96f0[0x0],_0x8291e6=_0x7f96f0[0x1];_0x541080(function(){const _0x47f47e=a0_0xd29e;_0x8291e6[_0x47f47e('0x1f4e')](_0x47f47e('0x321')),_0x8291e6['registerMainForm'](_0x554e4b),_0x8291e6['setupSteps']();});};}};}function _0x17dc79(){const _0x35543f=_0x4376d8;return{'restrict':'E','require':[_0x35543f('0x2445'),'^msVerticalStepper'],'priority':0x3e8,'scope':{'step':'=?','stepTitle':'=?','stepTitleTranslate':'=?','optionalStep':'=?','hideStep':'=?'},'transclude':!![],'templateUrl':-_0x5b00cb,'compile':function(_0xdedab8){const _0x521a6f=_0x35543f;return _0xdedab8[_0x521a6f('0x16e5')](_0x521a6f('0x2877')),function _0x32acd2(_0xca2cc0,_0x4c36ad,_0x367f22,_0x2d1424){const _0x270af7=_0x521a6f,_0x412f58=_0x2d1424[0x0],_0x3f1357=_0x2d1424[0x1];_0xca2cc0['optionalStep']=angular[_0x270af7('0x170a')](_0x367f22['optionalStep']),_0xca2cc0[_0x270af7('0x671')]=_0x3f1357[_0x270af7('0x879')](_0x4c36ad,_0xca2cc0,_0x412f58),_0xca2cc0[_0x270af7('0x1242')]=_0x3f1357,_0x4c36ad[_0x270af7('0xe8e')](_0x270af7('0x63'))['hide']();};}};}const _0x1588f3=_0x4cf2bc['p']+'src/js/modules/core/directives/ms-tab-scroll/ms-tab-scroll.html/ms-tab-scroll.html';;function _0x12b4cf(){const _0x431a13=_0x4376d8,_0x1e1b15=this;_0x1e1b15['onTabScroll']=_0x59ca75,_0x1e1b15[_0x431a13('0x22ef')]=_0x4e52aa;function _0x59ca75(_0x4042dc){const _0x37be77=_0x431a13;_0x4042dc==_0x37be77('0x24b3')?$(_0x37be77('0x1a9b'))[_0x37be77('0x262b')]()[_0x37be77('0xe14')]({'scrollLeft':'-=400'},0x3e8):$(_0x37be77('0x1a9b'))[_0x37be77('0x262b')]()[_0x37be77('0xe14')]({'scrollLeft':_0x37be77('0x25d9')},0x3e8);}function _0x4e52aa(_0x53ab59){const _0x4ddb47=_0x431a13;switch(_0x3ff7ad()){case _0x4ddb47('0x1ef1'):return!![];case _0x4ddb47('0x24b3'):return _0x53ab59==_0x4ddb47('0x24b3')?!![]:![];case'right':return _0x53ab59==_0x4ddb47('0x220c')?!![]:![];case _0x4ddb47('0x7ee'):return![];default:return![];}}function _0x3ff7ad(){const _0x56f053=_0x431a13,_0x18e2e5=document[_0x56f053('0x4c2')]('bar-container'),_0x28c354=document['getElementById']('tab-container');if(_0x28c354[_0x56f053('0xfef')]>_0x18e2e5[_0x56f053('0xfef')]&&_0x18e2e5[_0x56f053('0x734')]==0x0&&_0x28c354['scrollLeft']==0x0)return _0x56f053('0x220c');else{if(_0x28c354[_0x56f053('0xfef')]>_0x18e2e5['scrollWidth']&&_0x28c354['scrollLeft']>_0x18e2e5[_0x56f053('0x734')]&&_0x18e2e5[_0x56f053('0xfef')]+_0x28c354[_0x56f053('0x734')]>=_0x28c354[_0x56f053('0xfef')])return _0x56f053('0x24b3');else return _0x28c354[_0x56f053('0xfef')]>_0x18e2e5['scrollWidth']&&_0x28c354['scrollLeft']>_0x18e2e5[_0x56f053('0x734')]&&_0x18e2e5[_0x56f053('0xfef')]+_0x28c354[_0x56f053('0x734')]<_0x28c354[_0x56f053('0xfef')]?_0x56f053('0x1ef1'):_0x56f053('0x7ee');}}}function _0x35173f(){const _0x318c8d=_0x4376d8;return{'restrict':'E','scope':{},'transclude':!![],'controller':_0x318c8d('0xec5'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x1588f3,'compile':function(_0xb81168){return _0xb81168['addClass']('ms-tab-scroll'),function _0x30723d(){};}};}_0xda96d8[_0x4376d8('0x1b9c')]=[_0x4376d8('0xef1'),'$q'];function _0xfc69b5(){const _0x115ad2=_0x4376d8,_0x545284=this;_0x545284[_0x115ad2('0x1530')]=undefined,_0x545284[_0x115ad2('0x7bd')]=_0x49837d,_0x545284['getScrollEl']=_0x56c2db;function _0x49837d(_0x26179e){const _0x30b4ba=_0x115ad2;_0x545284[_0x30b4ba('0x1530')]=_0x26179e;}function _0x56c2db(){return _0x545284['scrollEl'];}}function _0xe86b02(){const _0x35ef17=_0x4376d8;return{'scope':{'msTimeline':'=?','loadMore':'&?msTimelineLoadMore'},'controller':_0x35ef17('0x198a'),'compile':function(_0x303955){const _0x3248cd=_0x35ef17;return _0x303955[_0x3248cd('0x16e5')](_0x3248cd('0xbd3')),function _0x61e6d6(_0x3d7336,_0x4dd3b1,_0x5783d3,_0x49fbaa){const _0x141e44=_0x3248cd,_0x4eb2bd=angular[_0x141e44('0x1ce1')](_0x141e44('0x180d'));_0x4dd3b1['append'](_0x4eb2bd);let _0x3b20e0={'scrollEl':'#content'};_0x3b20e0=angular[_0x141e44('0x15f7')](_0x3b20e0,_0x3d7336[_0x141e44('0x205')],{});const _0x534394=angular[_0x141e44('0x1ce1')](_0x3b20e0['scrollEl']);_0x49fbaa['setScrollEl'](_0x534394);const _0x3378b0=0x90;_0x4584a7();function _0x57c7a6(){const _0x5c1e5d=_0x141e44;_0x534394[_0x5c1e5d('0x1df4')]()+_0x534394[_0x5c1e5d('0x149')]()+_0x3378b0>_0x4eb2bd[_0x5c1e5d('0x707')]()['top']&&(_0x4eb2bd[_0x5c1e5d('0x16e5')](_0x5c1e5d('0x28e2')),_0x1f47ff(),_0x3d7336[_0x5c1e5d('0x126')]()['then'](function(){const _0x412aa3=_0x5c1e5d;_0x4eb2bd[_0x412aa3('0x1e56')]('show'),_0x4584a7();},function(){const _0x3f6f5b=_0x5c1e5d;_0x4eb2bd[_0x3f6f5b('0x5f3')]();}));}function _0x4584a7(){const _0x16a982=_0x141e44;_0x534394['on'](_0x16a982('0xa8a'),_0x57c7a6);}function _0x1f47ff(){const _0x2b3949=_0x141e44;_0x534394[_0x2b3949('0xecb')](_0x2b3949('0xa8a'),_0x57c7a6);}_0x3d7336['$on'](_0x141e44('0x2b4'),function(){_0x1f47ff();});};}};}function _0xda96d8(_0x1e6959,_0x2a52b8){const _0x3152dc=_0x4376d8;return{'scope':!![],'require':_0x3152dc('0x1c60'),'compile':function(_0x369116){const _0x16fcfe=_0x3152dc;return _0x369116['addClass'](_0x16fcfe('0x1b62'))['addClass'](_0x16fcfe('0x5c')),function _0x36c98d(_0x11c676,_0x4b5305,_0x8837f8,_0x15c03b){const _0x297555=_0x16fcfe,_0x965a00=0x48;let _0x21eed6=![],_0x385ff7=![];const _0x1b5a8d=_0x15c03b[_0x297555('0x184d')]();_0x5c98f1();function _0x5c98f1(){const _0x2d3acb=_0x297555;_0x4b5305[_0x2d3acb('0xe8e')](_0x2d3acb('0x853'))?_0x11c676[_0x2d3acb('0x207c')](_0x2d3acb('0xc2b'),function(_0x594d66,_0x2c2ade){const _0x26c041=_0x2d3acb,_0x47ce40=angular[_0x26c041('0x1ce1')](_0x2c2ade[0x0]);_0x1faf1a(_0x47ce40)[_0x26c041('0x17e7')](function(){_0x1e6959(function(){_0x21eed6=!![];});});}):_0x1faf1a(_0x4b5305)['then'](function(){_0x1e6959(function(){_0x21eed6=!![];});}),_0x1b5a8d['on']('scroll',_0x2df647),_0x2df647();}const _0x53eb5a=_0x11c676[_0x297555('0x620')](function(){return _0x21eed6&&_0x385ff7;},function(_0x521a3f,_0x1b085a){const _0x20aeb7=_0x297555;if(angular[_0x20aeb7('0x15d2')](_0x521a3f,_0x1b085a))return;_0x521a3f&&(_0x4b5305[_0x20aeb7('0x1e56')](_0x20aeb7('0x5c'))[_0x20aeb7('0x16e5')]('animate'),_0x53eb5a());},!![]);function _0x1faf1a(_0x44fced){const _0x30cdde=_0x297555,_0x260fe7=_0x2a52b8['defer'](),_0x2ccdf6=_0x44fced[_0x30cdde('0xe8e')]('img');return _0x2ccdf6['length']>0x0?_0x2ccdf6['on'](_0x30cdde('0xae2'),function(){const _0x55ce58=_0x30cdde;_0x260fe7[_0x55ce58('0x898')](_0x55ce58('0x1957'));}):_0x260fe7[_0x30cdde('0x898')](_0x30cdde('0x12f3')),_0x260fe7[_0x30cdde('0x1691')];}function _0x2df647(){const _0x30bf26=_0x297555;_0x1b5a8d[_0x30bf26('0x1df4')]()+_0x1b5a8d[_0x30bf26('0x149')]()>_0x4b5305['position']()[_0x30bf26('0x59d')]+_0x965a00&&(_0x1e6959(function(){_0x385ff7=!![];}),_0x1b5a8d[_0x30bf26('0xecb')](_0x30bf26('0xa8a'),_0x2df647));}};}};}_0xed74d2[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x33a'),'$window','$translate',_0x4376d8('0x26f9'),'$element',_0x4376d8('0x2133')];function _0xed74d2(_0x9373a7,_0x1b5f95,_0x15b0dd,_0x565b19,_0x503310,_0x4dad9a,_0x4048f8,_0x65c33b,_0x5231fe){const _0x3128b2=_0x4376d8;typeof String[_0x3128b2('0x101c')][_0x3128b2('0x342')]!==_0x3128b2('0xa71')&&(String[_0x3128b2('0x101c')][_0x3128b2('0x342')]=function(){return this['replace'](/^\s+|\s+$/g,'');});_0x9373a7[_0x3128b2('0x143f')]=_0x4048f8[_0x3128b2('0x143f')]||_0x4048f8[_0x3128b2('0x288d')];_0x65c33b[_0x3128b2('0x19b6')]()[_0x3128b2('0x342')]()[_0x3128b2('0x1f73')]===0x0?_0x65c33b[_0x3128b2('0x25a')](_0x5231fe(_0x3128b2('0x15df'))(_0x9373a7)):_0x65c33b[_0x3128b2('0x25a')](_0x5231fe(_0x65c33b[_0x3128b2('0x2585')]())(_0x9373a7));_0x9373a7[_0x3128b2('0x231f')]=_0x9373a7[_0x3128b2('0x8d')]||0x3e8,_0x9373a7[_0x3128b2('0x12e0')]=null,_0x9373a7[_0x3128b2('0x10a6')]=null,_0x9373a7[_0x3128b2('0x1595')]=null,_0x9373a7['countdown']=_0x9373a7['countdownAttr']&&parseInt(_0x9373a7['countdownAttr'],0xa)>=0x0?parseInt(_0x9373a7[_0x3128b2('0x1fd1')],0xa):undefined,_0x9373a7['isRunning']=![],_0x9373a7['$watch'](_0x3128b2('0x177c'),function(_0x1e0291,_0x2db581){const _0x46b992=_0x3128b2;_0x1e0291!==_0x2db581&&_0x9373a7[_0x46b992('0x1212')]&&_0x9373a7[_0x46b992('0x26ef')]();}),_0x9373a7['$on']('timer-start',function(){const _0x3c08fd=_0x3128b2;_0x9373a7[_0x3c08fd('0x26ef')]();}),_0x9373a7[_0x3128b2('0x207c')](_0x3128b2('0x133e'),function(){_0x9373a7['resume']();}),_0x9373a7[_0x3128b2('0x207c')](_0x3128b2('0x9b9'),function(){const _0x1cbd74=_0x3128b2;_0x9373a7[_0x1cbd74('0x262b')]();}),_0x9373a7[_0x3128b2('0x207c')](_0x3128b2('0x23a0'),function(){const _0x638cba=_0x3128b2;_0x9373a7[_0x638cba('0xdf')]();}),_0x9373a7[_0x3128b2('0x207c')](_0x3128b2('0x2551'),function(_0x9d4e25,_0xc70b3d){const _0x1cc08a=_0x3128b2;_0x9373a7[_0x1cc08a('0x1c35')]=_0xc70b3d;});function _0x28ec84(){const _0x47cb64=_0x3128b2;_0x9373a7[_0x47cb64('0x1595')]&&clearTimeout(_0x9373a7[_0x47cb64('0x1595')]);}_0x9373a7[_0x3128b2('0x26ef')]=function(){const _0x553dab=_0x3128b2,_0xf13040=_0x107a13()(),_0xfbe6a2=_0x9373a7[_0x553dab('0x177c')]?_0x107a13()(_0x9373a7[_0x553dab('0x177c')]):null;!_0xfbe6a2||_0xfbe6a2>_0xf13040?_0x9373a7[_0x553dab('0x12e0')]=_0xf13040:_0x9373a7[_0x553dab('0x12e0')]=_0xfbe6a2;const _0x445f55=_0x9373a7['endTimeAttr']?_0x107a13()(_0x9373a7[_0x553dab('0x13d4')]):null;!_0x445f55||_0x445f55<_0xf13040?_0x9373a7[_0x553dab('0x10a6')]=null:_0x9373a7[_0x553dab('0x10a6')]=_0x445f55,!_0x9373a7[_0x553dab('0x1c35')]&&(_0x9373a7[_0x553dab('0x1c35')]=_0x9373a7[_0x553dab('0x1fd1')]&&parseInt(_0x9373a7[_0x553dab('0x1fd1')],0xa)>0x0?parseInt(_0x9373a7[_0x553dab('0x4ee')],0xa):undefined),_0x28ec84(),_0x2d9508(),_0x9373a7['isRunning']=!![];},_0x65c33b[0x0]['start']=_0x9373a7[_0x3128b2('0x26ef')],_0x9373a7[_0x3128b2('0x23bf')]=function(){const _0x5d8307=_0x3128b2;_0x28ec84(),_0x9373a7[_0x5d8307('0x1fd1')]&&(_0x9373a7['countdown']+=0x1),_0x9373a7[_0x5d8307('0x12e0')]=_0x107a13()()['diff'](_0x107a13()(_0x9373a7[_0x5d8307('0x1dca')])[_0x5d8307('0x5e')](_0x107a13()(_0x9373a7[_0x5d8307('0x12e0')]))),_0x2d9508(),_0x9373a7['isRunning']=!![];},_0x65c33b[0x0][_0x3128b2('0x23bf')]=_0x9373a7[_0x3128b2('0x23bf')],_0x9373a7[_0x3128b2('0x262b')]=function(){const _0x4d4962=_0x3128b2;_0x9373a7[_0x4d4962('0xdf')](),_0x9373a7['$emit'](_0x4d4962('0x1816'),{'timeoutId':_0x9373a7[_0x4d4962('0x1595')],'millis':_0x9373a7['millis'],'seconds':_0x9373a7[_0x4d4962('0x2415')],'minutes':_0x9373a7[_0x4d4962('0x1abd')],'hours':_0x9373a7[_0x4d4962('0x130b')],'days':_0x9373a7[_0x4d4962('0x1e7e')]});},_0x9373a7[_0x3128b2('0x267a')]=_0x9373a7[_0x3128b2('0x262b')],_0x65c33b[0x0]['stop']=_0x9373a7['stop'],_0x65c33b[0x0][_0x3128b2('0x267a')]=_0x9373a7[_0x3128b2('0x262b')],_0x9373a7[_0x3128b2('0xdf')]=function(){const _0x1026db=_0x3128b2;_0x9373a7[_0x1026db('0x1dca')]=_0x107a13()(),_0x28ec84(),_0x9373a7[_0x1026db('0x1595')]=null,_0x9373a7['isRunning']=![];},_0x65c33b[0x0][_0x3128b2('0xdf')]=_0x9373a7[_0x3128b2('0xdf')],_0x65c33b[_0x3128b2('0x22d5')](_0x3128b2('0x2b4'),function(){_0x28ec84(),_0x9373a7['isRunning']=![];});function _0x429eba(){const _0x1bbc59=_0x3128b2;_0x4048f8['startTime']!==undefined&&(_0x9373a7[_0x1bbc59('0x1dbc')]=_0x107a13()()[_0x1bbc59('0x5e')](_0x107a13()(_0x9373a7[_0x1bbc59('0x12e0')])));if(!_0x9373a7[_0x1bbc59('0x2754')]||_0x9373a7[_0x1bbc59('0x2754')]==='day')_0x9373a7['seconds']=Math[_0x1bbc59('0x211e')](_0x9373a7['millis']/0x3e8%0x3c),_0x9373a7[_0x1bbc59('0x1abd')]=Math[_0x1bbc59('0x211e')](_0x9373a7['millis']/0xea60%0x3c),_0x9373a7[_0x1bbc59('0x130b')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80%0x18),_0x9373a7['days']=Math['floor'](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80/0x18),_0x9373a7[_0x1bbc59('0x1fc6')]=0x0,_0x9373a7[_0x1bbc59('0x144f')]=0x0;else{if(_0x9373a7[_0x1bbc59('0x2754')]===_0x1bbc59('0x1e5a'))_0x9373a7['seconds']=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x3e8),_0x9373a7[_0x1bbc59('0x1abd')]=0x0,_0x9373a7[_0x1bbc59('0x130b')]=0x0,_0x9373a7[_0x1bbc59('0x1e7e')]=0x0,_0x9373a7[_0x1bbc59('0x1fc6')]=0x0,_0x9373a7[_0x1bbc59('0x144f')]=0x0;else{if(_0x9373a7[_0x1bbc59('0x2754')]==='minute')_0x9373a7[_0x1bbc59('0x2415')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x3e8%0x3c),_0x9373a7['minutes']=Math[_0x1bbc59('0x211e')](_0x9373a7['millis']/0xea60),_0x9373a7['hours']=0x0,_0x9373a7[_0x1bbc59('0x1e7e')]=0x0,_0x9373a7[_0x1bbc59('0x1fc6')]=0x0,_0x9373a7[_0x1bbc59('0x144f')]=0x0;else{if(_0x9373a7['maxTimeUnit']===_0x1bbc59('0x1e86'))_0x9373a7[_0x1bbc59('0x2415')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x3e8%0x3c),_0x9373a7[_0x1bbc59('0x1abd')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0xea60%0x3c),_0x9373a7[_0x1bbc59('0x130b')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80),_0x9373a7[_0x1bbc59('0x1e7e')]=0x0,_0x9373a7[_0x1bbc59('0x1fc6')]=0x0,_0x9373a7[_0x1bbc59('0x144f')]=0x0;else{if(_0x9373a7['maxTimeUnit']===_0x1bbc59('0x7c7'))_0x9373a7[_0x1bbc59('0x2415')]=Math['floor'](_0x9373a7[_0x1bbc59('0x1dbc')]/0x3e8%0x3c),_0x9373a7['minutes']=Math[_0x1bbc59('0x211e')](_0x9373a7['millis']/0xea60%0x3c),_0x9373a7['hours']=Math['floor'](_0x9373a7['millis']/0x36ee80%0x18),_0x9373a7[_0x1bbc59('0x1e7e')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80/0x18%0x1e),_0x9373a7[_0x1bbc59('0x1fc6')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80/0x18/0x1e),_0x9373a7[_0x1bbc59('0x144f')]=0x0;else _0x9373a7[_0x1bbc59('0x2754')]===_0x1bbc59('0x2216')&&(_0x9373a7[_0x1bbc59('0x2415')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x3e8%0x3c),_0x9373a7[_0x1bbc59('0x1abd')]=Math['floor'](_0x9373a7['millis']/0xea60%0x3c),_0x9373a7[_0x1bbc59('0x130b')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80%0x18),_0x9373a7[_0x1bbc59('0x1e7e')]=Math['floor'](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80/0x18%0x1e),_0x9373a7['months']=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80/0x18/0x1e%0xc),_0x9373a7[_0x1bbc59('0x144f')]=Math[_0x1bbc59('0x211e')](_0x9373a7[_0x1bbc59('0x1dbc')]/0x36ee80/0x18/0x16d));}}}}_0x9373a7[_0x1bbc59('0x11fa')]=_0x9373a7[_0x1bbc59('0x2415')]===0x1||_0x9373a7[_0x1bbc59('0x2415')]===0x0?'':'s',_0x9373a7[_0x1bbc59('0x23c0')]=_0x9373a7[_0x1bbc59('0x1abd')]===0x1||_0x9373a7[_0x1bbc59('0x1abd')]===0x0?'':'s',_0x9373a7[_0x1bbc59('0x1ea2')]=_0x9373a7[_0x1bbc59('0x130b')]===0x1||_0x9373a7[_0x1bbc59('0x130b')]===0x0?'':'s',_0x9373a7[_0x1bbc59('0x190f')]=_0x9373a7[_0x1bbc59('0x1e7e')]===0x1||_0x9373a7[_0x1bbc59('0x1e7e')]===0x0?'':'s',_0x9373a7[_0x1bbc59('0x102e')]=_0x9373a7[_0x1bbc59('0x1fc6')]===0x1||_0x9373a7[_0x1bbc59('0x1fc6')]===0x0?'':'s',_0x9373a7[_0x1bbc59('0xad')]=_0x9373a7['years']===0x1||_0x9373a7[_0x1bbc59('0x144f')]===0x0?'':'s',_0x9373a7[_0x1bbc59('0x1727')]=_0x9373a7[_0x1bbc59('0x2415')]<0xa?'0'+_0x9373a7[_0x1bbc59('0x2415')]:_0x9373a7[_0x1bbc59('0x2415')],_0x9373a7[_0x1bbc59('0x1ad3')]=_0x9373a7['minutes']<0xa?'0'+_0x9373a7[_0x1bbc59('0x1abd')]:_0x9373a7[_0x1bbc59('0x1abd')],_0x9373a7[_0x1bbc59('0x12fa')]=_0x9373a7['hours']<0xa?'0'+_0x9373a7[_0x1bbc59('0x130b')]:_0x9373a7[_0x1bbc59('0x130b')],_0x9373a7[_0x1bbc59('0x13cb')]=_0x9373a7['days']<0xa?'0'+_0x9373a7['days']:_0x9373a7[_0x1bbc59('0x1e7e')],_0x9373a7[_0x1bbc59('0x103d')]=_0x9373a7[_0x1bbc59('0x1fc6')]<0xa?'0'+_0x9373a7[_0x1bbc59('0x1fc6')]:_0x9373a7[_0x1bbc59('0x1fc6')],_0x9373a7[_0x1bbc59('0x231')]=_0x9373a7[_0x1bbc59('0x144f')]<0xa?'0'+_0x9373a7['years']:_0x9373a7['years'];}const _0x2d9508=function(){const _0x194fd3=_0x3128b2;_0x9373a7[_0x194fd3('0x1dbc')]=_0x107a13()()[_0x194fd3('0x5e')](_0x9373a7['startTime']);let _0x582f7b=_0x9373a7['millis']%0x3e8;_0x9373a7[_0x194fd3('0x13d4')]&&(_0x9373a7[_0x194fd3('0x1dbc')]=_0x107a13()(_0x9373a7['endTime'])['diff'](_0x107a13()()),_0x582f7b=_0x9373a7[_0x194fd3('0x231f')]-_0x9373a7[_0x194fd3('0x1dbc')]%0x3e8);_0x9373a7[_0x194fd3('0x1fd1')]&&(_0x9373a7[_0x194fd3('0x1dbc')]=_0x9373a7['countdown']*0x3e8);if(_0x9373a7['millis']<0x0){_0x9373a7[_0x194fd3('0x262b')](),_0x9373a7[_0x194fd3('0x1dbc')]=0x0,_0x429eba();_0x9373a7[_0x194fd3('0x797')]&&_0x9373a7[_0x194fd3('0x1990')](_0x9373a7[_0x194fd3('0x797')]);return;}_0x429eba(),_0x9373a7['timeoutId']=setTimeout(function(){const _0xe114ba=_0x194fd3;_0x2d9508(),_0x9373a7[_0xe114ba('0x783')]();},_0x9373a7['interval']-_0x582f7b),_0x9373a7[_0x194fd3('0xc58')]('timer-tick',{'timeoutId':_0x9373a7[_0x194fd3('0x1595')],'millis':_0x9373a7[_0x194fd3('0x1dbc')]});if(_0x9373a7[_0x194fd3('0x1c35')]>0x0)_0x9373a7[_0x194fd3('0x1c35')]--;else _0x9373a7[_0x194fd3('0x1c35')]<=0x0&&(_0x9373a7['stop'](),_0x9373a7[_0x194fd3('0x797')]&&_0x9373a7[_0x194fd3('0x1990')](_0x9373a7[_0x194fd3('0x797')]));};(_0x9373a7[_0x3128b2('0x143f')]===undefined||_0x9373a7[_0x3128b2('0x143f')]===!![])&&_0x9373a7[_0x3128b2('0x26ef')]();}function _0x102628(){const _0x3e91a6=_0x4376d8;return{'restrict':'EA','replace':![],'scope':{'intervalAttr':_0x3e91a6('0x26aa'),'startTimeAttr':_0x3e91a6('0xfd'),'endTimeAttr':_0x3e91a6('0x1015'),'countdownAttr':'=countdown','autoStart':_0x3e91a6('0x13d8'),'maxTimeUnit':'='},'controller':_0x3e91a6('0xb74')};}const _0x52d68b=_0x4cf2bc['p']+_0x4376d8('0x6ec');;function _0xb65884(){const _0x189924=_0x4376d8;return{'restrict':'E','scope':{'ngModel':'='},'controller':[_0x189924('0x668'),function(_0x52814c){const _0xf6f165=_0x189924;_0x52814c['timezone']=[{'name':_0xf6f165('0x10bb'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['AD']},{'name':_0xf6f165('0x2714'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['AE','OM']},{'name':_0xf6f165('0xd7c'),'utcOffset':0x10e,'offsetStr':_0xf6f165('0x94d'),'countries':['AF']},{'name':_0xf6f165('0x171f'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['AL']},{'name':_0xf6f165('0x1a6e'),'utcOffset':0xf0,'offsetStr':_0xf6f165('0xe7'),'countries':['AM']},{'name':'Antarctica/Rothera','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AQ']},{'name':_0xf6f165('0x2264'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AQ']},{'name':_0xf6f165('0x105c'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['AQ']},{'name':_0xf6f165('0x11b2'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['AQ']},{'name':_0xf6f165('0x27f2'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['AQ']},{'name':_0xf6f165('0x13ae'),'utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['AQ']},{'name':_0xf6f165('0x3d1'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AQ']},{'name':_0xf6f165('0x9d4'),'utcOffset':0xb4,'offsetStr':_0xf6f165('0xe2f'),'countries':['AQ']},{'name':'Antarctica/Troll','utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['AQ']},{'name':_0xf6f165('0xd25'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AR']},{'name':_0xf6f165('0x134b'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0xf6f165('0x17d6'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AR']},{'name':_0xf6f165('0x202b'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0xf6f165('0x1d82'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AR']},{'name':_0xf6f165('0x2704'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AR']},{'name':_0xf6f165('0x261d'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0xf6f165('0x1bb2'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},{'name':_0xf6f165('0x3c5'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AR']},{'name':'America/Argentina/San_Luis','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AR']},{'name':_0xf6f165('0x21d0'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AR']},{'name':_0xf6f165('0x260b'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['AR']},{'name':'Pacific/Pago_Pago','utcOffset':-0x294,'offsetStr':_0xf6f165('0xdff'),'countries':['AS','UM']},{'name':_0xf6f165('0x1799'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AT']},{'name':_0xf6f165('0x11bc'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['AU']},{'name':_0xf6f165('0x36d'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['AU']},{'name':_0xf6f165('0xe27'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['AU']},{'name':_0xf6f165('0x6b6'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['AU']},{'name':'Australia/Melbourne','utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},{'name':_0xf6f165('0x284d'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['AU']},{'name':_0xf6f165('0x2432'),'utcOffset':0x276,'offsetStr':_0xf6f165('0x1fa3'),'countries':['AU']},{'name':'Australia/Brisbane','utcOffset':0x258,'offsetStr':_0xf6f165('0x42f'),'countries':['AU']},{'name':_0xf6f165('0xcd5'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AU']},{'name':_0xf6f165('0x140d'),'utcOffset':0x276,'offsetStr':_0xf6f165('0x1fa3'),'countries':['AU']},{'name':_0xf6f165('0xc17'),'utcOffset':0x23a,'offsetStr':'+09:30','countries':['AU']},{'name':_0xf6f165('0x4d3'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['AU']},{'name':_0xf6f165('0x2724'),'utcOffset':0x20d,'offsetStr':_0xf6f165('0x1e94'),'countries':['AU']},{'name':_0xf6f165('0x418'),'utcOffset':0xf0,'offsetStr':_0xf6f165('0xe7'),'countries':['AZ']},{'name':_0xf6f165('0x11d'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BB']},{'name':'Asia/Dhaka','utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['BD']},{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':'+01:00','countries':['BE']},{'name':_0xf6f165('0x995'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['BG']},{'name':'Atlantic/Bermuda','utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BM']},{'name':_0xf6f165('0xc45'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['BN']},{'name':_0xf6f165('0xc44'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},{'name':_0xf6f165('0x27e1'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['BR']},{'name':_0xf6f165('0x43c'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['BR']},{'name':'America/Fortaleza','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['BR']},{'name':_0xf6f165('0x69a'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['BR']},{'name':_0xf6f165('0x24e2'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['BR']},{'name':_0xf6f165('0x2331'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['BR']},{'name':_0xf6f165('0x4c4'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},{'name':_0xf6f165('0xd21'),'utcOffset':-0x78,'offsetStr':_0xf6f165('0x245a'),'countries':['BR']},{'name':'America/Campo_Grande','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['BR']},{'name':'America/Cuiaba','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['BR']},{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['BR']},{'name':_0xf6f165('0x135a'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':_0xf6f165('0x25ff'),'utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['BR']},{'name':_0xf6f165('0x1ccc'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BR']},{'name':_0xf6f165('0x45f'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['BR']},{'name':_0xf6f165('0x2433'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['BR']},{'name':_0xf6f165('0xca5'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['BS']},{'name':_0xf6f165('0x2c6'),'utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['BT']},{'name':_0xf6f165('0x137e'),'utcOffset':0xb4,'offsetStr':_0xf6f165('0xe2f'),'countries':['BY']},{'name':_0xf6f165('0x20f0'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['BZ']},{'name':_0xf6f165('0x1f69'),'utcOffset':-0xd2,'offsetStr':_0xf6f165('0x1dd4'),'countries':['CA']},{'name':_0xf6f165('0x26be'),'utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['CA']},{'name':'America/Glace_Bay','utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['CA']},{'name':_0xf6f165('0x91e'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},{'name':_0xf6f165('0x3e2'),'utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['CA']},{'name':'America/Blanc-Sablon','utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['CA']},{'name':'America/Toronto','utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['CA']},{'name':_0xf6f165('0x1d55'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['CA']},{'name':_0xf6f165('0x1c50'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['CA']},{'name':_0xf6f165('0x15fd'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['CA']},{'name':_0xf6f165('0x6ae'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['CA']},{'name':_0xf6f165('0x2006'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},{'name':_0xf6f165('0x1531'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},{'name':'America/Rankin_Inlet','utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['CA']},{'name':_0xf6f165('0x396'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['CA']},{'name':'America/Rainy_River','utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['CA']},{'name':_0xf6f165('0x241e'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['CA']},{'name':_0xf6f165('0xd05'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['CA']},{'name':_0xf6f165('0x1438'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':_0xf6f165('0x18a3'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['CA']},{'name':_0xf6f165('0x261f'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['CA']},{'name':_0xf6f165('0xace'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['CA']},{'name':_0xf6f165('0x2565'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},{'name':'America/Dawson_Creek','utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['CA']},{'name':_0xf6f165('0x1574'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['CA']},{'name':_0xf6f165('0x1024'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},{'name':'America/Whitehorse','utcOffset':-0x1e0,'offsetStr':_0xf6f165('0x25c0'),'countries':['CA']},{'name':_0xf6f165('0x2244'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},{'name':_0xf6f165('0x1b00'),'utcOffset':0x186,'offsetStr':_0xf6f165('0xa87'),'countries':['CC']},{'name':_0xf6f165('0x1577'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['CH','DE','LI']},{'name':_0xf6f165('0x1d12'),'utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},{'name':_0xf6f165('0xc2c'),'utcOffset':-0x258,'offsetStr':_0xf6f165('0x1016'),'countries':['CK']},{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['CL']},{'name':'Pacific/Easter','utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['CL']},{'name':_0xf6f165('0x1aa'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['CN']},{'name':_0xf6f165('0x7d0'),'utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['CN']},{'name':_0xf6f165('0xa84'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['CO']},{'name':'America/Costa_Rica','utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['CR']},{'name':_0xf6f165('0x42b'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CU']},{'name':_0xf6f165('0x63b'),'utcOffset':-0x3c,'offsetStr':_0xf6f165('0x1479'),'countries':['CV']},{'name':'America/Curacao','utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['CW','AW','BQ','SX']},{'name':_0xf6f165('0x23d9'),'utcOffset':0x1a4,'offsetStr':_0xf6f165('0xb70'),'countries':['CX']},{'name':_0xf6f165('0x241a'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['CY']},{'name':_0xf6f165('0x15d'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['CZ','SK']},{'name':_0xf6f165('0x1c43'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['DE']},{'name':'Europe/Copenhagen','utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['DK']},{'name':_0xf6f165('0x47f'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['DO']},{'name':_0xf6f165('0x2872'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['DZ']},{'name':'America/Guayaquil','utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['EC']},{'name':_0xf6f165('0xef3'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['EC']},{'name':_0xf6f165('0x151f'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['EE']},{'name':_0xf6f165('0x1ba0'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['EG']},{'name':'Africa/El_Aaiun','utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['EH']},{'name':_0xf6f165('0x1cb'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['ES']},{'name':_0xf6f165('0x2819'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['ES']},{'name':_0xf6f165('0x1fda'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['ES']},{'name':'Europe/Helsinki','utcOffset':0x78,'offsetStr':'+02:00','countries':['FI','AX']},{'name':'Pacific/Fiji','utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['FJ']},{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['FK']},{'name':'Pacific/Chuuk','utcOffset':0x258,'offsetStr':_0xf6f165('0x42f'),'countries':['FM']},{'name':_0xf6f165('0xd50'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['FM']},{'name':_0xf6f165('0x12fd'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['FM']},{'name':_0xf6f165('0x1357'),'utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['FO']},{'name':_0xf6f165('0x5a6'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['FR']},{'name':_0xf6f165('0x2100'),'utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['GB','GG','IM','JE']},{'name':'Asia/Tbilisi','utcOffset':0xf0,'offsetStr':_0xf6f165('0xe7'),'countries':['GE']},{'name':_0xf6f165('0x8d4'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['GF']},{'name':_0xf6f165('0x195f'),'utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['GH']},{'name':_0xf6f165('0x26d0'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['GI']},{'name':'America/Godthab','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['GL']},{'name':_0xf6f165('0x601'),'utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['GL']},{'name':'America/Scoresbysund','utcOffset':-0x3c,'offsetStr':'-01:00','countries':['GL']},{'name':_0xf6f165('0xddd'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GL']},{'name':_0xf6f165('0x3c3'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['GR']},{'name':_0xf6f165('0x1309'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['GS']},{'name':_0xf6f165('0x109'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['GT']},{'name':_0xf6f165('0x27ec'),'utcOffset':0x258,'offsetStr':_0xf6f165('0x42f'),'countries':['GU','MP']},{'name':_0xf6f165('0xd8'),'utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['GW']},{'name':_0xf6f165('0x19c4'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GY']},{'name':_0xf6f165('0xb6a'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['HK']},{'name':_0xf6f165('0x44e'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['HN']},{'name':_0xf6f165('0x1578'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['HT']},{'name':_0xf6f165('0x1f8'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['HU']},{'name':_0xf6f165('0x940'),'utcOffset':0x1a4,'offsetStr':_0xf6f165('0xb70'),'countries':['ID']},{'name':'Asia/Pontianak','utcOffset':0x1a4,'offsetStr':_0xf6f165('0xb70'),'countries':['ID']},{'name':'Asia/Makassar','utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['ID']},{'name':_0xf6f165('0x1e04'),'utcOffset':0x21c,'offsetStr':_0xf6f165('0x1cd1'),'countries':['ID']},{'name':_0xf6f165('0x26e3'),'utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['IE']},{'name':_0xf6f165('0x1d69'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['IL']},{'name':_0xf6f165('0x64d'),'utcOffset':0x14a,'offsetStr':_0xf6f165('0x19fa'),'countries':['IN']},{'name':_0xf6f165('0x988'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['IO']},{'name':_0xf6f165('0x2ae'),'utcOffset':0xb4,'offsetStr':_0xf6f165('0xe2f'),'countries':['IQ']},{'name':_0xf6f165('0x20ae'),'utcOffset':0xd2,'offsetStr':'+03:30','countries':['IR']},{'name':_0xf6f165('0x1270'),'utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['IS']},{'name':'Europe/Rome','utcOffset':0x3c,'offsetStr':'+01:00','countries':['IT','SM','VA']},{'name':_0xf6f165('0xa1a'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['JM']},{'name':_0xf6f165('0x94'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['JO']},{'name':'Asia/Tokyo','utcOffset':0x21c,'offsetStr':_0xf6f165('0x1cd1'),'countries':['JP']},{'name':_0xf6f165('0x2127'),'utcOffset':0xb4,'offsetStr':_0xf6f165('0xe2f'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},{'name':_0xf6f165('0x1f3d'),'utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['KG']},{'name':_0xf6f165('0x1b9f'),'utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['KI']},{'name':_0xf6f165('0x8ca'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['KI']},{'name':_0xf6f165('0x9c6'),'utcOffset':0x348,'offsetStr':_0xf6f165('0x1ccd'),'countries':['KI']},{'name':'Asia/Pyongyang','utcOffset':0x1fe,'offsetStr':_0xf6f165('0xd33'),'countries':['KP']},{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':_0xf6f165('0x1cd1'),'countries':['KR']},{'name':_0xf6f165('0x2488'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['KY']},{'name':'Asia/Almaty','utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['KZ']},{'name':_0xf6f165('0x5f8'),'utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['KZ']},{'name':_0xf6f165('0xe19'),'utcOffset':0x12c,'offsetStr':_0xf6f165('0xa42'),'countries':['KZ']},{'name':_0xf6f165('0x192a'),'utcOffset':0x12c,'offsetStr':_0xf6f165('0xa42'),'countries':['KZ']},{'name':'Asia/Oral','utcOffset':0x12c,'offsetStr':_0xf6f165('0xa42'),'countries':['KZ']},{'name':_0xf6f165('0x1be2'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['LB']},{'name':_0xf6f165('0x438'),'utcOffset':0x14a,'offsetStr':_0xf6f165('0x19fa'),'countries':['LK']},{'name':_0xf6f165('0x9b'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['LR']},{'name':_0xf6f165('0xb1d'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['LT']},{'name':_0xf6f165('0x64e'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['LU']},{'name':'Europe/Riga','utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['LV']},{'name':_0xf6f165('0x213e'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['LY']},{'name':'Africa/Casablanca','utcOffset':0x0,'offsetStr':'+00:00','countries':['MA']},{'name':_0xf6f165('0x141d'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['MC']},{'name':_0xf6f165('0x1045'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['MD']},{'name':'Pacific/Majuro','utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['MH']},{'name':_0xf6f165('0xd1a'),'utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['MH']},{'name':_0xf6f165('0x19c9'),'utcOffset':0x186,'offsetStr':_0xf6f165('0xa87'),'countries':['MM']},{'name':_0xf6f165('0x122'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['MN']},{'name':_0xf6f165('0xc5'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['MN']},{'name':_0xf6f165('0x1b72'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['MN']},{'name':_0xf6f165('0x2258'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MO']},{'name':_0xf6f165('0x84e'),'utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['MQ']},{'name':_0xf6f165('0xc2a'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['MT']},{'name':_0xf6f165('0x1f2c'),'utcOffset':0xf0,'offsetStr':_0xf6f165('0xe7'),'countries':['MU']},{'name':_0xf6f165('0x279e'),'utcOffset':0x12c,'offsetStr':_0xf6f165('0xa42'),'countries':['MV']},{'name':'America/Mexico_City','utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['MX']},{'name':'America/Cancun','utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['MX']},{'name':_0xf6f165('0x28b9'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['MX']},{'name':_0xf6f165('0x14dc'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},{'name':_0xf6f165('0x1f98'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['MX']},{'name':_0xf6f165('0x145e'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['MX']},{'name':_0xf6f165('0x1601'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['MX']},{'name':_0xf6f165('0x7be'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['MX']},{'name':_0xf6f165('0x2563'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['MX']},{'name':_0xf6f165('0x13ad'),'utcOffset':-0x1e0,'offsetStr':_0xf6f165('0x25c0'),'countries':['MX']},{'name':_0xf6f165('0x2115'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['MX']},{'name':_0xf6f165('0xbed'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['MX']},{'name':_0xf6f165('0x11b6'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0xf6f165('0x172d'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},{'name':_0xf6f165('0x28e7'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},{'name':_0xf6f165('0x1262'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['NA']},{'name':'Pacific/Noumea','utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['NC']},{'name':_0xf6f165('0xa54'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['NF']},{'name':_0xf6f165('0xf62'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},{'name':_0xf6f165('0x211c'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['NI']},{'name':_0xf6f165('0x2481'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['NL']},{'name':'Europe/Oslo','utcOffset':0x3c,'offsetStr':'+01:00','countries':['NO','SJ']},{'name':_0xf6f165('0x11f2'),'utcOffset':0x159,'offsetStr':_0xf6f165('0x1a32'),'countries':['NP']},{'name':_0xf6f165('0x1463'),'utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['NR']},{'name':'Pacific/Niue','utcOffset':-0x294,'offsetStr':_0xf6f165('0xdff'),'countries':['NU']},{'name':_0xf6f165('0x19c2'),'utcOffset':0x30c,'offsetStr':_0xf6f165('0x1d16'),'countries':['NZ','AQ']},{'name':'Pacific/Chatham','utcOffset':0x339,'offsetStr':_0xf6f165('0x195b'),'countries':['NZ']},{'name':_0xf6f165('0x1056'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['PA']},{'name':_0xf6f165('0xa5b'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['PE']},{'name':_0xf6f165('0x2836'),'utcOffset':-0x258,'offsetStr':_0xf6f165('0x1016'),'countries':['PF']},{'name':_0xf6f165('0x236'),'utcOffset':-0x23a,'offsetStr':_0xf6f165('0x1546'),'countries':['PF']},{'name':_0xf6f165('0x2605'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['PF']},{'name':_0xf6f165('0x183e'),'utcOffset':0x258,'offsetStr':_0xf6f165('0x42f'),'countries':['PG']},{'name':_0xf6f165('0x72b'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['PG']},{'name':_0xf6f165('0x21fd'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['PH']},{'name':_0xf6f165('0x1666'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},{'name':'Europe/Warsaw','utcOffset':0x3c,'offsetStr':'+01:00','countries':['PL']},{'name':_0xf6f165('0x1e2c'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['PM']},{'name':'Pacific/Pitcairn','utcOffset':-0x1e0,'offsetStr':_0xf6f165('0x25c0'),'countries':['PN']},{'name':_0xf6f165('0x223d'),'utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['PR']},{'name':_0xf6f165('0x1358'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['PS']},{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['PS']},{'name':'Europe/Lisbon','utcOffset':0x0,'offsetStr':_0xf6f165('0x1a33'),'countries':['PT']},{'name':_0xf6f165('0x20a0'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},{'name':_0xf6f165('0x24e3'),'utcOffset':-0x3c,'offsetStr':_0xf6f165('0x1479'),'countries':['PT']},{'name':_0xf6f165('0xaad'),'utcOffset':0x21c,'offsetStr':_0xf6f165('0x1cd1'),'countries':['PW']},{'name':_0xf6f165('0x10dd'),'utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['PY']},{'name':_0xf6f165('0x6cd'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['QA','BH']},{'name':_0xf6f165('0x50e'),'utcOffset':0xf0,'offsetStr':_0xf6f165('0xe7'),'countries':['RE','TF']},{'name':_0xf6f165('0x12f7'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['RO']},{'name':_0xf6f165('0xe2d'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['RS','BA','HR','ME','MK','SI']},{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['RU']},{'name':'Europe/Moscow','utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},{'name':_0xf6f165('0xff'),'utcOffset':0xb4,'offsetStr':_0xf6f165('0xe2f'),'countries':['RU']},{'name':'Europe/Volgograd','utcOffset':0xb4,'offsetStr':_0xf6f165('0xe2f'),'countries':['RU']},{'name':_0xf6f165('0x21ce'),'utcOffset':0xf0,'offsetStr':_0xf6f165('0xe7'),'countries':['RU']},{'name':'Asia/Yekaterinburg','utcOffset':0x12c,'offsetStr':'+05:00','countries':['RU']},{'name':_0xf6f165('0x12ca'),'utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['RU']},{'name':_0xf6f165('0x864'),'utcOffset':0x168,'offsetStr':_0xf6f165('0x22d8'),'countries':['RU']},{'name':'Asia/Novokuznetsk','utcOffset':0x1a4,'offsetStr':_0xf6f165('0xb70'),'countries':['RU']},{'name':_0xf6f165('0xe6'),'utcOffset':0x1a4,'offsetStr':_0xf6f165('0xb70'),'countries':['RU']},{'name':_0xf6f165('0x15f2'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['RU']},{'name':_0xf6f165('0x1e51'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['RU']},{'name':_0xf6f165('0x1fc1'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},{'name':_0xf6f165('0xbc7'),'utcOffset':0x21c,'offsetStr':_0xf6f165('0x1cd1'),'countries':['RU']},{'name':_0xf6f165('0x2308'),'utcOffset':0x258,'offsetStr':_0xf6f165('0x42f'),'countries':['RU']},{'name':_0xf6f165('0x23d'),'utcOffset':0x258,'offsetStr':_0xf6f165('0x42f'),'countries':['RU']},{'name':'Asia/Ust-Nera','utcOffset':0x258,'offsetStr':_0xf6f165('0x42f'),'countries':['RU']},{'name':_0xf6f165('0x28d6'),'utcOffset':0x258,'offsetStr':_0xf6f165('0x42f'),'countries':['RU']},{'name':_0xf6f165('0x2832'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['RU']},{'name':'Asia/Kamchatka','utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['RU']},{'name':_0xf6f165('0x28ca'),'utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['RU']},{'name':_0xf6f165('0x18a8'),'utcOffset':0xb4,'offsetStr':_0xf6f165('0xe2f'),'countries':['SA','KW','YE']},{'name':_0xf6f165('0xb1c'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['SB']},{'name':_0xf6f165('0x2626'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['SC']},{'name':_0xf6f165('0x1687'),'utcOffset':0xb4,'offsetStr':_0xf6f165('0xe2f'),'countries':['SD','SS']},{'name':_0xf6f165('0x23f8'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['SE']},{'name':_0xf6f165('0xf8c'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['SG']},{'name':_0xf6f165('0x197'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['SR']},{'name':_0xf6f165('0xfaa'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['SV']},{'name':'Asia/Damascus','utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['SY']},{'name':_0xf6f165('0x1caa'),'utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['TC']},{'name':_0xf6f165('0x41'),'utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['TD']},{'name':'Indian/Kerguelen','utcOffset':0x12c,'offsetStr':_0xf6f165('0xa42'),'countries':['TF']},{'name':_0xf6f165('0x1f32'),'utcOffset':0x1a4,'offsetStr':_0xf6f165('0xb70'),'countries':['TH','KH','LA','VN']},{'name':_0xf6f165('0x10e'),'utcOffset':0x12c,'offsetStr':_0xf6f165('0xa42'),'countries':['TJ']},{'name':_0xf6f165('0xfa1'),'utcOffset':0x30c,'offsetStr':_0xf6f165('0x1d16'),'countries':['TK']},{'name':_0xf6f165('0x13ab'),'utcOffset':0x21c,'offsetStr':_0xf6f165('0x1cd1'),'countries':['TL']},{'name':'Asia/Ashgabat','utcOffset':0x12c,'offsetStr':_0xf6f165('0xa42'),'countries':['TM']},{'name':'Africa/Tunis','utcOffset':0x3c,'offsetStr':_0xf6f165('0x837'),'countries':['TN']},{'name':'Pacific/Tongatapu','utcOffset':0x30c,'offsetStr':'+13:00','countries':['TO']},{'name':'Europe/Istanbul','utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['TR']},{'name':'America/Port_of_Spain','utcOffset':-0xf0,'offsetStr':_0xf6f165('0x834'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},{'name':'Pacific/Funafuti','utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['TV']},{'name':_0xf6f165('0x2687'),'utcOffset':0x1e0,'offsetStr':_0xf6f165('0x103'),'countries':['TW']},{'name':_0xf6f165('0x1981'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['UA']},{'name':'Europe/Uzhgorod','utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},{'name':_0xf6f165('0x13da'),'utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['UA']},{'name':_0xf6f165('0x6f1'),'utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['UM']},{'name':'America/New_York','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0xf6f165('0x1b38'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Kentucky/Louisville','utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['US']},{'name':_0xf6f165('0x2294'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['US']},{'name':_0xf6f165('0x249e'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['US']},{'name':_0xf6f165('0x1c64'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0xf6f165('0x283c'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':_0xf6f165('0x2039'),'utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['US']},{'name':'America/Indiana/Petersburg','utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},{'name':'America/Indiana/Vevay','utcOffset':-0x12c,'offsetStr':_0xf6f165('0x27c9'),'countries':['US']},{'name':_0xf6f165('0x7b2'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['US']},{'name':_0xf6f165('0xfe6'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0xf6f165('0x15e'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['US']},{'name':_0xf6f165('0x12ea'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['US']},{'name':'America/North_Dakota/Center','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},{'name':_0xf6f165('0x2691'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['US']},{'name':_0xf6f165('0x7b3'),'utcOffset':-0x168,'offsetStr':_0xf6f165('0x1076'),'countries':['US']},{'name':_0xf6f165('0xfe8'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},{'name':_0xf6f165('0xd9a'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['US']},{'name':_0xf6f165('0x255b'),'utcOffset':-0x1a4,'offsetStr':_0xf6f165('0x21f8'),'countries':['US']},{'name':'America/Los_Angeles','utcOffset':-0x1e0,'offsetStr':_0xf6f165('0x25c0'),'countries':['US']},{'name':'America/Metlakatla','utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},{'name':_0xf6f165('0x269e'),'utcOffset':-0x21c,'offsetStr':_0xf6f165('0x1295'),'countries':['US']},{'name':_0xf6f165('0x283a'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},{'name':_0xf6f165('0x100e'),'utcOffset':-0x21c,'offsetStr':_0xf6f165('0x1295'),'countries':['US']},{'name':_0xf6f165('0xb96'),'utcOffset':-0x21c,'offsetStr':_0xf6f165('0x1295'),'countries':['US']},{'name':_0xf6f165('0x28b7'),'utcOffset':-0x21c,'offsetStr':_0xf6f165('0x1295'),'countries':['US']},{'name':'America/Adak','utcOffset':-0x258,'offsetStr':'-10:00','countries':['US']},{'name':_0xf6f165('0x1a1d'),'utcOffset':-0x258,'offsetStr':'-10:00','countries':['US','UM']},{'name':'America/Montevideo','utcOffset':-0xb4,'offsetStr':_0xf6f165('0x1734'),'countries':['UY']},{'name':_0xf6f165('0x12e8'),'utcOffset':0x12c,'offsetStr':_0xf6f165('0xa42'),'countries':['UZ']},{'name':_0xf6f165('0xcf9'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},{'name':_0xf6f165('0x1c5d'),'utcOffset':-0x10e,'offsetStr':_0xf6f165('0x200'),'countries':['VE']},{'name':_0xf6f165('0x28c0'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['VN']},{'name':_0xf6f165('0x1b87'),'utcOffset':0x294,'offsetStr':_0xf6f165('0xe0c'),'countries':['VU']},{'name':_0xf6f165('0xcac'),'utcOffset':0x2d0,'offsetStr':_0xf6f165('0x124c'),'countries':['WF']},{'name':_0xf6f165('0x679'),'utcOffset':0x348,'offsetStr':'+14:00','countries':['WS']},{'name':'Africa/Johannesburg','utcOffset':0x78,'offsetStr':_0xf6f165('0x1932'),'countries':['ZA','LS','SZ']}];}],'templateUrl':_0x52d68b};}const _0x5b40bb=_0xb65884;;function _0x56e9ca(){const _0x5608cc=_0x4376d8,_0x2b988d=this;_0x2b988d[_0x5608cc('0x2483')]=[],_0x2b988d[_0x5608cc('0x2329')]=![],_0x2b988d['fontSize']=0x14;function _0x1d8d4c(_0x4b7e6a){const _0x135cb7=_0x5608cc;let _0xd4ccce=0x0;if(_0x4b7e6a){_0x2b988d[_0x135cb7('0x2210')]=_0x4b7e6a[_0x135cb7('0xbf3')][0x2]&&_0x4b7e6a[_0x135cb7('0xbf3')][0x2][_0x135cb7('0x175b')]?parseInt(_0x4b7e6a['attrs'][0x2][_0x135cb7('0x175b')])-parseInt(_0x4b7e6a['attrs'][0x2][_0x135cb7('0x175b')])%0x2:0x14;_0x4b7e6a[_0x135cb7('0xbf3')][0x1][_0x135cb7('0x175b')]&&_0x4b7e6a[_0x135cb7('0xbf3')][0x1][_0x135cb7('0x175b')][_0x135cb7('0x1f73')]?(_0x2b988d['filtered']=!![],_0x2b988d[_0x135cb7('0x2483')]=_0x49cbdd()[_0x135cb7('0x1d99')](_0x4b7e6a['voiceQueuesSelected'],_0x4b7e6a[_0x135cb7('0xbf3')][0x1][_0x135cb7('0x175b')])):(_0x2b988d[_0x135cb7('0x2329')]=![],_0x2b988d[_0x135cb7('0x2483')]=_0x4b7e6a[_0x135cb7('0x1494')]);for(let _0x5555c5=0x0;_0x5555c5<_0x4b7e6a[_0x135cb7('0x160f')]['rows'][_0x135cb7('0x1f73')];_0x5555c5+=0x1){_0x49cbdd()[_0x135cb7('0x24b0')](_0x2b988d[_0x135cb7('0x2483')],_0x4b7e6a[_0x135cb7('0x160f')]['rows'][_0x5555c5]['id'])&&(_0xd4ccce+=_0x4b7e6a['voiceQueues'][_0x135cb7('0x2319')][_0x5555c5][_0x4b7e6a[_0x135cb7('0xbf3')][0x0]['value']]?parseInt(_0x4b7e6a[_0x135cb7('0x160f')][_0x135cb7('0x2319')][_0x5555c5][_0x4b7e6a[_0x135cb7('0xbf3')][0x0][_0x135cb7('0x175b')]]):0x0);}}return _0xd4ccce;}_0x2b988d[_0x5608cc('0x216a')]=_0x1d8d4c;}const _0x2ece99=_0x56e9ca;_0x4d273c[_0x4376d8('0x1b9c')]=['$translate'];function _0x4d273c(_0x2da811){const _0x4d92ce=_0x4376d8,_0x2b1e8d=this;_0x2b1e8d['filter']=[],_0x2b1e8d[_0x4d92ce('0x2329')]=![],_0x2b1e8d[_0x4d92ce('0x15fe')]=[],_0x2b1e8d[_0x4d92ce('0x2420')]={'labels':[_0x4d92ce('0x26e5')],'series':['TOTAL'],'data':[[0x32]],'options':{'responsive':!![],'legend':{'display':!![],'fontColor':_0x4d92ce('0x185d')},'scales':{'xAxes':[{'gridLines':{'display':!![]},'ticks':{'fontColor':'#2196f3','stepSize':0x1,'beginAtZero':!![]}}],'yAxes':[{'gridLines':{'display':![]},'ticks':{'fontColor':_0x4d92ce('0x185d')}}]}}};function _0x4ad904(_0x19df87){const _0x503aea=_0x4d92ce;_0x2b1e8d[_0x503aea('0x15fe')]=_0x49cbdd()[_0x503aea('0x787')](_0x49cbdd()[_0x503aea('0x2483')](_0x19df87[_0x503aea('0xbf3')],function(_0x4903de){const _0x208361=_0x503aea;return _0x4903de[_0x208361('0x2aa')]&&_0x4903de[_0x208361('0x2aa')][_0x208361('0x2567')](_0x208361('0x1810'))>=0x0&&_0x4903de['value']&&_0x4903de[_0x208361('0x175b')]!==_0x208361('0x9bb');}),_0x503aea('0x175b'));_0x19df87[_0x503aea('0xbf3')][0x3][_0x503aea('0x175b')]&&_0x19df87[_0x503aea('0xbf3')][0x3][_0x503aea('0x175b')][_0x503aea('0x1f73')]?(_0x2b1e8d['filtered']=!![],_0x2b1e8d[_0x503aea('0x2483')]=_0x49cbdd()[_0x503aea('0x1d99')](_0x19df87[_0x503aea('0x1494')],_0x19df87[_0x503aea('0xbf3')][0x3][_0x503aea('0x175b')])):(_0x2b1e8d[_0x503aea('0x2329')]=![],_0x2b1e8d[_0x503aea('0x2483')]=_0x19df87[_0x503aea('0x1494')]);if(_0x2b1e8d['multiBarChart'][_0x503aea('0x1487')]['length']>_0x2b1e8d[_0x503aea('0x15fe')][_0x503aea('0x1f73')]){const _0x1a493e=_0x2b1e8d[_0x503aea('0x2420')]['series'][_0x503aea('0x1f73')]-_0x2b1e8d[_0x503aea('0x15fe')]['length'];_0x2b1e8d['multiBarChart']['series'][_0x503aea('0x2335')](0x0,_0x1a493e),_0x2b1e8d['multiBarChart']['data'][_0x503aea('0x2335')](0x0,_0x1a493e);}for(let _0x33659d=0x0;_0x33659d<_0x2b1e8d['properties']['length'];_0x33659d+=0x1){_0x2b1e8d['multiBarChart'][_0x503aea('0x1487')][_0x33659d]=_0x2da811[_0x503aea('0x1acc')](_0x503aea('0x370')+_0x2b1e8d[_0x503aea('0x15fe')][_0x33659d][_0x503aea('0x14e2')]());_0x49cbdd()[_0x503aea('0x390')](_0x2b1e8d[_0x503aea('0x2420')]['data'][_0x33659d])&&(_0x2b1e8d[_0x503aea('0x2420')]['data'][_0x33659d]=[]);if(_0x2b1e8d['multiBarChart']['labels'][_0x503aea('0x1f73')]>_0x2b1e8d[_0x503aea('0x2483')][_0x503aea('0x1f73')]){const _0x24f12d=_0x2b1e8d['multiBarChart'][_0x503aea('0x14ee')]['length']-_0x2b1e8d[_0x503aea('0x2483')]['length'];_0x2b1e8d[_0x503aea('0x2420')][_0x503aea('0x14ee')]['splice'](0x0,_0x24f12d),_0x2b1e8d[_0x503aea('0x2420')][_0x503aea('0x1457')][_0x33659d][_0x503aea('0x2335')](0x0,_0x24f12d);}for(let _0x3f12e8=0x0,_0x438483=0x0;_0x3f12e8<_0x19df87[_0x503aea('0x160f')]['rows'][_0x503aea('0x1f73')];_0x3f12e8+=0x1){_0x49cbdd()[_0x503aea('0x24b0')](_0x2b1e8d['filter'],_0x19df87[_0x503aea('0x160f')][_0x503aea('0x2319')][_0x3f12e8]['id'])&&(_0x2b1e8d['multiBarChart'][_0x503aea('0x14ee')][_0x438483]=_0x19df87['voiceQueues'][_0x503aea('0x2319')][_0x3f12e8]['name'],_0x2b1e8d['multiBarChart'][_0x503aea('0x1457')][_0x33659d][_0x438483]=_0x19df87['voiceQueues'][_0x503aea('0x2319')][_0x3f12e8][_0x2b1e8d[_0x503aea('0x15fe')][_0x33659d]]?parseInt(_0x19df87[_0x503aea('0x160f')][_0x503aea('0x2319')][_0x3f12e8][_0x2b1e8d[_0x503aea('0x15fe')][_0x33659d]]):0x0,_0x438483+=0x1);}}}function _0x35fd2d(_0x2d5e28){const _0x420812=_0x4d92ce;_0x2b1e8d[_0x420812('0x2420')][_0x420812('0x19')][_0x420812('0xbf0')][_0x420812('0x71f')]=_0x2d5e28[_0x420812('0x23e1')];for(let _0xc4828=0x0;_0xc4828<_0x2b1e8d[_0x420812('0x2420')]['options']['scales'][_0x420812('0x1399')]['length'];_0xc4828+=0x1){_0x2b1e8d[_0x420812('0x2420')][_0x420812('0x19')][_0x420812('0x2248')]['xAxes'][_0xc4828][_0x420812('0x7b7')][_0x420812('0x71f')]=_0x2d5e28[_0x420812('0x23e1')];}for(let _0x24c6c6=0x0;_0x24c6c6<_0x2b1e8d['multiBarChart'][_0x420812('0x19')][_0x420812('0x2248')][_0x420812('0x28dc')]['length'];_0x24c6c6+=0x1){_0x2b1e8d[_0x420812('0x2420')][_0x420812('0x19')][_0x420812('0x2248')]['yAxes'][_0x24c6c6]['ticks']['fontColor']=_0x2d5e28['foreground'];}}function _0x17425f(_0x1fd28e){const _0x2ca488=_0x4d92ce;_0x1fd28e&&(_0x1fd28e['attrs']&&_0x4ad904(_0x1fd28e),_0x1fd28e[_0x2ca488('0x23e1')]&&_0x35fd2d(_0x1fd28e));}_0x2b1e8d[_0x4d92ce('0xa14')]=_0x17425f;}const _0x1b462f=_0x4d273c;_0x4840f0[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28da')];function _0x4840f0(_0x30f803){const _0x47ee20=_0x4376d8,_0x438f11=this;_0x438f11[_0x47ee20('0x2483')]=[],_0x438f11[_0x47ee20('0x2329')]=![],_0x438f11[_0x47ee20('0x15fe')]=[],_0x438f11['pieChart']={'labels':[_0x47ee20('0xc73')],'data':[0x1e],'options':{'responsive':!![],'legend':{'display':!![]}}};function _0x9438f5(_0x5c8cc6){const _0x1c6e4b=_0x47ee20;_0x438f11[_0x1c6e4b('0x15fe')]=_0x49cbdd()[_0x1c6e4b('0x787')](_0x49cbdd()[_0x1c6e4b('0x2483')](_0x5c8cc6[_0x1c6e4b('0xbf3')],function(_0x82aad0){const _0x14220e=_0x1c6e4b;return _0x82aad0[_0x14220e('0x2aa')]&&_0x82aad0[_0x14220e('0x2aa')][_0x14220e('0x2567')](_0x14220e('0x1810'))>=0x0&&_0x82aad0[_0x14220e('0x175b')]&&_0x82aad0[_0x14220e('0x175b')]!==_0x14220e('0x9bb');}),_0x1c6e4b('0x175b'));_0x5c8cc6['attrs'][0x3][_0x1c6e4b('0x175b')]&&_0x5c8cc6['attrs'][0x3][_0x1c6e4b('0x175b')][_0x1c6e4b('0x1f73')]?(_0x438f11['filtered']=!![],_0x438f11[_0x1c6e4b('0x2483')]=_0x49cbdd()[_0x1c6e4b('0x1d99')](_0x5c8cc6[_0x1c6e4b('0x1494')],_0x5c8cc6[_0x1c6e4b('0xbf3')][0x3]['value'])):(_0x438f11[_0x1c6e4b('0x2329')]=![],_0x438f11[_0x1c6e4b('0x2483')]=_0x5c8cc6[_0x1c6e4b('0x1494')]);if(_0x438f11['pieChart'][_0x1c6e4b('0x14ee')][_0x1c6e4b('0x1f73')]>_0x438f11[_0x1c6e4b('0x15fe')][_0x1c6e4b('0x1f73')]){const _0x7456b=_0x438f11[_0x1c6e4b('0x16ff')][_0x1c6e4b('0x14ee')][_0x1c6e4b('0x1f73')]-_0x438f11['properties'][_0x1c6e4b('0x1f73')];_0x438f11['pieChart'][_0x1c6e4b('0x14ee')][_0x1c6e4b('0x2335')](0x0,_0x7456b),_0x438f11[_0x1c6e4b('0x16ff')][_0x1c6e4b('0x1457')][_0x1c6e4b('0x2335')](0x0,_0x7456b);}for(let _0x9ae655=0x0,_0x3a3cd6=0x0;_0x9ae655<_0x438f11[_0x1c6e4b('0x15fe')][_0x1c6e4b('0x1f73')];_0x9ae655+=0x1){_0x438f11['pieChart'][_0x1c6e4b('0x14ee')][_0x9ae655]=_0x30f803[_0x1c6e4b('0x1acc')]('TOOLS.'+_0x438f11[_0x1c6e4b('0x15fe')][_0x9ae655][_0x1c6e4b('0x14e2')]());for(let _0x4fc25a=0x0;_0x4fc25a<_0x5c8cc6[_0x1c6e4b('0x160f')][_0x1c6e4b('0x2319')]['length'];_0x4fc25a+=0x1){_0x49cbdd()['includes'](_0x438f11[_0x1c6e4b('0x2483')],_0x5c8cc6[_0x1c6e4b('0x160f')][_0x1c6e4b('0x2319')][_0x4fc25a]['id'])&&(_0x3a3cd6+=_0x5c8cc6[_0x1c6e4b('0x160f')][_0x1c6e4b('0x2319')][_0x4fc25a][_0x438f11[_0x1c6e4b('0x15fe')][_0x9ae655]]?parseInt(_0x5c8cc6[_0x1c6e4b('0x160f')]['rows'][_0x4fc25a][_0x438f11['properties'][_0x9ae655]]):0x0);}_0x438f11[_0x1c6e4b('0x16ff')][_0x1c6e4b('0x1457')][_0x9ae655]=_0x3a3cd6,_0x3a3cd6=0x0;}}function _0x28fadd(_0x9c941c){const _0x53e35b=_0x47ee20;_0x438f11['pieChart']['options']['legend'][_0x53e35b('0x71f')]=_0x9c941c[_0x53e35b('0x23e1')];}function _0x254726(_0x59c0ba){const _0x36d8b2=_0x47ee20;_0x59c0ba&&(_0x59c0ba['attrs']&&_0x9438f5(_0x59c0ba),_0x59c0ba[_0x36d8b2('0x23e1')]&&_0x28fadd(_0x59c0ba));}_0x438f11[_0x47ee20('0x140e')]=_0x254726;}const _0x3ea426=_0x4840f0;_0x4cd6b2[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xef1'),_0x4376d8('0x33a'),_0x4376d8('0x212e')];function _0x4cd6b2(_0x2ee43a,_0x12667c,_0x177a33,_0x14dfe3){const _0x2385cf=_0x4376d8,_0x10b2fa=this;_0x10b2fa['countDown']=0x0,_0x10b2fa[_0x2385cf('0x26de')]=0x0,_0x10b2fa[_0x2385cf('0x24d3')]='',_0x10b2fa[_0x2385cf('0xd72')]=[],_0x10b2fa[_0x2385cf('0x2a')]={'rows':[],'count':0x0},_0x10b2fa[_0x2385cf('0x826')]={'limit':0xa,'page':0x1,'startDate':_0x107a13()()[_0x2385cf('0x161c')](_0x2385cf('0x26d6'))['format'](_0x2385cf('0x1e17')),'endDate':_0x107a13()()[_0x2385cf('0x200e')](_0x2385cf('0x26d6'))[_0x2385cf('0x1c0d')](_0x2385cf('0x1e17')),'output':_0x2385cf('0x11')},_0x10b2fa[_0x2385cf('0xdf0')]=_0x445588,_0x10b2fa[_0x2385cf('0x1f9d')]=_0x2a2d69,_0x10b2fa[_0x2385cf('0x187d')]=_0x17b96b;function _0x445588(_0x5c095a){const _0x438aff=_0x2385cf;_0x5c095a&&(_0x5c095a[_0x438aff('0xbf3')]&&(_0x5c095a[_0x438aff('0xbf3')][0x0]&&_0x5c095a[_0x438aff('0xbf3')][0x0][_0x438aff('0x175b')]&&(_0x10b2fa[_0x438aff('0x826')]['id']=_0x5c095a[_0x438aff('0xbf3')][0x0][_0x438aff('0x175b')],_0x14dfe3[_0x438aff('0x1a36')][_0x438aff('0x1c53')]({'fields':'field,alias','nolimit':!![],'DefaultReportId':_0x5c095a[_0x438aff('0xbf3')][0x0][_0x438aff('0x412')]===_0x438aff('0x1543')?_0x5c095a[_0x438aff('0xbf3')][0x0][_0x438aff('0x175b')]:undefined,'CustomReportId':_0x5c095a[_0x438aff('0xbf3')][0x0][_0x438aff('0x412')]==='custom'?_0x5c095a[_0x438aff('0xbf3')][0x0][_0x438aff('0x175b')]:undefined})[_0x438aff('0x1af5')]['then'](function(_0x1809af){const _0x5acf43=_0x438aff;_0x1809af&&_0x1809af[_0x5acf43('0x2319')]&&(_0x10b2fa[_0x5acf43('0xd72')]=_0x1809af[_0x5acf43('0x2319')]);switch(_0x5c095a[_0x5acf43('0xbf3')][0x0][_0x5acf43('0x412')]){case _0x5acf43('0x1543'):_0x10b2fa['reportRoute']=_0x5acf43('0x1369');break;case _0x5acf43('0x8fa'):_0x10b2fa[_0x5acf43('0x1696')]=_0x5acf43('0x18bc');break;}return _0x14dfe3[_0x10b2fa[_0x5acf43('0x1696')]][_0x5acf43('0x1c53')]({'id':_0x5c095a[_0x5acf43('0xbf3')][0x0][_0x5acf43('0x175b')],'fields':_0x5acf43('0x12d2')})[_0x5acf43('0x1af5')];})['then'](function(_0x5c32b1){const _0x2f087b=_0x438aff;_0x5c32b1&&_0x5c32b1[_0x2f087b('0x2aa')]&&(_0x10b2fa[_0x2f087b('0x24d3')]=_0x5c32b1[_0x2f087b('0x2aa')]),_0x2a2d69();})['catch'](function(_0x415acc){console['log'](_0x415acc);})),_0x5c095a[_0x438aff('0xbf3')][0x1]&&_0x5c095a[_0x438aff('0xbf3')][0x1]['value']&&(_0x10b2fa[_0x438aff('0x26de')]=parseInt(_0x5c095a[_0x438aff('0xbf3')][0x1][_0x438aff('0x175b')]),!_0x49cbdd()['isNaN'](_0x10b2fa[_0x438aff('0x26de')])&&_0x10b2fa[_0x438aff('0x26de')]>0x0?(_0x10b2fa[_0x438aff('0x7b4')]=parseInt(_0x5c095a[_0x438aff('0xbf3')][0x1]['value']),_0x10b2fa[_0x438aff('0x231f')]=_0x177a33(function(){_0x10b2fa['countDown']-=0x1;},0x3e8,0x0),_0x10b2fa[_0x438aff('0xd2f')]=_0x12667c(function(){const _0x62019b=_0x438aff;_0x10b2fa[_0x62019b('0x231f')]&&_0x177a33['cancel'](_0x10b2fa[_0x62019b('0x231f')]),_0x445588(_0x5c095a);},_0x10b2fa[_0x438aff('0x26de')]*0x3e8)):(_0x10b2fa[_0x438aff('0x231f')]&&_0x177a33[_0x438aff('0x1d47')](_0x10b2fa[_0x438aff('0x231f')]),_0x10b2fa[_0x438aff('0xd2f')]&&_0x12667c[_0x438aff('0x1d47')](_0x10b2fa[_0x438aff('0xd2f')])))));}function _0x29d482(_0x14afcc){const _0x171e75=_0x2385cf;_0x10b2fa[_0x171e75('0x2a')]=_0x14afcc||{'count':0x0,'rows':[]};}function _0x2a2d69(){const _0x13bd2e=_0x2385cf;_0x10b2fa[_0x13bd2e('0x826')][_0x13bd2e('0xf19')]=(_0x10b2fa[_0x13bd2e('0x826')][_0x13bd2e('0x115a')]-0x1)*_0x10b2fa[_0x13bd2e('0x826')]['limit'],_0x10b2fa['promise']=_0x14dfe3[_0x10b2fa['reportRoute']][_0x13bd2e('0x1a46')](_0x10b2fa[_0x13bd2e('0x826')],_0x29d482)[_0x13bd2e('0x1af5')];}function _0x17b96b(_0x3252f7,_0x5641d5){const _0x465aa4=_0x2385cf;return _0x107a13()(_0x5641d5,_0x465aa4('0xfd0'),!![])[_0x465aa4('0xc98')]()&&(_0x5641d5=_0x107a13()(_0x5641d5,'')['format'](_0x465aa4('0x1e17'))),_0x5641d5;}_0x2ee43a[_0x2385cf('0x207c')](_0x2385cf('0x2b4'),function(){const _0x3a392b=_0x2385cf;_0x10b2fa['interval']&&_0x177a33['cancel'](_0x10b2fa[_0x3a392b('0x231f')]),_0x10b2fa['timeout']&&_0x12667c[_0x3a392b('0x1d47')](_0x10b2fa['timeout']);});}const _0xa5b3d7=_0x4cd6b2,_0x5517c7=_0x4cf2bc['p']+'src/js/modules/core/directives/ms-widget-engine/ms-widget-engine.html/ms-widget-engine.html';_0x315d26[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x92d')];function _0x315d26(_0x33c613,_0x4baee8){const _0xd66a5b=_0x4376d8,_0x42d1b2=this;function _0x3e2599(_0x32a005){return _0x4baee8['trustAsResourceUrl'](_0x32a005);}_0x42d1b2[_0xd66a5b('0xe7c')]=_0x3e2599;}function _0x103cb0(){const _0x492e42=_0x4376d8;return{'restrict':'E','scope':{'config':'=?','onEdit':'&?','onDelete':'&?'},'require':_0x492e42('0xf48'),'controller':_0x492e42('0x1888'),'controllerAs':'vm','bindToController':!![],'templateUrl':_0x5517c7};}_0x313f95[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$element'];function _0x313f95(_0x2e50d4,_0x8e637d){const _0x517a8d=_0x4376d8,_0x53da98=this;_0x53da98[_0x517a8d('0x2858')]=![];function _0x1f8515(){const _0x39b825=_0x517a8d;return angular[_0x39b825('0x170a')](_0x2e50d4[_0x39b825('0x155c')])&&_0x2e50d4[_0x39b825('0x155c')]===!![];}function _0x31a15e(){const _0x1267dc=_0x517a8d;if(!_0x1f8515())return;_0x53da98[_0x1267dc('0x2858')]=!_0x53da98['flipped'],_0x8e637d['toggleClass'](_0x1267dc('0x2858'),_0x53da98[_0x1267dc('0x2858')]);}_0x53da98[_0x517a8d('0x2451')]=_0x31a15e;}function _0x43362d(){const _0x291351=_0x4376d8;return{'restrict':'E','scope':{'flippable':'=?'},'controller':_0x291351('0xae9'),'transclude':!![],'compile':function(_0x2445d2){const _0x29e8f5=_0x291351;return _0x2445d2['addClass'](_0x29e8f5('0x2072')),function _0x3154d8(_0x41ce2d,_0x22c16f,_0x3cdbfd,_0x522ece,_0x3263e4){_0x3263e4(function(_0x546b16){const _0x29b474=a0_0xd29e;_0x22c16f['empty'](),_0x22c16f[_0x29b474('0x25a')](_0x546b16);});};}};}function _0x1b33ac(){const _0x6a5f1c=_0x4376d8;return{'restrict':'E','require':_0x6a5f1c('0x186d'),'transclude':!![],'compile':function(_0x449cf4){const _0x4b2b14=_0x6a5f1c;return _0x449cf4[_0x4b2b14('0x16e5')]('ms-widget-front'),function _0x167979(_0x1aed88,_0x3f52ee,_0x299aec,_0x7e4266,_0x5e1522){const _0x194a71=_0x4b2b14;_0x5e1522(function(_0x32d0d2){const _0x20f403=a0_0xd29e;_0x3f52ee[_0x20f403('0x1853')](),_0x3f52ee[_0x20f403('0x25a')](_0x32d0d2);}),_0x1aed88['flipWidget']=_0x7e4266[_0x194a71('0x2451')];};}};}function _0x221b6f(){return{'restrict':'E','require':'^msWidget','transclude':!![],'compile':function(_0x119f53){const _0x25ae41=a0_0xd29e;return _0x119f53[_0x25ae41('0x16e5')]('ms-widget-back'),function _0x33cb59(_0x42930b,_0xec3b9f,_0x2024f8,_0x363ac4,_0x574518){const _0x26f44f=_0x25ae41;_0x574518(function(_0x27d9ad){const _0x881204=a0_0xd29e;_0xec3b9f[_0x881204('0x1853')](),_0xec3b9f[_0x881204('0x25a')](_0x27d9ad);}),_0x42930b[_0x26f44f('0x17ec')]=_0x363ac4[_0x26f44f('0x2451')];};}};};const _0xf93097=[[_0x4376d8('0x10b9'),_0x56999f,_0x4376d8('0x213d')],[_0x4376d8('0x2782'),_0x184688,'directive'],[_0x4376d8('0x1af7'),_0x2ccb8f,_0x4376d8('0x213d')],[_0x4376d8('0x1d9a'),_0x3f9526,_0x4376d8('0x213d')],[_0x4376d8('0x4e0'),_0x558517,'directive'],[_0x4376d8('0x1bec'),_0x3eeeca,'directive'],[_0x4376d8('0x1dce'),_0x2ca6ed,_0x4376d8('0x189c')],['msDatepickerFix',_0x3a0cf8,'directive'],[_0x4376d8('0x1822'),_0x4e3cd0,_0x4376d8('0x213d')],['msDualMultiselect',_0x2a249b,_0x4376d8('0x213d')],[_0x4376d8('0x27ef'),_0x53d786,_0x4376d8('0x213d')],['msFontFamily',_0x1f32f4,_0x4376d8('0x213d')],[_0x4376d8('0x18f7'),_0x525cf7,_0x4376d8('0x5ce')],[_0x4376d8('0x1464'),_0x127249,_0x4376d8('0x213d')],[_0x4376d8('0x7ef'),_0x425e14,_0x4376d8('0x213d')],[_0x4376d8('0x4b'),_0x54ae52,_0x4376d8('0x213d')],['msMasonryController',_0x9ecd4c,'controller'],[_0x4376d8('0x172e'),_0x357ac9,'directive'],[_0x4376d8('0x1345'),_0x55f727,_0x4376d8('0x213d')],[_0x4376d8('0x1729'),_0x3ff731,_0x4376d8('0x5ce')],[_0x4376d8('0xe02'),_0x585561,'directive'],[_0x4376d8('0xfe4'),_0x9218e4,_0x4376d8('0x26a6')],['msNavIsFolded',_0x112c62,_0x4376d8('0x213d')],[_0x4376d8('0x1fd4'),_0x4bddd6,'controller'],[_0x4376d8('0x2355'),_0x4e7a70,_0x4376d8('0x213d')],[_0x4376d8('0x1e9d'),_0x25034a,'directive'],['msNavButton',_0x124d40,_0x4376d8('0x213d')],['msNavToggle',_0xa12e9,'directive'],['msNavigationService',_0x3e4a0e,'provider'],[_0x4376d8('0x1fdf'),_0x229d03,_0x4376d8('0x5ce')],[_0x4376d8('0x6fb'),_0x133b34,_0x4376d8('0x213d')],[_0x4376d8('0x1150'),_0xf20ffd,_0x4376d8('0x5ce')],[_0x4376d8('0x1939'),_0x599794,_0x4376d8('0x213d')],[_0x4376d8('0x1b9d'),_0x5ea854,_0x4376d8('0x213d')],['msNavigationHorizontal',_0x56fed2,'directive'],[_0x4376d8('0x1f72'),_0x37c6a4,_0x4376d8('0x5ce')],[_0x4376d8('0xda7'),_0x254c32,'directive'],['msNavigationHorizontalItem',_0x5c0228,_0x4376d8('0x213d')],[_0x4376d8('0x108f'),_0x457de1,_0x4376d8('0x5ce')],[_0x4376d8('0xd43'),_0x496223,_0x4376d8('0x213d')],[_0x4376d8('0x19f9'),_0x20b3a3,_0x4376d8('0x5ce')],['msBlink',_0x90321,_0x4376d8('0x213d')],['RecordDialogController',_0x409ec8,_0x4376d8('0x5ce')],['ReferAttendedDialogController',_0x2651c9,_0x4376d8('0x5ce')],[_0x4376d8('0x2530'),_0x525620,_0x4376d8('0x5ce')],['msQuickFilter',_0x312ad3,_0x4376d8('0x213d')],[_0x4376d8('0x1b08'),_0x382af2,_0x4376d8('0x26a6')],[_0x4376d8('0x26b4'),_0x190bfd,_0x4376d8('0x213d')],[_0x4376d8('0x11c8'),_0x102d0f,'directive'],[_0x4376d8('0x1f60'),_0x53dcf4,_0x4376d8('0x213d')],['msScrollConfig',_0x25a451,_0x4376d8('0x189c')],[_0x4376d8('0x1585'),_0x1c607d,_0x4376d8('0x213d')],[_0x4376d8('0x89f'),_0x56a337,_0x4376d8('0x5ce')],[_0x4376d8('0x23cc'),_0x35d188,'directive'],[_0x4376d8('0x1ee8'),_0x4f28db,_0x4376d8('0x5ce')],['msShortcuts',_0x3d4e27,_0x4376d8('0x213d')],['msSidenavHelper',_0x4ead9c,_0x4376d8('0x213d')],['msSplashScreen',_0x4aa4ce,_0x4376d8('0x213d')],[_0x4376d8('0x39a'),_0x581575,_0x4376d8('0x5ce')],['msHorizontalStepper',_0x51e49e,'directive'],[_0x4376d8('0x26bb'),_0x295429,'directive'],[_0x4376d8('0x11df'),_0x199786,_0x4376d8('0x213d')],['msVerticalStepperStep',_0x17dc79,_0x4376d8('0x213d')],[_0x4376d8('0xec5'),_0x12b4cf,'controller'],[_0x4376d8('0x1f50'),_0x35173f,_0x4376d8('0x213d')],[_0x4376d8('0x198a'),_0xfc69b5,_0x4376d8('0x5ce')],['msTimeline',_0xe86b02,'directive'],[_0x4376d8('0xc29'),_0xda96d8,'directive'],[_0x4376d8('0xb74'),_0xed74d2,'controller'],[_0x4376d8('0x1159'),_0x102628,'directive'],[_0x4376d8('0x4e2'),_0x5b40bb,_0x4376d8('0x213d')],[_0x4376d8('0x18d4'),_0x2ece99,'controller'],[_0x4376d8('0x1b24'),_0x1b462f,'controller'],[_0x4376d8('0xcde'),_0x3ea426,'controller'],[_0x4376d8('0x2222'),_0xa5b3d7,'controller'],[_0x4376d8('0x1888'),_0x315d26,_0x4376d8('0x5ce')],[_0x4376d8('0xf48'),_0x103cb0,_0x4376d8('0x213d')],['MsWidgetController',_0x313f95,_0x4376d8('0x5ce')],['msWidget',_0x43362d,'directive'],[_0x4376d8('0xa4e'),_0x1b33ac,_0x4376d8('0x213d')],['msWidgetBack',_0x221b6f,_0x4376d8('0x213d')]],_0x11e338=_0xf93097;_0x4544ae[_0x4376d8('0x1b9c')]=['$q',_0x4376d8('0x28da')];function _0x4544ae(_0x355735,_0x5cdc74){function _0x5ba349(_0x1770d0){let _0x22da7a;return _0x355735(function(_0x1e4cc3){const _0x2cdbb5=a0_0xd29e;try{if(_0x49cbdd()[_0x2cdbb5('0x109a')](_0x1770d0[_0x2cdbb5('0x7bc')]))_0x22da7a=_0x5cdc74[_0x2cdbb5('0x1acc')](_0x2cdbb5('0x1d09'));else{if(_0x49cbdd()[_0x2cdbb5('0x109a')](_0x1770d0[_0x2cdbb5('0x941')]))_0x22da7a=_0x1770d0[_0x2cdbb5('0x1ba5')]?_0x5cdc74[_0x2cdbb5('0x1acc')](_0x1770d0[_0x2cdbb5('0x1ba5')]):_0x5cdc74[_0x2cdbb5('0x1acc')](_0x2cdbb5('0x2664'));else{if(_0x1770d0[_0x2cdbb5('0x941')][_0x2cdbb5('0x1f73')]===_0x1770d0['resources']['length'])_0x22da7a=_0x5cdc74[_0x2cdbb5('0x1acc')](_0x2cdbb5('0x9cf'));else{const _0x206ab6=_0x1770d0[_0x2cdbb5('0x1f62')]||'id';_0x22da7a=_0x49cbdd()(_0x1770d0[_0x2cdbb5('0x7bc')])[_0x2cdbb5('0x2483')](function(_0x1cf1f8){const _0x174767=_0x2cdbb5;return _0x49cbdd()[_0x174767('0x24b0')](_0x1770d0[_0x174767('0x941')],_0x1cf1f8[_0x206ab6]);})[_0x2cdbb5('0x787')](_0x2cdbb5('0x2aa'))[_0x2cdbb5('0x175b')]()[_0x2cdbb5('0x1eba')](',\x20');}}}_0x1e4cc3(_0x22da7a);}catch(_0x4afca5){console['log'](_0x2cdbb5('0xe74'),_0x4afca5),_0x1e4cc3(null);}});}const _0x912f6d={'setPlaceholder':_0x5ba349};return _0x912f6d;}const _0x23e9b1=_0x4544ae;;function _0x6464d6(){return function(_0x3895f4){const _0x125eb2=a0_0xd29e,_0xa1db71=Date[_0x125eb2('0x1a88')]()-new Date(_0x3895f4);if(_0xa1db71<0x3c*0x3c*0x3e8)return _0x107a13()(_0x3895f4)['fromNow']();else{if(_0xa1db71<0x3c*0x3c*0x18*0x3e8)return _0x107a13()(_0x3895f4)['format'](_0x125eb2('0x1e6c'));else return _0xa1db71<0x3c*0x3c*0x18*0x7*0x3e8?_0x107a13()(_0x3895f4)[_0x125eb2('0x1c0d')](_0x125eb2('0x5a5')):_0x107a13()(_0x3895f4)[_0x125eb2('0xb1a')]();}};}const _0xeb8061=_0x6464d6;_0x40ebbe['$inject']=[_0x4376d8('0x92d')];function _0x40ebbe(_0x19dca8){return function(_0xed04b2){const _0x578b68=a0_0xd29e;return _0x19dca8[_0x578b68('0x1e60')](_0xed04b2);};}function _0x2951c5(){return function(_0x1f8c55){const _0xa78b5=a0_0xd29e;return String(_0x1f8c55)[_0xa78b5('0x737')](/<[^>]+>/gm,'');};}function _0xac1ca9(){return function(_0x1cc877){const _0x1bd15d=a0_0xd29e;return!_0x1cc877?'':_0x1cc877[_0x1bd15d('0x737')](/ /g,'');};}function _0x11b28f(){return function(_0x2ed103){const _0x4960b8=a0_0xd29e;if(!_0x2ed103)return;if(_0x2ed103[_0x4960b8('0x412')]==='directive')return _0x2ed103[_0x4960b8('0x2aa')]['replace'](/([A-Z])/g,function(_0x29b93c){const _0x357d4=_0x4960b8;return'-'+_0x29b93c[_0x357d4('0x19b')]();});return _0x2ed103['label']||_0x2ed103[_0x4960b8('0x2aa')];};};function _0x8f4143(){return function(_0x3e6862){if(!_0x3e6862)return'';return _0x49cbdd()['capitalize'](_0x3e6862);};}const _0x1dc185=_0x8f4143;function _0x115fe6(){return function(_0x151a8c,_0x80a424){const _0x83ea1d=a0_0xd29e;if(_0x151a8c['length']===0x0||!_0x80a424)return _0x151a8c;if(_0x80a424['length']===0x0)return[];const _0x5e82f3=[];for(let _0x34836f=0x0;_0x34836f<_0x151a8c['length'];_0x34836f++){const _0x3b8925=_0x151a8c[_0x34836f];let _0x47c383=![];for(let _0x207007=0x0;_0x207007<_0x80a424[_0x83ea1d('0x1f73')];_0x207007++){const _0x44c284=_0x80a424[_0x207007];if(_0x3b8925['id']===_0x44c284){_0x47c383=!![];break;}}_0x47c383&&_0x5e82f3['push'](_0x3b8925);}return _0x5e82f3;};}const _0x36aa52=_0x115fe6;function _0x50471c(){return function(_0x4de8ea,_0x4e41d7,_0x459444){const _0x41e347=a0_0xd29e;if(_0x4de8ea[_0x41e347('0x1f73')]===0x0||!_0x459444||_0x459444[_0x41e347('0x1f73')]===0x0)return _0x4de8ea;const _0x59e10f=[];for(let _0xef6f8b=0x0;_0xef6f8b<_0x4de8ea[_0x41e347('0x1f73')];_0xef6f8b++){const _0x3995d1=_0x4de8ea[_0xef6f8b];let _0x357266=![];for(let _0x330098=0x0;_0x330098<_0x459444['length'];_0x330098++){const _0x54d4a6=_0x459444[_0x330098];if(_0x3995d1[_0x4e41d7][_0x41e347('0x2567')](_0x54d4a6)>-0x1){_0x357266=!![];break;}}_0x357266&&_0x59e10f[_0x41e347('0x269f')](_0x3995d1);}return _0x59e10f;};}const _0x256bc4=_0x50471c;;function _0x5d1119(){return function(_0x45c0bb){const _0x340979=a0_0xd29e;if(!_0x45c0bb)return'';return _0x49cbdd()[_0x340979('0x19ec')](_0x45c0bb);};}const _0x439c9b=_0x5d1119;;function _0x57d21e(){return function(_0x4e2a28){const _0x11786e=a0_0xd29e;if(!_0x4e2a28)return'';return _0x49cbdd()[_0x11786e('0x1c98')](_0x4e2a28);};}const _0x1f8917=_0x57d21e;function _0x2898b5(){return function(_0xe4d589,_0x24ae1c){const _0x55caa0=a0_0xd29e;if(_0xe4d589[_0x55caa0('0x1f73')]===0x0||_0x24ae1c['length']===0x0)return _0xe4d589;const _0x3ff9cb=[];return _0xe4d589[_0x55caa0('0xccd')](function(_0x340adc){const _0xdb9d5e=_0x55caa0,_0x23fb5a=_0x24ae1c[_0xdb9d5e('0x12df')](function(_0x1ea28a){const _0x1e7823=_0xdb9d5e;let _0x3b92c8=![];return _0x340adc[_0x1e7823('0x1522')][_0x1e7823('0xccd')](function(_0x5026bb){const _0x4bc3ed=_0x1e7823;if(_0x5026bb[_0x4bc3ed('0x2aa')]===_0x1ea28a[_0x4bc3ed('0x2aa')]){_0x3b92c8=!![];return;}}),_0x3b92c8;});_0x23fb5a&&_0x3ff9cb[_0xdb9d5e('0x269f')](_0x340adc);}),_0x3ff9cb;};}function _0x2ea105(){return function(_0x2f3f9e,_0x57f351){const _0x17880c=a0_0xd29e;if(_0x2f3f9e[_0x17880c('0x1f73')]===0x0||_0x57f351[_0x17880c('0x1f73')]===0x0)return;if(_0x2f3f9e['length']<_0x57f351[_0x17880c('0x1f73')])return[];const _0x3e0345=[],_0x594241=_0x57f351['every'](function(_0x49c69f){const _0x2ceb4c=_0x17880c;let _0x516c9c=![];return _0x2f3f9e[_0x2ceb4c('0xccd')](function(_0x2c325d){const _0x4a990d=_0x2ceb4c;if(_0x2c325d[_0x4a990d('0x2aa')]===_0x49c69f[_0x4a990d('0x2aa')]){_0x516c9c=!![];return;}}),_0x516c9c;});return _0x594241&&_0x3e0345['push'](_0x2f3f9e),_0x3e0345;};};class _0xd7ae3f{constructor(_0x33ad79,_0x35828f,_0x34e680,_0x13bada){const _0x50cf70=_0x4376d8;this['id']=Math[_0x50cf70('0x13ce')]()['toString'](0x24)['substring'](0x2,0xf)+Math[_0x50cf70('0x13ce')]()[_0x50cf70('0x9b6')](0x24)[_0x50cf70('0xa65')](0x2,0xf),this[_0x50cf70('0x24d3')]=_0x33ad79,this[_0x50cf70('0x13aa')]=_0x35828f,this['accept']=_0x34e680,this[_0x50cf70('0x1ad1')]=_0x13bada,this[_0x50cf70('0xbc9')]=_0x1ddcdb;}}function _0x14555b(){const _0x1b3937=_0x4376d8;return!(window[_0x1b3937('0x2be')][_0x1b3937('0x5c')]||window[_0x1b3937('0x2be')][_0x1b3937('0x1910')]||window[_0x1b3937('0x2be')]['webkitHidden']);}function _0x498b77(){const _0x124aa1=_0x4376d8;return/Chrome/[_0x124aa1('0x1ec')](navigator[_0x124aa1('0x1142')])&&/Google Inc/[_0x124aa1('0x1ec')](navigator['vendor']);}function _0x1ddcdb(){const _0x5f0b75=_0x4376d8,_0x5cdf7e=this;navigator[_0x5f0b75('0x2807')]['ready'][_0x5f0b75('0x17e7')](function(_0x2789e1){const _0x51f0ae=_0x5f0b75;_0x2789e1[_0x51f0ae('0xe81')]()[_0x51f0ae('0x17e7')](function(_0x539c5f){const _0x13ef95=_0x51f0ae,_0xe87e51=_0x49cbdd()[_0x13ef95('0xe8e')](_0x539c5f,function(_0x16f58d){return _0x16f58d['data']['id']===_0x5cdf7e['id'];});_0xe87e51&&_0xe87e51[_0x13ef95('0xbc9')]();});});}function _0x302975(){return{'$get':[_0x3e2457]};function _0x3e2457(){const _0xd724e6=a0_0xd29e,_0xb3ca74=[];let _0x37a742,_0x25edde;return _0xd724e6('0x2807')in navigator&&_0x498b77()?navigator[_0xd724e6('0x2807')]['register'](_0xd724e6('0x13c9'))[_0xd724e6('0x17e7')](function(_0x82321e){const _0x1932c8=_0xd724e6;_0x37a742=_0x82321e,_0x37a742[_0x1932c8('0x27ba')]();if(_0x37a742['installing'])_0x25edde=_0x37a742[_0x1932c8('0x1a41')];else{if(_0x37a742['waiting'])_0x25edde=_0x37a742[_0x1932c8('0x2143')];else _0x37a742[_0x1932c8('0x469')]&&(_0x25edde=_0x37a742['active']);}})[_0xd724e6('0x16df')](function(_0x44ba9b){const _0x3f50d3=_0xd724e6;console[_0x3f50d3('0x1db9')]('Service\x20worker\x20registration\x20failed',_0x44ba9b);}):console['error'](_0xd724e6('0x1f65')),navigator[_0xd724e6('0x2807')]['addEventListener'](_0xd724e6('0x1603'),function(_0x4eb783){const _0x4c3878=_0xd724e6;if(_0x4eb783['source']!==_0x25edde)return;const _0xb60d46=_0x49cbdd()[_0x4c3878('0xe8e')](_0xb3ca74,{'id':_0x4eb783[_0x4c3878('0x1457')]['id']});if(_0xb60d46)switch(_0x4eb783[_0x4c3878('0x1457')][_0x4c3878('0x1928')]){case _0x4c3878('0x37'):_0xb60d46['accept']&&_0xb60d46['accept']();break;case _0x4c3878('0x1ad1'):_0xb60d46[_0x4c3878('0x1ad1')]&&_0xb60d46[_0x4c3878('0x1ad1')]();break;default:}}),{'create':function(_0x5aca84,_0x44b9f5,_0xa66b01,_0x3609ab,_0x44d9c4){return new Promise(function(_0x2da747,_0x59cea3){const _0x3d714e=a0_0xd29e;let _0x4e3586;_0x498b77()&&!_0x14555b()?(_0x4e3586=new _0xd7ae3f(_0x5aca84||_0x3d714e('0x857'),_0x44b9f5||_0x3d714e('0x25fb'),_0x3609ab,_0x44d9c4),_0xb3ca74[_0x3d714e('0x269f')](_0x4e3586),_0x4e3586?window[_0x3d714e('0x1608')][_0x3d714e('0x1073')]()['then'](function(_0x5e0987){const _0x6196d8=_0x3d714e;if(_0x5e0987===_0x6196d8('0x240b'))return _0x37a742[_0x6196d8('0x179e')](_0x4e3586['title'],{'body':_0x4e3586['body'],'requireInteraction':!![],'icon':_0xa66b01||_0x6196d8('0x2396'),'data':{'id':_0x4e3586['id']},'actions':[{'action':_0x6196d8('0x37'),'title':_0x6196d8('0x1d61')},{'action':_0x6196d8('0x1ad1'),'title':_0x6196d8('0x6b')}]});})[_0x3d714e('0x17e7')](function(){_0x2da747(_0x4e3586);})[_0x3d714e('0x16df')](function(_0x34685d){_0x59cea3(_0x34685d);}):_0x59cea3(new Error(_0x3d714e('0x1936')))):_0x2da747();});}};}}const _0x354ba0=_0x302975;_0x581b85[_0x4376d8('0x1b9c')]=['$q','$log',_0x4376d8('0x212e')];function _0x581b85(_0x24e19c,_0x10f97b,_0x277fc6){const _0x5b4c7d={'resolve':_0x1cc66c};return _0x5b4c7d;function _0x1cc66c(_0x366047,_0x9cd1df){const _0x6e037b=a0_0xd29e,_0x36341e=_0x366047[_0x6e037b('0x2007')]('@'),_0x3db445=_0x36341e[0x0],_0x174b41=_0x36341e[0x1],_0x2790fd=_0x9cd1df||{};if(!_0x3db445||!_0x174b41)return _0x10f97b[_0x6e037b('0x1db9')](_0x6e037b('0x1983')),![];const _0x777cb5=_0x24e19c['defer'](),_0x3723c9=_0x4ca62d(_0x3db445);return!_0x3723c9?(_0x10f97b['error'](_0x6e037b('0xaf8')+_0x3db445+_0x6e037b('0x650')),_0x777cb5['reject'](_0x6e037b('0xaf8')+_0x3db445+_0x6e037b('0x650'))):_0x3723c9[_0x174b41](_0x2790fd,function(_0x335ed8){_0x777cb5['resolve'](_0x335ed8);},function(_0x17e897){const _0x3449fb=_0x6e037b;_0x777cb5[_0x3449fb('0x1ad1')](_0x17e897);}),_0x777cb5['promise'];}function _0x4ca62d(_0x4c7178){const _0x462734=a0_0xd29e,_0xed6b46=_0x4c7178[_0x462734('0x2007')]('.');let _0x716854=_0x277fc6;for(let _0x4f8d45=0x0;_0x4f8d45<_0xed6b46['length'];_0x4f8d45++){if(angular[_0x462734('0x1a77')](_0x716854[_0xed6b46[_0x4f8d45]])){_0x10f97b[_0x462734('0x1db9')](_0x462734('0x2cb')+_0xed6b46[_0x4f8d45]+'\x22\x20is\x20not\x20defined!'),_0x716854=![];break;}_0x716854=_0x716854[_0xed6b46[_0x4f8d45]];}if(!_0x716854)return![];return _0x716854;}}const _0x4c84a5=_0x581b85;_0x8b5b8e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x655')];function _0x8b5b8e(_0x1fce17){function _0x483a3a(){const _0x43c2fd=a0_0xd29e;_0x1fce17[_0x43c2fd('0x1840')]=!![];}function _0x2af21d(){const _0x35cca7=a0_0xd29e;_0x1fce17[_0x35cca7('0x1840')]=![];}const _0x11e85c={'showLoadingIndicator':_0x483a3a,'hideLoadingIndicator':_0x2af21d};return _0x11e85c;}const _0x5c68e=_0x8b5b8e;function _0x4b9da7(){const _0x49f690=_0x4376d8,_0x345098=this,_0x1f9e9d=angular[_0x49f690('0x1f12')](['ng'])[_0x49f690('0x1c53')](_0x49f690('0x1e5b'));let _0x24cd4b='';const _0xa35708=[];_0x345098[_0x49f690('0x20b')]=_0x415b51,_0x345098['getBaseUrl']=_0x39356e,_0x345098[_0x49f690('0xae1')]=_0x9afefe,_0x345098['register']=_0x68ecdb;function _0x415b51(_0x1a17bd){_0x24cd4b=_0x1a17bd;}function _0x39356e(){return _0x24cd4b;}function _0x9afefe(){return _0xa35708;}function _0x68ecdb(_0x524372,_0x893346){const _0x16f398=_0x49f690;if(!angular[_0x16f398('0x278d')](_0x524372)){_0x1f9e9d[_0x16f398('0x1db9')](_0x16f398('0x365'));return;}if(!angular[_0x16f398('0x25f3')](_0x893346)){_0x1f9e9d[_0x16f398('0x1db9')](_0x16f398('0xe50'));return;}_0xa35708[_0x524372]={'url':_0x24cd4b+(_0x893346[0x0]||''),'paramDefaults':_0x893346[0x1]||[],'actions':_0x893346[0x2]||[],'options':_0x893346[0x3]||{}};}this[_0x49f690('0x50d')]=function(_0x22f949,_0x4c5775,_0x243b17,_0xbe45c1){const _0x38cf7c={'setBaseUrl':_0x415b51,'getBaseUrl':_0x39356e,'register':_0x68ecdb,'resolve':_0x1a3f51,'request':_0x57e049};return _0x38cf7c;function _0x1a3f51(_0x1a7ed,_0x3cce3){const _0x329ca7=a0_0xd29e;_0xbe45c1[_0x329ca7('0x2446')](_0x329ca7('0x85d'));const _0x205dac=_0x1a7ed[_0x329ca7('0x2007')]('@'),_0xd3418f=_0x205dac[0x0],_0x4180b5=_0x205dac[0x1],_0x3ff02e=_0x3cce3||{};if(!_0xd3418f||!_0x4180b5)return _0x22f949[_0x329ca7('0x1db9')](_0x329ca7('0x115f')),![];const _0x20b744=_0x4c5775['defer'](),_0x524c53=_0xa35708[_0xd3418f];if(!_0x524c53)_0x22f949[_0x329ca7('0x1db9')](_0x329ca7('0xaf8')+_0xd3418f+'\x22\x20is\x20not\x20defined\x20in\x20the\x20api\x20service!'),_0x20b744[_0x329ca7('0x1ad1')](_0x329ca7('0xaf8')+_0xd3418f+_0x329ca7('0x650'));else{const _0x29ef73=_0x243b17(_0x524c53[_0x329ca7('0x101e')],_0x524c53[_0x329ca7('0xa6d')],_0x524c53['actions'],_0x524c53[_0x329ca7('0x19')]);_0x29ef73[_0x4180b5](_0x3ff02e,function(_0x414802){const _0x777a5=_0x329ca7;_0x20b744[_0x777a5('0x898')](_0x414802),_0xbe45c1[_0x777a5('0x2446')]('msApi::resolveSuccess');},function(_0x5398d1){const _0xf9f95f=_0x329ca7;_0x20b744[_0xf9f95f('0x1ad1')](_0x5398d1),_0xbe45c1[_0xf9f95f('0x2446')](_0xf9f95f('0xa93'));});}return _0x20b744[_0x329ca7('0x1691')];}function _0x57e049(_0x3579f1,_0x5acec9,_0x1c3d9f,_0x56a78d){const _0x3507c7=a0_0xd29e;_0xbe45c1['$broadcast'](_0x3507c7('0x14ca'));const _0x59cfa0=_0x3579f1['split']('@'),_0x29fa03=_0x59cfa0[0x0],_0x4c1934=_0x59cfa0[0x1],_0x3e7885=_0x5acec9||{};if(!_0x29fa03||!_0x4c1934)return _0x22f949[_0x3507c7('0x1db9')]('msApi.resolve\x20requires\x20correct\x20action\x20parameter\x20(resourceName@methodName)'),![];const _0x3de697=_0x4c5775[_0x3507c7('0x113c')](),_0x1ec8f3=_0xa35708[_0x29fa03];if(!_0x1ec8f3)_0x22f949[_0x3507c7('0x1db9')](_0x3507c7('0xaf8')+_0x29fa03+_0x3507c7('0x650')),_0x3de697[_0x3507c7('0x1ad1')]('Resource\x20\x22'+_0x29fa03+_0x3507c7('0x650'));else{const _0x40b469=_0x243b17(_0x1ec8f3['url'],_0x1ec8f3[_0x3507c7('0xa6d')],_0x1ec8f3[_0x3507c7('0xacf')],_0x1ec8f3[_0x3507c7('0x19')]);_0x40b469[_0x4c1934](_0x3e7885,function(_0x3ade5e){const _0x4091c3=_0x3507c7;_0xbe45c1[_0x4091c3('0x2446')](_0x4091c3('0x231d')),_0x3de697[_0x4091c3('0x898')](_0x3ade5e),angular[_0x4091c3('0x170a')](_0x1c3d9f)&&angular[_0x4091c3('0x2272')](_0x1c3d9f)&&_0x1c3d9f(_0x3ade5e);},function(_0x46fbf8){const _0x2d3fa1=_0x3507c7;_0xbe45c1[_0x2d3fa1('0x2446')]('msApi::requestError'),_0x3de697[_0x2d3fa1('0x1ad1')](_0x46fbf8),angular[_0x2d3fa1('0x170a')](_0x56a78d)&&angular[_0x2d3fa1('0x2272')](_0x56a78d)&&_0x56a78d(_0x46fbf8);});}return _0x3de697['promise'];}};}const _0x26db32=_0x4b9da7;var _0x2ed5bf=_0x4cf2bc(0x985),_0x3556ce=_0x4cf2bc['n'](_0x2ed5bf);_0x5dd8d3[_0x4376d8('0x1b9c')]=[_0x4376d8('0x198f')];function _0x5dd8d3(_0x219ecd){const _0x48f089=_0x4376d8,_0x3202f5=new(_0x3556ce())(_0x219ecd[_0x48f089('0x758')][_0x48f089('0x1142')]);let _0x389e65=null;const _0x1e735f={'exists':_0xb72346,'detectBrowser':_0x2d5591,'guidGenerator':_0x2442dd,'isMobile':_0x5e2582,'toggleInArray':_0x152992,'firstLastDayMonth':_0x305006};return _0x1e735f;function _0xb72346(_0x5d42ec,_0x2b23e0){const _0x3c15aa=_0x48f089;return _0x2b23e0[_0x3c15aa('0x2567')](_0x5d42ec)>-0x1;}function _0x2d5591(){const _0x49e379=_0x48f089;if(_0x389e65)return _0x389e65;const _0x3659d3=[{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x1142')],'subString':'Edge','versionSearch':_0x49e379('0x42'),'identity':_0x49e379('0x42')},{'string':_0x219ecd['navigator']['userAgent'],'subString':_0x49e379('0x464'),'identity':'Chrome'},{'string':_0x219ecd['navigator'][_0x49e379('0x1142')],'subString':_0x49e379('0x1989'),'versionSearch':_0x49e379('0x10d6'),'identity':_0x49e379('0x1989')},{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x22eb')],'subString':_0x49e379('0x27eb'),'versionSearch':_0x49e379('0x1f52'),'identity':_0x49e379('0x487')},{'prop':_0x219ecd[_0x49e379('0x19ee')],'identity':_0x49e379('0x6d2')},{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x22eb')],'subString':_0x49e379('0x1b0c'),'identity':_0x49e379('0x1b0c')},{'string':_0x219ecd[_0x49e379('0x758')]['vendor'],'subString':_0x49e379('0x1f'),'identity':_0x49e379('0x2461')},{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x1142')],'subString':_0x49e379('0x162e'),'identity':_0x49e379('0x162e')},{'string':_0x219ecd['navigator'][_0x49e379('0x22eb')],'subString':'Camino','identity':'Camino'},{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x1142')],'subString':'Netscape','identity':'Netscape'},{'string':_0x219ecd['navigator'][_0x49e379('0x1142')],'subString':_0x49e379('0x1b92'),'identity':'Explorer','versionSearch':'MSIE'},{'string':_0x219ecd['navigator']['userAgent'],'subString':_0x49e379('0x25e9'),'identity':_0x49e379('0x13ed'),'versionSearch':'rv'},{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x1142')],'subString':_0x49e379('0x229d'),'identity':'Mozilla','versionSearch':'rv'},{'string':_0x219ecd['navigator'][_0x49e379('0x1142')],'subString':_0x49e379('0x1123'),'identity':_0x49e379('0x886'),'versionSearch':_0x49e379('0x1123')}],_0x2c3b5f=[{'string':_0x219ecd[_0x49e379('0x758')]['platform'],'subString':_0x49e379('0x24ed'),'identity':_0x49e379('0x1779')},{'string':_0x219ecd['navigator']['platform'],'subString':_0x49e379('0x10cd'),'identity':_0x49e379('0x10cd')},{'string':_0x219ecd['navigator'][_0x49e379('0x1f66')],'subString':_0x49e379('0x673'),'identity':_0x49e379('0x673')},{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x1f66')],'subString':_0x49e379('0x669'),'identity':_0x49e379('0x669')},{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x1f66')],'subString':'iPod','identity':_0x49e379('0x1f08')},{'string':_0x219ecd[_0x49e379('0x758')][_0x49e379('0x1f66')],'subString':_0x49e379('0x1405'),'identity':_0x49e379('0x1405')},{'string':_0x219ecd['navigator'][_0x49e379('0x1f66')],'subString':_0x49e379('0x47'),'identity':_0x49e379('0x47')}];let _0x1539c9='';function _0x388ba5(_0x18a2fd){const _0x2474f5=_0x49e379;for(let _0x356447=0x0;_0x356447<_0x18a2fd['length'];_0x356447++){const _0x33a605=_0x18a2fd[_0x356447][_0x2474f5('0x1783')],_0x124fe0=_0x18a2fd[_0x356447]['prop'];_0x1539c9=_0x18a2fd[_0x356447][_0x2474f5('0x1cee')]||_0x18a2fd[_0x356447][_0x2474f5('0x1f3')];if(_0x33a605){if(_0x33a605[_0x2474f5('0x2567')](_0x18a2fd[_0x356447]['subString'])!==-0x1)return _0x18a2fd[_0x356447][_0x2474f5('0x1f3')];}else{if(_0x124fe0)return _0x18a2fd[_0x356447][_0x2474f5('0x1f3')];}}}function _0x33876f(_0x3805c7){const _0x286a95=_0x49e379,_0x3ffc64=_0x3805c7[_0x286a95('0x2567')](_0x1539c9);if(_0x3ffc64===-0x1)return;return parseInt(_0x3805c7[_0x286a95('0xa65')](_0x3ffc64+_0x1539c9[_0x286a95('0x1f73')]+0x1));}let _0x10c8e9=_0x388ba5(_0x3659d3)||_0x49e379('0x14aa'),_0x337018=_0x33876f(_0x219ecd[_0x49e379('0x758')][_0x49e379('0x1142')])||_0x33876f(_0x219ecd[_0x49e379('0x758')][_0x49e379('0x24c3')])||_0x49e379('0x1ca7'),_0x212929=_0x388ba5(_0x2c3b5f)||_0x49e379('0x5d9');return _0x10c8e9=_0x10c8e9[_0x49e379('0x19b')](),_0x337018=_0x10c8e9+'-'+_0x337018,_0x212929=_0x212929['toLowerCase'](),_0x389e65={'browser':_0x10c8e9,'version':_0x337018,'os':_0x212929},_0x389e65;}function _0x2442dd(){const _0xa7fb9=function(){const _0x224c1b=a0_0xd29e;return((0x1+Math[_0x224c1b('0x13ce')]())*0x10000||0x0)[_0x224c1b('0x9b6')](0x10)[_0x224c1b('0xa65')](0x1);};return _0xa7fb9()+_0xa7fb9()+_0xa7fb9()+_0xa7fb9()+_0xa7fb9()+_0xa7fb9();}function _0x5e2582(){return _0x3202f5['mobile']();}function _0x152992(_0x2d2d8f,_0x35d38d){const _0xa880e7=_0x48f089;_0x35d38d[_0xa880e7('0x2567')](_0x2d2d8f)===-0x1?_0x35d38d[_0xa880e7('0x269f')](_0x2d2d8f):_0x35d38d['splice'](_0x35d38d[_0xa880e7('0x2567')](_0x2d2d8f),0x1);}function _0x305006(){const _0x20ab80=_0x48f089;return{'$gte':_0x107a13()()[_0x20ab80('0x161c')](_0x20ab80('0x7c7'))[_0x20ab80('0x1376')](0x0,!![])[_0x20ab80('0x1c0d')](),'$lte':_0x107a13()()[_0x20ab80('0x200e')](_0x20ab80('0x7c7'))[_0x20ab80('0x1376')](0x0,!![])['format']()};}}const _0x43ebc1=_0x5dd8d3,_0x5541e0=_0x4cf2bc['p']+'src/js/modules/core/theme-options/theme-options.html/theme-options.html';_0x37bca1[_0x4376d8('0x1b9c')]=['$mdSidenav'],_0x446040[_0x4376d8('0x1b9c')]=['$cookies','motionTheming'];function _0x446040(_0x5d718f,_0x22699e){const _0xc15c93=_0x4376d8,_0x3a321d=this;_0x3a321d[_0xc15c93('0x2706')]=_0x22699e[_0xc15c93('0x2706')],_0x3a321d[_0xc15c93('0x1a3b')]=[{'label':'Boxed','value':'boxed'},{'label':_0xc15c93('0x919'),'value':_0xc15c93('0xfe')}],_0x3a321d[_0xc15c93('0xf78')]=[{'label':_0xc15c93('0x2183'),'value':'verticalNavigation','figure':_0xc15c93('0x2812')},{'label':'Vertical\x20Navigation\x20with\x20Fullwidth\x20Toolbar','value':_0xc15c93('0x9da'),'figure':_0xc15c93('0x2762')},{'label':_0xc15c93('0x265d'),'value':_0xc15c93('0x947'),'figure':_0xc15c93('0x23f7')},{'label':'Horizontal\x20Navigation','value':_0xc15c93('0x20ba'),'figure':'/assets/images/theme-options/horizontal-nav.jpg'},{'label':_0xc15c93('0xa16'),'value':_0xc15c93('0xaf9'),'figure':_0xc15c93('0xb60')},{'label':_0xc15c93('0x22bb'),'value':'contentOnly','figure':_0xc15c93('0x932')}],_0x3a321d['layoutMode']=_0xc15c93('0xfe'),_0x3a321d[_0xc15c93('0x974')]=_0x5d718f[_0xc15c93('0x1c53')]('motion.layoutStyle')||_0xc15c93('0x987'),_0x3a321d[_0xc15c93('0x7b0')]=_0x287ec4,_0x3a321d[_0xc15c93('0x1861')]=_0x19d8e0,_0x3a321d['updateLayoutMode']=_0x465004,_0x3a321d[_0xc15c93('0x1d95')]=_0x141578;function _0x287ec4(_0x20a410){const _0x4e6675=_0xc15c93;_0x22699e[_0x4e6675('0x7b0')](_0x20a410);}function _0x19d8e0(){const _0x40df2c=_0xc15c93;return _0x22699e['themes'][_0x40df2c('0x469')];}function _0x465004(){const _0x1397a6=_0xc15c93,_0x159415=angular[_0x1397a6('0x1ce1')](_0x1397a6('0x13aa'));_0x159415[_0x1397a6('0x328')]('boxed',_0x3a321d[_0x1397a6('0xdcb')]===_0x1397a6('0x12cb'));}function _0x141578(){const _0x21500e=_0xc15c93;_0x5d718f[_0x21500e('0x2d8')](_0x21500e('0x1e91'),_0x3a321d['layoutStyle']),location[_0x21500e('0x19e0')]();}}function _0x37bca1(_0x1336cd){return{'restrict':'E','scope':{},'controller':'MsThemeOptionsController\x20as\x20vm','templateUrl':_0x5541e0,'compile':function(_0x4d7cc7){return _0x4d7cc7['addClass']('ms-theme-options'),function _0x50ae5b(_0x33c7ee){function _0x2f1347(){const _0x42bdd0=a0_0xd29e;_0x1336cd(_0x42bdd0('0x10c0'))[_0x42bdd0('0x20de')]();}_0x33c7ee['toggleOptionsSidenav']=_0x2f1347;};}};}_0x4c8cbf[_0x4376d8('0x1b9c')]=['$cookies',_0x4376d8('0x1e5b'),'motionTheming'];function _0x4c8cbf(_0x3d72eb,_0x24eb3b,_0x2f98f9){const _0x533403={},_0xaa9fab={'generate':_0x360816,'rgba':_0x5f3d6d};return _0xaa9fab;function _0x360816(){const _0x1f9025=a0_0xd29e,_0x18f156=angular[_0x1f9025('0x14e5')](_0x2f98f9['getRegisteredThemes']()),_0x4420e0=angular[_0x1f9025('0x14e5')](_0x2f98f9[_0x1f9025('0x2274')]());angular[_0x1f9025('0xccd')](_0x18f156,function(_0x3e66c5){const _0x1fbf1f=_0x1f9025;_0x533403[_0x3e66c5['name']]={},angular[_0x1fbf1f('0xccd')](_0x3e66c5[_0x1fbf1f('0x1313')],function(_0x3423fb,_0x144d41){const _0x154acf=_0x1fbf1f;_0x533403[_0x3e66c5[_0x154acf('0x2aa')]][_0x144d41]={'name':_0x3423fb[_0x154acf('0x2aa')],'levels':{'default':{'color':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x1543')]]['value']),'contrast1':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb['hues'][_0x154acf('0x1543')]][_0x154acf('0x80b')],0x1),'contrast2':_0x5f3d6d(_0x4420e0[_0x3423fb['name']][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x1543')]][_0x154acf('0x80b')],0x2),'contrast3':_0x5f3d6d(_0x4420e0[_0x3423fb['name']][_0x3423fb[_0x154acf('0x915')]['default']][_0x154acf('0x80b')],0x3),'contrast4':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb['hues'][_0x154acf('0x1543')]][_0x154acf('0x80b')],0x4)},'hue1':{'color':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x252d')]]['value']),'contrast1':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x252d')]][_0x154acf('0x80b')],0x1),'contrast2':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x252d')]][_0x154acf('0x80b')],0x2),'contrast3':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x252d')]][_0x154acf('0x80b')],0x3),'contrast4':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')]['hue-1']][_0x154acf('0x80b')],0x4)},'hue2':{'color':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x126e')]][_0x154acf('0x175b')]),'contrast1':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb['hues']['hue-2']][_0x154acf('0x80b')],0x1),'contrast2':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x126e')]][_0x154acf('0x80b')],0x2),'contrast3':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')]['hue-2']][_0x154acf('0x80b')],0x3),'contrast4':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x126e')]][_0x154acf('0x80b')],0x4)},'hue3':{'color':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x127a')]][_0x154acf('0x175b')]),'contrast1':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x127a')]]['contrast'],0x1),'contrast2':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x127a')]][_0x154acf('0x80b')],0x2),'contrast3':_0x5f3d6d(_0x4420e0[_0x3423fb[_0x154acf('0x2aa')]][_0x3423fb[_0x154acf('0x915')]['hue-3']][_0x154acf('0x80b')],0x3),'contrast4':_0x5f3d6d(_0x4420e0[_0x3423fb['name']][_0x3423fb[_0x154acf('0x915')][_0x154acf('0x127a')]][_0x154acf('0x80b')],0x4)}}};});}),_0x3963e1(_0x533403);let _0x262840={};angular[_0x1f9025('0xccd')](_0x533403,function(_0x27dc1a,_0x24d218){const _0x7c2071=_0x1f9025;_0x262840={},_0x262840['@themeName']=_0x24d218,angular[_0x7c2071('0xccd')](_0x27dc1a,function(_0x245028,_0x520257){const _0x3e3fd0=_0x7c2071;angular[_0x3e3fd0('0xccd')](_0x245028[_0x3e3fd0('0x1e26')],function(_0x5abfd8,_0xc42c7a){const _0x3b3864=_0x3e3fd0;angular[_0x3b3864('0xccd')](_0x5abfd8,function(_0x38bf9c,_0x292924){_0x262840['@'+_0x520257+_0x365984(_0xc42c7a)+_0x365984(_0x292924)]=_0x38bf9c;});});}),_0x4d22e0(_0x262840);});}function _0x3963e1(_0x4508ad){const _0x5009e6=a0_0xd29e,_0x4ec637=angular[_0x5009e6('0x14e5')](_0x4508ad);angular['forEach'](_0x4ec637,function(_0x1fe5fa){const _0xb0f59b=_0x5009e6;angular[_0xb0f59b('0xccd')](_0x1fe5fa,function(_0x38f652,_0x3f4462){const _0x310a07=_0xb0f59b;_0x1fe5fa[_0x3f4462]=_0x38f652['levels'],_0x1fe5fa[_0x3f4462][_0x310a07('0x1a1f')]=_0x38f652[_0x310a07('0x1e26')][_0x310a07('0x1543')][_0x310a07('0x1a1f')],_0x1fe5fa[_0x3f4462][_0x310a07('0x15e6')]=_0x38f652[_0x310a07('0x1e26')]['default'][_0x310a07('0x15e6')],_0x1fe5fa[_0x3f4462][_0x310a07('0x17ad')]=_0x38f652['levels'][_0x310a07('0x1543')][_0x310a07('0x17ad')],_0x1fe5fa[_0x3f4462][_0x310a07('0x2837')]=_0x38f652[_0x310a07('0x1e26')][_0x310a07('0x1543')][_0x310a07('0x2837')],_0x1fe5fa[_0x3f4462][_0x310a07('0x27b1')]=_0x38f652[_0x310a07('0x1e26')][_0x310a07('0x1543')][_0x310a07('0x27b1')],delete _0x1fe5fa[_0x3f4462][_0x310a07('0x1543')];});}),_0x2f98f9['setThemesList'](_0x4ec637);const _0x6c16cc=_0x3d72eb[_0x5009e6('0x1c53')](_0x5009e6('0x1477'));_0x6c16cc?_0x2f98f9['setActiveTheme'](_0x6c16cc):_0x2f98f9[_0x5009e6('0x7b0')]('default');}function _0x4d22e0(_0x42bfcf){const _0x2d4c10=a0_0xd29e,_0x355daf=_0x2d4c10('0x2056'),_0x356d68=new RegExp(Object['keys'](_0x42bfcf)['join']('|'),'gi'),_0x53ce35=_0x355daf[_0x2d4c10('0x737')](_0x356d68,function(_0x24cf3b){return _0x42bfcf[_0x24cf3b];}),_0x24cbde=angular[_0x2d4c10('0x1ce1')]('head'),_0x1e3902=angular[_0x2d4c10('0x1ce1')](_0x2d4c10('0xda0'));_0x1e3902[_0x2d4c10('0x19b6')](_0x53ce35),_0x24cbde[_0x2d4c10('0x25a')](_0x1e3902);}function _0x5f3d6d(_0x22bdcb,_0x3bcf4d){const _0x14cb9f=a0_0xd29e,_0x597bb5=_0x3bcf4d||![];_0x22bdcb[_0x14cb9f('0x1f73')]===0x4&&_0x22bdcb[0x0]===0xff&&_0x22bdcb[0x1]===0xff&&_0x22bdcb[0x2]===0xff&&_0x22bdcb[_0x14cb9f('0x2335')](0x3,0x4);_0x597bb5&&(_0x22bdcb=_0x211d6e(_0x22bdcb,_0x597bb5));if(_0x22bdcb[_0x14cb9f('0x1f73')]===0x3)return'rgb('+_0x22bdcb[_0x14cb9f('0x1eba')](',')+')';else{if(_0x22bdcb[_0x14cb9f('0x1f73')]===0x4)return _0x14cb9f('0x12a7')+_0x22bdcb[_0x14cb9f('0x1eba')](',')+')';else _0x24eb3b['error'](_0x14cb9f('0x288f')+_0x22bdcb[_0x14cb9f('0x1f73')]+'\x0a'+_0x14cb9f('0xa6b'));}}function _0x211d6e(_0x353a6c,_0x3471b6){const _0x57de43=a0_0xd29e,_0x36bca7={'white':{0x1:'1',0x2:_0x57de43('0x1d8e'),0x3:_0x57de43('0x965'),0x4:_0x57de43('0x1d08')},'black':{0x1:_0x57de43('0x162d'),0x2:_0x57de43('0x1e47'),0x3:_0x57de43('0x267b'),0x4:'0.12'}};if(_0x353a6c[0x0]===0xff&&_0x353a6c[0x1]===0xff&&_0x353a6c[0x2]===0xff)_0x353a6c[0x3]=_0x36bca7[_0x57de43('0x70b')][_0x3471b6];else _0x353a6c[0x0]===0x0&&_0x353a6c[0x1]===0x0&&_0x353a6c[0x2]===0x0&&(_0x353a6c[0x3]=_0x36bca7[_0x57de43('0x2896')][_0x3471b6]);return _0x353a6c;}function _0x365984(_0x1192bb){const _0x1423c8=a0_0xd29e;return _0x1192bb[_0x1423c8('0xc09')](0x0)[_0x1423c8('0x14e2')]()+_0x1192bb['slice'](0x1);}}const _0x3023dd=_0x4c8cbf,_0x64ef33=[{'name':'motion-blue','options':{0x32:_0x4376d8('0x2198'),0x64:_0x4376d8('0x27e9'),0xc8:'#9ab8e5',0x12c:'#78a0dc',0x190:_0x4376d8('0x2107'),0x1f4:_0x4376d8('0xcc1'),0x258:_0x4376d8('0x22a9'),0x2bc:_0x4376d8('0x1df5'),0x320:_0x4376d8('0xb45'),0x384:_0x4376d8('0x186'),'A100':_0x4376d8('0x27e9'),'A200':_0x4376d8('0x18be'),'A400':_0x4376d8('0x2107'),'A700':'#275498','contrastDefaultColor':'light','contrastDarkColors':_0x4376d8('0x188a'),'contrastStrongLightColors':_0x4376d8('0x24ad')}},{'name':_0x4376d8('0x163d'),'options':{0x32:'#ececee',0x64:_0x4376d8('0xded'),0xc8:_0x4376d8('0x27d7'),0x12c:'#7d818c',0x190:_0x4376d8('0x178e'),0x1f4:_0x4376d8('0x2463'),0x258:_0x4376d8('0x1edb'),0x2bc:_0x4376d8('0x1f47'),0x320:_0x4376d8('0xd2d'),0x384:_0x4376d8('0x2386'),'A100':'#c5c6cb','A200':_0x4376d8('0x27d7'),'A400':_0x4376d8('0x178e'),'A700':'#2d323e','contrastDefaultColor':'light','contrastDarkColors':_0x4376d8('0x188a'),'contrastStrongLightColors':'300\x20400'}}],_0x568442=_0x64ef33,_0x1f00f7={'default':{'primary':{'name':_0x4376d8('0x163d'),'hues':{'default':_0x4376d8('0x27b6'),'hue-1':_0x4376d8('0x273d'),'hue-2':_0x4376d8('0x7d7'),'hue-3':'400'}},'accent':{'name':_0x4376d8('0x196b'),'hues':{'default':'600','hue-1':_0x4376d8('0x1071'),'hue-2':'700','hue-3':_0x4376d8('0x10a8')}},'warn':{'name':_0x4376d8('0xdbc')},'background':{'name':_0x4376d8('0x409'),'hues':{'default':_0x4376d8('0x10a8'),'hue-1':_0x4376d8('0x10a8'),'hue-2':'100','hue-3':_0x4376d8('0x514')}}},'pinkTheme':{'primary':{'name':_0x4376d8('0x219'),'hues':{'default':_0x4376d8('0x2349'),'hue-1':_0x4376d8('0x7d7'),'hue-2':_0x4376d8('0x1071'),'hue-3':_0x4376d8('0x10a8')}},'accent':{'name':_0x4376d8('0x2725'),'hues':{'default':'400','hue-1':_0x4376d8('0x514'),'hue-2':_0x4376d8('0x7d7'),'hue-3':_0x4376d8('0x10a8')}},'warn':{'name':_0x4376d8('0x24b5')},'background':{'name':'grey','hues':{'default':_0x4376d8('0x10a8'),'hue-1':_0x4376d8('0x10a8'),'hue-2':'100','hue-3':_0x4376d8('0x514')}}},'tealTheme':{'primary':{'name':_0x4376d8('0x1063'),'hues':{'default':_0x4376d8('0xad1'),'hue-1':'600','hue-2':_0x4376d8('0x273d'),'hue-3':_0x4376d8('0x10a8')}},'accent':{'name':'teal','hues':{'default':'500','hue-1':_0x4376d8('0x1071'),'hue-2':_0x4376d8('0x7d7'),'hue-3':_0x4376d8('0x10a8')}},'warn':{'name':_0x4376d8('0x270b')},'background':{'name':'grey','hues':{'default':_0x4376d8('0x10a8'),'hue-1':_0x4376d8('0x10a8'),'hue-2':_0x4376d8('0x265a'),'hue-3':_0x4376d8('0x514')}}}},_0x1ebef1=_0x1f00f7;_0x284942[_0x4376d8('0x1b9c')]=[_0x4376d8('0x7d9'),_0x4376d8('0xe08'),'motionThemes'];function _0x284942(_0x1cf8bb,_0x5cbc2a,_0x817031){const _0x3b9259=_0x4376d8;let _0x424bd8;angular[_0x3b9259('0x1f12')](['ngCookies'])[_0x3b9259('0x198c')]([_0x3b9259('0x28db'),function(_0x4de423){_0x424bd8=_0x4de423;}]);const _0x573922=_0x424bd8[_0x3b9259('0x16f')]('motion.customTheme');_0x573922&&(_0x817031[_0x3b9259('0x8fa')]=_0x573922),_0x1cf8bb[_0x3b9259('0x17d3')](!![]),angular[_0x3b9259('0xccd')](_0x5cbc2a,function(_0xeedcf4){const _0x3aba28=_0x3b9259;_0x1cf8bb['definePalette'](_0xeedcf4[_0x3aba28('0x2aa')],_0xeedcf4['options']);}),angular[_0x3b9259('0xccd')](_0x817031,function(_0x123467,_0x112abd){const _0x408fc2=_0x3b9259;_0x1cf8bb[_0x408fc2('0x124')](_0x112abd)[_0x408fc2('0x1c16')](_0x123467[_0x408fc2('0xee2')][_0x408fc2('0x2aa')],_0x123467[_0x408fc2('0xee2')][_0x408fc2('0x915')])[_0x408fc2('0x2695')](_0x123467[_0x408fc2('0x27a7')]['name'],_0x123467[_0x408fc2('0x27a7')][_0x408fc2('0x915')])[_0x408fc2('0x1caf')](_0x123467['warn']['name'],_0x123467[_0x408fc2('0x20aa')][_0x408fc2('0x915')])[_0x408fc2('0x1c')](_0x123467[_0x408fc2('0x1c7b')][_0x408fc2('0x2aa')],_0x123467[_0x408fc2('0x1c7b')][_0x408fc2('0x915')]);});}const _0x20b52d=_0x284942;_0x586ab7['$inject']=['$cookies','$log',_0x4376d8('0x820')];function _0x586ab7(_0x2e2c,_0x5a34dd,_0x36e8f3){const _0x3d58d4={'getRegisteredPalettes':_0x3e85a4,'getRegisteredThemes':_0x52711e,'setActiveTheme':_0x4d87a9,'setThemesList':_0x275cd7,'themes':{'list':{},'active':{'name':'','theme':{}}}};return _0x3d58d4;function _0x3e85a4(){const _0x142ca2=a0_0xd29e;return _0x36e8f3[_0x142ca2('0x16b3')];}function _0x52711e(){const _0x425fb7=a0_0xd29e;return _0x36e8f3[_0x425fb7('0x253e')];}function _0x4d87a9(_0x1cc3ab){const _0x1893dc=a0_0xd29e;if(angular[_0x1893dc('0x1a77')](_0x3d58d4[_0x1893dc('0x2706')][_0x1893dc('0x134c')][_0x1cc3ab])){if(angular[_0x1893dc('0x1a77')](_0x3d58d4[_0x1893dc('0x2706')][_0x1893dc('0x134c')][_0x1893dc('0x1543')])){_0x5a34dd[_0x1893dc('0x1db9')]('You\x20must\x20have\x20at\x20least\x20one\x20theme\x20named\x20\x22default\x22');return;}_0x5a34dd[_0x1893dc('0x20aa')](_0x1893dc('0x44b')+_0x1cc3ab+_0x1893dc('0x96f')),_0x3d58d4[_0x1893dc('0x2706')][_0x1893dc('0x469')][_0x1893dc('0x2aa')]=_0x1893dc('0x1543'),_0x3d58d4[_0x1893dc('0x2706')][_0x1893dc('0x469')][_0x1893dc('0x124')]=_0x3d58d4[_0x1893dc('0x2706')][_0x1893dc('0x134c')]['default'],_0x2e2c[_0x1893dc('0x2d8')](_0x1893dc('0x1477'),_0x3d58d4[_0x1893dc('0x2706')][_0x1893dc('0x469')][_0x1893dc('0x2aa')]);return;}_0x3d58d4['themes'][_0x1893dc('0x469')][_0x1893dc('0x2aa')]=_0x1cc3ab,_0x3d58d4['themes'][_0x1893dc('0x469')][_0x1893dc('0x124')]=_0x3d58d4[_0x1893dc('0x2706')]['list'][_0x1cc3ab],_0x2e2c['put'](_0x1893dc('0x1477'),_0x1cc3ab);}function _0x275cd7(_0x2246f5){const _0x3452d5=a0_0xd29e;_0x3d58d4['themes'][_0x3452d5('0x134c')]=_0x2246f5;}}const _0x163590=_0x586ab7;;let _0x399f1d=angular[_0x4376d8('0x11c4')](_0x4376d8('0x2376'),['ngAnimate',_0x4376d8('0x9c2'),_0x4376d8('0xa25'),_0x4376d8('0x247c'),'ngResource',_0x4376d8('0x248d'),'ngMaterial','pascalprecht.translate','ui.router',_0x4376d8('0x43d'),_0x4376d8('0x7a5'),'ds.clock',_0x4376d8('0x2491')])[_0x4376d8('0x189c')](_0x4376d8('0xdd2'),_0x219782)[_0x4376d8('0x1980')](_0x2a61f5)[_0x4376d8('0x1a46')](_0x5b3e1a)[_0x4376d8('0x5ce')]('AdvancedSearchController',_0x414c8f);_0x399f1d=_0x11e338[_0x4376d8('0x2324')]((_0x7516e8,[_0x3d2881,_0x2d3d1f,_0x189357])=>{const _0x289020=_0x4376d8;switch(_0x189357){case _0x289020('0x213d'):_0x7516e8[_0x289020('0x213d')](_0x3d2881,_0x2d3d1f);break;case _0x289020('0x189c'):_0x7516e8[_0x289020('0x189c')](_0x3d2881,_0x2d3d1f);break;case'controller':_0x7516e8['controller'](_0x3d2881,_0x2d3d1f);break;case _0x289020('0x26a6'):_0x7516e8[_0x289020('0x26a6')](_0x3d2881,_0x2d3d1f);break;default:break;}return _0x7516e8;},_0x399f1d),_0x399f1d[_0x4376d8('0x26a6')](_0x4376d8('0x3dc'),_0x23e9b1)[_0x4376d8('0x2483')](_0x4376d8('0x1acb'),_0xeb8061)[_0x4376d8('0x2483')](_0x4376d8('0x1b54'),_0x40ebbe)[_0x4376d8('0x2483')](_0x4376d8('0x1759'),_0x2951c5)['filter'](_0x4376d8('0xde9'),_0xac1ca9)[_0x4376d8('0x2483')](_0x4376d8('0x1d56'),_0x11b28f)[_0x4376d8('0x2483')](_0x4376d8('0xb41'),_0x1dc185)[_0x4376d8('0x2483')](_0x4376d8('0x2046'),_0x36aa52)[_0x4376d8('0x2483')](_0x4376d8('0xfbb'),_0x256bc4)['filter'](_0x4376d8('0x1269'),_0x439c9b)[_0x4376d8('0x2483')]('startcase',_0x1f8917)[_0x4376d8('0x2483')]('filterByTags',_0x2898b5)[_0x4376d8('0x2483')]('filterSingleByTags',_0x2ea105)[_0x4376d8('0x189c')](_0x4376d8('0x163c'),_0x354ba0)[_0x4376d8('0x26a6')](_0x4376d8('0x177'),_0x4c84a5)['factory'](_0x4376d8('0x12f9'),_0x5c68e)['provider'](_0x4376d8('0xeec'),_0x26db32)[_0x4376d8('0x26a6')](_0x4376d8('0x1606'),_0x43ebc1)['controller'](_0x4376d8('0x23a'),_0x446040)['directive']('msThemeOptions',_0x37bca1)[_0x4376d8('0x26a6')](_0x4376d8('0x70a'),_0x3023dd)[_0x4376d8('0x14ec')]('motionPalettes',_0x568442)['constant'](_0x4376d8('0x2460'),_0x1ebef1)['config'](_0x20b52d)[_0x4376d8('0x282c')](_0x4376d8('0x222a'),_0x163590),_0x4e7214['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x28db'),_0x4376d8('0x1aeb'),'socket','msNavigationService',_0x4376d8('0x1885'),_0x4376d8('0x212e')];function _0x4e7214(_0x43be66,_0x454c89,_0x1bebea,_0x14b1b2,_0x5e540d,_0x3d6b0b,_0x476038){const _0x4b3a9a=_0x4376d8,_0x361e6a=this;_0x361e6a[_0x4b3a9a('0x1617')]=angular[_0x4b3a9a('0x1ce1')]('body'),_0x361e6a[_0x4b3a9a('0xe97')]={'suppressScrollX':!![]},_0x361e6a[_0x4b3a9a('0x1aeb')]=_0x1bebea,_0x361e6a[_0x4b3a9a('0x23c4')]=_0x476038[_0x4b3a9a('0x23c4')],_0x361e6a[_0x4b3a9a('0x11e8')]=_0x225ef3,_0x361e6a[_0x4b3a9a('0xbb9')]=_0x1394f4,_0x361e6a[_0x4b3a9a('0x1b53')]=_0x45fd71,_0x14b1b2['on'](_0x4b3a9a('0x2e0'),_0x437e3a),_0x14b1b2['on']('dashboard:update',_0x437e3a),_0x14b1b2['on'](_0x4b3a9a('0xb78'),_0x7af97c),_0x14b1b2['on'](_0x4b3a9a('0xed4'),_0x44ce7d),_0x14b1b2['on'](_0x4b3a9a('0x117f'),_0x44ce7d),_0x14b1b2['on'](_0x4b3a9a('0x158c'),_0x746d43);function _0x225ef3(){const _0x2857b2=_0x4b3a9a;_0x361e6a['folded']=_0x454c89[_0x2857b2('0x1c53')](_0x2857b2('0x1f14'))===_0x2857b2('0xe34')||![];}function _0x1394f4(){const _0x1490f6=_0x4b3a9a;_0x361e6a[_0x1490f6('0x1c9b')]=!_0x361e6a[_0x1490f6('0x1c9b')],_0x454c89[_0x1490f6('0x2d8')](_0x1490f6('0x1f14'),_0x361e6a[_0x1490f6('0x1c9b')]);}function _0x45fd71(){const _0x1bc197=_0x4b3a9a;return _0x361e6a[_0x1bc197('0x1aeb')][_0x1bc197('0x20be')]?_0x1bc197('0x1389'):_0x361e6a[_0x1bc197('0x1aeb')][_0x1bc197('0x2671')];}function _0x437e3a(_0x48af59){const _0x105fd6=_0x4b3a9a;if(_0x48af59&&_0x48af59['id']){const _0x4ce296=0x1869f+_0x48af59['id'];_0x5e540d[_0x105fd6('0x1321')](_0x105fd6('0x182d')+_0x4ce296,{'id':_0x4ce296,'title':_0x48af59[_0x105fd6('0x2aa')]||_0x105fd6('0x1055'),'state':'app.dashboards.custom','stateParams':_0x48af59,'weight':0x2,'hidden':function(){const _0x4f3ca3=_0x105fd6;return _0x3d6b0b[_0x4f3ca3('0x1ba2')](_0x4f3ca3('0x684'))||!_0x3d6b0b['hasPermission'](_0x4ce296)&&!_0x3d6b0b['hasRole']('admin');}});}}function _0x7af97c(_0x50df38){const _0x59addd=_0x4b3a9a;if(_0x50df38&&_0x50df38['id']){const _0x566952=0x1869f+_0x50df38['id'];_0x5e540d[_0x59addd('0x1350')]('apps.dashboards.custom_'+_0x566952);}}function _0x44ce7d(_0x1fa1b6){const _0x3c7a23=_0x4b3a9a;if(_0x1fa1b6&&_0x1fa1b6['id']&&_0x1fa1b6[_0x3c7a23('0x874')]!=_0x3c7a23('0x360')){if(_0x1fa1b6[_0x3c7a23('0x469')]){if(_0x1fa1b6['sidebar']=='always'||_0x1fa1b6[_0x3c7a23('0x874')]==_0x3c7a23('0x1bba')){_0x5e540d[_0x3c7a23('0x1321')]('apps.plugins',{'id':0x76c,'title':_0x3c7a23('0x1d54'),'translate':'PLUGINS.PLUGINS','icon':_0x3c7a23('0x24a0'),'weight':0x11,'hidden':function(){const _0x3f981c=_0x3c7a23;return _0x3d6b0b['hasRole'](_0x3f981c('0x684'))||!_0x3d6b0b[_0x3f981c('0xf51')](0x76c)&&!_0x3d6b0b[_0x3f981c('0x1ba2')]('admin');}});const _0x51520d=0x15b38+_0x1fa1b6['id'];_0x5e540d[_0x3c7a23('0x1321')](_0x3c7a23('0x3b6')+_0x51520d,{'id':_0x51520d,'title':_0x1fa1b6['name']||_0x3c7a23('0x1055'),'state':_0x3c7a23('0x20c4'),'stateParams':_0x1fa1b6,'weight':0x2,'hidden':function(){const _0x42a164=_0x3c7a23;return _0x3d6b0b[_0x42a164('0x1ba2')](_0x42a164('0x684'))||!_0x3d6b0b[_0x42a164('0xf51')](_0x51520d)&&!_0x3d6b0b[_0x42a164('0x1ba2')](_0x42a164('0x20bf'));}}),_0x5e540d[_0x3c7a23('0x1b22')]();}}else{const _0x522815=0x15b38+_0x1fa1b6['id'];_0x2d0d49(0x76c,_0x522815)&&(_0x1fa1b6['sidebar']=='always'||_0x1fa1b6[_0x3c7a23('0x874')]==_0x3c7a23('0x1bba'))&&(_0x5e540d[_0x3c7a23('0x1350')](_0x3c7a23('0x3b6')+_0x522815),!_0x44d907(0x76c)&&_0x5e540d[_0x3c7a23('0x1321')]('apps.plugins',{'id':0x76c,'title':_0x3c7a23('0x1d54'),'translate':_0x3c7a23('0xbc6'),'icon':_0x3c7a23('0x24a0'),'weight':0x11,'hidden':function(){return!![];}}));}}}function _0x746d43(_0x4d5a4b){const _0xf043f=_0x4b3a9a;if(_0x4d5a4b&&_0x4d5a4b['id']&&_0x4d5a4b['sidebar']!=_0xf043f('0x360')){const _0x370d35=0x15b38+_0x4d5a4b['id'];(_0x4d5a4b[_0xf043f('0x874')]==_0xf043f('0x1256')||_0x4d5a4b['sidebar']=='adminOnly')&&(_0x5e540d[_0xf043f('0x1350')]('apps.plugins.plugin_'+_0x370d35),!_0x44d907(0x76c)&&_0x5e540d[_0xf043f('0x1321')](_0xf043f('0x2073'),{'id':0x76c,'title':_0xf043f('0x1d54'),'translate':_0xf043f('0xbc6'),'icon':_0xf043f('0x24a0'),'weight':0x11,'hidden':function(){return!![];}}));}}function _0x44d907(_0x4c6a76){const _0x235c2d=_0x4b3a9a,_0x2b881b=_0x5e540d['getNavigation'](),_0x150871=_0x49cbdd()['find'](_0x2b881b[0x0][_0x235c2d('0x2857')],{'id':_0x4c6a76});return _0x150871&&_0x150871[_0x235c2d('0x2857')][_0x235c2d('0x1f73')]>0x0?!![]:![];}function _0x2d0d49(_0x3d8dfc,_0x361f87){const _0x4a29a6=_0x4b3a9a,_0x43a30f=_0x5e540d[_0x4a29a6('0x75d')](),_0x395ac5=_0x49cbdd()[_0x4a29a6('0xe8e')](_0x43a30f[0x0]['children'],{'id':_0x3d8dfc});if(!_0x395ac5)return![];return _0x49cbdd()[_0x4a29a6('0x26f8')](_0x395ac5[_0x4a29a6('0x2857')],{'id':_0x361f87});}_0x43be66[_0x4b3a9a('0x207c')](_0x4b3a9a('0x200a'),function(){const _0x59dff1=_0x4b3a9a;_0x361e6a[_0x59dff1('0x1617')][_0x59dff1('0x1e56')](_0x59dff1('0x1e9a'));});}const _0x869e23=_0x4e7214;;function _0x3faac1(){}angular[_0x4376d8('0x11c4')](_0x4376d8('0x10d8'),[])['config'](_0x3faac1)[_0x4376d8('0x5ce')](_0x4376d8('0x28d4'),_0x869e23),_0x46c6d6[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x14f6'),_0x4376d8('0x199d'),_0x4376d8('0x212e'),_0x4376d8('0x221e'),'setting','reset'];function _0x46c6d6(_0x405319,_0x3f4c6b,_0x58e02b,_0x223222,_0x2bb803,_0x4c63a3,_0x3dd9c6){const _0x3382d7=_0x4376d8,_0x3b3923=this;_0x3b3923[_0x3382d7('0x73e')]=[],_0x3b3923[_0x3382d7('0x221e')]=_0x2bb803,_0x3b3923[_0x3382d7('0x1aeb')]=_0x4c63a3,_0x3b3923[_0x3382d7('0x2a9')]=_0x3dd9c6,_0x3b3923[_0x3382d7('0x1572')]=_0x3b3923['setting'][_0x3382d7('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3b3923[_0x3382d7('0x838')]=_0x5bf5f3,_0x3b3923[_0x3382d7('0x136e')]=_0x42f279,_0x405319[_0x3382d7('0x620')](_0x3382d7('0x1a37'),function(_0x20ca88){const _0x32ea76=_0x3382d7;!_0x49cbdd()['isNil'](_0x3b3923[_0x32ea76('0xf2d')])&&(_0x20ca88===_0x3b3923[_0x32ea76('0xf2d')]?_0x405319[_0x32ea76('0x1d94')][_0x32ea76('0xb62')][_0x32ea76('0x2663')](_0x32ea76('0x1b25'),![]):_0x405319[_0x32ea76('0x1d94')]['password'][_0x32ea76('0x2663')](_0x32ea76('0x1b25'),!![]));});function _0x5bf5f3(){const _0x67d9f8=_0x3382d7;_0x3b3923[_0x67d9f8('0x73e')]=[],_0x223222[_0x67d9f8('0x221e')][_0x67d9f8('0x14d7')]({'id':_0x3b3923[_0x67d9f8('0x221e')]['id']},{'oldPassword':_0x3b3923[_0x67d9f8('0xf2d')],'newPassword':_0x3b3923['password']})['$promise'][_0x67d9f8('0x17e7')](function(){const _0x42b0d5=_0x67d9f8;_0x58e02b[_0x42b0d5('0x28e2')](_0x58e02b[_0x42b0d5('0x144b')]()['textContent'](_0x42b0d5('0x243e'))[_0x42b0d5('0x707')](_0x42b0d5('0x1d51'))[_0x42b0d5('0x1ed2')](0x1388)),_0x42f279();})[_0x67d9f8('0x16df')](function(_0x447bbe){const _0x5e2fe7=_0x67d9f8;console[_0x5e2fe7('0x1db9')](_0x447bbe),_0x3b3923[_0x5e2fe7('0x73e')]=_0x447bbe['data'][_0x5e2fe7('0x73e')]&&_0x447bbe['data']['errors'][_0x5e2fe7('0x1f73')]?_0x447bbe[_0x5e2fe7('0x1457')]['errors']:[{'message':_0x447bbe[_0x5e2fe7('0x1457')][_0x5e2fe7('0x1603')]||_0x5e2fe7('0x17b6'),'type':_0x5e2fe7('0x8eb')}];});}function _0x42f279(){const _0x36d7ac=_0x3382d7;_0x3f4c6b[_0x36d7ac('0x212a')]();}}const _0x66083b=_0x46c6d6;_0x237298[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x108a'),'api',_0x4376d8('0x145b'),'customFields'];function _0x237298(_0x274c13,_0x1cd3e,_0x56c3ab,_0x1498c5,_0xb4e6c6,_0x97784,_0x141fd9,_0x33f141){const _0x5400ee=_0x4376d8,_0x40f471=this;_0x40f471[_0x5400ee('0x120')]=_0x33f141&&_0x33f141[_0x5400ee('0x2319')]?_0x49cbdd()[_0x5400ee('0x250e')](_0x49cbdd()['keyBy'](_0x33f141[_0x5400ee('0x2319')],function(_0x286dfc){const _0x51d4b0=_0x5400ee;return _0x51d4b0('0x481')+_0x286dfc['id'];}),'name'):{},_0x40f471[_0x5400ee('0x73e')]=[],_0x40f471[_0x5400ee('0x1b0d')]=[],_0x40f471[_0x5400ee('0x145b')]=_0x141fd9,_0x40f471['originated']=![],_0x40f471[_0x5400ee('0x94f')]=![],_0x40f471[_0x5400ee('0x15ba')]=![],_0x40f471[_0x5400ee('0x1b0d')]['push'](_0x40f471['preview']['id']),_0x40f471['originatePreview']=_0x15ffc6,_0x40f471[_0x5400ee('0x136e')]=_0x39fba5,_0x40f471[_0x5400ee('0xe65')]=_0x3ce819,_0x40f471[_0x5400ee('0xf1f')]=_0x25e80a,_0x40f471[_0x5400ee('0x23af')]=_0x862d11,_0x40f471[_0x5400ee('0x927')]=_0x35318f,_0x40f471[_0x5400ee('0x1dd0')]=_0x230577,_0x40f471['isNil']=_0x1a308a;function _0x1a308a(_0x187f05){const _0xbd9dab=_0x5400ee;return _0x49cbdd()[_0xbd9dab('0x390')](_0x187f05);}function _0x35318f(_0x4635cd){const _0x42782b=_0x5400ee;return _0x49cbdd()[_0x42782b('0x818')](_0x4635cd,_0x42782b('0x481'));}function _0x230577(_0x4eff52){const _0x2a35ce=_0x5400ee;return _0x49cbdd()[_0x2a35ce('0x24b0')]([_0x2a35ce('0x111d'),_0x2a35ce('0x452'),_0x2a35ce('0x7f8'),_0x2a35ce('0x5e5'),_0x2a35ce('0x7c9'),_0x2a35ce('0x1480'),'id',_0x2a35ce('0x1a6d'),_0x2a35ce('0x2809'),_0x2a35ce('0x1522'),_0x2a35ce('0xb8a'),'facebook',_0x2a35ce('0x5ad'),_0x2a35ce('0xabd'),_0x2a35ce('0x1bd3'),_0x2a35ce('0x225b'),_0x2a35ce('0x88'),_0x2a35ce('0xe39'),'telegram'],_0x4eff52);}function _0x15ffc6(){const _0x214555=_0x5400ee;_0x40f471['originated']=!![],_0x40f471[_0x214555('0x94f')]=!![],_0x49cbdd()[_0x214555('0x109a')](_0x40f471['preview'])?(_0xb4e6c6[_0x214555('0x1db9')]({'title':'Message','msg':_0x214555('0x458')}),_0x40f471[_0x214555('0x94f')]=![],_0x40f471[_0x214555('0x1b0d')]=[],_0x39fba5(!![])):_0x97784[_0x214555('0x1207')][_0x214555('0x1430')]({'id':_0x40f471[_0x214555('0x145b')]['id']})[_0x214555('0x1af5')]['then'](function(){_0x39fba5(!![]);})[_0x214555('0x16df')](function(_0x32e52d){const _0x106656=_0x214555;_0xb4e6c6[_0x106656('0x1db9')]({'title':_0x106656('0x213'),'msg':_0x32e52d[_0x106656('0x1457')]}),_0x39fba5(!![]);})[_0x214555('0x74e')](function(){const _0x564a56=_0x214555;_0x40f471[_0x564a56('0x94f')]=![],_0x40f471['hopperIds']=[];});}function _0x39fba5(_0x10cb93){const _0x40e403=_0x5400ee;_0x49cbdd()[_0x40e403('0x390')](_0x10cb93)&&_0x97784['cmHopper']['update']({'id':_0x40f471[_0x40e403('0x145b')]['id'],'UserId':null}),_0x1498c5[_0x40e403('0x212a')]();}_0x274c13['$on'](_0x5400ee('0x2b4'),function(){const _0x19ddc2=_0x5400ee;!_0x40f471[_0x19ddc2('0x829')]&&_0x97784[_0x19ddc2('0xf6a')][_0x19ddc2('0x27ba')]({'id':_0x40f471[_0x19ddc2('0x145b')]['id'],'UserId':null});});function _0x3ce819(){const _0xbfecde=_0x5400ee;return _0x40f471[_0xbfecde('0x15ba')]=!![],_0x97784[_0xbfecde('0xf6a')][_0xbfecde('0x1613')]({'hopperIds':_0x40f471[_0xbfecde('0x1b0d')],'direction':_0xbfecde('0x9ac')})[_0xbfecde('0x1af5')][_0xbfecde('0x17e7')](function(_0x2ff4ca){const _0x182dda=_0xbfecde;_0x40f471['disableGetContact']=![],!_0x49cbdd()[_0x182dda('0x390')](_0x2ff4ca)&&!_0x49cbdd()[_0x182dda('0x390')](_0x2ff4ca[_0x182dda('0x1eb2')])&&_0x2ff4ca[_0x182dda('0x1eb2')][_0x182dda('0x10c9')]?(!_0x40f471['originated']&&_0x97784[_0x182dda('0xf6a')]['update']({'id':_0x40f471[_0x182dda('0x145b')]['id'],'UserId':null}),_0x40f471['preview']=_0x2ff4ca,_0x40f471[_0x182dda('0x1b0d')][_0x182dda('0x269f')](_0x40f471[_0x182dda('0x145b')]['id'])):(_0x40f471[_0x182dda('0x1b0d')]=[],_0x1498c5[_0x182dda('0x212a')](),_0xb4e6c6[_0x182dda('0x1178')]({'title':_0x182dda('0x313'),'msg':_0x182dda('0x1f7d')}));})[_0xbfecde('0x16df')](function(_0x1d0eac){const _0x43ea72=_0xbfecde;_0x40f471[_0x43ea72('0x15ba')]=![],_0x40f471[_0x43ea72('0x1b0d')]=[];if(_0x1d0eac[_0x43ea72('0x11c5')]===0x194)_0x40f471[_0x43ea72('0x23af')]();else{if(_0x1d0eac['data']&&_0x1d0eac[_0x43ea72('0x1457')][_0x43ea72('0x73e')]&&_0x1d0eac[_0x43ea72('0x1457')][_0x43ea72('0x73e')]['length']){_0x1498c5[_0x43ea72('0x212a')]();for(let _0x39e7c2=0x0;_0x39e7c2<_0x1d0eac[_0x43ea72('0x1457')][_0x43ea72('0x73e')][_0x43ea72('0x1f73')];_0x39e7c2+=0x1){_0xb4e6c6[_0x43ea72('0x1db9')]({'title':_0x1d0eac[_0x43ea72('0x1457')][_0x43ea72('0x73e')][_0x39e7c2][_0x43ea72('0x412')],'msg':_0x1d0eac[_0x43ea72('0x1457')][_0x43ea72('0x73e')][_0x39e7c2][_0x43ea72('0x1603')]});}}else _0x1498c5[_0x43ea72('0x212a')](),_0xb4e6c6['error']({'title':_0x1d0eac['status']?_0x43ea72('0x14f7')+_0x1d0eac['status']+_0x43ea72('0x16e4')+_0x1d0eac[_0x43ea72('0x1833')]:'api\x20preview','msg':_0x1d0eac[_0x43ea72('0x1457')]?JSON['stringify'](_0x1d0eac[_0x43ea72('0x1457')][_0x43ea72('0x1603')]):_0x1d0eac[_0x43ea72('0x9b6')]()});}});}function _0x25e80a(){const _0x2c29d7=_0x5400ee;_0x40f471['disableGetContact']=!![];if(_0x40f471[_0x2c29d7('0x1b0d')]['length']>0x1){const _0x173a7e=_0x49cbdd()[_0x2c29d7('0x2307')](_0x40f471[_0x2c29d7('0x1b0d')],_0x40f471[_0x2c29d7('0x145b')]['id']);return _0x97784[_0x2c29d7('0xf6a')][_0x2c29d7('0x1613')]({'hopperIds':_0x173a7e,'direction':_0x2c29d7('0x20e9')})[_0x2c29d7('0x1af5')][_0x2c29d7('0x17e7')](function(_0x4a7243){const _0x7aa521=_0x2c29d7;_0x40f471[_0x7aa521('0x15ba')]=![],!_0x49cbdd()[_0x7aa521('0x390')](_0x4a7243)&&!_0x49cbdd()['isNil'](_0x4a7243[_0x7aa521('0x1eb2')])&&_0x4a7243[_0x7aa521('0x1eb2')][_0x7aa521('0x10c9')]?(_0x49cbdd()[_0x7aa521('0x5f3')](_0x40f471[_0x7aa521('0x1b0d')],function(_0x4903ba){return _0x4903ba==_0x40f471['preview']['id'];}),!_0x40f471[_0x7aa521('0x829')]&&_0x97784[_0x7aa521('0xf6a')][_0x7aa521('0x27ba')]({'id':_0x40f471[_0x7aa521('0x145b')]['id'],'UserId':null}),_0x40f471[_0x7aa521('0x145b')]=_0x4a7243):(_0x40f471['hopperIds']=[],_0x1498c5['hide'](),_0xb4e6c6[_0x7aa521('0x1178')]({'title':_0x7aa521('0x313'),'msg':'CAMPAIGN\x20NOT\x20ACTIVE'}));})[_0x2c29d7('0x16df')](function(_0x14c894){const _0x5c5439=_0x2c29d7;if(_0x14c894[_0x5c5439('0x11c5')]===0x194)_0x40f471[_0x5c5439('0x1b0d')]=[_0x40f471[_0x5c5439('0x145b')]['id']],_0xb4e6c6[_0x5c5439('0x1178')]({'title':_0x5c5439('0x313'),'msg':_0x5c5439('0x26ea')});else{if(_0x14c894['data']&&_0x14c894[_0x5c5439('0x1457')]['errors']&&_0x14c894['data'][_0x5c5439('0x73e')][_0x5c5439('0x1f73')]){_0x40f471['hopperIds']=[],_0x1498c5['hide']();for(let _0x5239dc=0x0;_0x5239dc<_0x14c894[_0x5c5439('0x1457')]['errors'][_0x5c5439('0x1f73')];_0x5239dc+=0x1){_0xb4e6c6[_0x5c5439('0x1db9')]({'title':_0x14c894[_0x5c5439('0x1457')][_0x5c5439('0x73e')][_0x5239dc][_0x5c5439('0x412')],'msg':_0x14c894[_0x5c5439('0x1457')]['errors'][_0x5239dc]['message']});}}else _0x40f471[_0x5c5439('0x1b0d')]=[],_0x1498c5[_0x5c5439('0x212a')](),_0xb4e6c6[_0x5c5439('0x1db9')]({'title':_0x14c894['status']?'API:'+_0x14c894[_0x5c5439('0x11c5')]+'\x20-\x20'+_0x14c894[_0x5c5439('0x1833')]:_0x5c5439('0x2367'),'msg':_0x14c894[_0x5c5439('0x1457')]?JSON[_0x5c5439('0x678')](_0x14c894[_0x5c5439('0x1457')][_0x5c5439('0x1603')]):_0x14c894[_0x5c5439('0x9b6')]()});}});}}function _0x862d11(){const _0x567f07=_0x5400ee;return _0x40f471[_0x567f07('0x15ba')]=!![],_0xb4e6c6[_0x567f07('0x1178')]({'title':_0x567f07('0x313'),'msg':_0x567f07('0xe5')}),_0x97784[_0x567f07('0xf6a')][_0x567f07('0x1613')]({'hopperIds':[_0x40f471[_0x567f07('0x145b')]['id']],'direction':_0x567f07('0x9ac')})[_0x567f07('0x1af5')][_0x567f07('0x17e7')](function(_0x1223b1){const _0x26187e=_0x567f07;!_0x49cbdd()[_0x26187e('0x390')](_0x1223b1)&&!_0x49cbdd()[_0x26187e('0x390')](_0x1223b1[_0x26187e('0x1eb2')])&&_0x1223b1[_0x26187e('0x1eb2')]['dialActive']?(!_0x40f471[_0x26187e('0x829')]&&_0x97784[_0x26187e('0xf6a')]['update']({'id':_0x40f471['preview']['id'],'UserId':null}),_0x40f471[_0x26187e('0x145b')]=_0x1223b1,_0x40f471['hopperIds'][_0x26187e('0x269f')](_0x40f471[_0x26187e('0x145b')]['id'])):(_0x1498c5[_0x26187e('0x212a')](),_0xb4e6c6[_0x26187e('0x1178')]({'title':'PREVIEW','msg':_0x26187e('0x1f7d')}));})[_0x567f07('0x16df')](function(_0x1b1515){const _0x2ff2d6=_0x567f07;_0x1498c5[_0x2ff2d6('0x212a')]();if(_0x1b1515[_0x2ff2d6('0x11c5')]===0x194)_0xb4e6c6[_0x2ff2d6('0x1178')]({'title':_0x2ff2d6('0x313'),'msg':_0x2ff2d6('0x1dcc')});else{if(_0x1b1515[_0x2ff2d6('0x1457')]&&_0x1b1515[_0x2ff2d6('0x1457')]['errors']&&_0x1b1515[_0x2ff2d6('0x1457')][_0x2ff2d6('0x73e')][_0x2ff2d6('0x1f73')])for(let _0x584c00=0x0;_0x584c00<_0x1b1515[_0x2ff2d6('0x1457')][_0x2ff2d6('0x73e')]['length'];_0x584c00+=0x1){_0xb4e6c6[_0x2ff2d6('0x1db9')]({'title':_0x1b1515[_0x2ff2d6('0x1457')][_0x2ff2d6('0x73e')][_0x584c00]['type'],'msg':_0x1b1515['data']['errors'][_0x584c00][_0x2ff2d6('0x1603')]});}else _0xb4e6c6[_0x2ff2d6('0x1db9')]({'title':_0x1b1515[_0x2ff2d6('0x11c5')]?_0x2ff2d6('0x14f7')+_0x1b1515[_0x2ff2d6('0x11c5')]+_0x2ff2d6('0x16e4')+_0x1b1515[_0x2ff2d6('0x1833')]:_0x2ff2d6('0x2367'),'msg':_0x1b1515[_0x2ff2d6('0x1457')]?JSON[_0x2ff2d6('0x678')](_0x1b1515[_0x2ff2d6('0x1457')][_0x2ff2d6('0x1603')]):_0x1b1515[_0x2ff2d6('0x9b6')]()});}})[_0x567f07('0x74e')](function(){const _0xe9dee0=_0x567f07;_0x40f471[_0xe9dee0('0x15ba')]=![];});}}const _0x25896c=_0x237298,_0x210deb=_0x4cf2bc['p']+'src/js/modules/toolbar/preview/dialog.html/dialog.html',_0x39c745=_0x4cf2bc['p']+'src/js/modules/toolbar/changepassword/changepassword.html/changepassword.html';_0x1eb38c[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x655'),'$q',_0x4376d8('0xc4c'),'$timeout',_0x4376d8('0x1391'),_0x4376d8('0xf69'),_0x4376d8('0x28da'),'$mdToast',_0x4376d8('0x198f'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x28db'),_0x4376d8('0x108a'),_0x4376d8('0xa61'),'Auth',_0x4376d8('0x25aa'),'api',_0x4376d8('0x1d11'),'setting',_0x4376d8('0x33a')];function _0x1eb38c(_0x1aa5d0,_0x337dff,_0x21657d,_0x5eaf3b,_0x15e151,_0x5bce0f,_0x2658e0,_0x1a4168,_0x3e80f0,_0x542528,_0x3fae57,_0x23ad7a,_0x1dc29d,_0x1ef042,_0x8fc77c,_0x5dfa64,_0x27a82f,_0xf1493e,_0x251bef,_0x2b886c,_0x2ee20c){const _0x1485a6=_0x4376d8,_0x1c0cc8=this;_0x1c0cc8[_0x1485a6('0x160f')]={},_0x1c0cc8[_0x1485a6('0x9ad')]=!![],_0x1c0cc8['baseUrl']=_0xf1493e[_0x1485a6('0x23c4')];let _0x233b22;_0x337dff[_0x1485a6('0x3b0')]={'search':''},_0x1c0cc8['pauses']=[],_0x1c0cc8[_0x1485a6('0x1d11')]=_0x251bef,_0x1c0cc8[_0x1485a6('0x197c')]=_0x5dfa64[_0x1485a6('0x2831')](),_0x1c0cc8['unreadTotalMessages']=0x0,_0x1c0cc8[_0x1485a6('0x27a2')]=0x0,_0x1c0cc8['contcts']=0x0;_0x1c0cc8['currentUser'][_0x1485a6('0x1085')]==='agent'&&(_0x233b22=_0x2ee20c(_0x393683,0x3a97));_0x1c0cc8[_0x1485a6('0x1aeb')]=_0x2b886c,_0x1c0cc8[_0x1485a6('0x1617')]=angular[_0x1485a6('0x1ce1')]('body'),_0x1c0cc8[_0x1485a6('0x2790')]={'realm':'asterisk','host':_0x5bce0f[_0x1485a6('0x108')](),'protocol':_0x5bce0f[_0x1485a6('0x14fe')](),'remotePlayerId':_0x1485a6('0x1429'),'ua':_0x1485a6('0x5e6'),'license':_0x1c0cc8[_0x1485a6('0x1d11')][_0x1485a6('0x4b6')],'phoneBarExpires':_0x1c0cc8[_0x1485a6('0x197c')][_0x1485a6('0x1b5f')],'phoneBarPrefixRequired':_0x1c0cc8[_0x1485a6('0x197c')][_0x1485a6('0x1f6d')]},_0x1c0cc8[_0x1485a6('0x826')]={'id':_0x5dfa64['getCurrentUser']()['id'],'fields':_0x1485a6('0x106c'),'channel':'voice','nolimit':!![]},_0x1c0cc8[_0x1485a6('0x7c0')]=[{'title':'Online','icon':_0x1485a6('0xb80'),'color':_0x1485a6('0x644')},{'title':_0x1485a6('0xe1a'),'icon':_0x1485a6('0x1df6'),'color':_0x1485a6('0x9a0')},{'title':'Do\x20not\x20Disturb','icon':'icon-minus-circle','color':'#F44336'},{'title':_0x1485a6('0x29c'),'icon':_0x1485a6('0xca6'),'color':_0x1485a6('0x1bef')},{'title':'Offline','icon':'icon-checkbox-blank-circle-outline','color':'#616161'}],_0x1c0cc8[_0x1485a6('0x1e7a')]={'ar':{'title':_0x1485a6('0x1dd6'),'translation':_0x1485a6('0x2888'),'code':'ar','flag':'ar'},'da':{'title':_0x1485a6('0x6db'),'translation':_0x1485a6('0x1ece'),'code':'da','flag':'da'},'de':{'title':_0x1485a6('0x1b82'),'translation':_0x1485a6('0x3bd'),'code':'de','flag':'de'},'en':{'title':_0x1485a6('0x14d0'),'translation':'TOOLBAR.ENGLISH','code':'en','flag':'us'},'es':{'title':_0x1485a6('0xf87'),'translation':_0x1485a6('0x260a'),'code':'es','flag':'es'},'fa':{'title':'Persian','translation':'TOOLBAR.PERSIAN','code':'fa','flag':'fa'},'fi':{'title':'Finnish','translation':'TOOLBAR.FINNISH','code':'fi','flag':'fi'},'fr':{'title':_0x1485a6('0x1a76'),'translation':_0x1485a6('0x9be'),'code':'fr','flag':'fr'},'he':{'title':'Hebrew','translation':_0x1485a6('0x20d'),'code':'he','flag':'he'},'hi':{'title':_0x1485a6('0x232b'),'translation':'TOOLBAR.HINDI','code':'hi','flag':'hi'},'id':{'title':_0x1485a6('0xcc2'),'translation':_0x1485a6('0x6bb'),'code':'id','flag':'id'},'it':{'title':_0x1485a6('0x2536'),'translation':_0x1485a6('0x18fb'),'code':'it','flag':'it'},'ja':{'title':_0x1485a6('0x1f37'),'translation':_0x1485a6('0x379'),'code':'ja','flag':'ja'},'ko':{'title':_0x1485a6('0x16ad'),'translation':_0x1485a6('0x999'),'code':'ko','flag':'ko'},'lv':{'title':_0x1485a6('0x47e'),'translation':_0x1485a6('0xbb'),'code':'lv','flag':'lv'},'nl':{'title':_0x1485a6('0x28cb'),'translation':_0x1485a6('0x17a3'),'code':'nl','flag':'nl'},'no':{'title':_0x1485a6('0x1534'),'translation':_0x1485a6('0x2089'),'code':'no','flag':'no'},'pl':{'title':_0x1485a6('0x1d30'),'translation':'TOOLBAR.POLISH','code':'pl','flag':'pl'},'pt-BR':{'title':_0x1485a6('0x25e2'),'translation':_0x1485a6('0xef0'),'code':_0x1485a6('0xfc'),'flag':'pt-BR'},'pt-PT':{'title':'Portuguese','translation':_0x1485a6('0x170b'),'code':_0x1485a6('0x26fb'),'flag':'pt-PT'},'ru':{'title':_0x1485a6('0x991'),'translation':_0x1485a6('0x21b0'),'code':'ru','flag':'ru'},'sv':{'title':_0x1485a6('0x1198'),'translation':_0x1485a6('0xf8f'),'code':'sv','flag':'sv'},'tr':{'title':_0x1485a6('0x14d2'),'translation':_0x1485a6('0xc52'),'code':'tr','flag':'tr'},'zh-CN':{'title':_0x1485a6('0x376'),'translation':_0x1485a6('0x10e5'),'code':_0x1485a6('0x1740'),'flag':'zh-CN'},'zh-TW':{'title':_0x1485a6('0x23a3'),'translation':_0x1485a6('0x100f'),'code':_0x1485a6('0x1da3'),'flag':_0x1485a6('0x1da3')}};const _0x27b79b=['ar','fa','he'];_0x1c0cc8[_0x1485a6('0xe67')]=_0x137982,_0x1c0cc8[_0x1485a6('0xff8')]=_0x122d57,_0x1c0cc8['changeLanguage']=_0x7456f7,_0x1c0cc8[_0x1485a6('0x16fe')]=_0x269f77,_0x1c0cc8[_0x1485a6('0x28b5')]=_0x20dca0,_0x1c0cc8[_0x1485a6('0xbb9')]=_0x59aa68,_0x1c0cc8[_0x1485a6('0xfba')]=_0x2b39bc,_0x1c0cc8['searchResultClick']=_0x23d951,_0x1c0cc8['openSettings']=_0x59baa7,_0x1c0cc8[_0x1485a6('0x14d7')]=_0xc33f31,_0x1c0cc8[_0x1485a6('0xc61')]=_0x510773,_0x1c0cc8['onUserUpdate']=_0x4ca045,_0x1c0cc8[_0x1485a6('0x948')]=_0x408dda,_0x1c0cc8['pause']=_0x2af80f,_0x1c0cc8[_0x1485a6('0xc57')]=_0x139ef6,_0x1c0cc8[_0x1485a6('0x145b')]=_0x208397,_0x1c0cc8[_0x1485a6('0x1b53')]=_0x4f4b92,_0x1c0cc8[_0x1485a6('0xee4')]=_0x4cc72e,_0x1c0cc8[_0x1485a6('0x10b0')]=_0x17a959,_0x1c0cc8[_0x1485a6('0x3dd')]=_0x544f7e,_0x1c0cc8[_0x1485a6('0x1c99')]=_0x18c516,_0x1c0cc8[_0x1485a6('0xc96')]=_0x38f29b,_0x2b72cb(),_0x57e582(),_0x8d1c85();function _0x2b72cb(){const _0x5be83e=_0x1485a6;_0x1c0cc8['user']=_0x5dfa64[_0x5be83e('0x2831')](),_0x1c0cc8[_0x5be83e('0x2790')][_0x5be83e('0x112d')]=_0x1c0cc8['user'][_0x5be83e('0x75a')],_0x1c0cc8['conf']['id']=_0x1c0cc8['user']['id'],_0x1c0cc8[_0x5be83e('0x2790')][_0x5be83e('0x2aa')]=_0x1c0cc8[_0x5be83e('0x221e')]['name'],_0x1c0cc8[_0x5be83e('0x2790')][_0x5be83e('0xea6')]=_0x1c0cc8[_0x5be83e('0x221e')]['fullname'],_0x1c0cc8['conf'][_0x5be83e('0xe3e')]=_0x1c0cc8[_0x5be83e('0x221e')][_0x5be83e('0xe3e')],_0x1c0cc8[_0x5be83e('0x2790')][_0x5be83e('0x1535')]=_0x1c0cc8[_0x5be83e('0x221e')][_0x5be83e('0x1663')],_0x1c0cc8[_0x5be83e('0x2790')][_0x5be83e('0x1efe')]=_0x1c0cc8[_0x5be83e('0x221e')][_0x5be83e('0x702')],_0x1c0cc8[_0x5be83e('0x2790')][_0x5be83e('0x1d2f')]=_0x1c0cc8[_0x5be83e('0x221e')][_0x5be83e('0x20b9')],_0x1c0cc8['conf'][_0x5be83e('0x860')]=_0x1c0cc8['user'][_0x5be83e('0x1edd')],_0x1c0cc8['conf'][_0x5be83e('0x139d')]=_0x1c0cc8[_0x5be83e('0x221e')][_0x5be83e('0x280a')],_0x1c0cc8[_0x5be83e('0xc0e')]=_0x1c0cc8[_0x5be83e('0x7c0')][0x0];const _0x452fcd=_0x1dc29d['get'](_0x5be83e('0x16b8'));_0x452fcd&&typeof _0x1c0cc8[_0x5be83e('0x1e7a')][_0x452fcd]!==_0x5be83e('0xfad')?_0x1c0cc8[_0x5be83e('0x773')]=_0x1c0cc8[_0x5be83e('0x1e7a')][_0x452fcd]:_0x1c0cc8[_0x5be83e('0x773')]=_0x1c0cc8[_0x5be83e('0x1e7a')][_0x1a4168[_0x5be83e('0x1c6b')]()];_0xf1493e[_0x5be83e('0x267a')][_0x5be83e('0x1c53')]({'fields':'name','nolimit':!![]})[_0x5be83e('0x1af5')]['then'](function(_0x56fdd0){const _0x47bd30=_0x5be83e;_0x1c0cc8[_0x47bd30('0x1492')]=_0x56fdd0[_0x47bd30('0x2319')]?_0x56fdd0[_0x47bd30('0x2319')]:[];})[_0x5be83e('0x16df')](function(_0x2af65c){const _0x3b3769=_0x5be83e;_0x1ef042[_0x3b3769('0x1db9')]({'title':_0x2af65c[_0x3b3769('0x11c5')]?_0x3b3769('0x14f7')+_0x2af65c['status']+_0x3b3769('0x16e4')+_0x2af65c['statusText']:_0x3b3769('0xa30'),'msg':_0x2af65c[_0x3b3769('0x11c5')]?JSON[_0x3b3769('0x678')](_0x2af65c[_0x3b3769('0x1457')]):_0x2af65c[_0x3b3769('0x9b6')]()});});if(_0x5dfa64['getAuthenticationType']()=='LOCAL_LOGIN'){if(_0x1c0cc8[_0x5be83e('0x1aeb')][_0x5be83e('0x23ea')]){if(!_0x1c0cc8[_0x5be83e('0x221e')]['passwordResetAt'])_0xc33f31(null,!![]);else{const _0x137175=_0x107a13()(_0x1c0cc8['user']['passwordResetAt'])['add'](_0x1c0cc8[_0x5be83e('0x1aeb')]['passwordExpiresDays']||0x5a,'day');if(_0x107a13()()[_0x5be83e('0x1441')](_0x137175))_0xc33f31(null,!![]);else _0x107a13()()[_0x5be83e('0xd62')](0xf,_0x5be83e('0x26d6'))['isAfter'](_0x137175)&&_0x1ef042[_0x5be83e('0xc86')]({'title':_0x1a4168[_0x5be83e('0x1acc')](_0x5be83e('0x715'))+'!','msg':_0x1a4168[_0x5be83e('0x1acc')]('TOOLBAR.PASSWORD_EXPIRE_REMAINING_DAYS')+':\x20'+Math[_0x5be83e('0x158e')](_0x137175[_0x5be83e('0x5e')](_0x107a13()(),_0x5be83e('0x1e7e'),!![])),'timeout':0x4e20});}}}}function _0x8d1c85(){const _0x157d9d=_0x1485a6;_0x27a82f['connect'](),_0x27a82f['on'](_0x157d9d('0x284f'),_0x1c0cc8[_0x157d9d('0x1b37')]),_0x27a82f['on']('user:called',_0x1c0cc8[_0x157d9d('0x948')]),_0x27a82f['on']('chatInternalMessage:save',_0x1c0cc8['onInternalMessageSave']),_0x27a82f['on'](_0x157d9d('0xc85'),_0x1c0cc8[_0x157d9d('0x3dd')]),_0x27a82f['on'](_0x157d9d('0x1cfb'),_0x1c0cc8['onUserVoiceQueue']),_0x27a82f['on']('voiceQueue:save',_0x1c0cc8[_0x157d9d('0xc96')]),_0x27a82f['on'](_0x157d9d('0x1f34'),_0x1c0cc8[_0x157d9d('0x1c99')]),_0x27a82f['on'](_0x157d9d('0x23c9'),_0x1c0cc8[_0x157d9d('0xc96')]),_0x27a82f['on'](_0x157d9d('0x167'),_0x1c0cc8['onVoiceQueue']),_0x27a82f['on'](_0x157d9d('0x1f57'),_0x14c299),_0x27a82f['on'](_0x157d9d('0xb42'),_0x227440);}function _0x5c08d7(){const _0x3e2fff=_0x1485a6;_0x27a82f[_0x3e2fff('0x1c65')](_0x3e2fff('0x792')),_0x27a82f['removeAllListeners']('user:update'),_0x27a82f[_0x3e2fff('0x1c65')]('chatInternalMessage:save'),_0x27a82f[_0x3e2fff('0x1c65')]('chatInternalMessage:update'),_0x27a82f[_0x3e2fff('0x1c65')]('userVoiceQueue:save'),_0x27a82f[_0x3e2fff('0x1c65')](_0x3e2fff('0x13a0')),_0x27a82f[_0x3e2fff('0x1c65')](_0x3e2fff('0x1f34')),_0x27a82f[_0x3e2fff('0x1c65')](_0x3e2fff('0x23c9')),_0x27a82f['removeAllListeners'](_0x3e2fff('0x167')),_0x27a82f['removeAllListeners'](_0x3e2fff('0x1f57')),_0x27a82f[_0x3e2fff('0x1c65')](_0x3e2fff('0xb42')),_0x27a82f[_0x3e2fff('0x5b3')]();}function _0x251a74(_0xb9b027){const _0x46c2df=_0x1485a6;_0x1c0cc8[_0x46c2df('0x160f')]=_0xb9b027?_0x49cbdd()['keyBy'](_0xb9b027[_0x46c2df('0x2319')]?_0xb9b027[_0x46c2df('0x2319')]:[],'id'):{};}function _0x57e582(){const _0x543399=_0x1485a6;_0x1c0cc8[_0x543399('0x1691')]=_0xf1493e[_0x543399('0x221e')][_0x543399('0x1f3b')](_0x1c0cc8[_0x543399('0x826')],_0x251a74)[_0x543399('0x1af5')];}function _0x38f29b(){_0x57e582();}function _0x18c516(_0x5c64e0){const _0x3e0a6d=_0x1485a6;_0x49cbdd()[_0x3e0a6d('0x1254')](_0x5c64e0[_0x3e0a6d('0x5e5')])===_0x5dfa64[_0x3e0a6d('0x2831')]()['id']&&_0x57e582();}function _0x2af80f(_0x9a67e9){const _0x418f82=_0x1485a6;return _0xf1493e['user']['pause']({'id':_0x1c0cc8[_0x418f82('0x221e')]['id'],'type':_0x9a67e9||_0x418f82('0x194c')})[_0x418f82('0x1af5')][_0x418f82('0x16df')](function(_0x4367f1){const _0x3ab4d0=_0x418f82;_0x1ef042[_0x3ab4d0('0x1db9')]({'title':_0x4367f1[_0x3ab4d0('0x11c5')]?_0x3ab4d0('0x14f7')+_0x4367f1[_0x3ab4d0('0x11c5')]+_0x3ab4d0('0x16e4')+_0x4367f1['statusText']:_0x3ab4d0('0x2142'),'msg':_0x4367f1[_0x3ab4d0('0x11c5')]?JSON['stringify'](_0x4367f1[_0x3ab4d0('0x1457')]):_0x4367f1[_0x3ab4d0('0x9b6')]()});});}function _0x139ef6(){const _0x557680=_0x1485a6;return _0xf1493e[_0x557680('0x221e')][_0x557680('0xc57')]({'id':_0x1c0cc8[_0x557680('0x221e')]['id']})[_0x557680('0x1af5')][_0x557680('0x16df')](function(_0x44c3cd){const _0x4068d2=_0x557680;_0x1ef042[_0x4068d2('0x1db9')]({'title':_0x44c3cd[_0x4068d2('0x11c5')]?_0x4068d2('0x14f7')+_0x44c3cd[_0x4068d2('0x11c5')]+'\x20-\x20'+_0x44c3cd[_0x4068d2('0x1833')]:_0x4068d2('0x20b2'),'msg':_0x44c3cd[_0x4068d2('0x11c5')]?JSON[_0x4068d2('0x678')](_0x44c3cd['data']):_0x44c3cd[_0x4068d2('0x9b6')]()});});}function _0x208397(_0x1d73c3){const _0x551545=_0x1485a6;return _0x1c0cc8[_0x551545('0x94f')]=!![],_0xf1493e['cmHopper']['getPreview']()[_0x551545('0x1af5')][_0x551545('0x17e7')](function(_0x9a0166){const _0xcb0487=_0x551545;!_0x49cbdd()[_0xcb0487('0x390')](_0x9a0166)&&!_0x49cbdd()['isNil'](_0x9a0166[_0xcb0487('0x1eb2')])&&_0x9a0166['Queue'][_0xcb0487('0x10c9')]?_0x3fae57[_0xcb0487('0x28e2')]({'controller':_0xcb0487('0x22a8'),'controllerAs':'vm','templateUrl':_0x210deb,'parent':angular[_0xcb0487('0x1ce1')](_0x23ad7a[_0xcb0487('0x13aa')]),'targetEvent':_0x1d73c3,'clickOutsideToClose':!![],'locals':{'preview':_0x9a0166},'resolve':{'customFields':[_0xcb0487('0x177'),function(_0x5974cb){const _0x5de592=_0xcb0487;return _0x5974cb[_0x5de592('0x898')](_0x5de592('0x21c'),{'nolimit':!![]});}]}}):_0x1ef042['info']({'title':_0xcb0487('0x313'),'msg':_0xcb0487('0x1f7d')});})[_0x551545('0x16df')](function(_0x20982e){const _0x22fbc9=_0x551545;if(_0x20982e[_0x22fbc9('0x11c5')]===0x194)_0x1ef042[_0x22fbc9('0x1178')]({'title':_0x22fbc9('0x313'),'msg':_0x22fbc9('0x147e')});else{if(_0x20982e[_0x22fbc9('0x1457')]&&_0x20982e[_0x22fbc9('0x1457')]['errors']&&_0x20982e['data'][_0x22fbc9('0x73e')][_0x22fbc9('0x1f73')]){_0x1c0cc8[_0x22fbc9('0x73e')]=_0x20982e[_0x22fbc9('0x1457')][_0x22fbc9('0x73e')]||[{'message':_0x20982e[_0x22fbc9('0x9b6')](),'type':'api.openchannelMessage.accept'}];for(let _0x2edd69=0x0;_0x2edd69<_0x20982e[_0x22fbc9('0x1457')][_0x22fbc9('0x73e')][_0x22fbc9('0x1f73')];_0x2edd69+=0x1){_0x1ef042['error']({'title':_0x20982e[_0x22fbc9('0x1457')][_0x22fbc9('0x73e')][_0x2edd69]['type'],'msg':_0x20982e[_0x22fbc9('0x1457')][_0x22fbc9('0x73e')][_0x2edd69][_0x22fbc9('0x1603')]});}}else _0x1ef042[_0x22fbc9('0x1db9')]({'title':_0x20982e[_0x22fbc9('0x11c5')]?_0x22fbc9('0x14f7')+_0x20982e['status']+'\x20-\x20'+_0x20982e[_0x22fbc9('0x1833')]:_0x22fbc9('0x21db'),'msg':_0x20982e[_0x22fbc9('0x1457')]?JSON[_0x22fbc9('0x678')](_0x20982e[_0x22fbc9('0x1457')][_0x22fbc9('0x1603')]):_0x20982e[_0x22fbc9('0x9b6')]()});}})[_0x551545('0x74e')](function(){const _0x8395cc=_0x551545;_0x1c0cc8[_0x8395cc('0x94f')]=![];});}function _0x137982(_0x54bf28){const _0x11ed70=_0x1485a6;_0x2658e0(_0x54bf28)[_0x11ed70('0x20de')]();}function _0x4cc72e(){const _0xc85585=_0x1485a6;return _0x1c0cc8[_0xc85585('0x197c')][_0xc85585('0x1085')]===_0xc85585('0x20bf')||_0x1c0cc8[_0xc85585('0x197c')][_0xc85585('0x1085')]===_0xc85585('0x221e')||_0x1c0cc8[_0xc85585('0x197c')][_0xc85585('0x1085')]===_0xc85585('0x684')&&_0x1c0cc8[_0xc85585('0x197c')][_0xc85585('0xa79')]!==0x0;}_0xf1493e[_0x1485a6('0x214e')][_0x1485a6('0x1c53')]({'fields':'FromId','ToId':_0x1c0cc8[_0x1485a6('0x197c')]['id'],'read':![],'nolimit':!![]})[_0x1485a6('0x1af5')][_0x1485a6('0x17e7')](function(_0x145b76){const _0x46cbc3=_0x1485a6;_0x1c0cc8[_0x46cbc3('0x2083')]=_0x145b76[_0x46cbc3('0x2319')][_0x46cbc3('0x1f73')];});function _0x17a959(_0xc4111){const _0x2b8fb8=_0x1485a6;_0xc4111[_0x2b8fb8('0x10b6')]===_0x1c0cc8[_0x2b8fb8('0x197c')]['id']&&!_0xc4111[_0x2b8fb8('0x23e2')]&&(_0x1c0cc8['unreadTotalMessages']+=0x1),_0xc4111[_0x2b8fb8('0x10b6')]===_0x1c0cc8[_0x2b8fb8('0x197c')]['id']&&_0xc4111['FromId']!==_0x1c0cc8[_0x2b8fb8('0x197c')]['id']&&!_0xc4111[_0x2b8fb8('0xf64')]&&_0xc4111[_0x2b8fb8('0x23e2')]&&_0x1c0cc8[_0x2b8fb8('0x27a2')]++;}function _0x544f7e(_0x305ff9){const _0x2c1ca9=_0x1485a6;_0x305ff9['ToId']===_0x1c0cc8[_0x2c1ca9('0x197c')]['id']&&_0x305ff9[_0x2c1ca9('0xf64')]&&_0x1c0cc8[_0x2c1ca9('0x2083')]>0x0&&!_0x305ff9[_0x2c1ca9('0x23e2')]&&(_0x1c0cc8[_0x2c1ca9('0x2083')]-=0x1),_0x305ff9[_0x2c1ca9('0x10b6')]===_0x1c0cc8[_0x2c1ca9('0x197c')]['id']&&_0x305ff9[_0x2c1ca9('0xf64')]&&_0x305ff9[_0x2c1ca9('0x23e2')]&&_0x1c0cc8[_0x2c1ca9('0x27a2')]>0x0&&_0x1c0cc8[_0x2c1ca9('0x27a2')]--;}function _0x269f77(_0x5ef228){const _0x2468f3=_0x1485a6;_0x1c0cc8[_0x2468f3('0xc0e')]=_0x5ef228;}function _0x122d57(_0x512b5b){const _0x5a132d=_0x1485a6;return _0x5c08d7(),_0x5dfa64[_0x5a132d('0xff8')](_0x512b5b)[_0x5a132d('0x17e7')](function(){const _0x221170=_0x5a132d;return _0x337dff['$broadcast']('webrtc::logout'),_0x5eaf3b['go'](_0x221170('0x229b'));})[_0x5a132d('0x16df')](function(_0x1705b8){console['error'](_0x1705b8);});}function _0x7456f7(_0x22c209){const _0x353698=_0x1485a6;if(typeof _0x1c0cc8[_0x353698('0x1e7a')][_0x22c209[_0x353698('0xe5d')]]==_0x353698('0xfad')){const _0x3b1723=_0x353698('0x146b');_0x3e80f0[_0x353698('0x28e2')]({'template':''+_0x3b1723+_0x353698('0x1333'),'hideDelay':0x1b58,'position':_0x353698('0x1d51'),'parent':_0x353698('0x60d')});return;}_0x1c0cc8[_0x353698('0x773')]=_0x22c209,_0x1dc29d['put'](_0x353698('0x16b8'),_0x22c209[_0x353698('0xe5d')]),_0x1a4168['use'](_0x22c209[_0x353698('0xe5d')]),_0x5eaf3b[_0x353698('0x1247')][_0x353698('0x2aa')]==='app.callysquare.projects.edit'&&_0x542528[_0x353698('0xaed')][_0x353698('0x19e0')](),_0x27b79b[_0x353698('0x2567')](_0x22c209[_0x353698('0xe5d')])>=0x0?_0x1ef042[_0x353698('0x1178')]({'title':_0x1a4168['instant']('TOOLBAR.CHANGE_LANGUAGE_TITLE'),'msg':_0x1a4168['instant'](_0x353698('0x1b85'))}):_0x1aa5d0[_0x353698('0x178c')][_0x353698('0x178c')]['vm'][_0x353698('0x733')]=_0x353698('0x2856');}function _0x20dca0(){const _0x398688=_0x1485a6;_0x1c0cc8['bodyEl'][_0x398688('0x328')]('ms-navigation-horizontal-mobile-menu-active');}function _0x59aa68(){const _0x200e7e=_0x1485a6;_0x8fc77c[_0x200e7e('0x200f')]();}function _0x2b39bc(_0x4fea4d){const _0x208a6d=_0x1485a6;let _0x12c020=[];const _0x3599c0=_0x8fc77c[_0x208a6d('0x151e')](),_0x3f72f5=_0x21657d[_0x208a6d('0x113c')]();for(let _0x2d62de=0x0;_0x2d62de<_0x3599c0[_0x208a6d('0x1f73')];_0x2d62de++){_0x3599c0[_0x2d62de]['uisref']&&_0x12c020[_0x208a6d('0x269f')](_0x3599c0[_0x2d62de]);}return _0x4fea4d&&(_0x12c020=_0x12c020['filter'](function(_0x5bae7d){const _0x14ce01=_0x208a6d;if(_0x5bae7d['title'][_0x14ce01('0x19b')]()[_0x14ce01('0x24b0')](_0x4fea4d[_0x14ce01('0x19b')]()))return!![];})),_0x15e151(function(){const _0x2d861c=_0x208a6d;_0x3f72f5[_0x2d861c('0x898')](_0x12c020);},0x3e8),_0x3f72f5[_0x208a6d('0x1691')];}function _0x23d951(_0xaec32e){const _0x22a021=_0x1485a6;_0xaec32e[_0x22a021('0x2769')]&&(_0xaec32e[_0x22a021('0x247e')]?_0x5eaf3b['go'](_0xaec32e[_0x22a021('0x1b9a')],_0xaec32e[_0x22a021('0x247e')]):_0x5eaf3b['go'](_0xaec32e[_0x22a021('0x1b9a')]));}function _0x59baa7(){const _0x2a7c1f=_0x1485a6;_0x337dff[_0x2a7c1f('0x2446')](_0x2a7c1f('0x19bb'));}function _0xc33f31(_0x1f4270,_0x41aacf){const _0x31cecf=_0x1485a6;_0x3fae57[_0x31cecf('0x28e2')]({'controller':'ChangePasswordController','controllerAs':'vm','templateUrl':_0x39c745,'parent':angular[_0x31cecf('0x1ce1')](_0x23ad7a['body']),'targetEvent':_0x1f4270,'clickOutsideToClose':_0x41aacf?![]:!![],'escapeToClose':_0x41aacf?![]:!![],'locals':{'user':_0x1c0cc8[_0x31cecf('0x221e')],'setting':_0x2b886c,'reset':_0x41aacf}});}function _0x510773(){const _0x54588e=_0x1485a6;return _0x5dfa64['getCurrentUser']()&&_0x5dfa64[_0x54588e('0x1ba2')](_0x54588e('0x684'));}function _0x4ca045(_0x50e48c){const _0x295465=_0x1485a6;if(_0x50e48c['id']===_0x1c0cc8['user']['id']){if(_0x50e48c['role']===_0x295465('0x684')&&_0x49cbdd()[_0x295465('0x155a')](_0x50e48c[_0x295465('0x1872')])&&!_0x50e48c[_0x295465('0x1872')]){if(_0x1c0cc8[_0x295465('0x221e')]['showWebBar']!==0x0){_0x5c08d7();const _0x24065f=_0x3fae57[_0x295465('0x1121')]()[_0x295465('0x24d3')](_0x1a4168[_0x295465('0x1acc')](_0x295465('0x715'))+'!')['textContent'](_0x1a4168[_0x295465('0x1acc')](_0x295465('0x1489')))[_0x295465('0x2095')](_0x1a4168['instant']('TOOLBAR.WARNING')+'!')['ok'](_0x1a4168[_0x295465('0x1acc')](_0x295465('0xfb2')))['cancel'](_0x295465('0x1f25'));_0x3fae57[_0x295465('0x28e2')](_0x24065f)[_0x295465('0x17e7')](function(){const _0x553fb2=_0x295465;return _0x5dfa64['queueLogin']()[_0x553fb2('0x17e7')](function(){const _0x5599d0=_0x553fb2;_0x8d1c85(),_0x49cbdd()[_0x5599d0('0x1ced')](_0x1c0cc8[_0x5599d0('0x221e')],_0x50e48c),_0x5dfa64[_0x5599d0('0x319')](_0x1c0cc8['user']);});})[_0x295465('0x16df')](function(){_0x122d57(!![]);});}else _0x122d57(!![]);}else _0x49cbdd()['merge'](_0x1c0cc8['user'],_0x50e48c),_0x5dfa64[_0x295465('0x319')](_0x1c0cc8[_0x295465('0x221e')]);}}function _0x408dda(_0xac64f3){const _0x1b2608=_0x1485a6;_0x1c0cc8[_0x1b2608('0x197c')]['showWebBar']===0x2&&_0x1c0cc8[_0x1b2608('0x197c')]['role']===_0x1b2608('0x684')&&_0x1c0cc8[_0x1b2608('0x197c')][_0x1b2608('0x2aa')]===_0xac64f3[_0x1b2608('0x2619')]&&_0x1ef042[_0x1b2608('0x1178')]({'title':'WebRTC\x20Popup','msg':_0x1b2608('0x1abb')+_0xac64f3[_0x1b2608('0x2202')]+_0x1b2608('0x267f')+_0xac64f3['queue']+_0x1b2608('0x105f')+(_0xac64f3['variables']&&_0xac64f3[_0x1b2608('0xd26')][_0x1b2608('0x46e')]?_0xac64f3['variables'][_0x1b2608('0x46e')]:_0x1b2608('0x17fd'))+_0x1b2608('0x1234'),'showClose':!![],'timeout':0x2710,'html':!![]});}function _0x4f4b92(){const _0x203a1b=_0x1485a6;return _0x1c0cc8[_0x203a1b('0x1aeb')]['defaultHeaderWhiteLabel']?_0x203a1b('0x1389'):_0x1c0cc8['setting'][_0x203a1b('0x2671')];}function _0x393683(){const _0x1c56f5=_0x1485a6;_0x49cbdd()[_0x1c56f5('0x26f8')](_0x1c0cc8[_0x1c56f5('0x160f')],{'dialMethod':_0x1c56f5('0x145b'),'dialActive':!![]})&&_0x1c0cc8['license'][_0x1c56f5('0x1646')]&&_0x1c0cc8[_0x1c56f5('0x9ad')]?(_0x1c0cc8[_0x1c56f5('0x9ad')]=![],_0xf1493e['cmHopper'][_0x1c56f5('0x1e1f')]()[_0x1c56f5('0x1af5')]['then'](function(_0x518503){const _0x49b946=_0x1c56f5;_0x518503&&_0x49cbdd()['isNumber'](_0x518503[_0x49b946('0x2720')])&&(_0x1c0cc8[_0x49b946('0x2720')]=_0x518503[_0x49b946('0x2720')]);})[_0x1c56f5('0x74e')](function(){const _0x377df4=_0x1c56f5;_0x1c0cc8[_0x377df4('0x9ad')]=!![];})):_0x1c0cc8[_0x1c56f5('0x2720')]=0x0;}function _0x1fdd44(){const _0x2dd1c3=_0x1485a6;_0x233b22&&(_0x2ee20c[_0x2dd1c3('0x1d47')](_0x233b22),_0x233b22=null);}function _0x14c299(_0x1ffd3a){const _0x11d20b=_0x1485a6;console[_0x11d20b('0xbe2')]('onForceLogout\x20->\x20data',_0x1ffd3a);if(_0x1c0cc8[_0x11d20b('0x221e')][_0x11d20b('0xa79')]!==0x0)return _0x5c08d7(),_0x5dfa64[_0x11d20b('0xff8')](!![])[_0x11d20b('0x17e7')](function(){const _0x4789d5=_0x11d20b;_0x337dff['$broadcast'](_0x4789d5('0x159e')),_0x3fae57[_0x4789d5('0x28e2')](_0x3fae57[_0x4789d5('0x99f')]()[_0x4789d5('0x14e')](angular['element'](_0x23ad7a[_0x4789d5('0x13aa')]))[_0x4789d5('0x2f4')](![])[_0x4789d5('0xb3b')](![])[_0x4789d5('0x24d3')](_0x1a4168[_0x4789d5('0x1acc')](_0x4789d5('0x715')))[_0x4789d5('0x18c5')](_0x1a4168['instant'](_0x4789d5('0xd04'),{'ip':_0x1ffd3a['ip']}))['ok']('OK'))['then'](function(){const _0xe986e1=_0x4789d5;return _0x5eaf3b['go'](_0xe986e1('0x229b'));});})[_0x11d20b('0x16df')](function(_0x1132d5){const _0x3716f1=_0x11d20b;console[_0x3716f1('0x1db9')](_0x1132d5);});}function _0x227440(_0x56d6a6){const _0x2dfc70=_0x1485a6,_0x1beac4=_0x56d6a6;if(_0x1c0cc8[_0x2dfc70('0x197c')]['id']===_0x1beac4['recipient']){const _0x418811=_0x1a4168['instant'](_0x2dfc70('0x385'),{'sender':_0x1beac4[_0x2dfc70('0xb11')]}),_0xb96b4e=_0x1beac4[_0x2dfc70('0x986')]?_0x1a4168['instant'](_0x2dfc70('0x1a72'),{'recipient':_0x1beac4[_0x2dfc70('0x986')]}):null;_0x1ef042['wait']({'title':_0xb96b4e?_0x418811+'\x20'+_0xb96b4e:_0x418811,'msg':_0x1beac4[_0x2dfc70('0xd5')],'clickToClose':![],'timeout':![],'sound':_0x1beac4[_0x2dfc70('0x46')],'html':!![]});}}_0x1aa5d0['$on'](_0x1485a6('0x2b4'),function(){const _0xc06dca=_0x1485a6;_0x27a82f[_0xc06dca('0x1c65')]('user:called'),_0x27a82f[_0xc06dca('0x1c65')](_0xc06dca('0x284f')),_0x27a82f[_0xc06dca('0x1c65')](_0xc06dca('0x10de')),_0x27a82f['removeAllListeners'](_0xc06dca('0xc85')),_0x27a82f[_0xc06dca('0x1c65')](_0xc06dca('0x1cfb')),_0x27a82f[_0xc06dca('0x1c65')](_0xc06dca('0x13a0')),_0x27a82f[_0xc06dca('0x1c65')]('userVoiceQueue:remove'),_0x27a82f[_0xc06dca('0x1c65')]('voiceQueue:remove'),_0x27a82f['removeAllListeners'](_0xc06dca('0x167')),_0x27a82f['removeAllListeners'](_0xc06dca('0x1f57')),_0x27a82f[_0xc06dca('0x1c65')](_0xc06dca('0xb42')),_0x1fdd44();});}const _0x7cd0bc=_0x1eb38c;_0x36dd1a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x21fc')];function _0x36dd1a(_0x47b6bc){const _0x192892=_0x4376d8;_0x47b6bc[_0x192892('0x10b3')](_0x192892('0x1b8d'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x142e'),[])[_0x4376d8('0x1980')](_0x36dd1a)[_0x4376d8('0x5ce')](_0x4376d8('0x4a9'),_0x66083b)[_0x4376d8('0x5ce')](_0x4376d8('0x22a8'),_0x25896c)[_0x4376d8('0x5ce')](_0x4376d8('0x2d5'),_0x7cd0bc),_0x3ecf5a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x28da'),'$q',_0x4376d8('0x1885'),_0x4376d8('0x25aa'),'api','desktopNotification',_0x4376d8('0x1d11')];function _0x3ecf5a(_0x5bd9ca,_0x10ad51,_0x420012,_0x38e784,_0x475557,_0x2afe0d,_0x5b55f8,_0x477308){const _0x120496=_0x4376d8,_0x5f0472=this;_0x5f0472[_0x120496('0xbd4')]=_0x107a13()()[_0x120496('0x1c0d')](),_0x5f0472['currentUser']=_0x38e784['getCurrentUser'](),_0x5f0472[_0x120496('0x1d11')]=_0x477308,_0x5f0472[_0x120496('0x2083')]=0x0,_0x5f0472['unreadTotalGroupMessages']=0x0,_0x5f0472[_0x120496('0xee4')]=_0x5164a4,_0x5f0472[_0x120496('0x253b')]=_0x221c11,_0x5f0472[_0x120496('0x1fea')]=_0x30295b,_0x475557['on'](_0x120496('0x10de'),_0x5f0472[_0x120496('0x253b')]),_0x475557['on']('chatInternalMessage:update',_0x5f0472['onMessageUpdate']),_0x2afe0d[_0x120496('0x214e')][_0x120496('0x1c53')]({'fields':_0x120496('0x24b'),'ToId':_0x5f0472['currentUser']['id'],'read':![],'nolimit':!![],'ChatGroupId':'null'})['$promise'][_0x120496('0x17e7')](function(_0xf3aa4b){const _0x20d1ea=_0x120496;return _0xf3aa4b&&_0xf3aa4b[_0x20d1ea('0x335')]&&(_0x5f0472[_0x20d1ea('0x2083')]=_0xf3aa4b[_0x20d1ea('0x335')]),_0x2afe0d[_0x20d1ea('0x221e')][_0x20d1ea('0x114a')]({'id':_0x5f0472[_0x20d1ea('0x197c')]['id']})[_0x20d1ea('0x1af5')];})[_0x120496('0x17e7')](function(_0x510b6e){const _0x518cbc=_0x120496,_0x20b046=[],_0x44d74f=_0x510b6e[_0x518cbc('0x2319')];for(let _0x67f7cf=0x0;_0x67f7cf<_0x44d74f['length'];_0x67f7cf++){_0x20b046[_0x518cbc('0x269f')](_0x2afe0d['chatGroup']['getUnread']({'id':_0x44d74f[_0x67f7cf]['id']})[_0x518cbc('0x1af5')]);}return _0x420012[_0x518cbc('0x1283')](_0x20b046);})[_0x120496('0x17e7')](function(_0x1789db){const _0x5e0fe9=_0x120496;for(let _0x3b7267=0x0;_0x3b7267<_0x1789db['length'];_0x3b7267++){_0x5f0472['unreadTotalGroupMessages']+=_0x1789db[_0x3b7267][_0x5e0fe9('0x335')];}})[_0x120496('0x16df')](function(_0x15e2dd){const _0x21d4d6=_0x120496;console[_0x21d4d6('0x1db9')](_0x15e2dd);});function _0x5f25c6(_0x5e5f64){const _0x5e11f3=_0x120496,_0x34840c={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x5e11f3('0x2750')+_0x5e5f64[_0x5e11f3('0x24b')]+_0x5e11f3('0x8a4'),'body':_0x5e5f64[_0x5e11f3('0x13aa')]||'','focusOnclick':!![],'closeOnClick':!![]};_0x5b55f8[_0x5e11f3('0x28e2')](_0x10ad51[_0x5e11f3('0x1acc')](_0x5e11f3('0x233b')),_0x34840c);}function _0xa5ee8d(_0x16abce){const _0x1aa84b=_0x120496;_0x5b55f8['isSupported']()?_0x5b55f8[_0x1aa84b('0x1073')]()['then'](function(){_0x5f25c6(_0x16abce);},function(_0x5dbd42){const _0xb03bea=_0x1aa84b;console[_0xb03bea('0x1db9')](_0xb03bea('0xc1d'),_0x5dbd42);}):console[_0x1aa84b('0x1db9')](_0x1aa84b('0x6d5'));}function _0x5164a4(){const _0x2cba96=_0x120496;return _0x5f0472[_0x2cba96('0x197c')][_0x2cba96('0x1085')]===_0x2cba96('0x20bf')||_0x5f0472[_0x2cba96('0x197c')][_0x2cba96('0x1085')]===_0x2cba96('0x221e')||_0x5f0472['currentUser'][_0x2cba96('0x1085')]===_0x2cba96('0x684')&&_0x5f0472[_0x2cba96('0x197c')][_0x2cba96('0xa79')]!==0x0;}function _0x221c11(_0x48f98c){const _0x45061f=_0x120496;_0x48f98c[_0x45061f('0x10b6')]===_0x5f0472[_0x45061f('0x197c')]['id']&&_0x48f98c['FromId']!==_0x5f0472['currentUser']['id']&&!_0x48f98c[_0x45061f('0xf64')]&&_0x48f98c[_0x45061f('0x23e2')]&&(_0x5f0472[_0x45061f('0x27a2')]++,_0xa5ee8d(_0x48f98c)),_0x48f98c[_0x45061f('0x10b6')]===_0x5f0472[_0x45061f('0x197c')]['id']&&!_0x48f98c[_0x45061f('0x23e2')]&&(_0x5f0472['unreadTotalMessages']+=0x1,_0xa5ee8d(_0x48f98c));}function _0x30295b(_0x5b5a0c){const _0x1373ee=_0x120496;_0x5b5a0c[_0x1373ee('0x10b6')]===_0x5f0472[_0x1373ee('0x197c')]['id']&&_0x5b5a0c[_0x1373ee('0xf64')]&&_0x5f0472['unreadTotalMessages']>0x0&&!_0x5b5a0c['ChatGroupId']&&(_0x5f0472['unreadTotalMessages']-=0x1),_0x5b5a0c[_0x1373ee('0x10b6')]==_0x5f0472[_0x1373ee('0x197c')]['id']&&_0x5b5a0c['FromId']!==_0x5f0472[_0x1373ee('0x197c')]['id']&&_0x5b5a0c[_0x1373ee('0x23e2')]&&_0x5b5a0c[_0x1373ee('0xf64')]&&(_0x5f0472[_0x1373ee('0x27a2')]>0x0&&_0x5f0472[_0x1373ee('0x27a2')]--);}_0x5bd9ca[_0x120496('0x207c')](_0x120496('0x2b4'),function(){const _0x44bc09=_0x120496;_0x475557[_0x44bc09('0x1c65')](_0x44bc09('0x10de')),_0x475557['removeAllListeners'](_0x44bc09('0xc85'));});}const _0x3c4737=_0x3ecf5a;_0x433268['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0xef1'),_0x4376d8('0x1885'),'socket',_0x4376d8('0xf69'),'$q','$interval',_0x4376d8('0x28da'),_0x4376d8('0x655'),_0x4376d8('0x19b7')];function _0x433268(_0x5793c8,_0x46781c,_0x504597,_0x41e660,_0x347b86,_0x540e6d,_0x20ef8b,_0x18b843,_0x17f45b,_0x188990,_0x5df165,_0xd02faa){const _0x532cf6=_0x4376d8,_0x187e6b=this;_0x187e6b[_0x532cf6('0x197c')]=_0x347b86['getCurrentUser'](),_0x187e6b[_0x532cf6('0x221e')]=undefined,_0x187e6b[_0x532cf6('0x12ed')]={'count':0x0,'rows':[]},_0x187e6b['standardDate']=_0x107a13()(0x0)[_0x532cf6('0x1c0d')]('YYYY-MM-DD\x20HH:mm:ss'),_0x187e6b[_0x532cf6('0x1d02')]={},_0x187e6b['replyMessage']='',_0x187e6b[_0x532cf6('0xc3c')]=![],_0x187e6b[_0x532cf6('0x161d')]=_0x255c93,_0x187e6b[_0x532cf6('0x2780')]=_0x5b8456,_0x187e6b[_0x532cf6('0x1862')]=_0x37edc7,_0x187e6b[_0x532cf6('0x253b')]=_0x33995e,_0x187e6b['onMessageUpdate']=_0x9adc2a,_0x187e6b[_0x532cf6('0x1b37')]=_0x3d2fcc,_0x187e6b['webcall']=_0x1c64a8,_0x187e6b[_0x532cf6('0x6b1')]=_0x100c11,_0x187e6b[_0x532cf6('0x194')]=_0x34a2c0,_0x540e6d['on'](_0x532cf6('0x10de'),_0x187e6b[_0x532cf6('0x253b')]),_0x540e6d['on']('chatInternalMessage:update',_0x187e6b[_0x532cf6('0x1fea')]),_0x540e6d['on']('user:update',_0x187e6b['onUserUpdate']),_0x20ef8b(_0x532cf6('0x2215'))[_0x532cf6('0x12de')](function(){const _0x2e56fe=_0x532cf6;_0x187e6b[_0x2e56fe('0x221e')]=undefined;}),_0x504597[_0x532cf6('0x214e')]['get']({'fields':_0x532cf6('0x24b'),'ToId':_0x187e6b[_0x532cf6('0x197c')]['id'],'read':![],'nolimit':!![],'ChatGroupId':_0x532cf6('0x9bb')})[_0x532cf6('0x1af5')][_0x532cf6('0x17e7')](function(_0x227e29){const _0x35bcb5=_0x532cf6;_0x187e6b[_0x35bcb5('0x1d02')]=_0x49cbdd()[_0x35bcb5('0x219b')](_0x227e29[_0x35bcb5('0x2319')],_0x35bcb5('0x24b'));})[_0x532cf6('0x16df')](function(){}),_0x504597[_0x532cf6('0x214e')][_0x532cf6('0x4d2')]()['$promise'][_0x532cf6('0x17e7')](function(_0x3ba520){const _0x297af3=_0x532cf6;_0x187e6b[_0x297af3('0x12ed')]=_0x3ba520;})[_0x532cf6('0x16df')](function(_0x24b497){const _0x2b534f=_0x532cf6;console[_0x2b534f('0x1db9')](_0x24b497);});function _0x255c93(_0x9982d6){const _0x42eafa=_0x532cf6;_0x187e6b[_0x42eafa('0x1d11')]=_0x9982d6;}function _0x33995e(_0x2bf891){const _0x1b366e=_0x532cf6;if(_0x2bf891['ToId']===_0x187e6b['currentUser']['id']&&!_0x2bf891['ChatGroupId']){_0x187e6b[_0x1b366e('0x221e')]&&_0x187e6b[_0x1b366e('0x221e')]['id']===_0x2bf891[_0x1b366e('0x24b')]?(_0x187e6b[_0x1b366e('0x221e')][_0x1b366e('0xdd9')][_0x1b366e('0x2319')]['push'](_0x2bf891),_0x583604(0x0),_0x504597[_0x1b366e('0x214e')]['update']({'id':_0x2bf891['id'],'read':!![]})):_0x187e6b[_0x1b366e('0x1d02')][_0x2bf891['FromId']]=_0x187e6b[_0x1b366e('0x1d02')][_0x2bf891['FromId']]?_0x187e6b[_0x1b366e('0x1d02')][_0x2bf891['FromId']]+0x1:0x1;const _0x57aa62=_0x49cbdd()[_0x1b366e('0xe8e')](_0x187e6b[_0x1b366e('0x12ed')]['rows'],{'id':_0x2bf891[_0x1b366e('0x24b')]});_0x57aa62&&(_0x57aa62[_0x1b366e('0x16bc')]=_0x2bf891[_0x1b366e('0x7c9')],_0x57aa62[_0x1b366e('0x1723')]=_0x2bf891);}}function _0x9adc2a(_0x553312){const _0x2a8079=_0x532cf6;if((_0x553312['FromId']===_0x187e6b['currentUser']['id']||_0x553312[_0x2a8079('0x10b6')]===_0x187e6b[_0x2a8079('0x197c')]['id'])&&!_0x553312[_0x2a8079('0x23e2')]){if(_0x187e6b['user']){const _0x236314=_0x49cbdd()[_0x2a8079('0xe8e')](_0x187e6b[_0x2a8079('0x221e')]['messages'][_0x2a8079('0x2319')],{'id':_0x553312['id']});_0x236314&&_0x49cbdd()[_0x2a8079('0x1ced')](_0x236314,_0x553312);}const _0x6c7e62=_0x49cbdd()[_0x2a8079('0xe8e')](_0x187e6b['users'][_0x2a8079('0x2319')],{'id':_0x187e6b[_0x2a8079('0x197c')]['id']===_0x553312['FromId']?_0x553312['ToId']:_0x553312['FromId']});_0x6c7e62&&_0x6c7e62[_0x2a8079('0x1723')]&&_0x49cbdd()[_0x2a8079('0x1ced')](_0x6c7e62[_0x2a8079('0x1723')],_0x553312),_0x553312[_0x2a8079('0x10b6')]===_0x187e6b[_0x2a8079('0x197c')]['id']&&(_0x553312[_0x2a8079('0xf64')]&&_0x187e6b[_0x2a8079('0x1d02')][_0x553312['FromId']]>0x0&&(_0x187e6b['unreadMessage'][_0x553312['FromId']]-=0x1));}}function _0x3d2fcc(_0x206ce2){const _0x44fa04=_0x532cf6,_0x347163=_0x49cbdd()[_0x44fa04('0xe8e')](_0x187e6b[_0x44fa04('0x12ed')][_0x44fa04('0x2319')],{'id':_0x206ce2['id']});_0x347163&&(!_0x49cbdd()['isNil'](_0x206ce2[_0x44fa04('0x1872')])&&_0x347163[_0x44fa04('0x1872')]!==_0x206ce2['online']&&(_0x347163['online']=_0x206ce2[_0x44fa04('0x1872')]),!_0x49cbdd()[_0x44fa04('0x390')](_0x206ce2[_0x44fa04('0x2667')])&&_0x347163[_0x44fa04('0x2667')]!==_0x206ce2[_0x44fa04('0x2667')]&&(_0x347163[_0x44fa04('0x2667')]=_0x206ce2[_0x44fa04('0x2667')]));}function _0x5b8456(_0x1dc097){const _0xaee9ef=_0x532cf6;if(_0x1dc097){if(!_0x1dc097[_0xaee9ef('0x2667')]&&_0x1dc097[_0xaee9ef('0x1085')]===_0xaee9ef('0x684')){_0x46781c[_0xaee9ef('0xc86')]({'title':_0x188990['instant'](_0xaee9ef('0x266d')),'msg':_0x188990[_0xaee9ef('0x1acc')](_0xaee9ef('0x3c7'))}),_0x187e6b[_0xaee9ef('0x221e')]=undefined;return;}_0x187e6b[_0xaee9ef('0x221e')]=_0x1dc097,_0x187e6b[_0xaee9ef('0x4d8')]='',_0x504597['chatInternalMessage'][_0xaee9ef('0x1c53')]({'sort':_0xaee9ef('0x7c9'),'FromId':_0x187e6b['currentUser']['id']+','+_0x1dc097['id'],'ToId':_0x187e6b[_0xaee9ef('0x197c')]['id']+','+_0x1dc097['id'],'ChatGroupId':_0xaee9ef('0x9bb')})[_0xaee9ef('0x1af5')][_0xaee9ef('0x17e7')](function(_0x5b0a3b){const _0xf4d9e6=_0xaee9ef;if(_0x5b0a3b&&_0x5b0a3b[_0xf4d9e6('0x2319')]){_0x187e6b[_0xf4d9e6('0x221e')][_0xf4d9e6('0xdd9')]=_0x5b0a3b;for(let _0x510329=0x0;_0x510329<_0x187e6b[_0xf4d9e6('0x221e')]['messages'][_0xf4d9e6('0x2319')][_0xf4d9e6('0x1f73')];_0x510329+=0x1){_0x187e6b[_0xf4d9e6('0x221e')][_0xf4d9e6('0xdd9')][_0xf4d9e6('0x2319')][_0x510329]['read']===![]&&_0x187e6b[_0xf4d9e6('0x221e')][_0xf4d9e6('0xdd9')][_0xf4d9e6('0x2319')][_0x510329][_0xf4d9e6('0x10b6')]===_0x187e6b[_0xf4d9e6('0x197c')]['id']&&_0x504597['chatInternalMessage'][_0xf4d9e6('0x27ba')]({'id':_0x187e6b[_0xf4d9e6('0x221e')]['messages'][_0xf4d9e6('0x2319')][_0x510329]['id'],'read':!![]});}}})[_0xaee9ef('0x74e')](function(){_0x583604(0x0);});}else _0x187e6b[_0xaee9ef('0x221e')]=undefined;}function _0x37edc7(){const _0x594904=_0x532cf6;_0x187e6b[_0x594904('0xc3c')]=!![];if(_0x187e6b[_0x594904('0x4d8')]===''){_0x187e6b[_0x594904('0xc3c')]=![];return;}const _0x33c04a={'FromId':_0x187e6b[_0x594904('0x197c')]['id'],'ToId':_0x187e6b['user']['id'],'body':_0x187e6b[_0x594904('0x4d8')],'read':![]};_0x187e6b[_0x594904('0x4d8')]='',_0x504597[_0x594904('0x214e')][_0x594904('0x2439')](_0x33c04a)['$promise']['then'](function(_0x304cd7){const _0x35ca47=_0x594904;_0x187e6b[_0x35ca47('0x221e')][_0x35ca47('0xdd9')][_0x35ca47('0x2319')][_0x35ca47('0x269f')](_0x304cd7),_0x187e6b[_0x35ca47('0x221e')]['lastMessageAt']=_0x304cd7[_0x35ca47('0x7c9')],_0x187e6b[_0x35ca47('0x221e')][_0x35ca47('0x1723')]=_0x304cd7,_0x583604(0x190);})[_0x594904('0x16df')](function(){})[_0x594904('0x74e')](function(){const _0x449ad4=_0x594904;_0x187e6b[_0x449ad4('0xc3c')]=![];});}function _0x583604(_0x40b2ca){const _0x54808a=_0x532cf6,_0x52fb68=angular[_0x54808a('0x1ce1')](_0x54808a('0x24cb'));_0x41e660(function(){const _0x44d798=_0x54808a;_0x52fb68[_0x44d798('0xe14')]({'scrollTop':_0x52fb68[0x0][_0x44d798('0x16c3')]},_0x40b2ca);},0x0);}function _0x3bf4cd(_0xd23676){const _0x788741=_0x532cf6;return!_0x49cbdd()[_0x788741('0x390')](_0xd23676)?_0xd23676['replace'](/[^\w.+#*-]+/g,''):'';}function _0x1c64a8(_0x59abfc){const _0x20aa9f=_0x532cf6;_0x5df165[_0x20aa9f('0x2446')]('webrtc::call',{'target':_0x3bf4cd(_0x59abfc)});}function _0x100c11(_0x249b93){const _0x59e2e5=_0x532cf6;return _0x26592d(_0x59e2e5('0x178f')+(_0x187e6b[_0x59e2e5('0x221e')][_0x59e2e5('0x159b')]||'9888')+'/api/originate/'+_0x3bf4cd(_0x249b93));}function _0x34a2c0(_0x1e61b3){const _0x48e261=_0x532cf6;return _0x26592d('http://127.0.0.1:'+(_0x187e6b[_0x48e261('0x221e')][_0x48e261('0x159b')]||'9888')+_0x48e261('0x2114')+_0x3bf4cd(_0x1e61b3));}function _0x26592d(_0x529325){const _0x5f483f=_0x532cf6;return _0xd02faa[_0x5f483f('0x1c53')](_0x529325)[_0x5f483f('0x130d')](function(){const _0x32659c=_0x5f483f;_0x46781c[_0x32659c('0x130d')]({'title':_0x32659c('0x20ca'),'msg':'Call\x20properly\x20handled!'});})['error'](function(){const _0x30c044=_0x5f483f;_0x46781c[_0x30c044('0x1db9')]({'title':_0x30c044('0x1e5'),'msg':_0x188990[_0x30c044('0x1acc')](_0x30c044('0x15be'))});});}_0x5793c8[_0x532cf6('0x207c')]('$destroy',function(){const _0x12151f=_0x532cf6;_0x540e6d['removeAllListeners'](_0x12151f('0x10de')),_0x540e6d[_0x12151f('0x1c65')]('chatInternalMessage:update'),_0x540e6d['removeAllListeners'](_0x12151f('0x284f'));});}const _0x427a10=_0x433268;_0x6d020d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state','$location',_0x4376d8('0x14f6'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x125e'),'members'];function _0x6d020d(_0x253a10,_0x2bfbe2,_0x28cfbe,_0xe3fd63,_0x4da1eb,_0x191ad9,_0x2a9f1a,_0x2bd40b,_0xfdd8bd){const _0x244664=_0x4376d8,_0x2516a7=this;_0x2516a7[_0x244664('0x73e')]=[],_0x2516a7['title']=_0x244664('0x2430'),_0x2516a7[_0x244664('0x125e')]=angular['copy'](_0x2bd40b),_0x2516a7['currentUser']=_0x2a9f1a[_0x244664('0x2831')](),_0x2516a7[_0x244664('0x85b')]=_0xfdd8bd,_0x2516a7[_0x244664('0x2728')]=!![];!_0x2516a7[_0x244664('0x125e')]&&(_0x2516a7[_0x244664('0x125e')]={'write':!![],'members':[]},_0x2516a7[_0x244664('0x24d3')]=_0x244664('0xe8a'));_0x2516a7['saveChatGroup']=_0x430f4b,_0x2516a7[_0x244664('0x136e')]=_0x255040,_0x2516a7[_0x244664('0x262f')]=_0x23cad0;function _0x2687f9(_0x274874){const _0x3d7b0d=_0x244664,_0x1b4fc2=_0x274874[_0x3d7b0d('0x19b')]();return function _0x4d853c(_0x2e8601){const _0x4b7ee8=_0x3d7b0d,_0x66d91=_0x2e8601[_0x4b7ee8('0x2aa')][_0x4b7ee8('0x19b')]();return _0x66d91[_0x4b7ee8('0x2567')](_0x1b4fc2)!=-0x1;};}function _0x23cad0(_0x92013){const _0x58ee96=_0x244664;return _0x92013?_0x2516a7[_0x58ee96('0x85b')]['rows']['filter'](_0x2687f9(_0x92013)):[];}function _0x430f4b(){const _0x41d9fc=_0x244664;let _0x5d5b93;return _0x2516a7[_0x41d9fc('0x73e')]=[],_0x191ad9[_0x41d9fc('0x22d9')][_0x41d9fc('0x2439')]({'name':_0x2516a7['group'][_0x41d9fc('0x2aa')],'write':_0x2516a7[_0x41d9fc('0x125e')][_0x41d9fc('0xd07')]})['$promise']['then'](function(_0x2946cd){const _0x458ea1=_0x41d9fc,_0x31f9d0=_0x49cbdd()['map'](_0x2516a7['group'][_0x458ea1('0x85b')],'id');return _0x31f9d0[_0x458ea1('0x1893')](_0x2516a7[_0x458ea1('0x197c')]['id']),_0x5d5b93=_0x2946cd,_0x191ad9[_0x458ea1('0x22d9')]['addMembers']({'id':_0x5d5b93['id'],'ids':_0x31f9d0})[_0x458ea1('0x1af5')];})['then'](function(){const _0x2e2340=_0x41d9fc;_0x4da1eb[_0x2e2340('0x130d')]({'title':_0x2e2340('0x2025'),'msg':_0x5d5b93['name']+_0x2e2340('0x15ca')}),_0x255040(_0x5d5b93);})[_0x41d9fc('0x16df')](function(_0x93d7be){const _0x1f23b3=_0x41d9fc;_0x4da1eb['error']({'title':_0x93d7be[_0x1f23b3('0x11c5')]?'API:'+_0x93d7be[_0x1f23b3('0x11c5')]+'\x20-\x20'+_0x93d7be['statusText']:'api.chatQueue.update','msg':_0x93d7be['data']?JSON[_0x1f23b3('0x678')](_0x93d7be['data']['message']):_0x93d7be['toString']()});});}function _0x255040(_0x4272f6){_0xe3fd63['hide'](_0x4272f6);}}const _0x1ce2a7=_0x6d020d,_0x4e640c=_0x4cf2bc['p']+_0x4376d8('0xb7c'),_0x218230=_0x4cf2bc['p']+_0x4376d8('0x8c8');_0x2c2033['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0xf69'),'$q',_0x4376d8('0x1885'),_0x4376d8('0x212e'),'socket',_0x4376d8('0x108a')];function _0x2c2033(_0x5836a6,_0x30fb7a,_0x57d637,_0x251e4a,_0x49e94f,_0x35e270,_0x5bb77c,_0x133781,_0x4b9180,_0x1a45b9){const _0x1cde7d=_0x4376d8,_0x4ef578=this;_0x4ef578[_0x1cde7d('0x197c')]=_0x5bb77c[_0x1cde7d('0x2831')](),_0x4ef578[_0x1cde7d('0x1d60')]={},_0x4ef578[_0x1cde7d('0x25cf')]={},_0x4ef578[_0x1cde7d('0x25a7')],_0x4ef578[_0x1cde7d('0x125e')],_0x4ef578[_0x1cde7d('0x161d')]=_0x127f25,_0x4ef578[_0x1cde7d('0x1a2d')]=_0x16c94a,_0x4ef578[_0x1cde7d('0x249d')]=_0x25bee4,_0x4ef578['deleteGroup']=_0x3832a6,_0x4ef578['groupsToArray']=_0x263a45,_0x4ef578['showMessageInfo']=_0x548778,_0x4ef578[_0x1cde7d('0x2780')]=_0x13092e,_0x4ef578[_0x1cde7d('0x1862')]=_0xa5b2b5,_0x4b9180['on'](_0x1cde7d('0x10de'),_0xf8a691),_0x4b9180['on']('chatInternalMessage:update',_0x155323),_0x4b9180['on'](_0x1cde7d('0xb3d'),_0x118ca0),_0x49e94f(_0x1cde7d('0x2215'))[_0x1cde7d('0x12de')](_0x16c94a);function _0x118ca0(_0x38995f){const _0x51b717=_0x1cde7d;_0x4ef578[_0x51b717('0x25cf')][_0x38995f['id']]&&delete _0x4ef578['groups'][_0x38995f['id']];}function _0x155323(_0x260f9c){const _0x155d6b=_0x1cde7d;_0x260f9c[_0x155d6b('0x10b6')]==_0x4ef578[_0x155d6b('0x197c')]['id']&&_0x260f9c['FromId']!==_0x4ef578[_0x155d6b('0x197c')]['id']&&_0x260f9c['ChatGroupId']&&_0x260f9c[_0x155d6b('0xf64')]&&(_0x4ef578[_0x155d6b('0x25cf')][_0x260f9c['ChatGroupId']]['unreadGroupMessages']>0x0&&_0x4ef578[_0x155d6b('0x25cf')][_0x260f9c[_0x155d6b('0x23e2')]][_0x155d6b('0x1d60')]--,_0x4ef578[_0x155d6b('0x125e')][_0x155d6b('0xdd9')][_0x260f9c['id']]&&(_0x4ef578[_0x155d6b('0x125e')][_0x155d6b('0xdd9')][_0x260f9c['id']][_0x155d6b('0xf64')]=!![]));}function _0xf8a691(_0x2ccc9d){const _0x578184=_0x1cde7d;if(!_0x4ef578[_0x578184('0x125e')]&&_0x2ccc9d[_0x578184('0x10b6')]===_0x4ef578[_0x578184('0x197c')]['id']&&_0x2ccc9d['FromId']!==_0x4ef578[_0x578184('0x197c')]['id']&&!_0x2ccc9d[_0x578184('0xf64')]&&_0x2ccc9d[_0x578184('0x23e2')]){const _0x4154e7=_0x4ef578[_0x578184('0x25cf')][_0x2ccc9d[_0x578184('0x23e2')]];if(_0x4154e7)!_0x4154e7[_0x578184('0x1d60')]&&(_0x4154e7[_0x578184('0x1d60')]=0x0),_0x4154e7[_0x578184('0x1d60')]++;else return _0x133781[_0x578184('0x22d9')][_0x578184('0x1c53')]({'id':_0x2ccc9d[_0x578184('0x23e2')]})[_0x578184('0x1af5')][_0x578184('0x17e7')](function(_0x1f9893){const _0x4245c4=_0x578184;_0x1f9893['unreadGroupMessages']=0x1,_0x4ef578[_0x4245c4('0x25cf')][_0x1f9893['id']]=_0x1f9893;});}_0x4ef578['group']&&_0x2ccc9d[_0x578184('0x23e2')]===_0x4ef578[_0x578184('0x125e')]['id']&&_0x2ccc9d[_0x578184('0x10b6')]===_0x4ef578[_0x578184('0x197c')]['id']&&_0x133781['chatInternalMessage'][_0x578184('0x27ba')]({'id':_0x2ccc9d['id'],'read':!![]})[_0x578184('0x1af5')][_0x578184('0x17e7')](function(){_0x58c4ce(_0x2ccc9d);});}function _0x127f25(_0xc52bd8){const _0x51e410=_0x1cde7d;return _0x4ef578[_0x51e410('0x1d11')]=_0xc52bd8,_0x133781['user']['getGroups']({'id':_0x4ef578[_0x51e410('0x197c')]['id']})[_0x51e410('0x1af5')][_0x51e410('0x17e7')](function(_0x5f27c7){const _0x1b74e0=_0x51e410,_0x3c0387=[];for(let _0x10ab54=0x0;_0x10ab54<_0x5f27c7['rows'][_0x1b74e0('0x1f73')];_0x10ab54++){_0x5f27c7[_0x1b74e0('0x2319')][_0x10ab54]['unreadGroupMessages']=0x0,_0x4ef578['groups'][_0x5f27c7[_0x1b74e0('0x2319')][_0x10ab54]['id']]=_0x5f27c7[_0x1b74e0('0x2319')][_0x10ab54],_0x3c0387[_0x1b74e0('0x269f')](_0x133781['chatGroup']['getUnread']({'id':_0x5f27c7[_0x1b74e0('0x2319')][_0x10ab54]['id']})['$promise']);}return _0x35e270[_0x1b74e0('0x1283')](_0x3c0387);})[_0x51e410('0x17e7')](function(_0x1f415){const _0x3df541=_0x51e410;for(let _0x4b2c8c=0x0;_0x4b2c8c<_0x1f415[_0x3df541('0x1f73')];_0x4b2c8c++){_0x4ef578['groups'][_0x1f415[_0x4b2c8c]['id']][_0x3df541('0x1d60')]+=_0x1f415[_0x4b2c8c]['count'];}})[_0x51e410('0x16df')](function(_0x2d68f1){const _0x249cd6=_0x51e410;console[_0x249cd6('0x1db9')](_0x2d68f1);});}function _0x263a45(){const _0x11d69b=_0x1cde7d;return _0x49cbdd()[_0x11d69b('0xa72')](_0x4ef578[_0x11d69b('0x25cf')]);}function _0x548778(_0x435220,_0x5bc078){const _0x271086=_0x1cde7d;_0x251e4a['show']({'controller':_0x271086('0xa06'),'controllerAs':'vm','templateUrl':_0x218230,'parent':angular[_0x271086('0x1ce1')](_0x30fb7a[_0x271086('0x13aa')]),'targetEvent':_0x435220,'clickOutsideToClose':!![],'locals':{'message':_0x5bc078},'resolve':{'data':function(){const _0x3ddc6a=_0x271086,_0x2988bb={'messages':[]};return _0x133781[_0x3ddc6a('0x214e')][_0x3ddc6a('0x1c53')]({'ChatInternalMessageId':_0x5bc078['id']})[_0x3ddc6a('0x1af5')]['then'](function(_0x5e0ff9){const _0x57699f=_0x3ddc6a,_0x3aed2b=[];_0x2988bb['messages']=_0x5e0ff9[_0x57699f('0x2319')],_0x2988bb[_0x57699f('0xdd9')][_0x57699f('0x1893')](_0x5bc078);for(let _0x4e90a5=0x0;_0x4e90a5<_0x2988bb[_0x57699f('0xdd9')][_0x57699f('0x1f73')];_0x4e90a5++){_0x3aed2b[_0x57699f('0x269f')](_0x133781[_0x57699f('0x221e')]['get']({'id':_0x2988bb[_0x57699f('0xdd9')][_0x4e90a5][_0x57699f('0x10b6')],'fields':_0x57699f('0xef4')})[_0x57699f('0x1af5')]);}return _0x35e270[_0x57699f('0x1283')](_0x3aed2b);})[_0x3ddc6a('0x17e7')](function(_0x2cfa68){const _0x494902=_0x3ddc6a;return _0x2988bb[_0x494902('0x12ed')]=_0x2cfa68,_0x2988bb;})['catch'](function(_0x41b108){const _0x3a6096=_0x3ddc6a;_0x41b108&&console[_0x3a6096('0x1db9')](_0x41b108);});}}})[_0x271086('0x17e7')](function(){})[_0x271086('0x16df')](function(_0x3d7bb5){const _0x4e9473=_0x271086;_0x3d7bb5&&console[_0x4e9473('0x1db9')](_0x3d7bb5['message']);});}function _0xa5b2b5(){const _0x4cce7a=_0x1cde7d;if(!_0x4ef578[_0x4cce7a('0x4d8')])return;const _0x11a41b={'id':_0x4ef578[_0x4cce7a('0x125e')]['id'],'FromId':_0x4ef578['currentUser']['id'],'ToId':_0x4ef578[_0x4cce7a('0x197c')]['id'],'body':_0x4ef578['replyMessage'],'read':!![]},_0x5c6d18=[];_0x4ef578[_0x4cce7a('0x4d8')]='',_0x133781[_0x4cce7a('0x22d9')]['addMessage'](_0x11a41b)[_0x4cce7a('0x1af5')]['then'](function(_0x2ffb99){const _0x448d2f=_0x4cce7a;_0x11a41b[_0x448d2f('0xf64')]=![],_0x11a41b['ChatInternalMessageId']=_0x2ffb99['id'];for(let _0x411269=0x0;_0x411269<_0x4ef578[_0x448d2f('0x125e')][_0x448d2f('0x85b')][_0x448d2f('0x1f73')];_0x411269++){_0x4ef578[_0x448d2f('0x125e')][_0x448d2f('0x85b')][_0x411269]['id']!==_0x4ef578[_0x448d2f('0x197c')]['id']&&(_0x11a41b[_0x448d2f('0x10b6')]=_0x4ef578['group'][_0x448d2f('0x85b')][_0x411269]['id'],_0x5c6d18[_0x448d2f('0x269f')](_0x133781['chatGroup'][_0x448d2f('0x10d5')](angular[_0x448d2f('0x14e5')](_0x11a41b))[_0x448d2f('0x1af5')]));}return _0x35e270['all'](_0x5c6d18);})[_0x4cce7a('0x16df')](function(_0x287b3f){const _0x3b04bb=_0x4cce7a;console[_0x3b04bb('0x1d63')](_0x287b3f);});}function _0x58c4ce(_0x10bef){const _0x6b4a56=_0x1cde7d;_0x4ef578[_0x6b4a56('0x125e')][_0x6b4a56('0xdd9')][_0x10bef['id']]=_0x10bef,_0x4776c2(0x190);}function _0x16c94a(){delete _0x4ef578['group'];}function _0x4776c2(_0x4fb6a0){const _0x49fb39=_0x1cde7d,_0x553ec2=angular['element'](_0x49fb39('0x66d'));_0x57d637(function(){const _0x33e082=_0x49fb39;_0x553ec2[_0x33e082('0xe14')]({'scrollTop':_0x553ec2[0x0]['scrollHeight']},_0x4fb6a0);},0x0);}function _0x13092e(_0x178509){const _0x111c45=_0x1cde7d;_0x4ef578[_0x111c45('0x125e')]={'id':_0x178509['id'],'write':_0x178509[_0x111c45('0xd07')],'messages':{}},_0x133781[_0x111c45('0x22d9')]['getMembers']({'id':_0x178509['id'],'fields':_0x111c45('0x1f7')})[_0x111c45('0x1af5')][_0x111c45('0x17e7')](function(_0x9a6e61){const _0x14daa5=_0x111c45;return _0x4ef578[_0x14daa5('0x125e')][_0x14daa5('0x1d5a')]=_0x49cbdd()[_0x14daa5('0x8de')](_0x9a6e61[_0x14daa5('0x2319')],'id'),_0x4ef578[_0x14daa5('0x125e')][_0x14daa5('0x85b')]=_0x49cbdd()['differenceBy'](_0x9a6e61[_0x14daa5('0x2319')],[{'id':_0x4ef578[_0x14daa5('0x197c')]['id']}],'id'),_0x4ef578[_0x14daa5('0x25a7')]=_0x49cbdd()[_0x14daa5('0x787')](_0x4ef578['group'][_0x14daa5('0x85b')],_0x14daa5('0xea6'))['join'](',\x20'),_0x133781[_0x14daa5('0x22d9')][_0x14daa5('0x18e0')]({'id':_0x178509['id'],'nolimit':!![]})['$promise'];})[_0x111c45('0x17e7')](function(_0x515a25){const _0x5003f8=_0x111c45,_0x2b5845=[];let _0x5553e2;for(let _0x95d2da=0x0;_0x95d2da<_0x515a25[_0x5003f8('0x335')];_0x95d2da++){_0x515a25[_0x5003f8('0x2319')][_0x95d2da][_0x5003f8('0x10b6')]===_0x4ef578['currentUser']['id']&&(_0x5553e2=_0x515a25[_0x5003f8('0x2319')][_0x95d2da],_0x4ef578['group']['messages'][_0x5553e2['id']]=_0x5553e2,_0x515a25['rows'][_0x95d2da]['ToId']==_0x4ef578[_0x5003f8('0x197c')]['id']&&_0x515a25[_0x5003f8('0x2319')][_0x95d2da]['FromId']!==_0x4ef578[_0x5003f8('0x197c')]['id']&&!_0x5553e2[_0x5003f8('0xf64')]&&_0x2b5845[_0x5003f8('0x269f')](_0x133781[_0x5003f8('0x214e')][_0x5003f8('0x27ba')]({'id':_0x5553e2['id'],'read':!![]})));}return _0x35e270[_0x5003f8('0x1283')](_0x2b5845);})['then'](function(){_0x4776c2(0x190);})[_0x111c45('0x16df')](function(_0x577bbc){const _0xba63a6=_0x111c45;console[_0xba63a6('0x1db9')](_0x577bbc[_0xba63a6('0x1603')]);});}function _0x3832a6(_0x208f37,_0x21750b){const _0x3d179b=_0x1cde7d,_0x1491a5=_0x251e4a[_0x3d179b('0x1121')]()[_0x3d179b('0x24d3')](_0x3d179b('0x2863'))[_0x3d179b('0x211f')]('Group\x20'+_0x208f37[_0x3d179b('0x2aa')]+''+'\x20will\x20be\x20deleted.')[_0x3d179b('0x2095')](_0x3d179b('0x63f'))[_0x3d179b('0x104f')](_0x21750b)['ok']('OK')[_0x3d179b('0x1d47')](_0x3d179b('0x28a0'));_0x251e4a[_0x3d179b('0x28e2')](_0x1491a5)['then'](function(){const _0x4c944c=_0x3d179b;return _0x133781['chatGroup']['delete']({'id':_0x208f37['id']})[_0x4c944c('0x1af5')];})[_0x3d179b('0x17e7')](function(){const _0x554bfc=_0x3d179b;delete _0x4ef578[_0x554bfc('0x25cf')][_0x208f37['id']],_0x1a45b9[_0x554bfc('0x130d')]({'title':_0x554bfc('0x7e3'),'msg':_0x208f37['name']+_0x554bfc('0x149f')});})[_0x3d179b('0x16df')](function(_0x405bc7){const _0x113d3a=_0x3d179b;_0x405bc7&&_0x1a45b9[_0x113d3a('0x1db9')]({'title':_0x405bc7[_0x113d3a('0x11c5')]?_0x113d3a('0x14f7')+_0x405bc7['status']+_0x113d3a('0x16e4')+_0x405bc7[_0x113d3a('0x1833')]:_0x113d3a('0x7e2'),'msg':_0x405bc7['data']?JSON[_0x113d3a('0x678')](_0x405bc7[_0x113d3a('0x1457')][_0x113d3a('0x1603')]):_0x405bc7[_0x113d3a('0x9b6')]()});});}function _0x25bee4(_0x1e5d61,_0x4c7e1f){const _0x46a3e0=_0x1cde7d;_0x251e4a[_0x46a3e0('0x28e2')]({'controller':'CreateOrEditChatGroupDialogController','controllerAs':'vm','templateUrl':_0x4e640c,'parent':angular[_0x46a3e0('0x1ce1')](_0x30fb7a[_0x46a3e0('0x13aa')]),'targetEvent':_0x4c7e1f,'clickOutsideToClose':!![],'locals':{'group':_0x1e5d61,'me':_0x4ef578[_0x46a3e0('0x197c')],'license':null,'setting':null},'resolve':{'members':function(){const _0x1cb33c=_0x46a3e0;return _0x5bb77c[_0x1cb33c('0x1ba2')](_0x1cb33c('0x20bf'))?_0x133781['user'][_0x1cb33c('0x1c53')]({'role':_0x1cb33c('0x684')})[_0x1cb33c('0x1af5')]:_0x133781['userProfile']['getResources']({'id':_0x5bb77c[_0x1cb33c('0x2831')]()[_0x1cb33c('0x1e76')],'section':'Agents','role':'agent'})[_0x1cb33c('0x1af5')];}}})[_0x46a3e0('0x17e7')](function(_0x14af04){_0x14af04&&(_0x4ef578['groups'][_0x14af04['id']]=_0x14af04);})['catch'](function(_0x502189){const _0x1b29a1=_0x46a3e0;_0x502189&&console[_0x1b29a1('0x1db9')](_0x502189[_0x1b29a1('0x1603')]);});}_0x5836a6['$on'](_0x1cde7d('0x2b4'),function(){const _0x1ec160=_0x1cde7d;_0x4b9180['removeAllListeners']('chatInternalMessage:save'),_0x4b9180[_0x1ec160('0x1c65')](_0x1ec160('0xc85')),_0x4b9180[_0x1ec160('0x1c65')](_0x1ec160('0xb3d'));});}const _0x4eae49=_0x2c2033;_0xc08af1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1457')];function _0xc08af1(_0x52ae48,_0x108e45,_0x33cbe6,_0x19cd27,_0x2b8df6,_0x2d3668,_0x12f662,_0x224abd){const _0x2bf6be=_0x4376d8,_0x5ba3ce=this;_0x5ba3ce[_0x2bf6be('0x1457')]=_0x224abd,_0x5ba3ce[_0x2bf6be('0x24d3')]='QUICKPANEL.INFO';function _0x147ca0(){_0x19cd27['hide']();}_0x5ba3ce[_0x2bf6be('0x136e')]=_0x147ca0;}const _0x3503c5=_0xc08af1;_0x179144[_0x4376d8('0x1b9c')]=[_0x4376d8('0x21fc')];function _0x179144(_0x5860e9){const _0x11f7ff=_0x4376d8;_0x5860e9[_0x11f7ff('0x10b3')]('app/quick-panel');}angular[_0x4376d8('0x11c4')](_0x4376d8('0x2050'),[])[_0x4376d8('0x1980')](_0x179144)['controller']('QuickPanelController',_0x3c4737)[_0x4376d8('0x5ce')]('ChatInternalController',_0x427a10)[_0x4376d8('0x5ce')](_0x4376d8('0x2699'),_0x1ce2a7)[_0x4376d8('0x5ce')](_0x4376d8('0x9ab'),_0x4eae49)[_0x4376d8('0x5ce')](_0x4376d8('0xa06'),_0x3503c5),_0x367d88[_0x4376d8('0x1b9c')]=[_0x4376d8('0x1885'),'$cookies'];function _0x367d88(_0x501a9a,_0x5f5d5d){const _0x38e06a=_0x4376d8,_0x2be904=this;function _0x2e273f(){const _0xd5922f=a0_0xd29e;_0x5f5d5d['put']('motion.newsAlertHide:'+_0x2be904[_0xd5922f('0x197c')]['id'],!![]);}_0x2be904['currentUser']=_0x501a9a[_0x38e06a('0x2831')](),_0x2be904[_0x38e06a('0x26b2')]=_0x5f5d5d[_0x38e06a('0x1c53')](_0x38e06a('0xf8e')+_0x2be904[_0x38e06a('0x197c')]['id'])||![],_0x2be904['newsAlertOnClose']=_0x2e273f;}const _0x173ab1=_0x367d88;_0x26cb57['$inject']=[_0x4376d8('0x21fc')];function _0x26cb57(_0x583e66){const _0x43b3db=_0x4376d8;_0x583e66[_0x43b3db('0x10b3')]('app/header');}angular[_0x4376d8('0x11c4')](_0x4376d8('0x166b'),[])[_0x4376d8('0x1980')](_0x26cb57)[_0x4376d8('0x5ce')](_0x4376d8('0x8ac'),_0x173ab1),_0x49dc33['$inject']=[_0x4376d8('0x1885'),'$cookies'];function _0x49dc33(_0x48b2cf,_0x4c682f){const _0x434e18=_0x4376d8,_0x3aeed1=this;function _0x422fdb(){const _0x51600a=a0_0xd29e;_0x4c682f[_0x51600a('0x2d8')](_0x51600a('0x7c')+_0x3aeed1[_0x51600a('0x197c')]['id'],!![]);}_0x3aeed1[_0x434e18('0x197c')]=_0x48b2cf[_0x434e18('0x2831')](),_0x3aeed1[_0x434e18('0x6c1')]=_0x4c682f[_0x434e18('0x1c53')](_0x434e18('0x7c')+_0x3aeed1[_0x434e18('0x197c')]['id'])||![],_0x3aeed1['cookieAlertOnClose']=_0x422fdb;}const _0x4c8ec9=_0x49dc33;_0x32f67d[_0x4376d8('0x1b9c')]=['$translatePartialLoaderProvider'];function _0x32f67d(_0x2fd6a0){const _0x3309c0=_0x4376d8;_0x2fd6a0[_0x3309c0('0x10b3')]('app/footer');}angular[_0x4376d8('0x11c4')](_0x4376d8('0x2ff'),[])[_0x4376d8('0x1980')](_0x32f67d)[_0x4376d8('0x5ce')](_0x4376d8('0x1157'),_0x4c8ec9);var _0x4870cf=_0x4cf2bc(0x1cbe),_0x924c82=_0x4cf2bc(0x2303),_0x5b6069=_0x4cf2bc(0xde6),_0x573a9f=_0x4cf2bc(0x321),_0x7a48c0=_0x4cf2bc(0x1c92),_0x1410db=_0x4cf2bc(0x2361),_0x197416=_0x4cf2bc(0xdd5),_0x32957c=_0x4cf2bc(0x9d6),_0x209802=_0x4cf2bc(0x20aa),_0x2b1ff0=_0x4cf2bc(0x1ac1),_0x3634fb=_0x4cf2bc(0x15c3),_0x44742a=_0x4cf2bc(0x154a),_0x439edb=_0x4cf2bc(0x2154),_0x2a6547=_0x4cf2bc(0x23a1),_0x460b49=_0x4cf2bc(0xa7c),_0x249a9b=_0x4cf2bc(0x1eaf),_0x104ce6=_0x4cf2bc(0x444),_0x3d3b6e=_0x4cf2bc(0x1c4),_0x264337=_0x4cf2bc(0x121a),_0x41b44b=_0x4cf2bc(0x1be),_0xa17795=_0x4cf2bc(0xd3e);const _0x33a8ce=_0x4cf2bc['p']+_0x4376d8('0xab0'),_0x5e6829=_0x4cf2bc['p']+'src/js/modules/main/apps/dashboards/views/general/user/dialer/user.general.dialer.html/user.general.dialer.html',_0x2c5f4b=_0x4cf2bc['p']+_0x4376d8('0x9f9'),_0x560b2e=_0x4cf2bc['p']+_0x4376d8('0x2656'),_0x5afe0e=_0x4cf2bc['p']+_0x4376d8('0x2169'),_0x1f0f74=_0x4cf2bc['p']+_0x4376d8('0x2197'),_0x1d6c48=_0x4cf2bc['p']+_0x4376d8('0x75c'),_0x49324e=_0x4cf2bc['p']+_0x4376d8('0x27e4');_0x50d87a[_0x4376d8('0x1b9c')]=['$scope','socket',_0x4376d8('0x13f6'),_0x4376d8('0x146c')];function _0x50d87a(_0x18166c,_0x1799a7,_0x177641,_0x3e635a){const _0x318187=_0x4376d8,_0x2f6286=this,_0x1cba12=[];_0x2f6286[_0x318187('0x1980')]={'format':'hh:mm:ss','unit':_0x318187('0x2415'),'trim':![]},_0x2f6286[_0x318187('0x1e77')]={'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},_0x2f6286[_0x318187('0x146c')]=_0x3e635a?_0x49cbdd()[_0x318187('0x8de')](_0x3e635a[_0x318187('0x2319')]?_0x3e635a[_0x318187('0x2319')]:[],'id'):{},_0x2f6286[_0x318187('0xbd0')]=_0x5125c1,_0x2f6286[_0x318187('0x8da')]=_0x5088c7,_0x1799a7['on'](_0x318187('0x1ee4'),_0x2f6286[_0x318187('0xbd0')]),_0x1799a7['on'](_0x318187('0x855'),_0x2f6286['onUpdateChatInteraction']),_0x17c5fb();function _0x33c63d(_0xad670f,_0x7ecc3f){const _0x5f27e9=_0x318187;!_0xad670f[_0x5f27e9('0x2bc')]&&!_0xad670f[_0x5f27e9('0x5e5')]&&_0x7ecc3f&&(_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x2143')]+=0x1);!_0xad670f[_0x5f27e9('0x2bc')]&&_0xad670f[_0x5f27e9('0x5e5')]&&!_0x49cbdd()[_0x5f27e9('0x24b0')](_0x1cba12,_0xad670f['id'])&&(_0x2f6286['inbound'][_0x5f27e9('0x1d20')]+=0x1,_0x1cba12['push'](_0xad670f['id']),!_0x7ecc3f&&_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x2143')]&&(_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x2143')]-=0x1));if(_0xad670f[_0x5f27e9('0x2bc')]&&_0xad670f[_0x5f27e9('0x1f27')]===_0x5f27e9('0x22b6'))_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x22b6')]+=0x1,!_0x7ecc3f&&_0x2f6286[_0x5f27e9('0x1e77')]['waiting']&&(_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x2143')]-=0x1);else{if(_0xad670f[_0x5f27e9('0x2bc')]&&!_0xad670f[_0x5f27e9('0x5e5')]&&_0xad670f[_0x5f27e9('0x1f27')])_0x2f6286[_0x5f27e9('0x1e77')]['unmanaged']+=0x1,!_0x7ecc3f&&_0x2f6286['inbound'][_0x5f27e9('0x2143')]&&(_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x2143')]-=0x1);else _0xad670f['closed']&&_0xad670f['UserId']&&(_0x2f6286[_0x5f27e9('0x1e77')]['sumBillable']+=_0x107a13()(_0xad670f['closedAt'])['diff'](_0x107a13()(_0xad670f[_0x5f27e9('0x2136')]),_0x2f6286['config'][_0x5f27e9('0x39c')]),_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x1d14')]+=_0x107a13()(_0xad670f[_0x5f27e9('0x2136')])['diff'](_0x107a13()(_0xad670f[_0x5f27e9('0x7c9')]),_0x2f6286[_0x5f27e9('0x1980')][_0x5f27e9('0x39c')]),_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x3c8')]+=0x1,!_0x7ecc3f&&_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x1d20')]&&(_0x2f6286['inbound'][_0x5f27e9('0x1d20')]-=0x1));}_0x7ecc3f&&(_0x2f6286[_0x5f27e9('0x1e77')][_0x5f27e9('0x1d0e')]+=0x1);}function _0x1d2616(){const _0x32518b=_0x318187;_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x1970')]=Math['round']((_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x22b6')]+_0x2f6286[_0x32518b('0x1e77')]['unmanaged'])/(_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x1d0e')]-_0x2f6286[_0x32518b('0x1e77')]['talking']-_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x2143')])*0x64,-0x2),_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0xf3c')]=Math[_0x32518b('0x17f8')](_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x3c8')]/(_0x2f6286[_0x32518b('0x1e77')]['total']-_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x1d20')]-_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x2143')])*0x64,-0x2),_0x2f6286['inbound'][_0x32518b('0x598')]=_0x107a13()[_0x32518b('0x1776')](Math[_0x32518b('0x17f8')](_0x2f6286[_0x32518b('0x1e77')]['sumHoldTime']/_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x3c8')]),_0x2f6286['config'][_0x32518b('0x39c')])[_0x32518b('0x1c0d')](_0x2f6286[_0x32518b('0x1980')][_0x32518b('0x1c0d')],_0x2f6286[_0x32518b('0x1980')]),_0x2f6286[_0x32518b('0x1e77')][_0x32518b('0x1028')]=_0x107a13()[_0x32518b('0x1776')](Math[_0x32518b('0x17f8')](_0x2f6286[_0x32518b('0x1e77')]['sumBillable']/_0x2f6286['inbound']['answered']),_0x2f6286[_0x32518b('0x1980')]['unit'])[_0x32518b('0x1c0d')](_0x2f6286[_0x32518b('0x1980')][_0x32518b('0x1c0d')],_0x2f6286['config']);}function _0x17c5fb(){const _0xe0e195=_0x318187;if(Object[_0xe0e195('0x1c0f')](_0x2f6286['chatWebsites'])[_0xe0e195('0x1f73')]>0x0)for(let _0x240434=0x0;_0x240434<_0x177641[_0xe0e195('0x2319')]['length'];_0x240434+=0x1){if(_0x5f2073(_0x177641[_0xe0e195('0x2319')][_0x240434])){const _0x23dc03=_0x177641[_0xe0e195('0x2319')][_0x240434];_0x33c63d(_0x23dc03,!![]),_0x1d2616();}}}function _0x5f2073(_0x4e6a51){const _0x5d6cee=_0x318187;if(_0x49cbdd()[_0x5d6cee('0x26f8')](_0x2f6286[_0x5d6cee('0x146c')],{'id':_0x49cbdd()[_0x5d6cee('0xa33')](_0x4e6a51[_0x5d6cee('0x259')])}))return!![];return![];}function _0x21cc1e(_0x3a6135){const _0x42d018=_0x318187,_0x224c39=_0x107a13()()[_0x42d018('0x1376')](0x0,!![])['startOf'](_0x42d018('0x26d6')),_0x1205e7=_0x107a13()()['utcOffset'](0x0,!![])[_0x42d018('0x200e')](_0x42d018('0x26d6'));return _0x107a13()(_0x3a6135)[_0x42d018('0x1376')](0x0,!![])[_0x42d018('0xdbd')](_0x224c39,_0x1205e7);}function _0x5125c1(_0x598bb3){const _0xc14af=_0x318187;_0x5f2073(_0x598bb3)&&_0x21cc1e(_0x598bb3[_0xc14af('0x7c9')])&&(_0x33c63d(_0x598bb3,!![]),_0x1d2616());}function _0x5088c7(_0x23f115){_0x5f2073(_0x23f115)&&_0x21cc1e(_0x23f115['createdAt'])&&(_0x33c63d(_0x23f115,![]),_0x1d2616());}_0x18166c[_0x318187('0x207c')](_0x318187('0x2b4'),function(){const _0x5ecd40=_0x318187;_0x1799a7[_0x5ecd40('0x1c65')](_0x5ecd40('0x1ee4')),_0x1799a7[_0x5ecd40('0x1c65')](_0x5ecd40('0x855'));});}const _0x5bc58c=_0x50d87a;_0x203251['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x33a'),_0x4376d8('0x25aa'),_0x4376d8('0xf8a'),'rpcQueues',_0x4376d8('0x1533'),_0x4376d8('0x1a2e'),_0x4376d8('0x21ff')];function _0x203251(_0x2c7e42,_0x59015f,_0x43cb26,_0x54d4bb,_0x2a6479,_0x378b8d,_0x1b72ef,_0x1edad1){const _0x6644b=_0x4376d8,_0x545025=this;_0x545025[_0x6644b('0xf8a')]=_0x54d4bb?_0x49cbdd()[_0x6644b('0x8de')](_0x54d4bb[_0x6644b('0x2319')]?_0x54d4bb['rows']:[],'id'):{},_0x545025[_0x6644b('0x1d90')]=_0x2a6479?_0x49cbdd()[_0x6644b('0x8de')](_0x2a6479[_0x6644b('0x2319')]?_0x2a6479[_0x6644b('0x2319')]:[],'id'):{},_0x545025[_0x6644b('0x21ff')]=_0x1edad1?_0x49cbdd()[_0x6644b('0x8de')](_0x1edad1[_0x6644b('0x2319')]?_0x1edad1[_0x6644b('0x2319')]:[],'id'):{},_0x545025[_0x6644b('0xe8')]={'originated':0x0,'limitCalls':0x0},_0x545025[_0x6644b('0x1e77')]={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x6644b('0x1bd2'),'avgTalkTime':_0x6644b('0x1bd2'),'answerRate':0x0,'abandonRate':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0},_0x545025['onSaveQueue']=_0x548eaa,_0x545025[_0x6644b('0x28c1')]=_0x575fca,_0x43cb26[_0x6644b('0x1335')](_0x6644b('0x1ddb'),_0x545025[_0x6644b('0xf66')]),_0x545025[_0x6644b('0x231f')]=_0x59015f(function(){_0x3448ae(),_0x1dd138();},0x3e7),_0x43cb26[_0x6644b('0x1335')](_0x6644b('0xfbc'),_0x545025[_0x6644b('0x28c1')]),_0x3448ae(),_0x1dd138();function _0x3448ae(){const _0x343c68=_0x6644b;_0x378b8d({'queues':_0x545025['outboundQueues'],'rpcQueues':_0x545025['rpcQueues']})[_0x343c68('0x17e7')](function(_0x48c471){const _0x40ba4f=_0x343c68;_0x545025[_0x40ba4f('0x1e77')]=_0x48c471;});}function _0x1dd138(){const _0x35f1e7=_0x6644b;_0x1b72ef({'rpcCampaigns':_0x545025[_0x35f1e7('0x21ff')]})[_0x35f1e7('0x17e7')](function(_0x9a31e0){const _0x4969c4=_0x35f1e7;_0x545025[_0x4969c4('0xe8')]=_0x9a31e0;});}function _0x548eaa(_0x122116){const _0x2b0dcb=_0x6644b;_0x545025[_0x2b0dcb('0xf8a')][_0x122116['id']]&&(_0x545025['rpcQueues'][_0x122116['id']]&&(_0x545025[_0x2b0dcb('0x1d90')][_0x122116['id']]=_0x122116));}function _0x575fca(_0x7b699a){const _0x201398=_0x6644b;_0x545025[_0x201398('0x21ff')][_0x7b699a['id']]&&(_0x545025[_0x201398('0x21ff')][_0x7b699a['id']]=_0x7b699a);}_0x2c7e42[_0x6644b('0x207c')](_0x6644b('0x2b4'),function(){const _0x30623e=_0x6644b;_0x43cb26[_0x30623e('0x1c65')](_0x30623e('0x1ddb')),_0x43cb26[_0x30623e('0x1c65')](_0x30623e('0xfbc')),_0x545025[_0x30623e('0x231f')]&&_0x59015f[_0x30623e('0x1d47')](_0x545025[_0x30623e('0x231f')]);});}const _0x28bbac=_0x203251;_0x42fc1f[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x25aa'),_0x4376d8('0x15a3'),_0x4376d8('0xec4')];function _0x42fc1f(_0x204b5c,_0x4e45a0,_0x86fa40,_0x557951){const _0x591d3f=_0x4376d8,_0x456946=this,_0x1d0bd4=[];_0x456946[_0x591d3f('0x1980')]={'format':_0x591d3f('0x12eb'),'unit':_0x591d3f('0x2415'),'trim':![]},_0x456946[_0x591d3f('0x1e77')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x591d3f('0x1bd2'),'avgTalkTime':_0x591d3f('0x1bd2'),'answerRate':0x0,'abandonRate':0x0},_0x456946['faxAccounts']=_0x557951?_0x49cbdd()[_0x591d3f('0x8de')](_0x557951[_0x591d3f('0x2319')]?_0x557951[_0x591d3f('0x2319')]:[],'id'):{},_0x456946[_0x591d3f('0x62a')]=_0x31f931,_0x456946['onUpdateFaxInteraction']=_0x4bc50f,_0x4e45a0['on']('faxInteraction:save',_0x456946[_0x591d3f('0x62a')]),_0x4e45a0['on'](_0x591d3f('0x1870'),_0x456946[_0x591d3f('0xcf3')]),_0x47cab8();function _0x584fd1(_0x5bd9f6,_0x4610ad){const _0x1bbb0=_0x591d3f;!_0x5bd9f6['closed']&&!_0x5bd9f6[_0x1bbb0('0x5e5')]&&_0x4610ad&&(_0x456946['inbound'][_0x1bbb0('0x2143')]+=0x1),!_0x5bd9f6[_0x1bbb0('0x2bc')]&&_0x5bd9f6[_0x1bbb0('0x5e5')]&&!_0x49cbdd()[_0x1bbb0('0x24b0')](_0x1d0bd4,_0x5bd9f6['id'])&&(_0x456946['inbound'][_0x1bbb0('0x1d20')]+=0x1,_0x1d0bd4[_0x1bbb0('0x269f')](_0x5bd9f6['id']),!_0x4610ad&&_0x456946[_0x1bbb0('0x1e77')][_0x1bbb0('0x2143')]&&(_0x456946[_0x1bbb0('0x1e77')]['waiting']-=0x1)),_0x5bd9f6[_0x1bbb0('0x2bc')]&&_0x5bd9f6[_0x1bbb0('0x5e5')]&&(_0x456946[_0x1bbb0('0x1e77')][_0x1bbb0('0x1602')]+=_0x107a13()(_0x5bd9f6[_0x1bbb0('0x1361')])[_0x1bbb0('0x5e')](_0x107a13()(_0x5bd9f6[_0x1bbb0('0x2136')]),_0x456946[_0x1bbb0('0x1980')][_0x1bbb0('0x39c')]),_0x456946['inbound'][_0x1bbb0('0x1d14')]+=_0x107a13()(_0x5bd9f6[_0x1bbb0('0x2136')])[_0x1bbb0('0x5e')](_0x107a13()(_0x5bd9f6['createdAt']),_0x456946['config'][_0x1bbb0('0x39c')]),_0x456946[_0x1bbb0('0x1e77')]['answered']+=0x1,!_0x4610ad&&_0x456946[_0x1bbb0('0x1e77')][_0x1bbb0('0x1d20')]&&(_0x456946[_0x1bbb0('0x1e77')][_0x1bbb0('0x1d20')]-=0x1)),_0x5bd9f6[_0x1bbb0('0x2bc')]&&!_0x5bd9f6[_0x1bbb0('0x5e5')]&&(_0x456946['inbound'][_0x1bbb0('0x116a')]+=0x1,!_0x4610ad&&_0x456946[_0x1bbb0('0x1e77')][_0x1bbb0('0x2143')]&&(_0x456946[_0x1bbb0('0x1e77')][_0x1bbb0('0x2143')]-=0x1)),_0x4610ad&&(_0x456946[_0x1bbb0('0x1e77')][_0x1bbb0('0x1d0e')]+=0x1);}function _0x5ace37(){const _0x52792d=_0x591d3f;_0x456946[_0x52792d('0x1e77')]['abandonRate']=Math[_0x52792d('0x17f8')]((_0x456946['inbound'][_0x52792d('0x22b6')]+_0x456946[_0x52792d('0x1e77')]['unmanaged'])/(_0x456946[_0x52792d('0x1e77')][_0x52792d('0x1d0e')]-_0x456946[_0x52792d('0x1e77')][_0x52792d('0x1d20')]-_0x456946[_0x52792d('0x1e77')][_0x52792d('0x2143')])*0x64,-0x2),_0x456946[_0x52792d('0x1e77')][_0x52792d('0xf3c')]=Math[_0x52792d('0x17f8')](_0x456946[_0x52792d('0x1e77')][_0x52792d('0x3c8')]/(_0x456946['inbound'][_0x52792d('0x1d0e')]-_0x456946[_0x52792d('0x1e77')][_0x52792d('0x1d20')]-_0x456946[_0x52792d('0x1e77')]['waiting'])*0x64,-0x2),_0x456946[_0x52792d('0x1e77')]['avgHoldTime']=_0x107a13()[_0x52792d('0x1776')](Math['round'](_0x456946[_0x52792d('0x1e77')][_0x52792d('0x1d14')]/_0x456946[_0x52792d('0x1e77')][_0x52792d('0x3c8')]),_0x456946[_0x52792d('0x1980')][_0x52792d('0x39c')])['format'](_0x456946[_0x52792d('0x1980')][_0x52792d('0x1c0d')],_0x456946['config']),_0x456946[_0x52792d('0x1e77')][_0x52792d('0x1028')]=_0x107a13()[_0x52792d('0x1776')](Math[_0x52792d('0x17f8')](_0x456946[_0x52792d('0x1e77')][_0x52792d('0x1602')]/_0x456946[_0x52792d('0x1e77')][_0x52792d('0x3c8')]),_0x456946[_0x52792d('0x1980')][_0x52792d('0x39c')])[_0x52792d('0x1c0d')](_0x456946[_0x52792d('0x1980')][_0x52792d('0x1c0d')],_0x456946[_0x52792d('0x1980')]);}function _0x47cab8(){const _0x3d4a73=_0x591d3f;if(Object['keys'](_0x456946['faxAccounts'])['length']>0x0)for(let _0x4c9550=0x0;_0x4c9550<_0x86fa40['rows'][_0x3d4a73('0x1f73')];_0x4c9550+=0x1){if(_0x548d30(_0x86fa40[_0x3d4a73('0x2319')][_0x4c9550])){const _0x5140e0=_0x86fa40['rows'][_0x4c9550];_0x584fd1(_0x5140e0,!![]),_0x5ace37();}}}function _0x548d30(_0x207ceb){const _0x17bab5=_0x591d3f;if(_0x49cbdd()[_0x17bab5('0x26f8')](_0x456946['faxAccounts'],{'id':_0x49cbdd()[_0x17bab5('0xa33')](_0x207ceb[_0x17bab5('0x24f9')])}))return!![];return![];}function _0xddbae8(_0x560dda){const _0x572ae3=_0x591d3f,_0xf75476=_0x107a13()()['utcOffset'](0x0,!![])['startOf'](_0x572ae3('0x26d6')),_0x167510=_0x107a13()()['utcOffset'](0x0,!![])[_0x572ae3('0x200e')](_0x572ae3('0x26d6'));return _0x107a13()(_0x560dda)['utcOffset'](0x0,!![])[_0x572ae3('0xdbd')](_0xf75476,_0x167510);}function _0x31f931(_0x4b261c){const _0x31af2e=_0x591d3f;_0x548d30(_0x4b261c)&&_0xddbae8(_0x4b261c[_0x31af2e('0x7c9')])&&(_0x584fd1(_0x4b261c,!![]),_0x5ace37());}function _0x4bc50f(_0x593d38){const _0x222af7=_0x591d3f;_0x548d30(_0x593d38)&&_0xddbae8(_0x593d38[_0x222af7('0x7c9')])&&(_0x584fd1(_0x593d38,![]),_0x5ace37());}_0x204b5c[_0x591d3f('0x207c')](_0x591d3f('0x2b4'),function(){const _0x54884e=_0x591d3f;_0x4e45a0[_0x54884e('0x1c65')]('faxInteraction:save'),_0x4e45a0[_0x54884e('0x1c65')](_0x54884e('0x1870'));});}const _0xd07fa8=_0x42fc1f;_0x221195[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x25aa'),_0x4376d8('0xcc5'),_0x4376d8('0x3d9')];function _0x221195(_0x1e6ad8,_0x20fe42,_0x1f6708,_0x7be7eb){const _0x1b4524=_0x4376d8,_0x162bb2=this,_0x681015=[];_0x162bb2[_0x1b4524('0x1980')]={'format':_0x1b4524('0x12eb'),'unit':_0x1b4524('0x2415'),'trim':![]},_0x162bb2[_0x1b4524('0x1e77')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x1b4524('0x1bd2'),'avgTalkTime':'00:00:00','answerRate':0x0,'abandonRate':0x0},_0x162bb2[_0x1b4524('0x3d9')]=_0x7be7eb?_0x49cbdd()[_0x1b4524('0x8de')](_0x7be7eb[_0x1b4524('0x2319')]?_0x7be7eb[_0x1b4524('0x2319')]:[],'id'):{},_0x162bb2[_0x1b4524('0x16dd')]=_0x1aabe6,_0x162bb2[_0x1b4524('0x1d41')]=_0x2a6435,_0x20fe42['on'](_0x1b4524('0x2830'),_0x162bb2[_0x1b4524('0x16dd')]),_0x20fe42['on'](_0x1b4524('0x1f8d'),_0x162bb2['onUpdateMailInteraction']),_0x32e65d();function _0x1233cb(_0x29be91,_0x22499f){const _0x2b59e0=_0x1b4524;!_0x29be91[_0x2b59e0('0x2bc')]&&!_0x29be91[_0x2b59e0('0x5e5')]&&_0x22499f&&(_0x162bb2[_0x2b59e0('0x1e77')][_0x2b59e0('0x2143')]+=0x1),!_0x29be91[_0x2b59e0('0x2bc')]&&_0x29be91[_0x2b59e0('0x5e5')]&&!_0x49cbdd()[_0x2b59e0('0x24b0')](_0x681015,_0x29be91['id'])&&(_0x162bb2[_0x2b59e0('0x1e77')][_0x2b59e0('0x1d20')]+=0x1,_0x681015[_0x2b59e0('0x269f')](_0x29be91['id']),!_0x22499f&&_0x162bb2['inbound'][_0x2b59e0('0x2143')]&&(_0x162bb2[_0x2b59e0('0x1e77')][_0x2b59e0('0x2143')]-=0x1)),_0x29be91['closed']&&_0x29be91['UserId']&&(_0x162bb2[_0x2b59e0('0x1e77')]['sumBillable']+=_0x107a13()(_0x29be91[_0x2b59e0('0x1361')])['diff'](_0x107a13()(_0x29be91[_0x2b59e0('0x2136')]),_0x162bb2[_0x2b59e0('0x1980')]['unit']),_0x162bb2['inbound'][_0x2b59e0('0x1d14')]+=_0x107a13()(_0x29be91[_0x2b59e0('0x2136')])['diff'](_0x107a13()(_0x29be91[_0x2b59e0('0x7c9')]),_0x162bb2['config'][_0x2b59e0('0x39c')]),_0x162bb2[_0x2b59e0('0x1e77')][_0x2b59e0('0x3c8')]+=0x1,!_0x22499f&&_0x162bb2[_0x2b59e0('0x1e77')][_0x2b59e0('0x1d20')]&&(_0x162bb2[_0x2b59e0('0x1e77')]['talking']-=0x1)),_0x29be91[_0x2b59e0('0x2bc')]&&!_0x29be91['UserId']&&(_0x162bb2[_0x2b59e0('0x1e77')][_0x2b59e0('0x116a')]+=0x1,!_0x22499f&&_0x162bb2[_0x2b59e0('0x1e77')][_0x2b59e0('0x2143')]&&(_0x162bb2[_0x2b59e0('0x1e77')][_0x2b59e0('0x2143')]-=0x1)),_0x22499f&&(_0x162bb2['inbound'][_0x2b59e0('0x1d0e')]+=0x1);}function _0x11ad48(){const _0x1bb4a0=_0x1b4524;_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x1970')]=Math[_0x1bb4a0('0x17f8')]((_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x22b6')]+_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x116a')])/(_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x1d0e')]-_0x162bb2['inbound'][_0x1bb4a0('0x1d20')]-_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x2143')])*0x64,-0x2),_0x162bb2['inbound']['answerRate']=Math['round'](_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x3c8')]/(_0x162bb2[_0x1bb4a0('0x1e77')]['total']-_0x162bb2[_0x1bb4a0('0x1e77')]['talking']-_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x2143')])*0x64,-0x2),_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x598')]=_0x107a13()[_0x1bb4a0('0x1776')](Math['round'](_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x1d14')]/_0x162bb2[_0x1bb4a0('0x1e77')]['answered']),_0x162bb2[_0x1bb4a0('0x1980')][_0x1bb4a0('0x39c')])[_0x1bb4a0('0x1c0d')](_0x162bb2[_0x1bb4a0('0x1980')][_0x1bb4a0('0x1c0d')],_0x162bb2[_0x1bb4a0('0x1980')]),_0x162bb2[_0x1bb4a0('0x1e77')]['avgTalkTime']=_0x107a13()[_0x1bb4a0('0x1776')](Math[_0x1bb4a0('0x17f8')](_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x1602')]/_0x162bb2[_0x1bb4a0('0x1e77')][_0x1bb4a0('0x3c8')]),_0x162bb2['config'][_0x1bb4a0('0x39c')])[_0x1bb4a0('0x1c0d')](_0x162bb2[_0x1bb4a0('0x1980')][_0x1bb4a0('0x1c0d')],_0x162bb2['config']);}function _0x32e65d(){const _0x438a03=_0x1b4524;if(Object['keys'](_0x162bb2[_0x438a03('0x3d9')])[_0x438a03('0x1f73')]>0x0)for(let _0x190fff=0x0;_0x190fff<_0x1f6708[_0x438a03('0x2319')][_0x438a03('0x1f73')];_0x190fff+=0x1){if(_0x592065(_0x1f6708[_0x438a03('0x2319')][_0x190fff])){const _0x997af0=_0x1f6708[_0x438a03('0x2319')][_0x190fff];_0x1233cb(_0x997af0,!![]),_0x11ad48();}}}function _0x592065(_0xd26d0){const _0x55cd46=_0x1b4524;if(_0x49cbdd()['some'](_0x162bb2[_0x55cd46('0x3d9')],{'id':_0x49cbdd()[_0x55cd46('0xa33')](_0xd26d0['MailAccountId'])}))return!![];return![];}function _0x7a61fc(_0x11e9e6){const _0x2353c2=_0x1b4524,_0x2b368c=_0x107a13()()[_0x2353c2('0x1376')](0x0,!![])[_0x2353c2('0x161c')](_0x2353c2('0x26d6')),_0x51ae30=_0x107a13()()[_0x2353c2('0x1376')](0x0,!![])['endOf'](_0x2353c2('0x26d6'));return _0x107a13()(_0x11e9e6)[_0x2353c2('0x1376')](0x0,!![])['isBetween'](_0x2b368c,_0x51ae30);}function _0x1aabe6(_0x4513c6){const _0x3ddfee=_0x1b4524;_0x592065(_0x4513c6)&&_0x7a61fc(_0x4513c6[_0x3ddfee('0x7c9')])&&(_0x1233cb(_0x4513c6,!![]),_0x11ad48());}function _0x2a6435(_0x5c7ce8){const _0x24a19f=_0x1b4524;_0x592065(_0x5c7ce8)&&_0x7a61fc(_0x5c7ce8[_0x24a19f('0x7c9')])&&(_0x1233cb(_0x5c7ce8,![]),_0x11ad48());}_0x1e6ad8['$on'](_0x1b4524('0x2b4'),function(){const _0x4f07c2=_0x1b4524;_0x20fe42['removeAllListeners']('mailInteraction:save'),_0x20fe42[_0x4f07c2('0x1c65')](_0x4f07c2('0x1f8d'));});}const _0x456b26=_0x221195;_0x16d609[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'socket',_0x4376d8('0x27f'),'openchannelAccounts'];function _0x16d609(_0x1c6d1c,_0xda85c6,_0x551956,_0x43c749){const _0x3a4aed=_0x4376d8,_0x134757=this,_0x19d3d5=[];_0x134757[_0x3a4aed('0x1980')]={'format':_0x3a4aed('0x12eb'),'unit':_0x3a4aed('0x2415'),'trim':![]},_0x134757[_0x3a4aed('0x1e77')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x3a4aed('0x1bd2'),'answerRate':0x0,'abandonRate':0x0},_0x134757['openchannelAccounts']=_0x43c749?_0x49cbdd()[_0x3a4aed('0x8de')](_0x43c749['rows']?_0x43c749['rows']:[],'id'):{},_0x134757[_0x3a4aed('0x13f1')]=_0x37f13f,_0x134757[_0x3a4aed('0x1f80')]=_0x199bf0,_0xda85c6['on']('openchannelInteraction:save',_0x134757[_0x3a4aed('0x13f1')]),_0xda85c6['on'](_0x3a4aed('0x55c'),_0x134757[_0x3a4aed('0x1f80')]),_0x2d7ad3();function _0x16b4b2(_0x480d11,_0x5b0854){const _0x59dd9b=_0x3a4aed;!_0x480d11[_0x59dd9b('0x2bc')]&&!_0x480d11[_0x59dd9b('0x5e5')]&&_0x5b0854&&(_0x134757[_0x59dd9b('0x1e77')]['waiting']+=0x1),!_0x480d11[_0x59dd9b('0x2bc')]&&_0x480d11['UserId']&&!_0x49cbdd()[_0x59dd9b('0x24b0')](_0x19d3d5,_0x480d11['id'])&&(_0x134757[_0x59dd9b('0x1e77')][_0x59dd9b('0x1d20')]+=0x1,_0x19d3d5['push'](_0x480d11['id']),!_0x5b0854&&_0x134757[_0x59dd9b('0x1e77')]['waiting']&&(_0x134757[_0x59dd9b('0x1e77')][_0x59dd9b('0x2143')]-=0x1)),_0x480d11['closed']&&_0x480d11[_0x59dd9b('0x5e5')]&&(_0x134757[_0x59dd9b('0x1e77')]['sumBillable']+=_0x107a13()(_0x480d11[_0x59dd9b('0x1361')])[_0x59dd9b('0x5e')](_0x107a13()(_0x480d11[_0x59dd9b('0x2136')]),_0x134757[_0x59dd9b('0x1980')][_0x59dd9b('0x39c')]),_0x134757[_0x59dd9b('0x1e77')][_0x59dd9b('0x1d14')]+=_0x107a13()(_0x480d11['read1stAt'])[_0x59dd9b('0x5e')](_0x107a13()(_0x480d11[_0x59dd9b('0x7c9')]),_0x134757['config'][_0x59dd9b('0x39c')]),_0x134757['inbound'][_0x59dd9b('0x3c8')]+=0x1,!_0x5b0854&&_0x134757[_0x59dd9b('0x1e77')][_0x59dd9b('0x1d20')]&&(_0x134757['inbound']['talking']-=0x1)),_0x480d11[_0x59dd9b('0x2bc')]&&!_0x480d11[_0x59dd9b('0x5e5')]&&(_0x134757['inbound']['unmanaged']+=0x1,!_0x5b0854&&_0x134757[_0x59dd9b('0x1e77')][_0x59dd9b('0x2143')]&&(_0x134757[_0x59dd9b('0x1e77')][_0x59dd9b('0x2143')]-=0x1)),_0x5b0854&&(_0x134757[_0x59dd9b('0x1e77')][_0x59dd9b('0x1d0e')]+=0x1);}function _0xa5fc64(){const _0xd800f9=_0x3a4aed;_0x134757[_0xd800f9('0x1e77')][_0xd800f9('0x1970')]=Math[_0xd800f9('0x17f8')]((_0x134757['inbound'][_0xd800f9('0x22b6')]+_0x134757[_0xd800f9('0x1e77')][_0xd800f9('0x116a')])/(_0x134757[_0xd800f9('0x1e77')][_0xd800f9('0x1d0e')]-_0x134757[_0xd800f9('0x1e77')]['talking']-_0x134757['inbound'][_0xd800f9('0x2143')])*0x64,-0x2),_0x134757[_0xd800f9('0x1e77')]['answerRate']=Math['round'](_0x134757[_0xd800f9('0x1e77')][_0xd800f9('0x3c8')]/(_0x134757[_0xd800f9('0x1e77')][_0xd800f9('0x1d0e')]-_0x134757[_0xd800f9('0x1e77')][_0xd800f9('0x1d20')]-_0x134757[_0xd800f9('0x1e77')]['waiting'])*0x64,-0x2),_0x134757[_0xd800f9('0x1e77')][_0xd800f9('0x598')]=_0x107a13()[_0xd800f9('0x1776')](Math['round'](_0x134757['inbound'][_0xd800f9('0x1d14')]/_0x134757['inbound']['answered']),_0x134757[_0xd800f9('0x1980')][_0xd800f9('0x39c')])['format'](_0x134757['config'][_0xd800f9('0x1c0d')],_0x134757[_0xd800f9('0x1980')]),_0x134757[_0xd800f9('0x1e77')]['avgTalkTime']=_0x107a13()['duration'](Math[_0xd800f9('0x17f8')](_0x134757['inbound'][_0xd800f9('0x1602')]/_0x134757[_0xd800f9('0x1e77')]['answered']),_0x134757[_0xd800f9('0x1980')][_0xd800f9('0x39c')])[_0xd800f9('0x1c0d')](_0x134757[_0xd800f9('0x1980')][_0xd800f9('0x1c0d')],_0x134757[_0xd800f9('0x1980')]);}function _0x2d7ad3(){const _0x26c3e4=_0x3a4aed;if(Object[_0x26c3e4('0x1c0f')](_0x134757[_0x26c3e4('0x1408')])[_0x26c3e4('0x1f73')]>0x0)for(let _0x10bfdd=0x0;_0x10bfdd<_0x551956[_0x26c3e4('0x2319')]['length'];_0x10bfdd+=0x1){if(_0x58480c(_0x551956['rows'][_0x10bfdd])){const _0x46f827=_0x551956[_0x26c3e4('0x2319')][_0x10bfdd];_0x16b4b2(_0x46f827,!![]),_0xa5fc64();}}}function _0x58480c(_0x26bf3d){const _0x5f2e92=_0x3a4aed;if(_0x49cbdd()[_0x5f2e92('0x26f8')](_0x134757[_0x5f2e92('0x1408')],{'id':_0x49cbdd()[_0x5f2e92('0xa33')](_0x26bf3d[_0x5f2e92('0x1969')])}))return!![];return![];}function _0x1a7945(_0x36838b){const _0x20895f=_0x3a4aed,_0x5c7a8f=_0x107a13()()[_0x20895f('0x1376')](0x0,!![])[_0x20895f('0x161c')]('day'),_0x271a32=_0x107a13()()['utcOffset'](0x0,!![])[_0x20895f('0x200e')](_0x20895f('0x26d6'));return _0x107a13()(_0x36838b)[_0x20895f('0x1376')](0x0,!![])['isBetween'](_0x5c7a8f,_0x271a32);}function _0x37f13f(_0x25f43f){const _0x40bbf2=_0x3a4aed;_0x58480c(_0x25f43f)&&_0x1a7945(_0x25f43f[_0x40bbf2('0x7c9')])&&(_0x16b4b2(_0x25f43f,!![]),_0xa5fc64());}function _0x199bf0(_0xa14624){_0x58480c(_0xa14624)&&_0x1a7945(_0xa14624['createdAt'])&&(_0x16b4b2(_0xa14624,![]),_0xa5fc64());}_0x1c6d1c[_0x3a4aed('0x207c')](_0x3a4aed('0x2b4'),function(){const _0x37de72=_0x3a4aed;_0xda85c6[_0x37de72('0x1c65')](_0x37de72('0x1cde')),_0xda85c6[_0x37de72('0x1c65')](_0x37de72('0x55c'));});}const _0x589573=_0x16d609;_0x4d89f0[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x25aa'),_0x4376d8('0x26c4'),_0x4376d8('0x35e')];function _0x4d89f0(_0x52bcc7,_0x34edbc,_0x191c87,_0x12088c){const _0x11ea54=_0x4376d8,_0x47015b=this,_0x4de6dc=[];_0x47015b['config']={'format':_0x11ea54('0x12eb'),'unit':'seconds','trim':![]},_0x47015b['inbound']={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x11ea54('0x1bd2'),'answerRate':0x0,'abandonRate':0x0},_0x47015b[_0x11ea54('0x35e')]=_0x12088c?_0x49cbdd()['keyBy'](_0x12088c[_0x11ea54('0x2319')]?_0x12088c['rows']:[],'id'):{},_0x47015b['onSaveSmsInteraction']=_0x1d9b5e,_0x47015b[_0x11ea54('0x666')]=_0x597844,_0x34edbc['on']('smsInteraction:save',_0x47015b[_0x11ea54('0x18b9')]),_0x34edbc['on'](_0x11ea54('0x2828'),_0x47015b[_0x11ea54('0x666')]),_0x165a51();function _0x25de7b(_0x280fbf,_0x413bff){const _0x50995a=_0x11ea54;!_0x280fbf[_0x50995a('0x2bc')]&&!_0x280fbf['UserId']&&_0x413bff&&(_0x47015b[_0x50995a('0x1e77')][_0x50995a('0x2143')]+=0x1),!_0x280fbf[_0x50995a('0x2bc')]&&_0x280fbf[_0x50995a('0x5e5')]&&!_0x49cbdd()[_0x50995a('0x24b0')](_0x4de6dc,_0x280fbf['id'])&&(_0x47015b[_0x50995a('0x1e77')][_0x50995a('0x1d20')]+=0x1,_0x4de6dc[_0x50995a('0x269f')](_0x280fbf['id']),!_0x413bff&&_0x47015b[_0x50995a('0x1e77')]['waiting']&&(_0x47015b[_0x50995a('0x1e77')]['waiting']-=0x1)),_0x280fbf[_0x50995a('0x2bc')]&&_0x280fbf[_0x50995a('0x5e5')]&&(_0x47015b[_0x50995a('0x1e77')][_0x50995a('0x1602')]+=_0x107a13()(_0x280fbf[_0x50995a('0x1361')])[_0x50995a('0x5e')](_0x107a13()(_0x280fbf[_0x50995a('0x2136')]),_0x47015b[_0x50995a('0x1980')]['unit']),_0x47015b[_0x50995a('0x1e77')]['sumHoldTime']+=_0x107a13()(_0x280fbf[_0x50995a('0x2136')])[_0x50995a('0x5e')](_0x107a13()(_0x280fbf[_0x50995a('0x7c9')]),_0x47015b[_0x50995a('0x1980')]['unit']),_0x47015b['inbound'][_0x50995a('0x3c8')]+=0x1,!_0x413bff&&_0x47015b[_0x50995a('0x1e77')][_0x50995a('0x1d20')]&&(_0x47015b[_0x50995a('0x1e77')][_0x50995a('0x1d20')]-=0x1)),_0x280fbf[_0x50995a('0x2bc')]&&!_0x280fbf['UserId']&&(_0x47015b[_0x50995a('0x1e77')][_0x50995a('0x116a')]+=0x1,!_0x413bff&&_0x47015b['inbound']['waiting']&&(_0x47015b['inbound']['waiting']-=0x1)),_0x413bff&&(_0x47015b[_0x50995a('0x1e77')][_0x50995a('0x1d0e')]+=0x1);}function _0x3566a3(){const _0x13ebfe=_0x11ea54;_0x47015b[_0x13ebfe('0x1e77')][_0x13ebfe('0x1970')]=Math['round']((_0x47015b['inbound'][_0x13ebfe('0x22b6')]+_0x47015b[_0x13ebfe('0x1e77')]['unmanaged'])/(_0x47015b[_0x13ebfe('0x1e77')][_0x13ebfe('0x1d0e')]-_0x47015b[_0x13ebfe('0x1e77')]['talking']-_0x47015b[_0x13ebfe('0x1e77')][_0x13ebfe('0x2143')])*0x64,-0x2),_0x47015b[_0x13ebfe('0x1e77')]['answerRate']=Math['round'](_0x47015b['inbound'][_0x13ebfe('0x3c8')]/(_0x47015b['inbound'][_0x13ebfe('0x1d0e')]-_0x47015b[_0x13ebfe('0x1e77')]['talking']-_0x47015b[_0x13ebfe('0x1e77')][_0x13ebfe('0x2143')])*0x64,-0x2),_0x47015b['inbound'][_0x13ebfe('0x598')]=_0x107a13()['duration'](Math[_0x13ebfe('0x17f8')](_0x47015b[_0x13ebfe('0x1e77')][_0x13ebfe('0x1d14')]/_0x47015b[_0x13ebfe('0x1e77')][_0x13ebfe('0x3c8')]),_0x47015b[_0x13ebfe('0x1980')][_0x13ebfe('0x39c')])[_0x13ebfe('0x1c0d')](_0x47015b[_0x13ebfe('0x1980')][_0x13ebfe('0x1c0d')],_0x47015b[_0x13ebfe('0x1980')]),_0x47015b[_0x13ebfe('0x1e77')][_0x13ebfe('0x1028')]=_0x107a13()[_0x13ebfe('0x1776')](Math[_0x13ebfe('0x17f8')](_0x47015b[_0x13ebfe('0x1e77')][_0x13ebfe('0x1602')]/_0x47015b['inbound']['answered']),_0x47015b[_0x13ebfe('0x1980')][_0x13ebfe('0x39c')])[_0x13ebfe('0x1c0d')](_0x47015b['config']['format'],_0x47015b[_0x13ebfe('0x1980')]);}function _0x165a51(){const _0x533907=_0x11ea54;if(Object[_0x533907('0x1c0f')](_0x47015b['smsAccounts'])[_0x533907('0x1f73')]>0x0)for(let _0x4286ab=0x0;_0x4286ab<_0x191c87[_0x533907('0x2319')]['length'];_0x4286ab+=0x1){if(_0x552399(_0x191c87['rows'][_0x4286ab])){const _0x4f25d5=_0x191c87[_0x533907('0x2319')][_0x4286ab];_0x25de7b(_0x4f25d5,!![]),_0x3566a3();}}}function _0x552399(_0x845271){const _0x100c92=_0x11ea54;if(_0x49cbdd()[_0x100c92('0x26f8')](_0x47015b[_0x100c92('0x35e')],{'id':_0x49cbdd()['toNumber'](_0x845271[_0x100c92('0x17fe')])}))return!![];return![];}function _0x16b27e(_0x3d1cec){const _0x5e0d3a=_0x11ea54,_0x264627=_0x107a13()()[_0x5e0d3a('0x1376')](0x0,!![])[_0x5e0d3a('0x161c')](_0x5e0d3a('0x26d6')),_0x10c791=_0x107a13()()[_0x5e0d3a('0x1376')](0x0,!![])[_0x5e0d3a('0x200e')](_0x5e0d3a('0x26d6'));return _0x107a13()(_0x3d1cec)['utcOffset'](0x0,!![])[_0x5e0d3a('0xdbd')](_0x264627,_0x10c791);}function _0x1d9b5e(_0x36e16c){_0x552399(_0x36e16c)&&_0x16b27e(_0x36e16c['createdAt'])&&(_0x25de7b(_0x36e16c,!![]),_0x3566a3());}function _0x597844(_0x558568){const _0x2a1943=_0x11ea54;_0x552399(_0x558568)&&_0x16b27e(_0x558568[_0x2a1943('0x7c9')])&&(_0x25de7b(_0x558568,![]),_0x3566a3());}_0x52bcc7['$on'](_0x11ea54('0x2b4'),function(){const _0x3b5e52=_0x11ea54;_0x34edbc[_0x3b5e52('0x1c65')](_0x3b5e52('0x15e1')),_0x34edbc[_0x3b5e52('0x1c65')](_0x3b5e52('0x2828'));});}const _0x93d6e7=_0x4d89f0;_0x5d3936['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x1885'),_0x4376d8('0x1d11')],_0x34a3fa[_0x4376d8('0x1b9c')]=['$q'],_0x18dc9b['$inject']=['$q'];function _0x18dc9b(_0x5b30d2){const _0x452299=[],_0x1839c8=function(){const _0x3200b9=a0_0xd29e,_0x3920a5=_0x452299[0x0],_0xf12f77={'waiting':0x0,'talking':0x0,'pTalking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x3200b9('0x1bd2'),'answerRate':0x0,'abandonRate':0x0,'originated':0x0,'outboundDropCallsDayCallersExit':0x0,'outboundDropCallsDayTimeout':0x0};_0x49cbdd()['forIn'](_0x3920a5[_0x3200b9('0x14c4')],function(_0x5e3a4a,_0x3a1f2a){const _0x2e3501=_0x3200b9;_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a]&&(_0xf12f77[_0x2e3501('0x2143')]+=_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a][_0x2e3501('0x2143')]||0x0,_0xf12f77[_0x2e3501('0x1d20')]+=(_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a][_0x2e3501('0x1d20')]||0x0)+(_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a][_0x2e3501('0xdb9')]||0x0),_0xf12f77[_0x2e3501('0x3c8')]+=_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a][_0x2e3501('0x3c8')]||0x0,_0xf12f77[_0x2e3501('0x22b6')]+=_0x3920a5['rpcQueues'][_0x3a1f2a][_0x2e3501('0x22b6')]||0x0,_0xf12f77[_0x2e3501('0x1d14')]+=_0x3920a5['rpcQueues'][_0x3a1f2a]['sumHoldTime']||0x0,_0xf12f77[_0x2e3501('0x1602')]+=_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a][_0x2e3501('0x1602')]||0x0,_0xf12f77[_0x2e3501('0x1d0e')]+=_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a][_0x2e3501('0x1d0e')]||0x0,_0xf12f77[_0x2e3501('0x829')]+=_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a]['originated']||0x0,_0xf12f77[_0x2e3501('0xae3')]+=_0x3920a5[_0x2e3501('0x1d90')][_0x3a1f2a]['outboundDropCallsDayCallersExit']||0x0,_0xf12f77[_0x2e3501('0x17c8')]+=_0x3920a5['rpcQueues'][_0x3a1f2a][_0x2e3501('0x17c8')]||0x0);});const _0x52e47a=_0xf12f77[_0x3200b9('0x1d0e')]-_0xf12f77[_0x3200b9('0x3c8')]-_0xf12f77[_0x3200b9('0x22b6')];_0xf12f77[_0x3200b9('0x116a')]=_0x52e47a>0x0?_0x52e47a:0x0,_0xf12f77[_0x3200b9('0x598')]=Math['round'](_0xf12f77[_0x3200b9('0x1d0e')]>0x0?_0xf12f77[_0x3200b9('0x1d14')]/_0xf12f77[_0x3200b9('0x1d0e')]:0x0),_0xf12f77[_0x3200b9('0x598')]=new Date(_0xf12f77[_0x3200b9('0x598')]*0x3e8)[_0x3200b9('0x17f5')]()[_0x3200b9('0x27de')](0xb,0x8),_0xf12f77[_0x3200b9('0x1028')]=Math[_0x3200b9('0x17f8')](_0xf12f77[_0x3200b9('0x3c8')]>0x0?_0xf12f77[_0x3200b9('0x1602')]/_0xf12f77['answered']:0x0),_0xf12f77['avgTalkTime']=new Date(_0xf12f77[_0x3200b9('0x1028')]*0x3e8)[_0x3200b9('0x17f5')]()[_0x3200b9('0x27de')](0xb,0x8),_0xf12f77[_0x3200b9('0xf3c')]=Math['round']((_0xf12f77[_0x3200b9('0x1d0e')]>0x0?_0xf12f77[_0x3200b9('0x3c8')]/_0xf12f77[_0x3200b9('0x1d0e')]*0x64:0x0)*Math['pow'](0xa,0x1))/Math[_0x3200b9('0xd5a')](0xa,0x1),_0xf12f77[_0x3200b9('0x1970')]=Math[_0x3200b9('0x17f8')]((_0xf12f77[_0x3200b9('0x1d0e')]>0x0?_0xf12f77[_0x3200b9('0x22b6')]/_0xf12f77[_0x3200b9('0x1d0e')]*0x64:0x0)*Math[_0x3200b9('0xd5a')](0xa,0x1))/Math[_0x3200b9('0xd5a')](0xa,0x1),_0xf12f77[_0x3200b9('0x95c')]=Math[_0x3200b9('0x17f8')]((_0xf12f77[_0x3200b9('0x1d0e')]>0x0?_0xf12f77[_0x3200b9('0x17c8')]/_0xf12f77['total']*0x64:0x0)*Math[_0x3200b9('0xd5a')](0xa,0x1))/Math[_0x3200b9('0xd5a')](0xa,0x1),_0xf12f77[_0x3200b9('0x109d')]=Math[_0x3200b9('0x17f8')]((_0xf12f77[_0x3200b9('0x1d0e')]>0x0?_0xf12f77[_0x3200b9('0xae3')]/_0xf12f77[_0x3200b9('0x1d0e')]*0x64:0x0)*Math[_0x3200b9('0xd5a')](0xa,0x1))/Math[_0x3200b9('0xd5a')](0xa,0x1),_0xf12f77[_0x3200b9('0x28ac')]=0x64-_0xf12f77[_0x3200b9('0x95c')]-_0xf12f77['outboundAbandonRate']>0x0&&(_0xf12f77['total']||0x0>0x0)?0x64-_0xf12f77[_0x3200b9('0x95c')]-_0xf12f77['outboundAbandonRate']:0x0,_0x452299['shift'](),_0x3920a5[_0x3200b9('0x113c')]['resolve'](_0xf12f77),_0x452299[_0x3200b9('0x1f73')]>0x0&&_0x1839c8();};return function(_0x2f834f){const _0x18c197=a0_0xd29e,_0x376095=_0x5b30d2[_0x18c197('0x113c')]();return _0x452299[_0x18c197('0x269f')]({'queues':_0x2f834f['queues'],'rpcQueues':_0x2f834f[_0x18c197('0x1d90')],'defer':_0x376095}),_0x452299['length']===0x1&&_0x1839c8(),_0x376095['promise'];};}function _0x34a3fa(_0x9cee67){const _0xbf1af5=[],_0x224ebd=function(){const _0x169df7=a0_0xd29e,_0x33663c=_0xbf1af5[0x0],_0x302967={'originated':0x0,'limitCalls':0x0};_0x49cbdd()[_0x169df7('0x1857')](_0x33663c['rpcCampaigns'],function(_0x27f4b8,_0x2852b5){const _0x3818ca=_0x169df7;_0x33663c[_0x3818ca('0x21ff')][_0x2852b5]&&(_0x302967[_0x3818ca('0x829')]+=_0x33663c[_0x3818ca('0x21ff')][_0x2852b5][_0x3818ca('0x829')]||0x0,_0x302967[_0x3818ca('0xe7e')]+=_0x33663c['rpcCampaigns'][_0x2852b5][_0x3818ca('0xe7e')]||0x0);}),_0xbf1af5[_0x169df7('0x27e0')](),_0x33663c[_0x169df7('0x113c')]['resolve'](_0x302967),_0xbf1af5['length']>0x0&&_0x224ebd();};return function(_0x2065a9){const _0x47ac87=a0_0xd29e,_0x57eeef=_0x9cee67[_0x47ac87('0x113c')]();return _0xbf1af5[_0x47ac87('0x269f')]({'rpcCampaigns':_0x2065a9[_0x47ac87('0x21ff')],'defer':_0x57eeef}),_0xbf1af5['length']===0x1&&_0x224ebd(),_0x57eeef[_0x47ac87('0x1691')];};}function _0x341050(){return function(_0xecac8a){const _0x556ebb=a0_0xd29e;return new Date(_0xecac8a*0x3e8)[_0x556ebb('0x17f5')]()[_0x556ebb('0x27de')](0xb,0x8);};}function _0x5d3936(_0x1b14a4,_0x2dceaa,_0x5ce122){const _0x3d5320=_0x4376d8,_0x133d31=this;_0x133d31[_0x3d5320('0x1d11')]=_0x5ce122,_0x133d31[_0x3d5320('0xdf0')]=_0x293003;function _0x293003(){const _0x49aad6=_0x3d5320;_0x133d31[_0x49aad6('0x1ad')]=_0x2dceaa[_0x49aad6('0x1ba2')]('user')?_0x2dceaa[_0x49aad6('0xf51')](0x65):!![];if(_0x133d31[_0x49aad6('0x1ad')]){const _0x48076f=_0x1b14a4[_0x49aad6('0x1247')][_0x49aad6('0x2aa')];switch(_0x48076f){case _0x49aad6('0x980'):_0x30c98a();break;case _0x49aad6('0x9ec'):_0x133d31[_0x49aad6('0xde7')]=0x0;break;case _0x49aad6('0x1175'):_0x133d31[_0x49aad6('0xde7')]=0x1;break;case _0x49aad6('0x8df'):_0x133d31['selectedTab']=0x2;break;case _0x49aad6('0xbbd'):_0x133d31['selectedTab']=0x3;break;case _0x49aad6('0x1d0'):_0x133d31['selectedTab']=0x4;break;case'app.dashboards.general.openchannel':_0x133d31[_0x49aad6('0xde7')]=0x5;break;case _0x49aad6('0x1c3d'):_0x133d31['selectedTab']=0x6;break;case _0x49aad6('0x6ff'):_0x133d31[_0x49aad6('0xde7')]=0x7;break;}}}function _0x30c98a(){const _0x2a774b=_0x3d5320,_0x5244ac=[];_0x133d31['license'][_0x2a774b('0x1fe1')]&&_0x5244ac[_0x2a774b('0x269f')](_0x2a774b('0x9ec')),_0x133d31[_0x2a774b('0x1d11')]['dialer']&&_0x5244ac['push'](_0x2a774b('0x1175')),_0x133d31[_0x2a774b('0x1d11')][_0x2a774b('0x2219')]&&_0x5244ac[_0x2a774b('0x269f')](_0x2a774b('0x8df')),_0x133d31['license'][_0x2a774b('0xc2')]&&_0x5244ac[_0x2a774b('0x269f')](_0x2a774b('0xbbd')),_0x133d31[_0x2a774b('0x1d11')][_0x2a774b('0x6f3')]&&_0x5244ac['push']('app.dashboards.general.sms'),_0x133d31[_0x2a774b('0x1d11')][_0x2a774b('0x1508')]&&_0x5244ac['push'](_0x2a774b('0x1081')),_0x133d31[_0x2a774b('0x1d11')][_0x2a774b('0xc23')]&&_0x5244ac[_0x2a774b('0x269f')](_0x2a774b('0x1c3d')),_0x133d31[_0x2a774b('0x1d11')][_0x2a774b('0x1d27')]&&_0x5244ac[_0x2a774b('0x269f')](_0x2a774b('0x6ff'));if(_0x5244ac[_0x2a774b('0x1f73')]>0x0)_0x1b14a4['go'](_0x49cbdd()[_0x2a774b('0x1624')](_0x5244ac));}}_0x4ab1a2[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x25aa'),'inboundQueues',_0x4376d8('0x1d90'),_0x4376d8('0x1ade'),'initializeRealtimeQueue'];function _0x4ab1a2(_0x252693,_0x3dd731,_0x4125a8,_0x4f78b7,_0x5df842,_0x3e83e2){const _0x803732=_0x4376d8,_0x33f83d=this;_0x33f83d[_0x803732('0x1e14')]=_0x4125a8?_0x49cbdd()[_0x803732('0x8de')](_0x4125a8[_0x803732('0x2319')]?_0x4125a8[_0x803732('0x2319')]:[],'id'):{},_0x33f83d[_0x803732('0x1d90')]=_0x4f78b7?_0x49cbdd()[_0x803732('0x8de')](_0x4f78b7[_0x803732('0x2319')]?_0x4f78b7[_0x803732('0x2319')]:[],'id'):{},_0x33f83d[_0x803732('0x1e77')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':_0x803732('0x1bd2'),'avgTalkTime':_0x803732('0x1bd2'),'answerRate':0x0,'abandonRate':0x0},_0x33f83d[_0x803732('0x1ade')]=_0x5df842||{'answered':0x0,'sumBillable':0x0,'sumDuration':0x0,'sumHoldTime':0x0,'total':0x0},_0x33f83d[_0x803732('0xf66')]=_0x423e20,_0x33f83d[_0x803732('0x716')]=_0x219585,_0x3dd731['on'](_0x803732('0x1ddb'),_0x33f83d[_0x803732('0xf66')]),_0x3dd731['on'](_0x803732('0x1c06'),_0x33f83d[_0x803732('0x716')]),_0x1735ef();function _0x1735ef(){const _0x378f10=_0x803732;_0x3e83e2({'queues':_0x33f83d[_0x378f10('0x1e14')],'rpcQueues':_0x33f83d[_0x378f10('0x1d90')]})[_0x378f10('0x17e7')](function(_0x56fd6a){_0x33f83d['inbound']=_0x56fd6a;});}function _0x423e20(_0x3009d2){const _0x23136a=_0x803732;_0x33f83d[_0x23136a('0x1e14')][_0x3009d2['id']]&&(_0x33f83d[_0x23136a('0x1d90')][_0x3009d2['id']]&&(_0x33f83d[_0x23136a('0x1d90')][_0x3009d2['id']]=_0x3009d2,_0x1735ef()));}function _0x219585(_0x214afe){const _0x955bfb=_0x803732;_0x33f83d[_0x955bfb('0x1ade')]=_0x214afe;}_0x252693['$on'](_0x803732('0x2b4'),function(){const _0x504c91=_0x803732;_0x3dd731[_0x504c91('0x1c65')](_0x504c91('0x1ddb')),_0x3dd731['removeAllListeners'](_0x504c91('0x1c06'));});}const _0x18957b=_0x4ab1a2;_0x2c863c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x25aa'),_0x4376d8('0x254'),_0x4376d8('0x58b')];function _0x2c863c(_0x4e931a,_0x8ee3f8,_0x133253,_0x1f03c4){const _0x42843b=_0x4376d8,_0x11a640=this,_0x5ab96c=[];_0x11a640[_0x42843b('0x1980')]={'format':'hh:mm:ss','unit':_0x42843b('0x2415'),'trim':![]},_0x11a640[_0x42843b('0x1e77')]={'waiting':0x0,'talking':0x0,'answered':0x0,'abandoned':0x0,'unmanaged':0x0,'sumHoldTime':0x0,'sumBillable':0x0,'total':0x0,'avgHoldTime':'00:00:00','avgTalkTime':_0x42843b('0x1bd2'),'answerRate':0x0,'abandonRate':0x0},_0x11a640['whatsappAccounts']=_0x1f03c4?_0x49cbdd()[_0x42843b('0x8de')](_0x1f03c4['rows']?_0x1f03c4[_0x42843b('0x2319')]:[],'id'):{},_0x11a640[_0x42843b('0x2160')]=_0x5c881c,_0x11a640[_0x42843b('0xeda')]=_0x4236ac,_0x8ee3f8['on'](_0x42843b('0xa11'),_0x11a640[_0x42843b('0x2160')]),_0x8ee3f8['on'](_0x42843b('0x57d'),_0x11a640[_0x42843b('0xeda')]),_0x21bc34();function _0x46039b(_0x449247,_0x2d74c3){const _0x3a6867=_0x42843b;!_0x449247[_0x3a6867('0x2bc')]&&!_0x449247[_0x3a6867('0x5e5')]&&_0x2d74c3&&(_0x11a640[_0x3a6867('0x1e77')]['waiting']+=0x1),!_0x449247[_0x3a6867('0x2bc')]&&_0x449247[_0x3a6867('0x5e5')]&&!_0x49cbdd()['includes'](_0x5ab96c,_0x449247['id'])&&(_0x11a640[_0x3a6867('0x1e77')]['talking']+=0x1,_0x5ab96c['push'](_0x449247['id']),!_0x2d74c3&&_0x11a640[_0x3a6867('0x1e77')][_0x3a6867('0x2143')]&&(_0x11a640[_0x3a6867('0x1e77')][_0x3a6867('0x2143')]-=0x1)),_0x449247[_0x3a6867('0x2bc')]&&_0x449247[_0x3a6867('0x5e5')]&&(_0x11a640['inbound'][_0x3a6867('0x1602')]+=_0x107a13()(_0x449247[_0x3a6867('0x1361')])[_0x3a6867('0x5e')](_0x107a13()(_0x449247[_0x3a6867('0x2136')]),_0x11a640[_0x3a6867('0x1980')]['unit']),_0x11a640[_0x3a6867('0x1e77')][_0x3a6867('0x1d14')]+=_0x107a13()(_0x449247[_0x3a6867('0x2136')])[_0x3a6867('0x5e')](_0x107a13()(_0x449247[_0x3a6867('0x7c9')]),_0x11a640[_0x3a6867('0x1980')][_0x3a6867('0x39c')]),_0x11a640[_0x3a6867('0x1e77')][_0x3a6867('0x3c8')]+=0x1,!_0x2d74c3&&_0x11a640['inbound']['talking']&&(_0x11a640[_0x3a6867('0x1e77')][_0x3a6867('0x1d20')]-=0x1)),_0x449247[_0x3a6867('0x2bc')]&&!_0x449247[_0x3a6867('0x5e5')]&&(_0x11a640['inbound'][_0x3a6867('0x116a')]+=0x1,!_0x2d74c3&&_0x11a640[_0x3a6867('0x1e77')][_0x3a6867('0x2143')]&&(_0x11a640[_0x3a6867('0x1e77')][_0x3a6867('0x2143')]-=0x1)),_0x2d74c3&&(_0x11a640[_0x3a6867('0x1e77')][_0x3a6867('0x1d0e')]+=0x1);}function _0x4cc257(){const _0x28e07a=_0x42843b;_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x1970')]=Math[_0x28e07a('0x17f8')]((_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x22b6')]+_0x11a640['inbound'][_0x28e07a('0x116a')])/(_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x1d0e')]-_0x11a640['inbound'][_0x28e07a('0x1d20')]-_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x2143')])*0x64,-0x2),_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0xf3c')]=Math['round'](_0x11a640['inbound']['answered']/(_0x11a640['inbound'][_0x28e07a('0x1d0e')]-_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x1d20')]-_0x11a640['inbound']['waiting'])*0x64,-0x2),_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x598')]=_0x107a13()[_0x28e07a('0x1776')](Math[_0x28e07a('0x17f8')](_0x11a640['inbound'][_0x28e07a('0x1d14')]/_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x3c8')]),_0x11a640['config'][_0x28e07a('0x39c')])['format'](_0x11a640[_0x28e07a('0x1980')][_0x28e07a('0x1c0d')],_0x11a640['config']),_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x1028')]=_0x107a13()[_0x28e07a('0x1776')](Math[_0x28e07a('0x17f8')](_0x11a640[_0x28e07a('0x1e77')]['sumBillable']/_0x11a640[_0x28e07a('0x1e77')][_0x28e07a('0x3c8')]),_0x11a640[_0x28e07a('0x1980')][_0x28e07a('0x39c')])[_0x28e07a('0x1c0d')](_0x11a640[_0x28e07a('0x1980')][_0x28e07a('0x1c0d')],_0x11a640['config']);}function _0x21bc34(){const _0x25d204=_0x42843b;if(Object['keys'](_0x11a640[_0x25d204('0x58b')])['length']>0x0)for(let _0x1e5fc7=0x0;_0x1e5fc7<_0x133253['rows']['length'];_0x1e5fc7+=0x1){if(_0x11cbbc(_0x133253[_0x25d204('0x2319')][_0x1e5fc7])){const _0x236e25=_0x133253['rows'][_0x1e5fc7];_0x46039b(_0x236e25,!![]),_0x4cc257();}}}function _0x11cbbc(_0x44fe33){const _0x327281=_0x42843b;if(_0x49cbdd()['some'](_0x11a640['whatsappAccounts'],{'id':_0x49cbdd()[_0x327281('0xa33')](_0x44fe33[_0x327281('0x10d7')])}))return!![];return![];}function _0x449cbb(_0x5bacb4){const _0x53b738=_0x42843b,_0x327447=_0x107a13()()[_0x53b738('0x1376')](0x0,!![])[_0x53b738('0x161c')](_0x53b738('0x26d6')),_0x3e74b4=_0x107a13()()['utcOffset'](0x0,!![])['endOf']('day');return _0x107a13()(_0x5bacb4)['utcOffset'](0x0,!![])['isBetween'](_0x327447,_0x3e74b4);}function _0x5c881c(_0x1e47b2){const _0x122dcb=_0x42843b;_0x11cbbc(_0x1e47b2)&&_0x449cbb(_0x1e47b2[_0x122dcb('0x7c9')])&&(_0x46039b(_0x1e47b2,!![]),_0x4cc257());}function _0x4236ac(_0x547e66){const _0x3f19e9=_0x42843b;_0x11cbbc(_0x547e66)&&_0x449cbb(_0x547e66[_0x3f19e9('0x7c9')])&&(_0x46039b(_0x547e66,![]),_0x4cc257());}_0x4e931a['$on'](_0x42843b('0x2b4'),function(){const _0x1a2a21=_0x42843b;_0x8ee3f8['removeAllListeners'](_0x1a2a21('0xa11')),_0x8ee3f8[_0x1a2a21('0x1c65')](_0x1a2a21('0x57d'));});}const _0x5dcaa9=_0x2c863c;_0x2cf42a['$inject']=[_0x4376d8('0x183a')];function _0x2cf42a(_0x316a3e){const _0xaa8339=_0x4376d8;_0x316a3e[_0xaa8339('0x1b9a')](_0xaa8339('0x9ec'),{'url':'/voice','data':{'selectedTab':0x0},'views':{'voice':{'templateUrl':_0x33a8ce,'controller':'UserVoiceDashboardGeneralController\x20as\x20vm'}},'resolve':{'rpcQueues':['apiResolver',function(_0x22081e){const _0x4b6e23=_0xaa8339;return _0x22081e[_0x4b6e23('0x898')]('rpc@getVoiceQueues');}],'inboundQueues':[_0xaa8339('0x177'),_0xaa8339('0x1885'),function(_0x53df2a,_0x3c799c){const _0x3603a8=_0xaa8339;return _0x3c799c[_0x3603a8('0x1ba2')](_0x3603a8('0x20bf'))?_0x53df2a[_0x3603a8('0x898')](_0x3603a8('0xa5a'),{'fields':_0x3603a8('0x12d2'),'type':'inbound','nolimit':!![]}):_0x53df2a[_0x3603a8('0x898')]('userProfile@getResources',{'id':_0x3c799c[_0x3603a8('0x2831')]()[_0x3603a8('0x1e76')],'section':_0x3603a8('0x2068'),'fields':_0x3603a8('0x12d2'),'type':'inbound','channel':_0x3603a8('0x1fe1'),'nolimit':!![]});}],'outbound':[_0xaa8339('0x177'),function(_0x71af23){const _0x20d1c8=_0xaa8339;return _0x71af23[_0x20d1c8('0x898')]('rpc@getOutbound');}]},'authenticate':!![],'bodyClass':'dashboards'})[_0xaa8339('0x1b9a')](_0xaa8339('0x1175'),{'url':_0xaa8339('0xc3d'),'data':{'selectedTab':0x1},'views':{'dialer':{'templateUrl':_0x5e6829,'controller':_0xaa8339('0x1549')}},'resolve':{'rpcQueues':[_0xaa8339('0x177'),function(_0xd43eb1){const _0x4b1c64=_0xaa8339;return _0xd43eb1[_0x4b1c64('0x898')]('rpc@getVoiceQueues');}],'outboundQueues':[_0xaa8339('0x177'),_0xaa8339('0x1885'),function(_0x2d8576,_0x3902c1){const _0x37c58b=_0xaa8339;return _0x3902c1['hasRole'](_0x37c58b('0x20bf'))?_0x2d8576[_0x37c58b('0x898')](_0x37c58b('0xa5a'),{'fields':'id,name','type':_0x37c58b('0x1ade'),'nolimit':!![]}):_0x2d8576[_0x37c58b('0x898')](_0x37c58b('0x1164'),{'id':_0x3902c1[_0x37c58b('0x2831')]()[_0x37c58b('0x1e76')],'section':_0x37c58b('0x1299'),'fields':_0x37c58b('0x12d2'),'type':'outbound','channel':_0x37c58b('0x1fe1'),'nolimit':!![]});}],'rpcCampaigns':[_0xaa8339('0x177'),function(_0x38720e){const _0xb17b2b=_0xaa8339;return _0x38720e[_0xb17b2b('0x898')](_0xb17b2b('0x12'));}]},'authenticate':!![],'bodyClass':_0xaa8339('0x2419')})[_0xaa8339('0x1b9a')](_0xaa8339('0x8df'),{'url':_0xaa8339('0x306'),'data':{'selectedTab':0x2},'views':{'chat':{'templateUrl':_0x2c5f4b,'controller':_0xaa8339('0xa49')}},'resolve':{'chatInteractions':[_0xaa8339('0x177'),function(_0x98b621){const _0x4940b7=_0xaa8339;return _0x98b621[_0x4940b7('0x898')](_0x4940b7('0xd4b'),{'createdAt':{'$gte':_0x107a13()()[_0x4940b7('0x161c')](_0x4940b7('0x26d6'))[_0x4940b7('0x1376')](0x0,!![])['format'](),'$lte':_0x107a13()()[_0x4940b7('0x200e')](_0x4940b7('0x26d6'))[_0x4940b7('0x1376')](0x0,!![])[_0x4940b7('0x1c0d')]()},'nolimit':!![]});}],'chatWebsites':[_0xaa8339('0x177'),_0xaa8339('0x1885'),function(_0x2458af,_0x4885a8){const _0x1b12ed=_0xaa8339;return _0x4885a8['hasRole'](_0x1b12ed('0x20bf'))?_0x2458af[_0x1b12ed('0x898')](_0x1b12ed('0xfa2'),{'fields':_0x1b12ed('0x552'),'sort':_0x1b12ed('0x1ac6'),'limit':0xa,'offset':0x0}):_0x2458af[_0x1b12ed('0x898')](_0x1b12ed('0x1164'),{'id':_0x4885a8[_0x1b12ed('0x2831')]()[_0x1b12ed('0x1e76')],'section':_0x1b12ed('0x14de'),'fields':_0x1b12ed('0x552'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0xaa8339('0x2419')})['state']('app.dashboards.general.mail',{'url':'/mail','data':{'selectedTab':0x3},'views':{'mail':{'templateUrl':_0x560b2e,'controller':_0xaa8339('0x1c38')}},'resolve':{'mailInteractions':[_0xaa8339('0x177'),function(_0x459404){const _0x153b58=_0xaa8339;return _0x459404[_0x153b58('0x898')](_0x153b58('0x1527'),{'createdAt':{'$gte':_0x107a13()()[_0x153b58('0x161c')](_0x153b58('0x26d6'))[_0x153b58('0x1376')](0x0,!![])[_0x153b58('0x1c0d')](),'$lte':_0x107a13()()[_0x153b58('0x200e')](_0x153b58('0x26d6'))['utcOffset'](0x0,!![])[_0x153b58('0x1c0d')]()},'nolimit':!![]});}],'mailAccounts':[_0xaa8339('0x177'),_0xaa8339('0x1885'),function(_0x25bde4,_0x2a9116){const _0x25c323=_0xaa8339;return _0x2a9116[_0x25c323('0x1ba2')]('admin')?_0x25bde4[_0x25c323('0x898')](_0x25c323('0xfa7'),{'fields':_0x25c323('0x289f'),'sort':_0x25c323('0x1ac6'),'limit':0xa,'offset':0x0}):_0x25bde4[_0x25c323('0x898')](_0x25c323('0x1164'),{'id':_0x2a9116[_0x25c323('0x2831')]()[_0x25c323('0x1e76')],'section':_0x25c323('0xedf'),'fields':_0x25c323('0x289f'),'sort':_0x25c323('0x1ac6'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0xaa8339('0x2419')})[_0xaa8339('0x1b9a')](_0xaa8339('0x1d0'),{'url':'/sms','data':{'selectedTab':0x4},'views':{'sms':{'templateUrl':_0x5afe0e,'controller':_0xaa8339('0x1f8e')}},'resolve':{'smsInteractions':['apiResolver',function(_0x4fb33c){const _0xe89987=_0xaa8339;return _0x4fb33c[_0xe89987('0x898')](_0xe89987('0x2360'),{'createdAt':{'$gte':_0x107a13()()[_0xe89987('0x161c')](_0xe89987('0x26d6'))[_0xe89987('0x1376')](0x0,!![])[_0xe89987('0x1c0d')](),'$lte':_0x107a13()()[_0xe89987('0x200e')](_0xe89987('0x26d6'))[_0xe89987('0x1376')](0x0,!![])[_0xe89987('0x1c0d')]()},'nolimit':!![]});}],'smsAccounts':['apiResolver',_0xaa8339('0x1885'),function(_0x95d54c,_0x2201e4){const _0x57c6d9=_0xaa8339;return _0x2201e4[_0x57c6d9('0x1ba2')]('admin')?_0x95d54c[_0x57c6d9('0x898')](_0x57c6d9('0xef2'),{'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':_0x57c6d9('0x1ac6'),'limit':0xa,'offset':0x0}):_0x95d54c['resolve'](_0x57c6d9('0x1164'),{'id':_0x2201e4[_0x57c6d9('0x2831')]()['userProfileId'],'section':_0x57c6d9('0x2230'),'fields':_0x57c6d9('0x1137'),'sort':_0x57c6d9('0x1ac6'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':_0xaa8339('0x2419')})[_0xaa8339('0x1b9a')](_0xaa8339('0x1081'),{'url':_0xaa8339('0x22c1'),'data':{'selectedTab':0x5},'views':{'openchannel':{'templateUrl':_0x1f0f74,'controller':_0xaa8339('0x6e4')}},'resolve':{'openchannelInteractions':[_0xaa8339('0x177'),function(_0x3e9fa2){const _0x555a97=_0xaa8339;return _0x3e9fa2[_0x555a97('0x898')](_0x555a97('0x26d3'),{'createdAt':{'$gte':_0x107a13()()[_0x555a97('0x161c')](_0x555a97('0x26d6'))[_0x555a97('0x1376')](0x0,!![])[_0x555a97('0x1c0d')](),'$lte':_0x107a13()()[_0x555a97('0x200e')](_0x555a97('0x26d6'))[_0x555a97('0x1376')](0x0,!![])[_0x555a97('0x1c0d')]()},'nolimit':!![]});}],'openchannelAccounts':[_0xaa8339('0x177'),_0xaa8339('0x1885'),function(_0x4eca77,_0x28ba4b){const _0x811d07=_0xaa8339;return _0x28ba4b['hasRole'](_0x811d07('0x20bf'))?_0x4eca77['resolve'](_0x811d07('0xcc4'),{'fields':_0x811d07('0x353'),'sort':'-updatedAt','nolimit':!![]}):_0x4eca77[_0x811d07('0x898')](_0x811d07('0x1164'),{'id':_0x28ba4b[_0x811d07('0x2831')]()[_0x811d07('0x1e76')],'section':_0x811d07('0x28cf'),'fields':_0x811d07('0x353'),'sort':_0x811d07('0x1ac6'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0xaa8339('0x2419')})[_0xaa8339('0x1b9a')](_0xaa8339('0x1c3d'),{'url':_0xaa8339('0xb87'),'data':{'selectedTab':0x6},'views':{'fax':{'templateUrl':_0x1d6c48,'controller':'UserFaxDashboardGeneralController\x20as\x20vm'}},'resolve':{'faxInteractions':[_0xaa8339('0x177'),function(_0x4d8ac6){const _0x4505da=_0xaa8339;return _0x4d8ac6[_0x4505da('0x898')](_0x4505da('0x2497'),{'createdAt':{'$gte':_0x107a13()()[_0x4505da('0x161c')](_0x4505da('0x26d6'))['utcOffset'](0x0,!![])[_0x4505da('0x1c0d')](),'$lte':_0x107a13()()[_0x4505da('0x200e')]('day')['utcOffset'](0x0,!![])[_0x4505da('0x1c0d')]()},'nolimit':!![]});}],'faxAccounts':[_0xaa8339('0x177'),_0xaa8339('0x1885'),function(_0x2791ae,_0x130582){const _0x4bf602=_0xaa8339;return _0x130582[_0x4bf602('0x1ba2')](_0x4bf602('0x20bf'))?_0x2791ae['resolve'](_0x4bf602('0x652'),{'fields':_0x4bf602('0x14e1'),'sort':_0x4bf602('0x1ac6'),'limit':0xa,'offset':0x0}):_0x2791ae['resolve'](_0x4bf602('0x1164'),{'id':_0x130582['getCurrentUser']()[_0x4bf602('0x1e76')],'section':_0x4bf602('0xeca'),'fields':_0x4bf602('0x14e1'),'sort':_0x4bf602('0x1ac6'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'})[_0xaa8339('0x1b9a')](_0xaa8339('0x6ff'),{'url':_0xaa8339('0x1322'),'data':{'selectedTab':0x7},'views':{'whatsapp':{'templateUrl':_0x49324e,'controller':_0xaa8339('0x2356')}},'resolve':{'whatsappInteractions':[_0xaa8339('0x177'),function(_0x9c6ca6){const _0x374bad=_0xaa8339;return _0x9c6ca6[_0x374bad('0x898')]('whatsappInteraction@get',{'createdAt':{'$gte':_0x107a13()()[_0x374bad('0x161c')](_0x374bad('0x26d6'))[_0x374bad('0x1376')](0x0,!![])[_0x374bad('0x1c0d')](),'$lte':_0x107a13()()[_0x374bad('0x200e')](_0x374bad('0x26d6'))[_0x374bad('0x1376')](0x0,!![])[_0x374bad('0x1c0d')]()},'nolimit':!![]});}],'whatsappAccounts':[_0xaa8339('0x177'),_0xaa8339('0x1885'),function(_0x1b4123,_0x594208){const _0x5d56d9=_0xaa8339;return _0x594208[_0x5d56d9('0x1ba2')](_0x5d56d9('0x20bf'))?_0x1b4123[_0x5d56d9('0x898')](_0x5d56d9('0xacb'),{'fields':_0x5d56d9('0x920'),'sort':_0x5d56d9('0x1ac6'),'limit':0xa,'offset':0x0}):_0x1b4123[_0x5d56d9('0x898')]('userProfile@getResources',{'id':_0x594208[_0x5d56d9('0x2831')]()['userProfileId'],'section':_0x5d56d9('0xd91'),'fields':_0x5d56d9('0x920'),'sort':_0x5d56d9('0x1ac6'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'bodyClass':'dashboards'});}angular['module']('app.dashboards.general.user',[])['config'](_0x2cf42a)[_0x4376d8('0x5ce')](_0x4376d8('0x234f'),_0x5bc58c)[_0x4376d8('0x5ce')]('UserVoiceDashboardDialerController',_0x28bbac)[_0x4376d8('0x5ce')](_0x4376d8('0x284'),_0xd07fa8)[_0x4376d8('0x5ce')](_0x4376d8('0xecc'),_0x456b26)[_0x4376d8('0x5ce')](_0x4376d8('0x1c0a'),_0x589573)[_0x4376d8('0x5ce')]('UserSmsDashboardGeneralController',_0x93d6e7)[_0x4376d8('0x2483')](_0x4376d8('0x15e0'),_0x341050)[_0x4376d8('0x26a6')]('initializeRealtimeQueue',_0x18dc9b)[_0x4376d8('0x26a6')]('initializeRealtimeCampaign',_0x34a3fa)[_0x4376d8('0x5ce')]('UserDashboardGeneralController',_0x5d3936)['controller'](_0x4376d8('0x24b2'),_0x18957b)[_0x4376d8('0x5ce')](_0x4376d8('0x1ec1'),_0x5dcaa9);const _0x11300b=_0x4cf2bc['p']+_0x4376d8('0xf0e'),_0x5bd54e=_0x4cf2bc['p']+_0x4376d8('0x281a');var _0x413c24=_0x4cf2bc(0x1d2),_0x2b7e10=_0x4cf2bc['n'](_0x413c24);_0x1ce22e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x655'),'$translate',_0x4376d8('0x198f'),_0x4376d8('0x1885')],_0x5ccd5e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x198f'),_0x4376d8('0x28da'),_0x4376d8('0x26ca'),_0x4376d8('0x1885'),_0x4376d8('0x212e'),'socket','toasty',_0x4376d8('0x296'),_0x4376d8('0x1e19'),_0x4376d8('0xee5'),_0x4376d8('0x525'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x118d'),_0x4376d8('0x1606')];function _0x5ccd5e(_0x495888,_0x592806,_0x41a921,_0x1af503,_0x4c29c9,_0x4d402d,_0x2bff0a,_0x3d7e53,_0xa96284,_0x12e78e,_0x5f3264,_0x611784,_0x2974be,_0xbb8cbf,_0x4e5916,_0x15d212,_0x30ef9b,_0x55ef61){const _0x432cf3=_0x4376d8,_0x5ce34f=this;_0x5ce34f[_0x432cf3('0x1d11')]=_0x4e5916,_0x5ce34f['setting']=_0x15d212,_0x5ce34f[_0x432cf3('0x2208')]=_0x55ef61[_0x432cf3('0x2208')](),_0x5ce34f['user']=_0x2bff0a[_0x432cf3('0x2831')](),_0x5ce34f[_0x432cf3('0x434')]=0x0,_0x5ce34f['notifications']={},_0x5ce34f[_0x432cf3('0x3b7')]={},_0x5ce34f[_0x432cf3('0x1289')]={},_0x5ce34f[_0x432cf3('0x296')]=_0x5f3264||{'count':0x0,'rows':[]},_0x5ce34f['globalLists']=_0x611784||{'count':0x0,'rows':[]},_0x5ce34f[_0x432cf3('0xee5')]=_0x2974be||{'count':0x0,'rows':[]},_0x5ce34f[_0x432cf3('0x525')]=_0xbb8cbf||{'count':0x0,'rows':[]},_0x5ce34f[_0x432cf3('0x16d7')]=_0x3e732b,_0x5ce34f['isActiveTab']=_0x290ce5,_0x5ce34f['alreadyExistsTab']=_0x302e4b,_0x5ce34f[_0x432cf3('0x13b9')]=_0x5b309a,_0x5ce34f[_0x432cf3('0x3a2')]=_0x434704,_0x5ce34f['addTab']=_0x4095aa,_0x5ce34f[_0x432cf3('0x471')]=_0x9f542e,_0x5ce34f[_0x432cf3('0x8ce')]=_0x4d1c35,_0x5ce34f[_0x432cf3('0x1dd5')]=_0x1502af,_0xa96284['on'](_0x432cf3('0x348'),_0xcae324),_0xa96284['on'](_0x432cf3('0x745'),_0xf94e5a),_0xa96284['on'](_0x432cf3('0x21e8'),_0x1c2fed),_0xa96284['on'](_0x432cf3('0x270e'),_0x2f4445),_0xa96284['on'](_0x432cf3('0x23d4'),_0x465bdc),_0xa96284['on'](_0x432cf3('0x1a9e'),_0xe1b41f),_0xa96284['on'](_0x432cf3('0x741'),_0x390568),_0xa96284['on'](_0x432cf3('0x22d1'),_0xbbf57a),_0xa96284['on'](_0x432cf3('0x2869'),_0xbbf57a),_0x172b0c();function _0x172b0c(){const _0x6f63ce=_0x432cf3;let _0x2233c8=_0x1af503[_0x6f63ce('0x1a93')][_0x6f63ce('0x3b8')](_0x6f63ce('0x41c')+_0x5ce34f[_0x6f63ce('0x221e')]['id']);if(_0x2233c8)try{_0x2233c8=JSON['parse'](_0x2233c8),_0x5ce34f[_0x6f63ce('0x3b7')]=_0x2233c8[_0x6f63ce('0x3b7')]?_0x2233c8[_0x6f63ce('0x3b7')]:{},_0x5ce34f[_0x6f63ce('0x434')]=_0x2233c8['currentTab']?_0x2233c8[_0x6f63ce('0x434')]:0x0,_0x36b0cc(_0x5ce34f[_0x6f63ce('0x3b7')][_0x5ce34f[_0x6f63ce('0x434')]]);}catch(_0x167e21){console[_0x6f63ce('0x1db9')](_0x167e21);}}function _0x4d1c35(_0x5ca184){const _0x6e0b6b=_0x432cf3,_0x527ebc={};for(const _0x1666f0 in _0x5ce34f[_0x6e0b6b('0x3b7')]){typeof _0x5ce34f[_0x6e0b6b('0x3b7')][_0x1666f0]!=='undefined'&&(_0x527ebc[_0x1666f0]=_0x49cbdd()[_0x6e0b6b('0x230a')](_0x5ce34f[_0x6e0b6b('0x3b7')][_0x1666f0],[_0x6e0b6b('0x412'),_0x6e0b6b('0x24d3'),_0x6e0b6b('0x15d7'),'icon',_0x6e0b6b('0x1a1f'),_0x6e0b6b('0x25f6'),'id',_0x6e0b6b('0x51d'),_0x6e0b6b('0x1c51')]),!_0x49cbdd()[_0x6e0b6b('0x390')](_0x5ce34f[_0x6e0b6b('0x3b7')][_0x1666f0][_0x6e0b6b('0x1c58')])&&(_0x527ebc[_0x1666f0][_0x6e0b6b('0x1c58')]=_0x49cbdd()[_0x6e0b6b('0x230a')](_0x5ce34f[_0x6e0b6b('0x3b7')][_0x1666f0]['contact'],['id',_0x6e0b6b('0x7f8')])),!_0x49cbdd()[_0x6e0b6b('0x390')](_0x5ce34f[_0x6e0b6b('0x3b7')][_0x1666f0][_0x6e0b6b('0x1392')])&&(_0x527ebc[_0x1666f0]['calls']=_0x5ce34f[_0x6e0b6b('0x3b7')][_0x1666f0][_0x6e0b6b('0x1392')]),_0x5ce34f['tabs'][_0x1666f0]['interaction']&&(_0x527ebc[_0x1666f0]['interaction']=_0x49cbdd()[_0x6e0b6b('0x230a')](_0x5ce34f[_0x6e0b6b('0x3b7')][_0x1666f0][_0x6e0b6b('0x1219')],['id',_0x6e0b6b('0x1969'),_0x6e0b6b('0xbda'),_0x6e0b6b('0x259'),_0x6e0b6b('0x24f9'),_0x6e0b6b('0x17fe'),_0x6e0b6b('0x10d7'),_0x6e0b6b('0x2bc'),_0x6e0b6b('0x283b')])));}let _0x1b17b5=JSON[_0x6e0b6b('0x1f0a')](_0x1af503[_0x6e0b6b('0x1a93')][_0x6e0b6b('0x3b8')](_0x6e0b6b('0x41c')+_0x5ce34f[_0x6e0b6b('0x221e')]['id']));_0x1b17b5?(_0x1b17b5[_0x6e0b6b('0x3b7')]=_0x527ebc,_0x1b17b5[_0x6e0b6b('0x434')]=_0x5ce34f[_0x6e0b6b('0x434')]):_0x1b17b5={'tabs':_0x527ebc,'currentTab':_0x5ce34f[_0x6e0b6b('0x434')]},_0x1af503[_0x6e0b6b('0x1a93')][_0x6e0b6b('0x230f')](_0x6e0b6b('0x41c')+_0x5ce34f[_0x6e0b6b('0x221e')]['id'],JSON[_0x6e0b6b('0x678')](_0x1b17b5)),_0x5ca184&&_0x36b0cc(_0x5ca184);}function _0x36b0cc(_0x5ad09b){const _0x398aa0=_0x432cf3;if(_0x49cbdd()[_0x398aa0('0x390')](_0x5ad09b)||_0x5ad09b&&_0x5ad09b[_0x398aa0('0x412')]===_0x398aa0('0x1219')){const _0x46fee3={'id':_0x5ce34f[_0x398aa0('0x221e')]['id'],'online':!![],'capacity':{'mail':0x0,'fax':0x0,'sms':0x0,'whatsapp':0x0,'openchannel':0x0,'chat':0x0},'interaction':{'mail':[],'fax':[],'sms':[],'whatsapp':[],'openchannel':[],'chat':[]}};for(const _0x1e0a58 in _0x5ce34f['tabs']){typeof _0x5ce34f[_0x398aa0('0x3b7')][_0x1e0a58]!==_0x398aa0('0xfad')&&(typeof _0x46fee3[_0x398aa0('0x24dc')][_0x5ce34f[_0x398aa0('0x3b7')][_0x1e0a58][_0x398aa0('0x15d7')]]!==_0x398aa0('0xfad')&&_0x5ce34f['tabs'][_0x1e0a58]['interaction']&&!_0x5ce34f[_0x398aa0('0x3b7')][_0x1e0a58][_0x398aa0('0x1219')][_0x398aa0('0x2bc')]&&(_0x46fee3[_0x398aa0('0x24dc')][_0x5ce34f[_0x398aa0('0x3b7')][_0x1e0a58]['channel']]+=0x1,_0x46fee3[_0x398aa0('0x1219')][_0x5ce34f[_0x398aa0('0x3b7')][_0x1e0a58][_0x398aa0('0x15d7')]][_0x398aa0('0x269f')](_0x5ce34f[_0x398aa0('0x3b7')][_0x1e0a58]['interaction']['id'])));}if(!_0x49cbdd()[_0x398aa0('0x2784')](_0x5ce34f['agentCapacity'],_0x46fee3['capacity']))return _0x5ce34f[_0x398aa0('0x1289')]=_0x46fee3['capacity'],_0x3d7e53['rpc'][_0x398aa0('0xd67')](_0x46fee3);}}function _0x1502af(_0xe94583){const _0x2a9ca4=_0x432cf3;let _0x17e401=![];const _0x27362a=_0x41a921[_0x2a9ca4('0x1121')]()[_0x2a9ca4('0x24d3')](_0xe94583[_0x2a9ca4('0x412')]===_0x2a9ca4('0x1219')?'Do\x20you\x20want\x20to\x20close\x20the\x20interaction?':_0x2a9ca4('0xb34')+_0xe94583[_0x2a9ca4('0x412')]+'?')[_0x2a9ca4('0x18c5')](_0xe94583['type']===_0x2a9ca4('0x1219')?'':_0x2a9ca4('0x1664')+_0xe94583[_0x2a9ca4('0x412')]+_0x2a9ca4('0x12ec'))[_0x2a9ca4('0x2095')](_0x2a9ca4('0x1525'))['ok'](_0xe94583['type']===_0x2a9ca4('0x1219')?_0x2a9ca4('0x28c5'):'OK')[_0x2a9ca4('0x1d47')](_0xe94583['type']===_0x2a9ca4('0x1219')?'NO':'CANCEL');if(_0xe94583[_0x2a9ca4('0x51d')]){let _0xb56b5f=![];_0x49cbdd()[_0x2a9ca4('0xccd')](_0xe94583[_0x2a9ca4('0x1392')],function(_0x3a5bc5){const _0x2bdcc4=_0x2a9ca4;_0x3a5bc5[_0x2bdcc4('0xb20')]&&(_0xb56b5f=!![]);});if(_0xe94583[_0x2a9ca4('0x412')]===_0x2a9ca4('0x1c58')&&_0xe94583[_0x2a9ca4('0x1392')][_0x2a9ca4('0x1f73')]>0x0){let _0x1b7454=undefined;if(_0xb56b5f)_0x1b7454=_0x41a921[_0x2a9ca4('0x99f')]()[_0x2a9ca4('0x24d3')]('Warning')[_0x2a9ca4('0x18c5')](_0x2a9ca4('0xd5b'))['ok']('OK'),_0x41a921[_0x2a9ca4('0x28e2')](_0x1b7454)[_0x2a9ca4('0x74e')](function(){_0x1b7454=undefined;});else return _0x27362a['_options'][_0x2a9ca4('0x18c5')]=_0x2a9ca4('0xd5b'),_0x41a921['show'](_0x27362a)['then'](function(){_0x9f542e(_0xe94583);});}else _0x9f542e(_0xe94583);}else{const _0x59af7e=_0x5ce34f[_0x2a9ca4('0x221e')][_0x2a9ca4('0x118a')]||_0x5ce34f[_0x2a9ca4('0x221e')][_0x2a9ca4('0x2764')]||_0x5ce34f[_0x2a9ca4('0x221e')][_0x2a9ca4('0x1467')]||_0x5ce34f[_0x2a9ca4('0x221e')][_0x2a9ca4('0x105e')]||_0x5ce34f[_0x2a9ca4('0x221e')]['faxPause'];return _0x17e401=![],_0xe94583[_0x2a9ca4('0x412')]===_0x2a9ca4('0x1219')&&(_0x17e401=_0xe94583[_0x2a9ca4('0x1219')][_0x2a9ca4('0x896')][_0x2a9ca4('0xb20')]),_0x41a921[_0x2a9ca4('0x28e2')](_0x27362a)[_0x2a9ca4('0x17e7')](function(){const _0x2b5348=_0x2a9ca4;_0xe94583[_0x2b5348('0x412')]===_0x2b5348('0x1219')&&_0x41a921[_0x2b5348('0x28e2')]({'controller':'DisposeInteractionDialogController','controllerAs':'vm','templateUrl':_0x11300b,'parent':angular[_0x2b5348('0x1ce1')](_0x4d402d[_0x2b5348('0x13aa')]),'onRemoving':function(){const _0x3dd414=_0x2b5348;_0x5ce34f[_0x3dd414('0x221e')]&&_0x17e401&&!_0x59af7e&&_0x3d7e53[_0x3dd414('0x221e')][_0x3dd414('0xc57')]({'id':_0x5ce34f[_0x3dd414('0x221e')]['id']})['$promise'][_0x3dd414('0x16df')](function(_0x2212a6){const _0x297cc4=_0x3dd414;console[_0x297cc4('0x1db9')](_0x2212a6);});},'clickOutsideToClose':!_0x17e401,'escapeToClose':!_0x17e401,'locals':{'user':_0x5ce34f['user'],'channel':_0xe94583['channel'],'interaction':_0xe94583[_0x2b5348('0x1219')]}}),_0x9f542e(_0xe94583);})[_0x2a9ca4('0x16df')](function(){const _0x1e7551=_0x2a9ca4;_0xe94583['type']===_0x1e7551('0x1219')&&_0x9f542e(_0xe94583);});}}function _0x472a7b(_0x3d50bb){const _0x239b91=_0x432cf3;if(_0x3d50bb['channel']&&_0x3d50bb['interaction'])return _0x3d7e53[_0x239b91('0x221e')][_0x239b91('0x5f3')+_0x49cbdd()[_0x239b91('0x233c')](_0x3d50bb['channel'])+_0x239b91('0xd64')]({'id':_0x5ce34f[_0x239b91('0x221e')]['id'],'ids':[_0x3d50bb[_0x239b91('0x1219')]['id']]})[_0x239b91('0x1af5')]['catch'](function(_0x3999b9){const _0x331c81=_0x239b91;console[_0x331c81('0x1db9')](_0x3999b9);});}function _0x9f542e(_0x588441){const _0x45074b=_0x432cf3;if(_0x5ce34f[_0x45074b('0x3b7')][_0x588441['id']]){_0x472a7b(_0x5ce34f['tabs'][_0x588441['id']]),delete _0x5ce34f[_0x45074b('0x3b7')][_0x588441['id']],_0x5ce34f[_0x45074b('0x434')]=0x0,_0x4d1c35(_0x588441);if(_0x588441[_0x45074b('0x412')]===_0x45074b('0x1219'))return _0x3d7e53[_0x588441['channel']+_0x45074b('0x3de')][_0x45074b('0x1c53')]({'id':_0x588441[_0x45074b('0x1219')]['id']})['$promise']['then'](function(_0x222a87){const _0x445b03=_0x45074b;return _0x3d7e53['user'][_0x445b03('0x5f3')+_0x49cbdd()[_0x445b03('0x233c')](_0x588441[_0x445b03('0x15d7')])+_0x445b03('0xd64')]({'id':_0x5ce34f['user']['id'],'ids':[_0x222a87['id']]})[_0x445b03('0x1af5')];})[_0x45074b('0x16df')](function(_0x36c4d6){const _0x523227=_0x45074b;console[_0x523227('0x1db9')](_0x36c4d6);});}}function _0x4095aa(_0xc77d5f){const _0x370990=_0x432cf3;_0xc77d5f['id']=_0x49cbdd()[_0x370990('0x13ce')](0x2540be400),_0xc77d5f[_0x370990('0x184e')]=new Date(),_0xc77d5f[_0x370990('0x51d')]=![],_0xc77d5f['badges']=0x0,_0x5ce34f[_0x370990('0x3b7')][_0xc77d5f['id']]=_0xc77d5f,_0x5ce34f[_0x370990('0x434')]=_0xc77d5f['id'],_0x4d1c35(_0xc77d5f);}function _0x290ce5(_0x52f105){const _0x3071cf=_0x432cf3;return _0x52f105===_0x5ce34f[_0x3071cf('0x434')];}function _0x3e732b(_0x3f89a0){const _0x34d3cc=_0x432cf3;_0x5ce34f[_0x34d3cc('0x434')]=_0x3f89a0,_0x4d1c35(_0x5ce34f[_0x34d3cc('0x3b7')][_0x3f89a0]);}function _0x302e4b(_0x329900){const _0x11de55=_0x432cf3;return _0x49cbdd()[_0x11de55('0xe8e')](_0x5ce34f[_0x11de55('0x3b7')],function(_0x5b933b){const _0x500560=_0x11de55;return _0x5b933b[_0x500560('0x412')]===_0x500560('0x1219')&&_0x5b933b[_0x500560('0x1219')]&&_0x5b933b['interaction']['id']==_0x329900['interactionId']&&_0x5b933b['channel']==_0x329900[_0x500560('0x15d7')];});}function _0x20481e(_0x5ad0f9){const _0x26dccc=_0x432cf3;let _0xccef39='';if(_0x5ad0f9){if(_0x5ad0f9[_0x26dccc('0x1761')]||_0x5ad0f9['lastName'])_0x5ad0f9['firstName']&&(_0xccef39+=_0x5ad0f9[_0x26dccc('0x1761')]+'\x20'),_0x5ad0f9[_0x26dccc('0x8d6')]&&(_0xccef39+=_0x5ad0f9[_0x26dccc('0x8d6')]);else _0x5ad0f9[_0x26dccc('0x2154')]&&(_0xccef39=_0x5ad0f9[_0x26dccc('0x2154')]);}return _0xccef39;}function _0x44d3e6(_0x3c166a){const _0x9dc1d5=_0x432cf3;switch(_0x3c166a){case'chat':return _0x9dc1d5('0x1fff');case'mail':return _0x9dc1d5('0x1f8b');case _0x9dc1d5('0x2cd'):return _0x9dc1d5('0x1469');case _0x9dc1d5('0x1508'):return _0x9dc1d5('0x2584');case'fax':return _0x9dc1d5('0x131c');case _0x9dc1d5('0x1d27'):return _0x9dc1d5('0x1485');default:return _0x9dc1d5('0x1fff');}}function _0x1d4289(_0xdb517){const _0x4468f5=_0x432cf3;switch(_0xdb517){case'chat':return _0x4468f5('0x217f');case'mail':return _0x4468f5('0x2fc');case'sms':return _0x4468f5('0x20c9');case _0x4468f5('0x1508'):return _0x4468f5('0x256d');case'fax':return'blue-grey-A200';case _0x4468f5('0x1d27'):return'lime-A700';default:return'grey';}}function _0x5b309a(_0x43b398,_0x42bb00){const _0x59ba8a=_0x432cf3,_0x39ac68={'type':_0x59ba8a('0x1c58'),'title':_0x43b398?_0x20481e(_0x43b398):_0x4c29c9['instant'](_0x59ba8a('0x15d9')),'icon':_0x59ba8a('0x181c'),'color':_0x59ba8a('0xdbc'),'contact':_0x43b398,'calls':_0x42bb00?[_0x42bb00]:[],'autoCreate':_0x42bb00?_0x42bb00['autoCreate']:0x0};if(_0x42bb00){if(_0x42bb00[_0x59ba8a('0x180c')]&&_0x42bb00[_0x59ba8a('0x180c')]==='dialer')_0x42bb00['answeredAt']=_0x42bb00[_0x59ba8a('0x18e4')]?_0x107a13()(_0x42bb00[_0x59ba8a('0x18e4')],'YYYY-MM-DD\x20HH:mm:ss')[_0x59ba8a('0x4d')]():new Date();else{if(_0x42bb00[_0x59ba8a('0x35b')]){const _0x5e1fa8=_0x42bb00[_0x59ba8a('0x35b')]['split']('.')[0x0];_0x42bb00[_0x59ba8a('0xeb7')]=_0x5e1fa8?new Date(parseInt(_0x5e1fa8)*0x3e8):new Date();}}(_0x42bb00['agentcompleteAt']||_0x42bb00['endtime'])&&_0x1e4f7c(_0x42bb00);}if(_0x43b398){const _0x488d64=_0x49cbdd()[_0x59ba8a('0xe8e')](_0x5ce34f[_0x59ba8a('0x3b7')],function(_0x646489){const _0x318d0d=_0x59ba8a;if(_0x646489[_0x318d0d('0x1c58')]&&_0x646489[_0x318d0d('0x1c58')]['id'])return _0x646489[_0x318d0d('0x412')]===_0x318d0d('0x1c58')&&_0x646489['contact']&&_0x646489['contact']['id']==_0x43b398['id'];return _0x646489[_0x318d0d('0x412')]===_0x318d0d('0x1c58')&&_0x646489['contact']&&_0x646489[_0x318d0d('0x1c58')][_0x318d0d('0x2154')]==_0x43b398[_0x318d0d('0x2154')];});if(_0x488d64){if(_0x42bb00)return _0x3d7e53[_0x59ba8a('0xf5')][_0x59ba8a('0x1c53')]({'uniqueid':_0x42bb00[_0x59ba8a('0x35b')]})[_0x59ba8a('0x1af5')][_0x59ba8a('0x17e7')](function(_0x1049b9){const _0x450470=_0x59ba8a;_0x1049b9&&_0x1049b9[_0x450470('0x2319')]['length']>0x0&&(_0x42bb00[_0x450470('0x1ecd')]=_0x49cbdd()['first'](_0x1049b9[_0x450470('0x2319')])['endtime']);if(_0x488d64[_0x450470('0x1392')]){const _0x2f87de=_0x49cbdd()[_0x450470('0xe8e')](_0x488d64[_0x450470('0x1392')],function(_0x3fa7f8){const _0x51ec1c=_0x450470;return _0x3fa7f8[_0x51ec1c('0x35b')]===_0x42bb00[_0x51ec1c('0x35b')];});!_0x2f87de&&_0x488d64[_0x450470('0x1392')]['push'](_0x42bb00);}else _0x488d64[_0x450470('0x1392')]=[_0x42bb00];_0x5ce34f['currentTab']=_0x488d64['id'];});}else{if(_0x43b398[_0x59ba8a('0x7f8')])return _0x3d7e53['disposition'][_0x59ba8a('0x1c53')]({'ListId':_0x43b398[_0x59ba8a('0x7f8')]})['$promise'][_0x59ba8a('0x17e7')](function(_0x523cfd){const _0x4345cf=_0x59ba8a;return _0x39ac68[_0x4345cf('0x23fe')]=_0x523cfd,_0x3d7e53['cmList']['getCustomFields']({'id':_0x43b398[_0x4345cf('0x7f8')]})['$promise'];})['then'](function(_0x440227){_0x39ac68['customFields']=_0x440227;})[_0x59ba8a('0x16df')](_0xa86730())[_0x59ba8a('0x74e')](function(){_0x4095aa(_0x39ac68);});else _0x4095aa(_0x39ac68);}}else _0x4095aa(_0x39ac68);}function _0x434704(_0x1b2c06,_0x44eb2e){const _0x465d90=_0x432cf3;let _0x2b682f=_0x49cbdd()[_0x465d90('0xe8e')](_0x5ce34f[_0x465d90('0x3b7')],function(_0x346c2e){const _0xb41ede=_0x465d90;return _0x346c2e[_0xb41ede('0x412')]===_0xb41ede('0x1219')&&_0x346c2e[_0xb41ede('0x1219')]&&_0x346c2e[_0xb41ede('0x1219')]['id']===_0x44eb2e['id']&&_0x346c2e['channel']===_0x1b2c06;});_0x2b682f?(_0x2b682f[_0x465d90('0x1099')]=_0x44eb2e[_0x465d90('0x1099')]||![],_0x5ce34f[_0x465d90('0x434')]=_0x2b682f['id']):(_0x2b682f={'type':'interaction','title':_0x1b2c06?_0x1b2c06[_0x465d90('0x14e2')]():_0x465d90('0x1508'),'icon':_0x44d3e6(_0x1b2c06),'color':_0x1d4289(_0x1b2c06),'channel':_0x1b2c06,'interaction':_0x44eb2e,'isDraft':_0x44eb2e['isDraft']||![]},_0x4095aa(_0x2b682f));}function _0x14bf61(_0x388193){const _0x544616=_0x432cf3,_0x3763c5={'autoClose':!![],'duration':0xa,'showOnPageHidden':!![],'icon':_0x544616('0x6aa'),'body':_0x388193['queue']?_0x544616('0xafc')+_0x388193['queue']:'','focusOnclick':!![],'closeOnClick':!![]};_0x30ef9b[_0x544616('0x28e2')](_0x388193[_0x544616('0x24d3')],_0x3763c5);}function _0x487feb(_0x507c0e){const _0x17118a=_0x432cf3;_0x30ef9b[_0x17118a('0xda1')]()?_0x30ef9b[_0x17118a('0x1073')]()[_0x17118a('0x17e7')](function(){_0x14bf61(_0x507c0e);},function(_0x28b4d0){const _0x53e4a6=_0x17118a;console[_0x53e4a6('0x1db9')]('Please\x20enable\x20browser\x20notifications!',_0x28b4d0);}):console[_0x17118a('0x1db9')]('Browser\x20notifications\x20are\x20not\x20supported\x20by\x20the\x20browser.\x20Normal\x20notifications\x20will\x20be\x20used.');}function _0xe1b41f(_0x59b955){const _0x4c0cde=_0x432cf3;if(_0x59b955&&_0x59b955[_0x4c0cde('0x35b')]){_0x487feb(_0x59b955);const _0x219851=_0x302e4b(_0x59b955);if(_0x219851){if(_0x3d7e53[_0x59b955['channel']+_0x4c0cde('0x213')])return _0x5ce34f[_0x4c0cde('0x434')]!==_0x219851['id']&&(_0x219851['badges']+=0x1),_0x3d7e53[_0x59b955['channel']+_0x4c0cde('0x213')]['accept']({'id':_0x59b955['id'],'UserId':_0x5ce34f[_0x4c0cde('0x221e')]['id']})['$promise'][_0x4c0cde('0x16df')](_0xa86730());}else _0x12e78e[_0x4c0cde('0x1139')]({'title':_0x59b955[_0x4c0cde('0x24d3')],'msg':_0x59b955[_0x4c0cde('0xc83')]||'','showClose':![],'clickToClose':![],'timeout':![],'sound':_0x59b955['sound'],'html':!![],'shake':_0x59b955['shake']||![],'onAdd':function(){const _0x15f77b=_0x4c0cde;_0x5ce34f[_0x15f77b('0x870')][_0x59b955[_0x15f77b('0x35b')]]=this['id'];},'onAccept':function(){const _0x3d1c2f=_0x4c0cde;_0x390568(_0x59b955);if(_0x3d7e53[_0x59b955[_0x3d1c2f('0x15d7')]+_0x3d1c2f('0x213')])return _0x3d7e53[_0x59b955[_0x3d1c2f('0x15d7')]+_0x3d1c2f('0x213')][_0x3d1c2f('0x37')]({'id':_0x59b955['id'],'UserId':_0x5ce34f[_0x3d1c2f('0x221e')]['id'],'manual':!![]})[_0x3d1c2f('0x1af5')][_0x3d1c2f('0x17e7')](function(_0x1fc803){const _0x4b703c=_0x3d1c2f;_0x434704(_0x1fc803['channel'],_0x1fc803[_0x4b703c('0x1219')]),_0x12e78e[_0x4b703c('0x130d')]({'title':_0x4b703c('0x660'),'msg':_0x4b703c('0x1991')});})[_0x3d1c2f('0x16df')](_0xa86730());},'onReject':function(){const _0x1f5e77=_0x4c0cde;_0x390568(_0x59b955);if(_0x3d7e53[_0x59b955[_0x1f5e77('0x15d7')]+'Message'])return _0x3d7e53[_0x59b955[_0x1f5e77('0x15d7')]+'Message'][_0x1f5e77('0x1ad1')]({'id':_0x59b955['id'],'UserId':_0x5ce34f[_0x1f5e77('0x221e')]['id']})['$promise']['then'](function(){const _0x2384d6=_0x1f5e77;_0x12e78e['success']({'title':_0x2384d6('0x1e2b'),'msg':_0x2384d6('0x72a')});})['catch'](_0xa86730());}});}}function _0x390568(_0x29b28a){const _0x3fd93a=_0x432cf3;_0x29b28a&&_0x29b28a['uniqueid']&&(_0x5ce34f[_0x3fd93a('0x870')][_0x29b28a[_0x3fd93a('0x35b')]]&&(_0x12e78e[_0x3fd93a('0xdf')](_0x5ce34f[_0x3fd93a('0x870')][_0x29b28a[_0x3fd93a('0x35b')]]),delete _0x5ce34f[_0x3fd93a('0x870')][_0x29b28a[_0x3fd93a('0x35b')]]));}function _0xcae324(_0x4b37c6){const _0x19aebd=_0x432cf3;if(!_0x4b37c6['contacts']){_0x5b309a(_0x4b37c6['contact'],_0x4b37c6['evt']);return;}_0x41a921[_0x19aebd('0x28e2')]({'controller':_0x19aebd('0x1a68'),'controllerAs':'vm','templateUrl':_0x5bd54e,'parent':angular['element'](_0x4d402d[_0x19aebd('0x13aa')]),'locals':{'contacts':_0x4b37c6[_0x19aebd('0x2720')],'callNumber':_0x4b37c6[_0x19aebd('0x3e9')]['routeId']?_0x4b37c6[_0x19aebd('0x3e9')][_0x19aebd('0x205c')]:_0x4b37c6[_0x19aebd('0x3e9')][_0x19aebd('0x2202')]}})[_0x19aebd('0x17e7')](function(_0x49564e){const _0x336cf1=_0x19aebd;_0x5b309a(_0x49564e,_0x4b37c6[_0x336cf1('0x3e9')]);});}function _0xf94e5a(_0x14e2d8){const _0x571353=_0x432cf3;return _0x3d7e53[_0x571353('0x12fb')]['get']({'id':_0x14e2d8['ProjectId']})[_0x571353('0x1af5')][_0x571353('0x17e7')](function(_0x4a0e1f){const _0x106cae=_0x571353;if(_0x4a0e1f){if(_0x49cbdd()[_0x106cae('0x1a77')](_0x14e2d8['xmd-contactid'])){try{_0x4a0e1f[_0x106cae('0x13ef')]=_0x2b7e10()[_0x106cae('0xe05')](_0x4a0e1f['formData'],_0x49cbdd()[_0x106cae('0x1ced')](_0x14e2d8,{'user':_0x5ce34f['user']}));}catch(_0x59b48d){console[_0x106cae('0x1db9')](_0x59b48d);}_0x4095aa({'type':_0x106cae('0x2343'),'title':_0x4a0e1f[_0x106cae('0x2aa')],'icon':_0x106cae('0x1290'),'color':'grey','project':_0x4a0e1f,'call':_0x14e2d8});}else return _0x3d7e53[_0x106cae('0x1d2a')][_0x106cae('0x1c53')]({'id':_0x14e2d8['xmd-contactid']})['$promise']['then'](function(_0x1be803){const _0x31462f=_0x106cae;try{_0x4a0e1f[_0x31462f('0x13ef')]=_0x2b7e10()['render'](_0x4a0e1f[_0x31462f('0x13ef')],_0x49cbdd()[_0x31462f('0x1ced')](_0x14e2d8,{'user':_0x5ce34f[_0x31462f('0x221e')],'contact':_0x1be803}));}catch(_0x392c95){console['error'](_0x392c95);}_0x4095aa({'type':_0x31462f('0x2343'),'title':_0x4a0e1f['name'],'icon':_0x31462f('0x1290'),'color':_0x31462f('0x409'),'project':_0x4a0e1f,'call':_0x14e2d8,'contact':_0x1be803});})[_0x106cae('0x16df')](_0xa86730());}})[_0x571353('0x16df')](_0xa86730());}function _0x2f4445(_0x1e0943){const _0x23558c=_0x432cf3;if(_0x1e0943&&_0x1e0943[_0x23558c('0x2889')]){_0x1e0943['uri']=_0x49cbdd()[_0x23558c('0x737')](_0x1e0943[_0x23558c('0x2889')],_0x23558c('0x1ed3'),''),_0x1e0943[_0x23558c('0x2889')]=_0x49cbdd()['replace'](_0x1e0943['uri'],_0x23558c('0x2190'),'');if(_0x1e0943[_0x23558c('0x16b0')])switch(_0x1e0943[_0x23558c('0x16b0')]){case'0':_0x1af503[_0x23558c('0xd0d')](_0x1e0943[_0x23558c('0x2889')]);break;case'1':_0x1af503[_0x23558c('0xd0d')](_0x1e0943['uri'],_0x23558c('0x1c7'),'width='+(_0x1e0943[_0x23558c('0x7ce')]||_0x23558c('0x2349'))+_0x23558c('0x9fd')+_0x1e0943[_0x23558c('0x508')]||0x0);break;case'2':{const _0x569cfc={'type':_0x23558c('0x8ad'),'title':_0x1e0943[_0x23558c('0x2889')],'icon':_0x23558c('0x2584'),'color':'blue','src':_0x1e0943[_0x23558c('0x2889')]};_0x4095aa(_0x569cfc);}break;default:_0x1af503['open'](_0x1e0943[_0x23558c('0x2889')]);}else _0x1af503['open'](_0x1e0943[_0x23558c('0x2889')]);}}function _0x465bdc(_0xed78a1){const _0x3a858a=_0x432cf3;_0xed78a1&&_0xed78a1[_0x3a858a('0x19b6')]&&_0x4095aa({'type':_0x3a858a('0x1f1b'),'title':_0xed78a1[_0x3a858a('0x2202')]||_0x3a858a('0x1f1b'),'icon':_0x3a858a('0x1cc5'),'color':_0x3a858a('0x409'),'html':_0xed78a1[_0x3a858a('0x19b6')]});}function _0x1c2fed(_0x1d0ee6){const _0x3bfac8=_0x432cf3,_0x3a497b=_0x1d0ee6[_0x3bfac8('0x2400')]&&_0x1d0ee6['calleridname']!==_0x3bfac8('0x233')?_0x1d0ee6[_0x3bfac8('0x2400')]:_0x1d0ee6[_0x3bfac8('0x2202')],_0x23133f=_0x1d0ee6[_0x3bfac8('0x2202')];return _0x3d7e53['squareMessage']['get']({'fields':'id','limit':0x1,'offset':0x0,'uniqueid':_0x1d0ee6[_0x3bfac8('0x35b')]})[_0x3bfac8('0x1af5')]['then'](function(_0x5ed8e9){const _0x2b7573=_0x3bfac8;_0x5ed8e9[_0x2b7573('0x335')]&&_0x4095aa({'type':_0x2b7573('0x16f1'),'title':_0x3a497b+'\x20<'+_0x23133f+'>','icon':_0x2b7573('0x255d'),'color':_0x2b7573('0x2725'),'data':{'uniqueid':_0x1d0ee6[_0x2b7573('0x35b')]}});});}function _0xbbf57a(_0x25001c){const _0x2e8712=_0x432cf3;console['debug'](_0x2e8712('0x5b4'),_0x25001c);for(const _0x33a64d in _0x5ce34f['tabs']){if(typeof _0x5ce34f[_0x2e8712('0x3b7')][_0x33a64d]!==_0x2e8712('0xfad')){const _0x2eed65=_0x5ce34f[_0x2e8712('0x3b7')][_0x33a64d];if(_0x2eed65[_0x2e8712('0x1392')]){console[_0x2e8712('0xbe2')](_0x2e8712('0x11a1'),_0x33a64d,_0x2eed65,_0x2eed65[_0x2e8712('0x1392')]);const _0x2c2fb6=_0x49cbdd()['findIndex'](_0x2eed65[_0x2e8712('0x1392')],function(_0x7fcabf){const _0x2e670e=_0x2e8712;return _0x7fcabf[_0x2e670e('0x35b')]===_0x25001c['uniqueid'];});_0x2c2fb6>=0x0&&!_0x2eed65['calls'][_0x2c2fb6][_0x2e8712('0x1ecd')]?(console[_0x2e8712('0xbe2')](_0x2e8712('0x241f'),_0x25001c[_0x2e8712('0x35b')]),_0x1e4f7c(_0x2eed65[_0x2e8712('0x1392')][_0x2c2fb6])):console[_0x2e8712('0xbe2')](_0x2e8712('0x1ffd'),_0x25001c[_0x2e8712('0x35b')]),_0x5ce34f['contact']&&_0x5ce34f[_0x2e8712('0x1c58')]['id']&&_0x592806(_0x2c430b(_0x25001c[_0x2e8712('0x35b')],_0x5ce34f[_0x2e8712('0x1c58')]['id'],_0x2eed65),0x3e8);}}}_0x4d1c35();}function _0x2c430b(_0x35f917,_0x536c54,_0x25ca52){return function(){const _0x15f8d6=a0_0xd29e,_0x137c7b=_0x49cbdd()[_0x15f8d6('0xe8e')](_0x25ca52[_0x15f8d6('0x1392')],function(_0x272705){const _0x1d7202=_0x15f8d6;return _0x272705[_0x1d7202('0x35b')]===_0x35f917;});if(_0x137c7b)return _0x3d7e53[_0x15f8d6('0xf5')][_0x15f8d6('0x27ba')]({'id':_0x35f917,'ContactId':_0x536c54})[_0x15f8d6('0x1af5')][_0x15f8d6('0x16df')](function(_0x16f010){console['error'](_0x16f010);});};}function _0x1e4f7c(_0x416633){const _0x526427=_0x432cf3;_0x416633[_0x526427('0x1ecd')]=new Date();}function _0xa86730(){return function(_0x204948){const _0x4fca08=a0_0xd29e;if(_0x204948[_0x4fca08('0x11c5')]===0x194)_0x12e78e[_0x4fca08('0xc86')]({'title':_0x4c29c9['instant'](_0x4fca08('0x22e1')),'msg':_0x4c29c9['instant'](_0x4fca08('0x701'))});else{if(_0x204948[_0x4fca08('0x1457')]&&_0x204948[_0x4fca08('0x1457')]['errors']&&_0x204948[_0x4fca08('0x1457')][_0x4fca08('0x73e')][_0x4fca08('0x1f73')]){_0x5ce34f['errors']=_0x204948[_0x4fca08('0x1457')][_0x4fca08('0x73e')]||[{'message':_0x204948[_0x4fca08('0x9b6')](),'type':_0x4fca08('0x21db')}];for(let _0x4473c8=0x0;_0x4473c8<_0x204948[_0x4fca08('0x1457')][_0x4fca08('0x73e')][_0x4fca08('0x1f73')];_0x4473c8+=0x1){_0x12e78e[_0x4fca08('0x1db9')]({'title':_0x204948[_0x4fca08('0x1457')]['errors'][_0x4473c8][_0x4fca08('0x412')],'msg':_0x204948[_0x4fca08('0x1457')]['errors'][_0x4473c8][_0x4fca08('0x1603')]});}}else _0x12e78e[_0x4fca08('0x1db9')]({'title':_0x204948[_0x4fca08('0x11c5')]?'API:'+_0x204948['status']+'\x20-\x20'+_0x204948[_0x4fca08('0x1833')]:_0x4fca08('0x21db'),'msg':_0x204948[_0x4fca08('0x1457')]?JSON['stringify'](_0x204948[_0x4fca08('0x1457')][_0x4fca08('0x1603')]):_0x204948[_0x4fca08('0x9b6')]()});}};}_0x495888['$on'](_0x432cf3('0x2b4'),function(){const _0xeffeda=_0x432cf3;for(const _0x3d5929 in _0x5ce34f[_0xeffeda('0x870')]){typeof _0x5ce34f[_0xeffeda('0x870')][_0x3d5929]!==_0xeffeda('0xfad')&&_0x390568({'uniqueid':_0x3d5929});}_0xa96284[_0xeffeda('0x1c65')](_0xeffeda('0x348')),_0xa96284[_0xeffeda('0x1c65')](_0xeffeda('0x745')),_0xa96284['removeAllListeners'](_0xeffeda('0x270e')),_0xa96284[_0xeffeda('0x1c65')](_0xeffeda('0x23d4')),_0xa96284[_0xeffeda('0x1c65')](_0xeffeda('0x1a9e')),_0xa96284['removeAllListeners'](_0xeffeda('0x741')),_0xa96284[_0xeffeda('0x1c65')](_0xeffeda('0x22d1')),_0xa96284[_0xeffeda('0x1c65')](_0xeffeda('0x2869'));});}function _0x1ce22e(_0x5ad83a,_0x18860d,_0xb0861f,_0x3b7216){const _0x453700=_0x4376d8,_0x15e3b4={};let _0x4dd471={},_0x42f04c={},_0x13bbdd={};_0x15e3b4[_0x453700('0x161d')]=function(){_0x15e3b4['drafts']=_0x4cf3db();},_0x15e3b4[_0x453700('0x5cc')]=function(_0x400aaa){const _0xd54c01=_0x453700;return _0x15e3b4['drafts']=_0x4cf3db(),_0x49cbdd()[_0xd54c01('0xe8e')](_0x49cbdd()['values'](_0x15e3b4[_0xd54c01('0x10c')]),function(_0x248f07){const _0x3024e4=_0xd54c01;return _0x248f07[_0x3024e4('0x1219')]&&_0x248f07['interaction']['id']===_0x400aaa;});},_0x15e3b4[_0x453700('0x202c')]=function(_0x388590){const _0x51b012=_0x453700;_0x15e3b4[_0x51b012('0x10c')]=_0x4cf3db();const _0x100e99=_0x49cbdd()[_0x51b012('0xe8e')](_0x49cbdd()['values'](_0x15e3b4[_0x51b012('0x10c')]),function(_0x137a23){const _0x1ba0bd=_0x51b012;return _0x137a23[_0x1ba0bd('0x1219')]&&_0x137a23[_0x1ba0bd('0x1219')]['id']===_0x388590;});_0x100e99&&(delete _0x15e3b4[_0x51b012('0x10c')][_0x100e99['id']],_0x19db90());},_0x15e3b4[_0x453700('0xd62')]=function(_0x2a15b0){const _0x2ef7b5=_0x453700;_0x15e3b4[_0x2ef7b5('0x10c')]=_0x4cf3db();let _0x13256a=_0x18860d[_0x2ef7b5('0x1acc')]('DASHBOARDS.UNTITLED');if(_0x2a15b0[_0x2ef7b5('0x1c58')])_0x13256a=_0x2a15b0[_0x2ef7b5('0x1c58')][_0x2ef7b5('0x1761')]||_0x2a15b0[_0x2ef7b5('0x1c58')][_0x2ef7b5('0x822')];else!_0x49cbdd()['isEmpty'](_0x2a15b0['message'][_0x2ef7b5('0x2179')])&&(_0x13256a=_0x2a15b0[_0x2ef7b5('0x1603')]['subject']);const _0x142cf6={'type':_0x2ef7b5('0x283b'),'title':_0x2a15b0[_0x2ef7b5('0x2679')][_0x2ef7b5('0xdb5')]+'\x20-\x20'+_0x13256a,'channel':_0x2a15b0[_0x2ef7b5('0x15d7')],'content':_0x2a15b0[_0x2ef7b5('0x1603')],'account':_0x2a15b0[_0x2ef7b5('0x2679')],'interaction':_0x2a15b0[_0x2ef7b5('0x1219')],'id':_0x49cbdd()['random'](0x2540be400),'openedAt':new Date(),'saved':![]};_0x15e3b4[_0x2ef7b5('0x10c')][_0x142cf6['id']]=_0x142cf6,_0x19db90();},_0x15e3b4['update']=function(_0x14a529){const _0x57b07c=_0x453700;_0x15e3b4[_0x57b07c('0x10c')]=_0x4cf3db();const _0x9d2d8=_0x15e3b4[_0x57b07c('0x10c')][_0x14a529['id']];_0x9d2d8&&(_0x9d2d8['content']=_0x14a529['message'],_0x15e3b4[_0x57b07c('0x10c')][_0x14a529['id']]=_0x9d2d8,_0x19db90());},_0x15e3b4['open']=function(_0x450522){const _0x2cfa55=_0x453700;_0x15e3b4[_0x2cfa55('0x10c')]=_0x4cf3db();const _0x1d6b71=_0x15e3b4['drafts'][_0x450522];_0x1d6b71&&_0x5ad83a['$broadcast'](_0x2cfa55('0xd0d')+_0x49cbdd()['startCase'](_0x42f04c)+_0x2cfa55('0x10c6'),_0x1d6b71);},_0x15e3b4[_0x453700('0x5f3')]=function(_0x1dbb9e){const _0x170c30=_0x453700;_0x15e3b4[_0x170c30('0x10c')]=_0x4cf3db(),_0x15e3b4[_0x170c30('0x10c')][_0x1dbb9e]&&(delete _0x15e3b4['drafts'][_0x1dbb9e],_0x19db90());};function _0x4cf3db(){const _0x1db3b0=_0x453700;_0x4dd471=_0x3b7216[_0x1db3b0('0x2831')]();const _0x3551a3=_0xb0861f[_0x1db3b0('0x1a93')][_0x1db3b0('0x3b8')](_0x1db3b0('0xd37')+_0x4dd471['id']);_0x3551a3?_0x42f04c=JSON[_0x1db3b0('0x1f0a')](_0x3551a3)['currentSidebarTab']:_0x42f04c=_0x1db3b0('0x40f');_0x13bbdd=_0xb0861f[_0x1db3b0('0x1a93')][_0x1db3b0('0x3b8')](_0x1db3b0('0x876')+_0x42f04c+':'+_0x4dd471['id']);if(_0x13bbdd){const _0x1299af=JSON[_0x1db3b0('0x1f0a')](_0x13bbdd);!_0x1299af[_0x1db3b0('0x10c')]&&(_0x1299af[_0x1db3b0('0x10c')]={}),_0x13bbdd=_0x1299af;}else _0x13bbdd={'drafts':{}};return _0x13bbdd['drafts'];}function _0x19db90(){const _0x1648e8=_0x453700;_0x49cbdd()[_0x1648e8('0x109a')](_0x15e3b4['drafts'])?delete _0x13bbdd['drafts']:_0x13bbdd[_0x1648e8('0x10c')]=_0x15e3b4['drafts'],_0xb0861f[_0x1648e8('0x1a93')]['setItem'](_0x1648e8('0x876')+_0x42f04c+':'+_0x4dd471['id'],JSON['stringify'](_0x13bbdd));}return _0x15e3b4;}function _0x3662c0(){const _0x57de88=_0x4376d8,_0xe97423={'autoClose':!![],'duration':0x5,'showOnPageHidden':![]};return{'config':_0x44f933,'$get':['$q',_0x57de88('0xef1'),_0x57de88('0x198f'),_0x57de88('0x206d'),_0x253fac]};function _0x44f933(_0x30b551){const _0x58df97=_0x57de88;for(const _0x18033c in _0x30b551){typeof _0xe97423[_0x18033c]!=='undefined'&&typeof _0x30b551[_0x18033c]!==_0x58df97('0xfad')&&(_0xe97423[_0x18033c]=_0x30b551[_0x18033c]);}}function _0x253fac(_0x261cf5,_0x4d5605,_0x234698,_0x4d37d7){const _0x45917a=_0x57de88,_0x13eb2a=_0x234698[_0x45917a('0x1608')]||_0x234698[_0x45917a('0x165f')]||_0x234698['webkitNotification'],_0x1adfbb={'isSupported':_0x4be6b1,'currentPermission':_0xe8a513,'requestPermission':_0x390cb8,'show':_0x1ffcbd,'permissions':{'default':_0x4d37d7[_0x45917a('0x20f2')],'granted':_0x4d37d7['GRANTED'],'denied':_0x4d37d7[_0x45917a('0xbe9')]}};return _0x1adfbb;function _0x4be6b1(){const _0x2359a4=_0x45917a;return!(typeof _0x13eb2a===_0x2359a4('0xfad'));}function _0xe8a513(){return(_0x13eb2a||{})['permission'];}function _0x390cb8(){const _0x19ed18=_0x45917a;if(!_0x4be6b1())return _0x261cf5[_0x19ed18('0x1ad1')](_0x19ed18('0x1a2'));const _0x15bad5=_0x261cf5[_0x19ed18('0x113c')]();return Promise[_0x19ed18('0x898')](_0x13eb2a[_0x19ed18('0x1073')])==_0x13eb2a[_0x19ed18('0x1073')]?_0x13eb2a[_0x19ed18('0x1073')]()[_0x19ed18('0x17e7')](function(_0x7355e3){const _0x3c547f=_0x19ed18;_0x4d37d7[_0x3c547f('0x692')]===_0x7355e3?_0x15bad5[_0x3c547f('0x898')](_0x7355e3):_0x15bad5['reject'](_0x7355e3);}):_0x13eb2a[_0x19ed18('0x1073')](function(_0x25132f){const _0x440d07=_0x19ed18;_0x4d37d7[_0x440d07('0x692')]===_0x25132f?_0x15bad5['resolve'](_0x25132f):_0x15bad5[_0x440d07('0x1ad1')](_0x25132f);}),_0x15bad5[_0x19ed18('0x1691')];}function _0x1ffcbd(_0x49d8a5,_0x8f1ec9){const _0x373458=_0x45917a;_0x8f1ec9=_0x8f1ec9||{};if(!_0x4be6b1()||!_0x4f7f04(_0x49d8a5,_0x8f1ec9)||_0x182949(_0x8f1ec9['showOnPageHidden'])||_0xe8a513()!==_0x4d37d7[_0x373458('0x692')])return;const _0x5f193b=new _0x13eb2a(_0x49d8a5,_0x8f1ec9),_0x4e1987=_0x8f1ec9[_0x373458('0x1776')]||_0xe97423[_0x373458('0x1776')],_0x401b0c=_0x8f1ec9[_0x373458('0x1a0e')]===undefined?_0xe97423[_0x373458('0x1a0e')]:_0x8f1ec9[_0x373458('0x1a0e')];_0x5f193b[_0x373458('0x1db6')]=function(){const _0x3c0068=_0x373458;_0x8f1ec9['onClick']&&_0x8f1ec9[_0x3c0068('0xe58')](),_0x8f1ec9[_0x3c0068('0x6bf')]&&window[_0x3c0068('0x1d4f')](),_0x8f1ec9[_0x3c0068('0x868')]&&_0x5f193b['close']();};if(_0x401b0c)_0x31d426(_0x5f193b,_0x4e1987);return _0x5f193b;}function _0x4f7f04(_0x10d0a3,_0x50a180){const _0x2739b6=_0x45917a,_0x4299dc=angular['isString'](_0x10d0a3),_0x51a6f3=!_0x50a180[_0x2739b6('0xe58')]||angular['isFunction'](_0x50a180[_0x2739b6('0xe58')]);return _0x4299dc&&_0x51a6f3;}function _0x182949(_0x23aa41){const _0x4ef3ba=_0x45917a;if(!_0x23aa41&&!_0xe97423[_0x4ef3ba('0x1566')])return;return!(window['document'][_0x4ef3ba('0x5c')]||window[_0x4ef3ba('0x2be')][_0x4ef3ba('0x1910')]||window[_0x4ef3ba('0x2be')][_0x4ef3ba('0x1feb')]);}function _0x31d426(_0x59493e,_0x3b582d){const _0xf70632=_0x45917a,_0x4da813=_0x3b582d*0x3e8;_0x4d5605(_0x59493e[_0xf70632('0xbc9')][_0xf70632('0x22d5')](_0x59493e),_0x4da813,![]);}}}function _0x26d7ab(){const _0x5bec7e=_0x4376d8,_0x5b25bb=angular[_0x5bec7e('0x1f12')](['ng'])[_0x5bec7e('0x1c53')](_0x5bec7e('0x1e5b')),_0x2d80e3=[],_0x18a62c=this;_0x18a62c[_0x5bec7e('0x1321')]=_0x58e5cb,_0x18a62c[_0x5bec7e('0x1350')]=_0x255ae9;function _0x58e5cb(_0x4f2a46,_0x522bac){const _0xe4ee78=_0x5bec7e;if(!angular[_0xe4ee78('0x278d')](_0x4f2a46)){_0x5b25bb[_0xe4ee78('0x1db9')](_0xe4ee78('0x1b18'));return;}const _0x382ba2=_0x4f2a46[_0xe4ee78('0x2007')]('.'),_0xdaf8aa=_0x382ba2[_0x382ba2[_0xe4ee78('0x1f73')]-0x1],_0xb12d34=_0x487a18(_0x382ba2);let _0x586f78=![];for(let _0x118918=0x0;_0x118918<_0xb12d34[_0xe4ee78('0x1f73')];_0x118918++){if(_0xb12d34[_0x118918][_0xe4ee78('0x786')]===_0xdaf8aa){_0x586f78=_0xb12d34[_0x118918];break;}}_0x586f78?(angular['extend'](_0x586f78,_0x522bac),_0x586f78[_0xe4ee78('0x2769')]=_0xa6740a(_0x586f78)):(_0x522bac[_0xe4ee78('0x2857')]=[],(angular[_0xe4ee78('0x1a77')](_0x522bac[_0xe4ee78('0x23f2')])||!angular[_0xe4ee78('0x1a8b')](_0x522bac[_0xe4ee78('0x23f2')]))&&(_0x522bac[_0xe4ee78('0x23f2')]=0x1),_0x522bac[_0xe4ee78('0x786')]=_0xdaf8aa,_0x522bac['_path']=_0x4f2a46,_0x522bac[_0xe4ee78('0x2769')]=_0xa6740a(_0x522bac),_0xb12d34[_0xe4ee78('0x269f')](_0x522bac));}function _0x255ae9(_0x96d78a){const _0x8c21dc=_0x5bec7e;if(!angular[_0x8c21dc('0x278d')](_0x96d78a)){_0x5b25bb[_0x8c21dc('0x1db9')](_0x8c21dc('0x1b18'));return;}let _0x390691=_0x2d80e3;const _0x55d741=_0x96d78a[_0x8c21dc('0x2007')]('.');for(let _0x4cf930=0x0;_0x4cf930<_0x55d741[_0x8c21dc('0x1f73')];_0x4cf930++){const _0x4c0700=_0x55d741[_0x4cf930];for(let _0x9104a2=0x0;_0x9104a2<_0x390691[_0x8c21dc('0x1f73')];_0x9104a2++){if(_0x390691[_0x9104a2][_0x8c21dc('0x786')]===_0x4c0700){if(_0x390691[_0x9104a2][_0x8c21dc('0x29')]===_0x96d78a)return _0x390691[_0x8c21dc('0x2335')](_0x9104a2,0x1),!![];_0x390691=_0x390691[_0x9104a2][_0x8c21dc('0x2857')];break;}}}return![];}function _0x487a18(_0x1d74c5){const _0x48799e=_0x5bec7e;let _0x3ec83d=_0x2d80e3;if(_0x1d74c5[_0x48799e('0x1f73')]===0x1)return _0x3ec83d;_0x1d74c5[_0x48799e('0xbbc')]();for(let _0x31348a=0x0;_0x31348a<_0x1d74c5[_0x48799e('0x1f73')];_0x31348a++){const _0x318282=_0x1d74c5[_0x31348a];let _0x550139=!![];for(let _0x4de01a=0x0;_0x4de01a<_0x3ec83d[_0x48799e('0x1f73')];_0x4de01a++){if(_0x3ec83d[_0x4de01a][_0x48799e('0x786')]===_0x318282){_0x3ec83d=_0x3ec83d[_0x4de01a][_0x48799e('0x2857')],_0x550139=![];break;}}if(_0x550139){const _0x4b2529={'_id':_0x318282,'_path':_0x1d74c5['join']('.'),'title':_0x318282,'weight':0x1,'children':[]};_0x3ec83d[_0x48799e('0x269f')](_0x4b2529),_0x3ec83d=_0x4b2529[_0x48799e('0x2857')];}}return _0x3ec83d;}function _0xa6740a(_0x128125){const _0x22ccf0=_0x5bec7e;let _0x11584a='';return angular[_0x22ccf0('0x170a')](_0x128125['state'])&&(_0x11584a=_0x128125['state'],angular[_0x22ccf0('0x170a')](_0x128125[_0x22ccf0('0x247e')])&&angular[_0x22ccf0('0xfd1')](_0x128125['stateParams'])&&(_0x11584a=_0x11584a+'('+angular[_0x22ccf0('0x1d04')](_0x128125[_0x22ccf0('0x247e')])+')')),_0x11584a;}this[_0x5bec7e('0x50d')]=function(){const _0x414f61={'saveItem':_0x58e5cb,'getNavigation':_0x358875};return _0x414f61;function _0x358875(_0xadb456){const _0x96d924=a0_0xd29e;if(_0xadb456){for(let _0x41563c=0x0;_0x41563c<_0x2d80e3[_0x96d924('0x1f73')];_0x41563c++){if(_0x2d80e3[_0x41563c][_0x96d924('0x786')]===_0xadb456)return[_0x2d80e3[_0x41563c]];}return null;}return _0x2d80e3;}};}const _0x1ff8f5={'DEFAULT':_0x4376d8('0x1543'),'GRANTED':_0x4376d8('0x240b'),'DENIED':_0x4376d8('0xada')};_0x96e763[_0x4376d8('0x1b9c')]=[_0x4376d8('0x212e')];function _0x96e763(_0xfb9281){const _0x3504ad=_0x4376d8,_0x38cdd7=this;_0x38cdd7[_0x3504ad('0x1aeb')]={},_0x38cdd7[_0x3504ad('0xdd9')]={'count':0x0,'rows':[]},_0x38cdd7[_0x3504ad('0x2375')]=![];function _0x566428(_0x4836ce,_0x4f923f){const _0x57af9f=_0x3504ad;_0x38cdd7[_0x57af9f('0x1aeb')]=_0x4f923f,_0x38cdd7['tab']=_0x4836ce,_0x38cdd7[_0x57af9f('0x1523')][_0x57af9f('0x51d')]=!![];if(_0x38cdd7[_0x57af9f('0x1523')]&&_0x38cdd7[_0x57af9f('0x1523')][_0x57af9f('0x1457')]&&_0x38cdd7['tab'][_0x57af9f('0x1457')][_0x57af9f('0x35b')])return _0xfb9281[_0x57af9f('0x2688')][_0x57af9f('0x1c53')]({'uniqueid':_0x38cdd7[_0x57af9f('0x1523')][_0x57af9f('0x1457')][_0x57af9f('0x35b')]})['$promise']['then'](function(_0x394fd2){const _0x602566=_0x57af9f;_0x38cdd7[_0x602566('0xdd9')]=_0x394fd2;})['finally'](function(){const _0x8c1e4b=_0x57af9f;_0x38cdd7[_0x8c1e4b('0x2375')]=!![];});else _0x38cdd7[_0x57af9f('0x2375')]=!![];}function _0x2a724e(_0x152aa1){const _0x2c80e7=_0x3504ad;switch(_0x38cdd7[_0x2c80e7('0x1aeb')][_0x2c80e7('0x28b6')]){case'left':if(_0x152aa1[_0x2c80e7('0x733')]=='in')return _0x152aa1[_0x2c80e7('0x733')];return _0x2c80e7('0x22e0');case _0x2c80e7('0x220c'):if(_0x152aa1['direction']=='in')return'in-right-aligned';return _0x152aa1[_0x2c80e7('0x733')];default:return _0x152aa1[_0x2c80e7('0x733')];}}_0x38cdd7['init']=_0x566428,_0x38cdd7[_0x3504ad('0x76f')]=_0x2a724e;}const _0x280fee=_0x96e763,_0x141b55=_0x4cf2bc['p']+_0x4376d8('0xd5c'),_0x86be6d=_0x4cf2bc['p']+_0x4376d8('0xebb'),_0x14890a=_0x4cf2bc['p']+_0x4376d8('0xf41'),_0x58ae6b=_0x4cf2bc['p']+_0x4376d8('0x1afa'),_0x334531=_0x4cf2bc['p']+_0x4376d8('0x1217'),_0xbfa572=_0x4cf2bc['p']+_0x4376d8('0x2298'),_0x2dfbc2=_0x4cf2bc['p']+_0x4376d8('0x1a16'),_0x31690b=_0x4cf2bc['p']+_0x4376d8('0x1fe4');_0x154fa9['$inject']=[_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$scope','$q',_0x4376d8('0x212e'),'toasty','Auth','$translate',_0x4376d8('0x1606')];const _0x59a53b={'fax':_0x58ae6b,'mail':_0x334531,'openchannel':_0xbfa572,'sms':_0x2dfbc2,'whatsapp':_0x31690b};function _0x154fa9(_0xd7c32b,_0x5e3f5f,_0x470e19,_0x36b307,_0x11599f,_0x287f48,_0x56b179,_0x2ab35b,_0x48e4a0,_0x56d985){const _0x870c5c=_0x4376d8,_0x443ef0=this;_0x443ef0['user']=_0x2ab35b[_0x870c5c('0x2831')](),_0x443ef0[_0x870c5c('0x2208')]=_0x56d985[_0x870c5c('0x2208')](),_0x443ef0[_0x870c5c('0x128e')]=[],_0x443ef0[_0x870c5c('0x161b')]={'fields':'id,phone,scheduledat','sort':_0x870c5c('0x1ac6'),'limit':0xa,'page':0x1},_0x443ef0['queryFinal']={'fields':_0x870c5c('0x2060'),'sort':_0x870c5c('0x1ac6'),'limit':0xa,'page':0x1},_0x443ef0['queryHistory']={'fields':'uniqueid,calleridnum,statedesc,scheduledat,starttime,endtime','sort':_0x870c5c('0x1ac6'),'limit':0xa,'page':0x1},_0x443ef0[_0x870c5c('0xf70')]={'rows':[],'count':0x0},_0x443ef0['finals']={'rows':[],'count':0x0},_0x443ef0[_0x870c5c('0x4f9')]={'rows':[],'count':0x0},_0x443ef0[_0x870c5c('0xa08')]=new Date(_0x107a13()()[_0x870c5c('0x161c')](_0x870c5c('0x7c7'))['subtract'](0x1,_0x870c5c('0x2415'))[_0x870c5c('0x1376')](0x0,!![])[_0x870c5c('0x1c0d')]()),_0x443ef0[_0x870c5c('0x266c')]=new Date(_0x107a13()()['endOf'](_0x870c5c('0x7c7'))['subtract'](0x1,_0x870c5c('0x26d6'))[_0x870c5c('0x1376')](0x0,!![])[_0x870c5c('0x1c0d')]()),_0x443ef0['addNewContact']=_0x49357a,_0x443ef0['saveContact']=_0x2e5944,_0x443ef0['getCustomFields']=_0xf07ed2,_0x443ef0['call']=_0x36b307[_0x870c5c('0x178c')]['vm']['call'],_0x443ef0['disposeCall']=_0x4376db,_0x443ef0[_0x870c5c('0x1eb5')]=_0x24ecf6,_0x443ef0[_0x870c5c('0x1355')]=_0xed3dcc,_0x443ef0[_0x870c5c('0x1300')]=_0x59e475,_0x443ef0[_0x870c5c('0x8a0')]=_0x19ed33,_0x443ef0['getHoppers']=_0x42f1aa,_0x443ef0['getFinals']=_0x501aea,_0x443ef0[_0x870c5c('0x2474')]=_0x2d2533,_0x443ef0[_0x870c5c('0x15d6')]=_0x588519,_0x443ef0[_0x870c5c('0x21d8')]=_0xce173e,_0x443ef0['getFaxAccounts']=_0x368646,_0x443ef0[_0x870c5c('0x24c')]=_0x2c47e6,_0x443ef0[_0x870c5c('0x79c')]=_0x4d3b19,_0x443ef0[_0x870c5c('0x2532')]=_0x546e77,_0x443ef0[_0x870c5c('0x8fc')]=_0x2cfae0,_0x443ef0[_0x870c5c('0x852')]=_0x39325f,_0x443ef0['composeInteraction']=_0x4dd05d,_0x443ef0['init']=_0x55f87a,_0x443ef0[_0x870c5c('0xf51')]=_0x82ffa1,_0x443ef0['openInteraction']=_0x3b4211,_0x443ef0[_0x870c5c('0x1e24')]=_0x12d154,_0x443ef0[_0x870c5c('0x11fb')]=_0x4ba373,_0x443ef0[_0x870c5c('0x15d6')]();function _0x4ba373(_0x8c2cb0){const _0x1b9bee=_0x870c5c;if(_0x8c2cb0[_0x1b9bee('0x24f9')])return _0x49cbdd()[_0x1b9bee('0x24b0')](_0x49cbdd()[_0x1b9bee('0x787')](_0x443ef0[_0x1b9bee('0xec4')]?_0x443ef0['faxAccounts'][_0x1b9bee('0x2319')]:[],'id'),_0x8c2cb0[_0x1b9bee('0x24f9')]);else{if(_0x8c2cb0[_0x1b9bee('0x1969')])return _0x49cbdd()[_0x1b9bee('0x24b0')](_0x49cbdd()[_0x1b9bee('0x787')](_0x443ef0['openchannelAccounts']?_0x443ef0[_0x1b9bee('0x1408')]['rows']:[],'id'),_0x8c2cb0[_0x1b9bee('0x1969')]);else{if(_0x8c2cb0[_0x1b9bee('0x17fe')])return _0x49cbdd()[_0x1b9bee('0x24b0')](_0x49cbdd()[_0x1b9bee('0x787')](_0x443ef0['smsAccounts']?_0x443ef0['smsAccounts'][_0x1b9bee('0x2319')]:[],'id'),_0x8c2cb0[_0x1b9bee('0x17fe')]);else{if(_0x8c2cb0[_0x1b9bee('0x10d7')])return _0x49cbdd()[_0x1b9bee('0x24b0')](_0x49cbdd()[_0x1b9bee('0x787')](_0x443ef0[_0x1b9bee('0x58b')]?_0x443ef0['whatsappAccounts'][_0x1b9bee('0x2319')]:[],'id'),_0x8c2cb0['WhatsappAccountId']);else{if(_0x8c2cb0['MailAccountId'])return _0x49cbdd()[_0x1b9bee('0x24b0')](_0x49cbdd()[_0x1b9bee('0x787')](_0x443ef0[_0x1b9bee('0x3d9')]?_0x443ef0[_0x1b9bee('0x3d9')][_0x1b9bee('0x2319')]:[],'id'),_0x8c2cb0[_0x1b9bee('0xbda')]);else{if(_0x8c2cb0['ChatWebsiteId'])return _0x49cbdd()[_0x1b9bee('0x24b0')](_0x49cbdd()[_0x1b9bee('0x787')](_0x443ef0['chatAccounts']?_0x443ef0[_0x1b9bee('0x24cd')][_0x1b9bee('0x2319')]:[],'id'),_0x8c2cb0['ChatWebsiteId']);else{if(_0x8c2cb0[_0x1b9bee('0x21cc')])return!![];}}}}}}return![];}function _0x3b4211(_0x41ea3c,_0x341037){const _0x4a2bfe=_0x870c5c;try{if(_0x341037['MailAccountId'])return _0x36b307[_0x4a2bfe('0x178c')][_0x4a2bfe('0x178c')]['$parent']['vm'][_0x4a2bfe('0x3a2')]('mail',_0x341037);else{if(_0x341037['ChatWebsiteId'])return _0x36b307[_0x4a2bfe('0x178c')][_0x4a2bfe('0x178c')][_0x4a2bfe('0x178c')]['vm'][_0x4a2bfe('0x3a2')](_0x4a2bfe('0x2219'),_0x341037);else{if(_0x341037['SmsAccountId'])return _0x36b307[_0x4a2bfe('0x178c')][_0x4a2bfe('0x178c')]['$parent']['vm'][_0x4a2bfe('0x3a2')]('sms',_0x341037);else{if(_0x341037[_0x4a2bfe('0x10d7')])return _0x36b307[_0x4a2bfe('0x178c')][_0x4a2bfe('0x178c')][_0x4a2bfe('0x178c')]['vm'][_0x4a2bfe('0x3a2')](_0x4a2bfe('0x1d27'),_0x341037);else{if(_0x341037[_0x4a2bfe('0x1969')])return _0x36b307[_0x4a2bfe('0x178c')][_0x4a2bfe('0x178c')][_0x4a2bfe('0x178c')]['vm'][_0x4a2bfe('0x3a2')](_0x4a2bfe('0x1508'),_0x341037);else{if(_0x341037[_0x4a2bfe('0x24f9')])return _0x36b307['$parent'][_0x4a2bfe('0x178c')]['$parent']['vm'][_0x4a2bfe('0x3a2')](_0x4a2bfe('0xc23'),_0x341037);}}}}}}catch(_0x599fdb){_0x56b179[_0x4a2bfe('0x1db9')]({'title':_0x4a2bfe('0x25c8'),'msg':_0x4a2bfe('0x28a2')});}}function _0x29e4ba(_0x36acea){const _0x4c76a4=_0x870c5c;if(!_0x36acea['disposition'])return'('+_0x48e4a0['instant'](_0x4c76a4('0x18f0'))+')';const _0x227624=_0x49cbdd()[_0x4c76a4('0x1e8')]([_0x36acea[_0x4c76a4('0x1f27')],_0x36acea['secondDisposition'],_0x36acea[_0x4c76a4('0x100')]]);return'('+_0x227624[_0x4c76a4('0x1eba')](_0x4c76a4('0x16e4'))+')';}function _0x3cb815(_0x5ac8c9){const _0x4466c5=_0x870c5c;_0x5ac8c9&&_0x5ac8c9[_0x4466c5('0x335')]&&_0x5ac8c9[_0x4466c5('0x2319')][_0x4466c5('0x1f73')]&&(_0x443ef0[_0x4466c5('0x128e')]=_0x49cbdd()['concat'](_0x443ef0[_0x4466c5('0x128e')],_0x5ac8c9[_0x4466c5('0x2319')]),_0x443ef0[_0x4466c5('0x128e')][_0x4466c5('0xccd')](function(_0x3ce8fc){const _0x3f0eda=_0x4466c5;_0x3ce8fc[_0x3f0eda('0x1db7')]=_0x29e4ba(_0x3ce8fc);}));}function _0x182a80(_0x1d3e04){const _0x46f6f1=_0x870c5c,_0x3f1018=[_0x46f6f1('0xc2'),_0x46f6f1('0x2219'),'sms',_0x46f6f1('0x1508'),_0x46f6f1('0xc23'),_0x46f6f1('0x1d27')];if(_0x1d3e04&&_0x1d3e04['id']){for(let _0x443dd8=0x0;_0x443dd8<_0x3f1018['length'];_0x443dd8++){_0x287f48[_0x3f1018[_0x443dd8]+_0x46f6f1('0x3de')][_0x46f6f1('0x1c53')]({'ContactId':_0x1d3e04['id'],'journey':!![],'includeAll':!![]})['$promise'][_0x46f6f1('0x17e7')](_0x3cb815);}_0x287f48[_0x46f6f1('0xf5')]['get']({'ContactId':_0x1d3e04['id'],'includeAll':!![]})[_0x46f6f1('0x1af5')][_0x46f6f1('0x17e7')](_0x3cb815)[_0x46f6f1('0x16df')](function(_0x3ef4f3){console['error'](_0x3ef4f3);});}}function _0x4ce97d(_0x26dc4b){const _0x217cee=_0x870c5c;switch(_0x26dc4b){case'chat':return _0x217cee('0x217f');case _0x217cee('0xc2'):return'teal';case'sms':return _0x217cee('0x20c9');case _0x217cee('0x1508'):return'amber-A200';case _0x217cee('0xc23'):return _0x217cee('0xe72');case _0x217cee('0x1d27'):return _0x217cee('0x9c7');default:return'blue-A700';}}function _0x12d154(_0x481d3f){const _0x2b7c95=_0x870c5c;let _0x86b489='';if(_0x481d3f['FaxAccountId'])_0x86b489=_0x2b7c95('0xc23');else{if(_0x481d3f[_0x2b7c95('0x1969')])_0x86b489=_0x2b7c95('0x1508');else{if(_0x481d3f[_0x2b7c95('0x17fe')])_0x86b489=_0x2b7c95('0x2cd');else{if(_0x481d3f[_0x2b7c95('0x10d7')])_0x86b489=_0x2b7c95('0x1d27');else{if(_0x481d3f[_0x2b7c95('0xbda')])_0x86b489=_0x2b7c95('0xc2');else{if(_0x481d3f[_0x2b7c95('0x259')])_0x86b489=_0x2b7c95('0x2219');else _0x481d3f[_0x2b7c95('0x21cc')]&&(_0x86b489=_0x2b7c95('0x1fe1'));}}}}}return _0x4ce97d(_0x86b489);}function _0x55f87a(_0x5b40e8,_0x5a99ee){const _0x20440f=_0x870c5c;return _0x443ef0[_0x20440f('0x1523')]=_0x5b40e8,_0x36b307['$watchGroup']([_0x20440f('0x1d52'),'vm.customFieldsForm.$pristine'],function(_0x45e23b){const _0x338b9e=_0x20440f;_0x443ef0[_0x338b9e('0x1523')][_0x338b9e('0x51d')]=_0x45e23b[0x0]&&_0x45e23b[0x1];}),_0x443ef0[_0x20440f('0x1d11')]=_0x5a99ee,_0x443ef0['contact']=_0x443ef0[_0x20440f('0x1523')]['contact'],_0x443ef0[_0x20440f('0x3f')]=![],_0x443ef0[_0x20440f('0x434')]=0x0,_0x287f48[_0x20440f('0x221e')][_0x20440f('0x1c53')]({'fields':_0x20440f('0x2185'),'nolimit':!![]})['$promise'][_0x20440f('0x17e7')](function(_0x3f0902){const _0x4466c7=_0x20440f;_0x443ef0[_0x4466c7('0x12ed')]=_0x3f0902||{'count':0x0,'rows':[]},_0x443ef0[_0x4466c7('0x18b8')]=_0x49cbdd()[_0x4466c7('0x250e')](_0x49cbdd()[_0x4466c7('0x8de')](_0x443ef0[_0x4466c7('0x12ed')][_0x4466c7('0x2319')],'id'),_0x4466c7('0xea6'));return;})[_0x20440f('0x17e7')](function(){const _0x58bd50=_0x20440f,_0x231744=[];for(let _0x51be3d=0x0;_0x51be3d<_0x443ef0['tab'][_0x58bd50('0x1392')][_0x58bd50('0x1f73')];_0x51be3d++){const _0x5cee15=_0x443ef0[_0x58bd50('0x1523')][_0x58bd50('0x1392')][_0x51be3d];_0x231744[_0x58bd50('0x269f')](_0x287f48[_0x58bd50('0xf5')][_0x58bd50('0x1c53')]({'uniqueid':_0x5cee15[_0x58bd50('0x35b')]})[_0x58bd50('0x1af5')][_0x58bd50('0x17e7')](function(_0x3231d0){const _0x16569a=_0x58bd50;_0x3231d0&&_0x3231d0[_0x16569a('0x2319')]['length']>0x0&&(_0x5cee15['disposedAt']=_0x49cbdd()['first'](_0x3231d0[_0x16569a('0x2319')])[_0x16569a('0x1e31')]);return;}));}return _0x11599f['all'](_0x231744);})[_0x20440f('0x17e7')](function(){const _0x5b47b1=_0x20440f;if(_0x443ef0[_0x5b47b1('0x1c58')]&&_0x443ef0[_0x5b47b1('0x1c58')]['id']){const _0x4b0ae7={'id':_0x443ef0[_0x5b47b1('0x1c58')]['id'],'ListId':_0x443ef0['contact'][_0x5b47b1('0x7f8')],'limit':0x1,'offset':0x0,'sort':_0x5b47b1('0x1ac6')};return _0x287f48[_0x5b47b1('0x1d2a')][_0x5b47b1('0x1c53')](_0x4b0ae7)[_0x5b47b1('0x1af5')][_0x5b47b1('0x17e7')](function(_0x306ec3){const _0x5f3f81=_0x5b47b1;return _0x443ef0[_0x5f3f81('0x1c58')]=_0x306ec3,_0x443ef0['tab'][_0x5f3f81('0x1c58')]=_0x306ec3,_0x287f48['user'][_0x5f3f81('0x14d')]({'id':_0x443ef0[_0x5f3f81('0x221e')]['id'],'ids':[_0x443ef0['contact']['id']]});})[_0x5b47b1('0x17e7')](function(){const _0x2ab369=_0x5b47b1;if(_0x443ef0[_0x2ab369('0x1c58')][_0x2ab369('0x7f8')])return _0x287f48[_0x2ab369('0x1f27')][_0x2ab369('0x1c53')]({'ListId':_0x443ef0['contact'][_0x2ab369('0x7f8')]})[_0x2ab369('0x1af5')][_0x2ab369('0x17e7')](function(_0x1f37d3){const _0x35bbba=_0x2ab369;return _0x443ef0['tab'][_0x35bbba('0x23fe')]=_0x1f37d3,_0x287f48['cmList']['getCustomFields']({'id':_0x443ef0['contact']['ListId']})[_0x35bbba('0x1af5')];})['then'](function(_0x3c2350){const _0x3984ca=_0x2ab369;_0x443ef0[_0x3984ca('0x1523')][_0x3984ca('0x1341')]=_0x3c2350;return;});return;})[_0x5b47b1('0x17e7')](function(){const _0x30adfa=_0x5b47b1;try{_0x443ef0[_0x30adfa('0x1523')][_0x30adfa('0x1bbf')]=_0x36b307['$parent']['$parent'][_0x30adfa('0x178c')]['vm']['globalUserLists'],_0x443ef0['tab'][_0x30adfa('0x2504')]=_0x36b307['$parent'][_0x30adfa('0x178c')]['$parent']['vm']['globalLists'],_0x443ef0[_0x30adfa('0x1523')][_0x30adfa('0x839')]=_0x36b307[_0x30adfa('0x178c')][_0x30adfa('0x178c')][_0x30adfa('0x178c')]['vm'][_0x30adfa('0xee5')],_0x443ef0[_0x30adfa('0x1523')]['tags']=_0x36b307[_0x30adfa('0x178c')][_0x30adfa('0x178c')][_0x30adfa('0x178c')]['vm'][_0x30adfa('0x525')],_0x443ef0[_0x30adfa('0x1523')][_0x30adfa('0x25f6')]=0x0,_0x443ef0[_0x30adfa('0x1c58')][_0x30adfa('0x7f8')]&&(_0x443ef0[_0x30adfa('0x1523')][_0x30adfa('0x1bbf')][_0x30adfa('0x2319')]=_0x49cbdd()[_0x30adfa('0x241')](_0x443ef0['tab'][_0x30adfa('0x1bbf')]['rows'],_0x49cbdd()[_0x30adfa('0x2483')](_0x443ef0['tab'][_0x30adfa('0x2504')][_0x30adfa('0x2319')],{'id':_0x443ef0[_0x30adfa('0x1c58')]['ListId']}),'id'),_0x443ef0[_0x30adfa('0x134c')]=_0x49cbdd()['find'](_0x443ef0[_0x30adfa('0x1523')][_0x30adfa('0x1bbf')][_0x30adfa('0x2319')],{'id':_0x443ef0[_0x30adfa('0x1c58')][_0x30adfa('0x7f8')]}));}catch(_0x36cda3){}_0x443ef0['getHoppers'](),_0x443ef0[_0x30adfa('0x2458')](),_0x443ef0[_0x30adfa('0x2474')](),_0x443ef0[_0x30adfa('0x21d8')](),_0x443ef0[_0x30adfa('0x17d7')](),_0x443ef0[_0x30adfa('0x24c')](),_0x443ef0[_0x30adfa('0x79c')](),_0x443ef0[_0x30adfa('0x2532')](),_0x443ef0[_0x30adfa('0x8fc')](),_0x443ef0[_0x30adfa('0x852')]();return;})[_0x5b47b1('0x17e7')](function(){const _0x5a0912=_0x5b47b1;return _0x287f48[_0x5a0912('0x1d2a')]['getTags']({'id':_0x443ef0['contact']['id']})['$promise'][_0x5a0912('0x17e7')](function(_0x18e93a){const _0x54772a=_0x5a0912;_0x443ef0['tab']['Tags']=_0x49cbdd()['map'](_0x18e93a[_0x54772a('0x2319')],'id');return;});});}else{_0x443ef0[_0x5b47b1('0x3f')]=!![];if(_0x5b40e8[_0x5b47b1('0x25f6')])return console[_0x5b47b1('0x1d63')]('autoCreate'),_0x443ef0[_0x5b47b1('0xf21')]();return;}})[_0x20440f('0x17e7')](_0x182a80(_0x443ef0[_0x20440f('0x1c58')]));}function _0x4dd05d(_0x3a6c2a,_0x439152,_0x1a7e4f,_0x509768){const _0xbdcd9=_0x870c5c,_0x157ddb=_0x439152[_0xbdcd9('0x19b')]();_0xd7c32b[_0xbdcd9('0x28e2')]({'controller':_0xbdcd9('0x13a3')+_0x439152+_0xbdcd9('0x1fd'),'controllerAs':'vm','templateUrl':_0x59a53b[_0x157ddb],'parent':angular[_0xbdcd9('0x1ce1')](_0x5e3f5f[_0xbdcd9('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x1a7e4f,'message':{'to':_0x157ddb==_0xbdcd9('0xc2')?_0x509768:_0x509768[_0xbdcd9('0x2007')](',')},'type':_0xbdcd9('0x1b39'),'interaction':{'Contact':_0x443ef0[_0xbdcd9('0x1c58')]}},'fullscreen':!![]})[_0xbdcd9('0x17e7')](function(_0x35b8ff){const _0x4c42fd=_0xbdcd9;return _0x287f48[_0x157ddb+_0x4c42fd('0x896')]['send']({'id':_0x1a7e4f['id']},_0x35b8ff)[_0x4c42fd('0x1af5')][_0x4c42fd('0x17e7')](function(_0x81abad){const _0x21312d=_0x4c42fd;if(_0x439152===_0x21312d('0x1225')){const _0x96266a=_0x81abad;if(_0x96266a&&_0x96266a[_0x21312d('0xd08')]&&_0x96266a['Messages']['length']){if(_0x35b8ff[_0x21312d('0x240d')]&&_0x35b8ff['attachments'][_0x21312d('0x1f73')])for(let _0x41be78=0x0;_0x41be78<_0x35b8ff['attachments'][_0x21312d('0x1f73')];_0x41be78+=0x1){_0x287f48['attachment'][_0x21312d('0x27ba')]({'id':_0x35b8ff[_0x21312d('0x240d')][_0x41be78]['id']},{'MailMessageId':_0x49cbdd()[_0x21312d('0xb9')](_0x96266a[_0x21312d('0xd08')])['id']});}_0x56b179[_0x21312d('0x130d')]({'title':_0x21312d('0x235b'),'msg':_0x21312d('0x2235')});if(_0x96266a[_0x21312d('0x2bc')]){_0x96266a[_0x21312d('0x1f27')]=null;const _0x329c67=!_0x1a7e4f[_0x21312d('0xb20')],_0x731333=_0x443ef0['user'][_0x21312d('0x118a')]||_0x443ef0['user'][_0x21312d('0x2764')]||_0x443ef0[_0x21312d('0x221e')][_0x21312d('0x1467')]||_0x443ef0[_0x21312d('0x221e')]['openchannelPause']||_0x443ef0[_0x21312d('0x221e')][_0x21312d('0x1d98')];_0xd7c32b[_0x21312d('0x28e2')]({'controller':_0x21312d('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular[_0x21312d('0x1ce1')](_0x5e3f5f[_0x21312d('0x13aa')]),'onRemoving':function(){const _0x35410f=_0x21312d;_0x443ef0[_0x35410f('0x221e')]&&_0x1a7e4f[_0x35410f('0xb20')]&&!_0x731333&&_0x287f48[_0x35410f('0x221e')]['unpause']({'id':_0x443ef0[_0x35410f('0x221e')]['id']})[_0x35410f('0x1af5')][_0x35410f('0x16df')](function(_0x536d7d){const _0x52f77a=_0x35410f;console[_0x52f77a('0x1db9')](_0x536d7d);});},'clickOutsideToClose':_0x329c67,'escapeToClose':_0x329c67,'locals':{'user':_0x443ef0[_0x21312d('0x221e')],'channel':_0x21312d('0xc2'),'interaction':_0x96266a}});}else _0x36b307[_0x21312d('0x178c')]['vm'][_0x21312d('0x3a2')](_0x21312d('0xc2'),_0x96266a);}}else _0x56b179[_0x21312d('0x130d')]({'title':_0x21312d('0x235b'),'msg':_0x21312d('0x2235')}),_0x36b307[_0x21312d('0x178c')]['vm'][_0x21312d('0x3a2')](_0x157ddb,_0x81abad);})[_0x4c42fd('0x16df')](function(_0x7c38f5){const _0x2aa124=_0x4c42fd;if(_0x7c38f5[_0x2aa124('0x1457')]&&_0x7c38f5['data'][_0x2aa124('0x73e')]&&_0x7c38f5[_0x2aa124('0x1457')]['errors'][_0x2aa124('0x1f73')])for(let _0x58193e=0x0;_0x58193e<_0x7c38f5[_0x2aa124('0x1457')][_0x2aa124('0x73e')][_0x2aa124('0x1f73')];_0x58193e+=0x1){_0x56b179[_0x2aa124('0x1db9')]({'title':_0x7c38f5[_0x2aa124('0x1457')][_0x2aa124('0x73e')][_0x58193e][_0x2aa124('0x412')],'msg':_0x7c38f5[_0x2aa124('0x1457')][_0x2aa124('0x73e')][_0x58193e][_0x2aa124('0x1603')]});}else _0x157ddb===_0x2aa124('0xc23')?_0x56b179[_0x2aa124('0x1db9')]({'title':_0x2aa124('0x2c'),'msg':_0x7c38f5[_0x2aa124('0x1457')]?JSON['stringify'](_0x7c38f5['data']):_0x7c38f5[_0x2aa124('0x1603')]||_0x7c38f5[_0x2aa124('0x9b6')]()}):_0x56b179['error']({'title':_0x7c38f5['status']?_0x2aa124('0x14f7')+_0x7c38f5[_0x2aa124('0x11c5')]+'\x20-\x20'+_0x7c38f5[_0x2aa124('0x1833')]:_0x439152[_0x2aa124('0x14e2')]()+_0x2aa124('0x1e5f'),'msg':_0x7c38f5['data']?JSON[_0x2aa124('0x678')](_0x7c38f5[_0x2aa124('0x1457')][_0x2aa124('0x1603')]):_0x7c38f5[_0x2aa124('0x1603')]||_0x7c38f5['toString']()});});});}function _0x49357a(){const _0x6ad201=_0x870c5c;_0x443ef0['errors']=[],_0x287f48[_0x6ad201('0x1d2a')][_0x6ad201('0x2439')](_0x443ef0[_0x6ad201('0x1c58')])[_0x6ad201('0x1af5')]['then'](function(_0x16b091){const _0x361a58=_0x6ad201;return _0x443ef0[_0x361a58('0x1c58')]['id']=_0x16b091['id'],_0x443ef0[_0x361a58('0x3f')]=![],_0x443ef0['tab'][_0x361a58('0x24d3')]=_0x16b091[_0x361a58('0x1761')]||_0x16b091[_0x361a58('0x2154')],_0x443ef0['tab']['contact']=_0x443ef0[_0x361a58('0x1c58')],_0x287f48[_0x361a58('0x221e')]['addContacts']({'id':_0x2ab35b[_0x361a58('0x2831')]()['id'],'ids':[_0x16b091['id']]});})[_0x6ad201('0x17e7')](function(){const _0xec6bb6=_0x6ad201;_0x443ef0[_0xec6bb6('0x2069')][_0xec6bb6('0x2f2')]=!![],_0x443ef0[_0xec6bb6('0x11de')][_0xec6bb6('0x2f2')]=!![],_0x56b179[_0xec6bb6('0x130d')]({'title':_0xec6bb6('0xdf9'),'msg':_0x443ef0[_0xec6bb6('0x1c58')][_0xec6bb6('0x1761')]?_0x443ef0[_0xec6bb6('0x1c58')][_0xec6bb6('0x1761')]+'\x20has\x20been\x20created!':''});})[_0x6ad201('0x17e7')](function(){const _0x4ccdcb=_0x6ad201;return _0x287f48[_0x4ccdcb('0x1d2a')]['setTags']({'id':_0x443ef0[_0x4ccdcb('0x1c58')]['id'],'ids':_0x443ef0[_0x4ccdcb('0x1523')][_0x4ccdcb('0x28a6')]})['$promise'];})[_0x6ad201('0x16df')](function(_0x4f3cdb){const _0x37bcc5=_0x6ad201;if(_0x4f3cdb[_0x37bcc5('0x1457')]&&_0x4f3cdb['data'][_0x37bcc5('0x73e')]&&_0x4f3cdb[_0x37bcc5('0x1457')][_0x37bcc5('0x73e')]['length']){_0x443ef0['errors']=_0x4f3cdb[_0x37bcc5('0x1457')]['errors']||[{'message':_0x4f3cdb['toString'](),'type':'api.contact.save'}];for(let _0x39ff97=0x0;_0x39ff97<_0x4f3cdb[_0x37bcc5('0x1457')][_0x37bcc5('0x73e')][_0x37bcc5('0x1f73')];_0x39ff97+=0x1){_0x56b179['error']({'title':_0x4f3cdb[_0x37bcc5('0x1457')]['errors'][_0x39ff97]['type'],'msg':_0x4f3cdb[_0x37bcc5('0x1457')]['errors'][_0x39ff97][_0x37bcc5('0x1603')]});}}else _0x56b179[_0x37bcc5('0x1db9')]({'title':_0x4f3cdb[_0x37bcc5('0x11c5')]?_0x37bcc5('0x14f7')+_0x4f3cdb[_0x37bcc5('0x11c5')]+'\x20-\x20'+_0x4f3cdb[_0x37bcc5('0x1833')]:_0x37bcc5('0x20c'),'msg':_0x4f3cdb[_0x37bcc5('0x1457')]?JSON[_0x37bcc5('0x678')](_0x4f3cdb[_0x37bcc5('0x1457')][_0x37bcc5('0x1603')]):_0x4f3cdb[_0x37bcc5('0x9b6')]()});});}function _0x2e5944(){const _0x987173=_0x870c5c;_0x443ef0[_0x987173('0x73e')]=[],_0x287f48['cmContact'][_0x987173('0x27ba')]({'id':_0x443ef0[_0x987173('0x1c58')]['id']},_0x443ef0['contact'])[_0x987173('0x1af5')][_0x987173('0x17e7')](function(_0x5a61d7){const _0x718968=_0x987173;return _0x443ef0[_0x718968('0x1523')][_0x718968('0x24d3')]=_0x5a61d7['firstName']||_0x5a61d7[_0x718968('0x2154')],_0x443ef0[_0x718968('0x1523')][_0x718968('0x1c58')]=_0x443ef0[_0x718968('0x1c58')],_0x36b307['$parent']['vm'][_0x718968('0x8ce')](),_0x287f48[_0x718968('0x221e')][_0x718968('0x14d')]({'id':_0x2ab35b['getCurrentUser']()['id'],'ids':[_0x5a61d7['id']]});})[_0x987173('0x17e7')](function(){const _0xf8090=_0x987173;return _0x287f48[_0xf8090('0x1d2a')][_0xf8090('0x4bc')]({'id':_0x443ef0[_0xf8090('0x1c58')]['id'],'ids':_0x443ef0[_0xf8090('0x1523')][_0xf8090('0x28a6')]})[_0xf8090('0x1af5')];})[_0x987173('0x17e7')](function(){const _0x14c7d2=_0x987173;_0x443ef0[_0x14c7d2('0x2069')][_0x14c7d2('0x2f2')]=!![],_0x443ef0[_0x14c7d2('0x11de')][_0x14c7d2('0x2f2')]=!![],_0x56b179[_0x14c7d2('0x130d')]({'title':_0x14c7d2('0xb0d'),'msg':_0x443ef0[_0x14c7d2('0x1c58')]['name']?_0x443ef0[_0x14c7d2('0x1c58')][_0x14c7d2('0x2aa')]+_0x14c7d2('0x12b0'):''});})[_0x987173('0x16df')](function(_0x1624cb){const _0x32d5d1=_0x987173;if(_0x1624cb[_0x32d5d1('0x1457')]&&_0x1624cb[_0x32d5d1('0x1457')][_0x32d5d1('0x73e')]&&_0x1624cb[_0x32d5d1('0x1457')][_0x32d5d1('0x73e')]['length']){_0x443ef0['errors']=_0x1624cb[_0x32d5d1('0x1457')]['errors']||[{'message':_0x1624cb[_0x32d5d1('0x9b6')](),'type':_0x32d5d1('0x20c')}];for(let _0x541f4f=0x0;_0x541f4f<_0x1624cb['data'][_0x32d5d1('0x73e')][_0x32d5d1('0x1f73')];_0x541f4f+=0x1){_0x56b179[_0x32d5d1('0x1db9')]({'title':_0x1624cb['data'][_0x32d5d1('0x73e')][_0x541f4f]['type'],'msg':_0x1624cb['data'][_0x32d5d1('0x73e')][_0x541f4f]['message']});}}else _0x56b179[_0x32d5d1('0x1db9')]({'title':_0x1624cb[_0x32d5d1('0x11c5')]?_0x32d5d1('0x14f7')+_0x1624cb[_0x32d5d1('0x11c5')]+'\x20-\x20'+_0x1624cb[_0x32d5d1('0x1833')]:_0x32d5d1('0x20c'),'msg':_0x1624cb['data']?JSON[_0x32d5d1('0x678')](_0x1624cb[_0x32d5d1('0x1457')][_0x32d5d1('0x1603')]):_0x1624cb['toString']()});});}_0x36b307['$watch'](_0x870c5c('0x434'),function(){const _0x466f6f=_0x870c5c;_0x443ef0['currentTab']===0x1&&(_0x443ef0[_0x466f6f('0x172f')](),_0x443ef0[_0x466f6f('0x2458')](),_0x443ef0[_0x466f6f('0x2474')]());});let _0xba07ea=!![],_0x3c42b1=0x1;_0x36b307[_0x870c5c('0x620')](_0x870c5c('0x12c3'),function(_0x53846a,_0x590cdc){const _0x1d496c=_0x870c5c;_0xba07ea?_0x470e19(function(){_0xba07ea=![];}):(!_0x590cdc&&(_0x3c42b1=_0x443ef0[_0x1d496c('0x161b')][_0x1d496c('0x115a')]),_0x53846a!==_0x590cdc&&(_0x443ef0['queryHopper'][_0x1d496c('0x115a')]=0x1),!_0x53846a&&(_0x443ef0[_0x1d496c('0x161b')][_0x1d496c('0x115a')]=_0x3c42b1),_0x443ef0[_0x1d496c('0x172f')]());}),_0x36b307[_0x870c5c('0x620')]('queryFinal.filter',function(_0x49c01d,_0xbfc12b){const _0x304c48=_0x870c5c;_0xba07ea?_0x470e19(function(){_0xba07ea=![];}):(!_0xbfc12b&&(_0x3c42b1=_0x443ef0[_0x304c48('0x518')]['page']),_0x49c01d!==_0xbfc12b&&(_0x443ef0[_0x304c48('0x518')][_0x304c48('0x115a')]=0x1),!_0x49c01d&&(_0x443ef0[_0x304c48('0x518')]['page']=_0x3c42b1),_0x443ef0['getFinals']());}),_0x36b307['$watch'](_0x870c5c('0x15bf'),function(_0x59fb69,_0x149957){const _0x476d38=_0x870c5c;_0xba07ea?_0x470e19(function(){_0xba07ea=![];}):(!_0x149957&&(_0x3c42b1=_0x443ef0[_0x476d38('0x13e2')]['page']),_0x59fb69!==_0x149957&&(_0x443ef0[_0x476d38('0x13e2')][_0x476d38('0x115a')]=0x1),!_0x59fb69&&(_0x443ef0['queryHistory'][_0x476d38('0x115a')]=_0x3c42b1),_0x443ef0[_0x476d38('0x2474')]());});function _0x28b3a1(_0x263eb6){return function(_0x9c8d0c){_0x443ef0[_0x263eb6]=_0x9c8d0c||{'count':0x0,'rows':[]};};}function _0x42f1aa(){const _0x4eb79e=_0x870c5c;_0x443ef0[_0x4eb79e('0x1c58')]&&_0x443ef0['contact']['id']&&(_0x443ef0['queryHopper'][_0x4eb79e('0x1e84')]=_0x443ef0[_0x4eb79e('0x1c58')]['id'],_0x443ef0[_0x4eb79e('0x161b')][_0x4eb79e('0xf19')]=(_0x443ef0[_0x4eb79e('0x161b')][_0x4eb79e('0x115a')]-0x1)*_0x443ef0[_0x4eb79e('0x161b')][_0x4eb79e('0x193b')],_0x443ef0[_0x4eb79e('0x1691')]=_0x287f48[_0x4eb79e('0xf6a')]['get'](_0x443ef0[_0x4eb79e('0x161b')],_0x28b3a1('hoppers'))['$promise']);}function _0x501aea(){const _0x50c852=_0x870c5c;_0x443ef0['contact']&&_0x443ef0[_0x50c852('0x1c58')]['id']&&(_0x443ef0[_0x50c852('0x518')][_0x50c852('0x1e84')]=_0x443ef0['contact']['id'],_0x443ef0[_0x50c852('0x518')][_0x50c852('0xf19')]=(_0x443ef0[_0x50c852('0x518')]['page']-0x1)*_0x443ef0[_0x50c852('0x518')][_0x50c852('0x193b')],_0x443ef0[_0x50c852('0x1691')]=_0x287f48['cmHopperFinal'][_0x50c852('0x1c53')](_0x443ef0['queryFinal'],_0x28b3a1(_0x50c852('0x244c')))['$promise']);}function _0x2d2533(){const _0x5d45e3=_0x870c5c;_0x443ef0[_0x5d45e3('0x1c58')]&&_0x443ef0['contact']['id']&&(_0x443ef0[_0x5d45e3('0x13e2')][_0x5d45e3('0x1e84')]=_0x443ef0['contact']['id'],_0x443ef0['queryHistory'][_0x5d45e3('0xf19')]=(_0x443ef0[_0x5d45e3('0x13e2')]['page']-0x1)*_0x443ef0[_0x5d45e3('0x13e2')][_0x5d45e3('0x193b')],_0x443ef0[_0x5d45e3('0x1691')]=_0x287f48[_0x5d45e3('0x2231')][_0x5d45e3('0x1c53')](_0x443ef0[_0x5d45e3('0x13e2')],_0x28b3a1(_0x5d45e3('0x4f9')))[_0x5d45e3('0x1af5')]);}function _0x588519(){const _0x597f47=_0x870c5c;_0x287f48[_0x597f47('0x12fb')]['get']({'fields':_0x597f47('0x2102'),'sort':_0x597f47('0x1ac6'),'nolimit':!![]})[_0x597f47('0x1af5')][_0x597f47('0x17e7')](function(_0x582ac7){const _0x3d5aa8=_0x597f47;_0x443ef0[_0x3d5aa8('0x1168')]=_0x582ac7||{'count':0x0,'rows':[]};})[_0x597f47('0x16df')](function(_0x36d3f5){const _0x4a3fec=_0x597f47;if(_0x36d3f5[_0x4a3fec('0x1457')]&&_0x36d3f5[_0x4a3fec('0x1457')][_0x4a3fec('0x73e')]&&_0x36d3f5[_0x4a3fec('0x1457')][_0x4a3fec('0x73e')][_0x4a3fec('0x1f73')]){_0x443ef0[_0x4a3fec('0x73e')]=_0x36d3f5['data']['errors']||[{'message':_0x36d3f5[_0x4a3fec('0x9b6')](),'type':'api.jscripty.account'}];for(let _0x2cdf02=0x0;_0x2cdf02<_0x36d3f5[_0x4a3fec('0x1457')][_0x4a3fec('0x73e')][_0x4a3fec('0x1f73')];_0x2cdf02+=0x1){_0x56b179[_0x4a3fec('0x1db9')]({'title':_0x36d3f5[_0x4a3fec('0x1457')]['errors'][_0x2cdf02][_0x4a3fec('0x412')],'msg':_0x36d3f5['data']['errors'][_0x2cdf02][_0x4a3fec('0x1603')]});}}else _0x56b179[_0x4a3fec('0x1db9')]({'title':_0x36d3f5['status']?_0x4a3fec('0x14f7')+_0x36d3f5[_0x4a3fec('0x11c5')]+_0x4a3fec('0x16e4')+_0x36d3f5[_0x4a3fec('0x1833')]:_0x4a3fec('0x271e'),'msg':_0x36d3f5['data']?JSON[_0x4a3fec('0x678')](_0x36d3f5['data'][_0x4a3fec('0x1603')]):_0x36d3f5[_0x4a3fec('0x9b6')]()});});}function _0xce173e(){const _0x481482=_0x870c5c;_0x287f48[_0x481482('0x221e')][_0x481482('0x21d8')]({'id':_0x443ef0[_0x481482('0x221e')]['id'],'nolimit':!![]})[_0x481482('0x1af5')][_0x481482('0x17e7')](function(_0x352005){_0x443ef0['mailAccounts']=_0x352005||{'count':0x0,'rows':[]};})[_0x481482('0x16df')](function(_0x13cdfb){const _0x14f23e=_0x481482;if(_0x13cdfb[_0x14f23e('0x1457')]&&_0x13cdfb[_0x14f23e('0x1457')][_0x14f23e('0x73e')]&&_0x13cdfb['data'][_0x14f23e('0x73e')][_0x14f23e('0x1f73')]){_0x443ef0[_0x14f23e('0x73e')]=_0x13cdfb['data'][_0x14f23e('0x73e')]||[{'message':_0x13cdfb['toString'](),'type':'api.mail.account'}];for(let _0x414c91=0x0;_0x414c91<_0x13cdfb['data'][_0x14f23e('0x73e')][_0x14f23e('0x1f73')];_0x414c91+=0x1){_0x56b179['error']({'title':_0x13cdfb[_0x14f23e('0x1457')][_0x14f23e('0x73e')][_0x414c91]['type'],'msg':_0x13cdfb[_0x14f23e('0x1457')][_0x14f23e('0x73e')][_0x414c91][_0x14f23e('0x1603')]});}}else _0x56b179[_0x14f23e('0x1db9')]({'title':_0x13cdfb[_0x14f23e('0x11c5')]?_0x14f23e('0x14f7')+_0x13cdfb[_0x14f23e('0x11c5')]+_0x14f23e('0x16e4')+_0x13cdfb[_0x14f23e('0x1833')]:_0x14f23e('0x7bf'),'msg':_0x13cdfb[_0x14f23e('0x1457')]?JSON[_0x14f23e('0x678')](_0x13cdfb['data']['message']):_0x13cdfb[_0x14f23e('0x9b6')]()});});}function _0x368646(){const _0x840530=_0x870c5c;_0x287f48[_0x840530('0x221e')][_0x840530('0x17d7')]({'id':_0x443ef0[_0x840530('0x221e')]['id'],'nolimit':!![]})[_0x840530('0x1af5')][_0x840530('0x17e7')](function(_0x4d24cd){const _0x400c52=_0x840530;_0x443ef0[_0x400c52('0xec4')]=_0x4d24cd||{'count':0x0,'rows':[]};})[_0x840530('0x16df')](function(_0x369f56){const _0x4feb98=_0x840530;if(_0x369f56[_0x4feb98('0x1457')]&&_0x369f56['data'][_0x4feb98('0x73e')]&&_0x369f56[_0x4feb98('0x1457')][_0x4feb98('0x73e')][_0x4feb98('0x1f73')]){_0x443ef0[_0x4feb98('0x73e')]=_0x369f56['data'][_0x4feb98('0x73e')]||[{'message':_0x369f56[_0x4feb98('0x9b6')](),'type':_0x4feb98('0x168d')}];for(let _0x7bb6cc=0x0;_0x7bb6cc<_0x369f56[_0x4feb98('0x1457')][_0x4feb98('0x73e')]['length'];_0x7bb6cc+=0x1){_0x56b179[_0x4feb98('0x1db9')]({'title':_0x369f56[_0x4feb98('0x1457')][_0x4feb98('0x73e')][_0x7bb6cc][_0x4feb98('0x412')],'msg':_0x369f56[_0x4feb98('0x1457')][_0x4feb98('0x73e')][_0x7bb6cc][_0x4feb98('0x1603')]});}}else _0x56b179[_0x4feb98('0x1db9')]({'title':_0x369f56[_0x4feb98('0x11c5')]?_0x4feb98('0x14f7')+_0x369f56[_0x4feb98('0x11c5')]+_0x4feb98('0x16e4')+_0x369f56[_0x4feb98('0x1833')]:'api.fax.account','msg':_0x369f56[_0x4feb98('0x1457')]?JSON[_0x4feb98('0x678')](_0x369f56['data'][_0x4feb98('0x1603')]):_0x369f56['toString']()});});}function _0x2c47e6(){const _0x5b960d=_0x870c5c;_0x287f48[_0x5b960d('0x221e')][_0x5b960d('0x24c')]({'id':_0x443ef0[_0x5b960d('0x221e')]['id'],'nolimit':!![]})['$promise'][_0x5b960d('0x17e7')](function(_0x3edaff){const _0x371fc5=_0x5b960d;_0x443ef0[_0x371fc5('0x35e')]=_0x3edaff||{'count':0x0,'rows':[]};})[_0x5b960d('0x16df')](function(_0x3526c8){const _0x2dae15=_0x5b960d;if(_0x3526c8['data']&&_0x3526c8['data'][_0x2dae15('0x73e')]&&_0x3526c8['data']['errors'][_0x2dae15('0x1f73')]){_0x443ef0[_0x2dae15('0x73e')]=_0x3526c8[_0x2dae15('0x1457')]['errors']||[{'message':_0x3526c8[_0x2dae15('0x9b6')](),'type':_0x2dae15('0xb4f')}];for(let _0x427cf6=0x0;_0x427cf6<_0x3526c8[_0x2dae15('0x1457')]['errors'][_0x2dae15('0x1f73')];_0x427cf6+=0x1){_0x56b179[_0x2dae15('0x1db9')]({'title':_0x3526c8[_0x2dae15('0x1457')][_0x2dae15('0x73e')][_0x427cf6][_0x2dae15('0x412')],'msg':_0x3526c8[_0x2dae15('0x1457')][_0x2dae15('0x73e')][_0x427cf6][_0x2dae15('0x1603')]});}}else _0x56b179[_0x2dae15('0x1db9')]({'title':_0x3526c8['status']?_0x2dae15('0x14f7')+_0x3526c8[_0x2dae15('0x11c5')]+_0x2dae15('0x16e4')+_0x3526c8[_0x2dae15('0x1833')]:'api.sms.account','msg':_0x3526c8[_0x2dae15('0x1457')]?JSON[_0x2dae15('0x678')](_0x3526c8[_0x2dae15('0x1457')][_0x2dae15('0x1603')]):_0x3526c8[_0x2dae15('0x9b6')]()});});}function _0x4d3b19(){const _0x5eb11c=_0x870c5c;_0x287f48[_0x5eb11c('0x221e')][_0x5eb11c('0x79c')]({'id':_0x443ef0[_0x5eb11c('0x221e')]['id'],'nolimit':!![]})[_0x5eb11c('0x1af5')]['then'](function(_0x30130e){const _0x4ddaee=_0x5eb11c;_0x443ef0[_0x4ddaee('0x58b')]=_0x30130e||{'count':0x0,'rows':[]};})[_0x5eb11c('0x16df')](function(_0x51e81f){const _0x55486e=_0x5eb11c;if(_0x51e81f[_0x55486e('0x1457')]&&_0x51e81f[_0x55486e('0x1457')][_0x55486e('0x73e')]&&_0x51e81f['data']['errors'][_0x55486e('0x1f73')]){_0x443ef0[_0x55486e('0x73e')]=_0x51e81f[_0x55486e('0x1457')][_0x55486e('0x73e')]||[{'message':_0x51e81f[_0x55486e('0x9b6')](),'type':'api.whatsapp.account'}];for(let _0x203476=0x0;_0x203476<_0x51e81f[_0x55486e('0x1457')]['errors']['length'];_0x203476+=0x1){_0x56b179[_0x55486e('0x1db9')]({'title':_0x51e81f[_0x55486e('0x1457')][_0x55486e('0x73e')][_0x203476][_0x55486e('0x412')],'msg':_0x51e81f[_0x55486e('0x1457')]['errors'][_0x203476]['message']});}}else _0x56b179[_0x55486e('0x1db9')]({'title':_0x51e81f[_0x55486e('0x11c5')]?_0x55486e('0x14f7')+_0x51e81f[_0x55486e('0x11c5')]+_0x55486e('0x16e4')+_0x51e81f['statusText']:_0x55486e('0xbbb'),'msg':_0x51e81f[_0x55486e('0x1457')]?JSON[_0x55486e('0x678')](_0x51e81f['data'][_0x55486e('0x1603')]):_0x51e81f[_0x55486e('0x9b6')]()});});}function _0x546e77(){const _0xdb5a91=_0x870c5c;_0x287f48['user']['getOpenchannelAccounts']({'id':_0x443ef0['user']['id'],'nolimit':!![]})[_0xdb5a91('0x1af5')][_0xdb5a91('0x17e7')](function(_0x9a8f29){const _0x46a654=_0xdb5a91;_0x443ef0[_0x46a654('0x1408')]=_0x9a8f29||{'count':0x0,'rows':[]};})['catch'](function(_0x52f29f){const _0x383286=_0xdb5a91;if(_0x52f29f['data']&&_0x52f29f[_0x383286('0x1457')][_0x383286('0x73e')]&&_0x52f29f[_0x383286('0x1457')][_0x383286('0x73e')][_0x383286('0x1f73')]){_0x443ef0['errors']=_0x52f29f[_0x383286('0x1457')]['errors']||[{'message':_0x52f29f[_0x383286('0x9b6')](),'type':'api.openchannel.account'}];for(let _0x3be5fe=0x0;_0x3be5fe<_0x52f29f[_0x383286('0x1457')][_0x383286('0x73e')]['length'];_0x3be5fe+=0x1){_0x56b179[_0x383286('0x1db9')]({'title':_0x52f29f[_0x383286('0x1457')][_0x383286('0x73e')][_0x3be5fe][_0x383286('0x412')],'msg':_0x52f29f['data']['errors'][_0x3be5fe][_0x383286('0x1603')]});}}else _0x56b179[_0x383286('0x1db9')]({'title':_0x52f29f[_0x383286('0x11c5')]?_0x383286('0x14f7')+_0x52f29f[_0x383286('0x11c5')]+_0x383286('0x16e4')+_0x52f29f[_0x383286('0x1833')]:_0x383286('0x2899'),'msg':_0x52f29f[_0x383286('0x1457')]?JSON[_0x383286('0x678')](_0x52f29f['data'][_0x383286('0x1603')]):_0x52f29f['toString']()});});}function _0x2cfae0(){const _0x1baa12=_0x870c5c;_0x287f48[_0x1baa12('0x221e')][_0x1baa12('0x8fc')]({'id':_0x443ef0[_0x1baa12('0x221e')]['id'],'nolimit':!![]})[_0x1baa12('0x1af5')]['then'](function(_0x1cf970){const _0x3339dc=_0x1baa12;_0x443ef0[_0x3339dc('0x24cd')]=_0x1cf970||{'count':0x0,'rows':[]};})['catch'](function(_0x56eea0){const _0x207065=_0x1baa12;if(_0x56eea0[_0x207065('0x1457')]&&_0x56eea0[_0x207065('0x1457')]['errors']&&_0x56eea0[_0x207065('0x1457')]['errors'][_0x207065('0x1f73')]){_0x443ef0['errors']=_0x56eea0['data']['errors']||[{'message':_0x56eea0['toString'](),'type':'api.chatAccounts.account'}];for(let _0x49158d=0x0;_0x49158d<_0x56eea0[_0x207065('0x1457')]['errors'][_0x207065('0x1f73')];_0x49158d+=0x1){_0x56b179[_0x207065('0x1db9')]({'title':_0x56eea0[_0x207065('0x1457')]['errors'][_0x49158d][_0x207065('0x412')],'msg':_0x56eea0[_0x207065('0x1457')][_0x207065('0x73e')][_0x49158d]['message']});}}else _0x56b179['error']({'title':_0x56eea0[_0x207065('0x11c5')]?'API:'+_0x56eea0[_0x207065('0x11c5')]+_0x207065('0x16e4')+_0x56eea0['statusText']:_0x207065('0x18aa'),'msg':_0x56eea0[_0x207065('0x1457')]?JSON['stringify'](_0x56eea0['data']['message']):_0x56eea0['toString']()});});}function _0x39325f(){const _0x4a8deb=_0x870c5c;_0x287f48[_0x4a8deb('0x221e')]['getLists']({'id':_0x443ef0['user']['id'],'nolimit':!![]})[_0x4a8deb('0x1af5')][_0x4a8deb('0x17e7')](function(_0x1dc9af){const _0x34f5e5=_0x4a8deb;_0x443ef0[_0x34f5e5('0x2504')]=_0x1dc9af||{'count':0x0,'rows':[]};})[_0x4a8deb('0x16df')](function(_0x3bd522){const _0x15aade=_0x4a8deb;if(_0x3bd522[_0x15aade('0x1457')]&&_0x3bd522[_0x15aade('0x1457')][_0x15aade('0x73e')]&&_0x3bd522[_0x15aade('0x1457')][_0x15aade('0x73e')][_0x15aade('0x1f73')]){_0x443ef0[_0x15aade('0x73e')]=_0x3bd522[_0x15aade('0x1457')]['errors']||[{'message':_0x3bd522[_0x15aade('0x9b6')](),'type':_0x15aade('0x892')}];for(let _0x3ea5b9=0x0;_0x3ea5b9<_0x3bd522[_0x15aade('0x1457')]['errors'][_0x15aade('0x1f73')];_0x3ea5b9+=0x1){_0x56b179[_0x15aade('0x1db9')]({'title':_0x3bd522[_0x15aade('0x1457')]['errors'][_0x3ea5b9][_0x15aade('0x412')],'msg':_0x3bd522[_0x15aade('0x1457')][_0x15aade('0x73e')][_0x3ea5b9][_0x15aade('0x1603')]});}}else _0x56b179[_0x15aade('0x1db9')]({'title':_0x3bd522['status']?_0x15aade('0x14f7')+_0x3bd522[_0x15aade('0x11c5')]+_0x15aade('0x16e4')+_0x3bd522[_0x15aade('0x1833')]:'api.cm.lists','msg':_0x3bd522[_0x15aade('0x1457')]?JSON[_0x15aade('0x678')](_0x3bd522[_0x15aade('0x1457')][_0x15aade('0x1603')]):_0x3bd522['toString']()});});}function _0x24ecf6(_0x37bb51){const _0x95dc93=_0x870c5c;_0xd7c32b['show']({'controller':_0x95dc93('0xa23'),'controllerAs':'vm','templateUrl':_0x141b55,'parent':angular['element'](_0x5e3f5f[_0x95dc93('0x13aa')]),'targetEvent':_0x37bb51,'clickOutsideToClose':!![],'resolve':{'contact':[_0x95dc93('0x177'),function(_0x4342a2){const _0x59587a=_0x95dc93;return _0x4342a2['resolve']('cmContact@get',{'id':_0x443ef0[_0x59587a('0x1c58')]['id']});}],'lists':[_0x95dc93('0x177'),function(_0x263635){const _0x475853=_0x95dc93;return _0x263635[_0x475853('0x898')](_0x475853('0x761'),{'id':_0x2ab35b['getCurrentUser']()['id'],'fields':_0x475853('0x12d2')});}]},'locals':{'contacts':[]}});}function _0xed3dcc(_0x3a230f){const _0x47f68c=_0x870c5c;_0xd7c32b['show']({'controller':_0x47f68c('0xd55'),'controllerAs':'vm','templateUrl':_0x86be6d,'parent':angular['element'](_0x5e3f5f[_0x47f68c('0x13aa')]),'targetEvent':_0x3a230f,'clickOutsideToClose':!![],'resolve':{'contact':[_0x47f68c('0x177'),function(_0xb49818){const _0x3260db=_0x47f68c;return _0xb49818[_0x3260db('0x898')](_0x3260db('0x1f28'),{'id':_0x443ef0['contact']['id']});}],'lists':[_0x47f68c('0x177'),function(_0x4a2c90){const _0x479b5b=_0x47f68c;return _0x4a2c90[_0x479b5b('0x898')](_0x479b5b('0x761'),{'id':_0x2ab35b['getCurrentUser']()['id'],'fields':_0x479b5b('0x12d2')});}]},'locals':{'contacts':[]}})[_0x47f68c('0x17e7')](function(_0x969971){const _0x2edc24=_0x47f68c;if(_0x969971){for(const _0x485a5e in _0x36b307[_0x2edc24('0x178c')][_0x2edc24('0x178c')][_0x2edc24('0x178c')]['vm'][_0x2edc24('0x3b7')]){if(typeof _0x36b307['$parent']['$parent'][_0x2edc24('0x178c')]['vm'][_0x2edc24('0x3b7')][_0x485a5e]!=='undefined'){const _0x226570=_0x36b307[_0x2edc24('0x178c')][_0x2edc24('0x178c')]['$parent']['vm'][_0x2edc24('0x3b7')][_0x485a5e];_0x226570&&_0x226570[_0x2edc24('0x1c58')]&&(_0x969971[_0x2edc24('0x12da')]&&_0x969971['from']['id']&&_0x969971[_0x2edc24('0x12da')]['id']===_0x226570['contact']['id']&&_0x36b307[_0x2edc24('0x178c')][_0x2edc24('0x178c')][_0x2edc24('0x178c')]['vm'][_0x2edc24('0x471')](_0x226570),_0x969971['to']&&_0x969971['to']['id']&&_0x969971['to']['id']===_0x226570[_0x2edc24('0x1c58')]['id']&&_0x36b307[_0x2edc24('0x178c')][_0x2edc24('0x178c')]['$parent']['vm']['removeTab'](_0x226570));}}_0x969971[_0x2edc24('0x1b39')]&&_0x36b307['$parent'][_0x2edc24('0x178c')]['$parent']['vm'][_0x2edc24('0x13b9')](_0x969971[_0x2edc24('0x1b39')]);}});}function _0x4376db(_0x346f49,_0x50a49f){const _0x3a9568=_0x870c5c,_0x35fe6c=_0x443ef0[_0x3a9568('0x221e')][_0x3a9568('0x118a')]||_0x443ef0[_0x3a9568('0x221e')][_0x3a9568('0x2764')]||_0x443ef0['user'][_0x3a9568('0x1467')]||_0x443ef0[_0x3a9568('0x221e')][_0x3a9568('0x105e')]||_0x443ef0[_0x3a9568('0x221e')][_0x3a9568('0x1d98')],_0x1b4b3b=_0x50a49f['mandatoryDisposition'];if(_0x443ef0['newContact']){_0x56b179[_0x3a9568('0x1db9')]({'title':_0x3a9568('0x1ca'),'msg':'Please\x20save\x20the\x20contact\x20before\x20disposing!'});return;}_0xd7c32b[_0x3a9568('0x28e2')]({'controller':_0x3a9568('0x1731'),'controllerAs':'vm','templateUrl':_0x14890a,'parent':angular['element'](_0x5e3f5f[_0x3a9568('0x13aa')]),'targetEvent':_0x50a49f,'clickOutsideToClose':!_0x50a49f[_0x3a9568('0xb20')],'escapeToClose':!_0x50a49f[_0x3a9568('0xb20')],'resolve':{'globalDispositions':[_0x3a9568('0x177'),function(_0x18b6db){const _0x5013fc=_0x3a9568;return _0x18b6db[_0x5013fc('0x898')](_0x5013fc('0x18d5'),{'MailAccountId':_0x5013fc('0x9bb'),'FaxAccountId':_0x5013fc('0x9bb'),'SmsAccountId':_0x5013fc('0x9bb'),'WhatsappAccountId':_0x5013fc('0x9bb'),'OpenchannelAccountId':_0x5013fc('0x9bb'),'ChatWebsiteId':'null','ListId':_0x5013fc('0x9bb')});}]},'onRemoving':function(){const _0x4049fd=_0x3a9568;_0x443ef0[_0x4049fd('0x221e')]&&_0x1b4b3b&&!_0x35fe6c&&_0x287f48[_0x4049fd('0x221e')]['unpause']({'id':_0x443ef0['user']['id']})['$promise'][_0x4049fd('0x16df')](function(_0x50ca5f){const _0x4e42a8=_0x4049fd;console[_0x4e42a8('0x1db9')](_0x50ca5f);});},'locals':{'dispositions':_0x443ef0['tab'][_0x3a9568('0x23fe')],'contact':_0x443ef0[_0x3a9568('0x1c58')],'call':_0x50a49f}})[_0x3a9568('0x17e7')](function(_0x2fb080){const _0x410d63=_0x3a9568;if(_0x2fb080){if(_0x2fb080===_0x410d63('0x1a87'))_0x56b179[_0x410d63('0x130d')]({'title':_0x48e4a0['instant'](_0x410d63('0x1c79')),'msg':_0x48e4a0[_0x410d63('0x1acc')](_0x410d63('0x21a7'))+'\x20'+_0x2fb080});else{if(_0x2fb080===_0x410d63('0xa92')||_0x2fb080==='RESCHEDULE'){}else _0x56b179['success']({'title':_0x48e4a0['instant'](_0x410d63('0x1c79')),'msg':_0x48e4a0[_0x410d63('0x1acc')](_0x410d63('0x1308'))});}}for(const _0x166bbc in _0x36b307['$parent'][_0x410d63('0x178c')][_0x410d63('0x178c')]['vm']['tabs']){if(typeof _0x36b307['$parent'][_0x410d63('0x178c')]['$parent']['vm'][_0x410d63('0x3b7')][_0x166bbc]!==_0x410d63('0xfad')){const _0x402f38=_0x36b307[_0x410d63('0x178c')][_0x410d63('0x178c')][_0x410d63('0x178c')]['vm'][_0x410d63('0x3b7')][_0x166bbc];_0x49cbdd()[_0x410d63('0x5f3')](_0x402f38[_0x410d63('0x1392')],function(_0x5783e8){const _0x3799ec=_0x410d63;return _0x5783e8[_0x3799ec('0x35b')]===_0x50a49f['uniqueid'];});}}_0x36b307[_0x410d63('0x178c')]['vm'][_0x410d63('0x8ce')]();});}function _0xf07ed2(_0x589e7d){const _0x366d59=_0x870c5c;return _0x287f48[_0x366d59('0x25b')][_0x366d59('0x6c7')]({'id':_0x589e7d})[_0x366d59('0x1af5')][_0x366d59('0x17e7')](function(_0x4f2f5f){const _0x106898=_0x366d59;_0x443ef0[_0x106898('0x1523')][_0x106898('0x1341')]=_0x4f2f5f;})['catch'](function(_0x3b2f28){const _0x28fae8=_0x366d59;_0x56b179[_0x28fae8('0x1db9')]({'title':_0x3b2f28['status']?_0x28fae8('0x14f7')+_0x3b2f28['status']+_0x28fae8('0x16e4')+_0x3b2f28[_0x28fae8('0x1833')]:_0x28fae8('0x1478'),'msg':_0x3b2f28[_0x28fae8('0x1457')]?JSON[_0x28fae8('0x678')](_0x3b2f28[_0x28fae8('0x1457')]):_0x3b2f28[_0x28fae8('0x9b6')]()});});}function _0x59e475(_0x5e0b91){return _0x5e0b91===null?undefined:new Date(_0x5e0b91);}function _0x19ed33(_0x47f14e){const _0x30d4c1=_0x870c5c;try{_0x47f14e[_0x30d4c1('0x13ef')]=_0x2b7e10()['render'](_0x47f14e['formData'],{'contact':_0x443ef0['contact'],'user':_0x443ef0['user']});}catch(_0x2bc8f5){console['error'](_0x2bc8f5);}try{_0x36b307['$parent'][_0x30d4c1('0x178c')][_0x30d4c1('0x178c')]['vm'][_0x30d4c1('0x1c0')]({'type':_0x30d4c1('0x2343'),'title':_0x47f14e[_0x30d4c1('0x2aa')],'icon':_0x30d4c1('0x1290'),'color':_0x30d4c1('0x409'),'project':_0x47f14e,'contact':_0x443ef0[_0x30d4c1('0x1c58')]});}catch(_0x411a5a){_0x56b179[_0x30d4c1('0x1db9')]({'title':_0x30d4c1('0x5f'),'msg':_0x30d4c1('0x1965')+JSON[_0x30d4c1('0x678')](_0x411a5a)});}}function _0x82ffa1(_0x386529){return _0x2ab35b['hasPermission'](_0x386529);}_0x36b307[_0x870c5c('0x207c')](_0x870c5c('0x2b4'),function(){});}const _0x3daca6=_0x154fa9;_0x757e16[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x212e'),'dispositions',_0x4376d8('0x17ca'),'call',_0x4376d8('0x1c58'),'Auth',_0x4376d8('0x28da')];function _0x757e16(_0x1afd77,_0x4daa79,_0x37abfc,_0x36574e,_0x5710cf,_0x12bb3c,_0x34fd0,_0x56dde6,_0x35fe76,_0x579e88){const _0xa22c45=_0x4376d8,_0x973e38=this;_0x973e38['isReschedule']=![],_0x973e38[_0xa22c45('0x229')]=![],_0x973e38['queueCampaign']=undefined,_0x973e38[_0xa22c45('0x2a2')]={'count':0x0,'rows':[]},_0x973e38['dispositions']=_0x5710cf['rows'],_0x973e38[_0xa22c45('0x17ca')]=_0x12bb3c[_0xa22c45('0x2319')],_0x973e38['contact']=_0x56dde6,_0x973e38['call']=_0x34fd0,_0x973e38['note']=_0x973e38[_0xa22c45('0x6b1')]['note']||undefined,_0x973e38[_0xa22c45('0x28e9')]=![],_0x973e38[_0xa22c45('0x17d5')]=![],_0x973e38[_0xa22c45('0x2774')]={'minDate':new Date(),'dateTime':new Date()};_0x973e38[_0xa22c45('0x6b1')]&&_0x973e38[_0xa22c45('0x6b1')][_0xa22c45('0xd26')]&&_0x973e38[_0xa22c45('0x6b1')][_0xa22c45('0xd26')]['xmd-voicequeueid']?(_0x973e38['dialerCall']=!![],_0x36574e[_0xa22c45('0x1243')][_0xa22c45('0x170')]({'id':_0x973e38[_0xa22c45('0x6b1')][_0xa22c45('0xd26')][_0xa22c45('0x847')]})[_0xa22c45('0x1af5')][_0xa22c45('0x17e7')](function(_0x4d414f){const _0x479208=_0xa22c45;_0x4d414f&&_0x4d414f[_0x479208('0x2319')]&&_0x4d414f[_0x479208('0x2319')]['length']>0x0&&(_0x973e38[_0x479208('0x17d5')]=!![]);})['catch'](function(_0x4f72bd){const _0x1dc5be=_0xa22c45;_0x37abfc[_0x1dc5be('0x1db9')]({'title':_0x4f72bd[_0x1dc5be('0x11c5')]?'API:'+_0x4f72bd[_0x1dc5be('0x11c5')]+_0x1dc5be('0x16e4')+_0x4f72bd[_0x1dc5be('0x1833')]:'api.voiceQueue.getBlackLists','msg':_0x4f72bd[_0x1dc5be('0x1457')]?JSON[_0x1dc5be('0x678')](_0x4f72bd[_0x1dc5be('0x1457')]):_0x4f72bd[_0x1dc5be('0x9b6')]()});})):_0x36574e[_0xa22c45('0x221e')]['getQueues']({'id':_0x35fe76['getCurrentUser']()['id'],'fields':_0xa22c45('0x1894'),'channel':'voice','type':_0xa22c45('0x1ade'),'nolimit':!![]})['$promise'][_0xa22c45('0x17e7')](function(_0x391c57){const _0x59f741=_0xa22c45;_0x973e38[_0x59f741('0x2a2')]=_0x391c57||{'count':0x0,'rows':[]};})[_0xa22c45('0x16df')](function(_0x4e93bf){const _0x2f4737=_0xa22c45;console[_0x2f4737('0x1db9')](_0x4e93bf);});_0x973e38['onDispositionChange']=_0x38d350,_0x973e38['clearDispositionSelection']=_0x20f0f2,_0x973e38[_0xa22c45('0x24d6')]=_0x4638d9,_0x973e38[_0xa22c45('0x136e')]=_0x5ce220,_0x973e38['saveReschedule']=_0x35f43e;function _0x38d350(_0x1f25bb){const _0x4f9952=_0xa22c45,_0xb66881=_0x49cbdd()[_0x4f9952('0x241')](_0x973e38[_0x4f9952('0x23fe')],_0x973e38[_0x4f9952('0x17ca')],'id');switch(_0x1f25bb){case _0x4f9952('0x1624'):_0x973e38[_0x4f9952('0x1705')]=_0x973e38[_0x4f9952('0x1278')],_0x973e38[_0x4f9952('0x1920')]=_0x49cbdd()[_0x4f9952('0x26f8')](_0xb66881,['ParentId',_0x973e38[_0x4f9952('0x1278')]['id']]),_0x973e38[_0x4f9952('0xb95')]=undefined,_0x973e38[_0x4f9952('0x2b3')]=undefined,_0x973e38[_0x4f9952('0x2608')]=![];break;case'second':_0x973e38[_0x4f9952('0x1705')]=_0x973e38[_0x4f9952('0xb95')],_0x973e38[_0x4f9952('0x2608')]=_0x49cbdd()[_0x4f9952('0x26f8')](_0xb66881,[_0x4f9952('0x1a27'),_0x973e38['secondLevelDisposition']['id']]);break;case _0x4f9952('0x3ba'):_0x973e38[_0x4f9952('0x1705')]=_0x973e38[_0x4f9952('0x2b3')];break;}}function _0x20f0f2(_0x18ece2){const _0x4d3969=_0xa22c45;if(_0x18ece2==='second')_0x973e38['secondLevelDisposition']=undefined,_0x973e38[_0x4d3969('0x2b3')]=undefined,_0x973e38[_0x4d3969('0x1705')]=_0x973e38[_0x4d3969('0x1278')];else _0x18ece2==='third'&&(_0x973e38['thirdLevelDisposition']=undefined,_0x973e38[_0x4d3969('0x1705')]=_0x973e38[_0x4d3969('0xb95')]);}function _0x15215a(){const _0x4d7771=_0xa22c45,_0x4ae577=_0x973e38['selectedDisposition']?_0x973e38[_0x4d7771('0x1705')][_0x4d7771('0x2aa')][_0x4d7771('0x19b')]():undefined;return{'id':_0x973e38[_0x4d7771('0x6b1')][_0x4d7771('0x35b')],'disposition':_0x973e38[_0x4d7771('0x1278')]?_0x973e38[_0x4d7771('0x1278')][_0x4d7771('0x2aa')]:null,'secondDisposition':_0x973e38['secondLevelDisposition']?_0x973e38[_0x4d7771('0xb95')][_0x4d7771('0x2aa')]:null,'thirdDisposition':_0x973e38['thirdLevelDisposition']?_0x973e38['thirdLevelDisposition'][_0x4d7771('0x2aa')]:null,'dispositionat':_0x107a13()(),'amd':_0x4ae577===_0x4d7771('0x16de'),'fax':_0x4ae577===_0x4d7771('0xc23'),'blacklist':_0x4ae577===_0x4d7771('0x2353'),'recallme':_0x4ae577===_0x4d7771('0x229'),'UserId':_0x4ae577===_0x4d7771('0x229')?_0x35fe76[_0x4d7771('0x2831')]()['id']:null,'OwnerId':_0x35fe76[_0x4d7771('0x2831')]()['id']};}function _0x2c86af(){const _0x59099d=_0xa22c45;return _0x36574e['voiceCallReport']['update']({'id':_0x973e38['call'][_0x59099d('0x35b')],'userDisposition':_0x973e38['firstLevelDisposition']?_0x973e38[_0x59099d('0x1278')][_0x59099d('0x2aa')]:null,'userSecondDisposition':_0x973e38[_0x59099d('0xb95')]?_0x973e38[_0x59099d('0xb95')][_0x59099d('0x2aa')]:null,'userThirdDisposition':_0x973e38[_0x59099d('0x2b3')]?_0x973e38[_0x59099d('0x2b3')][_0x59099d('0x2aa')]:null,'note':_0x973e38[_0x59099d('0x1eb0')],'UserId':_0x35fe76[_0x59099d('0x2831')]()['id'],'ContactId':_0x973e38['contact']['id']})[_0x59099d('0x1af5')][_0x59099d('0x16df')](function(_0x7c4067){const _0x565f9c=_0x59099d;_0x37abfc[_0x565f9c('0x1db9')]({'title':_0x7c4067[_0x565f9c('0x11c5')]?_0x565f9c('0x14f7')+_0x7c4067[_0x565f9c('0x11c5')]+'\x20-\x20'+_0x7c4067[_0x565f9c('0x1833')]:_0x565f9c('0x1997'),'msg':_0x7c4067[_0x565f9c('0x1457')]?JSON['stringify'](_0x7c4067[_0x565f9c('0x1457')]):_0x7c4067[_0x565f9c('0x9b6')]()});});}function _0x1a8241(){const _0xad3980=_0xa22c45;return _0x36574e['voiceRecording'][_0xad3980('0x1c53')]({'uniqueid':_0x973e38[_0xad3980('0x6b1')][_0xad3980('0x35b')]})[_0xad3980('0x1af5')]['then'](function(_0x3e9f12){const _0xde8364=_0xad3980;if(_0x3e9f12)for(let _0x571fd6=0x0;_0x571fd6<_0x3e9f12[_0xde8364('0x2319')][_0xde8364('0x1f73')];_0x571fd6+=0x1){_0x36574e[_0xde8364('0x5f4')][_0xde8364('0x27ba')]({'id':_0x3e9f12[_0xde8364('0x2319')][_0x571fd6]['id'],'userDisposition':_0x973e38['firstLevelDisposition']?_0x973e38[_0xde8364('0x1278')][_0xde8364('0x2aa')]:null,'userSecondDisposition':_0x973e38['secondLevelDisposition']?_0x973e38['secondLevelDisposition'][_0xde8364('0x2aa')]:null,'userThirdDisposition':_0x973e38['thirdLevelDisposition']?_0x973e38[_0xde8364('0x2b3')][_0xde8364('0x2aa')]:null})['$promise'][_0xde8364('0x16df')](function(_0x41b070){const _0x59daa3=_0xde8364;_0x37abfc['error']({'title':_0x41b070['status']?_0x59daa3('0x14f7')+_0x41b070[_0x59daa3('0x11c5')]+_0x59daa3('0x16e4')+_0x41b070['statusText']:'SYSTEM:UPDATEVOICERECORDING','msg':_0x41b070[_0x59daa3('0x1457')]?JSON[_0x59daa3('0x678')](_0x41b070[_0x59daa3('0x1457')]):_0x41b070[_0x59daa3('0x9b6')]()});});}})['catch'](function(_0x261a7f){const _0xa89cd2=_0xad3980;_0x37abfc[_0xa89cd2('0x1db9')]({'title':_0x261a7f[_0xa89cd2('0x11c5')]?_0xa89cd2('0x14f7')+_0x261a7f['status']+_0xa89cd2('0x16e4')+_0x261a7f[_0xa89cd2('0x1833')]:_0xa89cd2('0x1c87'),'msg':_0x261a7f['data']?JSON[_0xa89cd2('0x678')](_0x261a7f[_0xa89cd2('0x1457')]):_0x261a7f[_0xa89cd2('0x9b6')]()});});}function _0x30e5d9(){const _0x3b2aed=_0xa22c45;return _0x36574e[_0x3b2aed('0x255c')][_0x3b2aed('0x27ba')](_0x15215a())[_0x3b2aed('0x1af5')][_0x3b2aed('0x16df')](function(_0xf68787){const _0x14caf1=_0x3b2aed;_0x37abfc[_0x14caf1('0x1db9')]({'title':_0xf68787[_0x14caf1('0x11c5')]?'API:'+_0xf68787[_0x14caf1('0x11c5')]+_0x14caf1('0x16e4')+_0xf68787['statusText']:'SYSTEM:UPDATECMHOPPERFINAL','msg':_0xf68787[_0x14caf1('0x1457')]?JSON[_0x14caf1('0x678')](_0xf68787[_0x14caf1('0x1457')]):_0xf68787['toString']()});});}function _0xac29c3(){const _0x693f76=_0xa22c45;return _0x36574e[_0x693f76('0x2231')][_0x693f76('0x27ba')](_0x15215a())[_0x693f76('0x1af5')][_0x693f76('0x16df')](function(_0x585781){const _0x336b48=_0x693f76;_0x37abfc[_0x336b48('0x1db9')]({'title':_0x585781[_0x336b48('0x11c5')]?_0x336b48('0x14f7')+_0x585781[_0x336b48('0x11c5')]+_0x336b48('0x16e4')+_0x585781[_0x336b48('0x1833')]:_0x336b48('0x10b2'),'msg':_0x585781['data']?JSON[_0x336b48('0x678')](_0x585781[_0x336b48('0x1457')]):_0x585781['toString']()});});}function _0x2ef0fd(_0x1cc847){const _0x46ee84=_0xa22c45;if(_0x1cc847)return _0x36574e[_0x46ee84('0x1243')][_0x46ee84('0x170')]({'id':_0x1cc847,'type':_0x46ee84('0x1ade'),'fields':'id'})[_0x46ee84('0x1af5')][_0x46ee84('0x17e7')](function(_0x297eec){const _0x1fb683=_0x46ee84,_0x31410e=[];if(_0x297eec&&_0x297eec[_0x1fb683('0x335')]>0x0){for(let _0x13cf8b=0x0;_0x13cf8b<_0x297eec[_0x1fb683('0x2319')][_0x1fb683('0x1f73')];_0x13cf8b+=0x1){const _0x274577=angular[_0x1fb683('0x14e5')](_0x973e38['contact']);delete _0x274577['id'],_0x274577['ListId']=_0x297eec['rows'][_0x13cf8b]['id'],_0x31410e['push'](_0x36574e[_0x1fb683('0x1d2a')]['save'](_0x274577)[_0x1fb683('0x1af5')]);}return _0x4daa79[_0x1fb683('0x1283')](_0x31410e);}_0x37abfc[_0x1fb683('0x130d')]({'title':_0x579e88[_0x1fb683('0x1acc')]('DASHBOARDS.INFO'),'msg':_0x579e88[_0x1fb683('0x1acc')](_0x1fb683('0xf6d'))+'\x20'+_0x973e38['selectedDisposition']}),_0x973e38[_0x1fb683('0x1705')]=undefined;return;})[_0x46ee84('0x17e7')](function(_0x59085f){const _0x3790f5=_0x46ee84;_0x59085f&&_0x1afd77['hide'](_0x973e38['selectedDisposition']?_0x973e38['selectedDisposition'][_0x3790f5('0x2aa')]['toUpperCase']():'');})[_0x46ee84('0x16df')](function(_0x3f9cb2){const _0x5d473b=_0x46ee84;_0x37abfc[_0x5d473b('0x1db9')]({'title':_0x3f9cb2[_0x5d473b('0x11c5')]?_0x5d473b('0x14f7')+_0x3f9cb2[_0x5d473b('0x11c5')]+'\x20-\x20'+_0x3f9cb2[_0x5d473b('0x1833')]:_0x5d473b('0x989'),'msg':_0x3f9cb2[_0x5d473b('0x1457')]?JSON['stringify'](_0x3f9cb2['data']):_0x3f9cb2[_0x5d473b('0x9b6')]()}),_0x1afd77[_0x5d473b('0x212a')](_0x973e38[_0x5d473b('0x1705')]?_0x973e38[_0x5d473b('0x1705')][_0x5d473b('0x2aa')][_0x5d473b('0x14e2')]():'');});}function _0x4638d9(_0x5baaab){const _0x4eb043=_0xa22c45;_0x973e38['selectedDisposition']=_0x49cbdd()[_0x4eb043('0x390')](_0x5baaab)?_0x973e38[_0x4eb043('0x1705')]:{'name':_0x5baaab};_0x5baaab&&(_0x973e38[_0x4eb043('0x1278')]=_0x973e38[_0x4eb043('0x1705')]);_0x973e38[_0x4eb043('0x6b1')][_0x4eb043('0x1eb0')]=_0x973e38[_0x4eb043('0x1eb0')],_0x2c86af(),_0x1a8241();_0x973e38[_0x4eb043('0x28e9')]&&(_0x30e5d9(),_0xac29c3());if(!_0x49cbdd()['isNil'](_0x973e38[_0x4eb043('0x1705')]))switch(_0x973e38[_0x4eb043('0x1705')]['name']['toLowerCase']()){case _0x4eb043('0x2353'):_0x973e38[_0x4eb043('0x6b1')]&&_0x973e38['call']['variables']&&_0x973e38[_0x4eb043('0x6b1')][_0x4eb043('0xd26')][_0x4eb043('0x847')]&&_0x2ef0fd(_0x973e38[_0x4eb043('0x6b1')]['variables'][_0x4eb043('0x847')]);break;case _0x4eb043('0x1eb8'):_0x973e38[_0x4eb043('0xb6')]=!![],_0x973e38[_0x4eb043('0x229')]=![];break;case _0x4eb043('0x229'):_0x973e38[_0x4eb043('0xb6')]=!![],_0x973e38[_0x4eb043('0x229')]=!![];break;default:_0x1afd77[_0x4eb043('0x212a')](_0x973e38[_0x4eb043('0x1705')]?_0x973e38[_0x4eb043('0x1705')][_0x4eb043('0x2aa')][_0x4eb043('0x14e2')]():'');}else _0x1afd77['hide'](_0x973e38[_0x4eb043('0x1705')]?_0x973e38[_0x4eb043('0x1705')][_0x4eb043('0x2aa')][_0x4eb043('0x14e2')]():'');}function _0x5ce220(){const _0x3eff4e=_0xa22c45;_0x1afd77[_0x3eff4e('0x1d47')]();}function _0x35f43e(){const _0x2cd420=_0xa22c45;return _0x973e38[_0x2cd420('0x94f')]=!![],_0x36574e['cmHopper'][_0x2cd420('0x2439')]({'phone':_0x973e38[_0x2cd420('0x1c58')][_0x2cd420('0x2154')],'UserId':_0x973e38['recallme']?_0x35fe76[_0x2cd420('0x2831')]()['id']:null,'ContactId':_0x973e38[_0x2cd420('0x1c58')]['id'],'ListId':_0x973e38[_0x2cd420('0x1c58')]['ListId'],'VoiceQueueId':_0x973e38[_0x2cd420('0x28e9')]?Number(_0x973e38['call'][_0x2cd420('0x847')]):_0x973e38[_0x2cd420('0x25f7')]?_0x973e38['queueCampaign']['id']:null,'scheduledat':_0x107a13()(_0x973e38[_0x2cd420('0x2774')][_0x2cd420('0x268e')])[_0x2cd420('0x1c0d')]('YYYY-MM-DD\x20HH:mm:ss'),'priority':0x3,'recallme':_0x973e38[_0x2cd420('0x229')],'OwnerId':_0x35fe76['getCurrentUser']()['id']})[_0x2cd420('0x1af5')][_0x2cd420('0x17e7')](function(){const _0x5e95de=_0x2cd420;_0x973e38[_0x5e95de('0x28e9')]&&_0x36574e[_0x5e95de('0x255c')][_0x5e95de('0x27ba')]({'id':_0x973e38[_0x5e95de('0x6b1')]['uniqueid'],'rescheduled':!![],'rescheduledat':_0x107a13()(_0x973e38[_0x5e95de('0x2774')][_0x5e95de('0x268e')])['format'](_0x5e95de('0x1e17')),'recallme':_0x973e38[_0x5e95de('0x229')]})['$promise'][_0x5e95de('0x16df')](function(_0x210366){const _0x7ffddd=_0x5e95de;console[_0x7ffddd('0x1d63')](_0x210366);});})[_0x2cd420('0x17e7')](function(){const _0x272ff3=_0x2cd420;_0x37abfc[_0x272ff3('0x130d')]({'title':_0x579e88[_0x272ff3('0x1acc')](_0x272ff3('0x1c79')),'msg':_0x579e88[_0x272ff3('0x1acc')]('DASHBOARDS.CALL_DISPOSED')+'\x20'+(_0x973e38[_0x272ff3('0x229')]?_0x579e88[_0x272ff3('0x1acc')](_0x272ff3('0x1698')):_0x579e88[_0x272ff3('0x1acc')]('DASHBOARDS.RESCHEDULE'))});})['catch'](function(){const _0xa2d9d6=_0x2cd420;_0x1afd77[_0xa2d9d6('0x212a')](_0x973e38[_0xa2d9d6('0x1705')]?_0x973e38[_0xa2d9d6('0x1705')][_0xa2d9d6('0x2aa')][_0xa2d9d6('0x14e2')]():'');})[_0x2cd420('0x74e')](function(){const _0x9bd1d2=_0x2cd420;_0x973e38[_0x9bd1d2('0x94f')]=![],_0x1afd77[_0x9bd1d2('0x212a')](_0x973e38[_0x9bd1d2('0x1705')]?_0x973e38['selectedDisposition'][_0x9bd1d2('0x2aa')]['toUpperCase']():'');});}}const _0x4f3912=_0x757e16;_0x897a3b[_0x4376d8('0x1b9c')]=['$scope','$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0xef1'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0x1c58'),_0x4376d8('0x6b1'),_0x4376d8('0x1885'),_0x4376d8('0x229'),_0x4376d8('0x28da')];function _0x897a3b(_0x4e3f99,_0x21f411,_0x4bbd7a,_0x5d10c7,_0x36aca1,_0xba9bdc,_0x4bafe6,_0x55f8d1,_0x5948a7,_0x271dd8,_0x323d01,_0x111be3){const _0x191da4=_0x4376d8,_0x5959f1=this;_0x5959f1['call']=_0x5948a7,_0x5959f1[_0x191da4('0x1c58')]=_0x55f8d1,_0x5959f1[_0x191da4('0x2774')]={'minDate':new Date(),'dateTime':new Date()};function _0x536d96(){const _0x2a6346=_0x191da4;return _0x5959f1[_0x2a6346('0x94f')]=!![],_0x4bafe6[_0x2a6346('0xf6a')][_0x2a6346('0x2439')]({'phone':_0x5959f1[_0x2a6346('0x1c58')][_0x2a6346('0x2154')],'UserId':_0x323d01?_0x271dd8[_0x2a6346('0x2831')]()['id']:null,'ContactId':_0x5959f1[_0x2a6346('0x1c58')]['id'],'ListId':_0x5959f1[_0x2a6346('0x1c58')]['ListId'],'VoiceQueueId':Number(_0x5959f1[_0x2a6346('0x6b1')][_0x2a6346('0x847')]),'scheduledat':_0x107a13()(_0x5959f1['hopper'][_0x2a6346('0x268e')])[_0x2a6346('0x1c0d')](_0x2a6346('0x1e17')),'priority':0x3,'recallme':_0x323d01,'OwnerId':_0x271dd8[_0x2a6346('0x2831')]()['id']})[_0x2a6346('0x1af5')][_0x2a6346('0x17e7')](function(){const _0x2a82a5=_0x2a6346;_0x4bafe6[_0x2a82a5('0x255c')][_0x2a82a5('0x27ba')]({'id':_0x5959f1[_0x2a82a5('0x6b1')]['uniqueid'],'rescheduled':!![],'rescheduledat':_0x107a13()(_0x5959f1[_0x2a82a5('0x2774')][_0x2a82a5('0x268e')])['format'](_0x2a82a5('0x1e17')),'recallme':_0x323d01})['$promise'];})['then'](function(){const _0x1344a8=_0x2a6346;_0xba9bdc[_0x1344a8('0x130d')]({'title':_0x111be3['instant'](_0x1344a8('0x1c79')),'msg':_0x111be3[_0x1344a8('0x1acc')](_0x1344a8('0x21a7'))+'\x20'+(_0x323d01?_0x111be3[_0x1344a8('0x1acc')](_0x1344a8('0x1698')):_0x111be3[_0x1344a8('0x1acc')](_0x1344a8('0x74f')))}),_0x5d10c7['hide']();})[_0x2a6346('0x16df')](function(_0x10c6bc){const _0x2cd15d=_0x2a6346;_0x5d10c7[_0x2cd15d('0x1d47')](_0x10c6bc);})[_0x2a6346('0x74e')](function(){const _0x20470d=_0x2a6346;_0x5959f1[_0x20470d('0x94f')]=![];});}function _0x2f1b18(){const _0x3c7188=_0x191da4;_0x5d10c7[_0x3c7188('0x1d47')]();}_0x5959f1[_0x191da4('0x136e')]=_0x2f1b18,_0x5959f1[_0x191da4('0x312')]=_0x536d96;}const _0x3c6cf4=_0x897a3b;_0x4f7e0a['$inject']=['$mdDialog',_0x4376d8('0x28da'),_0x4376d8('0x212e'),'contacts',_0x4376d8('0x5c8'),_0x4376d8('0x108a')];function _0x4f7e0a(_0xda890f,_0x44100c,_0x1ad632,_0xb86fb4,_0x55e637,_0x33e3e4){const _0x1f1b4d=_0x4376d8,_0x4f7fe5=this;_0x4f7fe5[_0x1f1b4d('0x5c8')]=_0x55e637,_0x4f7fe5[_0x1f1b4d('0x115a')]=0x1;function _0x51b793(){const _0x25c7aa=_0x1f1b4d;_0x1ad632[_0x25c7aa('0x25b')][_0x25c7aa('0x1c53')]({'fields':_0x25c7aa('0x12d2'),'nolimit':!![]})[_0x25c7aa('0x1af5')][_0x25c7aa('0x17e7')](function(_0xe542a1){const _0x25dd04=_0x25c7aa;_0x4f7fe5['lists']=_0x49cbdd()[_0x25dd04('0x1c69')](_0xe542a1['rows'])[_0x25dd04('0x8de')]('id')[_0x25dd04('0x250e')](_0x25dd04('0x2aa'))[_0x25dd04('0x175b')](),_0x1ad632[_0x25dd04('0x14c3')][_0x25dd04('0x1c53')]({'fields':'id,alias','nolimit':!![]})['$promise'][_0x25dd04('0x17e7')](function(_0x5064f9){const _0x59c701=_0x25dd04;_0x4f7fe5[_0x59c701('0x1341')]=_0x5064f9[_0x59c701('0x2319')],_0x4f7fe5[_0x59c701('0x2720')]=_0x49cbdd()[_0x59c701('0x787')](_0xb86fb4,function(_0x1b00be){const _0x2f3e05=_0x59c701;return Object[_0x2f3e05('0x1c0f')](_0x1b00be)[_0x2f3e05('0xccd')](function(_0x3e9b42){const _0x20f4ad=_0x2f3e05;if(Number(_0x1b00be[_0x3e9b42])===Number(_0x4f7fe5[_0x20f4ad('0x5c8')])){if(_0x3e9b42['startsWith'](_0x20f4ad('0x481'))){const _0x103dc3=_0x49cbdd()['find'](_0x4f7fe5[_0x20f4ad('0x1341')],['id',Number(_0x49cbdd()[_0x20f4ad('0x1ee5')](_0x3e9b42,_0x20f4ad('0x481')))]);_0x1b00be[_0x20f4ad('0x26fd')]=_0x103dc3?_0x103dc3[_0x20f4ad('0x16bb')]:_0x44100c['instant']('DASHBOARDS.UNKNOWN');}else _0x1b00be[_0x20f4ad('0x26fd')]=_0x3e9b42;}}),_0x1b00be;});});})['then'](function(){_0x4f7fe5['paginatedContacts']=_0x49cbdd()['chunk'](_0xb86fb4,0x4);})['catch'](function(_0x1dc442){const _0x44a868=_0x25c7aa;_0x33e3e4[_0x44a868('0x1db9')]({'title':_0x1dc442[_0x44a868('0x11c5')]?'API:'+_0x1dc442['status']+_0x44a868('0x16e4')+_0x1dc442[_0x44a868('0x1833')]:_0x44a868('0x2628'),'msg':_0x1dc442['data']?JSON[_0x44a868('0x678')](_0x1dc442[_0x44a868('0x1457')][_0x44a868('0x1603')]):_0x1dc442[_0x44a868('0x9b6')]()});});}function _0x36556e(){const _0x328318=_0x1f1b4d;_0xda890f[_0x328318('0x212a')](_0x4f7fe5[_0x328318('0x2573')]);}_0x4f7fe5['onInit']=_0x51b793,_0x4f7fe5['selectContact']=_0x36556e;}const _0x2c52f5=_0x4f7e0a;_0x473f3e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x33a')];function _0x473f3e(_0x3ac904,_0x6010ce){const _0x6e54c1=_0x4376d8;let _0x43cb83=_0x6010ce(function(){},0x3e7);_0x3ac904[_0x6e54c1('0x207c')](_0x6e54c1('0x2b4'),function(){const _0x462c73=_0x6e54c1;_0x43cb83&&(_0x6010ce[_0x462c73('0x1d47')](_0x43cb83),_0x43cb83=null);});}const _0x198c62=_0x473f3e;_0x4c6f03[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),'$window',_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x25aa')];function _0x4c6f03(_0x4918a9,_0x4fced5,_0x1857b2,_0x3094d6,_0x23c190,_0x2791e7,_0x2d43b0,_0x53dfb9,_0x429c90){const _0x24bd53=_0x4376d8,_0x335ca7=this;_0x335ca7[_0x24bd53('0xfb4')]=![],_0x335ca7[_0x24bd53('0x26de')]=!![],_0x335ca7[_0x24bd53('0x94f')]=[],_0x335ca7['dispositions']={'count':0x0,'rows':[]},_0x335ca7[_0x24bd53('0x197c')]=_0x53dfb9[_0x24bd53('0x2831')](),_0x335ca7[_0x24bd53('0x14c4')]={},_0x335ca7[_0x24bd53('0x911')]={'count':0x0,'rows':[]},_0x335ca7['query']={'fields':_0x24bd53('0x6ea'),'type':'outbound','queuecallerexitreason':'TIMEOUT'+','+_0x24bd53('0x227b'),'sort':_0x24bd53('0x1ac6'),'limit':0xa,'page':0x1},_0x335ca7['getAbandonedCalls']=_0x26708e,_0x335ca7['refreshAbandonedCalls']=_0x39a39c,_0x335ca7[_0x24bd53('0xdf0')]=_0x52f816,_0x335ca7[_0x24bd53('0xa12')]=_0x56add5,_0x335ca7[_0x24bd53('0x164c')]=_0x309152,_0x335ca7[_0x24bd53('0x6b1')]=_0x4918a9[_0x24bd53('0x178c')][_0x24bd53('0x178c')]['$parent'][_0x24bd53('0x178c')]['vm'][_0x24bd53('0x6b1')],_0x335ca7[_0x24bd53('0x194')]=_0x4918a9[_0x24bd53('0x178c')][_0x24bd53('0x178c')]['$parent'][_0x24bd53('0x178c')]['vm']['transfer'],_0x335ca7['webcall']=_0x4918a9[_0x24bd53('0x178c')][_0x24bd53('0x178c')][_0x24bd53('0x178c')][_0x24bd53('0x178c')]['vm']['webcall'],_0x335ca7['webtransfer']=_0x4918a9['$parent']['$parent'][_0x24bd53('0x178c')][_0x24bd53('0x178c')]['vm'][_0x24bd53('0x23')],_0x335ca7['onSearchBarCollapse']=_0x208861,_0x335ca7[_0x24bd53('0x1181')]=_0x291a6c,_0x429c90[_0x24bd53('0x1335')](_0x24bd53('0x174c'),_0x321a74),_0x429c90['onWithoutApply'](_0x24bd53('0x140f'),_0x2fadc0),_0x52f816();function _0x52f816(){const _0x2c0eeb=_0x24bd53;return _0x2d43b0[_0x2c0eeb('0x1f27')][_0x2c0eeb('0x1c53')]({'MailAccountId':'null','FaxAccountId':_0x2c0eeb('0x9bb'),'SmsAccountId':'null','WhatsappAccountId':_0x2c0eeb('0x9bb'),'OpenchannelAccountId':_0x2c0eeb('0x9bb'),'ChatWebsiteId':_0x2c0eeb('0x9bb')})[_0x2c0eeb('0x1af5')][_0x2c0eeb('0x17e7')](function(_0x4abfe3){const _0x3c1af1=_0x2c0eeb;return _0x335ca7[_0x3c1af1('0x23fe')]=_0x4abfe3?_0x4abfe3[_0x3c1af1('0x2319')]:[],_0x2d43b0['user'][_0x3c1af1('0x1f3b')]({'id':_0x53dfb9[_0x3c1af1('0x2831')]()['id'],'fields':_0x3c1af1('0x12d2'),'channel':_0x3c1af1('0x1fe1'),'type':_0x3c1af1('0x1ade'),'nolimit':!![]})[_0x3c1af1('0x1af5')];})[_0x2c0eeb('0x17e7')](function(_0x7a064b){const _0x582412=_0x2c0eeb;_0x335ca7['queues']=_0x7a064b||{'count':0x0,'rows':[]},_0x335ca7[_0x582412('0xf91')]=_0x49cbdd()[_0x582412('0x250e')](_0x49cbdd()[_0x582412('0x8de')](_0x335ca7[_0x582412('0x14c4')][_0x582412('0x2319')],_0x582412('0x2aa')),'name'),_0x335ca7['defaultQueues']=_0x335ca7[_0x582412('0x14c4')][_0x582412('0x2319')]?_0x49cbdd()[_0x582412('0x787')](_0x335ca7[_0x582412('0x14c4')][_0x582412('0x2319')],_0x582412('0x2aa'))[_0x582412('0x1eba')](','):undefined;})[_0x2c0eeb('0x17e7')](function(){_0x335ca7['quickFilters']=_0x5e1738();})[_0x2c0eeb('0x16df')](function(_0x2d983b){console['log'](_0x2d983b);})[_0x2c0eeb('0x74e')](function(){const _0x536ae6=_0x2c0eeb;let _0x2437ef=_0x23c190[_0x536ae6('0x1a93')][_0x536ae6('0x3b8')](_0x536ae6('0xbf8')+_0x335ca7[_0x536ae6('0x197c')]['id']);if(_0x2437ef)_0x2437ef=JSON['parse'](_0x2437ef),_0x2437ef[_0x536ae6('0x826')]&&(_0x335ca7['query']=_0x49cbdd()[_0x536ae6('0x1ced')](_0x2437ef['query'],_0x49cbdd()[_0x536ae6('0x15c3')](_0x335ca7[_0x536ae6('0x826')],[_0x536ae6('0x1b22'),_0x536ae6('0x193b'),_0x536ae6('0x115a')])),_0x335ca7[_0x536ae6('0x826')]=_0x49cbdd()[_0x536ae6('0x15c3')](_0x335ca7['query'],_0x536ae6('0x2483')));else{const _0x214f02={'$gte':_0x107a13()()['startOf'](_0x536ae6('0x7c7'))[_0x536ae6('0x1376')](0x0,!![])[_0x536ae6('0x1c0d')](),'$lte':_0x107a13()()['endOf'](_0x536ae6('0x7c7'))[_0x536ae6('0x1376')](0x0,!![])['format']()};_0x335ca7[_0x536ae6('0x826')]['createdAt']=_0x214f02;}_0x335ca7['isSearchBarVisible']=_0x335ca7[_0x536ae6('0x826')][_0x536ae6('0x2483')]?!![]:![],_0x335ca7[_0x536ae6('0x1eb9')]();});}function _0x5e1738(){const _0x4958fa=_0x24bd53;return[{'name':_0x4958fa('0x1786'),'key':'createdAt','type':_0x4958fa('0xbd4'),'label':_0x4958fa('0x1ee1')},{'name':_0x4958fa('0x1874'),'key':'UserId','type':_0x4958fa('0x2897'),'label':_0x4958fa('0x351'),'customOptions':[{'value':_0x335ca7['currentUser']['id'],'translate':_0x4958fa('0x2422')},{'value':_0x4958fa('0xb84'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x4958fa('0x9cf')}]},{'name':'Campaign','key':_0x4958fa('0x1bd'),'type':_0x4958fa('0x1227'),'label':'DASHBOARDS.SELECT_CAMPAIGN','options':_0x335ca7[_0x4958fa('0x14c4')][_0x4958fa('0x2319')],'ngValue':_0x4958fa('0x2aa'),'clearAll':![]}];}function _0x26708e(){const _0x3265ae=_0x24bd53;_0x335ca7['query']['queue']=_0x335ca7[_0x3265ae('0x826')][_0x3265ae('0x1bd')]||_0x335ca7[_0x3265ae('0x86c')][_0x3265ae('0x2007')](','),_0x335ca7['query'][_0x3265ae('0xf19')]=(_0x335ca7[_0x3265ae('0x826')]['page']-0x1)*_0x335ca7[_0x3265ae('0x826')]['limit'];const _0x5a1bed={'query':_0x335ca7['query']};_0x23c190[_0x3265ae('0x1a93')][_0x3265ae('0x230f')](_0x3265ae('0xbf8')+_0x335ca7[_0x3265ae('0x197c')]['id'],JSON[_0x3265ae('0x678')](_0x5a1bed)),_0x335ca7['promise']=_0x2d43b0[_0x3265ae('0x2086')][_0x3265ae('0xeb6')](_0x335ca7[_0x3265ae('0x826')],_0x10531b)['$promise'];}function _0x10531b(_0x2b1937){const _0x35bfc4=_0x24bd53;_0x335ca7[_0x35bfc4('0x911')]=_0x2b1937||{'count':0x0,'rows':[]},_0x335ca7[_0x35bfc4('0x26de')]=!![];}function _0x309152(_0x2a6d21){const _0x5b4c38=_0x24bd53;_0x1857b2[_0x5b4c38('0x28e2')]({'controller':_0x5b4c38('0xf7b'),'controllerAs':'vm','templateUrl':_0x5b4c38('0x641'),'parent':angular[_0x5b4c38('0x1ce1')](_0x3094d6[_0x5b4c38('0x13aa')]),'targetEvent':_0x2a6d21,'resolve':{'globalDispositions':[_0x5b4c38('0x177'),function(_0x1bbe59){const _0x16c45c=_0x5b4c38;return _0x1bbe59[_0x16c45c('0x898')](_0x16c45c('0x18d5'),{'MailAccountId':_0x16c45c('0x9bb'),'FaxAccountId':_0x16c45c('0x9bb'),'SmsAccountId':_0x16c45c('0x9bb'),'WhatsappAccountId':_0x16c45c('0x9bb'),'OpenchannelAccountId':_0x16c45c('0x9bb'),'ChatWebsiteId':'null','ListId':_0x16c45c('0x9bb')});}]},'locals':{'dispositions':_0x335ca7[_0x5b4c38('0x23fe')],'call':_0x2a6d21}})[_0x5b4c38('0x17e7')](function(_0x3583d9){const _0x23903f=_0x5b4c38;if(_0x3583d9){_0x335ca7[_0x23903f('0x94f')][_0x2a6d21['id']]=!![];const _0x307d71={'id':_0x2a6d21['id'],'lastAssignedTo':_0x2a6d21['assigned']?_0x335ca7[_0x23903f('0x197c')][_0x23903f('0x2aa')]:null,'assigned':_0x2a6d21[_0x23903f('0xcec')],'disposition':_0x3583d9[_0x23903f('0x11f4')]||null,'secondDisposition':_0x3583d9[_0x23903f('0x19ca')]||null,'thirdDisposition':_0x3583d9[_0x23903f('0x136f')]||null};_0x2d43b0[_0x23903f('0x2086')][_0x23903f('0x27ba')](_0x307d71)[_0x23903f('0x1af5')][_0x23903f('0x16df')](function(_0x23a9b2){const _0x58d2b1=_0x23903f;console[_0x58d2b1('0x1d63')](_0x23a9b2);})[_0x23903f('0x74e')](function(){const _0x36ad45=_0x23903f;_0x335ca7[_0x36ad45('0x94f')][_0x2a6d21['id']]=![];});}});}function _0x208861(){const _0x13fbe0=_0x24bd53;_0x335ca7[_0x13fbe0('0x826')]['filter']=undefined,_0x335ca7['isSearchBarVisible']=![];}function _0x291a6c(){const _0x19a03a=_0x24bd53;_0x335ca7[_0x19a03a('0x1949')]=!![];}let _0x3f4583=!![],_0x39f46f=0x1;_0x4918a9[_0x24bd53('0x620')](_0x24bd53('0x65e'),function(_0x217cac,_0x39c232){const _0x2eba7d=_0x24bd53;_0x3f4583?_0x4fced5(function(){_0x3f4583=![];}):(!_0x39c232&&(_0x39f46f=_0x335ca7[_0x2eba7d('0x826')][_0x2eba7d('0x115a')]),_0x217cac!==_0x39c232&&(_0x335ca7[_0x2eba7d('0x826')][_0x2eba7d('0x115a')]=0x1),!_0x217cac&&(_0x335ca7[_0x2eba7d('0x826')][_0x2eba7d('0x115a')]=_0x39f46f),_0x335ca7[_0x2eba7d('0x1eb9')]());});function _0x39a39c(){const _0x1ec5a7=_0x24bd53;_0x335ca7[_0x1ec5a7('0xfb4')]=![],_0x335ca7[_0x1ec5a7('0x1eb9')]();}function _0x56add5(_0x15d34b){const _0x31b643=_0x24bd53;_0x15d34b&&(_0x335ca7[_0x31b643('0x94f')][_0x15d34b['id']]=!![],_0x2d43b0[_0x31b643('0x2086')][_0x31b643('0x27ba')]({'id':_0x15d34b['id'],'lastAssignedTo':_0x15d34b[_0x31b643('0xcec')]?_0x335ca7[_0x31b643('0x197c')][_0x31b643('0x2aa')]:null,'assigned':_0x15d34b['assigned']})['$promise'][_0x31b643('0x16df')](function(_0x142e8f){console['log'](_0x142e8f);})[_0x31b643('0x74e')](function(){const _0x59523a=_0x31b643;_0x335ca7[_0x59523a('0x94f')][_0x15d34b['id']]=![];}));}function _0x321a74(_0x39c67c){const _0x2d8a60=_0x24bd53;_0x335ca7[_0x2d8a60('0xf91')]&&_0x39c67c['type']===_0x2d8a60('0x1ade')&&_0x335ca7['queuesMap'][_0x39c67c[_0x2d8a60('0x1bd')]]&&(_0x335ca7[_0x2d8a60('0xfb4')]=!![]);}function _0x2fadc0(_0x49b131){const _0x3789b6=_0x24bd53;if(_0x49b131){const _0x360b4e=_0x49cbdd()[_0x3789b6('0x1f4c')](_0x335ca7['abandonedCalls'][_0x3789b6('0x2319')],['id',_0x49b131['id']]);_0x360b4e>=0x0&&_0x49cbdd()[_0x3789b6('0x1ced')](_0x335ca7[_0x3789b6('0x911')][_0x3789b6('0x2319')][_0x360b4e],_0x49b131);}}_0x4918a9[_0x24bd53('0x207c')]('$destroy',function(){const _0x2958ef=_0x24bd53;_0x429c90[_0x2958ef('0x1c65')](_0x2958ef('0x174c')),_0x429c90[_0x2958ef('0x1c65')](_0x2958ef('0x140f'));});}const _0x37c8f9=_0x4c6f03;_0x536b85[_0x4376d8('0x1b9c')]=['$mdDialog','dispositions',_0x4376d8('0x17ca'),_0x4376d8('0x6b1')];function _0x536b85(_0x1c5f60,_0x2cabda,_0x3a21a9,_0x4a99b0){const _0x2304ed=_0x4376d8,_0x3aba75=this;_0x3aba75[_0x2304ed('0x23fe')]=_0x2cabda['rows'],_0x3aba75[_0x2304ed('0x17ca')]=_0x3a21a9[_0x2304ed('0x2319')],_0x3aba75[_0x2304ed('0x6b1')]=_0x4a99b0,_0x3aba75[_0x2304ed('0x1eb0')]=_0x3aba75[_0x2304ed('0x6b1')][_0x2304ed('0x1eb0')]||undefined,_0x3aba75[_0x2304ed('0x219d')]=_0x32cb44,_0x3aba75['clearDispositionSelection']=_0x4b0533,_0x3aba75['saveDisposition']=_0x360cfe,_0x3aba75[_0x2304ed('0x136e')]=_0x2b3f23;function _0x32cb44(_0x32033f){const _0x352f5f=_0x2304ed,_0x402c63=_0x49cbdd()[_0x352f5f('0x241')](_0x3aba75[_0x352f5f('0x23fe')],_0x3aba75['globalDispositions'],'id');switch(_0x32033f){case _0x352f5f('0x1624'):_0x3aba75[_0x352f5f('0x1705')]=_0x3aba75[_0x352f5f('0x1278')],_0x3aba75['anySecondLevelDisposition']=_0x49cbdd()[_0x352f5f('0x26f8')](_0x402c63,[_0x352f5f('0x1a27'),_0x3aba75['firstLevelDisposition']['id']]),_0x3aba75['secondLevelDisposition']=undefined,_0x3aba75[_0x352f5f('0x2b3')]=undefined,_0x3aba75['anyThirdLevelDisposition']=![];break;case _0x352f5f('0x1e5a'):_0x3aba75[_0x352f5f('0x1705')]=_0x3aba75['secondLevelDisposition'],_0x3aba75[_0x352f5f('0x2608')]=_0x49cbdd()[_0x352f5f('0x26f8')](_0x402c63,[_0x352f5f('0x1a27'),_0x3aba75[_0x352f5f('0xb95')]['id']]);break;case _0x352f5f('0x3ba'):_0x3aba75[_0x352f5f('0x1705')]=_0x3aba75[_0x352f5f('0x2b3')];break;}}function _0x4b0533(_0x41a6ff){const _0x490a8b=_0x2304ed;if(_0x41a6ff===_0x490a8b('0x1e5a'))_0x3aba75[_0x490a8b('0xb95')]=undefined,_0x3aba75['thirdLevelDisposition']=undefined,_0x3aba75[_0x490a8b('0x1705')]=_0x3aba75[_0x490a8b('0x1278')];else _0x41a6ff===_0x490a8b('0x3ba')&&(_0x3aba75[_0x490a8b('0x2b3')]=undefined,_0x3aba75['selectedDisposition']=_0x3aba75[_0x490a8b('0xb95')]);}function _0x360cfe(){const _0x1c326e=_0x2304ed;_0x3aba75[_0x1c326e('0x6b1')]['note']=_0x3aba75['note'];const _0x5d3d2e={'firstLevel':_0x3aba75['firstLevelDisposition']?_0x3aba75[_0x1c326e('0x1278')][_0x1c326e('0x2aa')]:undefined,'secondLevel':_0x3aba75[_0x1c326e('0xb95')]?_0x3aba75[_0x1c326e('0xb95')][_0x1c326e('0x2aa')]:undefined,'thirdLevel':_0x3aba75['thirdLevelDisposition']?_0x3aba75[_0x1c326e('0x2b3')][_0x1c326e('0x2aa')]:undefined};_0x1c5f60[_0x1c326e('0x212a')](_0x5d3d2e);}function _0x2b3f23(){_0x1c5f60['cancel']();}}const _0x2de979=_0x536b85;_0x1ed2ce[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x198f'),_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x25aa')];function _0x1ed2ce(_0x1d4be7,_0x5a332b,_0x2dca4c,_0x1b2dd6,_0x2889d9,_0x3066f9,_0x52d4d7,_0x2472ab,_0x22a676){const _0x4f9609=_0x4376d8,_0x33ac9b=this;_0x33ac9b['showTooltip']=![],_0x33ac9b['refresh']=!![],_0x33ac9b[_0x4f9609('0x94f')]=[],_0x33ac9b[_0x4f9609('0x23fe')]={'count':0x0,'rows':[]},_0x33ac9b[_0x4f9609('0x197c')]=_0x2472ab['getCurrentUser'](),_0x33ac9b['queues']={},_0x33ac9b[_0x4f9609('0x911')]={'count':0x0,'rows':[]},_0x33ac9b[_0x4f9609('0x826')]={'fields':_0x4f9609('0x6ea'),'type':_0x4f9609('0x1e77'),'queuecallerexitreason':'TIMEOUT'+','+'ABANDONED','sort':_0x4f9609('0x1ac6'),'limit':0xa,'page':0x1},_0x33ac9b[_0x4f9609('0x1eb9')]=_0x452333,_0x33ac9b[_0x4f9609('0x1722')]=_0x17995c,_0x33ac9b['onInit']=_0x36a961,_0x33ac9b['reserved']=_0x57cceb,_0x33ac9b[_0x4f9609('0x164c')]=_0x5bf426,_0x33ac9b[_0x4f9609('0x6b1')]=_0x1d4be7[_0x4f9609('0x178c')]['$parent']['$parent'][_0x4f9609('0x178c')]['vm'][_0x4f9609('0x6b1')],_0x33ac9b[_0x4f9609('0x194')]=_0x1d4be7['$parent'][_0x4f9609('0x178c')][_0x4f9609('0x178c')]['$parent']['vm']['transfer'],_0x33ac9b['webcall']=_0x1d4be7[_0x4f9609('0x178c')][_0x4f9609('0x178c')][_0x4f9609('0x178c')][_0x4f9609('0x178c')]['vm'][_0x4f9609('0x23d8')],_0x33ac9b[_0x4f9609('0x23')]=_0x1d4be7[_0x4f9609('0x178c')][_0x4f9609('0x178c')]['$parent'][_0x4f9609('0x178c')]['vm'][_0x4f9609('0x23')],_0x33ac9b[_0x4f9609('0x8ea')]=_0x5e701f,_0x33ac9b['onSearchBarExpand']=_0x49b6db,_0x22a676[_0x4f9609('0x1335')]('voiceQueueReport:save',_0x5c7876),_0x22a676[_0x4f9609('0x1335')](_0x4f9609('0x140f'),_0x23ea83),_0x36a961();function _0x36a961(){const _0x1da969=_0x4f9609;return _0x52d4d7[_0x1da969('0x1f27')]['get']({'MailAccountId':'null','FaxAccountId':'null','SmsAccountId':_0x1da969('0x9bb'),'WhatsappAccountId':_0x1da969('0x9bb'),'OpenchannelAccountId':_0x1da969('0x9bb'),'ChatWebsiteId':_0x1da969('0x9bb')})[_0x1da969('0x1af5')][_0x1da969('0x17e7')](function(_0x41846c){const _0x3b2e6d=_0x1da969;return _0x33ac9b[_0x3b2e6d('0x23fe')]=_0x41846c?_0x41846c[_0x3b2e6d('0x2319')]:[],_0x52d4d7[_0x3b2e6d('0x221e')][_0x3b2e6d('0x1f3b')]({'id':_0x2472ab[_0x3b2e6d('0x2831')]()['id'],'fields':_0x3b2e6d('0x12d2'),'channel':'voice','type':_0x3b2e6d('0x1e77'),'nolimit':!![]})[_0x3b2e6d('0x1af5')];})[_0x1da969('0x17e7')](function(_0x4b6549){const _0x401f92=_0x1da969;_0x33ac9b[_0x401f92('0x14c4')]=_0x4b6549||{'count':0x0,'rows':[]},_0x33ac9b['queuesMap']=_0x49cbdd()[_0x401f92('0x250e')](_0x49cbdd()[_0x401f92('0x8de')](_0x33ac9b[_0x401f92('0x14c4')][_0x401f92('0x2319')],_0x401f92('0x2aa')),_0x401f92('0x2aa')),_0x33ac9b[_0x401f92('0x86c')]=_0x33ac9b[_0x401f92('0x14c4')][_0x401f92('0x2319')]?_0x49cbdd()['map'](_0x33ac9b[_0x401f92('0x14c4')]['rows'],_0x401f92('0x2aa'))[_0x401f92('0x1eba')](','):undefined;})[_0x1da969('0x17e7')](function(){const _0x589ca9=_0x1da969;_0x33ac9b[_0x589ca9('0x137d')]=_0xd9776f();})[_0x1da969('0x16df')](function(_0x48c719){const _0x1bc1c3=_0x1da969;console[_0x1bc1c3('0x1d63')](_0x48c719);})[_0x1da969('0x74e')](function(){const _0x5014da=_0x1da969;let _0x18c208=_0x2889d9[_0x5014da('0x1a93')][_0x5014da('0x3b8')](_0x5014da('0x281d')+_0x33ac9b['currentUser']['id']);if(_0x18c208)_0x18c208=JSON[_0x5014da('0x1f0a')](_0x18c208),_0x18c208[_0x5014da('0x826')]&&(_0x33ac9b['query']=_0x49cbdd()[_0x5014da('0x1ced')](_0x18c208['query'],_0x49cbdd()['omit'](_0x33ac9b[_0x5014da('0x826')],[_0x5014da('0x1b22'),_0x5014da('0x193b'),_0x5014da('0x115a')])),_0x33ac9b['query']=_0x49cbdd()['omit'](_0x33ac9b[_0x5014da('0x826')],_0x5014da('0x2483')));else{const _0x32d484={'$gte':_0x107a13()()[_0x5014da('0x161c')](_0x5014da('0x7c7'))[_0x5014da('0x1376')](0x0,!![])[_0x5014da('0x1c0d')](),'$lte':_0x107a13()()[_0x5014da('0x200e')](_0x5014da('0x7c7'))[_0x5014da('0x1376')](0x0,!![])[_0x5014da('0x1c0d')]()};_0x33ac9b[_0x5014da('0x826')]['createdAt']=_0x32d484;}_0x33ac9b['isSearchBarVisible']=_0x33ac9b['query'][_0x5014da('0x2483')]?!![]:![],_0x33ac9b['getAbandonedCalls']();});}function _0xd9776f(){const _0x1b6141=_0x4f9609;return[{'name':_0x1b6141('0x1786'),'key':_0x1b6141('0x7c9'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':'Agent','key':'UserId','type':'select','label':_0x1b6141('0x351'),'customOptions':[{'value':_0x33ac9b[_0x1b6141('0x197c')]['id'],'translate':_0x1b6141('0x2422')},{'value':'\x27null\x27','translate':_0x1b6141('0x154d')},{'value':undefined,'translate':_0x1b6141('0x9cf')}]},{'name':'Campaign','key':'queue','type':'multiselect','label':_0x1b6141('0x8f7'),'options':_0x33ac9b[_0x1b6141('0x14c4')][_0x1b6141('0x2319')],'ngValue':'name','clearAll':![]}];}function _0x452333(){const _0x16c308=_0x4f9609;_0x33ac9b[_0x16c308('0x826')][_0x16c308('0x1bd')]=_0x33ac9b[_0x16c308('0x826')][_0x16c308('0x1bd')]||_0x33ac9b['defaultQueues']['split'](','),_0x33ac9b[_0x16c308('0x826')][_0x16c308('0xf19')]=(_0x33ac9b[_0x16c308('0x826')][_0x16c308('0x115a')]-0x1)*_0x33ac9b[_0x16c308('0x826')][_0x16c308('0x193b')];const _0x41bd2c={'query':_0x33ac9b[_0x16c308('0x826')]};_0x2889d9[_0x16c308('0x1a93')]['setItem'](_0x16c308('0x281d')+_0x33ac9b[_0x16c308('0x197c')]['id'],JSON[_0x16c308('0x678')](_0x41bd2c)),_0x33ac9b[_0x16c308('0x1691')]=_0x52d4d7[_0x16c308('0x2086')][_0x16c308('0xeb6')](_0x33ac9b[_0x16c308('0x826')],_0x4d46bd)[_0x16c308('0x1af5')];}function _0x4d46bd(_0x263e5f){const _0x1ec411=_0x4f9609;_0x33ac9b[_0x1ec411('0x911')]=_0x263e5f||{'count':0x0,'rows':[]},_0x33ac9b['refresh']=!![];}function _0x5bf426(_0x2d710d){const _0x559f37=_0x4f9609;_0x2dca4c[_0x559f37('0x28e2')]({'controller':_0x559f37('0xf7b'),'controllerAs':'vm','templateUrl':_0x559f37('0x641'),'parent':angular[_0x559f37('0x1ce1')](_0x1b2dd6['body']),'targetEvent':_0x2d710d,'resolve':{'globalDispositions':[_0x559f37('0x177'),function(_0xcf7c19){const _0x56edb0=_0x559f37;return _0xcf7c19[_0x56edb0('0x898')](_0x56edb0('0x18d5'),{'MailAccountId':_0x56edb0('0x9bb'),'FaxAccountId':_0x56edb0('0x9bb'),'SmsAccountId':_0x56edb0('0x9bb'),'WhatsappAccountId':_0x56edb0('0x9bb'),'OpenchannelAccountId':_0x56edb0('0x9bb'),'ChatWebsiteId':'null','ListId':_0x56edb0('0x9bb')});}]},'locals':{'dispositions':_0x33ac9b[_0x559f37('0x23fe')],'call':_0x2d710d}})[_0x559f37('0x17e7')](function(_0x147e43){const _0x9e10e4=_0x559f37;if(_0x147e43){_0x33ac9b[_0x9e10e4('0x94f')][_0x2d710d['id']]=!![];const _0x26fd67={'id':_0x2d710d['id'],'lastAssignedTo':_0x2d710d['assigned']?_0x33ac9b[_0x9e10e4('0x197c')][_0x9e10e4('0x2aa')]:null,'assigned':_0x2d710d[_0x9e10e4('0xcec')],'disposition':_0x147e43[_0x9e10e4('0x11f4')]||null,'secondDisposition':_0x147e43[_0x9e10e4('0x19ca')]||null,'thirdDisposition':_0x147e43[_0x9e10e4('0x136f')]||null};_0x52d4d7[_0x9e10e4('0x2086')][_0x9e10e4('0x27ba')](_0x26fd67)[_0x9e10e4('0x1af5')][_0x9e10e4('0x16df')](function(_0x132b63){const _0x493a2b=_0x9e10e4;console[_0x493a2b('0x1d63')](_0x132b63);})[_0x9e10e4('0x74e')](function(){const _0x4ab11d=_0x9e10e4;_0x33ac9b[_0x4ab11d('0x94f')][_0x2d710d['id']]=![];});}});}function _0x5e701f(){const _0x478e4e=_0x4f9609;_0x33ac9b['query'][_0x478e4e('0x2483')]=undefined,_0x33ac9b[_0x478e4e('0x1949')]=![];}function _0x49b6db(){const _0x1c841d=_0x4f9609;_0x33ac9b[_0x1c841d('0x1949')]=!![];}let _0x5ce9c7=!![],_0x277623=0x1;_0x1d4be7[_0x4f9609('0x620')](_0x4f9609('0x1a4d'),function(_0x558b5c,_0x41801e){const _0x2d0dd1=_0x4f9609;_0x5ce9c7?_0x5a332b(function(){_0x5ce9c7=![];}):(!_0x41801e&&(_0x277623=_0x33ac9b['query'][_0x2d0dd1('0x115a')]),_0x558b5c!==_0x41801e&&(_0x33ac9b[_0x2d0dd1('0x826')][_0x2d0dd1('0x115a')]=0x1),!_0x558b5c&&(_0x33ac9b[_0x2d0dd1('0x826')][_0x2d0dd1('0x115a')]=_0x277623),_0x33ac9b[_0x2d0dd1('0x1eb9')]());});function _0x17995c(){const _0x535a64=_0x4f9609;_0x33ac9b[_0x535a64('0xfb4')]=![],_0x33ac9b['getAbandonedCalls']();}function _0x57cceb(_0x315012){const _0x3270d2=_0x4f9609;_0x315012&&(_0x33ac9b[_0x3270d2('0x94f')][_0x315012['id']]=!![],_0x52d4d7[_0x3270d2('0x2086')]['update']({'id':_0x315012['id'],'lastAssignedTo':_0x315012[_0x3270d2('0xcec')]?_0x33ac9b[_0x3270d2('0x197c')][_0x3270d2('0x2aa')]:null,'assigned':_0x315012['assigned']})[_0x3270d2('0x1af5')][_0x3270d2('0x16df')](function(_0x414a4e){const _0x13a0b1=_0x3270d2;console[_0x13a0b1('0x1d63')](_0x414a4e);})[_0x3270d2('0x74e')](function(){const _0x117451=_0x3270d2;_0x33ac9b[_0x117451('0x94f')][_0x315012['id']]=![];}));}function _0x5c7876(_0x2c04b0){const _0x1224d6=_0x4f9609;_0x33ac9b[_0x1224d6('0xf91')]&&_0x2c04b0[_0x1224d6('0x412')]===_0x1224d6('0x1e77')&&_0x33ac9b[_0x1224d6('0xf91')][_0x2c04b0['queue']]&&(_0x33ac9b[_0x1224d6('0xfb4')]=!![]);}function _0x23ea83(_0x43d0e9){const _0x575cc5=_0x4f9609;if(_0x43d0e9){const _0x2bba3d=_0x49cbdd()['findIndex'](_0x33ac9b[_0x575cc5('0x911')][_0x575cc5('0x2319')],['id',_0x43d0e9['id']]);_0x2bba3d>=0x0&&_0x49cbdd()['merge'](_0x33ac9b[_0x575cc5('0x911')][_0x575cc5('0x2319')][_0x2bba3d],_0x43d0e9);}}_0x1d4be7['$on'](_0x4f9609('0x2b4'),function(){const _0xfd1fc7=_0x4f9609;_0x22a676['removeAllListeners'](_0xfd1fc7('0x174c')),_0x22a676['removeAllListeners'](_0xfd1fc7('0x140f'));});}const _0x263dff=_0x1ed2ce;_0x2120f0['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'Auth',_0x4376d8('0x105'),_0x4376d8('0x858')];function _0x2120f0(_0x5c7220,_0x4412c6,_0x262435,_0x6cf7dc,_0x1cea0f){const _0x7c8e3a=_0x4376d8,_0x3358a9=this;_0x3358a9[_0x7c8e3a('0x221e')]=_0x262435[_0x7c8e3a('0x2831')](),_0x3358a9[_0x7c8e3a('0x1d11')]={},_0x3358a9[_0x7c8e3a('0x1ec3')]={},_0x3358a9[_0x7c8e3a('0x1aeb')]={},_0x3358a9[_0x7c8e3a('0x874')]='dashboard',_0x3358a9[_0x7c8e3a('0x858')]=_0x1cea0f,_0x3358a9['navigation']=_0x6cf7dc[_0x7c8e3a('0x75d')](),_0x3358a9[_0x7c8e3a('0x13b9')]=_0x5c7220[_0x7c8e3a('0x178c')]['vm']['addContactTab'],_0x3358a9[_0x7c8e3a('0x3a2')]=_0x5c7220[_0x7c8e3a('0x178c')]['vm'][_0x7c8e3a('0x3a2')],_0x3358a9[_0x7c8e3a('0x161d')]=_0x3bb1f7,_0x3358a9[_0x7c8e3a('0x90a')]=_0x31d4e4,_0x3358a9[_0x7c8e3a('0xf51')]=_0x197bdb;function _0x3bb1f7(_0x29b279,_0x566e77){const _0x60ee09=_0x7c8e3a;_0x3358a9[_0x60ee09('0x1d11')]=_0x29b279,_0x3358a9[_0x60ee09('0x1aeb')]=_0x566e77;let _0x6426d8=_0x4412c6[_0x60ee09('0x1a93')][_0x60ee09('0x3b8')](_0x60ee09('0xd37')+_0x3358a9['user']['id']);if(_0x6426d8){try{_0x6426d8=JSON[_0x60ee09('0x1f0a')](_0x6426d8),_0x3358a9['sidebar']=_0x6426d8[_0x60ee09('0x11f3')]?_0x6426d8['currentSidebarTab']:_0x60ee09('0x40f');}catch(_0x36996e){console[_0x60ee09('0x1db9')](_0x36996e),_0x3358a9[_0x60ee09('0x874')]=_0x60ee09('0x40f');}_0x3358a9['sidebar']==='mail'&&_0x3358a9['draftManager'][_0x60ee09('0x161d')]();}}function _0x197bdb(_0x97190e){const _0x517a20=_0x7c8e3a;return _0x262435[_0x517a20('0xf51')](_0x97190e);}function _0x31d4e4(_0x1d5781){const _0x83fc67=_0x7c8e3a;_0x3358a9['sidebar']=_0x1d5781[_0x83fc67('0x2487')],_0x3358a9[_0x83fc67('0x874')]===_0x83fc67('0x1ec3')&&(_0x3358a9[_0x83fc67('0x1ec3')]=_0x1d5781[_0x83fc67('0x247e')],_0x3358a9[_0x83fc67('0xc94')]=_0x1d5781['id'],_0x5c7220[_0x83fc67('0x2446')](_0x83fc67('0x14cb'),{'plugin':_0x3358a9[_0x83fc67('0x1ec3')]})),_0x4412c6[_0x83fc67('0x1a93')][_0x83fc67('0x230f')](_0x83fc67('0xd37')+_0x3358a9['user']['id'],JSON['stringify']({'currentSidebarTab':_0x1d5781[_0x83fc67('0x2487')]}));}_0x5c7220[_0x7c8e3a('0x620')](_0x7c8e3a('0x2758'),function(_0x5a7346){const _0x3f98e9=_0x7c8e3a;_0x5a7346===_0x3f98e9('0xc2')?_0x3358a9['draftManager'][_0x3f98e9('0x161d')]():_0x3358a9[_0x3f98e9('0x858')][_0x3f98e9('0x10c')]={};});}const _0x27cf0b=_0x2120f0,_0xfd2d95=_0x4cf2bc['p']+_0x4376d8('0x175e');_0x858b18[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),_0x4376d8('0x28da'),'api',_0x4376d8('0x1885'),_0x4376d8('0x25aa'),'toasty'];function _0x858b18(_0x58753c,_0x16f828,_0x441efa,_0x317b64,_0x4ca0c3,_0x28773d,_0x41dc1a,_0x4800d8,_0x402aee,_0x4dc05d){const _0x4ddfd2=_0x4376d8,_0x5870f0=this;_0x5870f0[_0x4ddfd2('0x221e')]=_0x4800d8['getCurrentUser'](),_0x5870f0[_0x4ddfd2('0x1d11')]={},_0x5870f0['setting']={},_0x5870f0[_0x4ddfd2('0x1522')]={'count':0x0,'rows':[]},_0x5870f0[_0x4ddfd2('0x13f6')]={'count':0x0,'rows':[]},_0x5870f0[_0x4ddfd2('0x826')]={'includeAll':!![],'sort':_0x4ddfd2('0x1ac6'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x5870f0[_0x4ddfd2('0xfb6')]={'fields':[{'name':'Id','column':'id','type':_0x4ddfd2('0x7b8')},{'name':_0x4ddfd2('0x239b'),'column':'Contact','type':_0x4ddfd2('0x682'),'options':{'searchFields':['firstName','lastName',_0x4ddfd2('0x822')],'route':{'model':_0x4ddfd2('0x1d2a'),'action':_0x4ddfd2('0x1c53'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x4ddfd2('0xe1e'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x4ddfd2('0xdaa')]}},{'name':_0x4ddfd2('0x2854'),'column':_0x4ddfd2('0x13aa'),'type':_0x4ddfd2('0x132f'),'options':{'excludedOperators':['$eq',_0x4ddfd2('0xdaa')]}},{'name':_0x4ddfd2('0x51c'),'column':_0x4ddfd2('0x2bc'),'type':_0x4ddfd2('0x2897'),'values':[{'id':0x0,'translate':_0x4ddfd2('0x1f4f')},{'id':0x1,'translate':_0x4ddfd2('0x2322')}],'options':{'excludedOperators':['$ne']}},{'name':_0x4ddfd2('0x19cf'),'column':'customerIp','type':_0x4ddfd2('0x132f'),'options':{'excludedOperators':[_0x4ddfd2('0x1767'),'$ne',_0x4ddfd2('0xff2'),_0x4ddfd2('0x1a43')]}},{'name':_0x4ddfd2('0x1874'),'column':_0x4ddfd2('0x24fd'),'type':_0x4ddfd2('0x682'),'options':{'table':'i','route':{'model':_0x4ddfd2('0x221e'),'action':_0x4ddfd2('0x1c53'),'params':{'role':_0x4ddfd2('0x684'),'fields':_0x4ddfd2('0x1f7'),'nolimit':!![]}},'searchFields':[_0x4ddfd2('0xea6'),_0x4ddfd2('0x2aa')],'extraOperators':[_0x4ddfd2('0x1ed7')],'excludedOperators':[_0x4ddfd2('0xdaa')]}},{'name':'Website','column':'ChatWebsiteId','type':'multiselect','options':{'route':{'model':_0x4ddfd2('0x221e'),'action':_0x4ddfd2('0x8fc'),'params':{'id':_0x5870f0['user']['id'],'nolimit':!![]}}}},{'name':_0x4ddfd2('0x28a6'),'column':'Tag','type':'multiselect','options':{'route':{'model':_0x4ddfd2('0x1132'),'action':_0x4ddfd2('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x4ddfd2('0x2045')]}},{'name':_0x4ddfd2('0x1786'),'column':_0x4ddfd2('0x7c9'),'type':_0x4ddfd2('0xbd4'),'options':{'excludedOperators':[_0x4ddfd2('0xdaa')]}},{'name':_0x4ddfd2('0xf8b'),'column':'unreadMessages','type':_0x4ddfd2('0x2897'),'values':[{'id':0x1,'translate':_0x4ddfd2('0x2874')},{'id':0x0,'translate':_0x4ddfd2('0x263')}],'options':{'excludedOperators':[_0x4ddfd2('0xdaa')]}}]},_0x5870f0[_0x4ddfd2('0x87b')]=_0x4ddfd2('0x217f'),_0x5870f0[_0x4ddfd2('0xdf0')]=_0x2f95a4,_0x5870f0[_0x4ddfd2('0x130d')]=_0x26d6f1,_0x5870f0[_0x4ddfd2('0x138f')]=_0x54a453,_0x5870f0[_0x4ddfd2('0x15a1')]=_0xd13dad,_0x5870f0['downloadChatInteraction']=_0x3df5c1,_0x5870f0[_0x4ddfd2('0x1377')]=_0x1b876d,_0x5870f0[_0x4ddfd2('0x422')]=_0xc8bc55,_0x5870f0['getAgentLabel']=_0x511aea,_0x5870f0[_0x4ddfd2('0x21a')]=_0x4df0c4,_0x5870f0[_0x4ddfd2('0x8ea')]=_0x3e1781,_0x5870f0[_0x4ddfd2('0x1181')]=_0x12c0b5,_0x5870f0['openAdvancedSearch']=_0x244c5b;function _0x2f95a4(_0x4bd0e8,_0x1c2a4d){const _0x1b0e47=_0x4ddfd2;return _0x5870f0[_0x1b0e47('0x1d11')]=_0x4bd0e8,_0x5870f0['setting']=_0x1c2a4d,_0x41dc1a[_0x1b0e47('0x221e')][_0x1b0e47('0x1c53')+_0x49cbdd()[_0x1b0e47('0x233c')](_0x1b0e47('0x14de'))]({'id':_0x5870f0[_0x1b0e47('0x221e')]['id'],'nolimit':!![]})['$promise'][_0x1b0e47('0x17e7')](function(_0x53f3cb){const _0x13f82f=_0x1b0e47;return _0x5870f0[_0x13f82f('0x24cd')]=_0x53f3cb||{'count':0x0,'rows':[]},_0x41dc1a[_0x13f82f('0x1132')][_0x13f82f('0x1c53')]()[_0x13f82f('0x1af5')];})['then'](function(_0x33d9c7){_0x5870f0['tags']=_0x33d9c7||{'count':0x0,'rows':[]};})['then'](function(){const _0x12f72c=_0x1b0e47;_0x5870f0[_0x12f72c('0x137d')]=_0x12e056();})[_0x1b0e47('0x16df')](function(_0xc9acf7){console['error'](_0xc9acf7);})[_0x1b0e47('0x74e')](function(){const _0x4acf3e=_0x1b0e47;let _0x13a1f3=_0x4ca0c3[_0x4acf3e('0x1a93')][_0x4acf3e('0x3b8')]('motion2.home.chat:'+_0x5870f0[_0x4acf3e('0x221e')]['id']);if(_0x13a1f3)try{_0x13a1f3=JSON[_0x4acf3e('0x1f0a')](_0x13a1f3);if(_0x13a1f3[_0x4acf3e('0x826')]){_0x5870f0[_0x4acf3e('0x826')]=_0x49cbdd()['merge'](_0x5870f0['query'],_0x13a1f3[_0x4acf3e('0x826')]);if(_0x49cbdd()[_0x4acf3e('0x109a')](_0x5870f0[_0x4acf3e('0x24cd')]['rows']))_0x5870f0[_0x4acf3e('0x826')][_0x4acf3e('0x259')]=[];else _0x49cbdd()['isEmpty'](_0x5870f0[_0x4acf3e('0x826')][_0x4acf3e('0x259')])&&(_0x5870f0[_0x4acf3e('0x826')][_0x4acf3e('0x259')]=_0x49cbdd()(_0x5870f0['chatAccounts'][_0x4acf3e('0x2319')])[_0x4acf3e('0x787')]('id')[_0x4acf3e('0x1232')]()[_0x4acf3e('0x175b')]());_0x5870f0['query']['sort']&&_0x5870f0[_0x4acf3e('0x826')][_0x4acf3e('0x1b22')][_0x4acf3e('0x2567')](_0x4acf3e('0x1723'))>=0x0&&(_0x5870f0[_0x4acf3e('0x826')]=_0x49cbdd()['omit'](_0x5870f0[_0x4acf3e('0x826')],'sort')),_0x5870f0[_0x4acf3e('0x826')][_0x4acf3e('0x1cad')]=!![],_0x5870f0[_0x4acf3e('0x1949')]=_0x5870f0[_0x4acf3e('0x826')][_0x4acf3e('0x2483')]?!![]:![];}}catch(_0x170837){console['error'](_0x170837);}else{const _0x181734={'$gte':_0x107a13()()[_0x4acf3e('0x161c')](_0x4acf3e('0x7c7'))[_0x4acf3e('0x1376')](0x0,!![])[_0x4acf3e('0x1c0d')](),'$lte':_0x107a13()()[_0x4acf3e('0x200e')](_0x4acf3e('0x7c7'))[_0x4acf3e('0x1376')](0x0,!![])[_0x4acf3e('0x1c0d')]()},_0x8f9b05={'ChatWebsiteId':_0x49cbdd()[_0x4acf3e('0x787')](_0x5870f0[_0x4acf3e('0x24cd')][_0x4acf3e('0x2319')],'id'),'createdAt':_0x181734};_0x5870f0[_0x4acf3e('0x826')]=_0x49cbdd()[_0x4acf3e('0x1ced')](_0x5870f0[_0x4acf3e('0x826')],_0x8f9b05);}_0x402aee['on'](_0x4acf3e('0x1ee4'),_0x21561d),_0x402aee['on'](_0x4acf3e('0x855'),_0x21561d),_0x402aee['on'](_0x4acf3e('0x98'),_0x18ee33),_0x402aee['on']('chatMessage:save',_0x2cb14c),_0x402aee['on']('chatMessage:update',_0x2cb14c),_0x402aee['on']('user_has_chat_interactions:save',_0x121038),_0x402aee['on'](_0x4acf3e('0x419'),_0x1c1b87),_0x54a453(_0x5870f0[_0x4acf3e('0x826')]['page']);});}function _0x12e056(){const _0x2063c4=_0x4ddfd2;return[{'name':_0x2063c4('0x1786'),'key':_0x2063c4('0x7c9'),'type':_0x2063c4('0xbd4'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x2063c4('0xd08'),'key':_0x2063c4('0xf64'),'type':_0x2063c4('0x2897'),'label':_0x2063c4('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x2063c4('0x263')},{'value':0x1,'translate':_0x2063c4('0x2874')},{'value':null,'translate':_0x2063c4('0x9cf')}]},{'name':_0x2063c4('0x51c'),'key':_0x2063c4('0x2bc'),'type':'select','label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x2063c4('0x1f4f')},{'value':0x1,'translate':_0x2063c4('0x2322')},{'value':null,'translate':_0x2063c4('0x9cf')}]},{'name':'Website','key':'ChatWebsiteId','type':_0x2063c4('0x1227'),'label':_0x2063c4('0x27da'),'options':_0x5870f0['chatAccounts'][_0x2063c4('0x2319')],'clearAll':![]},{'name':_0x2063c4('0x1874'),'key':_0x2063c4('0x5e5'),'type':_0x2063c4('0x2897'),'label':_0x2063c4('0x351'),'customOptions':[{'value':_0x5870f0[_0x2063c4('0x221e')]['id'],'translate':_0x2063c4('0x2422')},{'value':_0x2063c4('0x9bb'),'translate':_0x2063c4('0x154d')},{'value':undefined,'translate':_0x2063c4('0x9cf')}]},{'name':_0x2063c4('0xe16'),'key':'tag','type':'multiselect','label':_0x2063c4('0x1e4d'),'options':_0x5870f0[_0x2063c4('0x1522')][_0x2063c4('0x2319')],'placeholder':'DASHBOARDS.TAGS'}];}function _0x26d6f1(_0x2b18ff){const _0x1f19bd=_0x4ddfd2;_0x5870f0[_0x1f19bd('0x1bde')]=![],_0x5870f0[_0x1f19bd('0x13f6')]=_0x2b18ff||{'count':0x0,'rows':[]};for(let _0x570f78=0x0;_0x570f78<_0x5870f0['chatInteractions'][_0x1f19bd('0x2319')][_0x1f19bd('0x1f73')];_0x570f78+=0x1){_0xc8bc55(_0x5870f0[_0x1f19bd('0x13f6')][_0x1f19bd('0x2319')][_0x570f78]);}}function _0x54a453(_0x43c9dd){const _0x3a92d3=_0x4ddfd2;_0x5870f0[_0x3a92d3('0x1bde')]=!![];!_0x43c9dd&&(_0x5870f0[_0x3a92d3('0x826')][_0x3a92d3('0x115a')]=0x1);_0x5870f0[_0x3a92d3('0x826')]['offset']=(_0x5870f0['query']['page']-0x1)*_0x5870f0[_0x3a92d3('0x826')][_0x3a92d3('0x193b')];let _0x4bb8d3=_0x4ca0c3[_0x3a92d3('0x1a93')][_0x3a92d3('0x3b8')](_0x3a92d3('0xb')+_0x5870f0[_0x3a92d3('0x221e')]['id']);_0x4bb8d3=_0x4bb8d3?JSON[_0x3a92d3('0x1f0a')](_0x4bb8d3):{},_0x4bb8d3[_0x3a92d3('0x826')]=_0x5870f0['query'],_0x4ca0c3[_0x3a92d3('0x1a93')][_0x3a92d3('0x230f')](_0x3a92d3('0xb')+_0x5870f0[_0x3a92d3('0x221e')]['id'],JSON['stringify'](_0x4bb8d3)),_0x5870f0[_0x3a92d3('0x1691')]=_0x41dc1a[_0x3a92d3('0x1a0')][_0x3a92d3('0x1c53')](_0x5870f0[_0x3a92d3('0x826')],_0x26d6f1)[_0x3a92d3('0x1af5')];}function _0xd13dad(_0x199f33,_0x4c6dc6){const _0x30c27b=_0x4ddfd2;_0x58753c[_0x30c27b('0x178c')]['vm'][_0x30c27b('0x3a2')]('chat',_0x4c6dc6);}function _0x3df5c1(_0x472204,_0x13b7a2,_0x3eebcc){const _0x16ddd7=_0x4ddfd2;_0x41dc1a[_0x16ddd7('0x1a0')][_0x16ddd7('0x1244')]({'id':_0x13b7a2['id'],'attachments':_0x3eebcc})[_0x16ddd7('0x1af5')][_0x16ddd7('0x17e7')](function(_0xde47e6){const _0x3cbf6d=_0x16ddd7,_0x5354e9=[_0xde47e6[_0x3cbf6d('0x3ca')]],_0x466899='chat-interaction'+_0x13b7a2['id']+_0x3cbf6d('0x71b'),_0x15d9e7=new Blob(_0x5354e9,{'type':_0xde47e6[_0x3cbf6d('0x412')]}),_0x3d9c48=window[_0x3cbf6d('0x2be')][_0x3cbf6d('0x68d')]('a');_0x3d9c48[_0x3cbf6d('0x224')](_0x3cbf6d('0x448'),URL[_0x3cbf6d('0x28ce')](_0x15d9e7)),_0x3d9c48[_0x3cbf6d('0x224')](_0x3cbf6d('0x1244'),_0x466899),document['body'][_0x3cbf6d('0x128c')](_0x3d9c48),_0x3d9c48[_0x3cbf6d('0x20d4')]();})[_0x16ddd7('0x16df')](function(_0x332cbb){const _0x511003=_0x16ddd7;if(_0x332cbb[_0x511003('0x1457')]&&_0x332cbb[_0x511003('0x1457')][_0x511003('0x73e')]&&_0x332cbb[_0x511003('0x1457')][_0x511003('0x73e')]['length'])for(let _0x179a1d=0x0;_0x179a1d<_0x332cbb['data']['errors'][_0x511003('0x1f73')];_0x179a1d+=0x1){_0x4dc05d[_0x511003('0x1db9')]({'title':_0x332cbb[_0x511003('0x1457')][_0x511003('0x73e')][_0x179a1d][_0x511003('0x412')],'msg':_0x332cbb['data'][_0x511003('0x73e')][_0x179a1d][_0x511003('0x1603')]});}else _0x4dc05d[_0x511003('0x1db9')]({'title':_0x332cbb[_0x511003('0x11c5')]?'API:'+_0x332cbb[_0x511003('0x11c5')]+_0x511003('0x16e4')+_0x332cbb['statusText']:'downloadChatInteraction','msg':_0x332cbb[_0x511003('0x1457')]?JSON[_0x511003('0x678')](_0x332cbb['data'][_0x511003('0x1603')]):_0x332cbb[_0x511003('0x9b6')]()});});}function _0x1b876d(_0x253420,_0x580eea){const _0x16ed5c=_0x4ddfd2,_0x21b75d=_0x5870f0[_0x16ed5c('0x221e')]['voicePause']||_0x5870f0[_0x16ed5c('0x221e')][_0x16ed5c('0x2764')]||_0x5870f0[_0x16ed5c('0x221e')][_0x16ed5c('0x1467')]||_0x5870f0[_0x16ed5c('0x221e')][_0x16ed5c('0x105e')]||_0x5870f0[_0x16ed5c('0x221e')]['faxPause'],_0x441929=!_0x580eea['Account'][_0x16ed5c('0xb20')];_0x441efa[_0x16ed5c('0x28e2')]({'controller':_0x16ed5c('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular['element'](_0x317b64[_0x16ed5c('0x13aa')]),'clickOutsideToClose':_0x441929,'escapeToClose':_0x441929,'onRemoving':function(){const _0x151861=_0x16ed5c;_0x5870f0[_0x151861('0x221e')]&&_0x580eea['Account'][_0x151861('0xb20')]&&!_0x21b75d&&_0x41dc1a['user']['unpause']({'id':_0x5870f0['user']['id']})[_0x151861('0x1af5')]['catch'](function(_0x4ca8c1){const _0x574ef1=_0x151861;console[_0x574ef1('0x1db9')](_0x4ca8c1);});},'locals':{'user':_0x5870f0[_0x16ed5c('0x221e')],'channel':_0x16ed5c('0x2219'),'interaction':_0x580eea}});}function _0xc8bc55(_0x3be7d6){const _0x4eac22=_0x4ddfd2;_0x3be7d6[_0x4eac22('0x239b')]?_0x3be7d6[_0x4eac22('0x192c')]=(_0x3be7d6[_0x4eac22('0x239b')]['firstName']||'')+'\x20'+(_0x3be7d6[_0x4eac22('0x239b')][_0x4eac22('0x8d6')]||''):_0x3be7d6[_0x4eac22('0x192c')]=_0x28773d[_0x4eac22('0x1acc')](_0x4eac22('0x30a'));}function _0x511aea(_0x29e99c){const _0x4115c4=_0x4ddfd2;if(_0x29e99c[_0x4115c4('0x5e5')])return _0x29e99c['UserId']===_0x5870f0[_0x4115c4('0x221e')]['id']?_0x28773d['instant']('DASHBOARDS.ME'):_0x29e99c[_0x4115c4('0xe49')][_0x4115c4('0xea6')]+'\x20<'+_0x29e99c[_0x4115c4('0xe49')][_0x4115c4('0xe3e')]+'>';return _0x28773d[_0x4115c4('0x1acc')](_0x4115c4('0x154d'));}function _0x4df0c4(_0x569305){const _0x191029=_0x4ddfd2;if(_0x569305[_0x191029('0x896')])return _0x569305[_0x191029('0x896')]['key'];return _0x28773d[_0x191029('0x1acc')](_0x191029('0x30a'));}function _0x121038(_0x42adb9){const _0x1916d7=_0x4ddfd2;let _0x162f57;const _0x1642f7=_0x49cbdd()[_0x1916d7('0xe8e')](_0x5870f0['chatInteractions']['rows'],{'id':_0x42adb9['ChatInteractionId']});_0x1642f7&&_0x1642f7[_0x1916d7('0x15d4')]&&(_0x162f57=_0x49cbdd()[_0x1916d7('0xe8e')](_0x1642f7['Users'],{'id':_0x42adb9[_0x1916d7('0x5e5')]}),!_0x162f57&&_0x1642f7[_0x1916d7('0x15d4')][_0x1916d7('0x269f')]({'id':_0x42adb9[_0x1916d7('0x5e5')]}));}function _0x1c1b87(_0x3a0f1e){const _0x244560=_0x4ddfd2,_0x5e2183=_0x49cbdd()[_0x244560('0xe8e')](_0x5870f0[_0x244560('0x13f6')][_0x244560('0x2319')],{'id':_0x3a0f1e[_0x244560('0x1750')]});_0x5e2183&&_0x5e2183[_0x244560('0x15d4')]&&_0x49cbdd()[_0x244560('0x5f3')](_0x5e2183['Users'],{'id':_0x3a0f1e[_0x244560('0x5e5')]});}function _0x21561d(_0x449167){const _0x26bcfd=_0x4ddfd2;if(_0x449167){const _0x55b5b3=_0x49cbdd()[_0x26bcfd('0xe8e')](_0x5870f0[_0x26bcfd('0x13f6')][_0x26bcfd('0x2319')],{'id':_0x449167['id']});if(_0x55b5b3){_0x55b5b3['Users']=[];_0x449167['closed']&&(_0x55b5b3[_0x26bcfd('0x1aad')]=0x0);if(_0x5870f0[_0x26bcfd('0x826')][_0x26bcfd('0x1b22')]){const _0xebf3df=_0x49cbdd()['startsWith'](_0x5870f0[_0x26bcfd('0x826')][_0x26bcfd('0x1b22')],'-')?_0x26bcfd('0x187b'):'asc';_0x5870f0[_0x26bcfd('0x13f6')][_0x26bcfd('0x2319')]=_0x49cbdd()['orderBy'](_0x5870f0['chatInteractions'][_0x26bcfd('0x2319')],_0x49cbdd()[_0x26bcfd('0x1ee5')](_0x5870f0['query'][_0x26bcfd('0x1b22')],'-'),_0xebf3df);}_0x49cbdd()[_0x26bcfd('0x1ced')](_0x55b5b3,_0x49cbdd()[_0x26bcfd('0x230a')](_0x449167,_0x49cbdd()[_0x26bcfd('0x1c0f')](_0x55b5b3)));}else _0x54a453(_0x5870f0['query']['page']);}}function _0x18ee33(_0x2c3f4c){const _0x12c38f=_0x4ddfd2;if(_0x2c3f4c){const _0x2e80d6=_0x49cbdd()[_0x12c38f('0xe8e')](_0x5870f0[_0x12c38f('0x13f6')][_0x12c38f('0x2319')],{'id':_0x2c3f4c['id']});_0x2e80d6&&(_0x2e80d6[_0x12c38f('0x28a6')]=_0x2c3f4c[_0x12c38f('0x1522')]||[],_0x49cbdd()[_0x12c38f('0x1ced')](_0x2e80d6,_0x49cbdd()['pick'](_0x2c3f4c,_0x49cbdd()[_0x12c38f('0x1c0f')](_0x2e80d6))));}}function _0x2cb14c(_0x57acb2){const _0x5b16ce=_0x4ddfd2;if(_0x57acb2&&!_0x57acb2[_0x5b16ce('0x1c8e')]){const _0x20b35c=_0x49cbdd()['find'](_0x5870f0[_0x5b16ce('0x13f6')][_0x5b16ce('0x2319')],{'id':_0x57acb2[_0x5b16ce('0x1750')]});if(_0x20b35c){const _0x58d4c=_0x49cbdd()['find'](_0x20b35c[_0x5b16ce('0xd08')],{'id':_0x57acb2['id']});_0x58d4c?_0x49cbdd()['merge'](_0x58d4c,_0x49cbdd()[_0x5b16ce('0x230a')](_0x57acb2,_0x49cbdd()[_0x5b16ce('0x1c0f')](_0x58d4c))):(_0x49cbdd()[_0x5b16ce('0x390')](_0x20b35c[_0x5b16ce('0xd08')])&&(_0x20b35c[_0x5b16ce('0xd08')]={'count':0x0}),!_0x57acb2[_0x5b16ce('0xf64')]&&(_0x20b35c[_0x5b16ce('0xd08')][_0x5b16ce('0x335')]+=0x1));}}}function _0x3e1781(){_0x5870f0['isSearchBarVisible']=![];}function _0x12c0b5(){_0x5870f0['isSearchBarVisible']=!![];}function _0x244c5b(){const _0x2f874f=_0x4ddfd2;_0x5870f0['isSearchBarVisible']=![],_0x441efa[_0x2f874f('0x28e2')]({'controller':_0x2f874f('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular['element'](_0x317b64[_0x2f874f('0x13aa')]),'clickOutsideToClose':![],'locals':{'color':_0x5870f0['sectionColor'],'fields':_0x5870f0['advancedSearch'][_0x2f874f('0x9c9')],'storagePath':_0x2f874f('0x151c')},'fullscreen':!![]})[_0x2f874f('0x17e7')](function(_0x2065ae){const _0x4b7c0f=_0x2f874f;_0x5870f0[_0x4b7c0f('0x826')][_0x4b7c0f('0xfba')]=_0x2065ae===![]?undefined:_0x2065ae;if(_0x5870f0['query']['search']||_0x2065ae===![])_0x54a453();})['catch'](function(_0x896dfc){const _0x5df131=_0x2f874f;_0x4dc05d[_0x5df131('0x1db9')]({'title':_0x5df131('0x1288'),'msg':_0x896dfc[_0x5df131('0x1457')]?JSON[_0x5df131('0x678')](_0x896dfc[_0x5df131('0x1457')][_0x5df131('0x1603')]):_0x896dfc['toString']()});});}let _0x5c536d=!![],_0x14d7cf=0x1;_0x58753c[_0x4ddfd2('0x620')]('vm.query.filter',function(_0x3c2e80,_0x4b0a5c){const _0x50fc94=_0x4ddfd2;_0x5c536d?_0x16f828(function(){_0x5c536d=![];}):(!_0x4b0a5c&&(_0x14d7cf=_0x5870f0[_0x50fc94('0x826')][_0x50fc94('0x115a')]),_0x3c2e80!==_0x4b0a5c&&(_0x5870f0[_0x50fc94('0x826')][_0x50fc94('0x115a')]=0x1),!_0x3c2e80&&(_0x5870f0[_0x50fc94('0x826')][_0x50fc94('0x115a')]=_0x14d7cf),_0x54a453(_0x5870f0['query'][_0x50fc94('0x115a')]));}),_0x58753c['$on'](_0x4ddfd2('0x2b4'),function(){const _0x507340=_0x4ddfd2;_0x402aee[_0x507340('0x1c65')](_0x507340('0x19d8')),_0x402aee[_0x507340('0x1c65')]('chatMessage:update'),_0x402aee[_0x507340('0x1c65')]('chatInteraction:save'),_0x402aee[_0x507340('0x1c65')](_0x507340('0x98')),_0x402aee[_0x507340('0x1c65')](_0x507340('0x855')),_0x402aee[_0x507340('0x1c65')]('user_has_chat_interactions:save'),_0x402aee[_0x507340('0x1c65')](_0x507340('0x419'));});}const _0x5f1976=_0x858b18;_0x1e31f5['$inject']=['$document','$scope',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x198f'),'Auth',_0x4376d8('0x212e'),'toasty'];function _0x1e31f5(_0x3dc6fa,_0x1f1570,_0x449ef5,_0x38ffe5,_0x1f7c34,_0x3fd10f,_0x16f7f8,_0x3162db){const _0x5d4c73=_0x4376d8,_0x110488=this;_0x110488['currentUser']=_0x3fd10f[_0x5d4c73('0x2831')](),_0x110488[_0x5d4c73('0x2504')]={},_0x110488[_0x5d4c73('0x2720')]={'count':0x0,'rows':[]},_0x110488[_0x5d4c73('0x1522')]={'count':0x0,'rows':[]},_0x110488['query']={'includeAll':!![],'sort':_0x5d4c73('0x1ac6'),'limit':0xa,'page':0x1},_0x110488[_0x5d4c73('0xfb6')]={'fields':[]},_0x110488['sectionColor']=_0x5d4c73('0xdbc'),_0x110488['getContacts']=_0x5bdb3f,_0x110488[_0x5d4c73('0x1a8a')]=_0x35e896,_0x110488['mergeContact']=_0x3b7fe6,_0x110488['duplicateContact']=_0x408839,_0x110488[_0x5d4c73('0xf79')]=_0x8084a2,_0x110488[_0x5d4c73('0x6b1')]=_0x1f1570[_0x5d4c73('0x178c')]['vm'][_0x5d4c73('0x6b1')],_0x110488['onInit']=_0x56db74,_0x110488['onSearchBarCollapse']=_0x188613,_0x110488[_0x5d4c73('0x1181')]=_0x41f5b5,_0x110488[_0x5d4c73('0x585')]=_0x5b80fa;function _0x56db74(){const _0x3346cf=_0x5d4c73;_0x16f7f8['user'][_0x3346cf('0x852')]({'id':_0x110488[_0x3346cf('0x197c')]['id'],'fields':_0x3346cf('0x24b9'),'sort':_0x3346cf('0x2aa'),'nolimit':!![]})[_0x3346cf('0x1af5')][_0x3346cf('0x17e7')](function(_0x943c8c){const _0x2ae93b=_0x3346cf;return _0x110488['lists']=_0x943c8c||{'count':0x0,'rows':[]},_0x110488[_0x2ae93b('0x7c4')]=_0x49cbdd()[_0x2ae93b('0x8de')](_0x110488[_0x2ae93b('0x2504')][_0x2ae93b('0x2319')],'id'),_0x16f7f8[_0x2ae93b('0x1132')][_0x2ae93b('0x1c53')]()[_0x2ae93b('0x1af5')];})['then'](function(_0x12c464){const _0x1a6984=_0x3346cf;_0x110488[_0x1a6984('0x1522')]=_0x12c464||{'count':0x0,'rows':[]};})[_0x3346cf('0x17e7')](function(){const _0x4d3ae9=_0x3346cf;_0x110488[_0x4d3ae9('0x137d')]=_0x307e7f();})[_0x3346cf('0x16df')](function(_0x18f4f1){const _0x5a5456=_0x3346cf;console[_0x5a5456('0x1db9')](_0x18f4f1);})[_0x3346cf('0x74e')](function(){const _0x5c9bfd=_0x3346cf;let _0x1e4c01=_0x1f7c34[_0x5c9bfd('0x1a93')][_0x5c9bfd('0x3b8')]('motion2.home.contacts:'+_0x110488[_0x5c9bfd('0x197c')]['id']);if(_0x1e4c01)try{_0x1e4c01=JSON['parse'](_0x1e4c01);if(_0x1e4c01[_0x5c9bfd('0x826')]){_0x110488[_0x5c9bfd('0x826')]=_0x49cbdd()[_0x5c9bfd('0x1ced')](_0x110488[_0x5c9bfd('0x826')],_0x1e4c01['query']);if(_0x49cbdd()['isEmpty'](_0x110488[_0x5c9bfd('0x2504')][_0x5c9bfd('0x2319')]))_0x110488['query'][_0x5c9bfd('0x7f8')]=[];else _0x49cbdd()[_0x5c9bfd('0x109a')](_0x110488['query'][_0x5c9bfd('0x7f8')])&&(_0x110488['query']['ListId']=_0x49cbdd()(_0x110488[_0x5c9bfd('0x2504')][_0x5c9bfd('0x2319')])[_0x5c9bfd('0x787')]('id')['take']()[_0x5c9bfd('0x175b')]());}}catch(_0x2925b3){console['log'](_0x2925b3);}else _0x110488[_0x5c9bfd('0x826')][_0x5c9bfd('0x7f8')]=_0x49cbdd()[_0x5c9bfd('0x787')](_0x110488[_0x5c9bfd('0x2504')][_0x5c9bfd('0x2319')],'id');_0x110488[_0x5c9bfd('0x1949')]=_0x110488[_0x5c9bfd('0x826')][_0x5c9bfd('0x2483')]?!![]:![],_0x5bdb3f();});}function _0x307e7f(){const _0x551831=_0x5d4c73;return[{'name':_0x551831('0x239a'),'key':_0x551831('0x7f8'),'type':_0x551831('0x1227'),'label':'CONTACTMANAGER.SELECT_LIST','options':_0x110488[_0x551831('0x2504')][_0x551831('0x2319')],'clearAll':![]},{'name':_0x551831('0xe16'),'key':_0x551831('0x1132'),'type':'multiselect','label':'DASHBOARDS.SELECT_TAG','options':_0x110488[_0x551831('0x1522')]['rows'],'placeholder':_0x551831('0x21aa')}];}function _0x35d4b6(_0x1f205a){const _0x3192ec=_0x5d4c73;_0x110488[_0x3192ec('0x1bde')]=![],_0x110488[_0x3192ec('0x2720')]=_0x1f205a||{'count':0x0,'rows':[]};}function _0x5bdb3f(_0x254cf9){const _0x168161=_0x5d4c73;_0x110488[_0x168161('0x1bde')]=!![],_0x2243c3();!_0x254cf9&&(_0x110488[_0x168161('0x826')][_0x168161('0x115a')]=0x1);_0x110488['query'][_0x168161('0xf19')]=(_0x110488[_0x168161('0x826')][_0x168161('0x115a')]-0x1)*_0x110488['query'][_0x168161('0x193b')];let _0x3c4197=_0x1f7c34[_0x168161('0x1a93')][_0x168161('0x3b8')]('motion2.home.contacts:'+_0x110488[_0x168161('0x197c')]['id']);_0x3c4197=_0x3c4197?JSON[_0x168161('0x1f0a')](_0x3c4197):{},_0x3c4197[_0x168161('0x826')]=_0x110488[_0x168161('0x826')],_0x1f7c34[_0x168161('0x1a93')]['setItem'](_0x168161('0x16c7')+_0x110488[_0x168161('0x197c')]['id'],JSON['stringify'](_0x3c4197)),_0x110488[_0x168161('0x1691')]=_0x16f7f8[_0x168161('0x1d2a')][_0x168161('0x1c53')](_0x110488[_0x168161('0x826')],_0x35d4b6)[_0x168161('0x1af5')];}function _0x8084a2(_0x1ce7f9){const _0x163431=_0x5d4c73;return _0x16f7f8['cmContact'][_0x163431('0x1c53')]({'id':_0x1ce7f9})[_0x163431('0x1af5')][_0x163431('0x17e7')](function(_0x42cfc6){const _0x2b8523=_0x163431;_0x1f1570['$parent']['vm'][_0x2b8523('0x13b9')](_0x42cfc6);});}function _0x35e896(){_0x5bdb3f();}function _0x408839(_0x57244e,_0xaeb70a){const _0x42b74b=_0x5d4c73;_0x38ffe5[_0x42b74b('0x28e2')]({'controller':_0x42b74b('0xa23'),'controllerAs':'vm','templateUrl':_0x141b55,'parent':angular['element'](_0x3dc6fa[_0x42b74b('0x13aa')]),'targetEvent':_0x57244e,'clickOutsideToClose':!![],'resolve':{'contact':[_0x42b74b('0x177'),function(_0x4109fd){const _0x545753=_0x42b74b;return _0x4109fd['resolve'](_0x545753('0x1f28'),{'id':_0xaeb70a['id']});}],'lists':[_0x42b74b('0x177'),function(_0x1d4987){const _0x4aff33=_0x42b74b;return _0x1d4987['resolve']('user@getLists',{'id':_0x110488[_0x4aff33('0x197c')]['id'],'fields':_0x4aff33('0x12d2')});}]},'locals':{'contacts':_0x110488[_0x42b74b('0x2720')]['rows']}});}function _0x3b7fe6(_0x3bd2ad,_0x222fba){const _0x4269d2=_0x5d4c73;_0x38ffe5['show']({'controller':_0x4269d2('0xd55'),'controllerAs':'vm','templateUrl':_0x86be6d,'parent':angular[_0x4269d2('0x1ce1')](_0x3dc6fa[_0x4269d2('0x13aa')]),'targetEvent':_0x3bd2ad,'clickOutsideToClose':!![],'resolve':{'contact':[_0x4269d2('0x177'),function(_0x2d8982){const _0x48ce7c=_0x4269d2;return _0x2d8982[_0x48ce7c('0x898')](_0x48ce7c('0x1f28'),{'id':_0x222fba['id']});}],'lists':[_0x4269d2('0x177'),function(_0x3026a6){const _0x4d9c1f=_0x4269d2;return _0x3026a6[_0x4d9c1f('0x898')](_0x4d9c1f('0x761'),{'id':_0x110488[_0x4d9c1f('0x197c')]['id'],'fields':_0x4d9c1f('0x12d2')});}]},'locals':{'contacts':_0x110488[_0x4269d2('0x2720')][_0x4269d2('0x2319')]}});}function _0x188613(){const _0x3b1051=_0x5d4c73;_0x110488[_0x3b1051('0x1949')]=![];}function _0x41f5b5(){const _0x270999=_0x5d4c73;_0x110488[_0x270999('0x1949')]=!![];}function _0x2243c3(){const _0x4d0fa0=_0x5d4c73;return _0x16f7f8[_0x4d0fa0('0x1d2a')]['describe']({'id':_0x110488['query'][_0x4d0fa0('0x7f8')]})[_0x4d0fa0('0x1af5')][_0x4d0fa0('0x17e7')](function(_0x3c20e4){const _0x22911d=_0x4d0fa0;return _0x49cbdd()(_0x3c20e4[_0x22911d('0x16b2')]())[_0x22911d('0x15c3')](_0x22911d('0x5e5'))[_0x22911d('0xa72')]()[_0x22911d('0x787')](function(_0x4716c2){return _0x599477(_0x4716c2);})[_0x22911d('0x175b')]();})[_0x4d0fa0('0x17e7')](function(_0x4ea22a){const _0x2df97e=_0x4d0fa0;_0x110488['advancedSearch'][_0x2df97e('0x9c9')]=_0x4ea22a;const _0x2e4043={'name':_0x2df97e('0x28a6'),'column':_0x2df97e('0xe16'),'type':_0x2df97e('0x1227'),'options':{'route':{'model':_0x2df97e('0x1132'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x2df97e('0x2045')]}};let _0x5533d0=_0x49cbdd()[_0x2df97e('0x1f4c')](_0x4ea22a,function(_0x492c92){const _0x515106=_0x2df97e;return _0x49cbdd()[_0x515106('0x818')](_0x492c92[_0x515106('0x2d6')],_0x515106('0x481'));})||_0x4ea22a[_0x2df97e('0x1f73')]-0x1;if(_0x5533d0<0x0)_0x5533d0=_0x4ea22a[_0x2df97e('0x1f73')];_0x110488[_0x2df97e('0xfb6')][_0x2df97e('0x9c9')][_0x2df97e('0x2335')](_0x5533d0,0x0,_0x2e4043);})[_0x4d0fa0('0x16df')](function(_0x53fc5d){const _0x4c35c0=_0x4d0fa0;_0x3162db[_0x4c35c0('0x1db9')]({'title':_0x53fc5d[_0x4c35c0('0x11c5')]?_0x4c35c0('0x14f7')+_0x53fc5d[_0x4c35c0('0x11c5')]+_0x4c35c0('0x16e4')+_0x53fc5d[_0x4c35c0('0x1833')]:_0x4c35c0('0xdef'),'msg':_0x53fc5d['data']?JSON[_0x4c35c0('0x678')](_0x53fc5d[_0x4c35c0('0x1457')][_0x4c35c0('0x1603')]):_0x53fc5d[_0x4c35c0('0x9b6')]()});});}function _0x599477(_0x2c3b01){const _0x592f1e=_0x5d4c73,_0x5d83ad={'name':_0x49cbdd()[_0x592f1e('0x1c98')](_0x2c3b01['displayName']),'column':_0x2c3b01[_0x592f1e('0x1547')],'options':{}};if(_0x2c3b01[_0x592f1e('0x8fa')])switch(_0x2c3b01[_0x592f1e('0x8fa')][_0x592f1e('0x412')]){case'text':_0x5d83ad[_0x592f1e('0x412')]=_0x592f1e('0x132f');break;case _0x592f1e('0x2897'):_0x5d83ad[_0x592f1e('0x412')]='multiselect',_0x5d83ad[_0x592f1e('0xa72')]=_0x49cbdd()[_0x592f1e('0x787')](JSON['parse'](_0x2c3b01[_0x592f1e('0x8fa')][_0x592f1e('0xa72')]),function(_0x340191,_0x4ee11a){const _0x12244b=_0x592f1e;return{'id':_0x4ee11a,'name':_0x340191['value'],'value':_0x340191[_0x12244b('0x175b')]};}),_0x5d83ad[_0x592f1e('0x19')][_0x592f1e('0x1515')]=_0x592f1e('0x2aa');break;case _0x592f1e('0x2317'):_0x5d83ad['type']=_0x592f1e('0x2897'),_0x5d83ad[_0x592f1e('0xa72')]=[{'id':0x1,'translate':_0x592f1e('0x1ddd')},{'id':0x0,'translate':_0x592f1e('0x551')}],_0x5d83ad[_0x592f1e('0x19')][_0x592f1e('0x6bd')]=['$ne'];break;case _0x592f1e('0x7b8'):_0x5d83ad['type']=_0x592f1e('0x7b8');break;case _0x592f1e('0x11ab'):_0x5d83ad[_0x592f1e('0x412')]=_0x592f1e('0xbd4');break;}else switch(_0x2c3b01[_0x592f1e('0x1547')]){case'dateOfBirth':_0x5d83ad['type']=_0x592f1e('0xbd4');break;case'CompanyId':_0x5d83ad[_0x592f1e('0x2aa')]=_0x592f1e('0x111d'),_0x5d83ad['type']=_0x592f1e('0x682'),_0x5d83ad[_0x592f1e('0x19')][_0x592f1e('0x21ec')]={'model':_0x592f1e('0x27e'),'action':_0x592f1e('0x1c53'),'params':{'fields':'id,name','nolimit':!![]}},_0x5d83ad[_0x592f1e('0x19')][_0x592f1e('0xf31')]=['name'],_0x5d83ad['options'][_0x592f1e('0x6bd')]=['$ne'];break;case _0x592f1e('0x7f8'):_0x5d83ad['name']=_0x592f1e('0x239a'),_0x5d83ad[_0x592f1e('0x412')]=_0x592f1e('0x682'),_0x5d83ad['options'][_0x592f1e('0x21ec')]={'model':_0x592f1e('0x221e'),'action':_0x592f1e('0x852'),'params':{'id':_0x110488[_0x592f1e('0x197c')]['id'],'fields':_0x592f1e('0x12d2'),'nolimit':!![]}},_0x5d83ad[_0x592f1e('0x19')]['searchFields']=[_0x592f1e('0x2aa')],_0x5d83ad[_0x592f1e('0x19')]['excludedOperators']=[_0x592f1e('0xdaa')];break;default:if(_0x49cbdd()[_0x592f1e('0x24b0')](_0x2c3b01[_0x592f1e('0x412')][_0x592f1e('0x19b')](),_0x592f1e('0x983')))_0x5d83ad[_0x592f1e('0x412')]=_0x592f1e('0x7b8');else _0x49cbdd()[_0x592f1e('0x24b0')](_0x2c3b01[_0x592f1e('0x412')][_0x592f1e('0x19b')](),'date')?_0x5d83ad['type']='date':_0x5d83ad[_0x592f1e('0x412')]=_0x592f1e('0x132f');break;}return _0x5d83ad;}function _0x5b80fa(){const _0x36b456=_0x5d4c73;_0x110488[_0x36b456('0x1949')]=![],_0x38ffe5[_0x36b456('0x28e2')]({'controller':_0x36b456('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0x36b456('0x1ce1')](_0x3dc6fa[_0x36b456('0x13aa')]),'clickOutsideToClose':![],'locals':{'color':_0x110488['sectionColor'],'fields':_0x110488[_0x36b456('0xfb6')][_0x36b456('0x9c9')],'storagePath':_0x36b456('0x1509')},'fullscreen':!![]})[_0x36b456('0x17e7')](function(_0x92c668){const _0x535974=_0x36b456;_0x110488['query'][_0x535974('0xfba')]=_0x92c668===![]?undefined:_0x92c668;if(_0x110488[_0x535974('0x826')][_0x535974('0xfba')]||_0x92c668===![])_0x5bdb3f();})[_0x36b456('0x16df')](function(_0x2eb505){const _0x2cda0b=_0x36b456;_0x3162db[_0x2cda0b('0x1db9')]({'title':_0x2cda0b('0x1288'),'msg':_0x2eb505[_0x2cda0b('0x1457')]?JSON[_0x2cda0b('0x678')](_0x2eb505[_0x2cda0b('0x1457')][_0x2cda0b('0x1603')]):_0x2eb505[_0x2cda0b('0x9b6')]()});});}let _0x48fa2b=!![],_0x899363=0x1;_0x1f1570[_0x5d4c73('0x620')](_0x5d4c73('0x3ed'),function(_0xdf1bcd,_0xe9cedc){const _0x6c9e82=_0x5d4c73;_0x48fa2b?_0x449ef5(function(){_0x48fa2b=![];}):(!_0xe9cedc&&(_0x899363=_0x110488[_0x6c9e82('0x826')][_0x6c9e82('0x115a')]),_0xdf1bcd!==_0xe9cedc&&(_0x110488['query'][_0x6c9e82('0x115a')]=0x1),!_0xdf1bcd&&(_0x110488[_0x6c9e82('0x826')][_0x6c9e82('0x115a')]=_0x899363),_0x5bdb3f());});}const _0x4d0187=_0x1e31f5;_0x585a49['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x33a')];function _0x585a49(_0x598d1b,_0x10722f){let _0x32dbf7=_0x10722f(function(){},0x3e7);_0x598d1b['$on']('$destroy',function(){const _0x3aae19=a0_0xd29e;_0x32dbf7&&(_0x10722f[_0x3aae19('0x1d47')](_0x32dbf7),_0x32dbf7=null);});}const _0x2f7cbd=_0x585a49;_0x4e8cce['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),'$translate','api',_0x4376d8('0x1885'),_0x4376d8('0x25aa')];function _0x4e8cce(_0x387b5f,_0x1d8f7a,_0x393f27,_0x36b719,_0x17aad9,_0x2a46b6,_0x4a5ee4,_0x15c180,_0x3d1422){const _0xe3117a=_0x4376d8,_0x470a45=this,_0x54eafd=[_0xe3117a('0x412'),_0xe3117a('0x2143'),_0xe3117a('0xa39'),_0xe3117a('0x10c9')];_0x470a45['voiceQueues']={},_0x470a45[_0xe3117a('0x2048')]=0x0,_0x470a45[_0xe3117a('0x1d5d')]={},_0x470a45[_0xe3117a('0x13b0')]={},_0x470a45[_0xe3117a('0x1c1c')]={},_0x470a45['addVoiceQueuesChannels']={},_0x470a45[_0xe3117a('0x2436')]=[],_0x470a45[_0xe3117a('0xae2')]=!![],_0x470a45[_0xe3117a('0x826')]={'id':_0x15c180[_0xe3117a('0x2831')]()['id'],'fields':'id,name,type,dialMethod,dialActive','channel':_0xe3117a('0x1fe1'),'type':_0xe3117a('0x1ade'),'limit':0xa,'page':0x1},_0x470a45['queryChannels']={'limit':0xa,'page':0x1},_0x470a45[_0xe3117a('0x130d')]=_0x22e649,_0x470a45[_0xe3117a('0x13b0')]=_0x2684d8,_0x470a45[_0xe3117a('0x1a55')]=_0x3cc9cc,_0x470a45['onSaveQueue']=_0x45de24,_0x470a45['onSaveChannel']=_0x2e7167,_0x470a45[_0xe3117a('0x1c99')]=_0x110ac9,_0x470a45['onSaveVoiceQueue']=_0x489a42,_0x470a45[_0xe3117a('0x19af')]=_0x56755e,_0x470a45[_0xe3117a('0xf39')]=_0x58f636,_0x3d1422[_0xe3117a('0x1335')]('voice_queue:save',_0x470a45[_0xe3117a('0xf66')]),_0x3d1422[_0xe3117a('0x1335')](_0xe3117a('0x1b3'),_0x470a45[_0xe3117a('0xd0a')]),_0x3d1422[_0xe3117a('0x1335')](_0xe3117a('0x1cfb'),_0x470a45['onUserVoiceQueue']),_0x3d1422[_0xe3117a('0x1335')](_0xe3117a('0x1f34'),_0x470a45['onUserVoiceQueue']),_0x3d1422[_0xe3117a('0x1335')](_0xe3117a('0x13a0'),_0x470a45[_0xe3117a('0x12bc')]),_0x3d1422[_0xe3117a('0x1335')](_0xe3117a('0x23c9'),_0x470a45[_0xe3117a('0xf39')]),_0x3d1422[_0xe3117a('0x1335')](_0xe3117a('0x167'),_0x470a45[_0xe3117a('0x19af')]),_0x4a5ee4[_0xe3117a('0x1207')][_0xe3117a('0x13b0')]()['$promise'][_0xe3117a('0x17e7')](function(_0x20af13){const _0x40f014=_0xe3117a;return _0x470a45[_0x40f014('0x1d5d')]=_0x20af13?_0x49cbdd()[_0x40f014('0x8de')](_0x20af13['rows']?_0x20af13[_0x40f014('0x2319')]:[],'id'):{},_0x4a5ee4[_0x40f014('0x1207')][_0x40f014('0x12dd')]()[_0x40f014('0x1af5')];})[_0xe3117a('0x17e7')](function(_0x324fad){const _0x390452=_0xe3117a;_0x470a45[_0x390452('0x1c1c')]=_0x324fad?_0x49cbdd()[_0x390452('0x8de')](_0x324fad['rows']?_0x49cbdd()[_0x390452('0x2483')](_0x324fad['rows'],{'type':'outbound','queuecallerleaveAt':null}):[],_0x390452('0x35b')):{};})[_0xe3117a('0x16df')](function(_0x145417){const _0x70586f=_0xe3117a;console[_0x70586f('0x1db9')](_0x145417);})[_0xe3117a('0x74e')](function(){const _0x258958=_0xe3117a;_0x49cbdd()[_0x258958('0x1ced')](_0x470a45[_0x258958('0x1c1c')],_0x470a45['addVoiceQueuesChannels']);for(let _0x5b9aa8=0x0;_0x5b9aa8<_0x470a45['deleteVoiceQueuesChannels'][_0x258958('0x1f73')];_0x5b9aa8+=0x1){delete _0x470a45['rpcVoiceQueuesChannels'][_0x470a45[_0x258958('0x2436')][_0x5b9aa8]];}_0x470a45['load']=![],_0x470a45[_0x258958('0xc3f')]={},_0x470a45[_0x258958('0x2436')]=[],_0x470a45['getVoiceQueues']();});function _0x22e649(_0x18b822){const _0xf0bab7=_0xe3117a;_0x470a45[_0xf0bab7('0x2048')]=_0x18b822['count']?_0x18b822[_0xf0bab7('0x335')]:0x0,_0x470a45[_0xf0bab7('0x160f')]=_0x18b822?_0x49cbdd()[_0xf0bab7('0x8de')](_0x18b822[_0xf0bab7('0x2319')]?_0x18b822[_0xf0bab7('0x2319')]:[],'id'):{},_0x1b8541();}function _0x2684d8(){const _0x30882f=_0xe3117a;_0x470a45[_0x30882f('0x826')][_0x30882f('0xf19')]=(_0x470a45['query'][_0x30882f('0x115a')]-0x1)*_0x470a45['query'][_0x30882f('0x193b')],_0x470a45[_0x30882f('0x1691')]=_0x4a5ee4[_0x30882f('0x221e')][_0x30882f('0x1f3b')](_0x470a45[_0x30882f('0x826')],_0x22e649)['$promise'];}let _0x38a9b4=!![],_0x58a797=0x1;_0x387b5f[_0xe3117a('0x620')](_0xe3117a('0x4c3'),function(_0x1eb1b6,_0x57a5c3){const _0x55f445=_0xe3117a;_0x38a9b4?_0x1d8f7a(function(){_0x38a9b4=![];}):(!_0x57a5c3&&(_0x58a797=_0x470a45[_0x55f445('0x826')][_0x55f445('0x115a')]),_0x1eb1b6!==_0x57a5c3&&(_0x470a45[_0x55f445('0x826')][_0x55f445('0x115a')]=0x1),!_0x1eb1b6&&(_0x470a45[_0x55f445('0x826')][_0x55f445('0x115a')]=_0x58a797),_0x470a45[_0x55f445('0x13b0')]());});function _0x3cc9cc(_0x3233b0){const _0x48213e=_0xe3117a;return _0x49cbdd()[_0x48213e('0xf04')](_0x3233b0);}function _0x1b8541(){const _0x59337e=_0xe3117a;_0x49cbdd()[_0x59337e('0x1857')](_0x470a45[_0x59337e('0x160f')],function(_0x47eea7,_0x80fd00){const _0x3fad55=_0x59337e;_0x470a45[_0x3fad55('0x1d5d')][_0x80fd00]&&(_0x470a45[_0x3fad55('0x160f')][_0x80fd00][_0x3fad55('0x2143')]=_0x470a45['rpcVoiceQueues'][_0x80fd00][_0x3fad55('0x2143')]||0x0);});}function _0x45de24(_0x7ecf5c){const _0x5bc74e=_0xe3117a;_0x470a45['voiceQueues'][_0x7ecf5c['id']]&&(_0x470a45[_0x5bc74e('0x1d5d')][_0x7ecf5c['id']]&&(_0x470a45[_0x5bc74e('0x1d5d')][_0x7ecf5c['id']]=_0x7ecf5c,_0x49cbdd()[_0x5bc74e('0x1ced')](_0x470a45['voiceQueues'][_0x7ecf5c['id']],_0x49cbdd()[_0x5bc74e('0x230a')](_0x7ecf5c,_0x54eafd))));}function _0x2e7167(_0xe28b72){const _0x8a2435=_0xe3117a;_0xe28b72[_0x8a2435('0x412')]===_0x8a2435('0x1ade')&&(_0xe28b72[_0x8a2435('0x260')]?(delete _0x470a45['rpcVoiceQueuesChannels'][_0xe28b72[_0x8a2435('0x35b')]],_0x470a45[_0x8a2435('0xae2')]&&_0x470a45[_0x8a2435('0x2436')][_0x8a2435('0x269f')](_0xe28b72[_0x8a2435('0x35b')])):(_0x470a45[_0x8a2435('0x1c1c')][_0xe28b72[_0x8a2435('0x35b')]]=_0xe28b72,_0x470a45[_0x8a2435('0xae2')]&&(_0x470a45[_0x8a2435('0xc3f')][_0xe28b72['uniqueid']]=_0xe28b72)));}function _0x489a42(_0x1dc20b){const _0x4d8230=_0xe3117a;!_0x49cbdd()['isNil'](_0x1dc20b)&&(_0x470a45['rpcVoiceQueues'][_0x1dc20b['id']]=_0x49cbdd()[_0x4d8230('0x230a')](_0x1dc20b,_0x54eafd));}function _0x56755e(_0x23e23a){const _0x150375=_0xe3117a;!_0x49cbdd()[_0x150375('0x390')](_0x23e23a)&&(_0x470a45[_0x150375('0x1d5d')][_0x23e23a['id']]&&_0x49cbdd()[_0x150375('0x1ced')](_0x470a45[_0x150375('0x1d5d')][_0x23e23a['id']],_0x49cbdd()[_0x150375('0x230a')](_0x23e23a,_0x54eafd)),_0x470a45[_0x150375('0x160f')][_0x23e23a['id']]&&_0x49cbdd()[_0x150375('0x1ced')](_0x470a45[_0x150375('0x160f')][_0x23e23a['id']],_0x49cbdd()[_0x150375('0x230a')](_0x23e23a,_0x54eafd)));}function _0x58f636(_0x20fbe3){const _0x327a40=_0xe3117a;!_0x49cbdd()['isNil'](_0x20fbe3)&&(delete _0x470a45[_0x327a40('0x1d5d')][_0x20fbe3['id']],delete _0x470a45['voiceQueues'][_0x20fbe3['id']]);}function _0x110ac9(_0x190971){const _0x49cef6=_0xe3117a;_0x49cbdd()[_0x49cef6('0x1254')](_0x190971[_0x49cef6('0x5e5')])===_0x15c180[_0x49cef6('0x2831')]()['id']&&_0x470a45[_0x49cef6('0x13b0')]();}_0x387b5f['$on']('$destroy',function(){const _0x2ffb3d=_0xe3117a;_0x3d1422[_0x2ffb3d('0x1c65')](_0x2ffb3d('0x1ddb')),_0x3d1422['removeAllListeners'](_0x2ffb3d('0x1b3')),_0x3d1422[_0x2ffb3d('0x1c65')](_0x2ffb3d('0x1cfb')),_0x3d1422[_0x2ffb3d('0x1c65')]('userVoiceQueue:remove'),_0x3d1422[_0x2ffb3d('0x1c65')](_0x2ffb3d('0x13a0')),_0x3d1422[_0x2ffb3d('0x1c65')](_0x2ffb3d('0x167')),_0x3d1422[_0x2ffb3d('0x1c65')](_0x2ffb3d('0x23c9'));});}const _0x2ed058=_0x4e8cce;_0x370e0b['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),'$translate',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x25aa')];function _0x370e0b(_0x368bb0,_0x20dcfe,_0x5ddd95,_0x1d5d8d,_0x2ffa12,_0x40995f,_0x38b947,_0x24d736,_0x5143a4){const _0x33d7b6=_0x4376d8,_0x26350a=this,_0x32c63b=['id',_0x33d7b6('0x2aa'),'mapAgentsId',_0x33d7b6('0x2143')];let _0x157219=!![];_0x26350a[_0x33d7b6('0x2214')]={},_0x26350a[_0x33d7b6('0x194a')]=0x0,_0x26350a['rpcChatQueues']={},_0x26350a[_0x33d7b6('0xfd3')]=[],_0x26350a[_0x33d7b6('0x2081')]=[],_0x26350a['rpcChatQueuesWaitingInteractions']={},_0x26350a[_0x33d7b6('0x826')]={'id':_0x24d736['getCurrentUser']()['id'],'channel':'chat','fields':_0x33d7b6('0x2092'),'limit':0xa,'page':0x1},_0x26350a['queryChannels']={'limit':0xa,'page':0x1},_0x26350a[_0x33d7b6('0x130d')]=_0x53b29e,_0x26350a[_0x33d7b6('0x1b90')]=_0x3dbadc,_0x26350a[_0x33d7b6('0x1a55')]=_0x2e18ad,_0x26350a[_0x33d7b6('0x1b33')]=_0xded215,_0x26350a[_0x33d7b6('0x1155')]=_0x2e3409,_0x26350a[_0x33d7b6('0xf66')]=_0x2844dc,_0x26350a[_0x33d7b6('0x1413')]=_0x17afde,_0x26350a[_0x33d7b6('0x11ef')]=_0x243498,_0x26350a['onRemoveChatQueue']=_0x3710b4,_0x26350a[_0x33d7b6('0xdea')]=_0x3b747a,_0x26350a[_0x33d7b6('0x2631')]=_0x538a93,_0x26350a[_0x33d7b6('0xc16')]=_0x2336fe,_0x26350a[_0x33d7b6('0x21e4')]=_0xeebd6f,_0x5143a4[_0x33d7b6('0x1335')](_0x33d7b6('0x1b7e'),_0x26350a[_0x33d7b6('0xf66')]),_0x5143a4['onWithoutApply'](_0x33d7b6('0x2152'),_0x26350a['onSaveChatQueue']),_0x5143a4[_0x33d7b6('0x1335')]('chatQueue:update',_0x26350a['onUpdateChatQueue']),_0x5143a4['onWithoutApply'](_0x33d7b6('0x2f5'),_0x26350a[_0x33d7b6('0xe38')]),_0x5143a4[_0x33d7b6('0x1335')](_0x33d7b6('0x3a'),_0x26350a[_0x33d7b6('0xdea')]),_0x5143a4[_0x33d7b6('0x1335')]('userChatQueue:remove',_0x26350a[_0x33d7b6('0x2631')]),_0x5143a4[_0x33d7b6('0x1335')](_0x33d7b6('0x7e8'),_0x26350a[_0x33d7b6('0xc16')]),_0x5143a4[_0x33d7b6('0x1335')](_0x33d7b6('0xc9d'),_0x26350a[_0x33d7b6('0x21e4')]),_0x38b947[_0x33d7b6('0x1207')][_0x33d7b6('0x1b90')]()[_0x33d7b6('0x1af5')][_0x33d7b6('0x17e7')](function(_0x355c0a){const _0x1b6fe4=_0x33d7b6;_0x26350a[_0x1b6fe4('0x27be')]=_0x355c0a?_0x49cbdd()[_0x1b6fe4('0x8de')](_0x355c0a[_0x1b6fe4('0x2319')]?_0x355c0a[_0x1b6fe4('0x2319')]:[],'id'):{};})[_0x33d7b6('0x17e7')](function(){const _0x1fd8fe=_0x33d7b6;return _0x38b947['user'][_0x1fd8fe('0x1f3b')]({'id':_0x24d736['getCurrentUser']()['id'],'channel':_0x1fd8fe('0x2219')})[_0x1fd8fe('0x1af5')];})[_0x33d7b6('0x17e7')](function(_0x245616){const _0x1d95b9=_0x33d7b6;return _0x26350a[_0x1d95b9('0x557')]=_0x245616[_0x1d95b9('0x2319')],_0x38b947[_0x1d95b9('0x1207')][_0x1d95b9('0x1249')]()[_0x1d95b9('0x1af5')];})[_0x33d7b6('0x17e7')](function(_0x5b303d){const _0x2eab42=_0x33d7b6,_0x6df4e8=_0x49cbdd()[_0x2eab42('0x2483')](_0x5b303d['rows'],function(_0x21d416){const _0x22085e=_0x2eab42;return _0x49cbdd()['includes'](_0x26350a[_0x22085e('0x557')],{'id':_0x21d416[_0x22085e('0x2f7')]});});_0x5b303d[_0x2eab42('0x2319')]=_0x6df4e8,_0x5b303d[_0x2eab42('0x335')]=_0x6df4e8[_0x2eab42('0x1f73')],_0x49cbdd()[_0x2eab42('0x1ced')](_0x26350a[_0x2eab42('0x27ee')],_0x5b303d?_0x49cbdd()[_0x2eab42('0x8de')](_0x5b303d['rows']?_0x5b303d[_0x2eab42('0x2319')]:[],'id'):{});})[_0x33d7b6('0x16df')](function(_0x5d79f9){const _0x14954c=_0x33d7b6;console[_0x14954c('0x1db9')](_0x5d79f9);})[_0x33d7b6('0x74e')](function(){const _0x6a5eba=_0x33d7b6;for(let _0x26dcb5=0x0;_0x26dcb5<_0x26350a[_0x6a5eba('0x2081')]['length'];_0x26dcb5+=0x1){delete _0x26350a[_0x6a5eba('0x27ee')][_0x26350a[_0x6a5eba('0x2081')][_0x26dcb5]];}_0x157219=![],_0x26350a['deleteChatQueuesWaitingInteractions']=[],_0x3dbadc(),_0x2e3409();});function _0x2e3409(){const _0x20dafb=_0x33d7b6,_0x3efa76=(_0x26350a['queryChannels'][_0x20dafb('0x115a')]-0x1)*_0x26350a['queryChannels'][_0x20dafb('0x193b')];_0x26350a[_0x20dafb('0xfd3')]=_0x49cbdd()[_0x20dafb('0xa36')](_0x26350a['rpcChatQueuesWaitingInteractions'],[_0x20dafb('0x1fde')],[_0x20dafb('0x187b')]),_0x26350a[_0x20dafb('0xdc3')]=_0x49cbdd()['drop'](_0x26350a[_0x20dafb('0xfd3')],_0x3efa76)[_0x20dafb('0x275f')](0x0,_0x26350a[_0x20dafb('0xabe')]['limit']);}function _0x53b29e(_0x25dca1){const _0x19cc8f=_0x33d7b6;_0x26350a['chatQueuesTotal']=_0x25dca1['count']?_0x25dca1['count']:0x0,_0x26350a[_0x19cc8f('0x2214')]=_0x25dca1?_0x49cbdd()[_0x19cc8f('0x8de')](_0x25dca1[_0x19cc8f('0x2319')]?_0x25dca1[_0x19cc8f('0x2319')]:[],'id'):{},_0x246ed0();}function _0x3dbadc(){const _0x5a7495=_0x33d7b6;_0x26350a[_0x5a7495('0x826')][_0x5a7495('0xf19')]=(_0x26350a[_0x5a7495('0x826')][_0x5a7495('0x115a')]-0x1)*_0x26350a[_0x5a7495('0x826')][_0x5a7495('0x193b')],_0x26350a['promise']=_0x38b947[_0x5a7495('0x221e')][_0x5a7495('0x1f3b')](_0x26350a[_0x5a7495('0x826')],_0x53b29e)[_0x5a7495('0x1af5')];}let _0x51a266=!![],_0xfa7f67=0x1;_0x368bb0[_0x33d7b6('0x620')](_0x33d7b6('0x4c3'),function(_0x51b986,_0x435ae6){const _0x586572=_0x33d7b6;_0x51a266?_0x20dcfe(function(){_0x51a266=![];}):(!_0x435ae6&&(_0xfa7f67=_0x26350a[_0x586572('0x826')][_0x586572('0x115a')]),_0x51b986!==_0x435ae6&&(_0x26350a[_0x586572('0x826')][_0x586572('0x115a')]=0x1),!_0x51b986&&(_0x26350a[_0x586572('0x826')][_0x586572('0x115a')]=_0xfa7f67),_0x26350a[_0x586572('0x1b90')]());});function _0x2e18ad(_0x3143ef){const _0x5ccf17=_0x33d7b6;return _0x49cbdd()[_0x5ccf17('0xf04')](_0x3143ef);}function _0x246ed0(){const _0x49a669=_0x33d7b6;_0x49cbdd()[_0x49a669('0x1857')](_0x26350a[_0x49a669('0x2214')],function(_0x5def42,_0x322c26){const _0x300e6e=_0x49a669;_0x26350a[_0x300e6e('0x27be')][_0x322c26]&&(_0x26350a['chatQueues'][_0x322c26]['waiting']=_0x26350a[_0x300e6e('0x27be')][_0x322c26][_0x300e6e('0x2143')]||0x0);});}function _0x2844dc(_0x44d0a0){const _0x38cf47=_0x33d7b6;_0x26350a['chatQueues'][_0x44d0a0['id']]&&(_0x26350a[_0x38cf47('0x27be')][_0x44d0a0['id']]&&(_0x49cbdd()[_0x38cf47('0x1ced')](_0x26350a[_0x38cf47('0x27be')][_0x44d0a0['id']],_0x49cbdd()[_0x38cf47('0x230a')](_0x44d0a0,_0x32c63b)),_0x49cbdd()['merge'](_0x26350a[_0x38cf47('0x2214')][_0x44d0a0['id']],_0x49cbdd()[_0x38cf47('0x230a')](_0x44d0a0,_0x32c63b))));}function _0x17afde(_0x1f334b){const _0x322160=_0x33d7b6;!_0x49cbdd()[_0x322160('0x390')](_0x1f334b)&&(_0x26350a[_0x322160('0x27be')][_0x1f334b['id']]=_0x49cbdd()['pick'](_0x1f334b,_0x32c63b));}function _0x243498(_0x1ad9ad){const _0x366b54=_0x33d7b6;!_0x49cbdd()[_0x366b54('0x390')](_0x1ad9ad)&&(_0x26350a[_0x366b54('0x27be')][_0x1ad9ad['id']]&&_0x49cbdd()[_0x366b54('0x1ced')](_0x26350a[_0x366b54('0x27be')][_0x1ad9ad['id']],_0x49cbdd()[_0x366b54('0x230a')](_0x1ad9ad,_0x32c63b)),_0x26350a[_0x366b54('0x2214')][_0x1ad9ad['id']]&&_0x49cbdd()['merge'](_0x26350a['chatQueues'][_0x1ad9ad['id']],_0x49cbdd()[_0x366b54('0x230a')](_0x1ad9ad,_0x32c63b)));}function _0x3710b4(_0x4beaec){const _0x5f20ed=_0x33d7b6;!_0x49cbdd()[_0x5f20ed('0x390')](_0x4beaec)&&(delete _0x26350a[_0x5f20ed('0x27be')][_0x4beaec['id']],delete _0x26350a[_0x5f20ed('0x2214')][_0x4beaec['id']]);}function _0x3b747a(_0x5e4595){const _0x2e5059=_0x33d7b6;_0x49cbdd()[_0x2e5059('0x1254')](_0x5e4595[_0x2e5059('0x5e5')])===_0x24d736[_0x2e5059('0x2831')]()['id']&&_0x26350a[_0x2e5059('0x1b90')]();}function _0x538a93(_0x474daf){const _0x211aa4=_0x33d7b6;_0x49cbdd()[_0x211aa4('0x1254')](_0x474daf['UserId'])===_0x24d736[_0x211aa4('0x2831')]()['id']&&_0x26350a[_0x211aa4('0x1b90')]();}function _0x2336fe(_0x286ea0){const _0x1393f3=_0x33d7b6;_0x26350a[_0x1393f3('0x2214')][_0x286ea0[_0x1393f3('0x2f7')]]&&(_0x26350a['rpcChatQueuesWaitingInteractions'][_0x286ea0['id']]=_0x286ea0,_0x2e3409());}function _0xeebd6f(_0x463e61){const _0x4da5e5=_0x33d7b6;delete _0x26350a[_0x4da5e5('0x27ee')][_0x463e61['id']],_0x157219&&_0x26350a['deleteChatQueuesWaitingInteractions'][_0x4da5e5('0x269f')](_0x463e61['id']),_0x2e3409();}function _0xded215(_0x323e58){const _0x3aab85=_0x33d7b6;switch(_0x323e58){case _0x3aab85('0x2219'):return _0x3aab85('0x1d22');case _0x3aab85('0xc2'):return _0x3aab85('0x4e');case'sms':return _0x3aab85('0xdb3');case _0x3aab85('0x1d27'):return _0x3aab85('0x11b3');case'openchannel':return'amber-A200-bg';case _0x3aab85('0xc23'):return'blue-grey-A200-bg';default:return _0x3aab85('0x6e7');}}_0x368bb0[_0x33d7b6('0x207c')](_0x33d7b6('0x2b4'),function(){const _0x320275=_0x33d7b6;_0x5143a4[_0x320275('0x1c65')](_0x320275('0x1b7e')),_0x5143a4[_0x320275('0x1c65')](_0x320275('0x2152')),_0x5143a4[_0x320275('0x1c65')](_0x320275('0x1184')),_0x5143a4[_0x320275('0x1c65')](_0x320275('0x2f5')),_0x5143a4['removeAllListeners'](_0x320275('0x3a')),_0x5143a4['removeAllListeners'](_0x320275('0x578')),_0x5143a4[_0x320275('0x1c65')](_0x320275('0x7e8')),_0x5143a4[_0x320275('0x1c65')]('chat_queue_waiting_interaction:remove');});}const _0x26b3ab=_0x370e0b;_0x1bf20a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x198f'),_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x25aa')];function _0x1bf20a(_0x46edf7,_0x55343c,_0x141ab4,_0x804e51,_0x5c9c77,_0x26b645,_0x12d025,_0x375159,_0xbf6e34){const _0x1ed664=_0x4376d8,_0x790c5=this,_0x4d5196=['id',_0x1ed664('0x2aa'),'mapAgentsId',_0x1ed664('0x2143')];let _0x56a481=!![];_0x790c5[_0x1ed664('0x1b01')]={},_0x790c5['faxQueuesTotal']=0x0,_0x790c5[_0x1ed664('0x20a4')]={},_0x790c5[_0x1ed664('0xfd3')]=[],_0x790c5[_0x1ed664('0x1cb2')]=[],_0x790c5[_0x1ed664('0x1b57')]={},_0x790c5[_0x1ed664('0x826')]={'id':_0x375159[_0x1ed664('0x2831')]()['id'],'channel':_0x1ed664('0xc23'),'fields':_0x1ed664('0x2092'),'limit':0xa,'page':0x1},_0x790c5[_0x1ed664('0xabe')]={'limit':0xa,'page':0x1},_0x790c5[_0x1ed664('0x130d')]=_0x6fdea0,_0x790c5[_0x1ed664('0xfec')]=_0x161307,_0x790c5[_0x1ed664('0x1a55')]=_0x150bce,_0x790c5[_0x1ed664('0x1b33')]=_0x41f40c,_0x790c5['paginate']=_0x66a4cf,_0x790c5['onSaveQueue']=_0x55d9ca,_0x790c5['onSaveFaxQueue']=_0x18fefd,_0x790c5[_0x1ed664('0x237a')]=_0x4c47f6,_0x790c5[_0x1ed664('0x1aa5')]=_0x22b13e,_0x790c5[_0x1ed664('0x1158')]=_0x59b9b7,_0x790c5['onRemoveUserFaxQueue']=_0x571f6b,_0x790c5[_0x1ed664('0xa5d')]=_0x30bfcb,_0x790c5[_0x1ed664('0xda6')]=_0xb25038,_0xbf6e34[_0x1ed664('0x1335')](_0x1ed664('0x560'),_0x790c5[_0x1ed664('0xf66')]),_0xbf6e34[_0x1ed664('0x1335')](_0x1ed664('0xe59'),_0x790c5[_0x1ed664('0x15ac')]),_0xbf6e34[_0x1ed664('0x1335')](_0x1ed664('0x23d3'),_0x790c5[_0x1ed664('0x237a')]),_0xbf6e34[_0x1ed664('0x1335')](_0x1ed664('0x2237'),_0x790c5[_0x1ed664('0x1aa5')]),_0xbf6e34['onWithoutApply'](_0x1ed664('0x28f'),_0x790c5['onSaveUserFaxQueue']),_0xbf6e34[_0x1ed664('0x1335')]('userFaxQueue:remove',_0x790c5['onRemoveUserFaxQueue']),_0xbf6e34[_0x1ed664('0x1335')](_0x1ed664('0x413'),_0x790c5[_0x1ed664('0xa5d')]),_0xbf6e34[_0x1ed664('0x1335')]('fax_queue_waiting_interaction:remove',_0x790c5[_0x1ed664('0xda6')]),_0x12d025[_0x1ed664('0x1207')][_0x1ed664('0xfec')]()[_0x1ed664('0x1af5')]['then'](function(_0x3dfcbb){const _0x2ebe42=_0x1ed664;_0x790c5[_0x2ebe42('0x20a4')]=_0x3dfcbb?_0x49cbdd()[_0x2ebe42('0x8de')](_0x3dfcbb['rows']?_0x3dfcbb['rows']:[],'id'):{};})[_0x1ed664('0x17e7')](function(){const _0x5d032a=_0x1ed664;return _0x12d025[_0x5d032a('0x221e')][_0x5d032a('0x1f3b')]({'id':_0x375159[_0x5d032a('0x2831')]()['id'],'channel':_0x5d032a('0xc23')})[_0x5d032a('0x1af5')];})[_0x1ed664('0x17e7')](function(_0xba6097){const _0xcbcf0f=_0x1ed664;return _0x790c5[_0xcbcf0f('0x557')]=_0xba6097[_0xcbcf0f('0x2319')],_0x12d025['rpc']['getFaxQueuesWaitingInteractions']()['$promise'];})['then'](function(_0x27317f){const _0x4dbc71=_0x1ed664,_0x4dc2ba=_0x49cbdd()[_0x4dbc71('0x2483')](_0x27317f[_0x4dbc71('0x2319')],function(_0x4db0fd){const _0x4fbb11=_0x4dbc71;return _0x49cbdd()['includes'](_0x790c5['myQueues'],{'id':_0x4db0fd[_0x4fbb11('0x2f7')]});});_0x27317f[_0x4dbc71('0x2319')]=_0x4dc2ba,_0x27317f[_0x4dbc71('0x335')]=_0x4dc2ba['length'],_0x49cbdd()[_0x4dbc71('0x1ced')](_0x790c5[_0x4dbc71('0x1b57')],_0x27317f?_0x49cbdd()['keyBy'](_0x27317f[_0x4dbc71('0x2319')]?_0x27317f['rows']:[],'id'):{});})['catch'](function(_0x3394cf){const _0x15adb5=_0x1ed664;console[_0x15adb5('0x1db9')](_0x3394cf);})[_0x1ed664('0x74e')](function(){const _0x2c027d=_0x1ed664;for(let _0x3e6e0d=0x0;_0x3e6e0d<_0x790c5[_0x2c027d('0x1cb2')][_0x2c027d('0x1f73')];_0x3e6e0d+=0x1){delete _0x790c5['rpcFaxQueuesWaitingInteractions'][_0x790c5[_0x2c027d('0x1cb2')][_0x3e6e0d]];}_0x56a481=![],_0x790c5[_0x2c027d('0x1cb2')]=[],_0x161307(),_0x66a4cf();});function _0x66a4cf(){const _0x1de3e3=_0x1ed664,_0x221065=(_0x790c5[_0x1de3e3('0xabe')][_0x1de3e3('0x115a')]-0x1)*_0x790c5['queryChannels'][_0x1de3e3('0x193b')];_0x790c5[_0x1de3e3('0xfd3')]=_0x49cbdd()[_0x1de3e3('0xa36')](_0x790c5[_0x1de3e3('0x1b57')],[_0x1de3e3('0x1fde')],['desc']),_0x790c5['interactions']=_0x49cbdd()[_0x1de3e3('0x6c0')](_0x790c5[_0x1de3e3('0xfd3')],_0x221065)[_0x1de3e3('0x275f')](0x0,_0x790c5[_0x1de3e3('0xabe')]['limit']);}function _0x6fdea0(_0x1e4c61){const _0x379441=_0x1ed664;_0x790c5[_0x379441('0x1397')]=_0x1e4c61[_0x379441('0x335')]?_0x1e4c61[_0x379441('0x335')]:0x0,_0x790c5[_0x379441('0x1b01')]=_0x1e4c61?_0x49cbdd()[_0x379441('0x8de')](_0x1e4c61[_0x379441('0x2319')]?_0x1e4c61[_0x379441('0x2319')]:[],'id'):{},_0x47a5f3();}function _0x161307(){const _0x3dd76f=_0x1ed664;_0x790c5[_0x3dd76f('0x826')][_0x3dd76f('0xf19')]=(_0x790c5[_0x3dd76f('0x826')]['page']-0x1)*_0x790c5[_0x3dd76f('0x826')][_0x3dd76f('0x193b')],_0x790c5['promise']=_0x12d025[_0x3dd76f('0x221e')][_0x3dd76f('0x1f3b')](_0x790c5[_0x3dd76f('0x826')],_0x6fdea0)[_0x3dd76f('0x1af5')];}let _0x2bf7b1=!![],_0x45cb72=0x1;_0x46edf7[_0x1ed664('0x620')](_0x1ed664('0x4c3'),function(_0x3b150c,_0x564d94){const _0x33e2f3=_0x1ed664;_0x2bf7b1?_0x55343c(function(){_0x2bf7b1=![];}):(!_0x564d94&&(_0x45cb72=_0x790c5['query'][_0x33e2f3('0x115a')]),_0x3b150c!==_0x564d94&&(_0x790c5[_0x33e2f3('0x826')][_0x33e2f3('0x115a')]=0x1),!_0x3b150c&&(_0x790c5[_0x33e2f3('0x826')][_0x33e2f3('0x115a')]=_0x45cb72),_0x790c5[_0x33e2f3('0xfec')]());});function _0x150bce(_0x585277){const _0x5817f1=_0x1ed664;return _0x49cbdd()[_0x5817f1('0xf04')](_0x585277);}function _0x47a5f3(){const _0x44474a=_0x1ed664;_0x49cbdd()[_0x44474a('0x1857')](_0x790c5[_0x44474a('0x1b01')],function(_0x5a940d,_0x56db05){const _0x3da076=_0x44474a;_0x790c5[_0x3da076('0x20a4')][_0x56db05]&&(_0x790c5['faxQueues'][_0x56db05][_0x3da076('0x2143')]=_0x790c5['rpcFaxQueues'][_0x56db05][_0x3da076('0x2143')]||0x0);});}function _0x55d9ca(_0x4e83f2){const _0x16c406=_0x1ed664;_0x790c5[_0x16c406('0x1b01')][_0x4e83f2['id']]&&(_0x790c5['rpcFaxQueues'][_0x4e83f2['id']]&&(_0x49cbdd()[_0x16c406('0x1ced')](_0x790c5[_0x16c406('0x20a4')][_0x4e83f2['id']],_0x49cbdd()['pick'](_0x4e83f2,_0x4d5196)),_0x49cbdd()['merge'](_0x790c5['faxQueues'][_0x4e83f2['id']],_0x49cbdd()[_0x16c406('0x230a')](_0x4e83f2,_0x4d5196))));}function _0x18fefd(_0x3bfb4d){const _0x26d48a=_0x1ed664;!_0x49cbdd()[_0x26d48a('0x390')](_0x3bfb4d)&&(_0x790c5[_0x26d48a('0x20a4')][_0x3bfb4d['id']]=_0x49cbdd()[_0x26d48a('0x230a')](_0x3bfb4d,_0x4d5196));}function _0x4c47f6(_0x5984a4){const _0x200657=_0x1ed664;!_0x49cbdd()[_0x200657('0x390')](_0x5984a4)&&(_0x790c5['rpcFaxQueues'][_0x5984a4['id']]&&_0x49cbdd()[_0x200657('0x1ced')](_0x790c5[_0x200657('0x20a4')][_0x5984a4['id']],_0x49cbdd()[_0x200657('0x230a')](_0x5984a4,_0x4d5196)),_0x790c5[_0x200657('0x1b01')][_0x5984a4['id']]&&_0x49cbdd()[_0x200657('0x1ced')](_0x790c5[_0x200657('0x1b01')][_0x5984a4['id']],_0x49cbdd()[_0x200657('0x230a')](_0x5984a4,_0x4d5196)));}function _0x22b13e(_0x2a2e54){const _0x56500b=_0x1ed664;!_0x49cbdd()[_0x56500b('0x390')](_0x2a2e54)&&(delete _0x790c5[_0x56500b('0x20a4')][_0x2a2e54['id']],delete _0x790c5[_0x56500b('0x1b01')][_0x2a2e54['id']]);}function _0x59b9b7(_0x2c944b){const _0x1177ce=_0x1ed664;_0x49cbdd()[_0x1177ce('0x1254')](_0x2c944b[_0x1177ce('0x5e5')])===_0x375159[_0x1177ce('0x2831')]()['id']&&_0x790c5[_0x1177ce('0xfec')]();}function _0x571f6b(_0x380543){const _0x3c1e6c=_0x1ed664;_0x49cbdd()[_0x3c1e6c('0x1254')](_0x380543[_0x3c1e6c('0x5e5')])===_0x375159[_0x3c1e6c('0x2831')]()['id']&&_0x790c5['getFaxQueues']();}function _0x30bfcb(_0x246bce){const _0x5c1f7c=_0x1ed664;_0x790c5[_0x5c1f7c('0x1b01')][_0x246bce['queue_id']]&&(_0x790c5[_0x5c1f7c('0x1b57')][_0x246bce['id']]=_0x246bce,_0x66a4cf());}function _0xb25038(_0x375ea7){const _0x4a59f3=_0x1ed664;delete _0x790c5[_0x4a59f3('0x1b57')][_0x375ea7['id']],_0x56a481&&_0x790c5[_0x4a59f3('0x1cb2')]['push'](_0x375ea7['id']),_0x66a4cf();}function _0x41f40c(_0x8caf7a){const _0x46aa1=_0x1ed664;switch(_0x8caf7a){case _0x46aa1('0x2219'):return'green-A700-bg';case'mail':return _0x46aa1('0x4e');case'sms':return _0x46aa1('0xdb3');case _0x46aa1('0x1d27'):return'lime-A700-bg';case'openchannel':return'amber-A200-bg';case _0x46aa1('0xc23'):return _0x46aa1('0x76b');default:return _0x46aa1('0x6e7');}}_0x46edf7['$on'](_0x1ed664('0x2b4'),function(){const _0x276db6=_0x1ed664;_0xbf6e34[_0x276db6('0x1c65')](_0x276db6('0x560')),_0xbf6e34[_0x276db6('0x1c65')](_0x276db6('0xe59')),_0xbf6e34[_0x276db6('0x1c65')](_0x276db6('0x23d3')),_0xbf6e34[_0x276db6('0x1c65')](_0x276db6('0x2237')),_0xbf6e34['removeAllListeners'](_0x276db6('0x28f')),_0xbf6e34[_0x276db6('0x1c65')](_0x276db6('0x1654')),_0xbf6e34[_0x276db6('0x1c65')](_0x276db6('0x413')),_0xbf6e34['removeAllListeners'](_0x276db6('0x24f2'));});}const _0x1026a3=_0x1bf20a;_0x247f2e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$window',_0x4376d8('0x28da'),_0x4376d8('0x212e'),'Auth','socket'];function _0x247f2e(_0x38f7c7,_0x426cf2,_0x5ea318,_0x6d621a,_0x71e335,_0x46aef5,_0x2738e9,_0x19a03d,_0x373540){const _0xdfcd6f=_0x4376d8,_0x1dfa77=this,_0x2aa83c=['id','name','mapAgentsId',_0xdfcd6f('0x2143')];let _0x406f51=!![];_0x1dfa77['mailQueues']={},_0x1dfa77[_0xdfcd6f('0xa2')]=0x0,_0x1dfa77[_0xdfcd6f('0x1d93')]={},_0x1dfa77[_0xdfcd6f('0xfd3')]=[],_0x1dfa77['deleteMailQueuesWaitingInteractions']=[],_0x1dfa77[_0xdfcd6f('0x10b5')]={},_0x1dfa77[_0xdfcd6f('0x826')]={'id':_0x19a03d[_0xdfcd6f('0x2831')]()['id'],'channel':'mail','fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x1dfa77[_0xdfcd6f('0xabe')]={'limit':0xa,'page':0x1},_0x1dfa77[_0xdfcd6f('0x130d')]=_0x128bc7,_0x1dfa77[_0xdfcd6f('0x2397')]=_0xdeebcf,_0x1dfa77[_0xdfcd6f('0x1a55')]=_0x2d4b03,_0x1dfa77[_0xdfcd6f('0x1b33')]=_0x24335c,_0x1dfa77[_0xdfcd6f('0x1155')]=_0x512074,_0x1dfa77[_0xdfcd6f('0xf66')]=_0x3d86ed,_0x1dfa77['onSaveMailQueue']=_0x40f916,_0x1dfa77[_0xdfcd6f('0xe89')]=_0x389c93,_0x1dfa77[_0xdfcd6f('0x20f3')]=_0x4c3e3f,_0x1dfa77[_0xdfcd6f('0x27d8')]=_0x170fa0,_0x1dfa77[_0xdfcd6f('0x5b6')]=_0x48ba21,_0x1dfa77[_0xdfcd6f('0x5a4')]=_0x298383,_0x1dfa77[_0xdfcd6f('0xb53')]=_0x291691,_0x373540[_0xdfcd6f('0x1335')]('mail_queue:save',_0x1dfa77[_0xdfcd6f('0xf66')]),_0x373540[_0xdfcd6f('0x1335')](_0xdfcd6f('0xa91'),_0x1dfa77[_0xdfcd6f('0xa09')]),_0x373540[_0xdfcd6f('0x1335')](_0xdfcd6f('0x2620'),_0x1dfa77[_0xdfcd6f('0xe89')]),_0x373540['onWithoutApply'](_0xdfcd6f('0x8f6'),_0x1dfa77[_0xdfcd6f('0x20f3')]),_0x373540[_0xdfcd6f('0x1335')](_0xdfcd6f('0x1992'),_0x1dfa77[_0xdfcd6f('0x27d8')]),_0x373540['onWithoutApply'](_0xdfcd6f('0x2653'),_0x1dfa77['onRemoveUserMailQueue']),_0x373540[_0xdfcd6f('0x1335')](_0xdfcd6f('0x123d'),_0x1dfa77['onSaveMailQueueChannel']),_0x373540['onWithoutApply'](_0xdfcd6f('0x1e18'),_0x1dfa77[_0xdfcd6f('0xb53')]),_0x2738e9[_0xdfcd6f('0x1207')]['getMailQueues']()[_0xdfcd6f('0x1af5')]['then'](function(_0x2e3be5){const _0x2b0b13=_0xdfcd6f;_0x1dfa77[_0x2b0b13('0x1d93')]=_0x2e3be5?_0x49cbdd()[_0x2b0b13('0x8de')](_0x2e3be5[_0x2b0b13('0x2319')]?_0x2e3be5[_0x2b0b13('0x2319')]:[],'id'):{};})[_0xdfcd6f('0x17e7')](function(){const _0x2e7b32=_0xdfcd6f;return _0x2738e9[_0x2e7b32('0x221e')]['getQueues']({'id':_0x19a03d[_0x2e7b32('0x2831')]()['id'],'channel':_0x2e7b32('0xc2')})[_0x2e7b32('0x1af5')];})['then'](function(_0x1a9394){const _0x108c8b=_0xdfcd6f;return _0x1dfa77[_0x108c8b('0x557')]=_0x1a9394[_0x108c8b('0x2319')],_0x2738e9[_0x108c8b('0x1207')][_0x108c8b('0x22a')]()['$promise'];})[_0xdfcd6f('0x17e7')](function(_0x382efe){const _0x4a7155=_0xdfcd6f,_0x56f91e=_0x49cbdd()[_0x4a7155('0x2483')](_0x382efe[_0x4a7155('0x2319')],function(_0x28590f){const _0x294b2a=_0x4a7155;return _0x49cbdd()['includes'](_0x1dfa77['myQueues'],{'id':_0x28590f[_0x294b2a('0x2f7')]});});_0x382efe[_0x4a7155('0x2319')]=_0x56f91e,_0x382efe['count']=_0x56f91e[_0x4a7155('0x1f73')],_0x49cbdd()[_0x4a7155('0x1ced')](_0x1dfa77['rpcMailQueuesWaitingInteractions'],_0x382efe?_0x49cbdd()[_0x4a7155('0x8de')](_0x382efe[_0x4a7155('0x2319')]?_0x382efe[_0x4a7155('0x2319')]:[],'id'):{});})['catch'](function(_0x5b5800){console['error'](_0x5b5800);})[_0xdfcd6f('0x74e')](function(){const _0x437d6a=_0xdfcd6f;for(let _0x47fab8=0x0;_0x47fab8<_0x1dfa77[_0x437d6a('0x1557')]['length'];_0x47fab8+=0x1){delete _0x1dfa77[_0x437d6a('0x10b5')][_0x1dfa77[_0x437d6a('0x1557')][_0x47fab8]];}_0x406f51=![],_0x1dfa77[_0x437d6a('0x1557')]=[],_0xdeebcf(),_0x512074();});function _0x512074(){const _0x1ac8a9=_0xdfcd6f,_0x4c1fbf=(_0x1dfa77['queryChannels'][_0x1ac8a9('0x115a')]-0x1)*_0x1dfa77[_0x1ac8a9('0xabe')]['limit'];_0x1dfa77[_0x1ac8a9('0xfd3')]=_0x49cbdd()[_0x1ac8a9('0xa36')](_0x1dfa77['rpcMailQueuesWaitingInteractions'],[_0x1ac8a9('0x1fde')],[_0x1ac8a9('0x187b')]),_0x1dfa77[_0x1ac8a9('0xdc3')]=_0x49cbdd()[_0x1ac8a9('0x6c0')](_0x1dfa77[_0x1ac8a9('0xfd3')],_0x4c1fbf)[_0x1ac8a9('0x275f')](0x0,_0x1dfa77[_0x1ac8a9('0xabe')][_0x1ac8a9('0x193b')]);}function _0x128bc7(_0x2e8539){const _0x22ef3f=_0xdfcd6f;_0x1dfa77[_0x22ef3f('0xa2')]=_0x2e8539[_0x22ef3f('0x335')]?_0x2e8539[_0x22ef3f('0x335')]:0x0,_0x1dfa77[_0x22ef3f('0x13d1')]=_0x2e8539?_0x49cbdd()[_0x22ef3f('0x8de')](_0x2e8539[_0x22ef3f('0x2319')]?_0x2e8539['rows']:[],'id'):{},_0x45c099();}function _0xdeebcf(){const _0x459e24=_0xdfcd6f;_0x1dfa77[_0x459e24('0x826')][_0x459e24('0xf19')]=(_0x1dfa77['query'][_0x459e24('0x115a')]-0x1)*_0x1dfa77['query'][_0x459e24('0x193b')],_0x1dfa77[_0x459e24('0x1691')]=_0x2738e9[_0x459e24('0x221e')][_0x459e24('0x1f3b')](_0x1dfa77[_0x459e24('0x826')],_0x128bc7)[_0x459e24('0x1af5')];}let _0x27707d=!![],_0x4a00a8=0x1;_0x38f7c7[_0xdfcd6f('0x620')](_0xdfcd6f('0x4c3'),function(_0x85b6f4,_0x3cb05b){const _0x4427b3=_0xdfcd6f;_0x27707d?_0x426cf2(function(){_0x27707d=![];}):(!_0x3cb05b&&(_0x4a00a8=_0x1dfa77[_0x4427b3('0x826')][_0x4427b3('0x115a')]),_0x85b6f4!==_0x3cb05b&&(_0x1dfa77[_0x4427b3('0x826')][_0x4427b3('0x115a')]=0x1),!_0x85b6f4&&(_0x1dfa77[_0x4427b3('0x826')]['page']=_0x4a00a8),_0x1dfa77[_0x4427b3('0x2397')]());});function _0x2d4b03(_0x92809f){return _0x49cbdd()['size'](_0x92809f);}function _0x45c099(){const _0x4d7241=_0xdfcd6f;_0x49cbdd()[_0x4d7241('0x1857')](_0x1dfa77['mailQueues'],function(_0x3894e5,_0x1ab5d9){const _0x6869a3=_0x4d7241;_0x1dfa77[_0x6869a3('0x1d93')][_0x1ab5d9]&&(_0x1dfa77[_0x6869a3('0x13d1')][_0x1ab5d9][_0x6869a3('0x2143')]=_0x1dfa77[_0x6869a3('0x1d93')][_0x1ab5d9][_0x6869a3('0x2143')]||0x0);});}function _0x3d86ed(_0x55840c){const _0x366810=_0xdfcd6f;_0x1dfa77[_0x366810('0x13d1')][_0x55840c['id']]&&(_0x1dfa77[_0x366810('0x1d93')][_0x55840c['id']]&&(_0x49cbdd()[_0x366810('0x1ced')](_0x1dfa77[_0x366810('0x1d93')][_0x55840c['id']],_0x49cbdd()[_0x366810('0x230a')](_0x55840c,_0x2aa83c)),_0x49cbdd()['merge'](_0x1dfa77[_0x366810('0x13d1')][_0x55840c['id']],_0x49cbdd()[_0x366810('0x230a')](_0x55840c,_0x2aa83c))));}function _0x40f916(_0x515cd1){const _0x1da52a=_0xdfcd6f;!_0x49cbdd()[_0x1da52a('0x390')](_0x515cd1)&&(_0x1dfa77[_0x1da52a('0x1d93')][_0x515cd1['id']]=_0x49cbdd()[_0x1da52a('0x230a')](_0x515cd1,_0x2aa83c));}function _0x389c93(_0x595336){const _0x59dff5=_0xdfcd6f;!_0x49cbdd()[_0x59dff5('0x390')](_0x595336)&&(_0x1dfa77[_0x59dff5('0x1d93')][_0x595336['id']]&&_0x49cbdd()[_0x59dff5('0x1ced')](_0x1dfa77[_0x59dff5('0x1d93')][_0x595336['id']],_0x49cbdd()[_0x59dff5('0x230a')](_0x595336,_0x2aa83c)),_0x1dfa77[_0x59dff5('0x13d1')][_0x595336['id']]&&_0x49cbdd()['merge'](_0x1dfa77[_0x59dff5('0x13d1')][_0x595336['id']],_0x49cbdd()[_0x59dff5('0x230a')](_0x595336,_0x2aa83c)));}function _0x4c3e3f(_0x5f8a1){const _0x5f0e90=_0xdfcd6f;!_0x49cbdd()[_0x5f0e90('0x390')](_0x5f8a1)&&(delete _0x1dfa77[_0x5f0e90('0x1d93')][_0x5f8a1['id']],delete _0x1dfa77[_0x5f0e90('0x13d1')][_0x5f8a1['id']]);}function _0x170fa0(_0x500cba){const _0x4f05ed=_0xdfcd6f;_0x49cbdd()[_0x4f05ed('0x1254')](_0x500cba[_0x4f05ed('0x5e5')])===_0x19a03d[_0x4f05ed('0x2831')]()['id']&&_0x1dfa77[_0x4f05ed('0x2397')]();}function _0x48ba21(_0x1fadbe){const _0x14f27f=_0xdfcd6f;_0x49cbdd()[_0x14f27f('0x1254')](_0x1fadbe[_0x14f27f('0x5e5')])===_0x19a03d[_0x14f27f('0x2831')]()['id']&&_0x1dfa77['getMailQueues']();}function _0x298383(_0x2556a7){const _0x916ece=_0xdfcd6f;_0x1dfa77[_0x916ece('0x13d1')][_0x2556a7[_0x916ece('0x2f7')]]&&(_0x1dfa77[_0x916ece('0x10b5')][_0x2556a7['id']]=_0x2556a7,_0x512074());}function _0x291691(_0x275631){const _0x856e1c=_0xdfcd6f;delete _0x1dfa77['rpcMailQueuesWaitingInteractions'][_0x275631['id']],_0x406f51&&_0x1dfa77[_0x856e1c('0x1557')][_0x856e1c('0x269f')](_0x275631['id']),_0x512074();}function _0x24335c(_0x1cd516){const _0x2a4c5f=_0xdfcd6f;switch(_0x1cd516){case'chat':return _0x2a4c5f('0x1d22');case _0x2a4c5f('0xc2'):return _0x2a4c5f('0x4e');case _0x2a4c5f('0x2cd'):return _0x2a4c5f('0xdb3');case _0x2a4c5f('0x1d27'):return _0x2a4c5f('0x11b3');case _0x2a4c5f('0x1508'):return _0x2a4c5f('0x1e30');case'fax':return _0x2a4c5f('0x76b');default:return _0x2a4c5f('0x6e7');}}_0x38f7c7[_0xdfcd6f('0x207c')](_0xdfcd6f('0x2b4'),function(){const _0x23fcca=_0xdfcd6f;_0x373540[_0x23fcca('0x1c65')](_0x23fcca('0x11a0')),_0x373540[_0x23fcca('0x1c65')]('mailQueue:save'),_0x373540[_0x23fcca('0x1c65')](_0x23fcca('0x2620')),_0x373540[_0x23fcca('0x1c65')](_0x23fcca('0x8f6')),_0x373540[_0x23fcca('0x1c65')](_0x23fcca('0x1992')),_0x373540['removeAllListeners'](_0x23fcca('0x2653')),_0x373540[_0x23fcca('0x1c65')](_0x23fcca('0x123d')),_0x373540['removeAllListeners'](_0x23fcca('0x1e18'));});}const _0x7dd5fc=_0x247f2e;_0x47aafa[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x198f'),_0x4376d8('0x28da'),'api',_0x4376d8('0x1885'),'socket'];function _0x47aafa(_0x5c868d,_0xab75f5,_0x131c9a,_0x201688,_0xf71dc2,_0x1041f0,_0x1d0a28,_0x3587db,_0x4fc731){const _0x57f98b=_0x4376d8,_0x1a5543=this,_0x94fdc4=['id',_0x57f98b('0x2aa'),_0x57f98b('0x284c'),_0x57f98b('0x2143')];let _0x390459=!![];_0x1a5543['openchannelQueues']={},_0x1a5543[_0x57f98b('0x16c9')]=0x0,_0x1a5543['rpcOpenchannelQueues']={},_0x1a5543['paginatedInteractions']=[],_0x1a5543[_0x57f98b('0x2772')]=[],_0x1a5543[_0x57f98b('0x11c7')]={},_0x1a5543['query']={'id':_0x3587db['getCurrentUser']()['id'],'channel':'openchannel','fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x1a5543[_0x57f98b('0xabe')]={'limit':0xa,'page':0x1},_0x1a5543[_0x57f98b('0x130d')]=_0x2dbd2f,_0x1a5543[_0x57f98b('0x1332')]=_0x1a147c,_0x1a5543[_0x57f98b('0x1a55')]=_0x3c800b,_0x1a5543['getColorByChannel']=_0x32d3ca,_0x1a5543[_0x57f98b('0x1155')]=_0x4a1cf4,_0x1a5543['onSaveQueue']=_0x1dc5c1,_0x1a5543[_0x57f98b('0x566')]=_0x5792cc,_0x1a5543[_0x57f98b('0x1da2')]=_0x1668b2,_0x1a5543[_0x57f98b('0x6da')]=_0x139562,_0x1a5543[_0x57f98b('0x6cc')]=_0x4b84fd,_0x1a5543[_0x57f98b('0x114f')]=_0x17a55b,_0x1a5543[_0x57f98b('0x1bee')]=_0x341938,_0x1a5543['onRemoveOpenchannelQueueChannel']=_0x308a0c,_0x4fc731[_0x57f98b('0x1335')](_0x57f98b('0xb16'),_0x1a5543[_0x57f98b('0xf66')]),_0x4fc731[_0x57f98b('0x1335')]('openchannelQueue:save',_0x1a5543[_0x57f98b('0x566')]),_0x4fc731[_0x57f98b('0x1335')]('openchannelQueue:update',_0x1a5543[_0x57f98b('0x1da2')]),_0x4fc731[_0x57f98b('0x1335')](_0x57f98b('0x9b0'),_0x1a5543['onRemoveOpenchannelQueue']),_0x4fc731[_0x57f98b('0x1335')](_0x57f98b('0x1653'),_0x1a5543[_0x57f98b('0x6cc')]),_0x4fc731[_0x57f98b('0x1335')]('userOpenchannelQueue:remove',_0x1a5543[_0x57f98b('0x114f')]),_0x4fc731[_0x57f98b('0x1335')](_0x57f98b('0x952'),_0x1a5543[_0x57f98b('0x1bee')]),_0x4fc731[_0x57f98b('0x1335')](_0x57f98b('0xa56'),_0x1a5543[_0x57f98b('0x4b0')]),_0x1d0a28[_0x57f98b('0x1207')]['getOpenchannelQueues']()[_0x57f98b('0x1af5')][_0x57f98b('0x17e7')](function(_0x2f61cf){const _0x260619=_0x57f98b;_0x1a5543[_0x260619('0x2642')]=_0x2f61cf?_0x49cbdd()[_0x260619('0x8de')](_0x2f61cf[_0x260619('0x2319')]?_0x2f61cf[_0x260619('0x2319')]:[],'id'):{};})[_0x57f98b('0x17e7')](function(){const _0x587d4f=_0x57f98b;return _0x1d0a28[_0x587d4f('0x221e')][_0x587d4f('0x1f3b')]({'id':_0x3587db[_0x587d4f('0x2831')]()['id'],'channel':_0x587d4f('0x1508')})[_0x587d4f('0x1af5')];})[_0x57f98b('0x17e7')](function(_0x12c9c2){const _0x4709c8=_0x57f98b;return _0x1a5543[_0x4709c8('0x557')]=_0x12c9c2[_0x4709c8('0x2319')],_0x1d0a28[_0x4709c8('0x1207')][_0x4709c8('0x8c3')]()[_0x4709c8('0x1af5')];})['then'](function(_0xe491e4){const _0x5f4664=_0x57f98b,_0xe1c7f1=_0x49cbdd()[_0x5f4664('0x2483')](_0xe491e4[_0x5f4664('0x2319')],function(_0x26ef6a){const _0x143651=_0x5f4664;return _0x49cbdd()['includes'](_0x1a5543[_0x143651('0x557')],{'id':_0x26ef6a[_0x143651('0x2f7')]});});_0xe491e4[_0x5f4664('0x2319')]=_0xe1c7f1,_0xe491e4[_0x5f4664('0x335')]=_0xe1c7f1[_0x5f4664('0x1f73')],_0x49cbdd()[_0x5f4664('0x1ced')](_0x1a5543[_0x5f4664('0x11c7')],_0xe491e4?_0x49cbdd()[_0x5f4664('0x8de')](_0xe491e4[_0x5f4664('0x2319')]?_0xe491e4[_0x5f4664('0x2319')]:[],'id'):{});})[_0x57f98b('0x16df')](function(_0x577b90){const _0x5b8800=_0x57f98b;console[_0x5b8800('0x1db9')](_0x577b90);})['finally'](function(){const _0x4c8fe4=_0x57f98b;for(let _0x4aaf6c=0x0;_0x4aaf6c<_0x1a5543['deleteOpenchannelQueuesWaitingInteractions'][_0x4c8fe4('0x1f73')];_0x4aaf6c+=0x1){delete _0x1a5543['rpcOpenchannelQueuesWaitingInteractions'][_0x1a5543[_0x4c8fe4('0x2772')][_0x4aaf6c]];}_0x390459=![],_0x1a5543[_0x4c8fe4('0x2772')]=[],_0x1a147c(),_0x4a1cf4();});function _0x4a1cf4(){const _0x4cb24e=_0x57f98b,_0x2c47d6=(_0x1a5543['queryChannels']['page']-0x1)*_0x1a5543[_0x4cb24e('0xabe')][_0x4cb24e('0x193b')];_0x1a5543['paginatedInteractions']=_0x49cbdd()[_0x4cb24e('0xa36')](_0x1a5543[_0x4cb24e('0x11c7')],[_0x4cb24e('0x1fde')],[_0x4cb24e('0x187b')]),_0x1a5543['interactions']=_0x49cbdd()[_0x4cb24e('0x6c0')](_0x1a5543[_0x4cb24e('0xfd3')],_0x2c47d6)['slice'](0x0,_0x1a5543[_0x4cb24e('0xabe')][_0x4cb24e('0x193b')]);}function _0x2dbd2f(_0x19abd2){const _0x18d4c5=_0x57f98b;_0x1a5543[_0x18d4c5('0x16c9')]=_0x19abd2['count']?_0x19abd2[_0x18d4c5('0x335')]:0x0,_0x1a5543['openchannelQueues']=_0x19abd2?_0x49cbdd()['keyBy'](_0x19abd2[_0x18d4c5('0x2319')]?_0x19abd2[_0x18d4c5('0x2319')]:[],'id'):{},_0x3b82ff();}function _0x1a147c(){const _0x421e5a=_0x57f98b;_0x1a5543['query'][_0x421e5a('0xf19')]=(_0x1a5543[_0x421e5a('0x826')]['page']-0x1)*_0x1a5543[_0x421e5a('0x826')][_0x421e5a('0x193b')],_0x1a5543[_0x421e5a('0x1691')]=_0x1d0a28['user'][_0x421e5a('0x1f3b')](_0x1a5543[_0x421e5a('0x826')],_0x2dbd2f)[_0x421e5a('0x1af5')];}let _0xabb639=!![],_0x2d55aa=0x1;_0x5c868d[_0x57f98b('0x620')](_0x57f98b('0x4c3'),function(_0xb98542,_0xa28d33){const _0x198347=_0x57f98b;_0xabb639?_0xab75f5(function(){_0xabb639=![];}):(!_0xa28d33&&(_0x2d55aa=_0x1a5543[_0x198347('0x826')][_0x198347('0x115a')]),_0xb98542!==_0xa28d33&&(_0x1a5543['query'][_0x198347('0x115a')]=0x1),!_0xb98542&&(_0x1a5543[_0x198347('0x826')][_0x198347('0x115a')]=_0x2d55aa),_0x1a5543[_0x198347('0x1332')]());});function _0x3c800b(_0x418ddc){const _0x2a1045=_0x57f98b;return _0x49cbdd()[_0x2a1045('0xf04')](_0x418ddc);}function _0x3b82ff(){const _0xd032f3=_0x57f98b;_0x49cbdd()[_0xd032f3('0x1857')](_0x1a5543[_0xd032f3('0x1cca')],function(_0x1a5d2e,_0x17052a){const _0x3711ab=_0xd032f3;_0x1a5543['rpcOpenchannelQueues'][_0x17052a]&&(_0x1a5543['openchannelQueues'][_0x17052a]['waiting']=_0x1a5543[_0x3711ab('0x2642')][_0x17052a][_0x3711ab('0x2143')]||0x0);});}function _0x1dc5c1(_0x22ff3a){const _0x10f140=_0x57f98b;_0x1a5543[_0x10f140('0x1cca')][_0x22ff3a['id']]&&(_0x1a5543[_0x10f140('0x2642')][_0x22ff3a['id']]&&(_0x49cbdd()[_0x10f140('0x1ced')](_0x1a5543[_0x10f140('0x2642')][_0x22ff3a['id']],_0x49cbdd()['pick'](_0x22ff3a,_0x94fdc4)),_0x49cbdd()[_0x10f140('0x1ced')](_0x1a5543[_0x10f140('0x1cca')][_0x22ff3a['id']],_0x49cbdd()['pick'](_0x22ff3a,_0x94fdc4))));}function _0x5792cc(_0x3302a6){const _0x507515=_0x57f98b;!_0x49cbdd()[_0x507515('0x390')](_0x3302a6)&&(_0x1a5543['rpcOpenchannelQueues'][_0x3302a6['id']]=_0x49cbdd()[_0x507515('0x230a')](_0x3302a6,_0x94fdc4));}function _0x1668b2(_0x5dcdb1){const _0x47fb40=_0x57f98b;!_0x49cbdd()[_0x47fb40('0x390')](_0x5dcdb1)&&(_0x1a5543['rpcOpenchannelQueues'][_0x5dcdb1['id']]&&_0x49cbdd()[_0x47fb40('0x1ced')](_0x1a5543[_0x47fb40('0x2642')][_0x5dcdb1['id']],_0x49cbdd()['pick'](_0x5dcdb1,_0x94fdc4)),_0x1a5543['openchannelQueues'][_0x5dcdb1['id']]&&_0x49cbdd()[_0x47fb40('0x1ced')](_0x1a5543['openchannelQueues'][_0x5dcdb1['id']],_0x49cbdd()[_0x47fb40('0x230a')](_0x5dcdb1,_0x94fdc4)));}function _0x139562(_0x2997b9){const _0x5a6ba6=_0x57f98b;!_0x49cbdd()[_0x5a6ba6('0x390')](_0x2997b9)&&(delete _0x1a5543[_0x5a6ba6('0x2642')][_0x2997b9['id']],delete _0x1a5543[_0x5a6ba6('0x1cca')][_0x2997b9['id']]);}function _0x4b84fd(_0xced48f){const _0x5c5792=_0x57f98b;_0x49cbdd()[_0x5c5792('0x1254')](_0xced48f[_0x5c5792('0x5e5')])===_0x3587db[_0x5c5792('0x2831')]()['id']&&_0x1a5543[_0x5c5792('0x1332')]();}function _0x17a55b(_0x25f07e){const _0x1ecee8=_0x57f98b;_0x49cbdd()[_0x1ecee8('0x1254')](_0x25f07e[_0x1ecee8('0x5e5')])===_0x3587db[_0x1ecee8('0x2831')]()['id']&&_0x1a5543['getOpenchannelQueues']();}function _0x341938(_0x1a93c2){const _0x3ce912=_0x57f98b;_0x1a5543[_0x3ce912('0x1cca')][_0x1a93c2[_0x3ce912('0x2f7')]]&&(_0x1a5543[_0x3ce912('0x11c7')][_0x1a93c2['id']]=_0x1a93c2,_0x4a1cf4());}function _0x308a0c(_0x44b0d6){const _0x362812=_0x57f98b;delete _0x1a5543['rpcOpenchannelQueuesWaitingInteractions'][_0x44b0d6['id']],_0x390459&&_0x1a5543[_0x362812('0x2772')][_0x362812('0x269f')](_0x44b0d6['id']),_0x4a1cf4();}function _0x32d3ca(_0x3eda5f){const _0x46b0aa=_0x57f98b;switch(_0x3eda5f){case _0x46b0aa('0x2219'):return _0x46b0aa('0x1d22');case'mail':return _0x46b0aa('0x4e');case _0x46b0aa('0x2cd'):return _0x46b0aa('0xdb3');case _0x46b0aa('0x1d27'):return _0x46b0aa('0x11b3');case _0x46b0aa('0x1508'):return'amber-A200-bg';case _0x46b0aa('0xc23'):return _0x46b0aa('0x76b');default:return _0x46b0aa('0x6e7');}}_0x5c868d['$on'](_0x57f98b('0x2b4'),function(){const _0x210afc=_0x57f98b;_0x4fc731[_0x210afc('0x1c65')]('openchannel_queue:save'),_0x4fc731[_0x210afc('0x1c65')](_0x210afc('0xabf')),_0x4fc731[_0x210afc('0x1c65')](_0x210afc('0x2184')),_0x4fc731[_0x210afc('0x1c65')](_0x210afc('0x9b0')),_0x4fc731[_0x210afc('0x1c65')](_0x210afc('0x1653')),_0x4fc731[_0x210afc('0x1c65')]('userOpenchannelQueue:remove'),_0x4fc731[_0x210afc('0x1c65')](_0x210afc('0x952')),_0x4fc731[_0x210afc('0x1c65')]('openchannel_queue_waiting_interaction:remove');});}const _0x317004=_0x47aafa;_0x32f6ba['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),'$translate',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x25aa')];function _0x32f6ba(_0x45fdb4,_0x210e86,_0x3be312,_0x24893a,_0x16a12b,_0x4aaf51,_0x15681a,_0x2b194b,_0x2f0aa1){const _0x356ae0=_0x4376d8,_0x4f4952=this,_0x759129=['id',_0x356ae0('0x2aa'),_0x356ae0('0x284c'),_0x356ae0('0x2143')];let _0x4cf8a2=!![];_0x4f4952['smsQueues']={},_0x4f4952[_0x356ae0('0x11ff')]=0x0,_0x4f4952[_0x356ae0('0x2028')]={},_0x4f4952[_0x356ae0('0xfd3')]=[],_0x4f4952[_0x356ae0('0xabc')]=[],_0x4f4952[_0x356ae0('0x2797')]={},_0x4f4952[_0x356ae0('0x826')]={'id':_0x2b194b[_0x356ae0('0x2831')]()['id'],'channel':_0x356ae0('0x2cd'),'fields':'id,name,mapAgentsId,waiting','limit':0xa,'page':0x1},_0x4f4952['queryChannels']={'limit':0xa,'page':0x1},_0x4f4952[_0x356ae0('0x130d')]=_0x48d38b,_0x4f4952[_0x356ae0('0xa26')]=_0x3e1492,_0x4f4952[_0x356ae0('0x1a55')]=_0x500c95,_0x4f4952[_0x356ae0('0x1b33')]=_0x3b4e0e,_0x4f4952['paginate']=_0x4e551d,_0x4f4952[_0x356ae0('0xf66')]=_0xc826b9,_0x4f4952[_0x356ae0('0x232e')]=_0x5a608d,_0x4f4952['onUpdateSmsQueue']=_0x196141,_0x4f4952[_0x356ae0('0x8c1')]=_0x5698c8,_0x4f4952[_0x356ae0('0x1f05')]=_0x599bb8,_0x4f4952['onRemoveUserSmsQueue']=_0xd9ac72,_0x4f4952[_0x356ae0('0x3e4')]=_0x49b9d6,_0x4f4952[_0x356ae0('0x1052')]=_0x498681,_0x2f0aa1[_0x356ae0('0x1335')](_0x356ae0('0x62'),_0x4f4952[_0x356ae0('0xf66')]),_0x2f0aa1[_0x356ae0('0x1335')](_0x356ae0('0x158f'),_0x4f4952[_0x356ae0('0x232e')]),_0x2f0aa1[_0x356ae0('0x1335')](_0x356ae0('0x47c'),_0x4f4952['onUpdateSmsQueue']),_0x2f0aa1[_0x356ae0('0x1335')](_0x356ae0('0x1466'),_0x4f4952['onRemoveSmsQueue']),_0x2f0aa1[_0x356ae0('0x1335')](_0x356ae0('0x13f7'),_0x4f4952[_0x356ae0('0x1f05')]),_0x2f0aa1[_0x356ae0('0x1335')](_0x356ae0('0x1257'),_0x4f4952[_0x356ae0('0x1b3c')]),_0x2f0aa1[_0x356ae0('0x1335')](_0x356ae0('0x19b8'),_0x4f4952[_0x356ae0('0x3e4')]),_0x2f0aa1[_0x356ae0('0x1335')](_0x356ae0('0xa81'),_0x4f4952[_0x356ae0('0x1052')]),_0x15681a[_0x356ae0('0x1207')][_0x356ae0('0xa26')]()[_0x356ae0('0x1af5')][_0x356ae0('0x17e7')](function(_0x5159af){const _0x3f7fb5=_0x356ae0;_0x4f4952[_0x3f7fb5('0x2028')]=_0x5159af?_0x49cbdd()[_0x3f7fb5('0x8de')](_0x5159af[_0x3f7fb5('0x2319')]?_0x5159af[_0x3f7fb5('0x2319')]:[],'id'):{};})[_0x356ae0('0x17e7')](function(){const _0x50aaec=_0x356ae0;return _0x15681a['user'][_0x50aaec('0x1f3b')]({'id':_0x2b194b[_0x50aaec('0x2831')]()['id'],'channel':'sms'})[_0x50aaec('0x1af5')];})['then'](function(_0x41fc37){const _0x913827=_0x356ae0;return _0x4f4952['myQueues']=_0x41fc37[_0x913827('0x2319')],_0x15681a[_0x913827('0x1207')]['getSmsQueuesWaitingInteractions']()[_0x913827('0x1af5')];})[_0x356ae0('0x17e7')](function(_0x4f1872){const _0x1bb28a=_0x356ae0,_0x5c4c78=_0x49cbdd()['filter'](_0x4f1872[_0x1bb28a('0x2319')],function(_0x25b0cd){const _0x56b5b2=_0x1bb28a;return _0x49cbdd()[_0x56b5b2('0x24b0')](_0x4f4952['myQueues'],{'id':_0x25b0cd[_0x56b5b2('0x2f7')]});});_0x4f1872[_0x1bb28a('0x2319')]=_0x5c4c78,_0x4f1872[_0x1bb28a('0x335')]=_0x5c4c78[_0x1bb28a('0x1f73')],_0x49cbdd()[_0x1bb28a('0x1ced')](_0x4f4952['rpcSmsQueuesWaitingInteractions'],_0x4f1872?_0x49cbdd()[_0x1bb28a('0x8de')](_0x4f1872[_0x1bb28a('0x2319')]?_0x4f1872[_0x1bb28a('0x2319')]:[],'id'):{});})[_0x356ae0('0x16df')](function(_0x2d83d0){const _0x21324c=_0x356ae0;console[_0x21324c('0x1db9')](_0x2d83d0);})[_0x356ae0('0x74e')](function(){const _0x4781af=_0x356ae0;for(let _0x581c1=0x0;_0x581c1<_0x4f4952[_0x4781af('0xabc')]['length'];_0x581c1+=0x1){delete _0x4f4952[_0x4781af('0x2797')][_0x4f4952[_0x4781af('0xabc')][_0x581c1]];}_0x4cf8a2=![],_0x4f4952[_0x4781af('0xabc')]=[],_0x3e1492(),_0x4e551d();});function _0x4e551d(){const _0x247d6f=_0x356ae0,_0x916faf=(_0x4f4952[_0x247d6f('0xabe')][_0x247d6f('0x115a')]-0x1)*_0x4f4952[_0x247d6f('0xabe')][_0x247d6f('0x193b')];_0x4f4952[_0x247d6f('0xfd3')]=_0x49cbdd()[_0x247d6f('0xa36')](_0x4f4952['rpcSmsQueuesWaitingInteractions'],[_0x247d6f('0x1fde')],[_0x247d6f('0x187b')]),_0x4f4952[_0x247d6f('0xdc3')]=_0x49cbdd()['drop'](_0x4f4952[_0x247d6f('0xfd3')],_0x916faf)[_0x247d6f('0x275f')](0x0,_0x4f4952[_0x247d6f('0xabe')][_0x247d6f('0x193b')]);}function _0x48d38b(_0x593c1b){const _0x25f088=_0x356ae0;_0x4f4952[_0x25f088('0x11ff')]=_0x593c1b[_0x25f088('0x335')]?_0x593c1b[_0x25f088('0x335')]:0x0,_0x4f4952['smsQueues']=_0x593c1b?_0x49cbdd()[_0x25f088('0x8de')](_0x593c1b[_0x25f088('0x2319')]?_0x593c1b[_0x25f088('0x2319')]:[],'id'):{},_0x5f0e9c();}function _0x3e1492(){const _0x27d184=_0x356ae0;_0x4f4952[_0x27d184('0x826')]['offset']=(_0x4f4952[_0x27d184('0x826')][_0x27d184('0x115a')]-0x1)*_0x4f4952['query'][_0x27d184('0x193b')],_0x4f4952[_0x27d184('0x1691')]=_0x15681a[_0x27d184('0x221e')][_0x27d184('0x1f3b')](_0x4f4952[_0x27d184('0x826')],_0x48d38b)[_0x27d184('0x1af5')];}let _0x14a166=!![],_0x4afc71=0x1;_0x45fdb4[_0x356ae0('0x620')](_0x356ae0('0x4c3'),function(_0x1c1a59,_0x264c83){const _0x4543d7=_0x356ae0;_0x14a166?_0x210e86(function(){_0x14a166=![];}):(!_0x264c83&&(_0x4afc71=_0x4f4952[_0x4543d7('0x826')][_0x4543d7('0x115a')]),_0x1c1a59!==_0x264c83&&(_0x4f4952[_0x4543d7('0x826')]['page']=0x1),!_0x1c1a59&&(_0x4f4952['query'][_0x4543d7('0x115a')]=_0x4afc71),_0x4f4952[_0x4543d7('0xa26')]());});function _0x500c95(_0x127deb){const _0x493088=_0x356ae0;return _0x49cbdd()[_0x493088('0xf04')](_0x127deb);}function _0x5f0e9c(){const _0x3cc73f=_0x356ae0;_0x49cbdd()[_0x3cc73f('0x1857')](_0x4f4952[_0x3cc73f('0x33c')],function(_0x5d8f1a,_0x241b49){const _0x265108=_0x3cc73f;_0x4f4952['rpcSmsQueues'][_0x241b49]&&(_0x4f4952[_0x265108('0x33c')][_0x241b49][_0x265108('0x2143')]=_0x4f4952['rpcSmsQueues'][_0x241b49]['waiting']||0x0);});}function _0xc826b9(_0xd55b6){const _0x2d1224=_0x356ae0;_0x4f4952[_0x2d1224('0x33c')][_0xd55b6['id']]&&(_0x4f4952[_0x2d1224('0x2028')][_0xd55b6['id']]&&(_0x49cbdd()[_0x2d1224('0x1ced')](_0x4f4952['rpcSmsQueues'][_0xd55b6['id']],_0x49cbdd()[_0x2d1224('0x230a')](_0xd55b6,_0x759129)),_0x49cbdd()['merge'](_0x4f4952[_0x2d1224('0x33c')][_0xd55b6['id']],_0x49cbdd()['pick'](_0xd55b6,_0x759129))));}function _0x5a608d(_0x4b8f93){const _0xdfd10a=_0x356ae0;!_0x49cbdd()[_0xdfd10a('0x390')](_0x4b8f93)&&(_0x4f4952[_0xdfd10a('0x2028')][_0x4b8f93['id']]=_0x49cbdd()[_0xdfd10a('0x230a')](_0x4b8f93,_0x759129));}function _0x196141(_0xad9fcf){const _0xdebb62=_0x356ae0;!_0x49cbdd()[_0xdebb62('0x390')](_0xad9fcf)&&(_0x4f4952['rpcSmsQueues'][_0xad9fcf['id']]&&_0x49cbdd()[_0xdebb62('0x1ced')](_0x4f4952[_0xdebb62('0x2028')][_0xad9fcf['id']],_0x49cbdd()[_0xdebb62('0x230a')](_0xad9fcf,_0x759129)),_0x4f4952[_0xdebb62('0x33c')][_0xad9fcf['id']]&&_0x49cbdd()[_0xdebb62('0x1ced')](_0x4f4952[_0xdebb62('0x33c')][_0xad9fcf['id']],_0x49cbdd()[_0xdebb62('0x230a')](_0xad9fcf,_0x759129)));}function _0x5698c8(_0x541e30){const _0x20cd13=_0x356ae0;!_0x49cbdd()[_0x20cd13('0x390')](_0x541e30)&&(delete _0x4f4952[_0x20cd13('0x2028')][_0x541e30['id']],delete _0x4f4952[_0x20cd13('0x33c')][_0x541e30['id']]);}function _0x599bb8(_0x321cd7){const _0x17c36d=_0x356ae0;_0x49cbdd()['toInteger'](_0x321cd7[_0x17c36d('0x5e5')])===_0x2b194b[_0x17c36d('0x2831')]()['id']&&_0x4f4952['getSmsQueues']();}function _0xd9ac72(_0x3b1734){const _0x13ae6b=_0x356ae0;_0x49cbdd()['toInteger'](_0x3b1734[_0x13ae6b('0x5e5')])===_0x2b194b['getCurrentUser']()['id']&&_0x4f4952[_0x13ae6b('0xa26')]();}function _0x49b9d6(_0x4b6700){const _0x22fd57=_0x356ae0;_0x4f4952[_0x22fd57('0x33c')][_0x4b6700['queue_id']]&&(_0x4f4952[_0x22fd57('0x2797')][_0x4b6700['id']]=_0x4b6700,_0x4e551d());}function _0x498681(_0x137b78){const _0x329bee=_0x356ae0;delete _0x4f4952[_0x329bee('0x2797')][_0x137b78['id']],_0x4cf8a2&&_0x4f4952[_0x329bee('0xabc')][_0x329bee('0x269f')](_0x137b78['id']),_0x4e551d();}function _0x3b4e0e(_0xd178ae){const _0xc448ed=_0x356ae0;switch(_0xd178ae){case _0xc448ed('0x2219'):return'green-A700-bg';case'mail':return _0xc448ed('0x4e');case _0xc448ed('0x2cd'):return'orange-bg';case _0xc448ed('0x1d27'):return'lime-A700-bg';case _0xc448ed('0x1508'):return _0xc448ed('0x1e30');case _0xc448ed('0xc23'):return _0xc448ed('0x76b');default:return _0xc448ed('0x6e7');}}_0x45fdb4['$on'](_0x356ae0('0x2b4'),function(){const _0x27ff93=_0x356ae0;_0x2f0aa1['removeAllListeners'](_0x27ff93('0x62')),_0x2f0aa1[_0x27ff93('0x1c65')](_0x27ff93('0x158f')),_0x2f0aa1[_0x27ff93('0x1c65')](_0x27ff93('0x47c')),_0x2f0aa1['removeAllListeners'](_0x27ff93('0x1466')),_0x2f0aa1[_0x27ff93('0x1c65')](_0x27ff93('0x13f7')),_0x2f0aa1['removeAllListeners']('userSmsQueue:remove'),_0x2f0aa1['removeAllListeners'](_0x27ff93('0x19b8')),_0x2f0aa1[_0x27ff93('0x1c65')](_0x27ff93('0xa81'));});}const _0x244b9f=_0x32f6ba;_0x14d210[_0x4376d8('0x1b9c')]=['$scope','$timeout','$mdDialog','$document',_0x4376d8('0x198f'),_0x4376d8('0x28da'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x25aa')];function _0x14d210(_0x56a3ac,_0x333054,_0x51061e,_0x150122,_0x38ba3e,_0x3a4c02,_0x5219a6,_0x372da0,_0x7af282){const _0x1c6c97=_0x4376d8,_0x18ae67=this,_0x4c4278=[_0x1c6c97('0x412'),_0x1c6c97('0x2143'),'dialMethod',_0x1c6c97('0x10c9')];_0x18ae67[_0x1c6c97('0x160f')]={},_0x18ae67['voiceQueuesTotal']=0x0,_0x18ae67[_0x1c6c97('0x1d5d')]={},_0x18ae67[_0x1c6c97('0x13b0')]={},_0x18ae67[_0x1c6c97('0x1c1c')]={},_0x18ae67['addVoiceQueuesChannels']={},_0x18ae67[_0x1c6c97('0x2436')]=[],_0x18ae67['load']=!![],_0x18ae67[_0x1c6c97('0x826')]={'id':_0x372da0[_0x1c6c97('0x2831')]()['id'],'fields':_0x1c6c97('0x106c'),'channel':'voice','type':_0x1c6c97('0x1e77'),'limit':0xa,'page':0x1},_0x18ae67['queryChannels']={'limit':0xa,'page':0x1},_0x18ae67['success']=_0x42324a,_0x18ae67[_0x1c6c97('0x13b0')]=_0xcbe30c,_0x18ae67[_0x1c6c97('0x1a55')]=_0x9b245d,_0x18ae67['onSaveQueue']=_0x390e35,_0x18ae67[_0x1c6c97('0xd0a')]=_0x496ba2,_0x18ae67[_0x1c6c97('0x1c99')]=_0x4357c9,_0x18ae67[_0x1c6c97('0x12bc')]=_0x5be536,_0x18ae67[_0x1c6c97('0x19af')]=_0x283f1e,_0x18ae67['onRemoveVoiceQueue']=_0x393073,_0x7af282[_0x1c6c97('0x1335')](_0x1c6c97('0x1ddb'),_0x18ae67[_0x1c6c97('0xf66')]),_0x7af282[_0x1c6c97('0x1335')](_0x1c6c97('0x1b3'),_0x18ae67[_0x1c6c97('0xd0a')]),_0x7af282['onWithoutApply']('userVoiceQueue:save',_0x18ae67[_0x1c6c97('0x1c99')]),_0x7af282[_0x1c6c97('0x1335')](_0x1c6c97('0x1f34'),_0x18ae67[_0x1c6c97('0x1c99')]),_0x7af282[_0x1c6c97('0x1335')](_0x1c6c97('0x13a0'),_0x18ae67[_0x1c6c97('0x12bc')]),_0x7af282[_0x1c6c97('0x1335')]('voiceQueue:remove',_0x18ae67[_0x1c6c97('0xf39')]),_0x7af282[_0x1c6c97('0x1335')]('voiceQueue:update',_0x18ae67['onUpdateVoiceQueue']),_0x5219a6[_0x1c6c97('0x221e')][_0x1c6c97('0x1f3b')](_0x18ae67[_0x1c6c97('0x826')])[_0x1c6c97('0x1af5')][_0x1c6c97('0x17e7')](function(_0x1f2523){const _0x485e76=_0x1c6c97;return _0x18ae67['myQueues']=_0x1f2523,_0x5219a6[_0x485e76('0x1207')][_0x485e76('0x13b0')]()[_0x485e76('0x1af5')];})[_0x1c6c97('0x17e7')](function(_0x56d428){const _0x1cdbff=_0x1c6c97,_0x395aab=_0x56d428[_0x1cdbff('0x2319')],_0x36e822=_0x49cbdd()['keyBy'](_0x395aab,'id');for(let _0x72f55b=0x0;_0x72f55b<_0x18ae67['myQueues'][_0x1cdbff('0x335')];_0x72f55b++){const _0x525750=_0x18ae67[_0x1cdbff('0x557')]['rows'][_0x72f55b];_0x18ae67[_0x1cdbff('0x1d5d')][_0x525750['id']]=_0x36e822[_0x525750['id']];}return _0x5219a6[_0x1cdbff('0x1207')]['getVoiceQueuesChannels']()[_0x1cdbff('0x1af5')];})[_0x1c6c97('0x17e7')](function(_0x1d79ac){const _0x11728a=_0x1c6c97;_0x18ae67['rpcVoiceQueuesChannels']=_0x1d79ac?_0x49cbdd()[_0x11728a('0x8de')](_0x1d79ac[_0x11728a('0x2319')]?_0x49cbdd()[_0x11728a('0x2483')](_0x1d79ac['rows'],function(_0x3e8a46){const _0x54a2a2=_0x11728a;if(_0x3e8a46[_0x54a2a2('0x412')]===_0x54a2a2('0x1e77')&&!_0x3e8a46[_0x54a2a2('0x260')]&&_0x49cbdd()['find'](_0x18ae67[_0x54a2a2('0x557')]['rows'],{'name':_0x3e8a46[_0x54a2a2('0x1bd')]}))return!![];return![];}):[],_0x11728a('0x35b')):{};})['catch'](function(_0x5b6d93){const _0x31b0d2=_0x1c6c97;console[_0x31b0d2('0x1db9')](_0x5b6d93);})['finally'](function(){const _0x90e823=_0x1c6c97;_0x49cbdd()[_0x90e823('0x1ced')](_0x18ae67[_0x90e823('0x1c1c')],_0x18ae67[_0x90e823('0xc3f')]);for(let _0x51a3b5=0x0;_0x51a3b5<_0x18ae67[_0x90e823('0x2436')]['length'];_0x51a3b5+=0x1){delete _0x18ae67[_0x90e823('0x1c1c')][_0x18ae67['deleteVoiceQueuesChannels'][_0x51a3b5]];}_0x18ae67['load']=![],_0x18ae67[_0x90e823('0xc3f')]={},_0x18ae67[_0x90e823('0x2436')]=[],_0x18ae67['getVoiceQueues']();});function _0x42324a(_0x9047bf){const _0x1df8f1=_0x1c6c97;_0x18ae67[_0x1df8f1('0x2048')]=_0x9047bf['count']?_0x9047bf['count']:0x0,_0x18ae67[_0x1df8f1('0x160f')]=_0x9047bf?_0x49cbdd()[_0x1df8f1('0x8de')](_0x9047bf[_0x1df8f1('0x2319')]?_0x9047bf[_0x1df8f1('0x2319')]:[],'id'):{},_0x343723();}function _0xcbe30c(){const _0x1a7d36=_0x1c6c97;_0x18ae67[_0x1a7d36('0x826')][_0x1a7d36('0xf19')]=(_0x18ae67[_0x1a7d36('0x826')][_0x1a7d36('0x115a')]-0x1)*_0x18ae67[_0x1a7d36('0x826')][_0x1a7d36('0x193b')],_0x18ae67[_0x1a7d36('0x1691')]=_0x5219a6[_0x1a7d36('0x221e')][_0x1a7d36('0x1f3b')](_0x18ae67['query'],_0x42324a)[_0x1a7d36('0x1af5')];}let _0x2fe9d3=!![],_0x2fec2b=0x1;_0x56a3ac[_0x1c6c97('0x620')]('vm_dc.query.filter',function(_0x41497c,_0x448af8){const _0x36a99b=_0x1c6c97;_0x2fe9d3?_0x333054(function(){_0x2fe9d3=![];}):(!_0x448af8&&(_0x2fec2b=_0x18ae67['query'][_0x36a99b('0x115a')]),_0x41497c!==_0x448af8&&(_0x18ae67['query'][_0x36a99b('0x115a')]=0x1),!_0x41497c&&(_0x18ae67['query']['page']=_0x2fec2b),_0x18ae67[_0x36a99b('0x13b0')]());});function _0x9b245d(_0x362def){const _0x30740b=_0x1c6c97;return _0x49cbdd()[_0x30740b('0xf04')](_0x362def);}function _0x343723(){const _0x5703eb=_0x1c6c97;_0x49cbdd()[_0x5703eb('0x1857')](_0x18ae67[_0x5703eb('0x160f')],function(_0xd99577,_0x1eba57){const _0x27f871=_0x5703eb;_0x18ae67['rpcVoiceQueues'][_0x1eba57]&&(_0x18ae67[_0x27f871('0x160f')][_0x1eba57]['waiting']=_0x18ae67[_0x27f871('0x1d5d')][_0x1eba57][_0x27f871('0x2143')]||0x0);});}function _0x390e35(_0x5d2888){const _0x32f03a=_0x1c6c97;_0x18ae67[_0x32f03a('0x160f')][_0x5d2888['id']]&&(_0x18ae67[_0x32f03a('0x1d5d')][_0x5d2888['id']]&&(_0x18ae67[_0x32f03a('0x1d5d')][_0x5d2888['id']]=_0x5d2888,_0x49cbdd()['merge'](_0x18ae67[_0x32f03a('0x160f')][_0x5d2888['id']],_0x49cbdd()[_0x32f03a('0x230a')](_0x5d2888,_0x4c4278))));}function _0x496ba2(_0x140b92){const _0x46e3b6=_0x1c6c97;_0x140b92['type']===_0x46e3b6('0x1e77')&&(_0x140b92[_0x46e3b6('0x260')]?(delete _0x18ae67[_0x46e3b6('0x1c1c')][_0x140b92[_0x46e3b6('0x35b')]],_0x18ae67[_0x46e3b6('0xae2')]&&_0x18ae67['deleteVoiceQueuesChannels'][_0x46e3b6('0x269f')](_0x140b92[_0x46e3b6('0x35b')])):(_0x18ae67[_0x46e3b6('0x1c1c')][_0x140b92[_0x46e3b6('0x35b')]]=_0x140b92,_0x18ae67[_0x46e3b6('0xae2')]&&(_0x18ae67[_0x46e3b6('0xc3f')][_0x140b92['uniqueid']]=_0x140b92)));}function _0x5be536(_0x5b5253){const _0x4e09a7=_0x1c6c97;!_0x49cbdd()[_0x4e09a7('0x390')](_0x5b5253)&&(_0x18ae67[_0x4e09a7('0x1d5d')][_0x5b5253['id']]=_0x49cbdd()['pick'](_0x5b5253,_0x4c4278));}function _0x283f1e(_0x42a857){const _0x204e92=_0x1c6c97;!_0x49cbdd()['isNil'](_0x42a857)&&(_0x18ae67[_0x204e92('0x1d5d')][_0x42a857['id']]&&_0x49cbdd()[_0x204e92('0x1ced')](_0x18ae67[_0x204e92('0x1d5d')][_0x42a857['id']],_0x49cbdd()[_0x204e92('0x230a')](_0x42a857,_0x4c4278)),_0x18ae67[_0x204e92('0x160f')][_0x42a857['id']]&&_0x49cbdd()['merge'](_0x18ae67[_0x204e92('0x160f')][_0x42a857['id']],_0x49cbdd()[_0x204e92('0x230a')](_0x42a857,_0x4c4278)));}function _0x393073(_0x4760a2){const _0x2b6ed1=_0x1c6c97;!_0x49cbdd()[_0x2b6ed1('0x390')](_0x4760a2)&&(delete _0x18ae67['rpcVoiceQueues'][_0x4760a2['id']],delete _0x18ae67[_0x2b6ed1('0x160f')][_0x4760a2['id']]);}function _0x4357c9(_0x3f86bd){const _0x20f7fd=_0x1c6c97;_0x49cbdd()[_0x20f7fd('0x1254')](_0x3f86bd['UserId'])===_0x372da0['getCurrentUser']()['id']&&_0x18ae67['getVoiceQueues']();}_0x56a3ac[_0x1c6c97('0x207c')](_0x1c6c97('0x2b4'),function(){const _0x5e6670=_0x1c6c97;_0x7af282[_0x5e6670('0x1c65')](_0x5e6670('0x1ddb')),_0x7af282[_0x5e6670('0x1c65')](_0x5e6670('0x1b3')),_0x7af282[_0x5e6670('0x1c65')](_0x5e6670('0x1cfb')),_0x7af282['removeAllListeners'](_0x5e6670('0x1f34')),_0x7af282[_0x5e6670('0x1c65')](_0x5e6670('0x13a0')),_0x7af282[_0x5e6670('0x1c65')](_0x5e6670('0x167')),_0x7af282[_0x5e6670('0x1c65')](_0x5e6670('0x23c9'));});}const _0x300e6f=_0x14d210;_0x43ee93[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x25aa')];function _0x43ee93(_0x576011,_0x41f89b,_0x3bf09e,_0xd19a3e,_0x13521f,_0x16c77f,_0x173c2f,_0x1cff15,_0x4afbbc){const _0x861492=_0x4376d8,_0x2b6237=this,_0x2d1124=['id',_0x861492('0x2aa'),_0x861492('0x284c'),_0x861492('0x2143')];let _0x35197a=!![];_0x2b6237[_0x861492('0x1e35')]={},_0x2b6237[_0x861492('0x19c')]=0x0,_0x2b6237['rpcWhatsappQueues']={},_0x2b6237[_0x861492('0xfd3')]=[],_0x2b6237['deleteWhatsappQueuesWaitingInteractions']=[],_0x2b6237[_0x861492('0xb5c')]={},_0x2b6237[_0x861492('0x826')]={'id':_0x1cff15[_0x861492('0x2831')]()['id'],'channel':_0x861492('0x1d27'),'fields':_0x861492('0x2092'),'limit':0xa,'page':0x1},_0x2b6237[_0x861492('0xabe')]={'limit':0xa,'page':0x1},_0x2b6237[_0x861492('0x130d')]=_0xac860e,_0x2b6237[_0x861492('0x1b99')]=_0x128f80,_0x2b6237[_0x861492('0x1a55')]=_0x5d3bf5,_0x2b6237[_0x861492('0x1b33')]=_0x13017e,_0x2b6237[_0x861492('0x1155')]=_0x1ac6f2,_0x2b6237[_0x861492('0xf66')]=_0x1fa367,_0x2b6237[_0x861492('0x24ac')]=_0x27263b,_0x2b6237['onUpdateWhatsappQueue']=_0x3ac27a,_0x2b6237[_0x861492('0x91b')]=_0x30bc2a,_0x2b6237[_0x861492('0x2805')]=_0x524073,_0x2b6237[_0x861492('0x24a7')]=_0x2b39ff,_0x2b6237[_0x861492('0x2428')]=_0x434ade,_0x2b6237[_0x861492('0x26da')]=_0x40448c,_0x4afbbc[_0x861492('0x1335')]('whatsapp_queue:save',_0x2b6237[_0x861492('0xf66')]),_0x4afbbc[_0x861492('0x1335')](_0x861492('0x391'),_0x2b6237[_0x861492('0x24ac')]),_0x4afbbc[_0x861492('0x1335')](_0x861492('0xed9'),_0x2b6237[_0x861492('0x2827')]),_0x4afbbc[_0x861492('0x1335')]('whatsappQueue:remove',_0x2b6237[_0x861492('0x91b')]),_0x4afbbc['onWithoutApply']('userWhatsappQueue:save',_0x2b6237['onSaveUserWhatsappQueue']),_0x4afbbc[_0x861492('0x1335')](_0x861492('0x25f1'),_0x2b6237[_0x861492('0x24a7')]),_0x4afbbc[_0x861492('0x1335')](_0x861492('0x392'),_0x2b6237[_0x861492('0x2428')]),_0x4afbbc[_0x861492('0x1335')](_0x861492('0xdd5'),_0x2b6237[_0x861492('0x26da')]),_0x173c2f[_0x861492('0x1207')][_0x861492('0x1b99')]()[_0x861492('0x1af5')]['then'](function(_0x3e7237){const _0x579d3f=_0x861492;_0x2b6237[_0x579d3f('0x12e4')]=_0x3e7237?_0x49cbdd()['keyBy'](_0x3e7237['rows']?_0x3e7237[_0x579d3f('0x2319')]:[],'id'):{};})[_0x861492('0x17e7')](function(){const _0x28fde3=_0x861492;return _0x173c2f[_0x28fde3('0x221e')][_0x28fde3('0x1f3b')]({'id':_0x1cff15[_0x28fde3('0x2831')]()['id'],'channel':'whatsapp'})[_0x28fde3('0x1af5')];})[_0x861492('0x17e7')](function(_0x52cdef){const _0x12fe0e=_0x861492;return _0x2b6237[_0x12fe0e('0x557')]=_0x52cdef[_0x12fe0e('0x2319')],_0x173c2f[_0x12fe0e('0x1207')][_0x12fe0e('0x2609')]()['$promise'];})[_0x861492('0x17e7')](function(_0x57fb49){const _0x24a081=_0x861492,_0x28818d=_0x49cbdd()['filter'](_0x57fb49[_0x24a081('0x2319')],function(_0xd55add){const _0x4e268d=_0x24a081;return _0x49cbdd()['includes'](_0x2b6237['myQueues'],{'id':_0xd55add[_0x4e268d('0x2f7')]});});_0x57fb49[_0x24a081('0x2319')]=_0x28818d,_0x57fb49['count']=_0x28818d['length'],_0x49cbdd()[_0x24a081('0x1ced')](_0x2b6237[_0x24a081('0xb5c')],_0x57fb49?_0x49cbdd()[_0x24a081('0x8de')](_0x57fb49[_0x24a081('0x2319')]?_0x57fb49[_0x24a081('0x2319')]:[],'id'):{});})[_0x861492('0x16df')](function(_0x2076b0){const _0x45c14e=_0x861492;console[_0x45c14e('0x1db9')](_0x2076b0);})[_0x861492('0x74e')](function(){const _0x37b179=_0x861492;for(let _0x5cf5b9=0x0;_0x5cf5b9<_0x2b6237[_0x37b179('0x7cc')]['length'];_0x5cf5b9+=0x1){delete _0x2b6237[_0x37b179('0xb5c')][_0x2b6237[_0x37b179('0x7cc')][_0x5cf5b9]];}_0x35197a=![],_0x2b6237['deleteWhatsappQueuesWaitingInteractions']=[],_0x128f80(),_0x1ac6f2();});function _0x1ac6f2(){const _0x37b21c=_0x861492,_0xda5e9=(_0x2b6237['queryChannels']['page']-0x1)*_0x2b6237['queryChannels'][_0x37b21c('0x193b')];_0x2b6237[_0x37b21c('0xfd3')]=_0x49cbdd()['orderBy'](_0x2b6237[_0x37b21c('0xb5c')],[_0x37b21c('0x1fde')],['desc']),_0x2b6237['interactions']=_0x49cbdd()[_0x37b21c('0x6c0')](_0x2b6237[_0x37b21c('0xfd3')],_0xda5e9)['slice'](0x0,_0x2b6237[_0x37b21c('0xabe')][_0x37b21c('0x193b')]);}function _0xac860e(_0x52cb58){const _0x4885f5=_0x861492;_0x2b6237[_0x4885f5('0x19c')]=_0x52cb58[_0x4885f5('0x335')]?_0x52cb58[_0x4885f5('0x335')]:0x0,_0x2b6237['whatsappQueues']=_0x52cb58?_0x49cbdd()['keyBy'](_0x52cb58[_0x4885f5('0x2319')]?_0x52cb58[_0x4885f5('0x2319')]:[],'id'):{},_0xcc2095();}function _0x128f80(){const _0x33868a=_0x861492;_0x2b6237[_0x33868a('0x826')][_0x33868a('0xf19')]=(_0x2b6237[_0x33868a('0x826')]['page']-0x1)*_0x2b6237[_0x33868a('0x826')]['limit'],_0x2b6237['promise']=_0x173c2f['user'][_0x33868a('0x1f3b')](_0x2b6237[_0x33868a('0x826')],_0xac860e)['$promise'];}let _0x19bd13=!![],_0x5816d9=0x1;_0x576011[_0x861492('0x620')](_0x861492('0x4c3'),function(_0x27d56c,_0x429581){const _0x40e37f=_0x861492;_0x19bd13?_0x41f89b(function(){_0x19bd13=![];}):(!_0x429581&&(_0x5816d9=_0x2b6237['query'][_0x40e37f('0x115a')]),_0x27d56c!==_0x429581&&(_0x2b6237[_0x40e37f('0x826')][_0x40e37f('0x115a')]=0x1),!_0x27d56c&&(_0x2b6237[_0x40e37f('0x826')]['page']=_0x5816d9),_0x2b6237[_0x40e37f('0x1b99')]());});function _0x5d3bf5(_0x24c3b1){return _0x49cbdd()['size'](_0x24c3b1);}function _0xcc2095(){_0x49cbdd()['forIn'](_0x2b6237['whatsappQueues'],function(_0x13c34e,_0x39d895){const _0x5be750=a0_0xd29e;_0x2b6237[_0x5be750('0x12e4')][_0x39d895]&&(_0x2b6237[_0x5be750('0x1e35')][_0x39d895][_0x5be750('0x2143')]=_0x2b6237[_0x5be750('0x12e4')][_0x39d895][_0x5be750('0x2143')]||0x0);});}function _0x1fa367(_0xf3f79c){const _0x53e7e7=_0x861492;_0x2b6237['whatsappQueues'][_0xf3f79c['id']]&&(_0x2b6237[_0x53e7e7('0x12e4')][_0xf3f79c['id']]&&(_0x49cbdd()[_0x53e7e7('0x1ced')](_0x2b6237[_0x53e7e7('0x12e4')][_0xf3f79c['id']],_0x49cbdd()['pick'](_0xf3f79c,_0x2d1124)),_0x49cbdd()['merge'](_0x2b6237[_0x53e7e7('0x1e35')][_0xf3f79c['id']],_0x49cbdd()[_0x53e7e7('0x230a')](_0xf3f79c,_0x2d1124))));}function _0x27263b(_0x180f56){const _0x29d7f0=_0x861492;!_0x49cbdd()[_0x29d7f0('0x390')](_0x180f56)&&(_0x2b6237[_0x29d7f0('0x12e4')][_0x180f56['id']]=_0x49cbdd()['pick'](_0x180f56,_0x2d1124));}function _0x3ac27a(_0x53e860){const _0x12c6a3=_0x861492;!_0x49cbdd()[_0x12c6a3('0x390')](_0x53e860)&&(_0x2b6237[_0x12c6a3('0x12e4')][_0x53e860['id']]&&_0x49cbdd()['merge'](_0x2b6237[_0x12c6a3('0x12e4')][_0x53e860['id']],_0x49cbdd()[_0x12c6a3('0x230a')](_0x53e860,_0x2d1124)),_0x2b6237[_0x12c6a3('0x1e35')][_0x53e860['id']]&&_0x49cbdd()[_0x12c6a3('0x1ced')](_0x2b6237['whatsappQueues'][_0x53e860['id']],_0x49cbdd()[_0x12c6a3('0x230a')](_0x53e860,_0x2d1124)));}function _0x30bc2a(_0x52cba3){const _0x279de4=_0x861492;!_0x49cbdd()[_0x279de4('0x390')](_0x52cba3)&&(delete _0x2b6237['rpcWhatsappQueues'][_0x52cba3['id']],delete _0x2b6237[_0x279de4('0x1e35')][_0x52cba3['id']]);}function _0x524073(_0x352ac5){const _0x455e35=_0x861492;_0x49cbdd()[_0x455e35('0x1254')](_0x352ac5[_0x455e35('0x5e5')])===_0x1cff15['getCurrentUser']()['id']&&_0x2b6237[_0x455e35('0x1b99')]();}function _0x2b39ff(_0x836bf5){const _0x3bb458=_0x861492;_0x49cbdd()[_0x3bb458('0x1254')](_0x836bf5[_0x3bb458('0x5e5')])===_0x1cff15['getCurrentUser']()['id']&&_0x2b6237[_0x3bb458('0x1b99')]();}function _0x434ade(_0x51036e){const _0xb24eba=_0x861492;_0x2b6237[_0xb24eba('0x1e35')][_0x51036e[_0xb24eba('0x2f7')]]&&(_0x2b6237[_0xb24eba('0xb5c')][_0x51036e['id']]=_0x51036e,_0x1ac6f2());}function _0x40448c(_0x460561){const _0xc61be6=_0x861492;delete _0x2b6237[_0xc61be6('0xb5c')][_0x460561['id']],_0x35197a&&_0x2b6237['deleteWhatsappQueuesWaitingInteractions'][_0xc61be6('0x269f')](_0x460561['id']),_0x1ac6f2();}function _0x13017e(_0x24e153){const _0x59586f=_0x861492;switch(_0x24e153){case'chat':return _0x59586f('0x1d22');case _0x59586f('0xc2'):return _0x59586f('0x4e');case _0x59586f('0x2cd'):return _0x59586f('0xdb3');case _0x59586f('0x1d27'):return _0x59586f('0x11b3');case _0x59586f('0x1508'):return _0x59586f('0x1e30');case _0x59586f('0xc23'):return'blue-grey-A200-bg';default:return'white-bg';}}_0x576011[_0x861492('0x207c')](_0x861492('0x2b4'),function(){const _0x4d4e5b=_0x861492;_0x4afbbc[_0x4d4e5b('0x1c65')](_0x4d4e5b('0x2652')),_0x4afbbc[_0x4d4e5b('0x1c65')](_0x4d4e5b('0x391')),_0x4afbbc[_0x4d4e5b('0x1c65')]('whatsappQueue:update'),_0x4afbbc['removeAllListeners']('whatsappQueue:remove'),_0x4afbbc[_0x4d4e5b('0x1c65')](_0x4d4e5b('0x1c08')),_0x4afbbc[_0x4d4e5b('0x1c65')](_0x4d4e5b('0x25f1')),_0x4afbbc[_0x4d4e5b('0x1c65')](_0x4d4e5b('0x392')),_0x4afbbc[_0x4d4e5b('0x1c65')](_0x4d4e5b('0xdd5'));});}const _0x3344ad=_0x43ee93;_0x3f6522['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x198f'),'$translate',_0x4376d8('0x212e'),'Auth',_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0x858')];function _0x3f6522(_0x2660b0,_0x56b3f2,_0x4a9c0f,_0x58b08c,_0x3e126f,_0x3c365a,_0x5e2034,_0x571574,_0x5a989c,_0x136be2,_0x12430e){const _0x4efb3e=_0x4376d8,_0x2ea7d1=this;_0x2ea7d1[_0x4efb3e('0x221e')]=_0x571574[_0x4efb3e('0x2831')](),_0x2ea7d1[_0x4efb3e('0x1d11')]={},_0x2ea7d1[_0x4efb3e('0x1aeb')]={},_0x2ea7d1['tags']={'count':0x0,'rows':[]},_0x2ea7d1[_0x4efb3e('0x15a3')]={'count':0x0,'rows':[]},_0x2ea7d1[_0x4efb3e('0x826')]={'includeAll':!![],'sort':'-updatedAt','limit':0xa,'page':0x1,'read':null,'closed':null},_0x2ea7d1[_0x4efb3e('0xfb6')]={'fields':[{'name':'Id','column':'id','type':_0x4efb3e('0x7b8')},{'name':_0x4efb3e('0x239b'),'column':_0x4efb3e('0x239b'),'type':_0x4efb3e('0x682'),'options':{'searchFields':[_0x4efb3e('0x1761'),_0x4efb3e('0x8d6'),'email'],'route':{'model':'cmContact','action':_0x4efb3e('0x1c53'),'params':{'fields':_0x4efb3e('0x2030'),'Contact':_0x4efb3e('0xe1e'),'nolimit':!![]}},'extraOperators':[_0x4efb3e('0x1ed7')],'excludedOperators':[_0x4efb3e('0xdaa')]}},{'name':'Body','column':_0x4efb3e('0x13aa'),'type':_0x4efb3e('0x132f'),'options':{'excludedOperators':[_0x4efb3e('0x1767'),_0x4efb3e('0xdaa')]}},{'name':'Status','column':_0x4efb3e('0x2bc'),'type':_0x4efb3e('0x2897'),'values':[{'id':0x0,'translate':_0x4efb3e('0x1f4f')},{'id':0x1,'translate':'DASHBOARDS.CLOSED'}],'options':{'excludedOperators':[_0x4efb3e('0xdaa')]}},{'name':_0x4efb3e('0x1874'),'column':_0x4efb3e('0x24fd'),'type':_0x4efb3e('0x682'),'options':{'table':'i','route':{'model':'user','action':_0x4efb3e('0x1c53'),'params':{'role':_0x4efb3e('0x684'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x4efb3e('0x1ed7')],'excludedOperators':[_0x4efb3e('0xdaa')]}},{'name':_0x4efb3e('0x896'),'column':_0x4efb3e('0x24f9'),'type':'multiselect','options':{'route':{'model':_0x4efb3e('0x221e'),'action':_0x4efb3e('0x17d7'),'params':{'id':_0x2ea7d1['user']['id'],'nolimit':!![]}}}},{'name':'Tags','column':_0x4efb3e('0xe16'),'type':_0x4efb3e('0x1227'),'options':{'route':{'model':'tag','action':_0x4efb3e('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x4efb3e('0x2045')]}},{'name':_0x4efb3e('0x1786'),'column':_0x4efb3e('0x7c9'),'type':_0x4efb3e('0xbd4'),'options':{'excludedOperators':[_0x4efb3e('0xdaa')]}},{'name':_0x4efb3e('0xf8b'),'column':_0x4efb3e('0x1aad'),'type':_0x4efb3e('0x2897'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x4efb3e('0xdaa')]}}]},_0x2ea7d1[_0x4efb3e('0x87b')]=_0x4efb3e('0x219'),_0x2ea7d1[_0x4efb3e('0xdf0')]=_0x48f998,_0x2ea7d1[_0x4efb3e('0x130d')]=_0x45fd47,_0x2ea7d1['getFaxInteractions']=_0x41b1bd,_0x2ea7d1[_0x4efb3e('0xc22')]=_0x404600,_0x2ea7d1[_0x4efb3e('0x3d5')]=_0x128cfe,_0x2ea7d1[_0x4efb3e('0x1377')]=_0x41c547,_0x2ea7d1[_0x4efb3e('0x422')]=_0x2a155d,_0x2ea7d1[_0x4efb3e('0x266f')]=_0x192f8c,_0x2ea7d1[_0x4efb3e('0x1ef3')]=_0x686c84,_0x2ea7d1[_0x4efb3e('0x630')]=_0x3dfd51,_0x2ea7d1[_0x4efb3e('0x8ea')]=_0x519ccd,_0x2ea7d1[_0x4efb3e('0x1181')]=_0x1b33df,_0x2ea7d1[_0x4efb3e('0x585')]=_0x41a314;function _0x48f998(_0x3c54f3,_0x242ae9){const _0xea506b=_0x4efb3e;return _0x2ea7d1[_0xea506b('0x1d11')]=_0x3c54f3,_0x2ea7d1[_0xea506b('0x1aeb')]=_0x242ae9,_0x5e2034['user'][_0xea506b('0x1c53')+_0x49cbdd()['upperFirst'](_0xea506b('0xec4'))]({'id':_0x2ea7d1[_0xea506b('0x221e')]['id'],'nolimit':!![]})['$promise']['then'](function(_0x40185e){const _0x3ea92d=_0xea506b;return _0x2ea7d1[_0x3ea92d('0xec4')]=_0x40185e||{'count':0x0,'rows':[]},_0x5e2034[_0x3ea92d('0x1132')][_0x3ea92d('0x1c53')]()[_0x3ea92d('0x1af5')];})[_0xea506b('0x17e7')](function(_0x130786){const _0x4a03b5=_0xea506b;_0x2ea7d1[_0x4a03b5('0x1522')]=_0x130786||{'count':0x0,'rows':[]};})[_0xea506b('0x17e7')](function(){const _0x293c4f=_0xea506b;_0x2ea7d1[_0x293c4f('0x137d')]=_0x585456();})[_0xea506b('0x16df')](function(_0x44eb9b){const _0xf9df2e=_0xea506b;console[_0xf9df2e('0x1db9')](_0x44eb9b);})['finally'](function(){const _0x34b554=_0xea506b;let _0x631dc2=_0x3e126f[_0x34b554('0x1a93')][_0x34b554('0x3b8')](_0x34b554('0x238')+_0x2ea7d1['user']['id']);if(_0x631dc2)try{_0x631dc2=JSON[_0x34b554('0x1f0a')](_0x631dc2);if(_0x631dc2['query']){_0x2ea7d1[_0x34b554('0x826')]=_0x49cbdd()[_0x34b554('0x1ced')](_0x2ea7d1[_0x34b554('0x826')],_0x631dc2['query']);if(_0x49cbdd()[_0x34b554('0x109a')](_0x2ea7d1[_0x34b554('0xec4')]['rows']))_0x2ea7d1['query'][_0x34b554('0x24f9')]=[];else _0x49cbdd()[_0x34b554('0x109a')](_0x2ea7d1[_0x34b554('0x826')]['FaxAccountId'])&&(_0x2ea7d1[_0x34b554('0x826')]['FaxAccountId']=_0x49cbdd()(_0x2ea7d1['faxAccounts'][_0x34b554('0x2319')])[_0x34b554('0x787')]('id')[_0x34b554('0x1232')]()['value']());_0x2ea7d1[_0x34b554('0x826')][_0x34b554('0x1b22')]&&_0x2ea7d1[_0x34b554('0x826')][_0x34b554('0x1b22')][_0x34b554('0x2567')](_0x34b554('0x1723'))>=0x0&&(_0x2ea7d1['query']=_0x49cbdd()[_0x34b554('0x15c3')](_0x2ea7d1['query'],_0x34b554('0x1b22'))),_0x2ea7d1[_0x34b554('0x826')][_0x34b554('0x1cad')]=!![],_0x2ea7d1[_0x34b554('0x1949')]=_0x2ea7d1[_0x34b554('0x826')]['filter']?!![]:![];}}catch(_0x24fb4b){console[_0x34b554('0x1db9')](_0x24fb4b);}else{const _0x3616fd={'$gte':_0x107a13()()[_0x34b554('0x161c')](_0x34b554('0x7c7'))[_0x34b554('0x1376')](0x0,!![])['format'](),'$lte':_0x107a13()()[_0x34b554('0x200e')](_0x34b554('0x7c7'))['utcOffset'](0x0,!![])[_0x34b554('0x1c0d')]()},_0x1b427e={'FaxAccountId':_0x49cbdd()[_0x34b554('0x787')](_0x2ea7d1[_0x34b554('0xec4')][_0x34b554('0x2319')],'id'),'createdAt':_0x3616fd};_0x2ea7d1[_0x34b554('0x826')]=_0x49cbdd()[_0x34b554('0x1ced')](_0x2ea7d1[_0x34b554('0x826')],_0x1b427e);}_0x5a989c['on'](_0x34b554('0x2390'),_0x3c9d91),_0x5a989c['on'](_0x34b554('0x1870'),_0x3c9d91),_0x5a989c['on'](_0x34b554('0x4f6'),_0x3eb067),_0x5a989c['on'](_0x34b554('0x1ab9'),_0x1934c2),_0x5a989c['on'](_0x34b554('0x16ef'),_0x1934c2),_0x5a989c['on'](_0x34b554('0x2581'),_0x1ccab1),_0x5a989c['on'](_0x34b554('0x169b'),_0x3ca308),_0x41b1bd(_0x2ea7d1[_0x34b554('0x826')]['page']);});}function _0x585456(){const _0x3e8ede=_0x4efb3e;return[{'name':_0x3e8ede('0x1786'),'key':_0x3e8ede('0x7c9'),'type':'date','label':_0x3e8ede('0x1ee1')},{'name':_0x3e8ede('0xd08'),'key':_0x3e8ede('0xf64'),'type':'select','label':_0x3e8ede('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x3e8ede('0x263')},{'value':0x1,'translate':_0x3e8ede('0x2874')},{'value':null,'translate':_0x3e8ede('0x9cf')}]},{'name':'Status','key':_0x3e8ede('0x2bc'),'type':'select','label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x3e8ede('0x1f4f')},{'value':0x1,'translate':_0x3e8ede('0x2322')},{'value':null,'translate':_0x3e8ede('0x9cf')}]},{'name':'Account','key':'FaxAccountId','type':_0x3e8ede('0x1227'),'label':_0x3e8ede('0x27da'),'options':_0x2ea7d1[_0x3e8ede('0xec4')][_0x3e8ede('0x2319')],'clearAll':![]},{'name':_0x3e8ede('0x1874'),'key':'UserId','type':_0x3e8ede('0x2897'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x2ea7d1[_0x3e8ede('0x221e')]['id'],'translate':_0x3e8ede('0x2422')},{'value':_0x3e8ede('0x9bb'),'translate':_0x3e8ede('0x154d')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x3e8ede('0xe16'),'key':_0x3e8ede('0x1132'),'type':'multiselect','label':_0x3e8ede('0x1e4d'),'options':_0x2ea7d1[_0x3e8ede('0x1522')][_0x3e8ede('0x2319')],'placeholder':_0x3e8ede('0x21aa')}];}function _0x45fd47(_0x39463d){const _0x527e59=_0x4efb3e;_0x2ea7d1['searchInProgress']=![],_0x2ea7d1[_0x527e59('0x15a3')]=_0x39463d||{'count':0x0,'rows':[]};for(let _0x12b5fb=0x0;_0x12b5fb<_0x2ea7d1['faxInteractions'][_0x527e59('0x2319')][_0x527e59('0x1f73')];_0x12b5fb+=0x1){_0x2a155d(_0x2ea7d1[_0x527e59('0x15a3')][_0x527e59('0x2319')][_0x12b5fb]);}}function _0x41b1bd(_0x3d874d){const _0x2bb51c=_0x4efb3e;_0x2ea7d1[_0x2bb51c('0x1bde')]=!![];!_0x3d874d&&(_0x2ea7d1[_0x2bb51c('0x826')][_0x2bb51c('0x115a')]=0x1);_0x2ea7d1[_0x2bb51c('0x826')][_0x2bb51c('0xf19')]=(_0x2ea7d1[_0x2bb51c('0x826')][_0x2bb51c('0x115a')]-0x1)*_0x2ea7d1[_0x2bb51c('0x826')][_0x2bb51c('0x193b')];let _0x5184df=_0x3e126f[_0x2bb51c('0x1a93')][_0x2bb51c('0x3b8')](_0x2bb51c('0x238')+_0x2ea7d1[_0x2bb51c('0x221e')]['id']);_0x5184df=_0x5184df?JSON[_0x2bb51c('0x1f0a')](_0x5184df):{},_0x5184df[_0x2bb51c('0x826')]=_0x2ea7d1[_0x2bb51c('0x826')],_0x3e126f[_0x2bb51c('0x1a93')][_0x2bb51c('0x230f')](_0x2bb51c('0x238')+_0x2ea7d1[_0x2bb51c('0x221e')]['id'],JSON[_0x2bb51c('0x678')](_0x5184df)),_0x2ea7d1[_0x2bb51c('0x1691')]=_0x5e2034[_0x2bb51c('0xed8')]['get'](_0x2ea7d1['query'],_0x45fd47)[_0x2bb51c('0x1af5')];}function _0x404600(_0x2c50a6,_0x3e032a){const _0x836bfb=_0x4efb3e;_0x2660b0['$parent']['vm'][_0x836bfb('0x3a2')](_0x836bfb('0xc23'),_0x3e032a);}function _0x128cfe(_0x4263cb,_0x5926c7,_0x26f839){const _0x657864=_0x4efb3e;_0x5e2034[_0x657864('0xed8')][_0x657864('0x1244')]({'id':_0x5926c7['id'],'attachments':_0x26f839})['$promise'][_0x657864('0x17e7')](function(_0x50bfe6){const _0xc065bd=_0x657864,_0x164581=[_0x50bfe6['buffer']],_0x2de430=_0xc065bd('0x289b')+_0x5926c7['id']+_0xc065bd('0x71b'),_0xf38820=new Blob(_0x164581,{'type':_0x50bfe6[_0xc065bd('0x412')]}),_0x5bc017=window[_0xc065bd('0x2be')][_0xc065bd('0x68d')]('a');_0x5bc017[_0xc065bd('0x224')](_0xc065bd('0x448'),URL['createObjectURL'](_0xf38820)),_0x5bc017[_0xc065bd('0x224')](_0xc065bd('0x1244'),_0x2de430),document['body']['appendChild'](_0x5bc017),_0x5bc017['click']();})[_0x657864('0x16df')](function(_0x31d8cf){const _0x1c2f3d=_0x657864;if(_0x31d8cf[_0x1c2f3d('0x1457')]&&_0x31d8cf[_0x1c2f3d('0x1457')][_0x1c2f3d('0x73e')]&&_0x31d8cf[_0x1c2f3d('0x1457')][_0x1c2f3d('0x73e')][_0x1c2f3d('0x1f73')])for(let _0x2b5e73=0x0;_0x2b5e73<_0x31d8cf[_0x1c2f3d('0x1457')][_0x1c2f3d('0x73e')]['length'];_0x2b5e73+=0x1){_0x136be2[_0x1c2f3d('0x1db9')]({'title':_0x31d8cf[_0x1c2f3d('0x1457')]['errors'][_0x2b5e73][_0x1c2f3d('0x412')],'msg':_0x31d8cf[_0x1c2f3d('0x1457')]['errors'][_0x2b5e73][_0x1c2f3d('0x1603')]});}else _0x136be2[_0x1c2f3d('0x1db9')]({'title':_0x31d8cf[_0x1c2f3d('0x11c5')]?_0x1c2f3d('0x14f7')+_0x31d8cf['status']+_0x1c2f3d('0x16e4')+_0x31d8cf[_0x1c2f3d('0x1833')]:'downloadFaxInteraction','msg':_0x31d8cf['data']?JSON['stringify'](_0x31d8cf[_0x1c2f3d('0x1457')]['message']):_0x31d8cf[_0x1c2f3d('0x9b6')]()});});}function _0x41c547(_0x5a6c91,_0xd6e68d){const _0x58162a=_0x4efb3e,_0xa45ff9=_0x2ea7d1['user'][_0x58162a('0x118a')]||_0x2ea7d1[_0x58162a('0x221e')]['chatPause']||_0x2ea7d1[_0x58162a('0x221e')][_0x58162a('0x1467')]||_0x2ea7d1[_0x58162a('0x221e')][_0x58162a('0x105e')]||_0x2ea7d1['user'][_0x58162a('0x1d98')],_0x32c707=!_0xd6e68d[_0x58162a('0x896')][_0x58162a('0xb20')];_0x4a9c0f[_0x58162a('0x28e2')]({'controller':_0x58162a('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular['element'](_0x58b08c[_0x58162a('0x13aa')]),'clickOutsideToClose':_0x32c707,'escapeToClose':_0x32c707,'onRemoving':function(){const _0x15962e=_0x58162a;_0x2ea7d1[_0x15962e('0x221e')]&&_0xd6e68d[_0x15962e('0x896')][_0x15962e('0xb20')]&&!_0xa45ff9&&_0x5e2034[_0x15962e('0x221e')][_0x15962e('0xc57')]({'id':_0x2ea7d1[_0x15962e('0x221e')]['id']})['$promise'][_0x15962e('0x16df')](function(_0x3af560){const _0x5da678=_0x15962e;console[_0x5da678('0x1db9')](_0x3af560);});},'locals':{'user':_0x2ea7d1[_0x58162a('0x221e')],'channel':'fax','interaction':_0xd6e68d}});}function _0x2a155d(_0x12dcd1){const _0x46acc2=_0x4efb3e;_0x12dcd1['Contact']?(_0x12dcd1[_0x46acc2('0x192c')]=(_0x12dcd1[_0x46acc2('0x239b')][_0x46acc2('0x1761')]||'')+'\x20'+(_0x12dcd1['Contact'][_0x46acc2('0x8d6')]||''),_0x12dcd1[_0x46acc2('0x1720')]=_0x12dcd1['Contact']['fax']):_0x12dcd1[_0x46acc2('0x192c')]=_0x3c365a[_0x46acc2('0x1acc')](_0x46acc2('0x30a'));}function _0x192f8c(_0x12451f){const _0x498526=_0x4efb3e;if(_0x12451f[_0x498526('0x5e5')])return _0x12451f[_0x498526('0x5e5')]===_0x2ea7d1[_0x498526('0x221e')]['id']?_0x3c365a[_0x498526('0x1acc')]('DASHBOARDS.ME'):_0x12451f['Owner'][_0x498526('0xea6')]+'\x20<'+_0x12451f[_0x498526('0xe49')][_0x498526('0xe3e')]+'>';return _0x3c365a[_0x498526('0x1acc')](_0x498526('0x154d'));}function _0x686c84(_0x5c51f9){const _0x204fd3=_0x4efb3e;if(_0x5c51f9[_0x204fd3('0x896')])return _0x5c51f9[_0x204fd3('0x896')][_0x204fd3('0xdb5')];return _0x3c365a[_0x204fd3('0x1acc')]('DASHBOARDS.UNKNOWN');}function _0x3dfd51(_0x55e8c7,_0x4681c5){const _0x2844af=_0x4efb3e;_0x4a9c0f[_0x2844af('0x28e2')]({'controller':_0x2844af('0x1fc3'),'controllerAs':'vm','templateUrl':_0x58ae6b,'parent':angular['element'](_0x58b08c[_0x2844af('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x4681c5,'message':{},'type':'new','interaction':{}},'fullscreen':!![]})['then'](function(_0x1e22d2){const _0xde6e64=_0x2844af;if(_0x1e22d2){if(_0x1e22d2[_0xde6e64('0x1603')]&&_0x1e22d2[_0xde6e64('0x1603')][_0xde6e64('0xa8b')]){const _0x553be2={'channel':_0xde6e64('0xc23'),'account':_0x4681c5,'message':_0x1e22d2[_0xde6e64('0x1603')],'contact':_0x1e22d2[_0xde6e64('0x1c58')]};_0x12430e[_0xde6e64('0xd62')](_0x553be2);}else{const _0x424858=_0x1e22d2;return _0x5e2034['faxAccount'][_0xde6e64('0x13b7')]({'id':_0x4681c5['id']},_0x424858)[_0xde6e64('0x1af5')]['then'](function(_0x208ec2){const _0x598067=_0xde6e64;_0x136be2['success']({'title':'Message\x20properly\x20sent!','msg':_0x598067('0x2235')}),_0x2660b0['$parent']['vm'][_0x598067('0x3a2')](_0x598067('0xc23'),_0x208ec2);})['catch'](function(_0x4b60dd){const _0x412372=_0xde6e64;if(_0x4b60dd[_0x412372('0x1457')]&&_0x4b60dd[_0x412372('0x1457')][_0x412372('0x73e')]&&_0x4b60dd['data'][_0x412372('0x73e')]['length'])for(let _0x111ab9=0x0;_0x111ab9<_0x4b60dd['data'][_0x412372('0x73e')]['length'];_0x111ab9++){_0x136be2[_0x412372('0x1db9')]({'title':_0x4b60dd[_0x412372('0x1457')][_0x412372('0x73e')][_0x111ab9][_0x412372('0x412')],'msg':_0x4b60dd['data'][_0x412372('0x73e')][_0x111ab9]['message']});}else _0x136be2[_0x412372('0x1db9')]({'title':_0x412372('0x2c'),'msg':_0x4b60dd['data']?JSON['stringify'](_0x4b60dd['data']):_0x4b60dd[_0x412372('0x1603')]||_0x4b60dd['toString']()});});}}});}function _0x1ccab1(_0x47bbf1){const _0x424179=_0x4efb3e;let _0x2644fd;const _0x458f70=_0x49cbdd()[_0x424179('0xe8e')](_0x2ea7d1[_0x424179('0x15a3')]['rows'],{'id':_0x47bbf1[_0x424179('0x1f0f')]});_0x458f70&&_0x458f70['Users']&&(_0x2644fd=_0x49cbdd()['find'](_0x458f70[_0x424179('0x15d4')],{'id':_0x47bbf1[_0x424179('0x5e5')]}),!_0x2644fd&&_0x458f70[_0x424179('0x15d4')][_0x424179('0x269f')]({'id':_0x47bbf1[_0x424179('0x5e5')]}));}function _0x3ca308(_0xe397e2){const _0x4679ed=_0x4efb3e,_0x4e9885=_0x49cbdd()[_0x4679ed('0xe8e')](_0x2ea7d1[_0x4679ed('0x15a3')][_0x4679ed('0x2319')],{'id':_0xe397e2['FaxInteractionId']});_0x4e9885&&_0x4e9885['Users']&&_0x49cbdd()[_0x4679ed('0x5f3')](_0x4e9885[_0x4679ed('0x15d4')],{'id':_0xe397e2[_0x4679ed('0x5e5')]});}function _0x3c9d91(_0x235bbb){const _0x507220=_0x4efb3e;if(_0x235bbb){const _0x3e2a74=_0x49cbdd()['find'](_0x2ea7d1[_0x507220('0x15a3')][_0x507220('0x2319')],{'id':_0x235bbb['id']});if(_0x3e2a74){_0x3e2a74[_0x507220('0x15d4')]=[];_0x235bbb[_0x507220('0x2bc')]&&(_0x3e2a74[_0x507220('0x1aad')]=0x0);if(_0x2ea7d1[_0x507220('0x826')][_0x507220('0x1b22')]){const _0x32c768=_0x49cbdd()[_0x507220('0x818')](_0x2ea7d1[_0x507220('0x826')][_0x507220('0x1b22')],'-')?_0x507220('0x187b'):_0x507220('0x161a');_0x2ea7d1[_0x507220('0x15a3')]['rows']=_0x49cbdd()[_0x507220('0xa36')](_0x2ea7d1['faxInteractions'][_0x507220('0x2319')],_0x49cbdd()['trimStart'](_0x2ea7d1[_0x507220('0x826')][_0x507220('0x1b22')],'-'),_0x32c768);}_0x49cbdd()[_0x507220('0x1ced')](_0x3e2a74,_0x49cbdd()[_0x507220('0x230a')](_0x235bbb,_0x49cbdd()['keys'](_0x3e2a74)));}else _0x41b1bd(_0x2ea7d1[_0x507220('0x826')][_0x507220('0x115a')]);}}function _0x3eb067(_0x2b0e27){const _0x47b1ac=_0x4efb3e;if(_0x2b0e27){const _0x1a5920=_0x49cbdd()[_0x47b1ac('0xe8e')](_0x2ea7d1[_0x47b1ac('0x15a3')][_0x47b1ac('0x2319')],{'id':_0x2b0e27['id']});_0x1a5920&&(_0x1a5920[_0x47b1ac('0x28a6')]=_0x2b0e27[_0x47b1ac('0x1522')]||[],_0x49cbdd()[_0x47b1ac('0x1ced')](_0x1a5920,_0x49cbdd()[_0x47b1ac('0x230a')](_0x2b0e27,_0x49cbdd()[_0x47b1ac('0x1c0f')](_0x1a5920))));}}function _0x1934c2(_0x27c3b3){const _0x170bda=_0x4efb3e;if(_0x27c3b3&&!_0x27c3b3['secret']){const _0x35394e=_0x49cbdd()[_0x170bda('0xe8e')](_0x2ea7d1['faxInteractions'][_0x170bda('0x2319')],{'id':_0x27c3b3['FaxInteractionId']});if(_0x35394e){const _0x1af608=_0x49cbdd()[_0x170bda('0xe8e')](_0x35394e[_0x170bda('0xd08')],{'id':_0x27c3b3['id']});_0x1af608?_0x49cbdd()[_0x170bda('0x1ced')](_0x1af608,_0x49cbdd()[_0x170bda('0x230a')](_0x27c3b3,_0x49cbdd()['keys'](_0x1af608))):(_0x49cbdd()[_0x170bda('0x390')](_0x35394e[_0x170bda('0xd08')])&&(_0x35394e[_0x170bda('0xd08')]={'count':0x0}),!_0x27c3b3[_0x170bda('0xf64')]&&(_0x35394e[_0x170bda('0xd08')]['count']+=0x1));}}}function _0x519ccd(){const _0x5b9ddc=_0x4efb3e;_0x2ea7d1[_0x5b9ddc('0x1949')]=![];}function _0x1b33df(){const _0x3d6ca1=_0x4efb3e;_0x2ea7d1[_0x3d6ca1('0x1949')]=!![];}function _0x41a314(){const _0x55765e=_0x4efb3e;_0x2ea7d1['isSearchBarVisible']=![],_0x4a9c0f['show']({'controller':_0x55765e('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0x55765e('0x1ce1')](_0x58b08c[_0x55765e('0x13aa')]),'clickOutsideToClose':![],'locals':{'color':_0x2ea7d1['sectionColor'],'fields':_0x2ea7d1['advancedSearch'][_0x55765e('0x9c9')],'storagePath':'home.fax'},'fullscreen':!![]})['then'](function(_0x43d812){const _0x149442=_0x55765e;_0x2ea7d1[_0x149442('0x826')][_0x149442('0xfba')]=_0x43d812===![]?undefined:_0x43d812;if(_0x2ea7d1['query'][_0x149442('0xfba')]||_0x43d812===![])_0x41b1bd();})[_0x55765e('0x16df')](function(_0x2ec782){const _0x27d4e0=_0x55765e;_0x136be2[_0x27d4e0('0x1db9')]({'title':_0x27d4e0('0x1288'),'msg':_0x2ec782['data']?JSON[_0x27d4e0('0x678')](_0x2ec782['data'][_0x27d4e0('0x1603')]):_0x2ec782['toString']()});});}let _0x33fba0=!![],_0x5c1374=0x1;_0x2660b0['$watch']('vm.query.filter',function(_0x4c8b76,_0x140a45){const _0x53aba2=_0x4efb3e;_0x33fba0?_0x56b3f2(function(){_0x33fba0=![];}):(!_0x140a45&&(_0x5c1374=_0x2ea7d1[_0x53aba2('0x826')][_0x53aba2('0x115a')]),_0x4c8b76!==_0x140a45&&(_0x2ea7d1[_0x53aba2('0x826')][_0x53aba2('0x115a')]=0x1),!_0x4c8b76&&(_0x2ea7d1[_0x53aba2('0x826')][_0x53aba2('0x115a')]=_0x5c1374),_0x41b1bd(_0x2ea7d1[_0x53aba2('0x826')][_0x53aba2('0x115a')]));}),_0x2660b0[_0x4efb3e('0x207c')]('$destroy',function(){const _0x528a5c=_0x4efb3e;_0x5a989c[_0x528a5c('0x1c65')](_0x528a5c('0x1ab9')),_0x5a989c[_0x528a5c('0x1c65')](_0x528a5c('0x16ef')),_0x5a989c[_0x528a5c('0x1c65')]('faxInteraction:save'),_0x5a989c[_0x528a5c('0x1c65')](_0x528a5c('0x4f6')),_0x5a989c[_0x528a5c('0x1c65')]('faxInteraction:update'),_0x5a989c[_0x528a5c('0x1c65')](_0x528a5c('0x2581')),_0x5a989c['removeAllListeners'](_0x528a5c('0x169b'));});}const _0x59ad71=_0x3f6522;_0x9773ef['$inject']=['$scope',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),'$translate',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0x858')];function _0x9773ef(_0x49f25d,_0x3a60f9,_0x2af644,_0x16d3a1,_0x58ecf7,_0x15bddf,_0x5248b4,_0x4e0abf,_0xaa961b,_0x46b2ae,_0x4ef01e){const _0x20515e=_0x4376d8,_0x45f918=this;_0x45f918['user']=_0x4e0abf[_0x20515e('0x2831')](),_0x45f918[_0x20515e('0x1d11')]={},_0x45f918[_0x20515e('0x1aeb')]={},_0x45f918['tags']={'count':0x0,'rows':[]},_0x45f918[_0x20515e('0xcc5')]={'count':0x0,'rows':[]},_0x45f918[_0x20515e('0x826')]={'includeAll':!![],'sort':_0x20515e('0x1ac6'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x45f918[_0x20515e('0xfb6')]={'fields':[{'name':'Id','column':'id','type':_0x20515e('0x7b8')},{'name':_0x20515e('0x239b'),'column':'Contact','type':_0x20515e('0x682'),'options':{'searchFields':['firstName',_0x20515e('0x8d6'),_0x20515e('0x822')],'route':{'model':_0x20515e('0x1d2a'),'action':_0x20515e('0x1c53'),'params':{'fields':_0x20515e('0x2030'),'Contact':_0x20515e('0xe1e'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x20515e('0xdaa')]}},{'name':'Subject','column':'subject','type':'text','options':{'excludedOperators':[_0x20515e('0x1767'),_0x20515e('0xdaa')]}},{'name':_0x20515e('0x2854'),'column':_0x20515e('0x139b'),'type':'text','options':{'excludedOperators':['$eq',_0x20515e('0xdaa')]}},{'name':'Status','column':_0x20515e('0x2bc'),'type':_0x20515e('0x2897'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x20515e('0x2322')}],'options':{'excludedOperators':[_0x20515e('0xdaa')]}},{'name':'Substatus','column':_0x20515e('0x2882'),'type':_0x20515e('0x1227'),'options':{'field':_0x20515e('0x2aa'),'route':{'model':_0x20515e('0x66'),'action':_0x20515e('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x20515e('0x2045')]}},{'name':_0x20515e('0x1874'),'column':_0x20515e('0x24fd'),'type':_0x20515e('0x682'),'options':{'table':'i','route':{'model':_0x20515e('0x221e'),'action':_0x20515e('0x1c53'),'params':{'role':_0x20515e('0x684'),'fields':_0x20515e('0x1f7'),'nolimit':!![]}},'searchFields':[_0x20515e('0xea6'),'name'],'extraOperators':['$substring'],'excludedOperators':[_0x20515e('0xdaa')]}},{'name':_0x20515e('0x896'),'column':_0x20515e('0xbda'),'type':_0x20515e('0x1227'),'options':{'route':{'model':_0x20515e('0x221e'),'action':_0x20515e('0x21d8'),'params':{'id':_0x45f918[_0x20515e('0x221e')]['id'],'nolimit':!![]}}}},{'name':_0x20515e('0x28a6'),'column':_0x20515e('0xe16'),'type':_0x20515e('0x1227'),'options':{'route':{'model':_0x20515e('0x1132'),'action':_0x20515e('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x20515e('0x2045')]}},{'name':_0x20515e('0x1786'),'column':_0x20515e('0x7c9'),'type':'date','options':{'excludedOperators':['$ne']}},{'name':_0x20515e('0xf8b'),'column':'unreadMessages','type':_0x20515e('0x2897'),'values':[{'id':0x1,'translate':_0x20515e('0x2874')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x20515e('0xdaa')]}}]},_0x45f918['sectionColor']=_0x20515e('0x2fc'),_0x45f918[_0x20515e('0xdf0')]=_0xce66f3,_0x45f918['success']=_0x8a9920,_0x45f918[_0x20515e('0x1b56')]=_0x3b364e,_0x45f918['showMailInteraction']=_0x120b68,_0x45f918[_0x20515e('0xd09')]=_0x492b94,_0x45f918[_0x20515e('0x1377')]=_0x2b1578,_0x45f918[_0x20515e('0x422')]=_0x6f40,_0x45f918['getAgentLabel']=_0x5730bb,_0x45f918[_0x20515e('0x7cd')]=_0x42b286,_0x45f918[_0x20515e('0x27a')]=_0x508947,_0x45f918[_0x20515e('0x8ea')]=_0x4e39de,_0x45f918[_0x20515e('0x1181')]=_0x546647,_0x45f918[_0x20515e('0x585')]=_0x37cf02,_0x49f25d[_0x20515e('0x207c')](_0x20515e('0x1961'),_0x4247f0);function _0xce66f3(_0x32810e,_0x4c93a0){const _0x2c12f5=_0x20515e;return _0x45f918[_0x2c12f5('0x1d11')]=_0x32810e,_0x45f918[_0x2c12f5('0x1aeb')]=_0x4c93a0,_0x5248b4['user'][_0x2c12f5('0x1c53')+_0x49cbdd()['upperFirst'](_0x2c12f5('0x3d9'))]({'id':_0x45f918[_0x2c12f5('0x221e')]['id'],'nolimit':!![]})['$promise'][_0x2c12f5('0x17e7')](function(_0x4a0a0b){const _0x2de74b=_0x2c12f5;return _0x45f918[_0x2de74b('0x3d9')]=_0x4a0a0b||{'count':0x0,'rows':[]},_0x5248b4[_0x2de74b('0x1132')][_0x2de74b('0x1c53')]()[_0x2de74b('0x1af5')];})['then'](function(_0x56a6ce){const _0x1f0bff=_0x2c12f5;_0x45f918[_0x1f0bff('0x1522')]=_0x56a6ce||{'count':0x0,'rows':[]};})['then'](function(){const _0x5e0d17=_0x2c12f5;return _0x5248b4['mailSubstatus'][_0x5e0d17('0x1c53')]({'nolimit':!![]})[_0x5e0d17('0x1af5')];})[_0x2c12f5('0x17e7')](function(_0xdf79b0){const _0x2a257d=_0x2c12f5;_0x45f918[_0x2a257d('0x1abe')]=_0xdf79b0||{'count':0x0,'rows':[]};})['then'](function(){_0x45f918['quickFilters']=_0xb0526d();})[_0x2c12f5('0x16df')](function(_0x171c16){const _0xa59fa=_0x2c12f5;console[_0xa59fa('0x1db9')](_0x171c16);})[_0x2c12f5('0x74e')](function(){const _0x230576=_0x2c12f5;let _0x3342b8=_0x58ecf7['localStorage'][_0x230576('0x3b8')]('motion2.home.mail:'+_0x45f918[_0x230576('0x221e')]['id']);if(_0x3342b8)try{_0x3342b8=JSON[_0x230576('0x1f0a')](_0x3342b8);if(_0x3342b8[_0x230576('0x826')]){_0x45f918[_0x230576('0x826')]=_0x49cbdd()['merge'](_0x45f918[_0x230576('0x826')],_0x3342b8['query']);if(_0x49cbdd()[_0x230576('0x109a')](_0x45f918[_0x230576('0x3d9')][_0x230576('0x2319')]))_0x45f918[_0x230576('0x826')][_0x230576('0xbda')]=[];else _0x49cbdd()[_0x230576('0x109a')](_0x45f918[_0x230576('0x826')]['MailAccountId'])&&(_0x45f918['query'][_0x230576('0xbda')]=_0x49cbdd()(_0x45f918[_0x230576('0x3d9')][_0x230576('0x2319')])[_0x230576('0x787')]('id')[_0x230576('0x1232')]()['value']());_0x45f918[_0x230576('0x826')][_0x230576('0x1b22')]&&_0x45f918[_0x230576('0x826')]['sort']['indexOf'](_0x230576('0x1723'))>=0x0&&(_0x45f918[_0x230576('0x826')]=_0x49cbdd()['omit'](_0x45f918[_0x230576('0x826')],_0x230576('0x1b22'))),_0x45f918['query'][_0x230576('0x1cad')]=!![],_0x45f918[_0x230576('0x1949')]=_0x45f918[_0x230576('0x826')][_0x230576('0x2483')]?!![]:![];}}catch(_0x2a1795){console['error'](_0x2a1795);}else{const _0x173caf={'$gte':_0x107a13()()[_0x230576('0x161c')](_0x230576('0x7c7'))[_0x230576('0x1376')](0x0,!![])[_0x230576('0x1c0d')](),'$lte':_0x107a13()()['endOf'](_0x230576('0x7c7'))[_0x230576('0x1376')](0x0,!![])['format']()},_0x4840a7={'MailAccountId':_0x49cbdd()[_0x230576('0x787')](_0x45f918['mailAccounts'][_0x230576('0x2319')],'id'),'createdAt':_0x173caf};_0x45f918[_0x230576('0x826')]=_0x49cbdd()[_0x230576('0x1ced')](_0x45f918['query'],_0x4840a7);}_0xaa961b['on'](_0x230576('0x2830'),_0xa79c03),_0xaa961b['on'](_0x230576('0x1f8d'),_0xa79c03),_0xaa961b['on'](_0x230576('0xd97'),_0x539c9b),_0xaa961b['on']('mailMessage:save',_0x36395c),_0xaa961b['on'](_0x230576('0x239'),_0x36395c),_0xaa961b['on'](_0x230576('0xd36'),_0x36b3fd),_0xaa961b['on'](_0x230576('0x18fa'),_0x244239),_0x3b364e(_0x45f918['query'][_0x230576('0x115a')]);});}function _0xb0526d(){const _0x105a4f=_0x20515e;return[{'name':_0x105a4f('0x1786'),'key':_0x105a4f('0x7c9'),'type':_0x105a4f('0xbd4'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x105a4f('0xd08'),'key':_0x105a4f('0xf64'),'type':_0x105a4f('0x2897'),'label':_0x105a4f('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x105a4f('0x263')},{'value':0x1,'translate':_0x105a4f('0x2874')},{'value':null,'translate':_0x105a4f('0x9cf')}]},{'name':'Status','key':_0x105a4f('0x2bc'),'type':_0x105a4f('0x2897'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':_0x105a4f('0x1f4f')},{'value':0x1,'translate':_0x105a4f('0x2322')},{'value':null,'translate':_0x105a4f('0x9cf')}]},{'name':_0x105a4f('0x1ff0'),'key':_0x105a4f('0x2882'),'type':_0x105a4f('0x2897'),'label':'DASHBOARDS.SELECT_SUBSTATUS','options':_0x45f918[_0x105a4f('0x1abe')]['rows'],'customOptions':[{'value':_0x105a4f('0x9bb'),'translate':_0x105a4f('0x1d09')},{'value':undefined,'translate':_0x105a4f('0x9cf')}],'ngValue':'name','ngIf':_0x105a4f('0x1d9f')},{'name':_0x105a4f('0x896'),'key':'MailAccountId','type':'multiselect','label':_0x105a4f('0x27da'),'options':_0x45f918[_0x105a4f('0x3d9')][_0x105a4f('0x2319')],'clearAll':![]},{'name':_0x105a4f('0x1874'),'key':_0x105a4f('0x5e5'),'type':_0x105a4f('0x2897'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x45f918[_0x105a4f('0x221e')]['id'],'translate':'DASHBOARDS.ME'},{'value':_0x105a4f('0x9bb'),'translate':_0x105a4f('0x154d')},{'value':undefined,'translate':_0x105a4f('0x9cf')}]},{'name':_0x105a4f('0xe16'),'key':_0x105a4f('0x1132'),'type':_0x105a4f('0x1227'),'label':_0x105a4f('0x1e4d'),'options':_0x45f918[_0x105a4f('0x1522')]['rows'],'placeholder':_0x105a4f('0x21aa')}];}function _0x8a9920(_0x2cdc82){const _0x1098ac=_0x20515e;_0x45f918[_0x1098ac('0x1bde')]=![],_0x45f918[_0x1098ac('0xcc5')]=_0x2cdc82||{'count':0x0,'rows':[]};for(let _0x5af464=0x0;_0x5af464<_0x45f918[_0x1098ac('0xcc5')][_0x1098ac('0x2319')]['length'];_0x5af464+=0x1){_0x6f40(_0x45f918[_0x1098ac('0xcc5')][_0x1098ac('0x2319')][_0x5af464]);}}function _0x3b364e(_0x1a62dc){const _0x5cce08=_0x20515e;_0x45f918[_0x5cce08('0x1bde')]=!![];!_0x1a62dc&&(_0x45f918[_0x5cce08('0x826')][_0x5cce08('0x115a')]=0x1);_0x45f918[_0x5cce08('0x826')]['offset']=(_0x45f918[_0x5cce08('0x826')]['page']-0x1)*_0x45f918[_0x5cce08('0x826')][_0x5cce08('0x193b')];let _0x1c6167=_0x58ecf7[_0x5cce08('0x1a93')][_0x5cce08('0x3b8')](_0x5cce08('0x19bc')+_0x45f918['user']['id']);_0x1c6167=_0x1c6167?JSON['parse'](_0x1c6167):{},_0x1c6167['query']=_0x45f918[_0x5cce08('0x826')],_0x58ecf7[_0x5cce08('0x1a93')][_0x5cce08('0x230f')]('motion2.home.mail:'+_0x45f918[_0x5cce08('0x221e')]['id'],JSON[_0x5cce08('0x678')](_0x1c6167)),_0x45f918['promise']=_0x5248b4['mailInteraction']['get'](_0x45f918[_0x5cce08('0x826')],_0x8a9920)[_0x5cce08('0x1af5')];}function _0x120b68(_0x208210,_0x181b5a){const _0x164d48=_0x20515e;_0x49f25d['$parent']['vm'][_0x164d48('0x3a2')](_0x164d48('0xc2'),_0x181b5a);}function _0x492b94(_0x2e539c,_0x3de7ba,_0x5cd526){const _0x429064=_0x20515e;_0x5248b4[_0x429064('0xa5')][_0x429064('0x1244')]({'id':_0x3de7ba['id'],'attachments':_0x5cd526})[_0x429064('0x1af5')][_0x429064('0x17e7')](function(_0x484789){const _0x40a3e1=_0x429064,_0x5eb589=[_0x484789[_0x40a3e1('0x3ca')]],_0x43d91f='mail-interaction'+_0x3de7ba['id']+_0x40a3e1('0x71b'),_0x1adc15=new Blob(_0x5eb589,{'type':_0x484789[_0x40a3e1('0x412')]}),_0x1ef19c=window[_0x40a3e1('0x2be')]['createElement']('a');_0x1ef19c[_0x40a3e1('0x224')](_0x40a3e1('0x448'),URL[_0x40a3e1('0x28ce')](_0x1adc15)),_0x1ef19c['setAttribute']('download',_0x43d91f),document['body'][_0x40a3e1('0x128c')](_0x1ef19c),_0x1ef19c[_0x40a3e1('0x20d4')]();})[_0x429064('0x16df')](function(_0x18ba93){const _0x58c891=_0x429064;if(_0x18ba93[_0x58c891('0x1457')]&&_0x18ba93[_0x58c891('0x1457')]['errors']&&_0x18ba93[_0x58c891('0x1457')][_0x58c891('0x73e')][_0x58c891('0x1f73')])for(let _0x362d7c=0x0;_0x362d7c<_0x18ba93[_0x58c891('0x1457')][_0x58c891('0x73e')][_0x58c891('0x1f73')];_0x362d7c+=0x1){_0x46b2ae[_0x58c891('0x1db9')]({'title':_0x18ba93['data'][_0x58c891('0x73e')][_0x362d7c]['type'],'msg':_0x18ba93[_0x58c891('0x1457')][_0x58c891('0x73e')][_0x362d7c][_0x58c891('0x1603')]});}else _0x46b2ae['error']({'title':_0x18ba93['status']?'API:'+_0x18ba93['status']+_0x58c891('0x16e4')+_0x18ba93[_0x58c891('0x1833')]:_0x58c891('0xd09'),'msg':_0x18ba93[_0x58c891('0x1457')]?JSON[_0x58c891('0x678')](_0x18ba93['data'][_0x58c891('0x1603')]):_0x18ba93[_0x58c891('0x9b6')]()});});}function _0x2b1578(_0x2c7b19,_0x2b9560){const _0x12a2a0=_0x20515e,_0x33d0af=_0x45f918[_0x12a2a0('0x221e')][_0x12a2a0('0x118a')]||_0x45f918[_0x12a2a0('0x221e')][_0x12a2a0('0x2764')]||_0x45f918[_0x12a2a0('0x221e')]['mailPause']||_0x45f918[_0x12a2a0('0x221e')][_0x12a2a0('0x105e')]||_0x45f918[_0x12a2a0('0x221e')][_0x12a2a0('0x1d98')],_0xfcbb44=!_0x2b9560[_0x12a2a0('0x896')][_0x12a2a0('0xb20')];_0x2af644['show']({'controller':_0x12a2a0('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular[_0x12a2a0('0x1ce1')](_0x16d3a1[_0x12a2a0('0x13aa')]),'clickOutsideToClose':_0xfcbb44,'escapeToClose':_0xfcbb44,'onRemoving':function(){const _0x2d57bf=_0x12a2a0;_0x45f918[_0x2d57bf('0x221e')]&&_0x2b9560[_0x2d57bf('0x896')][_0x2d57bf('0xb20')]&&!_0x33d0af&&_0x5248b4[_0x2d57bf('0x221e')][_0x2d57bf('0xc57')]({'id':_0x45f918[_0x2d57bf('0x221e')]['id']})[_0x2d57bf('0x1af5')][_0x2d57bf('0x16df')](function(_0x4ab289){const _0x678d10=_0x2d57bf;console[_0x678d10('0x1db9')](_0x4ab289);});},'locals':{'user':_0x45f918[_0x12a2a0('0x221e')],'channel':_0x12a2a0('0xc2'),'interaction':_0x2b9560}});}function _0x6f40(_0xfe22e9){const _0x12d5d2=_0x20515e;if(!_0x49cbdd()['isEmpty'](_0xfe22e9['to'])&&_0xfe22e9['Account']&&!_0x49cbdd()[_0x12d5d2('0x24b0')](_0xfe22e9['to'],_0xfe22e9[_0x12d5d2('0x896')][_0x12d5d2('0x822')]))_0xfe22e9[_0x12d5d2('0x192c')]=_0xfe22e9['to'][_0x12d5d2('0x2007')]('\x20<')[0x0],_0xfe22e9[_0x12d5d2('0x1720')]=_0xfe22e9['to'][_0x12d5d2('0x2007')]('<')[_0x12d5d2('0xbbc')]()[_0x12d5d2('0x2007')]('>')[0x0];else _0xfe22e9[_0x12d5d2('0x239b')]?(_0xfe22e9['contactName']=(_0xfe22e9[_0x12d5d2('0x239b')]['firstName']||'')+'\x20'+(_0xfe22e9[_0x12d5d2('0x239b')][_0x12d5d2('0x8d6')]||''),_0xfe22e9[_0x12d5d2('0x1720')]=_0xfe22e9['Contact'][_0x12d5d2('0x822')]||''):_0xfe22e9[_0x12d5d2('0x192c')]=_0x15bddf['instant']('DASHBOARDS.UNKNOWN');}function _0x5730bb(_0x13561f){const _0x578c24=_0x20515e;if(_0x13561f[_0x578c24('0x5e5')])return _0x13561f[_0x578c24('0x5e5')]===_0x45f918[_0x578c24('0x221e')]['id']?_0x15bddf[_0x578c24('0x1acc')](_0x578c24('0x2422')):_0x13561f[_0x578c24('0xe49')][_0x578c24('0xea6')]+'\x20<'+_0x13561f[_0x578c24('0xe49')]['internal']+'>';return _0x15bddf['instant'](_0x578c24('0x154d'));}function _0x42b286(_0x3212f4){const _0x73d451=_0x20515e;if(_0x3212f4[_0x73d451('0x896')])return _0x3212f4[_0x73d451('0x896')][_0x73d451('0xdb5')];return _0x15bddf[_0x73d451('0x1acc')](_0x73d451('0x30a'));}function _0x4247f0(_0x74b4b2,_0x174943){const _0x474892=_0x20515e;_0x174943[_0x474892('0x1219')]?(_0x174943[_0x474892('0x1219')][_0x474892('0x1099')]=!![],_0x120b68(null,_0x174943[_0x474892('0x1219')])):_0x2af644[_0x474892('0x28e2')]({'controller':_0x474892('0x2373'),'controllerAs':'vm','templateUrl':_0x334531,'parent':angular[_0x474892('0x1ce1')](_0x16d3a1[_0x474892('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x174943[_0x474892('0x2679')],'message':_0x174943['content'],'type':_0x474892('0x283b'),'interaction':{}},'fullscreen':!![]})['then'](function(_0x52f4cd){const _0x29aa45=_0x474892;if(_0x52f4cd){if(_0x52f4cd[_0x29aa45('0x1603')]&&_0x52f4cd[_0x29aa45('0x1603')]['savedAsDraft']){const _0x2cb28c={'id':_0x174943['id'],'channel':_0x29aa45('0xc2'),'account':_0x52f4cd['account'],'message':_0x52f4cd['message']};_0x4ef01e[_0x29aa45('0x27ba')](_0x2cb28c);}else{const _0x4b07ff=_0x52f4cd;return _0x5248b4[_0x29aa45('0x127b')][_0x29aa45('0x13b7')]({'id':_0x174943[_0x29aa45('0x2679')]['id']},_0x4b07ff)[_0x29aa45('0x1af5')][_0x29aa45('0x17e7')](function(_0x522c68){const _0x2ffa73=_0x29aa45;_0x4ef01e['remove'](_0x174943['id']);if(_0x522c68&&_0x522c68['Messages']&&_0x522c68[_0x2ffa73('0xd08')][_0x2ffa73('0x1f73')]){if(_0x4b07ff[_0x2ffa73('0x240d')]&&_0x4b07ff[_0x2ffa73('0x240d')][_0x2ffa73('0x1f73')])for(let _0x500f03=0x0;_0x500f03<_0x4b07ff[_0x2ffa73('0x240d')][_0x2ffa73('0x1f73')];_0x500f03+=0x1){_0x5248b4[_0x2ffa73('0x11f9')]['update']({'id':_0x4b07ff[_0x2ffa73('0x240d')][_0x500f03]['id']},{'MailMessageId':_0x49cbdd()[_0x2ffa73('0xb9')](_0x522c68[_0x2ffa73('0xd08')])['id']});}_0x46b2ae[_0x2ffa73('0x130d')]({'title':_0x2ffa73('0x235b'),'msg':_0x2ffa73('0x2235')});if(_0x522c68[_0x2ffa73('0x2bc')]){_0x522c68['disposition']=null;const _0x2f9585=!_0x174943[_0x2ffa73('0x2679')][_0x2ffa73('0xb20')],_0x1306a2=_0x45f918[_0x2ffa73('0x221e')]['voicePause']||_0x45f918['user'][_0x2ffa73('0x2764')]||_0x45f918[_0x2ffa73('0x221e')][_0x2ffa73('0x1467')]||_0x45f918[_0x2ffa73('0x221e')][_0x2ffa73('0x105e')]||_0x45f918[_0x2ffa73('0x221e')][_0x2ffa73('0x1d98')];_0x2af644['show']({'controller':_0x2ffa73('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular[_0x2ffa73('0x1ce1')](_0x16d3a1[_0x2ffa73('0x13aa')]),'onRemoving':function(){const _0x492693=_0x2ffa73;_0x45f918[_0x492693('0x221e')]&&_0x174943[_0x492693('0x2679')][_0x492693('0xb20')]&&!_0x1306a2&&_0x5248b4[_0x492693('0x221e')]['unpause']({'id':_0x45f918['user']['id']})[_0x492693('0x1af5')][_0x492693('0x16df')](function(_0x53b867){const _0x3ff2dd=_0x492693;console[_0x3ff2dd('0x1db9')](_0x53b867);});},'clickOutsideToClose':_0x2f9585,'escapeToClose':_0x2f9585,'locals':{'user':_0x45f918[_0x2ffa73('0x221e')],'channel':_0x2ffa73('0xc2'),'interaction':_0x522c68}});}else _0x49f25d[_0x2ffa73('0x178c')]['vm']['addInteractionTab'](_0x2ffa73('0xc2'),_0x522c68);}})[_0x29aa45('0x16df')](function(_0x17c0ba){const _0x2e7588=_0x29aa45;if(_0x17c0ba['data']&&_0x17c0ba[_0x2e7588('0x1457')][_0x2e7588('0x73e')]&&_0x17c0ba[_0x2e7588('0x1457')][_0x2e7588('0x73e')][_0x2e7588('0x1f73')])for(let _0x2b5158=0x0;_0x2b5158<_0x17c0ba['data'][_0x2e7588('0x73e')]['length'];_0x2b5158++){_0x46b2ae[_0x2e7588('0x1db9')]({'title':_0x17c0ba[_0x2e7588('0x1457')]['errors'][_0x2b5158][_0x2e7588('0x412')],'msg':_0x17c0ba['data']['errors'][_0x2b5158][_0x2e7588('0x1603')]});}else _0x46b2ae[_0x2e7588('0x1db9')]({'title':_0x17c0ba['status']?'API:'+_0x17c0ba[_0x2e7588('0x11c5')]+'\x20-\x20'+_0x17c0ba[_0x2e7588('0x1833')]:_0x2e7588('0x18ca'),'msg':_0x17c0ba[_0x2e7588('0x1457')]?JSON['stringify'](_0x17c0ba[_0x2e7588('0x1457')][_0x2e7588('0x1603')]):_0x17c0ba[_0x2e7588('0x1603')]||_0x17c0ba['toString']()});});}}});}function _0x508947(_0x108b3e,_0x3eae6e){const _0x6ba29b=_0x20515e;_0x2af644[_0x6ba29b('0x28e2')]({'controller':_0x6ba29b('0x2373'),'controllerAs':'vm','templateUrl':_0x334531,'parent':angular[_0x6ba29b('0x1ce1')](_0x16d3a1[_0x6ba29b('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x3eae6e,'message':{},'type':_0x6ba29b('0x1b39'),'interaction':{}},'fullscreen':!![]})['then'](function(_0x34bbfc){const _0x309b17=_0x6ba29b;if(_0x34bbfc){if(_0x34bbfc[_0x309b17('0x1603')]&&_0x34bbfc[_0x309b17('0x1603')][_0x309b17('0xa8b')]){const _0x544203={'channel':_0x309b17('0xc2'),'account':_0x3eae6e,'message':_0x34bbfc[_0x309b17('0x1603')],'contact':_0x34bbfc[_0x309b17('0x1c58')]};_0x4ef01e[_0x309b17('0xd62')](_0x544203);}else{const _0x1ff4a9=_0x34bbfc;return _0x5248b4[_0x309b17('0x127b')][_0x309b17('0x13b7')]({'id':_0x3eae6e['id']},_0x1ff4a9)[_0x309b17('0x1af5')][_0x309b17('0x17e7')](function(_0x7e5f1f){const _0x5b52db=_0x309b17;if(_0x7e5f1f&&_0x7e5f1f[_0x5b52db('0xd08')]&&_0x7e5f1f[_0x5b52db('0xd08')][_0x5b52db('0x1f73')]){if(_0x1ff4a9[_0x5b52db('0x240d')]&&_0x1ff4a9['attachments'][_0x5b52db('0x1f73')])for(let _0x41e4ef=0x0;_0x41e4ef<_0x1ff4a9[_0x5b52db('0x240d')][_0x5b52db('0x1f73')];_0x41e4ef+=0x1){_0x5248b4['attachment']['update']({'id':_0x1ff4a9['attachments'][_0x41e4ef]['id']},{'MailMessageId':_0x49cbdd()[_0x5b52db('0xb9')](_0x7e5f1f['Messages'])['id']});}_0x46b2ae['success']({'title':'Message\x20properly\x20sent!','msg':_0x5b52db('0x2235')});if(_0x7e5f1f[_0x5b52db('0x2bc')]){_0x7e5f1f[_0x5b52db('0x1f27')]=null;const _0x95a8a=!_0x3eae6e['mandatoryDisposition'],_0x453b2a=_0x45f918[_0x5b52db('0x221e')][_0x5b52db('0x118a')]||_0x45f918[_0x5b52db('0x221e')][_0x5b52db('0x2764')]||_0x45f918[_0x5b52db('0x221e')]['mailPause']||_0x45f918['user'][_0x5b52db('0x105e')]||_0x45f918[_0x5b52db('0x221e')][_0x5b52db('0x1d98')];_0x2af644[_0x5b52db('0x28e2')]({'controller':_0x5b52db('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular['element'](_0x16d3a1[_0x5b52db('0x13aa')]),'onRemoving':function(){const _0x55c265=_0x5b52db;_0x45f918['user']&&_0x3eae6e[_0x55c265('0xb20')]&&!_0x453b2a&&_0x5248b4[_0x55c265('0x221e')]['unpause']({'id':_0x45f918[_0x55c265('0x221e')]['id']})[_0x55c265('0x1af5')]['catch'](function(_0x19f1eb){const _0x5c97ac=_0x55c265;console[_0x5c97ac('0x1db9')](_0x19f1eb);});},'clickOutsideToClose':_0x95a8a,'escapeToClose':_0x95a8a,'locals':{'user':_0x45f918[_0x5b52db('0x221e')],'channel':_0x5b52db('0xc2'),'interaction':_0x7e5f1f}});}else _0x49f25d[_0x5b52db('0x178c')]['vm'][_0x5b52db('0x3a2')](_0x5b52db('0xc2'),_0x7e5f1f);}})['catch'](function(_0x2e7e97){const _0x30d712=_0x309b17;if(_0x2e7e97[_0x30d712('0x1457')]&&_0x2e7e97['data'][_0x30d712('0x73e')]&&_0x2e7e97['data'][_0x30d712('0x73e')][_0x30d712('0x1f73')])for(let _0x403c39=0x0;_0x403c39<_0x2e7e97[_0x30d712('0x1457')][_0x30d712('0x73e')][_0x30d712('0x1f73')];_0x403c39++){_0x46b2ae[_0x30d712('0x1db9')]({'title':_0x2e7e97['data'][_0x30d712('0x73e')][_0x403c39][_0x30d712('0x412')],'msg':_0x2e7e97[_0x30d712('0x1457')]['errors'][_0x403c39][_0x30d712('0x1603')]});}else _0x46b2ae[_0x30d712('0x1db9')]({'title':_0x2e7e97[_0x30d712('0x11c5')]?'API:'+_0x2e7e97[_0x30d712('0x11c5')]+_0x30d712('0x16e4')+_0x2e7e97['statusText']:_0x30d712('0x18ca'),'msg':_0x2e7e97['data']?JSON['stringify'](_0x2e7e97[_0x30d712('0x1457')][_0x30d712('0x1603')]):_0x2e7e97[_0x30d712('0x1603')]||_0x2e7e97[_0x30d712('0x9b6')]()});});}}});}function _0x36b3fd(_0x183b41){const _0x1e4e5c=_0x20515e;let _0x4d19c5;const _0x4da11e=_0x49cbdd()[_0x1e4e5c('0xe8e')](_0x45f918[_0x1e4e5c('0xcc5')][_0x1e4e5c('0x2319')],{'id':_0x183b41[_0x1e4e5c('0xb77')]});_0x4da11e&&_0x4da11e[_0x1e4e5c('0x15d4')]&&(_0x4d19c5=_0x49cbdd()['find'](_0x4da11e[_0x1e4e5c('0x15d4')],{'id':_0x183b41[_0x1e4e5c('0x5e5')]}),!_0x4d19c5&&_0x4da11e[_0x1e4e5c('0x15d4')]['push']({'id':_0x183b41[_0x1e4e5c('0x5e5')]}));}function _0x244239(_0x1e7e4f){const _0x45dcaf=_0x20515e,_0x4ff95d=_0x49cbdd()['find'](_0x45f918[_0x45dcaf('0xcc5')][_0x45dcaf('0x2319')],{'id':_0x1e7e4f[_0x45dcaf('0xb77')]});_0x4ff95d&&_0x4ff95d[_0x45dcaf('0x15d4')]&&_0x49cbdd()[_0x45dcaf('0x5f3')](_0x4ff95d[_0x45dcaf('0x15d4')],{'id':_0x1e7e4f[_0x45dcaf('0x5e5')]});}function _0xa79c03(_0x3da489){const _0x5683dd=_0x20515e;if(_0x3da489){const _0x575997=_0x49cbdd()['find'](_0x45f918[_0x5683dd('0xcc5')][_0x5683dd('0x2319')],{'id':_0x3da489['id']});if(_0x575997){_0x575997[_0x5683dd('0x15d4')]=[];_0x3da489[_0x5683dd('0x2bc')]&&(_0x575997['unreadMessages']=0x0);if(_0x45f918[_0x5683dd('0x826')][_0x5683dd('0x1b22')]){const _0x3570bb=_0x49cbdd()[_0x5683dd('0x818')](_0x45f918[_0x5683dd('0x826')][_0x5683dd('0x1b22')],'-')?_0x5683dd('0x187b'):_0x5683dd('0x161a');_0x45f918[_0x5683dd('0xcc5')][_0x5683dd('0x2319')]=_0x49cbdd()[_0x5683dd('0xa36')](_0x45f918[_0x5683dd('0xcc5')]['rows'],_0x49cbdd()[_0x5683dd('0x1ee5')](_0x45f918['query']['sort'],'-'),_0x3570bb);}_0x49cbdd()[_0x5683dd('0x1ced')](_0x575997,_0x49cbdd()[_0x5683dd('0x230a')](_0x3da489,_0x49cbdd()[_0x5683dd('0x1c0f')](_0x575997)));}else _0x3b364e(_0x45f918['query']['page']);}}function _0x539c9b(_0x32457a){const _0x4b6fb7=_0x20515e;if(_0x32457a){const _0xcc6e03=_0x49cbdd()[_0x4b6fb7('0xe8e')](_0x45f918[_0x4b6fb7('0xcc5')][_0x4b6fb7('0x2319')],{'id':_0x32457a['id']});_0xcc6e03&&(_0xcc6e03[_0x4b6fb7('0x28a6')]=_0x32457a['tags']||[],_0x49cbdd()[_0x4b6fb7('0x1ced')](_0xcc6e03,_0x49cbdd()['pick'](_0x32457a,_0x49cbdd()['keys'](_0xcc6e03))));}}function _0x36395c(_0x249b4a){const _0x2bde24=_0x20515e;if(_0x249b4a&&!_0x249b4a[_0x2bde24('0x1c8e')]){const _0x4d11f7=_0x49cbdd()[_0x2bde24('0xe8e')](_0x45f918['mailInteractions'][_0x2bde24('0x2319')],{'id':_0x249b4a[_0x2bde24('0xb77')]});if(_0x4d11f7){const _0x2c2997=_0x49cbdd()[_0x2bde24('0xe8e')](_0x4d11f7[_0x2bde24('0xd08')],{'id':_0x249b4a['id']});_0x2c2997?_0x49cbdd()[_0x2bde24('0x1ced')](_0x2c2997,_0x49cbdd()[_0x2bde24('0x230a')](_0x249b4a,_0x49cbdd()[_0x2bde24('0x1c0f')](_0x2c2997))):(_0x49cbdd()[_0x2bde24('0x390')](_0x4d11f7[_0x2bde24('0xd08')])&&(_0x4d11f7[_0x2bde24('0xd08')]={'count':0x0}),!_0x249b4a[_0x2bde24('0xf64')]&&(_0x4d11f7['Messages'][_0x2bde24('0x335')]+=0x1));}}}function _0x4e39de(){const _0x1cca7a=_0x20515e;_0x45f918[_0x1cca7a('0x1949')]=![];}function _0x546647(){_0x45f918['isSearchBarVisible']=!![];}function _0x37cf02(){const _0x56ea86=_0x20515e;_0x45f918[_0x56ea86('0x1949')]=![],_0x2af644[_0x56ea86('0x28e2')]({'controller':_0x56ea86('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0x56ea86('0x1ce1')](_0x16d3a1[_0x56ea86('0x13aa')]),'clickOutsideToClose':![],'locals':{'color':_0x45f918[_0x56ea86('0x87b')],'fields':_0x45f918['advancedSearch']['fields'],'storagePath':'home.mail'},'fullscreen':!![]})[_0x56ea86('0x17e7')](function(_0x3b53fe){const _0x43be5b=_0x56ea86;_0x45f918[_0x43be5b('0x826')][_0x43be5b('0xfba')]=_0x3b53fe===![]?undefined:_0x3b53fe;if(_0x45f918[_0x43be5b('0x826')]['search']||_0x3b53fe===![])_0x3b364e();})[_0x56ea86('0x16df')](function(_0x38d468){const _0x522092=_0x56ea86;_0x46b2ae[_0x522092('0x1db9')]({'title':_0x522092('0x1288'),'msg':_0x38d468[_0x522092('0x1457')]?JSON[_0x522092('0x678')](_0x38d468['data'][_0x522092('0x1603')]):_0x38d468[_0x522092('0x9b6')]()});});}let _0x365d56=!![],_0x3aa2e2=0x1;_0x49f25d['$watch'](_0x20515e('0x3ed'),function(_0x435975,_0x2c6eac){const _0x6e9418=_0x20515e;_0x365d56?_0x3a60f9(function(){_0x365d56=![];}):(!_0x2c6eac&&(_0x3aa2e2=_0x45f918[_0x6e9418('0x826')]['page']),_0x435975!==_0x2c6eac&&(_0x45f918[_0x6e9418('0x826')][_0x6e9418('0x115a')]=0x1),!_0x435975&&(_0x45f918[_0x6e9418('0x826')][_0x6e9418('0x115a')]=_0x3aa2e2),_0x3b364e(_0x45f918['query'][_0x6e9418('0x115a')]));}),_0x49f25d[_0x20515e('0x207c')](_0x20515e('0x2b4'),function(){const _0x2c9b2d=_0x20515e;_0xaa961b[_0x2c9b2d('0x1c65')](_0x2c9b2d('0x106d')),_0xaa961b['removeAllListeners'](_0x2c9b2d('0x239')),_0xaa961b[_0x2c9b2d('0x1c65')](_0x2c9b2d('0x2830')),_0xaa961b[_0x2c9b2d('0x1c65')](_0x2c9b2d('0xd97')),_0xaa961b[_0x2c9b2d('0x1c65')](_0x2c9b2d('0x1f8d')),_0xaa961b[_0x2c9b2d('0x1c65')]('user_has_mail_interactions:save'),_0xaa961b[_0x2c9b2d('0x1c65')](_0x2c9b2d('0x18fa'));});}const _0x506613=_0x9773ef;_0x1f5499['$inject']=[_0x4376d8('0x26ca'),_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'Auth',_0x4376d8('0x212e'),_0x4376d8('0x198f'),'toasty'];function _0x1f5499(_0x5f2ff3,_0x957179,_0x29c72e,_0xb671ad,_0x386f68,_0x3bff95,_0x961a4,_0x2fcd4d){const _0x495187=_0x4376d8,_0x259060=this;_0x259060[_0x495187('0x197c')]=_0x386f68[_0x495187('0x2831')](),_0x259060[_0x495187('0x2504')]={},_0x259060[_0x495187('0x2720')]={'count':0x0,'rows':[]},_0x259060[_0x495187('0x1522')]={'count':0x0,'rows':[]},_0x259060[_0x495187('0x826')]={'includeAll':!![],'id':_0x259060[_0x495187('0x197c')]['id'],'sort':_0x495187('0x1ac6'),'limit':0xa,'page':0x1},_0x259060['advancedSearch']={'fields':[]},_0x259060[_0x495187('0x87b')]=_0x495187('0xdbc'),_0x259060[_0x495187('0x1bb0')]=_0x4dcf32,_0x259060[_0x495187('0x1a8a')]=_0x3613c4,_0x259060[_0x495187('0x1355')]=_0x186fc5,_0x259060[_0x495187('0x1eb5')]=_0x8b174f,_0x259060['openContact']=_0x21fb9b,_0x259060[_0x495187('0x6b1')]=_0x957179[_0x495187('0x178c')]['vm'][_0x495187('0x6b1')],_0x259060[_0x495187('0xdf0')]=_0x51a261,_0x259060[_0x495187('0x8ea')]=_0x1b6bb,_0x259060[_0x495187('0x1181')]=_0x1986d2,_0x259060[_0x495187('0x585')]=_0x2c6a6c;function _0x51a261(){const _0x373d87=_0x495187;_0x3bff95[_0x373d87('0x25b')][_0x373d87('0x1c53')]({'fields':_0x373d87('0x24b9'),'sort':_0x373d87('0x2aa'),'nolimit':!![]})[_0x373d87('0x1af5')][_0x373d87('0x17e7')](function(_0x4bb763){const _0x1b6b3b=_0x373d87;return _0x259060[_0x1b6b3b('0x2504')]=_0x4bb763||{'count':0x0,'rows':[]},_0x259060['listsMap']=_0x49cbdd()[_0x1b6b3b('0x8de')](_0x259060['lists'][_0x1b6b3b('0x2319')],'id'),_0x3bff95[_0x1b6b3b('0x1132')][_0x1b6b3b('0x1c53')]()[_0x1b6b3b('0x1af5')];})[_0x373d87('0x17e7')](function(_0x113c61){_0x259060['tags']=_0x113c61||{'count':0x0,'rows':[]};})[_0x373d87('0x17e7')](function(){const _0x793b48=_0x373d87;_0x259060[_0x793b48('0x137d')]=_0x2dcd04();})[_0x373d87('0x16df')](function(_0x101b99){const _0x3295cc=_0x373d87;console[_0x3295cc('0x1db9')](_0x101b99);})[_0x373d87('0x74e')](function(){const _0x481da0=_0x373d87;let _0x13c662=_0x961a4[_0x481da0('0x1a93')]['getItem'](_0x481da0('0xbf5')+_0x259060[_0x481da0('0x197c')]['id']);if(_0x13c662)try{_0x13c662=JSON[_0x481da0('0x1f0a')](_0x13c662);if(_0x13c662[_0x481da0('0x826')]){_0x259060[_0x481da0('0x826')]=_0x49cbdd()['merge'](_0x259060[_0x481da0('0x826')],_0x13c662[_0x481da0('0x826')]);if(_0x49cbdd()[_0x481da0('0x109a')](_0x259060['lists']['rows']))_0x259060[_0x481da0('0x826')][_0x481da0('0x7f8')]=[];else _0x49cbdd()['isEmpty'](_0x259060['query'][_0x481da0('0x7f8')])&&(_0x259060[_0x481da0('0x826')][_0x481da0('0x7f8')]=_0x49cbdd()(_0x259060[_0x481da0('0x2504')]['rows'])[_0x481da0('0x787')]('id')[_0x481da0('0x1232')]()[_0x481da0('0x175b')]());}}catch(_0x22564f){console['error'](_0x22564f);}else _0x259060['query'][_0x481da0('0x7f8')]=_0x49cbdd()[_0x481da0('0x787')](_0x259060['lists'][_0x481da0('0x2319')],'id');_0x259060['isSearchBarVisible']=_0x259060['query'][_0x481da0('0x2483')]?!![]:![],_0x4dcf32();});}function _0x2dcd04(){const _0x54e31a=_0x495187;return[{'name':_0x54e31a('0x239a'),'key':_0x54e31a('0x7f8'),'type':_0x54e31a('0x1227'),'label':_0x54e31a('0xea8'),'options':_0x259060[_0x54e31a('0x2504')][_0x54e31a('0x2319')],'clearAll':![]},{'name':_0x54e31a('0xe16'),'key':_0x54e31a('0x1132'),'type':'multiselect','label':_0x54e31a('0x1e4d'),'options':_0x259060[_0x54e31a('0x1522')]['rows'],'placeholder':_0x54e31a('0x21aa')}];}function _0x3cf2d1(_0x19e866){const _0x250458=_0x495187;_0x259060[_0x250458('0x1bde')]=![],_0x259060[_0x250458('0x2720')]=_0x19e866||{'count':0x0,'rows':[]};}function _0x4dcf32(_0x3d47b7){const _0xde8579=_0x495187;_0x259060[_0xde8579('0x1bde')]=!![],_0x27394b();!_0x3d47b7&&(_0x259060[_0xde8579('0x826')][_0xde8579('0x115a')]=0x1);_0x259060[_0xde8579('0x826')][_0xde8579('0xf19')]=(_0x259060[_0xde8579('0x826')][_0xde8579('0x115a')]-0x1)*_0x259060[_0xde8579('0x826')]['limit'];let _0x3b67c6=_0x961a4[_0xde8579('0x1a93')][_0xde8579('0x3b8')]('motion2.home.mycontacts:'+_0x259060[_0xde8579('0x197c')]['id']);_0x3b67c6=_0x3b67c6?JSON[_0xde8579('0x1f0a')](_0x3b67c6):{},_0x3b67c6['query']=_0x259060[_0xde8579('0x826')],_0x961a4[_0xde8579('0x1a93')][_0xde8579('0x230f')](_0xde8579('0xbf5')+_0x259060['currentUser']['id'],JSON[_0xde8579('0x678')](_0x3b67c6));if(_0x259060[_0xde8579('0x826')]['search'])_0x259060['advancedQuery']=_0x49cbdd()[_0xde8579('0x15c3')](_0x259060[_0xde8579('0x826')],'id');_0x259060['promise']=_0x259060[_0xde8579('0x826')][_0xde8579('0xfba')]?_0x3bff95[_0xde8579('0x1d2a')][_0xde8579('0x1c53')](_0x259060['advancedQuery'],_0x3cf2d1)[_0xde8579('0x1af5')]:_0x3bff95[_0xde8579('0x221e')][_0xde8579('0x1bb0')](_0x259060[_0xde8579('0x826')],_0x3cf2d1)[_0xde8579('0x1af5')];}function _0x21fb9b(_0x3795bd,_0x375852){const _0x6340fc=_0x495187;_0x957179['$parent']['vm'][_0x6340fc('0x13b9')](_0x375852);}function _0x3613c4(){_0x4dcf32();}function _0x8b174f(_0x1170c4,_0x2e49a7){const _0x55d7ea=_0x495187;_0xb671ad['show']({'controller':_0x55d7ea('0xa23'),'controllerAs':'vm','templateUrl':_0x141b55,'parent':angular[_0x55d7ea('0x1ce1')](_0x5f2ff3[_0x55d7ea('0x13aa')]),'targetEvent':_0x1170c4,'clickOutsideToClose':!![],'resolve':{'contact':[_0x55d7ea('0x177'),function(_0x10b658){const _0x2d2b17=_0x55d7ea;return _0x10b658[_0x2d2b17('0x898')]('cmContact@get',{'id':_0x2e49a7['id']});}],'lists':[_0x55d7ea('0x177'),function(_0x57175){const _0xc25cfa=_0x55d7ea;return _0x57175['resolve'](_0xc25cfa('0x761'),{'id':_0x259060[_0xc25cfa('0x197c')]['id'],'fields':_0xc25cfa('0x12d2')});}]},'locals':{'contacts':_0x259060[_0x55d7ea('0x2720')]['rows']}});}function _0x186fc5(_0x43aab5,_0x25031e){const _0x5a02a4=_0x495187;_0xb671ad[_0x5a02a4('0x28e2')]({'controller':_0x5a02a4('0xd55'),'controllerAs':'vm','templateUrl':_0x86be6d,'parent':angular['element'](_0x5f2ff3['body']),'targetEvent':_0x43aab5,'clickOutsideToClose':!![],'resolve':{'contact':['apiResolver',function(_0x11c6fc){const _0x56cad8=_0x5a02a4;return _0x11c6fc[_0x56cad8('0x898')](_0x56cad8('0x1f28'),{'id':_0x25031e['id']});}],'lists':[_0x5a02a4('0x177'),function(_0x46929b){const _0xa766=_0x5a02a4;return _0x46929b[_0xa766('0x898')](_0xa766('0x761'),{'id':_0x259060[_0xa766('0x197c')]['id'],'fields':_0xa766('0x12d2')});}]},'locals':{'contacts':_0x259060[_0x5a02a4('0x2720')]['rows']}});}function _0x1b6bb(){const _0x40cb0f=_0x495187;_0x259060[_0x40cb0f('0x1949')]=![];}function _0x1986d2(){const _0x2dd2fe=_0x495187;_0x259060[_0x2dd2fe('0x1949')]=!![];}function _0x27394b(){const _0x495405=_0x495187;return _0x3bff95[_0x495405('0x1d2a')]['describe']({'id':_0x259060[_0x495405('0x826')]['ListId']})['$promise'][_0x495405('0x17e7')](function(_0x7b3203){const _0x5621e4=_0x495405;return _0x49cbdd()(_0x7b3203['toJSON']())[_0x5621e4('0x15c3')](_0x5621e4('0x5e5'))[_0x5621e4('0xa72')]()[_0x5621e4('0x787')](function(_0x5a2b84){return _0x738ea0(_0x5a2b84);})[_0x5621e4('0x175b')]();})[_0x495405('0x17e7')](function(_0x44d0af){const _0xe6ecf9=_0x495405;_0x259060[_0xe6ecf9('0xfb6')][_0xe6ecf9('0x9c9')]=_0x44d0af;const _0x2e8a88={'name':_0xe6ecf9('0x28a6'),'column':_0xe6ecf9('0xe16'),'type':_0xe6ecf9('0x1227'),'options':{'route':{'model':_0xe6ecf9('0x1132'),'action':_0xe6ecf9('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}};let _0x5bba23=_0x49cbdd()[_0xe6ecf9('0x1f4c')](_0x44d0af,function(_0xfd3357){const _0x452d39=_0xe6ecf9;return _0x49cbdd()[_0x452d39('0x818')](_0xfd3357[_0x452d39('0x2d6')],'cf_');})||_0x44d0af[_0xe6ecf9('0x1f73')]-0x1;if(_0x5bba23<0x0)_0x5bba23=_0x44d0af[_0xe6ecf9('0x1f73')];_0x259060[_0xe6ecf9('0xfb6')][_0xe6ecf9('0x9c9')][_0xe6ecf9('0x2335')](_0x5bba23,0x0,_0x2e8a88);})[_0x495405('0x16df')](function(_0x37dec4){const _0x1d3f0a=_0x495405;_0x2fcd4d[_0x1d3f0a('0x1db9')]({'title':_0x37dec4['status']?_0x1d3f0a('0x14f7')+_0x37dec4['status']+'\x20-\x20'+_0x37dec4[_0x1d3f0a('0x1833')]:_0x1d3f0a('0xdef'),'msg':_0x37dec4['data']?JSON[_0x1d3f0a('0x678')](_0x37dec4[_0x1d3f0a('0x1457')][_0x1d3f0a('0x1603')]):_0x37dec4[_0x1d3f0a('0x9b6')]()});});}function _0x738ea0(_0x31cf32){const _0x35cb75=_0x495187,_0x1604b2={'name':_0x49cbdd()[_0x35cb75('0x1c98')](_0x31cf32[_0x35cb75('0x7ea')]),'column':_0x31cf32['columnName'],'options':{}};if(_0x31cf32['custom'])switch(_0x31cf32[_0x35cb75('0x8fa')]['type']){case'text':_0x1604b2[_0x35cb75('0x412')]=_0x35cb75('0x132f');break;case _0x35cb75('0x2897'):_0x1604b2[_0x35cb75('0x412')]=_0x35cb75('0x1227'),_0x1604b2[_0x35cb75('0xa72')]=_0x49cbdd()[_0x35cb75('0x787')](JSON[_0x35cb75('0x1f0a')](_0x31cf32[_0x35cb75('0x8fa')][_0x35cb75('0xa72')]),function(_0x5d6b26,_0x809ac8){const _0x4ccfe6=_0x35cb75;return{'id':_0x809ac8,'name':_0x5d6b26[_0x4ccfe6('0x175b')],'value':_0x5d6b26[_0x4ccfe6('0x175b')]};}),_0x1604b2[_0x35cb75('0x19')]['field']=_0x35cb75('0x2aa');break;case _0x35cb75('0x2317'):_0x1604b2['type']=_0x35cb75('0x2897'),_0x1604b2[_0x35cb75('0xa72')]=[{'id':0x1,'translate':_0x35cb75('0x1ddd')},{'id':0x0,'translate':_0x35cb75('0x551')}],_0x1604b2['options'][_0x35cb75('0x6bd')]=[_0x35cb75('0xdaa')];break;case _0x35cb75('0x7b8'):_0x1604b2[_0x35cb75('0x412')]=_0x35cb75('0x7b8');break;case _0x35cb75('0x11ab'):_0x1604b2[_0x35cb75('0x412')]=_0x35cb75('0xbd4');break;}else switch(_0x31cf32[_0x35cb75('0x1547')]){case _0x35cb75('0x2066'):_0x1604b2[_0x35cb75('0x412')]=_0x35cb75('0xbd4');break;case _0x35cb75('0x452'):_0x1604b2[_0x35cb75('0x2aa')]=_0x35cb75('0x111d'),_0x1604b2['type']='autocomplete',_0x1604b2[_0x35cb75('0x19')][_0x35cb75('0x21ec')]={'model':_0x35cb75('0x27e'),'action':_0x35cb75('0x1c53'),'params':{'fields':_0x35cb75('0x12d2'),'nolimit':!![]}},_0x1604b2[_0x35cb75('0x19')][_0x35cb75('0xf31')]=[_0x35cb75('0x2aa')],_0x1604b2[_0x35cb75('0x19')][_0x35cb75('0x6bd')]=[_0x35cb75('0xdaa')];break;case'ListId':_0x1604b2[_0x35cb75('0x2aa')]=_0x35cb75('0x239a'),_0x1604b2[_0x35cb75('0x412')]=_0x35cb75('0x682'),_0x1604b2['options'][_0x35cb75('0x21ec')]={'model':_0x35cb75('0x221e'),'action':_0x35cb75('0x852'),'params':{'id':_0x259060['currentUser']['id'],'fields':_0x35cb75('0x12d2'),'nolimit':!![]}},_0x1604b2[_0x35cb75('0x19')]['searchFields']=['name'],_0x1604b2[_0x35cb75('0x19')][_0x35cb75('0x6bd')]=[_0x35cb75('0xdaa')];break;default:if(_0x49cbdd()[_0x35cb75('0x24b0')](_0x31cf32[_0x35cb75('0x412')][_0x35cb75('0x19b')](),'int'))_0x1604b2[_0x35cb75('0x412')]=_0x35cb75('0x7b8');else _0x49cbdd()[_0x35cb75('0x24b0')](_0x31cf32['type']['toLowerCase'](),_0x35cb75('0xbd4'))?_0x1604b2[_0x35cb75('0x412')]=_0x35cb75('0xbd4'):_0x1604b2[_0x35cb75('0x412')]='text';break;}return _0x1604b2;}function _0x2c6a6c(){const _0x12aa3d=_0x495187;_0x259060[_0x12aa3d('0x1949')]=![],_0xb671ad[_0x12aa3d('0x28e2')]({'controller':_0x12aa3d('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0x12aa3d('0x1ce1')](_0x5f2ff3[_0x12aa3d('0x13aa')]),'clickOutsideToClose':![],'locals':{'color':_0x259060[_0x12aa3d('0x87b')],'fields':_0x259060[_0x12aa3d('0xfb6')][_0x12aa3d('0x9c9')],'storagePath':_0x12aa3d('0x1fa')},'fullscreen':!![]})[_0x12aa3d('0x17e7')](function(_0x414ccb){const _0x13fe04=_0x12aa3d;_0x259060[_0x13fe04('0x826')][_0x13fe04('0xfba')]=_0x414ccb===![]?undefined:_0x414ccb;if(_0x414ccb===![])_0x4dcf32();else _0x259060['query'][_0x13fe04('0xfba')]&&(_0x259060[_0x13fe04('0x826')]['search']+=_0x13fe04('0x248e')+_0x259060[_0x13fe04('0x197c')]['id']+']',_0x4dcf32());})[_0x12aa3d('0x16df')](function(_0x4b3ef2){const _0x5b97b3=_0x12aa3d;_0x2fcd4d[_0x5b97b3('0x1db9')]({'title':_0x5b97b3('0x1288'),'msg':_0x4b3ef2[_0x5b97b3('0x1457')]?JSON[_0x5b97b3('0x678')](_0x4b3ef2[_0x5b97b3('0x1457')][_0x5b97b3('0x1603')]):_0x4b3ef2[_0x5b97b3('0x9b6')]()});});}let _0x21dd04=!![],_0x498a49=0x1;_0x957179['$watch'](_0x495187('0x3ed'),function(_0x5e8024,_0x522a06){const _0x1f2162=_0x495187;_0x21dd04?_0x29c72e(function(){_0x21dd04=![];}):(!_0x522a06&&(_0x498a49=_0x259060[_0x1f2162('0x826')][_0x1f2162('0x115a')]),_0x5e8024!==_0x522a06&&(_0x259060['query']['page']=0x1),!_0x5e8024&&(_0x259060[_0x1f2162('0x826')]['page']=_0x498a49),_0x4dcf32());});}const _0x4dd60b=_0x1f5499;_0x5e48b5[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x198f'),_0x4376d8('0x28da'),'api',_0x4376d8('0x1885'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),'draftManager'];function _0x5e48b5(_0x2bb2e7,_0x522dd0,_0x2ed8ad,_0x2f1146,_0x2bb48b,_0x2aaf5f,_0x52b9c8,_0x48057c,_0x4dcc22,_0x339324,_0x12f98c){const _0x20f748=_0x4376d8,_0x41c9e8=this;_0x41c9e8['user']=_0x48057c[_0x20f748('0x2831')](),_0x41c9e8['license']={},_0x41c9e8[_0x20f748('0x1aeb')]={},_0x41c9e8[_0x20f748('0x1522')]={'count':0x0,'rows':[]},_0x41c9e8[_0x20f748('0x27f')]={'count':0x0,'rows':[]},_0x41c9e8['query']={'includeAll':!![],'sort':_0x20f748('0x1ac6'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x41c9e8[_0x20f748('0xfb6')]={'fields':[{'name':'Id','column':'id','type':_0x20f748('0x7b8')},{'name':_0x20f748('0x239b'),'column':_0x20f748('0x239b'),'type':_0x20f748('0x682'),'options':{'searchFields':[_0x20f748('0x1761'),'lastName','email'],'route':{'model':'cmContact','action':'get','params':{'fields':'id,firstName,lastName,email','Contact':'@autocomplete','nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':['$ne']}},{'name':_0x20f748('0x2854'),'column':_0x20f748('0x13aa'),'type':'text','options':{'excludedOperators':[_0x20f748('0x1767'),'$ne']}},{'name':_0x20f748('0x51c'),'column':_0x20f748('0x2bc'),'type':_0x20f748('0x2897'),'values':[{'id':0x0,'translate':_0x20f748('0x1f4f')},{'id':0x1,'translate':_0x20f748('0x2322')}],'options':{'excludedOperators':['$ne']}},{'name':_0x20f748('0x1874'),'column':_0x20f748('0x24fd'),'type':_0x20f748('0x682'),'options':{'table':'i','route':{'model':'user','action':_0x20f748('0x1c53'),'params':{'role':_0x20f748('0x684'),'fields':_0x20f748('0x1f7'),'nolimit':!![]}},'searchFields':['fullname','name'],'extraOperators':[_0x20f748('0x1ed7')],'excludedOperators':[_0x20f748('0xdaa')]}},{'name':_0x20f748('0x896'),'column':'OpenchannelAccountId','type':'multiselect','options':{'route':{'model':'user','action':_0x20f748('0x2532'),'params':{'id':_0x41c9e8[_0x20f748('0x221e')]['id'],'nolimit':!![]}}}},{'name':_0x20f748('0x28a6'),'column':'Tag','type':'multiselect','options':{'route':{'model':'tag','action':_0x20f748('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x20f748('0x2045')]}},{'name':_0x20f748('0x1786'),'column':_0x20f748('0x7c9'),'type':'date','options':{'excludedOperators':[_0x20f748('0xdaa')]}},{'name':'Read','column':_0x20f748('0x1aad'),'type':_0x20f748('0x2897'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x20f748('0x263')}],'options':{'excludedOperators':['$ne']}}]},_0x41c9e8[_0x20f748('0x87b')]=_0x20f748('0x1b69'),_0x41c9e8[_0x20f748('0xdf0')]=_0x531b01,_0x41c9e8[_0x20f748('0x130d')]=_0x69607c,_0x41c9e8[_0x20f748('0x2229')]=_0x3c2650,_0x41c9e8[_0x20f748('0xb48')]=_0x2cecd1,_0x41c9e8[_0x20f748('0x2851')]=_0x4072b6,_0x41c9e8[_0x20f748('0x1377')]=_0x1bc102,_0x41c9e8[_0x20f748('0x422')]=_0x5333fd,_0x41c9e8[_0x20f748('0x266f')]=_0x164bdf,_0x41c9e8[_0x20f748('0x25fe')]=_0x34d057,_0x41c9e8[_0x20f748('0x1f5f')]=_0x49b771,_0x41c9e8[_0x20f748('0x8ea')]=_0x591853,_0x41c9e8['onSearchBarExpand']=_0x4a7774,_0x41c9e8[_0x20f748('0x585')]=_0x1149cc;function _0x531b01(_0x4c11c4,_0x1d33ff){const _0x35d8d0=_0x20f748;return _0x41c9e8[_0x35d8d0('0x1d11')]=_0x4c11c4,_0x41c9e8['setting']=_0x1d33ff,_0x52b9c8[_0x35d8d0('0x221e')]['get'+_0x49cbdd()[_0x35d8d0('0x233c')](_0x35d8d0('0x1408'))]({'id':_0x41c9e8[_0x35d8d0('0x221e')]['id'],'nolimit':!![]})['$promise'][_0x35d8d0('0x17e7')](function(_0x2b191c){const _0x553f29=_0x35d8d0;return _0x41c9e8[_0x553f29('0x1408')]=_0x2b191c||{'count':0x0,'rows':[]},_0x52b9c8['tag'][_0x553f29('0x1c53')]()['$promise'];})[_0x35d8d0('0x17e7')](function(_0x1055dc){const _0x5cb642=_0x35d8d0;_0x41c9e8[_0x5cb642('0x1522')]=_0x1055dc||{'count':0x0,'rows':[]};})[_0x35d8d0('0x17e7')](function(){const _0x25c523=_0x35d8d0;_0x41c9e8[_0x25c523('0x137d')]=_0xe3bb56();})[_0x35d8d0('0x16df')](function(_0x57e76b){const _0xb1e204=_0x35d8d0;console[_0xb1e204('0x1db9')](_0x57e76b);})[_0x35d8d0('0x74e')](function(){const _0x4d5bda=_0x35d8d0;let _0x435ad6=_0x2bb48b[_0x4d5bda('0x1a93')][_0x4d5bda('0x3b8')](_0x4d5bda('0x260c')+_0x41c9e8[_0x4d5bda('0x221e')]['id']);if(_0x435ad6)try{_0x435ad6=JSON[_0x4d5bda('0x1f0a')](_0x435ad6);if(_0x435ad6[_0x4d5bda('0x826')]){_0x41c9e8[_0x4d5bda('0x826')]=_0x49cbdd()[_0x4d5bda('0x1ced')](_0x41c9e8[_0x4d5bda('0x826')],_0x435ad6[_0x4d5bda('0x826')]);if(_0x49cbdd()['isEmpty'](_0x41c9e8['openchannelAccounts'][_0x4d5bda('0x2319')]))_0x41c9e8[_0x4d5bda('0x826')][_0x4d5bda('0x1969')]=[];else _0x49cbdd()['isEmpty'](_0x41c9e8[_0x4d5bda('0x826')]['OpenchannelAccountId'])&&(_0x41c9e8[_0x4d5bda('0x826')][_0x4d5bda('0x1969')]=_0x49cbdd()(_0x41c9e8[_0x4d5bda('0x1408')][_0x4d5bda('0x2319')])['map']('id')['take']()['value']());_0x41c9e8[_0x4d5bda('0x826')][_0x4d5bda('0x1b22')]&&_0x41c9e8[_0x4d5bda('0x826')]['sort'][_0x4d5bda('0x2567')](_0x4d5bda('0x1723'))>=0x0&&(_0x41c9e8[_0x4d5bda('0x826')]=_0x49cbdd()[_0x4d5bda('0x15c3')](_0x41c9e8[_0x4d5bda('0x826')],'sort')),_0x41c9e8[_0x4d5bda('0x826')][_0x4d5bda('0x1cad')]=!![],_0x41c9e8[_0x4d5bda('0x1949')]=_0x41c9e8[_0x4d5bda('0x826')]['filter']?!![]:![];}}catch(_0x48badf){console[_0x4d5bda('0x1db9')](_0x48badf);}else{const _0x42f07d={'$gte':_0x107a13()()[_0x4d5bda('0x161c')](_0x4d5bda('0x7c7'))[_0x4d5bda('0x1376')](0x0,!![])[_0x4d5bda('0x1c0d')](),'$lte':_0x107a13()()[_0x4d5bda('0x200e')]('month')[_0x4d5bda('0x1376')](0x0,!![])[_0x4d5bda('0x1c0d')]()},_0x3e7800={'OpenchannelAccountId':_0x49cbdd()['map'](_0x41c9e8[_0x4d5bda('0x1408')][_0x4d5bda('0x2319')],'id'),'createdAt':_0x42f07d};_0x41c9e8['query']=_0x49cbdd()[_0x4d5bda('0x1ced')](_0x41c9e8[_0x4d5bda('0x826')],_0x3e7800);}_0x4dcc22['on'](_0x4d5bda('0x1cde'),_0x31083f),_0x4dcc22['on'](_0x4d5bda('0x55c'),_0x31083f),_0x4dcc22['on'](_0x4d5bda('0x2495'),_0x804163),_0x4dcc22['on']('openchannelMessage:save',_0x41e81e),_0x4dcc22['on']('openchannelMessage:update',_0x41e81e),_0x4dcc22['on'](_0x4d5bda('0x2363'),_0x5b2741),_0x4dcc22['on']('user_has_openchannel_interactions:remove',_0x234525),_0x3c2650(_0x41c9e8[_0x4d5bda('0x826')][_0x4d5bda('0x115a')]);});}function _0xe3bb56(){const _0x51a34c=_0x20f748;return[{'name':_0x51a34c('0x1786'),'key':'createdAt','type':_0x51a34c('0xbd4'),'label':'DASHBOARDS.SELECT_DATE'},{'name':_0x51a34c('0xd08'),'key':_0x51a34c('0xf64'),'type':'select','label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x51a34c('0x263')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':_0x51a34c('0x51c'),'key':_0x51a34c('0x2bc'),'type':_0x51a34c('0x2897'),'label':_0x51a34c('0x12f2'),'customOptions':[{'value':0x0,'translate':_0x51a34c('0x1f4f')},{'value':0x1,'translate':_0x51a34c('0x2322')},{'value':null,'translate':_0x51a34c('0x9cf')}]},{'name':_0x51a34c('0x896'),'key':_0x51a34c('0x1969'),'type':'multiselect','label':_0x51a34c('0x27da'),'options':_0x41c9e8[_0x51a34c('0x1408')][_0x51a34c('0x2319')],'clearAll':![]},{'name':_0x51a34c('0x1874'),'key':_0x51a34c('0x5e5'),'type':_0x51a34c('0x2897'),'label':_0x51a34c('0x351'),'customOptions':[{'value':_0x41c9e8[_0x51a34c('0x221e')]['id'],'translate':'DASHBOARDS.ME'},{'value':_0x51a34c('0x9bb'),'translate':_0x51a34c('0x154d')},{'value':undefined,'translate':_0x51a34c('0x9cf')}]},{'name':_0x51a34c('0xe16'),'key':_0x51a34c('0x1132'),'type':'multiselect','label':_0x51a34c('0x1e4d'),'options':_0x41c9e8[_0x51a34c('0x1522')]['rows'],'placeholder':_0x51a34c('0x21aa')}];}function _0x69607c(_0xfa4af){const _0x247867=_0x20f748;_0x41c9e8[_0x247867('0x1bde')]=![],_0x41c9e8['openchannelInteractions']=_0xfa4af||{'count':0x0,'rows':[]};for(let _0x12f13d=0x0;_0x12f13d<_0x41c9e8[_0x247867('0x27f')]['rows'][_0x247867('0x1f73')];_0x12f13d+=0x1){_0x5333fd(_0x41c9e8[_0x247867('0x27f')][_0x247867('0x2319')][_0x12f13d]);}}function _0x3c2650(_0x18d4b6){const _0x13e1aa=_0x20f748;_0x41c9e8[_0x13e1aa('0x1bde')]=!![];!_0x18d4b6&&(_0x41c9e8['query'][_0x13e1aa('0x115a')]=0x1);_0x41c9e8['query']['offset']=(_0x41c9e8[_0x13e1aa('0x826')][_0x13e1aa('0x115a')]-0x1)*_0x41c9e8['query']['limit'];let _0xa629c5=_0x2bb48b[_0x13e1aa('0x1a93')]['getItem'](_0x13e1aa('0x260c')+_0x41c9e8[_0x13e1aa('0x221e')]['id']);_0xa629c5=_0xa629c5?JSON[_0x13e1aa('0x1f0a')](_0xa629c5):{},_0xa629c5[_0x13e1aa('0x826')]=_0x41c9e8[_0x13e1aa('0x826')],_0x2bb48b[_0x13e1aa('0x1a93')][_0x13e1aa('0x230f')](_0x13e1aa('0x260c')+_0x41c9e8['user']['id'],JSON[_0x13e1aa('0x678')](_0xa629c5)),_0x41c9e8[_0x13e1aa('0x1691')]=_0x52b9c8['openchannelInteraction'][_0x13e1aa('0x1c53')](_0x41c9e8['query'],_0x69607c)[_0x13e1aa('0x1af5')];}function _0x2cecd1(_0x53f229,_0x3d6723){const _0x41fa0c=_0x20f748;_0x2bb2e7[_0x41fa0c('0x178c')]['vm']['addInteractionTab'](_0x41fa0c('0x1508'),_0x3d6723);}function _0x4072b6(_0x56e2ca,_0x120c6b,_0x1cc8b5){const _0x2813e1=_0x20f748;_0x52b9c8[_0x2813e1('0x21fb')][_0x2813e1('0x1244')]({'id':_0x120c6b['id'],'attachments':_0x1cc8b5})[_0x2813e1('0x1af5')][_0x2813e1('0x17e7')](function(_0x478e8c){const _0x297fed=_0x2813e1,_0x740852=[_0x478e8c[_0x297fed('0x3ca')]],_0x4b17aa=_0x297fed('0x1f40')+_0x120c6b['id']+'.zip',_0x421f4e=new Blob(_0x740852,{'type':_0x478e8c[_0x297fed('0x412')]}),_0x3cfabd=window[_0x297fed('0x2be')][_0x297fed('0x68d')]('a');_0x3cfabd[_0x297fed('0x224')]('href',URL[_0x297fed('0x28ce')](_0x421f4e)),_0x3cfabd[_0x297fed('0x224')](_0x297fed('0x1244'),_0x4b17aa),document[_0x297fed('0x13aa')][_0x297fed('0x128c')](_0x3cfabd),_0x3cfabd[_0x297fed('0x20d4')]();})[_0x2813e1('0x16df')](function(_0xe22550){const _0x11a545=_0x2813e1;if(_0xe22550[_0x11a545('0x1457')]&&_0xe22550[_0x11a545('0x1457')][_0x11a545('0x73e')]&&_0xe22550['data'][_0x11a545('0x73e')][_0x11a545('0x1f73')])for(let _0x32e8ea=0x0;_0x32e8ea<_0xe22550['data']['errors'][_0x11a545('0x1f73')];_0x32e8ea+=0x1){_0x339324['error']({'title':_0xe22550[_0x11a545('0x1457')]['errors'][_0x32e8ea][_0x11a545('0x412')],'msg':_0xe22550[_0x11a545('0x1457')][_0x11a545('0x73e')][_0x32e8ea][_0x11a545('0x1603')]});}else _0x339324[_0x11a545('0x1db9')]({'title':_0xe22550['status']?_0x11a545('0x14f7')+_0xe22550[_0x11a545('0x11c5')]+'\x20-\x20'+_0xe22550[_0x11a545('0x1833')]:'downloadOpenchannelInteraction','msg':_0xe22550['data']?JSON[_0x11a545('0x678')](_0xe22550['data'][_0x11a545('0x1603')]):_0xe22550[_0x11a545('0x9b6')]()});});}function _0x1bc102(_0x1caaef,_0x262e60){const _0xa97937=_0x20f748,_0x44e1eb=_0x41c9e8[_0xa97937('0x221e')][_0xa97937('0x118a')]||_0x41c9e8[_0xa97937('0x221e')]['chatPause']||_0x41c9e8[_0xa97937('0x221e')][_0xa97937('0x1467')]||_0x41c9e8[_0xa97937('0x221e')][_0xa97937('0x105e')]||_0x41c9e8[_0xa97937('0x221e')]['faxPause'],_0x26025b=!_0x262e60[_0xa97937('0x896')][_0xa97937('0xb20')];_0x2ed8ad[_0xa97937('0x28e2')]({'controller':_0xa97937('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular[_0xa97937('0x1ce1')](_0x2f1146['body']),'clickOutsideToClose':_0x26025b,'escapeToClose':_0x26025b,'onRemoving':function(){const _0x38c2b6=_0xa97937;_0x41c9e8[_0x38c2b6('0x221e')]&&_0x262e60[_0x38c2b6('0x896')][_0x38c2b6('0xb20')]&&!_0x44e1eb&&_0x52b9c8[_0x38c2b6('0x221e')][_0x38c2b6('0xc57')]({'id':_0x41c9e8[_0x38c2b6('0x221e')]['id']})[_0x38c2b6('0x1af5')]['catch'](function(_0x2e62e7){const _0x22d7e6=_0x38c2b6;console[_0x22d7e6('0x1db9')](_0x2e62e7);});},'locals':{'user':_0x41c9e8[_0xa97937('0x221e')],'channel':_0xa97937('0x1508'),'interaction':_0x262e60}});}function _0x5333fd(_0x427ba1){const _0x38fa48=_0x20f748;if(_0x427ba1[_0x38fa48('0x12da')])_0x427ba1[_0x38fa48('0x192c')]=_0x427ba1[_0x38fa48('0x12da')];else _0x427ba1[_0x38fa48('0x239b')]?_0x427ba1[_0x38fa48('0x192c')]=(_0x427ba1[_0x38fa48('0x239b')][_0x38fa48('0x1761')]||'')+'\x20'+(_0x427ba1[_0x38fa48('0x239b')][_0x38fa48('0x8d6')]||''):_0x427ba1[_0x38fa48('0x192c')]=_0x2aaf5f['instant']('DASHBOARDS.UNKNOWN');}function _0x164bdf(_0xf0475){const _0xac7af=_0x20f748;if(_0xf0475[_0xac7af('0x5e5')])return _0xf0475[_0xac7af('0x5e5')]===_0x41c9e8[_0xac7af('0x221e')]['id']?_0x2aaf5f[_0xac7af('0x1acc')](_0xac7af('0x2422')):_0xf0475['Owner']['fullname']+'\x20<'+_0xf0475[_0xac7af('0xe49')]['internal']+'>';return _0x2aaf5f[_0xac7af('0x1acc')](_0xac7af('0x154d'));}function _0x34d057(_0x76a62d){const _0x329309=_0x20f748;if(_0x76a62d[_0x329309('0x896')])return _0x76a62d[_0x329309('0x896')][_0x329309('0xdb5')];return _0x2aaf5f['instant'](_0x329309('0x30a'));}function _0x49b771(_0x366fc2,_0x417dbc){const _0x44001b=_0x20f748;_0x2ed8ad[_0x44001b('0x28e2')]({'controller':_0x44001b('0x1e5c'),'controllerAs':'vm','templateUrl':_0xbfa572,'parent':angular[_0x44001b('0x1ce1')](_0x2f1146[_0x44001b('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x417dbc,'message':{},'type':_0x44001b('0x1b39'),'interaction':{}},'fullscreen':!![]})['then'](function(_0x3e314b){const _0x49ccb6=_0x44001b;if(_0x3e314b){if(_0x3e314b[_0x49ccb6('0x1603')]&&_0x3e314b['message'][_0x49ccb6('0xa8b')]){const _0x1c747d={'channel':_0x49ccb6('0x1508'),'account':_0x417dbc,'message':_0x3e314b['message'],'contact':_0x3e314b['contact']};_0x12f98c[_0x49ccb6('0xd62')](_0x1c747d);}else{const _0xd24c40=_0x3e314b;return _0x52b9c8[_0x49ccb6('0x152f')][_0x49ccb6('0x13b7')]({'id':_0x417dbc['id']},_0xd24c40)['$promise'][_0x49ccb6('0x17e7')](function(_0x36fcee){const _0x123524=_0x49ccb6;_0x339324['success']({'title':_0x123524('0x235b'),'msg':_0x123524('0x2235')}),_0x2bb2e7[_0x123524('0x178c')]['vm'][_0x123524('0x3a2')]('openchannel',_0x36fcee);})[_0x49ccb6('0x16df')](function(_0x491f22){const _0x2c6962=_0x49ccb6;if(_0x491f22[_0x2c6962('0x1457')]&&_0x491f22['data'][_0x2c6962('0x73e')]&&_0x491f22[_0x2c6962('0x1457')][_0x2c6962('0x73e')][_0x2c6962('0x1f73')])for(let _0x541b0d=0x0;_0x541b0d<_0x491f22[_0x2c6962('0x1457')][_0x2c6962('0x73e')][_0x2c6962('0x1f73')];_0x541b0d++){_0x339324['error']({'title':_0x491f22['data'][_0x2c6962('0x73e')][_0x541b0d][_0x2c6962('0x412')],'msg':_0x491f22['data'][_0x2c6962('0x73e')][_0x541b0d][_0x2c6962('0x1603')]});}else _0x339324[_0x2c6962('0x1db9')]({'title':_0x491f22['status']?_0x2c6962('0x14f7')+_0x491f22[_0x2c6962('0x11c5')]+_0x2c6962('0x16e4')+_0x491f22[_0x2c6962('0x1833')]:_0x2c6962('0x2323'),'msg':_0x491f22[_0x2c6962('0x1457')]?JSON[_0x2c6962('0x678')](_0x491f22[_0x2c6962('0x1457')]['message']):_0x491f22[_0x2c6962('0x1603')]||_0x491f22[_0x2c6962('0x9b6')]()});});}}});}function _0x5b2741(_0x52752c){const _0x5ec6cc=_0x20f748;let _0x4a330b;const _0x103eb8=_0x49cbdd()['find'](_0x41c9e8[_0x5ec6cc('0x27f')][_0x5ec6cc('0x2319')],{'id':_0x52752c[_0x5ec6cc('0x1b42')]});_0x103eb8&&_0x103eb8[_0x5ec6cc('0x15d4')]&&(_0x4a330b=_0x49cbdd()[_0x5ec6cc('0xe8e')](_0x103eb8['Users'],{'id':_0x52752c[_0x5ec6cc('0x5e5')]}),!_0x4a330b&&_0x103eb8['Users'][_0x5ec6cc('0x269f')]({'id':_0x52752c[_0x5ec6cc('0x5e5')]}));}function _0x234525(_0x24ef21){const _0xaa27e6=_0x20f748,_0x5aad77=_0x49cbdd()[_0xaa27e6('0xe8e')](_0x41c9e8[_0xaa27e6('0x27f')][_0xaa27e6('0x2319')],{'id':_0x24ef21[_0xaa27e6('0x1b42')]});_0x5aad77&&_0x5aad77[_0xaa27e6('0x15d4')]&&_0x49cbdd()['remove'](_0x5aad77[_0xaa27e6('0x15d4')],{'id':_0x24ef21[_0xaa27e6('0x5e5')]});}function _0x31083f(_0x30a5ae){const _0x382d19=_0x20f748;if(_0x30a5ae){const _0x1ef59a=_0x49cbdd()[_0x382d19('0xe8e')](_0x41c9e8['openchannelInteractions']['rows'],{'id':_0x30a5ae['id']});if(_0x1ef59a){_0x1ef59a[_0x382d19('0x15d4')]=[];_0x30a5ae[_0x382d19('0x2bc')]&&(_0x1ef59a['unreadMessages']=0x0);if(_0x41c9e8[_0x382d19('0x826')][_0x382d19('0x1b22')]){const _0x7d9028=_0x49cbdd()[_0x382d19('0x818')](_0x41c9e8[_0x382d19('0x826')][_0x382d19('0x1b22')],'-')?_0x382d19('0x187b'):_0x382d19('0x161a');_0x41c9e8[_0x382d19('0x27f')]['rows']=_0x49cbdd()[_0x382d19('0xa36')](_0x41c9e8['openchannelInteractions'][_0x382d19('0x2319')],_0x49cbdd()['trimStart'](_0x41c9e8['query'][_0x382d19('0x1b22')],'-'),_0x7d9028);}_0x49cbdd()[_0x382d19('0x1ced')](_0x1ef59a,_0x49cbdd()[_0x382d19('0x230a')](_0x30a5ae,_0x49cbdd()['keys'](_0x1ef59a)));}else _0x3c2650(_0x41c9e8[_0x382d19('0x826')][_0x382d19('0x115a')]);}}function _0x804163(_0x149800){const _0x5aaa2a=_0x20f748;if(_0x149800){const _0x5b2346=_0x49cbdd()['find'](_0x41c9e8[_0x5aaa2a('0x27f')][_0x5aaa2a('0x2319')],{'id':_0x149800['id']});_0x5b2346&&(_0x5b2346[_0x5aaa2a('0x28a6')]=_0x149800[_0x5aaa2a('0x1522')]||[],_0x49cbdd()[_0x5aaa2a('0x1ced')](_0x5b2346,_0x49cbdd()[_0x5aaa2a('0x230a')](_0x149800,_0x49cbdd()[_0x5aaa2a('0x1c0f')](_0x5b2346))));}}function _0x41e81e(_0x4f6695){const _0x21445f=_0x20f748;if(_0x4f6695&&!_0x4f6695[_0x21445f('0x1c8e')]){const _0x3b5aa4=_0x49cbdd()[_0x21445f('0xe8e')](_0x41c9e8[_0x21445f('0x27f')]['rows'],{'id':_0x4f6695[_0x21445f('0x1b42')]});if(_0x3b5aa4){const _0x12770d=_0x49cbdd()['find'](_0x3b5aa4[_0x21445f('0xd08')],{'id':_0x4f6695['id']});_0x12770d?_0x49cbdd()[_0x21445f('0x1ced')](_0x12770d,_0x49cbdd()['pick'](_0x4f6695,_0x49cbdd()[_0x21445f('0x1c0f')](_0x12770d))):(_0x49cbdd()[_0x21445f('0x390')](_0x3b5aa4[_0x21445f('0xd08')])&&(_0x3b5aa4[_0x21445f('0xd08')]={'count':0x0}),!_0x4f6695[_0x21445f('0xf64')]&&(_0x3b5aa4[_0x21445f('0xd08')][_0x21445f('0x335')]+=0x1));}}}function _0x591853(){const _0x49f0cd=_0x20f748;_0x41c9e8[_0x49f0cd('0x1949')]=![];}function _0x4a7774(){const _0x51ee99=_0x20f748;_0x41c9e8[_0x51ee99('0x1949')]=!![];}function _0x1149cc(){const _0x191e4c=_0x20f748;_0x41c9e8[_0x191e4c('0x1949')]=![],_0x2ed8ad[_0x191e4c('0x28e2')]({'controller':_0x191e4c('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular['element'](_0x2f1146[_0x191e4c('0x13aa')]),'clickOutsideToClose':![],'locals':{'color':_0x41c9e8[_0x191e4c('0x87b')],'fields':_0x41c9e8['advancedSearch'][_0x191e4c('0x9c9')],'storagePath':_0x191e4c('0xad8')},'fullscreen':!![]})[_0x191e4c('0x17e7')](function(_0x26b1bf){const _0x2913ee=_0x191e4c;_0x41c9e8[_0x2913ee('0x826')][_0x2913ee('0xfba')]=_0x26b1bf===![]?undefined:_0x26b1bf;if(_0x41c9e8[_0x2913ee('0x826')][_0x2913ee('0xfba')]||_0x26b1bf===![])_0x3c2650();})[_0x191e4c('0x16df')](function(_0x4964c2){const _0x56ac04=_0x191e4c;_0x339324[_0x56ac04('0x1db9')]({'title':_0x56ac04('0x1288'),'msg':_0x4964c2[_0x56ac04('0x1457')]?JSON[_0x56ac04('0x678')](_0x4964c2[_0x56ac04('0x1457')]['message']):_0x4964c2[_0x56ac04('0x9b6')]()});});}let _0x5a5987=!![],_0x6bd054=0x1;_0x2bb2e7[_0x20f748('0x620')](_0x20f748('0x3ed'),function(_0x5eb835,_0x5c72b6){const _0x1a8458=_0x20f748;_0x5a5987?_0x522dd0(function(){_0x5a5987=![];}):(!_0x5c72b6&&(_0x6bd054=_0x41c9e8['query']['page']),_0x5eb835!==_0x5c72b6&&(_0x41c9e8[_0x1a8458('0x826')][_0x1a8458('0x115a')]=0x1),!_0x5eb835&&(_0x41c9e8[_0x1a8458('0x826')]['page']=_0x6bd054),_0x3c2650(_0x41c9e8[_0x1a8458('0x826')][_0x1a8458('0x115a')]));}),_0x2bb2e7[_0x20f748('0x207c')](_0x20f748('0x2b4'),function(){const _0x515eaa=_0x20f748;_0x4dcc22[_0x515eaa('0x1c65')](_0x515eaa('0x163a')),_0x4dcc22['removeAllListeners'](_0x515eaa('0x25d3')),_0x4dcc22['removeAllListeners'](_0x515eaa('0x1cde')),_0x4dcc22[_0x515eaa('0x1c65')](_0x515eaa('0x2495')),_0x4dcc22[_0x515eaa('0x1c65')]('openchannelInteraction:update'),_0x4dcc22['removeAllListeners'](_0x515eaa('0x2363')),_0x4dcc22[_0x515eaa('0x1c65')](_0x515eaa('0x1eac'));});}const _0x286047=_0x5e48b5;_0x508e56[_0x4376d8('0x1b9c')]=[_0x4376d8('0x26ca'),_0x4376d8('0x668'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x118b'),_0x4376d8('0x92d'),_0x4376d8('0x1885')];function _0x508e56(_0x2992d8,_0x215df0,_0x197fce,_0x138f5d,_0x5311f7,_0x3fb18f,_0x45967b){const _0x1ed6da=_0x4376d8,_0x50872c=this;_0x50872c[_0x1ed6da('0x197c')]=_0x45967b[_0x1ed6da('0x2831')](),_0x50872c[_0x1ed6da('0x1ec3')]={};function _0xc952d9(_0x56b71d,_0x3ecff0,_0x46b059){const _0x41779d=_0x1ed6da;_0x50872c[_0x41779d('0x1d11')]=_0x56b71d,_0x50872c[_0x41779d('0x1aeb')]=_0x3ecff0,_0x50872c[_0x41779d('0x1ec3')]=_0x46b059;}function _0x3d1a64(){const _0x27bbee=_0x1ed6da;return _0x3fb18f[_0x27bbee('0x2104')](_0x50872c[_0x27bbee('0x1ec3')][_0x27bbee('0x214c')]);}_0x215df0[_0x1ed6da('0x207c')](_0x1ed6da('0x14cb'),function(_0x19b695,_0x4abbff){const _0x4f6e3c=_0x1ed6da;_0x50872c[_0x4f6e3c('0x1ec3')]=_0x4abbff[_0x4f6e3c('0x1ec3')];}),_0x50872c[_0x1ed6da('0xdf0')]=_0xc952d9,_0x50872c[_0x1ed6da('0xe7c')]=_0x3d1a64,_0xc952d9();}const _0xab1847=_0x508e56;_0x1953c1['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xef1'),_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885')];function _0x1953c1(_0x1d38d2,_0x1f9db0,_0x4ec00e,_0x3d9da2,_0x37bdb4,_0x127821){const _0x735e87=_0x4376d8,_0x4367b9=this;_0x4367b9[_0x735e87('0x197c')]=_0x127821[_0x735e87('0x2831')](),_0x4367b9[_0x735e87('0x1161')]={},_0x4367b9[_0x735e87('0x23c3')]=_0x735e87('0x1161'),_0x4367b9['query']={'UserId':_0x4367b9[_0x735e87('0x197c')]['id'],'fields':_0x735e87('0x1146'),'sort':'-updatedAt','limit':0xa,'page':0x1,'type':null},_0x4367b9[_0x735e87('0x165e')]=_0x12dfe7,_0x4367b9[_0x735e87('0x801')]=_0x3b5778,_0x4367b9[_0x735e87('0x130d')]=_0x3955ec,_0x4367b9['getVoiceRecordings']=_0x4b6cdb,_0x4367b9[_0x735e87('0xdf0')]=_0x4f6b92,_0x4367b9['onSearchBarCollapse']=_0x4055c6,_0x4367b9['onSearchBarExpand']=_0x1bffea;function _0x4f6b92(){const _0x3e7a9e=_0x735e87;_0x4367b9['quickFilters']=_0x54db80();let _0x436b85=_0x1f9db0['localStorage']['getItem']('motion2.home.recordings:'+_0x4367b9[_0x3e7a9e('0x197c')]['id']);if(_0x436b85)try{_0x436b85=JSON[_0x3e7a9e('0x1f0a')](_0x436b85),_0x436b85[_0x3e7a9e('0x826')]&&(_0x4367b9[_0x3e7a9e('0x826')]=_0x49cbdd()['omit'](_0x436b85['query'],[_0x3e7a9e('0x2483'),'id']),_0x4367b9[_0x3e7a9e('0x826')][_0x3e7a9e('0x9c9')]='createdAt,updatedAt,id,format,value,type,uniqueid,calleridnum,exten,connectedlinenum,queue,rating,audio,transcribestatus,UserId',_0x4367b9[_0x3e7a9e('0x826')][_0x3e7a9e('0x5e5')]=_0x4367b9[_0x3e7a9e('0x197c')]['id']);}catch(_0x254eb6){console['error'](_0x254eb6);}else{const _0x4d8a88={'$gte':_0x107a13()()[_0x3e7a9e('0x161c')](_0x3e7a9e('0x7c7'))['utcOffset'](0x0,!![])[_0x3e7a9e('0x1c0d')](),'$lte':_0x107a13()()['endOf'](_0x3e7a9e('0x7c7'))[_0x3e7a9e('0x1376')](0x0,!![])[_0x3e7a9e('0x1c0d')]()};_0x4367b9[_0x3e7a9e('0x826')]['createdAt']=_0x4d8a88;}_0x4367b9[_0x3e7a9e('0x1949')]=_0x4367b9[_0x3e7a9e('0x826')]['filter']?!![]:![],_0x4367b9[_0x3e7a9e('0x125d')]();}function _0x12dfe7(_0x46f788){const _0x2ac5e4=_0x735e87;return _0x3d9da2['voiceRecording'][_0x2ac5e4('0x1244')]({'id':_0x46f788['id'],'exists':!![]})[_0x2ac5e4('0x1af5')][_0x2ac5e4('0x17e7')](function(_0x3b330b){const _0x48655d=_0x2ac5e4,_0x229079=[_0x3b330b[_0x48655d('0x3ca')]],_0x2ad63f=new Blob(_0x229079,{'type':_0x3b330b[_0x48655d('0x412')]}),_0x1741fc=window[_0x48655d('0x2be')][_0x48655d('0x68d')]('a');_0x1741fc[_0x48655d('0x224')](_0x48655d('0x448'),URL[_0x48655d('0x28ce')](_0x2ad63f)),_0x1741fc[_0x48655d('0x224')](_0x48655d('0x1244'),_0x46f788[_0x48655d('0x35b')]+_0x46f788[_0x48655d('0x1c0d')]),_0x1741fc[_0x48655d('0x20d4')]();})['catch'](function(_0x18c2f8){const _0x4b8a67=_0x2ac5e4;_0x37bdb4['error']({'title':_0x18c2f8[_0x4b8a67('0x11c5')]?_0x4b8a67('0x14f7')+_0x18c2f8[_0x4b8a67('0x11c5')]+'\x20-\x20'+_0x18c2f8[_0x4b8a67('0x1833')]:'SYSTEM:GETvoiceRecording','msg':_0x18c2f8[_0x4b8a67('0x1457')]?JSON[_0x4b8a67('0x678')](_0x18c2f8[_0x4b8a67('0x1457')]):_0x18c2f8[_0x4b8a67('0x9b6')]()});});}function _0x3b5778(_0x3beb4d){const _0x4ddecb=_0x735e87;return _0x3d9da2[_0x4ddecb('0x5f4')][_0x4ddecb('0x11d2')]({'id':_0x3beb4d['id']})[_0x4ddecb('0x1af5')]['then'](function(_0x5c637c){const _0x34bd5e=_0x4ddecb,_0x377dba=[_0x5c637c['buffer']];let _0x3435cf=_0x34bd5e('0x1244');const _0x592d16=new Blob(_0x377dba,{'type':_0x5c637c[_0x34bd5e('0x412')]});_0x3435cf=_0x3beb4d[_0x34bd5e('0x35b')];const _0x59aaa2=window[_0x34bd5e('0x2be')][_0x34bd5e('0x68d')]('a');_0x59aaa2[_0x34bd5e('0x224')](_0x34bd5e('0x448'),URL[_0x34bd5e('0x28ce')](_0x592d16)),_0x59aaa2[_0x34bd5e('0x224')](_0x34bd5e('0x1244'),_0x3435cf),document[_0x34bd5e('0x13aa')][_0x34bd5e('0x128c')](_0x59aaa2),_0x59aaa2['click']();})['catch'](function(_0x87e039){const _0x47cafb=_0x4ddecb;_0x37bdb4[_0x47cafb('0x1db9')]({'title':_0x87e039[_0x47cafb('0x11c5')]?_0x47cafb('0x14f7')+_0x87e039[_0x47cafb('0x11c5')]+_0x47cafb('0x16e4')+_0x87e039[_0x47cafb('0x1833')]:_0x47cafb('0x1834'),'msg':_0x87e039[_0x47cafb('0x1457')]?JSON[_0x47cafb('0x678')](_0x87e039[_0x47cafb('0x1457')]):_0x87e039[_0x47cafb('0x9b6')]()});});}function _0x54db80(){const _0x34b761=_0x735e87;return[{'name':'Start\x20Date','key':'createdAt','type':_0x34b761('0xbd4'),'label':_0x34b761('0x1ee1')},{'name':_0x34b761('0xc9e'),'key':_0x34b761('0x412'),'type':_0x34b761('0x2897'),'label':_0x34b761('0x65b'),'customOptions':[{'value':_0x34b761('0xe3e'),'translate':'VOICE.INTERNAL'},{'value':'inbound','translate':_0x34b761('0x108c')},{'value':'outbound','translate':_0x34b761('0x84a')},{'value':_0x34b761('0x1646'),'translate':_0x34b761('0xea5')},{'value':null,'translate':_0x34b761('0x1b4e')}]}];}function _0x3955ec(_0x53b1d9){const _0x29c0f0=_0x735e87;_0x4367b9[_0x29c0f0('0x1bde')]=![],_0x4367b9[_0x29c0f0('0x1161')]=_0x53b1d9||{'count':0x0,'rows':[]};}function _0x4b6cdb(){const _0x1f6332=_0x735e87;_0x4367b9['searchInProgress']=!![],_0x4367b9[_0x1f6332('0x826')]['offset']=(_0x4367b9[_0x1f6332('0x826')][_0x1f6332('0x115a')]-0x1)*_0x4367b9[_0x1f6332('0x826')]['limit'];const _0x2a36f8={'query':_0x4367b9[_0x1f6332('0x826')]};_0x1f9db0[_0x1f6332('0x1a93')][_0x1f6332('0x230f')]('motion2.home.recordings:'+_0x4367b9[_0x1f6332('0x197c')]['id'],JSON[_0x1f6332('0x678')](_0x2a36f8)),_0x4367b9['promise']=_0x3d9da2[_0x1f6332('0x5f4')][_0x1f6332('0x1c53')](_0x4367b9[_0x1f6332('0x826')],_0x3955ec)[_0x1f6332('0x1af5')];}function _0x4055c6(){const _0x2b19f4=_0x735e87;_0x4367b9[_0x2b19f4('0x826')][_0x2b19f4('0x2483')]=undefined,_0x4367b9['isSearchBarVisible']=![];}function _0x1bffea(){const _0x37da25=_0x735e87;_0x4367b9[_0x37da25('0x1949')]=!![];}let _0x2c1dad=!![],_0x816abd=0x1;_0x1d38d2[_0x735e87('0x620')](_0x735e87('0x3ed'),function(_0x3a5299,_0x4fb3d6){const _0x558510=_0x735e87;_0x2c1dad?_0x4ec00e(function(){_0x2c1dad=![];}):(!_0x4fb3d6&&(_0x816abd=_0x4367b9['query'][_0x558510('0x115a')]),_0x3a5299!==_0x4fb3d6&&(_0x4367b9[_0x558510('0x826')][_0x558510('0x115a')]=0x1),!_0x3a5299&&(_0x4367b9['query'][_0x558510('0x115a')]=_0x816abd),_0x4367b9[_0x558510('0x125d')]());});}const _0x9fe8f2=_0x1953c1,_0x1e4a8a=_0x4cf2bc['p']+_0x4376d8('0xec2');_0x4b0b19[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$timeout',_0x4376d8('0x14f6'),'$document','toasty',_0x4376d8('0x212e'),'Auth'];function _0x4b0b19(_0x3deaea,_0x52970e,_0x2d2a51,_0x5b4d86,_0x3f8bd5,_0x214ece,_0x4d27eb,_0x340e36){const _0x31cb4a=_0x4376d8,_0x48a8e7=this;_0x48a8e7[_0x31cb4a('0x197c')]=_0x340e36[_0x31cb4a('0x2831')](),_0x48a8e7[_0x31cb4a('0x1d73')]=['Lowest',_0x31cb4a('0xfd2'),_0x31cb4a('0x1410'),_0x31cb4a('0xf1e'),_0x31cb4a('0x11ea')],_0x48a8e7[_0x31cb4a('0x103e')]={'readOnly':![],'canEdit':!![],'canDelete':!![]},_0x48a8e7['scheduledCalls']={},_0x48a8e7[_0x31cb4a('0x826')]={'id':_0x48a8e7[_0x31cb4a('0x197c')]['id'],'fields':_0x31cb4a('0x753'),'sort':_0x31cb4a('0x2809'),'limit':0xa,'page':0x1},_0x48a8e7[_0x31cb4a('0x2a2')]={'rows':[],'count':0x0},_0x48a8e7['success']=_0x2413ac,_0x48a8e7[_0x31cb4a('0x139e')]=_0x4e5dbd,_0x48a8e7[_0x31cb4a('0xdf0')]=_0x4ebb14,_0x48a8e7[_0x31cb4a('0x1548')]=_0x1c99df,_0x48a8e7[_0x31cb4a('0x249f')]=_0x176b4c,_0x48a8e7[_0x31cb4a('0x1a20')]=_0x1408ac;function _0x4ebb14(){const _0x43cf28=_0x31cb4a;_0x4d27eb['user']['getQueues']({'id':_0x340e36['getCurrentUser']()['id'],'fields':_0x43cf28('0x12d2'),'channel':_0x43cf28('0x1fe1'),'type':_0x43cf28('0x1ade'),'nolimit':!![]})[_0x43cf28('0x1af5')]['then'](function(_0x5b52ab){_0x48a8e7['queueCampaigns']=_0x5b52ab||{'count':0x0,'rows':[]};})[_0x43cf28('0x17e7')](function(){const _0x1d8ee5=_0x43cf28;_0x48a8e7[_0x1d8ee5('0x137d')]=_0x58cb67();})[_0x43cf28('0x16df')](function(_0x465bd0){const _0x368df8=_0x43cf28;console[_0x368df8('0x1db9')](_0x465bd0);})[_0x43cf28('0x74e')](function(){const _0x58324b=_0x43cf28;let _0x166569=_0x52970e[_0x58324b('0x1a93')]['getItem'](_0x58324b('0x406')+_0x48a8e7[_0x58324b('0x197c')]['id']);if(_0x166569)try{_0x166569=JSON[_0x58324b('0x1f0a')](_0x166569),_0x166569[_0x58324b('0x826')]&&(_0x48a8e7[_0x58324b('0x826')]=_0x49cbdd()[_0x58324b('0x15c3')](_0x166569['query'],[_0x58324b('0x2483')]));}catch(_0x2d0818){console[_0x58324b('0x1db9')](_0x2d0818);}else{const _0x312ac1={'$gte':_0x107a13()()[_0x58324b('0x161c')](_0x58324b('0x7c7'))[_0x58324b('0x1376')](0x0,!![])['format'](),'$lte':_0x107a13()()[_0x58324b('0x200e')](_0x58324b('0x7c7'))[_0x58324b('0x1376')](0x0,!![])[_0x58324b('0x1c0d')]()};_0x48a8e7[_0x58324b('0x826')]['createdAt']=_0x312ac1;}_0x48a8e7[_0x58324b('0x139e')]();});}function _0x2413ac(_0x189bbd){const _0x52108c=_0x31cb4a;_0x48a8e7[_0x52108c('0x1bde')]=![],_0x48a8e7[_0x52108c('0x8f')]=_0x189bbd||{'count':0x0,'rows':[]};}function _0x58cb67(){const _0x3f8105=_0x31cb4a;return[{'name':'Start\x20Date','key':_0x3f8105('0x7c9'),'type':_0x3f8105('0xbd4'),'label':_0x3f8105('0x1ee1')},{'name':_0x3f8105('0x1873'),'key':_0x3f8105('0x2803'),'type':_0x3f8105('0x1227'),'label':'MOTIONDIALER.SELECT_CAMPAIGN','options':_0x48a8e7[_0x3f8105('0x2a2')][_0x3f8105('0x2319')]}];}function _0x4e5dbd(){const _0x3a2c9e=_0x31cb4a;_0x48a8e7[_0x3a2c9e('0x1bde')]=!![],_0x48a8e7[_0x3a2c9e('0x826')]['id']=_0x48a8e7[_0x3a2c9e('0x197c')]['id'],_0x48a8e7[_0x3a2c9e('0x826')][_0x3a2c9e('0x1cad')]=!![],_0x48a8e7[_0x3a2c9e('0x826')]['offset']=(_0x48a8e7[_0x3a2c9e('0x826')][_0x3a2c9e('0x115a')]-0x1)*_0x48a8e7[_0x3a2c9e('0x826')][_0x3a2c9e('0x193b')];const _0x3b11c2={'query':_0x48a8e7[_0x3a2c9e('0x826')]};_0x52970e[_0x3a2c9e('0x1a93')][_0x3a2c9e('0x230f')](_0x3a2c9e('0x406')+_0x48a8e7[_0x3a2c9e('0x197c')]['id'],JSON[_0x3a2c9e('0x678')](_0x3b11c2)),_0x48a8e7['promise']=_0x4d27eb[_0x3a2c9e('0x221e')][_0x3a2c9e('0x139e')](_0x48a8e7[_0x3a2c9e('0x826')],_0x2413ac)[_0x3a2c9e('0x1af5')];}function _0x176b4c(_0x54e9d8,_0x417504){const _0x33052c=_0x31cb4a;_0x5b4d86[_0x33052c('0x28e2')]({'controller':_0x33052c('0x49f'),'controllerAs':'vm','templateUrl':_0x1e4a8a,'parent':angular[_0x33052c('0x1ce1')](_0x3f8bd5[_0x33052c('0x13aa')]),'targetEvent':_0x54e9d8,'clickOutsideToClose':!![],'locals':{'queueCampaign':null,'hopper':_0x417504,'hoppers':_0x48a8e7[_0x33052c('0x8f')][_0x33052c('0x2319')],'license':null,'setting':null,'crudPermissions':_0x48a8e7[_0x33052c('0x103e')]}});}function _0xeb5910(_0x6b81df){const _0x553d62=_0x31cb4a;_0x4d27eb[_0x553d62('0xf6a')][_0x553d62('0x1da6')]({'id':_0x6b81df['id']})['$promise'][_0x553d62('0x17e7')](function(){const _0x2e1b53=_0x553d62;_0x49cbdd()[_0x2e1b53('0x5f3')](_0x48a8e7['scheduledCalls'][_0x2e1b53('0x2319')],{'id':_0x6b81df['id']}),_0x48a8e7[_0x2e1b53('0x8f')][_0x2e1b53('0x335')]-=0x1,!_0x48a8e7[_0x2e1b53('0x8f')]['rows'][_0x2e1b53('0x1f73')]&&_0x48a8e7[_0x2e1b53('0x139e')](),_0x214ece['success']({'title':_0x2e1b53('0xac1'),'msg':_0x6b81df[_0x2e1b53('0x2aa')]?'Scheduled\x20call\x20has\x20been\x20deleted!':''});})['catch'](function(_0x5f10ba){const _0x4ccbd1=_0x553d62;if(_0x5f10ba[_0x4ccbd1('0x1457')]&&_0x5f10ba['data'][_0x4ccbd1('0x73e')]&&_0x5f10ba[_0x4ccbd1('0x1457')][_0x4ccbd1('0x73e')][_0x4ccbd1('0x1f73')]){_0x48a8e7['errors']=_0x5f10ba[_0x4ccbd1('0x1457')]['errors']||[{'message':_0x5f10ba[_0x4ccbd1('0x9b6')](),'type':_0x4ccbd1('0xae')}];for(let _0x3a55e1=0x0;_0x3a55e1<_0x5f10ba[_0x4ccbd1('0x1457')]['errors']['length'];_0x3a55e1++){_0x214ece[_0x4ccbd1('0x1db9')]({'title':_0x5f10ba['data']['errors'][_0x3a55e1][_0x4ccbd1('0x412')],'msg':_0x5f10ba[_0x4ccbd1('0x1457')]['errors'][_0x3a55e1][_0x4ccbd1('0x1603')]});}}else _0x214ece[_0x4ccbd1('0x1db9')]({'title':_0x5f10ba['status']?'API:'+_0x5f10ba[_0x4ccbd1('0x11c5')]+_0x4ccbd1('0x16e4')+_0x5f10ba[_0x4ccbd1('0x1833')]:_0x4ccbd1('0xae'),'msg':_0x5f10ba['data']?JSON[_0x4ccbd1('0x678')](_0x5f10ba[_0x4ccbd1('0x1457')][_0x4ccbd1('0x1603')]):_0x5f10ba[_0x4ccbd1('0x1603')]||_0x5f10ba[_0x4ccbd1('0x9b6')]()});});}function _0x1408ac(_0x105778,_0x5f166a){const _0x5d4f28=_0x31cb4a,_0x55f0a9=_0x5b4d86[_0x5d4f28('0x1121')]()[_0x5d4f28('0x24d3')](_0x5d4f28('0x537'))[_0x5d4f28('0x211f')](_0x5d4f28('0x25c5')+_0x5d4f28('0xe9f'))[_0x5d4f28('0x2095')](_0x5d4f28('0xe07'))[_0x5d4f28('0x104f')](_0x5f166a)['ok']('OK')[_0x5d4f28('0x1d47')](_0x5d4f28('0x28a0'));_0x5b4d86[_0x5d4f28('0x28e2')](_0x55f0a9)['then'](function(){_0xeb5910(_0x105778);},function(){console['log']('CANCEL');});}function _0x1c99df(_0x450bfc){return _0x107a13()(_0x450bfc)['isBefore'](_0x107a13()());}let _0x444038=!![],_0x3ab0a8=0x1;_0x3deaea[_0x31cb4a('0x620')](_0x31cb4a('0x3ed'),function(_0x1863c2,_0x120bf2){const _0x1cc829=_0x31cb4a;_0x444038?_0x2d2a51(function(){_0x444038=![];}):(!_0x120bf2&&(_0x3ab0a8=_0x48a8e7[_0x1cc829('0x826')][_0x1cc829('0x115a')]),_0x1863c2!==_0x120bf2&&(_0x48a8e7[_0x1cc829('0x826')]['page']=0x1),!_0x1863c2&&(_0x48a8e7[_0x1cc829('0x826')]['page']=_0x3ab0a8),_0x48a8e7[_0x1cc829('0x139e')]());});}const _0x476807=_0x4b0b19;_0x4d1927[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),'$translate',_0x4376d8('0x212e'),_0x4376d8('0x1885'),'socket','toasty',_0x4376d8('0x858')];function _0x4d1927(_0x4287e1,_0x1146c2,_0x1b1b8c,_0x25a63a,_0x3cfe53,_0x28a7b4,_0x22d2cc,_0x42997e,_0x770051,_0x4b0a28,_0x378683){const _0x3b9615=_0x4376d8,_0x33210d=this;_0x33210d[_0x3b9615('0x221e')]=_0x42997e['getCurrentUser'](),_0x33210d[_0x3b9615('0x1d11')]={},_0x33210d[_0x3b9615('0x1aeb')]={},_0x33210d[_0x3b9615('0x1522')]={'count':0x0,'rows':[]},_0x33210d[_0x3b9615('0x26c4')]={'count':0x0,'rows':[]},_0x33210d['query']={'includeAll':!![],'sort':_0x3b9615('0x1ac6'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x33210d[_0x3b9615('0xfb6')]={'fields':[{'name':'Id','column':'id','type':_0x3b9615('0x7b8')},{'name':_0x3b9615('0x239b'),'column':_0x3b9615('0x239b'),'type':_0x3b9615('0x682'),'options':{'searchFields':['firstName','lastName','email'],'route':{'model':'cmContact','action':'get','params':{'fields':_0x3b9615('0x2030'),'Contact':_0x3b9615('0xe1e'),'nolimit':!![]}},'extraOperators':[_0x3b9615('0x1ed7')],'excludedOperators':[_0x3b9615('0xdaa')]}},{'name':_0x3b9615('0x2854'),'column':_0x3b9615('0x13aa'),'type':_0x3b9615('0x132f'),'options':{'excludedOperators':[_0x3b9615('0x1767'),_0x3b9615('0xdaa')]}},{'name':_0x3b9615('0x51c'),'column':_0x3b9615('0x2bc'),'type':'select','values':[{'id':0x0,'translate':_0x3b9615('0x1f4f')},{'id':0x1,'translate':_0x3b9615('0x2322')}],'options':{'excludedOperators':['$ne']}},{'name':_0x3b9615('0x1874'),'column':_0x3b9615('0x24fd'),'type':_0x3b9615('0x682'),'options':{'table':'i','route':{'model':_0x3b9615('0x221e'),'action':'get','params':{'role':_0x3b9615('0x684'),'fields':_0x3b9615('0x1f7'),'nolimit':!![]}},'searchFields':[_0x3b9615('0xea6'),'name'],'extraOperators':['$substring'],'excludedOperators':[_0x3b9615('0xdaa')]}},{'name':_0x3b9615('0x896'),'column':'SmsAccountId','type':_0x3b9615('0x1227'),'options':{'route':{'model':_0x3b9615('0x221e'),'action':_0x3b9615('0x24c'),'params':{'id':_0x33210d[_0x3b9615('0x221e')]['id'],'nolimit':!![]}}}},{'name':_0x3b9615('0x28a6'),'column':'Tag','type':_0x3b9615('0x1227'),'options':{'route':{'model':_0x3b9615('0x1132'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x3b9615('0x2045')]}},{'name':_0x3b9615('0x1786'),'column':_0x3b9615('0x7c9'),'type':_0x3b9615('0xbd4'),'options':{'excludedOperators':['$ne']}},{'name':'Read','column':_0x3b9615('0x1aad'),'type':_0x3b9615('0x2897'),'values':[{'id':0x1,'translate':_0x3b9615('0x2874')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':[_0x3b9615('0xdaa')]}}]},_0x33210d[_0x3b9615('0x87b')]=_0x3b9615('0x20c9'),_0x33210d['onInit']=_0x270703,_0x33210d['success']=_0x5d9008,_0x33210d[_0x3b9615('0x27ce')]=_0x1dc16a,_0x33210d[_0x3b9615('0x238c')]=_0x539467,_0x33210d['downloadSmsInteraction']=_0x23b64f,_0x33210d[_0x3b9615('0x1377')]=_0x14d5db,_0x33210d['getContactLabel']=_0x4a346d,_0x33210d['getAgentLabel']=_0xb01418,_0x33210d['getSmsAccountLabel']=_0x17333e,_0x33210d[_0x3b9615('0x17b8')]=_0x2cff05,_0x33210d['onSearchBarCollapse']=_0x4a1924,_0x33210d[_0x3b9615('0x1181')]=_0x55b6d3,_0x33210d[_0x3b9615('0x585')]=_0x335ff2;function _0x270703(_0x4baf31,_0x780a54){const _0x517440=_0x3b9615;return _0x33210d[_0x517440('0x1d11')]=_0x4baf31,_0x33210d[_0x517440('0x1aeb')]=_0x780a54,_0x22d2cc[_0x517440('0x221e')][_0x517440('0x1c53')+_0x49cbdd()[_0x517440('0x233c')]('smsAccounts')]({'id':_0x33210d[_0x517440('0x221e')]['id'],'nolimit':!![]})['$promise'][_0x517440('0x17e7')](function(_0x35b639){const _0x479336=_0x517440;return _0x33210d[_0x479336('0x35e')]=_0x35b639||{'count':0x0,'rows':[]},_0x22d2cc['tag'][_0x479336('0x1c53')]()[_0x479336('0x1af5')];})[_0x517440('0x17e7')](function(_0x425f76){const _0x7691b5=_0x517440;_0x33210d[_0x7691b5('0x1522')]=_0x425f76||{'count':0x0,'rows':[]};})[_0x517440('0x17e7')](function(){_0x33210d['quickFilters']=_0x56f7fd();})[_0x517440('0x16df')](function(_0x41f829){console['error'](_0x41f829);})[_0x517440('0x74e')](function(){const _0x14c7f3=_0x517440;let _0x32715b=_0x3cfe53[_0x14c7f3('0x1a93')][_0x14c7f3('0x3b8')]('motion2.home.sms:'+_0x33210d[_0x14c7f3('0x221e')]['id']);if(_0x32715b)try{_0x32715b=JSON['parse'](_0x32715b);if(_0x32715b[_0x14c7f3('0x826')]){_0x33210d[_0x14c7f3('0x826')]=_0x49cbdd()['merge'](_0x33210d['query'],_0x32715b[_0x14c7f3('0x826')]);if(_0x49cbdd()[_0x14c7f3('0x109a')](_0x33210d['smsAccounts'][_0x14c7f3('0x2319')]))_0x33210d[_0x14c7f3('0x826')][_0x14c7f3('0x17fe')]=[];else _0x49cbdd()[_0x14c7f3('0x109a')](_0x33210d['query'][_0x14c7f3('0x17fe')])&&(_0x33210d[_0x14c7f3('0x826')][_0x14c7f3('0x17fe')]=_0x49cbdd()(_0x33210d[_0x14c7f3('0x35e')][_0x14c7f3('0x2319')])[_0x14c7f3('0x787')]('id')[_0x14c7f3('0x1232')]()[_0x14c7f3('0x175b')]());_0x33210d[_0x14c7f3('0x826')][_0x14c7f3('0x1b22')]&&_0x33210d['query'][_0x14c7f3('0x1b22')][_0x14c7f3('0x2567')]('lastMessage')>=0x0&&(_0x33210d[_0x14c7f3('0x826')]=_0x49cbdd()['omit'](_0x33210d[_0x14c7f3('0x826')],_0x14c7f3('0x1b22'))),_0x33210d[_0x14c7f3('0x826')][_0x14c7f3('0x1cad')]=!![],_0x33210d[_0x14c7f3('0x1949')]=_0x33210d[_0x14c7f3('0x826')][_0x14c7f3('0x2483')]?!![]:![];}}catch(_0x3a2ae2){console[_0x14c7f3('0x1db9')](_0x3a2ae2);}else{const _0x26cbcf={'$gte':_0x107a13()()[_0x14c7f3('0x161c')](_0x14c7f3('0x7c7'))['utcOffset'](0x0,!![])[_0x14c7f3('0x1c0d')](),'$lte':_0x107a13()()[_0x14c7f3('0x200e')](_0x14c7f3('0x7c7'))[_0x14c7f3('0x1376')](0x0,!![])['format']()},_0x33a133={'SmsAccountId':_0x49cbdd()[_0x14c7f3('0x787')](_0x33210d[_0x14c7f3('0x35e')][_0x14c7f3('0x2319')],'id'),'createdAt':_0x26cbcf};_0x33210d[_0x14c7f3('0x826')]=_0x49cbdd()['merge'](_0x33210d[_0x14c7f3('0x826')],_0x33a133);}_0x770051['on']('smsInteraction:save',_0x3a9cfb),_0x770051['on'](_0x14c7f3('0x2828'),_0x3a9cfb),_0x770051['on'](_0x14c7f3('0x918'),_0x1cba03),_0x770051['on']('smsMessage:save',_0x4e5067),_0x770051['on']('smsMessage:update',_0x4e5067),_0x770051['on'](_0x14c7f3('0x1387'),_0x373cf4),_0x770051['on'](_0x14c7f3('0x1af6'),_0x4357dd),_0x1dc16a(_0x33210d[_0x14c7f3('0x826')][_0x14c7f3('0x115a')]);});}function _0x56f7fd(){const _0x3c67d9=_0x3b9615;return[{'name':_0x3c67d9('0x1786'),'key':_0x3c67d9('0x7c9'),'type':'date','label':_0x3c67d9('0x1ee1')},{'name':_0x3c67d9('0xd08'),'key':_0x3c67d9('0xf64'),'type':_0x3c67d9('0x2897'),'label':_0x3c67d9('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x3c67d9('0x263')},{'value':0x1,'translate':_0x3c67d9('0x2874')},{'value':null,'translate':_0x3c67d9('0x9cf')}]},{'name':_0x3c67d9('0x51c'),'key':_0x3c67d9('0x2bc'),'type':_0x3c67d9('0x2897'),'label':_0x3c67d9('0x12f2'),'customOptions':[{'value':0x0,'translate':_0x3c67d9('0x1f4f')},{'value':0x1,'translate':_0x3c67d9('0x2322')},{'value':null,'translate':_0x3c67d9('0x9cf')}]},{'name':_0x3c67d9('0x896'),'key':'SmsAccountId','type':_0x3c67d9('0x1227'),'label':_0x3c67d9('0x27da'),'options':_0x33210d['smsAccounts'][_0x3c67d9('0x2319')],'clearAll':![]},{'name':_0x3c67d9('0x1874'),'key':_0x3c67d9('0x5e5'),'type':'select','label':_0x3c67d9('0x351'),'customOptions':[{'value':_0x33210d['user']['id'],'translate':_0x3c67d9('0x2422')},{'value':_0x3c67d9('0x9bb'),'translate':_0x3c67d9('0x154d')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x3c67d9('0xe16'),'key':'tag','type':_0x3c67d9('0x1227'),'label':'DASHBOARDS.SELECT_TAG','options':_0x33210d[_0x3c67d9('0x1522')][_0x3c67d9('0x2319')],'placeholder':_0x3c67d9('0x21aa')}];}function _0x5d9008(_0x5719c4){const _0x34ffed=_0x3b9615;_0x33210d['searchInProgress']=![],_0x33210d[_0x34ffed('0x26c4')]=_0x5719c4||{'count':0x0,'rows':[]};for(let _0x5e95a8=0x0;_0x5e95a8<_0x33210d[_0x34ffed('0x26c4')]['rows'][_0x34ffed('0x1f73')];_0x5e95a8+=0x1){_0x4a346d(_0x33210d[_0x34ffed('0x26c4')][_0x34ffed('0x2319')][_0x5e95a8]);}}function _0x1dc16a(_0x2b7735){const _0x1516f1=_0x3b9615;_0x33210d[_0x1516f1('0x1bde')]=!![];!_0x2b7735&&(_0x33210d[_0x1516f1('0x826')][_0x1516f1('0x115a')]=0x1);_0x33210d[_0x1516f1('0x826')][_0x1516f1('0xf19')]=(_0x33210d['query']['page']-0x1)*_0x33210d[_0x1516f1('0x826')]['limit'];let _0x174f2f=_0x3cfe53[_0x1516f1('0x1a93')][_0x1516f1('0x3b8')](_0x1516f1('0x27d9')+_0x33210d[_0x1516f1('0x221e')]['id']);_0x174f2f=_0x174f2f?JSON[_0x1516f1('0x1f0a')](_0x174f2f):{},_0x174f2f[_0x1516f1('0x826')]=_0x33210d[_0x1516f1('0x826')],_0x3cfe53[_0x1516f1('0x1a93')][_0x1516f1('0x230f')](_0x1516f1('0x27d9')+_0x33210d['user']['id'],JSON[_0x1516f1('0x678')](_0x174f2f)),_0x33210d[_0x1516f1('0x1691')]=_0x22d2cc[_0x1516f1('0x17a8')][_0x1516f1('0x1c53')](_0x33210d[_0x1516f1('0x826')],_0x5d9008)[_0x1516f1('0x1af5')];}function _0x539467(_0x5bc611,_0x1a76c3){const _0x51a732=_0x3b9615;_0x4287e1['$parent']['vm'][_0x51a732('0x3a2')](_0x51a732('0x2cd'),_0x1a76c3);}function _0x23b64f(_0x2142c8,_0x55a3ed,_0x3ad15b){const _0x8402c7=_0x3b9615;_0x22d2cc[_0x8402c7('0x17a8')][_0x8402c7('0x1244')]({'id':_0x55a3ed['id'],'attachments':_0x3ad15b})[_0x8402c7('0x1af5')]['then'](function(_0x516f63){const _0x498357=_0x8402c7,_0x39265e=[_0x516f63[_0x498357('0x3ca')]],_0x5894d2=_0x498357('0x21af')+_0x55a3ed['id']+_0x498357('0x71b'),_0x3f5b90=new Blob(_0x39265e,{'type':_0x516f63[_0x498357('0x412')]}),_0x38c6cc=window[_0x498357('0x2be')][_0x498357('0x68d')]('a');_0x38c6cc['setAttribute'](_0x498357('0x448'),URL[_0x498357('0x28ce')](_0x3f5b90)),_0x38c6cc['setAttribute'](_0x498357('0x1244'),_0x5894d2),document[_0x498357('0x13aa')][_0x498357('0x128c')](_0x38c6cc),_0x38c6cc[_0x498357('0x20d4')]();})['catch'](function(_0x114928){const _0x220deb=_0x8402c7;if(_0x114928[_0x220deb('0x1457')]&&_0x114928[_0x220deb('0x1457')][_0x220deb('0x73e')]&&_0x114928[_0x220deb('0x1457')][_0x220deb('0x73e')][_0x220deb('0x1f73')])for(let _0x1cbe68=0x0;_0x1cbe68<_0x114928[_0x220deb('0x1457')][_0x220deb('0x73e')][_0x220deb('0x1f73')];_0x1cbe68+=0x1){_0x4b0a28[_0x220deb('0x1db9')]({'title':_0x114928['data'][_0x220deb('0x73e')][_0x1cbe68]['type'],'msg':_0x114928[_0x220deb('0x1457')][_0x220deb('0x73e')][_0x1cbe68][_0x220deb('0x1603')]});}else _0x4b0a28[_0x220deb('0x1db9')]({'title':_0x114928['status']?_0x220deb('0x14f7')+_0x114928[_0x220deb('0x11c5')]+_0x220deb('0x16e4')+_0x114928[_0x220deb('0x1833')]:'downloadSmsInteraction','msg':_0x114928[_0x220deb('0x1457')]?JSON[_0x220deb('0x678')](_0x114928[_0x220deb('0x1457')][_0x220deb('0x1603')]):_0x114928['toString']()});});}function _0x14d5db(_0x5bdbe4,_0x22938f){const _0x4d604b=_0x3b9615,_0x872d18=_0x33210d[_0x4d604b('0x221e')][_0x4d604b('0x118a')]||_0x33210d['user'][_0x4d604b('0x2764')]||_0x33210d['user'][_0x4d604b('0x1467')]||_0x33210d[_0x4d604b('0x221e')][_0x4d604b('0x105e')]||_0x33210d[_0x4d604b('0x221e')][_0x4d604b('0x1d98')],_0x4d7d56=!_0x22938f[_0x4d604b('0x896')][_0x4d604b('0xb20')];_0x1b1b8c[_0x4d604b('0x28e2')]({'controller':_0x4d604b('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular['element'](_0x25a63a[_0x4d604b('0x13aa')]),'clickOutsideToClose':_0x4d7d56,'escapeToClose':_0x4d7d56,'onRemoving':function(){const _0x3f1990=_0x4d604b;_0x33210d['user']&&_0x22938f[_0x3f1990('0x896')][_0x3f1990('0xb20')]&&!_0x872d18&&_0x22d2cc[_0x3f1990('0x221e')][_0x3f1990('0xc57')]({'id':_0x33210d[_0x3f1990('0x221e')]['id']})[_0x3f1990('0x1af5')][_0x3f1990('0x16df')](function(_0x5d10ae){const _0x15f8a3=_0x3f1990;console[_0x15f8a3('0x1db9')](_0x5d10ae);});},'locals':{'user':_0x33210d[_0x4d604b('0x221e')],'channel':_0x4d604b('0x2cd'),'interaction':_0x22938f}});}function _0x4a346d(_0x190cbe){const _0x31b20d=_0x3b9615;_0x190cbe['Contact']?(_0x190cbe[_0x31b20d('0x192c')]=(_0x190cbe[_0x31b20d('0x239b')][_0x31b20d('0x1761')]||'')+'\x20'+(_0x190cbe[_0x31b20d('0x239b')][_0x31b20d('0x8d6')]||''),_0x190cbe[_0x31b20d('0x1720')]=_0x190cbe[_0x31b20d('0x239b')][_0x31b20d('0xa4f')]):_0x190cbe[_0x31b20d('0x192c')]=_0x28a7b4[_0x31b20d('0x1acc')](_0x31b20d('0x30a'));}function _0xb01418(_0x1f0ee9){const _0x4f44be=_0x3b9615;if(_0x1f0ee9['UserId'])return _0x1f0ee9['UserId']===_0x33210d[_0x4f44be('0x221e')]['id']?_0x28a7b4['instant'](_0x4f44be('0x2422')):_0x1f0ee9['Owner'][_0x4f44be('0xea6')]+'\x20<'+_0x1f0ee9[_0x4f44be('0xe49')]['internal']+'>';return _0x28a7b4[_0x4f44be('0x1acc')](_0x4f44be('0x154d'));}function _0x17333e(_0x2b66fd){const _0x47b80a=_0x3b9615;if(_0x2b66fd['Account'])return _0x2b66fd[_0x47b80a('0x896')]['key'];return _0x28a7b4[_0x47b80a('0x1acc')]('DASHBOARDS.UNKNOWN');}function _0x2cff05(_0x352a8e,_0x546eec){const _0x11253e=_0x3b9615;_0x1b1b8c['show']({'controller':_0x11253e('0x2455'),'controllerAs':'vm','templateUrl':_0x2dfbc2,'parent':angular[_0x11253e('0x1ce1')](_0x25a63a[_0x11253e('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x546eec,'message':{},'type':_0x11253e('0x1b39'),'interaction':{}},'fullscreen':!![]})[_0x11253e('0x17e7')](function(_0x14f164){const _0x11e252=_0x11253e;if(_0x14f164){if(_0x14f164[_0x11e252('0x1603')]&&_0x14f164[_0x11e252('0x1603')][_0x11e252('0xa8b')]){const _0x46fd23={'channel':_0x11e252('0x2cd'),'account':_0x546eec,'message':_0x14f164[_0x11e252('0x1603')],'contact':_0x14f164['contact']};_0x378683[_0x11e252('0xd62')](_0x46fd23);}else{const _0x1b4ecc=_0x14f164;return _0x22d2cc[_0x11e252('0x1060')][_0x11e252('0x13b7')]({'id':_0x546eec['id']},_0x1b4ecc)[_0x11e252('0x1af5')]['then'](function(_0x234979){const _0x37561b=_0x11e252;_0x4b0a28[_0x37561b('0x130d')]({'title':'Message\x20properly\x20sent!','msg':_0x37561b('0x2235')}),_0x4287e1[_0x37561b('0x178c')]['vm']['addInteractionTab'](_0x37561b('0x2cd'),_0x234979);})[_0x11e252('0x16df')](function(_0x4a6ecd){const _0x344b82=_0x11e252;if(_0x4a6ecd[_0x344b82('0x1457')]&&_0x4a6ecd[_0x344b82('0x1457')]['errors']&&_0x4a6ecd[_0x344b82('0x1457')][_0x344b82('0x73e')][_0x344b82('0x1f73')])for(let _0x3c7c07=0x0;_0x3c7c07<_0x4a6ecd[_0x344b82('0x1457')][_0x344b82('0x73e')][_0x344b82('0x1f73')];_0x3c7c07++){_0x4b0a28[_0x344b82('0x1db9')]({'title':_0x4a6ecd[_0x344b82('0x1457')][_0x344b82('0x73e')][_0x3c7c07][_0x344b82('0x412')],'msg':_0x4a6ecd['data'][_0x344b82('0x73e')][_0x3c7c07][_0x344b82('0x1603')]});}else _0x4b0a28['error']({'title':_0x4a6ecd['status']?_0x344b82('0x14f7')+_0x4a6ecd[_0x344b82('0x11c5')]+_0x344b82('0x16e4')+_0x4a6ecd['statusText']:_0x344b82('0x2087'),'msg':_0x4a6ecd[_0x344b82('0x1457')]?JSON['stringify'](_0x4a6ecd['data'][_0x344b82('0x1603')]):_0x4a6ecd[_0x344b82('0x1603')]||_0x4a6ecd['toString']()});});}}});}function _0x373cf4(_0x4a862c){const _0x1d830a=_0x3b9615;let _0x41c415;const _0x4d36bc=_0x49cbdd()['find'](_0x33210d[_0x1d830a('0x26c4')][_0x1d830a('0x2319')],{'id':_0x4a862c[_0x1d830a('0x9f5')]});_0x4d36bc&&_0x4d36bc[_0x1d830a('0x15d4')]&&(_0x41c415=_0x49cbdd()[_0x1d830a('0xe8e')](_0x4d36bc['Users'],{'id':_0x4a862c[_0x1d830a('0x5e5')]}),!_0x41c415&&_0x4d36bc[_0x1d830a('0x15d4')][_0x1d830a('0x269f')]({'id':_0x4a862c['UserId']}));}function _0x4357dd(_0x3c976f){const _0x521e39=_0x3b9615,_0x5e4423=_0x49cbdd()[_0x521e39('0xe8e')](_0x33210d['smsInteractions'][_0x521e39('0x2319')],{'id':_0x3c976f['SmsInteractionId']});_0x5e4423&&_0x5e4423[_0x521e39('0x15d4')]&&_0x49cbdd()[_0x521e39('0x5f3')](_0x5e4423[_0x521e39('0x15d4')],{'id':_0x3c976f['UserId']});}function _0x3a9cfb(_0x32769b){const _0x3617c9=_0x3b9615;if(_0x32769b){const _0x5613c6=_0x49cbdd()['find'](_0x33210d[_0x3617c9('0x26c4')]['rows'],{'id':_0x32769b['id']});if(_0x5613c6){_0x5613c6['Users']=[];_0x32769b[_0x3617c9('0x2bc')]&&(_0x5613c6[_0x3617c9('0x1aad')]=0x0);if(_0x33210d[_0x3617c9('0x826')]['sort']){const _0x44af12=_0x49cbdd()[_0x3617c9('0x818')](_0x33210d[_0x3617c9('0x826')][_0x3617c9('0x1b22')],'-')?_0x3617c9('0x187b'):'asc';_0x33210d[_0x3617c9('0x26c4')][_0x3617c9('0x2319')]=_0x49cbdd()['orderBy'](_0x33210d[_0x3617c9('0x26c4')][_0x3617c9('0x2319')],_0x49cbdd()[_0x3617c9('0x1ee5')](_0x33210d[_0x3617c9('0x826')][_0x3617c9('0x1b22')],'-'),_0x44af12);}_0x49cbdd()['merge'](_0x5613c6,_0x49cbdd()[_0x3617c9('0x230a')](_0x32769b,_0x49cbdd()[_0x3617c9('0x1c0f')](_0x5613c6)));}else _0x1dc16a(_0x33210d[_0x3617c9('0x826')][_0x3617c9('0x115a')]);}}function _0x1cba03(_0x1d6212){const _0xeed7b=_0x3b9615;if(_0x1d6212){const _0x39ae76=_0x49cbdd()[_0xeed7b('0xe8e')](_0x33210d[_0xeed7b('0x26c4')]['rows'],{'id':_0x1d6212['id']});_0x39ae76&&(_0x39ae76[_0xeed7b('0x28a6')]=_0x1d6212[_0xeed7b('0x1522')]||[],_0x49cbdd()[_0xeed7b('0x1ced')](_0x39ae76,_0x49cbdd()[_0xeed7b('0x230a')](_0x1d6212,_0x49cbdd()[_0xeed7b('0x1c0f')](_0x39ae76))));}}function _0x4e5067(_0x2c806f){const _0x5db9ed=_0x3b9615;if(_0x2c806f&&!_0x2c806f[_0x5db9ed('0x1c8e')]){const _0x1738c2=_0x49cbdd()[_0x5db9ed('0xe8e')](_0x33210d[_0x5db9ed('0x26c4')][_0x5db9ed('0x2319')],{'id':_0x2c806f['SmsInteractionId']});if(_0x1738c2){const _0x4aa511=_0x49cbdd()[_0x5db9ed('0xe8e')](_0x1738c2[_0x5db9ed('0xd08')],{'id':_0x2c806f['id']});_0x4aa511?_0x49cbdd()[_0x5db9ed('0x1ced')](_0x4aa511,_0x49cbdd()[_0x5db9ed('0x230a')](_0x2c806f,_0x49cbdd()[_0x5db9ed('0x1c0f')](_0x4aa511))):(_0x49cbdd()['isNil'](_0x1738c2[_0x5db9ed('0xd08')])&&(_0x1738c2['Messages']={'count':0x0}),!_0x2c806f[_0x5db9ed('0xf64')]&&(_0x1738c2[_0x5db9ed('0xd08')][_0x5db9ed('0x335')]+=0x1));}}}function _0x4a1924(){_0x33210d['isSearchBarVisible']=![];}function _0x55b6d3(){_0x33210d['isSearchBarVisible']=!![];}function _0x335ff2(){const _0x336772=_0x3b9615;_0x33210d['isSearchBarVisible']=![],_0x1b1b8c[_0x336772('0x28e2')]({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular['element'](_0x25a63a['body']),'clickOutsideToClose':![],'locals':{'color':_0x33210d[_0x336772('0x87b')],'fields':_0x33210d['advancedSearch']['fields'],'storagePath':_0x336772('0x26e')},'fullscreen':!![]})['then'](function(_0x3f81c1){const _0x3e276f=_0x336772;_0x33210d['query'][_0x3e276f('0xfba')]=_0x3f81c1===![]?undefined:_0x3f81c1;if(_0x33210d['query'][_0x3e276f('0xfba')]||_0x3f81c1===![])_0x1dc16a();})[_0x336772('0x16df')](function(_0x1275b2){const _0x2b61ec=_0x336772;_0x4b0a28[_0x2b61ec('0x1db9')]({'title':_0x2b61ec('0x1288'),'msg':_0x1275b2['data']?JSON[_0x2b61ec('0x678')](_0x1275b2['data'][_0x2b61ec('0x1603')]):_0x1275b2[_0x2b61ec('0x9b6')]()});});}let _0x930a8d=!![],_0x50bc68=0x1;_0x4287e1[_0x3b9615('0x620')]('vm.query.filter',function(_0x3eb10e,_0x3c1403){const _0x6523fb=_0x3b9615;_0x930a8d?_0x1146c2(function(){_0x930a8d=![];}):(!_0x3c1403&&(_0x50bc68=_0x33210d['query'][_0x6523fb('0x115a')]),_0x3eb10e!==_0x3c1403&&(_0x33210d[_0x6523fb('0x826')][_0x6523fb('0x115a')]=0x1),!_0x3eb10e&&(_0x33210d['query']['page']=_0x50bc68),_0x1dc16a(_0x33210d[_0x6523fb('0x826')]['page']));}),_0x4287e1[_0x3b9615('0x207c')](_0x3b9615('0x2b4'),function(){const _0x1ffa6b=_0x3b9615;_0x770051[_0x1ffa6b('0x1c65')]('smsMessage:save'),_0x770051['removeAllListeners']('smsMessage:update'),_0x770051[_0x1ffa6b('0x1c65')]('smsInteraction:save'),_0x770051[_0x1ffa6b('0x1c65')](_0x1ffa6b('0x918')),_0x770051['removeAllListeners'](_0x1ffa6b('0x2828')),_0x770051[_0x1ffa6b('0x1c65')](_0x1ffa6b('0x1387')),_0x770051[_0x1ffa6b('0x1c65')](_0x1ffa6b('0x1af6'));});}const _0x6afe5c=_0x4d1927,_0x5f477a=_0x4cf2bc['p']+_0x4376d8('0x1224');_0x340ebc[_0x4376d8('0x1b9c')]=['$mdDialog',_0x4376d8('0x26ca'),'api',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x198f'),_0x4376d8('0x668'),_0x4376d8('0xef1')];function _0x340ebc(_0x374a8a,_0x3f001f,_0x282eb8,_0x5cdac0,_0x181cc3,_0x22f00e,_0x2c0283,_0x34e41c){const _0x4b9e4c=_0x4376d8,_0x45c462=this;_0x45c462['currentUser']=_0x181cc3[_0x4b9e4c('0x2831')](),_0x45c462['voiceCalls']={},_0x45c462[_0x4b9e4c('0x23c3')]=_0x4b9e4c('0x6d9'),_0x45c462[_0x4b9e4c('0x826')]={'UserId':_0x45c462[_0x4b9e4c('0x197c')]['id'],'fields':_0x4b9e4c('0x3a7'),'sort':_0x4b9e4c('0x1ac6'),'limit':0xa,'page':0x1,'type':null},_0x45c462[_0x4b9e4c('0x130d')]=_0x1a68f5,_0x45c462[_0x4b9e4c('0x19ff')]=_0x263cfe,_0x45c462[_0x4b9e4c('0xdf0')]=_0x2e67b2,_0x45c462[_0x4b9e4c('0x2351')]=_0x22d381,_0x45c462[_0x4b9e4c('0x8ea')]=_0x479419,_0x45c462[_0x4b9e4c('0x1181')]=_0x3e3978;function _0x2e67b2(){const _0x309feb=_0x4b9e4c;return _0x282eb8[_0x309feb('0x1132')][_0x309feb('0x1c53')]()[_0x309feb('0x1af5')][_0x309feb('0x17e7')](function(_0x1b8154){const _0x45aae4=_0x309feb;_0x45c462[_0x45aae4('0x1522')]=_0x1b8154||{'count':0x0,'rows':[]};})[_0x309feb('0x17e7')](function(){const _0xa35fa3=_0x309feb;_0x45c462[_0xa35fa3('0x137d')]=_0x5699d9();})[_0x309feb('0x16df')](function(_0x139586){const _0x58d5f0=_0x309feb;_0x5cdac0[_0x58d5f0('0x1db9')]({'title':'Init\x20error','msg':_0x139586[_0x58d5f0('0x1457')]?JSON[_0x58d5f0('0x678')](_0x139586[_0x58d5f0('0x1457')][_0x58d5f0('0x1603')]):_0x139586[_0x58d5f0('0x1603')]||_0x139586[_0x58d5f0('0x9b6')]()}),_0x45c462['tags']={'count':0x0,'rows':[]};})[_0x309feb('0x74e')](function(){const _0x3ff9fd=_0x309feb;let _0x460db3=_0x22f00e[_0x3ff9fd('0x1a93')][_0x3ff9fd('0x3b8')](_0x3ff9fd('0x23ec')+_0x45c462['currentUser']['id']);if(_0x460db3)try{_0x460db3=JSON[_0x3ff9fd('0x1f0a')](_0x460db3),_0x460db3[_0x3ff9fd('0x826')]&&(_0x45c462[_0x3ff9fd('0x826')]=_0x49cbdd()['omit'](_0x460db3[_0x3ff9fd('0x826')],'filter'));}catch(_0x349a96){console[_0x3ff9fd('0x1db9')](_0x349a96);}else{const _0x1e19b1={'$gte':_0x107a13()()[_0x3ff9fd('0x161c')](_0x3ff9fd('0x7c7'))['utcOffset'](0x0,!![])[_0x3ff9fd('0x1c0d')](),'$lte':_0x107a13()()['endOf']('month')['utcOffset'](0x0,!![])[_0x3ff9fd('0x1c0d')]()};_0x45c462[_0x3ff9fd('0x826')][_0x3ff9fd('0x7c9')]=_0x1e19b1;}_0x263cfe();});}function _0x5699d9(){const _0x56a1f9=_0x4b9e4c;return[{'name':'Start\x20Date','key':_0x56a1f9('0x7c9'),'type':'date','label':_0x56a1f9('0x1ee1')},{'name':'Type','key':_0x56a1f9('0x412'),'type':'select','label':_0x56a1f9('0x65b'),'customOptions':[{'value':_0x56a1f9('0xe3e'),'translate':_0x56a1f9('0x1353')},{'value':_0x56a1f9('0x1e77'),'translate':_0x56a1f9('0x108c')},{'value':_0x56a1f9('0x1ade'),'translate':'VOICE.OUTBOUND'},{'value':_0x56a1f9('0x1646'),'translate':'VOICE.DIALER'},{'value':null,'translate':'VOICE.ALL'}]}];}function _0x1a68f5(_0x2ef31c){const _0x379659=_0x4b9e4c;_0x45c462[_0x379659('0x1bde')]=![],_0x45c462[_0x379659('0x6d9')]=_0x2ef31c||{'count':0x0,'rows':[]};}function _0x263cfe(){const _0x2128d2=_0x4b9e4c;_0x45c462['searchInProgress']=!![],_0x45c462[_0x2128d2('0x826')][_0x2128d2('0xf19')]=(_0x45c462[_0x2128d2('0x826')][_0x2128d2('0x115a')]-0x1)*_0x45c462[_0x2128d2('0x826')][_0x2128d2('0x193b')];const _0x3984b1={'query':_0x45c462['query']};_0x22f00e[_0x2128d2('0x1a93')][_0x2128d2('0x230f')](_0x2128d2('0x23ec')+_0x45c462['currentUser']['id'],JSON[_0x2128d2('0x678')](_0x3984b1)),_0x45c462[_0x2128d2('0x1691')]=_0x282eb8[_0x2128d2('0xf5')][_0x2128d2('0x1c53')](_0x45c462[_0x2128d2('0x826')],_0x1a68f5)[_0x2128d2('0x1af5')];}function _0x22d381(_0x198d7f){const _0x428c01=_0x4b9e4c;_0x374a8a['show']({'controller':_0x428c01('0x1049'),'controllerAs':'vm','templateUrl':_0x5f477a,'parent':angular['element'](_0x3f001f[_0x428c01('0x13aa')]),'clickOutsideToClose':!![],'locals':{'call':_0x198d7f}});}function _0x479419(){const _0x2a6a52=_0x4b9e4c;_0x45c462[_0x2a6a52('0x826')][_0x2a6a52('0x2483')]=undefined,_0x45c462['isSearchBarVisible']=![];}function _0x3e3978(){const _0x12d9f4=_0x4b9e4c;_0x45c462[_0x12d9f4('0x1949')]=!![];}let _0x185c91=!![],_0x4afed9=0x1;_0x2c0283[_0x4b9e4c('0x620')](_0x4b9e4c('0x3ed'),function(_0x1522dd,_0x171e31){const _0x4082c9=_0x4b9e4c;_0x185c91?_0x34e41c(function(){_0x185c91=![];}):(!_0x171e31&&(_0x4afed9=_0x45c462[_0x4082c9('0x826')][_0x4082c9('0x115a')]),_0x1522dd!==_0x171e31&&(_0x45c462[_0x4082c9('0x826')][_0x4082c9('0x115a')]=0x1),!_0x1522dd&&(_0x45c462['query'][_0x4082c9('0x115a')]=_0x4afed9),_0x45c462['getVoiceCalls']());});}const _0x14cf1e=_0x340ebc;_0x1a84b2['$inject']=[_0x4376d8('0x14f6'),'call'];function _0x1a84b2(_0x2c1953,_0x3db7f7){const _0x43c645=_0x4376d8,_0x1a8fb3=this;_0x1a8fb3['call']=_0x3db7f7;function _0x41f8ea(){const _0x5da79f=a0_0xd29e;_0x2c1953[_0x5da79f('0x212a')]();}_0x1a8fb3[_0x43c645('0x136e')]=_0x41f8ea;}const _0x1b9afd=_0x1a84b2;_0x250858[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x25aa'),'toasty','draftManager'];function _0x250858(_0x4ec287,_0x195b2b,_0x236b1b,_0x42dd44,_0x1f3e78,_0x153c0b,_0x21ae50,_0x1ee557,_0x5ab38f,_0x683223,_0x31c3f9){const _0x367602=_0x4376d8,_0x13fd6c=this;_0x13fd6c['user']=_0x1ee557[_0x367602('0x2831')](),_0x13fd6c['license']={},_0x13fd6c[_0x367602('0x1aeb')]={},_0x13fd6c['tags']={'count':0x0,'rows':[]},_0x13fd6c[_0x367602('0x254')]={'count':0x0,'rows':[]},_0x13fd6c[_0x367602('0x826')]={'includeAll':!![],'sort':_0x367602('0x1ac6'),'limit':0xa,'page':0x1,'read':null,'closed':null},_0x13fd6c[_0x367602('0xfb6')]={'fields':[{'name':'Id','column':'id','type':_0x367602('0x7b8')},{'name':_0x367602('0x239b'),'column':_0x367602('0x239b'),'type':_0x367602('0x682'),'options':{'searchFields':[_0x367602('0x1761'),_0x367602('0x8d6'),_0x367602('0x822')],'route':{'model':_0x367602('0x1d2a'),'action':_0x367602('0x1c53'),'params':{'fields':'id,firstName,lastName,email','Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x367602('0x1ed7')],'excludedOperators':[_0x367602('0xdaa')]}},{'name':_0x367602('0x2854'),'column':_0x367602('0x13aa'),'type':_0x367602('0x132f'),'options':{'excludedOperators':['$eq',_0x367602('0xdaa')]}},{'name':_0x367602('0x51c'),'column':'closed','type':_0x367602('0x2897'),'values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x367602('0x2322')}],'options':{'excludedOperators':['$ne']}},{'name':_0x367602('0x1874'),'column':_0x367602('0x24fd'),'type':_0x367602('0x682'),'options':{'table':'i','route':{'model':_0x367602('0x221e'),'action':_0x367602('0x1c53'),'params':{'role':_0x367602('0x684'),'fields':_0x367602('0x1f7'),'nolimit':!![]}},'searchFields':['fullname',_0x367602('0x2aa')],'extraOperators':[_0x367602('0x1ed7')],'excludedOperators':[_0x367602('0xdaa')]}},{'name':_0x367602('0x896'),'column':'WhatsappAccountId','type':_0x367602('0x1227'),'options':{'route':{'model':_0x367602('0x221e'),'action':_0x367602('0x79c'),'params':{'id':_0x13fd6c[_0x367602('0x221e')]['id'],'nolimit':!![]}}}},{'name':'Tags','column':_0x367602('0xe16'),'type':_0x367602('0x1227'),'options':{'route':{'model':'tag','action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x367602('0x2045')]}},{'name':_0x367602('0x1786'),'column':_0x367602('0x7c9'),'type':_0x367602('0xbd4'),'options':{'excludedOperators':['$ne']}},{'name':'Read','column':_0x367602('0x1aad'),'type':_0x367602('0x2897'),'values':[{'id':0x1,'translate':_0x367602('0x2874')},{'id':0x0,'translate':_0x367602('0x263')}],'options':{'excludedOperators':[_0x367602('0xdaa')]}}]},_0x13fd6c['sectionColor']=_0x367602('0x9c7'),_0x13fd6c[_0x367602('0xdf0')]=_0x416675,_0x13fd6c[_0x367602('0x130d')]=_0x221a5d,_0x13fd6c[_0x367602('0x24b4')]=_0x49f49,_0x13fd6c[_0x367602('0x1a64')]=_0x592eb1,_0x13fd6c['downloadWhatsappInteraction']=_0x262d7e,_0x13fd6c[_0x367602('0x1377')]=_0x24ec8d,_0x13fd6c[_0x367602('0x422')]=_0x44698f,_0x13fd6c[_0x367602('0x266f')]=_0x45d156,_0x13fd6c['getWhatsappAccountLabel']=_0x4d36b6,_0x13fd6c['composeWhatsappInteraction']=_0x5e8030,_0x13fd6c[_0x367602('0x8ea')]=_0xec2807,_0x13fd6c[_0x367602('0x1181')]=_0x309117,_0x13fd6c['openAdvancedSearch']=_0x5a2cbb;function _0x416675(_0x35b54e,_0x192570){const _0x4caa3b=_0x367602;return _0x13fd6c[_0x4caa3b('0x1d11')]=_0x35b54e,_0x13fd6c[_0x4caa3b('0x1aeb')]=_0x192570,_0x21ae50[_0x4caa3b('0x221e')][_0x4caa3b('0x1c53')+_0x49cbdd()[_0x4caa3b('0x233c')]('whatsappAccounts')]({'id':_0x13fd6c[_0x4caa3b('0x221e')]['id'],'nolimit':!![]})['$promise'][_0x4caa3b('0x17e7')](function(_0x52afcd){const _0x37ca2c=_0x4caa3b;return _0x13fd6c[_0x37ca2c('0x58b')]=_0x52afcd||{'count':0x0,'rows':[]},_0x21ae50[_0x37ca2c('0x1132')][_0x37ca2c('0x1c53')]()[_0x37ca2c('0x1af5')];})[_0x4caa3b('0x17e7')](function(_0x8b6f3a){const _0x243f9d=_0x4caa3b;_0x13fd6c[_0x243f9d('0x1522')]=_0x8b6f3a||{'count':0x0,'rows':[]};})[_0x4caa3b('0x17e7')](function(){_0x13fd6c['quickFilters']=_0x403ea1();})[_0x4caa3b('0x16df')](function(_0x34596a){console['error'](_0x34596a);})['finally'](function(){const _0x34f099=_0x4caa3b;let _0x5061ff=_0x1f3e78[_0x34f099('0x1a93')][_0x34f099('0x3b8')](_0x34f099('0x22be')+_0x13fd6c[_0x34f099('0x221e')]['id']);if(_0x5061ff)try{_0x5061ff=JSON[_0x34f099('0x1f0a')](_0x5061ff);if(_0x5061ff[_0x34f099('0x826')]){_0x13fd6c[_0x34f099('0x826')]=_0x49cbdd()[_0x34f099('0x1ced')](_0x13fd6c[_0x34f099('0x826')],_0x5061ff['query']);if(_0x49cbdd()[_0x34f099('0x109a')](_0x13fd6c[_0x34f099('0x58b')][_0x34f099('0x2319')]))_0x13fd6c['query'][_0x34f099('0x10d7')]=[];else _0x49cbdd()[_0x34f099('0x109a')](_0x13fd6c[_0x34f099('0x826')]['WhatsappAccountId'])&&(_0x13fd6c[_0x34f099('0x826')][_0x34f099('0x10d7')]=_0x49cbdd()(_0x13fd6c[_0x34f099('0x58b')][_0x34f099('0x2319')])[_0x34f099('0x787')]('id')[_0x34f099('0x1232')]()[_0x34f099('0x175b')]());_0x13fd6c[_0x34f099('0x826')]['sort']&&_0x13fd6c['query'][_0x34f099('0x1b22')][_0x34f099('0x2567')](_0x34f099('0x1723'))>=0x0&&(_0x13fd6c[_0x34f099('0x826')]=_0x49cbdd()[_0x34f099('0x15c3')](_0x13fd6c[_0x34f099('0x826')],_0x34f099('0x1b22'))),_0x13fd6c[_0x34f099('0x826')][_0x34f099('0x1cad')]=!![],_0x13fd6c['isSearchBarVisible']=_0x13fd6c[_0x34f099('0x826')]['filter']?!![]:![];}}catch(_0x4da509){console[_0x34f099('0x1db9')](_0x4da509);}else{const _0x2bffc8={'$gte':_0x107a13()()[_0x34f099('0x161c')]('month')[_0x34f099('0x1376')](0x0,!![])['format'](),'$lte':_0x107a13()()[_0x34f099('0x200e')](_0x34f099('0x7c7'))[_0x34f099('0x1376')](0x0,!![])[_0x34f099('0x1c0d')]()},_0x200825={'WhatsappAccountId':_0x49cbdd()['map'](_0x13fd6c[_0x34f099('0x58b')][_0x34f099('0x2319')],'id'),'createdAt':_0x2bffc8};_0x13fd6c['query']=_0x49cbdd()[_0x34f099('0x1ced')](_0x13fd6c['query'],_0x200825);}_0x5ab38f['on'](_0x34f099('0xa11'),_0x5d0273),_0x5ab38f['on'](_0x34f099('0x57d'),_0x5d0273),_0x5ab38f['on'](_0x34f099('0x228b'),_0x3ef8ce),_0x5ab38f['on']('whatsappMessage:save',_0x5bb4f5),_0x5ab38f['on'](_0x34f099('0x1b4f'),_0x5bb4f5),_0x5ab38f['on'](_0x34f099('0x444'),_0x515945),_0x5ab38f['on'](_0x34f099('0x2637'),_0x4416fb),_0x49f49(_0x13fd6c[_0x34f099('0x826')][_0x34f099('0x115a')]);});}function _0x403ea1(){const _0x166c34=_0x367602;return[{'name':_0x166c34('0x1786'),'key':_0x166c34('0x7c9'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x166c34('0xd08'),'key':_0x166c34('0xf64'),'type':_0x166c34('0x2897'),'label':'DASHBOARDS.SELECT_READ_UNREAD','customOptions':[{'value':0x0,'translate':_0x166c34('0x263')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x166c34('0x9cf')}]},{'name':'Status','key':_0x166c34('0x2bc'),'type':_0x166c34('0x2897'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':_0x166c34('0x9cf')}]},{'name':'Account','key':_0x166c34('0x10d7'),'type':_0x166c34('0x1227'),'label':'DASHBOARDS.SELECT_ACCOUNT','options':_0x13fd6c[_0x166c34('0x58b')][_0x166c34('0x2319')],'clearAll':![]},{'name':'Agent','key':_0x166c34('0x5e5'),'type':_0x166c34('0x2897'),'label':_0x166c34('0x351'),'customOptions':[{'value':_0x13fd6c[_0x166c34('0x221e')]['id'],'translate':_0x166c34('0x2422')},{'value':_0x166c34('0x9bb'),'translate':_0x166c34('0x154d')},{'value':undefined,'translate':_0x166c34('0x9cf')}]},{'name':'Tag','key':_0x166c34('0x1132'),'type':_0x166c34('0x1227'),'label':_0x166c34('0x1e4d'),'options':_0x13fd6c[_0x166c34('0x1522')][_0x166c34('0x2319')],'placeholder':_0x166c34('0x21aa')}];}function _0x221a5d(_0x5d8bc7){const _0x5af329=_0x367602;_0x13fd6c[_0x5af329('0x1bde')]=![],_0x13fd6c[_0x5af329('0x254')]=_0x5d8bc7||{'count':0x0,'rows':[]};for(let _0x501eb5=0x0;_0x501eb5<_0x13fd6c['whatsappInteractions'][_0x5af329('0x2319')][_0x5af329('0x1f73')];_0x501eb5+=0x1){_0x44698f(_0x13fd6c['whatsappInteractions'][_0x5af329('0x2319')][_0x501eb5]);}}function _0x49f49(_0x56a61e){const _0x445fa2=_0x367602;_0x13fd6c[_0x445fa2('0x1bde')]=!![];!_0x56a61e&&(_0x13fd6c[_0x445fa2('0x826')][_0x445fa2('0x115a')]=0x1);_0x13fd6c['query'][_0x445fa2('0xf19')]=(_0x13fd6c[_0x445fa2('0x826')][_0x445fa2('0x115a')]-0x1)*_0x13fd6c[_0x445fa2('0x826')][_0x445fa2('0x193b')];let _0x16922a=_0x1f3e78[_0x445fa2('0x1a93')][_0x445fa2('0x3b8')](_0x445fa2('0x22be')+_0x13fd6c[_0x445fa2('0x221e')]['id']);_0x16922a=_0x16922a?JSON[_0x445fa2('0x1f0a')](_0x16922a):{},_0x16922a['query']=_0x13fd6c[_0x445fa2('0x826')],_0x1f3e78[_0x445fa2('0x1a93')][_0x445fa2('0x230f')](_0x445fa2('0x22be')+_0x13fd6c['user']['id'],JSON[_0x445fa2('0x678')](_0x16922a)),_0x13fd6c[_0x445fa2('0x1691')]=_0x21ae50[_0x445fa2('0x204')][_0x445fa2('0x1c53')](_0x13fd6c[_0x445fa2('0x826')],_0x221a5d)[_0x445fa2('0x1af5')];}function _0x592eb1(_0x4ae381,_0x37ebe9){const _0x45d0c6=_0x367602;_0x4ec287[_0x45d0c6('0x178c')]['vm']['addInteractionTab'](_0x45d0c6('0x1d27'),_0x37ebe9);}function _0x262d7e(_0x302af3,_0x2b2188,_0x143606){const _0x3bf4bc=_0x367602;_0x21ae50[_0x3bf4bc('0x204')][_0x3bf4bc('0x1244')]({'id':_0x2b2188['id'],'attachments':_0x143606})['$promise'][_0x3bf4bc('0x17e7')](function(_0xc22727){const _0x37b92e=_0x3bf4bc,_0x595435=[_0xc22727[_0x37b92e('0x3ca')]],_0x28423b=_0x37b92e('0x1f55')+_0x2b2188['id']+_0x37b92e('0x71b'),_0x24aea5=new Blob(_0x595435,{'type':_0xc22727[_0x37b92e('0x412')]}),_0x55788e=window[_0x37b92e('0x2be')][_0x37b92e('0x68d')]('a');_0x55788e[_0x37b92e('0x224')]('href',URL[_0x37b92e('0x28ce')](_0x24aea5)),_0x55788e['setAttribute']('download',_0x28423b),document['body']['appendChild'](_0x55788e),_0x55788e[_0x37b92e('0x20d4')]();})[_0x3bf4bc('0x16df')](function(_0x3ad474){const _0xe2aaa9=_0x3bf4bc;if(_0x3ad474[_0xe2aaa9('0x1457')]&&_0x3ad474['data'][_0xe2aaa9('0x73e')]&&_0x3ad474['data']['errors']['length'])for(let _0x2dc159=0x0;_0x2dc159<_0x3ad474['data'][_0xe2aaa9('0x73e')][_0xe2aaa9('0x1f73')];_0x2dc159+=0x1){_0x683223['error']({'title':_0x3ad474['data'][_0xe2aaa9('0x73e')][_0x2dc159][_0xe2aaa9('0x412')],'msg':_0x3ad474[_0xe2aaa9('0x1457')][_0xe2aaa9('0x73e')][_0x2dc159][_0xe2aaa9('0x1603')]});}else _0x683223['error']({'title':_0x3ad474[_0xe2aaa9('0x11c5')]?_0xe2aaa9('0x14f7')+_0x3ad474['status']+'\x20-\x20'+_0x3ad474[_0xe2aaa9('0x1833')]:'downloadWhatsappInteraction','msg':_0x3ad474[_0xe2aaa9('0x1457')]?JSON[_0xe2aaa9('0x678')](_0x3ad474[_0xe2aaa9('0x1457')][_0xe2aaa9('0x1603')]):_0x3ad474[_0xe2aaa9('0x9b6')]()});});}function _0x24ec8d(_0x18d33f,_0x2ff813){const _0x4c95f3=_0x367602,_0x4934fd=_0x13fd6c[_0x4c95f3('0x221e')][_0x4c95f3('0x118a')]||_0x13fd6c[_0x4c95f3('0x221e')][_0x4c95f3('0x2764')]||_0x13fd6c[_0x4c95f3('0x221e')][_0x4c95f3('0x1467')]||_0x13fd6c['user'][_0x4c95f3('0x105e')]||_0x13fd6c[_0x4c95f3('0x221e')]['faxPause'],_0x238fce=!_0x2ff813['Account'][_0x4c95f3('0xb20')];_0x236b1b[_0x4c95f3('0x28e2')]({'controller':_0x4c95f3('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular[_0x4c95f3('0x1ce1')](_0x42dd44[_0x4c95f3('0x13aa')]),'clickOutsideToClose':_0x238fce,'escapeToClose':_0x238fce,'onRemoving':function(){const _0xf08718=_0x4c95f3;_0x13fd6c[_0xf08718('0x221e')]&&_0x2ff813[_0xf08718('0x896')][_0xf08718('0xb20')]&&!_0x4934fd&&_0x21ae50['user']['unpause']({'id':_0x13fd6c[_0xf08718('0x221e')]['id']})['$promise'][_0xf08718('0x16df')](function(_0x568bb8){console['error'](_0x568bb8);});},'locals':{'user':_0x13fd6c[_0x4c95f3('0x221e')],'channel':_0x4c95f3('0x1d27'),'interaction':_0x2ff813}});}function _0x44698f(_0x312459){const _0xa60f6e=_0x367602;_0x312459[_0xa60f6e('0x239b')]?(_0x312459['contactName']=(_0x312459['Contact'][_0xa60f6e('0x1761')]||'')+'\x20'+(_0x312459['Contact']['lastName']||''),_0x312459[_0xa60f6e('0x1720')]=_0x312459[_0xa60f6e('0x239b')]['mobile']):_0x312459[_0xa60f6e('0x192c')]=_0x153c0b[_0xa60f6e('0x1acc')](_0xa60f6e('0x30a'));}function _0x45d156(_0x3929c6){const _0x525c2f=_0x367602;if(_0x3929c6[_0x525c2f('0x5e5')])return _0x3929c6['UserId']===_0x13fd6c[_0x525c2f('0x221e')]['id']?_0x153c0b[_0x525c2f('0x1acc')](_0x525c2f('0x2422')):_0x3929c6['Owner'][_0x525c2f('0xea6')]+'\x20<'+_0x3929c6[_0x525c2f('0xe49')][_0x525c2f('0xe3e')]+'>';return _0x153c0b[_0x525c2f('0x1acc')](_0x525c2f('0x154d'));}function _0x4d36b6(_0xecd11c){const _0xca3c2d=_0x367602;if(_0xecd11c[_0xca3c2d('0x896')])return _0xecd11c[_0xca3c2d('0x896')]['key'];return _0x153c0b[_0xca3c2d('0x1acc')](_0xca3c2d('0x30a'));}function _0x5e8030(_0x35f412,_0x4bb7e3){const _0x17ef53=_0x367602;_0x236b1b['show']({'controller':'ComposeWhatsappInteractionDialogController','controllerAs':'vm','templateUrl':_0x31690b,'parent':angular['element'](_0x42dd44[_0x17ef53('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x4bb7e3,'message':{},'type':_0x17ef53('0x1b39'),'interaction':{}},'fullscreen':!![]})['then'](function(_0x25e64a){const _0x22a24f=_0x17ef53;if(_0x25e64a){if(_0x25e64a[_0x22a24f('0x1603')]&&_0x25e64a[_0x22a24f('0x1603')][_0x22a24f('0xa8b')]){const _0x31bfec={'channel':_0x22a24f('0x1d27'),'account':_0x4bb7e3,'message':_0x25e64a[_0x22a24f('0x1603')],'contact':_0x25e64a['contact']};_0x31c3f9[_0x22a24f('0xd62')](_0x31bfec);}else{const _0x20b885=_0x25e64a;return _0x21ae50['whatsappAccount'][_0x22a24f('0x13b7')]({'id':_0x4bb7e3['id']},_0x20b885)['$promise'][_0x22a24f('0x17e7')](function(_0x6fa84e){const _0xbf1195=_0x22a24f;_0x683223[_0xbf1195('0x130d')]({'title':_0xbf1195('0x235b'),'msg':_0xbf1195('0x2235')}),_0x4ec287[_0xbf1195('0x178c')]['vm'][_0xbf1195('0x3a2')](_0xbf1195('0x1d27'),_0x6fa84e);})[_0x22a24f('0x16df')](function(_0x1463e8){const _0x14ebfa=_0x22a24f;if(_0x1463e8['data']&&_0x1463e8[_0x14ebfa('0x1457')][_0x14ebfa('0x73e')]&&_0x1463e8[_0x14ebfa('0x1457')]['errors'][_0x14ebfa('0x1f73')])for(let _0x54111b=0x0;_0x54111b<_0x1463e8[_0x14ebfa('0x1457')][_0x14ebfa('0x73e')][_0x14ebfa('0x1f73')];_0x54111b++){_0x683223[_0x14ebfa('0x1db9')]({'title':_0x1463e8[_0x14ebfa('0x1457')][_0x14ebfa('0x73e')][_0x54111b][_0x14ebfa('0x412')],'msg':_0x1463e8[_0x14ebfa('0x1457')]['errors'][_0x54111b]['message']});}else _0x683223['error']({'title':_0x1463e8[_0x14ebfa('0x11c5')]?_0x14ebfa('0x14f7')+_0x1463e8[_0x14ebfa('0x11c5')]+_0x14ebfa('0x16e4')+_0x1463e8[_0x14ebfa('0x1833')]:_0x14ebfa('0x478'),'msg':_0x1463e8[_0x14ebfa('0x1457')]?JSON[_0x14ebfa('0x678')](_0x1463e8[_0x14ebfa('0x1457')][_0x14ebfa('0x1603')]):_0x1463e8[_0x14ebfa('0x1603')]||_0x1463e8[_0x14ebfa('0x9b6')]()});});}}});}function _0x515945(_0x38c3b3){const _0x208a4f=_0x367602;let _0x5d9d8a;const _0x12ccfe=_0x49cbdd()[_0x208a4f('0xe8e')](_0x13fd6c[_0x208a4f('0x254')][_0x208a4f('0x2319')],{'id':_0x38c3b3[_0x208a4f('0x2eb')]});_0x12ccfe&&_0x12ccfe[_0x208a4f('0x15d4')]&&(_0x5d9d8a=_0x49cbdd()[_0x208a4f('0xe8e')](_0x12ccfe[_0x208a4f('0x15d4')],{'id':_0x38c3b3[_0x208a4f('0x5e5')]}),!_0x5d9d8a&&_0x12ccfe['Users']['push']({'id':_0x38c3b3['UserId']}));}function _0x4416fb(_0x402647){const _0x3b91c0=_0x367602,_0x547926=_0x49cbdd()[_0x3b91c0('0xe8e')](_0x13fd6c['whatsappInteractions'][_0x3b91c0('0x2319')],{'id':_0x402647['WhatsappInteractionId']});_0x547926&&_0x547926[_0x3b91c0('0x15d4')]&&_0x49cbdd()[_0x3b91c0('0x5f3')](_0x547926[_0x3b91c0('0x15d4')],{'id':_0x402647[_0x3b91c0('0x5e5')]});}function _0x5d0273(_0x315b2c){const _0x2a12e=_0x367602;if(_0x315b2c){const _0x2a8de7=_0x49cbdd()[_0x2a12e('0xe8e')](_0x13fd6c[_0x2a12e('0x254')][_0x2a12e('0x2319')],{'id':_0x315b2c['id']});if(_0x2a8de7){_0x2a8de7['Users']=[];_0x315b2c[_0x2a12e('0x2bc')]&&(_0x2a8de7[_0x2a12e('0x1aad')]=0x0);if(_0x13fd6c[_0x2a12e('0x826')][_0x2a12e('0x1b22')]){const _0x72f7ac=_0x49cbdd()[_0x2a12e('0x818')](_0x13fd6c[_0x2a12e('0x826')]['sort'],'-')?_0x2a12e('0x187b'):_0x2a12e('0x161a');_0x13fd6c[_0x2a12e('0x254')][_0x2a12e('0x2319')]=_0x49cbdd()['orderBy'](_0x13fd6c[_0x2a12e('0x254')][_0x2a12e('0x2319')],_0x49cbdd()['trimStart'](_0x13fd6c[_0x2a12e('0x826')][_0x2a12e('0x1b22')],'-'),_0x72f7ac);}_0x49cbdd()[_0x2a12e('0x1ced')](_0x2a8de7,_0x49cbdd()[_0x2a12e('0x230a')](_0x315b2c,_0x49cbdd()[_0x2a12e('0x1c0f')](_0x2a8de7)));}else _0x49f49(_0x13fd6c[_0x2a12e('0x826')][_0x2a12e('0x115a')]);}}function _0x3ef8ce(_0x1df10d){const _0x54192d=_0x367602;if(_0x1df10d){const _0x57131a=_0x49cbdd()[_0x54192d('0xe8e')](_0x13fd6c[_0x54192d('0x254')][_0x54192d('0x2319')],{'id':_0x1df10d['id']});_0x57131a&&(_0x57131a['Tags']=_0x1df10d[_0x54192d('0x1522')]||[],_0x49cbdd()['merge'](_0x57131a,_0x49cbdd()[_0x54192d('0x230a')](_0x1df10d,_0x49cbdd()['keys'](_0x57131a))));}}function _0x5bb4f5(_0x4b62ff){const _0x3a9dcc=_0x367602;if(_0x4b62ff&&!_0x4b62ff[_0x3a9dcc('0x1c8e')]){const _0x56695e=_0x49cbdd()[_0x3a9dcc('0xe8e')](_0x13fd6c['whatsappInteractions'][_0x3a9dcc('0x2319')],{'id':_0x4b62ff[_0x3a9dcc('0x2eb')]});if(_0x56695e){const _0x3ac3be=_0x49cbdd()[_0x3a9dcc('0xe8e')](_0x56695e['Messages'],{'id':_0x4b62ff['id']});_0x3ac3be?_0x49cbdd()[_0x3a9dcc('0x1ced')](_0x3ac3be,_0x49cbdd()[_0x3a9dcc('0x230a')](_0x4b62ff,_0x49cbdd()[_0x3a9dcc('0x1c0f')](_0x3ac3be))):(_0x49cbdd()[_0x3a9dcc('0x390')](_0x56695e[_0x3a9dcc('0xd08')])&&(_0x56695e[_0x3a9dcc('0xd08')]={'count':0x0}),!_0x4b62ff[_0x3a9dcc('0xf64')]&&(_0x56695e[_0x3a9dcc('0xd08')][_0x3a9dcc('0x335')]+=0x1));}}}function _0xec2807(){const _0x830348=_0x367602;_0x13fd6c[_0x830348('0x1949')]=![];}function _0x309117(){const _0x1db33f=_0x367602;_0x13fd6c[_0x1db33f('0x1949')]=!![];}function _0x5a2cbb(){const _0xa97ed4=_0x367602;_0x13fd6c[_0xa97ed4('0x1949')]=![],_0x236b1b['show']({'controller':_0xa97ed4('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular['element'](_0x42dd44[_0xa97ed4('0x13aa')]),'clickOutsideToClose':![],'locals':{'color':_0x13fd6c[_0xa97ed4('0x87b')],'fields':_0x13fd6c[_0xa97ed4('0xfb6')][_0xa97ed4('0x9c9')],'storagePath':_0xa97ed4('0x1c52')},'fullscreen':!![]})[_0xa97ed4('0x17e7')](function(_0x42e915){const _0x2c0aa4=_0xa97ed4;_0x13fd6c[_0x2c0aa4('0x826')][_0x2c0aa4('0xfba')]=_0x42e915===![]?undefined:_0x42e915;if(_0x13fd6c[_0x2c0aa4('0x826')][_0x2c0aa4('0xfba')]||_0x42e915===![])_0x49f49();})['catch'](function(_0x11ceb4){const _0x358a42=_0xa97ed4;_0x683223[_0x358a42('0x1db9')]({'title':_0x358a42('0x1288'),'msg':_0x11ceb4['data']?JSON[_0x358a42('0x678')](_0x11ceb4['data'][_0x358a42('0x1603')]):_0x11ceb4[_0x358a42('0x9b6')]()});});}let _0x1a1b06=!![],_0x17e387=0x1;_0x4ec287[_0x367602('0x620')](_0x367602('0x3ed'),function(_0x567f5b,_0x418fee){const _0x2f39ca=_0x367602;_0x1a1b06?_0x195b2b(function(){_0x1a1b06=![];}):(!_0x418fee&&(_0x17e387=_0x13fd6c['query'][_0x2f39ca('0x115a')]),_0x567f5b!==_0x418fee&&(_0x13fd6c[_0x2f39ca('0x826')][_0x2f39ca('0x115a')]=0x1),!_0x567f5b&&(_0x13fd6c[_0x2f39ca('0x826')]['page']=_0x17e387),_0x49f49(_0x13fd6c[_0x2f39ca('0x826')][_0x2f39ca('0x115a')]));}),_0x4ec287[_0x367602('0x207c')](_0x367602('0x2b4'),function(){const _0x114b19=_0x367602;_0x5ab38f['removeAllListeners'](_0x114b19('0xd1c')),_0x5ab38f[_0x114b19('0x1c65')](_0x114b19('0x1b4f')),_0x5ab38f['removeAllListeners'](_0x114b19('0xa11')),_0x5ab38f['removeAllListeners'](_0x114b19('0x228b')),_0x5ab38f[_0x114b19('0x1c65')](_0x114b19('0x57d')),_0x5ab38f[_0x114b19('0x1c65')](_0x114b19('0x444')),_0x5ab38f[_0x114b19('0x1c65')](_0x114b19('0x2637'));});}const _0x59eb99=_0x250858;_0x369766['$inject']=['$scope',_0x4376d8('0x92d')];function _0x369766(_0x4ab5b9,_0x551ee6){const _0x149405=_0x4376d8,_0x35d8d1=this;_0x35d8d1['setting']={},_0x35d8d1['messages']={'count':0x0,'rows':[]},_0x35d8d1['showInteraction']=![];function _0x59e563(_0x5a23a4,_0x5ac7c1){const _0x8062be=a0_0xd29e;_0x35d8d1[_0x8062be('0x1aeb')]=_0x5ac7c1,_0x35d8d1[_0x8062be('0x1523')]=_0x5a23a4,_0x35d8d1[_0x8062be('0x1523')]['saved']=!![];}function _0x7318cc(){const _0x32a0ff=a0_0xd29e;return _0x551ee6[_0x32a0ff('0x2104')](_0x35d8d1['tab'][_0x32a0ff('0x1e55')]);}_0x35d8d1[_0x149405('0x161d')]=_0x59e563,_0x35d8d1[_0x149405('0xe7c')]=_0x7318cc;}const _0x4e1c00=_0x369766,_0x55f8f5=_0x4cf2bc['p']+_0x4376d8('0x2611'),_0x464898=_0x4cf2bc['p']+_0x4376d8('0x20f');_0x17207a['$inject']=[_0x4376d8('0x92d')],_0x2efb6a[_0x4376d8('0x1b9c')]=['$cookies',_0x4376d8('0xef1'),'$document',_0x4376d8('0x668'),'$mdDialog','$q','$location',_0x4376d8('0x28da'),'api','toasty',_0x4376d8('0x1885'),_0x4376d8('0x25aa'),_0x4376d8('0x1606'),_0x4376d8('0x858')];function _0x2efb6a(_0x593b99,_0x561795,_0x4b3db6,_0x50aa5b,_0x31944f,_0x581f97,_0x382362,_0x268c0f,_0x35268a,_0xa56825,_0x10c76a,_0x35dd33,_0x5ed476,_0x3ab638){const _0x265dff=_0x4376d8,_0x1287c3=this,_0xdbccd9=0x19,_0x13fa47=_0xdbccd9*0x400*0x400;_0x1287c3[_0x265dff('0x22fd')]=![],_0x1287c3[_0x265dff('0x2375')]=![],_0x1287c3[_0x265dff('0x221e')]=_0x10c76a['getCurrentUser'](),_0x1287c3[_0x265dff('0x2208')]=_0x5ed476[_0x265dff('0x2208')](),_0x1287c3[_0x265dff('0x128e')]=[],_0x1287c3[_0x265dff('0x1fce')]=[],_0x1287c3[_0x265dff('0xdbf')]=[_0x265dff('0xc2'),_0x265dff('0x2219'),_0x265dff('0x2cd'),'openchannel',_0x265dff('0xc23'),_0x265dff('0x1d27')],_0x1287c3[_0x265dff('0x1713')]={'target':_0x265dff('0x15c'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x13fa47,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x1287c3[_0x265dff('0xbdf')]={'flow':{}},_0x1287c3[_0x265dff('0xb50')]={},_0x1287c3[_0x265dff('0xb7b')]={},_0x1287c3[_0x265dff('0x1aeb')]={},_0x1287c3['ctrlMethods']={},_0x1287c3[_0x265dff('0x1a79')]={'fontSmiley':!![],'sanitizeHtml':!![],'emoji':!![],'link':!![],'linkTarget':_0x265dff('0x1c7')},_0x1287c3['firstDayMonth']=new Date(_0x107a13()()[_0x265dff('0x161c')]('month')[_0x265dff('0x133d')](0x1,'seconds')['utcOffset'](0x0,!![])[_0x265dff('0x1c0d')]()),_0x1287c3[_0x265dff('0x266c')]=new Date(_0x107a13()()[_0x265dff('0x200e')](_0x265dff('0x7c7'))['subtract'](0x1,_0x265dff('0x26d6'))[_0x265dff('0x1376')](0x0,!![])[_0x265dff('0x1c0d')]()),_0x1287c3[_0x265dff('0x161d')]=_0x4343d5,_0x1287c3[_0x265dff('0x81e')]=_0x342781,_0x1287c3[_0x265dff('0xf79')]=_0x13a529,_0x1287c3[_0x265dff('0x22db')]=_0xf4bf53,_0x1287c3['disposeInteraction']=_0x4f062b,_0x1287c3[_0x265dff('0xc3b')]=_0x231795,_0x1287c3[_0x265dff('0x27a')]=_0x307e77,_0x1287c3[_0x265dff('0x630')]=_0x303fe8,_0x1287c3[_0x265dff('0x17b8')]=_0x132fa6,_0x1287c3[_0x265dff('0x27f8')]=_0x475148,_0x1287c3[_0x265dff('0xe9')]=_0x231204,_0x1287c3[_0x265dff('0xee8')]=_0x116b04,_0x1287c3['downloadInteraction']=_0x5c001e,_0x1287c3[_0x265dff('0x93a')]=_0x5352fe,_0x1287c3[_0x265dff('0xf34')]=_0x5928ba,_0x1287c3[_0x265dff('0x21d8')]=_0x5a5f3a,_0x1287c3[_0x265dff('0x17d7')]=_0x178888,_0x1287c3[_0x265dff('0x24c')]=_0x46c006,_0x1287c3['getWhatsappAccounts']=_0x8eda47,_0x1287c3[_0x265dff('0x2532')]=_0x567aa5,_0x1287c3['getChatWebsites']=_0x3967a4,_0x1287c3[_0x265dff('0x852')]=_0x2de32e,_0x1287c3[_0x265dff('0x1862')]=_0x25f500,_0x1287c3[_0x265dff('0x624')]=_0x3577c4,_0x1287c3['fileAdded']=_0x88197a,_0x1287c3[_0x265dff('0x1852')]=_0x582841,_0x1287c3['onMessageSave']=_0x216a9f,_0x1287c3[_0x265dff('0x457')]=_0x42ccbe,_0x1287c3['searchTextChange']=_0x270240,_0x1287c3[_0x265dff('0x26bf')]=_0x49924c,_0x1287c3[_0x265dff('0xe36')]=_0x3d6ec6,_0x1287c3[_0x265dff('0x1b33')]=_0x2eeceb,_0x1287c3[_0x265dff('0x1e24')]=_0x1618f4,_0x1287c3['getMessagesAlignment']=_0x4f670c,_0x1287c3[_0x265dff('0xf25')]=![],_0x1287c3[_0x265dff('0x4aa')]=_0x3f99e3,_0x1287c3[_0x265dff('0xa34')]=_0x5af49a,_0x1287c3[_0x265dff('0x2748')]=_0x550dec,_0x1287c3[_0x265dff('0x11fb')]=_0x8ed96b,_0x1287c3[_0x265dff('0x498')]=_0x20668e,_0x1287c3['getAttachment']=_0xb4866e,_0x1287c3[_0x265dff('0x1759')]=_0x2c72f4,_0x1287c3['onInteractionOpen']=_0x35d35f,_0x1287c3['onInteractionClose']=_0x5e46e8,_0x1287c3['loadNextPage']=_0x50da21,_0x1287c3['timelineOptions']={'scrollEl':_0x265dff('0x1aa7')};function _0x3967a4(){const _0x13d3a9=_0x265dff;_0x35268a['user'][_0x13d3a9('0x8fc')]({'id':_0x1287c3[_0x13d3a9('0x221e')]['id'],'nolimit':!![]})[_0x13d3a9('0x1af5')][_0x13d3a9('0x17e7')](function(_0x5c6687){const _0x4e4a71=_0x13d3a9;_0x1287c3[_0x4e4a71('0x24cd')]=_0x5c6687||{'count':0x0,'rows':[]};});}function _0x2de32e(){const _0x5d75d7=_0x265dff;_0x35268a[_0x5d75d7('0x221e')][_0x5d75d7('0x852')]({'id':_0x1287c3[_0x5d75d7('0x221e')]['id'],'nolimit':!![]})[_0x5d75d7('0x1af5')][_0x5d75d7('0x17e7')](function(_0xed32cc){const _0x29957d=_0x5d75d7;_0x1287c3[_0x29957d('0x1697')]=_0xed32cc||{'count':0x0,'rows':[]};});}function _0x567aa5(){const _0x4ca337=_0x265dff;_0x35268a[_0x4ca337('0x221e')][_0x4ca337('0x2532')]({'id':_0x1287c3[_0x4ca337('0x221e')]['id'],'nolimit':!![]})[_0x4ca337('0x1af5')][_0x4ca337('0x17e7')](function(_0x5b087e){_0x1287c3['openchannelAccounts']=_0x5b087e||{'count':0x0,'rows':[]};})['catch'](function(_0x12329b){const _0x21b859=_0x4ca337;if(_0x12329b['data']&&_0x12329b[_0x21b859('0x1457')][_0x21b859('0x73e')]&&_0x12329b[_0x21b859('0x1457')]['errors'][_0x21b859('0x1f73')]){_0x1287c3['errors']=_0x12329b[_0x21b859('0x1457')][_0x21b859('0x73e')]||[{'message':_0x12329b[_0x21b859('0x9b6')](),'type':_0x21b859('0x7bf')}];for(let _0x3e8a00=0x0;_0x3e8a00<_0x12329b[_0x21b859('0x1457')]['errors'][_0x21b859('0x1f73')];_0x3e8a00+=0x1){_0xa56825[_0x21b859('0x1db9')]({'title':_0x12329b['data'][_0x21b859('0x73e')][_0x3e8a00][_0x21b859('0x412')],'msg':_0x12329b[_0x21b859('0x1457')]['errors'][_0x3e8a00]['message']});}}else _0xa56825[_0x21b859('0x1db9')]({'title':_0x12329b[_0x21b859('0x11c5')]?_0x21b859('0x14f7')+_0x12329b[_0x21b859('0x11c5')]+_0x21b859('0x16e4')+_0x12329b['statusText']:_0x21b859('0x7bf'),'msg':_0x12329b['data']?JSON[_0x21b859('0x678')](_0x12329b[_0x21b859('0x1457')]['message']):_0x12329b[_0x21b859('0x9b6')]()});});}function _0x5a5f3a(){const _0x58ea03=_0x265dff;_0x35268a['user'][_0x58ea03('0x21d8')]({'id':_0x1287c3[_0x58ea03('0x221e')]['id'],'nolimit':!![]})[_0x58ea03('0x1af5')][_0x58ea03('0x17e7')](function(_0x3cf336){const _0x4858aa=_0x58ea03;_0x1287c3[_0x4858aa('0x3d9')]=_0x3cf336||{'count':0x0,'rows':[]};});}function _0x178888(){const _0x528bbf=_0x265dff;_0x35268a[_0x528bbf('0x221e')][_0x528bbf('0x17d7')]({'id':_0x1287c3['user']['id'],'nolimit':!![]})['$promise'][_0x528bbf('0x17e7')](function(_0x553631){const _0x51370e=_0x528bbf;_0x1287c3[_0x51370e('0xec4')]=_0x553631||{'count':0x0,'rows':[]};});}function _0x46c006(){const _0x1f4ef8=_0x265dff;_0x35268a[_0x1f4ef8('0x221e')][_0x1f4ef8('0x24c')]({'id':_0x1287c3[_0x1f4ef8('0x221e')]['id'],'nolimit':!![]})[_0x1f4ef8('0x1af5')]['then'](function(_0x446bff){const _0x7bd967=_0x1f4ef8;_0x1287c3[_0x7bd967('0x35e')]=_0x446bff||{'count':0x0,'rows':[]};});}function _0x8eda47(){const _0x40878f=_0x265dff;_0x35268a['user'][_0x40878f('0x79c')]({'id':_0x1287c3['user']['id'],'nolimit':!![]})[_0x40878f('0x1af5')][_0x40878f('0x17e7')](function(_0x1242a6){const _0x15bceb=_0x40878f;_0x1287c3[_0x15bceb('0x58b')]=_0x1242a6||{'count':0x0,'rows':[]};});}function _0x50da21(){const _0x524014=_0x265dff,_0x5a1b4b=_0x581f97[_0x524014('0x113c')]();if(_0x1287c3[_0x524014('0x185e')])return _0x1287c3[_0x524014('0x185e')][_0x524014('0xf19')]=_0x1287c3[_0x524014('0xdd9')]['rows']['length'],_0x35268a[_0x1287c3[_0x524014('0x1523')][_0x524014('0x15d7')]+_0x524014('0x3de')][_0x524014('0x18e0')](_0x1287c3[_0x524014('0x185e')])[_0x524014('0x1af5')]['then'](function(_0x3530d7){const _0x2c52c9=_0x524014;for(let _0x31f168=0x0;_0x31f168<_0x3530d7['rows'][_0x2c52c9('0x1f73')];_0x31f168+=0x1){_0x1287c3['messages']['rows'][_0x2c52c9('0x269f')](_0x3530d7[_0x2c52c9('0x2319')][_0x31f168]),!_0x1287c3[_0x2c52c9('0x1219')][_0x2c52c9('0x2bc')]&&_0x3530d7['rows'][_0x31f168]['direction']==='in'&&!_0x3530d7[_0x2c52c9('0x2319')][_0x31f168][_0x2c52c9('0xf64')]&&(_0x35268a[_0x1287c3[_0x2c52c9('0x1523')][_0x2c52c9('0x15d7')]+_0x2c52c9('0x213')][_0x2c52c9('0x37')]({'id':_0x3530d7[_0x2c52c9('0x2319')][_0x31f168]['id'],'UserId':_0x1287c3['user']['id']}),_0x1287c3[_0x2c52c9('0x1fce')][_0x2c52c9('0x269f')](_0x3530d7[_0x2c52c9('0x2319')][_0x31f168]['id']));}return _0x5a1b4b[_0x2c52c9('0x898')](_0x3530d7);})['catch'](function(_0x559ee4){return _0x5a1b4b['reject'](_0x559ee4);});return _0x5a1b4b[_0x524014('0x1ad1')]();}function _0x4343d5(_0x4bba28,_0x2915a7){const _0xaa6e1a=_0x265dff;_0x1287c3[_0xaa6e1a('0x1523')]=_0x4bba28,_0x1287c3[_0xaa6e1a('0x1523')][_0xaa6e1a('0x51d')]=!![],_0x1287c3[_0xaa6e1a('0x1523')][_0xaa6e1a('0x1c51')]=0x0,_0x1287c3[_0xaa6e1a('0x1aeb')]=_0x2915a7||{},_0x1287c3[_0xaa6e1a('0x1523')]&&_0x1287c3['tab'][_0xaa6e1a('0x15d7')]&&_0x1287c3['tab'][_0xaa6e1a('0x1219')]&&(_0x1287c3['interaction']=_0x1287c3['tab'][_0xaa6e1a('0x1219')],_0x35268a[_0x1287c3[_0xaa6e1a('0x1523')][_0xaa6e1a('0x15d7')]+_0xaa6e1a('0x3de')]['get']({'id':_0x1287c3['tab'][_0xaa6e1a('0x1219')]['id'],'includeAll':!![]})[_0xaa6e1a('0x1af5')][_0xaa6e1a('0x17e7')](function(_0x37d113){const _0x50f724=_0xaa6e1a;return _0x37d113&&(_0x1287c3[_0x50f724('0x1219')]=_0x37d113,_0x1287c3[_0x50f724('0x1523')][_0x50f724('0x1219')]=_0x37d113),_0x1287c3['tab'][_0x50f724('0x51d')]=_0x1287c3[_0x50f724('0x1219')][_0x50f724('0x2bc')],_0x1287c3[_0x50f724('0x185e')]={'id':_0x1287c3[_0x50f724('0x1219')]['id'],'includeAll':!![]},_0x1287c3['tab'][_0x50f724('0x15d7')]==='mail'?(_0x1287c3[_0x50f724('0x185e')]['sort']=_0x50f724('0x1bf2'),_0x1287c3['queryMessage']['offset']=0x0,_0x1287c3['queryMessage']['limit']=0x3):(_0x1287c3[_0x50f724('0x185e')][_0x50f724('0x1b22')]='id',_0x1287c3[_0x50f724('0x185e')][_0x50f724('0x24c6')]=!![]),_0x35268a[_0x1287c3[_0x50f724('0x1523')]['channel']+_0x50f724('0x3de')][_0x50f724('0x18e0')](_0x1287c3[_0x50f724('0x185e')])[_0x50f724('0x1af5')];})[_0xaa6e1a('0x17e7')](function(_0x5c91a5){const _0x46e894=_0xaa6e1a;return _0x1287c3[_0x46e894('0xdd9')]=_0x5c91a5||{'count':0x0,'rows':[]},_0x35268a[_0x1287c3['tab']['channel']===_0x46e894('0x2219')?'chatWebsite':_0x1287c3['tab'][_0x46e894('0x15d7')]+_0x46e894('0x896')][_0x46e894('0x1c53')]({'id':_0x1287c3[_0x46e894('0x1219')][_0x1287c3['tab'][_0x46e894('0x15d7')]===_0x46e894('0x2219')?'ChatWebsiteId':_0x49cbdd()[_0x46e894('0xb41')](_0x1287c3['tab']['channel'])+_0x46e894('0x2554')]})[_0x46e894('0x1af5')];})['then'](function(_0x4a9f45){const _0x10ddba=_0xaa6e1a;_0x1287c3['account']=_0x4a9f45,_0x1287c3[_0x10ddba('0x1523')][_0x10ddba('0x24d3')]=_0x1287c3[_0x10ddba('0x2679')]['key']||_0x1287c3[_0x10ddba('0x2679')][_0x10ddba('0x2aa')];if(_0x1287c3['interaction'][_0x10ddba('0x1e84')])return _0x35268a[_0x10ddba('0x1d2a')]['get']({'id':_0x1287c3[_0x10ddba('0x1219')][_0x10ddba('0x1e84')]})[_0x10ddba('0x1af5')];})[_0xaa6e1a('0x17e7')](function(_0x4dc1e3){const _0x2267d5=_0xaa6e1a;return _0x4dc1e3&&(_0x1287c3['contact']=_0x4dc1e3),_0x1287c3['showInteraction']=!![],_0x1287c3['contact']?(_0x339297(_0x1287c3[_0x2267d5('0x1c58')]),_0x1287c3['tab'][_0x2267d5('0x24d3')]+=_0x2267d5('0x16e4')+_0x1287c3[_0x2267d5('0x1c58')][_0x2267d5('0x1761')]):_0x1287c3[_0x2267d5('0x1523')][_0x2267d5('0x24d3')]+=_0x2267d5('0x16e4')+_0x268c0f['instant'](_0x1287c3['tab'][_0x2267d5('0x15d7')]['toUpperCase']()+_0x2267d5('0x287d')),_0x35268a[_0x2267d5('0x221e')]['get']({'fields':_0x2267d5('0x2185'),'nolimit':!![]})[_0x2267d5('0x1af5')];})['then'](function(_0x141fda){const _0x24e947=_0xaa6e1a;_0x1287c3['users']=_0x141fda||{'count':0x0,'rows':[]},_0x1287c3[_0x24e947('0x18b8')]=_0x49cbdd()[_0x24e947('0x250e')](_0x49cbdd()[_0x24e947('0x8de')](_0x1287c3['users'][_0x24e947('0x2319')],'id'),_0x24e947('0xea6'));})['then'](function(){const _0x459c7b=_0xaa6e1a;if(_0x1287c3[_0x459c7b('0x1523')][_0x459c7b('0x15d7')]&&_0x1287c3[_0x459c7b('0x1219')])return _0x35268a[_0x459c7b('0x221e')]['add'+_0x49cbdd()['upperFirst'](_0x1287c3[_0x459c7b('0x1523')][_0x459c7b('0x15d7')])+_0x459c7b('0xd64')]({'id':_0x1287c3[_0x459c7b('0x221e')]['id'],'ids':[_0x1287c3[_0x459c7b('0x1219')]['id']]});})[_0xaa6e1a('0x17e7')](function(){const _0x113aa0=_0xaa6e1a;return _0x35268a['mailSubstatus']['get']({'sort':_0x113aa0('0x2aa'),'nolimit':!![]})[_0x113aa0('0x1af5')];})['then'](function(_0x3ee64a){const _0x3705a1=_0xaa6e1a;_0x1287c3[_0x3705a1('0x1abe')]=_0x3ee64a||{'count':0x0,'rows':[]};})[_0xaa6e1a('0x17e7')](function(){const _0x402eb3=_0xaa6e1a;return _0x1287c3[_0x402eb3('0x21d8')]();})[_0xaa6e1a('0x17e7')](function(){return _0x1287c3['getFaxAccounts']();})[_0xaa6e1a('0x17e7')](function(){const _0xacae25=_0xaa6e1a;return _0x1287c3[_0xacae25('0x24c')]();})[_0xaa6e1a('0x17e7')](function(){const _0x3bde8e=_0xaa6e1a;return _0x1287c3[_0x3bde8e('0x79c')]();})['then'](function(){const _0x89ad7d=_0xaa6e1a;return _0x1287c3[_0x89ad7d('0x2532')]();})[_0xaa6e1a('0x17e7')](function(){return _0x1287c3['getChatWebsites']();})['then'](function(){const _0x4e0936=_0xaa6e1a;return _0x1287c3[_0x4e0936('0x852')]();})[_0xaa6e1a('0x16df')](function(){const _0x48f362=_0xaa6e1a;_0x1287c3[_0x48f362('0x2375')]=!![];})['finally'](function(){const _0x231601=_0xaa6e1a;_0x2bdd97(),_0x242838(),_0x35dd33['on'](_0x1287c3[_0x231601('0x1523')][_0x231601('0x15d7')]+_0x231601('0x179f'),_0x1287c3[_0x231601('0x253b')]),_0x35dd33['on'](_0x1287c3[_0x231601('0x1523')][_0x231601('0x15d7')]+'Message:update',_0x1287c3[_0x231601('0x253b')]),_0x35dd33['on'](_0x1287c3['tab'][_0x231601('0x15d7')]+'Interaction:save',_0x1287c3['onInteractionSave']),_0x35dd33['on'](_0x1287c3['tab'][_0x231601('0x15d7')]+_0x231601('0x1f24'),_0x1287c3[_0x231601('0x457')]),_0x35dd33['on'](_0x231601('0x251e')+_0x1287c3[_0x231601('0x1523')][_0x231601('0x15d7')]+_0x231601('0x9f6'),_0x1287c3[_0x231601('0x147c')]),_0x35dd33['on'](_0x231601('0x251e')+_0x1287c3[_0x231601('0x1523')][_0x231601('0x15d7')]+_0x231601('0x24ca'),_0x1287c3[_0x231601('0x16f9')]),_0x1287c3['tab']['areaText']=_0x1287c3[_0x231601('0x1523')]['areaText']?_0x1287c3['tab'][_0x231601('0x23ef')]:'',_0x1287c3[_0x231601('0x22fd')]=!![],_0x1287c3[_0x231601('0x1523')][_0x231601('0x15d7')]==='mail'&&(_0x1287c3['draft']=_0x3ab638[_0x231601('0x5cc')](_0x1287c3[_0x231601('0x1523')][_0x231601('0x1219')]['id']),_0x1287c3['tab'][_0x231601('0x1099')]&&(_0x1287c3[_0x231601('0x1523')][_0x231601('0x1219')][_0x231601('0x2bc')]?(_0x3ab638[_0x231601('0x202c')](_0x1287c3[_0x231601('0x1523')][_0x231601('0x1219')]['id']),_0x1287c3[_0x231601('0x283b')]=null):_0x5352fe()));}));}function _0x8ed96b(_0x1edd67){const _0x5dde82=_0x265dff;if(_0x1edd67[_0x5dde82('0x24f9')])return _0x49cbdd()[_0x5dde82('0x24b0')](_0x49cbdd()[_0x5dde82('0x787')](_0x1287c3['faxAccounts']?_0x1287c3[_0x5dde82('0xec4')][_0x5dde82('0x2319')]:[],'id'),_0x1edd67[_0x5dde82('0x24f9')]);else{if(_0x1edd67[_0x5dde82('0x1969')])return _0x49cbdd()[_0x5dde82('0x24b0')](_0x49cbdd()[_0x5dde82('0x787')](_0x1287c3[_0x5dde82('0x1408')]?_0x1287c3[_0x5dde82('0x1408')][_0x5dde82('0x2319')]:[],'id'),_0x1edd67['OpenchannelAccountId']);else{if(_0x1edd67['SmsAccountId'])return _0x49cbdd()[_0x5dde82('0x24b0')](_0x49cbdd()[_0x5dde82('0x787')](_0x1287c3['smsAccounts']?_0x1287c3[_0x5dde82('0x35e')][_0x5dde82('0x2319')]:[],'id'),_0x1edd67['SmsAccountId']);else{if(_0x1edd67[_0x5dde82('0x10d7')])return _0x49cbdd()[_0x5dde82('0x24b0')](_0x49cbdd()[_0x5dde82('0x787')](_0x1287c3[_0x5dde82('0x58b')]?_0x1287c3[_0x5dde82('0x58b')][_0x5dde82('0x2319')]:[],'id'),_0x1edd67[_0x5dde82('0x10d7')]);else{if(_0x1edd67['MailAccountId'])return _0x49cbdd()[_0x5dde82('0x24b0')](_0x49cbdd()['map'](_0x1287c3['mailAccounts']?_0x1287c3[_0x5dde82('0x3d9')][_0x5dde82('0x2319')]:[],'id'),_0x1edd67['MailAccountId']);else{if(_0x1edd67[_0x5dde82('0x259')])return _0x49cbdd()[_0x5dde82('0x24b0')](_0x49cbdd()[_0x5dde82('0x787')](_0x1287c3[_0x5dde82('0x24cd')]?_0x1287c3[_0x5dde82('0x24cd')][_0x5dde82('0x2319')]:[],'id'),_0x1edd67['ChatWebsiteId']);else{if(_0x1edd67['amaflags'])return!![];}}}}}}return![];}function _0x35d35f(_0x176cba){const _0x326eba=_0x265dff;let _0x53d4dc;_0x1287c3['interaction']['id']==_0x176cba[_0x49cbdd()['upperFirst'](_0x1287c3['tab']['channel'])+_0x326eba('0x1bb7')]&&(_0x1287c3[_0x326eba('0x1219')][_0x326eba('0x15d4')]&&(_0x53d4dc=_0x49cbdd()[_0x326eba('0xe8e')](_0x1287c3[_0x326eba('0x1219')][_0x326eba('0x15d4')],{'id':_0x176cba['UserId']})),!_0x53d4dc&&_0x1287c3[_0x326eba('0x1219')][_0x326eba('0x15d4')][_0x326eba('0x269f')]({'id':_0x176cba[_0x326eba('0x5e5')]}));}function _0x5e46e8(_0x56c5ee){const _0x3da676=_0x265dff;_0x1287c3[_0x3da676('0x1219')]['id']==_0x56c5ee[_0x49cbdd()[_0x3da676('0x233c')](_0x1287c3[_0x3da676('0x1523')]['channel'])+_0x3da676('0x1bb7')]&&(_0x1287c3[_0x3da676('0x1219')][_0x3da676('0x15d4')]&&_0x49cbdd()['remove'](_0x1287c3[_0x3da676('0x1219')][_0x3da676('0x15d4')],{'id':_0x56c5ee[_0x3da676('0x5e5')]}));}function _0x49924c(_0x348d1f){const _0x11c387=_0x265dff;if(_0x348d1f){try{_0x49cbdd()['templateSettings'][_0x11c387('0x24ae')]=/{{([\s\S]+?)}}/g;const _0x30d4b1=_0x49cbdd()[_0x11c387('0x2260')](_0x348d1f['value']),_0x51e14a={'user':_0x1287c3[_0x11c387('0x221e')],'account':_0x1287c3[_0x11c387('0x2679')],'interaction':_0x1287c3['interaction'],'contact':_0x1287c3['interaction']&&_0x1287c3['interaction'][_0x11c387('0x239b')]?_0x1287c3[_0x11c387('0x1219')][_0x11c387('0x239b')]:{}};_0x1287c3['tab'][_0x11c387('0x23ef')]+='\x20'+_0x30d4b1(_0x51e14a),_0x1287c3[_0x11c387('0x1a80')][_0x11c387('0x74a')](_0x1287c3['tab']['areaText']);}catch(_0x4c5abc){_0x1287c3['tab'][_0x11c387('0x23ef')]+='\x20'+_0x348d1f[_0x11c387('0x175b')],_0x1287c3[_0x11c387('0x1a80')]['setText'](_0x1287c3['tab'][_0x11c387('0x23ef')]);}_0x1287c3[_0x11c387('0x1960')]=null,_0x1287c3[_0x11c387('0x4aa')]();}}function _0x270240(_0x48717a){const _0x26a362=_0x265dff,_0x3493b6=_0x581f97[_0x26a362('0x113c')]();let _0x19d82b=[];const _0x54ddbe={},_0x239ebd=_0x1287c3[_0x26a362('0x1523')]['channel']==='chat'?_0x26a362('0x259'):_0x49cbdd()['capitalize'](_0x1287c3[_0x26a362('0x1523')][_0x26a362('0x15d7')])+_0x26a362('0x2554');return _0x54ddbe[_0x26a362('0x2483')]=_0x48717a,_0x54ddbe[_0x239ebd]=_0x1287c3[_0x26a362('0x2679')]['id'],_0x35268a[_0x26a362('0x2043')][_0x26a362('0x1c53')](_0x54ddbe)[_0x26a362('0x1af5')][_0x26a362('0x17e7')](function(_0x264fcb){const _0x34cd95=_0x26a362;return _0x19d82b=_0x49cbdd()['concat'](_0x19d82b,_0x264fcb[_0x34cd95('0x2319')]),_0x35268a[_0x34cd95('0x2043')][_0x34cd95('0x1c53')]({'filter':_0x48717a})[_0x34cd95('0x1af5')];})[_0x26a362('0x17e7')](function(_0x2393f9){const _0x4a932a=_0x26a362;_0x19d82b=_0x49cbdd()[_0x4a932a('0xe1b')](_0x19d82b,_0x49cbdd()['filter'](_0x2393f9['rows'],function(_0xbacdf4){const _0x510c9e=_0x4a932a;return!_0xbacdf4[_0x510c9e('0xbda')]&&!_0xbacdf4[_0x510c9e('0x24f9')]&&!_0xbacdf4[_0x510c9e('0x17fe')]&&!_0xbacdf4[_0x510c9e('0x10d7')]&&!_0xbacdf4[_0x510c9e('0x1969')]&&!_0xbacdf4[_0x510c9e('0x259')];})),_0x3493b6[_0x4a932a('0x898')](_0x19d82b);})[_0x26a362('0x16df')](function(_0xce6e89){const _0x5c44c6=_0x26a362;_0x3493b6[_0x5c44c6('0x1ad1')](_0xce6e89);}),_0x3493b6[_0x26a362('0x1691')];}function _0x13a529(_0x22210d,_0x1ad656){const _0xdf38e0=_0x265dff;try{_0x1287c3[_0xdf38e0('0x1523')]&&!_0x1287c3[_0xdf38e0('0x1523')]['spy']&&_0x50aa5b[_0xdf38e0('0x178c')][_0xdf38e0('0x178c')]['$parent']['vm'][_0xdf38e0('0x13b9')](_0x1ad656||_0x1287c3[_0xdf38e0('0x1c58')]);}catch(_0x12ad7c){_0xa56825['error']({'title':_0xdf38e0('0x2423'),'msg':_0xdf38e0('0xe54')});}}function _0xf4bf53(_0x2991d8,_0x3d4709){const _0x2839fc=_0x265dff;try{if(_0x3d4709[_0x2839fc('0xbda')])return _0x50aa5b['$parent'][_0x2839fc('0x178c')][_0x2839fc('0x178c')]['vm'][_0x2839fc('0x3a2')]('mail',_0x3d4709);else{if(_0x3d4709[_0x2839fc('0x259')])return _0x50aa5b[_0x2839fc('0x178c')][_0x2839fc('0x178c')][_0x2839fc('0x178c')]['vm']['addInteractionTab'](_0x2839fc('0x2219'),_0x3d4709);else{if(_0x3d4709['SmsAccountId'])return _0x50aa5b['$parent'][_0x2839fc('0x178c')][_0x2839fc('0x178c')]['vm']['addInteractionTab'](_0x2839fc('0x2cd'),_0x3d4709);else{if(_0x3d4709['WhatsappAccountId'])return _0x50aa5b[_0x2839fc('0x178c')][_0x2839fc('0x178c')][_0x2839fc('0x178c')]['vm'][_0x2839fc('0x3a2')](_0x2839fc('0x1d27'),_0x3d4709);else{if(_0x3d4709[_0x2839fc('0x1969')])return _0x50aa5b['$parent']['$parent'][_0x2839fc('0x178c')]['vm'][_0x2839fc('0x3a2')](_0x2839fc('0x1508'),_0x3d4709);else{if(_0x3d4709[_0x2839fc('0x24f9')])return _0x50aa5b['$parent'][_0x2839fc('0x178c')][_0x2839fc('0x178c')]['vm'][_0x2839fc('0x3a2')](_0x2839fc('0xc23'),_0x3d4709);}}}}}}catch(_0x2d22e5){_0xa56825['error']({'title':_0x2839fc('0x25c8'),'msg':'Customer\x20Journey\x20can\x27t\x20open\x20the\x20interaction'});}}function _0x231795(){const _0xbff11c=_0x265dff;_0x31944f['show']({'controller':'TagInteractionDialogController','controllerAs':'vm','templateUrl':_0x55f8f5,'parent':angular['element'](_0x4b3db6['body']),'clickOutsideToClose':!![],'skipHide':Boolean(_0x1287c3[_0xbff11c('0x1523')]['spy']),'resolve':{'tags':['apiResolver',function(_0x59a457){const _0x232de5=_0xbff11c;return _0x59a457[_0x232de5('0x898')](_0x232de5('0x22aa'),{'sort':_0x232de5('0x2aa'),'nolimit':!![],'fields':_0x232de5('0x18e7')});}]},'locals':{'channel':_0x1287c3[_0xbff11c('0x1523')][_0xbff11c('0x15d7')],'interaction':_0x1287c3[_0xbff11c('0x1523')][_0xbff11c('0x1219')]}});}function _0x4f062b(){const _0x355940=_0x265dff,_0x2bdcf0=_0x1287c3['user']['voicePause']||_0x1287c3['user'][_0x355940('0x2764')]||_0x1287c3['user']['mailPause']||_0x1287c3[_0x355940('0x221e')][_0x355940('0x105e')]||_0x1287c3[_0x355940('0x221e')][_0x355940('0x1d98')],_0xd69d5=!_0x1287c3['tab'][_0x355940('0x1219')]['Account'][_0x355940('0xb20')];_0x31944f[_0x355940('0x28e2')]({'controller':_0x355940('0x110e'),'controllerAs':'vm','templateUrl':_0x11300b,'parent':angular[_0x355940('0x1ce1')](_0x4b3db6[_0x355940('0x13aa')]),'clickOutsideToClose':_0xd69d5,'escapeToClose':_0xd69d5,'onRemoving':function(){const _0x4dbe03=_0x355940;_0x1287c3['user']&&_0x1287c3['interaction']['Account'][_0x4dbe03('0xb20')]&&!_0x2bdcf0&&_0x35268a[_0x4dbe03('0x221e')]['unpause']({'id':_0x1287c3[_0x4dbe03('0x221e')]['id']})[_0x4dbe03('0x1af5')][_0x4dbe03('0x16df')](function(_0x57acfb){const _0x25446d=_0x4dbe03;console[_0x25446d('0x1db9')](_0x57acfb);});},'locals':{'user':_0x1287c3[_0x355940('0x221e')],'channel':_0x1287c3[_0x355940('0x1523')][_0x355940('0x15d7')],'interaction':_0x1287c3[_0x355940('0x1523')]['interaction']}})[_0x355940('0x17e7')](function(_0x420ef5){const _0x1ef6a8=_0x355940;_0x1287c3[_0x1ef6a8('0x1523')][_0x1ef6a8('0x51d')]=Boolean(_0x420ef5),_0x420ef5&&_0x50aa5b[_0x1ef6a8('0x178c')][_0x1ef6a8('0x178c')][_0x1ef6a8('0x178c')]['vm']['closeTab'](_0x1287c3[_0x1ef6a8('0x1523')]);});}function _0x2208f3(_0x281a9e,_0xd87a49){const _0x26cc9f=_0x265dff;_0x1287c3[_0x26cc9f('0x1523')][_0x26cc9f('0x1603')]=_0xd87a49,_0x31944f['show']({'controller':'ComposeMailInteractionDialogController','controllerAs':'vm','templateUrl':_0x334531,'parent':angular[_0x26cc9f('0x1ce1')](_0x4b3db6[_0x26cc9f('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x1287c3['account'],'message':_0x1287c3[_0x26cc9f('0x1523')]['message'],'type':_0x281a9e,'interaction':_0x1287c3[_0x26cc9f('0x1219')]},'fullscreen':!![],'skipHide':Boolean(_0x1287c3[_0x26cc9f('0x1523')]['spy'])})[_0x26cc9f('0x17e7')](function(_0x5ccb6e){const _0x456ee7=_0x26cc9f;if(_0x5ccb6e){if(_0x5ccb6e['message']&&_0x5ccb6e[_0x456ee7('0x1603')][_0x456ee7('0xa8b')])_0x1287c3[_0x456ee7('0x283b')]?_0x3ab638[_0x456ee7('0x27ba')]({'id':_0x1287c3['draft']['id'],'channel':_0x456ee7('0xc2'),'account':_0x1287c3['account'],'message':_0x5ccb6e['message'],'contact':_0x1287c3[_0x456ee7('0x1c58')],'interaction':_0x1287c3[_0x456ee7('0x1219')]}):_0x3ab638[_0x456ee7('0xd62')]({'channel':_0x456ee7('0xc2'),'account':_0x1287c3[_0x456ee7('0x2679')],'message':_0x5ccb6e[_0x456ee7('0x1603')],'contact':_0x1287c3[_0x456ee7('0x1c58')],'interaction':_0x1287c3[_0x456ee7('0x1219')]}),_0x1287c3[_0x456ee7('0x283b')]=_0x3ab638['getByInteraction'](_0x1287c3[_0x456ee7('0x1523')][_0x456ee7('0x1219')]['id']);else{const _0x433fda=_0x5ccb6e;_0x433fda&&_0x578417(_0x433fda),_0x433fda[_0x456ee7('0x3de')]&&_0x1287c3[_0x456ee7('0x1219')]&&_0x1287c3[_0x456ee7('0x1219')]['id']&&(_0x433fda['Interaction']['id']=_0x1287c3['interaction']['id'],_0x35268a[_0x456ee7('0xa5')][_0x456ee7('0x27ba')](_0x433fda[_0x456ee7('0x3de')])[_0x456ee7('0x1af5')]['then'](function(_0x212bea){const _0xd8f6d4=_0x456ee7;if(_0x212bea&&_0x212bea['closed'])_0x1287c3[_0xd8f6d4('0x1523')]['saved']=!![],_0x1287c3[_0xd8f6d4('0x1219')][_0xd8f6d4('0x2bc')]=!![],_0x4f062b();else _0x433fda['Interaction'][_0xd8f6d4('0x2882')]!==null&&(_0x1287c3['tab'][_0xd8f6d4('0x51d')]=!![],_0x1287c3[_0xd8f6d4('0x1523')][_0xd8f6d4('0x1219')][_0xd8f6d4('0x2882')]=_0x433fda[_0xd8f6d4('0x3de')][_0xd8f6d4('0x2882')],_0x50aa5b['$parent'][_0xd8f6d4('0x178c')][_0xd8f6d4('0x178c')]['vm'][_0xd8f6d4('0x1dd5')](_0x1287c3[_0xd8f6d4('0x1523')]));})[_0x456ee7('0x16df')](function(_0x38ec6f){const _0x319664=_0x456ee7;console[_0x319664('0x1db9')](_0x38ec6f);}));}}})['finally'](function(){const _0x404558=_0x26cc9f;_0x1287c3[_0x404558('0x1523')][_0x404558('0x1099')]=![];});}function _0x307e77(_0x56cd7a,_0x3f324b){const _0x28ae39=_0x265dff;if(_0x3f324b['inReplyTo']){const _0x3d75e8=_0x49cbdd()[_0x28ae39('0xe8e')](_0x1287c3['messages'][_0x28ae39('0x2319')],{'messageId':_0x3f324b[_0x28ae39('0x36a')]});if(_0x3d75e8)_0x2208f3(_0x56cd7a,_0x3d75e8);else return _0x35268a[_0x28ae39('0x2839')][_0x28ae39('0x1c53')]({'messageId':_0x3f324b[_0x28ae39('0x36a')]})[_0x28ae39('0x1af5')][_0x28ae39('0x17e7')](function(_0x4e1224){const _0x1c6d46=_0x28ae39;_0x2208f3(_0x56cd7a,_0x4e1224&&_0x4e1224['count']?_0x4e1224[_0x1c6d46('0x2319')][0x0]:undefined);})[_0x28ae39('0x16df')](function(_0x58c315){console['error'](_0x58c315),_0x2208f3(_0x56cd7a,undefined);});}else _0x2208f3(_0x56cd7a,_0x3f324b);}function _0x303fe8(_0xf378bc){const _0x4a77f3=_0x265dff,_0x417258={'to':[]};_0x417258['to'][_0x4a77f3('0x269f')](_0x1287c3[_0x4a77f3('0x1c58')][_0x4a77f3('0xc23')]),_0x31944f[_0x4a77f3('0x28e2')]({'controller':'ComposeFaxInteractionDialogController','controllerAs':'vm','templateUrl':_0x58ae6b,'parent':angular[_0x4a77f3('0x1ce1')](_0x4b3db6['body']),'clickOutsideToClose':![],'locals':{'account':_0x1287c3[_0x4a77f3('0x2679')],'message':_0x417258,'type':_0xf378bc},'fullscreen':!![]})['then'](function(_0x364c94){const _0x19d814=_0x4a77f3;return _0x35268a[_0x19d814('0x119')][_0x19d814('0x13b7')]({'id':_0x1287c3['account']['id']},_0x364c94)[_0x19d814('0x1af5')][_0x19d814('0x17e7')](function(_0x1e3799){const _0x2d7396=_0x19d814;_0xa56825[_0x2d7396('0x130d')]({'title':_0x2d7396('0x235b'),'msg':_0x2d7396('0x2235')}),_0x50aa5b[_0x2d7396('0x178c')]['vm'][_0x2d7396('0x3a2')](_0x2d7396('0xc23'),_0x1e3799);})[_0x19d814('0x16df')](function(_0xc86562){const _0x1f9d6c=_0x19d814;if(_0xc86562[_0x1f9d6c('0x1457')]&&_0xc86562['data'][_0x1f9d6c('0x73e')]&&_0xc86562['data']['errors'][_0x1f9d6c('0x1f73')])for(let _0x3f6787=0x0;_0x3f6787<_0xc86562['data']['errors']['length'];_0x3f6787++){_0xa56825[_0x1f9d6c('0x1db9')]({'title':_0xc86562[_0x1f9d6c('0x1457')]['errors'][_0x3f6787]['type'],'msg':_0xc86562[_0x1f9d6c('0x1457')][_0x1f9d6c('0x73e')][_0x3f6787][_0x1f9d6c('0x1603')]});}else _0xa56825['error']({'title':_0x1f9d6c('0x2c'),'msg':_0xc86562['data']?JSON['stringify'](_0xc86562[_0x1f9d6c('0x1457')]):_0xc86562[_0x1f9d6c('0x1603')]||_0xc86562[_0x1f9d6c('0x9b6')]()});});});}function _0x132fa6(_0x21a75a,_0x827593){const _0xd87c07=_0x265dff;_0x31944f[_0xd87c07('0x28e2')]({'controller':'ComposeSmsInteractionDialogController','controllerAs':'vm','templateUrl':_0x2dfbc2,'parent':angular['element'](_0x4b3db6[_0xd87c07('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x1287c3[_0xd87c07('0x2679')],'message':_0x827593,'type':_0x21a75a},'fullscreen':!![],'skipHide':Boolean(_0x1287c3[_0xd87c07('0x1523')]['spy'])})[_0xd87c07('0x17e7')](function(_0x52bc9b){_0x52bc9b&&_0x578417(_0x52bc9b);});}function _0x475148(_0x1646b3,_0x4516b9){const _0x56a880=_0x265dff;_0x31944f[_0x56a880('0x28e2')]({'controller':'ComposeWhatsappInteractionDialogController','controllerAs':'vm','templateUrl':_0x31690b,'parent':angular[_0x56a880('0x1ce1')](_0x4b3db6[_0x56a880('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x1287c3[_0x56a880('0x2679')],'message':_0x4516b9,'type':_0x1646b3},'fullscreen':!![],'skipHide':Boolean(_0x1287c3[_0x56a880('0x1523')]['spy'])})[_0x56a880('0x17e7')](function(_0x3a1465){_0x3a1465&&_0x578417(_0x3a1465);});}function _0x231204(){const _0x1419a9=_0x265dff;if(_0x1287c3[_0x1419a9('0x1219')]){const _0x1f29b7=_0x49cbdd()[_0x1419a9('0xb17')](_0x1287c3[_0x1419a9('0xdd9')][_0x1419a9('0x2319')],function(_0x5a7659){const _0xf058ba=_0x1419a9;return _0x5a7659[_0xf058ba('0x733')]==='in';});_0x1f29b7?_0x31944f['show']({'controller':'TransferMessageDialogController','controllerAs':'vm','templateUrl':_0x464898,'parent':angular[_0x1419a9('0x1ce1')](_0x4b3db6[_0x1419a9('0x13aa')]),'clickOutsideToClose':![],'locals':{'account':_0x1287c3[_0x1419a9('0x2679')],'interaction':_0x1287c3[_0x1419a9('0x1219')],'message':_0x1f29b7,'channel':_0x1287c3['tab'][_0x1419a9('0x15d7')]}})[_0x1419a9('0x17e7')](function(_0x45f9b1){const _0x42422e=_0x1419a9;_0x1287c3[_0x42422e('0x1523')][_0x42422e('0x51d')]=Boolean(_0x45f9b1),_0x45f9b1&&_0x50aa5b[_0x42422e('0x178c')][_0x42422e('0x178c')]['$parent']['vm'][_0x42422e('0x1dd5')](_0x1287c3[_0x42422e('0x1523')]);}):_0xa56825[_0x1419a9('0x1db9')]({'title':_0x1419a9('0x2452'),'msg':'Message\x20not\x20found!'});}}function _0x19df16(_0x113378){const _0x2eaaf7=_0x265dff,_0xcfb40d={},_0x4e68dd=_0x1287c3[_0x2eaaf7('0x1523')][_0x2eaaf7('0x15d7')]==='chat'?_0x2eaaf7('0x259'):_0x49cbdd()[_0x2eaaf7('0xb41')](_0x1287c3[_0x2eaaf7('0x1523')]['channel'])+_0x2eaaf7('0x2554');return _0xcfb40d[_0x4e68dd]=_0x1287c3[_0x2eaaf7('0x1219')][_0x4e68dd][_0x2eaaf7('0x9b6')](),_0xcfb40d[_0x49cbdd()[_0x2eaaf7('0xb41')](_0x1287c3[_0x2eaaf7('0x1523')][_0x2eaaf7('0x15d7')])+_0x2eaaf7('0x1bb7')]=_0x1287c3[_0x2eaaf7('0x1219')]['id'],(_0x1287c3[_0x2eaaf7('0x1523')][_0x2eaaf7('0x15d7')]===_0x2eaaf7('0x2cd')||_0x1287c3[_0x2eaaf7('0x1523')][_0x2eaaf7('0x15d7')]===_0x2eaaf7('0x1d27'))&&(_0xcfb40d[_0x2eaaf7('0x2154')]=_0x1287c3[_0x2eaaf7('0x1219')][_0x2eaaf7('0x2154')]),_0x113378&&(_0xcfb40d[_0x2eaaf7('0x5e5')]=_0x1287c3[_0x2eaaf7('0x221e')]['id'],_0xcfb40d[_0x2eaaf7('0x1e84')]=_0x1287c3['interaction'][_0x2eaaf7('0x1e84')],_0xcfb40d[_0x2eaaf7('0x13aa')]=_0x113378),_0xcfb40d;}function _0x88197a(_0x2a9f75){const _0x1d4371=_0x265dff;if(_0x2a9f75[_0x1d4371('0xf04')]>_0x13fa47)return _0xa56825[_0x1d4371('0x1db9')]({'title':_0x1d4371('0x586'),'msg':_0x1d4371('0x349')+_0xdbccd9+'MB'}),![];return!![];}function _0x582841(_0x43cf39,_0x301021){const _0x4e7aec=_0x265dff,_0x5336be=JSON[_0x4e7aec('0x1f0a')](_0x301021);let _0x44d675=_0x5336be[_0x4e7aec('0x2aa')];_0x1287c3[_0x4e7aec('0x1523')][_0x4e7aec('0x15d7')]===_0x4e7aec('0x2219')&&(_0x44d675=']+>/gm,''):'';}function _0x5352fe(_0x2104d3){const _0x591e46=_0x265dff;switch(_0x1287c3[_0x591e46('0x1523')][_0x591e46('0x15d7')]){case _0x591e46('0xc2'):_0x1287c3[_0x591e46('0x283b')][_0x591e46('0xd5')][_0x591e46('0x27fc')]=_0x2104d3?_0x49cbdd()[_0x591e46('0xe8e')](_0x1287c3[_0x591e46('0x1219')][_0x591e46('0xd08')],['id',_0x2104d3]):_0x1287c3[_0x591e46('0x1219')][_0x591e46('0xd08')][_0x1287c3[_0x591e46('0x1219')][_0x591e46('0xd08')][_0x591e46('0x1f73')]-0x1],_0x2208f3(_0x1287c3[_0x591e46('0x283b')][_0x591e46('0x412')],_0x1287c3[_0x591e46('0x283b')]['content']);break;case _0x591e46('0xc23'):break;case _0x591e46('0x1508'):break;case _0x591e46('0x2cd'):break;case _0x591e46('0x1d27'):break;}}_0x50aa5b[_0x265dff('0x207c')](_0x265dff('0x2b4'),function(){const _0x7d052c=_0x265dff;_0x35dd33[_0x7d052c('0x1c65')](_0x1287c3[_0x7d052c('0x1523')]['channel']+'Message:save'),_0x35dd33[_0x7d052c('0x1c65')](_0x1287c3[_0x7d052c('0x1523')]['channel']+'Message:update'),_0x35dd33['removeAllListeners'](_0x1287c3['tab'][_0x7d052c('0x15d7')]+'Interaction:save'),_0x35dd33[_0x7d052c('0x1c65')](_0x1287c3[_0x7d052c('0x1523')][_0x7d052c('0x15d7')]+_0x7d052c('0x1f24')),_0x35dd33[_0x7d052c('0x1c65')]('user_has_'+_0x1287c3[_0x7d052c('0x1523')][_0x7d052c('0x15d7')]+_0x7d052c('0x9f6')),_0x35dd33[_0x7d052c('0x1c65')](_0x7d052c('0x251e')+_0x1287c3[_0x7d052c('0x1523')]['channel']+_0x7d052c('0x24ca'));});function _0x5928ba(_0x1cf3ce){const _0x501a04=_0x265dff,_0x3bf34c={'id':_0x1cf3ce['id']};return _0x35268a['chatInteraction'][_0x501a04('0xf34')](_0x3bf34c)[_0x501a04('0x1af5')][_0x501a04('0x17e7')](function(){const _0x54694c=_0x501a04;_0xa56825[_0x54694c('0x130d')]({'title':_0x54694c('0x1996'),'msg':'Session\x20properly\x20created.'});})[_0x501a04('0x16df')](function(){const _0x10872c=_0x501a04;_0xa56825['error']({'title':_0x10872c('0x1996'),'msg':_0x10872c('0x1716')});});}}function _0x17207a(_0x4cdec7){const _0x1c1452=_0x4376d8;return{'scope':{'ngBindHtmlUnsafe':'='},'template':_0x1c1452('0x781'),'link':function(_0x20a0e6){const _0x153631=_0x1c1452;function _0x44caef(){const _0x51bd96=a0_0xd29e,_0x529e42=_0x51bd96('0x69')+Math[_0x51bd96('0x211e')](Math[_0x51bd96('0x13ce')]()*0x270f+0x1);return _0x51bd96('0x2392')+_0x529e42+_0x51bd96('0x1c5c')+_0x529e42+_0x51bd96('0x133');}_0x20a0e6[_0x153631('0x1a3')]=function(){const _0x1ba259=_0x153631,_0x262d75=_0x49cbdd()[_0x1ba259('0x737')](_0x20a0e6[_0x1ba259('0x1ae7')],_0x1ba259('0x1b5d'),_0x44caef());_0x20a0e6[_0x1ba259('0x25f')]=_0x4cdec7[_0x1ba259('0x1e60')](_0x262d75);},_0x20a0e6[_0x153631('0x620')](_0x153631('0x1ae7'),function(_0x1c5edf){const _0x347c38=_0x153631;_0x20a0e6[_0x347c38('0x1a3')](_0x1c5edf);});}};}function _0xc83e32(){return function(_0x9ecc92,_0x9ac89f,_0x9edfce,_0x53e010){const _0x4511d8=a0_0xd29e,_0x86afdf=[];for(let _0x380ff5=0x0;_0x380ff5<_0x9ecc92[_0x4511d8('0x1f73')];_0x380ff5+=0x1){let _0x3371ff=!![];switch(_0x9ac89f){case _0x4511d8('0x1fe1'):_0x3371ff=Boolean(_0x9ecc92[_0x380ff5]['uniqueid']);break;case _0x4511d8('0x2219'):_0x3371ff=Boolean(_0x9ecc92[_0x380ff5][_0x4511d8('0x259')]);break;case'mail':_0x3371ff=Boolean(_0x9ecc92[_0x380ff5][_0x4511d8('0xbda')]);break;case'sms':_0x3371ff=Boolean(_0x9ecc92[_0x380ff5][_0x4511d8('0x17fe')]);break;case _0x4511d8('0x1d27'):_0x3371ff=Boolean(_0x9ecc92[_0x380ff5]['WhatsappAccountId']);break;case _0x4511d8('0xc23'):_0x3371ff=Boolean(_0x9ecc92[_0x380ff5][_0x4511d8('0x24f9')]);break;case _0x4511d8('0x1508'):_0x3371ff=Boolean(_0x9ecc92[_0x380ff5][_0x4511d8('0x1969')]);break;default:_0x3371ff=!![];break;}_0x3371ff&&(_0x9edfce&&_0x53e010&&(_0x3371ff=_0x107a13()(_0x9ecc92[_0x380ff5][_0x4511d8('0x7c9')])[_0x4511d8('0xdbd')](_0x107a13()(_0x9edfce)[_0x4511d8('0x1376')](0x0,!![]),_0x107a13()(_0x53e010)[_0x4511d8('0x1376')](0x0,!![])['add'](0x17,'hours')['add'](0x3b,_0x4511d8('0x1abd'))[_0x4511d8('0xd62')](0x3b,'seconds')))),_0x3371ff&&_0x86afdf[_0x4511d8('0x269f')](_0x9ecc92[_0x380ff5]);}return _0x86afdf;};}function _0x52c200(){const _0x240777=_0x4376d8;return{'watchEmbedData':![],'sanitizeHtml':![],'fontSmiley':![],'emoji':!![],'link':!![],'linkTarget':_0x240777('0x1c7'),'pdf':{'embed':!![]},'image':{'embed':!![]},'audio':{'embed':!![]},'basicVideo':![],'gdevAuth':_0x240777('0xa32'),'video':{'embed':![],'width':null,'height':null,'ytTheme':_0x240777('0x1876'),'details':![],'thumbnailQuality':_0x240777('0x1c6d'),'autoPlay':!![]},'twitchtvEmbed':!![],'dailymotionEmbed':!![],'tedEmbed':!![],'dotsubEmbed':!![],'liveleakEmbed':!![],'ustreamEmbed':!![],'soundCloudEmbed':!![],'soundCloudOptions':{'height':0xa0,'themeColor':_0x240777('0x1b32'),'autoPlay':![],'hideRelated':![],'showComments':!![],'showUser':!![],'showReposts':![],'visual':![],'download':![]},'spotifyEmbed':!![],'tweetEmbed':!![],'tweetOptions':{'maxWidth':0x226,'hideMedia':![],'hideThread':![],'align':'none','lang':'en'},'code':{'highlight':!![],'lineNumbers':![]},'codepenEmbed':!![],'codepenHeight':0x12c,'jsfiddleEmbed':!![],'jsfiddleHeight':0x12c,'jsbinEmbed':!![],'jsbinHeight':0x12c,'plunkerEmbed':!![],'githubgistEmbed':!![],'ideoneEmbed':!![],'ideoneHeight':0x12c};}const _0x38d6e5=_0x52c200;_0xc13abf[_0x4376d8('0x1b9c')]=['$cookies',_0x4376d8('0x198f'),_0x4376d8('0x14f6'),_0x4376d8('0x2f8'),_0x4376d8('0x2679'),_0x4376d8('0x1603'),_0x4376d8('0x412'),_0x4376d8('0x212e'),'toasty'];function _0xc13abf(_0x24f329,_0x125a3e,_0x334359,_0x5dce1b,_0x1dddbe,_0x93ceb7,_0xc77d3d,_0x51c833,_0x414ea9){const _0x265d2e=_0x4376d8,_0x59c0db=this,_0x385cb4=0x19,_0x271f3f=_0x385cb4*0x400*0x400;_0x59c0db[_0x265d2e('0x9d5')]=[_0x5dce1b[_0x265d2e('0x13d6')][_0x265d2e('0x1aae')],_0x5dce1b[_0x265d2e('0x13d6')][_0x265d2e('0xfb8')],_0x5dce1b[_0x265d2e('0x13d6')][_0x265d2e('0x24bc')]],_0x59c0db[_0x265d2e('0x1603')]={'from':_0x1dddbe[_0x265d2e('0x2751')],'to':_0x49cbdd()[_0x265d2e('0x390')](_0x93ceb7['to'])||_0x49cbdd()[_0x265d2e('0x109a')](_0x93ceb7['to'])?[]:_0x93ceb7['to'],'attachments':[]},_0x59c0db[_0x265d2e('0x1713')]={'target':_0x265d2e('0x15c'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x271f3f,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x59c0db[_0x265d2e('0xbdf')]={'flow':{}},_0x59c0db[_0x265d2e('0x13b7')]=_0x38dfb6,_0x59c0db['upload']=_0x5f3975,_0x59c0db[_0x265d2e('0x1852')]=_0x16b98b,_0x59c0db[_0x265d2e('0xb73')]=_0x32031c,_0x59c0db[_0x265d2e('0x1200')]=_0x4d4d18,_0x59c0db[_0x265d2e('0x10fc')]=_0xc30945,_0x59c0db['transformContact']=_0x40527a,_0x59c0db['closeDialog']=_0x53c5af;function _0x1dea9c(){const _0x5ccdd6=_0x265d2e;_0x334359[_0x5ccdd6('0x212a')]({'from':_0x59c0db[_0x5ccdd6('0x1603')][_0x5ccdd6('0x12da')],'to':_0x59c0db['message']['to'],'attach':_0x59c0db['message'][_0x5ccdd6('0x240d')][_0x5ccdd6('0x1f73')],'attachments':_0x59c0db[_0x5ccdd6('0x1603')][_0x5ccdd6('0x240d')]});}function _0x38dfb6(){const _0x325f56=_0x265d2e;_0x59c0db[_0x325f56('0x1603')][_0x325f56('0x240d')][_0x325f56('0x1f73')]===0x1?_0x59c0db[_0x325f56('0x1603')]['to'][_0x325f56('0x1f73')]?(_0x93ceb7[_0x325f56('0x283b')]=undefined,_0x1dea9c()):_0x414ea9[_0x325f56('0x1db9')](_0x325f56('0x6f9')):_0x414ea9[_0x325f56('0x1db9')](_0x325f56('0x1041'));}function _0x5f3975(){const _0x3d3bb5=_0x265d2e;_0x59c0db[_0x3d3bb5('0xbdf')][_0x3d3bb5('0x3bb')][_0x3d3bb5('0x1771')]['headers']={'X-Requested-With':'XMLHttpRequest','Authorization':'Bearer\x20'+_0x24f329['get'](_0x3d3bb5('0xb2a'))},_0x59c0db[_0x3d3bb5('0xbdf')][_0x3d3bb5('0x3bb')][_0x3d3bb5('0x624')]();}function _0x32031c(_0x3211ab){const _0x353458=_0x265d2e,_0x7787f3=[_0x353458('0x1b3e'),_0x353458('0x26c1')];if(!_0x49cbdd()['includes'](_0x7787f3,_0x3211ab[_0x353458('0x11b0')]()))return _0x414ea9[_0x353458('0x1db9')]({'title':'Invalid\x20extension:\x20'+_0x3211ab[_0x353458('0x11b0')](),'msg':_0x353458('0x40b')+_0x7787f3[_0x353458('0x1eba')]()}),![];if(_0x3211ab[_0x353458('0xf04')]>_0x271f3f)return _0x414ea9[_0x353458('0x1db9')]({'title':_0x353458('0x586'),'msg':_0x353458('0x349')+_0x385cb4+'MB'}),![];return!![];}function _0x16b98b(_0x196b6e,_0x4b4d1d){const _0x5daf80=_0x265d2e;try{_0x4b4d1d=JSON['parse'](_0x4b4d1d),_0x4b4d1d[_0x5daf80('0xf04')]=_0x196b6e[_0x5daf80('0xf04')],_0x59c0db[_0x5daf80('0x1603')][_0x5daf80('0x240d')][_0x5daf80('0x269f')](_0x4b4d1d);}catch(_0x5eb290){console['error'](_0x5eb290);}}function _0x4d4d18(_0x5bee3d){const _0x19791c=_0x265d2e;let _0x11af01='';return _0x5bee3d[_0x19791c('0x1761')]&&_0x5bee3d[_0x19791c('0x1761')]!==_0x5bee3d[_0x19791c('0xc23')]&&(_0x11af01+=_0x5bee3d[_0x19791c('0x1761')]+'\x20'),_0x5bee3d[_0x19791c('0x8d6')]&&_0x5bee3d[_0x19791c('0x8d6')]!==_0x5bee3d[_0x19791c('0xc23')]&&(_0x11af01+=_0x5bee3d['lastName']+'\x20'),_0x11af01+='<'+_0x5bee3d[_0x19791c('0xc23')]+'>';}function _0x40527a(_0x38e82f){const _0x3de0fe=_0x265d2e,_0x5beac9=_0x38e82f;if(_0x49cbdd()[_0x3de0fe('0xfd1')](_0x38e82f))return _0x38e82f['fax'];if(_0x44c5bf(_0x5beac9))return _0x5beac9;return _0x414ea9[_0x3de0fe('0x1db9')](_0x3de0fe('0x1934')+_0x5beac9+_0x3de0fe('0x7b6')),null;}function _0x44c5bf(_0x1ea090){const _0x572e34=_0x265d2e,_0x51ebf2=/[&/\\#,()$~%.'":;*?<>{}\s\\|a-zA-Z\pS!òàùè…_§°çéì-]/;return!_0x51ebf2[_0x572e34('0x1ec')](_0x1ea090);}function _0xc30945(_0x3f1504){const _0x3f3227=_0x265d2e;return _0x1dddbe&&_0x1dddbe[_0x3f3227('0x7f8')]?_0x51c833[_0x3f3227('0x1d2a')][_0x3f3227('0x1c53')]({'ListId':_0x1dddbe[_0x3f3227('0x7f8')],'nolimit':!![],'filter':_0x3f1504,'fields':_0x3f3227('0xe92')})[_0x3f3227('0x1af5')][_0x3f3227('0x17e7')](function(_0xecb0db){const _0x15ca75=_0x3f3227;return _0xecb0db[_0x15ca75('0x2319')];}):[];}function _0x53c5af(){const _0xdbc60e=_0x265d2e;_0x93ceb7['draft']=_0x59c0db[_0xdbc60e('0x1603')],_0x334359[_0xdbc60e('0x1d47')]();}}const _0x17cb17=_0xc13abf;_0x35cf69[_0x4376d8('0x1b9c')]=['$cookies','$window',_0x4376d8('0x14f6'),_0x4376d8('0x2f8'),_0x4376d8('0x28da'),'account',_0x4376d8('0x1603'),_0x4376d8('0x412'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'$q',_0x4376d8('0x1885'),'interaction',_0x4376d8('0x858')];function _0x35cf69(_0x308115,_0x45a26a,_0x974958,_0x588ee7,_0x24e3a9,_0x10783,_0x1a1894,_0x6af71a,_0x3588e0,_0x4ceaff,_0x3f9fe4,_0x43b932,_0x37773f,_0x9dd495){const _0x72890e=_0x4376d8,_0x5603bb=this,_0x17b976=0x19,_0x504f61=_0x17b976*0x400*0x400;_0x5603bb[_0x72890e('0x197c')]=_0x43b932[_0x72890e('0x2831')](),_0x5603bb['secret']=_0x6af71a===_0x72890e('0x1eb0')?!![]:![],_0x5603bb['hiddenCC']=!![],_0x5603bb[_0x72890e('0x1b86')]=!![],_0x5603bb['verifySmtp']=!![],_0x5603bb[_0x72890e('0x73e')]=[],_0x5603bb[_0x72890e('0x9d5')]=[_0x588ee7[_0x72890e('0x13d6')][_0x72890e('0x1aae')],_0x588ee7[_0x72890e('0x13d6')]['COMMA'],_0x588ee7[_0x72890e('0x13d6')][_0x72890e('0x24bc')]],_0x5603bb['searchTextChange']=_0x3d923b,_0x5603bb[_0x72890e('0x26bf')]=_0x483cb6,_0x5603bb[_0x72890e('0x1725')]=_0x214056,_0x49cbdd()[_0x72890e('0x1d7e')][_0x72890e('0x24ae')]=/{{([\s\S]+?)}}/g,_0x5603bb[_0x72890e('0x2493')]=_0x49cbdd()[_0x72890e('0x2260')](_0x72890e('0x3c2')),_0x5603bb[_0x72890e('0x1e09')]=_0x49cbdd()[_0x72890e('0x2260')]('On\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}},\x20{{\x20from\x20}}\x20wrote:'),_0x5603bb[_0x72890e('0x2193')]=_0x49cbdd()[_0x72890e('0x2260')]('Begin\x20forwarded\x20message:

From:\x20{{\x20from\x20}}
Subject:\x20{{\x20subject\x20}}
Date:\x20{{\x20date\x20}},\x20at\x20{{\x20time\x20}}
To:\x20{{\x20to\x20}}'),_0x5603bb[_0x72890e('0x1603')]={'from':_0x5603bb[_0x72890e('0x2493')]({'name':_0x10783['name'],'email':_0x10783['email']||_0x10783[_0x72890e('0x251f')][_0x72890e('0x221e')]}),'to':[],'cc':[],'bcc':[],'body':_0x252bde(),'type':_0x6af71a,'attachments':[],'showLastMessage':!![]},_0x5603bb[_0x72890e('0x283b')]=null,_0x5603bb[_0x72890e('0x27e2')]={'skin':_0x72890e('0x14b5'),'startupFocus':!![],'language':'en','allowedContent':!![],'extraPlugins':_0x72890e('0x218b'),'toolbarGroups':[{'name':_0x72890e('0x2113'),'groups':[_0x72890e('0x2113')]},{'name':_0x72890e('0x1340'),'groups':['undo']},{'name':'colors','groups':['colors']},{'name':_0x72890e('0x250a'),'groups':['basicstyles']},{'name':_0x72890e('0x22fb'),'groups':['list',_0x72890e('0x2708'),_0x72890e('0x917')]}],'autoGrow_onStartup':!![],'autoGrow_minHeight':_0x5603bb[_0x72890e('0x1c8e')]?0xa0:0x12c,'autoGrow_maxHeight':_0x45a26a['innerHeight']-0x190,'autocorrect_enabled':!![],'disableNativeSpellChecker':![],'enterMode':window[_0x72890e('0x1007')][_0x72890e('0x795')],'font_defaultLabel':_0x10783[_0x72890e('0xa64')]?_0x10783[_0x72890e('0xa64')][_0x72890e('0x2007')](',')[0x0]:_0x72890e('0x542'),'fontSize_defaultLabel':_0x10783[_0x72890e('0x2210')]||'12','removePlugins':'magicline'};const _0x31d1d5=[];for(let _0x189073=0x8;_0x189073<=0x48;_0x189073++){_0x31d1d5['push'](_0x189073+'/'+_0x189073+'pt');}_0x5603bb[_0x72890e('0x27e2')]['fontSize_sizes']=_0x31d1d5[_0x72890e('0x1eba')](';'),_0x5603bb[_0x72890e('0x1713')]={'target':_0x72890e('0x15c'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x504f61,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x5603bb[_0x72890e('0xbdf')]={'flow':{}},_0x5603bb[_0x72890e('0x1862')]=_0x425de6,_0x5603bb['newMail']=_0x3dffe7,_0x5603bb[_0x72890e('0x19f0')]=_0x4a7c85,_0x5603bb[_0x72890e('0x23cd')]=_0x58a2c8,_0x5603bb[_0x72890e('0x13b7')]=_0x6c7e1c,_0x5603bb[_0x72890e('0x1eb0')]=_0x4f1733,_0x5603bb[_0x72890e('0x541')]=_0x352deb,_0x5603bb[_0x72890e('0x624')]=_0x5be35b,_0x5603bb[_0x72890e('0x1852')]=_0xe98073,_0x5603bb[_0x72890e('0xf35')]=_0x3437bd,_0x5603bb[_0x72890e('0xb73')]=_0x3144bd,_0x5603bb['getContact']=_0x4026cc,_0x5603bb[_0x72890e('0x10fc')]=_0x1df0c7,_0x5603bb[_0x72890e('0x62f')]=_0x1a527b,_0x5603bb[_0x72890e('0x14c8')]=_0x30cba0,_0x5603bb[_0x72890e('0x136e')]=_0x2ae54e,_0x5603bb[_0x72890e('0x17bb')]=_0x133058;switch(_0x6af71a){case _0x72890e('0x1862'):_0x5603bb['reply'](![]);break;case _0x72890e('0xf7c'):_0x5603bb[_0x72890e('0x1862')](!![]);break;case'forward':_0x5603bb[_0x72890e('0x19f0')]();break;case _0x72890e('0x283b'):_0x5603bb[_0x72890e('0x23cd')]();break;case _0x72890e('0x1b39'):_0x5603bb[_0x72890e('0x1201')]();break;case _0x72890e('0x1eb0'):_0x5603bb[_0x72890e('0x1eb0')]();break;}_0x3588e0[_0x72890e('0x66')][_0x72890e('0x1c53')]({'nolimit':!![]})['$promise'][_0x72890e('0x17e7')](function(_0x3d34b5){const _0x400b1b=_0x72890e;_0x5603bb[_0x400b1b('0x1abe')]=_0x3d34b5||{'count':0x0,'rows':[]};})[_0x72890e('0x16df')](function(_0x1e9a93){const _0x45afd2=_0x72890e;console[_0x45afd2('0x1db9')](_0x1e9a93);});!_0x5603bb['secret']&&_0x43043f();function _0x425de6(_0x3fa91a){const _0x1ff487=_0x72890e;angular['isDefined'](_0x1a1894)&&(_0x5603bb[_0x1ff487('0x1603')]['type']=_0x1ff487('0x1862'),_0x5603bb[_0x1ff487('0x1603')]['to']=_0x1a1894[_0x1ff487('0x733')]==='in'?_0x1a1894[_0x1ff487('0x12da')][_0x1ff487('0x2007')](','):_0x1a1894['to'][_0x1ff487('0x2007')](','),_0x5603bb[_0x1ff487('0x1603')][_0x1ff487('0x2179')]=_0x49cbdd()['startsWith'](_0x1a1894['subject'],_0x1ff487('0x9ba'))?_0x1a1894[_0x1ff487('0x2179')]:_0x1ff487('0xf0')+_0x1a1894['subject'],_0x5603bb['message'][_0x1ff487('0x36a')]=_0x1a1894[_0x1ff487('0x216f')],_0x5603bb[_0x1ff487('0x1603')][_0x1ff487('0x13aa')]=_0x252bde(),_0x5603bb[_0x1ff487('0x1603')][_0x1ff487('0x240d')]=[],_0x3fa91a&&_0x1a1894['cc']&&(_0x5603bb[_0x1ff487('0x1ad2')]=![],_0x5603bb[_0x1ff487('0x1603')]['cc']=_0x1a1894['cc'][_0x1ff487('0x2007')](',')),_0x5603bb['message'][_0x1ff487('0x15b2')]=![]);}function _0x3dffe7(){const _0x191b35=_0x72890e;angular[_0x191b35('0x170a')](_0x1a1894)&&(_0x5603bb[_0x191b35('0x1603')][_0x191b35('0x412')]=_0x191b35('0x1b39'),_0x5603bb[_0x191b35('0x1603')]['to']=_0x1a1894['to']?_0x1a1894['to'][_0x191b35('0x2007')](','):[]);}function _0x58a2c8(){const _0x29d7d8=_0x72890e;_0x5603bb['isDraft']=!![],angular['isDefined'](_0x1a1894)&&(_0x1a1894[_0x29d7d8('0xa8b')]=![],_0x5603bb[_0x29d7d8('0x1603')]=angular[_0x29d7d8('0x14e5')](_0x1a1894),!_0x49cbdd()[_0x29d7d8('0x109a')](_0x5603bb[_0x29d7d8('0x1603')]['cc'])&&(_0x5603bb[_0x29d7d8('0x1ad2')]=![]),!_0x49cbdd()[_0x29d7d8('0x109a')](_0x5603bb[_0x29d7d8('0x1603')][_0x29d7d8('0x427')])&&(_0x5603bb[_0x29d7d8('0x1b86')]=![]));}function _0x4a7c85(){const _0x2174e9=_0x72890e;if(angular[_0x2174e9('0x170a')](_0x1a1894)){_0x5603bb['message'][_0x2174e9('0x412')]='forward',_0x5603bb[_0x2174e9('0x1603')][_0x2174e9('0x2179')]=_0x49cbdd()[_0x2174e9('0x818')](_0x1a1894[_0x2174e9('0x2179')],_0x2174e9('0x91d'))?_0x1a1894['subject']:_0x2174e9('0x20d9')+_0x1a1894[_0x2174e9('0x2179')],_0x5603bb['message'][_0x2174e9('0x13aa')]=_0x252bde();if(_0x1a1894[_0x2174e9('0x1567')]&&_0x1a1894['Attachments'][_0x2174e9('0x1f73')])for(let _0x33c567=0x0;_0x33c567<_0x1a1894['Attachments']['length'];_0x33c567++){_0x5603bb[_0x2174e9('0x1603')]['attachments'][_0x2174e9('0x269f')](_0x1a1894[_0x2174e9('0x1567')][_0x33c567]);}_0x5603bb[_0x2174e9('0x1603')][_0x2174e9('0x15b2')]=![];}}function _0x4f1733(){const _0x5268c1=_0x72890e;_0x5603bb['type']=_0x5268c1('0x1eb0'),_0x5603bb['secret']=!![],_0x5603bb['message'][_0x5268c1('0x13aa')]=_0x5268c1('0x1c21')+_0x10783[_0x5268c1('0xa64')]+_0x5268c1('0xf4b')+_0x10783[_0x5268c1('0x2210')]+_0x5268c1('0x22cc');}function _0x19d4e2(_0x2c4a6b,_0x1b17ee){const _0x4a3754=_0x72890e,_0x34582c={'from':_0x5603bb['message'][_0x4a3754('0x12da')],'to':_0x5603bb['message']['to'][_0x4a3754('0x1eba')](','),'cc':_0x5603bb[_0x4a3754('0x1603')]['cc']['join'](','),'bcc':_0x5603bb['message'][_0x4a3754('0x427')][_0x4a3754('0x1eba')](','),'subject':_0x5603bb[_0x4a3754('0x1603')][_0x4a3754('0x2179')],'body':_0x5603bb['message'][_0x4a3754('0x15b2')]?_0x5603bb[_0x4a3754('0x1603')][_0x4a3754('0x13aa')]:_0x5603bb[_0x4a3754('0x1603')][_0x4a3754('0x13aa')]+_0x1a1529(_0x5603bb[_0x4a3754('0x1603')][_0x4a3754('0x412')]),'inReplyTo':_0x5603bb['message']['inReplyTo'],'attach':_0x5603bb[_0x4a3754('0x1603')][_0x4a3754('0x240d')]['length'],'attachments':_0x5603bb['message'][_0x4a3754('0x240d')],'Interaction':{'lastMsgDirection':_0x4a3754('0x1e1a'),'lastMsgBody':_0x5603bb[_0x4a3754('0x1603')][_0x4a3754('0x13aa')],'substatus':_0x1b17ee},'isDraft':_0x5603bb['isDraft']};_0x34582c[_0x4a3754('0x19b6')]=_0x4a3754('0xff7')+_0x49cbdd()[_0x4a3754('0x737')](_0x34582c['body'],_0x4a3754('0x1b5d'),_0x4a3754('0xcbe'))+_0x4a3754('0x152'),_0x2c4a6b&&(_0x34582c['Interaction'][_0x4a3754('0x2bc')]=!![]),_0x974958['hide'](_0x34582c);}function _0x6c7e1c(_0x250930,_0x45daf0,_0x38628c){const _0x1df369=_0x72890e;if(_0x5603bb[_0x1df369('0x1603')]['to']&&_0x5603bb[_0x1df369('0x1603')][_0x1df369('0x13aa')]){if(_0x5603bb[_0x1df369('0x1603')]['to'][_0x1df369('0x1f73')]){if(_0x49cbdd()[_0x1df369('0x109a')](_0x5603bb['message'][_0x1df369('0x2179')])){const _0x532c4a=_0x974958[_0x1df369('0x1121')]({'skipHide':!![]})['title'](_0x1df369('0x2180'))['textContent'](_0x1df369('0x1ab6'))[_0x1df369('0x2095')](_0x1df369('0x2180'))['targetEvent'](_0x250930)['ok'](_0x1df369('0x1d4e'))['cancel'](_0x1df369('0x1b70'));_0x974958[_0x1df369('0x28e2')](_0x532c4a)['then'](function(){_0x19d4e2(_0x45daf0,_0x38628c);});}else _0x19d4e2(_0x45daf0,_0x38628c);}else _0x4ceaff[_0x1df369('0x1db9')](_0x1df369('0x6f9'));}}function _0x352deb(){const _0x5a5bd3=_0x72890e;_0x5603bb[_0x5a5bd3('0x1603')][_0x5a5bd3('0x13aa')]&&_0x974958[_0x5a5bd3('0x212a')]({'secret':!![],'body':_0x5603bb[_0x5a5bd3('0x1603')][_0x5a5bd3('0x13aa')],'attach':_0x5603bb[_0x5a5bd3('0x1603')]['attachments']['length'],'attachments':_0x5603bb[_0x5a5bd3('0x1603')][_0x5a5bd3('0x240d')]});}function _0x483cb6(_0x32025c){const _0x92cff4=_0x72890e;if(_0x32025c&&_0x32025c[_0x92cff4('0x175b')]&&_0x5603bb[_0x92cff4('0x16e7')])try{const _0x1d4bdd=_0x49cbdd()[_0x92cff4('0x2260')](_0x32025c['value']),_0x5e4a71={'user':_0x5603bb['currentUser'],'account':_0x10783,'interaction':_0x37773f,'contact':_0x37773f&&_0x37773f[_0x92cff4('0x239b')]?_0x37773f[_0x92cff4('0x239b')]:{}};_0x5603bb[_0x92cff4('0x16e7')][_0x92cff4('0x1b36')](_0x1d4bdd(_0x5e4a71));}catch(_0x46c7a4){console[_0x92cff4('0x1db9')](_0x46c7a4),_0x5603bb[_0x92cff4('0x16e7')][_0x92cff4('0x1b36')](_0x32025c[_0x92cff4('0x175b')]);}document[_0x92cff4('0x4c2')]('html-area')[_0x92cff4('0x1d4f')](),_0x5603bb[_0x92cff4('0x1960')]=null;}function _0x3d923b(_0x42b062){const _0x35f737=_0x72890e,_0x29ee75=_0x3f9fe4[_0x35f737('0x113c')]();let _0xff6c68=[];return _0x3588e0[_0x35f737('0x2043')][_0x35f737('0x1c53')]({'filter':_0x42b062,'MailAccountId':_0x10783['id']})[_0x35f737('0x1af5')][_0x35f737('0x17e7')](function(_0x1e6b29){const _0x19c24e=_0x35f737;return _0xff6c68=_0x49cbdd()[_0x19c24e('0xe1b')](_0xff6c68,_0x1e6b29['rows']),_0x3588e0[_0x19c24e('0x2043')][_0x19c24e('0x1c53')]({'filter':_0x42b062})[_0x19c24e('0x1af5')];})['then'](function(_0x4375dd){const _0x33b900=_0x35f737;_0xff6c68=_0x49cbdd()[_0x33b900('0xe1b')](_0xff6c68,_0x49cbdd()['filter'](_0x4375dd[_0x33b900('0x2319')],function(_0x38daf2){const _0x11295a=_0x33b900;return!_0x38daf2[_0x11295a('0xbda')]&&!_0x38daf2[_0x11295a('0x24f9')]&&!_0x38daf2[_0x11295a('0x17fe')]&&!_0x38daf2[_0x11295a('0x10d7')]&&!_0x38daf2[_0x11295a('0x1969')]&&!_0x38daf2[_0x11295a('0x259')];})),_0x29ee75[_0x33b900('0x898')](_0xff6c68);})[_0x35f737('0x16df')](function(_0x29c74d){const _0x4f5ac7=_0x35f737;_0x29ee75[_0x4f5ac7('0x1ad1')](_0x29c74d);}),_0x29ee75[_0x35f737('0x1691')];}function _0x214056(){const _0x24faa9=_0x72890e;try{_0x5603bb[_0x24faa9('0x16e7')]=window[_0x24faa9('0x1007')][_0x24faa9('0x11fc')][_0x24faa9('0x2079')];}catch(_0x56af78){console[_0x24faa9('0x1db9')](_0x24faa9('0x21b8'),_0x56af78);}}function _0x43043f(){const _0x5e9808=_0x72890e;return _0x3588e0[_0x5e9808('0x127b')][_0x5e9808('0x1bf1')]({'id':_0x10783['id']})[_0x5e9808('0x1af5')][_0x5e9808('0x16df')](function(_0x285937){const _0x174a95=_0x5e9808;_0x5603bb[_0x174a95('0x1bf1')]=![],_0x5603bb[_0x174a95('0x73e')][_0x174a95('0x269f')]({'message':_0x285937[_0x174a95('0x1457')],'type':_0x285937['status']}),_0x5603bb[_0x174a95('0x73e')][_0x174a95('0x269f')]({'message':_0x174a95('0x2895'),'type':_0x174a95('0x273d')});});}function _0x3144bd(_0x5c9634){const _0x3f34e7=_0x72890e;if(_0x5c9634[_0x3f34e7('0xf04')]>_0x504f61)return _0x4ceaff[_0x3f34e7('0x1db9')]({'title':_0x3f34e7('0x586'),'msg':_0x3f34e7('0x349')+_0x17b976+'MB'}),![];return!![];}function _0x5be35b(){const _0x5eb943=_0x72890e;_0x5603bb[_0x5eb943('0xbdf')][_0x5eb943('0x3bb')][_0x5eb943('0x1771')]['headers']={'X-Requested-With':_0x5eb943('0x20a6'),'Authorization':'Bearer\x20'+_0x308115[_0x5eb943('0x1c53')](_0x5eb943('0xb2a'))},_0x5603bb['ngFlow'][_0x5eb943('0x3bb')][_0x5eb943('0x624')]();}function _0xe98073(_0x36c910,_0x498b7f){const _0x4caee6=_0x72890e;try{_0x498b7f=JSON[_0x4caee6('0x1f0a')](_0x498b7f),_0x498b7f[_0x4caee6('0xf04')]=_0x36c910[_0x4caee6('0xf04')],_0x5603bb['message'][_0x4caee6('0x240d')][_0x4caee6('0x269f')](_0x498b7f);}catch(_0x40e564){console[_0x4caee6('0x1db9')](_0x40e564);}}function _0x3437bd(_0x315e70){const _0x58d7a0=_0x72890e;_0x5603bb[_0x58d7a0('0x1603')][_0x58d7a0('0x240d')]=_0x49cbdd()[_0x58d7a0('0x1ad1')](_0x5603bb['message']['attachments'],{'id':_0x315e70['id']}),!_0x315e70[_0x58d7a0('0x2352')]&&_0x3588e0['attachment'][_0x58d7a0('0x1da6')]({'id':_0x315e70['id']})[_0x58d7a0('0x1af5')][_0x58d7a0('0x16df')](function(_0x18d14e){const _0x1a3bef=_0x58d7a0;_0x4ceaff['error']({'title':_0x18d14e[_0x1a3bef('0x11c5')]?_0x1a3bef('0x14f7')+_0x18d14e[_0x1a3bef('0x11c5')]+_0x1a3bef('0x16e4')+_0x18d14e[_0x1a3bef('0x1833')]:'api.attachment.delete','msg':_0x18d14e[_0x1a3bef('0x1457')]?JSON[_0x1a3bef('0x678')](_0x18d14e[_0x1a3bef('0x1457')]['message']):_0x18d14e['toString']()});});}function _0x4026cc(_0x5cfb96){const _0x1c80fa=_0x72890e;let _0x4ad3c5='';return _0x5cfb96['firstName']&&_0x5cfb96[_0x1c80fa('0x1761')]!==_0x5cfb96[_0x1c80fa('0x822')]&&(_0x4ad3c5+=_0x5cfb96['firstName']+'\x20'),_0x5cfb96[_0x1c80fa('0x8d6')]&&_0x5cfb96['lastName']!==_0x5cfb96[_0x1c80fa('0x822')]&&(_0x4ad3c5+=_0x5cfb96['lastName']+'\x20'),_0x4ad3c5+='<'+_0x5cfb96[_0x1c80fa('0x822')]+'>';}function _0x1a527b(_0x44188e,_0x5589e0){const _0x41773f=_0x72890e;if(_0x49cbdd()[_0x41773f('0xfd1')](_0x44188e))return _0x5603bb[_0x41773f('0x1c58')]=_0x44188e,_0x44188e['email'];if(_0x49cbdd()['isString'](_0x44188e)){if(_0x432791(_0x44188e))return _0x5603bb[_0x41773f('0x1c58')]={'email':_0x44188e},_0x44188e;else{const _0x51581c=_0x44188e[_0x41773f('0x2007')](',');for(let _0x5e22e0=0x0;_0x5e22e0<_0x51581c[_0x41773f('0x1f73')];_0x5e22e0+=0x1){_0x432791(_0x51581c[_0x5e22e0])?_0x49cbdd()[_0x41773f('0x25f3')](_0x5589e0)&&_0x49cbdd()['indexOf'](_0x5589e0,_0x51581c[_0x5e22e0])<0x0&&_0x5589e0['push'](_0x51581c[_0x5e22e0]):_0x4ceaff[_0x41773f('0x1db9')](_0x41773f('0x6b2')+_0x51581c[_0x5e22e0]+'\x20is\x20not\x20valid');}return _0x5603bb[_0x41773f('0x1c58')]={'email':_0x44188e[_0x41773f('0x2007')](',')[0x0]},null;}}return _0x4ceaff[_0x41773f('0x1db9')](_0x41773f('0x21df')),null;}function _0x1df0c7(_0x27c17e){const _0x339355=_0x72890e;return _0x10783&&_0x10783[_0x339355('0x7f8')]?_0x3588e0[_0x339355('0x1d2a')][_0x339355('0x1c53')]({'ListId':_0x10783[_0x339355('0x7f8')],'nolimit':!![],'filter':_0x27c17e,'fields':_0x339355('0x17aa')})[_0x339355('0x1af5')][_0x339355('0x17e7')](function(_0x38396d){const _0x27b45a=_0x339355;return _0x38396d[_0x27b45a('0x2319')];}):[];}function _0x30cba0(){const _0x5e5303=_0x72890e;_0x5603bb[_0x5e5303('0x1603')][_0x5e5303('0xa8b')]=!![],_0x5603bb[_0x5e5303('0x283b')]=_0x9dd495[_0x5e5303('0x5cc')](_0x37773f['id']);const _0x2ccfb5={'account':_0x10783,'message':_0x5603bb[_0x5e5303('0x1603')],'contact':_0x5603bb['contact'],'interaction':_0x37773f};if(_0x5603bb[_0x5e5303('0x283b')]&&!_0x5603bb[_0x5e5303('0x1099')]){const _0x25f809=_0x974958[_0x5e5303('0x1121')]({'skipHide':!![]})[_0x5e5303('0x24d3')](_0x24e3a9['instant']('DASHBOARDS.DRAFT_SAVE_WARNING_TITLE'))[_0x5e5303('0xd5')](_0x24e3a9[_0x5e5303('0x1acc')](_0x5e5303('0x22e5')))[_0x5e5303('0x2095')](_0x5e5303('0x1510'))['ok'](_0x24e3a9[_0x5e5303('0x1acc')]('DASHBOARDS.OVERWRITE'))[_0x5e5303('0x1d47')](_0x24e3a9[_0x5e5303('0x1acc')](_0x5e5303('0xd95')));_0x974958[_0x5e5303('0x28e2')](_0x25f809)[_0x5e5303('0x17e7')](function(){const _0x597203=_0x5e5303;_0x974958[_0x597203('0x212a')](_0x2ccfb5);});}else _0x974958[_0x5e5303('0x212a')](_0x2ccfb5);}function _0x2ae54e(){const _0x485110=_0x72890e;_0x974958[_0x485110('0x1d47')]();}function _0x432791(_0x281ea9){const _0x5df192=_0x72890e,_0x47c0ab=/^(([^<>()[\]\\.,;:\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 _0x47c0ab[_0x5df192('0x1ec')](_0x281ea9);}function _0x3aeb85(_0x7beddf){const _0x2e703b=/]*>([^]*)<\/body/m,_0x16c7a7=_0x7beddf['match'](_0x2e703b);if(_0x16c7a7)return _0x16c7a7[0x1];return _0x7beddf;}function _0x1560c3(){const _0x348e95=_0x72890e;if(_0x49cbdd()['isNil'](_0x10783[_0x348e95('0x2260')]))return'';try{const _0x2837b5=_0x49cbdd()[_0x348e95('0x2260')](_0x10783[_0x348e95('0x2260')]),_0x4d2d94={'user':_0x5603bb['currentUser'],'account':_0x10783,'interaction':_0x37773f,'contact':_0x37773f&&_0x37773f[_0x348e95('0x239b')]?_0x37773f['Contact']:{}};return _0x2837b5(_0x4d2d94);}catch(_0x281e9d){return console['error'](_0x281e9d),'';}}function _0x252bde(){const _0x590159=_0x72890e;return'';}function _0x1e426c(_0x57b1a9){const _0x462ed8=_0x32c3bb,_0x349071=_0x57b1a9;if(_0x49cbdd()['isObject'](_0x349071))return _0x57b1a9[_0x1090f7[_0x462ed8('0x2716')]];return _0x349071;}function _0x4d004c(_0x99bb1d){const _0x1eb8da=_0x32c3bb;if(_0x1090f7&&_0x1090f7[_0x1eb8da('0x7f8')]){let _0x4bb664=_0x1eb8da('0xaac');return _0x1090f7[_0x1eb8da('0x2716')]&&(_0x4bb664+=','+_0x1090f7[_0x1eb8da('0x2716')]),_0x22b5fd[_0x1eb8da('0x1d2a')][_0x1eb8da('0x1c53')]({'ListId':_0x1090f7[_0x1eb8da('0x7f8')],'nolimit':!![],'filter':_0x99bb1d,'fields':_0x4bb664})[_0x1eb8da('0x1af5')][_0x1eb8da('0x17e7')](function(_0x113020){const _0x45e3b7=_0x1eb8da;return _0x113020[_0x45e3b7('0x2319')];});}return[];}function _0x54199b(){_0x2b01b2['cancel']();}function _0x1a1d6e(){const _0x53060e=_0x32c3bb;_0x55fa13[_0x53060e('0x1c8e')]=!![];}function _0x4ae466(){const _0x44ae47=_0x32c3bb;_0x55fa13[_0x44ae47('0x1603')][_0x44ae47('0x13aa')]&&_0x2b01b2['hide']({'secret':!![],'body':_0x55fa13[_0x44ae47('0x1603')]['body']});}}const _0x31bace=_0x42c15b;_0x3d8923[_0x4376d8('0x1b9c')]=['$cookies','$timeout',_0x4376d8('0x198f'),_0x4376d8('0x14f6'),_0x4376d8('0x2f8'),_0x4376d8('0x2679'),_0x4376d8('0x1603'),_0x4376d8('0x412'),'api',_0x4376d8('0x108a'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x1885')];function _0x3d8923(_0x1f6f78,_0x5e02d4,_0x59f058,_0x48cc27,_0x32f8ec,_0x1a3841,_0x9ca23a,_0x14efdd,_0x920afe,_0xce44f0,_0xbee9b8,_0x3771f9,_0x41a101){const _0x404fed=_0x4376d8,_0x158ead=this;_0x158ead[_0x404fed('0x197c')]=_0x41a101[_0x404fed('0x2831')](),_0x158ead[_0x404fed('0x73e')]=[],_0x158ead['separatorKeys']=[_0x32f8ec[_0x404fed('0x13d6')][_0x404fed('0x1aae')],_0x32f8ec[_0x404fed('0x13d6')][_0x404fed('0xfb8')],_0x32f8ec[_0x404fed('0x13d6')]['TAB']],_0x158ead[_0x404fed('0x1ffa')]=_0x4c0e34,_0x158ead[_0x404fed('0x26bf')]=_0xc6c4bd,_0x158ead['note']=_0x21f53e,_0x158ead[_0x404fed('0x541')]=_0x520f94,_0x158ead['ctrlMethods']={},_0x158ead[_0x404fed('0x1603')]={'from':_0x1a3841[_0x404fed('0x2154')],'to':_0x49cbdd()[_0x404fed('0x390')](_0x9ca23a['to'])||_0x49cbdd()[_0x404fed('0x109a')](_0x9ca23a['to'])?[]:_0x9ca23a['to'],'body':''},_0x158ead[_0x404fed('0x13b7')]=_0x33f839,_0x158ead['getContact']=_0x24d9ec,_0x158ead[_0x404fed('0x136e')]=_0x4f3d72,_0x158ead[_0x404fed('0x10fc')]=_0x5e262d,_0x158ead['transformContact']=_0x216af4;switch(_0x14efdd){case _0x404fed('0x1eb0'):_0x158ead[_0x404fed('0x1eb0')]();break;}function _0x2aff38(_0x11f7ee){const _0x40f6b4=_0x404fed;_0x48cc27['hide']({'to':_0x158ead[_0x40f6b4('0x1603')]['to'][_0x40f6b4('0x1eba')](','),'body':_0x11f7ee});}function _0x33f839(){const _0x55d2bc=_0x404fed;_0x158ead[_0x55d2bc('0x1603')]['to']&&_0x158ead[_0x55d2bc('0x1603')][_0x55d2bc('0x13aa')]&&(_0x158ead['message']['to']['length']?_0x2aff38(_0x158ead['message'][_0x55d2bc('0x13aa')]):_0xce44f0[_0x55d2bc('0x1db9')]('To\x20is\x20mandatory'));}function _0xc6c4bd(_0x5af7ea){const _0x5d552a=_0x404fed;if(_0x5af7ea){try{_0x49cbdd()['templateSettings'][_0x5d552a('0x24ae')]=/{{([\s\S]+?)}}/g;const _0x40bff0=_0x49cbdd()[_0x5d552a('0x2260')](_0x5af7ea['value']),_0x5cbd30={'user':_0x158ead[_0x5d552a('0x197c')],'account':_0x1a3841};_0x158ead[_0x5d552a('0x1603')]['body']+='\x20'+_0x40bff0(_0x5cbd30),_0x158ead['ctrlMethods'][_0x5d552a('0x74a')](_0x158ead[_0x5d552a('0x1603')][_0x5d552a('0x13aa')]);}catch(_0xd92290){_0x158ead[_0x5d552a('0x1603')][_0x5d552a('0x13aa')]+='\x20'+_0x5af7ea[_0x5d552a('0x175b')],_0x158ead[_0x5d552a('0x1a80')][_0x5d552a('0x74a')](_0x158ead[_0x5d552a('0x1603')]['body']);}_0x158ead[_0x5d552a('0x1960')]=null;}}function _0x4c0e34(_0x3abf21){const _0x1e5aaa=_0x404fed,_0x1ef932=_0xbee9b8[_0x1e5aaa('0x113c')]();let _0x347d9a=[];return _0x920afe[_0x1e5aaa('0x2043')]['get']({'filter':_0x3abf21,'SmsAccountId':_0x1a3841['id']})[_0x1e5aaa('0x1af5')][_0x1e5aaa('0x17e7')](function(_0x559b2d){const _0x3b88c0=_0x1e5aaa;return _0x347d9a=_0x49cbdd()[_0x3b88c0('0xe1b')](_0x347d9a,_0x559b2d[_0x3b88c0('0x2319')]),_0x920afe[_0x3b88c0('0x2043')][_0x3b88c0('0x1c53')]({'filter':_0x3abf21})[_0x3b88c0('0x1af5')];})[_0x1e5aaa('0x17e7')](function(_0x301455){const _0x1fe417=_0x1e5aaa;_0x347d9a=_0x49cbdd()[_0x1fe417('0xe1b')](_0x347d9a,_0x49cbdd()['filter'](_0x301455[_0x1fe417('0x2319')],function(_0x459e28){const _0x1a6523=_0x1fe417;return!_0x459e28['MailAccountId']&&!_0x459e28[_0x1a6523('0x24f9')]&&!_0x459e28['SmsAccountId']&&!_0x459e28[_0x1a6523('0x1969')]&&!_0x459e28[_0x1a6523('0x259')];})),_0x1ef932[_0x1fe417('0x898')](_0x347d9a);})['catch'](function(_0x2202f9){_0x1ef932['reject'](_0x2202f9);}),_0x1ef932[_0x1e5aaa('0x1691')];}function _0x24d9ec(_0xd7f324){const _0x32d4b7=_0x404fed;let _0x581274='';return _0xd7f324[_0x32d4b7('0x1761')]&&_0xd7f324[_0x32d4b7('0x1761')]!==_0xd7f324[_0x32d4b7('0xa4f')]&&(_0x581274+=_0xd7f324[_0x32d4b7('0x1761')]+'\x20'),_0xd7f324[_0x32d4b7('0x8d6')]&&_0xd7f324[_0x32d4b7('0x8d6')]!==_0xd7f324[_0x32d4b7('0xa4f')]&&(_0x581274+=_0xd7f324['lastName']+'\x20'),_0x581274+='<'+_0xd7f324[_0x32d4b7('0xa4f')]+'>';}function _0x216af4(_0x5a33a0){const _0x17e17a=_0x404fed,_0x2faecd=_0x5a33a0;if(_0x49cbdd()['isObject'](_0x2faecd))return _0x5a33a0[_0x17e17a('0xa4f')];if(_0x140e1b(_0x2faecd))return _0x2faecd;return _0xce44f0[_0x17e17a('0x1db9')](_0x17e17a('0x231a')+_0x2faecd+_0x17e17a('0x7b6')),null;}function _0x5e262d(_0x434d65){const _0x2901ab=_0x404fed;if(_0x1a3841&&_0x1a3841['ListId'])return _0x920afe['cmContact'][_0x2901ab('0x1c53')]({'ListId':_0x1a3841[_0x2901ab('0x7f8')],'nolimit':!![],'filter':_0x434d65,'fields':_0x2901ab('0x1685')})[_0x2901ab('0x1af5')][_0x2901ab('0x17e7')](function(_0x5e256d){const _0x218cdb=_0x2901ab;return _0x5e256d[_0x218cdb('0x2319')];});return[];}function _0x4f3d72(){const _0x3b7547=_0x404fed;_0x48cc27[_0x3b7547('0x1d47')]();}function _0x140e1b(_0x13a319){const _0x129b65=_0x404fed,_0x44aef0=/^(\+|\d)[0-9]{7,16}$/;return _0x44aef0[_0x129b65('0x1ec')](_0x13a319);}function _0x21f53e(){_0x158ead['secret']=!![];}function _0x520f94(){const _0x3e88a8=_0x404fed;_0x158ead[_0x3e88a8('0x1603')][_0x3e88a8('0x13aa')]&&_0x48cc27['hide']({'secret':!![],'body':_0x158ead[_0x3e88a8('0x1603')][_0x3e88a8('0x13aa')]});}}const _0x236481=_0x3d8923;_0x12fcd8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),'$timeout',_0x4376d8('0x198f'),_0x4376d8('0x14f6'),_0x4376d8('0x2f8'),_0x4376d8('0x2679'),_0x4376d8('0x1603'),_0x4376d8('0x412'),_0x4376d8('0x212e'),'toasty','$q',_0x4376d8('0x28da'),_0x4376d8('0x1885')];function _0x12fcd8(_0x1a53fa,_0x568507,_0x52daf7,_0x26b3d6,_0x3d63f7,_0x1d41b8,_0x28504f,_0x27aad1,_0x5b9961,_0x329b9f,_0x42076e,_0xffe297,_0x37c39){const _0x1acea2=_0x4376d8,_0x1b642c=this;_0x1b642c[_0x1acea2('0x197c')]=_0x37c39[_0x1acea2('0x2831')](),_0x1b642c[_0x1acea2('0x73e')]=[],_0x1b642c[_0x1acea2('0x9d5')]=[_0x3d63f7[_0x1acea2('0x13d6')][_0x1acea2('0x1aae')],_0x3d63f7[_0x1acea2('0x13d6')][_0x1acea2('0xfb8')],_0x3d63f7[_0x1acea2('0x13d6')][_0x1acea2('0x24bc')]],_0x1b642c['searchTextChange']=_0x89e062,_0x1b642c[_0x1acea2('0x26bf')]=_0x27b1cc,_0x1b642c[_0x1acea2('0x1eb0')]=_0x3dd6da,_0x1b642c['addNote']=_0x152f01,_0x1b642c['ctrlMethods']={},_0x1b642c[_0x1acea2('0x1603')]={'from':_0x1d41b8[_0x1acea2('0x2154')],'to':_0x49cbdd()[_0x1acea2('0x390')](_0x28504f['to'])||_0x49cbdd()[_0x1acea2('0x109a')](_0x28504f['to'])?[]:_0x28504f['to'],'body':''},_0x1b642c[_0x1acea2('0x13b7')]=_0x20207b,_0x1b642c[_0x1acea2('0x1200')]=_0x13a7e7,_0x1b642c['closeDialog']=_0x446856,_0x1b642c[_0x1acea2('0x10fc')]=_0x2cbf08,_0x1b642c[_0x1acea2('0x62f')]=_0x1db3a4;switch(_0x27aad1){case'note':_0x1b642c[_0x1acea2('0x1eb0')]();break;}function _0x3c7e78(_0x4f7ab7){const _0xa0ce7a=_0x1acea2;_0x26b3d6['hide']({'to':_0x1b642c[_0xa0ce7a('0x1603')]['to'][_0xa0ce7a('0x1eba')](','),'body':_0x4f7ab7});}function _0x20207b(){const _0x2c0023=_0x1acea2;_0x1b642c[_0x2c0023('0x1603')]['to']&&_0x1b642c['message'][_0x2c0023('0x13aa')]&&(_0x1b642c['message']['to'][_0x2c0023('0x1f73')]?_0x3c7e78(_0x1b642c[_0x2c0023('0x1603')][_0x2c0023('0x13aa')]):_0x329b9f[_0x2c0023('0x1db9')](_0x2c0023('0x6f9')));}function _0x27b1cc(_0x7472c2){const _0xf511fe=_0x1acea2;if(_0x7472c2){try{_0x49cbdd()['templateSettings']['interpolate']=/{{([\s\S]+?)}}/g;const _0x70af5d=_0x49cbdd()[_0xf511fe('0x2260')](_0x7472c2[_0xf511fe('0x175b')]),_0x3b917f={'user':_0x1b642c[_0xf511fe('0x197c')],'account':_0x1d41b8};_0x1b642c[_0xf511fe('0x1603')][_0xf511fe('0x13aa')]+='\x20'+_0x70af5d(_0x3b917f),_0x1b642c['ctrlMethods']['setText'](_0x1b642c['message'][_0xf511fe('0x13aa')]);}catch(_0x27de14){_0x1b642c[_0xf511fe('0x1603')][_0xf511fe('0x13aa')]+='\x20'+_0x7472c2[_0xf511fe('0x175b')],_0x1b642c[_0xf511fe('0x1a80')]['setText'](_0x1b642c['message'][_0xf511fe('0x13aa')]);}_0x1b642c[_0xf511fe('0x1960')]=null;}}function _0x89e062(_0x198b7d){const _0x1a53b4=_0x1acea2,_0xfa9ff1=_0x42076e[_0x1a53b4('0x113c')]();let _0x1f7972=[];return _0x5b9961[_0x1a53b4('0x2043')][_0x1a53b4('0x1c53')]({'filter':_0x198b7d,'WhatsappAccountId':_0x1d41b8['id']})[_0x1a53b4('0x1af5')][_0x1a53b4('0x17e7')](function(_0x5cccb9){const _0x4b0c8c=_0x1a53b4;return _0x1f7972=_0x49cbdd()[_0x4b0c8c('0xe1b')](_0x1f7972,_0x5cccb9[_0x4b0c8c('0x2319')]),_0x5b9961['cannedAnswer'][_0x4b0c8c('0x1c53')]({'filter':_0x198b7d})[_0x4b0c8c('0x1af5')];})[_0x1a53b4('0x17e7')](function(_0x30974c){const _0x567199=_0x1a53b4;_0x1f7972=_0x49cbdd()[_0x567199('0xe1b')](_0x1f7972,_0x49cbdd()[_0x567199('0x2483')](_0x30974c[_0x567199('0x2319')],function(_0x16c94d){const _0x18b9bb=_0x567199;return!_0x16c94d[_0x18b9bb('0xbda')]&&!_0x16c94d[_0x18b9bb('0x24f9')]&&!_0x16c94d['WhatsappAccountId']&&!_0x16c94d['OpenchannelAccountId']&&!_0x16c94d['ChatWebsiteId'];})),_0xfa9ff1[_0x567199('0x898')](_0x1f7972);})[_0x1a53b4('0x16df')](function(_0x54e077){const _0x4a759b=_0x1a53b4;_0xfa9ff1[_0x4a759b('0x1ad1')](_0x54e077);}),_0xfa9ff1[_0x1a53b4('0x1691')];}function _0x13a7e7(_0x51ffdc){const _0xdf5441=_0x1acea2;let _0x5d912b='';return _0x51ffdc[_0xdf5441('0x1761')]&&_0x51ffdc[_0xdf5441('0x1761')]!==_0x51ffdc[_0xdf5441('0xa4f')]&&(_0x5d912b+=_0x51ffdc['firstName']+'\x20'),_0x51ffdc[_0xdf5441('0x8d6')]&&_0x51ffdc[_0xdf5441('0x8d6')]!==_0x51ffdc[_0xdf5441('0xa4f')]&&(_0x5d912b+=_0x51ffdc[_0xdf5441('0x8d6')]+'\x20'),_0x5d912b+='<'+_0x51ffdc['mobile']+'>';}function _0x1db3a4(_0x1ffcee){const _0x519bf6=_0x1acea2,_0x3414e7=_0x1ffcee;if(_0x49cbdd()['isObject'](_0x3414e7))return _0x1ffcee[_0x519bf6('0xa4f')];if(_0xc60458(_0x3414e7))return _0x3414e7;return _0x329b9f[_0x519bf6('0x1db9')]('Mobile\x20'+_0x3414e7+_0x519bf6('0x7b6')),null;}function _0x2cbf08(_0x588a27){const _0x50b786=_0x1acea2;if(_0x1d41b8&&_0x1d41b8[_0x50b786('0x7f8')])return _0x5b9961[_0x50b786('0x1d2a')][_0x50b786('0x1c53')]({'ListId':_0x1d41b8[_0x50b786('0x7f8')],'nolimit':!![],'filter':_0x588a27,'fields':'firstName,lastName,mobile'})[_0x50b786('0x1af5')][_0x50b786('0x17e7')](function(_0x3c3869){return _0x3c3869['rows'];});return[];}function _0x446856(){const _0x61251e=_0x1acea2;_0x26b3d6[_0x61251e('0x1d47')]();}function _0xc60458(_0x436c97){const _0x46bf66=_0x1acea2,_0x4d39b4=/^(\+|\d)[0-9]{7,16}$/;return _0x4d39b4[_0x46bf66('0x1ec')](_0x436c97);}function _0x3dd6da(){const _0x4eac34=_0x1acea2;_0x1b642c[_0x4eac34('0x1c8e')]=!![];}function _0x152f01(){const _0x959580=_0x1acea2;_0x1b642c[_0x959580('0x1603')]['body']&&_0x26b3d6[_0x959580('0x212a')]({'secret':!![],'body':_0x1b642c[_0x959580('0x1603')][_0x959580('0x13aa')]});}}const _0x5211dc=_0x12fcd8;_0x15ec22['$inject']=[_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'interaction',_0x4376d8('0x15d7'),_0x4376d8('0x221e'),_0x4376d8('0x858')];function _0x15ec22(_0x150ce8,_0xb4547,_0x39d0c0,_0x528512,_0xd6caea,_0x2f527a,_0x3e3542){const _0x2e3b8e=_0x4376d8,_0x2a6783=this;_0x2a6783['errors']=[],_0x2a6783[_0x2e3b8e('0x23fe')]=[],_0x2a6783[_0x2e3b8e('0x1219')]=angular[_0x2e3b8e('0x14e5')](_0x528512);!_0x2a6783[_0x2e3b8e('0x1219')][_0x2e3b8e('0x1f27')]&&(_0x2a6783['interaction'][_0x2e3b8e('0x1f27')]=null);_0x2a6783[_0x2e3b8e('0x15d7')]=_0xd6caea,_0x2a6783['apiRoute']=_0x2a6783[_0x2e3b8e('0x15d7')]+_0x2e3b8e('0x3de'),_0x2a6783[_0x2e3b8e('0x12b9')]=_0x2a6783[_0x2e3b8e('0x15d7')]+(_0x2a6783['channel']==='chat'?_0x2e3b8e('0x1b71'):_0x2e3b8e('0x896')),_0x2a6783[_0x2e3b8e('0x28a9')]=_0x49cbdd()[_0x2e3b8e('0xb41')](_0x2a6783[_0x2e3b8e('0x15d7')])+(_0x2a6783[_0x2e3b8e('0x15d7')]===_0x2e3b8e('0x2219')?_0x2e3b8e('0x1b71'):_0x2e3b8e('0x896'))+'Id',_0x2a6783[_0x2e3b8e('0x1278')]=null,_0x2a6783[_0x2e3b8e('0xb20')]=![],_0x2a6783['mandatoryDispositionPause']='',_0x2a6783[_0x2e3b8e('0x2275')]=_0x2f527a[_0x2e3b8e('0x118a')]||_0x2f527a[_0x2e3b8e('0x2764')]||_0x2f527a['mailPause']||_0x2f527a[_0x2e3b8e('0x105e')]||_0x2f527a['faxPause'],_0x2a6783['onDispositionChange']=_0x2494a8,_0x2a6783['clearDispositionSelection']=_0x3f8b5a,_0x2a6783[_0x2e3b8e('0x24d6')]=_0x150897,_0x2a6783[_0x2e3b8e('0x136e')]=_0x15a839;function _0x225b99(){const _0x20ba6f=_0x2e3b8e;let _0x5291ee=[];const _0x3d274c={'fields':_0x20ba6f('0x63d'),'sort':_0x20ba6f('0x2aa'),'nolimit':!![]};_0x3d274c[_0x2a6783[_0x20ba6f('0x28a9')]]=_0x528512[_0x2a6783['accountProperty']],_0x39d0c0[_0x2a6783[_0x20ba6f('0x12b9')]]['get']({'id':_0x528512[_0x2a6783[_0x20ba6f('0x28a9')]]})[_0x20ba6f('0x1af5')][_0x20ba6f('0x17e7')](function(_0x20c92e){const _0x5bfcf5=_0x20ba6f;return _0x2a6783[_0x5bfcf5('0xb20')]=_0x20c92e[_0x5bfcf5('0xb20')],_0x2a6783[_0x5bfcf5('0xb20')]&&(_0x2a6783['mandatoryDispositionPause']=_0x20c92e[_0x5bfcf5('0xf75')]['name']),_0x39d0c0[_0x5bfcf5('0x1f27')][_0x5bfcf5('0x1c53')](_0x3d274c)[_0x5bfcf5('0x1af5')];})['then'](function(_0x446a7e){const _0x565261=_0x20ba6f;return _0x446a7e[_0x565261('0x2319')][_0x565261('0x1f73')]&&(_0x5291ee=_0x49cbdd()['concat'](_0x5291ee,_0x446a7e[_0x565261('0x2319')])),_0x39d0c0[_0x565261('0x1f27')]['get']({'MailAccountId':'null','FaxAccountId':_0x565261('0x9bb'),'SmsAccountId':_0x565261('0x9bb'),'WhatsappAccountId':_0x565261('0x9bb'),'OpenchannelAccountId':_0x565261('0x9bb'),'ChatWebsiteId':'null','ListId':_0x565261('0x9bb')})[_0x565261('0x1af5')];})[_0x20ba6f('0x17e7')](function(_0xad4d27){const _0x3ae891=_0x20ba6f;_0xad4d27[_0x3ae891('0x2319')][_0x3ae891('0x1f73')]&&(_0x5291ee=_0x49cbdd()[_0x3ae891('0xe1b')](_0x5291ee,_0xad4d27[_0x3ae891('0x2319')]));})['catch'](function(_0x11bf67){const _0x4ed58=_0x20ba6f;console[_0x4ed58('0x1db9')](_0x11bf67);})[_0x20ba6f('0x74e')](function(){const _0x1a14f5=_0x20ba6f;_0x2a6783['dispositions']=_0x49cbdd()[_0x1a14f5('0xa36')](_0x5291ee,[_0x1a14f5('0x2aa')],[_0x1a14f5('0x161a')]),_0x48bf84();});}function _0x48bf84(){const _0x377ceb=_0x2e3b8e;_0x2a6783[_0x377ceb('0xb20')]&&!_0x2a6783[_0x377ceb('0x2275')]&&_0x39d0c0['user']['pause']({'id':_0x2f527a['id'],'type':_0x2a6783[_0x377ceb('0xf75')]||'DEFAULT\x20PAUSE'})['$promise']['then'](function(){})[_0x377ceb('0x16df')](function(_0x4858d5){const _0x13de8d=_0x377ceb;console[_0x13de8d('0x1db9')](_0x4858d5);});}function _0x2494a8(_0x4cad82){const _0x468329=_0x2e3b8e;if(_0x4cad82===_0x468329('0x1624')){_0x2a6783[_0x468329('0x1920')]=_0x2a6783[_0x468329('0x1278')]?_0x49cbdd()['some'](_0x2a6783['dispositions'],[_0x468329('0x1a27'),_0x2a6783[_0x468329('0x1278')]['id']]):![];if(!_0x2a6783['firstLevelDisposition'])_0x2a6783['secondLevelDisposition']=undefined;}else _0x4cad82===_0x468329('0x1e5a')&&(_0x2a6783[_0x468329('0x2608')]=_0x49cbdd()[_0x468329('0x26f8')](_0x2a6783[_0x468329('0x23fe')],[_0x468329('0x1a27'),_0x2a6783['secondLevelDisposition']['id']]));}function _0x3f8b5a(_0x34cd58){const _0x3be77b=_0x2e3b8e;if(_0x34cd58==='second')_0x2a6783[_0x3be77b('0xb95')]=undefined,_0x2a6783[_0x3be77b('0x2b3')]=undefined;else _0x34cd58===_0x3be77b('0x3ba')&&(_0x2a6783[_0x3be77b('0x2b3')]=undefined);}function _0x150897(){const _0x49cd9d=_0x2e3b8e;_0x2a6783['errors']=[],_0x2a6783['interaction'][_0x49cd9d('0x5e5')]=_0x2f527a['id'],_0x2a6783[_0x49cd9d('0x1219')]['closed']=!![],_0x2a6783[_0x49cd9d('0x1219')]['closeReason']=_0x49cd9d('0x684'),_0x2a6783[_0x49cd9d('0x1219')][_0x49cd9d('0x1f27')]=_0x2a6783[_0x49cd9d('0x1278')]?_0x2a6783[_0x49cd9d('0x1278')][_0x49cd9d('0x2aa')]:null,_0x2a6783['interaction'][_0x49cd9d('0xf1')]=_0x2a6783[_0x49cd9d('0xb95')]?_0x2a6783[_0x49cd9d('0xb95')][_0x49cd9d('0x2aa')]:undefined,_0x2a6783[_0x49cd9d('0x1219')][_0x49cd9d('0x100')]=_0x2a6783[_0x49cd9d('0x2b3')]?_0x2a6783[_0x49cd9d('0x2b3')][_0x49cd9d('0x2aa')]:undefined,_0x39d0c0[_0x2a6783[_0x49cd9d('0x714')]]?_0x39d0c0[_0x2a6783['apiRoute']]['update'](_0x49cbdd()['pick'](_0x2a6783['interaction'],['MailAccountId',_0x49cd9d('0x24f9'),'SmsAccountId',_0x49cd9d('0x10d7'),_0x49cd9d('0x259'),'OpenchannelAccountId',_0x49cd9d('0x2bc'),_0x49cd9d('0x90d'),_0x49cd9d('0x1f27'),_0x49cd9d('0xf1'),_0x49cd9d('0x100'),'id','note','UserId']))[_0x49cd9d('0x1af5')]['then'](function(_0x2d2d1b){const _0x40ab51=_0x49cd9d;_0x2a6783[_0x40ab51('0x1219')]=_0x2d2d1b,_0x2a6783[_0x40ab51('0x15d7')]===_0x40ab51('0xc2')&&_0x3e3542[_0x40ab51('0x202c')](_0x2a6783[_0x40ab51('0x1219')]['id']),_0xb4547[_0x40ab51('0x130d')]({'title':_0x40ab51('0x2221'),'msg':_0x40ab51('0xd3d')});})[_0x49cd9d('0x17e7')](function(){_0x15a839(!![]);})['catch'](function(_0x1139b3){const _0x273d61=_0x49cd9d;if(_0x1139b3[_0x273d61('0x1457')]&&_0x1139b3['data'][_0x273d61('0x73e')]&&_0x1139b3[_0x273d61('0x1457')][_0x273d61('0x73e')][_0x273d61('0x1f73')]){_0x2a6783[_0x273d61('0x73e')]=_0x1139b3[_0x273d61('0x1457')][_0x273d61('0x73e')]||[{'message':_0x1139b3[_0x273d61('0x9b6')](),'type':_0x273d61('0x1b52')}];for(let _0x108acd=0x0;_0x108acd<_0x1139b3[_0x273d61('0x1457')][_0x273d61('0x73e')][_0x273d61('0x1f73')];_0x108acd++){_0xb4547['error']({'title':_0x1139b3[_0x273d61('0x1457')][_0x273d61('0x73e')][_0x108acd][_0x273d61('0x412')],'msg':_0x1139b3[_0x273d61('0x1457')][_0x273d61('0x73e')][_0x108acd][_0x273d61('0x1603')]});}}else _0xb4547[_0x273d61('0x1db9')]({'title':_0x1139b3['status']?_0x273d61('0x14f7')+_0x1139b3['status']+_0x273d61('0x16e4')+_0x1139b3[_0x273d61('0x1833')]:_0x273d61('0x1b52'),'msg':_0x1139b3[_0x273d61('0x1457')]?JSON[_0x273d61('0x678')](_0x1139b3['data'][_0x273d61('0x1603')]):_0x1139b3[_0x273d61('0x9b6')]()});}):_0x15a839(![]);}function _0x15a839(_0x5d69a1){const _0x55e257=_0x2e3b8e;_0x150ce8[_0x55e257('0x212a')](_0x5d69a1);}_0x225b99();}const _0x599b96=_0x15ec22;_0x54c521[_0x4376d8('0x1b9c')]=['$mdDialog',_0x4376d8('0x108a'),'api','interaction',_0x4376d8('0x15d7'),_0x4376d8('0x1522')];function _0x54c521(_0xf64d71,_0x3f80b2,_0x44590c,_0x455798,_0x157fd8,_0x568104){const _0x1205dd=_0x4376d8,_0x4adae3=this;_0x4adae3[_0x1205dd('0x73e')]=[],_0x4adae3[_0x1205dd('0x1522')]=_0x568104,_0x4adae3[_0x1205dd('0x1219')]=angular['copy'](_0x455798),_0x4adae3[_0x1205dd('0x1219')][_0x1205dd('0x28a6')]=_0x49cbdd()['map'](_0x4adae3[_0x1205dd('0x1219')]['Tags'],function(_0x18c60f){const _0x27a32a=_0x1205dd;return{'id':_0x18c60f['id'],'name':_0x18c60f[_0x27a32a('0x2aa')],'color':_0x18c60f[_0x27a32a('0x1a1f')]};}),_0x4adae3[_0x1205dd('0x15d7')]=_0x157fd8,_0x4adae3[_0x1205dd('0xe3c')]=!![],_0x4adae3[_0x1205dd('0x140')]=_0x3096ef,_0x4adae3['closeDialog']=_0x1de745,_0x4adae3[_0x1205dd('0x714')]=_0x4adae3[_0x1205dd('0x15d7')]+_0x1205dd('0x3de');function _0x3096ef(){const _0x20681e=_0x1205dd;_0x4adae3[_0x20681e('0x73e')]=[];if(_0x44590c[_0x4adae3[_0x20681e('0x714')]])return _0x44590c[_0x4adae3[_0x20681e('0x714')]][_0x20681e('0x925')]({'id':_0x4adae3[_0x20681e('0x1219')]['id'],'ids':_0x49cbdd()[_0x20681e('0x787')](_0x4adae3['interaction']['Tags'],'id')})[_0x20681e('0x1af5')][_0x20681e('0x17e7')](function(){const _0x18f8f5=_0x20681e;_0x3f80b2[_0x18f8f5('0x130d')]({'title':_0x18f8f5('0xf0d'),'msg':_0x18f8f5('0x2685')}),_0x455798[_0x18f8f5('0x28a6')]=_0x4adae3['interaction'][_0x18f8f5('0x28a6')],_0x1de745(!![]);})[_0x20681e('0x16df')](function(_0xf50269){const _0x12c746=_0x20681e;if(_0xf50269[_0x12c746('0x1457')]&&_0xf50269['data'][_0x12c746('0x73e')]&&_0xf50269['data'][_0x12c746('0x73e')][_0x12c746('0x1f73')])for(let _0x1305ea=0x0;_0x1305ea<_0xf50269[_0x12c746('0x1457')][_0x12c746('0x73e')][_0x12c746('0x1f73')];_0x1305ea+=0x1){_0x3f80b2[_0x12c746('0x1db9')]({'title':_0xf50269[_0x12c746('0x1457')][_0x12c746('0x73e')][_0x1305ea][_0x12c746('0x412')],'msg':_0xf50269[_0x12c746('0x1457')][_0x12c746('0x73e')][_0x1305ea][_0x12c746('0x1603')]});}else _0x3f80b2[_0x12c746('0x1db9')]({'title':_0xf50269[_0x12c746('0x11c5')]?_0x12c746('0x14f7')+_0xf50269['status']+_0x12c746('0x16e4')+_0xf50269[_0x12c746('0x1833')]:_0x12c746('0x1b52'),'msg':_0xf50269['data']?JSON['stringify'](_0xf50269[_0x12c746('0x1457')][_0x12c746('0x1603')]):_0xf50269['toString']()});});else _0x1de745(![]);}function _0x1de745(_0x3e3a36){const _0x5ce3c5=_0x1205dd;_0xf64d71[_0x5ce3c5('0x212a')](_0x3e3a36);}}const _0x18d80a=_0x54c521;_0x4d61d3['$inject']=['$mdDialog',_0x4376d8('0xef1'),_0x4376d8('0x1885'),_0x4376d8('0x212e'),'toasty','channel','message',_0x4376d8('0x2679')];function _0x4d61d3(_0x3ee31c,_0x277aeb,_0x547c23,_0x4994de,_0x3ee913,_0x3d65fb,_0x19b8a3,_0x2e1e20){const _0x26c046=_0x4376d8,_0x2b4492=this;_0x2b4492['currentUser']=_0x547c23[_0x26c046('0x2831')](),_0x2b4492[_0x26c046('0x15d7')]=_0x3d65fb[_0x26c046('0x19b')](),_0x2b4492['message']=_0x19b8a3,_0x2b4492[_0x26c046('0x2679')]=_0x2e1e20,_0x2b4492[_0x26c046('0x194')]={'id':0x0,'type':_0x26c046('0x1bd')},_0x2b4492['queues']={'count':0x0,'rows':[]},_0x2b4492[_0x26c046('0x25ea')]=_0x2b4492[_0x26c046('0x14c4')],_0x2b4492['queueMethod']=_0x2b4492[_0x26c046('0x15d7')]+_0x26c046('0x1eb2'),_0x2b4492[_0x26c046('0xe33')]=_0x2b4492[_0x26c046('0x15d7')]+_0x26c046('0x208e'),_0x2b4492[_0x26c046('0x26')]=_0x1543b4,_0x2b4492[_0x26c046('0x136e')]=_0x2225e1,_0x2b4492[_0x26c046('0x161d')]=_0x47a0d6,_0x2b4492[_0x26c046('0x161d')]();function _0x47a0d6(){const _0x3acb53=_0x26c046;return _0x4994de[_0x3acb53('0x221e')]['get']({'fields':_0x3acb53('0x12d2'),'role':_0x3acb53('0x684'),'sort':_0x3acb53('0x2aa'),'nolimit':!![]})['$promise']['then'](function(_0x254b32){const _0xb5be6b=_0x3acb53;return _0x2b4492[_0xb5be6b('0x25ea')]=_0x254b32||{'count':0x0,'rows':[]},_0x4994de[_0x2b4492[_0xb5be6b('0x176f')]][_0xb5be6b('0x1c53')]({'fields':_0xb5be6b('0x12d2'),'sort':_0xb5be6b('0x2aa'),'nolimit':!![]})['$promise'];})[_0x3acb53('0x17e7')](function(_0x3f38e8){_0x2b4492['queues']=_0x3f38e8||{'count':0x0,'rows':[]};})['catch'](function(_0x5b136e){const _0x15d336=_0x3acb53;console[_0x15d336('0x1db9')](_0x5b136e);});}function _0x2225e1(_0x3b779f){const _0x2aafd1=_0x26c046;_0x3ee31c[_0x2aafd1('0x212a')](_0x3b779f);}function _0x1543b4(){_0x2225e1(!![]),_0x277aeb(function(){const _0x323150=a0_0xd29e;return _0x4994de['rpc'][_0x2b4492[_0x323150('0x194')]['type']===_0x323150('0x684')?'agentNotify':_0x2b4492[_0x323150('0xe33')]]({'id':_0x2b4492['transfer']['id'],'messageId':_0x2b4492['message']['id'],'channel':_0x2b4492[_0x323150('0x15d7')]})[_0x323150('0x1af5')]['then'](function(){const _0xdc187d=_0x323150;_0x3ee913[_0xdc187d('0x130d')]({'title':_0xdc187d('0x3af'),'msg':'Transfer\x20'+_0x2b4492[_0xdc187d('0x194')][_0xdc187d('0x412')]+_0xdc187d('0x1084')});})[_0x323150('0x16df')](function(_0x2be597){const _0x56e3c9=_0x323150;if(_0x2be597[_0x56e3c9('0x1457')]&&_0x2be597[_0x56e3c9('0x1457')][_0x56e3c9('0x73e')]&&_0x2be597[_0x56e3c9('0x1457')]['errors'][_0x56e3c9('0x1f73')]){_0x2b4492[_0x56e3c9('0x73e')]=_0x2be597[_0x56e3c9('0x1457')][_0x56e3c9('0x73e')]||[{'message':_0x2be597[_0x56e3c9('0x9b6')](),'type':_0x56e3c9('0x1d92')}];for(let _0x1bad9c=0x0;_0x1bad9c<_0x2be597['data']['errors']['length'];_0x1bad9c++){_0x3ee913['error']({'title':_0x2be597[_0x56e3c9('0x1457')]['errors'][_0x1bad9c][_0x56e3c9('0x412')],'msg':_0x2be597[_0x56e3c9('0x1457')]['errors'][_0x1bad9c][_0x56e3c9('0x1603')]});}}else _0x3ee913[_0x56e3c9('0x1db9')]({'title':_0x2be597[_0x56e3c9('0x11c5')]?'API:'+_0x2be597[_0x56e3c9('0x11c5')]+_0x56e3c9('0x16e4')+_0x2be597[_0x56e3c9('0x1833')]:_0x56e3c9('0x1d92'),'msg':_0x2be597[_0x56e3c9('0x1457')]?JSON['stringify'](_0x2be597[_0x56e3c9('0x1457')][_0x56e3c9('0x1603')]):_0x2be597[_0x56e3c9('0x9b6')]()});});},0x1388);}}const _0x2e90ea=_0x4d61d3;_0x2fbfb2[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$q',_0x4376d8('0x14f6'),_0x4376d8('0x1f0b'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x28da'),_0x4376d8('0x655'),_0x4376d8('0xef1'),_0x4376d8('0x1606')];function _0x2fbfb2(_0x39841b,_0x33bb80,_0x280424,_0x5c730a,_0x21793e,_0x1c5762,_0x9bcb02,_0x38d91f,_0x3a0193,_0x2ecb41,_0x2cdebe){const _0x235a9d=_0x4376d8,_0x46d4dd=this;_0x46d4dd[_0x235a9d('0x23e9')]={},_0x46d4dd['showResetButton']=!![],_0x46d4dd[_0x235a9d('0x1551')]=![],_0x46d4dd[_0x235a9d('0x2208')]=_0x2cdebe[_0x235a9d('0x2208')](),_0x46d4dd[_0x235a9d('0x1ec6')]=_0x1f73e3,_0x46d4dd[_0x235a9d('0xf79')]=_0x576376,_0x46d4dd[_0x235a9d('0x1eef')]=_0x43edde,_0x46d4dd[_0x235a9d('0x15ed')]=_0x46f23c,_0x46d4dd[_0x235a9d('0x13e7')]=_0x48cb23,_0x46d4dd['getResponseSheetHeaders']=_0x69a819,_0x46d4dd['getQuestionWithResponseList']=_0x122dcf,_0x46d4dd[_0x235a9d('0x161d')]=_0x178022,_0x46d4dd[_0x235a9d('0x10a2')]=function(_0x110ff5){const _0x2135e6=_0x235a9d;if(_0x46d4dd[_0x2135e6('0x23e9')][_0x2135e6('0x2a9')]){const _0xb83cf1=_0x280424[_0x2135e6('0x1121')]()[_0x2135e6('0x24d3')](_0x38d91f[_0x2135e6('0x1acc')](_0x2135e6('0x128a')))[_0x2135e6('0xd5')](_0x38d91f['instant'](_0x2135e6('0x1741')))[_0x2135e6('0x18c5')]('')[_0x2135e6('0x2095')](_0x2135e6('0x1612'))[_0x2135e6('0x104f')](_0x110ff5)['ok'](_0x38d91f[_0x2135e6('0x1acc')]('JSCRIPTY.YES'))[_0x2135e6('0x1d47')](_0x38d91f[_0x2135e6('0x1acc')](_0x2135e6('0x162f')));_0x280424[_0x2135e6('0x28e2')](_0xb83cf1)[_0x2135e6('0x17e7')](function(){const _0x2d6031=_0x2135e6;_0x46d4dd[_0x2d6031('0x1551')]=![],_0x46d4dd[_0x2d6031('0x87c')][_0x2d6031('0x1626')]=undefined,_0x42f738(),_0x46d4dd[_0x2d6031('0x23e9')][_0x2d6031('0x2a9')]();});}};function _0x42f738(){const _0x4cedf4=_0x235a9d;try{_0x39841b['$parent'][_0x4cedf4('0x178c')]['$parent']['vm']['updateLocalStorage']();}catch(_0x464b6f){_0x1c5762[_0x4cedf4('0x1db9')]({'title':_0x4cedf4('0x2f3'),'msg':'Error\x20updating\x20locally\x20stored\x20tabs'});}}function _0x178022(_0x5e02a8){const _0x1087ba=_0x235a9d;_0x46d4dd[_0x1087ba('0x1523')]=_0x5e02a8;if(_0x46d4dd['tab']){_0x46d4dd['call']=_0x46d4dd[_0x1087ba('0x1523')]['call'],_0x46d4dd[_0x1087ba('0x20cd')]=_0x46d4dd[_0x1087ba('0x1523')][_0x1087ba('0x184e')],_0x46d4dd[_0x1087ba('0x1c58')]=_0x46d4dd[_0x1087ba('0x1523')]['contact'],_0x46d4dd[_0x1087ba('0x87c')]=_0x46d4dd[_0x1087ba('0x1523')]['project'];if(_0x46d4dd[_0x1087ba('0x87c')]){if(_0x49cbdd()[_0x1087ba('0x2285')](_0x46d4dd[_0x1087ba('0x87c')]['formData'])){}else _0x46d4dd[_0x1087ba('0x1eef')](_0x46d4dd[_0x1087ba('0x87c')]['formData'])?_0x46d4dd[_0x1087ba('0x87c')][_0x1087ba('0x13ef')]=JSON[_0x1087ba('0x1f0a')](_0x46d4dd['project'][_0x1087ba('0x13ef')]):_0x46d4dd[_0x1087ba('0x87c')]['formData']=undefined;_0x46d4dd[_0x1087ba('0x87c')][_0x1087ba('0x95e')]=_0x46d4dd['project'][_0x1087ba('0x95e')]||{},_0x46d4dd['project'][_0x1087ba('0x1626')]!==undefined&&_0x2ecb41(function(){const _0x16ab34=_0x1087ba;_0x3a0193[_0x16ab34('0x2446')](_0x16ab34('0x27e5'),{'page':_0x46d4dd['project'][_0x16ab34('0x1626')]});}),_0x39841b['$on'](_0x1087ba('0x1a52'),function(_0x51ecd,_0x374c26){const _0x6d9fe5=_0x1087ba;if(_0x374c26[_0x6d9fe5('0x1626')]){_0x46d4dd['project'][_0x6d9fe5('0x1626')]=_0x374c26[_0x6d9fe5('0x1626')]['number']-0x1,_0x42f738();_0x46d4dd[_0x6d9fe5('0x87c')][_0x6d9fe5('0x4c9')]&&(_0x374c26[_0x6d9fe5('0x1626')][_0x6d9fe5('0x7b8')]>=0x1&&_0x374c26[_0x6d9fe5('0x1626')][_0x6d9fe5('0x7b8')]<_0x46d4dd[_0x6d9fe5('0x87c')][_0x6d9fe5('0x13ef')][_0x6d9fe5('0x1695')][_0x6d9fe5('0x1f73')]?_0x46d4dd[_0x6d9fe5('0x1551')]=!![]:_0x46d4dd[_0x6d9fe5('0x1551')]=![]);if(_0x46d4dd[_0x6d9fe5('0x87c')][_0x6d9fe5('0x13ef')]&&_0x46d4dd[_0x6d9fe5('0x87c')][_0x6d9fe5('0x13ef')]['pages'])for(let _0x4234db=0x0,_0x111720=_0x46d4dd[_0x6d9fe5('0x87c')][_0x6d9fe5('0x13ef')][_0x6d9fe5('0x1695')]['length'];_0x4234db<_0x111720;_0x4234db++){if(_0x374c26[_0x6d9fe5('0x1626')][_0x6d9fe5('0x7b8')]<_0x4234db+0x1&&_0x46d4dd['project'][_0x6d9fe5('0x13ef')][_0x6d9fe5('0x1695')][_0x4234db]['elements'])for(let _0x10c7c9=0x0,_0x64533f=_0x46d4dd[_0x6d9fe5('0x87c')][_0x6d9fe5('0x13ef')][_0x6d9fe5('0x1695')][_0x4234db]['elements']['length'];_0x10c7c9<_0x64533f;_0x10c7c9++){_0x46d4dd['project']['formData'][_0x6d9fe5('0x1695')][_0x4234db][_0x6d9fe5('0x174f')][_0x10c7c9][_0x6d9fe5('0x412')]===_0x6d9fe5('0x742')&&_0x46d4dd['project'][_0x6d9fe5('0x13ef')][_0x6d9fe5('0x1695')][_0x4234db][_0x6d9fe5('0x174f')][_0x10c7c9][_0x6d9fe5('0x742')]&&delete _0x46d4dd[_0x6d9fe5('0x87c')][_0x6d9fe5('0x95e')][_0x46d4dd[_0x6d9fe5('0x87c')][_0x6d9fe5('0x13ef')][_0x6d9fe5('0x1695')][_0x4234db]['elements'][_0x10c7c9][_0x6d9fe5('0x742')]['id']];}}}});}}}function _0x43edde(_0x21b0a0){if(_0x49cbdd()['isNil'](_0x21b0a0))return![];try{JSON['parse'](_0x21b0a0);}catch(_0x2d16dc){return![];}return!![];}function _0x576376(_0x54ad8b,_0x133249){const _0x69bb76=_0x235a9d;try{_0x39841b[_0x69bb76('0x178c')][_0x69bb76('0x178c')][_0x69bb76('0x178c')]['vm'][_0x69bb76('0x13b9')](_0x133249);}catch(_0x248b5c){_0x1c5762[_0x69bb76('0x1db9')]({'title':_0x69bb76('0x2423'),'msg':_0x69bb76('0x1e3c')});}}function _0x18c700(_0x236688){const _0x4c7b6f=_0x235a9d,_0xf88994=_0x33bb80[_0x4c7b6f('0x113c')]();return _0x46d4dd[_0x4c7b6f('0x87c')][_0x4c7b6f('0xc43')]?_0x21793e[_0x4c7b6f('0x221e')][_0x4c7b6f('0xc57')]({'id':_0x236688['id']})[_0x4c7b6f('0x1af5')][_0x4c7b6f('0x17e7')](function(){const _0x497db8=_0x4c7b6f;_0xf88994[_0x497db8('0x898')]();})[_0x4c7b6f('0x16df')](function(){const _0x552d16=_0x4c7b6f;console[_0x552d16('0x1d63')](_0x552d16('0x1f1')),_0xf88994[_0x552d16('0x898')]();}):_0xf88994[_0x4c7b6f('0x898')](),_0xf88994[_0x4c7b6f('0x1691')];}function _0x1bc6d2(_0x7404bb,_0x5985df){const _0x5c2424=_0x235a9d,_0x57eb0c=[],_0x45b369=[],_0x1d429a=_0x9bcb02[_0x5c2424('0x2831')]();_0x18c700(_0x1d429a)[_0x5c2424('0x17e7')](function(){const _0x30f690=_0x5c2424;return _0x21793e[_0x30f690('0x1338')]['save']({'starttime':_0x46d4dd[_0x30f690('0x20cd')],'membername':_0x46d4dd[_0x30f690('0x6b1')]&&_0x46d4dd[_0x30f690('0x6b1')]['membername']?_0x46d4dd[_0x30f690('0x6b1')][_0x30f690('0x2619')]:_0x1d429a[_0x30f690('0x2aa')],'calleridname':_0x46d4dd[_0x30f690('0x6b1')]&&_0x46d4dd[_0x30f690('0x6b1')][_0x30f690('0x2400')]?_0x46d4dd[_0x30f690('0x6b1')]['calleridname']:undefined,'calleridnum':_0x46d4dd[_0x30f690('0x6b1')]&&_0x46d4dd[_0x30f690('0x6b1')][_0x30f690('0x2202')]?_0x46d4dd[_0x30f690('0x6b1')][_0x30f690('0x2202')]:undefined,'queue':_0x46d4dd[_0x30f690('0x6b1')]&&_0x46d4dd['call'][_0x30f690('0x1bd')]?_0x46d4dd[_0x30f690('0x6b1')]['queue']:undefined,'uniqueid':_0x46d4dd[_0x30f690('0x6b1')]&&_0x46d4dd[_0x30f690('0x6b1')][_0x30f690('0x35b')]?_0x46d4dd[_0x30f690('0x6b1')][_0x30f690('0x35b')]:undefined,'VoiceQueueId':_0x46d4dd[_0x30f690('0x6b1')]&&_0x46d4dd[_0x30f690('0x6b1')][_0x30f690('0x847')]?_0x46d4dd[_0x30f690('0x6b1')][_0x30f690('0x847')]:undefined,'ProjectId':_0x46d4dd['project']&&_0x46d4dd[_0x30f690('0x87c')]['id']?_0x46d4dd[_0x30f690('0x87c')]['id']:undefined,'projectname':_0x46d4dd['project']&&_0x46d4dd['project'][_0x30f690('0x2aa')]?_0x46d4dd['project'][_0x30f690('0x2aa')]:undefined,'ContactId':_0x46d4dd['contact']&&_0x46d4dd[_0x30f690('0x1c58')]['id']?_0x46d4dd[_0x30f690('0x1c58')]['id']:undefined,'completed':_0x5985df})[_0x30f690('0x1af5')];})[_0x5c2424('0x17e7')](function(_0x370e7a){const _0x378585=_0x5c2424;if(_0x370e7a){const _0x1e7f31=_0x46d4dd[_0x378585('0x25d2')](),_0x2dc66d=_0x46d4dd['getResponseSheetRow'](),_0x5711b1=_0x46d4dd[_0x378585('0x463')]();for(let _0x1ad9da=0x0;_0x1ad9da<_0x1e7f31[_0x378585('0x1f73')];_0x1ad9da+=0x1){if(!_0x49cbdd()[_0x378585('0x109a')](String(_0x2dc66d[_0x1ad9da]))){try{_0x57eb0c[_0x378585('0x269f')](_0x21793e[_0x378585('0xc3a')][_0x378585('0x2439')]({'question':_0x1e7f31[_0x1ad9da],'answer':_0x5711b1[_0x1ad9da][_0x378585('0x412')]===_0x378585('0xbd4')?_0x107a13()(String(_0x2dc66d[_0x1ad9da]))[_0x378585('0x1c0d')](_0x378585('0x373')):_0x5711b1[_0x1ad9da][_0x378585('0x412')]===_0x378585('0x4ec')?_0x107a13()(String(_0x2dc66d[_0x1ad9da]))[_0x378585('0x1c0d')](_0x378585('0x1e6c')):String(_0x2dc66d[_0x1ad9da]),'questionId':_0x5711b1[_0x1ad9da]['id'],'membername':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x2619')]?_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x2619')]:_0x1d429a[_0x378585('0x2aa')],'calleridname':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd['call'][_0x378585('0x2400')]?_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x2400')]:undefined,'calleridnum':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x2202')]?_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x2202')]:undefined,'queue':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd['call'][_0x378585('0x1bd')]?_0x46d4dd[_0x378585('0x6b1')]['queue']:undefined,'uniqueid':_0x46d4dd['call']&&_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x35b')]?_0x46d4dd[_0x378585('0x6b1')]['uniqueid']:undefined,'SessionId':_0x370e7a['id'],'ProjectId':_0x46d4dd[_0x378585('0x87c')]['id'],'projectname':_0x46d4dd[_0x378585('0x87c')][_0x378585('0x2aa')]}));}catch(_0x2a4693){console[_0x378585('0x1db9')](_0x378585('0x7cf'),_0x2a4693);}const _0x4a590a=String(_0x2dc66d[_0x1ad9da])[_0x378585('0x2007')](';');for(let _0x4ed413=0x0;_0x4ed413<_0x4a590a[_0x378585('0x1f73')];_0x4ed413+=0x1){const _0x3a2e36=_0x4a590a[_0x4ed413][_0x378585('0x342')]();try{_0x45b369['push'](_0x21793e[_0x378585('0x2035')][_0x378585('0x2439')]({'question':_0x1e7f31[_0x1ad9da],'questionId':_0x5711b1[_0x1ad9da]['id'],'answer':_0x5711b1[_0x1ad9da][_0x378585('0x412')]===_0x378585('0xbd4')?_0x107a13()(_0x3a2e36)[_0x378585('0x1c0d')](_0x378585('0x373')):_0x5711b1[_0x1ad9da][_0x378585('0x412')]===_0x378585('0x4ec')?_0x107a13()(_0x3a2e36)[_0x378585('0x1c0d')]('HH:mm'):_0x3a2e36,'membername':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd[_0x378585('0x6b1')]['membername']?_0x46d4dd[_0x378585('0x6b1')]['membername']:_0x1d429a[_0x378585('0x2aa')],'calleridname':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd['call'][_0x378585('0x2400')]?_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x2400')]:undefined,'calleridnum':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd['call'][_0x378585('0x2202')]?_0x46d4dd[_0x378585('0x6b1')]['calleridnum']:undefined,'queue':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x1bd')]?_0x46d4dd['call'][_0x378585('0x1bd')]:undefined,'uniqueid':_0x46d4dd[_0x378585('0x6b1')]&&_0x46d4dd[_0x378585('0x6b1')][_0x378585('0x35b')]?_0x46d4dd['call']['uniqueid']:undefined,'SessionId':_0x370e7a['id'],'ProjectId':_0x46d4dd['project']['id'],'projectname':_0x46d4dd['project'][_0x378585('0x2aa')]}));}catch(_0xdf25dc){console[_0x378585('0x1db9')](_0x378585('0x24b8'),_0xdf25dc);}}}}}return _0x33bb80[_0x378585('0x1283')](_0x57eb0c)['then'](function(){const _0x58b410=_0x378585;return _0x33bb80[_0x58b410('0x1283')](_0x45b369)[_0x58b410('0x17e7')](function(){return _0x370e7a;});});})[_0x5c2424('0x17e7')](function(_0x121dcc){const _0x46a797=_0x5c2424;_0x121dcc?_0x7404bb[_0x46a797('0x898')](!![]):_0x7404bb[_0x46a797('0x1ad1')]();})[_0x5c2424('0x16df')](function(_0x4783e3){const _0x167a6c=_0x5c2424;if(_0x4783e3[_0x167a6c('0x1457')]&&_0x4783e3[_0x167a6c('0x1457')][_0x167a6c('0x73e')]&&_0x4783e3['data'][_0x167a6c('0x73e')][_0x167a6c('0x1f73')]){_0x46d4dd[_0x167a6c('0x73e')]=_0x4783e3[_0x167a6c('0x1457')][_0x167a6c('0x73e')]||[{'message':_0x4783e3[_0x167a6c('0x9b6')](),'type':_0x167a6c('0x20c')}];for(let _0x39d714=0x0;_0x39d714<_0x4783e3[_0x167a6c('0x1457')][_0x167a6c('0x73e')][_0x167a6c('0x1f73')];_0x39d714+=0x1){_0x1c5762[_0x167a6c('0x1db9')]({'title':_0x4783e3[_0x167a6c('0x1457')][_0x167a6c('0x73e')][_0x39d714][_0x167a6c('0x412')],'msg':_0x4783e3['data'][_0x167a6c('0x73e')][_0x39d714]['message']});}}else _0x1c5762[_0x167a6c('0x1db9')]({'title':_0x4783e3[_0x167a6c('0x11c5')]?_0x167a6c('0x14f7')+_0x4783e3[_0x167a6c('0x11c5')]+_0x167a6c('0x16e4')+_0x4783e3[_0x167a6c('0x1833')]:_0x167a6c('0x20c'),'msg':_0x4783e3[_0x167a6c('0x1457')]?JSON['stringify'](_0x4783e3[_0x167a6c('0x1457')]['message']):_0x4783e3['toString']()});_0x7404bb[_0x167a6c('0x1ad1')]();});}function _0x4feecd(_0x101a57){const _0x5fb18a=_0x235a9d;try{_0x39841b['$parent'][_0x5fb18a('0x178c')][_0x5fb18a('0x178c')]['vm'][_0x5fb18a('0x471')](_0x101a57);}catch(_0x125279){_0x1c5762[_0x5fb18a('0x1db9')]({'title':'ERROR\x20REMOVE\x20TAB','msg':_0x5fb18a('0xc9c')});}}function _0x1f73e3(_0x26e1a7,_0x46561b){const _0x214f4a=_0x235a9d,_0x4b9828=_0x33bb80[_0x214f4a('0x113c')]();if(_0x46561b){const _0x16af9f=_0x280424[_0x214f4a('0x1121')]()[_0x214f4a('0x24d3')]('Would\x20you\x20like\x20to\x20save\x20your\x20survey?')[_0x214f4a('0x18c5')]('')['ariaLabel']('survey')[_0x214f4a('0x104f')](_0x26e1a7)['ok']('YES')[_0x214f4a('0x1d47')]('NO');_0x280424[_0x214f4a('0x28e2')](_0x16af9f)[_0x214f4a('0x17e7')](function(){_0x1bc6d2(_0x4b9828,![]);},function(){const _0x16fb40=_0x214f4a;_0x4b9828[_0x16fb40('0x898')]();});}else _0x1bc6d2(_0x4b9828,!![]);return _0x4b9828[_0x214f4a('0x1691')][_0x214f4a('0x17e7')](function(_0x5ee1c5){const _0x151845=_0x214f4a;_0x5ee1c5&&(_0x1c5762[_0x151845('0x130d')]({'title':_0x151845('0x152b'),'msg':_0x151845('0xe53')}),_0x4feecd(_0x46d4dd[_0x151845('0x1523')]));})[_0x214f4a('0x16df')](function(){const _0x595d6f=_0x214f4a;_0x1c5762[_0x595d6f('0x1db9')]({'title':_0x595d6f('0x1fdc'),'msg':_0x595d6f('0x12b5')});});}function _0x46f23c(){const _0x590ed4=_0x235a9d;return _0x5c730a['getResponseSheet'](_0x46d4dd[_0x590ed4('0x87c')][_0x590ed4('0x13ef')],_0x46d4dd[_0x590ed4('0x87c')][_0x590ed4('0x95e')],![]);}function _0x48cb23(){const _0x5aeb1c=_0x235a9d;return _0x5c730a[_0x5aeb1c('0x13e7')](_0x46d4dd[_0x5aeb1c('0x87c')][_0x5aeb1c('0x13ef')],_0x46d4dd[_0x5aeb1c('0x87c')][_0x5aeb1c('0x95e')]);}function _0x69a819(){const _0x25a2b2=_0x235a9d;return _0x5c730a[_0x25a2b2('0x25d2')](_0x46d4dd[_0x25a2b2('0x87c')]['formData'],![]);}function _0x122dcf(){const _0x591d4c=_0x235a9d;return _0x5c730a['getQuestionWithResponseList'](_0x46d4dd[_0x591d4c('0x87c')][_0x591d4c('0x13ef')],_0x46d4dd[_0x591d4c('0x87c')][_0x591d4c('0x95e')]);}}const _0x519a98=_0x2fbfb2;_0x328c1b['$inject']=['$translate',_0x4376d8('0x108a'),_0x4376d8('0x1e03'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x328c1b(_0x37f12c,_0x2691e5,_0x54a401,_0x2b75c0,_0x579a28){const _0x23cd1d=_0x4376d8,_0x2ad2d4=this;_0x2ad2d4[_0x23cd1d('0x1e03')]=_0x54a401,_0x2ad2d4[_0x23cd1d('0x221e')]=_0x579a28[_0x23cd1d('0x2831')]();function _0x511f9e(){return function(_0x2a292d){const _0x3a2cd3=a0_0xd29e;if(_0x2a292d[_0x3a2cd3('0x11c5')]===0x194)_0x2691e5[_0x3a2cd3('0x1178')]({'title':_0x37f12c['instant']('DASHBOARDS.ATTENTION'),'msg':_0x37f12c['instant']('DASHBOARDS.ACCEPT_ELSEWHERE')});else{if(_0x2a292d[_0x3a2cd3('0x1457')]&&_0x2a292d[_0x3a2cd3('0x1457')][_0x3a2cd3('0x73e')]&&_0x2a292d[_0x3a2cd3('0x1457')]['errors'][_0x3a2cd3('0x1f73')]){_0x2ad2d4['errors']=_0x2a292d[_0x3a2cd3('0x1457')][_0x3a2cd3('0x73e')]||[{'message':_0x2a292d[_0x3a2cd3('0x9b6')](),'type':_0x3a2cd3('0x21db')}];for(let _0x538841=0x0;_0x538841<_0x2a292d[_0x3a2cd3('0x1457')][_0x3a2cd3('0x73e')][_0x3a2cd3('0x1f73')];_0x538841+=0x1){_0x2691e5[_0x3a2cd3('0x1db9')]({'title':_0x2a292d['data'][_0x3a2cd3('0x73e')][_0x538841]['type'],'msg':_0x2a292d[_0x3a2cd3('0x1457')][_0x3a2cd3('0x73e')][_0x538841][_0x3a2cd3('0x1603')]});}}else _0x2691e5[_0x3a2cd3('0x1db9')]({'title':_0x2a292d['status']?_0x3a2cd3('0x14f7')+_0x2a292d[_0x3a2cd3('0x11c5')]+_0x3a2cd3('0x16e4')+_0x2a292d[_0x3a2cd3('0x1833')]:'api.openchannelMessage.accept','msg':_0x2a292d['data']?JSON['stringify'](_0x2a292d[_0x3a2cd3('0x1457')]['message']):_0x2a292d['toString']()});}};}function _0x2a82e2(){const _0x3a453f=_0x23cd1d;if(_0x2b75c0[_0x2ad2d4['notification'][_0x3a453f('0x15d7')]+_0x3a453f('0x213')])return _0x2b75c0[_0x2ad2d4['notification'][_0x3a453f('0x15d7')]+_0x3a453f('0x213')][_0x3a453f('0x37')]({'id':_0x2ad2d4['notification']['id'],'UserId':_0x2ad2d4['user']['id'],'manual':!![]})['$promise'][_0x3a453f('0x17e7')](function(){const _0xa3b1a1=_0x3a453f;_0x2691e5[_0xa3b1a1('0x130d')]({'title':_0xa3b1a1('0x660'),'msg':_0xa3b1a1('0x1991')});})[_0x3a453f('0x16df')](_0x511f9e());else _0x2691e5['error']({'title':_0x3a453f('0x21dc'),'msg':_0x3a453f('0x17b1')+_0x2ad2d4[_0x3a453f('0x1e03')]['channel']+'Message'});}function _0x2ced79(){const _0x2c7c73=_0x23cd1d;if(_0x2b75c0[_0x2ad2d4[_0x2c7c73('0x1e03')][_0x2c7c73('0x15d7')]+_0x2c7c73('0x213')])return _0x2b75c0[_0x2ad2d4[_0x2c7c73('0x1e03')]['channel']+_0x2c7c73('0x213')][_0x2c7c73('0x1ad1')]({'id':_0x2ad2d4[_0x2c7c73('0x1e03')]['id'],'UserId':_0x2ad2d4[_0x2c7c73('0x221e')]['id']})[_0x2c7c73('0x1af5')][_0x2c7c73('0x17e7')](function(){const _0xc50629=_0x2c7c73;_0x2691e5[_0xc50629('0x130d')]({'title':'Message\x20properly\x20rejected!','msg':_0xc50629('0x72a')});})[_0x2c7c73('0x16df')](_0x511f9e());else _0x2691e5['error']({'title':_0x2c7c73('0x21dc'),'msg':_0x2c7c73('0x281e')+_0x2ad2d4[_0x2c7c73('0x1e03')][_0x2c7c73('0x15d7')]+_0x2c7c73('0x213')});}_0x2ad2d4[_0x23cd1d('0x37')]=_0x2a82e2,_0x2ad2d4[_0x23cd1d('0x1ad1')]=_0x2ced79;}const _0x26758c=_0x328c1b;function _0x4e7389(){const _0x1b0ac1=_0x4376d8,_0x2d8b5d=this;function _0x84bad1(_0x5cf47a){const _0x29ab55=a0_0xd29e;_0x2d8b5d[_0x29ab55('0x1523')]=_0x5cf47a,_0x2d8b5d[_0x29ab55('0x1523')]&&(_0x2d8b5d[_0x29ab55('0x1523')]['saved']=!![],_0x2d8b5d[_0x29ab55('0x19b6')]=_0x2d8b5d['tab'][_0x29ab55('0x19b6')]);}_0x2d8b5d[_0x1b0ac1('0x161d')]=_0x84bad1;}const _0x11ace3=_0x4e7389,_0x18888c=_0x4cf2bc['p']+_0x4376d8('0x19da');_0x37f20c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x37f20c(_0x4da635){const _0x58bf2e=_0x4376d8;_0x4da635['state'](_0x58bf2e('0x980'),{'url':_0x58bf2e('0x1e37'),'views':{'content@app':{'templateProvider':[_0x58bf2e('0x118b'),_0x58bf2e('0x18db'),_0x58bf2e('0x1885'),function(_0x57dfe9,_0x3d192b,_0x5a1d9f){const _0x152120=_0x58bf2e;return _0x5a1d9f[_0x152120('0xc61')]()?_0x3d192b['fromUrl'](_0x18888c,_0x57dfe9):_0x3d192b[_0x152120('0xd4c')](_0x33a8ce,_0x57dfe9);}],'controllerProvider':['Auth',function(_0x441841){const _0x393c31=_0x58bf2e;return _0x441841[_0x393c31('0xc61')]()?_0x393c31('0xa9d'):'UserDashboardGeneralController\x20as\x20vm';}]}},'resolve':{'globalUserLists':[_0x58bf2e('0x177'),'Auth',function(_0x2d3a99,_0x209adb){const _0x1747a5=_0x58bf2e;return _0x2d3a99[_0x1747a5('0x898')]('user@getLists',{'id':_0x209adb[_0x1747a5('0x2831')]()['id'],'sort':_0x1747a5('0x2aa'),'nolimit':!![]});}],'globalLists':[_0x58bf2e('0x177'),function(_0xeb2173){const _0x1f4ebc=_0x58bf2e;return _0xeb2173[_0x1f4ebc('0x898')](_0x1f4ebc('0x1fd9'),{'sort':'name','nolimit':!![]});}],'globalTags':[_0x58bf2e('0x177'),function(_0x22b463){const _0x32eb79=_0x58bf2e;return _0x22b463[_0x32eb79('0x898')](_0x32eb79('0x22aa'),{'sort':_0x32eb79('0x2aa'),'nolimit':!![]});}],'globalCompanies':[_0x58bf2e('0x177'),function(_0x1a6591){const _0x5ab77a=_0x58bf2e;return _0x1a6591[_0x5ab77a('0x898')](_0x5ab77a('0x1281'),{'sort':_0x5ab77a('0x2aa'),'nolimit':!![]});}]},'authenticate':!![],'bodyClass':_0x58bf2e('0x2419')});}angular['module'](_0x4376d8('0x980'),[_0x4376d8('0x2847'),'app.dashboards.general.user'])['config'](_0x37f20c)[_0x4376d8('0x5ce')](_0x4376d8('0xa'),_0x5ccd5e)[_0x4376d8('0x26a6')]('draftManager',_0x1ce22e)[_0x4376d8('0x189c')]('desktopNotification',_0x3662c0)[_0x4376d8('0x189c')](_0x4376d8('0x105'),_0x26d7ab)[_0x4376d8('0x14ec')](_0x4376d8('0x206d'),_0x1ff8f5)['controller']('AgentGeneralBotController',_0x280fee)[_0x4376d8('0x5ce')](_0x4376d8('0xfa5'),_0x3daca6)[_0x4376d8('0x5ce')](_0x4376d8('0x1731'),_0x4f3912)[_0x4376d8('0x5ce')]('RescheduleCallDialogController',_0x3c6cf4)[_0x4376d8('0x5ce')](_0x4376d8('0x1a68'),_0x2c52f5)[_0x4376d8('0x5ce')](_0x4376d8('0x3a3'),_0x198c62)[_0x4376d8('0x5ce')](_0x4376d8('0x4c6'),_0x37c8f9)['controller'](_0x4376d8('0xf7b'),_0x2de979)['controller'](_0x4376d8('0x191c'),_0x263dff)[_0x4376d8('0x5ce')](_0x4376d8('0x1de8'),_0x27cf0b)[_0x4376d8('0x5ce')](_0x4376d8('0x284e'),_0x5f1976)[_0x4376d8('0x5ce')](_0x4376d8('0x6a7'),_0x4d0187)[_0x4376d8('0x5ce')](_0x4376d8('0x1a61'),_0x2f7cbd)[_0x4376d8('0x5ce')]('AgentHomeDashboardBullController',_0x2ed058)[_0x4376d8('0x5ce')](_0x4376d8('0x17cb'),_0x26b3ab)['controller'](_0x4376d8('0x261'),_0x1026a3)[_0x4376d8('0x5ce')]('AgentHomeDashboardMultiChannelMailController',_0x7dd5fc)['controller'](_0x4376d8('0x206a'),_0x317004)[_0x4376d8('0x5ce')](_0x4376d8('0xdbb'),_0x244b9f)[_0x4376d8('0x5ce')]('AgentHomeDashboardVoiceController',_0x300e6f)[_0x4376d8('0x5ce')]('AgentHomeDashboardMultiChannelWhatsappController',_0x3344ad)[_0x4376d8('0x5ce')]('AgentHomeFaxController',_0x59ad71)['controller']('AgentHomeMailController',_0x506613)['controller'](_0x4376d8('0x21'),_0x4dd60b)[_0x4376d8('0x5ce')](_0x4376d8('0x148f'),_0x286047)[_0x4376d8('0x5ce')]('AgentHomePluginsController',_0xab1847)[_0x4376d8('0x5ce')](_0x4376d8('0x90e'),_0x9fe8f2)[_0x4376d8('0x5ce')]('AgentHomeScheduledCallsController',_0x476807)[_0x4376d8('0x5ce')](_0x4376d8('0x237b'),_0x6afe5c)[_0x4376d8('0x5ce')]('AgentHomeVoiceController',_0x14cf1e)[_0x4376d8('0x5ce')](_0x4376d8('0x1049'),_0x1b9afd)[_0x4376d8('0x5ce')](_0x4376d8('0x2098'),_0x59eb99)[_0x4376d8('0x5ce')]('AgentGeneralIframeController',_0x4e1c00)[_0x4376d8('0x213d')]('ngBindHtmlUnsafe',_0x17207a)[_0x4376d8('0x2483')](_0x4376d8('0x164f'),_0xc83e32)[_0x4376d8('0x5ce')](_0x4376d8('0x13b4'),_0x2efb6a)[_0x4376d8('0x26a6')]('Emojis',_0x38d6e5)[_0x4376d8('0x5ce')](_0x4376d8('0x1fc3'),_0x17cb17)['controller'](_0x4376d8('0x2373'),_0x29e739)[_0x4376d8('0x5ce')](_0x4376d8('0x1e5c'),_0x31bace)[_0x4376d8('0x5ce')]('ComposeSmsInteractionDialogController',_0x236481)['controller'](_0x4376d8('0x268c'),_0x5211dc)['controller'](_0x4376d8('0x110e'),_0x599b96)['controller'](_0x4376d8('0xcea'),_0x18d80a)[_0x4376d8('0x5ce')]('TransferMessageDialogController',_0x2e90ea)[_0x4376d8('0x5ce')](_0x4376d8('0x2312'),_0x519a98)[_0x4376d8('0x5ce')](_0x4376d8('0x7ed'),_0x26758c)[_0x4376d8('0x5ce')]('AgentGeneralPopupController',_0x11ace3);const _0x345e82=_0x4cf2bc['p']+_0x4376d8('0x344');_0x5d5bb2[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x33a'),_0x4376d8('0x668'),'api',_0x4376d8('0x25aa'),_0x4376d8('0x1885'),_0x4376d8('0x160f'),_0x4376d8('0xdeb'),_0x4376d8('0x383')];function _0x5d5bb2(_0x58e443,_0x8ce072,_0x3c84d6,_0x3b75b3,_0x9fd1db,_0x13388c,_0x163fad,_0x58f95f,_0x25512e){const _0x3713d6=_0x4376d8,_0x1cb120=this;_0x1cb120['currentUser']=_0x13388c['getCurrentUser'](),_0x1cb120['userProfile']=_0x58f95f,_0x1cb120[_0x3713d6('0x383')]=_0x25512e&&_0x25512e['count']==0x1?_0x25512e[_0x3713d6('0x2319')][0x0]:null,_0x1cb120['crudPermissions']=_0x13388c['parseCrudPermissions'](_0x1cb120[_0x3713d6('0x383')]?_0x1cb120[_0x3713d6('0x383')][_0x3713d6('0x103e')]:null),_0x1cb120[_0x3713d6('0x282f')]={},_0x1cb120[_0x3713d6('0x160f')]=_0x163fad&&_0x163fad[_0x3713d6('0x335')]?_0x163fad:{'count':0x0,'rows':[]},_0x1cb120[_0x3713d6('0x1494')]=_0x163fad&&_0x163fad[_0x3713d6('0x335')]?_0x49cbdd()['map'](_0x163fad[_0x3713d6('0x2319')],'id'):[],_0x1cb120[_0x3713d6('0x231f')]=_0x8ce072(function(){},0x3e8),_0x1cb120[_0x3713d6('0x579')]=_0xaa6194,_0x1cb120[_0x3713d6('0x1b47')]=_0x1a213a,_0x9fd1db[_0x3713d6('0x1335')](_0x3713d6('0x1ddb'),_0x46d2ef),_0x3b75b3[_0x3713d6('0x40f')][_0x3713d6('0x1c53')]({'id':_0x58e443['params']['id']})[_0x3713d6('0x1af5')][_0x3713d6('0x17e7')](function(_0xa57d3c){const _0x2ca1f7=_0x3713d6;if(_0xa57d3c)return _0x1cb120[_0x2ca1f7('0x282f')]=_0xa57d3c,_0x1cb120[_0x2ca1f7('0x282f')][_0x2ca1f7('0xb18')]=[],_0x1cb120['customDashboard'][_0x2ca1f7('0x145b')]=!![],_0x1cb120['customDashboard'][_0x2ca1f7('0x19e')]={'enabled':![]},_0x1cb120[_0x2ca1f7('0x282f')][_0x2ca1f7('0x672')]={'enabled':![]},_0x3b75b3['dashboard']['getItems']({'id':_0x1cb120[_0x2ca1f7('0x282f')]['id']})['$promise'];})[_0x3713d6('0x17e7')](function(_0x59fd9c){const _0x5e8f80=_0x3713d6;if(_0x59fd9c&&_0x59fd9c['count']&&_0x59fd9c[_0x5e8f80('0x2319')])for(let _0xa48c77=0x0;_0xa48c77<_0x59fd9c[_0x5e8f80('0x2319')][_0x5e8f80('0x1f73')];_0xa48c77+=0x1){_0x59fd9c['rows'][_0xa48c77][_0x5e8f80('0x156')]='app/core/directives/ms-widget-engine/ms-widget-engine-'+_0x59fd9c[_0x5e8f80('0x2319')][_0xa48c77][_0x5e8f80('0x412')]+_0x5e8f80('0x14c')+_0x59fd9c[_0x5e8f80('0x2319')][_0xa48c77][_0x5e8f80('0x412')]+_0x5e8f80('0xb14'),_0x59fd9c['rows'][_0xa48c77][_0x5e8f80('0x160f')]=_0x1cb120['voiceQueues'],_0x59fd9c['rows'][_0xa48c77][_0x5e8f80('0x1494')]=_0x1cb120['voiceQueuesSelected'],_0x1cb120[_0x5e8f80('0x282f')][_0x5e8f80('0xb18')]['push'](_0x59fd9c[_0x5e8f80('0x2319')][_0xa48c77]);}})['catch'](function(){const _0xf15da4=_0x3713d6;_0x1cb120[_0xf15da4('0x282f')]=undefined;});function _0x46d2ef(_0x7a2a63){const _0x28ed63=_0x3713d6,_0x4e4ce8=_0x49cbdd()[_0x28ed63('0xe8e')](_0x1cb120[_0x28ed63('0x160f')][_0x28ed63('0x2319')],{'id':_0x7a2a63['id']});_0x4e4ce8&&_0x49cbdd()['merge'](_0x4e4ce8,_0x49cbdd()[_0x28ed63('0x230a')](_0x7a2a63,_0x49cbdd()['keys'](_0x4e4ce8)));}function _0xaa6194(){const _0x340c28=_0x3713d6;for(let _0x499278=0x0;_0x499278<_0x1cb120[_0x340c28('0x282f')][_0x340c28('0xb18')]['length'];_0x499278+=0x1){_0x1cb120[_0x340c28('0x282f')][_0x340c28('0xb18')][_0x499278][_0x340c28('0x1494')]=_0x1cb120[_0x340c28('0x1494')];}}function _0x1a213a(){const _0x32a857=_0x3713d6;_0x58e443['go'](_0x32a857('0x475'),{'id':_0x1cb120['customDashboard']['id'],'tab':0x1});}_0x3c84d6[_0x3713d6('0x207c')](_0x3713d6('0x2b4'),function(){const _0x2e1957=_0x3713d6;_0x9fd1db[_0x2e1957('0x1c65')](_0x2e1957('0x1ddb')),_0x1cb120[_0x2e1957('0x231f')]&&_0x8ce072[_0x2e1957('0x1d47')](_0x1cb120[_0x2e1957('0x231f')]);});}const _0x3984ee=_0x5d5bb2;_0x1f8b62['$inject']=[_0x4376d8('0x183a')];function _0x1f8b62(_0x540f3b){const _0x5905fb=_0x4376d8;_0x540f3b[_0x5905fb('0x1b9a')]('app.dashboards.custom',{'url':_0x5905fb('0x7fb'),'views':{'content@app':{'templateUrl':_0x345e82,'controller':'DashboardCustomController\x20as\x20vm'}},'resolve':{'voiceQueues':[_0x5905fb('0x177'),'Auth',function(_0x453c0b,_0x3c74d9){const _0x290995=_0x5905fb;let _0x5d8c96;const _0x44bc05=_0x3c74d9[_0x290995('0x1ba2')](_0x290995('0x20bf'))?_0x453c0b[_0x290995('0x898')](_0x290995('0xa5a'),{'fields':_0x290995('0x12d2'),'nolimit':!![]}):_0x453c0b[_0x290995('0x898')]('userProfile@getResources',{'id':_0x3c74d9[_0x290995('0x2831')]()[_0x290995('0x1e76')],'section':'VoiceQueues','mergeResources':!![],'fields':_0x290995('0x12d2'),'channel':_0x290995('0x1fe1'),'nolimit':!![]});return _0x44bc05[_0x290995('0x17e7')](function(_0x3f2b3a){return _0x5d8c96=_0x3f2b3a,_0x453c0b['resolve']('rpc@getVoiceQueues');})[_0x290995('0x17e7')](function(_0x1073fa){const _0x160b69=_0x290995;if(_0x1073fa)for(let _0xfe2a00=0x0,_0x5ca546;_0xfe2a00<_0x1073fa[_0x160b69('0x2319')][_0x160b69('0x1f73')];_0xfe2a00+=0x1){_0x5ca546=_0x49cbdd()[_0x160b69('0xe8e')](_0x5d8c96[_0x160b69('0x2319')],{'id':_0x1073fa['rows'][_0xfe2a00]['id']}),_0x5ca546&&_0x49cbdd()[_0x160b69('0x1ced')](_0x5ca546,_0x49cbdd()['pick'](_0x1073fa['rows'][_0xfe2a00],[_0x160b69('0x2143'),_0x160b69('0x1d0e'),_0x160b69('0x1d20'),_0x160b69('0x3c8'),_0x160b69('0x116a'),_0x160b69('0x22b6')]));}return _0x5d8c96;});}],'userProfile':['apiResolver',_0x5905fb('0x1885'),function(_0xab77a4,_0x23954c){const _0x329475=_0x5905fb;return _0xab77a4[_0x329475('0x898')]('userProfile@get',{'fields':_0x329475('0x8d3'),'id':_0x23954c[_0x329475('0x2831')]()[_0x329475('0x1e76')]});}],'userProfileSection':[_0x5905fb('0x177'),_0x5905fb('0x1885'),function(_0x5b0e7e,_0x3d93b9){const _0x363aba=_0x5905fb;return _0x5b0e7e[_0x363aba('0x898')]('userProfileSection@get',{'fields':_0x363aba('0x1134'),'userProfileId':_0x3d93b9[_0x363aba('0x2831')]()[_0x363aba('0x1e76')],'sectionId':0x64});}]},'authenticate':!![],'bodyClass':_0x5905fb('0x2419')});}angular[_0x4376d8('0x11c4')](_0x4376d8('0xc99'),[])[_0x4376d8('0x1980')](_0x1f8b62)[_0x4376d8('0x5ce')]('DashboardCustomController',_0x3984ee),_0x15c2d3[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x15c2d3(_0x31b56e,_0x7b18d3){const _0x34c680=_0x4376d8;_0x31b56e['state'](_0x34c680('0xc67'),{'abstract':!![],'url':_0x34c680('0x9c')}),_0x7b18d3[_0x34c680('0x10b3')](_0x34c680('0x183f'));}angular['module']('app.dashboards',['ngCsv','ngPassword',_0x4376d8('0x1ae'),'flow',_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),'ngAria',_0x4376d8('0x2757'),'mdPickers',_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),'app.dashboards.general',_0x4376d8('0xc99')])[_0x4376d8('0x1980')](_0x15c2d3);const _0x3ae851=_0x4cf2bc['p']+_0x4376d8('0x1b7b'),_0x17582f=_0x4cf2bc['p']+'src/js/modules/main/apps/staff/views/agents/create/dialog.html/dialog.html';_0x3760c2[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),'$mdSidenav','$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),'agents','userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x3760c2(_0x102a00,_0x431c93,_0x1043b3,_0x40a876,_0x350562,_0x41adb8,_0xebdca1,_0x476c7f,_0x25a142,_0x408af7,_0x469c2f,_0x257843,_0x119c5a,_0x54be17,_0x2fc825,_0x15a40e,_0x27526a){const _0x499ab5=_0x4376d8,_0x71c09a=this;_0x71c09a[_0x499ab5('0x1d11')]=_0x15a40e,_0x71c09a['setting']=_0x27526a,_0x71c09a[_0x499ab5('0x197c')]=_0x2fc825[_0x499ab5('0x2831')](),_0x71c09a['agents']=_0x25a142||{'count':0x0,'rows':[]},_0x71c09a[_0x499ab5('0xdeb')]=_0x408af7,_0x71c09a[_0x499ab5('0x383')]=_0x469c2f&&_0x469c2f[_0x499ab5('0x335')]==0x1?_0x469c2f[_0x499ab5('0x2319')][0x0]:null,_0x71c09a[_0x499ab5('0x103e')]=_0x2fc825[_0x499ab5('0x17a9')](_0x71c09a[_0x499ab5('0x383')]?_0x71c09a[_0x499ab5('0x383')][_0x499ab5('0x103e')]:null),_0x71c09a[_0x499ab5('0x23c3')]=_0x499ab5('0x25ea'),_0x71c09a[_0x499ab5('0x26a1')]='',_0x71c09a['listOrderAsc']=null,_0x71c09a[_0x499ab5('0x40a')]=[],_0x71c09a[_0x499ab5('0x826')]={'fields':_0x499ab5('0xcdf'),'role':_0x499ab5('0x684'),'sort':_0x499ab5('0x1ac6'),'limit':0xa,'page':0x1},_0x71c09a['arrayshowWebBar']=_0x49cbdd()['keyBy']([{'option':_0x499ab5('0x11e3'),'value':'0'},{'option':_0x499ab5('0x1844'),'value':'1'},{'option':_0x499ab5('0x1736'),'value':'2'}],function(_0x8d9662){const _0x23611c=_0x499ab5;return _0x49cbdd()[_0x23611c('0x737')](_0x8d9662['value'],new RegExp('\x27','g'),'');}),_0x71c09a['arraytransport']=_0x49cbdd()[_0x499ab5('0x8de')]([{'option':_0x499ab5('0x22c'),'value':_0x499ab5('0xc15')},{'option':'tcp','value':_0x499ab5('0x26e9')},{'option':'ws','value':_0x499ab5('0x1d05'),'ngIf':'vm.agent.showWebBar\x20==\x201'},{'option':_0x499ab5('0x1054'),'value':_0x499ab5('0x1287'),'ngIf':_0x499ab5('0x2362')},{'option':_0x499ab5('0x2e2'),'value':_0x499ab5('0x175d'),'ngIf':_0x499ab5('0x2362')}],function(_0x41ed51){const _0x48750f=_0x499ab5;return _0x49cbdd()[_0x48750f('0x737')](_0x41ed51[_0x48750f('0x175b')],new RegExp('\x27','g'),'');}),_0x71c09a['arraynat']=_0x49cbdd()['keyBy']([{'option':_0x499ab5('0x222f'),'value':_0x499ab5('0xf77')},{'option':_0x499ab5('0x549'),'value':_0x499ab5('0x1010')},{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x499ab5('0x2471')},{'option':_0x499ab5('0x360'),'value':_0x499ab5('0xc4d')},{'option':_0x499ab5('0x21ec'),'value':_0x499ab5('0x210b')}],function(_0x2faeb5){const _0x3547c0=_0x499ab5;return _0x49cbdd()[_0x3547c0('0x737')](_0x2faeb5[_0x3547c0('0x175b')],new RegExp('\x27','g'),'');}),_0x71c09a[_0x499ab5('0xc41')]=_0x49cbdd()[_0x499ab5('0x8de')]([{'option':_0x499ab5('0x129e'),'value':_0x499ab5('0x19ab')},{'option':_0x499ab5('0x24fd'),'value':_0x499ab5('0x4')},{'option':'Peer','value':_0x499ab5('0x517')}],function(_0x3f2183){const _0x3ed10f=_0x499ab5;return _0x49cbdd()[_0x3ed10f('0x737')](_0x3f2183[_0x3ed10f('0x175b')],new RegExp('\x27','g'),'');}),_0x71c09a[_0x499ab5('0x248')]=_0x49cbdd()['keyBy']([{'option':'ulaw','value':_0x499ab5('0xe8d')},{'option':_0x499ab5('0xaee'),'value':_0x499ab5('0x273')},{'option':_0x499ab5('0xbc3'),'value':_0x499ab5('0x24ec')},{'option':'g722','value':_0x499ab5('0x3aa')},{'option':_0x499ab5('0x1116'),'value':'\x27g729\x27'},{'option':'opus','value':'\x27opus\x27'},{'option':'h264','value':_0x499ab5('0x8be')}],function(_0x185b1d){const _0x56180e=_0x499ab5;return _0x49cbdd()[_0x56180e('0x737')](_0x185b1d[_0x56180e('0x175b')],new RegExp('\x27','g'),'');}),_0x71c09a[_0x499ab5('0x1570')]=_0x49cbdd()[_0x499ab5('0x8de')]([{'option':_0x499ab5('0x8e3'),'value':_0x499ab5('0xd7b')},{'option':'No','value':_0x499ab5('0x2471')},{'option':_0x499ab5('0x768'),'value':'\x27always\x27'}],function(_0xee55ee){const _0x18b3d7=_0x499ab5;return _0x49cbdd()['replace'](_0xee55ee[_0x18b3d7('0x175b')],new RegExp('\x27','g'),'');}),_0x71c09a[_0x499ab5('0xa76')]=_0x49cbdd()[_0x499ab5('0x8de')]([{'option':'Inactive','value':'\x27\x27'},{'option':'wav','value':_0x499ab5('0x2744')},{'option':_0x499ab5('0x1daa'),'value':'\x27WAV\x27'},{'option':_0x499ab5('0xbc3'),'value':_0x499ab5('0x24ec')}],function(_0x370b07){const _0x3e4949=_0x499ab5;return _0x49cbdd()[_0x3e4949('0x737')](_0x370b07['value'],new RegExp('\x27','g'),'');}),_0x71c09a[_0x499ab5('0xcd4')]=_0x492e26,_0x71c09a['teamadddialog']=_0x26e873,_0x71c09a['deleteconfirm']=_0x14cb62,_0x71c09a[_0x499ab5('0x130d')]=_0x1770ca,_0x71c09a[_0x499ab5('0x1dac')]=_0x533afe,_0x71c09a[_0x499ab5('0x1414')]=_0x315b2f,_0x71c09a[_0x499ab5('0x24e4')]=_0x38720f,_0x71c09a['exportSelectedAgents']=_0x5bb4c5,_0x71c09a[_0x499ab5('0x1a22')]=_0x188c4f,_0x71c09a[_0x499ab5('0x192')]=_0x3a022e,_0x71c09a['selectAllAgents']=_0x249dfa;function _0x492e26(_0x15894c){const _0x474045=_0x499ab5;_0x1043b3['go']('app.staff.agents.edit',{'id':_0x15894c['id'],'agent':_0x15894c,'crudPermissions':_0x71c09a[_0x474045('0x103e')]});}function _0x26e873(_0x34fd84,_0x6d9dcd){const _0x1a0bf4=_0x499ab5;_0x350562[_0x1a0bf4('0x28e2')]({'controller':'AgentteamaddController','controllerAs':'vm','templateUrl':_0x3ae851,'parent':angular['element'](_0x41adb8[_0x1a0bf4('0x13aa')]),'targetEvent':_0x6d9dcd,'clickOutsideToClose':!![],'locals':{'agent':_0x34fd84,'agents':_0x71c09a[_0x1a0bf4('0x25ea')]?_0x71c09a[_0x1a0bf4('0x25ea')]['rows']:[],'crudPermissions':_0x71c09a[_0x1a0bf4('0x103e')]}});}function _0x14cb62(_0x5cbbdd,_0x43e429){const _0xce0df0=_0x499ab5,_0x1289e9=_0x350562['confirm']()[_0xce0df0('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x49cbdd()[_0xce0df0('0x1c98')]('agent')+'?')[_0xce0df0('0x211f')](_0xce0df0('0xa53')+(_0x5cbbdd[_0xce0df0('0x2aa')]||_0xce0df0('0x684'))+_0xce0df0('0x1d23')+_0xce0df0('0xe9f'))[_0xce0df0('0x2095')](_0xce0df0('0x20f9'))[_0xce0df0('0x104f')](_0x43e429)['ok']('OK')[_0xce0df0('0x1d47')](_0xce0df0('0x28a0'));_0x350562['show'](_0x1289e9)[_0xce0df0('0x17e7')](function(){_0x38720f(_0x5cbbdd);},function(){console['log']('CANCEL');});}let _0x9481d=!![],_0x200f7b=0x1;_0x102a00[_0x499ab5('0x620')](_0x499ab5('0x3ed'),function(_0x4976d7,_0x1328f0){const _0x4f744f=_0x499ab5;_0x9481d?_0xebdca1(function(){_0x9481d=![];}):(!_0x1328f0&&(_0x200f7b=_0x71c09a[_0x4f744f('0x826')]['page']),_0x4976d7!==_0x1328f0&&(_0x71c09a[_0x4f744f('0x826')]['page']=0x1),!_0x4976d7&&(_0x71c09a['query'][_0x4f744f('0x115a')]=_0x200f7b),_0x71c09a['getAgents']());});function _0x1770ca(_0x21604b){const _0x5dcd47=_0x499ab5;_0x71c09a[_0x5dcd47('0x25ea')]=_0x21604b||{'count':0x0,'rows':[]};}function _0x533afe(){const _0x27cabf=_0x499ab5;_0x71c09a['query'][_0x27cabf('0xf19')]=(_0x71c09a[_0x27cabf('0x826')][_0x27cabf('0x115a')]-0x1)*_0x71c09a[_0x27cabf('0x826')][_0x27cabf('0x193b')],_0x2fc825['hasRole'](_0x27cabf('0x20bf'))?_0x71c09a[_0x27cabf('0x1691')]=_0x257843[_0x27cabf('0x221e')][_0x27cabf('0x1c53')](_0x71c09a[_0x27cabf('0x826')],_0x1770ca)[_0x27cabf('0x1af5')]:(_0x71c09a[_0x27cabf('0x826')]['id']=_0x71c09a[_0x27cabf('0xdeb')]['id'],_0x71c09a[_0x27cabf('0x826')][_0x27cabf('0x16f8')]='Agents',_0x71c09a[_0x27cabf('0x1691')]=_0x257843[_0x27cabf('0xdeb')][_0x27cabf('0x2447')](_0x71c09a[_0x27cabf('0x826')],_0x1770ca)[_0x27cabf('0x1af5')]);}function _0x315b2f(_0x5e7241,_0x6375ac){const _0x2fcd04=_0x499ab5;_0x350562[_0x2fcd04('0x28e2')]({'controller':'CreateOrEditAgentDialogController','controllerAs':'vm','templateUrl':_0x17582f,'parent':angular['element'](_0x41adb8[_0x2fcd04('0x13aa')]),'targetEvent':_0x5e7241,'clickOutsideToClose':!![],'locals':{'agent':_0x6375ac,'agents':_0x71c09a[_0x2fcd04('0x25ea')][_0x2fcd04('0x2319')],'license':_0x71c09a[_0x2fcd04('0x1d11')],'setting':_0x71c09a['setting'],'crudPermissions':_0x71c09a['crudPermissions']}});}function _0x38720f(_0x5989aa){const _0x2ba104=_0x499ab5;_0x257843[_0x2ba104('0x221e')]['delete']({'id':_0x5989aa['id']})['$promise'][_0x2ba104('0x17e7')](function(){const _0x569393=_0x2ba104;_0x49cbdd()['remove'](_0x71c09a[_0x569393('0x25ea')]['rows'],{'id':_0x5989aa['id']}),_0x71c09a[_0x569393('0x25ea')]['count']-=0x1,!_0x71c09a[_0x569393('0x25ea')]['rows'][_0x569393('0x1f73')]&&_0x71c09a[_0x569393('0x1dac')](),_0x54be17[_0x569393('0x130d')]({'title':_0x49cbdd()[_0x569393('0x1c98')](_0x569393('0x1874'))+_0x569393('0x2673'),'msg':_0x5989aa[_0x569393('0x2aa')]?_0x5989aa['name']+_0x569393('0x149f'):''});})[_0x2ba104('0x16df')](function(_0x129353){const _0x174008=_0x2ba104;if(_0x129353[_0x174008('0x1457')]&&_0x129353[_0x174008('0x1457')]['errors']&&_0x129353[_0x174008('0x1457')]['errors'][_0x174008('0x1f73')]){_0x71c09a[_0x174008('0x73e')]=_0x129353['data']['errors']||[{'message':_0x129353[_0x174008('0x9b6')](),'type':_0x174008('0x197f')}];for(let _0x5858f7=0x0;_0x5858f7<_0x129353[_0x174008('0x1457')]['errors'][_0x174008('0x1f73')];_0x5858f7++){_0x54be17['error']({'title':_0x129353['data'][_0x174008('0x73e')][_0x5858f7][_0x174008('0x412')],'msg':_0x129353[_0x174008('0x1457')][_0x174008('0x73e')][_0x5858f7]['message']});}}else _0x54be17[_0x174008('0x1db9')]({'title':_0x129353[_0x174008('0x11c5')]?_0x174008('0x14f7')+_0x129353['status']+_0x174008('0x16e4')+_0x129353[_0x174008('0x1833')]:_0x174008('0x197f'),'msg':_0x129353['data']?JSON[_0x174008('0x678')](_0x129353[_0x174008('0x1457')][_0x174008('0x1603')]):_0x129353[_0x174008('0x1603')]||_0x129353['toString']()});});}function _0x5bb4c5(){const _0x54335c=_0x499ab5,_0x5a802e=angular['copy'](_0x71c09a[_0x54335c('0x40a')]);return _0x71c09a['selectedAgents']=[],_0x5a802e;}function _0x188c4f(_0x46685c){const _0x5dc228=_0x499ab5,_0xedf9c8=_0x350562['confirm']()[_0x5dc228('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20agents?')[_0x5dc228('0x211f')](_0x5dc228('0xa53')+_0x71c09a[_0x5dc228('0x40a')]['length']+_0x5dc228('0x145a')+_0x5dc228('0xe9f'))['ariaLabel'](_0x5dc228('0x1919'))[_0x5dc228('0x104f')](_0x46685c)['ok']('OK')[_0x5dc228('0x1d47')](_0x5dc228('0x28a0'));_0x350562[_0x5dc228('0x28e2')](_0xedf9c8)[_0x5dc228('0x17e7')](function(){const _0x311344=_0x5dc228;_0x71c09a[_0x311344('0x40a')][_0x311344('0xccd')](function(_0x2b40ad){_0x38720f(_0x2b40ad);}),_0x71c09a[_0x311344('0x40a')]=[];});}function _0x3a022e(){const _0x387a11=_0x499ab5;_0x71c09a[_0x387a11('0x40a')]=[];}function _0x249dfa(){const _0x239191=_0x499ab5;_0x71c09a['selectedAgents']=_0x71c09a[_0x239191('0x25ea')]['rows'];}}const _0x166f70=_0x3760c2;_0x168d1a[_0x4376d8('0x1b9c')]=['$scope','$state','$location',_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),'agents','agent',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x168d1a(_0x5675a3,_0x3f8fc7,_0xaa34f1,_0xbf62a7,_0x351b06,_0x25b618,_0x43eb5d,_0x49c559,_0x53cc03,_0x57fb2f,_0x48745a,_0x1e7a9c,_0x40ee06,_0x5dadc5){const _0xedb4bf=_0x4376d8,_0xc10ee3=this;_0xc10ee3[_0xedb4bf('0x197c')]=_0x48745a[_0xedb4bf('0x2831')](),_0xc10ee3['errors']=[],_0xc10ee3[_0xedb4bf('0x1aeb')]=_0x40ee06,_0xc10ee3[_0xedb4bf('0x1d11')]=_0x1e7a9c,_0xc10ee3[_0xedb4bf('0x103e')]=_0x5dadc5,_0xc10ee3['hasModulePermissions']={},_0xc10ee3[_0xedb4bf('0x1572')]=_0xc10ee3['setting']&&_0xc10ee3[_0xedb4bf('0x1aeb')][_0xedb4bf('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xc10ee3[_0xedb4bf('0x24d3')]=_0xedb4bf('0x1af0'),_0xc10ee3[_0xedb4bf('0x684')]=angular['copy'](_0x53cc03),_0xc10ee3[_0xedb4bf('0x25ea')]=_0x49c559,_0xc10ee3[_0xedb4bf('0x1bd5')]=![];!_0xc10ee3[_0xedb4bf('0x684')]&&(_0xc10ee3['agent']={'role':'agent','showWebBar':'0','autointernal':!![],'type':_0xedb4bf('0x1a82'),'context':'from-sip','phoneBarRemoteControl':!![],'phoneBarRemoteControlPort':0x26a0,'allowmessenger':!![]},_0xc10ee3['title']=_0xedb4bf('0x1a0b'),_0xc10ee3[_0xedb4bf('0x1bd5')]=!![]);_0xc10ee3[_0xedb4bf('0x2549')]=_0x4d2948,_0xc10ee3[_0xedb4bf('0x211b')]=_0x444930,_0xc10ee3[_0xedb4bf('0x24e4')]=_0x1af30f,_0xc10ee3['getDateFromString']=_0x2eb1fc,_0xc10ee3[_0xedb4bf('0x136e')]=_0x515990;function _0x4d2948(){const _0x4e0bcc=_0xedb4bf;_0xc10ee3['errors']=[],_0x57fb2f[_0x4e0bcc('0x221e')][_0x4e0bcc('0x2439')](_0xc10ee3[_0x4e0bcc('0x684')])['$promise'][_0x4e0bcc('0x17e7')](function(_0x173bd8){const _0x57591f=_0x4e0bcc;_0xc10ee3['agents']['unshift'](_0x173bd8[_0x57591f('0x16b2')]()),_0x43eb5d['success']({'title':_0x57591f('0x1513'),'msg':_0xc10ee3[_0x57591f('0x684')][_0x57591f('0x2aa')]?_0xc10ee3[_0x57591f('0x684')][_0x57591f('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x515990(_0x173bd8);})['catch'](function(_0x1f6ca7){const _0x3d434c=_0x4e0bcc;if(_0x1f6ca7[_0x3d434c('0x1457')]&&_0x1f6ca7[_0x3d434c('0x1457')]['errors']&&_0x1f6ca7['data'][_0x3d434c('0x73e')][_0x3d434c('0x1f73')]){_0xc10ee3[_0x3d434c('0x73e')]=_0x1f6ca7[_0x3d434c('0x1457')]['errors']||[{'message':_0x1f6ca7[_0x3d434c('0x9b6')](),'type':_0x3d434c('0x131f')}];for(let _0x21eb27=0x0;_0x21eb27<_0x1f6ca7[_0x3d434c('0x1457')][_0x3d434c('0x73e')][_0x3d434c('0x1f73')];_0x21eb27+=0x1){_0x43eb5d[_0x3d434c('0x1db9')]({'title':_0x1f6ca7[_0x3d434c('0x1457')][_0x3d434c('0x73e')][_0x21eb27][_0x3d434c('0x412')],'msg':_0x1f6ca7[_0x3d434c('0x1457')][_0x3d434c('0x73e')][_0x21eb27][_0x3d434c('0x1603')]});}}else _0x43eb5d['error']({'title':_0x1f6ca7['status']?_0x3d434c('0x14f7')+_0x1f6ca7['status']+_0x3d434c('0x16e4')+_0x1f6ca7[_0x3d434c('0x1833')]:'api.user.save','msg':_0x1f6ca7['data']?JSON['stringify'](_0x1f6ca7[_0x3d434c('0x1457')]['message']):_0x1f6ca7['toString']()});});}function _0x444930(){const _0x2288fa=_0xedb4bf;_0xc10ee3[_0x2288fa('0x73e')]=[],_0x57fb2f[_0x2288fa('0x221e')]['update']({'id':_0xc10ee3[_0x2288fa('0x684')]['id']},_0xc10ee3[_0x2288fa('0x684')])['$promise']['then'](function(_0x4c0841){const _0x5c2211=_0x2288fa,_0x5d564b=_0x49cbdd()[_0x5c2211('0xe8e')](_0xc10ee3['agents'],{'id':_0x4c0841['id']});_0x5d564b&&_0x49cbdd()[_0x5c2211('0x1ced')](_0x5d564b,_0x49cbdd()[_0x5c2211('0x230a')](_0x4c0841['toJSON'](),_0x49cbdd()[_0x5c2211('0x1c0f')](_0x5d564b))),_0x43eb5d[_0x5c2211('0x130d')]({'title':_0x5c2211('0x143c'),'msg':_0xc10ee3[_0x5c2211('0x684')]['name']?_0xc10ee3['agent'][_0x5c2211('0x2aa')]+_0x5c2211('0x15ca'):''}),_0x515990(_0x4c0841);})[_0x2288fa('0x16df')](function(_0x498a3b){const _0x27f12c=_0x2288fa;if(_0x498a3b[_0x27f12c('0x1457')]&&_0x498a3b['data'][_0x27f12c('0x73e')]&&_0x498a3b[_0x27f12c('0x1457')][_0x27f12c('0x73e')][_0x27f12c('0x1f73')]){_0xc10ee3[_0x27f12c('0x73e')]=_0x498a3b['data'][_0x27f12c('0x73e')]||[{'message':_0x498a3b[_0x27f12c('0x9b6')](),'type':_0x27f12c('0xad3')}];for(let _0x3c93d6=0x0;_0x3c93d6<_0x498a3b[_0x27f12c('0x1457')][_0x27f12c('0x73e')]['length'];_0x3c93d6++){_0x43eb5d['error']({'title':_0x498a3b[_0x27f12c('0x1457')][_0x27f12c('0x73e')][_0x3c93d6][_0x27f12c('0x412')],'msg':_0x498a3b[_0x27f12c('0x1457')]['errors'][_0x3c93d6]['message']});}}else _0x43eb5d[_0x27f12c('0x1db9')]({'title':_0x498a3b['status']?'API:'+_0x498a3b[_0x27f12c('0x11c5')]+'\x20-\x20'+_0x498a3b[_0x27f12c('0x1833')]:_0x27f12c('0xad3'),'msg':_0x498a3b['data']?JSON[_0x27f12c('0x678')](_0x498a3b[_0x27f12c('0x1457')][_0x27f12c('0x1603')]):_0x498a3b[_0x27f12c('0x9b6')]()});});}function _0x1af30f(_0x99a91f){const _0x334cb7=_0xedb4bf;_0xc10ee3[_0x334cb7('0x73e')]=[];const _0x2222df=_0xbf62a7[_0x334cb7('0x1121')]()[_0x334cb7('0x24d3')](_0x334cb7('0x530'))[_0x334cb7('0xd5')](_0x334cb7('0x2842'))['ariaLabel'](_0x334cb7('0x2062'))['ok']('Delete')[_0x334cb7('0x1d47')](_0x334cb7('0x1b70'))[_0x334cb7('0x104f')](_0x99a91f);_0xbf62a7[_0x334cb7('0x28e2')](_0x2222df)['then'](function(){const _0x41a588=_0x334cb7;_0x57fb2f[_0x41a588('0x221e')][_0x41a588('0x1da6')]({'id':_0xc10ee3[_0x41a588('0x684')]['id']})[_0x41a588('0x1af5')]['then'](function(){const _0x3dd759=_0x41a588;_0x49cbdd()[_0x3dd759('0x5f3')](_0xc10ee3[_0x3dd759('0x25ea')],{'id':_0xc10ee3[_0x3dd759('0x684')]['id']}),_0x43eb5d[_0x3dd759('0x130d')]({'title':_0x3dd759('0x2251'),'msg':(_0xc10ee3[_0x3dd759('0x684')]['name']||_0x3dd759('0x684'))+_0x3dd759('0x149f')}),_0x515990(_0xc10ee3[_0x3dd759('0x684')]);})[_0x41a588('0x16df')](function(_0x51e442){const _0x19daa8=_0x41a588;if(_0x51e442['data']&&_0x51e442['data'][_0x19daa8('0x73e')]&&_0x51e442[_0x19daa8('0x1457')]['errors']['length']){_0xc10ee3[_0x19daa8('0x73e')]=_0x51e442[_0x19daa8('0x1457')][_0x19daa8('0x73e')]||[{'message':_0x51e442[_0x19daa8('0x9b6')](),'type':'api.user.delete'}];for(let _0x1c69de=0x0;_0x1c69de<_0x51e442[_0x19daa8('0x1457')][_0x19daa8('0x73e')][_0x19daa8('0x1f73')];_0x1c69de++){_0x43eb5d['error']({'title':_0x51e442[_0x19daa8('0x1457')][_0x19daa8('0x73e')][_0x1c69de][_0x19daa8('0x412')],'msg':_0x51e442['data'][_0x19daa8('0x73e')][_0x1c69de][_0x19daa8('0x1603')]});}}else _0x43eb5d['error']({'title':_0x51e442[_0x19daa8('0x11c5')]?'API:'+_0x51e442[_0x19daa8('0x11c5')]+_0x19daa8('0x16e4')+_0x51e442[_0x19daa8('0x1833')]:_0x19daa8('0x1e0f'),'msg':_0x51e442['data']?JSON[_0x19daa8('0x678')](_0x51e442[_0x19daa8('0x1457')][_0x19daa8('0x1603')]):_0x51e442[_0x19daa8('0x1603')]||_0x51e442[_0x19daa8('0x9b6')]()});});},function(){});}function _0x2eb1fc(_0x520a60){return _0x520a60===null?undefined:new Date(_0x520a60);}function _0x515990(_0x2bd998){const _0x4570d0=_0xedb4bf;_0xbf62a7[_0x4570d0('0x212a')](_0x2bd998);}}const _0x59576b=_0x168d1a;_0x2a843c[_0x4376d8('0x1b9c')]=['$cookies','toasty'];function _0x2a843c(_0x329d40,_0xe06c7d){const _0x49c39b=_0x4376d8,_0x3860a8=this,_0x272859=0x8,_0x2fb9c3=_0x272859*0x400*0x400;_0x3860a8['agent']={},_0x3860a8[_0x49c39b('0x103e')],_0x3860a8[_0x49c39b('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2fb9c3,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3860a8[_0x49c39b('0xbdf')]={'flow':{}},_0x3860a8[_0x49c39b('0x1b74')]=![],_0x3860a8[_0x49c39b('0xb73')]=_0x2d60,_0x3860a8[_0x49c39b('0x624')]=_0x1a563a,_0x3860a8['fileSuccess']=_0x397128,_0x3860a8[_0x49c39b('0x161d')]=_0xa13ac;function _0xa13ac(_0x4cb6e9,_0x594017){const _0x6adb13=_0x49c39b;_0x3860a8[_0x6adb13('0x684')]=angular[_0x6adb13('0x14e5')](_0x4cb6e9),_0x3860a8['crudPermissions']=typeof _0x594017!==_0x6adb13('0xfad')?_0x594017:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3860a8[_0x6adb13('0x1713')][_0x6adb13('0x8cf')]='api/users/'+_0x3860a8[_0x6adb13('0x684')]['id']+'/avatar',_0x3860a8['agent'][_0x6adb13('0x1563')]=[];}function _0x2d60(_0x2a18b4){const _0x33f7b3=_0x49c39b,_0x4539d4=[_0x33f7b3('0x1b65'),_0x33f7b3('0x5ef')];if(!_0x49cbdd()[_0x33f7b3('0x24b0')](_0x4539d4,_0x2a18b4[_0x33f7b3('0x11b0')]()))return _0xe06c7d[_0x33f7b3('0x1db9')]({'title':_0x33f7b3('0xf3d')+_0x2a18b4[_0x33f7b3('0x11b0')](),'msg':_0x33f7b3('0x836')+_0x4539d4[_0x33f7b3('0x1eba')]()}),![];if(_0x2a18b4[_0x33f7b3('0xf04')]>_0x2fb9c3)return _0xe06c7d[_0x33f7b3('0x1db9')]({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x272859+'MB'}),![];const _0x3d8082={'id':_0x2a18b4[_0x33f7b3('0x22b5')],'file':_0x2a18b4,'type':_0x33f7b3('0x22df')};return _0x3860a8[_0x33f7b3('0x684')][_0x33f7b3('0x1563')][_0x33f7b3('0x1893')](_0x3d8082),!![];}function _0x1a563a(){const _0x2a5ba7=_0x49c39b;_0x3860a8[_0x2a5ba7('0xbdf')][_0x2a5ba7('0x3bb')][_0x2a5ba7('0x1771')]['headers']={'X-Requested-With':_0x2a5ba7('0x20a6'),'Authorization':_0x2a5ba7('0x28e8')+_0x329d40[_0x2a5ba7('0x1c53')](_0x2a5ba7('0xb2a'))},_0x3860a8['ngFlow']['flow'][_0x2a5ba7('0x624')]();}function _0x397128(_0x9ce15f){const _0x43beed=_0x49c39b;angular[_0x43beed('0xccd')](_0x3860a8['agent'][_0x43beed('0x1563')],function(_0x358dae){const _0x29786e=_0x43beed;if(_0x358dae['id']===_0x9ce15f['uniqueIdentifier']){const _0x41ae18=new FileReader();_0x41ae18[_0x29786e('0x1ea4')](_0x358dae[_0x29786e('0xc89')][_0x29786e('0xc89')]),_0x41ae18['onload']=function(_0x1f9644){const _0x5c1e98=_0x29786e;_0x358dae[_0x5c1e98('0x101e')]=_0x1f9644[_0x5c1e98('0x8cf')][_0x5c1e98('0x2284')];},_0x358dae[_0x29786e('0x412')]=_0x29786e('0x22ad');}});}}const _0x30310a=_0x2a843c;_0x21234e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$mdDialog',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x684'),'setting',_0x4376d8('0x1885')];function _0x21234e(_0x3efae1,_0x530d81,_0x1d592c,_0x450449,_0xe1d750,_0x502be7,_0x4804a4){const _0xb83c10=_0x4376d8,_0x2c8071=this;_0x2c8071['currentUser']=_0x4804a4[_0xb83c10('0x2831')](),_0x2c8071[_0xb83c10('0x73e')]=[],_0x2c8071['setting']=_0x502be7,_0x2c8071[_0xb83c10('0x1572')]=_0x2c8071[_0xb83c10('0x1aeb')][_0xb83c10('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2c8071[_0xb83c10('0x684')]=_0xe1d750,_0x2c8071[_0xb83c10('0xb62')]='',_0x2c8071[_0xb83c10('0xf2d')]='',_0x2c8071[_0xb83c10('0x838')]=_0x10c300,_0x2c8071[_0xb83c10('0x136e')]=_0x183c87,_0x3efae1[_0xb83c10('0x620')](_0xb83c10('0x1a37'),function(_0x120b5f){const _0x38a5ba=_0xb83c10;!_0x49cbdd()[_0x38a5ba('0x390')](_0x2c8071[_0x38a5ba('0xf2d')])&&(_0x120b5f===_0x2c8071[_0x38a5ba('0xf2d')]?_0x3efae1['agentForm']['password'][_0x38a5ba('0x2663')](_0x38a5ba('0x1b25'),![]):_0x3efae1[_0x38a5ba('0xf98')]['password']['$setValidity'](_0x38a5ba('0x1b25'),!![]));});function _0x10c300(){const _0x4229a9=_0xb83c10;_0x2c8071[_0x4229a9('0x73e')]=[];const _0x2f7430={'id':_0x2c8071[_0x4229a9('0x684')]['id'],'newPassword':_0x2c8071[_0x4229a9('0xb62')]};_0x2c8071[_0x4229a9('0x197c')]['id']==_0x2c8071[_0x4229a9('0x684')]['id']&&(_0x2f7430[_0x4229a9('0xf2d')]=_0x2c8071[_0x4229a9('0xf2d')]),_0x450449['user'][_0x4229a9('0x14d7')](_0x2f7430)[_0x4229a9('0x1af5')]['then'](function(){const _0x4452de=_0x4229a9;_0x1d592c[_0x4452de('0x130d')]({'title':_0x4452de('0x24e0')}),_0x183c87();})[_0x4229a9('0x16df')](function(_0x23bd51){const _0x4d2788=_0x4229a9;_0x1d592c['error']({'title':_0x23bd51['status']?_0x4d2788('0x14f7')+_0x23bd51[_0x4d2788('0x11c5')]+_0x4d2788('0x16e4')+_0x23bd51[_0x4d2788('0x1833')]:_0x4d2788('0x1c97'),'msg':_0x23bd51[_0x4d2788('0x1457')]?JSON[_0x4d2788('0x678')](_0x23bd51[_0x4d2788('0x1457')]['message']):_0x23bd51[_0x4d2788('0x9b6')]()}),_0x2c8071[_0x4d2788('0x73e')]=_0x23bd51[_0x4d2788('0x1457')][_0x4d2788('0x73e')]||[{'message':_0x23bd51[_0x4d2788('0x9b6')](),'type':_0x4d2788('0x18c8')}];});}function _0x183c87(){const _0x5eac4f=_0xb83c10;_0x530d81[_0x5eac4f('0x212a')]();}}const _0x17995f=_0x21234e;_0x4d0195['$inject']=[_0x4376d8('0x26ca'),'$mdDialog',_0x4376d8('0x212e'),_0x4376d8('0x105'),_0x4376d8('0x108a')];function _0x4d0195(_0x1fb2f6,_0x301bb4,_0x6cbf30,_0x16621f,_0x40f009){const _0x24c350=_0x4376d8,_0x155ef8=this;_0x155ef8[_0x24c350('0x684')]={},_0x155ef8[_0x24c350('0x216')]=_0x16621f[_0x24c350('0x75d')](),_0x155ef8[_0x24c350('0x103e')],_0x155ef8['init']=_0x40c63d,_0x155ef8[_0x24c350('0x40')]=_0x44a6ad;function _0x40c63d(_0x2cea89,_0xa0d9ac){const _0x51406d=_0x24c350;_0x155ef8[_0x51406d('0x684')]=_0x2cea89,_0x155ef8['crudPermissions']=typeof _0xa0d9ac!==_0x51406d('0xfad')?_0xa0d9ac:{'readOnly':!![],'canEdit':![],'canDelete':![]};}function _0x44a6ad(_0x2a6971,_0xc9f27d){const _0x471078=_0x24c350,_0x4910bd=_0xc9f27d||_0x2a6971;if(_0x4910bd[_0x471078('0x1cd3')]){if(_0xc9f27d)_0xc9f27d[_0x471078('0x1cd3')]=!![],_0x155ef8[_0x471078('0x684')][_0x471078('0x2316')][_0x471078('0x269f')](_0xc9f27d['id']);else for(let _0x3aa8c0=0x0;_0x3aa8c0<_0x2a6971[_0x471078('0x2857')]['length'];_0x3aa8c0++){_0x2a6971[_0x471078('0x2857')][_0x3aa8c0][_0x471078('0x1cd3')]=!![],_0x155ef8[_0x471078('0x684')][_0x471078('0x2316')][_0x471078('0x269f')](_0x2a6971[_0x471078('0x2857')][_0x3aa8c0]['id']);}_0x2a6971['enabled']=!![],_0x155ef8[_0x471078('0x684')][_0x471078('0x2316')]['push'](_0x2a6971['id']);}else{if(_0xc9f27d)_0xc9f27d[_0x471078('0x1cd3')]=![],_0x49cbdd()[_0x471078('0x5f3')](_0x155ef8['agent'][_0x471078('0x2316')],function(_0x55db50){return _0xc9f27d['id']===_0x55db50;}),_0x49cbdd()['filter'](_0x2a6971[_0x471078('0x2857')],{'enabled':![]})['length']===_0x2a6971[_0x471078('0x2857')][_0x471078('0x1f73')]&&(_0x2a6971[_0x471078('0x1cd3')]=![],_0x49cbdd()[_0x471078('0x5f3')](_0x155ef8['agent'][_0x471078('0x2316')],function(_0x241d5e){return _0x2a6971['id']===_0x241d5e;}));else{_0x2a6971['enabled']=![],_0x49cbdd()[_0x471078('0x5f3')](_0x155ef8[_0x471078('0x684')][_0x471078('0x2316')],function(_0x1b404e){return _0x2a6971['id']===_0x1b404e;});for(let _0x308e38=0x0;_0x308e38<_0x2a6971[_0x471078('0x2857')][_0x471078('0x1f73')];_0x308e38++){_0x2a6971[_0x471078('0x2857')][_0x308e38]['enabled']=![],_0x49cbdd()[_0x471078('0x5f3')](_0x155ef8[_0x471078('0x684')][_0x471078('0x2316')],function(_0x4dacdb){const _0x5aa5f7=_0x471078;return _0x2a6971[_0x5aa5f7('0x2857')][_0x308e38]['id']===_0x4dacdb;});}}}return _0x6cbf30[_0x471078('0x221e')][_0x471078('0x27ba')]({'id':_0x155ef8[_0x471078('0x684')]['id'],'permissions':_0x49cbdd()['uniq'](_0x155ef8[_0x471078('0x684')][_0x471078('0x2316')])})[_0x471078('0x1af5')][_0x471078('0x17e7')](function(){const _0xbae1f8=_0x471078;_0x40f009['success']({'title':_0xbae1f8('0xc77'),'msg':_0x155ef8[_0xbae1f8('0x684')][_0xbae1f8('0x2aa')]?_0x155ef8[_0xbae1f8('0x684')][_0xbae1f8('0x2aa')]+_0xbae1f8('0x12b0'):''});})[_0x471078('0x16df')](function(_0xac904e){console['error'](_0xac904e);});}}const _0x29542e=_0x4d0195;_0x3fd0e1[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x684'),_0x4376d8('0x15d7'),'direction',_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x3fd0e1(_0x2c3782,_0x54bfac,_0x1545df,_0x2aa2d2,_0x122995,_0x17f2b5,_0xef2a32,_0x5326db,_0x18ec36,_0x324d50){const _0x309a98=_0x4376d8,_0x9ca783=this;_0x9ca783[_0x309a98('0x197c')]=_0x18ec36[_0x309a98('0x2831')](),_0x9ca783[_0x309a98('0x684')]=_0x122995,_0x9ca783[_0x309a98('0x103e')]=_0x324d50,_0x9ca783['penalty']=0x0,_0x9ca783[_0x309a98('0x15d7')]=_0x17f2b5,_0x9ca783[_0x309a98('0x733')]=_0xef2a32,_0x9ca783['apiName']=_0x9ca783[_0x309a98('0x15d7')]+_0x309a98('0x1eb2'),_0x9ca783['title']=_0x5326db[_0x309a98('0x1acc')](_0x309a98('0x1d46')+_0x9ca783['channel']['toUpperCase']()+'_'+_0x9ca783['direction'][_0x309a98('0x14e2')]()),_0x9ca783[_0x309a98('0x532')]=[],_0x9ca783[_0x309a98('0x2722')]=[],_0x9ca783[_0x309a98('0xc14')]=[],_0x9ca783[_0x309a98('0x181b')]=[],_0x9ca783[_0x309a98('0x1824')]=[],_0x9ca783[_0x309a98('0x25dc')]=![],_0x9ca783[_0x309a98('0x26f4')]={'readOnly':!_0x9ca783[_0x309a98('0x103e')][_0x309a98('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x309a98('0x2aa'),'line2':_0x309a98('0x412'),'line3':_0x9ca783[_0x309a98('0x15d7')]===_0x309a98('0x1fe1')?_0x309a98('0x122c'):'','labelAll':_0x5326db[_0x309a98('0x1acc')](_0x309a98('0xb29')+_0x9ca783['channel']['toUpperCase']()+'_'+_0x9ca783[_0x309a98('0x733')][_0x309a98('0x14e2')]()),'labelSelected':_0x5326db[_0x309a98('0x1acc')](_0x309a98('0x1493')+_0x9ca783['channel']['toUpperCase']()+'_'+_0x9ca783[_0x309a98('0x733')][_0x309a98('0x14e2')]()),'transferCallback':function(_0x4d47f4,_0x5638b9){const _0x4c2390=_0x309a98;_0x5638b9?_0x4d47f4[_0x4c2390('0xccd')](function(_0x2a376c){const _0x2719d3=_0x4c2390;_0x2a376c[_0x2719d3('0x122c')]=undefined;}):_0x4d47f4[_0x4c2390('0xccd')](function(_0x177834){const _0x19992f=_0x4c2390;_0x177834[_0x19992f('0x122c')]=_0x19992f('0x973')+_0x9ca783['penalty'];});const _0xe1cb1e=_0x49cbdd()['xorWith'](_0x9ca783[_0x4c2390('0x1824')],_0x9ca783['selectedItems'],function(_0x2325a1,_0x216dbf){const _0x4a7f53=_0x4c2390;return _0x2325a1['id']===_0x216dbf['id']&&_0x2325a1[_0x4a7f53('0x122c')]===_0x216dbf[_0x4a7f53('0x122c')];});_0x9ca783[_0x4c2390('0x25dc')]=_0x49cbdd()[_0x4c2390('0x109a')](_0xe1cb1e)?![]:!![];}},_0x9ca783['onInit']=_0x4d3471,_0x9ca783[_0x309a98('0x16cf')]=_0x1c3fa1,_0x9ca783['closeDialog']=_0x5ec750;function _0x4d3471(){const _0x1f0f88=_0x309a98;return _0x18ec36[_0x1f0f88('0x1ba2')](_0x1f0f88('0x20bf'))?_0xe3a989()[_0x1f0f88('0x16df')](function(_0x57c65e){const _0x16a556=_0x1f0f88;_0x1545df[_0x16a556('0x1db9')]({'title':_0x57c65e[_0x16a556('0x11c5')]?_0x16a556('0x14f7')+_0x57c65e[_0x16a556('0x11c5')]+_0x16a556('0x16e4')+_0x57c65e[_0x16a556('0x1833')]:'SYSTEM:GET_QUEUES','msg':_0x57c65e['status']?JSON[_0x16a556('0x678')](_0x57c65e[_0x16a556('0x1457')]):_0x57c65e[_0x16a556('0x9b6')]()});}):_0x3bf883()['then'](function(_0x39836a){const _0x16132c=_0x1f0f88;return _0x9ca783[_0x16132c('0x16f8')]=_0x39836a,_0xe3a989();})[_0x1f0f88('0x16df')](function(_0x30ad0e){const _0x5a0172=_0x1f0f88;_0x1545df[_0x5a0172('0x1db9')]({'title':_0x30ad0e[_0x5a0172('0x11c5')]?_0x5a0172('0x14f7')+_0x30ad0e[_0x5a0172('0x11c5')]+_0x5a0172('0x16e4')+_0x30ad0e[_0x5a0172('0x1833')]:_0x5a0172('0x92a'),'msg':_0x30ad0e[_0x5a0172('0x11c5')]?JSON[_0x5a0172('0x678')](_0x30ad0e[_0x5a0172('0x1457')]):_0x30ad0e[_0x5a0172('0x9b6')]()});});}function _0x3bf883(){return _0x54bfac(function(_0x5d7931,_0x4395e5){const _0x3790b0=a0_0xd29e;let _0x2f89b7;switch(_0x9ca783['channel']){case _0x3790b0('0x1fe1'):switch(_0x9ca783[_0x3790b0('0x733')]){case _0x3790b0('0x1e77'):_0x2f89b7=_0x3790b0('0x2068');break;case'outbound':_0x2f89b7=_0x3790b0('0x1299');break;}break;case _0x3790b0('0x2219'):_0x2f89b7='ChatQueues';break;case _0x3790b0('0xc2'):_0x2f89b7=_0x3790b0('0x294');break;case _0x3790b0('0x2cd'):_0x2f89b7=_0x3790b0('0x544');break;case _0x3790b0('0x1508'):_0x2f89b7=_0x3790b0('0x1dad');break;case'fax':_0x2f89b7='FaxQueues';break;}_0x2aa2d2[_0x3790b0('0x383')][_0x3790b0('0x1c53')]({'userProfileId':_0x9ca783['currentUser'][_0x3790b0('0x1e76')],'name':_0x2f89b7})['$promise'][_0x3790b0('0x17e7')](function(_0x1d27b7){const _0x405b54=_0x1d27b7&&_0x1d27b7['rows']?_0x1d27b7['rows'][0x0]:null;_0x5d7931(_0x405b54);})[_0x3790b0('0x16df')](function(_0x5c0721){_0x4395e5(_0x5c0721);});});}function _0xe3a989(){return _0x54bfac(function(_0x496e3e,_0x334eea){const _0x38ba2b=a0_0xd29e;return _0x18e806()[_0x38ba2b('0x17e7')](function(_0x1fcbf6){const _0x336420=_0x38ba2b;return _0x9ca783[_0x336420('0x532')]=_0x1fcbf6[_0x336420('0x2319')]?_0x1fcbf6['rows']:[],_0x18ec36[_0x336420('0x1ba2')](_0x336420('0x20bf'))?_0x1fcbf6:_0x9ca783['section']?_0x9ca783[_0x336420('0x16f8')][_0x336420('0x9e3')]?_0x1fcbf6:_0x25ec8e():null;})[_0x38ba2b('0x17e7')](function(_0x4f477f){const _0x529b56=_0x38ba2b,_0x3988ba=_0x4f477f&&_0x4f477f[_0x529b56('0x2319')]?_0x4f477f['rows']:[];return _0x9ca783[_0x529b56('0x2722')]=_0x49cbdd()['map'](_0x3988ba,function(_0x294e72){const _0x35b421=_0x529b56;return _0x49cbdd()[_0x35b421('0xe8e')](_0x9ca783[_0x35b421('0x532')],{'id':_0x18ec36['hasRole'](_0x35b421('0x20bf'))||_0x9ca783[_0x35b421('0x16f8')][_0x35b421('0x9e3')]?_0x294e72['id']:_0x294e72[_0x35b421('0x5db')]});}),_0x9ca783[_0x529b56('0x181b')]=angular[_0x529b56('0x14e5')](_0x9ca783['allowedItems']),_0x9ca783['items']['forEach'](function(_0x510140){const _0x2568e1=_0x529b56,_0x4a2230=_0x49cbdd()[_0x2568e1('0xe8e')](_0x9ca783[_0x2568e1('0x2722')],{'id':_0x510140['id']});_0x18ec36[_0x2568e1('0x1ba2')](_0x2568e1('0x20bf'))?_0x510140['isValid']=!![]:_0x510140['isValid']=typeof _0x4a2230!==_0x2568e1('0xfad')?!![]:![];}),_0x305ca3();})['then'](function(_0x10f490){const _0x50e2b0=_0x38ba2b,_0x28b6c0=_0x10f490&&_0x10f490[_0x50e2b0('0x2319')]?_0x10f490['rows']:[];_0x9ca783[_0x50e2b0('0xc14')]=_0x49cbdd()['map'](_0x28b6c0,function(_0x3f2e33){const _0x5bcb79=_0x50e2b0,_0xabf062=_0x49cbdd()['find'](_0x9ca783[_0x5bcb79('0x532')],{'id':_0x3f2e33['id']});return _0x9ca783[_0x5bcb79('0x15d7')]===_0x5bcb79('0x1fe1')&&(_0xabf062['penalty']=typeof _0xabf062!=='undefined'&&typeof _0x3f2e33['UserVoiceQueue']!=='undefined'?_0x5bcb79('0x973')+_0x3f2e33['UserVoiceQueue']['penalty']:_0x5bcb79('0x973')+0x0),_0xabf062;}),_0x9ca783[_0x50e2b0('0x1824')]=angular[_0x50e2b0('0x14e5')](_0x9ca783[_0x50e2b0('0xc14')]),_0x9ca783[_0x50e2b0('0x26f4')]['selectedItems']=_0x9ca783[_0x50e2b0('0xc14')],_0x9ca783[_0x50e2b0('0x26f4')][_0x50e2b0('0x532')]=_0x49cbdd()['differenceBy'](_0x9ca783['allowedItems'],_0x9ca783[_0x50e2b0('0x26f4')][_0x50e2b0('0xc14')],'id'),_0x496e3e();})['catch'](function(_0x3b407f){_0x334eea(_0x3b407f);});});}function _0x25ec8e(){return _0x54bfac(function(_0x172239,_0xb75a35){const _0x22f082=a0_0xd29e;return _0x2aa2d2[_0x22f082('0x78d')]['get']({'sectionId':_0x9ca783[_0x22f082('0x16f8')]['id'],'nolimit':!![]})[_0x22f082('0x1af5')][_0x22f082('0x17e7')](function(_0x5ecd5d){_0x172239(_0x5ecd5d);})[_0x22f082('0x16df')](function(_0x3a8f1d){_0xb75a35(_0x3a8f1d);});});}function _0x305ca3(){return _0x54bfac(function(_0x26a2b8,_0x2e3118){const _0x5952da=a0_0xd29e;return _0x2aa2d2['user'][_0x5952da('0x1f3b')]({'id':_0x9ca783[_0x5952da('0x684')]['id'],'fields':'id,name,strategy,type,penalty','nolimit':!![],'type':_0x9ca783['direction'],'channel':_0x9ca783[_0x5952da('0x15d7')]})['$promise']['then'](function(_0x5c9189){_0x26a2b8(_0x5c9189);})['catch'](function(_0xa60f15){_0x2e3118(_0xa60f15);});});}function _0x18e806(){return _0x54bfac(function(_0x4ee5bd,_0x2eed35){const _0x240cc4=a0_0xd29e;return _0x2aa2d2[_0x9ca783[_0x240cc4('0x2883')]]['get']({'fields':_0x240cc4('0x1100'),'channel':_0x9ca783['channel']===_0x240cc4('0x8e7')?'voice':_0x9ca783['channel'],'type':_0x9ca783[_0x240cc4('0x733')],'nolimit':!![]})['$promise']['then'](function(_0x3f6c7d){_0x4ee5bd(_0x3f6c7d);})[_0x240cc4('0x16df')](function(_0x41de68){_0x2eed35(_0x41de68);});});}function _0x7d389d(_0x41579a){return _0x54bfac(function(_0x5482de,_0x22b665){const _0x7b514e=a0_0xd29e;if(_0x49cbdd()['isEmpty'](_0x41579a))_0x5482de();else{if(_0x9ca783[_0x7b514e('0x15d7')]==='voice'){const _0x1cb426=[],_0x1041c7=_0x49cbdd()[_0x7b514e('0x139f')](_0x41579a,_0x7b514e('0x122c'));for(let _0x425e89=0x0;_0x425e89':'',_0x4346bd;}),_0x3eef74['startingSelectedItems']=angular[_0x3abdc4('0x14e5')](_0x3eef74[_0x3abdc4('0xc14')]),_0x3eef74['dualMultiselectOptions'][_0x3abdc4('0xc14')]=_0x3eef74['selectedItems'],_0x3eef74[_0x3abdc4('0x26f4')]['items']=_0x49cbdd()[_0x3abdc4('0x1ada')](_0x3eef74['allowedItems'],_0x3eef74[_0x3abdc4('0x26f4')]['selectedItems'],'id'),_0x406084();})[_0x4eaf2d('0x16df')](function(_0x1bb756){_0x11180c(_0x1bb756);});});}function _0xdfdcb2(){return _0x40b25a(function(_0x1da23f,_0x4dd674){const _0x453d4f=a0_0xd29e;return _0x5b8f57['userProfileResource'][_0x453d4f('0x1c53')]({'sectionId':_0x3eef74[_0x453d4f('0x16f8')]['id'],'nolimit':!![]})[_0x453d4f('0x1af5')]['then'](function(_0x1b1114){_0x1da23f(_0x1b1114);})[_0x453d4f('0x16df')](function(_0x46cb63){_0x4dd674(_0x46cb63);});});}function _0x13e3d6(){return _0x40b25a(function(_0x5366ab,_0x38a46e){const _0x584253=a0_0xd29e;return _0x5b8f57['team'][_0x584253('0x1dac')]({'id':_0x3eef74[_0x584253('0x176')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x584253('0x684')})[_0x584253('0x1af5')]['then'](function(_0xf632dd){_0x5366ab(_0xf632dd);})['catch'](function(_0x1776cd){_0x38a46e(_0x1776cd);});});}function _0x5aaf3b(){return _0x40b25a(function(_0x5f03f5,_0xe9ddc6){const _0x516313=a0_0xd29e;return _0x5b8f57[_0x516313('0x221e')][_0x516313('0x1c53')]({'fields':_0x516313('0x1152'),'nolimit':!![],'role':_0x516313('0x684')})['$promise']['then'](function(_0x58f485){_0x5f03f5(_0x58f485);})[_0x516313('0x16df')](function(_0x5086e6){_0xe9ddc6(_0x5086e6);});});}function _0x49215f(_0x260dec){return _0x40b25a(function(_0x439e94,_0x360bf3){const _0x433c94=a0_0xd29e;_0x49cbdd()[_0x433c94('0x109a')](_0x260dec)?_0x439e94():_0x5b8f57[_0x433c94('0x176')][_0x433c94('0x1f22')]({'id':_0x3eef74[_0x433c94('0x176')]['id'],'ids':_0x49cbdd()[_0x433c94('0x787')](_0x260dec,'id')})[_0x433c94('0x1af5')]['then'](function(){_0x439e94();})[_0x433c94('0x16df')](function(_0x4a73ac){_0x360bf3(_0x4a73ac);});});}function _0x54a257(_0x21b034){return _0x40b25a(function(_0x430228,_0x21272d){const _0x43fefe=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x21b034)?_0x430228():_0x5b8f57['team']['removeAgents']({'id':_0x3eef74[_0x43fefe('0x176')]['id'],'ids':_0x49cbdd()['map'](_0x21b034,'id')})[_0x43fefe('0x1af5')]['then'](function(){_0x430228();})['catch'](function(_0x2df994){_0x21272d(_0x2df994);});});}function _0x102f78(){const _0x4ea6f0=_0x5b4486,_0x480682=_0x49cbdd()[_0x4ea6f0('0x1ada')](_0x3eef74[_0x4ea6f0('0x1824')],_0x3eef74[_0x4ea6f0('0xc14')],'id'),_0x1f038a=_0x49cbdd()[_0x4ea6f0('0x1ada')](_0x3eef74[_0x4ea6f0('0xc14')],_0x3eef74[_0x4ea6f0('0x1824')],'id');return _0x54a257(_0x480682)[_0x4ea6f0('0x17e7')](function(){return _0x49215f(_0x1f038a);})[_0x4ea6f0('0x17e7')](function(){const _0xd4f6c8=_0x4ea6f0;_0x3eef74[_0xd4f6c8('0x25dc')]=![],_0x3eef74[_0xd4f6c8('0x181b')]=angular[_0xd4f6c8('0x14e5')](_0x3eef74[_0xd4f6c8('0x2722')]),_0x3eef74[_0xd4f6c8('0x1824')]=angular[_0xd4f6c8('0x14e5')](_0x3eef74[_0xd4f6c8('0xc14')]),_0x27a08c[_0xd4f6c8('0x130d')]({'title':_0xd4f6c8('0x9d1'),'msg':_0xd4f6c8('0x2603')});})[_0x4ea6f0('0x16df')](function(_0x4a51df){const _0x1523db=_0x4ea6f0;_0x27a08c[_0x1523db('0x1db9')]({'title':_0x4a51df['status']?_0x1523db('0x14f7')+_0x4a51df['status']+_0x1523db('0x16e4')+_0x4a51df[_0x1523db('0x1833')]:_0x1523db('0x244e'),'msg':_0x4a51df['status']?JSON[_0x1523db('0x678')](_0x4a51df[_0x1523db('0x1457')]):_0x4a51df[_0x1523db('0x9b6')]()});});}function _0x380027(){const _0x147915=_0x5b4486;_0x208df6[_0x147915('0x212a')]();}}const _0x47c7da=_0x17a2eb,_0x393048=_0x4cf2bc['p']+_0x4376d8('0x3e0'),_0x38418c=_0x4cf2bc['p']+_0x4376d8('0x8');_0x20466f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x225b'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x20466f(_0x231fea,_0x542067,_0x70378f,_0x27ac43,_0x5e823c,_0x423c4e,_0x2c2156,_0x48a2f5,_0x30d329,_0x513449,_0xcf59e9,_0x21e003,_0x42275f,_0x196633,_0x328bd9,_0x18a7d7,_0x1f4552){const _0x5209be=_0x4376d8,_0x9519de=this;_0x9519de[_0x5209be('0x1d11')]=_0x18a7d7,_0x9519de[_0x5209be('0x1aeb')]=_0x1f4552,_0x9519de[_0x5209be('0x197c')]=_0x328bd9[_0x5209be('0x2831')](),_0x9519de['teams']=_0x30d329||{'count':0x0,'rows':[]},_0x9519de[_0x5209be('0xdeb')]=_0x513449,_0x9519de['userProfileSection']=_0xcf59e9&&_0xcf59e9[_0x5209be('0x335')]==0x1?_0xcf59e9[_0x5209be('0x2319')][0x0]:null,_0x9519de[_0x5209be('0x103e')]=_0x328bd9[_0x5209be('0x17a9')](_0x9519de[_0x5209be('0x383')]?_0x9519de['userProfileSection']['crudPermissions']:null),_0x9519de[_0x5209be('0x23c3')]='teams',_0x9519de[_0x5209be('0x26a1')]='',_0x9519de[_0x5209be('0x24e1')]=null,_0x9519de[_0x5209be('0x8ee')]=[],_0x9519de[_0x5209be('0x826')]={'fields':_0x5209be('0x142d'),'sort':_0x5209be('0x1ac6'),'limit':0xa,'page':0x1},_0x9519de['editdialog']=_0x3a9256,_0x9519de[_0x5209be('0x2359')]=_0x4d4994,_0x9519de[_0x5209be('0xbf4')]=_0x471bed,_0x9519de['success']=_0x34addc,_0x9519de['getTeams']=_0x5948c3,_0x9519de[_0x5209be('0x1ee0')]=_0x442f34,_0x9519de[_0x5209be('0x1c2')]=_0x5559f6,_0x9519de[_0x5209be('0x16b4')]=_0x182efc,_0x9519de[_0x5209be('0x305')]=_0x18ea4d,_0x9519de[_0x5209be('0x19fd')]=_0x339522,_0x9519de[_0x5209be('0x158d')]=_0x53e2dd;function _0x3a9256(_0x4af61a,_0x5399e5){const _0x203080=_0x5209be;_0x5e823c[_0x203080('0x28e2')]({'controller':_0x203080('0x26a2'),'controllerAs':'vm','templateUrl':_0x393048,'parent':angular['element'](_0x423c4e[_0x203080('0x13aa')]),'targetEvent':_0x5399e5,'clickOutsideToClose':!![],'locals':{'team':_0x4af61a,'teams':_0x9519de[_0x203080('0x225b')]['rows'],'license':_0x9519de['license'],'setting':null,'crudPermissions':_0x9519de[_0x203080('0x103e')]}});}function _0x4d4994(_0x51524e,_0x4bff31){const _0x5e3457=_0x5209be;_0x5e823c[_0x5e3457('0x28e2')]({'controller':_0x5e3457('0x16d3'),'controllerAs':'vm','templateUrl':_0x38418c,'parent':angular[_0x5e3457('0x1ce1')](_0x423c4e[_0x5e3457('0x13aa')]),'targetEvent':_0x4bff31,'clickOutsideToClose':!![],'locals':{'team':_0x51524e,'teams':_0x9519de[_0x5e3457('0x225b')]?_0x9519de[_0x5e3457('0x225b')]['rows']:[],'crudPermissions':_0x9519de['crudPermissions'],'realtime':![]}});}function _0x471bed(_0x5c44b4,_0x3f2aa0){const _0x23a080=_0x5209be,_0x5f3658=_0x5e823c[_0x23a080('0x1121')]()[_0x23a080('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x49cbdd()[_0x23a080('0x1c98')](_0x23a080('0x176'))+'?')['htmlContent'](_0x23a080('0xa53')+(_0x5c44b4[_0x23a080('0x2aa')]||_0x23a080('0x176'))+_0x23a080('0x1d23')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x23a080('0x364'))[_0x23a080('0x104f')](_0x3f2aa0)['ok']('OK')[_0x23a080('0x1d47')]('CANCEL');_0x5e823c[_0x23a080('0x28e2')](_0x5f3658)[_0x23a080('0x17e7')](function(){_0x5559f6(_0x5c44b4);},function(){const _0x583f09=_0x23a080;console[_0x583f09('0x1d63')]('CANCEL');});}let _0x983941=!![],_0x395fb5=0x1;_0x231fea[_0x5209be('0x620')](_0x5209be('0x3ed'),function(_0x5a9ca0,_0x43790a){const _0x4cf1be=_0x5209be;_0x983941?_0x2c2156(function(){_0x983941=![];}):(!_0x43790a&&(_0x395fb5=_0x9519de[_0x4cf1be('0x826')][_0x4cf1be('0x115a')]),_0x5a9ca0!==_0x43790a&&(_0x9519de[_0x4cf1be('0x826')][_0x4cf1be('0x115a')]=0x1),!_0x5a9ca0&&(_0x9519de[_0x4cf1be('0x826')][_0x4cf1be('0x115a')]=_0x395fb5),_0x9519de[_0x4cf1be('0x141f')]());});function _0x34addc(_0x130acf){_0x9519de['teams']=_0x130acf||{'count':0x0,'rows':[]};}function _0x5948c3(){const _0xc5e451=_0x5209be;_0x9519de['query']['offset']=(_0x9519de[_0xc5e451('0x826')][_0xc5e451('0x115a')]-0x1)*_0x9519de[_0xc5e451('0x826')]['limit'],_0x328bd9[_0xc5e451('0x1ba2')]('admin')?_0x9519de[_0xc5e451('0x1691')]=_0x21e003['team'][_0xc5e451('0x1c53')](_0x9519de['query'],_0x34addc)['$promise']:(_0x9519de[_0xc5e451('0x826')]['id']=_0x9519de['userProfile']['id'],_0x9519de[_0xc5e451('0x826')][_0xc5e451('0x16f8')]=_0xc5e451('0x1cf2'),_0x9519de[_0xc5e451('0x1691')]=_0x21e003['userProfile'][_0xc5e451('0x2447')](_0x9519de[_0xc5e451('0x826')],_0x34addc)[_0xc5e451('0x1af5')]);}function _0x442f34(_0x286112,_0x5be525){const _0x31a62a=_0x5209be;_0x5e823c['show']({'controller':_0x31a62a('0x26a2'),'controllerAs':'vm','templateUrl':_0x393048,'parent':angular[_0x31a62a('0x1ce1')](_0x423c4e['body']),'targetEvent':_0x286112,'clickOutsideToClose':!![],'locals':{'team':_0x5be525,'teams':_0x9519de[_0x31a62a('0x225b')][_0x31a62a('0x2319')],'license':_0x9519de[_0x31a62a('0x1d11')],'setting':_0x9519de[_0x31a62a('0x1aeb')],'crudPermissions':_0x9519de['crudPermissions']}});}function _0x5559f6(_0x5b35e9){const _0x2c4d10=_0x5209be;_0x21e003[_0x2c4d10('0x176')][_0x2c4d10('0x1da6')]({'id':_0x5b35e9['id']})[_0x2c4d10('0x1af5')]['then'](function(){const _0x71e741=_0x2c4d10;_0x49cbdd()[_0x71e741('0x5f3')](_0x9519de[_0x71e741('0x225b')]['rows'],{'id':_0x5b35e9['id']}),_0x9519de[_0x71e741('0x225b')][_0x71e741('0x335')]-=0x1,!_0x9519de[_0x71e741('0x225b')][_0x71e741('0x2319')][_0x71e741('0x1f73')]&&_0x9519de[_0x71e741('0x141f')](),_0x196633['success']({'title':_0x49cbdd()[_0x71e741('0x1c98')](_0x71e741('0x240c'))+'\x20deleted!','msg':_0x5b35e9[_0x71e741('0x2aa')]?_0x5b35e9[_0x71e741('0x2aa')]+_0x71e741('0x149f'):''});})['catch'](function(_0xbfc686){const _0x37881d=_0x2c4d10;if(_0xbfc686[_0x37881d('0x1457')]&&_0xbfc686['data']['errors']&&_0xbfc686['data'][_0x37881d('0x73e')][_0x37881d('0x1f73')]){_0x9519de[_0x37881d('0x73e')]=_0xbfc686[_0x37881d('0x1457')][_0x37881d('0x73e')]||[{'message':_0xbfc686['toString'](),'type':_0x37881d('0x1c91')}];for(let _0x273394=0x0;_0x273394<_0xbfc686['data'][_0x37881d('0x73e')][_0x37881d('0x1f73')];_0x273394++){_0x196633[_0x37881d('0x1db9')]({'title':_0xbfc686[_0x37881d('0x1457')]['errors'][_0x273394][_0x37881d('0x412')],'msg':_0xbfc686[_0x37881d('0x1457')][_0x37881d('0x73e')][_0x273394][_0x37881d('0x1603')]});}}else _0x196633[_0x37881d('0x1db9')]({'title':_0xbfc686['status']?_0x37881d('0x14f7')+_0xbfc686[_0x37881d('0x11c5')]+'\x20-\x20'+_0xbfc686[_0x37881d('0x1833')]:_0x37881d('0x1c91'),'msg':_0xbfc686[_0x37881d('0x1457')]?JSON[_0x37881d('0x678')](_0xbfc686[_0x37881d('0x1457')][_0x37881d('0x1603')]):_0xbfc686[_0x37881d('0x1603')]||_0xbfc686[_0x37881d('0x9b6')]()});});}function _0x182efc(){const _0x5a9acf=_0x5209be,_0xf8ccec=angular[_0x5a9acf('0x14e5')](_0x9519de[_0x5a9acf('0x8ee')]);return _0x9519de[_0x5a9acf('0x8ee')]=[],_0xf8ccec;}function _0x18ea4d(_0x21588c){const _0x2fb94f=_0x5209be,_0x52df07=_0x5e823c[_0x2fb94f('0x1121')]()[_0x2fb94f('0x24d3')](_0x2fb94f('0x24f0'))['htmlContent'](_0x2fb94f('0xa53')+_0x9519de[_0x2fb94f('0x8ee')]['length']+_0x2fb94f('0x145a')+_0x2fb94f('0xe9f'))[_0x2fb94f('0x2095')](_0x2fb94f('0xc88'))[_0x2fb94f('0x104f')](_0x21588c)['ok']('OK')[_0x2fb94f('0x1d47')](_0x2fb94f('0x28a0'));_0x5e823c[_0x2fb94f('0x28e2')](_0x52df07)[_0x2fb94f('0x17e7')](function(){const _0x4ea05d=_0x2fb94f;_0x9519de['selectedTeams']['forEach'](function(_0x405951){_0x5559f6(_0x405951);}),_0x9519de[_0x4ea05d('0x8ee')]=[];});}function _0x339522(){const _0x241428=_0x5209be;_0x9519de[_0x241428('0x8ee')]=[];}function _0x53e2dd(){const _0x410b04=_0x5209be;_0x9519de[_0x410b04('0x8ee')]=_0x9519de[_0x410b04('0x225b')]['rows'];}}const _0x1480ea=_0x20466f;_0x342f23[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0xd51'),_0x4376d8('0x21b5'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x342f23(_0x4a93c5,_0x54e4d2,_0x3e3107,_0xb9ec5,_0x2a3d59,_0x2a10ec,_0x28ee39,_0x27138b,_0x21eecd,_0x5b67f1,_0x3a4804,_0x421d17,_0x49359a,_0x1ceb63){const _0x5218de=_0x4376d8,_0x2bed9f=this;_0x2bed9f['currentUser']=_0x3a4804[_0x5218de('0x2831')](),_0x2bed9f['errors']=[],_0x2bed9f['setting']=_0x49359a,_0x2bed9f[_0x5218de('0x1d11')]=_0x421d17,_0x2bed9f['crudPermissions']=_0x1ceb63,_0x2bed9f['hasModulePermissions']={},_0x2bed9f['passwordPattern']=_0x2bed9f[_0x5218de('0x1aeb')]&&_0x2bed9f['setting'][_0x5218de('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2bed9f['title']=_0x5218de('0x21b6'),_0x2bed9f[_0x5218de('0x21b5')]=angular[_0x5218de('0x14e5')](_0x21eecd),_0x2bed9f[_0x5218de('0xd51')]=_0x27138b,_0x2bed9f['newTelephone']=![];!_0x2bed9f[_0x5218de('0x21b5')]&&(_0x2bed9f[_0x5218de('0x21b5')]={'role':_0x5218de('0x21b5'),'autointernal':!![],'context':'from-sip'},_0x2bed9f[_0x5218de('0x24d3')]=_0x5218de('0x188f'),_0x2bed9f[_0x5218de('0x11fd')]=!![]);_0x2bed9f[_0x5218de('0xd57')]=_0x45bbfa,_0x2bed9f[_0x5218de('0xb75')]=_0x1e831e,_0x2bed9f[_0x5218de('0xd28')]=_0x11705a,_0x2bed9f[_0x5218de('0x1300')]=_0xe28fff,_0x2bed9f['closeDialog']=_0x527e14;function _0x45bbfa(){const _0xdb249=_0x5218de;_0x2bed9f[_0xdb249('0x73e')]=[],_0x5b67f1[_0xdb249('0x221e')]['save'](_0x2bed9f[_0xdb249('0x21b5')])[_0xdb249('0x1af5')]['then'](function(_0x34d6ed){const _0x27ab73=_0xdb249;_0x2bed9f[_0x27ab73('0xd51')][_0x27ab73('0x1893')](_0x34d6ed[_0x27ab73('0x16b2')]()),_0x28ee39[_0x27ab73('0x130d')]({'title':_0x27ab73('0x2557'),'msg':_0x2bed9f[_0x27ab73('0x21b5')]['name']?_0x2bed9f[_0x27ab73('0x21b5')]['name']+'\x20has\x20been\x20created!':''}),_0x527e14(_0x34d6ed);})[_0xdb249('0x16df')](function(_0x20f049){const _0x472709=_0xdb249;if(_0x20f049['data']&&_0x20f049[_0x472709('0x1457')]['errors']&&_0x20f049[_0x472709('0x1457')][_0x472709('0x73e')]['length']){_0x2bed9f[_0x472709('0x73e')]=_0x20f049[_0x472709('0x1457')]['errors']||[{'message':_0x20f049[_0x472709('0x9b6')](),'type':'api.user.save'}];for(let _0x3074dd=0x0;_0x3074dd<_0x20f049[_0x472709('0x1457')][_0x472709('0x73e')][_0x472709('0x1f73')];_0x3074dd+=0x1){_0x28ee39[_0x472709('0x1db9')]({'title':_0x20f049[_0x472709('0x1457')][_0x472709('0x73e')][_0x3074dd]['type'],'msg':_0x20f049[_0x472709('0x1457')][_0x472709('0x73e')][_0x3074dd][_0x472709('0x1603')]});}}else _0x28ee39['error']({'title':_0x20f049[_0x472709('0x11c5')]?'API:'+_0x20f049[_0x472709('0x11c5')]+_0x472709('0x16e4')+_0x20f049[_0x472709('0x1833')]:_0x472709('0x131f'),'msg':_0x20f049[_0x472709('0x1457')]?JSON[_0x472709('0x678')](_0x20f049[_0x472709('0x1457')]['message']):_0x20f049[_0x472709('0x9b6')]()});});}function _0x1e831e(){const _0x2db795=_0x5218de;_0x2bed9f['errors']=[],_0x5b67f1[_0x2db795('0x221e')][_0x2db795('0x27ba')]({'id':_0x2bed9f[_0x2db795('0x21b5')]['id']},_0x2bed9f['telephone'])[_0x2db795('0x1af5')][_0x2db795('0x17e7')](function(_0x338da1){const _0x5d494e=_0x2db795,_0x430e4e=_0x49cbdd()[_0x5d494e('0xe8e')](_0x2bed9f[_0x5d494e('0xd51')],{'id':_0x338da1['id']});_0x430e4e&&_0x49cbdd()['merge'](_0x430e4e,_0x49cbdd()[_0x5d494e('0x230a')](_0x338da1[_0x5d494e('0x16b2')](),_0x49cbdd()['keys'](_0x430e4e))),_0x28ee39[_0x5d494e('0x130d')]({'title':_0x5d494e('0x7d1'),'msg':_0x2bed9f['telephone'][_0x5d494e('0x2aa')]?_0x2bed9f['telephone'][_0x5d494e('0x2aa')]+_0x5d494e('0x15ca'):''}),_0x527e14(_0x338da1);})[_0x2db795('0x16df')](function(_0x5173d6){const _0x2f70ff=_0x2db795;if(_0x5173d6[_0x2f70ff('0x1457')]&&_0x5173d6[_0x2f70ff('0x1457')][_0x2f70ff('0x73e')]&&_0x5173d6[_0x2f70ff('0x1457')][_0x2f70ff('0x73e')][_0x2f70ff('0x1f73')]){_0x2bed9f['errors']=_0x5173d6[_0x2f70ff('0x1457')][_0x2f70ff('0x73e')]||[{'message':_0x5173d6[_0x2f70ff('0x9b6')](),'type':_0x2f70ff('0xad3')}];for(let _0x591e0b=0x0;_0x591e0b<_0x5173d6['data'][_0x2f70ff('0x73e')][_0x2f70ff('0x1f73')];_0x591e0b++){_0x28ee39[_0x2f70ff('0x1db9')]({'title':_0x5173d6['data'][_0x2f70ff('0x73e')][_0x591e0b]['type'],'msg':_0x5173d6[_0x2f70ff('0x1457')][_0x2f70ff('0x73e')][_0x591e0b][_0x2f70ff('0x1603')]});}}else _0x28ee39['error']({'title':_0x5173d6['status']?_0x2f70ff('0x14f7')+_0x5173d6[_0x2f70ff('0x11c5')]+_0x2f70ff('0x16e4')+_0x5173d6[_0x2f70ff('0x1833')]:_0x2f70ff('0xad3'),'msg':_0x5173d6['data']?JSON[_0x2f70ff('0x678')](_0x5173d6[_0x2f70ff('0x1457')][_0x2f70ff('0x1603')]):_0x5173d6['toString']()});});}function _0x11705a(_0x4ffe3e){const _0x179ebc=_0x5218de;_0x2bed9f[_0x179ebc('0x73e')]=[];const _0x47d44d=_0xb9ec5[_0x179ebc('0x1121')]()[_0x179ebc('0x24d3')](_0x179ebc('0x530'))[_0x179ebc('0xd5')](_0x179ebc('0x1d76'))[_0x179ebc('0x2095')]('Delete\x20Telephone')['ok'](_0x179ebc('0x304'))[_0x179ebc('0x1d47')](_0x179ebc('0x1b70'))[_0x179ebc('0x104f')](_0x4ffe3e);_0xb9ec5[_0x179ebc('0x28e2')](_0x47d44d)[_0x179ebc('0x17e7')](function(){const _0x2818ff=_0x179ebc;_0x5b67f1[_0x2818ff('0x221e')][_0x2818ff('0x1da6')]({'id':_0x2bed9f['telephone']['id']})['$promise'][_0x2818ff('0x17e7')](function(){const _0x2d71de=_0x2818ff;_0x49cbdd()['remove'](_0x2bed9f[_0x2d71de('0xd51')],{'id':_0x2bed9f['telephone']['id']}),_0x28ee39[_0x2d71de('0x130d')]({'title':'Telephone\x20properly\x20deleted!','msg':(_0x2bed9f[_0x2d71de('0x21b5')][_0x2d71de('0x2aa')]||_0x2d71de('0x21b5'))+_0x2d71de('0x149f')}),_0x527e14(_0x2bed9f[_0x2d71de('0x21b5')]);})['catch'](function(_0x23d391){const _0x2c3888=_0x2818ff;if(_0x23d391[_0x2c3888('0x1457')]&&_0x23d391[_0x2c3888('0x1457')][_0x2c3888('0x73e')]&&_0x23d391[_0x2c3888('0x1457')][_0x2c3888('0x73e')][_0x2c3888('0x1f73')]){_0x2bed9f[_0x2c3888('0x73e')]=_0x23d391[_0x2c3888('0x1457')][_0x2c3888('0x73e')]||[{'message':_0x23d391['toString'](),'type':_0x2c3888('0x1e0f')}];for(let _0xb08e8b=0x0;_0xb08e8b<_0x23d391[_0x2c3888('0x1457')]['errors'][_0x2c3888('0x1f73')];_0xb08e8b++){_0x28ee39['error']({'title':_0x23d391[_0x2c3888('0x1457')][_0x2c3888('0x73e')][_0xb08e8b][_0x2c3888('0x412')],'msg':_0x23d391['data'][_0x2c3888('0x73e')][_0xb08e8b][_0x2c3888('0x1603')]});}}else _0x28ee39[_0x2c3888('0x1db9')]({'title':_0x23d391['status']?'API:'+_0x23d391[_0x2c3888('0x11c5')]+_0x2c3888('0x16e4')+_0x23d391['statusText']:_0x2c3888('0x1e0f'),'msg':_0x23d391[_0x2c3888('0x1457')]?JSON[_0x2c3888('0x678')](_0x23d391[_0x2c3888('0x1457')][_0x2c3888('0x1603')]):_0x23d391[_0x2c3888('0x1603')]||_0x23d391[_0x2c3888('0x9b6')]()});});},function(){});}function _0xe28fff(_0x53a8f0){return _0x53a8f0===null?undefined:new Date(_0x53a8f0);}function _0x527e14(_0x306dcb){const _0x1d3637=_0x5218de;_0xb9ec5[_0x1d3637('0x212a')](_0x306dcb);}}const _0x9c199b=_0x342f23;_0x291c39[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x21b5'),_0x4376d8('0x1aeb'),'Auth'];function _0x291c39(_0x1582d2,_0x2f82c5,_0x5c8028,_0x2bb347,_0x3e7d89,_0x3cd998,_0x250a3e){const _0x1fde59=_0x4376d8,_0x281609=this;_0x281609[_0x1fde59('0x197c')]=_0x250a3e[_0x1fde59('0x2831')](),_0x281609[_0x1fde59('0x73e')]=[],_0x281609[_0x1fde59('0x1aeb')]=_0x3cd998,_0x281609[_0x1fde59('0x1572')]=_0x281609[_0x1fde59('0x1aeb')][_0x1fde59('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x281609[_0x1fde59('0x21b5')]=_0x3e7d89,_0x281609[_0x1fde59('0xb62')]='',_0x281609[_0x1fde59('0xf2d')]='',_0x281609[_0x1fde59('0x838')]=_0x26dd83,_0x281609[_0x1fde59('0x136e')]=_0x5e65ac,_0x1582d2['$watch'](_0x1fde59('0x1a37'),function(_0x3d33a3){const _0x3920d4=_0x1fde59;!_0x49cbdd()[_0x3920d4('0x390')](_0x281609[_0x3920d4('0xf2d')])&&(_0x3d33a3===_0x281609[_0x3920d4('0xf2d')]?_0x1582d2[_0x3920d4('0x17c1')][_0x3920d4('0xb62')][_0x3920d4('0x2663')](_0x3920d4('0x1b25'),![]):_0x1582d2[_0x3920d4('0x17c1')][_0x3920d4('0xb62')][_0x3920d4('0x2663')](_0x3920d4('0x1b25'),!![]));});function _0x26dd83(){const _0x914cb8=_0x1fde59;_0x281609[_0x914cb8('0x73e')]=[];const _0xf417a5={'id':_0x281609[_0x914cb8('0x21b5')]['id'],'newPassword':_0x281609[_0x914cb8('0xb62')]};_0x281609[_0x914cb8('0x197c')]['id']==_0x281609[_0x914cb8('0x21b5')]['id']&&(_0xf417a5[_0x914cb8('0xf2d')]=_0x281609[_0x914cb8('0xf2d')]),_0x2bb347[_0x914cb8('0x221e')]['changePassword'](_0xf417a5)['$promise'][_0x914cb8('0x17e7')](function(){const _0x27ce9d=_0x914cb8;_0x5c8028[_0x27ce9d('0x130d')]({'title':_0x27ce9d('0x1cbc')}),_0x5e65ac();})[_0x914cb8('0x16df')](function(_0x1112cc){const _0x5dbe4a=_0x914cb8;_0x5c8028[_0x5dbe4a('0x1db9')]({'title':_0x1112cc[_0x5dbe4a('0x11c5')]?_0x5dbe4a('0x14f7')+_0x1112cc['status']+_0x5dbe4a('0x16e4')+_0x1112cc[_0x5dbe4a('0x1833')]:'api.telephone.save','msg':_0x1112cc[_0x5dbe4a('0x1457')]?JSON[_0x5dbe4a('0x678')](_0x1112cc[_0x5dbe4a('0x1457')][_0x5dbe4a('0x1603')]):_0x1112cc[_0x5dbe4a('0x9b6')]()}),_0x281609[_0x5dbe4a('0x73e')]=_0x1112cc[_0x5dbe4a('0x1457')][_0x5dbe4a('0x73e')]||[{'message':_0x1112cc[_0x5dbe4a('0x9b6')](),'type':_0x5dbe4a('0x8d1')}];});}function _0x5e65ac(){const _0x2e569c=_0x1fde59;_0x2f82c5[_0x2e569c('0x212a')]();}}const _0x1e9711=_0x291c39,_0x509197=_0x4cf2bc['p']+_0x4376d8('0x1bf9');_0x8c38cf['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$translate','license',_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885'),_0x4376d8('0x21b5'),_0x4376d8('0x383')];function _0x8c38cf(_0x122141,_0x5b86b3,_0x524d40,_0x409843,_0xa07cfa,_0x28e415,_0x362060,_0xea4415,_0x121b27,_0x67df79,_0x1a33ab,_0x30a453){const _0x17a695=_0x4376d8,_0x188c87=this;_0x188c87[_0x17a695('0x197c')]=_0x67df79[_0x17a695('0x2831')](),_0x188c87['license']=_0x28e415,_0x188c87[_0x17a695('0x1aeb')]=_0x362060,_0x188c87[_0x17a695('0x1572')]=_0x188c87[_0x17a695('0x1aeb')][_0x17a695('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x188c87['location']=_0x5b86b3[_0x17a695('0x14fe')]()+_0x17a695('0x14')+_0x5b86b3[_0x17a695('0x108')](),_0x188c87[_0x17a695('0x21b5')]=_0x1a33ab||_0x122141[_0x17a695('0x16fb')]['telephone']||{},_0x188c87['userProfileSection']=_0x30a453&&_0x30a453['count']==0x1?_0x30a453[_0x17a695('0x2319')][0x0]:null,_0x188c87[_0x17a695('0x103e')]=_0x67df79[_0x17a695('0x17a9')](_0x188c87['userProfileSection']?_0x188c87[_0x17a695('0x383')][_0x17a695('0x103e')]:null),_0x188c87[_0x17a695('0x6ee')]={},_0x188c87[_0x17a695('0xde7')]=_0x122141['params'][_0x17a695('0x1523')]||0x0,_0x188c87[_0x17a695('0x2621')]=_0x3e6657,_0x188c87['alert']=_0x121b27[_0x17a695('0x1178')],_0x188c87['gotoTelephones']=_0xc4ea01,_0x188c87[_0x17a695('0xb75')]=_0x3e5664,_0x67df79[_0x17a695('0x1ba2')](_0x17a695('0x20bf'))?_0xea4415['voiceContext'][_0x17a695('0x1c53')]({'fields':_0x17a695('0x12d2'),'sort':'name'})[_0x17a695('0x1af5')][_0x17a695('0x17e7')](function(_0x171031){const _0x5ab6bb=_0x17a695;_0x188c87[_0x5ab6bb('0xfb3')]=_0x171031[_0x5ab6bb('0x2319')]||[];})['catch'](function(_0x27063a){const _0x48dc26=_0x17a695;_0x121b27[_0x48dc26('0x1db9')]({'title':_0x27063a[_0x48dc26('0x11c5')]?_0x48dc26('0x14f7')+_0x27063a[_0x48dc26('0x11c5')]+_0x48dc26('0x16e4')+_0x27063a[_0x48dc26('0x1833')]:'SYSTEM:GET_CONTEXTS','msg':_0x27063a['data']?JSON['stringify'](_0x27063a[_0x48dc26('0x1457')]):_0x27063a[_0x48dc26('0x9b6')]()});}):_0xea4415[_0x17a695('0xc76')]['get']({'fields':_0x17a695('0x12d2'),'sort':_0x17a695('0x2aa')})['$promise']['then'](function(_0x1cc697){const _0x4db8b3=_0x17a695;_0x188c87[_0x4db8b3('0xfb3')]=_0x1cc697[_0x4db8b3('0x2319')]||[];})[_0x17a695('0x17e7')](function(){const _0x25120f=_0x17a695;return _0xea4415[_0x25120f('0x383')][_0x25120f('0x1c53')]({'userProfileId':_0x188c87[_0x25120f('0x197c')][_0x25120f('0x1e76')],'sectionId':0x195})[_0x25120f('0x1af5')];})[_0x17a695('0x17e7')](function(_0x21a397){const _0x4f56e2=_0x17a695,_0x42d60d=_0x21a397&&_0x21a397['rows']?_0x21a397[_0x4f56e2('0x2319')][0x0]:null;if(!_0x42d60d)return _0xea4415[_0x4f56e2('0xc76')][_0x4f56e2('0x1c53')]({'fields':_0x4f56e2('0x12d2'),'sort':_0x4f56e2('0x2aa'),'defaultEntry':0x1})[_0x4f56e2('0x1af5')]['then'](function(_0x31a028){const _0x41869c=_0x4f56e2;_0x188c87[_0x41869c('0xfb3')]=_0x31a028[_0x41869c('0x2319')]||[];});else{if(!_0x42d60d[_0x4f56e2('0x9e3')])return _0xea4415['userProfileResource'][_0x4f56e2('0x1c53')]({'sectionId':_0x42d60d['id']})[_0x4f56e2('0x1af5')]['then'](function(_0x587004){const _0x368e29=_0x4f56e2,_0x418539=_0x49cbdd()[_0x368e29('0x787')](_0x587004[_0x368e29('0x2319')],function(_0x4da986){const _0x476ac5=_0x368e29;return _0x49cbdd()['find'](_0x188c87[_0x476ac5('0xfb3')],{'id':_0x4da986[_0x476ac5('0x5db')]});});let _0x41c492=null;_0x188c87[_0x368e29('0x21b5')]&&(_0x41c492=_0x49cbdd()['find'](_0x188c87[_0x368e29('0xfb3')],{'name':_0x188c87[_0x368e29('0x21b5')][_0x368e29('0x17b3')]}));if(_0x41c492&&!_0x49cbdd()['some'](_0x418539,['id',_0x41c492['id']])){const _0x595d1a=_0x49cbdd()[_0x368e29('0xe8e')](_0x188c87[_0x368e29('0xfb3')],{'id':_0x41c492['id']});_0x595d1a[_0x368e29('0xe5c')]=![],_0x418539['push'](_0x595d1a);}_0x188c87[_0x368e29('0xfb3')]=_0x418539;});}})[_0x17a695('0x16df')](function(_0x8cfd09){const _0x5b5346=_0x17a695;_0x121b27[_0x5b5346('0x1db9')]({'title':_0x8cfd09['status']?'API:'+_0x8cfd09['status']+_0x5b5346('0x16e4')+_0x8cfd09['statusText']:_0x5b5346('0x78'),'msg':_0x8cfd09['data']?JSON['stringify'](_0x8cfd09['data']):_0x8cfd09['toString']()});});function _0x3e6657(_0x5dd054,_0x3a85ba){const _0x2aab6d=_0x17a695;_0x524d40[_0x2aab6d('0x28e2')]({'controller':_0x2aab6d('0x151'),'controllerAs':'vm','templateUrl':_0x509197,'parent':angular['element'](_0x409843[_0x2aab6d('0x13aa')]),'targetEvent':_0x3a85ba,'clickOutsideToClose':!![],'locals':{'telephone':_0x5dd054,'setting':_0x362060,'telephones':_0x188c87[_0x2aab6d('0xd51')]?_0x188c87[_0x2aab6d('0xd51')][_0x2aab6d('0x2319')]:[],'crudPermissions':_0x188c87['crudPermissions']}});}function _0xc4ea01(){const _0x31355f=_0x17a695;_0x122141['go'](_0x31355f('0x1689'),{},{'reload':_0x31355f('0x1689')});}function _0x3e5664(){const _0x24e631=_0x17a695;_0xea4415[_0x24e631('0x221e')]['update']({'id':_0x188c87[_0x24e631('0x21b5')]['id']},_0x188c87['telephone'])[_0x24e631('0x1af5')][_0x24e631('0x17e7')](function(){const _0xf924b5=_0x24e631;_0x121b27[_0xf924b5('0x130d')]({'title':_0xf924b5('0x831'),'msg':_0x188c87[_0xf924b5('0x21b5')][_0xf924b5('0x2aa')]?_0x188c87[_0xf924b5('0x21b5')][_0xf924b5('0x2aa')]+_0xf924b5('0x12b0'):''});})[_0x24e631('0x16df')](function(_0x354400){const _0x152251=_0x24e631;_0x121b27['error']({'title':_0x354400[_0x152251('0x11c5')]?_0x152251('0x14f7')+_0x354400[_0x152251('0x11c5')]+'\x20-\x20'+_0x354400[_0x152251('0x1833')]:_0x152251('0x99b'),'msg':_0x354400[_0x152251('0x1457')]?JSON[_0x152251('0x678')](_0x354400[_0x152251('0x1457')]):_0x354400[_0x152251('0x9b6')]()});});}}const _0x160930=_0x8c38cf,_0x3b446a=_0x4cf2bc['p']+_0x4376d8('0x547');_0x2b1535[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window','$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout','$translate',_0x4376d8('0xd51'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x212e'),_0x4376d8('0x1606'),'toasty','Auth','license',_0x4376d8('0x1aeb')];function _0x2b1535(_0x55ca40,_0x32c8c6,_0x4d98d7,_0x51cbba,_0x5c3d0b,_0x2f7ec1,_0x200292,_0x30e2dd,_0x2b30a5,_0xa493c8,_0xbc125b,_0x543436,_0x5198c2,_0x3d8541,_0x406332,_0x57d50c,_0x430bcb){const _0x275311=_0x4376d8,_0x4b49d1=this;_0x4b49d1['license']=_0x57d50c,_0x4b49d1[_0x275311('0x1aeb')]=_0x430bcb,_0x4b49d1['currentUser']=_0x406332[_0x275311('0x2831')](),_0x4b49d1[_0x275311('0xd51')]=_0x2b30a5||{'count':0x0,'rows':[]},_0x4b49d1[_0x275311('0xdeb')]=_0xa493c8,_0x4b49d1[_0x275311('0x383')]=_0xbc125b&&_0xbc125b[_0x275311('0x335')]==0x1?_0xbc125b['rows'][0x0]:null,_0x4b49d1[_0x275311('0x103e')]=_0x406332[_0x275311('0x17a9')](_0x4b49d1[_0x275311('0x383')]?_0x4b49d1[_0x275311('0x383')][_0x275311('0x103e')]:null),_0x4b49d1[_0x275311('0x23c3')]=_0x275311('0xd51'),_0x4b49d1[_0x275311('0x26a1')]='',_0x4b49d1['listOrderAsc']=null,_0x4b49d1[_0x275311('0xcdb')]=[],_0x4b49d1[_0x275311('0x826')]={'fields':_0x275311('0x12ad'),'role':_0x275311('0x21b5'),'sort':_0x275311('0x1ac6'),'limit':0xa,'page':0x1},_0x4b49d1[_0x275311('0xc9')]=_0x49cbdd()['keyBy']([{'option':_0x275311('0x22c'),'value':'\x27udp\x27'},{'option':_0x275311('0x10a4'),'value':'\x27tcp\x27'},{'option':'ws','value':_0x275311('0x1d05')},{'option':_0x275311('0x1054'),'value':_0x275311('0x1287')},{'option':_0x275311('0x2e2'),'value':'\x27tls\x27'}],function(_0x306a44){const _0xe6bcbe=_0x275311;return _0x49cbdd()[_0xe6bcbe('0x737')](_0x306a44[_0xe6bcbe('0x175b')],new RegExp('\x27','g'),'');}),_0x4b49d1[_0x275311('0x311')]=_0x49cbdd()[_0x275311('0x8de')]([{'option':_0x275311('0x222f'),'value':_0x275311('0xf77')},{'option':_0x275311('0x549'),'value':_0x275311('0x1010')},{'option':_0x275311('0x128f'),'value':_0x275311('0xd7b')},{'option':'no','value':_0x275311('0x2471')},{'option':_0x275311('0x360'),'value':'\x27never\x27'},{'option':'route','value':_0x275311('0x210b')}],function(_0x1f937f){const _0x3e82ee=_0x275311;return _0x49cbdd()[_0x3e82ee('0x737')](_0x1f937f[_0x3e82ee('0x175b')],new RegExp('\x27','g'),'');}),_0x4b49d1[_0x275311('0x248')]=_0x49cbdd()[_0x275311('0x8de')]([{'option':_0x275311('0xaf5'),'value':_0x275311('0xe8d')},{'option':'alaw','value':'\x27alaw\x27'},{'option':_0x275311('0xbc3'),'value':'\x27gsm\x27'},{'option':_0x275311('0x9f8'),'value':_0x275311('0x3aa')},{'option':_0x275311('0x1116'),'value':'\x27g729\x27'},{'option':_0x275311('0x2587'),'value':_0x275311('0x14ab')},{'option':_0x275311('0xafe'),'value':_0x275311('0x8be')}],function(_0x1ce4f5){const _0x172afe=_0x275311;return _0x49cbdd()['replace'](_0x1ce4f5[_0x172afe('0x175b')],new RegExp('\x27','g'),'');}),_0x4b49d1[_0x275311('0x1570')]=_0x49cbdd()[_0x275311('0x8de')]([{'option':_0x275311('0x8e3'),'value':_0x275311('0xd7b')},{'option':'No','value':_0x275311('0x2471')},{'option':'Always','value':'\x27always\x27'}],function(_0x3ad187){const _0x3c64f6=_0x275311;return _0x49cbdd()['replace'](_0x3ad187[_0x3c64f6('0x175b')],new RegExp('\x27','g'),'');}),_0x4b49d1['arrayencryption']=_0x49cbdd()['keyBy']([{'option':'yes','value':_0x275311('0xd7b')},{'option':'no','value':_0x275311('0x2471')}],function(_0x4af581){const _0x1822fc=_0x275311;return _0x49cbdd()[_0x1822fc('0x737')](_0x4af581['value'],new RegExp('\x27','g'),'');}),_0x4b49d1[_0x275311('0xcd4')]=_0x1552a9,_0x4b49d1[_0x275311('0xbf4')]=_0x218bb4,_0x4b49d1[_0x275311('0x130d')]=_0x53a8c1,_0x4b49d1[_0x275311('0x1662')]=_0x43535b,_0x4b49d1['createOrEditTelephone']=_0x5337c9,_0x4b49d1[_0x275311('0xd28')]=_0x4c38c6,_0x4b49d1['exportSelectedTelephones']=_0x59b98f,_0x4b49d1['deleteSelectedTelephones']=_0x3d3532,_0x4b49d1[_0x275311('0xa9')]=_0x31619b,_0x4b49d1['selectAllTelephones']=_0x3d6f30;function _0x1552a9(_0x1c56f3){const _0x136182=_0x275311;_0x4d98d7['go'](_0x136182('0x1c1'),{'id':_0x1c56f3['id'],'telephone':_0x1c56f3,'crudPermissions':_0x4b49d1['crudPermissions']});}function _0x218bb4(_0x317874,_0x5799b0){const _0x5544f2=_0x275311,_0x3c473f=_0x5c3d0b[_0x5544f2('0x1121')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x49cbdd()[_0x5544f2('0x1c98')](_0x5544f2('0x21b5'))+'?')[_0x5544f2('0x211f')](''+(_0x317874['name']||_0x5544f2('0x21b5'))+_0x5544f2('0x1d23')+'\x20will\x20be\x20deleted.')[_0x5544f2('0x2095')](_0x5544f2('0xae6'))[_0x5544f2('0x104f')](_0x5799b0)['ok']('OK')[_0x5544f2('0x1d47')](_0x5544f2('0x28a0'));_0x5c3d0b[_0x5544f2('0x28e2')](_0x3c473f)['then'](function(){_0x4c38c6(_0x317874);},function(){const _0x3cdd3e=_0x5544f2;console[_0x3cdd3e('0x1d63')](_0x3cdd3e('0x28a0'));});}let _0x43db5d=!![],_0x3085a1=0x1;_0x55ca40['$watch'](_0x275311('0x3ed'),function(_0xdbe6b1,_0x28f929){const _0x510764=_0x275311;_0x43db5d?_0x200292(function(){_0x43db5d=![];}):(!_0x28f929&&(_0x3085a1=_0x4b49d1[_0x510764('0x826')][_0x510764('0x115a')]),_0xdbe6b1!==_0x28f929&&(_0x4b49d1[_0x510764('0x826')][_0x510764('0x115a')]=0x1),!_0xdbe6b1&&(_0x4b49d1[_0x510764('0x826')][_0x510764('0x115a')]=_0x3085a1),_0x4b49d1[_0x510764('0x1662')]());});function _0x53a8c1(_0x169ee7){const _0xf4ae0d=_0x275311;_0x4b49d1[_0xf4ae0d('0xd51')]=_0x169ee7||{'count':0x0,'rows':[]};}function _0x43535b(){const _0x59d3f3=_0x275311;_0x4b49d1[_0x59d3f3('0x826')][_0x59d3f3('0xf19')]=(_0x4b49d1['query'][_0x59d3f3('0x115a')]-0x1)*_0x4b49d1[_0x59d3f3('0x826')][_0x59d3f3('0x193b')],_0x406332[_0x59d3f3('0x1ba2')]('admin')?_0x4b49d1[_0x59d3f3('0x1691')]=_0x543436[_0x59d3f3('0x221e')]['get'](_0x4b49d1['query'],_0x53a8c1)[_0x59d3f3('0x1af5')]:(_0x4b49d1[_0x59d3f3('0x826')]['id']=_0x4b49d1['userProfile']['id'],_0x4b49d1[_0x59d3f3('0x826')][_0x59d3f3('0x16f8')]=_0x59d3f3('0x778'),_0x4b49d1[_0x59d3f3('0x1691')]=_0x543436[_0x59d3f3('0xdeb')][_0x59d3f3('0x2447')](_0x4b49d1[_0x59d3f3('0x826')],_0x53a8c1)[_0x59d3f3('0x1af5')]);}function _0x5337c9(_0x39b351,_0x43a4d6){const _0x58ba43=_0x275311;_0x5c3d0b['show']({'controller':_0x58ba43('0x490'),'controllerAs':'vm','templateUrl':_0x3b446a,'parent':angular[_0x58ba43('0x1ce1')](_0x2f7ec1['body']),'targetEvent':_0x39b351,'clickOutsideToClose':!![],'locals':{'telephone':_0x43a4d6,'telephones':_0x4b49d1[_0x58ba43('0xd51')][_0x58ba43('0x2319')],'license':_0x4b49d1['license'],'setting':_0x4b49d1[_0x58ba43('0x1aeb')],'crudPermissions':_0x4b49d1['crudPermissions']}});}function _0x4c38c6(_0x8acc77){const _0x35086e=_0x275311;_0x543436[_0x35086e('0x221e')][_0x35086e('0x1da6')]({'id':_0x8acc77['id']})[_0x35086e('0x1af5')][_0x35086e('0x17e7')](function(){const _0x48a9c3=_0x35086e;_0x49cbdd()['remove'](_0x4b49d1[_0x48a9c3('0xd51')][_0x48a9c3('0x2319')],{'id':_0x8acc77['id']}),_0x4b49d1['telephones']['count']-=0x1,!_0x4b49d1[_0x48a9c3('0xd51')][_0x48a9c3('0x2319')][_0x48a9c3('0x1f73')]&&_0x4b49d1[_0x48a9c3('0x1662')](),_0x3d8541[_0x48a9c3('0x130d')]({'title':_0x49cbdd()[_0x48a9c3('0x1c98')]('Telephone')+_0x48a9c3('0x2673'),'msg':_0x8acc77[_0x48a9c3('0x2aa')]?_0x8acc77['name']+_0x48a9c3('0x149f'):''});})[_0x35086e('0x16df')](function(_0x1ec481){const _0x15e734=_0x35086e;if(_0x1ec481['data']&&_0x1ec481[_0x15e734('0x1457')][_0x15e734('0x73e')]&&_0x1ec481['data']['errors'][_0x15e734('0x1f73')]){_0x4b49d1[_0x15e734('0x73e')]=_0x1ec481[_0x15e734('0x1457')][_0x15e734('0x73e')]||[{'message':_0x1ec481[_0x15e734('0x9b6')](),'type':_0x15e734('0x197f')}];for(let _0x15bfd9=0x0;_0x15bfd9<_0x1ec481[_0x15e734('0x1457')][_0x15e734('0x73e')]['length'];_0x15bfd9++){_0x3d8541[_0x15e734('0x1db9')]({'title':_0x1ec481[_0x15e734('0x1457')][_0x15e734('0x73e')][_0x15bfd9][_0x15e734('0x412')],'msg':_0x1ec481[_0x15e734('0x1457')]['errors'][_0x15bfd9]['message']});}}else _0x3d8541[_0x15e734('0x1db9')]({'title':_0x1ec481[_0x15e734('0x11c5')]?_0x15e734('0x14f7')+_0x1ec481[_0x15e734('0x11c5')]+'\x20-\x20'+_0x1ec481[_0x15e734('0x1833')]:_0x15e734('0x197f'),'msg':_0x1ec481[_0x15e734('0x1457')]?JSON[_0x15e734('0x678')](_0x1ec481[_0x15e734('0x1457')][_0x15e734('0x1603')]):_0x1ec481[_0x15e734('0x1603')]||_0x1ec481[_0x15e734('0x9b6')]()});});}function _0x59b98f(){const _0x4b73eb=_0x275311,_0x60aa67=angular[_0x4b73eb('0x14e5')](_0x4b49d1['selectedTelephones']);return _0x4b49d1[_0x4b73eb('0xcdb')]=[],_0x60aa67;}function _0x3d3532(_0x331a9f){const _0x4b96f8=_0x275311,_0x3dfcca=_0x5c3d0b[_0x4b96f8('0x1121')]()['title'](_0x4b96f8('0x1352'))[_0x4b96f8('0x211f')](_0x4b96f8('0xa53')+_0x4b49d1['selectedTelephones'][_0x4b96f8('0x1f73')]+'\x20selected'+_0x4b96f8('0xe9f'))[_0x4b96f8('0x2095')](_0x4b96f8('0x957'))[_0x4b96f8('0x104f')](_0x331a9f)['ok']('OK')['cancel'](_0x4b96f8('0x28a0'));_0x5c3d0b['show'](_0x3dfcca)[_0x4b96f8('0x17e7')](function(){_0x4b49d1['selectedTelephones']['forEach'](function(_0x1b333d){_0x4c38c6(_0x1b333d);}),_0x4b49d1['selectedTelephones']=[];});}function _0x31619b(){const _0x2e3eac=_0x275311;_0x4b49d1[_0x2e3eac('0xcdb')]=[];}function _0x3d6f30(){const _0x43a3e9=_0x275311;_0x4b49d1['selectedTelephones']=_0x4b49d1['telephones'][_0x43a3e9('0x2319')];}}const _0x1af4f4=_0x2b1535;_0x1334cc['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x346'),_0x4376d8('0xdeb'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x1334cc(_0x1bf5e0,_0x5c90f3,_0x12d7c3,_0x1df770,_0x1fbaff,_0x341b5a,_0xe21c8c,_0x12c478,_0x16bbb5,_0x40e013,_0x5cbb66,_0x2d03b8,_0x153f19,_0x4e1a05){const _0x460567=_0x4376d8,_0x9f3023=this;_0x9f3023[_0x460567('0x197c')]=_0x5cbb66[_0x460567('0x2831')](),_0x9f3023[_0x460567('0x73e')]=[],_0x9f3023[_0x460567('0x1aeb')]=_0x153f19,_0x9f3023['license']=_0x2d03b8,_0x9f3023['crudPermissions']=_0x4e1a05,_0x9f3023['hasModulePermissions']={},_0x9f3023['passwordPattern']=_0x9f3023[_0x460567('0x1aeb')]&&_0x9f3023['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x9f3023['title']='STAFF.EDIT_USERPROFILE',_0x9f3023[_0x460567('0xdeb')]=angular[_0x460567('0x14e5')](_0x16bbb5),_0x9f3023[_0x460567('0x346')]=_0x12c478,_0x9f3023['newUserProfile']=![];!_0x9f3023[_0x460567('0xdeb')]&&(_0x9f3023[_0x460567('0xdeb')]={'crudPermissions':['r']},_0x9f3023[_0x460567('0x24d3')]=_0x460567('0x1b9e'),_0x9f3023[_0x460567('0x1c9d')]=!![]);_0x9f3023[_0x460567('0x1027')]=_0x335313,_0x9f3023[_0x460567('0x56')]=_0x6a6a3c,_0x9f3023[_0x460567('0x4fe')]=_0x4ecf14,_0x9f3023['getDateFromString']=_0x46ea28,_0x9f3023['closeDialog']=_0x28169c;function _0x335313(){const _0x3b55e1=_0x460567;_0x9f3023[_0x3b55e1('0x73e')]=[],_0x40e013[_0x3b55e1('0xdeb')]['save'](_0x9f3023[_0x3b55e1('0xdeb')])['$promise'][_0x3b55e1('0x17e7')](function(_0x2fc2fb){const _0x57bec7=_0x3b55e1;_0x32779c(_0x2fc2fb),_0x9f3023[_0x57bec7('0x346')]['unshift'](_0x2fc2fb['toJSON']()),_0xe21c8c[_0x57bec7('0x130d')]({'title':_0x57bec7('0x1895'),'msg':_0x9f3023['userProfile'][_0x57bec7('0x2aa')]?_0x9f3023[_0x57bec7('0xdeb')][_0x57bec7('0x2aa')]+_0x57bec7('0x15a'):''}),_0x28169c(_0x2fc2fb);})[_0x3b55e1('0x16df')](function(_0x3bef5b){const _0x212ca0=_0x3b55e1;if(_0x3bef5b[_0x212ca0('0x1457')]&&_0x3bef5b[_0x212ca0('0x1457')][_0x212ca0('0x73e')]&&_0x3bef5b['data'][_0x212ca0('0x73e')][_0x212ca0('0x1f73')]){_0x9f3023[_0x212ca0('0x73e')]=_0x3bef5b[_0x212ca0('0x1457')][_0x212ca0('0x73e')]||[{'message':_0x3bef5b[_0x212ca0('0x9b6')](),'type':_0x212ca0('0x2261')}];for(let _0x3f9cd1=0x0;_0x3f9cd1<_0x3bef5b[_0x212ca0('0x1457')]['errors'][_0x212ca0('0x1f73')];_0x3f9cd1+=0x1){_0xe21c8c['error']({'title':_0x3bef5b[_0x212ca0('0x1457')][_0x212ca0('0x73e')][_0x3f9cd1][_0x212ca0('0x412')],'msg':_0x3bef5b[_0x212ca0('0x1457')]['errors'][_0x3f9cd1][_0x212ca0('0x1603')]});}}else _0xe21c8c[_0x212ca0('0x1db9')]({'title':_0x3bef5b[_0x212ca0('0x11c5')]?'API:'+_0x3bef5b[_0x212ca0('0x11c5')]+_0x212ca0('0x16e4')+_0x3bef5b[_0x212ca0('0x1833')]:_0x212ca0('0x2261'),'msg':_0x3bef5b[_0x212ca0('0x1457')]?JSON[_0x212ca0('0x678')](_0x3bef5b[_0x212ca0('0x1457')][_0x212ca0('0x1603')]):_0x3bef5b[_0x212ca0('0x9b6')]()});});}function _0x6a6a3c(){const _0x1f140d=_0x460567;_0x9f3023[_0x1f140d('0x73e')]=[],_0x40e013['userProfile'][_0x1f140d('0x27ba')]({'id':_0x9f3023[_0x1f140d('0xdeb')]['id']},_0x9f3023[_0x1f140d('0xdeb')])[_0x1f140d('0x1af5')]['then'](function(_0x160346){const _0x2d09c6=_0x1f140d,_0x2c65d3=_0x49cbdd()[_0x2d09c6('0xe8e')](_0x9f3023[_0x2d09c6('0x346')],{'id':_0x160346['id']});_0x2c65d3&&_0x49cbdd()[_0x2d09c6('0x1ced')](_0x2c65d3,_0x49cbdd()['pick'](_0x160346[_0x2d09c6('0x16b2')](),_0x49cbdd()['keys'](_0x2c65d3))),_0xe21c8c['success']({'title':_0x2d09c6('0x26f3'),'msg':_0x9f3023[_0x2d09c6('0xdeb')]['name']?_0x9f3023[_0x2d09c6('0xdeb')][_0x2d09c6('0x2aa')]+_0x2d09c6('0x15ca'):''}),_0x28169c(_0x160346);})[_0x1f140d('0x16df')](function(_0x345701){const _0x2b19fa=_0x1f140d;if(_0x345701[_0x2b19fa('0x1457')]&&_0x345701[_0x2b19fa('0x1457')][_0x2b19fa('0x73e')]&&_0x345701[_0x2b19fa('0x1457')][_0x2b19fa('0x73e')][_0x2b19fa('0x1f73')]){_0x9f3023[_0x2b19fa('0x73e')]=_0x345701['data'][_0x2b19fa('0x73e')]||[{'message':_0x345701[_0x2b19fa('0x9b6')](),'type':_0x2b19fa('0x41f')}];for(let _0x190cf0=0x0;_0x190cf0<_0x345701['data'][_0x2b19fa('0x73e')][_0x2b19fa('0x1f73')];_0x190cf0++){_0xe21c8c[_0x2b19fa('0x1db9')]({'title':_0x345701['data'][_0x2b19fa('0x73e')][_0x190cf0][_0x2b19fa('0x412')],'msg':_0x345701[_0x2b19fa('0x1457')][_0x2b19fa('0x73e')][_0x190cf0][_0x2b19fa('0x1603')]});}}else _0xe21c8c[_0x2b19fa('0x1db9')]({'title':_0x345701[_0x2b19fa('0x11c5')]?'API:'+_0x345701['status']+_0x2b19fa('0x16e4')+_0x345701[_0x2b19fa('0x1833')]:_0x2b19fa('0x41f'),'msg':_0x345701[_0x2b19fa('0x1457')]?JSON['stringify'](_0x345701[_0x2b19fa('0x1457')][_0x2b19fa('0x1603')]):_0x345701[_0x2b19fa('0x9b6')]()});});}function _0x4ecf14(_0x58377a){const _0xdddc28=_0x460567;_0x9f3023[_0xdddc28('0x73e')]=[];const _0x252866=_0x1df770[_0xdddc28('0x1121')]()[_0xdddc28('0x24d3')]('Are\x20you\x20sure?')[_0xdddc28('0xd5')](_0xdddc28('0x2806'))[_0xdddc28('0x2095')]('Delete\x20UserProfile')['ok'](_0xdddc28('0x304'))['cancel'](_0xdddc28('0x1b70'))[_0xdddc28('0x104f')](_0x58377a);_0x1df770[_0xdddc28('0x28e2')](_0x252866)['then'](function(){const _0x3c4c30=_0xdddc28;_0x40e013[_0x3c4c30('0xdeb')][_0x3c4c30('0x1da6')]({'id':_0x9f3023[_0x3c4c30('0xdeb')]['id']})['$promise']['then'](function(){const _0x5a299a=_0x3c4c30;_0x49cbdd()[_0x5a299a('0x5f3')](_0x9f3023[_0x5a299a('0x346')],{'id':_0x9f3023[_0x5a299a('0xdeb')]['id']}),_0xe21c8c[_0x5a299a('0x130d')]({'title':_0x5a299a('0x14f5'),'msg':(_0x9f3023['userProfile'][_0x5a299a('0x2aa')]||_0x5a299a('0xdeb'))+'\x20has\x20been\x20deleted!'}),_0x28169c(_0x9f3023['userProfile']);})[_0x3c4c30('0x16df')](function(_0x3e937d){const _0x15b82f=_0x3c4c30;if(_0x3e937d[_0x15b82f('0x1457')]&&_0x3e937d[_0x15b82f('0x1457')][_0x15b82f('0x73e')]&&_0x3e937d['data'][_0x15b82f('0x73e')][_0x15b82f('0x1f73')]){_0x9f3023[_0x15b82f('0x73e')]=_0x3e937d['data']['errors']||[{'message':_0x3e937d[_0x15b82f('0x9b6')](),'type':_0x15b82f('0x1ee3')}];for(let _0x545a62=0x0;_0x545a62<_0x3e937d['data'][_0x15b82f('0x73e')]['length'];_0x545a62++){_0xe21c8c[_0x15b82f('0x1db9')]({'title':_0x3e937d[_0x15b82f('0x1457')][_0x15b82f('0x73e')][_0x545a62][_0x15b82f('0x412')],'msg':_0x3e937d[_0x15b82f('0x1457')][_0x15b82f('0x73e')][_0x545a62][_0x15b82f('0x1603')]});}}else _0xe21c8c[_0x15b82f('0x1db9')]({'title':_0x3e937d[_0x15b82f('0x11c5')]?'API:'+_0x3e937d[_0x15b82f('0x11c5')]+_0x15b82f('0x16e4')+_0x3e937d[_0x15b82f('0x1833')]:_0x15b82f('0x1ee3'),'msg':_0x3e937d[_0x15b82f('0x1457')]?JSON[_0x15b82f('0x678')](_0x3e937d['data'][_0x15b82f('0x1603')]):_0x3e937d['message']||_0x3e937d['toString']()});});},function(){});}function _0x32779c(_0x1826d1){const _0x45b1f3=_0x460567,_0x1a0118=[];_0x1826d1['crudPermissions'][_0x45b1f3('0xccd')](function(_0x103d98){const _0x43471a=_0x45b1f3;let _0x5a6d3f;switch(_0x103d98){case'r':_0x5a6d3f=_0x43471a('0x2057');break;case'e':_0x5a6d3f='EDIT_PERMISSION';break;case'd':_0x5a6d3f=_0x43471a('0x125f');break;}_0x1a0118[_0x43471a('0x269f')](_0x341b5a[_0x43471a('0x1acc')](_0x43471a('0xa4a')+_0x5a6d3f));}),_0x1826d1[_0x45b1f3('0x68')]=_0x1a0118[_0x45b1f3('0x1eba')](',\x20');}function _0x46ea28(_0xe0099e){return _0xe0099e===null?undefined:new Date(_0xe0099e);}function _0x28169c(_0x5d3fc9){_0x1df770['hide'](_0x5d3fc9);}}const _0x2e1045=_0x1334cc;_0x51cc4c['$inject']=[_0x4376d8('0x14f6'),_0x4376d8('0xc4c'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0xdeb'),_0x4376d8('0x346'),'$translate'];function _0x51cc4c(_0x57a6d5,_0x265fd4,_0x45ddc9,_0x100f37,_0xbe31df,_0x2a0195,_0x58af72){const _0x21ec00=_0x4376d8,_0x57ab0d=this;_0x57ab0d[_0x21ec00('0x1c9d')]=!![],_0x57ab0d[_0x21ec00('0xdeb')]=angular[_0x21ec00('0x14e5')](_0xbe31df),_0x57ab0d[_0x21ec00('0x346')]=_0x2a0195,_0x57ab0d[_0x21ec00('0x24d3')]=_0x58af72[_0x21ec00('0x1acc')](_0x21ec00('0x1145'));_0xbe31df&&_0xbe31df[_0x21ec00('0x2aa')]&&(_0x57ab0d[_0x21ec00('0x24d3')]+=':\x20'+_0xbe31df[_0x21ec00('0x2aa')]);_0x57ab0d[_0x21ec00('0x23ae')]=_0x19b220,_0x57ab0d['closeDialog']=_0x148280;function _0x19b220(){const _0x5ed027=_0x21ec00;return _0x100f37[_0x5ed027('0xdeb')][_0x5ed027('0x2080')]({'id':_0xbe31df['id']},_0x57ab0d['userProfile'])[_0x5ed027('0x1af5')][_0x5ed027('0x17e7')](function(_0x502236){const _0x7f6f8d=_0x5ed027;_0x1c91ae(_0x502236),_0x57ab0d[_0x7f6f8d('0x346')][_0x7f6f8d('0x1893')](_0x502236[_0x7f6f8d('0x16b2')]()),_0x45ddc9[_0x7f6f8d('0x130d')]({'title':_0x7f6f8d('0x1e00'),'msg':_0x57ab0d[_0x7f6f8d('0xdeb')][_0x7f6f8d('0x2aa')]?_0x57ab0d[_0x7f6f8d('0xdeb')][_0x7f6f8d('0x2aa')]+_0x7f6f8d('0x22c9'):''}),_0x265fd4['go'](_0x7f6f8d('0x2580'),{'id':_0x502236['id']}),_0x148280(_0x502236);})[_0x5ed027('0x16df')](function(_0x52e5ef){const _0xd0f67e=_0x5ed027;if(_0x52e5ef[_0xd0f67e('0x1457')]&&_0x52e5ef[_0xd0f67e('0x1457')][_0xd0f67e('0x73e')]&&_0x52e5ef['data'][_0xd0f67e('0x73e')][_0xd0f67e('0x1f73')]){_0x57ab0d[_0xd0f67e('0x73e')]=_0x52e5ef[_0xd0f67e('0x1457')][_0xd0f67e('0x73e')]||[{'message':_0x52e5ef[_0xd0f67e('0x9b6')](),'type':_0xd0f67e('0x1e42')}];for(let _0x16f677=0x0;_0x16f677<_0x52e5ef[_0xd0f67e('0x1457')][_0xd0f67e('0x73e')][_0xd0f67e('0x1f73')];_0x16f677+=0x1){_0x45ddc9[_0xd0f67e('0x1db9')]({'title':_0x52e5ef[_0xd0f67e('0x1457')]['errors'][_0x16f677][_0xd0f67e('0x412')],'msg':_0x52e5ef[_0xd0f67e('0x1457')][_0xd0f67e('0x73e')][_0x16f677][_0xd0f67e('0x1603')]});}}else _0x45ddc9['error']({'title':_0x52e5ef[_0xd0f67e('0x11c5')]?'API:'+_0x52e5ef[_0xd0f67e('0x11c5')]+'\x20-\x20'+_0x52e5ef[_0xd0f67e('0x1833')]:_0xd0f67e('0x1e42'),'msg':_0x52e5ef['data']?JSON[_0xd0f67e('0x678')](_0x52e5ef[_0xd0f67e('0x1457')]['message']):_0x52e5ef[_0xd0f67e('0x9b6')]()});});}function _0x1c91ae(_0x5b43c3){const _0x378659=_0x21ec00,_0x1c91b5=[];_0x5b43c3[_0x378659('0x103e')]['forEach'](function(_0x16d63a){const _0x5dee41=_0x378659;let _0x3dde27;switch(_0x16d63a){case'r':_0x3dde27=_0x5dee41('0x2057');break;case'e':_0x3dde27='EDIT_PERMISSION';break;case'd':_0x3dde27='DELETE_PERMISSION';break;}_0x1c91b5[_0x5dee41('0x269f')](_0x58af72['instant'](_0x5dee41('0xa4a')+_0x3dde27));}),_0x5b43c3[_0x378659('0x68')]=_0x1c91b5[_0x378659('0x1eba')](',\x20');}function _0x148280(_0x464013){_0x57a6d5['hide'](_0x464013);}}const _0xb0f763=_0x51cc4c,_0xd96354=_0x4cf2bc['p']+'src/js/modules/main/apps/staff/views/userProfiles/edit/permissionsmanage/permissionsmanage.html/permissionsmanage.html';_0x3bc834[_0x4376d8('0x1b9c')]=['$document','$mdDialog',_0x4376d8('0x28da'),'$q',_0x4376d8('0x212e'),_0x4376d8('0xa61'),_0x4376d8('0x1885'),_0x4376d8('0x108a')];function _0x3bc834(_0x101f8b,_0x3e878f,_0x4666a5,_0x3daa59,_0x4664e2,_0x81fcd9,_0x3181b9,_0x599b2e){const _0x2803dc=_0x4376d8,_0x1f9bff=this;_0x1f9bff[_0x2803dc('0xdeb')]={},_0x1f9bff[_0x2803dc('0x1d11')]={},_0x1f9bff[_0x2803dc('0x216')]=_0x81fcd9[_0x2803dc('0x75d')](),_0x1f9bff[_0x2803dc('0x1f4d')]=_0x1f9bff[_0x2803dc('0x216')][0x0]['children'],_0x1f9bff[_0x2803dc('0x1afc')]=[{'id':0x0,'name':_0x2803dc('0x1a3c'),'color':_0x2803dc('0x1d22'),'info':_0x2803dc('0x2281'),'tag':_0x2803dc('0x157b')},{'id':0x1,'name':_0x2803dc('0xe40'),'color':_0x2803dc('0x1f35'),'info':'Some\x20resources\x20enabled','tag':'partial'},{'id':0x2,'name':_0x2803dc('0x118f'),'color':_0x2803dc('0xe28'),'info':'No\x20resources\x20enabled','tag':'disabled'},{'id':0x3,'name':_0x2803dc('0x42a'),'color':_0x2803dc('0x290'),'info':_0x2803dc('0xcb8'),'tag':_0x2803dc('0xaa0')},{'id':0x4,'name':_0x2803dc('0x57a'),'color':_0x2803dc('0x1f6a'),'info':_0x2803dc('0x45c'),'tag':_0x2803dc('0xf10')}],_0x1f9bff[_0x2803dc('0x243a')]=[{'title':_0x2803dc('0x1f00'),'translate':_0x2803dc('0x6f'),'id':0x64}],_0x1f9bff[_0x2803dc('0x161d')]=_0x4169b6,_0x1f9bff[_0x2803dc('0x19ac')]=_0x25fe2c,_0x1f9bff[_0x2803dc('0x731')]=_0x3965c7,_0x1f9bff['checkSectionResources']=_0x3f44c5;function _0x4169b6(_0x3b9c65,_0x1b9869){const _0x3246e0=_0x2803dc;_0x1f9bff[_0x3246e0('0xdeb')]=_0x3b9c65,_0x1f9bff[_0x3246e0('0x1d11')]=_0x1b9869;}function _0x25fe2c(_0x3345a3){const _0x579d07=_0x2803dc,_0x261f84=typeof _0x3345a3[_0x579d07('0x2316')]!=='undefined'&&!_0x3345a3[_0x579d07('0x2316')][_0x579d07('0x9e7')]?!![]:![],_0x4db632=_0x3345a3[_0x579d07('0x24d3')]===_0x579d07('0x2118')?'AppZone':_0x3345a3['title'];if(_0x3345a3[_0x579d07('0x11c5')][_0x579d07('0x2aa')]!==_0x579d07('0x1a3c')){const _0x205755=[];if(!_0x261f84){const _0x32e738=_0x3e878f[_0x579d07('0x1121')]({'skipHide':!![]})[_0x579d07('0x24d3')](_0x579d07('0x2180'))[_0x579d07('0x18c5')](_0x4666a5['instant'](_0x579d07('0x5f6'),{'sectionName':_0x4666a5[_0x579d07('0x1acc')](_0x3345a3[_0x579d07('0x1114')])}))[_0x579d07('0x2095')](_0x579d07('0x2180'))['ok'](_0x4666a5[_0x579d07('0x1acc')](_0x579d07('0x2303')))['cancel'](_0x4666a5[_0x579d07('0x1acc')](_0x579d07('0xd58')));_0x3e878f[_0x579d07('0x28e2')](_0x32e738)[_0x579d07('0x17e7')](function(){const _0x459968=_0x579d07;switch(_0x4db632){case _0x459968('0x1f00'):_0x49cbdd()[_0x459968('0x787')](_0x1f9bff[_0x459968('0x243a')],function(_0x286b58){const _0x537b6c=_0x459968;_0x205755[_0x537b6c('0x269f')]({'category':_0x4db632,'sectionId':_0x286b58['id'],'name':_0x286b58['title'],'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x49cbdd()[_0x537b6c('0x787')](_0x1f9bff['userProfile'][_0x537b6c('0x103e')])[_0x537b6c('0x1eba')]('')});});break;default:_0x49cbdd()['map'](_0x3345a3[_0x459968('0x2857')],function(_0x40856c){const _0x160838=_0x459968,_0x23d05c=typeof _0x40856c[_0x160838('0x2316')]!=_0x160838('0xfad')&&_0x40856c[_0x160838('0x2316')][_0x160838('0x5c')]?!![]:![];if(!_0x23d05c){let _0x226826=_0x40856c['title'];switch(_0x4db632){case _0x160838('0x1be7'):_0x226826=_0x226826===_0x160838('0x19f5')?_0x160838('0x119a'):_0x226826;break;}_0x205755['push']({'category':_0x4db632,'sectionId':_0x40856c['id'],'name':_0x226826,'enabled':!![],'autoAssociation':!![],'crudPermissions':_0x49cbdd()['map'](_0x1f9bff['userProfile'][_0x160838('0x103e')])[_0x160838('0x1eba')]('')});}});break;}return _0x4664e2['userProfile'][_0x459968('0x1c49')]({'id':_0x1f9bff[_0x459968('0xdeb')]['id']},_0x205755)['$promise'][_0x459968('0x17e7')](function(){const _0x18282d=_0x459968;_0x3345a3[_0x18282d('0x11c5')]=_0x4d228d(_0x3345a3,_0x18282d('0x157b')),_0x599b2e['success']({'title':_0x4666a5[_0x18282d('0x1acc')](_0x18282d('0x222c'),{'sectionName':_0x4666a5[_0x18282d('0x1acc')](_0x3345a3[_0x18282d('0x1114')]),'userProfileName':_0x1f9bff[_0x18282d('0xdeb')][_0x18282d('0x2aa')]}),'msg':_0x4666a5[_0x18282d('0x1acc')](_0x18282d('0x2166'),{'sectionName':_0x4666a5['instant'](_0x3345a3[_0x18282d('0x1114')]),'userProfileName':_0x1f9bff[_0x18282d('0xdeb')][_0x18282d('0x2aa')]})});});})[_0x579d07('0x16df')](function(_0x4db2b1){const _0x8e3436=_0x579d07;_0x4db2b1?_0x599b2e[_0x8e3436('0x1db9')]({'title':_0x4db2b1[_0x8e3436('0x11c5')]?_0x8e3436('0x14f7')+_0x4db2b1[_0x8e3436('0x11c5')]+_0x8e3436('0x16e4')+_0x4db2b1[_0x8e3436('0x1833')]:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x4db2b1[_0x8e3436('0x11c5')]?JSON['stringify'](_0x4db2b1[_0x8e3436('0x1457')]):_0x4db2b1['toString']()}):_0x3345a3[_0x8e3436('0x11c5')]=_0x4d228d(_0x3345a3,_0x3345a3[_0x8e3436('0x11c5')]['tag']);});}else return _0x205755[_0x579d07('0x269f')]({'category':_0x4db632,'sectionId':_0x3345a3['id'],'name':_0x4db632,'enabled':!![],'crudPermissions':_0x579d07('0xdbc')}),_0x4664e2[_0x579d07('0xdeb')][_0x579d07('0x1c49')]({'id':_0x1f9bff[_0x579d07('0xdeb')]['id']},_0x205755)[_0x579d07('0x1af5')][_0x579d07('0x17e7')](function(){const _0x3f5ad9=_0x579d07;_0x3345a3[_0x3f5ad9('0x11c5')]=_0x4d228d(_0x3345a3,'full'),_0x599b2e[_0x3f5ad9('0x130d')]({'title':_0x4666a5[_0x3f5ad9('0x1acc')](_0x3f5ad9('0x222c'),{'sectionName':_0x4666a5[_0x3f5ad9('0x1acc')](_0x3345a3[_0x3f5ad9('0x1114')]),'userProfileName':_0x1f9bff[_0x3f5ad9('0xdeb')]['name']}),'msg':_0x4666a5[_0x3f5ad9('0x1acc')](_0x3f5ad9('0x2369'),{'sectionName':_0x4666a5['instant'](_0x3345a3[_0x3f5ad9('0x1114')]),'userProfileName':_0x1f9bff[_0x3f5ad9('0xdeb')]['name']})});})[_0x579d07('0x16df')](function(_0x2097a6){const _0x46dfdb=_0x579d07;_0x599b2e[_0x46dfdb('0x1db9')]({'title':_0x2097a6['status']?_0x46dfdb('0x14f7')+_0x2097a6['status']+'\x20-\x20'+_0x2097a6[_0x46dfdb('0x1833')]:'SYSTEM:USERPROFILE.ADDSECTIONS','msg':_0x2097a6[_0x46dfdb('0x11c5')]?JSON[_0x46dfdb('0x678')](_0x2097a6[_0x46dfdb('0x1457')]):_0x2097a6[_0x46dfdb('0x9b6')]()});});}else{if(_0x3345a3['status'][_0x579d07('0x2aa')]==='Fully\x20Enabled'){_0x3345a3[_0x579d07('0x11c5')]=_0x4d228d(_0x3345a3,_0x579d07('0xc3c'));let _0x3d59d8=[];switch(_0x4db632){case _0x579d07('0x1942'):case'Help':_0x3d59d8=[_0x3345a3['id']];break;case _0x579d07('0x1f00'):_0x3d59d8=_0x49cbdd()['map'](_0x1f9bff[_0x579d07('0x243a')],function(_0x2154e8){return _0x2154e8['id'];});break;default:_0x3d59d8=_0x49cbdd()[_0x579d07('0x787')](_0x3345a3['children'],function(_0x273699){return _0x273699['id'];});break;}return _0x4664e2['userProfile']['removeSections']({'id':_0x1f9bff[_0x579d07('0xdeb')]['id'],'ids':_0x3d59d8})[_0x579d07('0x1af5')][_0x579d07('0x17e7')](function(){const _0x34521e=_0x579d07;_0x599b2e[_0x34521e('0x130d')]({'title':_0x4666a5[_0x34521e('0x1acc')]('STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_TITLE',{'sectionName':_0x4666a5[_0x34521e('0x1acc')](_0x3345a3[_0x34521e('0x1114')]),'userProfileName':_0x1f9bff[_0x34521e('0xdeb')]['name']}),'msg':_0x4666a5[_0x34521e('0x1acc')]('STAFF.NOTIFICATIONS.PERMISSIONS_DISABLED_ALL_SUCCESS_MESSAGE',{'sectionName':_0x4666a5[_0x34521e('0x1acc')](_0x3345a3[_0x34521e('0x1114')]),'userProfileName':_0x1f9bff['userProfile'][_0x34521e('0x2aa')]})});})['catch'](function(_0xfeadfe){const _0x3d3b1e=_0x579d07;_0x599b2e[_0x3d3b1e('0x1db9')]({'title':_0xfeadfe[_0x3d3b1e('0x11c5')]?_0x3d3b1e('0x14f7')+_0xfeadfe['status']+_0x3d3b1e('0x16e4')+_0xfeadfe['statusText']:_0x3d3b1e('0x1b43'),'msg':_0xfeadfe['status']?JSON[_0x3d3b1e('0x678')](_0xfeadfe[_0x3d3b1e('0x1457')]):_0xfeadfe['toString']()});});}}}function _0x3965c7(_0x419337,_0x1956e7){const _0x5c5a69=_0x2803dc,_0x59fdc2=_0x3e878f[_0x5c5a69('0x28e2')]({'controller':_0x5c5a69('0x2479'),'controllerAs':'vm','templateUrl':_0xd96354,'parent':angular['element'](_0x101f8b[_0x5c5a69('0x13aa')]),'targetEvent':_0x1956e7,'clickOutsideToClose':![],'locals':{'userProfile':_0x1f9bff['userProfile'],'userProfiles':[],'section':_0x419337}});_0x59fdc2[_0x5c5a69('0x17e7')](function(){_0x3f44c5(_0x419337);});}function _0x4d228d(_0x969750,_0x3c6213){const _0x26ff07=_0x2803dc;_0x969750[_0x26ff07('0xebe')]=_0x187a04(_0x3c6213);switch(_0x3c6213){case'full':return _0x49cbdd()[_0x26ff07('0xe8e')](_0x1f9bff['statusList'],['tag',_0x26ff07('0x157b')]);case'partial':return _0x49cbdd()[_0x26ff07('0xe8e')](_0x1f9bff[_0x26ff07('0x1afc')],[_0x26ff07('0x1132'),_0x26ff07('0x80f')]);case _0x26ff07('0xc3c'):return _0x49cbdd()['find'](_0x1f9bff['statusList'],['tag',_0x26ff07('0xc3c')]);case _0x26ff07('0xaa0'):return _0x49cbdd()['find'](_0x1f9bff[_0x26ff07('0x1afc')],[_0x26ff07('0x1132'),_0x26ff07('0xaa0')]);case _0x26ff07('0xf10'):return _0x49cbdd()[_0x26ff07('0xe8e')](_0x1f9bff[_0x26ff07('0x1afc')],[_0x26ff07('0x1132'),'unknown']);default:return _0x49cbdd()[_0x26ff07('0xe8e')](_0x1f9bff[_0x26ff07('0x1afc')],[_0x26ff07('0x1132'),'unknown']);}}function _0x10281e(_0x1982c3){return _0x3daa59(function(_0x4d99be,_0x214e87){const _0x45eeac=a0_0xd29e,_0xeda915=typeof _0x1982c3[_0x45eeac('0x15d7')]!==_0x45eeac('0xfad')&&_0x49cbdd()[_0x45eeac('0x24b0')](_0x1982c3[_0x45eeac('0x21ec')],_0x45eeac('0x1eb2'));_0xeda915?_0x1304f3(_0x1982c3)[_0x45eeac('0x17e7')](function(_0x2cb522){_0x4d99be(_0x2cb522);})[_0x45eeac('0x16df')](function(_0x27cc39){_0x214e87(_0x27cc39);}):_0x1e43e1(_0x1982c3)[_0x45eeac('0x17e7')](function(_0x47250e){_0x4d99be(_0x47250e);})[_0x45eeac('0x16df')](function(_0x4aa067){_0x214e87(_0x4aa067);});});}function _0x1304f3(_0x90015d){return _0x3daa59(function(_0x55694c,_0x460a69){const _0xed3c0e=a0_0xd29e,_0xb9094c=typeof _0x90015d[_0xed3c0e('0x15d7')]!==_0xed3c0e('0xfad')&&_0x90015d[_0xed3c0e('0x15d7')]===_0xed3c0e('0x8e7')?_0xed3c0e('0x1ade'):_0xed3c0e('0x1e77');return _0x4664e2[_0x90015d[_0xed3c0e('0x21ec')]][_0xed3c0e('0x1c53')]({'fields':_0xed3c0e('0x1100'),'channel':_0x90015d['channel']===_0xed3c0e('0x8e7')?_0xed3c0e('0x1fe1'):_0x90015d[_0xed3c0e('0x15d7')],'type':_0xb9094c,'nolimit':!![]})[_0xed3c0e('0x1af5')][_0xed3c0e('0x17e7')](function(_0x1c71b0){_0x55694c(_0x1c71b0);})[_0xed3c0e('0x16df')](function(_0x379dee){_0x460a69(_0x379dee);});});}function _0x1e43e1(_0x546998){return _0x3daa59(function(_0xcecf8a,_0x38995e){const _0x2c9105=a0_0xd29e;let _0x24c09f,_0x5339e3,_0x25abe1=![],_0x3aec8e=![];switch(_0x546998[_0x2c9105('0x21ec')]){case _0x2c9105('0x16c2'):switch(_0x546998[_0x2c9105('0x24d3')]){case _0x2c9105('0x1f77'):_0x24c09f=_0x2c9105('0x1e77');break;case'OutboundRoutes':_0x24c09f='outbound';break;case _0x2c9105('0x1aa8'):_0x24c09f='internal';break;}break;case _0x2c9105('0x231f'):_0x25abe1=!![];break;case _0x2c9105('0x1f27'):_0x3aec8e=!![];break;case'user':switch(_0x546998[_0x2c9105('0x24d3')]){case _0x2c9105('0x2157'):_0x5339e3=_0x2c9105('0x684');break;case'Telephones':_0x5339e3=_0x2c9105('0x21b5');break;case'Users':_0x5339e3=_0x2c9105('0x221e');break;}break;}if(_0x546998[_0x2c9105('0x24d3')]===_0x2c9105('0xc8c')){if(_0x546998[_0x2c9105('0x2137')])switch(_0x546998[_0x2c9105('0x2137')]){case'default':_0x546998[_0x2c9105('0x21ec')]=_0x2c9105('0x1369');break;case'custom':_0x546998[_0x2c9105('0x21ec')]=_0x2c9105('0x18bc');break;}else return _0x4664e2[_0x2c9105('0x1369')][_0x2c9105('0x1c53')]({'nolimit':!![]})[_0x2c9105('0x1af5')][_0x2c9105('0x17e7')](function(_0x215528){const _0x214d3f=_0x2c9105;_0x4664e2[_0x214d3f('0x18bc')][_0x214d3f('0x1c53')]({'nolimit':!![]})[_0x214d3f('0x1af5')][_0x214d3f('0x17e7')](function(_0x403107){const _0x5d564d=_0x214d3f,_0x3bbe6a=_0x49cbdd()['union'](_0x215528[_0x5d564d('0x2319')],_0x403107[_0x5d564d('0x2319')]);_0xcecf8a({'count':_0x3bbe6a[_0x5d564d('0x1f73')],'rows':_0x3bbe6a[_0x5d564d('0x2319')]});});})[_0x2c9105('0x16df')](function(_0x4f22ca){_0x38995e(_0x4f22ca);});}return _0x4664e2[_0x546998[_0x2c9105('0x21ec')]][_0x2c9105('0x1c53')]({'role':_0x5339e3?_0x5339e3:undefined,'type':_0x24c09f?_0x24c09f:undefined,'VoiceExtensionId':_0x24c09f?_0x2c9105('0x9bb'):undefined,'IntervalId':_0x25abe1?_0x2c9105('0x9bb'):undefined,'MailAccountId':_0x3aec8e?'null':undefined,'FaxAccountId':_0x3aec8e?_0x2c9105('0x9bb'):undefined,'SmsAccountId':_0x3aec8e?_0x2c9105('0x9bb'):undefined,'OpenchannelAccountId':_0x3aec8e?'null':undefined,'ChatWebsiteId':_0x3aec8e?_0x2c9105('0x9bb'):undefined,'WhatsappAccountId':_0x3aec8e?_0x2c9105('0x9bb'):undefined,'ListId':_0x3aec8e?_0x2c9105('0x9bb'):undefined,'nolimit':!![]})[_0x2c9105('0x1af5')]['then'](function(_0xb682a3){_0xcecf8a(_0xb682a3);})[_0x2c9105('0x16df')](function(_0x407e65){_0x38995e(_0x407e65);});});}function _0x134680(_0x38373d,_0x2f3532){return _0x3daa59(function(_0x6e82ee,_0x401b33){const _0x55cb12=a0_0xd29e;_0x4664e2[_0x55cb12('0x78d')][_0x55cb12('0x1c53')]({'sectionId':_0x2f3532})[_0x55cb12('0x1af5')]['then'](function(_0x2c08e9){const _0x35e6e2=_0x55cb12;return _0x10281e(_0x38373d)[_0x35e6e2('0x17e7')](function(_0x151031){const _0x178dde=_0x35e6e2;return _0x49cbdd()['differenceBy'](_0x2c08e9[_0x178dde('0x2319')],_0x151031[_0x178dde('0x2319')],'id');});})[_0x55cb12('0x17e7')](function(_0x5c32d0){const _0x17f54d=_0x55cb12;_0x49cbdd()[_0x17f54d('0x109a')](_0x5c32d0)?_0x6e82ee():_0x401b33();})[_0x55cb12('0x16df')](function(_0x12ff4a){_0x401b33(_0x12ff4a);});});}function _0x2da905(_0x398424,_0x492636,_0x1c748b){const _0x3363d3=_0x2803dc,_0x2d438a=_0x398424&&_0x398424['length']>0x0?_0x398424[0x0]:null;if(!_0x2d438a)return _0x1c748b;const _0x2d727c=_0x49cbdd()['find'](_0x492636,[_0x3363d3('0x2676'),_0x2d438a['id']]);if(_0x2d727c)return _0x492636=_0x49cbdd()[_0x3363d3('0x5f3')](_0x492636,[_0x3363d3('0x2676'),_0x2d438a['id']]),_0x134680(_0x2d438a,_0x2d727c['id'])[_0x3363d3('0x17e7')](function(){const _0x5167af=_0x3363d3;return _0x1c748b=_0x5167af('0x157b'),_0x2da905(_0x398424[_0x5167af('0x27e0')](),_0x492636,_0x1c748b);})[_0x3363d3('0x16df')](function(_0x15cafd){const _0x85552b=_0x3363d3;return _0x3daa59[_0x85552b('0x1ad1')](_0x15cafd);});}function _0x3f44c5(_0x3482ee){const _0x546a5c=_0x2803dc,_0xa151aa=_0x3482ee[_0x546a5c('0x24d3')]===_0x546a5c('0x2118')?_0x546a5c('0x510'):_0x3482ee[_0x546a5c('0x24d3')];if(!_0x1f9bff[_0x546a5c('0x1d11')]){_0x3482ee[_0x546a5c('0x11c5')]=_0x4d228d(_0x3482ee,_0x546a5c('0xf10'));return;}typeof _0x3482ee[_0x546a5c('0x2316')]!=='undefined'&&!_0x3482ee['permissions'][_0x546a5c('0x9e7')]?_0x4664e2[_0x546a5c('0x383')][_0x546a5c('0x1c53')]({'userProfileId':_0x1f9bff[_0x546a5c('0xdeb')]['id'],'sectionId':_0x3482ee['id']})[_0x546a5c('0x1af5')][_0x546a5c('0x17e7')](function(_0x2b1e04){const _0x252bf3=_0x546a5c,_0x900a45=_0x2b1e04&&_0x2b1e04[_0x252bf3('0x2319')][_0x252bf3('0x1f73')]===0x1?_0x2b1e04[_0x252bf3('0x2319')][0x0]:null,_0x481df7=_0x900a45?_0x252bf3('0x157b'):_0x252bf3('0xc3c');_0x3482ee[_0x252bf3('0x11c5')]=_0x4d228d(_0x3482ee,_0x481df7);}):typeof _0x3482ee['license']!==_0x546a5c('0xfad')&&!_0x1f9bff[_0x546a5c('0x1d11')][_0x3482ee['license']]?_0x3482ee[_0x546a5c('0x11c5')]=_0x4d228d(_0x3482ee,_0x546a5c('0xaa0')):_0x4664e2[_0x546a5c('0x383')][_0x546a5c('0x1c53')]({'userProfileId':_0x1f9bff[_0x546a5c('0xdeb')]['id'],'category':_0xa151aa})[_0x546a5c('0x1af5')][_0x546a5c('0x17e7')](function(_0x3a444d){const _0x5aae34=_0x546a5c,_0x1f2a16=_0x3a444d&&_0x3a444d[_0x5aae34('0x2319')]&&_0x3a444d[_0x5aae34('0x2319')][_0x5aae34('0x1f73')]>0x0?_0x3a444d['rows']:[];if(_0x3482ee[_0x5aae34('0x24d3')]===_0x5aae34('0x1f00'))return _0x49cbdd()[_0x5aae34('0x109a')](_0x1f2a16)?'disabled':_0x1f2a16[0x0][_0x5aae34('0x9e3')]?_0x5aae34('0x157b'):_0x4664e2[_0x5aae34('0x78d')][_0x5aae34('0x1c53')]({'sectionId':_0x1f2a16[0x0]['id'],'resourceId':0x65})[_0x5aae34('0x1af5')][_0x5aae34('0x17e7')](function(_0x5002ec){const _0x354302=_0x5aae34,_0x4059c6=_0x5002ec&&_0x5002ec[_0x354302('0x2319')]?_0x5002ec['rows'][0x0]:null;return _0x4059c6?_0x354302('0x157b'):_0x354302('0x80f');});else{const _0x18f012=_0x49cbdd()[_0x5aae34('0x2483')](_0x3482ee[_0x5aae34('0x2857')],function(_0x57289b){const _0x218a8e=_0x5aae34;return typeof _0x57289b[_0x218a8e('0x2316')]!==_0x218a8e('0xfad')&&_0x57289b[_0x218a8e('0x2316')]['hidden']?undefined:_0x57289b;});if(_0x1f2a16[_0x5aae34('0x1f73')]===_0x18f012[_0x5aae34('0x1f73')]){if(_0x49cbdd()[_0x5aae34('0x12df')](_0x1f2a16,['autoAssociation',!![]]))return _0x5aae34('0x157b');else{const _0x484a8c=_0x49cbdd()['filter'](_0x18f012,function(_0x3f7c38){const _0xb59a52=_0x5aae34;return typeof _0x3f7c38[_0xb59a52('0x2316')]!==_0xb59a52('0xfad')&&!_0x3f7c38[_0xb59a52('0x2316')][_0xb59a52('0x9e7')]?undefined:_0x3f7c38;});return _0x2da905(_0x484a8c,_0x1f2a16,_0x5aae34('0x80f'));}}else return _0x1f2a16[_0x5aae34('0x1f73')]===0x0?_0x5aae34('0xc3c'):_0x5aae34('0x80f');}})[_0x546a5c('0x17e7')](function(_0x269f5c){_0x3482ee['status']=_0x4d228d(_0x3482ee,_0x269f5c);})[_0x546a5c('0x16df')](function(_0x180090){const _0x53d274=_0x546a5c,_0xa3d1a9=_0x180090?_0x53d274('0xf10'):_0x53d274('0x80f');_0x3482ee[_0x53d274('0x11c5')]=_0x4d228d(_0x3482ee,_0xa3d1a9),_0x180090&&_0x599b2e[_0x53d274('0x1db9')]({'title':_0x180090[_0x53d274('0x11c5')]?_0x53d274('0x14f7')+_0x180090['status']+_0x53d274('0x16e4')+_0x180090[_0x53d274('0x1833')]:_0x53d274('0x17ce')+_0xa151aa[_0x53d274('0x14e2')]()+')','msg':_0x180090[_0x53d274('0x11c5')]?JSON['stringify'](_0x180090['data']):_0x180090[_0x53d274('0x9b6')]()});});}function _0x187a04(_0x4b9b97){const _0x446400=_0x2803dc;return _0x4b9b97===_0x446400('0x157b')?!![]:![];}}const _0x4690a2=_0x3bc834;_0x1d9fcc[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'api',_0x4376d8('0xdeb'),_0x4376d8('0x346'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x16f8')];function _0x1d9fcc(_0x5a3d19,_0x353dc4,_0x357561,_0x5402db,_0x4a5dd7,_0x261c01,_0x4e531e,_0xd81e89,_0x41b582,_0x7a7a42){const _0x5d302e=_0x4376d8,_0x4e3aef=this;_0x4e3aef[_0x5d302e('0xdeb')]=_0x261c01,_0x4e3aef[_0x5d302e('0x122c')]=0x0,_0x4e3aef[_0x5d302e('0x16f8')]=angular[_0x5d302e('0x14e5')](_0x7a7a42),_0x4e3aef[_0x5d302e('0x24d3')]=_0xd81e89['instant']('STAFF.PERMISSIONS_SECTION_TITLE',{'sectionName':_0xd81e89[_0x5d302e('0x1acc')](_0x4e3aef[_0x5d302e('0x16f8')][_0x5d302e('0x1114')])}),_0x4e3aef[_0x5d302e('0x532')]=[],_0x4e3aef[_0x5d302e('0xc14')]=[],_0x4e3aef['subsections']=_0x49cbdd()[_0x5d302e('0x2483')](_0x4e3aef[_0x5d302e('0x16f8')][_0x5d302e('0x2857')],function(_0x2dba71){const _0x11de25=_0x5d302e;return typeof _0x2dba71['permissions']!=_0x11de25('0xfad')&&_0x2dba71[_0x11de25('0x2316')][_0x11de25('0x5c')]?undefined:_0x2dba71;}),_0x4e3aef['dashboardSections']=[{'title':_0x5d302e('0x1f00'),'translate':'DASHBOARDS.DASHBOARDS','id':0x64}],_0x4e3aef[_0x5d302e('0x7f1')]=[];_0x4e3aef[_0x5d302e('0x16f8')][_0x5d302e('0x24d3')]===_0x5d302e('0x1f00')&&(_0x4e3aef[_0x5d302e('0x7f1')]=_0x4e3aef[_0x5d302e('0x1ffb')],_0x4e3aef['subsections']=_0x4e3aef['dashboardSections']);_0x4e3aef['selectedSection']=null,_0x4e3aef[_0x5d302e('0x1a6')]=null,_0x4e3aef['allReportsSelected']=[],_0x4e3aef[_0x5d302e('0x136e')]=_0x589000,_0x4e3aef['onChangeSection']=_0x1202e4,_0x4e3aef['onChangeVisibility']=_0x5d1d24,_0x4e3aef[_0x5d302e('0x6f0')]=_0xe7fa93,_0x4e3aef[_0x5d302e('0xc5a')]=_0x2b87eb,_0x4e3aef[_0x5d302e('0x9cd')]=_0x45b926,_0x4e3aef[_0x5d302e('0xcb5')]=_0x55a9aa,_0x4e3aef[_0x5d302e('0x26f4')]={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5d302e('0x2aa'),'line1':_0x5d302e('0x2aa'),'line2':'','line3':'','line4':_0x5d302e('0x25f5'),'labelAll':_0xd81e89['instant'](_0x5d302e('0x190')),'labelSelected':_0xd81e89[_0x5d302e('0x1acc')](_0x5d302e('0x2247')),'labelSearch':_0xd81e89[_0x5d302e('0x1acc')]('STAFF.PERMISSIONS_PLACEHOLDER_SEARCH'),'transferCallback':function(_0x33ea3d,_0x18d616){const _0x1cdaf0=_0x5d302e;_0x184ecd(!![]),_0x18d616?(_0x4e3aef['selectedSection'][_0x1cdaf0('0xc14')]=_0x49cbdd()[_0x1cdaf0('0x1c7d')](_0x4e3aef[_0x1cdaf0('0x608')][_0x1cdaf0('0xc14')],_0x33ea3d,'id'),_0x4e3aef['selectedSection']['autoAssociation']=![]):_0x4e3aef['selectedSection'][_0x1cdaf0('0xc14')]=_0x49cbdd()[_0x1cdaf0('0x241')](_0x4e3aef[_0x1cdaf0('0x608')][_0x1cdaf0('0xc14')],_0x33ea3d,'id'),_0x4e3aef[_0x1cdaf0('0x608')][_0x1cdaf0('0x24d3')]==='Reports'&&_0xec0da6();}};function _0x30f2c9(){return _0x357561(function(_0x1f7ed3,_0x38a7b0){const _0x428693=a0_0xd29e,_0x560b52=typeof _0x4e3aef[_0x428693('0x608')][_0x428693('0x15d7')]!==_0x428693('0xfad')&&_0x4e3aef['selectedSection'][_0x428693('0x15d7')]===_0x428693('0x8e7')?_0x428693('0x1ade'):_0x428693('0x1e77');return _0x4a5dd7[_0x4e3aef[_0x428693('0x608')][_0x428693('0x21ec')]]['get']({'fields':'id,name,strategy,type','channel':_0x4e3aef[_0x428693('0x608')][_0x428693('0x15d7')]===_0x428693('0x8e7')?_0x428693('0x1fe1'):_0x4e3aef[_0x428693('0x608')]['channel'],'type':_0x560b52,'nolimit':!![]})[_0x428693('0x1af5')][_0x428693('0x17e7')](function(_0x345955){_0x1f7ed3(_0x345955);})[_0x428693('0x16df')](function(_0x512e5f){_0x38a7b0(_0x512e5f);});});}function _0x1dab2d(){return _0x357561(function(_0xdd9f7e,_0x1a92ab){const _0x2f8224=a0_0xd29e;let _0x5c52a7,_0x3ee693,_0x490f1d=![],_0x3affa2=![];if(_0x4e3aef['selectedSection'][_0x2f8224('0x21ec')]==='voiceExtension')switch(_0x4e3aef[_0x2f8224('0x608')][_0x2f8224('0x24d3')]){case _0x2f8224('0x1f77'):_0x5c52a7='inbound';break;case _0x2f8224('0x1d35'):_0x5c52a7=_0x2f8224('0x1ade');break;case _0x2f8224('0x1aa8'):_0x5c52a7=_0x2f8224('0xe3e');break;}if(_0x4e3aef[_0x2f8224('0x608')]['route']===_0x2f8224('0x221e'))switch(_0x4e3aef[_0x2f8224('0x608')]['title']){case _0x2f8224('0x2157'):_0x3ee693=_0x2f8224('0x684');break;case'Telephones':_0x3ee693=_0x2f8224('0x21b5');break;case _0x2f8224('0x15d4'):_0x3ee693=_0x2f8224('0x221e');break;}_0x4e3aef[_0x2f8224('0x608')][_0x2f8224('0x21ec')]===_0x2f8224('0x231f')&&(_0x490f1d=!![]);_0x4e3aef[_0x2f8224('0x608')]['route']===_0x2f8224('0x1f27')&&(_0x3affa2=!![]);_0x4e3aef[_0x2f8224('0x608')][_0x2f8224('0x24d3')]===_0x2f8224('0xc8c')&&(_0x4e3aef[_0x2f8224('0x608')][_0x2f8224('0x21ec')]=_0x4e3aef[_0x2f8224('0x608')][_0x2f8224('0x2137')]==='default'?'analyticDefaultReport':_0x2f8224('0x18bc'));if(_0x4e3aef[_0x2f8224('0x608')]['title']===_0x2f8224('0x1f00'))_0xdd9f7e({'count':0x1,'rows':[{'id':0x65,'name':_0xd81e89[_0x2f8224('0x1acc')](_0x2f8224('0x1365'))}]});else return _0x4a5dd7[_0x4e3aef[_0x2f8224('0x608')][_0x2f8224('0x21ec')]]['get']({'role':_0x3ee693?_0x3ee693:undefined,'type':_0x5c52a7?_0x5c52a7:undefined,'VoiceExtensionId':_0x5c52a7?'null':undefined,'IntervalId':_0x490f1d?'null':undefined,'MailAccountId':_0x3affa2?'null':undefined,'FaxAccountId':_0x3affa2?'null':undefined,'SmsAccountId':_0x3affa2?_0x2f8224('0x9bb'):undefined,'OpenchannelAccountId':_0x3affa2?_0x2f8224('0x9bb'):undefined,'ChatWebsiteId':_0x3affa2?_0x2f8224('0x9bb'):undefined,'WhatsappAccountId':_0x3affa2?'null':undefined,'ListId':_0x3affa2?_0x2f8224('0x9bb'):undefined,'nolimit':!![]})[_0x2f8224('0x1af5')][_0x2f8224('0x17e7')](function(_0x4421fe){_0xdd9f7e(_0x4421fe);})[_0x2f8224('0x16df')](function(_0x35b6f7){_0x1a92ab(_0x35b6f7);});});}function _0x5e2834(){const _0x571cf9=_0x5d302e,_0x440dea=typeof _0x4e3aef[_0x571cf9('0x608')]['pending']!=_0x571cf9('0xfad')?_0x4e3aef[_0x571cf9('0x608')][_0x571cf9('0xd73')]:![];return _0x357561(function(_0x15543f,_0x798f10){const _0x5f48a5=_0x571cf9;_0x4a5dd7[_0x5f48a5('0x383')]['get']({'userProfileId':_0x4e3aef[_0x5f48a5('0xdeb')]['id'],'sectionId':_0x4e3aef[_0x5f48a5('0x608')]['id']})[_0x5f48a5('0x1af5')][_0x5f48a5('0x17e7')](function(_0x4c913f){const _0x24f038=_0x5f48a5,_0x51314c=_0x4c913f&&_0x4c913f[_0x24f038('0x2319')]?_0x4c913f[_0x24f038('0x2319')][0x0]:null;!_0x440dea&&(_0x4e3aef[_0x24f038('0x608')][_0x24f038('0x1cd3')]=_0x51314c?!!_0x51314c[_0x24f038('0x1cd3')]:![],_0x4e3aef[_0x24f038('0x608')]['autoAssociation']=_0x51314c?!!_0x51314c[_0x24f038('0x9e3')]:![],_0x4e3aef[_0x24f038('0x608')]['crudPermissions']=_0x51314c?_0x213f34(_0x51314c[_0x24f038('0x103e')]):_0x213f34(_0x4e3aef['userProfile'][_0x24f038('0x103e')])),_0x15543f(_0x51314c);})[_0x5f48a5('0x16df')](function(_0x145a7e){_0x798f10(_0x145a7e);});});}function _0x332215(){return _0x357561(function(_0x138c66,_0x11e063){const _0x8b3f7c=a0_0xd29e;!_0x4e3aef[_0x8b3f7c('0x1a6')]?_0x138c66(null):_0x4a5dd7['userProfileResource'][_0x8b3f7c('0x1c53')]({'sectionId':_0x4e3aef[_0x8b3f7c('0x1a6')]['id'],'nolimit':!![]})['$promise'][_0x8b3f7c('0x17e7')](function(_0x6a4ab0){_0x138c66(_0x6a4ab0);})[_0x8b3f7c('0x16df')](function(_0x594c8f){_0x11e063(_0x594c8f);});});}function _0x4edc92(){return _0x357561(function(_0x4e79f1,_0x79b3e1){const _0x533309=a0_0xd29e,_0x5cc705=typeof _0x4e3aef[_0x533309('0x608')][_0x533309('0x15d7')]!==_0x533309('0xfad')&&_0x49cbdd()['includes'](_0x4e3aef[_0x533309('0x608')]['route'],_0x533309('0x1eb2'));_0x5cc705?_0x30f2c9()[_0x533309('0x17e7')](function(_0x23347e){_0x4e79f1(_0x23347e);})['catch'](function(_0x41ba5b){_0x79b3e1(_0x41ba5b);}):_0x1dab2d()['then'](function(_0x53aeb9){_0x4e79f1(_0x53aeb9);})[_0x533309('0x16df')](function(_0x7145b2){_0x79b3e1(_0x7145b2);});});}function _0x80d319(){const _0x78d777=_0x5d302e,_0x16c456=typeof _0x4e3aef[_0x78d777('0x608')][_0x78d777('0xd73')]!=_0x78d777('0xfad')?_0x4e3aef[_0x78d777('0x608')][_0x78d777('0xd73')]:![];let _0x69c253=[];return _0x332215()[_0x78d777('0x17e7')](function(_0x26244a){const _0x27648f=_0x78d777;return _0x69c253=_0x26244a&&_0x26244a[_0x27648f('0x2319')]?_0x26244a[_0x27648f('0x2319')]:[],_0x4e3aef[_0x27648f('0x608')][_0x27648f('0x24d3')]===_0x27648f('0xc8c')&&(_0x4e3aef[_0x27648f('0x27ed')]=!_0x4e3aef[_0x27648f('0x27ed')]?_0x69c253:_0x4e3aef['associatedReports'],_0x69c253=_0x1124d1(_0x4e3aef[_0x27648f('0x27ed')])),typeof _0x4e3aef[_0x27648f('0x608')][_0x27648f('0x2316')]!==_0x27648f('0xfad')&&!_0x4e3aef[_0x27648f('0x608')][_0x27648f('0x2316')][_0x27648f('0x9e7')]?{'rows':[]}:_0x4edc92();})[_0x78d777('0x17e7')](function(_0x1e53ad){const _0x281822=_0x78d777;_0x4e3aef[_0x281822('0x532')]=_0x1e53ad[_0x281822('0x2319')]?_0x49cbdd()[_0x281822('0x787')](_0x1e53ad['rows'],function(_0x313878){const _0x31f5dd=_0x281822;return _0x4e3aef[_0x31f5dd('0x608')][_0x31f5dd('0x24d3')]===_0x31f5dd('0xc8c')&&(_0x313878[_0x31f5dd('0x25f5')]=_0x2ef106(_0x313878[_0x31f5dd('0x14e')])[_0x31f5dd('0x737')]('\x20','_')),_0x313878[_0x31f5dd('0xc98')]=!![],_0x313878;}):[];!_0x16c456&&(_0x4e3aef['selectedSection'][_0x281822('0xc14')]=_0x49cbdd()[_0x281822('0x787')](_0x69c253,function(_0x552903){const _0x5101e8=_0x281822;return _0x49cbdd()['find'](_0x4e3aef[_0x5101e8('0x532')],{'id':_0x552903[_0x5101e8('0x5db')]});}));const _0x18618c=_0x49cbdd()['differenceBy'](_0x4e3aef[_0x281822('0x608')]['selectedItems'],_0x4e3aef[_0x281822('0x532')],'id');!_0x49cbdd()[_0x281822('0x109a')](_0x18618c)&&(_0x4e3aef[_0x281822('0x608')][_0x281822('0xc14')]=_0x49cbdd()['pullAllBy'](_0x4e3aef[_0x281822('0x608')][_0x281822('0xc14')],_0x18618c,'id'));let _0xf7f8c;switch(_0x4e3aef['selectedSection'][_0x281822('0x24d3')]){case _0x281822('0xb67'):_0x4e3aef[_0x281822('0x608')][_0x281822('0xc14')]=_0x49cbdd()[_0x281822('0x2483')](_0x4e3aef[_0x281822('0x532')],function(_0x195cf7){const _0x295501=_0x281822;if(_0x195cf7[_0x295501('0x16d2')])return _0x195cf7[_0x295501('0xc98')]=![],_0x195cf7;else{const _0x4d0c42=_0x49cbdd()[_0x295501('0xe8e')](_0x69c253,{'resourceId':_0x195cf7['id']});if(typeof _0x4d0c42!=='undefined')return _0x195cf7['isValid']=!![],_0x195cf7;}});break;case'MusicOnHolds':_0x4e3aef[_0x281822('0x608')]['selectedItems']=_0x49cbdd()[_0x281822('0x2483')](_0x4e3aef[_0x281822('0x532')],function(_0x3c01bd){const _0x196658=_0x281822;if(_0x3c01bd[_0x196658('0x16d2')])return _0x3c01bd[_0x196658('0xc98')]=![],_0x3c01bd;else{const _0x25ce10=_0x49cbdd()['find'](_0x69c253,{'resourceId':_0x3c01bd['id']});if(typeof _0x25ce10!==_0x196658('0xfad'))return _0x3c01bd[_0x196658('0xc98')]=!![],_0x3c01bd;}});break;case'Reports':_0xf7f8c=_0x4c2949(_0x4e3aef['allReportsSelected']),_0x4e3aef[_0x281822('0x608')]['selectedItems']=_0x4fb944(_0x4e3aef[_0x281822('0x608')][_0x281822('0xc14')]),_0x4e3aef['selectedSection'][_0x281822('0xc14')]=_0x49cbdd()[_0x281822('0x241')](_0x4e3aef[_0x281822('0x608')]['selectedItems'],_0xf7f8c,'id');break;}_0x4e3aef['dualMultiselectOptions'][_0x281822('0xc14')]=_0x4e3aef[_0x281822('0x608')]['selectedItems'],_0x4e3aef[_0x281822('0x26f4')][_0x281822('0x532')]=_0x49cbdd()[_0x281822('0x1ada')](_0x4e3aef[_0x281822('0x532')],_0x4e3aef[_0x281822('0x26f4')][_0x281822('0xc14')],'id');})[_0x78d777('0x16df')](function(_0x2a6918){const _0x574a28=_0x78d777;_0x5402db[_0x574a28('0x1db9')]({'title':_0x2a6918[_0x574a28('0x11c5')]?'API:'+_0x2a6918[_0x574a28('0x11c5')]+'\x20-\x20'+_0x2a6918[_0x574a28('0x1833')]:_0x574a28('0x269c')+_0x4e3aef[_0x574a28('0x608')]['title']['toUpperCase'](),'msg':_0x2a6918[_0x574a28('0x11c5')]?JSON[_0x574a28('0x678')](_0x2a6918[_0x574a28('0x1457')]):_0x2a6918[_0x574a28('0x9b6')]()});});}function _0x1202e4(){const _0x2704d7=_0x5d302e;return _0x5e2834()[_0x2704d7('0x17e7')](function(_0x274823){const _0x59c212=_0x2704d7;_0x4e3aef['loadedSection']=_0x274823;if(_0x4e3aef[_0x59c212('0x608')][_0x59c212('0x24d3')]===_0x59c212('0xc8c'))return _0x1ec1d6()['then'](function(){const _0x405649=_0x59c212;if(!_0x4e3aef[_0x405649('0x608')]['reportType'])return _0x332215()[_0x405649('0x17e7')](function(_0x535b57){const _0x40314c=_0x405649;_0x4e3aef[_0x40314c('0x165')]=_0x535b57?_0x49cbdd()[_0x40314c('0x787')](_0x535b57['rows'],function(_0x32d103){const _0x5d6d26=_0x40314c;return{'id':_0x32d103[_0x5d6d26('0x5db')],'name':_0x32d103['name'],'type':_0x32d103[_0x5d6d26('0x412')]};}):[];});})[_0x59c212('0x16df')](function(_0x1d07dd){const _0x4ce06f=_0x59c212;_0x5402db[_0x4ce06f('0x1db9')]({'title':_0x1d07dd[_0x4ce06f('0x11c5')]?_0x4ce06f('0x14f7')+_0x1d07dd['status']+_0x4ce06f('0x16e4')+_0x1d07dd[_0x4ce06f('0x1833')]:'SYSTEM:GET_TREE_REPORT_STRUCTURE','msg':_0x1d07dd[_0x4ce06f('0x1457')]?JSON['stringify'](_0x1d07dd[_0x4ce06f('0x1457')]):_0x1d07dd['toString']()});});else _0x80d319();})[_0x2704d7('0x16df')](function(_0x3e7c56){const _0x43333b=_0x2704d7;_0x5402db['error']({'title':_0x3e7c56['status']?_0x43333b('0x14f7')+_0x3e7c56[_0x43333b('0x11c5')]+'\x20-\x20'+_0x3e7c56[_0x43333b('0x1833')]:_0x43333b('0x269c')+_0x4e3aef[_0x43333b('0x608')][_0x43333b('0x24d3')]['toUpperCase'](),'msg':_0x3e7c56[_0x43333b('0x11c5')]?JSON[_0x43333b('0x678')](_0x3e7c56['data']):_0x3e7c56['toString']()});});}function _0x213f34(_0x15444d){const _0x158d3f=_0x5d302e;return _0x15444d&&(_0x4e3aef[_0x158d3f('0x608')]['allowEdit']=_0x49cbdd()[_0x158d3f('0x24b0')](_0x15444d,'e')?!![]:![],_0x4e3aef[_0x158d3f('0x608')][_0x158d3f('0x76d')]=_0x49cbdd()[_0x158d3f('0x24b0')](_0x15444d,'d')?!![]:![]),_0x14fd28();}function _0x14fd28(){const _0x3d0e08=_0x5d302e,_0x2f0561=['r'];if(_0x4e3aef[_0x3d0e08('0x608')][_0x3d0e08('0xe7a')])_0x2f0561[_0x3d0e08('0x269f')]('e');else{const _0x2fe8d3=_0x49cbdd()[_0x3d0e08('0x2567')](_0x2f0561,['e']);_0x2fe8d3>0x0&&_0x4e3aef[_0x3d0e08('0x608')][_0x3d0e08('0x103e')][_0x3d0e08('0x737')]('e','');}if(_0x4e3aef[_0x3d0e08('0x608')]['allowDelete'])_0x2f0561[_0x3d0e08('0x269f')]('d');else{const _0x453c18=_0x49cbdd()[_0x3d0e08('0x2567')](_0x2f0561,['d']);_0x453c18>0x0&&_0x4e3aef[_0x3d0e08('0x608')]['crudPermissions'][_0x3d0e08('0x737')]('d','');}return _0x2f0561;}function _0x5d1d24(){const _0x5a6aae=_0x5d302e;_0x4e3aef[_0x5a6aae('0x608')][_0x5a6aae('0x1cd3')]=!_0x4e3aef['selectedSection']['enabled'],_0x184ecd(!![]);}function _0xe7fa93(){const _0x518619=_0x5d302e;if(!_0x4e3aef[_0x518619('0x608')][_0x518619('0x9e3')]){const _0x2cb379=[];for(let _0x27308f=0x0;_0x27308f<_0x4e3aef[_0x518619('0x26f4')]['items'][_0x518619('0x1f73')];_0x27308f++){_0x2cb379['push'](_0x4e3aef['dualMultiselectOptions'][_0x518619('0x532')][_0x27308f]),_0x4e3aef['dualMultiselectOptions'][_0x518619('0xc14')][_0x518619('0x269f')](_0x4e3aef[_0x518619('0x26f4')][_0x518619('0x532')][_0x27308f]);}_0x4e3aef[_0x518619('0x26f4')][_0x518619('0x532')]=[],_0x4e3aef['dualMultiselectOptions']['transferCallback'](_0x2cb379,![]);}_0x184ecd(!![]);}function _0x2b87eb(){const _0x463099=_0x5d302e;_0x4e3aef[_0x463099('0x21f6')]=_0x10d1a2(),_0x4e3aef[_0x463099('0x608')][_0x463099('0xc14')]&&(_0x4e3aef[_0x463099('0x165')]=_0x4fb944(_0x4e3aef[_0x463099('0x165')]),_0xec0da6()),_0x80d319();}function _0x45b926(_0x3468ad){const _0x31168f=_0x5d302e;if(_0x3468ad===_0x31168f('0x21dd'))_0x4e3aef[_0x31168f('0x608')][_0x31168f('0xe7a')]=!_0x4e3aef[_0x31168f('0x608')][_0x31168f('0xe7a')];else _0x3468ad===_0x31168f('0x1da6')&&(_0x4e3aef['selectedSection']['allowDelete']=!_0x4e3aef[_0x31168f('0x608')][_0x31168f('0x76d')]);_0x4e3aef[_0x31168f('0x608')][_0x31168f('0x103e')]=_0x213f34(),_0x184ecd(!![]);}function _0x55a9aa(){const _0x41f3d4=_0x5d302e,_0x11f7fb=_0x4e3aef[_0x41f3d4('0x16f8')][_0x41f3d4('0x24d3')]==='Marketplace'?_0x41f3d4('0x510'):_0x4e3aef[_0x41f3d4('0x16f8')][_0x41f3d4('0x24d3')],_0x272e28=_0x49cbdd()(_0x4e3aef['subsections'])['filter']({'pending':!![]})[_0x41f3d4('0x787')](function(_0xfbb0b1){const _0x5604a5=_0x41f3d4,_0x29c170=_0x11f7fb===_0x5604a5('0x1be7')&&_0xfbb0b1['title']==='Projects'?_0x5604a5('0x119a'):_0xfbb0b1['title'],_0x5b833f=_0x29c170===_0x5604a5('0xc8c')?_0x4e3aef[_0x5604a5('0x165')]:_0xfbb0b1[_0x5604a5('0xc14')];return _0x11f7fb===_0x5604a5('0x7c5')&&(_0xfbb0b1[_0x5604a5('0x9e3')]=!![]),{'category':_0x11f7fb,'sectionId':_0xfbb0b1['id'],'name':_0x29c170,'enabled':_0xfbb0b1[_0x5604a5('0x1cd3')],'autoAssociation':_0xfbb0b1[_0x5604a5('0x9e3')],'crudPermissions':_0x49cbdd()[_0x5604a5('0x787')](_0xfbb0b1['crudPermissions'])[_0x5604a5('0x1eba')](''),'Resources':_0x49cbdd()[_0x5604a5('0x787')](_0x5b833f,function(_0x573f5f){return{'name':_0x573f5f['name'],'resourceId':_0x573f5f['id'],'type':_0x39f9fd(_0x29c170,_0x573f5f)};})};})[_0x41f3d4('0x175b')]();return _0x4a5dd7['userProfile'][_0x41f3d4('0x1c49')]({'id':_0x4e3aef[_0x41f3d4('0xdeb')]['id']},_0x272e28)[_0x41f3d4('0x1af5')][_0x41f3d4('0x17e7')](function(){const _0x35c91d=_0x41f3d4;_0x4e3aef[_0x35c91d('0x1ffb')][_0x35c91d('0xccd')](function(_0x24c8f0){const _0x1cc3cf=_0x35c91d;_0x24c8f0[_0x1cc3cf('0xd73')]=undefined;}),_0x4e3aef[_0x35c91d('0x27ed')]=null,_0x1f59f8(),_0x4e3aef[_0x35c91d('0x608')]['title']===_0x35c91d('0xc8c')&&!_0x4e3aef[_0x35c91d('0x608')][_0x35c91d('0x2137')]&&_0x5a3d19[_0x35c91d('0x1887')][_0x35c91d('0x22e4')](),_0x5402db[_0x35c91d('0x130d')]({'title':_0xd81e89[_0x35c91d('0x1acc')]('STAFF.NOTIFICATIONS.PERMISSIONS_SAVED_SUCCESS_TITLE',{'sectionName':_0xd81e89[_0x35c91d('0x1acc')](_0x11f7fb[_0x35c91d('0x1114')])}),'msg':_0xd81e89[_0x35c91d('0x1acc')](_0x35c91d('0x223b'))});})[_0x41f3d4('0x17e7')](function(){const _0x28d3b0=_0x41f3d4;return _0x5e2834()[_0x28d3b0('0x17e7')](function(_0x39d5bb){const _0x473dea=_0x28d3b0;_0x4e3aef[_0x473dea('0x1a6')]=_0x39d5bb;});})[_0x41f3d4('0x16df')](function(_0x4dbd32){const _0x16bb34=_0x41f3d4;_0x5402db[_0x16bb34('0x1db9')]({'title':_0x4dbd32[_0x16bb34('0x11c5')]?_0x16bb34('0x14f7')+_0x4dbd32[_0x16bb34('0x11c5')]+_0x16bb34('0x16e4')+_0x4dbd32[_0x16bb34('0x1833')]:_0x16bb34('0x6d1'),'msg':_0x4dbd32[_0x16bb34('0x11c5')]?JSON[_0x16bb34('0x678')](_0x4dbd32['data']):_0x4dbd32[_0x16bb34('0x9b6')]()});});}function _0x184ecd(_0x34e092){const _0x4186a0=_0x5d302e,_0x1c3f86=_0x49cbdd()[_0x4186a0('0x1f4c')](_0x4e3aef[_0x4186a0('0x1ffb')],function(_0x25a100){const _0x31a0cf=_0x4186a0;return _0x25a100['id']==_0x4e3aef[_0x31a0cf('0x608')]['id'];});_0x4e3aef[_0x4186a0('0x1ffb')][_0x1c3f86][_0x4186a0('0xd73')]=_0x34e092,_0x1f59f8();}function _0x1f59f8(){const _0x5c4ab4=_0x5d302e;return _0x4e3aef[_0x5c4ab4('0x25dc')]=_0x49cbdd()[_0x5c4ab4('0x26f8')](_0x4e3aef[_0x5c4ab4('0x1ffb')],[_0x5c4ab4('0xd73'),!![]]);}function _0x10d1a2(){const _0x3f25b5=_0x5d302e;let _0xf78b84={};return _0x4e3aef[_0x3f25b5('0x608')]['reportType']==='default'?_0xf78b84=_0x4e3aef[_0x3f25b5('0x1ab7')][0x0]?angular[_0x3f25b5('0x12e6')](_0x4e3aef[_0x3f25b5('0x1ab7')][0x0][_0x3f25b5('0x204b')]):[]:_0xf78b84=_0x4e3aef[_0x3f25b5('0x1ab7')][0x1]?angular['fromJson'](_0x4e3aef['treeReports'][0x1]['tree']):[],_0xf78b84;}function _0x1ec1d6(){return _0x357561(function(_0x429639,_0x1c6ac1){const _0x207c89=a0_0xd29e;_0x4a5dd7[_0x207c89('0x148')][_0x207c89('0x1c53')]({})[_0x207c89('0x1af5')][_0x207c89('0x17e7')](function(_0x204de3){const _0x25a0d4=_0x207c89;_0x4e3aef[_0x25a0d4('0x1ab7')]=_0x204de3[_0x25a0d4('0x2319')]||[],_0x429639(_0x4e3aef['treeReports']);})[_0x207c89('0x16df')](function(_0x28602c){_0x1c6ac1(_0x28602c);});});}function _0x2ef106(_0x555065){const _0x4f6a5=_0x5d302e;let _0x2d09f6=_0x4e3aef[_0x4f6a5('0x21f6')][0x0]['text'];return _0x2d09f6=_0x503e1e(_0x2d09f6,_0x555065,_0x4e3aef[_0x4f6a5('0x21f6')][0x0]),_0x2d09f6;}function _0x503e1e(_0x2f6ea1,_0x4957c3,_0xdfc585){const _0x92a0ef=_0x5d302e;if(_0xdfc585&&!_0x49cbdd()[_0x92a0ef('0x109a')](_0xdfc585[_0x92a0ef('0x2857')]))_0xdfc585=_0x49cbdd()[_0x92a0ef('0xe8e')](_0xdfc585[_0x92a0ef('0x2857')],function(_0x29684c){return _0x49cbdd()['includes'](_0x4957c3,_0x29684c['id'])?_0x29684c:undefined;}),_0x2f6ea1+=_0xdfc585?'/'+_0xdfc585[_0x92a0ef('0x132f')]:'';else return _0x2f6ea1;return _0x503e1e(_0x2f6ea1,_0x4957c3,_0xdfc585);}function _0x1124d1(_0x2e4e04){const _0x5ccb7b=_0x5d302e;return _0x49cbdd()[_0x5ccb7b('0x2483')](_0x2e4e04,{'type':_0x4e3aef[_0x5ccb7b('0x608')]['reportType']===_0x5ccb7b('0x1543')?_0x5ccb7b('0x9fb'):'CustomReports'});}function _0x4c2949(_0x2bd24f){const _0x32da3c=_0x5d302e;return _0x49cbdd()[_0x32da3c('0x2483')](_0x2bd24f,function(_0xe5c2f2){const _0x2a5617=_0x32da3c;return _0x49cbdd()[_0x2a5617('0x818')](_0xe5c2f2[_0x2a5617('0x14e')],_0x4e3aef[_0x2a5617('0x608')][_0x2a5617('0x2137')]===_0x2a5617('0x1543')?_0x2a5617('0x4ed'):_0x2a5617('0x8fa'));});}function _0x4fb944(_0x2af401){const _0x5d0a29=_0x5d302e;return _0x49cbdd()[_0x5d0a29('0x5f3')](_0x2af401,function(_0xb092f2){const _0x4b9170=_0x5d0a29;return _0x49cbdd()[_0x4b9170('0x818')](_0xb092f2['parent'],_0x4e3aef[_0x4b9170('0x608')][_0x4b9170('0x2137')]===_0x4b9170('0x1543')?_0x4b9170('0x4ed'):_0x4b9170('0x8fa'));});}function _0xec0da6(){const _0x59c77a=_0x5d302e;_0x49cbdd()[_0x59c77a('0x109a')](_0x4e3aef['selectedSection'][_0x59c77a('0xc14')])?_0x4e3aef['allReportsSelected']=_0x49cbdd()[_0x59c77a('0x5f3')](_0x4e3aef[_0x59c77a('0x165')],function(_0x306b36){const _0x23ef1e=_0x59c77a;return _0x306b36['type']===(_0x4e3aef[_0x23ef1e('0x608')]['reportType']===_0x23ef1e('0x1543')?_0x23ef1e('0xc39'):_0x23ef1e('0x9fb'));}):_0x4e3aef[_0x59c77a('0x608')][_0x59c77a('0xc14')]['forEach'](function(_0x544556){const _0x519fd7=_0x59c77a,_0x42c2a0=_0x49cbdd()['some'](_0x4e3aef[_0x519fd7('0x165')],{'id':_0x544556['id'],'parent':_0x544556[_0x519fd7('0x14e')]});!_0x42c2a0&&_0x4e3aef[_0x519fd7('0x165')][_0x519fd7('0x269f')](_0x544556);});}function _0x39f9fd(_0x75b409,_0x124395){const _0x3e6120=_0x5d302e;if(_0x75b409===_0x3e6120('0xc8c')){if(_0x124395[_0x3e6120('0x14e')]){const _0x65d75a=_0x49cbdd()[_0x3e6120('0x818')](_0x124395[_0x3e6120('0x14e')],'motion')?'Default':_0x3e6120('0x163f');return _0x65d75a+_0x75b409;}else return _0x124395[_0x3e6120('0x412')];}return _0x75b409;}function _0x589000(_0x34dd5c){const _0x33afca=_0x5d302e;if(_0x4e3aef[_0x33afca('0x25dc')]){const _0x5c4ed1=_0x353dc4[_0x33afca('0x1121')]({'skipHide':!![]})[_0x33afca('0x24d3')](_0x33afca('0x2180'))[_0x33afca('0x18c5')](_0xd81e89[_0x33afca('0x1acc')](_0x33afca('0xc0a')))[_0x33afca('0x2095')](_0x33afca('0x2180'))['targetEvent'](_0x34dd5c)['ok'](_0xd81e89[_0x33afca('0x1acc')](_0x33afca('0x9f3')))[_0x33afca('0x1d47')](_0xd81e89[_0x33afca('0x1acc')](_0x33afca('0xd58')));_0x353dc4[_0x33afca('0x28e2')](_0x5c4ed1)[_0x33afca('0x17e7')](function(){const _0x4acc0=_0x33afca;_0x353dc4[_0x4acc0('0x212a')]();});}else _0x353dc4[_0x33afca('0x212a')]();}}const _0x1419b7=_0x1d9fcc,_0x5c48d2=_0x4cf2bc['p']+_0x4376d8('0xd84');_0x8c2f02[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'api',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0xdeb'),_0x4376d8('0x383')];function _0x8c2f02(_0x5b9c3c,_0x5ebeae,_0x2bfd65,_0x3727a7,_0x400a90,_0x4fba6c,_0x4b37d4,_0x45142c,_0x49643a,_0xa40a59,_0x314f79,_0x35ffe5){const _0x292e6f=_0x4376d8,_0x3271fd=this;_0x3271fd['currentUser']=_0xa40a59[_0x292e6f('0x2831')](),_0x3271fd[_0x292e6f('0x1d11')]=_0x4fba6c,_0x3271fd[_0x292e6f('0x1aeb')]=_0x4b37d4,_0x3271fd['passwordPattern']=_0x3271fd['setting'][_0x292e6f('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3271fd[_0x292e6f('0xaed')]=_0x5ebeae[_0x292e6f('0x14fe')]()+_0x292e6f('0x14')+_0x5ebeae['host'](),_0x3271fd[_0x292e6f('0xdeb')]=_0x314f79||_0x5b9c3c[_0x292e6f('0x16fb')]['userProfile']||{},_0x3271fd['userProfileSection']=_0x35ffe5&&_0x35ffe5[_0x292e6f('0x335')]==0x1?_0x35ffe5[_0x292e6f('0x2319')][0x0]:null,_0x3271fd[_0x292e6f('0x103e')]=_0xa40a59[_0x292e6f('0x17a9')](_0x3271fd[_0x292e6f('0x383')]?_0x3271fd['userProfileSection'][_0x292e6f('0x103e')]:null),_0x3271fd[_0x292e6f('0x6ee')]={},_0x3271fd[_0x292e6f('0xde7')]=_0x5b9c3c[_0x292e6f('0x16fb')]['tab']||0x0,_0x3271fd[_0x292e6f('0x14a4')]=_0x6a1094,_0x3271fd[_0x292e6f('0x1459')]=_0x2e4f43,_0x3271fd[_0x292e6f('0x99f')]=_0x49643a[_0x292e6f('0x1178')],_0x3271fd[_0x292e6f('0x1319')]=_0x4baeff,_0x3271fd['saveUserProfile']=_0x2c0b31;function _0x6a1094(_0x1ba0f7,_0x98e5df){const _0x143182=_0x292e6f;_0x2bfd65[_0x143182('0x28e2')]({'controller':'UserProfilepermissionsmanageController','controllerAs':'vm','templateUrl':_0xd96354,'parent':angular[_0x143182('0x1ce1')](_0x3727a7['body']),'targetEvent':_0x98e5df,'clickOutsideToClose':!![],'locals':{'userProfile':_0x1ba0f7,'userProfiles':_0x3271fd[_0x143182('0x346')]?_0x3271fd[_0x143182('0x346')]['rows']:[],'crudPermissions':_0x3271fd['crudPermissions']}});}function _0x2e4f43(_0x5cd4cc,_0x2744b8){const _0x402af3=_0x292e6f;_0x2bfd65[_0x402af3('0x28e2')]({'controller':'UserProfilecloneController','controllerAs':'vm','templateUrl':_0x5c48d2,'parent':angular[_0x402af3('0x1ce1')](_0x3727a7[_0x402af3('0x13aa')]),'targetEvent':_0x2744b8,'clickOutsideToClose':!![],'locals':{'userProfile':_0x5cd4cc,'userProfiles':_0x3271fd[_0x402af3('0x346')]?_0x3271fd[_0x402af3('0x346')][_0x402af3('0x2319')]:[],'crudPermissions':_0x3271fd['crudPermissions']}});}function _0x4baeff(){const _0x2928ca=_0x292e6f;_0x5b9c3c['go'](_0x2928ca('0x16ca'),{},{'reload':_0x2928ca('0x16ca')});}function _0x2c0b31(){const _0x44fbfb=_0x292e6f;_0x45142c[_0x44fbfb('0xdeb')]['update']({'id':_0x3271fd[_0x44fbfb('0xdeb')]['id']},_0x3271fd[_0x44fbfb('0xdeb')])[_0x44fbfb('0x1af5')]['then'](function(){const _0x2cbf63=_0x44fbfb;_0x49643a[_0x2cbf63('0x130d')]({'title':'UserProfile\x20updated!','msg':_0x3271fd[_0x2cbf63('0xdeb')][_0x2cbf63('0x2aa')]?_0x3271fd[_0x2cbf63('0xdeb')][_0x2cbf63('0x2aa')]+_0x2cbf63('0x12b0'):''});})[_0x44fbfb('0x16df')](function(_0x41fc89){const _0x509dbf=_0x44fbfb;_0x49643a[_0x509dbf('0x1db9')]({'title':_0x41fc89[_0x509dbf('0x11c5')]?_0x509dbf('0x14f7')+_0x41fc89[_0x509dbf('0x11c5')]+_0x509dbf('0x16e4')+_0x41fc89[_0x509dbf('0x1833')]:'SYSTEM:GETuserProfile','msg':_0x41fc89[_0x509dbf('0x1457')]?JSON[_0x509dbf('0x678')](_0x41fc89['data']):_0x41fc89[_0x509dbf('0x9b6')]()});});}}const _0x47c39b=_0x8c2f02,_0x3c718a=_0x4cf2bc['p']+_0x4376d8('0x57f');_0x31125c['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$translate','userProfiles','userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x31125c(_0x36a1bc,_0x296998,_0x5da69a,_0x56fea1,_0x2af017,_0x3ebc2f,_0x1a3303,_0x14e84c,_0x381890,_0x3db1d0,_0x4236a7,_0x5a56f3,_0x9c9593,_0x483bc2,_0x391727,_0x3581e1,_0x49b305){const _0x57181a=_0x4376d8,_0x32bcce=this;_0x32bcce[_0x57181a('0x1d11')]=_0x3581e1,_0x32bcce[_0x57181a('0x1aeb')]=_0x49b305,_0x32bcce['currentUser']=_0x391727[_0x57181a('0x2831')](),_0x32bcce['userProfiles']=_0x381890||{'count':0x0,'rows':[]},_0x32bcce[_0x57181a('0xdeb')]=_0x3db1d0,_0x32bcce[_0x57181a('0x383')]=_0x4236a7&&_0x4236a7['count']==0x1?_0x4236a7['rows'][0x0]:null,_0x32bcce[_0x57181a('0x103e')]=_0x391727['parseCrudPermissions'](_0x32bcce[_0x57181a('0x383')]?_0x32bcce['userProfileSection'][_0x57181a('0x103e')]:null),_0x32bcce[_0x57181a('0x23c3')]=_0x57181a('0x346'),_0x32bcce[_0x57181a('0x26a1')]='',_0x32bcce['listOrderAsc']=null,_0x32bcce[_0x57181a('0x38b')]=[],_0x32bcce[_0x57181a('0x826')]={'fields':_0x57181a('0x2085'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x32bcce[_0x57181a('0x251c')]=_0x49cbdd()[_0x57181a('0x8de')]([{'option':_0x57181a('0x2707'),'value':_0x57181a('0x1c8c'),'disabled':!![]},{'option':_0x57181a('0x1e05'),'value':'\x27e\x27'},{'option':_0x57181a('0x1ca5'),'value':_0x57181a('0x1eae')}],function(_0x253592){const _0x160bba=_0x57181a;return _0x49cbdd()[_0x160bba('0x737')](_0x253592['value'],new RegExp('\x27','g'),'');});_0x32bcce[_0x57181a('0x346')]&&_0x32bcce['userProfiles']['count']>0x0&&_0x32bcce[_0x57181a('0x346')][_0x57181a('0x2319')][_0x57181a('0xccd')](function(_0x3261eb){const _0x2654a7=_0x57181a,_0x26ef79=[];_0x3261eb[_0x2654a7('0x103e')][_0x2654a7('0xccd')](function(_0x584db4){const _0x4d4322=_0x2654a7;_0x26ef79[_0x4d4322('0x269f')](_0x32bcce[_0x4d4322('0x251c')][_0x584db4][_0x4d4322('0x149d')]);});const _0x4dbf27=[];_0x26ef79['forEach'](function(_0xd9a7a8){const _0x148c83=_0x2654a7;_0x4dbf27['push'](_0x14e84c[_0x148c83('0x1acc')](_0x148c83('0xa4a')+_0xd9a7a8['toUpperCase']()));}),_0x3261eb[_0x2654a7('0x68')]=_0x4dbf27[_0x2654a7('0x1eba')](',\x20');});_0x32bcce[_0x57181a('0xcd4')]=_0x137072,_0x32bcce[_0x57181a('0x1459')]=_0x23fb5b,_0x32bcce['deleteconfirm']=_0x3fbb9f,_0x32bcce['success']=_0x3ee0a1,_0x32bcce['getUserProfiles']=_0x5f1877,_0x32bcce[_0x57181a('0x5a')]=_0x2387ff,_0x32bcce[_0x57181a('0x4fe')]=_0x15228c,_0x32bcce['exportSelectedUserProfiles']=_0x8ed537,_0x32bcce['deleteSelectedUserProfiles']=_0x196a69,_0x32bcce[_0x57181a('0x1082')]=_0x53fca5,_0x32bcce[_0x57181a('0x1f16')]=_0x2b30e6;function _0x137072(_0x4eea9f){const _0x20c969=_0x57181a;_0x5da69a['go']('app.staff.userProfiles.edit',{'id':_0x4eea9f['id'],'userProfile':_0x4eea9f,'crudPermissions':_0x32bcce[_0x20c969('0x103e')]});}function _0x23fb5b(_0x323525,_0x40714f){const _0x3ba312=_0x57181a;_0x2af017['show']({'controller':'UserProfilecloneController','controllerAs':'vm','templateUrl':_0x5c48d2,'parent':angular['element'](_0x3ebc2f['body']),'targetEvent':_0x40714f,'clickOutsideToClose':!![],'locals':{'userProfile':_0x323525,'userProfiles':_0x32bcce['userProfiles']?_0x32bcce['userProfiles'][_0x3ba312('0x2319')]:[],'crudPermissions':_0x32bcce[_0x3ba312('0x103e')]}});}function _0x3fbb9f(_0x53819b,_0x337682){const _0x41854c=_0x57181a,_0x123518=_0x2af017[_0x41854c('0x1121')]()[_0x41854c('0x24d3')](_0x41854c('0x5e1')+_0x49cbdd()[_0x41854c('0x1c98')](_0x41854c('0xdeb'))+'?')[_0x41854c('0x211f')](_0x41854c('0xa53')+(_0x53819b['name']||'userProfile')+_0x41854c('0x1d23')+_0x41854c('0xe9f'))[_0x41854c('0x2095')](_0x41854c('0x2015'))[_0x41854c('0x104f')](_0x337682)['ok']('OK')[_0x41854c('0x1d47')](_0x41854c('0x28a0'));_0x2af017[_0x41854c('0x28e2')](_0x123518)[_0x41854c('0x17e7')](function(){_0x15228c(_0x53819b);},function(){const _0x19b82c=_0x41854c;console[_0x19b82c('0x1d63')](_0x19b82c('0x28a0'));});}let _0x27db8c=!![],_0x6d1450=0x1;_0x36a1bc[_0x57181a('0x620')](_0x57181a('0x3ed'),function(_0x5d108c,_0x42a7e9){const _0x4f54d3=_0x57181a;_0x27db8c?_0x1a3303(function(){_0x27db8c=![];}):(!_0x42a7e9&&(_0x6d1450=_0x32bcce[_0x4f54d3('0x826')]['page']),_0x5d108c!==_0x42a7e9&&(_0x32bcce[_0x4f54d3('0x826')][_0x4f54d3('0x115a')]=0x1),!_0x5d108c&&(_0x32bcce[_0x4f54d3('0x826')][_0x4f54d3('0x115a')]=_0x6d1450),_0x32bcce['getUserProfiles']());});function _0x3ee0a1(_0x794146){const _0x770334=_0x57181a;_0x32bcce[_0x770334('0x346')]=_0x794146||{'count':0x0,'rows':[]};}function _0x5f1877(){const _0x42efdf=_0x57181a;_0x32bcce[_0x42efdf('0x826')][_0x42efdf('0xf19')]=(_0x32bcce[_0x42efdf('0x826')][_0x42efdf('0x115a')]-0x1)*_0x32bcce[_0x42efdf('0x826')][_0x42efdf('0x193b')],_0x391727[_0x42efdf('0x1ba2')](_0x42efdf('0x20bf'))?_0x32bcce['promise']=_0x5a56f3['userProfile']['get'](_0x32bcce[_0x42efdf('0x826')],_0x3ee0a1)[_0x42efdf('0x1af5')]:(_0x32bcce[_0x42efdf('0x826')]['id']=_0x32bcce[_0x42efdf('0xdeb')]['id'],_0x32bcce[_0x42efdf('0x826')][_0x42efdf('0x16f8')]=_0x42efdf('0x1906'),_0x32bcce[_0x42efdf('0x1691')]=_0x5a56f3['userProfile'][_0x42efdf('0x2447')](_0x32bcce[_0x42efdf('0x826')],_0x3ee0a1)[_0x42efdf('0x1af5')]);}function _0x2387ff(_0x45cf4f,_0x52b5a3){const _0x53c1eb=_0x57181a;_0x2af017[_0x53c1eb('0x28e2')]({'controller':_0x53c1eb('0x1747'),'controllerAs':'vm','templateUrl':_0x3c718a,'parent':angular[_0x53c1eb('0x1ce1')](_0x3ebc2f[_0x53c1eb('0x13aa')]),'targetEvent':_0x45cf4f,'clickOutsideToClose':!![],'locals':{'userProfile':_0x52b5a3,'userProfiles':_0x32bcce[_0x53c1eb('0x346')][_0x53c1eb('0x2319')],'license':_0x32bcce[_0x53c1eb('0x1d11')],'setting':_0x32bcce[_0x53c1eb('0x1aeb')],'crudPermissions':_0x32bcce['crudPermissions']}});}function _0x15228c(_0x401c5f){const _0x28d62c=_0x57181a;_0x5a56f3[_0x28d62c('0xdeb')]['delete']({'id':_0x401c5f['id']})[_0x28d62c('0x1af5')]['then'](function(){const _0xeeb372=_0x28d62c;_0x49cbdd()['remove'](_0x32bcce[_0xeeb372('0x346')][_0xeeb372('0x2319')],{'id':_0x401c5f['id']}),_0x32bcce[_0xeeb372('0x346')][_0xeeb372('0x335')]-=0x1,!_0x32bcce[_0xeeb372('0x346')]['rows'][_0xeeb372('0x1f73')]&&_0x32bcce[_0xeeb372('0x2404')](),_0x483bc2[_0xeeb372('0x130d')]({'title':_0x49cbdd()[_0xeeb372('0x1c98')](_0xeeb372('0x897'))+_0xeeb372('0x2673'),'msg':_0x401c5f['name']?_0x401c5f[_0xeeb372('0x2aa')]+_0xeeb372('0x149f'):''});})[_0x28d62c('0x16df')](function(_0xd70b8f){const _0x4d414e=_0x28d62c;if(_0xd70b8f['data']&&_0xd70b8f[_0x4d414e('0x1457')]['errors']&&_0xd70b8f[_0x4d414e('0x1457')][_0x4d414e('0x73e')][_0x4d414e('0x1f73')]){_0x32bcce[_0x4d414e('0x73e')]=_0xd70b8f[_0x4d414e('0x1457')][_0x4d414e('0x73e')]||[{'message':_0xd70b8f['toString'](),'type':_0x4d414e('0xe84')}];for(let _0x23c2f7=0x0;_0x23c2f7<_0xd70b8f[_0x4d414e('0x1457')][_0x4d414e('0x73e')][_0x4d414e('0x1f73')];_0x23c2f7++){_0x483bc2['error']({'title':_0xd70b8f[_0x4d414e('0x1457')]['errors'][_0x23c2f7][_0x4d414e('0x412')],'msg':_0xd70b8f[_0x4d414e('0x1457')][_0x4d414e('0x73e')][_0x23c2f7][_0x4d414e('0x1603')]});}}else _0x483bc2[_0x4d414e('0x1db9')]({'title':_0xd70b8f[_0x4d414e('0x11c5')]?'API:'+_0xd70b8f[_0x4d414e('0x11c5')]+_0x4d414e('0x16e4')+_0xd70b8f[_0x4d414e('0x1833')]:_0x4d414e('0xe84'),'msg':_0xd70b8f[_0x4d414e('0x1457')]?JSON[_0x4d414e('0x678')](_0xd70b8f[_0x4d414e('0x1457')][_0x4d414e('0x1603')]):_0xd70b8f[_0x4d414e('0x1603')]||_0xd70b8f[_0x4d414e('0x9b6')]()});});}function _0x8ed537(){const _0x188909=_0x57181a,_0x208f23=angular[_0x188909('0x14e5')](_0x32bcce[_0x188909('0x38b')]);return _0x32bcce[_0x188909('0x38b')]=[],_0x208f23;}function _0x196a69(_0x2a6be1){const _0x409255=_0x57181a,_0x304dad=_0x2af017[_0x409255('0x1121')]()['title'](_0x409255('0x1618'))[_0x409255('0x211f')](_0x409255('0xa53')+_0x32bcce[_0x409255('0x38b')][_0x409255('0x1f73')]+'\x20selected'+_0x409255('0xe9f'))[_0x409255('0x2095')](_0x409255('0x33e'))[_0x409255('0x104f')](_0x2a6be1)['ok']('OK')[_0x409255('0x1d47')]('CANCEL');_0x2af017[_0x409255('0x28e2')](_0x304dad)[_0x409255('0x17e7')](function(){const _0x23fe07=_0x409255;_0x32bcce[_0x23fe07('0x38b')][_0x23fe07('0xccd')](function(_0x553a82){_0x15228c(_0x553a82);}),_0x32bcce[_0x23fe07('0x38b')]=[];});}function _0x53fca5(){const _0x310d1d=_0x57181a;_0x32bcce[_0x310d1d('0x38b')]=[];}function _0x2b30e6(){const _0x4e321d=_0x57181a;_0x32bcce[_0x4e321d('0x38b')]=_0x32bcce[_0x4e321d('0x346')][_0x4e321d('0x2319')];}}const _0x1b4de1=_0x31125c;_0x55ac86[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x12ed'),'user','api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x55ac86(_0x13d542,_0x20d780,_0x57a74f,_0x18d62c,_0x56005d,_0x23e99c,_0x201e4b,_0x5330d6,_0x447a18,_0x1fd64c,_0x5c4c80,_0x380d82,_0x115fd9,_0x477af6){const _0x4fdb5f=_0x4376d8,_0x86f2b2=this;_0x86f2b2[_0x4fdb5f('0x197c')]=_0x5c4c80['getCurrentUser'](),_0x86f2b2['errors']=[],_0x86f2b2[_0x4fdb5f('0x1aeb')]=_0x115fd9,_0x86f2b2[_0x4fdb5f('0x1d11')]=_0x380d82,_0x86f2b2[_0x4fdb5f('0x103e')]=_0x477af6,_0x86f2b2[_0x4fdb5f('0x6ee')]={},_0x86f2b2[_0x4fdb5f('0x1572')]=_0x86f2b2[_0x4fdb5f('0x1aeb')]&&_0x86f2b2[_0x4fdb5f('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x86f2b2[_0x4fdb5f('0x24d3')]=_0x4fdb5f('0x1945'),_0x86f2b2[_0x4fdb5f('0x221e')]=angular[_0x4fdb5f('0x14e5')](_0x447a18),_0x86f2b2[_0x4fdb5f('0x12ed')]=_0x5330d6,_0x86f2b2[_0x4fdb5f('0xe96')]=![];!_0x86f2b2[_0x4fdb5f('0x221e')]&&(_0x86f2b2['user']={'role':_0x4fdb5f('0x221e'),'autointernal':!![],'context':_0x4fdb5f('0x2165')},_0x86f2b2[_0x4fdb5f('0x24d3')]=_0x4fdb5f('0x16da'),_0x86f2b2[_0x4fdb5f('0xe96')]=!![]);_0x86f2b2['addNewUser']=_0x54b502,_0x86f2b2['saveUser']=_0x99457b,_0x86f2b2[_0x4fdb5f('0x190e')]=_0xb301b,_0x86f2b2['getDateFromString']=_0x248f03,_0x86f2b2[_0x4fdb5f('0x136e')]=_0x37f489,_0x1fd64c[_0x4fdb5f('0xdeb')][_0x4fdb5f('0x1c53')]({'fields':_0x4fdb5f('0x12d2'),'sort':_0x4fdb5f('0x2aa')})[_0x4fdb5f('0x1af5')][_0x4fdb5f('0x17e7')](function(_0x31ebe5){const _0x2fbc26=_0x4fdb5f;_0x86f2b2[_0x2fbc26('0x346')]=_0x31ebe5['rows']||[];})[_0x4fdb5f('0x16df')](function(_0x1bc981){const _0x41620f=_0x4fdb5f;_0x201e4b[_0x41620f('0x1db9')]({'title':_0x1bc981[_0x41620f('0x11c5')]?_0x41620f('0x14f7')+_0x1bc981[_0x41620f('0x11c5')]+_0x41620f('0x16e4')+_0x1bc981[_0x41620f('0x1833')]:_0x41620f('0x3d0'),'msg':_0x1bc981[_0x41620f('0x1457')]?JSON[_0x41620f('0x678')](_0x1bc981[_0x41620f('0x1457')]):_0x1bc981[_0x41620f('0x9b6')]()});});function _0x54b502(){const _0x59b59a=_0x4fdb5f;_0x86f2b2['errors']=[],_0x1fd64c[_0x59b59a('0x221e')]['save'](_0x86f2b2[_0x59b59a('0x221e')])['$promise'][_0x59b59a('0x17e7')](function(_0x588393){const _0x27a35b=_0x59b59a;_0x86f2b2['users'][_0x27a35b('0x1893')](_0x588393[_0x27a35b('0x16b2')]()),_0x201e4b[_0x27a35b('0x130d')]({'title':_0x27a35b('0x1749'),'msg':_0x86f2b2[_0x27a35b('0x221e')][_0x27a35b('0x2aa')]?_0x86f2b2['user']['name']+_0x27a35b('0x15a'):''}),_0x37f489(_0x588393);})[_0x59b59a('0x16df')](function(_0x47b3a1){const _0x51d04d=_0x59b59a;if(_0x47b3a1[_0x51d04d('0x1457')]&&_0x47b3a1[_0x51d04d('0x1457')][_0x51d04d('0x73e')]&&_0x47b3a1['data'][_0x51d04d('0x73e')]['length']){_0x86f2b2[_0x51d04d('0x73e')]=_0x47b3a1['data'][_0x51d04d('0x73e')]||[{'message':_0x47b3a1[_0x51d04d('0x9b6')](),'type':'api.user.save'}];for(let _0xe87a02=0x0;_0xe87a02<_0x47b3a1[_0x51d04d('0x1457')][_0x51d04d('0x73e')][_0x51d04d('0x1f73')];_0xe87a02+=0x1){_0x201e4b[_0x51d04d('0x1db9')]({'title':_0x47b3a1['data'][_0x51d04d('0x73e')][_0xe87a02]['type'],'msg':_0x47b3a1[_0x51d04d('0x1457')][_0x51d04d('0x73e')][_0xe87a02][_0x51d04d('0x1603')]});}}else _0x201e4b['error']({'title':_0x47b3a1['status']?_0x51d04d('0x14f7')+_0x47b3a1[_0x51d04d('0x11c5')]+_0x51d04d('0x16e4')+_0x47b3a1[_0x51d04d('0x1833')]:_0x51d04d('0x131f'),'msg':_0x47b3a1[_0x51d04d('0x1457')]?JSON[_0x51d04d('0x678')](_0x47b3a1[_0x51d04d('0x1457')][_0x51d04d('0x1603')]):_0x47b3a1[_0x51d04d('0x9b6')]()});});}function _0x99457b(){const _0x1d951e=_0x4fdb5f;_0x86f2b2[_0x1d951e('0x73e')]=[],_0x1fd64c[_0x1d951e('0x221e')][_0x1d951e('0x27ba')]({'id':_0x86f2b2[_0x1d951e('0x221e')]['id']},_0x86f2b2[_0x1d951e('0x221e')])[_0x1d951e('0x1af5')][_0x1d951e('0x17e7')](function(_0x6f468d){const _0x22efcc=_0x1d951e,_0x50c623=_0x49cbdd()[_0x22efcc('0xe8e')](_0x86f2b2['users'],{'id':_0x6f468d['id']});_0x50c623&&_0x49cbdd()[_0x22efcc('0x1ced')](_0x50c623,_0x49cbdd()[_0x22efcc('0x230a')](_0x6f468d[_0x22efcc('0x16b2')](),_0x49cbdd()[_0x22efcc('0x1c0f')](_0x50c623))),_0x201e4b[_0x22efcc('0x130d')]({'title':_0x22efcc('0x2781'),'msg':_0x86f2b2[_0x22efcc('0x221e')][_0x22efcc('0x2aa')]?_0x86f2b2[_0x22efcc('0x221e')]['name']+_0x22efcc('0x15ca'):''}),_0x37f489(_0x6f468d);})[_0x1d951e('0x16df')](function(_0x5b554d){const _0x80c83b=_0x1d951e;if(_0x5b554d[_0x80c83b('0x1457')]&&_0x5b554d[_0x80c83b('0x1457')][_0x80c83b('0x73e')]&&_0x5b554d[_0x80c83b('0x1457')][_0x80c83b('0x73e')][_0x80c83b('0x1f73')]){_0x86f2b2[_0x80c83b('0x73e')]=_0x5b554d[_0x80c83b('0x1457')][_0x80c83b('0x73e')]||[{'message':_0x5b554d[_0x80c83b('0x9b6')](),'type':_0x80c83b('0xad3')}];for(let _0x2c6c43=0x0;_0x2c6c43<_0x5b554d[_0x80c83b('0x1457')][_0x80c83b('0x73e')]['length'];_0x2c6c43++){_0x201e4b[_0x80c83b('0x1db9')]({'title':_0x5b554d['data'][_0x80c83b('0x73e')][_0x2c6c43][_0x80c83b('0x412')],'msg':_0x5b554d[_0x80c83b('0x1457')]['errors'][_0x2c6c43][_0x80c83b('0x1603')]});}}else _0x201e4b[_0x80c83b('0x1db9')]({'title':_0x5b554d['status']?_0x80c83b('0x14f7')+_0x5b554d[_0x80c83b('0x11c5')]+'\x20-\x20'+_0x5b554d[_0x80c83b('0x1833')]:_0x80c83b('0xad3'),'msg':_0x5b554d[_0x80c83b('0x1457')]?JSON[_0x80c83b('0x678')](_0x5b554d[_0x80c83b('0x1457')]['message']):_0x5b554d[_0x80c83b('0x9b6')]()});});}function _0xb301b(_0x3cc415){const _0x35b378=_0x4fdb5f,_0x3c98e8=_0x5c4c80[_0x35b378('0x2831')]();if(_0x3c98e8['id']===_0x86f2b2[_0x35b378('0x221e')]['id'])return _0x201e4b[_0x35b378('0x1db9')]({'title':'User\x20not\x20deleted!','msg':_0x35b378('0x1370')});_0x86f2b2['errors']=[];const _0xd8c25=_0x18d62c[_0x35b378('0x1121')]()[_0x35b378('0x24d3')](_0x35b378('0x530'))[_0x35b378('0xd5')](_0x35b378('0x571'))[_0x35b378('0x2095')]('Delete\x20User')['ok'](_0x35b378('0x304'))[_0x35b378('0x1d47')](_0x35b378('0x1b70'))[_0x35b378('0x104f')](_0x3cc415);_0x18d62c[_0x35b378('0x28e2')](_0xd8c25)[_0x35b378('0x17e7')](function(){const _0x2b086c=_0x35b378;_0x1fd64c[_0x2b086c('0x221e')][_0x2b086c('0x1da6')]({'id':_0x86f2b2[_0x2b086c('0x221e')]['id']})[_0x2b086c('0x1af5')]['then'](function(){const _0x4f440e=_0x2b086c;_0x49cbdd()[_0x4f440e('0x5f3')](_0x86f2b2[_0x4f440e('0x12ed')],{'id':_0x86f2b2['user']['id']}),_0x201e4b['success']({'title':_0x4f440e('0x5b5'),'msg':(_0x86f2b2[_0x4f440e('0x221e')][_0x4f440e('0x2aa')]||_0x4f440e('0x221e'))+_0x4f440e('0x149f')}),_0x37f489(_0x86f2b2[_0x4f440e('0x221e')]);})[_0x2b086c('0x16df')](function(_0xf06d5d){const _0x281e7f=_0x2b086c;if(_0xf06d5d[_0x281e7f('0x1457')]&&_0xf06d5d[_0x281e7f('0x1457')]['errors']&&_0xf06d5d[_0x281e7f('0x1457')][_0x281e7f('0x73e')][_0x281e7f('0x1f73')]){_0x86f2b2['errors']=_0xf06d5d['data'][_0x281e7f('0x73e')]||[{'message':_0xf06d5d['toString'](),'type':_0x281e7f('0x1e0f')}];for(let _0x1eccc8=0x0;_0x1eccc8<_0xf06d5d[_0x281e7f('0x1457')][_0x281e7f('0x73e')][_0x281e7f('0x1f73')];_0x1eccc8++){_0x201e4b[_0x281e7f('0x1db9')]({'title':_0xf06d5d[_0x281e7f('0x1457')][_0x281e7f('0x73e')][_0x1eccc8]['type'],'msg':_0xf06d5d[_0x281e7f('0x1457')][_0x281e7f('0x73e')][_0x1eccc8][_0x281e7f('0x1603')]});}}else _0x201e4b[_0x281e7f('0x1db9')]({'title':_0xf06d5d['status']?_0x281e7f('0x14f7')+_0xf06d5d[_0x281e7f('0x11c5')]+_0x281e7f('0x16e4')+_0xf06d5d['statusText']:_0x281e7f('0x1e0f'),'msg':_0xf06d5d[_0x281e7f('0x1457')]?JSON[_0x281e7f('0x678')](_0xf06d5d[_0x281e7f('0x1457')][_0x281e7f('0x1603')]):_0xf06d5d[_0x281e7f('0x1603')]||_0xf06d5d[_0x281e7f('0x9b6')]()});});},function(){});}function _0x248f03(_0x39fca5){return _0x39fca5===null?undefined:new Date(_0x39fca5);}function _0x37f489(_0x531751){const _0x13dcbc=_0x4fdb5f;_0x18d62c[_0x13dcbc('0x212a')](_0x531751);}}const _0x32a6dc=_0x55ac86;_0x534af1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x221e'),_0x4376d8('0x1885')];function _0x534af1(_0x3fac28,_0x525792,_0x59f634,_0x3a7f04,_0x27d175){const _0x67288e=_0x4376d8,_0xffd712=this;_0xffd712[_0x67288e('0x197c')]=_0x27d175[_0x67288e('0x2831')](),_0xffd712[_0x67288e('0x73e')]=[],_0xffd712[_0x67288e('0x221e')]=_0x3a7f04,_0xffd712['generateApiKey']=_0x448718,_0xffd712[_0x67288e('0x240e')]=_0xd54f4e,_0xffd712['closeDialog']=_0x384356;function _0x448718(){const _0x1bdd76=_0x67288e;_0xffd712[_0x1bdd76('0x73e')]=[],_0x59f634['user'][_0x1bdd76('0x242b')]({'id':_0xffd712['user']['id']})[_0x1bdd76('0x1af5')][_0x1bdd76('0x17e7')](function(_0x57a542){const _0x1f61fe=_0x1bdd76;_0xffd712[_0x1f61fe('0x221e')][_0x1f61fe('0x25cb')]=_0x57a542[_0x1f61fe('0xd5f')]||'N/A',_0x525792['success']({'title':'User\x20API\x20key\x20updated!'}),_0x384356();})['catch'](function(_0x58299e){const _0x4739d0=_0x1bdd76;_0x525792['error']({'title':_0x58299e[_0x4739d0('0x11c5')]?_0x4739d0('0x14f7')+_0x58299e[_0x4739d0('0x11c5')]+'\x20-\x20'+_0x58299e['statusText']:_0x4739d0('0x24be'),'msg':_0x58299e['data']?JSON[_0x4739d0('0x678')](_0x58299e[_0x4739d0('0x1457')]['message']):_0x58299e[_0x4739d0('0x9b6')]()}),_0xffd712[_0x4739d0('0x73e')]=_0x58299e[_0x4739d0('0x1457')][_0x4739d0('0x73e')]||[{'message':_0x58299e[_0x4739d0('0x9b6')](),'type':'api.user.createApiKey'}];});}function _0xd54f4e(){const _0x75c287=_0x67288e;_0xffd712['errors']=[],_0x59f634[_0x75c287('0x221e')][_0x75c287('0x240e')]({'id':_0xffd712['user']['id']})[_0x75c287('0x1af5')][_0x75c287('0x17e7')](function(){const _0x520906=_0x75c287;_0xffd712['user'][_0x520906('0x25cb')]=_0x520906('0xdd0'),_0x525792[_0x520906('0x130d')]({'title':_0x520906('0xcf2')}),_0x384356();})[_0x75c287('0x16df')](function(_0x139433){const _0x1d90c5=_0x75c287;_0x525792[_0x1d90c5('0x1db9')]({'title':_0x139433[_0x1d90c5('0x11c5')]?_0x1d90c5('0x14f7')+_0x139433[_0x1d90c5('0x11c5')]+_0x1d90c5('0x16e4')+_0x139433[_0x1d90c5('0x1833')]:_0x1d90c5('0x2785'),'msg':_0x139433[_0x1d90c5('0x1457')]?JSON[_0x1d90c5('0x678')](_0x139433[_0x1d90c5('0x1457')][_0x1d90c5('0x1603')]):_0x139433['toString']()}),_0xffd712[_0x1d90c5('0x73e')]=_0x139433['data'][_0x1d90c5('0x73e')]||[{'message':_0x139433[_0x1d90c5('0x9b6')](),'type':_0x1d90c5('0x2785')}];});}function _0x384356(){_0x3fac28['hide']();}}const _0x461a31=_0x534af1;_0xc5554c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x108a')];function _0xc5554c(_0xcb6792,_0xb1c3a4){const _0x43ec1a=_0x4376d8,_0x2d02b8=this,_0x56200b=0x8,_0xdffe27=_0x56200b*0x400*0x400;_0x2d02b8[_0x43ec1a('0x221e')]={},_0x2d02b8[_0x43ec1a('0x103e')],_0x2d02b8['ngFlowOptions']={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0xdffe27,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2d02b8[_0x43ec1a('0xbdf')]={'flow':{}},_0x2d02b8[_0x43ec1a('0x1b74')]=![],_0x2d02b8['fileAdded']=_0x403bc4,_0x2d02b8[_0x43ec1a('0x624')]=_0x4813af,_0x2d02b8['fileSuccess']=_0x4e9af1,_0x2d02b8['init']=_0xb01abd;function _0xb01abd(_0x481628,_0x3ad2c7){const _0x5d0d43=_0x43ec1a;_0x2d02b8[_0x5d0d43('0x221e')]=angular['copy'](_0x481628),_0x2d02b8[_0x5d0d43('0x103e')]=typeof _0x3ad2c7!==_0x5d0d43('0xfad')?_0x3ad2c7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2d02b8[_0x5d0d43('0x1713')][_0x5d0d43('0x8cf')]=_0x5d0d43('0x2750')+_0x2d02b8[_0x5d0d43('0x221e')]['id']+_0x5d0d43('0x8a4'),_0x2d02b8[_0x5d0d43('0x221e')][_0x5d0d43('0x1563')]=[];}function _0x403bc4(_0x500bf5){const _0x38d6b4=_0x43ec1a,_0x3ffc0c=['png',_0x38d6b4('0x5ef')];if(!_0x49cbdd()[_0x38d6b4('0x24b0')](_0x3ffc0c,_0x500bf5[_0x38d6b4('0x11b0')]()))return _0xb1c3a4['error']({'title':_0x38d6b4('0xf3d')+_0x500bf5['getExtension'](),'msg':_0x38d6b4('0x836')+_0x3ffc0c[_0x38d6b4('0x1eba')]()}),![];if(_0x500bf5['size']>_0xdffe27)return _0xb1c3a4[_0x38d6b4('0x1db9')]({'title':_0x38d6b4('0x586'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x56200b+'MB'}),![];const _0xae2dc1={'id':_0x500bf5[_0x38d6b4('0x22b5')],'file':_0x500bf5,'type':'uploading'};return _0x2d02b8[_0x38d6b4('0x221e')][_0x38d6b4('0x1563')][_0x38d6b4('0x1893')](_0xae2dc1),!![];}function _0x4813af(){const _0x5456c4=_0x43ec1a;_0x2d02b8[_0x5456c4('0xbdf')]['flow'][_0x5456c4('0x1771')][_0x5456c4('0x10b')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x5456c4('0x28e8')+_0xcb6792[_0x5456c4('0x1c53')]('motion.token')},_0x2d02b8[_0x5456c4('0xbdf')]['flow'][_0x5456c4('0x624')]();}function _0x4e9af1(_0x643672){const _0x544cde=_0x43ec1a;angular[_0x544cde('0xccd')](_0x2d02b8['user'][_0x544cde('0x1563')],function(_0x42b3b0){const _0x40200e=_0x544cde;if(_0x42b3b0['id']===_0x643672[_0x40200e('0x22b5')]){const _0x5740c6=new FileReader();_0x5740c6['readAsDataURL'](_0x42b3b0[_0x40200e('0xc89')]['file']),_0x5740c6[_0x40200e('0x2a1')]=function(_0x393a6b){const _0x5890a4=_0x40200e;_0x42b3b0[_0x5890a4('0x101e')]=_0x393a6b[_0x5890a4('0x8cf')][_0x5890a4('0x2284')];},_0x42b3b0[_0x40200e('0x412')]=_0x40200e('0x22ad');}});}}const _0x585d2b=_0xc5554c;_0x42dabb['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'user','setting',_0x4376d8('0x1885')];function _0x42dabb(_0x50b999,_0x48cc96,_0xc36e1b,_0x103fda,_0x132362,_0x1d34b2,_0x564327){const _0x2824e2=_0x4376d8,_0x18d2c8=this;_0x18d2c8[_0x2824e2('0x197c')]=_0x564327[_0x2824e2('0x2831')](),_0x18d2c8[_0x2824e2('0x73e')]=[],_0x18d2c8[_0x2824e2('0x1aeb')]=_0x1d34b2,_0x18d2c8[_0x2824e2('0x1572')]=_0x18d2c8['setting'][_0x2824e2('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x18d2c8[_0x2824e2('0x221e')]=_0x132362,_0x18d2c8[_0x2824e2('0xb62')]='',_0x18d2c8[_0x2824e2('0xf2d')]='',_0x18d2c8[_0x2824e2('0x838')]=_0x2eb20d,_0x18d2c8[_0x2824e2('0x136e')]=_0x10f372,_0x50b999[_0x2824e2('0x620')](_0x2824e2('0x1a37'),function(_0x1df2c5){const _0x1472f3=_0x2824e2;!_0x49cbdd()[_0x1472f3('0x390')](_0x18d2c8[_0x1472f3('0xf2d')])&&(_0x1df2c5===_0x18d2c8[_0x1472f3('0xf2d')]?_0x50b999['userForm'][_0x1472f3('0xb62')][_0x1472f3('0x2663')](_0x1472f3('0x1b25'),![]):_0x50b999['userForm']['password']['$setValidity'](_0x1472f3('0x1b25'),!![]));});function _0x2eb20d(){const _0x2985a8=_0x2824e2;_0x18d2c8[_0x2985a8('0x73e')]=[];const _0x3fd15c={'id':_0x18d2c8[_0x2985a8('0x221e')]['id'],'newPassword':_0x18d2c8[_0x2985a8('0xb62')]};_0x18d2c8[_0x2985a8('0x197c')]['id']==_0x18d2c8['user']['id']&&(_0x3fd15c[_0x2985a8('0xf2d')]=_0x18d2c8['oldPassword']),_0x103fda[_0x2985a8('0x221e')][_0x2985a8('0x14d7')](_0x3fd15c)[_0x2985a8('0x1af5')][_0x2985a8('0x17e7')](function(){const _0x477b52=_0x2985a8;_0xc36e1b[_0x477b52('0x130d')]({'title':_0x477b52('0x1ddc')}),_0x10f372();})[_0x2985a8('0x16df')](function(_0xd7d96a){const _0x58a8bf=_0x2985a8;_0xc36e1b['error']({'title':_0xd7d96a[_0x58a8bf('0x11c5')]?_0x58a8bf('0x14f7')+_0xd7d96a[_0x58a8bf('0x11c5')]+'\x20-\x20'+_0xd7d96a['statusText']:_0x58a8bf('0x131f'),'msg':_0xd7d96a[_0x58a8bf('0x1457')]?JSON['stringify'](_0xd7d96a[_0x58a8bf('0x1457')][_0x58a8bf('0x1603')]):_0xd7d96a[_0x58a8bf('0x9b6')]()}),_0x18d2c8['errors']=_0xd7d96a['data'][_0x58a8bf('0x73e')]||[{'message':_0xd7d96a[_0x58a8bf('0x9b6')](),'type':_0x58a8bf('0x8eb')}];});}function _0x10f372(){const _0x2a8a30=_0x2824e2;_0x48cc96[_0x2a8a30('0x212a')]();}}const _0x11b0dc=_0x42dabb,_0x142640=_0x4cf2bc['p']+_0x4376d8('0x1297'),_0x165340=_0x4cf2bc['p']+_0x4376d8('0x1385');_0x16362e['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x221e'),_0x4376d8('0x383')];function _0x16362e(_0x17cb50,_0x3289d1,_0x301379,_0x4a093c,_0x50fd03,_0x48302a,_0x401b2e,_0x5cb555,_0x3199e2,_0x53d905,_0x5f26b7,_0x3d1d89){const _0x30b95c=_0x4376d8,_0x201cec=this;_0x201cec['currentUser']=_0x53d905['getCurrentUser'](),_0x201cec['license']=_0x48302a,_0x201cec[_0x30b95c('0x1aeb')]=_0x401b2e,_0x201cec[_0x30b95c('0x1572')]=_0x201cec[_0x30b95c('0x1aeb')][_0x30b95c('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x201cec[_0x30b95c('0xaed')]=_0x3289d1[_0x30b95c('0x14fe')]()+_0x30b95c('0x14')+_0x3289d1[_0x30b95c('0x108')](),_0x201cec[_0x30b95c('0x221e')]=_0x5f26b7||_0x17cb50[_0x30b95c('0x16fb')]['user']||{},_0x201cec[_0x30b95c('0x383')]=_0x3d1d89&&_0x3d1d89[_0x30b95c('0x335')]==0x1?_0x3d1d89[_0x30b95c('0x2319')][0x0]:null,_0x201cec['crudPermissions']=_0x53d905[_0x30b95c('0x17a9')](_0x201cec[_0x30b95c('0x383')]?_0x201cec[_0x30b95c('0x383')][_0x30b95c('0x103e')]:null),_0x201cec['hasModulePermissions']={},_0x201cec[_0x30b95c('0xde7')]=_0x17cb50[_0x30b95c('0x16fb')][_0x30b95c('0x1523')]||0x0,_0x201cec[_0x30b95c('0x16bf')]=_0x49a0f0,_0x201cec['changepassworddialog']=_0x4831ad,_0x201cec['alert']=_0x3199e2[_0x30b95c('0x1178')],_0x201cec['gotoUsers']=_0x47c1b0,_0x201cec[_0x30b95c('0x21f7')]=_0x280ccd,_0x5cb555[_0x30b95c('0xc76')]['get']({'fields':'id,name','sort':_0x30b95c('0x2aa')})['$promise']['then'](function(_0x418e74){const _0x8f0bfa=_0x30b95c;_0x201cec[_0x8f0bfa('0xfb3')]=_0x418e74['rows']||[];})[_0x30b95c('0x16df')](function(_0x596b38){const _0x42db82=_0x30b95c;_0x3199e2[_0x42db82('0x1db9')]({'title':_0x596b38[_0x42db82('0x11c5')]?_0x42db82('0x14f7')+_0x596b38[_0x42db82('0x11c5')]+'\x20-\x20'+_0x596b38[_0x42db82('0x1833')]:'SYSTEM:GET_CONTEXTS','msg':_0x596b38[_0x42db82('0x1457')]?JSON[_0x42db82('0x678')](_0x596b38[_0x42db82('0x1457')]):_0x596b38[_0x42db82('0x9b6')]()});}),_0x5cb555['userProfile'][_0x30b95c('0x1c53')]({'fields':_0x30b95c('0x12d2'),'sort':_0x30b95c('0x2aa')})['$promise'][_0x30b95c('0x17e7')](function(_0x4ac199){const _0xfc5da5=_0x30b95c;_0x201cec[_0xfc5da5('0x346')]=_0x4ac199[_0xfc5da5('0x2319')]||[];})['catch'](function(_0x345df3){const _0xb938dd=_0x30b95c;_0x3199e2[_0xb938dd('0x1db9')]({'title':_0x345df3[_0xb938dd('0x11c5')]?_0xb938dd('0x14f7')+_0x345df3[_0xb938dd('0x11c5')]+'\x20-\x20'+_0x345df3['statusText']:_0xb938dd('0x3d0'),'msg':_0x345df3['data']?JSON[_0xb938dd('0x678')](_0x345df3[_0xb938dd('0x1457')]):_0x345df3[_0xb938dd('0x9b6')]()});}),_0x5cb555[_0x30b95c('0x221e')][_0x30b95c('0x2813')]({'id':_0x201cec['user']['id']})[_0x30b95c('0x1af5')]['then'](function(_0x4ecd7a){const _0xb6f351=_0x30b95c;_0x201cec[_0xb6f351('0x221e')][_0xb6f351('0x25cb')]=_0x4ecd7a['api_key']?_0x4ecd7a[_0xb6f351('0xd5f')]:'N/A';})[_0x30b95c('0x16df')](function(_0x430094){const _0x526d1d=_0x30b95c;_0x3199e2[_0x526d1d('0x1db9')]({'title':_0x430094[_0x526d1d('0x11c5')]?_0x526d1d('0x14f7')+_0x430094[_0x526d1d('0x11c5')]+_0x526d1d('0x16e4')+_0x430094[_0x526d1d('0x1833')]:_0x526d1d('0x235'),'msg':_0x430094[_0x526d1d('0x1457')]?JSON[_0x526d1d('0x678')](_0x430094['data']):_0x430094['toString']()});});function _0x49a0f0(_0x1b3b1d,_0x32be55){const _0x5c3964=_0x30b95c;_0x301379['show']({'controller':_0x5c3964('0x88f'),'controllerAs':'vm','templateUrl':_0x142640,'parent':angular[_0x5c3964('0x1ce1')](_0x4a093c[_0x5c3964('0x13aa')]),'targetEvent':_0x32be55,'clickOutsideToClose':!![],'locals':{'user':_0x1b3b1d,'users':_0x201cec['users']?_0x201cec['users'][_0x5c3964('0x2319')]:[],'crudPermissions':_0x201cec['crudPermissions']}});}function _0x4831ad(_0x1c81c6,_0x52acd6){const _0xc734ae=_0x30b95c;_0x301379['show']({'controller':_0xc734ae('0x5f9'),'controllerAs':'vm','templateUrl':_0x165340,'parent':angular[_0xc734ae('0x1ce1')](_0x4a093c['body']),'targetEvent':_0x52acd6,'clickOutsideToClose':!![],'locals':{'user':_0x1c81c6,'setting':_0x401b2e,'users':_0x201cec[_0xc734ae('0x12ed')]?_0x201cec[_0xc734ae('0x12ed')][_0xc734ae('0x2319')]:[],'crudPermissions':_0x201cec[_0xc734ae('0x103e')]}});}function _0x47c1b0(){const _0x36d951=_0x30b95c;_0x17cb50['go'](_0x36d951('0x908'),{},{'reload':'app.staff.users'});}function _0x280ccd(){const _0x31f470=_0x30b95c;_0x201cec[_0x31f470('0x221e')]=_0x49cbdd()[_0x31f470('0x15c3')](_0x201cec[_0x31f470('0x221e')],'userpic'),_0x5cb555['user'][_0x31f470('0x27ba')]({'id':_0x201cec['user']['id']},_0x201cec[_0x31f470('0x221e')])[_0x31f470('0x1af5')][_0x31f470('0x17e7')](function(){const _0x109a5e=_0x31f470;_0x3199e2['success']({'title':_0x109a5e('0x1a13'),'msg':_0x201cec[_0x109a5e('0x221e')][_0x109a5e('0x2aa')]?_0x201cec['user'][_0x109a5e('0x2aa')]+_0x109a5e('0x12b0'):''});})[_0x31f470('0x16df')](function(_0x582aef){const _0x5d9177=_0x31f470;_0x3199e2['error']({'title':_0x582aef[_0x5d9177('0x11c5')]?_0x5d9177('0x14f7')+_0x582aef[_0x5d9177('0x11c5')]+_0x5d9177('0x16e4')+_0x582aef[_0x5d9177('0x1833')]:_0x5d9177('0x99b'),'msg':_0x582aef[_0x5d9177('0x1457')]?JSON['stringify'](_0x582aef[_0x5d9177('0x1457')]):_0x582aef[_0x5d9177('0x9b6')]()});});}}const _0x5234cb=_0x16362e,_0x47f769=_0x4cf2bc['p']+_0x4376d8('0x862');_0x262076[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$translate',_0x4376d8('0x12ed'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x262076(_0x1e76a3,_0x796e6a,_0x433406,_0x59ccd1,_0xe815fe,_0x1150fb,_0x3d19df,_0xde2bf8,_0x45e2c9,_0x27952e,_0x453212,_0x2e8810,_0x2edbca,_0x42cd99,_0x1f8310,_0xbb0109,_0x1ba974){const _0x438f19=_0x4376d8,_0x205304=this;_0x205304[_0x438f19('0x1d11')]=_0xbb0109,_0x205304[_0x438f19('0x1aeb')]=_0x1ba974,_0x205304[_0x438f19('0x197c')]=_0x1f8310['getCurrentUser'](),_0x205304[_0x438f19('0x12ed')]=_0x45e2c9||{'count':0x0,'rows':[]},_0x205304[_0x438f19('0xdeb')]=_0x27952e,_0x205304[_0x438f19('0x383')]=_0x453212&&_0x453212[_0x438f19('0x335')]==0x1?_0x453212[_0x438f19('0x2319')][0x0]:null,_0x205304[_0x438f19('0x103e')]=_0x1f8310['parseCrudPermissions'](_0x205304['userProfileSection']?_0x205304[_0x438f19('0x383')][_0x438f19('0x103e')]:null),_0x205304[_0x438f19('0x23c3')]=_0x438f19('0x12ed'),_0x205304[_0x438f19('0x26a1')]='',_0x205304[_0x438f19('0x24e1')]=null,_0x205304[_0x438f19('0xa74')]=[],_0x205304['query']={'fields':_0x438f19('0xd9e'),'role':_0x438f19('0x512'),'sort':_0x438f19('0x1ac6'),'limit':0xa,'page':0x1},_0x205304['arrayrole']=_0x49cbdd()[_0x438f19('0x8de')]([{'option':'Admin','value':_0x438f19('0x969')},{'option':_0x438f19('0x24fd'),'value':_0x438f19('0x4')}],function(_0x5decb1){const _0x202ecb=_0x438f19;return _0x49cbdd()[_0x202ecb('0x737')](_0x5decb1[_0x202ecb('0x175b')],new RegExp('\x27','g'),'');}),_0x205304[_0x438f19('0xc9')]=_0x49cbdd()[_0x438f19('0x8de')]([{'option':_0x438f19('0x22c'),'value':_0x438f19('0xc15')},{'option':_0x438f19('0x10a4'),'value':_0x438f19('0x26e9')},{'option':'ws','value':_0x438f19('0x1d05')},{'option':'wss','value':_0x438f19('0x1287')},{'option':_0x438f19('0x2e2'),'value':_0x438f19('0x175d')}],function(_0x3b3536){const _0xe433dc=_0x438f19;return _0x49cbdd()[_0xe433dc('0x737')](_0x3b3536[_0xe433dc('0x175b')],new RegExp('\x27','g'),'');}),_0x205304[_0x438f19('0x311')]=_0x49cbdd()[_0x438f19('0x8de')]([{'option':_0x438f19('0x222f'),'value':_0x438f19('0xf77')},{'option':_0x438f19('0x549'),'value':_0x438f19('0x1010')},{'option':_0x438f19('0x128f'),'value':'\x27yes\x27'},{'option':'no','value':_0x438f19('0x2471')},{'option':_0x438f19('0x360'),'value':_0x438f19('0xc4d')},{'option':'route','value':_0x438f19('0x210b')}],function(_0x263227){const _0x343729=_0x438f19;return _0x49cbdd()[_0x343729('0x737')](_0x263227['value'],new RegExp('\x27','g'),'');}),_0x205304['arrayallow']=_0x49cbdd()['keyBy']([{'option':'ulaw','value':_0x438f19('0xe8d')},{'option':_0x438f19('0xaee'),'value':_0x438f19('0x273')},{'option':_0x438f19('0xbc3'),'value':_0x438f19('0x24ec')},{'option':_0x438f19('0x9f8'),'value':_0x438f19('0x3aa')},{'option':_0x438f19('0x1116'),'value':_0x438f19('0x26c9')},{'option':_0x438f19('0x2587'),'value':_0x438f19('0x14ab')},{'option':_0x438f19('0xafe'),'value':_0x438f19('0x8be')}],function(_0x201fa0){const _0x5afa7b=_0x438f19;return _0x49cbdd()[_0x5afa7b('0x737')](_0x201fa0['value'],new RegExp('\x27','g'),'');}),_0x205304[_0x438f19('0x1570')]=_0x49cbdd()[_0x438f19('0x8de')]([{'option':_0x438f19('0x8e3'),'value':_0x438f19('0xd7b')},{'option':'No','value':'\x27no\x27'},{'option':_0x438f19('0x768'),'value':_0x438f19('0x1632')}],function(_0x4cc1a9){const _0x1ec55c=_0x438f19;return _0x49cbdd()[_0x1ec55c('0x737')](_0x4cc1a9[_0x1ec55c('0x175b')],new RegExp('\x27','g'),'');}),_0x205304[_0x438f19('0xcd4')]=_0xe04e14,_0x205304[_0x438f19('0xbf4')]=_0x1b08ae,_0x205304[_0x438f19('0x130d')]=_0x8bb7a2,_0x205304['getUsers']=_0x32cb20,_0x205304[_0x438f19('0x1795')]=_0x2751f0,_0x205304[_0x438f19('0x190e')]=_0x2b4b73,_0x205304[_0x438f19('0x2126')]=_0xc74543,_0x205304[_0x438f19('0x9db')]=_0x3b348e,_0x205304['deselectUsers']=_0x428a5c,_0x205304['selectAllUsers']=_0x546ffb,_0x2e8810['userProfile']['get']({'fields':_0x438f19('0x12d2'),'sort':_0x438f19('0x2aa')})[_0x438f19('0x1af5')][_0x438f19('0x17e7')](function(_0x42bcd6){const _0x508935=_0x438f19;_0x205304[_0x508935('0x346')]=_0x42bcd6[_0x508935('0x2319')]||[];})[_0x438f19('0x16df')](function(_0x13cb41){const _0x5644eb=_0x438f19;_0x42cd99[_0x5644eb('0x1db9')]({'title':_0x13cb41[_0x5644eb('0x11c5')]?'API:'+_0x13cb41['status']+_0x5644eb('0x16e4')+_0x13cb41[_0x5644eb('0x1833')]:_0x5644eb('0x3d0'),'msg':_0x13cb41[_0x5644eb('0x1457')]?JSON['stringify'](_0x13cb41[_0x5644eb('0x1457')]):_0x13cb41[_0x5644eb('0x9b6')]()});});function _0xe04e14(_0x1e01fc){const _0x56f767=_0x438f19;_0x433406['go'](_0x56f767('0xc9f'),{'id':_0x1e01fc['id'],'user':_0x1e01fc,'crudPermissions':_0x205304['crudPermissions']});}function _0x1b08ae(_0x2e49b2,_0x56ef5e){const _0x1914df=_0x438f19,_0x468464=_0xe815fe[_0x1914df('0x1121')]()[_0x1914df('0x24d3')](_0x1914df('0x5e1')+_0x49cbdd()[_0x1914df('0x1c98')](_0x1914df('0x221e'))+'?')[_0x1914df('0x211f')](_0x1914df('0xa53')+(_0x2e49b2[_0x1914df('0x2aa')]||'user')+_0x1914df('0x1d23')+_0x1914df('0xe9f'))[_0x1914df('0x2095')]('delete\x20user')[_0x1914df('0x104f')](_0x56ef5e)['ok']('OK')[_0x1914df('0x1d47')](_0x1914df('0x28a0'));_0xe815fe[_0x1914df('0x28e2')](_0x468464)['then'](function(){_0x2b4b73(_0x2e49b2);},function(){const _0x372bb7=_0x1914df;console['log'](_0x372bb7('0x28a0'));});}let _0x3d097f=!![],_0x15e55c=0x1;_0x1e76a3['$watch'](_0x438f19('0x3ed'),function(_0x39522c,_0x3dd125){const _0xf6a416=_0x438f19;_0x3d097f?_0x3d19df(function(){_0x3d097f=![];}):(!_0x3dd125&&(_0x15e55c=_0x205304[_0xf6a416('0x826')][_0xf6a416('0x115a')]),_0x39522c!==_0x3dd125&&(_0x205304[_0xf6a416('0x826')]['page']=0x1),!_0x39522c&&(_0x205304[_0xf6a416('0x826')]['page']=_0x15e55c),_0x205304[_0xf6a416('0x4d2')]());});function _0x8bb7a2(_0x49ba91){const _0x5c7ca7=_0x438f19;_0x205304[_0x5c7ca7('0x12ed')]=_0x49ba91||{'count':0x0,'rows':[]};}function _0x32cb20(){const _0x5d5e31=_0x438f19;_0x205304[_0x5d5e31('0x826')][_0x5d5e31('0xf19')]=(_0x205304[_0x5d5e31('0x826')][_0x5d5e31('0x115a')]-0x1)*_0x205304[_0x5d5e31('0x826')][_0x5d5e31('0x193b')],_0x1f8310[_0x5d5e31('0x1ba2')]('admin')?_0x205304[_0x5d5e31('0x1691')]=_0x2e8810[_0x5d5e31('0x221e')][_0x5d5e31('0x1c53')](_0x205304[_0x5d5e31('0x826')],_0x8bb7a2)[_0x5d5e31('0x1af5')]:(_0x205304[_0x5d5e31('0x826')]['id']=_0x205304[_0x5d5e31('0xdeb')]['id'],_0x205304[_0x5d5e31('0x826')]['section']='Users',_0x205304[_0x5d5e31('0x1691')]=_0x2e8810[_0x5d5e31('0xdeb')][_0x5d5e31('0x2447')](_0x205304[_0x5d5e31('0x826')],_0x8bb7a2)['$promise']);}function _0x2751f0(_0x1289fe,_0x395329){const _0x40b5bd=_0x438f19;_0xe815fe[_0x40b5bd('0x28e2')]({'controller':_0x40b5bd('0x574'),'controllerAs':'vm','templateUrl':_0x47f769,'parent':angular['element'](_0x1150fb[_0x40b5bd('0x13aa')]),'targetEvent':_0x1289fe,'clickOutsideToClose':!![],'locals':{'user':_0x395329,'users':_0x205304[_0x40b5bd('0x12ed')]['rows'],'license':_0x205304['license'],'setting':_0x205304['setting'],'crudPermissions':_0x205304[_0x40b5bd('0x103e')]}});}function _0x2b4b73(_0x48f088){const _0x5376f8=_0x438f19;_0x2e8810[_0x5376f8('0x221e')]['delete']({'id':_0x48f088['id']})[_0x5376f8('0x1af5')][_0x5376f8('0x17e7')](function(){const _0xb96d56=_0x5376f8;_0x49cbdd()[_0xb96d56('0x5f3')](_0x205304[_0xb96d56('0x12ed')][_0xb96d56('0x2319')],{'id':_0x48f088['id']}),_0x205304[_0xb96d56('0x12ed')][_0xb96d56('0x335')]-=0x1,!_0x205304[_0xb96d56('0x12ed')]['rows']['length']&&_0x205304[_0xb96d56('0x4d2')](),_0x42cd99['success']({'title':_0x49cbdd()['startCase'](_0xb96d56('0x24fd'))+_0xb96d56('0x2673'),'msg':_0x48f088[_0xb96d56('0x2aa')]?_0x48f088[_0xb96d56('0x2aa')]+_0xb96d56('0x149f'):''});})[_0x5376f8('0x16df')](function(_0x54845b){const _0x3be493=_0x5376f8;if(_0x54845b[_0x3be493('0x1457')]&&_0x54845b['data'][_0x3be493('0x73e')]&&_0x54845b['data'][_0x3be493('0x73e')][_0x3be493('0x1f73')]){_0x205304['errors']=_0x54845b[_0x3be493('0x1457')][_0x3be493('0x73e')]||[{'message':_0x54845b[_0x3be493('0x9b6')](),'type':_0x3be493('0x197f')}];for(let _0x1371e9=0x0;_0x1371e9<_0x54845b[_0x3be493('0x1457')][_0x3be493('0x73e')]['length'];_0x1371e9++){_0x42cd99['error']({'title':_0x54845b['data'][_0x3be493('0x73e')][_0x1371e9]['type'],'msg':_0x54845b[_0x3be493('0x1457')][_0x3be493('0x73e')][_0x1371e9][_0x3be493('0x1603')]});}}else _0x42cd99[_0x3be493('0x1db9')]({'title':_0x54845b[_0x3be493('0x11c5')]?_0x3be493('0x14f7')+_0x54845b['status']+'\x20-\x20'+_0x54845b[_0x3be493('0x1833')]:'SYSTEM:DELETEuser','msg':_0x54845b['data']?JSON['stringify'](_0x54845b[_0x3be493('0x1457')][_0x3be493('0x1603')]):_0x54845b[_0x3be493('0x1603')]||_0x54845b[_0x3be493('0x9b6')]()});});}function _0xc74543(){const _0x4bda15=_0x438f19,_0x1bdc63=angular[_0x4bda15('0x14e5')](_0x205304[_0x4bda15('0xa74')]);return _0x205304[_0x4bda15('0xa74')]=[],_0x1bdc63;}function _0x3b348e(_0x2f36ef){const _0x590d82=_0x438f19,_0x3f4c1c=_0xe815fe[_0x590d82('0x1121')]()[_0x590d82('0x24d3')](_0x590d82('0x1add'))['htmlContent'](_0x590d82('0xa53')+_0x205304[_0x590d82('0xa74')][_0x590d82('0x1f73')]+_0x590d82('0x145a')+'\x20will\x20be\x20deleted.')[_0x590d82('0x2095')](_0x590d82('0x766'))[_0x590d82('0x104f')](_0x2f36ef)['ok']('OK')['cancel'](_0x590d82('0x28a0'));_0xe815fe[_0x590d82('0x28e2')](_0x3f4c1c)[_0x590d82('0x17e7')](function(){const _0x35d6bd=_0x590d82;_0x205304[_0x35d6bd('0xa74')][_0x35d6bd('0xccd')](function(_0x486378){_0x2b4b73(_0x486378);}),_0x205304[_0x35d6bd('0xa74')]=[];});}function _0x428a5c(){const _0x2fb83e=_0x438f19;_0x205304[_0x2fb83e('0xa74')]=[];}function _0x546ffb(){const _0x2c12f8=_0x438f19;_0x205304[_0x2c12f8('0xa74')]=_0x205304[_0x2c12f8('0x12ed')]['rows'];}}const _0x5a5271=_0x262076,_0x5c850c=_0x4cf2bc['p']+_0x4376d8('0xbfe'),_0x3fe3de=_0x4cf2bc['p']+_0x4376d8('0x1072'),_0x21b8ff=_0x4cf2bc['p']+_0x4376d8('0x16fc'),_0x192a5c=_0x4cf2bc['p']+_0x4376d8('0x2206'),_0x25af25=_0x4cf2bc['p']+_0x4376d8('0x1fb2'),_0x376b35=_0x4cf2bc['p']+_0x4376d8('0xaa3'),_0x197b4c=_0x4cf2bc['p']+_0x4376d8('0x18e'),_0x165edc=_0x4cf2bc['p']+_0x4376d8('0x27d'),_0x5554fd=_0x4cf2bc['p']+'src/js/modules/main/apps/staff/views/userProfiles/edit/view.html/view.html';_0x9914b4[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x9914b4(_0x50a191,_0x1a1816){const _0x3895c0=_0x4376d8;_0x50a191[_0x3895c0('0x1b9a')](_0x3895c0('0x146a'),{'abstract':!![],'url':'/staff'})[_0x3895c0('0x1b9a')](_0x3895c0('0x908'),{'url':_0x3895c0('0x1239'),'views':{'content@app':{'templateUrl':_0x5c850c,'controller':_0x3895c0('0x253f')}},'resolve':{'users':['apiResolver',function(_0x333be9){const _0x45fec1=_0x3895c0;return _0x333be9['resolve'](_0x45fec1('0x181a'),{'fields':_0x45fec1('0xd9e'),'role':_0x45fec1('0x512'),'sort':_0x45fec1('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x2e2ee5,_0x370b3b){const _0xf391d5=_0x3895c0;return _0x370b3b[_0xf391d5('0x1ba2')](_0xf391d5('0x20bf'))?null:_0x2e2ee5[_0xf391d5('0x898')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x370b3b[_0xf391d5('0x2831')]()[_0xf391d5('0x1e76')]});}],'userProfileSection':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x3552a3,_0x35d610){const _0x53c47c=_0x3895c0;return _0x35d610[_0x53c47c('0x1ba2')](_0x53c47c('0x20bf'))?null:_0x3552a3[_0x53c47c('0x898')](_0x53c47c('0x23e7'),{'fields':_0x53c47c('0x1134'),'userProfileId':_0x35d610[_0x53c47c('0x2831')]()[_0x53c47c('0x1e76')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x3895c0('0x53e')})['state'](_0x3895c0('0xc9f'),{'url':_0x3895c0('0x2370'),'params':{'user':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3fe3de,'controller':_0x3895c0('0x2881')}},'resolve':{'user':['apiResolver',_0x3895c0('0x118b'),function(_0x4ca787,_0x2407a2){const _0x43922c=_0x3895c0;return _0x4ca787['resolve'](_0x43922c('0x181a'),{'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':_0x2407a2['id']});}],'userProfileSection':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x5ad4d0,_0x409a43){const _0x630611=_0x3895c0;return _0x5ad4d0[_0x630611('0x898')](_0x630611('0x23e7'),{'fields':_0x630611('0x1134'),'userProfileId':_0x409a43['getCurrentUser']()[_0x630611('0x1e76')],'sectionId':0xc9});}]},'authenticate':!![],'permissionId':0xc9,'bodyClass':_0x3895c0('0x53e')})['state'](_0x3895c0('0x7a'),{'url':_0x3895c0('0x1a85'),'views':{'content@app':{'templateUrl':_0x21b8ff,'controller':_0x3895c0('0x180a')}},'resolve':{'agents':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x172513,_0x5a5d0c){const _0x54ec0a=_0x3895c0;return _0x5a5d0c['hasRole'](_0x54ec0a('0x20bf'))?_0x172513[_0x54ec0a('0x898')]('user@get',{'fields':_0x54ec0a('0xcdf'),'role':'agent','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x172513[_0x54ec0a('0x898')](_0x54ec0a('0x1164'),{'id':_0x5a5d0c[_0x54ec0a('0x2831')]()[_0x54ec0a('0x1e76')],'section':_0x54ec0a('0x2157'),'fields':_0x54ec0a('0xcdf'),'role':_0x54ec0a('0x684'),'sort':_0x54ec0a('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3895c0('0x177'),'Auth',function(_0x2875c9,_0x189df2){const _0x6891f=_0x3895c0;return _0x189df2[_0x6891f('0x1ba2')](_0x6891f('0x20bf'))?null:_0x2875c9[_0x6891f('0x898')](_0x6891f('0x235d'),{'fields':_0x6891f('0x8d3'),'id':_0x189df2[_0x6891f('0x2831')]()[_0x6891f('0x1e76')]});}],'userProfileSection':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0xfe2299,_0x4d0fee){const _0x5d21e7=_0x3895c0;return _0x4d0fee[_0x5d21e7('0x1ba2')]('admin')?null:_0xfe2299[_0x5d21e7('0x898')](_0x5d21e7('0x23e7'),{'fields':_0x5d21e7('0x1134'),'userProfileId':_0x4d0fee[_0x5d21e7('0x2831')]()[_0x5d21e7('0x1e76')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x3895c0('0x53e')})[_0x3895c0('0x1b9a')](_0x3895c0('0x172a'),{'url':_0x3895c0('0x2370'),'params':{'agent':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x192a5c,'controller':_0x3895c0('0x489')}},'resolve':{'agent':['apiResolver',_0x3895c0('0x118b'),function(_0x3d9586,_0x18470b){const _0x530b84=_0x3895c0;return _0x3d9586[_0x530b84('0x898')](_0x530b84('0x181a'),{'fields':_0x530b84('0xcdf'),'id':_0x18470b['id']});}],'userProfileSection':[_0x3895c0('0x177'),'Auth',function(_0x26bae4,_0x3ee311){const _0x2f670d=_0x3895c0;return _0x26bae4[_0x2f670d('0x898')](_0x2f670d('0x23e7'),{'fields':_0x2f670d('0x1134'),'userProfileId':_0x3ee311[_0x2f670d('0x2831')]()[_0x2f670d('0x1e76')],'sectionId':0xca});}]},'authenticate':!![],'permissionId':0xca,'bodyClass':_0x3895c0('0x53e')})[_0x3895c0('0x1b9a')](_0x3895c0('0x1689'),{'url':'/telephones','views':{'content@app':{'templateUrl':_0x25af25,'controller':_0x3895c0('0x21c2')}},'resolve':{'telephones':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x387ccd,_0x420b16){const _0x231cf2=_0x3895c0;return _0x420b16['hasRole'](_0x231cf2('0x20bf'))?_0x387ccd[_0x231cf2('0x898')](_0x231cf2('0x181a'),{'fields':'createdAt,updatedAt,id,role,fullname,name,email,password,description,autointernal,internal,voicemail,transport,nat,allow,callerid,context,callgroup,pickupgroup,videosupport,encryption,phone,mobile','role':'telephone','sort':_0x231cf2('0x1ac6'),'limit':0xa,'offset':0x0}):_0x387ccd['resolve'](_0x231cf2('0x1164'),{'id':_0x420b16[_0x231cf2('0x2831')]()[_0x231cf2('0x1e76')],'section':_0x231cf2('0x778'),'fields':_0x231cf2('0x12ad'),'role':'telephone','sort':_0x231cf2('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x27763a,_0x44b1a2){const _0xb5edf2=_0x3895c0;return _0x44b1a2[_0xb5edf2('0x1ba2')](_0xb5edf2('0x20bf'))?null:_0x27763a['resolve'](_0xb5edf2('0x235d'),{'fields':'id,name,crudPermissions','id':_0x44b1a2[_0xb5edf2('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x5b2f48,_0x1ed72b){const _0x1b220e=_0x3895c0;return _0x1ed72b[_0x1b220e('0x1ba2')](_0x1b220e('0x20bf'))?null:_0x5b2f48[_0x1b220e('0x898')](_0x1b220e('0x23e7'),{'fields':_0x1b220e('0x1134'),'userProfileId':_0x1ed72b[_0x1b220e('0x2831')]()[_0x1b220e('0x1e76')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x3895c0('0x53e')})[_0x3895c0('0x1b9a')](_0x3895c0('0x1c1'),{'url':_0x3895c0('0x2370'),'params':{'telephone':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x376b35,'controller':_0x3895c0('0x1069')}},'resolve':{'telephone':[_0x3895c0('0x177'),_0x3895c0('0x118b'),function(_0x1da0b5,_0x501637){const _0x2058c7=_0x3895c0;return _0x1da0b5['resolve'](_0x2058c7('0x181a'),{'fields':_0x2058c7('0x12ad'),'id':_0x501637['id']});}],'userProfileSection':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x109c17,_0x2f31f9){const _0x5f1953=_0x3895c0;return _0x109c17[_0x5f1953('0x898')](_0x5f1953('0x23e7'),{'fields':_0x5f1953('0x1134'),'userProfileId':_0x2f31f9[_0x5f1953('0x2831')]()[_0x5f1953('0x1e76')],'sectionId':0xcb});}]},'authenticate':!![],'permissionId':0xcb,'bodyClass':_0x3895c0('0x53e')})[_0x3895c0('0x1b9a')]('app.staff.teams',{'url':'/teams','views':{'content@app':{'templateUrl':_0x197b4c,'controller':_0x3895c0('0x226d')}},'resolve':{'teams':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x12382f,_0x504ebb){const _0x2171d1=_0x3895c0;return _0x504ebb['hasRole'](_0x2171d1('0x20bf'))?_0x12382f[_0x2171d1('0x898')](_0x2171d1('0x5f0'),{'fields':_0x2171d1('0x142d'),'sort':_0x2171d1('0x1ac6'),'limit':0xa,'offset':0x0}):_0x12382f[_0x2171d1('0x898')](_0x2171d1('0x1164'),{'id':_0x504ebb[_0x2171d1('0x2831')]()['userProfileId'],'section':_0x2171d1('0x1cf2'),'fields':_0x2171d1('0x142d'),'sort':_0x2171d1('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x3faca4,_0x41ec58){const _0x53f909=_0x3895c0;return _0x41ec58[_0x53f909('0x1ba2')]('admin')?null:_0x3faca4[_0x53f909('0x898')](_0x53f909('0x235d'),{'fields':_0x53f909('0x8d3'),'id':_0x41ec58[_0x53f909('0x2831')]()[_0x53f909('0x1e76')]});}],'userProfileSection':['apiResolver','Auth',function(_0x3f3bd9,_0x209d14){const _0x4fd28b=_0x3895c0;return _0x209d14['hasRole'](_0x4fd28b('0x20bf'))?null:_0x3f3bd9[_0x4fd28b('0x898')](_0x4fd28b('0x23e7'),{'fields':_0x4fd28b('0x1134'),'userProfileId':_0x209d14['getCurrentUser']()[_0x4fd28b('0x1e76')],'sectionId':0xcc});}]},'authenticate':!![],'permissionId':0xcc,'bodyClass':_0x3895c0('0x53e')})[_0x3895c0('0x1b9a')](_0x3895c0('0x16ca'),{'url':_0x3895c0('0xe94'),'views':{'content@app':{'templateUrl':_0x165edc,'controller':'UserProfilesController\x20as\x20vm'}},'resolve':{'userProfiles':['apiResolver',function(_0x3df2f8){const _0xc025c9=_0x3895c0;return _0x3df2f8[_0xc025c9('0x898')](_0xc025c9('0x235d'),{'fields':_0xc025c9('0x2085'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x1cfb62,_0x282310){const _0x1f1b38=_0x3895c0;return _0x282310[_0x1f1b38('0x1ba2')](_0x1f1b38('0x20bf'))?null:_0x1cfb62[_0x1f1b38('0x898')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x282310[_0x1f1b38('0x2831')]()[_0x1f1b38('0x1e76')]});}],'userProfileSection':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x292d62,_0x3e4a07){const _0x3ce545=_0x3895c0;return _0x3e4a07[_0x3ce545('0x1ba2')](_0x3ce545('0x20bf'))?null:_0x292d62[_0x3ce545('0x898')](_0x3ce545('0x23e7'),{'fields':_0x3ce545('0x1134'),'userProfileId':_0x3e4a07[_0x3ce545('0x2831')]()[_0x3ce545('0x1e76')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':'staff'})[_0x3895c0('0x1b9a')](_0x3895c0('0x2580'),{'url':'/:id?tab','params':{'userProfile':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5554fd,'controller':_0x3895c0('0x164b')}},'resolve':{'userProfile':[_0x3895c0('0x177'),'$stateParams',function(_0x42a84f,_0x2791fc){const _0x1b54d5=_0x3895c0;return _0x42a84f[_0x1b54d5('0x898')](_0x1b54d5('0x235d'),{'fields':_0x1b54d5('0x2085'),'id':_0x2791fc['id']});}],'userProfileSection':[_0x3895c0('0x177'),_0x3895c0('0x1885'),function(_0x34438f,_0x10f21f){const _0x56ad9e=_0x3895c0;return _0x34438f[_0x56ad9e('0x898')](_0x56ad9e('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x10f21f['getCurrentUser']()[_0x56ad9e('0x1e76')],'sectionId':0xcd});}]},'authenticate':!![],'permissionId':0xcd,'bodyClass':_0x3895c0('0x53e')}),_0x1a1816['addPart'](_0x3895c0('0x771'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x146a'),[_0x4376d8('0x14cd'),'ngPassword',_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),_0x4376d8('0xf54'),'mwFormBuilder',_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),'chart.js',_0x4376d8('0x178b')])[_0x4376d8('0x1980')](_0x9914b4)['controller']('AgentsController',_0x166f70)[_0x4376d8('0x5ce')](_0x4376d8('0x1ff6'),_0x59576b)['controller'](_0x4376d8('0x1ee9'),_0x30310a)[_0x4376d8('0x5ce')]('AgentchangepasswordController',_0x17995f)[_0x4376d8('0x5ce')](_0x4376d8('0x1cb9'),_0x29542e)[_0x4376d8('0x5ce')](_0x4376d8('0x25ed'),_0x4696fc)['controller'](_0x4376d8('0x1c62'),_0x560f2d)[_0x4376d8('0x5ce')](_0x4376d8('0x76e'),_0xafa40d)[_0x4376d8('0x5ce')](_0x4376d8('0x26a2'),_0x15d370)[_0x4376d8('0x5ce')](_0x4376d8('0x16d3'),_0x47c7da)[_0x4376d8('0x5ce')](_0x4376d8('0x1de0'),_0x1480ea)[_0x4376d8('0x5ce')](_0x4376d8('0x490'),_0x9c199b)[_0x4376d8('0x5ce')](_0x4376d8('0x151'),_0x1e9711)[_0x4376d8('0x5ce')]('TelephoneController',_0x160930)[_0x4376d8('0x5ce')](_0x4376d8('0x17db'),_0x1af4f4)[_0x4376d8('0x5ce')](_0x4376d8('0x1747'),_0x2e1045)[_0x4376d8('0x5ce')]('UserProfilecloneController',_0xb0f763)['controller'](_0x4376d8('0x1443'),_0x4690a2)['controller'](_0x4376d8('0x2479'),_0x1419b7)[_0x4376d8('0x5ce')](_0x4376d8('0x227f'),_0x47c39b)[_0x4376d8('0x5ce')](_0x4376d8('0x3d'),_0x1b4de1)['controller'](_0x4376d8('0x574'),_0x32a6dc)[_0x4376d8('0x5ce')](_0x4376d8('0x88f'),_0x461a31)['controller'](_0x4376d8('0x1898'),_0x585d2b)[_0x4376d8('0x5ce')](_0x4376d8('0x5f9'),_0x11b0dc)['controller']('UserController',_0x5234cb)[_0x4376d8('0x5ce')]('UsersController',_0x5a5271);const _0x518757=_0x4cf2bc['p']+_0x4376d8('0x89d'),_0x262121=_0x4cf2bc['p']+_0x4376d8('0x1916');_0x4cf687['$inject']=['$scope',_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0xc4c'),_0x4376d8('0x118b'),_0x4376d8('0x14f6'),'$q','userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x2720'),_0x4376d8('0x2504'),'listsMap',_0x4376d8('0x839'),_0x4376d8('0x3fd'),'tags',_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license'];function _0x4cf687(_0x2ab67e,_0x52d752,_0x1d225d,_0x1f71b8,_0x81bc0f,_0x47dfa1,_0x280f8,_0xcb8787,_0x4a5be1,_0x2cee9b,_0x5d8508,_0x2694ae,_0x11a50c,_0x297282,_0x37d918,_0xff08d3,_0x1f708f,_0x2f0012,_0x361b8b){const _0x3160b2=_0x4376d8,_0x11b6b5=this;_0x11b6b5[_0x3160b2('0x197c')]=_0x2f0012['getCurrentUser'](),_0x11b6b5[_0x3160b2('0x1d11')]=_0x361b8b,_0x11b6b5[_0x3160b2('0xdeb')]=_0xcb8787,_0x11b6b5[_0x3160b2('0x383')]=_0x4a5be1&&_0x4a5be1[_0x3160b2('0x335')]==0x1?_0x4a5be1[_0x3160b2('0x2319')][0x0]:null,_0x11b6b5[_0x3160b2('0x103e')]=_0x2f0012[_0x3160b2('0x17a9')](_0x11b6b5[_0x3160b2('0x383')]?_0x11b6b5[_0x3160b2('0x383')][_0x3160b2('0x103e')]:null);const _0x1d5b35=0x3c,_0x4ee2c3=_0x1d5b35*0x400*0x400;_0x11b6b5['ngFlowOptions']={'target':_0x3160b2('0x184'),'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x4ee2c3,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x11b6b5[_0x3160b2('0x2720')]=_0x5d8508||{'count':0x0,'rows':[]},_0x11b6b5[_0x3160b2('0x19')]={'hidden':![],'hover':![],'isOpen':![]},_0x11b6b5[_0x3160b2('0x23c3')]=_0x3160b2('0x8ed'),_0x11b6b5[_0x3160b2('0x133f')]=[],_0x11b6b5['lists']=_0x2694ae||{'rows':[],'count':0x0},_0x11b6b5[_0x3160b2('0x839')]=_0x297282||{'rows':[],'count':0x0},_0x11b6b5[_0x3160b2('0x1522')]=_0xff08d3||{'rows':[],'count':0x0},_0x11b6b5['listsMap']=_0x11a50c,_0x11b6b5['companiesMap']=_0x37d918,_0x11b6b5['selectedTags']=[],_0x11b6b5[_0x3160b2('0x2000')]=null,_0x11b6b5['selectedCompany']=null,_0x11b6b5[_0x3160b2('0x826')]=_0x49cbdd()[_0x3160b2('0x1ced')]({'includeAll':!![],'sort':_0x3160b2('0x1ac6'),'limit':0xa,'offset':0x0,'page':0x1},_0x81bc0f),_0x11b6b5[_0x3160b2('0xb32')]=_0xec4d4b,_0x11b6b5[_0x3160b2('0xbf4')]=_0x33b8c9,_0x11b6b5[_0x3160b2('0x130d')]=_0x39826a,_0x11b6b5[_0x3160b2('0x1bb0')]=_0x34cef9,_0x11b6b5[_0x3160b2('0x261e')]=_0x2e8105,_0x11b6b5[_0x3160b2('0x1355')]=_0x3fdf8a,_0x11b6b5[_0x3160b2('0x1eb5')]=_0x319dbe,_0x11b6b5['createOrEditContact']=_0x5a6cfd,_0x11b6b5[_0x3160b2('0x46f')]=_0x5a4951,_0x11b6b5[_0x3160b2('0x2456')]=_0x214b17,_0x11b6b5[_0x3160b2('0xcee')]=_0x5e095f,_0x11b6b5['deselectContacts']=_0x41a601,_0x11b6b5[_0x3160b2('0x17bd')]=_0x4705b9,_0x11b6b5[_0x3160b2('0x1a89')]=_0x4242a0,_0x11b6b5[_0x3160b2('0x1d59')]=_0x3ac882,_0x11b6b5[_0x3160b2('0x224e')]=_0x5e1736,_0x11b6b5[_0x3160b2('0x160')]=_0x3e75c2,_0x11b6b5[_0x3160b2('0xf51')]=_0x5d5b6c,_0x11b6b5[_0x3160b2('0xb73')]=_0x3aa4e8;_0x1f71b8[_0x3160b2('0x16fb')]['ListId']&&(_0x11b6b5['selectedList']=_0x1f71b8[_0x3160b2('0x16fb')][_0x3160b2('0x7f8')]);_0x1f71b8[_0x3160b2('0x16fb')][_0x3160b2('0x452')]&&(_0x11b6b5[_0x3160b2('0x14f8')]=_0x1f71b8[_0x3160b2('0x16fb')][_0x3160b2('0x452')]);_0x2ab67e[_0x3160b2('0x620')](_0x3160b2('0x75b'),function(_0x1657ae){const _0x13e4b9=_0x3160b2;_0x1657ae?_0x1d225d(function(){const _0x248495=a0_0xd29e;_0x2ab67e[_0x248495('0xe24')]=_0x11b6b5[_0x248495('0x19')][_0x248495('0x29f')];},0x258):_0x2ab67e[_0x13e4b9('0xe24')]=_0x11b6b5['options'][_0x13e4b9('0x29f')];});function _0x2e8105(){const _0x4a2028=_0x3160b2;if(!_0x2f0012[_0x4a2028('0x1ba2')](_0x4a2028('0x20bf'))){const _0x45f427=_0x49cbdd()(_0x11b6b5[_0x4a2028('0x2720')][_0x4a2028('0x2319')])[_0x4a2028('0x787')](function(_0x12e959){const _0x391801=_0x4a2028;return{'id':_0x12e959[_0x391801('0x452')]};})[_0x4a2028('0x1621')]('id')[_0x4a2028('0x2483')](function(_0x5060fc){return _0x5060fc['id']&&_0x5060fc['id']>0x0;})['pullAllBy'](_0x11b6b5[_0x4a2028('0x839')][_0x4a2028('0x2319')],'id')[_0x4a2028('0x175b')]();if(!_0x49cbdd()[_0x4a2028('0x109a')](_0x45f427)){const _0x350be1=[];_0x45f427[_0x4a2028('0xccd')](function(_0x20dab9){const _0x529968=_0x4a2028;_0x350be1['push'](_0x2cee9b[_0x529968('0x27e')]['get']({'id':_0x20dab9['id'],'fields':_0x529968('0x12d2')})[_0x529968('0x1af5')]);}),_0x280f8[_0x4a2028('0x1283')](_0x350be1)[_0x4a2028('0x17e7')](function(_0xd5467e){_0xd5467e['forEach'](function(_0xba5416){const _0x29ad4e=a0_0xd29e,_0x40c983=_0xba5416[_0x29ad4e('0x16b2')]();_0x40c983[_0x29ad4e('0xe5c')]=![],_0x11b6b5['companies']['rows'][_0x29ad4e('0x269f')](_0x40c983);const _0x22cfcd={};_0x22cfcd[_0x40c983['id']]=_0x40c983[_0x29ad4e('0x2aa')],_0x11b6b5['companiesMap']=_0x49cbdd()['assignIn'](_0x11b6b5[_0x29ad4e('0x3fd')],_0x22cfcd);});})[_0x4a2028('0x16df')](function(_0x21e2e1){const _0x47c00b=_0x4a2028;_0x1f708f['error']({'title':_0x21e2e1['status']?'API:'+_0x21e2e1[_0x47c00b('0x11c5')]+_0x47c00b('0x16e4')+_0x21e2e1[_0x47c00b('0x1833')]:_0x47c00b('0xb61'),'msg':_0x21e2e1[_0x47c00b('0x1457')]?JSON[_0x47c00b('0x678')](_0x21e2e1['data'][_0x47c00b('0x1603')]):_0x21e2e1['toString']()});});}}}function _0x3ac882(_0x311ea3){const _0x23be76=_0x3160b2,_0x11af5f=_0x47dfa1[_0x23be76('0x137c')]()['title'](_0x23be76('0xf49'))[_0x23be76('0x1ba5')](_0x23be76('0x2301'))['ariaLabel'](_0x23be76('0x2301'))['targetEvent'](_0x311ea3)['ok']('Ok')['cancel'](_0x23be76('0x1b70'));return _0x47dfa1[_0x23be76('0x28e2')](_0x11af5f)[_0x23be76('0x17e7')](function(_0x5ce054){const _0xdb4ee=_0x23be76;if(_0x5ce054)return _0x2cee9b['cmList']['save']({'name':_0x5ce054});else _0x1f708f[_0xdb4ee('0x1db9')]({'title':_0xdb4ee('0x1bbd'),'msg':'Invalid\x20list\x20name.'});})['then'](function(_0x32d0cd){const _0x213c91=_0x23be76;_0x32d0cd&&(_0x11b6b5[_0x213c91('0x2504')][_0x213c91('0x2319')]['push'](_0x32d0cd),_0x1f708f[_0x213c91('0x130d')]({'title':'List\x20properly\x20created!','msg':_0x32d0cd['name']?_0x32d0cd[_0x213c91('0x2aa')]+'\x20has\x20been\x20created!':''}));});}function _0x5d5b6c(){const _0x315206=_0x3160b2;return _0x2f0012[_0x315206('0xf51')](0x12f)||_0x2f0012['hasRole']('admin');}function _0x5e1736(_0x3a76c9){const _0xb2055f=_0x3160b2,_0x386db9=_0x47dfa1[_0xb2055f('0x137c')]()[_0xb2055f('0x24d3')]('What\x20would\x20you\x20name\x20your\x20company?')[_0xb2055f('0x1ba5')](_0xb2055f('0x521'))[_0xb2055f('0x2095')](_0xb2055f('0x521'))[_0xb2055f('0x104f')](_0x3a76c9)['ok']('Ok')['cancel']('Cancel');return _0x47dfa1[_0xb2055f('0x28e2')](_0x386db9)[_0xb2055f('0x17e7')](function(_0x17cbb4){const _0x30295c=_0xb2055f;if(_0x17cbb4)return _0x2cee9b[_0x30295c('0x27e')]['save']({'name':_0x17cbb4});else _0x1f708f[_0x30295c('0x1db9')]({'title':_0x30295c('0x14f0'),'msg':'Invalid\x20company\x20name.'});})[_0xb2055f('0x17e7')](function(_0x4e2bc9){const _0x40345c=_0xb2055f;_0x4e2bc9&&(_0x11b6b5[_0x40345c('0x839')][_0x40345c('0x2319')]['push'](_0x4e2bc9),_0x1f708f[_0x40345c('0x130d')]({'title':_0x40345c('0x1e4b'),'msg':_0x4e2bc9[_0x40345c('0x2aa')]?_0x4e2bc9[_0x40345c('0x2aa')]+'\x20has\x20been\x20created!':''}));});}function _0x4242a0(_0x21b23b){const _0xff0a19=_0x3160b2,_0x59f76c=_0x47dfa1[_0xff0a19('0x137c')]()[_0xff0a19('0x24d3')](_0xff0a19('0x1f7c'))[_0xff0a19('0x1ba5')](_0xff0a19('0x1550'))[_0xff0a19('0x2095')](_0xff0a19('0x1550'))[_0xff0a19('0x104f')](_0x21b23b)['ok']('Ok')['cancel']('Cancel');return _0x47dfa1['show'](_0x59f76c)['then'](function(_0x29e46c){const _0xdb53fc=_0xff0a19;if(_0x29e46c)return _0x2cee9b[_0xdb53fc('0x1132')][_0xdb53fc('0x2439')]({'name':_0x29e46c});else _0x1f708f['error']({'title':_0xdb53fc('0x19ad'),'msg':_0xdb53fc('0x111f')});})[_0xff0a19('0x17e7')](function(_0x42352e){const _0x56248d=_0xff0a19;_0x42352e&&(_0x11b6b5[_0x56248d('0x1522')]['rows']['push'](_0x42352e),_0x1f708f['success']({'title':_0x56248d('0x1ebf'),'msg':_0x42352e[_0x56248d('0x1132')]?_0x42352e[_0x56248d('0x2aa')]+_0x56248d('0x15a'):''}));});}function _0x3e75c2(_0x843865,_0x38c988){const _0x55ec97=_0x3160b2,_0x31f612=JSON[_0x55ec97('0x1f0a')](_0x38c988);_0x47dfa1[_0x55ec97('0x28e2')]({'controller':_0x55ec97('0x21c9'),'controllerAs':'vm','templateUrl':_0x518757,'parent':angular[_0x55ec97('0x1ce1')](_0x52d752[_0x55ec97('0x13aa')]),'clickOutsideToClose':![],'locals':{'lists':_0x2694ae,'companies':_0x297282,'file':_0x31f612[_0x55ec97('0xc89')],'fields':_0x31f612['fields'],'license':_0x11b6b5[_0x55ec97('0x1d11')]}})[_0x55ec97('0x17e7')](function(){_0x11b6b5['getContacts']();})[_0x55ec97('0x16df')](function(){console['error']();});}function _0xec4d4b(_0x1b5c79){const _0xe069a6=_0x3160b2;_0x1f71b8['go'](_0xe069a6('0xb51'),{'id':_0x1b5c79['id'],'crudPermissions':_0x11b6b5[_0xe069a6('0x103e')]});}function _0x33b8c9(_0x16f9c7,_0x285cfb){const _0x4136ec=_0x3160b2,_0x229b6f=_0x47dfa1[_0x4136ec('0x1121')]()[_0x4136ec('0x24d3')](_0x4136ec('0x169a'))[_0x4136ec('0x211f')](_0x4136ec('0xa53')+(_0x16f9c7[_0x4136ec('0x1761')]||_0x16f9c7[_0x4136ec('0x822')]||_0x16f9c7[_0x4136ec('0x2154')]||_0x4136ec('0x239b'))+_0x4136ec('0x1d23')+_0x4136ec('0xe9f'))[_0x4136ec('0x2095')](_0x4136ec('0x1948'))[_0x4136ec('0x104f')](_0x285cfb)['ok']('OK')['cancel'](_0x4136ec('0x28a0'));_0x47dfa1[_0x4136ec('0x28e2')](_0x229b6f)[_0x4136ec('0x17e7')](function(){_0x5a4951(_0x16f9c7);});}function _0x3aa4e8(_0x2050fd){const _0x994c8e=_0x3160b2,_0x411a7d=['csv'];if(!_0x49cbdd()['includes'](_0x411a7d,_0x2050fd[_0x994c8e('0x11b0')]()))return _0x1f708f[_0x994c8e('0x1db9')]({'title':_0x994c8e('0xf3d')+_0x2050fd['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x411a7d[_0x994c8e('0x1eba')]()}),![];if(_0x2050fd[_0x994c8e('0xf04')]>_0x4ee2c3)return _0x1f708f[_0x994c8e('0x1db9')]({'title':_0x994c8e('0x586'),'msg':_0x994c8e('0x349')+_0x1d5b35+'MB'}),![];return!![];}let _0x47b889=!![],_0x2bd73b=0x1;_0x2ab67e[_0x3160b2('0x620')](_0x3160b2('0x3ed'),function(_0x5952a1,_0x189c97){const _0x5667ef=_0x3160b2;_0x47b889?_0x1d225d(function(){_0x47b889=![];}):(!_0x189c97&&(_0x2bd73b=_0x11b6b5[_0x5667ef('0x826')]['page']),_0x5952a1!==_0x189c97&&(_0x11b6b5[_0x5667ef('0x826')]['page']=0x1),!_0x5952a1&&(_0x11b6b5['query'][_0x5667ef('0x115a')]=_0x2bd73b),_0x11b6b5[_0x5667ef('0x1bb0')]());},!![]),_0x2ab67e['$watch'](_0x3160b2('0x1929'),function(_0x284e79,_0x509b90){const _0x2ad4d4=_0x3160b2;_0x284e79!==_0x509b90&&(_0x11b6b5[_0x2ad4d4('0x826')][_0x2ad4d4('0x7f8')]=_0x11b6b5['selectedList']||undefined,_0x11b6b5[_0x2ad4d4('0x1bb0')]());}),_0x2ab67e[_0x3160b2('0x620')](_0x3160b2('0x1849'),function(_0x26386e,_0x5e75a8){const _0x309730=_0x3160b2;_0x26386e!==_0x5e75a8&&(_0x11b6b5[_0x309730('0x826')][_0x309730('0x452')]=_0x11b6b5[_0x309730('0x14f8')]||undefined,_0x11b6b5[_0x309730('0x1bb0')]());}),_0x2ab67e['$watch'](_0x3160b2('0x10e6'),function(_0x329298,_0x3bd0e5){const _0x1bf608=_0x3160b2;(_0x329298[_0x1bf608('0x1f73')]||_0x3bd0e5[_0x1bf608('0x1f73')])&&_0x11b6b5['getContacts']();});function _0x39826a(_0x33f28a){_0x11b6b5['contacts']=_0x33f28a||{'count':0x0,'rows':[]};}function _0x34cef9(){const _0x31aca2=_0x3160b2;_0x11b6b5[_0x31aca2('0x826')]['offset']=(_0x11b6b5[_0x31aca2('0x826')][_0x31aca2('0x115a')]-0x1)*_0x11b6b5[_0x31aca2('0x826')][_0x31aca2('0x193b')],_0x2f0012[_0x31aca2('0x1ba2')]('admin')?_0x11b6b5['promise']=_0x2cee9b['cmContact']['get'](_0x11b6b5['query'],_0x39826a)[_0x31aca2('0x1af5')]:(_0x11b6b5[_0x31aca2('0x826')]['id']=_0x11b6b5[_0x31aca2('0xdeb')]['id'],_0x11b6b5[_0x31aca2('0x826')][_0x31aca2('0x7f8')]=!_0x11b6b5[_0x31aca2('0x826')][_0x31aca2('0x7f8')]?_0x49cbdd()[_0x31aca2('0x787')](_0x11b6b5['lists']['rows'],'id'):_0x11b6b5[_0x31aca2('0x826')][_0x31aca2('0x7f8')],_0x11b6b5[_0x31aca2('0x826')]['CompanyId']=!_0x11b6b5[_0x31aca2('0x826')]['CompanyId']?_0x49cbdd()(_0x11b6b5[_0x31aca2('0x839')]['rows'])[_0x31aca2('0x2483')]({'canSelect':undefined})[_0x31aca2('0x787')]('id')[_0x31aca2('0x175b')]():_0x11b6b5[_0x31aca2('0x826')][_0x31aca2('0x452')],_0x11b6b5[_0x31aca2('0x826')][_0x31aca2('0x16f8')]=_0x31aca2('0x3c9'),_0x11b6b5[_0x31aca2('0x1691')]=_0x2cee9b[_0x31aca2('0xdeb')]['getResources'](_0x11b6b5[_0x31aca2('0x826')],_0x39826a)[_0x31aca2('0x1af5')]);}function _0x5a6cfd(_0x55d197,_0x57d650){const _0x365a43=_0x3160b2;_0x57d650&&_0x57d650[_0x365a43('0x2066')]&&(_0x57d650[_0x365a43('0x2066')]=new Date(_0x57d650[_0x365a43('0x2066')])),_0x47dfa1[_0x365a43('0x28e2')]({'controller':_0x365a43('0x14cc'),'controllerAs':'vm','templateUrl':_0x262121,'parent':angular[_0x365a43('0x1ce1')](_0x52d752['body']),'targetEvent':_0x55d197,'clickOutsideToClose':!![],'locals':{'ListId':_0x11b6b5[_0x365a43('0x826')][_0x365a43('0x7f8')]||_0x1f71b8['params']['ListId'],'CompanyId':_0x11b6b5[_0x365a43('0x826')][_0x365a43('0x452')]||_0x1f71b8[_0x365a43('0x16fb')]['CompanyId'],'contact':_0x57d650,'contacts':_0x11b6b5[_0x365a43('0x2720')]['rows'],'companies':_0x11b6b5[_0x365a43('0x839')],'lists':_0x11b6b5['lists'],'setting':null,'crudPermissions':_0x11b6b5['crudPermissions']}});}function _0x319dbe(_0xe05da7,_0x580d5a){const _0x256ff8=_0x3160b2;_0x47dfa1[_0x256ff8('0x28e2')]({'controller':_0x256ff8('0xa23'),'controllerAs':'vm','templateUrl':_0x141b55,'parent':angular[_0x256ff8('0x1ce1')](_0x52d752['body']),'targetEvent':_0xe05da7,'clickOutsideToClose':!![],'resolve':{'contact':[_0x256ff8('0x177'),function(_0x4b3d21){const _0x1cd4cd=_0x256ff8;return _0x4b3d21['resolve'](_0x1cd4cd('0x1f28'),{'id':_0x580d5a['id']});}],'lists':[_0x256ff8('0x177'),_0x256ff8('0x1885'),function(_0x2ba7fd,_0x25c537){const _0x63ffb6=_0x256ff8;return _0x25c537[_0x63ffb6('0x1ba2')](_0x63ffb6('0x20bf'))?_0x2ba7fd[_0x63ffb6('0x898')](_0x63ffb6('0x1fd9'),{'fields':_0x63ffb6('0x12d2'),'nolimit':!![]}):_0x2ba7fd[_0x63ffb6('0x898')]('userProfile@getResources',{'id':_0x25c537[_0x63ffb6('0x2831')]()[_0x63ffb6('0x1e76')],'section':_0x63ffb6('0xeee'),'fields':'id,name','nolimit':!![]});}]},'locals':{'contacts':_0x11b6b5[_0x256ff8('0x2720')][_0x256ff8('0x2319')]}});}function _0x3fdf8a(_0x8d17cc,_0x480d46){const _0x739252=_0x3160b2;_0x47dfa1[_0x739252('0x28e2')]({'controller':_0x739252('0xd55'),'controllerAs':'vm','templateUrl':_0x86be6d,'parent':angular[_0x739252('0x1ce1')](_0x52d752[_0x739252('0x13aa')]),'targetEvent':_0x8d17cc,'clickOutsideToClose':!![],'resolve':{'contact':[_0x739252('0x177'),function(_0x389e6e){const _0x420dd1=_0x739252;return _0x389e6e[_0x420dd1('0x898')](_0x420dd1('0x1f28'),{'id':_0x480d46['id']});}],'lists':[_0x739252('0x177'),'Auth',function(_0x3007a4,_0x3ffaeb){const _0x5b35c1=_0x739252;return _0x3ffaeb[_0x5b35c1('0x1ba2')](_0x5b35c1('0x20bf'))?_0x3007a4[_0x5b35c1('0x898')](_0x5b35c1('0x1fd9'),{'fields':'id,name','nolimit':!![]}):_0x3007a4[_0x5b35c1('0x898')]('userProfile@getResources',{'id':_0x3ffaeb[_0x5b35c1('0x2831')]()[_0x5b35c1('0x1e76')],'section':_0x5b35c1('0xeee'),'fields':'id,name','nolimit':!![]});}]},'locals':{'contacts':_0x11b6b5[_0x739252('0x2720')][_0x739252('0x2319')]}});}function _0x5a4951(_0x43cd44){const _0x1d967c=_0x3160b2;_0x2cee9b[_0x1d967c('0x1d2a')][_0x1d967c('0x1da6')]({'id':_0x43cd44['id']})[_0x1d967c('0x1af5')][_0x1d967c('0x17e7')](function(){const _0x3920ed=_0x1d967c;_0x49cbdd()[_0x3920ed('0x5f3')](_0x11b6b5[_0x3920ed('0x2720')][_0x3920ed('0x2319')],{'id':_0x43cd44['id']}),_0x11b6b5[_0x3920ed('0x2720')][_0x3920ed('0x335')]-=0x1,!_0x11b6b5['contacts'][_0x3920ed('0x2319')][_0x3920ed('0x1f73')]&&_0x11b6b5[_0x3920ed('0x1bb0')](),_0x1f708f[_0x3920ed('0x130d')]({'title':'Contact\x20deleted!','msg':_0x43cd44[_0x3920ed('0x2aa')]?_0x43cd44[_0x3920ed('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x1d967c('0x16df')](function(_0x564ea3){const _0x3443dc=_0x1d967c;if(_0x564ea3['data']&&_0x564ea3[_0x3443dc('0x1457')][_0x3443dc('0x73e')]&&_0x564ea3['data'][_0x3443dc('0x73e')][_0x3443dc('0x1f73')]){_0x11b6b5[_0x3443dc('0x73e')]=_0x564ea3[_0x3443dc('0x1457')][_0x3443dc('0x73e')]||[{'message':_0x564ea3[_0x3443dc('0x9b6')](),'type':_0x3443dc('0x1dc9')}];for(let _0x1e4f1d=0x0;_0x1e4f1d<_0x564ea3['data'][_0x3443dc('0x73e')][_0x3443dc('0x1f73')];_0x1e4f1d++){_0x1f708f[_0x3443dc('0x1db9')]({'title':_0x564ea3[_0x3443dc('0x1457')][_0x3443dc('0x73e')][_0x1e4f1d]['type'],'msg':_0x564ea3['data'][_0x3443dc('0x73e')][_0x1e4f1d][_0x3443dc('0x1603')]});}}else _0x1f708f[_0x3443dc('0x1db9')]({'title':_0x564ea3[_0x3443dc('0x11c5')]?_0x3443dc('0x14f7')+_0x564ea3[_0x3443dc('0x11c5')]+_0x3443dc('0x16e4')+_0x564ea3[_0x3443dc('0x1833')]:_0x3443dc('0x1dc9'),'msg':_0x564ea3[_0x3443dc('0x1457')]?JSON['stringify'](_0x564ea3[_0x3443dc('0x1457')]['message']):_0x564ea3[_0x3443dc('0x1603')]||_0x564ea3['toString']()});});}function _0x214b17(){const _0x1a8790=_0x3160b2,_0x48fe1f=angular[_0x1a8790('0x14e5')](_0x11b6b5[_0x1a8790('0x133f')]);return _0x11b6b5['selectedContacts']=[],_0x48fe1f;}function _0x5e095f(_0xb53745){const _0x91e295=_0x3160b2,_0x23dbf8=_0x47dfa1[_0x91e295('0x1121')]()['title'](_0x91e295('0x112c'))['htmlContent'](''+_0x11b6b5[_0x91e295('0x133f')]['length']+_0x91e295('0x145a')+'\x20will\x20be\x20deleted.')[_0x91e295('0x2095')](_0x91e295('0xb36'))[_0x91e295('0x104f')](_0xb53745)['ok']('OK')[_0x91e295('0x1d47')](_0x91e295('0x28a0'));_0x47dfa1['show'](_0x23dbf8)[_0x91e295('0x17e7')](function(){const _0x287fa4=_0x91e295;_0x11b6b5['selectedContacts'][_0x287fa4('0xccd')](function(_0x1af681){_0x5a4951(_0x1af681);}),_0x11b6b5[_0x287fa4('0x133f')]=[];});}function _0x41a601(){const _0x589b61=_0x3160b2;_0x11b6b5[_0x589b61('0x133f')]=[];}function _0x4705b9(){const _0x13de2f=_0x3160b2;_0x11b6b5[_0x13de2f('0x133f')]=_0x11b6b5[_0x13de2f('0x2720')][_0x13de2f('0x2319')];}}const _0x1e4441=_0x4cf687;_0x4d9cc1[_0x4376d8('0x1b9c')]=['$mdDialog','toasty',_0x4376d8('0x2720'),_0x4376d8('0x2504'),'companies','contact','ListId',_0x4376d8('0x452'),'api',_0x4376d8('0x103e')];function _0x4d9cc1(_0x4cdc8a,_0x25d300,_0x1e7861,_0x29f990,_0x11c153,_0x29805b,_0x363d73,_0x17f4b4,_0x48a893,_0x25d95c){const _0xa51309=_0x4376d8,_0x4d8565=this;_0x4d8565['errors']=[],_0x4d8565[_0xa51309('0x24d3')]='CONTACTMANAGER.EDIT_CONTACT',_0x4d8565[_0xa51309('0x103e')]=_0x25d95c,_0x4d8565[_0xa51309('0x1c58')]=angular['copy'](_0x29805b),_0x4d8565[_0xa51309('0x2720')]=_0x1e7861||{'rows':[],'count':0x0},_0x4d8565['lists']=_0x29f990||{'rows':[],'count':0x0},_0x4d8565[_0xa51309('0x839')]=_0x11c153||{'rows':[],'count':0x0},_0x4d8565[_0xa51309('0x1341')]={'rows':[],'count':0x0},_0x4d8565[_0xa51309('0x3f')]=![];!_0x4d8565[_0xa51309('0x1c58')]?(_0x4d8565['contact']={'ListId':_0x363d73?parseInt(_0x363d73,0xa):undefined,'CompanyId':_0x17f4b4?parseInt(_0x17f4b4,0xa):undefined},_0x4d8565[_0xa51309('0x24d3')]=_0xa51309('0x11bb'),_0x4d8565[_0xa51309('0x3f')]=!![]):(delete _0x4d8565[_0xa51309('0x1c58')][_0xa51309('0x239a')],_0x4d8565[_0xa51309('0x7f8')]=_0x4d8565[_0xa51309('0x1c58')]['ListId']||undefined);_0x4d8565[_0xa51309('0xf21')]=_0x3e88a9,_0x4d8565[_0xa51309('0xbe3')]=_0x3b88a4,_0x4d8565[_0xa51309('0x46f')]=_0x4ef5c1,_0x4d8565[_0xa51309('0x136e')]=_0x3db87b,_0x4d8565[_0xa51309('0x6c7')]=_0x42e2da,_0x4d8565[_0xa51309('0x1300')]=_0x4a3b7d;function _0x3e88a9(){const _0xfbd40e=_0xa51309;_0x4d8565[_0xfbd40e('0x73e')]=[],_0x48a893[_0xfbd40e('0x1d2a')]['save'](_0x4d8565[_0xfbd40e('0x1c58')])['$promise']['then'](function(_0x55b491){const _0x4b7755=_0xfbd40e;_0x4d8565['contacts'][_0x4b7755('0x1893')](_0x55b491),_0x25d300['success']({'title':_0x4b7755('0xdf9'),'msg':_0x4d8565[_0x4b7755('0x1c58')][_0x4b7755('0x2aa')]?_0x4d8565[_0x4b7755('0x1c58')][_0x4b7755('0x2aa')]+_0x4b7755('0x15a'):''}),_0x3db87b();})[_0xfbd40e('0x16df')](function(_0x551fc2){const _0x682c02=_0xfbd40e;if(_0x551fc2['data']&&_0x551fc2[_0x682c02('0x1457')]['errors']&&_0x551fc2[_0x682c02('0x1457')][_0x682c02('0x73e')][_0x682c02('0x1f73')]){_0x4d8565[_0x682c02('0x73e')]=_0x551fc2[_0x682c02('0x1457')]['errors']||[{'message':_0x551fc2['toString'](),'type':'api.user.save'}];for(let _0x49ac80=0x0;_0x49ac80<_0x551fc2[_0x682c02('0x1457')][_0x682c02('0x73e')]['length'];_0x49ac80++){_0x25d300[_0x682c02('0x1db9')]({'title':_0x551fc2['data'][_0x682c02('0x73e')][_0x49ac80][_0x682c02('0x412')],'msg':_0x551fc2['data'][_0x682c02('0x73e')][_0x49ac80][_0x682c02('0x1603')]});}}else _0x25d300[_0x682c02('0x1db9')]({'title':_0x551fc2[_0x682c02('0x11c5')]?_0x682c02('0x14f7')+_0x551fc2[_0x682c02('0x11c5')]+_0x682c02('0x16e4')+_0x551fc2[_0x682c02('0x1833')]:_0x682c02('0xc1'),'msg':_0x551fc2[_0x682c02('0x1457')]?JSON['stringify'](_0x551fc2[_0x682c02('0x1457')]['message']):_0x551fc2['toString']()});});}function _0x3b88a4(){const _0x407154=_0xa51309;_0x4d8565[_0x407154('0x73e')]=[],_0x48a893[_0x407154('0x1d2a')][_0x407154('0x27ba')]({'id':_0x4d8565[_0x407154('0x1c58')]['id']},_0x4d8565[_0x407154('0x1c58')])[_0x407154('0x1af5')]['then'](function(_0x2494fc){const _0x5e005d=_0x407154,_0x1801b9=_0x49cbdd()[_0x5e005d('0xe8e')](_0x4d8565[_0x5e005d('0x2720')],{'id':_0x2494fc['id']});_0x1801b9&&_0x49cbdd()['merge'](_0x1801b9,_0x2494fc),_0x25d300['success']({'title':_0x5e005d('0x1fbe'),'msg':_0x4d8565[_0x5e005d('0x1c58')]['name']?_0x4d8565[_0x5e005d('0x1c58')][_0x5e005d('0x2aa')]+_0x5e005d('0x15ca'):''}),_0x3db87b();})[_0x407154('0x16df')](function(_0x547f6c){const _0x31a94e=_0x407154;if(_0x547f6c[_0x31a94e('0x1457')]&&_0x547f6c[_0x31a94e('0x1457')][_0x31a94e('0x73e')]&&_0x547f6c[_0x31a94e('0x1457')][_0x31a94e('0x73e')][_0x31a94e('0x1f73')]){_0x4d8565[_0x31a94e('0x73e')]=_0x547f6c['data'][_0x31a94e('0x73e')]||[{'message':_0x547f6c['toString'](),'type':_0x31a94e('0x12d')}];for(let _0x25f2d2=0x0;_0x25f2d2<_0x547f6c['data']['errors']['length'];_0x25f2d2++){_0x25d300[_0x31a94e('0x1db9')]({'title':_0x547f6c[_0x31a94e('0x1457')][_0x31a94e('0x73e')][_0x25f2d2][_0x31a94e('0x412')],'msg':_0x547f6c[_0x31a94e('0x1457')][_0x31a94e('0x73e')][_0x25f2d2]['message']});}}else _0x25d300[_0x31a94e('0x1db9')]({'title':_0x547f6c[_0x31a94e('0x11c5')]?_0x31a94e('0x14f7')+_0x547f6c[_0x31a94e('0x11c5')]+'\x20-\x20'+_0x547f6c[_0x31a94e('0x1833')]:_0x31a94e('0x12d'),'msg':_0x547f6c[_0x31a94e('0x1457')]?JSON[_0x31a94e('0x678')](_0x547f6c[_0x31a94e('0x1457')][_0x31a94e('0x1603')]):_0x547f6c[_0x31a94e('0x9b6')]()});});}function _0x42e2da(_0x5ddd49){const _0x2c40bc=_0xa51309;if(_0x5ddd49)return _0x48a893[_0x2c40bc('0x25b')][_0x2c40bc('0x6c7')]({'id':_0x5ddd49})['$promise'][_0x2c40bc('0x17e7')](function(_0x2ee4e4){const _0x5df0f0=_0x2c40bc;if(_0x2ee4e4){_0x4d8565['customFields']=_0x2ee4e4;const _0x14750a=_0x49cbdd()['map'](_0x4d8565['customFields'][_0x5df0f0('0x2319')],function(_0x4ba27a){return'cf_'+_0x4ba27a['id'];});_0x48a893[_0x5df0f0('0x1d2a')][_0x5df0f0('0x1c53')]({'id':_0x4d8565['contact']['id'],'attributes':_0x14750a,'raw':!![]})[_0x5df0f0('0x1af5')][_0x5df0f0('0x17e7')](function(_0x3c2cf0){const _0x1124e9=_0x5df0f0;_0x4d8565[_0x1124e9('0x1c58')]=_0x49cbdd()[_0x1124e9('0x1ced')](_0x4d8565['contact'],_0x3c2cf0);});}})[_0x2c40bc('0x16df')](function(_0xc95309){const _0x40863d=_0x2c40bc;console[_0x40863d('0x1db9')](_0xc95309);});else _0x4d8565[_0x2c40bc('0x1341')]={'rows':[],'count':0x0};}function _0x4ef5c1(_0x40d789){const _0x5a3597=_0xa51309;_0x4d8565[_0x5a3597('0x73e')]=[];const _0x15f51d=_0x4cdc8a[_0x5a3597('0x1121')]()[_0x5a3597('0x24d3')](_0x5a3597('0x530'))[_0x5a3597('0xd5')](_0x5a3597('0x15f9'))[_0x5a3597('0x2095')]('Delete\x20Contact')['ok'](_0x5a3597('0x304'))[_0x5a3597('0x1d47')](_0x5a3597('0x1b70'))[_0x5a3597('0x104f')](_0x40d789);_0x4cdc8a[_0x5a3597('0x28e2')](_0x15f51d)[_0x5a3597('0x17e7')](function(){const _0x26fc38=_0x5a3597;_0x48a893[_0x26fc38('0x1d2a')][_0x26fc38('0x1da6')]({'id':_0x4d8565[_0x26fc38('0x1c58')]['id']})['$promise'][_0x26fc38('0x17e7')](function(){const _0x2a15d4=_0x26fc38;_0x49cbdd()['remove'](_0x4d8565[_0x2a15d4('0x2720')],{'id':_0x4d8565[_0x2a15d4('0x1c58')]['id']}),_0x25d300[_0x2a15d4('0x130d')]({'title':_0x2a15d4('0x9d6'),'msg':_0x4d8565[_0x2a15d4('0x1c58')]['name']?_0x4d8565[_0x2a15d4('0x1c58')]['name']+'\x20has\x20been\x20deleted!':''}),_0x3db87b();})['catch'](function(_0x526ec7){const _0x5935e8=_0x26fc38;console[_0x5935e8('0x1db9')](_0x526ec7),_0x4d8565[_0x5935e8('0x73e')]=_0x526ec7[_0x5935e8('0x1457')][_0x5935e8('0x73e')]||[{'message':_0x526ec7[_0x5935e8('0x9b6')](),'type':_0x5935e8('0x1dc9')}];});},function(){});}function _0x4a3b7d(_0x32c9a6){return _0x32c9a6===null?undefined:new Date(_0x32c9a6);}function _0x3db87b(){const _0x2904ab=_0xa51309;_0x4cdc8a[_0x2904ab('0x212a')]();}}const _0xb05b95=_0x4d9cc1;_0x324a14[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'toasty',_0x4376d8('0x1c58'),_0x4376d8('0x2720'),'lists','api'];function _0x324a14(_0x3ad560,_0x2b0cdf,_0x4da319,_0x3a6f88,_0x447e39,_0x2fd1ca){const _0x4ec478=_0x4376d8,_0x1f1699=this;_0x1f1699[_0x4ec478('0x73e')]=[],_0x1f1699[_0x4ec478('0x24d3')]=_0x4ec478('0x1f63'),_0x1f1699['contact']=angular['copy'](_0x4da319),_0x1f1699[_0x4ec478('0x2504')]=_0x447e39||{'rows':[],'count':0x0},_0x1f1699[_0x4ec478('0xf21')]=_0x5f3028,_0x1f1699['closeDialog']=_0x4fdc2c;function _0x5f3028(){const _0x31d0a5=_0x4ec478;_0x1f1699[_0x31d0a5('0x73e')]=[],delete _0x1f1699['contact']['id'],_0x1f1699[_0x31d0a5('0x1c58')][_0x31d0a5('0x1522')]&&!_0x1f1699['contact']['tags'][_0x31d0a5('0x1f73')]&&delete _0x1f1699[_0x31d0a5('0x1c58')][_0x31d0a5('0x1522')],_0x2fd1ca[_0x31d0a5('0x1d2a')]['save'](_0x1f1699[_0x31d0a5('0x1c58')])[_0x31d0a5('0x1af5')][_0x31d0a5('0x17e7')](function(_0x347376){const _0x4a7a7a=_0x31d0a5;_0x3a6f88[_0x4a7a7a('0x1893')](_0x347376),_0x2b0cdf['success']({'title':_0x4a7a7a('0xdf9'),'msg':_0x1f1699['contact']['name']?_0x1f1699['contact']['name']+_0x4a7a7a('0x15a'):''}),_0x4fdc2c();})['catch'](function(_0x58c970){const _0x1c2a5b=_0x31d0a5;console[_0x1c2a5b('0x1db9')](_0x58c970),_0x1f1699[_0x1c2a5b('0x73e')]=_0x58c970['data'][_0x1c2a5b('0x73e')]||[{'message':_0x58c970[_0x1c2a5b('0x9b6')](),'type':_0x1c2a5b('0x20c')}];});}function _0x4fdc2c(){const _0x29d4d7=_0x4ec478;_0x3ad560[_0x29d4d7('0x212a')]();}}const _0x289769=_0x324a14;_0x814af5[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'toasty','hoppers',_0x4376d8('0x2774'),_0x4376d8('0x212e'),_0x4376d8('0x103e')];function _0x814af5(_0x2a9cef,_0x3abb22,_0x4aaf77,_0x283d1f,_0x4b6603,_0x3c1ded,_0x1386ff,_0x27b711,_0xb31df8){const _0x5bcc24=_0x4376d8,_0x1dd322=this;_0x1dd322[_0x5bcc24('0x73e')]=[],_0x1dd322['title']='CONTACTMANAGER.EDIT_HOPPER',_0x1dd322['hopper']=angular[_0x5bcc24('0x14e5')](_0x1386ff),_0x1dd322[_0x5bcc24('0xf70')]=_0x3c1ded,_0x1dd322[_0x5bcc24('0x96d')]=![],_0x1dd322[_0x5bcc24('0x103e')]=_0xb31df8;!_0x1dd322[_0x5bcc24('0x2774')]&&(_0x1dd322[_0x5bcc24('0x2774')]={},_0x1dd322[_0x5bcc24('0x24d3')]=_0x5bcc24('0x266'),_0x1dd322[_0x5bcc24('0x96d')]=!![]);_0x1dd322[_0x5bcc24('0xdf2')]=_0xd3519d,_0x1dd322['getDateFromString']=_0x60f505,_0x1dd322[_0x5bcc24('0x136e')]=_0x1cbaab;function _0xd3519d(){const _0x19af32=_0x5bcc24;_0x1dd322[_0x19af32('0x73e')]=[],_0x27b711['cmHopper'][_0x19af32('0x27ba')]({'id':_0x1dd322[_0x19af32('0x2774')]['id']},_0x1dd322[_0x19af32('0x2774')])[_0x19af32('0x1af5')][_0x19af32('0x17e7')](function(_0x48370d){const _0x2d1270=_0x19af32,_0x148860=_0x49cbdd()[_0x2d1270('0xe8e')](_0x1dd322[_0x2d1270('0xf70')],{'id':_0x48370d['id']});_0x148860&&_0x49cbdd()[_0x2d1270('0x1ced')](_0x148860,_0x48370d),_0x4b6603['success']({'title':'Hopper\x20properly\x20saved!','msg':_0x1dd322['hopper']['name']?_0x1dd322[_0x2d1270('0x2774')][_0x2d1270('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x1cbaab(_0x48370d);})['catch'](function(_0x2c8e4d){const _0x54f196=_0x19af32;console['error'](_0x2c8e4d),_0x1dd322[_0x54f196('0x73e')]=_0x2c8e4d['data'][_0x54f196('0x73e')]||[{'message':_0x2c8e4d[_0x54f196('0x9b6')](),'type':_0x54f196('0x22d')}];});}function _0x60f505(_0x59b685){return _0x59b685===null?undefined:new Date(_0x59b685);}function _0x1cbaab(_0x1e7bab){const _0x550e38=_0x5bcc24;_0x283d1f[_0x550e38('0x212a')](_0x1e7bab);}}const _0x3d42f7=_0x814af5,_0xd0f39e=_0x4cf2bc['p']+_0x4376d8('0x44c');_0x52af6f['$inject']=['$scope','$timeout',_0x4376d8('0xc4c'),_0x4376d8('0x26ca'),'$mdDialog','$translate',_0x4376d8('0x108a'),'api',_0x4376d8('0x1c58'),_0x4376d8('0xf70'),_0x4376d8('0x244c'),'histories',_0x4376d8('0x2720'),_0x4376d8('0x839'),'lists',_0x4376d8('0x1341'),_0x4376d8('0x1522'),_0x4376d8('0x21b3'),_0x4376d8('0x1d11'),_0x4376d8('0x1885'),_0x4376d8('0x383')];function _0x52af6f(_0x5e93aa,_0x23a3fa,_0x3d2f75,_0x4d358b,_0x15440b,_0x4b8c7b,_0xe88b77,_0x353021,_0x471dd0,_0x28dd1e,_0x531718,_0x5d0eac,_0x42de5b,_0xf7c069,_0x24d25c,_0x3c049b,_0x224a92,_0x290a32,_0x1cd04b,_0x3eac2d,_0x4fd0d5){const _0x3399c5=_0x4376d8,_0x108dfe=this;_0x108dfe[_0x3399c5('0x197c')]=_0x3eac2d[_0x3399c5('0x2831')](),_0x108dfe['license']=_0x1cd04b,_0x108dfe['journey']=[],_0x108dfe['contact']=_0x471dd0||{},_0x108dfe['hoppers']=_0x28dd1e||{'rows':[],'count':0x0},_0x108dfe[_0x3399c5('0x244c')]=_0x531718||{'rows':[],'count':0x0},_0x108dfe['histories']=_0x5d0eac||{'rows':[],'count':0x0},_0x108dfe[_0x3399c5('0x839')]=_0xf7c069||{'rows':[],'count':0x0},_0x108dfe[_0x3399c5('0x2504')]=_0x24d25c||{'rows':[],'count':0x0},_0x108dfe['customFields']=_0x3c049b||{'rows':[],'count':0x0},_0x108dfe[_0x3399c5('0x1522')]=_0x224a92||{'rows':[],'count':0x0},_0x108dfe['jscriptySessions']=_0x290a32||{'rows':[],'count':0x0},_0x108dfe[_0x3399c5('0x1a30')]={'scrollEl':'#interaction-content'},_0x108dfe[_0x3399c5('0xa08')]=new Date(_0x107a13()()[_0x3399c5('0x161c')](_0x3399c5('0x7c7'))['subtract'](0x1,_0x3399c5('0x2415'))['utcOffset'](0x0,!![])[_0x3399c5('0x1c0d')]()),_0x108dfe['lastDayMonth']=new Date(_0x107a13()()[_0x3399c5('0x200e')](_0x3399c5('0x7c7'))['subtract'](0x1,_0x3399c5('0x26d6'))[_0x3399c5('0x1376')](0x0,!![])['format']()),_0x108dfe['userProfileSection']=_0x4fd0d5&&_0x4fd0d5[_0x3399c5('0x335')]==0x1?_0x4fd0d5[_0x3399c5('0x2319')][0x0]:null,_0x108dfe[_0x3399c5('0x103e')]=_0x3eac2d['parseCrudPermissions'](_0x108dfe['userProfileSection']?_0x108dfe[_0x3399c5('0x383')][_0x3399c5('0x103e')]:null),_0x108dfe[_0x3399c5('0x1a1b')]=_0x49cbdd()['keyBy']([{'option':'Highest','value':_0x3399c5('0x1c3')},{'option':_0x3399c5('0xf1e'),'value':_0x3399c5('0x3f5')},{'option':_0x3399c5('0x1410'),'value':_0x3399c5('0x788')},{'option':_0x3399c5('0xfd2'),'value':_0x3399c5('0x1d26')},{'option':_0x3399c5('0x1135'),'value':'\x270\x27'}],function(_0x3ed3c7){const _0x3e5705=_0x3399c5;return _0x49cbdd()['replace'](_0x3ed3c7[_0x3e5705('0x175b')],new RegExp('\x27','g'),'');}),_0x108dfe[_0x3399c5('0x161b')]={'fields':'id,phone,scheduledat,priority,recallme,VoiceQueueId,CampaignId,UserId','sort':_0x3399c5('0x1ac6'),'limit':0xa,'page':0x1},_0x108dfe['queryFinal']={'fields':_0x3399c5('0xc6e'),'sort':_0x3399c5('0x1bf2'),'limit':0xa,'page':0x1},_0x108dfe[_0x3399c5('0x13e2')]={'fields':_0x3399c5('0x1111'),'sort':_0x3399c5('0x1bf2'),'limit':0xa,'page':0x1},_0x108dfe['queryJscriptySession']={'fields':'id,starttime,endtime,membername,projectname','sort':_0x3399c5('0xb9f'),'limit':0xa,'page':0x1},_0x108dfe['selectedTab']=_0x3d2f75[_0x3399c5('0x16fb')][_0x3399c5('0x1523')]||0x0,_0x108dfe['onInit']=_0x2bf271,_0x108dfe[_0x3399c5('0x1995')]=_0x3a5368,_0x108dfe[_0x3399c5('0x1eb5')]=_0x19e344,_0x108dfe['saveContact']=_0x5c3437,_0x108dfe['editCompany']=_0x4ba889,_0x108dfe[_0x3399c5('0x67')]=_0x14a739,_0x108dfe[_0x3399c5('0x176c')]=_0x2e8ce2,_0x108dfe[_0x3399c5('0x1300')]=_0x4d6836,_0x108dfe[_0x3399c5('0x172f')]=_0x27fe77,_0x108dfe[_0x3399c5('0x2458')]=_0x1379c4,_0x108dfe['getHistories']=_0xa9bc51,_0x108dfe[_0x3399c5('0x1cf4')]=_0x5a2829,_0x108dfe['deleteconfirm']=_0x34cce5,_0x108dfe[_0x3399c5('0x133c')]=_0x24207f,_0x108dfe['createOrEditIvrCampaignHopper']=_0x884681,_0x108dfe[_0x3399c5('0x1e24')]=_0x1f3de4;let _0x2c6903=!![],_0x11c490=0x1;_0x5e93aa[_0x3399c5('0x620')](_0x3399c5('0x14d9'),function(_0x8e087f,_0x35edcd){const _0x96f6e6=_0x3399c5;_0x2c6903?_0x23a3fa(function(){_0x2c6903=![];}):(!_0x35edcd&&(_0x11c490=_0x108dfe['queryHopper'][_0x96f6e6('0x115a')]),_0x8e087f!==_0x35edcd&&(_0x108dfe[_0x96f6e6('0x161b')][_0x96f6e6('0x115a')]=0x1),!_0x8e087f&&(_0x108dfe['queryHopper']['page']=_0x11c490),_0x108dfe['getHoppers']());}),_0x5e93aa[_0x3399c5('0x620')](_0x3399c5('0x1923'),function(_0x425a74,_0x121676){const _0x1bd3d2=_0x3399c5;_0x2c6903?_0x23a3fa(function(){_0x2c6903=![];}):(!_0x121676&&(_0x11c490=_0x108dfe['queryFinal'][_0x1bd3d2('0x115a')]),_0x425a74!==_0x121676&&(_0x108dfe[_0x1bd3d2('0x518')][_0x1bd3d2('0x115a')]=0x1),!_0x425a74&&(_0x108dfe['queryFinal'][_0x1bd3d2('0x115a')]=_0x11c490),_0x108dfe[_0x1bd3d2('0x2458')]());}),_0x5e93aa[_0x3399c5('0x620')](_0x3399c5('0x222'),function(_0x5d2c43,_0x1726f0){const _0x438cb8=_0x3399c5;_0x2c6903?_0x23a3fa(function(){_0x2c6903=![];}):(!_0x1726f0&&(_0x11c490=_0x108dfe[_0x438cb8('0x13e2')][_0x438cb8('0x115a')]),_0x5d2c43!==_0x1726f0&&(_0x108dfe['queryHistory'][_0x438cb8('0x115a')]=0x1),!_0x5d2c43&&(_0x108dfe[_0x438cb8('0x13e2')]['page']=_0x11c490),_0x108dfe[_0x438cb8('0x2474')]());});function _0x287edc(_0x117de5){const _0x3982cf=_0x3399c5;switch(_0x117de5){case _0x3982cf('0x2219'):return'green-A700';case'mail':return'teal';case _0x3982cf('0x2cd'):return _0x3982cf('0x20c9');case'openchannel':return _0x3982cf('0x256d');case _0x3982cf('0xc23'):return _0x3982cf('0xe72');case'whatsapp':return _0x3982cf('0x9c7');default:return _0x3982cf('0x119d');}}function _0x1f3de4(_0x3f2952){const _0x316621=_0x3399c5;let _0x416482='';if(_0x3f2952['FaxAccountId'])_0x416482='fax';else{if(_0x3f2952[_0x316621('0x1969')])_0x416482='openchannel';else{if(_0x3f2952[_0x316621('0x17fe')])_0x416482=_0x316621('0x2cd');else{if(_0x3f2952[_0x316621('0xbda')])_0x416482=_0x316621('0xc2');else{if(_0x3f2952[_0x316621('0x259')])_0x416482='chat';else _0x3f2952[_0x316621('0x21cc')]&&(_0x416482=_0x316621('0x1fe1'));}}}}return _0x287edc(_0x416482);}function _0x341b09(_0x1a1f28){return function(_0x2644ff){_0x108dfe[_0x1a1f28]=_0x2644ff||{'count':0x0,'rows':[]};};}function _0x2bf271(){const _0x5d00d0=_0x3399c5;return!_0x3eac2d['hasRole'](_0x5d00d0('0x20bf'))&&(_0x5f2ceb(),_0x9d133b()),_0x353021[_0x5d00d0('0x221e')][_0x5d00d0('0x1c53')]({'fields':_0x5d00d0('0x2185'),'nolimit':!![]})[_0x5d00d0('0x1af5')][_0x5d00d0('0x17e7')](function(_0x14c857){const _0x46cb97=_0x5d00d0;_0x108dfe['users']=_0x14c857||{'count':0x0,'rows':[]},_0x108dfe['usersMap']=_0x49cbdd()[_0x46cb97('0x250e')](_0x49cbdd()['keyBy'](_0x108dfe['users'][_0x46cb97('0x2319')],'id'),_0x46cb97('0xea6')),_0x108dfe[_0x46cb97('0x28a6')]=_0x49cbdd()[_0x46cb97('0x787')](_0x108dfe[_0x46cb97('0x1c58')]['Tags'],'id');})[_0x5d00d0('0x17e7')](_0x438cb1(_0x471dd0));}function _0x5f2ceb(){const _0x22f7d9=_0x3399c5,_0x1106bb=_0x49cbdd()['some'](_0x108dfe['companies']['rows'],{'id':_0x108dfe[_0x22f7d9('0x1c58')][_0x22f7d9('0x452')]});if(!_0x1106bb)return _0x353021[_0x22f7d9('0x27e')][_0x22f7d9('0x1c53')]({'id':_0x108dfe[_0x22f7d9('0x1c58')][_0x22f7d9('0x452')],'fields':_0x22f7d9('0x12d2')})['$promise']['then'](function(_0xaa46c7){const _0x687bd=_0x22f7d9,_0x3b63e8=_0xaa46c7['toJSON']();_0x3b63e8[_0x687bd('0xe5c')]=![],_0x108dfe['companies'][_0x687bd('0x2319')]['push'](_0x3b63e8);})[_0x22f7d9('0x16df')](function(_0x1e8cd5){const _0x3c37ab=_0x22f7d9;_0xe88b77[_0x3c37ab('0x1db9')]({'title':_0x1e8cd5[_0x3c37ab('0x11c5')]?_0x3c37ab('0x14f7')+_0x1e8cd5['status']+_0x3c37ab('0x16e4')+_0x1e8cd5['statusText']:_0x3c37ab('0xb61'),'msg':_0x1e8cd5['data']?JSON[_0x3c37ab('0x678')](_0x1e8cd5[_0x3c37ab('0x1457')][_0x3c37ab('0x1603')]):_0x1e8cd5['toString']()});});}function _0x9d133b(){const _0x5f2260=_0x3399c5,_0x229f3b=_0x49cbdd()[_0x5f2260('0x787')](_0x108dfe[_0x5f2260('0x1c58')][_0x5f2260('0x28a6')],function(_0x4cf734){const _0x2a0b8e=_0x5f2260;return{'id':_0x4cf734['id'],'name':_0x4cf734[_0x2a0b8e('0x2aa')]};});if(!_0x49cbdd()[_0x5f2260('0x109a')](_0x229f3b))for(let _0x37d677=0x0;_0x37d677<_0x229f3b[_0x5f2260('0x1f73')];_0x37d677++){!_0x49cbdd()[_0x5f2260('0x26f8')](_0x108dfe[_0x5f2260('0x1522')][_0x5f2260('0x2319')],{'id':_0x229f3b['id']})&&(_0x229f3b[_0x37d677][_0x5f2260('0xe5c')]=![],_0x108dfe[_0x5f2260('0x1522')]['rows'][_0x5f2260('0x269f')](_0x229f3b[_0x37d677]));}}function _0x5536d8(_0x3d3fab){const _0x49f8fb=_0x3399c5;if(!_0x3d3fab['disposition'])return'('+_0x4b8c7b[_0x49f8fb('0x1acc')](_0x49f8fb('0x18f0'))+')';const _0x1551a0=_0x49cbdd()['compact']([_0x3d3fab['disposition'],_0x3d3fab[_0x49f8fb('0xf1')],_0x3d3fab[_0x49f8fb('0x100')]]);return'('+_0x1551a0[_0x49f8fb('0x1eba')](_0x49f8fb('0x16e4'))+')';}function _0x4646d2(_0x42a4a9){const _0xced775=_0x3399c5;_0x42a4a9&&_0x42a4a9[_0xced775('0x335')]&&_0x42a4a9[_0xced775('0x2319')][_0xced775('0x1f73')]&&(_0x108dfe[_0xced775('0x128e')]=_0x49cbdd()['concat'](_0x108dfe[_0xced775('0x128e')],_0x42a4a9['rows']),_0x108dfe[_0xced775('0x128e')]['forEach'](function(_0x4ec139){const _0x3c1a7e=_0xced775;_0x4ec139[_0x3c1a7e('0x1db7')]=_0x5536d8(_0x4ec139);}));}function _0x438cb1(_0x4997ee){const _0x27e1ef=_0x3399c5,_0x3ff890=[_0x27e1ef('0xc2'),_0x27e1ef('0x2219'),_0x27e1ef('0x2cd'),'openchannel',_0x27e1ef('0xc23')];if(_0x4997ee&&_0x4997ee['id']){for(let _0x47278e=0x0;_0x47278e<_0x3ff890[_0x27e1ef('0x1f73')];_0x47278e++){_0x353021[_0x3ff890[_0x47278e]+_0x27e1ef('0x3de')]['get']({'ContactId':_0x4997ee['id'],'includeAll':!![]})[_0x27e1ef('0x1af5')][_0x27e1ef('0x17e7')](_0x4646d2);}_0x353021[_0x27e1ef('0xf5')][_0x27e1ef('0x1c53')]({'ContactId':_0x4997ee['id'],'includeAll':!![]})[_0x27e1ef('0x1af5')][_0x27e1ef('0x17e7')](_0x4646d2)[_0x27e1ef('0x16df')](function(_0x4d16dc){const _0x4932c2=_0x27e1ef;console[_0x4932c2('0x1db9')](_0x4d16dc);});}}function _0x24207f(_0x5ae137,_0x48faaf){const _0x3afac7=_0x3399c5;_0x15440b[_0x3afac7('0x28e2')]({'controller':_0x3afac7('0x49f'),'controllerAs':'vm','templateUrl':_0x1e4a8a,'parent':angular[_0x3afac7('0x1ce1')](_0x4d358b[_0x3afac7('0x13aa')]),'targetEvent':_0x5ae137,'clickOutsideToClose':!![],'locals':{'hopper':_0x48faaf,'hoppers':_0x108dfe[_0x3afac7('0xf70')][_0x3afac7('0x2319')],'license':null,'setting':null,'crudPermissions':_0x108dfe[_0x3afac7('0x103e')]}});}function _0x884681(_0x256472,_0x2cfafe){const _0x22f2e6=_0x3399c5;_0x15440b['show']({'controller':'CreateOrEditHopperCampaignIdDialogController','controllerAs':'vm','templateUrl':_0xd0f39e,'parent':angular[_0x22f2e6('0x1ce1')](_0x4d358b[_0x22f2e6('0x13aa')]),'targetEvent':_0x256472,'clickOutsideToClose':!![],'locals':{'hopper':_0x2cfafe,'hoppers':_0x108dfe[_0x22f2e6('0xf70')][_0x22f2e6('0x2319')],'license':null,'setting':null,'crudPermissions':_0x108dfe[_0x22f2e6('0x103e')]}});}function _0x34cce5(_0xcecfa5,_0x3bbd17){const _0x213052=_0x3399c5,_0x5626bf=_0x15440b[_0x213052('0x1121')]()[_0x213052('0x24d3')](_0x213052('0x14f1'))[_0x213052('0x211f')](_0x213052('0xa53')+(_0xcecfa5[_0x213052('0x2154')]||_0x213052('0x2774'))+_0x213052('0x1d23')+_0x213052('0xe9f'))['ariaLabel'](_0x213052('0x538'))['targetEvent'](_0x3bbd17)['ok']('OK')[_0x213052('0x1d47')](_0x213052('0x28a0'));_0x15440b[_0x213052('0x28e2')](_0x5626bf)[_0x213052('0x17e7')](function(){_0x4828e5(_0xcecfa5);},function(){const _0x479712=_0x213052;console[_0x479712('0x1d63')](_0x479712('0x28a0'));});}function _0x4828e5(_0x154024){const _0x39c970=_0x3399c5;return _0x353021[_0x39c970('0xf6a')][_0x39c970('0x1da6')]({'id':_0x154024['id']})[_0x39c970('0x1af5')]['then'](function(){const _0x185da6=_0x39c970;_0x49cbdd()[_0x185da6('0x5f3')](_0x108dfe[_0x185da6('0xf70')][_0x185da6('0x2319')],{'id':_0x154024['id']}),_0x108dfe[_0x185da6('0xf70')][_0x185da6('0x335')]--,!_0x108dfe[_0x185da6('0xf70')]['rows']['length']&&_0x108dfe[_0x185da6('0x172f')](),_0xe88b77[_0x185da6('0x130d')]({'title':'Hopper\x20deleted!','msg':_0x154024[_0x185da6('0x2154')]?_0x154024['phone']+_0x185da6('0x149f'):''});})[_0x39c970('0x16df')](function(_0x1d3f98){const _0x49b253=_0x39c970;_0xe88b77[_0x49b253('0x1db9')]({'title':_0x1d3f98[_0x49b253('0x11c5')]?'API:'+_0x1d3f98[_0x49b253('0x11c5')]+'\x20-\x20'+_0x1d3f98[_0x49b253('0x1833')]:_0x49b253('0x4b1'),'msg':_0x1d3f98[_0x49b253('0x1457')]?JSON['stringify'](_0x1d3f98['data']):_0x1d3f98[_0x49b253('0x9b6')]()});});}function _0x27fe77(){const _0x39e362=_0x3399c5;_0x108dfe['queryHopper'][_0x39e362('0xf19')]=(_0x108dfe['queryHopper'][_0x39e362('0x115a')]-0x1)*_0x108dfe[_0x39e362('0x161b')][_0x39e362('0x193b')],_0x108dfe['queryHopper']['id']=_0x108dfe['contact']['id'],_0x108dfe['promise']=_0x353021[_0x39e362('0x1d2a')]['getHoppers'](_0x108dfe[_0x39e362('0x161b')],_0x341b09(_0x39e362('0xf70')))[_0x39e362('0x1af5')];}function _0x1379c4(){const _0x40b631=_0x3399c5;_0x108dfe[_0x40b631('0x518')][_0x40b631('0xf19')]=(_0x108dfe[_0x40b631('0x518')][_0x40b631('0x115a')]-0x1)*_0x108dfe[_0x40b631('0x518')][_0x40b631('0x193b')],_0x108dfe['queryFinal']['id']=_0x108dfe[_0x40b631('0x1c58')]['id'],_0x108dfe[_0x40b631('0x1691')]=_0x353021[_0x40b631('0x1d2a')][_0x40b631('0x1ee6')](_0x108dfe[_0x40b631('0x518')],_0x341b09(_0x40b631('0x244c')))[_0x40b631('0x1af5')];}function _0xa9bc51(){const _0x3bafd0=_0x3399c5;_0x108dfe['queryHistory'][_0x3bafd0('0xf19')]=(_0x108dfe[_0x3bafd0('0x13e2')]['page']-0x1)*_0x108dfe[_0x3bafd0('0x13e2')][_0x3bafd0('0x193b')],_0x108dfe[_0x3bafd0('0x13e2')]['id']=_0x108dfe[_0x3bafd0('0x1c58')]['id'],_0x108dfe['promise']=_0x353021[_0x3bafd0('0x1d2a')][_0x3bafd0('0x200b')](_0x108dfe[_0x3bafd0('0x13e2')],_0x341b09(_0x3bafd0('0x4f9')))['$promise'];}function _0x5a2829(){const _0x1656c6=_0x3399c5;_0x108dfe[_0x1656c6('0x1d70')][_0x1656c6('0xf19')]=(_0x108dfe[_0x1656c6('0x1d70')][_0x1656c6('0x115a')]-0x1)*_0x108dfe[_0x1656c6('0x1d70')][_0x1656c6('0x193b')],_0x108dfe['queryJscriptySession']['id']=_0x108dfe[_0x1656c6('0x1c58')]['id'],_0x108dfe[_0x1656c6('0x1691')]=_0x353021[_0x1656c6('0x1d2a')][_0x1656c6('0x1cf4')](_0x108dfe['queryJscriptySession'],_0x341b09(_0x1656c6('0x21b3')))[_0x1656c6('0x1af5')];}function _0x14a739(_0x8a5539){const _0x1d912a=_0x3399c5;if(_0x108dfe['contact'][_0x1d912a('0x7f8')]){const _0x14cff2=_0x15440b[_0x1d912a('0x1121')]()[_0x1d912a('0x24d3')](_0x1d912a('0xcbd')+_0x108dfe['contact'][_0x1d912a('0x7f8')])[_0x1d912a('0x18c5')](_0x1d912a('0x1189')+_0x108dfe[_0x1d912a('0x1c58')]['firstName']||0x0||0x0)['targetEvent'](_0x8a5539)['ok']('Ok')['cancel'](_0x1d912a('0x1b70'));return _0x15440b[_0x1d912a('0x28e2')](_0x14cff2)[_0x1d912a('0x17e7')](_0x108dfe[_0x1d912a('0x176c')])[_0x1d912a('0x16df')](function(){const _0x268f13=_0x1d912a;_0x108dfe[_0x268f13('0x1c58')][_0x268f13('0x7f8')]=null;});}}function _0x2e8ce2(){const _0x507951=_0x3399c5;return _0x353021[_0x507951('0x25b')][_0x507951('0x6c7')]({'id':_0x108dfe[_0x507951('0x1c58')][_0x507951('0x7f8')]})[_0x507951('0x1af5')][_0x507951('0x17e7')](function(_0xd84a2a){const _0x5b9d87=_0x507951;_0x108dfe[_0x5b9d87('0x1341')]=_0xd84a2a||{'rows':[],'count':0x0};})[_0x507951('0x16df')](function(_0x1e164d){const _0x5f33ad=_0x507951;console[_0x5f33ad('0x1db9')](_0x1e164d);});}function _0x2dd023(){const _0x1e170b=_0x3399c5;return _0x353021['userProfileSection'][_0x1e170b('0x1c53')]({'userProfileId':_0x108dfe[_0x1e170b('0x197c')]['userProfileId'],'sectionId':0x12e})[_0x1e170b('0x1af5')]['then'](function(_0x4e6209){const _0x4ea2cb=_0x1e170b,_0x58b562=_0x4e6209[_0x4ea2cb('0x2319')]?_0x4e6209[_0x4ea2cb('0x2319')][0x0]:null;return _0x3eac2d['parseCrudPermissions'](_0x58b562?_0x58b562[_0x4ea2cb('0x103e')]:null);})[_0x1e170b('0x16df')](function(_0x21fcd9){const _0x11573a=_0x1e170b;_0xe88b77[_0x11573a('0x1db9')]({'title':_0x21fcd9[_0x11573a('0x11c5')]?_0x11573a('0x14f7')+_0x21fcd9[_0x11573a('0x11c5')]+_0x11573a('0x16e4')+_0x21fcd9['statusText']:'API:GET_COMPANY_SECTION','msg':_0x21fcd9[_0x11573a('0x1457')]?JSON[_0x11573a('0x678')](_0x21fcd9['data']):_0x21fcd9['toString']()});});}function _0x4ba889(_0x3e8ffe,_0x1d3c41){const _0x517523=_0x3399c5,_0x482b2c=_0x49cbdd()[_0x517523('0xe8e')](_0x108dfe[_0x517523('0x839')][_0x517523('0x2319')],{'id':_0x1d3c41});_0x15440b[_0x517523('0x28e2')]({'controller':_0x517523('0x2850'),'controllerAs':'vm','templateUrl':_0x262121,'parent':angular[_0x517523('0x1ce1')](_0x4d358b['body']),'targetEvent':_0x3e8ffe,'clickOutsideToClose':!![],'locals':{'companies':[],'license':null,'setting':null,'crudPermissions':_0x482b2c[_0x517523('0xe5c')]===![]?{'readOnly':!![],'canEdit':![],'canDelete':![]}:_0x2dd023()},'resolve':{'company':[_0x517523('0x177'),function(_0x2f1edb){const _0x16b3a9=_0x517523;return _0x2f1edb[_0x16b3a9('0x898')](_0x16b3a9('0x1281'),{'id':_0x1d3c41});}]}});}function _0x19e344(_0x226d10){const _0x4cf533=_0x3399c5;_0x15440b['show']({'controller':_0x4cf533('0xa23'),'controllerAs':'vm','templateUrl':_0x141b55,'parent':angular[_0x4cf533('0x1ce1')](_0x4d358b[_0x4cf533('0x13aa')]),'targetEvent':_0x226d10,'clickOutsideToClose':!![],'resolve':{'lists':[_0x4cf533('0x177'),'Auth',function(_0x58a7e2,_0x30a784){const _0x42262c=_0x4cf533;return _0x30a784[_0x42262c('0x1ba2')](_0x42262c('0x20bf'))?_0x58a7e2[_0x42262c('0x898')]('cmList@get',{'fields':'id,name'}):_0x58a7e2[_0x42262c('0x898')](_0x42262c('0x1164'),{'id':_0x108dfe[_0x42262c('0x197c')]['userProfileId'],'section':'Lists','fields':_0x42262c('0x12d2')});}]},'locals':{'contacts':_0x42de5b[_0x4cf533('0x2319')],'contact':_0x471dd0}});}function _0x5c3437(){const _0x420a6b=_0x3399c5;_0x353021['cmContact'][_0x420a6b('0x27ba')]({'id':_0x108dfe[_0x420a6b('0x1c58')]['id']},_0x108dfe['contact'])[_0x420a6b('0x1af5')][_0x420a6b('0x17e7')](function(){const _0x4f8ff2=_0x420a6b;_0xe88b77[_0x4f8ff2('0x130d')]({'title':_0x4f8ff2('0x11f0'),'msg':_0x108dfe[_0x4f8ff2('0x1c58')][_0x4f8ff2('0x2aa')]?_0x108dfe['contact'][_0x4f8ff2('0x2aa')]+_0x4f8ff2('0x12b0'):''});})[_0x420a6b('0x17e7')](function(){const _0x42b227=_0x420a6b;return _0x353021['cmContact'][_0x42b227('0x4bc')]({'id':_0x108dfe[_0x42b227('0x1c58')]['id'],'ids':_0x108dfe[_0x42b227('0x28a6')]})[_0x42b227('0x1af5')];})[_0x420a6b('0x16df')](function(_0x939a17){const _0x218c70=_0x420a6b;_0xe88b77[_0x218c70('0x1db9')]({'title':_0x939a17[_0x218c70('0x11c5')]?'API:'+_0x939a17[_0x218c70('0x11c5')]+'\x20-\x20'+_0x939a17['statusText']:_0x218c70('0x19aa'),'msg':_0x939a17[_0x218c70('0x1457')]?JSON[_0x218c70('0x678')](_0x939a17[_0x218c70('0x1457')]):_0x939a17[_0x218c70('0x9b6')]()});});}function _0x4d6836(_0x2b48ff){return _0x2b48ff===null?undefined:new Date(_0x2b48ff);}function _0x3a5368(){const _0x25a04d=_0x3399c5;_0x3d2f75['go'](_0x25a04d('0x6f8'),{},{'reload':!![],'notify':!![]});}}const _0x32ad26=_0x52af6f;_0x27d553['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x14f6'),_0x4376d8('0x33a'),'$q',_0x4376d8('0xef1'),_0x4376d8('0x2504'),_0x4376d8('0x839'),'toasty',_0x4376d8('0x212e'),'socket',_0x4376d8('0x668'),_0x4376d8('0xc89'),_0x4376d8('0x9c9'),_0x4376d8('0x1d11')];function _0x27d553(_0x469ebf,_0xb5f79e,_0x2ec422,_0x2446cf,_0x41bb58,_0x29c566,_0x42dc7d,_0x237bb9,_0x2da19b,_0xc40d87,_0xc9f7f8,_0x337324,_0x4af5e3,_0x915ad4){const _0x5deedc=_0x4376d8,_0x42e118=this;_0x42e118[_0x5deedc('0x11eb')]=![],_0x42e118[_0x5deedc('0x232d')]=!![],_0x42e118[_0x5deedc('0x1d11')]=_0x915ad4,_0x42e118[_0x5deedc('0xb0c')]=0x0,_0x42e118[_0x5deedc('0x2284')]={'finish':![],'rows':0x0,'affectedRows':0x0,'failedRows':0x0,'duplicatedRows':0x0,'errors':[]},_0x42e118[_0x5deedc('0xda3')]=[{'key':_0x5deedc('0x1761'),'required':!![]},{'key':_0x5deedc('0x8d6'),'required':![]},{'key':_0x5deedc('0x2154'),'required':!![]},{'key':_0x5deedc('0xa4f'),'required':![]},{'key':_0x5deedc('0x822'),'required':![]},{'key':_0x5deedc('0x2066'),'required':![]},{'key':'country','required':![]},{'key':_0x5deedc('0xf86'),'required':![]},{'key':'street','required':![]},{'key':'postalCode','required':![]},{'key':_0x5deedc('0xc23'),'required':![]}],_0x42e118[_0x5deedc('0xf47')]=[{'key':_0x5deedc('0x5e5'),'required':![]},{'key':_0x5deedc('0x2809'),'required':![]},{'key':_0x5deedc('0x1a6d'),'required':![]}],_0x42e118['binding']={},_0x42e118[_0x5deedc('0x2426')]=[],_0x42e118['lists']=_0x29c566||{'rows':[],'count':0x0},_0x42e118[_0x5deedc('0x839')]=_0x42dc7d||{'rows':[],'count':0x0},_0x42e118[_0x5deedc('0x1341')]={'rows':[],'count':0x0},_0x42e118[_0x5deedc('0x9c9')]=_0x4af5e3||[],_0x42e118[_0x5deedc('0x136e')]=_0x5c95fa,_0x42e118[_0x5deedc('0x7d')]=_0x3f4e81,_0x42e118[_0x5deedc('0x4af')]=_0x2d214f,_0x42e118[_0x5deedc('0x24d8')]=_0x3a4e6b,_0x42e118[_0x5deedc('0x243c')]=_0x16ae3f,_0x42e118[_0x5deedc('0x1240')]=_0x5c1d55;const _0x5d0182=_0x107a13()()[_0x5deedc('0x178a')]();_0xc40d87['on'](_0x5deedc('0x632')+_0x5d0182,_0x1a3d7a);function _0x3f4e81(){const _0x3a105f=_0x5deedc;return _0x2da19b[_0x3a105f('0x25b')][_0x3a105f('0x6c7')]({'id':_0x42e118[_0x3a105f('0x7f8')]})['$promise'][_0x3a105f('0x17e7')](function(_0x353af0){const _0x1f2e25=_0x3a105f;_0x42e118[_0x1f2e25('0x1341')]=_0x353af0;})[_0x3a105f('0x16df')](function(_0x37702c){const _0x14ad9a=_0x3a105f;console[_0x14ad9a('0x1db9')](_0x37702c);});}function _0x2d214f(){const _0x9b345e=_0x5deedc;_0x42e118[_0x9b345e('0x11eb')]=_0x107a13()(),_0x2da19b[_0x9b345e('0x1d2a')][_0x9b345e('0x1588')]({'id':_0x337324[_0x9b345e('0x6b3')],'binding':_0x42e118[_0x9b345e('0xfc3')],'ListId':_0x42e118[_0x9b345e('0x7f8')],'CompanyId':_0x42e118[_0x9b345e('0x452')],'duplicates':_0x42e118['duplicates'],'socket_timestamp':_0x5d0182})[_0x9b345e('0x1af5')][_0x9b345e('0x17e7')](function(_0x205f18){const _0x5f0d0=_0x9b345e;_0x42e118['stopping']=![],_0x205f18&&_0x205f18[_0x5f0d0('0xb0c')]&&(_0x42e118[_0x5f0d0('0xb0c')]=_0x205f18[_0x5f0d0('0xb0c')]);})['catch'](function(){const _0x550017=_0x9b345e;_0x42e118[_0x550017('0x11eb')]=![],_0x237bb9['error']({'title':_0x550017('0x5dd'),'msg':_0x550017('0x26dc')});});}function _0x1a3d7a(_0x5be30b){_0x41bb58(function(){const _0x3cbfcd=a0_0xd29e;_0x42e118['result']['rows']=_0x5be30b[_0x3cbfcd('0x2319')];if(_0x5be30b[_0x3cbfcd('0x73e')])for(let _0x4eb3e9=0x0;_0x4eb3e9<_0x5be30b['errors'][_0x3cbfcd('0x1f73')];_0x4eb3e9++){_0x42e118[_0x3cbfcd('0x2284')][_0x3cbfcd('0x73e')][_0x3cbfcd('0x269f')](_0x5be30b[_0x3cbfcd('0x73e')][_0x4eb3e9]);}if(_0x5be30b[_0x3cbfcd('0x257b')]){_0x42e118['result'][_0x3cbfcd('0x257b')]=!![],_0x42e118['result'][_0x3cbfcd('0x13ba')]=_0x5be30b[_0x3cbfcd('0x13ba')],_0x42e118['result'][_0x3cbfcd('0x803')]=_0x42e118[_0x3cbfcd('0x2284')][_0x3cbfcd('0x73e')][_0x3cbfcd('0x1f73')];const _0x28c7c3=_0x42e118[_0x3cbfcd('0x2284')]['rows']-_0x42e118[_0x3cbfcd('0x2284')][_0x3cbfcd('0x13ba')]-_0x42e118[_0x3cbfcd('0x2284')][_0x3cbfcd('0x73e')][_0x3cbfcd('0x1f73')];_0x28c7c3&&_0x28c7c3>0x0&&(_0x42e118[_0x3cbfcd('0x20b3')][_0x3cbfcd('0x1f73')]?_0x42e118[_0x3cbfcd('0x2284')][_0x3cbfcd('0x16b6')]=_0x28c7c3:_0x42e118[_0x3cbfcd('0x2284')][_0x3cbfcd('0x803')]+=_0x28c7c3),_0x42e118[_0x3cbfcd('0x2284')][_0x3cbfcd('0x220e')]=_0x107a13()()[_0x3cbfcd('0x5e')](_0x42e118[_0x3cbfcd('0x11eb')],_0x3cbfcd('0x2415'));}});}function _0x3a4e6b(){const _0x58efb1=_0x5deedc,_0x582ef8=_0x4af5e3;return _0x582ef8[_0x58efb1('0x269f')](_0x58efb1('0x25bc')),_0x582ef8;}function _0x16ae3f(){const _0x1661da=_0x5deedc,_0x4aca88=[];for(let _0xf2c8ce=0x0;_0xf2c8ce<_0x42e118[_0x1661da('0x2284')]['errors'][_0x1661da('0x1f73')];_0xf2c8ce+=0x1){const _0x5af82e=_0x42e118[_0x1661da('0x2284')][_0x1661da('0x73e')][_0xf2c8ce]['row'];_0x5af82e[_0x1661da('0x25bc')]=_0x42e118[_0x1661da('0x2284')][_0x1661da('0x73e')][_0xf2c8ce][_0x1661da('0x1603')],_0x4aca88['push'](_0x5af82e);}return _0x4aca88;}function _0x5c1d55(){const _0x1efeb5=_0x5deedc;_0x42e118[_0x1efeb5('0x232d')]=!![];if(_0x42e118['pid'])return _0x2da19b[_0x1efeb5('0xca8')][_0x1efeb5('0x24f4')]({'pid':_0x42e118['pid']})[_0x1efeb5('0x1af5')][_0x1efeb5('0x17e7')](function(){const _0x12fc2b=_0x1efeb5;_0x237bb9[_0x12fc2b('0x130d')]({'title':_0x12fc2b('0xbc1'),'msg':_0x12fc2b('0x25ab')});})[_0x1efeb5('0x16df')](function(){const _0x47dfa6=_0x1efeb5;_0x237bb9[_0x47dfa6('0x1db9')]({'title':_0x47dfa6('0x1d7a'),'msg':_0x47dfa6('0x177d')});});}_0xc9f7f8[_0x5deedc('0x207c')](_0x5deedc('0x2b4'),function(){const _0x20cba9=_0x5deedc;_0xc40d87[_0x20cba9('0x1c65')]('contact:import:'+_0x5d0182);});function _0x5c95fa(){const _0x2e80e6=_0x5deedc;_0xc40d87[_0x2e80e6('0x1c65')](_0x2e80e6('0x632')+_0x5d0182),_0xb5f79e[_0x2e80e6('0x212a')]();}}const _0x2bf232=_0x27d553;_0x2ea2d8['$inject']=[_0x4376d8('0x14f6'),'$scope','toasty','contact',_0x4376d8('0x2720'),'lists',_0x4376d8('0x212e')];function _0x2ea2d8(_0x1be815,_0x44a242,_0x1aa9c2,_0x5ee7f2,_0x440dd2,_0x3faae1,_0x4b79d9){const _0x3c8992=_0x4376d8,_0x1d9dad=this;_0x1d9dad[_0x3c8992('0x73e')]=[],_0x1d9dad['title']=_0x3c8992('0x23bd'),_0x1d9dad[_0x3c8992('0x1c58')]=angular[_0x3c8992('0x14e5')](_0x5ee7f2),_0x1d9dad['lists']=_0x3faae1||[],_0x1d9dad[_0x3c8992('0x2811')]=function(){const _0x5402a8=_0x3c8992;_0x1d9dad[_0x5402a8('0x1565')]?_0x4b79d9[_0x5402a8('0x1d2a')][_0x5402a8('0x1c53')]({'fields':'id,firstName,lastName,phone,email','filter':_0x1d9dad[_0x5402a8('0x1565')],'ListId':_0x5ee7f2[_0x5402a8('0x7f8')]})['$promise'][_0x5402a8('0x17e7')](function(_0x4827dc){const _0x480e49=_0x5402a8;_0x1d9dad[_0x480e49('0x2720')]=_0x4827dc[_0x480e49('0x2319')];})[_0x5402a8('0x16df')](function(_0x46574e){const _0x1ab978=_0x5402a8;console[_0x1ab978('0x1db9')](_0x46574e);}):_0x1d9dad[_0x5402a8('0x2720')]=[];},_0x1d9dad[_0x3c8992('0x15ef')]=_0x525f73,_0x1d9dad[_0x3c8992('0x136e')]=_0x523ce2;function _0x525f73(_0x1b4f10,_0x21d122,_0x3222ee){const _0x33d55f=_0x3c8992,_0x592b82=_0x1be815[_0x33d55f('0x1121')]({'skipHide':!![]})['title']('Would\x20you\x20like\x20to\x20merge\x20your\x20contacs?')['textContent'](_0x33d55f('0xe6b')+_0x3222ee['id']+_0x33d55f('0x90f')+_0x21d122['id']+'.')[_0x33d55f('0x104f')](_0x1b4f10)['ok']('Ok')[_0x33d55f('0x1d47')]('Cancel');_0x1be815[_0x33d55f('0x28e2')](_0x592b82)[_0x33d55f('0x17e7')](function(){const _0x2d95c0=_0x33d55f;return _0x4b79d9['cmContact'][_0x2d95c0('0x1ced')]({'to':_0x3222ee['id'],'from':_0x21d122['id']})['$promise'];})[_0x33d55f('0x17e7')](function(_0x3b7cbc){const _0x45179b=_0x33d55f;_0x1be815['hide']({'new':_0x3b7cbc,'to':_0x3222ee,'from':_0x21d122}),_0x49cbdd()[_0x45179b('0x5f3')](_0x440dd2,{'id':_0x3222ee['id']}),_0x49cbdd()[_0x45179b('0x5f3')](_0x440dd2,{'id':_0x21d122['id']}),_0x440dd2[_0x45179b('0x1893')](_0x3b7cbc);})[_0x33d55f('0x17e7')](function(){const _0xcd6fb2=_0x33d55f;_0x1aa9c2[_0xcd6fb2('0x130d')]({'title':'Contact\x20properly\x20merged!'});})['catch'](function(_0x5c8278){const _0x27dcdd=_0x33d55f;_0x5c8278&&_0x5c8278['status']&&_0x1aa9c2[_0x27dcdd('0x1db9')]({'title':_0x5c8278['status']?_0x27dcdd('0x14f7')+_0x5c8278['status']+_0x27dcdd('0x16e4')+_0x5c8278['statusText']:_0x27dcdd('0x151a'),'msg':_0x5c8278['data']?JSON[_0x27dcdd('0x678')](_0x5c8278[_0x27dcdd('0x1457')]):_0x5c8278[_0x27dcdd('0x9b6')]()});});}function _0x523ce2(){const _0x49ebbe=_0x3c8992;_0x1be815[_0x49ebbe('0x212a')]();}}const _0x1820cd=_0x2ea2d8,_0x4a7891=_0x4cf2bc['p']+'src/js/modules/main/apps/contactmanager/views/contacts/contacts.html/contacts.html',_0x36ebff=_0x4cf2bc['p']+_0x4376d8('0x1046');_0x455d2e['$inject']=[_0x4376d8('0x183a')];function _0x455d2e(_0x3a827e){const _0xf89f59=_0x4376d8;_0x3a827e[_0xf89f59('0x1b9a')]('app.contactmanager.contacts',{'url':_0xf89f59('0x16f6'),'views':{'content@app':{'templateUrl':_0x4a7891,'controller':_0xf89f59('0x1b78')}},'resolve':{'contacts':['apiResolver',_0xf89f59('0x1885'),_0xf89f59('0x118b'),function(_0x179ac9,_0x50e21b,_0x2585fa){const _0x4ec553=_0xf89f59;return _0x50e21b['hasRole'](_0x4ec553('0x20bf'))?_0x179ac9[_0x4ec553('0x898')](_0x4ec553('0x1f28'),_0x49cbdd()[_0x4ec553('0x1ced')]({'includeAll':!![],'sort':_0x4ec553('0x1ac6'),'limit':0xa,'offset':0x0},_0x2585fa)):_0x179ac9[_0x4ec553('0x898')](_0x4ec553('0x1164'),_0x49cbdd()[_0x4ec553('0x1ced')]({'id':_0x50e21b[_0x4ec553('0x2831')]()[_0x4ec553('0x1e76')],'section':_0x4ec553('0x3c9'),'includeAll':!![],'sort':_0x4ec553('0x1ac6'),'limit':0xa,'offset':0x0},_0x2585fa));}],'lists':['apiResolver',_0xf89f59('0x1885'),function(_0x1b3d89,_0x3716fd){const _0x4dfb4b=_0xf89f59;return _0x3716fd[_0x4dfb4b('0x1ba2')](_0x4dfb4b('0x20bf'))?_0x1b3d89[_0x4dfb4b('0x898')](_0x4dfb4b('0x1fd9'),{'fields':_0x4dfb4b('0x12d2'),'sort':_0x4dfb4b('0x2aa'),'nolimit':!![]}):_0x1b3d89[_0x4dfb4b('0x898')](_0x4dfb4b('0x1164'),{'id':_0x3716fd['getCurrentUser']()['userProfileId'],'section':_0x4dfb4b('0xeee'),'fields':_0x4dfb4b('0x12d2'),'sort':_0x4dfb4b('0x1ac6'),'nolimit':!![]});}],'listsMap':['lists',function(_0x479356){const _0x125b5c=_0xf89f59,_0x38eb51={};for(let _0x2806a7=0x0;_0x2806a7<_0x479356[_0x125b5c('0x2319')][_0x125b5c('0x1f73')];_0x2806a7++){_0x38eb51[_0x479356['rows'][_0x2806a7]['id']]=_0x479356[_0x125b5c('0x2319')][_0x2806a7][_0x125b5c('0x2aa')];}return _0x38eb51;}],'companies':[_0xf89f59('0x177'),'Auth',function(_0x2a6cdb,_0x57f104){const _0x12fb9b=_0xf89f59;return _0x57f104[_0x12fb9b('0x1ba2')](_0x12fb9b('0x20bf'))?_0x2a6cdb[_0x12fb9b('0x898')]('cmCompany@get',{'fields':_0x12fb9b('0x12d2'),'sort':_0x12fb9b('0x2aa'),'nolimit':!![]}):_0x2a6cdb[_0x12fb9b('0x898')](_0x12fb9b('0x1164'),{'id':_0x57f104[_0x12fb9b('0x2831')]()[_0x12fb9b('0x1e76')],'section':_0x12fb9b('0x18d6'),'fields':_0x12fb9b('0x12d2'),'sort':'name','nolimit':!![]});}],'companiesMap':[_0xf89f59('0x839'),function(_0x364a04){const _0x2c3fa0=_0xf89f59,_0x5a4696={};for(let _0x1b1591=0x0;_0x1b1591<_0x364a04['rows'][_0x2c3fa0('0x1f73')];_0x1b1591++){_0x5a4696[_0x364a04[_0x2c3fa0('0x2319')][_0x1b1591]['id']]=_0x364a04['rows'][_0x1b1591][_0x2c3fa0('0x2aa')];}return _0x5a4696;}],'tags':[_0xf89f59('0x177'),_0xf89f59('0x1885'),function(_0x4ff8d7,_0x3607db){const _0x1a97ca=_0xf89f59;return _0x3607db[_0x1a97ca('0x1ba2')](_0x1a97ca('0x20bf'))?_0x4ff8d7[_0x1a97ca('0x898')](_0x1a97ca('0x22aa'),{'fields':'id,name','sort':'name','nolimit':!![]}):_0x4ff8d7[_0x1a97ca('0x898')](_0x1a97ca('0x1164'),{'id':_0x3607db[_0x1a97ca('0x2831')]()[_0x1a97ca('0x1e76')],'section':_0x1a97ca('0x28a6'),'fields':_0x1a97ca('0x12d2'),'sort':'name','nolimit':!![]});}],'userProfile':['apiResolver',_0xf89f59('0x1885'),function(_0x1da490,_0x35dbdc){const _0x4b0a96=_0xf89f59;return _0x1da490['resolve']('userProfile@get',{'fields':_0x4b0a96('0x8d3'),'id':_0x35dbdc[_0x4b0a96('0x2831')]()['userProfileId']});}],'userProfileSection':[_0xf89f59('0x177'),'Auth',function(_0x122ab6,_0x3c7da5){const _0x56a7bf=_0xf89f59;return _0x122ab6['resolve']('userProfileSection@get',{'fields':_0x56a7bf('0x1134'),'userProfileId':_0x3c7da5[_0x56a7bf('0x2831')]()['userProfileId'],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0xf89f59('0x1903')})[_0xf89f59('0x1b9a')](_0xf89f59('0xb51'),{'url':'/:id?tab','params':{'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x36ebff,'controller':_0xf89f59('0x1001')}},'resolve':{'contact':[_0xf89f59('0x177'),'$stateParams',function(_0x5d1004,_0x3b2455){const _0x48cb59=_0xf89f59;return _0x5d1004['resolve'](_0x48cb59('0x1f28'),{'id':_0x3b2455['id']})[_0x48cb59('0x17e7')](function(_0x2e0fa5){const _0x4735d9=_0x48cb59;return _0x2e0fa5['dateOfBirth']&&(_0x2e0fa5[_0x4735d9('0x2066')]=new Date(_0x2e0fa5[_0x4735d9('0x2066')])),_0x2e0fa5;})[_0x48cb59('0x16df')](function(_0x3b865b){const _0x4eabbb=_0x48cb59;console[_0x4eabbb('0x1db9')](_0x3b865b);});}],'hoppers':['apiResolver',_0xf89f59('0x118b'),function(_0x2d4f8d,_0x1e7b2c){const _0x1378d0=_0xf89f59;return _0x2d4f8d[_0x1378d0('0x898')](_0x1378d0('0x18a'),{'id':_0x1e7b2c['id'],'fields':_0x1378d0('0x1842'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'finals':[_0xf89f59('0x177'),_0xf89f59('0x118b'),function(_0x2ea4db,_0x3140ed){const _0x2b8d61=_0xf89f59;return _0x2ea4db[_0x2b8d61('0x898')](_0x2b8d61('0x17c2'),{'id':_0x3140ed['id'],'fields':_0x2b8d61('0xc6e'),'sort':_0x2b8d61('0x1ac6'),'limit':0xa,'offset':0x0});}],'histories':[_0xf89f59('0x177'),'$stateParams',function(_0x11326d,_0x44f6a1){const _0x457d6d=_0xf89f59;return _0x11326d[_0x457d6d('0x898')](_0x457d6d('0x59'),{'id':_0x44f6a1['id'],'fields':_0x457d6d('0x1111'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'jscriptySessions':[_0xf89f59('0x177'),_0xf89f59('0x118b'),function(_0x50ae39,_0x475b95){const _0x16540b=_0xf89f59;return _0x50ae39[_0x16540b('0x898')](_0x16540b('0x1a51'),{'id':_0x475b95['id'],'fields':_0x16540b('0x5'),'sort':_0x16540b('0xb9f'),'limit':0xa,'offset':0x0});}],'companies':['apiResolver',_0xf89f59('0x1885'),function(_0x509665,_0xb750e5){const _0x4aa68f=_0xf89f59;return _0xb750e5['hasRole'](_0x4aa68f('0x20bf'))?_0x509665[_0x4aa68f('0x898')]('cmCompany@get'):_0x509665[_0x4aa68f('0x898')](_0x4aa68f('0x1164'),{'id':_0xb750e5['getCurrentUser']()[_0x4aa68f('0x1e76')],'section':_0x4aa68f('0x18d6')});}],'lists':[_0xf89f59('0x177'),'Auth',function(_0x16ed2e,_0x2c9028){const _0x46148a=_0xf89f59;return _0x2c9028[_0x46148a('0x1ba2')](_0x46148a('0x20bf'))?_0x16ed2e[_0x46148a('0x898')](_0x46148a('0x1fd9'),{'fields':_0x46148a('0x12d2'),'sort':'-updatedAt','nolimit':!![]}):_0x16ed2e['resolve'](_0x46148a('0x1164'),{'id':_0x2c9028[_0x46148a('0x2831')]()[_0x46148a('0x1e76')],'section':_0x46148a('0xeee'),'fields':_0x46148a('0x12d2'),'sort':'-updatedAt','nolimit':!![]});}],'customFields':[_0xf89f59('0x177'),_0xf89f59('0x1c58'),function(_0x2cf30e,_0x1f8790){const _0x265453=_0xf89f59;return _0x1f8790[_0x265453('0x7f8')]?_0x2cf30e['resolve'](_0x265453('0x65'),{'id':_0x1f8790['ListId']}):null;}],'tags':[_0xf89f59('0x177'),_0xf89f59('0x1885'),function(_0x3bbbf3,_0x50d6a9){const _0x119437=_0xf89f59;return _0x50d6a9[_0x119437('0x1ba2')](_0x119437('0x20bf'))?_0x3bbbf3[_0x119437('0x898')](_0x119437('0x22aa')):_0x3bbbf3[_0x119437('0x898')](_0x119437('0x1164'),{'id':_0x50d6a9['getCurrentUser']()[_0x119437('0x1e76')],'section':_0x119437('0x28a6')});}],'userProfileSection':[_0xf89f59('0x177'),_0xf89f59('0x1885'),function(_0x5866e7,_0x1948b8){const _0x481cab=_0xf89f59;return _0x5866e7[_0x481cab('0x898')](_0x481cab('0x23e7'),{'fields':_0x481cab('0x1134'),'userProfileId':_0x1948b8['getCurrentUser']()['userProfileId'],'sectionId':0x12f});}]},'authenticate':!![],'permissionId':0x12f,'bodyClass':_0xf89f59('0x1903')});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x6f8'),[])[_0x4376d8('0x1980')](_0x455d2e)[_0x4376d8('0x5ce')](_0x4376d8('0x1057'),_0x1e4441)[_0x4376d8('0x5ce')](_0x4376d8('0x14cc'),_0xb05b95)[_0x4376d8('0x5ce')]('DuplicateContactDialogController',_0x289769)[_0x4376d8('0x5ce')](_0x4376d8('0x1aac'),_0x3d42f7)[_0x4376d8('0x5ce')](_0x4376d8('0x245e'),_0x32ad26)['controller'](_0x4376d8('0x21c9'),_0x2bf232)[_0x4376d8('0x5ce')](_0x4376d8('0xd55'),_0x1820cd);const _0x3a5035=_0x4cf2bc['p']+_0x4376d8('0x1bf3');_0x11949e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),'$mdDialog','$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),'companies',_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x11949e(_0x2b1aa9,_0x446121,_0x5c648e,_0x44d67a,_0x214c45,_0x205468,_0x349843,_0x155f66,_0x1f0343,_0x3a8b9f,_0x459166,_0xf1eeb,_0x482374,_0x369f7b,_0x411df2,_0x4f632b,_0x3f2886){const _0x66874c=_0x4376d8,_0xd043b0=this;_0xd043b0[_0x66874c('0x1d11')]=_0x4f632b,_0xd043b0[_0x66874c('0x1aeb')]=_0x3f2886,_0xd043b0[_0x66874c('0x197c')]=_0x411df2[_0x66874c('0x2831')](),_0xd043b0['companies']=_0x1f0343||{'count':0x0,'rows':[]},_0xd043b0[_0x66874c('0xdeb')]=_0x3a8b9f,_0xd043b0[_0x66874c('0x383')]=_0x459166&&_0x459166[_0x66874c('0x335')]==0x1?_0x459166[_0x66874c('0x2319')][0x0]:null,_0xd043b0[_0x66874c('0x103e')]=_0x411df2[_0x66874c('0x17a9')](_0xd043b0[_0x66874c('0x383')]?_0xd043b0['userProfileSection'][_0x66874c('0x103e')]:null),_0xd043b0['table']='companies',_0xd043b0[_0x66874c('0x26a1')]='',_0xd043b0[_0x66874c('0x24e1')]=null,_0xd043b0[_0x66874c('0x217d')]=[],_0xd043b0[_0x66874c('0x826')]={'fields':'createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','sort':_0x66874c('0x1ac6'),'limit':0xa,'page':0x1},_0xd043b0[_0x66874c('0xcd4')]=_0x5db87e,_0xd043b0['gotocontactsgoto']=_0x37c2fc,_0xd043b0[_0x66874c('0xbf4')]=_0x58c959,_0xd043b0[_0x66874c('0x130d')]=_0x202b85,_0xd043b0[_0x66874c('0x16eb')]=_0x31f1e1,_0xd043b0[_0x66874c('0x1c17')]=_0x592f3d,_0xd043b0[_0x66874c('0x1e1')]=_0x165883,_0xd043b0[_0x66874c('0x83d')]=_0x1e5ee3,_0xd043b0[_0x66874c('0x2746')]=_0x5a87db,_0xd043b0['deselectCompanies']=_0x91cff2,_0xd043b0[_0x66874c('0xcb3')]=_0x31a442;function _0x5db87e(_0x4b0ff0){const _0x596a6a=_0x66874c;_0x5c648e['go'](_0x596a6a('0xfc8'),{'id':_0x4b0ff0['id'],'company':_0x4b0ff0,'crudPermissions':_0xd043b0[_0x596a6a('0x103e')]});}function _0x37c2fc(_0x33e05f){const _0x6ec388=_0x66874c;if(_0x411df2[_0x6ec388('0x1ba2')](_0x6ec388('0x20bf')))_0x5c648e['go'](_0x6ec388('0x6f8'),{'CompanyId':_0x33e05f['id']});else return _0xf1eeb[_0x6ec388('0x383')][_0x6ec388('0x1c53')]({'userProfileId':_0x411df2[_0x6ec388('0x2831')]()[_0x6ec388('0x1e76')],'sectionId':0x12f})[_0x6ec388('0x1af5')][_0x6ec388('0x17e7')](function(_0x5e2299){const _0x308429=_0x6ec388,_0x50bea9=_0x5e2299&&_0x5e2299[_0x308429('0x2319')]?_0x5e2299[_0x308429('0x2319')][0x0]:null;_0x50bea9&&_0x50bea9[_0x308429('0x1cd3')]?_0x5c648e['go']('app.contactmanager.contacts',{'CompanyId':_0x33e05f['id']}):_0x369f7b[_0x308429('0x1178')]({'title':_0x155f66[_0x308429('0x1acc')](_0x308429('0x286e')),'msg':_0x155f66[_0x308429('0x1acc')](_0x308429('0x1169'))});})['catch'](function(_0x2dcda3){const _0x5af362=_0x6ec388;_0x369f7b[_0x5af362('0x1db9')]({'title':_0x2dcda3[_0x5af362('0x11c5')]?'API:'+_0x2dcda3[_0x5af362('0x11c5')]+_0x5af362('0x16e4')+_0x2dcda3[_0x5af362('0x1833')]:_0x5af362('0x338'),'msg':_0x2dcda3[_0x5af362('0x11c5')]?JSON[_0x5af362('0x678')](_0x2dcda3['data']):_0x2dcda3[_0x5af362('0x9b6')]()});});}function _0x58c959(_0x56cf42,_0x5a4873){const _0x1d915d=_0x66874c,_0x5717d8=_0x214c45['confirm']()[_0x1d915d('0x24d3')](_0x1d915d('0x5e1')+_0x49cbdd()['startCase']('company')+'?')[_0x1d915d('0x211f')](_0x1d915d('0xa53')+(_0x56cf42['name']||'company')+_0x1d915d('0x1d23')+_0x1d915d('0xe9f'))[_0x1d915d('0x2095')](_0x1d915d('0x1330'))[_0x1d915d('0x104f')](_0x5a4873)['ok']('OK')['cancel']('CANCEL');_0x214c45[_0x1d915d('0x28e2')](_0x5717d8)['then'](function(){_0x165883(_0x56cf42);},function(){const _0x12dbae=_0x1d915d;console['log'](_0x12dbae('0x28a0'));});}let _0x31d1d1=!![],_0x2853b2=0x1;_0x2b1aa9['$watch'](_0x66874c('0x3ed'),function(_0x4e76ec,_0x216e99){const _0x4fe0c5=_0x66874c;_0x31d1d1?_0x349843(function(){_0x31d1d1=![];}):(!_0x216e99&&(_0x2853b2=_0xd043b0['query'][_0x4fe0c5('0x115a')]),_0x4e76ec!==_0x216e99&&(_0xd043b0[_0x4fe0c5('0x826')][_0x4fe0c5('0x115a')]=0x1),!_0x4e76ec&&(_0xd043b0['query'][_0x4fe0c5('0x115a')]=_0x2853b2),_0xd043b0[_0x4fe0c5('0x16eb')]());});function _0x202b85(_0xab3b4b){_0xd043b0['companies']=_0xab3b4b||{'count':0x0,'rows':[]};}function _0x31f1e1(){const _0x510775=_0x66874c;_0xd043b0[_0x510775('0x826')]['offset']=(_0xd043b0['query'][_0x510775('0x115a')]-0x1)*_0xd043b0[_0x510775('0x826')]['limit'],_0x411df2['hasRole'](_0x510775('0x20bf'))?_0xd043b0[_0x510775('0x1691')]=_0xf1eeb['cmCompany'][_0x510775('0x1c53')](_0xd043b0['query'],_0x202b85)[_0x510775('0x1af5')]:(_0xd043b0[_0x510775('0x826')]['id']=_0xd043b0['userProfile']['id'],_0xd043b0[_0x510775('0x826')][_0x510775('0x16f8')]=_0x510775('0x18d6'),_0xd043b0['promise']=_0xf1eeb[_0x510775('0xdeb')][_0x510775('0x2447')](_0xd043b0['query'],_0x202b85)['$promise']);}function _0x592f3d(_0x1c5446,_0x3a8424){const _0x33c4eb=_0x66874c;_0x214c45[_0x33c4eb('0x28e2')]({'controller':_0x33c4eb('0x2850'),'controllerAs':'vm','templateUrl':_0x3a5035,'parent':angular[_0x33c4eb('0x1ce1')](_0x205468[_0x33c4eb('0x13aa')]),'targetEvent':_0x1c5446,'clickOutsideToClose':!![],'locals':{'company':_0x3a8424,'companies':_0xd043b0[_0x33c4eb('0x839')][_0x33c4eb('0x2319')],'license':_0xd043b0[_0x33c4eb('0x1d11')],'setting':_0xd043b0['setting'],'crudPermissions':_0xd043b0[_0x33c4eb('0x103e')]}});}function _0x165883(_0x493824){const _0x3897a1=_0x66874c;_0xf1eeb[_0x3897a1('0x27e')]['delete']({'id':_0x493824['id']})[_0x3897a1('0x1af5')][_0x3897a1('0x17e7')](function(){const _0x219169=_0x3897a1;_0x49cbdd()[_0x219169('0x5f3')](_0xd043b0[_0x219169('0x839')]['rows'],{'id':_0x493824['id']}),_0xd043b0[_0x219169('0x839')][_0x219169('0x335')]-=0x1,!_0xd043b0['companies'][_0x219169('0x2319')][_0x219169('0x1f73')]&&_0xd043b0['getCompanies'](),_0x369f7b[_0x219169('0x130d')]({'title':_0x49cbdd()['startCase'](_0x219169('0x111d'))+'\x20deleted!','msg':_0x493824[_0x219169('0x2aa')]?_0x493824[_0x219169('0x2aa')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x172a83){const _0x191f98=_0x3897a1;if(_0x172a83[_0x191f98('0x1457')]&&_0x172a83[_0x191f98('0x1457')][_0x191f98('0x73e')]&&_0x172a83[_0x191f98('0x1457')][_0x191f98('0x73e')][_0x191f98('0x1f73')]){_0xd043b0[_0x191f98('0x73e')]=_0x172a83[_0x191f98('0x1457')][_0x191f98('0x73e')]||[{'message':_0x172a83[_0x191f98('0x9b6')](),'type':_0x191f98('0x1529')}];for(let _0x2b5ae8=0x0;_0x2b5ae8<_0x172a83['data']['errors']['length'];_0x2b5ae8++){_0x369f7b['error']({'title':_0x172a83[_0x191f98('0x1457')][_0x191f98('0x73e')][_0x2b5ae8][_0x191f98('0x412')],'msg':_0x172a83[_0x191f98('0x1457')]['errors'][_0x2b5ae8][_0x191f98('0x1603')]});}}else _0x369f7b[_0x191f98('0x1db9')]({'title':_0x172a83[_0x191f98('0x11c5')]?_0x191f98('0x14f7')+_0x172a83[_0x191f98('0x11c5')]+_0x191f98('0x16e4')+_0x172a83[_0x191f98('0x1833')]:_0x191f98('0x1529'),'msg':_0x172a83['data']?JSON[_0x191f98('0x678')](_0x172a83[_0x191f98('0x1457')][_0x191f98('0x1603')]):_0x172a83[_0x191f98('0x1603')]||_0x172a83[_0x191f98('0x9b6')]()});});}function _0x1e5ee3(){const _0x52b947=_0x66874c,_0x40afc2=angular['copy'](_0xd043b0[_0x52b947('0x217d')]);return _0xd043b0['selectedCompanies']=[],_0x40afc2;}function _0x5a87db(_0x149335){const _0x5a3a89=_0x66874c,_0x15caaa=_0x214c45[_0x5a3a89('0x1121')]()[_0x5a3a89('0x24d3')](_0x5a3a89('0x2701'))[_0x5a3a89('0x211f')](_0x5a3a89('0xa53')+_0xd043b0['selectedCompanies'][_0x5a3a89('0x1f73')]+_0x5a3a89('0x145a')+_0x5a3a89('0xe9f'))[_0x5a3a89('0x2095')]('delete\x20Companys')['targetEvent'](_0x149335)['ok']('OK')[_0x5a3a89('0x1d47')](_0x5a3a89('0x28a0'));_0x214c45[_0x5a3a89('0x28e2')](_0x15caaa)[_0x5a3a89('0x17e7')](function(){const _0x49043f=_0x5a3a89;_0xd043b0['selectedCompanies']['forEach'](function(_0x4998e2){_0x165883(_0x4998e2);}),_0xd043b0[_0x49043f('0x217d')]=[];});}function _0x91cff2(){const _0x143adb=_0x66874c;_0xd043b0[_0x143adb('0x217d')]=[];}function _0x31a442(){const _0x56bfc4=_0x66874c;_0xd043b0[_0x56bfc4('0x217d')]=_0xd043b0['companies'][_0x56bfc4('0x2319')];}}const _0x2cb41a=_0x11949e;_0x103120[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x839'),_0x4376d8('0x275c'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x103120(_0x4aad19,_0x57aed7,_0x494d2f,_0x572967,_0x3300ba,_0x1a4dcd,_0x828f85,_0xcd3d19,_0xf3b80f,_0x279fa6,_0x238511,_0x5055eb,_0x267f08,_0x277cd2){const _0x3fff3a=_0x4376d8,_0x34bbdf=this;_0x34bbdf[_0x3fff3a('0x197c')]=_0x238511['getCurrentUser'](),_0x34bbdf[_0x3fff3a('0x73e')]=[],_0x34bbdf[_0x3fff3a('0x1aeb')]=_0x267f08,_0x34bbdf[_0x3fff3a('0x1d11')]=_0x5055eb,_0x34bbdf[_0x3fff3a('0x103e')]=_0x277cd2,_0x34bbdf[_0x3fff3a('0x6ee')]={},_0x34bbdf[_0x3fff3a('0x1572')]=_0x34bbdf[_0x3fff3a('0x1aeb')]&&_0x34bbdf[_0x3fff3a('0x1aeb')][_0x3fff3a('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x34bbdf[_0x3fff3a('0x24d3')]=_0x3fff3a('0x473'),_0x34bbdf[_0x3fff3a('0x275c')]=angular[_0x3fff3a('0x14e5')](_0xf3b80f),_0x34bbdf[_0x3fff3a('0x839')]=_0xcd3d19,_0x34bbdf[_0x3fff3a('0x2884')]=![];!_0x34bbdf[_0x3fff3a('0x275c')]&&(_0x34bbdf[_0x3fff3a('0x275c')]={},_0x34bbdf[_0x3fff3a('0x24d3')]=_0x3fff3a('0x1e4e'),_0x34bbdf[_0x3fff3a('0x2884')]=!![]);_0x34bbdf[_0x3fff3a('0xa04')]=_0x54a64e,_0x34bbdf[_0x3fff3a('0x155')]=_0x58210d,_0x34bbdf[_0x3fff3a('0x1e1')]=_0x7a42a5,_0x34bbdf[_0x3fff3a('0x1300')]=_0x40165e,_0x34bbdf['closeDialog']=_0x6ab7d1;function _0x54a64e(){const _0x2be63=_0x3fff3a;_0x34bbdf[_0x2be63('0x73e')]=[],_0x279fa6[_0x2be63('0x27e')]['save'](_0x34bbdf[_0x2be63('0x275c')])['$promise'][_0x2be63('0x17e7')](function(_0x1fa277){const _0x22a360=_0x2be63;_0x34bbdf['companies'][_0x22a360('0x1893')](_0x1fa277['toJSON']()),_0x828f85[_0x22a360('0x130d')]({'title':_0x22a360('0x1e78'),'msg':_0x34bbdf[_0x22a360('0x275c')][_0x22a360('0x2aa')]?_0x34bbdf[_0x22a360('0x275c')][_0x22a360('0x2aa')]+_0x22a360('0x15a'):''}),_0x6ab7d1(_0x1fa277);})['catch'](function(_0x1b1340){const _0x60c498=_0x2be63;if(_0x1b1340[_0x60c498('0x1457')]&&_0x1b1340[_0x60c498('0x1457')][_0x60c498('0x73e')]&&_0x1b1340[_0x60c498('0x1457')][_0x60c498('0x73e')]['length']){_0x34bbdf['errors']=_0x1b1340[_0x60c498('0x1457')]['errors']||[{'message':_0x1b1340[_0x60c498('0x9b6')](),'type':_0x60c498('0x28be')}];for(let _0x5b7158=0x0;_0x5b7158<_0x1b1340['data'][_0x60c498('0x73e')]['length'];_0x5b7158+=0x1){_0x828f85[_0x60c498('0x1db9')]({'title':_0x1b1340[_0x60c498('0x1457')][_0x60c498('0x73e')][_0x5b7158][_0x60c498('0x412')],'msg':_0x1b1340[_0x60c498('0x1457')][_0x60c498('0x73e')][_0x5b7158]['message']});}}else _0x828f85[_0x60c498('0x1db9')]({'title':_0x1b1340['status']?_0x60c498('0x14f7')+_0x1b1340['status']+'\x20-\x20'+_0x1b1340[_0x60c498('0x1833')]:_0x60c498('0x28be'),'msg':_0x1b1340[_0x60c498('0x1457')]?JSON[_0x60c498('0x678')](_0x1b1340[_0x60c498('0x1457')][_0x60c498('0x1603')]):_0x1b1340[_0x60c498('0x9b6')]()});});}function _0x58210d(){const _0x1497cd=_0x3fff3a;_0x34bbdf[_0x1497cd('0x73e')]=[],_0x279fa6[_0x1497cd('0x27e')][_0x1497cd('0x27ba')]({'id':_0x34bbdf[_0x1497cd('0x275c')]['id']},_0x34bbdf['company'])[_0x1497cd('0x1af5')][_0x1497cd('0x17e7')](function(_0x29a4a9){const _0x1a201c=_0x1497cd,_0x13f1c5=_0x49cbdd()[_0x1a201c('0xe8e')](_0x34bbdf['companies'],{'id':_0x29a4a9['id']});_0x13f1c5&&_0x49cbdd()[_0x1a201c('0x1ced')](_0x13f1c5,_0x49cbdd()[_0x1a201c('0x230a')](_0x29a4a9['toJSON'](),_0x49cbdd()[_0x1a201c('0x1c0f')](_0x13f1c5))),_0x828f85[_0x1a201c('0x130d')]({'title':_0x1a201c('0x1b4b'),'msg':_0x34bbdf[_0x1a201c('0x275c')][_0x1a201c('0x2aa')]?_0x34bbdf[_0x1a201c('0x275c')][_0x1a201c('0x2aa')]+_0x1a201c('0x15ca'):''}),_0x6ab7d1(_0x29a4a9);})[_0x1497cd('0x16df')](function(_0xad7a20){const _0x2dade6=_0x1497cd;if(_0xad7a20['data']&&_0xad7a20['data'][_0x2dade6('0x73e')]&&_0xad7a20[_0x2dade6('0x1457')][_0x2dade6('0x73e')][_0x2dade6('0x1f73')]){_0x34bbdf[_0x2dade6('0x73e')]=_0xad7a20[_0x2dade6('0x1457')][_0x2dade6('0x73e')]||[{'message':_0xad7a20[_0x2dade6('0x9b6')](),'type':_0x2dade6('0x2550')}];for(let _0x34adb7=0x0;_0x34adb7<_0xad7a20[_0x2dade6('0x1457')]['errors']['length'];_0x34adb7++){_0x828f85[_0x2dade6('0x1db9')]({'title':_0xad7a20[_0x2dade6('0x1457')][_0x2dade6('0x73e')][_0x34adb7]['type'],'msg':_0xad7a20['data'][_0x2dade6('0x73e')][_0x34adb7][_0x2dade6('0x1603')]});}}else _0x828f85[_0x2dade6('0x1db9')]({'title':_0xad7a20[_0x2dade6('0x11c5')]?_0x2dade6('0x14f7')+_0xad7a20['status']+_0x2dade6('0x16e4')+_0xad7a20[_0x2dade6('0x1833')]:_0x2dade6('0x2550'),'msg':_0xad7a20[_0x2dade6('0x1457')]?JSON['stringify'](_0xad7a20[_0x2dade6('0x1457')][_0x2dade6('0x1603')]):_0xad7a20[_0x2dade6('0x9b6')]()});});}function _0x7a42a5(_0x18359f){const _0x25f342=_0x3fff3a;_0x34bbdf['errors']=[];const _0x27b791=_0x572967[_0x25f342('0x1121')]()['title'](_0x25f342('0x530'))[_0x25f342('0xd5')](_0x25f342('0x1ba9'))['ariaLabel'](_0x25f342('0x191b'))['ok']('Delete')['cancel'](_0x25f342('0x1b70'))[_0x25f342('0x104f')](_0x18359f);_0x572967[_0x25f342('0x28e2')](_0x27b791)[_0x25f342('0x17e7')](function(){const _0x46b26c=_0x25f342;_0x279fa6[_0x46b26c('0x27e')]['delete']({'id':_0x34bbdf['company']['id']})[_0x46b26c('0x1af5')][_0x46b26c('0x17e7')](function(){const _0x147273=_0x46b26c;_0x49cbdd()[_0x147273('0x5f3')](_0x34bbdf[_0x147273('0x839')],{'id':_0x34bbdf[_0x147273('0x275c')]['id']}),_0x828f85['success']({'title':_0x147273('0x258f'),'msg':(_0x34bbdf[_0x147273('0x275c')][_0x147273('0x2aa')]||'company')+_0x147273('0x149f')}),_0x6ab7d1(_0x34bbdf['company']);})[_0x46b26c('0x16df')](function(_0x241467){const _0x37e490=_0x46b26c;if(_0x241467[_0x37e490('0x1457')]&&_0x241467[_0x37e490('0x1457')]['errors']&&_0x241467[_0x37e490('0x1457')][_0x37e490('0x73e')][_0x37e490('0x1f73')]){_0x34bbdf[_0x37e490('0x73e')]=_0x241467[_0x37e490('0x1457')]['errors']||[{'message':_0x241467[_0x37e490('0x9b6')](),'type':_0x37e490('0x1944')}];for(let _0x6c8190=0x0;_0x6c8190<_0x241467[_0x37e490('0x1457')]['errors'][_0x37e490('0x1f73')];_0x6c8190++){_0x828f85[_0x37e490('0x1db9')]({'title':_0x241467[_0x37e490('0x1457')][_0x37e490('0x73e')][_0x6c8190]['type'],'msg':_0x241467[_0x37e490('0x1457')][_0x37e490('0x73e')][_0x6c8190]['message']});}}else _0x828f85[_0x37e490('0x1db9')]({'title':_0x241467[_0x37e490('0x11c5')]?_0x37e490('0x14f7')+_0x241467[_0x37e490('0x11c5')]+'\x20-\x20'+_0x241467[_0x37e490('0x1833')]:_0x37e490('0x1944'),'msg':_0x241467[_0x37e490('0x1457')]?JSON[_0x37e490('0x678')](_0x241467['data'][_0x37e490('0x1603')]):_0x241467[_0x37e490('0x1603')]||_0x241467['toString']()});});},function(){});}function _0x40165e(_0xb5417b){return _0xb5417b===null?undefined:new Date(_0xb5417b);}function _0x6ab7d1(_0x5e136f){const _0x1859f9=_0x3fff3a;_0x572967[_0x1859f9('0x212a')](_0x5e136f);}}const _0x283c2c=_0x103120;_0x555a2e[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),'company',_0x4376d8('0x383')];function _0x555a2e(_0x4ea346,_0x347f40,_0x1d80c3,_0x1063c9,_0x1e0a98,_0x43aa9a,_0x42a700,_0x19b521,_0x15d912,_0xc11f57,_0x38b5df,_0x49f6e8){const _0x2b8235=_0x4376d8,_0xe4b969=this;_0xe4b969['currentUser']=_0xc11f57[_0x2b8235('0x2831')](),_0xe4b969['license']=_0x43aa9a,_0xe4b969[_0x2b8235('0x1aeb')]=_0x42a700,_0xe4b969[_0x2b8235('0x1572')]=_0xe4b969[_0x2b8235('0x1aeb')][_0x2b8235('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xe4b969['location']=_0x347f40[_0x2b8235('0x14fe')]()+_0x2b8235('0x14')+_0x347f40['host'](),_0xe4b969[_0x2b8235('0x275c')]=_0x38b5df||_0x4ea346[_0x2b8235('0x16fb')][_0x2b8235('0x275c')]||{},_0xe4b969[_0x2b8235('0x383')]=_0x49f6e8&&_0x49f6e8[_0x2b8235('0x335')]==0x1?_0x49f6e8[_0x2b8235('0x2319')][0x0]:null,_0xe4b969['crudPermissions']=_0xc11f57[_0x2b8235('0x17a9')](_0xe4b969[_0x2b8235('0x383')]?_0xe4b969[_0x2b8235('0x383')][_0x2b8235('0x103e')]:null),_0xe4b969[_0x2b8235('0x6ee')]={},_0xe4b969['selectedTab']=_0x4ea346[_0x2b8235('0x16fb')][_0x2b8235('0x1523')]||0x0,_0xe4b969['gotogoto']=_0x182116,_0xe4b969['alert']=_0x15d912[_0x2b8235('0x1178')],_0xe4b969[_0x2b8235('0xff4')]=_0x368a74,_0xe4b969['saveCompany']=_0x535ec6;function _0x182116(_0x383e06){const _0x57cc1f=_0x2b8235;if(_0xc11f57[_0x57cc1f('0x1ba2')]('admin'))_0x4ea346['go'](_0x57cc1f('0x6f8'),{'CompanyId':_0x383e06['id']});else return _0x19b521[_0x57cc1f('0x383')][_0x57cc1f('0x1c53')]({'userProfileId':_0xc11f57[_0x57cc1f('0x2831')]()[_0x57cc1f('0x1e76')],'sectionId':0x12f})[_0x57cc1f('0x1af5')][_0x57cc1f('0x17e7')](function(_0x1d20eb){const _0x1462c1=_0x57cc1f,_0x20f830=_0x1d20eb&&_0x1d20eb['rows']?_0x1d20eb['rows'][0x0]:null;_0x20f830&&_0x20f830[_0x1462c1('0x1cd3')]?_0x4ea346['go'](_0x1462c1('0x6f8'),{'CompanyId':_0x383e06['id']}):_0x15d912[_0x1462c1('0x1178')]({'title':_0x1e0a98['instant'](_0x1462c1('0x286e')),'msg':_0x1e0a98[_0x1462c1('0x1acc')](_0x1462c1('0x1169'))});})['catch'](function(_0x1a26e1){const _0xa84031=_0x57cc1f;_0x15d912['error']({'title':_0x1a26e1[_0xa84031('0x11c5')]?_0xa84031('0x14f7')+_0x1a26e1[_0xa84031('0x11c5')]+_0xa84031('0x16e4')+_0x1a26e1[_0xa84031('0x1833')]:_0xa84031('0x338'),'msg':_0x1a26e1['status']?JSON['stringify'](_0x1a26e1[_0xa84031('0x1457')]):_0x1a26e1[_0xa84031('0x9b6')]()});});}function _0x368a74(){const _0x4e501b=_0x2b8235;_0x4ea346['go'](_0x4e501b('0x1be9'),{},{'reload':_0x4e501b('0x1be9')});}function _0x535ec6(){const _0x2ef1f8=_0x2b8235;_0x19b521[_0x2ef1f8('0x27e')][_0x2ef1f8('0x27ba')]({'id':_0xe4b969[_0x2ef1f8('0x275c')]['id']},_0xe4b969[_0x2ef1f8('0x275c')])['$promise']['then'](function(){const _0x4d8e2b=_0x2ef1f8;_0x15d912[_0x4d8e2b('0x130d')]({'title':_0x4d8e2b('0x1077'),'msg':_0xe4b969[_0x4d8e2b('0x275c')][_0x4d8e2b('0x2aa')]?_0xe4b969[_0x4d8e2b('0x275c')]['name']+_0x4d8e2b('0x12b0'):''});})[_0x2ef1f8('0x16df')](function(_0x3f0cd3){const _0x2d48fb=_0x2ef1f8;_0x15d912[_0x2d48fb('0x1db9')]({'title':_0x3f0cd3[_0x2d48fb('0x11c5')]?_0x2d48fb('0x14f7')+_0x3f0cd3[_0x2d48fb('0x11c5')]+_0x2d48fb('0x16e4')+_0x3f0cd3['statusText']:_0x2d48fb('0xba4'),'msg':_0x3f0cd3[_0x2d48fb('0x1457')]?JSON[_0x2d48fb('0x678')](_0x3f0cd3['data']):_0x3f0cd3[_0x2d48fb('0x9b6')]()});});}}const _0x215aa0=_0x555a2e;_0x4d6182[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0xdac'),'globalCustomField','api','Auth','license',_0x4376d8('0x1aeb'),'crudPermissions'];function _0x4d6182(_0x5c7838,_0x1ef1d2,_0x2b3e51,_0x2f0b76,_0x916ed3,_0x1aefdb,_0x27f750,_0xb18b6e,_0x214d65,_0x42db43,_0x56d3c6,_0xbe3e6b,_0x5a8fc4,_0x3d010e){const _0x4e0bc1=_0x4376d8,_0x10129e=this;_0x10129e[_0x4e0bc1('0x197c')]=_0x56d3c6[_0x4e0bc1('0x2831')](),_0x10129e['errors']=[],_0x10129e[_0x4e0bc1('0x1aeb')]=_0x5a8fc4,_0x10129e['license']=_0xbe3e6b,_0x10129e[_0x4e0bc1('0x103e')]=_0x3d010e,_0x10129e[_0x4e0bc1('0x6ee')]={},_0x10129e[_0x4e0bc1('0x1572')]=_0x10129e['setting']&&_0x10129e[_0x4e0bc1('0x1aeb')][_0x4e0bc1('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10129e['title']=_0x4e0bc1('0xa35'),_0x10129e[_0x4e0bc1('0x82e')]={'animation':0x320,'sort':!![],'onSort':function(){const _0x243729=_0x4e0bc1;_0x5c7838[_0x243729('0x25f0')][_0x243729('0x2f2')]=![];}},_0x10129e[_0x4e0bc1('0x2366')]=_0x214d65,_0x10129e[_0x4e0bc1('0xdac')]=_0xb18b6e,_0x10129e[_0x4e0bc1('0x1366')]=![];!_0x10129e[_0x4e0bc1('0x2366')]&&(_0x10129e['globalCustomField']={'type':'text','actionType':_0x4e0bc1('0x1fe1')},_0x10129e['title']=_0x4e0bc1('0x1e99'),_0x10129e[_0x4e0bc1('0x1366')]=!![]);_0x5c7838[_0x4e0bc1('0x620')]('vm.globalCustomField.type',function(_0x5f4d13,_0x3baa2d){const _0x21dd9f=_0x4e0bc1;if(_0x5f4d13!==_0x3baa2d)switch(_0x5f4d13){case'text':_0x10129e[_0x21dd9f('0x2366')][_0x21dd9f('0xa72')]='';break;case'select':_0x10129e['globalCustomField'][_0x21dd9f('0xa72')]=[];break;default:}}),_0x10129e[_0x4e0bc1('0x149c')]=_0x35698e,_0x10129e[_0x4e0bc1('0x520')]=_0x2ec557,_0x10129e[_0x4e0bc1('0x2886')]=_0x1cadbb,_0x10129e[_0x4e0bc1('0x1300')]=_0xc5f012,_0x10129e['addItem']=_0x20c836,_0x10129e[_0x4e0bc1('0x105a')]=_0x1ce8bb,_0x10129e[_0x4e0bc1('0x1796')]=_0x34875b,_0x10129e[_0x4e0bc1('0x136e')]=_0x3659cf;function _0x20c836(_0x2034f3){const _0x1ebf63=_0x4e0bc1;_0x2034f3['push']({'value':_0x1ebf63('0x769')}),_0x5c7838['globalCustomFieldForm'][_0x1ebf63('0x2f2')]=![];}function _0x1ce8bb(_0x1e7093,_0x27858e){const _0x22d320=_0x4e0bc1;_0x1e7093[_0x22d320('0x2335')](_0x27858e,0x1),_0x5c7838[_0x22d320('0x25f0')][_0x22d320('0x2f2')]=![];}function _0x34875b(_0x4a4411){const _0x5a8bfd=_0x4e0bc1,_0x3d5499=_0x4a4411[_0x5a8bfd('0x1f73')];for(let _0x1c3823=0x0;_0x1c3823<_0x3d5499;_0x1c3823++){_0x4a4411[_0x5a8bfd('0x2335')](0x0,0x1);}_0x5c7838['globalCustomFieldForm']['$pristine']=![];}function _0x35698e(){const _0x4c4d82=_0x4e0bc1;_0x10129e[_0x4c4d82('0x73e')]=[],_0x42db43['cmCustomField'][_0x4c4d82('0x2439')](_0x10129e[_0x4c4d82('0x2366')])['$promise'][_0x4c4d82('0x17e7')](function(_0x1d392b){const _0x29bef1=_0x4c4d82;_0x10129e[_0x29bef1('0xdac')][_0x29bef1('0x1893')](_0x1d392b[_0x29bef1('0x16b2')]()),_0x27f750[_0x29bef1('0x130d')]({'title':'GlobalCustomField\x20properly\x20created','msg':_0x10129e[_0x29bef1('0x2366')][_0x29bef1('0x2aa')]?_0x10129e['globalCustomField']['name']+'\x20has\x20been\x20created!':''}),_0x3659cf(_0x1d392b);})['catch'](function(_0x3609f2){const _0x56d5c8=_0x4c4d82;if(_0x3609f2[_0x56d5c8('0x1457')]&&_0x3609f2[_0x56d5c8('0x1457')][_0x56d5c8('0x73e')]&&_0x3609f2['data'][_0x56d5c8('0x73e')][_0x56d5c8('0x1f73')]){_0x10129e[_0x56d5c8('0x73e')]=_0x3609f2['data'][_0x56d5c8('0x73e')]||[{'message':_0x3609f2[_0x56d5c8('0x9b6')](),'type':'api.cmCustomField.save'}];for(let _0xc175de=0x0;_0xc175de<_0x3609f2['data'][_0x56d5c8('0x73e')][_0x56d5c8('0x1f73')];_0xc175de+=0x1){_0x27f750[_0x56d5c8('0x1db9')]({'title':_0x3609f2['data'][_0x56d5c8('0x73e')][_0xc175de][_0x56d5c8('0x412')],'msg':_0x3609f2['data'][_0x56d5c8('0x73e')][_0xc175de]['message']});}}else _0x27f750[_0x56d5c8('0x1db9')]({'title':_0x3609f2['status']?_0x56d5c8('0x14f7')+_0x3609f2[_0x56d5c8('0x11c5')]+'\x20-\x20'+_0x3609f2[_0x56d5c8('0x1833')]:_0x56d5c8('0xc28'),'msg':_0x3609f2[_0x56d5c8('0x1457')]?JSON[_0x56d5c8('0x678')](_0x3609f2['data']['message']):_0x3609f2[_0x56d5c8('0x9b6')]()});});}function _0x2ec557(){const _0x5a6830=_0x4e0bc1;_0x10129e[_0x5a6830('0x73e')]=[],_0x42db43[_0x5a6830('0x14c3')][_0x5a6830('0x27ba')]({'id':_0x10129e['globalCustomField']['id']},_0x10129e['globalCustomField'])[_0x5a6830('0x1af5')][_0x5a6830('0x17e7')](function(_0x3eeded){const _0x80324c=_0x5a6830,_0x239376=_0x49cbdd()[_0x80324c('0xe8e')](_0x10129e[_0x80324c('0xdac')],{'id':_0x3eeded['id']});_0x239376&&_0x49cbdd()[_0x80324c('0x1ced')](_0x239376,_0x49cbdd()['pick'](_0x3eeded[_0x80324c('0x16b2')](),_0x49cbdd()[_0x80324c('0x1c0f')](_0x239376))),_0x27f750[_0x80324c('0x130d')]({'title':_0x80324c('0x71'),'msg':_0x10129e['globalCustomField'][_0x80324c('0x2aa')]?_0x10129e[_0x80324c('0x2366')][_0x80324c('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x3659cf(_0x3eeded);})[_0x5a6830('0x16df')](function(_0x13c8dd){const _0x216309=_0x5a6830;if(_0x13c8dd[_0x216309('0x1457')]&&_0x13c8dd[_0x216309('0x1457')][_0x216309('0x73e')]&&_0x13c8dd['data']['errors']['length']){_0x10129e[_0x216309('0x73e')]=_0x13c8dd[_0x216309('0x1457')][_0x216309('0x73e')]||[{'message':_0x13c8dd[_0x216309('0x9b6')](),'type':'api.cmCustomField.update'}];for(let _0x33505f=0x0;_0x33505f<_0x13c8dd['data'][_0x216309('0x73e')][_0x216309('0x1f73')];_0x33505f++){_0x27f750[_0x216309('0x1db9')]({'title':_0x13c8dd['data']['errors'][_0x33505f]['type'],'msg':_0x13c8dd[_0x216309('0x1457')][_0x216309('0x73e')][_0x33505f][_0x216309('0x1603')]});}}else _0x27f750[_0x216309('0x1db9')]({'title':_0x13c8dd[_0x216309('0x11c5')]?_0x216309('0x14f7')+_0x13c8dd[_0x216309('0x11c5')]+_0x216309('0x16e4')+_0x13c8dd[_0x216309('0x1833')]:_0x216309('0x93f'),'msg':_0x13c8dd[_0x216309('0x1457')]?JSON['stringify'](_0x13c8dd[_0x216309('0x1457')][_0x216309('0x1603')]):_0x13c8dd['toString']()});});}function _0x1cadbb(_0x2c42e5){const _0x46c8dd=_0x4e0bc1;_0x10129e[_0x46c8dd('0x73e')]=[];const _0x54e5ec=_0x2f0b76[_0x46c8dd('0x1121')]()[_0x46c8dd('0x24d3')]('Are\x20you\x20sure?')['content'](_0x46c8dd('0x1dee'))['ariaLabel'](_0x46c8dd('0x9e5'))['ok'](_0x46c8dd('0x304'))[_0x46c8dd('0x1d47')](_0x46c8dd('0x1b70'))['targetEvent'](_0x2c42e5);_0x2f0b76['show'](_0x54e5ec)[_0x46c8dd('0x17e7')](function(){const _0x5f2250=_0x46c8dd;_0x42db43[_0x5f2250('0x14c3')][_0x5f2250('0x1da6')]({'id':_0x10129e[_0x5f2250('0x2366')]['id']})[_0x5f2250('0x1af5')][_0x5f2250('0x17e7')](function(){const _0x3c2a5f=_0x5f2250;_0x49cbdd()[_0x3c2a5f('0x5f3')](_0x10129e[_0x3c2a5f('0xdac')],{'id':_0x10129e[_0x3c2a5f('0x2366')]['id']}),_0x27f750[_0x3c2a5f('0x130d')]({'title':_0x3c2a5f('0x1db0'),'msg':(_0x10129e['globalCustomField']['name']||_0x3c2a5f('0x2366'))+_0x3c2a5f('0x149f')}),_0x3659cf(_0x10129e[_0x3c2a5f('0x2366')]);})[_0x5f2250('0x16df')](function(_0x299cb5){const _0x462313=_0x5f2250;if(_0x299cb5[_0x462313('0x1457')]&&_0x299cb5[_0x462313('0x1457')]['errors']&&_0x299cb5['data'][_0x462313('0x73e')][_0x462313('0x1f73')]){_0x10129e[_0x462313('0x73e')]=_0x299cb5['data'][_0x462313('0x73e')]||[{'message':_0x299cb5[_0x462313('0x9b6')](),'type':_0x462313('0x11e4')}];for(let _0x31454c=0x0;_0x31454c<_0x299cb5[_0x462313('0x1457')]['errors']['length'];_0x31454c++){_0x27f750[_0x462313('0x1db9')]({'title':_0x299cb5['data'][_0x462313('0x73e')][_0x31454c][_0x462313('0x412')],'msg':_0x299cb5[_0x462313('0x1457')][_0x462313('0x73e')][_0x31454c][_0x462313('0x1603')]});}}else _0x27f750[_0x462313('0x1db9')]({'title':_0x299cb5['status']?'API:'+_0x299cb5[_0x462313('0x11c5')]+_0x462313('0x16e4')+_0x299cb5[_0x462313('0x1833')]:_0x462313('0x11e4'),'msg':_0x299cb5[_0x462313('0x1457')]?JSON['stringify'](_0x299cb5[_0x462313('0x1457')][_0x462313('0x1603')]):_0x299cb5[_0x462313('0x1603')]||_0x299cb5[_0x462313('0x9b6')]()});});},function(){});}function _0xc5f012(_0x5d9e11){return _0x5d9e11===null?undefined:new Date(_0x5d9e11);}function _0x3659cf(_0x31037f){const _0x333c73=_0x4e0bc1;_0x2f0b76[_0x333c73('0x212a')](_0x31037f);}}const _0x3b1d7a=_0x4d6182,_0x286791=_0x4cf2bc['p']+_0x4376d8('0x1a7f');_0x11cf83[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0xdac'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x11cf83(_0x37530d,_0x17676a,_0x17fc9d,_0x5015f5,_0x25ae87,_0x5a2a3d,_0x4aa6f1,_0x207d61,_0x20cc04,_0x46a423,_0x11add0,_0x5d63ff,_0x4a2d4c,_0x56f0af,_0x52323d,_0x5792b2,_0x433e3f){const _0x3e2a82=_0x4376d8,_0x4ca517=this;_0x4ca517[_0x3e2a82('0x1d11')]=_0x5792b2,_0x4ca517[_0x3e2a82('0x1aeb')]=_0x433e3f,_0x4ca517[_0x3e2a82('0x197c')]=_0x52323d[_0x3e2a82('0x2831')](),_0x4ca517[_0x3e2a82('0xdac')]=_0x20cc04||{'count':0x0,'rows':[]},_0x4ca517[_0x3e2a82('0xdeb')]=_0x46a423,_0x4ca517[_0x3e2a82('0x383')]=_0x11add0&&_0x11add0[_0x3e2a82('0x335')]==0x1?_0x11add0[_0x3e2a82('0x2319')][0x0]:null,_0x4ca517['crudPermissions']=_0x52323d['parseCrudPermissions'](_0x4ca517['userProfileSection']?_0x4ca517[_0x3e2a82('0x383')]['crudPermissions']:null),_0x4ca517[_0x3e2a82('0x23c3')]=_0x3e2a82('0xdac'),_0x4ca517['listOrder']='',_0x4ca517[_0x3e2a82('0x24e1')]=null,_0x4ca517[_0x3e2a82('0x1367')]=[],_0x4ca517[_0x3e2a82('0x826')]={'fields':_0x3e2a82('0x1f43'),'sort':_0x3e2a82('0x1ac6'),'ListId':_0x3e2a82('0x9bb'),'limit':0xa,'page':0x1},_0x4ca517[_0x3e2a82('0xc41')]=_0x49cbdd()[_0x3e2a82('0x8de')]([{'option':_0x3e2a82('0xa46'),'value':_0x3e2a82('0x2309')},{'option':_0x3e2a82('0xbe4'),'value':_0x3e2a82('0x1de9')},{'option':_0x3e2a82('0x1f30'),'value':_0x3e2a82('0x1913')},{'option':_0x3e2a82('0x10af'),'value':_0x3e2a82('0x1b93')},{'option':_0x3e2a82('0x18f3'),'value':_0x3e2a82('0x7ac')}],function(_0x3f205a){const _0x521eb4=_0x3e2a82;return _0x49cbdd()[_0x521eb4('0x737')](_0x3f205a[_0x521eb4('0x175b')],new RegExp('\x27','g'),'');}),_0x4ca517[_0x3e2a82('0x1379')]=_0x49cbdd()[_0x3e2a82('0x8de')]([{'option':'Voice','value':_0x3e2a82('0x1102')}],function(_0x28128d){const _0x274bd3=_0x3e2a82;return _0x49cbdd()['replace'](_0x28128d[_0x274bd3('0x175b')],new RegExp('\x27','g'),'');}),_0x4ca517[_0x3e2a82('0xb32')]=_0x1674d9,_0x4ca517['deleteconfirm']=_0x23d72b,_0x4ca517[_0x3e2a82('0x130d')]=_0x240f9e,_0x4ca517['getGlobalCustomFields']=_0x169bfd,_0x4ca517[_0x3e2a82('0x8a8')]=_0xf0f06b,_0x4ca517[_0x3e2a82('0x2886')]=_0x54e875,_0x4ca517['exportSelectedGlobalCustomFields']=_0x3c05a2,_0x4ca517[_0x3e2a82('0x6a1')]=_0x560778,_0x4ca517['deselectGlobalCustomFields']=_0xdc1b69,_0x4ca517[_0x3e2a82('0x206c')]=_0x185b55;function _0x1674d9(_0x4492b7,_0x34e403){const _0x2b8c15=_0x3e2a82;_0x25ae87[_0x2b8c15('0x28e2')]({'controller':_0x2b8c15('0x274d'),'controllerAs':'vm','templateUrl':_0x286791,'parent':angular[_0x2b8c15('0x1ce1')](_0x5a2a3d[_0x2b8c15('0x13aa')]),'targetEvent':_0x34e403,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x4492b7,'globalCustomFields':_0x4ca517[_0x2b8c15('0xdac')]['rows'],'license':_0x4ca517[_0x2b8c15('0x1d11')],'setting':null,'crudPermissions':_0x4ca517[_0x2b8c15('0x103e')]}});}function _0x23d72b(_0x59b072,_0x20be53){const _0x383b7d=_0x3e2a82,_0x56db0b=_0x25ae87['confirm']()[_0x383b7d('0x24d3')](_0x383b7d('0x5e1')+_0x49cbdd()[_0x383b7d('0x1c98')](_0x383b7d('0x2366'))+'?')[_0x383b7d('0x211f')](_0x383b7d('0xa53')+(_0x59b072[_0x383b7d('0x2aa')]||_0x383b7d('0x2366'))+_0x383b7d('0x1d23')+_0x383b7d('0xe9f'))[_0x383b7d('0x2095')](_0x383b7d('0x27f4'))[_0x383b7d('0x104f')](_0x20be53)['ok']('OK')[_0x383b7d('0x1d47')]('CANCEL');_0x25ae87[_0x383b7d('0x28e2')](_0x56db0b)[_0x383b7d('0x17e7')](function(){_0x54e875(_0x59b072);},function(){const _0x4d0a4c=_0x383b7d;console[_0x4d0a4c('0x1d63')]('CANCEL');});}let _0x86b0f6=!![],_0x2dd259=0x1;_0x37530d[_0x3e2a82('0x620')]('vm.query.filter',function(_0x40666e,_0x382b04){const _0x46ae27=_0x3e2a82;_0x86b0f6?_0x4aa6f1(function(){_0x86b0f6=![];}):(!_0x382b04&&(_0x2dd259=_0x4ca517[_0x46ae27('0x826')][_0x46ae27('0x115a')]),_0x40666e!==_0x382b04&&(_0x4ca517['query'][_0x46ae27('0x115a')]=0x1),!_0x40666e&&(_0x4ca517['query']['page']=_0x2dd259),_0x4ca517['getGlobalCustomFields']());});function _0x240f9e(_0x4408ad){const _0x8f6ef8=_0x3e2a82;_0x4ca517[_0x8f6ef8('0xdac')]=_0x4408ad||{'count':0x0,'rows':[]};}function _0x169bfd(){const _0x2c6258=_0x3e2a82;_0x4ca517[_0x2c6258('0x826')][_0x2c6258('0xf19')]=(_0x4ca517[_0x2c6258('0x826')][_0x2c6258('0x115a')]-0x1)*_0x4ca517['query'][_0x2c6258('0x193b')],_0x52323d[_0x2c6258('0x1ba2')](_0x2c6258('0x20bf'))?_0x4ca517[_0x2c6258('0x1691')]=_0x5d63ff[_0x2c6258('0x14c3')][_0x2c6258('0x1c53')](_0x4ca517[_0x2c6258('0x826')],_0x240f9e)[_0x2c6258('0x1af5')]:(_0x4ca517['query']['id']=_0x4ca517[_0x2c6258('0xdeb')]['id'],_0x4ca517[_0x2c6258('0x826')][_0x2c6258('0x16f8')]=_0x2c6258('0x431'),_0x4ca517[_0x2c6258('0x1691')]=_0x5d63ff[_0x2c6258('0xdeb')][_0x2c6258('0x2447')](_0x4ca517[_0x2c6258('0x826')],_0x240f9e)['$promise']);}function _0xf0f06b(_0x260418,_0x563c08){const _0x215ec1=_0x3e2a82;_0x25ae87[_0x215ec1('0x28e2')]({'controller':_0x215ec1('0x274d'),'controllerAs':'vm','templateUrl':_0x286791,'parent':angular['element'](_0x5a2a3d['body']),'targetEvent':_0x260418,'clickOutsideToClose':!![],'locals':{'globalCustomField':_0x563c08,'globalCustomFields':_0x4ca517[_0x215ec1('0xdac')]['rows'],'license':_0x4ca517[_0x215ec1('0x1d11')],'setting':_0x4ca517[_0x215ec1('0x1aeb')],'crudPermissions':_0x4ca517['crudPermissions']}});}function _0x54e875(_0x114d6e){const _0x5c0336=_0x3e2a82;_0x5d63ff[_0x5c0336('0x14c3')]['delete']({'id':_0x114d6e['id']})['$promise'][_0x5c0336('0x17e7')](function(){const _0x11f214=_0x5c0336;_0x49cbdd()['remove'](_0x4ca517[_0x11f214('0xdac')][_0x11f214('0x2319')],{'id':_0x114d6e['id']}),_0x4ca517[_0x11f214('0xdac')][_0x11f214('0x335')]-=0x1,!_0x4ca517[_0x11f214('0xdac')][_0x11f214('0x2319')][_0x11f214('0x1f73')]&&_0x4ca517[_0x11f214('0x287a')](),_0x56f0af[_0x11f214('0x130d')]({'title':_0x49cbdd()[_0x11f214('0x1c98')](_0x11f214('0x242e'))+'\x20deleted!','msg':_0x114d6e['name']?_0x114d6e[_0x11f214('0x2aa')]+_0x11f214('0x149f'):''});})[_0x5c0336('0x16df')](function(_0x59699f){const _0x731274=_0x5c0336;if(_0x59699f[_0x731274('0x1457')]&&_0x59699f[_0x731274('0x1457')][_0x731274('0x73e')]&&_0x59699f[_0x731274('0x1457')][_0x731274('0x73e')]['length']){_0x4ca517[_0x731274('0x73e')]=_0x59699f[_0x731274('0x1457')][_0x731274('0x73e')]||[{'message':_0x59699f['toString'](),'type':_0x731274('0x1c40')}];for(let _0x452f1c=0x0;_0x452f1c<_0x59699f[_0x731274('0x1457')]['errors']['length'];_0x452f1c++){_0x56f0af['error']({'title':_0x59699f[_0x731274('0x1457')][_0x731274('0x73e')][_0x452f1c][_0x731274('0x412')],'msg':_0x59699f[_0x731274('0x1457')][_0x731274('0x73e')][_0x452f1c]['message']});}}else _0x56f0af[_0x731274('0x1db9')]({'title':_0x59699f[_0x731274('0x11c5')]?_0x731274('0x14f7')+_0x59699f[_0x731274('0x11c5')]+_0x731274('0x16e4')+_0x59699f[_0x731274('0x1833')]:_0x731274('0x1c40'),'msg':_0x59699f[_0x731274('0x1457')]?JSON[_0x731274('0x678')](_0x59699f[_0x731274('0x1457')][_0x731274('0x1603')]):_0x59699f[_0x731274('0x1603')]||_0x59699f[_0x731274('0x9b6')]()});});}function _0x3c05a2(){const _0x28bbfa=_0x3e2a82,_0x1e41dd=angular['copy'](_0x4ca517['selectedGlobalCustomFields']);return _0x4ca517[_0x28bbfa('0x1367')]=[],_0x1e41dd;}function _0x560778(_0x1ff23d){const _0x216d55=_0x3e2a82,_0x4bcb42=_0x25ae87['confirm']()['title'](_0x216d55('0x281b'))[_0x216d55('0x211f')](_0x216d55('0xa53')+_0x4ca517[_0x216d55('0x1367')]['length']+_0x216d55('0x145a')+'\x20will\x20be\x20deleted.')[_0x216d55('0x2095')](_0x216d55('0x1424'))[_0x216d55('0x104f')](_0x1ff23d)['ok']('OK')[_0x216d55('0x1d47')](_0x216d55('0x28a0'));_0x25ae87[_0x216d55('0x28e2')](_0x4bcb42)[_0x216d55('0x17e7')](function(){const _0x42f443=_0x216d55;_0x4ca517[_0x42f443('0x1367')][_0x42f443('0xccd')](function(_0x495ade){_0x54e875(_0x495ade);}),_0x4ca517['selectedGlobalCustomFields']=[];});}function _0xdc1b69(){_0x4ca517['selectedGlobalCustomFields']=[];}function _0x185b55(){const _0x252697=_0x3e2a82;_0x4ca517[_0x252697('0x1367')]=_0x4ca517['globalCustomFields'][_0x252697('0x2319')];}}const _0x44c77a=_0x11cf83;_0x5ac993[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location','$mdDialog','$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x2504'),_0x4376d8('0x134c'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x5ac993(_0x53967c,_0x4a0565,_0x427a24,_0x8a4b5,_0x36ffb6,_0x139225,_0x93419,_0x75a440,_0x10393b,_0x26cccf,_0x47bcc4,_0x1b5176,_0x2b45d9,_0x384ed7){const _0x212160=_0x4376d8,_0x1e496f=this;_0x1e496f['currentUser']=_0x47bcc4[_0x212160('0x2831')](),_0x1e496f['errors']=[],_0x1e496f[_0x212160('0x1aeb')]=_0x2b45d9,_0x1e496f[_0x212160('0x1d11')]=_0x1b5176,_0x1e496f[_0x212160('0x103e')]=_0x384ed7,_0x1e496f[_0x212160('0x6ee')]={},_0x1e496f['passwordPattern']=_0x1e496f[_0x212160('0x1aeb')]&&_0x1e496f[_0x212160('0x1aeb')][_0x212160('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e496f[_0x212160('0x24d3')]=_0x212160('0x1993'),_0x1e496f[_0x212160('0x134c')]=angular['copy'](_0x10393b),_0x1e496f[_0x212160('0x2504')]=_0x75a440,_0x1e496f[_0x212160('0x18ae')]=![];!_0x1e496f[_0x212160('0x134c')]&&(_0x1e496f[_0x212160('0x134c')]={},_0x1e496f[_0x212160('0x24d3')]=_0x212160('0x13fb'),_0x1e496f['newList']=!![]);_0x1e496f[_0x212160('0x110f')]=_0xd679bd,_0x1e496f[_0x212160('0x27ac')]=_0x5c3f93,_0x1e496f[_0x212160('0xa02')]=_0x3d736e,_0x1e496f['getDateFromString']=_0x455332,_0x1e496f[_0x212160('0x136e')]=_0x156479;function _0xd679bd(){const _0x4c4297=_0x212160;_0x1e496f[_0x4c4297('0x73e')]=[],_0x26cccf['cmList']['save'](_0x1e496f[_0x4c4297('0x134c')])[_0x4c4297('0x1af5')][_0x4c4297('0x17e7')](function(_0x1e3167){const _0x3b8845=_0x4c4297;_0x1e496f[_0x3b8845('0x2504')][_0x3b8845('0x1893')](_0x1e3167['toJSON']()),_0x93419[_0x3b8845('0x130d')]({'title':_0x3b8845('0x1421'),'msg':_0x1e496f[_0x3b8845('0x134c')][_0x3b8845('0x2aa')]?_0x1e496f[_0x3b8845('0x134c')][_0x3b8845('0x2aa')]+_0x3b8845('0x15a'):''}),_0x156479(_0x1e3167);})[_0x4c4297('0x16df')](function(_0x42ef6c){const _0x5da756=_0x4c4297;if(_0x42ef6c['data']&&_0x42ef6c[_0x5da756('0x1457')][_0x5da756('0x73e')]&&_0x42ef6c[_0x5da756('0x1457')][_0x5da756('0x73e')]['length']){_0x1e496f[_0x5da756('0x73e')]=_0x42ef6c[_0x5da756('0x1457')][_0x5da756('0x73e')]||[{'message':_0x42ef6c[_0x5da756('0x9b6')](),'type':_0x5da756('0x1a9')}];for(let _0x28d033=0x0;_0x28d033<_0x42ef6c[_0x5da756('0x1457')][_0x5da756('0x73e')][_0x5da756('0x1f73')];_0x28d033+=0x1){_0x93419[_0x5da756('0x1db9')]({'title':_0x42ef6c[_0x5da756('0x1457')][_0x5da756('0x73e')][_0x28d033][_0x5da756('0x412')],'msg':_0x42ef6c[_0x5da756('0x1457')][_0x5da756('0x73e')][_0x28d033][_0x5da756('0x1603')]});}}else _0x93419[_0x5da756('0x1db9')]({'title':_0x42ef6c['status']?_0x5da756('0x14f7')+_0x42ef6c[_0x5da756('0x11c5')]+_0x5da756('0x16e4')+_0x42ef6c['statusText']:_0x5da756('0x1a9'),'msg':_0x42ef6c['data']?JSON[_0x5da756('0x678')](_0x42ef6c[_0x5da756('0x1457')]['message']):_0x42ef6c[_0x5da756('0x9b6')]()});});}function _0x5c3f93(){const _0x2502a0=_0x212160;_0x1e496f[_0x2502a0('0x73e')]=[],_0x26cccf[_0x2502a0('0x25b')][_0x2502a0('0x27ba')]({'id':_0x1e496f['list']['id']},_0x1e496f[_0x2502a0('0x134c')])[_0x2502a0('0x1af5')]['then'](function(_0x58d26c){const _0x430cf0=_0x2502a0,_0x47922e=_0x49cbdd()[_0x430cf0('0xe8e')](_0x1e496f[_0x430cf0('0x2504')],{'id':_0x58d26c['id']});_0x47922e&&_0x49cbdd()[_0x430cf0('0x1ced')](_0x47922e,_0x49cbdd()[_0x430cf0('0x230a')](_0x58d26c['toJSON'](),_0x49cbdd()[_0x430cf0('0x1c0f')](_0x47922e))),_0x93419['success']({'title':'List\x20properly\x20saved!','msg':_0x1e496f[_0x430cf0('0x134c')][_0x430cf0('0x2aa')]?_0x1e496f[_0x430cf0('0x134c')][_0x430cf0('0x2aa')]+_0x430cf0('0x15ca'):''}),_0x156479(_0x58d26c);})['catch'](function(_0x461bb4){const _0x1ce79b=_0x2502a0;if(_0x461bb4[_0x1ce79b('0x1457')]&&_0x461bb4['data'][_0x1ce79b('0x73e')]&&_0x461bb4[_0x1ce79b('0x1457')][_0x1ce79b('0x73e')][_0x1ce79b('0x1f73')]){_0x1e496f['errors']=_0x461bb4[_0x1ce79b('0x1457')]['errors']||[{'message':_0x461bb4[_0x1ce79b('0x9b6')](),'type':_0x1ce79b('0x1658')}];for(let _0x4e6685=0x0;_0x4e6685<_0x461bb4[_0x1ce79b('0x1457')][_0x1ce79b('0x73e')][_0x1ce79b('0x1f73')];_0x4e6685++){_0x93419[_0x1ce79b('0x1db9')]({'title':_0x461bb4[_0x1ce79b('0x1457')][_0x1ce79b('0x73e')][_0x4e6685][_0x1ce79b('0x412')],'msg':_0x461bb4['data'][_0x1ce79b('0x73e')][_0x4e6685][_0x1ce79b('0x1603')]});}}else _0x93419[_0x1ce79b('0x1db9')]({'title':_0x461bb4[_0x1ce79b('0x11c5')]?'API:'+_0x461bb4[_0x1ce79b('0x11c5')]+_0x1ce79b('0x16e4')+_0x461bb4[_0x1ce79b('0x1833')]:'api.cmList.update','msg':_0x461bb4['data']?JSON[_0x1ce79b('0x678')](_0x461bb4[_0x1ce79b('0x1457')][_0x1ce79b('0x1603')]):_0x461bb4[_0x1ce79b('0x9b6')]()});});}function _0x3d736e(_0x932b7f){const _0x3fae2d=_0x212160;_0x1e496f[_0x3fae2d('0x73e')]=[];const _0x28233a=_0x8a4b5['confirm']()[_0x3fae2d('0x24d3')]('Are\x20you\x20sure?')[_0x3fae2d('0xd5')](_0x3fae2d('0xeeb'))[_0x3fae2d('0x2095')](_0x3fae2d('0x2562'))['ok'](_0x3fae2d('0x304'))[_0x3fae2d('0x1d47')](_0x3fae2d('0x1b70'))[_0x3fae2d('0x104f')](_0x932b7f);_0x8a4b5[_0x3fae2d('0x28e2')](_0x28233a)['then'](function(){const _0xec21c5=_0x3fae2d;_0x26cccf[_0xec21c5('0x25b')][_0xec21c5('0x1da6')]({'id':_0x1e496f[_0xec21c5('0x134c')]['id']})[_0xec21c5('0x1af5')]['then'](function(){const _0x1a070c=_0xec21c5;_0x49cbdd()[_0x1a070c('0x5f3')](_0x1e496f[_0x1a070c('0x2504')],{'id':_0x1e496f['list']['id']}),_0x93419[_0x1a070c('0x130d')]({'title':_0x1a070c('0x994'),'msg':(_0x1e496f[_0x1a070c('0x134c')][_0x1a070c('0x2aa')]||_0x1a070c('0x134c'))+'\x20has\x20been\x20deleted!'}),_0x156479(_0x1e496f[_0x1a070c('0x134c')]);})['catch'](function(_0x31283d){const _0x222f7e=_0xec21c5;if(_0x31283d[_0x222f7e('0x1457')]&&_0x31283d[_0x222f7e('0x1457')][_0x222f7e('0x73e')]&&_0x31283d[_0x222f7e('0x1457')][_0x222f7e('0x73e')][_0x222f7e('0x1f73')]){_0x1e496f['errors']=_0x31283d[_0x222f7e('0x1457')][_0x222f7e('0x73e')]||[{'message':_0x31283d[_0x222f7e('0x9b6')](),'type':_0x222f7e('0x1c1d')}];for(let _0x5980d3=0x0;_0x5980d3<_0x31283d[_0x222f7e('0x1457')][_0x222f7e('0x73e')][_0x222f7e('0x1f73')];_0x5980d3++){_0x93419[_0x222f7e('0x1db9')]({'title':_0x31283d[_0x222f7e('0x1457')]['errors'][_0x5980d3][_0x222f7e('0x412')],'msg':_0x31283d[_0x222f7e('0x1457')][_0x222f7e('0x73e')][_0x5980d3][_0x222f7e('0x1603')]});}}else _0x93419['error']({'title':_0x31283d[_0x222f7e('0x11c5')]?_0x222f7e('0x14f7')+_0x31283d['status']+_0x222f7e('0x16e4')+_0x31283d[_0x222f7e('0x1833')]:_0x222f7e('0x1c1d'),'msg':_0x31283d[_0x222f7e('0x1457')]?JSON[_0x222f7e('0x678')](_0x31283d['data'][_0x222f7e('0x1603')]):_0x31283d['message']||_0x31283d[_0x222f7e('0x9b6')]()});});},function(){});}function _0x455332(_0x3716cd){return _0x3716cd===null?undefined:new Date(_0x3716cd);}function _0x156479(_0x193f78){const _0x4d1683=_0x212160;_0x8a4b5[_0x4d1683('0x212a')](_0x193f78);}}const _0x554ea2=_0x5ac993;_0x36864e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'api','list',_0x4376d8('0x2504'),'realtime','$translate',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x36864e(_0x2fe79f,_0x3367b7,_0x569501,_0x31544e,_0x31021c,_0x148dcd,_0x343d9e,_0x3f6985,_0xad1da8,_0x46ac08){const _0x211269=_0x4376d8,_0x46c22d=this;_0x46c22d[_0x211269('0x197c')]=_0xad1da8['getCurrentUser'](),_0x46c22d[_0x211269('0x134c')]=_0x31021c,_0x46c22d[_0x211269('0x103e')]=_0x46ac08,_0x46c22d['realtime']=_0x343d9e,_0x46c22d[_0x211269('0x532')]=[],_0x46c22d[_0x211269('0x2722')]=[],_0x46c22d[_0x211269('0xc14')]=[],_0x46c22d['startingAllowedItems']=[],_0x46c22d[_0x211269('0x1824')]=[],_0x46c22d[_0x211269('0x25dc')]=![],_0x46c22d[_0x211269('0xdf0')]=_0x44ee8d,_0x46c22d[_0x211269('0x257a')]=_0x5144d8,_0x46c22d[_0x211269('0x136e')]=_0x2c7cd5,_0x46c22d[_0x211269('0x26f4')]={'readOnly':!_0x46c22d[_0x211269('0x103e')][_0x211269('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x211269('0x2aa'),'line1':'fullname','line2':[_0x211269('0x2aa'),'internal'],'line3':'','labelAll':_0x3f6985[_0x211269('0x1acc')](_0x211269('0xd8d')),'labelSelected':_0x3f6985[_0x211269('0x1acc')](_0x211269('0x16fa')),'transferCallback':function(){const _0x504c85=_0x211269,_0x42e499=_0x49cbdd()['xorBy'](_0x46c22d[_0x504c85('0x1824')],_0x46c22d['selectedItems'],'id');_0x46c22d[_0x504c85('0x25dc')]=_0x49cbdd()[_0x504c85('0x109a')](_0x42e499)?![]:!![];}};function _0x44ee8d(){const _0xf55216=_0x211269;return _0xad1da8[_0xf55216('0x1ba2')](_0xf55216('0x20bf'))?_0x34b623()[_0xf55216('0x16df')](function(_0x29cdfa){const _0x9abe71=_0xf55216;_0x569501[_0x9abe71('0x1db9')]({'title':_0x29cdfa[_0x9abe71('0x11c5')]?'API:'+_0x29cdfa[_0x9abe71('0x11c5')]+'\x20-\x20'+_0x29cdfa['statusText']:'SYSTEM:GET_AGENTS','msg':_0x29cdfa['status']?JSON[_0x9abe71('0x678')](_0x29cdfa['data']):_0x29cdfa['toString']()});}):_0x2ea2dc()[_0xf55216('0x17e7')](function(_0x4553c2){const _0x704e3a=_0xf55216;return _0x46c22d[_0x704e3a('0x16f8')]=_0x4553c2,_0x34b623();})[_0xf55216('0x16df')](function(_0x446774){const _0x276702=_0xf55216;_0x569501[_0x276702('0x1db9')]({'title':_0x446774[_0x276702('0x11c5')]?_0x276702('0x14f7')+_0x446774['status']+'\x20-\x20'+_0x446774[_0x276702('0x1833')]:_0x276702('0x23e0'),'msg':_0x446774[_0x276702('0x11c5')]?JSON[_0x276702('0x678')](_0x446774[_0x276702('0x1457')]):_0x446774[_0x276702('0x9b6')]()});});}function _0x2ea2dc(){return _0x3367b7(function(_0x3839fb,_0x2a812c){const _0x7ab9fa=a0_0xd29e;_0x31544e[_0x7ab9fa('0x383')][_0x7ab9fa('0x1c53')]({'userProfileId':_0x46c22d['currentUser']['userProfileId'],'name':'Agents'})['$promise'][_0x7ab9fa('0x17e7')](function(_0x46617f){const _0x405c41=_0x7ab9fa,_0x44359b=_0x46617f&&_0x46617f[_0x405c41('0x2319')]?_0x46617f[_0x405c41('0x2319')][0x0]:null;_0x3839fb(_0x44359b);})[_0x7ab9fa('0x16df')](function(_0x2cb2a7){_0x2a812c(_0x2cb2a7);});});}function _0x34b623(){return _0x3367b7(function(_0x394674,_0x5b3ff2){const _0x565ee0=a0_0xd29e;return _0x3a133c()[_0x565ee0('0x17e7')](function(_0x1a4779){const _0x23af06=_0x565ee0;return _0x46c22d[_0x23af06('0x532')]=_0x1a4779[_0x23af06('0x2319')]?_0x1a4779[_0x23af06('0x2319')]:[],_0xad1da8['hasRole'](_0x23af06('0x20bf'))?_0x1a4779:_0x46c22d[_0x23af06('0x16f8')]?_0x46c22d['section']['autoAssociation']?_0x1a4779:_0x24e626():null;})['then'](function(_0x40ee9b){const _0x1568d5=_0x565ee0,_0x1cd278=_0x40ee9b&&_0x40ee9b[_0x1568d5('0x2319')]?_0x40ee9b['rows']:[];return _0x46c22d[_0x1568d5('0x2722')]=_0x49cbdd()[_0x1568d5('0x787')](_0x1cd278,function(_0x1cf7df){const _0x392439=_0x1568d5;return _0x49cbdd()['find'](_0x46c22d[_0x392439('0x532')],{'id':_0xad1da8[_0x392439('0x1ba2')](_0x392439('0x20bf'))||_0x46c22d[_0x392439('0x16f8')][_0x392439('0x9e3')]?_0x1cf7df['id']:_0x1cf7df[_0x392439('0x5db')]});}),_0x46c22d[_0x1568d5('0x181b')]=angular['copy'](_0x46c22d['allowedItems']),_0x46c22d[_0x1568d5('0x532')]['forEach'](function(_0x54f995){const _0xd8326b=_0x1568d5,_0x557e65=_0x49cbdd()[_0xd8326b('0xe8e')](_0x46c22d['allowedItems'],{'id':_0x54f995['id']});_0xad1da8[_0xd8326b('0x1ba2')]('admin')?_0x54f995[_0xd8326b('0xc98')]=!![]:_0x54f995['isValid']=typeof _0x557e65!==_0xd8326b('0xfad')?!![]:![];}),_0x160570();})[_0x565ee0('0x17e7')](function(_0x20905c){const _0x1707ad=_0x565ee0,_0x532e98=_0x20905c&&_0x20905c[_0x1707ad('0x2319')]?_0x20905c[_0x1707ad('0x2319')]:[];_0x46c22d[_0x1707ad('0xc14')]=_0x49cbdd()[_0x1707ad('0x787')](_0x532e98,function(_0xab0783){const _0x28c6c7=_0x1707ad,_0x4f7754=_0x49cbdd()[_0x28c6c7('0xe8e')](_0x46c22d['items'],{'id':_0xab0783['id']});return _0x4f7754[_0x28c6c7('0x122c')]=_0xab0783[_0x28c6c7('0x2694')]?'penalty\x20'+_0xab0783[_0x28c6c7('0x2694')][_0x28c6c7('0x122c')]:'',_0x4f7754[_0x28c6c7('0xe3e')]=typeof _0xab0783[_0x28c6c7('0xe3e')]!==_0x28c6c7('0xfad')?'<'+_0xab0783[_0x28c6c7('0xe3e')]+'>':'',_0x4f7754;}),_0x46c22d['startingSelectedItems']=angular[_0x1707ad('0x14e5')](_0x46c22d[_0x1707ad('0xc14')]),_0x46c22d[_0x1707ad('0x26f4')]['selectedItems']=_0x46c22d['selectedItems'],_0x46c22d['dualMultiselectOptions'][_0x1707ad('0x532')]=_0x49cbdd()['differenceBy'](_0x46c22d[_0x1707ad('0x2722')],_0x46c22d[_0x1707ad('0x26f4')][_0x1707ad('0xc14')],'id'),_0x394674();})[_0x565ee0('0x16df')](function(_0x1953a7){_0x5b3ff2(_0x1953a7);});});}function _0x24e626(){return _0x3367b7(function(_0x5ea9f8,_0x47ec50){const _0x55c93a=a0_0xd29e;return _0x31544e[_0x55c93a('0x78d')][_0x55c93a('0x1c53')]({'sectionId':_0x46c22d['section']['id'],'nolimit':!![]})['$promise'][_0x55c93a('0x17e7')](function(_0x2c0346){_0x5ea9f8(_0x2c0346);})[_0x55c93a('0x16df')](function(_0x239a63){_0x47ec50(_0x239a63);});});}function _0x160570(){return _0x3367b7(function(_0xaefb78,_0x497f2b){const _0x3525d6=a0_0xd29e;return _0x31544e[_0x3525d6('0x25b')][_0x3525d6('0x1dac')]({'id':_0x46c22d[_0x3525d6('0x134c')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x3525d6('0x684')})[_0x3525d6('0x1af5')]['then'](function(_0x104f5a){_0xaefb78(_0x104f5a);})[_0x3525d6('0x16df')](function(_0x287ccf){_0x497f2b(_0x287ccf);});});}function _0x3a133c(){return _0x3367b7(function(_0x3b842f,_0x25fccb){const _0x4c7071=a0_0xd29e;return _0x31544e['user'][_0x4c7071('0x1c53')]({'fields':_0x4c7071('0x1152'),'nolimit':!![],'role':_0x4c7071('0x684')})[_0x4c7071('0x1af5')][_0x4c7071('0x17e7')](function(_0x27647b){_0x3b842f(_0x27647b);})[_0x4c7071('0x16df')](function(_0x1af32b){_0x25fccb(_0x1af32b);});});}function _0x13d8ca(_0x6142b){return _0x3367b7(function(_0x4a0e94,_0x3016b2){const _0x140758=a0_0xd29e;_0x49cbdd()[_0x140758('0x109a')](_0x6142b)?_0x4a0e94():_0x31544e['cmList'][_0x140758('0x1f22')]({'id':_0x46c22d[_0x140758('0x134c')]['id'],'ids':_0x49cbdd()[_0x140758('0x787')](_0x6142b,'id')})['$promise'][_0x140758('0x17e7')](function(){_0x4a0e94();})[_0x140758('0x16df')](function(_0x5343fd){_0x3016b2(_0x5343fd);});});}function _0x33ab3e(_0x5913fc){return _0x3367b7(function(_0x3826f9,_0x87aea3){const _0x3ca173=a0_0xd29e;_0x49cbdd()[_0x3ca173('0x109a')](_0x5913fc)?_0x3826f9():_0x31544e[_0x3ca173('0x25b')][_0x3ca173('0x1625')]({'id':_0x46c22d[_0x3ca173('0x134c')]['id'],'ids':_0x49cbdd()[_0x3ca173('0x787')](_0x5913fc,'id')})[_0x3ca173('0x1af5')]['then'](function(){_0x3826f9();})[_0x3ca173('0x16df')](function(_0x43bfb0){_0x87aea3(_0x43bfb0);});});}function _0x5144d8(){const _0x219eb9=_0x211269,_0x7d618f=_0x49cbdd()['differenceBy'](_0x46c22d[_0x219eb9('0x1824')],_0x46c22d[_0x219eb9('0xc14')],'id'),_0x2226b4=_0x49cbdd()['differenceBy'](_0x46c22d['selectedItems'],_0x46c22d[_0x219eb9('0x1824')],'id');return _0x33ab3e(_0x7d618f)[_0x219eb9('0x17e7')](function(){return _0x13d8ca(_0x2226b4);})[_0x219eb9('0x17e7')](function(){const _0x329146=_0x219eb9;_0x46c22d[_0x329146('0x25dc')]=![],_0x46c22d[_0x329146('0x181b')]=angular['copy'](_0x46c22d[_0x329146('0x2722')]),_0x46c22d[_0x329146('0x1824')]=angular[_0x329146('0x14e5')](_0x46c22d[_0x329146('0xc14')]),_0x569501[_0x329146('0x130d')]({'title':_0x329146('0x9d1'),'msg':_0x329146('0x2603')});})['catch'](function(_0x1b3a6a){const _0x276c64=_0x219eb9;_0x569501['error']({'title':_0x1b3a6a[_0x276c64('0x11c5')]?_0x276c64('0x14f7')+_0x1b3a6a[_0x276c64('0x11c5')]+_0x276c64('0x16e4')+_0x1b3a6a['statusText']:_0x276c64('0x244e'),'msg':_0x1b3a6a[_0x276c64('0x11c5')]?JSON[_0x276c64('0x678')](_0x1b3a6a[_0x276c64('0x1457')]):_0x1b3a6a[_0x276c64('0x9b6')]()});});}function _0x2c7cd5(){const _0x5cb069=_0x211269;_0x2fe79f[_0x5cb069('0x212a')]();}}const _0x315f1f=_0x36864e,_0x1bd1be=_0x4cf2bc['p']+_0x4376d8('0x48c');_0x53d710[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),'$timeout',_0x4376d8('0x14f6'),'$document',_0x4376d8('0x108a'),'api',_0x4376d8('0x1885')];function _0x53d710(_0x179c21,_0x3657b3,_0x255205,_0x30d7f5,_0x4f2cf5,_0x551000,_0x559989,_0x53dfa4,_0x11fe35,_0x48ebf9,_0x59bff6){const _0x5b5edd=_0x4376d8,_0x23b202=this;_0x23b202['currentUser']=_0x59bff6[_0x5b5edd('0x2831')](),_0x23b202[_0x5b5edd('0x134c')]={},_0x23b202['listCustomFields']={'count':0x0,'rows':[]},_0x23b202[_0x5b5edd('0x2614')]=[],_0x23b202['crudPermissions'],_0x23b202[_0x5b5edd('0x826')]={'fields':'createdAt,updatedAt,id,alias,type,values,required,clickToAction,actionType','limit':0xa,'page':0x1},_0x23b202['arraytype']=_0x49cbdd()['keyBy']([{'option':_0x5b5edd('0xa46'),'value':_0x5b5edd('0x2309')},{'option':_0x5b5edd('0xbe4'),'value':_0x5b5edd('0x1de9')},{'option':_0x5b5edd('0x1f30'),'value':_0x5b5edd('0x1913')},{'option':'Switch','value':'\x27switch\x27'},{'option':_0x5b5edd('0x18f3'),'value':_0x5b5edd('0x7ac')}],function(_0x83ea97){const _0x3d3749=_0x5b5edd;return _0x49cbdd()['replace'](_0x83ea97[_0x3d3749('0x175b')],new RegExp('\x27','g'),'');}),_0x23b202['arrayactionType']=_0x49cbdd()[_0x5b5edd('0x8de')]([{'option':'Voice','value':_0x5b5edd('0x1102')}],function(_0x4d744a){const _0x32c49e=_0x5b5edd;return _0x49cbdd()['replace'](_0x4d744a[_0x32c49e('0x175b')],new RegExp('\x27','g'),'');}),_0x23b202[_0x5b5edd('0x161d')]=_0x5bb184,_0x23b202[_0x5b5edd('0x1a20')]=_0xccbf81,_0x23b202[_0x5b5edd('0x130d')]=_0x35701d,_0x23b202[_0x5b5edd('0x91f')]=_0x38e810,_0x23b202[_0x5b5edd('0x11d3')]=_0x47fc4d,_0x23b202[_0x5b5edd('0x23e6')]=_0x3958e3,_0x23b202['deleteListCustomField']=_0x43087f,_0x23b202[_0x5b5edd('0x8db')]=_0x4c5733;function _0x5bb184(_0x1992a0,_0x5dc771){const _0x38ff10=_0x5b5edd;_0x23b202['list']=_0x1992a0,_0x23b202['crudPermissions']=typeof _0x5dc771!==_0x38ff10('0xfad')?_0x5dc771:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x23b202['query'][_0x38ff10('0x7f8')]=_0x23b202[_0x38ff10('0x134c')]['id'],_0x23b202[_0x38ff10('0x826')]['id']=_0x23b202[_0x38ff10('0x134c')]['id'],_0x38e810();}function _0xccbf81(_0x394f24,_0x3c218f){const _0x181900=_0x5b5edd,_0x2044fc=_0x559989[_0x181900('0x1121')]()[_0x181900('0x24d3')](_0x181900('0x21bc'))[_0x181900('0x211f')](_0x181900('0xa53')+(_0x394f24[_0x181900('0x2aa')]||_0x394f24['id']&&_0x49cbdd()['upperFirst'](_0x181900('0x1f8f'))+_0x394f24['id']||_0x181900('0x1fa4'))+_0x181900('0x1d23')+_0x181900('0xe9f'))['ariaLabel'](_0x181900('0x101d'))[_0x181900('0x104f')](_0x3c218f)['ok']('OK')['cancel']('CANCEL');_0x559989[_0x181900('0x28e2')](_0x2044fc)[_0x181900('0x17e7')](function(){_0x43087f(_0x394f24);},function(){const _0x3887e1=_0x181900;console[_0x3887e1('0x1d63')](_0x3887e1('0x28a0'));});}function _0x35701d(_0x11a6a1){_0x23b202['listCustomFields']=_0x11a6a1||{'count':0x0,'rows':[]};}function _0x38e810(){const _0x15592d=_0x5b5edd;_0x23b202['query'][_0x15592d('0xf19')]=(_0x23b202[_0x15592d('0x826')][_0x15592d('0x115a')]-0x1)*_0x23b202['query'][_0x15592d('0x193b')],_0x23b202[_0x15592d('0x1691')]=_0x48ebf9[_0x15592d('0x25b')][_0x15592d('0x6c7')](_0x23b202[_0x15592d('0x826')],_0x35701d)[_0x15592d('0x1af5')];}function _0x47fc4d(_0x3bc1e3,_0x498ac6){const _0x2245ae=_0x5b5edd;_0x559989['show']({'controller':_0x2245ae('0x1c73'),'controllerAs':'vm','templateUrl':_0x1bd1be,'parent':angular['element'](_0x53dfa4['body']),'targetEvent':_0x3bc1e3,'clickOutsideToClose':!![],'locals':{'list':_0x23b202[_0x2245ae('0x134c')],'customField':_0x498ac6,'customFields':_0x23b202[_0x2245ae('0x1aff')]['rows'],'license':null,'setting':null,'crudPermissions':_0x23b202[_0x2245ae('0x103e')]}});}function _0x43087f(_0x361651){const _0x25ee05=_0x5b5edd;_0x48ebf9['cmCustomField'][_0x25ee05('0x1da6')]({'id':_0x361651['id']})[_0x25ee05('0x1af5')][_0x25ee05('0x17e7')](function(){const _0x2dc456=_0x25ee05;_0x49cbdd()[_0x2dc456('0x5f3')](_0x23b202[_0x2dc456('0x1aff')]['rows'],{'id':_0x361651['id']}),_0x23b202[_0x2dc456('0x1aff')][_0x2dc456('0x335')]-=0x1,!_0x23b202[_0x2dc456('0x1aff')][_0x2dc456('0x2319')][_0x2dc456('0x1f73')]&&_0x38e810(),_0x11fe35[_0x2dc456('0x130d')]({'title':_0x2dc456('0xe4e'),'msg':_0x361651[_0x2dc456('0x2aa')]?_0x361651['name']+_0x2dc456('0x149f'):''});})[_0x25ee05('0x16df')](function(_0x3cc5ba){const _0x190eb8=_0x25ee05;if(_0x3cc5ba[_0x190eb8('0x1457')]&&_0x3cc5ba[_0x190eb8('0x1457')]['errors']&&_0x3cc5ba[_0x190eb8('0x1457')][_0x190eb8('0x73e')][_0x190eb8('0x1f73')]){_0x23b202[_0x190eb8('0x73e')]=_0x3cc5ba[_0x190eb8('0x1457')]['errors']||[{'message':_0x3cc5ba[_0x190eb8('0x9b6')](),'type':'SYSTEM:GETcmList'}];for(let _0xd2572a=0x0;_0xd2572a<_0x3cc5ba[_0x190eb8('0x1457')][_0x190eb8('0x73e')][_0x190eb8('0x1f73')];_0xd2572a++){_0x11fe35[_0x190eb8('0x1db9')]({'title':_0x3cc5ba[_0x190eb8('0x1457')]['errors'][_0xd2572a][_0x190eb8('0x412')],'msg':_0x3cc5ba[_0x190eb8('0x1457')][_0x190eb8('0x73e')][_0xd2572a][_0x190eb8('0x1603')]});}}else _0x11fe35[_0x190eb8('0x1db9')]({'title':_0x3cc5ba[_0x190eb8('0x11c5')]?_0x190eb8('0x14f7')+_0x3cc5ba[_0x190eb8('0x11c5')]+'\x20-\x20'+_0x3cc5ba['statusText']:_0x190eb8('0x58e'),'msg':_0x3cc5ba['data']?JSON[_0x190eb8('0x678')](_0x3cc5ba[_0x190eb8('0x1457')][_0x190eb8('0x1603')]):_0x3cc5ba[_0x190eb8('0x1603')]||_0x3cc5ba[_0x190eb8('0x9b6')]()});});}function _0x3958e3(){const _0x1edd0e=_0x5b5edd,_0x442b84=angular['copy'](_0x23b202[_0x1edd0e('0x2614')]);return _0x23b202[_0x1edd0e('0x2614')]=[],_0x442b84;}function _0x4c5733(_0x1b4644){const _0x45893d=_0x5b5edd,_0x1c24d2=_0x559989[_0x45893d('0x1121')]()[_0x45893d('0x24d3')](_0x45893d('0x99e'))[_0x45893d('0x211f')](_0x45893d('0xa53')+_0x23b202[_0x45893d('0x2614')][_0x45893d('0x1f73')]+_0x45893d('0x145a')+_0x45893d('0xe9f'))[_0x45893d('0x2095')](_0x45893d('0x1d74'))[_0x45893d('0x104f')](_0x1b4644)['ok']('OK')['cancel'](_0x45893d('0x28a0'));_0x559989[_0x45893d('0x28e2')](_0x1c24d2)['then'](function(){const _0x38dc0a=_0x45893d;_0x23b202[_0x38dc0a('0x2614')][_0x38dc0a('0xccd')](function(_0x3e7296){_0x43087f(_0x3e7296);}),_0x23b202[_0x38dc0a('0x2614')]=[];});}let _0x335590=!![],_0x216dc2=0x1;_0x3657b3['$watch'](_0x5b5edd('0x4c3'),function(_0x350579,_0x581879){const _0x3d2e62=_0x5b5edd;_0x335590?_0x551000(function(){_0x335590=![];}):(!_0x581879&&(_0x216dc2=_0x23b202[_0x3d2e62('0x826')]['page']),_0x350579!==_0x581879&&(_0x23b202['query'][_0x3d2e62('0x115a')]=0x1),!_0x350579&&(_0x23b202[_0x3d2e62('0x826')][_0x3d2e62('0x115a')]=_0x216dc2),_0x38e810());});}const _0x153d68=_0x53d710;_0x2f8ca5[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x1341'),_0x4376d8('0x1fa4'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x2f8ca5(_0x43a4b6,_0x42bda9,_0x128ce9,_0x5dc73f,_0x10461c,_0x5985ad,_0x2fbc60,_0x338b5e,_0x15b03f,_0x463e73,_0x42d4d4,_0x42dee2,_0x3960dd,_0x7a2aed){const _0x448ffd=_0x4376d8,_0x4ed4e1=this;_0x4ed4e1[_0x448ffd('0x197c')]=_0x42d4d4[_0x448ffd('0x2831')](),_0x4ed4e1[_0x448ffd('0x73e')]=[],_0x4ed4e1[_0x448ffd('0x1aeb')]=_0x3960dd,_0x4ed4e1[_0x448ffd('0x1d11')]=_0x42dee2,_0x4ed4e1[_0x448ffd('0x103e')]=_0x7a2aed,_0x4ed4e1[_0x448ffd('0x6ee')]={},_0x4ed4e1[_0x448ffd('0x1572')]=_0x4ed4e1[_0x448ffd('0x1aeb')]&&_0x4ed4e1[_0x448ffd('0x1aeb')][_0x448ffd('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4ed4e1[_0x448ffd('0x24d3')]=_0x448ffd('0x3a0'),_0x4ed4e1[_0x448ffd('0x82e')]={'animation':0x320,'sort':!![],'onSort':function(){const _0x399fe8=_0x448ffd;_0x43a4b6[_0x399fe8('0x3e6')]['$pristine']=![];}},_0x4ed4e1[_0x448ffd('0x1fa4')]=_0x15b03f,_0x4ed4e1['customFields']=_0x338b5e,_0x4ed4e1[_0x448ffd('0x174e')]=![];!_0x4ed4e1[_0x448ffd('0x1fa4')]&&(_0x4ed4e1[_0x448ffd('0x1fa4')]={'type':_0x448ffd('0x132f'),'actionType':'voice'},_0x4ed4e1['title']='CONTACTMANAGER.NEW_CUSTOMFIELD',_0x4ed4e1[_0x448ffd('0x174e')]=!![]);_0x42bda9[_0x448ffd('0x16fb')]['id']&&(_0x4ed4e1[_0x448ffd('0x1fa4')][_0x448ffd('0x7f8')]=_0x42bda9[_0x448ffd('0x16fb')]['id']);_0x43a4b6[_0x448ffd('0x620')](_0x448ffd('0xdb'),function(_0x3b17c7,_0x593186){const _0x3dc0a5=_0x448ffd;if(_0x3b17c7!==_0x593186)switch(_0x3b17c7){case _0x3dc0a5('0x132f'):_0x4ed4e1[_0x3dc0a5('0x1fa4')][_0x3dc0a5('0xa72')]='';break;case _0x3dc0a5('0x2897'):_0x4ed4e1[_0x3dc0a5('0x1fa4')]['values']=[];break;default:}}),_0x4ed4e1[_0x448ffd('0x267c')]=_0x408903,_0x4ed4e1[_0x448ffd('0x9d8')]=_0x1afa33,_0x4ed4e1[_0x448ffd('0x1a6a')]=_0x447031,_0x4ed4e1[_0x448ffd('0x1300')]=_0x432062,_0x4ed4e1[_0x448ffd('0xa3b')]=_0x408f38,_0x4ed4e1[_0x448ffd('0x105a')]=_0x2a8e77,_0x4ed4e1[_0x448ffd('0x1796')]=_0x121948,_0x4ed4e1[_0x448ffd('0x136e')]=_0x21226d;function _0x408f38(_0x3d0362){const _0x292c2d=_0x448ffd;_0x3d0362[_0x292c2d('0x269f')]({'value':_0x292c2d('0x769')}),_0x43a4b6[_0x292c2d('0x3e6')][_0x292c2d('0x2f2')]=![];}function _0x2a8e77(_0x3b000d,_0x3a2f46){const _0xadea56=_0x448ffd;_0x3b000d[_0xadea56('0x2335')](_0x3a2f46,0x1),_0x43a4b6[_0xadea56('0x3e6')][_0xadea56('0x2f2')]=![];}function _0x121948(_0x169d86){const _0x25f20a=_0x448ffd,_0x59a955=_0x169d86[_0x25f20a('0x1f73')];for(let _0x20d888=0x0;_0x20d888<_0x59a955;_0x20d888++){_0x169d86[_0x25f20a('0x2335')](0x0,0x1);}_0x43a4b6[_0x25f20a('0x3e6')][_0x25f20a('0x2f2')]=![];}function _0x408903(){const _0x1967b5=_0x448ffd;_0x4ed4e1['errors']=[],_0x463e73['cmList'][_0x1967b5('0xc5b')]({'id':_0x42bda9[_0x1967b5('0x16fb')]['id']},_0x4ed4e1[_0x1967b5('0x1fa4')])[_0x1967b5('0x1af5')][_0x1967b5('0x17e7')](function(_0x47ca5e){const _0x111730=_0x1967b5;_0x4ed4e1[_0x111730('0x1341')][_0x111730('0x1893')](_0x47ca5e[_0x111730('0x16b2')]()),_0x2fbc60[_0x111730('0x130d')]({'title':'CustomField\x20properly\x20created','msg':_0x4ed4e1['customField']['name']?_0x4ed4e1[_0x111730('0x1fa4')][_0x111730('0x2aa')]+_0x111730('0x15a'):''}),_0x21226d(_0x47ca5e);})['catch'](function(_0x5addff){const _0xdbeef4=_0x1967b5;if(_0x5addff['data']&&_0x5addff[_0xdbeef4('0x1457')]['errors']&&_0x5addff[_0xdbeef4('0x1457')]['errors'][_0xdbeef4('0x1f73')]){_0x4ed4e1[_0xdbeef4('0x73e')]=_0x5addff[_0xdbeef4('0x1457')][_0xdbeef4('0x73e')]||[{'message':_0x5addff[_0xdbeef4('0x9b6')](),'type':_0xdbeef4('0xc28')}];for(let _0x486b48=0x0;_0x486b48<_0x5addff[_0xdbeef4('0x1457')][_0xdbeef4('0x73e')]['length'];_0x486b48+=0x1){_0x2fbc60[_0xdbeef4('0x1db9')]({'title':_0x5addff[_0xdbeef4('0x1457')]['errors'][_0x486b48][_0xdbeef4('0x412')],'msg':_0x5addff[_0xdbeef4('0x1457')]['errors'][_0x486b48]['message']});}}else _0x2fbc60[_0xdbeef4('0x1db9')]({'title':_0x5addff[_0xdbeef4('0x11c5')]?_0xdbeef4('0x14f7')+_0x5addff[_0xdbeef4('0x11c5')]+_0xdbeef4('0x16e4')+_0x5addff[_0xdbeef4('0x1833')]:_0xdbeef4('0xc28'),'msg':_0x5addff[_0xdbeef4('0x1457')]?JSON[_0xdbeef4('0x678')](_0x5addff[_0xdbeef4('0x1457')][_0xdbeef4('0x1603')]):_0x5addff[_0xdbeef4('0x9b6')]()});});}function _0x1afa33(){const _0xdb0c39=_0x448ffd;_0x4ed4e1[_0xdb0c39('0x73e')]=[],_0x463e73[_0xdb0c39('0x14c3')][_0xdb0c39('0x27ba')]({'id':_0x4ed4e1[_0xdb0c39('0x1fa4')]['id']},_0x4ed4e1[_0xdb0c39('0x1fa4')])['$promise'][_0xdb0c39('0x17e7')](function(_0xb24878){const _0x7a0661=_0xdb0c39,_0xe854ed=_0x49cbdd()['find'](_0x4ed4e1['customFields'],{'id':_0xb24878['id']});_0xe854ed&&_0x49cbdd()[_0x7a0661('0x1ced')](_0xe854ed,_0x49cbdd()[_0x7a0661('0x230a')](_0xb24878[_0x7a0661('0x16b2')](),_0x49cbdd()[_0x7a0661('0x1c0f')](_0xe854ed))),_0x2fbc60[_0x7a0661('0x130d')]({'title':_0x7a0661('0x208'),'msg':_0x4ed4e1[_0x7a0661('0x1fa4')][_0x7a0661('0x2aa')]?_0x4ed4e1[_0x7a0661('0x1fa4')][_0x7a0661('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x21226d(_0xb24878);})[_0xdb0c39('0x16df')](function(_0x4fee86){const _0x426491=_0xdb0c39;if(_0x4fee86['data']&&_0x4fee86[_0x426491('0x1457')][_0x426491('0x73e')]&&_0x4fee86[_0x426491('0x1457')][_0x426491('0x73e')][_0x426491('0x1f73')]){_0x4ed4e1[_0x426491('0x73e')]=_0x4fee86[_0x426491('0x1457')]['errors']||[{'message':_0x4fee86[_0x426491('0x9b6')](),'type':_0x426491('0x93f')}];for(let _0x562a3d=0x0;_0x562a3d<_0x4fee86[_0x426491('0x1457')][_0x426491('0x73e')][_0x426491('0x1f73')];_0x562a3d++){_0x2fbc60[_0x426491('0x1db9')]({'title':_0x4fee86[_0x426491('0x1457')]['errors'][_0x562a3d][_0x426491('0x412')],'msg':_0x4fee86['data']['errors'][_0x562a3d]['message']});}}else _0x2fbc60[_0x426491('0x1db9')]({'title':_0x4fee86[_0x426491('0x11c5')]?_0x426491('0x14f7')+_0x4fee86[_0x426491('0x11c5')]+_0x426491('0x16e4')+_0x4fee86[_0x426491('0x1833')]:_0x426491('0x93f'),'msg':_0x4fee86['data']?JSON['stringify'](_0x4fee86[_0x426491('0x1457')][_0x426491('0x1603')]):_0x4fee86[_0x426491('0x9b6')]()});});}function _0x447031(_0x36adc0){const _0x619ab=_0x448ffd;_0x4ed4e1[_0x619ab('0x73e')]=[];const _0x2d773c=_0x5dc73f[_0x619ab('0x1121')]()[_0x619ab('0x24d3')](_0x619ab('0x530'))[_0x619ab('0xd5')](_0x619ab('0x1f0e'))[_0x619ab('0x2095')]('Delete\x20CustomField')['ok'](_0x619ab('0x304'))[_0x619ab('0x1d47')](_0x619ab('0x1b70'))[_0x619ab('0x104f')](_0x36adc0);_0x5dc73f[_0x619ab('0x28e2')](_0x2d773c)['then'](function(){const _0x2e4418=_0x619ab;_0x463e73[_0x2e4418('0x14c3')]['delete']({'id':_0x4ed4e1[_0x2e4418('0x1fa4')]['id']})[_0x2e4418('0x1af5')]['then'](function(){const _0x44fb71=_0x2e4418;_0x49cbdd()['remove'](_0x4ed4e1[_0x44fb71('0x1341')],{'id':_0x4ed4e1[_0x44fb71('0x1fa4')]['id']}),_0x2fbc60[_0x44fb71('0x130d')]({'title':'CustomField\x20properly\x20deleted!','msg':(_0x4ed4e1[_0x44fb71('0x1fa4')][_0x44fb71('0x2aa')]||'customField')+_0x44fb71('0x149f')}),_0x21226d(_0x4ed4e1['customField']);})['catch'](function(_0x4ea791){const _0x267e45=_0x2e4418;if(_0x4ea791[_0x267e45('0x1457')]&&_0x4ea791[_0x267e45('0x1457')]['errors']&&_0x4ea791[_0x267e45('0x1457')]['errors'][_0x267e45('0x1f73')]){_0x4ed4e1[_0x267e45('0x73e')]=_0x4ea791[_0x267e45('0x1457')][_0x267e45('0x73e')]||[{'message':_0x4ea791[_0x267e45('0x9b6')](),'type':_0x267e45('0x11e4')}];for(let _0x514f8d=0x0;_0x514f8d<_0x4ea791[_0x267e45('0x1457')][_0x267e45('0x73e')][_0x267e45('0x1f73')];_0x514f8d++){_0x2fbc60[_0x267e45('0x1db9')]({'title':_0x4ea791[_0x267e45('0x1457')][_0x267e45('0x73e')][_0x514f8d][_0x267e45('0x412')],'msg':_0x4ea791['data'][_0x267e45('0x73e')][_0x514f8d][_0x267e45('0x1603')]});}}else _0x2fbc60[_0x267e45('0x1db9')]({'title':_0x4ea791[_0x267e45('0x11c5')]?'API:'+_0x4ea791['status']+_0x267e45('0x16e4')+_0x4ea791[_0x267e45('0x1833')]:'api.cmCustomField.delete','msg':_0x4ea791['data']?JSON[_0x267e45('0x678')](_0x4ea791[_0x267e45('0x1457')][_0x267e45('0x1603')]):_0x4ea791['message']||_0x4ea791[_0x267e45('0x9b6')]()});});},function(){});}function _0x432062(_0x37b268){return _0x37b268===null?undefined:new Date(_0x37b268);}function _0x21226d(_0x466695){_0x5dc73f['hide'](_0x466695);}}const _0x2992e0=_0x2f8ca5,_0x44a871=_0x4cf2bc['p']+_0x4376d8('0xcef');_0x493c6e['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$translate',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x134c'),_0x4376d8('0x383')];function _0x493c6e(_0xfad2cd,_0x201a40,_0xac4b15,_0xbbeb0d,_0xcf38f8,_0xdff897,_0x4d30d7,_0xe481dd,_0x5844fe,_0x144305,_0x114bcb,_0x4f93b6){const _0x4d4c43=_0x4376d8,_0x343a4d=this;_0x343a4d[_0x4d4c43('0x197c')]=_0x144305[_0x4d4c43('0x2831')](),_0x343a4d[_0x4d4c43('0x1d11')]=_0xdff897,_0x343a4d[_0x4d4c43('0x1aeb')]=_0x4d30d7,_0x343a4d[_0x4d4c43('0x1572')]=_0x343a4d[_0x4d4c43('0x1aeb')][_0x4d4c43('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x343a4d[_0x4d4c43('0xaed')]=_0x201a40[_0x4d4c43('0x14fe')]()+_0x4d4c43('0x14')+_0x201a40['host'](),_0x343a4d[_0x4d4c43('0x134c')]=_0x114bcb||_0xfad2cd[_0x4d4c43('0x16fb')][_0x4d4c43('0x134c')]||{},_0x343a4d[_0x4d4c43('0x383')]=_0x4f93b6&&_0x4f93b6['count']==0x1?_0x4f93b6[_0x4d4c43('0x2319')][0x0]:null,_0x343a4d[_0x4d4c43('0x103e')]=_0x144305[_0x4d4c43('0x17a9')](_0x343a4d[_0x4d4c43('0x383')]?_0x343a4d['userProfileSection'][_0x4d4c43('0x103e')]:null),_0x343a4d[_0x4d4c43('0x6ee')]={},_0x343a4d[_0x4d4c43('0xde7')]=_0xfad2cd[_0x4d4c43('0x16fb')][_0x4d4c43('0x1523')]||0x0,_0x343a4d[_0x4d4c43('0x2794')]=_0x5c76fe,_0x343a4d[_0x4d4c43('0x2359')]=_0x4c24db,_0x343a4d[_0x4d4c43('0x99f')]=_0x5844fe['info'],_0x343a4d[_0x4d4c43('0x5fa')]=_0x287f86,_0x343a4d[_0x4d4c43('0x27ac')]=_0x83c0be;function _0x5c76fe(_0x5ee633){const _0x27e649=_0x4d4c43;if(_0x144305['hasRole'](_0x27e649('0x20bf')))_0xfad2cd['go'](_0x27e649('0x6f8'),{'ListId':_0x5ee633['id']});else return _0xe481dd[_0x27e649('0x383')][_0x27e649('0x1c53')]({'userProfileId':_0x144305[_0x27e649('0x2831')]()[_0x27e649('0x1e76')],'sectionId':0x12f})[_0x27e649('0x1af5')][_0x27e649('0x17e7')](function(_0x1e196f){const _0x196751=_0x27e649,_0xa246c0=_0x1e196f&&_0x1e196f['rows']?_0x1e196f[_0x196751('0x2319')][0x0]:null;_0xa246c0&&_0xa246c0['enabled']?_0xfad2cd['go']('app.contactmanager.contacts',{'ListId':_0x5ee633['id']}):_0x5844fe['info']({'title':_0xcf38f8[_0x196751('0x1acc')](_0x196751('0x286e')),'msg':_0xcf38f8[_0x196751('0x1acc')](_0x196751('0x1169'))});})[_0x27e649('0x16df')](function(_0xcbb728){const _0x3804da=_0x27e649;_0x5844fe[_0x3804da('0x1db9')]({'title':_0xcbb728['status']?_0x3804da('0x14f7')+_0xcbb728[_0x3804da('0x11c5')]+_0x3804da('0x16e4')+_0xcbb728['statusText']:_0x3804da('0x338'),'msg':_0xcbb728[_0x3804da('0x11c5')]?JSON[_0x3804da('0x678')](_0xcbb728[_0x3804da('0x1457')]):_0xcbb728['toString']()});});}function _0x4c24db(_0x27877f,_0x50cd79){const _0x1c7722=_0x4d4c43;_0xac4b15[_0x1c7722('0x28e2')]({'controller':_0x1c7722('0x270'),'controllerAs':'vm','templateUrl':_0x44a871,'parent':angular['element'](_0xbbeb0d[_0x1c7722('0x13aa')]),'targetEvent':_0x50cd79,'clickOutsideToClose':!![],'locals':{'list':_0x27877f,'lists':_0x343a4d[_0x1c7722('0x2504')]?_0x343a4d[_0x1c7722('0x2504')][_0x1c7722('0x2319')]:[],'crudPermissions':_0x343a4d[_0x1c7722('0x103e')],'realtime':![]}});}function _0x287f86(){const _0x318cff=_0x4d4c43;_0xfad2cd['go'](_0x318cff('0xe01'),{},{'reload':_0x318cff('0xe01')});}function _0x83c0be(){const _0xbc71f6=_0x4d4c43;_0xe481dd[_0xbc71f6('0x25b')][_0xbc71f6('0x27ba')]({'id':_0x343a4d[_0xbc71f6('0x134c')]['id']},_0x343a4d[_0xbc71f6('0x134c')])[_0xbc71f6('0x1af5')][_0xbc71f6('0x17e7')](function(){const _0x1d9ea9=_0xbc71f6;_0x5844fe[_0x1d9ea9('0x130d')]({'title':_0x1d9ea9('0x1cb7'),'msg':_0x343a4d[_0x1d9ea9('0x134c')][_0x1d9ea9('0x2aa')]?_0x343a4d[_0x1d9ea9('0x134c')][_0x1d9ea9('0x2aa')]+_0x1d9ea9('0x12b0'):''});})[_0xbc71f6('0x16df')](function(_0x4bae6a){const _0x5e8d17=_0xbc71f6;_0x5844fe[_0x5e8d17('0x1db9')]({'title':_0x4bae6a['status']?_0x5e8d17('0x14f7')+_0x4bae6a[_0x5e8d17('0x11c5')]+_0x5e8d17('0x16e4')+_0x4bae6a['statusText']:'SYSTEM:GETcmList','msg':_0x4bae6a[_0x5e8d17('0x1457')]?JSON[_0x5e8d17('0x678')](_0x4bae6a[_0x5e8d17('0x1457')]):_0x4bae6a[_0x5e8d17('0x9b6')]()});});}}const _0x432e95=_0x493c6e,_0x27dcbe=_0x4cf2bc['p']+_0x4376d8('0x162a');_0x5e6b9b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document','$timeout',_0x4376d8('0x28da'),'api',_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x5e6b9b(_0x357418,_0x4dda29,_0x467308,_0x3a6f4b,_0x215680,_0x4417fa,_0x5e1128,_0x4f1fdd,_0x44b3de,_0x40f994,_0x405f41){const _0x289f55=_0x4376d8,_0x4222eb=this;_0x4222eb['currentUser']=_0x405f41[_0x289f55('0x2831')](),_0x4222eb[_0x289f55('0x23fe')]={'count':0x0,'rows':[]},_0x4222eb[_0x289f55('0x440')]=[],_0x4222eb['crudPermissions'],_0x4222eb[_0x289f55('0x1e26')]={'first':_0x289f55('0xa13'),'second':_0x289f55('0xf67'),'third':_0x289f55('0x13a2')},_0x4222eb[_0x289f55('0x826')]={'fields':_0x289f55('0x2b9'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4222eb[_0x289f55('0x161d')]=_0xabfe10,_0x4222eb['deleteConfirm']=_0x6987cd,_0x4222eb['success']=_0x8f818a,_0x4222eb[_0x289f55('0x26c2')]=_0x59698b,_0x4222eb['createOrEditDisposition']=_0x544fd7,_0x4222eb[_0x289f55('0x2802')]=_0x27f60f,_0x4222eb[_0x289f55('0xa8e')]=_0x4126ed,_0x4222eb['deleteSelectedDispositions']=_0x39f567,_0x4222eb[_0x289f55('0x4cb')]=_0x2607aa,_0x4222eb[_0x289f55('0x11d8')]=_0x49f45b;function _0xabfe10(_0x79a422,_0x2cafeb){const _0x5c997e=_0x289f55;_0x4222eb[_0x5c997e('0x134c')]=_0x79a422||{},_0x4222eb['crudPermissions']=typeof _0x2cafeb!==_0x5c997e('0xfad')?_0x2cafeb:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4222eb[_0x5c997e('0x826')]['ListId']=_0x4222eb['list']['id'],_0x4222eb[_0x5c997e('0x826')]['id']=_0x4222eb['list']['id'],_0x59698b();}function _0x544fd7(_0x5bde9f,_0x2594ee){const _0x581133=_0x289f55;_0x215680['show']({'controller':_0x581133('0x8e0'),'controllerAs':'vm','templateUrl':_0x27dcbe,'parent':angular['element'](_0x4417fa[_0x581133('0x13aa')]),'targetEvent':_0x5bde9f,'clickOutsideToClose':!![],'locals':{'disposition':_0x2594ee,'dispositions':_0x4222eb['dispositions'][_0x581133('0x2319')],'model':{'id':_0x4222eb[_0x581133('0x134c')]['id'],'field':_0x581133('0x7f8')},'license':null,'setting':null,'crudPermissions':_0x4222eb[_0x581133('0x103e')]}})['then'](function(_0x29bb95){if(_0x29bb95)_0x59698b();});}function _0x6987cd(_0x18ae16,_0x2c11b1){const _0x213401=_0x289f55,_0x1aa1fd=_0x49cbdd()[_0x213401('0x26f8')](_0x4222eb['dispositions']['rows'],[_0x213401('0x1a27'),_0x18ae16['id']]),_0x274b44=_0x215680['confirm']()[_0x213401('0x24d3')](_0x4f1fdd[_0x213401('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x213401('0xd5')](_0x4f1fdd[_0x213401('0x1acc')](_0x213401('0x2ab')+(_0x1aa1fd?_0x213401('0xa0a'):'DISPOSITION_DELETE_MESSAGE'),{'name':_0x18ae16['name']}))['ariaLabel'](_0x213401('0x1596'))['targetEvent'](_0x2c11b1)['ok']('OK')['cancel'](_0x4f1fdd['instant'](_0x213401('0x34f')));_0x215680['show'](_0x274b44)[_0x213401('0x17e7')](function(){_0x27f60f(_0x18ae16);});}function _0x8f818a(_0x59dda7){_0x4222eb['dispositions']=_0x59dda7||{'count':0x0,'rows':[]};}function _0x59698b(){const _0x16b112=_0x289f55;_0x4222eb[_0x16b112('0x826')][_0x16b112('0xf19')]=(_0x4222eb[_0x16b112('0x826')]['page']-0x1)*_0x4222eb[_0x16b112('0x826')][_0x16b112('0x193b')],_0x4222eb[_0x16b112('0x1691')]=_0x44b3de[_0x16b112('0x25b')][_0x16b112('0x26c2')](_0x4222eb['query'],_0x8f818a)[_0x16b112('0x1af5')];}function _0x27f60f(_0x414f15){const _0x4d3648=_0x289f55;_0x44b3de[_0x4d3648('0x1f27')]['delete']({'id':_0x414f15['id']})['$promise']['then'](function(){const _0x9b3f94=_0x4d3648;_0x59698b(),_0x40f994[_0x9b3f94('0x130d')]({'title':_0x4f1fdd[_0x9b3f94('0x1acc')](_0x9b3f94('0x10dc'))});})[_0x4d3648('0x16df')](function(_0x446f35){const _0x644326=_0x4d3648;if(_0x446f35[_0x644326('0x1457')]&&_0x446f35[_0x644326('0x1457')][_0x644326('0x73e')]&&_0x446f35[_0x644326('0x1457')][_0x644326('0x73e')][_0x644326('0x1f73')]){_0x4222eb[_0x644326('0x73e')]=_0x446f35[_0x644326('0x1457')][_0x644326('0x73e')]||[{'message':_0x446f35[_0x644326('0x9b6')](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x410411=0x0;_0x410411<_0x446f35[_0x644326('0x1457')]['errors'][_0x644326('0x1f73')];_0x410411++){_0x40f994[_0x644326('0x1db9')]({'title':_0x446f35['data'][_0x644326('0x73e')][_0x410411]['type'],'msg':_0x446f35['data']['errors'][_0x410411][_0x644326('0x1603')]});}}else _0x40f994[_0x644326('0x1db9')]({'title':_0x446f35[_0x644326('0x11c5')]?_0x644326('0x14f7')+_0x446f35[_0x644326('0x11c5')]+_0x644326('0x16e4')+_0x446f35[_0x644326('0x1833')]:_0x644326('0x104a'),'msg':_0x446f35[_0x644326('0x1457')]?JSON[_0x644326('0x678')](_0x446f35[_0x644326('0x1457')][_0x644326('0x1603')]):_0x446f35[_0x644326('0x1603')]||_0x446f35[_0x644326('0x9b6')]()});});}function _0x4126ed(){const _0x44892d=_0x289f55,_0x451656=angular[_0x44892d('0x14e5')](_0x4222eb[_0x44892d('0x440')]);return _0x4222eb['selectedDispositions']=[],_0x451656;}function _0x39f567(_0x4ee0b6){const _0x4a8fcd=_0x289f55,_0x42281e=_0x215680['confirm']()[_0x4a8fcd('0x24d3')](_0x4f1fdd['instant']('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))['content'](_0x4f1fdd['instant'](_0x4a8fcd('0x11b8'),{'total':_0x4222eb['selectedDispositions'][_0x4a8fcd('0x1f73')]}))['ariaLabel'](_0x4a8fcd('0x844'))['targetEvent'](_0x4ee0b6)['ok']('OK')[_0x4a8fcd('0x1d47')](_0x4f1fdd[_0x4a8fcd('0x1acc')](_0x4a8fcd('0x34f')));_0x215680[_0x4a8fcd('0x28e2')](_0x42281e)[_0x4a8fcd('0x17e7')](function(){const _0x5cf459=_0x4a8fcd;_0x4222eb['selectedDispositions'][_0x5cf459('0xccd')](function(_0xee5351){_0x27f60f(_0xee5351);}),_0x4222eb[_0x5cf459('0x440')]=[];});}function _0x2607aa(){_0x4222eb['selectedDispositions']=[];}function _0x49f45b(){const _0x40a603=_0x289f55;_0x4222eb[_0x40a603('0x440')]=_0x4222eb[_0x40a603('0x23fe')][_0x40a603('0x2319')];}let _0x50c809=!![],_0x2ecf3f=0x1;_0x357418['$watch'](_0x289f55('0x4c3'),function(_0x40e0dc,_0x2df958){const _0x57e11a=_0x289f55;_0x50c809?_0x5e1128(function(){_0x50c809=![];}):(!_0x2df958&&(_0x2ecf3f=_0x4222eb[_0x57e11a('0x826')][_0x57e11a('0x115a')]),_0x40e0dc!==_0x2df958&&(_0x4222eb[_0x57e11a('0x826')][_0x57e11a('0x115a')]=0x1),!_0x40e0dc&&(_0x4222eb[_0x57e11a('0x826')]['page']=_0x2ecf3f),_0x59698b());});}const _0x855b8f=_0x5e6b9b,_0x4dc8cc=_0x4cf2bc['p']+_0x4376d8('0x21b4');_0x24804d['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x2504'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting'];function _0x24804d(_0x1ab2ae,_0x2610b0,_0x52344a,_0x20c679,_0x43506f,_0x466f8a,_0x9eaa55,_0x5f4672,_0x578ec4,_0x51345f,_0x34faed,_0x24718c,_0x368bae,_0x26e29b,_0x99014d,_0x2bee85,_0x78b154){const _0x3bb1cf=_0x4376d8,_0x18d54a=this;_0x18d54a['license']=_0x2bee85,_0x18d54a[_0x3bb1cf('0x1aeb')]=_0x78b154,_0x18d54a[_0x3bb1cf('0x197c')]=_0x99014d['getCurrentUser'](),_0x18d54a['lists']=_0x578ec4||{'count':0x0,'rows':[]},_0x18d54a[_0x3bb1cf('0xdeb')]=_0x51345f,_0x18d54a[_0x3bb1cf('0x383')]=_0x34faed&&_0x34faed['count']==0x1?_0x34faed[_0x3bb1cf('0x2319')][0x0]:null,_0x18d54a['crudPermissions']=_0x99014d[_0x3bb1cf('0x17a9')](_0x18d54a['userProfileSection']?_0x18d54a[_0x3bb1cf('0x383')]['crudPermissions']:null),_0x18d54a['table']=_0x3bb1cf('0x2504'),_0x18d54a['listOrder']='',_0x18d54a[_0x3bb1cf('0x24e1')]=null,_0x18d54a['selectedLists']=[],_0x18d54a[_0x3bb1cf('0x826')]={'fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':_0x3bb1cf('0x1ac6'),'limit':0xa,'page':0x1},_0x18d54a[_0x3bb1cf('0xcd4')]=_0xa99f3b,_0x18d54a[_0x3bb1cf('0x2834')]=_0x4a36e8,_0x18d54a['exportcsvcontactsexport']=_0x46ad23,_0x18d54a['agentadddialog']=_0x15a854,_0x18d54a[_0x3bb1cf('0xbf4')]=_0x3c1fa8,_0x18d54a[_0x3bb1cf('0x130d')]=_0x3cb88,_0x18d54a[_0x3bb1cf('0x852')]=_0x890baf,_0x18d54a['createOrEditList']=_0x510c8d,_0x18d54a['deleteList']=_0x44dec4,_0x18d54a[_0x3bb1cf('0x15cb')]=_0x317883,_0x18d54a[_0x3bb1cf('0x30d')]=_0x5e65c7,_0x18d54a[_0x3bb1cf('0x1623')]=_0x34d8f0,_0x18d54a['selectAllLists']=_0x37e7bd;function _0xa99f3b(_0x7c38d7){const _0x3667f4=_0x3bb1cf;_0x52344a['go'](_0x3667f4('0x1801'),{'id':_0x7c38d7['id'],'list':_0x7c38d7,'crudPermissions':_0x18d54a[_0x3667f4('0x103e')]});}function _0x4a36e8(_0x15d3ac){const _0x5c8a02=_0x3bb1cf;if(_0x99014d[_0x5c8a02('0x1ba2')](_0x5c8a02('0x20bf')))_0x52344a['go'](_0x5c8a02('0x6f8'),{'ListId':_0x15d3ac['id']});else return _0x24718c['userProfileSection'][_0x5c8a02('0x1c53')]({'userProfileId':_0x99014d['getCurrentUser']()[_0x5c8a02('0x1e76')],'sectionId':0x12f})['$promise']['then'](function(_0x3ebf60){const _0xf11b38=_0x5c8a02,_0x341b63=_0x3ebf60&&_0x3ebf60[_0xf11b38('0x2319')]?_0x3ebf60[_0xf11b38('0x2319')][0x0]:null;_0x341b63&&_0x341b63[_0xf11b38('0x1cd3')]?_0x52344a['go'](_0xf11b38('0x6f8'),{'ListId':_0x15d3ac['id']}):_0x26e29b['info']({'title':_0x5f4672[_0xf11b38('0x1acc')](_0xf11b38('0x286e')),'msg':_0x5f4672[_0xf11b38('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})['catch'](function(_0x59e9e9){const _0x101670=_0x5c8a02;_0x26e29b[_0x101670('0x1db9')]({'title':_0x59e9e9[_0x101670('0x11c5')]?_0x101670('0x14f7')+_0x59e9e9[_0x101670('0x11c5')]+'\x20-\x20'+_0x59e9e9[_0x101670('0x1833')]:_0x101670('0x338'),'msg':_0x59e9e9['status']?JSON[_0x101670('0x678')](_0x59e9e9[_0x101670('0x1457')]):_0x59e9e9[_0x101670('0x9b6')]()});});}function _0x46ad23(_0x263578){const _0x1357ed=_0x3bb1cf;return _0x24718c['cmList'][_0x1357ed('0x21ac')]({'id':_0x263578['id'],'nolimit':!![]})['$promise'][_0x1357ed('0x17e7')](function(_0x4da8ba){const _0x216f92=_0x1357ed;if(typeof _0x4da8ba['length']!=='undefined'){const _0x58aea5=[_0x4da8ba[_0x216f92('0x3ca')]],_0x53b2a5=new Blob(_0x58aea5,{'type':_0x4da8ba[_0x216f92('0x412')]}),_0x30d0c3=window[_0x216f92('0x2be')][_0x216f92('0x68d')]('a');_0x30d0c3['setAttribute']('href',URL[_0x216f92('0x28ce')](_0x53b2a5)),_0x30d0c3[_0x216f92('0x224')](_0x216f92('0x1244'),_0x216f92('0x66b')+_0x263578['id']+'.csv'),_0x30d0c3[_0x216f92('0x20d4')]();}else _0x26e29b[_0x216f92('0x1178')]({'title':_0x216f92('0x1f26'),'msg':_0x216f92('0x484')});})[_0x1357ed('0x16df')](function(_0x3e1f0f){const _0x5effd5=_0x1357ed;_0x26e29b['error']({'title':_0x3e1f0f[_0x5effd5('0x11c5')]?_0x5effd5('0x14f7')+_0x3e1f0f[_0x5effd5('0x11c5')]+_0x5effd5('0x16e4')+_0x3e1f0f['statusText']:_0x5effd5('0x58e'),'msg':_0x3e1f0f[_0x5effd5('0x1457')]?JSON[_0x5effd5('0x678')](_0x3e1f0f[_0x5effd5('0x1457')]):_0x3e1f0f[_0x5effd5('0x9b6')]()});});}function _0x15a854(_0x4ecce4,_0xcb9df0){const _0x594d88=_0x3bb1cf;_0x43506f['show']({'controller':_0x594d88('0x270'),'controllerAs':'vm','templateUrl':_0x44a871,'parent':angular[_0x594d88('0x1ce1')](_0x466f8a[_0x594d88('0x13aa')]),'targetEvent':_0xcb9df0,'clickOutsideToClose':!![],'locals':{'list':_0x4ecce4,'lists':_0x18d54a[_0x594d88('0x2504')]?_0x18d54a[_0x594d88('0x2504')][_0x594d88('0x2319')]:[],'crudPermissions':_0x18d54a[_0x594d88('0x103e')],'realtime':![]}});}function _0x3c1fa8(_0x2f11e5,_0x2fedc6){const _0x3a58ef=_0x3bb1cf,_0x1f1d2f=_0x43506f['confirm']()[_0x3a58ef('0x24d3')](_0x3a58ef('0x5e1')+_0x49cbdd()['startCase'](_0x3a58ef('0x134c'))+'?')[_0x3a58ef('0x211f')](_0x3a58ef('0xa53')+(_0x2f11e5[_0x3a58ef('0x2aa')]||'list')+_0x3a58ef('0x1d23')+_0x3a58ef('0xe9f'))[_0x3a58ef('0x2095')](_0x3a58ef('0x1724'))['targetEvent'](_0x2fedc6)['ok']('OK')['cancel'](_0x3a58ef('0x28a0'));_0x43506f[_0x3a58ef('0x28e2')](_0x1f1d2f)[_0x3a58ef('0x17e7')](function(){_0x44dec4(_0x2f11e5);},function(){const _0x11e3c0=_0x3a58ef;console[_0x11e3c0('0x1d63')](_0x11e3c0('0x28a0'));});}let _0x323f2e=!![],_0x296fbf=0x1;_0x1ab2ae['$watch']('vm.query.filter',function(_0xed8414,_0x50217f){const _0x3a6a88=_0x3bb1cf;_0x323f2e?_0x9eaa55(function(){_0x323f2e=![];}):(!_0x50217f&&(_0x296fbf=_0x18d54a[_0x3a6a88('0x826')][_0x3a6a88('0x115a')]),_0xed8414!==_0x50217f&&(_0x18d54a[_0x3a6a88('0x826')][_0x3a6a88('0x115a')]=0x1),!_0xed8414&&(_0x18d54a['query']['page']=_0x296fbf),_0x18d54a[_0x3a6a88('0x852')]());});function _0x3cb88(_0xcd86b){const _0x32a350=_0x3bb1cf;_0x18d54a[_0x32a350('0x2504')]=_0xcd86b||{'count':0x0,'rows':[]};}function _0x890baf(){const _0x4c99ea=_0x3bb1cf;_0x18d54a[_0x4c99ea('0x826')][_0x4c99ea('0xf19')]=(_0x18d54a[_0x4c99ea('0x826')][_0x4c99ea('0x115a')]-0x1)*_0x18d54a[_0x4c99ea('0x826')][_0x4c99ea('0x193b')],_0x99014d[_0x4c99ea('0x1ba2')](_0x4c99ea('0x20bf'))?_0x18d54a['promise']=_0x24718c[_0x4c99ea('0x25b')][_0x4c99ea('0x1c53')](_0x18d54a[_0x4c99ea('0x826')],_0x3cb88)[_0x4c99ea('0x1af5')]:(_0x18d54a[_0x4c99ea('0x826')]['id']=_0x18d54a[_0x4c99ea('0xdeb')]['id'],_0x18d54a['query']['section']=_0x4c99ea('0xeee'),_0x18d54a[_0x4c99ea('0x1691')]=_0x24718c['userProfile'][_0x4c99ea('0x2447')](_0x18d54a['query'],_0x3cb88)['$promise']);}function _0x510c8d(_0x4f8b8a,_0x6a8012){const _0x5d56fa=_0x3bb1cf;_0x43506f[_0x5d56fa('0x28e2')]({'controller':_0x5d56fa('0x15f3'),'controllerAs':'vm','templateUrl':_0x4dc8cc,'parent':angular[_0x5d56fa('0x1ce1')](_0x466f8a[_0x5d56fa('0x13aa')]),'targetEvent':_0x4f8b8a,'clickOutsideToClose':!![],'locals':{'list':_0x6a8012,'lists':_0x18d54a[_0x5d56fa('0x2504')][_0x5d56fa('0x2319')],'license':_0x18d54a['license'],'setting':_0x18d54a[_0x5d56fa('0x1aeb')],'crudPermissions':_0x18d54a[_0x5d56fa('0x103e')]}});}function _0x44dec4(_0x5624be){const _0x1b39de=_0x3bb1cf;_0x24718c['cmList'][_0x1b39de('0x1da6')]({'id':_0x5624be['id']})[_0x1b39de('0x1af5')][_0x1b39de('0x17e7')](function(){const _0x4a4c93=_0x1b39de;_0x49cbdd()[_0x4a4c93('0x5f3')](_0x18d54a['lists'][_0x4a4c93('0x2319')],{'id':_0x5624be['id']}),_0x18d54a['lists']['count']-=0x1,!_0x18d54a[_0x4a4c93('0x2504')]['rows'][_0x4a4c93('0x1f73')]&&_0x18d54a[_0x4a4c93('0x852')](),_0x26e29b[_0x4a4c93('0x130d')]({'title':_0x49cbdd()['startCase'](_0x4a4c93('0x239a'))+_0x4a4c93('0x2673'),'msg':_0x5624be[_0x4a4c93('0x2aa')]?_0x5624be['name']+_0x4a4c93('0x149f'):''});})['catch'](function(_0x29497f){const _0x48c991=_0x1b39de;if(_0x29497f['data']&&_0x29497f[_0x48c991('0x1457')][_0x48c991('0x73e')]&&_0x29497f[_0x48c991('0x1457')][_0x48c991('0x73e')][_0x48c991('0x1f73')]){_0x18d54a['errors']=_0x29497f[_0x48c991('0x1457')][_0x48c991('0x73e')]||[{'message':_0x29497f['toString'](),'type':'SYSTEM:DELETEcmList'}];for(let _0x35d3db=0x0;_0x35d3db<_0x29497f['data']['errors'][_0x48c991('0x1f73')];_0x35d3db++){_0x26e29b[_0x48c991('0x1db9')]({'title':_0x29497f[_0x48c991('0x1457')][_0x48c991('0x73e')][_0x35d3db][_0x48c991('0x412')],'msg':_0x29497f[_0x48c991('0x1457')][_0x48c991('0x73e')][_0x35d3db][_0x48c991('0x1603')]});}}else _0x26e29b[_0x48c991('0x1db9')]({'title':_0x29497f['status']?_0x48c991('0x14f7')+_0x29497f[_0x48c991('0x11c5')]+_0x48c991('0x16e4')+_0x29497f[_0x48c991('0x1833')]:_0x48c991('0x85'),'msg':_0x29497f['data']?JSON['stringify'](_0x29497f[_0x48c991('0x1457')][_0x48c991('0x1603')]):_0x29497f[_0x48c991('0x1603')]||_0x29497f[_0x48c991('0x9b6')]()});});}function _0x317883(){const _0x4af947=_0x3bb1cf,_0x3a52c8=angular[_0x4af947('0x14e5')](_0x18d54a[_0x4af947('0x1f1e')]);return _0x18d54a['selectedLists']=[],_0x3a52c8;}function _0x5e65c7(_0x2215a3){const _0xae40a4=_0x3bb1cf,_0x30af64=_0x43506f['confirm']()[_0xae40a4('0x24d3')](_0xae40a4('0x7d4'))[_0xae40a4('0x211f')](_0xae40a4('0xa53')+_0x18d54a['selectedLists'][_0xae40a4('0x1f73')]+_0xae40a4('0x145a')+_0xae40a4('0xe9f'))['ariaLabel'](_0xae40a4('0x1107'))[_0xae40a4('0x104f')](_0x2215a3)['ok']('OK')[_0xae40a4('0x1d47')](_0xae40a4('0x28a0'));_0x43506f['show'](_0x30af64)['then'](function(){const _0x5a988b=_0xae40a4;_0x18d54a[_0x5a988b('0x1f1e')][_0x5a988b('0xccd')](function(_0x560a56){_0x44dec4(_0x560a56);}),_0x18d54a[_0x5a988b('0x1f1e')]=[];});}function _0x34d8f0(){_0x18d54a['selectedLists']=[];}function _0x37e7bd(){const _0x1430fd=_0x3bb1cf;_0x18d54a[_0x1430fd('0x1f1e')]=_0x18d54a['lists'][_0x1430fd('0x2319')];}}const _0x2b00d6=_0x24804d,_0x4c533d=_0x4cf2bc['p']+_0x4376d8('0x27b'),_0x9e56c2=_0x4cf2bc['p']+_0x4376d8('0x15b0'),_0x10288f=_0x4cf2bc['p']+_0x4376d8('0x250c'),_0x2fa221=_0x4cf2bc['p']+'src/js/modules/main/apps/contactmanager/views/companies/edit/view.html/view.html',_0x338d9d=_0x4cf2bc['p']+_0x4376d8('0x1f39');_0x389429[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x389429(_0x2039c7,_0xc64f15){const _0x3050e6=_0x4376d8;_0x2039c7[_0x3050e6('0x1b9a')]('app.contactmanager',{'abstract':!![],'url':'/contactmanager'})[_0x3050e6('0x1b9a')](_0x3050e6('0xe01'),{'url':_0x3050e6('0x1c46'),'views':{'content@app':{'templateUrl':_0x4c533d,'controller':_0x3050e6('0x30e')}},'resolve':{'lists':['apiResolver',_0x3050e6('0x1885'),function(_0xab3684,_0x12e0b0){const _0x3c2e90=_0x3050e6;return _0x12e0b0[_0x3c2e90('0x1ba2')](_0x3c2e90('0x20bf'))?_0xab3684['resolve'](_0x3c2e90('0x1fd9'),{'fields':_0x3c2e90('0x1912'),'sort':_0x3c2e90('0x1ac6'),'limit':0xa,'offset':0x0}):_0xab3684[_0x3c2e90('0x898')]('userProfile@getResources',{'id':_0x12e0b0[_0x3c2e90('0x2831')]()[_0x3c2e90('0x1e76')],'section':'Lists','fields':'createdAt,updatedAt,id,name,description,dialPrefix','sort':_0x3c2e90('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3050e6('0x177'),'Auth',function(_0x2f9bb4,_0x15df4c){const _0x26e3de=_0x3050e6;return _0x15df4c[_0x26e3de('0x1ba2')](_0x26e3de('0x20bf'))?null:_0x2f9bb4[_0x26e3de('0x898')](_0x26e3de('0x235d'),{'fields':_0x26e3de('0x8d3'),'id':_0x15df4c[_0x26e3de('0x2831')]()[_0x26e3de('0x1e76')]});}],'userProfileSection':[_0x3050e6('0x177'),_0x3050e6('0x1885'),function(_0x20bde4,_0x41842d){const _0x731620=_0x3050e6;return _0x41842d[_0x731620('0x1ba2')]('admin')?null:_0x20bde4[_0x731620('0x898')](_0x731620('0x23e7'),{'fields':_0x731620('0x1134'),'userProfileId':_0x41842d[_0x731620('0x2831')]()[_0x731620('0x1e76')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':'contactmanager'})[_0x3050e6('0x1b9a')](_0x3050e6('0x1801'),{'url':'/:id?tab','params':{'list':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x9e56c2,'controller':'ListController\x20as\x20vm'}},'resolve':{'list':[_0x3050e6('0x177'),_0x3050e6('0x118b'),function(_0x285c1a,_0x34e74c){const _0x4422ad=_0x3050e6;return _0x285c1a['resolve'](_0x4422ad('0x1fd9'),{'fields':'createdAt,updatedAt,id,name,description,dialPrefix','id':_0x34e74c['id']});}],'userProfileSection':[_0x3050e6('0x177'),'Auth',function(_0x40f187,_0x1bbfa4){const _0x1c3cab=_0x3050e6;return _0x40f187[_0x1c3cab('0x898')](_0x1c3cab('0x23e7'),{'fields':_0x1c3cab('0x1134'),'userProfileId':_0x1bbfa4[_0x1c3cab('0x2831')]()[_0x1c3cab('0x1e76')],'sectionId':0x12d});}]},'authenticate':!![],'permissionId':0x12d,'bodyClass':_0x3050e6('0x1903')})['state'](_0x3050e6('0x1be9'),{'url':_0x3050e6('0x289d'),'views':{'content@app':{'templateUrl':_0x10288f,'controller':_0x3050e6('0x1a96')}},'resolve':{'companies':['apiResolver',_0x3050e6('0x1885'),function(_0x264a95,_0x27a0fd){const _0x20c66a=_0x3050e6;return _0x27a0fd[_0x20c66a('0x1ba2')](_0x20c66a('0x20bf'))?_0x264a95[_0x20c66a('0x898')](_0x20c66a('0x1281'),{'fields':_0x20c66a('0x11d7'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x264a95['resolve'](_0x20c66a('0x1164'),{'id':_0x27a0fd[_0x20c66a('0x2831')]()[_0x20c66a('0x1e76')],'section':_0x20c66a('0x18d6'),'fields':_0x20c66a('0x11d7'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x3050e6('0x177'),'Auth',function(_0x593859,_0x5d1286){const _0xb153f8=_0x3050e6;return _0x5d1286['hasRole'](_0xb153f8('0x20bf'))?null:_0x593859[_0xb153f8('0x898')](_0xb153f8('0x235d'),{'fields':'id,name,crudPermissions','id':_0x5d1286[_0xb153f8('0x2831')]()[_0xb153f8('0x1e76')]});}],'userProfileSection':[_0x3050e6('0x177'),_0x3050e6('0x1885'),function(_0x2b85df,_0x367fbe){const _0x5f3511=_0x3050e6;return _0x367fbe[_0x5f3511('0x1ba2')](_0x5f3511('0x20bf'))?null:_0x2b85df[_0x5f3511('0x898')](_0x5f3511('0x23e7'),{'fields':_0x5f3511('0x1134'),'userProfileId':_0x367fbe[_0x5f3511('0x2831')]()[_0x5f3511('0x1e76')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':'contactmanager'})[_0x3050e6('0x1b9a')](_0x3050e6('0xfc8'),{'url':_0x3050e6('0x2370'),'params':{'company':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2fa221,'controller':'CompanyController\x20as\x20vm'}},'resolve':{'company':[_0x3050e6('0x177'),_0x3050e6('0x118b'),function(_0x2a91be,_0x4c811a){const _0x2979dd=_0x3050e6;return _0x2a91be[_0x2979dd('0x898')](_0x2979dd('0x1281'),{'fields':'createdAt,updatedAt,id,name,phone,vat,fax,companyId,type,website,emailDomain,email,description,sStreet,sPostalCode,sCity,sCountry,street,postalCode,city,country','id':_0x4c811a['id']});}],'userProfileSection':[_0x3050e6('0x177'),_0x3050e6('0x1885'),function(_0x11bb4b,_0x1568d1){const _0x34ef54=_0x3050e6;return _0x11bb4b['resolve'](_0x34ef54('0x23e7'),{'fields':_0x34ef54('0x1134'),'userProfileId':_0x1568d1[_0x34ef54('0x2831')]()[_0x34ef54('0x1e76')],'sectionId':0x12e});}]},'authenticate':!![],'permissionId':0x12e,'bodyClass':_0x3050e6('0x1903')})['state'](_0x3050e6('0x2496'),{'url':_0x3050e6('0x23b8'),'views':{'content@app':{'templateUrl':_0x338d9d,'controller':_0x3050e6('0x2099')}},'resolve':{'globalCustomFields':[_0x3050e6('0x177'),function(_0x5260f6){const _0x188dbe=_0x3050e6;return _0x5260f6[_0x188dbe('0x898')](_0x188dbe('0x21c'),{'fields':_0x188dbe('0x1f43'),'sort':_0x188dbe('0x1ac6'),'ListId':_0x188dbe('0x9bb'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x3050e6('0x177'),_0x3050e6('0x1885'),function(_0x51c419,_0x3cb721){const _0x180b57=_0x3050e6;return _0x3cb721[_0x180b57('0x1ba2')](_0x180b57('0x20bf'))?null:_0x51c419[_0x180b57('0x898')](_0x180b57('0x235d'),{'fields':'id,name,crudPermissions','id':_0x3cb721['getCurrentUser']()[_0x180b57('0x1e76')]});}],'userProfileSection':[_0x3050e6('0x177'),_0x3050e6('0x1885'),function(_0x33f8d6,_0x31e2a6){const _0x55810d=_0x3050e6;return _0x31e2a6['hasRole'](_0x55810d('0x20bf'))?null:_0x33f8d6[_0x55810d('0x898')](_0x55810d('0x23e7'),{'fields':_0x55810d('0x1134'),'userProfileId':_0x31e2a6[_0x55810d('0x2831')]()[_0x55810d('0x1e76')],'sectionId':0x130});}]},'authenticate':!![],'permissionId':0x130,'bodyClass':_0x3050e6('0x1903')}),_0xc64f15[_0x3050e6('0x10b3')](_0x3050e6('0x22af'));}angular[_0x4376d8('0x11c4')]('app.contactmanager',['ngCsv','ngPassword',_0x4376d8('0x1ae'),'flow','mdColorPicker',_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),'mdPickers',_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),'mwFormUtils',_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),'ngEmbed',_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),_0x4376d8('0x6f8')])[_0x4376d8('0x1980')](_0x389429)['controller'](_0x4376d8('0x2668'),_0x2cb41a)[_0x4376d8('0x5ce')](_0x4376d8('0x2850'),_0x283c2c)[_0x4376d8('0x5ce')](_0x4376d8('0x1ab'),_0x215aa0)[_0x4376d8('0x5ce')](_0x4376d8('0x274d'),_0x3b1d7a)['controller'](_0x4376d8('0x9ff'),_0x44c77a)[_0x4376d8('0x5ce')](_0x4376d8('0x15f3'),_0x554ea2)[_0x4376d8('0x5ce')](_0x4376d8('0x270'),_0x315f1f)[_0x4376d8('0x5ce')](_0x4376d8('0x3be'),_0x153d68)[_0x4376d8('0x5ce')](_0x4376d8('0x1c73'),_0x2992e0)['controller'](_0x4376d8('0x14a'),_0x432e95)[_0x4376d8('0x5ce')](_0x4376d8('0xa0'),_0x855b8f)['controller'](_0x4376d8('0x2109'),_0x2b00d6),_0x509ef0['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x198f'),_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885'),'socket',_0x4376d8('0x108a'),_0x4376d8('0x25ea'),'dispositions'];function _0x509ef0(_0x160ea7,_0x35181a,_0x38dba2,_0x1b7031,_0x173529,_0x5e44d7,_0x1caceb,_0x5084d2,_0x59869e,_0x55e076,_0x57dbda,_0x350a00,_0x3f72df,_0x3cc9a9){const _0x15f472=_0x4376d8,_0x33bd67=this;_0x33bd67[_0x15f472('0x197c')]=_0x55e076[_0x15f472('0x2831')](),_0x33bd67[_0x15f472('0x25ea')]=_0x3f72df?_0x3f72df:[],_0x33bd67[_0x15f472('0x23fe')]=_0x3cc9a9,_0x33bd67[_0x15f472('0x911')]={'count':0x0,'rows':[]},_0x33bd67['showTooltip']=![],_0x33bd67[_0x15f472('0x26de')]=!![],_0x33bd67[_0x15f472('0xdeb')]=_0x5084d2,_0x33bd67[_0x15f472('0x383')]=_0x59869e&&_0x59869e['count']==0x1?_0x59869e[_0x15f472('0x2319')][0x0]:null,_0x33bd67['crudPermissions']=_0x55e076['parseCrudPermissions'](_0x33bd67['userProfileSection']?_0x33bd67[_0x15f472('0x383')][_0x15f472('0x103e')]:null),_0x33bd67['query']={'fields':'id,type,calleridnum,calleridname,queue,queuecallerabandonAt,queuecallerexitAt,queuecallerexitreason,assigned,lastAssignedTo,updatedAt,disposition,secondDisposition,thirdDisposition','type':_0x15f472('0x1e77'),'queuecallerexitreason':_0x15f472('0x24')+','+_0x15f472('0x227b'),'sort':_0x15f472('0x1ac6'),'limit':0xa,'page':0x1},_0x33bd67['getAbandonedCalls']=_0x4f11e0,_0x33bd67[_0x15f472('0x1722')]=_0x117a7d,_0x33bd67[_0x15f472('0x25a9')]=_0x30c5b3,_0x33bd67['dispose']=_0x4e7f06,_0x33bd67[_0x15f472('0x339')]=_0x2fe68d,_0x33bd67[_0x15f472('0x562')]=_0x1d5cd0,_0x57dbda[_0x15f472('0x1335')](_0x15f472('0x174c'),_0x33bd67[_0x15f472('0x339')]),_0x57dbda['on'](_0x15f472('0x140f'),_0x33bd67['onUpdateVoiceQueueReport']),_0x3e3e83();function _0x3e3e83(){const _0x595045=_0x15f472;let _0x1d9685=_0x173529[_0x595045('0x1a93')][_0x595045('0x3b8')](_0x595045('0xe6c')+_0x33bd67['currentUser']['id']);if(_0x1d9685)_0x1d9685=JSON['parse'](_0x1d9685),_0x1d9685&&_0x1d9685['query']&&(_0x33bd67[_0x595045('0x826')]=_0x49cbdd()[_0x595045('0x1ced')](_0x1d9685[_0x595045('0x826')],_0x49cbdd()['omit'](_0x33bd67[_0x595045('0x826')],['sort',_0x595045('0x193b'),_0x595045('0x115a')])),_0x33bd67['query']=_0x49cbdd()[_0x595045('0x15c3')](_0x33bd67[_0x595045('0x826')],_0x595045('0x2483')));else{const _0x28d2d6={'$gte':_0x107a13()()[_0x595045('0x161c')]('month')[_0x595045('0x1376')](0x0,!![])['format'](),'$lte':_0x107a13()()[_0x595045('0x200e')](_0x595045('0x7c7'))[_0x595045('0x1376')](0x0,!![])[_0x595045('0x1c0d')]()};_0x33bd67['query'][_0x595045('0x7c9')]=_0x28d2d6;}_0x55e076[_0x595045('0x1ba2')](_0x595045('0x20bf'))?_0x1caceb[_0x595045('0x221e')][_0x595045('0x1f3b')]({'id':_0x55e076[_0x595045('0x2831')]()['id'],'fields':'id,name','channel':_0x595045('0x1fe1'),'type':_0x595045('0x1e77'),'nolimit':!![]})['$promise']['then'](function(_0x10213f){const _0x5f202d=_0x595045;_0x33bd67['queues']=_0x10213f||{'count':0x0,'rows':[]},_0x33bd67[_0x5f202d('0xf91')]=_0x49cbdd()[_0x5f202d('0x250e')](_0x49cbdd()['keyBy'](_0x33bd67[_0x5f202d('0x14c4')][_0x5f202d('0x2319')],_0x5f202d('0x2aa')),_0x5f202d('0x2aa'));})[_0x595045('0x16df')](function(_0x578a83){const _0x7225a0=_0x595045;console[_0x7225a0('0x1db9')](_0x578a83);})[_0x595045('0x74e')](function(){const _0xfdabc0=_0x595045;_0x33bd67['quickFilters']=_0x552b81(),_0x33bd67[_0xfdabc0('0x1eb9')]();}):_0x1caceb[_0x595045('0xdeb')][_0x595045('0x2447')]({'id':_0x33bd67[_0x595045('0x197c')][_0x595045('0x1e76')],'section':_0x595045('0x2068'),'channel':_0x595045('0x1fe1'),'type':_0x595045('0x1e77'),'sort':'-updatedAt','nolimit':!![]})[_0x595045('0x1af5')]['then'](function(_0x30059f){const _0x97d6fa=_0x595045;_0x33bd67[_0x97d6fa('0x14c4')]=_0x30059f||{'count':0x0,'rows':[]},_0x33bd67['queuesMap']=_0x49cbdd()['mapValues'](_0x49cbdd()['keyBy'](_0x33bd67[_0x97d6fa('0x14c4')]['rows'],_0x97d6fa('0x2aa')),_0x97d6fa('0x2aa'));})['catch'](function(_0x31843c){console['error'](_0x31843c);})[_0x595045('0x74e')](function(){const _0x355227=_0x595045;_0x33bd67[_0x355227('0x137d')]=_0x552b81(),_0x33bd67['getAbandonedCalls']();});}function _0x552b81(){const _0xe85336=_0x15f472;return[{'name':_0xe85336('0x1786'),'key':_0xe85336('0x7c9'),'type':_0xe85336('0xbd4'),'label':_0xe85336('0x1ee1')},{'name':_0xe85336('0x1874'),'key':_0xe85336('0x5ab'),'type':_0xe85336('0x2897'),'label':'DASHBOARDS.SELECT_AGENT','options':_0x33bd67[_0xe85336('0x25ea')][_0xe85336('0x2319')],'customOptions':[{'value':_0xe85336('0xb84'),'translate':_0xe85336('0x154d')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0xe85336('0xd59'),'key':_0xe85336('0x1bd'),'type':_0xe85336('0x1227'),'label':_0xe85336('0x14ba'),'options':_0x33bd67[_0xe85336('0x14c4')]['rows']}];}function _0x4f11e0(){const _0x2d839d=_0x15f472;_0x33bd67[_0x2d839d('0x26de')]=![],_0x33bd67[_0x2d839d('0x14c4')][_0x2d839d('0x335')]>0x0?(_0x33bd67['query'][_0x2d839d('0x1bd')]=_0x33bd67[_0x2d839d('0x14c4')][_0x2d839d('0x335')]===0x1?_0x33bd67['queues']['rows'][0x0]['name']:_0x33bd67[_0x2d839d('0x826')]['queue'],_0x33bd67[_0x2d839d('0x826')]['offset']=(_0x33bd67[_0x2d839d('0x826')][_0x2d839d('0x115a')]-0x1)*_0x33bd67[_0x2d839d('0x826')][_0x2d839d('0x193b')],_0x173529[_0x2d839d('0x1a93')]['setItem'](_0x2d839d('0xe6c')+_0x33bd67[_0x2d839d('0x197c')]['id'],JSON[_0x2d839d('0x678')]({'query':_0x49cbdd()[_0x2d839d('0x15c3')](_0x33bd67[_0x2d839d('0x826')],'queue')})),_0x33bd67['promise']=_0x1caceb['voiceQueueReport']['getVoiceQueuesReport'](_0x33bd67[_0x2d839d('0x826')],_0x1a4ba9)[_0x2d839d('0x1af5')]):_0x1a4ba9(null);}function _0x1a4ba9(_0x54be52){const _0x4829bd=_0x15f472;_0x33bd67[_0x4829bd('0x911')]=_0x54be52||{'count':0x0,'rows':[]},_0x33bd67[_0x4829bd('0x26de')]=!![];}function _0x117a7d(){_0x33bd67['showTooltip']=![],_0x33bd67['getAbandonedCalls']();}function _0x2fe68d(_0x2f6574){const _0x2de3ed=_0x15f472,_0x4c6006='inbound';_0x2f6574&&_0x33bd67[_0x2de3ed('0xf91')]&&_0x33bd67[_0x2de3ed('0x826')][_0x2de3ed('0x412')]===_0x4c6006&&_0x33bd67[_0x2de3ed('0xf91')][_0x2f6574[_0x2de3ed('0x1bd')]]&&(_0x33bd67[_0x2de3ed('0xfb4')]=!![]);}function _0x1d5cd0(_0x1cd87f){const _0xaa3200=_0x15f472;if(_0x1cd87f){const _0x59e567=_0x49cbdd()['findIndex'](_0x33bd67[_0xaa3200('0x911')][_0xaa3200('0x2319')],['id',_0x1cd87f['id']]);_0x59e567>=0x0&&_0x49cbdd()['merge'](_0x33bd67[_0xaa3200('0x911')][_0xaa3200('0x2319')][_0x59e567],_0x1cd87f);}}function _0x30c5b3(_0x3ba20e,_0x524d70){const _0x2bd7db=_0x15f472;_0x3ba20e&&_0x1caceb[_0x2bd7db('0x2086')][_0x2bd7db('0x27ba')]({'id':_0x3ba20e['id'],'lastAssignedTo':_0x524d70?_0x524d70[_0x2bd7db('0x2aa')]:null,'assigned':_0x524d70?!![]:![]})[_0x2bd7db('0x1af5')]['catch'](function(_0x588996){const _0x44871c=_0x2bd7db;console[_0x44871c('0x1d63')](_0x588996);});}function _0x4e7f06(_0xd38d6b){const _0x45a094=_0x15f472;_0x38dba2['show']({'controller':'DisposeAbandonedCallDialogController','controllerAs':'vm','templateUrl':_0x45a094('0x641'),'parent':angular['element'](_0x1b7031[_0x45a094('0x13aa')]),'targetEvent':_0xd38d6b,'resolve':{'globalDispositions':['apiResolver',function(_0x546b9d){const _0x1b5523=_0x45a094;return _0x546b9d[_0x1b5523('0x898')](_0x1b5523('0x18d5'),{'MailAccountId':_0x1b5523('0x9bb'),'FaxAccountId':_0x1b5523('0x9bb'),'SmsAccountId':_0x1b5523('0x9bb'),'WhatsappAccountId':_0x1b5523('0x9bb'),'OpenchannelAccountId':'null','ChatWebsiteId':'null','ListId':_0x1b5523('0x9bb')});}]},'locals':{'dispositions':_0x33bd67[_0x45a094('0x23fe')],'call':_0xd38d6b}})['then'](function(_0x20f625){const _0x39e557=_0x45a094;if(_0x20f625){const _0x78cf05={'id':_0xd38d6b['id'],'disposition':_0x20f625[_0x39e557('0x11f4')]||null,'secondDisposition':_0x20f625[_0x39e557('0x19ca')]||null,'thirdDisposition':_0x20f625[_0x39e557('0x136f')]||null};_0x1caceb[_0x39e557('0x2086')]['update'](_0x78cf05)[_0x39e557('0x1af5')][_0x39e557('0x16df')](function(_0x276825){const _0xd6644c=_0x39e557;console[_0xd6644c('0x1d63')](_0x276825);});}});}let _0x2d705d=!![],_0x3fc9eb=0x1;_0x160ea7[_0x15f472('0x620')](_0x15f472('0x3ed'),function(_0x393575,_0x5916cf){const _0x5dd64b=_0x15f472;_0x2d705d?_0x35181a(function(){_0x2d705d=![];}):(!_0x5916cf&&(_0x3fc9eb=_0x33bd67[_0x5dd64b('0x826')]['page']),_0x393575!==_0x5916cf&&(_0x33bd67[_0x5dd64b('0x826')][_0x5dd64b('0x115a')]=0x1),!_0x393575&&(_0x33bd67[_0x5dd64b('0x826')][_0x5dd64b('0x115a')]=_0x3fc9eb),_0x33bd67[_0x5dd64b('0x1eb9')]());}),_0x160ea7['$on'](_0x15f472('0x2b4'),function(){const _0x3033fd=_0x15f472;_0x57dbda['removeAllListeners'](_0x3033fd('0x174c')),_0x57dbda['removeAllListeners']('voiceQueueReport:update');});}const _0x372675=_0x509ef0;_0x5d8c03[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$q',_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x54a'),_0x4376d8('0x1492'),'agents',_0x4376d8('0x1593'),_0x4376d8('0x212e'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0x628'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x33a')];function _0x5d8c03(_0x5e2218,_0x25ae56,_0x157cb5,_0x2340c9,_0xf220c8,_0x43b57c,_0x1466be,_0x4d9594,_0x548690,_0x1fa0d1,_0x1b7eea,_0x265a98,_0x1ffb2f,_0x38da5d,_0x3db6a0,_0x434d5c,_0x224265,_0x4aac58){const _0x18e345=_0x4376d8,_0x9d8c06=this,_0x56a1c9=[_0x18e345('0x25b1'),_0x18e345('0x1872'),_0x18e345('0x341'),_0x18e345('0x110a'),'pauseType',_0x18e345('0x110a'),_0x18e345('0xe3e'),_0x18e345('0x15'),'chatPause','openchannelPause',_0x18e345('0x1467'),_0x18e345('0x483'),_0x18e345('0x185b'),_0x18e345('0x1d98'),_0x18e345('0x118a'),_0x18e345('0x1b1a'),'openchannelCapacity','mailCapacity',_0x18e345('0x16f4'),'whatsappCapacity',_0x18e345('0x3f4'),'chatCurrentCapacity',_0x18e345('0x1149'),'mailCurrentCapacity',_0x18e345('0x1c68'),_0x18e345('0x1798'),'faxCurrentCapacity',_0x18e345('0x2766'),_0x18e345('0x200c'),_0x18e345('0x9a7'),'smsStatus',_0x18e345('0x38d'),_0x18e345('0x14b9'),_0x18e345('0x14a5'),'chatStatusTime',_0x18e345('0x18b1'),_0x18e345('0x16a4'),_0x18e345('0x893'),_0x18e345('0x1e2a'),_0x18e345('0xbdb'),'voiceStatusTime',_0x18e345('0x1bd'),_0x18e345('0xce0'),'screenrecording',_0x18e345('0x1b7d'),_0x18e345('0xa0d')],_0x5c7940=['chatPause',_0x18e345('0x105e'),_0x18e345('0x1467'),_0x18e345('0x483'),_0x18e345('0x185b'),'faxPause',_0x18e345('0x118a'),'online'];_0x9d8c06[_0x18e345('0x197c')]=_0x434d5c['getCurrentUser'](),_0x9d8c06[_0x18e345('0x232c')]=['ringing',_0x18e345('0x1166'),'busy',_0x18e345('0xa01'),_0x18e345('0x8d0')],_0x9d8c06['pauses']=_0x1466be||{'count':0x0,'rows':[]},_0x9d8c06[_0x18e345('0x1d11')]=_0x224265,_0x9d8c06[_0x18e345('0xdeb')]=_0x38da5d,_0x9d8c06[_0x18e345('0x383')]=_0x3db6a0&&_0x3db6a0['count']==0x1?_0x3db6a0[_0x18e345('0x2319')][0x0]:null,_0x9d8c06['crudPermissions']=_0x434d5c['parseCrudPermissions'](_0x9d8c06[_0x18e345('0x383')]?_0x9d8c06[_0x18e345('0x383')][_0x18e345('0x103e')]:null),_0x9d8c06[_0x18e345('0x25ea')]=_0x4d9594?_0x49cbdd()['keyBy'](_0x4d9594[_0x18e345('0x2319')]?_0x4d9594[_0x18e345('0x2319')]:[],'id'):{},_0x9d8c06[_0x18e345('0x1593')]=_0x548690?_0x49cbdd()[_0x18e345('0x8de')](_0x548690[_0x18e345('0x2319')]?_0x548690['rows']:[],'id'):{},_0x9d8c06['paginatedAgents']={},_0x9d8c06[_0x18e345('0xae2')]=![],_0x9d8c06[_0x18e345('0x1e36')]=[],_0x9d8c06[_0x18e345('0x20a5')]={};for(const _0x3a5347 in _0x9d8c06[_0x18e345('0x25ea')]){typeof _0x9d8c06[_0x18e345('0x25ea')][_0x3a5347]!==_0x18e345('0xfad')&&(_0x9d8c06[_0x18e345('0x25ea')][_0x3a5347]['init']=!![]);}_0x9d8c06[_0x18e345('0x826')]={'limit':0xa,'page':0x1,'order':_0x18e345('0xea6'),'globalStatusFilter':'','pauseTypeFilter':''},_0x9d8c06['logout']=_0x11edb0,_0x9d8c06[_0x18e345('0x18ba')]=_0x296a07,_0x9d8c06[_0x18e345('0x267a')]=_0x525c83,_0x9d8c06[_0x18e345('0x2040')]=_0x900f11,_0x9d8c06[_0x18e345('0x3eb')]=_0x30d6d9,_0x9d8c06[_0x18e345('0x7f6')]=_0x361140,_0x9d8c06['getAgentGlobalStatus']=_0x49502d,_0x9d8c06[_0x18e345('0x5b9')]=_0x131ad2,_0x9d8c06[_0x18e345('0x160d')]=_0x33c2e1,_0x9d8c06[_0x18e345('0x179b')]=_0x58f404,_0x9d8c06[_0x18e345('0xfd5')]=_0x259090,_0x9d8c06[_0x18e345('0x1fc4')]=_0x14fd39,_0x9d8c06[_0x18e345('0xdf0')]=_0x3c87a2,_0x9d8c06['onConnect']=_0x4538b9,_0x9d8c06[_0x18e345('0x1ccb')]=_0x52faf8,_0x9d8c06['screenRecording']=_0x3b52c9,_0x1b7eea['on'](_0x18e345('0x21a2'),_0x9d8c06[_0x18e345('0xfd5')]),_0x1b7eea['on'](_0x18e345('0x284f'),_0x9d8c06[_0x18e345('0x1fc4')]),_0x1b7eea['on']('user:agentconnect',_0x9d8c06[_0x18e345('0x410')]),_0x1b7eea['on'](_0x18e345('0x1f1f'),_0x9d8c06[_0x18e345('0x1ccb')]),_0x3c87a2();let _0x4c1b5f=_0x4aac58(function(){const _0x1af2c4=_0x18e345;_0x9d8c06[_0x1af2c4('0xae2')]&&(_0x9d8c06['load']=![],_0x3c87a2());},0x3e7);function _0x3c87a2(){const _0xca957a=_0x18e345;_0x9d8c06[_0xca957a('0xae2')]=![];const _0x644016=_0x25ae56[_0xca957a('0x113c')]();_0x9d8c06[_0xca957a('0x1691')]=_0x644016[_0xca957a('0x1691')],_0x9d8c06['filteredAgents']=[],_0x9d8c06['order']=[],_0x49cbdd()['forIn'](_0x9d8c06[_0xca957a('0x25ea')],function(_0x5a1ba5,_0x48a948){const _0x552f90=_0xca957a;_0x9d8c06[_0x552f90('0x1593')][_0x48a948]&&_0x49cbdd()[_0x552f90('0x1ced')](_0x5a1ba5,_0x49cbdd()[_0x552f90('0x230a')](_0x49cbdd()[_0x552f90('0x15c3')](_0x9d8c06['rpcAgents'][_0x48a948],_0x5c7940),_0x56a1c9)),_0x49502d(_0x5a1ba5),_0x5a1ba5[_0x552f90('0x1872')]?(_0x9d8c06[_0x552f90('0x1b79')][_0x552f90('0x269f')](_0x5a1ba5),_0x9d8c06['agentInternal'][_0x5a1ba5['internal']]=_0x48a948):_0x5a1ba5[_0x552f90('0x22cb')]=_0x49cbdd()['toNumber'](_0x107a13()()[_0x552f90('0x1c0d')]('x'));});_0x9d8c06[_0xca957a('0x826')][_0xca957a('0x14f9')]&&_0x49cbdd()[_0xca957a('0x5f3')](_0x9d8c06['filteredAgents'],function(_0x37cd10){const _0x5d4c59=_0xca957a;return _0x37cd10[_0x5d4c59('0xf45')]!==_0x9d8c06[_0x5d4c59('0x826')]['globalStatusFilter'];});_0x9d8c06[_0xca957a('0x826')][_0xca957a('0x44f')]&&_0x49cbdd()[_0xca957a('0x5f3')](_0x9d8c06[_0xca957a('0x1b79')],function(_0xc47832){const _0x324933=_0xca957a;return _0xc47832[_0x324933('0x11ec')]!==_0x9d8c06[_0x324933('0x826')][_0x324933('0x44f')];});_0x9d8c06[_0xca957a('0x826')][_0xca957a('0x2483')]&&_0x49cbdd()[_0xca957a('0x5f3')](_0x9d8c06[_0xca957a('0x1b79')],function(_0x48f654){const _0x174538=_0xca957a;return _0x48f654['fullname'][_0x174538('0x19b')]()[_0x174538('0x2567')](_0x9d8c06[_0x174538('0x826')]['filter'][_0x174538('0x19b')]())<0x0;});_0x9d8c06[_0xca957a('0x1b79')]=_0x3e725b(_0x9d8c06[_0xca957a('0x1b79')]);const _0x3d4ce0=(_0x9d8c06[_0xca957a('0x826')]['page']-0x1)*_0x9d8c06['query']['limit'];_0x9d8c06[_0xca957a('0x219a')]=_0x49cbdd()[_0xca957a('0x6c0')](_0x9d8c06[_0xca957a('0x1b79')],_0x3d4ce0)[_0xca957a('0x275f')](0x0,_0x9d8c06['query'][_0xca957a('0x193b')]);for(let _0x2a1fec=0x0;_0x2a1fec<_0x9d8c06[_0xca957a('0x219a')][_0xca957a('0x1f73')];_0x2a1fec+=0x1){_0x9d8c06[_0xca957a('0x1e36')]['push'](_0x9d8c06[_0xca957a('0x219a')][_0x2a1fec]['id']);}_0x644016[_0xca957a('0x898')](),_0x9d8c06[_0xca957a('0xae2')]=!![];}function _0x259090(_0x1dab87){const _0x4b974c=_0x18e345;_0x9d8c06[_0x4b974c('0x25ea')][_0x1dab87['id']]&&(_0x49cbdd()[_0x4b974c('0x1ced')](_0x9d8c06[_0x4b974c('0x25ea')][_0x1dab87['id']],_0x49cbdd()[_0x4b974c('0x230a')](_0x49cbdd()[_0x4b974c('0x15c3')](_0x1dab87,_0x5c7940),_0x56a1c9)),_0x49cbdd()['merge'](_0x9d8c06[_0x4b974c('0x1593')][_0x1dab87['id']],_0x49cbdd()[_0x4b974c('0x230a')](_0x49cbdd()[_0x4b974c('0x15c3')](_0x1dab87,_0x5c7940),_0x56a1c9)),_0x49502d(_0x9d8c06[_0x4b974c('0x25ea')][_0x1dab87['id']]));}function _0x14fd39(_0x1088ea){const _0x227e31=_0x18e345;_0x9d8c06[_0x227e31('0x25ea')][_0x1088ea['id']]&&(_0x49cbdd()[_0x227e31('0x1ced')](_0x9d8c06[_0x227e31('0x25ea')][_0x1088ea['id']],_0x49cbdd()[_0x227e31('0x230a')](_0x1088ea,_0x56a1c9)),_0x49cbdd()[_0x227e31('0x1ced')](_0x9d8c06[_0x227e31('0x1593')][_0x1088ea['id']],_0x49cbdd()[_0x227e31('0x230a')](_0x1088ea,_0x56a1c9)),_0x1088ea['lastPauseAt']&&(_0x9d8c06[_0x227e31('0x25ea')][_0x1088ea['id']][_0x227e31('0x22cb')]=_0x1088ea['lastPauseAt'],_0x9d8c06[_0x227e31('0x1593')][_0x1088ea['id']][_0x227e31('0x22cb')]=_0x1088ea[_0x227e31('0x110a')]),_0x49502d(_0x9d8c06['agents'][_0x1088ea['id']]));}function _0x4538b9(_0x53b0e2){const _0x464bc9=_0x18e345;_0x9d8c06['agents'][_0x9d8c06[_0x464bc9('0x20a5')][_0x53b0e2[_0x464bc9('0x1177')]]]&&(_0x49cbdd()[_0x464bc9('0x1ced')](_0x9d8c06[_0x464bc9('0x25ea')][_0x9d8c06['agentInternal'][_0x53b0e2['destaccountcode']]],_0x49cbdd()[_0x464bc9('0x230a')](_0x53b0e2,[_0x464bc9('0x1bd'),_0x464bc9('0xce0')])),_0x49cbdd()[_0x464bc9('0x1ced')](_0x9d8c06[_0x464bc9('0x1593')][_0x9d8c06[_0x464bc9('0x20a5')][_0x53b0e2[_0x464bc9('0x1177')]]],_0x49cbdd()['pick'](_0x53b0e2,['queue',_0x464bc9('0xce0')])));}function _0x52faf8(_0x1faeb6){const _0x38029b=_0x18e345;_0x9d8c06[_0x38029b('0x25ea')][_0x9d8c06['agentInternal'][_0x1faeb6[_0x38029b('0x1177')]]]&&(_0x9d8c06['agents'][_0x9d8c06[_0x38029b('0x20a5')][_0x1faeb6[_0x38029b('0x1177')]]]=_0x49cbdd()[_0x38029b('0x15c3')](_0x9d8c06[_0x38029b('0x25ea')][_0x9d8c06[_0x38029b('0x20a5')][_0x1faeb6[_0x38029b('0x1177')]]],['queue','destconnectedlinenum']),_0x9d8c06['rpcAgents'][_0x9d8c06['agentInternal'][_0x1faeb6['destaccountcode']]]=_0x49cbdd()['omit'](_0x9d8c06[_0x38029b('0x1593')][_0x9d8c06[_0x38029b('0x20a5')][_0x1faeb6[_0x38029b('0x1177')]]],[_0x38029b('0x1bd'),_0x38029b('0xce0')]));}function _0x11edb0(_0x4eabce){const _0x33ddb1=_0x18e345;return _0x1fa0d1[_0x33ddb1('0x221e')]['logout']({'id':_0x4eabce['id'],'device':_0x33ddb1('0x20c8'),'agent_id':_0x4eabce['id'],'agent_name':_0x4eabce[_0x33ddb1('0x2aa')]})[_0x33ddb1('0x1af5')][_0x33ddb1('0x17e7')](function(){const _0xd225d8=_0x33ddb1;_0x265a98[_0xd225d8('0x130d')]({'title':_0xd225d8('0x686'),'msg':_0x4eabce[_0xd225d8('0xea6')]+_0xd225d8('0xe21')}),_0x9d8c06['agents'][_0x4eabce['id']]&&(_0x9d8c06[_0xd225d8('0x25ea')][_0x4eabce['id']][_0xd225d8('0x1872')]=![]),_0x9d8c06[_0xd225d8('0x1593')][_0x4eabce['id']]&&(_0x9d8c06[_0xd225d8('0x1593')][_0x4eabce['id']]['online']=![]),_0x3c87a2();})[_0x33ddb1('0x16df')](function(_0x28c4b1){const _0x43b1f6=_0x33ddb1;_0x265a98['error']({'title':_0x28c4b1[_0x43b1f6('0x11c5')]?_0x43b1f6('0x14f7')+_0x28c4b1[_0x43b1f6('0x11c5')]+'\x20-\x20'+_0x28c4b1[_0x43b1f6('0x1833')]:_0x43b1f6('0x18ea'),'msg':_0x28c4b1['data']?JSON[_0x43b1f6('0x678')](_0x28c4b1[_0x43b1f6('0x1457')]['message']):_0x28c4b1[_0x43b1f6('0x9b6')]()});});}function _0x525c83(_0x24fbb1,_0x4d138b){const _0x5c69f5=_0x18e345;return _0x1fa0d1[_0x5c69f5('0x221e')][_0x5c69f5('0x267a')]({'id':_0x24fbb1['id'],'type':_0x4d138b})[_0x5c69f5('0x1af5')][_0x5c69f5('0x17e7')](function(_0x3eaba8){const _0x41ae42=_0x5c69f5;_0x9d8c06[_0x41ae42('0x25ea')][_0x24fbb1['id']]&&_0x49cbdd()[_0x41ae42('0x1ced')](_0x9d8c06[_0x41ae42('0x25ea')][_0x24fbb1['id']],_0x49cbdd()['pick'](_0x3eaba8,_0x56a1c9)),_0x9d8c06[_0x41ae42('0x1593')][_0x24fbb1['id']]&&_0x49cbdd()['merge'](_0x9d8c06[_0x41ae42('0x1593')][_0x24fbb1['id']],_0x49cbdd()[_0x41ae42('0x230a')](_0x3eaba8,_0x56a1c9)),_0x49502d(_0x9d8c06[_0x41ae42('0x25ea')][_0x24fbb1['id']]);})[_0x5c69f5('0x16df')](function(_0x48abf4){const _0x127fc7=_0x5c69f5;_0x265a98[_0x127fc7('0x1db9')]({'title':_0x48abf4[_0x127fc7('0x11c5')]?_0x127fc7('0x14f7')+_0x48abf4[_0x127fc7('0x11c5')]+_0x127fc7('0x16e4')+_0x48abf4[_0x127fc7('0x1833')]:_0x127fc7('0x18ea'),'msg':_0x48abf4[_0x127fc7('0x1457')]?JSON[_0x127fc7('0x678')](_0x48abf4[_0x127fc7('0x1457')][_0x127fc7('0x1603')]):_0x48abf4[_0x127fc7('0x9b6')]()});});}function _0x900f11(_0x388f0a){const _0x467b52=_0x18e345;return _0x1fa0d1[_0x467b52('0x221e')]['unpause']({'id':_0x388f0a['id']})['$promise'][_0x467b52('0x17e7')](function(_0x3d55f5){const _0x46d2a8=_0x467b52;_0x9d8c06[_0x46d2a8('0x25ea')][_0x388f0a['id']]&&_0x49cbdd()[_0x46d2a8('0x1ced')](_0x9d8c06[_0x46d2a8('0x25ea')][_0x388f0a['id']],_0x49cbdd()['pick'](_0x3d55f5,_0x56a1c9)),_0x9d8c06['rpcAgents'][_0x388f0a['id']]&&_0x49cbdd()[_0x46d2a8('0x1ced')](_0x9d8c06[_0x46d2a8('0x1593')][_0x388f0a['id']],_0x49cbdd()[_0x46d2a8('0x230a')](_0x3d55f5,_0x56a1c9)),_0x49502d(_0x9d8c06[_0x46d2a8('0x25ea')][_0x388f0a['id']]);})[_0x467b52('0x16df')](function(_0x2b88bd){const _0x23348c=_0x467b52;_0x265a98[_0x23348c('0x1db9')]({'title':_0x2b88bd[_0x23348c('0x11c5')]?_0x23348c('0x14f7')+_0x2b88bd['status']+_0x23348c('0x16e4')+_0x2b88bd[_0x23348c('0x1833')]:_0x23348c('0x18ea'),'msg':_0x2b88bd[_0x23348c('0x1457')]?JSON['stringify'](_0x2b88bd['data'][_0x23348c('0x1603')]):_0x2b88bd[_0x23348c('0x9b6')]()});});}function _0x30d6d9(_0x56fbe8){const _0x397142=_0x18e345;_0x2340c9[_0x397142('0x28e2')](_0x2340c9[_0x397142('0x99f')]()['clickOutsideToClose'](!![])[_0x397142('0x24d3')](_0x397142('0x5b8'))[_0x397142('0x211f')](_0x397142('0xf9f'))['ok']('Ok')['targetEvent'](_0x56fbe8));}function _0x296a07(_0x27f1c3,_0x1f03df){const _0x30247d=_0x18e345;_0x2340c9[_0x30247d('0x28e2')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x5e8625,'parent':angular[_0x30247d('0x1ce1')](_0xf220c8[_0x30247d('0x13aa')]),'targetEvent':_0x1f03df,'clickOutsideToClose':!![],'locals':{'agent':_0x27f1c3,'agents':[],'channel':_0x30247d('0x1fe1'),'direction':_0x30247d('0x1e77'),'crudPermissions':_0x9d8c06[_0x30247d('0x103e')]}});}function _0x131ad2(_0x1d3093){const _0x15be99=_0x18e345;return _0x1d3093===_0x15be99('0x267a')||_0x1d3093===_0x15be99('0x1998');}function _0x33c2e1(_0x58371c){const _0x58457=_0x18e345;return _0x58371c===_0x58457('0x267a');}function _0x58f404(_0x5d78ce){const _0x438a62=_0x18e345;return _0x5d78ce===_0x438a62('0x1998');}function _0x4943a2(_0x23246f){const _0x3a79cf=_0x18e345;return _0x23246f==='idle'||_0x23246f==='unknown'||_0x23246f===_0x3a79cf('0x182')||_0x23246f===_0x3a79cf('0x1589')||_0x49cbdd()['isNil'](_0x23246f);}function _0x361140(_0x40d322,_0x21ca6){const _0x46dd14=_0x18e345;if(_0x21ca6==='voice'){if(_0x40d322[_0x21ca6+_0x46dd14('0x51c')]!==_0x46dd14('0x1ff2'))return _0x40d322[_0x21ca6+_0x46dd14('0x51c')];if(_0x40d322[_0x21ca6+'Pause'])return _0x40d322[_0x21ca6+_0x46dd14('0x51c')]=_0x46dd14('0x267a'),_0x46dd14('0x267a');return _0x46dd14('0x1ff2');}else{if(_0x40d322[_0x21ca6+_0x46dd14('0x5d5')])return _0x40d322[_0x21ca6+_0x46dd14('0x51c')]=_0x46dd14('0x267a'),_0x46dd14('0x267a');return _0x40d322[_0x21ca6+_0x46dd14('0x51c')];}}function _0x49502d(_0x4ac64a){const _0x2b49fb=_0x18e345;let _0x299745='unknown';if(_0x49cbdd()[_0x2b49fb('0x12df')]([_0x361140(_0x4ac64a,'voice'),_0x361140(_0x4ac64a,'chat'),_0x361140(_0x4ac64a,_0x2b49fb('0xc2')),_0x361140(_0x4ac64a,_0x2b49fb('0x1508')),_0x361140(_0x4ac64a,'sms'),_0x361140(_0x4ac64a,_0x2b49fb('0x1d27')),_0x361140(_0x4ac64a,_0x2b49fb('0xc23'))],_0x131ad2))_0x299745=_0x2b49fb('0x267a');else{if(_0x49cbdd()['some']([_0x361140(_0x4ac64a,_0x2b49fb('0x1fe1')),_0x361140(_0x4ac64a,_0x2b49fb('0x2219')),_0x361140(_0x4ac64a,_0x2b49fb('0xc2')),_0x361140(_0x4ac64a,'openchannel'),_0x361140(_0x4ac64a,'sms'),_0x361140(_0x4ac64a,'whatsapp'),_0x361140(_0x4ac64a,_0x2b49fb('0xc23'))],_0x131ad2))_0x299745=_0x2b49fb('0x1998');else _0x49cbdd()[_0x2b49fb('0x12df')]([_0x361140(_0x4ac64a,_0x2b49fb('0x1fe1')),_0x361140(_0x4ac64a,_0x2b49fb('0x2219')),_0x361140(_0x4ac64a,_0x2b49fb('0xc2')),_0x361140(_0x4ac64a,_0x2b49fb('0x1508')),_0x361140(_0x4ac64a,_0x2b49fb('0x2cd')),_0x361140(_0x4ac64a,'whatsapp'),_0x361140(_0x4ac64a,_0x2b49fb('0xc23'))],_0x4943a2)?_0x299745=_0x2b49fb('0x1ff2'):_0x299745=_0x2b49fb('0xe88');}_0x4ac64a['globalStatus']!==_0x299745&&(_0x4ac64a['globalStatus']=_0x299745,_0x4ac64a[_0x2b49fb('0x161d')]?(_0x4ac64a[_0x2b49fb('0x161d')]=![],_0x4ac64a[_0x2b49fb('0x22cb')]=_0x131ad2(_0x299745)?_0x49cbdd()['toNumber'](_0x107a13()(_0x4ac64a[_0x2b49fb('0x110a')])[_0x2b49fb('0x1c0d')]('x')):_0x49cbdd()['max']([_0x4ac64a[_0x2b49fb('0x1b1d')],_0x4ac64a['chatStatusTime'],_0x4ac64a[_0x2b49fb('0x16a4')],_0x4ac64a['smsStatusTime'],_0x4ac64a[_0x2b49fb('0x1e2a')],_0x4ac64a[_0x2b49fb('0x18b1')],_0x4ac64a[_0x2b49fb('0xbdb')]])):_0x4ac64a['globalStatusTime']=_0x49cbdd()[_0x2b49fb('0xa33')](_0x107a13()()[_0x2b49fb('0x1c0d')]('x')));}function _0x3e725b(_0x33dafa){const _0x11075a=_0x18e345,_0x316405=_0x49cbdd()['startsWith'](_0x9d8c06['query'][_0x11075a('0x1e36')],'-')?_0x11075a('0x187b'):_0x11075a('0x161a');return _0x49cbdd()[_0x11075a('0xa36')](_0x33dafa,[_0x9d8c06[_0x11075a('0x826')][_0x11075a('0x1e36')][_0x11075a('0x737')]('-','')],[_0x316405]);}function _0x302b0d(){const _0x34c7ab=_0x18e345;_0x4c1b5f&&(_0x4aac58[_0x34c7ab('0x1d47')](_0x4c1b5f),_0x4c1b5f=null);}function _0x3b52c9(_0x1ba1f0,_0x184bba){const _0x759b74=_0x18e345;return _0x1fa0d1[_0x759b74('0x221e')]['update']({'id':_0x1ba1f0['id']},{'screenrecording':_0x184bba})[_0x759b74('0x1af5')][_0x759b74('0x16df')](function(_0x42a14a){const _0x447429=_0x759b74;_0x265a98[_0x447429('0x1db9')]({'title':_0x42a14a[_0x447429('0x11c5')]?_0x447429('0x14f7')+_0x42a14a[_0x447429('0x11c5')]+_0x447429('0x16e4')+_0x42a14a[_0x447429('0x1833')]:_0x447429('0xad3'),'msg':_0x42a14a[_0x447429('0x1457')]?JSON['stringify'](_0x42a14a[_0x447429('0x1457')][_0x447429('0x1603')]):_0x42a14a['toString']()});});}_0x5e2218[_0x18e345('0x207c')](_0x18e345('0x2b4'),function(){const _0x412a4a=_0x18e345;_0x1b7eea[_0x412a4a('0x1c65')]('user:save'),_0x1b7eea[_0x412a4a('0x1c65')](_0x412a4a('0x284f')),_0x1b7eea[_0x412a4a('0x1c65')](_0x412a4a('0x1a5')),_0x1b7eea[_0x412a4a('0x1c65')](_0x412a4a('0x1f1f')),_0x302b0d();});}const _0xf443a4=_0x5d8c03;_0x4f6419[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'api',_0x4376d8('0x25aa'),_0x4376d8('0x1863'),_0x4376d8('0x628')];function _0x4f6419(_0x5ca048,_0x3f34c4,_0x4bfa05,_0x451ca1,_0x44b84c,_0x4f4800){const _0x325883=_0x4376d8,_0x581620=this;_0x581620['calls']=_0x44b84c||{'rows':[],'count':0x0},_0x581620[_0x325883('0x826')]={'limit':0xa,'page':0x1},_0x581620[_0x325883('0x16bd')]=_0x4f4800[_0x325883('0x102a')],_0x451ca1['on'](_0x325883('0x1e10'),_0x581620['onSave']),_0x451ca1['on']('voice_outbound_channel:remove',_0x581620[_0x325883('0x201a')]);function _0x19ccb5(_0x21f628){const _0x49635a=_0x325883,_0xf7859e=_0x49cbdd()[_0x49635a('0xe8e')](_0x581620[_0x49635a('0x1392')][_0x49635a('0x2319')],{'channel':_0x21f628[_0x49635a('0x15d7')]});_0x21f628['channelstatedesc']=_0x21f628[_0x49635a('0x1ca8')]?'up':_0x49635a('0x1d6c');if(_0xf7859e)_0x49cbdd()[_0x49635a('0x1ced')](_0xf7859e,_0x21f628);else _0x21f628[_0x49635a('0x15d7')]&&_0x581620[_0x49635a('0x1392')][_0x49635a('0x2319')][_0x49635a('0x269f')](_0x21f628);}function _0x4463ba(_0x389d9e){const _0x1cfdc5=_0x325883,_0x48ce24=_0x49cbdd()['findIndex'](_0x581620[_0x1cfdc5('0x1392')][_0x1cfdc5('0x2319')],{'channel':_0x389d9e['channel']});_0x48ce24>=0x0&&(_0x581620['calls']['rows'][_0x48ce24][_0x1cfdc5('0x11c5')]='hangup'),_0x3f34c4(function(){const _0x5b9208=_0x1cfdc5;_0x581620[_0x5b9208('0x1392')][_0x5b9208('0x2319')][_0x5b9208('0x2335')](_0x48ce24,0x1);},0x1388);}_0x5ca048['$on'](_0x325883('0x2b4'),function(){const _0x13c95a=_0x325883;_0x451ca1[_0x13c95a('0x1c65')](_0x13c95a('0x1e10')),_0x451ca1['removeAllListeners'](_0x13c95a('0x2869'));}),_0x581620[_0x325883('0xfd5')]=_0x19ccb5,_0x581620[_0x325883('0x201a')]=_0x4463ba;}const _0x17d910=_0x4f6419;_0x4f7f40['$inject']=[_0x4376d8('0x668'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x25ea'),'queues',_0x4376d8('0x1c1c'),_0x4376d8('0x212e'),'socket',_0x4376d8('0x628'),_0x4376d8('0x108a'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885')];function _0x4f7f40(_0x3ffad4,_0x3320da,_0x843f89,_0xc96658,_0x3a6159,_0x2f4037,_0x293e40,_0x217f46,_0x32a59b,_0x343c1d,_0x2019ef,_0xa09446,_0x4b124a){const _0x18cd69=_0x4376d8,_0x4c3593=this;_0x4c3593['currentUser']=_0x4b124a[_0x18cd69('0x2831')](),_0x4c3593[_0x18cd69('0x25ea')]=_0xc96658||{'count':0x0,'rows':[]},_0x4c3593[_0x18cd69('0x14c4')]=_0x3a6159?_0x49cbdd()['keyBy'](_0x3a6159[_0x18cd69('0x2319')]?_0x3a6159[_0x18cd69('0x2319')]:[],_0x18cd69('0x2aa')):{},_0x4c3593[_0x18cd69('0x15b7')]=_0x2f4037?_0x49cbdd()['keyBy'](_0x2f4037[_0x18cd69('0x2319')]?_0x49cbdd()[_0x18cd69('0x2483')](_0x2f4037['rows'],{'type':_0x18cd69('0x1e77')}):[],_0x18cd69('0x35b')):{},_0x4c3593[_0x18cd69('0x1c1c')]={},_0x4c3593[_0x18cd69('0xdeb')]=_0x2019ef,_0x4c3593[_0x18cd69('0x383')]=_0xa09446&&_0xa09446['count']==0x1?_0xa09446[_0x18cd69('0x2319')][0x0]:null,_0x4c3593['crudPermissions']=_0x4b124a['parseCrudPermissions'](_0x4c3593[_0x18cd69('0x383')]?_0x4c3593[_0x18cd69('0x383')][_0x18cd69('0x103e')]:null),_0x4c3593[_0x18cd69('0xabe')]={'limit':0xa,'page':0x1},_0x4c3593['getSize']=_0x11d0db,_0x4c3593[_0x18cd69('0x11e8')]=_0x40206b,_0x4c3593['onSave']=_0x533993,_0x4c3593[_0x18cd69('0x201a')]=_0x135b84,_0x4c3593[_0x18cd69('0x450')]=_0x4dfc2b,_0x4c3593[_0x18cd69('0x430')]=_0x27ea1e,_0x4c3593[_0x18cd69('0x164')]=_0x331384,_0x217f46['on']('voice_queue_channel:save',_0x4c3593[_0x18cd69('0xfd5')]),_0x217f46['on'](_0x18cd69('0x22d1'),_0x4c3593[_0x18cd69('0x201a')]);function _0x11d0db(_0x2cef45){const _0x3cffcf=_0x18cd69;return _0x49cbdd()[_0x3cffcf('0xf04')](_0x2cef45);}function _0x40206b(){const _0x186978=_0x18cd69;_0x49cbdd()[_0x186978('0x1857')](_0x4c3593[_0x186978('0x15b7')],function(_0x2778aa,_0xc285f){const _0x2d4e9d=_0x186978;_0x49cbdd()[_0x2d4e9d('0xe8e')](_0x4c3593['queues'],{'name':_0x2778aa[_0x2d4e9d('0x2aa')]})&&(_0x4c3593[_0x2d4e9d('0x1c1c')][_0xc285f]=_0x2778aa);});}function _0x533993(_0x1eceb6){const _0xd4489f=_0x18cd69;_0x1eceb6[_0xd4489f('0x412')]==='inbound'&&(_0x49cbdd()[_0xd4489f('0xe8e')](_0x4c3593['queues'],{'name':_0x1eceb6['name']})&&(_0x4c3593[_0xd4489f('0x1c1c')][_0x1eceb6[_0xd4489f('0x35b')]]=_0x1eceb6));}function _0x135b84(_0x585d04){const _0x1c74ae=_0x18cd69;_0x4c3593[_0x1c74ae('0x1c1c')][_0x585d04[_0x1c74ae('0x35b')]]&&delete _0x4c3593[_0x1c74ae('0x1c1c')][_0x585d04[_0x1c74ae('0x35b')]];}function _0x4dfc2b(_0x650fd5){const _0x597bb2=_0x18cd69;return _0x293e40['rpc'][_0x597bb2('0x21cd')]({'uniqueid':_0x650fd5})['$promise']['then'](function(_0x4b7516){const _0x5de32c=_0x597bb2;_0x343c1d[_0x5de32c('0x130d')]({'title':'Channel\x20'+_0x650fd5+_0x5de32c('0x85e'),'msg':_0x4b7516['message']||''});})[_0x597bb2('0x16df')](function(_0x293e05){const _0x2f8d09=_0x597bb2;_0x343c1d[_0x2f8d09('0x1db9')]({'title':_0x293e05[_0x2f8d09('0x11c5')]+'\x20-\x20'+_0x293e05[_0x2f8d09('0x1833')],'msg':JSON[_0x2f8d09('0x678')](_0x293e05[_0x2f8d09('0x1457')])||_0x293e05['message'][_0x2f8d09('0x1eba')]('\x20')});});}function _0x27ea1e(_0x11d7f9,_0x2dc4af,_0x4210de){const _0x21aed2=_0x18cd69;return _0x293e40[_0x21aed2('0x1207')][_0x21aed2('0x2427')]({'uniqueid':_0x11d7f9,'exten':_0x2dc4af,'context':_0x4210de})['$promise']['then'](function(_0x9f36c1){const _0x3ed76d=_0x21aed2;_0x343c1d['success']({'title':_0x3ed76d('0x2779')+_0x11d7f9+_0x3ed76d('0x135e'),'msg':_0x9f36c1[_0x3ed76d('0x1603')]||''});})[_0x21aed2('0x16df')](function(_0x5ead85){const _0x4c57ee=_0x21aed2;_0x343c1d['error']({'title':_0x5ead85[_0x4c57ee('0x11c5')]+_0x4c57ee('0x16e4')+_0x5ead85[_0x4c57ee('0x1833')],'msg':JSON[_0x4c57ee('0x678')](_0x5ead85['data'])||_0x5ead85[_0x4c57ee('0x1603')][_0x4c57ee('0x1eba')]('\x20')});});}function _0x331384(_0x182cf5,_0x475835){const _0x9ec838=_0x18cd69,_0x23ffe=_0x843f89['prompt']()[_0x9ec838('0x24d3')](_0x9ec838('0x14bb'))[_0x9ec838('0x1ba5')](_0x9ec838('0x1f30'))['targetEvent'](_0x182cf5)['ok']('Ok')['cancel']('Cancel');return _0x843f89[_0x9ec838('0x28e2')](_0x23ffe)[_0x9ec838('0x17e7')](function(_0x572ef9){const _0x41e57d=_0x9ec838;return _0x293e40[_0x41e57d('0x1207')]['getVoiceQueuesChannelRedirect']({'uniqueid':_0x475835,'exten':_0x572ef9})[_0x41e57d('0x1af5')];})[_0x9ec838('0x17e7')](function(_0x80a05f){const _0x8c597d=_0x9ec838;_0x343c1d['success']({'title':_0x8c597d('0x2779')+_0x475835+_0x8c597d('0x135e'),'msg':_0x80a05f['message']||''});})[_0x9ec838('0x16df')](function(_0x5d826a){const _0x10bce3=_0x9ec838;_0x343c1d[_0x10bce3('0x1db9')]({'title':_0x5d826a[_0x10bce3('0x11c5')]+'\x20-\x20'+_0x5d826a[_0x10bce3('0x1833')],'msg':JSON[_0x10bce3('0x678')](_0x5d826a[_0x10bce3('0x1457')])||_0x5d826a[_0x10bce3('0x1603')][_0x10bce3('0x1eba')]('\x20')});});}_0x3ffad4[_0x18cd69('0x207c')]('$destroy',function(){const _0x111408=_0x18cd69;_0x217f46['removeAllListeners']('voice_queue_channel:save'),_0x217f46[_0x111408('0x1c65')](_0x111408('0x22d1'));});}const _0xda2f2f=_0x4f7f40;_0x560b1e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'$interval',_0x4376d8('0x14c4'),_0x4376d8('0x1d90'),'api','socket','userProfile','userProfileSection',_0x4376d8('0x1885')];function _0x560b1e(_0x2d78af,_0x1e5d72,_0x2293a2,_0x405e98,_0x1f75a7,_0x4605bf,_0x59d8d9,_0x365e9d,_0x143ab0,_0x5695ee){const _0x59fad2=_0x4376d8,_0x4402d2=this,_0x59757c=[_0x59fad2('0x1d0e'),'answered',_0x59fad2('0x116a'),_0x59fad2('0x22b6'),_0x59fad2('0x1d14'),'sumDuration',_0x59fad2('0x1602')];_0x4402d2[_0x59fad2('0x335')]=_0x405e98['count'],_0x4402d2['queues']=_0x405e98?_0x49cbdd()['keyBy'](_0x405e98[_0x59fad2('0x2319')]?_0x405e98[_0x59fad2('0x2319')]:[],'id'):{},_0x4402d2[_0x59fad2('0x1d90')]=_0x1f75a7?_0x49cbdd()['keyBy'](_0x1f75a7[_0x59fad2('0x2319')]?_0x1f75a7['rows']:[],'id'):{},_0x4402d2[_0x59fad2('0xdeb')]=_0x365e9d,_0x4402d2[_0x59fad2('0x383')]=_0x143ab0&&_0x143ab0[_0x59fad2('0x335')]==0x1?_0x143ab0[_0x59fad2('0x2319')][0x0]:null,_0x4402d2[_0x59fad2('0x103e')]=_0x5695ee[_0x59fad2('0x17a9')](_0x4402d2['userProfileSection']?_0x4402d2['userProfileSection']['crudPermissions']:null);_0x5695ee[_0x59fad2('0x1ba2')](_0x59fad2('0x20bf'))?_0x4402d2[_0x59fad2('0x826')]={'type':_0x59fad2('0x1e77'),'fields':_0x59fad2('0x12d2'),'sort':_0x59fad2('0x1ac6'),'limit':0xa,'page':0x1}:_0x4402d2[_0x59fad2('0x826')]={'id':_0x5695ee[_0x59fad2('0x2831')]()['id'],'channel':_0x59fad2('0x1fe1'),'type':_0x59fad2('0x1e77'),'fields':_0x59fad2('0x12d2'),'sort':_0x59fad2('0x1ac6'),'limit':0xa,'page':0x1};_0x4402d2[_0x59fad2('0x130d')]=_0x552873,_0x4402d2[_0x59fad2('0x1f3b')]=_0x3cc11a,_0x4402d2[_0x59fad2('0xfd5')]=_0x3385f1,_0x4402d2['$onInit']=_0x233a13,_0x59d8d9[_0x59fad2('0x1335')](_0x59fad2('0x1ddb'),_0x4402d2[_0x59fad2('0xfd5')]),_0x4402d2[_0x59fad2('0x231f')]=_0x2293a2(function(){},0x3e7);function _0x233a13(){const _0x3b0289=_0x59fad2;_0x49cbdd()[_0x3b0289('0x1857')](_0x4402d2[_0x3b0289('0x14c4')],function(_0x36621b,_0x46b4da){const _0xff4b5=_0x3b0289;_0x4402d2[_0xff4b5('0x1d90')][_0x46b4da]&&_0x49cbdd()[_0xff4b5('0x1ced')](_0x36621b,_0x49cbdd()[_0xff4b5('0x230a')](_0x4402d2[_0xff4b5('0x1d90')][_0x46b4da],_0x59757c));});}function _0x3385f1(_0x4c9137){const _0x573e12=_0x59fad2;_0x4402d2['queues'][_0x4c9137['id']]&&_0x49cbdd()[_0x573e12('0x1ced')](_0x4402d2[_0x573e12('0x14c4')][_0x4c9137['id']],_0x49cbdd()[_0x573e12('0x230a')](_0x4c9137,_0x59757c));}let _0x44308c=!![],_0x50d6fd=0x1;_0x2d78af[_0x59fad2('0x620')](_0x59fad2('0x3ed'),function(_0x75434f,_0x1622b4){const _0x4ce6cf=_0x59fad2;_0x44308c?_0x1e5d72(function(){_0x44308c=![];}):(!_0x1622b4&&(_0x50d6fd=_0x4402d2['query'][_0x4ce6cf('0x115a')]),_0x75434f!==_0x1622b4&&(_0x4402d2[_0x4ce6cf('0x826')][_0x4ce6cf('0x115a')]=0x1),!_0x75434f&&(_0x4402d2['query'][_0x4ce6cf('0x115a')]=_0x50d6fd),_0x4402d2[_0x4ce6cf('0x1f3b')]());});function _0x552873(_0x44e324){const _0x15bebd=_0x59fad2;_0x4402d2[_0x15bebd('0x335')]=_0x44e324[_0x15bebd('0x335')],_0x4402d2[_0x15bebd('0x14c4')]=_0x44e324?_0x49cbdd()['keyBy'](_0x44e324['rows']?_0x44e324['rows']:[],'id'):{},_0x233a13();}function _0x3cc11a(){const _0xd6c479=_0x59fad2;_0x4402d2['query'][_0xd6c479('0xf19')]=(_0x4402d2['query']['page']-0x1)*_0x4402d2[_0xd6c479('0x826')][_0xd6c479('0x193b')],_0x5695ee[_0xd6c479('0x1ba2')](_0xd6c479('0x20bf'))?_0x4402d2[_0xd6c479('0x1691')]=_0x4605bf['voiceQueue'][_0xd6c479('0x1c53')](_0x4402d2[_0xd6c479('0x826')],_0x552873)[_0xd6c479('0x1af5')]:(_0x4402d2[_0xd6c479('0x826')]['id']=_0x4402d2[_0xd6c479('0xdeb')]['id'],_0x4402d2[_0xd6c479('0x826')][_0xd6c479('0x16f8')]=_0xd6c479('0x2068'),_0x4402d2[_0xd6c479('0x1691')]=_0x4605bf['userProfile'][_0xd6c479('0x2447')](_0x4402d2[_0xd6c479('0x826')],_0x552873)['$promise']);}_0x2d78af[_0x59fad2('0x207c')](_0x59fad2('0x2b4'),function(){const _0x21c594=_0x59fad2;_0x59d8d9['removeAllListeners'](_0x21c594('0x1ddb')),_0x4402d2[_0x21c594('0x231f')]&&_0x2293a2[_0x21c594('0x1d47')](_0x4402d2['interval']);});}const _0x4fa6bd=_0x560b1e,_0x52a833=_0x4cf2bc['p']+_0x4376d8('0x1165'),_0x342c9b=_0x4cf2bc['p']+_0x4376d8('0xa31');_0x452ae8[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x26ca'),'$interval',_0x4376d8('0x14c4'),_0x4376d8('0x1d90'),_0x4376d8('0x212e'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),'userProfile','userProfileSection',_0x4376d8('0x1885')];function _0x452ae8(_0x362c55,_0x4d9892,_0x814cb1,_0x49ea9c,_0x4152bc,_0x43919f,_0x42a654,_0x287a63,_0x21a70c,_0x34328f,_0x5f1b23,_0x2b7056,_0x390f5d,_0x532720){const _0x33021a=_0x4376d8,_0x142f51=this,_0x487681=[_0x33021a('0x1458'),'available',_0x33021a('0x2143'),_0x33021a('0x1d20'),_0x33021a('0xdb9'),_0x33021a('0x829'),'message',_0x33021a('0x10c9'),'dialMethod',_0x33021a('0x1bc6'),_0x33021a('0x1bb8')];_0x142f51[_0x33021a('0x197c')]=_0x532720[_0x33021a('0x2831')](),_0x142f51['count']=_0x42a654[_0x33021a('0x335')]?_0x42a654[_0x33021a('0x335')]:0x0,_0x142f51[_0x33021a('0x14c4')]=_0x42a654?_0x49cbdd()[_0x33021a('0x8de')](_0x42a654['rows']?_0x42a654[_0x33021a('0x2319')]:[],'id'):{},_0x142f51[_0x33021a('0x1d90')]=_0x287a63?_0x49cbdd()[_0x33021a('0x8de')](_0x287a63[_0x33021a('0x2319')]?_0x287a63[_0x33021a('0x2319')]:[],'id'):{},_0x142f51[_0x33021a('0xdeb')]=_0x2b7056,_0x142f51[_0x33021a('0x383')]=_0x390f5d&&_0x390f5d[_0x33021a('0x335')]==0x1?_0x390f5d[_0x33021a('0x2319')][0x0]:null,_0x142f51['crudPermissions']=_0x532720[_0x33021a('0x17a9')](_0x142f51[_0x33021a('0x383')]?_0x142f51[_0x33021a('0x383')][_0x33021a('0x103e')]:null);_0x532720['hasRole'](_0x33021a('0x20bf'))?_0x142f51['query']={'type':_0x33021a('0x1e77'),'sort':_0x33021a('0x1ac6'),'limit':0xa,'page':0x1}:_0x142f51[_0x33021a('0x826')]={'id':_0x142f51[_0x33021a('0x197c')]['id'],'channel':_0x33021a('0x1fe1'),'type':_0x33021a('0x1e77'),'sort':_0x33021a('0x1ac6'),'limit':0xa,'page':0x1};_0x142f51[_0x33021a('0x130d')]=_0xc644b,_0x142f51['getQueues']=_0x381284,_0x142f51[_0x33021a('0xedc')]=_0x5e6de3,_0x142f51['agentAdd']=_0x2df5e2,_0x142f51[_0x33021a('0x139c')]=_0x1f9a7e,_0x142f51['onSave']=_0x464c7b,_0x142f51['onPause']=_0x4f7713,_0x142f51[_0x33021a('0x1781')]=_0x2c2e4c,_0x142f51[_0x33021a('0x1532')]=_0x57fd44,_0x142f51['$onInit']=_0x2819ab,_0x142f51[_0x33021a('0x1e36')]=[],_0x49cbdd()[_0x33021a('0x1857')](_0x142f51['queues'],function(_0xed3b88){const _0x290155=_0x33021a;_0x142f51[_0x290155('0x1e36')][_0x290155('0x269f')](_0xed3b88['id']);}),_0x34328f[_0x33021a('0x1335')](_0x33021a('0x1ddb'),_0x142f51[_0x33021a('0xfd5')]),_0x142f51['interval']=_0x43919f(function(){},0x3e7),_0x34328f['on']('user:update',_0x142f51['onPause']),_0x34328f['on']('userVoiceQueue:remove',_0x142f51['onLogout']),_0x34328f['on'](_0x33021a('0x1cfb'),_0x142f51[_0x33021a('0x1781')]);function _0x2819ab(){const _0x85d835=_0x33021a,_0x138446=[];return _0x49cbdd()[_0x85d835('0x1857')](_0x142f51[_0x85d835('0x14c4')],function(_0x577872,_0x25f78a){const _0x7ce006=_0x85d835;_0x577872[_0x7ce006('0x1bb8')]=0x0,_0x577872[_0x7ce006('0x6c2')]=0x0,_0x142f51[_0x7ce006('0x14c4')][_0x25f78a][_0x7ce006('0x25ea')]={},_0x138446[_0x7ce006('0x269f')](_0x21a70c[_0x7ce006('0x1243')][_0x7ce006('0x1f58')]({'id':_0x25f78a})[_0x7ce006('0x1af5')]),_0x142f51['rpcQueues'][_0x25f78a]&&_0x49cbdd()['merge'](_0x577872,_0x49cbdd()['pick'](_0x142f51[_0x7ce006('0x1d90')][_0x25f78a],_0x487681));}),_0x49ea9c[_0x85d835('0x1283')](_0x138446)['then'](function(_0x4c85a1){const _0x36e0c5=_0x85d835;for(let _0x3b95e6=0x0;_0x3b95e6<_0x4c85a1['length'];_0x3b95e6+=0x1){for(let _0xe7aa92=0x0;_0xe7aa92<_0x4c85a1[_0x3b95e6][_0x36e0c5('0x2319')][_0x36e0c5('0x1f73')];_0xe7aa92++){_0x4c85a1[_0x3b95e6]['rows'][_0xe7aa92][_0x36e0c5('0x1bb8')]&&_0x142f51[_0x36e0c5('0x14c4')][_0x4c85a1[_0x3b95e6][_0x36e0c5('0x2319')][_0xe7aa92][_0x36e0c5('0x2803')]][_0x36e0c5('0x1bb8')]++,_0x142f51['queues'][_0x4c85a1[_0x3b95e6][_0x36e0c5('0x2319')][_0xe7aa92][_0x36e0c5('0x2803')]][_0x36e0c5('0x6c2')]++,_0x142f51[_0x36e0c5('0x14c4')][_0x4c85a1[_0x3b95e6]['rows'][_0xe7aa92][_0x36e0c5('0x2803')]][_0x36e0c5('0x25ea')][_0x4c85a1[_0x3b95e6][_0x36e0c5('0x2319')][_0xe7aa92][_0x36e0c5('0x5e5')]]=_0x4c85a1[_0x3b95e6]['rows'][_0xe7aa92][_0x36e0c5('0x2803')];}}})['catch'](function(_0x14d1cc){const _0x323c79=_0x85d835;console[_0x323c79('0x1db9')](_0x14d1cc);});}function _0x464c7b(_0x467f47){const _0x31b957=_0x33021a;_0x142f51[_0x31b957('0x14c4')][_0x467f47['id']]&&_0x49cbdd()[_0x31b957('0x1ced')](_0x142f51[_0x31b957('0x14c4')][_0x467f47['id']],_0x49cbdd()['pick'](_0x467f47,_0x487681));}function _0x4f7713(_0x52bca6){const _0x4fecb7=_0x33021a;console[_0x4fecb7('0x1d63')](_0x4fecb7('0x14ed'),_0x52bca6);if(_0x52bca6[_0x4fecb7('0x118a')])_0x49cbdd()[_0x4fecb7('0x1857')](_0x142f51[_0x4fecb7('0x14c4')],function(_0x2c5cf8){const _0x2f92ce=_0x4fecb7;_0x2c5cf8[_0x2f92ce('0x25ea')][_0x52bca6['id']]&&(_0x2c5cf8['paused']+=0x1,console[_0x2f92ce('0x1d63')]('pause'));});else!_0x52bca6['voicePause']&&_0x49cbdd()[_0x4fecb7('0x1857')](_0x142f51['queues'],function(_0x4ae069){const _0xcf94f=_0x4fecb7;_0x4ae069['agents'][_0x52bca6['id']]&&(_0x4ae069['paused']>0x0&&(_0x4ae069['paused']-=0x1,console[_0xcf94f('0x1d63')](_0xcf94f('0xc57'))));});}function _0x2c2e4c(_0x9c88bf){const _0x28b36b=_0x33021a;console['log'](_0x28b36b('0x1a6b'),_0x9c88bf),_0x142f51['queues'][_0x9c88bf[_0x28b36b('0x2803')]]&&(_0x142f51[_0x28b36b('0x14c4')][_0x9c88bf[_0x28b36b('0x2803')]][_0x28b36b('0x6c2')]+=0x1,_0x142f51[_0x28b36b('0x14c4')][_0x9c88bf[_0x28b36b('0x2803')]][_0x28b36b('0x25ea')][_0x9c88bf[_0x28b36b('0x5e5')]]=_0x9c88bf[_0x28b36b('0x2803')]);}function _0x57fd44(_0x1094e7){const _0x4d9606=_0x33021a;console['log']('onLogout',_0x1094e7),_0x142f51['queues'][_0x1094e7[_0x4d9606('0x2803')]]&&_0x142f51[_0x4d9606('0x14c4')][_0x1094e7[_0x4d9606('0x2803')]][_0x4d9606('0x6c2')]>0x0&&(_0x142f51['queues'][_0x1094e7[_0x4d9606('0x2803')]][_0x4d9606('0x6c2')]-=0x1,delete _0x142f51['queues'][_0x1094e7[_0x4d9606('0x2803')]][_0x4d9606('0x25ea')][_0x1094e7['UserId']]);}let _0x1edc40=!![],_0x470b26=0x1;_0x362c55[_0x33021a('0x620')](_0x33021a('0x3ed'),function(_0x97f758,_0x5538b5){const _0x167cef=_0x33021a;_0x1edc40?_0x4d9892(function(){_0x1edc40=![];}):(!_0x5538b5&&(_0x470b26=_0x142f51[_0x167cef('0x826')]['page']),_0x97f758!==_0x5538b5&&(_0x142f51[_0x167cef('0x826')][_0x167cef('0x115a')]=0x1),!_0x97f758&&(_0x142f51[_0x167cef('0x826')]['page']=_0x470b26),_0x142f51[_0x167cef('0x1f3b')]());});function _0xc644b(_0x33bf06){const _0x172bbb=_0x33021a;_0x142f51['count']=_0x33bf06[_0x172bbb('0x335')],_0x142f51[_0x172bbb('0x14c4')]=_0x33bf06?_0x49cbdd()[_0x172bbb('0x8de')](_0x33bf06[_0x172bbb('0x2319')]?_0x33bf06['rows']:[],'id'):{};if(_0x33bf06[_0x172bbb('0x2319')]){_0x142f51[_0x172bbb('0x1e36')]=[];for(let _0x53fdf5=0x0;_0x53fdf5<_0x33bf06['rows'][_0x172bbb('0x1f73')];_0x53fdf5++){_0x142f51[_0x172bbb('0x1e36')][_0x172bbb('0x269f')](_0x33bf06['rows'][_0x53fdf5]['id']);}}_0x2819ab();}function _0x381284(){const _0x3855fe=_0x33021a;_0x142f51[_0x3855fe('0x826')][_0x3855fe('0xf19')]=(_0x142f51[_0x3855fe('0x826')]['page']-0x1)*_0x142f51[_0x3855fe('0x826')][_0x3855fe('0x193b')],_0x532720[_0x3855fe('0x1ba2')]('admin')?_0x142f51['promise']=_0x21a70c[_0x3855fe('0x1243')][_0x3855fe('0x1c53')](_0x142f51['query'],_0xc644b)['$promise']:(_0x142f51[_0x3855fe('0x826')]['id']=_0x142f51[_0x3855fe('0xdeb')]['id'],_0x142f51[_0x3855fe('0x826')][_0x3855fe('0x16f8')]=_0x3855fe('0x2068'),_0x142f51[_0x3855fe('0x1691')]=_0x21a70c[_0x3855fe('0xdeb')]['getResources'](_0x142f51[_0x3855fe('0x826')],_0xc644b)[_0x3855fe('0x1af5')]);}function _0x5e6de3(_0x39510d,_0x3785c3){const _0x4414e0=_0x33021a;_0x814cb1[_0x4414e0('0x28e2')]({'controller':'CreateOrEditVoiceQueueDialogController','controllerAs':'vm','templateUrl':_0x52a833,'parent':angular[_0x4414e0('0x1ce1')](_0x4152bc['body']),'targetEvent':_0x39510d,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x3785c3,'voiceQueues':_0x49cbdd()[_0x4414e0('0xa72')](_0x142f51['queues']),'license':null,'setting':null,'crudPermissions':_0x142f51['crudPermissions']}});}function _0x2df5e2(_0x998ef1,_0x466064){const _0x1282dc=_0x33021a;_0x814cb1[_0x1282dc('0x28e2')]({'controller':'VoiceQueueagentaddController','controllerAs':'vm','templateUrl':_0x342c9b,'parent':angular[_0x1282dc('0x1ce1')](_0x4152bc[_0x1282dc('0x13aa')]),'targetEvent':_0x998ef1,'clickOutsideToClose':!![],'locals':{'voiceQueue':_0x466064,'voiceQueues':_0x142f51[_0x1282dc('0x14c4')]?_0x142f51[_0x1282dc('0x14c4')]['rows']:[],'realtime':!![],'crudPermissions':_0x142f51[_0x1282dc('0x103e')]}});}function _0x1f9a7e(_0x5798b2){const _0xb09365=_0x33021a;return _0x21a70c[_0xb09365('0x1243')]['update'](_0x5798b2)[_0xb09365('0x1af5')][_0xb09365('0x17e7')](function(){const _0x23a0f7=_0xb09365;_0x5f1b23[_0x23a0f7('0x130d')]({'title':'Queue\x20properly\x20updated!','msg':_0x5798b2['name']?_0x5798b2[_0x23a0f7('0x2aa')]+_0x23a0f7('0x12b0'):''});})[_0xb09365('0x16df')](function(_0x53e165){const _0x36ce75=_0xb09365;_0x5f1b23[_0x36ce75('0x1db9')]({'title':_0x36ce75('0x2480'),'msg':_0x53e165[_0x36ce75('0x1603')]});});}_0x362c55[_0x33021a('0x207c')](_0x33021a('0x2b4'),function(){const _0x3428fb=_0x33021a;_0x34328f[_0x3428fb('0x1c65')]('voice_queue:save'),_0x142f51[_0x3428fb('0x231f')]&&_0x43919f[_0x3428fb('0x1d47')](_0x142f51[_0x3428fb('0x231f')]),_0x34328f[_0x3428fb('0x1c65')](_0x3428fb('0x284f')),_0x34328f['removeAllListeners'](_0x3428fb('0x1f34')),_0x34328f[_0x3428fb('0x1c65')]('userVoiceQueue:save');});}const _0x375b83=_0x452ae8;function _0x408e76(){const _0x5df3a3=_0x4376d8;return{'status':{'registered':_0x5df3a3('0x9b4'),'unregistered':_0x5df3a3('0x20ec'),'lagged':_0x5df3a3('0x20ec'),'reachable':_0x5df3a3('0x9b4'),'unreachable':_0x5df3a3('0x20ec'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x5df3a3('0x9d7'),'not_inuse':_0x5df3a3('0x23ce'),'inuse':_0x5df3a3('0xbd2'),'busy':_0x5df3a3('0xf9e'),'invalid':_0x5df3a3('0x9d7'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x5df3a3('0x109b'),'ringinuse':_0x5df3a3('0x109b'),'onhold':_0x5df3a3('0x1f4')},'channelStatus':{'ring':_0x5df3a3('0x109b'),'up':_0x5df3a3('0xc21'),'hangup':_0x5df3a3('0x1147')},'channelStatusOut':{'ring':_0x5df3a3('0xc0c'),'up':_0x5df3a3('0xc21'),'hangup':'red-300-fg\x20icon-phone-hangup'}};}const _0x1e70b4=_0x408e76;_0x2730ad['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x25aa')];function _0x2730ad(_0x5dbf14,_0x3ae26c,_0x26e644){const _0x33aac3=_0x4376d8,_0x4ba8af=this;_0x26e644['disconnect'](),_0x26e644[_0x33aac3('0x1f81')](),_0x4ba8af['selectedTab']=0x0;switch(_0x3ae26c[_0x33aac3('0x1247')][_0x33aac3('0x2aa')]){case _0x33aac3('0x19a2'):_0x4ba8af[_0x33aac3('0xde7')]=0x0;break;case _0x33aac3('0x18f9'):_0x4ba8af['selectedTab']=0x1;break;case'app.voice.realtime.trunks':_0x4ba8af[_0x33aac3('0xde7')]=0x2;break;case'app.voice.realtime.queues':_0x4ba8af[_0x33aac3('0xde7')]=0x3;break;case _0x33aac3('0x18fd'):_0x4ba8af[_0x33aac3('0xde7')]=0x4;break;case'app.voice.realtime.abandonedcalls':_0x4ba8af['selectedTab']=0x5;break;case _0x33aac3('0x1a9d'):_0x4ba8af[_0x33aac3('0xde7')]=0x6;break;case _0x33aac3('0xb21'):_0x4ba8af[_0x33aac3('0xde7')]=0x7;break;default:_0x4ba8af['selectedTab']=0x0,_0x3ae26c['go']('app.voice.realtime.agents');}_0x5dbf14[_0x33aac3('0x620')]('vm.selectedTab',function(_0x33604b,_0x4c108d){const _0x3a8aad=_0x33aac3;if(_0x33604b!==_0x4c108d)switch(_0x33604b){case 0x0:_0x3ae26c['go']('app.voice.realtime.agents');break;case 0x1:_0x3ae26c['go'](_0x3a8aad('0x18f9'));break;case 0x2:_0x3ae26c['go']('app.voice.realtime.trunks');break;case 0x3:_0x3ae26c['go'](_0x3a8aad('0x2729'));break;case 0x4:_0x3ae26c['go'](_0x3a8aad('0x18fd'));break;case 0x5:_0x3ae26c['go']('app.voice.realtime.abandonedcalls');break;case 0x6:_0x3ae26c['go'](_0x3a8aad('0x1a9d'));break;case 0x7:_0x3ae26c['go'](_0x3a8aad('0xb21'));break;default:_0x3ae26c['go'](_0x3a8aad('0x19a2'));}});}const _0x32786b=_0x2730ad;_0x2879e6[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0xd51'),_0x4376d8('0x16a8'),_0x4376d8('0x212e'),_0x4376d8('0x25aa'),'helperClasses',_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885')];function _0x2879e6(_0x1d8008,_0x588347,_0x46763e,_0x1bbd0b,_0x80ff50,_0x3c2415,_0x330f58,_0x1dd116,_0x4a31fc,_0x4e76f9,_0x2d3afe){const _0x107534=_0x4376d8,_0x1d956a=this,_0x2ded15=[_0x107534('0xea6'),'internal',_0x107534('0x1b9a'),_0x107534('0x11c5')];_0x1d956a[_0x107534('0x335')]=_0x1bbd0b['count'],_0x1d956a[_0x107534('0x13b')]=['fullname','internal',_0x107534('0x1b9a'),_0x107534('0x11c5'),'address'],_0x1d956a['telephones']=_0x1bbd0b?_0x49cbdd()[_0x107534('0x8de')](_0x1bbd0b[_0x107534('0x2319')]?_0x1bbd0b[_0x107534('0x2319')]:[],'id'):{},_0x1d956a['rpcTelephones']=_0x80ff50?_0x49cbdd()['keyBy'](_0x80ff50['rows']?_0x80ff50[_0x107534('0x2319')]:[],'id'):{},_0x1d956a[_0x107534('0xdeb')]=_0x4a31fc,_0x1d956a[_0x107534('0x383')]=_0x4e76f9&&_0x4e76f9[_0x107534('0x335')]==0x1?_0x4e76f9[_0x107534('0x2319')][0x0]:null,_0x1d956a[_0x107534('0x103e')]=_0x2d3afe[_0x107534('0x17a9')](_0x1d956a[_0x107534('0x383')]?_0x1d956a[_0x107534('0x383')][_0x107534('0x103e')]:null),_0x1d956a[_0x107534('0x826')]={'fields':_0x107534('0x1be0'),'role':_0x107534('0x21b5'),'sort':_0x107534('0x1ac6'),'limit':0xa,'page':0x1},_0x1d956a['statusClass']=_0x1dd116[_0x107534('0x11c5')],_0x1d956a[_0x107534('0x84')]=_0x1dd116[_0x107534('0x1b9a')],_0x1d956a['success']=_0x57800e,_0x1d956a[_0x107534('0x11e8')]=_0x55f762,_0x1d956a[_0x107534('0x3eb')]=_0x559c83,_0x1d956a['getTelephones']=_0x195f30,_0x1d956a[_0x107534('0xfd5')]=_0xe6c34b,_0x330f58['on']('telephone:save',_0x1d956a[_0x107534('0xfd5')]);function _0x55f762(){const _0x15f7dc=_0x107534;_0x49cbdd()[_0x15f7dc('0x1857')](_0x1d956a[_0x15f7dc('0xd51')],function(_0x2024e9,_0x45e972){const _0x333b4c=_0x15f7dc;_0x1d956a[_0x333b4c('0x16a8')][_0x45e972]&&_0x49cbdd()[_0x333b4c('0x1ced')](_0x2024e9,_0x49cbdd()[_0x333b4c('0x230a')](_0x1d956a[_0x333b4c('0x16a8')][_0x45e972],_0x2ded15));});}function _0x559c83(_0x5aba77){const _0x36a1a8=_0x107534;_0x46763e['show'](_0x46763e[_0x36a1a8('0x99f')]()[_0x36a1a8('0x2f4')](!![])['title'](_0x36a1a8('0x5b8'))[_0x36a1a8('0x211f')]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')[_0x36a1a8('0x104f')](_0x5aba77));}function _0xe6c34b(_0x18dbaf){const _0x58a947=_0x107534;_0x1d956a[_0x58a947('0xd51')][_0x18dbaf['id']]&&_0x49cbdd()[_0x58a947('0x1ced')](_0x1d956a[_0x58a947('0xd51')][_0x18dbaf['id']],_0x49cbdd()[_0x58a947('0x230a')](_0x18dbaf,_0x2ded15));}let _0x137e10=!![],_0x164ba3=0x1;_0x1d8008[_0x107534('0x620')](_0x107534('0x3ed'),function(_0xd5010d,_0x416597){const _0x10f443=_0x107534;_0x137e10?_0x588347(function(){_0x137e10=![];}):(!_0x416597&&(_0x164ba3=_0x1d956a[_0x10f443('0x826')][_0x10f443('0x115a')]),_0xd5010d!==_0x416597&&(_0x1d956a[_0x10f443('0x826')][_0x10f443('0x115a')]=0x1),!_0xd5010d&&(_0x1d956a[_0x10f443('0x826')]['page']=_0x164ba3),_0x1d956a['getTelephones']());});function _0x57800e(_0x40cd1f){const _0x4f0254=_0x107534;_0x1d956a['telephones']=_0x40cd1f?_0x49cbdd()[_0x4f0254('0x8de')](_0x40cd1f[_0x4f0254('0x2319')]?_0x40cd1f[_0x4f0254('0x2319')]:[],'id'):{},_0x55f762();}function _0x195f30(){const _0x31926c=_0x107534;_0x1d956a[_0x31926c('0x826')][_0x31926c('0xf19')]=(_0x1d956a[_0x31926c('0x826')][_0x31926c('0x115a')]-0x1)*_0x1d956a[_0x31926c('0x826')][_0x31926c('0x193b')],_0x2d3afe['hasRole'](_0x31926c('0x20bf'))?_0x1d956a['promise']=_0x3c2415[_0x31926c('0x221e')][_0x31926c('0x1c53')](_0x1d956a['query'],_0x57800e)[_0x31926c('0x1af5')]:(_0x1d956a[_0x31926c('0x826')]['id']=_0x1d956a[_0x31926c('0xdeb')]['id'],_0x1d956a[_0x31926c('0x826')]['section']=_0x31926c('0x778'),_0x1d956a[_0x31926c('0x1691')]=_0x3c2415['userProfile'][_0x31926c('0x2447')](_0x1d956a[_0x31926c('0x826')],_0x57800e)[_0x31926c('0x1af5')]);}_0x1d8008[_0x107534('0x207c')]('$destroy',function(){const _0x40edcd=_0x107534;_0x330f58['removeAllListeners'](_0x40edcd('0x16a5'));});}const _0x13a5eb=_0x2879e6;_0x2a0f5c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$timeout','$mdDialog',_0x4376d8('0x19cb'),_0x4376d8('0x1827'),_0x4376d8('0x212e'),'socket','helperClasses',_0x4376d8('0xc4c'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'Auth'];function _0x2a0f5c(_0x16cc41,_0x12d928,_0xae27c8,_0x45b85a,_0x1f319b,_0x122731,_0x45f071,_0x4468c8,_0x546628,_0x4aba27,_0x42041f,_0x11a134){const _0x49659a=_0x4376d8,_0x4b7e46=this,_0x12ce3e=[_0x49659a('0x11c5'),_0x49659a('0x18ab'),_0x49659a('0x6fa'),_0x49659a('0x108'),_0x49659a('0x2442'),_0x49659a('0xe3e'),_0x49659a('0x1b9a'),_0x49659a('0x11c5')];_0x4b7e46['currentUser']=_0x11a134[_0x49659a('0x2831')](),_0x4b7e46[_0x49659a('0x335')]=_0x45b85a[_0x49659a('0x335')],_0x4b7e46['trunks']=_0x45b85a?_0x45b85a[_0x49659a('0x2319')]:[],_0x4b7e46[_0x49659a('0x1827')]=_0x1f319b?_0x1f319b['rows']?_0x1f319b[_0x49659a('0x2319')]:[]:[],_0x4b7e46['query']={'fields':_0x49659a('0x12d2'),'active':!![],'sort':_0x49659a('0x1ac6'),'limit':0xa,'page':0x1},_0x4b7e46[_0x49659a('0x18da')]=_0x4468c8[_0x49659a('0x11c5')],_0x4b7e46[_0x49659a('0x84')]=_0x4468c8[_0x49659a('0x1b9a')],_0x4b7e46[_0x49659a('0xdeb')]=_0x4aba27,_0x4b7e46['userProfileSection']=_0x42041f&&_0x42041f[_0x49659a('0x335')]==0x1?_0x42041f[_0x49659a('0x2319')][0x0]:null,_0x4b7e46[_0x49659a('0x103e')]=_0x11a134[_0x49659a('0x17a9')](_0x4b7e46[_0x49659a('0x383')]?_0x4b7e46[_0x49659a('0x383')]['crudPermissions']:null),_0x4b7e46[_0x49659a('0x130d')]=_0x2b5e4e,_0x4b7e46[_0x49659a('0x11e8')]=_0x18be5f,_0x4b7e46[_0x49659a('0x3eb')]=_0x41b2fa,_0x4b7e46[_0x49659a('0x106a')]=_0xa3f85d,_0x4b7e46[_0x49659a('0x11b7')]=_0x317ec0,_0x4b7e46[_0x49659a('0xfd5')]=_0x1e3b8f,_0x45f071['on']('trunk:save',_0x4b7e46[_0x49659a('0xfd5')]);function _0x18be5f(){const _0x1994dc=_0x49659a;let _0x460524;for(let _0x238e51=0x0;_0x238e51<_0x4b7e46[_0x1994dc('0x19cb')][_0x1994dc('0x1f73')];_0x238e51+=0x1){_0x460524=_0x49cbdd()[_0x1994dc('0x1f4c')](_0x4b7e46['rpcTrunks'],['id',_0x4b7e46[_0x1994dc('0x19cb')][_0x238e51]['id']]),_0x460524>=0x0&&_0x49cbdd()[_0x1994dc('0x1ced')](_0x4b7e46[_0x1994dc('0x19cb')][_0x238e51],_0x49cbdd()[_0x1994dc('0x230a')](_0x4b7e46[_0x1994dc('0x1827')][_0x460524],_0x12ce3e));}}function _0x41b2fa(_0x11e22c){const _0x3e7978=_0x49659a;_0xae27c8['show'](_0xae27c8[_0x3e7978('0x99f')]()[_0x3e7978('0x2f4')](!![])[_0x3e7978('0x24d3')](_0x3e7978('0x5b8'))[_0x3e7978('0x211f')](_0x3e7978('0xf9f'))['ok']('Ok')[_0x3e7978('0x104f')](_0x11e22c));}function _0x4a7ca1(_0x5ad7de,_0x45df27,_0x2789e8){const _0x201043=_0x49659a;_0x45df27>=0x0&&_0x49cbdd()[_0x201043('0x1ced')](_0x5ad7de[_0x45df27],_0x49cbdd()['pick'](_0x2789e8,_0x12ce3e));}function _0x1e3b8f(_0x3632d2){const _0xdda9ac=_0x49659a,_0x411b0b=_0x49cbdd()['findIndex'](_0x4b7e46[_0xdda9ac('0x19cb')],['id',_0x3632d2['id']]),_0x239e2f=_0x49cbdd()[_0xdda9ac('0x1f4c')](_0x4b7e46[_0xdda9ac('0x1827')],['id',_0x3632d2['id']]);_0x4a7ca1(_0x4b7e46[_0xdda9ac('0x19cb')],_0x411b0b,_0x3632d2),_0x4a7ca1(_0x4b7e46['rpcTrunks'],_0x239e2f,_0x3632d2);}let _0x5bde38=!![],_0x1e05a2=0x1;_0x16cc41[_0x49659a('0x620')]('vm.query.filter',function(_0x2fe47e,_0x12caba){const _0x5bd1f2=_0x49659a;_0x5bde38?_0x12d928(function(){_0x5bde38=![];}):(!_0x12caba&&(_0x1e05a2=_0x4b7e46['query'][_0x5bd1f2('0x115a')]),_0x2fe47e!==_0x12caba&&(_0x4b7e46[_0x5bd1f2('0x826')][_0x5bd1f2('0x115a')]=0x1),!_0x2fe47e&&(_0x4b7e46[_0x5bd1f2('0x826')][_0x5bd1f2('0x115a')]=_0x1e05a2),_0x4b7e46['getTrunks']());});function _0x2b5e4e(_0x34beac){const _0x31e509=_0x49659a;_0x4b7e46[_0x31e509('0x335')]=_0x34beac[_0x31e509('0x335')],_0x4b7e46['trunks']=_0x34beac?_0x34beac['rows']?_0x34beac[_0x31e509('0x2319')]:[]:[],_0x18be5f();}function _0xa3f85d(){const _0x232129=_0x49659a;_0x4b7e46[_0x232129('0x826')][_0x232129('0xf19')]=(_0x4b7e46[_0x232129('0x826')][_0x232129('0x115a')]-0x1)*_0x4b7e46['query']['limit'],_0x11a134[_0x232129('0x1ba2')](_0x232129('0x20bf'))?_0x4b7e46[_0x232129('0x1691')]=_0x122731[_0x232129('0x252a')][_0x232129('0x1c53')](_0x4b7e46[_0x232129('0x826')],_0x2b5e4e)[_0x232129('0x1af5')]:(_0x4b7e46[_0x232129('0x826')]['id']=_0x4b7e46[_0x232129('0xdeb')]['id'],_0x4b7e46[_0x232129('0x826')][_0x232129('0x16f8')]=_0x232129('0x18f1'),_0x4b7e46[_0x232129('0x1691')]=_0x122731[_0x232129('0xdeb')][_0x232129('0x2447')](_0x4b7e46[_0x232129('0x826')],_0x2b5e4e)[_0x232129('0x1af5')]);}_0x16cc41[_0x49659a('0x207c')](_0x49659a('0x2b4'),function(){const _0x2118ae=_0x49659a;_0x45f071[_0x2118ae('0x1c65')](_0x2118ae('0x1704'));});function _0x317ec0(_0x2e20cc,_0x421f7c){const _0x41bb79=_0x49659a;_0x546628['go'](_0x41bb79('0xccf'),{'id':_0x421f7c['id']});}}const _0x17adee=_0x2a0f5c,_0x313eb7=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/realtime/realtime.html/realtime.html',_0x93df8e=_0x4cf2bc['p']+_0x4376d8('0x2441'),_0x36152b=_0x4cf2bc['p']+_0x4376d8('0x20ce'),_0xb991c4=_0x4cf2bc['p']+_0x4376d8('0x907'),_0x3c5980=_0x4cf2bc['p']+_0x4376d8('0x28bb'),_0x3971c6=_0x4cf2bc['p']+_0x4376d8('0x1562'),_0x37bde5=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/realtime/abandonedcalls/view.html/view.html',_0x204e5d=_0x4cf2bc['p']+_0x4376d8('0xb88'),_0x48cfad=_0x4cf2bc['p']+_0x4376d8('0xf06');_0x134bca[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x134bca(_0x4afdbd){const _0x5f2224=_0x4376d8;_0x4afdbd['state'](_0x5f2224('0xa6c'),{'url':_0x5f2224('0x1dc1'),'views':{'content@app':{'templateUrl':_0x313eb7,'controller':'VoiceRealtimeController\x20as\x20vm'}},'resolve':{'userProfile':['apiResolver',_0x5f2224('0x1885'),function(_0x28ebd6,_0x35545e){const _0x38a0f1=_0x5f2224;return _0x35545e[_0x38a0f1('0x1ba2')]('admin')?null:_0x28ebd6['resolve'](_0x38a0f1('0x235d'),{'fields':'id,name,crudPermissions','id':_0x35545e['getCurrentUser']()[_0x38a0f1('0x1e76')]});}],'userProfileSection':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x393c21,_0x49bf10){const _0x3cb3d9=_0x5f2224;return _0x49bf10['hasRole'](_0x3cb3d9('0x20bf'))?null:_0x393c21['resolve'](_0x3cb3d9('0x23e7'),{'fields':_0x3cb3d9('0x1134'),'userProfileId':_0x49bf10[_0x3cb3d9('0x2831')]()[_0x3cb3d9('0x1e76')],'sectionId':0x19b});}]},'authenticate':!![],'permissionId':0x19b})[_0x5f2224('0x1b9a')](_0x5f2224('0x19a2'),{'url':_0x5f2224('0x1a85'),'controller':'AgentsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x93df8e,'resolve':{'pauses':[_0x5f2224('0x177'),function(_0x55b420){const _0xb14785=_0x5f2224;return _0x55b420[_0xb14785('0x898')](_0xb14785('0x13db'),{'nolimit':!![]});}],'agents':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x1fab63,_0x26311e){const _0x2a716c=_0x5f2224;return _0x26311e[_0x2a716c('0x1ba2')](_0x2a716c('0x20bf'))?_0x1fab63[_0x2a716c('0x898')]('user@get',{'fields':_0x2a716c('0xb31'),'role':_0x2a716c('0x684'),'sort':'fullname','nolimit':!![]}):_0x1fab63[_0x2a716c('0x898')]('userProfile@getResources',{'id':_0x26311e[_0x2a716c('0x2831')]()[_0x2a716c('0x1e76')],'section':_0x2a716c('0x2157'),'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':_0x2a716c('0x684'),'sort':_0x2a716c('0xea6'),'nolimit':!![]});}],'userProfile':[_0x5f2224('0x177'),'Auth',function(_0x27e1a5,_0x412ffc){const _0x437534=_0x5f2224;return _0x412ffc[_0x437534('0x1ba2')]('admin')?null:_0x27e1a5[_0x437534('0x898')](_0x437534('0x235d'),{'fields':_0x437534('0x8d3'),'id':_0x412ffc[_0x437534('0x2831')]()[_0x437534('0x1e76')]});}],'userProfileSection':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x5c21e4,_0x4ef770){const _0x55c339=_0x5f2224;return _0x4ef770[_0x55c339('0x1ba2')](_0x55c339('0x20bf'))?null:_0x5c21e4['resolve'](_0x55c339('0x23e7'),{'fields':_0x55c339('0x1134'),'userProfileId':_0x4ef770[_0x55c339('0x2831')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x5f2224('0x177'),function(_0x4cf2f9){const _0x20d8f6=_0x5f2224;return _0x4cf2f9[_0x20d8f6('0x898')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x19b})['state']('app.voice.realtime.telephones',{'url':_0x5f2224('0x691'),'controller':_0x5f2224('0xcc9'),'templateUrl':_0x36152b,'resolve':{'telephones':[_0x5f2224('0x177'),'Auth',function(_0x474367,_0x543e08){const _0x1e8497=_0x5f2224;return _0x543e08[_0x1e8497('0x1ba2')](_0x1e8497('0x20bf'))?_0x474367[_0x1e8497('0x898')]('user@get',{'fields':_0x1e8497('0x2199'),'role':_0x1e8497('0x21b5'),'sort':_0x1e8497('0x1ac6'),'limit':0xa,'offset':0x0}):_0x474367['resolve']('userProfile@getResources',{'id':_0x543e08[_0x1e8497('0x2831')]()[_0x1e8497('0x1e76')],'section':_0x1e8497('0x778'),'fields':'id,fullname,userpic,internal','role':_0x1e8497('0x21b5'),'sort':_0x1e8497('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x5f2224('0x177'),'Auth',function(_0x1be9e2,_0x370009){const _0x119b07=_0x5f2224;return _0x370009[_0x119b07('0x1ba2')]('admin')?null:_0x1be9e2['resolve'](_0x119b07('0x235d'),{'fields':_0x119b07('0x8d3'),'id':_0x370009[_0x119b07('0x2831')]()[_0x119b07('0x1e76')]});}],'userProfileSection':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x546afa,_0x59a05d){const _0x1f1ea8=_0x5f2224;return _0x59a05d['hasRole']('admin')?null:_0x546afa[_0x1f1ea8('0x898')]('userProfileSection@get',{'fields':_0x1f1ea8('0x1134'),'userProfileId':_0x59a05d[_0x1f1ea8('0x2831')]()[_0x1f1ea8('0x1e76')],'sectionId':0xcb});}],'rpcTelephones':[_0x5f2224('0x177'),function(_0x14f9b9){const _0x45f51c=_0x5f2224;return _0x14f9b9[_0x45f51c('0x898')](_0x45f51c('0x22d2'));}]},'authenticate':!![],'permissionId':0x19b})[_0x5f2224('0x1b9a')](_0x5f2224('0x417'),{'url':_0x5f2224('0x1439'),'controller':_0x5f2224('0x1517'),'templateUrl':_0xb991c4,'resolve':{'trunks':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x162d35,_0x1d9d2a){const _0x1a67f4=_0x5f2224;return _0x1d9d2a['hasRole'](_0x1a67f4('0x20bf'))?_0x162d35[_0x1a67f4('0x898')](_0x1a67f4('0x1bbc'),{'fields':_0x1a67f4('0x12d2'),'active':!![],'sort':_0x1a67f4('0x1ac6'),'limit':0xa,'offset':0x0}):_0x162d35[_0x1a67f4('0x898')](_0x1a67f4('0x1164'),{'id':_0x1d9d2a[_0x1a67f4('0x2831')]()[_0x1a67f4('0x1e76')],'section':_0x1a67f4('0x18f1'),'fields':_0x1a67f4('0x12d2'),'active':!![],'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x5f2224('0x177'),'Auth',function(_0x261778,_0x1f1b0c){const _0x40893a=_0x5f2224;return _0x1f1b0c[_0x40893a('0x1ba2')](_0x40893a('0x20bf'))?null:_0x261778['resolve']('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x1f1b0c[_0x40893a('0x2831')]()[_0x40893a('0x1e76')]});}],'userProfileSection':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x5bef4e,_0x168cb5){const _0x7ca076=_0x5f2224;return _0x168cb5['hasRole'](_0x7ca076('0x20bf'))?null:_0x5bef4e['resolve'](_0x7ca076('0x23e7'),{'fields':_0x7ca076('0x1134'),'userProfileId':_0x168cb5[_0x7ca076('0x2831')]()['userProfileId'],'sectionId':0x3f3});}],'rpcTrunks':[_0x5f2224('0x177'),function(_0x2fbfe6){const _0x17de71=_0x5f2224;return _0x2fbfe6[_0x17de71('0x898')](_0x17de71('0x4d7'));}]},'authenticate':!![],'permissionId':0x19b})[_0x5f2224('0x1b9a')](_0x5f2224('0x2729'),{'url':_0x5f2224('0x1520'),'controller':_0x5f2224('0x1610'),'templateUrl':_0x3c5980,'resolve':{'queues':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x3b57a1,_0xe4d0af){const _0x268a68=_0x5f2224;return _0xe4d0af[_0x268a68('0x1ba2')](_0x268a68('0x20bf'))?_0x3b57a1[_0x268a68('0x898')]('voiceQueue@get',{'type':_0x268a68('0x1e77'),'sort':_0x268a68('0x1ac6'),'limit':0xa,'offset':0x0}):_0x3b57a1[_0x268a68('0x898')](_0x268a68('0x1164'),{'id':_0xe4d0af['getCurrentUser']()[_0x268a68('0x1e76')],'section':'VoiceQueues','channel':_0x268a68('0x1fe1'),'type':_0x268a68('0x1e77'),'sort':_0x268a68('0x1ac6'),'limit':0xa,'page':0x1});}],'userProfile':[_0x5f2224('0x177'),'Auth',function(_0x5b6f69,_0x5ca5c9){const _0x79f6b8=_0x5f2224;return _0x5ca5c9[_0x79f6b8('0x1ba2')](_0x79f6b8('0x20bf'))?null:_0x5b6f69[_0x79f6b8('0x898')]('userProfile@get',{'fields':_0x79f6b8('0x8d3'),'id':_0x5ca5c9[_0x79f6b8('0x2831')]()[_0x79f6b8('0x1e76')]});}],'userProfileSection':['apiResolver',_0x5f2224('0x1885'),function(_0x3a0255,_0x442125){const _0x2783db=_0x5f2224;return _0x442125['hasRole'](_0x2783db('0x20bf'))?null:_0x3a0255[_0x2783db('0x898')](_0x2783db('0x23e7'),{'fields':_0x2783db('0x1134'),'userProfileId':_0x442125['getCurrentUser']()[_0x2783db('0x1e76')],'sectionId':0x191});}],'rpcQueues':[_0x5f2224('0x177'),function(_0x47d681){const _0x47b7a2=_0x5f2224;return _0x47d681['resolve'](_0x47b7a2('0x1cfe'));}]},'authenticate':!![],'permissionId':0x19b})[_0x5f2224('0x1b9a')](_0x5f2224('0x18fd'),{'url':_0x5f2224('0x25a0'),'controller':'QueueCallsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x3971c6,'resolve':{'agents':['apiResolver',_0x5f2224('0x1885'),function(_0x2f7b75,_0x507d1e){const _0x4609a1=_0x5f2224;return _0x507d1e[_0x4609a1('0x1ba2')](_0x4609a1('0x20bf'))?_0x2f7b75[_0x4609a1('0x898')](_0x4609a1('0x181a'),{'fields':_0x4609a1('0x1f23'),'role':'agent','nolimit':!![]}):_0x2f7b75[_0x4609a1('0x898')](_0x4609a1('0x1164'),{'id':_0x507d1e[_0x4609a1('0x2831')]()[_0x4609a1('0x1e76')],'section':'Agents','fields':_0x4609a1('0x1f23'),'role':_0x4609a1('0x684'),'nolimit':!![]});}],'queues':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x26793d,_0x493f2a){const _0x44e503=_0x5f2224;return _0x493f2a[_0x44e503('0x1ba2')](_0x44e503('0x20bf'))?_0x26793d['resolve'](_0x44e503('0xa5a'),{'type':_0x44e503('0x1e77'),'sort':_0x44e503('0x1ac6'),'nolimit':!![]}):_0x26793d[_0x44e503('0x898')](_0x44e503('0x1164'),{'id':_0x493f2a[_0x44e503('0x2831')]()['userProfileId'],'section':_0x44e503('0x2068'),'channel':_0x44e503('0x1fe1'),'type':'inbound','sort':_0x44e503('0x1ac6'),'nolimit':!![]});}],'userProfile':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0xf3cba0,_0x27fb89){const _0x59e38a=_0x5f2224;return _0x27fb89[_0x59e38a('0x1ba2')]('admin')?null:_0xf3cba0['resolve'](_0x59e38a('0x235d'),{'fields':_0x59e38a('0x8d3'),'id':_0x27fb89[_0x59e38a('0x2831')]()[_0x59e38a('0x1e76')]});}],'userProfileSection':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x963110,_0x16256a){const _0x48fcd2=_0x5f2224;return _0x16256a['hasRole'](_0x48fcd2('0x20bf'))?null:_0x963110[_0x48fcd2('0x898')](_0x48fcd2('0x23e7'),{'fields':_0x48fcd2('0x1134'),'userProfileId':_0x16256a['getCurrentUser']()[_0x48fcd2('0x1e76')],'sectionId':0x191});}],'rpcVoiceQueuesChannels':[_0x5f2224('0x177'),function(_0x25c37a){const _0x2294e3=_0x5f2224;return _0x25c37a[_0x2294e3('0x898')]('rpc@getVoiceQueuesChannels');}]},'authenticate':!![],'permissionId':0x19b})[_0x5f2224('0x1b9a')]('app.voice.realtime.abandonedcalls',{'url':_0x5f2224('0x6c3'),'controller':'AbandonedCallsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x37bde5,'resolve':{'agents':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x899ab,_0x51023b){const _0x46a64e=_0x5f2224;return _0x51023b[_0x46a64e('0x1ba2')](_0x46a64e('0x20bf'))?_0x899ab[_0x46a64e('0x898')]('user@get',{'fields':_0x46a64e('0x1f23'),'role':_0x46a64e('0x684'),'nolimit':!![]}):_0x899ab[_0x46a64e('0x898')](_0x46a64e('0x1164'),{'id':_0x51023b['getCurrentUser']()[_0x46a64e('0x1e76')],'section':_0x46a64e('0x2157'),'fields':_0x46a64e('0x1f23'),'role':_0x46a64e('0x684'),'nolimit':!![]});}],'queues':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x281b21,_0x376437){const _0x33aca9=_0x5f2224;return _0x376437['hasRole'](_0x33aca9('0x20bf'))?_0x281b21[_0x33aca9('0x898')](_0x33aca9('0xa5a'),{'type':'inbound','sort':'-updatedAt','nolimit':!![]}):_0x281b21[_0x33aca9('0x898')](_0x33aca9('0x1164'),{'id':_0x376437['getCurrentUser']()[_0x33aca9('0x1e76')],'section':_0x33aca9('0x2068'),'channel':'voice','type':_0x33aca9('0x1e77'),'sort':_0x33aca9('0x1ac6'),'nolimit':!![]});}],'dispositions':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x57fa06,_0x421b2d){const _0x5d75ed=_0x5f2224;return _0x421b2d[_0x5d75ed('0x1ba2')]('admin')?_0x57fa06[_0x5d75ed('0x898')](_0x5d75ed('0x18d5'),{'fields':_0x5d75ed('0x25b5'),'sort':_0x5d75ed('0x1ac6'),'MailAccountId':_0x5d75ed('0x9bb'),'FaxAccountId':_0x5d75ed('0x9bb'),'SmsAccountId':_0x5d75ed('0x9bb'),'WhatsappAccountId':_0x5d75ed('0x9bb'),'OpenchannelAccountId':_0x5d75ed('0x9bb'),'ChatWebsiteId':_0x5d75ed('0x9bb'),'ListId':_0x5d75ed('0x9bb'),'nolimit':!![]}):_0x57fa06['resolve']('userProfile@getResources',{'id':_0x421b2d[_0x5d75ed('0x2831')]()[_0x5d75ed('0x1e76')],'section':_0x5d75ed('0x1fa7'),'fields':_0x5d75ed('0xe5b'),'sort':_0x5d75ed('0x1ac6'),'MailAccountId':_0x5d75ed('0x9bb'),'FaxAccountId':_0x5d75ed('0x9bb'),'SmsAccountId':_0x5d75ed('0x9bb'),'WhatsappAccountId':_0x5d75ed('0x9bb'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x5d75ed('0x9bb'),'ListId':_0x5d75ed('0x9bb'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x5f2224('0x1885'),function(_0x42c339,_0x5c1414){const _0x3fd1ef=_0x5f2224;return _0x5c1414['hasRole'](_0x3fd1ef('0x20bf'))?null:_0x42c339[_0x3fd1ef('0x898')](_0x3fd1ef('0x235d'),{'fields':_0x3fd1ef('0x8d3'),'id':_0x5c1414[_0x3fd1ef('0x2831')]()[_0x3fd1ef('0x1e76')]});}],'userProfileSection':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x446260,_0x4a0cbb){const _0x24babd=_0x5f2224;return _0x4a0cbb['hasRole']('admin')?null:_0x446260[_0x24babd('0x898')](_0x24babd('0x23e7'),{'fields':_0x24babd('0x1134'),'userProfileId':_0x4a0cbb['getCurrentUser']()[_0x24babd('0x1e76')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x19b})[_0x5f2224('0x1b9a')](_0x5f2224('0x1a9d'),{'url':_0x5f2224('0x24e7'),'controller':_0x5f2224('0x904'),'templateUrl':_0x204e5d,'resolve':{'queues':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0xeaebd9,_0x3e67bd){const _0x416746=_0x5f2224;return _0x3e67bd[_0x416746('0x1ba2')]('admin')?_0xeaebd9['resolve'](_0x416746('0xa5a'),{'type':_0x416746('0x1e77'),'fields':_0x416746('0x12d2'),'sort':_0x416746('0x1ac6'),'limit':0xa,'offset':0x0}):_0xeaebd9['resolve']('userProfile@getResources',{'id':_0x3e67bd[_0x416746('0x2831')]()[_0x416746('0x1e76')],'section':'VoiceQueues','channel':'voice','type':_0x416746('0x1e77'),'sort':_0x416746('0x1ac6'),'nolimit':!![]});}],'userProfile':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x36f2c1,_0x32920e){const _0x308caa=_0x5f2224;return _0x32920e[_0x308caa('0x1ba2')](_0x308caa('0x20bf'))?null:_0x36f2c1['resolve'](_0x308caa('0x235d'),{'fields':'id,name,crudPermissions','id':_0x32920e[_0x308caa('0x2831')]()[_0x308caa('0x1e76')]});}],'userProfileSection':[_0x5f2224('0x177'),_0x5f2224('0x1885'),function(_0x3e3392,_0x13ccc3){const _0x11949f=_0x5f2224;return _0x13ccc3[_0x11949f('0x1ba2')]('admin')?null:_0x3e3392[_0x11949f('0x898')](_0x11949f('0x23e7'),{'fields':_0x11949f('0x1134'),'userProfileId':_0x13ccc3[_0x11949f('0x2831')]()[_0x11949f('0x1e76')],'sectionId':0x191});}],'rpcQueues':[_0x5f2224('0x177'),function(_0x51246e){const _0x12d96d=_0x5f2224;return _0x51246e[_0x12d96d('0x898')](_0x12d96d('0x1cfe'));}]},'authenticate':!![],'permissionId':0x19b})[_0x5f2224('0x1b9a')](_0x5f2224('0xb21'),{'url':'/outbound_calls','controller':'OutboundCallsVoiceRealtimeController\x20as\x20vm','templateUrl':_0x48cfad,'resolve':{'rpcCalls':[_0x5f2224('0x177'),function(_0x5367c8){const _0x5e524d=_0x5f2224;return _0x5367c8['resolve'](_0x5e524d('0x2341'));}]},'authenticate':!![],'permissionId':0x19b});}angular[_0x4376d8('0x11c4')](_0x4376d8('0xa6c'),[])[_0x4376d8('0x1980')](_0x134bca)[_0x4376d8('0x5ce')]('AbandonedCallsVoiceRealtimeController',_0x372675)[_0x4376d8('0x5ce')](_0x4376d8('0x12f4'),_0xf443a4)['controller'](_0x4376d8('0x26e0'),_0x17d910)[_0x4376d8('0x5ce')](_0x4376d8('0x10f2'),_0xda2f2f)[_0x4376d8('0x5ce')](_0x4376d8('0x173d'),_0x4fa6bd)[_0x4376d8('0x5ce')]('QueuesVoiceRealtimeController',_0x375b83)['factory'](_0x4376d8('0x628'),_0x1e70b4)[_0x4376d8('0x5ce')]('VoiceRealtimeController',_0x32786b)[_0x4376d8('0x5ce')](_0x4376d8('0x64f'),_0x13a5eb)[_0x4376d8('0x5ce')](_0x4376d8('0x11db'),_0x17adee);const _0x2b428d=_0x4cf2bc['p']+_0x4376d8('0xbb0');_0x56e555['$inject']=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),'$mdSidenav',_0x4376d8('0x14f6'),'$document','$timeout',_0x4376d8('0x28da'),_0x4376d8('0x2a6'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x56e555(_0x31a310,_0x4613c2,_0x3fc28e,_0x4e0707,_0x7e3e37,_0x19272b,_0x42cad0,_0x50ecaa,_0x356b4c,_0x337622,_0x3011fe,_0x59b0c3,_0x310e24,_0x47ca4f,_0x67cd3c,_0x306f24,_0x2a6bfe){const _0x4e86d7=_0x4376d8,_0x255a03=this;_0x255a03[_0x4e86d7('0x1d11')]=_0x306f24,_0x255a03['setting']=_0x2a6bfe,_0x255a03[_0x4e86d7('0x197c')]=_0x67cd3c[_0x4e86d7('0x2831')](),_0x255a03[_0x4e86d7('0x2a6')]=_0x356b4c||{'count':0x0,'rows':[]},_0x255a03[_0x4e86d7('0xdeb')]=_0x337622,_0x255a03[_0x4e86d7('0x383')]=_0x3011fe&&_0x3011fe[_0x4e86d7('0x335')]==0x1?_0x3011fe[_0x4e86d7('0x2319')][0x0]:null,_0x255a03[_0x4e86d7('0x103e')]=_0x67cd3c[_0x4e86d7('0x17a9')](_0x255a03[_0x4e86d7('0x383')]?_0x255a03[_0x4e86d7('0x383')][_0x4e86d7('0x103e')]:null),_0x255a03[_0x4e86d7('0x23c3')]=_0x4e86d7('0x2a6'),_0x255a03[_0x4e86d7('0x26a1')]='',_0x255a03[_0x4e86d7('0x24e1')]=null,_0x255a03[_0x4e86d7('0x8b6')]=[],_0x255a03[_0x4e86d7('0x826')]={'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':_0x4e86d7('0x1ac6'),'limit':0xa,'page':0x1},_0x255a03[_0x4e86d7('0x26d5')]=_0x49cbdd()['keyBy']([{'option':_0x4e86d7('0x6cb'),'value':_0x4e86d7('0xcf8')},{'option':'B:\x20Instead\x20of\x20whispering\x20on\x20a\x20single\x20channel\x20barge\x20in\x20on\x20both\x20channels\x20involved\x20in\x20the\x20call.','value':_0x4e86d7('0x185')},{'option':_0x4e86d7('0x98e'),'value':_0x4e86d7('0x23e8')},{'option':_0x4e86d7('0x7ec'),'value':_0x4e86d7('0x159c')},{'option':_0x4e86d7('0xf9b'),'value':_0x4e86d7('0x1004')},{'option':_0x4e86d7('0x274b'),'value':_0x4e86d7('0x53b')},{'option':_0x4e86d7('0x28d7'),'value':_0x4e86d7('0x2e5')},{'option':'w:\x20Enable\x20whisper\x20mode,\x20so\x20the\x20spying\x20channel\x20can\x20talk\x20to\x20the\x20spied-on\x20channel.','value':'\x27w\x27'},{'option':_0x4e86d7('0x1a94'),'value':_0x4e86d7('0xb46')}],function(_0x2eb9cc){const _0x570a53=_0x4e86d7;return _0x49cbdd()['replace'](_0x2eb9cc[_0x570a53('0x175b')],new RegExp('\x27','g'),'');}),_0x255a03[_0x4e86d7('0x244d')]=_0x49cbdd()[_0x4e86d7('0x8de')]([{'option':_0x4e86d7('0x8f4'),'value':'\x27wav\x27'},{'option':'gsm','value':'\x27gsm\x27'},{'option':_0x4e86d7('0x1daa'),'value':_0x4e86d7('0x2689')}],function(_0x1ccefa){const _0x118dc0=_0x4e86d7;return _0x49cbdd()[_0x118dc0('0x737')](_0x1ccefa[_0x118dc0('0x175b')],new RegExp('\x27','g'),'');}),_0x255a03['editdialog']=_0x219a28,_0x255a03[_0x4e86d7('0xbf4')]=_0x1e577a,_0x255a03[_0x4e86d7('0x130d')]=_0x29885f,_0x255a03[_0x4e86d7('0x2622')]=_0x56f0c4,_0x255a03[_0x4e86d7('0x2af')]=_0x33e593,_0x255a03[_0x4e86d7('0x25f2')]=_0x55fe93,_0x255a03[_0x4e86d7('0xe23')]=_0x337025,_0x255a03['deleteSelectedChanSpies']=_0x1759d2,_0x255a03[_0x4e86d7('0x1f3a')]=_0x2122e6,_0x255a03[_0x4e86d7('0xe0f')]=_0x17c07d;function _0x219a28(_0x5d4766,_0x545585){const _0x2e8987=_0x4e86d7;_0x7e3e37[_0x2e8987('0x28e2')]({'controller':_0x2e8987('0x115'),'controllerAs':'vm','templateUrl':_0x2b428d,'parent':angular['element'](_0x19272b[_0x2e8987('0x13aa')]),'targetEvent':_0x545585,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x5d4766,'chanSpies':_0x255a03[_0x2e8987('0x2a6')][_0x2e8987('0x2319')],'license':_0x255a03[_0x2e8987('0x1d11')],'setting':null,'crudPermissions':_0x255a03['crudPermissions']}});}function _0x1e577a(_0x5d8b42,_0x2741b9){const _0x37fccf=_0x4e86d7,_0x105618=_0x7e3e37[_0x37fccf('0x1121')]()[_0x37fccf('0x24d3')](_0x37fccf('0x5e1')+_0x49cbdd()['startCase'](_0x37fccf('0x2569'))+'?')[_0x37fccf('0x211f')](_0x37fccf('0xa53')+(_0x5d8b42['name']||_0x37fccf('0x2569'))+'
'+_0x37fccf('0xe9f'))[_0x37fccf('0x2095')](_0x37fccf('0x12ab'))[_0x37fccf('0x104f')](_0x2741b9)['ok']('OK')[_0x37fccf('0x1d47')](_0x37fccf('0x28a0'));_0x7e3e37[_0x37fccf('0x28e2')](_0x105618)[_0x37fccf('0x17e7')](function(){_0x55fe93(_0x5d8b42);},function(){const _0x612127=_0x37fccf;console[_0x612127('0x1d63')](_0x612127('0x28a0'));});}let _0x44e3d9=!![],_0x3ca1af=0x1;_0x31a310[_0x4e86d7('0x620')](_0x4e86d7('0x3ed'),function(_0x51c55b,_0x39e87b){const _0x5dc1fe=_0x4e86d7;_0x44e3d9?_0x42cad0(function(){_0x44e3d9=![];}):(!_0x39e87b&&(_0x3ca1af=_0x255a03['query']['page']),_0x51c55b!==_0x39e87b&&(_0x255a03['query'][_0x5dc1fe('0x115a')]=0x1),!_0x51c55b&&(_0x255a03[_0x5dc1fe('0x826')][_0x5dc1fe('0x115a')]=_0x3ca1af),_0x255a03['getChanSpies']());});function _0x29885f(_0xdbfb31){const _0x39e5b0=_0x4e86d7;_0x255a03[_0x39e5b0('0x2a6')]=_0xdbfb31||{'count':0x0,'rows':[]};}function _0x56f0c4(){const _0x23df2a=_0x4e86d7;_0x255a03['query'][_0x23df2a('0xf19')]=(_0x255a03[_0x23df2a('0x826')][_0x23df2a('0x115a')]-0x1)*_0x255a03[_0x23df2a('0x826')][_0x23df2a('0x193b')],_0x67cd3c[_0x23df2a('0x1ba2')](_0x23df2a('0x20bf'))?_0x255a03['promise']=_0x59b0c3[_0x23df2a('0x1122')][_0x23df2a('0x1c53')](_0x255a03[_0x23df2a('0x826')],_0x29885f)[_0x23df2a('0x1af5')]:(_0x255a03['query']['id']=_0x255a03[_0x23df2a('0xdeb')]['id'],_0x255a03['query'][_0x23df2a('0x16f8')]=_0x23df2a('0x39'),_0x255a03[_0x23df2a('0x1691')]=_0x59b0c3[_0x23df2a('0xdeb')][_0x23df2a('0x2447')](_0x255a03[_0x23df2a('0x826')],_0x29885f)['$promise']);}function _0x33e593(_0x573fea,_0x38b64a){const _0x1cef6e=_0x4e86d7;_0x7e3e37['show']({'controller':_0x1cef6e('0x115'),'controllerAs':'vm','templateUrl':_0x2b428d,'parent':angular[_0x1cef6e('0x1ce1')](_0x19272b[_0x1cef6e('0x13aa')]),'targetEvent':_0x573fea,'clickOutsideToClose':!![],'locals':{'chanSpy':_0x38b64a,'chanSpies':_0x255a03[_0x1cef6e('0x2a6')][_0x1cef6e('0x2319')],'license':_0x255a03[_0x1cef6e('0x1d11')],'setting':_0x255a03[_0x1cef6e('0x1aeb')],'crudPermissions':_0x255a03['crudPermissions']}});}function _0x55fe93(_0x162572){const _0x353296=_0x4e86d7;_0x59b0c3['voiceChanSpy'][_0x353296('0x1da6')]({'id':_0x162572['id']})[_0x353296('0x1af5')]['then'](function(){const _0xc089eb=_0x353296;_0x49cbdd()['remove'](_0x255a03['chanSpies'][_0xc089eb('0x2319')],{'id':_0x162572['id']}),_0x255a03['chanSpies']['count']-=0x1,!_0x255a03[_0xc089eb('0x2a6')][_0xc089eb('0x2319')][_0xc089eb('0x1f73')]&&_0x255a03[_0xc089eb('0x2622')](),_0x47ca4f['success']({'title':_0x49cbdd()[_0xc089eb('0x1c98')]('chanSpy')+_0xc089eb('0x2673'),'msg':_0x162572[_0xc089eb('0x2aa')]?_0x162572[_0xc089eb('0x2aa')]+_0xc089eb('0x149f'):''});})[_0x353296('0x16df')](function(_0x466d34){const _0x1d3350=_0x353296;if(_0x466d34[_0x1d3350('0x1457')]&&_0x466d34[_0x1d3350('0x1457')][_0x1d3350('0x73e')]&&_0x466d34['data'][_0x1d3350('0x73e')][_0x1d3350('0x1f73')]){_0x255a03[_0x1d3350('0x73e')]=_0x466d34['data'][_0x1d3350('0x73e')]||[{'message':_0x466d34[_0x1d3350('0x9b6')](),'type':_0x1d3350('0x17f')}];for(let _0xbcee54=0x0;_0xbcee54<_0x466d34[_0x1d3350('0x1457')][_0x1d3350('0x73e')][_0x1d3350('0x1f73')];_0xbcee54++){_0x47ca4f[_0x1d3350('0x1db9')]({'title':_0x466d34[_0x1d3350('0x1457')][_0x1d3350('0x73e')][_0xbcee54][_0x1d3350('0x412')],'msg':_0x466d34[_0x1d3350('0x1457')][_0x1d3350('0x73e')][_0xbcee54][_0x1d3350('0x1603')]});}}else _0x47ca4f['error']({'title':_0x466d34['status']?'API:'+_0x466d34[_0x1d3350('0x11c5')]+_0x1d3350('0x16e4')+_0x466d34[_0x1d3350('0x1833')]:_0x1d3350('0x17f'),'msg':_0x466d34['data']?JSON[_0x1d3350('0x678')](_0x466d34[_0x1d3350('0x1457')][_0x1d3350('0x1603')]):_0x466d34['message']||_0x466d34[_0x1d3350('0x9b6')]()});});}function _0x337025(){const _0x3cc9f9=angular['copy'](_0x255a03['selectedChanSpies']);return _0x255a03['selectedChanSpies']=[],_0x3cc9f9;}function _0x1759d2(_0xafe53){const _0x5c6204=_0x4e86d7,_0x23febb=_0x7e3e37[_0x5c6204('0x1121')]()['title'](_0x5c6204('0x2181'))['htmlContent'](_0x5c6204('0xa53')+_0x255a03['selectedChanSpies'][_0x5c6204('0x1f73')]+_0x5c6204('0x145a')+'\x20will\x20be\x20deleted.')[_0x5c6204('0x2095')]('delete\x20chanSpys')[_0x5c6204('0x104f')](_0xafe53)['ok']('OK')[_0x5c6204('0x1d47')]('CANCEL');_0x7e3e37[_0x5c6204('0x28e2')](_0x23febb)['then'](function(){const _0x2b40a0=_0x5c6204;_0x255a03['selectedChanSpies'][_0x2b40a0('0xccd')](function(_0xc9d555){_0x55fe93(_0xc9d555);}),_0x255a03[_0x2b40a0('0x8b6')]=[];});}function _0x2122e6(){const _0x3aded0=_0x4e86d7;_0x255a03[_0x3aded0('0x8b6')]=[];}function _0x17c07d(){const _0x2fd2e0=_0x4e86d7;_0x255a03[_0x2fd2e0('0x8b6')]=_0x255a03[_0x2fd2e0('0x2a6')][_0x2fd2e0('0x2319')];}}const _0x45ea0a=_0x56e555;_0x32a0e5[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty','chanSpies','chanSpy',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x32a0e5(_0xfa634,_0x42b5c1,_0x1af6ca,_0x1606df,_0x340b55,_0x536e84,_0x47dbfb,_0x470963,_0x385413,_0x11bff8,_0x10c236,_0x51daf5,_0x57c8c1,_0x3179f3){const _0x4165dc=_0x4376d8,_0x3562d8=this;_0x3562d8[_0x4165dc('0x197c')]=_0x10c236[_0x4165dc('0x2831')](),_0x3562d8['errors']=[],_0x3562d8[_0x4165dc('0x1aeb')]=_0x57c8c1,_0x3562d8[_0x4165dc('0x1d11')]=_0x51daf5,_0x3562d8['crudPermissions']=_0x3179f3,_0x3562d8['hasModulePermissions']={},_0x3562d8['passwordPattern']=_0x3562d8['setting']&&_0x3562d8['setting'][_0x4165dc('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3562d8['title']='VOICE.EDIT_CHANSPY',_0x3562d8['chanSpy']=angular[_0x4165dc('0x14e5')](_0x385413),_0x3562d8['chanSpies']=_0x470963,_0x3562d8[_0x4165dc('0x102b')]=![];!_0x3562d8['chanSpy']&&(_0x3562d8['chanSpy']={'recordingFormat':_0x4165dc('0x8f4')},_0x3562d8[_0x4165dc('0x24d3')]=_0x4165dc('0x21b1'),_0x3562d8[_0x4165dc('0x102b')]=!![]);_0x3562d8[_0x4165dc('0xe3d')]=_0x17f0e6,_0x3562d8[_0x4165dc('0x2300')]=_0x22f9b1,_0x3562d8['deletechanSpy']=_0xb831d6,_0x3562d8[_0x4165dc('0x1300')]=_0x5d90bf,_0x3562d8['closeDialog']=_0x2cb8a9;function _0x17f0e6(){const _0x135c47=_0x4165dc;_0x3562d8['errors']=[],_0x11bff8[_0x135c47('0x1122')][_0x135c47('0x2439')](_0x3562d8['chanSpy'])[_0x135c47('0x1af5')][_0x135c47('0x17e7')](function(_0x5b3494){const _0x70a56d=_0x135c47;_0x3562d8[_0x70a56d('0x2a6')][_0x70a56d('0x1893')](_0x5b3494[_0x70a56d('0x16b2')]()),_0x47dbfb[_0x70a56d('0x130d')]({'title':_0x70a56d('0x1d65'),'msg':_0x3562d8[_0x70a56d('0x2569')][_0x70a56d('0x2aa')]?_0x3562d8['chanSpy'][_0x70a56d('0x2aa')]+_0x70a56d('0x15a'):''}),_0x2cb8a9(_0x5b3494);})[_0x135c47('0x16df')](function(_0x65725f){const _0x157e98=_0x135c47;if(_0x65725f[_0x157e98('0x1457')]&&_0x65725f[_0x157e98('0x1457')][_0x157e98('0x73e')]&&_0x65725f['data'][_0x157e98('0x73e')][_0x157e98('0x1f73')]){_0x3562d8[_0x157e98('0x73e')]=_0x65725f[_0x157e98('0x1457')][_0x157e98('0x73e')]||[{'message':_0x65725f['toString'](),'type':_0x157e98('0xd71')}];for(let _0x4f4d30=0x0;_0x4f4d30<_0x65725f['data'][_0x157e98('0x73e')]['length'];_0x4f4d30+=0x1){_0x47dbfb[_0x157e98('0x1db9')]({'title':_0x65725f[_0x157e98('0x1457')][_0x157e98('0x73e')][_0x4f4d30][_0x157e98('0x412')],'msg':_0x65725f['data'][_0x157e98('0x73e')][_0x4f4d30][_0x157e98('0x1603')]});}}else _0x47dbfb[_0x157e98('0x1db9')]({'title':_0x65725f[_0x157e98('0x11c5')]?_0x157e98('0x14f7')+_0x65725f[_0x157e98('0x11c5')]+_0x157e98('0x16e4')+_0x65725f[_0x157e98('0x1833')]:'api.voiceChanSpy.save','msg':_0x65725f[_0x157e98('0x1457')]?JSON[_0x157e98('0x678')](_0x65725f['data']['message']):_0x65725f['toString']()});});}function _0x22f9b1(){const _0x529a03=_0x4165dc;_0x3562d8[_0x529a03('0x73e')]=[],_0x11bff8[_0x529a03('0x1122')][_0x529a03('0x27ba')]({'id':_0x3562d8['chanSpy']['id']},_0x3562d8[_0x529a03('0x2569')])['$promise'][_0x529a03('0x17e7')](function(_0x5dbda3){const _0x473462=_0x529a03,_0x1a24bb=_0x49cbdd()[_0x473462('0xe8e')](_0x3562d8['chanSpies'],{'id':_0x5dbda3['id']});_0x1a24bb&&_0x49cbdd()[_0x473462('0x1ced')](_0x1a24bb,_0x49cbdd()['pick'](_0x5dbda3[_0x473462('0x16b2')](),_0x49cbdd()[_0x473462('0x1c0f')](_0x1a24bb))),_0x47dbfb[_0x473462('0x130d')]({'title':'chanSpy\x20properly\x20saved!','msg':_0x3562d8[_0x473462('0x2569')][_0x473462('0x2aa')]?_0x3562d8['chanSpy'][_0x473462('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x2cb8a9(_0x5dbda3);})['catch'](function(_0x33c570){const _0x235171=_0x529a03;if(_0x33c570[_0x235171('0x1457')]&&_0x33c570[_0x235171('0x1457')][_0x235171('0x73e')]&&_0x33c570[_0x235171('0x1457')][_0x235171('0x73e')][_0x235171('0x1f73')]){_0x3562d8[_0x235171('0x73e')]=_0x33c570[_0x235171('0x1457')][_0x235171('0x73e')]||[{'message':_0x33c570['toString'](),'type':_0x235171('0x1820')}];for(let _0x5c5c59=0x0;_0x5c5c59<_0x33c570[_0x235171('0x1457')][_0x235171('0x73e')][_0x235171('0x1f73')];_0x5c5c59++){_0x47dbfb[_0x235171('0x1db9')]({'title':_0x33c570['data'][_0x235171('0x73e')][_0x5c5c59][_0x235171('0x412')],'msg':_0x33c570[_0x235171('0x1457')]['errors'][_0x5c5c59][_0x235171('0x1603')]});}}else _0x47dbfb[_0x235171('0x1db9')]({'title':_0x33c570[_0x235171('0x11c5')]?_0x235171('0x14f7')+_0x33c570[_0x235171('0x11c5')]+_0x235171('0x16e4')+_0x33c570[_0x235171('0x1833')]:_0x235171('0x1820'),'msg':_0x33c570['data']?JSON[_0x235171('0x678')](_0x33c570[_0x235171('0x1457')][_0x235171('0x1603')]):_0x33c570[_0x235171('0x9b6')]()});});}function _0xb831d6(_0x1cca3c){const _0x5b9f7d=_0x4165dc;_0x3562d8['errors']=[];const _0xe39e8f=_0x1606df[_0x5b9f7d('0x1121')]()[_0x5b9f7d('0x24d3')](_0x5b9f7d('0x530'))[_0x5b9f7d('0xd5')](_0x5b9f7d('0xc62'))[_0x5b9f7d('0x2095')](_0x5b9f7d('0x1a9c'))['ok'](_0x5b9f7d('0x304'))[_0x5b9f7d('0x1d47')](_0x5b9f7d('0x1b70'))['targetEvent'](_0x1cca3c);_0x1606df[_0x5b9f7d('0x28e2')](_0xe39e8f)['then'](function(){const _0x2f3a8a=_0x5b9f7d;_0x11bff8[_0x2f3a8a('0x1122')][_0x2f3a8a('0x1da6')]({'id':_0x3562d8[_0x2f3a8a('0x2569')]['id']})[_0x2f3a8a('0x1af5')][_0x2f3a8a('0x17e7')](function(){const _0x1508ea=_0x2f3a8a;_0x49cbdd()[_0x1508ea('0x5f3')](_0x3562d8[_0x1508ea('0x2a6')],{'id':_0x3562d8[_0x1508ea('0x2569')]['id']}),_0x47dbfb[_0x1508ea('0x130d')]({'title':_0x1508ea('0xe9b'),'msg':(_0x3562d8[_0x1508ea('0x2569')][_0x1508ea('0x2aa')]||_0x1508ea('0x2569'))+'\x20has\x20been\x20deleted!'}),_0x2cb8a9(_0x3562d8[_0x1508ea('0x2569')]);})[_0x2f3a8a('0x16df')](function(_0x2112b6){const _0x4c74e7=_0x2f3a8a;if(_0x2112b6[_0x4c74e7('0x1457')]&&_0x2112b6['data'][_0x4c74e7('0x73e')]&&_0x2112b6[_0x4c74e7('0x1457')]['errors']['length']){_0x3562d8[_0x4c74e7('0x73e')]=_0x2112b6[_0x4c74e7('0x1457')][_0x4c74e7('0x73e')]||[{'message':_0x2112b6[_0x4c74e7('0x9b6')](),'type':_0x4c74e7('0x260f')}];for(let _0x5909c1=0x0;_0x5909c1<_0x2112b6[_0x4c74e7('0x1457')][_0x4c74e7('0x73e')][_0x4c74e7('0x1f73')];_0x5909c1++){_0x47dbfb['error']({'title':_0x2112b6[_0x4c74e7('0x1457')][_0x4c74e7('0x73e')][_0x5909c1][_0x4c74e7('0x412')],'msg':_0x2112b6['data'][_0x4c74e7('0x73e')][_0x5909c1][_0x4c74e7('0x1603')]});}}else _0x47dbfb['error']({'title':_0x2112b6[_0x4c74e7('0x11c5')]?_0x4c74e7('0x14f7')+_0x2112b6[_0x4c74e7('0x11c5')]+_0x4c74e7('0x16e4')+_0x2112b6['statusText']:_0x4c74e7('0x260f'),'msg':_0x2112b6[_0x4c74e7('0x1457')]?JSON[_0x4c74e7('0x678')](_0x2112b6['data'][_0x4c74e7('0x1603')]):_0x2112b6['message']||_0x2112b6[_0x4c74e7('0x9b6')]()});});},function(){});}function _0x5d90bf(_0x1f37af){return _0x1f37af===null?undefined:new Date(_0x1f37af);}function _0x2cb8a9(_0x4801ef){const _0x2d7a73=_0x4165dc;_0x1606df[_0x2d7a73('0x212a')](_0x4801ef);}}const _0x356ceb=_0x32a0e5,_0x110b4b=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/contexts/create/dialog.html/dialog.html';_0x5228ea[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0xfb3'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x5228ea(_0x419a65,_0x5548a9,_0x5c2fb4,_0x477861,_0x40a938,_0x2f0606,_0x1128e4,_0x15fc68,_0xc3a955,_0x3438b0,_0x4c47b,_0x9e66c1,_0x5d52fb,_0x87cad1,_0x45474d,_0x15beac,_0x25a978){const _0x43a801=_0x4376d8,_0x3a2e74=this;_0x3a2e74[_0x43a801('0x1d11')]=_0x15beac,_0x3a2e74[_0x43a801('0x1aeb')]=_0x25a978,_0x3a2e74[_0x43a801('0x197c')]=_0x45474d[_0x43a801('0x2831')](),_0x3a2e74[_0x43a801('0xfb3')]=_0xc3a955||{'count':0x0,'rows':[]},_0x3a2e74[_0x43a801('0xdeb')]=_0x3438b0,_0x3a2e74[_0x43a801('0x383')]=_0x4c47b&&_0x4c47b[_0x43a801('0x335')]==0x1?_0x4c47b[_0x43a801('0x2319')][0x0]:null,_0x3a2e74['crudPermissions']=_0x45474d['parseCrudPermissions'](_0x3a2e74['userProfileSection']?_0x3a2e74[_0x43a801('0x383')][_0x43a801('0x103e')]:null),_0x3a2e74[_0x43a801('0x23c3')]=_0x43a801('0xfb3'),_0x3a2e74['listOrder']='',_0x3a2e74[_0x43a801('0x24e1')]=null,_0x3a2e74[_0x43a801('0x1ad4')]=[],_0x3a2e74[_0x43a801('0x826')]={'fields':_0x43a801('0x142d'),'sort':_0x43a801('0x1ac6'),'defaultEntry':'false','limit':0xa,'page':0x1},_0x3a2e74[_0x43a801('0xb32')]=_0x303c24,_0x3a2e74[_0x43a801('0xbf4')]=_0x4cea18,_0x3a2e74[_0x43a801('0x130d')]=_0x3b5e9f,_0x3a2e74[_0x43a801('0xd3f')]=_0x24dfd9,_0x3a2e74[_0x43a801('0x26d1')]=_0x2996da,_0x3a2e74[_0x43a801('0xa03')]=_0x46134b,_0x3a2e74['exportSelectedContexts']=_0xfb5704,_0x3a2e74[_0x43a801('0x16d0')]=_0x35de84,_0x3a2e74[_0x43a801('0x1448')]=_0x3c26ce,_0x3a2e74[_0x43a801('0x25a2')]=_0x19bbec;function _0x303c24(_0x45fdf9,_0x3df295){const _0x3d4109=_0x43a801;_0x40a938[_0x3d4109('0x28e2')]({'controller':_0x3d4109('0x1f46'),'controllerAs':'vm','templateUrl':_0x110b4b,'parent':angular['element'](_0x2f0606[_0x3d4109('0x13aa')]),'targetEvent':_0x3df295,'clickOutsideToClose':!![],'locals':{'context':_0x45fdf9,'contexts':_0x3a2e74[_0x3d4109('0xfb3')][_0x3d4109('0x2319')],'license':_0x3a2e74[_0x3d4109('0x1d11')],'setting':null,'crudPermissions':_0x3a2e74['crudPermissions']}});}function _0x4cea18(_0x15a1fc,_0x9ae101){const _0x389aca=_0x43a801,_0xbadc28=_0x40a938[_0x389aca('0x1121')]()['title'](_0x389aca('0x5e1')+_0x49cbdd()[_0x389aca('0x1c98')](_0x389aca('0x17b3'))+'?')['htmlContent'](_0x389aca('0xa53')+(_0x15a1fc[_0x389aca('0x2aa')]||_0x389aca('0x17b3'))+''+_0x389aca('0xe9f'))[_0x389aca('0x2095')]('delete\x20context')[_0x389aca('0x104f')](_0x9ae101)['ok']('OK')[_0x389aca('0x1d47')]('CANCEL');_0x40a938['show'](_0xbadc28)[_0x389aca('0x17e7')](function(){_0x46134b(_0x15a1fc);},function(){const _0x347585=_0x389aca;console['log'](_0x347585('0x28a0'));});}let _0x4ac722=!![],_0x38f4dc=0x1;_0x419a65['$watch'](_0x43a801('0x3ed'),function(_0x23abfb,_0x1ec25c){const _0x5cc845=_0x43a801;_0x4ac722?_0x1128e4(function(){_0x4ac722=![];}):(!_0x1ec25c&&(_0x38f4dc=_0x3a2e74[_0x5cc845('0x826')][_0x5cc845('0x115a')]),_0x23abfb!==_0x1ec25c&&(_0x3a2e74['query'][_0x5cc845('0x115a')]=0x1),!_0x23abfb&&(_0x3a2e74['query'][_0x5cc845('0x115a')]=_0x38f4dc),_0x3a2e74['getContexts']());});function _0x3b5e9f(_0x586ed5){const _0x342165=_0x43a801;_0x3a2e74[_0x342165('0xfb3')]=_0x586ed5||{'count':0x0,'rows':[]};}function _0x24dfd9(){const _0x25803f=_0x43a801;_0x3a2e74[_0x25803f('0x826')][_0x25803f('0xf19')]=(_0x3a2e74[_0x25803f('0x826')][_0x25803f('0x115a')]-0x1)*_0x3a2e74[_0x25803f('0x826')][_0x25803f('0x193b')],_0x45474d[_0x25803f('0x1ba2')](_0x25803f('0x20bf'))?_0x3a2e74[_0x25803f('0x1691')]=_0x9e66c1[_0x25803f('0xc76')][_0x25803f('0x1c53')](_0x3a2e74[_0x25803f('0x826')],_0x3b5e9f)['$promise']:(_0x3a2e74[_0x25803f('0x826')]['id']=_0x3a2e74[_0x25803f('0xdeb')]['id'],_0x3a2e74[_0x25803f('0x826')][_0x25803f('0x16f8')]='Contexts',_0x3a2e74[_0x25803f('0x1691')]=_0x9e66c1['userProfile'][_0x25803f('0x2447')](_0x3a2e74[_0x25803f('0x826')],_0x3b5e9f)[_0x25803f('0x1af5')]);}function _0x2996da(_0x2ded49,_0x50df35){const _0x22e7eb=_0x43a801;_0x40a938[_0x22e7eb('0x28e2')]({'controller':_0x22e7eb('0x1f46'),'controllerAs':'vm','templateUrl':_0x110b4b,'parent':angular[_0x22e7eb('0x1ce1')](_0x2f0606[_0x22e7eb('0x13aa')]),'targetEvent':_0x2ded49,'clickOutsideToClose':!![],'locals':{'context':_0x50df35,'contexts':_0x3a2e74[_0x22e7eb('0xfb3')][_0x22e7eb('0x2319')],'license':_0x3a2e74[_0x22e7eb('0x1d11')],'setting':_0x3a2e74[_0x22e7eb('0x1aeb')],'crudPermissions':_0x3a2e74['crudPermissions']}});}function _0x46134b(_0x1ac667){const _0x19deed=_0x43a801;_0x9e66c1[_0x19deed('0xc76')][_0x19deed('0x1da6')]({'id':_0x1ac667['id']})[_0x19deed('0x1af5')][_0x19deed('0x17e7')](function(){const _0x1af85c=_0x19deed;_0x49cbdd()[_0x1af85c('0x5f3')](_0x3a2e74[_0x1af85c('0xfb3')][_0x1af85c('0x2319')],{'id':_0x1ac667['id']}),_0x3a2e74['contexts'][_0x1af85c('0x335')]-=0x1,!_0x3a2e74[_0x1af85c('0xfb3')][_0x1af85c('0x2319')]['length']&&_0x3a2e74['getContexts'](),_0x87cad1['success']({'title':_0x49cbdd()[_0x1af85c('0x1c98')](_0x1af85c('0x186c'))+_0x1af85c('0x2673'),'msg':_0x1ac667[_0x1af85c('0x2aa')]?_0x1ac667['name']+_0x1af85c('0x149f'):''});})[_0x19deed('0x16df')](function(_0x195875){const _0xc521b8=_0x19deed;if(_0x195875['data']&&_0x195875[_0xc521b8('0x1457')][_0xc521b8('0x73e')]&&_0x195875[_0xc521b8('0x1457')]['errors']['length']){_0x3a2e74[_0xc521b8('0x73e')]=_0x195875[_0xc521b8('0x1457')]['errors']||[{'message':_0x195875[_0xc521b8('0x9b6')](),'type':'SYSTEM:DELETEvoiceContext'}];for(let _0x194e4f=0x0;_0x194e4f<_0x195875[_0xc521b8('0x1457')]['errors'][_0xc521b8('0x1f73')];_0x194e4f++){_0x87cad1[_0xc521b8('0x1db9')]({'title':_0x195875[_0xc521b8('0x1457')][_0xc521b8('0x73e')][_0x194e4f][_0xc521b8('0x412')],'msg':_0x195875[_0xc521b8('0x1457')][_0xc521b8('0x73e')][_0x194e4f][_0xc521b8('0x1603')]});}}else _0x87cad1['error']({'title':_0x195875[_0xc521b8('0x11c5')]?_0xc521b8('0x14f7')+_0x195875[_0xc521b8('0x11c5')]+'\x20-\x20'+_0x195875[_0xc521b8('0x1833')]:'SYSTEM:DELETEvoiceContext','msg':_0x195875[_0xc521b8('0x1457')]?JSON[_0xc521b8('0x678')](_0x195875[_0xc521b8('0x1457')][_0xc521b8('0x1603')]):_0x195875[_0xc521b8('0x1603')]||_0x195875[_0xc521b8('0x9b6')]()});});}function _0xfb5704(){const _0x1c82ad=_0x43a801,_0x2c4538=angular[_0x1c82ad('0x14e5')](_0x3a2e74['selectedContexts']);return _0x3a2e74[_0x1c82ad('0x1ad4')]=[],_0x2c4538;}function _0x35de84(_0x42ea44){const _0x1b06a4=_0x43a801,_0x52c9ef=_0x40a938[_0x1b06a4('0x1121')]()[_0x1b06a4('0x24d3')](_0x1b06a4('0x2014'))['htmlContent'](''+_0x3a2e74[_0x1b06a4('0x1ad4')][_0x1b06a4('0x1f73')]+_0x1b06a4('0x145a')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1b06a4('0x23c1'))[_0x1b06a4('0x104f')](_0x42ea44)['ok']('OK')[_0x1b06a4('0x1d47')](_0x1b06a4('0x28a0'));_0x40a938[_0x1b06a4('0x28e2')](_0x52c9ef)[_0x1b06a4('0x17e7')](function(){const _0x2786c6=_0x1b06a4;_0x3a2e74[_0x2786c6('0x1ad4')][_0x2786c6('0xccd')](function(_0x3bcae3){_0x46134b(_0x3bcae3);}),_0x3a2e74[_0x2786c6('0x1ad4')]=[];});}function _0x3c26ce(){const _0x2c7499=_0x43a801;_0x3a2e74[_0x2c7499('0x1ad4')]=[];}function _0x19bbec(){const _0x5e7d9e=_0x43a801;_0x3a2e74['selectedContexts']=_0x3a2e74[_0x5e7d9e('0xfb3')][_0x5e7d9e('0x2319')];}}const _0x427a6d=_0x5228ea;_0x466485[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),'contexts',_0x4376d8('0x17b3'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x466485(_0x365b0c,_0x27b1e7,_0x5615cb,_0x433783,_0x47c355,_0x16e6fb,_0xc89663,_0x2b2be2,_0x1eac18,_0x321464,_0x224ae0,_0x5df603,_0x3f3607,_0x54a712){const _0x21195b=_0x4376d8,_0x1e5659=this;_0x1e5659[_0x21195b('0x197c')]=_0x224ae0[_0x21195b('0x2831')](),_0x1e5659[_0x21195b('0x73e')]=[],_0x1e5659[_0x21195b('0x1aeb')]=_0x3f3607,_0x1e5659[_0x21195b('0x1d11')]=_0x5df603,_0x1e5659[_0x21195b('0x103e')]=_0x54a712,_0x1e5659['hasModulePermissions']={},_0x1e5659[_0x21195b('0x1572')]=_0x1e5659['setting']&&_0x1e5659['setting'][_0x21195b('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e5659[_0x21195b('0x24d3')]=_0x21195b('0x24ef'),_0x1e5659['context']=angular[_0x21195b('0x14e5')](_0x1eac18),_0x1e5659['contexts']=_0x2b2be2,_0x1e5659[_0x21195b('0xb4b')]=![];!_0x1e5659[_0x21195b('0x17b3')]&&(_0x1e5659[_0x21195b('0x17b3')]={},_0x1e5659[_0x21195b('0x24d3')]=_0x21195b('0xced'),_0x1e5659[_0x21195b('0xb4b')]=!![]);_0x1e5659[_0x21195b('0x288a')]=_0xb902d1,_0x1e5659[_0x21195b('0x1188')]=_0x36cbd0,_0x1e5659[_0x21195b('0xa03')]=_0x31577d,_0x1e5659[_0x21195b('0x1300')]=_0x11fdf7,_0x1e5659[_0x21195b('0x136e')]=_0x1f664b;function _0xb902d1(){const _0x3d88e3=_0x21195b;_0x1e5659[_0x3d88e3('0x73e')]=[],_0x321464[_0x3d88e3('0xc76')][_0x3d88e3('0x2439')](_0x1e5659[_0x3d88e3('0x17b3')])[_0x3d88e3('0x1af5')][_0x3d88e3('0x17e7')](function(_0x3f22ff){const _0x367e2a=_0x3d88e3;_0x1e5659['contexts'][_0x367e2a('0x1893')](_0x3f22ff[_0x367e2a('0x16b2')]()),_0xc89663[_0x367e2a('0x130d')]({'title':'Context\x20properly\x20created','msg':_0x1e5659[_0x367e2a('0x17b3')][_0x367e2a('0x2aa')]?_0x1e5659[_0x367e2a('0x17b3')][_0x367e2a('0x2aa')]+_0x367e2a('0x15a'):''}),_0x1f664b(_0x3f22ff);})[_0x3d88e3('0x16df')](function(_0x1bf522){const _0x3fc7a0=_0x3d88e3;if(_0x1bf522[_0x3fc7a0('0x1457')]&&_0x1bf522[_0x3fc7a0('0x1457')][_0x3fc7a0('0x73e')]&&_0x1bf522['data'][_0x3fc7a0('0x73e')]['length']){_0x1e5659[_0x3fc7a0('0x73e')]=_0x1bf522[_0x3fc7a0('0x1457')][_0x3fc7a0('0x73e')]||[{'message':_0x1bf522[_0x3fc7a0('0x9b6')](),'type':_0x3fc7a0('0x3c0')}];for(let _0x228f7b=0x0;_0x228f7b<_0x1bf522[_0x3fc7a0('0x1457')][_0x3fc7a0('0x73e')][_0x3fc7a0('0x1f73')];_0x228f7b+=0x1){_0xc89663[_0x3fc7a0('0x1db9')]({'title':_0x1bf522[_0x3fc7a0('0x1457')]['errors'][_0x228f7b][_0x3fc7a0('0x412')],'msg':_0x1bf522['data']['errors'][_0x228f7b]['message']});}}else _0xc89663[_0x3fc7a0('0x1db9')]({'title':_0x1bf522[_0x3fc7a0('0x11c5')]?'API:'+_0x1bf522[_0x3fc7a0('0x11c5')]+_0x3fc7a0('0x16e4')+_0x1bf522[_0x3fc7a0('0x1833')]:_0x3fc7a0('0x3c0'),'msg':_0x1bf522[_0x3fc7a0('0x1457')]?JSON[_0x3fc7a0('0x678')](_0x1bf522[_0x3fc7a0('0x1457')][_0x3fc7a0('0x1603')]):_0x1bf522[_0x3fc7a0('0x9b6')]()});});}function _0x36cbd0(){const _0x44ad7c=_0x21195b;_0x1e5659[_0x44ad7c('0x73e')]=[],_0x321464[_0x44ad7c('0xc76')]['update']({'id':_0x1e5659['context']['id']},_0x1e5659[_0x44ad7c('0x17b3')])[_0x44ad7c('0x1af5')][_0x44ad7c('0x17e7')](function(_0x458e2a){const _0x1bc2e1=_0x44ad7c,_0x2c307f=_0x49cbdd()[_0x1bc2e1('0xe8e')](_0x1e5659[_0x1bc2e1('0xfb3')],{'id':_0x458e2a['id']});_0x2c307f&&_0x49cbdd()['merge'](_0x2c307f,_0x49cbdd()['pick'](_0x458e2a[_0x1bc2e1('0x16b2')](),_0x49cbdd()[_0x1bc2e1('0x1c0f')](_0x2c307f))),_0xc89663[_0x1bc2e1('0x130d')]({'title':_0x1bc2e1('0x1661'),'msg':_0x1e5659[_0x1bc2e1('0x17b3')][_0x1bc2e1('0x2aa')]?_0x1e5659['context']['name']+_0x1bc2e1('0x15ca'):''}),_0x1f664b(_0x458e2a);})['catch'](function(_0x13d853){const _0x1face0=_0x44ad7c;if(_0x13d853['data']&&_0x13d853[_0x1face0('0x1457')][_0x1face0('0x73e')]&&_0x13d853[_0x1face0('0x1457')]['errors']['length']){_0x1e5659[_0x1face0('0x73e')]=_0x13d853['data']['errors']||[{'message':_0x13d853[_0x1face0('0x9b6')](),'type':_0x1face0('0x1a9a')}];for(let _0x139dcc=0x0;_0x139dcc<_0x13d853['data'][_0x1face0('0x73e')][_0x1face0('0x1f73')];_0x139dcc++){_0xc89663[_0x1face0('0x1db9')]({'title':_0x13d853[_0x1face0('0x1457')]['errors'][_0x139dcc][_0x1face0('0x412')],'msg':_0x13d853[_0x1face0('0x1457')][_0x1face0('0x73e')][_0x139dcc][_0x1face0('0x1603')]});}}else _0xc89663[_0x1face0('0x1db9')]({'title':_0x13d853[_0x1face0('0x11c5')]?'API:'+_0x13d853[_0x1face0('0x11c5')]+'\x20-\x20'+_0x13d853[_0x1face0('0x1833')]:'api.voiceContext.update','msg':_0x13d853[_0x1face0('0x1457')]?JSON[_0x1face0('0x678')](_0x13d853[_0x1face0('0x1457')][_0x1face0('0x1603')]):_0x13d853[_0x1face0('0x9b6')]()});});}function _0x31577d(_0x1aaf2a){const _0x13d913=_0x21195b;_0x1e5659[_0x13d913('0x73e')]=[];const _0xbd6886=_0x433783[_0x13d913('0x1121')]()[_0x13d913('0x24d3')]('Are\x20you\x20sure?')[_0x13d913('0xd5')](_0x13d913('0x494'))[_0x13d913('0x2095')](_0x13d913('0x134'))['ok']('Delete')[_0x13d913('0x1d47')](_0x13d913('0x1b70'))[_0x13d913('0x104f')](_0x1aaf2a);_0x433783[_0x13d913('0x28e2')](_0xbd6886)[_0x13d913('0x17e7')](function(){const _0x4f252a=_0x13d913;_0x321464[_0x4f252a('0xc76')][_0x4f252a('0x1da6')]({'id':_0x1e5659[_0x4f252a('0x17b3')]['id']})[_0x4f252a('0x1af5')][_0x4f252a('0x17e7')](function(){const _0x5ef14f=_0x4f252a;_0x49cbdd()[_0x5ef14f('0x5f3')](_0x1e5659[_0x5ef14f('0xfb3')],{'id':_0x1e5659[_0x5ef14f('0x17b3')]['id']}),_0xc89663[_0x5ef14f('0x130d')]({'title':_0x5ef14f('0x1865'),'msg':(_0x1e5659[_0x5ef14f('0x17b3')][_0x5ef14f('0x2aa')]||_0x5ef14f('0x17b3'))+_0x5ef14f('0x149f')}),_0x1f664b(_0x1e5659['context']);})['catch'](function(_0x52908c){const _0x4ea5e6=_0x4f252a;if(_0x52908c[_0x4ea5e6('0x1457')]&&_0x52908c['data'][_0x4ea5e6('0x73e')]&&_0x52908c[_0x4ea5e6('0x1457')]['errors'][_0x4ea5e6('0x1f73')]){_0x1e5659[_0x4ea5e6('0x73e')]=_0x52908c[_0x4ea5e6('0x1457')][_0x4ea5e6('0x73e')]||[{'message':_0x52908c['toString'](),'type':_0x4ea5e6('0x9de')}];for(let _0x37148f=0x0;_0x37148f<_0x52908c['data'][_0x4ea5e6('0x73e')][_0x4ea5e6('0x1f73')];_0x37148f++){_0xc89663['error']({'title':_0x52908c[_0x4ea5e6('0x1457')][_0x4ea5e6('0x73e')][_0x37148f]['type'],'msg':_0x52908c[_0x4ea5e6('0x1457')][_0x4ea5e6('0x73e')][_0x37148f]['message']});}}else _0xc89663[_0x4ea5e6('0x1db9')]({'title':_0x52908c[_0x4ea5e6('0x11c5')]?_0x4ea5e6('0x14f7')+_0x52908c['status']+_0x4ea5e6('0x16e4')+_0x52908c['statusText']:_0x4ea5e6('0x9de'),'msg':_0x52908c[_0x4ea5e6('0x1457')]?JSON[_0x4ea5e6('0x678')](_0x52908c[_0x4ea5e6('0x1457')]['message']):_0x52908c['message']||_0x52908c[_0x4ea5e6('0x9b6')]()});});},function(){});}function _0x11fdf7(_0x3a3a5e){return _0x3a3a5e===null?undefined:new Date(_0x3a3a5e);}function _0x1f664b(_0x3aba23){const _0x1de3f0=_0x21195b;_0x433783[_0x1de3f0('0x212a')](_0x3aba23);}}const _0x45d924=_0x466485;_0x3f3aea[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x330'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x3f3aea(_0x3ad6ef,_0x4b4c63,_0x1b667e,_0x2545b6,_0x2bb99b,_0x19ed59,_0x161250,_0x550fb8,_0x75c5c3,_0x2a9700,_0x3dcdbf,_0x31b9f9,_0x425170,_0x15176d){const _0xaa8fd7=_0x4376d8,_0x4d3127=this;_0x4d3127['currentUser']=_0x3dcdbf[_0xaa8fd7('0x2831')](),_0x4d3127[_0xaa8fd7('0x73e')]=[],_0x4d3127[_0xaa8fd7('0x1aeb')]=_0x425170,_0x4d3127['license']=_0x31b9f9,_0x4d3127[_0xaa8fd7('0x103e')]=_0x15176d,_0x4d3127[_0xaa8fd7('0x6ee')]={},_0x4d3127['passwordPattern']=_0x4d3127['setting']&&_0x4d3127['setting'][_0xaa8fd7('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4d3127[_0xaa8fd7('0x24d3')]=_0xaa8fd7('0x17e2'),_0x4d3127[_0xaa8fd7('0xf58')]=angular[_0xaa8fd7('0x14e5')](_0x75c5c3),_0x4d3127[_0xaa8fd7('0x330')]=_0x550fb8,_0x4d3127[_0xaa8fd7('0x12e1')]=![];!_0x4d3127['inboundroute']&&(_0x4d3127['inboundroute']={'appdata':_0xaa8fd7('0xbc2'),'type':_0xaa8fd7('0x1e77'),'context':_0xaa8fd7('0x4f2')},_0x4d3127[_0xaa8fd7('0x24d3')]=_0xaa8fd7('0x17e3'),_0x4d3127[_0xaa8fd7('0x12e1')]=!![]);_0x4d3127[_0xaa8fd7('0xc6c')]=_0x23b6b4,_0x4d3127['saveInboundRoute']=_0x3e5bd1,_0x4d3127[_0xaa8fd7('0x2519')]=_0x1585fb,_0x4d3127['getDateFromString']=_0x3cb0eb,_0x4d3127[_0xaa8fd7('0x136e')]=_0x443db2,_0x3dcdbf['hasRole'](_0xaa8fd7('0x20bf'))?_0x2a9700[_0xaa8fd7('0xc76')]['get']({'fields':_0xaa8fd7('0x12d2'),'sort':_0xaa8fd7('0x2aa'),'nolimit':_0xaa8fd7('0xe34')})[_0xaa8fd7('0x1af5')][_0xaa8fd7('0x17e7')](function(_0x3b3484){const _0x15446c=_0xaa8fd7;_0x4d3127[_0x15446c('0xfb3')]=_0x3b3484[_0x15446c('0x2319')]||[];})['catch'](function(_0x52f89c){const _0x2a552d=_0xaa8fd7;_0x161250[_0x2a552d('0x1db9')]({'title':_0x52f89c[_0x2a552d('0x11c5')]?'API:'+_0x52f89c[_0x2a552d('0x11c5')]+_0x2a552d('0x16e4')+_0x52f89c[_0x2a552d('0x1833')]:_0x2a552d('0xa2c'),'msg':_0x52f89c[_0x2a552d('0x1457')]?JSON[_0x2a552d('0x678')](_0x52f89c[_0x2a552d('0x1457')]):_0x52f89c[_0x2a552d('0x9b6')]()});}):_0x2a9700[_0xaa8fd7('0xc76')][_0xaa8fd7('0x1c53')]({'fields':_0xaa8fd7('0x12d2'),'sort':_0xaa8fd7('0x2aa'),'nolimit':_0xaa8fd7('0xe34')})[_0xaa8fd7('0x1af5')][_0xaa8fd7('0x17e7')](function(_0x2310f4){const _0x366ab0=_0xaa8fd7;_0x4d3127['contexts']=_0x2310f4[_0x366ab0('0x2319')]||[];})[_0xaa8fd7('0x17e7')](function(){const _0x1c2f90=_0xaa8fd7;return _0x2a9700[_0x1c2f90('0x383')][_0x1c2f90('0x1c53')]({'userProfileId':_0x4d3127[_0x1c2f90('0x197c')]['userProfileId'],'sectionId':0x195})[_0x1c2f90('0x1af5')];})['then'](function(_0x3b682b){const _0x103db4=_0xaa8fd7,_0x206348=_0x3b682b&&_0x3b682b[_0x103db4('0x2319')]?_0x3b682b[_0x103db4('0x2319')][0x0]:null;if(!_0x206348)return _0x2a9700[_0x103db4('0xc76')][_0x103db4('0x1c53')]({'fields':_0x103db4('0x12d2'),'sort':_0x103db4('0x2aa'),'nolimit':_0x103db4('0xe34'),'defaultEntry':0x1})['$promise']['then'](function(_0x1aa9dd){const _0x554bb2=_0x103db4;_0x4d3127[_0x554bb2('0xfb3')]=_0x1aa9dd[_0x554bb2('0x2319')]||[];});else{if(!_0x206348[_0x103db4('0x9e3')])return _0x2a9700[_0x103db4('0x78d')][_0x103db4('0x1c53')]({'sectionId':_0x206348['id']})[_0x103db4('0x1af5')]['then'](function(_0x280b53){const _0x8c9846=_0x103db4,_0x5cf604=_0x49cbdd()[_0x8c9846('0x787')](_0x280b53[_0x8c9846('0x2319')],function(_0x4923fc){const _0x46a60b=_0x8c9846;return _0x49cbdd()[_0x46a60b('0xe8e')](_0x4d3127[_0x46a60b('0xfb3')],{'id':_0x4923fc[_0x46a60b('0x5db')]});});let _0x4f49ef=null;_0x4d3127[_0x8c9846('0xf58')]&&(_0x4f49ef=_0x49cbdd()['find'](_0x4d3127['contexts'],{'name':_0x4d3127[_0x8c9846('0xf58')]['context']}));if(_0x4f49ef&&!_0x49cbdd()[_0x8c9846('0x26f8')](_0x5cf604,['id',_0x4f49ef['id']])){const _0x2e0976=_0x49cbdd()[_0x8c9846('0xe8e')](_0x4d3127['contexts'],{'id':_0x4f49ef['id']});_0x2e0976[_0x8c9846('0xe5c')]=![],_0x5cf604[_0x8c9846('0x269f')](_0x2e0976);}_0x4d3127[_0x8c9846('0xfb3')]=_0x5cf604;});}})[_0xaa8fd7('0x16df')](function(_0x103938){const _0x55124e=_0xaa8fd7;_0x161250[_0x55124e('0x1db9')]({'title':_0x103938[_0x55124e('0x11c5')]?'API:'+_0x103938[_0x55124e('0x11c5')]+_0x55124e('0x16e4')+_0x103938['statusText']:'SYSTEM:GETcontexts','msg':_0x103938[_0x55124e('0x1457')]?JSON[_0x55124e('0x678')](_0x103938['data']):_0x103938[_0x55124e('0x9b6')]()});});function _0x23b6b4(){const _0x3794b9=_0xaa8fd7;_0x4d3127[_0x3794b9('0x73e')]=[],_0x2a9700[_0x3794b9('0x16c2')][_0x3794b9('0x2439')](_0x4d3127[_0x3794b9('0xf58')])['$promise'][_0x3794b9('0x17e7')](function(_0x15188c){const _0x45c7e5=_0x3794b9;_0x4d3127['inboundroutes']['unshift'](_0x15188c[_0x45c7e5('0x16b2')]()),_0x161250['success']({'title':_0x45c7e5('0x19b4'),'msg':_0x4d3127['inboundroute'][_0x45c7e5('0x2aa')]?_0x4d3127[_0x45c7e5('0xf58')][_0x45c7e5('0x2aa')]+_0x45c7e5('0x15a'):''}),_0x443db2(_0x15188c);})[_0x3794b9('0x16df')](function(_0x1e27a8){const _0x274c5d=_0x3794b9;if(_0x1e27a8['data']&&_0x1e27a8['data']['errors']&&_0x1e27a8['data'][_0x274c5d('0x73e')][_0x274c5d('0x1f73')]){_0x4d3127[_0x274c5d('0x73e')]=_0x1e27a8['data']['errors']||[{'message':_0x1e27a8['toString'](),'type':_0x274c5d('0xd7d')}];for(let _0x544911=0x0;_0x544911<_0x1e27a8[_0x274c5d('0x1457')][_0x274c5d('0x73e')][_0x274c5d('0x1f73')];_0x544911+=0x1){_0x161250[_0x274c5d('0x1db9')]({'title':_0x1e27a8[_0x274c5d('0x1457')][_0x274c5d('0x73e')][_0x544911][_0x274c5d('0x412')],'msg':_0x1e27a8[_0x274c5d('0x1457')]['errors'][_0x544911][_0x274c5d('0x1603')]});}}else _0x161250[_0x274c5d('0x1db9')]({'title':_0x1e27a8[_0x274c5d('0x11c5')]?_0x274c5d('0x14f7')+_0x1e27a8[_0x274c5d('0x11c5')]+_0x274c5d('0x16e4')+_0x1e27a8[_0x274c5d('0x1833')]:_0x274c5d('0xd7d'),'msg':_0x1e27a8[_0x274c5d('0x1457')]?JSON[_0x274c5d('0x678')](_0x1e27a8[_0x274c5d('0x1457')][_0x274c5d('0x1603')]):_0x1e27a8[_0x274c5d('0x9b6')]()});});}function _0x3e5bd1(){const _0x5db062=_0xaa8fd7;_0x4d3127[_0x5db062('0x73e')]=[],_0x2a9700[_0x5db062('0x16c2')]['update']({'id':_0x4d3127['inboundroute']['id']},_0x4d3127[_0x5db062('0xf58')])[_0x5db062('0x1af5')][_0x5db062('0x17e7')](function(_0x4a4007){const _0x32b883=_0x5db062,_0x48b7e9=_0x49cbdd()['find'](_0x4d3127[_0x32b883('0x330')],{'id':_0x4a4007['id']});_0x48b7e9&&_0x49cbdd()[_0x32b883('0x1ced')](_0x48b7e9,_0x49cbdd()['pick'](_0x4a4007[_0x32b883('0x16b2')](),_0x49cbdd()['keys'](_0x48b7e9))),_0x161250[_0x32b883('0x130d')]({'title':_0x32b883('0x15a9'),'msg':_0x4d3127['inboundroute']['name']?_0x4d3127[_0x32b883('0xf58')]['name']+_0x32b883('0x15ca'):''}),_0x443db2(_0x4a4007);})[_0x5db062('0x16df')](function(_0x3df94a){const _0x644c2c=_0x5db062;if(_0x3df94a['data']&&_0x3df94a[_0x644c2c('0x1457')]['errors']&&_0x3df94a['data']['errors']['length']){_0x4d3127[_0x644c2c('0x73e')]=_0x3df94a[_0x644c2c('0x1457')][_0x644c2c('0x73e')]||[{'message':_0x3df94a['toString'](),'type':_0x644c2c('0x5d2')}];for(let _0x287754=0x0;_0x287754<_0x3df94a['data']['errors'][_0x644c2c('0x1f73')];_0x287754++){_0x161250[_0x644c2c('0x1db9')]({'title':_0x3df94a['data']['errors'][_0x287754][_0x644c2c('0x412')],'msg':_0x3df94a[_0x644c2c('0x1457')][_0x644c2c('0x73e')][_0x287754]['message']});}}else _0x161250['error']({'title':_0x3df94a['status']?_0x644c2c('0x14f7')+_0x3df94a['status']+_0x644c2c('0x16e4')+_0x3df94a[_0x644c2c('0x1833')]:_0x644c2c('0x5d2'),'msg':_0x3df94a[_0x644c2c('0x1457')]?JSON[_0x644c2c('0x678')](_0x3df94a['data'][_0x644c2c('0x1603')]):_0x3df94a[_0x644c2c('0x9b6')]()});});}function _0x1585fb(_0x9cfe80){const _0x3a2c66=_0xaa8fd7;_0x4d3127[_0x3a2c66('0x73e')]=[];const _0x5bdc1a=_0x2545b6[_0x3a2c66('0x1121')]()[_0x3a2c66('0x24d3')](_0x3a2c66('0x530'))[_0x3a2c66('0xd5')]('The\x20inboundroute\x20will\x20be\x20deleted.')[_0x3a2c66('0x2095')](_0x3a2c66('0x1aef'))['ok'](_0x3a2c66('0x304'))[_0x3a2c66('0x1d47')](_0x3a2c66('0x1b70'))[_0x3a2c66('0x104f')](_0x9cfe80);_0x2545b6['show'](_0x5bdc1a)[_0x3a2c66('0x17e7')](function(){const _0x25abb9=_0x3a2c66;_0x2a9700[_0x25abb9('0x16c2')][_0x25abb9('0x1da6')]({'id':_0x4d3127[_0x25abb9('0xf58')]['id']})[_0x25abb9('0x1af5')][_0x25abb9('0x17e7')](function(){const _0x53215c=_0x25abb9;_0x49cbdd()[_0x53215c('0x5f3')](_0x4d3127['inboundroutes'],{'id':_0x4d3127[_0x53215c('0xf58')]['id']}),_0x161250[_0x53215c('0x130d')]({'title':_0x53215c('0x1bf'),'msg':(_0x4d3127[_0x53215c('0xf58')]['name']||_0x53215c('0xf58'))+_0x53215c('0x149f')}),_0x443db2(_0x4d3127['inboundroute']);})['catch'](function(_0x265645){const _0x4324be=_0x25abb9;if(_0x265645['data']&&_0x265645['data'][_0x4324be('0x73e')]&&_0x265645[_0x4324be('0x1457')][_0x4324be('0x73e')][_0x4324be('0x1f73')]){_0x4d3127['errors']=_0x265645[_0x4324be('0x1457')][_0x4324be('0x73e')]||[{'message':_0x265645[_0x4324be('0x9b6')](),'type':'api.voiceExtension.delete'}];for(let _0x15290e=0x0;_0x15290e<_0x265645[_0x4324be('0x1457')][_0x4324be('0x73e')][_0x4324be('0x1f73')];_0x15290e++){_0x161250[_0x4324be('0x1db9')]({'title':_0x265645[_0x4324be('0x1457')][_0x4324be('0x73e')][_0x15290e]['type'],'msg':_0x265645[_0x4324be('0x1457')][_0x4324be('0x73e')][_0x15290e]['message']});}}else _0x161250[_0x4324be('0x1db9')]({'title':_0x265645[_0x4324be('0x11c5')]?_0x4324be('0x14f7')+_0x265645['status']+_0x4324be('0x16e4')+_0x265645[_0x4324be('0x1833')]:_0x4324be('0xcf6'),'msg':_0x265645[_0x4324be('0x1457')]?JSON['stringify'](_0x265645['data'][_0x4324be('0x1603')]):_0x265645[_0x4324be('0x1603')]||_0x265645[_0x4324be('0x9b6')]()});});},function(){});}function _0x3cb0eb(_0x2a17d9){return _0x2a17d9===null?undefined:new Date(_0x2a17d9);}function _0x443db2(_0x5923bd){const _0x3fcdca=_0xaa8fd7;_0x2545b6[_0x3fcdca('0x212a')](_0x5923bd);}}const _0xa0b1fb=_0x3f3aea,_0x1e8bfd=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/agi/dialog.html/dialog.html',_0x137c06=_0x4cf2bc['p']+_0x4376d8('0x14fd'),_0x3938dd=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/dial/dialog.html/dialog.html',_0x181d00=_0x4cf2bc['p']+_0x4376d8('0xf1b'),_0x3903d9=_0x4cf2bc['p']+_0x4376d8('0xb63'),_0x471be9=_0x4cf2bc['p']+_0x4376d8('0x231b'),_0x50b0c5=_0x4cf2bc['p']+_0x4376d8('0x1ab4'),_0x404752=_0x4cf2bc['p']+_0x4376d8('0x1878'),_0x4d4090=_0x4cf2bc['p']+_0x4376d8('0xa58'),_0x9fde1=_0x4cf2bc['p']+_0x4376d8('0xf9d'),_0x59328f=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/inboundroutes/edit/apps/ringgroup/dialog.html/dialog.html',_0x56e985=_0x4cf2bc['p']+_0x4376d8('0xb93'),_0x4ccab0=_0x4cf2bc['p']+_0x4376d8('0x265e');_0x2e300c['$inject']=['api',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];const _0x2f54a3={'agi':_0x1e8bfd,'custom':_0x137c06,'dial':_0x3938dd,'externaldial':_0x181d00,'goto':_0x3903d9,'hangup':_0x471be9,'internaldial':_0x50b0c5,'interval':_0x404752,'playback':_0x4d4090,'queue':_0x9fde1,'ringgroup':_0x59328f,'set':_0x56e985,'voicemail':_0x4ccab0};function _0x2e300c(_0x435ff3,_0x54139f,_0x54bf64,_0x375112,_0x460fdb){const _0x1e3d47=_0x4376d8,_0x39ba9f=this;_0x39ba9f['currentUser']=_0x460fdb['getCurrentUser'](),_0x39ba9f[_0x1e3d47('0xf58')]={},_0x39ba9f[_0x1e3d47('0x1732')]={'count':0x0,'rows':[]},_0x39ba9f['selectedInboundRouteApps']=[],_0x39ba9f[_0x1e3d47('0x103e')],_0x39ba9f[_0x1e3d47('0x826')]={'sort':'priority'},_0x39ba9f['apps']=_0x49cbdd()[_0x1e3d47('0x1ad1')](_0x49cbdd()[_0x1e3d47('0x1be3')]([{'app':_0x1e3d47('0xaea'),'appType':_0x1e3d47('0x231f'),'types':[_0x1e3d47('0x1256'),_0x1e3d47('0x8fa'),'list'],'fields':[],'isApp':![]},{'app':'Queue','appType':_0x1e3d47('0x1bd'),'context':_0x1e3d47('0x4f2'),'type':_0x1e3d47('0x179a'),'appdata':_0x1e3d47('0xa83'),'icon':'icon-apps','options':'xX','interval':_0x1e3d47('0x20c3'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x1e3d47('0x27c4'),'field':{'name':_0x1e3d47('0x1f64'),'key':'save_name','prefix':_0x1e3d47('0x2662')},'route':_0x1e3d47('0x1f64'),'filters':{'fields':_0x1e3d47('0x584'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3ef}},{'name':_0x1e3d47('0x14c4'),'field':{'name':_0x1e3d47('0x1bd'),'key':_0x1e3d47('0x2aa')},'route':_0x1e3d47('0x1243'),'filters':{'type':_0x1e3d47('0x1e77'),'fields':_0x1e3d47('0x960'),'sort':_0x1e3d47('0x2aa'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':_0x1e3d47('0x1eb2'),'name':_0x1e3d47('0x1bd'),'type':_0x1e3d47('0x1ecc'),'values':_0x1e3d47('0x14c4'),'value':_0x1e3d47('0x661'),'option':_0x1e3d47('0x661'),'required':!![],'param':0x0},{'title':_0x1e3d47('0x1d75'),'name':_0x1e3d47('0x19'),'type':_0x1e3d47('0x132f'),'param':0x1},{'title':_0x1e3d47('0x96a'),'name':_0x1e3d47('0xa8f'),'type':_0x1e3d47('0x132f'),'param':0x2},{'title':_0x1e3d47('0x1a0c'),'name':'sound','type':_0x1e3d47('0x1ecc'),'values':_0x1e3d47('0x27c4'),'value':_0x1e3d47('0x156f'),'option':_0x1e3d47('0x890'),'defaultValues':[{'value':'\x27\x27','option':_0x1e3d47('0x2576')}],'param':0x3},{'title':'Timeout','name':_0x1e3d47('0xd2f'),'type':_0x1e3d47('0x7b8'),'min':0x0,'param':0x4},{'title':'Agi','name':'agi','type':_0x1e3d47('0x132f'),'param':0x5},{'title':_0x1e3d47('0x424'),'name':_0x1e3d47('0x6e1'),'type':_0x1e3d47('0x132f'),'param':0x6},{'title':'GoSub','name':_0x1e3d47('0x1aa9'),'type':_0x1e3d47('0x132f'),'param':0x7},{'title':_0x1e3d47('0xc38'),'name':_0x1e3d47('0x800'),'type':_0x1e3d47('0x132f'),'param':0x8},{'title':_0x1e3d47('0x20f1'),'name':'position','type':_0x1e3d47('0x7b8'),'min':0x0,'param':0x9},{'title':'Answer','name':_0x1e3d47('0xdfa'),'type':_0x1e3d47('0x2317'),'general':!![]}]},{'app':_0x1e3d47('0x590'),'appType':'playback','context':_0x1e3d47('0x4f2'),'type':_0x1e3d47('0x179a'),'icon':_0x1e3d47('0x24a0'),'interval':_0x1e3d47('0x20c3'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x1e3d47('0x27c4'),'field':{'name':'sound','key':_0x1e3d47('0x1138'),'prefix':'/var/opt/motion2/server/files/sounds/converted/'},'route':_0x1e3d47('0x1f64'),'filters':{'fields':_0x1e3d47('0x584'),'sort':_0x1e3d47('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x1e3d47('0x2036'),'name':_0x1e3d47('0x2077'),'type':_0x1e3d47('0x1ecc'),'values':_0x1e3d47('0x27c4'),'value':'\x27/var/opt/motion2/server/files/sounds/converted/{{appdata.save_name}}\x27','option':_0x1e3d47('0x75e'),'required':!![],'param':0x0},{'title':_0x1e3d47('0x1d75'),'name':_0x1e3d47('0x19'),'type':_0x1e3d47('0x132f'),'param':0x1},{'title':_0x1e3d47('0x6b5'),'name':_0x1e3d47('0xdfa'),'type':_0x1e3d47('0x2317'),'general':!![]}]},{'app':_0x1e3d47('0x132'),'appType':_0x1e3d47('0xd56'),'context':_0x1e3d47('0x4f2'),'type':'Inbound','icon':_0x1e3d47('0x24a0'),'interval':_0x1e3d47('0x20c3'),'options':'xX','isApp':!![],'fields':[{'title':_0x1e3d47('0x207b'),'name':'tech','type':'text','required':!![],'param':0x0},{'title':_0x1e3d47('0x1ceb'),'name':'timeout','type':_0x1e3d47('0x7b8'),'min':0x0,'param':0x1},{'title':_0x1e3d47('0x1d75'),'name':'options','type':_0x1e3d47('0x132f'),'param':0x2},{'title':_0x1e3d47('0x96a'),'name':_0x1e3d47('0x101e'),'type':_0x1e3d47('0x132f'),'param':0x3}]},{'app':_0x1e3d47('0x132'),'appType':_0x1e3d47('0x247f'),'context':'from-voip-provider','type':_0x1e3d47('0x179a'),'icon':_0x1e3d47('0x24a0'),'interval':'*,*,*,*','options':'xX','isApp':!![],'extraApi':[{'name':_0x1e3d47('0x12ed'),'field':{'name':_0x1e3d47('0x221e'),'key':_0x1e3d47('0x2aa'),'prefix':'SIP/'},'route':'user','filters':{'fields':_0x1e3d47('0x1635'),'sort':_0x1e3d47('0x2aa'),'nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':'agent'},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':_0x1e3d47('0x24fd'),'name':_0x1e3d47('0x221e'),'type':_0x1e3d47('0x1ecc'),'values':'users','value':'\x27SIP/{{user.name}}\x27','option':_0x1e3d47('0x156a'),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x1e3d47('0x7b8'),'min':0x0,'param':0x1},{'title':_0x1e3d47('0x1d75'),'name':_0x1e3d47('0x19'),'type':'text','param':0x2},{'title':_0x1e3d47('0x96a'),'name':_0x1e3d47('0x101e'),'type':_0x1e3d47('0x132f'),'param':0x3}]},{'app':_0x1e3d47('0x132'),'appType':_0x1e3d47('0x10ec'),'context':'from-voip-provider','type':_0x1e3d47('0x1e77'),'icon':_0x1e3d47('0x24a0'),'interval':_0x1e3d47('0x20c3'),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x1e3d47('0x252a'),'key':_0x1e3d47('0x2aa')},'route':'trunk','filters':{'fields':_0x1e3d47('0x12d2'),'sort':_0x1e3d47('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x1e3d47('0x1bc6'),'name':_0x1e3d47('0x252a'),'type':_0x1e3d47('0x1ecc'),'values':_0x1e3d47('0x19cb'),'value':'trunk.name','option':_0x1e3d47('0x1629'),'required':!![],'param':0x0},{'title':_0x1e3d47('0x101a'),'name':_0x1e3d47('0x2154'),'required':!![],'type':'text'},{'title':'Timeout','name':'timeout','type':_0x1e3d47('0x7b8'),'min':0x0,'param':0x1},{'title':_0x1e3d47('0x1d75'),'name':_0x1e3d47('0x19'),'type':_0x1e3d47('0x132f'),'param':0x2},{'title':_0x1e3d47('0x96a'),'name':'url','type':_0x1e3d47('0x132f'),'param':0x3}]},{'app':_0x1e3d47('0x132'),'appType':_0x1e3d47('0x1da0'),'context':_0x1e3d47('0x4f2'),'type':_0x1e3d47('0x1e77'),'icon':_0x1e3d47('0x24a0'),'interval':_0x1e3d47('0x20c3'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x1e3d47('0x12ed'),'field':{'name':'multipleUsers','key':_0x1e3d47('0x2aa'),'prefix':'SIP/'},'route':_0x1e3d47('0x221e'),'filters':{'fields':_0x1e3d47('0x1635'),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x1e3d47('0x21b5')}]}}],'fields':[{'title':_0x1e3d47('0x24fd'),'name':_0x1e3d47('0x212f'),'type':_0x1e3d47('0x1ecc'),'multiple':!![],'values':_0x1e3d47('0x12ed'),'value':_0x1e3d47('0x1b03'),'option':_0x1e3d47('0xf0b'),'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':'number','min':0x0,'param':0x1},{'title':_0x1e3d47('0x1d75'),'name':_0x1e3d47('0x19'),'type':_0x1e3d47('0x132f'),'param':0x2},{'title':_0x1e3d47('0x96a'),'name':_0x1e3d47('0x101e'),'type':_0x1e3d47('0x132f'),'param':0x3}]},{'app':_0x1e3d47('0x181f'),'alias':_0x1e3d47('0x1be7'),'appType':_0x1e3d47('0x17c6'),'context':_0x1e3d47('0x4f2'),'type':_0x1e3d47('0x1e77'),'icon':_0x1e3d47('0x24a0'),'interval':_0x1e3d47('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x1e3d47('0x20e0'),'field':{'name':_0x1e3d47('0x87c'),'key':_0x1e3d47('0x2aa'),'prefix':_0x1e3d47('0x843')},'route':_0x1e3d47('0x1218'),'filters':{'fields':_0x1e3d47('0x12d2'),'sort':_0x1e3d47('0x2aa'),'nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x1e3d47('0x2149'),'name':_0x1e3d47('0x87c'),'type':_0x1e3d47('0x1ecc'),'values':_0x1e3d47('0x20e0'),'value':'\x27agi://127.0.0.1/square,{{project.name}}\x27','option':_0x1e3d47('0x1883'),'required':!![],'param':0x0}]},{'app':_0x1e3d47('0x1fb0'),'appType':_0x1e3d47('0x229a'),'context':_0x1e3d47('0x4f2'),'type':_0x1e3d47('0x179a'),'icon':'icon-apps','interval':_0x1e3d47('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x1e3d47('0xfb3'),'field':{'name':_0x1e3d47('0x17b3'),'key':_0x1e3d47('0x2aa')},'route':'voiceContext','filters':{'fields':_0x1e3d47('0x12d2'),'sort':'name','nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x1e3d47('0x186c'),'name':_0x1e3d47('0x17b3'),'type':_0x1e3d47('0x1ecc'),'values':_0x1e3d47('0xfb3'),'value':'context.name','option':_0x1e3d47('0x2438'),'required':!![],'param':0x0},{'title':_0x1e3d47('0x717'),'name':_0x1e3d47('0x26c3'),'type':_0x1e3d47('0x132f'),'required':!![],'param':0x1},{'title':'Priority','name':_0x1e3d47('0x1a6d'),'type':'text','required':!![],'param':0x2}]},{'app':_0x1e3d47('0x450'),'appType':'hangup','context':_0x1e3d47('0x4f2'),'type':_0x1e3d47('0x179a'),'icon':_0x1e3d47('0x24a0'),'interval':_0x1e3d47('0x20c3'),'isApp':!![],'fields':[{'title':_0x1e3d47('0xcd0'),'name':_0x1e3d47('0x2077'),'type':_0x1e3d47('0x2897'),'param':0x0,'values':[{'option':_0x1e3d47('0xfe1'),'value':_0x1e3d47('0x1d26')},{'option':_0x1e3d47('0x2647'),'value':'\x2716\x27'},{'option':'HANGUPCAUSE_17','value':'\x2717\x27'},{'option':'HANGUPCAUSE_18','value':_0x1e3d47('0x1462')},{'option':_0x1e3d47('0x1d7b'),'value':'\x2721\x27'},{'option':_0x1e3d47('0x1cf9'),'value':_0x1e3d47('0x7ca')},{'option':'HANGUPCAUSE_27','value':_0x1e3d47('0x1cb3')},{'option':_0x1e3d47('0x27ca'),'value':_0x1e3d47('0x2082')},{'option':_0x1e3d47('0x680'),'value':_0x1e3d47('0x1860')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x1e3d47('0xca'),'appType':_0x1e3d47('0xf2e'),'context':_0x1e3d47('0x4f2'),'type':_0x1e3d47('0x179a'),'separator':'=','icon':_0x1e3d47('0x24a0'),'interval':_0x1e3d47('0x20c3'),'extraApi':[{'name':_0x1e3d47('0xd26'),'field':{'name':_0x1e3d47('0x2aa'),'key':_0x1e3d47('0x2aa')},'route':_0x1e3d47('0xb0a'),'filters':{'fields':'id,name','sort':_0x1e3d47('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x1e3d47('0xd6a'),'name':_0x1e3d47('0x2aa'),'type':_0x1e3d47('0x1ecc'),'values':_0x1e3d47('0xd26'),'value':_0x1e3d47('0x21b9'),'option':_0x1e3d47('0x21b9'),'required':!![],'param':0x0},{'title':'Value','name':_0x1e3d47('0x175b'),'type':'text','required':!![],'param':0x1}]},{'app':null,'appType':'custom','icon':_0x1e3d47('0x24a0'),'type':_0x1e3d47('0x179a'),'interval':_0x1e3d47('0x20c3'),'isApp':!![],'fields':[{'title':_0x1e3d47('0xeea'),'name':'app','type':'text','required':!![],'param':0x0},{'title':_0x1e3d47('0x1271'),'name':'appdata','type':_0x1e3d47('0x132f'),'param':0x1}]},{'app':'Voicemail','appType':_0x1e3d47('0x27c8'),'context':_0x1e3d47('0x4f2'),'icon':'icon-apps','type':_0x1e3d47('0x179a'),'interval':_0x1e3d47('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x1e3d47('0x15f1'),'field':{'name':_0x1e3d47('0x2753'),'key':_0x1e3d47('0x25c6'),'suffix':'@from-voicemail'},'route':'voiceMail','filters':{'fields':_0x1e3d47('0x107a'),'sort':'mailbox','nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x1e3d47('0xda'),'name':_0x1e3d47('0x2753'),'type':_0x1e3d47('0x1ecc'),'values':_0x1e3d47('0x15f1'),'value':_0x1e3d47('0xf'),'option':'voiceMail.mailbox','required':!![],'param':0x0},{'title':_0x1e3d47('0x1d75'),'name':_0x1e3d47('0x19'),'type':_0x1e3d47('0x132f'),'param':0x1}]}],[_0x1e3d47('0x643')]),{'isApp':![]}),_0x39ba9f['list']={'group':{'name':_0x1e3d47('0x2003'),'pull':_0x1e3d47('0x2080')},'animation':0x64,'sort':![]},_0x39ba9f[_0x1e3d47('0x1683')]={'group':{'name':_0x1e3d47('0x22e2'),'put':_0x1e3d47('0x2003')},'animation':0x64,'onAdd':function(_0x3b1142){_0x45c9c5(_0x3b1142,_0x3b1142['newIndex']);},'onSort':function(){_0x39160d();}},_0x39ba9f[_0x1e3d47('0x161d')]=_0x505da8,_0x39ba9f[_0x1e3d47('0x1a20')]=_0x50e1ee,_0x39ba9f[_0x1e3d47('0x1c0e')]=_0x3648a1,_0x39ba9f[_0x1e3d47('0xce8')]=_0x45c9c5,_0x39ba9f[_0x1e3d47('0x1374')]=_0xff98f3,_0x39ba9f['deleteInboundRouteApp']=_0x5540bb,_0x39ba9f['deleteSelectedInboundRouteApps']=_0x5e3c4a,_0x39ba9f[_0x1e3d47('0x107b')]=_0x39160d,_0x39ba9f[_0x1e3d47('0x1a0d')]=_0xd5598;function _0x505da8(_0x98a4c,_0x5c0cb3){const _0x207f11=_0x1e3d47;_0x39ba9f['inboundroute']=_0x98a4c,_0x39ba9f['crudPermissions']=typeof _0x5c0cb3!==_0x207f11('0xfad')?_0x5c0cb3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x39ba9f['applications'][_0x207f11('0xc3c')]=!_0x39ba9f[_0x207f11('0x103e')]['canEdit']?!![]:![],_0x39ba9f[_0x207f11('0x826')][_0x207f11('0x64c')]=_0x98a4c['id'],_0x39ba9f['query'][_0x207f11('0xb08')]=!![],_0x39ba9f[_0x207f11('0x826')][_0x207f11('0x24c6')]=!![],_0x39ba9f[_0x207f11('0x1c0e')](),_0x39ba9f[_0x207f11('0x1a0d')]();}function _0x50e1ee(_0x2463de,_0x2c3c8f,_0xe03ece){const _0x5c0ef3=_0x1e3d47,_0x1eab67=_0x54139f[_0x5c0ef3('0x1121')]()[_0x5c0ef3('0x24d3')](_0x5c0ef3('0x804'))[_0x5c0ef3('0x211f')](_0x5c0ef3('0xa53')+_0x2463de[_0x5c0ef3('0x643')]+''+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5c0ef3('0x37b'))['targetEvent'](_0xe03ece)['ok']('OK')[_0x5c0ef3('0x1d47')]('CANCEL');_0x54139f[_0x5c0ef3('0x28e2')](_0x1eab67)[_0x5c0ef3('0x17e7')](function(){const _0x4262de=_0x5c0ef3;_0x39ba9f[_0x4262de('0x1732')][_0x4262de('0x2319')]['splice'](_0x2c3c8f,0x1),_0x39160d();},function(){console['log']('CANCEL');});}function _0x45c9c5(_0x3f712e,_0x3dec2c){const _0x2f3f03=_0x1e3d47;if(_0x39ba9f['inboundrouteApps'][_0x2f3f03('0x2319')][_0x2f3f03('0x1f73')]){const _0xc46f02=_0x39ba9f[_0x2f3f03('0x1732')][_0x2f3f03('0x2319')][_0x3dec2c]?_0x39ba9f[_0x2f3f03('0x1732')][_0x2f3f03('0x2319')][_0x3dec2c]:_0x39ba9f[_0x2f3f03('0x1732')][_0x2f3f03('0x2319')][0x0],_0x54c11d=(_0xc46f02[_0x2f3f03('0x1c54')]||_0xc46f02['app'])[_0x2f3f03('0x19b')]();_0x54139f[_0x2f3f03('0x28e2')]({'controller':'EditInboundApp'+_0x54c11d+_0x2f3f03('0x1553'),'controllerAs':'vm','templateUrl':_0x2f54a3[_0x54c11d],'parent':angular[_0x2f3f03('0x1ce1')](_0x54bf64[_0x2f3f03('0x13aa')]),'targetEvent':_0x3f712e,'clickOutsideToClose':!![],'locals':{'inboundrouteApp':_0xc46f02,'inboundroute':_0x39ba9f[_0x2f3f03('0xf58')],'crudPermissions':_0x39ba9f[_0x2f3f03('0x103e')]}})['then'](function(_0x26f08f){const _0x3ed904=_0x2f3f03;_0x26f08f&&(_0x26f08f['id']?_0x39ba9f[_0x3ed904('0x1732')][_0x3ed904('0x2319')][_0x3dec2c]=_0x26f08f:_0x39ba9f[_0x3ed904('0x1732')][_0x3ed904('0x2319')]['splice'](_0x3dec2c,0x0,_0x26f08f),_0x39160d());})[_0x2f3f03('0x16df')](function(_0x9c196a){const _0x5174a5=_0x2f3f03;_0x9c196a&&_0x375112[_0x5174a5('0x1db9')]({'title':_0x9c196a[_0x5174a5('0x11c5')]?_0x5174a5('0x14f7')+_0x9c196a['status']+_0x5174a5('0x16e4')+_0x9c196a[_0x5174a5('0x1833')]:'SYSTEM:EDITMODALSHOW','msg':_0x9c196a['data']?JSON[_0x5174a5('0x678')](_0x9c196a[_0x5174a5('0x1457')]):_0x9c196a[_0x5174a5('0x9b6')]()});});}}function _0xff98f3(_0x318875,_0x593f98){const _0x4f8dfd=_0x1e3d47;if(_0x39ba9f[_0x4f8dfd('0x1732')][_0x4f8dfd('0x2319')][_0x4f8dfd('0x1f73')]){const _0x3d9550=_0x39ba9f[_0x4f8dfd('0x1732')][_0x4f8dfd('0x2319')][_0x593f98]?_0x39ba9f[_0x4f8dfd('0x1732')][_0x4f8dfd('0x2319')][_0x593f98]:_0x39ba9f[_0x4f8dfd('0x1732')]['rows'][0x0];_0x54139f[_0x4f8dfd('0x28e2')]({'controller':_0x4f8dfd('0x1dcd'),'controllerAs':'vm','templateUrl':_0x404752,'parent':angular[_0x4f8dfd('0x1ce1')](_0x54bf64[_0x4f8dfd('0x13aa')]),'targetEvent':_0x318875,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3d9550[_0x4f8dfd('0x231f')],'IntervalId':_0x3d9550[_0x4f8dfd('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0x39ba9f[_0x4f8dfd('0x103e')]}})[_0x4f8dfd('0x17e7')](function(_0x58b4ad){const _0x251c3f=_0x4f8dfd;_0x58b4ad&&(_0x3d9550[_0x251c3f('0x231f')]=_0x58b4ad[_0x251c3f('0x231f')]||_0x251c3f('0x20c3'),_0x3d9550[_0x251c3f('0x24a9')]=_0x58b4ad[_0x251c3f('0x24a9')]||null,_0x39160d());});}}function _0x39160d(){const _0x4f2e84=_0x1e3d47,_0x382a69=[_0x4f2e84('0x1bd'),_0x4f2e84('0xec9')];let _0xa8aef=0x2,_0x10574d=[];_0x10574d['push']({'type':_0x4f2e84('0x1e77'),'app':'Set','appdata':_0x4f2e84('0x9e1'),'context':_0x39ba9f['inboundroute'][_0x4f2e84('0x17b3')],'exten':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0xee9')],'priority':_0xa8aef++,'VoiceExtensionId':_0x39ba9f[_0x4f2e84('0xf58')]['id']}),_0x10574d[_0x4f2e84('0x269f')]({'type':_0x4f2e84('0x1e77'),'app':'Set','appdata':_0x4f2e84('0x594'),'context':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0x17b3')],'exten':_0x39ba9f['inboundroute'][_0x4f2e84('0xee9')],'priority':_0xa8aef++,'VoiceExtensionId':_0x39ba9f[_0x4f2e84('0xf58')]['id']}),_0x10574d['push']({'type':_0x4f2e84('0x1e77'),'app':_0x4f2e84('0xca'),'appdata':_0x4f2e84('0x6df'),'context':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0x17b3')],'exten':_0x39ba9f['inboundroute']['exten'],'priority':_0xa8aef++,'VoiceExtensionId':_0x39ba9f['inboundroute']['id']}),_0x10574d[_0x4f2e84('0x269f')]({'type':'inbound','app':'Set','appdata':_0x4f2e84('0x6cf'),'context':_0x39ba9f['inboundroute']['context'],'exten':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0xee9')],'priority':_0xa8aef++,'VoiceExtensionId':_0x39ba9f[_0x4f2e84('0xf58')]['id']});for(let _0x4aa537=0x0,_0x14c941=0x0;_0x4aa537<_0x39ba9f[_0x4f2e84('0x1732')][_0x4f2e84('0x2319')][_0x4f2e84('0x1f73')];_0x4aa537++,_0x14c941=0x0){const _0x2f084a=_0x39ba9f[_0x4f2e84('0x1732')]['rows'][_0x4aa537],_0x3355cb=[],_0x9c0fd0=[];_0x2f084a[_0x4f2e84('0x1be1')]=_0x2f084a[_0x4f2e84('0x231f')]!==_0x4f2e84('0x20c3')?[_0x2f084a['interval']]:_0x2f084a[_0x4f2e84('0x24a9')]?_0x49cbdd()[_0x4f2e84('0x787')](_0x49cbdd()['filter'](_0x39ba9f['intervals']['rows'],{'IntervalId':_0x2f084a[_0x4f2e84('0x24a9')]}),_0x4f2e84('0x231f')):[],_0x2f084a[_0x4f2e84('0x17b3')]=_0x39ba9f[_0x4f2e84('0xf58')]['context'],_0x2f084a[_0x4f2e84('0xee9')]=_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0xee9')];_0x2f084a['type']&&(_0x2f084a[_0x4f2e84('0x412')]=_0x2f084a['type']['toLowerCase']());typeof _0x2f084a[_0x4f2e84('0xdfa')]!==_0x4f2e84('0xfad')&&(_0x382a69[_0x4f2e84('0x24b0')](_0x2f084a['app'][_0x4f2e84('0x19b')]())&&_0x2f084a['appType']!==_0x4f2e84('0x8fa')&&(_0x2f084a[_0x4f2e84('0xdfa')]?(_0x3355cb[_0x4f2e84('0x269f')]({'type':_0x2f084a[_0x4f2e84('0x412')][_0x4f2e84('0x19b')](),'app':_0x4f2e84('0x9f4'),'appdata':_0x4f2e84('0x2731'),'context':_0x39ba9f['inboundroute'][_0x4f2e84('0x17b3')],'exten':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0xee9')],'priority':_0x2f084a[_0x4f2e84('0x1be1')][_0x4f2e84('0x1f73')]+_0xa8aef+_0x14c941++,'VoiceExtensionId':_0x39ba9f[_0x4f2e84('0xf58')]['id']}),_0x3355cb[_0x4f2e84('0x269f')]({'type':_0x2f084a['type'][_0x4f2e84('0x19b')](),'app':_0x4f2e84('0xca'),'appdata':_0x4f2e84('0x1dec'),'context':_0x39ba9f['inboundroute'][_0x4f2e84('0x17b3')],'exten':_0x39ba9f['inboundroute']['exten'],'priority':_0x2f084a[_0x4f2e84('0x1be1')][_0x4f2e84('0x1f73')]+_0xa8aef+_0x14c941++,'VoiceExtensionId':_0x39ba9f['inboundroute']['id']})):(_0x3355cb[_0x4f2e84('0x269f')]({'type':_0x2f084a[_0x4f2e84('0x412')][_0x4f2e84('0x19b')](),'app':_0x4f2e84('0x9f4'),'appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0x17b3')],'exten':_0x39ba9f['inboundroute'][_0x4f2e84('0xee9')],'priority':_0x2f084a[_0x4f2e84('0x1be1')][_0x4f2e84('0x1f73')]+_0xa8aef+_0x14c941++,'VoiceExtensionId':_0x39ba9f[_0x4f2e84('0xf58')]['id']}),_0x3355cb['push']({'type':_0x2f084a[_0x4f2e84('0x412')][_0x4f2e84('0x19b')](),'app':'Set','appdata':_0x4f2e84('0xd44'),'context':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0x17b3')],'exten':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0xee9')],'priority':_0x2f084a[_0x4f2e84('0x1be1')]['length']+_0xa8aef+_0x14c941++,'VoiceExtensionId':_0x39ba9f[_0x4f2e84('0xf58')]['id']}))));for(let _0x4c4191=0x0;_0x4c4191<_0x2f084a[_0x4f2e84('0x1be1')][_0x4f2e84('0x1f73')];_0x4c4191++){const _0x1bb36a=_0xa8aef+_0x2f084a[_0x4f2e84('0x1be1')]['length'],_0x29a67e=_0x4c4191===_0x2f084a[_0x4f2e84('0x1be1')][_0x4f2e84('0x1f73')]-0x1?_0xa8aef+_0x3355cb[_0x4f2e84('0x1f73')]+_0x9c0fd0[_0x4f2e84('0x1f73')]+0x2:_0xa8aef+_0x4c4191+0x1;_0x3355cb[_0x4f2e84('0x2335')](_0x4c4191,0x0,{'type':_0x4f2e84('0x1e77'),'app':_0x4f2e84('0x3e7'),'appdata':_0x2f084a[_0x4f2e84('0x1be1')][_0x4c4191]+'?'+_0x39ba9f['inboundroute'][_0x4f2e84('0x17b3')]+_0x4f2e84('0x69f')+_0x1bb36a+':'+_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0x17b3')]+_0x4f2e84('0x69f')+_0x29a67e,'exten':_0x39ba9f[_0x4f2e84('0xf58')]['exten'],'context':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0x17b3')],'priority':_0xa8aef+_0x4c4191,'VoiceExtensionId':_0x39ba9f['inboundroute']['id']});}_0x2f084a['priority']=_0x3355cb['length']?_0x49cbdd()[_0x4f2e84('0x5e8')](_0x3355cb)[_0x4f2e84('0x1a6d')]+0x1:_0xa8aef,_0xa8aef=(_0x9c0fd0[_0x4f2e84('0x1f73')]?_0x49cbdd()[_0x4f2e84('0x5e8')](_0x9c0fd0)[_0x4f2e84('0x1a6d')]:_0x2f084a['priority'])+0x1,_0x10574d=_0x49cbdd()['concat'](_0x10574d,_0x3355cb,[_0x2f084a],_0x9c0fd0);}_0x10574d[_0x4f2e84('0x269f')]({'type':'inbound','app':_0x4f2e84('0xef6'),'exten':_0x39ba9f[_0x4f2e84('0xf58')][_0x4f2e84('0xee9')],'context':_0x39ba9f[_0x4f2e84('0xf58')]['context'],'priority':_0xa8aef,'VoiceExtensionId':_0x39ba9f[_0x4f2e84('0xf58')]['id']}),_0x435ff3['voiceExtension']['addApplications']({'id':_0x39ba9f['inboundroute']['id']},_0x49cbdd()['sortBy'](_0x10574d,_0x4f2e84('0x1a6d')))[_0x4f2e84('0x1af5')][_0x4f2e84('0x17e7')](function(_0x2d7b4b){const _0x36fa26=_0x4f2e84;_0x39ba9f['inboundrouteApps'][_0x36fa26('0x2319')]=_0x2d7b4b[_0x36fa26('0x2319')];})['catch'](function(_0xa6ce95){console['error'](_0xa6ce95);});}function _0x53f2d5(_0xa7bac6){const _0x1bc04d=_0x1e3d47;_0x39ba9f[_0x1bc04d('0x1732')]=_0xa7bac6||{'count':0x0,'rows':[]};}function _0xd5598(){const _0x1c59f4=_0x1e3d47;return _0x435ff3['interval'][_0x1c59f4('0x1c53')]({'fields':_0x1c59f4('0x828')})['$promise'][_0x1c59f4('0x17e7')](function(_0x2462d6){const _0x629c5a=_0x1c59f4;_0x39ba9f[_0x629c5a('0x1be1')]=_0x2462d6;})[_0x1c59f4('0x16df')](function(_0x545fd7){const _0x633bc4=_0x1c59f4;console[_0x633bc4('0x1db9')](_0x545fd7);});}function _0x3648a1(){const _0x2295fa=_0x1e3d47;_0x39ba9f['promise']=_0x435ff3[_0x2295fa('0x16c2')][_0x2295fa('0x1c53')](_0x39ba9f[_0x2295fa('0x826')],_0x53f2d5)['$promise'];}function _0x5540bb(_0x2bd25b){const _0x3103d9=_0x1e3d47;_0x49cbdd()[_0x3103d9('0x5f3')](_0x39ba9f[_0x3103d9('0x1732')][_0x3103d9('0x2319')],{'id':_0x2bd25b['id']}),_0x39160d(),_0x375112[_0x3103d9('0x130d')]({'title':'App\x20deleted!','msg':_0x2bd25b[_0x3103d9('0x643')]?_0x2bd25b[_0x3103d9('0x643')]+'\x20has\x20been\x20deleted!':''});}function _0x5e3c4a(_0x4d8601){const _0x29214c=_0x1e3d47,_0x414b58=_0x54139f['confirm']()['title'](_0x29214c('0x272a'))['htmlContent'](_0x29214c('0xa53')+_0x39ba9f[_0x29214c('0x82')][_0x29214c('0x1f73')]+'\x20selected'+_0x29214c('0xe9f'))[_0x29214c('0x2095')](_0x29214c('0x362'))['targetEvent'](_0x4d8601)['ok']('OK')[_0x29214c('0x1d47')]('CANCEL');_0x54139f[_0x29214c('0x28e2')](_0x414b58)['then'](function(){const _0x92978f=_0x29214c;_0x39ba9f[_0x92978f('0x82')][_0x92978f('0xccd')](function(_0xc8acb7){const _0x1194f1=_0x92978f;_0x49cbdd()[_0x1194f1('0x5f3')](_0x39ba9f[_0x1194f1('0x1732')][_0x1194f1('0x2319')],{'id':_0xc8acb7['id']});}),_0x39ba9f[_0x92978f('0x82')]=[],_0x39160d();});}}const _0x25aabf=_0x2e300c;_0x34a054[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x143b'),_0x4376d8('0xf58'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x34a054(_0x2365ef,_0x2ff09f,_0x2d139e,_0x526f9d,_0x32c021,_0x215f7f,_0x557873,_0x5bbee2){const _0x548160=_0x4376d8,_0x7723dc=this;_0x7723dc['currentUser']=_0x557873['getCurrentUser'](),_0x7723dc[_0x548160('0x73e')]=[],_0x7723dc['title']='VOICE.EDIT_'+(_0x526f9d[_0x548160('0x1c54')]||_0x526f9d['app'])[_0x548160('0x14e2')](),_0x7723dc[_0x548160('0x17c6')]=angular[_0x548160('0x14e5')](_0x526f9d),_0x7723dc[_0x548160('0x103e')]=_0x5bbee2,_0x7723dc[_0x548160('0x6ee')]={};if(_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2077')])switch(_0x7723dc['agi']['appType']?_0x7723dc[_0x548160('0x17c6')]['appType'][_0x548160('0x19b')]():_0x7723dc['agi'][_0x548160('0x643')][_0x548160('0x19b')]()){case _0x548160('0x8fa'):break;case _0x548160('0x2526'):{const _0x1b1649=_0x7723dc['agi']['appdata'][_0x548160('0x2007')](',');_0x7723dc[_0x548160('0x17c6')][_0x548160('0xdb5')]=_0x1b1649[0x0],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x3e1')]=_0x1b1649[0x1],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x1083')]=_0x1b1649['slice'](0x2,_0x1b1649[_0x548160('0x1f73')])['join'](',');}break;case _0x548160('0x22ac'):{const _0x3ab1c9=_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2077')][_0x548160('0x2007')](',');_0x7723dc[_0x548160('0x17c6')][_0x548160('0x28ab')]=_0x3ab1c9[0x0],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2814')]=_0x3ab1c9[0x1],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x1bc2')]=_0x3ab1c9[0x2],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x3e1')]=_0x3ab1c9[0x3],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x1083')]=_0x3ab1c9[_0x548160('0x275f')](0x4,_0x3ab1c9[_0x548160('0x1f73')])['join'](',');}break;case _0x548160('0x16a9'):{const _0x5c05dd=_0x7723dc[_0x548160('0x17c6')]['appdata'][_0x548160('0x2007')](',');_0x7723dc[_0x548160('0x17c6')][_0x548160('0x1452')]=_0x5c05dd[0x0],_0x7723dc[_0x548160('0x17c6')]['secretaccesskey']=_0x5c05dd[0x1],_0x7723dc[_0x548160('0x17c6')]['lexregion']=_0x5c05dd[0x2],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x4a')]=_0x5c05dd[0x3],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x1083')]=_0x5c05dd['slice'](0x4,_0x5c05dd[_0x548160('0x1f73')])['join'](',');}break;case'autoreply':{const _0x5595b9=_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2077')][_0x548160('0x2007')](',');_0x7723dc['agi'][_0x548160('0x12a6')]=isNaN(_0x5595b9[0x0])?_0x5595b9[0x0]:parseInt(_0x5595b9[0x0],0xa),_0x7723dc[_0x548160('0x17c6')]['text']=_0x5595b9['slice'](0x1,_0x5595b9[_0x548160('0x1f73')])['join'](',');}break;case _0x548160('0x1603'):_0x7723dc['agi'][_0x548160('0x132f')]=_0x7723dc[_0x548160('0x17c6')]['appdata'];break;case'set':_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2aa')]=_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2077')][_0x548160('0x2007')]('=')[0x0],_0x7723dc[_0x548160('0x17c6')][_0x548160('0x175b')]=_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2077')][_0x548160('0x2007')]('=')[0x1];break;case _0x548160('0x17c6'):_0x7723dc[_0x548160('0x17c6')][_0x548160('0x87c')]=_0x7723dc[_0x548160('0x17c6')]['appdata'];break;default:{const _0x35dfc2=_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2077')]['split'](',');_0x7723dc[_0x548160('0x17c6')]['project']=_0x49cbdd()['isEmpty'](_0x35dfc2[0x0])?_0x35dfc2[0x0]:isNaN(_0x35dfc2[0x0])?_0x35dfc2[0x0]:parseInt(_0x35dfc2[0x0],0xa);}break;}else{}_0x7723dc[_0x548160('0x17c6')]['type']&&_0x7723dc[_0x548160('0x17c6')][_0x548160('0x412')][_0x548160('0x19b')]()===_0x548160('0x1ade')&&_0x7723dc[_0x548160('0x17c6')][_0x548160('0x1c54')][_0x548160('0x19b')]()===_0x548160('0x1711')&&(_0x7723dc['agi'][_0x548160('0x11d4')]=_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2154')]?_0x7723dc[_0x548160('0x17c6')][_0x548160('0x2154')][_0x548160('0x2007')]('$')[0x0]:undefined,_0x7723dc['agi'][_0x548160('0x1a8e')]=_0x7723dc[_0x548160('0x17c6')][_0x548160('0x17f4')]?_0x548160('0x1d28')+_0x7723dc[_0x548160('0x17c6')][_0x548160('0x17f4')]:undefined);_0x7723dc[_0x548160('0xd10')]=_0x3bc8d1,_0x7723dc[_0x548160('0x136e')]=_0x286a9d,_0x557873[_0x548160('0x1ba2')]('admin')?_0x215f7f[_0x548160('0x1218')][_0x548160('0x1c53')]({'fields':_0x548160('0x12d2'),'sort':_0x548160('0x2aa'),'nolimit':_0x548160('0xe34')})[_0x548160('0x1af5')][_0x548160('0x17e7')](function(_0xbe6033){const _0x5e2e5f=_0x548160;_0x7723dc[_0x5e2e5f('0x20e0')]=_0xbe6033['rows']||[];})[_0x548160('0x16df')](function(_0x5bc6f5){const _0x86717=_0x548160;_0x2d139e[_0x86717('0x1db9')]({'title':_0x5bc6f5['status']?'API:'+_0x5bc6f5[_0x86717('0x11c5')]+_0x86717('0x16e4')+_0x5bc6f5[_0x86717('0x1833')]:_0x86717('0x13d0'),'msg':_0x5bc6f5[_0x86717('0x1457')]?JSON[_0x86717('0x678')](_0x5bc6f5[_0x86717('0x1457')]):_0x5bc6f5['toString']()});}):_0x215f7f[_0x548160('0x1218')]['get']({'fields':_0x548160('0x12d2'),'sort':_0x548160('0x2aa'),'nolimit':_0x548160('0xe34')})['$promise'][_0x548160('0x17e7')](function(_0xd6a8e2){const _0x3d6624=_0x548160;_0x7723dc[_0x3d6624('0x20e0')]=_0xd6a8e2['rows']||[];})[_0x548160('0x17e7')](function(){const _0x1b0e0b=_0x548160;return _0x215f7f[_0x1b0e0b('0x383')][_0x1b0e0b('0x1c53')]({'userProfileId':_0x7723dc[_0x1b0e0b('0x197c')][_0x1b0e0b('0x1e76')],'sectionId':0x44f})[_0x1b0e0b('0x1af5')];})[_0x548160('0x17e7')](function(_0x194c33){const _0x5ad58d=_0x548160,_0x405a3b=_0x194c33&&_0x194c33[_0x5ad58d('0x2319')]?_0x194c33[_0x5ad58d('0x2319')][0x0]:null;if(!_0x405a3b){const _0xe63d6b=[];let _0x3dea46=null;_0x7723dc[_0x5ad58d('0x17c6')]&&(_0x3dea46=_0x49cbdd()[_0x5ad58d('0xe8e')](_0x7723dc[_0x5ad58d('0x20e0')],{'name':_0x7723dc[_0x5ad58d('0x17c6')][_0x5ad58d('0x87c')]}));for(let _0x1cd3ee=0x0;_0x1cd3ee<_0x7723dc[_0x5ad58d('0x20e0')][_0x5ad58d('0x1f73')];_0x1cd3ee++){_0x3dea46&&_0x7723dc[_0x5ad58d('0x20e0')][_0x1cd3ee]['id']===_0x3dea46['id']&&(_0x7723dc['projects'][_0x1cd3ee][_0x5ad58d('0xe5c')]=![],_0xe63d6b[_0x5ad58d('0x269f')](_0x7723dc['projects'][_0x1cd3ee]));}_0x7723dc[_0x5ad58d('0x20e0')]=_0xe63d6b;}else{if(!_0x405a3b[_0x5ad58d('0x9e3')])return _0x215f7f[_0x5ad58d('0x78d')][_0x5ad58d('0x1c53')]({'sectionId':_0x405a3b['id']})[_0x5ad58d('0x1af5')][_0x5ad58d('0x17e7')](function(_0x4e6ca4){const _0x306072=_0x5ad58d,_0x4a9513=_0x49cbdd()[_0x306072('0x787')](_0x4e6ca4[_0x306072('0x2319')],function(_0x18e187){const _0x6a401f=_0x306072;return _0x49cbdd()[_0x6a401f('0xe8e')](_0x7723dc['projects'],{'id':_0x18e187[_0x6a401f('0x5db')]});});let _0x9b1bfe=null;_0x7723dc['agi']&&(_0x9b1bfe=_0x49cbdd()[_0x306072('0xe8e')](_0x7723dc['projects'],{'name':_0x7723dc[_0x306072('0x17c6')][_0x306072('0x87c')]}));if(_0x9b1bfe&&!_0x49cbdd()[_0x306072('0x26f8')](_0x4a9513,['id',_0x9b1bfe['id']])){const _0x46e46c=_0x49cbdd()['find'](_0x7723dc[_0x306072('0x20e0')],{'id':_0x9b1bfe['id']});_0x46e46c[_0x306072('0xe5c')]=![],_0x4a9513[_0x306072('0x269f')](_0x46e46c);}_0x7723dc[_0x306072('0x20e0')]=_0x4a9513;});}})[_0x548160('0x16df')](function(_0x23481e){const _0x5b23e4=_0x548160;_0x2d139e[_0x5b23e4('0x1db9')]({'title':_0x23481e[_0x5b23e4('0x11c5')]?'API:'+_0x23481e[_0x5b23e4('0x11c5')]+_0x5b23e4('0x16e4')+_0x23481e[_0x5b23e4('0x1833')]:_0x5b23e4('0x27b7'),'msg':_0x23481e[_0x5b23e4('0x1457')]?JSON[_0x5b23e4('0x678')](_0x23481e[_0x5b23e4('0x1457')]):_0x23481e[_0x5b23e4('0x9b6')]()});});function _0x3bc8d1(){const _0x34ca83=_0x548160;_0x7723dc[_0x34ca83('0x73e')]=[];const _0x1fec13=[];_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x412')]&&_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x412')][_0x34ca83('0x19b')]()===_0x34ca83('0x1ade')&&_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x1c54')]===_0x34ca83('0xbdc')&&(_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x2154')]=_0x32c021[_0x34ca83('0x12af')]?(_0x7723dc['agi'][_0x34ca83('0x11d4')]||'')+_0x34ca83('0x2265')+_0x32c021['cutdigits']+'}':(_0x7723dc['agi'][_0x34ca83('0x11d4')]||'')+'${EXTEN}',_0x32c021[_0x34ca83('0x287')]!==_0x34ca83('0x7ee')?_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x19')][_0x34ca83('0x2567')](_0x34ca83('0xa22'))<0x0&&(_0x7723dc['agi']['options']+=_0x34ca83('0xa22')):_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x19')]=_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x19')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x1c54')]&&_0x7723dc['agi'][_0x34ca83('0x1c54')]===_0x34ca83('0x8fa')){}else switch((_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x643')]||_0x7723dc['agi'][_0x34ca83('0x1c54')])[_0x34ca83('0x19b')]()){case _0x34ca83('0xf2e'):_0x7723dc[_0x34ca83('0x17c6')]['appdata']=_0x7723dc['agi'][_0x34ca83('0x2aa')]+'='+_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x175b')];break;case _0x34ca83('0x8fa'):break;default:_0x1fec13[0x0]=_0x7723dc[_0x34ca83('0x17c6')]['project'],_0x7723dc[_0x34ca83('0x17c6')][_0x34ca83('0x2077')]=_0x1fec13[_0x34ca83('0x1eba')](',');}_0x286a9d(_0x7723dc['agi']);}function _0x286a9d(_0xff4f78){const _0x3c7de6=_0x548160;_0x2365ef[_0x3c7de6('0x212a')](_0xff4f78);}}const _0x164097=_0x34a054;_0xaea604['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x143b'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0xaea604(_0x3bad3d,_0x3e8338,_0xc2010a,_0x3033c5,_0x1dbf40,_0x56bd7a,_0x140742,_0x58ebc1){const _0x5435e8=_0x4376d8,_0x293ba8=this;_0x293ba8[_0x5435e8('0x197c')]=_0x140742[_0x5435e8('0x2831')](),_0x293ba8[_0x5435e8('0x73e')]=[],_0x293ba8['title']=_0x5435e8('0x1c6f')+(_0x3033c5[_0x5435e8('0x1c54')]||_0x3033c5['app'])[_0x5435e8('0x14e2')](),_0x293ba8[_0x5435e8('0x8fa')]=angular[_0x5435e8('0x14e5')](_0x3033c5),_0x293ba8[_0x5435e8('0x103e')]=_0x58ebc1,_0x293ba8[_0x5435e8('0x6ee')]={};if(_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x2077')])switch(_0x293ba8[_0x5435e8('0x8fa')]['appType']?_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x1c54')][_0x5435e8('0x19b')]():_0x293ba8['custom']['app'][_0x5435e8('0x19b')]()){case _0x5435e8('0x8fa'):break;case'dialogflow':{const _0x44a488=_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x2077')][_0x5435e8('0x2007')](',');_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0xdb5')]=_0x44a488[0x0],_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x3e1')]=_0x44a488[0x1],_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x1083')]=_0x44a488[_0x5435e8('0x275f')](0x2,_0x44a488[_0x5435e8('0x1f73')])[_0x5435e8('0x1eba')](',');}break;case _0x5435e8('0x22ac'):{const _0x4d2990=_0x293ba8['custom'][_0x5435e8('0x2077')]['split'](',');_0x293ba8['custom'][_0x5435e8('0x28ab')]=_0x4d2990[0x0],_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x2814')]=_0x4d2990[0x1],_0x293ba8['custom'][_0x5435e8('0x1bc2')]=_0x4d2990[0x2],_0x293ba8['custom'][_0x5435e8('0x3e1')]=_0x4d2990[0x3],_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x1083')]=_0x4d2990[_0x5435e8('0x275f')](0x4,_0x4d2990[_0x5435e8('0x1f73')])[_0x5435e8('0x1eba')](',');}break;case _0x5435e8('0x16a9'):{const _0x20851e=_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x2077')][_0x5435e8('0x2007')](',');_0x293ba8['custom'][_0x5435e8('0x1452')]=_0x20851e[0x0],_0x293ba8['custom'][_0x5435e8('0x1a62')]=_0x20851e[0x1],_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x1dcf')]=_0x20851e[0x2],_0x293ba8['custom'][_0x5435e8('0x4a')]=_0x20851e[0x3],_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x1083')]=_0x20851e[_0x5435e8('0x275f')](0x4,_0x20851e['length'])[_0x5435e8('0x1eba')](',');}break;case _0x5435e8('0x96e'):{const _0x4f17a4=_0x293ba8['custom'][_0x5435e8('0x2077')][_0x5435e8('0x2007')](',');_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x12a6')]=isNaN(_0x4f17a4[0x0])?_0x4f17a4[0x0]:parseInt(_0x4f17a4[0x0],0xa),_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x132f')]=_0x4f17a4[_0x5435e8('0x275f')](0x1,_0x4f17a4[_0x5435e8('0x1f73')])[_0x5435e8('0x1eba')](',');}break;case'message':_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x132f')]=_0x293ba8['custom']['appdata'];break;case _0x5435e8('0xf2e'):_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x2aa')]=_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x2077')][_0x5435e8('0x2007')]('=')[0x0],_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x175b')]=_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x2077')][_0x5435e8('0x2007')]('=')[0x1];break;case _0x5435e8('0x17c6'):_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x87c')]=_0x293ba8['custom']['appdata'];break;default:{const _0x2deeeb=_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x2077')][_0x5435e8('0x2007')](',');_0x293ba8[_0x5435e8('0x8fa')]['app']=_0x49cbdd()[_0x5435e8('0x109a')](_0x2deeeb[0x0])?_0x2deeeb[0x0]:isNaN(_0x2deeeb[0x0])?_0x2deeeb[0x0]:parseInt(_0x2deeeb[0x0],0xa),_0x293ba8['custom'][_0x5435e8('0x2077')]=_0x49cbdd()[_0x5435e8('0x109a')](_0x2deeeb[0x1])?_0x2deeeb[0x1]:isNaN(_0x2deeeb[0x1])?_0x2deeeb[0x1]:parseInt(_0x2deeeb[0x1],0xa);}break;}else{}_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x412')]&&_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x412')]['toLowerCase']()===_0x5435e8('0x1ade')&&_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x1c54')][_0x5435e8('0x19b')]()==='outbounddial'&&(_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x11d4')]=_0x293ba8['custom'][_0x5435e8('0x2154')]?_0x293ba8['custom']['phone'][_0x5435e8('0x2007')]('$')[0x0]:undefined,_0x293ba8['custom'][_0x5435e8('0x1a8e')]=_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x17f4')]?_0x5435e8('0x1d28')+_0x293ba8[_0x5435e8('0x8fa')][_0x5435e8('0x17f4')]:undefined);_0x293ba8[_0x5435e8('0xd10')]=_0xeccc1a,_0x293ba8['closeDialog']=_0x58f352;function _0xeccc1a(){const _0x434c3b=_0x5435e8;_0x293ba8[_0x434c3b('0x73e')]=[];const _0x53faab=[];_0x293ba8[_0x434c3b('0x8fa')]['type']&&_0x293ba8[_0x434c3b('0x8fa')]['type'][_0x434c3b('0x19b')]()===_0x434c3b('0x1ade')&&_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x1c54')]===_0x434c3b('0xbdc')&&(_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x2154')]=_0x1dbf40['cutdigits']?(_0x293ba8['custom'][_0x434c3b('0x11d4')]||'')+_0x434c3b('0x2265')+_0x1dbf40['cutdigits']+'}':(_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x11d4')]||'')+'${EXTEN}',_0x1dbf40[_0x434c3b('0x287')]!=='none'?_0x293ba8[_0x434c3b('0x8fa')]['options'][_0x434c3b('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x19')]+=_0x434c3b('0xa22')):_0x293ba8['custom']['options']=_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x19')][_0x434c3b('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x1c54')]&&_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x1c54')]===_0x434c3b('0x8fa')){}else switch((_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x643')]||_0x293ba8[_0x434c3b('0x8fa')]['appType'])[_0x434c3b('0x19b')]()){case _0x434c3b('0xf2e'):_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x2077')]=_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x2aa')]+'='+_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x175b')];break;case _0x434c3b('0x8fa'):break;default:_0x53faab[0x0]=_0x293ba8[_0x434c3b('0x8fa')][_0x434c3b('0x643')],_0x53faab[0x1]=_0x293ba8['custom']['appdata'],_0x293ba8[_0x434c3b('0x8fa')]['appdata']=_0x53faab['join'](',');}_0x58f352(_0x293ba8[_0x434c3b('0x8fa')]);}function _0x58f352(_0x230fde){const _0x4a9578=_0x5435e8;_0x3bad3d[_0x4a9578('0x212a')](_0x230fde);}}const _0x5159d9=_0xaea604;_0x52d3bf['$inject']=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x143b'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x52d3bf(_0x5961d6,_0x55bc49,_0x2ac141,_0x90061f,_0x4bb89d,_0x50111b,_0x5c395d,_0x111ddf){const _0x43adc3=_0x4376d8,_0x3642e3=this;_0x3642e3['currentUser']=_0x5c395d[_0x43adc3('0x2831')](),_0x3642e3[_0x43adc3('0x73e')]=[],_0x3642e3[_0x43adc3('0x24d3')]=_0x43adc3('0x1c6f')+(_0x90061f['appType']||_0x90061f[_0x43adc3('0x643')])[_0x43adc3('0x14e2')](),_0x3642e3[_0x43adc3('0xd56')]=angular['copy'](_0x90061f),_0x3642e3[_0x43adc3('0x103e')]=_0x111ddf,_0x3642e3['hasModulePermissions']={};if(_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x2077')])switch(_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x1c54')]?_0x3642e3[_0x43adc3('0xd56')]['appType'][_0x43adc3('0x19b')]():_0x3642e3['dial']['app'][_0x43adc3('0x19b')]()){case _0x43adc3('0x8fa'):break;case _0x43adc3('0x2526'):{const _0x54d04d=_0x3642e3['dial'][_0x43adc3('0x2077')][_0x43adc3('0x2007')](',');_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0xdb5')]=_0x54d04d[0x0],_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x3e1')]=_0x54d04d[0x1],_0x3642e3['dial']['welcomemessage']=_0x54d04d['slice'](0x2,_0x54d04d[_0x43adc3('0x1f73')])['join'](',');}break;case'dialogflowv2':{const _0x1476c5=_0x3642e3['dial']['appdata'][_0x43adc3('0x2007')](',');_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x28ab')]=_0x1476c5[0x0],_0x3642e3['dial'][_0x43adc3('0x2814')]=_0x1476c5[0x1],_0x3642e3[_0x43adc3('0xd56')]['privateKey']=_0x1476c5[0x2],_0x3642e3[_0x43adc3('0xd56')]['language']=_0x1476c5[0x3],_0x3642e3['dial'][_0x43adc3('0x1083')]=_0x1476c5[_0x43adc3('0x275f')](0x4,_0x1476c5[_0x43adc3('0x1f73')])[_0x43adc3('0x1eba')](',');}break;case _0x43adc3('0x16a9'):{const _0x3ecf75=_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x2077')][_0x43adc3('0x2007')](',');_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x1452')]=_0x3ecf75[0x0],_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x1a62')]=_0x3ecf75[0x1],_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x1dcf')]=_0x3ecf75[0x2],_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x4a')]=_0x3ecf75[0x3],_0x3642e3[_0x43adc3('0xd56')]['welcomemessage']=_0x3ecf75[_0x43adc3('0x275f')](0x4,_0x3ecf75[_0x43adc3('0x1f73')])['join'](',');}break;case'autoreply':{const _0x4d47ec=_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x2077')][_0x43adc3('0x2007')](',');_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x12a6')]=isNaN(_0x4d47ec[0x0])?_0x4d47ec[0x0]:parseInt(_0x4d47ec[0x0],0xa),_0x3642e3[_0x43adc3('0xd56')]['text']=_0x4d47ec[_0x43adc3('0x275f')](0x1,_0x4d47ec[_0x43adc3('0x1f73')])['join'](',');}break;case _0x43adc3('0x1603'):_0x3642e3[_0x43adc3('0xd56')]['text']=_0x3642e3['dial'][_0x43adc3('0x2077')];break;case'set':_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x2aa')]=_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x2077')][_0x43adc3('0x2007')]('=')[0x0],_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x175b')]=_0x3642e3['dial'][_0x43adc3('0x2077')][_0x43adc3('0x2007')]('=')[0x1];break;case _0x43adc3('0x17c6'):_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x87c')]=_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x2077')];break;default:{const _0x207a87=_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x2077')]['split'](',');_0x3642e3[_0x43adc3('0xd56')]['tech']=_0x49cbdd()['isEmpty'](_0x207a87[0x0])?_0x207a87[0x0]:isNaN(_0x207a87[0x0])?_0x207a87[0x0]:parseInt(_0x207a87[0x0],0xa),_0x3642e3[_0x43adc3('0xd56')]['timeout']=_0x49cbdd()['isEmpty'](_0x207a87[0x1])?_0x207a87[0x1]:isNaN(_0x207a87[0x1])?_0x207a87[0x1]:parseInt(_0x207a87[0x1],0xa),_0x3642e3['dial'][_0x43adc3('0x19')]=_0x49cbdd()['isEmpty'](_0x207a87[0x2])?_0x207a87[0x2]:isNaN(_0x207a87[0x2])?_0x207a87[0x2]:parseInt(_0x207a87[0x2],0xa),_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x101e')]=_0x49cbdd()[_0x43adc3('0x109a')](_0x207a87[0x3])?_0x207a87[0x3]:isNaN(_0x207a87[0x3])?_0x207a87[0x3]:parseInt(_0x207a87[0x3],0xa);}break;}else{}_0x3642e3['dial'][_0x43adc3('0x412')]&&_0x3642e3['dial'][_0x43adc3('0x412')][_0x43adc3('0x19b')]()==='outbound'&&_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x1c54')][_0x43adc3('0x19b')]()==='outbounddial'&&(_0x3642e3[_0x43adc3('0xd56')]['prefix']=_0x3642e3['dial'][_0x43adc3('0x2154')]?_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x2154')]['split']('$')[0x0]:undefined,_0x3642e3['dial'][_0x43adc3('0x1a8e')]=_0x3642e3['dial'][_0x43adc3('0x17f4')]?'CALLERID(all)='+_0x3642e3[_0x43adc3('0xd56')][_0x43adc3('0x17f4')]:undefined);_0x3642e3[_0x43adc3('0xd10')]=_0x4266aa,_0x3642e3[_0x43adc3('0x136e')]=_0xc019ce;function _0x4266aa(){const _0x161719=_0x43adc3;_0x3642e3[_0x161719('0x73e')]=[];const _0x1124b7=[];_0x3642e3[_0x161719('0xd56')][_0x161719('0x412')]&&_0x3642e3[_0x161719('0xd56')]['type'][_0x161719('0x19b')]()===_0x161719('0x1ade')&&_0x3642e3['dial'][_0x161719('0x1c54')]===_0x161719('0xbdc')&&(_0x3642e3[_0x161719('0xd56')]['phone']=_0x4bb89d['cutdigits']?(_0x3642e3[_0x161719('0xd56')]['prefix']||'')+_0x161719('0x2265')+_0x4bb89d[_0x161719('0x12af')]+'}':(_0x3642e3['dial'][_0x161719('0x11d4')]||'')+'${EXTEN}',_0x4bb89d['recordingFormat']!==_0x161719('0x7ee')?_0x3642e3[_0x161719('0xd56')][_0x161719('0x19')]['indexOf'](_0x161719('0xa22'))<0x0&&(_0x3642e3['dial'][_0x161719('0x19')]+='U(xcally-mixmonitor-context)'):_0x3642e3[_0x161719('0xd56')][_0x161719('0x19')]=_0x3642e3['dial']['options'][_0x161719('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x3642e3['dial']['appType']&&_0x3642e3['dial'][_0x161719('0x1c54')]==='custom'){}else switch((_0x3642e3[_0x161719('0xd56')][_0x161719('0x643')]||_0x3642e3['dial']['appType'])[_0x161719('0x19b')]()){case'set':_0x3642e3[_0x161719('0xd56')]['appdata']=_0x3642e3[_0x161719('0xd56')][_0x161719('0x2aa')]+'='+_0x3642e3[_0x161719('0xd56')][_0x161719('0x175b')];break;case _0x161719('0x8fa'):break;default:_0x1124b7[0x0]=_0x3642e3[_0x161719('0xd56')][_0x161719('0x201')],_0x1124b7[0x1]=_0x3642e3['dial'][_0x161719('0xd2f')],_0x1124b7[0x2]=_0x3642e3[_0x161719('0xd56')][_0x161719('0x19')],_0x1124b7[0x3]=_0x3642e3[_0x161719('0xd56')][_0x161719('0x101e')],_0x3642e3['dial'][_0x161719('0x2077')]=_0x1124b7[_0x161719('0x1eba')](',');}_0xc019ce(_0x3642e3[_0x161719('0xd56')]);}function _0xc019ce(_0x5d7573){_0x5961d6['hide'](_0x5d7573);}}const _0x116d7c=_0x52d3bf;_0x54464f['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'inboundrouteApp',_0x4376d8('0xf58'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x54464f(_0x469871,_0xe1f7bc,_0x3610a7,_0x366972,_0x28d88f,_0x2ed4b6,_0x556731,_0x3d7f2f){const _0x4c9788=_0x4376d8,_0x214ad9=this;_0x214ad9[_0x4c9788('0x197c')]=_0x556731[_0x4c9788('0x2831')](),_0x214ad9[_0x4c9788('0x73e')]=[],_0x214ad9[_0x4c9788('0x24d3')]=_0x4c9788('0x1c6f')+(_0x366972[_0x4c9788('0x1c54')]||_0x366972[_0x4c9788('0x643')])[_0x4c9788('0x14e2')](),_0x214ad9['externaldial']=angular[_0x4c9788('0x14e5')](_0x366972),_0x214ad9[_0x4c9788('0x103e')]=_0x3d7f2f,_0x214ad9[_0x4c9788('0x6ee')]={};if(_0x214ad9['externaldial'][_0x4c9788('0x2077')])switch(_0x214ad9[_0x4c9788('0x663')]['appType']?_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x1c54')]['toLowerCase']():_0x214ad9['externaldial'][_0x4c9788('0x643')][_0x4c9788('0x19b')]()){case _0x4c9788('0x8fa'):break;case _0x4c9788('0x2526'):{const _0x4a0edc=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2077')][_0x4c9788('0x2007')](',');_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0xdb5')]=_0x4a0edc[0x0],_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x3e1')]=_0x4a0edc[0x1],_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x1083')]=_0x4a0edc[_0x4c9788('0x275f')](0x2,_0x4a0edc[_0x4c9788('0x1f73')])['join'](',');}break;case _0x4c9788('0x22ac'):{const _0x10639f=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2077')][_0x4c9788('0x2007')](',');_0x214ad9['externaldial']['projectId']=_0x10639f[0x0],_0x214ad9[_0x4c9788('0x663')]['clientEmail']=_0x10639f[0x1],_0x214ad9[_0x4c9788('0x663')]['privateKey']=_0x10639f[0x2],_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x3e1')]=_0x10639f[0x3],_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x1083')]=_0x10639f[_0x4c9788('0x275f')](0x4,_0x10639f[_0x4c9788('0x1f73')])['join'](',');}break;case'amazonlex':{const _0x2bf536=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2077')][_0x4c9788('0x2007')](',');_0x214ad9[_0x4c9788('0x663')]['accesskeyid']=_0x2bf536[0x0],_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x1a62')]=_0x2bf536[0x1],_0x214ad9['externaldial'][_0x4c9788('0x1dcf')]=_0x2bf536[0x2],_0x214ad9[_0x4c9788('0x663')]['botname']=_0x2bf536[0x3],_0x214ad9['externaldial']['welcomemessage']=_0x2bf536[_0x4c9788('0x275f')](0x4,_0x2bf536[_0x4c9788('0x1f73')])['join'](',');}break;case _0x4c9788('0x96e'):{const _0x2b6cc7=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2077')][_0x4c9788('0x2007')](',');_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x12a6')]=isNaN(_0x2b6cc7[0x0])?_0x2b6cc7[0x0]:parseInt(_0x2b6cc7[0x0],0xa),_0x214ad9['externaldial'][_0x4c9788('0x132f')]=_0x2b6cc7[_0x4c9788('0x275f')](0x1,_0x2b6cc7['length'])['join'](',');}break;case'message':_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x132f')]=_0x214ad9['externaldial'][_0x4c9788('0x2077')];break;case _0x4c9788('0xf2e'):_0x214ad9['externaldial'][_0x4c9788('0x2aa')]=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2077')][_0x4c9788('0x2007')]('=')[0x0],_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x175b')]=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2077')]['split']('=')[0x1];break;case _0x4c9788('0x17c6'):_0x214ad9['externaldial'][_0x4c9788('0x87c')]=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2077')];break;default:{const _0x25ff2c=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2077')][_0x4c9788('0x2007')](',');_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x252a')]=_0x25ff2c[0x0][_0x4c9788('0x2007')]('/')[0x1],_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2154')]=_0x25ff2c[0x0][_0x4c9788('0x2007')]('/')[0x2],_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0xd2f')]=_0x49cbdd()[_0x4c9788('0x109a')](_0x25ff2c[0x1])?_0x25ff2c[0x1]:isNaN(_0x25ff2c[0x1])?_0x25ff2c[0x1]:parseInt(_0x25ff2c[0x1],0xa),_0x214ad9['externaldial'][_0x4c9788('0x19')]=_0x49cbdd()['isEmpty'](_0x25ff2c[0x2])?_0x25ff2c[0x2]:isNaN(_0x25ff2c[0x2])?_0x25ff2c[0x2]:parseInt(_0x25ff2c[0x2],0xa),_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x101e')]=_0x49cbdd()[_0x4c9788('0x109a')](_0x25ff2c[0x3])?_0x25ff2c[0x3]:isNaN(_0x25ff2c[0x3])?_0x25ff2c[0x3]:parseInt(_0x25ff2c[0x3],0xa);}break;}else{}_0x214ad9['externaldial'][_0x4c9788('0x412')]&&_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x412')][_0x4c9788('0x19b')]()===_0x4c9788('0x1ade')&&_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x1c54')][_0x4c9788('0x19b')]()===_0x4c9788('0x1711')&&(_0x214ad9[_0x4c9788('0x663')]['prefix']=_0x214ad9[_0x4c9788('0x663')]['phone']?_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x2154')][_0x4c9788('0x2007')]('$')[0x0]:undefined,_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x1a8e')]=_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x17f4')]?_0x4c9788('0x1d28')+_0x214ad9[_0x4c9788('0x663')][_0x4c9788('0x17f4')]:undefined);_0x214ad9['saveInboundRouteApp']=_0x589bdb,_0x214ad9[_0x4c9788('0x136e')]=_0x50623e,_0x556731[_0x4c9788('0x1ba2')](_0x4c9788('0x20bf'))?_0x2ed4b6['trunk'][_0x4c9788('0x1c53')]({'fields':_0x4c9788('0x12d2'),'sort':_0x4c9788('0x2aa'),'nolimit':_0x4c9788('0xe34')})['$promise'][_0x4c9788('0x17e7')](function(_0x13fbea){const _0xd1ecb2=_0x4c9788;_0x214ad9['trunks']=_0x13fbea[_0xd1ecb2('0x2319')]||[];})[_0x4c9788('0x16df')](function(_0x18eef6){const _0x196264=_0x4c9788;_0x3610a7[_0x196264('0x1db9')]({'title':_0x18eef6[_0x196264('0x11c5')]?_0x196264('0x14f7')+_0x18eef6[_0x196264('0x11c5')]+_0x196264('0x16e4')+_0x18eef6[_0x196264('0x1833')]:'SYSTEM:GET_TRUNKS','msg':_0x18eef6[_0x196264('0x1457')]?JSON[_0x196264('0x678')](_0x18eef6['data']):_0x18eef6[_0x196264('0x9b6')]()});}):_0x2ed4b6[_0x4c9788('0x252a')][_0x4c9788('0x1c53')]({'fields':_0x4c9788('0x12d2'),'sort':_0x4c9788('0x2aa'),'nolimit':_0x4c9788('0xe34')})[_0x4c9788('0x1af5')][_0x4c9788('0x17e7')](function(_0x11eca0){const _0x34458b=_0x4c9788;_0x214ad9[_0x34458b('0x19cb')]=_0x11eca0[_0x34458b('0x2319')]||[];})[_0x4c9788('0x17e7')](function(){const _0x34354c=_0x4c9788;return _0x2ed4b6['userProfileSection'][_0x34354c('0x1c53')]({'userProfileId':_0x214ad9[_0x34354c('0x197c')][_0x34354c('0x1e76')],'sectionId':0x3f3})[_0x34354c('0x1af5')];})[_0x4c9788('0x17e7')](function(_0x373617){const _0x44e382=_0x4c9788,_0x2f8e48=_0x373617&&_0x373617[_0x44e382('0x2319')]?_0x373617['rows'][0x0]:null;if(!_0x2f8e48){const _0x43743f=[];let _0x51df2b=null;_0x214ad9[_0x44e382('0x663')]&&(_0x51df2b=_0x49cbdd()[_0x44e382('0xe8e')](_0x214ad9[_0x44e382('0x19cb')],{'name':_0x214ad9[_0x44e382('0x663')][_0x44e382('0x252a')]}));for(let _0x5dc55b=0x0;_0x5dc55b<_0x214ad9[_0x44e382('0x19cb')][_0x44e382('0x1f73')];_0x5dc55b++){_0x51df2b&&_0x214ad9[_0x44e382('0x19cb')][_0x5dc55b]['id']===_0x51df2b['id']&&(_0x214ad9[_0x44e382('0x19cb')][_0x5dc55b]['canSelect']=![],_0x43743f[_0x44e382('0x269f')](_0x214ad9[_0x44e382('0x19cb')][_0x5dc55b]));}_0x214ad9[_0x44e382('0x19cb')]=_0x43743f;}else{if(!_0x2f8e48[_0x44e382('0x9e3')])return _0x2ed4b6[_0x44e382('0x78d')][_0x44e382('0x1c53')]({'sectionId':_0x2f8e48['id']})['$promise'][_0x44e382('0x17e7')](function(_0x5039c7){const _0x5d7d78=_0x44e382,_0x2a8ef9=_0x49cbdd()[_0x5d7d78('0x787')](_0x5039c7[_0x5d7d78('0x2319')],function(_0x594bc1){const _0x5b82fb=_0x5d7d78;return _0x49cbdd()[_0x5b82fb('0xe8e')](_0x214ad9[_0x5b82fb('0x19cb')],{'id':_0x594bc1[_0x5b82fb('0x5db')]});});let _0x48a8b8=null;_0x214ad9[_0x5d7d78('0x663')]&&(_0x48a8b8=_0x49cbdd()[_0x5d7d78('0xe8e')](_0x214ad9[_0x5d7d78('0x19cb')],{'name':_0x214ad9[_0x5d7d78('0x663')]['trunk']}));if(_0x48a8b8&&!_0x49cbdd()['some'](_0x2a8ef9,['id',_0x48a8b8['id']])){const _0x3bcd82=_0x49cbdd()[_0x5d7d78('0xe8e')](_0x214ad9[_0x5d7d78('0x19cb')],{'id':_0x48a8b8['id']});_0x3bcd82[_0x5d7d78('0xe5c')]=![],_0x2a8ef9[_0x5d7d78('0x269f')](_0x3bcd82);}_0x214ad9[_0x5d7d78('0x19cb')]=_0x2a8ef9;});}})[_0x4c9788('0x16df')](function(_0x477b1e){const _0x4ea77c=_0x4c9788;_0x3610a7[_0x4ea77c('0x1db9')]({'title':_0x477b1e['status']?_0x4ea77c('0x14f7')+_0x477b1e[_0x4ea77c('0x11c5')]+_0x4ea77c('0x16e4')+_0x477b1e[_0x4ea77c('0x1833')]:'SYSTEM:GETtrunks','msg':_0x477b1e['data']?JSON[_0x4ea77c('0x678')](_0x477b1e['data']):_0x477b1e[_0x4ea77c('0x9b6')]()});});function _0x589bdb(){const _0x236303=_0x4c9788;_0x214ad9[_0x236303('0x73e')]=[];const _0x15424e=[];_0x214ad9[_0x236303('0x663')][_0x236303('0x412')]&&_0x214ad9['externaldial'][_0x236303('0x412')][_0x236303('0x19b')]()===_0x236303('0x1ade')&&_0x214ad9[_0x236303('0x663')][_0x236303('0x1c54')]==='outboundDial'&&(_0x214ad9[_0x236303('0x663')]['phone']=_0x28d88f[_0x236303('0x12af')]?(_0x214ad9[_0x236303('0x663')]['prefix']||'')+_0x236303('0x2265')+_0x28d88f[_0x236303('0x12af')]+'}':(_0x214ad9['externaldial'][_0x236303('0x11d4')]||'')+'${EXTEN}',_0x28d88f[_0x236303('0x287')]!=='none'?_0x214ad9['externaldial'][_0x236303('0x19')][_0x236303('0x2567')](_0x236303('0xa22'))<0x0&&(_0x214ad9[_0x236303('0x663')][_0x236303('0x19')]+=_0x236303('0xa22')):_0x214ad9[_0x236303('0x663')][_0x236303('0x19')]=_0x214ad9['externaldial'][_0x236303('0x19')][_0x236303('0x737')](_0x236303('0xa22'),''));if(_0x214ad9[_0x236303('0x663')]['appType']&&_0x214ad9[_0x236303('0x663')][_0x236303('0x1c54')]===_0x236303('0x8fa')){}else switch((_0x214ad9[_0x236303('0x663')]['app']||_0x214ad9[_0x236303('0x663')]['appType'])['toLowerCase']()){case _0x236303('0xf2e'):_0x214ad9[_0x236303('0x663')][_0x236303('0x2077')]=_0x214ad9[_0x236303('0x663')][_0x236303('0x2aa')]+'='+_0x214ad9[_0x236303('0x663')][_0x236303('0x175b')];break;case _0x236303('0x8fa'):break;default:_0x15424e[0x0]=['SIP',_0x214ad9[_0x236303('0x663')][_0x236303('0x252a')],_0x214ad9[_0x236303('0x663')][_0x236303('0x2154')]][_0x236303('0x1eba')]('/'),_0x15424e[0x1]=_0x214ad9['externaldial']['timeout'],_0x15424e[0x2]=_0x214ad9[_0x236303('0x663')]['options'],_0x15424e[0x3]=_0x214ad9[_0x236303('0x663')][_0x236303('0x101e')],_0x214ad9[_0x236303('0x663')]['appdata']=_0x15424e[_0x236303('0x1eba')](',');}_0x50623e(_0x214ad9[_0x236303('0x663')]);}function _0x50623e(_0x11fd35){_0x469871['hide'](_0x11fd35);}}const _0x135a08=_0x54464f;_0x375ab7[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x143b'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x375ab7(_0x437842,_0x4eeecf,_0x36bd47,_0x2fa2c5,_0x2c121b,_0x23248d,_0x2047d0,_0x1c7c0c){const _0x5c0e67=_0x4376d8,_0x4712c9=this;_0x4712c9['currentUser']=_0x2047d0['getCurrentUser'](),_0x4712c9[_0x5c0e67('0x73e')]=[],_0x4712c9['title']='VOICE.EDIT_'+(_0x2fa2c5[_0x5c0e67('0x1c54')]||_0x2fa2c5['app'])[_0x5c0e67('0x14e2')](),_0x4712c9['goto']=angular[_0x5c0e67('0x14e5')](_0x2fa2c5),_0x4712c9[_0x5c0e67('0x103e')]=_0x1c7c0c,_0x4712c9[_0x5c0e67('0x6ee')]={};if(_0x4712c9[_0x5c0e67('0x1fb0')]['appdata'])switch(_0x4712c9['goto'][_0x5c0e67('0x1c54')]?_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x1c54')][_0x5c0e67('0x19b')]():_0x4712c9['goto'][_0x5c0e67('0x643')][_0x5c0e67('0x19b')]()){case _0x5c0e67('0x8fa'):break;case'dialogflow':{const _0xc4964b=_0x4712c9[_0x5c0e67('0x1fb0')]['appdata']['split'](',');_0x4712c9['goto'][_0x5c0e67('0xdb5')]=_0xc4964b[0x0],_0x4712c9['goto'][_0x5c0e67('0x3e1')]=_0xc4964b[0x1],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x1083')]=_0xc4964b['slice'](0x2,_0xc4964b[_0x5c0e67('0x1f73')])[_0x5c0e67('0x1eba')](',');}break;case'dialogflowv2':{const _0x4c536f=_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x2077')][_0x5c0e67('0x2007')](',');_0x4712c9['goto'][_0x5c0e67('0x28ab')]=_0x4c536f[0x0],_0x4712c9['goto'][_0x5c0e67('0x2814')]=_0x4c536f[0x1],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x1bc2')]=_0x4c536f[0x2],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x3e1')]=_0x4c536f[0x3],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x1083')]=_0x4c536f[_0x5c0e67('0x275f')](0x4,_0x4c536f['length'])[_0x5c0e67('0x1eba')](',');}break;case _0x5c0e67('0x16a9'):{const _0x259e5d=_0x4712c9[_0x5c0e67('0x1fb0')]['appdata']['split'](',');_0x4712c9['goto'][_0x5c0e67('0x1452')]=_0x259e5d[0x0],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x1a62')]=_0x259e5d[0x1],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x1dcf')]=_0x259e5d[0x2],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x4a')]=_0x259e5d[0x3],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x1083')]=_0x259e5d[_0x5c0e67('0x275f')](0x4,_0x259e5d[_0x5c0e67('0x1f73')])[_0x5c0e67('0x1eba')](',');}break;case'autoreply':{const _0x25a87c=_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x2077')][_0x5c0e67('0x2007')](',');_0x4712c9['goto']['times']=isNaN(_0x25a87c[0x0])?_0x25a87c[0x0]:parseInt(_0x25a87c[0x0],0xa),_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x132f')]=_0x25a87c[_0x5c0e67('0x275f')](0x1,_0x25a87c[_0x5c0e67('0x1f73')])[_0x5c0e67('0x1eba')](',');}break;case _0x5c0e67('0x1603'):_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x132f')]=_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x2077')];break;case'set':_0x4712c9[_0x5c0e67('0x1fb0')]['name']=_0x4712c9['goto']['appdata'][_0x5c0e67('0x2007')]('=')[0x0],_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x175b')]=_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x2077')]['split']('=')[0x1];break;case _0x5c0e67('0x17c6'):_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x87c')]=_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x2077')];break;default:{const _0x1f9827=_0x4712c9['goto']['appdata'][_0x5c0e67('0x2007')](',');_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x17b3')]=_0x49cbdd()['isEmpty'](_0x1f9827[0x0])?_0x1f9827[0x0]:isNaN(_0x1f9827[0x0])?_0x1f9827[0x0]:parseInt(_0x1f9827[0x0],0xa),_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x26c3')]=_0x49cbdd()['isEmpty'](_0x1f9827[0x1])?_0x1f9827[0x1]:isNaN(_0x1f9827[0x1])?_0x1f9827[0x1]:parseInt(_0x1f9827[0x1],0xa),_0x4712c9[_0x5c0e67('0x1fb0')]['priority']=_0x49cbdd()[_0x5c0e67('0x109a')](_0x1f9827[0x2])?_0x1f9827[0x2]:isNaN(_0x1f9827[0x2])?_0x1f9827[0x2]:parseInt(_0x1f9827[0x2],0xa);}break;}else{}_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x412')]&&_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x412')]['toLowerCase']()===_0x5c0e67('0x1ade')&&_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x1c54')][_0x5c0e67('0x19b')]()==='outbounddial'&&(_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x11d4')]=_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x2154')]?_0x4712c9['goto'][_0x5c0e67('0x2154')][_0x5c0e67('0x2007')]('$')[0x0]:undefined,_0x4712c9[_0x5c0e67('0x1fb0')]['callerId']=_0x4712c9[_0x5c0e67('0x1fb0')][_0x5c0e67('0x17f4')]?'CALLERID(all)='+_0x4712c9['goto'][_0x5c0e67('0x17f4')]:undefined);_0x4712c9[_0x5c0e67('0xd10')]=_0x173e47,_0x4712c9['closeDialog']=_0x3b1d22,_0x2047d0[_0x5c0e67('0x1ba2')](_0x5c0e67('0x20bf'))?_0x23248d[_0x5c0e67('0xc76')]['get']({'fields':'id,name','sort':'name','nolimit':'true'})[_0x5c0e67('0x1af5')][_0x5c0e67('0x17e7')](function(_0x1fbb6d){const _0x52b3d9=_0x5c0e67;_0x4712c9[_0x52b3d9('0xfb3')]=_0x1fbb6d['rows']||[];})['catch'](function(_0x4492c5){const _0x366f20=_0x5c0e67;_0x36bd47[_0x366f20('0x1db9')]({'title':_0x4492c5['status']?_0x366f20('0x14f7')+_0x4492c5['status']+'\x20-\x20'+_0x4492c5[_0x366f20('0x1833')]:_0x366f20('0xa2c'),'msg':_0x4492c5[_0x366f20('0x1457')]?JSON[_0x366f20('0x678')](_0x4492c5[_0x366f20('0x1457')]):_0x4492c5[_0x366f20('0x9b6')]()});}):_0x23248d[_0x5c0e67('0xc76')][_0x5c0e67('0x1c53')]({'fields':'id,name','sort':'name','nolimit':_0x5c0e67('0xe34')})[_0x5c0e67('0x1af5')][_0x5c0e67('0x17e7')](function(_0x3f03ba){const _0x3139d2=_0x5c0e67;_0x4712c9['contexts']=_0x3f03ba[_0x3139d2('0x2319')]||[];})[_0x5c0e67('0x17e7')](function(){const _0x527179=_0x5c0e67;return _0x23248d[_0x527179('0x383')][_0x527179('0x1c53')]({'userProfileId':_0x4712c9[_0x527179('0x197c')][_0x527179('0x1e76')],'sectionId':0x195})['$promise'];})['then'](function(_0x5c1443){const _0x35d258=_0x5c0e67,_0x49feea=_0x5c1443&&_0x5c1443[_0x35d258('0x2319')]?_0x5c1443[_0x35d258('0x2319')][0x0]:null;if(!_0x49feea)return _0x23248d[_0x35d258('0xc76')][_0x35d258('0x1c53')]({'fields':'id,name','sort':_0x35d258('0x2aa'),'nolimit':_0x35d258('0xe34'),'defaultEntry':0x1})[_0x35d258('0x1af5')][_0x35d258('0x17e7')](function(_0x1be7e2){const _0xf77fc4=_0x35d258;_0x4712c9[_0xf77fc4('0xfb3')]=_0x1be7e2['rows']||[];});else{if(!_0x49feea[_0x35d258('0x9e3')])return _0x23248d['userProfileResource'][_0x35d258('0x1c53')]({'sectionId':_0x49feea['id']})[_0x35d258('0x1af5')][_0x35d258('0x17e7')](function(_0x2ae467){const _0x53b602=_0x35d258,_0xc30847=_0x49cbdd()[_0x53b602('0x787')](_0x2ae467[_0x53b602('0x2319')],function(_0x9349f2){const _0x27e62d=_0x53b602;return _0x49cbdd()[_0x27e62d('0xe8e')](_0x4712c9[_0x27e62d('0xfb3')],{'id':_0x9349f2[_0x27e62d('0x5db')]});});let _0x5366b8=null;_0x4712c9[_0x53b602('0x1fb0')]&&(_0x5366b8=_0x49cbdd()[_0x53b602('0xe8e')](_0x4712c9[_0x53b602('0xfb3')],{'name':_0x4712c9[_0x53b602('0x1fb0')]['context']}));if(_0x5366b8&&!_0x49cbdd()['some'](_0xc30847,['id',_0x5366b8['id']])){const _0x3efc18=_0x49cbdd()[_0x53b602('0xe8e')](_0x4712c9[_0x53b602('0xfb3')],{'id':_0x5366b8['id']});_0x3efc18[_0x53b602('0xe5c')]=![],_0xc30847[_0x53b602('0x269f')](_0x3efc18);}_0x4712c9[_0x53b602('0xfb3')]=_0xc30847;});}})['catch'](function(_0x37d528){const _0x270189=_0x5c0e67;_0x36bd47[_0x270189('0x1db9')]({'title':_0x37d528[_0x270189('0x11c5')]?_0x270189('0x14f7')+_0x37d528[_0x270189('0x11c5')]+'\x20-\x20'+_0x37d528[_0x270189('0x1833')]:_0x270189('0x78'),'msg':_0x37d528[_0x270189('0x1457')]?JSON[_0x270189('0x678')](_0x37d528[_0x270189('0x1457')]):_0x37d528[_0x270189('0x9b6')]()});});function _0x173e47(){const _0x2e8d89=_0x5c0e67;_0x4712c9[_0x2e8d89('0x73e')]=[];const _0x57543c=[];_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x412')]&&_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x412')][_0x2e8d89('0x19b')]()===_0x2e8d89('0x1ade')&&_0x4712c9['goto'][_0x2e8d89('0x1c54')]===_0x2e8d89('0xbdc')&&(_0x4712c9[_0x2e8d89('0x1fb0')]['phone']=_0x2c121b[_0x2e8d89('0x12af')]?(_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x11d4')]||'')+'${EXTEN:'+_0x2c121b['cutdigits']+'}':(_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x11d4')]||'')+_0x2e8d89('0x150e'),_0x2c121b['recordingFormat']!=='none'?_0x4712c9['goto'][_0x2e8d89('0x19')][_0x2e8d89('0x2567')](_0x2e8d89('0xa22'))<0x0&&(_0x4712c9[_0x2e8d89('0x1fb0')]['options']+=_0x2e8d89('0xa22')):_0x4712c9['goto']['options']=_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x19')][_0x2e8d89('0x737')](_0x2e8d89('0xa22'),''));if(_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x1c54')]&&_0x4712c9['goto'][_0x2e8d89('0x1c54')]===_0x2e8d89('0x8fa')){}else switch((_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x643')]||_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x1c54')])[_0x2e8d89('0x19b')]()){case'set':_0x4712c9[_0x2e8d89('0x1fb0')]['appdata']=_0x4712c9['goto']['name']+'='+_0x4712c9['goto'][_0x2e8d89('0x175b')];break;case'custom':break;default:_0x57543c[0x0]=_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x17b3')],_0x57543c[0x1]=_0x4712c9['goto'][_0x2e8d89('0x26c3')],_0x57543c[0x2]=_0x4712c9[_0x2e8d89('0x1fb0')]['priority'],_0x4712c9[_0x2e8d89('0x1fb0')][_0x2e8d89('0x2077')]=_0x57543c[_0x2e8d89('0x1eba')](',');}_0x3b1d22(_0x4712c9[_0x2e8d89('0x1fb0')]);}function _0x3b1d22(_0xd0ec26){const _0x548f01=_0x5c0e67;_0x437842[_0x548f01('0x212a')](_0xd0ec26);}}const _0x27f10e=_0x375ab7;_0x36d683[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x143b'),'inboundroute',_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x36d683(_0x1045d7,_0x4de5a4,_0x4eeb49,_0x4a8ffc,_0x102dd5,_0x1d1bc0,_0x1968b1,_0x3a350c){const _0x3ce7a2=_0x4376d8,_0x4b705e=this;_0x4b705e['currentUser']=_0x1968b1[_0x3ce7a2('0x2831')](),_0x4b705e[_0x3ce7a2('0x73e')]=[],_0x4b705e[_0x3ce7a2('0x24d3')]=_0x3ce7a2('0x1c6f')+(_0x4a8ffc[_0x3ce7a2('0x1c54')]||_0x4a8ffc['app'])[_0x3ce7a2('0x14e2')](),_0x4b705e[_0x3ce7a2('0x450')]=angular[_0x3ce7a2('0x14e5')](_0x4a8ffc),_0x4b705e[_0x3ce7a2('0x103e')]=_0x3a350c,_0x4b705e[_0x3ce7a2('0x6ee')]={};if(_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x2077')])switch(_0x4b705e[_0x3ce7a2('0x450')]['appType']?_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x1c54')][_0x3ce7a2('0x19b')]():_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x643')][_0x3ce7a2('0x19b')]()){case _0x3ce7a2('0x8fa'):break;case _0x3ce7a2('0x2526'):{const _0x5a80fd=_0x4b705e[_0x3ce7a2('0x450')]['appdata'][_0x3ce7a2('0x2007')](',');_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0xdb5')]=_0x5a80fd[0x0],_0x4b705e[_0x3ce7a2('0x450')]['language']=_0x5a80fd[0x1],_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x1083')]=_0x5a80fd[_0x3ce7a2('0x275f')](0x2,_0x5a80fd[_0x3ce7a2('0x1f73')])[_0x3ce7a2('0x1eba')](',');}break;case _0x3ce7a2('0x22ac'):{const _0x1fb17c=_0x4b705e[_0x3ce7a2('0x450')]['appdata']['split'](',');_0x4b705e['hangup'][_0x3ce7a2('0x28ab')]=_0x1fb17c[0x0],_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x2814')]=_0x1fb17c[0x1],_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x1bc2')]=_0x1fb17c[0x2],_0x4b705e['hangup'][_0x3ce7a2('0x3e1')]=_0x1fb17c[0x3],_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x1083')]=_0x1fb17c['slice'](0x4,_0x1fb17c[_0x3ce7a2('0x1f73')])[_0x3ce7a2('0x1eba')](',');}break;case _0x3ce7a2('0x16a9'):{const _0x5de0cb=_0x4b705e[_0x3ce7a2('0x450')]['appdata'][_0x3ce7a2('0x2007')](',');_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x1452')]=_0x5de0cb[0x0],_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x1a62')]=_0x5de0cb[0x1],_0x4b705e['hangup'][_0x3ce7a2('0x1dcf')]=_0x5de0cb[0x2],_0x4b705e[_0x3ce7a2('0x450')]['botname']=_0x5de0cb[0x3],_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x1083')]=_0x5de0cb[_0x3ce7a2('0x275f')](0x4,_0x5de0cb[_0x3ce7a2('0x1f73')])[_0x3ce7a2('0x1eba')](',');}break;case _0x3ce7a2('0x96e'):{const _0x2cf78e=_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x2077')][_0x3ce7a2('0x2007')](',');_0x4b705e[_0x3ce7a2('0x450')]['times']=isNaN(_0x2cf78e[0x0])?_0x2cf78e[0x0]:parseInt(_0x2cf78e[0x0],0xa),_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x132f')]=_0x2cf78e[_0x3ce7a2('0x275f')](0x1,_0x2cf78e[_0x3ce7a2('0x1f73')])[_0x3ce7a2('0x1eba')](',');}break;case'message':_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x132f')]=_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x2077')];break;case _0x3ce7a2('0xf2e'):_0x4b705e['hangup'][_0x3ce7a2('0x2aa')]=_0x4b705e['hangup'][_0x3ce7a2('0x2077')]['split']('=')[0x0],_0x4b705e[_0x3ce7a2('0x450')]['value']=_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x2077')][_0x3ce7a2('0x2007')]('=')[0x1];break;case _0x3ce7a2('0x17c6'):_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x87c')]=_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x2077')];break;default:{const _0x3e11cf=_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x2077')][_0x3ce7a2('0x2007')](',');_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x2077')]=_0x49cbdd()['isEmpty'](_0x3e11cf[0x0])?_0x3e11cf[0x0]:isNaN(_0x3e11cf[0x0])?_0x3e11cf[0x0]:parseInt(_0x3e11cf[0x0],0xa);}break;}else{}_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x412')]&&_0x4b705e['hangup'][_0x3ce7a2('0x412')]['toLowerCase']()===_0x3ce7a2('0x1ade')&&_0x4b705e['hangup']['appType']['toLowerCase']()==='outbounddial'&&(_0x4b705e['hangup'][_0x3ce7a2('0x11d4')]=_0x4b705e[_0x3ce7a2('0x450')]['phone']?_0x4b705e['hangup'][_0x3ce7a2('0x2154')][_0x3ce7a2('0x2007')]('$')[0x0]:undefined,_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x1a8e')]=_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x17f4')]?_0x3ce7a2('0x1d28')+_0x4b705e[_0x3ce7a2('0x450')][_0x3ce7a2('0x17f4')]:undefined);_0x4b705e[_0x3ce7a2('0xd10')]=_0x544fbd,_0x4b705e['closeDialog']=_0x3cf4ab;function _0x544fbd(){const _0x43ccab=_0x3ce7a2;_0x4b705e[_0x43ccab('0x73e')]=[];const _0x187144=[];_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x412')]&&_0x4b705e['hangup']['type'][_0x43ccab('0x19b')]()==='outbound'&&_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x1c54')]==='outboundDial'&&(_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x2154')]=_0x102dd5[_0x43ccab('0x12af')]?(_0x4b705e[_0x43ccab('0x450')]['prefix']||'')+_0x43ccab('0x2265')+_0x102dd5[_0x43ccab('0x12af')]+'}':(_0x4b705e[_0x43ccab('0x450')]['prefix']||'')+'${EXTEN}',_0x102dd5['recordingFormat']!==_0x43ccab('0x7ee')?_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x19')][_0x43ccab('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x19')]+='U(xcally-mixmonitor-context)'):_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x19')]=_0x4b705e['hangup'][_0x43ccab('0x19')][_0x43ccab('0x737')](_0x43ccab('0xa22'),''));if(_0x4b705e[_0x43ccab('0x450')]['appType']&&_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x1c54')]===_0x43ccab('0x8fa')){}else switch((_0x4b705e[_0x43ccab('0x450')]['app']||_0x4b705e['hangup'][_0x43ccab('0x1c54')])['toLowerCase']()){case'set':_0x4b705e['hangup'][_0x43ccab('0x2077')]=_0x4b705e['hangup'][_0x43ccab('0x2aa')]+'='+_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x175b')];break;case _0x43ccab('0x8fa'):break;default:_0x187144[0x0]=_0x4b705e[_0x43ccab('0x450')][_0x43ccab('0x2077')],_0x4b705e['hangup'][_0x43ccab('0x2077')]=_0x187144[_0x43ccab('0x1eba')](',');}_0x3cf4ab(_0x4b705e[_0x43ccab('0x450')]);}function _0x3cf4ab(_0x2fc1b9){_0x1045d7['hide'](_0x2fc1b9);}}const _0x389a04=_0x36d683;_0x3d01eb[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x143b'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x3d01eb(_0x1dd4f9,_0x503ff5,_0x3f1bc1,_0x54e7a7,_0x45a0b3,_0x22138c,_0x19b363,_0x15f1fe){const _0x230718=_0x4376d8,_0x4f6f1c=this;_0x4f6f1c['currentUser']=_0x19b363[_0x230718('0x2831')](),_0x4f6f1c['errors']=[],_0x4f6f1c['title']=_0x230718('0x1c6f')+(_0x54e7a7[_0x230718('0x1c54')]||_0x54e7a7[_0x230718('0x643')])['toUpperCase'](),_0x4f6f1c['internaldial']=angular[_0x230718('0x14e5')](_0x54e7a7),_0x4f6f1c['crudPermissions']=_0x15f1fe,_0x4f6f1c[_0x230718('0x6ee')]={};if(_0x4f6f1c['internaldial'][_0x230718('0x2077')])switch(_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x1c54')]?_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x1c54')]['toLowerCase']():_0x4f6f1c[_0x230718('0x9aa')]['app'][_0x230718('0x19b')]()){case'custom':break;case _0x230718('0x2526'):{const _0x16bf66=_0x4f6f1c[_0x230718('0x9aa')]['appdata'][_0x230718('0x2007')](',');_0x4f6f1c['internaldial'][_0x230718('0xdb5')]=_0x16bf66[0x0],_0x4f6f1c['internaldial'][_0x230718('0x3e1')]=_0x16bf66[0x1],_0x4f6f1c[_0x230718('0x9aa')]['welcomemessage']=_0x16bf66[_0x230718('0x275f')](0x2,_0x16bf66['length'])[_0x230718('0x1eba')](',');}break;case _0x230718('0x22ac'):{const _0x196290=_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x2077')][_0x230718('0x2007')](',');_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x28ab')]=_0x196290[0x0],_0x4f6f1c['internaldial']['clientEmail']=_0x196290[0x1],_0x4f6f1c['internaldial']['privateKey']=_0x196290[0x2],_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x3e1')]=_0x196290[0x3],_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x1083')]=_0x196290[_0x230718('0x275f')](0x4,_0x196290[_0x230718('0x1f73')])[_0x230718('0x1eba')](',');}break;case'amazonlex':{const _0x2c72f2=_0x4f6f1c['internaldial']['appdata'][_0x230718('0x2007')](',');_0x4f6f1c['internaldial']['accesskeyid']=_0x2c72f2[0x0],_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x1a62')]=_0x2c72f2[0x1],_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x1dcf')]=_0x2c72f2[0x2],_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x4a')]=_0x2c72f2[0x3],_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x1083')]=_0x2c72f2[_0x230718('0x275f')](0x4,_0x2c72f2['length'])[_0x230718('0x1eba')](',');}break;case'autoreply':{const _0x30c3a2=_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x2077')][_0x230718('0x2007')](',');_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x12a6')]=isNaN(_0x30c3a2[0x0])?_0x30c3a2[0x0]:parseInt(_0x30c3a2[0x0],0xa),_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x132f')]=_0x30c3a2['slice'](0x1,_0x30c3a2[_0x230718('0x1f73')])[_0x230718('0x1eba')](',');}break;case'message':_0x4f6f1c['internaldial'][_0x230718('0x132f')]=_0x4f6f1c['internaldial'][_0x230718('0x2077')];break;case _0x230718('0xf2e'):_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x2aa')]=_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x2077')][_0x230718('0x2007')]('=')[0x0],_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x175b')]=_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x2077')][_0x230718('0x2007')]('=')[0x1];break;case'agi':_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x87c')]=_0x4f6f1c['internaldial'][_0x230718('0x2077')];break;default:{const _0x3c85d4=_0x4f6f1c[_0x230718('0x9aa')]['appdata']['split'](',');_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x221e')]=_0x49cbdd()[_0x230718('0x109a')](_0x3c85d4[0x0])?_0x3c85d4[0x0]:isNaN(_0x3c85d4[0x0])?_0x3c85d4[0x0]:parseInt(_0x3c85d4[0x0],0xa),_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0xd2f')]=_0x49cbdd()[_0x230718('0x109a')](_0x3c85d4[0x1])?_0x3c85d4[0x1]:isNaN(_0x3c85d4[0x1])?_0x3c85d4[0x1]:parseInt(_0x3c85d4[0x1],0xa),_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x19')]=_0x49cbdd()[_0x230718('0x109a')](_0x3c85d4[0x2])?_0x3c85d4[0x2]:isNaN(_0x3c85d4[0x2])?_0x3c85d4[0x2]:parseInt(_0x3c85d4[0x2],0xa),_0x4f6f1c['internaldial'][_0x230718('0x101e')]=_0x49cbdd()[_0x230718('0x109a')](_0x3c85d4[0x3])?_0x3c85d4[0x3]:isNaN(_0x3c85d4[0x3])?_0x3c85d4[0x3]:parseInt(_0x3c85d4[0x3],0xa);}break;}else{}_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x412')]&&_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x412')][_0x230718('0x19b')]()===_0x230718('0x1ade')&&_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x1c54')][_0x230718('0x19b')]()===_0x230718('0x1711')&&(_0x4f6f1c['internaldial'][_0x230718('0x11d4')]=_0x4f6f1c[_0x230718('0x9aa')]['phone']?_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x2154')][_0x230718('0x2007')]('$')[0x0]:undefined,_0x4f6f1c['internaldial'][_0x230718('0x1a8e')]=_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x17f4')]?'CALLERID(all)='+_0x4f6f1c[_0x230718('0x9aa')][_0x230718('0x17f4')]:undefined);_0x4f6f1c['saveInboundRouteApp']=_0x59ec1c,_0x4f6f1c['closeDialog']=_0x4c7a94;const _0x597a50=[{'id':0xca,'role':_0x230718('0x684')},{'id':0xcb,'role':_0x230718('0x21b5')}];let _0x473781=null;_0x19b363[_0x230718('0x1ba2')](_0x230718('0x20bf'))?_0x22138c[_0x230718('0x221e')][_0x230718('0x1c53')]({'fields':_0x230718('0x1635'),'sort':_0x230718('0x2aa'),'nolimit':'true'})['$promise'][_0x230718('0x17e7')](function(_0x15bef5){const _0x173c06=_0x230718;_0x4f6f1c[_0x173c06('0x12ed')]=_0x15bef5[_0x173c06('0x2319')]||[];})[_0x230718('0x16df')](function(_0x3ee964){const _0x238ec0=_0x230718;_0x3f1bc1[_0x238ec0('0x1db9')]({'title':_0x3ee964['status']?'API:'+_0x3ee964[_0x238ec0('0x11c5')]+'\x20-\x20'+_0x3ee964['statusText']:'SYSTEM:GET_USERS','msg':_0x3ee964[_0x238ec0('0x1457')]?JSON[_0x238ec0('0x678')](_0x3ee964[_0x238ec0('0x1457')]):_0x3ee964[_0x238ec0('0x9b6')]()});}):_0x22138c[_0x230718('0x221e')][_0x230718('0x1c53')]({'fields':'id,name,role','sort':'name','nolimit':'true'})[_0x230718('0x1af5')]['then'](function(_0x3777c0){const _0x88d3f2=_0x230718;_0x473781=_0x3777c0[_0x88d3f2('0x2319')]||[];})[_0x230718('0x17e7')](function(){const _0x2178b5=_0x230718,_0x2ef3fe=[];for(let _0x56d124=0x0;_0x56d124<_0x597a50[_0x2178b5('0x1f73')];_0x56d124++){_0x2ef3fe[_0x2178b5('0x269f')](_0x22138c['userProfileSection']['get']({'userProfileId':_0x4f6f1c[_0x2178b5('0x197c')]['userProfileId'],'sectionId':_0x597a50[_0x56d124]['id']})[_0x2178b5('0x1af5')]);}return _0x503ff5[_0x2178b5('0x1283')](_0x2ef3fe);})[_0x230718('0x17e7')](function(_0x42c088){const _0x48a2d4=_0x230718,_0x572553=_0x49cbdd()[_0x48a2d4('0x787')](_0x42c088,function(_0x1ab6ea){const _0x17a190=_0x48a2d4;return _0x1ab6ea&&_0x1ab6ea[_0x17a190('0x2319')]?_0x1ab6ea[_0x17a190('0x2319')][0x0]:null;}),_0x447073=[];for(let _0x3cdf12=0x0;_0x3cdf12<_0x597a50[_0x48a2d4('0x1f73')];_0x3cdf12++){const _0x5f03c4=_0x49cbdd()[_0x48a2d4('0xe8e')](_0x572553,[_0x48a2d4('0x2676'),_0x597a50[_0x3cdf12]['id']]);if(_0x5f03c4){if(!_0x5f03c4[_0x48a2d4('0x9e3')])_0x447073[_0x48a2d4('0x269f')](_0x22138c[_0x48a2d4('0x78d')]['get']({'sectionId':_0x5f03c4['id']})[_0x48a2d4('0x1af5')]);else{const _0x3c1332=[];_0x473781['forEach'](function(_0x4e0100){const _0x7dc9cf=_0x48a2d4;_0x4e0100[_0x7dc9cf('0x1085')]===_0x597a50[_0x3cdf12]['role']&&_0x3c1332[_0x7dc9cf('0x269f')](_0x4e0100);}),_0x447073['push']({'rows':_0x3c1332,'count':_0x3c1332[_0x48a2d4('0x1f73')]});}}}return _0x503ff5['all'](_0x447073);})[_0x230718('0x17e7')](function(_0x566181){const _0x48aada=_0x230718,_0x3fc8b6=[];let _0x6307ac=null;_0x4f6f1c[_0x48aada('0x9aa')]&&(_0x6307ac=_0x49cbdd()[_0x48aada('0xe8e')](_0x473781,{'name':_0x4f6f1c['internaldial'][_0x48aada('0x221e')]}));for(let _0x25272f=0x0;_0x25272f<_0x566181['length'];_0x25272f++){const _0x485330=_0x566181[_0x25272f][_0x48aada('0x2319')]||[];_0x485330[_0x48aada('0xccd')](function(_0x431254){const _0xafaf99=_0x48aada;_0x3fc8b6[_0xafaf99('0x269f')](_0x431254);});}_0x6307ac&&!_0x49cbdd()['some'](_0x3fc8b6,[_0x48aada('0x5db'),_0x6307ac['id']])&&_0x473781[_0x48aada('0xccd')](function(_0x442451){const _0x380d2d=_0x48aada;_0x442451['id']===_0x6307ac['id']&&(_0x442451[_0x380d2d('0xe5c')]=![],_0x3fc8b6[_0x380d2d('0x269f')](_0x442451));}),_0x4f6f1c[_0x48aada('0x12ed')]=_0x3fc8b6;})[_0x230718('0x16df')](function(_0x3ce222){const _0x33c083=_0x230718;_0x3f1bc1[_0x33c083('0x1db9')]({'title':_0x3ce222[_0x33c083('0x11c5')]?'API:'+_0x3ce222['status']+_0x33c083('0x16e4')+_0x3ce222[_0x33c083('0x1833')]:_0x33c083('0x10da'),'msg':_0x3ce222['data']?JSON[_0x33c083('0x678')](_0x3ce222[_0x33c083('0x1457')]):_0x3ce222[_0x33c083('0x9b6')]()});});function _0x59ec1c(){const _0x5a3202=_0x230718;_0x4f6f1c['errors']=[];const _0x769563=[];_0x4f6f1c[_0x5a3202('0x9aa')]['type']&&_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x412')]['toLowerCase']()==='outbound'&&_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x1c54')]===_0x5a3202('0xbdc')&&(_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x2154')]=_0x45a0b3[_0x5a3202('0x12af')]?(_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x11d4')]||'')+'${EXTEN:'+_0x45a0b3[_0x5a3202('0x12af')]+'}':(_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x11d4')]||'')+_0x5a3202('0x150e'),_0x45a0b3[_0x5a3202('0x287')]!==_0x5a3202('0x7ee')?_0x4f6f1c['internaldial'][_0x5a3202('0x19')][_0x5a3202('0x2567')](_0x5a3202('0xa22'))<0x0&&(_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x19')]+=_0x5a3202('0xa22')):_0x4f6f1c['internaldial'][_0x5a3202('0x19')]=_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x19')][_0x5a3202('0x737')](_0x5a3202('0xa22'),''));if(_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x1c54')]&&_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x1c54')]===_0x5a3202('0x8fa')){}else switch((_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x643')]||_0x4f6f1c['internaldial']['appType'])[_0x5a3202('0x19b')]()){case _0x5a3202('0xf2e'):_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x2077')]=_0x4f6f1c[_0x5a3202('0x9aa')]['name']+'='+_0x4f6f1c['internaldial']['value'];break;case _0x5a3202('0x8fa'):break;default:_0x769563[0x0]=_0x4f6f1c[_0x5a3202('0x9aa')]['user'],_0x769563[0x1]=_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0xd2f')],_0x769563[0x2]=_0x4f6f1c['internaldial'][_0x5a3202('0x19')],_0x769563[0x3]=_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x101e')],_0x4f6f1c[_0x5a3202('0x9aa')][_0x5a3202('0x2077')]=_0x769563[_0x5a3202('0x1eba')](',');}_0x4c7a94(_0x4f6f1c[_0x5a3202('0x9aa')]);}function _0x4c7a94(_0x1d519c){const _0x49ab51=_0x230718;_0x1dd4f9[_0x49ab51('0x212a')](_0x1d519c);}}const _0x374771=_0x3d01eb;_0x230911['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x14f6'),_0x4376d8('0x199d'),_0x4376d8('0x12f1'),_0x4376d8('0x231f'),_0x4376d8('0x1be1'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x230911(_0x4e4d31,_0x16a279,_0x177687,_0x3dc714,_0x106447,_0x2b7998,_0x5df96b,_0x1dc451,_0x26447d,_0x4c38b8){const _0x1fb470=_0x4376d8,_0x33c2b4=this;_0x33c2b4[_0x1fb470('0x197c')]=_0x26447d[_0x1fb470('0x2831')](),_0x33c2b4[_0x1fb470('0x73e')]=[],_0x33c2b4[_0x1fb470('0x24d3')]=_0x1fb470('0x1481'),_0x33c2b4[_0x1fb470('0x231f')]=angular[_0x1fb470('0x14e5')](_0x106447),_0x33c2b4[_0x1fb470('0x1be1')]=_0x2b7998,_0x33c2b4[_0x1fb470('0x42d')]=![],_0x33c2b4['types']=[_0x1fb470('0x1256'),'custom',_0x1fb470('0x134c')],_0x33c2b4[_0x1fb470('0x103e')]=_0x4c38b8,_0x33c2b4[_0x1fb470('0x9d')]=_0x3dc714[_0x1fb470('0x18cb')](),_0x33c2b4['monthNumber']=_0x3dc714[_0x1fb470('0x1743')](),_0x33c2b4[_0x1fb470('0x36e')]=_0x3dc714['getMonthName'](),_0x33c2b4[_0x1fb470('0x219f')]=_0x3dc714[_0x1fb470('0x37c')]();if(!_0x33c2b4[_0x1fb470('0x231f')])_0x33c2b4[_0x1fb470('0x231f')]={'interval':_0x1fb470('0x20c3')},_0x33c2b4[_0x1fb470('0x412')]=_0x1fb470('0x1256'),_0x33c2b4[_0x1fb470('0x24d3')]=_0x1fb470('0x1917'),_0x33c2b4['newInterval']=!![];else{if(_0x33c2b4[_0x1fb470('0x231f')][_0x1fb470('0x231f')]!=='*,*,*,*'){_0x33c2b4[_0x1fb470('0x412')]=_0x1fb470('0x8fa');const _0x204f5d=_0x33c2b4['interval'][_0x1fb470('0x231f')][_0x1fb470('0x2007')](','),_0x3bada0=_0x204f5d[0x0],_0x21dc4d=_0x204f5d[0x1],_0x2ce7ee=_0x204f5d[0x2],_0x18e7a8=_0x204f5d[0x3];if(_0x3bada0!=='*'){const _0x2e840a=_0x3bada0['split']('-')[0x0],_0x488d5c=_0x3bada0[_0x1fb470('0x2007')]('-')[0x1];let _0x5cef9a;_0x5cef9a=new Date(),_0x5cef9a[_0x1fb470('0x196e')](Number(_0x2e840a[_0x1fb470('0x2007')](':')[0x0])),_0x5cef9a[_0x1fb470('0x57b')](Number(_0x2e840a['split'](':')[0x1])),_0x33c2b4[_0x1fb470('0x19bf')]=_0x5cef9a,_0x5cef9a=new Date(),_0x5cef9a[_0x1fb470('0x196e')](Number(_0x488d5c['split'](':')[0x0])),_0x5cef9a[_0x1fb470('0x57b')](Number(_0x488d5c[_0x1fb470('0x2007')](':')[0x1])),_0x33c2b4[_0x1fb470('0x1c12')]=_0x5cef9a;}_0x21dc4d!=='*'&&(_0x33c2b4[_0x1fb470('0x1a98')]=_0x21dc4d[_0x1fb470('0x2007')]('-')[0x0],_0x33c2b4[_0x1fb470('0x1627')]=_0x21dc4d[_0x1fb470('0x2007')]('-')[0x1]),_0x2ce7ee!=='*'&&(_0x33c2b4[_0x1fb470('0x18d1')]=_0x2ce7ee[_0x1fb470('0x2007')]('-')[0x0],_0x33c2b4['monthDayTo']=_0x2ce7ee[_0x1fb470('0x2007')]('-')[0x1]),_0x18e7a8!=='*'&&(_0x33c2b4[_0x1fb470('0x88c')]=_0x18e7a8[_0x1fb470('0x2007')]('-')[0x0],_0x33c2b4[_0x1fb470('0x1f09')]=_0x18e7a8[_0x1fb470('0x2007')]('-')[0x1]);}else _0x33c2b4['type']=_0x1fb470('0x1256');}_0x4e4d31[_0x1fb470('0x16fb')]['id']&&!_0x33c2b4[_0x1fb470('0x231f')]['application']&&(_0x33c2b4['interval'][_0x1fb470('0x24a9')]=_0x4e4d31[_0x1fb470('0x16fb')]['id']);_0x33c2b4['interval'][_0x1fb470('0x24a9')]&&_0x33c2b4['interval'][_0x1fb470('0xf84')]&&(_0x33c2b4[_0x1fb470('0x412')]=_0x1fb470('0x134c'));_0x33c2b4[_0x1fb470('0x28b2')]=_0x5afe47,_0x33c2b4[_0x1fb470('0x872')]=_0x39df0f,_0x33c2b4[_0x1fb470('0x136e')]=_0x312b38;_0x33c2b4[_0x1fb470('0x231f')][_0x1fb470('0xf84')]&&(_0x26447d[_0x1fb470('0x1ba2')]('admin')?_0x1dc451[_0x1fb470('0x231f')]['get']({'fields':_0x1fb470('0x165a'),'IntervalId':_0x1fb470('0x9bb'),'nolimit':!![]})[_0x1fb470('0x1af5')][_0x1fb470('0x17e7')](function(_0x4e68ab){_0x33c2b4['intervals']=_0x4e68ab['rows']||[];})[_0x1fb470('0x16df')](function(_0x48567d){const _0x11e6f8=_0x1fb470;_0x5df96b[_0x11e6f8('0x1db9')]({'title':_0x48567d['status']?_0x11e6f8('0x14f7')+_0x48567d['status']+_0x11e6f8('0x16e4')+_0x48567d[_0x11e6f8('0x1833')]:_0x11e6f8('0x87a'),'msg':_0x48567d[_0x11e6f8('0x1457')]?JSON[_0x11e6f8('0x678')](_0x48567d[_0x11e6f8('0x1457')]):_0x48567d[_0x11e6f8('0x9b6')]()});}):_0x1dc451['interval'][_0x1fb470('0x1c53')]({'fields':_0x1fb470('0x165a'),'IntervalId':_0x1fb470('0x9bb'),'nolimit':!![]})['$promise'][_0x1fb470('0x17e7')](function(_0x5111a3){const _0x252d73=_0x1fb470;_0x33c2b4[_0x252d73('0x1be1')]=_0x5111a3['rows']||[];})['then'](function(){const _0x592177=_0x1fb470;return _0x1dc451[_0x592177('0x383')][_0x592177('0x1c53')]({'userProfileId':_0x33c2b4['currentUser'][_0x592177('0x1e76')],'sectionId':0x3ec})['$promise'];})['then'](function(_0xcf0be3){const _0x6cadab=_0x1fb470,_0x5eb21d=_0xcf0be3&&_0xcf0be3[_0x6cadab('0x2319')]?_0xcf0be3[_0x6cadab('0x2319')][0x0]:null;if(!_0x5eb21d)_0x33c2b4['intervals']=[];else{if(!_0x5eb21d[_0x6cadab('0x9e3')])return _0x1dc451[_0x6cadab('0x78d')][_0x6cadab('0x1c53')]({'sectionId':_0x5eb21d['id']})[_0x6cadab('0x1af5')]['then'](function(_0x26b0ca){const _0x49f7bb=_0x6cadab,_0x14aa37=_0x26b0ca&&_0x26b0ca[_0x49f7bb('0x2319')]?_0x26b0ca[_0x49f7bb('0x2319')]:[],_0x49d19b=[];let _0x4d6aa5=null;_0x33c2b4['interval']&&(_0x4d6aa5=_0x49cbdd()[_0x49f7bb('0xe8e')](_0x33c2b4['intervals'],{'name':_0x33c2b4[_0x49f7bb('0x231f')][_0x49f7bb('0x24a9')]})),_0x4d6aa5&&!_0x49cbdd()[_0x49f7bb('0x26f8')](_0x14aa37,[_0x49f7bb('0x5db'),_0x4d6aa5['id']])&&_0x33c2b4['intervals'][_0x49f7bb('0xccd')](function(_0x2c5950){const _0x12380a=_0x49f7bb;_0x2c5950['id']===_0x4d6aa5['id']&&(_0x2c5950[_0x12380a('0xe5c')]=![],_0x49d19b[_0x12380a('0x269f')](_0x2c5950));}),_0x33c2b4['intervals']=_0x49d19b;});}})[_0x1fb470('0x16df')](function(_0xd4e33){const _0x196bbd=_0x1fb470;_0x5df96b[_0x196bbd('0x1db9')]({'title':_0xd4e33['status']?_0x196bbd('0x14f7')+_0xd4e33[_0x196bbd('0x11c5')]+_0x196bbd('0x16e4')+_0xd4e33[_0x196bbd('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0xd4e33['data']?JSON[_0x196bbd('0x678')](_0xd4e33[_0x196bbd('0x1457')]):_0xd4e33[_0x196bbd('0x9b6')]()});}));function _0x30e2f4(){const _0x300ed7=_0x1fb470;switch(_0x33c2b4[_0x300ed7('0x412')]){case'always':case _0x300ed7('0x134c'):return _0x300ed7('0x20c3');case _0x300ed7('0x8fa'):{const _0x4ea514=[];if(_0x33c2b4[_0x300ed7('0x19bf')]!=='*'&&_0x33c2b4[_0x300ed7('0x19bf')]&&_0x33c2b4[_0x300ed7('0x1c12')]){const _0x30ecde=(_0x33c2b4['timeRangeFrom'][_0x300ed7('0x13c6')]()<0xa?'0':'')+_0x33c2b4[_0x300ed7('0x19bf')]['getHours']()+':'+((_0x33c2b4[_0x300ed7('0x19bf')][_0x300ed7('0xf42')]()<0xa?'0':'')+_0x33c2b4[_0x300ed7('0x19bf')][_0x300ed7('0xf42')]()),_0x4a0e2d=(_0x33c2b4['timeRangeTo']['getHours']()<0xa?'0':'')+_0x33c2b4['timeRangeTo'][_0x300ed7('0x13c6')]()+':'+((_0x33c2b4[_0x300ed7('0x1c12')]['getMinutes']()<0xa?'0':'')+_0x33c2b4[_0x300ed7('0x1c12')][_0x300ed7('0xf42')]());_0x4ea514[_0x300ed7('0x269f')](_0x30ecde+'-'+_0x4a0e2d);}else _0x4ea514[_0x300ed7('0x269f')]('*');return _0x33c2b4[_0x300ed7('0x1a98')]?_0x33c2b4[_0x300ed7('0x1627')]?_0x4ea514[_0x300ed7('0x269f')](_0x33c2b4[_0x300ed7('0x1a98')]+'-'+_0x33c2b4[_0x300ed7('0x1627')]):_0x4ea514[_0x300ed7('0x269f')](_0x33c2b4[_0x300ed7('0x1a98')]):_0x4ea514[_0x300ed7('0x269f')]('*'),_0x33c2b4[_0x300ed7('0x18d1')]?_0x33c2b4['monthDayTo']?_0x4ea514[_0x300ed7('0x269f')](_0x33c2b4[_0x300ed7('0x18d1')]+'-'+_0x33c2b4[_0x300ed7('0x271d')]):_0x4ea514[_0x300ed7('0x269f')](_0x33c2b4['monthDayFrom']):_0x4ea514[_0x300ed7('0x269f')]('*'),_0x33c2b4['monthFrom']?_0x33c2b4[_0x300ed7('0x1f09')]?_0x4ea514[_0x300ed7('0x269f')](_0x33c2b4['monthFrom']+'-'+_0x33c2b4[_0x300ed7('0x1f09')]):_0x4ea514['push'](_0x33c2b4['monthFrom']):_0x4ea514['push']('*'),_0x4ea514[_0x300ed7('0x1eba')]();}}}function _0x5afe47(){const _0x4f77c4=_0x1fb470;_0x33c2b4['errors']=[],_0x33c2b4['interval'][_0x4f77c4('0x231f')]=_0x30e2f4(),_0x1dc451[_0x4f77c4('0x231f')][_0x4f77c4('0x2439')](_0x33c2b4[_0x4f77c4('0x231f')])[_0x4f77c4('0x1af5')]['then'](function(_0x273322){const _0x354ad2=_0x4f77c4;_0x33c2b4[_0x354ad2('0x1be1')][_0x354ad2('0x269f')](_0x273322),_0x5df96b[_0x354ad2('0x130d')]({'title':_0x354ad2('0x2378'),'msg':_0x33c2b4[_0x354ad2('0x231f')][_0x354ad2('0x2aa')]?_0x33c2b4['interval']['name']+_0x354ad2('0x15a'):''}),_0x312b38();})[_0x4f77c4('0x16df')](function(_0xdffd51){const _0x239910=_0x4f77c4;console['error'](_0xdffd51),_0x33c2b4[_0x239910('0x73e')]=_0xdffd51[_0x239910('0x1457')]['errors']||[{'message':_0xdffd51[_0x239910('0x9b6')](),'type':_0x239910('0x2475')}];});}function _0x39df0f(){const _0x4410ac=_0x1fb470;_0x33c2b4[_0x4410ac('0x73e')]=[],_0x33c2b4[_0x4410ac('0x231f')][_0x4410ac('0x231f')]=_0x30e2f4(),_0x33c2b4[_0x4410ac('0x231f')][_0x4410ac('0xf84')]?(_0x33c2b4[_0x4410ac('0x412')]!==_0x4410ac('0x134c')&&(_0x33c2b4['interval']['IntervalId']=null),_0x312b38(_0x33c2b4[_0x4410ac('0x231f')])):_0x1dc451[_0x4410ac('0x231f')][_0x4410ac('0x27ba')]({'id':_0x33c2b4[_0x4410ac('0x231f')]['id']},_0x33c2b4['interval'])[_0x4410ac('0x1af5')][_0x4410ac('0x17e7')](function(_0xb630e0){const _0x4e8344=_0x4410ac,_0x39bffb=_0x49cbdd()[_0x4e8344('0xe8e')](_0x33c2b4[_0x4e8344('0x1be1')],{'id':_0xb630e0['id']});_0x39bffb&&_0x49cbdd()[_0x4e8344('0x1ced')](_0x39bffb,_0xb630e0),_0x5df96b[_0x4e8344('0x130d')]({'title':_0x4e8344('0x6a9'),'msg':_0x4e8344('0x2792')}),_0x312b38();})['catch'](function(_0x37b70b){const _0x5d3a4b=_0x4410ac;console['error'](_0x37b70b),_0x33c2b4[_0x5d3a4b('0x73e')]=_0x37b70b['data'][_0x5d3a4b('0x73e')]||[{'message':_0x37b70b[_0x5d3a4b('0x9b6')](),'type':_0x5d3a4b('0xed5')}];});}function _0x312b38(_0x4a13b6){const _0x7b13fb=_0x1fb470;_0x16a279[_0x7b13fb('0x212a')](_0x4a13b6);}}const _0x3ac9ea=_0x230911;_0x11029f[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x143b'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x11029f(_0x3a3496,_0x54148b,_0x11ce42,_0x16cb4a,_0x752b43,_0x2d2f5a,_0xc8c5a2,_0x2162e4){const _0x5330d=_0x4376d8,_0x7cbc8a=this;_0x7cbc8a[_0x5330d('0x197c')]=_0xc8c5a2[_0x5330d('0x2831')](),_0x7cbc8a['errors']=[],_0x7cbc8a[_0x5330d('0x24d3')]=_0x5330d('0x1c6f')+(_0x16cb4a[_0x5330d('0x1c54')]||_0x16cb4a['app'])[_0x5330d('0x14e2')](),_0x7cbc8a[_0x5330d('0xec9')]=angular[_0x5330d('0x14e5')](_0x16cb4a),_0x7cbc8a[_0x5330d('0x103e')]=_0x2162e4,_0x7cbc8a[_0x5330d('0x6ee')]={};if(_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2077')])switch(_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x1c54')]?_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x1c54')][_0x5330d('0x19b')]():_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x643')][_0x5330d('0x19b')]()){case _0x5330d('0x8fa'):break;case _0x5330d('0x2526'):{const _0x39ad97=_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2077')][_0x5330d('0x2007')](',');_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0xdb5')]=_0x39ad97[0x0],_0x7cbc8a[_0x5330d('0xec9')]['language']=_0x39ad97[0x1],_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x1083')]=_0x39ad97[_0x5330d('0x275f')](0x2,_0x39ad97[_0x5330d('0x1f73')])[_0x5330d('0x1eba')](',');}break;case _0x5330d('0x22ac'):{const _0x233e25=_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2077')][_0x5330d('0x2007')](',');_0x7cbc8a['playback'][_0x5330d('0x28ab')]=_0x233e25[0x0],_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2814')]=_0x233e25[0x1],_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x1bc2')]=_0x233e25[0x2],_0x7cbc8a[_0x5330d('0xec9')]['language']=_0x233e25[0x3],_0x7cbc8a[_0x5330d('0xec9')]['welcomemessage']=_0x233e25[_0x5330d('0x275f')](0x4,_0x233e25['length'])[_0x5330d('0x1eba')](',');}break;case _0x5330d('0x16a9'):{const _0x59838e=_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2077')][_0x5330d('0x2007')](',');_0x7cbc8a[_0x5330d('0xec9')]['accesskeyid']=_0x59838e[0x0],_0x7cbc8a['playback'][_0x5330d('0x1a62')]=_0x59838e[0x1],_0x7cbc8a['playback'][_0x5330d('0x1dcf')]=_0x59838e[0x2],_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x4a')]=_0x59838e[0x3],_0x7cbc8a[_0x5330d('0xec9')]['welcomemessage']=_0x59838e['slice'](0x4,_0x59838e[_0x5330d('0x1f73')])['join'](',');}break;case _0x5330d('0x96e'):{const _0xdd52f6=_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2077')]['split'](',');_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x12a6')]=isNaN(_0xdd52f6[0x0])?_0xdd52f6[0x0]:parseInt(_0xdd52f6[0x0],0xa),_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x132f')]=_0xdd52f6[_0x5330d('0x275f')](0x1,_0xdd52f6['length'])['join'](',');}break;case _0x5330d('0x1603'):_0x7cbc8a[_0x5330d('0xec9')]['text']=_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2077')];break;case _0x5330d('0xf2e'):_0x7cbc8a[_0x5330d('0xec9')]['name']=_0x7cbc8a[_0x5330d('0xec9')]['appdata'][_0x5330d('0x2007')]('=')[0x0],_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x175b')]=_0x7cbc8a['playback'][_0x5330d('0x2077')][_0x5330d('0x2007')]('=')[0x1];break;case _0x5330d('0x17c6'):_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x87c')]=_0x7cbc8a[_0x5330d('0xec9')]['appdata'];break;default:{const _0x242c12=_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2077')]['split'](',');_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2077')]=_0x49cbdd()['isEmpty'](_0x242c12[0x0])?_0x242c12[0x0]:isNaN(_0x242c12[0x0])?_0x242c12[0x0]:parseInt(_0x242c12[0x0],0xa),_0x7cbc8a[_0x5330d('0xec9')]['options']=_0x49cbdd()['isEmpty'](_0x242c12[0x1])?_0x242c12[0x1]:isNaN(_0x242c12[0x1])?_0x242c12[0x1]:parseInt(_0x242c12[0x1],0xa);}break;}else{}_0x7cbc8a[_0x5330d('0xec9')]['type']&&_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x412')]['toLowerCase']()==='outbound'&&_0x7cbc8a['playback'][_0x5330d('0x1c54')][_0x5330d('0x19b')]()===_0x5330d('0x1711')&&(_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x11d4')]=_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x2154')]?_0x7cbc8a['playback']['phone'][_0x5330d('0x2007')]('$')[0x0]:undefined,_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x1a8e')]=_0x7cbc8a[_0x5330d('0xec9')][_0x5330d('0x17f4')]?_0x5330d('0x1d28')+_0x7cbc8a['playback']['callerID']:undefined);_0x7cbc8a['saveInboundRouteApp']=_0x432b45,_0x7cbc8a[_0x5330d('0x136e')]=_0x4df9f4,_0xc8c5a2[_0x5330d('0x1ba2')](_0x5330d('0x20bf'))?_0x2d2f5a[_0x5330d('0x1f64')]['get']({'fields':_0x5330d('0x584'),'sort':_0x5330d('0x2aa'),'nolimit':_0x5330d('0xe34')})['$promise']['then'](function(_0x569014){const _0x510ce0=_0x5330d;_0x7cbc8a[_0x510ce0('0x27c4')]=_0x569014[_0x510ce0('0x2319')]||[];})[_0x5330d('0x16df')](function(_0x3a5ee7){const _0xdf8bbb=_0x5330d;_0x11ce42[_0xdf8bbb('0x1db9')]({'title':_0x3a5ee7[_0xdf8bbb('0x11c5')]?_0xdf8bbb('0x14f7')+_0x3a5ee7[_0xdf8bbb('0x11c5')]+_0xdf8bbb('0x16e4')+_0x3a5ee7['statusText']:_0xdf8bbb('0x21c1'),'msg':_0x3a5ee7[_0xdf8bbb('0x1457')]?JSON['stringify'](_0x3a5ee7[_0xdf8bbb('0x1457')]):_0x3a5ee7[_0xdf8bbb('0x9b6')]()});}):_0x2d2f5a['sound'][_0x5330d('0x1c53')]({'fields':_0x5330d('0x584'),'sort':'name','nolimit':_0x5330d('0xe34')})['$promise'][_0x5330d('0x17e7')](function(_0x4cc6d6){const _0x33d196=_0x5330d;_0x7cbc8a[_0x33d196('0x27c4')]=_0x4cc6d6[_0x33d196('0x2319')]||[];})[_0x5330d('0x17e7')](function(){const _0x447fde=_0x5330d;return _0x2d2f5a['userProfileSection'][_0x447fde('0x1c53')]({'userProfileId':_0x7cbc8a['currentUser']['userProfileId'],'sectionId':0x3ef})['$promise'];})['then'](function(_0x434cc9){const _0x46b34b=_0x5330d,_0x419efc=_0x434cc9&&_0x434cc9[_0x46b34b('0x2319')]?_0x434cc9[_0x46b34b('0x2319')][0x0]:null;if(!_0x419efc){const _0x38f5ec=[];let _0x59f586=null;_0x7cbc8a[_0x46b34b('0xec9')]&&(_0x59f586=_0x49cbdd()['find'](_0x7cbc8a[_0x46b34b('0x27c4')],{'save_name':_0x7cbc8a[_0x46b34b('0xec9')][_0x46b34b('0x1f64')]}));for(let _0x376f84=0x0;_0x376f84<_0x7cbc8a[_0x46b34b('0x27c4')][_0x46b34b('0x1f73')];_0x376f84++){_0x59f586&&_0x7cbc8a['sounds'][_0x376f84]['id']===_0x59f586['id']&&(_0x7cbc8a[_0x46b34b('0x27c4')][_0x376f84][_0x46b34b('0xe5c')]=![],_0x38f5ec[_0x46b34b('0x269f')](_0x7cbc8a[_0x46b34b('0x27c4')][_0x376f84]));}_0x7cbc8a[_0x46b34b('0x27c4')]=_0x38f5ec;}else{if(!_0x419efc['autoAssociation'])return _0x2d2f5a[_0x46b34b('0x78d')]['get']({'sectionId':_0x419efc['id']})[_0x46b34b('0x1af5')][_0x46b34b('0x17e7')](function(_0x42787b){const _0x48ee2e=_0x46b34b,_0xbcacf4=_0x49cbdd()['map'](_0x42787b[_0x48ee2e('0x2319')],function(_0x35cd4a){const _0x47f8cf=_0x48ee2e;return _0x49cbdd()[_0x47f8cf('0xe8e')](_0x7cbc8a[_0x47f8cf('0x27c4')],{'id':_0x35cd4a[_0x47f8cf('0x5db')]});});let _0x1bb365=null;_0x7cbc8a['playback']&&(_0x1bb365=_0x49cbdd()[_0x48ee2e('0xe8e')](_0x7cbc8a[_0x48ee2e('0x27c4')],{'save_name':_0x7cbc8a[_0x48ee2e('0xec9')]['sound']}));if(_0x1bb365&&!_0x49cbdd()[_0x48ee2e('0x26f8')](_0xbcacf4,['id',_0x1bb365['id']])){const _0x4b2284=_0x49cbdd()[_0x48ee2e('0xe8e')](_0x7cbc8a[_0x48ee2e('0x27c4')],{'id':_0x1bb365['id']});_0x4b2284['canSelect']=![],_0xbcacf4[_0x48ee2e('0x269f')](_0x4b2284);}_0x7cbc8a[_0x48ee2e('0x27c4')]=_0xbcacf4;});}})[_0x5330d('0x16df')](function(_0xe1f463){const _0x27a522=_0x5330d;_0x11ce42[_0x27a522('0x1db9')]({'title':_0xe1f463['status']?_0x27a522('0x14f7')+_0xe1f463[_0x27a522('0x11c5')]+_0x27a522('0x16e4')+_0xe1f463['statusText']:_0x27a522('0x12a8'),'msg':_0xe1f463[_0x27a522('0x1457')]?JSON[_0x27a522('0x678')](_0xe1f463['data']):_0xe1f463[_0x27a522('0x9b6')]()});});function _0x432b45(){const _0x5ab08d=_0x5330d;_0x7cbc8a[_0x5ab08d('0x73e')]=[];const _0x12ce00=[];_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x412')]&&_0x7cbc8a['playback']['type'][_0x5ab08d('0x19b')]()==='outbound'&&_0x7cbc8a['playback'][_0x5ab08d('0x1c54')]===_0x5ab08d('0xbdc')&&(_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x2154')]=_0x752b43[_0x5ab08d('0x12af')]?(_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x11d4')]||'')+_0x5ab08d('0x2265')+_0x752b43[_0x5ab08d('0x12af')]+'}':(_0x7cbc8a[_0x5ab08d('0xec9')]['prefix']||'')+_0x5ab08d('0x150e'),_0x752b43[_0x5ab08d('0x287')]!==_0x5ab08d('0x7ee')?_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x19')][_0x5ab08d('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x19')]+=_0x5ab08d('0xa22')):_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x19')]=_0x7cbc8a[_0x5ab08d('0xec9')]['options'][_0x5ab08d('0x737')](_0x5ab08d('0xa22'),''));if(_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x1c54')]&&_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x1c54')]===_0x5ab08d('0x8fa')){}else switch((_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x643')]||_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x1c54')])[_0x5ab08d('0x19b')]()){case _0x5ab08d('0xf2e'):_0x7cbc8a[_0x5ab08d('0xec9')]['appdata']=_0x7cbc8a[_0x5ab08d('0xec9')]['name']+'='+_0x7cbc8a['playback'][_0x5ab08d('0x175b')];break;case _0x5ab08d('0x8fa'):break;default:_0x12ce00[0x0]=_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x2077')],_0x12ce00[0x1]=_0x7cbc8a['playback'][_0x5ab08d('0x19')],_0x7cbc8a[_0x5ab08d('0xec9')][_0x5ab08d('0x2077')]=_0x12ce00[_0x5ab08d('0x1eba')](',');}_0x4df9f4(_0x7cbc8a[_0x5ab08d('0xec9')]);}function _0x4df9f4(_0xb0d8ba){const _0x26239b=_0x5330d;_0x3a3496[_0x26239b('0x212a')](_0xb0d8ba);}}const _0x158bb7=_0x11029f;_0x5cfcec[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x143b'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x5cfcec(_0x2630db,_0x4af96a,_0xd6b2a9,_0x44b116,_0x4a91d1,_0x1d9ed7,_0x168012,_0x47206b){const _0x5e5c1a=_0x4376d8,_0x5a9886=this;_0x5a9886['currentUser']=_0x168012['getCurrentUser'](),_0x5a9886[_0x5e5c1a('0x73e')]=[],_0x5a9886['title']=_0x5e5c1a('0x1c6f')+(_0x44b116[_0x5e5c1a('0x1c54')]||_0x44b116['app'])['toUpperCase'](),_0x5a9886[_0x5e5c1a('0x1bd')]=angular['copy'](_0x44b116),_0x5a9886[_0x5e5c1a('0x103e')]=_0x47206b,_0x5a9886['hasModulePermissions']={};if(_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2077')])switch(_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x1c54')]?_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x1c54')][_0x5e5c1a('0x19b')]():_0x5a9886['queue']['app'][_0x5e5c1a('0x19b')]()){case _0x5e5c1a('0x8fa'):break;case'dialogflow':{const _0x2c8243=_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2077')]['split'](',');_0x5a9886['queue'][_0x5e5c1a('0xdb5')]=_0x2c8243[0x0],_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x3e1')]=_0x2c8243[0x1],_0x5a9886['queue'][_0x5e5c1a('0x1083')]=_0x2c8243['slice'](0x2,_0x2c8243['length'])[_0x5e5c1a('0x1eba')](',');}break;case _0x5e5c1a('0x22ac'):{const _0x3972f3=_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2077')][_0x5e5c1a('0x2007')](',');_0x5a9886[_0x5e5c1a('0x1bd')]['projectId']=_0x3972f3[0x0],_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2814')]=_0x3972f3[0x1],_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x1bc2')]=_0x3972f3[0x2],_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x3e1')]=_0x3972f3[0x3],_0x5a9886['queue'][_0x5e5c1a('0x1083')]=_0x3972f3[_0x5e5c1a('0x275f')](0x4,_0x3972f3['length'])['join'](',');}break;case'amazonlex':{const _0x1edbbb=_0x5a9886[_0x5e5c1a('0x1bd')]['appdata'][_0x5e5c1a('0x2007')](',');_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x1452')]=_0x1edbbb[0x0],_0x5a9886['queue']['secretaccesskey']=_0x1edbbb[0x1],_0x5a9886[_0x5e5c1a('0x1bd')]['lexregion']=_0x1edbbb[0x2],_0x5a9886['queue']['botname']=_0x1edbbb[0x3],_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x1083')]=_0x1edbbb[_0x5e5c1a('0x275f')](0x4,_0x1edbbb['length'])['join'](',');}break;case _0x5e5c1a('0x96e'):{const _0x299cc4=_0x5a9886[_0x5e5c1a('0x1bd')]['appdata'][_0x5e5c1a('0x2007')](',');_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x12a6')]=isNaN(_0x299cc4[0x0])?_0x299cc4[0x0]:parseInt(_0x299cc4[0x0],0xa),_0x5a9886['queue'][_0x5e5c1a('0x132f')]=_0x299cc4[_0x5e5c1a('0x275f')](0x1,_0x299cc4[_0x5e5c1a('0x1f73')])['join'](',');}break;case _0x5e5c1a('0x1603'):_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x132f')]=_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2077')];break;case'set':_0x5a9886['queue'][_0x5e5c1a('0x2aa')]=_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2077')][_0x5e5c1a('0x2007')]('=')[0x0],_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x175b')]=_0x5a9886['queue'][_0x5e5c1a('0x2077')][_0x5e5c1a('0x2007')]('=')[0x1];break;case _0x5e5c1a('0x17c6'):_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x87c')]=_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2077')];break;default:{const _0x264dff=_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2077')][_0x5e5c1a('0x2007')](',');_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x1bd')]=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x0])?_0x264dff[0x0]:isNaN(_0x264dff[0x0])?_0x264dff[0x0]:parseInt(_0x264dff[0x0],0xa),_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x19')]=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x1])?_0x264dff[0x1]:isNaN(_0x264dff[0x1])?_0x264dff[0x1]:parseInt(_0x264dff[0x1],0xa),_0x5a9886[_0x5e5c1a('0x1bd')]['URL']=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x2])?_0x264dff[0x2]:isNaN(_0x264dff[0x2])?_0x264dff[0x2]:parseInt(_0x264dff[0x2],0xa),_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x1f64')]=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x3])?_0x264dff[0x3]:isNaN(_0x264dff[0x3])?_0x264dff[0x3]:parseInt(_0x264dff[0x3],0xa),_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0xd2f')]=_0x49cbdd()['isEmpty'](_0x264dff[0x4])?_0x264dff[0x4]:isNaN(_0x264dff[0x4])?_0x264dff[0x4]:parseInt(_0x264dff[0x4],0xa),_0x5a9886[_0x5e5c1a('0x1bd')]['agi']=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x5])?_0x264dff[0x5]:isNaN(_0x264dff[0x5])?_0x264dff[0x5]:parseInt(_0x264dff[0x5],0xa),_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x6e1')]=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x6])?_0x264dff[0x6]:isNaN(_0x264dff[0x6])?_0x264dff[0x6]:parseInt(_0x264dff[0x6],0xa),_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x1aa9')]=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x7])?_0x264dff[0x7]:isNaN(_0x264dff[0x7])?_0x264dff[0x7]:parseInt(_0x264dff[0x7],0xa),_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x800')]=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x8])?_0x264dff[0x8]:isNaN(_0x264dff[0x8])?_0x264dff[0x8]:parseInt(_0x264dff[0x8],0xa),_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x707')]=_0x49cbdd()[_0x5e5c1a('0x109a')](_0x264dff[0x9])?_0x264dff[0x9]:isNaN(_0x264dff[0x9])?_0x264dff[0x9]:parseInt(_0x264dff[0x9],0xa);}break;}else{}_0x5a9886['queue']['type']&&_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x412')][_0x5e5c1a('0x19b')]()===_0x5e5c1a('0x1ade')&&_0x5a9886[_0x5e5c1a('0x1bd')]['appType']['toLowerCase']()===_0x5e5c1a('0x1711')&&(_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x11d4')]=_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2154')]?_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x2154')]['split']('$')[0x0]:undefined,_0x5a9886[_0x5e5c1a('0x1bd')]['callerId']=_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x17f4')]?_0x5e5c1a('0x1d28')+_0x5a9886[_0x5e5c1a('0x1bd')][_0x5e5c1a('0x17f4')]:undefined);_0x5a9886[_0x5e5c1a('0xd10')]=_0x3583ed,_0x5a9886[_0x5e5c1a('0x136e')]=_0x50d8c5,_0x168012[_0x5e5c1a('0x1ba2')](_0x5e5c1a('0x20bf'))?_0x1d9ed7[_0x5e5c1a('0x1f64')][_0x5e5c1a('0x1c53')]({'fields':_0x5e5c1a('0x584'),'sort':_0x5e5c1a('0x2aa'),'nolimit':_0x5e5c1a('0xe34')})[_0x5e5c1a('0x1af5')][_0x5e5c1a('0x17e7')](function(_0x45df21){const _0x553fc8=_0x5e5c1a;_0x5a9886[_0x553fc8('0x27c4')]=_0x45df21['rows']||[];})[_0x5e5c1a('0x16df')](function(_0x40ebde){const _0x2d9953=_0x5e5c1a;_0xd6b2a9[_0x2d9953('0x1db9')]({'title':_0x40ebde['status']?_0x2d9953('0x14f7')+_0x40ebde['status']+_0x2d9953('0x16e4')+_0x40ebde[_0x2d9953('0x1833')]:_0x2d9953('0x21c1'),'msg':_0x40ebde[_0x2d9953('0x1457')]?JSON[_0x2d9953('0x678')](_0x40ebde['data']):_0x40ebde[_0x2d9953('0x9b6')]()});}):_0x1d9ed7['sound'][_0x5e5c1a('0x1c53')]({'fields':'id,name,save_name','sort':_0x5e5c1a('0x2aa'),'nolimit':_0x5e5c1a('0xe34')})[_0x5e5c1a('0x1af5')][_0x5e5c1a('0x17e7')](function(_0x42b2a6){const _0x33e9b6=_0x5e5c1a;_0x5a9886[_0x33e9b6('0x27c4')]=_0x42b2a6[_0x33e9b6('0x2319')]||[];})[_0x5e5c1a('0x17e7')](function(){const _0x513c0f=_0x5e5c1a;return _0x1d9ed7['userProfileSection'][_0x513c0f('0x1c53')]({'userProfileId':_0x5a9886['currentUser'][_0x513c0f('0x1e76')],'sectionId':0x3ef})[_0x513c0f('0x1af5')];})[_0x5e5c1a('0x17e7')](function(_0xb58f63){const _0x2b5e71=_0x5e5c1a,_0xbbe730=_0xb58f63&&_0xb58f63[_0x2b5e71('0x2319')]?_0xb58f63[_0x2b5e71('0x2319')][0x0]:null;if(!_0xbbe730){const _0x16744c=[];let _0x4a1748=null;_0x5a9886[_0x2b5e71('0x1bd')]&&(_0x4a1748=_0x49cbdd()[_0x2b5e71('0xe8e')](_0x5a9886[_0x2b5e71('0x27c4')],{'save_name':_0x5a9886[_0x2b5e71('0x1bd')][_0x2b5e71('0x1f64')]}));for(let _0x372f83=0x0;_0x372f83<_0x5a9886[_0x2b5e71('0x27c4')][_0x2b5e71('0x1f73')];_0x372f83++){_0x4a1748&&_0x5a9886['sounds'][_0x372f83]['id']===_0x4a1748['id']&&(_0x5a9886[_0x2b5e71('0x27c4')][_0x372f83][_0x2b5e71('0xe5c')]=![],_0x16744c[_0x2b5e71('0x269f')](_0x5a9886[_0x2b5e71('0x27c4')][_0x372f83]));}_0x5a9886[_0x2b5e71('0x27c4')]=_0x16744c;}else{if(!_0xbbe730['autoAssociation'])return _0x1d9ed7[_0x2b5e71('0x78d')][_0x2b5e71('0x1c53')]({'sectionId':_0xbbe730['id']})[_0x2b5e71('0x1af5')][_0x2b5e71('0x17e7')](function(_0x47d959){const _0x5f4863=_0x2b5e71,_0x24ba2d=_0x49cbdd()[_0x5f4863('0x787')](_0x47d959[_0x5f4863('0x2319')],function(_0x61522b){const _0x327234=_0x5f4863;return _0x49cbdd()[_0x327234('0xe8e')](_0x5a9886[_0x327234('0x27c4')],{'id':_0x61522b[_0x327234('0x5db')]});});let _0x1ae908=null;_0x5a9886[_0x5f4863('0x1bd')]&&(_0x1ae908=_0x49cbdd()[_0x5f4863('0xe8e')](_0x5a9886[_0x5f4863('0x27c4')],{'save_name':_0x5a9886[_0x5f4863('0x1bd')]['sound']}));if(_0x1ae908&&!_0x49cbdd()[_0x5f4863('0x26f8')](_0x24ba2d,['id',_0x1ae908['id']])){const _0x331c9b=_0x49cbdd()[_0x5f4863('0xe8e')](_0x5a9886['sounds'],{'id':_0x1ae908['id']});_0x331c9b[_0x5f4863('0xe5c')]=![],_0x24ba2d[_0x5f4863('0x269f')](_0x331c9b);}_0x5a9886['sounds']=_0x24ba2d;});}})[_0x5e5c1a('0x16df')](function(_0x160318){const _0x486e4f=_0x5e5c1a;_0xd6b2a9[_0x486e4f('0x1db9')]({'title':_0x160318[_0x486e4f('0x11c5')]?_0x486e4f('0x14f7')+_0x160318[_0x486e4f('0x11c5')]+_0x486e4f('0x16e4')+_0x160318[_0x486e4f('0x1833')]:'SYSTEM:GETsounds','msg':_0x160318['data']?JSON['stringify'](_0x160318[_0x486e4f('0x1457')]):_0x160318['toString']()});}),_0x168012[_0x5e5c1a('0x1ba2')](_0x5e5c1a('0x20bf'))?_0x1d9ed7[_0x5e5c1a('0x1243')]['get']({'type':_0x5e5c1a('0x1e77'),'fields':_0x5e5c1a('0x960'),'sort':'name','nolimit':_0x5e5c1a('0xe34')})[_0x5e5c1a('0x1af5')][_0x5e5c1a('0x17e7')](function(_0xf37835){const _0x408808=_0x5e5c1a;_0x5a9886[_0x408808('0x14c4')]=_0xf37835[_0x408808('0x2319')]||[];})[_0x5e5c1a('0x16df')](function(_0x3e3c51){const _0x54bb86=_0x5e5c1a;_0xd6b2a9[_0x54bb86('0x1db9')]({'title':_0x3e3c51['status']?'API:'+_0x3e3c51[_0x54bb86('0x11c5')]+'\x20-\x20'+_0x3e3c51['statusText']:_0x54bb86('0x92a'),'msg':_0x3e3c51[_0x54bb86('0x1457')]?JSON[_0x54bb86('0x678')](_0x3e3c51[_0x54bb86('0x1457')]):_0x3e3c51[_0x54bb86('0x9b6')]()});}):_0x1d9ed7[_0x5e5c1a('0x1243')][_0x5e5c1a('0x1c53')]({'type':_0x5e5c1a('0x1e77'),'fields':_0x5e5c1a('0x960'),'sort':_0x5e5c1a('0x2aa'),'nolimit':'true'})[_0x5e5c1a('0x1af5')][_0x5e5c1a('0x17e7')](function(_0xa6319e){_0x5a9886['queues']=_0xa6319e['rows']||[];})['then'](function(){const _0x19ed38=_0x5e5c1a;return _0x1d9ed7[_0x19ed38('0x383')][_0x19ed38('0x1c53')]({'userProfileId':_0x5a9886[_0x19ed38('0x197c')][_0x19ed38('0x1e76')],'sectionId':0x191})[_0x19ed38('0x1af5')];})[_0x5e5c1a('0x17e7')](function(_0x53e202){const _0x407898=_0x5e5c1a,_0x33b7d7=_0x53e202&&_0x53e202['rows']?_0x53e202[_0x407898('0x2319')][0x0]:null;if(!_0x33b7d7){const _0x4ac787=[];let _0xf35304=null;_0x5a9886[_0x407898('0x1bd')]&&(_0xf35304=_0x49cbdd()[_0x407898('0xe8e')](_0x5a9886['queues'],{'name':_0x5a9886['queue'][_0x407898('0x1bd')]}));for(let _0x332526=0x0;_0x332526<_0x5a9886[_0x407898('0x14c4')][_0x407898('0x1f73')];_0x332526++){_0xf35304&&_0x5a9886[_0x407898('0x14c4')][_0x332526]['id']===_0xf35304['id']&&(_0x5a9886[_0x407898('0x14c4')][_0x332526][_0x407898('0xe5c')]=![],_0x4ac787[_0x407898('0x269f')](_0x5a9886[_0x407898('0x14c4')][_0x332526]));}_0x5a9886['queues']=_0x4ac787;}else{if(!_0x33b7d7['autoAssociation'])return _0x1d9ed7['userProfileResource'][_0x407898('0x1c53')]({'sectionId':_0x33b7d7['id']})[_0x407898('0x1af5')]['then'](function(_0x41cfdd){const _0x5cab19=_0x407898,_0x1f6593=_0x49cbdd()[_0x5cab19('0x787')](_0x41cfdd['rows'],function(_0x374c78){const _0x1b207d=_0x5cab19;return _0x49cbdd()['find'](_0x5a9886[_0x1b207d('0x14c4')],{'id':_0x374c78[_0x1b207d('0x5db')]});});let _0x34cad0=null;_0x5a9886[_0x5cab19('0x1bd')]&&(_0x34cad0=_0x49cbdd()[_0x5cab19('0xe8e')](_0x5a9886[_0x5cab19('0x14c4')],{'name':_0x5a9886['queue']['queue']}));if(_0x34cad0&&!_0x49cbdd()[_0x5cab19('0x26f8')](_0x1f6593,['id',_0x34cad0['id']])){const _0x22ae84=_0x49cbdd()['find'](_0x5a9886[_0x5cab19('0x14c4')],{'id':_0x34cad0['id']});_0x22ae84[_0x5cab19('0xe5c')]=![],_0x1f6593[_0x5cab19('0x269f')](_0x22ae84);}_0x5a9886['queues']=_0x1f6593;});}})[_0x5e5c1a('0x16df')](function(_0xa4cee5){const _0x3f4ec1=_0x5e5c1a;_0xd6b2a9[_0x3f4ec1('0x1db9')]({'title':_0xa4cee5[_0x3f4ec1('0x11c5')]?_0x3f4ec1('0x14f7')+_0xa4cee5[_0x3f4ec1('0x11c5')]+'\x20-\x20'+_0xa4cee5['statusText']:_0x3f4ec1('0xb5f'),'msg':_0xa4cee5[_0x3f4ec1('0x1457')]?JSON['stringify'](_0xa4cee5[_0x3f4ec1('0x1457')]):_0xa4cee5[_0x3f4ec1('0x9b6')]()});});function _0x3583ed(){const _0x3a261b=_0x5e5c1a;_0x5a9886[_0x3a261b('0x73e')]=[];const _0x592cd3=[];_0x5a9886[_0x3a261b('0x1bd')]['type']&&_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x412')][_0x3a261b('0x19b')]()===_0x3a261b('0x1ade')&&_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x1c54')]===_0x3a261b('0xbdc')&&(_0x5a9886['queue'][_0x3a261b('0x2154')]=_0x4a91d1[_0x3a261b('0x12af')]?(_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x11d4')]||'')+_0x3a261b('0x2265')+_0x4a91d1[_0x3a261b('0x12af')]+'}':(_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x11d4')]||'')+_0x3a261b('0x150e'),_0x4a91d1[_0x3a261b('0x287')]!==_0x3a261b('0x7ee')?_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x19')][_0x3a261b('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x19')]+=_0x3a261b('0xa22')):_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x19')]=_0x5a9886[_0x3a261b('0x1bd')]['options'][_0x3a261b('0x737')](_0x3a261b('0xa22'),''));if(_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x1c54')]&&_0x5a9886['queue'][_0x3a261b('0x1c54')]===_0x3a261b('0x8fa')){}else switch((_0x5a9886['queue']['app']||_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x1c54')])[_0x3a261b('0x19b')]()){case'set':_0x5a9886['queue'][_0x3a261b('0x2077')]=_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x2aa')]+'='+_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x175b')];break;case _0x3a261b('0x8fa'):break;default:_0x592cd3[0x0]=_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x1bd')],_0x592cd3[0x1]=_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x19')],_0x592cd3[0x2]=_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0xa8f')],_0x592cd3[0x3]=_0x5a9886['queue'][_0x3a261b('0x1f64')],_0x592cd3[0x4]=_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0xd2f')],_0x592cd3[0x5]=_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x17c6')],_0x592cd3[0x6]=_0x5a9886['queue'][_0x3a261b('0x6e1')],_0x592cd3[0x7]=_0x5a9886[_0x3a261b('0x1bd')]['gosub'],_0x592cd3[0x8]=_0x5a9886[_0x3a261b('0x1bd')][_0x3a261b('0x800')],_0x592cd3[0x9]=_0x5a9886['queue'][_0x3a261b('0x707')],_0x5a9886[_0x3a261b('0x1bd')]['appdata']=_0x592cd3['join'](',');}_0x50d8c5(_0x5a9886[_0x3a261b('0x1bd')]);}function _0x50d8c5(_0x27d5f1){const _0x1edd74=_0x5e5c1a;_0x2630db[_0x1edd74('0x212a')](_0x27d5f1);}}const _0x2e9d44=_0x5cfcec;_0x9c74a1['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x143b'),'inboundroute','api',_0x4376d8('0x1885'),'crudPermissions'];function _0x9c74a1(_0x248486,_0x2e994b,_0x3e644d,_0x14d796,_0x416555,_0x35ded2,_0x11e68e,_0x285487){const _0x3bdeac=_0x4376d8,_0x421c2b=this;_0x421c2b['currentUser']=_0x11e68e[_0x3bdeac('0x2831')](),_0x421c2b['errors']=[],_0x421c2b['title']='VOICE.EDIT_'+(_0x14d796[_0x3bdeac('0x1c54')]||_0x14d796[_0x3bdeac('0x643')])[_0x3bdeac('0x14e2')](),_0x421c2b[_0x3bdeac('0x790')]=angular[_0x3bdeac('0x14e5')](_0x14d796),_0x421c2b['crudPermissions']=_0x285487,_0x421c2b[_0x3bdeac('0x6ee')]={};if(_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x2077')])switch(_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x1c54')]?_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x1c54')][_0x3bdeac('0x19b')]():_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x643')][_0x3bdeac('0x19b')]()){case _0x3bdeac('0x8fa'):break;case _0x3bdeac('0x2526'):{const _0xbcc405=_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x2077')][_0x3bdeac('0x2007')](',');_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0xdb5')]=_0xbcc405[0x0],_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x3e1')]=_0xbcc405[0x1],_0x421c2b['ringgroup'][_0x3bdeac('0x1083')]=_0xbcc405['slice'](0x2,_0xbcc405[_0x3bdeac('0x1f73')])[_0x3bdeac('0x1eba')](',');}break;case _0x3bdeac('0x22ac'):{const _0x3678e4=_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x2077')][_0x3bdeac('0x2007')](',');_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x28ab')]=_0x3678e4[0x0],_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x2814')]=_0x3678e4[0x1],_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x1bc2')]=_0x3678e4[0x2],_0x421c2b[_0x3bdeac('0x790')]['language']=_0x3678e4[0x3],_0x421c2b['ringgroup'][_0x3bdeac('0x1083')]=_0x3678e4[_0x3bdeac('0x275f')](0x4,_0x3678e4[_0x3bdeac('0x1f73')])['join'](',');}break;case _0x3bdeac('0x16a9'):{const _0x483191=_0x421c2b['ringgroup'][_0x3bdeac('0x2077')][_0x3bdeac('0x2007')](',');_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x1452')]=_0x483191[0x0],_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x1a62')]=_0x483191[0x1],_0x421c2b[_0x3bdeac('0x790')]['lexregion']=_0x483191[0x2],_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x4a')]=_0x483191[0x3],_0x421c2b['ringgroup'][_0x3bdeac('0x1083')]=_0x483191[_0x3bdeac('0x275f')](0x4,_0x483191[_0x3bdeac('0x1f73')])[_0x3bdeac('0x1eba')](',');}break;case _0x3bdeac('0x96e'):{const _0x294c0f=_0x421c2b['ringgroup'][_0x3bdeac('0x2077')][_0x3bdeac('0x2007')](',');_0x421c2b['ringgroup'][_0x3bdeac('0x12a6')]=isNaN(_0x294c0f[0x0])?_0x294c0f[0x0]:parseInt(_0x294c0f[0x0],0xa),_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x132f')]=_0x294c0f[_0x3bdeac('0x275f')](0x1,_0x294c0f[_0x3bdeac('0x1f73')])[_0x3bdeac('0x1eba')](',');}break;case'message':_0x421c2b[_0x3bdeac('0x790')]['text']=_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x2077')];break;case _0x3bdeac('0xf2e'):_0x421c2b['ringgroup'][_0x3bdeac('0x2aa')]=_0x421c2b[_0x3bdeac('0x790')]['appdata'][_0x3bdeac('0x2007')]('=')[0x0],_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x175b')]=_0x421c2b[_0x3bdeac('0x790')]['appdata'][_0x3bdeac('0x2007')]('=')[0x1];break;case _0x3bdeac('0x17c6'):_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x87c')]=_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x2077')];break;default:{const _0x4a57dd=_0x421c2b[_0x3bdeac('0x790')]['appdata'][_0x3bdeac('0x2007')](',');_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x212f')]=_0x4a57dd[0x0][_0x3bdeac('0x2007')]('&'),_0x421c2b['ringgroup'][_0x3bdeac('0xd2f')]=_0x49cbdd()[_0x3bdeac('0x109a')](_0x4a57dd[0x1])?_0x4a57dd[0x1]:isNaN(_0x4a57dd[0x1])?_0x4a57dd[0x1]:parseInt(_0x4a57dd[0x1],0xa),_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x19')]=_0x49cbdd()['isEmpty'](_0x4a57dd[0x2])?_0x4a57dd[0x2]:isNaN(_0x4a57dd[0x2])?_0x4a57dd[0x2]:parseInt(_0x4a57dd[0x2],0xa),_0x421c2b[_0x3bdeac('0x790')]['url']=_0x49cbdd()[_0x3bdeac('0x109a')](_0x4a57dd[0x3])?_0x4a57dd[0x3]:isNaN(_0x4a57dd[0x3])?_0x4a57dd[0x3]:parseInt(_0x4a57dd[0x3],0xa);}break;}else{}_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x412')]&&_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x412')]['toLowerCase']()===_0x3bdeac('0x1ade')&&_0x421c2b[_0x3bdeac('0x790')]['appType'][_0x3bdeac('0x19b')]()===_0x3bdeac('0x1711')&&(_0x421c2b[_0x3bdeac('0x790')]['prefix']=_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x2154')]?_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x2154')][_0x3bdeac('0x2007')]('$')[0x0]:undefined,_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x1a8e')]=_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x17f4')]?_0x3bdeac('0x1d28')+_0x421c2b[_0x3bdeac('0x790')][_0x3bdeac('0x17f4')]:undefined);_0x421c2b[_0x3bdeac('0xd10')]=_0x2f6e99,_0x421c2b[_0x3bdeac('0x136e')]=_0x2a688a;const _0x3f8ddb=[{'id':0xca,'role':_0x3bdeac('0x684')},{'id':0xcb,'role':_0x3bdeac('0x21b5')}];let _0x55fac0=null;_0x11e68e[_0x3bdeac('0x1ba2')](_0x3bdeac('0x20bf'))?_0x35ded2['user'][_0x3bdeac('0x1c53')]({'fields':_0x3bdeac('0x1635'),'sort':'name','nolimit':_0x3bdeac('0xe34')})[_0x3bdeac('0x1af5')][_0x3bdeac('0x17e7')](function(_0x5bd32d){const _0x4284cb=_0x3bdeac;_0x421c2b[_0x4284cb('0x12ed')]=_0x5bd32d['rows']||[];})[_0x3bdeac('0x16df')](function(_0x21367d){const _0xce16db=_0x3bdeac;_0x3e644d[_0xce16db('0x1db9')]({'title':_0x21367d[_0xce16db('0x11c5')]?_0xce16db('0x14f7')+_0x21367d['status']+_0xce16db('0x16e4')+_0x21367d[_0xce16db('0x1833')]:_0xce16db('0x8a9'),'msg':_0x21367d[_0xce16db('0x1457')]?JSON[_0xce16db('0x678')](_0x21367d[_0xce16db('0x1457')]):_0x21367d['toString']()});}):_0x35ded2[_0x3bdeac('0x221e')][_0x3bdeac('0x1c53')]({'fields':'id,name,role','sort':_0x3bdeac('0x2aa'),'nolimit':_0x3bdeac('0xe34')})[_0x3bdeac('0x1af5')][_0x3bdeac('0x17e7')](function(_0x5a9e19){const _0x2dd0a1=_0x3bdeac;_0x55fac0=_0x5a9e19[_0x2dd0a1('0x2319')]||[];})[_0x3bdeac('0x17e7')](function(){const _0x21591e=_0x3bdeac,_0xcb49e5=[];for(let _0x20bf0d=0x0;_0x20bf0d<_0x3f8ddb[_0x21591e('0x1f73')];_0x20bf0d++){_0xcb49e5['push'](_0x35ded2['userProfileSection'][_0x21591e('0x1c53')]({'userProfileId':_0x421c2b[_0x21591e('0x197c')]['userProfileId'],'sectionId':_0x3f8ddb[_0x20bf0d]['id']})[_0x21591e('0x1af5')]);}return _0x2e994b[_0x21591e('0x1283')](_0xcb49e5);})[_0x3bdeac('0x17e7')](function(_0x36fcd2){const _0x27c6a5=_0x3bdeac,_0x191d5a=_0x49cbdd()['map'](_0x36fcd2,function(_0x4213c9){const _0x29b485=a0_0xd29e;return _0x4213c9&&_0x4213c9[_0x29b485('0x2319')]?_0x4213c9[_0x29b485('0x2319')][0x0]:null;}),_0x92d8ab=[];for(let _0x5197da=0x0;_0x5197da<_0x3f8ddb[_0x27c6a5('0x1f73')];_0x5197da++){const _0x1d20e6=_0x49cbdd()['find'](_0x191d5a,['sectionId',_0x3f8ddb[_0x5197da]['id']]);if(_0x1d20e6){if(!_0x1d20e6[_0x27c6a5('0x9e3')])_0x92d8ab[_0x27c6a5('0x269f')](_0x35ded2[_0x27c6a5('0x78d')]['get']({'sectionId':_0x1d20e6['id']})[_0x27c6a5('0x1af5')]);else{const _0x5b64f0=[];_0x55fac0[_0x27c6a5('0xccd')](function(_0x39f2f8){const _0xfb2fc3=_0x27c6a5;_0x39f2f8[_0xfb2fc3('0x1085')]===_0x3f8ddb[_0x5197da][_0xfb2fc3('0x1085')]&&_0x5b64f0['push'](_0x39f2f8);}),_0x92d8ab[_0x27c6a5('0x269f')]({'rows':_0x5b64f0,'count':_0x5b64f0[_0x27c6a5('0x1f73')]});}}}return _0x2e994b[_0x27c6a5('0x1283')](_0x92d8ab);})[_0x3bdeac('0x17e7')](function(_0x354ed6){const _0x5da934=_0x3bdeac,_0x15b575=[];let _0x486ebf=null;_0x421c2b[_0x5da934('0x790')]&&(_0x486ebf=_0x49cbdd()['find'](_0x55fac0,{'name':_0x421c2b[_0x5da934('0x790')][_0x5da934('0x212f')]}));for(let _0x2d9df3=0x0;_0x2d9df3<_0x354ed6[_0x5da934('0x1f73')];_0x2d9df3++){const _0x1ecc1c=_0x354ed6[_0x2d9df3][_0x5da934('0x2319')]||[];_0x1ecc1c['forEach'](function(_0x480f7d){const _0x5095a2=_0x5da934;_0x15b575[_0x5095a2('0x269f')](_0x480f7d);});}_0x486ebf&&!_0x49cbdd()[_0x5da934('0x26f8')](_0x15b575,[_0x5da934('0x5db'),_0x486ebf['id']])&&_0x55fac0[_0x5da934('0xccd')](function(_0x3d757e){const _0x222427=_0x5da934;_0x3d757e['id']===_0x486ebf['id']&&(_0x3d757e[_0x222427('0xe5c')]=![],_0x15b575[_0x222427('0x269f')](_0x3d757e));}),_0x421c2b['users']=_0x15b575;})[_0x3bdeac('0x16df')](function(_0x21a046){const _0x2e492e=_0x3bdeac;_0x3e644d[_0x2e492e('0x1db9')]({'title':_0x21a046[_0x2e492e('0x11c5')]?_0x2e492e('0x14f7')+_0x21a046[_0x2e492e('0x11c5')]+_0x2e492e('0x16e4')+_0x21a046[_0x2e492e('0x1833')]:_0x2e492e('0x10da'),'msg':_0x21a046[_0x2e492e('0x1457')]?JSON['stringify'](_0x21a046[_0x2e492e('0x1457')]):_0x21a046[_0x2e492e('0x9b6')]()});});function _0x2f6e99(){const _0x179ccf=_0x3bdeac;_0x421c2b[_0x179ccf('0x73e')]=[];const _0x38b2bf=[];_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x412')]&&_0x421c2b[_0x179ccf('0x790')]['type'][_0x179ccf('0x19b')]()===_0x179ccf('0x1ade')&&_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x1c54')]===_0x179ccf('0xbdc')&&(_0x421c2b['ringgroup'][_0x179ccf('0x2154')]=_0x416555[_0x179ccf('0x12af')]?(_0x421c2b[_0x179ccf('0x790')]['prefix']||'')+_0x179ccf('0x2265')+_0x416555['cutdigits']+'}':(_0x421c2b[_0x179ccf('0x790')]['prefix']||'')+_0x179ccf('0x150e'),_0x416555[_0x179ccf('0x287')]!=='none'?_0x421c2b[_0x179ccf('0x790')]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x19')]+=_0x179ccf('0xa22')):_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x19')]=_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x19')][_0x179ccf('0x737')](_0x179ccf('0xa22'),''));if(_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x1c54')]&&_0x421c2b['ringgroup'][_0x179ccf('0x1c54')]===_0x179ccf('0x8fa')){}else switch((_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x643')]||_0x421c2b['ringgroup'][_0x179ccf('0x1c54')])[_0x179ccf('0x19b')]()){case _0x179ccf('0xf2e'):_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x2077')]=_0x421c2b[_0x179ccf('0x790')]['name']+'='+_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x175b')];break;case _0x179ccf('0x8fa'):break;default:_0x38b2bf[0x0]=_0x421c2b['ringgroup']['multipleUsers'][_0x179ccf('0x1eba')]('&'),_0x38b2bf[0x1]=_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0xd2f')],_0x38b2bf[0x2]=_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x19')],_0x38b2bf[0x3]=_0x421c2b[_0x179ccf('0x790')][_0x179ccf('0x101e')],_0x421c2b[_0x179ccf('0x790')]['appdata']=_0x38b2bf[_0x179ccf('0x1eba')](',');}_0x2a688a(_0x421c2b[_0x179ccf('0x790')]);}function _0x2a688a(_0x35299d){_0x248486['hide'](_0x35299d);}}const _0x43e973=_0x9c74a1;_0x195c5c['$inject']=['$mdDialog','$q','toasty',_0x4376d8('0x143b'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x195c5c(_0x4d33fb,_0x2e703a,_0x255522,_0xa26dca,_0x416e35,_0x2480dd,_0x497d34,_0x56fa86){const _0x1c3c14=_0x4376d8,_0xaa8586=this;_0xaa8586[_0x1c3c14('0x197c')]=_0x497d34[_0x1c3c14('0x2831')](),_0xaa8586[_0x1c3c14('0x73e')]=[],_0xaa8586[_0x1c3c14('0x24d3')]=_0x1c3c14('0x1c6f')+(_0xa26dca[_0x1c3c14('0x1c54')]||_0xa26dca['app'])['toUpperCase'](),_0xaa8586['set']=angular['copy'](_0xa26dca),_0xaa8586[_0x1c3c14('0x103e')]=_0x56fa86,_0xaa8586[_0x1c3c14('0x6ee')]={};if(_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x2077')])switch(_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x1c54')]?_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x1c54')][_0x1c3c14('0x19b')]():_0xaa8586['set'][_0x1c3c14('0x643')][_0x1c3c14('0x19b')]()){case _0x1c3c14('0x8fa'):break;case'dialogflow':{const _0x3b17ef=_0xaa8586['set'][_0x1c3c14('0x2077')][_0x1c3c14('0x2007')](',');_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0xdb5')]=_0x3b17ef[0x0],_0xaa8586['set'][_0x1c3c14('0x3e1')]=_0x3b17ef[0x1],_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x1083')]=_0x3b17ef[_0x1c3c14('0x275f')](0x2,_0x3b17ef[_0x1c3c14('0x1f73')])['join'](',');}break;case _0x1c3c14('0x22ac'):{const _0xdeebd7=_0xaa8586[_0x1c3c14('0xf2e')]['appdata']['split'](',');_0xaa8586['set'][_0x1c3c14('0x28ab')]=_0xdeebd7[0x0],_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x2814')]=_0xdeebd7[0x1],_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x1bc2')]=_0xdeebd7[0x2],_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x3e1')]=_0xdeebd7[0x3],_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x1083')]=_0xdeebd7[_0x1c3c14('0x275f')](0x4,_0xdeebd7['length'])[_0x1c3c14('0x1eba')](',');}break;case'amazonlex':{const _0x49ac34=_0xaa8586['set'][_0x1c3c14('0x2077')]['split'](',');_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x1452')]=_0x49ac34[0x0],_0xaa8586['set']['secretaccesskey']=_0x49ac34[0x1],_0xaa8586['set'][_0x1c3c14('0x1dcf')]=_0x49ac34[0x2],_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x4a')]=_0x49ac34[0x3],_0xaa8586['set']['welcomemessage']=_0x49ac34[_0x1c3c14('0x275f')](0x4,_0x49ac34[_0x1c3c14('0x1f73')])['join'](',');}break;case _0x1c3c14('0x96e'):{const _0x4e167d=_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x2077')][_0x1c3c14('0x2007')](',');_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x12a6')]=isNaN(_0x4e167d[0x0])?_0x4e167d[0x0]:parseInt(_0x4e167d[0x0],0xa),_0xaa8586['set'][_0x1c3c14('0x132f')]=_0x4e167d[_0x1c3c14('0x275f')](0x1,_0x4e167d[_0x1c3c14('0x1f73')])[_0x1c3c14('0x1eba')](',');}break;case _0x1c3c14('0x1603'):_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x132f')]=_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x2077')];break;case _0x1c3c14('0xf2e'):_0xaa8586['set']['name']=_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x2077')][_0x1c3c14('0x2007')]('=')[0x0],_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x175b')]=_0xaa8586[_0x1c3c14('0xf2e')]['appdata'][_0x1c3c14('0x2007')]('=')[0x1];break;case _0x1c3c14('0x17c6'):_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x87c')]=_0xaa8586[_0x1c3c14('0xf2e')]['appdata'];break;default:{const _0x1471ba=_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x2077')][_0x1c3c14('0x2007')]('=');_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x2aa')]=_0x49cbdd()[_0x1c3c14('0x109a')](_0x1471ba[0x0])?_0x1471ba[0x0]:isNaN(_0x1471ba[0x0])?_0x1471ba[0x0]:parseInt(_0x1471ba[0x0],0xa),_0xaa8586[_0x1c3c14('0xf2e')]['value']=_0x49cbdd()[_0x1c3c14('0x109a')](_0x1471ba[0x1])?_0x1471ba[0x1]:isNaN(_0x1471ba[0x1])?_0x1471ba[0x1]:parseInt(_0x1471ba[0x1],0xa);}break;}else{}_0xaa8586['set'][_0x1c3c14('0x412')]&&_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x412')]['toLowerCase']()===_0x1c3c14('0x1ade')&&_0xaa8586[_0x1c3c14('0xf2e')]['appType'][_0x1c3c14('0x19b')]()===_0x1c3c14('0x1711')&&(_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x11d4')]=_0xaa8586[_0x1c3c14('0xf2e')]['phone']?_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x2154')][_0x1c3c14('0x2007')]('$')[0x0]:undefined,_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x1a8e')]=_0xaa8586['set'][_0x1c3c14('0x17f4')]?_0x1c3c14('0x1d28')+_0xaa8586[_0x1c3c14('0xf2e')][_0x1c3c14('0x17f4')]:undefined);_0xaa8586[_0x1c3c14('0xd10')]=_0x4b9307,_0xaa8586['closeDialog']=_0x3e5aaf,_0x497d34[_0x1c3c14('0x1ba2')](_0x1c3c14('0x20bf'))?_0x2480dd[_0x1c3c14('0xb0a')][_0x1c3c14('0x1c53')]({'fields':_0x1c3c14('0x12d2'),'sort':_0x1c3c14('0x2aa'),'nolimit':_0x1c3c14('0xe34')})[_0x1c3c14('0x1af5')]['then'](function(_0x352336){const _0x5a169d=_0x1c3c14;_0xaa8586[_0x5a169d('0xd26')]=_0x352336[_0x5a169d('0x2319')]||[];})[_0x1c3c14('0x16df')](function(_0x1ea1a8){const _0x4c241c=_0x1c3c14;_0x255522[_0x4c241c('0x1db9')]({'title':_0x1ea1a8[_0x4c241c('0x11c5')]?_0x4c241c('0x14f7')+_0x1ea1a8['status']+_0x4c241c('0x16e4')+_0x1ea1a8[_0x4c241c('0x1833')]:'SYSTEM:GET_VARIABLES','msg':_0x1ea1a8[_0x4c241c('0x1457')]?JSON[_0x4c241c('0x678')](_0x1ea1a8[_0x4c241c('0x1457')]):_0x1ea1a8[_0x4c241c('0x9b6')]()});}):_0x2480dd['variable'][_0x1c3c14('0x1c53')]({'fields':_0x1c3c14('0x12d2'),'sort':_0x1c3c14('0x2aa'),'nolimit':_0x1c3c14('0xe34')})[_0x1c3c14('0x1af5')][_0x1c3c14('0x17e7')](function(_0x2ec88e){const _0x2e29e2=_0x1c3c14;_0xaa8586[_0x2e29e2('0xd26')]=_0x2ec88e[_0x2e29e2('0x2319')]||[];})[_0x1c3c14('0x17e7')](function(){const _0x5444c4=_0x1c3c14;return _0x2480dd[_0x5444c4('0x383')][_0x5444c4('0x1c53')]({'userProfileId':_0xaa8586['currentUser'][_0x5444c4('0x1e76')],'sectionId':0x3f4})[_0x5444c4('0x1af5')];})[_0x1c3c14('0x17e7')](function(_0x27bd4c){const _0x287219=_0x1c3c14,_0x11db50=_0x27bd4c&&_0x27bd4c['rows']?_0x27bd4c[_0x287219('0x2319')][0x0]:null;if(!_0x11db50){const _0x506e8a=[];let _0x1b2979=null;_0xaa8586['set']&&(_0x1b2979=_0x49cbdd()[_0x287219('0xe8e')](_0xaa8586[_0x287219('0xd26')],{'name':_0xaa8586[_0x287219('0xf2e')][_0x287219('0x2aa')]}));for(let _0x2ea963=0x0;_0x2ea963<_0xaa8586[_0x287219('0xd26')][_0x287219('0x1f73')];_0x2ea963++){_0x1b2979&&_0xaa8586[_0x287219('0xd26')][_0x2ea963]['id']===_0x1b2979['id']&&(_0xaa8586[_0x287219('0xd26')][_0x2ea963][_0x287219('0xe5c')]=![],_0x506e8a[_0x287219('0x269f')](_0xaa8586[_0x287219('0xd26')][_0x2ea963]));}_0xaa8586[_0x287219('0xd26')]=_0x506e8a;}else{if(!_0x11db50[_0x287219('0x9e3')])return _0x2480dd[_0x287219('0x78d')][_0x287219('0x1c53')]({'sectionId':_0x11db50['id']})[_0x287219('0x1af5')][_0x287219('0x17e7')](function(_0x2217fb){const _0x223a4c=_0x287219,_0x4ab791=_0x49cbdd()['map'](_0x2217fb[_0x223a4c('0x2319')],function(_0x4831d9){const _0x3b8b44=_0x223a4c;return _0x49cbdd()['find'](_0xaa8586['variables'],{'id':_0x4831d9[_0x3b8b44('0x5db')]});});let _0xfa35a2=null;_0xaa8586['set']&&(_0xfa35a2=_0x49cbdd()['find'](_0xaa8586['variables'],{'name':_0xaa8586[_0x223a4c('0xf2e')][_0x223a4c('0x2aa')]}));if(_0xfa35a2&&!_0x49cbdd()[_0x223a4c('0x26f8')](_0x4ab791,['id',_0xfa35a2['id']])){const _0x2d640d=_0x49cbdd()[_0x223a4c('0xe8e')](_0xaa8586[_0x223a4c('0xd26')],{'id':_0xfa35a2['id']});_0x2d640d[_0x223a4c('0xe5c')]=![],_0x4ab791[_0x223a4c('0x269f')](_0x2d640d);}_0xaa8586[_0x223a4c('0xd26')]=_0x4ab791;});}})[_0x1c3c14('0x16df')](function(_0x4f0757){const _0x1fed5d=_0x1c3c14;_0x255522[_0x1fed5d('0x1db9')]({'title':_0x4f0757[_0x1fed5d('0x11c5')]?'API:'+_0x4f0757[_0x1fed5d('0x11c5')]+_0x1fed5d('0x16e4')+_0x4f0757[_0x1fed5d('0x1833')]:'SYSTEM:GETvariables','msg':_0x4f0757[_0x1fed5d('0x1457')]?JSON[_0x1fed5d('0x678')](_0x4f0757[_0x1fed5d('0x1457')]):_0x4f0757[_0x1fed5d('0x9b6')]()});});function _0x4b9307(){const _0x3a4dc9=_0x1c3c14;_0xaa8586['errors']=[];const _0xd7970a=[];_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x412')]&&_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x412')][_0x3a4dc9('0x19b')]()===_0x3a4dc9('0x1ade')&&_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x1c54')]===_0x3a4dc9('0xbdc')&&(_0xaa8586[_0x3a4dc9('0xf2e')]['phone']=_0x416e35[_0x3a4dc9('0x12af')]?(_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x11d4')]||'')+_0x3a4dc9('0x2265')+_0x416e35[_0x3a4dc9('0x12af')]+'}':(_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x11d4')]||'')+_0x3a4dc9('0x150e'),_0x416e35[_0x3a4dc9('0x287')]!==_0x3a4dc9('0x7ee')?_0xaa8586[_0x3a4dc9('0xf2e')]['options'][_0x3a4dc9('0x2567')](_0x3a4dc9('0xa22'))<0x0&&(_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x19')]+='U(xcally-mixmonitor-context)'):_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x19')]=_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x19')][_0x3a4dc9('0x737')]('U(xcally-mixmonitor-context)',''));if(_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x1c54')]&&_0xaa8586[_0x3a4dc9('0xf2e')]['appType']==='custom'){}else switch((_0xaa8586[_0x3a4dc9('0xf2e')]['app']||_0xaa8586[_0x3a4dc9('0xf2e')]['appType'])['toLowerCase']()){case _0x3a4dc9('0xf2e'):_0xaa8586['set'][_0x3a4dc9('0x2077')]=_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x2aa')]+'='+_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x175b')];break;case'custom':break;default:_0xd7970a[0x0]=_0xaa8586[_0x3a4dc9('0xf2e')]['name'],_0xd7970a[0x1]=_0xaa8586[_0x3a4dc9('0xf2e')]['value'],_0xaa8586[_0x3a4dc9('0xf2e')][_0x3a4dc9('0x2077')]=_0xd7970a[_0x3a4dc9('0x1eba')]('=');}_0x3e5aaf(_0xaa8586[_0x3a4dc9('0xf2e')]);}function _0x3e5aaf(_0x258d0c){const _0x25511f=_0x1c3c14;_0x4d33fb[_0x25511f('0x212a')](_0x258d0c);}}const _0x13e702=_0x195c5c;_0x1ca174[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x143b'),_0x4376d8('0xf58'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x1ca174(_0x57cf1c,_0x2f46d1,_0x58d6cf,_0x5b2c60,_0x3b82a5,_0x3d1f71,_0x1a8e17,_0x28cdf5){const _0x4fb20f=_0x4376d8,_0x1f2c82=this;_0x1f2c82[_0x4fb20f('0x197c')]=_0x1a8e17[_0x4fb20f('0x2831')](),_0x1f2c82[_0x4fb20f('0x73e')]=[],_0x1f2c82[_0x4fb20f('0x24d3')]=_0x4fb20f('0x1c6f')+(_0x5b2c60[_0x4fb20f('0x1c54')]||_0x5b2c60[_0x4fb20f('0x643')])[_0x4fb20f('0x14e2')](),_0x1f2c82[_0x4fb20f('0x27c8')]=angular[_0x4fb20f('0x14e5')](_0x5b2c60),_0x1f2c82[_0x4fb20f('0x103e')]=_0x28cdf5,_0x1f2c82[_0x4fb20f('0x6ee')]={};if(_0x1f2c82[_0x4fb20f('0x27c8')]['appdata'])switch(_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x1c54')]?_0x1f2c82['voicemail'][_0x4fb20f('0x1c54')][_0x4fb20f('0x19b')]():_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x643')]['toLowerCase']()){case'custom':break;case'dialogflow':{const _0xcbbe22=_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x2077')]['split'](',');_0x1f2c82['voicemail']['key']=_0xcbbe22[0x0],_0x1f2c82['voicemail'][_0x4fb20f('0x3e1')]=_0xcbbe22[0x1],_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x1083')]=_0xcbbe22[_0x4fb20f('0x275f')](0x2,_0xcbbe22[_0x4fb20f('0x1f73')])[_0x4fb20f('0x1eba')](',');}break;case _0x4fb20f('0x22ac'):{const _0x513e3b=_0x1f2c82[_0x4fb20f('0x27c8')]['appdata']['split'](',');_0x1f2c82['voicemail'][_0x4fb20f('0x28ab')]=_0x513e3b[0x0],_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x2814')]=_0x513e3b[0x1],_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x1bc2')]=_0x513e3b[0x2],_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x3e1')]=_0x513e3b[0x3],_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x1083')]=_0x513e3b[_0x4fb20f('0x275f')](0x4,_0x513e3b['length'])[_0x4fb20f('0x1eba')](',');}break;case _0x4fb20f('0x16a9'):{const _0x2fcdb8=_0x1f2c82['voicemail'][_0x4fb20f('0x2077')][_0x4fb20f('0x2007')](',');_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x1452')]=_0x2fcdb8[0x0],_0x1f2c82['voicemail']['secretaccesskey']=_0x2fcdb8[0x1],_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x1dcf')]=_0x2fcdb8[0x2],_0x1f2c82[_0x4fb20f('0x27c8')]['botname']=_0x2fcdb8[0x3],_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x1083')]=_0x2fcdb8[_0x4fb20f('0x275f')](0x4,_0x2fcdb8['length'])[_0x4fb20f('0x1eba')](',');}break;case _0x4fb20f('0x96e'):{const _0x5b228f=_0x1f2c82[_0x4fb20f('0x27c8')]['appdata']['split'](',');_0x1f2c82['voicemail']['times']=isNaN(_0x5b228f[0x0])?_0x5b228f[0x0]:parseInt(_0x5b228f[0x0],0xa),_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x132f')]=_0x5b228f['slice'](0x1,_0x5b228f[_0x4fb20f('0x1f73')])[_0x4fb20f('0x1eba')](',');}break;case'message':_0x1f2c82[_0x4fb20f('0x27c8')]['text']=_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x2077')];break;case _0x4fb20f('0xf2e'):_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x2aa')]=_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x2077')][_0x4fb20f('0x2007')]('=')[0x0],_0x1f2c82['voicemail'][_0x4fb20f('0x175b')]=_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x2077')][_0x4fb20f('0x2007')]('=')[0x1];break;case _0x4fb20f('0x17c6'):_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x87c')]=_0x1f2c82[_0x4fb20f('0x27c8')]['appdata'];break;default:{const _0x11535d=_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x2077')][_0x4fb20f('0x2007')](',');_0x1f2c82[_0x4fb20f('0x27c8')]['voiceMail']=_0x49cbdd()[_0x4fb20f('0x109a')](_0x11535d[0x0])?_0x11535d[0x0]:isNaN(_0x11535d[0x0])?_0x11535d[0x0]:parseInt(_0x11535d[0x0],0xa),_0x1f2c82['voicemail'][_0x4fb20f('0x19')]=_0x49cbdd()[_0x4fb20f('0x109a')](_0x11535d[0x1])?_0x11535d[0x1]:isNaN(_0x11535d[0x1])?_0x11535d[0x1]:parseInt(_0x11535d[0x1],0xa);}break;}else{}_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x412')]&&_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x412')][_0x4fb20f('0x19b')]()==='outbound'&&_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x1c54')][_0x4fb20f('0x19b')]()===_0x4fb20f('0x1711')&&(_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x11d4')]=_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x2154')]?_0x1f2c82['voicemail'][_0x4fb20f('0x2154')][_0x4fb20f('0x2007')]('$')[0x0]:undefined,_0x1f2c82['voicemail'][_0x4fb20f('0x1a8e')]=_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x17f4')]?_0x4fb20f('0x1d28')+_0x1f2c82[_0x4fb20f('0x27c8')][_0x4fb20f('0x17f4')]:undefined);_0x1f2c82[_0x4fb20f('0xd10')]=_0x384ede,_0x1f2c82[_0x4fb20f('0x136e')]=_0x431378,_0x1a8e17['hasRole']('admin')?_0x3d1f71['voiceMail']['get']({'fields':_0x4fb20f('0x107a'),'sort':_0x4fb20f('0x25c6'),'nolimit':_0x4fb20f('0xe34')})[_0x4fb20f('0x1af5')][_0x4fb20f('0x17e7')](function(_0x3cb283){const _0x320192=_0x4fb20f;_0x1f2c82[_0x320192('0x15f1')]=_0x3cb283[_0x320192('0x2319')]||[];})[_0x4fb20f('0x16df')](function(_0x12d43a){const _0x46c074=_0x4fb20f;_0x58d6cf[_0x46c074('0x1db9')]({'title':_0x12d43a[_0x46c074('0x11c5')]?_0x46c074('0x14f7')+_0x12d43a['status']+_0x46c074('0x16e4')+_0x12d43a['statusText']:_0x46c074('0x116b'),'msg':_0x12d43a[_0x46c074('0x1457')]?JSON[_0x46c074('0x678')](_0x12d43a[_0x46c074('0x1457')]):_0x12d43a[_0x46c074('0x9b6')]()});}):_0x3d1f71[_0x4fb20f('0x2753')][_0x4fb20f('0x1c53')]({'fields':_0x4fb20f('0x107a'),'sort':_0x4fb20f('0x25c6'),'nolimit':'true'})['$promise']['then'](function(_0x472e46){const _0x552cf7=_0x4fb20f;_0x1f2c82[_0x552cf7('0x15f1')]=_0x472e46[_0x552cf7('0x2319')]||[];})['then'](function(){const _0x32a9e9=_0x4fb20f;return _0x3d1f71[_0x32a9e9('0x383')]['get']({'userProfileId':_0x1f2c82['currentUser']['userProfileId'],'sectionId':0x196})['$promise'];})['then'](function(_0x52682b){const _0x483695=_0x4fb20f,_0x3f2a9e=_0x52682b&&_0x52682b['rows']?_0x52682b[_0x483695('0x2319')][0x0]:null;if(!_0x3f2a9e){const _0x15e48c=[];let _0x2bc7d1=null;_0x1f2c82[_0x483695('0x27c8')]&&(_0x2bc7d1=_0x49cbdd()[_0x483695('0xe8e')](_0x1f2c82[_0x483695('0x15f1')],{'mailbox':_0x1f2c82[_0x483695('0x27c8')][_0x483695('0x2753')]}));for(let _0x11239d=0x0;_0x11239d<_0x1f2c82[_0x483695('0x15f1')][_0x483695('0x1f73')];_0x11239d++){_0x2bc7d1&&_0x1f2c82[_0x483695('0x15f1')][_0x11239d]['id']===_0x2bc7d1['id']&&(_0x1f2c82[_0x483695('0x15f1')][_0x11239d]['canSelect']=![],_0x15e48c[_0x483695('0x269f')](_0x1f2c82['voiceMails'][_0x11239d]));}_0x1f2c82['voiceMails']=_0x15e48c;}else{if(!_0x3f2a9e['autoAssociation'])return _0x3d1f71[_0x483695('0x78d')][_0x483695('0x1c53')]({'sectionId':_0x3f2a9e['id']})['$promise'][_0x483695('0x17e7')](function(_0x32b2bf){const _0x133a97=_0x483695,_0x3dbe7d=_0x49cbdd()[_0x133a97('0x787')](_0x32b2bf[_0x133a97('0x2319')],function(_0x463ab4){const _0x4668be=_0x133a97;return _0x49cbdd()[_0x4668be('0xe8e')](_0x1f2c82[_0x4668be('0x15f1')],{'id':_0x463ab4[_0x4668be('0x5db')]});});let _0xdd2c67=null;_0x1f2c82[_0x133a97('0x27c8')]&&(_0xdd2c67=_0x49cbdd()['find'](_0x1f2c82[_0x133a97('0x15f1')],{'mailbox':_0x1f2c82[_0x133a97('0x27c8')]['voiceMail']}));if(_0xdd2c67&&!_0x49cbdd()[_0x133a97('0x26f8')](_0x3dbe7d,['id',_0xdd2c67['id']])){const _0x191504=_0x49cbdd()[_0x133a97('0xe8e')](_0x1f2c82[_0x133a97('0x15f1')],{'id':_0xdd2c67['id']});_0x191504[_0x133a97('0xe5c')]=![],_0x3dbe7d[_0x133a97('0x269f')](_0x191504);}_0x1f2c82[_0x133a97('0x15f1')]=_0x3dbe7d;});}})[_0x4fb20f('0x16df')](function(_0x2f3b6d){const _0x3bfbc8=_0x4fb20f;_0x58d6cf['error']({'title':_0x2f3b6d[_0x3bfbc8('0x11c5')]?_0x3bfbc8('0x14f7')+_0x2f3b6d[_0x3bfbc8('0x11c5')]+_0x3bfbc8('0x16e4')+_0x2f3b6d[_0x3bfbc8('0x1833')]:_0x3bfbc8('0x273f'),'msg':_0x2f3b6d[_0x3bfbc8('0x1457')]?JSON[_0x3bfbc8('0x678')](_0x2f3b6d[_0x3bfbc8('0x1457')]):_0x2f3b6d['toString']()});});function _0x384ede(){const _0x1991db=_0x4fb20f;_0x1f2c82[_0x1991db('0x73e')]=[];const _0x32305e=[];_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x412')]&&_0x1f2c82[_0x1991db('0x27c8')]['type'][_0x1991db('0x19b')]()===_0x1991db('0x1ade')&&_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x1c54')]==='outboundDial'&&(_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x2154')]=_0x3b82a5[_0x1991db('0x12af')]?(_0x1f2c82['voicemail']['prefix']||'')+'${EXTEN:'+_0x3b82a5[_0x1991db('0x12af')]+'}':(_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x11d4')]||'')+'${EXTEN}',_0x3b82a5['recordingFormat']!=='none'?_0x1f2c82['voicemail'][_0x1991db('0x19')][_0x1991db('0x2567')](_0x1991db('0xa22'))<0x0&&(_0x1f2c82['voicemail'][_0x1991db('0x19')]+=_0x1991db('0xa22')):_0x1f2c82['voicemail'][_0x1991db('0x19')]=_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x19')][_0x1991db('0x737')](_0x1991db('0xa22'),''));if(_0x1f2c82['voicemail'][_0x1991db('0x1c54')]&&_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x1c54')]===_0x1991db('0x8fa')){}else switch((_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x643')]||_0x1f2c82['voicemail'][_0x1991db('0x1c54')])[_0x1991db('0x19b')]()){case _0x1991db('0xf2e'):_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x2077')]=_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x2aa')]+'='+_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x175b')];break;case _0x1991db('0x8fa'):break;default:_0x32305e[0x0]=_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x2753')],_0x32305e[0x1]=_0x1f2c82[_0x1991db('0x27c8')][_0x1991db('0x19')],_0x1f2c82[_0x1991db('0x27c8')]['appdata']=_0x32305e[_0x1991db('0x1eba')](',');}_0x431378(_0x1f2c82[_0x1991db('0x27c8')]);}function _0x431378(_0x520b5f){const _0x3b1f07=_0x4fb20f;_0x57cf1c[_0x3b1f07('0x212a')](_0x520b5f);}}const _0x3bb964=_0x1ca174;_0x5573bd[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0xf58'),_0x4376d8('0x383')];function _0x5573bd(_0x215fa1,_0x4f6d29,_0x4b9f14,_0x4d6afa,_0x150be8,_0x56d934,_0xe1036d,_0x4c4a7a,_0x22b340,_0x24855e,_0x544fe1,_0x548888){const _0x35e814=_0x4376d8,_0x312c06=this;_0x312c06[_0x35e814('0x197c')]=_0x24855e[_0x35e814('0x2831')](),_0x312c06['license']=_0x56d934,_0x312c06[_0x35e814('0x1aeb')]=_0xe1036d,_0x312c06[_0x35e814('0x1572')]=_0x312c06[_0x35e814('0x1aeb')][_0x35e814('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x312c06[_0x35e814('0xaed')]=_0x4f6d29[_0x35e814('0x14fe')]()+_0x35e814('0x14')+_0x4f6d29[_0x35e814('0x108')](),_0x312c06['inboundroute']=_0x544fe1||_0x215fa1['params']['inboundroute']||{},_0x312c06[_0x35e814('0x383')]=_0x548888&&_0x548888[_0x35e814('0x335')]==0x1?_0x548888[_0x35e814('0x2319')][0x0]:null,_0x312c06[_0x35e814('0x103e')]=_0x24855e['parseCrudPermissions'](_0x312c06['userProfileSection']?_0x312c06[_0x35e814('0x383')][_0x35e814('0x103e')]:null),_0x312c06['hasModulePermissions']={},_0x312c06['selectedTab']=_0x215fa1['params'][_0x35e814('0x1523')]||0x0,_0x312c06['alert']=_0x22b340[_0x35e814('0x1178')],_0x312c06[_0x35e814('0x17e1')]=_0xe7e558,_0x312c06['saveInboundRoute']=_0x340851,_0x24855e[_0x35e814('0x1ba2')]('admin')?_0x4c4a7a[_0x35e814('0xc76')]['get']({'fields':_0x35e814('0x12d2'),'sort':'name','nolimit':_0x35e814('0xe34')})[_0x35e814('0x1af5')][_0x35e814('0x17e7')](function(_0x33eda5){const _0x26bbfa=_0x35e814;_0x312c06[_0x26bbfa('0xfb3')]=_0x33eda5['rows']||[];})['catch'](function(_0x17c451){const _0x3f2f1f=_0x35e814;_0x22b340[_0x3f2f1f('0x1db9')]({'title':_0x17c451[_0x3f2f1f('0x11c5')]?'API:'+_0x17c451[_0x3f2f1f('0x11c5')]+'\x20-\x20'+_0x17c451['statusText']:_0x3f2f1f('0xa2c'),'msg':_0x17c451[_0x3f2f1f('0x1457')]?JSON[_0x3f2f1f('0x678')](_0x17c451[_0x3f2f1f('0x1457')]):_0x17c451[_0x3f2f1f('0x9b6')]()});}):_0x4c4a7a[_0x35e814('0xc76')][_0x35e814('0x1c53')]({'fields':_0x35e814('0x12d2'),'sort':_0x35e814('0x2aa'),'nolimit':_0x35e814('0xe34')})[_0x35e814('0x1af5')][_0x35e814('0x17e7')](function(_0x3dbafd){const _0x51ca5e=_0x35e814;_0x312c06[_0x51ca5e('0xfb3')]=_0x3dbafd[_0x51ca5e('0x2319')]||[];})[_0x35e814('0x17e7')](function(){const _0x2daa41=_0x35e814;return _0x4c4a7a[_0x2daa41('0x383')][_0x2daa41('0x1c53')]({'userProfileId':_0x312c06[_0x2daa41('0x197c')][_0x2daa41('0x1e76')],'sectionId':0x195})['$promise'];})[_0x35e814('0x17e7')](function(_0x599c2e){const _0x37c8d6=_0x35e814,_0xd510c7=_0x599c2e&&_0x599c2e['rows']?_0x599c2e[_0x37c8d6('0x2319')][0x0]:null;if(!_0xd510c7)return _0x4c4a7a[_0x37c8d6('0xc76')][_0x37c8d6('0x1c53')]({'fields':_0x37c8d6('0x12d2'),'sort':_0x37c8d6('0x2aa'),'nolimit':'true','defaultEntry':0x1})[_0x37c8d6('0x1af5')]['then'](function(_0x5ed295){const _0x246b8e=_0x37c8d6;_0x312c06[_0x246b8e('0xfb3')]=_0x5ed295[_0x246b8e('0x2319')]||[];});else{if(!_0xd510c7[_0x37c8d6('0x9e3')])return _0x4c4a7a[_0x37c8d6('0x78d')][_0x37c8d6('0x1c53')]({'sectionId':_0xd510c7['id']})[_0x37c8d6('0x1af5')][_0x37c8d6('0x17e7')](function(_0x1ae3d6){const _0x39c463=_0x37c8d6,_0x26c5ee=_0x49cbdd()['map'](_0x1ae3d6[_0x39c463('0x2319')],function(_0x4b864c){const _0x4b615b=_0x39c463;return _0x49cbdd()['find'](_0x312c06['contexts'],{'id':_0x4b864c[_0x4b615b('0x5db')]});});let _0x273136=null;_0x312c06[_0x39c463('0xf58')]&&(_0x273136=_0x49cbdd()['find'](_0x312c06[_0x39c463('0xfb3')],{'name':_0x312c06[_0x39c463('0xf58')][_0x39c463('0x17b3')]}));if(_0x273136&&!_0x49cbdd()['some'](_0x26c5ee,['id',_0x273136['id']])){const _0x3cdbba=_0x49cbdd()[_0x39c463('0xe8e')](_0x312c06[_0x39c463('0xfb3')],{'id':_0x273136['id']});_0x3cdbba[_0x39c463('0xe5c')]=![],_0x26c5ee[_0x39c463('0x269f')](_0x3cdbba);}_0x312c06['contexts']=_0x26c5ee;});}})[_0x35e814('0x16df')](function(_0x13eab6){const _0x3e40c4=_0x35e814;_0x22b340[_0x3e40c4('0x1db9')]({'title':_0x13eab6[_0x3e40c4('0x11c5')]?_0x3e40c4('0x14f7')+_0x13eab6[_0x3e40c4('0x11c5')]+_0x3e40c4('0x16e4')+_0x13eab6[_0x3e40c4('0x1833')]:'SYSTEM:GETcontexts','msg':_0x13eab6[_0x3e40c4('0x1457')]?JSON[_0x3e40c4('0x678')](_0x13eab6[_0x3e40c4('0x1457')]):_0x13eab6['toString']()});});function _0xe7e558(){const _0x4122c7=_0x35e814;_0x215fa1['go'](_0x4122c7('0x1197'),{},{'reload':_0x4122c7('0x1197')});}function _0x340851(){const _0x33d14f=_0x35e814;_0x4c4a7a[_0x33d14f('0x16c2')][_0x33d14f('0x27ba')]({'id':_0x312c06[_0x33d14f('0xf58')]['id']},_0x312c06[_0x33d14f('0xf58')])['$promise']['then'](function(){const _0x5d434e=_0x33d14f;_0x22b340[_0x5d434e('0x130d')]({'title':_0x5d434e('0x165b'),'msg':_0x312c06[_0x5d434e('0xf58')][_0x5d434e('0x2aa')]?_0x312c06[_0x5d434e('0xf58')][_0x5d434e('0x2aa')]+'\x20has\x20been\x20updated!':''});})[_0x33d14f('0x16df')](function(_0x3a76e7){const _0x1568c2=_0x33d14f;_0x22b340[_0x1568c2('0x1db9')]({'title':_0x3a76e7[_0x1568c2('0x11c5')]?'API:'+_0x3a76e7['status']+'\x20-\x20'+_0x3a76e7['statusText']:'SYSTEM:GETvoiceExtension','msg':_0x3a76e7[_0x1568c2('0x1457')]?JSON['stringify'](_0x3a76e7[_0x1568c2('0x1457')]):_0x3a76e7[_0x1568c2('0x9b6')]()});});}}const _0x427342=_0x5573bd,_0x5bea3e=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/inboundroutes/create/dialog.html/dialog.html';_0x7db379[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x330'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),'toasty','Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x7db379(_0x174b7,_0x558515,_0x41ace2,_0x16943a,_0x28aaeb,_0x1a9597,_0x542d87,_0x5252f7,_0x55c01f,_0x79be11,_0x3d659d,_0x530c17,_0x65bc1a,_0x38b095,_0x2e8bd9,_0x5483b6,_0x3d2bb8){const _0x140fb3=_0x4376d8,_0x56e3dd=this;_0x56e3dd[_0x140fb3('0x1d11')]=_0x5483b6,_0x56e3dd[_0x140fb3('0x1aeb')]=_0x3d2bb8,_0x56e3dd[_0x140fb3('0x197c')]=_0x2e8bd9['getCurrentUser'](),_0x56e3dd[_0x140fb3('0x330')]=_0x55c01f||{'count':0x0,'rows':[]},_0x56e3dd[_0x140fb3('0xdeb')]=_0x79be11,_0x56e3dd[_0x140fb3('0x383')]=_0x3d659d&&_0x3d659d['count']==0x1?_0x3d659d[_0x140fb3('0x2319')][0x0]:null,_0x56e3dd[_0x140fb3('0x103e')]=_0x2e8bd9[_0x140fb3('0x17a9')](_0x56e3dd[_0x140fb3('0x383')]?_0x56e3dd['userProfileSection'][_0x140fb3('0x103e')]:null),_0x56e3dd[_0x140fb3('0x23c3')]=_0x140fb3('0x330'),_0x56e3dd[_0x140fb3('0x26a1')]='',_0x56e3dd[_0x140fb3('0x24e1')]=null,_0x56e3dd['selectedInboundRoutes']=[],_0x56e3dd[_0x140fb3('0x826')]={'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x140fb3('0x1e77'),'sort':_0x140fb3('0x1ac6'),'VoiceExtensionId':_0x140fb3('0x9bb'),'limit':0xa,'page':0x1},_0x56e3dd[_0x140fb3('0xcd4')]=_0x5b6dbb,_0x56e3dd[_0x140fb3('0xbf4')]=_0x43a408,_0x56e3dd['success']=_0x6b8d02,_0x56e3dd[_0x140fb3('0x11a3')]=_0x344649,_0x56e3dd['createOrEditInboundRoute']=_0x5ed7d3,_0x56e3dd[_0x140fb3('0x2519')]=_0x15b5f5,_0x56e3dd[_0x140fb3('0x18f')]=_0x4aac30,_0x56e3dd[_0x140fb3('0x27fd')]=_0xaba474,_0x56e3dd['deselectInboundRoutes']=_0x22258d,_0x56e3dd[_0x140fb3('0x24bf')]=_0x439463,_0x2e8bd9[_0x140fb3('0x1ba2')](_0x140fb3('0x20bf'))?_0x530c17[_0x140fb3('0xc76')][_0x140fb3('0x1c53')]({'fields':'id,name','sort':_0x140fb3('0x2aa'),'nolimit':_0x140fb3('0xe34')})[_0x140fb3('0x1af5')][_0x140fb3('0x17e7')](function(_0x17345a){const _0xea2c4b=_0x140fb3;_0x56e3dd[_0xea2c4b('0xfb3')]=_0x17345a[_0xea2c4b('0x2319')]||[];})['catch'](function(_0x48f727){const _0x3e7692=_0x140fb3;_0x38b095[_0x3e7692('0x1db9')]({'title':_0x48f727[_0x3e7692('0x11c5')]?_0x3e7692('0x14f7')+_0x48f727[_0x3e7692('0x11c5')]+_0x3e7692('0x16e4')+_0x48f727['statusText']:_0x3e7692('0xa2c'),'msg':_0x48f727['data']?JSON[_0x3e7692('0x678')](_0x48f727[_0x3e7692('0x1457')]):_0x48f727[_0x3e7692('0x9b6')]()});}):_0x530c17[_0x140fb3('0xc76')][_0x140fb3('0x1c53')]({'fields':'id,name','sort':'name','nolimit':_0x140fb3('0xe34')})[_0x140fb3('0x1af5')][_0x140fb3('0x17e7')](function(_0x2d1044){const _0x3055ba=_0x140fb3;_0x56e3dd[_0x3055ba('0xfb3')]=_0x2d1044[_0x3055ba('0x2319')]||[];})[_0x140fb3('0x17e7')](function(){const _0x47c6d7=_0x140fb3;return _0x530c17[_0x47c6d7('0x383')][_0x47c6d7('0x1c53')]({'userProfileId':_0x56e3dd['currentUser']['userProfileId'],'sectionId':0x195})[_0x47c6d7('0x1af5')];})['then'](function(_0x46e9a4){const _0x1e334c=_0x140fb3,_0x26e507=_0x46e9a4&&_0x46e9a4[_0x1e334c('0x2319')]?_0x46e9a4[_0x1e334c('0x2319')][0x0]:null;if(!_0x26e507)return _0x530c17['voiceContext']['get']({'fields':_0x1e334c('0x12d2'),'sort':_0x1e334c('0x2aa'),'nolimit':_0x1e334c('0xe34'),'defaultEntry':0x1})[_0x1e334c('0x1af5')][_0x1e334c('0x17e7')](function(_0x4f0212){const _0x20335c=_0x1e334c;_0x56e3dd[_0x20335c('0xfb3')]=_0x4f0212[_0x20335c('0x2319')]||[];});else{if(!_0x26e507[_0x1e334c('0x9e3')])return _0x530c17['userProfileResource'][_0x1e334c('0x1c53')]({'sectionId':_0x26e507['id']})[_0x1e334c('0x1af5')][_0x1e334c('0x17e7')](function(_0x239000){const _0x64895f=_0x1e334c,_0x130c62=_0x49cbdd()[_0x64895f('0x787')](_0x239000[_0x64895f('0x2319')],function(_0x2e87dd){const _0x150217=_0x64895f;return _0x49cbdd()[_0x150217('0xe8e')](_0x56e3dd[_0x150217('0xfb3')],{'id':_0x2e87dd[_0x150217('0x5db')]});});let _0x4e52c7=null;_0x56e3dd['inboundroute']&&(_0x4e52c7=_0x49cbdd()[_0x64895f('0xe8e')](_0x56e3dd[_0x64895f('0xfb3')],{'name':_0x56e3dd[_0x64895f('0xf58')][_0x64895f('0x17b3')]}));if(_0x4e52c7&&!_0x49cbdd()[_0x64895f('0x26f8')](_0x130c62,['id',_0x4e52c7['id']])){const _0x5c5509=_0x49cbdd()[_0x64895f('0xe8e')](_0x56e3dd[_0x64895f('0xfb3')],{'id':_0x4e52c7['id']});_0x5c5509['canSelect']=![],_0x130c62[_0x64895f('0x269f')](_0x5c5509);}_0x56e3dd[_0x64895f('0xfb3')]=_0x130c62;});}})[_0x140fb3('0x16df')](function(_0x7e93a8){const _0x33bbd0=_0x140fb3;_0x38b095['error']({'title':_0x7e93a8[_0x33bbd0('0x11c5')]?'API:'+_0x7e93a8[_0x33bbd0('0x11c5')]+_0x33bbd0('0x16e4')+_0x7e93a8[_0x33bbd0('0x1833')]:'SYSTEM:GETcontexts','msg':_0x7e93a8['data']?JSON['stringify'](_0x7e93a8[_0x33bbd0('0x1457')]):_0x7e93a8[_0x33bbd0('0x9b6')]()});});function _0x5b6dbb(_0x2a14b1){const _0x19dc19=_0x140fb3;_0x41ace2['go'](_0x19dc19('0x28e5'),{'id':_0x2a14b1['id'],'inboundroute':_0x2a14b1,'crudPermissions':_0x56e3dd[_0x19dc19('0x103e')]});}function _0x43a408(_0x2af9dc,_0x5392be){const _0x226c65=_0x140fb3,_0x21da82=_0x28aaeb[_0x226c65('0x1121')]()[_0x226c65('0x24d3')](_0x226c65('0x5e1')+_0x49cbdd()[_0x226c65('0x1c98')](_0x226c65('0xf58'))+'?')[_0x226c65('0x211f')](_0x226c65('0xa53')+(_0x2af9dc[_0x226c65('0x2aa')]||'inboundroute')+_0x226c65('0x1d23')+_0x226c65('0xe9f'))[_0x226c65('0x2095')]('delete\x20inboundroute')[_0x226c65('0x104f')](_0x5392be)['ok']('OK')[_0x226c65('0x1d47')](_0x226c65('0x28a0'));_0x28aaeb[_0x226c65('0x28e2')](_0x21da82)[_0x226c65('0x17e7')](function(){_0x15b5f5(_0x2af9dc);},function(){const _0x3fe35d=_0x226c65;console['log'](_0x3fe35d('0x28a0'));});}let _0x235663=!![],_0x1e82f6=0x1;_0x174b7[_0x140fb3('0x620')](_0x140fb3('0x3ed'),function(_0x1bfdd6,_0xb7884e){const _0x20a719=_0x140fb3;_0x235663?_0x542d87(function(){_0x235663=![];}):(!_0xb7884e&&(_0x1e82f6=_0x56e3dd['query'][_0x20a719('0x115a')]),_0x1bfdd6!==_0xb7884e&&(_0x56e3dd[_0x20a719('0x826')][_0x20a719('0x115a')]=0x1),!_0x1bfdd6&&(_0x56e3dd['query']['page']=_0x1e82f6),_0x56e3dd[_0x20a719('0x11a3')]());});function _0x6b8d02(_0x1385e4){const _0x5e8b88=_0x140fb3;_0x56e3dd[_0x5e8b88('0x330')]=_0x1385e4||{'count':0x0,'rows':[]};}function _0x344649(){const _0x51b01f=_0x140fb3;_0x56e3dd[_0x51b01f('0x826')]['offset']=(_0x56e3dd['query'][_0x51b01f('0x115a')]-0x1)*_0x56e3dd['query'][_0x51b01f('0x193b')],_0x2e8bd9[_0x51b01f('0x1ba2')](_0x51b01f('0x20bf'))?_0x56e3dd[_0x51b01f('0x1691')]=_0x530c17['voiceExtension'][_0x51b01f('0x1c53')](_0x56e3dd[_0x51b01f('0x826')],_0x6b8d02)[_0x51b01f('0x1af5')]:(_0x56e3dd[_0x51b01f('0x826')]['id']=_0x56e3dd[_0x51b01f('0xdeb')]['id'],_0x56e3dd[_0x51b01f('0x826')][_0x51b01f('0x16f8')]='InboundRoutes',_0x56e3dd[_0x51b01f('0x1691')]=_0x530c17[_0x51b01f('0xdeb')][_0x51b01f('0x2447')](_0x56e3dd[_0x51b01f('0x826')],_0x6b8d02)[_0x51b01f('0x1af5')]);}function _0x5ed7d3(_0x219cab,_0x13bb5d){const _0x55a985=_0x140fb3;_0x28aaeb[_0x55a985('0x28e2')]({'controller':'CreateOrEditInboundRouteDialogController','controllerAs':'vm','templateUrl':_0x5bea3e,'parent':angular[_0x55a985('0x1ce1')](_0x1a9597[_0x55a985('0x13aa')]),'targetEvent':_0x219cab,'clickOutsideToClose':!![],'locals':{'inboundroute':_0x13bb5d,'inboundroutes':_0x56e3dd['inboundroutes'][_0x55a985('0x2319')],'license':_0x56e3dd[_0x55a985('0x1d11')],'setting':_0x56e3dd[_0x55a985('0x1aeb')],'crudPermissions':_0x56e3dd[_0x55a985('0x103e')]}});}function _0x15b5f5(_0x1554e4){const _0x53ca26=_0x140fb3;_0x530c17[_0x53ca26('0x16c2')]['delete']({'id':_0x1554e4['id']})['$promise'][_0x53ca26('0x17e7')](function(){const _0x542a6f=_0x53ca26;_0x49cbdd()['remove'](_0x56e3dd[_0x542a6f('0x330')][_0x542a6f('0x2319')],{'id':_0x1554e4['id']}),_0x56e3dd['inboundroutes'][_0x542a6f('0x335')]-=0x1,!_0x56e3dd[_0x542a6f('0x330')][_0x542a6f('0x2319')][_0x542a6f('0x1f73')]&&_0x56e3dd[_0x542a6f('0x11a3')](),_0x38b095[_0x542a6f('0x130d')]({'title':_0x49cbdd()[_0x542a6f('0x1c98')](_0x542a6f('0x1f5b'))+_0x542a6f('0x2673'),'msg':_0x1554e4[_0x542a6f('0x2aa')]?_0x1554e4[_0x542a6f('0x2aa')]+_0x542a6f('0x149f'):''});})['catch'](function(_0x39394a){const _0x4c423e=_0x53ca26;if(_0x39394a['data']&&_0x39394a[_0x4c423e('0x1457')][_0x4c423e('0x73e')]&&_0x39394a[_0x4c423e('0x1457')][_0x4c423e('0x73e')]['length']){_0x56e3dd[_0x4c423e('0x73e')]=_0x39394a[_0x4c423e('0x1457')][_0x4c423e('0x73e')]||[{'message':_0x39394a[_0x4c423e('0x9b6')](),'type':_0x4c423e('0x258d')}];for(let _0x24a35a=0x0;_0x24a35a<_0x39394a[_0x4c423e('0x1457')][_0x4c423e('0x73e')][_0x4c423e('0x1f73')];_0x24a35a++){_0x38b095[_0x4c423e('0x1db9')]({'title':_0x39394a[_0x4c423e('0x1457')][_0x4c423e('0x73e')][_0x24a35a][_0x4c423e('0x412')],'msg':_0x39394a[_0x4c423e('0x1457')][_0x4c423e('0x73e')][_0x24a35a][_0x4c423e('0x1603')]});}}else _0x38b095['error']({'title':_0x39394a[_0x4c423e('0x11c5')]?_0x4c423e('0x14f7')+_0x39394a[_0x4c423e('0x11c5')]+'\x20-\x20'+_0x39394a[_0x4c423e('0x1833')]:_0x4c423e('0x258d'),'msg':_0x39394a[_0x4c423e('0x1457')]?JSON[_0x4c423e('0x678')](_0x39394a[_0x4c423e('0x1457')][_0x4c423e('0x1603')]):_0x39394a[_0x4c423e('0x1603')]||_0x39394a[_0x4c423e('0x9b6')]()});});}function _0x4aac30(){const _0x163996=_0x140fb3,_0x35392e=angular[_0x163996('0x14e5')](_0x56e3dd[_0x163996('0x70c')]);return _0x56e3dd[_0x163996('0x70c')]=[],_0x35392e;}function _0xaba474(_0x38b189){const _0x3a38e7=_0x140fb3,_0x138c44=_0x28aaeb[_0x3a38e7('0x1121')]()['title'](_0x3a38e7('0x16cd'))[_0x3a38e7('0x211f')](_0x3a38e7('0xa53')+_0x56e3dd[_0x3a38e7('0x70c')]['length']+_0x3a38e7('0x145a')+_0x3a38e7('0xe9f'))[_0x3a38e7('0x2095')]('delete\x20InboundRoutes')[_0x3a38e7('0x104f')](_0x38b189)['ok']('OK')[_0x3a38e7('0x1d47')](_0x3a38e7('0x28a0'));_0x28aaeb[_0x3a38e7('0x28e2')](_0x138c44)[_0x3a38e7('0x17e7')](function(){const _0x570817=_0x3a38e7;_0x56e3dd[_0x570817('0x70c')][_0x570817('0xccd')](function(_0x531ce2){_0x15b5f5(_0x531ce2);}),_0x56e3dd[_0x570817('0x70c')]=[];});}function _0x22258d(){_0x56e3dd['selectedInboundRoutes']=[];}function _0x439463(){const _0x532152=_0x140fb3;_0x56e3dd['selectedInboundRoutes']=_0x56e3dd[_0x532152('0x330')][_0x532152('0x2319')];}}const _0x5abf03=_0x7db379;_0x27ddd7[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x280f'),_0x4376d8('0x166'),_0x4376d8('0x212e'),'Auth','license',_0x4376d8('0x1aeb'),'crudPermissions'];function _0x27ddd7(_0x2fd72b,_0x143ffe,_0x36ff88,_0x57acd7,_0x13f4eb,_0x8e7d2,_0x34821e,_0x535809,_0x4ddb4f,_0xc5cc4d,_0x1957d4,_0x14ffc2,_0x4ab4a2,_0x303fc2){const _0x27694b=_0x4376d8,_0x2bded2=this;_0x2bded2['currentUser']=_0x1957d4[_0x27694b('0x2831')](),_0x2bded2['errors']=[],_0x2bded2[_0x27694b('0x1aeb')]=_0x4ab4a2,_0x2bded2[_0x27694b('0x1d11')]=_0x14ffc2,_0x2bded2['crudPermissions']=_0x303fc2,_0x2bded2['hasModulePermissions']={},_0x2bded2[_0x27694b('0x1572')]=_0x2bded2[_0x27694b('0x1aeb')]&&_0x2bded2[_0x27694b('0x1aeb')][_0x27694b('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2bded2['title']='VOICE.EDIT_INTERNALROUTE',_0x2bded2[_0x27694b('0x166')]=angular[_0x27694b('0x14e5')](_0x4ddb4f),_0x2bded2[_0x27694b('0x280f')]=_0x535809,_0x2bded2[_0x27694b('0x19f4')]=![];!_0x2bded2[_0x27694b('0x166')]&&(_0x2bded2[_0x27694b('0x166')]={'appdata':'Internal\x20Call','type':_0x27694b('0xe3e'),'context':_0x27694b('0x2165')},_0x2bded2[_0x27694b('0x24d3')]=_0x27694b('0x1b4c'),_0x2bded2[_0x27694b('0x19f4')]=!![]);_0x2bded2[_0x27694b('0x2682')]=_0xf13bf1,_0x2bded2['saveInternalRoute']=_0x264f09,_0x2bded2[_0x27694b('0x1000')]=_0x21a130,_0x2bded2[_0x27694b('0x1300')]=_0x4fbe4c,_0x2bded2[_0x27694b('0x136e')]=_0x52f1d4,_0x1957d4['hasRole']('admin')?_0xc5cc4d[_0x27694b('0xc76')][_0x27694b('0x1c53')]({'fields':'id,name','sort':_0x27694b('0x2aa'),'nolimit':_0x27694b('0xe34')})[_0x27694b('0x1af5')][_0x27694b('0x17e7')](function(_0x1d9126){const _0xc0b5a5=_0x27694b;_0x2bded2[_0xc0b5a5('0xfb3')]=_0x1d9126[_0xc0b5a5('0x2319')]||[];})[_0x27694b('0x16df')](function(_0x40e558){const _0x20186f=_0x27694b;_0x34821e[_0x20186f('0x1db9')]({'title':_0x40e558[_0x20186f('0x11c5')]?_0x20186f('0x14f7')+_0x40e558['status']+_0x20186f('0x16e4')+_0x40e558[_0x20186f('0x1833')]:'SYSTEM:GET_CONTEXTS','msg':_0x40e558[_0x20186f('0x1457')]?JSON[_0x20186f('0x678')](_0x40e558[_0x20186f('0x1457')]):_0x40e558['toString']()});}):_0xc5cc4d[_0x27694b('0xc76')][_0x27694b('0x1c53')]({'fields':'id,name','sort':_0x27694b('0x2aa'),'nolimit':_0x27694b('0xe34')})[_0x27694b('0x1af5')]['then'](function(_0x15aa2f){const _0x4be8d4=_0x27694b;_0x2bded2[_0x4be8d4('0xfb3')]=_0x15aa2f[_0x4be8d4('0x2319')]||[];})[_0x27694b('0x17e7')](function(){const _0xd18de4=_0x27694b;return _0xc5cc4d[_0xd18de4('0x383')]['get']({'userProfileId':_0x2bded2[_0xd18de4('0x197c')][_0xd18de4('0x1e76')],'sectionId':0x195})[_0xd18de4('0x1af5')];})[_0x27694b('0x17e7')](function(_0x16a882){const _0x1a29ce=_0x27694b,_0x337a43=_0x16a882&&_0x16a882[_0x1a29ce('0x2319')]?_0x16a882[_0x1a29ce('0x2319')][0x0]:null;if(!_0x337a43)return _0xc5cc4d[_0x1a29ce('0xc76')][_0x1a29ce('0x1c53')]({'fields':_0x1a29ce('0x12d2'),'sort':_0x1a29ce('0x2aa'),'nolimit':_0x1a29ce('0xe34'),'defaultEntry':0x1})[_0x1a29ce('0x1af5')][_0x1a29ce('0x17e7')](function(_0x5e12c6){const _0x2eaf75=_0x1a29ce;_0x2bded2['contexts']=_0x5e12c6[_0x2eaf75('0x2319')]||[];});else{if(!_0x337a43[_0x1a29ce('0x9e3')])return _0xc5cc4d['userProfileResource'][_0x1a29ce('0x1c53')]({'sectionId':_0x337a43['id']})[_0x1a29ce('0x1af5')]['then'](function(_0xcf50fb){const _0x2786d2=_0x1a29ce,_0x9424=_0x49cbdd()[_0x2786d2('0x787')](_0xcf50fb[_0x2786d2('0x2319')],function(_0x2ac97c){const _0x443c8f=_0x2786d2;return _0x49cbdd()[_0x443c8f('0xe8e')](_0x2bded2[_0x443c8f('0xfb3')],{'id':_0x2ac97c[_0x443c8f('0x5db')]});});let _0xf30c7e=null;_0x2bded2[_0x2786d2('0x166')]&&(_0xf30c7e=_0x49cbdd()[_0x2786d2('0xe8e')](_0x2bded2[_0x2786d2('0xfb3')],{'name':_0x2bded2[_0x2786d2('0x166')][_0x2786d2('0x17b3')]}));if(_0xf30c7e&&!_0x49cbdd()[_0x2786d2('0x26f8')](_0x9424,['id',_0xf30c7e['id']])){const _0x4eac28=_0x49cbdd()['find'](_0x2bded2[_0x2786d2('0xfb3')],{'id':_0xf30c7e['id']});_0x4eac28['canSelect']=![],_0x9424['push'](_0x4eac28);}_0x2bded2[_0x2786d2('0xfb3')]=_0x9424;});}})[_0x27694b('0x16df')](function(_0x2fc5cc){const _0x58693b=_0x27694b;_0x34821e[_0x58693b('0x1db9')]({'title':_0x2fc5cc[_0x58693b('0x11c5')]?_0x58693b('0x14f7')+_0x2fc5cc[_0x58693b('0x11c5')]+_0x58693b('0x16e4')+_0x2fc5cc[_0x58693b('0x1833')]:_0x58693b('0x78'),'msg':_0x2fc5cc['data']?JSON['stringify'](_0x2fc5cc[_0x58693b('0x1457')]):_0x2fc5cc[_0x58693b('0x9b6')]()});});function _0xf13bf1(){const _0x201191=_0x27694b;_0x2bded2[_0x201191('0x73e')]=[],_0xc5cc4d['voiceExtension'][_0x201191('0x2439')](_0x2bded2[_0x201191('0x166')])['$promise'][_0x201191('0x17e7')](function(_0x5cd53a){const _0x4d075a=_0x201191;_0x2bded2[_0x4d075a('0x280f')][_0x4d075a('0x1893')](_0x5cd53a[_0x4d075a('0x16b2')]()),_0x34821e['success']({'title':_0x4d075a('0x153f'),'msg':_0x2bded2[_0x4d075a('0x166')][_0x4d075a('0x2aa')]?_0x2bded2[_0x4d075a('0x166')][_0x4d075a('0x2aa')]+_0x4d075a('0x15a'):''}),_0x52f1d4(_0x5cd53a);})[_0x201191('0x16df')](function(_0x5dc56d){const _0x48be41=_0x201191;if(_0x5dc56d['data']&&_0x5dc56d[_0x48be41('0x1457')][_0x48be41('0x73e')]&&_0x5dc56d[_0x48be41('0x1457')][_0x48be41('0x73e')][_0x48be41('0x1f73')]){_0x2bded2[_0x48be41('0x73e')]=_0x5dc56d['data']['errors']||[{'message':_0x5dc56d[_0x48be41('0x9b6')](),'type':_0x48be41('0xd7d')}];for(let _0x403bd2=0x0;_0x403bd2<_0x5dc56d[_0x48be41('0x1457')][_0x48be41('0x73e')][_0x48be41('0x1f73')];_0x403bd2+=0x1){_0x34821e[_0x48be41('0x1db9')]({'title':_0x5dc56d[_0x48be41('0x1457')][_0x48be41('0x73e')][_0x403bd2][_0x48be41('0x412')],'msg':_0x5dc56d[_0x48be41('0x1457')][_0x48be41('0x73e')][_0x403bd2]['message']});}}else _0x34821e['error']({'title':_0x5dc56d[_0x48be41('0x11c5')]?_0x48be41('0x14f7')+_0x5dc56d[_0x48be41('0x11c5')]+'\x20-\x20'+_0x5dc56d[_0x48be41('0x1833')]:'api.voiceExtension.save','msg':_0x5dc56d[_0x48be41('0x1457')]?JSON[_0x48be41('0x678')](_0x5dc56d[_0x48be41('0x1457')][_0x48be41('0x1603')]):_0x5dc56d['toString']()});});}function _0x264f09(){const _0x55c978=_0x27694b;_0x2bded2[_0x55c978('0x73e')]=[],_0xc5cc4d[_0x55c978('0x16c2')]['update']({'id':_0x2bded2[_0x55c978('0x166')]['id']},_0x2bded2[_0x55c978('0x166')])['$promise'][_0x55c978('0x17e7')](function(_0xfc6dcd){const _0x54f791=_0x55c978,_0x34556d=_0x49cbdd()[_0x54f791('0xe8e')](_0x2bded2[_0x54f791('0x280f')],{'id':_0xfc6dcd['id']});_0x34556d&&_0x49cbdd()[_0x54f791('0x1ced')](_0x34556d,_0x49cbdd()[_0x54f791('0x230a')](_0xfc6dcd['toJSON'](),_0x49cbdd()[_0x54f791('0x1c0f')](_0x34556d))),_0x34821e['success']({'title':_0x54f791('0xf7d'),'msg':_0x2bded2[_0x54f791('0x166')][_0x54f791('0x2aa')]?_0x2bded2['internalroute']['name']+_0x54f791('0x15ca'):''}),_0x52f1d4(_0xfc6dcd);})[_0x55c978('0x16df')](function(_0x87de27){const _0x4b30e=_0x55c978;if(_0x87de27[_0x4b30e('0x1457')]&&_0x87de27['data']['errors']&&_0x87de27[_0x4b30e('0x1457')]['errors'][_0x4b30e('0x1f73')]){_0x2bded2[_0x4b30e('0x73e')]=_0x87de27['data']['errors']||[{'message':_0x87de27[_0x4b30e('0x9b6')](),'type':_0x4b30e('0x5d2')}];for(let _0x2b3034=0x0;_0x2b3034<_0x87de27['data'][_0x4b30e('0x73e')][_0x4b30e('0x1f73')];_0x2b3034++){_0x34821e[_0x4b30e('0x1db9')]({'title':_0x87de27[_0x4b30e('0x1457')]['errors'][_0x2b3034][_0x4b30e('0x412')],'msg':_0x87de27['data'][_0x4b30e('0x73e')][_0x2b3034]['message']});}}else _0x34821e['error']({'title':_0x87de27['status']?'API:'+_0x87de27['status']+_0x4b30e('0x16e4')+_0x87de27['statusText']:'api.voiceExtension.update','msg':_0x87de27[_0x4b30e('0x1457')]?JSON[_0x4b30e('0x678')](_0x87de27[_0x4b30e('0x1457')][_0x4b30e('0x1603')]):_0x87de27['toString']()});});}function _0x21a130(_0xed3936){const _0x3fd088=_0x27694b;_0x2bded2[_0x3fd088('0x73e')]=[];const _0x14e599=_0x57acd7[_0x3fd088('0x1121')]()[_0x3fd088('0x24d3')]('Are\x20you\x20sure?')[_0x3fd088('0xd5')](_0x3fd088('0x946'))[_0x3fd088('0x2095')](_0x3fd088('0x22ee'))['ok'](_0x3fd088('0x304'))['cancel'](_0x3fd088('0x1b70'))[_0x3fd088('0x104f')](_0xed3936);_0x57acd7[_0x3fd088('0x28e2')](_0x14e599)[_0x3fd088('0x17e7')](function(){const _0x369cee=_0x3fd088;_0xc5cc4d[_0x369cee('0x16c2')]['delete']({'id':_0x2bded2[_0x369cee('0x166')]['id']})[_0x369cee('0x1af5')]['then'](function(){const _0xf6bdfc=_0x369cee;_0x49cbdd()[_0xf6bdfc('0x5f3')](_0x2bded2[_0xf6bdfc('0x280f')],{'id':_0x2bded2['internalroute']['id']}),_0x34821e[_0xf6bdfc('0x130d')]({'title':_0xf6bdfc('0x267'),'msg':(_0x2bded2[_0xf6bdfc('0x166')][_0xf6bdfc('0x2aa')]||_0xf6bdfc('0x166'))+'\x20has\x20been\x20deleted!'}),_0x52f1d4(_0x2bded2['internalroute']);})[_0x369cee('0x16df')](function(_0x474192){const _0x343cb5=_0x369cee;if(_0x474192[_0x343cb5('0x1457')]&&_0x474192[_0x343cb5('0x1457')][_0x343cb5('0x73e')]&&_0x474192['data'][_0x343cb5('0x73e')][_0x343cb5('0x1f73')]){_0x2bded2[_0x343cb5('0x73e')]=_0x474192[_0x343cb5('0x1457')][_0x343cb5('0x73e')]||[{'message':_0x474192[_0x343cb5('0x9b6')](),'type':_0x343cb5('0xcf6')}];for(let _0x12d932=0x0;_0x12d932<_0x474192[_0x343cb5('0x1457')][_0x343cb5('0x73e')]['length'];_0x12d932++){_0x34821e['error']({'title':_0x474192[_0x343cb5('0x1457')][_0x343cb5('0x73e')][_0x12d932][_0x343cb5('0x412')],'msg':_0x474192[_0x343cb5('0x1457')]['errors'][_0x12d932]['message']});}}else _0x34821e[_0x343cb5('0x1db9')]({'title':_0x474192[_0x343cb5('0x11c5')]?_0x343cb5('0x14f7')+_0x474192[_0x343cb5('0x11c5')]+'\x20-\x20'+_0x474192['statusText']:_0x343cb5('0xcf6'),'msg':_0x474192[_0x343cb5('0x1457')]?JSON[_0x343cb5('0x678')](_0x474192[_0x343cb5('0x1457')][_0x343cb5('0x1603')]):_0x474192['message']||_0x474192[_0x343cb5('0x9b6')]()});});},function(){});}function _0x4fbe4c(_0x4ad3ac){return _0x4ad3ac===null?undefined:new Date(_0x4ad3ac);}function _0x52f1d4(_0x2a9bba){_0x57acd7['hide'](_0x2a9bba);}}const _0x295de6=_0x27ddd7,_0x59b2f8=_0x4cf2bc['p']+_0x4376d8('0x1213'),_0x596030=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/custom/dialog.html/dialog.html',_0x5c313f=_0x4cf2bc['p']+_0x4376d8('0x1087'),_0xe1943e=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/externaldial/dialog.html/dialog.html',_0x1f6dc5=_0x4cf2bc['p']+_0x4376d8('0x1756'),_0x5d2a7a=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/hangup/dialog.html/dialog.html',_0x932225=_0x4cf2bc['p']+_0x4376d8('0x1b5a'),_0xf360d9=_0x4cf2bc['p']+_0x4376d8('0x651'),_0x59f727=_0x4cf2bc['p']+_0x4376d8('0x1cd'),_0x1c6862=_0x4cf2bc['p']+_0x4376d8('0x114d'),_0x135660=_0x4cf2bc['p']+_0x4376d8('0xf37'),_0x593923=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/apps/set/dialog.html/dialog.html',_0x7ef45c=_0x4cf2bc['p']+_0x4376d8('0xbd7');_0x1b045e[_0x4376d8('0x1b9c')]=['api',_0x4376d8('0x14f6'),'$document',_0x4376d8('0x108a'),_0x4376d8('0x1885')];const _0x39c155={'agi':_0x59b2f8,'custom':_0x596030,'dial':_0x5c313f,'externaldial':_0xe1943e,'goto':_0x1f6dc5,'hangup':_0x5d2a7a,'internaldial':_0x932225,'interval':_0xf360d9,'playback':_0x59f727,'queue':_0x1c6862,'ringgroup':_0x135660,'set':_0x593923,'voicemail':_0x7ef45c};function _0x1b045e(_0x302b25,_0xa19604,_0x20caee,_0x4abb73,_0x36fca6){const _0x59ca12=_0x4376d8,_0x801d62=this;_0x801d62[_0x59ca12('0x197c')]=_0x36fca6['getCurrentUser'](),_0x801d62[_0x59ca12('0x166')]={},_0x801d62[_0x59ca12('0x455')]={'count':0x0,'rows':[]},_0x801d62[_0x59ca12('0x24c5')]=[],_0x801d62[_0x59ca12('0x103e')],_0x801d62[_0x59ca12('0x826')]={'sort':_0x59ca12('0x1a6d')},_0x801d62[_0x59ca12('0x970')]=_0x49cbdd()[_0x59ca12('0x1ad1')](_0x49cbdd()[_0x59ca12('0x1be3')]([{'app':_0x59ca12('0xaea'),'appType':_0x59ca12('0x231f'),'type':'Internal','types':[_0x59ca12('0x1256'),_0x59ca12('0x8fa'),_0x59ca12('0x134c')],'fields':[],'isApp':![]},{'app':_0x59ca12('0x1eb2'),'appType':'queue','context':'from-sip','type':_0x59ca12('0x1e3e'),'options':'xX','appdata':_0x59ca12('0xa83'),'icon':_0x59ca12('0x24a0'),'interval':_0x59ca12('0x20c3'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x59ca12('0x27c4'),'field':{'name':_0x59ca12('0x1f64'),'key':_0x59ca12('0x1138'),'prefix':_0x59ca12('0x2662')},'route':'sound','filters':{'fields':_0x59ca12('0x584'),'sort':_0x59ca12('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3ef}},{'name':'queues','field':{'name':_0x59ca12('0x1bd'),'key':_0x59ca12('0x2aa')},'route':_0x59ca12('0x1243'),'filters':{'type':_0x59ca12('0x1e77'),'fields':_0x59ca12('0x960'),'sort':_0x59ca12('0x2aa'),'nolimit':!![]},'permissions':{'section':0x191}}],'fields':[{'title':'Queue','name':_0x59ca12('0x1bd'),'type':_0x59ca12('0x1ecc'),'values':_0x59ca12('0x14c4'),'value':_0x59ca12('0x661'),'option':'queue.name','required':!![],'param':0x0},{'title':_0x59ca12('0x1d75'),'name':_0x59ca12('0x19'),'type':_0x59ca12('0x132f'),'param':0x1},{'title':'Url','name':_0x59ca12('0xa8f'),'type':_0x59ca12('0x132f'),'param':0x2},{'title':_0x59ca12('0x1a0c'),'name':'sound','type':_0x59ca12('0x1ecc'),'values':'sounds','value':_0x59ca12('0x156f'),'option':_0x59ca12('0x890'),'defaultValues':[{'value':'\x27\x27','option':_0x59ca12('0x2576')}],'param':0x3},{'title':_0x59ca12('0x1ceb'),'name':_0x59ca12('0xd2f'),'type':_0x59ca12('0x7b8'),'min':0x0,'param':0x4},{'title':'Agi','name':_0x59ca12('0x17c6'),'type':_0x59ca12('0x132f'),'param':0x5},{'title':_0x59ca12('0x424'),'name':_0x59ca12('0x6e1'),'type':'text','param':0x6},{'title':_0x59ca12('0x2617'),'name':_0x59ca12('0x1aa9'),'type':_0x59ca12('0x132f'),'param':0x7},{'title':_0x59ca12('0xc38'),'name':_0x59ca12('0x800'),'type':'text','param':0x8},{'title':_0x59ca12('0x20f1'),'name':_0x59ca12('0x707'),'type':_0x59ca12('0x7b8'),'min':0x0,'param':0x9},{'title':_0x59ca12('0x6b5'),'name':'answer','type':_0x59ca12('0x2317'),'general':!![]}]},{'app':_0x59ca12('0x590'),'appType':'playback','context':_0x59ca12('0x2165'),'type':_0x59ca12('0x1e3e'),'icon':'icon-apps','interval':_0x59ca12('0x20c3'),'answer':!![],'isApp':!![],'extraApi':[{'name':_0x59ca12('0x27c4'),'field':{'name':_0x59ca12('0x2077'),'key':_0x59ca12('0x1138'),'prefix':_0x59ca12('0x2662')},'route':'sound','filters':{'fields':_0x59ca12('0x584'),'sort':_0x59ca12('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3ef}}],'fields':[{'title':_0x59ca12('0x2036'),'name':_0x59ca12('0x2077'),'type':_0x59ca12('0x1ecc'),'values':'sounds','value':_0x59ca12('0x235c'),'option':_0x59ca12('0x75e'),'required':!![],'param':0x0},{'title':'Options','name':'options','type':'text','param':0x1},{'title':_0x59ca12('0x6b5'),'name':_0x59ca12('0xdfa'),'type':_0x59ca12('0x2317'),'general':!![]}]},{'app':_0x59ca12('0x132'),'appType':_0x59ca12('0xd56'),'context':_0x59ca12('0x2165'),'type':_0x59ca12('0x1e3e'),'icon':_0x59ca12('0x24a0'),'options':'xX','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x59ca12('0x207b'),'name':_0x59ca12('0x201'),'type':'text','required':!![],'param':0x0},{'title':'Timeout','name':_0x59ca12('0xd2f'),'type':_0x59ca12('0x7b8'),'min':0x0,'param':0x1},{'title':_0x59ca12('0x1d75'),'name':_0x59ca12('0x19'),'type':_0x59ca12('0x132f'),'param':0x2},{'title':_0x59ca12('0x96a'),'name':_0x59ca12('0x101e'),'type':'text','param':0x3}]},{'app':_0x59ca12('0x132'),'appType':_0x59ca12('0x247f'),'context':_0x59ca12('0x2165'),'type':_0x59ca12('0x1e3e'),'icon':'icon-apps','options':'xX','interval':_0x59ca12('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x59ca12('0x12ed'),'field':{'name':'user','key':_0x59ca12('0x2aa'),'prefix':_0x59ca12('0xf5c')},'route':_0x59ca12('0x221e'),'filters':{'fields':_0x59ca12('0x1635'),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x59ca12('0x684')},{'id':0xcb,'role':'telephone'}]}}],'fields':[{'title':_0x59ca12('0x24fd'),'name':_0x59ca12('0x221e'),'type':_0x59ca12('0x1ecc'),'values':_0x59ca12('0x12ed'),'value':_0x59ca12('0x7ad'),'option':'user.name','required':!![],'param':0x0},{'title':_0x59ca12('0x1ceb'),'name':'timeout','type':_0x59ca12('0x7b8'),'min':0x0,'param':0x1},{'title':'Options','name':'options','type':_0x59ca12('0x132f'),'param':0x2},{'title':'Url','name':_0x59ca12('0x101e'),'type':'text','param':0x3}]},{'app':'Dial','appType':_0x59ca12('0x10ec'),'context':_0x59ca12('0x2165'),'type':_0x59ca12('0x1e3e'),'icon':_0x59ca12('0x24a0'),'interval':_0x59ca12('0x20c3'),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x59ca12('0x252a'),'key':_0x59ca12('0x2aa')},'route':'trunk','filters':{'fields':_0x59ca12('0x12d2'),'sort':_0x59ca12('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f3}}],'fields':[{'title':_0x59ca12('0x1bc6'),'name':_0x59ca12('0x252a'),'type':_0x59ca12('0x1ecc'),'values':_0x59ca12('0x19cb'),'value':'trunk.name','option':'trunk.name','required':!![],'param':0x0},{'title':_0x59ca12('0x101a'),'name':_0x59ca12('0x2154'),'type':_0x59ca12('0x132f')},{'title':_0x59ca12('0x1ceb'),'name':_0x59ca12('0xd2f'),'type':'number','min':0x0,'param':0x1},{'title':_0x59ca12('0x1d75'),'name':_0x59ca12('0x19'),'type':_0x59ca12('0x132f'),'param':0x2},{'title':_0x59ca12('0x96a'),'name':_0x59ca12('0x101e'),'type':'text','param':0x3}]},{'app':'Dial','appType':_0x59ca12('0x1da0'),'context':_0x59ca12('0x2165'),'type':_0x59ca12('0x1e3e'),'icon':_0x59ca12('0x24a0'),'interval':_0x59ca12('0x20c3'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x59ca12('0x12ed'),'field':{'name':_0x59ca12('0x212f'),'key':_0x59ca12('0x2aa'),'prefix':_0x59ca12('0xf5c')},'route':_0x59ca12('0x221e'),'filters':{'fields':_0x59ca12('0x1635'),'sort':'name','nolimit':!![]},'permissions':{'sections':[{'id':0xca,'role':_0x59ca12('0x684')},{'id':0xcb,'role':_0x59ca12('0x21b5')}]}}],'fields':[{'title':_0x59ca12('0x24fd'),'name':_0x59ca12('0x212f'),'type':_0x59ca12('0x1ecc'),'multiple':!![],'values':_0x59ca12('0x12ed'),'value':_0x59ca12('0x1b03'),'option':_0x59ca12('0xf0b'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x59ca12('0xd2f'),'type':_0x59ca12('0x7b8'),'min':0x0,'param':0x1},{'title':_0x59ca12('0x1d75'),'name':_0x59ca12('0x19'),'type':'text','param':0x2},{'title':_0x59ca12('0x96a'),'name':_0x59ca12('0x101e'),'type':_0x59ca12('0x132f'),'param':0x3}]},{'app':_0x59ca12('0x181f'),'alias':'CallySquare','appType':'agi','context':'from-sip','type':'Internal','icon':_0x59ca12('0x24a0'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x59ca12('0x20e0'),'field':{'name':_0x59ca12('0x87c'),'key':_0x59ca12('0x2aa'),'prefix':'agi://127.0.0.1/square,'},'route':_0x59ca12('0x1218'),'filters':{'fields':_0x59ca12('0x12d2'),'sort':'name','nolimit':!![]},'permissions':{'section':0x44f}}],'fields':[{'title':_0x59ca12('0x2149'),'name':_0x59ca12('0x87c'),'type':_0x59ca12('0x1ecc'),'values':_0x59ca12('0x20e0'),'value':_0x59ca12('0x3cd'),'option':_0x59ca12('0x1883'),'required':!![],'param':0x0}]},{'app':_0x59ca12('0x1fb0'),'appType':'goTo','context':'from-sip','type':_0x59ca12('0x1e3e'),'icon':_0x59ca12('0x24a0'),'interval':_0x59ca12('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x59ca12('0xfb3'),'field':{'name':_0x59ca12('0x17b3'),'key':'name'},'route':_0x59ca12('0xc76'),'filters':{'fields':'id,name','sort':_0x59ca12('0x2aa'),'nolimit':!![]},'permissions':{'section':0x195}}],'fields':[{'title':_0x59ca12('0x186c'),'name':_0x59ca12('0x17b3'),'type':_0x59ca12('0x1ecc'),'values':'contexts','value':_0x59ca12('0x2438'),'option':_0x59ca12('0x2438'),'required':!![],'param':0x0},{'title':_0x59ca12('0x717'),'name':_0x59ca12('0x26c3'),'type':_0x59ca12('0x132f'),'required':!![],'param':0x1},{'title':'Priority','name':_0x59ca12('0x1a6d'),'type':_0x59ca12('0x132f'),'required':!![],'param':0x2}]},{'app':_0x59ca12('0x450'),'appType':_0x59ca12('0x450'),'context':_0x59ca12('0x2165'),'type':'Internal','icon':'icon-apps','interval':_0x59ca12('0x20c3'),'isApp':!![],'fields':[{'title':_0x59ca12('0xcd0'),'name':'appdata','type':_0x59ca12('0x2897'),'param':0x0,'values':[{'option':_0x59ca12('0xfe1'),'value':_0x59ca12('0x1d26')},{'option':_0x59ca12('0x2647'),'value':_0x59ca12('0xe1c')},{'option':_0x59ca12('0xa41'),'value':_0x59ca12('0x160b')},{'option':_0x59ca12('0x1984'),'value':'\x2718\x27'},{'option':_0x59ca12('0x1d7b'),'value':_0x59ca12('0x3f9')},{'option':_0x59ca12('0x1cf9'),'value':_0x59ca12('0x7ca')},{'option':_0x59ca12('0x2634'),'value':_0x59ca12('0x1cb3')},{'option':_0x59ca12('0x27ca'),'value':_0x59ca12('0x2082')},{'option':_0x59ca12('0x680'),'value':_0x59ca12('0x1860')}],'translate':!![],'required':!![],'general':!![]}]},{'app':_0x59ca12('0xca'),'appType':_0x59ca12('0xf2e'),'context':_0x59ca12('0x2165'),'type':'Internal','separator':'=','icon':'icon-apps','interval':'*,*,*,*','extraApi':[{'name':_0x59ca12('0xd26'),'field':{'name':_0x59ca12('0x2aa'),'key':_0x59ca12('0x2aa')},'route':_0x59ca12('0xb0a'),'filters':{'fields':_0x59ca12('0x12d2'),'sort':_0x59ca12('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'isApp':!![],'fields':[{'title':_0x59ca12('0xd6a'),'name':_0x59ca12('0x2aa'),'type':_0x59ca12('0x1ecc'),'values':_0x59ca12('0xd26'),'value':_0x59ca12('0x21b9'),'option':'name.name','required':!![],'param':0x0},{'title':_0x59ca12('0x2775'),'name':'value','type':_0x59ca12('0x132f'),'required':!![],'param':0x1}]},{'app':null,'appType':_0x59ca12('0x8fa'),'icon':'icon-apps','type':_0x59ca12('0x1e3e'),'interval':_0x59ca12('0x20c3'),'isApp':!![],'fields':[{'title':_0x59ca12('0xeea'),'name':'app','type':'text','required':!![],'param':0x0},{'title':_0x59ca12('0x1271'),'name':'appdata','type':_0x59ca12('0x132f'),'param':0x1}]},{'app':_0x59ca12('0x1643'),'appType':_0x59ca12('0x27c8'),'context':_0x59ca12('0x2165'),'icon':_0x59ca12('0x24a0'),'type':'Internal','interval':_0x59ca12('0x20c3'),'isApp':!![],'extraApi':[{'name':'voiceMails','field':{'name':_0x59ca12('0x2753'),'key':_0x59ca12('0x25c6'),'suffix':_0x59ca12('0x1d8f')},'route':_0x59ca12('0x2753'),'filters':{'fields':_0x59ca12('0x107a'),'sort':_0x59ca12('0x25c6'),'nolimit':!![]},'permissions':{'section':0x196}}],'fields':[{'title':_0x59ca12('0xda'),'name':_0x59ca12('0x2753'),'type':'apiselect','values':_0x59ca12('0x15f1'),'value':_0x59ca12('0xf'),'option':'voiceMail.mailbox','required':!![],'param':0x0},{'title':_0x59ca12('0x1d75'),'name':'options','type':_0x59ca12('0x132f'),'param':0x1}]}],[_0x59ca12('0x643')]),{'isApp':![]}),_0x801d62[_0x59ca12('0x134c')]={'group':{'name':_0x59ca12('0x2003'),'pull':'clone'},'animation':0x64,'sort':![]},_0x801d62[_0x59ca12('0x1683')]={'group':{'name':_0x59ca12('0x22e2'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x3a216b){const _0x1b7f98=_0x59ca12;_0x53cd1b(_0x3a216b,_0x3a216b[_0x1b7f98('0xf0c')]);},'onSort':function(){_0x1b2c96();}},_0x801d62[_0x59ca12('0x161d')]=_0x2c6833,_0x801d62[_0x59ca12('0x1a20')]=_0x3ab8b5,_0x801d62[_0x59ca12('0xe2b')]=_0x2059ca,_0x801d62[_0x59ca12('0xe0b')]=_0x53cd1b,_0x801d62[_0x59ca12('0x1374')]=_0x5d0a4f,_0x801d62[_0x59ca12('0x1ca6')]=_0x49944f,_0x801d62[_0x59ca12('0x254a')]=_0x403f90,_0x801d62[_0x59ca12('0x107b')]=_0x1b2c96,_0x801d62[_0x59ca12('0x1a0d')]=_0x2ba57c;function _0x2c6833(_0x2f38c2,_0x1abf3c){const _0xbe82f5=_0x59ca12;_0x801d62[_0xbe82f5('0x166')]=_0x2f38c2,_0x801d62['crudPermissions']=typeof _0x1abf3c!=='undefined'?_0x1abf3c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x801d62[_0xbe82f5('0x1683')][_0xbe82f5('0xc3c')]=!_0x801d62[_0xbe82f5('0x103e')][_0xbe82f5('0x1d34')]?!![]:![],_0x801d62['query'][_0xbe82f5('0x64c')]=_0x2f38c2['id'],_0x801d62[_0xbe82f5('0x826')]['isApp']=!![],_0x801d62[_0xbe82f5('0x826')][_0xbe82f5('0x24c6')]=!![],_0x801d62[_0xbe82f5('0xe2b')](),_0x801d62['getIntervals']();}function _0x3ab8b5(_0x7b4f4c,_0x2d3a96,_0x38a611){const _0x14dad2=_0x59ca12,_0x53a17d=_0xa19604[_0x14dad2('0x1121')]()[_0x14dad2('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x14dad2('0x211f')](_0x14dad2('0xa53')+_0x7b4f4c[_0x14dad2('0x643')]+_0x14dad2('0x1d23')+_0x14dad2('0xe9f'))[_0x14dad2('0x2095')]('delete\x20application')[_0x14dad2('0x104f')](_0x38a611)['ok']('OK')[_0x14dad2('0x1d47')]('CANCEL');_0xa19604[_0x14dad2('0x28e2')](_0x53a17d)[_0x14dad2('0x17e7')](function(){const _0x22da16=_0x14dad2;_0x801d62[_0x22da16('0x455')]['rows'][_0x22da16('0x2335')](_0x2d3a96,0x1),_0x1b2c96();},function(){const _0x3d731c=_0x14dad2;console[_0x3d731c('0x1d63')](_0x3d731c('0x28a0'));});}function _0x53cd1b(_0x17b3cb,_0x77856f){const _0x543cc2=_0x59ca12;if(_0x801d62[_0x543cc2('0x455')][_0x543cc2('0x2319')]['length']){const _0xbfb8fc=_0x801d62[_0x543cc2('0x455')][_0x543cc2('0x2319')][_0x77856f]?_0x801d62[_0x543cc2('0x455')]['rows'][_0x77856f]:_0x801d62[_0x543cc2('0x455')][_0x543cc2('0x2319')][0x0],_0x1ec254=(_0xbfb8fc[_0x543cc2('0x1c54')]||_0xbfb8fc[_0x543cc2('0x643')])['toLowerCase']();_0xa19604['show']({'controller':_0x543cc2('0xec0')+_0x1ec254+_0x543cc2('0x1553'),'controllerAs':'vm','templateUrl':_0x39c155[_0x1ec254],'parent':angular[_0x543cc2('0x1ce1')](_0x20caee['body']),'targetEvent':_0x17b3cb,'clickOutsideToClose':!![],'locals':{'internalrouteApp':_0xbfb8fc,'internalroute':_0x801d62[_0x543cc2('0x166')],'crudPermissions':_0x801d62[_0x543cc2('0x103e')]}})[_0x543cc2('0x17e7')](function(_0xef6ce8){const _0x284880=_0x543cc2;_0xef6ce8&&(_0xef6ce8['id']?_0x801d62['internalrouteApps'][_0x284880('0x2319')][_0x77856f]=_0xef6ce8:_0x801d62['internalrouteApps'][_0x284880('0x2319')][_0x284880('0x2335')](_0x77856f,0x0,_0xef6ce8),_0x1b2c96());})[_0x543cc2('0x16df')](function(_0x728ec5){const _0x2dd038=_0x543cc2;_0x728ec5&&_0x4abb73[_0x2dd038('0x1db9')]({'title':_0x728ec5['status']?'API:'+_0x728ec5[_0x2dd038('0x11c5')]+'\x20-\x20'+_0x728ec5[_0x2dd038('0x1833')]:'SYSTEM:EDITMODALSHOW','msg':_0x728ec5['data']?JSON[_0x2dd038('0x678')](_0x728ec5['data']):_0x728ec5[_0x2dd038('0x9b6')]()});});}}function _0x5d0a4f(_0x3a77f6,_0x5966df){const _0x447232=_0x59ca12;if(_0x801d62[_0x447232('0x455')]['rows'][_0x447232('0x1f73')]){const _0x3f1eff=_0x801d62[_0x447232('0x455')][_0x447232('0x2319')][_0x5966df]?_0x801d62[_0x447232('0x455')][_0x447232('0x2319')][_0x5966df]:_0x801d62[_0x447232('0x455')]['rows'][0x0];_0xa19604[_0x447232('0x28e2')]({'controller':'EditInternalAppintervalDialogController','controllerAs':'vm','templateUrl':_0xf360d9,'parent':angular[_0x447232('0x1ce1')](_0x20caee[_0x447232('0x13aa')]),'targetEvent':_0x3a77f6,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x3f1eff['interval'],'IntervalId':_0x3f1eff[_0x447232('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0x801d62[_0x447232('0x103e')]}})[_0x447232('0x17e7')](function(_0x2f88d9){const _0x1095bd=_0x447232;_0x2f88d9&&(_0x3f1eff[_0x1095bd('0x231f')]=_0x2f88d9[_0x1095bd('0x231f')]||_0x1095bd('0x20c3'),_0x3f1eff[_0x1095bd('0x24a9')]=_0x2f88d9[_0x1095bd('0x24a9')]||null,_0x1b2c96());});}}function _0x1b2c96(){const _0x369038=_0x59ca12,_0x3a7789=[_0x369038('0x1bd'),_0x369038('0xec9')];let _0x4961b7=0x2,_0x3611d9=[];_0x3611d9[_0x369038('0x269f')]({'type':_0x369038('0xe3e'),'app':_0x369038('0xca'),'appdata':_0x369038('0x1988'),'context':_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')],'exten':_0x801d62[_0x369038('0x166')][_0x369038('0xee9')],'priority':_0x4961b7++,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']}),_0x3611d9['push']({'type':_0x369038('0xe3e'),'app':'Set','appdata':'XCALLY-MOTION-ANSWER=0','context':_0x801d62[_0x369038('0x166')]['context'],'exten':_0x801d62[_0x369038('0x166')][_0x369038('0xee9')],'priority':_0x4961b7++,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']}),_0x3611d9[_0x369038('0x269f')]({'type':_0x369038('0xe3e'),'app':_0x369038('0xca'),'appdata':_0x369038('0x6df'),'context':_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')],'exten':_0x801d62[_0x369038('0x166')][_0x369038('0xee9')],'priority':_0x4961b7++,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']}),_0x3611d9[_0x369038('0x269f')]({'type':_0x369038('0xe3e'),'app':_0x369038('0xca'),'appdata':_0x369038('0x6cf'),'context':_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')],'exten':_0x801d62[_0x369038('0x166')]['exten'],'priority':_0x4961b7++,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']});for(let _0x47fc90=0x0,_0x242ab4=0x0;_0x47fc90<_0x801d62[_0x369038('0x455')]['rows'][_0x369038('0x1f73')];_0x47fc90++,_0x242ab4=0x0){const _0x23313e=_0x801d62[_0x369038('0x455')][_0x369038('0x2319')][_0x47fc90],_0x1f45ff=[],_0x6932ea=[];_0x23313e['intervals']=_0x23313e[_0x369038('0x231f')]!=='*,*,*,*'?[_0x23313e[_0x369038('0x231f')]]:_0x23313e['IntervalId']?_0x49cbdd()[_0x369038('0x787')](_0x49cbdd()[_0x369038('0x2483')](_0x801d62[_0x369038('0x1be1')][_0x369038('0x2319')],{'IntervalId':_0x23313e['IntervalId']}),'interval'):[],_0x23313e[_0x369038('0x17b3')]=_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')],_0x23313e[_0x369038('0xee9')]=_0x801d62[_0x369038('0x166')][_0x369038('0xee9')];_0x23313e[_0x369038('0x412')]&&(_0x23313e['type']=_0x23313e[_0x369038('0x412')][_0x369038('0x19b')]());typeof _0x23313e['answer']!==_0x369038('0xfad')&&(_0x3a7789[_0x369038('0x24b0')](_0x23313e[_0x369038('0x643')][_0x369038('0x19b')]())&&_0x23313e[_0x369038('0x1c54')]!==_0x369038('0x8fa')&&(_0x23313e[_0x369038('0xdfa')]?(_0x1f45ff['push']({'type':_0x23313e[_0x369038('0x412')][_0x369038('0x19b')](),'app':'ExecIf','appdata':'$[${XCALLY-MOTION-ANSWER}=0]?Answer','context':_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')],'exten':_0x801d62[_0x369038('0x166')]['exten'],'priority':_0x23313e[_0x369038('0x1be1')]['length']+_0x4961b7+_0x242ab4++,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']}),_0x1f45ff[_0x369038('0x269f')]({'type':_0x23313e[_0x369038('0x412')][_0x369038('0x19b')](),'app':'Set','appdata':'XCALLY-MOTION-ANSWER=1','context':_0x801d62['internalroute'][_0x369038('0x17b3')],'exten':_0x801d62[_0x369038('0x166')]['exten'],'priority':_0x23313e[_0x369038('0x1be1')][_0x369038('0x1f73')]+_0x4961b7+_0x242ab4++,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']})):(_0x1f45ff[_0x369038('0x269f')]({'type':_0x23313e[_0x369038('0x412')]['toLowerCase'](),'app':_0x369038('0x9f4'),'appdata':_0x369038('0x12a0'),'context':_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')],'exten':_0x801d62[_0x369038('0x166')][_0x369038('0xee9')],'priority':_0x23313e[_0x369038('0x1be1')][_0x369038('0x1f73')]+_0x4961b7+_0x242ab4++,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']}),_0x1f45ff[_0x369038('0x269f')]({'type':_0x23313e[_0x369038('0x412')][_0x369038('0x19b')](),'app':'Set','appdata':_0x369038('0xd44'),'context':_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')],'exten':_0x801d62['internalroute'][_0x369038('0xee9')],'priority':_0x23313e[_0x369038('0x1be1')][_0x369038('0x1f73')]+_0x4961b7+_0x242ab4++,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']}))));for(let _0x3d8506=0x0;_0x3d8506<_0x23313e[_0x369038('0x1be1')][_0x369038('0x1f73')];_0x3d8506++){const _0x29815f=_0x4961b7+_0x23313e['intervals']['length'],_0x292001=_0x3d8506===_0x23313e['intervals'][_0x369038('0x1f73')]-0x1?_0x4961b7+_0x1f45ff[_0x369038('0x1f73')]+_0x6932ea[_0x369038('0x1f73')]+0x2:_0x4961b7+_0x3d8506+0x1;_0x1f45ff[_0x369038('0x2335')](_0x3d8506,0x0,{'type':_0x369038('0xe3e'),'app':_0x369038('0x3e7'),'appdata':_0x23313e[_0x369038('0x1be1')][_0x3d8506]+'?'+_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')]+_0x369038('0x69f')+_0x29815f+':'+_0x801d62[_0x369038('0x166')]['context']+_0x369038('0x69f')+_0x292001,'exten':_0x801d62[_0x369038('0x166')]['exten'],'context':_0x801d62[_0x369038('0x166')][_0x369038('0x17b3')],'priority':_0x4961b7+_0x3d8506,'VoiceExtensionId':_0x801d62['internalroute']['id']});}_0x23313e['priority']=_0x1f45ff[_0x369038('0x1f73')]?_0x49cbdd()[_0x369038('0x5e8')](_0x1f45ff)['priority']+0x1:_0x4961b7,_0x4961b7=(_0x6932ea['length']?_0x49cbdd()[_0x369038('0x5e8')](_0x6932ea)['priority']:_0x23313e[_0x369038('0x1a6d')])+0x1,_0x3611d9=_0x49cbdd()[_0x369038('0xe1b')](_0x3611d9,_0x1f45ff,[_0x23313e],_0x6932ea);}_0x3611d9['push']({'type':'internal','app':_0x369038('0xef6'),'exten':_0x801d62[_0x369038('0x166')]['exten'],'context':_0x801d62[_0x369038('0x166')]['context'],'priority':_0x4961b7,'VoiceExtensionId':_0x801d62[_0x369038('0x166')]['id']}),_0x302b25[_0x369038('0x16c2')][_0x369038('0x55d')]({'id':_0x801d62[_0x369038('0x166')]['id']},_0x49cbdd()['sortBy'](_0x3611d9,_0x369038('0x1a6d')))[_0x369038('0x1af5')][_0x369038('0x17e7')](function(_0x2fb72e){const _0x336b87=_0x369038;_0x801d62[_0x336b87('0x455')][_0x336b87('0x2319')]=_0x2fb72e['rows'];})[_0x369038('0x16df')](function(_0x4471f6){const _0x17df3c=_0x369038;console[_0x17df3c('0x1db9')](_0x4471f6);});}function _0x3be600(_0x46d84f){const _0x3acaa3=_0x59ca12;_0x801d62[_0x3acaa3('0x455')]=_0x46d84f||{'count':0x0,'rows':[]};}function _0x2ba57c(){const _0x3f9338=_0x59ca12;return _0x302b25[_0x3f9338('0x231f')]['get']({'fields':'id,interval,IntervalId'})[_0x3f9338('0x1af5')]['then'](function(_0x570d9b){const _0x3dcd70=_0x3f9338;_0x801d62[_0x3dcd70('0x1be1')]=_0x570d9b;})['catch'](function(_0x2533de){console['error'](_0x2533de);});}function _0x2059ca(){const _0x432446=_0x59ca12;_0x801d62[_0x432446('0x1691')]=_0x302b25[_0x432446('0x16c2')][_0x432446('0x1c53')](_0x801d62[_0x432446('0x826')],_0x3be600)[_0x432446('0x1af5')];}function _0x49944f(_0x4c43eb){const _0x1dea4e=_0x59ca12;_0x49cbdd()[_0x1dea4e('0x5f3')](_0x801d62[_0x1dea4e('0x455')][_0x1dea4e('0x2319')],{'id':_0x4c43eb['id']}),_0x1b2c96(),_0x4abb73['success']({'title':_0x1dea4e('0x22bd'),'msg':_0x4c43eb[_0x1dea4e('0x643')]?_0x4c43eb['app']+'\x20has\x20been\x20deleted!':''});}function _0x403f90(_0x485360){const _0x334fe4=_0x59ca12,_0x10ebff=_0xa19604['confirm']()[_0x334fe4('0x24d3')](_0x334fe4('0x272a'))[_0x334fe4('0x211f')](_0x334fe4('0xa53')+_0x801d62['selectedInternalRouteApps'][_0x334fe4('0x1f73')]+_0x334fe4('0x145a')+_0x334fe4('0xe9f'))['ariaLabel'](_0x334fe4('0x362'))[_0x334fe4('0x104f')](_0x485360)['ok']('OK')['cancel'](_0x334fe4('0x28a0'));_0xa19604['show'](_0x10ebff)[_0x334fe4('0x17e7')](function(){const _0x58269a=_0x334fe4;_0x801d62[_0x58269a('0x24c5')][_0x58269a('0xccd')](function(_0x3cb997){const _0x2bd3c5=_0x58269a;_0x49cbdd()[_0x2bd3c5('0x5f3')](_0x801d62[_0x2bd3c5('0x455')][_0x2bd3c5('0x2319')],{'id':_0x3cb997['id']});}),_0x801d62['selectedInternalRouteApps']=[],_0x1b2c96();});}}const _0xe6a243=_0x1b045e;_0x240e0f['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x22c7'),'internalroute','api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x240e0f(_0x3fe4c9,_0x1db9cf,_0x201a09,_0x2ce750,_0x397049,_0x422cb3,_0x5707a8,_0x35ee56){const _0x2b0576=_0x4376d8,_0x3ea84e=this;_0x3ea84e[_0x2b0576('0x197c')]=_0x5707a8[_0x2b0576('0x2831')](),_0x3ea84e[_0x2b0576('0x73e')]=[],_0x3ea84e[_0x2b0576('0x24d3')]='VOICE.EDIT_'+(_0x2ce750[_0x2b0576('0x1c54')]||_0x2ce750['app'])[_0x2b0576('0x14e2')](),_0x3ea84e[_0x2b0576('0x17c6')]=angular['copy'](_0x2ce750),_0x3ea84e[_0x2b0576('0x103e')]=_0x35ee56,_0x3ea84e['hasModulePermissions']={};if(_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2077')])switch(_0x3ea84e['agi'][_0x2b0576('0x1c54')]?_0x3ea84e[_0x2b0576('0x17c6')]['appType']['toLowerCase']():_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x643')][_0x2b0576('0x19b')]()){case _0x2b0576('0x8fa'):break;case _0x2b0576('0x2526'):{const _0x433334=_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2077')]['split'](',');_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0xdb5')]=_0x433334[0x0],_0x3ea84e['agi']['language']=_0x433334[0x1],_0x3ea84e['agi'][_0x2b0576('0x1083')]=_0x433334[_0x2b0576('0x275f')](0x2,_0x433334['length'])[_0x2b0576('0x1eba')](',');}break;case'dialogflowv2':{const _0x350863=_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2077')][_0x2b0576('0x2007')](',');_0x3ea84e['agi'][_0x2b0576('0x28ab')]=_0x350863[0x0],_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2814')]=_0x350863[0x1],_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x1bc2')]=_0x350863[0x2],_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x3e1')]=_0x350863[0x3],_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x1083')]=_0x350863[_0x2b0576('0x275f')](0x4,_0x350863[_0x2b0576('0x1f73')])[_0x2b0576('0x1eba')](',');}break;case _0x2b0576('0x16a9'):{const _0x35ba45=_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2077')][_0x2b0576('0x2007')](',');_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x1452')]=_0x35ba45[0x0],_0x3ea84e['agi'][_0x2b0576('0x1a62')]=_0x35ba45[0x1],_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x1dcf')]=_0x35ba45[0x2],_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x4a')]=_0x35ba45[0x3],_0x3ea84e['agi'][_0x2b0576('0x1083')]=_0x35ba45['slice'](0x4,_0x35ba45[_0x2b0576('0x1f73')])[_0x2b0576('0x1eba')](',');}break;case _0x2b0576('0x96e'):{const _0x2f21e5=_0x3ea84e[_0x2b0576('0x17c6')]['appdata'][_0x2b0576('0x2007')](',');_0x3ea84e[_0x2b0576('0x17c6')]['times']=isNaN(_0x2f21e5[0x0])?_0x2f21e5[0x0]:parseInt(_0x2f21e5[0x0],0xa),_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x132f')]=_0x2f21e5['slice'](0x1,_0x2f21e5['length'])[_0x2b0576('0x1eba')](',');}break;case _0x2b0576('0x1603'):_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x132f')]=_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2077')];break;case _0x2b0576('0xf2e'):_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2aa')]=_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2077')][_0x2b0576('0x2007')]('=')[0x0],_0x3ea84e['agi']['value']=_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2077')][_0x2b0576('0x2007')]('=')[0x1];break;case'agi':_0x3ea84e['agi'][_0x2b0576('0x87c')]=_0x3ea84e['agi']['appdata'];break;default:{const _0x43416a=_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2077')][_0x2b0576('0x2007')](',');_0x3ea84e['agi'][_0x2b0576('0x87c')]=_0x49cbdd()['isEmpty'](_0x43416a[0x0])?_0x43416a[0x0]:isNaN(_0x43416a[0x0])?_0x43416a[0x0]:parseInt(_0x43416a[0x0],0xa);}break;}else{}_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x412')]&&_0x3ea84e['agi']['type'][_0x2b0576('0x19b')]()===_0x2b0576('0x1ade')&&_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x1c54')]['toLowerCase']()===_0x2b0576('0x1711')&&(_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x11d4')]=_0x3ea84e[_0x2b0576('0x17c6')]['phone']?_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x2154')][_0x2b0576('0x2007')]('$')[0x0]:undefined,_0x3ea84e[_0x2b0576('0x17c6')][_0x2b0576('0x1a8e')]=_0x3ea84e['agi'][_0x2b0576('0x17f4')]?'CALLERID(all)='+_0x3ea84e[_0x2b0576('0x17c6')]['callerID']:undefined);_0x3ea84e[_0x2b0576('0x10f')]=_0x41b89e,_0x3ea84e[_0x2b0576('0x136e')]=_0x2ec0c7,_0x5707a8[_0x2b0576('0x1ba2')]('admin')?_0x422cb3[_0x2b0576('0x1218')]['get']({'fields':_0x2b0576('0x12d2'),'sort':_0x2b0576('0x2aa'),'nolimit':_0x2b0576('0xe34')})[_0x2b0576('0x1af5')][_0x2b0576('0x17e7')](function(_0x4eb6e3){const _0x5e0f50=_0x2b0576;_0x3ea84e[_0x5e0f50('0x20e0')]=_0x4eb6e3[_0x5e0f50('0x2319')]||[];})[_0x2b0576('0x16df')](function(_0x14624f){const _0x5229a2=_0x2b0576;_0x201a09[_0x5229a2('0x1db9')]({'title':_0x14624f[_0x5229a2('0x11c5')]?_0x5229a2('0x14f7')+_0x14624f['status']+_0x5229a2('0x16e4')+_0x14624f[_0x5229a2('0x1833')]:_0x5229a2('0x13d0'),'msg':_0x14624f[_0x5229a2('0x1457')]?JSON[_0x5229a2('0x678')](_0x14624f[_0x5229a2('0x1457')]):_0x14624f[_0x5229a2('0x9b6')]()});}):_0x422cb3['squareProject'][_0x2b0576('0x1c53')]({'fields':_0x2b0576('0x12d2'),'sort':_0x2b0576('0x2aa'),'nolimit':_0x2b0576('0xe34')})['$promise']['then'](function(_0x13988f){const _0x43092e=_0x2b0576;_0x3ea84e[_0x43092e('0x20e0')]=_0x13988f['rows']||[];})[_0x2b0576('0x17e7')](function(){const _0x1ab151=_0x2b0576;return _0x422cb3[_0x1ab151('0x383')][_0x1ab151('0x1c53')]({'userProfileId':_0x3ea84e[_0x1ab151('0x197c')]['userProfileId'],'sectionId':0x44f})['$promise'];})[_0x2b0576('0x17e7')](function(_0x403358){const _0xf6f6f3=_0x2b0576,_0x48515a=_0x403358&&_0x403358[_0xf6f6f3('0x2319')]?_0x403358[_0xf6f6f3('0x2319')][0x0]:null;if(!_0x48515a){const _0x2f389f=[];let _0x29ee19=null;_0x3ea84e[_0xf6f6f3('0x17c6')]&&(_0x29ee19=_0x49cbdd()[_0xf6f6f3('0xe8e')](_0x3ea84e[_0xf6f6f3('0x20e0')],{'name':_0x3ea84e[_0xf6f6f3('0x17c6')][_0xf6f6f3('0x87c')]}));for(let _0x33b52c=0x0;_0x33b52c<_0x3ea84e[_0xf6f6f3('0x20e0')][_0xf6f6f3('0x1f73')];_0x33b52c++){_0x29ee19&&_0x3ea84e[_0xf6f6f3('0x20e0')][_0x33b52c]['id']===_0x29ee19['id']&&(_0x3ea84e[_0xf6f6f3('0x20e0')][_0x33b52c][_0xf6f6f3('0xe5c')]=![],_0x2f389f[_0xf6f6f3('0x269f')](_0x3ea84e[_0xf6f6f3('0x20e0')][_0x33b52c]));}_0x3ea84e[_0xf6f6f3('0x20e0')]=_0x2f389f;}else{if(!_0x48515a['autoAssociation'])return _0x422cb3[_0xf6f6f3('0x78d')][_0xf6f6f3('0x1c53')]({'sectionId':_0x48515a['id']})[_0xf6f6f3('0x1af5')][_0xf6f6f3('0x17e7')](function(_0x5366a8){const _0xe450e9=_0xf6f6f3,_0x1c9dae=_0x49cbdd()[_0xe450e9('0x787')](_0x5366a8['rows'],function(_0x4ec98f){const _0x31ff0e=_0xe450e9;return _0x49cbdd()[_0x31ff0e('0xe8e')](_0x3ea84e[_0x31ff0e('0x20e0')],{'id':_0x4ec98f[_0x31ff0e('0x5db')]});});let _0x131eb5=null;_0x3ea84e[_0xe450e9('0x17c6')]&&(_0x131eb5=_0x49cbdd()[_0xe450e9('0xe8e')](_0x3ea84e[_0xe450e9('0x20e0')],{'name':_0x3ea84e[_0xe450e9('0x17c6')]['project']}));if(_0x131eb5&&!_0x49cbdd()[_0xe450e9('0x26f8')](_0x1c9dae,['id',_0x131eb5['id']])){const _0x29ae97=_0x49cbdd()[_0xe450e9('0xe8e')](_0x3ea84e[_0xe450e9('0x20e0')],{'id':_0x131eb5['id']});_0x29ae97['canSelect']=![],_0x1c9dae[_0xe450e9('0x269f')](_0x29ae97);}_0x3ea84e[_0xe450e9('0x20e0')]=_0x1c9dae;});}})['catch'](function(_0x41d6af){const _0x345cad=_0x2b0576;_0x201a09[_0x345cad('0x1db9')]({'title':_0x41d6af[_0x345cad('0x11c5')]?_0x345cad('0x14f7')+_0x41d6af[_0x345cad('0x11c5')]+'\x20-\x20'+_0x41d6af[_0x345cad('0x1833')]:_0x345cad('0x27b7'),'msg':_0x41d6af['data']?JSON['stringify'](_0x41d6af['data']):_0x41d6af[_0x345cad('0x9b6')]()});});function _0x41b89e(){const _0x3c966a=_0x2b0576;_0x3ea84e[_0x3c966a('0x73e')]=[];const _0x18e1f4=[];_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x412')]&&_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x412')][_0x3c966a('0x19b')]()===_0x3c966a('0x1ade')&&_0x3ea84e['agi']['appType']===_0x3c966a('0xbdc')&&(_0x3ea84e[_0x3c966a('0x17c6')]['phone']=_0x397049[_0x3c966a('0x12af')]?(_0x3ea84e[_0x3c966a('0x17c6')]['prefix']||'')+'${EXTEN:'+_0x397049['cutdigits']+'}':(_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x11d4')]||'')+_0x3c966a('0x150e'),_0x397049[_0x3c966a('0x287')]!==_0x3c966a('0x7ee')?_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x19')][_0x3c966a('0x2567')](_0x3c966a('0xa22'))<0x0&&(_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x19')]+='U(xcally-mixmonitor-context)'):_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x19')]=_0x3ea84e['agi'][_0x3c966a('0x19')][_0x3c966a('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x1c54')]&&_0x3ea84e[_0x3c966a('0x17c6')]['appType']===_0x3c966a('0x8fa')){}else switch((_0x3ea84e[_0x3c966a('0x17c6')]['app']||_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x1c54')])['toLowerCase']()){case _0x3c966a('0xf2e'):_0x3ea84e['agi'][_0x3c966a('0x2077')]=_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x2aa')]+'='+_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x175b')];break;case _0x3c966a('0x8fa'):break;default:_0x18e1f4[0x0]=_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x87c')],_0x3ea84e[_0x3c966a('0x17c6')][_0x3c966a('0x2077')]=_0x18e1f4['join'](',');}_0x2ec0c7(_0x3ea84e[_0x3c966a('0x17c6')]);}function _0x2ec0c7(_0x5aebb1){const _0x12aaea=_0x2b0576;_0x3fe4c9[_0x12aaea('0x212a')](_0x5aebb1);}}const _0x4a3e12=_0x240e0f;_0x22d5ba[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x22c7'),_0x4376d8('0x166'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x22d5ba(_0xedc70b,_0x75637c,_0x289de4,_0x53e784,_0x3ab533,_0x32dc2d,_0x11c14d,_0x19308f){const _0x4e0bbf=_0x4376d8,_0x3a307a=this;_0x3a307a['currentUser']=_0x11c14d[_0x4e0bbf('0x2831')](),_0x3a307a[_0x4e0bbf('0x73e')]=[],_0x3a307a[_0x4e0bbf('0x24d3')]=_0x4e0bbf('0x1c6f')+(_0x53e784[_0x4e0bbf('0x1c54')]||_0x53e784[_0x4e0bbf('0x643')])[_0x4e0bbf('0x14e2')](),_0x3a307a[_0x4e0bbf('0x8fa')]=angular[_0x4e0bbf('0x14e5')](_0x53e784),_0x3a307a[_0x4e0bbf('0x103e')]=_0x19308f,_0x3a307a[_0x4e0bbf('0x6ee')]={};if(_0x3a307a['custom'][_0x4e0bbf('0x2077')])switch(_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x1c54')]?_0x3a307a['custom'][_0x4e0bbf('0x1c54')][_0x4e0bbf('0x19b')]():_0x3a307a['custom'][_0x4e0bbf('0x643')][_0x4e0bbf('0x19b')]()){case _0x4e0bbf('0x8fa'):break;case _0x4e0bbf('0x2526'):{const _0x12bee8=_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x2077')]['split'](',');_0x3a307a['custom']['key']=_0x12bee8[0x0],_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x3e1')]=_0x12bee8[0x1],_0x3a307a[_0x4e0bbf('0x8fa')]['welcomemessage']=_0x12bee8[_0x4e0bbf('0x275f')](0x2,_0x12bee8[_0x4e0bbf('0x1f73')])['join'](',');}break;case _0x4e0bbf('0x22ac'):{const _0x5a3730=_0x3a307a[_0x4e0bbf('0x8fa')]['appdata'][_0x4e0bbf('0x2007')](',');_0x3a307a[_0x4e0bbf('0x8fa')]['projectId']=_0x5a3730[0x0],_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x2814')]=_0x5a3730[0x1],_0x3a307a['custom'][_0x4e0bbf('0x1bc2')]=_0x5a3730[0x2],_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x3e1')]=_0x5a3730[0x3],_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x1083')]=_0x5a3730['slice'](0x4,_0x5a3730[_0x4e0bbf('0x1f73')])[_0x4e0bbf('0x1eba')](',');}break;case _0x4e0bbf('0x16a9'):{const _0x23e33c=_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x2077')][_0x4e0bbf('0x2007')](',');_0x3a307a[_0x4e0bbf('0x8fa')]['accesskeyid']=_0x23e33c[0x0],_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x1a62')]=_0x23e33c[0x1],_0x3a307a[_0x4e0bbf('0x8fa')]['lexregion']=_0x23e33c[0x2],_0x3a307a['custom'][_0x4e0bbf('0x4a')]=_0x23e33c[0x3],_0x3a307a[_0x4e0bbf('0x8fa')]['welcomemessage']=_0x23e33c['slice'](0x4,_0x23e33c[_0x4e0bbf('0x1f73')])[_0x4e0bbf('0x1eba')](',');}break;case _0x4e0bbf('0x96e'):{const _0x36be9e=_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x2077')][_0x4e0bbf('0x2007')](',');_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x12a6')]=isNaN(_0x36be9e[0x0])?_0x36be9e[0x0]:parseInt(_0x36be9e[0x0],0xa),_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x132f')]=_0x36be9e['slice'](0x1,_0x36be9e[_0x4e0bbf('0x1f73')])[_0x4e0bbf('0x1eba')](',');}break;case _0x4e0bbf('0x1603'):_0x3a307a[_0x4e0bbf('0x8fa')]['text']=_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x2077')];break;case _0x4e0bbf('0xf2e'):_0x3a307a['custom'][_0x4e0bbf('0x2aa')]=_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x2077')]['split']('=')[0x0],_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x175b')]=_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x2077')][_0x4e0bbf('0x2007')]('=')[0x1];break;case'agi':_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x87c')]=_0x3a307a[_0x4e0bbf('0x8fa')]['appdata'];break;default:{const _0x46eb71=_0x3a307a['custom'][_0x4e0bbf('0x2077')][_0x4e0bbf('0x2007')](',');_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x643')]=_0x49cbdd()[_0x4e0bbf('0x109a')](_0x46eb71[0x0])?_0x46eb71[0x0]:isNaN(_0x46eb71[0x0])?_0x46eb71[0x0]:parseInt(_0x46eb71[0x0],0xa),_0x3a307a[_0x4e0bbf('0x8fa')]['appdata']=_0x49cbdd()['isEmpty'](_0x46eb71[0x1])?_0x46eb71[0x1]:isNaN(_0x46eb71[0x1])?_0x46eb71[0x1]:parseInt(_0x46eb71[0x1],0xa);}break;}else{}_0x3a307a[_0x4e0bbf('0x8fa')]['type']&&_0x3a307a['custom']['type'][_0x4e0bbf('0x19b')]()===_0x4e0bbf('0x1ade')&&_0x3a307a['custom'][_0x4e0bbf('0x1c54')][_0x4e0bbf('0x19b')]()===_0x4e0bbf('0x1711')&&(_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x11d4')]=_0x3a307a['custom'][_0x4e0bbf('0x2154')]?_0x3a307a['custom'][_0x4e0bbf('0x2154')]['split']('$')[0x0]:undefined,_0x3a307a['custom'][_0x4e0bbf('0x1a8e')]=_0x3a307a[_0x4e0bbf('0x8fa')][_0x4e0bbf('0x17f4')]?'CALLERID(all)='+_0x3a307a[_0x4e0bbf('0x8fa')]['callerID']:undefined);_0x3a307a[_0x4e0bbf('0x10f')]=_0xa1c71f,_0x3a307a[_0x4e0bbf('0x136e')]=_0x4bdf2f;function _0xa1c71f(){const _0x59e89b=_0x4e0bbf;_0x3a307a[_0x59e89b('0x73e')]=[];const _0x47c134=[];_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x412')]&&_0x3a307a[_0x59e89b('0x8fa')]['type'][_0x59e89b('0x19b')]()===_0x59e89b('0x1ade')&&_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x1c54')]===_0x59e89b('0xbdc')&&(_0x3a307a['custom'][_0x59e89b('0x2154')]=_0x3ab533[_0x59e89b('0x12af')]?(_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x11d4')]||'')+_0x59e89b('0x2265')+_0x3ab533[_0x59e89b('0x12af')]+'}':(_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x11d4')]||'')+_0x59e89b('0x150e'),_0x3ab533[_0x59e89b('0x287')]!==_0x59e89b('0x7ee')?_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x19')][_0x59e89b('0x2567')](_0x59e89b('0xa22'))<0x0&&(_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x19')]+=_0x59e89b('0xa22')):_0x3a307a['custom'][_0x59e89b('0x19')]=_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x19')]['replace'](_0x59e89b('0xa22'),''));if(_0x3a307a['custom'][_0x59e89b('0x1c54')]&&_0x3a307a[_0x59e89b('0x8fa')]['appType']==='custom'){}else switch((_0x3a307a['custom'][_0x59e89b('0x643')]||_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x1c54')])[_0x59e89b('0x19b')]()){case _0x59e89b('0xf2e'):_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x2077')]=_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x2aa')]+'='+_0x3a307a[_0x59e89b('0x8fa')]['value'];break;case _0x59e89b('0x8fa'):break;default:_0x47c134[0x0]=_0x3a307a[_0x59e89b('0x8fa')][_0x59e89b('0x643')],_0x47c134[0x1]=_0x3a307a['custom'][_0x59e89b('0x2077')],_0x3a307a['custom'][_0x59e89b('0x2077')]=_0x47c134[_0x59e89b('0x1eba')](',');}_0x4bdf2f(_0x3a307a['custom']);}function _0x4bdf2f(_0x9470ec){const _0x32db5e=_0x4e0bbf;_0xedc70b[_0x32db5e('0x212a')](_0x9470ec);}}const _0x96cc0c=_0x22d5ba;_0x2ef1e2['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x22c7'),_0x4376d8('0x166'),'api','Auth',_0x4376d8('0x103e')];function _0x2ef1e2(_0x4dbbfe,_0x55ed3d,_0x392dd9,_0x37d9ff,_0x726a83,_0x465b7f,_0x1e5336,_0xc90807){const _0x1aeef9=_0x4376d8,_0x189556=this;_0x189556[_0x1aeef9('0x197c')]=_0x1e5336[_0x1aeef9('0x2831')](),_0x189556['errors']=[],_0x189556[_0x1aeef9('0x24d3')]='VOICE.EDIT_'+(_0x37d9ff['appType']||_0x37d9ff[_0x1aeef9('0x643')])[_0x1aeef9('0x14e2')](),_0x189556['dial']=angular[_0x1aeef9('0x14e5')](_0x37d9ff),_0x189556[_0x1aeef9('0x103e')]=_0xc90807,_0x189556[_0x1aeef9('0x6ee')]={};if(_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x2077')])switch(_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x1c54')]?_0x189556['dial'][_0x1aeef9('0x1c54')]['toLowerCase']():_0x189556[_0x1aeef9('0xd56')]['app'][_0x1aeef9('0x19b')]()){case _0x1aeef9('0x8fa'):break;case _0x1aeef9('0x2526'):{const _0x4ee6e0=_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x2077')][_0x1aeef9('0x2007')](',');_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0xdb5')]=_0x4ee6e0[0x0],_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x3e1')]=_0x4ee6e0[0x1],_0x189556['dial']['welcomemessage']=_0x4ee6e0[_0x1aeef9('0x275f')](0x2,_0x4ee6e0['length'])['join'](',');}break;case _0x1aeef9('0x22ac'):{const _0x4e9693=_0x189556['dial'][_0x1aeef9('0x2077')][_0x1aeef9('0x2007')](',');_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x28ab')]=_0x4e9693[0x0],_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x2814')]=_0x4e9693[0x1],_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x1bc2')]=_0x4e9693[0x2],_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x3e1')]=_0x4e9693[0x3],_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x1083')]=_0x4e9693['slice'](0x4,_0x4e9693['length'])[_0x1aeef9('0x1eba')](',');}break;case _0x1aeef9('0x16a9'):{const _0x479190=_0x189556[_0x1aeef9('0xd56')]['appdata'][_0x1aeef9('0x2007')](',');_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x1452')]=_0x479190[0x0],_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x1a62')]=_0x479190[0x1],_0x189556['dial'][_0x1aeef9('0x1dcf')]=_0x479190[0x2],_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x4a')]=_0x479190[0x3],_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x1083')]=_0x479190['slice'](0x4,_0x479190[_0x1aeef9('0x1f73')])[_0x1aeef9('0x1eba')](',');}break;case _0x1aeef9('0x96e'):{const _0x10142d=_0x189556['dial'][_0x1aeef9('0x2077')][_0x1aeef9('0x2007')](',');_0x189556[_0x1aeef9('0xd56')]['times']=isNaN(_0x10142d[0x0])?_0x10142d[0x0]:parseInt(_0x10142d[0x0],0xa),_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x132f')]=_0x10142d[_0x1aeef9('0x275f')](0x1,_0x10142d['length'])[_0x1aeef9('0x1eba')](',');}break;case _0x1aeef9('0x1603'):_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x132f')]=_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x2077')];break;case _0x1aeef9('0xf2e'):_0x189556[_0x1aeef9('0xd56')]['name']=_0x189556[_0x1aeef9('0xd56')]['appdata']['split']('=')[0x0],_0x189556['dial'][_0x1aeef9('0x175b')]=_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x2077')]['split']('=')[0x1];break;case _0x1aeef9('0x17c6'):_0x189556['dial'][_0x1aeef9('0x87c')]=_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x2077')];break;default:{const _0x370c4f=_0x189556['dial'][_0x1aeef9('0x2077')][_0x1aeef9('0x2007')](',');_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x201')]=_0x49cbdd()['isEmpty'](_0x370c4f[0x0])?_0x370c4f[0x0]:isNaN(_0x370c4f[0x0])?_0x370c4f[0x0]:parseInt(_0x370c4f[0x0],0xa),_0x189556['dial']['timeout']=_0x49cbdd()['isEmpty'](_0x370c4f[0x1])?_0x370c4f[0x1]:isNaN(_0x370c4f[0x1])?_0x370c4f[0x1]:parseInt(_0x370c4f[0x1],0xa),_0x189556[_0x1aeef9('0xd56')]['options']=_0x49cbdd()['isEmpty'](_0x370c4f[0x2])?_0x370c4f[0x2]:isNaN(_0x370c4f[0x2])?_0x370c4f[0x2]:parseInt(_0x370c4f[0x2],0xa),_0x189556['dial']['url']=_0x49cbdd()['isEmpty'](_0x370c4f[0x3])?_0x370c4f[0x3]:isNaN(_0x370c4f[0x3])?_0x370c4f[0x3]:parseInt(_0x370c4f[0x3],0xa);}break;}else{}_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x412')]&&_0x189556[_0x1aeef9('0xd56')]['type']['toLowerCase']()===_0x1aeef9('0x1ade')&&_0x189556[_0x1aeef9('0xd56')][_0x1aeef9('0x1c54')][_0x1aeef9('0x19b')]()===_0x1aeef9('0x1711')&&(_0x189556['dial'][_0x1aeef9('0x11d4')]=_0x189556[_0x1aeef9('0xd56')]['phone']?_0x189556['dial'][_0x1aeef9('0x2154')][_0x1aeef9('0x2007')]('$')[0x0]:undefined,_0x189556['dial'][_0x1aeef9('0x1a8e')]=_0x189556['dial'][_0x1aeef9('0x17f4')]?_0x1aeef9('0x1d28')+_0x189556['dial'][_0x1aeef9('0x17f4')]:undefined);_0x189556[_0x1aeef9('0x10f')]=_0x4400b2,_0x189556[_0x1aeef9('0x136e')]=_0x29e02c;function _0x4400b2(){const _0x3591d8=_0x1aeef9;_0x189556['errors']=[];const _0x6e1c17=[];_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x412')]&&_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x412')][_0x3591d8('0x19b')]()===_0x3591d8('0x1ade')&&_0x189556['dial'][_0x3591d8('0x1c54')]===_0x3591d8('0xbdc')&&(_0x189556['dial'][_0x3591d8('0x2154')]=_0x726a83[_0x3591d8('0x12af')]?(_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x11d4')]||'')+'${EXTEN:'+_0x726a83[_0x3591d8('0x12af')]+'}':(_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x11d4')]||'')+_0x3591d8('0x150e'),_0x726a83[_0x3591d8('0x287')]!==_0x3591d8('0x7ee')?_0x189556['dial'][_0x3591d8('0x19')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x19')]+=_0x3591d8('0xa22')):_0x189556[_0x3591d8('0xd56')]['options']=_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x19')][_0x3591d8('0x737')](_0x3591d8('0xa22'),''));if(_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x1c54')]&&_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x1c54')]==='custom'){}else switch((_0x189556[_0x3591d8('0xd56')]['app']||_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x1c54')])['toLowerCase']()){case _0x3591d8('0xf2e'):_0x189556['dial'][_0x3591d8('0x2077')]=_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x2aa')]+'='+_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x175b')];break;case _0x3591d8('0x8fa'):break;default:_0x6e1c17[0x0]=_0x189556['dial']['tech'],_0x6e1c17[0x1]=_0x189556[_0x3591d8('0xd56')][_0x3591d8('0xd2f')],_0x6e1c17[0x2]=_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x19')],_0x6e1c17[0x3]=_0x189556['dial'][_0x3591d8('0x101e')],_0x189556[_0x3591d8('0xd56')][_0x3591d8('0x2077')]=_0x6e1c17[_0x3591d8('0x1eba')](',');}_0x29e02c(_0x189556['dial']);}function _0x29e02c(_0x5a80d5){const _0x1b7d4f=_0x1aeef9;_0x4dbbfe[_0x1b7d4f('0x212a')](_0x5a80d5);}}const _0x5e8a78=_0x2ef1e2;_0x2e58a5[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x22c7'),_0x4376d8('0x166'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x2e58a5(_0x193ea6,_0x1901e1,_0x3841d9,_0xd520eb,_0xd09e0f,_0x5e3ec9,_0x3a32d2,_0x13482c){const _0x4f0803=_0x4376d8,_0x1f7eb0=this;_0x1f7eb0[_0x4f0803('0x197c')]=_0x3a32d2[_0x4f0803('0x2831')](),_0x1f7eb0[_0x4f0803('0x73e')]=[],_0x1f7eb0[_0x4f0803('0x24d3')]=_0x4f0803('0x1c6f')+(_0xd520eb[_0x4f0803('0x1c54')]||_0xd520eb[_0x4f0803('0x643')])[_0x4f0803('0x14e2')](),_0x1f7eb0[_0x4f0803('0x663')]=angular['copy'](_0xd520eb),_0x1f7eb0['crudPermissions']=_0x13482c,_0x1f7eb0[_0x4f0803('0x6ee')]={};if(_0x1f7eb0['externaldial'][_0x4f0803('0x2077')])switch(_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1c54')]?_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1c54')][_0x4f0803('0x19b')]():_0x1f7eb0[_0x4f0803('0x663')]['app'][_0x4f0803('0x19b')]()){case _0x4f0803('0x8fa'):break;case _0x4f0803('0x2526'):{const _0x4ec95a=_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2077')][_0x4f0803('0x2007')](',');_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0xdb5')]=_0x4ec95a[0x0],_0x1f7eb0['externaldial'][_0x4f0803('0x3e1')]=_0x4ec95a[0x1],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1083')]=_0x4ec95a[_0x4f0803('0x275f')](0x2,_0x4ec95a[_0x4f0803('0x1f73')])[_0x4f0803('0x1eba')](',');}break;case _0x4f0803('0x22ac'):{const _0x3d16cb=_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2077')][_0x4f0803('0x2007')](',');_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x28ab')]=_0x3d16cb[0x0],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2814')]=_0x3d16cb[0x1],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1bc2')]=_0x3d16cb[0x2],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x3e1')]=_0x3d16cb[0x3],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1083')]=_0x3d16cb[_0x4f0803('0x275f')](0x4,_0x3d16cb[_0x4f0803('0x1f73')])[_0x4f0803('0x1eba')](',');}break;case _0x4f0803('0x16a9'):{const _0x1274a0=_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2077')][_0x4f0803('0x2007')](',');_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1452')]=_0x1274a0[0x0],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1a62')]=_0x1274a0[0x1],_0x1f7eb0['externaldial'][_0x4f0803('0x1dcf')]=_0x1274a0[0x2],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x4a')]=_0x1274a0[0x3],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1083')]=_0x1274a0['slice'](0x4,_0x1274a0[_0x4f0803('0x1f73')])[_0x4f0803('0x1eba')](',');}break;case _0x4f0803('0x96e'):{const _0x2bbfeb=_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2077')][_0x4f0803('0x2007')](',');_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x12a6')]=isNaN(_0x2bbfeb[0x0])?_0x2bbfeb[0x0]:parseInt(_0x2bbfeb[0x0],0xa),_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x132f')]=_0x2bbfeb[_0x4f0803('0x275f')](0x1,_0x2bbfeb[_0x4f0803('0x1f73')])[_0x4f0803('0x1eba')](',');}break;case'message':_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x132f')]=_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2077')];break;case'set':_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2aa')]=_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2077')][_0x4f0803('0x2007')]('=')[0x0],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x175b')]=_0x1f7eb0[_0x4f0803('0x663')]['appdata'][_0x4f0803('0x2007')]('=')[0x1];break;case _0x4f0803('0x17c6'):_0x1f7eb0[_0x4f0803('0x663')]['project']=_0x1f7eb0[_0x4f0803('0x663')]['appdata'];break;default:{const _0x7b8fbe=_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2077')][_0x4f0803('0x2007')](',');_0x1f7eb0['externaldial']['trunk']=_0x7b8fbe[0x0][_0x4f0803('0x2007')]('/')[0x1],_0x1f7eb0['externaldial'][_0x4f0803('0x2154')]=_0x7b8fbe[0x0][_0x4f0803('0x2007')]('/')[0x2],_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0xd2f')]=_0x49cbdd()[_0x4f0803('0x109a')](_0x7b8fbe[0x1])?_0x7b8fbe[0x1]:isNaN(_0x7b8fbe[0x1])?_0x7b8fbe[0x1]:parseInt(_0x7b8fbe[0x1],0xa),_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x19')]=_0x49cbdd()[_0x4f0803('0x109a')](_0x7b8fbe[0x2])?_0x7b8fbe[0x2]:isNaN(_0x7b8fbe[0x2])?_0x7b8fbe[0x2]:parseInt(_0x7b8fbe[0x2],0xa),_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x101e')]=_0x49cbdd()[_0x4f0803('0x109a')](_0x7b8fbe[0x3])?_0x7b8fbe[0x3]:isNaN(_0x7b8fbe[0x3])?_0x7b8fbe[0x3]:parseInt(_0x7b8fbe[0x3],0xa);}break;}else{}_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x412')]&&_0x1f7eb0['externaldial'][_0x4f0803('0x412')][_0x4f0803('0x19b')]()===_0x4f0803('0x1ade')&&_0x1f7eb0[_0x4f0803('0x663')]['appType']['toLowerCase']()===_0x4f0803('0x1711')&&(_0x1f7eb0['externaldial'][_0x4f0803('0x11d4')]=_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2154')]?_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x2154')][_0x4f0803('0x2007')]('$')[0x0]:undefined,_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x1a8e')]=_0x1f7eb0[_0x4f0803('0x663')]['callerID']?_0x4f0803('0x1d28')+_0x1f7eb0[_0x4f0803('0x663')][_0x4f0803('0x17f4')]:undefined);_0x1f7eb0[_0x4f0803('0x10f')]=_0x4a52b2,_0x1f7eb0[_0x4f0803('0x136e')]=_0x211931,_0x3a32d2['hasRole']('admin')?_0x5e3ec9[_0x4f0803('0x252a')][_0x4f0803('0x1c53')]({'fields':_0x4f0803('0x12d2'),'sort':_0x4f0803('0x2aa'),'nolimit':_0x4f0803('0xe34')})[_0x4f0803('0x1af5')][_0x4f0803('0x17e7')](function(_0x103d21){_0x1f7eb0['trunks']=_0x103d21['rows']||[];})[_0x4f0803('0x16df')](function(_0x419d98){const _0x33b955=_0x4f0803;_0x3841d9['error']({'title':_0x419d98['status']?_0x33b955('0x14f7')+_0x419d98[_0x33b955('0x11c5')]+_0x33b955('0x16e4')+_0x419d98[_0x33b955('0x1833')]:_0x33b955('0x130a'),'msg':_0x419d98[_0x33b955('0x1457')]?JSON[_0x33b955('0x678')](_0x419d98[_0x33b955('0x1457')]):_0x419d98[_0x33b955('0x9b6')]()});}):_0x5e3ec9[_0x4f0803('0x252a')][_0x4f0803('0x1c53')]({'fields':_0x4f0803('0x12d2'),'sort':'name','nolimit':'true'})['$promise'][_0x4f0803('0x17e7')](function(_0x4ce24d){const _0x12672d=_0x4f0803;_0x1f7eb0[_0x12672d('0x19cb')]=_0x4ce24d[_0x12672d('0x2319')]||[];})[_0x4f0803('0x17e7')](function(){const _0x525f39=_0x4f0803;return _0x5e3ec9[_0x525f39('0x383')][_0x525f39('0x1c53')]({'userProfileId':_0x1f7eb0['currentUser'][_0x525f39('0x1e76')],'sectionId':0x3f3})[_0x525f39('0x1af5')];})['then'](function(_0x40a9e8){const _0x2724af=_0x4f0803,_0x233ab0=_0x40a9e8&&_0x40a9e8[_0x2724af('0x2319')]?_0x40a9e8[_0x2724af('0x2319')][0x0]:null;if(!_0x233ab0){const _0x13109b=[];let _0x464475=null;_0x1f7eb0[_0x2724af('0x663')]&&(_0x464475=_0x49cbdd()[_0x2724af('0xe8e')](_0x1f7eb0['trunks'],{'name':_0x1f7eb0[_0x2724af('0x663')]['trunk']}));for(let _0x11caec=0x0;_0x11caec<_0x1f7eb0[_0x2724af('0x19cb')][_0x2724af('0x1f73')];_0x11caec++){_0x464475&&_0x1f7eb0[_0x2724af('0x19cb')][_0x11caec]['id']===_0x464475['id']&&(_0x1f7eb0[_0x2724af('0x19cb')][_0x11caec][_0x2724af('0xe5c')]=![],_0x13109b['push'](_0x1f7eb0[_0x2724af('0x19cb')][_0x11caec]));}_0x1f7eb0[_0x2724af('0x19cb')]=_0x13109b;}else{if(!_0x233ab0['autoAssociation'])return _0x5e3ec9[_0x2724af('0x78d')]['get']({'sectionId':_0x233ab0['id']})[_0x2724af('0x1af5')]['then'](function(_0x44b64a){const _0x248584=_0x2724af,_0x134342=_0x49cbdd()[_0x248584('0x787')](_0x44b64a[_0x248584('0x2319')],function(_0x40d577){const _0x5f0ece=_0x248584;return _0x49cbdd()['find'](_0x1f7eb0['trunks'],{'id':_0x40d577[_0x5f0ece('0x5db')]});});let _0x580009=null;_0x1f7eb0[_0x248584('0x663')]&&(_0x580009=_0x49cbdd()[_0x248584('0xe8e')](_0x1f7eb0[_0x248584('0x19cb')],{'name':_0x1f7eb0[_0x248584('0x663')][_0x248584('0x252a')]}));if(_0x580009&&!_0x49cbdd()[_0x248584('0x26f8')](_0x134342,['id',_0x580009['id']])){const _0x434401=_0x49cbdd()[_0x248584('0xe8e')](_0x1f7eb0[_0x248584('0x19cb')],{'id':_0x580009['id']});_0x434401[_0x248584('0xe5c')]=![],_0x134342[_0x248584('0x269f')](_0x434401);}_0x1f7eb0['trunks']=_0x134342;});}})[_0x4f0803('0x16df')](function(_0x3954fa){const _0x7a60b8=_0x4f0803;_0x3841d9[_0x7a60b8('0x1db9')]({'title':_0x3954fa[_0x7a60b8('0x11c5')]?'API:'+_0x3954fa[_0x7a60b8('0x11c5')]+_0x7a60b8('0x16e4')+_0x3954fa[_0x7a60b8('0x1833')]:_0x7a60b8('0x2825'),'msg':_0x3954fa[_0x7a60b8('0x1457')]?JSON[_0x7a60b8('0x678')](_0x3954fa[_0x7a60b8('0x1457')]):_0x3954fa[_0x7a60b8('0x9b6')]()});});function _0x4a52b2(){const _0x2328ae=_0x4f0803;_0x1f7eb0['errors']=[];const _0x336eae=[];_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x412')]&&_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x412')]['toLowerCase']()===_0x2328ae('0x1ade')&&_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x1c54')]==='outboundDial'&&(_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x2154')]=_0xd09e0f['cutdigits']?(_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x11d4')]||'')+'${EXTEN:'+_0xd09e0f[_0x2328ae('0x12af')]+'}':(_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x11d4')]||'')+'${EXTEN}',_0xd09e0f[_0x2328ae('0x287')]!==_0x2328ae('0x7ee')?_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x19')][_0x2328ae('0x2567')](_0x2328ae('0xa22'))<0x0&&(_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x19')]+=_0x2328ae('0xa22')):_0x1f7eb0[_0x2328ae('0x663')]['options']=_0x1f7eb0[_0x2328ae('0x663')]['options'][_0x2328ae('0x737')](_0x2328ae('0xa22'),''));if(_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x1c54')]&&_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x1c54')]==='custom'){}else switch((_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x643')]||_0x1f7eb0[_0x2328ae('0x663')]['appType'])[_0x2328ae('0x19b')]()){case _0x2328ae('0xf2e'):_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x2077')]=_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x2aa')]+'='+_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x175b')];break;case'custom':break;default:_0x336eae[0x0]=[_0x2328ae('0xbf1'),_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x252a')],_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x2154')]]['join']('/'),_0x336eae[0x1]=_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0xd2f')],_0x336eae[0x2]=_0x1f7eb0[_0x2328ae('0x663')][_0x2328ae('0x19')],_0x336eae[0x3]=_0x1f7eb0[_0x2328ae('0x663')]['url'],_0x1f7eb0['externaldial'][_0x2328ae('0x2077')]=_0x336eae[_0x2328ae('0x1eba')](',');}_0x211931(_0x1f7eb0[_0x2328ae('0x663')]);}function _0x211931(_0xfcb1ec){const _0x2782ee=_0x4f0803;_0x193ea6[_0x2782ee('0x212a')](_0xfcb1ec);}}const _0x13d0d5=_0x2e58a5;_0xe30370['$inject']=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x22c7'),_0x4376d8('0x166'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0xe30370(_0x574c3a,_0x50a211,_0x3989f9,_0x217a2b,_0x290ff7,_0x4b6ed6,_0x4ded89,_0x13e420){const _0x5e2040=_0x4376d8,_0x2c2f8c=this;_0x2c2f8c[_0x5e2040('0x197c')]=_0x4ded89[_0x5e2040('0x2831')](),_0x2c2f8c[_0x5e2040('0x73e')]=[],_0x2c2f8c[_0x5e2040('0x24d3')]='VOICE.EDIT_'+(_0x217a2b[_0x5e2040('0x1c54')]||_0x217a2b[_0x5e2040('0x643')])[_0x5e2040('0x14e2')](),_0x2c2f8c[_0x5e2040('0x1fb0')]=angular[_0x5e2040('0x14e5')](_0x217a2b),_0x2c2f8c[_0x5e2040('0x103e')]=_0x13e420,_0x2c2f8c[_0x5e2040('0x6ee')]={};if(_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2077')])switch(_0x2c2f8c[_0x5e2040('0x1fb0')]['appType']?_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x1c54')][_0x5e2040('0x19b')]():_0x2c2f8c[_0x5e2040('0x1fb0')]['app'][_0x5e2040('0x19b')]()){case _0x5e2040('0x8fa'):break;case _0x5e2040('0x2526'):{const _0x2a5b29=_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2077')]['split'](',');_0x2c2f8c['goto'][_0x5e2040('0xdb5')]=_0x2a5b29[0x0],_0x2c2f8c['goto'][_0x5e2040('0x3e1')]=_0x2a5b29[0x1],_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x1083')]=_0x2a5b29['slice'](0x2,_0x2a5b29['length'])[_0x5e2040('0x1eba')](',');}break;case _0x5e2040('0x22ac'):{const _0x548ac8=_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2077')][_0x5e2040('0x2007')](',');_0x2c2f8c['goto']['projectId']=_0x548ac8[0x0],_0x2c2f8c['goto'][_0x5e2040('0x2814')]=_0x548ac8[0x1],_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x1bc2')]=_0x548ac8[0x2],_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x3e1')]=_0x548ac8[0x3],_0x2c2f8c[_0x5e2040('0x1fb0')]['welcomemessage']=_0x548ac8['slice'](0x4,_0x548ac8[_0x5e2040('0x1f73')])['join'](',');}break;case _0x5e2040('0x16a9'):{const _0x523be7=_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2077')][_0x5e2040('0x2007')](',');_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x1452')]=_0x523be7[0x0],_0x2c2f8c[_0x5e2040('0x1fb0')]['secretaccesskey']=_0x523be7[0x1],_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x1dcf')]=_0x523be7[0x2],_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x4a')]=_0x523be7[0x3],_0x2c2f8c[_0x5e2040('0x1fb0')]['welcomemessage']=_0x523be7['slice'](0x4,_0x523be7[_0x5e2040('0x1f73')])['join'](',');}break;case _0x5e2040('0x96e'):{const _0x449fdf=_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2077')][_0x5e2040('0x2007')](',');_0x2c2f8c['goto']['times']=isNaN(_0x449fdf[0x0])?_0x449fdf[0x0]:parseInt(_0x449fdf[0x0],0xa),_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x132f')]=_0x449fdf[_0x5e2040('0x275f')](0x1,_0x449fdf['length'])[_0x5e2040('0x1eba')](',');}break;case'message':_0x2c2f8c[_0x5e2040('0x1fb0')]['text']=_0x2c2f8c['goto'][_0x5e2040('0x2077')];break;case'set':_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2aa')]=_0x2c2f8c['goto'][_0x5e2040('0x2077')][_0x5e2040('0x2007')]('=')[0x0],_0x2c2f8c['goto'][_0x5e2040('0x175b')]=_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2077')]['split']('=')[0x1];break;case _0x5e2040('0x17c6'):_0x2c2f8c['goto']['project']=_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2077')];break;default:{const _0x311e3a=_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2077')][_0x5e2040('0x2007')](',');_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x17b3')]=_0x49cbdd()[_0x5e2040('0x109a')](_0x311e3a[0x0])?_0x311e3a[0x0]:isNaN(_0x311e3a[0x0])?_0x311e3a[0x0]:parseInt(_0x311e3a[0x0],0xa),_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x26c3')]=_0x49cbdd()[_0x5e2040('0x109a')](_0x311e3a[0x1])?_0x311e3a[0x1]:isNaN(_0x311e3a[0x1])?_0x311e3a[0x1]:parseInt(_0x311e3a[0x1],0xa),_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x1a6d')]=_0x49cbdd()[_0x5e2040('0x109a')](_0x311e3a[0x2])?_0x311e3a[0x2]:isNaN(_0x311e3a[0x2])?_0x311e3a[0x2]:parseInt(_0x311e3a[0x2],0xa);}break;}else{}_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x412')]&&_0x2c2f8c[_0x5e2040('0x1fb0')]['type'][_0x5e2040('0x19b')]()==='outbound'&&_0x2c2f8c[_0x5e2040('0x1fb0')]['appType'][_0x5e2040('0x19b')]()===_0x5e2040('0x1711')&&(_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x11d4')]=_0x2c2f8c[_0x5e2040('0x1fb0')]['phone']?_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x2154')][_0x5e2040('0x2007')]('$')[0x0]:undefined,_0x2c2f8c['goto'][_0x5e2040('0x1a8e')]=_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x17f4')]?_0x5e2040('0x1d28')+_0x2c2f8c[_0x5e2040('0x1fb0')][_0x5e2040('0x17f4')]:undefined);_0x2c2f8c[_0x5e2040('0x10f')]=_0x4bda7d,_0x2c2f8c[_0x5e2040('0x136e')]=_0x463b70,_0x4ded89[_0x5e2040('0x1ba2')](_0x5e2040('0x20bf'))?_0x4b6ed6['voiceContext']['get']({'fields':_0x5e2040('0x12d2'),'sort':_0x5e2040('0x2aa'),'nolimit':_0x5e2040('0xe34')})['$promise']['then'](function(_0x4b7e2e){const _0x1332a8=_0x5e2040;_0x2c2f8c[_0x1332a8('0xfb3')]=_0x4b7e2e[_0x1332a8('0x2319')]||[];})[_0x5e2040('0x16df')](function(_0x505f43){const _0x20d2d5=_0x5e2040;_0x3989f9[_0x20d2d5('0x1db9')]({'title':_0x505f43[_0x20d2d5('0x11c5')]?_0x20d2d5('0x14f7')+_0x505f43[_0x20d2d5('0x11c5')]+_0x20d2d5('0x16e4')+_0x505f43[_0x20d2d5('0x1833')]:_0x20d2d5('0xa2c'),'msg':_0x505f43['data']?JSON[_0x20d2d5('0x678')](_0x505f43[_0x20d2d5('0x1457')]):_0x505f43['toString']()});}):_0x4b6ed6['voiceContext']['get']({'fields':_0x5e2040('0x12d2'),'sort':_0x5e2040('0x2aa'),'nolimit':_0x5e2040('0xe34')})[_0x5e2040('0x1af5')]['then'](function(_0x100938){const _0xa77288=_0x5e2040;_0x2c2f8c[_0xa77288('0xfb3')]=_0x100938[_0xa77288('0x2319')]||[];})[_0x5e2040('0x17e7')](function(){const _0x409328=_0x5e2040;return _0x4b6ed6[_0x409328('0x383')][_0x409328('0x1c53')]({'userProfileId':_0x2c2f8c[_0x409328('0x197c')][_0x409328('0x1e76')],'sectionId':0x195})['$promise'];})[_0x5e2040('0x17e7')](function(_0x3230e4){const _0x22d7d9=_0x5e2040,_0x5545e6=_0x3230e4&&_0x3230e4[_0x22d7d9('0x2319')]?_0x3230e4[_0x22d7d9('0x2319')][0x0]:null;if(!_0x5545e6)return _0x4b6ed6[_0x22d7d9('0xc76')][_0x22d7d9('0x1c53')]({'fields':'id,name','sort':_0x22d7d9('0x2aa'),'nolimit':_0x22d7d9('0xe34'),'defaultEntry':0x1})['$promise'][_0x22d7d9('0x17e7')](function(_0x284ea7){_0x2c2f8c['contexts']=_0x284ea7['rows']||[];});else{if(!_0x5545e6['autoAssociation'])return _0x4b6ed6['userProfileResource']['get']({'sectionId':_0x5545e6['id']})[_0x22d7d9('0x1af5')][_0x22d7d9('0x17e7')](function(_0x537b08){const _0x2a8ccd=_0x22d7d9,_0x1f534d=_0x49cbdd()[_0x2a8ccd('0x787')](_0x537b08[_0x2a8ccd('0x2319')],function(_0x219792){const _0x1120e5=_0x2a8ccd;return _0x49cbdd()['find'](_0x2c2f8c[_0x1120e5('0xfb3')],{'id':_0x219792['resourceId']});});let _0x4606fe=null;_0x2c2f8c['goto']&&(_0x4606fe=_0x49cbdd()[_0x2a8ccd('0xe8e')](_0x2c2f8c[_0x2a8ccd('0xfb3')],{'name':_0x2c2f8c[_0x2a8ccd('0x1fb0')]['context']}));if(_0x4606fe&&!_0x49cbdd()['some'](_0x1f534d,['id',_0x4606fe['id']])){const _0x3a3265=_0x49cbdd()[_0x2a8ccd('0xe8e')](_0x2c2f8c[_0x2a8ccd('0xfb3')],{'id':_0x4606fe['id']});_0x3a3265['canSelect']=![],_0x1f534d[_0x2a8ccd('0x269f')](_0x3a3265);}_0x2c2f8c[_0x2a8ccd('0xfb3')]=_0x1f534d;});}})[_0x5e2040('0x16df')](function(_0x380048){const _0x20a755=_0x5e2040;_0x3989f9[_0x20a755('0x1db9')]({'title':_0x380048[_0x20a755('0x11c5')]?_0x20a755('0x14f7')+_0x380048['status']+_0x20a755('0x16e4')+_0x380048['statusText']:_0x20a755('0x78'),'msg':_0x380048[_0x20a755('0x1457')]?JSON['stringify'](_0x380048['data']):_0x380048[_0x20a755('0x9b6')]()});});function _0x4bda7d(){const _0x21ebcb=_0x5e2040;_0x2c2f8c[_0x21ebcb('0x73e')]=[];const _0x161e8a=[];_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x412')]&&_0x2c2f8c['goto'][_0x21ebcb('0x412')]['toLowerCase']()===_0x21ebcb('0x1ade')&&_0x2c2f8c[_0x21ebcb('0x1fb0')]['appType']===_0x21ebcb('0xbdc')&&(_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x2154')]=_0x290ff7['cutdigits']?(_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x11d4')]||'')+_0x21ebcb('0x2265')+_0x290ff7[_0x21ebcb('0x12af')]+'}':(_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x11d4')]||'')+_0x21ebcb('0x150e'),_0x290ff7[_0x21ebcb('0x287')]!==_0x21ebcb('0x7ee')?_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x19')][_0x21ebcb('0x2567')](_0x21ebcb('0xa22'))<0x0&&(_0x2c2f8c['goto'][_0x21ebcb('0x19')]+='U(xcally-mixmonitor-context)'):_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x19')]=_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x19')]['replace'](_0x21ebcb('0xa22'),''));if(_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x1c54')]&&_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x1c54')]==='custom'){}else switch((_0x2c2f8c['goto']['app']||_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x1c54')])[_0x21ebcb('0x19b')]()){case'set':_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x2077')]=_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x2aa')]+'='+_0x2c2f8c[_0x21ebcb('0x1fb0')]['value'];break;case _0x21ebcb('0x8fa'):break;default:_0x161e8a[0x0]=_0x2c2f8c['goto'][_0x21ebcb('0x17b3')],_0x161e8a[0x1]=_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x26c3')],_0x161e8a[0x2]=_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x1a6d')],_0x2c2f8c[_0x21ebcb('0x1fb0')][_0x21ebcb('0x2077')]=_0x161e8a['join'](',');}_0x463b70(_0x2c2f8c['goto']);}function _0x463b70(_0x4c97f2){const _0x4de237=_0x5e2040;_0x574c3a[_0x4de237('0x212a')](_0x4c97f2);}}const _0x248f55=_0xe30370;_0x4678b1['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x22c7'),_0x4376d8('0x166'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x4678b1(_0xf36dbe,_0x5eb42c,_0x36cf5c,_0x4e9e72,_0x4acc4b,_0x46793c,_0x326501,_0x178c3d){const _0x57b810=_0x4376d8,_0x3103ff=this;_0x3103ff[_0x57b810('0x197c')]=_0x326501[_0x57b810('0x2831')](),_0x3103ff[_0x57b810('0x73e')]=[],_0x3103ff[_0x57b810('0x24d3')]=_0x57b810('0x1c6f')+(_0x4e9e72[_0x57b810('0x1c54')]||_0x4e9e72[_0x57b810('0x643')])[_0x57b810('0x14e2')](),_0x3103ff[_0x57b810('0x450')]=angular[_0x57b810('0x14e5')](_0x4e9e72),_0x3103ff[_0x57b810('0x103e')]=_0x178c3d,_0x3103ff[_0x57b810('0x6ee')]={};if(_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2077')])switch(_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1c54')]?_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1c54')]['toLowerCase']():_0x3103ff[_0x57b810('0x450')][_0x57b810('0x643')][_0x57b810('0x19b')]()){case'custom':break;case'dialogflow':{const _0x3e804b=_0x3103ff[_0x57b810('0x450')]['appdata']['split'](',');_0x3103ff[_0x57b810('0x450')]['key']=_0x3e804b[0x0],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x3e1')]=_0x3e804b[0x1],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1083')]=_0x3e804b['slice'](0x2,_0x3e804b[_0x57b810('0x1f73')])[_0x57b810('0x1eba')](',');}break;case'dialogflowv2':{const _0x56484e=_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2077')][_0x57b810('0x2007')](',');_0x3103ff[_0x57b810('0x450')][_0x57b810('0x28ab')]=_0x56484e[0x0],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2814')]=_0x56484e[0x1],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1bc2')]=_0x56484e[0x2],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x3e1')]=_0x56484e[0x3],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1083')]=_0x56484e[_0x57b810('0x275f')](0x4,_0x56484e['length'])[_0x57b810('0x1eba')](',');}break;case'amazonlex':{const _0x282a1d=_0x3103ff[_0x57b810('0x450')]['appdata']['split'](',');_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1452')]=_0x282a1d[0x0],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1a62')]=_0x282a1d[0x1],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1dcf')]=_0x282a1d[0x2],_0x3103ff[_0x57b810('0x450')]['botname']=_0x282a1d[0x3],_0x3103ff['hangup']['welcomemessage']=_0x282a1d[_0x57b810('0x275f')](0x4,_0x282a1d[_0x57b810('0x1f73')])['join'](',');}break;case _0x57b810('0x96e'):{const _0x335dd2=_0x3103ff['hangup']['appdata'][_0x57b810('0x2007')](',');_0x3103ff[_0x57b810('0x450')]['times']=isNaN(_0x335dd2[0x0])?_0x335dd2[0x0]:parseInt(_0x335dd2[0x0],0xa),_0x3103ff['hangup']['text']=_0x335dd2[_0x57b810('0x275f')](0x1,_0x335dd2['length'])['join'](',');}break;case _0x57b810('0x1603'):_0x3103ff[_0x57b810('0x450')][_0x57b810('0x132f')]=_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2077')];break;case _0x57b810('0xf2e'):_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2aa')]=_0x3103ff[_0x57b810('0x450')]['appdata'][_0x57b810('0x2007')]('=')[0x0],_0x3103ff[_0x57b810('0x450')][_0x57b810('0x175b')]=_0x3103ff[_0x57b810('0x450')]['appdata'][_0x57b810('0x2007')]('=')[0x1];break;case _0x57b810('0x17c6'):_0x3103ff[_0x57b810('0x450')][_0x57b810('0x87c')]=_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2077')];break;default:{const _0x5a2e9d=_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2077')][_0x57b810('0x2007')](',');_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2077')]=_0x49cbdd()['isEmpty'](_0x5a2e9d[0x0])?_0x5a2e9d[0x0]:isNaN(_0x5a2e9d[0x0])?_0x5a2e9d[0x0]:parseInt(_0x5a2e9d[0x0],0xa);}break;}else{}_0x3103ff[_0x57b810('0x450')][_0x57b810('0x412')]&&_0x3103ff[_0x57b810('0x450')]['type'][_0x57b810('0x19b')]()==='outbound'&&_0x3103ff[_0x57b810('0x450')][_0x57b810('0x1c54')]['toLowerCase']()==='outbounddial'&&(_0x3103ff[_0x57b810('0x450')]['prefix']=_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2154')]?_0x3103ff[_0x57b810('0x450')][_0x57b810('0x2154')][_0x57b810('0x2007')]('$')[0x0]:undefined,_0x3103ff['hangup'][_0x57b810('0x1a8e')]=_0x3103ff['hangup'][_0x57b810('0x17f4')]?_0x57b810('0x1d28')+_0x3103ff[_0x57b810('0x450')][_0x57b810('0x17f4')]:undefined);_0x3103ff[_0x57b810('0x10f')]=_0x171710,_0x3103ff['closeDialog']=_0x154e5f;function _0x171710(){const _0x286d58=_0x57b810;_0x3103ff[_0x286d58('0x73e')]=[];const _0x50dea9=[];_0x3103ff['hangup']['type']&&_0x3103ff['hangup'][_0x286d58('0x412')][_0x286d58('0x19b')]()===_0x286d58('0x1ade')&&_0x3103ff[_0x286d58('0x450')][_0x286d58('0x1c54')]===_0x286d58('0xbdc')&&(_0x3103ff[_0x286d58('0x450')][_0x286d58('0x2154')]=_0x4acc4b['cutdigits']?(_0x3103ff['hangup']['prefix']||'')+'${EXTEN:'+_0x4acc4b[_0x286d58('0x12af')]+'}':(_0x3103ff['hangup']['prefix']||'')+_0x286d58('0x150e'),_0x4acc4b[_0x286d58('0x287')]!==_0x286d58('0x7ee')?_0x3103ff[_0x286d58('0x450')][_0x286d58('0x19')][_0x286d58('0x2567')](_0x286d58('0xa22'))<0x0&&(_0x3103ff[_0x286d58('0x450')][_0x286d58('0x19')]+=_0x286d58('0xa22')):_0x3103ff[_0x286d58('0x450')][_0x286d58('0x19')]=_0x3103ff[_0x286d58('0x450')][_0x286d58('0x19')][_0x286d58('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x3103ff[_0x286d58('0x450')][_0x286d58('0x1c54')]&&_0x3103ff[_0x286d58('0x450')]['appType']==='custom'){}else switch((_0x3103ff['hangup']['app']||_0x3103ff[_0x286d58('0x450')][_0x286d58('0x1c54')])[_0x286d58('0x19b')]()){case _0x286d58('0xf2e'):_0x3103ff[_0x286d58('0x450')][_0x286d58('0x2077')]=_0x3103ff['hangup']['name']+'='+_0x3103ff[_0x286d58('0x450')][_0x286d58('0x175b')];break;case _0x286d58('0x8fa'):break;default:_0x50dea9[0x0]=_0x3103ff[_0x286d58('0x450')][_0x286d58('0x2077')],_0x3103ff[_0x286d58('0x450')][_0x286d58('0x2077')]=_0x50dea9[_0x286d58('0x1eba')](',');}_0x154e5f(_0x3103ff[_0x286d58('0x450')]);}function _0x154e5f(_0x208491){const _0xd66c5f=_0x57b810;_0xf36dbe[_0xd66c5f('0x212a')](_0x208491);}}const _0x20b07c=_0x4678b1;_0x1b5798['$inject']=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x22c7'),_0x4376d8('0x166'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x1b5798(_0x2b7fce,_0x496744,_0x27fd71,_0x50b955,_0x58dff2,_0x435205,_0x483507,_0x17fb8a){const _0x332925=_0x4376d8,_0x1a221e=this;_0x1a221e[_0x332925('0x197c')]=_0x483507[_0x332925('0x2831')](),_0x1a221e['errors']=[],_0x1a221e[_0x332925('0x24d3')]=_0x332925('0x1c6f')+(_0x50b955['appType']||_0x50b955[_0x332925('0x643')])[_0x332925('0x14e2')](),_0x1a221e[_0x332925('0x9aa')]=angular[_0x332925('0x14e5')](_0x50b955),_0x1a221e[_0x332925('0x103e')]=_0x17fb8a,_0x1a221e[_0x332925('0x6ee')]={};if(_0x1a221e['internaldial']['appdata'])switch(_0x1a221e[_0x332925('0x9aa')][_0x332925('0x1c54')]?_0x1a221e['internaldial']['appType'][_0x332925('0x19b')]():_0x1a221e[_0x332925('0x9aa')][_0x332925('0x643')][_0x332925('0x19b')]()){case _0x332925('0x8fa'):break;case'dialogflow':{const _0x2ec47c=_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2077')][_0x332925('0x2007')](',');_0x1a221e['internaldial'][_0x332925('0xdb5')]=_0x2ec47c[0x0],_0x1a221e[_0x332925('0x9aa')][_0x332925('0x3e1')]=_0x2ec47c[0x1],_0x1a221e[_0x332925('0x9aa')][_0x332925('0x1083')]=_0x2ec47c[_0x332925('0x275f')](0x2,_0x2ec47c['length'])[_0x332925('0x1eba')](',');}break;case _0x332925('0x22ac'):{const _0x2a2e83=_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2077')]['split'](',');_0x1a221e[_0x332925('0x9aa')][_0x332925('0x28ab')]=_0x2a2e83[0x0],_0x1a221e['internaldial'][_0x332925('0x2814')]=_0x2a2e83[0x1],_0x1a221e[_0x332925('0x9aa')][_0x332925('0x1bc2')]=_0x2a2e83[0x2],_0x1a221e[_0x332925('0x9aa')]['language']=_0x2a2e83[0x3],_0x1a221e['internaldial'][_0x332925('0x1083')]=_0x2a2e83[_0x332925('0x275f')](0x4,_0x2a2e83[_0x332925('0x1f73')])[_0x332925('0x1eba')](',');}break;case _0x332925('0x16a9'):{const _0xf5485b=_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2077')][_0x332925('0x2007')](',');_0x1a221e['internaldial'][_0x332925('0x1452')]=_0xf5485b[0x0],_0x1a221e[_0x332925('0x9aa')][_0x332925('0x1a62')]=_0xf5485b[0x1],_0x1a221e[_0x332925('0x9aa')][_0x332925('0x1dcf')]=_0xf5485b[0x2],_0x1a221e['internaldial'][_0x332925('0x4a')]=_0xf5485b[0x3],_0x1a221e[_0x332925('0x9aa')][_0x332925('0x1083')]=_0xf5485b[_0x332925('0x275f')](0x4,_0xf5485b['length'])[_0x332925('0x1eba')](',');}break;case _0x332925('0x96e'):{const _0x4cd25d=_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2077')][_0x332925('0x2007')](',');_0x1a221e[_0x332925('0x9aa')][_0x332925('0x12a6')]=isNaN(_0x4cd25d[0x0])?_0x4cd25d[0x0]:parseInt(_0x4cd25d[0x0],0xa),_0x1a221e[_0x332925('0x9aa')]['text']=_0x4cd25d[_0x332925('0x275f')](0x1,_0x4cd25d['length'])[_0x332925('0x1eba')](',');}break;case _0x332925('0x1603'):_0x1a221e[_0x332925('0x9aa')][_0x332925('0x132f')]=_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2077')];break;case _0x332925('0xf2e'):_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2aa')]=_0x1a221e['internaldial']['appdata'][_0x332925('0x2007')]('=')[0x0],_0x1a221e[_0x332925('0x9aa')][_0x332925('0x175b')]=_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2077')][_0x332925('0x2007')]('=')[0x1];break;case _0x332925('0x17c6'):_0x1a221e[_0x332925('0x9aa')][_0x332925('0x87c')]=_0x1a221e[_0x332925('0x9aa')]['appdata'];break;default:{const _0x184513=_0x1a221e['internaldial'][_0x332925('0x2077')][_0x332925('0x2007')](',');_0x1a221e[_0x332925('0x9aa')][_0x332925('0x221e')]=_0x49cbdd()[_0x332925('0x109a')](_0x184513[0x0])?_0x184513[0x0]:isNaN(_0x184513[0x0])?_0x184513[0x0]:parseInt(_0x184513[0x0],0xa),_0x1a221e['internaldial'][_0x332925('0xd2f')]=_0x49cbdd()['isEmpty'](_0x184513[0x1])?_0x184513[0x1]:isNaN(_0x184513[0x1])?_0x184513[0x1]:parseInt(_0x184513[0x1],0xa),_0x1a221e[_0x332925('0x9aa')][_0x332925('0x19')]=_0x49cbdd()[_0x332925('0x109a')](_0x184513[0x2])?_0x184513[0x2]:isNaN(_0x184513[0x2])?_0x184513[0x2]:parseInt(_0x184513[0x2],0xa),_0x1a221e[_0x332925('0x9aa')][_0x332925('0x101e')]=_0x49cbdd()[_0x332925('0x109a')](_0x184513[0x3])?_0x184513[0x3]:isNaN(_0x184513[0x3])?_0x184513[0x3]:parseInt(_0x184513[0x3],0xa);}break;}else{}_0x1a221e['internaldial'][_0x332925('0x412')]&&_0x1a221e[_0x332925('0x9aa')]['type']['toLowerCase']()===_0x332925('0x1ade')&&_0x1a221e['internaldial'][_0x332925('0x1c54')][_0x332925('0x19b')]()===_0x332925('0x1711')&&(_0x1a221e['internaldial'][_0x332925('0x11d4')]=_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2154')]?_0x1a221e[_0x332925('0x9aa')][_0x332925('0x2154')]['split']('$')[0x0]:undefined,_0x1a221e[_0x332925('0x9aa')][_0x332925('0x1a8e')]=_0x1a221e[_0x332925('0x9aa')][_0x332925('0x17f4')]?_0x332925('0x1d28')+_0x1a221e['internaldial'][_0x332925('0x17f4')]:undefined);_0x1a221e[_0x332925('0x10f')]=_0x7c861,_0x1a221e[_0x332925('0x136e')]=_0x3bb08a;const _0x92a7b3=[{'id':0xca,'role':_0x332925('0x684')},{'id':0xcb,'role':_0x332925('0x21b5')}];let _0x216650=null;_0x483507['hasRole'](_0x332925('0x20bf'))?_0x435205[_0x332925('0x221e')][_0x332925('0x1c53')]({'fields':_0x332925('0x1635'),'sort':_0x332925('0x2aa'),'nolimit':'true'})[_0x332925('0x1af5')][_0x332925('0x17e7')](function(_0x4cba31){const _0x28ee47=_0x332925;_0x1a221e[_0x28ee47('0x12ed')]=_0x4cba31[_0x28ee47('0x2319')]||[];})[_0x332925('0x16df')](function(_0x89822){const _0x2b8142=_0x332925;_0x27fd71[_0x2b8142('0x1db9')]({'title':_0x89822[_0x2b8142('0x11c5')]?'API:'+_0x89822[_0x2b8142('0x11c5')]+'\x20-\x20'+_0x89822[_0x2b8142('0x1833')]:_0x2b8142('0x8a9'),'msg':_0x89822[_0x2b8142('0x1457')]?JSON[_0x2b8142('0x678')](_0x89822['data']):_0x89822[_0x2b8142('0x9b6')]()});}):_0x435205['user'][_0x332925('0x1c53')]({'fields':_0x332925('0x1635'),'sort':_0x332925('0x2aa'),'nolimit':'true'})['$promise'][_0x332925('0x17e7')](function(_0x211f2b){const _0xa02a90=_0x332925;_0x216650=_0x211f2b[_0xa02a90('0x2319')]||[];})[_0x332925('0x17e7')](function(){const _0x3c250a=_0x332925,_0x11445e=[];for(let _0x365b7c=0x0;_0x365b7c<_0x92a7b3['length'];_0x365b7c++){_0x11445e[_0x3c250a('0x269f')](_0x435205[_0x3c250a('0x383')][_0x3c250a('0x1c53')]({'userProfileId':_0x1a221e[_0x3c250a('0x197c')][_0x3c250a('0x1e76')],'sectionId':_0x92a7b3[_0x365b7c]['id']})[_0x3c250a('0x1af5')]);}return _0x496744[_0x3c250a('0x1283')](_0x11445e);})[_0x332925('0x17e7')](function(_0x212977){const _0xc54bfc=_0x332925,_0x57872f=_0x49cbdd()[_0xc54bfc('0x787')](_0x212977,function(_0x414f29){const _0x123b08=_0xc54bfc;return _0x414f29&&_0x414f29[_0x123b08('0x2319')]?_0x414f29[_0x123b08('0x2319')][0x0]:null;}),_0x415748=[];for(let _0x4a17ce=0x0;_0x4a17ce<_0x92a7b3[_0xc54bfc('0x1f73')];_0x4a17ce++){const _0xddc5de=_0x49cbdd()[_0xc54bfc('0xe8e')](_0x57872f,[_0xc54bfc('0x2676'),_0x92a7b3[_0x4a17ce]['id']]);if(_0xddc5de){if(!_0xddc5de[_0xc54bfc('0x9e3')])_0x415748[_0xc54bfc('0x269f')](_0x435205[_0xc54bfc('0x78d')][_0xc54bfc('0x1c53')]({'sectionId':_0xddc5de['id']})['$promise']);else{const _0x5d565b=[];_0x216650[_0xc54bfc('0xccd')](function(_0x50d70b){const _0x412f6c=_0xc54bfc;_0x50d70b[_0x412f6c('0x1085')]===_0x92a7b3[_0x4a17ce][_0x412f6c('0x1085')]&&_0x5d565b[_0x412f6c('0x269f')](_0x50d70b);}),_0x415748[_0xc54bfc('0x269f')]({'rows':_0x5d565b,'count':_0x5d565b[_0xc54bfc('0x1f73')]});}}}return _0x496744[_0xc54bfc('0x1283')](_0x415748);})[_0x332925('0x17e7')](function(_0x72e15b){const _0x5b2a78=_0x332925,_0x1d3158=[];let _0x727e05=null;_0x1a221e['internaldial']&&(_0x727e05=_0x49cbdd()[_0x5b2a78('0xe8e')](_0x216650,{'name':_0x1a221e[_0x5b2a78('0x9aa')][_0x5b2a78('0x221e')]}));for(let _0x513681=0x0;_0x513681<_0x72e15b['length'];_0x513681++){const _0x20d6c9=_0x72e15b[_0x513681]['rows']||[];_0x20d6c9['forEach'](function(_0x11e6d9){const _0x42de66=_0x5b2a78;_0x1d3158[_0x42de66('0x269f')](_0x11e6d9);});}_0x727e05&&!_0x49cbdd()['some'](_0x1d3158,['resourceId',_0x727e05['id']])&&_0x216650[_0x5b2a78('0xccd')](function(_0x26dfcf){const _0x58f4a9=_0x5b2a78;_0x26dfcf['id']===_0x727e05['id']&&(_0x26dfcf[_0x58f4a9('0xe5c')]=![],_0x1d3158['push'](_0x26dfcf));}),_0x1a221e[_0x5b2a78('0x12ed')]=_0x1d3158;})[_0x332925('0x16df')](function(_0x10de92){const _0x4c46a0=_0x332925;_0x27fd71[_0x4c46a0('0x1db9')]({'title':_0x10de92['status']?_0x4c46a0('0x14f7')+_0x10de92[_0x4c46a0('0x11c5')]+_0x4c46a0('0x16e4')+_0x10de92[_0x4c46a0('0x1833')]:_0x4c46a0('0x10da'),'msg':_0x10de92[_0x4c46a0('0x1457')]?JSON[_0x4c46a0('0x678')](_0x10de92[_0x4c46a0('0x1457')]):_0x10de92[_0x4c46a0('0x9b6')]()});});function _0x7c861(){const _0x18551c=_0x332925;_0x1a221e[_0x18551c('0x73e')]=[];const _0x8f1d51=[];_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x412')]&&_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x412')][_0x18551c('0x19b')]()==='outbound'&&_0x1a221e[_0x18551c('0x9aa')]['appType']===_0x18551c('0xbdc')&&(_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x2154')]=_0x58dff2['cutdigits']?(_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x11d4')]||'')+_0x18551c('0x2265')+_0x58dff2[_0x18551c('0x12af')]+'}':(_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x11d4')]||'')+_0x18551c('0x150e'),_0x58dff2[_0x18551c('0x287')]!=='none'?_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x19')]['indexOf'](_0x18551c('0xa22'))<0x0&&(_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x19')]+='U(xcally-mixmonitor-context)'):_0x1a221e['internaldial']['options']=_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x19')][_0x18551c('0x737')](_0x18551c('0xa22'),''));if(_0x1a221e['internaldial'][_0x18551c('0x1c54')]&&_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x1c54')]==='custom'){}else switch((_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x643')]||_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x1c54')])[_0x18551c('0x19b')]()){case'set':_0x1a221e[_0x18551c('0x9aa')]['appdata']=_0x1a221e['internaldial']['name']+'='+_0x1a221e['internaldial'][_0x18551c('0x175b')];break;case _0x18551c('0x8fa'):break;default:_0x8f1d51[0x0]=_0x1a221e['internaldial'][_0x18551c('0x221e')],_0x8f1d51[0x1]=_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0xd2f')],_0x8f1d51[0x2]=_0x1a221e['internaldial']['options'],_0x8f1d51[0x3]=_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x101e')],_0x1a221e[_0x18551c('0x9aa')][_0x18551c('0x2077')]=_0x8f1d51[_0x18551c('0x1eba')](',');}_0x3bb08a(_0x1a221e[_0x18551c('0x9aa')]);}function _0x3bb08a(_0x5e69e5){const _0xf04496=_0x332925;_0x2b7fce[_0xf04496('0x212a')](_0x5e69e5);}}const _0x7128c3=_0x1b5798;_0x5a32f9[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x14f6'),_0x4376d8('0x199d'),'IndexFactory',_0x4376d8('0x231f'),_0x4376d8('0x1be1'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x5a32f9(_0xeef12,_0x21d5ca,_0x439978,_0x278df7,_0x254554,_0x59f526,_0x44f711,_0x3124c0,_0x39c175,_0x198f9a){const _0x373ca9=_0x4376d8,_0xf1e79=this;_0xf1e79[_0x373ca9('0x197c')]=_0x39c175[_0x373ca9('0x2831')](),_0xf1e79[_0x373ca9('0x73e')]=[],_0xf1e79[_0x373ca9('0x24d3')]=_0x373ca9('0x1481'),_0xf1e79[_0x373ca9('0x231f')]=angular[_0x373ca9('0x14e5')](_0x254554),_0xf1e79[_0x373ca9('0x1be1')]=_0x59f526,_0xf1e79['newInterval']=![],_0xf1e79[_0x373ca9('0x11e0')]=['always',_0x373ca9('0x8fa'),'list'],_0xf1e79['crudPermissions']=_0x198f9a,_0xf1e79[_0x373ca9('0x9d')]=_0x278df7[_0x373ca9('0x18cb')](),_0xf1e79[_0x373ca9('0xd0')]=_0x278df7[_0x373ca9('0x1743')](),_0xf1e79[_0x373ca9('0x36e')]=_0x278df7[_0x373ca9('0x912')](),_0xf1e79[_0x373ca9('0x219f')]=_0x278df7['getDaysOfMonth']();if(!_0xf1e79[_0x373ca9('0x231f')])_0xf1e79['interval']={'interval':_0x373ca9('0x20c3')},_0xf1e79[_0x373ca9('0x412')]=_0x373ca9('0x1256'),_0xf1e79[_0x373ca9('0x24d3')]=_0x373ca9('0x1917'),_0xf1e79['newInterval']=!![];else{if(_0xf1e79[_0x373ca9('0x231f')]['interval']!==_0x373ca9('0x20c3')){_0xf1e79['type']=_0x373ca9('0x8fa');const _0x3d0e83=_0xf1e79['interval']['interval'][_0x373ca9('0x2007')](','),_0x2c0c13=_0x3d0e83[0x0],_0x421812=_0x3d0e83[0x1],_0x4c4ad3=_0x3d0e83[0x2],_0x84227f=_0x3d0e83[0x3];if(_0x2c0c13!=='*'){const _0x3fb4bc=_0x2c0c13[_0x373ca9('0x2007')]('-')[0x0],_0x2101de=_0x2c0c13[_0x373ca9('0x2007')]('-')[0x1];let _0x1c32ad;_0x1c32ad=new Date(),_0x1c32ad[_0x373ca9('0x196e')](Number(_0x3fb4bc['split'](':')[0x0])),_0x1c32ad[_0x373ca9('0x57b')](Number(_0x3fb4bc[_0x373ca9('0x2007')](':')[0x1])),_0xf1e79[_0x373ca9('0x19bf')]=_0x1c32ad,_0x1c32ad=new Date(),_0x1c32ad['setHours'](Number(_0x2101de[_0x373ca9('0x2007')](':')[0x0])),_0x1c32ad[_0x373ca9('0x57b')](Number(_0x2101de[_0x373ca9('0x2007')](':')[0x1])),_0xf1e79[_0x373ca9('0x1c12')]=_0x1c32ad;}_0x421812!=='*'&&(_0xf1e79[_0x373ca9('0x1a98')]=_0x421812[_0x373ca9('0x2007')]('-')[0x0],_0xf1e79[_0x373ca9('0x1627')]=_0x421812['split']('-')[0x1]),_0x4c4ad3!=='*'&&(_0xf1e79[_0x373ca9('0x18d1')]=_0x4c4ad3[_0x373ca9('0x2007')]('-')[0x0],_0xf1e79[_0x373ca9('0x271d')]=_0x4c4ad3[_0x373ca9('0x2007')]('-')[0x1]),_0x84227f!=='*'&&(_0xf1e79[_0x373ca9('0x88c')]=_0x84227f[_0x373ca9('0x2007')]('-')[0x0],_0xf1e79[_0x373ca9('0x1f09')]=_0x84227f[_0x373ca9('0x2007')]('-')[0x1]);}else _0xf1e79['type']=_0x373ca9('0x1256');}_0xeef12[_0x373ca9('0x16fb')]['id']&&!_0xf1e79['interval'][_0x373ca9('0xf84')]&&(_0xf1e79[_0x373ca9('0x231f')][_0x373ca9('0x24a9')]=_0xeef12['params']['id']);_0xf1e79['interval'][_0x373ca9('0x24a9')]&&_0xf1e79[_0x373ca9('0x231f')][_0x373ca9('0xf84')]&&(_0xf1e79[_0x373ca9('0x412')]=_0x373ca9('0x134c'));_0xf1e79[_0x373ca9('0x28b2')]=_0x2753e0,_0xf1e79['saveInterval']=_0x16d79a,_0xf1e79[_0x373ca9('0x136e')]=_0x1e5e35;_0xf1e79[_0x373ca9('0x231f')][_0x373ca9('0xf84')]&&(_0x39c175[_0x373ca9('0x1ba2')](_0x373ca9('0x20bf'))?_0x3124c0['interval'][_0x373ca9('0x1c53')]({'fields':_0x373ca9('0x165a'),'IntervalId':_0x373ca9('0x9bb'),'nolimit':!![]})[_0x373ca9('0x1af5')][_0x373ca9('0x17e7')](function(_0x1ba563){const _0x3d416f=_0x373ca9;_0xf1e79[_0x3d416f('0x1be1')]=_0x1ba563['rows']||[];})['catch'](function(_0x3b06a5){const _0x59a7c5=_0x373ca9;_0x44f711[_0x59a7c5('0x1db9')]({'title':_0x3b06a5['status']?'API:'+_0x3b06a5[_0x59a7c5('0x11c5')]+_0x59a7c5('0x16e4')+_0x3b06a5[_0x59a7c5('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0x3b06a5[_0x59a7c5('0x1457')]?JSON['stringify'](_0x3b06a5['data']):_0x3b06a5[_0x59a7c5('0x9b6')]()});}):_0x3124c0[_0x373ca9('0x231f')][_0x373ca9('0x1c53')]({'fields':_0x373ca9('0x165a'),'IntervalId':_0x373ca9('0x9bb'),'nolimit':!![]})[_0x373ca9('0x1af5')][_0x373ca9('0x17e7')](function(_0x1c3ca2){const _0x1bc961=_0x373ca9;_0xf1e79[_0x1bc961('0x1be1')]=_0x1c3ca2[_0x1bc961('0x2319')]||[];})[_0x373ca9('0x17e7')](function(){const _0x2dff3a=_0x373ca9;return _0x3124c0[_0x2dff3a('0x383')]['get']({'userProfileId':_0xf1e79[_0x2dff3a('0x197c')]['userProfileId'],'sectionId':0x3ec})[_0x2dff3a('0x1af5')];})[_0x373ca9('0x17e7')](function(_0x50a539){const _0x3bd992=_0x373ca9,_0x9d96dc=_0x50a539&&_0x50a539[_0x3bd992('0x2319')]?_0x50a539['rows'][0x0]:null;if(!_0x9d96dc)_0xf1e79[_0x3bd992('0x1be1')]=[];else{if(!_0x9d96dc['autoAssociation'])return _0x3124c0[_0x3bd992('0x78d')]['get']({'sectionId':_0x9d96dc['id']})[_0x3bd992('0x1af5')][_0x3bd992('0x17e7')](function(_0x35d132){const _0x136f11=_0x3bd992,_0x5d04e0=_0x35d132&&_0x35d132[_0x136f11('0x2319')]?_0x35d132[_0x136f11('0x2319')]:[],_0x40ec93=[];let _0x13b2ed=null;_0xf1e79[_0x136f11('0x231f')]&&(_0x13b2ed=_0x49cbdd()['find'](_0xf1e79[_0x136f11('0x1be1')],{'name':_0xf1e79[_0x136f11('0x231f')][_0x136f11('0x24a9')]})),_0x13b2ed&&!_0x49cbdd()[_0x136f11('0x26f8')](_0x5d04e0,[_0x136f11('0x5db'),_0x13b2ed['id']])&&_0xf1e79[_0x136f11('0x1be1')][_0x136f11('0xccd')](function(_0x2b082b){const _0x315a66=_0x136f11;_0x2b082b['id']===_0x13b2ed['id']&&(_0x2b082b[_0x315a66('0xe5c')]=![],_0x40ec93[_0x315a66('0x269f')](_0x2b082b));}),_0xf1e79[_0x136f11('0x1be1')]=_0x40ec93;});}})['catch'](function(_0x548ab6){const _0x2f8dfe=_0x373ca9;_0x44f711['error']({'title':_0x548ab6[_0x2f8dfe('0x11c5')]?_0x2f8dfe('0x14f7')+_0x548ab6['status']+'\x20-\x20'+_0x548ab6[_0x2f8dfe('0x1833')]:_0x2f8dfe('0x87a'),'msg':_0x548ab6[_0x2f8dfe('0x1457')]?JSON[_0x2f8dfe('0x678')](_0x548ab6[_0x2f8dfe('0x1457')]):_0x548ab6[_0x2f8dfe('0x9b6')]()});}));function _0x19063c(){const _0x29023d=_0x373ca9;switch(_0xf1e79[_0x29023d('0x412')]){case _0x29023d('0x1256'):case _0x29023d('0x134c'):return _0x29023d('0x20c3');case _0x29023d('0x8fa'):{const _0x57aa0d=[];if(_0xf1e79[_0x29023d('0x19bf')]!=='*'&&_0xf1e79['timeRangeFrom']&&_0xf1e79[_0x29023d('0x1c12')]){const _0x598ef1=(_0xf1e79['timeRangeFrom'][_0x29023d('0x13c6')]()<0xa?'0':'')+_0xf1e79[_0x29023d('0x19bf')]['getHours']()+':'+((_0xf1e79['timeRangeFrom'][_0x29023d('0xf42')]()<0xa?'0':'')+_0xf1e79[_0x29023d('0x19bf')]['getMinutes']()),_0x2ae5df=(_0xf1e79[_0x29023d('0x1c12')][_0x29023d('0x13c6')]()<0xa?'0':'')+_0xf1e79[_0x29023d('0x1c12')][_0x29023d('0x13c6')]()+':'+((_0xf1e79[_0x29023d('0x1c12')]['getMinutes']()<0xa?'0':'')+_0xf1e79[_0x29023d('0x1c12')][_0x29023d('0xf42')]());_0x57aa0d['push'](_0x598ef1+'-'+_0x2ae5df);}else _0x57aa0d[_0x29023d('0x269f')]('*');return _0xf1e79[_0x29023d('0x1a98')]?_0xf1e79['dayOfWeekTo']?_0x57aa0d[_0x29023d('0x269f')](_0xf1e79[_0x29023d('0x1a98')]+'-'+_0xf1e79[_0x29023d('0x1627')]):_0x57aa0d['push'](_0xf1e79[_0x29023d('0x1a98')]):_0x57aa0d[_0x29023d('0x269f')]('*'),_0xf1e79['monthDayFrom']?_0xf1e79[_0x29023d('0x271d')]?_0x57aa0d[_0x29023d('0x269f')](_0xf1e79[_0x29023d('0x18d1')]+'-'+_0xf1e79[_0x29023d('0x271d')]):_0x57aa0d['push'](_0xf1e79[_0x29023d('0x18d1')]):_0x57aa0d[_0x29023d('0x269f')]('*'),_0xf1e79[_0x29023d('0x88c')]?_0xf1e79['monthTo']?_0x57aa0d[_0x29023d('0x269f')](_0xf1e79[_0x29023d('0x88c')]+'-'+_0xf1e79['monthTo']):_0x57aa0d[_0x29023d('0x269f')](_0xf1e79[_0x29023d('0x88c')]):_0x57aa0d[_0x29023d('0x269f')]('*'),_0x57aa0d[_0x29023d('0x1eba')]();}}}function _0x2753e0(){const _0x392ffc=_0x373ca9;_0xf1e79[_0x392ffc('0x73e')]=[],_0xf1e79[_0x392ffc('0x231f')][_0x392ffc('0x231f')]=_0x19063c(),_0x3124c0[_0x392ffc('0x231f')]['save'](_0xf1e79[_0x392ffc('0x231f')])['$promise'][_0x392ffc('0x17e7')](function(_0x45c76b){const _0x5d7261=_0x392ffc;_0xf1e79[_0x5d7261('0x1be1')][_0x5d7261('0x269f')](_0x45c76b),_0x44f711['success']({'title':_0x5d7261('0x2378'),'msg':_0xf1e79[_0x5d7261('0x231f')][_0x5d7261('0x2aa')]?_0xf1e79['interval'][_0x5d7261('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x1e5e35();})[_0x392ffc('0x16df')](function(_0x519110){const _0x44e7f1=_0x392ffc;console['error'](_0x519110),_0xf1e79['errors']=_0x519110[_0x44e7f1('0x1457')]['errors']||[{'message':_0x519110[_0x44e7f1('0x9b6')](),'type':'api.interval.save'}];});}function _0x16d79a(){const _0x192b75=_0x373ca9;_0xf1e79['errors']=[],_0xf1e79[_0x192b75('0x231f')][_0x192b75('0x231f')]=_0x19063c(),_0xf1e79[_0x192b75('0x231f')]['application']?(_0xf1e79[_0x192b75('0x412')]!=='list'&&(_0xf1e79[_0x192b75('0x231f')][_0x192b75('0x24a9')]=null),_0x1e5e35(_0xf1e79[_0x192b75('0x231f')])):_0x3124c0['interval']['update']({'id':_0xf1e79[_0x192b75('0x231f')]['id']},_0xf1e79[_0x192b75('0x231f')])[_0x192b75('0x1af5')][_0x192b75('0x17e7')](function(_0x2380fb){const _0x3702f3=_0x192b75,_0x30fc82=_0x49cbdd()[_0x3702f3('0xe8e')](_0xf1e79['intervals'],{'id':_0x2380fb['id']});_0x30fc82&&_0x49cbdd()['merge'](_0x30fc82,_0x2380fb),_0x44f711['success']({'title':_0x3702f3('0x6a9'),'msg':_0x3702f3('0x2792')}),_0x1e5e35();})[_0x192b75('0x16df')](function(_0x179504){const _0x1ab220=_0x192b75;console[_0x1ab220('0x1db9')](_0x179504),_0xf1e79[_0x1ab220('0x73e')]=_0x179504[_0x1ab220('0x1457')][_0x1ab220('0x73e')]||[{'message':_0x179504[_0x1ab220('0x9b6')](),'type':_0x1ab220('0xed5')}];});}function _0x1e5e35(_0x55bde0){const _0x359527=_0x373ca9;_0x21d5ca[_0x359527('0x212a')](_0x55bde0);}}const _0x3fda86=_0x5a32f9;_0x4f2862[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x22c7'),_0x4376d8('0x166'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x4f2862(_0x154b29,_0x3f3321,_0x1d24d1,_0x1cdc54,_0x78444c,_0xee4f47,_0x15dcb5,_0xbbcbb4){const _0x377247=_0x4376d8,_0x47b9e7=this;_0x47b9e7[_0x377247('0x197c')]=_0x15dcb5[_0x377247('0x2831')](),_0x47b9e7[_0x377247('0x73e')]=[],_0x47b9e7[_0x377247('0x24d3')]=_0x377247('0x1c6f')+(_0x1cdc54[_0x377247('0x1c54')]||_0x1cdc54[_0x377247('0x643')])['toUpperCase'](),_0x47b9e7[_0x377247('0xec9')]=angular[_0x377247('0x14e5')](_0x1cdc54),_0x47b9e7['crudPermissions']=_0xbbcbb4,_0x47b9e7[_0x377247('0x6ee')]={};if(_0x47b9e7['playback'][_0x377247('0x2077')])switch(_0x47b9e7[_0x377247('0xec9')][_0x377247('0x1c54')]?_0x47b9e7[_0x377247('0xec9')][_0x377247('0x1c54')][_0x377247('0x19b')]():_0x47b9e7[_0x377247('0xec9')][_0x377247('0x643')][_0x377247('0x19b')]()){case _0x377247('0x8fa'):break;case _0x377247('0x2526'):{const _0x1c020d=_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2077')][_0x377247('0x2007')](',');_0x47b9e7[_0x377247('0xec9')][_0x377247('0xdb5')]=_0x1c020d[0x0],_0x47b9e7['playback'][_0x377247('0x3e1')]=_0x1c020d[0x1],_0x47b9e7['playback']['welcomemessage']=_0x1c020d[_0x377247('0x275f')](0x2,_0x1c020d[_0x377247('0x1f73')])[_0x377247('0x1eba')](',');}break;case _0x377247('0x22ac'):{const _0x3c0ec6=_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2077')]['split'](',');_0x47b9e7[_0x377247('0xec9')][_0x377247('0x28ab')]=_0x3c0ec6[0x0],_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2814')]=_0x3c0ec6[0x1],_0x47b9e7[_0x377247('0xec9')]['privateKey']=_0x3c0ec6[0x2],_0x47b9e7[_0x377247('0xec9')][_0x377247('0x3e1')]=_0x3c0ec6[0x3],_0x47b9e7[_0x377247('0xec9')][_0x377247('0x1083')]=_0x3c0ec6['slice'](0x4,_0x3c0ec6[_0x377247('0x1f73')])['join'](',');}break;case _0x377247('0x16a9'):{const _0x2f455d=_0x47b9e7[_0x377247('0xec9')]['appdata']['split'](',');_0x47b9e7[_0x377247('0xec9')][_0x377247('0x1452')]=_0x2f455d[0x0],_0x47b9e7[_0x377247('0xec9')]['secretaccesskey']=_0x2f455d[0x1],_0x47b9e7[_0x377247('0xec9')][_0x377247('0x1dcf')]=_0x2f455d[0x2],_0x47b9e7[_0x377247('0xec9')][_0x377247('0x4a')]=_0x2f455d[0x3],_0x47b9e7[_0x377247('0xec9')][_0x377247('0x1083')]=_0x2f455d[_0x377247('0x275f')](0x4,_0x2f455d[_0x377247('0x1f73')])['join'](',');}break;case _0x377247('0x96e'):{const _0x907940=_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2077')][_0x377247('0x2007')](',');_0x47b9e7[_0x377247('0xec9')][_0x377247('0x12a6')]=isNaN(_0x907940[0x0])?_0x907940[0x0]:parseInt(_0x907940[0x0],0xa),_0x47b9e7[_0x377247('0xec9')][_0x377247('0x132f')]=_0x907940[_0x377247('0x275f')](0x1,_0x907940['length'])[_0x377247('0x1eba')](',');}break;case _0x377247('0x1603'):_0x47b9e7['playback'][_0x377247('0x132f')]=_0x47b9e7['playback'][_0x377247('0x2077')];break;case _0x377247('0xf2e'):_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2aa')]=_0x47b9e7['playback'][_0x377247('0x2077')][_0x377247('0x2007')]('=')[0x0],_0x47b9e7[_0x377247('0xec9')][_0x377247('0x175b')]=_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2077')][_0x377247('0x2007')]('=')[0x1];break;case _0x377247('0x17c6'):_0x47b9e7[_0x377247('0xec9')][_0x377247('0x87c')]=_0x47b9e7['playback'][_0x377247('0x2077')];break;default:{const _0x1a69ee=_0x47b9e7[_0x377247('0xec9')]['appdata'][_0x377247('0x2007')](',');_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2077')]=_0x49cbdd()['isEmpty'](_0x1a69ee[0x0])?_0x1a69ee[0x0]:isNaN(_0x1a69ee[0x0])?_0x1a69ee[0x0]:parseInt(_0x1a69ee[0x0],0xa),_0x47b9e7[_0x377247('0xec9')]['options']=_0x49cbdd()[_0x377247('0x109a')](_0x1a69ee[0x1])?_0x1a69ee[0x1]:isNaN(_0x1a69ee[0x1])?_0x1a69ee[0x1]:parseInt(_0x1a69ee[0x1],0xa);}break;}else{}_0x47b9e7[_0x377247('0xec9')][_0x377247('0x412')]&&_0x47b9e7[_0x377247('0xec9')]['type'][_0x377247('0x19b')]()===_0x377247('0x1ade')&&_0x47b9e7[_0x377247('0xec9')][_0x377247('0x1c54')]['toLowerCase']()==='outbounddial'&&(_0x47b9e7[_0x377247('0xec9')]['prefix']=_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2154')]?_0x47b9e7[_0x377247('0xec9')][_0x377247('0x2154')][_0x377247('0x2007')]('$')[0x0]:undefined,_0x47b9e7[_0x377247('0xec9')][_0x377247('0x1a8e')]=_0x47b9e7[_0x377247('0xec9')]['callerID']?_0x377247('0x1d28')+_0x47b9e7['playback'][_0x377247('0x17f4')]:undefined);_0x47b9e7[_0x377247('0x10f')]=_0x3cd41d,_0x47b9e7[_0x377247('0x136e')]=_0x23f28e,_0x15dcb5[_0x377247('0x1ba2')](_0x377247('0x20bf'))?_0xee4f47['sound']['get']({'fields':_0x377247('0x584'),'sort':_0x377247('0x2aa'),'nolimit':'true'})[_0x377247('0x1af5')][_0x377247('0x17e7')](function(_0x5f2a5){const _0x2bff0d=_0x377247;_0x47b9e7[_0x2bff0d('0x27c4')]=_0x5f2a5[_0x2bff0d('0x2319')]||[];})[_0x377247('0x16df')](function(_0x2ee3f5){const _0x1819e0=_0x377247;_0x1d24d1[_0x1819e0('0x1db9')]({'title':_0x2ee3f5[_0x1819e0('0x11c5')]?'API:'+_0x2ee3f5[_0x1819e0('0x11c5')]+'\x20-\x20'+_0x2ee3f5['statusText']:_0x1819e0('0x21c1'),'msg':_0x2ee3f5[_0x1819e0('0x1457')]?JSON['stringify'](_0x2ee3f5[_0x1819e0('0x1457')]):_0x2ee3f5[_0x1819e0('0x9b6')]()});}):_0xee4f47[_0x377247('0x1f64')]['get']({'fields':'id,name,save_name','sort':_0x377247('0x2aa'),'nolimit':_0x377247('0xe34')})['$promise'][_0x377247('0x17e7')](function(_0x1958e2){const _0x3fc14a=_0x377247;_0x47b9e7[_0x3fc14a('0x27c4')]=_0x1958e2[_0x3fc14a('0x2319')]||[];})[_0x377247('0x17e7')](function(){const _0x275bee=_0x377247;return _0xee4f47[_0x275bee('0x383')][_0x275bee('0x1c53')]({'userProfileId':_0x47b9e7['currentUser'][_0x275bee('0x1e76')],'sectionId':0x3ef})[_0x275bee('0x1af5')];})[_0x377247('0x17e7')](function(_0x46f488){const _0x175612=_0x377247,_0x15a3d2=_0x46f488&&_0x46f488[_0x175612('0x2319')]?_0x46f488[_0x175612('0x2319')][0x0]:null;if(!_0x15a3d2){const _0x575445=[];let _0x60e5ba=null;_0x47b9e7[_0x175612('0xec9')]&&(_0x60e5ba=_0x49cbdd()['find'](_0x47b9e7[_0x175612('0x27c4')],{'save_name':_0x47b9e7['playback'][_0x175612('0x2077')]}));for(let _0x5265c2=0x0;_0x5265c2<_0x47b9e7[_0x175612('0x27c4')][_0x175612('0x1f73')];_0x5265c2++){_0x60e5ba&&_0x47b9e7[_0x175612('0x27c4')][_0x5265c2]['id']===_0x60e5ba['id']&&(_0x47b9e7['sounds'][_0x5265c2][_0x175612('0xe5c')]=![],_0x575445[_0x175612('0x269f')](_0x47b9e7['sounds'][_0x5265c2]));}_0x47b9e7[_0x175612('0x27c4')]=_0x575445;}else{if(!_0x15a3d2[_0x175612('0x9e3')])return _0xee4f47['userProfileResource'][_0x175612('0x1c53')]({'sectionId':_0x15a3d2['id']})[_0x175612('0x1af5')][_0x175612('0x17e7')](function(_0x4ecaea){const _0x5ab782=_0x175612,_0x7bcee3=_0x49cbdd()['map'](_0x4ecaea[_0x5ab782('0x2319')],function(_0x40b80a){const _0x46f33a=_0x5ab782;return _0x49cbdd()[_0x46f33a('0xe8e')](_0x47b9e7['sounds'],{'id':_0x40b80a[_0x46f33a('0x5db')]});});let _0x182280=null;_0x47b9e7['playback']&&(_0x182280=_0x49cbdd()[_0x5ab782('0xe8e')](_0x47b9e7[_0x5ab782('0x27c4')],{'save_name':_0x47b9e7['playback'][_0x5ab782('0x2077')]}));if(_0x182280&&!_0x49cbdd()[_0x5ab782('0x26f8')](_0x7bcee3,['id',_0x182280['id']])){const _0x7fab46=_0x49cbdd()[_0x5ab782('0xe8e')](_0x47b9e7[_0x5ab782('0x27c4')],{'id':_0x182280['id']});_0x7fab46[_0x5ab782('0xe5c')]=![],_0x7bcee3[_0x5ab782('0x269f')](_0x7fab46);}_0x47b9e7[_0x5ab782('0x27c4')]=_0x7bcee3;});}})[_0x377247('0x16df')](function(_0x5d2d05){const _0x137676=_0x377247;_0x1d24d1['error']({'title':_0x5d2d05[_0x137676('0x11c5')]?_0x137676('0x14f7')+_0x5d2d05[_0x137676('0x11c5')]+_0x137676('0x16e4')+_0x5d2d05[_0x137676('0x1833')]:_0x137676('0x12a8'),'msg':_0x5d2d05[_0x137676('0x1457')]?JSON[_0x137676('0x678')](_0x5d2d05[_0x137676('0x1457')]):_0x5d2d05[_0x137676('0x9b6')]()});});function _0x3cd41d(){const _0x4b8a72=_0x377247;_0x47b9e7[_0x4b8a72('0x73e')]=[];const _0x554de4=[];_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x412')]&&_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x412')][_0x4b8a72('0x19b')]()===_0x4b8a72('0x1ade')&&_0x47b9e7['playback'][_0x4b8a72('0x1c54')]===_0x4b8a72('0xbdc')&&(_0x47b9e7['playback'][_0x4b8a72('0x2154')]=_0x78444c[_0x4b8a72('0x12af')]?(_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x11d4')]||'')+_0x4b8a72('0x2265')+_0x78444c[_0x4b8a72('0x12af')]+'}':(_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x11d4')]||'')+_0x4b8a72('0x150e'),_0x78444c['recordingFormat']!=='none'?_0x47b9e7['playback']['options']['indexOf'](_0x4b8a72('0xa22'))<0x0&&(_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x19')]+='U(xcally-mixmonitor-context)'):_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x19')]=_0x47b9e7[_0x4b8a72('0xec9')]['options'][_0x4b8a72('0x737')](_0x4b8a72('0xa22'),''));if(_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x1c54')]&&_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x1c54')]===_0x4b8a72('0x8fa')){}else switch((_0x47b9e7[_0x4b8a72('0xec9')]['app']||_0x47b9e7['playback'][_0x4b8a72('0x1c54')])['toLowerCase']()){case _0x4b8a72('0xf2e'):_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x2077')]=_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x2aa')]+'='+_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x175b')];break;case _0x4b8a72('0x8fa'):break;default:_0x554de4[0x0]=_0x47b9e7['playback']['appdata'],_0x554de4[0x1]=_0x47b9e7[_0x4b8a72('0xec9')]['options'],_0x47b9e7[_0x4b8a72('0xec9')][_0x4b8a72('0x2077')]=_0x554de4[_0x4b8a72('0x1eba')](',');}_0x23f28e(_0x47b9e7[_0x4b8a72('0xec9')]);}function _0x23f28e(_0x57ae86){const _0x404162=_0x377247;_0x154b29[_0x404162('0x212a')](_0x57ae86);}}const _0xfdb8c2=_0x4f2862;_0x536f5a['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x22c7'),'internalroute',_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x536f5a(_0x4e9fd0,_0x2aa7ea,_0x33b9b5,_0x4e5177,_0x427252,_0x6af4c0,_0x571c6e,_0x24284c){const _0x2b8162=_0x4376d8,_0x44269c=this;_0x44269c[_0x2b8162('0x197c')]=_0x571c6e[_0x2b8162('0x2831')](),_0x44269c[_0x2b8162('0x73e')]=[],_0x44269c[_0x2b8162('0x24d3')]=_0x2b8162('0x1c6f')+(_0x4e5177[_0x2b8162('0x1c54')]||_0x4e5177[_0x2b8162('0x643')])[_0x2b8162('0x14e2')](),_0x44269c[_0x2b8162('0x1bd')]=angular[_0x2b8162('0x14e5')](_0x4e5177),_0x44269c[_0x2b8162('0x103e')]=_0x24284c,_0x44269c['hasModulePermissions']={};if(_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2077')])switch(_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x1c54')]?_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x1c54')][_0x2b8162('0x19b')]():_0x44269c['queue']['app'][_0x2b8162('0x19b')]()){case'custom':break;case'dialogflow':{const _0x87543f=_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2077')]['split'](',');_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0xdb5')]=_0x87543f[0x0],_0x44269c['queue'][_0x2b8162('0x3e1')]=_0x87543f[0x1],_0x44269c['queue'][_0x2b8162('0x1083')]=_0x87543f['slice'](0x2,_0x87543f[_0x2b8162('0x1f73')])[_0x2b8162('0x1eba')](',');}break;case _0x2b8162('0x22ac'):{const _0x4b0590=_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2077')][_0x2b8162('0x2007')](',');_0x44269c['queue'][_0x2b8162('0x28ab')]=_0x4b0590[0x0],_0x44269c['queue'][_0x2b8162('0x2814')]=_0x4b0590[0x1],_0x44269c['queue'][_0x2b8162('0x1bc2')]=_0x4b0590[0x2],_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x3e1')]=_0x4b0590[0x3],_0x44269c['queue'][_0x2b8162('0x1083')]=_0x4b0590[_0x2b8162('0x275f')](0x4,_0x4b0590[_0x2b8162('0x1f73')])[_0x2b8162('0x1eba')](',');}break;case _0x2b8162('0x16a9'):{const _0x1ed759=_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2077')]['split'](',');_0x44269c[_0x2b8162('0x1bd')]['accesskeyid']=_0x1ed759[0x0],_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x1a62')]=_0x1ed759[0x1],_0x44269c['queue'][_0x2b8162('0x1dcf')]=_0x1ed759[0x2],_0x44269c['queue']['botname']=_0x1ed759[0x3],_0x44269c['queue'][_0x2b8162('0x1083')]=_0x1ed759[_0x2b8162('0x275f')](0x4,_0x1ed759[_0x2b8162('0x1f73')])[_0x2b8162('0x1eba')](',');}break;case'autoreply':{const _0x11edd=_0x44269c['queue'][_0x2b8162('0x2077')][_0x2b8162('0x2007')](',');_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x12a6')]=isNaN(_0x11edd[0x0])?_0x11edd[0x0]:parseInt(_0x11edd[0x0],0xa),_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x132f')]=_0x11edd[_0x2b8162('0x275f')](0x1,_0x11edd[_0x2b8162('0x1f73')])[_0x2b8162('0x1eba')](',');}break;case _0x2b8162('0x1603'):_0x44269c[_0x2b8162('0x1bd')]['text']=_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2077')];break;case _0x2b8162('0xf2e'):_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2aa')]=_0x44269c[_0x2b8162('0x1bd')]['appdata'][_0x2b8162('0x2007')]('=')[0x0],_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x175b')]=_0x44269c['queue'][_0x2b8162('0x2077')][_0x2b8162('0x2007')]('=')[0x1];break;case _0x2b8162('0x17c6'):_0x44269c[_0x2b8162('0x1bd')]['project']=_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2077')];break;default:{const _0x7de219=_0x44269c[_0x2b8162('0x1bd')]['appdata']['split'](',');_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x1bd')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x0])?_0x7de219[0x0]:isNaN(_0x7de219[0x0])?_0x7de219[0x0]:parseInt(_0x7de219[0x0],0xa),_0x44269c['queue'][_0x2b8162('0x19')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x1])?_0x7de219[0x1]:isNaN(_0x7de219[0x1])?_0x7de219[0x1]:parseInt(_0x7de219[0x1],0xa),_0x44269c['queue'][_0x2b8162('0xa8f')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x2])?_0x7de219[0x2]:isNaN(_0x7de219[0x2])?_0x7de219[0x2]:parseInt(_0x7de219[0x2],0xa),_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x1f64')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x3])?_0x7de219[0x3]:isNaN(_0x7de219[0x3])?_0x7de219[0x3]:parseInt(_0x7de219[0x3],0xa),_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0xd2f')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x4])?_0x7de219[0x4]:isNaN(_0x7de219[0x4])?_0x7de219[0x4]:parseInt(_0x7de219[0x4],0xa),_0x44269c['queue'][_0x2b8162('0x17c6')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x5])?_0x7de219[0x5]:isNaN(_0x7de219[0x5])?_0x7de219[0x5]:parseInt(_0x7de219[0x5],0xa),_0x44269c[_0x2b8162('0x1bd')]['macro']=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x6])?_0x7de219[0x6]:isNaN(_0x7de219[0x6])?_0x7de219[0x6]:parseInt(_0x7de219[0x6],0xa),_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x1aa9')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x7])?_0x7de219[0x7]:isNaN(_0x7de219[0x7])?_0x7de219[0x7]:parseInt(_0x7de219[0x7],0xa),_0x44269c['queue'][_0x2b8162('0x800')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x8])?_0x7de219[0x8]:isNaN(_0x7de219[0x8])?_0x7de219[0x8]:parseInt(_0x7de219[0x8],0xa),_0x44269c['queue'][_0x2b8162('0x707')]=_0x49cbdd()[_0x2b8162('0x109a')](_0x7de219[0x9])?_0x7de219[0x9]:isNaN(_0x7de219[0x9])?_0x7de219[0x9]:parseInt(_0x7de219[0x9],0xa);}break;}else{}_0x44269c['queue'][_0x2b8162('0x412')]&&_0x44269c[_0x2b8162('0x1bd')]['type'][_0x2b8162('0x19b')]()===_0x2b8162('0x1ade')&&_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x1c54')][_0x2b8162('0x19b')]()===_0x2b8162('0x1711')&&(_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x11d4')]=_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2154')]?_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x2154')][_0x2b8162('0x2007')]('$')[0x0]:undefined,_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x1a8e')]=_0x44269c['queue'][_0x2b8162('0x17f4')]?_0x2b8162('0x1d28')+_0x44269c[_0x2b8162('0x1bd')][_0x2b8162('0x17f4')]:undefined);_0x44269c[_0x2b8162('0x10f')]=_0x21bb29,_0x44269c[_0x2b8162('0x136e')]=_0x1cd689,_0x571c6e['hasRole'](_0x2b8162('0x20bf'))?_0x6af4c0[_0x2b8162('0x1f64')][_0x2b8162('0x1c53')]({'fields':_0x2b8162('0x584'),'sort':_0x2b8162('0x2aa'),'nolimit':_0x2b8162('0xe34')})[_0x2b8162('0x1af5')][_0x2b8162('0x17e7')](function(_0x44f71f){const _0x509ebd=_0x2b8162;_0x44269c[_0x509ebd('0x27c4')]=_0x44f71f[_0x509ebd('0x2319')]||[];})[_0x2b8162('0x16df')](function(_0x1c88b3){const _0x2af259=_0x2b8162;_0x33b9b5[_0x2af259('0x1db9')]({'title':_0x1c88b3[_0x2af259('0x11c5')]?_0x2af259('0x14f7')+_0x1c88b3[_0x2af259('0x11c5')]+'\x20-\x20'+_0x1c88b3[_0x2af259('0x1833')]:'SYSTEM:GET_SOUNDS','msg':_0x1c88b3[_0x2af259('0x1457')]?JSON[_0x2af259('0x678')](_0x1c88b3['data']):_0x1c88b3[_0x2af259('0x9b6')]()});}):_0x6af4c0['sound'][_0x2b8162('0x1c53')]({'fields':'id,name,save_name','sort':_0x2b8162('0x2aa'),'nolimit':_0x2b8162('0xe34')})[_0x2b8162('0x1af5')][_0x2b8162('0x17e7')](function(_0x5a580f){const _0x3e5c2f=_0x2b8162;_0x44269c['sounds']=_0x5a580f[_0x3e5c2f('0x2319')]||[];})[_0x2b8162('0x17e7')](function(){const _0x5cef6c=_0x2b8162;return _0x6af4c0[_0x5cef6c('0x383')]['get']({'userProfileId':_0x44269c[_0x5cef6c('0x197c')][_0x5cef6c('0x1e76')],'sectionId':0x3ef})['$promise'];})[_0x2b8162('0x17e7')](function(_0x5b3932){const _0x214669=_0x2b8162,_0x4fdda6=_0x5b3932&&_0x5b3932[_0x214669('0x2319')]?_0x5b3932[_0x214669('0x2319')][0x0]:null;if(!_0x4fdda6){const _0x83fc15=[];let _0x2aae39=null;_0x44269c[_0x214669('0x1bd')]&&(_0x2aae39=_0x49cbdd()[_0x214669('0xe8e')](_0x44269c[_0x214669('0x27c4')],{'save_name':_0x44269c['queue'][_0x214669('0x1f64')]}));for(let _0x4c7e21=0x0;_0x4c7e21<_0x44269c[_0x214669('0x27c4')][_0x214669('0x1f73')];_0x4c7e21++){_0x2aae39&&_0x44269c[_0x214669('0x27c4')][_0x4c7e21]['id']===_0x2aae39['id']&&(_0x44269c[_0x214669('0x27c4')][_0x4c7e21][_0x214669('0xe5c')]=![],_0x83fc15[_0x214669('0x269f')](_0x44269c[_0x214669('0x27c4')][_0x4c7e21]));}_0x44269c['sounds']=_0x83fc15;}else{if(!_0x4fdda6[_0x214669('0x9e3')])return _0x6af4c0['userProfileResource'][_0x214669('0x1c53')]({'sectionId':_0x4fdda6['id']})[_0x214669('0x1af5')][_0x214669('0x17e7')](function(_0x30b070){const _0x58208a=_0x214669,_0x109125=_0x49cbdd()[_0x58208a('0x787')](_0x30b070['rows'],function(_0xed0c81){const _0x5096a4=_0x58208a;return _0x49cbdd()[_0x5096a4('0xe8e')](_0x44269c[_0x5096a4('0x27c4')],{'id':_0xed0c81[_0x5096a4('0x5db')]});});let _0x5b781b=null;_0x44269c[_0x58208a('0x1bd')]&&(_0x5b781b=_0x49cbdd()[_0x58208a('0xe8e')](_0x44269c['sounds'],{'save_name':_0x44269c[_0x58208a('0x1bd')]['sound']}));if(_0x5b781b&&!_0x49cbdd()[_0x58208a('0x26f8')](_0x109125,['id',_0x5b781b['id']])){const _0x4e2a19=_0x49cbdd()[_0x58208a('0xe8e')](_0x44269c['sounds'],{'id':_0x5b781b['id']});_0x4e2a19[_0x58208a('0xe5c')]=![],_0x109125['push'](_0x4e2a19);}_0x44269c[_0x58208a('0x27c4')]=_0x109125;});}})[_0x2b8162('0x16df')](function(_0x1199a5){const _0x553a0b=_0x2b8162;_0x33b9b5[_0x553a0b('0x1db9')]({'title':_0x1199a5[_0x553a0b('0x11c5')]?'API:'+_0x1199a5[_0x553a0b('0x11c5')]+_0x553a0b('0x16e4')+_0x1199a5['statusText']:_0x553a0b('0x12a8'),'msg':_0x1199a5[_0x553a0b('0x1457')]?JSON[_0x553a0b('0x678')](_0x1199a5['data']):_0x1199a5['toString']()});}),_0x571c6e[_0x2b8162('0x1ba2')](_0x2b8162('0x20bf'))?_0x6af4c0[_0x2b8162('0x1243')][_0x2b8162('0x1c53')]({'type':_0x2b8162('0x1e77'),'fields':_0x2b8162('0x960'),'sort':_0x2b8162('0x2aa'),'nolimit':_0x2b8162('0xe34')})[_0x2b8162('0x1af5')]['then'](function(_0x36aebb){const _0x41507b=_0x2b8162;_0x44269c[_0x41507b('0x14c4')]=_0x36aebb[_0x41507b('0x2319')]||[];})[_0x2b8162('0x16df')](function(_0x378784){const _0x34ca2a=_0x2b8162;_0x33b9b5['error']({'title':_0x378784[_0x34ca2a('0x11c5')]?_0x34ca2a('0x14f7')+_0x378784[_0x34ca2a('0x11c5')]+_0x34ca2a('0x16e4')+_0x378784[_0x34ca2a('0x1833')]:_0x34ca2a('0x92a'),'msg':_0x378784[_0x34ca2a('0x1457')]?JSON[_0x34ca2a('0x678')](_0x378784[_0x34ca2a('0x1457')]):_0x378784[_0x34ca2a('0x9b6')]()});}):_0x6af4c0[_0x2b8162('0x1243')]['get']({'type':_0x2b8162('0x1e77'),'fields':'id,name,type','sort':_0x2b8162('0x2aa'),'nolimit':_0x2b8162('0xe34')})[_0x2b8162('0x1af5')][_0x2b8162('0x17e7')](function(_0x5d202e){const _0x16255f=_0x2b8162;_0x44269c[_0x16255f('0x14c4')]=_0x5d202e['rows']||[];})[_0x2b8162('0x17e7')](function(){const _0x1c9e69=_0x2b8162;return _0x6af4c0['userProfileSection'][_0x1c9e69('0x1c53')]({'userProfileId':_0x44269c[_0x1c9e69('0x197c')]['userProfileId'],'sectionId':0x191})[_0x1c9e69('0x1af5')];})[_0x2b8162('0x17e7')](function(_0xa2f545){const _0x2fce28=_0x2b8162,_0x2b2bf5=_0xa2f545&&_0xa2f545[_0x2fce28('0x2319')]?_0xa2f545['rows'][0x0]:null;if(!_0x2b2bf5){const _0xf8ba57=[];let _0xbce7a2=null;_0x44269c['queue']&&(_0xbce7a2=_0x49cbdd()[_0x2fce28('0xe8e')](_0x44269c['queues'],{'name':_0x44269c[_0x2fce28('0x1bd')][_0x2fce28('0x1bd')]}));for(let _0x1cceda=0x0;_0x1cceda<_0x44269c[_0x2fce28('0x14c4')]['length'];_0x1cceda++){_0xbce7a2&&_0x44269c[_0x2fce28('0x14c4')][_0x1cceda]['id']===_0xbce7a2['id']&&(_0x44269c[_0x2fce28('0x14c4')][_0x1cceda][_0x2fce28('0xe5c')]=![],_0xf8ba57['push'](_0x44269c[_0x2fce28('0x14c4')][_0x1cceda]));}_0x44269c[_0x2fce28('0x14c4')]=_0xf8ba57;}else{if(!_0x2b2bf5['autoAssociation'])return _0x6af4c0[_0x2fce28('0x78d')][_0x2fce28('0x1c53')]({'sectionId':_0x2b2bf5['id']})[_0x2fce28('0x1af5')][_0x2fce28('0x17e7')](function(_0x4311f9){const _0x26ca8d=_0x2fce28,_0x1bd125=_0x49cbdd()[_0x26ca8d('0x787')](_0x4311f9[_0x26ca8d('0x2319')],function(_0x408804){const _0x33b25c=_0x26ca8d;return _0x49cbdd()[_0x33b25c('0xe8e')](_0x44269c['queues'],{'id':_0x408804[_0x33b25c('0x5db')]});});let _0x56ee1b=null;_0x44269c['queue']&&(_0x56ee1b=_0x49cbdd()[_0x26ca8d('0xe8e')](_0x44269c[_0x26ca8d('0x14c4')],{'name':_0x44269c['queue'][_0x26ca8d('0x1bd')]}));if(_0x56ee1b&&!_0x49cbdd()[_0x26ca8d('0x26f8')](_0x1bd125,['id',_0x56ee1b['id']])){const _0x341a9b=_0x49cbdd()[_0x26ca8d('0xe8e')](_0x44269c['queues'],{'id':_0x56ee1b['id']});_0x341a9b[_0x26ca8d('0xe5c')]=![],_0x1bd125['push'](_0x341a9b);}_0x44269c[_0x26ca8d('0x14c4')]=_0x1bd125;});}})['catch'](function(_0x1cf0fd){const _0x35b6ac=_0x2b8162;_0x33b9b5[_0x35b6ac('0x1db9')]({'title':_0x1cf0fd[_0x35b6ac('0x11c5')]?_0x35b6ac('0x14f7')+_0x1cf0fd[_0x35b6ac('0x11c5')]+_0x35b6ac('0x16e4')+_0x1cf0fd['statusText']:_0x35b6ac('0xb5f'),'msg':_0x1cf0fd[_0x35b6ac('0x1457')]?JSON[_0x35b6ac('0x678')](_0x1cf0fd['data']):_0x1cf0fd[_0x35b6ac('0x9b6')]()});});function _0x21bb29(){const _0x47749e=_0x2b8162;_0x44269c[_0x47749e('0x73e')]=[];const _0x41701c=[];_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x412')]&&_0x44269c[_0x47749e('0x1bd')]['type'][_0x47749e('0x19b')]()==='outbound'&&_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x1c54')]===_0x47749e('0xbdc')&&(_0x44269c['queue']['phone']=_0x427252[_0x47749e('0x12af')]?(_0x44269c['queue'][_0x47749e('0x11d4')]||'')+'${EXTEN:'+_0x427252[_0x47749e('0x12af')]+'}':(_0x44269c[_0x47749e('0x1bd')]['prefix']||'')+_0x47749e('0x150e'),_0x427252['recordingFormat']!==_0x47749e('0x7ee')?_0x44269c[_0x47749e('0x1bd')]['options'][_0x47749e('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x19')]+=_0x47749e('0xa22')):_0x44269c['queue'][_0x47749e('0x19')]=_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x19')][_0x47749e('0x737')](_0x47749e('0xa22'),''));if(_0x44269c[_0x47749e('0x1bd')]['appType']&&_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x1c54')]===_0x47749e('0x8fa')){}else switch((_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x643')]||_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x1c54')])[_0x47749e('0x19b')]()){case _0x47749e('0xf2e'):_0x44269c[_0x47749e('0x1bd')]['appdata']=_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x2aa')]+'='+_0x44269c['queue'][_0x47749e('0x175b')];break;case _0x47749e('0x8fa'):break;default:_0x41701c[0x0]=_0x44269c[_0x47749e('0x1bd')]['queue'],_0x41701c[0x1]=_0x44269c[_0x47749e('0x1bd')]['options'],_0x41701c[0x2]=_0x44269c[_0x47749e('0x1bd')][_0x47749e('0xa8f')],_0x41701c[0x3]=_0x44269c['queue'][_0x47749e('0x1f64')],_0x41701c[0x4]=_0x44269c[_0x47749e('0x1bd')][_0x47749e('0xd2f')],_0x41701c[0x5]=_0x44269c['queue'][_0x47749e('0x17c6')],_0x41701c[0x6]=_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x6e1')],_0x41701c[0x7]=_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x1aa9')],_0x41701c[0x8]=_0x44269c['queue'][_0x47749e('0x800')],_0x41701c[0x9]=_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x707')],_0x44269c[_0x47749e('0x1bd')][_0x47749e('0x2077')]=_0x41701c[_0x47749e('0x1eba')](',');}_0x1cd689(_0x44269c[_0x47749e('0x1bd')]);}function _0x1cd689(_0x584756){const _0x11231d=_0x2b8162;_0x4e9fd0[_0x11231d('0x212a')](_0x584756);}}const _0x141b98=_0x536f5a;_0x1d423a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x22c7'),'internalroute','api',_0x4376d8('0x1885'),'crudPermissions'];function _0x1d423a(_0x310a51,_0x2ec7bc,_0x2577e8,_0x15e7e1,_0x1e4391,_0x451276,_0x461a7a,_0x3f6053){const _0x4bb9d2=_0x4376d8,_0x1c43c6=this;_0x1c43c6[_0x4bb9d2('0x197c')]=_0x461a7a['getCurrentUser'](),_0x1c43c6[_0x4bb9d2('0x73e')]=[],_0x1c43c6[_0x4bb9d2('0x24d3')]=_0x4bb9d2('0x1c6f')+(_0x15e7e1[_0x4bb9d2('0x1c54')]||_0x15e7e1[_0x4bb9d2('0x643')])['toUpperCase'](),_0x1c43c6[_0x4bb9d2('0x790')]=angular[_0x4bb9d2('0x14e5')](_0x15e7e1),_0x1c43c6[_0x4bb9d2('0x103e')]=_0x3f6053,_0x1c43c6[_0x4bb9d2('0x6ee')]={};if(_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x2077')])switch(_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x1c54')]?_0x1c43c6[_0x4bb9d2('0x790')]['appType'][_0x4bb9d2('0x19b')]():_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x643')][_0x4bb9d2('0x19b')]()){case _0x4bb9d2('0x8fa'):break;case _0x4bb9d2('0x2526'):{const _0x1623f1=_0x1c43c6[_0x4bb9d2('0x790')]['appdata'][_0x4bb9d2('0x2007')](',');_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0xdb5')]=_0x1623f1[0x0],_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x3e1')]=_0x1623f1[0x1],_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x1083')]=_0x1623f1[_0x4bb9d2('0x275f')](0x2,_0x1623f1[_0x4bb9d2('0x1f73')])[_0x4bb9d2('0x1eba')](',');}break;case _0x4bb9d2('0x22ac'):{const _0x2113be=_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x2077')][_0x4bb9d2('0x2007')](',');_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x28ab')]=_0x2113be[0x0],_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x2814')]=_0x2113be[0x1],_0x1c43c6['ringgroup']['privateKey']=_0x2113be[0x2],_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x3e1')]=_0x2113be[0x3],_0x1c43c6[_0x4bb9d2('0x790')]['welcomemessage']=_0x2113be[_0x4bb9d2('0x275f')](0x4,_0x2113be[_0x4bb9d2('0x1f73')])[_0x4bb9d2('0x1eba')](',');}break;case _0x4bb9d2('0x16a9'):{const _0x17b544=_0x1c43c6['ringgroup'][_0x4bb9d2('0x2077')]['split'](',');_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x1452')]=_0x17b544[0x0],_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x1a62')]=_0x17b544[0x1],_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x1dcf')]=_0x17b544[0x2],_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x4a')]=_0x17b544[0x3],_0x1c43c6['ringgroup'][_0x4bb9d2('0x1083')]=_0x17b544[_0x4bb9d2('0x275f')](0x4,_0x17b544['length'])[_0x4bb9d2('0x1eba')](',');}break;case _0x4bb9d2('0x96e'):{const _0x4bec7d=_0x1c43c6['ringgroup'][_0x4bb9d2('0x2077')][_0x4bb9d2('0x2007')](',');_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x12a6')]=isNaN(_0x4bec7d[0x0])?_0x4bec7d[0x0]:parseInt(_0x4bec7d[0x0],0xa),_0x1c43c6[_0x4bb9d2('0x790')]['text']=_0x4bec7d[_0x4bb9d2('0x275f')](0x1,_0x4bec7d[_0x4bb9d2('0x1f73')])['join'](',');}break;case _0x4bb9d2('0x1603'):_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x132f')]=_0x1c43c6['ringgroup'][_0x4bb9d2('0x2077')];break;case _0x4bb9d2('0xf2e'):_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x2aa')]=_0x1c43c6[_0x4bb9d2('0x790')]['appdata'][_0x4bb9d2('0x2007')]('=')[0x0],_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x175b')]=_0x1c43c6['ringgroup'][_0x4bb9d2('0x2077')][_0x4bb9d2('0x2007')]('=')[0x1];break;case _0x4bb9d2('0x17c6'):_0x1c43c6[_0x4bb9d2('0x790')]['project']=_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x2077')];break;default:{const _0x523e75=_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x2077')][_0x4bb9d2('0x2007')](',');_0x1c43c6['ringgroup']['multipleUsers']=_0x523e75[0x0][_0x4bb9d2('0x2007')]('&'),_0x1c43c6['ringgroup'][_0x4bb9d2('0xd2f')]=_0x49cbdd()[_0x4bb9d2('0x109a')](_0x523e75[0x1])?_0x523e75[0x1]:isNaN(_0x523e75[0x1])?_0x523e75[0x1]:parseInt(_0x523e75[0x1],0xa),_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x19')]=_0x49cbdd()[_0x4bb9d2('0x109a')](_0x523e75[0x2])?_0x523e75[0x2]:isNaN(_0x523e75[0x2])?_0x523e75[0x2]:parseInt(_0x523e75[0x2],0xa),_0x1c43c6[_0x4bb9d2('0x790')]['url']=_0x49cbdd()[_0x4bb9d2('0x109a')](_0x523e75[0x3])?_0x523e75[0x3]:isNaN(_0x523e75[0x3])?_0x523e75[0x3]:parseInt(_0x523e75[0x3],0xa);}break;}else{}_0x1c43c6[_0x4bb9d2('0x790')]['type']&&_0x1c43c6[_0x4bb9d2('0x790')]['type'][_0x4bb9d2('0x19b')]()===_0x4bb9d2('0x1ade')&&_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x1c54')][_0x4bb9d2('0x19b')]()===_0x4bb9d2('0x1711')&&(_0x1c43c6[_0x4bb9d2('0x790')]['prefix']=_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x2154')]?_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x2154')][_0x4bb9d2('0x2007')]('$')[0x0]:undefined,_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x1a8e')]=_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x17f4')]?'CALLERID(all)='+_0x1c43c6[_0x4bb9d2('0x790')][_0x4bb9d2('0x17f4')]:undefined);_0x1c43c6[_0x4bb9d2('0x10f')]=_0xbf6a18,_0x1c43c6['closeDialog']=_0x3e2b16;const _0x10afc0=[{'id':0xca,'role':'agent'},{'id':0xcb,'role':_0x4bb9d2('0x21b5')}];let _0x1fbba6=null;_0x461a7a[_0x4bb9d2('0x1ba2')](_0x4bb9d2('0x20bf'))?_0x451276[_0x4bb9d2('0x221e')][_0x4bb9d2('0x1c53')]({'fields':'id,name,role','sort':'name','nolimit':_0x4bb9d2('0xe34')})['$promise'][_0x4bb9d2('0x17e7')](function(_0x446eb5){const _0x3b55fd=_0x4bb9d2;_0x1c43c6['users']=_0x446eb5[_0x3b55fd('0x2319')]||[];})['catch'](function(_0x309690){const _0x3385ee=_0x4bb9d2;_0x2577e8[_0x3385ee('0x1db9')]({'title':_0x309690[_0x3385ee('0x11c5')]?_0x3385ee('0x14f7')+_0x309690[_0x3385ee('0x11c5')]+'\x20-\x20'+_0x309690[_0x3385ee('0x1833')]:_0x3385ee('0x8a9'),'msg':_0x309690[_0x3385ee('0x1457')]?JSON[_0x3385ee('0x678')](_0x309690['data']):_0x309690[_0x3385ee('0x9b6')]()});}):_0x451276[_0x4bb9d2('0x221e')][_0x4bb9d2('0x1c53')]({'fields':_0x4bb9d2('0x1635'),'sort':_0x4bb9d2('0x2aa'),'nolimit':_0x4bb9d2('0xe34')})[_0x4bb9d2('0x1af5')][_0x4bb9d2('0x17e7')](function(_0x335c43){_0x1fbba6=_0x335c43['rows']||[];})[_0x4bb9d2('0x17e7')](function(){const _0x943ce6=_0x4bb9d2,_0x6bfa60=[];for(let _0xeb4c31=0x0;_0xeb4c31<_0x10afc0['length'];_0xeb4c31++){_0x6bfa60['push'](_0x451276['userProfileSection'][_0x943ce6('0x1c53')]({'userProfileId':_0x1c43c6[_0x943ce6('0x197c')][_0x943ce6('0x1e76')],'sectionId':_0x10afc0[_0xeb4c31]['id']})['$promise']);}return _0x2ec7bc[_0x943ce6('0x1283')](_0x6bfa60);})[_0x4bb9d2('0x17e7')](function(_0x15b179){const _0x19f89a=_0x4bb9d2,_0x4b5957=_0x49cbdd()[_0x19f89a('0x787')](_0x15b179,function(_0x35c3ee){const _0x494cd4=_0x19f89a;return _0x35c3ee&&_0x35c3ee['rows']?_0x35c3ee[_0x494cd4('0x2319')][0x0]:null;}),_0x5f0f06=[];for(let _0x3e05a8=0x0;_0x3e05a8<_0x10afc0[_0x19f89a('0x1f73')];_0x3e05a8++){const _0x4cc394=_0x49cbdd()['find'](_0x4b5957,[_0x19f89a('0x2676'),_0x10afc0[_0x3e05a8]['id']]);if(_0x4cc394){if(!_0x4cc394['autoAssociation'])_0x5f0f06[_0x19f89a('0x269f')](_0x451276[_0x19f89a('0x78d')][_0x19f89a('0x1c53')]({'sectionId':_0x4cc394['id']})[_0x19f89a('0x1af5')]);else{const _0x547cb3=[];_0x1fbba6['forEach'](function(_0x5158c6){const _0x1beba6=_0x19f89a;_0x5158c6['role']===_0x10afc0[_0x3e05a8][_0x1beba6('0x1085')]&&_0x547cb3['push'](_0x5158c6);}),_0x5f0f06[_0x19f89a('0x269f')]({'rows':_0x547cb3,'count':_0x547cb3[_0x19f89a('0x1f73')]});}}}return _0x2ec7bc[_0x19f89a('0x1283')](_0x5f0f06);})[_0x4bb9d2('0x17e7')](function(_0x520ba9){const _0x1630c9=_0x4bb9d2,_0x7abb06=[];let _0x58443c=null;_0x1c43c6[_0x1630c9('0x790')]&&(_0x58443c=_0x49cbdd()[_0x1630c9('0xe8e')](_0x1fbba6,{'name':_0x1c43c6[_0x1630c9('0x790')][_0x1630c9('0x212f')]}));for(let _0xca50a=0x0;_0xca50a<_0x520ba9[_0x1630c9('0x1f73')];_0xca50a++){const _0x21d8cc=_0x520ba9[_0xca50a][_0x1630c9('0x2319')]||[];_0x21d8cc[_0x1630c9('0xccd')](function(_0x159dda){const _0x5267a3=_0x1630c9;_0x7abb06[_0x5267a3('0x269f')](_0x159dda);});}_0x58443c&&!_0x49cbdd()[_0x1630c9('0x26f8')](_0x7abb06,[_0x1630c9('0x5db'),_0x58443c['id']])&&_0x1fbba6[_0x1630c9('0xccd')](function(_0x24daa9){const _0x2e8ee8=_0x1630c9;_0x24daa9['id']===_0x58443c['id']&&(_0x24daa9[_0x2e8ee8('0xe5c')]=![],_0x7abb06['push'](_0x24daa9));}),_0x1c43c6[_0x1630c9('0x12ed')]=_0x7abb06;})[_0x4bb9d2('0x16df')](function(_0x1e9d66){const _0x24cedd=_0x4bb9d2;_0x2577e8[_0x24cedd('0x1db9')]({'title':_0x1e9d66[_0x24cedd('0x11c5')]?_0x24cedd('0x14f7')+_0x1e9d66[_0x24cedd('0x11c5')]+_0x24cedd('0x16e4')+_0x1e9d66[_0x24cedd('0x1833')]:_0x24cedd('0x10da'),'msg':_0x1e9d66['data']?JSON[_0x24cedd('0x678')](_0x1e9d66[_0x24cedd('0x1457')]):_0x1e9d66[_0x24cedd('0x9b6')]()});});function _0xbf6a18(){const _0xe2b583=_0x4bb9d2;_0x1c43c6[_0xe2b583('0x73e')]=[];const _0x12ee6b=[];_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x412')]&&_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x412')][_0xe2b583('0x19b')]()===_0xe2b583('0x1ade')&&_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x1c54')]===_0xe2b583('0xbdc')&&(_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x2154')]=_0x1e4391['cutdigits']?(_0x1c43c6[_0xe2b583('0x790')]['prefix']||'')+_0xe2b583('0x2265')+_0x1e4391[_0xe2b583('0x12af')]+'}':(_0x1c43c6['ringgroup'][_0xe2b583('0x11d4')]||'')+_0xe2b583('0x150e'),_0x1e4391[_0xe2b583('0x287')]!=='none'?_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x19')][_0xe2b583('0x2567')](_0xe2b583('0xa22'))<0x0&&(_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x19')]+=_0xe2b583('0xa22')):_0x1c43c6['ringgroup'][_0xe2b583('0x19')]=_0x1c43c6[_0xe2b583('0x790')]['options'][_0xe2b583('0x737')](_0xe2b583('0xa22'),''));if(_0x1c43c6[_0xe2b583('0x790')]['appType']&&_0x1c43c6[_0xe2b583('0x790')]['appType']===_0xe2b583('0x8fa')){}else switch((_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x643')]||_0x1c43c6['ringgroup']['appType'])[_0xe2b583('0x19b')]()){case'set':_0x1c43c6['ringgroup']['appdata']=_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x2aa')]+'='+_0x1c43c6[_0xe2b583('0x790')]['value'];break;case _0xe2b583('0x8fa'):break;default:_0x12ee6b[0x0]=_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x212f')][_0xe2b583('0x1eba')]('&'),_0x12ee6b[0x1]=_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0xd2f')],_0x12ee6b[0x2]=_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x19')],_0x12ee6b[0x3]=_0x1c43c6[_0xe2b583('0x790')][_0xe2b583('0x101e')],_0x1c43c6['ringgroup'][_0xe2b583('0x2077')]=_0x12ee6b[_0xe2b583('0x1eba')](',');}_0x3e2b16(_0x1c43c6[_0xe2b583('0x790')]);}function _0x3e2b16(_0xbb727b){const _0x1acd98=_0x4bb9d2;_0x310a51[_0x1acd98('0x212a')](_0xbb727b);}}const _0x4e4238=_0x1d423a;_0x3a6aee['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'internalrouteApp',_0x4376d8('0x166'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x3a6aee(_0x29d43b,_0x9dc7e2,_0x4742d9,_0x400ee2,_0x1559b8,_0x2abe97,_0xcc4526,_0x1281ab){const _0xda75dc=_0x4376d8,_0x28ef8a=this;_0x28ef8a['currentUser']=_0xcc4526[_0xda75dc('0x2831')](),_0x28ef8a[_0xda75dc('0x73e')]=[],_0x28ef8a['title']=_0xda75dc('0x1c6f')+(_0x400ee2['appType']||_0x400ee2[_0xda75dc('0x643')])[_0xda75dc('0x14e2')](),_0x28ef8a[_0xda75dc('0xf2e')]=angular[_0xda75dc('0x14e5')](_0x400ee2),_0x28ef8a[_0xda75dc('0x103e')]=_0x1281ab,_0x28ef8a[_0xda75dc('0x6ee')]={};if(_0x28ef8a['set'][_0xda75dc('0x2077')])switch(_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x1c54')]?_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x1c54')][_0xda75dc('0x19b')]():_0x28ef8a['set'][_0xda75dc('0x643')]['toLowerCase']()){case _0xda75dc('0x8fa'):break;case _0xda75dc('0x2526'):{const _0xeb44c3=_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2077')][_0xda75dc('0x2007')](',');_0x28ef8a['set'][_0xda75dc('0xdb5')]=_0xeb44c3[0x0],_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x3e1')]=_0xeb44c3[0x1],_0x28ef8a[_0xda75dc('0xf2e')]['welcomemessage']=_0xeb44c3[_0xda75dc('0x275f')](0x2,_0xeb44c3[_0xda75dc('0x1f73')])[_0xda75dc('0x1eba')](',');}break;case _0xda75dc('0x22ac'):{const _0x3d27a4=_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2077')][_0xda75dc('0x2007')](',');_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x28ab')]=_0x3d27a4[0x0],_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2814')]=_0x3d27a4[0x1],_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x1bc2')]=_0x3d27a4[0x2],_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x3e1')]=_0x3d27a4[0x3],_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x1083')]=_0x3d27a4[_0xda75dc('0x275f')](0x4,_0x3d27a4[_0xda75dc('0x1f73')])[_0xda75dc('0x1eba')](',');}break;case _0xda75dc('0x16a9'):{const _0x7320e0=_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2077')][_0xda75dc('0x2007')](',');_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x1452')]=_0x7320e0[0x0],_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x1a62')]=_0x7320e0[0x1],_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x1dcf')]=_0x7320e0[0x2],_0x28ef8a['set'][_0xda75dc('0x4a')]=_0x7320e0[0x3],_0x28ef8a['set'][_0xda75dc('0x1083')]=_0x7320e0['slice'](0x4,_0x7320e0[_0xda75dc('0x1f73')])['join'](',');}break;case _0xda75dc('0x96e'):{const _0x3ec021=_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2077')][_0xda75dc('0x2007')](',');_0x28ef8a['set'][_0xda75dc('0x12a6')]=isNaN(_0x3ec021[0x0])?_0x3ec021[0x0]:parseInt(_0x3ec021[0x0],0xa),_0x28ef8a['set'][_0xda75dc('0x132f')]=_0x3ec021['slice'](0x1,_0x3ec021['length'])[_0xda75dc('0x1eba')](',');}break;case _0xda75dc('0x1603'):_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x132f')]=_0x28ef8a[_0xda75dc('0xf2e')]['appdata'];break;case _0xda75dc('0xf2e'):_0x28ef8a['set'][_0xda75dc('0x2aa')]=_0x28ef8a['set'][_0xda75dc('0x2077')]['split']('=')[0x0],_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x175b')]=_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2077')][_0xda75dc('0x2007')]('=')[0x1];break;case _0xda75dc('0x17c6'):_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x87c')]=_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2077')];break;default:{const _0x5f277f=_0x28ef8a[_0xda75dc('0xf2e')]['appdata'][_0xda75dc('0x2007')]('=');_0x28ef8a[_0xda75dc('0xf2e')]['name']=_0x49cbdd()[_0xda75dc('0x109a')](_0x5f277f[0x0])?_0x5f277f[0x0]:isNaN(_0x5f277f[0x0])?_0x5f277f[0x0]:parseInt(_0x5f277f[0x0],0xa),_0x28ef8a['set']['value']=_0x49cbdd()[_0xda75dc('0x109a')](_0x5f277f[0x1])?_0x5f277f[0x1]:isNaN(_0x5f277f[0x1])?_0x5f277f[0x1]:parseInt(_0x5f277f[0x1],0xa);}break;}else{}_0x28ef8a['set'][_0xda75dc('0x412')]&&_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x412')][_0xda75dc('0x19b')]()==='outbound'&&_0x28ef8a[_0xda75dc('0xf2e')]['appType']['toLowerCase']()===_0xda75dc('0x1711')&&(_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x11d4')]=_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2154')]?_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x2154')][_0xda75dc('0x2007')]('$')[0x0]:undefined,_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x1a8e')]=_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x17f4')]?_0xda75dc('0x1d28')+_0x28ef8a[_0xda75dc('0xf2e')][_0xda75dc('0x17f4')]:undefined);_0x28ef8a['saveInternalRouteApp']=_0x55db32,_0x28ef8a['closeDialog']=_0x5fec61,_0xcc4526['hasRole'](_0xda75dc('0x20bf'))?_0x2abe97[_0xda75dc('0xb0a')][_0xda75dc('0x1c53')]({'fields':_0xda75dc('0x12d2'),'sort':_0xda75dc('0x2aa'),'nolimit':_0xda75dc('0xe34')})[_0xda75dc('0x1af5')][_0xda75dc('0x17e7')](function(_0x491889){const _0x560ea1=_0xda75dc;_0x28ef8a['variables']=_0x491889[_0x560ea1('0x2319')]||[];})['catch'](function(_0x4e7cd3){const _0x3ec803=_0xda75dc;_0x4742d9[_0x3ec803('0x1db9')]({'title':_0x4e7cd3[_0x3ec803('0x11c5')]?_0x3ec803('0x14f7')+_0x4e7cd3['status']+_0x3ec803('0x16e4')+_0x4e7cd3[_0x3ec803('0x1833')]:_0x3ec803('0x1edc'),'msg':_0x4e7cd3['data']?JSON['stringify'](_0x4e7cd3[_0x3ec803('0x1457')]):_0x4e7cd3[_0x3ec803('0x9b6')]()});}):_0x2abe97[_0xda75dc('0xb0a')][_0xda75dc('0x1c53')]({'fields':_0xda75dc('0x12d2'),'sort':_0xda75dc('0x2aa'),'nolimit':'true'})[_0xda75dc('0x1af5')][_0xda75dc('0x17e7')](function(_0x596c08){const _0x42f018=_0xda75dc;_0x28ef8a[_0x42f018('0xd26')]=_0x596c08[_0x42f018('0x2319')]||[];})[_0xda75dc('0x17e7')](function(){const _0x392cf2=_0xda75dc;return _0x2abe97['userProfileSection'][_0x392cf2('0x1c53')]({'userProfileId':_0x28ef8a[_0x392cf2('0x197c')][_0x392cf2('0x1e76')],'sectionId':0x3f4})[_0x392cf2('0x1af5')];})[_0xda75dc('0x17e7')](function(_0x1cd6d1){const _0x5df9dd=_0xda75dc,_0x13e38b=_0x1cd6d1&&_0x1cd6d1[_0x5df9dd('0x2319')]?_0x1cd6d1[_0x5df9dd('0x2319')][0x0]:null;if(!_0x13e38b){const _0x5ea1a6=[];let _0x112d78=null;_0x28ef8a[_0x5df9dd('0xf2e')]&&(_0x112d78=_0x49cbdd()[_0x5df9dd('0xe8e')](_0x28ef8a[_0x5df9dd('0xd26')],{'name':_0x28ef8a[_0x5df9dd('0xf2e')][_0x5df9dd('0x2aa')]}));for(let _0x161639=0x0;_0x161639<_0x28ef8a[_0x5df9dd('0xd26')][_0x5df9dd('0x1f73')];_0x161639++){_0x112d78&&_0x28ef8a[_0x5df9dd('0xd26')][_0x161639]['id']===_0x112d78['id']&&(_0x28ef8a[_0x5df9dd('0xd26')][_0x161639][_0x5df9dd('0xe5c')]=![],_0x5ea1a6[_0x5df9dd('0x269f')](_0x28ef8a[_0x5df9dd('0xd26')][_0x161639]));}_0x28ef8a[_0x5df9dd('0xd26')]=_0x5ea1a6;}else{if(!_0x13e38b[_0x5df9dd('0x9e3')])return _0x2abe97['userProfileResource']['get']({'sectionId':_0x13e38b['id']})[_0x5df9dd('0x1af5')][_0x5df9dd('0x17e7')](function(_0x534b61){const _0x438ff9=_0x5df9dd,_0x4ccb20=_0x49cbdd()[_0x438ff9('0x787')](_0x534b61[_0x438ff9('0x2319')],function(_0x1c6d06){const _0x84892d=_0x438ff9;return _0x49cbdd()['find'](_0x28ef8a['variables'],{'id':_0x1c6d06[_0x84892d('0x5db')]});});let _0x5388b8=null;_0x28ef8a[_0x438ff9('0xf2e')]&&(_0x5388b8=_0x49cbdd()[_0x438ff9('0xe8e')](_0x28ef8a[_0x438ff9('0xd26')],{'name':_0x28ef8a[_0x438ff9('0xf2e')][_0x438ff9('0x2aa')]}));if(_0x5388b8&&!_0x49cbdd()[_0x438ff9('0x26f8')](_0x4ccb20,['id',_0x5388b8['id']])){const _0x439751=_0x49cbdd()[_0x438ff9('0xe8e')](_0x28ef8a[_0x438ff9('0xd26')],{'id':_0x5388b8['id']});_0x439751[_0x438ff9('0xe5c')]=![],_0x4ccb20[_0x438ff9('0x269f')](_0x439751);}_0x28ef8a[_0x438ff9('0xd26')]=_0x4ccb20;});}})['catch'](function(_0x3f8cb9){const _0x5034b7=_0xda75dc;_0x4742d9[_0x5034b7('0x1db9')]({'title':_0x3f8cb9['status']?_0x5034b7('0x14f7')+_0x3f8cb9['status']+'\x20-\x20'+_0x3f8cb9[_0x5034b7('0x1833')]:_0x5034b7('0xef7'),'msg':_0x3f8cb9[_0x5034b7('0x1457')]?JSON[_0x5034b7('0x678')](_0x3f8cb9['data']):_0x3f8cb9[_0x5034b7('0x9b6')]()});});function _0x55db32(){const _0x45d1c0=_0xda75dc;_0x28ef8a[_0x45d1c0('0x73e')]=[];const _0x3ea3cf=[];_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x412')]&&_0x28ef8a[_0x45d1c0('0xf2e')]['type']['toLowerCase']()==='outbound'&&_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x1c54')]===_0x45d1c0('0xbdc')&&(_0x28ef8a['set'][_0x45d1c0('0x2154')]=_0x1559b8[_0x45d1c0('0x12af')]?(_0x28ef8a['set'][_0x45d1c0('0x11d4')]||'')+'${EXTEN:'+_0x1559b8['cutdigits']+'}':(_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x11d4')]||'')+'${EXTEN}',_0x1559b8[_0x45d1c0('0x287')]!==_0x45d1c0('0x7ee')?_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x19')][_0x45d1c0('0x2567')](_0x45d1c0('0xa22'))<0x0&&(_0x28ef8a[_0x45d1c0('0xf2e')]['options']+=_0x45d1c0('0xa22')):_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x19')]=_0x28ef8a['set'][_0x45d1c0('0x19')][_0x45d1c0('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x1c54')]&&_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x1c54')]==='custom'){}else switch((_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x643')]||_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x1c54')])[_0x45d1c0('0x19b')]()){case'set':_0x28ef8a['set'][_0x45d1c0('0x2077')]=_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x2aa')]+'='+_0x28ef8a['set']['value'];break;case _0x45d1c0('0x8fa'):break;default:_0x3ea3cf[0x0]=_0x28ef8a[_0x45d1c0('0xf2e')]['name'],_0x3ea3cf[0x1]=_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x175b')],_0x28ef8a[_0x45d1c0('0xf2e')][_0x45d1c0('0x2077')]=_0x3ea3cf['join']('=');}_0x5fec61(_0x28ef8a[_0x45d1c0('0xf2e')]);}function _0x5fec61(_0x471bce){const _0x110367=_0xda75dc;_0x29d43b[_0x110367('0x212a')](_0x471bce);}}const _0x341741=_0x3a6aee;_0x24bb2f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x22c7'),'internalroute',_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x24bb2f(_0x4e002a,_0x2afd21,_0x120eac,_0x286876,_0xf0fec1,_0x2bab2c,_0x215a93,_0x267f66){const _0x4cd731=_0x4376d8,_0x3abfe3=this;_0x3abfe3[_0x4cd731('0x197c')]=_0x215a93['getCurrentUser'](),_0x3abfe3[_0x4cd731('0x73e')]=[],_0x3abfe3['title']=_0x4cd731('0x1c6f')+(_0x286876[_0x4cd731('0x1c54')]||_0x286876['app'])[_0x4cd731('0x14e2')](),_0x3abfe3[_0x4cd731('0x27c8')]=angular['copy'](_0x286876),_0x3abfe3[_0x4cd731('0x103e')]=_0x267f66,_0x3abfe3['hasModulePermissions']={};if(_0x3abfe3[_0x4cd731('0x27c8')]['appdata'])switch(_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1c54')]?_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1c54')]['toLowerCase']():_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x643')][_0x4cd731('0x19b')]()){case _0x4cd731('0x8fa'):break;case'dialogflow':{const _0x263e81=_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x2077')][_0x4cd731('0x2007')](',');_0x3abfe3[_0x4cd731('0x27c8')]['key']=_0x263e81[0x0],_0x3abfe3[_0x4cd731('0x27c8')]['language']=_0x263e81[0x1],_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1083')]=_0x263e81['slice'](0x2,_0x263e81[_0x4cd731('0x1f73')])[_0x4cd731('0x1eba')](',');}break;case _0x4cd731('0x22ac'):{const _0x21c18b=_0x3abfe3['voicemail'][_0x4cd731('0x2077')][_0x4cd731('0x2007')](',');_0x3abfe3[_0x4cd731('0x27c8')]['projectId']=_0x21c18b[0x0],_0x3abfe3[_0x4cd731('0x27c8')]['clientEmail']=_0x21c18b[0x1],_0x3abfe3['voicemail'][_0x4cd731('0x1bc2')]=_0x21c18b[0x2],_0x3abfe3['voicemail']['language']=_0x21c18b[0x3],_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1083')]=_0x21c18b[_0x4cd731('0x275f')](0x4,_0x21c18b[_0x4cd731('0x1f73')])['join'](',');}break;case _0x4cd731('0x16a9'):{const _0x2d1f64=_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x2077')][_0x4cd731('0x2007')](',');_0x3abfe3['voicemail'][_0x4cd731('0x1452')]=_0x2d1f64[0x0],_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1a62')]=_0x2d1f64[0x1],_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1dcf')]=_0x2d1f64[0x2],_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x4a')]=_0x2d1f64[0x3],_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1083')]=_0x2d1f64[_0x4cd731('0x275f')](0x4,_0x2d1f64[_0x4cd731('0x1f73')])[_0x4cd731('0x1eba')](',');}break;case _0x4cd731('0x96e'):{const _0x3f3ea2=_0x3abfe3['voicemail'][_0x4cd731('0x2077')]['split'](',');_0x3abfe3['voicemail'][_0x4cd731('0x12a6')]=isNaN(_0x3f3ea2[0x0])?_0x3f3ea2[0x0]:parseInt(_0x3f3ea2[0x0],0xa),_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x132f')]=_0x3f3ea2[_0x4cd731('0x275f')](0x1,_0x3f3ea2[_0x4cd731('0x1f73')])['join'](',');}break;case'message':_0x3abfe3[_0x4cd731('0x27c8')]['text']=_0x3abfe3['voicemail'][_0x4cd731('0x2077')];break;case _0x4cd731('0xf2e'):_0x3abfe3[_0x4cd731('0x27c8')]['name']=_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x2077')][_0x4cd731('0x2007')]('=')[0x0],_0x3abfe3['voicemail'][_0x4cd731('0x175b')]=_0x3abfe3['voicemail'][_0x4cd731('0x2077')][_0x4cd731('0x2007')]('=')[0x1];break;case _0x4cd731('0x17c6'):_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x87c')]=_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x2077')];break;default:{const _0x40e5dd=_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x2077')][_0x4cd731('0x2007')](',');_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x2753')]=_0x49cbdd()['isEmpty'](_0x40e5dd[0x0])?_0x40e5dd[0x0]:isNaN(_0x40e5dd[0x0])?_0x40e5dd[0x0]:parseInt(_0x40e5dd[0x0],0xa),_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x19')]=_0x49cbdd()[_0x4cd731('0x109a')](_0x40e5dd[0x1])?_0x40e5dd[0x1]:isNaN(_0x40e5dd[0x1])?_0x40e5dd[0x1]:parseInt(_0x40e5dd[0x1],0xa);}break;}else{}_0x3abfe3['voicemail'][_0x4cd731('0x412')]&&_0x3abfe3['voicemail'][_0x4cd731('0x412')][_0x4cd731('0x19b')]()===_0x4cd731('0x1ade')&&_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1c54')][_0x4cd731('0x19b')]()===_0x4cd731('0x1711')&&(_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x11d4')]=_0x3abfe3['voicemail']['phone']?_0x3abfe3['voicemail'][_0x4cd731('0x2154')]['split']('$')[0x0]:undefined,_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x1a8e')]=_0x3abfe3[_0x4cd731('0x27c8')][_0x4cd731('0x17f4')]?_0x4cd731('0x1d28')+_0x3abfe3['voicemail']['callerID']:undefined);_0x3abfe3[_0x4cd731('0x10f')]=_0x1b73d0,_0x3abfe3['closeDialog']=_0x539c46,_0x215a93[_0x4cd731('0x1ba2')](_0x4cd731('0x20bf'))?_0x2bab2c[_0x4cd731('0x2753')][_0x4cd731('0x1c53')]({'fields':'id,mailbox','sort':_0x4cd731('0x25c6'),'nolimit':_0x4cd731('0xe34')})[_0x4cd731('0x1af5')][_0x4cd731('0x17e7')](function(_0x56be4b){const _0x1c364e=_0x4cd731;_0x3abfe3[_0x1c364e('0x15f1')]=_0x56be4b[_0x1c364e('0x2319')]||[];})[_0x4cd731('0x16df')](function(_0x1a383d){const _0x2d00cc=_0x4cd731;_0x120eac['error']({'title':_0x1a383d[_0x2d00cc('0x11c5')]?'API:'+_0x1a383d[_0x2d00cc('0x11c5')]+_0x2d00cc('0x16e4')+_0x1a383d[_0x2d00cc('0x1833')]:_0x2d00cc('0x116b'),'msg':_0x1a383d[_0x2d00cc('0x1457')]?JSON[_0x2d00cc('0x678')](_0x1a383d[_0x2d00cc('0x1457')]):_0x1a383d[_0x2d00cc('0x9b6')]()});}):_0x2bab2c['voiceMail']['get']({'fields':'id,mailbox','sort':'mailbox','nolimit':_0x4cd731('0xe34')})[_0x4cd731('0x1af5')][_0x4cd731('0x17e7')](function(_0x1a1415){const _0x5a85e3=_0x4cd731;_0x3abfe3['voiceMails']=_0x1a1415[_0x5a85e3('0x2319')]||[];})[_0x4cd731('0x17e7')](function(){const _0x2b5016=_0x4cd731;return _0x2bab2c[_0x2b5016('0x383')][_0x2b5016('0x1c53')]({'userProfileId':_0x3abfe3['currentUser'][_0x2b5016('0x1e76')],'sectionId':0x196})['$promise'];})[_0x4cd731('0x17e7')](function(_0x3e8fca){const _0x181b42=_0x4cd731,_0x5da0d8=_0x3e8fca&&_0x3e8fca[_0x181b42('0x2319')]?_0x3e8fca[_0x181b42('0x2319')][0x0]:null;if(!_0x5da0d8){const _0x2a2390=[];let _0x46b2ee=null;_0x3abfe3[_0x181b42('0x27c8')]&&(_0x46b2ee=_0x49cbdd()[_0x181b42('0xe8e')](_0x3abfe3['voiceMails'],{'mailbox':_0x3abfe3[_0x181b42('0x27c8')][_0x181b42('0x2753')]}));for(let _0x228fde=0x0;_0x228fde<_0x3abfe3[_0x181b42('0x15f1')]['length'];_0x228fde++){_0x46b2ee&&_0x3abfe3['voiceMails'][_0x228fde]['id']===_0x46b2ee['id']&&(_0x3abfe3['voiceMails'][_0x228fde][_0x181b42('0xe5c')]=![],_0x2a2390['push'](_0x3abfe3[_0x181b42('0x15f1')][_0x228fde]));}_0x3abfe3[_0x181b42('0x15f1')]=_0x2a2390;}else{if(!_0x5da0d8[_0x181b42('0x9e3')])return _0x2bab2c[_0x181b42('0x78d')]['get']({'sectionId':_0x5da0d8['id']})[_0x181b42('0x1af5')]['then'](function(_0x153a6c){const _0x4a6922=_0x181b42,_0x5e423d=_0x49cbdd()[_0x4a6922('0x787')](_0x153a6c[_0x4a6922('0x2319')],function(_0x270375){const _0x443023=_0x4a6922;return _0x49cbdd()[_0x443023('0xe8e')](_0x3abfe3['voiceMails'],{'id':_0x270375[_0x443023('0x5db')]});});let _0x1a3d43=null;_0x3abfe3[_0x4a6922('0x27c8')]&&(_0x1a3d43=_0x49cbdd()[_0x4a6922('0xe8e')](_0x3abfe3[_0x4a6922('0x15f1')],{'mailbox':_0x3abfe3[_0x4a6922('0x27c8')][_0x4a6922('0x2753')]}));if(_0x1a3d43&&!_0x49cbdd()[_0x4a6922('0x26f8')](_0x5e423d,['id',_0x1a3d43['id']])){const _0x464a83=_0x49cbdd()[_0x4a6922('0xe8e')](_0x3abfe3[_0x4a6922('0x15f1')],{'id':_0x1a3d43['id']});_0x464a83[_0x4a6922('0xe5c')]=![],_0x5e423d[_0x4a6922('0x269f')](_0x464a83);}_0x3abfe3[_0x4a6922('0x15f1')]=_0x5e423d;});}})[_0x4cd731('0x16df')](function(_0x4d4d8b){const _0x19844e=_0x4cd731;_0x120eac[_0x19844e('0x1db9')]({'title':_0x4d4d8b[_0x19844e('0x11c5')]?_0x19844e('0x14f7')+_0x4d4d8b[_0x19844e('0x11c5')]+_0x19844e('0x16e4')+_0x4d4d8b[_0x19844e('0x1833')]:_0x19844e('0x273f'),'msg':_0x4d4d8b[_0x19844e('0x1457')]?JSON[_0x19844e('0x678')](_0x4d4d8b[_0x19844e('0x1457')]):_0x4d4d8b[_0x19844e('0x9b6')]()});});function _0x1b73d0(){const _0xa60c46=_0x4cd731;_0x3abfe3['errors']=[];const _0x5bb4b3=[];_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x412')]&&_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x412')][_0xa60c46('0x19b')]()===_0xa60c46('0x1ade')&&_0x3abfe3['voicemail'][_0xa60c46('0x1c54')]==='outboundDial'&&(_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x2154')]=_0xf0fec1['cutdigits']?(_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x11d4')]||'')+'${EXTEN:'+_0xf0fec1[_0xa60c46('0x12af')]+'}':(_0x3abfe3['voicemail'][_0xa60c46('0x11d4')]||'')+_0xa60c46('0x150e'),_0xf0fec1[_0xa60c46('0x287')]!==_0xa60c46('0x7ee')?_0x3abfe3[_0xa60c46('0x27c8')]['options']['indexOf'](_0xa60c46('0xa22'))<0x0&&(_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x19')]+=_0xa60c46('0xa22')):_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x19')]=_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x19')][_0xa60c46('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x3abfe3[_0xa60c46('0x27c8')]['appType']&&_0x3abfe3['voicemail'][_0xa60c46('0x1c54')]===_0xa60c46('0x8fa')){}else switch((_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x643')]||_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x1c54')])['toLowerCase']()){case'set':_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x2077')]=_0x3abfe3['voicemail'][_0xa60c46('0x2aa')]+'='+_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x175b')];break;case _0xa60c46('0x8fa'):break;default:_0x5bb4b3[0x0]=_0x3abfe3['voicemail'][_0xa60c46('0x2753')],_0x5bb4b3[0x1]=_0x3abfe3['voicemail'][_0xa60c46('0x19')],_0x3abfe3[_0xa60c46('0x27c8')][_0xa60c46('0x2077')]=_0x5bb4b3[_0xa60c46('0x1eba')](',');}_0x539c46(_0x3abfe3[_0xa60c46('0x27c8')]);}function _0x539c46(_0x2d7d9a){_0x4e002a['hide'](_0x2d7d9a);}}const _0x211362=_0x24bb2f;_0x10b9cb[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),'toasty','Auth','internalroute',_0x4376d8('0x383')];function _0x10b9cb(_0xe2aca1,_0x59eb3b,_0x48a0ce,_0xf1ff38,_0x5694eb,_0x349e22,_0x5421c9,_0x357268,_0x3dbe96,_0x435b33,_0x2d6706,_0x49780a){const _0x480b71=_0x4376d8,_0x40e215=this;_0x40e215[_0x480b71('0x197c')]=_0x435b33[_0x480b71('0x2831')](),_0x40e215[_0x480b71('0x1d11')]=_0x349e22,_0x40e215[_0x480b71('0x1aeb')]=_0x5421c9,_0x40e215[_0x480b71('0x1572')]=_0x40e215['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x40e215[_0x480b71('0xaed')]=_0x59eb3b[_0x480b71('0x14fe')]()+_0x480b71('0x14')+_0x59eb3b[_0x480b71('0x108')](),_0x40e215[_0x480b71('0x166')]=_0x2d6706||_0xe2aca1[_0x480b71('0x16fb')][_0x480b71('0x166')]||{},_0x40e215[_0x480b71('0x383')]=_0x49780a&&_0x49780a['count']==0x1?_0x49780a['rows'][0x0]:null,_0x40e215[_0x480b71('0x103e')]=_0x435b33[_0x480b71('0x17a9')](_0x40e215[_0x480b71('0x383')]?_0x40e215[_0x480b71('0x383')][_0x480b71('0x103e')]:null),_0x40e215['hasModulePermissions']={},_0x40e215[_0x480b71('0xde7')]=_0xe2aca1['params'][_0x480b71('0x1523')]||0x0,_0x40e215[_0x480b71('0x99f')]=_0x3dbe96[_0x480b71('0x1178')],_0x40e215[_0x480b71('0x215f')]=_0x885168,_0x40e215[_0x480b71('0xcbc')]=_0x5c8e19,_0x435b33[_0x480b71('0x1ba2')]('admin')?_0x357268[_0x480b71('0xc76')][_0x480b71('0x1c53')]({'fields':'id,name','sort':_0x480b71('0x2aa'),'nolimit':_0x480b71('0xe34')})[_0x480b71('0x1af5')][_0x480b71('0x17e7')](function(_0xc95137){const _0x3eb729=_0x480b71;_0x40e215['contexts']=_0xc95137[_0x3eb729('0x2319')]||[];})['catch'](function(_0x5c582d){const _0x1feef0=_0x480b71;_0x3dbe96[_0x1feef0('0x1db9')]({'title':_0x5c582d[_0x1feef0('0x11c5')]?_0x1feef0('0x14f7')+_0x5c582d[_0x1feef0('0x11c5')]+_0x1feef0('0x16e4')+_0x5c582d[_0x1feef0('0x1833')]:_0x1feef0('0xa2c'),'msg':_0x5c582d[_0x1feef0('0x1457')]?JSON[_0x1feef0('0x678')](_0x5c582d[_0x1feef0('0x1457')]):_0x5c582d[_0x1feef0('0x9b6')]()});}):_0x357268[_0x480b71('0xc76')]['get']({'fields':_0x480b71('0x12d2'),'sort':_0x480b71('0x2aa'),'nolimit':_0x480b71('0xe34')})[_0x480b71('0x1af5')][_0x480b71('0x17e7')](function(_0x5e8547){const _0x36dec2=_0x480b71;_0x40e215[_0x36dec2('0xfb3')]=_0x5e8547[_0x36dec2('0x2319')]||[];})['then'](function(){const _0x234f2a=_0x480b71;return _0x357268[_0x234f2a('0x383')][_0x234f2a('0x1c53')]({'userProfileId':_0x40e215[_0x234f2a('0x197c')][_0x234f2a('0x1e76')],'sectionId':0x195})[_0x234f2a('0x1af5')];})[_0x480b71('0x17e7')](function(_0x3e819d){const _0x398aeb=_0x480b71,_0x2d4258=_0x3e819d&&_0x3e819d[_0x398aeb('0x2319')]?_0x3e819d[_0x398aeb('0x2319')][0x0]:null;if(!_0x2d4258)return _0x357268[_0x398aeb('0xc76')][_0x398aeb('0x1c53')]({'fields':'id,name','sort':_0x398aeb('0x2aa'),'nolimit':_0x398aeb('0xe34'),'defaultEntry':0x1})[_0x398aeb('0x1af5')]['then'](function(_0x1f2db9){const _0xc8d8a1=_0x398aeb;_0x40e215[_0xc8d8a1('0xfb3')]=_0x1f2db9[_0xc8d8a1('0x2319')]||[];});else{if(!_0x2d4258[_0x398aeb('0x9e3')])return _0x357268[_0x398aeb('0x78d')][_0x398aeb('0x1c53')]({'sectionId':_0x2d4258['id']})[_0x398aeb('0x1af5')][_0x398aeb('0x17e7')](function(_0x147f55){const _0x512a16=_0x398aeb,_0x4b73f7=_0x49cbdd()['map'](_0x147f55[_0x512a16('0x2319')],function(_0xcb644c){const _0x1e454d=_0x512a16;return _0x49cbdd()['find'](_0x40e215[_0x1e454d('0xfb3')],{'id':_0xcb644c['resourceId']});});let _0x482980=null;_0x40e215[_0x512a16('0x166')]&&(_0x482980=_0x49cbdd()[_0x512a16('0xe8e')](_0x40e215[_0x512a16('0xfb3')],{'name':_0x40e215[_0x512a16('0x166')]['context']}));if(_0x482980&&!_0x49cbdd()[_0x512a16('0x26f8')](_0x4b73f7,['id',_0x482980['id']])){const _0x4e026f=_0x49cbdd()[_0x512a16('0xe8e')](_0x40e215['contexts'],{'id':_0x482980['id']});_0x4e026f[_0x512a16('0xe5c')]=![],_0x4b73f7[_0x512a16('0x269f')](_0x4e026f);}_0x40e215[_0x512a16('0xfb3')]=_0x4b73f7;});}})[_0x480b71('0x16df')](function(_0x15c849){const _0x3dc33e=_0x480b71;_0x3dbe96[_0x3dc33e('0x1db9')]({'title':_0x15c849[_0x3dc33e('0x11c5')]?_0x3dc33e('0x14f7')+_0x15c849[_0x3dc33e('0x11c5')]+'\x20-\x20'+_0x15c849[_0x3dc33e('0x1833')]:'SYSTEM:GETcontexts','msg':_0x15c849[_0x3dc33e('0x1457')]?JSON[_0x3dc33e('0x678')](_0x15c849[_0x3dc33e('0x1457')]):_0x15c849[_0x3dc33e('0x9b6')]()});});function _0x885168(){const _0x371d06=_0x480b71;_0xe2aca1['go'](_0x371d06('0x2117'),{},{'reload':_0x371d06('0x2117')});}function _0x5c8e19(){const _0x53614a=_0x480b71;_0x357268[_0x53614a('0x16c2')]['update']({'id':_0x40e215[_0x53614a('0x166')]['id']},_0x40e215[_0x53614a('0x166')])[_0x53614a('0x1af5')][_0x53614a('0x17e7')](function(){const _0x492ffd=_0x53614a;_0x3dbe96[_0x492ffd('0x130d')]({'title':_0x492ffd('0x1384'),'msg':_0x40e215[_0x492ffd('0x166')][_0x492ffd('0x2aa')]?_0x40e215[_0x492ffd('0x166')][_0x492ffd('0x2aa')]+'\x20has\x20been\x20updated!':''});})[_0x53614a('0x16df')](function(_0xb72e1){const _0x271620=_0x53614a;_0x3dbe96['error']({'title':_0xb72e1['status']?_0x271620('0x14f7')+_0xb72e1[_0x271620('0x11c5')]+_0x271620('0x16e4')+_0xb72e1['statusText']:_0x271620('0xec6'),'msg':_0xb72e1['data']?JSON['stringify'](_0xb72e1['data']):_0xb72e1['toString']()});});}}const _0xa8984c=_0x10b9cb,_0x2baa4f=_0x4cf2bc['p']+_0x4376d8('0x4be');_0xfd4d00[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x280f'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x212e'),_0x4376d8('0x1606'),'toasty',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0xfd4d00(_0x2d0834,_0x1d8bc0,_0x5b9de8,_0x3981bd,_0x1b4c30,_0x21a247,_0x295b60,_0x5cf071,_0x4590f2,_0x30f897,_0x5be9ee,_0xdbe84,_0x5ed6ce,_0x1fb213,_0x49b6ac,_0x4deff6,_0x52fd76){const _0x1fc331=_0x4376d8,_0x6c575f=this;_0x6c575f['license']=_0x4deff6,_0x6c575f[_0x1fc331('0x1aeb')]=_0x52fd76,_0x6c575f[_0x1fc331('0x197c')]=_0x49b6ac[_0x1fc331('0x2831')](),_0x6c575f[_0x1fc331('0x280f')]=_0x4590f2||{'count':0x0,'rows':[]},_0x6c575f[_0x1fc331('0xdeb')]=_0x30f897,_0x6c575f[_0x1fc331('0x383')]=_0x5be9ee&&_0x5be9ee[_0x1fc331('0x335')]==0x1?_0x5be9ee[_0x1fc331('0x2319')][0x0]:null,_0x6c575f[_0x1fc331('0x103e')]=_0x49b6ac['parseCrudPermissions'](_0x6c575f['userProfileSection']?_0x6c575f[_0x1fc331('0x383')][_0x1fc331('0x103e')]:null),_0x6c575f['table']='internalroutes',_0x6c575f[_0x1fc331('0x26a1')]='',_0x6c575f[_0x1fc331('0x24e1')]=null,_0x6c575f['selectedInternalRoutes']=[],_0x6c575f[_0x1fc331('0x826')]={'fields':_0x1fc331('0x1af3'),'type':_0x1fc331('0xe3e'),'sort':_0x1fc331('0x1ac6'),'VoiceExtensionId':_0x1fc331('0x9bb'),'limit':0xa,'page':0x1},_0x6c575f[_0x1fc331('0xcd4')]=_0x4be2ec,_0x6c575f[_0x1fc331('0xbf4')]=_0x30ba60,_0x6c575f[_0x1fc331('0x130d')]=_0x2216ed,_0x6c575f[_0x1fc331('0x1a67')]=_0x35628a,_0x6c575f['createOrEditInternalRoute']=_0x54f7c3,_0x6c575f[_0x1fc331('0x1000')]=_0x4afe1a,_0x6c575f[_0x1fc331('0x274c')]=_0x4dfcbb,_0x6c575f['deleteSelectedInternalRoutes']=_0x557452,_0x6c575f[_0x1fc331('0x1079')]=_0x26621c,_0x6c575f[_0x1fc331('0x1501')]=_0x4f983f,_0x49b6ac[_0x1fc331('0x1ba2')](_0x1fc331('0x20bf'))?_0xdbe84[_0x1fc331('0xc76')][_0x1fc331('0x1c53')]({'fields':_0x1fc331('0x12d2'),'sort':_0x1fc331('0x2aa'),'nolimit':_0x1fc331('0xe34')})[_0x1fc331('0x1af5')][_0x1fc331('0x17e7')](function(_0x46b441){const _0x6b66e5=_0x1fc331;_0x6c575f[_0x6b66e5('0xfb3')]=_0x46b441[_0x6b66e5('0x2319')]||[];})[_0x1fc331('0x16df')](function(_0x4a534d){const _0x24605b=_0x1fc331;_0x1fb213[_0x24605b('0x1db9')]({'title':_0x4a534d[_0x24605b('0x11c5')]?_0x24605b('0x14f7')+_0x4a534d[_0x24605b('0x11c5')]+_0x24605b('0x16e4')+_0x4a534d['statusText']:_0x24605b('0xa2c'),'msg':_0x4a534d[_0x24605b('0x1457')]?JSON['stringify'](_0x4a534d[_0x24605b('0x1457')]):_0x4a534d[_0x24605b('0x9b6')]()});}):_0xdbe84[_0x1fc331('0xc76')][_0x1fc331('0x1c53')]({'fields':'id,name','sort':_0x1fc331('0x2aa'),'nolimit':_0x1fc331('0xe34')})[_0x1fc331('0x1af5')][_0x1fc331('0x17e7')](function(_0x14f8d1){const _0x5f0d07=_0x1fc331;_0x6c575f['contexts']=_0x14f8d1[_0x5f0d07('0x2319')]||[];})[_0x1fc331('0x17e7')](function(){const _0x5d6ae8=_0x1fc331;return _0xdbe84[_0x5d6ae8('0x383')][_0x5d6ae8('0x1c53')]({'userProfileId':_0x6c575f['currentUser']['userProfileId'],'sectionId':0x195})[_0x5d6ae8('0x1af5')];})[_0x1fc331('0x17e7')](function(_0x20e55a){const _0x565620=_0x1fc331,_0x1b9101=_0x20e55a&&_0x20e55a[_0x565620('0x2319')]?_0x20e55a['rows'][0x0]:null;if(!_0x1b9101)return _0xdbe84[_0x565620('0xc76')]['get']({'fields':_0x565620('0x12d2'),'sort':_0x565620('0x2aa'),'nolimit':'true','defaultEntry':0x1})[_0x565620('0x1af5')][_0x565620('0x17e7')](function(_0x5a10a9){const _0x584784=_0x565620;_0x6c575f[_0x584784('0xfb3')]=_0x5a10a9[_0x584784('0x2319')]||[];});else{if(!_0x1b9101[_0x565620('0x9e3')])return _0xdbe84['userProfileResource']['get']({'sectionId':_0x1b9101['id']})[_0x565620('0x1af5')][_0x565620('0x17e7')](function(_0x24dd43){const _0x1c5478=_0x565620,_0x202634=_0x49cbdd()[_0x1c5478('0x787')](_0x24dd43[_0x1c5478('0x2319')],function(_0x173a8a){const _0x2be9e6=_0x1c5478;return _0x49cbdd()[_0x2be9e6('0xe8e')](_0x6c575f[_0x2be9e6('0xfb3')],{'id':_0x173a8a[_0x2be9e6('0x5db')]});});let _0x54d077=null;_0x6c575f[_0x1c5478('0x166')]&&(_0x54d077=_0x49cbdd()[_0x1c5478('0xe8e')](_0x6c575f['contexts'],{'name':_0x6c575f[_0x1c5478('0x166')][_0x1c5478('0x17b3')]}));if(_0x54d077&&!_0x49cbdd()['some'](_0x202634,['id',_0x54d077['id']])){const _0x349207=_0x49cbdd()['find'](_0x6c575f['contexts'],{'id':_0x54d077['id']});_0x349207[_0x1c5478('0xe5c')]=![],_0x202634['push'](_0x349207);}_0x6c575f['contexts']=_0x202634;});}})[_0x1fc331('0x16df')](function(_0x5ca0bd){const _0x5ed010=_0x1fc331;_0x1fb213[_0x5ed010('0x1db9')]({'title':_0x5ca0bd['status']?_0x5ed010('0x14f7')+_0x5ca0bd[_0x5ed010('0x11c5')]+_0x5ed010('0x16e4')+_0x5ca0bd[_0x5ed010('0x1833')]:_0x5ed010('0x78'),'msg':_0x5ca0bd[_0x5ed010('0x1457')]?JSON[_0x5ed010('0x678')](_0x5ca0bd[_0x5ed010('0x1457')]):_0x5ca0bd[_0x5ed010('0x9b6')]()});});function _0x4be2ec(_0x524f60){const _0x1dbe2d=_0x1fc331;_0x5b9de8['go'](_0x1dbe2d('0x20ee'),{'id':_0x524f60['id'],'internalroute':_0x524f60,'crudPermissions':_0x6c575f['crudPermissions']});}function _0x30ba60(_0x49ef54,_0x54f24e){const _0x948743=_0x1fc331,_0x3cf2e1=_0x1b4c30[_0x948743('0x1121')]()[_0x948743('0x24d3')](_0x948743('0x5e1')+_0x49cbdd()[_0x948743('0x1c98')](_0x948743('0x166'))+'?')['htmlContent'](_0x948743('0xa53')+(_0x49ef54[_0x948743('0x2aa')]||_0x948743('0x166'))+_0x948743('0x1d23')+_0x948743('0xe9f'))['ariaLabel'](_0x948743('0x12a4'))['targetEvent'](_0x54f24e)['ok']('OK')[_0x948743('0x1d47')](_0x948743('0x28a0'));_0x1b4c30[_0x948743('0x28e2')](_0x3cf2e1)[_0x948743('0x17e7')](function(){_0x4afe1a(_0x49ef54);},function(){const _0xa350e2=_0x948743;console['log'](_0xa350e2('0x28a0'));});}let _0x301dac=!![],_0x458efd=0x1;_0x2d0834[_0x1fc331('0x620')]('vm.query.filter',function(_0x55926b,_0x426c53){const _0x3081e1=_0x1fc331;_0x301dac?_0x295b60(function(){_0x301dac=![];}):(!_0x426c53&&(_0x458efd=_0x6c575f[_0x3081e1('0x826')][_0x3081e1('0x115a')]),_0x55926b!==_0x426c53&&(_0x6c575f[_0x3081e1('0x826')][_0x3081e1('0x115a')]=0x1),!_0x55926b&&(_0x6c575f[_0x3081e1('0x826')]['page']=_0x458efd),_0x6c575f[_0x3081e1('0x1a67')]());});function _0x2216ed(_0x19b3ef){const _0x5717cd=_0x1fc331;_0x6c575f[_0x5717cd('0x280f')]=_0x19b3ef||{'count':0x0,'rows':[]};}function _0x35628a(){const _0x3e1aa7=_0x1fc331;_0x6c575f['query'][_0x3e1aa7('0xf19')]=(_0x6c575f[_0x3e1aa7('0x826')]['page']-0x1)*_0x6c575f[_0x3e1aa7('0x826')][_0x3e1aa7('0x193b')],_0x49b6ac['hasRole']('admin')?_0x6c575f[_0x3e1aa7('0x1691')]=_0xdbe84[_0x3e1aa7('0x16c2')][_0x3e1aa7('0x1c53')](_0x6c575f['query'],_0x2216ed)[_0x3e1aa7('0x1af5')]:(_0x6c575f[_0x3e1aa7('0x826')]['id']=_0x6c575f[_0x3e1aa7('0xdeb')]['id'],_0x6c575f['query'][_0x3e1aa7('0x16f8')]=_0x3e1aa7('0x1aa8'),_0x6c575f[_0x3e1aa7('0x1691')]=_0xdbe84[_0x3e1aa7('0xdeb')][_0x3e1aa7('0x2447')](_0x6c575f[_0x3e1aa7('0x826')],_0x2216ed)[_0x3e1aa7('0x1af5')]);}function _0x54f7c3(_0xf3204,_0x38fb91){const _0x5dcc25=_0x1fc331;_0x1b4c30['show']({'controller':'CreateOrEditInternalRouteDialogController','controllerAs':'vm','templateUrl':_0x2baa4f,'parent':angular['element'](_0x21a247['body']),'targetEvent':_0xf3204,'clickOutsideToClose':!![],'locals':{'internalroute':_0x38fb91,'internalroutes':_0x6c575f[_0x5dcc25('0x280f')]['rows'],'license':_0x6c575f[_0x5dcc25('0x1d11')],'setting':_0x6c575f['setting'],'crudPermissions':_0x6c575f[_0x5dcc25('0x103e')]}});}function _0x4afe1a(_0x494010){const _0xbd9040=_0x1fc331;_0xdbe84[_0xbd9040('0x16c2')][_0xbd9040('0x1da6')]({'id':_0x494010['id']})['$promise'][_0xbd9040('0x17e7')](function(){const _0x3cd518=_0xbd9040;_0x49cbdd()[_0x3cd518('0x5f3')](_0x6c575f[_0x3cd518('0x280f')]['rows'],{'id':_0x494010['id']}),_0x6c575f[_0x3cd518('0x280f')][_0x3cd518('0x335')]-=0x1,!_0x6c575f[_0x3cd518('0x280f')][_0x3cd518('0x2319')][_0x3cd518('0x1f73')]&&_0x6c575f[_0x3cd518('0x1a67')](),_0x1fb213[_0x3cd518('0x130d')]({'title':_0x49cbdd()['startCase'](_0x3cd518('0x1f2a'))+_0x3cd518('0x2673'),'msg':_0x494010[_0x3cd518('0x2aa')]?_0x494010[_0x3cd518('0x2aa')]+_0x3cd518('0x149f'):''});})['catch'](function(_0x193a71){const _0x35b86e=_0xbd9040;if(_0x193a71[_0x35b86e('0x1457')]&&_0x193a71[_0x35b86e('0x1457')][_0x35b86e('0x73e')]&&_0x193a71[_0x35b86e('0x1457')][_0x35b86e('0x73e')]['length']){_0x6c575f['errors']=_0x193a71[_0x35b86e('0x1457')]['errors']||[{'message':_0x193a71['toString'](),'type':_0x35b86e('0x258d')}];for(let _0x1a4470=0x0;_0x1a4470<_0x193a71[_0x35b86e('0x1457')][_0x35b86e('0x73e')]['length'];_0x1a4470++){_0x1fb213[_0x35b86e('0x1db9')]({'title':_0x193a71[_0x35b86e('0x1457')][_0x35b86e('0x73e')][_0x1a4470][_0x35b86e('0x412')],'msg':_0x193a71[_0x35b86e('0x1457')][_0x35b86e('0x73e')][_0x1a4470][_0x35b86e('0x1603')]});}}else _0x1fb213[_0x35b86e('0x1db9')]({'title':_0x193a71['status']?'API:'+_0x193a71[_0x35b86e('0x11c5')]+_0x35b86e('0x16e4')+_0x193a71[_0x35b86e('0x1833')]:_0x35b86e('0x258d'),'msg':_0x193a71[_0x35b86e('0x1457')]?JSON[_0x35b86e('0x678')](_0x193a71[_0x35b86e('0x1457')]['message']):_0x193a71[_0x35b86e('0x1603')]||_0x193a71[_0x35b86e('0x9b6')]()});});}function _0x4dfcbb(){const _0x5d4180=_0x1fc331,_0x406cb1=angular[_0x5d4180('0x14e5')](_0x6c575f[_0x5d4180('0x2120')]);return _0x6c575f['selectedInternalRoutes']=[],_0x406cb1;}function _0x557452(_0x23ef76){const _0xb882e3=_0x1fc331,_0x10f09f=_0x1b4c30[_0xb882e3('0x1121')]()['title'](_0xb882e3('0x1bf7'))['htmlContent'](_0xb882e3('0xa53')+_0x6c575f[_0xb882e3('0x2120')][_0xb882e3('0x1f73')]+_0xb882e3('0x145a')+_0xb882e3('0xe9f'))[_0xb882e3('0x2095')](_0xb882e3('0xf93'))[_0xb882e3('0x104f')](_0x23ef76)['ok']('OK')[_0xb882e3('0x1d47')](_0xb882e3('0x28a0'));_0x1b4c30['show'](_0x10f09f)['then'](function(){const _0x4e8ef4=_0xb882e3;_0x6c575f[_0x4e8ef4('0x2120')][_0x4e8ef4('0xccd')](function(_0x17fe7b){_0x4afe1a(_0x17fe7b);}),_0x6c575f[_0x4e8ef4('0x2120')]=[];});}function _0x26621c(){const _0x505354=_0x1fc331;_0x6c575f[_0x505354('0x2120')]=[];}function _0x4f983f(){const _0x2f25a1=_0x1fc331;_0x6c575f[_0x2f25a1('0x2120')]=_0x6c575f[_0x2f25a1('0x280f')][_0x2f25a1('0x2319')];}}const _0x6e3f5a=_0xfd4d00;_0xccebf7[_0x4376d8('0x1b9c')]=['$scope','$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x116c'),_0x4376d8('0xb0'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license','setting',_0x4376d8('0x103e')];function _0xccebf7(_0x35561c,_0x10f2b5,_0x1e08c6,_0x45b43c,_0x1d24c9,_0x2b7ab0,_0x59761f,_0xedda2,_0xc7f43d,_0x2068bf,_0x4b6222,_0x54f5cc,_0x1b160d,_0x403106){const _0x22ed29=_0x4376d8,_0x2be960=this;_0x2be960[_0x22ed29('0x197c')]=_0x4b6222[_0x22ed29('0x2831')](),_0x2be960['errors']=[],_0x2be960[_0x22ed29('0x1aeb')]=_0x1b160d,_0x2be960[_0x22ed29('0x1d11')]=_0x54f5cc,_0x2be960[_0x22ed29('0x103e')]=_0x403106,_0x2be960['hasModulePermissions']={},_0x2be960['passwordPattern']=_0x2be960[_0x22ed29('0x1aeb')]&&_0x2be960['setting'][_0x22ed29('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2be960[_0x22ed29('0x24d3')]=_0x22ed29('0x87f'),_0x2be960[_0x22ed29('0xb0')]=angular[_0x22ed29('0x14e5')](_0xc7f43d),_0x2be960[_0x22ed29('0x116c')]=_0xedda2,_0x2be960[_0x22ed29('0x5ff')]=![];!_0x2be960[_0x22ed29('0xb0')]&&(_0x2be960['musiconhold']={'mode':_0x22ed29('0xd')},_0x2be960[_0x22ed29('0x24d3')]=_0x22ed29('0x26f7'),_0x2be960[_0x22ed29('0x5ff')]=!![]);_0x2be960[_0x22ed29('0x2591')]=_0x5b0209,_0x2be960[_0x22ed29('0x19a9')]=_0xf26353,_0x2be960['deleteMusicOnHold']=_0x96180d,_0x2be960['getDateFromString']=_0xcbf81e,_0x2be960['closeDialog']=_0x4532be;function _0x5b0209(){const _0x54b8bf=_0x22ed29;_0x2be960[_0x54b8bf('0x73e')]=[],_0x2068bf['voiceMusicOnHold'][_0x54b8bf('0x2439')](_0x2be960['musiconhold'])['$promise'][_0x54b8bf('0x17e7')](function(_0x125bd0){const _0x295699=_0x54b8bf;_0x2be960[_0x295699('0x116c')][_0x295699('0x1893')](_0x125bd0[_0x295699('0x16b2')]()),_0x59761f[_0x295699('0x130d')]({'title':_0x295699('0xc66'),'msg':_0x2be960[_0x295699('0xb0')][_0x295699('0x2aa')]?_0x2be960[_0x295699('0xb0')][_0x295699('0x2aa')]+_0x295699('0x15a'):''}),_0x4532be(_0x125bd0);})[_0x54b8bf('0x16df')](function(_0x25fa6d){const _0x57d6fa=_0x54b8bf;if(_0x25fa6d['data']&&_0x25fa6d[_0x57d6fa('0x1457')][_0x57d6fa('0x73e')]&&_0x25fa6d[_0x57d6fa('0x1457')][_0x57d6fa('0x73e')]['length']){_0x2be960[_0x57d6fa('0x73e')]=_0x25fa6d[_0x57d6fa('0x1457')][_0x57d6fa('0x73e')]||[{'message':_0x25fa6d[_0x57d6fa('0x9b6')](),'type':'api.voiceMusicOnHold.save'}];for(let _0x4a9fde=0x0;_0x4a9fde<_0x25fa6d['data']['errors'][_0x57d6fa('0x1f73')];_0x4a9fde+=0x1){_0x59761f[_0x57d6fa('0x1db9')]({'title':_0x25fa6d[_0x57d6fa('0x1457')][_0x57d6fa('0x73e')][_0x4a9fde][_0x57d6fa('0x412')],'msg':_0x25fa6d['data']['errors'][_0x4a9fde][_0x57d6fa('0x1603')]});}}else _0x59761f[_0x57d6fa('0x1db9')]({'title':_0x25fa6d['status']?_0x57d6fa('0x14f7')+_0x25fa6d[_0x57d6fa('0x11c5')]+'\x20-\x20'+_0x25fa6d['statusText']:_0x57d6fa('0x27a3'),'msg':_0x25fa6d[_0x57d6fa('0x1457')]?JSON['stringify'](_0x25fa6d[_0x57d6fa('0x1457')][_0x57d6fa('0x1603')]):_0x25fa6d['toString']()});});}function _0xf26353(){const _0x5700c2=_0x22ed29;_0x2be960[_0x5700c2('0x73e')]=[],_0x2068bf[_0x5700c2('0xd20')][_0x5700c2('0x27ba')]({'id':_0x2be960[_0x5700c2('0xb0')]['id']},_0x2be960[_0x5700c2('0xb0')])[_0x5700c2('0x1af5')][_0x5700c2('0x17e7')](function(_0x316683){const _0x2875ad=_0x5700c2,_0x32278a=_0x49cbdd()[_0x2875ad('0xe8e')](_0x2be960[_0x2875ad('0x116c')],{'id':_0x316683['id']});_0x32278a&&_0x49cbdd()['merge'](_0x32278a,_0x49cbdd()['pick'](_0x316683['toJSON'](),_0x49cbdd()['keys'](_0x32278a))),_0x59761f[_0x2875ad('0x130d')]({'title':_0x2875ad('0x1bff'),'msg':_0x2be960['musiconhold'][_0x2875ad('0x2aa')]?_0x2be960[_0x2875ad('0xb0')]['name']+'\x20has\x20been\x20saved!':''}),_0x4532be(_0x316683);})[_0x5700c2('0x16df')](function(_0x52dfc3){const _0x52dc16=_0x5700c2;if(_0x52dfc3[_0x52dc16('0x1457')]&&_0x52dfc3['data'][_0x52dc16('0x73e')]&&_0x52dfc3[_0x52dc16('0x1457')][_0x52dc16('0x73e')]['length']){_0x2be960['errors']=_0x52dfc3['data'][_0x52dc16('0x73e')]||[{'message':_0x52dfc3['toString'](),'type':_0x52dc16('0x357')}];for(let _0x2d0a24=0x0;_0x2d0a24<_0x52dfc3[_0x52dc16('0x1457')][_0x52dc16('0x73e')][_0x52dc16('0x1f73')];_0x2d0a24++){_0x59761f['error']({'title':_0x52dfc3[_0x52dc16('0x1457')][_0x52dc16('0x73e')][_0x2d0a24][_0x52dc16('0x412')],'msg':_0x52dfc3[_0x52dc16('0x1457')]['errors'][_0x2d0a24]['message']});}}else _0x59761f[_0x52dc16('0x1db9')]({'title':_0x52dfc3['status']?_0x52dc16('0x14f7')+_0x52dfc3[_0x52dc16('0x11c5')]+'\x20-\x20'+_0x52dfc3[_0x52dc16('0x1833')]:_0x52dc16('0x357'),'msg':_0x52dfc3[_0x52dc16('0x1457')]?JSON[_0x52dc16('0x678')](_0x52dfc3[_0x52dc16('0x1457')][_0x52dc16('0x1603')]):_0x52dfc3['toString']()});});}function _0x96180d(_0x2df2fd){const _0x58ec32=_0x22ed29;_0x2be960[_0x58ec32('0x73e')]=[];const _0xec7d97=_0x45b43c[_0x58ec32('0x1121')]()[_0x58ec32('0x24d3')](_0x58ec32('0x530'))['content'](_0x58ec32('0x2012'))['ariaLabel'](_0x58ec32('0x2864'))['ok'](_0x58ec32('0x304'))[_0x58ec32('0x1d47')]('Cancel')['targetEvent'](_0x2df2fd);_0x45b43c['show'](_0xec7d97)[_0x58ec32('0x17e7')](function(){const _0x194f31=_0x58ec32;_0x2068bf[_0x194f31('0xd20')][_0x194f31('0x1da6')]({'id':_0x2be960[_0x194f31('0xb0')]['id']})[_0x194f31('0x1af5')][_0x194f31('0x17e7')](function(){const _0x2ee348=_0x194f31;_0x49cbdd()[_0x2ee348('0x5f3')](_0x2be960[_0x2ee348('0x116c')],{'id':_0x2be960['musiconhold']['id']}),_0x59761f[_0x2ee348('0x130d')]({'title':_0x2ee348('0x2756'),'msg':(_0x2be960['musiconhold'][_0x2ee348('0x2aa')]||'musiconhold')+_0x2ee348('0x149f')}),_0x4532be(_0x2be960[_0x2ee348('0xb0')]);})['catch'](function(_0x388290){const _0x35237e=_0x194f31;if(_0x388290[_0x35237e('0x1457')]&&_0x388290[_0x35237e('0x1457')][_0x35237e('0x73e')]&&_0x388290[_0x35237e('0x1457')][_0x35237e('0x73e')][_0x35237e('0x1f73')]){_0x2be960['errors']=_0x388290['data'][_0x35237e('0x73e')]||[{'message':_0x388290[_0x35237e('0x9b6')](),'type':_0x35237e('0x229e')}];for(let _0x2f4f92=0x0;_0x2f4f92<_0x388290[_0x35237e('0x1457')][_0x35237e('0x73e')]['length'];_0x2f4f92++){_0x59761f[_0x35237e('0x1db9')]({'title':_0x388290[_0x35237e('0x1457')][_0x35237e('0x73e')][_0x2f4f92][_0x35237e('0x412')],'msg':_0x388290[_0x35237e('0x1457')]['errors'][_0x2f4f92]['message']});}}else _0x59761f[_0x35237e('0x1db9')]({'title':_0x388290[_0x35237e('0x11c5')]?_0x35237e('0x14f7')+_0x388290[_0x35237e('0x11c5')]+'\x20-\x20'+_0x388290[_0x35237e('0x1833')]:'api.voiceMusicOnHold.delete','msg':_0x388290[_0x35237e('0x1457')]?JSON['stringify'](_0x388290[_0x35237e('0x1457')][_0x35237e('0x1603')]):_0x388290[_0x35237e('0x1603')]||_0x388290[_0x35237e('0x9b6')]()});});},function(){});}function _0xcbf81e(_0x56157b){return _0x56157b===null?undefined:new Date(_0x56157b);}function _0x4532be(_0x5702c1){const _0x1127c1=_0x22ed29;_0x45b43c[_0x1127c1('0x212a')](_0x5702c1);}}const _0x3058cb=_0xccebf7,_0x35e28b=_0x4cf2bc['p']+_0x4376d8('0x282a');_0x2a135d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),'$state','$q','$translate',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x2a135d(_0x4554f2,_0x342bb0,_0x563c49,_0x5e0d11,_0x374d4e,_0x16623b,_0x4900bf,_0x401cc6,_0x492a52,_0x26d1c5,_0x406d9e){const _0x1df1be=_0x4376d8,_0x23bef0=this;_0x23bef0[_0x1df1be('0x197c')]=_0x406d9e[_0x1df1be('0x2831')](),_0x23bef0[_0x1df1be('0xb0')]={},_0x23bef0[_0x1df1be('0x23d2')]={'count':0x0,'rows':[]},_0x23bef0[_0x1df1be('0x936')]=[],_0x23bef0[_0x1df1be('0x103e')],_0x23bef0[_0x1df1be('0x826')]={'fields':'createdAt,updatedAt,id,save_name,converted_format,audio','limit':0xa,'page':0x1},_0x23bef0[_0x1df1be('0x161d')]=_0x4b8fa4,_0x23bef0[_0x1df1be('0x1a20')]=_0x564676,_0x23bef0[_0x1df1be('0x10e7')]=_0x4657a7,_0x23bef0[_0x1df1be('0x130d')]=_0xcba703,_0x23bef0['getMusicOnHoldMohSounds']=_0x22fe8e,_0x23bef0['createOrEditMusicOnHoldMohSound']=_0x31ab58,_0x23bef0[_0x1df1be('0x24da')]=_0x3bcb1b,_0x23bef0[_0x1df1be('0x157a')]=_0x16fbaf,_0x23bef0[_0x1df1be('0x1678')]=_0x122add,_0x406d9e['hasRole'](_0x1df1be('0x20bf'))?_0x26d1c5['sound'][_0x1df1be('0x1c53')]({'fields':_0x1df1be('0x12d2'),'sort':_0x1df1be('0x2aa')})[_0x1df1be('0x1af5')][_0x1df1be('0x17e7')](function(_0x472da5){_0x23bef0['sounds']=_0x472da5['rows']||[];})[_0x1df1be('0x16df')](function(_0x24c3ed){const _0x3a36d7=_0x1df1be;_0x492a52[_0x3a36d7('0x1db9')]({'title':_0x24c3ed[_0x3a36d7('0x11c5')]?_0x3a36d7('0x14f7')+_0x24c3ed[_0x3a36d7('0x11c5')]+_0x3a36d7('0x16e4')+_0x24c3ed[_0x3a36d7('0x1833')]:_0x3a36d7('0x21c1'),'msg':_0x24c3ed['data']?JSON[_0x3a36d7('0x678')](_0x24c3ed[_0x3a36d7('0x1457')]):_0x24c3ed['toString']()});}):_0x26d1c5['sound'][_0x1df1be('0x1c53')]({'fields':_0x1df1be('0x12d2'),'sort':'name'})[_0x1df1be('0x1af5')][_0x1df1be('0x17e7')](function(_0x898042){_0x23bef0['sounds']=_0x898042['rows']||[];})[_0x1df1be('0x17e7')](function(){const _0x145399=_0x1df1be;return _0x26d1c5[_0x145399('0x383')]['get']({'userProfileId':_0x23bef0[_0x145399('0x197c')][_0x145399('0x1e76')],'sectionId':0x3ef})[_0x145399('0x1af5')];})[_0x1df1be('0x17e7')](function(_0x3ce568){const _0xe9d845=_0x1df1be,_0x1447f1=_0x3ce568&&_0x3ce568[_0xe9d845('0x2319')]?_0x3ce568[_0xe9d845('0x2319')][0x0]:null;if(!_0x1447f1){const _0x19e735=[];let _0x1ca5e5=null;_0x23bef0[_0xe9d845('0xb0')]&&(_0x1ca5e5=_0x49cbdd()[_0xe9d845('0xe8e')](_0x23bef0[_0xe9d845('0x27c4')],{'id':Number(_0x23bef0[_0xe9d845('0xb0')]['id'])}));for(let _0x1fc98a=0x0;_0x1fc98a<_0x23bef0[_0xe9d845('0x27c4')][_0xe9d845('0x1f73')];_0x1fc98a++){_0x1ca5e5&&_0x23bef0['sounds'][_0x1fc98a]['id']===_0x1ca5e5['id']&&(_0x23bef0['sounds'][_0x1fc98a][_0xe9d845('0xe5c')]=![],_0x19e735[_0xe9d845('0x269f')](_0x23bef0[_0xe9d845('0x27c4')][_0x1fc98a]));}_0x23bef0[_0xe9d845('0x27c4')]=_0x19e735;}else{if(!_0x1447f1[_0xe9d845('0x9e3')])return _0x26d1c5[_0xe9d845('0x78d')]['get']({'sectionId':_0x1447f1['id']})[_0xe9d845('0x1af5')]['then'](function(_0x5b1cd1){const _0xdd1fe7=_0xe9d845,_0x349671=_0x49cbdd()[_0xdd1fe7('0x787')](_0x5b1cd1[_0xdd1fe7('0x2319')],function(_0x2dbbbe){const _0x5f0bb6=_0xdd1fe7;return _0x49cbdd()[_0x5f0bb6('0xe8e')](_0x23bef0[_0x5f0bb6('0x27c4')],{'id':_0x2dbbbe['resourceId']});});let _0x439dda=null;_0x23bef0[_0xdd1fe7('0xb0')]&&(_0x439dda=_0x49cbdd()[_0xdd1fe7('0xe8e')](_0x23bef0[_0xdd1fe7('0x27c4')],{'id':Number(_0x23bef0[_0xdd1fe7('0xb0')]['id'])}));if(_0x439dda&&!_0x49cbdd()['some'](_0x349671,['id',_0x439dda['id']])){const _0x1337db=_0x49cbdd()[_0xdd1fe7('0xe8e')](_0x23bef0[_0xdd1fe7('0x27c4')],{'id':_0x439dda['id']});_0x1337db[_0xdd1fe7('0xe5c')]=![],_0x349671[_0xdd1fe7('0x269f')](_0x1337db);}_0x23bef0[_0xdd1fe7('0x27c4')]=_0x349671;});}})[_0x1df1be('0x16df')](function(_0x1cb10a){const _0x57a9dc=_0x1df1be;_0x492a52[_0x57a9dc('0x1db9')]({'title':_0x1cb10a['status']?'API:'+_0x1cb10a[_0x57a9dc('0x11c5')]+'\x20-\x20'+_0x1cb10a[_0x57a9dc('0x1833')]:_0x57a9dc('0x12a8'),'msg':_0x1cb10a[_0x57a9dc('0x1457')]?JSON[_0x57a9dc('0x678')](_0x1cb10a[_0x57a9dc('0x1457')]):_0x1cb10a[_0x57a9dc('0x9b6')]()});});function _0x4b8fa4(_0x308d52,_0x86faaa){const _0x56897d=_0x1df1be;_0x23bef0['musiconhold']=_0x308d52,_0x23bef0[_0x56897d('0x103e')]=typeof _0x86faaa!=='undefined'?_0x86faaa:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x23bef0[_0x56897d('0x826')]['VoiceMusicOnHoldId']=_0x23bef0[_0x56897d('0xb0')]['id'],_0x23bef0[_0x56897d('0x826')]['id']=_0x23bef0[_0x56897d('0xb0')]['id'],_0x22fe8e();}function _0x4657a7(_0x17f336,_0x67874a,_0x3da15a){const _0x855c7d=_0x1df1be;return _0x26d1c5[_0x855c7d('0x1f64')]['download']({'id':_0x17f336['id'],'exists':!![],'attachments':_0x3da15a})[_0x855c7d('0x1af5')]['then'](function(_0x4e43ec){const _0x14bcce=_0x855c7d,_0x2b0813=[_0x4e43ec[_0x14bcce('0x3ca')]];let _0x14187b=_0x14bcce('0x1f94')+_0x17f336['id'];const _0x5eb2fc=new Blob(_0x2b0813,{'type':_0x4e43ec['type']});_0x14187b=_0x17f336[_0x14bcce('0x1f54')]?_0x17f336[_0x14bcce('0x1138')]+'.'+_0x17f336[_0x14bcce('0x1f54')]:_0x17f336[_0x14bcce('0x1138')];const _0x925b01=window[_0x14bcce('0x2be')]['createElement']('a');_0x925b01[_0x14bcce('0x224')](_0x14bcce('0x448'),URL['createObjectURL'](_0x5eb2fc)),_0x925b01[_0x14bcce('0x224')](_0x14bcce('0x1244'),_0x14187b),document[_0x14bcce('0x13aa')][_0x14bcce('0x128c')](_0x925b01),_0x925b01[_0x14bcce('0x20d4')]();})[_0x855c7d('0x16df')](function(_0x2fd888){const _0x4b0474=_0x855c7d;if(_0x2fd888['data']&&_0x2fd888[_0x4b0474('0x1457')][_0x4b0474('0x73e')]&&_0x2fd888['data'][_0x4b0474('0x73e')][_0x4b0474('0x1f73')])for(let _0x37ef1f=0x0;_0x37ef1f<_0x2fd888[_0x4b0474('0x1457')][_0x4b0474('0x73e')][_0x4b0474('0x1f73')];_0x37ef1f+=0x1){_0x492a52['error']({'title':_0x2fd888[_0x4b0474('0x1457')][_0x4b0474('0x73e')][_0x37ef1f][_0x4b0474('0x412')],'msg':_0x2fd888['data']['errors'][_0x37ef1f][_0x4b0474('0x1603')]});}else _0x492a52[_0x4b0474('0x1db9')]({'title':_0x2fd888[_0x4b0474('0x11c5')]?_0x4b0474('0x14f7')+_0x2fd888[_0x4b0474('0x11c5')]+_0x4b0474('0x16e4')+_0x2fd888['statusText']:'api.voiceMusicOnHold.save','msg':_0x2fd888[_0x4b0474('0x1457')]?JSON[_0x4b0474('0x678')](_0x2fd888[_0x4b0474('0x1457')][_0x4b0474('0x1603')]):_0x2fd888[_0x4b0474('0x9b6')]()});});}function _0x564676(_0x2b6061,_0x148586){const _0x487ff5=_0x1df1be,_0x2dc075=_0x4900bf[_0x487ff5('0x1121')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20mohSound?')[_0x487ff5('0x211f')](_0x487ff5('0xa53')+(_0x2b6061[_0x487ff5('0x2aa')]||_0x2b6061['id']&&_0x49cbdd()['upperFirst'](_0x487ff5('0xcce'))+_0x2b6061['id']||_0x487ff5('0x1f94'))+''+_0x487ff5('0xe9f'))[_0x487ff5('0x2095')](_0x487ff5('0x17b5'))[_0x487ff5('0x104f')](_0x148586)['ok']('OK')['cancel'](_0x487ff5('0x28a0'));_0x4900bf[_0x487ff5('0x28e2')](_0x2dc075)[_0x487ff5('0x17e7')](function(){_0x16fbaf(_0x2b6061);},function(){const _0x332b90=_0x487ff5;console[_0x332b90('0x1d63')](_0x332b90('0x28a0'));});}function _0xcba703(_0x1f1f95){_0x23bef0['musiconholdMohSounds']=_0x1f1f95||{'count':0x0,'rows':[]};}function _0x22fe8e(){const _0x24e142=_0x1df1be;_0x23bef0['query'][_0x24e142('0xf19')]=(_0x23bef0[_0x24e142('0x826')][_0x24e142('0x115a')]-0x1)*_0x23bef0[_0x24e142('0x826')][_0x24e142('0x193b')],_0x23bef0[_0x24e142('0x1691')]=_0x26d1c5['voiceMusicOnHold'][_0x24e142('0x13ca')](_0x23bef0[_0x24e142('0x826')],_0xcba703)[_0x24e142('0x1af5')];}function _0x31ab58(_0x4e6705,_0x1ffc27){const _0x5e31d1=_0x1df1be;_0x4900bf[_0x5e31d1('0x28e2')]({'controller':_0x5e31d1('0x1a2b'),'controllerAs':'vm','templateUrl':_0x35e28b,'parent':angular[_0x5e31d1('0x1ce1')](_0x401cc6[_0x5e31d1('0x13aa')]),'targetEvent':_0x4e6705,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x23bef0[_0x5e31d1('0xb0')],'mohSound':_0x1ffc27,'mohSounds':_0x23bef0['musiconholdMohSounds']['rows'],'license':null,'setting':null,'crudPermissions':_0x23bef0[_0x5e31d1('0x103e')]}});}function _0x16fbaf(_0xd2b50b){const _0x4cb30f=_0x1df1be;_0x26d1c5[_0x4cb30f('0xd20')]['removeSound']({'id':_0x563c49['params']['id'],'id2':_0xd2b50b['id']})[_0x4cb30f('0x1af5')][_0x4cb30f('0x17e7')](function(){const _0xd5d520=_0x4cb30f;_0x49cbdd()[_0xd5d520('0x5f3')](_0x23bef0['musiconholdMohSounds'][_0xd5d520('0x2319')],{'id':_0xd2b50b['id']}),_0x23bef0[_0xd5d520('0x23d2')]['count']-=0x1,!_0x23bef0[_0xd5d520('0x23d2')][_0xd5d520('0x2319')]['length']&&_0x22fe8e(),_0x492a52[_0xd5d520('0x130d')]({'title':_0xd5d520('0x1e44'),'msg':_0xd2b50b['name']?_0xd2b50b['name']+_0xd5d520('0x149f'):''});})[_0x4cb30f('0x16df')](function(_0x3bb1ad){const _0x5d8a11=_0x4cb30f;if(_0x3bb1ad[_0x5d8a11('0x1457')]&&_0x3bb1ad[_0x5d8a11('0x1457')]['errors']&&_0x3bb1ad[_0x5d8a11('0x1457')]['errors'][_0x5d8a11('0x1f73')]){_0x23bef0[_0x5d8a11('0x73e')]=_0x3bb1ad[_0x5d8a11('0x1457')][_0x5d8a11('0x73e')]||[{'message':_0x3bb1ad[_0x5d8a11('0x9b6')](),'type':'SYSTEM:GETvoiceMusicOnHold'}];for(let _0x10d8da=0x0;_0x10d8da<_0x3bb1ad[_0x5d8a11('0x1457')][_0x5d8a11('0x73e')][_0x5d8a11('0x1f73')];_0x10d8da++){_0x492a52[_0x5d8a11('0x1db9')]({'title':_0x3bb1ad[_0x5d8a11('0x1457')][_0x5d8a11('0x73e')][_0x10d8da]['type'],'msg':_0x3bb1ad[_0x5d8a11('0x1457')][_0x5d8a11('0x73e')][_0x10d8da]['message']});}}else _0x492a52['error']({'title':_0x3bb1ad[_0x5d8a11('0x11c5')]?_0x5d8a11('0x14f7')+_0x3bb1ad['status']+'\x20-\x20'+_0x3bb1ad[_0x5d8a11('0x1833')]:_0x5d8a11('0x226c'),'msg':_0x3bb1ad['data']?JSON[_0x5d8a11('0x678')](_0x3bb1ad[_0x5d8a11('0x1457')]['message']):_0x3bb1ad[_0x5d8a11('0x1603')]||_0x3bb1ad[_0x5d8a11('0x9b6')]()});});}function _0x3bcb1b(){const _0x132800=_0x1df1be,_0x3eca6a=angular[_0x132800('0x14e5')](_0x23bef0[_0x132800('0x936')]);return _0x23bef0[_0x132800('0x936')]=[],_0x3eca6a;}function _0x122add(_0x1d623a){const _0x123d6f=_0x1df1be,_0x10174f=_0x4900bf[_0x123d6f('0x1121')]()[_0x123d6f('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mohSounds?')['htmlContent'](_0x123d6f('0xa53')+_0x23bef0[_0x123d6f('0x936')]['length']+_0x123d6f('0x145a')+_0x123d6f('0xe9f'))[_0x123d6f('0x2095')](_0x123d6f('0x246e'))[_0x123d6f('0x104f')](_0x1d623a)['ok']('OK')[_0x123d6f('0x1d47')]('CANCEL');_0x4900bf['show'](_0x10174f)[_0x123d6f('0x17e7')](function(){const _0x27be11=_0x123d6f;_0x23bef0[_0x27be11('0x936')]['forEach'](function(_0x5f3a97){_0x16fbaf(_0x5f3a97);}),_0x23bef0[_0x27be11('0x936')]=[];});}let _0x54911c=!![],_0x196054=0x1;_0x342bb0[_0x1df1be('0x620')]('vm_dc.query.filter',function(_0x409795,_0xd25ad1){const _0x4dd7c0=_0x1df1be;_0x54911c?_0x16623b(function(){_0x54911c=![];}):(!_0xd25ad1&&(_0x196054=_0x23bef0['query'][_0x4dd7c0('0x115a')]),_0x409795!==_0xd25ad1&&(_0x23bef0['query'][_0x4dd7c0('0x115a')]=0x1),!_0x409795&&(_0x23bef0['query']['page']=_0x196054),_0x22fe8e());});}const _0x6a899c=_0x2a135d;_0x5b2ef9[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),'mohSounds',_0x4376d8('0x1f94'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x5b2ef9(_0x260d26,_0x15d9b9,_0x34737b,_0x45f8ad,_0x1a7f41,_0x461e07,_0x342e35,_0x364e7d,_0x2bb0c5,_0x22afaa,_0x561c71,_0x330bed,_0x5a18f1,_0x573e62){const _0x374d98=_0x4376d8,_0x50d4b8=this;_0x50d4b8[_0x374d98('0x197c')]=_0x561c71[_0x374d98('0x2831')](),_0x50d4b8[_0x374d98('0x73e')]=[],_0x50d4b8[_0x374d98('0x1aeb')]=_0x5a18f1,_0x50d4b8[_0x374d98('0x1d11')]=_0x330bed,_0x50d4b8['crudPermissions']=_0x573e62,_0x50d4b8[_0x374d98('0x6ee')]={},_0x50d4b8['passwordPattern']=_0x50d4b8[_0x374d98('0x1aeb')]&&_0x50d4b8['setting'][_0x374d98('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x50d4b8[_0x374d98('0x24d3')]=_0x374d98('0x15db'),_0x50d4b8['mohSound']=angular['copy'](_0x2bb0c5),_0x50d4b8['mohSounds']=_0x364e7d,_0x50d4b8[_0x374d98('0x2680')]=![];!_0x50d4b8[_0x374d98('0x1f94')]&&(_0x50d4b8['mohSound']={},_0x50d4b8[_0x374d98('0x24d3')]=_0x374d98('0x13b8'),_0x50d4b8[_0x374d98('0x2680')]=!![]);_0x15d9b9['params']['id']&&(_0x50d4b8[_0x374d98('0x1f94')][_0x374d98('0xe1d')]=_0x15d9b9[_0x374d98('0x16fb')]['id']);_0x50d4b8[_0x374d98('0x23ee')]=_0x4f6012,_0x50d4b8[_0x374d98('0x1b1')]=_0x24d98b,_0x50d4b8[_0x374d98('0x2735')]=_0x33e1ca,_0x50d4b8['getDateFromString']=_0x485808,_0x50d4b8[_0x374d98('0x136e')]=_0x38b9a4,_0x561c71[_0x374d98('0x1ba2')](_0x374d98('0x20bf'))?_0x22afaa[_0x374d98('0x1f64')]['get']({'fields':_0x374d98('0x12d2'),'sort':_0x374d98('0x2aa')})[_0x374d98('0x1af5')][_0x374d98('0x17e7')](function(_0xb2f903){const _0x3586a5=_0x374d98;_0x50d4b8[_0x3586a5('0x27c4')]=_0xb2f903[_0x3586a5('0x2319')]||[];})[_0x374d98('0x16df')](function(_0x326578){const _0x374861=_0x374d98;_0x342e35[_0x374861('0x1db9')]({'title':_0x326578['status']?_0x374861('0x14f7')+_0x326578[_0x374861('0x11c5')]+_0x374861('0x16e4')+_0x326578[_0x374861('0x1833')]:_0x374861('0x21c1'),'msg':_0x326578[_0x374861('0x1457')]?JSON[_0x374861('0x678')](_0x326578[_0x374861('0x1457')]):_0x326578[_0x374861('0x9b6')]()});}):_0x22afaa[_0x374d98('0x1f64')][_0x374d98('0x1c53')]({'fields':_0x374d98('0x12d2'),'sort':_0x374d98('0x2aa')})[_0x374d98('0x1af5')][_0x374d98('0x17e7')](function(_0x1b2ed7){const _0x2cb4b9=_0x374d98;_0x50d4b8[_0x2cb4b9('0x27c4')]=_0x1b2ed7[_0x2cb4b9('0x2319')]||[];})[_0x374d98('0x17e7')](function(){const _0x327a1c=_0x374d98;return _0x22afaa[_0x327a1c('0x383')][_0x327a1c('0x1c53')]({'userProfileId':_0x50d4b8[_0x327a1c('0x197c')][_0x327a1c('0x1e76')],'sectionId':0x3ef})[_0x327a1c('0x1af5')];})[_0x374d98('0x17e7')](function(_0x5250ec){const _0xc2fbb7=_0x374d98,_0x46f493=_0x5250ec&&_0x5250ec[_0xc2fbb7('0x2319')]?_0x5250ec[_0xc2fbb7('0x2319')][0x0]:null;if(!_0x46f493){const _0x4dfe7e=[];let _0x1b4d45=null;_0x50d4b8['mohSound']&&(_0x1b4d45=_0x49cbdd()[_0xc2fbb7('0xe8e')](_0x50d4b8[_0xc2fbb7('0x27c4')],{'id':Number(_0x50d4b8[_0xc2fbb7('0x1f94')]['id'])}));for(let _0xadca2b=0x0;_0xadca2b<_0x50d4b8[_0xc2fbb7('0x27c4')][_0xc2fbb7('0x1f73')];_0xadca2b++){_0x1b4d45&&_0x50d4b8[_0xc2fbb7('0x27c4')][_0xadca2b]['id']===_0x1b4d45['id']&&(_0x50d4b8[_0xc2fbb7('0x27c4')][_0xadca2b][_0xc2fbb7('0xe5c')]=![],_0x4dfe7e[_0xc2fbb7('0x269f')](_0x50d4b8[_0xc2fbb7('0x27c4')][_0xadca2b]));}_0x50d4b8[_0xc2fbb7('0x27c4')]=_0x4dfe7e;}else{if(!_0x46f493[_0xc2fbb7('0x9e3')])return _0x22afaa[_0xc2fbb7('0x78d')]['get']({'sectionId':_0x46f493['id']})[_0xc2fbb7('0x1af5')][_0xc2fbb7('0x17e7')](function(_0x241ef1){const _0x14696f=_0xc2fbb7,_0x17bd5d=_0x49cbdd()['map'](_0x241ef1[_0x14696f('0x2319')],function(_0x4fb34a){const _0xff31c6=_0x14696f;return _0x49cbdd()[_0xff31c6('0xe8e')](_0x50d4b8[_0xff31c6('0x27c4')],{'id':_0x4fb34a['resourceId']});});let _0x38d1c2=null;_0x50d4b8[_0x14696f('0x1f94')]&&(_0x38d1c2=_0x49cbdd()['find'](_0x50d4b8['sounds'],{'id':Number(_0x50d4b8[_0x14696f('0x1f94')]['id'])}));if(_0x38d1c2&&!_0x49cbdd()['some'](_0x17bd5d,['id',_0x38d1c2['id']])){const _0x4dc75d=_0x49cbdd()['find'](_0x50d4b8[_0x14696f('0x27c4')],{'id':_0x38d1c2['id']});_0x4dc75d[_0x14696f('0xe5c')]=![],_0x17bd5d[_0x14696f('0x269f')](_0x4dc75d);}_0x50d4b8[_0x14696f('0x27c4')]=_0x17bd5d;});}})[_0x374d98('0x16df')](function(_0x9d11a1){const _0x447fea=_0x374d98;_0x342e35['error']({'title':_0x9d11a1[_0x447fea('0x11c5')]?_0x447fea('0x14f7')+_0x9d11a1[_0x447fea('0x11c5')]+_0x447fea('0x16e4')+_0x9d11a1[_0x447fea('0x1833')]:_0x447fea('0x12a8'),'msg':_0x9d11a1[_0x447fea('0x1457')]?JSON[_0x447fea('0x678')](_0x9d11a1[_0x447fea('0x1457')]):_0x9d11a1[_0x447fea('0x9b6')]()});});function _0x4f6012(){const _0x4b5e17=_0x374d98;_0x50d4b8[_0x4b5e17('0x73e')]=[],_0x22afaa[_0x4b5e17('0xd20')][_0x4b5e17('0x11b9')]({'id':_0x15d9b9[_0x4b5e17('0x16fb')]['id']},_0x50d4b8['mohSound'])[_0x4b5e17('0x1af5')]['then'](function(_0x591dfa){const _0x2b25d9=_0x4b5e17;_0x50d4b8[_0x2b25d9('0x231e')]['unshift'](_0x591dfa['toJSON']()),_0x342e35['success']({'title':'MohSound\x20properly\x20created','msg':_0x50d4b8['mohSound'][_0x2b25d9('0x2aa')]?_0x50d4b8['mohSound']['name']+_0x2b25d9('0x15a'):''}),_0x38b9a4(_0x591dfa);})[_0x4b5e17('0x16df')](function(_0x3da593){const _0x16a90b=_0x4b5e17;if(_0x3da593[_0x16a90b('0x1457')]&&_0x3da593[_0x16a90b('0x1457')][_0x16a90b('0x73e')]&&_0x3da593['data'][_0x16a90b('0x73e')][_0x16a90b('0x1f73')]){_0x50d4b8[_0x16a90b('0x73e')]=_0x3da593[_0x16a90b('0x1457')][_0x16a90b('0x73e')]||[{'message':_0x3da593['toString'](),'type':_0x16a90b('0x27a3')}];for(let _0x449568=0x0;_0x449568<_0x3da593[_0x16a90b('0x1457')]['errors'][_0x16a90b('0x1f73')];_0x449568+=0x1){_0x342e35[_0x16a90b('0x1db9')]({'title':_0x3da593['data'][_0x16a90b('0x73e')][_0x449568]['type'],'msg':_0x3da593[_0x16a90b('0x1457')][_0x16a90b('0x73e')][_0x449568][_0x16a90b('0x1603')]});}}else _0x342e35[_0x16a90b('0x1db9')]({'title':_0x3da593[_0x16a90b('0x11c5')]?_0x16a90b('0x14f7')+_0x3da593['status']+_0x16a90b('0x16e4')+_0x3da593[_0x16a90b('0x1833')]:_0x16a90b('0x27a3'),'msg':_0x3da593[_0x16a90b('0x1457')]?JSON[_0x16a90b('0x678')](_0x3da593['data'][_0x16a90b('0x1603')]):_0x3da593[_0x16a90b('0x9b6')]()});});}function _0x24d98b(){const _0x468d9b=_0x374d98;_0x50d4b8['errors']=[],_0x22afaa['voiceMusicOnHold']['update']({'id':_0x50d4b8[_0x468d9b('0x1f94')]['id']},_0x50d4b8[_0x468d9b('0x1f94')])[_0x468d9b('0x1af5')][_0x468d9b('0x17e7')](function(_0x3fabeb){const _0x28f715=_0x468d9b,_0x318dd9=_0x49cbdd()['find'](_0x50d4b8[_0x28f715('0x231e')],{'id':_0x3fabeb['id']});_0x318dd9&&_0x49cbdd()['merge'](_0x318dd9,_0x49cbdd()[_0x28f715('0x230a')](_0x3fabeb[_0x28f715('0x16b2')](),_0x49cbdd()['keys'](_0x318dd9))),_0x342e35[_0x28f715('0x130d')]({'title':_0x28f715('0x1707'),'msg':_0x50d4b8[_0x28f715('0x1f94')][_0x28f715('0x2aa')]?_0x50d4b8[_0x28f715('0x1f94')]['name']+_0x28f715('0x15ca'):''}),_0x38b9a4(_0x3fabeb);})[_0x468d9b('0x16df')](function(_0x5a76ac){const _0x5bf8bd=_0x468d9b;if(_0x5a76ac[_0x5bf8bd('0x1457')]&&_0x5a76ac[_0x5bf8bd('0x1457')][_0x5bf8bd('0x73e')]&&_0x5a76ac[_0x5bf8bd('0x1457')][_0x5bf8bd('0x73e')][_0x5bf8bd('0x1f73')]){_0x50d4b8[_0x5bf8bd('0x73e')]=_0x5a76ac[_0x5bf8bd('0x1457')][_0x5bf8bd('0x73e')]||[{'message':_0x5a76ac[_0x5bf8bd('0x9b6')](),'type':_0x5bf8bd('0x357')}];for(let _0x3006a7=0x0;_0x3006a7<_0x5a76ac['data']['errors'][_0x5bf8bd('0x1f73')];_0x3006a7++){_0x342e35['error']({'title':_0x5a76ac[_0x5bf8bd('0x1457')]['errors'][_0x3006a7][_0x5bf8bd('0x412')],'msg':_0x5a76ac[_0x5bf8bd('0x1457')][_0x5bf8bd('0x73e')][_0x3006a7][_0x5bf8bd('0x1603')]});}}else _0x342e35['error']({'title':_0x5a76ac[_0x5bf8bd('0x11c5')]?_0x5bf8bd('0x14f7')+_0x5a76ac[_0x5bf8bd('0x11c5')]+'\x20-\x20'+_0x5a76ac[_0x5bf8bd('0x1833')]:_0x5bf8bd('0x357'),'msg':_0x5a76ac[_0x5bf8bd('0x1457')]?JSON[_0x5bf8bd('0x678')](_0x5a76ac['data'][_0x5bf8bd('0x1603')]):_0x5a76ac['toString']()});});}function _0x33e1ca(_0x1c76a2){const _0x55bacc=_0x374d98;_0x50d4b8[_0x55bacc('0x73e')]=[];const _0x42d8d6=_0x45f8ad[_0x55bacc('0x1121')]()[_0x55bacc('0x24d3')](_0x55bacc('0x530'))['content'](_0x55bacc('0x27bb'))[_0x55bacc('0x2095')](_0x55bacc('0x2548'))['ok']('Delete')['cancel']('Cancel')[_0x55bacc('0x104f')](_0x1c76a2);_0x45f8ad[_0x55bacc('0x28e2')](_0x42d8d6)[_0x55bacc('0x17e7')](function(){const _0x3b9fb6=_0x55bacc;_0x22afaa[_0x3b9fb6('0xd20')][_0x3b9fb6('0x1da6')]({'id':_0x50d4b8[_0x3b9fb6('0x1f94')]['id']})[_0x3b9fb6('0x1af5')][_0x3b9fb6('0x17e7')](function(){const _0x3facd9=_0x3b9fb6;_0x49cbdd()[_0x3facd9('0x5f3')](_0x50d4b8[_0x3facd9('0x231e')],{'id':_0x50d4b8[_0x3facd9('0x1f94')]['id']}),_0x342e35['success']({'title':'MohSound\x20properly\x20deleted!','msg':(_0x50d4b8[_0x3facd9('0x1f94')]['name']||'mohSound')+_0x3facd9('0x149f')}),_0x38b9a4(_0x50d4b8[_0x3facd9('0x1f94')]);})[_0x3b9fb6('0x16df')](function(_0x437943){const _0x47e42c=_0x3b9fb6;if(_0x437943[_0x47e42c('0x1457')]&&_0x437943['data'][_0x47e42c('0x73e')]&&_0x437943['data']['errors'][_0x47e42c('0x1f73')]){_0x50d4b8[_0x47e42c('0x73e')]=_0x437943['data'][_0x47e42c('0x73e')]||[{'message':_0x437943[_0x47e42c('0x9b6')](),'type':_0x47e42c('0x229e')}];for(let _0x176b68=0x0;_0x176b68<_0x437943[_0x47e42c('0x1457')]['errors']['length'];_0x176b68++){_0x342e35['error']({'title':_0x437943[_0x47e42c('0x1457')]['errors'][_0x176b68][_0x47e42c('0x412')],'msg':_0x437943[_0x47e42c('0x1457')][_0x47e42c('0x73e')][_0x176b68][_0x47e42c('0x1603')]});}}else _0x342e35[_0x47e42c('0x1db9')]({'title':_0x437943[_0x47e42c('0x11c5')]?'API:'+_0x437943[_0x47e42c('0x11c5')]+_0x47e42c('0x16e4')+_0x437943[_0x47e42c('0x1833')]:_0x47e42c('0x229e'),'msg':_0x437943[_0x47e42c('0x1457')]?JSON[_0x47e42c('0x678')](_0x437943[_0x47e42c('0x1457')][_0x47e42c('0x1603')]):_0x437943[_0x47e42c('0x1603')]||_0x437943[_0x47e42c('0x9b6')]()});});},function(){});}function _0x485808(_0x371c94){return _0x371c94===null?undefined:new Date(_0x371c94);}function _0x38b9a4(_0x16def1){_0x45f8ad['hide'](_0x16def1);}}const _0x1e26ff=_0x5b2ef9;_0x144450[_0x4376d8('0x1b9c')]=['$state','$location','$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth','musiconhold',_0x4376d8('0x383')];function _0x144450(_0x2ddfc1,_0x36c98f,_0x2ca97d,_0x493eb5,_0x23f458,_0x42ad9c,_0x3ad61f,_0x1fefd8,_0x1f8225,_0x37529c,_0x1222b1,_0x36c33b){const _0x33c877=_0x4376d8,_0xf62c26=this;_0xf62c26['currentUser']=_0x37529c['getCurrentUser'](),_0xf62c26[_0x33c877('0x1d11')]=_0x42ad9c,_0xf62c26['setting']=_0x3ad61f,_0xf62c26['passwordPattern']=_0xf62c26[_0x33c877('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xf62c26[_0x33c877('0xaed')]=_0x36c98f[_0x33c877('0x14fe')]()+'://'+_0x36c98f[_0x33c877('0x108')](),_0xf62c26[_0x33c877('0xb0')]=_0x1222b1||_0x2ddfc1[_0x33c877('0x16fb')][_0x33c877('0xb0')]||{},_0xf62c26[_0x33c877('0x383')]=_0x36c33b&&_0x36c33b['count']==0x1?_0x36c33b[_0x33c877('0x2319')][0x0]:null,_0xf62c26[_0x33c877('0x103e')]=_0x37529c[_0x33c877('0x17a9')](_0xf62c26[_0x33c877('0x383')]?_0xf62c26[_0x33c877('0x383')][_0x33c877('0x103e')]:null),_0xf62c26[_0x33c877('0x6ee')]={},_0xf62c26[_0x33c877('0xde7')]=_0x2ddfc1[_0x33c877('0x16fb')]['tab']||0x0,_0xf62c26['alert']=_0x1f8225[_0x33c877('0x1178')],_0xf62c26['gotoMusicOnHolds']=_0x582566,_0xf62c26[_0x33c877('0x19a9')]=_0x31fb9a;function _0x582566(){const _0x53501e=_0x33c877;_0x2ddfc1['go'](_0x53501e('0x401'),{},{'reload':_0x53501e('0x401')});}function _0x31fb9a(){const _0x34dbf8=_0x33c877;_0x1fefd8[_0x34dbf8('0xd20')][_0x34dbf8('0x27ba')]({'id':_0xf62c26[_0x34dbf8('0xb0')]['id']},_0xf62c26[_0x34dbf8('0xb0')])['$promise'][_0x34dbf8('0x17e7')](function(){const _0x29bc6a=_0x34dbf8;_0x1f8225[_0x29bc6a('0x130d')]({'title':_0x29bc6a('0xdc4'),'msg':_0xf62c26['musiconhold'][_0x29bc6a('0x2aa')]?_0xf62c26['musiconhold'][_0x29bc6a('0x2aa')]+_0x29bc6a('0x12b0'):''});})[_0x34dbf8('0x16df')](function(_0x3802cc){const _0x3052e3=_0x34dbf8;_0x1f8225['error']({'title':_0x3802cc[_0x3052e3('0x11c5')]?_0x3052e3('0x14f7')+_0x3802cc[_0x3052e3('0x11c5')]+_0x3052e3('0x16e4')+_0x3802cc['statusText']:_0x3052e3('0x226c'),'msg':_0x3802cc['data']?JSON[_0x3052e3('0x678')](_0x3802cc[_0x3052e3('0x1457')]):_0x3802cc[_0x3052e3('0x9b6')]()});});}}const _0x5f5045=_0x144450,_0x4a76c5=_0x4cf2bc['p']+_0x4376d8('0x1d89');_0x437da0[_0x4376d8('0x1b9c')]=['$scope','$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x116c'),'userProfile','userProfileSection','api',_0x4376d8('0x1606'),'toasty','Auth','license',_0x4376d8('0x1aeb')];function _0x437da0(_0x1a744b,_0x368a53,_0x526a15,_0x935222,_0x1cad94,_0x5d39dc,_0xa215c6,_0x23f307,_0x1a91b1,_0x39ab6f,_0xb277c,_0x4b9c08,_0x162bb3,_0x4db8ff,_0xbd6887,_0x1d4f43,_0x261daa){const _0x373235=_0x4376d8,_0x189bb7=this;_0x189bb7[_0x373235('0x1d11')]=_0x1d4f43,_0x189bb7[_0x373235('0x1aeb')]=_0x261daa,_0x189bb7[_0x373235('0x197c')]=_0xbd6887[_0x373235('0x2831')](),_0x189bb7[_0x373235('0x116c')]=_0x1a91b1||{'count':0x0,'rows':[]},_0x189bb7[_0x373235('0xdeb')]=_0x39ab6f,_0x189bb7[_0x373235('0x383')]=_0xb277c&&_0xb277c[_0x373235('0x335')]==0x1?_0xb277c['rows'][0x0]:null,_0x189bb7[_0x373235('0x103e')]=_0xbd6887['parseCrudPermissions'](_0x189bb7[_0x373235('0x383')]?_0x189bb7[_0x373235('0x383')][_0x373235('0x103e')]:null),_0x189bb7['table']='musiconholds',_0x189bb7[_0x373235('0x26a1')]='',_0x189bb7[_0x373235('0x24e1')]=null,_0x189bb7[_0x373235('0x153d')]=[],_0x189bb7[_0x373235('0x826')]={'fields':_0x373235('0xe0a'),'defaultEntry':'false','limit':0xa,'page':0x1},_0x189bb7[_0x373235('0x1b66')]=_0x49cbdd()['keyBy']([{'option':_0x373235('0x931'),'value':_0x373235('0x3b4')},{'option':_0x373235('0x163f'),'value':_0x373235('0x18c9')}],function(_0x526564){const _0x154150=_0x373235;return _0x49cbdd()[_0x154150('0x737')](_0x526564[_0x154150('0x175b')],new RegExp('\x27','g'),'');}),_0x189bb7[_0x373235('0x247d')]=_0x49cbdd()[_0x373235('0x8de')]([{'option':_0x373235('0x1cbf'),'value':_0x373235('0xd29')},{'option':_0x373235('0x4f3'),'value':_0x373235('0x13a9')}],function(_0x4ab760){const _0x274185=_0x373235;return _0x49cbdd()[_0x274185('0x737')](_0x4ab760[_0x274185('0x175b')],new RegExp('\x27','g'),'');}),_0x189bb7['editstate']=_0x5cbf20,_0x189bb7[_0x373235('0xbf4')]=_0x1c0f1e,_0x189bb7[_0x373235('0x130d')]=_0x3a65a6,_0x189bb7['getMusicOnHolds']=_0x4299d2,_0x189bb7[_0x373235('0x1ed9')]=_0x208309,_0x189bb7['deleteMusicOnHold']=_0x2584fc,_0x189bb7[_0x373235('0xd2a')]=_0x58fff8,_0x189bb7[_0x373235('0x1d5e')]=_0x56236c,_0x189bb7[_0x373235('0xa62')]=_0x24bd93,_0x189bb7[_0x373235('0x8ef')]=_0x779655;function _0x5cbf20(_0x2a70e4){const _0x27f191=_0x373235;_0x526a15['go'](_0x27f191('0xcb7'),{'id':_0x2a70e4['id'],'musiconhold':_0x2a70e4,'crudPermissions':_0x189bb7['crudPermissions']});}function _0x1c0f1e(_0x46a586,_0xcca5ad){const _0xa33464=_0x373235,_0x336669=_0x1cad94['confirm']()['title'](_0xa33464('0x5e1')+_0x49cbdd()['startCase'](_0xa33464('0xb0'))+'?')[_0xa33464('0x211f')](_0xa33464('0xa53')+(_0x46a586[_0xa33464('0x2aa')]||_0xa33464('0xb0'))+_0xa33464('0x1d23')+'\x20will\x20be\x20deleted.')[_0xa33464('0x2095')](_0xa33464('0x1645'))['targetEvent'](_0xcca5ad)['ok']('OK')[_0xa33464('0x1d47')](_0xa33464('0x28a0'));_0x1cad94[_0xa33464('0x28e2')](_0x336669)[_0xa33464('0x17e7')](function(){_0x2584fc(_0x46a586);},function(){const _0x4b10cd=_0xa33464;console[_0x4b10cd('0x1d63')]('CANCEL');});}let _0x4607c9=!![],_0x4b211d=0x1;_0x1a744b[_0x373235('0x620')](_0x373235('0x3ed'),function(_0x1030d7,_0x498b7e){const _0x1c31a1=_0x373235;_0x4607c9?_0xa215c6(function(){_0x4607c9=![];}):(!_0x498b7e&&(_0x4b211d=_0x189bb7[_0x1c31a1('0x826')][_0x1c31a1('0x115a')]),_0x1030d7!==_0x498b7e&&(_0x189bb7[_0x1c31a1('0x826')][_0x1c31a1('0x115a')]=0x1),!_0x1030d7&&(_0x189bb7['query'][_0x1c31a1('0x115a')]=_0x4b211d),_0x189bb7[_0x1c31a1('0xb33')]());});function _0x3a65a6(_0x53c580){_0x189bb7['musiconholds']=_0x53c580||{'count':0x0,'rows':[]};}function _0x4299d2(){const _0x2189a7=_0x373235;_0x189bb7[_0x2189a7('0x826')][_0x2189a7('0xf19')]=(_0x189bb7[_0x2189a7('0x826')][_0x2189a7('0x115a')]-0x1)*_0x189bb7[_0x2189a7('0x826')][_0x2189a7('0x193b')],_0xbd6887[_0x2189a7('0x1ba2')](_0x2189a7('0x20bf'))?_0x189bb7[_0x2189a7('0x1691')]=_0x4b9c08[_0x2189a7('0xd20')][_0x2189a7('0x1c53')](_0x189bb7[_0x2189a7('0x826')],_0x3a65a6)[_0x2189a7('0x1af5')]:(_0x189bb7[_0x2189a7('0x826')]['id']=_0x189bb7[_0x2189a7('0xdeb')]['id'],_0x189bb7[_0x2189a7('0x826')][_0x2189a7('0x16f8')]=_0x2189a7('0x14d6'),_0x189bb7[_0x2189a7('0x1691')]=_0x4b9c08[_0x2189a7('0xdeb')][_0x2189a7('0x2447')](_0x189bb7['query'],_0x3a65a6)[_0x2189a7('0x1af5')]);}function _0x208309(_0x1a387a,_0x573820){const _0x1c708f=_0x373235;_0x1cad94[_0x1c708f('0x28e2')]({'controller':_0x1c708f('0x25a8'),'controllerAs':'vm','templateUrl':_0x4a76c5,'parent':angular[_0x1c708f('0x1ce1')](_0x5d39dc[_0x1c708f('0x13aa')]),'targetEvent':_0x1a387a,'clickOutsideToClose':!![],'locals':{'musiconhold':_0x573820,'musiconholds':_0x189bb7[_0x1c708f('0x116c')][_0x1c708f('0x2319')],'license':_0x189bb7['license'],'setting':_0x189bb7[_0x1c708f('0x1aeb')],'crudPermissions':_0x189bb7[_0x1c708f('0x103e')]}});}function _0x2584fc(_0x2dc6ac){const _0x1a4cfe=_0x373235;_0x4b9c08[_0x1a4cfe('0xd20')][_0x1a4cfe('0x1da6')]({'id':_0x2dc6ac['id']})[_0x1a4cfe('0x1af5')][_0x1a4cfe('0x17e7')](function(){const _0x886299=_0x1a4cfe;_0x49cbdd()[_0x886299('0x5f3')](_0x189bb7[_0x886299('0x116c')][_0x886299('0x2319')],{'id':_0x2dc6ac['id']}),_0x189bb7[_0x886299('0x116c')]['count']-=0x1,!_0x189bb7[_0x886299('0x116c')][_0x886299('0x2319')][_0x886299('0x1f73')]&&_0x189bb7[_0x886299('0xb33')](),_0x4db8ff[_0x886299('0x130d')]({'title':_0x49cbdd()[_0x886299('0x1c98')]('MusicOnHold')+'\x20deleted!','msg':_0x2dc6ac['name']?_0x2dc6ac['name']+_0x886299('0x149f'):''});})[_0x1a4cfe('0x16df')](function(_0x42a1ff){const _0x21644f=_0x1a4cfe;if(_0x42a1ff['data']&&_0x42a1ff[_0x21644f('0x1457')][_0x21644f('0x73e')]&&_0x42a1ff['data']['errors']['length']){_0x189bb7[_0x21644f('0x73e')]=_0x42a1ff[_0x21644f('0x1457')][_0x21644f('0x73e')]||[{'message':_0x42a1ff[_0x21644f('0x9b6')](),'type':_0x21644f('0x19a0')}];for(let _0x52c8f6=0x0;_0x52c8f6<_0x42a1ff['data']['errors']['length'];_0x52c8f6++){_0x4db8ff[_0x21644f('0x1db9')]({'title':_0x42a1ff[_0x21644f('0x1457')]['errors'][_0x52c8f6]['type'],'msg':_0x42a1ff[_0x21644f('0x1457')][_0x21644f('0x73e')][_0x52c8f6][_0x21644f('0x1603')]});}}else _0x4db8ff[_0x21644f('0x1db9')]({'title':_0x42a1ff[_0x21644f('0x11c5')]?'API:'+_0x42a1ff[_0x21644f('0x11c5')]+_0x21644f('0x16e4')+_0x42a1ff['statusText']:_0x21644f('0x19a0'),'msg':_0x42a1ff['data']?JSON[_0x21644f('0x678')](_0x42a1ff[_0x21644f('0x1457')][_0x21644f('0x1603')]):_0x42a1ff[_0x21644f('0x1603')]||_0x42a1ff['toString']()});});}function _0x58fff8(){const _0x781a30=_0x373235,_0x4b7aaf=angular[_0x781a30('0x14e5')](_0x189bb7[_0x781a30('0x153d')]);return _0x189bb7[_0x781a30('0x153d')]=[],_0x4b7aaf;}function _0x56236c(_0x47f162){const _0x327488=_0x373235,_0x4f7d23=_0x1cad94[_0x327488('0x1121')]()[_0x327488('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20musiconholds?')['htmlContent'](_0x327488('0xa53')+_0x189bb7[_0x327488('0x153d')][_0x327488('0x1f73')]+_0x327488('0x145a')+_0x327488('0xe9f'))['ariaLabel'](_0x327488('0x14e0'))[_0x327488('0x104f')](_0x47f162)['ok']('OK')['cancel'](_0x327488('0x28a0'));_0x1cad94[_0x327488('0x28e2')](_0x4f7d23)[_0x327488('0x17e7')](function(){const _0x4a6645=_0x327488;_0x189bb7[_0x4a6645('0x153d')][_0x4a6645('0xccd')](function(_0x54b9cf){_0x2584fc(_0x54b9cf);}),_0x189bb7[_0x4a6645('0x153d')]=[];});}function _0x24bd93(){const _0x6ed70f=_0x373235;_0x189bb7[_0x6ed70f('0x153d')]=[];}function _0x779655(){const _0x1544d1=_0x373235;_0x189bb7['selectedMusicOnHolds']=_0x189bb7[_0x1544d1('0x116c')][_0x1544d1('0x2319')];}}const _0x4ffd12=_0x437da0;_0x2dbb2f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),'outboundroutes',_0x4376d8('0x1937'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x2dbb2f(_0x9b00bf,_0x1b7f03,_0x5bc399,_0x50a623,_0x5c5157,_0x314389,_0x4e6f55,_0x475a77,_0xdf1b35,_0x2d3673,_0x46145b,_0x4256f0,_0x5bbc05,_0x1c73be){const _0x13ec17=_0x4376d8,_0x2ef8a1=this;_0x2ef8a1[_0x13ec17('0x197c')]=_0x46145b[_0x13ec17('0x2831')](),_0x2ef8a1[_0x13ec17('0x73e')]=[],_0x2ef8a1[_0x13ec17('0x1aeb')]=_0x5bbc05,_0x2ef8a1[_0x13ec17('0x1d11')]=_0x4256f0,_0x2ef8a1['crudPermissions']=_0x1c73be,_0x2ef8a1[_0x13ec17('0x6ee')]={},_0x2ef8a1['passwordPattern']=_0x2ef8a1[_0x13ec17('0x1aeb')]&&_0x2ef8a1[_0x13ec17('0x1aeb')][_0x13ec17('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2ef8a1['title']='VOICE.EDIT_OUTBOUNDROUTE',_0x2ef8a1[_0x13ec17('0x1937')]=angular['copy'](_0xdf1b35),_0x2ef8a1[_0x13ec17('0x1167')]=_0x475a77,_0x2ef8a1[_0x13ec17('0x145c')]=![],_0x2ef8a1[_0x13ec17('0x24c4')]={'count':0x0,'rows':[]},_0x2ef8a1['apps']=_0x49cbdd()[_0x13ec17('0x1ad1')](_0x49cbdd()['sortBy']([{'app':_0x13ec17('0xaea'),'appType':_0x13ec17('0x231f'),'type':'Outbound','types':[_0x13ec17('0x1256'),'custom',_0x13ec17('0x134c')],'fields':[],'isApp':![]},{'app':_0x13ec17('0x132'),'appType':'outboundDial','context':_0x13ec17('0x2165'),'type':_0x13ec17('0x1331'),'icon':_0x13ec17('0x24a0'),'interval':_0x13ec17('0x20c3'),'options':'xX','isApp':!![],'extraApi':[{'name':_0x13ec17('0x19cb'),'route':'trunk','filters':{'fields':_0x13ec17('0x2aa'),'sort':_0x13ec17('0x2aa')}},{'name':'tags','route':_0x13ec17('0x1132'),'filters':{'fields':'name','sort':'name','nolimit':!![]}}],'fields':[{'title':_0x13ec17('0x1bc6'),'name':_0x13ec17('0x252a'),'type':_0x13ec17('0x1ecc'),'values':_0x13ec17('0x19cb'),'value':'trunk.name','option':_0x13ec17('0x1629'),'required':!![],'param':0x0},{'title':_0x13ec17('0x285'),'name':_0x13ec17('0x17f4'),'type':_0x13ec17('0x132f'),'ngPattern':_0x13ec17('0xcd7'),'help':!![]},{'title':'Prefix','name':_0x13ec17('0x11d4'),'type':'text'},{'title':_0x13ec17('0x28a6'),'name':_0x13ec17('0x1132'),'type':'apiselect','values':_0x13ec17('0x1522'),'value':_0x13ec17('0xf6b'),'option':_0x13ec17('0xf6b'),'defaultValues':[{'value':_0x13ec17('0x1423'),'option':_0x13ec17('0x2576')}]},{'title':_0x13ec17('0x1ceb'),'name':'timeout','type':_0x13ec17('0x7b8'),'min':0x0,'param':0x1},{'title':_0x13ec17('0x1d75'),'name':'options','type':_0x13ec17('0x132f'),'param':0x2},{'title':_0x13ec17('0x96a'),'name':'url','type':_0x13ec17('0x132f'),'param':0x3}]},{'app':null,'type':_0x13ec17('0x1331'),'appType':'custom','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x13ec17('0xeea'),'name':_0x13ec17('0x643'),'type':_0x13ec17('0x132f'),'required':!![],'param':0x0},{'title':_0x13ec17('0x1271'),'name':_0x13ec17('0x2077'),'type':'text','param':0x1}]}],['app']),{'isApp':![]});!_0x2ef8a1['outboundroute']&&(_0x2ef8a1[_0x13ec17('0x1937')]={'appdata':'Outbound\x20Call','type':_0x13ec17('0x1ade'),'context':'from-sip','recordingFormat':_0x13ec17('0x7ee')},_0x2ef8a1[_0x13ec17('0x24d3')]=_0x13ec17('0x2761'),_0x2ef8a1[_0x13ec17('0x145c')]=!![]);_0x2ef8a1[_0x13ec17('0xd85')]=_0x31c123,_0x2ef8a1[_0x13ec17('0x28d1')]=_0x2f21c0,_0x2ef8a1['deleteOutboundRoute']=_0x4dd5a1,_0x2ef8a1['getDateFromString']=_0x47ffa0,_0x2ef8a1[_0x13ec17('0x107b')]=_0x142d17,_0x2ef8a1[_0x13ec17('0x136e')]=_0x288d6a,_0x46145b[_0x13ec17('0x1ba2')](_0x13ec17('0x20bf'))?_0x2d3673[_0x13ec17('0xc76')][_0x13ec17('0x1c53')]({'fields':_0x13ec17('0x12d2'),'sort':_0x13ec17('0x2aa'),'nolimit':'true'})[_0x13ec17('0x1af5')]['then'](function(_0x54aad1){const _0x2960c1=_0x13ec17;_0x2ef8a1[_0x2960c1('0xfb3')]=_0x54aad1[_0x2960c1('0x2319')]||[];})['catch'](function(_0x176f84){const _0x58c676=_0x13ec17;_0x4e6f55[_0x58c676('0x1db9')]({'title':_0x176f84[_0x58c676('0x11c5')]?'API:'+_0x176f84['status']+_0x58c676('0x16e4')+_0x176f84[_0x58c676('0x1833')]:_0x58c676('0xa2c'),'msg':_0x176f84['data']?JSON[_0x58c676('0x678')](_0x176f84[_0x58c676('0x1457')]):_0x176f84['toString']()});}):_0x2d3673[_0x13ec17('0xc76')]['get']({'fields':_0x13ec17('0x12d2'),'sort':_0x13ec17('0x2aa'),'nolimit':'true'})['$promise']['then'](function(_0x186a91){const _0x2d5f15=_0x13ec17;_0x2ef8a1[_0x2d5f15('0xfb3')]=_0x186a91[_0x2d5f15('0x2319')]||[];})['then'](function(){const _0x5cc949=_0x13ec17;return _0x2d3673[_0x5cc949('0x383')][_0x5cc949('0x1c53')]({'userProfileId':_0x2ef8a1[_0x5cc949('0x197c')]['userProfileId'],'sectionId':0x195})[_0x5cc949('0x1af5')];})[_0x13ec17('0x17e7')](function(_0x3bc83f){const _0x3f9484=_0x13ec17,_0x1c542a=_0x3bc83f&&_0x3bc83f['rows']?_0x3bc83f['rows'][0x0]:null;if(!_0x1c542a)return _0x2d3673[_0x3f9484('0xc76')]['get']({'fields':'id,name','sort':'name','nolimit':_0x3f9484('0xe34'),'defaultEntry':0x1})[_0x3f9484('0x1af5')][_0x3f9484('0x17e7')](function(_0x80c1a0){const _0x3bad3f=_0x3f9484;_0x2ef8a1[_0x3bad3f('0xfb3')]=_0x80c1a0[_0x3bad3f('0x2319')]||[];});else{if(!_0x1c542a[_0x3f9484('0x9e3')])return _0x2d3673[_0x3f9484('0x78d')][_0x3f9484('0x1c53')]({'sectionId':_0x1c542a['id']})[_0x3f9484('0x1af5')]['then'](function(_0x356d76){const _0x4f0dda=_0x3f9484,_0x27ba4f=_0x49cbdd()[_0x4f0dda('0x787')](_0x356d76[_0x4f0dda('0x2319')],function(_0xc65138){const _0x35452e=_0x4f0dda;return _0x49cbdd()[_0x35452e('0xe8e')](_0x2ef8a1[_0x35452e('0xfb3')],{'id':_0xc65138['resourceId']});});let _0x2f2fd3=null;_0x2ef8a1[_0x4f0dda('0x1937')]&&(_0x2f2fd3=_0x49cbdd()[_0x4f0dda('0xe8e')](_0x2ef8a1[_0x4f0dda('0xfb3')],{'name':_0x2ef8a1['outboundroute'][_0x4f0dda('0x17b3')]}));if(_0x2f2fd3&&!_0x49cbdd()[_0x4f0dda('0x26f8')](_0x27ba4f,['id',_0x2f2fd3['id']])){const _0x2ef51a=_0x49cbdd()['find'](_0x2ef8a1[_0x4f0dda('0xfb3')],{'id':_0x2f2fd3['id']});_0x2ef51a['canSelect']=![],_0x27ba4f['push'](_0x2ef51a);}_0x2ef8a1['contexts']=_0x27ba4f;});}})['catch'](function(_0x121faf){const _0x586d3d=_0x13ec17;_0x4e6f55[_0x586d3d('0x1db9')]({'title':_0x121faf[_0x586d3d('0x11c5')]?_0x586d3d('0x14f7')+_0x121faf['status']+_0x586d3d('0x16e4')+_0x121faf[_0x586d3d('0x1833')]:_0x586d3d('0x78'),'msg':_0x121faf[_0x586d3d('0x1457')]?JSON['stringify'](_0x121faf['data']):_0x121faf[_0x586d3d('0x9b6')]()});});function _0x31c123(){const _0x567a25=_0x13ec17;_0x2ef8a1[_0x567a25('0x73e')]=[],_0x2d3673[_0x567a25('0x16c2')][_0x567a25('0x2439')](_0x2ef8a1[_0x567a25('0x1937')])['$promise'][_0x567a25('0x17e7')](function(_0x18dbd3){const _0x3da0d4=_0x567a25;_0x2ef8a1[_0x3da0d4('0x1167')][_0x3da0d4('0x1893')](_0x18dbd3[_0x3da0d4('0x16b2')]()),_0x4e6f55[_0x3da0d4('0x130d')]({'title':_0x3da0d4('0x27ab'),'msg':_0x2ef8a1['outboundroute']['name']?_0x2ef8a1[_0x3da0d4('0x1937')]['name']+_0x3da0d4('0x15a'):''}),_0x288d6a(_0x18dbd3);})[_0x567a25('0x16df')](function(_0x47cd16){const _0x299187=_0x567a25;if(_0x47cd16[_0x299187('0x1457')]&&_0x47cd16[_0x299187('0x1457')][_0x299187('0x73e')]&&_0x47cd16[_0x299187('0x1457')][_0x299187('0x73e')][_0x299187('0x1f73')]){_0x2ef8a1[_0x299187('0x73e')]=_0x47cd16['data'][_0x299187('0x73e')]||[{'message':_0x47cd16['toString'](),'type':_0x299187('0xd7d')}];for(let _0x40ff0d=0x0;_0x40ff0d<_0x47cd16[_0x299187('0x1457')][_0x299187('0x73e')]['length'];_0x40ff0d+=0x1){_0x4e6f55[_0x299187('0x1db9')]({'title':_0x47cd16[_0x299187('0x1457')][_0x299187('0x73e')][_0x40ff0d][_0x299187('0x412')],'msg':_0x47cd16['data'][_0x299187('0x73e')][_0x40ff0d][_0x299187('0x1603')]});}}else _0x4e6f55[_0x299187('0x1db9')]({'title':_0x47cd16[_0x299187('0x11c5')]?_0x299187('0x14f7')+_0x47cd16[_0x299187('0x11c5')]+_0x299187('0x16e4')+_0x47cd16[_0x299187('0x1833')]:_0x299187('0xd7d'),'msg':_0x47cd16[_0x299187('0x1457')]?JSON['stringify'](_0x47cd16[_0x299187('0x1457')]['message']):_0x47cd16[_0x299187('0x9b6')]()});});}function _0x2f21c0(){const _0x2bccc9=_0x13ec17;_0x2ef8a1[_0x2bccc9('0x73e')]=[],_0x2d3673['voiceExtension'][_0x2bccc9('0x27ba')]({'id':_0x2ef8a1[_0x2bccc9('0x1937')]['id']},_0x2ef8a1['outboundroute'])[_0x2bccc9('0x1af5')][_0x2bccc9('0x17e7')](function(_0x46416d){const _0x533346=_0x2bccc9,_0x15ae29=_0x49cbdd()[_0x533346('0xe8e')](_0x2ef8a1[_0x533346('0x1167')],{'id':_0x46416d['id']});_0x15ae29&&(_0x49cbdd()[_0x533346('0x1ced')](_0x15ae29,_0x49cbdd()[_0x533346('0x230a')](_0x46416d[_0x533346('0x16b2')](),_0x49cbdd()[_0x533346('0x1c0f')](_0x15ae29))),_0x2d3673['voiceExtension']['get']({'sort':_0x533346('0x1a6d'),'VoiceExtensionId':_0x15ae29['id'],'isApp':!![],'nolimit':!![]})[_0x533346('0x1af5')]['then'](function(_0x45feb1){_0x2ef8a1['outboundrouteApps']=_0x45feb1,_0x142d17();})),_0x4e6f55[_0x533346('0x130d')]({'title':_0x533346('0x1506'),'msg':_0x2ef8a1[_0x533346('0x1937')][_0x533346('0x2aa')]?_0x2ef8a1['outboundroute'][_0x533346('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x288d6a(_0x46416d);})[_0x2bccc9('0x16df')](function(_0x56a177){const _0x32b8f7=_0x2bccc9;if(_0x56a177[_0x32b8f7('0x1457')]&&_0x56a177[_0x32b8f7('0x1457')][_0x32b8f7('0x73e')]&&_0x56a177[_0x32b8f7('0x1457')][_0x32b8f7('0x73e')][_0x32b8f7('0x1f73')]){_0x2ef8a1[_0x32b8f7('0x73e')]=_0x56a177[_0x32b8f7('0x1457')][_0x32b8f7('0x73e')]||[{'message':_0x56a177[_0x32b8f7('0x9b6')](),'type':_0x32b8f7('0x5d2')}];for(let _0xdf043e=0x0;_0xdf043e<_0x56a177['data'][_0x32b8f7('0x73e')][_0x32b8f7('0x1f73')];_0xdf043e++){_0x4e6f55[_0x32b8f7('0x1db9')]({'title':_0x56a177['data'][_0x32b8f7('0x73e')][_0xdf043e][_0x32b8f7('0x412')],'msg':_0x56a177['data'][_0x32b8f7('0x73e')][_0xdf043e]['message']});}}else _0x4e6f55[_0x32b8f7('0x1db9')]({'title':_0x56a177[_0x32b8f7('0x11c5')]?_0x32b8f7('0x14f7')+_0x56a177['status']+_0x32b8f7('0x16e4')+_0x56a177[_0x32b8f7('0x1833')]:_0x32b8f7('0x5d2'),'msg':_0x56a177['data']?JSON[_0x32b8f7('0x678')](_0x56a177['data']['message']):_0x56a177['toString']()});});}function _0x4dd5a1(_0x29f26b){const _0x2b41a8=_0x13ec17;_0x2d3673[_0x2b41a8('0x92f')][_0x2b41a8('0x1c53')]({'VoiceExtensionId':_0xdf1b35['id']})[_0x2b41a8('0x1af5')]['then'](function(_0x281ec5){const _0x3ed13c=_0x2b41a8;if(_0x281ec5&&_0x281ec5[_0x3ed13c('0x2319')]&&_0x281ec5[_0x3ed13c('0x2319')]['length']>0x0)return _0x4e6f55[_0x3ed13c('0x1db9')]({'title':_0x3ed13c('0x2844'),'msg':_0x3ed13c('0x20f5')});else{_0x2ef8a1[_0x3ed13c('0x73e')]=[];const _0x675ed3=_0x50a623[_0x3ed13c('0x1121')]()['title'](_0x3ed13c('0x530'))[_0x3ed13c('0xd5')](_0x3ed13c('0x1474'))[_0x3ed13c('0x2095')](_0x3ed13c('0xaff'))['ok'](_0x3ed13c('0x304'))[_0x3ed13c('0x1d47')]('Cancel')[_0x3ed13c('0x104f')](_0x29f26b);_0x50a623[_0x3ed13c('0x28e2')](_0x675ed3)[_0x3ed13c('0x17e7')](function(){const _0x301881=_0x3ed13c;_0x2d3673[_0x301881('0x16c2')][_0x301881('0x1da6')]({'id':_0x2ef8a1[_0x301881('0x1937')]['id']})[_0x301881('0x1af5')][_0x301881('0x17e7')](function(){const _0x3a00c9=_0x301881;_0x49cbdd()['remove'](_0x2ef8a1['outboundroutes'],{'id':_0x2ef8a1[_0x3a00c9('0x1937')]['id']}),_0x4e6f55[_0x3a00c9('0x130d')]({'title':'OutboundRoute\x20properly\x20deleted!','msg':(_0x2ef8a1['outboundroute']['name']||_0x3a00c9('0x1937'))+'\x20has\x20been\x20deleted!'}),_0x288d6a(_0x2ef8a1['outboundroute']);})[_0x301881('0x16df')](function(_0x399399){const _0x5a6c81=_0x301881;if(_0x399399[_0x5a6c81('0x1457')]&&_0x399399[_0x5a6c81('0x1457')][_0x5a6c81('0x73e')]&&_0x399399['data'][_0x5a6c81('0x73e')][_0x5a6c81('0x1f73')]){_0x2ef8a1[_0x5a6c81('0x73e')]=_0x399399[_0x5a6c81('0x1457')]['errors']||[{'message':_0x399399[_0x5a6c81('0x9b6')](),'type':_0x5a6c81('0xcf6')}];for(let _0x1c0340=0x0;_0x1c0340<_0x399399['data'][_0x5a6c81('0x73e')][_0x5a6c81('0x1f73')];_0x1c0340++){_0x4e6f55['error']({'title':_0x399399[_0x5a6c81('0x1457')]['errors'][_0x1c0340][_0x5a6c81('0x412')],'msg':_0x399399[_0x5a6c81('0x1457')][_0x5a6c81('0x73e')][_0x1c0340][_0x5a6c81('0x1603')]});}}else _0x4e6f55['error']({'title':_0x399399['status']?_0x5a6c81('0x14f7')+_0x399399['status']+_0x5a6c81('0x16e4')+_0x399399[_0x5a6c81('0x1833')]:_0x5a6c81('0xcf6'),'msg':_0x399399[_0x5a6c81('0x1457')]?JSON[_0x5a6c81('0x678')](_0x399399['data'][_0x5a6c81('0x1603')]):_0x399399[_0x5a6c81('0x1603')]||_0x399399[_0x5a6c81('0x9b6')]()});});},function(){});}});}function _0x142d17(){const _0x258d15=_0x13ec17;let _0x521443=0x2,_0x55719f=[];_0x55719f[_0x258d15('0x269f')]({'type':_0x258d15('0x1ade'),'app':_0x258d15('0xca'),'appdata':'CDR(type)=outbound','context':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')],'exten':_0x2ef8a1['outboundroute'][_0x258d15('0xee9')],'priority':_0x521443++,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']}),_0x55719f['push']({'type':'outbound','app':_0x258d15('0xca'),'appdata':'CDR(destination)='+(_0x2ef8a1[_0x258d15('0x1937')]['cutdigits']?_0x258d15('0x2265')+_0x2ef8a1['outboundroute']['cutdigits']+'}':'${EXTEN}'),'context':_0x2ef8a1[_0x258d15('0x1937')]['context'],'exten':_0x2ef8a1['outboundroute']['exten'],'priority':_0x521443++,'VoiceExtensionId':_0x2ef8a1['outboundroute']['id']}),_0x55719f[_0x258d15('0x269f')]({'type':_0x258d15('0x1ade'),'app':_0x258d15('0xca'),'appdata':_0x258d15('0x594'),'context':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')],'exten':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')],'priority':_0x521443++,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']}),_0x55719f[_0x258d15('0x269f')]({'type':_0x258d15('0x1ade'),'app':_0x258d15('0xca'),'appdata':_0x258d15('0x6df'),'context':_0x2ef8a1[_0x258d15('0x1937')]['context'],'exten':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')],'priority':_0x521443++,'VoiceExtensionId':_0x2ef8a1['outboundroute']['id']}),_0x55719f[_0x258d15('0x269f')]({'type':_0x258d15('0x1ade'),'app':_0x258d15('0xca'),'appdata':_0x258d15('0x6cf'),'context':_0x2ef8a1['outboundroute']['context'],'exten':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')],'priority':_0x521443++,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']}),_0x55719f[_0x258d15('0x269f')]({'type':_0x258d15('0x1ade'),'app':_0x258d15('0xca'),'appdata':_0x258d15('0x141c')+_0x2ef8a1['outboundroute']['id'],'context':_0x2ef8a1['outboundroute'][_0x258d15('0x17b3')],'exten':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')],'priority':_0x521443++,'VoiceExtensionId':_0x2ef8a1['outboundroute']['id']});typeof _0x2ef8a1['outboundroute'][_0x258d15('0x287')]!=='undefined'&&_0x2ef8a1['outboundroute']['recordingFormat']!==_0x258d15('0x7ee')&&(_0x55719f[_0x258d15('0x269f')]({'type':_0x258d15('0x1ade'),'app':_0x258d15('0xca'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','context':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')],'exten':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')],'priority':_0x521443++,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']}),_0x55719f[_0x258d15('0x269f')]({'type':_0x258d15('0x1ade'),'app':_0x258d15('0xca'),'appdata':_0x258d15('0x1dc4')+_0x2ef8a1[_0x258d15('0x1937')]['recordingFormat']||0x0,'context':_0x2ef8a1['outboundroute']['context'],'exten':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')],'priority':_0x521443++,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']}));for(let _0x597891=0x0,_0x5e1cfe=0x0;_0x597891<_0x2ef8a1[_0x258d15('0x24c4')][_0x258d15('0x2319')][_0x258d15('0x1f73')];_0x597891++,_0x5e1cfe=0x0){const _0x388f79=_0x2ef8a1[_0x258d15('0x24c4')][_0x258d15('0x2319')][_0x597891],_0x557c97=[],_0x19d9d6=[];_0x388f79[_0x258d15('0x1be1')]=_0x388f79[_0x258d15('0x231f')]!=='*,*,*,*'?[_0x388f79[_0x258d15('0x231f')]]:_0x388f79[_0x258d15('0x24a9')]?_0x49cbdd()[_0x258d15('0x787')](_0x49cbdd()[_0x258d15('0x2483')](_0x2ef8a1[_0x258d15('0x1be1')]['rows'],{'IntervalId':_0x388f79[_0x258d15('0x24a9')]}),'interval'):[],_0x388f79[_0x258d15('0x17b3')]=_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')],_0x388f79[_0x258d15('0xee9')]=_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')];_0x388f79['type']&&(_0x388f79['type']=_0x388f79[_0x258d15('0x412')][_0x258d15('0x19b')]());typeof _0x388f79['tag']!==_0x258d15('0xfad')&&(_0x388f79[_0x258d15('0x1132')]&&_0x388f79[_0x258d15('0x1132')]!=='--'&&_0x557c97['push']({'type':_0x388f79[_0x258d15('0x412')][_0x258d15('0x19b')](),'app':'Set','appdata':'CDR(tag)='+_0x388f79['tag'],'context':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')],'exten':_0x2ef8a1['outboundroute'][_0x258d15('0xee9')],'priority':_0x388f79[_0x258d15('0x1be1')][_0x258d15('0x1f73')]+_0x521443+_0x5e1cfe++,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']}));_0x388f79[_0x258d15('0x17f4')]?_0x557c97['push']({'type':_0x388f79[_0x258d15('0x412')][_0x258d15('0x19b')](),'app':_0x258d15('0x9f4'),'appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)='+_0x388f79[_0x258d15('0x17f4')]+')','context':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')],'exten':_0x2ef8a1['outboundroute'][_0x258d15('0xee9')],'priority':_0x388f79['intervals'][_0x258d15('0x1f73')]+_0x521443+_0x5e1cfe++,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']}):_0x557c97[_0x258d15('0x269f')]({'type':_0x388f79[_0x258d15('0x412')]['toLowerCase'](),'app':_0x258d15('0x9f4'),'appdata':_0x258d15('0x27b8'),'context':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')],'exten':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')],'priority':_0x388f79[_0x258d15('0x1be1')][_0x258d15('0x1f73')]+_0x521443+_0x5e1cfe++,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']});for(let _0x152a6e=0x0;_0x152a6e<_0x388f79[_0x258d15('0x1be1')][_0x258d15('0x1f73')];_0x152a6e++){const _0x4873d1=_0x521443+_0x388f79[_0x258d15('0x1be1')][_0x258d15('0x1f73')],_0xf408c4=_0x152a6e===_0x388f79[_0x258d15('0x1be1')][_0x258d15('0x1f73')]-0x1?_0x521443+_0x557c97[_0x258d15('0x1f73')]+_0x19d9d6[_0x258d15('0x1f73')]+0x2:_0x521443+_0x152a6e+0x1;_0x557c97[_0x258d15('0x2335')](_0x152a6e,0x0,{'type':_0x258d15('0x1ade'),'app':_0x258d15('0x3e7'),'appdata':_0x388f79[_0x258d15('0x1be1')][_0x152a6e]+'?'+_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')]+_0x258d15('0x69f')+_0x4873d1+':'+_0x2ef8a1['outboundroute'][_0x258d15('0x17b3')]+_0x258d15('0x69f')+_0xf408c4,'exten':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0xee9')],'context':_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x17b3')],'priority':_0x521443+_0x152a6e,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']});}if(_0x388f79[_0x258d15('0x1c54')]===_0x258d15('0xbdc')){const _0x418c89=_0x49cbdd()[_0x258d15('0xe8e')](_0x2ef8a1[_0x258d15('0x970')],{'appType':_0x258d15('0xbdc')});if(_0x418c89&&_0x418c89[_0x258d15('0x9c9')]){const _0x122c7e={},_0x2b6192=_0x388f79[_0x258d15('0x2077')][_0x258d15('0x2007')](','),_0x5dc5e0=[];for(let _0x221a0f=0x0,_0x4affdc=_0x418c89[_0x258d15('0x9c9')][_0x258d15('0x1f73')];_0x221a0f<_0x4affdc;_0x221a0f++){if(typeof _0x418c89[_0x258d15('0x9c9')][_0x221a0f][_0x258d15('0x941')]!=='undefined')switch(_0x418c89['fields'][_0x221a0f]['name']){case _0x258d15('0x252a'):_0x122c7e[_0x258d15('0x252a')]=_0x2b6192[_0x418c89[_0x258d15('0x9c9')][_0x221a0f]['param']][_0x258d15('0x2007')]('/')[0x1],_0x122c7e['phone']=_0x2b6192[_0x418c89[_0x258d15('0x9c9')][_0x221a0f][_0x258d15('0x941')]]['split']('/')[0x2],_0x122c7e['prefix']=_0x122c7e[_0x258d15('0x2154')]?_0x122c7e['phone'][_0x258d15('0x2007')]('$')[0x0]:undefined,_0x122c7e[_0x258d15('0x2154')]=_0x2ef8a1[_0x258d15('0x1937')]['cutdigits']?(_0x122c7e[_0x258d15('0x11d4')]||'')+_0x258d15('0x2265')+_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x12af')]+'}':(_0x122c7e[_0x258d15('0x11d4')]||'')+'${EXTEN}',_0x5dc5e0[_0x418c89['fields'][_0x221a0f][_0x258d15('0x941')]]=[_0x258d15('0xbf1'),_0x122c7e[_0x258d15('0x252a')],_0x122c7e[_0x258d15('0x2154')]][_0x258d15('0x1eba')]('/');break;case _0x258d15('0x19'):_0x122c7e[_0x258d15('0x19')]=_0x2b6192[_0x418c89[_0x258d15('0x9c9')][_0x221a0f][_0x258d15('0x941')]];_0x2ef8a1[_0x258d15('0x1937')][_0x258d15('0x287')]!==_0x258d15('0x7ee')?_0x122c7e[_0x258d15('0x19')][_0x258d15('0x2567')](_0x258d15('0xa22'))<0x0&&(_0x122c7e[_0x258d15('0x19')]+=_0x258d15('0xa22')):_0x122c7e['options']=_0x122c7e[_0x258d15('0x19')]['replace']('U(xcally-mixmonitor-context)','');_0x5dc5e0[_0x418c89[_0x258d15('0x9c9')][_0x221a0f]['param']]=_0x122c7e[_0x258d15('0x19')];break;default:_0x5dc5e0[_0x418c89['fields'][_0x221a0f][_0x258d15('0x941')]]=_0x2b6192[_0x418c89['fields'][_0x221a0f]['param']];}}_0x388f79[_0x258d15('0x2077')]=_0x5dc5e0['join'](',');}}_0x388f79['priority']=_0x557c97[_0x258d15('0x1f73')]?_0x49cbdd()[_0x258d15('0x5e8')](_0x557c97)[_0x258d15('0x1a6d')]+0x1:_0x521443,_0x521443=(_0x19d9d6[_0x258d15('0x1f73')]?_0x49cbdd()[_0x258d15('0x5e8')](_0x19d9d6)[_0x258d15('0x1a6d')]:_0x388f79[_0x258d15('0x1a6d')])+0x1,_0x55719f=_0x49cbdd()[_0x258d15('0xe1b')](_0x55719f,_0x557c97,[_0x388f79],_0x19d9d6);}_0x55719f['push']({'type':_0x258d15('0x1ade'),'app':'Hangup','exten':_0x2ef8a1['outboundroute'][_0x258d15('0xee9')],'context':_0x2ef8a1['outboundroute'][_0x258d15('0x17b3')],'priority':_0x521443,'VoiceExtensionId':_0x2ef8a1[_0x258d15('0x1937')]['id']}),_0x2d3673['voiceExtension'][_0x258d15('0x55d')]({'id':_0x2ef8a1[_0x258d15('0x1937')]['id']},_0x49cbdd()[_0x258d15('0x1be3')](_0x55719f,_0x258d15('0x1a6d')))['$promise'][_0x258d15('0x17e7')](function(_0x3379a6){const _0x397c62=_0x258d15;_0x2ef8a1[_0x397c62('0x24c4')][_0x397c62('0x2319')]=_0x3379a6['rows'];})[_0x258d15('0x16df')](function(_0xfe094c){const _0x360d7b=_0x258d15;console[_0x360d7b('0x1db9')](_0xfe094c);});}function _0x47ffa0(_0x3219fb){return _0x3219fb===null?undefined:new Date(_0x3219fb);}function _0x288d6a(_0x27139f){const _0x579c03=_0x13ec17;_0x50a623[_0x579c03('0x212a')](_0x27139f);}}const _0x35d905=_0x2dbb2f,_0x331fc1=_0x4cf2bc['p']+_0x4376d8('0x2717'),_0x4d0637=_0x4cf2bc['p']+_0x4376d8('0x416'),_0x5cc36d=_0x4cf2bc['p']+_0x4376d8('0x407');_0x157852[_0x4376d8('0x1b9c')]=[_0x4376d8('0x212e'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x25aa'),_0x4376d8('0x668'),'Auth'];const _0x5ea87d={'custom':_0x331fc1,'interval':_0x4d0637,'outbounddial':_0x5cc36d};function _0x157852(_0x16ced4,_0x44c87b,_0x18a86b,_0x371624,_0x4f525a,_0x1f8830,_0x433652){const _0x866e4c=_0x4376d8,_0x4f676f=this;_0x4f676f[_0x866e4c('0x197c')]=_0x433652[_0x866e4c('0x2831')](),_0x4f676f[_0x866e4c('0x1937')]={},_0x4f676f[_0x866e4c('0x24c4')]={'count':0x0,'rows':[]},_0x4f676f[_0x866e4c('0x23ac')]=[],_0x4f676f[_0x866e4c('0x103e')],_0x4f676f[_0x866e4c('0x826')]={'sort':_0x866e4c('0x1a6d')},_0x4f676f[_0x866e4c('0x970')]=_0x49cbdd()[_0x866e4c('0x1ad1')](_0x49cbdd()['sortBy']([{'app':_0x866e4c('0xaea'),'appType':_0x866e4c('0x231f'),'type':_0x866e4c('0x1331'),'types':[_0x866e4c('0x1256'),'custom',_0x866e4c('0x134c')],'fields':[],'isApp':![]},{'app':_0x866e4c('0x132'),'appType':'outboundDial','context':'from-sip','type':_0x866e4c('0x1331'),'icon':_0x866e4c('0x24a0'),'interval':_0x866e4c('0x20c3'),'options':'xX','isApp':!![],'extraApi':[{'name':'trunks','field':{'name':_0x866e4c('0x252a'),'key':_0x866e4c('0x2aa')},'route':_0x866e4c('0x252a'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f3}},{'name':'tags','field':{'name':_0x866e4c('0x1132'),'key':_0x866e4c('0x2aa')},'route':'tag','filters':{'fields':_0x866e4c('0x12d2'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Trunk','name':_0x866e4c('0x252a'),'type':_0x866e4c('0x1ecc'),'values':'trunks','value':'trunk.name','option':'trunk.name','required':!![],'param':0x0},{'title':'Caller_ID','name':'callerID','type':_0x866e4c('0x132f'),'help':!![]},{'title':'Prefix','name':_0x866e4c('0x11d4'),'type':_0x866e4c('0x132f')},{'title':_0x866e4c('0x28a6'),'name':_0x866e4c('0x1132'),'type':_0x866e4c('0x1ecc'),'values':_0x866e4c('0x1522'),'value':'tag.name','option':_0x866e4c('0xf6b'),'defaultValues':[{'value':'\x27--\x27','option':_0x866e4c('0x2576')}]},{'title':_0x866e4c('0x1ceb'),'name':_0x866e4c('0xd2f'),'type':_0x866e4c('0x7b8'),'min':0x0,'param':0x1},{'title':_0x866e4c('0x1d75'),'name':'options','type':_0x866e4c('0x132f'),'param':0x2},{'title':_0x866e4c('0x96a'),'name':'url','type':_0x866e4c('0x132f'),'param':0x3}]},{'app':null,'type':_0x866e4c('0x1331'),'appType':_0x866e4c('0x8fa'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':'Application_Name','name':_0x866e4c('0x643'),'type':_0x866e4c('0x132f'),'required':!![],'param':0x0},{'title':'Arguments','name':_0x866e4c('0x2077'),'type':_0x866e4c('0x132f'),'param':0x1}]}],['app']),{'isApp':![]}),_0x4f676f[_0x866e4c('0x134c')]={'group':{'name':_0x866e4c('0x2003'),'pull':'clone'},'animation':0x64,'sort':![]},_0x4f676f[_0x866e4c('0x1683')]={'group':{'name':_0x866e4c('0x22e2'),'put':_0x866e4c('0x2003')},'animation':0x64,'onAdd':function(_0x5815e5){_0x2f5773(_0x5815e5,_0x5815e5['newIndex']);},'onSort':function(){_0x9a517d();}},_0x4f676f[_0x866e4c('0x161d')]=_0xb2487f,_0x4f676f[_0x866e4c('0x1a20')]=_0x1b593f,_0x4f676f[_0x866e4c('0x2538')]=_0x1ca08b,_0x4f676f['editOutboundRouteApp']=_0x2f5773,_0x4f676f[_0x866e4c('0x1374')]=_0x49459f,_0x4f676f['deleteOutboundRouteApp']=_0x24f4d8,_0x4f676f[_0x866e4c('0x1a7e')]=_0x383f47,_0x4f676f['rewriteRouting']=_0x9a517d,_0x4f676f['getIntervals']=_0x59a8fa,_0x4f676f[_0x866e4c('0x1160')]=_0x4c5d0c;function _0xb2487f(_0x362213,_0x2f4790){const _0x19049a=_0x866e4c;_0x4f676f[_0x19049a('0x1937')]=_0x362213,_0x4f676f[_0x19049a('0x103e')]=typeof _0x2f4790!==_0x19049a('0xfad')?_0x2f4790:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4f676f[_0x19049a('0x1683')][_0x19049a('0xc3c')]=!_0x4f676f[_0x19049a('0x103e')][_0x19049a('0x1d34')]?!![]:![],_0x4f525a['on']('voiceExtension:update',_0x4f676f[_0x19049a('0x1160')]),_0x4f676f[_0x19049a('0x826')]['VoiceExtensionId']=_0x362213['id'],_0x4f676f[_0x19049a('0x826')]['isApp']=!![],_0x4f676f[_0x19049a('0x826')][_0x19049a('0x24c6')]=!![],_0x4f676f['getOutboundRouteApps'](),_0x4f676f[_0x19049a('0x1a0d')]();}function _0x4c5d0c(_0x2fd752){const _0x2ccad9=_0x866e4c;_0x2fd752['VoiceExtensionId']===_0x4f676f[_0x2ccad9('0x1937')]['id']&&_0x9a517d(!![]);}function _0x1b593f(_0x38255b,_0x19667c,_0x3f0155){const _0x2dcebd=_0x866e4c,_0x6fa4e9=_0x44c87b[_0x2dcebd('0x1121')]()[_0x2dcebd('0x24d3')](_0x2dcebd('0x804'))[_0x2dcebd('0x211f')](_0x2dcebd('0xa53')+_0x38255b['app']+''+_0x2dcebd('0xe9f'))[_0x2dcebd('0x2095')](_0x2dcebd('0x37b'))['targetEvent'](_0x3f0155)['ok']('OK')[_0x2dcebd('0x1d47')]('CANCEL');_0x44c87b[_0x2dcebd('0x28e2')](_0x6fa4e9)[_0x2dcebd('0x17e7')](function(){const _0x5c7999=_0x2dcebd;_0x4f676f[_0x5c7999('0x24c4')][_0x5c7999('0x2319')][_0x5c7999('0x2335')](_0x19667c,0x1),_0x9a517d();},function(){const _0x25e7e3=_0x2dcebd;console[_0x25e7e3('0x1d63')](_0x25e7e3('0x28a0'));});}function _0x2f5773(_0x32dad1,_0x88515d){const _0x68f1d7=_0x866e4c;if(_0x4f676f[_0x68f1d7('0x24c4')]['rows'][_0x68f1d7('0x1f73')]){const _0x4d3ab4=_0x4f676f['outboundrouteApps'][_0x68f1d7('0x2319')][_0x88515d]?_0x4f676f[_0x68f1d7('0x24c4')][_0x68f1d7('0x2319')][_0x88515d]:_0x4f676f[_0x68f1d7('0x24c4')][_0x68f1d7('0x2319')][0x0],_0x396187=(_0x4d3ab4[_0x68f1d7('0x1c54')]||_0x4d3ab4['app'])['toLowerCase']();_0x44c87b[_0x68f1d7('0x28e2')]({'controller':_0x68f1d7('0x1b98')+_0x396187+_0x68f1d7('0x1553'),'controllerAs':'vm','templateUrl':_0x5ea87d[_0x396187],'parent':angular[_0x68f1d7('0x1ce1')](_0x18a86b[_0x68f1d7('0x13aa')]),'targetEvent':_0x32dad1,'clickOutsideToClose':!![],'locals':{'outboundrouteApp':_0x4d3ab4,'outboundroute':_0x4f676f[_0x68f1d7('0x1937')],'crudPermissions':_0x4f676f['crudPermissions']}})[_0x68f1d7('0x17e7')](function(_0x53f84d){const _0x2e502a=_0x68f1d7;_0x53f84d&&(_0x53f84d['id']?_0x4f676f[_0x2e502a('0x24c4')][_0x2e502a('0x2319')][_0x88515d]=_0x53f84d:_0x4f676f[_0x2e502a('0x24c4')]['rows'][_0x2e502a('0x2335')](_0x88515d,0x0,_0x53f84d),_0x9a517d());})[_0x68f1d7('0x16df')](function(_0x55117e){const _0x25db0a=_0x68f1d7;_0x55117e&&_0x371624[_0x25db0a('0x1db9')]({'title':_0x55117e['status']?'API:'+_0x55117e[_0x25db0a('0x11c5')]+_0x25db0a('0x16e4')+_0x55117e['statusText']:'SYSTEM:EDITMODALSHOW','msg':_0x55117e[_0x25db0a('0x1457')]?JSON[_0x25db0a('0x678')](_0x55117e['data']):_0x55117e[_0x25db0a('0x9b6')]()});});}}function _0x49459f(_0x4adabc,_0x251cc6){const _0x2d3ab3=_0x866e4c;if(_0x4f676f[_0x2d3ab3('0x24c4')][_0x2d3ab3('0x2319')][_0x2d3ab3('0x1f73')]){const _0xa1769b=_0x4f676f[_0x2d3ab3('0x24c4')][_0x2d3ab3('0x2319')][_0x251cc6]?_0x4f676f[_0x2d3ab3('0x24c4')][_0x2d3ab3('0x2319')][_0x251cc6]:_0x4f676f[_0x2d3ab3('0x24c4')][_0x2d3ab3('0x2319')][0x0];_0x44c87b[_0x2d3ab3('0x28e2')]({'controller':'EditoutboundAppintervalDialogController','controllerAs':'vm','templateUrl':_0x4d0637,'parent':angular[_0x2d3ab3('0x1ce1')](_0x18a86b[_0x2d3ab3('0x13aa')]),'targetEvent':_0x4adabc,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xa1769b[_0x2d3ab3('0x231f')],'IntervalId':_0xa1769b[_0x2d3ab3('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0x4f676f['crudPermissions']}})[_0x2d3ab3('0x17e7')](function(_0x460f3b){const _0x5375b6=_0x2d3ab3;_0x460f3b&&(_0xa1769b['interval']=_0x460f3b[_0x5375b6('0x231f')]||_0x5375b6('0x20c3'),_0xa1769b[_0x5375b6('0x24a9')]=_0x460f3b[_0x5375b6('0x24a9')]||null,_0x9a517d());});}}function _0x9a517d(_0x2c1bd7){const _0x12df6b=_0x866e4c;let _0x1ed1bb=0x2,_0x5a330a=[];_0x5a330a[_0x12df6b('0x269f')]({'type':_0x12df6b('0x1ade'),'app':'Set','appdata':_0x12df6b('0x1a75'),'context':_0x4f676f[_0x12df6b('0x1937')]['context'],'exten':_0x4f676f['outboundroute']['exten'],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f['outboundroute']['id']}),_0x5a330a[_0x12df6b('0x269f')]({'type':'outbound','app':_0x12df6b('0xca'),'appdata':'CDR(destination)='+(_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x12af')]?'${EXTEN:'+_0x4f676f['outboundroute'][_0x12df6b('0x12af')]+'}':_0x12df6b('0x150e')),'context':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],'exten':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0xee9')],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}),_0x5a330a[_0x12df6b('0x269f')]({'type':_0x12df6b('0x1ade'),'app':_0x12df6b('0xca'),'appdata':_0x12df6b('0x276c')+_0x4f676f['outboundroute']['id'],'context':_0x4f676f[_0x12df6b('0x1937')]['context'],'exten':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0xee9')],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']});const _0xa0fbb2=_0x1ed1bb++;_0x5a330a[_0x12df6b('0x269f')]({'type':'outbound','app':_0x12df6b('0x9f4'),'appdata':'$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto('+(_0xa0fbb2+0x2)+_0x12df6b('0x275b')+(_0xa0fbb2+0x1)+')','context':_0x4f676f[_0x12df6b('0x1937')]['context'],'exten':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0xee9')],'priority':_0xa0fbb2,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}),_0x5a330a[_0x12df6b('0x269f')]({'type':_0x12df6b('0x1ade'),'app':_0x12df6b('0xca'),'appdata':_0x4f676f['outboundroute'][_0x12df6b('0x12af')]?_0x12df6b('0x6ed')+_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x12af')]+'}':_0x12df6b('0xe8c'),'context':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],'exten':_0x4f676f['outboundroute'][_0x12df6b('0xee9')],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}),_0x5a330a[_0x12df6b('0x269f')]({'type':_0x12df6b('0x1ade'),'app':'Set','appdata':'XCALLY-MOTION-ANSWER=0','context':_0x4f676f[_0x12df6b('0x1937')]['context'],'exten':_0x4f676f[_0x12df6b('0x1937')]['exten'],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}),_0x5a330a[_0x12df6b('0x269f')]({'type':_0x12df6b('0x1ade'),'app':_0x12df6b('0xca'),'appdata':_0x12df6b('0x6df'),'context':_0x4f676f['outboundroute'][_0x12df6b('0x17b3')],'exten':_0x4f676f['outboundroute']['exten'],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}),_0x5a330a['push']({'type':_0x12df6b('0x1ade'),'app':_0x12df6b('0xca'),'appdata':'MONITOR_OPTIONS=ab','context':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],'exten':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0xee9')],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}),_0x5a330a[_0x12df6b('0x269f')]({'type':_0x12df6b('0x1ade'),'app':'Set','appdata':_0x12df6b('0x141c')+_0x4f676f[_0x12df6b('0x1937')]['id'],'context':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],'exten':_0x4f676f[_0x12df6b('0x1937')]['exten'],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']});typeof _0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x287')]===_0x12df6b('0xfad')&&_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x287')]!==_0x12df6b('0x7ee')&&(_0x5a330a[_0x12df6b('0x269f')]({'type':_0x12df6b('0x1ade'),'app':'Set','appdata':_0x12df6b('0x163'),'context':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],'exten':_0x4f676f['outboundroute'][_0x12df6b('0xee9')],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f['outboundroute']['id']}),_0x5a330a['push']({'type':_0x12df6b('0x1ade'),'app':_0x12df6b('0xca'),'appdata':'_XCALLY_MIXMONITOR_FORMAT='+_0x4f676f['outboundroute'][_0x12df6b('0x287')]||0x0,'context':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],'exten':_0x4f676f['outboundroute'][_0x12df6b('0xee9')],'priority':_0x1ed1bb++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}));for(let _0xa2c4a1=0x0,_0x4a8710=0x0;_0xa2c4a1<_0x4f676f[_0x12df6b('0x24c4')][_0x12df6b('0x2319')]['length'];_0xa2c4a1++,_0x4a8710=0x0){const _0x394a8a=_0x4f676f['outboundrouteApps']['rows'][_0xa2c4a1],_0x94cf89=[],_0x37c1a2=[];_0x394a8a[_0x12df6b('0x1be1')]=_0x394a8a[_0x12df6b('0x231f')]!==_0x12df6b('0x20c3')?[_0x394a8a[_0x12df6b('0x231f')]]:_0x394a8a[_0x12df6b('0x24a9')]?_0x49cbdd()[_0x12df6b('0x787')](_0x49cbdd()['filter'](_0x4f676f[_0x12df6b('0x1be1')][_0x12df6b('0x2319')],{'IntervalId':_0x394a8a[_0x12df6b('0x24a9')]}),'interval'):[],_0x394a8a[_0x12df6b('0x17b3')]=_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],_0x394a8a[_0x12df6b('0xee9')]=_0x4f676f[_0x12df6b('0x1937')]['exten'];_0x394a8a[_0x12df6b('0x412')]&&(_0x394a8a[_0x12df6b('0x412')]=_0x394a8a['type'][_0x12df6b('0x19b')]());typeof _0x394a8a[_0x12df6b('0x1132')]!==_0x12df6b('0xfad')&&(_0x394a8a[_0x12df6b('0x1132')]&&_0x394a8a[_0x12df6b('0x1132')]!=='--'&&_0x94cf89[_0x12df6b('0x269f')]({'type':_0x394a8a[_0x12df6b('0x412')]['toLowerCase'](),'app':_0x12df6b('0xca'),'appdata':_0x12df6b('0x26e2')+_0x394a8a[_0x12df6b('0x1132')],'context':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],'exten':_0x4f676f['outboundroute'][_0x12df6b('0xee9')],'priority':_0x394a8a[_0x12df6b('0x1be1')][_0x12df6b('0x1f73')]+_0x1ed1bb+_0x4a8710++,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}));_0x394a8a[_0x12df6b('0x17f4')]?_0x94cf89[_0x12df6b('0x269f')]({'type':_0x394a8a[_0x12df6b('0x412')][_0x12df6b('0x19b')](),'app':_0x12df6b('0x9f4'),'appdata':_0x12df6b('0x22cf')+_0x394a8a['callerID']+')','context':_0x4f676f['outboundroute'][_0x12df6b('0x17b3')],'exten':_0x4f676f['outboundroute'][_0x12df6b('0xee9')],'priority':_0x394a8a[_0x12df6b('0x1be1')][_0x12df6b('0x1f73')]+_0x1ed1bb+_0x4a8710++,'VoiceExtensionId':_0x4f676f['outboundroute']['id']}):_0x94cf89[_0x12df6b('0x269f')]({'type':_0x394a8a['type']['toLowerCase'](),'app':_0x12df6b('0x9f4'),'appdata':_0x12df6b('0x27b8'),'context':_0x4f676f[_0x12df6b('0x1937')]['context'],'exten':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0xee9')],'priority':_0x394a8a['intervals'][_0x12df6b('0x1f73')]+_0x1ed1bb+_0x4a8710++,'VoiceExtensionId':_0x4f676f['outboundroute']['id']});for(let _0x1d4dc7=0x0;_0x1d4dc7<_0x394a8a[_0x12df6b('0x1be1')][_0x12df6b('0x1f73')];_0x1d4dc7++){const _0x1d3e81=_0x1ed1bb+_0x394a8a[_0x12df6b('0x1be1')]['length'],_0x361ae9=_0x1d4dc7===_0x394a8a[_0x12df6b('0x1be1')][_0x12df6b('0x1f73')]-0x1?_0x1ed1bb+_0x94cf89[_0x12df6b('0x1f73')]+_0x37c1a2[_0x12df6b('0x1f73')]+0x2:_0x1ed1bb+_0x1d4dc7+0x1;_0x94cf89[_0x12df6b('0x2335')](_0x1d4dc7,0x0,{'type':_0x12df6b('0x1ade'),'app':_0x12df6b('0x3e7'),'appdata':_0x394a8a[_0x12df6b('0x1be1')][_0x1d4dc7]+'?'+_0x4f676f[_0x12df6b('0x1937')]['context']+',${EXTEN},'+_0x1d3e81+':'+_0x4f676f[_0x12df6b('0x1937')]['context']+_0x12df6b('0x69f')+_0x361ae9,'exten':_0x4f676f[_0x12df6b('0x1937')]['exten'],'context':_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x17b3')],'priority':_0x1ed1bb+_0x1d4dc7,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']});}if(_0x2c1bd7&&_0x394a8a[_0x12df6b('0x1c54')]===_0x12df6b('0xbdc')){const _0x24bcc7=_0x49cbdd()[_0x12df6b('0xe8e')](_0x4f676f[_0x12df6b('0x970')],{'appType':_0x12df6b('0xbdc')});if(_0x24bcc7&&_0x24bcc7[_0x12df6b('0x9c9')]){const _0x40eb44={},_0x377d88=_0x394a8a[_0x12df6b('0x2077')][_0x12df6b('0x2007')](','),_0x52a311=[];for(let _0x4a521e=0x0,_0x4bc8b3=_0x24bcc7[_0x12df6b('0x9c9')][_0x12df6b('0x1f73')];_0x4a521e<_0x4bc8b3;_0x4a521e++){if(typeof _0x24bcc7[_0x12df6b('0x9c9')][_0x4a521e]['param']!==_0x12df6b('0xfad'))switch(_0x24bcc7[_0x12df6b('0x9c9')][_0x4a521e][_0x12df6b('0x2aa')]){case _0x12df6b('0x252a'):_0x40eb44[_0x12df6b('0x252a')]=_0x377d88[_0x24bcc7[_0x12df6b('0x9c9')][_0x4a521e]['param']]['split']('/')[0x1],_0x40eb44[_0x12df6b('0x2154')]=_0x377d88[_0x24bcc7[_0x12df6b('0x9c9')][_0x4a521e]['param']][_0x12df6b('0x2007')]('/')[0x2],_0x40eb44['prefix']=_0x40eb44[_0x12df6b('0x2154')]?_0x40eb44[_0x12df6b('0x2154')][_0x12df6b('0x2007')]('$')[0x0]:undefined,_0x40eb44[_0x12df6b('0x2154')]=_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x12af')]?(_0x40eb44[_0x12df6b('0x11d4')]||'')+_0x12df6b('0x2265')+_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x12af')]+'}':(_0x40eb44['prefix']||'')+_0x12df6b('0x150e'),_0x52a311[_0x24bcc7['fields'][_0x4a521e][_0x12df6b('0x941')]]=[_0x12df6b('0xbf1'),_0x40eb44[_0x12df6b('0x252a')],_0x40eb44[_0x12df6b('0x2154')]][_0x12df6b('0x1eba')]('/');break;case _0x12df6b('0x19'):_0x40eb44[_0x12df6b('0x19')]=_0x377d88[_0x24bcc7[_0x12df6b('0x9c9')][_0x4a521e]['param']];_0x4f676f[_0x12df6b('0x1937')][_0x12df6b('0x287')]!==_0x12df6b('0x7ee')?_0x40eb44['options'][_0x12df6b('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x40eb44[_0x12df6b('0x19')]+='U(xcally-mixmonitor-context)'):_0x40eb44[_0x12df6b('0x19')]=_0x40eb44[_0x12df6b('0x19')]['replace'](_0x12df6b('0xa22'),'');_0x52a311[_0x24bcc7['fields'][_0x4a521e][_0x12df6b('0x941')]]=_0x40eb44[_0x12df6b('0x19')];break;default:_0x52a311[_0x24bcc7[_0x12df6b('0x9c9')][_0x4a521e][_0x12df6b('0x941')]]=_0x377d88[_0x24bcc7['fields'][_0x4a521e][_0x12df6b('0x941')]];}}_0x394a8a[_0x12df6b('0x2077')]=_0x52a311[_0x12df6b('0x1eba')](',');}}_0x394a8a[_0x12df6b('0x1a6d')]=_0x94cf89['length']?_0x49cbdd()[_0x12df6b('0x5e8')](_0x94cf89)[_0x12df6b('0x1a6d')]+0x1:_0x1ed1bb,_0x1ed1bb=(_0x37c1a2[_0x12df6b('0x1f73')]?_0x49cbdd()[_0x12df6b('0x5e8')](_0x37c1a2)[_0x12df6b('0x1a6d')]:_0x394a8a[_0x12df6b('0x1a6d')])+0x1,_0x5a330a=_0x49cbdd()[_0x12df6b('0xe1b')](_0x5a330a,_0x94cf89,[_0x394a8a],_0x37c1a2);}_0x5a330a[_0x12df6b('0x269f')]({'type':_0x12df6b('0x1ade'),'app':'Hangup','exten':_0x4f676f[_0x12df6b('0x1937')]['exten'],'context':_0x4f676f[_0x12df6b('0x1937')]['context'],'priority':_0x1ed1bb,'VoiceExtensionId':_0x4f676f[_0x12df6b('0x1937')]['id']}),_0x16ced4[_0x12df6b('0x16c2')][_0x12df6b('0x55d')]({'id':_0x4f676f[_0x12df6b('0x1937')]['id']},_0x49cbdd()['sortBy'](_0x5a330a,_0x12df6b('0x1a6d')))[_0x12df6b('0x1af5')]['then'](function(_0x337c4c){const _0xb5b775=_0x12df6b;_0x4f676f[_0xb5b775('0x24c4')][_0xb5b775('0x2319')]=_0x337c4c['rows'];})[_0x12df6b('0x16df')](function(_0x77df04){const _0x59d25b=_0x12df6b;console[_0x59d25b('0x1db9')](_0x77df04);});}function _0x5d58a1(_0x123067){const _0x2dd915=_0x866e4c;_0x4f676f[_0x2dd915('0x24c4')]=_0x123067||{'count':0x0,'rows':[]};}function _0x59a8fa(){const _0x5a8d6c=_0x866e4c;return _0x16ced4[_0x5a8d6c('0x231f')][_0x5a8d6c('0x1c53')]({'fields':_0x5a8d6c('0x828')})[_0x5a8d6c('0x1af5')][_0x5a8d6c('0x17e7')](function(_0x199a20){const _0x382dac=_0x5a8d6c;_0x4f676f[_0x382dac('0x1be1')]=_0x199a20;})['catch'](function(_0x4c3ee9){const _0x2f6a28=_0x5a8d6c;console[_0x2f6a28('0x1db9')](_0x4c3ee9);});}function _0x1ca08b(){const _0x5e70f4=_0x866e4c;_0x4f676f[_0x5e70f4('0x1691')]=_0x16ced4[_0x5e70f4('0x16c2')][_0x5e70f4('0x1c53')](_0x4f676f[_0x5e70f4('0x826')],_0x5d58a1)[_0x5e70f4('0x1af5')];}function _0x24f4d8(_0x44a3e2){const _0x14a1df=_0x866e4c;_0x49cbdd()[_0x14a1df('0x5f3')](_0x4f676f[_0x14a1df('0x24c4')][_0x14a1df('0x2319')],{'id':_0x44a3e2['id']}),_0x9a517d(),_0x371624[_0x14a1df('0x130d')]({'title':_0x14a1df('0x22bd'),'msg':_0x44a3e2[_0x14a1df('0x643')]?_0x44a3e2[_0x14a1df('0x643')]+_0x14a1df('0x149f'):''});}function _0x383f47(_0x548f43){const _0x2c103e=_0x866e4c,_0x19ce56=_0x44c87b['confirm']()['title'](_0x2c103e('0x272a'))[_0x2c103e('0x211f')](_0x2c103e('0xa53')+_0x4f676f[_0x2c103e('0x23ac')][_0x2c103e('0x1f73')]+'\x20selected'+_0x2c103e('0xe9f'))[_0x2c103e('0x2095')](_0x2c103e('0x362'))['targetEvent'](_0x548f43)['ok']('OK')['cancel'](_0x2c103e('0x28a0'));_0x44c87b[_0x2c103e('0x28e2')](_0x19ce56)[_0x2c103e('0x17e7')](function(){const _0x51488d=_0x2c103e;_0x4f676f[_0x51488d('0x23ac')]['forEach'](function(_0x1041d6){const _0x24ad81=_0x51488d;_0x49cbdd()[_0x24ad81('0x5f3')](_0x4f676f[_0x24ad81('0x24c4')]['rows'],{'id':_0x1041d6['id']});}),_0x4f676f[_0x51488d('0x23ac')]=[],_0x9a517d();});}_0x1f8830[_0x866e4c('0x207c')](_0x866e4c('0x2b4'),function(){const _0x36f485=_0x866e4c;_0x4f525a[_0x36f485('0x1c65')](_0x36f485('0x1e9'));});}const _0x1e12cc=_0x157852;_0x28df93[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x1dc5'),_0x4376d8('0x1937'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x28df93(_0x6fd331,_0x357e23,_0xe2f0f3,_0x5f3b21,_0x3c63b8,_0x32b7fe,_0x24cea4,_0x267609){const _0xd19e1e=_0x4376d8,_0x2fce5a=this;_0x2fce5a[_0xd19e1e('0x197c')]=_0x24cea4[_0xd19e1e('0x2831')](),_0x2fce5a[_0xd19e1e('0x73e')]=[],_0x2fce5a[_0xd19e1e('0x24d3')]=_0xd19e1e('0x1c6f')+(_0x5f3b21[_0xd19e1e('0x1c54')]||_0x5f3b21[_0xd19e1e('0x643')])[_0xd19e1e('0x14e2')](),_0x2fce5a['custom']=angular[_0xd19e1e('0x14e5')](_0x5f3b21),_0x2fce5a[_0xd19e1e('0x103e')]=_0x267609,_0x2fce5a['hasModulePermissions']={};if(_0x2fce5a['custom'][_0xd19e1e('0x2077')])switch(_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x1c54')]?_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x1c54')][_0xd19e1e('0x19b')]():_0x2fce5a['custom'][_0xd19e1e('0x643')][_0xd19e1e('0x19b')]()){case _0xd19e1e('0x8fa'):break;case _0xd19e1e('0x2526'):{const _0x5f4d96=_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x2077')][_0xd19e1e('0x2007')](',');_0x2fce5a[_0xd19e1e('0x8fa')]['key']=_0x5f4d96[0x0],_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x3e1')]=_0x5f4d96[0x1],_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x1083')]=_0x5f4d96[_0xd19e1e('0x275f')](0x2,_0x5f4d96[_0xd19e1e('0x1f73')])[_0xd19e1e('0x1eba')](',');}break;case _0xd19e1e('0x22ac'):{const _0xc85983=_0x2fce5a['custom'][_0xd19e1e('0x2077')][_0xd19e1e('0x2007')](',');_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x28ab')]=_0xc85983[0x0],_0x2fce5a[_0xd19e1e('0x8fa')]['clientEmail']=_0xc85983[0x1],_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x1bc2')]=_0xc85983[0x2],_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x3e1')]=_0xc85983[0x3],_0x2fce5a['custom'][_0xd19e1e('0x1083')]=_0xc85983[_0xd19e1e('0x275f')](0x4,_0xc85983[_0xd19e1e('0x1f73')])[_0xd19e1e('0x1eba')](',');}break;case _0xd19e1e('0x16a9'):{const _0x17ff3e=_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x2077')][_0xd19e1e('0x2007')](',');_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x1452')]=_0x17ff3e[0x0],_0x2fce5a['custom'][_0xd19e1e('0x1a62')]=_0x17ff3e[0x1],_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x1dcf')]=_0x17ff3e[0x2],_0x2fce5a[_0xd19e1e('0x8fa')]['botname']=_0x17ff3e[0x3],_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x1083')]=_0x17ff3e[_0xd19e1e('0x275f')](0x4,_0x17ff3e[_0xd19e1e('0x1f73')])[_0xd19e1e('0x1eba')](',');}break;case _0xd19e1e('0x96e'):{const _0xc8bf6d=_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x2077')][_0xd19e1e('0x2007')](',');_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x12a6')]=isNaN(_0xc8bf6d[0x0])?_0xc8bf6d[0x0]:parseInt(_0xc8bf6d[0x0],0xa),_0x2fce5a[_0xd19e1e('0x8fa')]['text']=_0xc8bf6d[_0xd19e1e('0x275f')](0x1,_0xc8bf6d[_0xd19e1e('0x1f73')])['join'](',');}break;case _0xd19e1e('0x1603'):_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x132f')]=_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x2077')];break;case _0xd19e1e('0xf2e'):_0x2fce5a['custom'][_0xd19e1e('0x2aa')]=_0x2fce5a['custom']['appdata'][_0xd19e1e('0x2007')]('=')[0x0],_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x175b')]=_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x2077')][_0xd19e1e('0x2007')]('=')[0x1];break;case _0xd19e1e('0x17c6'):_0x2fce5a['custom'][_0xd19e1e('0x87c')]=_0x2fce5a[_0xd19e1e('0x8fa')]['appdata'];break;default:{const _0xb6a438=_0x2fce5a[_0xd19e1e('0x8fa')]['appdata'][_0xd19e1e('0x2007')](',');_0x2fce5a['custom']['app']=_0x49cbdd()['isEmpty'](_0xb6a438[0x0])?_0xb6a438[0x0]:isNaN(_0xb6a438[0x0])?_0xb6a438[0x0]:parseInt(_0xb6a438[0x0],0xa),_0x2fce5a['custom'][_0xd19e1e('0x2077')]=_0x49cbdd()[_0xd19e1e('0x109a')](_0xb6a438[0x1])?_0xb6a438[0x1]:isNaN(_0xb6a438[0x1])?_0xb6a438[0x1]:parseInt(_0xb6a438[0x1],0xa);}break;}else{}_0x2fce5a['custom'][_0xd19e1e('0x412')]&&_0x2fce5a['custom'][_0xd19e1e('0x412')][_0xd19e1e('0x19b')]()===_0xd19e1e('0x1ade')&&_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x1c54')][_0xd19e1e('0x19b')]()==='outbounddial'&&(_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x11d4')]=_0x2fce5a[_0xd19e1e('0x8fa')]['phone']?_0x2fce5a[_0xd19e1e('0x8fa')]['phone']['split']('$')[0x0]:undefined,_0x2fce5a['custom']['callerId']=_0x2fce5a[_0xd19e1e('0x8fa')][_0xd19e1e('0x17f4')]?_0xd19e1e('0x1d28')+_0x2fce5a[_0xd19e1e('0x8fa')]['callerID']:undefined);_0x2fce5a[_0xd19e1e('0x14a9')]=_0x559345,_0x2fce5a[_0xd19e1e('0x136e')]=_0x20b4f4;function _0x559345(){const _0xf8255e=_0xd19e1e;_0x2fce5a[_0xf8255e('0x73e')]=[];const _0x5038db=[];_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x412')]&&_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x412')]['toLowerCase']()===_0xf8255e('0x1ade')&&_0x2fce5a[_0xf8255e('0x8fa')]['appType']===_0xf8255e('0xbdc')&&(_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x2154')]=_0x3c63b8['cutdigits']?(_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x11d4')]||'')+_0xf8255e('0x2265')+_0x3c63b8[_0xf8255e('0x12af')]+'}':(_0x2fce5a[_0xf8255e('0x8fa')]['prefix']||'')+'${EXTEN}',_0x3c63b8[_0xf8255e('0x287')]!=='none'?_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x19')][_0xf8255e('0x2567')](_0xf8255e('0xa22'))<0x0&&(_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x19')]+=_0xf8255e('0xa22')):_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x19')]=_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x19')][_0xf8255e('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x2fce5a['custom'][_0xf8255e('0x1c54')]&&_0x2fce5a[_0xf8255e('0x8fa')]['appType']===_0xf8255e('0x8fa')){}else switch((_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x643')]||_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x1c54')])[_0xf8255e('0x19b')]()){case'set':_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x2077')]=_0x2fce5a['custom'][_0xf8255e('0x2aa')]+'='+_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x175b')];break;case _0xf8255e('0x8fa'):break;default:_0x5038db[0x0]=_0x2fce5a['custom']['app'],_0x5038db[0x1]=_0x2fce5a['custom'][_0xf8255e('0x2077')],_0x2fce5a[_0xf8255e('0x8fa')][_0xf8255e('0x2077')]=_0x5038db[_0xf8255e('0x1eba')](',');}_0x20b4f4(_0x2fce5a[_0xf8255e('0x8fa')]);}function _0x20b4f4(_0x3df8c7){const _0x3585b3=_0xd19e1e;_0x6fd331[_0x3585b3('0x212a')](_0x3df8c7);}}const _0x17c51c=_0x28df93;_0x1f4852[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x14f6'),_0x4376d8('0x199d'),_0x4376d8('0x12f1'),_0x4376d8('0x231f'),'intervals',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x1f4852(_0x3edb45,_0x167290,_0x2cd28e,_0x42f2e9,_0x40fd1f,_0x39fade,_0x13d93f,_0x732bda,_0x53cbd7,_0x422b40){const _0x8c3f5b=_0x4376d8,_0x48142c=this;_0x48142c[_0x8c3f5b('0x197c')]=_0x53cbd7[_0x8c3f5b('0x2831')](),_0x48142c[_0x8c3f5b('0x73e')]=[],_0x48142c[_0x8c3f5b('0x24d3')]='TOOLS.EDIT_INTERVAL',_0x48142c[_0x8c3f5b('0x231f')]=angular[_0x8c3f5b('0x14e5')](_0x40fd1f),_0x48142c[_0x8c3f5b('0x1be1')]=_0x39fade,_0x48142c[_0x8c3f5b('0x42d')]=![],_0x48142c[_0x8c3f5b('0x11e0')]=[_0x8c3f5b('0x1256'),'custom','list'],_0x48142c[_0x8c3f5b('0x103e')]=_0x422b40,_0x48142c['daysOfWeek']=_0x42f2e9[_0x8c3f5b('0x18cb')](),_0x48142c['monthNumber']=_0x42f2e9['getMonthNumber'](),_0x48142c[_0x8c3f5b('0x36e')]=_0x42f2e9[_0x8c3f5b('0x912')](),_0x48142c['daysOfMonth']=_0x42f2e9[_0x8c3f5b('0x37c')]();if(!_0x48142c[_0x8c3f5b('0x231f')])_0x48142c['interval']={'interval':_0x8c3f5b('0x20c3')},_0x48142c['type']=_0x8c3f5b('0x1256'),_0x48142c['title']=_0x8c3f5b('0x1917'),_0x48142c[_0x8c3f5b('0x42d')]=!![];else{if(_0x48142c[_0x8c3f5b('0x231f')][_0x8c3f5b('0x231f')]!==_0x8c3f5b('0x20c3')){_0x48142c[_0x8c3f5b('0x412')]=_0x8c3f5b('0x8fa');const _0x24bfe6=_0x48142c['interval']['interval'][_0x8c3f5b('0x2007')](','),_0x101ae1=_0x24bfe6[0x0],_0x50de18=_0x24bfe6[0x1],_0x1f1fbe=_0x24bfe6[0x2],_0x37be94=_0x24bfe6[0x3];if(_0x101ae1!=='*'){const _0x385206=_0x101ae1[_0x8c3f5b('0x2007')]('-')[0x0],_0x1fbc74=_0x101ae1['split']('-')[0x1];let _0xd1176c;_0xd1176c=new Date(),_0xd1176c[_0x8c3f5b('0x196e')](Number(_0x385206[_0x8c3f5b('0x2007')](':')[0x0])),_0xd1176c[_0x8c3f5b('0x57b')](Number(_0x385206['split'](':')[0x1])),_0x48142c[_0x8c3f5b('0x19bf')]=_0xd1176c,_0xd1176c=new Date(),_0xd1176c[_0x8c3f5b('0x196e')](Number(_0x1fbc74[_0x8c3f5b('0x2007')](':')[0x0])),_0xd1176c['setMinutes'](Number(_0x1fbc74[_0x8c3f5b('0x2007')](':')[0x1])),_0x48142c[_0x8c3f5b('0x1c12')]=_0xd1176c;}_0x50de18!=='*'&&(_0x48142c['dayOfWeekFrom']=_0x50de18[_0x8c3f5b('0x2007')]('-')[0x0],_0x48142c[_0x8c3f5b('0x1627')]=_0x50de18[_0x8c3f5b('0x2007')]('-')[0x1]),_0x1f1fbe!=='*'&&(_0x48142c[_0x8c3f5b('0x18d1')]=_0x1f1fbe[_0x8c3f5b('0x2007')]('-')[0x0],_0x48142c[_0x8c3f5b('0x271d')]=_0x1f1fbe[_0x8c3f5b('0x2007')]('-')[0x1]),_0x37be94!=='*'&&(_0x48142c[_0x8c3f5b('0x88c')]=_0x37be94[_0x8c3f5b('0x2007')]('-')[0x0],_0x48142c[_0x8c3f5b('0x1f09')]=_0x37be94[_0x8c3f5b('0x2007')]('-')[0x1]);}else _0x48142c['type']=_0x8c3f5b('0x1256');}_0x3edb45[_0x8c3f5b('0x16fb')]['id']&&!_0x48142c[_0x8c3f5b('0x231f')][_0x8c3f5b('0xf84')]&&(_0x48142c['interval'][_0x8c3f5b('0x24a9')]=_0x3edb45['params']['id']);_0x48142c['interval'][_0x8c3f5b('0x24a9')]&&_0x48142c[_0x8c3f5b('0x231f')][_0x8c3f5b('0xf84')]&&(_0x48142c['type']='list');_0x48142c['addNewInterval']=_0x423936,_0x48142c[_0x8c3f5b('0x872')]=_0x2fcab4,_0x48142c[_0x8c3f5b('0x136e')]=_0x5add4c;_0x48142c[_0x8c3f5b('0x231f')][_0x8c3f5b('0xf84')]&&(_0x53cbd7[_0x8c3f5b('0x1ba2')](_0x8c3f5b('0x20bf'))?_0x732bda[_0x8c3f5b('0x231f')][_0x8c3f5b('0x1c53')]({'fields':_0x8c3f5b('0x165a'),'IntervalId':_0x8c3f5b('0x9bb'),'nolimit':!![]})[_0x8c3f5b('0x1af5')][_0x8c3f5b('0x17e7')](function(_0xfbd913){const _0x3f5fd1=_0x8c3f5b;_0x48142c[_0x3f5fd1('0x1be1')]=_0xfbd913[_0x3f5fd1('0x2319')]||[];})[_0x8c3f5b('0x16df')](function(_0x3a5262){const _0x4aa027=_0x8c3f5b;_0x13d93f['error']({'title':_0x3a5262[_0x4aa027('0x11c5')]?_0x4aa027('0x14f7')+_0x3a5262[_0x4aa027('0x11c5')]+'\x20-\x20'+_0x3a5262[_0x4aa027('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0x3a5262[_0x4aa027('0x1457')]?JSON[_0x4aa027('0x678')](_0x3a5262[_0x4aa027('0x1457')]):_0x3a5262[_0x4aa027('0x9b6')]()});}):_0x732bda[_0x8c3f5b('0x231f')][_0x8c3f5b('0x1c53')]({'fields':_0x8c3f5b('0x165a'),'IntervalId':_0x8c3f5b('0x9bb'),'nolimit':!![]})[_0x8c3f5b('0x1af5')]['then'](function(_0x361db5){const _0x33a61b=_0x8c3f5b;_0x48142c[_0x33a61b('0x1be1')]=_0x361db5['rows']||[];})['then'](function(){const _0x35b7d1=_0x8c3f5b;return _0x732bda['userProfileSection'][_0x35b7d1('0x1c53')]({'userProfileId':_0x48142c[_0x35b7d1('0x197c')][_0x35b7d1('0x1e76')],'sectionId':0x3ec})[_0x35b7d1('0x1af5')];})['then'](function(_0x4c98f){const _0xa129e4=_0x8c3f5b,_0x177283=_0x4c98f&&_0x4c98f['rows']?_0x4c98f[_0xa129e4('0x2319')][0x0]:null;if(!_0x177283)_0x48142c[_0xa129e4('0x1be1')]=[];else{if(!_0x177283[_0xa129e4('0x9e3')])return _0x732bda[_0xa129e4('0x78d')][_0xa129e4('0x1c53')]({'sectionId':_0x177283['id']})[_0xa129e4('0x1af5')][_0xa129e4('0x17e7')](function(_0x20a749){const _0x4eebb9=_0xa129e4,_0x144b58=_0x20a749&&_0x20a749[_0x4eebb9('0x2319')]?_0x20a749[_0x4eebb9('0x2319')]:[],_0x2d0c63=[];let _0x5a6661=null;_0x48142c['interval']&&(_0x5a6661=_0x49cbdd()[_0x4eebb9('0xe8e')](_0x48142c[_0x4eebb9('0x1be1')],{'name':_0x48142c[_0x4eebb9('0x231f')][_0x4eebb9('0x24a9')]})),_0x5a6661&&!_0x49cbdd()[_0x4eebb9('0x26f8')](_0x144b58,[_0x4eebb9('0x5db'),_0x5a6661['id']])&&_0x48142c['intervals']['forEach'](function(_0x2875c8){const _0x125908=_0x4eebb9;_0x2875c8['id']===_0x5a6661['id']&&(_0x2875c8[_0x125908('0xe5c')]=![],_0x2d0c63[_0x125908('0x269f')](_0x2875c8));}),_0x48142c[_0x4eebb9('0x1be1')]=_0x2d0c63;});}})[_0x8c3f5b('0x16df')](function(_0x26a238){const _0x1cfa07=_0x8c3f5b;_0x13d93f[_0x1cfa07('0x1db9')]({'title':_0x26a238[_0x1cfa07('0x11c5')]?_0x1cfa07('0x14f7')+_0x26a238[_0x1cfa07('0x11c5')]+'\x20-\x20'+_0x26a238[_0x1cfa07('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0x26a238['data']?JSON[_0x1cfa07('0x678')](_0x26a238['data']):_0x26a238[_0x1cfa07('0x9b6')]()});}));function _0x1150ec(){const _0x343cfc=_0x8c3f5b;switch(_0x48142c[_0x343cfc('0x412')]){case _0x343cfc('0x1256'):case _0x343cfc('0x134c'):return _0x343cfc('0x20c3');case'custom':{const _0xf0635f=[];if(_0x48142c[_0x343cfc('0x19bf')]!=='*'&&_0x48142c['timeRangeFrom']&&_0x48142c['timeRangeTo']){const _0x44e606=(_0x48142c[_0x343cfc('0x19bf')][_0x343cfc('0x13c6')]()<0xa?'0':'')+_0x48142c[_0x343cfc('0x19bf')][_0x343cfc('0x13c6')]()+':'+((_0x48142c[_0x343cfc('0x19bf')]['getMinutes']()<0xa?'0':'')+_0x48142c[_0x343cfc('0x19bf')][_0x343cfc('0xf42')]()),_0x27aa78=(_0x48142c['timeRangeTo'][_0x343cfc('0x13c6')]()<0xa?'0':'')+_0x48142c[_0x343cfc('0x1c12')][_0x343cfc('0x13c6')]()+':'+((_0x48142c[_0x343cfc('0x1c12')][_0x343cfc('0xf42')]()<0xa?'0':'')+_0x48142c[_0x343cfc('0x1c12')][_0x343cfc('0xf42')]());_0xf0635f[_0x343cfc('0x269f')](_0x44e606+'-'+_0x27aa78);}else _0xf0635f[_0x343cfc('0x269f')]('*');return _0x48142c[_0x343cfc('0x1a98')]?_0x48142c[_0x343cfc('0x1627')]?_0xf0635f['push'](_0x48142c[_0x343cfc('0x1a98')]+'-'+_0x48142c[_0x343cfc('0x1627')]):_0xf0635f[_0x343cfc('0x269f')](_0x48142c['dayOfWeekFrom']):_0xf0635f[_0x343cfc('0x269f')]('*'),_0x48142c[_0x343cfc('0x18d1')]?_0x48142c['monthDayTo']?_0xf0635f[_0x343cfc('0x269f')](_0x48142c[_0x343cfc('0x18d1')]+'-'+_0x48142c['monthDayTo']):_0xf0635f['push'](_0x48142c[_0x343cfc('0x18d1')]):_0xf0635f[_0x343cfc('0x269f')]('*'),_0x48142c[_0x343cfc('0x88c')]?_0x48142c[_0x343cfc('0x1f09')]?_0xf0635f[_0x343cfc('0x269f')](_0x48142c[_0x343cfc('0x88c')]+'-'+_0x48142c[_0x343cfc('0x1f09')]):_0xf0635f['push'](_0x48142c['monthFrom']):_0xf0635f[_0x343cfc('0x269f')]('*'),_0xf0635f[_0x343cfc('0x1eba')]();}}}function _0x423936(){const _0x250d55=_0x8c3f5b;_0x48142c[_0x250d55('0x73e')]=[],_0x48142c['interval'][_0x250d55('0x231f')]=_0x1150ec(),_0x732bda[_0x250d55('0x231f')][_0x250d55('0x2439')](_0x48142c[_0x250d55('0x231f')])[_0x250d55('0x1af5')][_0x250d55('0x17e7')](function(_0x128371){const _0x5b0374=_0x250d55;_0x48142c['intervals'][_0x5b0374('0x269f')](_0x128371),_0x13d93f['success']({'title':_0x5b0374('0x2378'),'msg':_0x48142c[_0x5b0374('0x231f')][_0x5b0374('0x2aa')]?_0x48142c[_0x5b0374('0x231f')][_0x5b0374('0x2aa')]+_0x5b0374('0x15a'):''}),_0x5add4c();})[_0x250d55('0x16df')](function(_0x432c6c){const _0x3005ee=_0x250d55;console[_0x3005ee('0x1db9')](_0x432c6c),_0x48142c[_0x3005ee('0x73e')]=_0x432c6c[_0x3005ee('0x1457')][_0x3005ee('0x73e')]||[{'message':_0x432c6c['toString'](),'type':_0x3005ee('0x2475')}];});}function _0x2fcab4(){const _0x19bfc9=_0x8c3f5b;_0x48142c[_0x19bfc9('0x73e')]=[],_0x48142c[_0x19bfc9('0x231f')][_0x19bfc9('0x231f')]=_0x1150ec(),_0x48142c[_0x19bfc9('0x231f')]['application']?(_0x48142c[_0x19bfc9('0x412')]!==_0x19bfc9('0x134c')&&(_0x48142c[_0x19bfc9('0x231f')]['IntervalId']=null),_0x5add4c(_0x48142c[_0x19bfc9('0x231f')])):_0x732bda[_0x19bfc9('0x231f')][_0x19bfc9('0x27ba')]({'id':_0x48142c[_0x19bfc9('0x231f')]['id']},_0x48142c[_0x19bfc9('0x231f')])[_0x19bfc9('0x1af5')][_0x19bfc9('0x17e7')](function(_0x4784ef){const _0x16f412=_0x19bfc9,_0x19367c=_0x49cbdd()['find'](_0x48142c['intervals'],{'id':_0x4784ef['id']});_0x19367c&&_0x49cbdd()[_0x16f412('0x1ced')](_0x19367c,_0x4784ef),_0x13d93f[_0x16f412('0x130d')]({'title':_0x16f412('0x6a9'),'msg':_0x16f412('0x2792')}),_0x5add4c();})['catch'](function(_0x324b58){const _0x1ac455=_0x19bfc9;console[_0x1ac455('0x1db9')](_0x324b58),_0x48142c[_0x1ac455('0x73e')]=_0x324b58[_0x1ac455('0x1457')]['errors']||[{'message':_0x324b58[_0x1ac455('0x9b6')](),'type':_0x1ac455('0xed5')}];});}function _0x5add4c(_0x364516){_0x167290['hide'](_0x364516);}}const _0x13d44f=_0x1f4852;_0x1a6da0[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'outboundrouteApp',_0x4376d8('0x1937'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x1a6da0(_0x31e512,_0x3b6b95,_0x5e29e7,_0x25f446,_0x1a1e4a,_0x26982e,_0x1ed020,_0x37c0dd){const _0x296fe3=_0x4376d8,_0x17571f=this;_0x17571f[_0x296fe3('0x197c')]=_0x1ed020['getCurrentUser'](),_0x17571f['errors']=[],_0x17571f[_0x296fe3('0x24d3')]=_0x296fe3('0x1c6f')+(_0x25f446[_0x296fe3('0x1c54')]||_0x25f446[_0x296fe3('0x643')])[_0x296fe3('0x14e2')](),_0x17571f[_0x296fe3('0x1711')]=angular['copy'](_0x25f446),_0x17571f[_0x296fe3('0x103e')]=_0x37c0dd,_0x17571f['hasModulePermissions']={};if(_0x17571f[_0x296fe3('0x1711')]['appdata'])switch(_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x1c54')]?_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x1c54')][_0x296fe3('0x19b')]():_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x643')][_0x296fe3('0x19b')]()){case _0x296fe3('0x8fa'):break;case'dialogflow':{const _0x3a5413=_0x17571f['outbounddial'][_0x296fe3('0x2077')]['split'](',');_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0xdb5')]=_0x3a5413[0x0],_0x17571f[_0x296fe3('0x1711')]['language']=_0x3a5413[0x1],_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x1083')]=_0x3a5413[_0x296fe3('0x275f')](0x2,_0x3a5413['length'])['join'](',');}break;case _0x296fe3('0x22ac'):{const _0x1d4a9d=_0x17571f[_0x296fe3('0x1711')]['appdata']['split'](',');_0x17571f[_0x296fe3('0x1711')]['projectId']=_0x1d4a9d[0x0],_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x2814')]=_0x1d4a9d[0x1],_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x1bc2')]=_0x1d4a9d[0x2],_0x17571f['outbounddial'][_0x296fe3('0x3e1')]=_0x1d4a9d[0x3],_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x1083')]=_0x1d4a9d[_0x296fe3('0x275f')](0x4,_0x1d4a9d[_0x296fe3('0x1f73')])[_0x296fe3('0x1eba')](',');}break;case'amazonlex':{const _0xf709de=_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x2077')][_0x296fe3('0x2007')](',');_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x1452')]=_0xf709de[0x0],_0x17571f['outbounddial']['secretaccesskey']=_0xf709de[0x1],_0x17571f['outbounddial'][_0x296fe3('0x1dcf')]=_0xf709de[0x2],_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x4a')]=_0xf709de[0x3],_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x1083')]=_0xf709de[_0x296fe3('0x275f')](0x4,_0xf709de[_0x296fe3('0x1f73')])[_0x296fe3('0x1eba')](',');}break;case'autoreply':{const _0x226328=_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x2077')]['split'](',');_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x12a6')]=isNaN(_0x226328[0x0])?_0x226328[0x0]:parseInt(_0x226328[0x0],0xa),_0x17571f['outbounddial']['text']=_0x226328[_0x296fe3('0x275f')](0x1,_0x226328['length'])[_0x296fe3('0x1eba')](',');}break;case _0x296fe3('0x1603'):_0x17571f['outbounddial'][_0x296fe3('0x132f')]=_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x2077')];break;case _0x296fe3('0xf2e'):_0x17571f['outbounddial'][_0x296fe3('0x2aa')]=_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x2077')][_0x296fe3('0x2007')]('=')[0x0],_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x175b')]=_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x2077')][_0x296fe3('0x2007')]('=')[0x1];break;case _0x296fe3('0x17c6'):_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x87c')]=_0x17571f[_0x296fe3('0x1711')]['appdata'];break;default:{const _0x351037=_0x17571f[_0x296fe3('0x1711')]['appdata'][_0x296fe3('0x2007')](',');_0x17571f[_0x296fe3('0x1711')]['trunk']=_0x351037[0x0][_0x296fe3('0x2007')]('/')[0x1],_0x17571f['outbounddial'][_0x296fe3('0x2154')]=_0x351037[0x0]['split']('/')[0x2],_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0xd2f')]=_0x49cbdd()['isEmpty'](_0x351037[0x1])?_0x351037[0x1]:isNaN(_0x351037[0x1])?_0x351037[0x1]:parseInt(_0x351037[0x1],0xa),_0x17571f[_0x296fe3('0x1711')]['options']=_0x49cbdd()['isEmpty'](_0x351037[0x2])?_0x351037[0x2]:isNaN(_0x351037[0x2])?_0x351037[0x2]:parseInt(_0x351037[0x2],0xa),_0x17571f[_0x296fe3('0x1711')]['url']=_0x49cbdd()['isEmpty'](_0x351037[0x3])?_0x351037[0x3]:isNaN(_0x351037[0x3])?_0x351037[0x3]:parseInt(_0x351037[0x3],0xa);}break;}else{}_0x17571f['outbounddial'][_0x296fe3('0x412')]&&_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x412')][_0x296fe3('0x19b')]()===_0x296fe3('0x1ade')&&_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x1c54')][_0x296fe3('0x19b')]()===_0x296fe3('0x1711')&&(_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x11d4')]=_0x17571f['outbounddial'][_0x296fe3('0x2154')]?_0x17571f[_0x296fe3('0x1711')]['phone'][_0x296fe3('0x2007')]('$')[0x0]:undefined,_0x17571f['outbounddial']['callerId']=_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x17f4')]?_0x296fe3('0x1d28')+_0x17571f[_0x296fe3('0x1711')][_0x296fe3('0x17f4')]:undefined);_0x17571f[_0x296fe3('0x14a9')]=_0x48ced3,_0x17571f[_0x296fe3('0x136e')]=_0x517e20,_0x1ed020[_0x296fe3('0x1ba2')](_0x296fe3('0x20bf'))?_0x26982e[_0x296fe3('0x252a')][_0x296fe3('0x1c53')]({'fields':_0x296fe3('0x12d2'),'sort':_0x296fe3('0x2aa'),'nolimit':_0x296fe3('0xe34')})[_0x296fe3('0x1af5')]['then'](function(_0x59922f){const _0x37ae58=_0x296fe3;_0x17571f[_0x37ae58('0x19cb')]=_0x59922f['rows']||[];})[_0x296fe3('0x16df')](function(_0x5edfde){const _0x1a7066=_0x296fe3;_0x5e29e7[_0x1a7066('0x1db9')]({'title':_0x5edfde['status']?_0x1a7066('0x14f7')+_0x5edfde['status']+'\x20-\x20'+_0x5edfde[_0x1a7066('0x1833')]:'SYSTEM:GET_TRUNKS','msg':_0x5edfde[_0x1a7066('0x1457')]?JSON[_0x1a7066('0x678')](_0x5edfde[_0x1a7066('0x1457')]):_0x5edfde[_0x1a7066('0x9b6')]()});}):_0x26982e[_0x296fe3('0x252a')]['get']({'fields':_0x296fe3('0x12d2'),'sort':_0x296fe3('0x2aa'),'nolimit':_0x296fe3('0xe34')})[_0x296fe3('0x1af5')]['then'](function(_0xb8fca){const _0x2206c1=_0x296fe3;_0x17571f[_0x2206c1('0x19cb')]=_0xb8fca[_0x2206c1('0x2319')]||[];})[_0x296fe3('0x17e7')](function(){const _0x5d67e4=_0x296fe3;return _0x26982e[_0x5d67e4('0x383')][_0x5d67e4('0x1c53')]({'userProfileId':_0x17571f['currentUser'][_0x5d67e4('0x1e76')],'sectionId':0x3f3})[_0x5d67e4('0x1af5')];})[_0x296fe3('0x17e7')](function(_0x2e5745){const _0x26533a=_0x296fe3,_0x29ebe1=_0x2e5745&&_0x2e5745[_0x26533a('0x2319')]?_0x2e5745[_0x26533a('0x2319')][0x0]:null;if(!_0x29ebe1){const _0x2b0e5f=[];let _0x1f171a=null;_0x17571f[_0x26533a('0x1711')]&&(_0x1f171a=_0x49cbdd()[_0x26533a('0xe8e')](_0x17571f[_0x26533a('0x19cb')],{'name':_0x17571f[_0x26533a('0x1711')][_0x26533a('0x252a')]}));for(let _0x29e058=0x0;_0x29e058<_0x17571f[_0x26533a('0x19cb')][_0x26533a('0x1f73')];_0x29e058++){_0x1f171a&&_0x17571f[_0x26533a('0x19cb')][_0x29e058]['id']===_0x1f171a['id']&&(_0x17571f[_0x26533a('0x19cb')][_0x29e058][_0x26533a('0xe5c')]=![],_0x2b0e5f[_0x26533a('0x269f')](_0x17571f[_0x26533a('0x19cb')][_0x29e058]));}_0x17571f[_0x26533a('0x19cb')]=_0x2b0e5f;}else{if(!_0x29ebe1['autoAssociation'])return _0x26982e[_0x26533a('0x78d')][_0x26533a('0x1c53')]({'sectionId':_0x29ebe1['id']})[_0x26533a('0x1af5')]['then'](function(_0x4fd833){const _0x3d12bb=_0x26533a,_0x4845e4=_0x49cbdd()[_0x3d12bb('0x787')](_0x4fd833[_0x3d12bb('0x2319')],function(_0x39811f){const _0x5151f1=_0x3d12bb;return _0x49cbdd()[_0x5151f1('0xe8e')](_0x17571f[_0x5151f1('0x19cb')],{'id':_0x39811f[_0x5151f1('0x5db')]});});let _0x4b352c=null;_0x17571f[_0x3d12bb('0x1711')]&&(_0x4b352c=_0x49cbdd()[_0x3d12bb('0xe8e')](_0x17571f[_0x3d12bb('0x19cb')],{'name':_0x17571f['outbounddial'][_0x3d12bb('0x252a')]}));if(_0x4b352c&&!_0x49cbdd()[_0x3d12bb('0x26f8')](_0x4845e4,['id',_0x4b352c['id']])){const _0x4d2e5a=_0x49cbdd()[_0x3d12bb('0xe8e')](_0x17571f[_0x3d12bb('0x19cb')],{'id':_0x4b352c['id']});_0x4d2e5a['canSelect']=![],_0x4845e4[_0x3d12bb('0x269f')](_0x4d2e5a);}_0x17571f[_0x3d12bb('0x19cb')]=_0x4845e4;});}})[_0x296fe3('0x16df')](function(_0x2012d3){const _0x51db85=_0x296fe3;_0x5e29e7[_0x51db85('0x1db9')]({'title':_0x2012d3[_0x51db85('0x11c5')]?'API:'+_0x2012d3[_0x51db85('0x11c5')]+_0x51db85('0x16e4')+_0x2012d3[_0x51db85('0x1833')]:_0x51db85('0x2825'),'msg':_0x2012d3[_0x51db85('0x1457')]?JSON['stringify'](_0x2012d3['data']):_0x2012d3[_0x51db85('0x9b6')]()});}),_0x1ed020['hasRole'](_0x296fe3('0x20bf'))?_0x26982e[_0x296fe3('0x1132')]['get']({'fields':_0x296fe3('0x12d2'),'sort':_0x296fe3('0x2aa'),'nolimit':_0x296fe3('0xe34')})[_0x296fe3('0x1af5')]['then'](function(_0x108573){const _0x39b3f1=_0x296fe3;_0x17571f[_0x39b3f1('0x1522')]=_0x108573['rows']||[];})['catch'](function(_0x54f073){const _0x33c267=_0x296fe3;_0x5e29e7[_0x33c267('0x1db9')]({'title':_0x54f073[_0x33c267('0x11c5')]?_0x33c267('0x14f7')+_0x54f073['status']+'\x20-\x20'+_0x54f073[_0x33c267('0x1833')]:_0x33c267('0x14e7'),'msg':_0x54f073[_0x33c267('0x1457')]?JSON[_0x33c267('0x678')](_0x54f073[_0x33c267('0x1457')]):_0x54f073[_0x33c267('0x9b6')]()});}):_0x26982e[_0x296fe3('0x1132')][_0x296fe3('0x1c53')]({'fields':_0x296fe3('0x12d2'),'sort':_0x296fe3('0x2aa'),'nolimit':_0x296fe3('0xe34')})['$promise'][_0x296fe3('0x17e7')](function(_0x3d2e24){const _0x18466f=_0x296fe3;_0x17571f['tags']=_0x3d2e24[_0x18466f('0x2319')]||[];})[_0x296fe3('0x17e7')](function(){const _0xc026af=_0x296fe3;return _0x26982e[_0xc026af('0x383')]['get']({'userProfileId':_0x17571f[_0xc026af('0x197c')][_0xc026af('0x1e76')],'sectionId':0x3f0})[_0xc026af('0x1af5')];})['then'](function(_0x334d2d){const _0x379b30=_0x296fe3,_0x108ce5=_0x334d2d&&_0x334d2d[_0x379b30('0x2319')]?_0x334d2d['rows'][0x0]:null;if(!_0x108ce5){const _0x124ef4=[];let _0x27355a=null;_0x17571f[_0x379b30('0x1711')]&&(_0x27355a=_0x49cbdd()[_0x379b30('0xe8e')](_0x17571f[_0x379b30('0x1522')],{'name':_0x17571f[_0x379b30('0x1711')][_0x379b30('0x1132')]}));for(let _0x102f39=0x0;_0x102f39<_0x17571f[_0x379b30('0x1522')][_0x379b30('0x1f73')];_0x102f39++){_0x27355a&&_0x17571f[_0x379b30('0x1522')][_0x102f39]['id']===_0x27355a['id']&&(_0x17571f[_0x379b30('0x1522')][_0x102f39]['canSelect']=![],_0x124ef4[_0x379b30('0x269f')](_0x17571f[_0x379b30('0x1522')][_0x102f39]));}_0x17571f[_0x379b30('0x1522')]=_0x124ef4;}else{if(!_0x108ce5['autoAssociation'])return _0x26982e['userProfileResource'][_0x379b30('0x1c53')]({'sectionId':_0x108ce5['id']})[_0x379b30('0x1af5')][_0x379b30('0x17e7')](function(_0x470c7c){const _0x3638e2=_0x379b30,_0x256c25=_0x49cbdd()[_0x3638e2('0x787')](_0x470c7c['rows'],function(_0x9d916e){const _0x52cb21=_0x3638e2;return _0x49cbdd()[_0x52cb21('0xe8e')](_0x17571f[_0x52cb21('0x1522')],{'id':_0x9d916e[_0x52cb21('0x5db')]});});let _0x2059f1=null;_0x17571f[_0x3638e2('0x1711')]&&(_0x2059f1=_0x49cbdd()[_0x3638e2('0xe8e')](_0x17571f[_0x3638e2('0x1522')],{'name':_0x17571f[_0x3638e2('0x1711')][_0x3638e2('0x1132')]}));if(_0x2059f1&&!_0x49cbdd()[_0x3638e2('0x26f8')](_0x256c25,['id',_0x2059f1['id']])){const _0x30b89a=_0x49cbdd()['find'](_0x17571f['tags'],{'id':_0x2059f1['id']});_0x30b89a['canSelect']=![],_0x256c25['push'](_0x30b89a);}_0x17571f[_0x3638e2('0x1522')]=_0x256c25;});}})['catch'](function(_0x63bd58){const _0x528d14=_0x296fe3;_0x5e29e7[_0x528d14('0x1db9')]({'title':_0x63bd58[_0x528d14('0x11c5')]?_0x528d14('0x14f7')+_0x63bd58[_0x528d14('0x11c5')]+_0x528d14('0x16e4')+_0x63bd58[_0x528d14('0x1833')]:_0x528d14('0x1221'),'msg':_0x63bd58[_0x528d14('0x1457')]?JSON[_0x528d14('0x678')](_0x63bd58[_0x528d14('0x1457')]):_0x63bd58[_0x528d14('0x9b6')]()});});function _0x48ced3(){const _0x4f0736=_0x296fe3;_0x17571f[_0x4f0736('0x73e')]=[];const _0x2bd2d1=[];_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x412')]&&_0x17571f['outbounddial']['type'][_0x4f0736('0x19b')]()==='outbound'&&_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x1c54')]===_0x4f0736('0xbdc')&&(_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x2154')]=_0x1a1e4a[_0x4f0736('0x12af')]?(_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x11d4')]||'')+_0x4f0736('0x2265')+_0x1a1e4a[_0x4f0736('0x12af')]+'}':(_0x17571f[_0x4f0736('0x1711')]['prefix']||'')+_0x4f0736('0x150e'),_0x1a1e4a['recordingFormat']!=='none'?_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x19')]['indexOf'](_0x4f0736('0xa22'))<0x0&&(_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x19')]+='U(xcally-mixmonitor-context)'):_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x19')]=_0x17571f[_0x4f0736('0x1711')]['options'][_0x4f0736('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x1c54')]&&_0x17571f['outbounddial'][_0x4f0736('0x1c54')]===_0x4f0736('0x8fa')){}else switch((_0x17571f[_0x4f0736('0x1711')]['app']||_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x1c54')])['toLowerCase']()){case'set':_0x17571f['outbounddial'][_0x4f0736('0x2077')]=_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x2aa')]+'='+_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x175b')];break;case _0x4f0736('0x8fa'):break;default:_0x2bd2d1[0x0]=[_0x4f0736('0xbf1'),_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x252a')],_0x17571f[_0x4f0736('0x1711')]['phone']][_0x4f0736('0x1eba')]('/'),_0x2bd2d1[0x1]=_0x17571f['outbounddial']['timeout'],_0x2bd2d1[0x2]=_0x17571f[_0x4f0736('0x1711')][_0x4f0736('0x19')],_0x2bd2d1[0x3]=_0x17571f[_0x4f0736('0x1711')]['url'],_0x17571f['outbounddial']['appdata']=_0x2bd2d1[_0x4f0736('0x1eba')](',');}_0x517e20(_0x17571f['outbounddial']);}function _0x517e20(_0x4e3823){const _0x4b096e=_0x296fe3;_0x31e512[_0x4b096e('0x212a')](_0x4e3823);}}const _0x34bfba=_0x1a6da0;_0x2168de[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$translate',_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1937'),_0x4376d8('0x383')];function _0x2168de(_0x2b29d4,_0x480553,_0x1af282,_0x180c52,_0xaca10e,_0x3c0c4c,_0x3d0374,_0x243de4,_0x545b32,_0x5424ee,_0x1f09bb,_0x5c896a){const _0x4b61d1=_0x4376d8,_0x5ab805=this;_0x5ab805[_0x4b61d1('0x197c')]=_0x5424ee[_0x4b61d1('0x2831')](),_0x5ab805[_0x4b61d1('0x1d11')]=_0x3c0c4c,_0x5ab805[_0x4b61d1('0x1aeb')]=_0x3d0374,_0x5ab805['passwordPattern']=_0x5ab805[_0x4b61d1('0x1aeb')][_0x4b61d1('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5ab805[_0x4b61d1('0xaed')]=_0x480553['protocol']()+_0x4b61d1('0x14')+_0x480553['host'](),_0x5ab805[_0x4b61d1('0x1937')]=_0x1f09bb||_0x2b29d4[_0x4b61d1('0x16fb')][_0x4b61d1('0x1937')]||{},_0x5ab805[_0x4b61d1('0x383')]=_0x5c896a&&_0x5c896a[_0x4b61d1('0x335')]==0x1?_0x5c896a[_0x4b61d1('0x2319')][0x0]:null,_0x5ab805[_0x4b61d1('0x103e')]=_0x5424ee[_0x4b61d1('0x17a9')](_0x5ab805['userProfileSection']?_0x5ab805[_0x4b61d1('0x383')][_0x4b61d1('0x103e')]:null),_0x5ab805[_0x4b61d1('0x6ee')]={},_0x5ab805[_0x4b61d1('0xde7')]=_0x2b29d4[_0x4b61d1('0x16fb')][_0x4b61d1('0x1523')]||0x0,_0x5ab805[_0x4b61d1('0x99f')]=_0x545b32[_0x4b61d1('0x1178')],_0x5ab805['gotoOutboundRoutes']=_0x338a83,_0x5ab805['saveOutboundRoute']=_0x354915,_0x5424ee[_0x4b61d1('0x1ba2')]('admin')?_0x243de4[_0x4b61d1('0xc76')][_0x4b61d1('0x1c53')]({'fields':'id,name','sort':'name','nolimit':'true'})[_0x4b61d1('0x1af5')][_0x4b61d1('0x17e7')](function(_0x73ddc2){const _0x433eb6=_0x4b61d1;_0x5ab805[_0x433eb6('0xfb3')]=_0x73ddc2[_0x433eb6('0x2319')]||[];})['catch'](function(_0x11f754){const _0x2c6a89=_0x4b61d1;_0x545b32['error']({'title':_0x11f754[_0x2c6a89('0x11c5')]?_0x2c6a89('0x14f7')+_0x11f754['status']+_0x2c6a89('0x16e4')+_0x11f754[_0x2c6a89('0x1833')]:_0x2c6a89('0xa2c'),'msg':_0x11f754[_0x2c6a89('0x1457')]?JSON[_0x2c6a89('0x678')](_0x11f754[_0x2c6a89('0x1457')]):_0x11f754[_0x2c6a89('0x9b6')]()});}):_0x243de4[_0x4b61d1('0xc76')]['get']({'fields':'id,name','sort':_0x4b61d1('0x2aa'),'nolimit':_0x4b61d1('0xe34')})[_0x4b61d1('0x1af5')]['then'](function(_0x221a84){const _0x36c216=_0x4b61d1;_0x5ab805[_0x36c216('0xfb3')]=_0x221a84['rows']||[];})[_0x4b61d1('0x17e7')](function(){const _0x38b60e=_0x4b61d1;return _0x243de4[_0x38b60e('0x383')][_0x38b60e('0x1c53')]({'userProfileId':_0x5ab805[_0x38b60e('0x197c')][_0x38b60e('0x1e76')],'sectionId':0x195})[_0x38b60e('0x1af5')];})['then'](function(_0x2ef74e){const _0x2771d8=_0x4b61d1,_0x1e05ac=_0x2ef74e&&_0x2ef74e[_0x2771d8('0x2319')]?_0x2ef74e[_0x2771d8('0x2319')][0x0]:null;if(!_0x1e05ac)return _0x243de4[_0x2771d8('0xc76')][_0x2771d8('0x1c53')]({'fields':_0x2771d8('0x12d2'),'sort':'name','nolimit':_0x2771d8('0xe34'),'defaultEntry':0x1})[_0x2771d8('0x1af5')]['then'](function(_0x24e157){const _0xd9eb4e=_0x2771d8;_0x5ab805['contexts']=_0x24e157[_0xd9eb4e('0x2319')]||[];});else{if(!_0x1e05ac[_0x2771d8('0x9e3')])return _0x243de4[_0x2771d8('0x78d')][_0x2771d8('0x1c53')]({'sectionId':_0x1e05ac['id']})[_0x2771d8('0x1af5')][_0x2771d8('0x17e7')](function(_0x409de8){const _0x4a26b7=_0x2771d8,_0xd5cfbb=_0x49cbdd()['map'](_0x409de8[_0x4a26b7('0x2319')],function(_0x75c062){const _0x478938=_0x4a26b7;return _0x49cbdd()[_0x478938('0xe8e')](_0x5ab805[_0x478938('0xfb3')],{'id':_0x75c062[_0x478938('0x5db')]});});let _0x3d06c1=null;_0x5ab805[_0x4a26b7('0x1937')]&&(_0x3d06c1=_0x49cbdd()[_0x4a26b7('0xe8e')](_0x5ab805[_0x4a26b7('0xfb3')],{'name':_0x5ab805[_0x4a26b7('0x1937')][_0x4a26b7('0x17b3')]}));if(_0x3d06c1&&!_0x49cbdd()[_0x4a26b7('0x26f8')](_0xd5cfbb,['id',_0x3d06c1['id']])){const _0x39c11a=_0x49cbdd()[_0x4a26b7('0xe8e')](_0x5ab805[_0x4a26b7('0xfb3')],{'id':_0x3d06c1['id']});_0x39c11a[_0x4a26b7('0xe5c')]=![],_0xd5cfbb[_0x4a26b7('0x269f')](_0x39c11a);}_0x5ab805[_0x4a26b7('0xfb3')]=_0xd5cfbb;});}})[_0x4b61d1('0x16df')](function(_0x4f3b2b){const _0x91c0b0=_0x4b61d1;_0x545b32['error']({'title':_0x4f3b2b[_0x91c0b0('0x11c5')]?_0x91c0b0('0x14f7')+_0x4f3b2b[_0x91c0b0('0x11c5')]+_0x91c0b0('0x16e4')+_0x4f3b2b[_0x91c0b0('0x1833')]:_0x91c0b0('0x78'),'msg':_0x4f3b2b[_0x91c0b0('0x1457')]?JSON[_0x91c0b0('0x678')](_0x4f3b2b[_0x91c0b0('0x1457')]):_0x4f3b2b[_0x91c0b0('0x9b6')]()});});function _0x338a83(){const _0x2aec2b=_0x4b61d1;_0x2b29d4['go']('app.voice.outboundroutes',{},{'reload':_0x2aec2b('0x289')});}function _0x354915(){const _0x151c95=_0x4b61d1;_0x243de4[_0x151c95('0x16c2')]['update']({'id':_0x5ab805[_0x151c95('0x1937')]['id']},_0x5ab805[_0x151c95('0x1937')])[_0x151c95('0x1af5')][_0x151c95('0x17e7')](function(){const _0x5a275e=_0x151c95;_0x545b32[_0x5a275e('0x130d')]({'title':'OutboundRoute\x20updated!','msg':_0x5ab805[_0x5a275e('0x1937')][_0x5a275e('0x2aa')]?_0x5ab805[_0x5a275e('0x1937')][_0x5a275e('0x2aa')]+'\x20has\x20been\x20updated!':''});})[_0x151c95('0x16df')](function(_0x4a5fe4){const _0x14236b=_0x151c95;_0x545b32[_0x14236b('0x1db9')]({'title':_0x4a5fe4['status']?_0x14236b('0x14f7')+_0x4a5fe4[_0x14236b('0x11c5')]+_0x14236b('0x16e4')+_0x4a5fe4[_0x14236b('0x1833')]:_0x14236b('0xec6'),'msg':_0x4a5fe4['data']?JSON[_0x14236b('0x678')](_0x4a5fe4[_0x14236b('0x1457')]):_0x4a5fe4['toString']()});});}}const _0x16306f=_0x2168de,_0x3aefbb=_0x4cf2bc['p']+_0x4376d8('0x132e');_0x56b45d['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),'outboundroutes','userProfile','userProfileSection',_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x56b45d(_0x494645,_0x4e1f5d,_0x560d68,_0x2d72d0,_0x2ae172,_0x239ad3,_0x39bde9,_0x3637de,_0x90f948,_0x2b7d40,_0x16ff9d,_0x2f5633,_0x49bf28,_0x4ca0ba,_0x5c0911,_0x4a6774,_0x33edda){const _0xf6c039=_0x4376d8,_0x4d36ab=this;_0x4d36ab['license']=_0x4a6774,_0x4d36ab[_0xf6c039('0x1aeb')]=_0x33edda,_0x4d36ab[_0xf6c039('0x197c')]=_0x5c0911[_0xf6c039('0x2831')](),_0x4d36ab[_0xf6c039('0x1167')]=_0x90f948||{'count':0x0,'rows':[]},_0x4d36ab[_0xf6c039('0xdeb')]=_0x2b7d40,_0x4d36ab[_0xf6c039('0x383')]=_0x16ff9d&&_0x16ff9d[_0xf6c039('0x335')]==0x1?_0x16ff9d[_0xf6c039('0x2319')][0x0]:null,_0x4d36ab[_0xf6c039('0x103e')]=_0x5c0911[_0xf6c039('0x17a9')](_0x4d36ab['userProfileSection']?_0x4d36ab['userProfileSection'][_0xf6c039('0x103e')]:null),_0x4d36ab[_0xf6c039('0x23c3')]=_0xf6c039('0x1167'),_0x4d36ab[_0xf6c039('0x26a1')]='',_0x4d36ab[_0xf6c039('0x24e1')]=null,_0x4d36ab[_0xf6c039('0x1442')]=[],_0x4d36ab[_0xf6c039('0x826')]={'fields':_0xf6c039('0xaec'),'type':'outbound','sort':'-updatedAt','VoiceExtensionId':_0xf6c039('0x9bb'),'limit':0xa,'page':0x1},_0x4d36ab['arrayrecordingFormat']=_0x49cbdd()[_0xf6c039('0x8de')]([{'option':'none','value':_0xf6c039('0x1104')},{'option':_0xf6c039('0x8f4'),'value':_0xf6c039('0x2744')},{'option':_0xf6c039('0x1daa'),'value':_0xf6c039('0x2689')},{'option':_0xf6c039('0xbc3'),'value':'\x27gsm\x27'}],function(_0x1a6f5b){const _0x1bb3c5=_0xf6c039;return _0x49cbdd()['replace'](_0x1a6f5b[_0x1bb3c5('0x175b')],new RegExp('\x27','g'),'');}),_0x4d36ab[_0xf6c039('0xcd4')]=_0x2a3fb8,_0x4d36ab[_0xf6c039('0xbf4')]=_0x2fee27,_0x4d36ab[_0xf6c039('0x130d')]=_0x3279c7,_0x4d36ab[_0xf6c039('0x102')]=_0x33d9bc,_0x4d36ab[_0xf6c039('0x10c3')]=_0x405b2b,_0x4d36ab[_0xf6c039('0x10cc')]=_0x50c9da,_0x4d36ab['exportSelectedOutboundRoutes']=_0x42e517,_0x4d36ab['deleteSelectedOutboundRoutes']=_0x609aa6,_0x4d36ab['deselectOutboundRoutes']=_0x46d6ba,_0x4d36ab[_0xf6c039('0xefe')]=_0x2a56f1,_0x5c0911['hasRole'](_0xf6c039('0x20bf'))?_0x2f5633[_0xf6c039('0xc76')][_0xf6c039('0x1c53')]({'fields':_0xf6c039('0x12d2'),'sort':'name','nolimit':'true'})['$promise'][_0xf6c039('0x17e7')](function(_0x900b2a){const _0x1195af=_0xf6c039;_0x4d36ab[_0x1195af('0xfb3')]=_0x900b2a[_0x1195af('0x2319')]||[];})['catch'](function(_0x33c91f){const _0x4a3366=_0xf6c039;_0x4ca0ba[_0x4a3366('0x1db9')]({'title':_0x33c91f[_0x4a3366('0x11c5')]?_0x4a3366('0x14f7')+_0x33c91f[_0x4a3366('0x11c5')]+'\x20-\x20'+_0x33c91f[_0x4a3366('0x1833')]:_0x4a3366('0xa2c'),'msg':_0x33c91f['data']?JSON[_0x4a3366('0x678')](_0x33c91f[_0x4a3366('0x1457')]):_0x33c91f['toString']()});}):_0x2f5633[_0xf6c039('0xc76')][_0xf6c039('0x1c53')]({'fields':_0xf6c039('0x12d2'),'sort':_0xf6c039('0x2aa'),'nolimit':_0xf6c039('0xe34')})[_0xf6c039('0x1af5')][_0xf6c039('0x17e7')](function(_0x225e74){const _0x5b2a4e=_0xf6c039;_0x4d36ab[_0x5b2a4e('0xfb3')]=_0x225e74['rows']||[];})[_0xf6c039('0x17e7')](function(){const _0x126d15=_0xf6c039;return _0x2f5633[_0x126d15('0x383')][_0x126d15('0x1c53')]({'userProfileId':_0x4d36ab[_0x126d15('0x197c')][_0x126d15('0x1e76')],'sectionId':0x195})['$promise'];})['then'](function(_0x594691){const _0x2b74ec=_0xf6c039,_0x5c1349=_0x594691&&_0x594691['rows']?_0x594691['rows'][0x0]:null;if(!_0x5c1349)return _0x2f5633[_0x2b74ec('0xc76')][_0x2b74ec('0x1c53')]({'fields':_0x2b74ec('0x12d2'),'sort':_0x2b74ec('0x2aa'),'nolimit':_0x2b74ec('0xe34'),'defaultEntry':0x1})[_0x2b74ec('0x1af5')][_0x2b74ec('0x17e7')](function(_0x2619d7){const _0x1edbdc=_0x2b74ec;_0x4d36ab['contexts']=_0x2619d7[_0x1edbdc('0x2319')]||[];});else{if(!_0x5c1349[_0x2b74ec('0x9e3')])return _0x2f5633[_0x2b74ec('0x78d')][_0x2b74ec('0x1c53')]({'sectionId':_0x5c1349['id']})[_0x2b74ec('0x1af5')][_0x2b74ec('0x17e7')](function(_0x3149a1){const _0x4bb126=_0x2b74ec,_0x59e529=_0x49cbdd()[_0x4bb126('0x787')](_0x3149a1[_0x4bb126('0x2319')],function(_0x2f5946){const _0x26ec9f=_0x4bb126;return _0x49cbdd()[_0x26ec9f('0xe8e')](_0x4d36ab['contexts'],{'id':_0x2f5946['resourceId']});});let _0x3519bd=null;_0x4d36ab[_0x4bb126('0x1937')]&&(_0x3519bd=_0x49cbdd()[_0x4bb126('0xe8e')](_0x4d36ab[_0x4bb126('0xfb3')],{'name':_0x4d36ab[_0x4bb126('0x1937')][_0x4bb126('0x17b3')]}));if(_0x3519bd&&!_0x49cbdd()['some'](_0x59e529,['id',_0x3519bd['id']])){const _0x153ec0=_0x49cbdd()[_0x4bb126('0xe8e')](_0x4d36ab[_0x4bb126('0xfb3')],{'id':_0x3519bd['id']});_0x153ec0[_0x4bb126('0xe5c')]=![],_0x59e529[_0x4bb126('0x269f')](_0x153ec0);}_0x4d36ab[_0x4bb126('0xfb3')]=_0x59e529;});}})[_0xf6c039('0x16df')](function(_0x3a77bf){const _0x1c21f9=_0xf6c039;_0x4ca0ba[_0x1c21f9('0x1db9')]({'title':_0x3a77bf[_0x1c21f9('0x11c5')]?_0x1c21f9('0x14f7')+_0x3a77bf['status']+_0x1c21f9('0x16e4')+_0x3a77bf[_0x1c21f9('0x1833')]:_0x1c21f9('0x78'),'msg':_0x3a77bf[_0x1c21f9('0x1457')]?JSON['stringify'](_0x3a77bf[_0x1c21f9('0x1457')]):_0x3a77bf['toString']()});});function _0x2a3fb8(_0x2a07de){const _0x4af7a3=_0xf6c039;_0x560d68['go'](_0x4af7a3('0xe41'),{'id':_0x2a07de['id'],'outboundroute':_0x2a07de,'crudPermissions':_0x4d36ab[_0x4af7a3('0x103e')]});}function _0x2fee27(_0x3bf919,_0x34dc1d){const _0x84ad50=_0xf6c039,_0x307153=_0x2ae172[_0x84ad50('0x1121')]()['title'](_0x84ad50('0x5e1')+_0x49cbdd()[_0x84ad50('0x1c98')](_0x84ad50('0x1937'))+'?')[_0x84ad50('0x211f')](_0x84ad50('0xa53')+(_0x3bf919['name']||_0x84ad50('0x1937'))+_0x84ad50('0x1d23')+_0x84ad50('0xe9f'))['ariaLabel']('delete\x20outboundroute')[_0x84ad50('0x104f')](_0x34dc1d)['ok']('OK')['cancel'](_0x84ad50('0x28a0'));_0x2ae172[_0x84ad50('0x28e2')](_0x307153)[_0x84ad50('0x17e7')](function(){_0x50c9da(_0x3bf919);},function(){const _0xda70d7=_0x84ad50;console[_0xda70d7('0x1d63')]('CANCEL');});}let _0x21cef6=!![],_0x156261=0x1;_0x494645[_0xf6c039('0x620')](_0xf6c039('0x3ed'),function(_0x34968d,_0x27e3d8){const _0x4cdf18=_0xf6c039;_0x21cef6?_0x39bde9(function(){_0x21cef6=![];}):(!_0x27e3d8&&(_0x156261=_0x4d36ab['query'][_0x4cdf18('0x115a')]),_0x34968d!==_0x27e3d8&&(_0x4d36ab[_0x4cdf18('0x826')][_0x4cdf18('0x115a')]=0x1),!_0x34968d&&(_0x4d36ab['query'][_0x4cdf18('0x115a')]=_0x156261),_0x4d36ab[_0x4cdf18('0x102')]());});function _0x3279c7(_0x3cf191){const _0x3ae4fa=_0xf6c039;_0x4d36ab[_0x3ae4fa('0x1167')]=_0x3cf191||{'count':0x0,'rows':[]};}function _0x33d9bc(){const _0x296b48=_0xf6c039;_0x4d36ab[_0x296b48('0x826')][_0x296b48('0xf19')]=(_0x4d36ab[_0x296b48('0x826')]['page']-0x1)*_0x4d36ab[_0x296b48('0x826')]['limit'],_0x5c0911[_0x296b48('0x1ba2')](_0x296b48('0x20bf'))?_0x4d36ab[_0x296b48('0x1691')]=_0x2f5633[_0x296b48('0x16c2')][_0x296b48('0x1c53')](_0x4d36ab[_0x296b48('0x826')],_0x3279c7)[_0x296b48('0x1af5')]:(_0x4d36ab[_0x296b48('0x826')]['id']=_0x4d36ab[_0x296b48('0xdeb')]['id'],_0x4d36ab[_0x296b48('0x826')][_0x296b48('0x16f8')]=_0x296b48('0x1d35'),_0x4d36ab[_0x296b48('0x1691')]=_0x2f5633[_0x296b48('0xdeb')]['getResources'](_0x4d36ab[_0x296b48('0x826')],_0x3279c7)[_0x296b48('0x1af5')]);}function _0x405b2b(_0x2207ab,_0x411b3d){const _0x9d6564=_0xf6c039;_0x2ae172[_0x9d6564('0x28e2')]({'controller':_0x9d6564('0x1ae8'),'controllerAs':'vm','templateUrl':_0x3aefbb,'parent':angular[_0x9d6564('0x1ce1')](_0x239ad3[_0x9d6564('0x13aa')]),'targetEvent':_0x2207ab,'clickOutsideToClose':!![],'locals':{'outboundroute':_0x411b3d,'outboundroutes':_0x4d36ab[_0x9d6564('0x1167')][_0x9d6564('0x2319')],'license':_0x4d36ab[_0x9d6564('0x1d11')],'setting':_0x4d36ab['setting'],'crudPermissions':_0x4d36ab[_0x9d6564('0x103e')]}});}function _0x50c9da(_0x44d2bf){const _0x4d175d=_0xf6c039;_0x2f5633['voicePrefix'][_0x4d175d('0x1c53')]({'VoiceExtensionId':_0x44d2bf['id']})['$promise'][_0x4d175d('0x17e7')](function(_0x4b54ba){const _0x33ec09=_0x4d175d;if(_0x4b54ba&&_0x4b54ba[_0x33ec09('0x2319')]&&_0x4b54ba[_0x33ec09('0x2319')][_0x33ec09('0x1f73')]>0x0)return _0x4ca0ba[_0x33ec09('0x1db9')]({'title':_0x33ec09('0x2844'),'msg':_0x33ec09('0x20f5')});else _0x2f5633[_0x33ec09('0x16c2')][_0x33ec09('0x1da6')]({'id':_0x44d2bf['id']})[_0x33ec09('0x1af5')][_0x33ec09('0x17e7')](function(){const _0x51088b=_0x33ec09;_0x49cbdd()[_0x51088b('0x5f3')](_0x4d36ab[_0x51088b('0x1167')]['rows'],{'id':_0x44d2bf['id']}),_0x4d36ab[_0x51088b('0x1167')][_0x51088b('0x335')]-=0x1,!_0x4d36ab[_0x51088b('0x1167')][_0x51088b('0x2319')][_0x51088b('0x1f73')]&&_0x4d36ab[_0x51088b('0x102')](),_0x4ca0ba[_0x51088b('0x130d')]({'title':_0x49cbdd()[_0x51088b('0x1c98')](_0x51088b('0x7b5'))+_0x51088b('0x2673'),'msg':_0x44d2bf[_0x51088b('0x2aa')]?_0x44d2bf[_0x51088b('0x2aa')]+_0x51088b('0x149f'):''});})['catch'](function(_0x53376f){const _0x501b84=_0x33ec09;if(_0x53376f[_0x501b84('0x1457')]&&_0x53376f[_0x501b84('0x1457')]['errors']&&_0x53376f[_0x501b84('0x1457')][_0x501b84('0x73e')][_0x501b84('0x1f73')]){_0x4d36ab['errors']=_0x53376f[_0x501b84('0x1457')][_0x501b84('0x73e')]||[{'message':_0x53376f['toString'](),'type':_0x501b84('0x258d')}];for(let _0x2a1d3e=0x0;_0x2a1d3e<_0x53376f[_0x501b84('0x1457')][_0x501b84('0x73e')][_0x501b84('0x1f73')];_0x2a1d3e++){_0x4ca0ba[_0x501b84('0x1db9')]({'title':_0x53376f[_0x501b84('0x1457')][_0x501b84('0x73e')][_0x2a1d3e]['type'],'msg':_0x53376f[_0x501b84('0x1457')]['errors'][_0x2a1d3e][_0x501b84('0x1603')]});}}else _0x4ca0ba[_0x501b84('0x1db9')]({'title':_0x53376f[_0x501b84('0x11c5')]?_0x501b84('0x14f7')+_0x53376f[_0x501b84('0x11c5')]+_0x501b84('0x16e4')+_0x53376f[_0x501b84('0x1833')]:'SYSTEM:DELETEvoiceExtension','msg':_0x53376f[_0x501b84('0x1457')]?JSON[_0x501b84('0x678')](_0x53376f[_0x501b84('0x1457')][_0x501b84('0x1603')]):_0x53376f['message']||_0x53376f[_0x501b84('0x9b6')]()});});});}function _0x42e517(){const _0x4cd521=_0xf6c039,_0x1eaecb=angular[_0x4cd521('0x14e5')](_0x4d36ab[_0x4cd521('0x1442')]);return _0x4d36ab[_0x4cd521('0x1442')]=[],_0x1eaecb;}function _0x609aa6(_0x50f4e2){const _0x7a5ca4=_0xf6c039,_0x47998e=_0x2ae172[_0x7a5ca4('0x1121')]()[_0x7a5ca4('0x24d3')](_0x7a5ca4('0x519'))[_0x7a5ca4('0x211f')](_0x7a5ca4('0xa53')+_0x4d36ab['selectedOutboundRoutes']['length']+_0x7a5ca4('0x145a')+_0x7a5ca4('0xe9f'))[_0x7a5ca4('0x2095')](_0x7a5ca4('0x1dbb'))['targetEvent'](_0x50f4e2)['ok']('OK')['cancel']('CANCEL');_0x2ae172['show'](_0x47998e)[_0x7a5ca4('0x17e7')](function(){const _0x12121c=_0x7a5ca4;_0x4d36ab[_0x12121c('0x1442')]['forEach'](function(_0x1522f9){_0x50c9da(_0x1522f9);}),_0x4d36ab[_0x12121c('0x1442')]=[];});}function _0x46d6ba(){_0x4d36ab['selectedOutboundRoutes']=[];}function _0x2a56f1(){const _0x51e3a4=_0xf6c039;_0x4d36ab['selectedOutboundRoutes']=_0x4d36ab[_0x51e3a4('0x1167')]['rows'];}}const _0x2e6040=_0x56b45d;_0x24da90[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0xcd'),_0x4376d8('0x27c8'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x24da90(_0x18771b,_0x4409f6,_0x278f57,_0x20e1c3,_0x214747,_0xe6a2fd,_0x5e5435,_0xae701a,_0x3995f1,_0x49c091,_0x9341e6,_0x194485,_0x105a2f,_0x37b842){const _0x47a4b3=_0x4376d8,_0x8cfd4e=this;_0x8cfd4e['currentUser']=_0x9341e6['getCurrentUser'](),_0x8cfd4e[_0x47a4b3('0x73e')]=[],_0x8cfd4e['setting']=_0x105a2f,_0x8cfd4e[_0x47a4b3('0x1d11')]=_0x194485,_0x8cfd4e[_0x47a4b3('0x103e')]=_0x37b842,_0x8cfd4e['hasModulePermissions']={},_0x8cfd4e[_0x47a4b3('0x1572')]=_0x8cfd4e[_0x47a4b3('0x1aeb')]&&_0x8cfd4e[_0x47a4b3('0x1aeb')][_0x47a4b3('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x8cfd4e['title']=_0x47a4b3('0xeb9'),_0x8cfd4e[_0x47a4b3('0x27c8')]=angular[_0x47a4b3('0x14e5')](_0x3995f1),_0x8cfd4e[_0x47a4b3('0xcd')]=_0xae701a,_0x8cfd4e[_0x47a4b3('0x65d')]=![];!_0x8cfd4e['voicemail']&&(_0x8cfd4e['voicemail']={'attach':'no'},_0x8cfd4e['title']='VOICE.NEW_VOICEMAIL',_0x8cfd4e['newVoicemail']=!![]);_0x8cfd4e['addNewVoicemail']=_0x3e3aea,_0x8cfd4e[_0x47a4b3('0x1fcb')]=_0x137618,_0x8cfd4e['deleteVoicemail']=_0x3b2e2a,_0x8cfd4e[_0x47a4b3('0x1300')]=_0x1fa501,_0x8cfd4e['closeDialog']=_0x1dfef8;function _0x3e3aea(){const _0x43c391=_0x47a4b3;_0x8cfd4e['errors']=[],_0x49c091['voiceMail']['save'](_0x8cfd4e[_0x43c391('0x27c8')])['$promise'][_0x43c391('0x17e7')](function(_0x106e61){const _0x2f48ca=_0x43c391;_0x8cfd4e[_0x2f48ca('0xcd')]['unshift'](_0x106e61[_0x2f48ca('0x16b2')]()),_0x5e5435[_0x2f48ca('0x130d')]({'title':_0x2f48ca('0x10fe'),'msg':_0x8cfd4e[_0x2f48ca('0x27c8')][_0x2f48ca('0x2aa')]?_0x8cfd4e['voicemail'][_0x2f48ca('0x2aa')]+_0x2f48ca('0x15a'):''}),_0x1dfef8(_0x106e61);})[_0x43c391('0x16df')](function(_0x3a0c6e){const _0x291cd1=_0x43c391;if(_0x3a0c6e['data']&&_0x3a0c6e[_0x291cd1('0x1457')][_0x291cd1('0x73e')]&&_0x3a0c6e[_0x291cd1('0x1457')][_0x291cd1('0x73e')]['length']){_0x8cfd4e['errors']=_0x3a0c6e[_0x291cd1('0x1457')][_0x291cd1('0x73e')]||[{'message':_0x3a0c6e[_0x291cd1('0x9b6')](),'type':'api.voiceMail.save'}];for(let _0x559f6d=0x0;_0x559f6d<_0x3a0c6e[_0x291cd1('0x1457')][_0x291cd1('0x73e')]['length'];_0x559f6d+=0x1){_0x5e5435[_0x291cd1('0x1db9')]({'title':_0x3a0c6e['data'][_0x291cd1('0x73e')][_0x559f6d]['type'],'msg':_0x3a0c6e['data'][_0x291cd1('0x73e')][_0x559f6d][_0x291cd1('0x1603')]});}}else _0x5e5435[_0x291cd1('0x1db9')]({'title':_0x3a0c6e[_0x291cd1('0x11c5')]?_0x291cd1('0x14f7')+_0x3a0c6e[_0x291cd1('0x11c5')]+_0x291cd1('0x16e4')+_0x3a0c6e[_0x291cd1('0x1833')]:_0x291cd1('0x27a9'),'msg':_0x3a0c6e['data']?JSON['stringify'](_0x3a0c6e[_0x291cd1('0x1457')][_0x291cd1('0x1603')]):_0x3a0c6e[_0x291cd1('0x9b6')]()});});}function _0x137618(){const _0x20cec5=_0x47a4b3;_0x8cfd4e['errors']=[],_0x49c091[_0x20cec5('0x2753')][_0x20cec5('0x27ba')]({'id':_0x8cfd4e[_0x20cec5('0x27c8')]['id']},_0x8cfd4e[_0x20cec5('0x27c8')])[_0x20cec5('0x1af5')][_0x20cec5('0x17e7')](function(_0x59fad7){const _0x44fd54=_0x20cec5,_0x1cc390=_0x49cbdd()[_0x44fd54('0xe8e')](_0x8cfd4e[_0x44fd54('0xcd')],{'id':_0x59fad7['id']});_0x1cc390&&_0x49cbdd()[_0x44fd54('0x1ced')](_0x1cc390,_0x49cbdd()[_0x44fd54('0x230a')](_0x59fad7[_0x44fd54('0x16b2')](),_0x49cbdd()[_0x44fd54('0x1c0f')](_0x1cc390))),_0x5e5435[_0x44fd54('0x130d')]({'title':'Voicemail\x20properly\x20saved!','msg':_0x8cfd4e[_0x44fd54('0x27c8')][_0x44fd54('0x2aa')]?_0x8cfd4e[_0x44fd54('0x27c8')][_0x44fd54('0x2aa')]+_0x44fd54('0x15ca'):''}),_0x1dfef8(_0x59fad7);})[_0x20cec5('0x16df')](function(_0xb97f04){const _0x7a684c=_0x20cec5;if(_0xb97f04['data']&&_0xb97f04['data']['errors']&&_0xb97f04[_0x7a684c('0x1457')][_0x7a684c('0x73e')][_0x7a684c('0x1f73')]){_0x8cfd4e[_0x7a684c('0x73e')]=_0xb97f04['data'][_0x7a684c('0x73e')]||[{'message':_0xb97f04['toString'](),'type':_0x7a684c('0x1131')}];for(let _0x272298=0x0;_0x272298<_0xb97f04[_0x7a684c('0x1457')]['errors'][_0x7a684c('0x1f73')];_0x272298++){_0x5e5435[_0x7a684c('0x1db9')]({'title':_0xb97f04['data'][_0x7a684c('0x73e')][_0x272298][_0x7a684c('0x412')],'msg':_0xb97f04[_0x7a684c('0x1457')][_0x7a684c('0x73e')][_0x272298]['message']});}}else _0x5e5435['error']({'title':_0xb97f04[_0x7a684c('0x11c5')]?_0x7a684c('0x14f7')+_0xb97f04[_0x7a684c('0x11c5')]+_0x7a684c('0x16e4')+_0xb97f04[_0x7a684c('0x1833')]:_0x7a684c('0x1131'),'msg':_0xb97f04['data']?JSON[_0x7a684c('0x678')](_0xb97f04['data'][_0x7a684c('0x1603')]):_0xb97f04[_0x7a684c('0x9b6')]()});});}function _0x3b2e2a(_0xe20ca5){const _0x13cc20=_0x47a4b3;_0x8cfd4e[_0x13cc20('0x73e')]=[];const _0x150085=_0x20e1c3[_0x13cc20('0x1121')]()[_0x13cc20('0x24d3')]('Are\x20you\x20sure?')['content'](_0x13cc20('0xb72'))[_0x13cc20('0x2095')](_0x13cc20('0x619'))['ok']('Delete')[_0x13cc20('0x1d47')]('Cancel')['targetEvent'](_0xe20ca5);_0x20e1c3[_0x13cc20('0x28e2')](_0x150085)[_0x13cc20('0x17e7')](function(){const _0x2f4498=_0x13cc20;_0x49c091[_0x2f4498('0x2753')]['delete']({'id':_0x8cfd4e[_0x2f4498('0x27c8')]['id']})['$promise']['then'](function(){const _0x35894d=_0x2f4498;_0x49cbdd()[_0x35894d('0x5f3')](_0x8cfd4e[_0x35894d('0xcd')],{'id':_0x8cfd4e[_0x35894d('0x27c8')]['id']}),_0x5e5435[_0x35894d('0x130d')]({'title':_0x35894d('0xb6b'),'msg':(_0x8cfd4e[_0x35894d('0x27c8')]['name']||_0x35894d('0x27c8'))+_0x35894d('0x149f')}),_0x1dfef8(_0x8cfd4e['voicemail']);})[_0x2f4498('0x16df')](function(_0x2ca3fa){const _0x5067c6=_0x2f4498;if(_0x2ca3fa['data']&&_0x2ca3fa[_0x5067c6('0x1457')][_0x5067c6('0x73e')]&&_0x2ca3fa[_0x5067c6('0x1457')][_0x5067c6('0x73e')][_0x5067c6('0x1f73')]){_0x8cfd4e[_0x5067c6('0x73e')]=_0x2ca3fa[_0x5067c6('0x1457')]['errors']||[{'message':_0x2ca3fa[_0x5067c6('0x9b6')](),'type':_0x5067c6('0xbef')}];for(let _0x22162b=0x0;_0x22162b<_0x2ca3fa['data'][_0x5067c6('0x73e')][_0x5067c6('0x1f73')];_0x22162b++){_0x5e5435[_0x5067c6('0x1db9')]({'title':_0x2ca3fa[_0x5067c6('0x1457')][_0x5067c6('0x73e')][_0x22162b][_0x5067c6('0x412')],'msg':_0x2ca3fa['data']['errors'][_0x22162b]['message']});}}else _0x5e5435[_0x5067c6('0x1db9')]({'title':_0x2ca3fa[_0x5067c6('0x11c5')]?'API:'+_0x2ca3fa[_0x5067c6('0x11c5')]+_0x5067c6('0x16e4')+_0x2ca3fa['statusText']:'api.voiceMail.delete','msg':_0x2ca3fa['data']?JSON[_0x5067c6('0x678')](_0x2ca3fa['data'][_0x5067c6('0x1603')]):_0x2ca3fa['message']||_0x2ca3fa[_0x5067c6('0x9b6')]()});});},function(){});}function _0x1fa501(_0x479c69){return _0x479c69===null?undefined:new Date(_0x479c69);}function _0x1dfef8(_0x116162){const _0x561725=_0x47a4b3;_0x20e1c3[_0x561725('0x212a')](_0x116162);}}const _0x1d2711=_0x24da90;_0x2ff10a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q','$translate',_0x4376d8('0xef1'),'$mdDialog','$document',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x2ff10a(_0x6f2ee0,_0x4a6233,_0x168cc0,_0x3a83da,_0x381149,_0x3d7c0d,_0x251942,_0x5b5a51,_0x52a5b8,_0xf5da42,_0x1e9dce){const _0x473fbf=_0x4376d8,_0x3d7ed0=this;_0x3d7ed0[_0x473fbf('0x197c')]=_0x1e9dce['getCurrentUser'](),_0x3d7ed0[_0x473fbf('0x27c8')]={},_0x3d7ed0[_0x473fbf('0x13bf')]={'count':0x0,'rows':[]},_0x3d7ed0[_0x473fbf('0x104')]=[],_0x3d7ed0[_0x473fbf('0x103e')],_0x3d7ed0[_0x473fbf('0x826')]={'fields':_0x473fbf('0xbc5'),'sort':_0x473fbf('0x569'),'limit':0xa,'page':0x1},_0x3d7ed0[_0x473fbf('0x161d')]=_0x24bd72,_0x3d7ed0[_0x473fbf('0x1a20')]=_0x144d40,_0x3d7ed0[_0x473fbf('0x135c')]=_0x239374,_0x3d7ed0[_0x473fbf('0x130d')]=_0xc7a45f,_0x3d7ed0[_0x473fbf('0x26b5')]=_0x521162,_0x3d7ed0[_0x473fbf('0xf13')]=_0x3f7b14,_0x3d7ed0[_0x473fbf('0xc5e')]=_0x4ac5f3,_0x3d7ed0[_0x473fbf('0x1d88')]=_0x2b8ae6;function _0x24bd72(_0x412076,_0x351fb5){const _0x4f4289=_0x473fbf;_0x3d7ed0['voicemail']=_0x412076,_0x3d7ed0[_0x4f4289('0x103e')]=typeof _0x351fb5!==_0x4f4289('0xfad')?_0x351fb5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3d7ed0[_0x4f4289('0x826')]['id']=_0x3d7ed0[_0x4f4289('0x27c8')]['id'],_0x521162();}function _0x239374(_0x2ae9eb,_0x22c5bb,_0x2e6c75){const _0x10c5d6=_0x473fbf;return _0xf5da42[_0x10c5d6('0x1dff')]['download']({'id':_0x2ae9eb['id'],'exists':!![],'attachments':_0x2e6c75})[_0x10c5d6('0x1af5')][_0x10c5d6('0x17e7')](function(_0x371a4b){const _0x2f4d58=_0x10c5d6,_0x25815c=[_0x371a4b[_0x2f4d58('0x3ca')]];let _0x2933da=_0x2f4d58('0x1603')+_0x2ae9eb['id'];const _0xaa43e2=new Blob(_0x25815c,{'type':_0x371a4b[_0x2f4d58('0x412')]});_0x2933da=_0x2ae9eb[_0x2f4d58('0x61f')]+_0x2f4d58('0xc1c');const _0x18bf0d=window[_0x2f4d58('0x2be')][_0x2f4d58('0x68d')]('a');_0x18bf0d[_0x2f4d58('0x224')]('href',URL[_0x2f4d58('0x28ce')](_0xaa43e2)),_0x18bf0d[_0x2f4d58('0x224')](_0x2f4d58('0x1244'),_0x2933da),document[_0x2f4d58('0x13aa')][_0x2f4d58('0x128c')](_0x18bf0d),_0x18bf0d['click']();})[_0x10c5d6('0x16df')](function(_0xaf58f9){const _0x218ff1=_0x10c5d6;if(_0xaf58f9['data']&&_0xaf58f9[_0x218ff1('0x1457')][_0x218ff1('0x73e')]&&_0xaf58f9[_0x218ff1('0x1457')]['errors']['length'])for(let _0x3e82c4=0x0;_0x3e82c4<_0xaf58f9[_0x218ff1('0x1457')]['errors'][_0x218ff1('0x1f73')];_0x3e82c4+=0x1){_0x52a5b8[_0x218ff1('0x1db9')]({'title':_0xaf58f9[_0x218ff1('0x1457')][_0x218ff1('0x73e')][_0x3e82c4][_0x218ff1('0x412')],'msg':_0xaf58f9[_0x218ff1('0x1457')][_0x218ff1('0x73e')][_0x3e82c4][_0x218ff1('0x1603')]});}else _0x52a5b8[_0x218ff1('0x1db9')]({'title':_0xaf58f9[_0x218ff1('0x11c5')]?'API:'+_0xaf58f9[_0x218ff1('0x11c5')]+'\x20-\x20'+_0xaf58f9[_0x218ff1('0x1833')]:_0x218ff1('0x27a9'),'msg':_0xaf58f9[_0x218ff1('0x1457')]?JSON[_0x218ff1('0x678')](_0xaf58f9[_0x218ff1('0x1457')]['message']):_0xaf58f9[_0x218ff1('0x9b6')]()});});}function _0x144d40(_0x2aecef,_0x18fd5e){const _0x741de9=_0x473fbf,_0x874d42=_0x251942['confirm']()[_0x741de9('0x24d3')](_0x741de9('0x389'))[_0x741de9('0x211f')](_0x741de9('0xa53')+(_0x2aecef[_0x741de9('0x2aa')]||_0x2aecef['id']&&_0x49cbdd()[_0x741de9('0x233c')](_0x741de9('0x21fe'))+_0x2aecef['id']||_0x741de9('0x1603'))+_0x741de9('0x1d23')+_0x741de9('0xe9f'))[_0x741de9('0x2095')](_0x741de9('0x28b0'))['targetEvent'](_0x18fd5e)['ok']('OK')[_0x741de9('0x1d47')](_0x741de9('0x28a0'));_0x251942['show'](_0x874d42)['then'](function(){_0x4ac5f3(_0x2aecef);},function(){const _0xd25fc2=_0x741de9;console['log'](_0xd25fc2('0x28a0'));});}function _0xc7a45f(_0x53fa43){const _0x3a7783=_0x473fbf;_0x3d7ed0[_0x3a7783('0x13bf')]=_0x53fa43||{'count':0x0,'rows':[]};}function _0x521162(){const _0x2eec10=_0x473fbf;_0x3d7ed0[_0x2eec10('0x826')]['offset']=(_0x3d7ed0[_0x2eec10('0x826')][_0x2eec10('0x115a')]-0x1)*_0x3d7ed0['query'][_0x2eec10('0x193b')],_0x3d7ed0[_0x2eec10('0x1691')]=_0xf5da42[_0x2eec10('0x2753')][_0x2eec10('0x18e0')](_0x3d7ed0[_0x2eec10('0x826')],_0xc7a45f)[_0x2eec10('0x1af5')];}function _0x4ac5f3(_0x6a7f41){const _0x2dda79=_0x473fbf;_0xf5da42['voiceMailMessage'][_0x2dda79('0x1da6')]({'id':_0x6a7f41['id']})[_0x2dda79('0x1af5')]['then'](function(){const _0xe57ae0=_0x2dda79;_0x49cbdd()[_0xe57ae0('0x5f3')](_0x3d7ed0[_0xe57ae0('0x13bf')][_0xe57ae0('0x2319')],{'id':_0x6a7f41['id']}),_0x3d7ed0['voicemailMessages'][_0xe57ae0('0x335')]-=0x1,!_0x3d7ed0['voicemailMessages']['rows'][_0xe57ae0('0x1f73')]&&_0x521162(),_0x52a5b8['success']({'title':_0xe57ae0('0x2589'),'msg':_0x6a7f41[_0xe57ae0('0x2aa')]?_0x6a7f41[_0xe57ae0('0x2aa')]+_0xe57ae0('0x149f'):''});})[_0x2dda79('0x16df')](function(_0x570ded){const _0x4ce9ea=_0x2dda79;if(_0x570ded[_0x4ce9ea('0x1457')]&&_0x570ded[_0x4ce9ea('0x1457')]['errors']&&_0x570ded[_0x4ce9ea('0x1457')][_0x4ce9ea('0x73e')][_0x4ce9ea('0x1f73')]){_0x3d7ed0[_0x4ce9ea('0x73e')]=_0x570ded[_0x4ce9ea('0x1457')]['errors']||[{'message':_0x570ded['toString'](),'type':_0x4ce9ea('0x10c5')}];for(let _0xcf43a=0x0;_0xcf43a<_0x570ded['data']['errors'][_0x4ce9ea('0x1f73')];_0xcf43a++){_0x52a5b8['error']({'title':_0x570ded[_0x4ce9ea('0x1457')][_0x4ce9ea('0x73e')][_0xcf43a][_0x4ce9ea('0x412')],'msg':_0x570ded[_0x4ce9ea('0x1457')]['errors'][_0xcf43a]['message']});}}else _0x52a5b8['error']({'title':_0x570ded[_0x4ce9ea('0x11c5')]?'API:'+_0x570ded[_0x4ce9ea('0x11c5')]+_0x4ce9ea('0x16e4')+_0x570ded['statusText']:_0x4ce9ea('0x10c5'),'msg':_0x570ded['data']?JSON[_0x4ce9ea('0x678')](_0x570ded[_0x4ce9ea('0x1457')][_0x4ce9ea('0x1603')]):_0x570ded['message']||_0x570ded[_0x4ce9ea('0x9b6')]()});});}function _0x3f7b14(){const _0x29beb3=_0x473fbf,_0x2d5db1=angular[_0x29beb3('0x14e5')](_0x3d7ed0['selectedVoicemailMessages']);return _0x3d7ed0[_0x29beb3('0x104')]=[],_0x2d5db1;}function _0x2b8ae6(_0x144753){const _0xc7aae1=_0x473fbf,_0x3b056a=_0x251942[_0xc7aae1('0x1121')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20messages?')['htmlContent'](_0xc7aae1('0xa53')+_0x3d7ed0[_0xc7aae1('0x104')][_0xc7aae1('0x1f73')]+_0xc7aae1('0x145a')+_0xc7aae1('0xe9f'))[_0xc7aae1('0x2095')](_0xc7aae1('0x32'))['targetEvent'](_0x144753)['ok']('OK')[_0xc7aae1('0x1d47')](_0xc7aae1('0x28a0'));_0x251942[_0xc7aae1('0x28e2')](_0x3b056a)[_0xc7aae1('0x17e7')](function(){const _0x2c4746=_0xc7aae1;_0x3d7ed0['selectedVoicemailMessages'][_0x2c4746('0xccd')](function(_0x1298a2){_0x4ac5f3(_0x1298a2);}),_0x3d7ed0[_0x2c4746('0x104')]=[];});}let _0x2dc2fd=!![],_0x521bcc=0x1;_0x4a6233[_0x473fbf('0x620')](_0x473fbf('0x4c3'),function(_0x429386,_0x446f4a){const _0x10e2ef=_0x473fbf;_0x2dc2fd?_0x3d7c0d(function(){_0x2dc2fd=![];}):(!_0x446f4a&&(_0x521bcc=_0x3d7ed0[_0x10e2ef('0x826')][_0x10e2ef('0x115a')]),_0x429386!==_0x446f4a&&(_0x3d7ed0[_0x10e2ef('0x826')]['page']=0x1),!_0x429386&&(_0x3d7ed0[_0x10e2ef('0x826')]['page']=_0x521bcc),_0x521162());});}const _0x53b047=_0x2ff10a;_0x49f173['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$document',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885'),'voicemail',_0x4376d8('0x383')];function _0x49f173(_0x625b37,_0x51c65,_0x532a99,_0x2ca5e9,_0x59344f,_0x432b97,_0x4289b9,_0x2597b6,_0x5dfd83,_0x2c5112,_0x3251bf,_0x5066d0){const _0x46be7c=_0x4376d8,_0x53bc5b=this;_0x53bc5b[_0x46be7c('0x197c')]=_0x2c5112[_0x46be7c('0x2831')](),_0x53bc5b[_0x46be7c('0x1d11')]=_0x432b97,_0x53bc5b[_0x46be7c('0x1aeb')]=_0x4289b9,_0x53bc5b[_0x46be7c('0x1572')]=_0x53bc5b[_0x46be7c('0x1aeb')][_0x46be7c('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x53bc5b[_0x46be7c('0xaed')]=_0x51c65['protocol']()+_0x46be7c('0x14')+_0x51c65[_0x46be7c('0x108')](),_0x53bc5b[_0x46be7c('0x27c8')]=_0x3251bf||_0x625b37[_0x46be7c('0x16fb')]['voicemail']||{},_0x53bc5b['userProfileSection']=_0x5066d0&&_0x5066d0[_0x46be7c('0x335')]==0x1?_0x5066d0['rows'][0x0]:null,_0x53bc5b[_0x46be7c('0x103e')]=_0x2c5112[_0x46be7c('0x17a9')](_0x53bc5b[_0x46be7c('0x383')]?_0x53bc5b[_0x46be7c('0x383')][_0x46be7c('0x103e')]:null),_0x53bc5b[_0x46be7c('0x6ee')]={},_0x53bc5b['selectedTab']=_0x625b37['params'][_0x46be7c('0x1523')]||0x0,_0x53bc5b['alert']=_0x5dfd83['info'],_0x53bc5b[_0x46be7c('0x4d9')]=_0x5762bf,_0x53bc5b[_0x46be7c('0x1fcb')]=_0x1d1442,_0x2c5112[_0x46be7c('0x1ba2')]('admin')?_0x2597b6[_0x46be7c('0xc76')]['get']({'fields':_0x46be7c('0x12d2'),'sort':_0x46be7c('0x2aa')})[_0x46be7c('0x1af5')][_0x46be7c('0x17e7')](function(_0x2c3bfd){const _0x3486a8=_0x46be7c;_0x53bc5b[_0x3486a8('0xfb3')]=_0x2c3bfd['rows']||[];})['catch'](function(_0x3e068f){const _0x4b831c=_0x46be7c;_0x5dfd83[_0x4b831c('0x1db9')]({'title':_0x3e068f[_0x4b831c('0x11c5')]?'API:'+_0x3e068f[_0x4b831c('0x11c5')]+_0x4b831c('0x16e4')+_0x3e068f[_0x4b831c('0x1833')]:_0x4b831c('0xa2c'),'msg':_0x3e068f[_0x4b831c('0x1457')]?JSON[_0x4b831c('0x678')](_0x3e068f['data']):_0x3e068f[_0x4b831c('0x9b6')]()});}):_0x2597b6[_0x46be7c('0xc76')][_0x46be7c('0x1c53')]({'fields':_0x46be7c('0x12d2'),'sort':_0x46be7c('0x2aa')})[_0x46be7c('0x1af5')][_0x46be7c('0x17e7')](function(_0x4cbcb6){const _0x180232=_0x46be7c;_0x53bc5b[_0x180232('0xfb3')]=_0x4cbcb6['rows']||[];})[_0x46be7c('0x17e7')](function(){const _0x1eede1=_0x46be7c;return _0x2597b6[_0x1eede1('0x383')][_0x1eede1('0x1c53')]({'userProfileId':_0x53bc5b[_0x1eede1('0x197c')][_0x1eede1('0x1e76')],'sectionId':0x195})['$promise'];})['then'](function(_0x48cf99){const _0x1cf57d=_0x46be7c,_0x5bc656=_0x48cf99&&_0x48cf99[_0x1cf57d('0x2319')]?_0x48cf99[_0x1cf57d('0x2319')][0x0]:null;if(!_0x5bc656)return _0x2597b6[_0x1cf57d('0xc76')][_0x1cf57d('0x1c53')]({'fields':'id,name','sort':_0x1cf57d('0x2aa'),'defaultEntry':0x1})['$promise'][_0x1cf57d('0x17e7')](function(_0xf3d280){const _0x53fdfb=_0x1cf57d;_0x53bc5b['contexts']=_0xf3d280[_0x53fdfb('0x2319')]||[];});else{if(!_0x5bc656[_0x1cf57d('0x9e3')])return _0x2597b6[_0x1cf57d('0x78d')]['get']({'sectionId':_0x5bc656['id']})['$promise'][_0x1cf57d('0x17e7')](function(_0x3d0bd7){const _0x8fb757=_0x1cf57d,_0x125cf9=_0x49cbdd()[_0x8fb757('0x787')](_0x3d0bd7['rows'],function(_0x5b09a9){const _0x5ca7f4=_0x8fb757;return _0x49cbdd()[_0x5ca7f4('0xe8e')](_0x53bc5b[_0x5ca7f4('0xfb3')],{'id':_0x5b09a9[_0x5ca7f4('0x5db')]});});let _0x7c11b4=null;_0x53bc5b['voicemail']&&(_0x7c11b4=_0x49cbdd()['find'](_0x53bc5b[_0x8fb757('0xfb3')],{'name':_0x53bc5b[_0x8fb757('0x27c8')]['context']}));if(_0x7c11b4&&!_0x49cbdd()[_0x8fb757('0x26f8')](_0x125cf9,['id',_0x7c11b4['id']])){const _0x58c291=_0x49cbdd()[_0x8fb757('0xe8e')](_0x53bc5b[_0x8fb757('0xfb3')],{'id':_0x7c11b4['id']});_0x58c291[_0x8fb757('0xe5c')]=![],_0x125cf9['push'](_0x58c291);}_0x53bc5b[_0x8fb757('0xfb3')]=_0x125cf9;});}})[_0x46be7c('0x16df')](function(_0x2c5ffc){const _0x20aca3=_0x46be7c;_0x5dfd83[_0x20aca3('0x1db9')]({'title':_0x2c5ffc[_0x20aca3('0x11c5')]?'API:'+_0x2c5ffc['status']+_0x20aca3('0x16e4')+_0x2c5ffc[_0x20aca3('0x1833')]:'SYSTEM:GETcontexts','msg':_0x2c5ffc[_0x20aca3('0x1457')]?JSON[_0x20aca3('0x678')](_0x2c5ffc[_0x20aca3('0x1457')]):_0x2c5ffc[_0x20aca3('0x9b6')]()});});function _0x5762bf(){const _0x64387a=_0x46be7c;_0x625b37['go'](_0x64387a('0xadf'),{},{'reload':_0x64387a('0xadf')});}function _0x1d1442(){const _0x23a911=_0x46be7c;_0x2597b6[_0x23a911('0x2753')][_0x23a911('0x27ba')]({'id':_0x53bc5b[_0x23a911('0x27c8')]['id']},_0x53bc5b['voicemail'])['$promise']['then'](function(){const _0x4a127c=_0x23a911;_0x5dfd83[_0x4a127c('0x130d')]({'title':_0x4a127c('0x10c7'),'msg':_0x53bc5b[_0x4a127c('0x27c8')][_0x4a127c('0x2aa')]?_0x53bc5b[_0x4a127c('0x27c8')]['name']+_0x4a127c('0x12b0'):''});})[_0x23a911('0x16df')](function(_0x4c8ac4){const _0x1c5cea=_0x23a911;_0x5dfd83[_0x1c5cea('0x1db9')]({'title':_0x4c8ac4[_0x1c5cea('0x11c5')]?_0x1c5cea('0x14f7')+_0x4c8ac4[_0x1c5cea('0x11c5')]+_0x1c5cea('0x16e4')+_0x4c8ac4['statusText']:_0x1c5cea('0x10c5'),'msg':_0x4c8ac4[_0x1c5cea('0x1457')]?JSON[_0x1c5cea('0x678')](_0x4c8ac4[_0x1c5cea('0x1457')]):_0x4c8ac4[_0x1c5cea('0x9b6')]()});});}}const _0x3e53cf=_0x49f173,_0x4e0ebd=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/voicemails/create/dialog.html/dialog.html';_0x277286[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0xcd'),'userProfile','userProfileSection',_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x277286(_0x3c5ef3,_0x273af3,_0x4b100e,_0x45d320,_0x1773ce,_0x3709ec,_0x465b82,_0x4f169f,_0x1cdec8,_0x1fb205,_0x302d67,_0x17e293,_0x535df4,_0x12f165,_0x426dd0,_0x4f26fd,_0x1066df){const _0x31e65c=_0x4376d8,_0x4b4003=this;_0x4b4003['license']=_0x4f26fd,_0x4b4003['setting']=_0x1066df,_0x4b4003['currentUser']=_0x426dd0[_0x31e65c('0x2831')](),_0x4b4003['voicemails']=_0x1cdec8||{'count':0x0,'rows':[]},_0x4b4003['userProfile']=_0x1fb205,_0x4b4003['userProfileSection']=_0x302d67&&_0x302d67[_0x31e65c('0x335')]==0x1?_0x302d67[_0x31e65c('0x2319')][0x0]:null,_0x4b4003[_0x31e65c('0x103e')]=_0x426dd0[_0x31e65c('0x17a9')](_0x4b4003[_0x31e65c('0x383')]?_0x4b4003['userProfileSection'][_0x31e65c('0x103e')]:null),_0x4b4003[_0x31e65c('0x23c3')]=_0x31e65c('0xcd'),_0x4b4003[_0x31e65c('0x26a1')]='',_0x4b4003[_0x31e65c('0x24e1')]=null,_0x4b4003[_0x31e65c('0x1f68')]=[],_0x4b4003['query']={'fields':_0x31e65c('0x2421'),'sort':_0x31e65c('0x1ac6'),'limit':0xa,'page':0x1},_0x4b4003[_0x31e65c('0x1b5c')]=_0x49cbdd()[_0x31e65c('0x8de')]([{'option':_0x31e65c('0x8e3'),'value':_0x31e65c('0xd7b')},{'option':'No','value':_0x31e65c('0x2471')}],function(_0xcbf266){const _0x5331a0=_0x31e65c;return _0x49cbdd()[_0x5331a0('0x737')](_0xcbf266[_0x5331a0('0x175b')],new RegExp('\x27','g'),'');}),_0x4b4003[_0x31e65c('0x54e')]=_0x49cbdd()['keyBy']([{'option':_0x31e65c('0x8e3'),'value':_0x31e65c('0xd7b')},{'option':'No','value':_0x31e65c('0x2471')}],function(_0x4371f4){return _0x49cbdd()['replace'](_0x4371f4['value'],new RegExp('\x27','g'),'');}),_0x4b4003['arraydelete']=_0x49cbdd()['keyBy']([{'option':'Yes','value':'\x27yes\x27'},{'option':'No','value':_0x31e65c('0x2471')}],function(_0x3b444){const _0x2254d4=_0x31e65c;return _0x49cbdd()[_0x2254d4('0x737')](_0x3b444[_0x2254d4('0x175b')],new RegExp('\x27','g'),'');}),_0x4b4003[_0x31e65c('0xcd4')]=_0x922d9a,_0x4b4003[_0x31e65c('0xbf4')]=_0x2ad0d9,_0x4b4003[_0x31e65c('0x130d')]=_0x59dc6a,_0x4b4003[_0x31e65c('0x4a1')]=_0x487073,_0x4b4003[_0x31e65c('0x26a')]=_0x963469,_0x4b4003[_0x31e65c('0x3d2')]=_0x17e40a,_0x4b4003[_0x31e65c('0x993')]=_0x5250e2,_0x4b4003[_0x31e65c('0x25ca')]=_0x4e85a8,_0x4b4003['deselectVoicemails']=_0x19fd5c,_0x4b4003[_0x31e65c('0x944')]=_0x291775;function _0x922d9a(_0x24436b){const _0xd10710=_0x31e65c;_0x4b100e['go'](_0xd10710('0x83e'),{'id':_0x24436b['id'],'voicemail':_0x24436b,'crudPermissions':_0x4b4003['crudPermissions']});}function _0x2ad0d9(_0x24bc90,_0x3c5f5f){const _0x2d43ac=_0x31e65c,_0x464ced=_0x1773ce[_0x2d43ac('0x1121')]()[_0x2d43ac('0x24d3')](_0x2d43ac('0x5e1')+_0x49cbdd()[_0x2d43ac('0x1c98')](_0x2d43ac('0x27c8'))+'?')[_0x2d43ac('0x211f')](_0x2d43ac('0xa53')+(_0x24bc90[_0x2d43ac('0x2aa')]||'voicemail')+_0x2d43ac('0x1d23')+_0x2d43ac('0xe9f'))[_0x2d43ac('0x2095')](_0x2d43ac('0x252c'))[_0x2d43ac('0x104f')](_0x3c5f5f)['ok']('OK')[_0x2d43ac('0x1d47')](_0x2d43ac('0x28a0'));_0x1773ce[_0x2d43ac('0x28e2')](_0x464ced)[_0x2d43ac('0x17e7')](function(){_0x17e40a(_0x24bc90);},function(){const _0x5d3981=_0x2d43ac;console[_0x5d3981('0x1d63')](_0x5d3981('0x28a0'));});}let _0x8384c1=!![],_0x8f6fa7=0x1;_0x3c5ef3['$watch'](_0x31e65c('0x3ed'),function(_0x54fd2e,_0x2f0f18){const _0x587e3f=_0x31e65c;_0x8384c1?_0x465b82(function(){_0x8384c1=![];}):(!_0x2f0f18&&(_0x8f6fa7=_0x4b4003[_0x587e3f('0x826')][_0x587e3f('0x115a')]),_0x54fd2e!==_0x2f0f18&&(_0x4b4003[_0x587e3f('0x826')][_0x587e3f('0x115a')]=0x1),!_0x54fd2e&&(_0x4b4003[_0x587e3f('0x826')]['page']=_0x8f6fa7),_0x4b4003[_0x587e3f('0x4a1')]());});function _0x59dc6a(_0x8a776d){const _0x77a524=_0x31e65c;_0x4b4003[_0x77a524('0xcd')]=_0x8a776d||{'count':0x0,'rows':[]};}function _0x487073(){const _0x3cb0a5=_0x31e65c;_0x4b4003[_0x3cb0a5('0x826')][_0x3cb0a5('0xf19')]=(_0x4b4003[_0x3cb0a5('0x826')][_0x3cb0a5('0x115a')]-0x1)*_0x4b4003[_0x3cb0a5('0x826')][_0x3cb0a5('0x193b')],_0x426dd0[_0x3cb0a5('0x1ba2')](_0x3cb0a5('0x20bf'))?_0x4b4003[_0x3cb0a5('0x1691')]=_0x17e293[_0x3cb0a5('0x2753')][_0x3cb0a5('0x1c53')](_0x4b4003[_0x3cb0a5('0x826')],_0x59dc6a)[_0x3cb0a5('0x1af5')]:(_0x4b4003[_0x3cb0a5('0x826')]['id']=_0x4b4003[_0x3cb0a5('0xdeb')]['id'],_0x4b4003['query'][_0x3cb0a5('0x16f8')]=_0x3cb0a5('0xbc8'),_0x4b4003[_0x3cb0a5('0x1691')]=_0x17e293['userProfile']['getResources'](_0x4b4003[_0x3cb0a5('0x826')],_0x59dc6a)[_0x3cb0a5('0x1af5')]);}function _0x963469(_0x153356,_0x539784){const _0x23b8b7=_0x31e65c;_0x1773ce['show']({'controller':_0x23b8b7('0xa57'),'controllerAs':'vm','templateUrl':_0x4e0ebd,'parent':angular[_0x23b8b7('0x1ce1')](_0x3709ec['body']),'targetEvent':_0x153356,'clickOutsideToClose':!![],'locals':{'voicemail':_0x539784,'voicemails':_0x4b4003['voicemails'][_0x23b8b7('0x2319')],'license':_0x4b4003[_0x23b8b7('0x1d11')],'setting':_0x4b4003['setting'],'crudPermissions':_0x4b4003['crudPermissions']}});}function _0x17e40a(_0x5ead1f){const _0x507dc0=_0x31e65c;_0x17e293['voiceMail'][_0x507dc0('0x1da6')]({'id':_0x5ead1f['id']})[_0x507dc0('0x1af5')][_0x507dc0('0x17e7')](function(){const _0x3efd35=_0x507dc0;_0x49cbdd()['remove'](_0x4b4003[_0x3efd35('0xcd')][_0x3efd35('0x2319')],{'id':_0x5ead1f['id']}),_0x4b4003['voicemails']['count']-=0x1,!_0x4b4003[_0x3efd35('0xcd')]['rows'][_0x3efd35('0x1f73')]&&_0x4b4003['getVoicemails'](),_0x12f165[_0x3efd35('0x130d')]({'title':_0x49cbdd()['startCase'](_0x3efd35('0x1643'))+'\x20deleted!','msg':_0x5ead1f['name']?_0x5ead1f[_0x3efd35('0x2aa')]+_0x3efd35('0x149f'):''});})['catch'](function(_0x51ca29){const _0x4d5914=_0x507dc0;if(_0x51ca29[_0x4d5914('0x1457')]&&_0x51ca29[_0x4d5914('0x1457')][_0x4d5914('0x73e')]&&_0x51ca29[_0x4d5914('0x1457')][_0x4d5914('0x73e')]['length']){_0x4b4003[_0x4d5914('0x73e')]=_0x51ca29['data'][_0x4d5914('0x73e')]||[{'message':_0x51ca29[_0x4d5914('0x9b6')](),'type':_0x4d5914('0xc49')}];for(let _0x83a26f=0x0;_0x83a26f<_0x51ca29['data']['errors'][_0x4d5914('0x1f73')];_0x83a26f++){_0x12f165[_0x4d5914('0x1db9')]({'title':_0x51ca29['data'][_0x4d5914('0x73e')][_0x83a26f][_0x4d5914('0x412')],'msg':_0x51ca29[_0x4d5914('0x1457')][_0x4d5914('0x73e')][_0x83a26f]['message']});}}else _0x12f165['error']({'title':_0x51ca29[_0x4d5914('0x11c5')]?_0x4d5914('0x14f7')+_0x51ca29[_0x4d5914('0x11c5')]+'\x20-\x20'+_0x51ca29['statusText']:_0x4d5914('0xc49'),'msg':_0x51ca29[_0x4d5914('0x1457')]?JSON['stringify'](_0x51ca29[_0x4d5914('0x1457')]['message']):_0x51ca29['message']||_0x51ca29[_0x4d5914('0x9b6')]()});});}function _0x5250e2(){const _0x1bf028=_0x31e65c,_0x414fbc=angular[_0x1bf028('0x14e5')](_0x4b4003[_0x1bf028('0x1f68')]);return _0x4b4003[_0x1bf028('0x1f68')]=[],_0x414fbc;}function _0x4e85a8(_0x4f79bb){const _0x35006d=_0x31e65c,_0x9a46f9=_0x1773ce[_0x35006d('0x1121')]()[_0x35006d('0x24d3')](_0x35006d('0x264'))[_0x35006d('0x211f')](_0x35006d('0xa53')+_0x4b4003[_0x35006d('0x1f68')]['length']+_0x35006d('0x145a')+_0x35006d('0xe9f'))['ariaLabel'](_0x35006d('0x144d'))[_0x35006d('0x104f')](_0x4f79bb)['ok']('OK')[_0x35006d('0x1d47')](_0x35006d('0x28a0'));_0x1773ce[_0x35006d('0x28e2')](_0x9a46f9)['then'](function(){const _0x5088fb=_0x35006d;_0x4b4003[_0x5088fb('0x1f68')][_0x5088fb('0xccd')](function(_0x124b21){_0x17e40a(_0x124b21);}),_0x4b4003[_0x5088fb('0x1f68')]=[];});}function _0x19fd5c(){_0x4b4003['selectedVoicemails']=[];}function _0x291775(){const _0x182ec9=_0x31e65c;_0x4b4003[_0x182ec9('0x1f68')]=_0x4b4003[_0x182ec9('0xcd')][_0x182ec9('0x2319')];}}const _0x20f1c=_0x277286;_0x2f76ac[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty','voicePrefixes',_0x4376d8('0x92f'),'api','Auth','license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x2f76ac(_0x3440d8,_0x556f0a,_0x336b2b,_0x5255a3,_0x3d54de,_0x340879,_0x3c8013,_0x7575ad,_0x3d78c2,_0x4f275b,_0x10aac3,_0x473d51,_0x11a971,_0x2b5cae){const _0x4bb35b=_0x4376d8,_0x369b8d=this;_0x369b8d[_0x4bb35b('0x197c')]=_0x10aac3['getCurrentUser'](),_0x369b8d['errors']=[],_0x369b8d[_0x4bb35b('0x1aeb')]=_0x11a971,_0x369b8d[_0x4bb35b('0x1d11')]=_0x473d51,_0x369b8d['crudPermissions']=_0x2b5cae,_0x369b8d[_0x4bb35b('0x6ee')]={},_0x369b8d[_0x4bb35b('0x1572')]=_0x369b8d['setting']&&_0x369b8d[_0x4bb35b('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x369b8d['title']=_0x4bb35b('0x2e8'),_0x369b8d['voicePrefix']=angular[_0x4bb35b('0x14e5')](_0x3d78c2),_0x369b8d['voicePrefixes']=_0x7575ad,_0x369b8d[_0x4bb35b('0x1933')]=![];!_0x369b8d[_0x4bb35b('0x92f')]&&(_0x369b8d['voicePrefix']={},_0x369b8d[_0x4bb35b('0x24d3')]=_0x4bb35b('0x14f'),_0x369b8d[_0x4bb35b('0x1933')]=!![]);_0x369b8d['addNewvoicePrefix']=_0xcc2ccb,_0x369b8d[_0x4bb35b('0x13a8')]=_0x27be96,_0x369b8d['deletevoicePrefix']=_0x549889,_0x369b8d['getDateFromString']=_0x11a826,_0x369b8d[_0x4bb35b('0x136e')]=_0x19a111,_0x10aac3[_0x4bb35b('0x1ba2')](_0x4bb35b('0x20bf'))?_0x4f275b['voiceExtension'][_0x4bb35b('0x1c53')]({'fields':_0x4bb35b('0x1cd2'),'type':_0x4bb35b('0x1ade'),'VoiceExtensionId':_0x4bb35b('0x9bb'),'nolimit':_0x4bb35b('0xe34')})[_0x4bb35b('0x1af5')][_0x4bb35b('0x17e7')](function(_0x389a87){const _0xd6c6f2=_0x4bb35b;_0x369b8d['outboundRoutes']=_0x389a87[_0xd6c6f2('0x2319')]||[];})[_0x4bb35b('0x16df')](function(_0x5a71cd){const _0x59ac2d=_0x4bb35b;_0x3c8013[_0x59ac2d('0x1db9')]({'title':_0x5a71cd[_0x59ac2d('0x11c5')]?_0x59ac2d('0x14f7')+_0x5a71cd['status']+_0x59ac2d('0x16e4')+_0x5a71cd[_0x59ac2d('0x1833')]:_0x59ac2d('0x228'),'msg':_0x5a71cd[_0x59ac2d('0x1457')]?JSON[_0x59ac2d('0x678')](_0x5a71cd['data']):_0x5a71cd['toString']()});}):_0x4f275b[_0x4bb35b('0x16c2')][_0x4bb35b('0x1c53')]({'fields':_0x4bb35b('0x1cd2'),'type':_0x4bb35b('0x1ade'),'VoiceExtensionId':'null','nolimit':'true'})[_0x4bb35b('0x1af5')][_0x4bb35b('0x17e7')](function(_0x4dcf88){const _0x3211f9=_0x4bb35b;_0x369b8d[_0x3211f9('0x789')]=_0x4dcf88['rows']||[];})[_0x4bb35b('0x17e7')](function(){const _0x1a3954=_0x4bb35b;return _0x4f275b[_0x1a3954('0x383')][_0x1a3954('0x1c53')]({'userProfileId':_0x369b8d['currentUser'][_0x1a3954('0x1e76')],'sectionId':0x193})[_0x1a3954('0x1af5')];})[_0x4bb35b('0x17e7')](function(_0x49088c){const _0x2a279c=_0x4bb35b,_0x2b0e5e=_0x49088c&&_0x49088c[_0x2a279c('0x2319')]?_0x49088c['rows'][0x0]:null;if(!_0x2b0e5e){const _0x4afad2=[];let _0x3aa56c=null;_0x369b8d[_0x2a279c('0x92f')]&&(_0x3aa56c=_0x49cbdd()[_0x2a279c('0xe8e')](_0x369b8d['outboundRoutes'],{'id':Number(_0x369b8d[_0x2a279c('0x92f')][_0x2a279c('0x64c')])}));for(let _0x2a81c6=0x0;_0x2a81c6<_0x369b8d['outboundRoutes'][_0x2a279c('0x1f73')];_0x2a81c6++){_0x3aa56c&&_0x369b8d['outboundRoutes'][_0x2a81c6]['id']===_0x3aa56c['id']&&(_0x369b8d[_0x2a279c('0x789')][_0x2a81c6][_0x2a279c('0xe5c')]=![],_0x4afad2[_0x2a279c('0x269f')](_0x369b8d[_0x2a279c('0x789')][_0x2a81c6]));}_0x369b8d[_0x2a279c('0x789')]=_0x4afad2;}else{if(!_0x2b0e5e['autoAssociation'])return _0x4f275b[_0x2a279c('0x78d')][_0x2a279c('0x1c53')]({'sectionId':_0x2b0e5e['id']})['$promise'][_0x2a279c('0x17e7')](function(_0x48c64e){const _0xce0943=_0x2a279c,_0x253784=_0x49cbdd()[_0xce0943('0x787')](_0x48c64e['rows'],function(_0x24345f){const _0x3c88fc=_0xce0943;return _0x49cbdd()[_0x3c88fc('0xe8e')](_0x369b8d[_0x3c88fc('0x789')],{'id':_0x24345f[_0x3c88fc('0x5db')]});});let _0x5da97a=null;_0x369b8d[_0xce0943('0x92f')]&&(_0x5da97a=_0x49cbdd()[_0xce0943('0xe8e')](_0x369b8d[_0xce0943('0x789')],{'id':Number(_0x369b8d[_0xce0943('0x92f')][_0xce0943('0x64c')])}));if(_0x5da97a&&!_0x49cbdd()[_0xce0943('0x26f8')](_0x253784,['id',_0x5da97a['id']])){const _0x58a36e=_0x49cbdd()[_0xce0943('0xe8e')](_0x369b8d['outboundRoutes'],{'id':_0x5da97a['id']});_0x58a36e[_0xce0943('0xe5c')]=![],_0x253784[_0xce0943('0x269f')](_0x58a36e);}_0x369b8d[_0xce0943('0x789')]=_0x253784;});}})['catch'](function(_0x44139b){const _0x5823b9=_0x4bb35b;_0x3c8013[_0x5823b9('0x1db9')]({'title':_0x44139b[_0x5823b9('0x11c5')]?_0x5823b9('0x14f7')+_0x44139b[_0x5823b9('0x11c5')]+_0x5823b9('0x16e4')+_0x44139b['statusText']:_0x5823b9('0x28a4'),'msg':_0x44139b[_0x5823b9('0x1457')]?JSON[_0x5823b9('0x678')](_0x44139b[_0x5823b9('0x1457')]):_0x44139b[_0x5823b9('0x9b6')]()});});function _0xcc2ccb(){const _0x153de2=_0x4bb35b;_0x369b8d['errors']=[],_0x4f275b['voicePrefix'][_0x153de2('0x2439')](_0x369b8d[_0x153de2('0x92f')])[_0x153de2('0x1af5')][_0x153de2('0x17e7')](function(_0x168e52){const _0x1e1925=_0x153de2;_0x369b8d['voicePrefixes']['unshift'](_0x168e52[_0x1e1925('0x16b2')]()),_0x3c8013[_0x1e1925('0x130d')]({'title':_0x1e1925('0x2302'),'msg':_0x369b8d[_0x1e1925('0x92f')][_0x1e1925('0x2aa')]?_0x369b8d[_0x1e1925('0x92f')]['name']+_0x1e1925('0x15a'):''}),_0x19a111(_0x168e52);})[_0x153de2('0x16df')](function(_0x833c3d){const _0x5423d5=_0x153de2;if(_0x833c3d[_0x5423d5('0x1457')]&&_0x833c3d[_0x5423d5('0x1457')]['errors']&&_0x833c3d[_0x5423d5('0x1457')][_0x5423d5('0x73e')][_0x5423d5('0x1f73')]){_0x369b8d[_0x5423d5('0x73e')]=_0x833c3d[_0x5423d5('0x1457')][_0x5423d5('0x73e')]||[{'message':_0x833c3d[_0x5423d5('0x9b6')](),'type':'api.voicePrefix.save'}];for(let _0x1213ca=0x0;_0x1213ca<_0x833c3d['data'][_0x5423d5('0x73e')][_0x5423d5('0x1f73')];_0x1213ca+=0x1){_0x3c8013['error']({'title':_0x833c3d['data'][_0x5423d5('0x73e')][_0x1213ca][_0x5423d5('0x412')],'msg':_0x833c3d['data'][_0x5423d5('0x73e')][_0x1213ca][_0x5423d5('0x1603')]});}}else _0x3c8013[_0x5423d5('0x1db9')]({'title':_0x833c3d[_0x5423d5('0x11c5')]?_0x5423d5('0x14f7')+_0x833c3d[_0x5423d5('0x11c5')]+_0x5423d5('0x16e4')+_0x833c3d['statusText']:_0x5423d5('0x1216'),'msg':_0x833c3d[_0x5423d5('0x1457')]?JSON['stringify'](_0x833c3d[_0x5423d5('0x1457')]['message']):_0x833c3d[_0x5423d5('0x9b6')]()});});}function _0x27be96(){const _0x589793=_0x4bb35b;_0x369b8d['errors']=[],_0x4f275b[_0x589793('0x92f')][_0x589793('0x27ba')]({'id':_0x369b8d['voicePrefix']['id']},_0x369b8d['voicePrefix'])[_0x589793('0x1af5')][_0x589793('0x17e7')](function(_0x3088d8){const _0x105781=_0x589793,_0x34e08d=_0x49cbdd()[_0x105781('0xe8e')](_0x369b8d[_0x105781('0x11f5')],{'id':_0x3088d8['id']});_0x34e08d&&_0x49cbdd()[_0x105781('0x1ced')](_0x34e08d,_0x49cbdd()[_0x105781('0x230a')](_0x3088d8[_0x105781('0x16b2')](),_0x49cbdd()[_0x105781('0x1c0f')](_0x34e08d))),_0x3c8013[_0x105781('0x130d')]({'title':_0x105781('0x1e9e'),'msg':_0x369b8d[_0x105781('0x92f')][_0x105781('0x2aa')]?_0x369b8d[_0x105781('0x92f')][_0x105781('0x2aa')]+_0x105781('0x15ca'):''}),_0x19a111(_0x3088d8);})[_0x589793('0x16df')](function(_0x2df17b){const _0x4ae7f8=_0x589793;if(_0x2df17b[_0x4ae7f8('0x1457')]&&_0x2df17b[_0x4ae7f8('0x1457')][_0x4ae7f8('0x73e')]&&_0x2df17b['data'][_0x4ae7f8('0x73e')][_0x4ae7f8('0x1f73')]){_0x369b8d[_0x4ae7f8('0x73e')]=_0x2df17b[_0x4ae7f8('0x1457')][_0x4ae7f8('0x73e')]||[{'message':_0x2df17b[_0x4ae7f8('0x9b6')](),'type':_0x4ae7f8('0x2209')}];for(let _0x2f3467=0x0;_0x2f3467<_0x2df17b['data'][_0x4ae7f8('0x73e')][_0x4ae7f8('0x1f73')];_0x2f3467++){_0x3c8013[_0x4ae7f8('0x1db9')]({'title':_0x2df17b[_0x4ae7f8('0x1457')]['errors'][_0x2f3467][_0x4ae7f8('0x412')],'msg':_0x2df17b[_0x4ae7f8('0x1457')][_0x4ae7f8('0x73e')][_0x2f3467][_0x4ae7f8('0x1603')]});}}else _0x3c8013[_0x4ae7f8('0x1db9')]({'title':_0x2df17b[_0x4ae7f8('0x11c5')]?_0x4ae7f8('0x14f7')+_0x2df17b[_0x4ae7f8('0x11c5')]+_0x4ae7f8('0x16e4')+_0x2df17b[_0x4ae7f8('0x1833')]:_0x4ae7f8('0x2209'),'msg':_0x2df17b[_0x4ae7f8('0x1457')]?JSON[_0x4ae7f8('0x678')](_0x2df17b[_0x4ae7f8('0x1457')]['message']):_0x2df17b[_0x4ae7f8('0x9b6')]()});});}function _0x549889(_0x1616b6){const _0x6240a7=_0x4bb35b;_0x369b8d[_0x6240a7('0x73e')]=[];const _0x5c6efe=_0x5255a3['confirm']()[_0x6240a7('0x24d3')]('Are\x20you\x20sure?')[_0x6240a7('0xd5')]('The\x20voicePrefix\x20will\x20be\x20deleted.')[_0x6240a7('0x2095')](_0x6240a7('0x744'))['ok'](_0x6240a7('0x304'))[_0x6240a7('0x1d47')](_0x6240a7('0x1b70'))[_0x6240a7('0x104f')](_0x1616b6);_0x5255a3[_0x6240a7('0x28e2')](_0x5c6efe)[_0x6240a7('0x17e7')](function(){const _0x242103=_0x6240a7;_0x4f275b['voicePrefix'][_0x242103('0x1da6')]({'id':_0x369b8d[_0x242103('0x92f')]['id']})[_0x242103('0x1af5')][_0x242103('0x17e7')](function(){const _0xf40ea7=_0x242103;_0x49cbdd()[_0xf40ea7('0x5f3')](_0x369b8d[_0xf40ea7('0x11f5')],{'id':_0x369b8d[_0xf40ea7('0x92f')]['id']}),_0x3c8013[_0xf40ea7('0x130d')]({'title':'voicePrefix\x20properly\x20deleted!','msg':(_0x369b8d[_0xf40ea7('0x92f')]['name']||_0xf40ea7('0x92f'))+_0xf40ea7('0x149f')}),_0x19a111(_0x369b8d[_0xf40ea7('0x92f')]);})[_0x242103('0x16df')](function(_0x3b70e6){const _0x1d80c2=_0x242103;if(_0x3b70e6[_0x1d80c2('0x1457')]&&_0x3b70e6[_0x1d80c2('0x1457')][_0x1d80c2('0x73e')]&&_0x3b70e6[_0x1d80c2('0x1457')][_0x1d80c2('0x73e')][_0x1d80c2('0x1f73')]){_0x369b8d['errors']=_0x3b70e6[_0x1d80c2('0x1457')][_0x1d80c2('0x73e')]||[{'message':_0x3b70e6['toString'](),'type':_0x1d80c2('0x117a')}];for(let _0x376c0d=0x0;_0x376c0d<_0x3b70e6[_0x1d80c2('0x1457')]['errors'][_0x1d80c2('0x1f73')];_0x376c0d++){_0x3c8013[_0x1d80c2('0x1db9')]({'title':_0x3b70e6[_0x1d80c2('0x1457')][_0x1d80c2('0x73e')][_0x376c0d]['type'],'msg':_0x3b70e6['data']['errors'][_0x376c0d][_0x1d80c2('0x1603')]});}}else _0x3c8013[_0x1d80c2('0x1db9')]({'title':_0x3b70e6[_0x1d80c2('0x11c5')]?_0x1d80c2('0x14f7')+_0x3b70e6[_0x1d80c2('0x11c5')]+_0x1d80c2('0x16e4')+_0x3b70e6[_0x1d80c2('0x1833')]:_0x1d80c2('0x117a'),'msg':_0x3b70e6['data']?JSON[_0x1d80c2('0x678')](_0x3b70e6[_0x1d80c2('0x1457')][_0x1d80c2('0x1603')]):_0x3b70e6[_0x1d80c2('0x1603')]||_0x3b70e6[_0x1d80c2('0x9b6')]()});});},function(){});}function _0x11a826(_0x538cd9){return _0x538cd9===null?undefined:new Date(_0x538cd9);}function _0x19a111(_0x42d0fb){_0x5255a3['hide'](_0x42d0fb);}}const _0x2ce8d2=_0x2f76ac;_0xe97bf7[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x92f'),_0x4376d8('0x11f5'),_0x4376d8('0x20c8'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0xe97bf7(_0x3e8833,_0x1c928a,_0x3bc8d4,_0x343c03,_0xacb1dc,_0x55f59d,_0xd829f,_0x3843df,_0x307774,_0x340541){const _0x4a51d8=_0x4376d8,_0x327291=this;_0x327291[_0x4a51d8('0x197c')]=_0x307774['getCurrentUser'](),_0x327291[_0x4a51d8('0x92f')]=_0xacb1dc,_0x327291['crudPermissions']=_0x340541,_0x327291[_0x4a51d8('0x20c8')]=_0xd829f,_0x327291[_0x4a51d8('0x532')]=[],_0x327291[_0x4a51d8('0x2722')]=[],_0x327291[_0x4a51d8('0xc14')]=[],_0x327291['startingAllowedItems']=[],_0x327291[_0x4a51d8('0x1824')]=[],_0x327291[_0x4a51d8('0x25dc')]=![],_0x327291['onInit']=_0x13baa6,_0x327291[_0x4a51d8('0x257a')]=_0x3c5c84,_0x327291[_0x4a51d8('0x136e')]=_0x1ccbee,_0x327291[_0x4a51d8('0x26f4')]={'readOnly':!_0x327291[_0x4a51d8('0x103e')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x4a51d8('0x2aa'),'line1':_0x4a51d8('0xea6'),'line2':[_0x4a51d8('0x2aa'),_0x4a51d8('0xe3e')],'line3':'','labelAll':_0x3843df['instant'](_0x4a51d8('0x111c')),'labelSelected':_0x3843df['instant'](_0x4a51d8('0x555')),'transferCallback':function(){const _0xb6d1a3=_0x4a51d8,_0x59d3ff=_0x49cbdd()['xorBy'](_0x327291['startingSelectedItems'],_0x327291['selectedItems'],'id');_0x327291[_0xb6d1a3('0x25dc')]=_0x49cbdd()[_0xb6d1a3('0x109a')](_0x59d3ff)?![]:!![];}};function _0x13baa6(){const _0x1fe37a=_0x4a51d8;return _0x307774[_0x1fe37a('0x1ba2')](_0x1fe37a('0x20bf'))?_0x3afa81()[_0x1fe37a('0x16df')](function(_0x1c4af5){const _0x3f0908=_0x1fe37a;_0x3bc8d4[_0x3f0908('0x1db9')]({'title':_0x1c4af5['status']?_0x3f0908('0x14f7')+_0x1c4af5['status']+'\x20-\x20'+_0x1c4af5[_0x3f0908('0x1833')]:_0x3f0908('0x23e0'),'msg':_0x1c4af5[_0x3f0908('0x11c5')]?JSON['stringify'](_0x1c4af5['data']):_0x1c4af5[_0x3f0908('0x9b6')]()});}):_0x56ab84()[_0x1fe37a('0x17e7')](function(_0x2c0e6d){const _0x45940a=_0x1fe37a;return _0x327291[_0x45940a('0x16f8')]=_0x2c0e6d,_0x3afa81();})[_0x1fe37a('0x16df')](function(_0x42b85c){const _0x531cb3=_0x1fe37a;_0x3bc8d4[_0x531cb3('0x1db9')]({'title':_0x42b85c[_0x531cb3('0x11c5')]?_0x531cb3('0x14f7')+_0x42b85c[_0x531cb3('0x11c5')]+_0x531cb3('0x16e4')+_0x42b85c['statusText']:_0x531cb3('0x23e0'),'msg':_0x42b85c['status']?JSON[_0x531cb3('0x678')](_0x42b85c[_0x531cb3('0x1457')]):_0x42b85c[_0x531cb3('0x9b6')]()});});}function _0x56ab84(){return _0x1c928a(function(_0x3ba2cc,_0x1be25b){const _0x3b88d7=a0_0xd29e;_0x343c03[_0x3b88d7('0x383')][_0x3b88d7('0x1c53')]({'userProfileId':_0x327291['currentUser'][_0x3b88d7('0x1e76')],'name':_0x3b88d7('0x2157')})[_0x3b88d7('0x1af5')][_0x3b88d7('0x17e7')](function(_0x451ecc){const _0x3c656f=_0x3b88d7,_0x25a8b7=_0x451ecc&&_0x451ecc[_0x3c656f('0x2319')]?_0x451ecc[_0x3c656f('0x2319')][0x0]:null;_0x3ba2cc(_0x25a8b7);})[_0x3b88d7('0x16df')](function(_0x2dc734){_0x1be25b(_0x2dc734);});});}function _0x3afa81(){return _0x1c928a(function(_0x355280,_0x8ad687){const _0x433acc=a0_0xd29e;return _0x3f76b0()[_0x433acc('0x17e7')](function(_0x1a2b70){const _0x919e79=_0x433acc;return _0x327291['items']=_0x1a2b70[_0x919e79('0x2319')]?_0x1a2b70[_0x919e79('0x2319')]:[],_0x307774[_0x919e79('0x1ba2')](_0x919e79('0x20bf'))?_0x1a2b70:_0x327291[_0x919e79('0x16f8')]?_0x327291[_0x919e79('0x16f8')][_0x919e79('0x9e3')]?_0x1a2b70:_0x3c5a6d():null;})[_0x433acc('0x17e7')](function(_0x3a9585){const _0x550aef=_0x433acc,_0x15e801=_0x3a9585&&_0x3a9585[_0x550aef('0x2319')]?_0x3a9585['rows']:[];return _0x327291[_0x550aef('0x2722')]=_0x49cbdd()[_0x550aef('0x787')](_0x15e801,function(_0x33cdd7){const _0x404fc6=_0x550aef;return _0x49cbdd()[_0x404fc6('0xe8e')](_0x327291[_0x404fc6('0x532')],{'id':_0x307774[_0x404fc6('0x1ba2')]('admin')||_0x327291[_0x404fc6('0x16f8')]['autoAssociation']?_0x33cdd7['id']:_0x33cdd7[_0x404fc6('0x5db')]});}),_0x327291[_0x550aef('0x181b')]=angular[_0x550aef('0x14e5')](_0x327291['allowedItems']),_0x327291[_0x550aef('0x532')][_0x550aef('0xccd')](function(_0x419984){const _0x15b869=_0x550aef,_0x1c97ec=_0x49cbdd()['find'](_0x327291[_0x15b869('0x2722')],{'id':_0x419984['id']});_0x307774[_0x15b869('0x1ba2')](_0x15b869('0x20bf'))?_0x419984[_0x15b869('0xc98')]=!![]:_0x419984[_0x15b869('0xc98')]=typeof _0x1c97ec!==_0x15b869('0xfad')?!![]:![];}),_0x2b8b56();})[_0x433acc('0x17e7')](function(_0x252540){const _0x590b84=_0x433acc,_0x548c5e=_0x252540&&_0x252540[_0x590b84('0x2319')]?_0x252540[_0x590b84('0x2319')]:[];_0x327291[_0x590b84('0xc14')]=_0x49cbdd()[_0x590b84('0x787')](_0x548c5e,function(_0x120af7){const _0x159999=_0x590b84,_0x5f1273=_0x49cbdd()[_0x159999('0xe8e')](_0x327291[_0x159999('0x532')],{'id':_0x120af7['id']});return _0x5f1273[_0x159999('0x122c')]=_0x120af7[_0x159999('0x2358')]?'penalty\x20'+_0x120af7[_0x159999('0x2358')][_0x159999('0x122c')]:'',_0x5f1273[_0x159999('0xe3e')]=typeof _0x120af7[_0x159999('0xe3e')]!==_0x159999('0xfad')?'<'+_0x120af7[_0x159999('0xe3e')]+'>':'',_0x5f1273;}),_0x327291[_0x590b84('0x1824')]=angular[_0x590b84('0x14e5')](_0x327291['selectedItems']),_0x327291[_0x590b84('0x26f4')][_0x590b84('0xc14')]=_0x327291['selectedItems'],_0x327291['dualMultiselectOptions'][_0x590b84('0x532')]=_0x49cbdd()[_0x590b84('0x1ada')](_0x327291[_0x590b84('0x2722')],_0x327291[_0x590b84('0x26f4')][_0x590b84('0xc14')],'id'),_0x355280();})['catch'](function(_0x11847e){_0x8ad687(_0x11847e);});});}function _0x3c5a6d(){return _0x1c928a(function(_0x17ea23,_0x462be8){const _0x3761f4=a0_0xd29e;return _0x343c03[_0x3761f4('0x78d')][_0x3761f4('0x1c53')]({'sectionId':_0x327291[_0x3761f4('0x16f8')]['id'],'nolimit':!![]})[_0x3761f4('0x1af5')][_0x3761f4('0x17e7')](function(_0x46ac47){_0x17ea23(_0x46ac47);})[_0x3761f4('0x16df')](function(_0xe31ec5){_0x462be8(_0xe31ec5);});});}function _0x2b8b56(){return _0x1c928a(function(_0x7606d3,_0xf95068){const _0x4b2694=a0_0xd29e;return _0x343c03[_0x4b2694('0x92f')]['getAgents']({'id':_0x327291[_0x4b2694('0x92f')]['id'],'fields':_0x4b2694('0x1152'),'nolimit':!![],'role':'agent'})['$promise'][_0x4b2694('0x17e7')](function(_0x4de41d){_0x7606d3(_0x4de41d);})['catch'](function(_0x2408d9){_0xf95068(_0x2408d9);});});}function _0x3f76b0(){return _0x1c928a(function(_0x1ab1aa,_0x1371cd){const _0x11bca4=a0_0xd29e;return _0x343c03[_0x11bca4('0x221e')][_0x11bca4('0x1c53')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x11bca4('0x684')})[_0x11bca4('0x1af5')][_0x11bca4('0x17e7')](function(_0x5c09a8){_0x1ab1aa(_0x5c09a8);})[_0x11bca4('0x16df')](function(_0x572a30){_0x1371cd(_0x572a30);});});}function _0x321c90(_0x8a5d5){return _0x1c928a(function(_0x27c9a9,_0x35d300){const _0x4cbcd1=a0_0xd29e;_0x49cbdd()[_0x4cbcd1('0x109a')](_0x8a5d5)?_0x27c9a9():_0x343c03[_0x4cbcd1('0x92f')][_0x4cbcd1('0x1f22')]({'id':_0x327291[_0x4cbcd1('0x92f')]['id'],'ids':_0x49cbdd()['map'](_0x8a5d5,'id')})[_0x4cbcd1('0x1af5')][_0x4cbcd1('0x17e7')](function(){_0x27c9a9();})[_0x4cbcd1('0x16df')](function(_0x18143a){_0x35d300(_0x18143a);});});}function _0x304b05(_0x5872ef){return _0x1c928a(function(_0x50a3cb,_0x27b0eb){const _0x4c1628=a0_0xd29e;_0x49cbdd()[_0x4c1628('0x109a')](_0x5872ef)?_0x50a3cb():_0x343c03[_0x4c1628('0x92f')][_0x4c1628('0x1625')]({'id':_0x327291['voicePrefix']['id'],'ids':_0x49cbdd()[_0x4c1628('0x787')](_0x5872ef,'id')})[_0x4c1628('0x1af5')][_0x4c1628('0x17e7')](function(){_0x50a3cb();})['catch'](function(_0x359e2e){_0x27b0eb(_0x359e2e);});});}function _0x3c5c84(){const _0xefb405=_0x4a51d8,_0x1aa63b=_0x49cbdd()['differenceBy'](_0x327291['startingSelectedItems'],_0x327291[_0xefb405('0xc14')],'id'),_0x38aaff=_0x49cbdd()[_0xefb405('0x1ada')](_0x327291[_0xefb405('0xc14')],_0x327291[_0xefb405('0x1824')],'id');return _0x304b05(_0x1aa63b)[_0xefb405('0x17e7')](function(){return _0x321c90(_0x38aaff);})[_0xefb405('0x17e7')](function(){const _0x1c0786=_0xefb405;_0x327291[_0x1c0786('0x25dc')]=![],_0x327291['startingAllowedItems']=angular['copy'](_0x327291['allowedItems']),_0x327291[_0x1c0786('0x1824')]=angular[_0x1c0786('0x14e5')](_0x327291[_0x1c0786('0xc14')]),_0x3bc8d4[_0x1c0786('0x130d')]({'title':_0x1c0786('0x9d1'),'msg':_0x1c0786('0x2603')});})['catch'](function(_0x927298){const _0x5d9b90=_0xefb405;_0x3bc8d4[_0x5d9b90('0x1db9')]({'title':_0x927298['status']?_0x5d9b90('0x14f7')+_0x927298[_0x5d9b90('0x11c5')]+_0x5d9b90('0x16e4')+_0x927298[_0x5d9b90('0x1833')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x927298['status']?JSON['stringify'](_0x927298[_0x5d9b90('0x1457')]):_0x927298[_0x5d9b90('0x9b6')]()});});}function _0x1ccbee(){_0x3e8833['hide']();}}const _0x2c9a3d=_0xe97bf7,_0x4d8499=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/voicePrefixes/create/dialog.html/dialog.html',_0x3ff122=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/voicePrefixes/edit/agentadd/agentadd.html/agentadd.html';_0x1b67dc[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),'$mdSidenav',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$translate',_0x4376d8('0x11f5'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api','msUtils','toasty','Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x1b67dc(_0xb29f24,_0x3b96cd,_0x350805,_0x3f1544,_0x315b20,_0x5bf990,_0x1d9ece,_0x379f3d,_0x142104,_0x2d3013,_0x205b3d,_0x54a04,_0x394f8c,_0x16285e,_0x21eca5,_0x47c16c,_0x122ae1){const _0x583203=_0x4376d8,_0x2b5544=this;_0x2b5544['license']=_0x47c16c,_0x2b5544[_0x583203('0x1aeb')]=_0x122ae1,_0x2b5544['currentUser']=_0x21eca5[_0x583203('0x2831')](),_0x2b5544[_0x583203('0x11f5')]=_0x142104||{'count':0x0,'rows':[]},_0x2b5544[_0x583203('0xdeb')]=_0x2d3013,_0x2b5544[_0x583203('0x383')]=_0x205b3d&&_0x205b3d['count']==0x1?_0x205b3d[_0x583203('0x2319')][0x0]:null,_0x2b5544[_0x583203('0x103e')]=_0x21eca5[_0x583203('0x17a9')](_0x2b5544[_0x583203('0x383')]?_0x2b5544[_0x583203('0x383')][_0x583203('0x103e')]:null),_0x2b5544[_0x583203('0x23c3')]=_0x583203('0x11f5'),_0x2b5544['listOrder']='',_0x2b5544[_0x583203('0x24e1')]=null,_0x2b5544[_0x583203('0x2332')]=[],_0x2b5544[_0x583203('0x826')]={'fields':_0x583203('0x22bc'),'limit':0xa,'page':0x1},_0x2b5544[_0x583203('0xb32')]=_0x3a81c5,_0x2b5544[_0x583203('0x2359')]=_0xfe1a07,_0x2b5544[_0x583203('0xbf4')]=_0x1cbfae,_0x2b5544[_0x583203('0x130d')]=_0x5c0242,_0x2b5544[_0x583203('0x1e3d')]=_0x5dbb98,_0x2b5544[_0x583203('0x1140')]=_0x4213b1,_0x2b5544[_0x583203('0x279b')]=_0x232e46,_0x2b5544[_0x583203('0x20ab')]=_0x5a8525,_0x2b5544['deleteSelectedVoicePrefixes']=_0x59abaf,_0x2b5544[_0x583203('0x25d5')]=_0x1b3e49,_0x2b5544['selectAllVoicePrefixes']=_0x2cea8c,_0x21eca5[_0x583203('0x1ba2')]('admin')?_0x54a04['voiceExtension'][_0x583203('0x1c53')]({'fields':'id,exten','type':_0x583203('0x1ade'),'VoiceExtensionId':_0x583203('0x9bb'),'nolimit':'true'})[_0x583203('0x1af5')]['then'](function(_0x46ed2f){const _0x214f84=_0x583203;_0x2b5544[_0x214f84('0x789')]=_0x46ed2f[_0x214f84('0x2319')]||[];})[_0x583203('0x16df')](function(_0x341b68){const _0x2150bc=_0x583203;_0x16285e[_0x2150bc('0x1db9')]({'title':_0x341b68[_0x2150bc('0x11c5')]?_0x2150bc('0x14f7')+_0x341b68[_0x2150bc('0x11c5')]+'\x20-\x20'+_0x341b68[_0x2150bc('0x1833')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x341b68[_0x2150bc('0x1457')]?JSON[_0x2150bc('0x678')](_0x341b68['data']):_0x341b68[_0x2150bc('0x9b6')]()});}):_0x54a04[_0x583203('0x16c2')]['get']({'fields':_0x583203('0x1cd2'),'type':_0x583203('0x1ade'),'VoiceExtensionId':'null','nolimit':_0x583203('0xe34')})[_0x583203('0x1af5')][_0x583203('0x17e7')](function(_0xb95746){const _0x353de6=_0x583203;_0x2b5544[_0x353de6('0x789')]=_0xb95746[_0x353de6('0x2319')]||[];})[_0x583203('0x17e7')](function(){const _0xa05b5d=_0x583203;return _0x54a04[_0xa05b5d('0x383')][_0xa05b5d('0x1c53')]({'userProfileId':_0x2b5544[_0xa05b5d('0x197c')][_0xa05b5d('0x1e76')],'sectionId':0x193})[_0xa05b5d('0x1af5')];})[_0x583203('0x17e7')](function(_0x334d52){const _0x6cf2e6=_0x583203,_0x4bb58d=_0x334d52&&_0x334d52[_0x6cf2e6('0x2319')]?_0x334d52[_0x6cf2e6('0x2319')][0x0]:null;if(!_0x4bb58d){const _0x5bb95e=[];let _0xf835d6=null;_0x2b5544[_0x6cf2e6('0x92f')]&&(_0xf835d6=_0x49cbdd()['find'](_0x2b5544[_0x6cf2e6('0x789')],{'id':Number(_0x2b5544[_0x6cf2e6('0x92f')][_0x6cf2e6('0x64c')])}));for(let _0x3add59=0x0;_0x3add59<_0x2b5544[_0x6cf2e6('0x789')][_0x6cf2e6('0x1f73')];_0x3add59++){_0xf835d6&&_0x2b5544[_0x6cf2e6('0x789')][_0x3add59]['id']===_0xf835d6['id']&&(_0x2b5544[_0x6cf2e6('0x789')][_0x3add59][_0x6cf2e6('0xe5c')]=![],_0x5bb95e['push'](_0x2b5544[_0x6cf2e6('0x789')][_0x3add59]));}_0x2b5544['outboundRoutes']=_0x5bb95e;}else{if(!_0x4bb58d[_0x6cf2e6('0x9e3')])return _0x54a04['userProfileResource']['get']({'sectionId':_0x4bb58d['id']})[_0x6cf2e6('0x1af5')]['then'](function(_0x80eb39){const _0x492945=_0x6cf2e6,_0x30facc=_0x49cbdd()[_0x492945('0x787')](_0x80eb39[_0x492945('0x2319')],function(_0x46f7ba){const _0x43677f=_0x492945;return _0x49cbdd()[_0x43677f('0xe8e')](_0x2b5544[_0x43677f('0x789')],{'id':_0x46f7ba['resourceId']});});let _0x13fe6b=null;_0x2b5544[_0x492945('0x92f')]&&(_0x13fe6b=_0x49cbdd()[_0x492945('0xe8e')](_0x2b5544[_0x492945('0x789')],{'id':Number(_0x2b5544[_0x492945('0x92f')][_0x492945('0x64c')])}));if(_0x13fe6b&&!_0x49cbdd()[_0x492945('0x26f8')](_0x30facc,['id',_0x13fe6b['id']])){const _0x4e21de=_0x49cbdd()[_0x492945('0xe8e')](_0x2b5544[_0x492945('0x789')],{'id':_0x13fe6b['id']});_0x4e21de[_0x492945('0xe5c')]=![],_0x30facc[_0x492945('0x269f')](_0x4e21de);}_0x2b5544[_0x492945('0x789')]=_0x30facc;});}})['catch'](function(_0x4cae18){const _0x5b03db=_0x583203;_0x16285e[_0x5b03db('0x1db9')]({'title':_0x4cae18[_0x5b03db('0x11c5')]?_0x5b03db('0x14f7')+_0x4cae18['status']+_0x5b03db('0x16e4')+_0x4cae18[_0x5b03db('0x1833')]:_0x5b03db('0x28a4'),'msg':_0x4cae18[_0x5b03db('0x1457')]?JSON['stringify'](_0x4cae18[_0x5b03db('0x1457')]):_0x4cae18[_0x5b03db('0x9b6')]()});});function _0x3a81c5(_0x8a515d,_0x3e85b6){const _0x2a792d=_0x583203;_0x315b20[_0x2a792d('0x28e2')]({'controller':_0x2a792d('0x191a'),'controllerAs':'vm','templateUrl':_0x4d8499,'parent':angular[_0x2a792d('0x1ce1')](_0x5bf990[_0x2a792d('0x13aa')]),'targetEvent':_0x3e85b6,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x8a515d,'voicePrefixes':_0x2b5544['voicePrefixes'][_0x2a792d('0x2319')],'license':_0x2b5544[_0x2a792d('0x1d11')],'setting':null,'crudPermissions':_0x2b5544[_0x2a792d('0x103e')]}});}function _0xfe1a07(_0x26f10a,_0x350bdf){const _0xea8897=_0x583203;_0x315b20['show']({'controller':_0xea8897('0x18d0'),'controllerAs':'vm','templateUrl':_0x3ff122,'parent':angular[_0xea8897('0x1ce1')](_0x5bf990[_0xea8897('0x13aa')]),'targetEvent':_0x350bdf,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x26f10a,'voicePrefixes':_0x2b5544[_0xea8897('0x11f5')]?_0x2b5544['voicePrefixes'][_0xea8897('0x2319')]:[],'crudPermissions':_0x2b5544[_0xea8897('0x103e')],'realtime':![]}});}function _0x1cbfae(_0x28010e,_0x115bfe){const _0x4df06a=_0x583203,_0x57e471=_0x315b20[_0x4df06a('0x1121')]()[_0x4df06a('0x24d3')](_0x4df06a('0x5e1')+_0x49cbdd()['startCase']('voicePrefix')+'?')[_0x4df06a('0x211f')](_0x4df06a('0xa53')+(_0x28010e[_0x4df06a('0x2aa')]||_0x4df06a('0x92f'))+''+_0x4df06a('0xe9f'))[_0x4df06a('0x2095')](_0x4df06a('0x1b49'))[_0x4df06a('0x104f')](_0x115bfe)['ok']('OK')['cancel'](_0x4df06a('0x28a0'));_0x315b20['show'](_0x57e471)['then'](function(){_0x232e46(_0x28010e);},function(){const _0x44a6c0=_0x4df06a;console[_0x44a6c0('0x1d63')](_0x44a6c0('0x28a0'));});}let _0x559dd3=!![],_0x49727a=0x1;_0xb29f24['$watch'](_0x583203('0x3ed'),function(_0x511ea6,_0x4ac01e){const _0x4ed363=_0x583203;_0x559dd3?_0x1d9ece(function(){_0x559dd3=![];}):(!_0x4ac01e&&(_0x49727a=_0x2b5544[_0x4ed363('0x826')][_0x4ed363('0x115a')]),_0x511ea6!==_0x4ac01e&&(_0x2b5544[_0x4ed363('0x826')]['page']=0x1),!_0x511ea6&&(_0x2b5544[_0x4ed363('0x826')]['page']=_0x49727a),_0x2b5544[_0x4ed363('0x1e3d')]());});function _0x5c0242(_0x488261){const _0x467a8c=_0x583203;_0x2b5544[_0x467a8c('0x11f5')]=_0x488261||{'count':0x0,'rows':[]};}function _0x5dbb98(){const _0x202d9e=_0x583203;_0x2b5544[_0x202d9e('0x826')][_0x202d9e('0xf19')]=(_0x2b5544[_0x202d9e('0x826')]['page']-0x1)*_0x2b5544['query'][_0x202d9e('0x193b')],_0x21eca5['hasRole']('admin')?_0x2b5544[_0x202d9e('0x1691')]=_0x54a04[_0x202d9e('0x92f')]['get'](_0x2b5544[_0x202d9e('0x826')],_0x5c0242)[_0x202d9e('0x1af5')]:(_0x2b5544['query']['id']=_0x2b5544[_0x202d9e('0xdeb')]['id'],_0x2b5544[_0x202d9e('0x826')][_0x202d9e('0x16f8')]='VoicePrefixes',_0x2b5544[_0x202d9e('0x1691')]=_0x54a04[_0x202d9e('0xdeb')][_0x202d9e('0x2447')](_0x2b5544[_0x202d9e('0x826')],_0x5c0242)[_0x202d9e('0x1af5')]);}function _0x4213b1(_0x5b030c,_0x551b90){const _0x29a0ab=_0x583203;_0x315b20['show']({'controller':_0x29a0ab('0x191a'),'controllerAs':'vm','templateUrl':_0x4d8499,'parent':angular['element'](_0x5bf990[_0x29a0ab('0x13aa')]),'targetEvent':_0x5b030c,'clickOutsideToClose':!![],'locals':{'voicePrefix':_0x551b90,'voicePrefixes':_0x2b5544['voicePrefixes'][_0x29a0ab('0x2319')],'license':_0x2b5544[_0x29a0ab('0x1d11')],'setting':_0x2b5544[_0x29a0ab('0x1aeb')],'crudPermissions':_0x2b5544[_0x29a0ab('0x103e')]}});}function _0x232e46(_0x39579e){const _0x3e66e0=_0x583203;_0x54a04[_0x3e66e0('0x92f')][_0x3e66e0('0x1da6')]({'id':_0x39579e['id']})[_0x3e66e0('0x1af5')][_0x3e66e0('0x17e7')](function(){const _0x203702=_0x3e66e0;_0x49cbdd()[_0x203702('0x5f3')](_0x2b5544[_0x203702('0x11f5')][_0x203702('0x2319')],{'id':_0x39579e['id']}),_0x2b5544[_0x203702('0x11f5')][_0x203702('0x335')]-=0x1,!_0x2b5544['voicePrefixes'][_0x203702('0x2319')]['length']&&_0x2b5544[_0x203702('0x1e3d')](),_0x16285e['success']({'title':_0x49cbdd()['startCase'](_0x203702('0x92f'))+_0x203702('0x2673'),'msg':_0x39579e[_0x203702('0x2aa')]?_0x39579e['name']+_0x203702('0x149f'):''});})[_0x3e66e0('0x16df')](function(_0x511db9){const _0x246f7d=_0x3e66e0;if(_0x511db9[_0x246f7d('0x1457')]&&_0x511db9[_0x246f7d('0x1457')][_0x246f7d('0x73e')]&&_0x511db9[_0x246f7d('0x1457')]['errors'][_0x246f7d('0x1f73')]){_0x2b5544[_0x246f7d('0x73e')]=_0x511db9[_0x246f7d('0x1457')][_0x246f7d('0x73e')]||[{'message':_0x511db9['toString'](),'type':_0x246f7d('0x1592')}];for(let _0x17497e=0x0;_0x17497e<_0x511db9['data'][_0x246f7d('0x73e')][_0x246f7d('0x1f73')];_0x17497e++){_0x16285e[_0x246f7d('0x1db9')]({'title':_0x511db9[_0x246f7d('0x1457')][_0x246f7d('0x73e')][_0x17497e][_0x246f7d('0x412')],'msg':_0x511db9[_0x246f7d('0x1457')][_0x246f7d('0x73e')][_0x17497e][_0x246f7d('0x1603')]});}}else _0x16285e[_0x246f7d('0x1db9')]({'title':_0x511db9[_0x246f7d('0x11c5')]?'API:'+_0x511db9[_0x246f7d('0x11c5')]+_0x246f7d('0x16e4')+_0x511db9[_0x246f7d('0x1833')]:_0x246f7d('0x1592'),'msg':_0x511db9[_0x246f7d('0x1457')]?JSON[_0x246f7d('0x678')](_0x511db9[_0x246f7d('0x1457')][_0x246f7d('0x1603')]):_0x511db9[_0x246f7d('0x1603')]||_0x511db9['toString']()});});}function _0x5a8525(){const _0x3d3015=_0x583203,_0x39f175=angular['copy'](_0x2b5544[_0x3d3015('0x2332')]);return _0x2b5544['selectedVoicePrefixes']=[],_0x39f175;}function _0x59abaf(_0x3ba375){const _0x4b00e1=_0x583203,_0x3e1312=_0x315b20[_0x4b00e1('0x1121')]()[_0x4b00e1('0x24d3')](_0x4b00e1('0xf16'))[_0x4b00e1('0x211f')](_0x4b00e1('0xa53')+_0x2b5544[_0x4b00e1('0x2332')][_0x4b00e1('0x1f73')]+_0x4b00e1('0x145a')+'\x20will\x20be\x20deleted.')[_0x4b00e1('0x2095')]('delete\x20voicePrefixs')['targetEvent'](_0x3ba375)['ok']('OK')[_0x4b00e1('0x1d47')](_0x4b00e1('0x28a0'));_0x315b20[_0x4b00e1('0x28e2')](_0x3e1312)[_0x4b00e1('0x17e7')](function(){const _0x3094bf=_0x4b00e1;_0x2b5544['selectedVoicePrefixes'][_0x3094bf('0xccd')](function(_0x17bb6a){_0x232e46(_0x17bb6a);}),_0x2b5544[_0x3094bf('0x2332')]=[];});}function _0x1b3e49(){const _0x22b40f=_0x583203;_0x2b5544[_0x22b40f('0x2332')]=[];}function _0x2cea8c(){const _0x2a490b=_0x583203;_0x2b5544[_0x2a490b('0x2332')]=_0x2b5544[_0x2a490b('0x11f5')][_0x2a490b('0x2319')];}}const _0x37f90b=_0x1b67dc;_0x771b30['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x160f'),_0x4376d8('0x1243'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x771b30(_0x13d084,_0x13a31f,_0x8b4562,_0x3fbbeb,_0x4c3581,_0x758d58,_0x1ebbb0,_0x35c463,_0x56006d,_0x1a10e3,_0x5e7bfb,_0x45b904,_0x156c6d,_0xa6d880){const _0x2dbdf5=_0x4376d8,_0x314542=this;_0x314542['currentUser']=_0x5e7bfb[_0x2dbdf5('0x2831')](),_0x314542['errors']=[],_0x314542[_0x2dbdf5('0x1aeb')]=_0x156c6d,_0x314542[_0x2dbdf5('0x1d11')]=_0x45b904,_0x314542[_0x2dbdf5('0x103e')]=_0xa6d880,_0x314542[_0x2dbdf5('0x6ee')]={},_0x314542[_0x2dbdf5('0x1572')]=_0x314542[_0x2dbdf5('0x1aeb')]&&_0x314542[_0x2dbdf5('0x1aeb')][_0x2dbdf5('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x314542['title']='VOICE.EDIT_VOICEQUEUE',_0x314542['voiceQueue']=angular[_0x2dbdf5('0x14e5')](_0x56006d),_0x314542[_0x2dbdf5('0x160f')]=_0x35c463,_0x314542['newVoiceQueue']=![];!_0x314542[_0x2dbdf5('0x1243')]&&(_0x314542[_0x2dbdf5('0x1243')]={'type':_0x2dbdf5('0x1e77'),'strategy':_0x2dbdf5('0x49c'),'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'},_0x314542[_0x2dbdf5('0x24d3')]='VOICE.NEW_VOICEQUEUE',_0x314542[_0x2dbdf5('0x66e')]=!![]);_0x314542[_0x2dbdf5('0x6c')]=_0x39852d,_0x314542[_0x2dbdf5('0x3b1')]=_0x59db39,_0x314542[_0x2dbdf5('0x27a4')]=_0x36a6bc,_0x314542[_0x2dbdf5('0x1300')]=_0x25ef37,_0x314542[_0x2dbdf5('0x136e')]=_0x81f36a;function _0x39852d(){const _0x36cfa8=_0x2dbdf5;_0x314542[_0x36cfa8('0x73e')]=[],_0x1a10e3[_0x36cfa8('0x1243')][_0x36cfa8('0x2439')](_0x314542[_0x36cfa8('0x1243')])[_0x36cfa8('0x1af5')]['then'](function(_0xf9f095){const _0x33b1a0=_0x36cfa8;_0x314542['voiceQueues'][_0x33b1a0('0x1893')](_0xf9f095[_0x33b1a0('0x16b2')]()),_0x1ebbb0[_0x33b1a0('0x130d')]({'title':'VoiceQueue\x20properly\x20created','msg':_0x314542['voiceQueue'][_0x33b1a0('0x2aa')]?_0x314542[_0x33b1a0('0x1243')][_0x33b1a0('0x2aa')]+_0x33b1a0('0x15a'):''}),_0x81f36a(_0xf9f095);})[_0x36cfa8('0x16df')](function(_0x310883){const _0x5ce8da=_0x36cfa8;if(_0x310883['data']&&_0x310883[_0x5ce8da('0x1457')][_0x5ce8da('0x73e')]&&_0x310883[_0x5ce8da('0x1457')][_0x5ce8da('0x73e')][_0x5ce8da('0x1f73')]){_0x314542[_0x5ce8da('0x73e')]=_0x310883[_0x5ce8da('0x1457')][_0x5ce8da('0x73e')]||[{'message':_0x310883[_0x5ce8da('0x9b6')](),'type':_0x5ce8da('0x1d32')}];for(let _0x2fec47=0x0;_0x2fec47<_0x310883['data'][_0x5ce8da('0x73e')][_0x5ce8da('0x1f73')];_0x2fec47+=0x1){_0x1ebbb0[_0x5ce8da('0x1db9')]({'title':_0x310883[_0x5ce8da('0x1457')]['errors'][_0x2fec47][_0x5ce8da('0x412')],'msg':_0x310883[_0x5ce8da('0x1457')][_0x5ce8da('0x73e')][_0x2fec47][_0x5ce8da('0x1603')]});}}else _0x1ebbb0[_0x5ce8da('0x1db9')]({'title':_0x310883[_0x5ce8da('0x11c5')]?_0x5ce8da('0x14f7')+_0x310883[_0x5ce8da('0x11c5')]+_0x5ce8da('0x16e4')+_0x310883[_0x5ce8da('0x1833')]:_0x5ce8da('0x1d32'),'msg':_0x310883['data']?JSON['stringify'](_0x310883[_0x5ce8da('0x1457')][_0x5ce8da('0x1603')]):_0x310883[_0x5ce8da('0x9b6')]()});});}function _0x59db39(){const _0x47b8b8=_0x2dbdf5;_0x314542[_0x47b8b8('0x73e')]=[],_0x1a10e3[_0x47b8b8('0x1243')][_0x47b8b8('0x27ba')]({'id':_0x314542[_0x47b8b8('0x1243')]['id']},_0x314542[_0x47b8b8('0x1243')])[_0x47b8b8('0x1af5')][_0x47b8b8('0x17e7')](function(_0x2cb08d){const _0x31f0e4=_0x47b8b8,_0xc80006=_0x49cbdd()[_0x31f0e4('0xe8e')](_0x314542['voiceQueues'],{'id':_0x2cb08d['id']});_0xc80006&&_0x49cbdd()[_0x31f0e4('0x1ced')](_0xc80006,_0x49cbdd()[_0x31f0e4('0x230a')](_0x2cb08d[_0x31f0e4('0x16b2')](),_0x49cbdd()[_0x31f0e4('0x1c0f')](_0xc80006))),_0x1ebbb0[_0x31f0e4('0x130d')]({'title':_0x31f0e4('0xce7'),'msg':_0x314542[_0x31f0e4('0x1243')]['name']?_0x314542[_0x31f0e4('0x1243')][_0x31f0e4('0x2aa')]+_0x31f0e4('0x15ca'):''}),_0x81f36a(_0x2cb08d);})[_0x47b8b8('0x16df')](function(_0x197423){const _0x29f191=_0x47b8b8;if(_0x197423[_0x29f191('0x1457')]&&_0x197423[_0x29f191('0x1457')][_0x29f191('0x73e')]&&_0x197423[_0x29f191('0x1457')][_0x29f191('0x73e')][_0x29f191('0x1f73')]){_0x314542['errors']=_0x197423[_0x29f191('0x1457')][_0x29f191('0x73e')]||[{'message':_0x197423[_0x29f191('0x9b6')](),'type':_0x29f191('0x134f')}];for(let _0x527ea2=0x0;_0x527ea2<_0x197423['data']['errors']['length'];_0x527ea2++){_0x1ebbb0[_0x29f191('0x1db9')]({'title':_0x197423[_0x29f191('0x1457')][_0x29f191('0x73e')][_0x527ea2][_0x29f191('0x412')],'msg':_0x197423[_0x29f191('0x1457')][_0x29f191('0x73e')][_0x527ea2][_0x29f191('0x1603')]});}}else _0x1ebbb0['error']({'title':_0x197423[_0x29f191('0x11c5')]?'API:'+_0x197423[_0x29f191('0x11c5')]+'\x20-\x20'+_0x197423['statusText']:'api.voiceQueue.update','msg':_0x197423[_0x29f191('0x1457')]?JSON[_0x29f191('0x678')](_0x197423[_0x29f191('0x1457')]['message']):_0x197423[_0x29f191('0x9b6')]()});});}function _0x36a6bc(_0x2bb8d7){const _0xb61815=_0x2dbdf5;_0x314542[_0xb61815('0x73e')]=[];const _0x592fb2=_0x3fbbeb[_0xb61815('0x1121')]()[_0xb61815('0x24d3')]('Are\x20you\x20sure?')[_0xb61815('0xd5')]('The\x20voiceQueue\x20will\x20be\x20deleted.')[_0xb61815('0x2095')](_0xb61815('0xc70'))['ok'](_0xb61815('0x304'))[_0xb61815('0x1d47')]('Cancel')[_0xb61815('0x104f')](_0x2bb8d7);_0x3fbbeb[_0xb61815('0x28e2')](_0x592fb2)[_0xb61815('0x17e7')](function(){const _0x5e1a39=_0xb61815;_0x1a10e3[_0x5e1a39('0x1243')][_0x5e1a39('0x1da6')]({'id':_0x314542['voiceQueue']['id']})[_0x5e1a39('0x1af5')][_0x5e1a39('0x17e7')](function(){const _0xf8eb56=_0x5e1a39;_0x49cbdd()[_0xf8eb56('0x5f3')](_0x314542[_0xf8eb56('0x160f')],{'id':_0x314542[_0xf8eb56('0x1243')]['id']}),_0x1ebbb0[_0xf8eb56('0x130d')]({'title':'VoiceQueue\x20properly\x20deleted!','msg':(_0x314542[_0xf8eb56('0x1243')][_0xf8eb56('0x2aa')]||_0xf8eb56('0x1243'))+_0xf8eb56('0x149f')}),_0x81f36a(_0x314542['voiceQueue']);})[_0x5e1a39('0x16df')](function(_0x174882){const _0x5f3d5c=_0x5e1a39;if(_0x174882[_0x5f3d5c('0x1457')]&&_0x174882[_0x5f3d5c('0x1457')][_0x5f3d5c('0x73e')]&&_0x174882[_0x5f3d5c('0x1457')][_0x5f3d5c('0x73e')][_0x5f3d5c('0x1f73')]){_0x314542[_0x5f3d5c('0x73e')]=_0x174882[_0x5f3d5c('0x1457')][_0x5f3d5c('0x73e')]||[{'message':_0x174882[_0x5f3d5c('0x9b6')](),'type':_0x5f3d5c('0xe11')}];for(let _0x30a4e9=0x0;_0x30a4e9<_0x174882[_0x5f3d5c('0x1457')][_0x5f3d5c('0x73e')][_0x5f3d5c('0x1f73')];_0x30a4e9++){_0x1ebbb0[_0x5f3d5c('0x1db9')]({'title':_0x174882[_0x5f3d5c('0x1457')][_0x5f3d5c('0x73e')][_0x30a4e9][_0x5f3d5c('0x412')],'msg':_0x174882[_0x5f3d5c('0x1457')][_0x5f3d5c('0x73e')][_0x30a4e9][_0x5f3d5c('0x1603')]});}}else _0x1ebbb0[_0x5f3d5c('0x1db9')]({'title':_0x174882['status']?_0x5f3d5c('0x14f7')+_0x174882['status']+_0x5f3d5c('0x16e4')+_0x174882[_0x5f3d5c('0x1833')]:_0x5f3d5c('0xe11'),'msg':_0x174882[_0x5f3d5c('0x1457')]?JSON['stringify'](_0x174882[_0x5f3d5c('0x1457')]['message']):_0x174882[_0x5f3d5c('0x1603')]||_0x174882[_0x5f3d5c('0x9b6')]()});});},function(){});}function _0x25ef37(_0x59e895){return _0x59e895===null?undefined:new Date(_0x59e895);}function _0x81f36a(_0x2f2312){const _0x5aeaac=_0x2dbdf5;_0x3fbbeb[_0x5aeaac('0x212a')](_0x2f2312);}}const _0x4041c9=_0x771b30;_0x214f3c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1243'),'voiceQueues','realtime','$translate',_0x4376d8('0x1885'),'crudPermissions'];function _0x214f3c(_0x4ea28d,_0x1ca54a,_0x54d456,_0x3e6880,_0x501a95,_0x5c1924,_0x572f46,_0x4c4112,_0x38fef0,_0x307f56){const _0x343539=_0x4376d8,_0x2e0c68=this;_0x2e0c68[_0x343539('0x197c')]=_0x38fef0['getCurrentUser'](),_0x2e0c68[_0x343539('0x1243')]=_0x501a95,_0x2e0c68['crudPermissions']=_0x307f56,_0x2e0c68[_0x343539('0x122c')]=0x0,_0x2e0c68['realtime']=_0x572f46,_0x2e0c68['items']=[],_0x2e0c68['allowedItems']=[],_0x2e0c68[_0x343539('0xc14')]=[],_0x2e0c68[_0x343539('0x181b')]=[],_0x2e0c68[_0x343539('0x1824')]=[],_0x2e0c68[_0x343539('0x25dc')]=![],_0x2e0c68[_0x343539('0xdf0')]=_0x5f839e,_0x2e0c68[_0x343539('0x257a')]=_0x57bed2,_0x2e0c68[_0x343539('0x136e')]=_0x4b1717,_0x2e0c68[_0x343539('0x26f4')]={'readOnly':!_0x2e0c68['crudPermissions'][_0x343539('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x343539('0xea6'),'line2':['name',_0x343539('0xe3e')],'line3':'penalty','labelAll':_0x4c4112['instant'](_0x343539('0x111c')),'labelSelected':_0x4c4112[_0x343539('0x1acc')](_0x343539('0x555')),'transferCallback':function(_0x4205ce,_0x121f1e){const _0x2cb107=_0x343539;_0x121f1e?_0x4205ce[_0x2cb107('0xccd')](function(_0x58898e){_0x58898e['penalty']=undefined;}):_0x4205ce['forEach'](function(_0x42ed87){const _0x1ea752=_0x2cb107;_0x42ed87[_0x1ea752('0x122c')]='penalty\x20'+_0x2e0c68['penalty'];});const _0x405f98=_0x49cbdd()[_0x2cb107('0x16')](_0x2e0c68['startingSelectedItems'],_0x2e0c68[_0x2cb107('0xc14')],function(_0x2d5546,_0x1774a0){const _0x51cbb8=_0x2cb107;return _0x2d5546['id']===_0x1774a0['id']&&_0x2d5546[_0x51cbb8('0x122c')]===_0x1774a0[_0x51cbb8('0x122c')];});_0x2e0c68[_0x2cb107('0x25dc')]=_0x49cbdd()[_0x2cb107('0x109a')](_0x405f98)?![]:!![];}};function _0x5f839e(){const _0x1e0492=_0x343539;return _0x38fef0[_0x1e0492('0x1ba2')]('admin')?_0x287906()[_0x1e0492('0x16df')](function(_0x4f50d8){const _0x477688=_0x1e0492;_0x54d456[_0x477688('0x1db9')]({'title':_0x4f50d8['status']?_0x477688('0x14f7')+_0x4f50d8[_0x477688('0x11c5')]+_0x477688('0x16e4')+_0x4f50d8[_0x477688('0x1833')]:_0x477688('0x23e0'),'msg':_0x4f50d8['status']?JSON[_0x477688('0x678')](_0x4f50d8[_0x477688('0x1457')]):_0x4f50d8['toString']()});}):_0x231251()[_0x1e0492('0x17e7')](function(_0x34adb5){return _0x2e0c68['section']=_0x34adb5,_0x287906();})[_0x1e0492('0x16df')](function(_0x3760c3){const _0x33a463=_0x1e0492;_0x54d456[_0x33a463('0x1db9')]({'title':_0x3760c3[_0x33a463('0x11c5')]?'API:'+_0x3760c3['status']+'\x20-\x20'+_0x3760c3[_0x33a463('0x1833')]:_0x33a463('0x23e0'),'msg':_0x3760c3[_0x33a463('0x11c5')]?JSON[_0x33a463('0x678')](_0x3760c3[_0x33a463('0x1457')]):_0x3760c3['toString']()});});}function _0x231251(){return _0x1ca54a(function(_0xd6a291,_0x3f88c6){const _0x86c8f5=a0_0xd29e;_0x3e6880[_0x86c8f5('0x383')][_0x86c8f5('0x1c53')]({'userProfileId':_0x2e0c68[_0x86c8f5('0x197c')]['userProfileId'],'name':_0x86c8f5('0x2157')})[_0x86c8f5('0x1af5')][_0x86c8f5('0x17e7')](function(_0x269f81){const _0x900a75=_0x86c8f5,_0x287316=_0x269f81&&_0x269f81[_0x900a75('0x2319')]?_0x269f81[_0x900a75('0x2319')][0x0]:null;_0xd6a291(_0x287316);})[_0x86c8f5('0x16df')](function(_0x417289){_0x3f88c6(_0x417289);});});}function _0x287906(){return _0x1ca54a(function(_0x17e46d,_0x500964){const _0x54a903=a0_0xd29e;return _0xadb0cd()['then'](function(_0x458d72){const _0x39b9c5=a0_0xd29e;return _0x2e0c68[_0x39b9c5('0x532')]=_0x458d72[_0x39b9c5('0x2319')]?_0x458d72['rows']:[],_0x38fef0[_0x39b9c5('0x1ba2')](_0x39b9c5('0x20bf'))?_0x458d72:_0x2e0c68[_0x39b9c5('0x16f8')]?_0x2e0c68[_0x39b9c5('0x16f8')][_0x39b9c5('0x9e3')]?_0x458d72:_0x2f270d():null;})['then'](function(_0x311956){const _0x564242=a0_0xd29e,_0x4e3534=_0x311956&&_0x311956[_0x564242('0x2319')]?_0x311956[_0x564242('0x2319')]:[];return _0x2e0c68[_0x564242('0x2722')]=_0x49cbdd()[_0x564242('0x787')](_0x4e3534,function(_0x758b47){const _0x268137=_0x564242;return _0x49cbdd()[_0x268137('0xe8e')](_0x2e0c68['items'],{'id':_0x38fef0['hasRole'](_0x268137('0x20bf'))||_0x2e0c68[_0x268137('0x16f8')][_0x268137('0x9e3')]?_0x758b47['id']:_0x758b47[_0x268137('0x5db')]});}),_0x2e0c68[_0x564242('0x181b')]=angular[_0x564242('0x14e5')](_0x2e0c68[_0x564242('0x2722')]),_0x2e0c68['items'][_0x564242('0xccd')](function(_0x260ccc){const _0x30d40d=_0x564242,_0x431769=_0x49cbdd()[_0x30d40d('0xe8e')](_0x2e0c68[_0x30d40d('0x2722')],{'id':_0x260ccc['id']});_0x38fef0[_0x30d40d('0x1ba2')](_0x30d40d('0x20bf'))?_0x260ccc[_0x30d40d('0xc98')]=!![]:_0x260ccc[_0x30d40d('0xc98')]=typeof _0x431769!==_0x30d40d('0xfad')?!![]:![];}),_0x2b2e0b();})['then'](function(_0x5a8543){const _0x5aa841=a0_0xd29e,_0x3db417=_0x5a8543&&_0x5a8543[_0x5aa841('0x2319')]?_0x5a8543['rows']:[];_0x2e0c68['selectedItems']=_0x49cbdd()['map'](_0x3db417,function(_0x1f9c79){const _0x319029=_0x5aa841,_0x3480d9=_0x49cbdd()['find'](_0x2e0c68[_0x319029('0x532')],{'id':_0x1f9c79['id']});return _0x3480d9[_0x319029('0x122c')]=_0x1f9c79[_0x319029('0x35d')]?_0x319029('0x973')+_0x1f9c79[_0x319029('0x35d')][_0x319029('0x122c')]:'',_0x3480d9['internal']=typeof _0x1f9c79[_0x319029('0xe3e')]!==_0x319029('0xfad')?'<'+_0x1f9c79[_0x319029('0xe3e')]+'>':'',_0x3480d9;}),_0x2e0c68[_0x5aa841('0x1824')]=angular[_0x5aa841('0x14e5')](_0x2e0c68[_0x5aa841('0xc14')]),_0x2e0c68[_0x5aa841('0x26f4')]['selectedItems']=_0x2e0c68['selectedItems'],_0x2e0c68[_0x5aa841('0x26f4')][_0x5aa841('0x532')]=_0x49cbdd()[_0x5aa841('0x1ada')](_0x2e0c68[_0x5aa841('0x2722')],_0x2e0c68[_0x5aa841('0x26f4')]['selectedItems'],'id'),_0x17e46d();})[_0x54a903('0x16df')](function(_0x463690){_0x500964(_0x463690);});});}function _0x2f270d(){return _0x1ca54a(function(_0xb6f034,_0x29ef69){const _0x4bc949=a0_0xd29e;return _0x3e6880[_0x4bc949('0x78d')]['get']({'sectionId':_0x2e0c68['section']['id'],'nolimit':!![]})[_0x4bc949('0x1af5')][_0x4bc949('0x17e7')](function(_0x23a087){_0xb6f034(_0x23a087);})['catch'](function(_0x2329b2){_0x29ef69(_0x2329b2);});});}function _0x2b2e0b(){return _0x1ca54a(function(_0x6ec910,_0x2b0f78){const _0x478b8c=a0_0xd29e;return _0x3e6880[_0x478b8c('0x1243')][_0x478b8c('0x1dac')]({'id':_0x2e0c68[_0x478b8c('0x1243')]['id'],'fields':_0x478b8c('0x1152'),'nolimit':!![],'role':_0x478b8c('0x684')})['$promise'][_0x478b8c('0x17e7')](function(_0x1deff2){_0x6ec910(_0x1deff2);})[_0x478b8c('0x16df')](function(_0x5c189c){_0x2b0f78(_0x5c189c);});});}function _0xadb0cd(){return _0x1ca54a(function(_0x3f56fb,_0x4ddbd1){const _0x7f717f=a0_0xd29e;return _0x3e6880[_0x7f717f('0x221e')][_0x7f717f('0x1c53')]({'fields':_0x7f717f('0x1152'),'nolimit':!![],'role':'agent'})[_0x7f717f('0x1af5')][_0x7f717f('0x17e7')](function(_0x2f4c2e){_0x3f56fb(_0x2f4c2e);})[_0x7f717f('0x16df')](function(_0x13c775){_0x4ddbd1(_0x13c775);});});}function _0x55b827(_0x248b35){return _0x1ca54a(function(_0x23d94c,_0x1a0fa3){const _0x3ab163=a0_0xd29e;if(_0x49cbdd()[_0x3ab163('0x109a')](_0x248b35))_0x23d94c();else{const _0x12a3d5=[],_0x4d1fd5=_0x49cbdd()[_0x3ab163('0x139f')](_0x248b35,_0x3ab163('0x122c'));for(let _0x4e516e=0x0;_0x4e516e-0x1?_0x57a055['substring'](_0x57a055['lastIndexOf']('/')+0x1):_0x57a055[_0x231f57('0x4ff')]('\x5c')>-0x1?_0x57a055[_0x231f57('0xa65')](_0x57a055[_0x231f57('0x4ff')]('\x5c')+0x1):_0x57a055;return _0x58bcdc=_0x58bcdc[_0x231f57('0xa65')](0x0,_0x58bcdc[_0x231f57('0x4ff')]('.')),_0x58bcdc;}function _0x590582(_0x317f9c){const _0x4f1690=_0x3b0278;let _0x55e118=![];const _0x1f6f8e=!_0x49cbdd()[_0x4f1690('0x390')](_0x317f9c['format'])?_0x317f9c[_0x4f1690('0x1c0d')]:_0x317f9c[_0x4f1690('0x175b')]['substring'](_0x317f9c[_0x4f1690('0x175b')]['lastIndexOf']('.'));return _0x55e118=_0x1f6f8e===_0x4f1690('0x20d0')?!![]:![],_0x584e70['voiceRecording']['download']({'id':_0x317f9c['id']})[_0x4f1690('0x1af5')][_0x4f1690('0x17e7')](function(_0x3d9ded){const _0x23af13=_0x4f1690,_0x149729=[_0x3d9ded[_0x23af13('0x3ca')]];let _0x593c85=_0x23af13('0x1244');const _0x23cdbf=new Blob(_0x149729,{'type':_0x3d9ded['type']});_0x593c85=_0x857637(_0x317f9c[_0x23af13('0x175b')])+_0x317f9c[_0x23af13('0x1c0d')];const _0x596230=window[_0x23af13('0x2be')][_0x23af13('0x68d')]('a');_0x596230[_0x23af13('0x224')](_0x23af13('0x448'),URL[_0x23af13('0x28ce')](_0x23cdbf)),_0x596230[_0x23af13('0x224')](_0x23af13('0x1244'),_0x593c85),document['body'][_0x23af13('0x128c')](_0x596230),_0x596230[_0x23af13('0x20d4')]();})['catch'](function(_0x2b9f4f){const _0x5071ce=_0x4f1690;if(_0x2b9f4f['data']&&_0x2b9f4f[_0x5071ce('0x1457')][_0x5071ce('0x73e')]&&_0x2b9f4f[_0x5071ce('0x1457')][_0x5071ce('0x73e')]['length'])for(let _0x12cccb=0x0;_0x12cccb<_0x2b9f4f[_0x5071ce('0x1457')][_0x5071ce('0x73e')][_0x5071ce('0x1f73')];_0x12cccb++){_0x5dd94c[_0x5071ce('0x1db9')]({'title':_0x2b9f4f[_0x5071ce('0x1457')]['errors'][_0x12cccb][_0x5071ce('0x412')],'msg':_0x2b9f4f['data'][_0x5071ce('0x73e')][_0x12cccb]['message']});}else{if(String(_0x2b9f4f[_0x5071ce('0x11c5')])===_0x5071ce('0x1ea8')&&_0x55e118===![])_0x5dd94c[_0x5071ce('0x1178')]({'title':_0x1e171d['instant'](_0x5071ce('0x1aba')),'msg':_0x1e171d[_0x5071ce('0x1acc')](_0x5071ce('0xf83'))});else String(_0x2b9f4f[_0x5071ce('0x11c5')])===_0x5071ce('0x1ea8')?_0x5dd94c[_0x5071ce('0x1178')]({'title':_0x1e171d['instant'](_0x5071ce('0x1aba')),'msg':_0x1e171d[_0x5071ce('0x1acc')](_0x5071ce('0x10ba'))}):_0x5dd94c['error']({'title':_0x2b9f4f['status']?_0x5071ce('0x14f7')+_0x2b9f4f[_0x5071ce('0x11c5')]+'\x20-\x20'+_0x2b9f4f[_0x5071ce('0x1833')]:'api.voiceRecording.save','msg':_0x2b9f4f[_0x5071ce('0x1457')]?JSON[_0x5071ce('0x678')](_0x2b9f4f[_0x5071ce('0x1457')][_0x5071ce('0x1603')]):_0x2b9f4f['toString']()});}});}function _0x31728c(_0xeda9c4,_0x2d58bc){const _0x4cd7ae=_0x3b0278,_0x19e42f=_0x146b4c[_0x4cd7ae('0x1121')]()['title'](_0x4cd7ae('0x5e1')+_0x49cbdd()[_0x4cd7ae('0x1c98')](_0x4cd7ae('0x5f4'))+'?')[_0x4cd7ae('0x211f')](_0x4cd7ae('0xa53')+(_0xeda9c4[_0x4cd7ae('0x2aa')]||_0x4cd7ae('0x5f4'))+''+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x4cd7ae('0x176a'))[_0x4cd7ae('0x104f')](_0x2d58bc)['ok']('OK')[_0x4cd7ae('0x1d47')]('CANCEL');_0x146b4c[_0x4cd7ae('0x28e2')](_0x19e42f)[_0x4cd7ae('0x17e7')](function(){_0xcc61c8(_0xeda9c4);},function(){const _0x40e022=_0x4cd7ae;console[_0x40e022('0x1d63')](_0x40e022('0x28a0'));});}let _0xfeaa38=!![],_0x19e1b0=0x1;_0x5bc2ff[_0x3b0278('0x620')](_0x3b0278('0x3ed'),function(_0x1e722c,_0x552792){const _0x361953=_0x3b0278;_0xfeaa38?_0x36e3f3(function(){_0xfeaa38=![];}):(!_0x552792&&(_0x19e1b0=_0x17c52d[_0x361953('0x826')][_0x361953('0x115a')]),_0x1e722c!==_0x552792&&(_0x17c52d['query'][_0x361953('0x115a')]=0x1),!_0x1e722c&&(_0x17c52d[_0x361953('0x826')][_0x361953('0x115a')]=_0x19e1b0),_0x17c52d['getVoiceRecordings']());});function _0x3c12a9(_0x3d0fd3){const _0x3ecc12=_0x3b0278;_0x17c52d[_0x3ecc12('0x1161')]=_0x3d0fd3||{'count':0x0,'rows':[]};}function _0x219222(){const _0x39239b=_0x3b0278;_0x17c52d[_0x39239b('0x826')][_0x39239b('0xf19')]=(_0x17c52d['query'][_0x39239b('0x115a')]-0x1)*_0x17c52d[_0x39239b('0x826')]['limit'],_0x458e5d[_0x39239b('0x1ba2')](_0x39239b('0x20bf'))?_0x17c52d[_0x39239b('0x1691')]=_0x584e70['voiceRecording'][_0x39239b('0x1c53')](_0x17c52d[_0x39239b('0x826')],_0x3c12a9)[_0x39239b('0x1af5')]:(_0x17c52d[_0x39239b('0x826')]['id']=_0x17c52d[_0x39239b('0xdeb')]['id'],_0x17c52d[_0x39239b('0x826')][_0x39239b('0x16f8')]='VoiceRecordings',_0x17c52d[_0x39239b('0x1691')]=_0x584e70[_0x39239b('0xdeb')][_0x39239b('0x2447')](_0x17c52d['query'],_0x3c12a9)['$promise']);}function _0x5accde(_0x58aec5,_0x1e305f){const _0x446ad7=_0x3b0278;_0x146b4c[_0x446ad7('0x28e2')]({'controller':_0x446ad7('0x674'),'controllerAs':'vm','templateUrl':_0x56e084,'parent':angular[_0x446ad7('0x1ce1')](_0x58c4c5[_0x446ad7('0x13aa')]),'targetEvent':_0x58aec5,'clickOutsideToClose':!![],'locals':{'voiceRecording':_0x1e305f,'voiceRecordings':_0x17c52d['voiceRecordings'][_0x446ad7('0x2319')],'license':_0x17c52d[_0x446ad7('0x1d11')],'setting':_0x17c52d[_0x446ad7('0x1aeb')],'crudPermissions':_0x17c52d[_0x446ad7('0x103e')]}});}function _0xcc61c8(_0x428c30){const _0x2d0f20=_0x3b0278;_0x584e70[_0x2d0f20('0x5f4')][_0x2d0f20('0x1da6')]({'id':_0x428c30['id']})[_0x2d0f20('0x1af5')][_0x2d0f20('0x17e7')](function(){const _0x4205ef=_0x2d0f20;_0x49cbdd()[_0x4205ef('0x5f3')](_0x17c52d[_0x4205ef('0x1161')][_0x4205ef('0x2319')],{'id':_0x428c30['id']}),_0x17c52d['voiceRecordings'][_0x4205ef('0x335')]-=0x1,!_0x17c52d[_0x4205ef('0x1161')][_0x4205ef('0x2319')][_0x4205ef('0x1f73')]&&_0x17c52d['getVoiceRecordings'](),_0x5dd94c[_0x4205ef('0x130d')]({'title':_0x49cbdd()[_0x4205ef('0x1c98')](_0x4205ef('0xc59'))+_0x4205ef('0x2673'),'msg':_0x428c30['name']?_0x428c30[_0x4205ef('0x2aa')]+_0x4205ef('0x149f'):''});})[_0x2d0f20('0x16df')](function(_0x4d30f2){const _0x1fb3b3=_0x2d0f20;if(_0x4d30f2[_0x1fb3b3('0x1457')]&&_0x4d30f2[_0x1fb3b3('0x1457')]['errors']&&_0x4d30f2[_0x1fb3b3('0x1457')]['errors'][_0x1fb3b3('0x1f73')]){_0x17c52d[_0x1fb3b3('0x73e')]=_0x4d30f2[_0x1fb3b3('0x1457')][_0x1fb3b3('0x73e')]||[{'message':_0x4d30f2[_0x1fb3b3('0x9b6')](),'type':_0x1fb3b3('0x218')}];for(let _0x26adc1=0x0;_0x26adc1<_0x4d30f2[_0x1fb3b3('0x1457')][_0x1fb3b3('0x73e')][_0x1fb3b3('0x1f73')];_0x26adc1++){_0x5dd94c[_0x1fb3b3('0x1db9')]({'title':_0x4d30f2[_0x1fb3b3('0x1457')][_0x1fb3b3('0x73e')][_0x26adc1][_0x1fb3b3('0x412')],'msg':_0x4d30f2[_0x1fb3b3('0x1457')]['errors'][_0x26adc1][_0x1fb3b3('0x1603')]});}}else _0x5dd94c[_0x1fb3b3('0x1db9')]({'title':_0x4d30f2[_0x1fb3b3('0x11c5')]?_0x1fb3b3('0x14f7')+_0x4d30f2['status']+_0x1fb3b3('0x16e4')+_0x4d30f2['statusText']:'SYSTEM:DELETEvoiceRecording','msg':_0x4d30f2['data']?JSON[_0x1fb3b3('0x678')](_0x4d30f2[_0x1fb3b3('0x1457')][_0x1fb3b3('0x1603')]):_0x4d30f2[_0x1fb3b3('0x1603')]||_0x4d30f2['toString']()});});}function _0x249444(){const _0x2294c5=_0x3b0278,_0x432d85=angular[_0x2294c5('0x14e5')](_0x17c52d['selectedVoiceRecordings']);return _0x17c52d[_0x2294c5('0xf0f')]=[],_0x432d85;}function _0x46c5a6(_0x13904f){const _0x3bb1eb=_0x3b0278,_0x46edb2=_0x146b4c[_0x3bb1eb('0x1121')]()[_0x3bb1eb('0x24d3')](_0x3bb1eb('0x1c8f'))[_0x3bb1eb('0x211f')](_0x3bb1eb('0xa53')+_0x17c52d['selectedVoiceRecordings'][_0x3bb1eb('0x1f73')]+_0x3bb1eb('0x145a')+_0x3bb1eb('0xe9f'))['ariaLabel'](_0x3bb1eb('0xf1c'))[_0x3bb1eb('0x104f')](_0x13904f)['ok']('OK')[_0x3bb1eb('0x1d47')](_0x3bb1eb('0x28a0'));_0x146b4c[_0x3bb1eb('0x28e2')](_0x46edb2)[_0x3bb1eb('0x17e7')](function(){const _0x35bdd8=_0x3bb1eb;_0x17c52d[_0x35bdd8('0xf0f')][_0x35bdd8('0xccd')](function(_0x401e51){_0xcc61c8(_0x401e51);}),_0x17c52d['selectedVoiceRecordings']=[];});}function _0x5eac67(){const _0xd06019=_0x3b0278;_0x17c52d[_0xd06019('0xf0f')]=[];}function _0x428e42(){const _0x38f44a=_0x3b0278;_0x17c52d[_0x38f44a('0xf0f')]=_0x17c52d['voiceRecordings']['rows'];}}const _0x3b32a1=_0x5365e1,_0x2b056e=_0x4cf2bc['p']+_0x4376d8('0x3e'),_0x29d5be=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/voiceQueues/edit/view.html/view.html',_0x4d21e7=_0x4cf2bc['p']+_0x4376d8('0x111e'),_0x30c17c=_0x4cf2bc['p']+_0x4376d8('0xe8b'),_0x273f26=_0x4cf2bc['p']+_0x4376d8('0x24e8'),_0x37ea7f=_0x4cf2bc['p']+_0x4376d8('0x1df3'),_0x3fe990=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/internalroutes/internalroutes.html/internalroutes.html',_0x4fc6fb=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/internalroutes/edit/view.html/view.html',_0x291f29=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/contexts/contexts.html/contexts.html',_0x51823e=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/voicemails/voicemails.html/voicemails.html',_0x5d4147=_0x4cf2bc['p']+_0x4376d8('0x8c9'),_0x15a48d=_0x4cf2bc['p']+_0x4376d8('0xfd6'),_0x172884=_0x4cf2bc['p']+_0x4376d8('0x19d1'),_0x2b621d=_0x4cf2bc['p']+'src/js/modules/main/apps/voice/views/voiceRecordings/voiceRecordings.html/voiceRecordings.html',_0x43a545=_0x4cf2bc['p']+_0x4376d8('0x2521'),_0x44bd7a=_0x4cf2bc['p']+_0x4376d8('0x2515'),_0x13f3b8=_0x4cf2bc['p']+_0x4376d8('0xb79');_0x55ffb2['$inject']=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x55ffb2(_0x3785f9,_0x442abc){const _0x4377b1=_0x4376d8;_0x3785f9['state']('app.voice',{'abstract':!![],'url':_0x4377b1('0xfcb')})['state'](_0x4377b1('0x13a1'),{'url':_0x4377b1('0xbc4'),'views':{'content@app':{'templateUrl':_0x2b056e,'controller':'VoiceQueuesController\x20as\x20vm'}},'resolve':{'voiceQueues':[_0x4377b1('0x177'),'Auth',function(_0x373214,_0x1118ae){const _0x2887f4=_0x4377b1;return _0x1118ae[_0x2887f4('0x1ba2')]('admin')?_0x373214[_0x2887f4('0x898')](_0x2887f4('0xa5a'),{'fields':_0x2887f4('0x14d8'),'type':'inbound','sort':_0x2887f4('0x1ac6'),'channel':_0x2887f4('0x1fe1'),'limit':0xa,'offset':0x0}):_0x373214['resolve'](_0x2887f4('0x1164'),{'id':_0x1118ae[_0x2887f4('0x2831')]()[_0x2887f4('0x1e76')],'section':'VoiceQueues','fields':_0x2887f4('0x14d8'),'type':_0x2887f4('0x1e77'),'sort':'-updatedAt','channel':_0x2887f4('0x1fe1'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x6cd2e3,_0x51a657){const _0x57da67=_0x4377b1;return _0x51a657[_0x57da67('0x1ba2')](_0x57da67('0x20bf'))?null:_0x6cd2e3[_0x57da67('0x898')](_0x57da67('0x235d'),{'fields':_0x57da67('0x8d3'),'id':_0x51a657[_0x57da67('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x1b4f4c,_0x2c7332){const _0x23221f=_0x4377b1;return _0x2c7332['hasRole'](_0x23221f('0x20bf'))?null:_0x1b4f4c[_0x23221f('0x898')](_0x23221f('0x23e7'),{'fields':_0x23221f('0x1134'),'userProfileId':_0x2c7332['getCurrentUser']()[_0x23221f('0x1e76')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':'voice'})[_0x4377b1('0x1b9a')](_0x4377b1('0x1065'),{'url':'/:id?tab','params':{'voiceQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x29d5be,'controller':_0x4377b1('0x69e')}},'resolve':{'voiceQueue':[_0x4377b1('0x177'),_0x4377b1('0x118b'),function(_0x1e75b5,_0x476b92){const _0x3b7c14=_0x4377b1;return _0x1e75b5[_0x3b7c14('0x898')](_0x3b7c14('0xa5a'),{'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','id':_0x476b92['id']});}],'userProfileSection':['apiResolver',_0x4377b1('0x1885'),function(_0xe52ef5,_0x64a81f){const _0x5545b8=_0x4377b1;return _0xe52ef5[_0x5545b8('0x898')]('userProfileSection@get',{'fields':_0x5545b8('0x1134'),'userProfileId':_0x64a81f[_0x5545b8('0x2831')]()[_0x5545b8('0x1e76')],'sectionId':0x191});}]},'authenticate':!![],'permissionId':0x191,'bodyClass':'voice'})[_0x4377b1('0x1b9a')](_0x4377b1('0x1197'),{'url':_0x4377b1('0x54f'),'views':{'content@app':{'templateUrl':_0x4d21e7,'controller':'InboundRoutesController\x20as\x20vm'}},'resolve':{'inboundroutes':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x506b8a,_0x3edcf9){const _0x8febfe=_0x4377b1;return _0x3edcf9['hasRole'](_0x8febfe('0x20bf'))?_0x506b8a['resolve'](_0x8febfe('0x1e5d'),{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x8febfe('0x1e77'),'sort':'-updatedAt','VoiceExtensionId':_0x8febfe('0x9bb'),'limit':0xa,'offset':0x0}):_0x506b8a[_0x8febfe('0x898')](_0x8febfe('0x1164'),{'id':_0x3edcf9['getCurrentUser']()[_0x8febfe('0x1e76')],'section':'InboundRoutes','fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':'inbound','sort':'-updatedAt','VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x3209e8,_0x27094d){const _0x2b7ea6=_0x4377b1;return _0x27094d[_0x2b7ea6('0x1ba2')](_0x2b7ea6('0x20bf'))?null:_0x3209e8[_0x2b7ea6('0x898')](_0x2b7ea6('0x235d'),{'fields':_0x2b7ea6('0x8d3'),'id':_0x27094d[_0x2b7ea6('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x4377b1('0x177'),'Auth',function(_0x205c52,_0x5609cf){const _0x287073=_0x4377b1;return _0x5609cf[_0x287073('0x1ba2')](_0x287073('0x20bf'))?null:_0x205c52['resolve'](_0x287073('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5609cf[_0x287073('0x2831')]()['userProfileId'],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x4377b1('0x1b9a')]('app.voice.inboundroutes.edit',{'url':_0x4377b1('0x2370'),'params':{'inboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x30c17c,'controller':_0x4377b1('0x1c36')}},'resolve':{'inboundroute':['apiResolver',_0x4377b1('0x118b'),function(_0x59913d,_0x18dfdc){const _0x2f43f0=_0x4377b1;return _0x59913d[_0x2f43f0('0x898')](_0x2f43f0('0x1e5d'),{'fields':_0x2f43f0('0x1af3'),'id':_0x18dfdc['id']});}],'userProfileSection':['apiResolver',_0x4377b1('0x1885'),function(_0x541bc0,_0x26e0b7){const _0x145499=_0x4377b1;return _0x541bc0['resolve'](_0x145499('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x26e0b7[_0x145499('0x2831')]()[_0x145499('0x1e76')],'sectionId':0x192});}]},'authenticate':!![],'permissionId':0x192,'bodyClass':'voice'})[_0x4377b1('0x1b9a')](_0x4377b1('0x289'),{'url':'/outboundroutes','views':{'content@app':{'templateUrl':_0x273f26,'controller':_0x4377b1('0x81a')}},'resolve':{'outboundroutes':[_0x4377b1('0x177'),'Auth',function(_0x1b1cfc,_0x5ec0aa){const _0x26e7a5=_0x4377b1;return _0x5ec0aa[_0x26e7a5('0x1ba2')](_0x26e7a5('0x20bf'))?_0x1b1cfc[_0x26e7a5('0x898')]('voiceExtension@get',{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,recordingFormat,cutdigits,description','type':'outbound','sort':_0x26e7a5('0x1ac6'),'VoiceExtensionId':_0x26e7a5('0x9bb'),'limit':0xa,'offset':0x0}):_0x1b1cfc[_0x26e7a5('0x898')](_0x26e7a5('0x1164'),{'id':_0x5ec0aa[_0x26e7a5('0x2831')]()['userProfileId'],'section':_0x26e7a5('0x1d35'),'fields':_0x26e7a5('0xaec'),'type':'outbound','sort':_0x26e7a5('0x1ac6'),'VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':[_0x4377b1('0x177'),'Auth',function(_0x54248d,_0x43fbaa){const _0x58fc9e=_0x4377b1;return _0x43fbaa[_0x58fc9e('0x1ba2')](_0x58fc9e('0x20bf'))?null:_0x54248d[_0x58fc9e('0x898')](_0x58fc9e('0x235d'),{'fields':'id,name,crudPermissions','id':_0x43fbaa['getCurrentUser']()[_0x58fc9e('0x1e76')]});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x1a64fa,_0x55c1ff){const _0x53e847=_0x4377b1;return _0x55c1ff[_0x53e847('0x1ba2')]('admin')?null:_0x1a64fa['resolve']('userProfileSection@get',{'fields':_0x53e847('0x1134'),'userProfileId':_0x55c1ff[_0x53e847('0x2831')]()[_0x53e847('0x1e76')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x4377b1('0x1fe1')})['state'](_0x4377b1('0xe41'),{'url':_0x4377b1('0x2370'),'params':{'outboundroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x37ea7f,'controller':'OutboundRouteController\x20as\x20vm'}},'resolve':{'outboundroute':[_0x4377b1('0x177'),_0x4377b1('0x118b'),function(_0x338906,_0x48aa06){const _0x10bd6f=_0x4377b1;return _0x338906[_0x10bd6f('0x898')](_0x10bd6f('0x1e5d'),{'fields':_0x10bd6f('0xaec'),'id':_0x48aa06['id']});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x543e39,_0x41865a){const _0x337389=_0x4377b1;return _0x543e39[_0x337389('0x898')](_0x337389('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x41865a[_0x337389('0x2831')]()[_0x337389('0x1e76')],'sectionId':0x193});}]},'authenticate':!![],'permissionId':0x193,'bodyClass':_0x4377b1('0x1fe1')})['state'](_0x4377b1('0x2117'),{'url':'/internalroutes','views':{'content@app':{'templateUrl':_0x3fe990,'controller':'InternalRoutesController\x20as\x20vm'}},'resolve':{'internalroutes':[_0x4377b1('0x177'),'Auth',function(_0x28b819,_0x9790b0){const _0x3ce593=_0x4377b1;return _0x9790b0[_0x3ce593('0x1ba2')]('admin')?_0x28b819[_0x3ce593('0x898')]('voiceExtension@get',{'fields':_0x3ce593('0x1af3'),'type':_0x3ce593('0xe3e'),'sort':_0x3ce593('0x1ac6'),'VoiceExtensionId':_0x3ce593('0x9bb'),'limit':0xa,'offset':0x0}):_0x28b819[_0x3ce593('0x898')](_0x3ce593('0x1164'),{'id':_0x9790b0[_0x3ce593('0x2831')]()[_0x3ce593('0x1e76')],'section':'InternalRoutes','fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','type':_0x3ce593('0xe3e'),'sort':'-updatedAt','VoiceExtensionId':'null','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x4377b1('0x1885'),function(_0x10dc23,_0x2e0e21){const _0x394cbb=_0x4377b1;return _0x2e0e21[_0x394cbb('0x1ba2')]('admin')?null:_0x10dc23['resolve'](_0x394cbb('0x235d'),{'fields':_0x394cbb('0x8d3'),'id':_0x2e0e21['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x3092ae,_0x16c978){const _0x29e9e3=_0x4377b1;return _0x16c978['hasRole'](_0x29e9e3('0x20bf'))?null:_0x3092ae['resolve'](_0x29e9e3('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x16c978[_0x29e9e3('0x2831')]()['userProfileId'],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x4377b1('0x1fe1')})[_0x4377b1('0x1b9a')]('app.voice.internalroutes.edit',{'url':_0x4377b1('0x2370'),'params':{'internalroute':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4fc6fb,'controller':_0x4377b1('0x25cd')}},'resolve':{'internalroute':[_0x4377b1('0x177'),_0x4377b1('0x118b'),function(_0x2fb5e6,_0x540e9d){const _0x38389c=_0x4377b1;return _0x2fb5e6[_0x38389c('0x898')](_0x38389c('0x1e5d'),{'fields':'createdAt,updatedAt,id,appdata,type,exten,context,description','id':_0x540e9d['id']});}],'userProfileSection':[_0x4377b1('0x177'),'Auth',function(_0xcf716d,_0x228859){const _0x2b72db=_0x4377b1;return _0xcf716d[_0x2b72db('0x898')]('userProfileSection@get',{'fields':_0x2b72db('0x1134'),'userProfileId':_0x228859[_0x2b72db('0x2831')]()[_0x2b72db('0x1e76')],'sectionId':0x194});}]},'authenticate':!![],'permissionId':0x194,'bodyClass':_0x4377b1('0x1fe1')})['state'](_0x4377b1('0x2a5'),{'url':_0x4377b1('0x501'),'views':{'content@app':{'templateUrl':_0x291f29,'controller':_0x4377b1('0x1fed')}},'resolve':{'contexts':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x38a333,_0x5a8aaa){const _0xcbdf33=_0x4377b1;return _0x5a8aaa[_0xcbdf33('0x1ba2')](_0xcbdf33('0x20bf'))?_0x38a333['resolve'](_0xcbdf33('0x27a1'),{'fields':'createdAt,updatedAt,id,name,description','sort':_0xcbdf33('0x1ac6'),'defaultEntry':_0xcbdf33('0x260e'),'limit':0xa,'offset':0x0}):_0x38a333[_0xcbdf33('0x898')](_0xcbdf33('0x1164'),{'id':_0x5a8aaa[_0xcbdf33('0x2831')]()[_0xcbdf33('0x1e76')],'section':_0xcbdf33('0xb67'),'fields':'createdAt,updatedAt,id,name,description','sort':_0xcbdf33('0x1ac6'),'defaultEntry':_0xcbdf33('0x260e'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x599821,_0x4fca27){const _0x164e5c=_0x4377b1;return _0x4fca27[_0x164e5c('0x1ba2')](_0x164e5c('0x20bf'))?null:_0x599821[_0x164e5c('0x898')](_0x164e5c('0x235d'),{'fields':_0x164e5c('0x8d3'),'id':_0x4fca27[_0x164e5c('0x2831')]()[_0x164e5c('0x1e76')]});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x75989,_0x4b6254){const _0x563036=_0x4377b1;return _0x4b6254[_0x563036('0x1ba2')]('admin')?null:_0x75989[_0x563036('0x898')](_0x563036('0x23e7'),{'fields':_0x563036('0x1134'),'userProfileId':_0x4b6254['getCurrentUser']()['userProfileId'],'sectionId':0x195});}]},'authenticate':!![],'permissionId':0x195,'bodyClass':_0x4377b1('0x1fe1')})[_0x4377b1('0x1b9a')]('app.voice.voicemails',{'url':'/voicemails','views':{'content@app':{'templateUrl':_0x51823e,'controller':_0x4377b1('0x297')}},'resolve':{'voicemails':['apiResolver',_0x4377b1('0x1885'),function(_0x4a13ce,_0x2221e9){const _0x45efef=_0x4377b1;return _0x2221e9[_0x45efef('0x1ba2')]('admin')?_0x4a13ce[_0x45efef('0x898')]('voiceMail@get',{'fields':_0x45efef('0x2421'),'sort':_0x45efef('0x1ac6'),'limit':0xa,'offset':0x0}):_0x4a13ce[_0x45efef('0x898')](_0x45efef('0x1164'),{'id':_0x2221e9[_0x45efef('0x2831')]()[_0x45efef('0x1e76')],'section':_0x45efef('0xbc8'),'fields':_0x45efef('0x2421'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x4377b1('0x1885'),function(_0x120779,_0x41378b){const _0x11d850=_0x4377b1;return _0x41378b[_0x11d850('0x1ba2')](_0x11d850('0x20bf'))?null:_0x120779[_0x11d850('0x898')]('userProfile@get',{'fields':_0x11d850('0x8d3'),'id':_0x41378b[_0x11d850('0x2831')]()[_0x11d850('0x1e76')]});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0xf470c4,_0x338ef0){const _0xa1ff4b=_0x4377b1;return _0x338ef0[_0xa1ff4b('0x1ba2')]('admin')?null:_0xf470c4[_0xa1ff4b('0x898')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x338ef0[_0xa1ff4b('0x2831')]()[_0xa1ff4b('0x1e76')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x4377b1('0x1fe1')})[_0x4377b1('0x1b9a')](_0x4377b1('0x83e'),{'url':_0x4377b1('0x2370'),'params':{'voicemail':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5d4147,'controller':_0x4377b1('0x13e3')}},'resolve':{'voicemail':[_0x4377b1('0x177'),_0x4377b1('0x118b'),function(_0x1f66eb,_0x242b58){const _0x2ea861=_0x4377b1;return _0x1f66eb[_0x2ea861('0x898')](_0x2ea861('0x9b2'),{'fields':'createdAt,updatedAt,id,customer_id,fullname,email,password,mailbox,context,tz,attach,envelope,delete,emailbody,emailsubject,maxsecs,maxmsg','id':_0x242b58['id']});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x286f51,_0x18bf4e){const _0x790c02=_0x4377b1;return _0x286f51[_0x790c02('0x898')](_0x790c02('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x18bf4e[_0x790c02('0x2831')]()[_0x790c02('0x1e76')],'sectionId':0x196});}]},'authenticate':!![],'permissionId':0x196,'bodyClass':_0x4377b1('0x1fe1')})['state'](_0x4377b1('0x401'),{'url':_0x4377b1('0x1dbf'),'views':{'content@app':{'templateUrl':_0x15a48d,'controller':_0x4377b1('0x700')}},'resolve':{'musiconholds':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x13eabc,_0xdd8d15){const _0x303527=_0x4377b1;return _0xdd8d15[_0x303527('0x1ba2')](_0x303527('0x20bf'))?_0x13eabc['resolve']('voiceMusicOnHold@get',{'fields':_0x303527('0xe0a'),'defaultEntry':_0x303527('0x260e'),'limit':0xa,'offset':0x0}):_0x13eabc['resolve']('userProfile@getResources',{'id':_0xdd8d15[_0x303527('0x2831')]()[_0x303527('0x1e76')],'section':'MusicOnHolds','fields':_0x303527('0xe0a'),'defaultEntry':_0x303527('0x260e'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x38f6c3,_0x4a0176){const _0x41721a=_0x4377b1;return _0x4a0176[_0x41721a('0x1ba2')](_0x41721a('0x20bf'))?null:_0x38f6c3[_0x41721a('0x898')](_0x41721a('0x235d'),{'fields':_0x41721a('0x8d3'),'id':_0x4a0176['getCurrentUser']()[_0x41721a('0x1e76')]});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x427399,_0x49e506){const _0x50f449=_0x4377b1;return _0x49e506['hasRole'](_0x50f449('0x20bf'))?null:_0x427399[_0x50f449('0x898')](_0x50f449('0x23e7'),{'fields':_0x50f449('0x1134'),'userProfileId':_0x49e506[_0x50f449('0x2831')]()['userProfileId'],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x4377b1('0x1fe1')})[_0x4377b1('0x1b9a')](_0x4377b1('0xcb7'),{'url':_0x4377b1('0x2370'),'params':{'musiconhold':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x172884,'controller':_0x4377b1('0x2411')}},'resolve':{'musiconhold':[_0x4377b1('0x177'),_0x4377b1('0x118b'),function(_0x4103dc,_0x4f5bd2){const _0x57f924=_0x4377b1;return _0x4103dc[_0x57f924('0x898')](_0x57f924('0x640'),{'fields':_0x57f924('0xe0a'),'id':_0x4f5bd2['id']});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x12e814,_0x5c2d95){const _0x4b06ed=_0x4377b1;return _0x12e814[_0x4b06ed('0x898')](_0x4b06ed('0x23e7'),{'fields':_0x4b06ed('0x1134'),'userProfileId':_0x5c2d95[_0x4b06ed('0x2831')]()[_0x4b06ed('0x1e76')],'sectionId':0x197});}]},'authenticate':!![],'permissionId':0x197,'bodyClass':_0x4377b1('0x1fe1')})[_0x4377b1('0x1b9a')]('app.voice.voiceRecordings',{'url':_0x4377b1('0x1415'),'views':{'content@app':{'templateUrl':_0x2b621d,'controller':_0x4377b1('0x1500')}},'resolve':{'voiceRecordings':[_0x4377b1('0x177'),'Auth',_0x4377b1('0x1606'),function(_0x5e5498,_0x3f9473,_0x31f05b){const _0x1a7098=_0x4377b1;return _0x3f9473[_0x1a7098('0x1ba2')](_0x1a7098('0x20bf'))?_0x5e5498[_0x1a7098('0x898')](_0x1a7098('0x2465'),{'fields':_0x1a7098('0x2763'),'sort':_0x1a7098('0x1ac6'),'createdAt':_0x31f05b[_0x1a7098('0x610')](),'limit':0xa,'offset':0x0}):_0x5e5498[_0x1a7098('0x898')](_0x1a7098('0x1164'),{'id':_0x3f9473[_0x1a7098('0x2831')]()[_0x1a7098('0x1e76')],'section':_0x1a7098('0x1214'),'fields':_0x1a7098('0x2763'),'sort':'-updatedAt','createdAt':_0x31f05b[_0x1a7098('0x610')](),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4377b1('0x177'),'Auth',function(_0x6aaf58,_0x458c0b){const _0xe59739=_0x4377b1;return _0x458c0b[_0xe59739('0x1ba2')](_0xe59739('0x20bf'))?null:_0x6aaf58[_0xe59739('0x898')](_0xe59739('0x235d'),{'fields':_0xe59739('0x8d3'),'id':_0x458c0b['getCurrentUser']()[_0xe59739('0x1e76')]});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x12a372,_0x3a5173){const _0x1b3ba7=_0x4377b1;return _0x3a5173[_0x1b3ba7('0x1ba2')](_0x1b3ba7('0x20bf'))?null:_0x12a372[_0x1b3ba7('0x898')](_0x1b3ba7('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3a5173[_0x1b3ba7('0x2831')]()[_0x1b3ba7('0x1e76')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x4377b1('0x1fe1')})[_0x4377b1('0x1b9a')](_0x4377b1('0x92b'),{'url':'/:id?tab','params':{'voiceRecording':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x43a545,'controller':_0x4377b1('0x1a25')}},'resolve':{'voiceRecording':[_0x4377b1('0x177'),'$stateParams',function(_0x5bd519,_0x185efb){const _0x20601b=_0x4377b1;return _0x5bd519[_0x20601b('0x898')](_0x20601b('0x2465'),{'fields':_0x20601b('0x2763'),'id':_0x185efb['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x33bd45,_0x31d406){const _0x48ad9f=_0x4377b1;return _0x33bd45[_0x48ad9f('0x898')]('userProfileSection@get',{'fields':_0x48ad9f('0x1134'),'userProfileId':_0x31d406[_0x48ad9f('0x2831')]()[_0x48ad9f('0x1e76')],'sectionId':0x198});}]},'authenticate':!![],'permissionId':0x198,'bodyClass':_0x4377b1('0x1fe1')})[_0x4377b1('0x1b9a')](_0x4377b1('0x1e87'),{'url':_0x4377b1('0x5c9'),'views':{'content@app':{'templateUrl':_0x44bd7a,'controller':_0x4377b1('0x2709')}},'resolve':{'chanSpies':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0xb5ec4a,_0x1f1a02){const _0x1913bf=_0x4377b1;return _0x1f1a02['hasRole'](_0x1913bf('0x20bf'))?_0xb5ec4a[_0x1913bf('0x898')](_0x1913bf('0x1808'),{'fields':'createdAt,updatedAt,id,name,prefix,options,auth,password,record,recordingFormat,description','sort':_0x1913bf('0x1ac6'),'limit':0xa,'offset':0x0}):_0xb5ec4a[_0x1913bf('0x898')](_0x1913bf('0x1164'),{'id':_0x1f1a02[_0x1913bf('0x2831')]()[_0x1913bf('0x1e76')],'section':_0x1913bf('0x39'),'fields':_0x1913bf('0x1c85'),'sort':_0x1913bf('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x33a21b,_0x571ae6){const _0x4f184c=_0x4377b1;return _0x571ae6[_0x4f184c('0x1ba2')](_0x4f184c('0x20bf'))?null:_0x33a21b['resolve'](_0x4f184c('0x235d'),{'fields':_0x4f184c('0x8d3'),'id':_0x571ae6['getCurrentUser']()[_0x4f184c('0x1e76')]});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0xad31cd,_0x5675ce){const _0x5dd7c2=_0x4377b1;return _0x5675ce[_0x5dd7c2('0x1ba2')](_0x5dd7c2('0x20bf'))?null:_0xad31cd[_0x5dd7c2('0x898')](_0x5dd7c2('0x23e7'),{'fields':_0x5dd7c2('0x1134'),'userProfileId':_0x5675ce[_0x5dd7c2('0x2831')]()[_0x5dd7c2('0x1e76')],'sectionId':0x199});}]},'authenticate':!![],'permissionId':0x199,'bodyClass':_0x4377b1('0x1fe1')})['state'](_0x4377b1('0x1c66'),{'url':_0x4377b1('0x1471'),'views':{'content@app':{'templateUrl':_0x13f3b8,'controller':'VoicePrefixesController\x20as\x20vm'}},'resolve':{'voicePrefixes':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x3858cb,_0x460812){const _0x24fc53=_0x4377b1;return _0x460812[_0x24fc53('0x1ba2')](_0x24fc53('0x20bf'))?_0x3858cb['resolve'](_0x24fc53('0x1ce0'),{'fields':_0x24fc53('0x22bc'),'limit':0xa,'offset':0x0}):_0x3858cb[_0x24fc53('0x898')](_0x24fc53('0x1164'),{'id':_0x460812[_0x24fc53('0x2831')]()[_0x24fc53('0x1e76')],'section':_0x24fc53('0x2849'),'fields':_0x24fc53('0x22bc'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x313338,_0x28cbe4){const _0x401949=_0x4377b1;return _0x28cbe4[_0x401949('0x1ba2')](_0x401949('0x20bf'))?null:_0x313338[_0x401949('0x898')](_0x401949('0x235d'),{'fields':_0x401949('0x8d3'),'id':_0x28cbe4[_0x401949('0x2831')]()[_0x401949('0x1e76')]});}],'userProfileSection':[_0x4377b1('0x177'),_0x4377b1('0x1885'),function(_0x455053,_0x3812d3){const _0x100c8f=_0x4377b1;return _0x3812d3['hasRole']('admin')?null:_0x455053[_0x100c8f('0x898')](_0x100c8f('0x23e7'),{'fields':_0x100c8f('0x1134'),'userProfileId':_0x3812d3[_0x100c8f('0x2831')]()[_0x100c8f('0x1e76')],'sectionId':0x19a});}]},'authenticate':!![],'permissionId':0x19a,'bodyClass':_0x4377b1('0x1fe1')}),_0x442abc['addPart'](_0x4377b1('0x268b'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x1419'),['ngCsv',_0x4376d8('0x7ba'),'md.data.table',_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),'angular.filter','app.voice.realtime'])[_0x4376d8('0x1980')](_0x55ffb2)[_0x4376d8('0x5ce')]('ChanSpiesController',_0x45ea0a)[_0x4376d8('0x5ce')](_0x4376d8('0x115'),_0x356ceb)[_0x4376d8('0x5ce')](_0x4376d8('0x263f'),_0x427a6d)['controller'](_0x4376d8('0x1f46'),_0x45d924)[_0x4376d8('0x5ce')](_0x4376d8('0x1113'),_0xa0b1fb)[_0x4376d8('0x5ce')](_0x4376d8('0x262'),_0x25aabf)['controller']('EditInboundAppagiDialogController',_0x164097)['controller'](_0x4376d8('0x1265'),_0x5159d9)[_0x4376d8('0x5ce')](_0x4376d8('0x1b3d'),_0x116d7c)[_0x4376d8('0x5ce')](_0x4376d8('0x169f'),_0x135a08)['controller'](_0x4376d8('0xa4c'),_0x27f10e)[_0x4376d8('0x5ce')]('EditInboundApphangupDialogController',_0x389a04)[_0x4376d8('0x5ce')](_0x4376d8('0x6e9'),_0x374771)[_0x4376d8('0x5ce')](_0x4376d8('0x1dcd'),_0x3ac9ea)[_0x4376d8('0x5ce')](_0x4376d8('0xdd6'),_0x158bb7)[_0x4376d8('0x5ce')]('EditInboundAppqueueDialogController',_0x2e9d44)[_0x4376d8('0x5ce')]('EditInboundAppringgroupDialogController',_0x43e973)[_0x4376d8('0x5ce')]('EditInboundAppsetDialogController',_0x13e702)[_0x4376d8('0x5ce')](_0x4376d8('0x31c'),_0x3bb964)[_0x4376d8('0x5ce')]('InboundRouteController',_0x427342)[_0x4376d8('0x5ce')](_0x4376d8('0x18c0'),_0x5abf03)[_0x4376d8('0x5ce')]('CreateOrEditInternalRouteDialogController',_0x295de6)[_0x4376d8('0x5ce')](_0x4376d8('0x261a'),_0xe6a243)[_0x4376d8('0x5ce')](_0x4376d8('0x6a'),_0x4a3e12)[_0x4376d8('0x5ce')](_0x4376d8('0xaca'),_0x96cc0c)[_0x4376d8('0x5ce')](_0x4376d8('0x13f8'),_0x5e8a78)['controller'](_0x4376d8('0x2558'),_0x13d0d5)[_0x4376d8('0x5ce')]('EditInternalAppgotoDialogController',_0x248f55)[_0x4376d8('0x5ce')]('EditInternalApphangupDialogController',_0x20b07c)[_0x4376d8('0x5ce')](_0x4376d8('0x24fe'),_0x7128c3)['controller']('EditInternalAppintervalDialogController',_0x3fda86)['controller'](_0x4376d8('0x958'),_0xfdb8c2)['controller'](_0x4376d8('0xb01'),_0x141b98)[_0x4376d8('0x5ce')]('EditInternalAppringgroupDialogController',_0x4e4238)[_0x4376d8('0x5ce')](_0x4376d8('0x3ae'),_0x341741)[_0x4376d8('0x5ce')](_0x4376d8('0x1e6d'),_0x211362)[_0x4376d8('0x5ce')](_0x4376d8('0xb6f'),_0xa8984c)['controller'](_0x4376d8('0x1381'),_0x6e3f5a)[_0x4376d8('0x5ce')](_0x4376d8('0x25a8'),_0x3058cb)[_0x4376d8('0x5ce')](_0x4376d8('0x1a00'),_0x6a899c)[_0x4376d8('0x5ce')](_0x4376d8('0x1a2b'),_0x1e26ff)[_0x4376d8('0x5ce')]('MusicOnHoldController',_0x5f5045)[_0x4376d8('0x5ce')](_0x4376d8('0x17e6'),_0x4ffd12),angular[_0x4376d8('0x11c4')](_0x4376d8('0x1419'))[_0x4376d8('0x5ce')]('CreateOrEditOutboundRouteDialogController',_0x35d905)['controller'](_0x4376d8('0x1095'),_0x1e12cc)[_0x4376d8('0x5ce')](_0x4376d8('0x70d'),_0x17c51c)[_0x4376d8('0x5ce')](_0x4376d8('0x21ee'),_0x13d44f)[_0x4376d8('0x5ce')](_0x4376d8('0x21f9'),_0x34bfba)[_0x4376d8('0x5ce')](_0x4376d8('0x1163'),_0x16306f)['controller'](_0x4376d8('0x141'),_0x2e6040)['controller'](_0x4376d8('0xa57'),_0x1d2711)[_0x4376d8('0x5ce')](_0x4376d8('0x205a'),_0x53b047)[_0x4376d8('0x5ce')]('VoicemailController',_0x3e53cf)[_0x4376d8('0x5ce')](_0x4376d8('0x2033'),_0x20f1c)[_0x4376d8('0x5ce')](_0x4376d8('0x191a'),_0x2ce8d2)[_0x4376d8('0x5ce')](_0x4376d8('0x18d0'),_0x2c9a3d)[_0x4376d8('0x5ce')](_0x4376d8('0x1d6e'),_0x37f90b)['controller'](_0x4376d8('0x1e4f'),_0x4041c9)[_0x4376d8('0x5ce')](_0x4376d8('0x167a'),_0x130fb9)[_0x4376d8('0x5ce')](_0x4376d8('0x1ab0'),_0x524b2d)[_0x4376d8('0x5ce')](_0x4376d8('0xc7c'),_0x53fb5a)[_0x4376d8('0x5ce')](_0x4376d8('0x13bb'),_0x5c6ba1)[_0x4376d8('0x5ce')](_0x4376d8('0x674'),_0x1322b2)[_0x4376d8('0x5ce')](_0x4376d8('0x155f'),_0x213dc4)['controller'](_0x4376d8('0x7f3'),_0x5a89cd)[_0x4376d8('0x5ce')](_0x4376d8('0x2632'),_0x3b32a1);const _0x169715=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatQueues/chatQueues.html/chatQueues.html',_0x38ee0e=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatQueues/edit/view.html/view.html',_0x46767a=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatWebsites/chatWebsites.html/chatWebsites.html',_0x130a34=_0x4cf2bc['p']+_0x4376d8('0x2672'),_0x12b721=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/realtime/realtime.html/realtime.html',_0x158431=_0x4cf2bc['p']+_0x4376d8('0x906'),_0x38bb7e=_0x4cf2bc['p']+_0x4376d8('0x66f');_0x435a2f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$q',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x54a'),_0x4376d8('0x1492'),_0x4376d8('0x25ea'),'rpcAgents',_0x4376d8('0x212e'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),'helperClasses','userProfile',_0x4376d8('0x383'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x33a')];function _0x435a2f(_0x54c675,_0x3b8a6a,_0x549022,_0x51668f,_0x1a2582,_0x39cd7a,_0x4610dc,_0x2c0ab6,_0x5b34e1,_0x1f2026,_0x4ec432,_0x3a9877,_0xdbea96,_0x4bb42d,_0x42e9ab,_0x2760db,_0x390619,_0x40d58f){const _0x4b2544=_0x4376d8,_0x42be8b=this,_0x5943c7=['userpic','online',_0x4b2544('0x341'),_0x4b2544('0x110a'),_0x4b2544('0x11ec'),_0x4b2544('0x110a'),'internal',_0x4b2544('0x15'),_0x4b2544('0x2764'),_0x4b2544('0x105e'),'mailPause','smsPause',_0x4b2544('0x185b'),'faxPause',_0x4b2544('0x118a'),'chatCapacity',_0x4b2544('0xe99'),_0x4b2544('0xe'),'smsCapacity',_0x4b2544('0x1676'),_0x4b2544('0x3f4'),_0x4b2544('0x139'),_0x4b2544('0x1149'),_0x4b2544('0x12e7'),_0x4b2544('0x1c68'),_0x4b2544('0x1798'),'faxCurrentCapacity','chatStatus',_0x4b2544('0x200c'),_0x4b2544('0x9a7'),'smsStatus',_0x4b2544('0x38d'),_0x4b2544('0x14b9'),_0x4b2544('0x14a5'),_0x4b2544('0x587'),_0x4b2544('0x18b1'),_0x4b2544('0x16a4'),_0x4b2544('0x893'),'whatsappStatusTime',_0x4b2544('0xbdb'),_0x4b2544('0x1b1d'),_0x4b2544('0x1bd'),'destconnectedlinenum',_0x4b2544('0xf1a'),_0x4b2544('0x1b7d'),_0x4b2544('0xa0d')],_0x5a8ef7=['chatPause',_0x4b2544('0x105e'),_0x4b2544('0x1467'),_0x4b2544('0x483'),_0x4b2544('0x185b'),_0x4b2544('0x1d98'),_0x4b2544('0x118a'),_0x4b2544('0x1872')];_0x42be8b[_0x4b2544('0x197c')]=_0x2760db[_0x4b2544('0x2831')](),_0x42be8b[_0x4b2544('0x232c')]=[_0x4b2544('0x1589'),_0x4b2544('0x1166'),'busy',_0x4b2544('0xa01'),_0x4b2544('0x8d0')],_0x42be8b[_0x4b2544('0x1492')]=_0x4610dc||{'count':0x0,'rows':[]},_0x42be8b[_0x4b2544('0x1d11')]=_0x390619,_0x42be8b[_0x4b2544('0xdeb')]=_0x4bb42d,_0x42be8b[_0x4b2544('0x383')]=_0x42e9ab&&_0x42e9ab[_0x4b2544('0x335')]==0x1?_0x42e9ab[_0x4b2544('0x2319')][0x0]:null,_0x42be8b['crudPermissions']=_0x2760db[_0x4b2544('0x17a9')](_0x42be8b[_0x4b2544('0x383')]?_0x42be8b[_0x4b2544('0x383')][_0x4b2544('0x103e')]:null),_0x42be8b[_0x4b2544('0x25ea')]=_0x2c0ab6?_0x49cbdd()['keyBy'](_0x2c0ab6[_0x4b2544('0x2319')]?_0x2c0ab6[_0x4b2544('0x2319')]:[],'id'):{},_0x42be8b[_0x4b2544('0x1593')]=_0x5b34e1?_0x49cbdd()['keyBy'](_0x5b34e1[_0x4b2544('0x2319')]?_0x5b34e1['rows']:[],'id'):{},_0x42be8b['paginatedAgents']={},_0x42be8b['load']=![],_0x42be8b[_0x4b2544('0x1e36')]=[],_0x42be8b[_0x4b2544('0x20a5')]={};for(const _0x3563ca in _0x42be8b[_0x4b2544('0x25ea')]){typeof _0x42be8b[_0x4b2544('0x25ea')][_0x3563ca]!==_0x4b2544('0xfad')&&(_0x42be8b[_0x4b2544('0x25ea')][_0x3563ca][_0x4b2544('0x161d')]=!![]);}_0x42be8b['query']={'limit':0xa,'page':0x1,'order':_0x4b2544('0xea6'),'globalStatusFilter':'','pauseTypeFilter':''},_0x42be8b['logout']=_0x1076ee,_0x42be8b[_0x4b2544('0x18ba')]=_0x4a8ca2,_0x42be8b['pause']=_0x3afbbb,_0x42be8b[_0x4b2544('0x2040')]=_0x35c956,_0x42be8b[_0x4b2544('0x3eb')]=_0x33aa2d,_0x42be8b[_0x4b2544('0x7f6')]=_0x19801e,_0x42be8b[_0x4b2544('0x21a0')]=_0x1b50c0,_0x42be8b['isPause']=_0x4568e1,_0x42be8b['checkPause']=_0x292bed,_0x42be8b[_0x4b2544('0x179b')]=_0x4fb34f,_0x42be8b[_0x4b2544('0xfd5')]=_0x2f7e45,_0x42be8b[_0x4b2544('0x1fc4')]=_0x3f272e,_0x42be8b[_0x4b2544('0xdf0')]=_0x42cf36,_0x42be8b[_0x4b2544('0x410')]=_0x568718,_0x42be8b[_0x4b2544('0x1ccb')]=_0x1cce33,_0x42be8b[_0x4b2544('0x1375')]=_0x1f2ff6,_0x4ec432['on'](_0x4b2544('0x21a2'),_0x42be8b[_0x4b2544('0xfd5')]),_0x4ec432['on'](_0x4b2544('0x284f'),_0x42be8b[_0x4b2544('0x1fc4')]),_0x4ec432['on'](_0x4b2544('0x1a5'),_0x42be8b[_0x4b2544('0x410')]),_0x4ec432['on']('user:agentcomplete',_0x42be8b[_0x4b2544('0x1ccb')]),_0x42cf36();let _0x496d13=_0x40d58f(function(){const _0x3b08ab=_0x4b2544;_0x42be8b[_0x3b08ab('0xae2')]&&(_0x42be8b[_0x3b08ab('0xae2')]=![],_0x42cf36());},0x3e7);function _0x42cf36(){const _0x5d1dcd=_0x4b2544;_0x42be8b['load']=![];const _0x2cfd88=_0x3b8a6a[_0x5d1dcd('0x113c')]();_0x42be8b[_0x5d1dcd('0x1691')]=_0x2cfd88['promise'],_0x42be8b['filteredAgents']=[],_0x42be8b[_0x5d1dcd('0x1e36')]=[],_0x49cbdd()[_0x5d1dcd('0x1857')](_0x42be8b[_0x5d1dcd('0x25ea')],function(_0x345360,_0x3f7417){const _0x30d9a0=_0x5d1dcd;_0x42be8b[_0x30d9a0('0x1593')][_0x3f7417]&&_0x49cbdd()[_0x30d9a0('0x1ced')](_0x345360,_0x49cbdd()[_0x30d9a0('0x230a')](_0x49cbdd()[_0x30d9a0('0x15c3')](_0x42be8b[_0x30d9a0('0x1593')][_0x3f7417],_0x5a8ef7),_0x5943c7)),_0x1b50c0(_0x345360),_0x345360['online']?(_0x42be8b['filteredAgents'][_0x30d9a0('0x269f')](_0x345360),_0x42be8b[_0x30d9a0('0x20a5')][_0x345360[_0x30d9a0('0xe3e')]]=_0x3f7417):_0x345360[_0x30d9a0('0x22cb')]=_0x49cbdd()['toNumber'](_0x107a13()()[_0x30d9a0('0x1c0d')]('x'));});_0x42be8b[_0x5d1dcd('0x826')]['globalStatusFilter']&&_0x49cbdd()[_0x5d1dcd('0x5f3')](_0x42be8b[_0x5d1dcd('0x1b79')],function(_0x120c5c){const _0x290de9=_0x5d1dcd;return _0x120c5c[_0x290de9('0xf45')]!==_0x42be8b[_0x290de9('0x826')][_0x290de9('0x14f9')];});_0x42be8b['query'][_0x5d1dcd('0x44f')]&&_0x49cbdd()[_0x5d1dcd('0x5f3')](_0x42be8b['filteredAgents'],function(_0x2b5bf8){const _0x48cf28=_0x5d1dcd;return _0x2b5bf8['pauseType']!==_0x42be8b['query'][_0x48cf28('0x44f')];});_0x42be8b[_0x5d1dcd('0x826')][_0x5d1dcd('0x2483')]&&_0x49cbdd()[_0x5d1dcd('0x5f3')](_0x42be8b[_0x5d1dcd('0x1b79')],function(_0xfb2355){const _0x4336bd=_0x5d1dcd;return _0xfb2355[_0x4336bd('0xea6')][_0x4336bd('0x19b')]()[_0x4336bd('0x2567')](_0x42be8b['query'][_0x4336bd('0x2483')][_0x4336bd('0x19b')]())<0x0;});_0x42be8b[_0x5d1dcd('0x1b79')]=_0x12d6a0(_0x42be8b[_0x5d1dcd('0x1b79')]);const _0x5a91ab=(_0x42be8b['query'][_0x5d1dcd('0x115a')]-0x1)*_0x42be8b[_0x5d1dcd('0x826')]['limit'];_0x42be8b[_0x5d1dcd('0x219a')]=_0x49cbdd()[_0x5d1dcd('0x6c0')](_0x42be8b[_0x5d1dcd('0x1b79')],_0x5a91ab)[_0x5d1dcd('0x275f')](0x0,_0x42be8b[_0x5d1dcd('0x826')][_0x5d1dcd('0x193b')]);for(let _0x1cd82b=0x0;_0x1cd82b<_0x42be8b[_0x5d1dcd('0x219a')][_0x5d1dcd('0x1f73')];_0x1cd82b+=0x1){_0x42be8b['order']['push'](_0x42be8b['paginatedAgents'][_0x1cd82b]['id']);}_0x2cfd88['resolve'](),_0x42be8b[_0x5d1dcd('0xae2')]=!![];}function _0x2f7e45(_0x22e364){const _0x22d15a=_0x4b2544;_0x42be8b[_0x22d15a('0x25ea')][_0x22e364['id']]&&(_0x49cbdd()[_0x22d15a('0x1ced')](_0x42be8b['agents'][_0x22e364['id']],_0x49cbdd()[_0x22d15a('0x230a')](_0x49cbdd()[_0x22d15a('0x15c3')](_0x22e364,_0x5a8ef7),_0x5943c7)),_0x49cbdd()[_0x22d15a('0x1ced')](_0x42be8b[_0x22d15a('0x1593')][_0x22e364['id']],_0x49cbdd()[_0x22d15a('0x230a')](_0x49cbdd()['omit'](_0x22e364,_0x5a8ef7),_0x5943c7)),_0x1b50c0(_0x42be8b[_0x22d15a('0x25ea')][_0x22e364['id']]));}function _0x3f272e(_0x236581){const _0x57f2d2=_0x4b2544;_0x42be8b[_0x57f2d2('0x25ea')][_0x236581['id']]&&(_0x49cbdd()[_0x57f2d2('0x1ced')](_0x42be8b[_0x57f2d2('0x25ea')][_0x236581['id']],_0x49cbdd()['pick'](_0x236581,_0x5943c7)),_0x49cbdd()[_0x57f2d2('0x1ced')](_0x42be8b[_0x57f2d2('0x1593')][_0x236581['id']],_0x49cbdd()[_0x57f2d2('0x230a')](_0x236581,_0x5943c7)),_0x236581[_0x57f2d2('0x110a')]&&(_0x42be8b[_0x57f2d2('0x25ea')][_0x236581['id']][_0x57f2d2('0x22cb')]=_0x236581[_0x57f2d2('0x110a')],_0x42be8b[_0x57f2d2('0x1593')][_0x236581['id']][_0x57f2d2('0x22cb')]=_0x236581['lastPauseAt']),_0x1b50c0(_0x42be8b[_0x57f2d2('0x25ea')][_0x236581['id']]));}function _0x568718(_0x5d29b4){const _0x1b4238=_0x4b2544;_0x42be8b['agents'][_0x42be8b[_0x1b4238('0x20a5')][_0x5d29b4[_0x1b4238('0x1177')]]]&&(_0x49cbdd()[_0x1b4238('0x1ced')](_0x42be8b['agents'][_0x42be8b[_0x1b4238('0x20a5')][_0x5d29b4[_0x1b4238('0x1177')]]],_0x49cbdd()[_0x1b4238('0x230a')](_0x5d29b4,['queue',_0x1b4238('0xce0')])),_0x49cbdd()[_0x1b4238('0x1ced')](_0x42be8b[_0x1b4238('0x1593')][_0x42be8b[_0x1b4238('0x20a5')][_0x5d29b4[_0x1b4238('0x1177')]]],_0x49cbdd()[_0x1b4238('0x230a')](_0x5d29b4,[_0x1b4238('0x1bd'),_0x1b4238('0xce0')])));}function _0x1cce33(_0x5aa189){const _0x1eb6a4=_0x4b2544;_0x42be8b[_0x1eb6a4('0x25ea')][_0x42be8b[_0x1eb6a4('0x20a5')][_0x5aa189[_0x1eb6a4('0x1177')]]]&&(_0x42be8b[_0x1eb6a4('0x25ea')][_0x42be8b[_0x1eb6a4('0x20a5')][_0x5aa189[_0x1eb6a4('0x1177')]]]=_0x49cbdd()[_0x1eb6a4('0x15c3')](_0x42be8b[_0x1eb6a4('0x25ea')][_0x42be8b[_0x1eb6a4('0x20a5')][_0x5aa189['destaccountcode']]],['queue',_0x1eb6a4('0xce0')]),_0x42be8b[_0x1eb6a4('0x1593')][_0x42be8b[_0x1eb6a4('0x20a5')][_0x5aa189[_0x1eb6a4('0x1177')]]]=_0x49cbdd()[_0x1eb6a4('0x15c3')](_0x42be8b['rpcAgents'][_0x42be8b['agentInternal'][_0x5aa189[_0x1eb6a4('0x1177')]]],[_0x1eb6a4('0x1bd'),'destconnectedlinenum']));}function _0x1076ee(_0x144acc){const _0x36f4b5=_0x4b2544;return _0x1f2026[_0x36f4b5('0x221e')][_0x36f4b5('0xff8')]({'id':_0x144acc['id'],'device':_0x36f4b5('0x20c8'),'agent_id':_0x144acc['id'],'agent_name':_0x144acc[_0x36f4b5('0x2aa')]})[_0x36f4b5('0x1af5')][_0x36f4b5('0x17e7')](function(){const _0x903548=_0x36f4b5;_0x3a9877['success']({'title':_0x903548('0x686'),'msg':_0x144acc[_0x903548('0xea6')]+_0x903548('0xe21')}),_0x42be8b[_0x903548('0x25ea')][_0x144acc['id']]&&(_0x42be8b[_0x903548('0x25ea')][_0x144acc['id']][_0x903548('0x1872')]=![]),_0x42be8b[_0x903548('0x1593')][_0x144acc['id']]&&(_0x42be8b[_0x903548('0x1593')][_0x144acc['id']]['online']=![]),_0x42cf36();})['catch'](function(_0x5c20ea){const _0x407617=_0x36f4b5;_0x3a9877['error']({'title':_0x5c20ea[_0x407617('0x11c5')]?'API:'+_0x5c20ea[_0x407617('0x11c5')]+_0x407617('0x16e4')+_0x5c20ea[_0x407617('0x1833')]:_0x407617('0x18ea'),'msg':_0x5c20ea['data']?JSON[_0x407617('0x678')](_0x5c20ea[_0x407617('0x1457')][_0x407617('0x1603')]):_0x5c20ea[_0x407617('0x9b6')]()});});}function _0x3afbbb(_0x248f18,_0x20b812){const _0x10558b=_0x4b2544;return _0x1f2026[_0x10558b('0x221e')][_0x10558b('0x267a')]({'id':_0x248f18['id'],'type':_0x20b812})[_0x10558b('0x1af5')][_0x10558b('0x17e7')](function(_0x4bb397){const _0x8e156e=_0x10558b;_0x42be8b[_0x8e156e('0x25ea')][_0x248f18['id']]&&_0x49cbdd()['merge'](_0x42be8b[_0x8e156e('0x25ea')][_0x248f18['id']],_0x49cbdd()['pick'](_0x4bb397,_0x5943c7)),_0x42be8b[_0x8e156e('0x1593')][_0x248f18['id']]&&_0x49cbdd()[_0x8e156e('0x1ced')](_0x42be8b[_0x8e156e('0x1593')][_0x248f18['id']],_0x49cbdd()[_0x8e156e('0x230a')](_0x4bb397,_0x5943c7)),_0x1b50c0(_0x42be8b['agents'][_0x248f18['id']]);})[_0x10558b('0x16df')](function(_0xfdb82d){const _0x962bde=_0x10558b;_0x3a9877[_0x962bde('0x1db9')]({'title':_0xfdb82d['status']?_0x962bde('0x14f7')+_0xfdb82d['status']+'\x20-\x20'+_0xfdb82d['statusText']:_0x962bde('0x18ea'),'msg':_0xfdb82d['data']?JSON[_0x962bde('0x678')](_0xfdb82d['data'][_0x962bde('0x1603')]):_0xfdb82d[_0x962bde('0x9b6')]()});});}function _0x35c956(_0x45c6d2){const _0x1e187c=_0x4b2544;return _0x1f2026[_0x1e187c('0x221e')][_0x1e187c('0xc57')]({'id':_0x45c6d2['id']})['$promise']['then'](function(_0x43dfa4){const _0x5663da=_0x1e187c;_0x42be8b['agents'][_0x45c6d2['id']]&&_0x49cbdd()[_0x5663da('0x1ced')](_0x42be8b[_0x5663da('0x25ea')][_0x45c6d2['id']],_0x49cbdd()[_0x5663da('0x230a')](_0x43dfa4,_0x5943c7)),_0x42be8b[_0x5663da('0x1593')][_0x45c6d2['id']]&&_0x49cbdd()[_0x5663da('0x1ced')](_0x42be8b[_0x5663da('0x1593')][_0x45c6d2['id']],_0x49cbdd()[_0x5663da('0x230a')](_0x43dfa4,_0x5943c7)),_0x1b50c0(_0x42be8b['agents'][_0x45c6d2['id']]);})[_0x1e187c('0x16df')](function(_0x35ea7e){const _0x1c8fb6=_0x1e187c;_0x3a9877['error']({'title':_0x35ea7e[_0x1c8fb6('0x11c5')]?'API:'+_0x35ea7e[_0x1c8fb6('0x11c5')]+'\x20-\x20'+_0x35ea7e[_0x1c8fb6('0x1833')]:_0x1c8fb6('0x18ea'),'msg':_0x35ea7e['data']?JSON[_0x1c8fb6('0x678')](_0x35ea7e['data'][_0x1c8fb6('0x1603')]):_0x35ea7e[_0x1c8fb6('0x9b6')]()});});}function _0x33aa2d(_0x3ca543){const _0x1ef98c=_0x4b2544;_0x51668f['show'](_0x51668f[_0x1ef98c('0x99f')]()['clickOutsideToClose'](!![])[_0x1ef98c('0x24d3')](_0x1ef98c('0x5b8'))['htmlContent']('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')['targetEvent'](_0x3ca543));}function _0x4a8ca2(_0x3d9184,_0x3c41b2){const _0x58da65=_0x4b2544;_0x51668f[_0x58da65('0x28e2')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x5e8625,'parent':angular['element'](_0x1a2582['body']),'targetEvent':_0x3c41b2,'clickOutsideToClose':!![],'locals':{'agent':_0x3d9184,'agents':[],'channel':'chat','direction':_0x58da65('0x1e77'),'crudPermissions':_0x42be8b[_0x58da65('0x103e')]}});}function _0x4568e1(_0x5b717b){const _0x26e1f0=_0x4b2544;return _0x5b717b===_0x26e1f0('0x267a')||_0x5b717b===_0x26e1f0('0x1998');}function _0x292bed(_0x4d0e24){return _0x4d0e24==='pause';}function _0x4fb34f(_0x329e39){const _0x3cd51a=_0x4b2544;return _0x329e39===_0x3cd51a('0x1998');}function _0x4f0811(_0x5ec16c){const _0x242e89=_0x4b2544;return _0x5ec16c===_0x242e89('0x1ff2')||_0x5ec16c===_0x242e89('0xf10')||_0x5ec16c==='unavailable'||_0x5ec16c===_0x242e89('0x1589')||_0x49cbdd()[_0x242e89('0x390')](_0x5ec16c);}function _0x19801e(_0x1d5e81,_0x40e04a){const _0x1fe38e=_0x4b2544;if(_0x40e04a===_0x1fe38e('0x1fe1')){if(_0x1d5e81[_0x40e04a+'Status']!=='idle')return _0x1d5e81[_0x40e04a+_0x1fe38e('0x51c')];if(_0x1d5e81[_0x40e04a+_0x1fe38e('0x5d5')])return _0x1d5e81[_0x40e04a+_0x1fe38e('0x51c')]='pause','pause';return _0x1fe38e('0x1ff2');}else{if(_0x1d5e81[_0x40e04a+_0x1fe38e('0x5d5')])return _0x1d5e81[_0x40e04a+_0x1fe38e('0x51c')]=_0x1fe38e('0x267a'),_0x1fe38e('0x267a');return _0x1d5e81[_0x40e04a+_0x1fe38e('0x51c')];}}function _0x1b50c0(_0x1707cd){const _0xdde5e0=_0x4b2544;let _0xc137c=_0xdde5e0('0xf10');if(_0x49cbdd()[_0xdde5e0('0x12df')]([_0x19801e(_0x1707cd,_0xdde5e0('0x1fe1')),_0x19801e(_0x1707cd,_0xdde5e0('0x2219')),_0x19801e(_0x1707cd,_0xdde5e0('0xc2')),_0x19801e(_0x1707cd,'openchannel'),_0x19801e(_0x1707cd,_0xdde5e0('0x2cd')),_0x19801e(_0x1707cd,'whatsapp'),_0x19801e(_0x1707cd,_0xdde5e0('0xc23'))],_0x4568e1))_0xc137c=_0xdde5e0('0x267a');else{if(_0x49cbdd()[_0xdde5e0('0x26f8')]([_0x19801e(_0x1707cd,_0xdde5e0('0x1fe1')),_0x19801e(_0x1707cd,_0xdde5e0('0x2219')),_0x19801e(_0x1707cd,'mail'),_0x19801e(_0x1707cd,'openchannel'),_0x19801e(_0x1707cd,_0xdde5e0('0x2cd')),_0x19801e(_0x1707cd,_0xdde5e0('0x1d27')),_0x19801e(_0x1707cd,_0xdde5e0('0xc23'))],_0x4568e1))_0xc137c=_0xdde5e0('0x1998');else _0x49cbdd()[_0xdde5e0('0x12df')]([_0x19801e(_0x1707cd,_0xdde5e0('0x1fe1')),_0x19801e(_0x1707cd,_0xdde5e0('0x2219')),_0x19801e(_0x1707cd,_0xdde5e0('0xc2')),_0x19801e(_0x1707cd,_0xdde5e0('0x1508')),_0x19801e(_0x1707cd,_0xdde5e0('0x2cd')),_0x19801e(_0x1707cd,_0xdde5e0('0x1d27')),_0x19801e(_0x1707cd,_0xdde5e0('0xc23'))],_0x4f0811)?_0xc137c='idle':_0xc137c='busy';}_0x1707cd[_0xdde5e0('0xf45')]!==_0xc137c&&(_0x1707cd[_0xdde5e0('0xf45')]=_0xc137c,_0x1707cd[_0xdde5e0('0x161d')]?(_0x1707cd['init']=![],_0x1707cd['globalStatusTime']=_0x4568e1(_0xc137c)?_0x49cbdd()['toNumber'](_0x107a13()(_0x1707cd[_0xdde5e0('0x110a')])[_0xdde5e0('0x1c0d')]('x')):_0x49cbdd()[_0xdde5e0('0x103b')]([_0x1707cd[_0xdde5e0('0x1b1d')],_0x1707cd['chatStatusTime'],_0x1707cd['mailStatusTime'],_0x1707cd[_0xdde5e0('0x893')],_0x1707cd[_0xdde5e0('0x1e2a')],_0x1707cd[_0xdde5e0('0x18b1')],_0x1707cd[_0xdde5e0('0xbdb')]])):_0x1707cd[_0xdde5e0('0x22cb')]=_0x49cbdd()[_0xdde5e0('0xa33')](_0x107a13()()[_0xdde5e0('0x1c0d')]('x')));}function _0x12d6a0(_0x311918){const _0x136e6c=_0x4b2544,_0x150ec8=_0x49cbdd()[_0x136e6c('0x818')](_0x42be8b['query'][_0x136e6c('0x1e36')],'-')?_0x136e6c('0x187b'):_0x136e6c('0x161a');return _0x49cbdd()[_0x136e6c('0xa36')](_0x311918,[_0x42be8b[_0x136e6c('0x826')][_0x136e6c('0x1e36')]['replace']('-','')],[_0x150ec8]);}function _0x16fe2c(){_0x496d13&&(_0x40d58f['cancel'](_0x496d13),_0x496d13=null);}function _0x1f2ff6(_0x1cd846,_0x4e501c){const _0x4ea575=_0x4b2544;return _0x1f2026[_0x4ea575('0x221e')][_0x4ea575('0x27ba')]({'id':_0x1cd846['id']},{'screenrecording':_0x4e501c})[_0x4ea575('0x1af5')]['catch'](function(_0x508ddb){const _0x4f0a6c=_0x4ea575;_0x3a9877[_0x4f0a6c('0x1db9')]({'title':_0x508ddb[_0x4f0a6c('0x11c5')]?_0x4f0a6c('0x14f7')+_0x508ddb[_0x4f0a6c('0x11c5')]+_0x4f0a6c('0x16e4')+_0x508ddb[_0x4f0a6c('0x1833')]:_0x4f0a6c('0xad3'),'msg':_0x508ddb[_0x4f0a6c('0x1457')]?JSON[_0x4f0a6c('0x678')](_0x508ddb[_0x4f0a6c('0x1457')]['message']):_0x508ddb[_0x4f0a6c('0x9b6')]()});});}_0x54c675[_0x4b2544('0x207c')](_0x4b2544('0x2b4'),function(){const _0x5b68ec=_0x4b2544;_0x4ec432[_0x5b68ec('0x1c65')]('user:save'),_0x4ec432[_0x5b68ec('0x1c65')](_0x5b68ec('0x284f')),_0x4ec432[_0x5b68ec('0x1c65')](_0x5b68ec('0x1a5')),_0x4ec432[_0x5b68ec('0x1c65')]('user:agentcomplete'),_0x16fe2c();});}const _0x748aab=_0x435a2f,_0x2ef6bc=_0x4cf2bc['p']+_0x4376d8('0x285e'),_0x2ac5e3=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatQueues/edit/agentadd/agentadd.html/agentadd.html';_0x442168[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),'$mdDialog','$q',_0x4376d8('0x26ca'),_0x4376d8('0x33a'),_0x4376d8('0x14c4'),'rpcQueues','api',_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885')];function _0x442168(_0xab97a,_0x487eb9,_0x2af6c0,_0x2cd1d6,_0x2279ad,_0x20f20c,_0x14e751,_0x1370bd,_0x46bbc1,_0x28d86e,_0x47f09d,_0x23e5f0,_0x271466,_0x4c675a){const _0x1a9775=_0x4376d8,_0x691bba=this,_0x2fcc46=['loggedIn',_0x1a9775('0x249c'),_0x1a9775('0x2143'),_0x1a9775('0x1d20'),'pTalking',_0x1a9775('0x829'),_0x1a9775('0x1603'),_0x1a9775('0x10c9'),_0x1a9775('0xa39'),_0x1a9775('0x1bc6'),_0x1a9775('0x1bb8')];_0x691bba[_0x1a9775('0x197c')]=_0x4c675a[_0x1a9775('0x2831')](),_0x691bba[_0x1a9775('0x335')]=_0x14e751['count']?_0x14e751[_0x1a9775('0x335')]:0x0,_0x691bba[_0x1a9775('0x14c4')]=_0x14e751?_0x49cbdd()[_0x1a9775('0x8de')](_0x14e751['rows']?_0x14e751[_0x1a9775('0x2319')]:[],'id'):{},_0x691bba['rpcQueues']=_0x1370bd?_0x49cbdd()[_0x1a9775('0x8de')](_0x1370bd['rows']?_0x1370bd[_0x1a9775('0x2319')]:[],'id'):{},_0x691bba[_0x1a9775('0xdeb')]=_0x23e5f0,_0x691bba[_0x1a9775('0x383')]=_0x271466&&_0x271466[_0x1a9775('0x335')]==0x1?_0x271466[_0x1a9775('0x2319')][0x0]:null,_0x691bba['crudPermissions']=_0x4c675a['parseCrudPermissions'](_0x691bba[_0x1a9775('0x383')]?_0x691bba[_0x1a9775('0x383')][_0x1a9775('0x103e')]:null);_0x4c675a[_0x1a9775('0x1ba2')](_0x1a9775('0x20bf'))?_0x691bba[_0x1a9775('0x826')]={'type':_0x1a9775('0x1e77'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x691bba[_0x1a9775('0x826')]={'id':_0x691bba[_0x1a9775('0x197c')]['id'],'channel':'chat','type':_0x1a9775('0x1e77'),'sort':_0x1a9775('0x1ac6'),'limit':0xa,'page':0x1};_0x691bba['success']=_0x550721,_0x691bba[_0x1a9775('0x1f3b')]=_0xdcf2aa,_0x691bba[_0x1a9775('0x698')]=_0x40d07f,_0x691bba['agentAdd']=_0x157512,_0x691bba['updateQueue']=_0x3cc46d,_0x691bba[_0x1a9775('0xfd5')]=_0xd976d7,_0x691bba['onSaveMember']=_0x5167c2,_0x691bba[_0x1a9775('0x110')]=_0x407f28,_0x691bba['onPause']=_0x7e2ee0,_0x691bba[_0x1a9775('0x1781')]=_0x4e625a,_0x691bba[_0x1a9775('0x1532')]=_0x576a93,_0x691bba['$onInit']=_0x371298,_0x691bba['order']=[],_0x49cbdd()[_0x1a9775('0x1857')](_0x691bba['queues'],function(_0x479277){const _0x3c21d8=_0x1a9775;_0x691bba[_0x3c21d8('0x1e36')][_0x3c21d8('0x269f')](_0x479277['id']);}),_0x28d86e['on'](_0x1a9775('0x1b7e'),_0x691bba[_0x1a9775('0xfd5')]),_0x28d86e['on']('userChatQueue:save',_0x691bba[_0x1a9775('0x1899')]),_0x28d86e['on'](_0x1a9775('0x578'),_0x691bba['onRemoveMember']),_0x28d86e['on']('user:update',_0x691bba[_0x1a9775('0x14ed')]),_0x28d86e['on'](_0x1a9775('0x1f34'),_0x691bba['onLogout']),_0x28d86e['on']('userVoiceQueue:save',_0x691bba[_0x1a9775('0x1781')]);function _0x371298(){const _0x518790=_0x1a9775,_0x5cc9a2=[];return _0x49cbdd()[_0x518790('0x1857')](_0x691bba[_0x518790('0x14c4')],function(_0x170b0d,_0x33fb50){const _0x41a9d9=_0x518790;_0x170b0d[_0x41a9d9('0x1bb8')]=0x0,_0x170b0d[_0x41a9d9('0x6c2')]=0x0,_0x691bba[_0x41a9d9('0x14c4')][_0x33fb50][_0x41a9d9('0x25ea')]={},_0x5cc9a2[_0x41a9d9('0x269f')](_0x46bbc1[_0x41a9d9('0x262e')][_0x41a9d9('0x1f58')]({'id':_0x33fb50})[_0x41a9d9('0x1af5')]),_0x691bba[_0x41a9d9('0x1d90')][_0x33fb50]&&_0x49cbdd()[_0x41a9d9('0x1ced')](_0x170b0d,_0x49cbdd()[_0x41a9d9('0x230a')](_0x691bba[_0x41a9d9('0x1d90')][_0x33fb50],_0x2fcc46));}),_0x2cd1d6[_0x518790('0x1283')](_0x5cc9a2)['then'](function(_0x27c392){const _0x309725=_0x518790;for(let _0x2b5a52=0x0;_0x2b5a52<_0x27c392[_0x309725('0x1f73')];_0x2b5a52+=0x1){for(let _0x2c886e=0x0;_0x2c886e<_0x27c392[_0x2b5a52]['rows']['length'];_0x2c886e++){_0x27c392[_0x2b5a52][_0x309725('0x2319')][_0x2c886e][_0x309725('0x1bb8')]&&_0x691bba['queues'][_0x27c392[_0x2b5a52][_0x309725('0x2319')][_0x2c886e][_0x309725('0x17c')]][_0x309725('0x1bb8')]++,_0x691bba['queues'][_0x27c392[_0x2b5a52]['rows'][_0x2c886e][_0x309725('0x17c')]][_0x309725('0x6c2')]++,_0x691bba[_0x309725('0x14c4')][_0x27c392[_0x2b5a52]['rows'][_0x2c886e][_0x309725('0x17c')]][_0x309725('0x25ea')][_0x27c392[_0x2b5a52][_0x309725('0x2319')][_0x2c886e][_0x309725('0x5e5')]]=_0x27c392[_0x2b5a52][_0x309725('0x2319')][_0x2c886e][_0x309725('0x17c')];}}})[_0x518790('0x16df')](function(_0x56b95a){const _0x5063d0=_0x518790;console[_0x5063d0('0x1db9')](_0x56b95a);});}function _0xd976d7(_0x43d17f){const _0x3b1f29=_0x1a9775;_0x691bba[_0x3b1f29('0x14c4')][_0x43d17f['id']]&&_0x49cbdd()[_0x3b1f29('0x1ced')](_0x691bba['queues'][_0x43d17f['id']],_0x49cbdd()[_0x3b1f29('0x230a')](_0x43d17f,_0x2fcc46));}function _0x5167c2(_0x2c1d90){const _0x11b805=_0x1a9775;_0x691bba[_0x11b805('0x14c4')][_0x2c1d90['ChatQueueId']]&&_0x691bba[_0x11b805('0x14c4')][_0x2c1d90['ChatQueueId']][_0x11b805('0x6c2')]++;}function _0x407f28(_0x55b31d){const _0x547feb=_0x1a9775;_0x691bba[_0x547feb('0x14c4')][_0x55b31d[_0x547feb('0x17c')]]&&_0x691bba['queues'][_0x55b31d['ChatQueueId']][_0x547feb('0x6c2')]--;}function _0x7e2ee0(_0x65b123){const _0x41516d=_0x1a9775;console[_0x41516d('0x1d63')]('onPause',_0x65b123);if(_0x65b123['voicePause'])_0x49cbdd()[_0x41516d('0x1857')](_0x691bba[_0x41516d('0x14c4')],function(_0x234961){const _0x48aabb=_0x41516d;_0x234961[_0x48aabb('0x25ea')][_0x65b123['id']]&&(_0x234961[_0x48aabb('0x1bb8')]+=0x1,console[_0x48aabb('0x1d63')]('pause'));});else!_0x65b123[_0x41516d('0x118a')]&&_0x49cbdd()[_0x41516d('0x1857')](_0x691bba[_0x41516d('0x14c4')],function(_0x4bc433){const _0x2722a8=_0x41516d;_0x4bc433[_0x2722a8('0x25ea')][_0x65b123['id']]&&(_0x4bc433['paused']>0x0&&(_0x4bc433[_0x2722a8('0x1bb8')]-=0x1,console[_0x2722a8('0x1d63')](_0x2722a8('0xc57'))));});}function _0x4e625a(_0x5d4f16){const _0x5c1843=_0x1a9775;console['log'](_0x5c1843('0x1a6b'),_0x5d4f16),_0x691bba[_0x5c1843('0x14c4')][_0x5d4f16[_0x5c1843('0x17c')]]&&(_0x691bba['queues'][_0x5d4f16[_0x5c1843('0x17c')]]['loggedInDb']+=0x1,_0x691bba[_0x5c1843('0x14c4')][_0x5d4f16[_0x5c1843('0x17c')]][_0x5c1843('0x25ea')][_0x5d4f16[_0x5c1843('0x5e5')]]=_0x5d4f16[_0x5c1843('0x17c')]);}function _0x576a93(_0x378203){const _0x2b44d2=_0x1a9775;console[_0x2b44d2('0x1d63')](_0x2b44d2('0x1532'),_0x378203),_0x691bba[_0x2b44d2('0x14c4')][_0x378203[_0x2b44d2('0x17c')]]&&_0x691bba[_0x2b44d2('0x14c4')][_0x378203['ChatQueueId']][_0x2b44d2('0x6c2')]>0x0&&(_0x691bba[_0x2b44d2('0x14c4')][_0x378203[_0x2b44d2('0x17c')]][_0x2b44d2('0x6c2')]-=0x1,delete _0x691bba[_0x2b44d2('0x14c4')][_0x378203[_0x2b44d2('0x17c')]][_0x2b44d2('0x25ea')][_0x378203[_0x2b44d2('0x5e5')]]);}let _0x19eb84=!![],_0x196f9a=0x1;_0xab97a[_0x1a9775('0x620')](_0x1a9775('0x3ed'),function(_0x242014,_0x54da25){const _0x2465b9=_0x1a9775;_0x19eb84?_0x487eb9(function(){_0x19eb84=![];}):(!_0x54da25&&(_0x196f9a=_0x691bba[_0x2465b9('0x826')][_0x2465b9('0x115a')]),_0x242014!==_0x54da25&&(_0x691bba['query']['page']=0x1),!_0x242014&&(_0x691bba[_0x2465b9('0x826')]['page']=_0x196f9a),_0x691bba[_0x2465b9('0x1f3b')]());});function _0x550721(_0x162955){const _0x461026=_0x1a9775;_0x691bba[_0x461026('0x335')]=_0x162955[_0x461026('0x335')],_0x691bba['queues']=_0x162955?_0x49cbdd()[_0x461026('0x8de')](_0x162955[_0x461026('0x2319')]?_0x162955[_0x461026('0x2319')]:[],'id'):{};if(_0x162955[_0x461026('0x2319')]){_0x691bba[_0x461026('0x1e36')]=[];for(let _0xf030f9=0x0;_0xf030f9<_0x162955[_0x461026('0x2319')][_0x461026('0x1f73')];_0xf030f9++){_0x691bba['order'][_0x461026('0x269f')](_0x162955['rows'][_0xf030f9]['id']);}}_0x371298();}function _0xdcf2aa(){const _0x586b8c=_0x1a9775;_0x691bba['query'][_0x586b8c('0xf19')]=(_0x691bba[_0x586b8c('0x826')][_0x586b8c('0x115a')]-0x1)*_0x691bba[_0x586b8c('0x826')]['limit'],_0x4c675a[_0x586b8c('0x1ba2')](_0x586b8c('0x20bf'))?_0x691bba['promise']=_0x46bbc1[_0x586b8c('0x262e')]['get'](_0x691bba[_0x586b8c('0x826')],_0x550721)[_0x586b8c('0x1af5')]:(_0x691bba[_0x586b8c('0x826')]['id']=_0x691bba['userProfile']['id'],_0x691bba[_0x586b8c('0x826')][_0x586b8c('0x16f8')]=_0x586b8c('0x272'),_0x691bba[_0x586b8c('0x1691')]=_0x46bbc1[_0x586b8c('0xdeb')]['getResources'](_0x691bba[_0x586b8c('0x826')],_0x550721)[_0x586b8c('0x1af5')]);}function _0x40d07f(_0x14d036,_0x3c9171){const _0x1c2716=_0x1a9775;_0x2af6c0['show']({'controller':_0x1c2716('0x2384'),'controllerAs':'vm','templateUrl':_0x2ef6bc,'parent':angular[_0x1c2716('0x1ce1')](_0x2279ad['body']),'targetEvent':_0x14d036,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x3c9171,'chatQueues':_0x49cbdd()[_0x1c2716('0xa72')](_0x691bba[_0x1c2716('0x14c4')]),'license':null,'setting':null,'crudPermissions':_0x691bba[_0x1c2716('0x103e')]}});}function _0x157512(_0x2838a0,_0x326c0f){const _0x4d2ec3=_0x1a9775;_0x2af6c0[_0x4d2ec3('0x28e2')]({'controller':'ChatQueueagentaddController','controllerAs':'vm','templateUrl':_0x2ac5e3,'parent':angular[_0x4d2ec3('0x1ce1')](_0x2279ad[_0x4d2ec3('0x13aa')]),'targetEvent':_0x2838a0,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x326c0f,'chatQueues':_0x691bba['queues']?_0x691bba[_0x4d2ec3('0x14c4')]['rows']:[],'realtime':![],'crudPermissions':_0x691bba[_0x4d2ec3('0x103e')]}});}function _0x3cc46d(_0x4ce7b2){const _0x595579=_0x1a9775;return _0x46bbc1[_0x595579('0x262e')][_0x595579('0x27ba')](_0x4ce7b2)[_0x595579('0x1af5')]['then'](function(){const _0x1f21f0=_0x595579;_0x47f09d['success']({'title':_0x1f21f0('0xc7a'),'msg':_0x4ce7b2[_0x1f21f0('0x2aa')]?_0x4ce7b2[_0x1f21f0('0x2aa')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x3db116){const _0x2acd6f=_0x595579;_0x47f09d[_0x2acd6f('0x1db9')]({'title':_0x2acd6f('0x2480'),'msg':_0x3db116[_0x2acd6f('0x1603')]});});}_0xab97a[_0x1a9775('0x207c')](_0x1a9775('0x2b4'),function(){const _0x38446=_0x1a9775;_0x28d86e[_0x38446('0x1c65')](_0x38446('0x1b7e')),_0x28d86e[_0x38446('0x1c65')](_0x38446('0x578')),_0x28d86e[_0x38446('0x1c65')](_0x38446('0x3a')),_0x28d86e[_0x38446('0x1c65')](_0x38446('0x284f')),_0x28d86e[_0x38446('0x1c65')](_0x38446('0x1f34')),_0x28d86e[_0x38446('0x1c65')](_0x38446('0x1cfb'));});}const _0x5926ab=_0x442168;function _0x2ed2e6(){const _0xacf94d=_0x4376d8;return{'status':{'registered':_0xacf94d('0x9b4'),'unregistered':'red-300-fg\x20icon-close-circle','lagged':_0xacf94d('0x20ec'),'reachable':_0xacf94d('0x9b4'),'unreachable':'red-300-fg\x20icon-close-circle','unknown':_0xacf94d('0x15d8')},'state':{'unknown':_0xacf94d('0x9d7'),'not_inuse':_0xacf94d('0x23ce'),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0xacf94d('0xf9e'),'invalid':_0xacf94d('0x9d7'),'unavailable':_0xacf94d('0x9d7'),'ringing':_0xacf94d('0x109b'),'ringinuse':_0xacf94d('0x109b'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0xacf94d('0x109b'),'up':_0xacf94d('0xc21'),'hangup':'red-300-fg\x20icon-phone-hangup'},'channelStatusOut':{'ring':_0xacf94d('0xc0c'),'up':_0xacf94d('0xc21'),'hangup':_0xacf94d('0x1147')}};}const _0x2609cd=_0x2ed2e6;_0x4392e2[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x25aa')];function _0x4392e2(_0x5ec86a,_0x1431f9,_0x317acd){const _0x352eb8=_0x4376d8,_0x2eeeb9=this;_0x317acd[_0x352eb8('0x5b3')](),_0x317acd[_0x352eb8('0x1f81')](),_0x2eeeb9[_0x352eb8('0xde7')]=0x0;switch(_0x1431f9[_0x352eb8('0x1247')][_0x352eb8('0x2aa')]){case _0x352eb8('0x1329'):_0x2eeeb9[_0x352eb8('0xde7')]=0x0;break;case _0x352eb8('0x1841'):_0x2eeeb9['selectedTab']=0x1;break;default:_0x2eeeb9[_0x352eb8('0xde7')]=0x0,_0x1431f9['go']('app.chat.realtime.agents');}_0x5ec86a['$watch']('vm.selectedTab',function(_0x314c6a,_0x597a61){const _0x2d0178=_0x352eb8;if(_0x314c6a!==_0x597a61)switch(_0x314c6a){case 0x0:_0x1431f9['go'](_0x2d0178('0x1329'));break;case 0x1:_0x1431f9['go'](_0x2d0178('0x1841'));break;default:_0x1431f9['go'](_0x2d0178('0x1329'));}});}const _0x2658de=_0x4392e2;_0x158c15['$inject']=[_0x4376d8('0x183a')];function _0x158c15(_0x2c2689){const _0x191da7=_0x4376d8;_0x2c2689[_0x191da7('0x1b9a')](_0x191da7('0x16c4'),{'url':_0x191da7('0x1dc1'),'views':{'content@app':{'templateUrl':_0x12b721,'controller':_0x191da7('0x12a5')}},'resolve':{'userProfile':[_0x191da7('0x177'),'Auth',function(_0x3b12a0,_0x59729a){const _0xfec2b9=_0x191da7;return _0x59729a[_0xfec2b9('0x1ba2')](_0xfec2b9('0x20bf'))?null:_0x3b12a0[_0xfec2b9('0x898')](_0xfec2b9('0x235d'),{'fields':_0xfec2b9('0x8d3'),'id':_0x59729a[_0xfec2b9('0x2831')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x191da7('0x1885'),function(_0x4dc8d4,_0x2b42d5){const _0x505165=_0x191da7;return _0x2b42d5[_0x505165('0x1ba2')](_0x505165('0x20bf'))?null:_0x4dc8d4[_0x505165('0x898')](_0x505165('0x23e7'),{'fields':_0x505165('0x1134'),'userProfileId':_0x2b42d5[_0x505165('0x2831')]()[_0x505165('0x1e76')],'sectionId':0x1fe});}]},'authenticate':!![],'permissionId':0x1fe})[_0x191da7('0x1b9a')](_0x191da7('0x1329'),{'url':_0x191da7('0x1a85'),'controller':_0x191da7('0x21da'),'templateUrl':_0x158431,'resolve':{'pauses':['apiResolver',function(_0x150a79){const _0x201481=_0x191da7;return _0x150a79[_0x201481('0x898')](_0x201481('0x13db'),{'nolimit':!![]});}],'agents':['apiResolver','Auth',function(_0x338dd8,_0x4b0f04){const _0x51bcc6=_0x191da7;return _0x4b0f04[_0x51bcc6('0x1ba2')](_0x51bcc6('0x20bf'))?_0x338dd8['resolve'](_0x51bcc6('0x181a'),{'fields':_0x51bcc6('0xb31'),'role':_0x51bcc6('0x684'),'sort':_0x51bcc6('0xea6'),'nolimit':!![]}):_0x338dd8[_0x51bcc6('0x898')](_0x51bcc6('0x1164'),{'id':_0x4b0f04[_0x51bcc6('0x2831')]()[_0x51bcc6('0x1e76')],'section':_0x51bcc6('0x2157'),'fields':_0x51bcc6('0xb31'),'role':_0x51bcc6('0x684'),'sort':_0x51bcc6('0xea6'),'nolimit':!![]});}],'userProfile':[_0x191da7('0x177'),_0x191da7('0x1885'),function(_0x52ac7c,_0x228615){const _0x35b5d9=_0x191da7;return _0x228615['hasRole'](_0x35b5d9('0x20bf'))?null:_0x52ac7c[_0x35b5d9('0x898')](_0x35b5d9('0x235d'),{'fields':_0x35b5d9('0x8d3'),'id':_0x228615['getCurrentUser']()[_0x35b5d9('0x1e76')]});}],'userProfileSection':[_0x191da7('0x177'),_0x191da7('0x1885'),function(_0x5e5caf,_0x37a133){const _0x4f8694=_0x191da7;return _0x37a133[_0x4f8694('0x1ba2')](_0x4f8694('0x20bf'))?null:_0x5e5caf[_0x4f8694('0x898')](_0x4f8694('0x23e7'),{'fields':_0x4f8694('0x1134'),'userProfileId':_0x37a133['getCurrentUser']()[_0x4f8694('0x1e76')],'sectionId':0xca});}],'rpcAgents':[_0x191da7('0x177'),function(_0x1a57de){const _0x484ee8=_0x191da7;return _0x1a57de['resolve'](_0x484ee8('0xb27'));}]},'authenticate':!![],'permissionId':0x1fe})[_0x191da7('0x1b9a')]('app.chat.realtime.queues',{'url':_0x191da7('0x1520'),'controller':_0x191da7('0x12c5'),'templateUrl':_0x38bb7e,'resolve':{'queues':[_0x191da7('0x177'),'Auth',function(_0x28026b,_0x1b7986){const _0xfeeee7=_0x191da7;return _0x1b7986[_0xfeeee7('0x1ba2')](_0xfeeee7('0x20bf'))?_0x28026b[_0xfeeee7('0x898')](_0xfeeee7('0x1a07'),{'type':'inbound','sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x28026b['resolve'](_0xfeeee7('0x1164'),{'id':_0x1b7986[_0xfeeee7('0x2831')]()[_0xfeeee7('0x1e76')],'section':_0xfeeee7('0x272'),'channel':_0xfeeee7('0x2219'),'type':'inbound','sort':_0xfeeee7('0x1ac6'),'limit':0xa,'page':0x1});}],'userProfile':[_0x191da7('0x177'),'Auth',function(_0x417e83,_0x175102){const _0x436c70=_0x191da7;return _0x175102[_0x436c70('0x1ba2')](_0x436c70('0x20bf'))?null:_0x417e83[_0x436c70('0x898')](_0x436c70('0x235d'),{'fields':_0x436c70('0x8d3'),'id':_0x175102[_0x436c70('0x2831')]()[_0x436c70('0x1e76')]});}],'userProfileSection':[_0x191da7('0x177'),'Auth',function(_0x50ebf5,_0x57df11){const _0x2b7c2e=_0x191da7;return _0x57df11[_0x2b7c2e('0x1ba2')](_0x2b7c2e('0x20bf'))?null:_0x50ebf5['resolve']('userProfileSection@get',{'fields':_0x2b7c2e('0x1134'),'userProfileId':_0x57df11[_0x2b7c2e('0x2831')]()[_0x2b7c2e('0x1e76')],'sectionId':0x1f5});}],'rpcQueues':[_0x191da7('0x177'),function(_0x41eef4){const _0x4ca0a3=_0x191da7;return _0x41eef4[_0x4ca0a3('0x898')](_0x4ca0a3('0x2d'));}]},'authenticate':!![],'permissionId':0x1fe});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x16c4'),[])[_0x4376d8('0x1980')](_0x158c15)[_0x4376d8('0x5ce')]('AgentsChatRealtimeController',_0x748aab)['controller'](_0x4376d8('0x13d2'),_0x5926ab)[_0x4376d8('0x26a6')]('helperClasses',_0x2609cd)[_0x4376d8('0x5ce')](_0x4376d8('0xcff'),_0x2658de);const _0x5df5eb=_0x4cf2bc['p']+_0x4376d8('0x1d7d');_0x3d6445[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x2214'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),'toasty',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting'];function _0x3d6445(_0x2378f9,_0x315812,_0x37854b,_0x55e104,_0x57fee9,_0x49eab8,_0x170a5e,_0x3ab34d,_0x51f68c,_0x45f4c2,_0x1baffe,_0xe19193,_0xcfb244,_0xaf2fb5,_0x4bd17e,_0x655fba,_0x16b070){const _0x407a85=_0x4376d8,_0x5e77b6=this;_0x5e77b6[_0x407a85('0x1d11')]=_0x655fba,_0x5e77b6['setting']=_0x16b070,_0x5e77b6['currentUser']=_0x4bd17e[_0x407a85('0x2831')](),_0x5e77b6['chatQueues']=_0x51f68c||{'count':0x0,'rows':[]},_0x5e77b6[_0x407a85('0xdeb')]=_0x45f4c2,_0x5e77b6[_0x407a85('0x383')]=_0x1baffe&&_0x1baffe['count']==0x1?_0x1baffe[_0x407a85('0x2319')][0x0]:null,_0x5e77b6[_0x407a85('0x103e')]=_0x4bd17e[_0x407a85('0x17a9')](_0x5e77b6['userProfileSection']?_0x5e77b6[_0x407a85('0x383')][_0x407a85('0x103e')]:null),_0x5e77b6[_0x407a85('0x23c3')]=_0x407a85('0x2214'),_0x5e77b6[_0x407a85('0x26a1')]='',_0x5e77b6['listOrderAsc']=null,_0x5e77b6[_0x407a85('0x2816')]=[],_0x5e77b6[_0x407a85('0x826')]={'fields':_0x407a85('0x1029'),'sort':_0x407a85('0x1ac6'),'channel':'chat','limit':0xa,'page':0x1},_0x5e77b6[_0x407a85('0x245b')]=_0x49cbdd()[_0x407a85('0x8de')]([{'option':_0x407a85('0x1890'),'value':'\x27beepall\x27'},{'option':_0x407a85('0x1b14'),'value':_0x407a85('0x19b1')}],function(_0x526569){return _0x49cbdd()['replace'](_0x526569['value'],new RegExp('\x27','g'),'');}),_0x5e77b6[_0x407a85('0xcd4')]=_0x3644f8,_0x5e77b6[_0x407a85('0x1e34')]=_0x1f7405,_0x5e77b6['agentadddialog']=_0x3188ec,_0x5e77b6['deleteconfirm']=_0x1402bf,_0x5e77b6[_0x407a85('0xda8')]=_0x3ff9af,_0x5e77b6[_0x407a85('0x130d')]=_0x279cf8,_0x5e77b6[_0x407a85('0x1b90')]=_0x12f97c,_0x5e77b6[_0x407a85('0x698')]=_0xf8be47,_0x5e77b6[_0x407a85('0x1652')]=_0x4e4aad,_0x5e77b6[_0x407a85('0x27bc')]=_0x43d19a,_0x5e77b6['deleteSelectedChatQueues']=_0x5b5ff6,_0x5e77b6[_0x407a85('0x2692')]=_0x444bc9,_0x5e77b6[_0x407a85('0x1404')]=_0x318af3;function _0x3644f8(_0x583c27){const _0x33e112=_0x407a85;_0x37854b['go'](_0x33e112('0x885'),{'id':_0x583c27['id'],'chatQueue':_0x583c27,'crudPermissions':_0x5e77b6[_0x33e112('0x103e')]});}function _0x1f7405(_0x25bd59,_0x2e3ceb){const _0x35acd5=_0x407a85;_0x57fee9[_0x35acd5('0x28e2')]({'controller':_0x35acd5('0x285a'),'controllerAs':'vm','templateUrl':_0x5df5eb,'parent':angular['element'](_0x49eab8[_0x35acd5('0x13aa')]),'targetEvent':_0x2e3ceb,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x25bd59,'chatQueues':_0x5e77b6['chatQueues']?_0x5e77b6[_0x35acd5('0x2214')][_0x35acd5('0x2319')]:[],'crudPermissions':_0x5e77b6[_0x35acd5('0x103e')]}});}function _0x3188ec(_0x200d95,_0x2bf6f0){const _0x2cae29=_0x407a85;_0x57fee9[_0x2cae29('0x28e2')]({'controller':_0x2cae29('0x9c3'),'controllerAs':'vm','templateUrl':_0x2ac5e3,'parent':angular[_0x2cae29('0x1ce1')](_0x49eab8[_0x2cae29('0x13aa')]),'targetEvent':_0x2bf6f0,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x200d95,'chatQueues':_0x5e77b6[_0x2cae29('0x2214')]?_0x5e77b6[_0x2cae29('0x2214')][_0x2cae29('0x2319')]:[],'crudPermissions':_0x5e77b6[_0x2cae29('0x103e')],'realtime':![]}});}function _0x1402bf(_0x7e565,_0x424c46){const _0x158f33=_0x407a85,_0x3353d6=_0x57fee9[_0x158f33('0x1121')]()[_0x158f33('0x24d3')](_0x158f33('0x5e1')+_0x49cbdd()[_0x158f33('0x1c98')]('chatQueue')+'?')['htmlContent'](''+(_0x7e565[_0x158f33('0x2aa')]||_0x158f33('0x262e'))+_0x158f33('0x1d23')+_0x158f33('0xe9f'))['ariaLabel'](_0x158f33('0x1af1'))['targetEvent'](_0x424c46)['ok']('OK')[_0x158f33('0x1d47')](_0x158f33('0x28a0'));_0x57fee9[_0x158f33('0x28e2')](_0x3353d6)['then'](function(){_0x4e4aad(_0x7e565);},function(){const _0x2bc05e=_0x158f33;console[_0x2bc05e('0x1d63')](_0x2bc05e('0x28a0'));});}function _0x3ff9af(){const _0x57f567=_0x407a85;if(_0x4bd17e[_0x57f567('0x1ba2')]('admin'))_0x37854b['go'](_0x57f567('0x1841'),{});else return _0xe19193[_0x57f567('0x383')]['get']({'userProfileId':_0x4bd17e[_0x57f567('0x2831')]()[_0x57f567('0x1e76')],'sectionId':0x1fe})['$promise'][_0x57f567('0x17e7')](function(_0xb79271){const _0x1c4960=_0x57f567,_0x2bba07=_0xb79271&&_0xb79271[_0x1c4960('0x2319')]?_0xb79271[_0x1c4960('0x2319')][0x0]:null;_0x2bba07&&_0x2bba07['enabled']?_0x37854b['go']('app.chat.realtime.queues',{}):_0xaf2fb5['info']({'title':_0x3ab34d[_0x1c4960('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x3ab34d['instant'](_0x1c4960('0x1169'))});})['catch'](function(_0x52b180){const _0x451b93=_0x57f567;_0xaf2fb5[_0x451b93('0x1db9')]({'title':_0x52b180[_0x451b93('0x11c5')]?_0x451b93('0x14f7')+_0x52b180[_0x451b93('0x11c5')]+'\x20-\x20'+_0x52b180[_0x451b93('0x1833')]:_0x451b93('0x338'),'msg':_0x52b180[_0x451b93('0x11c5')]?JSON[_0x451b93('0x678')](_0x52b180['data']):_0x52b180[_0x451b93('0x9b6')]()});});}let _0x4dd867=!![],_0x4ba738=0x1;_0x2378f9['$watch']('vm.query.filter',function(_0x28c021,_0x39229f){const _0x1598cd=_0x407a85;_0x4dd867?_0x170a5e(function(){_0x4dd867=![];}):(!_0x39229f&&(_0x4ba738=_0x5e77b6[_0x1598cd('0x826')][_0x1598cd('0x115a')]),_0x28c021!==_0x39229f&&(_0x5e77b6[_0x1598cd('0x826')]['page']=0x1),!_0x28c021&&(_0x5e77b6[_0x1598cd('0x826')]['page']=_0x4ba738),_0x5e77b6[_0x1598cd('0x1b90')]());});function _0x279cf8(_0x43b32c){_0x5e77b6['chatQueues']=_0x43b32c||{'count':0x0,'rows':[]};}function _0x12f97c(){const _0xe5dcba=_0x407a85;_0x5e77b6[_0xe5dcba('0x826')]['offset']=(_0x5e77b6[_0xe5dcba('0x826')][_0xe5dcba('0x115a')]-0x1)*_0x5e77b6['query'][_0xe5dcba('0x193b')],_0x4bd17e[_0xe5dcba('0x1ba2')](_0xe5dcba('0x20bf'))?_0x5e77b6[_0xe5dcba('0x1691')]=_0xe19193[_0xe5dcba('0x262e')][_0xe5dcba('0x1c53')](_0x5e77b6[_0xe5dcba('0x826')],_0x279cf8)['$promise']:(_0x5e77b6[_0xe5dcba('0x826')]['id']=_0x5e77b6[_0xe5dcba('0xdeb')]['id'],_0x5e77b6[_0xe5dcba('0x826')]['section']=_0xe5dcba('0x272'),_0x5e77b6[_0xe5dcba('0x1691')]=_0xe19193['userProfile'][_0xe5dcba('0x2447')](_0x5e77b6['query'],_0x279cf8)[_0xe5dcba('0x1af5')]);}function _0xf8be47(_0x5c51ba,_0x4d64ee){const _0x75077f=_0x407a85;_0x57fee9[_0x75077f('0x28e2')]({'controller':_0x75077f('0x2384'),'controllerAs':'vm','templateUrl':_0x2ef6bc,'parent':angular['element'](_0x49eab8[_0x75077f('0x13aa')]),'targetEvent':_0x5c51ba,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x4d64ee,'chatQueues':_0x5e77b6[_0x75077f('0x2214')][_0x75077f('0x2319')],'license':_0x5e77b6[_0x75077f('0x1d11')],'setting':_0x5e77b6[_0x75077f('0x1aeb')],'crudPermissions':_0x5e77b6[_0x75077f('0x103e')]}});}function _0x4e4aad(_0x9ad7e6){const _0x678a85=_0x407a85;_0xe19193[_0x678a85('0x262e')][_0x678a85('0x1da6')]({'id':_0x9ad7e6['id']})[_0x678a85('0x1af5')][_0x678a85('0x17e7')](function(){const _0x1ba62a=_0x678a85;_0x49cbdd()[_0x1ba62a('0x5f3')](_0x5e77b6['chatQueues'][_0x1ba62a('0x2319')],{'id':_0x9ad7e6['id']}),_0x5e77b6[_0x1ba62a('0x2214')][_0x1ba62a('0x335')]-=0x1,!_0x5e77b6[_0x1ba62a('0x2214')][_0x1ba62a('0x2319')]['length']&&_0x5e77b6[_0x1ba62a('0x1b90')](),_0xaf2fb5[_0x1ba62a('0x130d')]({'title':_0x49cbdd()[_0x1ba62a('0x1c98')](_0x1ba62a('0x2a0'))+'\x20deleted!','msg':_0x9ad7e6[_0x1ba62a('0x2aa')]?_0x9ad7e6[_0x1ba62a('0x2aa')]+_0x1ba62a('0x149f'):''});})[_0x678a85('0x16df')](function(_0x48daa7){const _0x9be427=_0x678a85;if(_0x48daa7[_0x9be427('0x1457')]&&_0x48daa7['data'][_0x9be427('0x73e')]&&_0x48daa7[_0x9be427('0x1457')][_0x9be427('0x73e')][_0x9be427('0x1f73')]){_0x5e77b6[_0x9be427('0x73e')]=_0x48daa7[_0x9be427('0x1457')][_0x9be427('0x73e')]||[{'message':_0x48daa7['toString'](),'type':_0x9be427('0xeb1')}];for(let _0x1b41a7=0x0;_0x1b41a7<_0x48daa7[_0x9be427('0x1457')][_0x9be427('0x73e')][_0x9be427('0x1f73')];_0x1b41a7++){_0xaf2fb5[_0x9be427('0x1db9')]({'title':_0x48daa7[_0x9be427('0x1457')][_0x9be427('0x73e')][_0x1b41a7][_0x9be427('0x412')],'msg':_0x48daa7[_0x9be427('0x1457')][_0x9be427('0x73e')][_0x1b41a7][_0x9be427('0x1603')]});}}else _0xaf2fb5[_0x9be427('0x1db9')]({'title':_0x48daa7['status']?_0x9be427('0x14f7')+_0x48daa7['status']+_0x9be427('0x16e4')+_0x48daa7[_0x9be427('0x1833')]:_0x9be427('0xeb1'),'msg':_0x48daa7[_0x9be427('0x1457')]?JSON['stringify'](_0x48daa7[_0x9be427('0x1457')]['message']):_0x48daa7[_0x9be427('0x1603')]||_0x48daa7[_0x9be427('0x9b6')]()});});}function _0x43d19a(){const _0x56bead=_0x407a85,_0x2e2903=angular['copy'](_0x5e77b6['selectedChatQueues']);return _0x5e77b6[_0x56bead('0x2816')]=[],_0x2e2903;}function _0x5b5ff6(_0x21e985){const _0x5b3182=_0x407a85,_0x3cbabf=_0x57fee9['confirm']()[_0x5b3182('0x24d3')](_0x5b3182('0x161'))[_0x5b3182('0x211f')](_0x5b3182('0xa53')+_0x5e77b6['selectedChatQueues'][_0x5b3182('0x1f73')]+_0x5b3182('0x145a')+_0x5b3182('0xe9f'))[_0x5b3182('0x2095')](_0x5b3182('0x21f2'))[_0x5b3182('0x104f')](_0x21e985)['ok']('OK')[_0x5b3182('0x1d47')]('CANCEL');_0x57fee9[_0x5b3182('0x28e2')](_0x3cbabf)[_0x5b3182('0x17e7')](function(){const _0x386234=_0x5b3182;_0x5e77b6[_0x386234('0x2816')][_0x386234('0xccd')](function(_0x2c4ba5){_0x4e4aad(_0x2c4ba5);}),_0x5e77b6[_0x386234('0x2816')]=[];});}function _0x444bc9(){const _0x3045b1=_0x407a85;_0x5e77b6[_0x3045b1('0x2816')]=[];}function _0x318af3(){const _0x3dc9c1=_0x407a85;_0x5e77b6[_0x3dc9c1('0x2816')]=_0x5e77b6['chatQueues'][_0x3dc9c1('0x2319')];}}const _0x189dfe=_0x3d6445;_0x303790[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location','$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x2214'),_0x4376d8('0x262e'),'api',_0x4376d8('0x1885'),'license','setting','crudPermissions'];function _0x303790(_0x22ca51,_0x3434c5,_0x40d436,_0x3fe01d,_0x1f940e,_0x3a177f,_0x402bcf,_0x2bca56,_0x487263,_0x592a0e,_0x44b230,_0x59360c,_0x5bb133,_0x5f2dd2){const _0x3cbab9=_0x4376d8,_0x3d66bc=this;_0x3d66bc['currentUser']=_0x44b230[_0x3cbab9('0x2831')](),_0x3d66bc[_0x3cbab9('0x73e')]=[],_0x3d66bc[_0x3cbab9('0x1aeb')]=_0x5bb133,_0x3d66bc['license']=_0x59360c,_0x3d66bc[_0x3cbab9('0x103e')]=_0x5f2dd2,_0x3d66bc[_0x3cbab9('0x6ee')]={},_0x3d66bc[_0x3cbab9('0x1572')]=_0x3d66bc['setting']&&_0x3d66bc['setting'][_0x3cbab9('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d66bc[_0x3cbab9('0x24d3')]=_0x3cbab9('0x648'),_0x3d66bc[_0x3cbab9('0x262e')]=angular[_0x3cbab9('0x14e5')](_0x487263),_0x3d66bc[_0x3cbab9('0x2214')]=_0x2bca56,_0x3d66bc[_0x3cbab9('0xe60')]=![];!_0x3d66bc['chatQueue']&&(_0x3d66bc[_0x3cbab9('0x262e')]={'strategy':_0x3cbab9('0x928'),'timeout':0xa},_0x3d66bc[_0x3cbab9('0x24d3')]=_0x3cbab9('0x21f4'),_0x3d66bc['newChatQueue']=!![]);_0x3d66bc[_0x3cbab9('0x1b1b')]=_0x265b31,_0x3d66bc['saveChatQueue']=_0x5ad960,_0x3d66bc[_0x3cbab9('0x1652')]=_0x30a48a,_0x3d66bc['getDateFromString']=_0x280813,_0x3d66bc['closeDialog']=_0x233fe4;function _0x265b31(){const _0xe45ea1=_0x3cbab9;_0x3d66bc[_0xe45ea1('0x73e')]=[],_0x592a0e[_0xe45ea1('0x262e')][_0xe45ea1('0x2439')](_0x3d66bc[_0xe45ea1('0x262e')])[_0xe45ea1('0x1af5')]['then'](function(_0x1562a9){const _0x4b2b63=_0xe45ea1;_0x3d66bc['chatQueues'][_0x4b2b63('0x1893')](_0x1562a9[_0x4b2b63('0x16b2')]()),_0x402bcf[_0x4b2b63('0x130d')]({'title':_0x4b2b63('0x7e7'),'msg':_0x3d66bc[_0x4b2b63('0x262e')]['name']?_0x3d66bc[_0x4b2b63('0x262e')][_0x4b2b63('0x2aa')]+_0x4b2b63('0x15a'):''}),_0x233fe4(_0x1562a9);})['catch'](function(_0x2aea1d){const _0x3b12f2=_0xe45ea1;if(_0x2aea1d[_0x3b12f2('0x1457')]&&_0x2aea1d[_0x3b12f2('0x1457')][_0x3b12f2('0x73e')]&&_0x2aea1d['data'][_0x3b12f2('0x73e')][_0x3b12f2('0x1f73')]){_0x3d66bc[_0x3b12f2('0x73e')]=_0x2aea1d[_0x3b12f2('0x1457')][_0x3b12f2('0x73e')]||[{'message':_0x2aea1d[_0x3b12f2('0x9b6')](),'type':_0x3b12f2('0x563')}];for(let _0x16d9cf=0x0;_0x16d9cf<_0x2aea1d[_0x3b12f2('0x1457')][_0x3b12f2('0x73e')][_0x3b12f2('0x1f73')];_0x16d9cf+=0x1){_0x402bcf['error']({'title':_0x2aea1d['data'][_0x3b12f2('0x73e')][_0x16d9cf]['type'],'msg':_0x2aea1d['data'][_0x3b12f2('0x73e')][_0x16d9cf][_0x3b12f2('0x1603')]});}}else _0x402bcf[_0x3b12f2('0x1db9')]({'title':_0x2aea1d[_0x3b12f2('0x11c5')]?'API:'+_0x2aea1d[_0x3b12f2('0x11c5')]+'\x20-\x20'+_0x2aea1d[_0x3b12f2('0x1833')]:_0x3b12f2('0x563'),'msg':_0x2aea1d['data']?JSON[_0x3b12f2('0x678')](_0x2aea1d[_0x3b12f2('0x1457')][_0x3b12f2('0x1603')]):_0x2aea1d[_0x3b12f2('0x9b6')]()});});}function _0x5ad960(){const _0x198926=_0x3cbab9;_0x3d66bc[_0x198926('0x73e')]=[],_0x592a0e[_0x198926('0x262e')][_0x198926('0x27ba')]({'id':_0x3d66bc[_0x198926('0x262e')]['id']},_0x3d66bc[_0x198926('0x262e')])[_0x198926('0x1af5')][_0x198926('0x17e7')](function(_0x4a1566){const _0x6f58e=_0x198926,_0xcdefb7=_0x49cbdd()[_0x6f58e('0xe8e')](_0x3d66bc[_0x6f58e('0x2214')],{'id':_0x4a1566['id']});_0xcdefb7&&_0x49cbdd()[_0x6f58e('0x1ced')](_0xcdefb7,_0x49cbdd()['pick'](_0x4a1566['toJSON'](),_0x49cbdd()[_0x6f58e('0x1c0f')](_0xcdefb7))),_0x402bcf[_0x6f58e('0x130d')]({'title':_0x6f58e('0x3e5'),'msg':_0x3d66bc[_0x6f58e('0x262e')][_0x6f58e('0x2aa')]?_0x3d66bc['chatQueue'][_0x6f58e('0x2aa')]+_0x6f58e('0x15ca'):''}),_0x233fe4(_0x4a1566);})[_0x198926('0x16df')](function(_0x4cd156){const _0x166258=_0x198926;if(_0x4cd156[_0x166258('0x1457')]&&_0x4cd156[_0x166258('0x1457')][_0x166258('0x73e')]&&_0x4cd156[_0x166258('0x1457')][_0x166258('0x73e')][_0x166258('0x1f73')]){_0x3d66bc[_0x166258('0x73e')]=_0x4cd156[_0x166258('0x1457')][_0x166258('0x73e')]||[{'message':_0x4cd156[_0x166258('0x9b6')](),'type':_0x166258('0x1f07')}];for(let _0x20ccd0=0x0;_0x20ccd0<_0x4cd156[_0x166258('0x1457')][_0x166258('0x73e')][_0x166258('0x1f73')];_0x20ccd0++){_0x402bcf[_0x166258('0x1db9')]({'title':_0x4cd156[_0x166258('0x1457')][_0x166258('0x73e')][_0x20ccd0][_0x166258('0x412')],'msg':_0x4cd156[_0x166258('0x1457')][_0x166258('0x73e')][_0x20ccd0]['message']});}}else _0x402bcf[_0x166258('0x1db9')]({'title':_0x4cd156[_0x166258('0x11c5')]?_0x166258('0x14f7')+_0x4cd156[_0x166258('0x11c5')]+_0x166258('0x16e4')+_0x4cd156[_0x166258('0x1833')]:_0x166258('0x1f07'),'msg':_0x4cd156[_0x166258('0x1457')]?JSON[_0x166258('0x678')](_0x4cd156[_0x166258('0x1457')][_0x166258('0x1603')]):_0x4cd156[_0x166258('0x9b6')]()});});}function _0x30a48a(_0xb261f7){const _0xf84e41=_0x3cbab9;_0x3d66bc[_0xf84e41('0x73e')]=[];const _0x106fa3=_0x3fe01d[_0xf84e41('0x1121')]()['title']('Are\x20you\x20sure?')['content'](_0xf84e41('0x26ad'))['ariaLabel'](_0xf84e41('0x14db'))['ok'](_0xf84e41('0x304'))['cancel'](_0xf84e41('0x1b70'))[_0xf84e41('0x104f')](_0xb261f7);_0x3fe01d[_0xf84e41('0x28e2')](_0x106fa3)[_0xf84e41('0x17e7')](function(){const _0x1e9387=_0xf84e41;_0x592a0e['chatQueue'][_0x1e9387('0x1da6')]({'id':_0x3d66bc[_0x1e9387('0x262e')]['id']})[_0x1e9387('0x1af5')]['then'](function(){const _0x134f22=_0x1e9387;_0x49cbdd()['remove'](_0x3d66bc[_0x134f22('0x2214')],{'id':_0x3d66bc[_0x134f22('0x262e')]['id']}),_0x402bcf[_0x134f22('0x130d')]({'title':_0x134f22('0x543'),'msg':(_0x3d66bc[_0x134f22('0x262e')][_0x134f22('0x2aa')]||_0x134f22('0x262e'))+_0x134f22('0x149f')}),_0x233fe4(_0x3d66bc[_0x134f22('0x262e')]);})[_0x1e9387('0x16df')](function(_0x544e43){const _0x21f33f=_0x1e9387;if(_0x544e43[_0x21f33f('0x1457')]&&_0x544e43[_0x21f33f('0x1457')]['errors']&&_0x544e43['data'][_0x21f33f('0x73e')][_0x21f33f('0x1f73')]){_0x3d66bc['errors']=_0x544e43['data'][_0x21f33f('0x73e')]||[{'message':_0x544e43[_0x21f33f('0x9b6')](),'type':_0x21f33f('0x2402')}];for(let _0x3027b2=0x0;_0x3027b2<_0x544e43[_0x21f33f('0x1457')][_0x21f33f('0x73e')]['length'];_0x3027b2++){_0x402bcf[_0x21f33f('0x1db9')]({'title':_0x544e43['data'][_0x21f33f('0x73e')][_0x3027b2][_0x21f33f('0x412')],'msg':_0x544e43[_0x21f33f('0x1457')]['errors'][_0x3027b2][_0x21f33f('0x1603')]});}}else _0x402bcf[_0x21f33f('0x1db9')]({'title':_0x544e43[_0x21f33f('0x11c5')]?_0x21f33f('0x14f7')+_0x544e43[_0x21f33f('0x11c5')]+_0x21f33f('0x16e4')+_0x544e43['statusText']:'api.chatQueue.delete','msg':_0x544e43[_0x21f33f('0x1457')]?JSON['stringify'](_0x544e43[_0x21f33f('0x1457')]['message']):_0x544e43[_0x21f33f('0x1603')]||_0x544e43[_0x21f33f('0x9b6')]()});});},function(){});}function _0x280813(_0x28ba2d){return _0x28ba2d===null?undefined:new Date(_0x28ba2d);}function _0x233fe4(_0x28e801){const _0x16a828=_0x3cbab9;_0x3fe01d[_0x16a828('0x212a')](_0x28e801);}}const _0x1fb7ad=_0x303790;_0x7e46b2['$inject']=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),'chatQueue',_0x4376d8('0x2214'),_0x4376d8('0x20c8'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x7e46b2(_0x4e985d,_0x15b064,_0x35f41b,_0x34db80,_0x22f628,_0x545e7b,_0x1423d3,_0x536af0,_0x16f1e8,_0x435e34){const _0x6a5f2c=_0x4376d8,_0x4ce605=this;_0x4ce605[_0x6a5f2c('0x197c')]=_0x16f1e8['getCurrentUser'](),_0x4ce605['chatQueue']=_0x22f628,_0x4ce605[_0x6a5f2c('0x103e')]=_0x435e34,_0x4ce605[_0x6a5f2c('0x20c8')]=_0x1423d3,_0x4ce605[_0x6a5f2c('0x532')]=[],_0x4ce605['allowedItems']=[],_0x4ce605[_0x6a5f2c('0xc14')]=[],_0x4ce605[_0x6a5f2c('0x181b')]=[],_0x4ce605[_0x6a5f2c('0x1824')]=[],_0x4ce605['pendingChanges']=![],_0x4ce605[_0x6a5f2c('0xdf0')]=_0x4f63a3,_0x4ce605[_0x6a5f2c('0x257a')]=_0x47875c,_0x4ce605[_0x6a5f2c('0x136e')]=_0x5e2c0c,_0x4ce605['dualMultiselectOptions']={'readOnly':!_0x4ce605[_0x6a5f2c('0x103e')][_0x6a5f2c('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x6a5f2c('0x2aa'),'line1':_0x6a5f2c('0xea6'),'line2':[_0x6a5f2c('0x2aa'),_0x6a5f2c('0xe3e')],'line3':'','labelAll':_0x536af0[_0x6a5f2c('0x1acc')](_0x6a5f2c('0x93b')),'labelSelected':_0x536af0[_0x6a5f2c('0x1acc')](_0x6a5f2c('0x7a1')),'transferCallback':function(){const _0x5126ec=_0x6a5f2c,_0x1c314e=_0x49cbdd()[_0x5126ec('0x137')](_0x4ce605[_0x5126ec('0x1824')],_0x4ce605[_0x5126ec('0xc14')],'id');_0x4ce605[_0x5126ec('0x25dc')]=_0x49cbdd()[_0x5126ec('0x109a')](_0x1c314e)?![]:!![];}};function _0x4f63a3(){const _0xced646=_0x6a5f2c;return _0x16f1e8[_0xced646('0x1ba2')]('admin')?_0x538012()[_0xced646('0x16df')](function(_0x40b866){const _0x512a5d=_0xced646;_0x35f41b['error']({'title':_0x40b866[_0x512a5d('0x11c5')]?'API:'+_0x40b866[_0x512a5d('0x11c5')]+_0x512a5d('0x16e4')+_0x40b866[_0x512a5d('0x1833')]:_0x512a5d('0x23e0'),'msg':_0x40b866[_0x512a5d('0x11c5')]?JSON[_0x512a5d('0x678')](_0x40b866['data']):_0x40b866[_0x512a5d('0x9b6')]()});}):_0x285d09()[_0xced646('0x17e7')](function(_0x131ec9){const _0x417c6b=_0xced646;return _0x4ce605[_0x417c6b('0x16f8')]=_0x131ec9,_0x538012();})['catch'](function(_0x1c9d21){const _0x436d25=_0xced646;_0x35f41b[_0x436d25('0x1db9')]({'title':_0x1c9d21[_0x436d25('0x11c5')]?_0x436d25('0x14f7')+_0x1c9d21[_0x436d25('0x11c5')]+_0x436d25('0x16e4')+_0x1c9d21[_0x436d25('0x1833')]:'SYSTEM:GET_AGENTS','msg':_0x1c9d21[_0x436d25('0x11c5')]?JSON[_0x436d25('0x678')](_0x1c9d21[_0x436d25('0x1457')]):_0x1c9d21[_0x436d25('0x9b6')]()});});}function _0x285d09(){return _0x15b064(function(_0x2c2706,_0xd3d69f){const _0x2bdabf=a0_0xd29e;_0x34db80[_0x2bdabf('0x383')]['get']({'userProfileId':_0x4ce605['currentUser']['userProfileId'],'name':_0x2bdabf('0x2157')})[_0x2bdabf('0x1af5')]['then'](function(_0x1c9729){const _0x5de117=_0x1c9729&&_0x1c9729['rows']?_0x1c9729['rows'][0x0]:null;_0x2c2706(_0x5de117);})[_0x2bdabf('0x16df')](function(_0x359b77){_0xd3d69f(_0x359b77);});});}function _0x538012(){return _0x15b064(function(_0x527852,_0x2320de){const _0x578cb1=a0_0xd29e;return _0x44b895()[_0x578cb1('0x17e7')](function(_0x112a2c){const _0x5a1e06=_0x578cb1;return _0x4ce605['items']=_0x112a2c[_0x5a1e06('0x2319')]?_0x112a2c['rows']:[],_0x16f1e8['hasRole'](_0x5a1e06('0x20bf'))?_0x112a2c:_0x4ce605['section']?_0x4ce605['section'][_0x5a1e06('0x9e3')]?_0x112a2c:_0x2777d1():null;})[_0x578cb1('0x17e7')](function(_0x48b727){const _0x52a080=_0x578cb1,_0xa3d6d3=_0x48b727&&_0x48b727[_0x52a080('0x2319')]?_0x48b727[_0x52a080('0x2319')]:[];return _0x4ce605['allowedItems']=_0x49cbdd()['map'](_0xa3d6d3,function(_0x8b0a6c){const _0x5686cc=_0x52a080;return _0x49cbdd()[_0x5686cc('0xe8e')](_0x4ce605[_0x5686cc('0x532')],{'id':_0x16f1e8[_0x5686cc('0x1ba2')](_0x5686cc('0x20bf'))||_0x4ce605['section'][_0x5686cc('0x9e3')]?_0x8b0a6c['id']:_0x8b0a6c[_0x5686cc('0x5db')]});}),_0x4ce605['startingAllowedItems']=angular[_0x52a080('0x14e5')](_0x4ce605[_0x52a080('0x2722')]),_0x4ce605['items']['forEach'](function(_0x8ce937){const _0x4b30e1=_0x52a080,_0x478a5e=_0x49cbdd()[_0x4b30e1('0xe8e')](_0x4ce605[_0x4b30e1('0x2722')],{'id':_0x8ce937['id']});_0x16f1e8[_0x4b30e1('0x1ba2')](_0x4b30e1('0x20bf'))?_0x8ce937[_0x4b30e1('0xc98')]=!![]:_0x8ce937['isValid']=typeof _0x478a5e!==_0x4b30e1('0xfad')?!![]:![];}),_0x974b4e();})['then'](function(_0x4052cc){const _0x1d7a78=_0x578cb1,_0xef991f=_0x4052cc&&_0x4052cc['rows']?_0x4052cc[_0x1d7a78('0x2319')]:[];_0x4ce605[_0x1d7a78('0xc14')]=_0x49cbdd()[_0x1d7a78('0x787')](_0xef991f,function(_0x263ca1){const _0xd7c331=_0x1d7a78,_0x1ff09c=_0x49cbdd()[_0xd7c331('0xe8e')](_0x4ce605['items'],{'id':_0x263ca1['id']});return _0x1ff09c[_0xd7c331('0x122c')]=_0x263ca1[_0xd7c331('0x2c0')]?'penalty\x20'+_0x263ca1[_0xd7c331('0x2c0')][_0xd7c331('0x122c')]:'',_0x1ff09c['internal']=typeof _0x263ca1[_0xd7c331('0xe3e')]!==_0xd7c331('0xfad')?'<'+_0x263ca1['internal']+'>':'',_0x1ff09c;}),_0x4ce605[_0x1d7a78('0x1824')]=angular['copy'](_0x4ce605['selectedItems']),_0x4ce605[_0x1d7a78('0x26f4')][_0x1d7a78('0xc14')]=_0x4ce605[_0x1d7a78('0xc14')],_0x4ce605[_0x1d7a78('0x26f4')]['items']=_0x49cbdd()['differenceBy'](_0x4ce605[_0x1d7a78('0x2722')],_0x4ce605[_0x1d7a78('0x26f4')][_0x1d7a78('0xc14')],'id'),_0x527852();})[_0x578cb1('0x16df')](function(_0x196194){_0x2320de(_0x196194);});});}function _0x2777d1(){return _0x15b064(function(_0x16e5e2,_0x1aade0){const _0x130a72=a0_0xd29e;return _0x34db80[_0x130a72('0x78d')][_0x130a72('0x1c53')]({'sectionId':_0x4ce605[_0x130a72('0x16f8')]['id'],'nolimit':!![]})[_0x130a72('0x1af5')][_0x130a72('0x17e7')](function(_0x261507){_0x16e5e2(_0x261507);})[_0x130a72('0x16df')](function(_0x125ff3){_0x1aade0(_0x125ff3);});});}function _0x974b4e(){return _0x15b064(function(_0x551077,_0x3ffd64){const _0x360b81=a0_0xd29e;return _0x34db80['chatQueue'][_0x360b81('0x1dac')]({'id':_0x4ce605[_0x360b81('0x262e')]['id'],'fields':_0x360b81('0x1152'),'nolimit':!![],'role':_0x360b81('0x684')})['$promise'][_0x360b81('0x17e7')](function(_0x26eafa){_0x551077(_0x26eafa);})[_0x360b81('0x16df')](function(_0x315a61){_0x3ffd64(_0x315a61);});});}function _0x44b895(){return _0x15b064(function(_0x12691b,_0x215c09){const _0x3eb627=a0_0xd29e;return _0x34db80[_0x3eb627('0x221e')]['get']({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x3eb627('0x684')})[_0x3eb627('0x1af5')][_0x3eb627('0x17e7')](function(_0x4bd536){_0x12691b(_0x4bd536);})[_0x3eb627('0x16df')](function(_0x176e82){_0x215c09(_0x176e82);});});}function _0xef9879(_0x1b0f53){return _0x15b064(function(_0x3b657c,_0x4d31c5){const _0x5df0e5=a0_0xd29e;_0x49cbdd()[_0x5df0e5('0x109a')](_0x1b0f53)?_0x3b657c():_0x34db80[_0x5df0e5('0x262e')][_0x5df0e5('0x1f22')]({'id':_0x4ce605[_0x5df0e5('0x262e')]['id'],'ids':_0x49cbdd()[_0x5df0e5('0x787')](_0x1b0f53,'id')})['$promise']['then'](function(){_0x3b657c();})[_0x5df0e5('0x16df')](function(_0x1e0349){_0x4d31c5(_0x1e0349);});});}function _0x1f1448(_0x56735a){return _0x15b064(function(_0x13e81c,_0x632b1a){const _0x2fffb7=a0_0xd29e;_0x49cbdd()[_0x2fffb7('0x109a')](_0x56735a)?_0x13e81c():_0x34db80[_0x2fffb7('0x262e')]['removeAgents']({'id':_0x4ce605[_0x2fffb7('0x262e')]['id'],'ids':_0x49cbdd()[_0x2fffb7('0x787')](_0x56735a,'id')})['$promise'][_0x2fffb7('0x17e7')](function(){_0x13e81c();})[_0x2fffb7('0x16df')](function(_0x578878){_0x632b1a(_0x578878);});});}function _0x47875c(){const _0x372a8e=_0x6a5f2c,_0x1263f3=_0x49cbdd()[_0x372a8e('0x1ada')](_0x4ce605[_0x372a8e('0x1824')],_0x4ce605['selectedItems'],'id'),_0x4209eb=_0x49cbdd()[_0x372a8e('0x1ada')](_0x4ce605[_0x372a8e('0xc14')],_0x4ce605[_0x372a8e('0x1824')],'id');return _0x1f1448(_0x1263f3)[_0x372a8e('0x17e7')](function(){return _0xef9879(_0x4209eb);})[_0x372a8e('0x17e7')](function(){const _0x2732d9=_0x372a8e;_0x4ce605[_0x2732d9('0x25dc')]=![],_0x4ce605[_0x2732d9('0x181b')]=angular[_0x2732d9('0x14e5')](_0x4ce605[_0x2732d9('0x2722')]),_0x4ce605['startingSelectedItems']=angular[_0x2732d9('0x14e5')](_0x4ce605[_0x2732d9('0xc14')]),_0x35f41b[_0x2732d9('0x130d')]({'title':'SUCCESS','msg':_0x2732d9('0x2603')});})[_0x372a8e('0x16df')](function(_0x3c754c){const _0xd66e69=_0x372a8e;_0x35f41b[_0xd66e69('0x1db9')]({'title':_0x3c754c[_0xd66e69('0x11c5')]?_0xd66e69('0x14f7')+_0x3c754c[_0xd66e69('0x11c5')]+'\x20-\x20'+_0x3c754c[_0xd66e69('0x1833')]:_0xd66e69('0x244e'),'msg':_0x3c754c[_0xd66e69('0x11c5')]?JSON['stringify'](_0x3c754c['data']):_0x3c754c['toString']()});});}function _0x5e2c0c(){const _0x2a036c=_0x6a5f2c;_0x4e985d[_0x2a036c('0x212a')]();}}const _0x1303f4=_0x7e46b2;_0x485b19[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x262e'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x485b19(_0x3a466,_0x341f41,_0x56e71d,_0x372ef0,_0x1a5c2f,_0x1ac2f7,_0x372e1c,_0xdde0eb){const _0x56d837=_0x4376d8,_0x87bb98=this;_0x87bb98[_0x56d837('0x197c')]=_0x372e1c[_0x56d837('0x2831')](),_0x87bb98[_0x56d837('0x262e')]=_0x1a5c2f,_0x87bb98['crudPermissions']=_0xdde0eb,_0x87bb98[_0x56d837('0x532')]=[],_0x87bb98[_0x56d837('0x2722')]=[],_0x87bb98['selectedItems']=[],_0x87bb98['startingAllowedItems']=[],_0x87bb98[_0x56d837('0x1824')]=[],_0x87bb98[_0x56d837('0x25dc')]=![],_0x87bb98['dualMultiselectOptions']={'readOnly':!_0x87bb98[_0x56d837('0x103e')][_0x56d837('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'name','line2':'','line3':'','labelAll':_0x1ac2f7[_0x56d837('0x1acc')]('CHAT.ALL_TEAMS'),'labelSelected':_0x1ac2f7[_0x56d837('0x1acc')](_0x56d837('0x14ac')),'transferCallback':function(){const _0x50007e=_0x56d837,_0x29d8b9=_0x49cbdd()[_0x50007e('0x137')](_0x87bb98['startingSelectedItems'],_0x87bb98[_0x50007e('0xc14')],'id');_0x87bb98[_0x50007e('0x25dc')]=_0x49cbdd()[_0x50007e('0x109a')](_0x29d8b9)?![]:!![];}},_0x87bb98[_0x56d837('0xdf0')]=_0x2010f3,_0x87bb98[_0x56d837('0x1a8f')]=_0x19f350,_0x87bb98[_0x56d837('0x136e')]=_0x5e0e11;function _0x2010f3(){const _0x33ba8f=_0x56d837;return _0x372e1c[_0x33ba8f('0x1ba2')]('admin')?_0x5327c4()[_0x33ba8f('0x16df')](function(_0x44e477){const _0x27967a=_0x33ba8f;_0x56e71d[_0x27967a('0x1db9')]({'title':_0x44e477['status']?_0x27967a('0x14f7')+_0x44e477[_0x27967a('0x11c5')]+_0x27967a('0x16e4')+_0x44e477[_0x27967a('0x1833')]:_0x27967a('0x20cf'),'msg':_0x44e477[_0x27967a('0x11c5')]?JSON[_0x27967a('0x678')](_0x44e477['data']):_0x44e477[_0x27967a('0x9b6')]()});}):_0x5a23f0()[_0x33ba8f('0x17e7')](function(_0xcc6cd7){const _0x4afaff=_0x33ba8f;return _0x87bb98[_0x4afaff('0x16f8')]=_0xcc6cd7,_0x5327c4();})[_0x33ba8f('0x16df')](function(_0x3768b5){const _0x4f84ec=_0x33ba8f;_0x56e71d[_0x4f84ec('0x1db9')]({'title':_0x3768b5[_0x4f84ec('0x11c5')]?'API:'+_0x3768b5[_0x4f84ec('0x11c5')]+_0x4f84ec('0x16e4')+_0x3768b5[_0x4f84ec('0x1833')]:_0x4f84ec('0x20cf'),'msg':_0x3768b5[_0x4f84ec('0x11c5')]?JSON[_0x4f84ec('0x678')](_0x3768b5[_0x4f84ec('0x1457')]):_0x3768b5[_0x4f84ec('0x9b6')]()});});}function _0x5a23f0(){return _0x341f41(function(_0x2de563,_0x58e41e){const _0x185d24=a0_0xd29e;_0x372ef0['userProfileSection']['get']({'userProfileId':_0x87bb98['currentUser'][_0x185d24('0x1e76')],'name':_0x185d24('0x1cf2')})['$promise']['then'](function(_0x293f06){const _0x1ab1ca=_0x185d24,_0x1c703b=_0x293f06&&_0x293f06[_0x1ab1ca('0x2319')]?_0x293f06[_0x1ab1ca('0x2319')][0x0]:null;_0x2de563(_0x1c703b);})[_0x185d24('0x16df')](function(_0x38455e){_0x58e41e(_0x38455e);});});}function _0x5327c4(){return _0x341f41(function(_0x26fce5,_0x271313){const _0x420974=a0_0xd29e;return _0x2eab69()[_0x420974('0x17e7')](function(_0x2e7a63){const _0x48535d=_0x420974;return _0x87bb98[_0x48535d('0x532')]=_0x2e7a63[_0x48535d('0x2319')]?_0x2e7a63['rows']:[],_0x372e1c[_0x48535d('0x1ba2')]('admin')?_0x2e7a63:_0x87bb98['section']?_0x87bb98['section']['autoAssociation']?_0x2e7a63:_0x333324():null;})[_0x420974('0x17e7')](function(_0x1c85e6){const _0x3c3634=_0x420974,_0x1057aa=_0x1c85e6&&_0x1c85e6[_0x3c3634('0x2319')]?_0x1c85e6[_0x3c3634('0x2319')]:[];return _0x87bb98['allowedItems']=_0x49cbdd()[_0x3c3634('0x787')](_0x1057aa,function(_0x171210){const _0x40c076=_0x3c3634;return _0x49cbdd()['find'](_0x87bb98[_0x40c076('0x532')],{'id':_0x372e1c[_0x40c076('0x1ba2')](_0x40c076('0x20bf'))||_0x87bb98[_0x40c076('0x16f8')][_0x40c076('0x9e3')]?_0x171210['id']:_0x171210[_0x40c076('0x5db')]});}),_0x87bb98[_0x3c3634('0x532')][_0x3c3634('0xccd')](function(_0x25a196){const _0x4a5948=_0x3c3634,_0xcd7610=_0x49cbdd()[_0x4a5948('0xe8e')](_0x87bb98[_0x4a5948('0x2722')],{'id':_0x25a196['id']});_0x372e1c[_0x4a5948('0x1ba2')]('admin')?_0x25a196['isValid']=!![]:_0x25a196[_0x4a5948('0xc98')]=typeof _0xcd7610!=='undefined'?!![]:![];}),_0x57c886();})[_0x420974('0x17e7')](function(_0x182d9e){const _0x3ce203=_0x420974,_0x5f15a4=_0x182d9e&&_0x182d9e[_0x3ce203('0x2319')]?_0x182d9e['rows']:[];_0x87bb98[_0x3ce203('0xc14')]=_0x49cbdd()[_0x3ce203('0x787')](_0x5f15a4,function(_0x16de07){return _0x49cbdd()['find'](_0x87bb98['items'],{'id':_0x16de07['id']});}),_0x87bb98[_0x3ce203('0x1824')]=angular['copy'](_0x87bb98['selectedItems']),_0x87bb98[_0x3ce203('0x26f4')][_0x3ce203('0xc14')]=_0x87bb98['selectedItems'],_0x87bb98[_0x3ce203('0x26f4')]['items']=_0x49cbdd()[_0x3ce203('0x1ada')](_0x87bb98[_0x3ce203('0x2722')],_0x87bb98['dualMultiselectOptions'][_0x3ce203('0xc14')],'id'),_0x26fce5();})['catch'](function(_0x1fe1e3){_0x271313(_0x1fe1e3);});});}function _0x333324(){return _0x341f41(function(_0x1d8d5a,_0x187159){const _0xa77596=a0_0xd29e;return _0x372ef0[_0xa77596('0x78d')][_0xa77596('0x1c53')]({'sectionId':_0x87bb98[_0xa77596('0x16f8')]['id'],'nolimit':!![]})[_0xa77596('0x1af5')][_0xa77596('0x17e7')](function(_0x22ddbc){_0x1d8d5a(_0x22ddbc);})['catch'](function(_0x55881a){_0x187159(_0x55881a);});});}function _0x57c886(){return _0x341f41(function(_0x33c60c,_0x23c452){const _0x540452=a0_0xd29e;return _0x372ef0['chatQueue'][_0x540452('0x141f')]({'id':_0x87bb98[_0x540452('0x262e')]['id'],'fields':_0x540452('0x12d2'),'nolimit':!![]})[_0x540452('0x1af5')][_0x540452('0x17e7')](function(_0x1774a9){_0x33c60c(_0x1774a9);})[_0x540452('0x16df')](function(_0x7cac6){_0x23c452(_0x7cac6);});});}function _0x2eab69(){return _0x341f41(function(_0x22e1e2,_0x22585d){const _0xd83c50=a0_0xd29e;return _0x372ef0[_0xd83c50('0x176')][_0xd83c50('0x1c53')]({'fields':_0xd83c50('0x12d2'),'nolimit':!![]})[_0xd83c50('0x1af5')][_0xd83c50('0x17e7')](function(_0x1d81fe){_0x22e1e2(_0x1d81fe);})['catch'](function(_0x1ca9dc){_0x22585d(_0x1ca9dc);});});}function _0x1747d1(_0x3edfe8){return _0x341f41(function(_0x227126,_0x35ff38){const _0x4d830d=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x3edfe8)?_0x227126():_0x372ef0[_0x4d830d('0x262e')][_0x4d830d('0x670')]({'id':_0x87bb98[_0x4d830d('0x262e')]['id'],'ids':_0x49cbdd()['map'](_0x3edfe8,'id')})[_0x4d830d('0x1af5')]['then'](function(){_0x227126();})[_0x4d830d('0x16df')](function(_0x3b4901){_0x35ff38(_0x3b4901);});});}function _0x965c61(_0x743cba){return _0x341f41(function(_0x30aab7,_0xaf3363){const _0x26a344=a0_0xd29e;_0x49cbdd()[_0x26a344('0x109a')](_0x743cba)?_0x30aab7():_0x372ef0[_0x26a344('0x262e')][_0x26a344('0x27e8')]({'id':_0x87bb98['chatQueue']['id'],'ids':_0x49cbdd()[_0x26a344('0x787')](_0x743cba,'id')})['$promise'][_0x26a344('0x17e7')](function(){_0x30aab7();})[_0x26a344('0x16df')](function(_0x1e6cfb){_0xaf3363(_0x1e6cfb);});});}function _0x19f350(){const _0x3dc727=_0x56d837,_0x16b822=_0x49cbdd()[_0x3dc727('0x1ada')](_0x87bb98[_0x3dc727('0x1824')],_0x87bb98[_0x3dc727('0xc14')],'id'),_0x3b6e25=_0x49cbdd()[_0x3dc727('0x1ada')](_0x87bb98['selectedItems'],_0x87bb98['startingSelectedItems'],'id');return _0x965c61(_0x16b822)[_0x3dc727('0x17e7')](function(){return _0x1747d1(_0x3b6e25);})[_0x3dc727('0x17e7')](function(){const _0x28e387=_0x3dc727;_0x87bb98[_0x28e387('0x25dc')]=![],_0x87bb98[_0x28e387('0x181b')]=angular[_0x28e387('0x14e5')](_0x87bb98[_0x28e387('0x2722')]),_0x87bb98[_0x28e387('0x1824')]=angular[_0x28e387('0x14e5')](_0x87bb98[_0x28e387('0xc14')]),_0x56e71d[_0x28e387('0x130d')]({'title':_0x28e387('0x9d1'),'msg':_0x28e387('0x1091')});})['catch'](function(_0x112a68){const _0x49021f=_0x3dc727;_0x56e71d[_0x49021f('0x1db9')]({'title':_0x112a68['status']?_0x49021f('0x14f7')+_0x112a68['status']+'\x20-\x20'+_0x112a68[_0x49021f('0x1833')]:_0x49021f('0x244e'),'msg':_0x112a68['status']?JSON[_0x49021f('0x678')](_0x112a68['data']):_0x112a68[_0x49021f('0x9b6')]()});});}function _0x5e0e11(){_0x3a466['hide']();}}const _0x5cc865=_0x485b19;_0x4f01b5[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),'license',_0x4376d8('0x1aeb'),'api',_0x4376d8('0x108a'),'Auth',_0x4376d8('0x262e'),_0x4376d8('0x383')];function _0x4f01b5(_0x3f4e3c,_0x34c5a2,_0x481aab,_0x3596c0,_0x36c051,_0x59805e,_0x255266,_0x56dd3f,_0x193da1,_0x46f7e4,_0x4d06c9,_0x59a3c0){const _0x465fc6=_0x4376d8,_0x4127ed=this;_0x4127ed[_0x465fc6('0x197c')]=_0x46f7e4[_0x465fc6('0x2831')](),_0x4127ed[_0x465fc6('0x1d11')]=_0x59805e,_0x4127ed[_0x465fc6('0x1aeb')]=_0x255266,_0x4127ed['passwordPattern']=_0x4127ed['setting'][_0x465fc6('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4127ed['location']=_0x34c5a2[_0x465fc6('0x14fe')]()+_0x465fc6('0x14')+_0x34c5a2['host'](),_0x4127ed[_0x465fc6('0x262e')]=_0x4d06c9||_0x3f4e3c[_0x465fc6('0x16fb')]['chatQueue']||{},_0x4127ed[_0x465fc6('0x383')]=_0x59a3c0&&_0x59a3c0['count']==0x1?_0x59a3c0[_0x465fc6('0x2319')][0x0]:null,_0x4127ed['crudPermissions']=_0x46f7e4['parseCrudPermissions'](_0x4127ed[_0x465fc6('0x383')]?_0x4127ed['userProfileSection'][_0x465fc6('0x103e')]:null),_0x4127ed['hasModulePermissions']={},_0x4127ed[_0x465fc6('0xde7')]=_0x3f4e3c[_0x465fc6('0x16fb')][_0x465fc6('0x1523')]||0x0,_0x4127ed[_0x465fc6('0x1e34')]=_0x92967e,_0x4127ed[_0x465fc6('0x2359')]=_0xf0e75e,_0x4127ed['alert']=_0x193da1[_0x465fc6('0x1178')],_0x4127ed[_0x465fc6('0xf57')]=_0x4b0944,_0x4127ed[_0x465fc6('0x28c9')]=_0x510d64;function _0x92967e(_0x7686ec,_0xa6983d){const _0xa5fc65=_0x465fc6;_0x481aab[_0xa5fc65('0x28e2')]({'controller':_0xa5fc65('0x285a'),'controllerAs':'vm','templateUrl':_0x5df5eb,'parent':angular[_0xa5fc65('0x1ce1')](_0x3596c0['body']),'targetEvent':_0xa6983d,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x7686ec,'chatQueues':_0x4127ed[_0xa5fc65('0x2214')]?_0x4127ed[_0xa5fc65('0x2214')][_0xa5fc65('0x2319')]:[],'crudPermissions':_0x4127ed[_0xa5fc65('0x103e')]}});}function _0xf0e75e(_0x36cb5e,_0x3f89f9){const _0x3f8ee1=_0x465fc6;_0x481aab['show']({'controller':'ChatQueueagentaddController','controllerAs':'vm','templateUrl':_0x2ac5e3,'parent':angular[_0x3f8ee1('0x1ce1')](_0x3596c0['body']),'targetEvent':_0x3f89f9,'clickOutsideToClose':!![],'locals':{'chatQueue':_0x36cb5e,'chatQueues':_0x4127ed[_0x3f8ee1('0x2214')]?_0x4127ed[_0x3f8ee1('0x2214')][_0x3f8ee1('0x2319')]:[],'crudPermissions':_0x4127ed['crudPermissions'],'realtime':![]}});}function _0x4b0944(){const _0x3cce89=_0x465fc6;_0x3f4e3c['go'](_0x3cce89('0x23cf'),{},{'reload':_0x3cce89('0x23cf')});}function _0x510d64(){const _0x9cb105=_0x465fc6;_0x56dd3f['chatQueue'][_0x9cb105('0x27ba')]({'id':_0x4127ed['chatQueue']['id']},_0x4127ed[_0x9cb105('0x262e')])[_0x9cb105('0x1af5')][_0x9cb105('0x17e7')](function(){const _0x3541f5=_0x9cb105;_0x193da1[_0x3541f5('0x130d')]({'title':'ChatQueue\x20updated!','msg':_0x4127ed[_0x3541f5('0x262e')][_0x3541f5('0x2aa')]?_0x4127ed[_0x3541f5('0x262e')]['name']+'\x20has\x20been\x20updated!':''});})[_0x9cb105('0x16df')](function(_0x3f5574){const _0x513785=_0x9cb105;_0x193da1[_0x513785('0x1db9')]({'title':_0x3f5574[_0x513785('0x11c5')]?_0x513785('0x14f7')+_0x3f5574[_0x513785('0x11c5')]+'\x20-\x20'+_0x3f5574['statusText']:_0x513785('0x13f4'),'msg':_0x3f5574['data']?JSON[_0x513785('0x678')](_0x3f5574['data']):_0x3f5574[_0x513785('0x9b6')]()});});}}const _0xc83154=_0x4f01b5,_0x10efd4=_0x4cf2bc['p']+_0x4376d8('0x1291'),_0x51ae98=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatWebsites/create/dialog.html/dialog.html';_0x1ff011[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x146c'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x1ff011(_0x3c22ab,_0x2596bc,_0x15be9a,_0x1922ef,_0x2c7a9a,_0x303e42,_0x461b69,_0x46b4fc,_0x49f670,_0x2e3185,_0x1e76c7,_0x3b64dd,_0x2266a1,_0xe9a775,_0x432bcf,_0x31e96b,_0x20f002){const _0x3f07aa=_0x4376d8,_0x560111=this;_0x560111[_0x3f07aa('0x1d11')]=_0x31e96b,_0x560111['setting']=_0x20f002,_0x560111['currentUser']=_0x432bcf[_0x3f07aa('0x2831')](),_0x560111[_0x3f07aa('0x146c')]=_0x49f670||{'count':0x0,'rows':[]},_0x560111[_0x3f07aa('0xdeb')]=_0x2e3185,_0x560111[_0x3f07aa('0x383')]=_0x1e76c7&&_0x1e76c7[_0x3f07aa('0x335')]==0x1?_0x1e76c7['rows'][0x0]:null,_0x560111[_0x3f07aa('0x103e')]=_0x432bcf[_0x3f07aa('0x17a9')](_0x560111[_0x3f07aa('0x383')]?_0x560111[_0x3f07aa('0x383')][_0x3f07aa('0x103e')]:null),_0x560111[_0x3f07aa('0x23c3')]=_0x3f07aa('0x146c'),_0x560111[_0x3f07aa('0x26a1')]='',_0x560111['listOrderAsc']=null,_0x560111[_0x3f07aa('0x46a')]=[],_0x560111[_0x3f07aa('0x826')]={'fields':_0x3f07aa('0x93e'),'sort':_0x3f07aa('0x1ac6'),'limit':0xa,'page':0x1},_0x560111[_0x3f07aa('0x1556')]=_0x49cbdd()[_0x3f07aa('0x8de')]([{'option':_0x3f07aa('0x1555'),'value':_0x3f07aa('0xb5b')},{'option':'AgentAlias','value':_0x3f07aa('0x189d')},{'option':_0x3f07aa('0xfc6'),'value':_0x3f07aa('0xbd1')}],function(_0x143c5c){const _0xef3e37=_0x3f07aa;return _0x49cbdd()[_0xef3e37('0x737')](_0x143c5c['value'],new RegExp('\x27','g'),'');}),_0x560111[_0x3f07aa('0x570')]=_0x49cbdd()[_0x3f07aa('0x8de')]([{'option':_0x3f07aa('0xb05'),'value':_0x3f07aa('0x695')},{'option':'Squared','value':_0x3f07aa('0xb6e')}],function(_0xdf98f4){const _0x4790e3=_0x3f07aa;return _0x49cbdd()[_0x4790e3('0x737')](_0xdf98f4['value'],new RegExp('\x27','g'),'');}),_0x560111[_0x3f07aa('0x2134')]=_0x49cbdd()['keyBy']([{'option':_0x3f07aa('0x1427'),'value':_0x3f07aa('0xf59')},{'option':_0x3f07aa('0x220c'),'value':'\x27right\x27'},{'option':_0x3f07aa('0x24b3'),'value':_0x3f07aa('0xf0a')}],function(_0x2f48b){const _0x57cd9b=_0x3f07aa;return _0x49cbdd()[_0x57cd9b('0x737')](_0x2f48b[_0x57cd9b('0x175b')],new RegExp('\x27','g'),'');}),_0x560111['arraymessagesAlignment']=_0x49cbdd()[_0x3f07aa('0x8de')]([{'option':_0x3f07aa('0x1d13'),'value':_0x3f07aa('0x1aed')},{'option':_0x3f07aa('0xb86'),'value':_0x3f07aa('0xb9b')}],function(_0x486a24){const _0x1b0ff2=_0x3f07aa;return _0x49cbdd()[_0x1b0ff2('0x737')](_0x486a24[_0x1b0ff2('0x175b')],new RegExp('\x27','g'),'');}),_0x560111[_0x3f07aa('0x677')]=_0x49cbdd()['keyBy']([{'option':'Star','value':'\x27star\x27'},{'option':_0x3f07aa('0x1461'),'value':'\x27thumb\x27'}],function(_0x1c2376){const _0x4091c0=_0x3f07aa;return _0x49cbdd()['replace'](_0x1c2376[_0x4091c0('0x175b')],new RegExp('\x27','g'),'');}),_0x560111['editstate']=_0xe77d6e,_0x560111[_0x3f07aa('0x1634')]=_0xdc2286,_0x560111[_0x3f07aa('0x112f')]=_0x5eabd3,_0x560111[_0x3f07aa('0x2359')]=_0x9b22e0,_0x560111[_0x3f07aa('0xbf4')]=_0x551666,_0x560111[_0x3f07aa('0x130d')]=_0x3aa669,_0x560111[_0x3f07aa('0x8fc')]=_0xef8561,_0x560111[_0x3f07aa('0x2354')]=_0x30f996,_0x560111[_0x3f07aa('0x272d')]=_0x2f94a7,_0x560111['exportSelectedChatWebsites']=_0x4ce2c8,_0x560111[_0x3f07aa('0x11a')]=_0x3b0de5,_0x560111[_0x3f07aa('0x1cd9')]=_0x45b2ca,_0x560111[_0x3f07aa('0x1393')]=_0x1104f0,_0x432bcf[_0x3f07aa('0x1ba2')](_0x3f07aa('0x20bf'))?_0x3b64dd['cmList'][_0x3f07aa('0x1c53')]({'fields':_0x3f07aa('0x12d2'),'sort':_0x3f07aa('0x2aa')})[_0x3f07aa('0x1af5')]['then'](function(_0x7f7d4e){const _0x45a104=_0x3f07aa;_0x560111[_0x45a104('0x2504')]=_0x7f7d4e['rows']||[];})[_0x3f07aa('0x16df')](function(_0x10a5e7){const _0x3eb439=_0x3f07aa;_0xe9a775[_0x3eb439('0x1db9')]({'title':_0x10a5e7['status']?'API:'+_0x10a5e7[_0x3eb439('0x11c5')]+_0x3eb439('0x16e4')+_0x10a5e7[_0x3eb439('0x1833')]:'SYSTEM:GET_LISTS','msg':_0x10a5e7[_0x3eb439('0x1457')]?JSON[_0x3eb439('0x678')](_0x10a5e7['data']):_0x10a5e7[_0x3eb439('0x9b6')]()});}):_0x3b64dd[_0x3f07aa('0x25b')]['get']({'fields':'id,name','sort':_0x3f07aa('0x2aa')})[_0x3f07aa('0x1af5')]['then'](function(_0x42533a){const _0x115f1a=_0x3f07aa;_0x560111[_0x115f1a('0x2504')]=_0x42533a[_0x115f1a('0x2319')]||[];})['then'](function(){const _0x5a70ef=_0x3f07aa;return _0x3b64dd['userProfileSection'][_0x5a70ef('0x1c53')]({'userProfileId':_0x560111['currentUser'][_0x5a70ef('0x1e76')],'sectionId':0x12d})[_0x5a70ef('0x1af5')];})['then'](function(_0x17c77f){const _0x305502=_0x3f07aa,_0x304754=_0x17c77f&&_0x17c77f[_0x305502('0x2319')]?_0x17c77f['rows'][0x0]:null;if(!_0x304754){const _0xe73448=[];let _0x5c58ec=null;_0x560111[_0x305502('0xdb2')]&&(_0x5c58ec=_0x49cbdd()[_0x305502('0xe8e')](_0x560111[_0x305502('0x2504')],{'id':Number(_0x560111[_0x305502('0xdb2')][_0x305502('0x7f8')])}));for(let _0x4258cc=0x0;_0x4258cc<_0x560111[_0x305502('0x2504')][_0x305502('0x1f73')];_0x4258cc++){_0x5c58ec&&_0x560111[_0x305502('0x2504')][_0x4258cc]['id']===_0x5c58ec['id']&&(_0x560111[_0x305502('0x2504')][_0x4258cc][_0x305502('0xe5c')]=![],_0xe73448[_0x305502('0x269f')](_0x560111[_0x305502('0x2504')][_0x4258cc]));}_0x560111[_0x305502('0x2504')]=_0xe73448;}else{if(!_0x304754[_0x305502('0x9e3')])return _0x3b64dd[_0x305502('0x78d')]['get']({'sectionId':_0x304754['id']})['$promise']['then'](function(_0x1abf0a){const _0x4740e8=_0x305502,_0x5d68eb=_0x49cbdd()[_0x4740e8('0x787')](_0x1abf0a[_0x4740e8('0x2319')],function(_0x4f1630){const _0x21d18c=_0x4740e8;return _0x49cbdd()[_0x21d18c('0xe8e')](_0x560111['lists'],{'id':_0x4f1630['resourceId']});});let _0x512610=null;_0x560111['chatWebsite']&&(_0x512610=_0x49cbdd()['find'](_0x560111[_0x4740e8('0x2504')],{'id':Number(_0x560111[_0x4740e8('0xdb2')]['ListId'])}));if(_0x512610&&!_0x49cbdd()[_0x4740e8('0x26f8')](_0x5d68eb,['id',_0x512610['id']])){const _0x355e2f=_0x49cbdd()[_0x4740e8('0xe8e')](_0x560111[_0x4740e8('0x2504')],{'id':_0x512610['id']});_0x355e2f['canSelect']=![],_0x5d68eb[_0x4740e8('0x269f')](_0x355e2f);}_0x560111[_0x4740e8('0x2504')]=_0x5d68eb;});}})[_0x3f07aa('0x16df')](function(_0x1e9914){const _0x2684f3=_0x3f07aa;_0xe9a775[_0x2684f3('0x1db9')]({'title':_0x1e9914[_0x2684f3('0x11c5')]?'API:'+_0x1e9914[_0x2684f3('0x11c5')]+_0x2684f3('0x16e4')+_0x1e9914['statusText']:_0x2684f3('0x1630'),'msg':_0x1e9914[_0x2684f3('0x1457')]?JSON[_0x2684f3('0x678')](_0x1e9914['data']):_0x1e9914[_0x2684f3('0x9b6')]()});}),_0x432bcf[_0x3f07aa('0x1ba2')]('admin')?_0x3b64dd[_0x3f07aa('0x231f')][_0x3f07aa('0x1c53')]({'fields':'id,name','sort':_0x3f07aa('0x2aa'),'IntervalId':'null'})[_0x3f07aa('0x1af5')]['then'](function(_0x2928c3){const _0xf529=_0x3f07aa;_0x560111[_0xf529('0x231f')]=_0x2928c3['rows']||[];})['catch'](function(_0x22a8fc){const _0x67f20a=_0x3f07aa;_0xe9a775[_0x67f20a('0x1db9')]({'title':_0x22a8fc[_0x67f20a('0x11c5')]?_0x67f20a('0x14f7')+_0x22a8fc[_0x67f20a('0x11c5')]+_0x67f20a('0x16e4')+_0x22a8fc[_0x67f20a('0x1833')]:'SYSTEM:GET_INTERVAL','msg':_0x22a8fc[_0x67f20a('0x1457')]?JSON['stringify'](_0x22a8fc[_0x67f20a('0x1457')]):_0x22a8fc[_0x67f20a('0x9b6')]()});}):_0x3b64dd[_0x3f07aa('0x231f')][_0x3f07aa('0x1c53')]({'fields':_0x3f07aa('0x12d2'),'sort':_0x3f07aa('0x2aa'),'IntervalId':_0x3f07aa('0x9bb')})['$promise']['then'](function(_0x1a0dda){const _0x1dccf1=_0x3f07aa;_0x560111[_0x1dccf1('0x231f')]=_0x1a0dda['rows']||[];})[_0x3f07aa('0x17e7')](function(){const _0x480c72=_0x3f07aa;return _0x3b64dd[_0x480c72('0x383')][_0x480c72('0x1c53')]({'userProfileId':_0x560111[_0x480c72('0x197c')]['userProfileId'],'sectionId':0x3ec})['$promise'];})[_0x3f07aa('0x17e7')](function(_0x18cd32){const _0x521c96=_0x3f07aa,_0x4dac59=_0x18cd32&&_0x18cd32['rows']?_0x18cd32[_0x521c96('0x2319')][0x0]:null;if(!_0x4dac59){const _0x41fb69=[];let _0x2575b1=null;_0x560111[_0x521c96('0xdb2')]&&(_0x2575b1=_0x49cbdd()[_0x521c96('0xe8e')](_0x560111[_0x521c96('0x231f')],{'id':Number(_0x560111['chatWebsite'][_0x521c96('0x24a9')])}));for(let _0x2a0f6b=0x0;_0x2a0f6b<_0x560111[_0x521c96('0x231f')][_0x521c96('0x1f73')];_0x2a0f6b++){_0x2575b1&&_0x560111[_0x521c96('0x231f')][_0x2a0f6b]['id']===_0x2575b1['id']&&(_0x560111[_0x521c96('0x231f')][_0x2a0f6b][_0x521c96('0xe5c')]=![],_0x41fb69[_0x521c96('0x269f')](_0x560111[_0x521c96('0x231f')][_0x2a0f6b]));}_0x560111[_0x521c96('0x231f')]=_0x41fb69;}else{if(!_0x4dac59[_0x521c96('0x9e3')])return _0x3b64dd[_0x521c96('0x78d')][_0x521c96('0x1c53')]({'sectionId':_0x4dac59['id']})['$promise']['then'](function(_0x495933){const _0x5640fa=_0x521c96,_0x5940fa=_0x49cbdd()[_0x5640fa('0x787')](_0x495933[_0x5640fa('0x2319')],function(_0x326ffd){const _0x3322ae=_0x5640fa;return _0x49cbdd()[_0x3322ae('0xe8e')](_0x560111[_0x3322ae('0x231f')],{'id':_0x326ffd[_0x3322ae('0x5db')]});});let _0x325b96=null;_0x560111['chatWebsite']&&(_0x325b96=_0x49cbdd()[_0x5640fa('0xe8e')](_0x560111[_0x5640fa('0x231f')],{'id':Number(_0x560111[_0x5640fa('0xdb2')][_0x5640fa('0x24a9')])}));if(_0x325b96&&!_0x49cbdd()[_0x5640fa('0x26f8')](_0x5940fa,['id',_0x325b96['id']])){const _0xaf6b51=_0x49cbdd()[_0x5640fa('0xe8e')](_0x560111[_0x5640fa('0x231f')],{'id':_0x325b96['id']});_0xaf6b51['canSelect']=![],_0x5940fa[_0x5640fa('0x269f')](_0xaf6b51);}_0x560111[_0x5640fa('0x231f')]=_0x5940fa;});}})[_0x3f07aa('0x16df')](function(_0x79ac05){const _0x4679c3=_0x3f07aa;_0xe9a775[_0x4679c3('0x1db9')]({'title':_0x79ac05[_0x4679c3('0x11c5')]?_0x4679c3('0x14f7')+_0x79ac05['status']+_0x4679c3('0x16e4')+_0x79ac05[_0x4679c3('0x1833')]:_0x4679c3('0x1f79'),'msg':_0x79ac05['data']?JSON[_0x4679c3('0x678')](_0x79ac05[_0x4679c3('0x1457')]):_0x79ac05[_0x4679c3('0x9b6')]()});});function _0xe77d6e(_0x106fa9){const _0x7fc35b=_0x3f07aa;_0x15be9a['go']('app.chat.chatWebsites.edit',{'id':_0x106fa9['id'],'chatWebsite':_0x106fa9,'crudPermissions':_0x560111[_0x7fc35b('0x103e')]});}function _0xdc2286(_0x50e55c){const _0x254207=_0x3f07aa;_0x15be9a['go'](_0x254207('0x246a'),{'id':_0x50e55c['id'],'tab':0xa});}function _0x5eabd3(_0x112080){_0x15be9a['go']('app.chat.chatWebsites.edit',{'id':_0x112080['id'],'tab':0xb});}function _0x9b22e0(_0x129b58,_0x3b9894){const _0x5a1a3a=_0x3f07aa;_0x2c7a9a[_0x5a1a3a('0x28e2')]({'controller':'ChatWebsiteagentaddController','controllerAs':'vm','templateUrl':_0x10efd4,'parent':angular['element'](_0x303e42[_0x5a1a3a('0x13aa')]),'targetEvent':_0x3b9894,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x129b58,'chatWebsites':_0x560111[_0x5a1a3a('0x146c')]?_0x560111[_0x5a1a3a('0x146c')][_0x5a1a3a('0x2319')]:[],'crudPermissions':_0x560111['crudPermissions'],'realtime':![]}});}function _0x551666(_0x5ae34c,_0x2487b3){const _0x27e675=_0x3f07aa,_0x4d70f4=_0x2c7a9a['confirm']()[_0x27e675('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x49cbdd()[_0x27e675('0x1c98')](_0x27e675('0xdb2'))+'?')['htmlContent'](''+(_0x5ae34c[_0x27e675('0x2aa')]||_0x27e675('0xdb2'))+_0x27e675('0x1d23')+_0x27e675('0xe9f'))[_0x27e675('0x2095')](_0x27e675('0x832'))[_0x27e675('0x104f')](_0x2487b3)['ok']('OK')[_0x27e675('0x1d47')](_0x27e675('0x28a0'));_0x2c7a9a[_0x27e675('0x28e2')](_0x4d70f4)[_0x27e675('0x17e7')](function(){_0x2f94a7(_0x5ae34c);},function(){const _0x515af8=_0x27e675;console['log'](_0x515af8('0x28a0'));});}let _0x4a9e89=!![],_0x215e5a=0x1;_0x3c22ab[_0x3f07aa('0x620')]('vm.query.filter',function(_0x28fc08,_0x362694){const _0x11b0b8=_0x3f07aa;_0x4a9e89?_0x461b69(function(){_0x4a9e89=![];}):(!_0x362694&&(_0x215e5a=_0x560111['query']['page']),_0x28fc08!==_0x362694&&(_0x560111[_0x11b0b8('0x826')]['page']=0x1),!_0x28fc08&&(_0x560111['query']['page']=_0x215e5a),_0x560111['getChatWebsites']());});function _0x3aa669(_0x2377f8){const _0xa5abb5=_0x3f07aa;_0x560111[_0xa5abb5('0x146c')]=_0x2377f8||{'count':0x0,'rows':[]};}function _0xef8561(){const _0x4ca162=_0x3f07aa;_0x560111['query'][_0x4ca162('0xf19')]=(_0x560111['query'][_0x4ca162('0x115a')]-0x1)*_0x560111['query'][_0x4ca162('0x193b')],_0x432bcf[_0x4ca162('0x1ba2')](_0x4ca162('0x20bf'))?_0x560111[_0x4ca162('0x1691')]=_0x3b64dd[_0x4ca162('0xdb2')][_0x4ca162('0x1c53')](_0x560111[_0x4ca162('0x826')],_0x3aa669)[_0x4ca162('0x1af5')]:(_0x560111[_0x4ca162('0x826')]['id']=_0x560111[_0x4ca162('0xdeb')]['id'],_0x560111[_0x4ca162('0x826')]['section']=_0x4ca162('0x14de'),_0x560111[_0x4ca162('0x1691')]=_0x3b64dd[_0x4ca162('0xdeb')][_0x4ca162('0x2447')](_0x560111[_0x4ca162('0x826')],_0x3aa669)['$promise']);}function _0x30f996(_0x39c30d,_0x127580){const _0x47fdd2=_0x3f07aa;_0x2c7a9a[_0x47fdd2('0x28e2')]({'controller':_0x47fdd2('0xacc'),'controllerAs':'vm','templateUrl':_0x51ae98,'parent':angular['element'](_0x303e42[_0x47fdd2('0x13aa')]),'targetEvent':_0x39c30d,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x127580,'chatWebsites':_0x560111[_0x47fdd2('0x146c')][_0x47fdd2('0x2319')],'license':_0x560111[_0x47fdd2('0x1d11')],'setting':_0x560111['setting'],'crudPermissions':_0x560111[_0x47fdd2('0x103e')]}});}function _0x2f94a7(_0x3ef285){const _0x12cec8=_0x3f07aa;_0x3b64dd[_0x12cec8('0xdb2')][_0x12cec8('0x1da6')]({'id':_0x3ef285['id']})[_0x12cec8('0x1af5')][_0x12cec8('0x17e7')](function(){const _0xc39719=_0x12cec8;_0x49cbdd()[_0xc39719('0x5f3')](_0x560111['chatWebsites'][_0xc39719('0x2319')],{'id':_0x3ef285['id']}),_0x560111[_0xc39719('0x146c')]['count']-=0x1,!_0x560111[_0xc39719('0x146c')][_0xc39719('0x2319')][_0xc39719('0x1f73')]&&_0x560111[_0xc39719('0x8fc')](),_0xe9a775['success']({'title':_0x49cbdd()[_0xc39719('0x1c98')](_0xc39719('0x77a'))+_0xc39719('0x2673'),'msg':_0x3ef285[_0xc39719('0x2aa')]?_0x3ef285[_0xc39719('0x2aa')]+_0xc39719('0x149f'):''});})['catch'](function(_0x1a0d57){const _0x4e039e=_0x12cec8;if(_0x1a0d57[_0x4e039e('0x1457')]&&_0x1a0d57[_0x4e039e('0x1457')]['errors']&&_0x1a0d57[_0x4e039e('0x1457')][_0x4e039e('0x73e')][_0x4e039e('0x1f73')]){_0x560111['errors']=_0x1a0d57[_0x4e039e('0x1457')]['errors']||[{'message':_0x1a0d57[_0x4e039e('0x9b6')](),'type':'SYSTEM:DELETEchatWebsite'}];for(let _0x410e43=0x0;_0x410e43<_0x1a0d57[_0x4e039e('0x1457')]['errors'][_0x4e039e('0x1f73')];_0x410e43++){_0xe9a775['error']({'title':_0x1a0d57['data'][_0x4e039e('0x73e')][_0x410e43][_0x4e039e('0x412')],'msg':_0x1a0d57[_0x4e039e('0x1457')][_0x4e039e('0x73e')][_0x410e43][_0x4e039e('0x1603')]});}}else _0xe9a775[_0x4e039e('0x1db9')]({'title':_0x1a0d57[_0x4e039e('0x11c5')]?'API:'+_0x1a0d57[_0x4e039e('0x11c5')]+_0x4e039e('0x16e4')+_0x1a0d57[_0x4e039e('0x1833')]:_0x4e039e('0xf20'),'msg':_0x1a0d57['data']?JSON[_0x4e039e('0x678')](_0x1a0d57['data'][_0x4e039e('0x1603')]):_0x1a0d57['message']||_0x1a0d57['toString']()});});}function _0x4ce2c8(){const _0x13767a=_0x3f07aa,_0x16f728=angular['copy'](_0x560111[_0x13767a('0x46a')]);return _0x560111[_0x13767a('0x46a')]=[],_0x16f728;}function _0x3b0de5(_0x2162ee){const _0x4eef81=_0x3f07aa,_0x120167=_0x2c7a9a[_0x4eef81('0x1121')]()['title'](_0x4eef81('0x411'))[_0x4eef81('0x211f')](''+_0x560111[_0x4eef81('0x46a')][_0x4eef81('0x1f73')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x4eef81('0x2095')](_0x4eef81('0xffe'))['targetEvent'](_0x2162ee)['ok']('OK')['cancel'](_0x4eef81('0x28a0'));_0x2c7a9a[_0x4eef81('0x28e2')](_0x120167)[_0x4eef81('0x17e7')](function(){const _0x4e445c=_0x4eef81;_0x560111[_0x4e445c('0x46a')][_0x4e445c('0xccd')](function(_0x5920e7){_0x2f94a7(_0x5920e7);}),_0x560111['selectedChatWebsites']=[];});}function _0x45b2ca(){const _0x3b3500=_0x3f07aa;_0x560111[_0x3b3500('0x46a')]=[];}function _0x1104f0(){const _0x3aa555=_0x3f07aa;_0x560111['selectedChatWebsites']=_0x560111[_0x3aa555('0x146c')][_0x3aa555('0x2319')];}}const _0x403446=_0x1ff011;_0x2f56f4[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state','$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x146c'),'chatWebsite',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x2f56f4(_0x2c9755,_0x2cbc5f,_0x540d64,_0x48aaf0,_0x2f4e4e,_0x8dbbc5,_0xec72d,_0x22e6ca,_0x3579d5,_0x8c963c,_0x4e7f35,_0x5aa0df,_0x5d62d9,_0x693c5f){const _0x2d611f=_0x4376d8,_0x373d73=this;_0x373d73['currentUser']=_0x4e7f35[_0x2d611f('0x2831')](),_0x373d73[_0x2d611f('0x73e')]=[],_0x373d73[_0x2d611f('0x1aeb')]=_0x5d62d9,_0x373d73[_0x2d611f('0x1d11')]=_0x5aa0df,_0x373d73[_0x2d611f('0x103e')]=_0x693c5f,_0x373d73['hasModulePermissions']={},_0x373d73[_0x2d611f('0x1572')]=_0x373d73[_0x2d611f('0x1aeb')]&&_0x373d73[_0x2d611f('0x1aeb')][_0x2d611f('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x373d73[_0x2d611f('0x24d3')]='CHAT.EDIT_CHATWEBSITE',_0x373d73[_0x2d611f('0xdb2')]=angular['copy'](_0x3579d5),_0x373d73[_0x2d611f('0x146c')]=_0x22e6ca,_0x373d73['newChatWebsite']=![];!_0x373d73[_0x2d611f('0xdb2')]&&(_0x373d73[_0x2d611f('0xdb2')]={'remote':_0x540d64[_0x2d611f('0x14fe')]()+_0x2d611f('0x14')+_0x540d64[_0x2d611f('0x108')]()+(_0x540d64[_0x2d611f('0x2442')]()?':'+_0x540d64['port']():''),'header_shape':_0x2d611f('0x2042'),'alignment':_0x2d611f('0x1427'),'verticalAlignment':0x1e,'messagesAlignment':'alternate','IntervalId':_0x2d611f('0x9bb'),'timezone':_0x2d611f('0x9bb'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x373d73[_0x2d611f('0x24d3')]='CHAT.NEW_CHATWEBSITE',_0x373d73['newChatWebsite']=!![]);_0x2cbc5f[_0x2d611f('0x16fb')]['id']&&(_0x373d73[_0x2d611f('0xdb2')][_0x2d611f('0x259')]=_0x2cbc5f[_0x2d611f('0x16fb')]['id']);_0x373d73['addNewChatWebsite']=_0x1d27ad,_0x373d73['saveChatWebsite']=_0x46fdc5,_0x373d73[_0x2d611f('0x272d')]=_0x2ed2e9,_0x373d73[_0x2d611f('0x1300')]=_0x2be219,_0x373d73['closeDialog']=_0x2b8a3b,_0x4e7f35[_0x2d611f('0x1ba2')](_0x2d611f('0x20bf'))?_0x8c963c[_0x2d611f('0x25b')][_0x2d611f('0x1c53')]({'fields':'id,name','sort':_0x2d611f('0x2aa')})[_0x2d611f('0x1af5')][_0x2d611f('0x17e7')](function(_0x27ae1f){const _0x3fb5d4=_0x2d611f;_0x373d73[_0x3fb5d4('0x2504')]=_0x27ae1f[_0x3fb5d4('0x2319')]||[];})['catch'](function(_0x943d9a){const _0x95ac57=_0x2d611f;_0xec72d[_0x95ac57('0x1db9')]({'title':_0x943d9a[_0x95ac57('0x11c5')]?_0x95ac57('0x14f7')+_0x943d9a['status']+_0x95ac57('0x16e4')+_0x943d9a[_0x95ac57('0x1833')]:_0x95ac57('0x2410'),'msg':_0x943d9a['data']?JSON[_0x95ac57('0x678')](_0x943d9a['data']):_0x943d9a['toString']()});}):_0x8c963c[_0x2d611f('0x25b')][_0x2d611f('0x1c53')]({'fields':_0x2d611f('0x12d2'),'sort':_0x2d611f('0x2aa')})[_0x2d611f('0x1af5')][_0x2d611f('0x17e7')](function(_0x169810){const _0x4eaa18=_0x2d611f;_0x373d73[_0x4eaa18('0x2504')]=_0x169810[_0x4eaa18('0x2319')]||[];})[_0x2d611f('0x17e7')](function(){const _0x19d133=_0x2d611f;return _0x8c963c['userProfileSection'][_0x19d133('0x1c53')]({'userProfileId':_0x373d73[_0x19d133('0x197c')]['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x2d611f('0x17e7')](function(_0x5a6813){const _0x35139e=_0x2d611f,_0x3eca19=_0x5a6813&&_0x5a6813[_0x35139e('0x2319')]?_0x5a6813['rows'][0x0]:null;if(!_0x3eca19){const _0x57c27d=[];let _0x21e526=null;_0x373d73[_0x35139e('0xdb2')]&&(_0x21e526=_0x49cbdd()[_0x35139e('0xe8e')](_0x373d73[_0x35139e('0x2504')],{'id':Number(_0x373d73[_0x35139e('0xdb2')][_0x35139e('0x7f8')])}));for(let _0xf20d46=0x0;_0xf20d46<_0x373d73[_0x35139e('0x2504')][_0x35139e('0x1f73')];_0xf20d46++){_0x21e526&&_0x373d73[_0x35139e('0x2504')][_0xf20d46]['id']===_0x21e526['id']&&(_0x373d73[_0x35139e('0x2504')][_0xf20d46][_0x35139e('0xe5c')]=![],_0x57c27d[_0x35139e('0x269f')](_0x373d73[_0x35139e('0x2504')][_0xf20d46]));}_0x373d73['lists']=_0x57c27d;}else{if(!_0x3eca19[_0x35139e('0x9e3')])return _0x8c963c[_0x35139e('0x78d')][_0x35139e('0x1c53')]({'sectionId':_0x3eca19['id']})[_0x35139e('0x1af5')][_0x35139e('0x17e7')](function(_0x255ebe){const _0x4266fd=_0x35139e,_0x1a8960=_0x49cbdd()[_0x4266fd('0x787')](_0x255ebe[_0x4266fd('0x2319')],function(_0x13f2ac){const _0x2cb911=_0x4266fd;return _0x49cbdd()[_0x2cb911('0xe8e')](_0x373d73[_0x2cb911('0x2504')],{'id':_0x13f2ac['resourceId']});});let _0x13caa0=null;_0x373d73[_0x4266fd('0xdb2')]&&(_0x13caa0=_0x49cbdd()['find'](_0x373d73[_0x4266fd('0x2504')],{'id':Number(_0x373d73[_0x4266fd('0xdb2')]['ListId'])}));if(_0x13caa0&&!_0x49cbdd()[_0x4266fd('0x26f8')](_0x1a8960,['id',_0x13caa0['id']])){const _0x2af3eb=_0x49cbdd()['find'](_0x373d73[_0x4266fd('0x2504')],{'id':_0x13caa0['id']});_0x2af3eb[_0x4266fd('0xe5c')]=![],_0x1a8960[_0x4266fd('0x269f')](_0x2af3eb);}_0x373d73['lists']=_0x1a8960;});}})[_0x2d611f('0x16df')](function(_0xeb3191){const _0x20c069=_0x2d611f;_0xec72d[_0x20c069('0x1db9')]({'title':_0xeb3191[_0x20c069('0x11c5')]?_0x20c069('0x14f7')+_0xeb3191[_0x20c069('0x11c5')]+_0x20c069('0x16e4')+_0xeb3191[_0x20c069('0x1833')]:_0x20c069('0x1630'),'msg':_0xeb3191['data']?JSON[_0x20c069('0x678')](_0xeb3191[_0x20c069('0x1457')]):_0xeb3191[_0x20c069('0x9b6')]()});}),_0x4e7f35[_0x2d611f('0x1ba2')](_0x2d611f('0x20bf'))?_0x8c963c[_0x2d611f('0x231f')][_0x2d611f('0x1c53')]({'fields':_0x2d611f('0x12d2'),'sort':_0x2d611f('0x2aa'),'IntervalId':_0x2d611f('0x9bb')})[_0x2d611f('0x1af5')][_0x2d611f('0x17e7')](function(_0x20501f){const _0x5c04a9=_0x2d611f;_0x373d73[_0x5c04a9('0x231f')]=_0x20501f[_0x5c04a9('0x2319')]||[];})[_0x2d611f('0x16df')](function(_0x1f8667){const _0x4a5175=_0x2d611f;_0xec72d[_0x4a5175('0x1db9')]({'title':_0x1f8667[_0x4a5175('0x11c5')]?_0x4a5175('0x14f7')+_0x1f8667[_0x4a5175('0x11c5')]+'\x20-\x20'+_0x1f8667[_0x4a5175('0x1833')]:_0x4a5175('0xebd'),'msg':_0x1f8667['data']?JSON[_0x4a5175('0x678')](_0x1f8667['data']):_0x1f8667['toString']()});}):_0x8c963c[_0x2d611f('0x231f')][_0x2d611f('0x1c53')]({'fields':_0x2d611f('0x12d2'),'sort':_0x2d611f('0x2aa'),'IntervalId':'null'})[_0x2d611f('0x1af5')][_0x2d611f('0x17e7')](function(_0x5acfc1){const _0xa5b27c=_0x2d611f;_0x373d73[_0xa5b27c('0x231f')]=_0x5acfc1['rows']||[];})[_0x2d611f('0x17e7')](function(){const _0x3babeb=_0x2d611f;return _0x8c963c[_0x3babeb('0x383')]['get']({'userProfileId':_0x373d73[_0x3babeb('0x197c')][_0x3babeb('0x1e76')],'sectionId':0x3ec})['$promise'];})[_0x2d611f('0x17e7')](function(_0x34f786){const _0x216338=_0x2d611f,_0xc68f30=_0x34f786&&_0x34f786[_0x216338('0x2319')]?_0x34f786[_0x216338('0x2319')][0x0]:null;if(!_0xc68f30){const _0x5a1043=[];let _0x5c80bd=null;_0x373d73[_0x216338('0xdb2')]&&(_0x5c80bd=_0x49cbdd()[_0x216338('0xe8e')](_0x373d73['interval'],{'id':Number(_0x373d73['chatWebsite'][_0x216338('0x24a9')])}));for(let _0x368649=0x0;_0x368649<_0x373d73['interval'][_0x216338('0x1f73')];_0x368649++){_0x5c80bd&&_0x373d73[_0x216338('0x231f')][_0x368649]['id']===_0x5c80bd['id']&&(_0x373d73[_0x216338('0x231f')][_0x368649][_0x216338('0xe5c')]=![],_0x5a1043[_0x216338('0x269f')](_0x373d73['interval'][_0x368649]));}_0x373d73[_0x216338('0x231f')]=_0x5a1043;}else{if(!_0xc68f30[_0x216338('0x9e3')])return _0x8c963c[_0x216338('0x78d')][_0x216338('0x1c53')]({'sectionId':_0xc68f30['id']})[_0x216338('0x1af5')][_0x216338('0x17e7')](function(_0x36e7cb){const _0x4e32cf=_0x216338,_0x2d71ed=_0x49cbdd()['map'](_0x36e7cb[_0x4e32cf('0x2319')],function(_0x444cf5){const _0xbd23d6=_0x4e32cf;return _0x49cbdd()['find'](_0x373d73['interval'],{'id':_0x444cf5[_0xbd23d6('0x5db')]});});let _0x56be8d=null;_0x373d73[_0x4e32cf('0xdb2')]&&(_0x56be8d=_0x49cbdd()['find'](_0x373d73[_0x4e32cf('0x231f')],{'id':Number(_0x373d73[_0x4e32cf('0xdb2')][_0x4e32cf('0x24a9')])}));if(_0x56be8d&&!_0x49cbdd()[_0x4e32cf('0x26f8')](_0x2d71ed,['id',_0x56be8d['id']])){const _0x3f7e86=_0x49cbdd()['find'](_0x373d73['interval'],{'id':_0x56be8d['id']});_0x3f7e86[_0x4e32cf('0xe5c')]=![],_0x2d71ed[_0x4e32cf('0x269f')](_0x3f7e86);}_0x373d73[_0x4e32cf('0x231f')]=_0x2d71ed;});}})['catch'](function(_0xdb9e1){const _0x490548=_0x2d611f;_0xec72d['error']({'title':_0xdb9e1['status']?_0x490548('0x14f7')+_0xdb9e1[_0x490548('0x11c5')]+'\x20-\x20'+_0xdb9e1[_0x490548('0x1833')]:'SYSTEM:GETinterval','msg':_0xdb9e1[_0x490548('0x1457')]?JSON[_0x490548('0x678')](_0xdb9e1[_0x490548('0x1457')]):_0xdb9e1['toString']()});});function _0x1d27ad(){const _0x2b45d6=_0x2d611f;_0x373d73[_0x2b45d6('0x73e')]=[],_0x8c963c[_0x2b45d6('0xdb2')][_0x2b45d6('0x2439')](_0x373d73[_0x2b45d6('0xdb2')])['$promise']['then'](function(_0x50429c){const _0x107d91=_0x2b45d6;_0x373d73['chatWebsites'][_0x107d91('0x1893')](_0x50429c['toJSON']()),_0xec72d[_0x107d91('0x130d')]({'title':_0x107d91('0x265'),'msg':_0x373d73[_0x107d91('0xdb2')][_0x107d91('0x2aa')]?_0x373d73[_0x107d91('0xdb2')][_0x107d91('0x2aa')]+_0x107d91('0x15a'):''}),_0x2b8a3b(_0x50429c);})[_0x2b45d6('0x16df')](function(_0x3bcd50){const _0x41db69=_0x2b45d6;if(_0x3bcd50[_0x41db69('0x1457')]&&_0x3bcd50[_0x41db69('0x1457')][_0x41db69('0x73e')]&&_0x3bcd50[_0x41db69('0x1457')][_0x41db69('0x73e')]['length']){_0x373d73[_0x41db69('0x73e')]=_0x3bcd50[_0x41db69('0x1457')]['errors']||[{'message':_0x3bcd50[_0x41db69('0x9b6')](),'type':_0x41db69('0x20d8')}];for(let _0xd27735=0x0;_0xd27735<_0x3bcd50[_0x41db69('0x1457')][_0x41db69('0x73e')][_0x41db69('0x1f73')];_0xd27735+=0x1){_0xec72d[_0x41db69('0x1db9')]({'title':_0x3bcd50[_0x41db69('0x1457')][_0x41db69('0x73e')][_0xd27735][_0x41db69('0x412')],'msg':_0x3bcd50[_0x41db69('0x1457')]['errors'][_0xd27735][_0x41db69('0x1603')]});}}else _0xec72d[_0x41db69('0x1db9')]({'title':_0x3bcd50[_0x41db69('0x11c5')]?_0x41db69('0x14f7')+_0x3bcd50[_0x41db69('0x11c5')]+_0x41db69('0x16e4')+_0x3bcd50['statusText']:'api.chatWebsite.save','msg':_0x3bcd50[_0x41db69('0x1457')]?JSON[_0x41db69('0x678')](_0x3bcd50[_0x41db69('0x1457')][_0x41db69('0x1603')]):_0x3bcd50[_0x41db69('0x9b6')]()});});}function _0x46fdc5(){const _0x107927=_0x2d611f;_0x373d73[_0x107927('0x73e')]=[],_0x8c963c[_0x107927('0xdb2')]['update']({'id':_0x373d73[_0x107927('0xdb2')]['id']},_0x373d73[_0x107927('0xdb2')])[_0x107927('0x1af5')]['then'](function(_0x26f105){const _0x3adaee=_0x107927,_0x384e91=_0x49cbdd()['find'](_0x373d73[_0x3adaee('0x146c')],{'id':_0x26f105['id']});_0x384e91&&_0x49cbdd()[_0x3adaee('0x1ced')](_0x384e91,_0x49cbdd()[_0x3adaee('0x230a')](_0x26f105[_0x3adaee('0x16b2')](),_0x49cbdd()[_0x3adaee('0x1c0f')](_0x384e91))),_0xec72d[_0x3adaee('0x130d')]({'title':_0x3adaee('0x9a5'),'msg':_0x373d73['chatWebsite'][_0x3adaee('0x2aa')]?_0x373d73['chatWebsite']['name']+_0x3adaee('0x15ca'):''}),_0x2b8a3b(_0x26f105);})[_0x107927('0x16df')](function(_0x19a551){const _0x14be3f=_0x107927;if(_0x19a551['data']&&_0x19a551[_0x14be3f('0x1457')]['errors']&&_0x19a551['data'][_0x14be3f('0x73e')][_0x14be3f('0x1f73')]){_0x373d73['errors']=_0x19a551[_0x14be3f('0x1457')][_0x14be3f('0x73e')]||[{'message':_0x19a551[_0x14be3f('0x9b6')](),'type':_0x14be3f('0x87')}];for(let _0x494256=0x0;_0x494256<_0x19a551[_0x14be3f('0x1457')][_0x14be3f('0x73e')]['length'];_0x494256++){_0xec72d[_0x14be3f('0x1db9')]({'title':_0x19a551[_0x14be3f('0x1457')][_0x14be3f('0x73e')][_0x494256][_0x14be3f('0x412')],'msg':_0x19a551[_0x14be3f('0x1457')][_0x14be3f('0x73e')][_0x494256]['message']});}}else _0xec72d[_0x14be3f('0x1db9')]({'title':_0x19a551[_0x14be3f('0x11c5')]?_0x14be3f('0x14f7')+_0x19a551[_0x14be3f('0x11c5')]+_0x14be3f('0x16e4')+_0x19a551['statusText']:_0x14be3f('0x87'),'msg':_0x19a551[_0x14be3f('0x1457')]?JSON[_0x14be3f('0x678')](_0x19a551['data'][_0x14be3f('0x1603')]):_0x19a551[_0x14be3f('0x9b6')]()});});}function _0x2ed2e9(_0xd4bbf1){const _0x1d056b=_0x2d611f;_0x373d73[_0x1d056b('0x73e')]=[];const _0x412344=_0x48aaf0[_0x1d056b('0x1121')]()[_0x1d056b('0x24d3')](_0x1d056b('0x530'))[_0x1d056b('0xd5')](_0x1d056b('0x193e'))[_0x1d056b('0x2095')](_0x1d056b('0xd70'))['ok']('Delete')['cancel']('Cancel')[_0x1d056b('0x104f')](_0xd4bbf1);_0x48aaf0['show'](_0x412344)[_0x1d056b('0x17e7')](function(){const _0x573559=_0x1d056b;_0x8c963c[_0x573559('0xdb2')]['delete']({'id':_0x373d73[_0x573559('0xdb2')]['id']})[_0x573559('0x1af5')][_0x573559('0x17e7')](function(){const _0x1c35f3=_0x573559;_0x49cbdd()['remove'](_0x373d73['chatWebsites'],{'id':_0x373d73[_0x1c35f3('0xdb2')]['id']}),_0xec72d[_0x1c35f3('0x130d')]({'title':_0x1c35f3('0x19d4'),'msg':(_0x373d73[_0x1c35f3('0xdb2')][_0x1c35f3('0x2aa')]||_0x1c35f3('0xdb2'))+_0x1c35f3('0x149f')}),_0x2b8a3b(_0x373d73[_0x1c35f3('0xdb2')]);})[_0x573559('0x16df')](function(_0x1906be){const _0x5093ea=_0x573559;if(_0x1906be[_0x5093ea('0x1457')]&&_0x1906be[_0x5093ea('0x1457')][_0x5093ea('0x73e')]&&_0x1906be['data'][_0x5093ea('0x73e')][_0x5093ea('0x1f73')]){_0x373d73[_0x5093ea('0x73e')]=_0x1906be[_0x5093ea('0x1457')][_0x5093ea('0x73e')]||[{'message':_0x1906be[_0x5093ea('0x9b6')](),'type':'api.chatWebsite.delete'}];for(let _0x59c84d=0x0;_0x59c84d<_0x1906be[_0x5093ea('0x1457')][_0x5093ea('0x73e')]['length'];_0x59c84d++){_0xec72d[_0x5093ea('0x1db9')]({'title':_0x1906be[_0x5093ea('0x1457')][_0x5093ea('0x73e')][_0x59c84d][_0x5093ea('0x412')],'msg':_0x1906be['data'][_0x5093ea('0x73e')][_0x59c84d][_0x5093ea('0x1603')]});}}else _0xec72d['error']({'title':_0x1906be[_0x5093ea('0x11c5')]?_0x5093ea('0x14f7')+_0x1906be[_0x5093ea('0x11c5')]+_0x5093ea('0x16e4')+_0x1906be['statusText']:_0x5093ea('0x24c9'),'msg':_0x1906be[_0x5093ea('0x1457')]?JSON[_0x5093ea('0x678')](_0x1906be['data'][_0x5093ea('0x1603')]):_0x1906be[_0x5093ea('0x1603')]||_0x1906be['toString']()});});},function(){});}function _0x2be219(_0x4f1d78){return _0x4f1d78===null?undefined:new Date(_0x4f1d78);}function _0x2b8a3b(_0x35ac39){const _0x5cde91=_0x2d611f;_0x48aaf0[_0x5cde91('0x212a')](_0x35ac39);}}const _0x47bb26=_0x2f56f4,_0x59f753=_0x4cf2bc['p']+_0x4376d8('0x1b2d'),_0x4bf3c0=_0x4cf2bc['p']+_0x4376d8('0x187f'),_0x279f93=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/autoreply/dialog.html/dialog.html',_0x4661f1=_0x4cf2bc['p']+_0x4376d8('0x1d87'),_0x279510=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/dialogflow/dialog.html/dialog.html',_0x547fcf=_0x4cf2bc['p']+_0x4376d8('0x194b'),_0x11c194=_0x4cf2bc['p']+_0x4376d8('0x2054'),_0x5a3011=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/interval/dialog.html/dialog.html',_0x41f989=_0x4cf2bc['p']+'src/js/modules/main/apps/chat/views/chatWebsites/edit/apps/noop/dialog.html/dialog.html',_0xf23ebd=_0x4cf2bc['p']+_0x4376d8('0x17cc'),_0x1e69ad=_0x4cf2bc['p']+_0x4376d8('0x1324'),_0x567c73=_0x4cf2bc['p']+_0x4376d8('0xf3f');_0xcd4adb[_0x4376d8('0x1b9c')]=[_0x4376d8('0x212e'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];const _0x338fd4={'agent':_0x59f753,'amazonlex':_0x4bf3c0,'autoreply':_0x279f93,'close':_0x4661f1,'dialogflow':_0x279510,'gotoif':_0x547fcf,'gotop':_0x11c194,'interval':_0x5a3011,'noop':_0x41f989,'queue':_0xf23ebd,'system':_0x1e69ad,'tag':_0x567c73};function _0xcd4adb(_0x49fe24,_0x52c399,_0x54a71e,_0x4a8d01,_0x1be23e){const _0xe5bbab=_0x4376d8,_0x1abdd3=this;_0x1abdd3['currentUser']=_0x1be23e['getCurrentUser'](),_0x1abdd3['chatWebsite']={},_0x1abdd3[_0xe5bbab('0x15f')]={'count':0x0,'rows':[]},_0x1abdd3[_0xe5bbab('0x6d7')]=[],_0x1abdd3[_0xe5bbab('0x103e')],_0x1abdd3[_0xe5bbab('0x826')]={'sort':_0xe5bbab('0x1a6d')},_0x1abdd3[_0xe5bbab('0x970')]=_0x49cbdd()['reject'](_0x49cbdd()['sortBy']([{'app':_0xe5bbab('0xaea'),'appType':_0xe5bbab('0x231f'),'types':['always',_0xe5bbab('0x8fa'),_0xe5bbab('0x134c')],'fields':[],'isApp':![]},{'app':_0xe5bbab('0x1e49'),'appType':_0xe5bbab('0x1e49'),'type':'noop','icon':_0xe5bbab('0x24a0'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0xe5bbab('0x175b'),'type':'text','param':0x0}]},{'app':_0xe5bbab('0xca8'),'appType':_0xe5bbab('0xca8'),'type':_0xe5bbab('0xca8'),'icon':_0xe5bbab('0x24a0'),'interval':_0xe5bbab('0x20c3'),'required':!![],'isApp':!![],'extraApi':[{'name':_0xe5bbab('0xd26'),'field':{'name':_0xe5bbab('0xb0a'),'key':_0xe5bbab('0x2aa')},'route':'variable','filters':{'fields':_0xe5bbab('0x12d2'),'sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0xe5bbab('0x1d36'),'name':_0xe5bbab('0x1115'),'type':_0xe5bbab('0x132f'),'required':!![],'param':0x0},{'title':_0xe5bbab('0xd6a'),'name':_0xe5bbab('0xb0a'),'type':_0xe5bbab('0x1ecc'),'values':_0xe5bbab('0xd26'),'value':_0xe5bbab('0x8e2'),'option':_0xe5bbab('0x8e2'),'defaultValues':[{'value':'\x27\x27','option':_0xe5bbab('0x2576')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':'gotop','type':_0xe5bbab('0x1fb0'),'icon':_0xe5bbab('0x24a0'),'interval':_0xe5bbab('0x20c3'),'isApp':!![],'fields':[{'title':_0xe5bbab('0x182c'),'name':_0xe5bbab('0x1a6d'),'type':_0xe5bbab('0x7b8'),'required':!![],'min':0x0,'param':0x0}]},{'app':'gotoif','appType':_0xe5bbab('0x7a9'),'type':_0xe5bbab('0x7a9'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xe5bbab('0x2380'),'name':_0xe5bbab('0xa67'),'type':_0xe5bbab('0x132f'),'required':!![],'param':0x0},{'title':_0xe5bbab('0xd8b'),'name':'truepriority','type':_0xe5bbab('0x7b8'),'min':0x1,'required':!![],'param':0x1},{'title':_0xe5bbab('0xe9d'),'name':_0xe5bbab('0xe9d'),'type':_0xe5bbab('0x7b8'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0xe5bbab('0x1bd'),'appType':_0xe5bbab('0x1bd'),'foreignKey':'ChatQueueId','type':_0xe5bbab('0x1bd'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0xe5bbab('0x14c4'),'field':{'name':_0xe5bbab('0x1bd'),'key':'name'},'route':_0xe5bbab('0x262e'),'filters':{'fields':_0xe5bbab('0x960'),'sort':'name','nolimit':!![]},'permissions':{'section':0x1f5}}],'fields':[{'title':_0xe5bbab('0x1eb2'),'name':_0xe5bbab('0x1bd'),'type':_0xe5bbab('0x1ecc'),'values':_0xe5bbab('0x14c4'),'value':'queue.name','option':_0xe5bbab('0x661'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':_0xe5bbab('0xd2f'),'type':_0xe5bbab('0x7b8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':'agent','appType':_0xe5bbab('0x684'),'type':'agent','foreignKey':'UserId','icon':_0xe5bbab('0x24a0'),'interval':_0xe5bbab('0x20c3'),'isApp':!![],'extraApi':[{'name':_0xe5bbab('0x25ea'),'field':{'name':'agent','key':_0xe5bbab('0x2aa')},'route':'user','filters':{'fields':'id,name','role':_0xe5bbab('0x684'),'sort':'name','nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0xe5bbab('0x684'),'type':_0xe5bbab('0x1ecc'),'values':_0xe5bbab('0x25ea'),'value':_0xe5bbab('0x274e'),'option':_0xe5bbab('0x274e'),'required':!![],'param':0x0},{'title':_0xe5bbab('0x1ceb'),'name':_0xe5bbab('0xd2f'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0xe5bbab('0xbc9'),'appType':_0xe5bbab('0xbc9'),'type':_0xe5bbab('0xbc9'),'icon':_0xe5bbab('0x24a0'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0xe5bbab('0x16d'),'name':'disposition','type':_0xe5bbab('0x132f'),'required':!![],'param':0x0}]},{'app':_0xe5bbab('0x96e'),'appType':_0xe5bbab('0x96e'),'type':_0xe5bbab('0x96e'),'icon':_0xe5bbab('0x24a0'),'interval':_0xe5bbab('0x20c3'),'isApp':!![],'fields':[{'title':_0xe5bbab('0x12a6'),'name':_0xe5bbab('0x12a6'),'type':_0xe5bbab('0x2897'),'defaultValue':'1','values':[{'option':_0xe5bbab('0x1432'),'value':'1'},{'option':_0xe5bbab('0x768'),'value':'0'}],'required':!![],'param':0x0},{'title':_0xe5bbab('0xa46'),'name':_0xe5bbab('0x132f'),'type':'textarea','required':!![],'param':0x1}]},{'app':_0xe5bbab('0x1132'),'appType':'tag','type':_0xe5bbab('0x1132'),'foreignKey':_0xe5bbab('0x1686'),'icon':_0xe5bbab('0x24a0'),'interval':_0xe5bbab('0x20c3'),'isApp':!![],'extraApi':[{'name':'tags','field':{'name':_0xe5bbab('0x1132'),'key':_0xe5bbab('0x2aa')},'route':_0xe5bbab('0x1132'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0xe5bbab('0xe16'),'name':_0xe5bbab('0x1132'),'type':_0xe5bbab('0x1ecc'),'values':'tags','value':_0xe5bbab('0xf6b'),'option':_0xe5bbab('0xf6b'),'required':!![],'param':0x0}]},{'app':_0xe5bbab('0x2526'),'appType':_0xe5bbab('0x2526'),'type':_0xe5bbab('0x2526'),'icon':'icon-apps','interval':_0xe5bbab('0x20c3'),'isApp':!![],'fields':[{'title':_0xe5bbab('0x1db5'),'name':_0xe5bbab('0xdb5'),'type':_0xe5bbab('0x132f'),'required':!![],'param':0x0},{'title':_0xe5bbab('0x3e1'),'name':'language','type':_0xe5bbab('0x2897'),'defaultValue':_0xe5bbab('0x1ac3'),'values':[{'option':_0xe5bbab('0x6db'),'value':_0xe5bbab('0x2088')},{'option':'English','value':_0xe5bbab('0x1ac3')},{'option':_0xe5bbab('0x1b82'),'value':_0xe5bbab('0x20e6')},{'option':_0xe5bbab('0x2536'),'value':_0xe5bbab('0x11f8')},{'option':'Spanish','value':_0xe5bbab('0x299')},{'option':_0xe5bbab('0x1a76'),'value':'\x27fr\x27'},{'option':_0xe5bbab('0xcc2'),'value':_0xe5bbab('0xeab')},{'option':'Japanese','value':_0xe5bbab('0x10d4')},{'option':_0xe5bbab('0x19a7'),'value':'\x27ko\x27'},{'option':'Dutch','value':_0xe5bbab('0x923')},{'option':_0xe5bbab('0x1534'),'value':'\x27no\x27'},{'option':_0xe5bbab('0x4cd'),'value':_0xe5bbab('0x5ba')},{'option':_0xe5bbab('0x22e8'),'value':_0xe5bbab('0xb54')},{'option':_0xe5bbab('0x991'),'value':_0xe5bbab('0x15bd')},{'option':'Swedish','value':_0xe5bbab('0x292')},{'option':_0xe5bbab('0x47d'),'value':_0xe5bbab('0x2817')},{'option':_0xe5bbab('0x1f20'),'value':_0xe5bbab('0x4f5')},{'option':_0xe5bbab('0x14b1'),'value':'\x27zh-CN\x27'},{'option':_0xe5bbab('0xac5'),'value':'\x27zh-HK\x27'},{'option':_0xe5bbab('0x561'),'value':_0xe5bbab('0x445')}],'required':!![],'param':0x1},{'title':_0xe5bbab('0x1083'),'name':_0xe5bbab('0x1083'),'type':_0xe5bbab('0x6d3'),'maxlength':0xff,'param':0x2,'help':!![]}]},{'app':'dialogflowV2','appType':_0xe5bbab('0x22ac'),'type':_0xe5bbab('0x22ac'),'icon':_0xe5bbab('0x24a0'),'interval':_0xe5bbab('0x20c3'),'isApp':!![],'fields':[{'title':_0xe5bbab('0x27c2'),'name':_0xe5bbab('0x28ab'),'type':_0xe5bbab('0x132f'),'required':!![],'param':0x0},{'title':'ClientEmail','name':_0xe5bbab('0x2814'),'type':_0xe5bbab('0x132f'),'required':!![],'param':0x1},{'title':_0xe5bbab('0x2111'),'name':_0xe5bbab('0x1bc2'),'type':_0xe5bbab('0x6d3'),'required':!![],'param':0x2},{'title':_0xe5bbab('0x3e1'),'name':_0xe5bbab('0x3e1'),'type':_0xe5bbab('0x2897'),'defaultValue':'\x27en\x27','values':[{'value':_0xe5bbab('0x317'),'option':_0xe5bbab('0x121')},{'value':'\x27zh-CN\x27','option':_0xe5bbab('0x14b1')},{'value':_0xe5bbab('0x445'),'option':_0xe5bbab('0x561')},{'value':_0xe5bbab('0x2088'),'option':_0xe5bbab('0x6db')},{'value':'\x27nl\x27','option':_0xe5bbab('0x28cb')},{'value':_0xe5bbab('0x1ac3'),'option':'English'},{'value':'\x27en-AU\x27','option':_0xe5bbab('0x86e')},{'value':'\x27en-CA\x27','option':_0xe5bbab('0x2566')},{'value':'\x27en-GB\x27','option':_0xe5bbab('0x198b')},{'value':_0xe5bbab('0x2613'),'option':_0xe5bbab('0x1b61')},{'value':'\x27en-US\x27','option':_0xe5bbab('0x1a71')},{'value':'\x27fr\x27','option':_0xe5bbab('0x1a76')},{'value':_0xe5bbab('0x12dc'),'option':_0xe5bbab('0x2713')},{'value':_0xe5bbab('0x1e6f'),'option':_0xe5bbab('0x20e1')},{'value':'\x27de\x27','option':'German'},{'value':'\x27hi\x27','option':'Hindi'},{'value':_0xe5bbab('0xeab'),'option':_0xe5bbab('0xcc2')},{'value':_0xe5bbab('0x11f8'),'option':_0xe5bbab('0x2536')},{'value':_0xe5bbab('0x10d4'),'option':_0xe5bbab('0x1f37')},{'value':_0xe5bbab('0x169e'),'option':_0xe5bbab('0x16ad')},{'value':_0xe5bbab('0x2471'),'option':_0xe5bbab('0x1534')},{'value':_0xe5bbab('0x13ff'),'option':_0xe5bbab('0x1d30')},{'value':_0xe5bbab('0xfc1'),'option':_0xe5bbab('0x592')},{'value':_0xe5bbab('0x26b0'),'option':'Portuguese\x20(Portugal)'},{'value':_0xe5bbab('0x15bd'),'option':'Russian'},{'value':_0xe5bbab('0x299'),'option':_0xe5bbab('0xf87')},{'value':_0xe5bbab('0x1075'),'option':_0xe5bbab('0x1b64')},{'value':_0xe5bbab('0x1cec'),'option':_0xe5bbab('0x124b')},{'value':'\x27sw\x27','option':_0xe5bbab('0x1198')},{'value':'\x27th\x27','option':'Thai'},{'value':_0xe5bbab('0x14d5'),'option':_0xe5bbab('0x14d2')},{'value':'\x27uk\x27','option':_0xe5bbab('0x1f20')}],'required':!![],'param':0x3},{'title':_0xe5bbab('0x1083'),'name':_0xe5bbab('0x1083'),'type':_0xe5bbab('0x6d3'),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0xe5bbab('0x16a9'),'appType':'amazonlex','type':'amazonlex','icon':_0xe5bbab('0x24a0'),'interval':_0xe5bbab('0x20c3'),'isApp':!![],'fields':[{'title':_0xe5bbab('0x1452'),'name':_0xe5bbab('0x1452'),'type':_0xe5bbab('0x132f'),'required':!![],'param':0x0},{'title':'secretaccesskey','name':_0xe5bbab('0x1a62'),'type':_0xe5bbab('0x132f'),'required':!![],'param':0x1},{'title':_0xe5bbab('0x1dcf'),'name':_0xe5bbab('0x1dcf'),'type':_0xe5bbab('0x2897'),'defaultValue':_0xe5bbab('0x191f'),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0xe5bbab('0x191f')},{'option':_0xe5bbab('0x1c81'),'value':_0xe5bbab('0x1472')},{'option':'EU\x20(Ireland)','value':_0xe5bbab('0x24a3')},{'option':_0xe5bbab('0x1836'),'value':_0xe5bbab('0x25e8')}],'required':!![],'param':0x2},{'title':_0xe5bbab('0x4a'),'name':_0xe5bbab('0x4a'),'type':'text','required':!![],'param':0x3},{'title':'welcomemessage','name':_0xe5bbab('0x1083'),'type':_0xe5bbab('0x6d3'),'maxlength':0xff,'param':0x4,'help':!![]}]}],[_0xe5bbab('0x643')]),{'isApp':![]}),_0x1abdd3[_0xe5bbab('0x134c')]={'group':{'name':'opt1','pull':'clone'},'animation':0x64,'sort':![]},_0x1abdd3['applications']={'group':{'name':_0xe5bbab('0x22e2'),'put':_0xe5bbab('0x2003')},'animation':0x64,'onAdd':function(_0x207fbd){_0x3b1ab8(_0x207fbd,_0x207fbd['newIndex']);},'onSort':function(){_0x58da04();}},_0x1abdd3[_0xe5bbab('0x161d')]=_0x45374c,_0x1abdd3['deleteConfirm']=_0x3ed3fe,_0x1abdd3[_0xe5bbab('0x2d2')]=_0x788ff,_0x1abdd3[_0xe5bbab('0x1925')]=_0x3b1ab8,_0x1abdd3[_0xe5bbab('0x1374')]=_0x5e72e9,_0x1abdd3[_0xe5bbab('0x8dc')]=_0x580262,_0x1abdd3[_0xe5bbab('0x1d68')]=_0x46ffe0,_0x1abdd3[_0xe5bbab('0x107b')]=_0x58da04,_0x1abdd3[_0xe5bbab('0x1a0d')]=_0x1b04d2;function _0x45374c(_0x3054ce,_0x8f56d7){const _0x114445=_0xe5bbab;_0x1abdd3[_0x114445('0xdb2')]=_0x3054ce,_0x1abdd3[_0x114445('0x103e')]=typeof _0x8f56d7!==_0x114445('0xfad')?_0x8f56d7:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1abdd3['applications']['disabled']=!_0x1abdd3[_0x114445('0x103e')][_0x114445('0x1d34')]?!![]:![],_0x1abdd3[_0x114445('0x826')]['id']=_0x3054ce['id'],_0x1abdd3[_0x114445('0x826')][_0x114445('0xb08')]=!![],_0x1abdd3['query'][_0x114445('0x24c6')]=!![],_0x1abdd3['getChatWebsiteApps'](),_0x1abdd3['getIntervals']();}function _0x3ed3fe(_0x64f9e,_0x2ee800,_0x26cbb5){const _0x5c492e=_0xe5bbab,_0x2ee105=_0x52c399[_0x5c492e('0x1121')]()[_0x5c492e('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x5c492e('0x211f')](_0x5c492e('0xa53')+_0x64f9e[_0x5c492e('0x643')]+''+_0x5c492e('0xe9f'))[_0x5c492e('0x2095')]('delete\x20application')[_0x5c492e('0x104f')](_0x26cbb5)['ok']('OK')[_0x5c492e('0x1d47')](_0x5c492e('0x28a0'));_0x52c399[_0x5c492e('0x28e2')](_0x2ee105)[_0x5c492e('0x17e7')](function(){const _0x387ab5=_0x5c492e;_0x1abdd3['chatWebsiteApps'][_0x387ab5('0x2319')][_0x387ab5('0x2335')](_0x2ee800,0x1),_0x58da04();},function(){const _0x19f91d=_0x5c492e;console[_0x19f91d('0x1d63')](_0x19f91d('0x28a0'));});}function _0x3b1ab8(_0x1ad402,_0x430d06){const _0x516cad=_0xe5bbab;if(_0x1abdd3[_0x516cad('0x15f')][_0x516cad('0x2319')][_0x516cad('0x1f73')]){const _0x622c2f=_0x1abdd3['chatWebsiteApps']['rows'][_0x430d06]?_0x1abdd3[_0x516cad('0x15f')][_0x516cad('0x2319')][_0x430d06]:_0x1abdd3[_0x516cad('0x15f')][_0x516cad('0x2319')][0x0],_0x345fe2=(_0x622c2f[_0x516cad('0x1c54')]||_0x622c2f[_0x516cad('0x643')])[_0x516cad('0x19b')]();_0x52c399[_0x516cad('0x28e2')]({'controller':_0x516cad('0x439')+_0x345fe2+_0x516cad('0x1553'),'controllerAs':'vm','templateUrl':_0x338fd4[_0x345fe2],'parent':angular['element'](_0x54a71e[_0x516cad('0x13aa')]),'targetEvent':_0x1ad402,'clickOutsideToClose':!![],'locals':{'chatWebsiteApp':_0x622c2f,'chatWebsite':_0x1abdd3[_0x516cad('0xdb2')],'crudPermissions':_0x1abdd3['crudPermissions']}})[_0x516cad('0x17e7')](function(_0xce64b){const _0x27b947=_0x516cad;_0xce64b&&(_0xce64b['id']?_0x1abdd3[_0x27b947('0x15f')][_0x27b947('0x2319')][_0x430d06]=_0xce64b:_0x1abdd3[_0x27b947('0x15f')][_0x27b947('0x2319')][_0x27b947('0x2335')](_0x430d06,0x0,_0xce64b),_0x58da04());})[_0x516cad('0x16df')](function(_0x50dde7){const _0x956b69=_0x516cad;_0x50dde7&&_0x4a8d01['error']({'title':_0x50dde7[_0x956b69('0x11c5')]?'API:'+_0x50dde7[_0x956b69('0x11c5')]+_0x956b69('0x16e4')+_0x50dde7['statusText']:_0x956b69('0x2514'),'msg':_0x50dde7[_0x956b69('0x1457')]?JSON[_0x956b69('0x678')](_0x50dde7[_0x956b69('0x1457')]):_0x50dde7[_0x956b69('0x9b6')]()});});}}function _0x5e72e9(_0x382648,_0x3a6f6f){const _0x120714=_0xe5bbab;if(_0x1abdd3[_0x120714('0x15f')][_0x120714('0x2319')][_0x120714('0x1f73')]){const _0x483d6f=_0x1abdd3[_0x120714('0x15f')][_0x120714('0x2319')][_0x3a6f6f]?_0x1abdd3[_0x120714('0x15f')][_0x120714('0x2319')][_0x3a6f6f]:_0x1abdd3['chatWebsiteApps']['rows'][0x0];_0x52c399[_0x120714('0x28e2')]({'controller':_0x120714('0x2263'),'controllerAs':'vm','templateUrl':_0x5a3011,'parent':angular[_0x120714('0x1ce1')](_0x54a71e[_0x120714('0x13aa')]),'targetEvent':_0x382648,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x483d6f[_0x120714('0x231f')],'IntervalId':_0x483d6f[_0x120714('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0x1abdd3['crudPermissions']}})[_0x120714('0x17e7')](function(_0xd9d95a){const _0x30e710=_0x120714;_0xd9d95a&&(_0x483d6f[_0x30e710('0x231f')]=_0xd9d95a[_0x30e710('0x231f')]||_0x30e710('0x20c3'),_0x483d6f['IntervalId']=_0xd9d95a[_0x30e710('0x24a9')]||null,_0x58da04());});}}function _0x58da04(){const _0x5371d4=_0xe5bbab;let _0x36cf9d=0x1,_0x44ca53=[];for(let _0x3687c9=0x0;_0x3687c9<_0x1abdd3[_0x5371d4('0x15f')]['rows']['length'];_0x3687c9++){const _0x28e87d=_0x1abdd3['chatWebsiteApps'][_0x5371d4('0x2319')][_0x3687c9],_0x4a6d8e=[],_0x10ea2e=[];_0x28e87d[_0x5371d4('0x1be1')]=_0x28e87d['interval']!==_0x5371d4('0x20c3')?[_0x28e87d[_0x5371d4('0x231f')]]:_0x28e87d[_0x5371d4('0x24a9')]?_0x49cbdd()[_0x5371d4('0x787')](_0x49cbdd()[_0x5371d4('0x2483')](_0x1abdd3['intervals'][_0x5371d4('0x2319')],{'IntervalId':_0x28e87d[_0x5371d4('0x24a9')]}),_0x5371d4('0x231f')):[],_0x28e87d[_0x5371d4('0x17b3')]=_0x1abdd3['chatWebsite'][_0x5371d4('0x17b3')],_0x28e87d[_0x5371d4('0xee9')]=_0x1abdd3['chatWebsite']['exten'],_0x28e87d[_0x5371d4('0x412')]&&(_0x28e87d[_0x5371d4('0x412')]=_0x28e87d['type']['toLowerCase']()),_0x28e87d[_0x5371d4('0x1a6d')]=_0x4a6d8e['length']?_0x49cbdd()['last'](_0x4a6d8e)[_0x5371d4('0x1a6d')]+0x1:_0x36cf9d,_0x36cf9d=(_0x10ea2e[_0x5371d4('0x1f73')]?_0x49cbdd()[_0x5371d4('0x5e8')](_0x10ea2e)[_0x5371d4('0x1a6d')]:_0x28e87d[_0x5371d4('0x1a6d')])+0x1,_0x44ca53=_0x49cbdd()[_0x5371d4('0xe1b')](_0x44ca53,_0x4a6d8e,[_0x28e87d],_0x10ea2e);}_0x49fe24[_0x5371d4('0xdb2')][_0x5371d4('0x55d')]({'id':_0x1abdd3[_0x5371d4('0xdb2')]['id']},_0x49cbdd()[_0x5371d4('0x1be3')](_0x44ca53,'priority'))['$promise'][_0x5371d4('0x17e7')](function(_0x16ae5e){const _0x230de7=_0x5371d4;_0x1abdd3[_0x230de7('0x15f')][_0x230de7('0x2319')]=_0x16ae5e[_0x230de7('0x2319')];})[_0x5371d4('0x16df')](function(_0xa48b53){console['error'](_0xa48b53);});}function _0x12566d(_0x1ff691){const _0x2cae2b=_0xe5bbab;_0x1abdd3[_0x2cae2b('0x15f')]=_0x1ff691||{'count':0x0,'rows':[]};}function _0x1b04d2(){const _0x170b37=_0xe5bbab;return _0x49fe24[_0x170b37('0x231f')]['get']({'fields':'id,interval,IntervalId'})[_0x170b37('0x1af5')][_0x170b37('0x17e7')](function(_0x5365de){_0x1abdd3['intervals']=_0x5365de;})[_0x170b37('0x16df')](function(_0x58ff03){console['error'](_0x58ff03);});}function _0x788ff(){const _0xe634b4=_0xe5bbab;_0x1abdd3['promise']=_0x49fe24[_0xe634b4('0xdb2')][_0xe634b4('0xd3e')](_0x1abdd3[_0xe634b4('0x826')],_0x12566d)['$promise'];}function _0x580262(_0xf5fb3d){const _0x7441b5=_0xe5bbab;_0x49cbdd()[_0x7441b5('0x5f3')](_0x1abdd3[_0x7441b5('0x15f')][_0x7441b5('0x2319')],{'id':_0xf5fb3d['id']}),_0x58da04(),_0x4a8d01[_0x7441b5('0x130d')]({'title':_0x7441b5('0x22bd'),'msg':_0xf5fb3d[_0x7441b5('0x643')]?_0xf5fb3d['app']+_0x7441b5('0x149f'):''});}function _0x46ffe0(_0x3af9c2){const _0x13a04b=_0xe5bbab,_0x4d945f=_0x52c399['confirm']()[_0x13a04b('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20applications?')[_0x13a04b('0x211f')](_0x13a04b('0xa53')+_0x1abdd3[_0x13a04b('0x6d7')][_0x13a04b('0x1f73')]+_0x13a04b('0x145a')+_0x13a04b('0xe9f'))[_0x13a04b('0x2095')]('delete\x20applications')[_0x13a04b('0x104f')](_0x3af9c2)['ok']('OK')[_0x13a04b('0x1d47')](_0x13a04b('0x28a0'));_0x52c399[_0x13a04b('0x28e2')](_0x4d945f)[_0x13a04b('0x17e7')](function(){const _0x11f031=_0x13a04b;_0x1abdd3['selectedChatWebsiteApps'][_0x11f031('0xccd')](function(_0x5e42ae){const _0x4bf8ef=_0x11f031;_0x49cbdd()[_0x4bf8ef('0x5f3')](_0x1abdd3['chatWebsiteApps'][_0x4bf8ef('0x2319')],{'id':_0x5e42ae['id']});}),_0x1abdd3[_0x11f031('0x6d7')]=[],_0x58da04();});}}const _0x3c006c=_0xcd4adb;_0x3c82fd[_0x4376d8('0x1b9c')]=['$mdDialog','$q','toasty','api',_0x4376d8('0xdb2'),_0x4376d8('0x146c'),_0x4376d8('0x20c8'),'$translate','Auth',_0x4376d8('0x103e')];function _0x3c82fd(_0x3d651e,_0x1e3711,_0x3eb4d5,_0x1ff3d1,_0x13e91b,_0x4813df,_0x5d9f5a,_0x57cafe,_0x23f17,_0x551dfe){const _0x80eb0e=_0x4376d8,_0x48f5fa=this;_0x48f5fa[_0x80eb0e('0x197c')]=_0x23f17[_0x80eb0e('0x2831')](),_0x48f5fa['chatWebsite']=_0x13e91b,_0x48f5fa[_0x80eb0e('0x103e')]=_0x551dfe,_0x48f5fa[_0x80eb0e('0x20c8')]=_0x5d9f5a,_0x48f5fa[_0x80eb0e('0x532')]=[],_0x48f5fa[_0x80eb0e('0x2722')]=[],_0x48f5fa[_0x80eb0e('0xc14')]=[],_0x48f5fa[_0x80eb0e('0x181b')]=[],_0x48f5fa[_0x80eb0e('0x1824')]=[],_0x48f5fa['pendingChanges']=![],_0x48f5fa[_0x80eb0e('0xdf0')]=_0x3efc64,_0x48f5fa[_0x80eb0e('0x257a')]=_0x1a86a8,_0x48f5fa[_0x80eb0e('0x136e')]=_0x2760df,_0x48f5fa['dualMultiselectOptions']={'readOnly':!_0x48f5fa['crudPermissions'][_0x80eb0e('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x80eb0e('0x2aa'),'line1':_0x80eb0e('0xea6'),'line2':[_0x80eb0e('0x2aa'),'internal'],'line3':'','labelAll':_0x57cafe[_0x80eb0e('0x1acc')](_0x80eb0e('0x93b')),'labelSelected':_0x57cafe['instant']('CHAT.SELECTED_AGENTS'),'transferCallback':function(){const _0x387759=_0x80eb0e,_0x5bb6ab=_0x49cbdd()[_0x387759('0x137')](_0x48f5fa['startingSelectedItems'],_0x48f5fa[_0x387759('0xc14')],'id');_0x48f5fa[_0x387759('0x25dc')]=_0x49cbdd()[_0x387759('0x109a')](_0x5bb6ab)?![]:!![];}};function _0x3efc64(){const _0x3e1ae0=_0x80eb0e;return _0x23f17[_0x3e1ae0('0x1ba2')](_0x3e1ae0('0x20bf'))?_0x9463f3()[_0x3e1ae0('0x16df')](function(_0x11cf82){const _0x1730b7=_0x3e1ae0;_0x3eb4d5['error']({'title':_0x11cf82['status']?'API:'+_0x11cf82[_0x1730b7('0x11c5')]+_0x1730b7('0x16e4')+_0x11cf82[_0x1730b7('0x1833')]:_0x1730b7('0x23e0'),'msg':_0x11cf82[_0x1730b7('0x11c5')]?JSON[_0x1730b7('0x678')](_0x11cf82[_0x1730b7('0x1457')]):_0x11cf82[_0x1730b7('0x9b6')]()});}):_0x82b6a4()[_0x3e1ae0('0x17e7')](function(_0x38d446){return _0x48f5fa['section']=_0x38d446,_0x9463f3();})[_0x3e1ae0('0x16df')](function(_0xc6a880){const _0x2f7d18=_0x3e1ae0;_0x3eb4d5['error']({'title':_0xc6a880[_0x2f7d18('0x11c5')]?'API:'+_0xc6a880[_0x2f7d18('0x11c5')]+_0x2f7d18('0x16e4')+_0xc6a880[_0x2f7d18('0x1833')]:'SYSTEM:GET_AGENTS','msg':_0xc6a880[_0x2f7d18('0x11c5')]?JSON[_0x2f7d18('0x678')](_0xc6a880[_0x2f7d18('0x1457')]):_0xc6a880[_0x2f7d18('0x9b6')]()});});}function _0x82b6a4(){return _0x1e3711(function(_0x4e441c,_0x34d0b1){const _0x4b6590=a0_0xd29e;_0x1ff3d1['userProfileSection'][_0x4b6590('0x1c53')]({'userProfileId':_0x48f5fa[_0x4b6590('0x197c')][_0x4b6590('0x1e76')],'name':_0x4b6590('0x2157')})[_0x4b6590('0x1af5')][_0x4b6590('0x17e7')](function(_0x310f75){const _0x1b3500=_0x4b6590,_0x14367d=_0x310f75&&_0x310f75['rows']?_0x310f75[_0x1b3500('0x2319')][0x0]:null;_0x4e441c(_0x14367d);})[_0x4b6590('0x16df')](function(_0x3f4f82){_0x34d0b1(_0x3f4f82);});});}function _0x9463f3(){return _0x1e3711(function(_0xabfb4b,_0x5eeac2){const _0x1d5a87=a0_0xd29e;return _0x723533()[_0x1d5a87('0x17e7')](function(_0x485888){const _0x4029f1=_0x1d5a87;return _0x48f5fa[_0x4029f1('0x532')]=_0x485888[_0x4029f1('0x2319')]?_0x485888[_0x4029f1('0x2319')]:[],_0x23f17[_0x4029f1('0x1ba2')](_0x4029f1('0x20bf'))?_0x485888:_0x48f5fa[_0x4029f1('0x16f8')]?_0x48f5fa[_0x4029f1('0x16f8')][_0x4029f1('0x9e3')]?_0x485888:_0x11f1e0():null;})[_0x1d5a87('0x17e7')](function(_0x13c651){const _0x568f8d=_0x1d5a87,_0x28a8ac=_0x13c651&&_0x13c651[_0x568f8d('0x2319')]?_0x13c651['rows']:[];return _0x48f5fa[_0x568f8d('0x2722')]=_0x49cbdd()[_0x568f8d('0x787')](_0x28a8ac,function(_0x28a753){const _0x4dbcbd=_0x568f8d;return _0x49cbdd()[_0x4dbcbd('0xe8e')](_0x48f5fa[_0x4dbcbd('0x532')],{'id':_0x23f17[_0x4dbcbd('0x1ba2')](_0x4dbcbd('0x20bf'))||_0x48f5fa['section']['autoAssociation']?_0x28a753['id']:_0x28a753[_0x4dbcbd('0x5db')]});}),_0x48f5fa[_0x568f8d('0x181b')]=angular['copy'](_0x48f5fa[_0x568f8d('0x2722')]),_0x48f5fa['items'][_0x568f8d('0xccd')](function(_0x57006e){const _0x599eb5=_0x568f8d,_0x39517d=_0x49cbdd()[_0x599eb5('0xe8e')](_0x48f5fa[_0x599eb5('0x2722')],{'id':_0x57006e['id']});_0x23f17[_0x599eb5('0x1ba2')](_0x599eb5('0x20bf'))?_0x57006e['isValid']=!![]:_0x57006e[_0x599eb5('0xc98')]=typeof _0x39517d!==_0x599eb5('0xfad')?!![]:![];}),_0x12059d();})[_0x1d5a87('0x17e7')](function(_0x109c18){const _0x1e9872=_0x1d5a87,_0x49ef45=_0x109c18&&_0x109c18[_0x1e9872('0x2319')]?_0x109c18[_0x1e9872('0x2319')]:[];_0x48f5fa['selectedItems']=_0x49cbdd()[_0x1e9872('0x787')](_0x49ef45,function(_0x4ce808){const _0x4edb3e=_0x1e9872,_0x21422c=_0x49cbdd()[_0x4edb3e('0xe8e')](_0x48f5fa[_0x4edb3e('0x532')],{'id':_0x4ce808['id']});return _0x21422c[_0x4edb3e('0x122c')]=_0x4ce808['UserChatWebsite']?'penalty\x20'+_0x4ce808[_0x4edb3e('0x1ec2')][_0x4edb3e('0x122c')]:'',_0x21422c[_0x4edb3e('0xe3e')]=typeof _0x4ce808[_0x4edb3e('0xe3e')]!==_0x4edb3e('0xfad')?'<'+_0x4ce808[_0x4edb3e('0xe3e')]+'>':'',_0x21422c;}),_0x48f5fa[_0x1e9872('0x1824')]=angular[_0x1e9872('0x14e5')](_0x48f5fa['selectedItems']),_0x48f5fa[_0x1e9872('0x26f4')][_0x1e9872('0xc14')]=_0x48f5fa[_0x1e9872('0xc14')],_0x48f5fa[_0x1e9872('0x26f4')][_0x1e9872('0x532')]=_0x49cbdd()['differenceBy'](_0x48f5fa[_0x1e9872('0x2722')],_0x48f5fa[_0x1e9872('0x26f4')][_0x1e9872('0xc14')],'id'),_0xabfb4b();})['catch'](function(_0x4cdd34){_0x5eeac2(_0x4cdd34);});});}function _0x11f1e0(){return _0x1e3711(function(_0xf960fb,_0x14a87f){const _0xa7ac34=a0_0xd29e;return _0x1ff3d1['userProfileResource'][_0xa7ac34('0x1c53')]({'sectionId':_0x48f5fa[_0xa7ac34('0x16f8')]['id'],'nolimit':!![]})[_0xa7ac34('0x1af5')][_0xa7ac34('0x17e7')](function(_0x280c40){_0xf960fb(_0x280c40);})['catch'](function(_0x2d38d3){_0x14a87f(_0x2d38d3);});});}function _0x12059d(){return _0x1e3711(function(_0x32cd2b,_0x1c49af){const _0x1beebf=a0_0xd29e;return _0x1ff3d1[_0x1beebf('0xdb2')]['getAgents']({'id':_0x48f5fa['chatWebsite']['id'],'fields':_0x1beebf('0x1152'),'nolimit':!![],'role':_0x1beebf('0x684')})[_0x1beebf('0x1af5')][_0x1beebf('0x17e7')](function(_0x18c76e){_0x32cd2b(_0x18c76e);})[_0x1beebf('0x16df')](function(_0xcc1098){_0x1c49af(_0xcc1098);});});}function _0x723533(){return _0x1e3711(function(_0x4f13f1,_0x33913e){const _0x15402c=a0_0xd29e;return _0x1ff3d1[_0x15402c('0x221e')][_0x15402c('0x1c53')]({'fields':_0x15402c('0x1152'),'nolimit':!![],'role':_0x15402c('0x684')})[_0x15402c('0x1af5')]['then'](function(_0x4aa16d){_0x4f13f1(_0x4aa16d);})[_0x15402c('0x16df')](function(_0xbc4a05){_0x33913e(_0xbc4a05);});});}function _0x4f2191(_0x5d6837){return _0x1e3711(function(_0x4259f9,_0x486e2e){const _0x3cfd61=a0_0xd29e;_0x49cbdd()[_0x3cfd61('0x109a')](_0x5d6837)?_0x4259f9():_0x1ff3d1[_0x3cfd61('0xdb2')][_0x3cfd61('0x1f22')]({'id':_0x48f5fa[_0x3cfd61('0xdb2')]['id'],'ids':_0x49cbdd()[_0x3cfd61('0x787')](_0x5d6837,'id')})[_0x3cfd61('0x1af5')][_0x3cfd61('0x17e7')](function(){_0x4259f9();})[_0x3cfd61('0x16df')](function(_0x1ca58a){_0x486e2e(_0x1ca58a);});});}function _0x94a6e2(_0x57f29a){return _0x1e3711(function(_0x438525,_0x5c0f06){const _0x3f8cf9=a0_0xd29e;_0x49cbdd()[_0x3f8cf9('0x109a')](_0x57f29a)?_0x438525():_0x1ff3d1['chatWebsite'][_0x3f8cf9('0x1625')]({'id':_0x48f5fa[_0x3f8cf9('0xdb2')]['id'],'ids':_0x49cbdd()[_0x3f8cf9('0x787')](_0x57f29a,'id')})[_0x3f8cf9('0x1af5')]['then'](function(){_0x438525();})[_0x3f8cf9('0x16df')](function(_0x3b1abd){_0x5c0f06(_0x3b1abd);});});}function _0x1a86a8(){const _0x11c5a2=_0x80eb0e,_0x67f936=_0x49cbdd()['differenceBy'](_0x48f5fa[_0x11c5a2('0x1824')],_0x48f5fa[_0x11c5a2('0xc14')],'id'),_0x57c84d=_0x49cbdd()[_0x11c5a2('0x1ada')](_0x48f5fa['selectedItems'],_0x48f5fa[_0x11c5a2('0x1824')],'id');return _0x94a6e2(_0x67f936)[_0x11c5a2('0x17e7')](function(){return _0x4f2191(_0x57c84d);})['then'](function(){const _0x2f2e5f=_0x11c5a2;_0x48f5fa[_0x2f2e5f('0x25dc')]=![],_0x48f5fa['startingAllowedItems']=angular['copy'](_0x48f5fa['allowedItems']),_0x48f5fa['startingSelectedItems']=angular[_0x2f2e5f('0x14e5')](_0x48f5fa['selectedItems']),_0x3eb4d5[_0x2f2e5f('0x130d')]({'title':_0x2f2e5f('0x9d1'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x11c5a2('0x16df')](function(_0x5c0053){const _0x1d6223=_0x11c5a2;_0x3eb4d5[_0x1d6223('0x1db9')]({'title':_0x5c0053[_0x1d6223('0x11c5')]?_0x1d6223('0x14f7')+_0x5c0053[_0x1d6223('0x11c5')]+_0x1d6223('0x16e4')+_0x5c0053[_0x1d6223('0x1833')]:_0x1d6223('0x244e'),'msg':_0x5c0053[_0x1d6223('0x11c5')]?JSON[_0x1d6223('0x678')](_0x5c0053[_0x1d6223('0x1457')]):_0x5c0053[_0x1d6223('0x9b6')]()});});}function _0x2760df(){const _0x5cf028=_0x80eb0e;_0x3d651e[_0x5cf028('0x212a')]();}}const _0x347531=_0x3c82fd;_0x201e66[_0x4376d8('0x1b9c')]=['$cookies',_0x4376d8('0x108a')];function _0x201e66(_0x542ddf,_0x10e48a){const _0x227950=_0x4376d8,_0x181160=this,_0x4eaa84=0x8,_0x52a788=_0x4eaa84*0x400*0x400;_0x181160[_0x227950('0xdb2')]={},_0x181160[_0x227950('0x103e')],_0x181160[_0x227950('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x52a788,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x181160[_0x227950('0xbdf')]={'flow':{}},_0x181160[_0x227950('0x1b74')]=![],_0x181160[_0x227950('0xb73')]=_0x3b5c93,_0x181160[_0x227950('0x624')]=_0x1fc1c4,_0x181160[_0x227950('0x1852')]=_0x57aea3,_0x181160[_0x227950('0x161d')]=_0x425d6f;function _0x425d6f(_0x3b8a67,_0x3a4662){const _0x481478=_0x227950;_0x181160[_0x481478('0xdb2')]=angular[_0x481478('0x14e5')](_0x3b8a67),_0x181160[_0x481478('0x103e')]=typeof _0x3a4662!==_0x481478('0xfad')?_0x3a4662:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x181160[_0x481478('0x1713')][_0x481478('0x8cf')]=_0x481478('0x272f')['replace'](_0x481478('0x17cf'),_0x181160[_0x481478('0xdb2')]['id']),_0x181160[_0x481478('0xdb2')][_0x481478('0x1563')]=[];}function _0x3b5c93(_0x591d11){const _0x35fc71=_0x227950,_0x32ccdc=[_0x35fc71('0x1b65'),_0x35fc71('0x5ef')];if(!_0x49cbdd()['includes'](_0x32ccdc,_0x591d11['getExtension']()))return _0x10e48a[_0x35fc71('0x1db9')]({'title':'Invalid\x20extension:\x20'+_0x591d11['getExtension'](),'msg':_0x35fc71('0x836')+_0x32ccdc[_0x35fc71('0x1eba')]()}),![];if(_0x591d11[_0x35fc71('0xf04')]>_0x52a788)return _0x10e48a[_0x35fc71('0x1db9')]({'title':_0x35fc71('0x586'),'msg':_0x35fc71('0x349')+_0x4eaa84+'MB'}),![];const _0x218acc={'id':_0x591d11['uniqueIdentifier'],'file':_0x591d11,'type':_0x35fc71('0x22df')};return _0x181160[_0x35fc71('0xdb2')][_0x35fc71('0x1563')]['unshift'](_0x218acc),!![];}function _0x1fc1c4(){const _0x526f66=_0x227950;_0x181160[_0x526f66('0xbdf')][_0x526f66('0x3bb')]['opts']['headers']={'X-Requested-With':'XMLHttpRequest','Authorization':_0x526f66('0x28e8')+_0x542ddf['get']('motion.token')},_0x181160[_0x526f66('0xbdf')][_0x526f66('0x3bb')][_0x526f66('0x624')]();}function _0x57aea3(_0x44f3dd){const _0x1778b5=_0x227950;angular[_0x1778b5('0xccd')](_0x181160['chatWebsite'][_0x1778b5('0x1563')],function(_0x4d24cc){const _0x30d0dd=_0x1778b5;if(_0x4d24cc['id']===_0x44f3dd[_0x30d0dd('0x22b5')]){const _0x373ea1=new FileReader();_0x373ea1[_0x30d0dd('0x1ea4')](_0x4d24cc[_0x30d0dd('0xc89')][_0x30d0dd('0xc89')]),_0x373ea1[_0x30d0dd('0x2a1')]=function(_0x537cfb){const _0x223c7c=_0x30d0dd;_0x4d24cc[_0x223c7c('0x101e')]=_0x537cfb[_0x223c7c('0x8cf')][_0x223c7c('0x2284')];},_0x4d24cc[_0x30d0dd('0x412')]='image';}});}}const _0x4c8fd8=_0x201e66;_0x37afe2['$inject']=[_0x4376d8('0x14f6'),'$q','toasty','chatWebsiteApp',_0x4376d8('0xdb2'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x37afe2(_0x50cb65,_0x299ed9,_0x3a631c,_0x2caf5c,_0x31b427,_0x11f638,_0x981176,_0xcac15e){const _0x6cd3eb=_0x4376d8,_0x42ad85=this;_0x42ad85[_0x6cd3eb('0x197c')]=_0x981176[_0x6cd3eb('0x2831')](),_0x42ad85[_0x6cd3eb('0x73e')]=[],_0x42ad85['title']=_0x6cd3eb('0x511')+(_0x2caf5c[_0x6cd3eb('0x1c54')]||_0x2caf5c[_0x6cd3eb('0x643')])[_0x6cd3eb('0x14e2')](),_0x42ad85[_0x6cd3eb('0x684')]=angular['copy'](_0x2caf5c),_0x42ad85['crudPermissions']=_0xcac15e,_0x42ad85[_0x6cd3eb('0x6ee')]={};if(_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x2077')])switch(_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1c54')]?_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1c54')][_0x6cd3eb('0x19b')]():_0x42ad85['agent'][_0x6cd3eb('0x643')]['toLowerCase']()){case'custom':break;case _0x6cd3eb('0x2526'):{const _0x27f7f2=_0x42ad85['agent']['appdata'][_0x6cd3eb('0x2007')](',');_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0xdb5')]=_0x27f7f2[0x0],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x3e1')]=_0x27f7f2[0x1],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1083')]=_0x27f7f2[_0x6cd3eb('0x275f')](0x2,_0x27f7f2[_0x6cd3eb('0x1f73')])[_0x6cd3eb('0x1eba')](',');}break;case _0x6cd3eb('0x22ac'):{const _0x17534f=_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x2077')][_0x6cd3eb('0x2007')](',');_0x42ad85['agent'][_0x6cd3eb('0x28ab')]=_0x17534f[0x0],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x2814')]=_0x17534f[0x1],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1bc2')]=_0x17534f[0x2],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x3e1')]=_0x17534f[0x3],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1083')]=_0x17534f[_0x6cd3eb('0x275f')](0x4,_0x17534f[_0x6cd3eb('0x1f73')])[_0x6cd3eb('0x1eba')](',');}break;case _0x6cd3eb('0x16a9'):{const _0x1b5260=_0x42ad85['agent'][_0x6cd3eb('0x2077')]['split'](',');_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1452')]=_0x1b5260[0x0],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1a62')]=_0x1b5260[0x1],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1dcf')]=_0x1b5260[0x2],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x4a')]=_0x1b5260[0x3],_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1083')]=_0x1b5260[_0x6cd3eb('0x275f')](0x4,_0x1b5260[_0x6cd3eb('0x1f73')])[_0x6cd3eb('0x1eba')](',');}break;case'autoreply':{const _0x2c126a=_0x42ad85['agent'][_0x6cd3eb('0x2077')][_0x6cd3eb('0x2007')](',');_0x42ad85['agent'][_0x6cd3eb('0x12a6')]=isNaN(_0x2c126a[0x0])?_0x2c126a[0x0]:parseInt(_0x2c126a[0x0],0xa),_0x42ad85['agent'][_0x6cd3eb('0x132f')]=_0x2c126a['slice'](0x1,_0x2c126a['length'])[_0x6cd3eb('0x1eba')](',');}break;case _0x6cd3eb('0x1603'):_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x132f')]=_0x42ad85[_0x6cd3eb('0x684')]['appdata'];break;case _0x6cd3eb('0xf2e'):_0x42ad85[_0x6cd3eb('0x684')]['name']=_0x42ad85['agent']['appdata']['split']('=')[0x0],_0x42ad85[_0x6cd3eb('0x684')]['value']=_0x42ad85['agent'][_0x6cd3eb('0x2077')][_0x6cd3eb('0x2007')]('=')[0x1];break;case'agi':_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x87c')]=_0x42ad85['agent'][_0x6cd3eb('0x2077')];break;default:{const _0x597aaa=_0x42ad85[_0x6cd3eb('0x684')]['appdata'][_0x6cd3eb('0x2007')](',');_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x684')]=_0x49cbdd()[_0x6cd3eb('0x109a')](_0x597aaa[0x0])?_0x597aaa[0x0]:isNaN(_0x597aaa[0x0])?_0x597aaa[0x0]:parseInt(_0x597aaa[0x0],0xa),_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0xd2f')]=_0x49cbdd()[_0x6cd3eb('0x109a')](_0x597aaa[0x1])?_0x597aaa[0x1]:isNaN(_0x597aaa[0x1])?_0x597aaa[0x1]:parseInt(_0x597aaa[0x1],0xa);}break;}else _0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0xd2f')]=0x1e;_0x42ad85[_0x6cd3eb('0x684')]['type']&&_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x412')][_0x6cd3eb('0x19b')]()===_0x6cd3eb('0x1ade')&&_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x1c54')][_0x6cd3eb('0x19b')]()===_0x6cd3eb('0x1711')&&(_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x11d4')]=_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x2154')]?_0x42ad85['agent'][_0x6cd3eb('0x2154')][_0x6cd3eb('0x2007')]('$')[0x0]:undefined,_0x42ad85[_0x6cd3eb('0x684')]['callerId']=_0x42ad85[_0x6cd3eb('0x684')]['callerID']?_0x6cd3eb('0x1d28')+_0x42ad85[_0x6cd3eb('0x684')][_0x6cd3eb('0x17f4')]:undefined);_0x42ad85[_0x6cd3eb('0x606')]=_0x472852,_0x42ad85['closeDialog']=_0x46cc14,_0x981176[_0x6cd3eb('0x1ba2')](_0x6cd3eb('0x20bf'))?_0x11f638[_0x6cd3eb('0x221e')][_0x6cd3eb('0x1c53')]({'fields':_0x6cd3eb('0x12d2'),'role':'agent','sort':_0x6cd3eb('0x2aa'),'nolimit':_0x6cd3eb('0xe34')})['$promise'][_0x6cd3eb('0x17e7')](function(_0x50a53c){const _0xaf45bd=_0x6cd3eb;_0x42ad85[_0xaf45bd('0x25ea')]=_0x50a53c[_0xaf45bd('0x2319')]||[];})[_0x6cd3eb('0x16df')](function(_0x1541af){const _0x2d624e=_0x6cd3eb;_0x3a631c[_0x2d624e('0x1db9')]({'title':_0x1541af['status']?_0x2d624e('0x14f7')+_0x1541af['status']+_0x2d624e('0x16e4')+_0x1541af[_0x2d624e('0x1833')]:'SYSTEM:GET_AGENTS','msg':_0x1541af[_0x2d624e('0x1457')]?JSON[_0x2d624e('0x678')](_0x1541af[_0x2d624e('0x1457')]):_0x1541af[_0x2d624e('0x9b6')]()});}):_0x11f638[_0x6cd3eb('0x221e')]['get']({'fields':_0x6cd3eb('0x12d2'),'role':'agent','sort':'name','nolimit':_0x6cd3eb('0xe34')})[_0x6cd3eb('0x1af5')][_0x6cd3eb('0x17e7')](function(_0x5a634a){const _0x327703=_0x6cd3eb;_0x42ad85[_0x327703('0x25ea')]=_0x5a634a[_0x327703('0x2319')]||[];})[_0x6cd3eb('0x17e7')](function(){const _0x37ad8f=_0x6cd3eb;return _0x11f638[_0x37ad8f('0x383')]['get']({'userProfileId':_0x42ad85[_0x37ad8f('0x197c')][_0x37ad8f('0x1e76')],'sectionId':0xca})[_0x37ad8f('0x1af5')];})['then'](function(_0x31edd1){const _0x27be25=_0x6cd3eb,_0x1a143e=_0x31edd1&&_0x31edd1[_0x27be25('0x2319')]?_0x31edd1[_0x27be25('0x2319')][0x0]:null;if(!_0x1a143e){const _0x18ab96=[];let _0x26ea63=null;_0x42ad85[_0x27be25('0x684')]&&(_0x26ea63=_0x49cbdd()[_0x27be25('0xe8e')](_0x42ad85[_0x27be25('0x25ea')],{'name':_0x42ad85[_0x27be25('0x684')][_0x27be25('0x684')]}));for(let _0x4912a1=0x0;_0x4912a1<_0x42ad85[_0x27be25('0x25ea')][_0x27be25('0x1f73')];_0x4912a1++){_0x26ea63&&_0x42ad85[_0x27be25('0x25ea')][_0x4912a1]['id']===_0x26ea63['id']&&(_0x42ad85[_0x27be25('0x25ea')][_0x4912a1][_0x27be25('0xe5c')]=![],_0x18ab96[_0x27be25('0x269f')](_0x42ad85['agents'][_0x4912a1]));}_0x42ad85['agents']=_0x18ab96;}else{if(!_0x1a143e[_0x27be25('0x9e3')])return _0x11f638[_0x27be25('0x78d')][_0x27be25('0x1c53')]({'sectionId':_0x1a143e['id']})[_0x27be25('0x1af5')][_0x27be25('0x17e7')](function(_0x39e9b2){const _0x2b70d8=_0x27be25,_0x508a23=_0x49cbdd()[_0x2b70d8('0x787')](_0x39e9b2[_0x2b70d8('0x2319')],function(_0x3adf61){const _0x30b6f3=_0x2b70d8;return _0x49cbdd()[_0x30b6f3('0xe8e')](_0x42ad85[_0x30b6f3('0x25ea')],{'id':_0x3adf61['resourceId']});});let _0x278649=null;_0x42ad85[_0x2b70d8('0x684')]&&(_0x278649=_0x49cbdd()[_0x2b70d8('0xe8e')](_0x42ad85[_0x2b70d8('0x25ea')],{'name':_0x42ad85['agent']['agent']}));if(_0x278649&&!_0x49cbdd()[_0x2b70d8('0x26f8')](_0x508a23,['id',_0x278649['id']])){const _0x3b50ed=_0x49cbdd()['find'](_0x42ad85['agents'],{'id':_0x278649['id']});_0x3b50ed[_0x2b70d8('0xe5c')]=![],_0x508a23[_0x2b70d8('0x269f')](_0x3b50ed);}_0x42ad85[_0x2b70d8('0x25ea')]=_0x508a23;});}})[_0x6cd3eb('0x16df')](function(_0x2743ed){const _0x5219f1=_0x6cd3eb;_0x3a631c[_0x5219f1('0x1db9')]({'title':_0x2743ed[_0x5219f1('0x11c5')]?'API:'+_0x2743ed[_0x5219f1('0x11c5')]+'\x20-\x20'+_0x2743ed[_0x5219f1('0x1833')]:_0x5219f1('0xa37'),'msg':_0x2743ed[_0x5219f1('0x1457')]?JSON[_0x5219f1('0x678')](_0x2743ed['data']):_0x2743ed['toString']()});});function _0x472852(){const _0x3153ff=_0x6cd3eb;_0x42ad85['errors']=[];const _0x2e9242=[];_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x412')]&&_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x412')][_0x3153ff('0x19b')]()===_0x3153ff('0x1ade')&&_0x42ad85[_0x3153ff('0x684')]['appType']===_0x3153ff('0xbdc')&&(_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x2154')]=_0x31b427[_0x3153ff('0x12af')]?(_0x42ad85[_0x3153ff('0x684')]['prefix']||'')+_0x3153ff('0x2265')+_0x31b427[_0x3153ff('0x12af')]+'}':(_0x42ad85[_0x3153ff('0x684')]['prefix']||'')+'${EXTEN}',_0x31b427[_0x3153ff('0x287')]!=='none'?_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x19')]['indexOf'](_0x3153ff('0xa22'))<0x0&&(_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x19')]+=_0x3153ff('0xa22')):_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x19')]=_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x19')][_0x3153ff('0x737')](_0x3153ff('0xa22'),''));const _0x2a0567=_0x49cbdd()[_0x3153ff('0xe8e')](_0x42ad85['agents'],{'name':_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x684')]});_0x2a0567&&(_0x42ad85[_0x3153ff('0x684')]['UserId']=_0x2a0567['id']);if(_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x1c54')]&&_0x42ad85[_0x3153ff('0x684')]['appType']==='custom'){}else switch((_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x643')]||_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x1c54')])[_0x3153ff('0x19b')]()){case _0x3153ff('0xf2e'):_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x2077')]=_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0x2aa')]+'='+_0x42ad85['agent'][_0x3153ff('0x175b')];break;case'custom':break;default:_0x2e9242[0x0]=_0x42ad85[_0x3153ff('0x684')]['agent'],_0x2e9242[0x1]=_0x42ad85[_0x3153ff('0x684')][_0x3153ff('0xd2f')],_0x42ad85['agent'][_0x3153ff('0x2077')]=_0x2e9242[_0x3153ff('0x1eba')](',');}_0x46cc14(_0x42ad85[_0x3153ff('0x684')]);}function _0x46cc14(_0x445e48){_0x50cb65['hide'](_0x445e48);}}const _0x52b6ea=_0x37afe2;_0x3f8643[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x2de'),'chatWebsite',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x3f8643(_0x2dda59,_0x7541c5,_0x6f79d5,_0x4776a5,_0x2f0805,_0x2c67fb,_0x25eb25,_0xb7138d){const _0x51ed3b=_0x4376d8,_0x3a7a8d=this;_0x3a7a8d[_0x51ed3b('0x197c')]=_0x25eb25[_0x51ed3b('0x2831')](),_0x3a7a8d[_0x51ed3b('0x73e')]=[],_0x3a7a8d[_0x51ed3b('0x24d3')]=_0x51ed3b('0x511')+(_0x4776a5['appType']||_0x4776a5[_0x51ed3b('0x643')])[_0x51ed3b('0x14e2')](),_0x3a7a8d['amazonlex']=angular['copy'](_0x4776a5),_0x3a7a8d[_0x51ed3b('0x103e')]=_0xb7138d,_0x3a7a8d[_0x51ed3b('0x6ee')]={};if(_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x2077')])switch(_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1c54')]?_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1c54')][_0x51ed3b('0x19b')]():_0x3a7a8d[_0x51ed3b('0x16a9')]['app']['toLowerCase']()){case _0x51ed3b('0x8fa'):break;case _0x51ed3b('0x2526'):{const _0x66dd38=_0x3a7a8d['amazonlex'][_0x51ed3b('0x2077')][_0x51ed3b('0x2007')](',');_0x3a7a8d[_0x51ed3b('0x16a9')]['key']=_0x66dd38[0x0],_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x3e1')]=_0x66dd38[0x1],_0x3a7a8d[_0x51ed3b('0x16a9')]['welcomemessage']=_0x66dd38[_0x51ed3b('0x275f')](0x2,_0x66dd38[_0x51ed3b('0x1f73')])[_0x51ed3b('0x1eba')](',');}break;case'dialogflowv2':{const _0x372b2a=_0x3a7a8d[_0x51ed3b('0x16a9')]['appdata'][_0x51ed3b('0x2007')](',');_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x28ab')]=_0x372b2a[0x0],_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x2814')]=_0x372b2a[0x1],_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1bc2')]=_0x372b2a[0x2],_0x3a7a8d['amazonlex'][_0x51ed3b('0x3e1')]=_0x372b2a[0x3],_0x3a7a8d['amazonlex'][_0x51ed3b('0x1083')]=_0x372b2a[_0x51ed3b('0x275f')](0x4,_0x372b2a[_0x51ed3b('0x1f73')])['join'](',');}break;case _0x51ed3b('0x16a9'):{const _0xfbf5cb=_0x3a7a8d['amazonlex']['appdata'][_0x51ed3b('0x2007')](',');_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1452')]=_0xfbf5cb[0x0],_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1a62')]=_0xfbf5cb[0x1],_0x3a7a8d['amazonlex'][_0x51ed3b('0x1dcf')]=_0xfbf5cb[0x2],_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x4a')]=_0xfbf5cb[0x3],_0x3a7a8d['amazonlex'][_0x51ed3b('0x1083')]=_0xfbf5cb[_0x51ed3b('0x275f')](0x4,_0xfbf5cb[_0x51ed3b('0x1f73')])[_0x51ed3b('0x1eba')](',');}break;case _0x51ed3b('0x96e'):{const _0x1c23d9=_0x3a7a8d['amazonlex'][_0x51ed3b('0x2077')]['split'](',');_0x3a7a8d['amazonlex'][_0x51ed3b('0x12a6')]=isNaN(_0x1c23d9[0x0])?_0x1c23d9[0x0]:parseInt(_0x1c23d9[0x0],0xa),_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x132f')]=_0x1c23d9[_0x51ed3b('0x275f')](0x1,_0x1c23d9['length'])[_0x51ed3b('0x1eba')](',');}break;case _0x51ed3b('0x1603'):_0x3a7a8d['amazonlex'][_0x51ed3b('0x132f')]=_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x2077')];break;case _0x51ed3b('0xf2e'):_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x2aa')]=_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x2077')]['split']('=')[0x0],_0x3a7a8d['amazonlex']['value']=_0x3a7a8d['amazonlex'][_0x51ed3b('0x2077')]['split']('=')[0x1];break;case _0x51ed3b('0x17c6'):_0x3a7a8d[_0x51ed3b('0x16a9')]['project']=_0x3a7a8d['amazonlex'][_0x51ed3b('0x2077')];break;default:{const _0x2d470d=_0x3a7a8d[_0x51ed3b('0x16a9')]['appdata'][_0x51ed3b('0x2007')](',');_0x3a7a8d['amazonlex'][_0x51ed3b('0x1452')]=_0x49cbdd()[_0x51ed3b('0x109a')](_0x2d470d[0x0])?_0x2d470d[0x0]:isNaN(_0x2d470d[0x0])?_0x2d470d[0x0]:parseInt(_0x2d470d[0x0],0xa),_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1a62')]=_0x49cbdd()[_0x51ed3b('0x109a')](_0x2d470d[0x1])?_0x2d470d[0x1]:isNaN(_0x2d470d[0x1])?_0x2d470d[0x1]:parseInt(_0x2d470d[0x1],0xa),_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1dcf')]=_0x49cbdd()['isEmpty'](_0x2d470d[0x2])?_0x2d470d[0x2]:isNaN(_0x2d470d[0x2])?_0x2d470d[0x2]:parseInt(_0x2d470d[0x2],0xa),_0x3a7a8d[_0x51ed3b('0x16a9')]['botname']=_0x49cbdd()[_0x51ed3b('0x109a')](_0x2d470d[0x3])?_0x2d470d[0x3]:isNaN(_0x2d470d[0x3])?_0x2d470d[0x3]:parseInt(_0x2d470d[0x3],0xa),_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1083')]=_0x49cbdd()['isEmpty'](_0x2d470d[0x4])?_0x2d470d[0x4]:isNaN(_0x2d470d[0x4])?_0x2d470d[0x4]:parseInt(_0x2d470d[0x4],0xa);}break;}else _0x3a7a8d['amazonlex'][_0x51ed3b('0x1dcf')]=_0x51ed3b('0xf85');_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x412')]&&_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x412')][_0x51ed3b('0x19b')]()===_0x51ed3b('0x1ade')&&_0x3a7a8d[_0x51ed3b('0x16a9')]['appType'][_0x51ed3b('0x19b')]()==='outbounddial'&&(_0x3a7a8d[_0x51ed3b('0x16a9')]['prefix']=_0x3a7a8d['amazonlex'][_0x51ed3b('0x2154')]?_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x2154')][_0x51ed3b('0x2007')]('$')[0x0]:undefined,_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x1a8e')]=_0x3a7a8d[_0x51ed3b('0x16a9')][_0x51ed3b('0x17f4')]?_0x51ed3b('0x1d28')+_0x3a7a8d['amazonlex'][_0x51ed3b('0x17f4')]:undefined);_0x3a7a8d[_0x51ed3b('0x606')]=_0xb29f81,_0x3a7a8d[_0x51ed3b('0x136e')]=_0x37804c;function _0xb29f81(){const _0x3edd9a=_0x51ed3b;_0x3a7a8d[_0x3edd9a('0x73e')]=[];const _0x3f7356=[];_0x3a7a8d[_0x3edd9a('0x16a9')][_0x3edd9a('0x412')]&&_0x3a7a8d['amazonlex'][_0x3edd9a('0x412')][_0x3edd9a('0x19b')]()===_0x3edd9a('0x1ade')&&_0x3a7a8d[_0x3edd9a('0x16a9')]['appType']===_0x3edd9a('0xbdc')&&(_0x3a7a8d[_0x3edd9a('0x16a9')][_0x3edd9a('0x2154')]=_0x2f0805[_0x3edd9a('0x12af')]?(_0x3a7a8d[_0x3edd9a('0x16a9')][_0x3edd9a('0x11d4')]||'')+'${EXTEN:'+_0x2f0805[_0x3edd9a('0x12af')]+'}':(_0x3a7a8d[_0x3edd9a('0x16a9')]['prefix']||'')+_0x3edd9a('0x150e'),_0x2f0805[_0x3edd9a('0x287')]!==_0x3edd9a('0x7ee')?_0x3a7a8d['amazonlex'][_0x3edd9a('0x19')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x3a7a8d[_0x3edd9a('0x16a9')]['options']+='U(xcally-mixmonitor-context)'):_0x3a7a8d[_0x3edd9a('0x16a9')][_0x3edd9a('0x19')]=_0x3a7a8d[_0x3edd9a('0x16a9')]['options'][_0x3edd9a('0x737')](_0x3edd9a('0xa22'),''));if(_0x3a7a8d['amazonlex'][_0x3edd9a('0x1c54')]&&_0x3a7a8d['amazonlex'][_0x3edd9a('0x1c54')]===_0x3edd9a('0x8fa')){}else switch((_0x3a7a8d[_0x3edd9a('0x16a9')][_0x3edd9a('0x643')]||_0x3a7a8d['amazonlex'][_0x3edd9a('0x1c54')])[_0x3edd9a('0x19b')]()){case _0x3edd9a('0xf2e'):_0x3a7a8d[_0x3edd9a('0x16a9')][_0x3edd9a('0x2077')]=_0x3a7a8d[_0x3edd9a('0x16a9')]['name']+'='+_0x3a7a8d[_0x3edd9a('0x16a9')]['value'];break;case _0x3edd9a('0x8fa'):break;default:_0x3f7356[0x0]=_0x3a7a8d['amazonlex'][_0x3edd9a('0x1452')],_0x3f7356[0x1]=_0x3a7a8d[_0x3edd9a('0x16a9')][_0x3edd9a('0x1a62')],_0x3f7356[0x2]=_0x3a7a8d[_0x3edd9a('0x16a9')]['lexregion'],_0x3f7356[0x3]=_0x3a7a8d[_0x3edd9a('0x16a9')][_0x3edd9a('0x4a')],_0x3f7356[0x4]=_0x3a7a8d['amazonlex'][_0x3edd9a('0x1083')],_0x3a7a8d['amazonlex'][_0x3edd9a('0x2077')]=_0x3f7356[_0x3edd9a('0x1eba')](',');}_0x37804c(_0x3a7a8d['amazonlex']);}function _0x37804c(_0xc63090){_0x2dda59['hide'](_0xc63090);}}const _0x415a48=_0x3f8643;_0x141c2d['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x2de'),_0x4376d8('0xdb2'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x141c2d(_0x5c64ef,_0x396a59,_0x421d78,_0x92f0f,_0x2a79d7,_0x14b569,_0x371de9,_0x52a1b2){const _0x119f00=_0x4376d8,_0x3aa617=this;_0x3aa617['currentUser']=_0x371de9[_0x119f00('0x2831')](),_0x3aa617[_0x119f00('0x73e')]=[],_0x3aa617['title']=_0x119f00('0x511')+(_0x92f0f[_0x119f00('0x1c54')]||_0x92f0f['app'])[_0x119f00('0x14e2')](),_0x3aa617[_0x119f00('0x96e')]=angular[_0x119f00('0x14e5')](_0x92f0f),_0x3aa617[_0x119f00('0x103e')]=_0x52a1b2,_0x3aa617['hasModulePermissions']={};if(_0x3aa617['autoreply']['appdata'])switch(_0x3aa617[_0x119f00('0x96e')]['appType']?_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x1c54')][_0x119f00('0x19b')]():_0x3aa617[_0x119f00('0x96e')]['app'][_0x119f00('0x19b')]()){case _0x119f00('0x8fa'):break;case _0x119f00('0x2526'):{const _0x673fc=_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x2077')][_0x119f00('0x2007')](',');_0x3aa617['autoreply'][_0x119f00('0xdb5')]=_0x673fc[0x0],_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x3e1')]=_0x673fc[0x1],_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x1083')]=_0x673fc[_0x119f00('0x275f')](0x2,_0x673fc[_0x119f00('0x1f73')])['join'](',');}break;case _0x119f00('0x22ac'):{const _0x584d46=_0x3aa617['autoreply'][_0x119f00('0x2077')][_0x119f00('0x2007')](',');_0x3aa617['autoreply'][_0x119f00('0x28ab')]=_0x584d46[0x0],_0x3aa617['autoreply'][_0x119f00('0x2814')]=_0x584d46[0x1],_0x3aa617[_0x119f00('0x96e')]['privateKey']=_0x584d46[0x2],_0x3aa617[_0x119f00('0x96e')]['language']=_0x584d46[0x3],_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x1083')]=_0x584d46[_0x119f00('0x275f')](0x4,_0x584d46[_0x119f00('0x1f73')])[_0x119f00('0x1eba')](',');}break;case _0x119f00('0x16a9'):{const _0x5d14a7=_0x3aa617['autoreply']['appdata'][_0x119f00('0x2007')](',');_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x1452')]=_0x5d14a7[0x0],_0x3aa617[_0x119f00('0x96e')]['secretaccesskey']=_0x5d14a7[0x1],_0x3aa617['autoreply']['lexregion']=_0x5d14a7[0x2],_0x3aa617['autoreply']['botname']=_0x5d14a7[0x3],_0x3aa617[_0x119f00('0x96e')]['welcomemessage']=_0x5d14a7[_0x119f00('0x275f')](0x4,_0x5d14a7[_0x119f00('0x1f73')])[_0x119f00('0x1eba')](',');}break;case'autoreply':{const _0x5e4cdc=_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x2077')][_0x119f00('0x2007')](',');_0x3aa617[_0x119f00('0x96e')]['times']=isNaN(_0x5e4cdc[0x0])?_0x5e4cdc[0x0]:parseInt(_0x5e4cdc[0x0],0xa),_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x132f')]=_0x5e4cdc[_0x119f00('0x275f')](0x1,_0x5e4cdc['length'])['join'](',');}break;case'message':_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x132f')]=_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x2077')];break;case _0x119f00('0xf2e'):_0x3aa617[_0x119f00('0x96e')]['name']=_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x2077')]['split']('=')[0x0],_0x3aa617['autoreply'][_0x119f00('0x175b')]=_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x2077')][_0x119f00('0x2007')]('=')[0x1];break;case _0x119f00('0x17c6'):_0x3aa617['autoreply'][_0x119f00('0x87c')]=_0x3aa617['autoreply'][_0x119f00('0x2077')];break;default:{const _0x43071d=_0x3aa617['autoreply'][_0x119f00('0x2077')]['split'](',');_0x3aa617[_0x119f00('0x96e')]['times']=_0x49cbdd()[_0x119f00('0x109a')](_0x43071d[0x0])?_0x43071d[0x0]:isNaN(_0x43071d[0x0])?_0x43071d[0x0]:parseInt(_0x43071d[0x0],0xa),_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x132f')]=_0x49cbdd()[_0x119f00('0x109a')](_0x43071d[0x1])?_0x43071d[0x1]:isNaN(_0x43071d[0x1])?_0x43071d[0x1]:parseInt(_0x43071d[0x1],0xa);}break;}else _0x3aa617[_0x119f00('0x96e')][_0x119f00('0x12a6')]=0x1;_0x3aa617[_0x119f00('0x96e')]['type']&&_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x412')][_0x119f00('0x19b')]()===_0x119f00('0x1ade')&&_0x3aa617['autoreply'][_0x119f00('0x1c54')][_0x119f00('0x19b')]()==='outbounddial'&&(_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x11d4')]=_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x2154')]?_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x2154')][_0x119f00('0x2007')]('$')[0x0]:undefined,_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x1a8e')]=_0x3aa617[_0x119f00('0x96e')][_0x119f00('0x17f4')]?_0x119f00('0x1d28')+_0x3aa617[_0x119f00('0x96e')]['callerID']:undefined);_0x3aa617[_0x119f00('0x606')]=_0x50e495,_0x3aa617[_0x119f00('0x136e')]=_0x580624;function _0x50e495(){const _0x199245=_0x119f00;_0x3aa617[_0x199245('0x73e')]=[];const _0xee0d6b=[];_0x3aa617[_0x199245('0x96e')][_0x199245('0x412')]&&_0x3aa617[_0x199245('0x96e')]['type']['toLowerCase']()===_0x199245('0x1ade')&&_0x3aa617[_0x199245('0x96e')]['appType']==='outboundDial'&&(_0x3aa617['autoreply'][_0x199245('0x2154')]=_0x2a79d7[_0x199245('0x12af')]?(_0x3aa617[_0x199245('0x96e')]['prefix']||'')+_0x199245('0x2265')+_0x2a79d7[_0x199245('0x12af')]+'}':(_0x3aa617['autoreply'][_0x199245('0x11d4')]||'')+'${EXTEN}',_0x2a79d7[_0x199245('0x287')]!==_0x199245('0x7ee')?_0x3aa617[_0x199245('0x96e')]['options']['indexOf'](_0x199245('0xa22'))<0x0&&(_0x3aa617[_0x199245('0x96e')][_0x199245('0x19')]+=_0x199245('0xa22')):_0x3aa617[_0x199245('0x96e')][_0x199245('0x19')]=_0x3aa617[_0x199245('0x96e')][_0x199245('0x19')][_0x199245('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x3aa617[_0x199245('0x96e')]['appType']&&_0x3aa617[_0x199245('0x96e')][_0x199245('0x1c54')]==='custom'){}else switch((_0x3aa617[_0x199245('0x96e')]['app']||_0x3aa617[_0x199245('0x96e')][_0x199245('0x1c54')])[_0x199245('0x19b')]()){case _0x199245('0xf2e'):_0x3aa617[_0x199245('0x96e')][_0x199245('0x2077')]=_0x3aa617[_0x199245('0x96e')]['name']+'='+_0x3aa617[_0x199245('0x96e')][_0x199245('0x175b')];break;case _0x199245('0x8fa'):break;default:_0xee0d6b[0x0]=_0x3aa617[_0x199245('0x96e')][_0x199245('0x12a6')],_0xee0d6b[0x1]=_0x3aa617[_0x199245('0x96e')]['text'],_0x3aa617[_0x199245('0x96e')][_0x199245('0x2077')]=_0xee0d6b[_0x199245('0x1eba')](',');}_0x580624(_0x3aa617['autoreply']);}function _0x580624(_0x49d892){_0x5c64ef['hide'](_0x49d892);}}const _0x272e45=_0x141c2d;_0x146353[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty','chatWebsiteApp',_0x4376d8('0xdb2'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x146353(_0x2e7b4f,_0x479a73,_0x1fb228,_0x3082bd,_0x1e68a8,_0x34e99e,_0x384107,_0x493038){const _0x30a1be=_0x4376d8,_0x28f7b4=this;_0x28f7b4['currentUser']=_0x384107[_0x30a1be('0x2831')](),_0x28f7b4['errors']=[],_0x28f7b4[_0x30a1be('0x24d3')]='CHAT.EDIT_'+(_0x3082bd[_0x30a1be('0x1c54')]||_0x3082bd[_0x30a1be('0x643')])['toUpperCase'](),_0x28f7b4[_0x30a1be('0xbc9')]=angular[_0x30a1be('0x14e5')](_0x3082bd),_0x28f7b4['crudPermissions']=_0x493038,_0x28f7b4[_0x30a1be('0x6ee')]={};if(_0x28f7b4[_0x30a1be('0xbc9')]['appdata'])switch(_0x28f7b4[_0x30a1be('0xbc9')]['appType']?_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1c54')][_0x30a1be('0x19b')]():_0x28f7b4['close'][_0x30a1be('0x643')][_0x30a1be('0x19b')]()){case _0x30a1be('0x8fa'):break;case _0x30a1be('0x2526'):{const _0x248fb2=_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x2077')][_0x30a1be('0x2007')](',');_0x28f7b4['close'][_0x30a1be('0xdb5')]=_0x248fb2[0x0],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x3e1')]=_0x248fb2[0x1],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1083')]=_0x248fb2[_0x30a1be('0x275f')](0x2,_0x248fb2[_0x30a1be('0x1f73')])[_0x30a1be('0x1eba')](',');}break;case _0x30a1be('0x22ac'):{const _0x24eaea=_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x2077')][_0x30a1be('0x2007')](',');_0x28f7b4[_0x30a1be('0xbc9')]['projectId']=_0x24eaea[0x0],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x2814')]=_0x24eaea[0x1],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1bc2')]=_0x24eaea[0x2],_0x28f7b4['close'][_0x30a1be('0x3e1')]=_0x24eaea[0x3],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1083')]=_0x24eaea[_0x30a1be('0x275f')](0x4,_0x24eaea[_0x30a1be('0x1f73')])[_0x30a1be('0x1eba')](',');}break;case _0x30a1be('0x16a9'):{const _0x5744e5=_0x28f7b4['close'][_0x30a1be('0x2077')]['split'](',');_0x28f7b4['close'][_0x30a1be('0x1452')]=_0x5744e5[0x0],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1a62')]=_0x5744e5[0x1],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1dcf')]=_0x5744e5[0x2],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x4a')]=_0x5744e5[0x3],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1083')]=_0x5744e5[_0x30a1be('0x275f')](0x4,_0x5744e5[_0x30a1be('0x1f73')])[_0x30a1be('0x1eba')](',');}break;case _0x30a1be('0x96e'):{const _0x3f0d5a=_0x28f7b4[_0x30a1be('0xbc9')]['appdata'][_0x30a1be('0x2007')](',');_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x12a6')]=isNaN(_0x3f0d5a[0x0])?_0x3f0d5a[0x0]:parseInt(_0x3f0d5a[0x0],0xa),_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x132f')]=_0x3f0d5a[_0x30a1be('0x275f')](0x1,_0x3f0d5a['length'])[_0x30a1be('0x1eba')](',');}break;case _0x30a1be('0x1603'):_0x28f7b4['close']['text']=_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x2077')];break;case'set':_0x28f7b4[_0x30a1be('0xbc9')]['name']=_0x28f7b4['close'][_0x30a1be('0x2077')][_0x30a1be('0x2007')]('=')[0x0],_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x175b')]=_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x2077')][_0x30a1be('0x2007')]('=')[0x1];break;case _0x30a1be('0x17c6'):_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x87c')]=_0x28f7b4[_0x30a1be('0xbc9')]['appdata'];break;default:{const _0xc7ff1d=_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x2077')][_0x30a1be('0x2007')](',');_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1f27')]=_0x49cbdd()[_0x30a1be('0x109a')](_0xc7ff1d[0x0])?_0xc7ff1d[0x0]:isNaN(_0xc7ff1d[0x0])?_0xc7ff1d[0x0]:parseInt(_0xc7ff1d[0x0],0xa);}break;}else{}_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x412')]&&_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x412')][_0x30a1be('0x19b')]()===_0x30a1be('0x1ade')&&_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x1c54')][_0x30a1be('0x19b')]()===_0x30a1be('0x1711')&&(_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x11d4')]=_0x28f7b4['close'][_0x30a1be('0x2154')]?_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x2154')]['split']('$')[0x0]:undefined,_0x28f7b4[_0x30a1be('0xbc9')]['callerId']=_0x28f7b4[_0x30a1be('0xbc9')]['callerID']?_0x30a1be('0x1d28')+_0x28f7b4[_0x30a1be('0xbc9')][_0x30a1be('0x17f4')]:undefined);_0x28f7b4[_0x30a1be('0x606')]=_0x2f6d2e,_0x28f7b4[_0x30a1be('0x136e')]=_0x30cd47;function _0x2f6d2e(){const _0x1130cc=_0x30a1be;_0x28f7b4[_0x1130cc('0x73e')]=[];const _0x123629=[];_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x412')]&&_0x28f7b4[_0x1130cc('0xbc9')]['type'][_0x1130cc('0x19b')]()===_0x1130cc('0x1ade')&&_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x1c54')]===_0x1130cc('0xbdc')&&(_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x2154')]=_0x1e68a8['cutdigits']?(_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x11d4')]||'')+_0x1130cc('0x2265')+_0x1e68a8[_0x1130cc('0x12af')]+'}':(_0x28f7b4[_0x1130cc('0xbc9')]['prefix']||'')+_0x1130cc('0x150e'),_0x1e68a8[_0x1130cc('0x287')]!=='none'?_0x28f7b4[_0x1130cc('0xbc9')]['options'][_0x1130cc('0x2567')](_0x1130cc('0xa22'))<0x0&&(_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x19')]+=_0x1130cc('0xa22')):_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x19')]=_0x28f7b4[_0x1130cc('0xbc9')]['options'][_0x1130cc('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x1c54')]&&_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x1c54')]===_0x1130cc('0x8fa')){}else switch((_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x643')]||_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x1c54')])[_0x1130cc('0x19b')]()){case _0x1130cc('0xf2e'):_0x28f7b4[_0x1130cc('0xbc9')]['appdata']=_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x2aa')]+'='+_0x28f7b4[_0x1130cc('0xbc9')][_0x1130cc('0x175b')];break;case _0x1130cc('0x8fa'):break;default:_0x123629[0x0]=_0x28f7b4['close'][_0x1130cc('0x1f27')],_0x28f7b4['close'][_0x1130cc('0x2077')]=_0x123629[_0x1130cc('0x1eba')](',');}_0x30cd47(_0x28f7b4['close']);}function _0x30cd47(_0x2fd8e2){const _0x3afcfc=_0x30a1be;_0x2e7b4f[_0x3afcfc('0x212a')](_0x2fd8e2);}}const _0x47ac44=_0x146353;_0x2e980d['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x2de'),_0x4376d8('0xdb2'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x2e980d(_0xfba59c,_0x17f088,_0x33f1ff,_0x2294df,_0x72b034,_0x480a2c,_0x23a2c5,_0x33a26){const _0x880a3f=_0x4376d8,_0x3f3263=this;_0x3f3263[_0x880a3f('0x197c')]=_0x23a2c5[_0x880a3f('0x2831')](),_0x3f3263[_0x880a3f('0x73e')]=[],_0x3f3263[_0x880a3f('0x24d3')]=_0x880a3f('0x511')+(_0x2294df['appType']||_0x2294df[_0x880a3f('0x643')])[_0x880a3f('0x14e2')](),_0x3f3263['dialogflow']=angular['copy'](_0x2294df),_0x3f3263[_0x880a3f('0x103e')]=_0x33a26,_0x3f3263[_0x880a3f('0x6ee')]={};if(_0x3f3263['dialogflow']['appdata'])switch(_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x1c54')]?_0x3f3263['dialogflow'][_0x880a3f('0x1c54')][_0x880a3f('0x19b')]():_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x643')][_0x880a3f('0x19b')]()){case _0x880a3f('0x8fa'):break;case _0x880a3f('0x2526'):{const _0x41a305=_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x2077')][_0x880a3f('0x2007')](',');_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0xdb5')]=_0x41a305[0x0],_0x3f3263[_0x880a3f('0x2526')]['language']=_0x41a305[0x1],_0x3f3263[_0x880a3f('0x2526')]['welcomemessage']=_0x41a305[_0x880a3f('0x275f')](0x2,_0x41a305[_0x880a3f('0x1f73')])['join'](',');}break;case'dialogflowv2':{const _0x45f20f=_0x3f3263['dialogflow'][_0x880a3f('0x2077')][_0x880a3f('0x2007')](',');_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x28ab')]=_0x45f20f[0x0],_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x2814')]=_0x45f20f[0x1],_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x1bc2')]=_0x45f20f[0x2],_0x3f3263['dialogflow'][_0x880a3f('0x3e1')]=_0x45f20f[0x3],_0x3f3263['dialogflow']['welcomemessage']=_0x45f20f[_0x880a3f('0x275f')](0x4,_0x45f20f[_0x880a3f('0x1f73')])[_0x880a3f('0x1eba')](',');}break;case'amazonlex':{const _0x365c22=_0x3f3263['dialogflow'][_0x880a3f('0x2077')][_0x880a3f('0x2007')](',');_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x1452')]=_0x365c22[0x0],_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x1a62')]=_0x365c22[0x1],_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x1dcf')]=_0x365c22[0x2],_0x3f3263[_0x880a3f('0x2526')]['botname']=_0x365c22[0x3],_0x3f3263[_0x880a3f('0x2526')]['welcomemessage']=_0x365c22[_0x880a3f('0x275f')](0x4,_0x365c22[_0x880a3f('0x1f73')])[_0x880a3f('0x1eba')](',');}break;case'autoreply':{const _0x3b4d90=_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x2077')][_0x880a3f('0x2007')](',');_0x3f3263['dialogflow'][_0x880a3f('0x12a6')]=isNaN(_0x3b4d90[0x0])?_0x3b4d90[0x0]:parseInt(_0x3b4d90[0x0],0xa),_0x3f3263['dialogflow'][_0x880a3f('0x132f')]=_0x3b4d90[_0x880a3f('0x275f')](0x1,_0x3b4d90[_0x880a3f('0x1f73')])[_0x880a3f('0x1eba')](',');}break;case'message':_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x132f')]=_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x2077')];break;case'set':_0x3f3263[_0x880a3f('0x2526')]['name']=_0x3f3263[_0x880a3f('0x2526')]['appdata'][_0x880a3f('0x2007')]('=')[0x0],_0x3f3263['dialogflow']['value']=_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x2077')][_0x880a3f('0x2007')]('=')[0x1];break;case'agi':_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x87c')]=_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x2077')];break;default:{const _0xbcf17=_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x2077')]['split'](',');_0x3f3263[_0x880a3f('0x2526')]['key']=_0x49cbdd()[_0x880a3f('0x109a')](_0xbcf17[0x0])?_0xbcf17[0x0]:isNaN(_0xbcf17[0x0])?_0xbcf17[0x0]:parseInt(_0xbcf17[0x0],0xa),_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x3e1')]=_0x49cbdd()[_0x880a3f('0x109a')](_0xbcf17[0x1])?_0xbcf17[0x1]:isNaN(_0xbcf17[0x1])?_0xbcf17[0x1]:parseInt(_0xbcf17[0x1],0xa),_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x1083')]=_0x49cbdd()[_0x880a3f('0x109a')](_0xbcf17[0x2])?_0xbcf17[0x2]:isNaN(_0xbcf17[0x2])?_0xbcf17[0x2]:parseInt(_0xbcf17[0x2],0xa);}break;}else _0x3f3263[_0x880a3f('0x2526')]['language']='en';_0x3f3263['dialogflow'][_0x880a3f('0x412')]&&_0x3f3263['dialogflow'][_0x880a3f('0x412')][_0x880a3f('0x19b')]()===_0x880a3f('0x1ade')&&_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x1c54')][_0x880a3f('0x19b')]()==='outbounddial'&&(_0x3f3263[_0x880a3f('0x2526')]['prefix']=_0x3f3263['dialogflow'][_0x880a3f('0x2154')]?_0x3f3263[_0x880a3f('0x2526')]['phone']['split']('$')[0x0]:undefined,_0x3f3263['dialogflow'][_0x880a3f('0x1a8e')]=_0x3f3263['dialogflow'][_0x880a3f('0x17f4')]?'CALLERID(all)='+_0x3f3263[_0x880a3f('0x2526')][_0x880a3f('0x17f4')]:undefined);_0x3f3263[_0x880a3f('0x606')]=_0x1a5bcb,_0x3f3263[_0x880a3f('0x136e')]=_0xa13a71;function _0x1a5bcb(){const _0x894dfd=_0x880a3f;_0x3f3263[_0x894dfd('0x73e')]=[];const _0x1b1bd8=[];_0x3f3263['dialogflow'][_0x894dfd('0x412')]&&_0x3f3263['dialogflow']['type'][_0x894dfd('0x19b')]()===_0x894dfd('0x1ade')&&_0x3f3263[_0x894dfd('0x2526')]['appType']==='outboundDial'&&(_0x3f3263['dialogflow'][_0x894dfd('0x2154')]=_0x72b034[_0x894dfd('0x12af')]?(_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0x11d4')]||'')+_0x894dfd('0x2265')+_0x72b034['cutdigits']+'}':(_0x3f3263['dialogflow']['prefix']||'')+'${EXTEN}',_0x72b034[_0x894dfd('0x287')]!==_0x894dfd('0x7ee')?_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0x19')][_0x894dfd('0x2567')](_0x894dfd('0xa22'))<0x0&&(_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0x19')]+=_0x894dfd('0xa22')):_0x3f3263[_0x894dfd('0x2526')]['options']=_0x3f3263['dialogflow']['options']['replace'](_0x894dfd('0xa22'),''));if(_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0x1c54')]&&_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0x1c54')]===_0x894dfd('0x8fa')){}else switch((_0x3f3263['dialogflow'][_0x894dfd('0x643')]||_0x3f3263[_0x894dfd('0x2526')]['appType'])[_0x894dfd('0x19b')]()){case _0x894dfd('0xf2e'):_0x3f3263[_0x894dfd('0x2526')]['appdata']=_0x3f3263['dialogflow'][_0x894dfd('0x2aa')]+'='+_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0x175b')];break;case _0x894dfd('0x8fa'):break;default:_0x1b1bd8[0x0]=_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0xdb5')],_0x1b1bd8[0x1]=_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0x3e1')],_0x1b1bd8[0x2]=_0x3f3263[_0x894dfd('0x2526')][_0x894dfd('0x1083')],_0x3f3263[_0x894dfd('0x2526')]['appdata']=_0x1b1bd8[_0x894dfd('0x1eba')](',');}_0xa13a71(_0x3f3263[_0x894dfd('0x2526')]);}function _0xa13a71(_0x2856bb){const _0x3389e8=_0x880a3f;_0xfba59c[_0x3389e8('0x212a')](_0x2856bb);}}const _0x61dc36=_0x2e980d;_0x27dfdb[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x2de'),_0x4376d8('0xdb2'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x27dfdb(_0x31c00d,_0x469062,_0x4f5ceb,_0x2fe411,_0x474245,_0x210f9f,_0x1446b9,_0x532627){const _0x56b1c0=_0x4376d8,_0x273c02=this;_0x273c02[_0x56b1c0('0x197c')]=_0x1446b9[_0x56b1c0('0x2831')](),_0x273c02['errors']=[],_0x273c02[_0x56b1c0('0x24d3')]=_0x56b1c0('0x511')+(_0x2fe411[_0x56b1c0('0x1c54')]||_0x2fe411[_0x56b1c0('0x643')])[_0x56b1c0('0x14e2')](),_0x273c02[_0x56b1c0('0x7a9')]=angular[_0x56b1c0('0x14e5')](_0x2fe411),_0x273c02[_0x56b1c0('0x103e')]=_0x532627,_0x273c02[_0x56b1c0('0x6ee')]={};if(_0x273c02[_0x56b1c0('0x7a9')]['appdata'])switch(_0x273c02['gotoif'][_0x56b1c0('0x1c54')]?_0x273c02['gotoif'][_0x56b1c0('0x1c54')][_0x56b1c0('0x19b')]():_0x273c02[_0x56b1c0('0x7a9')]['app'][_0x56b1c0('0x19b')]()){case _0x56b1c0('0x8fa'):break;case _0x56b1c0('0x2526'):{const _0x3b85f0=_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x2077')][_0x56b1c0('0x2007')](',');_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0xdb5')]=_0x3b85f0[0x0],_0x273c02['gotoif'][_0x56b1c0('0x3e1')]=_0x3b85f0[0x1],_0x273c02['gotoif'][_0x56b1c0('0x1083')]=_0x3b85f0[_0x56b1c0('0x275f')](0x2,_0x3b85f0['length'])[_0x56b1c0('0x1eba')](',');}break;case _0x56b1c0('0x22ac'):{const _0x15195d=_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x2077')]['split'](',');_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x28ab')]=_0x15195d[0x0],_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x2814')]=_0x15195d[0x1],_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x1bc2')]=_0x15195d[0x2],_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x3e1')]=_0x15195d[0x3],_0x273c02[_0x56b1c0('0x7a9')]['welcomemessage']=_0x15195d['slice'](0x4,_0x15195d[_0x56b1c0('0x1f73')])[_0x56b1c0('0x1eba')](',');}break;case _0x56b1c0('0x16a9'):{const _0x357ee0=_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x2077')]['split'](',');_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x1452')]=_0x357ee0[0x0],_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x1a62')]=_0x357ee0[0x1],_0x273c02['gotoif']['lexregion']=_0x357ee0[0x2],_0x273c02['gotoif'][_0x56b1c0('0x4a')]=_0x357ee0[0x3],_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x1083')]=_0x357ee0[_0x56b1c0('0x275f')](0x4,_0x357ee0[_0x56b1c0('0x1f73')])[_0x56b1c0('0x1eba')](',');}break;case _0x56b1c0('0x96e'):{const _0x23d4fc=_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x2077')][_0x56b1c0('0x2007')](',');_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x12a6')]=isNaN(_0x23d4fc[0x0])?_0x23d4fc[0x0]:parseInt(_0x23d4fc[0x0],0xa),_0x273c02[_0x56b1c0('0x7a9')]['text']=_0x23d4fc[_0x56b1c0('0x275f')](0x1,_0x23d4fc[_0x56b1c0('0x1f73')])[_0x56b1c0('0x1eba')](',');}break;case _0x56b1c0('0x1603'):_0x273c02[_0x56b1c0('0x7a9')]['text']=_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x2077')];break;case _0x56b1c0('0xf2e'):_0x273c02[_0x56b1c0('0x7a9')]['name']=_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x2077')][_0x56b1c0('0x2007')]('=')[0x0],_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x175b')]=_0x273c02['gotoif']['appdata'][_0x56b1c0('0x2007')]('=')[0x1];break;case'agi':_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x87c')]=_0x273c02[_0x56b1c0('0x7a9')]['appdata'];break;default:{const _0x33810a=_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x2077')]['split'](',');_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0xa67')]=_0x49cbdd()['isEmpty'](_0x33810a[0x0])?_0x33810a[0x0]:isNaN(_0x33810a[0x0])?_0x33810a[0x0]:parseInt(_0x33810a[0x0],0xa),_0x273c02[_0x56b1c0('0x7a9')]['truepriority']=_0x49cbdd()[_0x56b1c0('0x109a')](_0x33810a[0x1])?_0x33810a[0x1]:isNaN(_0x33810a[0x1])?_0x33810a[0x1]:parseInt(_0x33810a[0x1],0xa),_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0xe9d')]=_0x49cbdd()[_0x56b1c0('0x109a')](_0x33810a[0x2])?_0x33810a[0x2]:isNaN(_0x33810a[0x2])?_0x33810a[0x2]:parseInt(_0x33810a[0x2],0xa);}break;}else{}_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x412')]&&_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x412')][_0x56b1c0('0x19b')]()===_0x56b1c0('0x1ade')&&_0x273c02['gotoif']['appType'][_0x56b1c0('0x19b')]()===_0x56b1c0('0x1711')&&(_0x273c02['gotoif'][_0x56b1c0('0x11d4')]=_0x273c02['gotoif']['phone']?_0x273c02[_0x56b1c0('0x7a9')]['phone'][_0x56b1c0('0x2007')]('$')[0x0]:undefined,_0x273c02[_0x56b1c0('0x7a9')]['callerId']=_0x273c02['gotoif'][_0x56b1c0('0x17f4')]?_0x56b1c0('0x1d28')+_0x273c02[_0x56b1c0('0x7a9')][_0x56b1c0('0x17f4')]:undefined);_0x273c02[_0x56b1c0('0x606')]=_0x1df6e1,_0x273c02[_0x56b1c0('0x136e')]=_0x316936;function _0x1df6e1(){const _0x38c808=_0x56b1c0;_0x273c02[_0x38c808('0x73e')]=[];const _0x54c814=[];_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x412')]&&_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x412')][_0x38c808('0x19b')]()===_0x38c808('0x1ade')&&_0x273c02[_0x38c808('0x7a9')]['appType']===_0x38c808('0xbdc')&&(_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x2154')]=_0x474245[_0x38c808('0x12af')]?(_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x11d4')]||'')+_0x38c808('0x2265')+_0x474245[_0x38c808('0x12af')]+'}':(_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x11d4')]||'')+_0x38c808('0x150e'),_0x474245['recordingFormat']!=='none'?_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x19')][_0x38c808('0x2567')](_0x38c808('0xa22'))<0x0&&(_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x19')]+='U(xcally-mixmonitor-context)'):_0x273c02['gotoif'][_0x38c808('0x19')]=_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x19')][_0x38c808('0x737')](_0x38c808('0xa22'),''));if(_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x1c54')]&&_0x273c02['gotoif'][_0x38c808('0x1c54')]===_0x38c808('0x8fa')){}else switch((_0x273c02['gotoif'][_0x38c808('0x643')]||_0x273c02[_0x38c808('0x7a9')][_0x38c808('0x1c54')])[_0x38c808('0x19b')]()){case _0x38c808('0xf2e'):_0x273c02[_0x38c808('0x7a9')]['appdata']=_0x273c02[_0x38c808('0x7a9')]['name']+'='+_0x273c02['gotoif']['value'];break;case _0x38c808('0x8fa'):break;default:_0x54c814[0x0]=_0x273c02[_0x38c808('0x7a9')][_0x38c808('0xa67')],_0x54c814[0x1]=_0x273c02[_0x38c808('0x7a9')]['truepriority'],_0x54c814[0x2]=_0x273c02[_0x38c808('0x7a9')][_0x38c808('0xe9d')],_0x273c02['gotoif']['appdata']=_0x54c814[_0x38c808('0x1eba')](',');}_0x316936(_0x273c02['gotoif']);}function _0x316936(_0x12ee38){_0x31c00d['hide'](_0x12ee38);}}const _0x55d558=_0x27dfdb;_0x571b2c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x2de'),_0x4376d8('0xdb2'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x571b2c(_0x53bfb4,_0x9bdd9b,_0xc9eaf4,_0x392391,_0x4df8e6,_0x4271eb,_0x5e08c6,_0x330fdf){const _0x1f66e1=_0x4376d8,_0x4177d4=this;_0x4177d4['currentUser']=_0x5e08c6['getCurrentUser'](),_0x4177d4[_0x1f66e1('0x73e')]=[],_0x4177d4['title']=_0x1f66e1('0x511')+(_0x392391[_0x1f66e1('0x1c54')]||_0x392391[_0x1f66e1('0x643')])['toUpperCase'](),_0x4177d4['gotop']=angular['copy'](_0x392391),_0x4177d4['crudPermissions']=_0x330fdf,_0x4177d4['hasModulePermissions']={};if(_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2077')])switch(_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x1c54')]?_0x4177d4[_0x1f66e1('0x721')]['appType'][_0x1f66e1('0x19b')]():_0x4177d4['gotop'][_0x1f66e1('0x643')][_0x1f66e1('0x19b')]()){case _0x1f66e1('0x8fa'):break;case _0x1f66e1('0x2526'):{const _0x581fd2=_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2077')][_0x1f66e1('0x2007')](',');_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0xdb5')]=_0x581fd2[0x0],_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x3e1')]=_0x581fd2[0x1],_0x4177d4['gotop'][_0x1f66e1('0x1083')]=_0x581fd2[_0x1f66e1('0x275f')](0x2,_0x581fd2[_0x1f66e1('0x1f73')])[_0x1f66e1('0x1eba')](',');}break;case _0x1f66e1('0x22ac'):{const _0x568a3e=_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2077')][_0x1f66e1('0x2007')](',');_0x4177d4[_0x1f66e1('0x721')]['projectId']=_0x568a3e[0x0],_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2814')]=_0x568a3e[0x1],_0x4177d4['gotop'][_0x1f66e1('0x1bc2')]=_0x568a3e[0x2],_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x3e1')]=_0x568a3e[0x3],_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x1083')]=_0x568a3e[_0x1f66e1('0x275f')](0x4,_0x568a3e[_0x1f66e1('0x1f73')])[_0x1f66e1('0x1eba')](',');}break;case _0x1f66e1('0x16a9'):{const _0x558ebc=_0x4177d4[_0x1f66e1('0x721')]['appdata']['split'](',');_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x1452')]=_0x558ebc[0x0],_0x4177d4['gotop'][_0x1f66e1('0x1a62')]=_0x558ebc[0x1],_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x1dcf')]=_0x558ebc[0x2],_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x4a')]=_0x558ebc[0x3],_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x1083')]=_0x558ebc[_0x1f66e1('0x275f')](0x4,_0x558ebc[_0x1f66e1('0x1f73')])[_0x1f66e1('0x1eba')](',');}break;case'autoreply':{const _0x1a2def=_0x4177d4['gotop'][_0x1f66e1('0x2077')]['split'](',');_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x12a6')]=isNaN(_0x1a2def[0x0])?_0x1a2def[0x0]:parseInt(_0x1a2def[0x0],0xa),_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x132f')]=_0x1a2def['slice'](0x1,_0x1a2def[_0x1f66e1('0x1f73')])[_0x1f66e1('0x1eba')](',');}break;case _0x1f66e1('0x1603'):_0x4177d4[_0x1f66e1('0x721')]['text']=_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2077')];break;case _0x1f66e1('0xf2e'):_0x4177d4[_0x1f66e1('0x721')]['name']=_0x4177d4[_0x1f66e1('0x721')]['appdata'][_0x1f66e1('0x2007')]('=')[0x0],_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x175b')]=_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2077')]['split']('=')[0x1];break;case _0x1f66e1('0x17c6'):_0x4177d4[_0x1f66e1('0x721')]['project']=_0x4177d4['gotop'][_0x1f66e1('0x2077')];break;default:{const _0x2fee19=_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2077')][_0x1f66e1('0x2007')](',');_0x4177d4['gotop']['priority']=_0x49cbdd()[_0x1f66e1('0x109a')](_0x2fee19[0x0])?_0x2fee19[0x0]:isNaN(_0x2fee19[0x0])?_0x2fee19[0x0]:parseInt(_0x2fee19[0x0],0xa);}break;}else{}_0x4177d4[_0x1f66e1('0x721')]['type']&&_0x4177d4['gotop'][_0x1f66e1('0x412')][_0x1f66e1('0x19b')]()===_0x1f66e1('0x1ade')&&_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x1c54')][_0x1f66e1('0x19b')]()===_0x1f66e1('0x1711')&&(_0x4177d4[_0x1f66e1('0x721')]['prefix']=_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2154')]?_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x2154')][_0x1f66e1('0x2007')]('$')[0x0]:undefined,_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x1a8e')]=_0x4177d4['gotop']['callerID']?_0x1f66e1('0x1d28')+_0x4177d4[_0x1f66e1('0x721')][_0x1f66e1('0x17f4')]:undefined);_0x4177d4[_0x1f66e1('0x606')]=_0x523ac2,_0x4177d4[_0x1f66e1('0x136e')]=_0x458f2f;function _0x523ac2(){const _0x1213de=_0x1f66e1;_0x4177d4[_0x1213de('0x73e')]=[];const _0x2383c9=[];_0x4177d4['gotop'][_0x1213de('0x412')]&&_0x4177d4['gotop'][_0x1213de('0x412')]['toLowerCase']()===_0x1213de('0x1ade')&&_0x4177d4['gotop']['appType']==='outboundDial'&&(_0x4177d4['gotop'][_0x1213de('0x2154')]=_0x4df8e6[_0x1213de('0x12af')]?(_0x4177d4[_0x1213de('0x721')][_0x1213de('0x11d4')]||'')+'${EXTEN:'+_0x4df8e6[_0x1213de('0x12af')]+'}':(_0x4177d4['gotop']['prefix']||'')+'${EXTEN}',_0x4df8e6['recordingFormat']!=='none'?_0x4177d4[_0x1213de('0x721')][_0x1213de('0x19')][_0x1213de('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x4177d4[_0x1213de('0x721')]['options']+=_0x1213de('0xa22')):_0x4177d4[_0x1213de('0x721')][_0x1213de('0x19')]=_0x4177d4['gotop']['options'][_0x1213de('0x737')](_0x1213de('0xa22'),''));if(_0x4177d4[_0x1213de('0x721')][_0x1213de('0x1c54')]&&_0x4177d4[_0x1213de('0x721')][_0x1213de('0x1c54')]==='custom'){}else switch((_0x4177d4[_0x1213de('0x721')]['app']||_0x4177d4[_0x1213de('0x721')][_0x1213de('0x1c54')])[_0x1213de('0x19b')]()){case'set':_0x4177d4['gotop'][_0x1213de('0x2077')]=_0x4177d4['gotop'][_0x1213de('0x2aa')]+'='+_0x4177d4[_0x1213de('0x721')][_0x1213de('0x175b')];break;case _0x1213de('0x8fa'):break;default:_0x2383c9[0x0]=_0x4177d4[_0x1213de('0x721')]['priority'],_0x4177d4[_0x1213de('0x721')][_0x1213de('0x2077')]=_0x2383c9[_0x1213de('0x1eba')](',');}_0x458f2f(_0x4177d4[_0x1213de('0x721')]);}function _0x458f2f(_0xa7309e){const _0x816d6c=_0x1f66e1;_0x53bfb4[_0x816d6c('0x212a')](_0xa7309e);}}const _0x2f29ba=_0x571b2c;_0x2e260c[_0x4376d8('0x1b9c')]=['$state','$mdDialog',_0x4376d8('0x199d'),_0x4376d8('0x12f1'),_0x4376d8('0x231f'),'intervals','toasty','api','Auth',_0x4376d8('0x103e')];function _0x2e260c(_0x458035,_0x4c998,_0x47dbb3,_0x3ba304,_0x457ffc,_0x41db9b,_0x322b90,_0x227203,_0xd406fb,_0x4fe3b6){const _0x5c8839=_0x4376d8,_0x3fb5b3=this;_0x3fb5b3['currentUser']=_0xd406fb[_0x5c8839('0x2831')](),_0x3fb5b3[_0x5c8839('0x73e')]=[],_0x3fb5b3[_0x5c8839('0x24d3')]=_0x5c8839('0x1481'),_0x3fb5b3[_0x5c8839('0x231f')]=angular['copy'](_0x457ffc),_0x3fb5b3[_0x5c8839('0x1be1')]=_0x41db9b,_0x3fb5b3[_0x5c8839('0x42d')]=![],_0x3fb5b3[_0x5c8839('0x11e0')]=[_0x5c8839('0x1256'),'custom',_0x5c8839('0x134c')],_0x3fb5b3[_0x5c8839('0x103e')]=_0x4fe3b6,_0x3fb5b3[_0x5c8839('0x9d')]=_0x3ba304[_0x5c8839('0x18cb')](),_0x3fb5b3['monthNumber']=_0x3ba304[_0x5c8839('0x1743')](),_0x3fb5b3['monthName']=_0x3ba304[_0x5c8839('0x912')](),_0x3fb5b3[_0x5c8839('0x219f')]=_0x3ba304[_0x5c8839('0x37c')]();if(!_0x3fb5b3['interval'])_0x3fb5b3[_0x5c8839('0x231f')]={'interval':'*,*,*,*'},_0x3fb5b3[_0x5c8839('0x412')]='always',_0x3fb5b3[_0x5c8839('0x24d3')]='TOOLS.NEW_INTERVAL',_0x3fb5b3['newInterval']=!![];else{if(_0x3fb5b3[_0x5c8839('0x231f')][_0x5c8839('0x231f')]!==_0x5c8839('0x20c3')){_0x3fb5b3[_0x5c8839('0x412')]=_0x5c8839('0x8fa');const _0x4bf1c5=_0x3fb5b3[_0x5c8839('0x231f')][_0x5c8839('0x231f')]['split'](','),_0x3cd68e=_0x4bf1c5[0x0],_0x1d9bc6=_0x4bf1c5[0x1],_0x949023=_0x4bf1c5[0x2],_0x2b3b25=_0x4bf1c5[0x3];if(_0x3cd68e!=='*'){const _0xb0c757=_0x3cd68e['split']('-')[0x0],_0x2155fd=_0x3cd68e[_0x5c8839('0x2007')]('-')[0x1];let _0x20cbba;_0x20cbba=new Date(),_0x20cbba[_0x5c8839('0x196e')](Number(_0xb0c757['split'](':')[0x0])),_0x20cbba[_0x5c8839('0x57b')](Number(_0xb0c757[_0x5c8839('0x2007')](':')[0x1])),_0x3fb5b3['timeRangeFrom']=_0x20cbba,_0x20cbba=new Date(),_0x20cbba['setHours'](Number(_0x2155fd[_0x5c8839('0x2007')](':')[0x0])),_0x20cbba['setMinutes'](Number(_0x2155fd[_0x5c8839('0x2007')](':')[0x1])),_0x3fb5b3['timeRangeTo']=_0x20cbba;}_0x1d9bc6!=='*'&&(_0x3fb5b3[_0x5c8839('0x1a98')]=_0x1d9bc6[_0x5c8839('0x2007')]('-')[0x0],_0x3fb5b3[_0x5c8839('0x1627')]=_0x1d9bc6[_0x5c8839('0x2007')]('-')[0x1]),_0x949023!=='*'&&(_0x3fb5b3[_0x5c8839('0x18d1')]=_0x949023[_0x5c8839('0x2007')]('-')[0x0],_0x3fb5b3[_0x5c8839('0x271d')]=_0x949023['split']('-')[0x1]),_0x2b3b25!=='*'&&(_0x3fb5b3[_0x5c8839('0x88c')]=_0x2b3b25[_0x5c8839('0x2007')]('-')[0x0],_0x3fb5b3[_0x5c8839('0x1f09')]=_0x2b3b25[_0x5c8839('0x2007')]('-')[0x1]);}else _0x3fb5b3[_0x5c8839('0x412')]=_0x5c8839('0x1256');}_0x458035['params']['id']&&!_0x3fb5b3[_0x5c8839('0x231f')][_0x5c8839('0xf84')]&&(_0x3fb5b3[_0x5c8839('0x231f')][_0x5c8839('0x24a9')]=_0x458035[_0x5c8839('0x16fb')]['id']);_0x3fb5b3[_0x5c8839('0x231f')][_0x5c8839('0x24a9')]&&_0x3fb5b3[_0x5c8839('0x231f')][_0x5c8839('0xf84')]&&(_0x3fb5b3[_0x5c8839('0x412')]=_0x5c8839('0x134c'));_0x3fb5b3[_0x5c8839('0x28b2')]=_0x130911,_0x3fb5b3[_0x5c8839('0x872')]=_0x49fe53,_0x3fb5b3[_0x5c8839('0x136e')]=_0x322873;_0x3fb5b3[_0x5c8839('0x231f')][_0x5c8839('0xf84')]&&(_0xd406fb[_0x5c8839('0x1ba2')](_0x5c8839('0x20bf'))?_0x227203[_0x5c8839('0x231f')]['get']({'fields':_0x5c8839('0x165a'),'IntervalId':_0x5c8839('0x9bb'),'nolimit':!![]})['$promise'][_0x5c8839('0x17e7')](function(_0x4df37b){const _0x3e047f=_0x5c8839;_0x3fb5b3[_0x3e047f('0x1be1')]=_0x4df37b[_0x3e047f('0x2319')]||[];})['catch'](function(_0x158a52){const _0x1c05ca=_0x5c8839;_0x322b90[_0x1c05ca('0x1db9')]({'title':_0x158a52[_0x1c05ca('0x11c5')]?_0x1c05ca('0x14f7')+_0x158a52[_0x1c05ca('0x11c5')]+_0x1c05ca('0x16e4')+_0x158a52[_0x1c05ca('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0x158a52[_0x1c05ca('0x1457')]?JSON[_0x1c05ca('0x678')](_0x158a52[_0x1c05ca('0x1457')]):_0x158a52[_0x1c05ca('0x9b6')]()});}):_0x227203[_0x5c8839('0x231f')][_0x5c8839('0x1c53')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x5c8839('0x9bb'),'nolimit':!![]})['$promise'][_0x5c8839('0x17e7')](function(_0x3be330){const _0x751d2d=_0x5c8839;_0x3fb5b3[_0x751d2d('0x1be1')]=_0x3be330[_0x751d2d('0x2319')]||[];})['then'](function(){const _0x3f69b5=_0x5c8839;return _0x227203[_0x3f69b5('0x383')][_0x3f69b5('0x1c53')]({'userProfileId':_0x3fb5b3[_0x3f69b5('0x197c')]['userProfileId'],'sectionId':0x3ec})[_0x3f69b5('0x1af5')];})[_0x5c8839('0x17e7')](function(_0x3c64ea){const _0x10ac97=_0x5c8839,_0x28b24b=_0x3c64ea&&_0x3c64ea[_0x10ac97('0x2319')]?_0x3c64ea['rows'][0x0]:null;if(!_0x28b24b)_0x3fb5b3[_0x10ac97('0x1be1')]=[];else{if(!_0x28b24b[_0x10ac97('0x9e3')])return _0x227203[_0x10ac97('0x78d')][_0x10ac97('0x1c53')]({'sectionId':_0x28b24b['id']})[_0x10ac97('0x1af5')][_0x10ac97('0x17e7')](function(_0x486c61){const _0x224e6f=_0x10ac97,_0x40cbd1=_0x486c61&&_0x486c61[_0x224e6f('0x2319')]?_0x486c61[_0x224e6f('0x2319')]:[],_0x39cedf=[];let _0x1665ea=null;_0x3fb5b3[_0x224e6f('0x231f')]&&(_0x1665ea=_0x49cbdd()[_0x224e6f('0xe8e')](_0x3fb5b3[_0x224e6f('0x1be1')],{'name':_0x3fb5b3[_0x224e6f('0x231f')][_0x224e6f('0x24a9')]})),_0x1665ea&&!_0x49cbdd()['some'](_0x40cbd1,[_0x224e6f('0x5db'),_0x1665ea['id']])&&_0x3fb5b3[_0x224e6f('0x1be1')]['forEach'](function(_0xbd9005){const _0xb84a1a=_0x224e6f;_0xbd9005['id']===_0x1665ea['id']&&(_0xbd9005[_0xb84a1a('0xe5c')]=![],_0x39cedf[_0xb84a1a('0x269f')](_0xbd9005));}),_0x3fb5b3[_0x224e6f('0x1be1')]=_0x39cedf;});}})[_0x5c8839('0x16df')](function(_0x4809c4){const _0x57c1cc=_0x5c8839;_0x322b90[_0x57c1cc('0x1db9')]({'title':_0x4809c4['status']?_0x57c1cc('0x14f7')+_0x4809c4[_0x57c1cc('0x11c5')]+_0x57c1cc('0x16e4')+_0x4809c4['statusText']:_0x57c1cc('0x87a'),'msg':_0x4809c4['data']?JSON[_0x57c1cc('0x678')](_0x4809c4['data']):_0x4809c4['toString']()});}));function _0x22b345(){const _0x1a19e2=_0x5c8839;switch(_0x3fb5b3[_0x1a19e2('0x412')]){case'always':case'list':return _0x1a19e2('0x20c3');case _0x1a19e2('0x8fa'):{const _0x37bb8a=[];if(_0x3fb5b3[_0x1a19e2('0x19bf')]!=='*'&&_0x3fb5b3[_0x1a19e2('0x19bf')]&&_0x3fb5b3[_0x1a19e2('0x1c12')]){const _0x3beb94=(_0x3fb5b3['timeRangeFrom'][_0x1a19e2('0x13c6')]()<0xa?'0':'')+_0x3fb5b3[_0x1a19e2('0x19bf')][_0x1a19e2('0x13c6')]()+':'+((_0x3fb5b3[_0x1a19e2('0x19bf')][_0x1a19e2('0xf42')]()<0xa?'0':'')+_0x3fb5b3[_0x1a19e2('0x19bf')]['getMinutes']()),_0x112ff0=(_0x3fb5b3['timeRangeTo'][_0x1a19e2('0x13c6')]()<0xa?'0':'')+_0x3fb5b3[_0x1a19e2('0x1c12')][_0x1a19e2('0x13c6')]()+':'+((_0x3fb5b3[_0x1a19e2('0x1c12')][_0x1a19e2('0xf42')]()<0xa?'0':'')+_0x3fb5b3['timeRangeTo']['getMinutes']());_0x37bb8a['push'](_0x3beb94+'-'+_0x112ff0);}else _0x37bb8a['push']('*');return _0x3fb5b3[_0x1a19e2('0x1a98')]?_0x3fb5b3['dayOfWeekTo']?_0x37bb8a[_0x1a19e2('0x269f')](_0x3fb5b3[_0x1a19e2('0x1a98')]+'-'+_0x3fb5b3['dayOfWeekTo']):_0x37bb8a[_0x1a19e2('0x269f')](_0x3fb5b3[_0x1a19e2('0x1a98')]):_0x37bb8a[_0x1a19e2('0x269f')]('*'),_0x3fb5b3[_0x1a19e2('0x18d1')]?_0x3fb5b3['monthDayTo']?_0x37bb8a[_0x1a19e2('0x269f')](_0x3fb5b3[_0x1a19e2('0x18d1')]+'-'+_0x3fb5b3[_0x1a19e2('0x271d')]):_0x37bb8a[_0x1a19e2('0x269f')](_0x3fb5b3[_0x1a19e2('0x18d1')]):_0x37bb8a[_0x1a19e2('0x269f')]('*'),_0x3fb5b3['monthFrom']?_0x3fb5b3[_0x1a19e2('0x1f09')]?_0x37bb8a[_0x1a19e2('0x269f')](_0x3fb5b3[_0x1a19e2('0x88c')]+'-'+_0x3fb5b3['monthTo']):_0x37bb8a[_0x1a19e2('0x269f')](_0x3fb5b3[_0x1a19e2('0x88c')]):_0x37bb8a[_0x1a19e2('0x269f')]('*'),_0x37bb8a[_0x1a19e2('0x1eba')]();}}}function _0x130911(){const _0x49d6a2=_0x5c8839;_0x3fb5b3[_0x49d6a2('0x73e')]=[],_0x3fb5b3[_0x49d6a2('0x231f')]['interval']=_0x22b345(),_0x227203[_0x49d6a2('0x231f')][_0x49d6a2('0x2439')](_0x3fb5b3[_0x49d6a2('0x231f')])['$promise']['then'](function(_0x65e65d){const _0x2d02f9=_0x49d6a2;_0x3fb5b3['intervals'][_0x2d02f9('0x269f')](_0x65e65d),_0x322b90['success']({'title':_0x2d02f9('0x2378'),'msg':_0x3fb5b3[_0x2d02f9('0x231f')][_0x2d02f9('0x2aa')]?_0x3fb5b3[_0x2d02f9('0x231f')][_0x2d02f9('0x2aa')]+_0x2d02f9('0x15a'):''}),_0x322873();})[_0x49d6a2('0x16df')](function(_0x705e6e){const _0x282cd1=_0x49d6a2;console['error'](_0x705e6e),_0x3fb5b3[_0x282cd1('0x73e')]=_0x705e6e[_0x282cd1('0x1457')][_0x282cd1('0x73e')]||[{'message':_0x705e6e['toString'](),'type':_0x282cd1('0x2475')}];});}function _0x49fe53(){const _0x8e2f4=_0x5c8839;_0x3fb5b3[_0x8e2f4('0x73e')]=[],_0x3fb5b3[_0x8e2f4('0x231f')]['interval']=_0x22b345(),_0x3fb5b3[_0x8e2f4('0x231f')]['application']?(_0x3fb5b3['type']!=='list'&&(_0x3fb5b3[_0x8e2f4('0x231f')][_0x8e2f4('0x24a9')]=null),_0x322873(_0x3fb5b3[_0x8e2f4('0x231f')])):_0x227203[_0x8e2f4('0x231f')][_0x8e2f4('0x27ba')]({'id':_0x3fb5b3['interval']['id']},_0x3fb5b3[_0x8e2f4('0x231f')])[_0x8e2f4('0x1af5')]['then'](function(_0x3af57b){const _0x3c033d=_0x8e2f4,_0x408d02=_0x49cbdd()[_0x3c033d('0xe8e')](_0x3fb5b3[_0x3c033d('0x1be1')],{'id':_0x3af57b['id']});_0x408d02&&_0x49cbdd()[_0x3c033d('0x1ced')](_0x408d02,_0x3af57b),_0x322b90['success']({'title':_0x3c033d('0x6a9'),'msg':_0x3c033d('0x2792')}),_0x322873();})[_0x8e2f4('0x16df')](function(_0x4c7135){const _0x78502a=_0x8e2f4;console[_0x78502a('0x1db9')](_0x4c7135),_0x3fb5b3[_0x78502a('0x73e')]=_0x4c7135[_0x78502a('0x1457')][_0x78502a('0x73e')]||[{'message':_0x4c7135[_0x78502a('0x9b6')](),'type':'api.interval.update'}];});}function _0x322873(_0xca75c8){const _0x4588be=_0x5c8839;_0x4c998[_0x4588be('0x212a')](_0xca75c8);}}const _0x248f91=_0x2e260c;_0x3bec16['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x2de'),'chatWebsite',_0x4376d8('0x212e'),'Auth','crudPermissions'];function _0x3bec16(_0x355694,_0x4b3687,_0x45435a,_0xebce67,_0x1220a4,_0x12efce,_0x45fcd4,_0x4eb6cb){const _0x3635c6=_0x4376d8,_0x1d1362=this;_0x1d1362['currentUser']=_0x45fcd4[_0x3635c6('0x2831')](),_0x1d1362['errors']=[],_0x1d1362[_0x3635c6('0x24d3')]='CHAT.EDIT_'+(_0xebce67[_0x3635c6('0x1c54')]||_0xebce67[_0x3635c6('0x643')])['toUpperCase'](),_0x1d1362[_0x3635c6('0x1e49')]=angular[_0x3635c6('0x14e5')](_0xebce67),_0x1d1362[_0x3635c6('0x103e')]=_0x4eb6cb,_0x1d1362['hasModulePermissions']={};if(_0x1d1362['noop'][_0x3635c6('0x2077')])switch(_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x1c54')]?_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x1c54')][_0x3635c6('0x19b')]():_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x643')][_0x3635c6('0x19b')]()){case _0x3635c6('0x8fa'):break;case _0x3635c6('0x2526'):{const _0x47718b=_0x1d1362[_0x3635c6('0x1e49')]['appdata']['split'](',');_0x1d1362[_0x3635c6('0x1e49')]['key']=_0x47718b[0x0],_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x3e1')]=_0x47718b[0x1],_0x1d1362[_0x3635c6('0x1e49')]['welcomemessage']=_0x47718b['slice'](0x2,_0x47718b[_0x3635c6('0x1f73')])[_0x3635c6('0x1eba')](',');}break;case _0x3635c6('0x22ac'):{const _0x3b4ee6=_0x1d1362['noop']['appdata'][_0x3635c6('0x2007')](',');_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x28ab')]=_0x3b4ee6[0x0],_0x1d1362['noop'][_0x3635c6('0x2814')]=_0x3b4ee6[0x1],_0x1d1362[_0x3635c6('0x1e49')]['privateKey']=_0x3b4ee6[0x2],_0x1d1362[_0x3635c6('0x1e49')]['language']=_0x3b4ee6[0x3],_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x1083')]=_0x3b4ee6[_0x3635c6('0x275f')](0x4,_0x3b4ee6[_0x3635c6('0x1f73')])[_0x3635c6('0x1eba')](',');}break;case _0x3635c6('0x16a9'):{const _0x2eb21b=_0x1d1362['noop']['appdata']['split'](',');_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x1452')]=_0x2eb21b[0x0],_0x1d1362['noop'][_0x3635c6('0x1a62')]=_0x2eb21b[0x1],_0x1d1362['noop']['lexregion']=_0x2eb21b[0x2],_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x4a')]=_0x2eb21b[0x3],_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x1083')]=_0x2eb21b[_0x3635c6('0x275f')](0x4,_0x2eb21b['length'])['join'](',');}break;case _0x3635c6('0x96e'):{const _0x5149bb=_0x1d1362['noop']['appdata'][_0x3635c6('0x2007')](',');_0x1d1362['noop'][_0x3635c6('0x12a6')]=isNaN(_0x5149bb[0x0])?_0x5149bb[0x0]:parseInt(_0x5149bb[0x0],0xa),_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x132f')]=_0x5149bb['slice'](0x1,_0x5149bb[_0x3635c6('0x1f73')])['join'](',');}break;case _0x3635c6('0x1603'):_0x1d1362['noop']['text']=_0x1d1362['noop'][_0x3635c6('0x2077')];break;case _0x3635c6('0xf2e'):_0x1d1362[_0x3635c6('0x1e49')]['name']=_0x1d1362['noop']['appdata'][_0x3635c6('0x2007')]('=')[0x0],_0x1d1362[_0x3635c6('0x1e49')]['value']=_0x1d1362['noop'][_0x3635c6('0x2077')][_0x3635c6('0x2007')]('=')[0x1];break;case'agi':_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x87c')]=_0x1d1362[_0x3635c6('0x1e49')]['appdata'];break;default:{const _0x82ff8b=_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x2077')][_0x3635c6('0x2007')](',');_0x1d1362['noop'][_0x3635c6('0x175b')]=_0x49cbdd()[_0x3635c6('0x109a')](_0x82ff8b[0x0])?_0x82ff8b[0x0]:isNaN(_0x82ff8b[0x0])?_0x82ff8b[0x0]:parseInt(_0x82ff8b[0x0],0xa);}break;}else{}_0x1d1362[_0x3635c6('0x1e49')]['type']&&_0x1d1362['noop'][_0x3635c6('0x412')]['toLowerCase']()===_0x3635c6('0x1ade')&&_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x1c54')][_0x3635c6('0x19b')]()===_0x3635c6('0x1711')&&(_0x1d1362[_0x3635c6('0x1e49')]['prefix']=_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x2154')]?_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x2154')][_0x3635c6('0x2007')]('$')[0x0]:undefined,_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x1a8e')]=_0x1d1362[_0x3635c6('0x1e49')][_0x3635c6('0x17f4')]?_0x3635c6('0x1d28')+_0x1d1362['noop'][_0x3635c6('0x17f4')]:undefined);_0x1d1362[_0x3635c6('0x606')]=_0xaedd8,_0x1d1362[_0x3635c6('0x136e')]=_0xc0e956;function _0xaedd8(){const _0x660417=_0x3635c6;_0x1d1362[_0x660417('0x73e')]=[];const _0x426005=[];_0x1d1362[_0x660417('0x1e49')][_0x660417('0x412')]&&_0x1d1362[_0x660417('0x1e49')][_0x660417('0x412')]['toLowerCase']()===_0x660417('0x1ade')&&_0x1d1362[_0x660417('0x1e49')][_0x660417('0x1c54')]===_0x660417('0xbdc')&&(_0x1d1362['noop'][_0x660417('0x2154')]=_0x1220a4['cutdigits']?(_0x1d1362[_0x660417('0x1e49')]['prefix']||'')+'${EXTEN:'+_0x1220a4[_0x660417('0x12af')]+'}':(_0x1d1362[_0x660417('0x1e49')][_0x660417('0x11d4')]||'')+_0x660417('0x150e'),_0x1220a4[_0x660417('0x287')]!==_0x660417('0x7ee')?_0x1d1362[_0x660417('0x1e49')]['options'][_0x660417('0x2567')](_0x660417('0xa22'))<0x0&&(_0x1d1362['noop']['options']+=_0x660417('0xa22')):_0x1d1362['noop'][_0x660417('0x19')]=_0x1d1362['noop'][_0x660417('0x19')]['replace'](_0x660417('0xa22'),''));if(_0x1d1362[_0x660417('0x1e49')][_0x660417('0x1c54')]&&_0x1d1362[_0x660417('0x1e49')][_0x660417('0x1c54')]===_0x660417('0x8fa')){}else switch((_0x1d1362['noop'][_0x660417('0x643')]||_0x1d1362['noop'][_0x660417('0x1c54')])[_0x660417('0x19b')]()){case'set':_0x1d1362[_0x660417('0x1e49')]['appdata']=_0x1d1362['noop'][_0x660417('0x2aa')]+'='+_0x1d1362[_0x660417('0x1e49')][_0x660417('0x175b')];break;case _0x660417('0x8fa'):break;default:_0x426005[0x0]=_0x1d1362[_0x660417('0x1e49')][_0x660417('0x175b')],_0x1d1362['noop'][_0x660417('0x2077')]=_0x426005[_0x660417('0x1eba')](',');}_0xc0e956(_0x1d1362['noop']);}function _0xc0e956(_0x5aba9a){_0x355694['hide'](_0x5aba9a);}}const _0x36b710=_0x3bec16;_0x4071aa[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x2de'),_0x4376d8('0xdb2'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x4071aa(_0x533495,_0x3bec06,_0x2ca06e,_0x58548c,_0x1f6751,_0x181a8a,_0x1a752a,_0x5ceed3){const _0x4fd00a=_0x4376d8,_0x53aba1=this;_0x53aba1[_0x4fd00a('0x197c')]=_0x1a752a['getCurrentUser'](),_0x53aba1[_0x4fd00a('0x73e')]=[],_0x53aba1[_0x4fd00a('0x24d3')]=_0x4fd00a('0x511')+(_0x58548c['appType']||_0x58548c[_0x4fd00a('0x643')])['toUpperCase'](),_0x53aba1[_0x4fd00a('0x1bd')]=angular[_0x4fd00a('0x14e5')](_0x58548c),_0x53aba1['crudPermissions']=_0x5ceed3,_0x53aba1[_0x4fd00a('0x6ee')]={};if(_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x2077')])switch(_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x1c54')]?_0x53aba1['queue']['appType'][_0x4fd00a('0x19b')]():_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x643')][_0x4fd00a('0x19b')]()){case'custom':break;case _0x4fd00a('0x2526'):{const _0x558170=_0x53aba1['queue']['appdata'][_0x4fd00a('0x2007')](',');_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0xdb5')]=_0x558170[0x0],_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x3e1')]=_0x558170[0x1],_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x1083')]=_0x558170['slice'](0x2,_0x558170['length'])[_0x4fd00a('0x1eba')](',');}break;case _0x4fd00a('0x22ac'):{const _0xdf8164=_0x53aba1['queue'][_0x4fd00a('0x2077')]['split'](',');_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x28ab')]=_0xdf8164[0x0],_0x53aba1['queue']['clientEmail']=_0xdf8164[0x1],_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x1bc2')]=_0xdf8164[0x2],_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x3e1')]=_0xdf8164[0x3],_0x53aba1[_0x4fd00a('0x1bd')]['welcomemessage']=_0xdf8164[_0x4fd00a('0x275f')](0x4,_0xdf8164['length'])[_0x4fd00a('0x1eba')](',');}break;case _0x4fd00a('0x16a9'):{const _0x5d73ad=_0x53aba1['queue'][_0x4fd00a('0x2077')][_0x4fd00a('0x2007')](',');_0x53aba1[_0x4fd00a('0x1bd')]['accesskeyid']=_0x5d73ad[0x0],_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x1a62')]=_0x5d73ad[0x1],_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x1dcf')]=_0x5d73ad[0x2],_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x4a')]=_0x5d73ad[0x3],_0x53aba1['queue'][_0x4fd00a('0x1083')]=_0x5d73ad['slice'](0x4,_0x5d73ad['length'])[_0x4fd00a('0x1eba')](',');}break;case _0x4fd00a('0x96e'):{const _0x108a36=_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x2077')][_0x4fd00a('0x2007')](',');_0x53aba1['queue'][_0x4fd00a('0x12a6')]=isNaN(_0x108a36[0x0])?_0x108a36[0x0]:parseInt(_0x108a36[0x0],0xa),_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x132f')]=_0x108a36[_0x4fd00a('0x275f')](0x1,_0x108a36[_0x4fd00a('0x1f73')])['join'](',');}break;case _0x4fd00a('0x1603'):_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x132f')]=_0x53aba1['queue'][_0x4fd00a('0x2077')];break;case'set':_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x2aa')]=_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x2077')][_0x4fd00a('0x2007')]('=')[0x0],_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x175b')]=_0x53aba1['queue'][_0x4fd00a('0x2077')][_0x4fd00a('0x2007')]('=')[0x1];break;case _0x4fd00a('0x17c6'):_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x87c')]=_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x2077')];break;default:{const _0x5a4b15=_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x2077')][_0x4fd00a('0x2007')](',');_0x53aba1[_0x4fd00a('0x1bd')]['queue']=_0x49cbdd()[_0x4fd00a('0x109a')](_0x5a4b15[0x0])?_0x5a4b15[0x0]:isNaN(_0x5a4b15[0x0])?_0x5a4b15[0x0]:parseInt(_0x5a4b15[0x0],0xa),_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0xd2f')]=_0x49cbdd()[_0x4fd00a('0x109a')](_0x5a4b15[0x1])?_0x5a4b15[0x1]:isNaN(_0x5a4b15[0x1])?_0x5a4b15[0x1]:parseInt(_0x5a4b15[0x1],0xa);}break;}else _0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x1bd')]=0x12c,_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0xd2f')]=0x12c;_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x412')]&&_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x412')]['toLowerCase']()===_0x4fd00a('0x1ade')&&_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x1c54')][_0x4fd00a('0x19b')]()===_0x4fd00a('0x1711')&&(_0x53aba1['queue'][_0x4fd00a('0x11d4')]=_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x2154')]?_0x53aba1[_0x4fd00a('0x1bd')]['phone'][_0x4fd00a('0x2007')]('$')[0x0]:undefined,_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x1a8e')]=_0x53aba1[_0x4fd00a('0x1bd')][_0x4fd00a('0x17f4')]?_0x4fd00a('0x1d28')+_0x53aba1[_0x4fd00a('0x1bd')]['callerID']:undefined);_0x53aba1[_0x4fd00a('0x606')]=_0x21041b,_0x53aba1['closeDialog']=_0xd7fa99,_0x1a752a[_0x4fd00a('0x1ba2')](_0x4fd00a('0x20bf'))?_0x181a8a[_0x4fd00a('0x262e')]['get']({'fields':'id,name,type','sort':'name','nolimit':_0x4fd00a('0xe34')})[_0x4fd00a('0x1af5')]['then'](function(_0xf949d4){const _0x3ae910=_0x4fd00a;_0x53aba1[_0x3ae910('0x14c4')]=_0xf949d4[_0x3ae910('0x2319')]||[];})['catch'](function(_0x2655f5){const _0x2cf0cc=_0x4fd00a;_0x2ca06e[_0x2cf0cc('0x1db9')]({'title':_0x2655f5['status']?_0x2cf0cc('0x14f7')+_0x2655f5['status']+'\x20-\x20'+_0x2655f5[_0x2cf0cc('0x1833')]:_0x2cf0cc('0x92a'),'msg':_0x2655f5[_0x2cf0cc('0x1457')]?JSON['stringify'](_0x2655f5['data']):_0x2655f5[_0x2cf0cc('0x9b6')]()});}):_0x181a8a['chatQueue'][_0x4fd00a('0x1c53')]({'fields':'id,name,type','sort':'name','nolimit':'true'})[_0x4fd00a('0x1af5')][_0x4fd00a('0x17e7')](function(_0x5c2f2e){const _0x24005b=_0x4fd00a;_0x53aba1[_0x24005b('0x14c4')]=_0x5c2f2e[_0x24005b('0x2319')]||[];})[_0x4fd00a('0x17e7')](function(){const _0x51fe2a=_0x4fd00a;return _0x181a8a['userProfileSection'][_0x51fe2a('0x1c53')]({'userProfileId':_0x53aba1[_0x51fe2a('0x197c')][_0x51fe2a('0x1e76')],'sectionId':0x1f5})[_0x51fe2a('0x1af5')];})[_0x4fd00a('0x17e7')](function(_0x267654){const _0xc2a626=_0x4fd00a,_0x16d990=_0x267654&&_0x267654['rows']?_0x267654['rows'][0x0]:null;if(!_0x16d990){const _0xfca1b8=[];let _0x3afec2=null;_0x53aba1['queue']&&(_0x3afec2=_0x49cbdd()[_0xc2a626('0xe8e')](_0x53aba1[_0xc2a626('0x14c4')],{'name':_0x53aba1[_0xc2a626('0x1bd')][_0xc2a626('0x1bd')]}));for(let _0x374407=0x0;_0x374407<_0x53aba1['queues'][_0xc2a626('0x1f73')];_0x374407++){_0x3afec2&&_0x53aba1['queues'][_0x374407]['id']===_0x3afec2['id']&&(_0x53aba1[_0xc2a626('0x14c4')][_0x374407]['canSelect']=![],_0xfca1b8[_0xc2a626('0x269f')](_0x53aba1[_0xc2a626('0x14c4')][_0x374407]));}_0x53aba1[_0xc2a626('0x14c4')]=_0xfca1b8;}else{if(!_0x16d990[_0xc2a626('0x9e3')])return _0x181a8a[_0xc2a626('0x78d')][_0xc2a626('0x1c53')]({'sectionId':_0x16d990['id']})[_0xc2a626('0x1af5')][_0xc2a626('0x17e7')](function(_0xb1106){const _0x14da2c=_0xc2a626,_0x3978a6=_0x49cbdd()['map'](_0xb1106['rows'],function(_0xc7bd19){const _0x389ef0=a0_0xd29e;return _0x49cbdd()[_0x389ef0('0xe8e')](_0x53aba1[_0x389ef0('0x14c4')],{'id':_0xc7bd19[_0x389ef0('0x5db')]});});let _0x518f4e=null;_0x53aba1['queue']&&(_0x518f4e=_0x49cbdd()['find'](_0x53aba1[_0x14da2c('0x14c4')],{'name':_0x53aba1[_0x14da2c('0x1bd')][_0x14da2c('0x1bd')]}));if(_0x518f4e&&!_0x49cbdd()[_0x14da2c('0x26f8')](_0x3978a6,['id',_0x518f4e['id']])){const _0x5df545=_0x49cbdd()[_0x14da2c('0xe8e')](_0x53aba1['queues'],{'id':_0x518f4e['id']});_0x5df545[_0x14da2c('0xe5c')]=![],_0x3978a6[_0x14da2c('0x269f')](_0x5df545);}_0x53aba1[_0x14da2c('0x14c4')]=_0x3978a6;});}})[_0x4fd00a('0x16df')](function(_0x3fadee){const _0x27561d=_0x4fd00a;_0x2ca06e[_0x27561d('0x1db9')]({'title':_0x3fadee['status']?_0x27561d('0x14f7')+_0x3fadee[_0x27561d('0x11c5')]+'\x20-\x20'+_0x3fadee[_0x27561d('0x1833')]:'SYSTEM:GETqueues','msg':_0x3fadee[_0x27561d('0x1457')]?JSON['stringify'](_0x3fadee[_0x27561d('0x1457')]):_0x3fadee[_0x27561d('0x9b6')]()});});function _0x21041b(){const _0xa2cbc9=_0x4fd00a;_0x53aba1['errors']=[];const _0x33ffcb=[];_0x53aba1['queue'][_0xa2cbc9('0x412')]&&_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x412')][_0xa2cbc9('0x19b')]()===_0xa2cbc9('0x1ade')&&_0x53aba1['queue']['appType']===_0xa2cbc9('0xbdc')&&(_0x53aba1[_0xa2cbc9('0x1bd')]['phone']=_0x1f6751[_0xa2cbc9('0x12af')]?(_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x11d4')]||'')+_0xa2cbc9('0x2265')+_0x1f6751[_0xa2cbc9('0x12af')]+'}':(_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x11d4')]||'')+_0xa2cbc9('0x150e'),_0x1f6751[_0xa2cbc9('0x287')]!==_0xa2cbc9('0x7ee')?_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x19')][_0xa2cbc9('0x2567')](_0xa2cbc9('0xa22'))<0x0&&(_0x53aba1['queue'][_0xa2cbc9('0x19')]+='U(xcally-mixmonitor-context)'):_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x19')]=_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x19')][_0xa2cbc9('0x737')](_0xa2cbc9('0xa22'),''));const _0x47f2cf=_0x49cbdd()[_0xa2cbc9('0xe8e')](_0x53aba1[_0xa2cbc9('0x14c4')],{'name':_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x1bd')]});_0x47f2cf&&(_0x53aba1[_0xa2cbc9('0x1bd')][_0x49cbdd()[_0xa2cbc9('0xb41')](_0xa2cbc9('0x2219'))+_0xa2cbc9('0x1bf4')]=_0x47f2cf['id']);if(_0x53aba1['queue'][_0xa2cbc9('0x1c54')]&&_0x53aba1[_0xa2cbc9('0x1bd')]['appType']==='custom'){}else switch((_0x53aba1[_0xa2cbc9('0x1bd')]['app']||_0x53aba1['queue'][_0xa2cbc9('0x1c54')])[_0xa2cbc9('0x19b')]()){case'set':_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x2077')]=_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x2aa')]+'='+_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x175b')];break;case'custom':break;default:_0x33ffcb[0x0]=_0x53aba1['queue'][_0xa2cbc9('0x1bd')],_0x33ffcb[0x1]=_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0xd2f')],_0x53aba1[_0xa2cbc9('0x1bd')][_0xa2cbc9('0x2077')]=_0x33ffcb[_0xa2cbc9('0x1eba')](',');}_0xd7fa99(_0x53aba1[_0xa2cbc9('0x1bd')]);}function _0xd7fa99(_0x17ab9c){_0x533495['hide'](_0x17ab9c);}}const _0x1252a9=_0x4071aa;_0x4f65e8[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),'chatWebsiteApp',_0x4376d8('0xdb2'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x4f65e8(_0x42b8d3,_0x23d1a2,_0x533cf7,_0x5f548a,_0x375a96,_0x4e0028,_0x385c22,_0x1dc4bc){const _0x35d58b=_0x4376d8,_0x4c75a9=this;_0x4c75a9[_0x35d58b('0x197c')]=_0x385c22[_0x35d58b('0x2831')](),_0x4c75a9['errors']=[],_0x4c75a9[_0x35d58b('0x24d3')]=_0x35d58b('0x511')+(_0x5f548a[_0x35d58b('0x1c54')]||_0x5f548a['app'])[_0x35d58b('0x14e2')](),_0x4c75a9[_0x35d58b('0xca8')]=angular['copy'](_0x5f548a),_0x4c75a9[_0x35d58b('0x103e')]=_0x1dc4bc,_0x4c75a9['hasModulePermissions']={};if(_0x4c75a9['system']['appdata'])switch(_0x4c75a9['system'][_0x35d58b('0x1c54')]?_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x1c54')][_0x35d58b('0x19b')]():_0x4c75a9['system'][_0x35d58b('0x643')][_0x35d58b('0x19b')]()){case _0x35d58b('0x8fa'):break;case _0x35d58b('0x2526'):{const _0x2f9463=_0x4c75a9['system'][_0x35d58b('0x2077')][_0x35d58b('0x2007')](',');_0x4c75a9[_0x35d58b('0xca8')]['key']=_0x2f9463[0x0],_0x4c75a9['system'][_0x35d58b('0x3e1')]=_0x2f9463[0x1],_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x1083')]=_0x2f9463['slice'](0x2,_0x2f9463[_0x35d58b('0x1f73')])['join'](',');}break;case _0x35d58b('0x22ac'):{const _0x161bd5=_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x2077')]['split'](',');_0x4c75a9['system'][_0x35d58b('0x28ab')]=_0x161bd5[0x0],_0x4c75a9[_0x35d58b('0xca8')]['clientEmail']=_0x161bd5[0x1],_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x1bc2')]=_0x161bd5[0x2],_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x3e1')]=_0x161bd5[0x3],_0x4c75a9[_0x35d58b('0xca8')]['welcomemessage']=_0x161bd5[_0x35d58b('0x275f')](0x4,_0x161bd5[_0x35d58b('0x1f73')])[_0x35d58b('0x1eba')](',');}break;case _0x35d58b('0x16a9'):{const _0x1a8764=_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x2077')][_0x35d58b('0x2007')](',');_0x4c75a9['system'][_0x35d58b('0x1452')]=_0x1a8764[0x0],_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x1a62')]=_0x1a8764[0x1],_0x4c75a9['system']['lexregion']=_0x1a8764[0x2],_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x4a')]=_0x1a8764[0x3],_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x1083')]=_0x1a8764[_0x35d58b('0x275f')](0x4,_0x1a8764[_0x35d58b('0x1f73')])[_0x35d58b('0x1eba')](',');}break;case _0x35d58b('0x96e'):{const _0x54d075=_0x4c75a9['system'][_0x35d58b('0x2077')][_0x35d58b('0x2007')](',');_0x4c75a9[_0x35d58b('0xca8')]['times']=isNaN(_0x54d075[0x0])?_0x54d075[0x0]:parseInt(_0x54d075[0x0],0xa),_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x132f')]=_0x54d075[_0x35d58b('0x275f')](0x1,_0x54d075[_0x35d58b('0x1f73')])['join'](',');}break;case _0x35d58b('0x1603'):_0x4c75a9[_0x35d58b('0xca8')]['text']=_0x4c75a9['system'][_0x35d58b('0x2077')];break;case _0x35d58b('0xf2e'):_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x2aa')]=_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x2077')][_0x35d58b('0x2007')]('=')[0x0],_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x175b')]=_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x2077')]['split']('=')[0x1];break;case _0x35d58b('0x17c6'):_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x87c')]=_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x2077')];break;default:{const _0x74d280=_0x4c75a9['system'][_0x35d58b('0x2077')][_0x35d58b('0x2007')](',');_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x1115')]=_0x49cbdd()[_0x35d58b('0x109a')](_0x74d280[0x0])?_0x74d280[0x0]:isNaN(_0x74d280[0x0])?_0x74d280[0x0]:parseInt(_0x74d280[0x0],0xa),_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0xb0a')]=_0x49cbdd()[_0x35d58b('0x109a')](_0x74d280[0x1])?_0x74d280[0x1]:isNaN(_0x74d280[0x1])?_0x74d280[0x1]:parseInt(_0x74d280[0x1],0xa);}break;}else _0x4c75a9[_0x35d58b('0xca8')]['variable']='';_0x4c75a9[_0x35d58b('0xca8')]['type']&&_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x412')][_0x35d58b('0x19b')]()===_0x35d58b('0x1ade')&&_0x4c75a9['system']['appType']['toLowerCase']()===_0x35d58b('0x1711')&&(_0x4c75a9['system'][_0x35d58b('0x11d4')]=_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x2154')]?_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x2154')][_0x35d58b('0x2007')]('$')[0x0]:undefined,_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x1a8e')]=_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x17f4')]?'CALLERID(all)='+_0x4c75a9[_0x35d58b('0xca8')][_0x35d58b('0x17f4')]:undefined);_0x4c75a9[_0x35d58b('0x606')]=_0x56e3ba,_0x4c75a9[_0x35d58b('0x136e')]=_0x18db7d,_0x385c22[_0x35d58b('0x1ba2')](_0x35d58b('0x20bf'))?_0x4e0028[_0x35d58b('0xb0a')]['get']({'fields':_0x35d58b('0x12d2'),'sort':_0x35d58b('0x2aa'),'nolimit':_0x35d58b('0xe34')})[_0x35d58b('0x1af5')]['then'](function(_0x2593ef){const _0x7f4a17=_0x35d58b;_0x4c75a9[_0x7f4a17('0xd26')]=_0x2593ef['rows']||[];})[_0x35d58b('0x16df')](function(_0x564e10){const _0x40d92e=_0x35d58b;_0x533cf7[_0x40d92e('0x1db9')]({'title':_0x564e10[_0x40d92e('0x11c5')]?_0x40d92e('0x14f7')+_0x564e10[_0x40d92e('0x11c5')]+_0x40d92e('0x16e4')+_0x564e10[_0x40d92e('0x1833')]:_0x40d92e('0x1edc'),'msg':_0x564e10[_0x40d92e('0x1457')]?JSON[_0x40d92e('0x678')](_0x564e10[_0x40d92e('0x1457')]):_0x564e10[_0x40d92e('0x9b6')]()});}):_0x4e0028['variable'][_0x35d58b('0x1c53')]({'fields':'id,name','sort':'name','nolimit':_0x35d58b('0xe34')})['$promise']['then'](function(_0xb589bd){const _0x518217=_0x35d58b;_0x4c75a9[_0x518217('0xd26')]=_0xb589bd['rows']||[];})[_0x35d58b('0x17e7')](function(){const _0x233d9e=_0x35d58b;return _0x4e0028[_0x233d9e('0x383')][_0x233d9e('0x1c53')]({'userProfileId':_0x4c75a9[_0x233d9e('0x197c')][_0x233d9e('0x1e76')],'sectionId':0x3f4})[_0x233d9e('0x1af5')];})[_0x35d58b('0x17e7')](function(_0x12ff1a){const _0x1f0a9c=_0x35d58b,_0x45cc70=_0x12ff1a&&_0x12ff1a[_0x1f0a9c('0x2319')]?_0x12ff1a[_0x1f0a9c('0x2319')][0x0]:null;if(!_0x45cc70){const _0x2998bb=[];let _0x334576=null;_0x4c75a9['system']&&(_0x334576=_0x49cbdd()[_0x1f0a9c('0xe8e')](_0x4c75a9[_0x1f0a9c('0xd26')],{'name':_0x4c75a9[_0x1f0a9c('0xca8')][_0x1f0a9c('0xb0a')]}));for(let _0xf6f7a=0x0;_0xf6f7a<_0x4c75a9[_0x1f0a9c('0xd26')][_0x1f0a9c('0x1f73')];_0xf6f7a++){_0x334576&&_0x4c75a9[_0x1f0a9c('0xd26')][_0xf6f7a]['id']===_0x334576['id']&&(_0x4c75a9[_0x1f0a9c('0xd26')][_0xf6f7a][_0x1f0a9c('0xe5c')]=![],_0x2998bb['push'](_0x4c75a9[_0x1f0a9c('0xd26')][_0xf6f7a]));}_0x4c75a9[_0x1f0a9c('0xd26')]=_0x2998bb;}else{if(!_0x45cc70[_0x1f0a9c('0x9e3')])return _0x4e0028[_0x1f0a9c('0x78d')][_0x1f0a9c('0x1c53')]({'sectionId':_0x45cc70['id']})['$promise'][_0x1f0a9c('0x17e7')](function(_0xa24914){const _0x146590=_0x1f0a9c,_0x23f90e=_0x49cbdd()[_0x146590('0x787')](_0xa24914['rows'],function(_0x5b2008){const _0x3c9581=_0x146590;return _0x49cbdd()['find'](_0x4c75a9[_0x3c9581('0xd26')],{'id':_0x5b2008[_0x3c9581('0x5db')]});});let _0x394171=null;_0x4c75a9[_0x146590('0xca8')]&&(_0x394171=_0x49cbdd()[_0x146590('0xe8e')](_0x4c75a9[_0x146590('0xd26')],{'name':_0x4c75a9[_0x146590('0xca8')]['variable']}));if(_0x394171&&!_0x49cbdd()[_0x146590('0x26f8')](_0x23f90e,['id',_0x394171['id']])){const _0x52dc6f=_0x49cbdd()[_0x146590('0xe8e')](_0x4c75a9['variables'],{'id':_0x394171['id']});_0x52dc6f['canSelect']=![],_0x23f90e[_0x146590('0x269f')](_0x52dc6f);}_0x4c75a9[_0x146590('0xd26')]=_0x23f90e;});}})[_0x35d58b('0x16df')](function(_0x4f8e63){const _0x17f57a=_0x35d58b;_0x533cf7[_0x17f57a('0x1db9')]({'title':_0x4f8e63[_0x17f57a('0x11c5')]?'API:'+_0x4f8e63[_0x17f57a('0x11c5')]+_0x17f57a('0x16e4')+_0x4f8e63[_0x17f57a('0x1833')]:_0x17f57a('0xef7'),'msg':_0x4f8e63[_0x17f57a('0x1457')]?JSON[_0x17f57a('0x678')](_0x4f8e63[_0x17f57a('0x1457')]):_0x4f8e63[_0x17f57a('0x9b6')]()});});function _0x56e3ba(){const _0x48eb18=_0x35d58b;_0x4c75a9['errors']=[];const _0x269173=[];_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x412')]&&_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x412')][_0x48eb18('0x19b')]()===_0x48eb18('0x1ade')&&_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x1c54')]===_0x48eb18('0xbdc')&&(_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x2154')]=_0x375a96['cutdigits']?(_0x4c75a9[_0x48eb18('0xca8')]['prefix']||'')+'${EXTEN:'+_0x375a96[_0x48eb18('0x12af')]+'}':(_0x4c75a9['system']['prefix']||'')+_0x48eb18('0x150e'),_0x375a96[_0x48eb18('0x287')]!=='none'?_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x19')][_0x48eb18('0x2567')](_0x48eb18('0xa22'))<0x0&&(_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x19')]+='U(xcally-mixmonitor-context)'):_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x19')]=_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x19')]['replace'](_0x48eb18('0xa22'),''));if(_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x1c54')]&&_0x4c75a9[_0x48eb18('0xca8')]['appType']===_0x48eb18('0x8fa')){}else switch((_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x643')]||_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x1c54')])['toLowerCase']()){case'set':_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x2077')]=_0x4c75a9['system'][_0x48eb18('0x2aa')]+'='+_0x4c75a9['system'][_0x48eb18('0x175b')];break;case _0x48eb18('0x8fa'):break;default:_0x269173[0x0]=_0x4c75a9[_0x48eb18('0xca8')]['command'],_0x269173[0x1]=_0x4c75a9[_0x48eb18('0xca8')]['variable'],_0x4c75a9[_0x48eb18('0xca8')][_0x48eb18('0x2077')]=_0x269173['join'](',');}_0x18db7d(_0x4c75a9[_0x48eb18('0xca8')]);}function _0x18db7d(_0x5d3b66){const _0x20d8e8=_0x35d58b;_0x42b8d3[_0x20d8e8('0x212a')](_0x5d3b66);}}const _0x326476=_0x4f65e8;_0x10baa8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x2de'),'chatWebsite',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x10baa8(_0x34f48f,_0x41415d,_0x25084e,_0x1fa3ee,_0x5ac62c,_0x4c8974,_0x39ee61,_0x26321c){const _0x3c6a16=_0x4376d8,_0x2982bc=this;_0x2982bc[_0x3c6a16('0x197c')]=_0x39ee61['getCurrentUser'](),_0x2982bc['errors']=[],_0x2982bc[_0x3c6a16('0x24d3')]=_0x3c6a16('0x511')+(_0x1fa3ee[_0x3c6a16('0x1c54')]||_0x1fa3ee[_0x3c6a16('0x643')])[_0x3c6a16('0x14e2')](),_0x2982bc[_0x3c6a16('0x1132')]=angular['copy'](_0x1fa3ee),_0x2982bc[_0x3c6a16('0x103e')]=_0x26321c,_0x2982bc['hasModulePermissions']={};if(_0x2982bc['tag']['appdata'])switch(_0x2982bc['tag'][_0x3c6a16('0x1c54')]?_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1c54')]['toLowerCase']():_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x643')][_0x3c6a16('0x19b')]()){case _0x3c6a16('0x8fa'):break;case _0x3c6a16('0x2526'):{const _0x39ac20=_0x2982bc[_0x3c6a16('0x1132')]['appdata'][_0x3c6a16('0x2007')](',');_0x2982bc['tag'][_0x3c6a16('0xdb5')]=_0x39ac20[0x0],_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x3e1')]=_0x39ac20[0x1],_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1083')]=_0x39ac20[_0x3c6a16('0x275f')](0x2,_0x39ac20['length'])['join'](',');}break;case _0x3c6a16('0x22ac'):{const _0x41cde5=_0x2982bc[_0x3c6a16('0x1132')]['appdata']['split'](',');_0x2982bc['tag'][_0x3c6a16('0x28ab')]=_0x41cde5[0x0],_0x2982bc['tag'][_0x3c6a16('0x2814')]=_0x41cde5[0x1],_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1bc2')]=_0x41cde5[0x2],_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x3e1')]=_0x41cde5[0x3],_0x2982bc[_0x3c6a16('0x1132')]['welcomemessage']=_0x41cde5['slice'](0x4,_0x41cde5[_0x3c6a16('0x1f73')])[_0x3c6a16('0x1eba')](',');}break;case _0x3c6a16('0x16a9'):{const _0x243388=_0x2982bc[_0x3c6a16('0x1132')]['appdata'][_0x3c6a16('0x2007')](',');_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1452')]=_0x243388[0x0],_0x2982bc['tag'][_0x3c6a16('0x1a62')]=_0x243388[0x1],_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1dcf')]=_0x243388[0x2],_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x4a')]=_0x243388[0x3],_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1083')]=_0x243388[_0x3c6a16('0x275f')](0x4,_0x243388['length'])[_0x3c6a16('0x1eba')](',');}break;case _0x3c6a16('0x96e'):{const _0x5807d7=_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x2077')][_0x3c6a16('0x2007')](',');_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x12a6')]=isNaN(_0x5807d7[0x0])?_0x5807d7[0x0]:parseInt(_0x5807d7[0x0],0xa),_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x132f')]=_0x5807d7[_0x3c6a16('0x275f')](0x1,_0x5807d7['length'])[_0x3c6a16('0x1eba')](',');}break;case'message':_0x2982bc['tag'][_0x3c6a16('0x132f')]=_0x2982bc[_0x3c6a16('0x1132')]['appdata'];break;case _0x3c6a16('0xf2e'):_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x2aa')]=_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x2077')]['split']('=')[0x0],_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x175b')]=_0x2982bc[_0x3c6a16('0x1132')]['appdata'][_0x3c6a16('0x2007')]('=')[0x1];break;case _0x3c6a16('0x17c6'):_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x87c')]=_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x2077')];break;default:{const _0x4c93ec=_0x2982bc['tag'][_0x3c6a16('0x2077')]['split'](',');_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1132')]=_0x49cbdd()[_0x3c6a16('0x109a')](_0x4c93ec[0x0])?_0x4c93ec[0x0]:isNaN(_0x4c93ec[0x0])?_0x4c93ec[0x0]:parseInt(_0x4c93ec[0x0],0xa);}break;}else{}_0x2982bc['tag']['type']&&_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x412')][_0x3c6a16('0x19b')]()==='outbound'&&_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1c54')][_0x3c6a16('0x19b')]()===_0x3c6a16('0x1711')&&(_0x2982bc['tag'][_0x3c6a16('0x11d4')]=_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x2154')]?_0x2982bc['tag']['phone'][_0x3c6a16('0x2007')]('$')[0x0]:undefined,_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x1a8e')]=_0x2982bc[_0x3c6a16('0x1132')]['callerID']?'CALLERID(all)='+_0x2982bc[_0x3c6a16('0x1132')][_0x3c6a16('0x17f4')]:undefined);_0x2982bc['saveChatWebsiteApp']=_0x3bd503,_0x2982bc[_0x3c6a16('0x136e')]=_0x29cc66,_0x39ee61[_0x3c6a16('0x1ba2')](_0x3c6a16('0x20bf'))?_0x4c8974[_0x3c6a16('0x1132')][_0x3c6a16('0x1c53')]({'fields':'id,name','sort':_0x3c6a16('0x2aa'),'nolimit':'true'})[_0x3c6a16('0x1af5')]['then'](function(_0x4dccd8){const _0x4c68cd=_0x3c6a16;_0x2982bc[_0x4c68cd('0x1522')]=_0x4dccd8[_0x4c68cd('0x2319')]||[];})[_0x3c6a16('0x16df')](function(_0x385edc){const _0x53a3a5=_0x3c6a16;_0x25084e[_0x53a3a5('0x1db9')]({'title':_0x385edc[_0x53a3a5('0x11c5')]?'API:'+_0x385edc[_0x53a3a5('0x11c5')]+_0x53a3a5('0x16e4')+_0x385edc['statusText']:_0x53a3a5('0x14e7'),'msg':_0x385edc[_0x53a3a5('0x1457')]?JSON['stringify'](_0x385edc[_0x53a3a5('0x1457')]):_0x385edc[_0x53a3a5('0x9b6')]()});}):_0x4c8974[_0x3c6a16('0x1132')][_0x3c6a16('0x1c53')]({'fields':_0x3c6a16('0x12d2'),'sort':_0x3c6a16('0x2aa'),'nolimit':_0x3c6a16('0xe34')})[_0x3c6a16('0x1af5')][_0x3c6a16('0x17e7')](function(_0x6af651){const _0x528cd6=_0x3c6a16;_0x2982bc[_0x528cd6('0x1522')]=_0x6af651['rows']||[];})['then'](function(){const _0x591165=_0x3c6a16;return _0x4c8974['userProfileSection'][_0x591165('0x1c53')]({'userProfileId':_0x2982bc[_0x591165('0x197c')]['userProfileId'],'sectionId':0x3f0})[_0x591165('0x1af5')];})[_0x3c6a16('0x17e7')](function(_0x40bfd7){const _0x4dc901=_0x3c6a16,_0xf5c7c8=_0x40bfd7&&_0x40bfd7[_0x4dc901('0x2319')]?_0x40bfd7['rows'][0x0]:null;if(!_0xf5c7c8){const _0x308b72=[];let _0x10fad2=null;_0x2982bc[_0x4dc901('0x1132')]&&(_0x10fad2=_0x49cbdd()[_0x4dc901('0xe8e')](_0x2982bc[_0x4dc901('0x1522')],{'name':_0x2982bc[_0x4dc901('0x1132')]['tag']}));for(let _0x1ea610=0x0;_0x1ea610<_0x2982bc[_0x4dc901('0x1522')][_0x4dc901('0x1f73')];_0x1ea610++){_0x10fad2&&_0x2982bc[_0x4dc901('0x1522')][_0x1ea610]['id']===_0x10fad2['id']&&(_0x2982bc[_0x4dc901('0x1522')][_0x1ea610]['canSelect']=![],_0x308b72[_0x4dc901('0x269f')](_0x2982bc[_0x4dc901('0x1522')][_0x1ea610]));}_0x2982bc[_0x4dc901('0x1522')]=_0x308b72;}else{if(!_0xf5c7c8['autoAssociation'])return _0x4c8974[_0x4dc901('0x78d')]['get']({'sectionId':_0xf5c7c8['id']})['$promise'][_0x4dc901('0x17e7')](function(_0x492544){const _0xeb475a=_0x4dc901,_0x3ddf33=_0x49cbdd()[_0xeb475a('0x787')](_0x492544[_0xeb475a('0x2319')],function(_0x1046ae){const _0x2edf4d=_0xeb475a;return _0x49cbdd()[_0x2edf4d('0xe8e')](_0x2982bc[_0x2edf4d('0x1522')],{'id':_0x1046ae[_0x2edf4d('0x5db')]});});let _0x581818=null;_0x2982bc[_0xeb475a('0x1132')]&&(_0x581818=_0x49cbdd()[_0xeb475a('0xe8e')](_0x2982bc['tags'],{'name':_0x2982bc['tag'][_0xeb475a('0x1132')]}));if(_0x581818&&!_0x49cbdd()[_0xeb475a('0x26f8')](_0x3ddf33,['id',_0x581818['id']])){const _0x4d16ea=_0x49cbdd()[_0xeb475a('0xe8e')](_0x2982bc[_0xeb475a('0x1522')],{'id':_0x581818['id']});_0x4d16ea[_0xeb475a('0xe5c')]=![],_0x3ddf33[_0xeb475a('0x269f')](_0x4d16ea);}_0x2982bc[_0xeb475a('0x1522')]=_0x3ddf33;});}})[_0x3c6a16('0x16df')](function(_0xd570b4){const _0x5d7894=_0x3c6a16;_0x25084e[_0x5d7894('0x1db9')]({'title':_0xd570b4[_0x5d7894('0x11c5')]?_0x5d7894('0x14f7')+_0xd570b4[_0x5d7894('0x11c5')]+'\x20-\x20'+_0xd570b4[_0x5d7894('0x1833')]:_0x5d7894('0x1221'),'msg':_0xd570b4[_0x5d7894('0x1457')]?JSON[_0x5d7894('0x678')](_0xd570b4[_0x5d7894('0x1457')]):_0xd570b4[_0x5d7894('0x9b6')]()});});function _0x3bd503(){const _0x3b5694=_0x3c6a16;_0x2982bc[_0x3b5694('0x73e')]=[];const _0x29d1d4=[];_0x2982bc['tag'][_0x3b5694('0x412')]&&_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x412')][_0x3b5694('0x19b')]()===_0x3b5694('0x1ade')&&_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x1c54')]===_0x3b5694('0xbdc')&&(_0x2982bc[_0x3b5694('0x1132')]['phone']=_0x5ac62c[_0x3b5694('0x12af')]?(_0x2982bc[_0x3b5694('0x1132')]['prefix']||'')+_0x3b5694('0x2265')+_0x5ac62c['cutdigits']+'}':(_0x2982bc['tag'][_0x3b5694('0x11d4')]||'')+_0x3b5694('0x150e'),_0x5ac62c[_0x3b5694('0x287')]!==_0x3b5694('0x7ee')?_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x19')][_0x3b5694('0x2567')](_0x3b5694('0xa22'))<0x0&&(_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x19')]+=_0x3b5694('0xa22')):_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x19')]=_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x19')][_0x3b5694('0x737')](_0x3b5694('0xa22'),''));const _0x2f95ec=_0x49cbdd()[_0x3b5694('0xe8e')](_0x2982bc[_0x3b5694('0x1522')],{'name':_0x2982bc['tag']['tag']});_0x2f95ec&&(_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x1686')]=_0x2f95ec['id']);if(_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x1c54')]&&_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x1c54')]===_0x3b5694('0x8fa')){}else switch((_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x643')]||_0x2982bc['tag'][_0x3b5694('0x1c54')])['toLowerCase']()){case _0x3b5694('0xf2e'):_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x2077')]=_0x2982bc['tag'][_0x3b5694('0x2aa')]+'='+_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x175b')];break;case _0x3b5694('0x8fa'):break;default:_0x29d1d4[0x0]=_0x2982bc[_0x3b5694('0x1132')]['tag'],_0x2982bc[_0x3b5694('0x1132')][_0x3b5694('0x2077')]=_0x29d1d4['join'](',');}_0x29cc66(_0x2982bc['tag']);}function _0x29cc66(_0x1444f5){const _0x269893=_0x3c6a16;_0x34f48f[_0x269893('0x212a')](_0x1444f5);}}const _0x44955f=_0x10baa8,_0x588c75=_0x4cf2bc['p']+_0x4376d8('0x201c');_0xe9aa09[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),_0x4376d8('0xef1'),'$mdDialog','$document',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0xe9aa09(_0xb4ffb4,_0x3060f3,_0x328471,_0x2c409f,_0x44f339,_0x259baa,_0x555e67,_0x17bef6,_0x55381f,_0x4b9125,_0x34976e){const _0x34972a=_0x4376d8,_0x54981a=this;_0x54981a[_0x34972a('0x197c')]=_0x34976e[_0x34972a('0x2831')](),_0x54981a[_0x34972a('0xdb2')]={},_0x54981a[_0x34972a('0x2887')]={'count':0x0,'rows':[]},_0x54981a[_0x34972a('0x1e69')]=[],_0x54981a[_0x34972a('0x103e')],_0x54981a[_0x34972a('0x826')]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x54981a[_0x34972a('0x161d')]=_0x45d19e,_0x54981a[_0x34972a('0x1a20')]=_0x383b7e,_0x54981a[_0x34972a('0x130d')]=_0x31f0be,_0x54981a[_0x34972a('0x55')]=_0x3e3f09,_0x54981a[_0x34972a('0x60c')]=_0x48c3f7,_0x54981a[_0x34972a('0x1ce7')]=_0x316e11,_0x54981a['deleteChatWebsiteChatCannedAnswer']=_0x2aa1f6,_0x54981a[_0x34972a('0x806')]=_0x1478d1;function _0x45d19e(_0x4385fb,_0x74ff3b){const _0x392d29=_0x34972a;_0x54981a[_0x392d29('0xdb2')]=_0x4385fb,_0x54981a[_0x392d29('0x103e')]=typeof _0x74ff3b!==_0x392d29('0xfad')?_0x74ff3b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x54981a[_0x392d29('0x826')][_0x392d29('0x259')]=_0x54981a['chatWebsite']['id'],_0x54981a[_0x392d29('0x826')]['id']=_0x54981a[_0x392d29('0xdb2')]['id'],_0x3e3f09();}function _0x383b7e(_0x2399c7,_0x40b2b2){const _0x37856c=_0x34972a,_0x408d80=_0x555e67['confirm']()[_0x37856c('0x24d3')](_0x37856c('0x235e'))['htmlContent'](_0x37856c('0xa53')+(_0x2399c7[_0x37856c('0x2aa')]||_0x2399c7['id']&&_0x49cbdd()['upperFirst'](_0x37856c('0x460'))+_0x2399c7['id']||_0x37856c('0xde8'))+_0x37856c('0x1d23')+'\x20will\x20be\x20deleted.')[_0x37856c('0x2095')](_0x37856c('0x7a6'))[_0x37856c('0x104f')](_0x40b2b2)['ok']('OK')[_0x37856c('0x1d47')](_0x37856c('0x28a0'));_0x555e67[_0x37856c('0x28e2')](_0x408d80)[_0x37856c('0x17e7')](function(){_0x2aa1f6(_0x2399c7);},function(){const _0x52d480=_0x37856c;console[_0x52d480('0x1d63')]('CANCEL');});}function _0x31f0be(_0x192c5c){const _0x508cfe=_0x34972a;_0x54981a[_0x508cfe('0x2887')]=_0x192c5c||{'count':0x0,'rows':[]};}function _0x3e3f09(){const _0x4aed52=_0x34972a;_0x54981a['query'][_0x4aed52('0xf19')]=(_0x54981a[_0x4aed52('0x826')][_0x4aed52('0x115a')]-0x1)*_0x54981a[_0x4aed52('0x826')][_0x4aed52('0x193b')],_0x54981a[_0x4aed52('0x1691')]=_0x4b9125[_0x4aed52('0xdb2')][_0x4aed52('0x1805')](_0x54981a['query'],_0x31f0be)['$promise'];}function _0x48c3f7(_0x46c883,_0x41a508){const _0x5ad6e0=_0x34972a;_0x555e67[_0x5ad6e0('0x28e2')]({'controller':'CreateOrEditChatCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x588c75,'parent':angular[_0x5ad6e0('0x1ce1')](_0x17bef6[_0x5ad6e0('0x13aa')]),'targetEvent':_0x46c883,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x54981a['chatWebsite'],'chatCannedAnswer':_0x41a508,'chatCannedAnswers':_0x54981a['chatWebsiteChatCannedAnswers'][_0x5ad6e0('0x2319')],'license':null,'setting':null,'crudPermissions':_0x54981a[_0x5ad6e0('0x103e')]}});}function _0x2aa1f6(_0x19f13d){const _0xfd8df=_0x34972a;_0x4b9125[_0xfd8df('0x2043')][_0xfd8df('0x1da6')]({'id':_0x19f13d['id']})[_0xfd8df('0x1af5')][_0xfd8df('0x17e7')](function(){const _0x355ba7=_0xfd8df;_0x49cbdd()['remove'](_0x54981a[_0x355ba7('0x2887')][_0x355ba7('0x2319')],{'id':_0x19f13d['id']}),_0x54981a[_0x355ba7('0x2887')]['count']-=0x1,!_0x54981a[_0x355ba7('0x2887')][_0x355ba7('0x2319')][_0x355ba7('0x1f73')]&&_0x3e3f09(),_0x55381f['success']({'title':_0x355ba7('0xa7a'),'msg':_0x19f13d[_0x355ba7('0x2aa')]?_0x19f13d['name']+_0x355ba7('0x149f'):''});})[_0xfd8df('0x16df')](function(_0x122258){const _0x30d009=_0xfd8df;if(_0x122258[_0x30d009('0x1457')]&&_0x122258[_0x30d009('0x1457')][_0x30d009('0x73e')]&&_0x122258['data'][_0x30d009('0x73e')][_0x30d009('0x1f73')]){_0x54981a[_0x30d009('0x73e')]=_0x122258['data'][_0x30d009('0x73e')]||[{'message':_0x122258[_0x30d009('0x9b6')](),'type':_0x30d009('0xa98')}];for(let _0x29536d=0x0;_0x29536d<_0x122258['data'][_0x30d009('0x73e')][_0x30d009('0x1f73')];_0x29536d++){_0x55381f['error']({'title':_0x122258[_0x30d009('0x1457')]['errors'][_0x29536d][_0x30d009('0x412')],'msg':_0x122258[_0x30d009('0x1457')][_0x30d009('0x73e')][_0x29536d]['message']});}}else _0x55381f[_0x30d009('0x1db9')]({'title':_0x122258['status']?_0x30d009('0x14f7')+_0x122258[_0x30d009('0x11c5')]+_0x30d009('0x16e4')+_0x122258[_0x30d009('0x1833')]:_0x30d009('0xa98'),'msg':_0x122258[_0x30d009('0x1457')]?JSON[_0x30d009('0x678')](_0x122258[_0x30d009('0x1457')]['message']):_0x122258['message']||_0x122258['toString']()});});}function _0x316e11(){const _0xe34a8b=_0x34972a,_0x40e591=angular[_0xe34a8b('0x14e5')](_0x54981a[_0xe34a8b('0x1e69')]);return _0x54981a['selectedChatWebsiteChatCannedAnswers']=[],_0x40e591;}function _0x1478d1(_0x46ef65){const _0x45ef68=_0x34972a,_0x835890=_0x555e67[_0x45ef68('0x1121')]()[_0x45ef68('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20chatCannedAnswers?')[_0x45ef68('0x211f')](''+_0x54981a[_0x45ef68('0x1e69')][_0x45ef68('0x1f73')]+_0x45ef68('0x145a')+_0x45ef68('0xe9f'))['ariaLabel']('delete\x20chatCannedAnswers')[_0x45ef68('0x104f')](_0x46ef65)['ok']('OK')['cancel'](_0x45ef68('0x28a0'));_0x555e67[_0x45ef68('0x28e2')](_0x835890)['then'](function(){const _0x1453d7=_0x45ef68;_0x54981a[_0x1453d7('0x1e69')]['forEach'](function(_0x2e92f3){_0x2aa1f6(_0x2e92f3);}),_0x54981a[_0x1453d7('0x1e69')]=[];});}let _0x333c58=!![],_0x51f5b7=0x1;_0x3060f3[_0x34972a('0x620')](_0x34972a('0x4c3'),function(_0x327a7c,_0x239ef6){const _0x2b25f0=_0x34972a;_0x333c58?_0x259baa(function(){_0x333c58=![];}):(!_0x239ef6&&(_0x51f5b7=_0x54981a[_0x2b25f0('0x826')]['page']),_0x327a7c!==_0x239ef6&&(_0x54981a[_0x2b25f0('0x826')][_0x2b25f0('0x115a')]=0x1),!_0x327a7c&&(_0x54981a['query'][_0x2b25f0('0x115a')]=_0x51f5b7),_0x3e3f09());});}const _0x4fc0dc=_0xe9aa09;_0x4ce0a4[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x2382'),_0x4376d8('0xde8'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x4ce0a4(_0x14cb5d,_0x7bf0c2,_0x485591,_0x35c897,_0x3533ef,_0x3accbc,_0x33f0ad,_0x2d7e05,_0x162145,_0x2c213e,_0x115e1a,_0x46f933,_0x26d298,_0x295e76){const _0x29e532=_0x4376d8,_0x541806=this;_0x541806[_0x29e532('0x197c')]=_0x115e1a[_0x29e532('0x2831')](),_0x541806['errors']=[],_0x541806[_0x29e532('0x1aeb')]=_0x26d298,_0x541806[_0x29e532('0x1d11')]=_0x46f933,_0x541806[_0x29e532('0x103e')]=_0x295e76,_0x541806[_0x29e532('0x6ee')]={},_0x541806[_0x29e532('0x1572')]=_0x541806[_0x29e532('0x1aeb')]&&_0x541806[_0x29e532('0x1aeb')][_0x29e532('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x541806[_0x29e532('0x24d3')]=_0x29e532('0x9f2'),_0x541806[_0x29e532('0xde8')]=angular[_0x29e532('0x14e5')](_0x162145),_0x541806[_0x29e532('0x2382')]=_0x2d7e05,_0x541806['newChatCannedAnswer']=![];!_0x541806['chatCannedAnswer']&&(_0x541806[_0x29e532('0xde8')]={},_0x541806[_0x29e532('0x24d3')]=_0x29e532('0x2018'),_0x541806['newChatCannedAnswer']=!![]);_0x7bf0c2[_0x29e532('0x16fb')]['id']&&(_0x541806[_0x29e532('0xde8')]['ChatWebsiteId']=_0x7bf0c2['params']['id']);_0x541806[_0x29e532('0x1b6a')]=_0x24cf7c,_0x541806[_0x29e532('0x195c')]=_0x2c4175,_0x541806[_0x29e532('0x1a7a')]=_0x306085,_0x541806['getDateFromString']=_0x3d5096,_0x541806[_0x29e532('0x136e')]=_0x2b1440;function _0x24cf7c(){const _0x240751=_0x29e532;_0x541806[_0x240751('0x73e')]=[],_0x2c213e[_0x240751('0x2043')][_0x240751('0x2439')](_0x541806[_0x240751('0xde8')])[_0x240751('0x1af5')]['then'](function(_0x54a4bd){const _0x3c0675=_0x240751;_0x541806[_0x3c0675('0x2382')][_0x3c0675('0x1893')](_0x54a4bd[_0x3c0675('0x16b2')]()),_0x33f0ad[_0x3c0675('0x130d')]({'title':_0x3c0675('0x109e'),'msg':_0x541806[_0x3c0675('0xde8')]['name']?_0x541806[_0x3c0675('0xde8')]['name']+_0x3c0675('0x15a'):''}),_0x2b1440(_0x54a4bd);})[_0x240751('0x16df')](function(_0xcb5a98){const _0x3a1f51=_0x240751;if(_0xcb5a98[_0x3a1f51('0x1457')]&&_0xcb5a98['data'][_0x3a1f51('0x73e')]&&_0xcb5a98['data']['errors'][_0x3a1f51('0x1f73')]){_0x541806['errors']=_0xcb5a98[_0x3a1f51('0x1457')][_0x3a1f51('0x73e')]||[{'message':_0xcb5a98[_0x3a1f51('0x9b6')](),'type':'api.cannedAnswer.save'}];for(let _0x45d279=0x0;_0x45d279<_0xcb5a98['data'][_0x3a1f51('0x73e')]['length'];_0x45d279+=0x1){_0x33f0ad[_0x3a1f51('0x1db9')]({'title':_0xcb5a98[_0x3a1f51('0x1457')][_0x3a1f51('0x73e')][_0x45d279]['type'],'msg':_0xcb5a98[_0x3a1f51('0x1457')][_0x3a1f51('0x73e')][_0x45d279]['message']});}}else _0x33f0ad[_0x3a1f51('0x1db9')]({'title':_0xcb5a98[_0x3a1f51('0x11c5')]?_0x3a1f51('0x14f7')+_0xcb5a98[_0x3a1f51('0x11c5')]+'\x20-\x20'+_0xcb5a98['statusText']:_0x3a1f51('0x258e'),'msg':_0xcb5a98[_0x3a1f51('0x1457')]?JSON[_0x3a1f51('0x678')](_0xcb5a98[_0x3a1f51('0x1457')]['message']):_0xcb5a98['toString']()});});}function _0x2c4175(){const _0x162233=_0x29e532;_0x541806[_0x162233('0x73e')]=[],_0x2c213e[_0x162233('0x2043')][_0x162233('0x27ba')]({'id':_0x541806['chatCannedAnswer']['id']},_0x541806[_0x162233('0xde8')])['$promise']['then'](function(_0x1c9d84){const _0x493160=_0x162233,_0x8e829c=_0x49cbdd()[_0x493160('0xe8e')](_0x541806[_0x493160('0x2382')],{'id':_0x1c9d84['id']});_0x8e829c&&_0x49cbdd()[_0x493160('0x1ced')](_0x8e829c,_0x49cbdd()[_0x493160('0x230a')](_0x1c9d84[_0x493160('0x16b2')](),_0x49cbdd()[_0x493160('0x1c0f')](_0x8e829c))),_0x33f0ad['success']({'title':_0x493160('0x25d8'),'msg':_0x541806[_0x493160('0xde8')]['name']?_0x541806[_0x493160('0xde8')]['name']+_0x493160('0x15ca'):''}),_0x2b1440(_0x1c9d84);})[_0x162233('0x16df')](function(_0x986156){const _0x307174=_0x162233;if(_0x986156[_0x307174('0x1457')]&&_0x986156['data'][_0x307174('0x73e')]&&_0x986156['data'][_0x307174('0x73e')]['length']){_0x541806[_0x307174('0x73e')]=_0x986156[_0x307174('0x1457')][_0x307174('0x73e')]||[{'message':_0x986156[_0x307174('0x9b6')](),'type':'api.cannedAnswer.update'}];for(let _0xa9e553=0x0;_0xa9e553<_0x986156['data'][_0x307174('0x73e')][_0x307174('0x1f73')];_0xa9e553++){_0x33f0ad['error']({'title':_0x986156[_0x307174('0x1457')]['errors'][_0xa9e553][_0x307174('0x412')],'msg':_0x986156['data']['errors'][_0xa9e553][_0x307174('0x1603')]});}}else _0x33f0ad[_0x307174('0x1db9')]({'title':_0x986156[_0x307174('0x11c5')]?'API:'+_0x986156['status']+'\x20-\x20'+_0x986156[_0x307174('0x1833')]:'api.cannedAnswer.update','msg':_0x986156[_0x307174('0x1457')]?JSON[_0x307174('0x678')](_0x986156[_0x307174('0x1457')]['message']):_0x986156[_0x307174('0x9b6')]()});});}function _0x306085(_0x2e4280){const _0x864adc=_0x29e532;_0x541806[_0x864adc('0x73e')]=[];const _0x306337=_0x35c897[_0x864adc('0x1121')]()[_0x864adc('0x24d3')]('Are\x20you\x20sure?')['content'](_0x864adc('0x1931'))['ariaLabel'](_0x864adc('0x2383'))['ok'](_0x864adc('0x304'))[_0x864adc('0x1d47')]('Cancel')[_0x864adc('0x104f')](_0x2e4280);_0x35c897[_0x864adc('0x28e2')](_0x306337)[_0x864adc('0x17e7')](function(){const _0x15acf7=_0x864adc;_0x2c213e[_0x15acf7('0x2043')][_0x15acf7('0x1da6')]({'id':_0x541806[_0x15acf7('0xde8')]['id']})[_0x15acf7('0x1af5')][_0x15acf7('0x17e7')](function(){const _0x1acf18=_0x15acf7;_0x49cbdd()[_0x1acf18('0x5f3')](_0x541806[_0x1acf18('0x2382')],{'id':_0x541806[_0x1acf18('0xde8')]['id']}),_0x33f0ad[_0x1acf18('0x130d')]({'title':_0x1acf18('0x29b'),'msg':(_0x541806[_0x1acf18('0xde8')][_0x1acf18('0x2aa')]||_0x1acf18('0xde8'))+_0x1acf18('0x149f')}),_0x2b1440(_0x541806[_0x1acf18('0xde8')]);})[_0x15acf7('0x16df')](function(_0x2dff1a){const _0x3a53e7=_0x15acf7;if(_0x2dff1a[_0x3a53e7('0x1457')]&&_0x2dff1a[_0x3a53e7('0x1457')][_0x3a53e7('0x73e')]&&_0x2dff1a['data'][_0x3a53e7('0x73e')][_0x3a53e7('0x1f73')]){_0x541806['errors']=_0x2dff1a[_0x3a53e7('0x1457')][_0x3a53e7('0x73e')]||[{'message':_0x2dff1a[_0x3a53e7('0x9b6')](),'type':_0x3a53e7('0x26a7')}];for(let _0x169c1a=0x0;_0x169c1a<_0x2dff1a[_0x3a53e7('0x1457')][_0x3a53e7('0x73e')][_0x3a53e7('0x1f73')];_0x169c1a++){_0x33f0ad[_0x3a53e7('0x1db9')]({'title':_0x2dff1a['data'][_0x3a53e7('0x73e')][_0x169c1a]['type'],'msg':_0x2dff1a[_0x3a53e7('0x1457')]['errors'][_0x169c1a]['message']});}}else _0x33f0ad['error']({'title':_0x2dff1a[_0x3a53e7('0x11c5')]?_0x3a53e7('0x14f7')+_0x2dff1a['status']+'\x20-\x20'+_0x2dff1a['statusText']:_0x3a53e7('0x26a7'),'msg':_0x2dff1a[_0x3a53e7('0x1457')]?JSON[_0x3a53e7('0x678')](_0x2dff1a[_0x3a53e7('0x1457')][_0x3a53e7('0x1603')]):_0x2dff1a[_0x3a53e7('0x1603')]||_0x2dff1a[_0x3a53e7('0x9b6')]()});});},function(){});}function _0x3d5096(_0x3da7b6){return _0x3da7b6===null?undefined:new Date(_0x3da7b6);}function _0x2b1440(_0x5d41ff){const _0x8f22ef=_0x29e532;_0x35c897[_0x8f22ef('0x212a')](_0x5d41ff);}}const _0x5a572b=_0x4ce0a4;_0x26c4ba[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),'$mdDialog','$document',_0x4376d8('0xef1'),'$translate',_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885')];function _0x26c4ba(_0x2d6065,_0x4113e1,_0x516665,_0x1145dc,_0x35d9fa,_0x11ff6a,_0xd77107,_0x177547,_0x39f5a8,_0x4a6064,_0x1baf83){const _0x3146a4=_0x4376d8,_0x2b1102=this;_0x2b1102[_0x3146a4('0x197c')]=_0x1baf83[_0x3146a4('0x2831')](),_0x2b1102[_0x3146a4('0x23fe')]={'count':0x0,'rows':[]},_0x2b1102['selectedDispositions']=[],_0x2b1102[_0x3146a4('0x103e')],_0x2b1102[_0x3146a4('0x1e26')]={'first':_0x3146a4('0xa13'),'second':_0x3146a4('0xf67'),'third':_0x3146a4('0x13a2')},_0x2b1102[_0x3146a4('0x826')]={'fields':'id,level,name,description,ParentId,createdAt,updatedAt','sort':'-updatedAt','limit':0xa,'page':0x1},_0x2b1102[_0x3146a4('0x161d')]=_0x27e204,_0x2b1102[_0x3146a4('0x1a20')]=_0x5f0351,_0x2b1102['success']=_0x16758c,_0x2b1102['getDispositions']=_0x5a719a,_0x2b1102[_0x3146a4('0x1eff')]=_0x14436d,_0x2b1102['deleteDisposition']=_0x5a16b2,_0x2b1102['exportSelectedDispositions']=_0x2a5814,_0x2b1102[_0x3146a4('0xc81')]=_0x302374,_0x2b1102[_0x3146a4('0x4cb')]=_0x4f7e64,_0x2b1102['selectAllDispositions']=_0x14d2c7;function _0x27e204(_0xe01b3e,_0x4b4409){const _0x25feb3=_0x3146a4;_0x2b1102[_0x25feb3('0xdb2')]=_0xe01b3e||{},_0x2b1102['crudPermissions']=typeof _0x4b4409!==_0x25feb3('0xfad')?_0x4b4409:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2b1102[_0x25feb3('0x826')]['ChatWebsiteId']=_0x2b1102[_0x25feb3('0xdb2')]['id'],_0x2b1102['query']['id']=_0x2b1102[_0x25feb3('0xdb2')]['id'],_0x5a719a();}function _0x14436d(_0x7102a4,_0x3dedec){const _0x936194=_0x3146a4;_0x35d9fa[_0x936194('0x28e2')]({'controller':_0x936194('0x8e0'),'controllerAs':'vm','templateUrl':_0x27dcbe,'parent':angular[_0x936194('0x1ce1')](_0x11ff6a['body']),'targetEvent':_0x7102a4,'clickOutsideToClose':!![],'locals':{'disposition':_0x3dedec,'dispositions':_0x2b1102['dispositions']['rows'],'model':{'id':_0x2b1102[_0x936194('0xdb2')]['id'],'field':_0x936194('0x259')},'license':null,'setting':null,'crudPermissions':_0x2b1102[_0x936194('0x103e')]}})['then'](function(_0x133390){if(_0x133390)_0x5a719a();});}function _0x5f0351(_0x2d38e3,_0x5103db){const _0xf5211=_0x3146a4,_0x7cc1b3=_0x49cbdd()[_0xf5211('0x26f8')](_0x2b1102['dispositions'][_0xf5211('0x2319')],['ParentId',_0x2d38e3['id']]),_0x3e6b1b=_0x35d9fa[_0xf5211('0x1121')]()[_0xf5211('0x24d3')](_0x177547[_0xf5211('0x1acc')](_0xf5211('0x1ab5')))[_0xf5211('0xd5')](_0x177547[_0xf5211('0x1acc')](_0xf5211('0x2ab')+(_0x7cc1b3?_0xf5211('0xa0a'):_0xf5211('0xd6c')),{'name':_0x2d38e3[_0xf5211('0x2aa')]}))[_0xf5211('0x2095')](_0xf5211('0x1596'))[_0xf5211('0x104f')](_0x5103db)['ok']('OK')[_0xf5211('0x1d47')](_0x177547[_0xf5211('0x1acc')](_0xf5211('0x34f')));_0x35d9fa[_0xf5211('0x28e2')](_0x3e6b1b)[_0xf5211('0x17e7')](function(){_0x5a16b2(_0x2d38e3);});}function _0x16758c(_0x2075d0){const _0x14264d=_0x3146a4;_0x2b1102[_0x14264d('0x23fe')]=_0x2075d0||{'count':0x0,'rows':[]};}function _0x5a719a(){const _0x2d7e88=_0x3146a4;_0x2b1102[_0x2d7e88('0x826')][_0x2d7e88('0xf19')]=(_0x2b1102[_0x2d7e88('0x826')]['page']-0x1)*_0x2b1102[_0x2d7e88('0x826')][_0x2d7e88('0x193b')],_0x2b1102[_0x2d7e88('0x1691')]=_0x39f5a8[_0x2d7e88('0xdb2')][_0x2d7e88('0x26c2')](_0x2b1102[_0x2d7e88('0x826')],_0x16758c)['$promise'];}function _0x5a16b2(_0x50f58e){const _0x239c37=_0x3146a4;_0x39f5a8[_0x239c37('0x1f27')]['delete']({'id':_0x50f58e['id']})[_0x239c37('0x1af5')]['then'](function(){const _0x1580d1=_0x239c37;_0x5a719a(),_0x4a6064[_0x1580d1('0x130d')]({'title':_0x177547[_0x1580d1('0x1acc')](_0x1580d1('0x10dc'))});})['catch'](function(_0x5d7d38){const _0x5b0dec=_0x239c37;if(_0x5d7d38[_0x5b0dec('0x1457')]&&_0x5d7d38[_0x5b0dec('0x1457')]['errors']&&_0x5d7d38['data'][_0x5b0dec('0x73e')][_0x5b0dec('0x1f73')]){_0x2b1102[_0x5b0dec('0x73e')]=_0x5d7d38[_0x5b0dec('0x1457')]['errors']||[{'message':_0x5d7d38[_0x5b0dec('0x9b6')](),'type':_0x5b0dec('0x104a')}];for(let _0x599fc1=0x0;_0x599fc1<_0x5d7d38[_0x5b0dec('0x1457')]['errors'][_0x5b0dec('0x1f73')];_0x599fc1++){_0x4a6064[_0x5b0dec('0x1db9')]({'title':_0x5d7d38['data'][_0x5b0dec('0x73e')][_0x599fc1][_0x5b0dec('0x412')],'msg':_0x5d7d38[_0x5b0dec('0x1457')][_0x5b0dec('0x73e')][_0x599fc1]['message']});}}else _0x4a6064[_0x5b0dec('0x1db9')]({'title':_0x5d7d38['status']?_0x5b0dec('0x14f7')+_0x5d7d38[_0x5b0dec('0x11c5')]+_0x5b0dec('0x16e4')+_0x5d7d38[_0x5b0dec('0x1833')]:_0x5b0dec('0x104a'),'msg':_0x5d7d38['data']?JSON[_0x5b0dec('0x678')](_0x5d7d38[_0x5b0dec('0x1457')][_0x5b0dec('0x1603')]):_0x5d7d38[_0x5b0dec('0x1603')]||_0x5d7d38[_0x5b0dec('0x9b6')]()});});}function _0x2a5814(){const _0x1f3f9a=_0x3146a4,_0x55d5fa=angular[_0x1f3f9a('0x14e5')](_0x2b1102[_0x1f3f9a('0x440')]);return _0x2b1102[_0x1f3f9a('0x440')]=[],_0x55d5fa;}function _0x302374(_0x2fb30d){const _0x1e790a=_0x3146a4,_0x96358b=_0x35d9fa['confirm']()[_0x1e790a('0x24d3')](_0x177547[_0x1e790a('0x1acc')](_0x1e790a('0x21e')))[_0x1e790a('0xd5')](_0x177547[_0x1e790a('0x1acc')](_0x1e790a('0x11b8'),{'total':_0x2b1102[_0x1e790a('0x440')][_0x1e790a('0x1f73')]}))['ariaLabel']('Delete\x20dispositions')[_0x1e790a('0x104f')](_0x2fb30d)['ok']('OK')[_0x1e790a('0x1d47')](_0x177547[_0x1e790a('0x1acc')](_0x1e790a('0x34f')));_0x35d9fa[_0x1e790a('0x28e2')](_0x96358b)[_0x1e790a('0x17e7')](function(){const _0xa352d3=_0x1e790a;_0x2b1102[_0xa352d3('0x440')]['forEach'](function(_0x46d8cb){_0x5a16b2(_0x46d8cb);}),_0x2b1102['selectedDispositions']=[];});}function _0x4f7e64(){_0x2b1102['selectedDispositions']=[];}function _0x14d2c7(){const _0x290dea=_0x3146a4;_0x2b1102[_0x290dea('0x440')]=_0x2b1102[_0x290dea('0x23fe')][_0x290dea('0x2319')];}let _0x35ae76=!![],_0x2fdb89=0x1;_0x2d6065[_0x3146a4('0x620')]('vm_dc.query.filter',function(_0x2bb3f6,_0x141233){const _0x2afb3d=_0x3146a4;_0x35ae76?_0xd77107(function(){_0x35ae76=![];}):(!_0x141233&&(_0x2fdb89=_0x2b1102['query'][_0x2afb3d('0x115a')]),_0x2bb3f6!==_0x141233&&(_0x2b1102[_0x2afb3d('0x826')][_0x2afb3d('0x115a')]=0x1),!_0x2bb3f6&&(_0x2b1102[_0x2afb3d('0x826')][_0x2afb3d('0x115a')]=_0x2fdb89),_0x5a719a());});}const _0x29c8dc=_0x26c4ba;_0x4235ec[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'api'];function _0x4235ec(_0x522b7c,_0x209d88,_0x31f035){const _0x40258d=_0x4376d8,_0x48316e=this;_0x48316e['chatWebsite']={},_0x48316e[_0x40258d('0x955')]={},_0x48316e[_0x40258d('0x1a8c')]=[{'type':'label','name':'Label','icon':_0x40258d('0xeae')},{'type':_0x40258d('0x1df2'),'name':_0x40258d('0xbe4'),'icon':_0x40258d('0xc90')},{'type':_0x40258d('0x4a3'),'name':'Input','icon':'icon-keyboard'},{'type':_0x40258d('0x6d3'),'name':_0x40258d('0x210a'),'icon':_0x40258d('0x11dc')},{'type':_0x40258d('0x750'),'name':'Radio\x20Buttons','icon':_0x40258d('0xc00')},{'type':'checkboxes','name':_0x40258d('0x1c83'),'icon':_0x40258d('0x10f8')},{'type':_0x40258d('0x1241'),'name':'Agreement','icon':_0x40258d('0x130')}],_0x48316e[_0x40258d('0x161d')]=_0x777278,_0x48316e['up']=_0x2513e8,_0x48316e[_0x40258d('0x1637')]=_0x44be8a,_0x48316e['add']=_0xa02baa,_0x48316e[_0x40258d('0x5f3')]=_0x10dddd;function _0x777278(_0x5c71fe){const _0x23b711=_0x40258d;_0x48316e[_0x23b711('0x9c9')]=[],_0x48316e['customFields']=[],_0x48316e['uselessFields']=['id','createdAt','updatedAt','ListId',_0x23b711('0x452'),'$promise',_0x23b711('0x1314')],_0x48316e[_0x23b711('0xdb2')]=_0x5c71fe,_0x49cbdd()[_0x23b711('0x109a')](_0x48316e[_0x23b711('0xdb2')]['offlineForm'])&&(_0x48316e['chatWebsite'][_0x23b711('0x955')]={'items':[],'fromKey':null}),_0x31f035[_0x23b711('0x25b')][_0x23b711('0x6c7')]({'id':_0x48316e['chatWebsite']['ListId']})['$promise'][_0x23b711('0x17e7')](function(_0x1cf8c0){const _0x158025=_0x23b711;for(let _0x3fe318=0x0;_0x3fe318<_0x1cf8c0['rows'][_0x158025('0x1f73')];_0x3fe318++){_0x48316e[_0x158025('0x1341')]['push']({'key':_0x158025('0x481')+_0x1cf8c0['rows'][_0x3fe318]['id'],'value':_0x1cf8c0['rows'][_0x3fe318][_0x158025('0x16bb')]});}return _0x31f035['cmContact'][_0x158025('0x2234')]()['$promise'];})['then'](function(_0x623fb6){const _0x52b3d0=_0x23b711,_0x540340=_0x49cbdd()[_0x52b3d0('0x1c0f')](_0x623fb6);for(let _0x280bde=0x0;_0x280bde<_0x540340[_0x52b3d0('0x1f73')];_0x280bde++){!_0x49cbdd()[_0x52b3d0('0x24b0')](_0x48316e[_0x52b3d0('0x28a1')],_0x540340[_0x280bde])&&!_0x49cbdd()[_0x52b3d0('0x818')](_0x540340[_0x280bde],'cf_')&&_0x48316e[_0x52b3d0('0x9c9')]['unshift']({'key':_0x540340[_0x280bde],'value':_0x540340[_0x280bde]});}return _0x31f035[_0x52b3d0('0xb0a')]['get']()[_0x52b3d0('0x1af5')];})[_0x23b711('0x17e7')](function(_0x2ef2ea){const _0x154532=_0x23b711;_0x48316e[_0x154532('0xd26')]=_0x2ef2ea[_0x154532('0x2319')];})[_0x23b711('0x16df')](function(_0x3af0d2){const _0x1e6019=_0x23b711;console[_0x1e6019('0x1db9')](_0x3af0d2);});}function _0x2513e8(_0x53f16e,_0x1bfe50){const _0x1e04f3=_0x40258d;if(_0x1bfe50!==0x0){const _0x18fa5f=_0x48316e['chatWebsite'][_0x1e04f3('0x955')]['items'][_0x1bfe50-0x1];_0x48316e[_0x1e04f3('0xdb2')][_0x1e04f3('0x955')][_0x1e04f3('0x532')][_0x1bfe50]=_0x18fa5f,_0x48316e[_0x1e04f3('0xdb2')][_0x1e04f3('0x955')]['items'][_0x1bfe50-0x1]=angular[_0x1e04f3('0x14e5')](_0x53f16e);if(_0x48316e[_0x1e04f3('0xdb2')][_0x1e04f3('0x955')]['fromKey']===_0x1bfe50)_0x48316e[_0x1e04f3('0xdb2')][_0x1e04f3('0x955')]['fromKey']--;else _0x48316e[_0x1e04f3('0xdb2')]['offlineForm'][_0x1e04f3('0x1f70')]===_0x1bfe50-0x1&&_0x48316e[_0x1e04f3('0xdb2')][_0x1e04f3('0x955')][_0x1e04f3('0x1f70')]++;}}function _0x44be8a(_0xd27e6f,_0xd9d7f5){const _0x4d08b5=_0x40258d;if(_0xd9d7f5!==_0x48316e[_0x4d08b5('0xdb2')]['offlineForm']['items'][_0x4d08b5('0x1f73')]-0x1){const _0x48ea37=_0x48316e[_0x4d08b5('0xdb2')]['offlineForm'][_0x4d08b5('0x532')][_0xd9d7f5+0x1];_0x48316e[_0x4d08b5('0xdb2')][_0x4d08b5('0x955')][_0x4d08b5('0x532')][_0xd9d7f5]=_0x48ea37,_0x48316e['chatWebsite'][_0x4d08b5('0x955')][_0x4d08b5('0x532')][_0xd9d7f5+0x1]=angular['copy'](_0xd27e6f);if(_0x48316e[_0x4d08b5('0xdb2')][_0x4d08b5('0x955')][_0x4d08b5('0x1f70')]===_0xd9d7f5)_0x48316e[_0x4d08b5('0xdb2')]['offlineForm'][_0x4d08b5('0x1f70')]++;else _0x48316e[_0x4d08b5('0xdb2')][_0x4d08b5('0x955')][_0x4d08b5('0x1f70')]===_0xd9d7f5+0x1&&_0x48316e[_0x4d08b5('0xdb2')][_0x4d08b5('0x955')]['fromKey']--;}}function _0xa02baa(_0x41791e){const _0x1ab6d0=_0x40258d;_0x48316e['chatWebsite'][_0x1ab6d0('0x955')][_0x1ab6d0('0x532')]['push']({'type':_0x41791e,'cmField':null,'variable':null});}function _0x10dddd(_0x51d024){const _0x3370b3=_0x40258d,_0x2d82a9=_0x522b7c[_0x3370b3('0x1121')]()[_0x3370b3('0x24d3')]('The\x20component\x20will\x20be\x20deleted.')[_0x3370b3('0x18c5')](_0x3370b3('0x530'))['ariaLabel'](_0x3370b3('0x20d2'))['ok']('Ok')[_0x3370b3('0x1d47')](_0x3370b3('0x1b70'));_0x522b7c[_0x3370b3('0x28e2')](_0x2d82a9)[_0x3370b3('0x17e7')](function(){const _0x29bfe3=_0x3370b3;_0x48316e[_0x29bfe3('0xdb2')]['offlineForm'][_0x29bfe3('0x532')][_0x29bfe3('0x2335')](_0x51d024,0x1);});}}const _0x14891f=_0x4235ec;_0xf3f718[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$document','api'];function _0xf3f718(_0x191d8d,_0x39c0fb,_0x2c3e8e){const _0x3a8970=_0x4376d8,_0x3f619b=this;_0x3f619b[_0x3a8970('0xdb2')]={},_0x3f619b[_0x3a8970('0x20e7')]={},_0x3f619b[_0x3a8970('0x1a8c')]=[{'type':'label','name':_0x3a8970('0x1eeb'),'icon':_0x3a8970('0xeae')},{'type':_0x3a8970('0x1df2'),'name':_0x3a8970('0xbe4'),'icon':'icon-playlist-plus'},{'type':'input','name':_0x3a8970('0x972'),'icon':_0x3a8970('0x289e')},{'type':_0x3a8970('0x6d3'),'name':_0x3a8970('0x210a'),'icon':_0x3a8970('0x11dc')},{'type':_0x3a8970('0x750'),'name':'Radio\x20Buttons','icon':_0x3a8970('0xc00')},{'type':_0x3a8970('0x12d6'),'name':_0x3a8970('0x1c83'),'icon':_0x3a8970('0x10f8')},{'type':_0x3a8970('0x1241'),'name':'Agreement','icon':_0x3a8970('0x130')}],_0x3f619b[_0x3a8970('0x161d')]=_0x3cd76c,_0x3f619b['up']=_0x2f283d,_0x3f619b[_0x3a8970('0x1637')]=_0x321e19,_0x3f619b[_0x3a8970('0xd62')]=_0x4f44b2,_0x3f619b[_0x3a8970('0x5f3')]=_0xad91cb;function _0x3cd76c(_0x212c9b){const _0x55338f=_0x3a8970;_0x3f619b[_0x55338f('0x9c9')]=[],_0x3f619b['customFields']=[],_0x3f619b[_0x55338f('0x28a1')]=['id',_0x55338f('0x7c9'),'updatedAt',_0x55338f('0x7f8'),_0x55338f('0x452'),_0x55338f('0x1af5'),'$resolved'],_0x3f619b[_0x55338f('0xdb2')]=_0x212c9b,_0x49cbdd()[_0x55338f('0x109a')](_0x3f619b[_0x55338f('0xdb2')][_0x55338f('0x20e7')])&&(_0x3f619b[_0x55338f('0xdb2')][_0x55338f('0x20e7')]={'items':[],'fromKey':null}),_0x2c3e8e[_0x55338f('0x25b')]['getCustomFields']({'id':_0x3f619b['chatWebsite']['ListId']})['$promise']['then'](function(_0x144343){const _0x12d08a=_0x55338f;for(let _0x2393fd=0x0;_0x2393fd<_0x144343[_0x12d08a('0x2319')][_0x12d08a('0x1f73')];_0x2393fd++){_0x3f619b[_0x12d08a('0x1341')][_0x12d08a('0x269f')]({'key':_0x12d08a('0x481')+_0x144343[_0x12d08a('0x2319')][_0x2393fd]['id'],'value':_0x144343[_0x12d08a('0x2319')][_0x2393fd]['alias']});}return _0x2c3e8e[_0x12d08a('0x1d2a')]['describe']()[_0x12d08a('0x1af5')];})[_0x55338f('0x17e7')](function(_0x241d27){const _0x1fa8f3=_0x55338f,_0x2ad2c1=_0x49cbdd()[_0x1fa8f3('0x1c0f')](_0x241d27);for(let _0x5780ad=0x0;_0x5780ad<_0x2ad2c1[_0x1fa8f3('0x1f73')];_0x5780ad++){!_0x49cbdd()[_0x1fa8f3('0x24b0')](_0x3f619b[_0x1fa8f3('0x28a1')],_0x2ad2c1[_0x5780ad])&&!_0x49cbdd()[_0x1fa8f3('0x818')](_0x2ad2c1[_0x5780ad],'cf_')&&_0x3f619b[_0x1fa8f3('0x9c9')]['unshift']({'key':_0x2ad2c1[_0x5780ad],'value':_0x2ad2c1[_0x5780ad]});}return _0x2c3e8e[_0x1fa8f3('0xb0a')][_0x1fa8f3('0x1c53')]()[_0x1fa8f3('0x1af5')];})[_0x55338f('0x17e7')](function(_0x2fde5d){const _0x4c3351=_0x55338f;_0x3f619b[_0x4c3351('0xd26')]=_0x2fde5d['rows'];})[_0x55338f('0x16df')](function(_0x3dbb15){const _0x1ead4c=_0x55338f;console[_0x1ead4c('0x1db9')](_0x3dbb15);});}function _0x2f283d(_0x1768fd,_0x514184){const _0x7b7015=_0x3a8970;if(_0x514184!==0x0){const _0x169aa7=_0x3f619b[_0x7b7015('0xdb2')][_0x7b7015('0x20e7')][_0x7b7015('0x532')][_0x514184-0x1];_0x3f619b['chatWebsite'][_0x7b7015('0x20e7')][_0x7b7015('0x532')][_0x514184]=_0x169aa7,_0x3f619b['chatWebsite'][_0x7b7015('0x20e7')]['items'][_0x514184-0x1]=angular[_0x7b7015('0x14e5')](_0x1768fd);if(_0x3f619b['chatWebsite'][_0x7b7015('0x20e7')][_0x7b7015('0x1f70')]===_0x514184)_0x3f619b[_0x7b7015('0xdb2')][_0x7b7015('0x20e7')][_0x7b7015('0x1f70')]--;else _0x3f619b[_0x7b7015('0xdb2')]['onlineForm']['fromKey']===_0x514184-0x1&&_0x3f619b[_0x7b7015('0xdb2')][_0x7b7015('0x20e7')]['fromKey']++;}}function _0x321e19(_0x38b565,_0x484b6f){const _0x1bc930=_0x3a8970;if(_0x484b6f!==_0x3f619b[_0x1bc930('0xdb2')][_0x1bc930('0x20e7')]['items'][_0x1bc930('0x1f73')]-0x1){const _0x433daa=_0x3f619b[_0x1bc930('0xdb2')]['onlineForm'][_0x1bc930('0x532')][_0x484b6f+0x1];_0x3f619b[_0x1bc930('0xdb2')]['onlineForm'][_0x1bc930('0x532')][_0x484b6f]=_0x433daa,_0x3f619b[_0x1bc930('0xdb2')][_0x1bc930('0x20e7')][_0x1bc930('0x532')][_0x484b6f+0x1]=angular[_0x1bc930('0x14e5')](_0x38b565);if(_0x3f619b[_0x1bc930('0xdb2')][_0x1bc930('0x20e7')]['fromKey']===_0x484b6f)_0x3f619b['chatWebsite'][_0x1bc930('0x20e7')][_0x1bc930('0x1f70')]++;else _0x3f619b[_0x1bc930('0xdb2')][_0x1bc930('0x20e7')][_0x1bc930('0x1f70')]===_0x484b6f+0x1&&_0x3f619b[_0x1bc930('0xdb2')]['onlineForm']['fromKey']--;}}function _0x4f44b2(_0x878f5e){const _0x1129bc=_0x3a8970;_0x3f619b[_0x1129bc('0xdb2')]['onlineForm'][_0x1129bc('0x532')][_0x1129bc('0x269f')]({'type':_0x878f5e,'cmField':null,'variable':null});}function _0xad91cb(_0x3440c6){const _0x448f1b=_0x3a8970,_0x1e1bc9=_0x191d8d[_0x448f1b('0x1121')]()[_0x448f1b('0x24d3')](_0x448f1b('0x3f3'))[_0x448f1b('0x18c5')](_0x448f1b('0x530'))[_0x448f1b('0x2095')](_0x448f1b('0x20d2'))['ok']('Ok')[_0x448f1b('0x1d47')](_0x448f1b('0x1b70'));_0x191d8d[_0x448f1b('0x28e2')](_0x1e1bc9)['then'](function(){const _0xe92162=_0x448f1b;_0x3f619b[_0xe92162('0xdb2')][_0xe92162('0x20e7')][_0xe92162('0x1f70')]===_0x3440c6&&(_0x3f619b[_0xe92162('0xdb2')][_0xe92162('0x20e7')][_0xe92162('0x1f70')]=null),_0x3f619b[_0xe92162('0xdb2')][_0xe92162('0x20e7')][_0xe92162('0x532')][_0xe92162('0x2335')](_0x3440c6,0x1),!_0x3f619b['chatWebsite'][_0xe92162('0x20e7')]['items']['length']&&(_0x3f619b[_0xe92162('0xdb2')][_0xe92162('0x20e7')][_0xe92162('0x1f70')]=null);});}}const _0x14e551=_0xf3f718;_0x22edd0['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x108a')];function _0x22edd0(_0x38f637,_0x2f7243){const _0x10121b=_0x4376d8,_0x3c7d38=this,_0x4d62dc=0x8,_0x30ec9b=_0x4d62dc*0x400*0x400;_0x3c7d38[_0x10121b('0xdb2')]={},_0x3c7d38[_0x10121b('0x103e')],_0x3c7d38[_0x10121b('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x30ec9b,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x3c7d38['ngFlow']={'flow':{}},_0x3c7d38[_0x10121b('0x1b74')]=![],_0x3c7d38['fileAdded']=_0x3d060f,_0x3c7d38[_0x10121b('0x624')]=_0x38debb,_0x3c7d38[_0x10121b('0x1852')]=_0x552660,_0x3c7d38[_0x10121b('0x161d')]=_0x4b3caf;function _0x4b3caf(_0x5e6392,_0x37cbdf){const _0x586f2d=_0x10121b;_0x3c7d38['chatWebsite']=angular[_0x586f2d('0x14e5')](_0x5e6392),_0x3c7d38[_0x586f2d('0x103e')]=typeof _0x37cbdf!==_0x586f2d('0xfad')?_0x37cbdf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3c7d38[_0x586f2d('0x1713')][_0x586f2d('0x8cf')]=_0x586f2d('0x1f1a')[_0x586f2d('0x737')](':id',_0x3c7d38[_0x586f2d('0xdb2')]['id']),_0x3c7d38[_0x586f2d('0xdb2')][_0x586f2d('0x1563')]=[];}function _0x3d060f(_0x125c32){const _0x401b7f=_0x10121b,_0x78d34c=[_0x401b7f('0x1b65'),'jpg'];if(!_0x49cbdd()[_0x401b7f('0x24b0')](_0x78d34c,_0x125c32[_0x401b7f('0x11b0')]()))return _0x2f7243['error']({'title':_0x401b7f('0xf3d')+_0x125c32['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x78d34c['join']()}),![];if(_0x125c32['size']>_0x30ec9b)return _0x2f7243[_0x401b7f('0x1db9')]({'title':_0x401b7f('0x586'),'msg':_0x401b7f('0x349')+_0x4d62dc+'MB'}),![];const _0x50db2c={'id':_0x125c32[_0x401b7f('0x22b5')],'file':_0x125c32,'type':_0x401b7f('0x22df')};return _0x3c7d38['chatWebsite'][_0x401b7f('0x1563')][_0x401b7f('0x1893')](_0x50db2c),!![];}function _0x38debb(){const _0x3d0c3e=_0x10121b;_0x3c7d38[_0x3d0c3e('0xbdf')][_0x3d0c3e('0x3bb')][_0x3d0c3e('0x1771')]['headers']={'X-Requested-With':_0x3d0c3e('0x20a6'),'Authorization':_0x3d0c3e('0x28e8')+_0x38f637[_0x3d0c3e('0x1c53')](_0x3d0c3e('0xb2a'))},_0x3c7d38[_0x3d0c3e('0xbdf')][_0x3d0c3e('0x3bb')][_0x3d0c3e('0x624')]();}function _0x552660(_0x3fff9d){const _0x32b67f=_0x10121b;angular[_0x32b67f('0xccd')](_0x3c7d38[_0x32b67f('0xdb2')][_0x32b67f('0x1563')],function(_0x5be3ec){const _0x3031b6=_0x32b67f;if(_0x5be3ec['id']===_0x3fff9d['uniqueIdentifier']){const _0x2d7ddb=new FileReader();_0x2d7ddb[_0x3031b6('0x1ea4')](_0x5be3ec[_0x3031b6('0xc89')]['file']),_0x2d7ddb[_0x3031b6('0x2a1')]=function(_0x3d7ad1){const _0x3e318a=_0x3031b6;_0x5be3ec[_0x3e318a('0x101e')]=_0x3d7ad1[_0x3e318a('0x8cf')]['result'];},_0x5be3ec['type']=_0x3031b6('0x22ad');}});}}const _0x39fc76=_0x22edd0,_0x46cd84=_0x4cf2bc['p']+_0x4376d8('0x2485');_0xb76a7d['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0xb76a7d(_0x7aa6dd,_0x2c8fd4,_0x2d088f,_0x59a00e,_0x4c4222,_0x47c0d,_0x667140,_0x1cff53,_0x3985bc,_0x466ccf,_0x3b5417){const _0x5ba73a=_0x4376d8,_0x423bcb=this;_0x423bcb[_0x5ba73a('0x197c')]=_0x3b5417[_0x5ba73a('0x2831')](),_0x423bcb['chatWebsite']={},_0x423bcb[_0x5ba73a('0xd3a')]={'count':0x0,'rows':[]},_0x423bcb[_0x5ba73a('0x1fca')]=[],_0x423bcb['crudPermissions'],_0x423bcb[_0x5ba73a('0x826')]={'read':_0x5ba73a('0x9bb'),'closed':'null','sort':_0x5ba73a('0x2555'),'includeAll':_0x5ba73a('0xe34'),'limit':0xa,'page':0x1},_0x423bcb[_0x5ba73a('0x161d')]=_0x2cc7fe,_0x423bcb['deleteConfirm']=_0x5b25a1,_0x423bcb['chatInteractionDownload']=_0x4b57ac,_0x423bcb['success']=_0x5b0b12,_0x423bcb[_0x5ba73a('0x2d3')]=_0x3a455d,_0x423bcb['spychatInteraction']=_0x26fec2,_0x423bcb['openAdvancedSearch']=_0x177bbe,_0x423bcb[_0x5ba73a('0x7bb')]=_0x456860,_0x423bcb[_0x5ba73a('0x21e1')]=_0x39c2e4,_0x423bcb[_0x5ba73a('0x8b5')]=_0x5c1a0d;function _0x2cc7fe(_0xd5e5ae,_0x301d7f){const _0x504cc0=_0x5ba73a;_0x423bcb[_0x504cc0('0xdb2')]=_0xd5e5ae,_0x423bcb[_0x504cc0('0x103e')]=typeof _0x301d7f!==_0x504cc0('0xfad')?_0x301d7f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x423bcb[_0x504cc0('0x826')][_0x504cc0('0x259')]=_0x423bcb['chatWebsite']['id'],_0x423bcb[_0x504cc0('0xfb6')]={'fields':_0x113011()},_0x528eb5();}function _0x528eb5(){const _0x2abf=_0x5ba73a;return _0x466ccf[_0x2abf('0x1132')]['get']()[_0x2abf('0x1af5')]['then'](function(_0xb8236c){const _0x21c368=_0x2abf;_0x423bcb[_0x21c368('0x1522')]=_0xb8236c||{'count':0x0,'rows':[]};})['then'](function(){const _0xa3b4c5=_0x2abf;_0x423bcb[_0xa3b4c5('0x137d')]=_0x56b85c();});}function _0x56b85c(){const _0x52eb6c=_0x5ba73a;return[{'name':_0x52eb6c('0x1786'),'key':_0x52eb6c('0x7c9'),'type':_0x52eb6c('0xbd4'),'label':_0x52eb6c('0x1ee1')},{'name':_0x52eb6c('0xd08'),'key':_0x52eb6c('0xf64'),'type':_0x52eb6c('0x2897'),'label':_0x52eb6c('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x52eb6c('0x263')},{'value':0x1,'translate':_0x52eb6c('0x2874')},{'value':null,'translate':_0x52eb6c('0x9cf')}]},{'name':_0x52eb6c('0x51c'),'key':_0x52eb6c('0x2bc'),'type':_0x52eb6c('0x2897'),'label':_0x52eb6c('0x12f2'),'customOptions':[{'value':0x0,'translate':_0x52eb6c('0x1f4f')},{'value':0x1,'translate':'DASHBOARDS.CLOSED'},{'value':null,'translate':'DASHBOARDS.ALL'}]},{'name':'Agent','key':'UserId','type':_0x52eb6c('0x2897'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x52eb6c('0x9bb'),'translate':_0x52eb6c('0x154d')},{'value':undefined,'translate':_0x52eb6c('0x9cf')}]},{'name':_0x52eb6c('0xe16'),'key':'tag','type':_0x52eb6c('0x1227'),'label':'DASHBOARDS.SELECT_TAG','options':_0x423bcb[_0x52eb6c('0x1522')]['rows'],'placeholder':_0x52eb6c('0x21aa')}];}function _0x113011(){const _0x5274c7=_0x5ba73a;return[{'name':'Id','column':'id','type':_0x5274c7('0x7b8')},{'name':_0x5274c7('0x239b'),'column':_0x5274c7('0x239b'),'type':_0x5274c7('0x682'),'options':{'searchFields':[_0x5274c7('0x1761'),_0x5274c7('0x8d6'),'email'],'route':{'model':_0x5274c7('0x1d2a'),'action':_0x5274c7('0x1c53'),'params':{'fields':'id,firstName,lastName,email','Contact':_0x5274c7('0xe1e'),'nolimit':!![]}},'extraOperators':['$substring'],'excludedOperators':[_0x5274c7('0xdaa')]}},{'name':_0x5274c7('0x2348'),'column':_0x5274c7('0x2179'),'type':_0x5274c7('0x132f'),'options':{'excludedOperators':[_0x5274c7('0x1767'),_0x5274c7('0xdaa')]}},{'name':_0x5274c7('0x2854'),'column':_0x5274c7('0x139b'),'type':'text','options':{'excludedOperators':[_0x5274c7('0x1767'),_0x5274c7('0xdaa')]}},{'name':_0x5274c7('0x51c'),'column':_0x5274c7('0x2bc'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x5274c7('0x2322')}],'options':{'excludedOperators':[_0x5274c7('0xdaa')]}},{'name':_0x5274c7('0x1874'),'column':'User','type':_0x5274c7('0x682'),'options':{'table':'i','route':{'model':_0x5274c7('0x221e'),'action':_0x5274c7('0x1c53'),'params':{'role':'agent','fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x5274c7('0xea6'),_0x5274c7('0x2aa')],'extraOperators':[_0x5274c7('0x1ed7')],'excludedOperators':['$ne']}},{'name':'Tags','column':'Tag','type':_0x5274c7('0x1227'),'options':{'route':{'model':'tag','action':_0x5274c7('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5274c7('0x2045')]}},{'name':_0x5274c7('0x1786'),'column':_0x5274c7('0x7c9'),'type':'date','options':{'excludedOperators':[_0x5274c7('0xdaa')]}},{'name':_0x5274c7('0xf8b'),'column':_0x5274c7('0x1aad'),'type':_0x5274c7('0x2897'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x5274c7('0x263')}],'options':{'excludedOperators':[_0x5274c7('0xdaa')]}}];}function _0x177bbe(){const _0x30ab44=_0x5ba73a;_0x667140['show']({'controller':'AdvancedSearchController','controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0x30ab44('0x1ce1')](_0x1cff53[_0x30ab44('0x13aa')]),'clickOutsideToClose':![],'locals':{'fields':_0x423bcb[_0x30ab44('0xfb6')][_0x30ab44('0x9c9')],'color':undefined,'storagePath':_0x30ab44('0x17ff')},'fullscreen':!![]})[_0x30ab44('0x17e7')](function(_0x14ad23){const _0x3116c5=_0x30ab44;_0x423bcb[_0x3116c5('0x826')][_0x3116c5('0xfba')]=_0x14ad23===![]?undefined:_0x14ad23;if(_0x423bcb['query'][_0x3116c5('0xfba')])_0x3a455d();else _0x14ad23===![]&&_0x3a455d();})[_0x30ab44('0x16df')](function(_0x5891ed){const _0x478466=_0x30ab44;_0x3985bc[_0x478466('0x1db9')]({'title':'ERROR','msg':_0x5891ed['data']?JSON[_0x478466('0x678')](_0x5891ed[_0x478466('0x1457')]['message']):_0x5891ed[_0x478466('0x9b6')]()});});}function _0x4b57ac(_0x43df56,_0x2fefdc,_0x35d3fc){const _0x33b0f0=_0x5ba73a;return _0x466ccf[_0x33b0f0('0x1a0')][_0x33b0f0('0x1244')]({'id':_0x43df56['id'],'exists':!![],'attachments':_0x35d3fc})[_0x33b0f0('0x1af5')][_0x33b0f0('0x17e7')](function(_0x37dc96){const _0x550beb=_0x33b0f0,_0x2601be=[_0x37dc96[_0x550beb('0x3ca')]];let _0x5610cd=_0x550beb('0x1219')+_0x43df56['id'];const _0xa6c437=new Blob(_0x2601be,{'type':_0x37dc96[_0x550beb('0x412')]});_0x5610cd=_0x550beb('0xece')+_0x43df56['id']+_0x550beb('0x71b');const _0x35ad56=window[_0x550beb('0x2be')][_0x550beb('0x68d')]('a');_0x35ad56[_0x550beb('0x224')](_0x550beb('0x448'),URL[_0x550beb('0x28ce')](_0xa6c437)),_0x35ad56['setAttribute'](_0x550beb('0x1244'),_0x5610cd),document[_0x550beb('0x13aa')][_0x550beb('0x128c')](_0x35ad56),_0x35ad56[_0x550beb('0x20d4')]();})[_0x33b0f0('0x16df')](function(_0x252a1f){const _0x2b98ca=_0x33b0f0;if(_0x252a1f[_0x2b98ca('0x1457')]&&_0x252a1f[_0x2b98ca('0x1457')][_0x2b98ca('0x73e')]&&_0x252a1f[_0x2b98ca('0x1457')][_0x2b98ca('0x73e')][_0x2b98ca('0x1f73')])for(let _0x17e821=0x0;_0x17e821<_0x252a1f[_0x2b98ca('0x1457')][_0x2b98ca('0x73e')][_0x2b98ca('0x1f73')];_0x17e821+=0x1){_0x3985bc[_0x2b98ca('0x1db9')]({'title':_0x252a1f[_0x2b98ca('0x1457')][_0x2b98ca('0x73e')][_0x17e821][_0x2b98ca('0x412')],'msg':_0x252a1f[_0x2b98ca('0x1457')][_0x2b98ca('0x73e')][_0x17e821][_0x2b98ca('0x1603')]});}else _0x3985bc['error']({'title':_0x252a1f[_0x2b98ca('0x11c5')]?_0x2b98ca('0x14f7')+_0x252a1f['status']+_0x2b98ca('0x16e4')+_0x252a1f['statusText']:_0x2b98ca('0x20d8'),'msg':_0x252a1f[_0x2b98ca('0x1457')]?JSON[_0x2b98ca('0x678')](_0x252a1f[_0x2b98ca('0x1457')][_0x2b98ca('0x1603')]):_0x252a1f[_0x2b98ca('0x9b6')]()});});}function _0x5b25a1(_0x48fd4f,_0x479373){const _0x5848d2=_0x5ba73a,_0x3cb5e6=_0x667140['confirm']()['title'](_0x5848d2('0xd7'))[_0x5848d2('0x211f')](_0x5848d2('0xa53')+(_0x48fd4f[_0x5848d2('0x2aa')]||_0x48fd4f['id']&&_0x49cbdd()[_0x5848d2('0x233c')](_0x5848d2('0xb9a'))+_0x48fd4f['id']||_0x5848d2('0x1219'))+''+_0x5848d2('0xe9f'))[_0x5848d2('0x2095')](_0x5848d2('0x1b75'))[_0x5848d2('0x104f')](_0x479373)['ok']('OK')[_0x5848d2('0x1d47')]('CANCEL');_0x667140[_0x5848d2('0x28e2')](_0x3cb5e6)[_0x5848d2('0x17e7')](function(){_0x39c2e4(_0x48fd4f);},function(){const _0x254920=_0x5848d2;console[_0x254920('0x1d63')]('CANCEL');});}function _0x5b0b12(_0x580c85){const _0x49d55a=_0x5ba73a;_0x423bcb[_0x49d55a('0xd3a')]=_0x580c85||{'count':0x0,'rows':[]};for(let _0x5d8085=0x0;_0x5d8085<_0x423bcb['chatWebsiteInteractions']['rows'][_0x49d55a('0x1f73')];_0x5d8085+=0x1){const _0x5b2934=_0x423bcb[_0x49d55a('0xd3a')][_0x49d55a('0x2319')][_0x5d8085];_0x2493d5(_0x5b2934),_0x5b2934[_0x49d55a('0xe49')][_0x49d55a('0x2aa')]=_0x1f6f90(_0x5b2934);}}function _0x3a455d(){const _0x12370f=_0x5ba73a;_0x423bcb[_0x12370f('0x826')][_0x12370f('0xf19')]=(_0x423bcb[_0x12370f('0x826')]['page']-0x1)*_0x423bcb[_0x12370f('0x826')]['limit'],_0x423bcb[_0x12370f('0x1691')]=_0x466ccf['chatInteraction'][_0x12370f('0x1c53')](_0x423bcb[_0x12370f('0x826')],_0x5b0b12)[_0x12370f('0x1af5')];}function _0x26fec2(_0x153c11,_0x1407f9){const _0x48887b=_0x5ba73a;_0x667140['show']({'controller':_0x48887b('0x13b4'),'controllerAs':'vm','templateUrl':_0x46cd84,'parent':angular[_0x48887b('0x1ce1')](_0x1cff53[_0x48887b('0x13aa')]),'targetEvent':_0x153c11,'clickOutsideToClose':!![],'onShowing':function(_0x5482bd){const _0x4d2775=_0x48887b;_0x5482bd['vm']['init']({'id':0x1,'channel':_0x4d2775('0x2219'),'interaction':_0x1407f9,'spy':!![]},_0x2c8fd4[_0x4d2775('0x178c')]['vm'][_0x4d2775('0x1aeb')]);}});}function _0x39c2e4(_0x359ed4){const _0x19cf4d=_0x5ba73a;_0x466ccf['chatInteraction']['delete']({'id':_0x359ed4['id']})[_0x19cf4d('0x1af5')][_0x19cf4d('0x17e7')](function(){const _0x2bdbcb=_0x19cf4d;_0x49cbdd()[_0x2bdbcb('0x5f3')](_0x423bcb['chatWebsiteInteractions']['rows'],{'id':_0x359ed4['id']}),_0x423bcb[_0x2bdbcb('0xd3a')][_0x2bdbcb('0x335')]-=0x1,!_0x423bcb['chatWebsiteInteractions'][_0x2bdbcb('0x2319')]['length']&&_0x3a455d(),_0x3985bc['success']({'title':_0x2bdbcb('0xdca'),'msg':_0x359ed4[_0x2bdbcb('0x2aa')]?_0x359ed4[_0x2bdbcb('0x2aa')]+_0x2bdbcb('0x149f'):''});})[_0x19cf4d('0x16df')](function(_0x586f13){const _0x360cfc=_0x19cf4d;if(_0x586f13[_0x360cfc('0x1457')]&&_0x586f13[_0x360cfc('0x1457')]['errors']&&_0x586f13[_0x360cfc('0x1457')][_0x360cfc('0x73e')][_0x360cfc('0x1f73')]){_0x423bcb[_0x360cfc('0x73e')]=_0x586f13[_0x360cfc('0x1457')][_0x360cfc('0x73e')]||[{'message':_0x586f13[_0x360cfc('0x9b6')](),'type':_0x360cfc('0xa98')}];for(let _0x2098d8=0x0;_0x2098d8<_0x586f13[_0x360cfc('0x1457')][_0x360cfc('0x73e')][_0x360cfc('0x1f73')];_0x2098d8++){_0x3985bc[_0x360cfc('0x1db9')]({'title':_0x586f13[_0x360cfc('0x1457')][_0x360cfc('0x73e')][_0x2098d8]['type'],'msg':_0x586f13[_0x360cfc('0x1457')][_0x360cfc('0x73e')][_0x2098d8][_0x360cfc('0x1603')]});}}else _0x3985bc[_0x360cfc('0x1db9')]({'title':_0x586f13['status']?_0x360cfc('0x14f7')+_0x586f13[_0x360cfc('0x11c5')]+_0x360cfc('0x16e4')+_0x586f13['statusText']:_0x360cfc('0xa98'),'msg':_0x586f13[_0x360cfc('0x1457')]?JSON[_0x360cfc('0x678')](_0x586f13[_0x360cfc('0x1457')]['message']):_0x586f13[_0x360cfc('0x1603')]||_0x586f13[_0x360cfc('0x9b6')]()});});}function _0x456860(){const _0x4225d3=_0x5ba73a,_0x101d4a=angular[_0x4225d3('0x14e5')](_0x423bcb[_0x4225d3('0x1fca')]);return _0x423bcb['selectedChatWebsiteInteractions']=[],_0x101d4a;}function _0x5c1a0d(_0xf83165){const _0x7af653=_0x5ba73a,_0x974001=_0x667140[_0x7af653('0x1121')]()[_0x7af653('0x24d3')](_0x7af653('0x144e'))['htmlContent'](_0x7af653('0xa53')+_0x423bcb[_0x7af653('0x1fca')][_0x7af653('0x1f73')]+_0x7af653('0x145a')+_0x7af653('0xe9f'))[_0x7af653('0x2095')](_0x7af653('0x1d21'))[_0x7af653('0x104f')](_0xf83165)['ok']('OK')[_0x7af653('0x1d47')](_0x7af653('0x28a0'));_0x667140[_0x7af653('0x28e2')](_0x974001)['then'](function(){const _0xdb9e8d=_0x7af653;_0x423bcb[_0xdb9e8d('0x1fca')][_0xdb9e8d('0xccd')](function(_0x37bb7c){_0x39c2e4(_0x37bb7c);}),_0x423bcb[_0xdb9e8d('0x1fca')]=[];});}function _0x2493d5(_0xf5e6b8){const _0x19ebb9=_0x5ba73a;_0xf5e6b8[_0x19ebb9('0x239b')]?_0xf5e6b8[_0x19ebb9('0x192c')]=(_0xf5e6b8['Contact']['firstName']||'')+'\x20'+(_0xf5e6b8[_0x19ebb9('0x239b')][_0x19ebb9('0x8d6')]||''):_0xf5e6b8[_0x19ebb9('0x192c')]=_0x4c4222['instant']('DASHBOARDS.UNKNOWN');}function _0x1f6f90(_0x4f3954){const _0x3cc9e4=_0x5ba73a;if(_0x4f3954[_0x3cc9e4('0x5e5')])return _0x4f3954['UserId']===_0x423bcb[_0x3cc9e4('0x197c')]['id']?_0x4c4222['instant']('DASHBOARDS.ME'):_0x4f3954[_0x3cc9e4('0xe49')][_0x3cc9e4('0xea6')]+'\x20<'+_0x4f3954[_0x3cc9e4('0xe49')]['internal']+'>';return _0x4c4222[_0x3cc9e4('0x1acc')](_0x3cc9e4('0x154d'));}let _0x16ded0=!![],_0x1f127a=0x1;_0x2c8fd4[_0x5ba73a('0x620')](_0x5ba73a('0x4c3'),function(_0x5f4c8e,_0x4747a2){const _0x493a36=_0x5ba73a;_0x16ded0?_0x47c0d(function(){_0x16ded0=![];}):(!_0x4747a2&&(_0x1f127a=_0x423bcb[_0x493a36('0x826')]['page']),_0x5f4c8e!==_0x4747a2&&(_0x423bcb[_0x493a36('0x826')]['page']=0x1),!_0x5f4c8e&&(_0x423bcb['query'][_0x493a36('0x115a')]=_0x1f127a),_0x3a455d());});}const _0x1f2805=_0xb76a7d;_0xbd5828[_0x4376d8('0x1b9c')]=['$cookies',_0x4376d8('0x108a')];function _0xbd5828(_0x5871cf,_0x17ec8b){const _0x1c977d=_0x4376d8,_0x180945=this,_0x2c5f9c=0x8,_0x465814=_0x2c5f9c*0x400*0x400;_0x180945[_0x1c977d('0xdb2')]={},_0x180945[_0x1c977d('0x103e')],_0x180945[_0x1c977d('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x465814,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x180945[_0x1c977d('0xbdf')]={'flow':{}},_0x180945['dropping']=![],_0x180945[_0x1c977d('0xb73')]=_0x2939a,_0x180945['upload']=_0x3cf268,_0x180945['fileSuccess']=_0x51586b,_0x180945[_0x1c977d('0x161d')]=_0x593919;function _0x593919(_0x54e8ca,_0x25f7a3){const _0x142175=_0x1c977d;_0x180945['chatWebsite']=angular[_0x142175('0x14e5')](_0x54e8ca),_0x180945['crudPermissions']=typeof _0x25f7a3!==_0x142175('0xfad')?_0x25f7a3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x180945[_0x142175('0x1713')][_0x142175('0x8cf')]=_0x142175('0x1670')[_0x142175('0x737')](_0x142175('0x17cf'),_0x180945['chatWebsite']['id']),_0x180945[_0x142175('0xdb2')][_0x142175('0x1563')]=[];}function _0x2939a(_0x776b0c){const _0x7a70b0=_0x1c977d,_0x47e6ea=[_0x7a70b0('0x1b65'),'jpg'];if(!_0x49cbdd()[_0x7a70b0('0x24b0')](_0x47e6ea,_0x776b0c['getExtension']()))return _0x17ec8b['error']({'title':'Invalid\x20extension:\x20'+_0x776b0c[_0x7a70b0('0x11b0')](),'msg':'Supported\x20extension:\x20'+_0x47e6ea[_0x7a70b0('0x1eba')]()}),![];if(_0x776b0c[_0x7a70b0('0xf04')]>_0x465814)return _0x17ec8b[_0x7a70b0('0x1db9')]({'title':_0x7a70b0('0x586'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x2c5f9c+'MB'}),![];const _0x50bdae={'id':_0x776b0c[_0x7a70b0('0x22b5')],'file':_0x776b0c,'type':_0x7a70b0('0x22df')};return _0x180945['chatWebsite'][_0x7a70b0('0x1563')]['unshift'](_0x50bdae),!![];}function _0x3cf268(){const _0x9ced42=_0x1c977d;_0x180945[_0x9ced42('0xbdf')][_0x9ced42('0x3bb')][_0x9ced42('0x1771')][_0x9ced42('0x10b')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x9ced42('0x28e8')+_0x5871cf['get'](_0x9ced42('0xb2a'))},_0x180945[_0x9ced42('0xbdf')][_0x9ced42('0x3bb')][_0x9ced42('0x624')]();}function _0x51586b(_0x26dff0){const _0x458843=_0x1c977d;angular['forEach'](_0x180945[_0x458843('0xdb2')]['images'],function(_0x2e6e9d){const _0x2120dc=_0x458843;if(_0x2e6e9d['id']===_0x26dff0[_0x2120dc('0x22b5')]){const _0x33c670=new FileReader();_0x33c670[_0x2120dc('0x1ea4')](_0x2e6e9d['file'][_0x2120dc('0xc89')]),_0x33c670[_0x2120dc('0x2a1')]=function(_0x492d90){const _0x23ba96=_0x2120dc;_0x2e6e9d[_0x23ba96('0x101e')]=_0x492d90['target'][_0x23ba96('0x2284')];},_0x2e6e9d[_0x2120dc('0x412')]='image';}});}}const _0x235b3c=_0xbd5828,_0x2e208d=_0x4cf2bc['p']+_0x4376d8('0x1394');_0x504bb7['$inject']=['$cookies',_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),'api',_0x4376d8('0x1885')];function _0x504bb7(_0x26f9fe,_0x486864,_0x3883e8,_0x2a20b9,_0x31acab,_0x4ef566,_0x27e6f9,_0x226b94,_0x3a9bef,_0x41368d,_0x51c996){const _0x152196=_0x4376d8,_0x32a49a=this;_0x32a49a['currentUser']=_0x51c996[_0x152196('0x2831')](),_0x32a49a[_0x152196('0xdb2')]={},_0x32a49a[_0x152196('0x442')]={'count':0x0,'rows':[]},_0x32a49a['selectedChatWebsiteOfflineMessages']=[],_0x32a49a[_0x152196('0x103e')],_0x32a49a[_0x152196('0x826')]={'fields':_0x152196('0x18e9'),'sort':'-createdAt','limit':0xa,'page':0x1},_0x32a49a[_0x152196('0x161d')]=_0x41b743,_0x32a49a[_0x152196('0x1a20')]=_0x256998,_0x32a49a['success']=_0x3a2559,_0x32a49a[_0x152196('0x340')]=_0x3dd915,_0x32a49a[_0x152196('0x264a')]=_0x260e54,_0x32a49a[_0x152196('0x1703')]=_0x42aae6,_0x32a49a[_0x152196('0x23cb')]=_0x13deba,_0x32a49a[_0x152196('0xfdc')]=_0x2addd0,_0x32a49a[_0x152196('0x1582')]=_0x52f7c5;function _0x41b743(_0x5b323d,_0x430b68){const _0x2b9524=_0x152196;_0x32a49a[_0x2b9524('0xdb2')]=_0x5b323d,_0x32a49a[_0x2b9524('0x103e')]=typeof _0x430b68!==_0x2b9524('0xfad')?_0x430b68:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x32a49a[_0x2b9524('0x826')]['id']=_0x32a49a['chatWebsite']['id'],_0x3dd915();}function _0x256998(_0x2712af,_0x19fa6e){const _0x12b7da=_0x152196,_0x7dd181=_0x27e6f9[_0x12b7da('0x1121')]()['title'](_0x12b7da('0x288b'))[_0x12b7da('0x211f')](''+(_0x2712af['name']||_0x2712af['id']&&_0x49cbdd()[_0x12b7da('0x233c')]('offlineMessage\x20#')+_0x2712af['id']||_0x12b7da('0xd8e'))+_0x12b7da('0x1d23')+_0x12b7da('0xe9f'))[_0x12b7da('0x2095')]('delete\x20offlineMessage')[_0x12b7da('0x104f')](_0x19fa6e)['ok']('OK')[_0x12b7da('0x1d47')]('CANCEL');_0x27e6f9['show'](_0x7dd181)['then'](function(){_0x2addd0(_0x2712af);},function(){const _0x1df4ca=_0x12b7da;console['log'](_0x1df4ca('0x28a0'));});}function _0x3a2559(_0x1ee6ba){const _0x35f2c6=_0x152196;_0x32a49a[_0x35f2c6('0x442')]=_0x1ee6ba||{'count':0x0,'rows':[]};}function _0x3dd915(){const _0x48c3e5=_0x152196;_0x32a49a[_0x48c3e5('0x826')][_0x48c3e5('0xf19')]=(_0x32a49a[_0x48c3e5('0x826')]['page']-0x1)*_0x32a49a[_0x48c3e5('0x826')][_0x48c3e5('0x193b')],_0x32a49a[_0x48c3e5('0x1691')]=_0x41368d['chatWebsite'][_0x48c3e5('0x612')](_0x32a49a[_0x48c3e5('0x826')],_0x3a2559)[_0x48c3e5('0x1af5')];}function _0x260e54(_0x28858c,_0x46721d){const _0x66426b=_0x152196;_0x27e6f9['show']({'controller':_0x66426b('0x28c7'),'controllerAs':'vm','templateUrl':_0x2e208d,'parent':angular[_0x66426b('0x1ce1')](_0x226b94['body']),'targetEvent':_0x28858c,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x32a49a[_0x66426b('0xdb2')],'offlineMessage':_0x46721d,'offlineMessages':_0x32a49a['chatWebsiteOfflineMessages'][_0x66426b('0x2319')],'license':null,'setting':null,'crudPermissions':_0x32a49a[_0x66426b('0x103e')]}});}function _0x42aae6(_0x3e2927,_0x4b92a1){const _0x203e28=_0x152196;_0x27e6f9[_0x203e28('0x28e2')]({'controller':_0x203e28('0xc10'),'controllerAs':'vm','templateUrl':_0x2e208d,'parent':angular[_0x203e28('0x1ce1')](_0x226b94['body']),'targetEvent':_0x3e2927,'clickOutsideToClose':!![],'resolve':{'message':[_0x203e28('0x177'),function(_0x2ec9b8){const _0x7c224d=_0x203e28;return _0x2ec9b8[_0x7c224d('0x898')](_0x7c224d('0x15e9'),{'fields':_0x7c224d('0x2810'),'id':_0x4b92a1['id']});}]}});}function _0x2addd0(_0x3a7be0){const _0x143b56=_0x152196;_0x41368d[_0x143b56('0x4b8')][_0x143b56('0x1da6')]({'id':_0x3a7be0['id']})['$promise'][_0x143b56('0x17e7')](function(){const _0x1b95b8=_0x143b56;_0x49cbdd()[_0x1b95b8('0x5f3')](_0x32a49a[_0x1b95b8('0x442')][_0x1b95b8('0x2319')],{'id':_0x3a7be0['id']}),_0x32a49a[_0x1b95b8('0x442')][_0x1b95b8('0x335')]-=0x1,!_0x32a49a['chatWebsiteOfflineMessages'][_0x1b95b8('0x2319')][_0x1b95b8('0x1f73')]&&_0x3dd915(),_0x3a9bef['success']({'title':'OfflineMessage\x20deleted!','msg':_0x3a7be0['name']?_0x3a7be0[_0x1b95b8('0x2aa')]+_0x1b95b8('0x149f'):''});})[_0x143b56('0x16df')](function(_0x315ac0){const _0x2b79e7=_0x143b56;if(_0x315ac0[_0x2b79e7('0x1457')]&&_0x315ac0[_0x2b79e7('0x1457')][_0x2b79e7('0x73e')]&&_0x315ac0['data'][_0x2b79e7('0x73e')][_0x2b79e7('0x1f73')]){_0x32a49a[_0x2b79e7('0x73e')]=_0x315ac0[_0x2b79e7('0x1457')][_0x2b79e7('0x73e')]||[{'message':_0x315ac0[_0x2b79e7('0x9b6')](),'type':_0x2b79e7('0xa98')}];for(let _0x437deb=0x0;_0x437deb<_0x315ac0[_0x2b79e7('0x1457')][_0x2b79e7('0x73e')][_0x2b79e7('0x1f73')];_0x437deb++){_0x3a9bef['error']({'title':_0x315ac0[_0x2b79e7('0x1457')]['errors'][_0x437deb][_0x2b79e7('0x412')],'msg':_0x315ac0[_0x2b79e7('0x1457')][_0x2b79e7('0x73e')][_0x437deb][_0x2b79e7('0x1603')]});}}else _0x3a9bef[_0x2b79e7('0x1db9')]({'title':_0x315ac0[_0x2b79e7('0x11c5')]?_0x2b79e7('0x14f7')+_0x315ac0[_0x2b79e7('0x11c5')]+_0x2b79e7('0x16e4')+_0x315ac0[_0x2b79e7('0x1833')]:'SYSTEM:GETchatWebsite','msg':_0x315ac0[_0x2b79e7('0x1457')]?JSON[_0x2b79e7('0x678')](_0x315ac0[_0x2b79e7('0x1457')][_0x2b79e7('0x1603')]):_0x315ac0[_0x2b79e7('0x1603')]||_0x315ac0[_0x2b79e7('0x9b6')]()});});}function _0x13deba(){const _0x5f5d7a=_0x152196,_0x2aec9e=angular[_0x5f5d7a('0x14e5')](_0x32a49a[_0x5f5d7a('0x1326')]);return _0x32a49a[_0x5f5d7a('0x1326')]=[],_0x2aec9e;}function _0x52f7c5(_0x5619cd){const _0xfc2441=_0x152196,_0x4adce9=_0x27e6f9[_0xfc2441('0x1121')]()[_0xfc2441('0x24d3')](_0xfc2441('0x24b7'))[_0xfc2441('0x211f')](''+_0x32a49a[_0xfc2441('0x1326')]['length']+'\x20selected'+_0xfc2441('0xe9f'))[_0xfc2441('0x2095')](_0xfc2441('0x10d'))[_0xfc2441('0x104f')](_0x5619cd)['ok']('OK')['cancel'](_0xfc2441('0x28a0'));_0x27e6f9[_0xfc2441('0x28e2')](_0x4adce9)['then'](function(){const _0x4a4062=_0xfc2441;_0x32a49a[_0x4a4062('0x1326')][_0x4a4062('0xccd')](function(_0x5b23ef){_0x2addd0(_0x5b23ef);}),_0x32a49a['selectedChatWebsiteOfflineMessages']=[];});}let _0x2e19e8=!![],_0x256ef8=0x1;_0x486864[_0x152196('0x620')](_0x152196('0x4c3'),function(_0x49b8f9,_0x5235c9){const _0x29462f=_0x152196;_0x2e19e8?_0x4ef566(function(){_0x2e19e8=![];}):(!_0x5235c9&&(_0x256ef8=_0x32a49a[_0x29462f('0x826')][_0x29462f('0x115a')]),_0x49b8f9!==_0x5235c9&&(_0x32a49a['query']['page']=0x1),!_0x49b8f9&&(_0x32a49a[_0x29462f('0x826')][_0x29462f('0x115a')]=_0x256ef8),_0x3dd915());});}const _0x5b6d05=_0x504bb7;_0x83b151[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x1603')];function _0x83b151(_0x542244,_0x3ebd84){const _0x150ed9=_0x4376d8,_0x2b0e20=this;_0x2b0e20['title']=_0x150ed9('0x59b'),_0x2b0e20[_0x150ed9('0x1603')]=_0x3ebd84,_0x2b0e20[_0x150ed9('0x136e')]=_0x5c44b6;function _0x5c44b6(_0x621f79){const _0x5a8257=_0x150ed9;_0x542244[_0x5a8257('0x212a')](_0x621f79);}}const _0x1eedf6=_0x83b151,_0xee4ab7=_0x4cf2bc['p']+_0x4376d8('0x1b21');_0x9d60e4[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),'$timeout','$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'Auth'];function _0x9d60e4(_0xe68e04,_0x191b88,_0x2fe010,_0x43eca3,_0xfab718,_0x11e93c,_0x93991,_0x4c4279,_0x5a2c74,_0x45913d,_0x4e0bc9){const _0x254df4=_0x4376d8,_0x52d041=this;_0x52d041[_0x254df4('0x197c')]=_0x4e0bc9[_0x254df4('0x2831')](),_0x52d041[_0x254df4('0xdb2')]={},_0x52d041[_0x254df4('0x15ec')]={'count':0x0,'rows':[]},_0x52d041['selectedChatWebsiteProactiveActions']=[],_0x52d041['crudPermissions'],_0x52d041[_0x254df4('0x826')]={'fields':_0x254df4('0x2176'),'limit':0xa,'page':0x1},_0x52d041[_0x254df4('0xc41')]=_0x49cbdd()[_0x254df4('0x8de')]([{'option':_0x254df4('0x20f6'),'value':_0x254df4('0x9fa')},{'option':_0x254df4('0x1ceb'),'value':'\x27timeout\x27'}],function(_0x46e28a){const _0x21b329=_0x254df4;return _0x49cbdd()[_0x21b329('0x737')](_0x46e28a[_0x21b329('0x175b')],new RegExp('\x27','g'),'');}),_0x52d041[_0x254df4('0x161d')]=_0x130e5a,_0x52d041['deleteConfirm']=_0x2bcb03,_0x52d041['success']=_0x288c85,_0x52d041['getChatWebsiteProactiveActions']=_0x12583c,_0x52d041[_0x254df4('0x1ea7')]=_0x326bd7,_0x52d041[_0x254df4('0x7e9')]=_0x476d8c,_0x52d041[_0x254df4('0x1ea1')]=_0x8c0177,_0x52d041[_0x254df4('0x159a')]=_0x43f0bb;function _0x130e5a(_0x2a5ba8,_0x48573d){const _0x18c4dc=_0x254df4;_0x52d041[_0x18c4dc('0xdb2')]=_0x2a5ba8,_0x52d041['crudPermissions']=typeof _0x48573d!==_0x18c4dc('0xfad')?_0x48573d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x52d041[_0x18c4dc('0x826')][_0x18c4dc('0x259')]=_0x52d041[_0x18c4dc('0xdb2')]['id'],_0x52d041[_0x18c4dc('0x826')]['id']=_0x52d041[_0x18c4dc('0xdb2')]['id'],_0x12583c();}function _0x2bcb03(_0x398f3a,_0x419197){const _0x408350=_0x254df4,_0x78300f=_0x93991['confirm']()[_0x408350('0x24d3')](_0x408350('0x22e7'))[_0x408350('0x211f')](''+(_0x398f3a['name']||_0x398f3a['id']&&_0x49cbdd()[_0x408350('0x233c')](_0x408350('0x17a1'))+_0x398f3a['id']||_0x408350('0xcae'))+_0x408350('0x1d23')+_0x408350('0xe9f'))['ariaLabel'](_0x408350('0xfa4'))[_0x408350('0x104f')](_0x419197)['ok']('OK')[_0x408350('0x1d47')](_0x408350('0x28a0'));_0x93991[_0x408350('0x28e2')](_0x78300f)['then'](function(){_0x8c0177(_0x398f3a);},function(){const _0x2de24c=_0x408350;console[_0x2de24c('0x1d63')](_0x2de24c('0x28a0'));});}function _0x288c85(_0x40a0de){const _0x12c2dc=_0x254df4;_0x52d041[_0x12c2dc('0x15ec')]=_0x40a0de||{'count':0x0,'rows':[]};}function _0x12583c(){const _0x58986a=_0x254df4;_0x52d041[_0x58986a('0x826')][_0x58986a('0xf19')]=(_0x52d041[_0x58986a('0x826')]['page']-0x1)*_0x52d041[_0x58986a('0x826')][_0x58986a('0x193b')],_0x52d041[_0x58986a('0x1691')]=_0x45913d[_0x58986a('0xdb2')]['getProactiveActions'](_0x52d041[_0x58986a('0x826')],_0x288c85)[_0x58986a('0x1af5')];}function _0x326bd7(_0x1d2ef2,_0x162bd9){const _0x4f742e=_0x254df4;_0x93991[_0x4f742e('0x28e2')]({'controller':_0x4f742e('0x198e'),'controllerAs':'vm','templateUrl':_0xee4ab7,'parent':angular[_0x4f742e('0x1ce1')](_0x4c4279[_0x4f742e('0x13aa')]),'targetEvent':_0x1d2ef2,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x52d041[_0x4f742e('0xdb2')],'chatProactiveAction':_0x162bd9,'proactive':_0x52d041[_0x4f742e('0x15ec')][_0x4f742e('0x2319')],'license':null,'setting':null,'crudPermissions':_0x52d041[_0x4f742e('0x103e')]}});}function _0x8c0177(_0x337804){const _0x597878=_0x254df4;_0x45913d[_0x597878('0xcae')][_0x597878('0x1da6')]({'id':_0x337804['id']})[_0x597878('0x1af5')]['then'](function(){const _0x4962be=_0x597878;_0x49cbdd()[_0x4962be('0x5f3')](_0x52d041[_0x4962be('0x15ec')][_0x4962be('0x2319')],{'id':_0x337804['id']}),_0x52d041[_0x4962be('0x15ec')][_0x4962be('0x335')]-=0x1,!_0x52d041[_0x4962be('0x15ec')][_0x4962be('0x2319')][_0x4962be('0x1f73')]&&_0x12583c(),_0x5a2c74[_0x4962be('0x130d')]({'title':_0x4962be('0x1bc0'),'msg':_0x337804[_0x4962be('0x2aa')]?_0x337804['name']+_0x4962be('0x149f'):''});})[_0x597878('0x16df')](function(_0x4e35cf){const _0x112b72=_0x597878;if(_0x4e35cf[_0x112b72('0x1457')]&&_0x4e35cf['data']['errors']&&_0x4e35cf['data'][_0x112b72('0x73e')][_0x112b72('0x1f73')]){_0x52d041[_0x112b72('0x73e')]=_0x4e35cf[_0x112b72('0x1457')][_0x112b72('0x73e')]||[{'message':_0x4e35cf[_0x112b72('0x9b6')](),'type':_0x112b72('0xa98')}];for(let _0x53c29a=0x0;_0x53c29a<_0x4e35cf[_0x112b72('0x1457')][_0x112b72('0x73e')]['length'];_0x53c29a++){_0x5a2c74['error']({'title':_0x4e35cf[_0x112b72('0x1457')][_0x112b72('0x73e')][_0x53c29a]['type'],'msg':_0x4e35cf[_0x112b72('0x1457')][_0x112b72('0x73e')][_0x53c29a][_0x112b72('0x1603')]});}}else _0x5a2c74[_0x112b72('0x1db9')]({'title':_0x4e35cf['status']?'API:'+_0x4e35cf[_0x112b72('0x11c5')]+_0x112b72('0x16e4')+_0x4e35cf[_0x112b72('0x1833')]:_0x112b72('0xa98'),'msg':_0x4e35cf[_0x112b72('0x1457')]?JSON['stringify'](_0x4e35cf[_0x112b72('0x1457')][_0x112b72('0x1603')]):_0x4e35cf[_0x112b72('0x1603')]||_0x4e35cf[_0x112b72('0x9b6')]()});});}function _0x476d8c(){const _0x48860a=_0x254df4,_0x1b70a8=angular[_0x48860a('0x14e5')](_0x52d041[_0x48860a('0xd00')]);return _0x52d041[_0x48860a('0xd00')]=[],_0x1b70a8;}function _0x43f0bb(_0x1a0144){const _0x148387=_0x254df4,_0x20c677=_0x93991[_0x148387('0x1121')]()[_0x148387('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20proactive?')[_0x148387('0x211f')](_0x148387('0xa53')+_0x52d041[_0x148387('0xd00')][_0x148387('0x1f73')]+_0x148387('0x145a')+_0x148387('0xe9f'))['ariaLabel'](_0x148387('0x167b'))['targetEvent'](_0x1a0144)['ok']('OK')[_0x148387('0x1d47')](_0x148387('0x28a0'));_0x93991[_0x148387('0x28e2')](_0x20c677)[_0x148387('0x17e7')](function(){const _0xb74789=_0x148387;_0x52d041['selectedChatWebsiteProactiveActions'][_0xb74789('0xccd')](function(_0x150bf5){_0x8c0177(_0x150bf5);}),_0x52d041[_0xb74789('0xd00')]=[];});}let _0x374eb0=!![],_0x37d7a2=0x1;_0x191b88[_0x254df4('0x620')](_0x254df4('0x4c3'),function(_0x5f3623,_0x27a59b){const _0xbebb2b=_0x254df4;_0x374eb0?_0x11e93c(function(){_0x374eb0=![];}):(!_0x27a59b&&(_0x37d7a2=_0x52d041[_0xbebb2b('0x826')][_0xbebb2b('0x115a')]),_0x5f3623!==_0x27a59b&&(_0x52d041['query'][_0xbebb2b('0x115a')]=0x1),!_0x5f3623&&(_0x52d041[_0xbebb2b('0x826')][_0xbebb2b('0x115a')]=_0x37d7a2),_0x12583c());});}const _0x2cf196=_0x9d60e4;_0x2e2353['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x136b'),_0x4376d8('0xcae'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x2e2353(_0x831734,_0x5aa9bb,_0x26aa6d,_0x3cfb10,_0xac2b2c,_0x5be44a,_0x196400,_0x4a11cc,_0x5015ac,_0x342710,_0x44ae0e,_0x300782,_0x18da98,_0x55a846){const _0xcf2028=_0x4376d8,_0x3e7691=this;_0x3e7691['currentUser']=_0x44ae0e[_0xcf2028('0x2831')](),_0x3e7691[_0xcf2028('0x73e')]=[],_0x3e7691[_0xcf2028('0x1aeb')]=_0x18da98,_0x3e7691['license']=_0x300782,_0x3e7691[_0xcf2028('0x103e')]=_0x55a846,_0x3e7691[_0xcf2028('0x6ee')]={},_0x3e7691[_0xcf2028('0x1572')]=_0x3e7691[_0xcf2028('0x1aeb')]&&_0x3e7691[_0xcf2028('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3e7691[_0xcf2028('0x24d3')]=_0xcf2028('0xd83'),_0x3e7691['chatProactiveAction']=angular['copy'](_0x5015ac),_0x3e7691['proactive']=_0x4a11cc,_0x3e7691[_0xcf2028('0x1fa1')]=![];!_0x3e7691['chatProactiveAction']&&(_0x3e7691['chatProactiveAction']={'type':_0xcf2028('0xb52')},_0x3e7691[_0xcf2028('0x24d3')]=_0xcf2028('0xaaa'),_0x3e7691[_0xcf2028('0x1fa1')]=!![]);_0x5aa9bb[_0xcf2028('0x16fb')]['id']&&(_0x3e7691[_0xcf2028('0xcae')][_0xcf2028('0x259')]=_0x5aa9bb[_0xcf2028('0x16fb')]['id']);_0x3e7691['addNewChatProactiveAction']=_0x3a9892,_0x3e7691[_0xcf2028('0xa99')]=_0x2f10f1,_0x3e7691[_0xcf2028('0x1a7b')]=_0x15032d,_0x3e7691[_0xcf2028('0x1300')]=_0x55b712,_0x3e7691[_0xcf2028('0x136e')]=_0x11ff8b;function _0x3a9892(){const _0x586af5=_0xcf2028;_0x3e7691[_0x586af5('0x73e')]=[],_0x342710['chatProactiveAction']['save'](_0x3e7691[_0x586af5('0xcae')])[_0x586af5('0x1af5')]['then'](function(_0x8aecb6){const _0x2411c8=_0x586af5;_0x3e7691[_0x2411c8('0x136b')][_0x2411c8('0x1893')](_0x8aecb6[_0x2411c8('0x16b2')]()),_0x196400['success']({'title':_0x2411c8('0xce9'),'msg':_0x3e7691[_0x2411c8('0xcae')]['name']?_0x3e7691[_0x2411c8('0xcae')]['name']+_0x2411c8('0x15a'):''}),_0x11ff8b(_0x8aecb6);})[_0x586af5('0x16df')](function(_0x46d240){const _0x1502ba=_0x586af5;if(_0x46d240[_0x1502ba('0x1457')]&&_0x46d240[_0x1502ba('0x1457')]['errors']&&_0x46d240[_0x1502ba('0x1457')][_0x1502ba('0x73e')][_0x1502ba('0x1f73')]){_0x3e7691[_0x1502ba('0x73e')]=_0x46d240[_0x1502ba('0x1457')]['errors']||[{'message':_0x46d240[_0x1502ba('0x9b6')](),'type':_0x1502ba('0x218d')}];for(let _0xa15b89=0x0;_0xa15b89<_0x46d240['data'][_0x1502ba('0x73e')][_0x1502ba('0x1f73')];_0xa15b89+=0x1){_0x196400[_0x1502ba('0x1db9')]({'title':_0x46d240[_0x1502ba('0x1457')][_0x1502ba('0x73e')][_0xa15b89]['type'],'msg':_0x46d240[_0x1502ba('0x1457')][_0x1502ba('0x73e')][_0xa15b89]['message']});}}else _0x196400[_0x1502ba('0x1db9')]({'title':_0x46d240['status']?'API:'+_0x46d240['status']+'\x20-\x20'+_0x46d240[_0x1502ba('0x1833')]:_0x1502ba('0x218d'),'msg':_0x46d240['data']?JSON[_0x1502ba('0x678')](_0x46d240[_0x1502ba('0x1457')][_0x1502ba('0x1603')]):_0x46d240[_0x1502ba('0x9b6')]()});});}function _0x2f10f1(){const _0x66ff18=_0xcf2028;_0x3e7691[_0x66ff18('0x73e')]=[],_0x342710[_0x66ff18('0xcae')][_0x66ff18('0x27ba')]({'id':_0x3e7691['chatProactiveAction']['id']},_0x3e7691[_0x66ff18('0xcae')])['$promise'][_0x66ff18('0x17e7')](function(_0x47bba1){const _0x154c6e=_0x66ff18,_0x208617=_0x49cbdd()[_0x154c6e('0xe8e')](_0x3e7691[_0x154c6e('0x136b')],{'id':_0x47bba1['id']});_0x208617&&_0x49cbdd()[_0x154c6e('0x1ced')](_0x208617,_0x49cbdd()[_0x154c6e('0x230a')](_0x47bba1[_0x154c6e('0x16b2')](),_0x49cbdd()[_0x154c6e('0x1c0f')](_0x208617))),_0x196400[_0x154c6e('0x130d')]({'title':'ChatProactiveAction\x20properly\x20saved!','msg':_0x3e7691[_0x154c6e('0xcae')][_0x154c6e('0x2aa')]?_0x3e7691[_0x154c6e('0xcae')][_0x154c6e('0x2aa')]+_0x154c6e('0x15ca'):''}),_0x11ff8b(_0x47bba1);})[_0x66ff18('0x16df')](function(_0x210266){const _0x58bd1d=_0x66ff18;if(_0x210266['data']&&_0x210266[_0x58bd1d('0x1457')][_0x58bd1d('0x73e')]&&_0x210266[_0x58bd1d('0x1457')][_0x58bd1d('0x73e')]['length']){_0x3e7691[_0x58bd1d('0x73e')]=_0x210266['data'][_0x58bd1d('0x73e')]||[{'message':_0x210266[_0x58bd1d('0x9b6')](),'type':'api.chatProactiveAction.update'}];for(let _0x3f2bcc=0x0;_0x3f2bcc<_0x210266[_0x58bd1d('0x1457')][_0x58bd1d('0x73e')]['length'];_0x3f2bcc++){_0x196400[_0x58bd1d('0x1db9')]({'title':_0x210266[_0x58bd1d('0x1457')][_0x58bd1d('0x73e')][_0x3f2bcc]['type'],'msg':_0x210266[_0x58bd1d('0x1457')]['errors'][_0x3f2bcc][_0x58bd1d('0x1603')]});}}else _0x196400[_0x58bd1d('0x1db9')]({'title':_0x210266[_0x58bd1d('0x11c5')]?_0x58bd1d('0x14f7')+_0x210266[_0x58bd1d('0x11c5')]+_0x58bd1d('0x16e4')+_0x210266['statusText']:_0x58bd1d('0x1cc4'),'msg':_0x210266[_0x58bd1d('0x1457')]?JSON['stringify'](_0x210266[_0x58bd1d('0x1457')][_0x58bd1d('0x1603')]):_0x210266[_0x58bd1d('0x9b6')]()});});}function _0x15032d(_0x2f1066){const _0x20da90=_0xcf2028;_0x3e7691[_0x20da90('0x73e')]=[];const _0x34db90=_0x3cfb10['confirm']()['title'](_0x20da90('0x530'))[_0x20da90('0xd5')]('The\x20chatProactiveAction\x20will\x20be\x20deleted.')[_0x20da90('0x2095')](_0x20da90('0x1cb8'))['ok'](_0x20da90('0x304'))[_0x20da90('0x1d47')](_0x20da90('0x1b70'))[_0x20da90('0x104f')](_0x2f1066);_0x3cfb10[_0x20da90('0x28e2')](_0x34db90)[_0x20da90('0x17e7')](function(){const _0x5611a7=_0x20da90;_0x342710[_0x5611a7('0xcae')][_0x5611a7('0x1da6')]({'id':_0x3e7691[_0x5611a7('0xcae')]['id']})[_0x5611a7('0x1af5')][_0x5611a7('0x17e7')](function(){const _0x5b6b44=_0x5611a7;_0x49cbdd()[_0x5b6b44('0x5f3')](_0x3e7691['proactive'],{'id':_0x3e7691['chatProactiveAction']['id']}),_0x196400[_0x5b6b44('0x130d')]({'title':_0x5b6b44('0x20fc'),'msg':(_0x3e7691[_0x5b6b44('0xcae')]['name']||_0x5b6b44('0xcae'))+_0x5b6b44('0x149f')}),_0x11ff8b(_0x3e7691['chatProactiveAction']);})['catch'](function(_0x8da698){const _0x3990d7=_0x5611a7;if(_0x8da698[_0x3990d7('0x1457')]&&_0x8da698['data'][_0x3990d7('0x73e')]&&_0x8da698[_0x3990d7('0x1457')][_0x3990d7('0x73e')][_0x3990d7('0x1f73')]){_0x3e7691['errors']=_0x8da698['data'][_0x3990d7('0x73e')]||[{'message':_0x8da698[_0x3990d7('0x9b6')](),'type':_0x3990d7('0xac0')}];for(let _0x2478f0=0x0;_0x2478f0<_0x8da698['data'][_0x3990d7('0x73e')]['length'];_0x2478f0++){_0x196400[_0x3990d7('0x1db9')]({'title':_0x8da698[_0x3990d7('0x1457')][_0x3990d7('0x73e')][_0x2478f0][_0x3990d7('0x412')],'msg':_0x8da698['data']['errors'][_0x2478f0]['message']});}}else _0x196400['error']({'title':_0x8da698['status']?'API:'+_0x8da698[_0x3990d7('0x11c5')]+_0x3990d7('0x16e4')+_0x8da698[_0x3990d7('0x1833')]:'api.chatProactiveAction.delete','msg':_0x8da698['data']?JSON[_0x3990d7('0x678')](_0x8da698[_0x3990d7('0x1457')]['message']):_0x8da698[_0x3990d7('0x1603')]||_0x8da698[_0x3990d7('0x9b6')]()});});},function(){});}function _0x55b712(_0x54f5b1){return _0x54f5b1===null?undefined:new Date(_0x54f5b1);}function _0x11ff8b(_0x358125){_0x3cfb10['hide'](_0x358125);}}const _0x55a74b=_0x2e2353;_0x57a1ac[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668')];function _0x57a1ac(_0x3b4173){const _0x1e550f=_0x4376d8,_0x1d88e8=this;_0x1d88e8[_0x1e550f('0xdb2')]={},_0x1d88e8['init']=_0x17096d,_0x1d88e8[_0x1e550f('0x1178')]={};function _0x17096d(_0x441a93){const _0x438de2=_0x1e550f;_0x1d88e8[_0x438de2('0xdb2')]=_0x441a93,_0x1d88e8[_0x438de2('0x26ef')]=_0x438de2('0xce1'),_0x1d88e8['script']=_0x438de2('0x229c')+_0x1d88e8['chatWebsite'][_0x438de2('0x1aca')]+_0x438de2('0x194e')+_0x1d88e8[_0x438de2('0xdb2')]['id']+_0x438de2('0x20ad')+_0x1d88e8[_0x438de2('0xdb2')][_0x438de2('0x25bd')]+_0x438de2('0x1b0e'),_0x1d88e8[_0x438de2('0x12c')]=_0x438de2('0xce1');}_0x3b4173[_0x1e550f('0x620')]('vm_ac.chatWebsite.remote',function(){const _0x39b299=_0x1e550f;_0x1d88e8['script']=_0x39b299('0x229c')+_0x1d88e8['chatWebsite'][_0x39b299('0x1aca')]+_0x39b299('0x194e')+_0x1d88e8[_0x39b299('0xdb2')]['id']+_0x39b299('0x20ad')+_0x1d88e8[_0x39b299('0xdb2')][_0x39b299('0x25bd')]+_0x39b299('0x1b0e');});}const _0xea6d70=_0x57a1ac;_0xf4a622[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),'toasty'];function _0xf4a622(_0x165a66,_0x33159a){const _0x4faa94=_0x4376d8,_0x8fa8d2=this,_0x12a26f=0x8,_0x248550=_0x12a26f*0x400*0x400;_0x8fa8d2[_0x4faa94('0xdb2')]={},_0x8fa8d2[_0x4faa94('0x103e')],_0x8fa8d2[_0x4faa94('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x248550,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x8fa8d2[_0x4faa94('0xbdf')]={'flow':{}},_0x8fa8d2[_0x4faa94('0x1b74')]=![],_0x8fa8d2[_0x4faa94('0xb73')]=_0xb5a5f0,_0x8fa8d2[_0x4faa94('0x624')]=_0x9e4acd,_0x8fa8d2[_0x4faa94('0x1852')]=_0x4382c5,_0x8fa8d2[_0x4faa94('0x161d')]=_0xab2ad0;function _0xab2ad0(_0x4bd0c4,_0xa0f195){const _0x3365a8=_0x4faa94;_0x8fa8d2['chatWebsite']=angular[_0x3365a8('0x14e5')](_0x4bd0c4),_0x8fa8d2[_0x3365a8('0x103e')]=typeof _0xa0f195!==_0x3365a8('0xfad')?_0xa0f195:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x8fa8d2[_0x3365a8('0x1713')][_0x3365a8('0x8cf')]='/api/chat/websites/:id/system_avatar'['replace'](':id',_0x8fa8d2['chatWebsite']['id']),_0x8fa8d2[_0x3365a8('0xdb2')][_0x3365a8('0x1563')]=[];}function _0xb5a5f0(_0x43e36a){const _0x4164fb=_0x4faa94,_0x77dce0=[_0x4164fb('0x1b65'),_0x4164fb('0x5ef')];if(!_0x49cbdd()[_0x4164fb('0x24b0')](_0x77dce0,_0x43e36a[_0x4164fb('0x11b0')]()))return _0x33159a[_0x4164fb('0x1db9')]({'title':_0x4164fb('0xf3d')+_0x43e36a[_0x4164fb('0x11b0')](),'msg':_0x4164fb('0x836')+_0x77dce0[_0x4164fb('0x1eba')]()}),![];if(_0x43e36a[_0x4164fb('0xf04')]>_0x248550)return _0x33159a['error']({'title':_0x4164fb('0x586'),'msg':_0x4164fb('0x349')+_0x12a26f+'MB'}),![];const _0xe868e0={'id':_0x43e36a[_0x4164fb('0x22b5')],'file':_0x43e36a,'type':_0x4164fb('0x22df')};return _0x8fa8d2[_0x4164fb('0xdb2')][_0x4164fb('0x1563')][_0x4164fb('0x1893')](_0xe868e0),!![];}function _0x9e4acd(){const _0x29a3f2=_0x4faa94;_0x8fa8d2['ngFlow'][_0x29a3f2('0x3bb')][_0x29a3f2('0x1771')][_0x29a3f2('0x10b')]={'X-Requested-With':_0x29a3f2('0x20a6'),'Authorization':_0x29a3f2('0x28e8')+_0x165a66['get'](_0x29a3f2('0xb2a'))},_0x8fa8d2['ngFlow'][_0x29a3f2('0x3bb')][_0x29a3f2('0x624')]();}function _0x4382c5(_0x5769b4){const _0x3fae32=_0x4faa94;angular[_0x3fae32('0xccd')](_0x8fa8d2[_0x3fae32('0xdb2')][_0x3fae32('0x1563')],function(_0x4e1c80){const _0x1af57b=_0x3fae32;if(_0x4e1c80['id']===_0x5769b4[_0x1af57b('0x22b5')]){const _0x191b9d=new FileReader();_0x191b9d[_0x1af57b('0x1ea4')](_0x4e1c80[_0x1af57b('0xc89')]['file']),_0x191b9d[_0x1af57b('0x2a1')]=function(_0x2d066b){const _0x1d0ce3=_0x1af57b;_0x4e1c80[_0x1d0ce3('0x101e')]=_0x2d066b[_0x1d0ce3('0x8cf')]['result'];},_0x4e1c80[_0x1af57b('0x412')]=_0x1af57b('0x22ad');}});}}const _0x347ca1=_0xf4a622;_0x548b52[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0xdb2'),_0x4376d8('0x383')];function _0x548b52(_0x5e4bd6,_0x1abc34,_0x406f92,_0x3accdb,_0x3168c7,_0x2c430a,_0x23cece,_0x5b6a4c,_0x301c33,_0x41635a,_0xce8e19,_0x47e9dc){const _0xf921c9=_0x4376d8,_0x567d97=this;_0x567d97['currentUser']=_0x41635a['getCurrentUser'](),_0x567d97['license']=_0x2c430a,_0x567d97[_0xf921c9('0x1aeb')]=_0x23cece,_0x567d97[_0xf921c9('0x1572')]=_0x567d97[_0xf921c9('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x567d97[_0xf921c9('0xaed')]=_0x1abc34['protocol']()+_0xf921c9('0x14')+_0x1abc34[_0xf921c9('0x108')](),_0x567d97[_0xf921c9('0xdb2')]=_0xce8e19||_0x5e4bd6['params'][_0xf921c9('0xdb2')]||{},_0x567d97['userProfileSection']=_0x47e9dc&&_0x47e9dc[_0xf921c9('0x335')]==0x1?_0x47e9dc[_0xf921c9('0x2319')][0x0]:null,_0x567d97['crudPermissions']=_0x41635a[_0xf921c9('0x17a9')](_0x567d97[_0xf921c9('0x383')]?_0x567d97[_0xf921c9('0x383')][_0xf921c9('0x103e')]:null),_0x567d97['hasModulePermissions']={},_0x567d97['selectedTab']=_0x5e4bd6[_0xf921c9('0x16fb')][_0xf921c9('0x1523')]||0x0,_0x567d97['agentadddialog']=_0x10e2f7,_0x567d97[_0xf921c9('0x99f')]=_0x301c33[_0xf921c9('0x1178')],_0x567d97['gotoChatWebsites']=_0x56702c,_0x567d97[_0xf921c9('0xf56')]=_0x5e6cb4,_0x41635a[_0xf921c9('0x1ba2')](_0xf921c9('0x20bf'))?_0x5b6a4c['cmList']['get']({'fields':_0xf921c9('0x12d2'),'sort':_0xf921c9('0x2aa')})[_0xf921c9('0x1af5')]['then'](function(_0x11a78a){const _0x232fd1=_0xf921c9;_0x567d97[_0x232fd1('0x2504')]=_0x11a78a[_0x232fd1('0x2319')]||[];})['catch'](function(_0x13ff8e){const _0x43f028=_0xf921c9;_0x301c33[_0x43f028('0x1db9')]({'title':_0x13ff8e[_0x43f028('0x11c5')]?'API:'+_0x13ff8e['status']+_0x43f028('0x16e4')+_0x13ff8e['statusText']:_0x43f028('0x2410'),'msg':_0x13ff8e[_0x43f028('0x1457')]?JSON['stringify'](_0x13ff8e[_0x43f028('0x1457')]):_0x13ff8e['toString']()});}):_0x5b6a4c[_0xf921c9('0x25b')][_0xf921c9('0x1c53')]({'fields':_0xf921c9('0x12d2'),'sort':_0xf921c9('0x2aa')})[_0xf921c9('0x1af5')][_0xf921c9('0x17e7')](function(_0x3b5173){const _0x2fad91=_0xf921c9;_0x567d97[_0x2fad91('0x2504')]=_0x3b5173[_0x2fad91('0x2319')]||[];})[_0xf921c9('0x17e7')](function(){const _0x53a44e=_0xf921c9;return _0x5b6a4c[_0x53a44e('0x383')]['get']({'userProfileId':_0x567d97[_0x53a44e('0x197c')]['userProfileId'],'sectionId':0x12d})[_0x53a44e('0x1af5')];})[_0xf921c9('0x17e7')](function(_0x19ea22){const _0x4fc4c6=_0xf921c9,_0x1db561=_0x19ea22&&_0x19ea22[_0x4fc4c6('0x2319')]?_0x19ea22[_0x4fc4c6('0x2319')][0x0]:null;if(!_0x1db561){const _0x72e424=[];let _0x1ae8f8=null;_0x567d97[_0x4fc4c6('0xdb2')]&&(_0x1ae8f8=_0x49cbdd()[_0x4fc4c6('0xe8e')](_0x567d97[_0x4fc4c6('0x2504')],{'id':Number(_0x567d97[_0x4fc4c6('0xdb2')][_0x4fc4c6('0x7f8')])}));for(let _0x4581c4=0x0;_0x4581c4<_0x567d97['lists'][_0x4fc4c6('0x1f73')];_0x4581c4++){_0x1ae8f8&&_0x567d97[_0x4fc4c6('0x2504')][_0x4581c4]['id']===_0x1ae8f8['id']&&(_0x567d97[_0x4fc4c6('0x2504')][_0x4581c4]['canSelect']=![],_0x72e424[_0x4fc4c6('0x269f')](_0x567d97[_0x4fc4c6('0x2504')][_0x4581c4]));}_0x567d97[_0x4fc4c6('0x2504')]=_0x72e424;}else{if(!_0x1db561[_0x4fc4c6('0x9e3')])return _0x5b6a4c['userProfileResource'][_0x4fc4c6('0x1c53')]({'sectionId':_0x1db561['id']})[_0x4fc4c6('0x1af5')][_0x4fc4c6('0x17e7')](function(_0x1c016){const _0x395b5d=_0x4fc4c6,_0x432cf1=_0x49cbdd()[_0x395b5d('0x787')](_0x1c016[_0x395b5d('0x2319')],function(_0x5e7550){const _0x3e9086=_0x395b5d;return _0x49cbdd()[_0x3e9086('0xe8e')](_0x567d97[_0x3e9086('0x2504')],{'id':_0x5e7550['resourceId']});});let _0x476cec=null;_0x567d97['chatWebsite']&&(_0x476cec=_0x49cbdd()['find'](_0x567d97['lists'],{'id':Number(_0x567d97[_0x395b5d('0xdb2')][_0x395b5d('0x7f8')])}));if(_0x476cec&&!_0x49cbdd()[_0x395b5d('0x26f8')](_0x432cf1,['id',_0x476cec['id']])){const _0x24cb48=_0x49cbdd()[_0x395b5d('0xe8e')](_0x567d97[_0x395b5d('0x2504')],{'id':_0x476cec['id']});_0x24cb48[_0x395b5d('0xe5c')]=![],_0x432cf1[_0x395b5d('0x269f')](_0x24cb48);}_0x567d97[_0x395b5d('0x2504')]=_0x432cf1;});}})['catch'](function(_0x288755){const _0x1c39af=_0xf921c9;_0x301c33[_0x1c39af('0x1db9')]({'title':_0x288755[_0x1c39af('0x11c5')]?'API:'+_0x288755[_0x1c39af('0x11c5')]+_0x1c39af('0x16e4')+_0x288755['statusText']:_0x1c39af('0x1630'),'msg':_0x288755[_0x1c39af('0x1457')]?JSON['stringify'](_0x288755[_0x1c39af('0x1457')]):_0x288755['toString']()});}),_0x41635a[_0xf921c9('0x1ba2')](_0xf921c9('0x20bf'))?_0x5b6a4c[_0xf921c9('0x231f')][_0xf921c9('0x1c53')]({'fields':_0xf921c9('0x12d2'),'sort':_0xf921c9('0x2aa'),'IntervalId':_0xf921c9('0x9bb')})[_0xf921c9('0x1af5')][_0xf921c9('0x17e7')](function(_0xda7087){const _0x2c77fd=_0xf921c9;_0x567d97['interval']=_0xda7087[_0x2c77fd('0x2319')]||[];})[_0xf921c9('0x16df')](function(_0x162465){const _0xb4b1ee=_0xf921c9;_0x301c33[_0xb4b1ee('0x1db9')]({'title':_0x162465['status']?_0xb4b1ee('0x14f7')+_0x162465[_0xb4b1ee('0x11c5')]+_0xb4b1ee('0x16e4')+_0x162465['statusText']:'SYSTEM:GET_INTERVAL','msg':_0x162465[_0xb4b1ee('0x1457')]?JSON[_0xb4b1ee('0x678')](_0x162465['data']):_0x162465[_0xb4b1ee('0x9b6')]()});}):_0x5b6a4c[_0xf921c9('0x231f')][_0xf921c9('0x1c53')]({'fields':_0xf921c9('0x12d2'),'sort':'name','IntervalId':_0xf921c9('0x9bb')})[_0xf921c9('0x1af5')][_0xf921c9('0x17e7')](function(_0x357d25){const _0x36336d=_0xf921c9;_0x567d97[_0x36336d('0x231f')]=_0x357d25['rows']||[];})[_0xf921c9('0x17e7')](function(){const _0x3562f9=_0xf921c9;return _0x5b6a4c[_0x3562f9('0x383')][_0x3562f9('0x1c53')]({'userProfileId':_0x567d97[_0x3562f9('0x197c')][_0x3562f9('0x1e76')],'sectionId':0x3ec})['$promise'];})[_0xf921c9('0x17e7')](function(_0x20e6d9){const _0x359f12=_0xf921c9,_0x4ae0bd=_0x20e6d9&&_0x20e6d9[_0x359f12('0x2319')]?_0x20e6d9['rows'][0x0]:null;if(!_0x4ae0bd){const _0x322760=[];let _0x4c08c4=null;_0x567d97[_0x359f12('0xdb2')]&&(_0x4c08c4=_0x49cbdd()[_0x359f12('0xe8e')](_0x567d97[_0x359f12('0x231f')],{'id':Number(_0x567d97['chatWebsite']['IntervalId'])}));for(let _0x5ad8ff=0x0;_0x5ad8ff<_0x567d97[_0x359f12('0x231f')][_0x359f12('0x1f73')];_0x5ad8ff++){_0x4c08c4&&_0x567d97[_0x359f12('0x231f')][_0x5ad8ff]['id']===_0x4c08c4['id']&&(_0x567d97[_0x359f12('0x231f')][_0x5ad8ff][_0x359f12('0xe5c')]=![],_0x322760['push'](_0x567d97[_0x359f12('0x231f')][_0x5ad8ff]));}_0x567d97[_0x359f12('0x231f')]=_0x322760;}else{if(!_0x4ae0bd[_0x359f12('0x9e3')])return _0x5b6a4c[_0x359f12('0x78d')][_0x359f12('0x1c53')]({'sectionId':_0x4ae0bd['id']})[_0x359f12('0x1af5')][_0x359f12('0x17e7')](function(_0x2ea9c4){const _0x293b0d=_0x359f12,_0x51332d=_0x49cbdd()[_0x293b0d('0x787')](_0x2ea9c4[_0x293b0d('0x2319')],function(_0xf848a4){const _0x260789=_0x293b0d;return _0x49cbdd()[_0x260789('0xe8e')](_0x567d97['interval'],{'id':_0xf848a4[_0x260789('0x5db')]});});let _0x57e40a=null;_0x567d97['chatWebsite']&&(_0x57e40a=_0x49cbdd()[_0x293b0d('0xe8e')](_0x567d97[_0x293b0d('0x231f')],{'id':Number(_0x567d97[_0x293b0d('0xdb2')][_0x293b0d('0x24a9')])}));if(_0x57e40a&&!_0x49cbdd()[_0x293b0d('0x26f8')](_0x51332d,['id',_0x57e40a['id']])){const _0x5a6409=_0x49cbdd()['find'](_0x567d97['interval'],{'id':_0x57e40a['id']});_0x5a6409['canSelect']=![],_0x51332d[_0x293b0d('0x269f')](_0x5a6409);}_0x567d97['interval']=_0x51332d;});}})[_0xf921c9('0x16df')](function(_0x384604){const _0x266340=_0xf921c9;_0x301c33[_0x266340('0x1db9')]({'title':_0x384604[_0x266340('0x11c5')]?_0x266340('0x14f7')+_0x384604[_0x266340('0x11c5')]+'\x20-\x20'+_0x384604[_0x266340('0x1833')]:_0x266340('0x1f79'),'msg':_0x384604[_0x266340('0x1457')]?JSON[_0x266340('0x678')](_0x384604[_0x266340('0x1457')]):_0x384604['toString']()});}),_0x41635a[_0xf921c9('0x1ba2')]('admin')?_0x5b6a4c[_0xf921c9('0x267a')][_0xf921c9('0x1c53')]({'fields':_0xf921c9('0x90c'),'sort':_0xf921c9('0x2aa'),'nolimit':_0xf921c9('0xe34')})[_0xf921c9('0x1af5')][_0xf921c9('0x17e7')](function(_0x1f8a57){const _0x39d375=_0xf921c9;_0x567d97[_0x39d375('0x1492')]=_0x1f8a57[_0x39d375('0x2319')]||[];})[_0xf921c9('0x16df')](function(_0x1fef25){const _0x488089=_0xf921c9;_0x301c33[_0x488089('0x1db9')]({'title':_0x1fef25[_0x488089('0x11c5')]?_0x488089('0x14f7')+_0x1fef25['status']+_0x488089('0x16e4')+_0x1fef25[_0x488089('0x1833')]:'SYSTEM:GET_PAUSES','msg':_0x1fef25[_0x488089('0x1457')]?JSON[_0x488089('0x678')](_0x1fef25['data']):_0x1fef25['toString']()});}):_0x5b6a4c[_0xf921c9('0x267a')][_0xf921c9('0x1c53')]({'fields':_0xf921c9('0x90c'),'sort':_0xf921c9('0x2aa'),'nolimit':_0xf921c9('0xe34')})[_0xf921c9('0x1af5')]['then'](function(_0x163598){const _0x2f33c6=_0xf921c9;_0x567d97[_0x2f33c6('0x1492')]=_0x163598[_0x2f33c6('0x2319')]||[];})['then'](function(){const _0x1d30f7=_0xf921c9;return _0x5b6a4c['userProfileSection'][_0x1d30f7('0x1c53')]({'userProfileId':_0x567d97[_0x1d30f7('0x197c')][_0x1d30f7('0x1e76')],'sectionId':0x3ed})[_0x1d30f7('0x1af5')];})[_0xf921c9('0x17e7')](function(_0xaac4c1){const _0x1cb557=_0xf921c9,_0x544383=_0xaac4c1&&_0xaac4c1[_0x1cb557('0x2319')]?_0xaac4c1[_0x1cb557('0x2319')][0x0]:null;if(!_0x544383)_0x567d97[_0x1cb557('0x1492')]=[];else{if(!_0x544383[_0x1cb557('0x9e3')])return _0x5b6a4c[_0x1cb557('0x78d')]['get']({'sectionId':_0x544383['id']})[_0x1cb557('0x1af5')][_0x1cb557('0x17e7')](function(_0xa71bf){const _0x112a92=_0x1cb557,_0x481073=_0x49cbdd()['map'](_0xa71bf['rows'],function(_0x51abd2){const _0x13781b=a0_0xd29e;return _0x49cbdd()['find'](_0x567d97[_0x13781b('0x1492')],{'id':_0x51abd2[_0x13781b('0x5db')]});});_0x567d97[_0x112a92('0x1492')][_0x112a92('0xccd')](function(_0x41b5af){const _0x364c99=_0x112a92;!_0x49cbdd()[_0x364c99('0x26f8')](_0x481073,['id',_0x41b5af['id']])&&(_0x41b5af[_0x364c99('0xe5c')]=![]),_0x481073[_0x364c99('0x269f')](_0x41b5af);}),_0x567d97[_0x112a92('0x1492')]=_0x481073;});}})[_0xf921c9('0x16df')](function(_0x592765){const _0x2ae0b7=_0xf921c9;_0x301c33['error']({'title':_0x592765[_0x2ae0b7('0x11c5')]?_0x2ae0b7('0x14f7')+_0x592765[_0x2ae0b7('0x11c5')]+_0x2ae0b7('0x16e4')+_0x592765[_0x2ae0b7('0x1833')]:_0x2ae0b7('0x1fae'),'msg':_0x592765[_0x2ae0b7('0x1457')]?JSON[_0x2ae0b7('0x678')](_0x592765[_0x2ae0b7('0x1457')]):_0x592765[_0x2ae0b7('0x9b6')]()});});function _0x10e2f7(_0x41823e,_0x213e21){const _0x4e4c50=_0xf921c9;_0x406f92['show']({'controller':_0x4e4c50('0x1412'),'controllerAs':'vm','templateUrl':_0x10efd4,'parent':angular['element'](_0x3accdb['body']),'targetEvent':_0x213e21,'clickOutsideToClose':!![],'locals':{'chatWebsite':_0x41823e,'chatWebsites':_0x567d97['chatWebsites']?_0x567d97[_0x4e4c50('0x146c')][_0x4e4c50('0x2319')]:[],'crudPermissions':_0x567d97[_0x4e4c50('0x103e')],'realtime':![]}});}function _0x56702c(){const _0x1a03e3=_0xf921c9;_0x5e4bd6['go'](_0x1a03e3('0x197a'),{},{'reload':_0x1a03e3('0x197a')});}function _0x5e6cb4(){const _0x18f4e2=_0xf921c9;_0x5b6a4c['chatWebsite']['update']({'id':_0x567d97[_0x18f4e2('0xdb2')]['id']},_0x567d97[_0x18f4e2('0xdb2')])[_0x18f4e2('0x1af5')][_0x18f4e2('0x17e7')](function(){const _0x40d03d=_0x18f4e2;_0x301c33[_0x40d03d('0x130d')]({'title':_0x40d03d('0x435'),'msg':_0x567d97[_0x40d03d('0xdb2')][_0x40d03d('0x2aa')]?_0x567d97[_0x40d03d('0xdb2')]['name']+_0x40d03d('0x12b0'):''});})[_0x18f4e2('0x16df')](function(_0x4d66f4){const _0x2f8ea5=_0x18f4e2;_0x301c33[_0x2f8ea5('0x1db9')]({'title':_0x4d66f4[_0x2f8ea5('0x11c5')]?'API:'+_0x4d66f4['status']+_0x2f8ea5('0x16e4')+_0x4d66f4['statusText']:_0x2f8ea5('0xa98'),'msg':_0x4d66f4[_0x2f8ea5('0x1457')]?JSON[_0x2f8ea5('0x678')](_0x4d66f4[_0x2f8ea5('0x1457')]):_0x4d66f4[_0x2f8ea5('0x9b6')]()});});}}const _0x944d64=_0x548b52;_0x167837[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),'$translatePartialLoaderProvider'];function _0x167837(_0x4a725c,_0x3b0fa4){const _0x1b2be6=_0x4376d8;_0x4a725c[_0x1b2be6('0x1b9a')](_0x1b2be6('0x2070'),{'abstract':!![],'url':_0x1b2be6('0x306')})[_0x1b2be6('0x1b9a')]('app.chat.chatQueues',{'url':_0x1b2be6('0x16cc'),'views':{'content@app':{'templateUrl':_0x169715,'controller':_0x1b2be6('0x1bfc')}},'resolve':{'chatQueues':[_0x1b2be6('0x177'),_0x1b2be6('0x1885'),function(_0xcda4f9,_0x5a985){const _0x6cffb8=_0x1b2be6;return _0x5a985['hasRole']('admin')?_0xcda4f9[_0x6cffb8('0x898')](_0x6cffb8('0x1a07'),{'fields':_0x6cffb8('0x1029'),'sort':_0x6cffb8('0x1ac6'),'channel':_0x6cffb8('0x2219'),'limit':0xa,'offset':0x0}):_0xcda4f9[_0x6cffb8('0x898')]('userProfile@getResources',{'id':_0x5a985[_0x6cffb8('0x2831')]()[_0x6cffb8('0x1e76')],'section':_0x6cffb8('0x272'),'fields':_0x6cffb8('0x1029'),'sort':_0x6cffb8('0x1ac6'),'channel':_0x6cffb8('0x2219'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x1b2be6('0x1885'),function(_0x5469f1,_0x483977){const _0x453c92=_0x1b2be6;return _0x483977['hasRole'](_0x453c92('0x20bf'))?null:_0x5469f1[_0x453c92('0x898')](_0x453c92('0x235d'),{'fields':_0x453c92('0x8d3'),'id':_0x483977[_0x453c92('0x2831')]()[_0x453c92('0x1e76')]});}],'userProfileSection':[_0x1b2be6('0x177'),_0x1b2be6('0x1885'),function(_0xc0cf87,_0x4b1fbf){const _0xdecc2b=_0x1b2be6;return _0x4b1fbf[_0xdecc2b('0x1ba2')]('admin')?null:_0xc0cf87[_0xdecc2b('0x898')](_0xdecc2b('0x23e7'),{'fields':_0xdecc2b('0x1134'),'userProfileId':_0x4b1fbf['getCurrentUser']()[_0xdecc2b('0x1e76')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x1b2be6('0x2219')})[_0x1b2be6('0x1b9a')](_0x1b2be6('0x885'),{'url':_0x1b2be6('0x2370'),'params':{'chatQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x38ee0e,'controller':'ChatQueueController\x20as\x20vm'}},'resolve':{'chatQueue':[_0x1b2be6('0x177'),_0x1b2be6('0x118b'),function(_0x48de40,_0x11b79f){const _0x3ebfd8=_0x1b2be6;return _0x48de40[_0x3ebfd8('0x898')](_0x3ebfd8('0x1a07'),{'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','id':_0x11b79f['id']});}],'userProfileSection':[_0x1b2be6('0x177'),_0x1b2be6('0x1885'),function(_0x31792a,_0x29aea0){const _0x1db43e=_0x1b2be6;return _0x31792a[_0x1db43e('0x898')](_0x1db43e('0x23e7'),{'fields':_0x1db43e('0x1134'),'userProfileId':_0x29aea0['getCurrentUser']()[_0x1db43e('0x1e76')],'sectionId':0x1f5});}]},'authenticate':!![],'permissionId':0x1f5,'bodyClass':_0x1b2be6('0x2219')})['state'](_0x1b2be6('0x197a'),{'url':_0x1b2be6('0xed6'),'views':{'content@app':{'templateUrl':_0x46767a,'controller':_0x1b2be6('0x6d8')}},'resolve':{'chatWebsites':[_0x1b2be6('0x177'),_0x1b2be6('0x1885'),function(_0x4dc2b9,_0x344a25){const _0x3b4a82=_0x1b2be6;return _0x344a25[_0x3b4a82('0x1ba2')](_0x3b4a82('0x20bf'))?_0x4dc2b9[_0x3b4a82('0x898')](_0x3b4a82('0xfa2'),{'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':_0x3b4a82('0x1ac6'),'limit':0xa,'offset':0x0}):_0x4dc2b9[_0x3b4a82('0x898')]('userProfile@getResources',{'id':_0x344a25[_0x3b4a82('0x2831')]()['userProfileId'],'section':_0x3b4a82('0x14de'),'fields':_0x3b4a82('0x93e'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x1b2be6('0x177'),_0x1b2be6('0x1885'),function(_0x35b12b,_0x5d22a8){const _0x29ec89=_0x1b2be6;return _0x5d22a8[_0x29ec89('0x1ba2')]('admin')?null:_0x35b12b[_0x29ec89('0x898')]('userProfile@get',{'fields':_0x29ec89('0x8d3'),'id':_0x5d22a8[_0x29ec89('0x2831')]()[_0x29ec89('0x1e76')]});}],'userProfileSection':[_0x1b2be6('0x177'),'Auth',function(_0x243a19,_0x1a7618){const _0x41f9d1=_0x1b2be6;return _0x1a7618[_0x41f9d1('0x1ba2')](_0x41f9d1('0x20bf'))?null:_0x243a19['resolve'](_0x41f9d1('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1a7618[_0x41f9d1('0x2831')]()[_0x41f9d1('0x1e76')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x1b2be6('0x2219')})['state'](_0x1b2be6('0x246a'),{'url':_0x1b2be6('0x2370'),'params':{'chatWebsite':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x130a34,'controller':_0x1b2be6('0x12c1')}},'resolve':{'chatWebsite':[_0x1b2be6('0x177'),_0x1b2be6('0x118b'),function(_0x462950,_0x495ee2){const _0x5c0183=_0x1b2be6;return _0x462950[_0x5c0183('0x898')]('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','id':_0x495ee2['id']});}],'userProfileSection':[_0x1b2be6('0x177'),'Auth',function(_0x2eb79a,_0x28bb2a){const _0x460ebd=_0x1b2be6;return _0x2eb79a[_0x460ebd('0x898')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x28bb2a[_0x460ebd('0x2831')]()[_0x460ebd('0x1e76')],'sectionId':0x1f6});}]},'authenticate':!![],'permissionId':0x1f6,'bodyClass':_0x1b2be6('0x2219')}),_0x3b0fa4[_0x1b2be6('0x10b3')](_0x1b2be6('0x16e'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x2070'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),'md.data.table',_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),'angular-cron-jobs','ngEmbed','angularMaterialFormBuilder','material.components.expansionPanels',_0x4376d8('0x4c8'),_0x4376d8('0x178b'),_0x4376d8('0x16c4')])['config'](_0x167837)[_0x4376d8('0x5ce')]('ChatQueuesController',_0x189dfe)[_0x4376d8('0x5ce')](_0x4376d8('0x2384'),_0x1fb7ad)['controller'](_0x4376d8('0x9c3'),_0x1303f4)[_0x4376d8('0x5ce')]('ChatQueueteamaddController',_0x5cc865)[_0x4376d8('0x5ce')](_0x4376d8('0x28c'),_0xc83154)[_0x4376d8('0x5ce')](_0x4376d8('0x16ae'),_0x403446)['controller']('CreateOrEditChatWebsiteDialogController',_0x47bb26)[_0x4376d8('0x5ce')]('ChatWebsiteActionsController',_0x3c006c)[_0x4376d8('0x5ce')](_0x4376d8('0x1412'),_0x347531)[_0x4376d8('0x5ce')](_0x4376d8('0x1380'),_0x4c8fd8)['controller'](_0x4376d8('0x19cc'),_0x52b6ea)[_0x4376d8('0x5ce')](_0x4376d8('0x191e'),_0x415a48)['controller'](_0x4376d8('0x191e'),_0x415a48)[_0x4376d8('0x5ce')](_0x4376d8('0xd7f'),_0x272e45)[_0x4376d8('0x5ce')](_0x4376d8('0x1541'),_0x47ac44)[_0x4376d8('0x5ce')](_0x4376d8('0x5ac'),_0x61dc36)[_0x4376d8('0x5ce')](_0x4376d8('0x1bf0'),_0x55d558)[_0x4376d8('0x5ce')]('EditChatWebsiteAppgotopDialogController',_0x2f29ba)[_0x4376d8('0x5ce')](_0x4376d8('0x2263'),_0x248f91)[_0x4376d8('0x5ce')](_0x4376d8('0x66a'),_0x36b710)[_0x4376d8('0x5ce')](_0x4376d8('0x179d'),_0x1252a9)[_0x4376d8('0x5ce')](_0x4376d8('0x2204'),_0x326476)[_0x4376d8('0x5ce')](_0x4376d8('0x653'),_0x44955f)[_0x4376d8('0x5ce')]('ChatWebsiteChatCannedAnswersController',_0x4fc0dc)[_0x4376d8('0x5ce')](_0x4376d8('0xa40'),_0x5a572b)[_0x4376d8('0x5ce')](_0x4376d8('0x846'),_0x29c8dc)[_0x4376d8('0x5ce')](_0x4376d8('0xd99'),_0x14891f)[_0x4376d8('0x5ce')](_0x4376d8('0xc9b'),_0x14e551)['controller'](_0x4376d8('0x1d6a'),_0x39fc76)[_0x4376d8('0x5ce')](_0x4376d8('0x697'),_0x1f2805)[_0x4376d8('0x5ce')]('ChatWebsitelogoController',_0x235b3c)[_0x4376d8('0x5ce')](_0x4376d8('0x21a8'),_0x5b6d05)[_0x4376d8('0x5ce')](_0x4376d8('0xc10'),_0x1eedf6)[_0x4376d8('0x5ce')](_0x4376d8('0x1a38'),_0x2cf196)[_0x4376d8('0x5ce')](_0x4376d8('0x198e'),_0x55a74b)[_0x4376d8('0x5ce')](_0x4376d8('0x1bdb'),_0xea6d70)[_0x4376d8('0x5ce')](_0x4376d8('0x13f2'),_0x347ca1)['controller'](_0x4376d8('0x153b'),_0x944d64);const _0x47bf59=_0x4cf2bc['p']+_0x4376d8('0x472'),_0x51992f=_0x4cf2bc['p']+_0x4376d8('0x1730'),_0x562cb8=_0x4cf2bc['p']+_0x4376d8('0x675'),_0xbac07e=_0x4cf2bc['p']+_0x4376d8('0x22a0');_0x4efe63[_0x4376d8('0x1b9c')]=['$scope','$q',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x54a'),_0x4376d8('0x1492'),_0x4376d8('0x25ea'),_0x4376d8('0x1593'),_0x4376d8('0x212e'),'socket',_0x4376d8('0x108a'),_0x4376d8('0x628'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x33a')];function _0x4efe63(_0x2b8abb,_0x3216e9,_0x11b4a1,_0x55a25d,_0xa52517,_0xd015a8,_0x43f3c9,_0x794cb9,_0x5e3fdb,_0x27cc69,_0x1f64f6,_0x5b1d37,_0x142614,_0x46b34e,_0x2fe1d9,_0x5d1806,_0x9e3c1,_0x3f7fcb){const _0x4b0cdf=_0x4376d8,_0x3fa69d=this,_0x1b4ed0=[_0x4b0cdf('0x25b1'),_0x4b0cdf('0x1872'),_0x4b0cdf('0x341'),_0x4b0cdf('0x110a'),'pauseType',_0x4b0cdf('0x110a'),_0x4b0cdf('0xe3e'),'address',_0x4b0cdf('0x2764'),_0x4b0cdf('0x105e'),_0x4b0cdf('0x1467'),_0x4b0cdf('0x483'),_0x4b0cdf('0x185b'),_0x4b0cdf('0x1d98'),_0x4b0cdf('0x118a'),'chatCapacity',_0x4b0cdf('0xe99'),_0x4b0cdf('0xe'),_0x4b0cdf('0x16f4'),_0x4b0cdf('0x1676'),_0x4b0cdf('0x3f4'),_0x4b0cdf('0x139'),'openchannelCurrentCapacity',_0x4b0cdf('0x12e7'),_0x4b0cdf('0x1c68'),_0x4b0cdf('0x1798'),_0x4b0cdf('0x154f'),'chatStatus',_0x4b0cdf('0x200c'),'mailStatus',_0x4b0cdf('0x30'),'whatsappStatus',_0x4b0cdf('0x14b9'),_0x4b0cdf('0x14a5'),'chatStatusTime','openchannelStatusTime','mailStatusTime',_0x4b0cdf('0x893'),_0x4b0cdf('0x1e2a'),_0x4b0cdf('0xbdb'),'voiceStatusTime',_0x4b0cdf('0x1bd'),_0x4b0cdf('0xce0'),_0x4b0cdf('0xf1a'),_0x4b0cdf('0x1b7d'),_0x4b0cdf('0xa0d')],_0x159a4c=[_0x4b0cdf('0x2764'),_0x4b0cdf('0x105e'),'mailPause',_0x4b0cdf('0x483'),_0x4b0cdf('0x185b'),_0x4b0cdf('0x1d98'),_0x4b0cdf('0x118a'),_0x4b0cdf('0x1872')];_0x3fa69d['currentUser']=_0x5d1806[_0x4b0cdf('0x2831')](),_0x3fa69d[_0x4b0cdf('0x232c')]=['ringing',_0x4b0cdf('0x1166'),_0x4b0cdf('0xe88'),_0x4b0cdf('0xa01'),_0x4b0cdf('0x8d0')],_0x3fa69d[_0x4b0cdf('0x1492')]=_0x43f3c9||{'count':0x0,'rows':[]},_0x3fa69d[_0x4b0cdf('0x1d11')]=_0x9e3c1,_0x3fa69d[_0x4b0cdf('0xdeb')]=_0x46b34e,_0x3fa69d[_0x4b0cdf('0x383')]=_0x2fe1d9&&_0x2fe1d9['count']==0x1?_0x2fe1d9[_0x4b0cdf('0x2319')][0x0]:null,_0x3fa69d[_0x4b0cdf('0x103e')]=_0x5d1806['parseCrudPermissions'](_0x3fa69d['userProfileSection']?_0x3fa69d[_0x4b0cdf('0x383')][_0x4b0cdf('0x103e')]:null),_0x3fa69d[_0x4b0cdf('0x25ea')]=_0x794cb9?_0x49cbdd()[_0x4b0cdf('0x8de')](_0x794cb9['rows']?_0x794cb9['rows']:[],'id'):{},_0x3fa69d[_0x4b0cdf('0x1593')]=_0x5e3fdb?_0x49cbdd()[_0x4b0cdf('0x8de')](_0x5e3fdb[_0x4b0cdf('0x2319')]?_0x5e3fdb[_0x4b0cdf('0x2319')]:[],'id'):{},_0x3fa69d['paginatedAgents']={},_0x3fa69d[_0x4b0cdf('0xae2')]=![],_0x3fa69d[_0x4b0cdf('0x1e36')]=[],_0x3fa69d[_0x4b0cdf('0x20a5')]={};for(const _0x35a8e8 in _0x3fa69d[_0x4b0cdf('0x25ea')]){typeof _0x3fa69d[_0x4b0cdf('0x25ea')][_0x35a8e8]!==_0x4b0cdf('0xfad')&&(_0x3fa69d[_0x4b0cdf('0x25ea')][_0x35a8e8][_0x4b0cdf('0x161d')]=!![]);}_0x3fa69d['query']={'limit':0xa,'page':0x1,'order':'fullname','globalStatusFilter':'','pauseTypeFilter':''},_0x3fa69d[_0x4b0cdf('0xff8')]=_0x2d8282,_0x3fa69d['queueAdd']=_0x56b8f4,_0x3fa69d[_0x4b0cdf('0x267a')]=_0x36b202,_0x3fa69d[_0x4b0cdf('0x2040')]=_0x38c6fd,_0x3fa69d[_0x4b0cdf('0x3eb')]=_0x81050b,_0x3fa69d[_0x4b0cdf('0x7f6')]=_0x46cc63,_0x3fa69d[_0x4b0cdf('0x21a0')]=_0x5c7938,_0x3fa69d[_0x4b0cdf('0x5b9')]=_0x55aa9f,_0x3fa69d[_0x4b0cdf('0x160d')]=_0x3ce0e3,_0x3fa69d['isPartialPause']=_0x1d1c4d,_0x3fa69d[_0x4b0cdf('0xfd5')]=_0xf0acbb,_0x3fa69d[_0x4b0cdf('0x1fc4')]=_0x13b4f3,_0x3fa69d[_0x4b0cdf('0xdf0')]=_0x1e1fe7,_0x3fa69d[_0x4b0cdf('0x410')]=_0x208a1b,_0x3fa69d[_0x4b0cdf('0x1ccb')]=_0x5d004e,_0x3fa69d[_0x4b0cdf('0x1375')]=_0x2c3547,_0x1f64f6['on'](_0x4b0cdf('0x21a2'),_0x3fa69d[_0x4b0cdf('0xfd5')]),_0x1f64f6['on'](_0x4b0cdf('0x284f'),_0x3fa69d[_0x4b0cdf('0x1fc4')]),_0x1f64f6['on'](_0x4b0cdf('0x1a5'),_0x3fa69d['onConnect']),_0x1f64f6['on'](_0x4b0cdf('0x1f1f'),_0x3fa69d[_0x4b0cdf('0x1ccb')]),_0x1e1fe7();let _0x8e883=_0x3f7fcb(function(){const _0x506886=_0x4b0cdf;_0x3fa69d[_0x506886('0xae2')]&&(_0x3fa69d[_0x506886('0xae2')]=![],_0x1e1fe7());},0x3e7);function _0x1e1fe7(){const _0x2e425e=_0x4b0cdf;_0x3fa69d[_0x2e425e('0xae2')]=![];const _0x5d9c55=_0x3216e9[_0x2e425e('0x113c')]();_0x3fa69d[_0x2e425e('0x1691')]=_0x5d9c55[_0x2e425e('0x1691')],_0x3fa69d['filteredAgents']=[],_0x3fa69d[_0x2e425e('0x1e36')]=[],_0x49cbdd()[_0x2e425e('0x1857')](_0x3fa69d['agents'],function(_0x590842,_0x5b0f73){const _0x337068=_0x2e425e;_0x3fa69d['rpcAgents'][_0x5b0f73]&&_0x49cbdd()['merge'](_0x590842,_0x49cbdd()['pick'](_0x49cbdd()['omit'](_0x3fa69d[_0x337068('0x1593')][_0x5b0f73],_0x159a4c),_0x1b4ed0)),_0x5c7938(_0x590842),_0x590842['online']?(_0x3fa69d['filteredAgents']['push'](_0x590842),_0x3fa69d[_0x337068('0x20a5')][_0x590842[_0x337068('0xe3e')]]=_0x5b0f73):_0x590842[_0x337068('0x22cb')]=_0x49cbdd()[_0x337068('0xa33')](_0x107a13()()[_0x337068('0x1c0d')]('x'));});_0x3fa69d[_0x2e425e('0x826')][_0x2e425e('0x14f9')]&&_0x49cbdd()[_0x2e425e('0x5f3')](_0x3fa69d[_0x2e425e('0x1b79')],function(_0x292109){const _0x8c741f=_0x2e425e;return _0x292109['globalStatus']!==_0x3fa69d[_0x8c741f('0x826')][_0x8c741f('0x14f9')];});_0x3fa69d[_0x2e425e('0x826')]['pauseTypeFilter']&&_0x49cbdd()['remove'](_0x3fa69d[_0x2e425e('0x1b79')],function(_0x167386){const _0x5bdf74=_0x2e425e;return _0x167386[_0x5bdf74('0x11ec')]!==_0x3fa69d['query'][_0x5bdf74('0x44f')];});_0x3fa69d[_0x2e425e('0x826')][_0x2e425e('0x2483')]&&_0x49cbdd()[_0x2e425e('0x5f3')](_0x3fa69d['filteredAgents'],function(_0x33e0de){const _0xa3ba93=_0x2e425e;return _0x33e0de['fullname'][_0xa3ba93('0x19b')]()[_0xa3ba93('0x2567')](_0x3fa69d[_0xa3ba93('0x826')]['filter'][_0xa3ba93('0x19b')]())<0x0;});_0x3fa69d[_0x2e425e('0x1b79')]=_0x57e3d8(_0x3fa69d[_0x2e425e('0x1b79')]);const _0x4356d3=(_0x3fa69d['query'][_0x2e425e('0x115a')]-0x1)*_0x3fa69d[_0x2e425e('0x826')][_0x2e425e('0x193b')];_0x3fa69d[_0x2e425e('0x219a')]=_0x49cbdd()[_0x2e425e('0x6c0')](_0x3fa69d[_0x2e425e('0x1b79')],_0x4356d3)['slice'](0x0,_0x3fa69d[_0x2e425e('0x826')][_0x2e425e('0x193b')]);for(let _0x12729e=0x0;_0x12729e<_0x3fa69d[_0x2e425e('0x219a')][_0x2e425e('0x1f73')];_0x12729e+=0x1){_0x3fa69d[_0x2e425e('0x1e36')][_0x2e425e('0x269f')](_0x3fa69d[_0x2e425e('0x219a')][_0x12729e]['id']);}_0x5d9c55['resolve'](),_0x3fa69d[_0x2e425e('0xae2')]=!![];}function _0xf0acbb(_0x12ef24){const _0x2d31a6=_0x4b0cdf;_0x3fa69d[_0x2d31a6('0x25ea')][_0x12ef24['id']]&&(_0x49cbdd()[_0x2d31a6('0x1ced')](_0x3fa69d['agents'][_0x12ef24['id']],_0x49cbdd()[_0x2d31a6('0x230a')](_0x49cbdd()[_0x2d31a6('0x15c3')](_0x12ef24,_0x159a4c),_0x1b4ed0)),_0x49cbdd()[_0x2d31a6('0x1ced')](_0x3fa69d[_0x2d31a6('0x1593')][_0x12ef24['id']],_0x49cbdd()['pick'](_0x49cbdd()[_0x2d31a6('0x15c3')](_0x12ef24,_0x159a4c),_0x1b4ed0)),_0x5c7938(_0x3fa69d[_0x2d31a6('0x25ea')][_0x12ef24['id']]));}function _0x13b4f3(_0x30488c){const _0x255e5c=_0x4b0cdf;_0x3fa69d[_0x255e5c('0x25ea')][_0x30488c['id']]&&(_0x49cbdd()[_0x255e5c('0x1ced')](_0x3fa69d[_0x255e5c('0x25ea')][_0x30488c['id']],_0x49cbdd()[_0x255e5c('0x230a')](_0x30488c,_0x1b4ed0)),_0x49cbdd()[_0x255e5c('0x1ced')](_0x3fa69d[_0x255e5c('0x1593')][_0x30488c['id']],_0x49cbdd()[_0x255e5c('0x230a')](_0x30488c,_0x1b4ed0)),_0x30488c[_0x255e5c('0x110a')]&&(_0x3fa69d['agents'][_0x30488c['id']][_0x255e5c('0x22cb')]=_0x30488c[_0x255e5c('0x110a')],_0x3fa69d[_0x255e5c('0x1593')][_0x30488c['id']][_0x255e5c('0x22cb')]=_0x30488c[_0x255e5c('0x110a')]),_0x5c7938(_0x3fa69d['agents'][_0x30488c['id']]));}function _0x208a1b(_0x8d6c04){const _0x1e5d53=_0x4b0cdf;_0x3fa69d[_0x1e5d53('0x25ea')][_0x3fa69d[_0x1e5d53('0x20a5')][_0x8d6c04['destaccountcode']]]&&(_0x49cbdd()[_0x1e5d53('0x1ced')](_0x3fa69d[_0x1e5d53('0x25ea')][_0x3fa69d[_0x1e5d53('0x20a5')][_0x8d6c04[_0x1e5d53('0x1177')]]],_0x49cbdd()['pick'](_0x8d6c04,['queue',_0x1e5d53('0xce0')])),_0x49cbdd()[_0x1e5d53('0x1ced')](_0x3fa69d[_0x1e5d53('0x1593')][_0x3fa69d[_0x1e5d53('0x20a5')][_0x8d6c04[_0x1e5d53('0x1177')]]],_0x49cbdd()[_0x1e5d53('0x230a')](_0x8d6c04,[_0x1e5d53('0x1bd'),'destconnectedlinenum'])));}function _0x5d004e(_0x5cab04){const _0x31f339=_0x4b0cdf;_0x3fa69d[_0x31f339('0x25ea')][_0x3fa69d['agentInternal'][_0x5cab04[_0x31f339('0x1177')]]]&&(_0x3fa69d[_0x31f339('0x25ea')][_0x3fa69d[_0x31f339('0x20a5')][_0x5cab04['destaccountcode']]]=_0x49cbdd()[_0x31f339('0x15c3')](_0x3fa69d['agents'][_0x3fa69d[_0x31f339('0x20a5')][_0x5cab04[_0x31f339('0x1177')]]],['queue',_0x31f339('0xce0')]),_0x3fa69d[_0x31f339('0x1593')][_0x3fa69d[_0x31f339('0x20a5')][_0x5cab04[_0x31f339('0x1177')]]]=_0x49cbdd()[_0x31f339('0x15c3')](_0x3fa69d[_0x31f339('0x1593')][_0x3fa69d['agentInternal'][_0x5cab04[_0x31f339('0x1177')]]],[_0x31f339('0x1bd'),_0x31f339('0xce0')]));}function _0x2d8282(_0x244762){const _0x21cec3=_0x4b0cdf;return _0x27cc69[_0x21cec3('0x221e')][_0x21cec3('0xff8')]({'id':_0x244762['id'],'device':_0x21cec3('0x20c8'),'agent_id':_0x244762['id'],'agent_name':_0x244762[_0x21cec3('0x2aa')]})[_0x21cec3('0x1af5')][_0x21cec3('0x17e7')](function(){const _0x29220f=_0x21cec3;_0x5b1d37[_0x29220f('0x130d')]({'title':_0x29220f('0x686'),'msg':_0x244762[_0x29220f('0xea6')]+_0x29220f('0xe21')}),_0x3fa69d[_0x29220f('0x25ea')][_0x244762['id']]&&(_0x3fa69d[_0x29220f('0x25ea')][_0x244762['id']][_0x29220f('0x1872')]=![]),_0x3fa69d[_0x29220f('0x1593')][_0x244762['id']]&&(_0x3fa69d[_0x29220f('0x1593')][_0x244762['id']]['online']=![]),_0x1e1fe7();})['catch'](function(_0x3af380){const _0x366f07=_0x21cec3;_0x5b1d37[_0x366f07('0x1db9')]({'title':_0x3af380[_0x366f07('0x11c5')]?_0x366f07('0x14f7')+_0x3af380[_0x366f07('0x11c5')]+'\x20-\x20'+_0x3af380['statusText']:_0x366f07('0x18ea'),'msg':_0x3af380[_0x366f07('0x1457')]?JSON[_0x366f07('0x678')](_0x3af380[_0x366f07('0x1457')][_0x366f07('0x1603')]):_0x3af380[_0x366f07('0x9b6')]()});});}function _0x36b202(_0x263fe0,_0x2816b2){const _0x13a862=_0x4b0cdf;return _0x27cc69[_0x13a862('0x221e')][_0x13a862('0x267a')]({'id':_0x263fe0['id'],'type':_0x2816b2})['$promise'][_0x13a862('0x17e7')](function(_0x42daf8){const _0x4d3ff2=_0x13a862;_0x3fa69d[_0x4d3ff2('0x25ea')][_0x263fe0['id']]&&_0x49cbdd()[_0x4d3ff2('0x1ced')](_0x3fa69d[_0x4d3ff2('0x25ea')][_0x263fe0['id']],_0x49cbdd()['pick'](_0x42daf8,_0x1b4ed0)),_0x3fa69d[_0x4d3ff2('0x1593')][_0x263fe0['id']]&&_0x49cbdd()['merge'](_0x3fa69d['rpcAgents'][_0x263fe0['id']],_0x49cbdd()[_0x4d3ff2('0x230a')](_0x42daf8,_0x1b4ed0)),_0x5c7938(_0x3fa69d[_0x4d3ff2('0x25ea')][_0x263fe0['id']]);})[_0x13a862('0x16df')](function(_0x39f426){const _0x4140d6=_0x13a862;_0x5b1d37[_0x4140d6('0x1db9')]({'title':_0x39f426[_0x4140d6('0x11c5')]?_0x4140d6('0x14f7')+_0x39f426[_0x4140d6('0x11c5')]+_0x4140d6('0x16e4')+_0x39f426[_0x4140d6('0x1833')]:_0x4140d6('0x18ea'),'msg':_0x39f426['data']?JSON[_0x4140d6('0x678')](_0x39f426[_0x4140d6('0x1457')][_0x4140d6('0x1603')]):_0x39f426['toString']()});});}function _0x38c6fd(_0x40456f){const _0x38931a=_0x4b0cdf;return _0x27cc69['user'][_0x38931a('0xc57')]({'id':_0x40456f['id']})[_0x38931a('0x1af5')]['then'](function(_0x31b26c){const _0x499749=_0x38931a;_0x3fa69d['agents'][_0x40456f['id']]&&_0x49cbdd()[_0x499749('0x1ced')](_0x3fa69d['agents'][_0x40456f['id']],_0x49cbdd()['pick'](_0x31b26c,_0x1b4ed0)),_0x3fa69d['rpcAgents'][_0x40456f['id']]&&_0x49cbdd()[_0x499749('0x1ced')](_0x3fa69d[_0x499749('0x1593')][_0x40456f['id']],_0x49cbdd()[_0x499749('0x230a')](_0x31b26c,_0x1b4ed0)),_0x5c7938(_0x3fa69d[_0x499749('0x25ea')][_0x40456f['id']]);})[_0x38931a('0x16df')](function(_0x41f937){const _0x2ea1cd=_0x38931a;_0x5b1d37['error']({'title':_0x41f937[_0x2ea1cd('0x11c5')]?_0x2ea1cd('0x14f7')+_0x41f937['status']+_0x2ea1cd('0x16e4')+_0x41f937[_0x2ea1cd('0x1833')]:_0x2ea1cd('0x18ea'),'msg':_0x41f937[_0x2ea1cd('0x1457')]?JSON['stringify'](_0x41f937[_0x2ea1cd('0x1457')]['message']):_0x41f937[_0x2ea1cd('0x9b6')]()});});}function _0x81050b(_0x1753b3){const _0x3142c0=_0x4b0cdf;_0x55a25d['show'](_0x55a25d[_0x3142c0('0x99f')]()[_0x3142c0('0x2f4')](!![])['title'](_0x3142c0('0x5b8'))[_0x3142c0('0x211f')](_0x3142c0('0xf9f'))['ok']('Ok')[_0x3142c0('0x104f')](_0x1753b3));}function _0x56b8f4(_0x3d69fe,_0x303f17){const _0x1b0cb3=_0x4b0cdf;_0x55a25d[_0x1b0cb3('0x28e2')]({'controller':_0x1b0cb3('0x25ed'),'controllerAs':'vm','templateUrl':_0x5e8625,'parent':angular[_0x1b0cb3('0x1ce1')](_0xa52517[_0x1b0cb3('0x13aa')]),'targetEvent':_0x303f17,'clickOutsideToClose':!![],'locals':{'agent':_0x3d69fe,'agents':[],'channel':_0x1b0cb3('0xc2'),'direction':_0x1b0cb3('0x1e77'),'crudPermissions':_0x3fa69d['crudPermissions']}});}function _0x55aa9f(_0x545738){const _0x2ca771=_0x4b0cdf;return _0x545738===_0x2ca771('0x267a')||_0x545738===_0x2ca771('0x1998');}function _0x3ce0e3(_0x5bd87b){const _0x2470b2=_0x4b0cdf;return _0x5bd87b===_0x2470b2('0x267a');}function _0x1d1c4d(_0x4e417e){const _0x3b5cdf=_0x4b0cdf;return _0x4e417e===_0x3b5cdf('0x1998');}function _0x439a5c(_0x464159){const _0x140508=_0x4b0cdf;return _0x464159===_0x140508('0x1ff2')||_0x464159===_0x140508('0xf10')||_0x464159===_0x140508('0x182')||_0x464159===_0x140508('0x1589')||_0x49cbdd()['isNil'](_0x464159);}function _0x46cc63(_0x424cda,_0x232860){const _0x2d30bc=_0x4b0cdf;if(_0x232860===_0x2d30bc('0x1fe1')){if(_0x424cda[_0x232860+_0x2d30bc('0x51c')]!==_0x2d30bc('0x1ff2'))return _0x424cda[_0x232860+_0x2d30bc('0x51c')];if(_0x424cda[_0x232860+_0x2d30bc('0x5d5')])return _0x424cda[_0x232860+_0x2d30bc('0x51c')]=_0x2d30bc('0x267a'),_0x2d30bc('0x267a');return _0x2d30bc('0x1ff2');}else{if(_0x424cda[_0x232860+_0x2d30bc('0x5d5')])return _0x424cda[_0x232860+_0x2d30bc('0x51c')]=_0x2d30bc('0x267a'),_0x2d30bc('0x267a');return _0x424cda[_0x232860+_0x2d30bc('0x51c')];}}function _0x5c7938(_0x520226){const _0x1a9bc7=_0x4b0cdf;let _0x10482e=_0x1a9bc7('0xf10');if(_0x49cbdd()[_0x1a9bc7('0x12df')]([_0x46cc63(_0x520226,_0x1a9bc7('0x1fe1')),_0x46cc63(_0x520226,_0x1a9bc7('0x2219')),_0x46cc63(_0x520226,_0x1a9bc7('0xc2')),_0x46cc63(_0x520226,_0x1a9bc7('0x1508')),_0x46cc63(_0x520226,_0x1a9bc7('0x2cd')),_0x46cc63(_0x520226,_0x1a9bc7('0x1d27')),_0x46cc63(_0x520226,'fax')],_0x55aa9f))_0x10482e=_0x1a9bc7('0x267a');else{if(_0x49cbdd()[_0x1a9bc7('0x26f8')]([_0x46cc63(_0x520226,_0x1a9bc7('0x1fe1')),_0x46cc63(_0x520226,_0x1a9bc7('0x2219')),_0x46cc63(_0x520226,_0x1a9bc7('0xc2')),_0x46cc63(_0x520226,_0x1a9bc7('0x1508')),_0x46cc63(_0x520226,_0x1a9bc7('0x2cd')),_0x46cc63(_0x520226,_0x1a9bc7('0x1d27')),_0x46cc63(_0x520226,'fax')],_0x55aa9f))_0x10482e=_0x1a9bc7('0x1998');else _0x49cbdd()[_0x1a9bc7('0x12df')]([_0x46cc63(_0x520226,'voice'),_0x46cc63(_0x520226,_0x1a9bc7('0x2219')),_0x46cc63(_0x520226,_0x1a9bc7('0xc2')),_0x46cc63(_0x520226,_0x1a9bc7('0x1508')),_0x46cc63(_0x520226,'sms'),_0x46cc63(_0x520226,_0x1a9bc7('0x1d27')),_0x46cc63(_0x520226,_0x1a9bc7('0xc23'))],_0x439a5c)?_0x10482e=_0x1a9bc7('0x1ff2'):_0x10482e=_0x1a9bc7('0xe88');}_0x520226['globalStatus']!==_0x10482e&&(_0x520226[_0x1a9bc7('0xf45')]=_0x10482e,_0x520226[_0x1a9bc7('0x161d')]?(_0x520226[_0x1a9bc7('0x161d')]=![],_0x520226[_0x1a9bc7('0x22cb')]=_0x55aa9f(_0x10482e)?_0x49cbdd()[_0x1a9bc7('0xa33')](_0x107a13()(_0x520226[_0x1a9bc7('0x110a')])['format']('x')):_0x49cbdd()[_0x1a9bc7('0x103b')]([_0x520226['voiceStatusTime'],_0x520226[_0x1a9bc7('0x587')],_0x520226[_0x1a9bc7('0x16a4')],_0x520226[_0x1a9bc7('0x893')],_0x520226[_0x1a9bc7('0x1e2a')],_0x520226[_0x1a9bc7('0x18b1')],_0x520226[_0x1a9bc7('0xbdb')]])):_0x520226[_0x1a9bc7('0x22cb')]=_0x49cbdd()[_0x1a9bc7('0xa33')](_0x107a13()()[_0x1a9bc7('0x1c0d')]('x')));}function _0x57e3d8(_0x444f2a){const _0x715686=_0x4b0cdf,_0x294763=_0x49cbdd()[_0x715686('0x818')](_0x3fa69d[_0x715686('0x826')][_0x715686('0x1e36')],'-')?_0x715686('0x187b'):_0x715686('0x161a');return _0x49cbdd()['orderBy'](_0x444f2a,[_0x3fa69d[_0x715686('0x826')][_0x715686('0x1e36')][_0x715686('0x737')]('-','')],[_0x294763]);}function _0xb532e4(){const _0x2a7156=_0x4b0cdf;_0x8e883&&(_0x3f7fcb[_0x2a7156('0x1d47')](_0x8e883),_0x8e883=null);}function _0x2c3547(_0x3d8505,_0x50e672){const _0x50cc2a=_0x4b0cdf;return _0x27cc69[_0x50cc2a('0x221e')][_0x50cc2a('0x27ba')]({'id':_0x3d8505['id']},{'screenrecording':_0x50e672})[_0x50cc2a('0x1af5')]['catch'](function(_0x23eca9){const _0x50edbc=_0x50cc2a;_0x5b1d37[_0x50edbc('0x1db9')]({'title':_0x23eca9[_0x50edbc('0x11c5')]?_0x50edbc('0x14f7')+_0x23eca9[_0x50edbc('0x11c5')]+_0x50edbc('0x16e4')+_0x23eca9['statusText']:_0x50edbc('0xad3'),'msg':_0x23eca9[_0x50edbc('0x1457')]?JSON[_0x50edbc('0x678')](_0x23eca9[_0x50edbc('0x1457')][_0x50edbc('0x1603')]):_0x23eca9[_0x50edbc('0x9b6')]()});});}_0x2b8abb[_0x4b0cdf('0x207c')](_0x4b0cdf('0x2b4'),function(){const _0x45d579=_0x4b0cdf;_0x1f64f6[_0x45d579('0x1c65')](_0x45d579('0x21a2')),_0x1f64f6[_0x45d579('0x1c65')]('user:update'),_0x1f64f6[_0x45d579('0x1c65')](_0x45d579('0x1a5')),_0x1f64f6[_0x45d579('0x1c65')](_0x45d579('0x1f1f')),_0xb532e4();});}const _0x144699=_0x4efe63,_0x29824e=_0x4cf2bc['p']+_0x4376d8('0x2513'),_0xda1718=_0x4cf2bc['p']+_0x4376d8('0x1526');_0x1676db[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$q','$document',_0x4376d8('0x33a'),'queues',_0x4376d8('0x1d90'),_0x4376d8('0x212e'),'socket',_0x4376d8('0x108a'),'userProfile','userProfileSection','Auth'];function _0x1676db(_0x186572,_0x471859,_0x40c678,_0x28675a,_0x23871c,_0x47f4ca,_0x4abdde,_0x349500,_0x2d9058,_0x1f7423,_0x23602f,_0x345b73,_0x270877,_0x30b79d){const _0x4d6a3d=_0x4376d8,_0x214198=this,_0x2c50a5=[_0x4d6a3d('0x1458'),_0x4d6a3d('0x249c'),'waiting','talking','pTalking',_0x4d6a3d('0x829'),_0x4d6a3d('0x1603'),'dialActive',_0x4d6a3d('0xa39'),_0x4d6a3d('0x1bc6'),_0x4d6a3d('0x1bb8')];_0x214198[_0x4d6a3d('0x197c')]=_0x30b79d[_0x4d6a3d('0x2831')](),_0x214198[_0x4d6a3d('0x335')]=_0x4abdde[_0x4d6a3d('0x335')]?_0x4abdde[_0x4d6a3d('0x335')]:0x0,_0x214198['queues']=_0x4abdde?_0x49cbdd()[_0x4d6a3d('0x8de')](_0x4abdde[_0x4d6a3d('0x2319')]?_0x4abdde[_0x4d6a3d('0x2319')]:[],'id'):{},_0x214198[_0x4d6a3d('0x1d90')]=_0x349500?_0x49cbdd()[_0x4d6a3d('0x8de')](_0x349500[_0x4d6a3d('0x2319')]?_0x349500['rows']:[],'id'):{},_0x214198[_0x4d6a3d('0xdeb')]=_0x345b73,_0x214198[_0x4d6a3d('0x383')]=_0x270877&&_0x270877['count']==0x1?_0x270877[_0x4d6a3d('0x2319')][0x0]:null,_0x214198[_0x4d6a3d('0x103e')]=_0x30b79d[_0x4d6a3d('0x17a9')](_0x214198[_0x4d6a3d('0x383')]?_0x214198[_0x4d6a3d('0x383')][_0x4d6a3d('0x103e')]:null);_0x30b79d[_0x4d6a3d('0x1ba2')](_0x4d6a3d('0x20bf'))?_0x214198[_0x4d6a3d('0x826')]={'type':_0x4d6a3d('0x1e77'),'sort':_0x4d6a3d('0x1ac6'),'limit':0xa,'page':0x1}:_0x214198[_0x4d6a3d('0x826')]={'id':_0x214198[_0x4d6a3d('0x197c')]['id'],'channel':'mail','type':'inbound','sort':_0x4d6a3d('0x1ac6'),'limit':0xa,'page':0x1};_0x214198[_0x4d6a3d('0x130d')]=_0x41843d,_0x214198['getQueues']=_0x4f4f06,_0x214198[_0x4d6a3d('0x17a2')]=_0x50b1fb,_0x214198[_0x4d6a3d('0x1a78')]=_0x25bd1f,_0x214198[_0x4d6a3d('0x139c')]=_0x53244c,_0x214198[_0x4d6a3d('0xfd5')]=_0x1ee017,_0x214198[_0x4d6a3d('0x1899')]=_0x2b03f6,_0x214198[_0x4d6a3d('0x110')]=_0x4c317a,_0x214198[_0x4d6a3d('0x14ed')]=_0x5c1dfc,_0x214198[_0x4d6a3d('0x1781')]=_0x37bf4c,_0x214198['onLogout']=_0x492ab2,_0x214198[_0x4d6a3d('0x11e8')]=_0x392c68,_0x214198[_0x4d6a3d('0x1e36')]=[],_0x49cbdd()[_0x4d6a3d('0x1857')](_0x214198[_0x4d6a3d('0x14c4')],function(_0x32ac98){const _0x5a0075=_0x4d6a3d;_0x214198[_0x5a0075('0x1e36')][_0x5a0075('0x269f')](_0x32ac98['id']);}),_0x1f7423['on'](_0x4d6a3d('0x11a0'),_0x214198['onSave']),_0x1f7423['on'](_0x4d6a3d('0x1992'),_0x214198[_0x4d6a3d('0x1899')]),_0x1f7423['on']('userMailQueue:remove',_0x214198[_0x4d6a3d('0x110')]),_0x1f7423['on'](_0x4d6a3d('0x284f'),_0x214198[_0x4d6a3d('0x14ed')]),_0x1f7423['on']('userVoiceQueue:remove',_0x214198[_0x4d6a3d('0x1532')]),_0x1f7423['on'](_0x4d6a3d('0x1cfb'),_0x214198[_0x4d6a3d('0x1781')]);function _0x392c68(){const _0xb32513=_0x4d6a3d,_0x41eb46=[];return _0x49cbdd()[_0xb32513('0x1857')](_0x214198[_0xb32513('0x14c4')],function(_0x428674,_0x3326ac){const _0x2b0317=_0xb32513;_0x428674[_0x2b0317('0x1bb8')]=0x0,_0x428674[_0x2b0317('0x6c2')]=0x0,_0x214198[_0x2b0317('0x14c4')][_0x3326ac][_0x2b0317('0x25ea')]={},_0x41eb46['push'](_0x2d9058['mailQueue']['getMembers']({'id':_0x3326ac})[_0x2b0317('0x1af5')]),_0x214198['rpcQueues'][_0x3326ac]&&_0x49cbdd()['merge'](_0x428674,_0x49cbdd()[_0x2b0317('0x230a')](_0x214198[_0x2b0317('0x1d90')][_0x3326ac],_0x2c50a5));}),_0x28675a['all'](_0x41eb46)[_0xb32513('0x17e7')](function(_0x2d7ffb){const _0x177991=_0xb32513;for(let _0x2fb120=0x0;_0x2fb120<_0x2d7ffb['length'];_0x2fb120+=0x1){for(let _0x76f04d=0x0;_0x76f04d<_0x2d7ffb[_0x2fb120][_0x177991('0x2319')][_0x177991('0x1f73')];_0x76f04d++){_0x2d7ffb[_0x2fb120][_0x177991('0x2319')][_0x76f04d][_0x177991('0x1bb8')]&&_0x214198[_0x177991('0x14c4')][_0x2d7ffb[_0x2fb120][_0x177991('0x2319')][_0x76f04d]['MailQueueId']]['paused']++,_0x214198[_0x177991('0x14c4')][_0x2d7ffb[_0x2fb120][_0x177991('0x2319')][_0x76f04d][_0x177991('0x16b7')]][_0x177991('0x6c2')]++,_0x214198[_0x177991('0x14c4')][_0x2d7ffb[_0x2fb120][_0x177991('0x2319')][_0x76f04d]['MailQueueId']][_0x177991('0x25ea')][_0x2d7ffb[_0x2fb120][_0x177991('0x2319')][_0x76f04d]['UserId']]=_0x2d7ffb[_0x2fb120][_0x177991('0x2319')][_0x76f04d][_0x177991('0x16b7')];}}})[_0xb32513('0x16df')](function(_0x30268c){console['error'](_0x30268c);});}function _0x1ee017(_0x18b0a0){const _0x3439dc=_0x4d6a3d;_0x214198[_0x3439dc('0x14c4')][_0x18b0a0['id']]&&_0x49cbdd()[_0x3439dc('0x1ced')](_0x214198[_0x3439dc('0x14c4')][_0x18b0a0['id']],_0x49cbdd()[_0x3439dc('0x230a')](_0x18b0a0,_0x2c50a5));}function _0x2b03f6(_0x21d5b1){const _0x26c957=_0x4d6a3d;_0x214198[_0x26c957('0x14c4')][_0x21d5b1[_0x26c957('0x16b7')]]&&_0x214198[_0x26c957('0x14c4')][_0x21d5b1[_0x26c957('0x16b7')]][_0x26c957('0x6c2')]++;}function _0x4c317a(_0x44ab65){const _0x4673bd=_0x4d6a3d;_0x214198[_0x4673bd('0x14c4')][_0x44ab65[_0x4673bd('0x16b7')]]&&_0x214198[_0x4673bd('0x14c4')][_0x44ab65['MailQueueId']][_0x4673bd('0x6c2')]--;}function _0x5c1dfc(_0x3ba943){const _0x4caf03=_0x4d6a3d;console[_0x4caf03('0x1d63')](_0x4caf03('0x14ed'),_0x3ba943);if(_0x3ba943['voicePause'])_0x49cbdd()[_0x4caf03('0x1857')](_0x214198['queues'],function(_0x255f8d){const _0x5c9aae=_0x4caf03;_0x255f8d[_0x5c9aae('0x25ea')][_0x3ba943['id']]&&(_0x255f8d[_0x5c9aae('0x1bb8')]+=0x1,console[_0x5c9aae('0x1d63')](_0x5c9aae('0x267a')));});else!_0x3ba943[_0x4caf03('0x118a')]&&_0x49cbdd()[_0x4caf03('0x1857')](_0x214198[_0x4caf03('0x14c4')],function(_0x55eefa){const _0x385686=_0x4caf03;_0x55eefa[_0x385686('0x25ea')][_0x3ba943['id']]&&(_0x55eefa[_0x385686('0x1bb8')]>0x0&&(_0x55eefa['paused']-=0x1,console[_0x385686('0x1d63')](_0x385686('0xc57'))));});}function _0x37bf4c(_0x1cf222){const _0x11a76a=_0x4d6a3d;console[_0x11a76a('0x1d63')](_0x11a76a('0x1a6b'),_0x1cf222),_0x214198[_0x11a76a('0x14c4')][_0x1cf222[_0x11a76a('0x16b7')]]&&(_0x214198[_0x11a76a('0x14c4')][_0x1cf222[_0x11a76a('0x16b7')]]['loggedInDb']+=0x1,_0x214198[_0x11a76a('0x14c4')][_0x1cf222[_0x11a76a('0x16b7')]][_0x11a76a('0x25ea')][_0x1cf222[_0x11a76a('0x5e5')]]=_0x1cf222[_0x11a76a('0x16b7')]);}function _0x492ab2(_0x5148a4){const _0x5c2b4e=_0x4d6a3d;console[_0x5c2b4e('0x1d63')](_0x5c2b4e('0x1532'),_0x5148a4),_0x214198['queues'][_0x5148a4['MailQueueId']]&&_0x214198[_0x5c2b4e('0x14c4')][_0x5148a4[_0x5c2b4e('0x16b7')]][_0x5c2b4e('0x6c2')]>0x0&&(_0x214198[_0x5c2b4e('0x14c4')][_0x5148a4['MailQueueId']][_0x5c2b4e('0x6c2')]-=0x1,delete _0x214198[_0x5c2b4e('0x14c4')][_0x5148a4[_0x5c2b4e('0x16b7')]][_0x5c2b4e('0x25ea')][_0x5148a4[_0x5c2b4e('0x5e5')]]);}let _0x3d1626=!![],_0x1b22b2=0x1;_0x186572[_0x4d6a3d('0x620')]('vm.query.filter',function(_0x3415e9,_0x5ee903){const _0x4fda91=_0x4d6a3d;_0x3d1626?_0x471859(function(){_0x3d1626=![];}):(!_0x5ee903&&(_0x1b22b2=_0x214198[_0x4fda91('0x826')][_0x4fda91('0x115a')]),_0x3415e9!==_0x5ee903&&(_0x214198[_0x4fda91('0x826')][_0x4fda91('0x115a')]=0x1),!_0x3415e9&&(_0x214198[_0x4fda91('0x826')]['page']=_0x1b22b2),_0x214198[_0x4fda91('0x1f3b')]());});function _0x41843d(_0x21f96d){const _0x36da5d=_0x4d6a3d;_0x214198[_0x36da5d('0x335')]=_0x21f96d[_0x36da5d('0x335')],_0x214198['queues']=_0x21f96d?_0x49cbdd()[_0x36da5d('0x8de')](_0x21f96d[_0x36da5d('0x2319')]?_0x21f96d[_0x36da5d('0x2319')]:[],'id'):{};if(_0x21f96d[_0x36da5d('0x2319')]){_0x214198[_0x36da5d('0x1e36')]=[];for(let _0x32bdc1=0x0;_0x32bdc1<_0x21f96d[_0x36da5d('0x2319')]['length'];_0x32bdc1++){_0x214198[_0x36da5d('0x1e36')][_0x36da5d('0x269f')](_0x21f96d[_0x36da5d('0x2319')][_0x32bdc1]['id']);}}_0x392c68();}function _0x4f4f06(){const _0x5650b8=_0x4d6a3d;_0x214198[_0x5650b8('0x826')][_0x5650b8('0xf19')]=(_0x214198['query'][_0x5650b8('0x115a')]-0x1)*_0x214198[_0x5650b8('0x826')][_0x5650b8('0x193b')],_0x30b79d['hasRole'](_0x5650b8('0x20bf'))?_0x214198[_0x5650b8('0x1691')]=_0x2d9058[_0x5650b8('0x1e8b')]['get'](_0x214198[_0x5650b8('0x826')],_0x41843d)['$promise']:(_0x214198[_0x5650b8('0x826')]['id']=_0x214198[_0x5650b8('0xdeb')]['id'],_0x214198[_0x5650b8('0x826')][_0x5650b8('0x16f8')]=_0x5650b8('0x294'),_0x214198[_0x5650b8('0x1691')]=_0x2d9058[_0x5650b8('0xdeb')][_0x5650b8('0x2447')](_0x214198[_0x5650b8('0x826')],_0x41843d)[_0x5650b8('0x1af5')]);}function _0x50b1fb(_0x51e6a8,_0x596d7c){const _0x1f4b9e=_0x4d6a3d;_0x40c678['show']({'controller':'CreateOrEditMailQueueDialogController','controllerAs':'vm','templateUrl':_0x29824e,'parent':angular[_0x1f4b9e('0x1ce1')](_0x23871c[_0x1f4b9e('0x13aa')]),'targetEvent':_0x51e6a8,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x596d7c,'mailQueues':_0x49cbdd()[_0x1f4b9e('0xa72')](_0x214198[_0x1f4b9e('0x14c4')]),'license':null,'setting':null,'crudPermissions':_0x214198['crudPermissions']}});}function _0x25bd1f(_0x587a8a,_0x28d61f){const _0x1da1a3=_0x4d6a3d;_0x40c678['show']({'controller':_0x1da1a3('0x1648'),'controllerAs':'vm','templateUrl':_0xda1718,'parent':angular[_0x1da1a3('0x1ce1')](_0x23871c[_0x1da1a3('0x13aa')]),'targetEvent':_0x587a8a,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x28d61f,'mailQueues':_0x214198[_0x1da1a3('0x14c4')]?_0x214198['queues'][_0x1da1a3('0x2319')]:[],'realtime':![],'crudPermissions':_0x214198[_0x1da1a3('0x103e')]}});}function _0x53244c(_0x550775){const _0x35279d=_0x4d6a3d;return _0x2d9058[_0x35279d('0x1e8b')][_0x35279d('0x27ba')](_0x550775)[_0x35279d('0x1af5')]['then'](function(){const _0x649eb5=_0x35279d;_0x23602f[_0x649eb5('0x130d')]({'title':_0x649eb5('0xc7a'),'msg':_0x550775[_0x649eb5('0x2aa')]?_0x550775['name']+_0x649eb5('0x12b0'):''});})[_0x35279d('0x16df')](function(_0x3eea0f){const _0x24fc84=_0x35279d;_0x23602f[_0x24fc84('0x1db9')]({'title':_0x24fc84('0x2480'),'msg':_0x3eea0f['message']});});}_0x186572[_0x4d6a3d('0x207c')](_0x4d6a3d('0x2b4'),function(){const _0x164fbb=_0x4d6a3d;_0x1f7423['removeAllListeners'](_0x164fbb('0x11a0')),_0x1f7423[_0x164fbb('0x1c65')](_0x164fbb('0x2653')),_0x1f7423['removeAllListeners'](_0x164fbb('0x1992')),_0x1f7423[_0x164fbb('0x1c65')]('user:update'),_0x1f7423[_0x164fbb('0x1c65')](_0x164fbb('0x1f34')),_0x1f7423[_0x164fbb('0x1c65')](_0x164fbb('0x1cfb'));});}const _0x34e4d9=_0x1676db;function _0x1f3dc8(){const _0x3dc941=_0x4376d8;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x3dc941('0x20ec'),'lagged':_0x3dc941('0x20ec'),'reachable':_0x3dc941('0x9b4'),'unreachable':_0x3dc941('0x20ec'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':_0x3dc941('0xbd2'),'busy':_0x3dc941('0xf9e'),'invalid':_0x3dc941('0x9d7'),'unavailable':_0x3dc941('0x9d7'),'ringing':_0x3dc941('0x109b'),'ringinuse':_0x3dc941('0x109b'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x3dc941('0x109b'),'up':_0x3dc941('0xc21'),'hangup':_0x3dc941('0x1147')},'channelStatusOut':{'ring':_0x3dc941('0xc0c'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x3dc941('0x1147')}};}const _0x17ac2d=_0x1f3dc8;_0x8f7252[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x25aa')];function _0x8f7252(_0x55025c,_0x3e47eb,_0x20c72d){const _0x136945=_0x4376d8,_0x22b594=this;_0x20c72d['disconnect'](),_0x20c72d['connect'](),_0x22b594[_0x136945('0xde7')]=0x0;switch(_0x3e47eb[_0x136945('0x1247')]['name']){case'app.mail.realtime.agents':_0x22b594[_0x136945('0xde7')]=0x0;break;case _0x136945('0xed7'):_0x22b594['selectedTab']=0x1;break;case _0x136945('0x3a8'):_0x22b594['selectedTab']=0x2;break;default:_0x22b594[_0x136945('0xde7')]=0x0,_0x3e47eb['go'](_0x136945('0x11da'));}_0x55025c[_0x136945('0x620')]('vm.selectedTab',function(_0x14dfb2,_0x580bbb){const _0x52198c=_0x136945;if(_0x14dfb2!==_0x580bbb)switch(_0x14dfb2){case 0x0:_0x3e47eb['go'](_0x52198c('0x11da'));break;case 0x1:_0x3e47eb['go'](_0x52198c('0xed7'));break;case 0x2:_0x3e47eb['go'](_0x52198c('0x3a8'));break;default:_0x3e47eb['go'](_0x52198c('0x11da'));}});}const _0x171974=_0x8f7252;_0x3524e3['$inject']=[_0x4376d8('0x183a')];function _0x3524e3(_0x3065d9){const _0x435032=_0x4376d8;_0x3065d9['state'](_0x435032('0x45'),{'url':_0x435032('0x1dc1'),'views':{'content@app':{'templateUrl':_0x47bf59,'controller':_0x435032('0x1c9c')}},'resolve':{'userProfile':[_0x435032('0x177'),_0x435032('0x1885'),function(_0x27c351,_0x150069){const _0xaaa61a=_0x435032;return _0x150069[_0xaaa61a('0x1ba2')]('admin')?null:_0x27c351[_0xaaa61a('0x898')](_0xaaa61a('0x235d'),{'fields':'id,name,crudPermissions','id':_0x150069[_0xaaa61a('0x2831')]()[_0xaaa61a('0x1e76')]});}],'userProfileSection':[_0x435032('0x177'),_0x435032('0x1885'),function(_0x224b8e,_0x152ab1){const _0x2c5583=_0x435032;return _0x152ab1[_0x2c5583('0x1ba2')](_0x2c5583('0x20bf'))?null:_0x224b8e[_0x2c5583('0x898')](_0x2c5583('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x152ab1['getCurrentUser']()['userProfileId'],'sectionId':0x262});}]},'authenticate':!![],'permissionId':0x262})[_0x435032('0x1b9a')]('app.mail.realtime.agents',{'url':_0x435032('0x1a85'),'controller':_0x435032('0x278e'),'templateUrl':_0x51992f,'resolve':{'pauses':[_0x435032('0x177'),function(_0x9f13b){const _0x2eb596=_0x435032;return _0x9f13b[_0x2eb596('0x898')](_0x2eb596('0x13db'),{'nolimit':!![]});}],'agents':[_0x435032('0x177'),_0x435032('0x1885'),function(_0x53e12f,_0x3095c7){const _0xd1e80e=_0x435032;return _0x3095c7[_0xd1e80e('0x1ba2')]('admin')?_0x53e12f[_0xd1e80e('0x898')](_0xd1e80e('0x181a'),{'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':_0xd1e80e('0xea6'),'nolimit':!![]}):_0x53e12f[_0xd1e80e('0x898')]('userProfile@getResources',{'id':_0x3095c7['getCurrentUser']()[_0xd1e80e('0x1e76')],'section':'Agents','fields':_0xd1e80e('0xb31'),'role':_0xd1e80e('0x684'),'sort':_0xd1e80e('0xea6'),'nolimit':!![]});}],'userProfile':[_0x435032('0x177'),'Auth',function(_0x216388,_0x281e61){const _0x3557fb=_0x435032;return _0x281e61[_0x3557fb('0x1ba2')](_0x3557fb('0x20bf'))?null:_0x216388[_0x3557fb('0x898')]('userProfile@get',{'fields':_0x3557fb('0x8d3'),'id':_0x281e61['getCurrentUser']()[_0x3557fb('0x1e76')]});}],'userProfileSection':[_0x435032('0x177'),_0x435032('0x1885'),function(_0x23bdfb,_0xebf8c0){const _0x45ef35=_0x435032;return _0xebf8c0[_0x45ef35('0x1ba2')]('admin')?null:_0x23bdfb[_0x45ef35('0x898')](_0x45ef35('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xebf8c0[_0x45ef35('0x2831')]()[_0x45ef35('0x1e76')],'sectionId':0xca});}],'rpcAgents':[_0x435032('0x177'),function(_0x5dd7f6){const _0x4d671f=_0x435032;return _0x5dd7f6[_0x4d671f('0x898')](_0x4d671f('0xb27'));}]},'authenticate':!![],'permissionId':0x262})['state'](_0x435032('0xed7'),{'url':_0x435032('0x1520'),'controller':_0x435032('0x2885'),'templateUrl':_0x562cb8,'resolve':{'queues':[_0x435032('0x177'),_0x435032('0x1885'),function(_0xbfa303,_0x14726a){const _0x540f08=_0x435032;return _0x14726a['hasRole'](_0x540f08('0x20bf'))?_0xbfa303[_0x540f08('0x898')](_0x540f08('0xa60'),{'type':_0x540f08('0x1e77'),'sort':_0x540f08('0x1ac6'),'limit':0xa,'offset':0x0}):_0xbfa303[_0x540f08('0x898')](_0x540f08('0x1164'),{'id':_0x14726a[_0x540f08('0x2831')]()['userProfileId'],'section':_0x540f08('0x294'),'channel':'mail','type':'inbound','sort':_0x540f08('0x1ac6'),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x435032('0x1885'),function(_0x24b859,_0x257a0b){const _0xf11860=_0x435032;return _0x257a0b[_0xf11860('0x1ba2')](_0xf11860('0x20bf'))?null:_0x24b859[_0xf11860('0x898')](_0xf11860('0x235d'),{'fields':_0xf11860('0x8d3'),'id':_0x257a0b[_0xf11860('0x2831')]()[_0xf11860('0x1e76')]});}],'userProfileSection':[_0x435032('0x177'),_0x435032('0x1885'),function(_0xce3c15,_0x10f2d8){const _0xb69d97=_0x435032;return _0x10f2d8[_0xb69d97('0x1ba2')](_0xb69d97('0x20bf'))?null:_0xce3c15[_0xb69d97('0x898')](_0xb69d97('0x23e7'),{'fields':_0xb69d97('0x1134'),'userProfileId':_0x10f2d8[_0xb69d97('0x2831')]()[_0xb69d97('0x1e76')],'sectionId':0x259});}],'rpcQueues':[_0x435032('0x177'),function(_0x377df3){const _0xa9ce57=_0x435032;return _0x377df3[_0xa9ce57('0x898')](_0xa9ce57('0x1de4'));}]},'authenticate':!![],'permissionId':0x262})[_0x435032('0x1b9a')](_0x435032('0x3a8'),{'url':_0x435032('0x798'),'controller':_0x435032('0x30b'),'templateUrl':_0xbac07e,'resolve':{'mailAccounts':[_0x435032('0x177'),_0x435032('0x1885'),function(_0x2eb8b4,_0xde3758){const _0x3a209c=_0x435032;return _0xde3758[_0x3a209c('0x1ba2')](_0x3a209c('0x20bf'))?_0x2eb8b4[_0x3a209c('0x898')](_0x3a209c('0xfa7'),{'sort':_0x3a209c('0x1ac6'),'limit':0xa,'offset':0x0}):_0x2eb8b4[_0x3a209c('0x898')]('userProfile@getResources',{'id':_0xde3758[_0x3a209c('0x2831')]()['userProfileId'],'section':_0x3a209c('0xedf'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x435032('0x177'),_0x435032('0x1885'),function(_0x209205,_0x371bd5){const _0xf830dc=_0x435032;return _0x371bd5['hasRole']('admin')?null:_0x209205[_0xf830dc('0x898')]('userProfile@get',{'fields':_0xf830dc('0x8d3'),'id':_0x371bd5['getCurrentUser']()[_0xf830dc('0x1e76')]});}],'userProfileSection':[_0x435032('0x177'),_0x435032('0x1885'),function(_0x2c4f25,_0x364c19){const _0x5ac247=_0x435032;return _0x364c19[_0x5ac247('0x1ba2')](_0x5ac247('0x20bf'))?null:_0x2c4f25[_0x5ac247('0x898')](_0x5ac247('0x23e7'),{'fields':_0x5ac247('0x1134'),'userProfileId':_0x364c19[_0x5ac247('0x2831')]()[_0x5ac247('0x1e76')],'sectionId':0x25a});}],'rpcMailAccounts':[_0x435032('0x177'),function(_0x426077){const _0xf965f5=_0x435032;return _0x426077[_0xf965f5('0x898')](_0xf965f5('0x204a'));}]},'authenticate':!![],'permissionId':0x262});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x45'),[])[_0x4376d8('0x1980')](_0x3524e3)[_0x4376d8('0x5ce')](_0x4376d8('0x20d1'),_0x144699)['controller'](_0x4376d8('0x1b06'),_0x34e4d9)[_0x4376d8('0x26a6')](_0x4376d8('0x628'),_0x17ac2d)['controller'](_0x4376d8('0xb4a'),_0x171974);const _0x351a3b=_0x4cf2bc['p']+_0x4376d8('0x4e1'),_0x3c7bfc=_0x4cf2bc['p']+_0x4376d8('0xb3f'),_0x191d18=_0x4cf2bc['p']+_0x4376d8('0x2196'),_0x3dc26d=_0x4cf2bc['p']+_0x4376d8('0x23fa'),_0x2d1b56=_0x4cf2bc['p']+'src/js/modules/main/apps/mail/views/mailSubtatuses/mailSubtatuses.html/mailSubtatuses.html';_0x3afc6a['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x3d9'),_0x4376d8('0x127b'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x3afc6a(_0x14ab8c,_0x1d2038,_0x55db6e,_0x5c261f,_0x1909bb,_0x56e96e,_0x5c30e2,_0x345f5d,_0x2fc467,_0x39ced3,_0x190ac9,_0x45a909,_0x27bda7,_0x171e00){const _0x4532cf=_0x4376d8,_0x383796=this;_0x383796[_0x4532cf('0x197c')]=_0x190ac9[_0x4532cf('0x2831')](),_0x383796[_0x4532cf('0x73e')]=[],_0x383796['setting']=_0x27bda7,_0x383796['license']=_0x45a909,_0x383796[_0x4532cf('0x103e')]=_0x171e00,_0x383796[_0x4532cf('0x6ee')]={},_0x383796[_0x4532cf('0x1572')]=_0x383796[_0x4532cf('0x1aeb')]&&_0x383796['setting'][_0x4532cf('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x383796[_0x4532cf('0x24d3')]=_0x4532cf('0x1266'),_0x383796[_0x4532cf('0x127b')]=angular[_0x4532cf('0x14e5')](_0x2fc467),_0x383796[_0x4532cf('0x3d9')]=_0x345f5d,_0x383796[_0x4532cf('0x128b')]=![];!_0x383796[_0x4532cf('0x127b')]&&(_0x383796['mailAccount']={'active':!![],'cservice':_0x4532cf('0x9bb'),'cauthentication':!![],'fontSize':0xd,'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x383796['title']=_0x4532cf('0xc46'),_0x383796[_0x4532cf('0x128b')]=!![]);_0x1d2038[_0x4532cf('0x16fb')]['id']&&(_0x383796[_0x4532cf('0x127b')][_0x4532cf('0xbda')]=_0x1d2038[_0x4532cf('0x16fb')]['id']);_0x383796[_0x4532cf('0x246d')]=_0x3af4f0,_0x383796[_0x4532cf('0x1bfb')]=_0x313316,_0x383796[_0x4532cf('0x2387')]=_0x395359,_0x383796[_0x4532cf('0x1300')]=_0x4443ec,_0x383796[_0x4532cf('0x136e')]=_0x3c765a,_0x190ac9[_0x4532cf('0x1ba2')](_0x4532cf('0x20bf'))?_0x39ced3[_0x4532cf('0x25b')]['get']({'fields':_0x4532cf('0x12d2'),'sort':_0x4532cf('0x2aa')})['$promise'][_0x4532cf('0x17e7')](function(_0x152165){const _0x1ad9e2=_0x4532cf;_0x383796[_0x1ad9e2('0x2504')]=_0x152165[_0x1ad9e2('0x2319')]||[];})[_0x4532cf('0x16df')](function(_0x2b7d00){const _0x5e9b04=_0x4532cf;_0x5c30e2[_0x5e9b04('0x1db9')]({'title':_0x2b7d00[_0x5e9b04('0x11c5')]?_0x5e9b04('0x14f7')+_0x2b7d00[_0x5e9b04('0x11c5')]+'\x20-\x20'+_0x2b7d00[_0x5e9b04('0x1833')]:'SYSTEM:GET_LISTS','msg':_0x2b7d00[_0x5e9b04('0x1457')]?JSON[_0x5e9b04('0x678')](_0x2b7d00[_0x5e9b04('0x1457')]):_0x2b7d00[_0x5e9b04('0x9b6')]()});}):_0x39ced3[_0x4532cf('0x25b')][_0x4532cf('0x1c53')]({'fields':_0x4532cf('0x12d2'),'sort':_0x4532cf('0x2aa')})[_0x4532cf('0x1af5')][_0x4532cf('0x17e7')](function(_0x3f267e){const _0xeda2e3=_0x4532cf;_0x383796[_0xeda2e3('0x2504')]=_0x3f267e['rows']||[];})['then'](function(){const _0x2ef48d=_0x4532cf;return _0x39ced3['userProfileSection']['get']({'userProfileId':_0x383796[_0x2ef48d('0x197c')]['userProfileId'],'sectionId':0x12d})[_0x2ef48d('0x1af5')];})[_0x4532cf('0x17e7')](function(_0x333b80){const _0x157a17=_0x4532cf,_0x59592e=_0x333b80&&_0x333b80[_0x157a17('0x2319')]?_0x333b80[_0x157a17('0x2319')][0x0]:null;if(!_0x59592e){const _0x2647c4=[];let _0x508703=null;_0x383796[_0x157a17('0x127b')]&&(_0x508703=_0x49cbdd()[_0x157a17('0xe8e')](_0x383796[_0x157a17('0x2504')],{'id':Number(_0x383796['mailAccount']['ListId'])}));for(let _0x4d0dcd=0x0;_0x4d0dcd<_0x383796[_0x157a17('0x2504')][_0x157a17('0x1f73')];_0x4d0dcd++){_0x508703&&_0x383796[_0x157a17('0x2504')][_0x4d0dcd]['id']===_0x508703['id']&&(_0x383796[_0x157a17('0x2504')][_0x4d0dcd][_0x157a17('0xe5c')]=![],_0x2647c4[_0x157a17('0x269f')](_0x383796[_0x157a17('0x2504')][_0x4d0dcd]));}_0x383796[_0x157a17('0x2504')]=_0x2647c4;}else{if(!_0x59592e[_0x157a17('0x9e3')])return _0x39ced3[_0x157a17('0x78d')][_0x157a17('0x1c53')]({'sectionId':_0x59592e['id']})['$promise'][_0x157a17('0x17e7')](function(_0x42b84d){const _0x150d24=_0x157a17,_0x5881ea=_0x49cbdd()[_0x150d24('0x787')](_0x42b84d[_0x150d24('0x2319')],function(_0x17f5d9){const _0x271405=_0x150d24;return _0x49cbdd()[_0x271405('0xe8e')](_0x383796[_0x271405('0x2504')],{'id':_0x17f5d9[_0x271405('0x5db')]});});let _0x4beb47=null;_0x383796['mailAccount']&&(_0x4beb47=_0x49cbdd()[_0x150d24('0xe8e')](_0x383796[_0x150d24('0x2504')],{'id':Number(_0x383796[_0x150d24('0x127b')][_0x150d24('0x7f8')])}));if(_0x4beb47&&!_0x49cbdd()[_0x150d24('0x26f8')](_0x5881ea,['id',_0x4beb47['id']])){const _0xd03fab=_0x49cbdd()[_0x150d24('0xe8e')](_0x383796['lists'],{'id':_0x4beb47['id']});_0xd03fab[_0x150d24('0xe5c')]=![],_0x5881ea['push'](_0xd03fab);}_0x383796[_0x150d24('0x2504')]=_0x5881ea;});}})[_0x4532cf('0x16df')](function(_0x441f02){const _0x3753d8=_0x4532cf;_0x5c30e2[_0x3753d8('0x1db9')]({'title':_0x441f02[_0x3753d8('0x11c5')]?_0x3753d8('0x14f7')+_0x441f02[_0x3753d8('0x11c5')]+_0x3753d8('0x16e4')+_0x441f02[_0x3753d8('0x1833')]:_0x3753d8('0x1630'),'msg':_0x441f02[_0x3753d8('0x1457')]?JSON[_0x3753d8('0x678')](_0x441f02['data']):_0x441f02[_0x3753d8('0x9b6')]()});});function _0x3af4f0(){const _0x406a56=_0x4532cf;_0x383796[_0x406a56('0x73e')]=[],_0x39ced3['mailAccount'][_0x406a56('0x2439')](_0x383796[_0x406a56('0x127b')])[_0x406a56('0x1af5')][_0x406a56('0x17e7')](function(_0x2d41ba){const _0x39dc68=_0x406a56;_0x383796['mailAccounts'][_0x39dc68('0x1893')](_0x2d41ba[_0x39dc68('0x16b2')]()),_0x5c30e2[_0x39dc68('0x130d')]({'title':_0x39dc68('0x1347'),'msg':_0x383796[_0x39dc68('0x127b')][_0x39dc68('0x2aa')]?_0x383796[_0x39dc68('0x127b')]['name']+'\x20has\x20been\x20created!':''}),_0x3c765a(_0x2d41ba);})[_0x406a56('0x16df')](function(_0xdc7abb){const _0x328da4=_0x406a56;if(_0xdc7abb[_0x328da4('0x1457')]&&_0xdc7abb[_0x328da4('0x1457')][_0x328da4('0x73e')]&&_0xdc7abb[_0x328da4('0x1457')][_0x328da4('0x73e')]['length']){_0x383796['errors']=_0xdc7abb[_0x328da4('0x1457')][_0x328da4('0x73e')]||[{'message':_0xdc7abb[_0x328da4('0x9b6')](),'type':_0x328da4('0x20a')}];for(let _0xaf177d=0x0;_0xaf177d<_0xdc7abb[_0x328da4('0x1457')][_0x328da4('0x73e')]['length'];_0xaf177d+=0x1){_0x5c30e2[_0x328da4('0x1db9')]({'title':_0xdc7abb[_0x328da4('0x1457')]['errors'][_0xaf177d][_0x328da4('0x412')],'msg':_0xdc7abb[_0x328da4('0x1457')][_0x328da4('0x73e')][_0xaf177d][_0x328da4('0x1603')]});}}else _0x5c30e2[_0x328da4('0x1db9')]({'title':_0xdc7abb[_0x328da4('0x11c5')]?_0x328da4('0x14f7')+_0xdc7abb[_0x328da4('0x11c5')]+_0x328da4('0x16e4')+_0xdc7abb[_0x328da4('0x1833')]:_0x328da4('0x20a'),'msg':_0xdc7abb['data']?JSON['stringify'](_0xdc7abb['data'][_0x328da4('0x1603')]):_0xdc7abb['toString']()});});}function _0x313316(){const _0x3a88b8=_0x4532cf;_0x383796['errors']=[],_0x39ced3[_0x3a88b8('0x127b')][_0x3a88b8('0x27ba')]({'id':_0x383796[_0x3a88b8('0x127b')]['id']},_0x383796[_0x3a88b8('0x127b')])['$promise']['then'](function(_0x120022){const _0x44ab21=_0x3a88b8,_0x20e8fc=_0x49cbdd()[_0x44ab21('0xe8e')](_0x383796[_0x44ab21('0x3d9')],{'id':_0x120022['id']});_0x20e8fc&&_0x49cbdd()[_0x44ab21('0x1ced')](_0x20e8fc,_0x49cbdd()[_0x44ab21('0x230a')](_0x120022[_0x44ab21('0x16b2')](),_0x49cbdd()[_0x44ab21('0x1c0f')](_0x20e8fc))),_0x5c30e2['success']({'title':'MailAccount\x20properly\x20saved!','msg':_0x383796['mailAccount'][_0x44ab21('0x2aa')]?_0x383796['mailAccount'][_0x44ab21('0x2aa')]+_0x44ab21('0x15ca'):''}),_0x3c765a(_0x120022);})[_0x3a88b8('0x16df')](function(_0x1fef62){const _0x4f2cba=_0x3a88b8;if(_0x1fef62[_0x4f2cba('0x1457')]&&_0x1fef62[_0x4f2cba('0x1457')]['errors']&&_0x1fef62[_0x4f2cba('0x1457')][_0x4f2cba('0x73e')][_0x4f2cba('0x1f73')]){_0x383796[_0x4f2cba('0x73e')]=_0x1fef62[_0x4f2cba('0x1457')]['errors']||[{'message':_0x1fef62[_0x4f2cba('0x9b6')](),'type':'api.mailAccount.update'}];for(let _0x2daa5f=0x0;_0x2daa5f<_0x1fef62[_0x4f2cba('0x1457')][_0x4f2cba('0x73e')][_0x4f2cba('0x1f73')];_0x2daa5f++){_0x5c30e2[_0x4f2cba('0x1db9')]({'title':_0x1fef62['data'][_0x4f2cba('0x73e')][_0x2daa5f][_0x4f2cba('0x412')],'msg':_0x1fef62[_0x4f2cba('0x1457')]['errors'][_0x2daa5f][_0x4f2cba('0x1603')]});}}else _0x5c30e2[_0x4f2cba('0x1db9')]({'title':_0x1fef62[_0x4f2cba('0x11c5')]?_0x4f2cba('0x14f7')+_0x1fef62['status']+_0x4f2cba('0x16e4')+_0x1fef62['statusText']:_0x4f2cba('0xa43'),'msg':_0x1fef62[_0x4f2cba('0x1457')]?JSON[_0x4f2cba('0x678')](_0x1fef62[_0x4f2cba('0x1457')][_0x4f2cba('0x1603')]):_0x1fef62[_0x4f2cba('0x9b6')]()});});}function _0x395359(_0x5db460){const _0x271ebc=_0x4532cf;if(_0x383796[_0x271ebc('0x127b')]['service'])return _0x5c30e2[_0x271ebc('0x1db9')]({'title':'Mail\x20Account\x20not\x20deleted!','msg':_0x271ebc('0x1772')});_0x383796[_0x271ebc('0x73e')]=[];const _0x4b11d4=_0x5c261f[_0x271ebc('0x1121')]()[_0x271ebc('0x24d3')](_0x271ebc('0x530'))['content'](_0x271ebc('0x882'))['ariaLabel'](_0x271ebc('0x182b'))['ok'](_0x271ebc('0x304'))[_0x271ebc('0x1d47')](_0x271ebc('0x1b70'))[_0x271ebc('0x104f')](_0x5db460);_0x5c261f[_0x271ebc('0x28e2')](_0x4b11d4)[_0x271ebc('0x17e7')](function(){const _0x519a10=_0x271ebc;_0x39ced3[_0x519a10('0x127b')]['delete']({'id':_0x383796[_0x519a10('0x127b')]['id']})[_0x519a10('0x1af5')][_0x519a10('0x17e7')](function(){const _0x5b0268=_0x519a10;_0x49cbdd()[_0x5b0268('0x5f3')](_0x383796['mailAccounts'],{'id':_0x383796['mailAccount']['id']}),_0x5c30e2[_0x5b0268('0x130d')]({'title':_0x5b0268('0x13d3'),'msg':(_0x383796[_0x5b0268('0x127b')][_0x5b0268('0x2aa')]||_0x5b0268('0x127b'))+_0x5b0268('0x149f')}),_0x3c765a(_0x383796[_0x5b0268('0x127b')]);})[_0x519a10('0x16df')](function(_0x18bc34){const _0x17cd06=_0x519a10;if(_0x18bc34[_0x17cd06('0x1457')]&&_0x18bc34[_0x17cd06('0x1457')][_0x17cd06('0x73e')]&&_0x18bc34['data'][_0x17cd06('0x73e')][_0x17cd06('0x1f73')]){_0x383796[_0x17cd06('0x73e')]=_0x18bc34[_0x17cd06('0x1457')][_0x17cd06('0x73e')]||[{'message':_0x18bc34[_0x17cd06('0x9b6')](),'type':_0x17cd06('0x516')}];for(let _0x178e0a=0x0;_0x178e0a<_0x18bc34[_0x17cd06('0x1457')][_0x17cd06('0x73e')]['length'];_0x178e0a++){_0x5c30e2[_0x17cd06('0x1db9')]({'title':_0x18bc34[_0x17cd06('0x1457')][_0x17cd06('0x73e')][_0x178e0a]['type'],'msg':_0x18bc34[_0x17cd06('0x1457')][_0x17cd06('0x73e')][_0x178e0a][_0x17cd06('0x1603')]});}}else _0x5c30e2['error']({'title':_0x18bc34['status']?_0x17cd06('0x14f7')+_0x18bc34[_0x17cd06('0x11c5')]+_0x17cd06('0x16e4')+_0x18bc34[_0x17cd06('0x1833')]:'api.mailAccount.delete','msg':_0x18bc34[_0x17cd06('0x1457')]?JSON['stringify'](_0x18bc34[_0x17cd06('0x1457')]['message']):_0x18bc34[_0x17cd06('0x1603')]||_0x18bc34[_0x17cd06('0x9b6')]()});});},function(){});}function _0x4443ec(_0xb24cab){return _0xb24cab===null?undefined:new Date(_0xb24cab);}function _0x3c765a(_0x50f3c8){const _0x32c210=_0x4532cf;_0x5c261f[_0x32c210('0x212a')](_0x50f3c8);}}const _0x5cf0b3=_0x3afc6a,_0x1df2ba=_0x4cf2bc['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/agent/dialog.html/dialog.html',_0x16fc2b=_0x4cf2bc['p']+_0x4376d8('0x1c03'),_0x25e798=_0x4cf2bc['p']+_0x4376d8('0x153a'),_0x4b010c=_0x4cf2bc['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/gotoif/dialog.html/dialog.html',_0xa52085=_0x4cf2bc['p']+_0x4376d8('0x6c4'),_0x52acf8=_0x4cf2bc['p']+_0x4376d8('0x1252'),_0x490589=_0x4cf2bc['p']+'src/js/modules/main/apps/mail/views/mailAccounts/edit/apps/noop/dialog.html/dialog.html',_0x477169=_0x4cf2bc['p']+_0x4376d8('0x48a'),_0x495920=_0x4cf2bc['p']+_0x4376d8('0x9cb'),_0x19e3e1=_0x4cf2bc['p']+_0x4376d8('0x16c1');_0x928aa0[_0x4376d8('0x1b9c')]=[_0x4376d8('0x212e'),'$mdDialog','$document','toasty','Auth'];const _0x15f64d={'agent':_0x1df2ba,'autoreply':_0x16fc2b,'close':_0x25e798,'gotoif':_0x4b010c,'gotop':_0xa52085,'interval':_0x52acf8,'noop':_0x490589,'queue':_0x477169,'system':_0x495920,'tag':_0x19e3e1};function _0x928aa0(_0x1929cd,_0x2f8b54,_0x4afb4e,_0x251031,_0x23526e){const _0x4cf73e=_0x4376d8,_0x11d9a4=this;_0x11d9a4[_0x4cf73e('0x197c')]=_0x23526e[_0x4cf73e('0x2831')](),_0x11d9a4[_0x4cf73e('0x127b')]={},_0x11d9a4[_0x4cf73e('0x1143')]={'count':0x0,'rows':[]},_0x11d9a4['selectedMailAccountApps']=[],_0x11d9a4[_0x4cf73e('0x103e')],_0x11d9a4[_0x4cf73e('0x826')]={'sort':'priority'},_0x11d9a4[_0x4cf73e('0x970')]=_0x49cbdd()['reject'](_0x49cbdd()['sortBy']([{'app':'Interval','appType':'interval','types':['always',_0x4cf73e('0x8fa'),_0x4cf73e('0x134c')],'fields':[],'isApp':![]},{'app':_0x4cf73e('0x1e49'),'appType':_0x4cf73e('0x1e49'),'type':'noop','icon':_0x4cf73e('0x24a0'),'interval':_0x4cf73e('0x20c3'),'required':!![],'isApp':!![],'fields':[{'title':_0x4cf73e('0x2775'),'name':_0x4cf73e('0x175b'),'type':_0x4cf73e('0x132f'),'param':0x0}]},{'app':_0x4cf73e('0xca8'),'appType':_0x4cf73e('0xca8'),'type':_0x4cf73e('0xca8'),'icon':_0x4cf73e('0x24a0'),'interval':_0x4cf73e('0x20c3'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x4cf73e('0xd26'),'field':{'name':_0x4cf73e('0xb0a'),'key':_0x4cf73e('0x2aa')},'route':'variable','filters':{'fields':_0x4cf73e('0x12d2'),'sort':_0x4cf73e('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x4cf73e('0x1d36'),'name':_0x4cf73e('0x1115'),'type':_0x4cf73e('0x132f'),'required':!![],'param':0x0},{'title':'Variable','name':_0x4cf73e('0xb0a'),'type':_0x4cf73e('0x1ecc'),'values':'variables','value':_0x4cf73e('0x8e2'),'option':_0x4cf73e('0x8e2'),'defaultValues':[{'value':'\x27\x27','option':_0x4cf73e('0x2576')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x4cf73e('0x721'),'appType':_0x4cf73e('0x721'),'type':_0x4cf73e('0x1fb0'),'icon':_0x4cf73e('0x24a0'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4cf73e('0x182c'),'name':_0x4cf73e('0x1a6d'),'type':_0x4cf73e('0x7b8'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x4cf73e('0x7a9'),'appType':_0x4cf73e('0x7a9'),'type':_0x4cf73e('0x7a9'),'icon':_0x4cf73e('0x24a0'),'interval':_0x4cf73e('0x20c3'),'isApp':!![],'fields':[{'title':_0x4cf73e('0x2380'),'name':_0x4cf73e('0xa67'),'type':'text','required':!![],'param':0x0},{'title':_0x4cf73e('0xd8b'),'name':_0x4cf73e('0xd8b'),'type':_0x4cf73e('0x7b8'),'min':0x1,'required':!![],'param':0x1},{'title':_0x4cf73e('0xe9d'),'name':_0x4cf73e('0xe9d'),'type':_0x4cf73e('0x7b8'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x4cf73e('0x1bd'),'appType':_0x4cf73e('0x1bd'),'foreignKey':_0x4cf73e('0x16b7'),'type':_0x4cf73e('0x1bd'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':'queues','field':{'name':'queue','key':_0x4cf73e('0x2aa')},'route':_0x4cf73e('0x1e8b'),'filters':{'fields':'id,name,type','sort':_0x4cf73e('0x2aa'),'nolimit':!![]},'permissions':{'section':0x259}}],'fields':[{'title':'Queue','name':_0x4cf73e('0x1bd'),'type':'apiselect','values':_0x4cf73e('0x14c4'),'value':'queue.name','option':_0x4cf73e('0x661'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x4cf73e('0x1ceb'),'name':_0x4cf73e('0xd2f'),'type':_0x4cf73e('0x7b8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x4cf73e('0x684'),'appType':'agent','type':_0x4cf73e('0x684'),'foreignKey':_0x4cf73e('0x5e5'),'icon':_0x4cf73e('0x24a0'),'interval':_0x4cf73e('0x20c3'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x4cf73e('0x684'),'key':'name'},'route':_0x4cf73e('0x221e'),'filters':{'fields':_0x4cf73e('0x12d2'),'sort':_0x4cf73e('0x2aa'),'nolimit':!![],'role':_0x4cf73e('0x684')},'permissions':{'section':0xca}}],'fields':[{'title':_0x4cf73e('0x1874'),'name':'agent','type':'apiselect','values':_0x4cf73e('0x25ea'),'value':_0x4cf73e('0x274e'),'option':'agent.name','required':!![],'param':0x0},{'title':_0x4cf73e('0x1ceb'),'name':'timeout','type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x4cf73e('0x96e'),'appType':_0x4cf73e('0x96e'),'type':_0x4cf73e('0x96e'),'icon':_0x4cf73e('0x24a0'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4cf73e('0x12a6'),'name':'times','type':_0x4cf73e('0x2897'),'defaultValue':'1','values':[{'option':_0x4cf73e('0x1432'),'value':'1'},{'option':_0x4cf73e('0x768'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x4cf73e('0xa46'),'name':_0x4cf73e('0x132f'),'type':_0x4cf73e('0x19b6'),'required':!![],'param':0x1}]},{'app':'close','appType':_0x4cf73e('0xbc9'),'type':'close','icon':_0x4cf73e('0x24a0'),'interval':_0x4cf73e('0x20c3'),'isApp':!![],'fields':[{'title':_0x4cf73e('0x16d'),'name':_0x4cf73e('0x1f27'),'type':'text','required':!![],'param':0x0}]},{'app':_0x4cf73e('0x1132'),'appType':'tag','type':_0x4cf73e('0x1132'),'foreignKey':'TagId','icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x4cf73e('0x1522'),'field':{'name':_0x4cf73e('0x1132'),'key':_0x4cf73e('0x2aa')},'route':_0x4cf73e('0x1132'),'filters':{'fields':_0x4cf73e('0x12d2'),'sort':_0x4cf73e('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x4cf73e('0xe16'),'name':'tag','type':_0x4cf73e('0x1ecc'),'values':_0x4cf73e('0x1522'),'value':'tag.name','option':_0x4cf73e('0xf6b'),'required':!![],'param':0x0}]}],[_0x4cf73e('0x643')]),{'isApp':![]}),_0x11d9a4[_0x4cf73e('0x134c')]={'group':{'name':'opt1','pull':_0x4cf73e('0x2080')},'animation':0x64,'sort':![]},_0x11d9a4[_0x4cf73e('0x1683')]={'group':{'name':'opt2','put':_0x4cf73e('0x2003')},'animation':0x64,'onAdd':function(_0x2d649d){const _0x5c4795=_0x4cf73e;_0x262c7c(_0x2d649d,_0x2d649d[_0x5c4795('0xf0c')]);},'onSort':function(){_0x208a8d();}},_0x11d9a4[_0x4cf73e('0x161d')]=_0x37e89c,_0x11d9a4['deleteConfirm']=_0xbfcdf3,_0x11d9a4[_0x4cf73e('0xd6f')]=_0x3d8677,_0x11d9a4[_0x4cf73e('0x1228')]=_0x262c7c,_0x11d9a4[_0x4cf73e('0x1374')]=_0x192bdb,_0x11d9a4['deleteMailAccountApp']=_0x2fd582,_0x11d9a4[_0x4cf73e('0xf36')]=_0x25edeb,_0x11d9a4[_0x4cf73e('0x107b')]=_0x208a8d,_0x11d9a4[_0x4cf73e('0x1a0d')]=_0x1d2f99;function _0x37e89c(_0x533c4d,_0x42bd8){const _0x18ba72=_0x4cf73e;_0x11d9a4[_0x18ba72('0x127b')]=_0x533c4d,_0x11d9a4[_0x18ba72('0x103e')]=typeof _0x42bd8!==_0x18ba72('0xfad')?_0x42bd8:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x11d9a4[_0x18ba72('0x1683')]['disabled']=!_0x11d9a4[_0x18ba72('0x103e')][_0x18ba72('0x1d34')]?!![]:![],_0x11d9a4[_0x18ba72('0x826')]['id']=_0x533c4d['id'],_0x11d9a4[_0x18ba72('0x826')][_0x18ba72('0xb08')]=!![],_0x11d9a4[_0x18ba72('0x826')][_0x18ba72('0x24c6')]=!![],_0x11d9a4[_0x18ba72('0xd6f')](),_0x11d9a4[_0x18ba72('0x1a0d')]();}function _0xbfcdf3(_0xa49ac4,_0x1eab01,_0x69bad1){const _0x32278b=_0x4cf73e,_0x13200e=_0x2f8b54[_0x32278b('0x1121')]()[_0x32278b('0x24d3')](_0x32278b('0x804'))[_0x32278b('0x211f')](''+_0xa49ac4[_0x32278b('0x643')]+_0x32278b('0x1d23')+_0x32278b('0xe9f'))[_0x32278b('0x2095')]('delete\x20application')[_0x32278b('0x104f')](_0x69bad1)['ok']('OK')[_0x32278b('0x1d47')](_0x32278b('0x28a0'));_0x2f8b54[_0x32278b('0x28e2')](_0x13200e)[_0x32278b('0x17e7')](function(){const _0x52afac=_0x32278b;_0x11d9a4[_0x52afac('0x1143')][_0x52afac('0x2319')]['splice'](_0x1eab01,0x1),_0x208a8d();},function(){const _0x29712c=_0x32278b;console[_0x29712c('0x1d63')]('CANCEL');});}function _0x262c7c(_0x38280a,_0xa48f74){const _0x1a8576=_0x4cf73e;if(_0x11d9a4[_0x1a8576('0x1143')][_0x1a8576('0x2319')][_0x1a8576('0x1f73')]){const _0x40bc20=_0x11d9a4[_0x1a8576('0x1143')][_0x1a8576('0x2319')][_0xa48f74]?_0x11d9a4['mailAccountApps'][_0x1a8576('0x2319')][_0xa48f74]:_0x11d9a4[_0x1a8576('0x1143')][_0x1a8576('0x2319')][0x0],_0x543838=(_0x40bc20['appType']||_0x40bc20[_0x1a8576('0x643')])[_0x1a8576('0x19b')]();_0x2f8b54['show']({'controller':'EditMailAccountApp'+_0x543838+'DialogController','controllerAs':'vm','templateUrl':_0x15f64d[_0x543838],'parent':angular[_0x1a8576('0x1ce1')](_0x4afb4e[_0x1a8576('0x13aa')]),'targetEvent':_0x38280a,'clickOutsideToClose':!![],'locals':{'mailAccountApp':_0x40bc20,'mailAccount':_0x11d9a4[_0x1a8576('0x127b')],'crudPermissions':_0x11d9a4[_0x1a8576('0x103e')]}})[_0x1a8576('0x17e7')](function(_0x1b5861){const _0x1329f8=_0x1a8576;_0x1b5861&&(_0x1b5861['id']?_0x11d9a4[_0x1329f8('0x1143')][_0x1329f8('0x2319')][_0xa48f74]=_0x1b5861:_0x11d9a4[_0x1329f8('0x1143')][_0x1329f8('0x2319')][_0x1329f8('0x2335')](_0xa48f74,0x0,_0x1b5861),_0x208a8d());})[_0x1a8576('0x16df')](function(_0x1b5330){const _0x501ea1=_0x1a8576;_0x1b5330&&_0x251031[_0x501ea1('0x1db9')]({'title':_0x1b5330[_0x501ea1('0x11c5')]?_0x501ea1('0x14f7')+_0x1b5330['status']+_0x501ea1('0x16e4')+_0x1b5330['statusText']:_0x501ea1('0x2514'),'msg':_0x1b5330[_0x501ea1('0x1457')]?JSON[_0x501ea1('0x678')](_0x1b5330['data']):_0x1b5330[_0x501ea1('0x9b6')]()});});}}function _0x192bdb(_0x206780,_0x12acef){const _0x454211=_0x4cf73e;if(_0x11d9a4['mailAccountApps']['rows'][_0x454211('0x1f73')]){const _0x4223e4=_0x11d9a4[_0x454211('0x1143')]['rows'][_0x12acef]?_0x11d9a4[_0x454211('0x1143')][_0x454211('0x2319')][_0x12acef]:_0x11d9a4[_0x454211('0x1143')][_0x454211('0x2319')][0x0];_0x2f8b54[_0x454211('0x28e2')]({'controller':_0x454211('0x785'),'controllerAs':'vm','templateUrl':_0x52acf8,'parent':angular[_0x454211('0x1ce1')](_0x4afb4e[_0x454211('0x13aa')]),'targetEvent':_0x206780,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x4223e4[_0x454211('0x231f')],'IntervalId':_0x4223e4[_0x454211('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0x11d9a4[_0x454211('0x103e')]}})[_0x454211('0x17e7')](function(_0x5ba2d2){const _0x5ec3fa=_0x454211;_0x5ba2d2&&(_0x4223e4[_0x5ec3fa('0x231f')]=_0x5ba2d2[_0x5ec3fa('0x231f')]||_0x5ec3fa('0x20c3'),_0x4223e4[_0x5ec3fa('0x24a9')]=_0x5ba2d2[_0x5ec3fa('0x24a9')]||null,_0x208a8d());});}}function _0x208a8d(){const _0x8838d8=_0x4cf73e;let _0x15d82d=0x1,_0x2fe093=[];for(let _0x1c68dc=0x0;_0x1c68dc<_0x11d9a4[_0x8838d8('0x1143')][_0x8838d8('0x2319')][_0x8838d8('0x1f73')];_0x1c68dc++){const _0x4cd2d8=_0x11d9a4['mailAccountApps'][_0x8838d8('0x2319')][_0x1c68dc],_0x5642ed=[],_0x34d0ae=[];_0x4cd2d8['intervals']=_0x4cd2d8[_0x8838d8('0x231f')]!==_0x8838d8('0x20c3')?[_0x4cd2d8['interval']]:_0x4cd2d8[_0x8838d8('0x24a9')]?_0x49cbdd()[_0x8838d8('0x787')](_0x49cbdd()[_0x8838d8('0x2483')](_0x11d9a4[_0x8838d8('0x1be1')][_0x8838d8('0x2319')],{'IntervalId':_0x4cd2d8[_0x8838d8('0x24a9')]}),_0x8838d8('0x231f')):[],_0x4cd2d8[_0x8838d8('0x17b3')]=_0x11d9a4[_0x8838d8('0x127b')][_0x8838d8('0x17b3')],_0x4cd2d8['exten']=_0x11d9a4['mailAccount'][_0x8838d8('0xee9')],_0x4cd2d8[_0x8838d8('0x412')]&&(_0x4cd2d8[_0x8838d8('0x412')]=_0x4cd2d8['type']['toLowerCase']()),_0x4cd2d8['priority']=_0x5642ed[_0x8838d8('0x1f73')]?_0x49cbdd()[_0x8838d8('0x5e8')](_0x5642ed)[_0x8838d8('0x1a6d')]+0x1:_0x15d82d,_0x15d82d=(_0x34d0ae['length']?_0x49cbdd()[_0x8838d8('0x5e8')](_0x34d0ae)['priority']:_0x4cd2d8[_0x8838d8('0x1a6d')])+0x1,_0x2fe093=_0x49cbdd()['concat'](_0x2fe093,_0x5642ed,[_0x4cd2d8],_0x34d0ae);}_0x1929cd[_0x8838d8('0x127b')][_0x8838d8('0x55d')]({'id':_0x11d9a4[_0x8838d8('0x127b')]['id']},_0x49cbdd()[_0x8838d8('0x1be3')](_0x2fe093,'priority'))['$promise'][_0x8838d8('0x17e7')](function(_0xc60a5c){const _0x443e8e=_0x8838d8;_0x11d9a4[_0x443e8e('0x1143')][_0x443e8e('0x2319')]=_0xc60a5c[_0x443e8e('0x2319')];})[_0x8838d8('0x16df')](function(_0x186044){const _0x1f3168=_0x8838d8;console[_0x1f3168('0x1db9')](_0x186044);});}function _0x42a405(_0x2af35b){_0x11d9a4['mailAccountApps']=_0x2af35b||{'count':0x0,'rows':[]};}function _0x1d2f99(){const _0x6b2181=_0x4cf73e;return _0x1929cd[_0x6b2181('0x231f')][_0x6b2181('0x1c53')]({'fields':'id,interval,IntervalId'})[_0x6b2181('0x1af5')]['then'](function(_0x47b994){const _0x4fbfbf=_0x6b2181;_0x11d9a4[_0x4fbfbf('0x1be1')]=_0x47b994;})[_0x6b2181('0x16df')](function(_0x593523){const _0x22e5ec=_0x6b2181;console[_0x22e5ec('0x1db9')](_0x593523);});}function _0x3d8677(){const _0x46cf6f=_0x4cf73e;_0x11d9a4[_0x46cf6f('0x1691')]=_0x1929cd[_0x46cf6f('0x127b')][_0x46cf6f('0xd3e')](_0x11d9a4[_0x46cf6f('0x826')],_0x42a405)['$promise'];}function _0x2fd582(_0x448126){const _0xc5dbae=_0x4cf73e;_0x49cbdd()[_0xc5dbae('0x5f3')](_0x11d9a4[_0xc5dbae('0x1143')][_0xc5dbae('0x2319')],{'id':_0x448126['id']}),_0x208a8d(),_0x251031[_0xc5dbae('0x130d')]({'title':_0xc5dbae('0x22bd'),'msg':_0x448126['app']?_0x448126['app']+_0xc5dbae('0x149f'):''});}function _0x25edeb(_0x5db7dd){const _0x4eb41a=_0x4cf73e,_0x1a7e71=_0x2f8b54[_0x4eb41a('0x1121')]()[_0x4eb41a('0x24d3')](_0x4eb41a('0x272a'))[_0x4eb41a('0x211f')](''+_0x11d9a4[_0x4eb41a('0xe5f')][_0x4eb41a('0x1f73')]+_0x4eb41a('0x145a')+_0x4eb41a('0xe9f'))['ariaLabel'](_0x4eb41a('0x362'))[_0x4eb41a('0x104f')](_0x5db7dd)['ok']('OK')[_0x4eb41a('0x1d47')](_0x4eb41a('0x28a0'));_0x2f8b54[_0x4eb41a('0x28e2')](_0x1a7e71)[_0x4eb41a('0x17e7')](function(){const _0x4bd406=_0x4eb41a;_0x11d9a4[_0x4bd406('0xe5f')][_0x4bd406('0xccd')](function(_0x30dcf2){const _0x9c49ee=_0x4bd406;_0x49cbdd()[_0x9c49ee('0x5f3')](_0x11d9a4[_0x9c49ee('0x1143')][_0x9c49ee('0x2319')],{'id':_0x30dcf2['id']});}),_0x11d9a4[_0x4bd406('0xe5f')]=[],_0x208a8d();});}}const _0x3e6310=_0x928aa0;_0x102753[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x127b'),_0x4376d8('0x3d9'),_0x4376d8('0x20c8'),_0x4376d8('0x28da'),'Auth','crudPermissions'];function _0x102753(_0x189291,_0x2532aa,_0x1b8562,_0x4ae95d,_0x128040,_0x9016ec,_0x4e4fcd,_0x5e9a41,_0xd2958d,_0xca5724){const _0x234281=_0x4376d8,_0x5b9e3b=this;_0x5b9e3b[_0x234281('0x197c')]=_0xd2958d['getCurrentUser'](),_0x5b9e3b[_0x234281('0x127b')]=_0x128040,_0x5b9e3b[_0x234281('0x103e')]=_0xca5724,_0x5b9e3b[_0x234281('0x20c8')]=_0x4e4fcd,_0x5b9e3b[_0x234281('0x532')]=[],_0x5b9e3b[_0x234281('0x2722')]=[],_0x5b9e3b[_0x234281('0xc14')]=[],_0x5b9e3b['startingAllowedItems']=[],_0x5b9e3b[_0x234281('0x1824')]=[],_0x5b9e3b['pendingChanges']=![],_0x5b9e3b[_0x234281('0xdf0')]=_0x529961,_0x5b9e3b[_0x234281('0x257a')]=_0xd33c5e,_0x5b9e3b[_0x234281('0x136e')]=_0xd21834,_0x5b9e3b[_0x234281('0x26f4')]={'readOnly':!_0x5b9e3b[_0x234281('0x103e')][_0x234281('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x234281('0x2aa'),'line1':_0x234281('0xea6'),'line2':[_0x234281('0x2aa'),_0x234281('0xe3e')],'line3':'','labelAll':_0x5e9a41['instant'](_0x234281('0x18b0')),'labelSelected':_0x5e9a41[_0x234281('0x1acc')]('MAIL.SELECTED_AGENTS'),'transferCallback':function(){const _0xc910d8=_0x234281,_0x19f7e4=_0x49cbdd()[_0xc910d8('0x137')](_0x5b9e3b[_0xc910d8('0x1824')],_0x5b9e3b['selectedItems'],'id');_0x5b9e3b[_0xc910d8('0x25dc')]=_0x49cbdd()['isEmpty'](_0x19f7e4)?![]:!![];}};function _0x529961(){const _0x5be6ad=_0x234281;return _0xd2958d[_0x5be6ad('0x1ba2')](_0x5be6ad('0x20bf'))?_0x282bb9()[_0x5be6ad('0x16df')](function(_0x332844){const _0x31e43a=_0x5be6ad;_0x1b8562['error']({'title':_0x332844[_0x31e43a('0x11c5')]?_0x31e43a('0x14f7')+_0x332844[_0x31e43a('0x11c5')]+_0x31e43a('0x16e4')+_0x332844[_0x31e43a('0x1833')]:_0x31e43a('0x23e0'),'msg':_0x332844['status']?JSON[_0x31e43a('0x678')](_0x332844['data']):_0x332844[_0x31e43a('0x9b6')]()});}):_0x2768cd()[_0x5be6ad('0x17e7')](function(_0x13a4f9){const _0x1605db=_0x5be6ad;return _0x5b9e3b[_0x1605db('0x16f8')]=_0x13a4f9,_0x282bb9();})[_0x5be6ad('0x16df')](function(_0x391c8f){const _0x14f004=_0x5be6ad;_0x1b8562[_0x14f004('0x1db9')]({'title':_0x391c8f[_0x14f004('0x11c5')]?_0x14f004('0x14f7')+_0x391c8f[_0x14f004('0x11c5')]+_0x14f004('0x16e4')+_0x391c8f[_0x14f004('0x1833')]:_0x14f004('0x23e0'),'msg':_0x391c8f[_0x14f004('0x11c5')]?JSON[_0x14f004('0x678')](_0x391c8f[_0x14f004('0x1457')]):_0x391c8f[_0x14f004('0x9b6')]()});});}function _0x2768cd(){return _0x2532aa(function(_0x280f6,_0x1becc2){const _0x33d670=a0_0xd29e;_0x4ae95d[_0x33d670('0x383')]['get']({'userProfileId':_0x5b9e3b[_0x33d670('0x197c')][_0x33d670('0x1e76')],'name':'Agents'})[_0x33d670('0x1af5')][_0x33d670('0x17e7')](function(_0x812d95){const _0x22bc1b=_0x812d95&&_0x812d95['rows']?_0x812d95['rows'][0x0]:null;_0x280f6(_0x22bc1b);})['catch'](function(_0x3eee8c){_0x1becc2(_0x3eee8c);});});}function _0x282bb9(){return _0x2532aa(function(_0x518caf,_0x13dd80){const _0x3ee13e=a0_0xd29e;return _0x3354db()[_0x3ee13e('0x17e7')](function(_0x1d1797){const _0x5d580a=_0x3ee13e;return _0x5b9e3b['items']=_0x1d1797[_0x5d580a('0x2319')]?_0x1d1797[_0x5d580a('0x2319')]:[],_0xd2958d[_0x5d580a('0x1ba2')](_0x5d580a('0x20bf'))?_0x1d1797:_0x5b9e3b[_0x5d580a('0x16f8')]?_0x5b9e3b[_0x5d580a('0x16f8')]['autoAssociation']?_0x1d1797:_0xbfc226():null;})[_0x3ee13e('0x17e7')](function(_0x34a579){const _0x5e5358=_0x3ee13e,_0x1e9dc7=_0x34a579&&_0x34a579[_0x5e5358('0x2319')]?_0x34a579[_0x5e5358('0x2319')]:[];return _0x5b9e3b[_0x5e5358('0x2722')]=_0x49cbdd()[_0x5e5358('0x787')](_0x1e9dc7,function(_0x4b2ee7){const _0x91e92f=_0x5e5358;return _0x49cbdd()['find'](_0x5b9e3b['items'],{'id':_0xd2958d[_0x91e92f('0x1ba2')]('admin')||_0x5b9e3b['section']['autoAssociation']?_0x4b2ee7['id']:_0x4b2ee7[_0x91e92f('0x5db')]});}),_0x5b9e3b[_0x5e5358('0x181b')]=angular[_0x5e5358('0x14e5')](_0x5b9e3b['allowedItems']),_0x5b9e3b[_0x5e5358('0x532')][_0x5e5358('0xccd')](function(_0x3b843){const _0x20bd1d=_0x5e5358,_0x172be9=_0x49cbdd()['find'](_0x5b9e3b[_0x20bd1d('0x2722')],{'id':_0x3b843['id']});_0xd2958d[_0x20bd1d('0x1ba2')](_0x20bd1d('0x20bf'))?_0x3b843[_0x20bd1d('0xc98')]=!![]:_0x3b843[_0x20bd1d('0xc98')]=typeof _0x172be9!=='undefined'?!![]:![];}),_0x228dd7();})[_0x3ee13e('0x17e7')](function(_0x58a6cf){const _0x16983f=_0x3ee13e,_0x8383e9=_0x58a6cf&&_0x58a6cf['rows']?_0x58a6cf[_0x16983f('0x2319')]:[];_0x5b9e3b[_0x16983f('0xc14')]=_0x49cbdd()['map'](_0x8383e9,function(_0x350608){const _0xd0fd3e=_0x16983f,_0xaab949=_0x49cbdd()[_0xd0fd3e('0xe8e')](_0x5b9e3b[_0xd0fd3e('0x532')],{'id':_0x350608['id']});return _0xaab949[_0xd0fd3e('0x122c')]=_0x350608[_0xd0fd3e('0x7f2')]?_0xd0fd3e('0x973')+_0x350608['UserMailAccount'][_0xd0fd3e('0x122c')]:'',_0xaab949[_0xd0fd3e('0xe3e')]=typeof _0x350608[_0xd0fd3e('0xe3e')]!==_0xd0fd3e('0xfad')?'<'+_0x350608[_0xd0fd3e('0xe3e')]+'>':'',_0xaab949;}),_0x5b9e3b['startingSelectedItems']=angular[_0x16983f('0x14e5')](_0x5b9e3b[_0x16983f('0xc14')]),_0x5b9e3b['dualMultiselectOptions'][_0x16983f('0xc14')]=_0x5b9e3b[_0x16983f('0xc14')],_0x5b9e3b[_0x16983f('0x26f4')]['items']=_0x49cbdd()[_0x16983f('0x1ada')](_0x5b9e3b[_0x16983f('0x2722')],_0x5b9e3b[_0x16983f('0x26f4')][_0x16983f('0xc14')],'id'),_0x518caf();})['catch'](function(_0x5e64a9){_0x13dd80(_0x5e64a9);});});}function _0xbfc226(){return _0x2532aa(function(_0x553fd7,_0x27681e){const _0x555f4b=a0_0xd29e;return _0x4ae95d[_0x555f4b('0x78d')][_0x555f4b('0x1c53')]({'sectionId':_0x5b9e3b[_0x555f4b('0x16f8')]['id'],'nolimit':!![]})['$promise'][_0x555f4b('0x17e7')](function(_0x3a0a86){_0x553fd7(_0x3a0a86);})[_0x555f4b('0x16df')](function(_0x29263b){_0x27681e(_0x29263b);});});}function _0x228dd7(){return _0x2532aa(function(_0x14c41d,_0x4e30dc){const _0x53ae30=a0_0xd29e;return _0x4ae95d[_0x53ae30('0x127b')][_0x53ae30('0x1dac')]({'id':_0x5b9e3b['mailAccount']['id'],'fields':_0x53ae30('0x1152'),'nolimit':!![],'role':_0x53ae30('0x684')})[_0x53ae30('0x1af5')][_0x53ae30('0x17e7')](function(_0x21e051){_0x14c41d(_0x21e051);})[_0x53ae30('0x16df')](function(_0x1ac1dc){_0x4e30dc(_0x1ac1dc);});});}function _0x3354db(){return _0x2532aa(function(_0x4b8551,_0x19301d){const _0x5dbc0f=a0_0xd29e;return _0x4ae95d[_0x5dbc0f('0x221e')][_0x5dbc0f('0x1c53')]({'fields':_0x5dbc0f('0x1152'),'nolimit':!![],'role':_0x5dbc0f('0x684')})['$promise']['then'](function(_0x351605){_0x4b8551(_0x351605);})[_0x5dbc0f('0x16df')](function(_0x2d3a29){_0x19301d(_0x2d3a29);});});}function _0x230763(_0x27b5b7){return _0x2532aa(function(_0x5da817,_0x4f67a1){const _0x547af3=a0_0xd29e;_0x49cbdd()[_0x547af3('0x109a')](_0x27b5b7)?_0x5da817():_0x4ae95d[_0x547af3('0x127b')][_0x547af3('0x1f22')]({'id':_0x5b9e3b[_0x547af3('0x127b')]['id'],'ids':_0x49cbdd()['map'](_0x27b5b7,'id')})[_0x547af3('0x1af5')][_0x547af3('0x17e7')](function(){_0x5da817();})[_0x547af3('0x16df')](function(_0x2bd658){_0x4f67a1(_0x2bd658);});});}function _0x16471a(_0x4e91ce){return _0x2532aa(function(_0x555bec,_0x12a169){const _0x70c6f0=a0_0xd29e;_0x49cbdd()[_0x70c6f0('0x109a')](_0x4e91ce)?_0x555bec():_0x4ae95d['mailAccount'][_0x70c6f0('0x1625')]({'id':_0x5b9e3b[_0x70c6f0('0x127b')]['id'],'ids':_0x49cbdd()['map'](_0x4e91ce,'id')})['$promise'][_0x70c6f0('0x17e7')](function(){_0x555bec();})[_0x70c6f0('0x16df')](function(_0x5ec6ce){_0x12a169(_0x5ec6ce);});});}function _0xd33c5e(){const _0x1adc39=_0x234281,_0x5c63d5=_0x49cbdd()['differenceBy'](_0x5b9e3b[_0x1adc39('0x1824')],_0x5b9e3b[_0x1adc39('0xc14')],'id'),_0x367c34=_0x49cbdd()['differenceBy'](_0x5b9e3b[_0x1adc39('0xc14')],_0x5b9e3b[_0x1adc39('0x1824')],'id');return _0x16471a(_0x5c63d5)[_0x1adc39('0x17e7')](function(){return _0x230763(_0x367c34);})[_0x1adc39('0x17e7')](function(){const _0x13fc5b=_0x1adc39;_0x5b9e3b[_0x13fc5b('0x25dc')]=![],_0x5b9e3b['startingAllowedItems']=angular['copy'](_0x5b9e3b[_0x13fc5b('0x2722')]),_0x5b9e3b[_0x13fc5b('0x1824')]=angular[_0x13fc5b('0x14e5')](_0x5b9e3b[_0x13fc5b('0xc14')]),_0x1b8562[_0x13fc5b('0x130d')]({'title':_0x13fc5b('0x9d1'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x1adc39('0x16df')](function(_0x8658be){const _0xb02b47=_0x1adc39;_0x1b8562[_0xb02b47('0x1db9')]({'title':_0x8658be[_0xb02b47('0x11c5')]?_0xb02b47('0x14f7')+_0x8658be[_0xb02b47('0x11c5')]+'\x20-\x20'+_0x8658be[_0xb02b47('0x1833')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x8658be[_0xb02b47('0x11c5')]?JSON[_0xb02b47('0x678')](_0x8658be['data']):_0x8658be[_0xb02b47('0x9b6')]()});});}function _0xd21834(){const _0x3298e0=_0x234281;_0x189291[_0x3298e0('0x212a')]();}}const _0x458b34=_0x102753;_0x33309f[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x7ae'),_0x4376d8('0x127b'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x33309f(_0x48403f,_0x2857d4,_0x58e7f6,_0x478ea8,_0x4bd5a0,_0x52be0b,_0x38a46a,_0x199147){const _0x38c5cc=_0x4376d8,_0x6e0182=this;_0x6e0182[_0x38c5cc('0x197c')]=_0x38a46a[_0x38c5cc('0x2831')](),_0x6e0182[_0x38c5cc('0x73e')]=[],_0x6e0182['title']=_0x38c5cc('0x2630')+(_0x478ea8['appType']||_0x478ea8[_0x38c5cc('0x643')])[_0x38c5cc('0x14e2')](),_0x6e0182['agent']=angular[_0x38c5cc('0x14e5')](_0x478ea8),_0x6e0182[_0x38c5cc('0x103e')]=_0x199147,_0x6e0182['hasModulePermissions']={};if(_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2077')])switch(_0x6e0182['agent'][_0x38c5cc('0x1c54')]?_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x1c54')]['toLowerCase']():_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x643')][_0x38c5cc('0x19b')]()){case _0x38c5cc('0x8fa'):break;case _0x38c5cc('0x2526'):{const _0x29c6a3=_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2077')]['split'](',');_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0xdb5')]=_0x29c6a3[0x0],_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x3e1')]=_0x29c6a3[0x1],_0x6e0182[_0x38c5cc('0x684')]['welcomemessage']=_0x29c6a3['slice'](0x2,_0x29c6a3[_0x38c5cc('0x1f73')])[_0x38c5cc('0x1eba')](',');}break;case _0x38c5cc('0x22ac'):{const _0x131564=_0x6e0182[_0x38c5cc('0x684')]['appdata'][_0x38c5cc('0x2007')](',');_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x28ab')]=_0x131564[0x0],_0x6e0182[_0x38c5cc('0x684')]['clientEmail']=_0x131564[0x1],_0x6e0182[_0x38c5cc('0x684')]['privateKey']=_0x131564[0x2],_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x3e1')]=_0x131564[0x3],_0x6e0182['agent'][_0x38c5cc('0x1083')]=_0x131564[_0x38c5cc('0x275f')](0x4,_0x131564[_0x38c5cc('0x1f73')])['join'](',');}break;case _0x38c5cc('0x16a9'):{const _0x2fc06e=_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2077')][_0x38c5cc('0x2007')](',');_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x1452')]=_0x2fc06e[0x0],_0x6e0182['agent'][_0x38c5cc('0x1a62')]=_0x2fc06e[0x1],_0x6e0182['agent'][_0x38c5cc('0x1dcf')]=_0x2fc06e[0x2],_0x6e0182[_0x38c5cc('0x684')]['botname']=_0x2fc06e[0x3],_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x1083')]=_0x2fc06e[_0x38c5cc('0x275f')](0x4,_0x2fc06e[_0x38c5cc('0x1f73')])['join'](',');}break;case _0x38c5cc('0x96e'):{const _0x1c16a1=_0x6e0182['agent'][_0x38c5cc('0x2077')][_0x38c5cc('0x2007')](',');_0x6e0182[_0x38c5cc('0x684')]['times']=isNaN(_0x1c16a1[0x0])?_0x1c16a1[0x0]:parseInt(_0x1c16a1[0x0],0xa),_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x132f')]=_0x1c16a1[_0x38c5cc('0x275f')](0x1,_0x1c16a1['length'])[_0x38c5cc('0x1eba')](',');}break;case _0x38c5cc('0x1603'):_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x132f')]=_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2077')];break;case'set':_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2aa')]=_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2077')]['split']('=')[0x0],_0x6e0182[_0x38c5cc('0x684')]['value']=_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2077')][_0x38c5cc('0x2007')]('=')[0x1];break;case'agi':_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x87c')]=_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2077')];break;default:{const _0x443405=_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2077')][_0x38c5cc('0x2007')](',');_0x6e0182['agent'][_0x38c5cc('0x684')]=_0x49cbdd()[_0x38c5cc('0x109a')](_0x443405[0x0])?_0x443405[0x0]:isNaN(_0x443405[0x0])?_0x443405[0x0]:parseInt(_0x443405[0x0],0xa),_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0xd2f')]=_0x49cbdd()[_0x38c5cc('0x109a')](_0x443405[0x1])?_0x443405[0x1]:isNaN(_0x443405[0x1])?_0x443405[0x1]:parseInt(_0x443405[0x1],0xa);}break;}else _0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0xd2f')]=0x1e;_0x6e0182[_0x38c5cc('0x684')]['type']&&_0x6e0182['agent'][_0x38c5cc('0x412')][_0x38c5cc('0x19b')]()==='outbound'&&_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x1c54')][_0x38c5cc('0x19b')]()===_0x38c5cc('0x1711')&&(_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x11d4')]=_0x6e0182[_0x38c5cc('0x684')][_0x38c5cc('0x2154')]?_0x6e0182['agent'][_0x38c5cc('0x2154')][_0x38c5cc('0x2007')]('$')[0x0]:undefined,_0x6e0182[_0x38c5cc('0x684')]['callerId']=_0x6e0182['agent']['callerID']?'CALLERID(all)='+_0x6e0182[_0x38c5cc('0x684')]['callerID']:undefined);_0x6e0182[_0x38c5cc('0x10db')]=_0x1d8bc9,_0x6e0182[_0x38c5cc('0x136e')]=_0x4ca5e0,_0x38a46a[_0x38c5cc('0x1ba2')](_0x38c5cc('0x20bf'))?_0x52be0b[_0x38c5cc('0x221e')][_0x38c5cc('0x1c53')]({'fields':_0x38c5cc('0x12d2'),'sort':'name','nolimit':'true','role':_0x38c5cc('0x684')})['$promise'][_0x38c5cc('0x17e7')](function(_0x2e5ae9){const _0x2888ea=_0x38c5cc;_0x6e0182[_0x2888ea('0x25ea')]=_0x2e5ae9['rows']||[];})[_0x38c5cc('0x16df')](function(_0x189998){const _0x12a247=_0x38c5cc;_0x58e7f6['error']({'title':_0x189998[_0x12a247('0x11c5')]?'API:'+_0x189998['status']+_0x12a247('0x16e4')+_0x189998[_0x12a247('0x1833')]:_0x12a247('0x23e0'),'msg':_0x189998[_0x12a247('0x1457')]?JSON[_0x12a247('0x678')](_0x189998[_0x12a247('0x1457')]):_0x189998[_0x12a247('0x9b6')]()});}):_0x52be0b['user'][_0x38c5cc('0x1c53')]({'fields':_0x38c5cc('0x12d2'),'sort':_0x38c5cc('0x2aa'),'nolimit':_0x38c5cc('0xe34'),'role':_0x38c5cc('0x684')})[_0x38c5cc('0x1af5')][_0x38c5cc('0x17e7')](function(_0x32fc8a){const _0x2cecaf=_0x38c5cc;_0x6e0182[_0x2cecaf('0x25ea')]=_0x32fc8a[_0x2cecaf('0x2319')]||[];})[_0x38c5cc('0x17e7')](function(){const _0x226b16=_0x38c5cc;return _0x52be0b[_0x226b16('0x383')]['get']({'userProfileId':_0x6e0182[_0x226b16('0x197c')][_0x226b16('0x1e76')],'sectionId':0xca})[_0x226b16('0x1af5')];})[_0x38c5cc('0x17e7')](function(_0x74fc29){const _0x46e3fb=_0x38c5cc,_0x467093=_0x74fc29&&_0x74fc29[_0x46e3fb('0x2319')]?_0x74fc29[_0x46e3fb('0x2319')][0x0]:null;if(!_0x467093){const _0x1d7b83=[];let _0x496fe9=null;_0x6e0182[_0x46e3fb('0x684')]&&(_0x496fe9=_0x49cbdd()[_0x46e3fb('0xe8e')](_0x6e0182[_0x46e3fb('0x25ea')],{'name':_0x6e0182['agent'][_0x46e3fb('0x684')]}));for(let _0x25e853=0x0;_0x25e853<_0x6e0182[_0x46e3fb('0x25ea')][_0x46e3fb('0x1f73')];_0x25e853++){_0x496fe9&&_0x6e0182[_0x46e3fb('0x25ea')][_0x25e853]['id']===_0x496fe9['id']&&(_0x6e0182[_0x46e3fb('0x25ea')][_0x25e853]['canSelect']=![],_0x1d7b83[_0x46e3fb('0x269f')](_0x6e0182['agents'][_0x25e853]));}_0x6e0182[_0x46e3fb('0x25ea')]=_0x1d7b83;}else{if(!_0x467093['autoAssociation'])return _0x52be0b['userProfileResource'][_0x46e3fb('0x1c53')]({'sectionId':_0x467093['id']})[_0x46e3fb('0x1af5')][_0x46e3fb('0x17e7')](function(_0xf591b6){const _0x11dfce=_0x46e3fb,_0x14a7ad=_0x49cbdd()[_0x11dfce('0x787')](_0xf591b6[_0x11dfce('0x2319')],function(_0x5b7683){const _0x2cb768=_0x11dfce;return _0x49cbdd()[_0x2cb768('0xe8e')](_0x6e0182[_0x2cb768('0x25ea')],{'id':_0x5b7683[_0x2cb768('0x5db')]});});let _0x25c408=null;_0x6e0182[_0x11dfce('0x684')]&&(_0x25c408=_0x49cbdd()[_0x11dfce('0xe8e')](_0x6e0182['agents'],{'name':_0x6e0182[_0x11dfce('0x684')][_0x11dfce('0x684')]}));if(_0x25c408&&!_0x49cbdd()[_0x11dfce('0x26f8')](_0x14a7ad,['id',_0x25c408['id']])){const _0x5ded4d=_0x49cbdd()[_0x11dfce('0xe8e')](_0x6e0182[_0x11dfce('0x25ea')],{'id':_0x25c408['id']});_0x5ded4d[_0x11dfce('0xe5c')]=![],_0x14a7ad[_0x11dfce('0x269f')](_0x5ded4d);}_0x6e0182[_0x11dfce('0x25ea')]=_0x14a7ad;});}})[_0x38c5cc('0x16df')](function(_0x29275b){const _0x55ef3b=_0x38c5cc;_0x58e7f6[_0x55ef3b('0x1db9')]({'title':_0x29275b[_0x55ef3b('0x11c5')]?'API:'+_0x29275b[_0x55ef3b('0x11c5')]+'\x20-\x20'+_0x29275b['statusText']:_0x55ef3b('0xa37'),'msg':_0x29275b[_0x55ef3b('0x1457')]?JSON[_0x55ef3b('0x678')](_0x29275b['data']):_0x29275b[_0x55ef3b('0x9b6')]()});});function _0x1d8bc9(){const _0x640525=_0x38c5cc;_0x6e0182[_0x640525('0x73e')]=[];const _0x2277b7=[];_0x6e0182[_0x640525('0x684')][_0x640525('0x412')]&&_0x6e0182['agent'][_0x640525('0x412')][_0x640525('0x19b')]()===_0x640525('0x1ade')&&_0x6e0182[_0x640525('0x684')][_0x640525('0x1c54')]===_0x640525('0xbdc')&&(_0x6e0182[_0x640525('0x684')][_0x640525('0x2154')]=_0x4bd5a0[_0x640525('0x12af')]?(_0x6e0182['agent'][_0x640525('0x11d4')]||'')+_0x640525('0x2265')+_0x4bd5a0[_0x640525('0x12af')]+'}':(_0x6e0182[_0x640525('0x684')][_0x640525('0x11d4')]||'')+_0x640525('0x150e'),_0x4bd5a0[_0x640525('0x287')]!==_0x640525('0x7ee')?_0x6e0182[_0x640525('0x684')][_0x640525('0x19')][_0x640525('0x2567')](_0x640525('0xa22'))<0x0&&(_0x6e0182['agent']['options']+=_0x640525('0xa22')):_0x6e0182[_0x640525('0x684')]['options']=_0x6e0182[_0x640525('0x684')]['options'][_0x640525('0x737')](_0x640525('0xa22'),''));const _0x21f28c=_0x49cbdd()[_0x640525('0xe8e')](_0x6e0182[_0x640525('0x25ea')],{'name':_0x6e0182[_0x640525('0x684')][_0x640525('0x684')]});_0x21f28c&&(_0x6e0182[_0x640525('0x684')][_0x640525('0x5e5')]=_0x21f28c['id']);if(_0x6e0182[_0x640525('0x684')][_0x640525('0x1c54')]&&_0x6e0182[_0x640525('0x684')][_0x640525('0x1c54')]===_0x640525('0x8fa')){}else switch((_0x6e0182[_0x640525('0x684')][_0x640525('0x643')]||_0x6e0182[_0x640525('0x684')][_0x640525('0x1c54')])[_0x640525('0x19b')]()){case _0x640525('0xf2e'):_0x6e0182['agent'][_0x640525('0x2077')]=_0x6e0182[_0x640525('0x684')][_0x640525('0x2aa')]+'='+_0x6e0182[_0x640525('0x684')][_0x640525('0x175b')];break;case'custom':break;default:_0x2277b7[0x0]=_0x6e0182[_0x640525('0x684')][_0x640525('0x684')],_0x2277b7[0x1]=_0x6e0182[_0x640525('0x684')][_0x640525('0xd2f')],_0x6e0182[_0x640525('0x684')]['appdata']=_0x2277b7['join'](',');}_0x4ca5e0(_0x6e0182[_0x640525('0x684')]);}function _0x4ca5e0(_0x4f0d48){_0x48403f['hide'](_0x4f0d48);}}const _0xe28b6b=_0x33309f;_0x33777f[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x7ae'),_0x4376d8('0x127b'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x33777f(_0x2322a7,_0x1a8bb8,_0x48c3cd,_0x540106,_0x17fbd6,_0x84d218,_0x33ca5d,_0x3cc266){const _0x3d5c8e=_0x4376d8,_0x1c33ef=this;_0x1c33ef[_0x3d5c8e('0x197c')]=_0x33ca5d[_0x3d5c8e('0x2831')](),_0x1c33ef[_0x3d5c8e('0x73e')]=[],_0x1c33ef['title']='MAIL.EDIT_'+(_0x540106[_0x3d5c8e('0x1c54')]||_0x540106[_0x3d5c8e('0x643')])[_0x3d5c8e('0x14e2')](),_0x1c33ef[_0x3d5c8e('0x96e')]=angular[_0x3d5c8e('0x14e5')](_0x540106),_0x1c33ef['crudPermissions']=_0x3cc266,_0x1c33ef['hasModulePermissions']={};if(_0x1c33ef['autoreply']['appdata'])switch(_0x1c33ef[_0x3d5c8e('0x96e')]['appType']?_0x1c33ef[_0x3d5c8e('0x96e')]['appType'][_0x3d5c8e('0x19b')]():_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x643')]['toLowerCase']()){case _0x3d5c8e('0x8fa'):break;case _0x3d5c8e('0x2526'):{const _0x51145e=_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x2077')][_0x3d5c8e('0x2007')](',');_0x1c33ef['autoreply'][_0x3d5c8e('0xdb5')]=_0x51145e[0x0],_0x1c33ef['autoreply'][_0x3d5c8e('0x3e1')]=_0x51145e[0x1],_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x1083')]=_0x51145e['slice'](0x2,_0x51145e[_0x3d5c8e('0x1f73')])['join'](',');}break;case'dialogflowv2':{const _0x373250=_0x1c33ef['autoreply'][_0x3d5c8e('0x2077')]['split'](',');_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x28ab')]=_0x373250[0x0],_0x1c33ef[_0x3d5c8e('0x96e')]['clientEmail']=_0x373250[0x1],_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x1bc2')]=_0x373250[0x2],_0x1c33ef['autoreply'][_0x3d5c8e('0x3e1')]=_0x373250[0x3],_0x1c33ef['autoreply'][_0x3d5c8e('0x1083')]=_0x373250[_0x3d5c8e('0x275f')](0x4,_0x373250[_0x3d5c8e('0x1f73')])['join'](',');}break;case _0x3d5c8e('0x16a9'):{const _0x53997d=_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x2077')]['split'](',');_0x1c33ef[_0x3d5c8e('0x96e')]['accesskeyid']=_0x53997d[0x0],_0x1c33ef[_0x3d5c8e('0x96e')]['secretaccesskey']=_0x53997d[0x1],_0x1c33ef['autoreply']['lexregion']=_0x53997d[0x2],_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x4a')]=_0x53997d[0x3],_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x1083')]=_0x53997d[_0x3d5c8e('0x275f')](0x4,_0x53997d[_0x3d5c8e('0x1f73')])['join'](',');}break;case _0x3d5c8e('0x96e'):{const _0x2dc5b0=_0x1c33ef[_0x3d5c8e('0x96e')]['appdata'][_0x3d5c8e('0x2007')](',');_0x1c33ef[_0x3d5c8e('0x96e')]['times']=isNaN(_0x2dc5b0[0x0])?_0x2dc5b0[0x0]:parseInt(_0x2dc5b0[0x0],0xa),_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x132f')]=_0x2dc5b0[_0x3d5c8e('0x275f')](0x1,_0x2dc5b0['length'])[_0x3d5c8e('0x1eba')](',');}break;case _0x3d5c8e('0x1603'):_0x1c33ef['autoreply'][_0x3d5c8e('0x132f')]=_0x1c33ef['autoreply']['appdata'];break;case _0x3d5c8e('0xf2e'):_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x2aa')]=_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x2077')]['split']('=')[0x0],_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x175b')]=_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x2077')][_0x3d5c8e('0x2007')]('=')[0x1];break;case _0x3d5c8e('0x17c6'):_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x87c')]=_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x2077')];break;default:{const _0x1de621=_0x1c33ef['autoreply'][_0x3d5c8e('0x2077')][_0x3d5c8e('0x2007')](',');_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x12a6')]=_0x49cbdd()[_0x3d5c8e('0x109a')](_0x1de621[0x0])?_0x1de621[0x0]:isNaN(_0x1de621[0x0])?_0x1de621[0x0]:parseInt(_0x1de621[0x0],0xa),_0x1c33ef['autoreply'][_0x3d5c8e('0x132f')]=_0x49cbdd()[_0x3d5c8e('0x109a')](_0x1de621[0x1])?_0x1de621[0x1]:isNaN(_0x1de621[0x1])?_0x1de621[0x1]:parseInt(_0x1de621[0x1],0xa);}break;}else _0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x12a6')]=0x1;_0x1c33ef[_0x3d5c8e('0x96e')]['type']&&_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x412')][_0x3d5c8e('0x19b')]()===_0x3d5c8e('0x1ade')&&_0x1c33ef['autoreply'][_0x3d5c8e('0x1c54')][_0x3d5c8e('0x19b')]()===_0x3d5c8e('0x1711')&&(_0x1c33ef['autoreply'][_0x3d5c8e('0x11d4')]=_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x2154')]?_0x1c33ef[_0x3d5c8e('0x96e')]['phone'][_0x3d5c8e('0x2007')]('$')[0x0]:undefined,_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x1a8e')]=_0x1c33ef['autoreply'][_0x3d5c8e('0x17f4')]?_0x3d5c8e('0x1d28')+_0x1c33ef[_0x3d5c8e('0x96e')][_0x3d5c8e('0x17f4')]:undefined);_0x1c33ef[_0x3d5c8e('0x10db')]=_0x15b720,_0x1c33ef['closeDialog']=_0xc3840e;function _0x15b720(){const _0x35103c=_0x3d5c8e;_0x1c33ef[_0x35103c('0x73e')]=[];const _0x1d334f=[];_0x1c33ef[_0x35103c('0x96e')][_0x35103c('0x412')]&&_0x1c33ef[_0x35103c('0x96e')]['type'][_0x35103c('0x19b')]()===_0x35103c('0x1ade')&&_0x1c33ef[_0x35103c('0x96e')][_0x35103c('0x1c54')]===_0x35103c('0xbdc')&&(_0x1c33ef[_0x35103c('0x96e')][_0x35103c('0x2154')]=_0x17fbd6[_0x35103c('0x12af')]?(_0x1c33ef['autoreply']['prefix']||'')+'${EXTEN:'+_0x17fbd6[_0x35103c('0x12af')]+'}':(_0x1c33ef[_0x35103c('0x96e')]['prefix']||'')+_0x35103c('0x150e'),_0x17fbd6[_0x35103c('0x287')]!==_0x35103c('0x7ee')?_0x1c33ef['autoreply'][_0x35103c('0x19')][_0x35103c('0x2567')](_0x35103c('0xa22'))<0x0&&(_0x1c33ef['autoreply'][_0x35103c('0x19')]+='U(xcally-mixmonitor-context)'):_0x1c33ef[_0x35103c('0x96e')]['options']=_0x1c33ef[_0x35103c('0x96e')][_0x35103c('0x19')][_0x35103c('0x737')](_0x35103c('0xa22'),''));if(_0x1c33ef[_0x35103c('0x96e')][_0x35103c('0x1c54')]&&_0x1c33ef['autoreply'][_0x35103c('0x1c54')]===_0x35103c('0x8fa')){}else switch((_0x1c33ef[_0x35103c('0x96e')][_0x35103c('0x643')]||_0x1c33ef[_0x35103c('0x96e')]['appType'])[_0x35103c('0x19b')]()){case _0x35103c('0xf2e'):_0x1c33ef['autoreply'][_0x35103c('0x2077')]=_0x1c33ef[_0x35103c('0x96e')][_0x35103c('0x2aa')]+'='+_0x1c33ef['autoreply']['value'];break;case _0x35103c('0x8fa'):break;default:_0x1d334f[0x0]=_0x1c33ef[_0x35103c('0x96e')]['times'],_0x1d334f[0x1]=_0x1c33ef['autoreply'][_0x35103c('0x132f')],_0x1c33ef[_0x35103c('0x96e')][_0x35103c('0x2077')]=_0x1d334f[_0x35103c('0x1eba')](',');}_0xc3840e(_0x1c33ef['autoreply']);}function _0xc3840e(_0x2dd05d){const _0x10c758=_0x3d5c8e;_0x2322a7[_0x10c758('0x212a')](_0x2dd05d);}}const _0x4c15e9=_0x33777f;_0x18c1a4[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'mailAccountApp',_0x4376d8('0x127b'),'api','Auth',_0x4376d8('0x103e')];function _0x18c1a4(_0x17fee9,_0x166e8e,_0x418a00,_0x3439b5,_0x379c11,_0x24a183,_0x259c9a,_0x1712dd){const _0x94f97=_0x4376d8,_0x1ab75f=this;_0x1ab75f[_0x94f97('0x197c')]=_0x259c9a[_0x94f97('0x2831')](),_0x1ab75f[_0x94f97('0x73e')]=[],_0x1ab75f[_0x94f97('0x24d3')]=_0x94f97('0x2630')+(_0x3439b5[_0x94f97('0x1c54')]||_0x3439b5[_0x94f97('0x643')])[_0x94f97('0x14e2')](),_0x1ab75f['close']=angular[_0x94f97('0x14e5')](_0x3439b5),_0x1ab75f[_0x94f97('0x103e')]=_0x1712dd,_0x1ab75f[_0x94f97('0x6ee')]={};if(_0x1ab75f[_0x94f97('0xbc9')]['appdata'])switch(_0x1ab75f['close'][_0x94f97('0x1c54')]?_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x1c54')][_0x94f97('0x19b')]():_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x643')][_0x94f97('0x19b')]()){case _0x94f97('0x8fa'):break;case _0x94f97('0x2526'):{const _0x3be0ba=_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x2077')][_0x94f97('0x2007')](',');_0x1ab75f['close'][_0x94f97('0xdb5')]=_0x3be0ba[0x0],_0x1ab75f[_0x94f97('0xbc9')]['language']=_0x3be0ba[0x1],_0x1ab75f[_0x94f97('0xbc9')]['welcomemessage']=_0x3be0ba[_0x94f97('0x275f')](0x2,_0x3be0ba['length'])[_0x94f97('0x1eba')](',');}break;case _0x94f97('0x22ac'):{const _0x1a969f=_0x1ab75f['close']['appdata'][_0x94f97('0x2007')](',');_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x28ab')]=_0x1a969f[0x0],_0x1ab75f['close'][_0x94f97('0x2814')]=_0x1a969f[0x1],_0x1ab75f['close'][_0x94f97('0x1bc2')]=_0x1a969f[0x2],_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x3e1')]=_0x1a969f[0x3],_0x1ab75f['close']['welcomemessage']=_0x1a969f[_0x94f97('0x275f')](0x4,_0x1a969f[_0x94f97('0x1f73')])[_0x94f97('0x1eba')](',');}break;case _0x94f97('0x16a9'):{const _0xd2c48a=_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x2077')][_0x94f97('0x2007')](',');_0x1ab75f['close'][_0x94f97('0x1452')]=_0xd2c48a[0x0],_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x1a62')]=_0xd2c48a[0x1],_0x1ab75f['close'][_0x94f97('0x1dcf')]=_0xd2c48a[0x2],_0x1ab75f['close'][_0x94f97('0x4a')]=_0xd2c48a[0x3],_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x1083')]=_0xd2c48a[_0x94f97('0x275f')](0x4,_0xd2c48a['length'])[_0x94f97('0x1eba')](',');}break;case _0x94f97('0x96e'):{const _0x12d656=_0x1ab75f['close']['appdata'][_0x94f97('0x2007')](',');_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x12a6')]=isNaN(_0x12d656[0x0])?_0x12d656[0x0]:parseInt(_0x12d656[0x0],0xa),_0x1ab75f['close'][_0x94f97('0x132f')]=_0x12d656[_0x94f97('0x275f')](0x1,_0x12d656['length'])[_0x94f97('0x1eba')](',');}break;case _0x94f97('0x1603'):_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x132f')]=_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x2077')];break;case _0x94f97('0xf2e'):_0x1ab75f['close'][_0x94f97('0x2aa')]=_0x1ab75f['close'][_0x94f97('0x2077')][_0x94f97('0x2007')]('=')[0x0],_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x175b')]=_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x2077')]['split']('=')[0x1];break;case _0x94f97('0x17c6'):_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x87c')]=_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x2077')];break;default:{const _0x1dfe61=_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x2077')]['split'](',');_0x1ab75f['close'][_0x94f97('0x1f27')]=_0x49cbdd()[_0x94f97('0x109a')](_0x1dfe61[0x0])?_0x1dfe61[0x0]:isNaN(_0x1dfe61[0x0])?_0x1dfe61[0x0]:parseInt(_0x1dfe61[0x0],0xa);}break;}else{}_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x412')]&&_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x412')]['toLowerCase']()==='outbound'&&_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x1c54')][_0x94f97('0x19b')]()===_0x94f97('0x1711')&&(_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x11d4')]=_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x2154')]?_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x2154')]['split']('$')[0x0]:undefined,_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x1a8e')]=_0x1ab75f[_0x94f97('0xbc9')][_0x94f97('0x17f4')]?'CALLERID(all)='+_0x1ab75f['close'][_0x94f97('0x17f4')]:undefined);_0x1ab75f[_0x94f97('0x10db')]=_0x5dd3c8,_0x1ab75f[_0x94f97('0x136e')]=_0x19def5;function _0x5dd3c8(){const _0x23d67d=_0x94f97;_0x1ab75f[_0x23d67d('0x73e')]=[];const _0x5a32e=[];_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x412')]&&_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x412')][_0x23d67d('0x19b')]()==='outbound'&&_0x1ab75f['close'][_0x23d67d('0x1c54')]===_0x23d67d('0xbdc')&&(_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x2154')]=_0x379c11['cutdigits']?(_0x1ab75f[_0x23d67d('0xbc9')]['prefix']||'')+_0x23d67d('0x2265')+_0x379c11[_0x23d67d('0x12af')]+'}':(_0x1ab75f[_0x23d67d('0xbc9')]['prefix']||'')+_0x23d67d('0x150e'),_0x379c11[_0x23d67d('0x287')]!=='none'?_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x19')][_0x23d67d('0x2567')](_0x23d67d('0xa22'))<0x0&&(_0x1ab75f['close'][_0x23d67d('0x19')]+=_0x23d67d('0xa22')):_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x19')]=_0x1ab75f['close'][_0x23d67d('0x19')][_0x23d67d('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x1c54')]&&_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x1c54')]===_0x23d67d('0x8fa')){}else switch((_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x643')]||_0x1ab75f['close'][_0x23d67d('0x1c54')])[_0x23d67d('0x19b')]()){case _0x23d67d('0xf2e'):_0x1ab75f[_0x23d67d('0xbc9')]['appdata']=_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x2aa')]+'='+_0x1ab75f['close'][_0x23d67d('0x175b')];break;case'custom':break;default:_0x5a32e[0x0]=_0x1ab75f[_0x23d67d('0xbc9')]['disposition'],_0x1ab75f[_0x23d67d('0xbc9')][_0x23d67d('0x2077')]=_0x5a32e[_0x23d67d('0x1eba')](',');}_0x19def5(_0x1ab75f[_0x23d67d('0xbc9')]);}function _0x19def5(_0x33f676){const _0x51014d=_0x94f97;_0x17fee9[_0x51014d('0x212a')](_0x33f676);}}const _0x51956f=_0x18c1a4;_0x307da4[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x7ae'),_0x4376d8('0x127b'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x307da4(_0x3757d4,_0xa8784e,_0x304cc2,_0x41d43a,_0x764886,_0x474075,_0x26af2b,_0x41cf39){const _0x219fd3=_0x4376d8,_0x36d7e1=this;_0x36d7e1[_0x219fd3('0x197c')]=_0x26af2b[_0x219fd3('0x2831')](),_0x36d7e1[_0x219fd3('0x73e')]=[],_0x36d7e1['title']=_0x219fd3('0x2630')+(_0x41d43a[_0x219fd3('0x1c54')]||_0x41d43a[_0x219fd3('0x643')])['toUpperCase'](),_0x36d7e1['gotoif']=angular[_0x219fd3('0x14e5')](_0x41d43a),_0x36d7e1[_0x219fd3('0x103e')]=_0x41cf39,_0x36d7e1[_0x219fd3('0x6ee')]={};if(_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x2077')])switch(_0x36d7e1['gotoif'][_0x219fd3('0x1c54')]?_0x36d7e1['gotoif'][_0x219fd3('0x1c54')][_0x219fd3('0x19b')]():_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x643')][_0x219fd3('0x19b')]()){case'custom':break;case'dialogflow':{const _0x5e2391=_0x36d7e1['gotoif'][_0x219fd3('0x2077')]['split'](',');_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0xdb5')]=_0x5e2391[0x0],_0x36d7e1[_0x219fd3('0x7a9')]['language']=_0x5e2391[0x1],_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x1083')]=_0x5e2391[_0x219fd3('0x275f')](0x2,_0x5e2391[_0x219fd3('0x1f73')])[_0x219fd3('0x1eba')](',');}break;case _0x219fd3('0x22ac'):{const _0x5e4535=_0x36d7e1[_0x219fd3('0x7a9')]['appdata'][_0x219fd3('0x2007')](',');_0x36d7e1[_0x219fd3('0x7a9')]['projectId']=_0x5e4535[0x0],_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x2814')]=_0x5e4535[0x1],_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x1bc2')]=_0x5e4535[0x2],_0x36d7e1['gotoif'][_0x219fd3('0x3e1')]=_0x5e4535[0x3],_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x1083')]=_0x5e4535['slice'](0x4,_0x5e4535[_0x219fd3('0x1f73')])[_0x219fd3('0x1eba')](',');}break;case'amazonlex':{const _0x3fbb91=_0x36d7e1[_0x219fd3('0x7a9')]['appdata'][_0x219fd3('0x2007')](',');_0x36d7e1[_0x219fd3('0x7a9')]['accesskeyid']=_0x3fbb91[0x0],_0x36d7e1[_0x219fd3('0x7a9')]['secretaccesskey']=_0x3fbb91[0x1],_0x36d7e1[_0x219fd3('0x7a9')]['lexregion']=_0x3fbb91[0x2],_0x36d7e1['gotoif']['botname']=_0x3fbb91[0x3],_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x1083')]=_0x3fbb91[_0x219fd3('0x275f')](0x4,_0x3fbb91[_0x219fd3('0x1f73')])[_0x219fd3('0x1eba')](',');}break;case _0x219fd3('0x96e'):{const _0xaf894c=_0x36d7e1['gotoif'][_0x219fd3('0x2077')][_0x219fd3('0x2007')](',');_0x36d7e1['gotoif'][_0x219fd3('0x12a6')]=isNaN(_0xaf894c[0x0])?_0xaf894c[0x0]:parseInt(_0xaf894c[0x0],0xa),_0x36d7e1[_0x219fd3('0x7a9')]['text']=_0xaf894c[_0x219fd3('0x275f')](0x1,_0xaf894c[_0x219fd3('0x1f73')])[_0x219fd3('0x1eba')](',');}break;case _0x219fd3('0x1603'):_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x132f')]=_0x36d7e1['gotoif'][_0x219fd3('0x2077')];break;case _0x219fd3('0xf2e'):_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x2aa')]=_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x2077')]['split']('=')[0x0],_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x175b')]=_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x2077')][_0x219fd3('0x2007')]('=')[0x1];break;case _0x219fd3('0x17c6'):_0x36d7e1['gotoif'][_0x219fd3('0x87c')]=_0x36d7e1[_0x219fd3('0x7a9')]['appdata'];break;default:{const _0x22f720=_0x36d7e1[_0x219fd3('0x7a9')]['appdata'][_0x219fd3('0x2007')](',');_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0xa67')]=_0x49cbdd()[_0x219fd3('0x109a')](_0x22f720[0x0])?_0x22f720[0x0]:isNaN(_0x22f720[0x0])?_0x22f720[0x0]:parseInt(_0x22f720[0x0],0xa),_0x36d7e1['gotoif']['truepriority']=_0x49cbdd()[_0x219fd3('0x109a')](_0x22f720[0x1])?_0x22f720[0x1]:isNaN(_0x22f720[0x1])?_0x22f720[0x1]:parseInt(_0x22f720[0x1],0xa),_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0xe9d')]=_0x49cbdd()[_0x219fd3('0x109a')](_0x22f720[0x2])?_0x22f720[0x2]:isNaN(_0x22f720[0x2])?_0x22f720[0x2]:parseInt(_0x22f720[0x2],0xa);}break;}else{}_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x412')]&&_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x412')][_0x219fd3('0x19b')]()===_0x219fd3('0x1ade')&&_0x36d7e1['gotoif'][_0x219fd3('0x1c54')][_0x219fd3('0x19b')]()==='outbounddial'&&(_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x11d4')]=_0x36d7e1[_0x219fd3('0x7a9')][_0x219fd3('0x2154')]?_0x36d7e1['gotoif'][_0x219fd3('0x2154')][_0x219fd3('0x2007')]('$')[0x0]:undefined,_0x36d7e1['gotoif']['callerId']=_0x36d7e1['gotoif'][_0x219fd3('0x17f4')]?_0x219fd3('0x1d28')+_0x36d7e1[_0x219fd3('0x7a9')]['callerID']:undefined);_0x36d7e1[_0x219fd3('0x10db')]=_0x547879,_0x36d7e1['closeDialog']=_0x720c53;function _0x547879(){const _0x16ac16=_0x219fd3;_0x36d7e1[_0x16ac16('0x73e')]=[];const _0x466a9b=[];_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x412')]&&_0x36d7e1[_0x16ac16('0x7a9')]['type'][_0x16ac16('0x19b')]()===_0x16ac16('0x1ade')&&_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x1c54')]===_0x16ac16('0xbdc')&&(_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x2154')]=_0x764886['cutdigits']?(_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x11d4')]||'')+_0x16ac16('0x2265')+_0x764886['cutdigits']+'}':(_0x36d7e1['gotoif']['prefix']||'')+_0x16ac16('0x150e'),_0x764886[_0x16ac16('0x287')]!==_0x16ac16('0x7ee')?_0x36d7e1[_0x16ac16('0x7a9')]['options'][_0x16ac16('0x2567')](_0x16ac16('0xa22'))<0x0&&(_0x36d7e1['gotoif'][_0x16ac16('0x19')]+=_0x16ac16('0xa22')):_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x19')]=_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x19')][_0x16ac16('0x737')](_0x16ac16('0xa22'),''));if(_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x1c54')]&&_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x1c54')]==='custom'){}else switch((_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x643')]||_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x1c54')])[_0x16ac16('0x19b')]()){case _0x16ac16('0xf2e'):_0x36d7e1[_0x16ac16('0x7a9')]['appdata']=_0x36d7e1['gotoif'][_0x16ac16('0x2aa')]+'='+_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x175b')];break;case _0x16ac16('0x8fa'):break;default:_0x466a9b[0x0]=_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0xa67')],_0x466a9b[0x1]=_0x36d7e1[_0x16ac16('0x7a9')]['truepriority'],_0x466a9b[0x2]=_0x36d7e1[_0x16ac16('0x7a9')]['falsepriority'],_0x36d7e1[_0x16ac16('0x7a9')][_0x16ac16('0x2077')]=_0x466a9b[_0x16ac16('0x1eba')](',');}_0x720c53(_0x36d7e1['gotoif']);}function _0x720c53(_0x4a6009){_0x3757d4['hide'](_0x4a6009);}}const _0x957f68=_0x307da4;_0x1923ae[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x7ae'),_0x4376d8('0x127b'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x1923ae(_0x4bd807,_0x375d40,_0x1ba534,_0x3c395f,_0x4ee019,_0xc31cbe,_0x246903,_0x383ce2){const _0x8f75a2=_0x4376d8,_0x19853f=this;_0x19853f[_0x8f75a2('0x197c')]=_0x246903[_0x8f75a2('0x2831')](),_0x19853f[_0x8f75a2('0x73e')]=[],_0x19853f[_0x8f75a2('0x24d3')]=_0x8f75a2('0x2630')+(_0x3c395f['appType']||_0x3c395f[_0x8f75a2('0x643')])[_0x8f75a2('0x14e2')](),_0x19853f[_0x8f75a2('0x721')]=angular[_0x8f75a2('0x14e5')](_0x3c395f),_0x19853f[_0x8f75a2('0x103e')]=_0x383ce2,_0x19853f[_0x8f75a2('0x6ee')]={};if(_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2077')])switch(_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x1c54')]?_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x1c54')][_0x8f75a2('0x19b')]():_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x643')][_0x8f75a2('0x19b')]()){case _0x8f75a2('0x8fa'):break;case _0x8f75a2('0x2526'):{const _0x5714aa=_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2077')][_0x8f75a2('0x2007')](',');_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0xdb5')]=_0x5714aa[0x0],_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x3e1')]=_0x5714aa[0x1],_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x1083')]=_0x5714aa['slice'](0x2,_0x5714aa['length'])[_0x8f75a2('0x1eba')](',');}break;case _0x8f75a2('0x22ac'):{const _0x7d38ed=_0x19853f['gotop']['appdata']['split'](',');_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x28ab')]=_0x7d38ed[0x0],_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2814')]=_0x7d38ed[0x1],_0x19853f[_0x8f75a2('0x721')]['privateKey']=_0x7d38ed[0x2],_0x19853f['gotop']['language']=_0x7d38ed[0x3],_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x1083')]=_0x7d38ed['slice'](0x4,_0x7d38ed[_0x8f75a2('0x1f73')])[_0x8f75a2('0x1eba')](',');}break;case _0x8f75a2('0x16a9'):{const _0xa6cf33=_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2077')][_0x8f75a2('0x2007')](',');_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x1452')]=_0xa6cf33[0x0],_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x1a62')]=_0xa6cf33[0x1],_0x19853f['gotop'][_0x8f75a2('0x1dcf')]=_0xa6cf33[0x2],_0x19853f[_0x8f75a2('0x721')]['botname']=_0xa6cf33[0x3],_0x19853f['gotop']['welcomemessage']=_0xa6cf33[_0x8f75a2('0x275f')](0x4,_0xa6cf33[_0x8f75a2('0x1f73')])['join'](',');}break;case _0x8f75a2('0x96e'):{const _0x1f27a1=_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2077')][_0x8f75a2('0x2007')](',');_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x12a6')]=isNaN(_0x1f27a1[0x0])?_0x1f27a1[0x0]:parseInt(_0x1f27a1[0x0],0xa),_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x132f')]=_0x1f27a1[_0x8f75a2('0x275f')](0x1,_0x1f27a1[_0x8f75a2('0x1f73')])[_0x8f75a2('0x1eba')](',');}break;case _0x8f75a2('0x1603'):_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x132f')]=_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2077')];break;case _0x8f75a2('0xf2e'):_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2aa')]=_0x19853f[_0x8f75a2('0x721')]['appdata'][_0x8f75a2('0x2007')]('=')[0x0],_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x175b')]=_0x19853f[_0x8f75a2('0x721')]['appdata'][_0x8f75a2('0x2007')]('=')[0x1];break;case _0x8f75a2('0x17c6'):_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x87c')]=_0x19853f[_0x8f75a2('0x721')]['appdata'];break;default:{const _0x1d2db6=_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2077')][_0x8f75a2('0x2007')](',');_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x1a6d')]=_0x49cbdd()['isEmpty'](_0x1d2db6[0x0])?_0x1d2db6[0x0]:isNaN(_0x1d2db6[0x0])?_0x1d2db6[0x0]:parseInt(_0x1d2db6[0x0],0xa);}break;}else{}_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x412')]&&_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x412')][_0x8f75a2('0x19b')]()===_0x8f75a2('0x1ade')&&_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x1c54')]['toLowerCase']()===_0x8f75a2('0x1711')&&(_0x19853f['gotop'][_0x8f75a2('0x11d4')]=_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2154')]?_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x2154')]['split']('$')[0x0]:undefined,_0x19853f['gotop'][_0x8f75a2('0x1a8e')]=_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x17f4')]?'CALLERID(all)='+_0x19853f[_0x8f75a2('0x721')][_0x8f75a2('0x17f4')]:undefined);_0x19853f[_0x8f75a2('0x10db')]=_0x1ccdc6,_0x19853f[_0x8f75a2('0x136e')]=_0x53fc1f;function _0x1ccdc6(){const _0x33e016=_0x8f75a2;_0x19853f[_0x33e016('0x73e')]=[];const _0x49c30d=[];_0x19853f[_0x33e016('0x721')][_0x33e016('0x412')]&&_0x19853f[_0x33e016('0x721')]['type'][_0x33e016('0x19b')]()==='outbound'&&_0x19853f['gotop'][_0x33e016('0x1c54')]==='outboundDial'&&(_0x19853f[_0x33e016('0x721')][_0x33e016('0x2154')]=_0x4ee019['cutdigits']?(_0x19853f[_0x33e016('0x721')][_0x33e016('0x11d4')]||'')+_0x33e016('0x2265')+_0x4ee019[_0x33e016('0x12af')]+'}':(_0x19853f['gotop']['prefix']||'')+_0x33e016('0x150e'),_0x4ee019[_0x33e016('0x287')]!==_0x33e016('0x7ee')?_0x19853f['gotop']['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x19853f[_0x33e016('0x721')][_0x33e016('0x19')]+=_0x33e016('0xa22')):_0x19853f['gotop']['options']=_0x19853f[_0x33e016('0x721')]['options'][_0x33e016('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x19853f[_0x33e016('0x721')][_0x33e016('0x1c54')]&&_0x19853f[_0x33e016('0x721')][_0x33e016('0x1c54')]===_0x33e016('0x8fa')){}else switch((_0x19853f[_0x33e016('0x721')]['app']||_0x19853f[_0x33e016('0x721')][_0x33e016('0x1c54')])[_0x33e016('0x19b')]()){case'set':_0x19853f['gotop'][_0x33e016('0x2077')]=_0x19853f[_0x33e016('0x721')][_0x33e016('0x2aa')]+'='+_0x19853f[_0x33e016('0x721')][_0x33e016('0x175b')];break;case _0x33e016('0x8fa'):break;default:_0x49c30d[0x0]=_0x19853f[_0x33e016('0x721')][_0x33e016('0x1a6d')],_0x19853f[_0x33e016('0x721')][_0x33e016('0x2077')]=_0x49c30d['join'](',');}_0x53fc1f(_0x19853f[_0x33e016('0x721')]);}function _0x53fc1f(_0x1984ab){const _0x1cee53=_0x8f75a2;_0x4bd807[_0x1cee53('0x212a')](_0x1984ab);}}const _0x5ca722=_0x1923ae;_0xbde513[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x14f6'),_0x4376d8('0x199d'),'IndexFactory',_0x4376d8('0x231f'),'intervals','toasty','api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0xbde513(_0x5c5f31,_0xe382a,_0x48d627,_0x24a32c,_0x574088,_0xcf18ab,_0x2fc70e,_0x31db72,_0x5e2bc9,_0xd50ab3){const _0x513cb3=_0x4376d8,_0x549aef=this;_0x549aef[_0x513cb3('0x197c')]=_0x5e2bc9[_0x513cb3('0x2831')](),_0x549aef[_0x513cb3('0x73e')]=[],_0x549aef[_0x513cb3('0x24d3')]=_0x513cb3('0x1481'),_0x549aef[_0x513cb3('0x231f')]=angular[_0x513cb3('0x14e5')](_0x574088),_0x549aef[_0x513cb3('0x1be1')]=_0xcf18ab,_0x549aef['newInterval']=![],_0x549aef[_0x513cb3('0x11e0')]=[_0x513cb3('0x1256'),_0x513cb3('0x8fa'),'list'],_0x549aef[_0x513cb3('0x103e')]=_0xd50ab3,_0x549aef[_0x513cb3('0x9d')]=_0x24a32c[_0x513cb3('0x18cb')](),_0x549aef['monthNumber']=_0x24a32c[_0x513cb3('0x1743')](),_0x549aef['monthName']=_0x24a32c[_0x513cb3('0x912')](),_0x549aef[_0x513cb3('0x219f')]=_0x24a32c[_0x513cb3('0x37c')]();if(!_0x549aef['interval'])_0x549aef[_0x513cb3('0x231f')]={'interval':_0x513cb3('0x20c3')},_0x549aef[_0x513cb3('0x412')]=_0x513cb3('0x1256'),_0x549aef[_0x513cb3('0x24d3')]=_0x513cb3('0x1917'),_0x549aef[_0x513cb3('0x42d')]=!![];else{if(_0x549aef[_0x513cb3('0x231f')][_0x513cb3('0x231f')]!==_0x513cb3('0x20c3')){_0x549aef['type']=_0x513cb3('0x8fa');const _0x1c35e2=_0x549aef[_0x513cb3('0x231f')][_0x513cb3('0x231f')][_0x513cb3('0x2007')](','),_0x5db8f0=_0x1c35e2[0x0],_0x5cb5c6=_0x1c35e2[0x1],_0x281d55=_0x1c35e2[0x2],_0x50e1d8=_0x1c35e2[0x3];if(_0x5db8f0!=='*'){const _0x1012b0=_0x5db8f0[_0x513cb3('0x2007')]('-')[0x0],_0x7c7555=_0x5db8f0[_0x513cb3('0x2007')]('-')[0x1];let _0x43d834;_0x43d834=new Date(),_0x43d834[_0x513cb3('0x196e')](Number(_0x1012b0[_0x513cb3('0x2007')](':')[0x0])),_0x43d834['setMinutes'](Number(_0x1012b0[_0x513cb3('0x2007')](':')[0x1])),_0x549aef[_0x513cb3('0x19bf')]=_0x43d834,_0x43d834=new Date(),_0x43d834['setHours'](Number(_0x7c7555[_0x513cb3('0x2007')](':')[0x0])),_0x43d834[_0x513cb3('0x57b')](Number(_0x7c7555['split'](':')[0x1])),_0x549aef['timeRangeTo']=_0x43d834;}_0x5cb5c6!=='*'&&(_0x549aef['dayOfWeekFrom']=_0x5cb5c6[_0x513cb3('0x2007')]('-')[0x0],_0x549aef['dayOfWeekTo']=_0x5cb5c6[_0x513cb3('0x2007')]('-')[0x1]),_0x281d55!=='*'&&(_0x549aef[_0x513cb3('0x18d1')]=_0x281d55[_0x513cb3('0x2007')]('-')[0x0],_0x549aef['monthDayTo']=_0x281d55['split']('-')[0x1]),_0x50e1d8!=='*'&&(_0x549aef['monthFrom']=_0x50e1d8[_0x513cb3('0x2007')]('-')[0x0],_0x549aef[_0x513cb3('0x1f09')]=_0x50e1d8[_0x513cb3('0x2007')]('-')[0x1]);}else _0x549aef[_0x513cb3('0x412')]=_0x513cb3('0x1256');}_0x5c5f31[_0x513cb3('0x16fb')]['id']&&!_0x549aef[_0x513cb3('0x231f')][_0x513cb3('0xf84')]&&(_0x549aef[_0x513cb3('0x231f')]['IntervalId']=_0x5c5f31[_0x513cb3('0x16fb')]['id']);_0x549aef[_0x513cb3('0x231f')][_0x513cb3('0x24a9')]&&_0x549aef[_0x513cb3('0x231f')][_0x513cb3('0xf84')]&&(_0x549aef[_0x513cb3('0x412')]='list');_0x549aef[_0x513cb3('0x28b2')]=_0x464f9a,_0x549aef[_0x513cb3('0x872')]=_0x26da63,_0x549aef[_0x513cb3('0x136e')]=_0x2f2fb2;_0x549aef[_0x513cb3('0x231f')][_0x513cb3('0xf84')]&&(_0x5e2bc9[_0x513cb3('0x1ba2')]('admin')?_0x31db72['interval'][_0x513cb3('0x1c53')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x513cb3('0x9bb'),'nolimit':!![]})[_0x513cb3('0x1af5')]['then'](function(_0xec4de8){const _0xfbdbf=_0x513cb3;_0x549aef['intervals']=_0xec4de8[_0xfbdbf('0x2319')]||[];})['catch'](function(_0x564577){const _0x2b3c97=_0x513cb3;_0x2fc70e[_0x2b3c97('0x1db9')]({'title':_0x564577['status']?_0x2b3c97('0x14f7')+_0x564577[_0x2b3c97('0x11c5')]+_0x2b3c97('0x16e4')+_0x564577[_0x2b3c97('0x1833')]:_0x2b3c97('0x87a'),'msg':_0x564577['data']?JSON[_0x2b3c97('0x678')](_0x564577[_0x2b3c97('0x1457')]):_0x564577[_0x2b3c97('0x9b6')]()});}):_0x31db72[_0x513cb3('0x231f')]['get']({'fields':_0x513cb3('0x165a'),'IntervalId':'null','nolimit':!![]})['$promise'][_0x513cb3('0x17e7')](function(_0x330a75){_0x549aef['intervals']=_0x330a75['rows']||[];})['then'](function(){const _0x54268c=_0x513cb3;return _0x31db72[_0x54268c('0x383')][_0x54268c('0x1c53')]({'userProfileId':_0x549aef[_0x54268c('0x197c')][_0x54268c('0x1e76')],'sectionId':0x3ec})[_0x54268c('0x1af5')];})[_0x513cb3('0x17e7')](function(_0x34e14d){const _0x4e7e02=_0x513cb3,_0x56fdda=_0x34e14d&&_0x34e14d[_0x4e7e02('0x2319')]?_0x34e14d['rows'][0x0]:null;if(!_0x56fdda)_0x549aef[_0x4e7e02('0x1be1')]=[];else{if(!_0x56fdda[_0x4e7e02('0x9e3')])return _0x31db72['userProfileResource'][_0x4e7e02('0x1c53')]({'sectionId':_0x56fdda['id']})[_0x4e7e02('0x1af5')]['then'](function(_0xe84ba1){const _0x215bce=_0x4e7e02,_0x1ef816=_0xe84ba1&&_0xe84ba1[_0x215bce('0x2319')]?_0xe84ba1[_0x215bce('0x2319')]:[],_0x414251=[];let _0x4f9a92=null;_0x549aef[_0x215bce('0x231f')]&&(_0x4f9a92=_0x49cbdd()['find'](_0x549aef[_0x215bce('0x1be1')],{'name':_0x549aef[_0x215bce('0x231f')][_0x215bce('0x24a9')]})),_0x4f9a92&&!_0x49cbdd()[_0x215bce('0x26f8')](_0x1ef816,['resourceId',_0x4f9a92['id']])&&_0x549aef[_0x215bce('0x1be1')][_0x215bce('0xccd')](function(_0x2538f8){const _0x3ed6d1=_0x215bce;_0x2538f8['id']===_0x4f9a92['id']&&(_0x2538f8['canSelect']=![],_0x414251[_0x3ed6d1('0x269f')](_0x2538f8));}),_0x549aef[_0x215bce('0x1be1')]=_0x414251;});}})['catch'](function(_0x2838fa){const _0x5e1c98=_0x513cb3;_0x2fc70e[_0x5e1c98('0x1db9')]({'title':_0x2838fa['status']?_0x5e1c98('0x14f7')+_0x2838fa['status']+_0x5e1c98('0x16e4')+_0x2838fa[_0x5e1c98('0x1833')]:_0x5e1c98('0x87a'),'msg':_0x2838fa[_0x5e1c98('0x1457')]?JSON[_0x5e1c98('0x678')](_0x2838fa[_0x5e1c98('0x1457')]):_0x2838fa[_0x5e1c98('0x9b6')]()});}));function _0x102f77(){const _0xe5bb3=_0x513cb3;switch(_0x549aef['type']){case _0xe5bb3('0x1256'):case'list':return _0xe5bb3('0x20c3');case _0xe5bb3('0x8fa'):{const _0xc57e2b=[];if(_0x549aef[_0xe5bb3('0x19bf')]!=='*'&&_0x549aef[_0xe5bb3('0x19bf')]&&_0x549aef['timeRangeTo']){const _0x5c83c3=(_0x549aef[_0xe5bb3('0x19bf')]['getHours']()<0xa?'0':'')+_0x549aef[_0xe5bb3('0x19bf')][_0xe5bb3('0x13c6')]()+':'+((_0x549aef['timeRangeFrom']['getMinutes']()<0xa?'0':'')+_0x549aef[_0xe5bb3('0x19bf')][_0xe5bb3('0xf42')]()),_0x5c54db=(_0x549aef['timeRangeTo']['getHours']()<0xa?'0':'')+_0x549aef[_0xe5bb3('0x1c12')]['getHours']()+':'+((_0x549aef[_0xe5bb3('0x1c12')][_0xe5bb3('0xf42')]()<0xa?'0':'')+_0x549aef['timeRangeTo'][_0xe5bb3('0xf42')]());_0xc57e2b[_0xe5bb3('0x269f')](_0x5c83c3+'-'+_0x5c54db);}else _0xc57e2b[_0xe5bb3('0x269f')]('*');return _0x549aef[_0xe5bb3('0x1a98')]?_0x549aef[_0xe5bb3('0x1627')]?_0xc57e2b[_0xe5bb3('0x269f')](_0x549aef[_0xe5bb3('0x1a98')]+'-'+_0x549aef[_0xe5bb3('0x1627')]):_0xc57e2b[_0xe5bb3('0x269f')](_0x549aef[_0xe5bb3('0x1a98')]):_0xc57e2b[_0xe5bb3('0x269f')]('*'),_0x549aef[_0xe5bb3('0x18d1')]?_0x549aef[_0xe5bb3('0x271d')]?_0xc57e2b[_0xe5bb3('0x269f')](_0x549aef[_0xe5bb3('0x18d1')]+'-'+_0x549aef[_0xe5bb3('0x271d')]):_0xc57e2b[_0xe5bb3('0x269f')](_0x549aef[_0xe5bb3('0x18d1')]):_0xc57e2b[_0xe5bb3('0x269f')]('*'),_0x549aef[_0xe5bb3('0x88c')]?_0x549aef[_0xe5bb3('0x1f09')]?_0xc57e2b[_0xe5bb3('0x269f')](_0x549aef[_0xe5bb3('0x88c')]+'-'+_0x549aef['monthTo']):_0xc57e2b[_0xe5bb3('0x269f')](_0x549aef[_0xe5bb3('0x88c')]):_0xc57e2b[_0xe5bb3('0x269f')]('*'),_0xc57e2b[_0xe5bb3('0x1eba')]();}}}function _0x464f9a(){const _0xcd4f86=_0x513cb3;_0x549aef[_0xcd4f86('0x73e')]=[],_0x549aef[_0xcd4f86('0x231f')]['interval']=_0x102f77(),_0x31db72[_0xcd4f86('0x231f')][_0xcd4f86('0x2439')](_0x549aef[_0xcd4f86('0x231f')])['$promise']['then'](function(_0x4ba9a9){const _0x2b65d1=_0xcd4f86;_0x549aef[_0x2b65d1('0x1be1')][_0x2b65d1('0x269f')](_0x4ba9a9),_0x2fc70e[_0x2b65d1('0x130d')]({'title':_0x2b65d1('0x2378'),'msg':_0x549aef[_0x2b65d1('0x231f')][_0x2b65d1('0x2aa')]?_0x549aef[_0x2b65d1('0x231f')][_0x2b65d1('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x2f2fb2();})[_0xcd4f86('0x16df')](function(_0x190ec4){const _0x12ecd9=_0xcd4f86;console['error'](_0x190ec4),_0x549aef[_0x12ecd9('0x73e')]=_0x190ec4['data'][_0x12ecd9('0x73e')]||[{'message':_0x190ec4[_0x12ecd9('0x9b6')](),'type':_0x12ecd9('0x2475')}];});}function _0x26da63(){const _0x412921=_0x513cb3;_0x549aef[_0x412921('0x73e')]=[],_0x549aef[_0x412921('0x231f')]['interval']=_0x102f77(),_0x549aef[_0x412921('0x231f')][_0x412921('0xf84')]?(_0x549aef['type']!=='list'&&(_0x549aef[_0x412921('0x231f')][_0x412921('0x24a9')]=null),_0x2f2fb2(_0x549aef[_0x412921('0x231f')])):_0x31db72[_0x412921('0x231f')]['update']({'id':_0x549aef[_0x412921('0x231f')]['id']},_0x549aef[_0x412921('0x231f')])[_0x412921('0x1af5')][_0x412921('0x17e7')](function(_0x258a9e){const _0x24f67a=_0x412921,_0x35e305=_0x49cbdd()[_0x24f67a('0xe8e')](_0x549aef[_0x24f67a('0x1be1')],{'id':_0x258a9e['id']});_0x35e305&&_0x49cbdd()[_0x24f67a('0x1ced')](_0x35e305,_0x258a9e),_0x2fc70e[_0x24f67a('0x130d')]({'title':_0x24f67a('0x6a9'),'msg':_0x24f67a('0x2792')}),_0x2f2fb2();})[_0x412921('0x16df')](function(_0x159390){const _0x24d6fe=_0x412921;console[_0x24d6fe('0x1db9')](_0x159390),_0x549aef[_0x24d6fe('0x73e')]=_0x159390[_0x24d6fe('0x1457')][_0x24d6fe('0x73e')]||[{'message':_0x159390['toString'](),'type':_0x24d6fe('0xed5')}];});}function _0x2f2fb2(_0x1d2959){_0xe382a['hide'](_0x1d2959);}}const _0x533baa=_0xbde513;_0x5a81a8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x7ae'),_0x4376d8('0x127b'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x5a81a8(_0x5deceb,_0x4bc241,_0x3e3645,_0x1b5bfa,_0x3293c6,_0x1c97d2,_0x24f9eb,_0xa269f0){const _0x564961=_0x4376d8,_0x464700=this;_0x464700[_0x564961('0x197c')]=_0x24f9eb[_0x564961('0x2831')](),_0x464700[_0x564961('0x73e')]=[],_0x464700[_0x564961('0x24d3')]='MAIL.EDIT_'+(_0x1b5bfa[_0x564961('0x1c54')]||_0x1b5bfa['app'])[_0x564961('0x14e2')](),_0x464700[_0x564961('0x1e49')]=angular[_0x564961('0x14e5')](_0x1b5bfa),_0x464700[_0x564961('0x103e')]=_0xa269f0,_0x464700[_0x564961('0x6ee')]={};if(_0x464700[_0x564961('0x1e49')]['appdata'])switch(_0x464700['noop'][_0x564961('0x1c54')]?_0x464700['noop']['appType'][_0x564961('0x19b')]():_0x464700[_0x564961('0x1e49')][_0x564961('0x643')][_0x564961('0x19b')]()){case'custom':break;case _0x564961('0x2526'):{const _0x1629a9=_0x464700['noop'][_0x564961('0x2077')][_0x564961('0x2007')](',');_0x464700[_0x564961('0x1e49')][_0x564961('0xdb5')]=_0x1629a9[0x0],_0x464700[_0x564961('0x1e49')][_0x564961('0x3e1')]=_0x1629a9[0x1],_0x464700[_0x564961('0x1e49')][_0x564961('0x1083')]=_0x1629a9[_0x564961('0x275f')](0x2,_0x1629a9[_0x564961('0x1f73')])[_0x564961('0x1eba')](',');}break;case'dialogflowv2':{const _0x3832e6=_0x464700[_0x564961('0x1e49')][_0x564961('0x2077')][_0x564961('0x2007')](',');_0x464700[_0x564961('0x1e49')]['projectId']=_0x3832e6[0x0],_0x464700[_0x564961('0x1e49')][_0x564961('0x2814')]=_0x3832e6[0x1],_0x464700[_0x564961('0x1e49')]['privateKey']=_0x3832e6[0x2],_0x464700[_0x564961('0x1e49')][_0x564961('0x3e1')]=_0x3832e6[0x3],_0x464700['noop'][_0x564961('0x1083')]=_0x3832e6[_0x564961('0x275f')](0x4,_0x3832e6['length'])[_0x564961('0x1eba')](',');}break;case _0x564961('0x16a9'):{const _0x24d39c=_0x464700[_0x564961('0x1e49')]['appdata'][_0x564961('0x2007')](',');_0x464700[_0x564961('0x1e49')][_0x564961('0x1452')]=_0x24d39c[0x0],_0x464700[_0x564961('0x1e49')][_0x564961('0x1a62')]=_0x24d39c[0x1],_0x464700[_0x564961('0x1e49')][_0x564961('0x1dcf')]=_0x24d39c[0x2],_0x464700[_0x564961('0x1e49')][_0x564961('0x4a')]=_0x24d39c[0x3],_0x464700['noop'][_0x564961('0x1083')]=_0x24d39c[_0x564961('0x275f')](0x4,_0x24d39c[_0x564961('0x1f73')])[_0x564961('0x1eba')](',');}break;case _0x564961('0x96e'):{const _0x96a5df=_0x464700[_0x564961('0x1e49')]['appdata'][_0x564961('0x2007')](',');_0x464700['noop'][_0x564961('0x12a6')]=isNaN(_0x96a5df[0x0])?_0x96a5df[0x0]:parseInt(_0x96a5df[0x0],0xa),_0x464700['noop'][_0x564961('0x132f')]=_0x96a5df['slice'](0x1,_0x96a5df['length'])[_0x564961('0x1eba')](',');}break;case'message':_0x464700['noop'][_0x564961('0x132f')]=_0x464700[_0x564961('0x1e49')][_0x564961('0x2077')];break;case _0x564961('0xf2e'):_0x464700[_0x564961('0x1e49')][_0x564961('0x2aa')]=_0x464700[_0x564961('0x1e49')]['appdata'][_0x564961('0x2007')]('=')[0x0],_0x464700[_0x564961('0x1e49')][_0x564961('0x175b')]=_0x464700[_0x564961('0x1e49')][_0x564961('0x2077')]['split']('=')[0x1];break;case'agi':_0x464700[_0x564961('0x1e49')][_0x564961('0x87c')]=_0x464700[_0x564961('0x1e49')][_0x564961('0x2077')];break;default:{const _0x2303d8=_0x464700[_0x564961('0x1e49')]['appdata'][_0x564961('0x2007')](',');_0x464700['noop'][_0x564961('0x175b')]=_0x49cbdd()[_0x564961('0x109a')](_0x2303d8[0x0])?_0x2303d8[0x0]:isNaN(_0x2303d8[0x0])?_0x2303d8[0x0]:parseInt(_0x2303d8[0x0],0xa);}break;}else{}_0x464700[_0x564961('0x1e49')][_0x564961('0x412')]&&_0x464700[_0x564961('0x1e49')][_0x564961('0x412')][_0x564961('0x19b')]()===_0x564961('0x1ade')&&_0x464700[_0x564961('0x1e49')][_0x564961('0x1c54')][_0x564961('0x19b')]()===_0x564961('0x1711')&&(_0x464700[_0x564961('0x1e49')]['prefix']=_0x464700[_0x564961('0x1e49')]['phone']?_0x464700[_0x564961('0x1e49')][_0x564961('0x2154')][_0x564961('0x2007')]('$')[0x0]:undefined,_0x464700[_0x564961('0x1e49')][_0x564961('0x1a8e')]=_0x464700[_0x564961('0x1e49')][_0x564961('0x17f4')]?_0x564961('0x1d28')+_0x464700[_0x564961('0x1e49')]['callerID']:undefined);_0x464700[_0x564961('0x10db')]=_0x182308,_0x464700[_0x564961('0x136e')]=_0x51a37b;function _0x182308(){const _0x5440b9=_0x564961;_0x464700['errors']=[];const _0x23c5e2=[];_0x464700['noop'][_0x5440b9('0x412')]&&_0x464700['noop'][_0x5440b9('0x412')][_0x5440b9('0x19b')]()===_0x5440b9('0x1ade')&&_0x464700[_0x5440b9('0x1e49')]['appType']===_0x5440b9('0xbdc')&&(_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x2154')]=_0x3293c6[_0x5440b9('0x12af')]?(_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x11d4')]||'')+_0x5440b9('0x2265')+_0x3293c6[_0x5440b9('0x12af')]+'}':(_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x11d4')]||'')+_0x5440b9('0x150e'),_0x3293c6[_0x5440b9('0x287')]!==_0x5440b9('0x7ee')?_0x464700['noop'][_0x5440b9('0x19')][_0x5440b9('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x19')]+=_0x5440b9('0xa22')):_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x19')]=_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x19')][_0x5440b9('0x737')](_0x5440b9('0xa22'),''));if(_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x1c54')]&&_0x464700[_0x5440b9('0x1e49')]['appType']==='custom'){}else switch((_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x643')]||_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x1c54')])[_0x5440b9('0x19b')]()){case _0x5440b9('0xf2e'):_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x2077')]=_0x464700['noop'][_0x5440b9('0x2aa')]+'='+_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x175b')];break;case _0x5440b9('0x8fa'):break;default:_0x23c5e2[0x0]=_0x464700['noop'][_0x5440b9('0x175b')],_0x464700[_0x5440b9('0x1e49')][_0x5440b9('0x2077')]=_0x23c5e2[_0x5440b9('0x1eba')](',');}_0x51a37b(_0x464700[_0x5440b9('0x1e49')]);}function _0x51a37b(_0x143f0e){const _0x1d0728=_0x564961;_0x5deceb[_0x1d0728('0x212a')](_0x143f0e);}}const _0x39ac91=_0x5a81a8;_0x2a7736[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'mailAccountApp',_0x4376d8('0x127b'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x2a7736(_0x4823cb,_0x19e3a0,_0x5d4d4c,_0x498a13,_0x5c9e87,_0x575d39,_0x2bfe8b,_0x2d86a0){const _0x57955b=_0x4376d8,_0x3af389=this;_0x3af389[_0x57955b('0x197c')]=_0x2bfe8b[_0x57955b('0x2831')](),_0x3af389[_0x57955b('0x73e')]=[],_0x3af389[_0x57955b('0x24d3')]='MAIL.EDIT_'+(_0x498a13['appType']||_0x498a13[_0x57955b('0x643')])['toUpperCase'](),_0x3af389[_0x57955b('0x1bd')]=angular['copy'](_0x498a13),_0x3af389[_0x57955b('0x103e')]=_0x2d86a0,_0x3af389[_0x57955b('0x6ee')]={};if(_0x3af389['queue'][_0x57955b('0x2077')])switch(_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x1c54')]?_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x1c54')][_0x57955b('0x19b')]():_0x3af389[_0x57955b('0x1bd')]['app'][_0x57955b('0x19b')]()){case _0x57955b('0x8fa'):break;case _0x57955b('0x2526'):{const _0x121536=_0x3af389['queue'][_0x57955b('0x2077')]['split'](',');_0x3af389[_0x57955b('0x1bd')][_0x57955b('0xdb5')]=_0x121536[0x0],_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x3e1')]=_0x121536[0x1],_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x1083')]=_0x121536['slice'](0x2,_0x121536[_0x57955b('0x1f73')])['join'](',');}break;case _0x57955b('0x22ac'):{const _0x479ceb=_0x3af389[_0x57955b('0x1bd')]['appdata']['split'](',');_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x28ab')]=_0x479ceb[0x0],_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x2814')]=_0x479ceb[0x1],_0x3af389['queue'][_0x57955b('0x1bc2')]=_0x479ceb[0x2],_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x3e1')]=_0x479ceb[0x3],_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x1083')]=_0x479ceb[_0x57955b('0x275f')](0x4,_0x479ceb[_0x57955b('0x1f73')])[_0x57955b('0x1eba')](',');}break;case _0x57955b('0x16a9'):{const _0x486e21=_0x3af389[_0x57955b('0x1bd')]['appdata'][_0x57955b('0x2007')](',');_0x3af389[_0x57955b('0x1bd')]['accesskeyid']=_0x486e21[0x0],_0x3af389['queue'][_0x57955b('0x1a62')]=_0x486e21[0x1],_0x3af389[_0x57955b('0x1bd')]['lexregion']=_0x486e21[0x2],_0x3af389['queue'][_0x57955b('0x4a')]=_0x486e21[0x3],_0x3af389[_0x57955b('0x1bd')]['welcomemessage']=_0x486e21[_0x57955b('0x275f')](0x4,_0x486e21[_0x57955b('0x1f73')])[_0x57955b('0x1eba')](',');}break;case _0x57955b('0x96e'):{const _0x261a13=_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x2077')]['split'](',');_0x3af389['queue']['times']=isNaN(_0x261a13[0x0])?_0x261a13[0x0]:parseInt(_0x261a13[0x0],0xa),_0x3af389['queue'][_0x57955b('0x132f')]=_0x261a13[_0x57955b('0x275f')](0x1,_0x261a13['length'])[_0x57955b('0x1eba')](',');}break;case _0x57955b('0x1603'):_0x3af389[_0x57955b('0x1bd')]['text']=_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x2077')];break;case _0x57955b('0xf2e'):_0x3af389['queue'][_0x57955b('0x2aa')]=_0x3af389['queue'][_0x57955b('0x2077')][_0x57955b('0x2007')]('=')[0x0],_0x3af389['queue'][_0x57955b('0x175b')]=_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x2077')][_0x57955b('0x2007')]('=')[0x1];break;case _0x57955b('0x17c6'):_0x3af389['queue'][_0x57955b('0x87c')]=_0x3af389['queue'][_0x57955b('0x2077')];break;default:{const _0x4ea867=_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x2077')][_0x57955b('0x2007')](',');_0x3af389['queue'][_0x57955b('0x1bd')]=_0x49cbdd()[_0x57955b('0x109a')](_0x4ea867[0x0])?_0x4ea867[0x0]:isNaN(_0x4ea867[0x0])?_0x4ea867[0x0]:parseInt(_0x4ea867[0x0],0xa),_0x3af389['queue'][_0x57955b('0xd2f')]=_0x49cbdd()[_0x57955b('0x109a')](_0x4ea867[0x1])?_0x4ea867[0x1]:isNaN(_0x4ea867[0x1])?_0x4ea867[0x1]:parseInt(_0x4ea867[0x1],0xa);}break;}else _0x3af389[_0x57955b('0x1bd')]['queue']=0x12c,_0x3af389[_0x57955b('0x1bd')]['timeout']=0x12c;_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x412')]&&_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x412')][_0x57955b('0x19b')]()===_0x57955b('0x1ade')&&_0x3af389[_0x57955b('0x1bd')]['appType'][_0x57955b('0x19b')]()===_0x57955b('0x1711')&&(_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x11d4')]=_0x3af389[_0x57955b('0x1bd')]['phone']?_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x2154')]['split']('$')[0x0]:undefined,_0x3af389[_0x57955b('0x1bd')]['callerId']=_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x17f4')]?_0x57955b('0x1d28')+_0x3af389[_0x57955b('0x1bd')][_0x57955b('0x17f4')]:undefined);_0x3af389[_0x57955b('0x10db')]=_0x2811cc,_0x3af389[_0x57955b('0x136e')]=_0x560f47,_0x2bfe8b[_0x57955b('0x1ba2')](_0x57955b('0x20bf'))?_0x575d39[_0x57955b('0x1e8b')][_0x57955b('0x1c53')]({'fields':_0x57955b('0x960'),'sort':'name','nolimit':_0x57955b('0xe34')})[_0x57955b('0x1af5')][_0x57955b('0x17e7')](function(_0x1c35eb){_0x3af389['queues']=_0x1c35eb['rows']||[];})[_0x57955b('0x16df')](function(_0x265baa){const _0x10230e=_0x57955b;_0x5d4d4c[_0x10230e('0x1db9')]({'title':_0x265baa[_0x10230e('0x11c5')]?_0x10230e('0x14f7')+_0x265baa['status']+'\x20-\x20'+_0x265baa[_0x10230e('0x1833')]:'SYSTEM:GET_QUEUES','msg':_0x265baa[_0x10230e('0x1457')]?JSON[_0x10230e('0x678')](_0x265baa[_0x10230e('0x1457')]):_0x265baa[_0x10230e('0x9b6')]()});}):_0x575d39[_0x57955b('0x1e8b')][_0x57955b('0x1c53')]({'fields':'id,name,type','sort':'name','nolimit':_0x57955b('0xe34')})[_0x57955b('0x1af5')]['then'](function(_0x1e4c75){const _0x35b053=_0x57955b;_0x3af389[_0x35b053('0x14c4')]=_0x1e4c75['rows']||[];})[_0x57955b('0x17e7')](function(){const _0x5ac2bb=_0x57955b;return _0x575d39[_0x5ac2bb('0x383')][_0x5ac2bb('0x1c53')]({'userProfileId':_0x3af389[_0x5ac2bb('0x197c')]['userProfileId'],'sectionId':0x259})['$promise'];})['then'](function(_0x1f9e3b){const _0x1a2330=_0x57955b,_0x2129a4=_0x1f9e3b&&_0x1f9e3b[_0x1a2330('0x2319')]?_0x1f9e3b[_0x1a2330('0x2319')][0x0]:null;if(!_0x2129a4){const _0x1d8f1e=[];let _0x1b15e5=null;_0x3af389['queue']&&(_0x1b15e5=_0x49cbdd()[_0x1a2330('0xe8e')](_0x3af389['queues'],{'name':_0x3af389[_0x1a2330('0x1bd')]['queue']}));for(let _0x4072a4=0x0;_0x4072a4<_0x3af389[_0x1a2330('0x14c4')][_0x1a2330('0x1f73')];_0x4072a4++){_0x1b15e5&&_0x3af389['queues'][_0x4072a4]['id']===_0x1b15e5['id']&&(_0x3af389['queues'][_0x4072a4][_0x1a2330('0xe5c')]=![],_0x1d8f1e[_0x1a2330('0x269f')](_0x3af389[_0x1a2330('0x14c4')][_0x4072a4]));}_0x3af389['queues']=_0x1d8f1e;}else{if(!_0x2129a4[_0x1a2330('0x9e3')])return _0x575d39[_0x1a2330('0x78d')][_0x1a2330('0x1c53')]({'sectionId':_0x2129a4['id']})[_0x1a2330('0x1af5')][_0x1a2330('0x17e7')](function(_0x23fe4b){const _0x183a6b=_0x1a2330,_0x368fda=_0x49cbdd()['map'](_0x23fe4b['rows'],function(_0x272be0){const _0x499f83=a0_0xd29e;return _0x49cbdd()[_0x499f83('0xe8e')](_0x3af389[_0x499f83('0x14c4')],{'id':_0x272be0[_0x499f83('0x5db')]});});let _0x3a963d=null;_0x3af389[_0x183a6b('0x1bd')]&&(_0x3a963d=_0x49cbdd()['find'](_0x3af389[_0x183a6b('0x14c4')],{'name':_0x3af389[_0x183a6b('0x1bd')][_0x183a6b('0x1bd')]}));if(_0x3a963d&&!_0x49cbdd()[_0x183a6b('0x26f8')](_0x368fda,['id',_0x3a963d['id']])){const _0x22e174=_0x49cbdd()[_0x183a6b('0xe8e')](_0x3af389[_0x183a6b('0x14c4')],{'id':_0x3a963d['id']});_0x22e174[_0x183a6b('0xe5c')]=![],_0x368fda[_0x183a6b('0x269f')](_0x22e174);}_0x3af389['queues']=_0x368fda;});}})[_0x57955b('0x16df')](function(_0xe16a12){const _0x1efbc1=_0x57955b;_0x5d4d4c[_0x1efbc1('0x1db9')]({'title':_0xe16a12[_0x1efbc1('0x11c5')]?_0x1efbc1('0x14f7')+_0xe16a12[_0x1efbc1('0x11c5')]+_0x1efbc1('0x16e4')+_0xe16a12['statusText']:'SYSTEM:GETqueues','msg':_0xe16a12[_0x1efbc1('0x1457')]?JSON[_0x1efbc1('0x678')](_0xe16a12[_0x1efbc1('0x1457')]):_0xe16a12[_0x1efbc1('0x9b6')]()});});function _0x2811cc(){const _0x4dc0de=_0x57955b;_0x3af389[_0x4dc0de('0x73e')]=[];const _0x18f056=[];_0x3af389[_0x4dc0de('0x1bd')]['type']&&_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x412')][_0x4dc0de('0x19b')]()==='outbound'&&_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x1c54')]===_0x4dc0de('0xbdc')&&(_0x3af389['queue'][_0x4dc0de('0x2154')]=_0x5c9e87[_0x4dc0de('0x12af')]?(_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x11d4')]||'')+_0x4dc0de('0x2265')+_0x5c9e87[_0x4dc0de('0x12af')]+'}':(_0x3af389[_0x4dc0de('0x1bd')]['prefix']||'')+_0x4dc0de('0x150e'),_0x5c9e87[_0x4dc0de('0x287')]!==_0x4dc0de('0x7ee')?_0x3af389['queue'][_0x4dc0de('0x19')][_0x4dc0de('0x2567')](_0x4dc0de('0xa22'))<0x0&&(_0x3af389['queue'][_0x4dc0de('0x19')]+=_0x4dc0de('0xa22')):_0x3af389['queue']['options']=_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x19')][_0x4dc0de('0x737')](_0x4dc0de('0xa22'),''));const _0x2f0048=_0x49cbdd()['find'](_0x3af389[_0x4dc0de('0x14c4')],{'name':_0x3af389[_0x4dc0de('0x1bd')]['queue']});_0x2f0048&&(_0x3af389['queue'][_0x49cbdd()['capitalize'](_0x4dc0de('0xc2'))+_0x4dc0de('0x1bf4')]=_0x2f0048['id']);if(_0x3af389['queue']['appType']&&_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x1c54')]===_0x4dc0de('0x8fa')){}else switch((_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x643')]||_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x1c54')])[_0x4dc0de('0x19b')]()){case _0x4dc0de('0xf2e'):_0x3af389['queue'][_0x4dc0de('0x2077')]=_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x2aa')]+'='+_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x175b')];break;case _0x4dc0de('0x8fa'):break;default:_0x18f056[0x0]=_0x3af389[_0x4dc0de('0x1bd')]['queue'],_0x18f056[0x1]=_0x3af389['queue'][_0x4dc0de('0xd2f')],_0x3af389[_0x4dc0de('0x1bd')][_0x4dc0de('0x2077')]=_0x18f056[_0x4dc0de('0x1eba')](',');}_0x560f47(_0x3af389[_0x4dc0de('0x1bd')]);}function _0x560f47(_0x3fce17){_0x4823cb['hide'](_0x3fce17);}}const _0x2eb097=_0x2a7736;_0x4ef9dc[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x7ae'),_0x4376d8('0x127b'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x4ef9dc(_0x7c5b21,_0x2ec37e,_0x13782f,_0x1c8200,_0x487136,_0x438f49,_0x568bdc,_0x242be5){const _0x41a137=_0x4376d8,_0x3e91a0=this;_0x3e91a0[_0x41a137('0x197c')]=_0x568bdc[_0x41a137('0x2831')](),_0x3e91a0[_0x41a137('0x73e')]=[],_0x3e91a0['title']='MAIL.EDIT_'+(_0x1c8200[_0x41a137('0x1c54')]||_0x1c8200[_0x41a137('0x643')])['toUpperCase'](),_0x3e91a0[_0x41a137('0xca8')]=angular[_0x41a137('0x14e5')](_0x1c8200),_0x3e91a0[_0x41a137('0x103e')]=_0x242be5,_0x3e91a0[_0x41a137('0x6ee')]={};if(_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x2077')])switch(_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x1c54')]?_0x3e91a0['system'][_0x41a137('0x1c54')][_0x41a137('0x19b')]():_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x643')][_0x41a137('0x19b')]()){case _0x41a137('0x8fa'):break;case _0x41a137('0x2526'):{const _0x208865=_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x2077')][_0x41a137('0x2007')](',');_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0xdb5')]=_0x208865[0x0],_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x3e1')]=_0x208865[0x1],_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x1083')]=_0x208865[_0x41a137('0x275f')](0x2,_0x208865[_0x41a137('0x1f73')])['join'](',');}break;case _0x41a137('0x22ac'):{const _0x1cc4ff=_0x3e91a0[_0x41a137('0xca8')]['appdata'][_0x41a137('0x2007')](',');_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x28ab')]=_0x1cc4ff[0x0],_0x3e91a0['system']['clientEmail']=_0x1cc4ff[0x1],_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x1bc2')]=_0x1cc4ff[0x2],_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x3e1')]=_0x1cc4ff[0x3],_0x3e91a0['system'][_0x41a137('0x1083')]=_0x1cc4ff['slice'](0x4,_0x1cc4ff[_0x41a137('0x1f73')])[_0x41a137('0x1eba')](',');}break;case _0x41a137('0x16a9'):{const _0x5896b2=_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x2077')]['split'](',');_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x1452')]=_0x5896b2[0x0],_0x3e91a0[_0x41a137('0xca8')]['secretaccesskey']=_0x5896b2[0x1],_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x1dcf')]=_0x5896b2[0x2],_0x3e91a0['system'][_0x41a137('0x4a')]=_0x5896b2[0x3],_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x1083')]=_0x5896b2[_0x41a137('0x275f')](0x4,_0x5896b2[_0x41a137('0x1f73')])[_0x41a137('0x1eba')](',');}break;case'autoreply':{const _0x5e2112=_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x2077')][_0x41a137('0x2007')](',');_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x12a6')]=isNaN(_0x5e2112[0x0])?_0x5e2112[0x0]:parseInt(_0x5e2112[0x0],0xa),_0x3e91a0['system']['text']=_0x5e2112[_0x41a137('0x275f')](0x1,_0x5e2112[_0x41a137('0x1f73')])[_0x41a137('0x1eba')](',');}break;case'message':_0x3e91a0['system']['text']=_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x2077')];break;case _0x41a137('0xf2e'):_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x2aa')]=_0x3e91a0['system'][_0x41a137('0x2077')][_0x41a137('0x2007')]('=')[0x0],_0x3e91a0[_0x41a137('0xca8')]['value']=_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x2077')][_0x41a137('0x2007')]('=')[0x1];break;case _0x41a137('0x17c6'):_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x87c')]=_0x3e91a0['system'][_0x41a137('0x2077')];break;default:{const _0x144fc8=_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x2077')][_0x41a137('0x2007')](',');_0x3e91a0['system'][_0x41a137('0x1115')]=_0x49cbdd()[_0x41a137('0x109a')](_0x144fc8[0x0])?_0x144fc8[0x0]:isNaN(_0x144fc8[0x0])?_0x144fc8[0x0]:parseInt(_0x144fc8[0x0],0xa),_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0xb0a')]=_0x49cbdd()[_0x41a137('0x109a')](_0x144fc8[0x1])?_0x144fc8[0x1]:isNaN(_0x144fc8[0x1])?_0x144fc8[0x1]:parseInt(_0x144fc8[0x1],0xa);}break;}else _0x3e91a0[_0x41a137('0xca8')][_0x41a137('0xb0a')]='';_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x412')]&&_0x3e91a0['system'][_0x41a137('0x412')]['toLowerCase']()===_0x41a137('0x1ade')&&_0x3e91a0[_0x41a137('0xca8')]['appType'][_0x41a137('0x19b')]()==='outbounddial'&&(_0x3e91a0[_0x41a137('0xca8')]['prefix']=_0x3e91a0[_0x41a137('0xca8')]['phone']?_0x3e91a0['system'][_0x41a137('0x2154')][_0x41a137('0x2007')]('$')[0x0]:undefined,_0x3e91a0[_0x41a137('0xca8')]['callerId']=_0x3e91a0[_0x41a137('0xca8')]['callerID']?'CALLERID(all)='+_0x3e91a0[_0x41a137('0xca8')][_0x41a137('0x17f4')]:undefined);_0x3e91a0['saveMailAccountApp']=_0x4398b1,_0x3e91a0[_0x41a137('0x136e')]=_0x4ffebf,_0x568bdc['hasRole']('admin')?_0x438f49[_0x41a137('0xb0a')][_0x41a137('0x1c53')]({'fields':_0x41a137('0x12d2'),'sort':'name','nolimit':_0x41a137('0xe34')})[_0x41a137('0x1af5')]['then'](function(_0x357a65){const _0x4657e4=_0x41a137;_0x3e91a0[_0x4657e4('0xd26')]=_0x357a65[_0x4657e4('0x2319')]||[];})[_0x41a137('0x16df')](function(_0x25fb88){const _0xdcc22c=_0x41a137;_0x13782f[_0xdcc22c('0x1db9')]({'title':_0x25fb88[_0xdcc22c('0x11c5')]?_0xdcc22c('0x14f7')+_0x25fb88['status']+'\x20-\x20'+_0x25fb88[_0xdcc22c('0x1833')]:_0xdcc22c('0x1edc'),'msg':_0x25fb88['data']?JSON[_0xdcc22c('0x678')](_0x25fb88[_0xdcc22c('0x1457')]):_0x25fb88[_0xdcc22c('0x9b6')]()});}):_0x438f49[_0x41a137('0xb0a')][_0x41a137('0x1c53')]({'fields':_0x41a137('0x12d2'),'sort':'name','nolimit':_0x41a137('0xe34')})[_0x41a137('0x1af5')][_0x41a137('0x17e7')](function(_0x1cd377){const _0x2bde2b=_0x41a137;_0x3e91a0[_0x2bde2b('0xd26')]=_0x1cd377['rows']||[];})[_0x41a137('0x17e7')](function(){const _0x22e584=_0x41a137;return _0x438f49[_0x22e584('0x383')]['get']({'userProfileId':_0x3e91a0[_0x22e584('0x197c')][_0x22e584('0x1e76')],'sectionId':0x3f4})[_0x22e584('0x1af5')];})[_0x41a137('0x17e7')](function(_0x5840b9){const _0x259d08=_0x41a137,_0x4c9df9=_0x5840b9&&_0x5840b9[_0x259d08('0x2319')]?_0x5840b9['rows'][0x0]:null;if(!_0x4c9df9){const _0x51dab8=[];let _0x568fc7=null;_0x3e91a0[_0x259d08('0xca8')]&&(_0x568fc7=_0x49cbdd()[_0x259d08('0xe8e')](_0x3e91a0[_0x259d08('0xd26')],{'name':_0x3e91a0[_0x259d08('0xca8')][_0x259d08('0xb0a')]}));for(let _0x3926a6=0x0;_0x3926a6<_0x3e91a0[_0x259d08('0xd26')]['length'];_0x3926a6++){_0x568fc7&&_0x3e91a0[_0x259d08('0xd26')][_0x3926a6]['id']===_0x568fc7['id']&&(_0x3e91a0[_0x259d08('0xd26')][_0x3926a6][_0x259d08('0xe5c')]=![],_0x51dab8[_0x259d08('0x269f')](_0x3e91a0[_0x259d08('0xd26')][_0x3926a6]));}_0x3e91a0['variables']=_0x51dab8;}else{if(!_0x4c9df9[_0x259d08('0x9e3')])return _0x438f49[_0x259d08('0x78d')][_0x259d08('0x1c53')]({'sectionId':_0x4c9df9['id']})[_0x259d08('0x1af5')]['then'](function(_0x19218c){const _0xb84038=_0x259d08,_0x53d6eb=_0x49cbdd()[_0xb84038('0x787')](_0x19218c[_0xb84038('0x2319')],function(_0x3b9641){const _0x18de4c=_0xb84038;return _0x49cbdd()[_0x18de4c('0xe8e')](_0x3e91a0[_0x18de4c('0xd26')],{'id':_0x3b9641[_0x18de4c('0x5db')]});});let _0x129fe4=null;_0x3e91a0[_0xb84038('0xca8')]&&(_0x129fe4=_0x49cbdd()[_0xb84038('0xe8e')](_0x3e91a0[_0xb84038('0xd26')],{'name':_0x3e91a0[_0xb84038('0xca8')][_0xb84038('0xb0a')]}));if(_0x129fe4&&!_0x49cbdd()['some'](_0x53d6eb,['id',_0x129fe4['id']])){const _0x453322=_0x49cbdd()[_0xb84038('0xe8e')](_0x3e91a0[_0xb84038('0xd26')],{'id':_0x129fe4['id']});_0x453322[_0xb84038('0xe5c')]=![],_0x53d6eb[_0xb84038('0x269f')](_0x453322);}_0x3e91a0[_0xb84038('0xd26')]=_0x53d6eb;});}})[_0x41a137('0x16df')](function(_0x19f1da){const _0x3fc3b6=_0x41a137;_0x13782f[_0x3fc3b6('0x1db9')]({'title':_0x19f1da[_0x3fc3b6('0x11c5')]?_0x3fc3b6('0x14f7')+_0x19f1da[_0x3fc3b6('0x11c5')]+_0x3fc3b6('0x16e4')+_0x19f1da['statusText']:_0x3fc3b6('0xef7'),'msg':_0x19f1da[_0x3fc3b6('0x1457')]?JSON[_0x3fc3b6('0x678')](_0x19f1da[_0x3fc3b6('0x1457')]):_0x19f1da['toString']()});});function _0x4398b1(){const _0x21f848=_0x41a137;_0x3e91a0[_0x21f848('0x73e')]=[];const _0x38d73d=[];_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x412')]&&_0x3e91a0['system']['type'][_0x21f848('0x19b')]()===_0x21f848('0x1ade')&&_0x3e91a0['system'][_0x21f848('0x1c54')]==='outboundDial'&&(_0x3e91a0[_0x21f848('0xca8')]['phone']=_0x487136[_0x21f848('0x12af')]?(_0x3e91a0['system'][_0x21f848('0x11d4')]||'')+_0x21f848('0x2265')+_0x487136[_0x21f848('0x12af')]+'}':(_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x11d4')]||'')+_0x21f848('0x150e'),_0x487136[_0x21f848('0x287')]!==_0x21f848('0x7ee')?_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x19')][_0x21f848('0x2567')](_0x21f848('0xa22'))<0x0&&(_0x3e91a0[_0x21f848('0xca8')]['options']+=_0x21f848('0xa22')):_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x19')]=_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x19')][_0x21f848('0x737')](_0x21f848('0xa22'),''));if(_0x3e91a0['system'][_0x21f848('0x1c54')]&&_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x1c54')]===_0x21f848('0x8fa')){}else switch((_0x3e91a0['system'][_0x21f848('0x643')]||_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x1c54')])[_0x21f848('0x19b')]()){case _0x21f848('0xf2e'):_0x3e91a0[_0x21f848('0xca8')]['appdata']=_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x2aa')]+'='+_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x175b')];break;case _0x21f848('0x8fa'):break;default:_0x38d73d[0x0]=_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x1115')],_0x38d73d[0x1]=_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0xb0a')],_0x3e91a0[_0x21f848('0xca8')][_0x21f848('0x2077')]=_0x38d73d['join'](',');}_0x4ffebf(_0x3e91a0[_0x21f848('0xca8')]);}function _0x4ffebf(_0x86ce9e){const _0x975d4e=_0x41a137;_0x7c5b21[_0x975d4e('0x212a')](_0x86ce9e);}}const _0x50c1b8=_0x4ef9dc;_0x4d6be4[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x7ae'),_0x4376d8('0x127b'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x4d6be4(_0x253746,_0x2fe657,_0x551999,_0x16f76e,_0x45b6c,_0x3eefc7,_0x5a1325,_0x1537fc){const _0x1da379=_0x4376d8,_0x5df97c=this;_0x5df97c[_0x1da379('0x197c')]=_0x5a1325['getCurrentUser'](),_0x5df97c[_0x1da379('0x73e')]=[],_0x5df97c[_0x1da379('0x24d3')]='MAIL.EDIT_'+(_0x16f76e[_0x1da379('0x1c54')]||_0x16f76e[_0x1da379('0x643')])['toUpperCase'](),_0x5df97c[_0x1da379('0x1132')]=angular['copy'](_0x16f76e),_0x5df97c[_0x1da379('0x103e')]=_0x1537fc,_0x5df97c[_0x1da379('0x6ee')]={};if(_0x5df97c[_0x1da379('0x1132')]['appdata'])switch(_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1c54')]?_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1c54')]['toLowerCase']():_0x5df97c['tag'][_0x1da379('0x643')][_0x1da379('0x19b')]()){case _0x1da379('0x8fa'):break;case _0x1da379('0x2526'):{const _0x50bb10=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2077')][_0x1da379('0x2007')](',');_0x5df97c[_0x1da379('0x1132')][_0x1da379('0xdb5')]=_0x50bb10[0x0],_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x3e1')]=_0x50bb10[0x1],_0x5df97c['tag'][_0x1da379('0x1083')]=_0x50bb10[_0x1da379('0x275f')](0x2,_0x50bb10[_0x1da379('0x1f73')])[_0x1da379('0x1eba')](',');}break;case'dialogflowv2':{const _0x5637d3=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2077')][_0x1da379('0x2007')](',');_0x5df97c['tag'][_0x1da379('0x28ab')]=_0x5637d3[0x0],_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2814')]=_0x5637d3[0x1],_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1bc2')]=_0x5637d3[0x2],_0x5df97c[_0x1da379('0x1132')]['language']=_0x5637d3[0x3],_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1083')]=_0x5637d3[_0x1da379('0x275f')](0x4,_0x5637d3[_0x1da379('0x1f73')])['join'](',');}break;case _0x1da379('0x16a9'):{const _0x5a3377=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2077')][_0x1da379('0x2007')](',');_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1452')]=_0x5a3377[0x0],_0x5df97c[_0x1da379('0x1132')]['secretaccesskey']=_0x5a3377[0x1],_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1dcf')]=_0x5a3377[0x2],_0x5df97c['tag'][_0x1da379('0x4a')]=_0x5a3377[0x3],_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1083')]=_0x5a3377[_0x1da379('0x275f')](0x4,_0x5a3377[_0x1da379('0x1f73')])[_0x1da379('0x1eba')](',');}break;case _0x1da379('0x96e'):{const _0xc47856=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2077')][_0x1da379('0x2007')](',');_0x5df97c[_0x1da379('0x1132')]['times']=isNaN(_0xc47856[0x0])?_0xc47856[0x0]:parseInt(_0xc47856[0x0],0xa),_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x132f')]=_0xc47856['slice'](0x1,_0xc47856['length'])[_0x1da379('0x1eba')](',');}break;case'message':_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x132f')]=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2077')];break;case'set':_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2aa')]=_0x5df97c['tag'][_0x1da379('0x2077')]['split']('=')[0x0],_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x175b')]=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2077')][_0x1da379('0x2007')]('=')[0x1];break;case _0x1da379('0x17c6'):_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x87c')]=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2077')];break;default:{const _0x47acb9=_0x5df97c['tag'][_0x1da379('0x2077')][_0x1da379('0x2007')](',');_0x5df97c['tag'][_0x1da379('0x1132')]=_0x49cbdd()[_0x1da379('0x109a')](_0x47acb9[0x0])?_0x47acb9[0x0]:isNaN(_0x47acb9[0x0])?_0x47acb9[0x0]:parseInt(_0x47acb9[0x0],0xa);}break;}else{}_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x412')]&&_0x5df97c['tag'][_0x1da379('0x412')]['toLowerCase']()===_0x1da379('0x1ade')&&_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1c54')]['toLowerCase']()==='outbounddial'&&(_0x5df97c['tag'][_0x1da379('0x11d4')]=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x2154')]?_0x5df97c[_0x1da379('0x1132')]['phone']['split']('$')[0x0]:undefined,_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x1a8e')]=_0x5df97c[_0x1da379('0x1132')][_0x1da379('0x17f4')]?'CALLERID(all)='+_0x5df97c[_0x1da379('0x1132')]['callerID']:undefined);_0x5df97c[_0x1da379('0x10db')]=_0x376e7d,_0x5df97c[_0x1da379('0x136e')]=_0x5c74c2,_0x5a1325[_0x1da379('0x1ba2')](_0x1da379('0x20bf'))?_0x3eefc7[_0x1da379('0x1132')][_0x1da379('0x1c53')]({'fields':'id,name','sort':_0x1da379('0x2aa'),'nolimit':_0x1da379('0xe34')})[_0x1da379('0x1af5')]['then'](function(_0x1dc43d){const _0x24860f=_0x1da379;_0x5df97c[_0x24860f('0x1522')]=_0x1dc43d[_0x24860f('0x2319')]||[];})[_0x1da379('0x16df')](function(_0x5f0704){const _0x32f0a5=_0x1da379;_0x551999[_0x32f0a5('0x1db9')]({'title':_0x5f0704['status']?_0x32f0a5('0x14f7')+_0x5f0704[_0x32f0a5('0x11c5')]+_0x32f0a5('0x16e4')+_0x5f0704['statusText']:_0x32f0a5('0x14e7'),'msg':_0x5f0704[_0x32f0a5('0x1457')]?JSON[_0x32f0a5('0x678')](_0x5f0704[_0x32f0a5('0x1457')]):_0x5f0704['toString']()});}):_0x3eefc7['tag'][_0x1da379('0x1c53')]({'fields':_0x1da379('0x12d2'),'sort':'name','nolimit':_0x1da379('0xe34')})['$promise']['then'](function(_0x3031d6){const _0x2da4ca=_0x1da379;_0x5df97c['tags']=_0x3031d6[_0x2da4ca('0x2319')]||[];})[_0x1da379('0x17e7')](function(){const _0x415d59=_0x1da379;return _0x3eefc7['userProfileSection'][_0x415d59('0x1c53')]({'userProfileId':_0x5df97c['currentUser'][_0x415d59('0x1e76')],'sectionId':0x3f0})[_0x415d59('0x1af5')];})[_0x1da379('0x17e7')](function(_0x51a73b){const _0x5e06c6=_0x1da379,_0x480d54=_0x51a73b&&_0x51a73b['rows']?_0x51a73b['rows'][0x0]:null;if(!_0x480d54){const _0x54df65=[];let _0x53c9d2=null;_0x5df97c[_0x5e06c6('0x1132')]&&(_0x53c9d2=_0x49cbdd()['find'](_0x5df97c['tags'],{'name':_0x5df97c[_0x5e06c6('0x1132')][_0x5e06c6('0x1132')]}));for(let _0x13d6b6=0x0;_0x13d6b6<_0x5df97c['tags'][_0x5e06c6('0x1f73')];_0x13d6b6++){_0x53c9d2&&_0x5df97c[_0x5e06c6('0x1522')][_0x13d6b6]['id']===_0x53c9d2['id']&&(_0x5df97c[_0x5e06c6('0x1522')][_0x13d6b6][_0x5e06c6('0xe5c')]=![],_0x54df65[_0x5e06c6('0x269f')](_0x5df97c['tags'][_0x13d6b6]));}_0x5df97c[_0x5e06c6('0x1522')]=_0x54df65;}else{if(!_0x480d54[_0x5e06c6('0x9e3')])return _0x3eefc7['userProfileResource'][_0x5e06c6('0x1c53')]({'sectionId':_0x480d54['id']})[_0x5e06c6('0x1af5')][_0x5e06c6('0x17e7')](function(_0x77d268){const _0x5b7f23=_0x5e06c6,_0x4a29a3=_0x49cbdd()['map'](_0x77d268[_0x5b7f23('0x2319')],function(_0x555afa){const _0xb52173=_0x5b7f23;return _0x49cbdd()[_0xb52173('0xe8e')](_0x5df97c[_0xb52173('0x1522')],{'id':_0x555afa['resourceId']});});let _0x251170=null;_0x5df97c[_0x5b7f23('0x1132')]&&(_0x251170=_0x49cbdd()[_0x5b7f23('0xe8e')](_0x5df97c['tags'],{'name':_0x5df97c[_0x5b7f23('0x1132')]['tag']}));if(_0x251170&&!_0x49cbdd()[_0x5b7f23('0x26f8')](_0x4a29a3,['id',_0x251170['id']])){const _0x59a7a6=_0x49cbdd()[_0x5b7f23('0xe8e')](_0x5df97c[_0x5b7f23('0x1522')],{'id':_0x251170['id']});_0x59a7a6[_0x5b7f23('0xe5c')]=![],_0x4a29a3[_0x5b7f23('0x269f')](_0x59a7a6);}_0x5df97c[_0x5b7f23('0x1522')]=_0x4a29a3;});}})['catch'](function(_0x4c59ad){const _0x100aa0=_0x1da379;_0x551999[_0x100aa0('0x1db9')]({'title':_0x4c59ad['status']?_0x100aa0('0x14f7')+_0x4c59ad[_0x100aa0('0x11c5')]+_0x100aa0('0x16e4')+_0x4c59ad[_0x100aa0('0x1833')]:_0x100aa0('0x1221'),'msg':_0x4c59ad['data']?JSON['stringify'](_0x4c59ad[_0x100aa0('0x1457')]):_0x4c59ad[_0x100aa0('0x9b6')]()});});function _0x376e7d(){const _0x441a0a=_0x1da379;_0x5df97c[_0x441a0a('0x73e')]=[];const _0x218c2a=[];_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x412')]&&_0x5df97c['tag'][_0x441a0a('0x412')][_0x441a0a('0x19b')]()===_0x441a0a('0x1ade')&&_0x5df97c[_0x441a0a('0x1132')]['appType']===_0x441a0a('0xbdc')&&(_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x2154')]=_0x45b6c[_0x441a0a('0x12af')]?(_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x11d4')]||'')+_0x441a0a('0x2265')+_0x45b6c['cutdigits']+'}':(_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x11d4')]||'')+_0x441a0a('0x150e'),_0x45b6c['recordingFormat']!=='none'?_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x19')][_0x441a0a('0x2567')](_0x441a0a('0xa22'))<0x0&&(_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x19')]+=_0x441a0a('0xa22')):_0x5df97c['tag'][_0x441a0a('0x19')]=_0x5df97c[_0x441a0a('0x1132')]['options'][_0x441a0a('0x737')](_0x441a0a('0xa22'),''));const _0x53046e=_0x49cbdd()[_0x441a0a('0xe8e')](_0x5df97c[_0x441a0a('0x1522')],{'name':_0x5df97c['tag'][_0x441a0a('0x1132')]});_0x53046e&&(_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x1686')]=_0x53046e['id']);if(_0x5df97c[_0x441a0a('0x1132')]['appType']&&_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x1c54')]===_0x441a0a('0x8fa')){}else switch((_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x643')]||_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x1c54')])[_0x441a0a('0x19b')]()){case _0x441a0a('0xf2e'):_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x2077')]=_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x2aa')]+'='+_0x5df97c[_0x441a0a('0x1132')][_0x441a0a('0x175b')];break;case _0x441a0a('0x8fa'):break;default:_0x218c2a[0x0]=_0x5df97c['tag'][_0x441a0a('0x1132')],_0x5df97c['tag']['appdata']=_0x218c2a['join'](',');}_0x5c74c2(_0x5df97c[_0x441a0a('0x1132')]);}function _0x5c74c2(_0x582798){const _0x5a8c0c=_0x1da379;_0x253746[_0x5a8c0c('0x212a')](_0x582798);}}const _0xb7531f=_0x4d6be4;_0x383c9b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),'$state','$q','$translate',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x383c9b(_0x4c7a40,_0x3dfda8,_0x3dc5ff,_0x84cb1,_0x894a5,_0x3c1e78,_0x2a1c5c,_0x3138a6,_0x25358d,_0x195c8b,_0x29bc22){const _0x22a496=_0x4376d8,_0x385b0b=this;_0x385b0b[_0x22a496('0x197c')]=_0x29bc22['getCurrentUser'](),_0x385b0b[_0x22a496('0x127b')]={},_0x385b0b[_0x22a496('0x11e5')]={'count':0x0,'rows':[]},_0x385b0b[_0x22a496('0x1120')]=[],_0x385b0b['crudPermissions'],_0x385b0b[_0x22a496('0x826')]={'read':'null','closed':_0x22a496('0x9bb'),'sort':_0x22a496('0x2555'),'includeAll':'true','limit':0xa,'page':0x1},_0x385b0b[_0x22a496('0x161d')]=_0xf64fde,_0x385b0b[_0x22a496('0x1a20')]=_0x556649,_0x385b0b[_0x22a496('0x1f83')]=_0x319a3a,_0x385b0b[_0x22a496('0x130d')]=_0x22bddb,_0x385b0b['getMailAccountInteractions']=_0x223501,_0x385b0b[_0x22a496('0xd02')]=_0x137710,_0x385b0b[_0x22a496('0x585')]=_0x1ef0bf,_0x385b0b[_0x22a496('0x1669')]=_0xd94f2c,_0x385b0b[_0x22a496('0x10f7')]=_0x53bc24,_0x385b0b[_0x22a496('0xb76')]=_0x4ee7c8;function _0xf64fde(_0x1f7d36,_0x40f594){const _0x30b4c5=_0x22a496;_0x385b0b[_0x30b4c5('0x127b')]=_0x1f7d36,_0x385b0b[_0x30b4c5('0x103e')]=typeof _0x40f594!==_0x30b4c5('0xfad')?_0x40f594:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x385b0b[_0x30b4c5('0x826')][_0x30b4c5('0xbda')]=_0x385b0b['mailAccount']['id'],_0x385b0b[_0x30b4c5('0xfb6')]={'fields':_0x23eedc()},_0x2c3f4d();}function _0x2c3f4d(){const _0x4c242f=_0x22a496;return _0x195c8b['tag'][_0x4c242f('0x1c53')]()[_0x4c242f('0x1af5')][_0x4c242f('0x17e7')](function(_0x429f77){const _0x3d62b0=_0x4c242f;_0x385b0b[_0x3d62b0('0x1522')]=_0x429f77||{'count':0x0,'rows':[]};})['then'](function(){const _0x486a01=_0x4c242f;return _0x195c8b[_0x486a01('0x66')]['get']({'nolimit':!![]})[_0x486a01('0x1af5')]['then'](function(_0x5dace1){const _0x415e29=_0x486a01;_0x385b0b[_0x415e29('0x1abe')]=_0x5dace1||{'count':0x0,'rows':[]};});})[_0x4c242f('0x17e7')](function(){const _0x2eed63=_0x4c242f;_0x385b0b[_0x2eed63('0x137d')]=_0x39875b();});}function _0x39875b(){const _0x4f4400=_0x22a496;return[{'name':_0x4f4400('0x1786'),'key':_0x4f4400('0x7c9'),'type':_0x4f4400('0xbd4'),'label':_0x4f4400('0x1ee1')},{'name':_0x4f4400('0xd08'),'key':'read','type':_0x4f4400('0x2897'),'label':_0x4f4400('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x4f4400('0x263')},{'value':0x1,'translate':'DASHBOARDS.READ'},{'value':null,'translate':_0x4f4400('0x9cf')}]},{'name':_0x4f4400('0x51c'),'key':_0x4f4400('0x2bc'),'type':_0x4f4400('0x2897'),'label':_0x4f4400('0x12f2'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x4f4400('0x2322')},{'value':null,'translate':_0x4f4400('0x9cf')}]},{'name':_0x4f4400('0x1ff0'),'key':'substatus','type':'select','label':_0x4f4400('0x664'),'options':_0x385b0b['subStatuses']['rows'],'customOptions':[{'value':_0x4f4400('0x9bb'),'translate':_0x4f4400('0x1d09')},{'value':undefined,'translate':_0x4f4400('0x9cf')}],'ngValue':_0x4f4400('0x2aa'),'ngIf':'closed\x20===\x200'},{'name':_0x4f4400('0x1874'),'key':_0x4f4400('0x5e5'),'type':_0x4f4400('0x2897'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x4f4400('0x9bb'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':_0x4f4400('0x9cf')}]},{'name':_0x4f4400('0xe16'),'key':_0x4f4400('0x1132'),'type':_0x4f4400('0x1227'),'label':'DASHBOARDS.SELECT_TAG','options':_0x385b0b['tags'][_0x4f4400('0x2319')],'placeholder':_0x4f4400('0x21aa')}];}function _0x23eedc(){const _0x43759e=_0x22a496;return[{'name':'Id','column':'id','type':_0x43759e('0x7b8')},{'name':_0x43759e('0x239b'),'column':'Contact','type':_0x43759e('0x682'),'options':{'searchFields':['firstName',_0x43759e('0x8d6'),_0x43759e('0x822')],'route':{'model':_0x43759e('0x1d2a'),'action':'get','params':{'fields':_0x43759e('0x2030'),'Contact':_0x43759e('0xe1e'),'nolimit':!![]}},'extraOperators':[_0x43759e('0x1ed7')],'excludedOperators':[_0x43759e('0xdaa')]}},{'name':'Subject','column':_0x43759e('0x2179'),'type':_0x43759e('0x132f'),'options':{'excludedOperators':['$eq',_0x43759e('0xdaa')]}},{'name':_0x43759e('0x2854'),'column':'plainBody','type':_0x43759e('0x132f'),'options':{'excludedOperators':[_0x43759e('0x1767'),_0x43759e('0xdaa')]}},{'name':_0x43759e('0x51c'),'column':'closed','type':_0x43759e('0x2897'),'values':[{'id':0x0,'translate':_0x43759e('0x1f4f')},{'id':0x1,'translate':_0x43759e('0x2322')}],'options':{'excludedOperators':[_0x43759e('0xdaa')]}},{'name':_0x43759e('0x1ff0'),'column':_0x43759e('0x2882'),'type':_0x43759e('0x1227'),'options':{'field':_0x43759e('0x2aa'),'route':{'model':_0x43759e('0x66'),'action':'get','params':{'nolimit':!![]}},'excludedOperators':[_0x43759e('0x2045')]}},{'name':'Agent','column':'User','type':_0x43759e('0x682'),'options':{'table':'i','route':{'model':'user','action':_0x43759e('0x1c53'),'params':{'role':_0x43759e('0x684'),'fields':_0x43759e('0x1f7'),'nolimit':!![]}},'searchFields':['fullname',_0x43759e('0x2aa')],'extraOperators':[_0x43759e('0x1ed7')],'excludedOperators':[_0x43759e('0xdaa')]}},{'name':'Tags','column':_0x43759e('0xe16'),'type':_0x43759e('0x1227'),'options':{'route':{'model':_0x43759e('0x1132'),'action':_0x43759e('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x43759e('0x2045')]}},{'name':_0x43759e('0x1786'),'column':_0x43759e('0x7c9'),'type':_0x43759e('0xbd4'),'options':{'excludedOperators':['$ne']}},{'name':_0x43759e('0xf8b'),'column':'unreadMessages','type':_0x43759e('0x2897'),'values':[{'id':0x1,'translate':_0x43759e('0x2874')},{'id':0x0,'translate':_0x43759e('0x263')}],'options':{'excludedOperators':[_0x43759e('0xdaa')]}}];}function _0x1ef0bf(){const _0x4322dd=_0x22a496;_0x2a1c5c[_0x4322dd('0x28e2')]({'controller':_0x4322dd('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0x4322dd('0x1ce1')](_0x3138a6[_0x4322dd('0x13aa')]),'clickOutsideToClose':![],'locals':{'fields':_0x385b0b[_0x4322dd('0xfb6')][_0x4322dd('0x9c9')],'color':undefined,'storagePath':_0x4322dd('0x1927')},'fullscreen':!![]})[_0x4322dd('0x17e7')](function(_0x27978c){const _0x16db80=_0x4322dd;_0x385b0b[_0x16db80('0x826')]['search']=_0x27978c===![]?undefined:_0x27978c;if(_0x385b0b[_0x16db80('0x826')][_0x16db80('0xfba')])_0x385b0b['query']['search']+=_0x16db80('0x61e')+_0x385b0b[_0x16db80('0x127b')]['id']+']',_0x223501();else _0x27978c===![]&&_0x223501();})[_0x4322dd('0x16df')](function(_0x5dd2bb){const _0x59a69b=_0x4322dd;_0x25358d['error']({'title':_0x59a69b('0x1288'),'msg':_0x5dd2bb[_0x59a69b('0x1457')]?JSON[_0x59a69b('0x678')](_0x5dd2bb[_0x59a69b('0x1457')][_0x59a69b('0x1603')]):_0x5dd2bb['toString']()});});}function _0x319a3a(_0x5b15b8,_0x4e57a1,_0x1c633a){const _0x3675fe=_0x22a496;return _0x195c8b[_0x3675fe('0xa5')][_0x3675fe('0x1244')]({'id':_0x5b15b8['id'],'exists':!![],'attachments':_0x1c633a})[_0x3675fe('0x1af5')][_0x3675fe('0x17e7')](function(_0x54e45b){const _0x5e2b3e=_0x3675fe,_0x581472=[_0x54e45b[_0x5e2b3e('0x3ca')]];let _0x146bdb='interaction'+_0x5b15b8['id'];const _0x1d978c=new Blob(_0x581472,{'type':_0x54e45b[_0x5e2b3e('0x412')]});_0x146bdb='mail-interaction'+_0x5b15b8['id']+_0x5e2b3e('0x71b');const _0x423ef3=window[_0x5e2b3e('0x2be')]['createElement']('a');_0x423ef3['setAttribute']('href',URL[_0x5e2b3e('0x28ce')](_0x1d978c)),_0x423ef3['setAttribute']('download',_0x146bdb),document['body'][_0x5e2b3e('0x128c')](_0x423ef3),_0x423ef3['click']();})['catch'](function(_0x477c02){const _0x167e18=_0x3675fe;if(_0x477c02[_0x167e18('0x1457')]&&_0x477c02[_0x167e18('0x1457')][_0x167e18('0x73e')]&&_0x477c02[_0x167e18('0x1457')]['errors'][_0x167e18('0x1f73')])for(let _0x242f98=0x0;_0x242f98<_0x477c02['data'][_0x167e18('0x73e')][_0x167e18('0x1f73')];_0x242f98+=0x1){_0x25358d[_0x167e18('0x1db9')]({'title':_0x477c02[_0x167e18('0x1457')][_0x167e18('0x73e')][_0x242f98]['type'],'msg':_0x477c02[_0x167e18('0x1457')][_0x167e18('0x73e')][_0x242f98][_0x167e18('0x1603')]});}else _0x25358d[_0x167e18('0x1db9')]({'title':_0x477c02[_0x167e18('0x11c5')]?_0x167e18('0x14f7')+_0x477c02[_0x167e18('0x11c5')]+'\x20-\x20'+_0x477c02[_0x167e18('0x1833')]:_0x167e18('0x20a'),'msg':_0x477c02[_0x167e18('0x1457')]?JSON[_0x167e18('0x678')](_0x477c02[_0x167e18('0x1457')]['message']):_0x477c02[_0x167e18('0x9b6')]()});});}function _0x556649(_0x4edf30,_0x1a6945){const _0x5f2078=_0x22a496,_0x110668=_0x2a1c5c[_0x5f2078('0x1121')]()[_0x5f2078('0x24d3')](_0x5f2078('0xd7'))[_0x5f2078('0x211f')](''+(_0x4edf30[_0x5f2078('0x2aa')]||_0x4edf30['id']&&_0x49cbdd()[_0x5f2078('0x233c')]('interaction\x20#')+_0x4edf30['id']||_0x5f2078('0x1219'))+_0x5f2078('0x1d23')+_0x5f2078('0xe9f'))[_0x5f2078('0x2095')]('delete\x20interaction')[_0x5f2078('0x104f')](_0x1a6945)['ok']('OK')[_0x5f2078('0x1d47')](_0x5f2078('0x28a0'));_0x2a1c5c['show'](_0x110668)[_0x5f2078('0x17e7')](function(){_0x53bc24(_0x4edf30);},function(){const _0x51c102=_0x5f2078;console[_0x51c102('0x1d63')](_0x51c102('0x28a0'));});}function _0x22bddb(_0x1ad233){const _0x291b43=_0x22a496;_0x385b0b[_0x291b43('0x11e5')]=_0x1ad233||{'count':0x0,'rows':[]};for(let _0x4f5982=0x0;_0x4f5982<_0x385b0b['mailAccountInteractions'][_0x291b43('0x2319')][_0x291b43('0x1f73')];_0x4f5982+=0x1){const _0x41e76d=_0x385b0b[_0x291b43('0x11e5')][_0x291b43('0x2319')][_0x4f5982];_0x255373(_0x41e76d),_0x41e76d[_0x291b43('0xe49')]['name']=_0x46e850(_0x41e76d);}}function _0x223501(){const _0x212ca7=_0x22a496;_0x385b0b[_0x212ca7('0x826')]['offset']=(_0x385b0b[_0x212ca7('0x826')][_0x212ca7('0x115a')]-0x1)*_0x385b0b[_0x212ca7('0x826')]['limit'],_0x385b0b[_0x212ca7('0x1691')]=_0x195c8b[_0x212ca7('0xa5')][_0x212ca7('0x1c53')](_0x385b0b[_0x212ca7('0x826')],_0x22bddb)[_0x212ca7('0x1af5')];}function _0x137710(_0x50d2ea,_0x3d9cd2){const _0x2120b1=_0x22a496;_0x2a1c5c[_0x2120b1('0x28e2')]({'controller':_0x2120b1('0x13b4'),'controllerAs':'vm','templateUrl':_0x46cd84,'parent':angular[_0x2120b1('0x1ce1')](_0x3138a6[_0x2120b1('0x13aa')]),'targetEvent':_0x50d2ea,'clickOutsideToClose':!![],'onShowing':function(_0x48e55e){const _0x313c96=_0x2120b1;_0x48e55e['vm'][_0x313c96('0x161d')]({'id':0x1,'channel':_0x313c96('0xc2'),'interaction':_0x3d9cd2,'spy':!![]},_0x3dfda8[_0x313c96('0x178c')]['vm'][_0x313c96('0x1aeb')]);}});}function _0x53bc24(_0x439c59){const _0xcd70e0=_0x22a496;_0x195c8b[_0xcd70e0('0xa5')][_0xcd70e0('0x1da6')]({'id':_0x439c59['id']})['$promise']['then'](function(){const _0x25c4d9=_0xcd70e0;_0x49cbdd()[_0x25c4d9('0x5f3')](_0x385b0b['mailAccountInteractions'][_0x25c4d9('0x2319')],{'id':_0x439c59['id']}),_0x385b0b['mailAccountInteractions'][_0x25c4d9('0x335')]-=0x1,!_0x385b0b[_0x25c4d9('0x11e5')][_0x25c4d9('0x2319')][_0x25c4d9('0x1f73')]&&_0x223501(),_0x25358d[_0x25c4d9('0x130d')]({'title':'Interaction\x20deleted!','msg':_0x439c59[_0x25c4d9('0x2aa')]?_0x439c59[_0x25c4d9('0x2aa')]+_0x25c4d9('0x149f'):''});})[_0xcd70e0('0x16df')](function(_0x3a8e6a){const _0x1cd24f=_0xcd70e0;if(_0x3a8e6a['data']&&_0x3a8e6a['data'][_0x1cd24f('0x73e')]&&_0x3a8e6a['data'][_0x1cd24f('0x73e')][_0x1cd24f('0x1f73')]){_0x385b0b[_0x1cd24f('0x73e')]=_0x3a8e6a[_0x1cd24f('0x1457')][_0x1cd24f('0x73e')]||[{'message':_0x3a8e6a[_0x1cd24f('0x9b6')](),'type':_0x1cd24f('0x2061')}];for(let _0x2d2542=0x0;_0x2d2542<_0x3a8e6a['data'][_0x1cd24f('0x73e')]['length'];_0x2d2542++){_0x25358d['error']({'title':_0x3a8e6a[_0x1cd24f('0x1457')][_0x1cd24f('0x73e')][_0x2d2542][_0x1cd24f('0x412')],'msg':_0x3a8e6a[_0x1cd24f('0x1457')][_0x1cd24f('0x73e')][_0x2d2542][_0x1cd24f('0x1603')]});}}else _0x25358d[_0x1cd24f('0x1db9')]({'title':_0x3a8e6a[_0x1cd24f('0x11c5')]?_0x1cd24f('0x14f7')+_0x3a8e6a[_0x1cd24f('0x11c5')]+_0x1cd24f('0x16e4')+_0x3a8e6a[_0x1cd24f('0x1833')]:_0x1cd24f('0x2061'),'msg':_0x3a8e6a[_0x1cd24f('0x1457')]?JSON[_0x1cd24f('0x678')](_0x3a8e6a['data'][_0x1cd24f('0x1603')]):_0x3a8e6a[_0x1cd24f('0x1603')]||_0x3a8e6a[_0x1cd24f('0x9b6')]()});});}function _0xd94f2c(){const _0x3daeee=_0x22a496,_0xcad4d6=angular[_0x3daeee('0x14e5')](_0x385b0b[_0x3daeee('0x1120')]);return _0x385b0b[_0x3daeee('0x1120')]=[],_0xcad4d6;}function _0x4ee7c8(_0x3a29ab){const _0x20b193=_0x22a496,_0x5bec8a=_0x2a1c5c[_0x20b193('0x1121')]()[_0x20b193('0x24d3')](_0x20b193('0x144e'))['htmlContent'](_0x20b193('0xa53')+_0x385b0b[_0x20b193('0x1120')][_0x20b193('0x1f73')]+_0x20b193('0x145a')+_0x20b193('0xe9f'))[_0x20b193('0x2095')]('delete\x20interactions')[_0x20b193('0x104f')](_0x3a29ab)['ok']('OK')[_0x20b193('0x1d47')](_0x20b193('0x28a0'));_0x2a1c5c[_0x20b193('0x28e2')](_0x5bec8a)[_0x20b193('0x17e7')](function(){const _0x21b383=_0x20b193;_0x385b0b[_0x21b383('0x1120')][_0x21b383('0xccd')](function(_0x15ed5c){_0x53bc24(_0x15ed5c);}),_0x385b0b[_0x21b383('0x1120')]=[];});}function _0x255373(_0x5942b){const _0x22f04b=_0x22a496;if(!_0x49cbdd()['isEmpty'](_0x5942b['to'])&&!_0x49cbdd()[_0x22f04b('0x24b0')](_0x5942b['to'],_0x385b0b['mailAccount'][_0x22f04b('0x822')]))_0x5942b[_0x22f04b('0x192c')]=_0x5942b['to']['split']('\x20<')[0x0],_0x5942b[_0x22f04b('0x1720')]=_0x5942b['to']['split']('<')[_0x22f04b('0xbbc')]()[_0x22f04b('0x2007')]('>')[0x0];else _0x5942b[_0x22f04b('0x239b')]?(_0x5942b[_0x22f04b('0x192c')]=(_0x5942b[_0x22f04b('0x239b')][_0x22f04b('0x1761')]||'')+'\x20'+(_0x5942b[_0x22f04b('0x239b')][_0x22f04b('0x8d6')]||''),_0x5942b[_0x22f04b('0x1720')]=_0x5942b[_0x22f04b('0x239b')][_0x22f04b('0x822')]||''):_0x5942b['contactName']=_0x894a5['instant']('MAIL.UNKNOWN');}function _0x46e850(_0x4aabd3){const _0xc62d6e=_0x22a496;if(_0x4aabd3[_0xc62d6e('0x5e5')])return _0x4aabd3[_0xc62d6e('0x5e5')]===_0x385b0b[_0xc62d6e('0x197c')]['id']?_0x894a5[_0xc62d6e('0x1acc')](_0xc62d6e('0x2422')):_0x4aabd3[_0xc62d6e('0xe49')][_0xc62d6e('0xea6')]+'\x20<'+_0x4aabd3[_0xc62d6e('0xe49')]['internal']+'>';return _0x894a5['instant'](_0xc62d6e('0x154d'));}let _0x20f8fa=!![],_0x11b145=0x1;_0x3dfda8[_0x22a496('0x620')](_0x22a496('0x4c3'),function(_0x26cf83,_0xee9bd5){const _0x21421b=_0x22a496;_0x20f8fa?_0x3c1e78(function(){_0x20f8fa=![];}):(!_0xee9bd5&&(_0x11b145=_0x385b0b[_0x21421b('0x826')]['page']),_0x26cf83!==_0xee9bd5&&(_0x385b0b[_0x21421b('0x826')][_0x21421b('0x115a')]=0x1),!_0x26cf83&&(_0x385b0b['query']['page']=_0x11b145),_0x223501());});}const _0x5bd657=_0x383c9b,_0x405c44=_0x4cf2bc['p']+_0x4376d8('0x1ed1');_0x3276ce['$inject']=[_0x4376d8('0x28db'),'$scope',_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x108a'),'api',_0x4376d8('0x1885')];function _0x3276ce(_0x1edd2f,_0x1e5002,_0x593c98,_0x2c6191,_0x476bd2,_0x2cdbbe,_0xbb05b4,_0x189ee5,_0x3ab2b4,_0x47aeec,_0x1ba644){const _0x584fc4=_0x4376d8,_0x5ee725=this;_0x5ee725['currentUser']=_0x1ba644[_0x584fc4('0x2831')](),_0x5ee725[_0x584fc4('0x127b')]={},_0x5ee725[_0x584fc4('0xa9a')]={'count':0x0,'rows':[]},_0x5ee725[_0x584fc4('0x1a26')]=[],_0x5ee725[_0x584fc4('0x103e')],_0x5ee725[_0x584fc4('0x826')]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x5ee725['init']=_0x573b67,_0x5ee725[_0x584fc4('0x1a20')]=_0x1e6e52,_0x5ee725[_0x584fc4('0x130d')]=_0x393525,_0x5ee725[_0x584fc4('0x1fd8')]=_0x1aa731,_0x5ee725[_0x584fc4('0x1dba')]=_0x64c40d,_0x5ee725[_0x584fc4('0x27c5')]=_0x24d5e7,_0x5ee725['deleteMailAccountMailCannedAnswer']=_0x5cb313,_0x5ee725[_0x584fc4('0x189e')]=_0x3af4a7;function _0x573b67(_0x37e4dc,_0x5479d6){const _0x416843=_0x584fc4;_0x5ee725[_0x416843('0x127b')]=_0x37e4dc,_0x5ee725[_0x416843('0x103e')]=typeof _0x5479d6!==_0x416843('0xfad')?_0x5479d6:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5ee725['query'][_0x416843('0xbda')]=_0x5ee725[_0x416843('0x127b')]['id'],_0x5ee725['query']['id']=_0x5ee725['mailAccount']['id'],_0x1aa731();}function _0x1e6e52(_0x5eef2d,_0x1dca5d){const _0x11f745=_0x584fc4,_0x3bd15d=_0xbb05b4[_0x11f745('0x1121')]()[_0x11f745('0x24d3')](_0x11f745('0x174b'))[_0x11f745('0x211f')](_0x11f745('0xa53')+(_0x5eef2d[_0x11f745('0x2aa')]||_0x5eef2d['id']&&_0x49cbdd()[_0x11f745('0x233c')]('mailCannedAnswer\x20#')+_0x5eef2d['id']||'mailCannedAnswer')+_0x11f745('0x1d23')+_0x11f745('0xe9f'))['ariaLabel']('delete\x20mailCannedAnswer')[_0x11f745('0x104f')](_0x1dca5d)['ok']('OK')[_0x11f745('0x1d47')]('CANCEL');_0xbb05b4[_0x11f745('0x28e2')](_0x3bd15d)[_0x11f745('0x17e7')](function(){_0x5cb313(_0x5eef2d);},function(){const _0x2b9080=_0x11f745;console[_0x2b9080('0x1d63')](_0x2b9080('0x28a0'));});}function _0x393525(_0x4648e5){const _0x503ba3=_0x584fc4;_0x5ee725[_0x503ba3('0xa9a')]=_0x4648e5||{'count':0x0,'rows':[]};}function _0x1aa731(){const _0x3f6b1e=_0x584fc4;_0x5ee725[_0x3f6b1e('0x826')][_0x3f6b1e('0xf19')]=(_0x5ee725[_0x3f6b1e('0x826')][_0x3f6b1e('0x115a')]-0x1)*_0x5ee725['query'][_0x3f6b1e('0x193b')],_0x5ee725[_0x3f6b1e('0x1691')]=_0x47aeec[_0x3f6b1e('0x127b')][_0x3f6b1e('0x1805')](_0x5ee725['query'],_0x393525)[_0x3f6b1e('0x1af5')];}function _0x64c40d(_0x2d127e,_0x4d9629){const _0x83dc6a=_0x584fc4;_0xbb05b4[_0x83dc6a('0x28e2')]({'controller':'CreateOrEditMailCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x405c44,'parent':angular[_0x83dc6a('0x1ce1')](_0x189ee5['body']),'targetEvent':_0x2d127e,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x5ee725[_0x83dc6a('0x127b')],'mailCannedAnswer':_0x4d9629,'mailCannedAnswers':_0x5ee725['mailAccountMailCannedAnswers'][_0x83dc6a('0x2319')],'license':null,'setting':null,'crudPermissions':_0x5ee725[_0x83dc6a('0x103e')]}});}function _0x5cb313(_0x3c98b7){const _0x553a36=_0x584fc4;_0x47aeec[_0x553a36('0x2043')][_0x553a36('0x1da6')]({'id':_0x3c98b7['id']})['$promise']['then'](function(){const _0x2fb154=_0x553a36;_0x49cbdd()[_0x2fb154('0x5f3')](_0x5ee725[_0x2fb154('0xa9a')][_0x2fb154('0x2319')],{'id':_0x3c98b7['id']}),_0x5ee725[_0x2fb154('0xa9a')][_0x2fb154('0x335')]-=0x1,!_0x5ee725['mailAccountMailCannedAnswers'][_0x2fb154('0x2319')][_0x2fb154('0x1f73')]&&_0x1aa731(),_0x3ab2b4['success']({'title':'MailCannedAnswer\x20deleted!','msg':_0x3c98b7['name']?_0x3c98b7[_0x2fb154('0x2aa')]+_0x2fb154('0x149f'):''});})[_0x553a36('0x16df')](function(_0x47f094){const _0x3e761b=_0x553a36;if(_0x47f094[_0x3e761b('0x1457')]&&_0x47f094[_0x3e761b('0x1457')][_0x3e761b('0x73e')]&&_0x47f094[_0x3e761b('0x1457')]['errors'][_0x3e761b('0x1f73')]){_0x5ee725['errors']=_0x47f094[_0x3e761b('0x1457')]['errors']||[{'message':_0x47f094[_0x3e761b('0x9b6')](),'type':_0x3e761b('0x2061')}];for(let _0x285d94=0x0;_0x285d94<_0x47f094['data'][_0x3e761b('0x73e')][_0x3e761b('0x1f73')];_0x285d94++){_0x3ab2b4['error']({'title':_0x47f094[_0x3e761b('0x1457')][_0x3e761b('0x73e')][_0x285d94][_0x3e761b('0x412')],'msg':_0x47f094[_0x3e761b('0x1457')][_0x3e761b('0x73e')][_0x285d94]['message']});}}else _0x3ab2b4['error']({'title':_0x47f094[_0x3e761b('0x11c5')]?_0x3e761b('0x14f7')+_0x47f094[_0x3e761b('0x11c5')]+_0x3e761b('0x16e4')+_0x47f094[_0x3e761b('0x1833')]:_0x3e761b('0x2061'),'msg':_0x47f094[_0x3e761b('0x1457')]?JSON['stringify'](_0x47f094['data'][_0x3e761b('0x1603')]):_0x47f094[_0x3e761b('0x1603')]||_0x47f094['toString']()});});}function _0x24d5e7(){const _0x2b1407=_0x584fc4,_0x4d641c=angular['copy'](_0x5ee725[_0x2b1407('0x1a26')]);return _0x5ee725['selectedMailAccountMailCannedAnswers']=[],_0x4d641c;}function _0x3af4a7(_0x9ce7e2){const _0x22ca1e=_0x584fc4,_0x4740cb=_0xbb05b4[_0x22ca1e('0x1121')]()[_0x22ca1e('0x24d3')](_0x22ca1e('0x17d0'))[_0x22ca1e('0x211f')](_0x22ca1e('0xa53')+_0x5ee725[_0x22ca1e('0x1a26')][_0x22ca1e('0x1f73')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x22ca1e('0x2095')](_0x22ca1e('0x1bc7'))[_0x22ca1e('0x104f')](_0x9ce7e2)['ok']('OK')[_0x22ca1e('0x1d47')]('CANCEL');_0xbb05b4['show'](_0x4740cb)[_0x22ca1e('0x17e7')](function(){const _0x5def03=_0x22ca1e;_0x5ee725[_0x5def03('0x1a26')]['forEach'](function(_0x3f6f07){_0x5cb313(_0x3f6f07);}),_0x5ee725[_0x5def03('0x1a26')]=[];});}let _0x1e8d62=!![],_0xae9980=0x1;_0x1e5002[_0x584fc4('0x620')]('vm_dc.query.filter',function(_0xd38568,_0x3b7979){const _0x1cb259=_0x584fc4;_0x1e8d62?_0x2cdbbe(function(){_0x1e8d62=![];}):(!_0x3b7979&&(_0xae9980=_0x5ee725[_0x1cb259('0x826')][_0x1cb259('0x115a')]),_0xd38568!==_0x3b7979&&(_0x5ee725[_0x1cb259('0x826')][_0x1cb259('0x115a')]=0x1),!_0xd38568&&(_0x5ee725[_0x1cb259('0x826')]['page']=_0xae9980),_0x1aa731());});}const _0x4821ce=_0x3276ce;_0x4aed0e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x1fbf'),'mailCannedAnswer',_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x4aed0e(_0x5b603f,_0x410fb7,_0x2cf054,_0x4a04a4,_0x4b90a3,_0x29ccf0,_0x426d06,_0x37659c,_0x45f935,_0x9976f0,_0x5c76f1,_0x58e60a,_0x37981d,_0x454fd2){const _0x5320da=_0x4376d8,_0xb54259=this;_0xb54259[_0x5320da('0x197c')]=_0x5c76f1[_0x5320da('0x2831')](),_0xb54259[_0x5320da('0x73e')]=[],_0xb54259[_0x5320da('0x1aeb')]=_0x37981d,_0xb54259[_0x5320da('0x1d11')]=_0x58e60a,_0xb54259[_0x5320da('0x103e')]=_0x454fd2,_0xb54259[_0x5320da('0x6ee')]={},_0xb54259['passwordPattern']=_0xb54259[_0x5320da('0x1aeb')]&&_0xb54259['setting'][_0x5320da('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xb54259['title']=_0x5320da('0x6f2'),_0xb54259['mailCannedAnswer']=angular['copy'](_0x45f935),_0xb54259[_0x5320da('0x1fbf')]=_0x37659c,_0xb54259[_0x5320da('0x935')]=![];!_0xb54259[_0x5320da('0x223')]&&(_0xb54259['mailCannedAnswer']={},_0xb54259[_0x5320da('0x24d3')]=_0x5320da('0x559'),_0xb54259[_0x5320da('0x935')]=!![]);_0x410fb7[_0x5320da('0x16fb')]['id']&&(_0xb54259[_0x5320da('0x223')][_0x5320da('0xbda')]=_0x410fb7['params']['id']);_0xb54259[_0x5320da('0x18a6')]=_0x45a4d3,_0xb54259['saveMailCannedAnswer']=_0x1006d2,_0xb54259[_0x5320da('0x3c6')]=_0xf9ae64,_0xb54259[_0x5320da('0x1300')]=_0x43eab1,_0xb54259[_0x5320da('0x136e')]=_0x45b5ac;function _0x45a4d3(){const _0x423346=_0x5320da;_0xb54259[_0x423346('0x73e')]=[],_0x9976f0[_0x423346('0x2043')][_0x423346('0x2439')](_0xb54259[_0x423346('0x223')])[_0x423346('0x1af5')]['then'](function(_0x26d1ed){const _0x8adb9d=_0x423346;_0xb54259[_0x8adb9d('0x1fbf')][_0x8adb9d('0x1893')](_0x26d1ed[_0x8adb9d('0x16b2')]()),_0x426d06[_0x8adb9d('0x130d')]({'title':_0x8adb9d('0xd68'),'msg':_0xb54259[_0x8adb9d('0x223')][_0x8adb9d('0x2aa')]?_0xb54259['mailCannedAnswer'][_0x8adb9d('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x45b5ac(_0x26d1ed);})[_0x423346('0x16df')](function(_0x56190e){const _0x225237=_0x423346;if(_0x56190e[_0x225237('0x1457')]&&_0x56190e[_0x225237('0x1457')][_0x225237('0x73e')]&&_0x56190e[_0x225237('0x1457')][_0x225237('0x73e')][_0x225237('0x1f73')]){_0xb54259[_0x225237('0x73e')]=_0x56190e['data']['errors']||[{'message':_0x56190e[_0x225237('0x9b6')](),'type':_0x225237('0x258e')}];for(let _0x1c04a2=0x0;_0x1c04a2<_0x56190e[_0x225237('0x1457')][_0x225237('0x73e')]['length'];_0x1c04a2+=0x1){_0x426d06[_0x225237('0x1db9')]({'title':_0x56190e['data'][_0x225237('0x73e')][_0x1c04a2]['type'],'msg':_0x56190e['data'][_0x225237('0x73e')][_0x1c04a2][_0x225237('0x1603')]});}}else _0x426d06['error']({'title':_0x56190e['status']?_0x225237('0x14f7')+_0x56190e[_0x225237('0x11c5')]+_0x225237('0x16e4')+_0x56190e[_0x225237('0x1833')]:'api.cannedAnswer.save','msg':_0x56190e['data']?JSON['stringify'](_0x56190e[_0x225237('0x1457')][_0x225237('0x1603')]):_0x56190e[_0x225237('0x9b6')]()});});}function _0x1006d2(){const _0x1d8a84=_0x5320da;_0xb54259[_0x1d8a84('0x73e')]=[],_0x9976f0[_0x1d8a84('0x2043')]['update']({'id':_0xb54259['mailCannedAnswer']['id']},_0xb54259[_0x1d8a84('0x223')])[_0x1d8a84('0x1af5')][_0x1d8a84('0x17e7')](function(_0x4a1473){const _0x1ffaca=_0x1d8a84,_0x4a1258=_0x49cbdd()[_0x1ffaca('0xe8e')](_0xb54259[_0x1ffaca('0x1fbf')],{'id':_0x4a1473['id']});_0x4a1258&&_0x49cbdd()[_0x1ffaca('0x1ced')](_0x4a1258,_0x49cbdd()[_0x1ffaca('0x230a')](_0x4a1473['toJSON'](),_0x49cbdd()['keys'](_0x4a1258))),_0x426d06[_0x1ffaca('0x130d')]({'title':_0x1ffaca('0xa1f'),'msg':_0xb54259[_0x1ffaca('0x223')][_0x1ffaca('0x2aa')]?_0xb54259['mailCannedAnswer']['name']+_0x1ffaca('0x15ca'):''}),_0x45b5ac(_0x4a1473);})['catch'](function(_0xef7517){const _0x4ed3a3=_0x1d8a84;if(_0xef7517['data']&&_0xef7517[_0x4ed3a3('0x1457')][_0x4ed3a3('0x73e')]&&_0xef7517[_0x4ed3a3('0x1457')][_0x4ed3a3('0x73e')]['length']){_0xb54259[_0x4ed3a3('0x73e')]=_0xef7517[_0x4ed3a3('0x1457')]['errors']||[{'message':_0xef7517[_0x4ed3a3('0x9b6')](),'type':_0x4ed3a3('0x1d77')}];for(let _0x429c5f=0x0;_0x429c5f<_0xef7517[_0x4ed3a3('0x1457')][_0x4ed3a3('0x73e')][_0x4ed3a3('0x1f73')];_0x429c5f++){_0x426d06[_0x4ed3a3('0x1db9')]({'title':_0xef7517['data']['errors'][_0x429c5f][_0x4ed3a3('0x412')],'msg':_0xef7517[_0x4ed3a3('0x1457')][_0x4ed3a3('0x73e')][_0x429c5f][_0x4ed3a3('0x1603')]});}}else _0x426d06[_0x4ed3a3('0x1db9')]({'title':_0xef7517[_0x4ed3a3('0x11c5')]?_0x4ed3a3('0x14f7')+_0xef7517['status']+_0x4ed3a3('0x16e4')+_0xef7517[_0x4ed3a3('0x1833')]:_0x4ed3a3('0x1d77'),'msg':_0xef7517[_0x4ed3a3('0x1457')]?JSON[_0x4ed3a3('0x678')](_0xef7517[_0x4ed3a3('0x1457')][_0x4ed3a3('0x1603')]):_0xef7517[_0x4ed3a3('0x9b6')]()});});}function _0xf9ae64(_0x80ac4c){const _0x4abb26=_0x5320da;_0xb54259[_0x4abb26('0x73e')]=[];const _0xae20f3=_0x4a04a4[_0x4abb26('0x1121')]()[_0x4abb26('0x24d3')](_0x4abb26('0x530'))[_0x4abb26('0xd5')](_0x4abb26('0x1ef2'))['ariaLabel']('Delete\x20MailCannedAnswer')['ok']('Delete')[_0x4abb26('0x1d47')](_0x4abb26('0x1b70'))[_0x4abb26('0x104f')](_0x80ac4c);_0x4a04a4[_0x4abb26('0x28e2')](_0xae20f3)['then'](function(){const _0x95c868=_0x4abb26;_0x9976f0['cannedAnswer']['delete']({'id':_0xb54259['mailCannedAnswer']['id']})['$promise'][_0x95c868('0x17e7')](function(){const _0x1c055c=_0x95c868;_0x49cbdd()['remove'](_0xb54259[_0x1c055c('0x1fbf')],{'id':_0xb54259[_0x1c055c('0x223')]['id']}),_0x426d06[_0x1c055c('0x130d')]({'title':'MailCannedAnswer\x20properly\x20deleted!','msg':(_0xb54259['mailCannedAnswer']['name']||_0x1c055c('0x223'))+_0x1c055c('0x149f')}),_0x45b5ac(_0xb54259[_0x1c055c('0x223')]);})[_0x95c868('0x16df')](function(_0x34eb13){const _0x6c04ef=_0x95c868;if(_0x34eb13[_0x6c04ef('0x1457')]&&_0x34eb13[_0x6c04ef('0x1457')]['errors']&&_0x34eb13['data']['errors'][_0x6c04ef('0x1f73')]){_0xb54259[_0x6c04ef('0x73e')]=_0x34eb13[_0x6c04ef('0x1457')][_0x6c04ef('0x73e')]||[{'message':_0x34eb13[_0x6c04ef('0x9b6')](),'type':_0x6c04ef('0x26a7')}];for(let _0x42be5c=0x0;_0x42be5c<_0x34eb13[_0x6c04ef('0x1457')][_0x6c04ef('0x73e')][_0x6c04ef('0x1f73')];_0x42be5c++){_0x426d06[_0x6c04ef('0x1db9')]({'title':_0x34eb13[_0x6c04ef('0x1457')]['errors'][_0x42be5c]['type'],'msg':_0x34eb13[_0x6c04ef('0x1457')][_0x6c04ef('0x73e')][_0x42be5c][_0x6c04ef('0x1603')]});}}else _0x426d06['error']({'title':_0x34eb13['status']?_0x6c04ef('0x14f7')+_0x34eb13[_0x6c04ef('0x11c5')]+_0x6c04ef('0x16e4')+_0x34eb13[_0x6c04ef('0x1833')]:_0x6c04ef('0x26a7'),'msg':_0x34eb13[_0x6c04ef('0x1457')]?JSON[_0x6c04ef('0x678')](_0x34eb13['data'][_0x6c04ef('0x1603')]):_0x34eb13['message']||_0x34eb13[_0x6c04ef('0x9b6')]()});});},function(){});}function _0x43eab1(_0xf5a2d5){return _0xf5a2d5===null?undefined:new Date(_0xf5a2d5);}function _0x45b5ac(_0xa30ac1){const _0x4a6e34=_0x5320da;_0x4a04a4[_0x4a6e34('0x212a')](_0xa30ac1);}}const _0x3b8d27=_0x4aed0e;_0x3e799c['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),'api','toasty',_0x4376d8('0x1885')];function _0x3e799c(_0x17f875,_0x1649f2,_0x5d9a63,_0x245dc5,_0x18ed66,_0x5d38e3,_0x27bcf2,_0x4a1bd4,_0x3495bb,_0x529edf,_0x5a847e){const _0x5af468=_0x4376d8,_0x16a04e=this;_0x16a04e[_0x5af468('0x197c')]=_0x5a847e[_0x5af468('0x2831')](),_0x16a04e[_0x5af468('0x23fe')]={'count':0x0,'rows':[]},_0x16a04e[_0x5af468('0x440')]=[],_0x16a04e[_0x5af468('0x103e')],_0x16a04e[_0x5af468('0x1e26')]={'first':_0x5af468('0xa13'),'second':_0x5af468('0xf67'),'third':_0x5af468('0x13a2')},_0x16a04e[_0x5af468('0x826')]={'fields':_0x5af468('0x2b9'),'sort':_0x5af468('0x1ac6'),'limit':0xa,'page':0x1},_0x16a04e[_0x5af468('0x161d')]=_0x58fdcd,_0x16a04e[_0x5af468('0x1a20')]=_0x31097f,_0x16a04e['success']=_0x50a2c8,_0x16a04e[_0x5af468('0x26c2')]=_0x13faa9,_0x16a04e[_0x5af468('0x1eff')]=_0x7c00f3,_0x16a04e[_0x5af468('0x2802')]=_0x4a48,_0x16a04e[_0x5af468('0xa8e')]=_0x2ca5f9,_0x16a04e['deleteSelectedDispositions']=_0x433ad7,_0x16a04e[_0x5af468('0x4cb')]=_0x3231f6,_0x16a04e[_0x5af468('0x11d8')]=_0x1bafce;function _0x58fdcd(_0x23ee43,_0x2d719a){const _0x534a90=_0x5af468;_0x16a04e['mailAccount']=_0x23ee43||{},_0x16a04e['crudPermissions']=typeof _0x2d719a!==_0x534a90('0xfad')?_0x2d719a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x16a04e[_0x534a90('0x826')][_0x534a90('0xbda')]=_0x16a04e['mailAccount']['id'],_0x16a04e[_0x534a90('0x826')]['id']=_0x16a04e[_0x534a90('0x127b')]['id'],_0x13faa9();}function _0x7c00f3(_0x1326ae,_0x10a262){const _0x31acaf=_0x5af468;_0x18ed66[_0x31acaf('0x28e2')]({'controller':_0x31acaf('0x8e0'),'controllerAs':'vm','templateUrl':_0x27dcbe,'parent':angular[_0x31acaf('0x1ce1')](_0x5d38e3[_0x31acaf('0x13aa')]),'targetEvent':_0x1326ae,'clickOutsideToClose':!![],'locals':{'disposition':_0x10a262,'dispositions':_0x16a04e[_0x31acaf('0x23fe')][_0x31acaf('0x2319')],'model':{'id':_0x16a04e[_0x31acaf('0x127b')]['id'],'field':_0x31acaf('0xbda')},'license':null,'setting':null,'crudPermissions':_0x16a04e[_0x31acaf('0x103e')]}})[_0x31acaf('0x17e7')](function(_0x3111d4){if(_0x3111d4)_0x13faa9();});}function _0x31097f(_0xf22a01,_0x17324e){const _0x52ba0a=_0x5af468,_0x4add34=_0x49cbdd()[_0x52ba0a('0x26f8')](_0x16a04e['dispositions'][_0x52ba0a('0x2319')],['ParentId',_0xf22a01['id']]),_0x224406=_0x18ed66['confirm']()[_0x52ba0a('0x24d3')](_0x4a1bd4[_0x52ba0a('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))['content'](_0x4a1bd4['instant'](_0x52ba0a('0x2ab')+(_0x4add34?_0x52ba0a('0xa0a'):_0x52ba0a('0xd6c')),{'name':_0xf22a01[_0x52ba0a('0x2aa')]}))[_0x52ba0a('0x2095')](_0x52ba0a('0x1596'))[_0x52ba0a('0x104f')](_0x17324e)['ok']('OK')[_0x52ba0a('0x1d47')](_0x4a1bd4[_0x52ba0a('0x1acc')](_0x52ba0a('0x34f')));_0x18ed66[_0x52ba0a('0x28e2')](_0x224406)['then'](function(){_0x4a48(_0xf22a01);});}function _0x50a2c8(_0x253283){const _0x5f3923=_0x5af468;_0x16a04e[_0x5f3923('0x23fe')]=_0x253283||{'count':0x0,'rows':[]};}function _0x13faa9(){const _0x1256e7=_0x5af468;_0x16a04e[_0x1256e7('0x826')][_0x1256e7('0xf19')]=(_0x16a04e['query'][_0x1256e7('0x115a')]-0x1)*_0x16a04e['query'][_0x1256e7('0x193b')],_0x16a04e[_0x1256e7('0x1691')]=_0x3495bb['mailAccount'][_0x1256e7('0x26c2')](_0x16a04e[_0x1256e7('0x826')],_0x50a2c8)['$promise'];}function _0x4a48(_0x5aa7ef){const _0x3a39c2=_0x5af468;_0x3495bb[_0x3a39c2('0x1f27')]['delete']({'id':_0x5aa7ef['id']})[_0x3a39c2('0x1af5')][_0x3a39c2('0x17e7')](function(){const _0x6d36ef=_0x3a39c2;_0x13faa9(),_0x529edf[_0x6d36ef('0x130d')]({'title':_0x4a1bd4['instant'](_0x6d36ef('0x10dc'))});})[_0x3a39c2('0x16df')](function(_0xa63636){const _0x43df88=_0x3a39c2;if(_0xa63636[_0x43df88('0x1457')]&&_0xa63636[_0x43df88('0x1457')][_0x43df88('0x73e')]&&_0xa63636['data'][_0x43df88('0x73e')]['length']){_0x16a04e[_0x43df88('0x73e')]=_0xa63636[_0x43df88('0x1457')]['errors']||[{'message':_0xa63636[_0x43df88('0x9b6')](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x27a31f=0x0;_0x27a31f<_0xa63636[_0x43df88('0x1457')]['errors']['length'];_0x27a31f++){_0x529edf[_0x43df88('0x1db9')]({'title':_0xa63636[_0x43df88('0x1457')]['errors'][_0x27a31f]['type'],'msg':_0xa63636[_0x43df88('0x1457')][_0x43df88('0x73e')][_0x27a31f][_0x43df88('0x1603')]});}}else _0x529edf[_0x43df88('0x1db9')]({'title':_0xa63636[_0x43df88('0x11c5')]?'API:'+_0xa63636[_0x43df88('0x11c5')]+'\x20-\x20'+_0xa63636[_0x43df88('0x1833')]:'SYSTEM:DELETEdisposition','msg':_0xa63636[_0x43df88('0x1457')]?JSON[_0x43df88('0x678')](_0xa63636[_0x43df88('0x1457')][_0x43df88('0x1603')]):_0xa63636[_0x43df88('0x1603')]||_0xa63636[_0x43df88('0x9b6')]()});});}function _0x2ca5f9(){const _0x130518=_0x5af468,_0x4a67af=angular['copy'](_0x16a04e[_0x130518('0x440')]);return _0x16a04e[_0x130518('0x440')]=[],_0x4a67af;}function _0x433ad7(_0x5da262){const _0x28c9a2=_0x5af468,_0x12c5f0=_0x18ed66[_0x28c9a2('0x1121')]()['title'](_0x4a1bd4[_0x28c9a2('0x1acc')](_0x28c9a2('0x21e')))[_0x28c9a2('0xd5')](_0x4a1bd4[_0x28c9a2('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x16a04e[_0x28c9a2('0x440')][_0x28c9a2('0x1f73')]}))['ariaLabel']('Delete\x20dispositions')['targetEvent'](_0x5da262)['ok']('OK')[_0x28c9a2('0x1d47')](_0x4a1bd4[_0x28c9a2('0x1acc')](_0x28c9a2('0x34f')));_0x18ed66[_0x28c9a2('0x28e2')](_0x12c5f0)[_0x28c9a2('0x17e7')](function(){_0x16a04e['selectedDispositions']['forEach'](function(_0x3a6870){_0x4a48(_0x3a6870);}),_0x16a04e['selectedDispositions']=[];});}function _0x3231f6(){const _0x45c2a6=_0x5af468;_0x16a04e[_0x45c2a6('0x440')]=[];}function _0x1bafce(){const _0xef8a27=_0x5af468;_0x16a04e[_0xef8a27('0x440')]=_0x16a04e['dispositions'][_0xef8a27('0x2319')];}let _0x202c5f=!![],_0xe752a2=0x1;_0x17f875[_0x5af468('0x620')]('vm_dc.query.filter',function(_0x405f63,_0x3dd4c5){const _0x3309b6=_0x5af468;_0x202c5f?_0x27bcf2(function(){_0x202c5f=![];}):(!_0x3dd4c5&&(_0xe752a2=_0x16a04e[_0x3309b6('0x826')][_0x3309b6('0x115a')]),_0x405f63!==_0x3dd4c5&&(_0x16a04e['query'][_0x3309b6('0x115a')]=0x1),!_0x405f63&&(_0x16a04e[_0x3309b6('0x826')][_0x3309b6('0x115a')]=_0xe752a2),_0x13faa9());});}const _0x2d99e0=_0x3e799c,_0x53a9a5=_0x4cf2bc['p']+_0x4376d8('0x28d9');_0x5500dd['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$document',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x127b'),_0x4376d8('0x383')];function _0x5500dd(_0x5a4fdf,_0x1dc8c7,_0x3393f8,_0xfa722b,_0x36e472,_0x19ef4d,_0x3bfa6b,_0x4fade9,_0x38f3ea,_0xb6829f,_0x46a38b,_0x4aa03b){const _0x30e35e=_0x4376d8,_0x3ba2ad=this;_0x3ba2ad[_0x30e35e('0x197c')]=_0xb6829f[_0x30e35e('0x2831')](),_0x3ba2ad[_0x30e35e('0x1d11')]=_0x19ef4d,_0x3ba2ad[_0x30e35e('0x1aeb')]=_0x3bfa6b,_0x3ba2ad['passwordPattern']=_0x3ba2ad[_0x30e35e('0x1aeb')][_0x30e35e('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3ba2ad[_0x30e35e('0xaed')]=_0x1dc8c7[_0x30e35e('0x14fe')]()+_0x30e35e('0x14')+_0x1dc8c7[_0x30e35e('0x108')](),_0x3ba2ad['mailAccount']=_0x46a38b||_0x5a4fdf[_0x30e35e('0x16fb')][_0x30e35e('0x127b')]||{},_0x3ba2ad[_0x30e35e('0x383')]=_0x4aa03b&&_0x4aa03b[_0x30e35e('0x335')]==0x1?_0x4aa03b[_0x30e35e('0x2319')][0x0]:null,_0x3ba2ad[_0x30e35e('0x103e')]=_0xb6829f['parseCrudPermissions'](_0x3ba2ad['userProfileSection']?_0x3ba2ad[_0x30e35e('0x383')][_0x30e35e('0x103e')]:null),_0x3ba2ad[_0x30e35e('0x6ee')]={},_0x3ba2ad['selectedTab']=_0x5a4fdf[_0x30e35e('0x16fb')][_0x30e35e('0x1523')]||0x0,_0x3ba2ad[_0x30e35e('0x2794')]=_0x2589f8,_0x3ba2ad[_0x30e35e('0x2359')]=_0x103c92,_0x3ba2ad[_0x30e35e('0x99f')]=_0x38f3ea[_0x30e35e('0x1178')],_0x3ba2ad[_0x30e35e('0x1cc')]=_0x235e92,_0x3ba2ad[_0x30e35e('0x1bfb')]=_0x7122f9,_0xb6829f['hasRole']('admin')?_0x4fade9['cmList'][_0x30e35e('0x1c53')]({'fields':'id,name','sort':_0x30e35e('0x2aa')})[_0x30e35e('0x1af5')][_0x30e35e('0x17e7')](function(_0x2a240f){const _0x3bcde9=_0x30e35e;_0x3ba2ad[_0x3bcde9('0x2504')]=_0x2a240f[_0x3bcde9('0x2319')]||[];})[_0x30e35e('0x16df')](function(_0x19b4ba){const _0x3369b6=_0x30e35e;_0x38f3ea[_0x3369b6('0x1db9')]({'title':_0x19b4ba['status']?_0x3369b6('0x14f7')+_0x19b4ba[_0x3369b6('0x11c5')]+_0x3369b6('0x16e4')+_0x19b4ba[_0x3369b6('0x1833')]:'SYSTEM:GET_LISTS','msg':_0x19b4ba['data']?JSON[_0x3369b6('0x678')](_0x19b4ba['data']):_0x19b4ba[_0x3369b6('0x9b6')]()});}):_0x4fade9['cmList'][_0x30e35e('0x1c53')]({'fields':_0x30e35e('0x12d2'),'sort':_0x30e35e('0x2aa')})[_0x30e35e('0x1af5')][_0x30e35e('0x17e7')](function(_0x24dced){const _0x78b2d4=_0x30e35e;_0x3ba2ad[_0x78b2d4('0x2504')]=_0x24dced[_0x78b2d4('0x2319')]||[];})[_0x30e35e('0x17e7')](function(){const _0x3adbf7=_0x30e35e;return _0x4fade9[_0x3adbf7('0x383')]['get']({'userProfileId':_0x3ba2ad[_0x3adbf7('0x197c')]['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x30e35e('0x17e7')](function(_0x56401){const _0x4706ac=_0x30e35e,_0x27a5ea=_0x56401&&_0x56401[_0x4706ac('0x2319')]?_0x56401[_0x4706ac('0x2319')][0x0]:null;if(!_0x27a5ea){const _0x3b2959=[];let _0x4aa194=null;_0x3ba2ad[_0x4706ac('0x127b')]&&(_0x4aa194=_0x49cbdd()[_0x4706ac('0xe8e')](_0x3ba2ad[_0x4706ac('0x2504')],{'id':Number(_0x3ba2ad[_0x4706ac('0x127b')][_0x4706ac('0x7f8')])}));for(let _0x2aec94=0x0;_0x2aec94<_0x3ba2ad[_0x4706ac('0x2504')][_0x4706ac('0x1f73')];_0x2aec94++){_0x4aa194&&_0x3ba2ad[_0x4706ac('0x2504')][_0x2aec94]['id']===_0x4aa194['id']&&(_0x3ba2ad[_0x4706ac('0x2504')][_0x2aec94]['canSelect']=![],_0x3b2959[_0x4706ac('0x269f')](_0x3ba2ad[_0x4706ac('0x2504')][_0x2aec94]));}_0x3ba2ad[_0x4706ac('0x2504')]=_0x3b2959;}else{if(!_0x27a5ea['autoAssociation'])return _0x4fade9[_0x4706ac('0x78d')]['get']({'sectionId':_0x27a5ea['id']})[_0x4706ac('0x1af5')][_0x4706ac('0x17e7')](function(_0x2f6292){const _0x588f61=_0x4706ac,_0x5eebff=_0x49cbdd()['map'](_0x2f6292[_0x588f61('0x2319')],function(_0x260954){const _0x8fdcb2=_0x588f61;return _0x49cbdd()[_0x8fdcb2('0xe8e')](_0x3ba2ad[_0x8fdcb2('0x2504')],{'id':_0x260954[_0x8fdcb2('0x5db')]});});let _0x5578cd=null;_0x3ba2ad[_0x588f61('0x127b')]&&(_0x5578cd=_0x49cbdd()[_0x588f61('0xe8e')](_0x3ba2ad[_0x588f61('0x2504')],{'id':Number(_0x3ba2ad[_0x588f61('0x127b')][_0x588f61('0x7f8')])}));if(_0x5578cd&&!_0x49cbdd()[_0x588f61('0x26f8')](_0x5eebff,['id',_0x5578cd['id']])){const _0x2935f5=_0x49cbdd()[_0x588f61('0xe8e')](_0x3ba2ad[_0x588f61('0x2504')],{'id':_0x5578cd['id']});_0x2935f5[_0x588f61('0xe5c')]=![],_0x5eebff[_0x588f61('0x269f')](_0x2935f5);}_0x3ba2ad['lists']=_0x5eebff;});}})[_0x30e35e('0x16df')](function(_0x53c19a){const _0x21d5e5=_0x30e35e;_0x38f3ea[_0x21d5e5('0x1db9')]({'title':_0x53c19a['status']?_0x21d5e5('0x14f7')+_0x53c19a[_0x21d5e5('0x11c5')]+_0x21d5e5('0x16e4')+_0x53c19a[_0x21d5e5('0x1833')]:_0x21d5e5('0x1630'),'msg':_0x53c19a[_0x21d5e5('0x1457')]?JSON[_0x21d5e5('0x678')](_0x53c19a['data']):_0x53c19a[_0x21d5e5('0x9b6')]()});}),_0xb6829f[_0x30e35e('0x1ba2')]('admin')?_0x4fade9[_0x30e35e('0x267a')]['get']({'fields':_0x30e35e('0x90c'),'sort':_0x30e35e('0x2aa'),'nolimit':_0x30e35e('0xe34')})[_0x30e35e('0x1af5')]['then'](function(_0x494818){const _0x13832e=_0x30e35e;_0x3ba2ad[_0x13832e('0x1492')]=_0x494818['rows']||[];})['catch'](function(_0x2dd380){const _0x4b7164=_0x30e35e;_0x38f3ea[_0x4b7164('0x1db9')]({'title':_0x2dd380[_0x4b7164('0x11c5')]?_0x4b7164('0x14f7')+_0x2dd380['status']+_0x4b7164('0x16e4')+_0x2dd380[_0x4b7164('0x1833')]:_0x4b7164('0xe43'),'msg':_0x2dd380[_0x4b7164('0x1457')]?JSON[_0x4b7164('0x678')](_0x2dd380['data']):_0x2dd380[_0x4b7164('0x9b6')]()});}):_0x4fade9[_0x30e35e('0x267a')][_0x30e35e('0x1c53')]({'fields':_0x30e35e('0x90c'),'sort':_0x30e35e('0x2aa'),'nolimit':'true'})['$promise'][_0x30e35e('0x17e7')](function(_0x58e320){const _0x51627c=_0x30e35e;_0x3ba2ad['pauses']=_0x58e320[_0x51627c('0x2319')]||[];})[_0x30e35e('0x17e7')](function(){const _0xf39dd=_0x30e35e;return _0x4fade9[_0xf39dd('0x383')][_0xf39dd('0x1c53')]({'userProfileId':_0x3ba2ad[_0xf39dd('0x197c')][_0xf39dd('0x1e76')],'sectionId':0x3ed})[_0xf39dd('0x1af5')];})[_0x30e35e('0x17e7')](function(_0x431209){const _0x3875da=_0x30e35e,_0x366f32=_0x431209&&_0x431209[_0x3875da('0x2319')]?_0x431209[_0x3875da('0x2319')][0x0]:null;if(!_0x366f32)_0x3ba2ad['pauses']=[];else{if(!_0x366f32[_0x3875da('0x9e3')])return _0x4fade9[_0x3875da('0x78d')][_0x3875da('0x1c53')]({'sectionId':_0x366f32['id']})[_0x3875da('0x1af5')][_0x3875da('0x17e7')](function(_0x347d4c){const _0x2718d2=_0x3875da,_0x3cb94d=_0x49cbdd()['map'](_0x347d4c[_0x2718d2('0x2319')],function(_0x4963c4){const _0x5cbae2=_0x2718d2;return _0x49cbdd()[_0x5cbae2('0xe8e')](_0x3ba2ad[_0x5cbae2('0x1492')],{'id':_0x4963c4[_0x5cbae2('0x5db')]});});_0x3ba2ad['pauses'][_0x2718d2('0xccd')](function(_0x750ad0){const _0x2622dd=_0x2718d2;!_0x49cbdd()[_0x2622dd('0x26f8')](_0x3cb94d,['id',_0x750ad0['id']])&&(_0x750ad0[_0x2622dd('0xe5c')]=![]),_0x3cb94d[_0x2622dd('0x269f')](_0x750ad0);}),_0x3ba2ad['pauses']=_0x3cb94d;});}})[_0x30e35e('0x16df')](function(_0x3a281d){const _0x837e65=_0x30e35e;_0x38f3ea['error']({'title':_0x3a281d['status']?'API:'+_0x3a281d[_0x837e65('0x11c5')]+_0x837e65('0x16e4')+_0x3a281d['statusText']:'SYSTEM:GETpauses','msg':_0x3a281d[_0x837e65('0x1457')]?JSON[_0x837e65('0x678')](_0x3a281d[_0x837e65('0x1457')]):_0x3a281d[_0x837e65('0x9b6')]()});});function _0x2589f8(){const _0x8bdcb=_0x30e35e;if(_0xb6829f[_0x8bdcb('0x1ba2')](_0x8bdcb('0x20bf')))_0x5a4fdf['go'](_0x8bdcb('0x3a8'),{});else return _0x4fade9[_0x8bdcb('0x383')][_0x8bdcb('0x1c53')]({'userProfileId':_0xb6829f['getCurrentUser']()[_0x8bdcb('0x1e76')],'sectionId':0x262})[_0x8bdcb('0x1af5')][_0x8bdcb('0x17e7')](function(_0x83ed09){const _0x1a0f66=_0x8bdcb,_0x214883=_0x83ed09&&_0x83ed09['rows']?_0x83ed09[_0x1a0f66('0x2319')][0x0]:null;_0x214883&&_0x214883[_0x1a0f66('0x1cd3')]?_0x5a4fdf['go'](_0x1a0f66('0x3a8'),{}):_0x38f3ea[_0x1a0f66('0x1178')]({'title':_0x36e472[_0x1a0f66('0x1acc')](_0x1a0f66('0x286e')),'msg':_0x36e472[_0x1a0f66('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x8bdcb('0x16df')](function(_0x2f9e96){const _0x1b0258=_0x8bdcb;_0x38f3ea[_0x1b0258('0x1db9')]({'title':_0x2f9e96[_0x1b0258('0x11c5')]?'API:'+_0x2f9e96[_0x1b0258('0x11c5')]+_0x1b0258('0x16e4')+_0x2f9e96[_0x1b0258('0x1833')]:_0x1b0258('0x338'),'msg':_0x2f9e96[_0x1b0258('0x11c5')]?JSON['stringify'](_0x2f9e96[_0x1b0258('0x1457')]):_0x2f9e96[_0x1b0258('0x9b6')]()});});}function _0x103c92(_0x4fb4e7,_0x4a84b6){const _0x55f93e=_0x30e35e;_0x3393f8[_0x55f93e('0x28e2')]({'controller':'MailAccountagentaddController','controllerAs':'vm','templateUrl':_0x53a9a5,'parent':angular[_0x55f93e('0x1ce1')](_0xfa722b[_0x55f93e('0x13aa')]),'targetEvent':_0x4a84b6,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x4fb4e7,'mailAccounts':_0x3ba2ad[_0x55f93e('0x3d9')]?_0x3ba2ad['mailAccounts'][_0x55f93e('0x2319')]:[],'crudPermissions':_0x3ba2ad[_0x55f93e('0x103e')],'realtime':![]}});}function _0x235e92(){const _0x192f1e=_0x30e35e;_0x5a4fdf['go'](_0x192f1e('0x10e3'),{},{'reload':_0x192f1e('0x10e3')});}function _0x7122f9(){const _0x4db7c0=_0x30e35e;_0x4fade9[_0x4db7c0('0x127b')][_0x4db7c0('0x27ba')]({'id':_0x3ba2ad[_0x4db7c0('0x127b')]['id']},_0x3ba2ad[_0x4db7c0('0x127b')])[_0x4db7c0('0x1af5')][_0x4db7c0('0x17e7')](function(){const _0x31b416=_0x4db7c0;_0x38f3ea[_0x31b416('0x130d')]({'title':'MailAccount\x20updated!','msg':_0x3ba2ad['mailAccount'][_0x31b416('0x2aa')]?_0x3ba2ad[_0x31b416('0x127b')][_0x31b416('0x2aa')]+_0x31b416('0x12b0'):''});})[_0x4db7c0('0x16df')](function(_0x21756b){const _0x4bd71f=_0x4db7c0;_0x38f3ea['error']({'title':_0x21756b['status']?_0x4bd71f('0x14f7')+_0x21756b[_0x4bd71f('0x11c5')]+'\x20-\x20'+_0x21756b['statusText']:_0x4bd71f('0x2061'),'msg':_0x21756b[_0x4bd71f('0x1457')]?JSON[_0x4bd71f('0x678')](_0x21756b[_0x4bd71f('0x1457')]):_0x21756b[_0x4bd71f('0x9b6')]()});});}}const _0x1fd433=_0x5500dd,_0x3c5adb=_0x4cf2bc['p']+_0x4376d8('0x1d6f');_0x33c143[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0x3d9'),'userProfile',_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x33c143(_0x2c5db6,_0x576884,_0x169b43,_0x41680d,_0x12b7cb,_0x43d9ae,_0xe7c287,_0x2f7033,_0x45a3e7,_0xa3d1c6,_0x407fb3,_0x4f1a6b,_0x59b82b,_0x28a0ee,_0x102463,_0x5b3c37,_0x25c39a){const _0x3f7ca1=_0x4376d8,_0x30c8fb=this;_0x30c8fb[_0x3f7ca1('0x1d11')]=_0x5b3c37,_0x30c8fb[_0x3f7ca1('0x1aeb')]=_0x25c39a,_0x30c8fb[_0x3f7ca1('0x197c')]=_0x102463[_0x3f7ca1('0x2831')](),_0x30c8fb[_0x3f7ca1('0x3d9')]=_0x45a3e7||{'count':0x0,'rows':[]},_0x30c8fb[_0x3f7ca1('0xdeb')]=_0xa3d1c6,_0x30c8fb['userProfileSection']=_0x407fb3&&_0x407fb3[_0x3f7ca1('0x335')]==0x1?_0x407fb3[_0x3f7ca1('0x2319')][0x0]:null,_0x30c8fb[_0x3f7ca1('0x103e')]=_0x102463[_0x3f7ca1('0x17a9')](_0x30c8fb[_0x3f7ca1('0x383')]?_0x30c8fb[_0x3f7ca1('0x383')][_0x3f7ca1('0x103e')]:null),_0x30c8fb[_0x3f7ca1('0x23c3')]=_0x3f7ca1('0x3d9'),_0x30c8fb['listOrder']='',_0x30c8fb[_0x3f7ca1('0x24e1')]=null,_0x30c8fb['selectedMailAccounts']=[],_0x30c8fb[_0x3f7ca1('0x826')]={'fields':_0x3f7ca1('0x89a'),'sort':_0x3f7ca1('0x1ac6'),'limit':0xa,'page':0x1},_0x30c8fb[_0x3f7ca1('0x78b')]=_0x49cbdd()[_0x3f7ca1('0x8de')]([{'option':_0x3f7ca1('0x163f'),'value':'null'},{'option':_0x3f7ca1('0x148b'),'value':_0x3f7ca1('0x2870')},{'option':_0x3f7ca1('0x17e8'),'value':_0x3f7ca1('0x13d')},{'option':_0x3f7ca1('0x2640'),'value':'\x27yahoo\x27'},{'option':_0x3f7ca1('0x45b'),'value':'\x27outlook365\x27'}],function(_0x31915f){const _0x4f15b5=_0x3f7ca1;return _0x49cbdd()[_0x4f15b5('0x737')](_0x31915f['value'],new RegExp('\x27','g'),'');}),_0x30c8fb[_0x3f7ca1('0x1fd3')]=_0x49cbdd()[_0x3f7ca1('0x8de')]([{'option':_0x3f7ca1('0x163f'),'value':'null'},{'option':_0x3f7ca1('0x148b'),'value':_0x3f7ca1('0x2870')},{'option':_0x3f7ca1('0x17e8'),'value':_0x3f7ca1('0x13d')},{'option':_0x3f7ca1('0x2640'),'value':_0x3f7ca1('0x238b')},{'option':_0x3f7ca1('0x45b'),'value':_0x3f7ca1('0x96')}],function(_0x3b4a90){return _0x49cbdd()['replace'](_0x3b4a90['value'],new RegExp('\x27','g'),'');}),_0x30c8fb['arraySmtp.service']=_0x49cbdd()[_0x3f7ca1('0x8de')]([{'option':'Custom','value':_0x3f7ca1('0x9bb')},{'option':'Gmail','value':'\x27gmail\x27'},{'option':_0x3f7ca1('0x17e8'),'value':_0x3f7ca1('0x13d')},{'option':_0x3f7ca1('0x2640'),'value':_0x3f7ca1('0x238b')},{'option':_0x3f7ca1('0x45b'),'value':_0x3f7ca1('0x96')}],function(_0x5350df){const _0x113a99=_0x3f7ca1;return _0x49cbdd()[_0x113a99('0x737')](_0x5350df[_0x113a99('0x175b')],new RegExp('\x27','g'),'');}),_0x30c8fb['editstate']=_0x9e9a8c,_0x30c8fb[_0x3f7ca1('0x1d1a')]=_0x302a19,_0x30c8fb['interactionsgoto']=_0x2e3259,_0x30c8fb[_0x3f7ca1('0xda8')]=_0x2db8c8,_0x30c8fb[_0x3f7ca1('0x2359')]=_0x25f040,_0x30c8fb['deleteconfirm']=_0x34cfa9,_0x30c8fb[_0x3f7ca1('0x130d')]=_0x236af1,_0x30c8fb[_0x3f7ca1('0x21d8')]=_0x5558a0,_0x30c8fb[_0x3f7ca1('0x1282')]=_0x44ca88,_0x30c8fb['deleteMailAccount']=_0xad8b25,_0x30c8fb[_0x3f7ca1('0x15e4')]=_0x26b096,_0x30c8fb[_0x3f7ca1('0x21c3')]=_0x465a61,_0x30c8fb['deselectMailAccounts']=_0x18796c,_0x30c8fb['selectAllMailAccounts']=_0xd658d8,_0x102463['hasRole'](_0x3f7ca1('0x20bf'))?_0x4f1a6b[_0x3f7ca1('0x25b')][_0x3f7ca1('0x1c53')]({'fields':_0x3f7ca1('0x12d2'),'sort':_0x3f7ca1('0x2aa')})[_0x3f7ca1('0x1af5')][_0x3f7ca1('0x17e7')](function(_0x53db99){const _0x1be675=_0x3f7ca1;_0x30c8fb[_0x1be675('0x2504')]=_0x53db99[_0x1be675('0x2319')]||[];})[_0x3f7ca1('0x16df')](function(_0xe131f7){const _0x5975d0=_0x3f7ca1;_0x28a0ee[_0x5975d0('0x1db9')]({'title':_0xe131f7['status']?_0x5975d0('0x14f7')+_0xe131f7[_0x5975d0('0x11c5')]+'\x20-\x20'+_0xe131f7[_0x5975d0('0x1833')]:_0x5975d0('0x2410'),'msg':_0xe131f7[_0x5975d0('0x1457')]?JSON[_0x5975d0('0x678')](_0xe131f7[_0x5975d0('0x1457')]):_0xe131f7[_0x5975d0('0x9b6')]()});}):_0x4f1a6b[_0x3f7ca1('0x25b')][_0x3f7ca1('0x1c53')]({'fields':_0x3f7ca1('0x12d2'),'sort':_0x3f7ca1('0x2aa')})[_0x3f7ca1('0x1af5')]['then'](function(_0x536730){const _0xc28427=_0x3f7ca1;_0x30c8fb[_0xc28427('0x2504')]=_0x536730[_0xc28427('0x2319')]||[];})[_0x3f7ca1('0x17e7')](function(){const _0x48a8c0=_0x3f7ca1;return _0x4f1a6b['userProfileSection'][_0x48a8c0('0x1c53')]({'userProfileId':_0x30c8fb[_0x48a8c0('0x197c')]['userProfileId'],'sectionId':0x12d})[_0x48a8c0('0x1af5')];})[_0x3f7ca1('0x17e7')](function(_0x720e55){const _0x3c7127=_0x3f7ca1,_0x4d9a1a=_0x720e55&&_0x720e55['rows']?_0x720e55['rows'][0x0]:null;if(!_0x4d9a1a){const _0x39feea=[];let _0x243148=null;_0x30c8fb[_0x3c7127('0x127b')]&&(_0x243148=_0x49cbdd()[_0x3c7127('0xe8e')](_0x30c8fb['lists'],{'id':Number(_0x30c8fb['mailAccount'][_0x3c7127('0x7f8')])}));for(let _0x1a5f42=0x0;_0x1a5f42<_0x30c8fb[_0x3c7127('0x2504')][_0x3c7127('0x1f73')];_0x1a5f42++){_0x243148&&_0x30c8fb['lists'][_0x1a5f42]['id']===_0x243148['id']&&(_0x30c8fb['lists'][_0x1a5f42][_0x3c7127('0xe5c')]=![],_0x39feea[_0x3c7127('0x269f')](_0x30c8fb[_0x3c7127('0x2504')][_0x1a5f42]));}_0x30c8fb[_0x3c7127('0x2504')]=_0x39feea;}else{if(!_0x4d9a1a[_0x3c7127('0x9e3')])return _0x4f1a6b[_0x3c7127('0x78d')]['get']({'sectionId':_0x4d9a1a['id']})['$promise'][_0x3c7127('0x17e7')](function(_0x1036e2){const _0x414a99=_0x3c7127,_0x254c8c=_0x49cbdd()[_0x414a99('0x787')](_0x1036e2[_0x414a99('0x2319')],function(_0x3b5445){const _0x3ff91b=_0x414a99;return _0x49cbdd()[_0x3ff91b('0xe8e')](_0x30c8fb['lists'],{'id':_0x3b5445[_0x3ff91b('0x5db')]});});let _0x9c8262=null;_0x30c8fb[_0x414a99('0x127b')]&&(_0x9c8262=_0x49cbdd()[_0x414a99('0xe8e')](_0x30c8fb['lists'],{'id':Number(_0x30c8fb[_0x414a99('0x127b')]['ListId'])}));if(_0x9c8262&&!_0x49cbdd()[_0x414a99('0x26f8')](_0x254c8c,['id',_0x9c8262['id']])){const _0x26298c=_0x49cbdd()[_0x414a99('0xe8e')](_0x30c8fb['lists'],{'id':_0x9c8262['id']});_0x26298c[_0x414a99('0xe5c')]=![],_0x254c8c['push'](_0x26298c);}_0x30c8fb['lists']=_0x254c8c;});}})['catch'](function(_0x3c58a2){const _0x3faea5=_0x3f7ca1;_0x28a0ee[_0x3faea5('0x1db9')]({'title':_0x3c58a2[_0x3faea5('0x11c5')]?'API:'+_0x3c58a2[_0x3faea5('0x11c5')]+_0x3faea5('0x16e4')+_0x3c58a2['statusText']:_0x3faea5('0x1630'),'msg':_0x3c58a2[_0x3faea5('0x1457')]?JSON[_0x3faea5('0x678')](_0x3c58a2[_0x3faea5('0x1457')]):_0x3c58a2[_0x3faea5('0x9b6')]()});});function _0x9e9a8c(_0x2d88b0){const _0x489841=_0x3f7ca1;_0x169b43['go']('app.mail.mailAccounts.edit',{'id':_0x2d88b0['id'],'mailAccount':_0x2d88b0,'crudPermissions':_0x30c8fb[_0x489841('0x103e')]});}function _0x302a19(_0x3945cd){const _0x3abf56=_0x3f7ca1;if(_0x3945cd&&_0x3945cd['id'])return _0x4f1a6b[_0x3abf56('0x127b')][_0x3abf56('0x1bf1')]({'id':_0x3945cd['id']})[_0x3abf56('0x1af5')][_0x3abf56('0x17e7')](function(){const _0x387576=_0x3abf56;_0x28a0ee[_0x387576('0x130d')]({'title':'Smtp\x20properly\x20verified','msg':_0x387576('0x120d')});})[_0x3abf56('0x16df')](function(_0x2a1fff){const _0x300038=_0x3abf56;_0x28a0ee[_0x300038('0x1db9')]({'title':'Smtp\x20properly\x20verified','msg':_0x2a1fff[_0x300038('0x1457')]?JSON[_0x300038('0x678')](_0x2a1fff[_0x300038('0x1457')]):_0x2a1fff[_0x300038('0x9b6')]()});});else _0x28a0ee['error']({'title':_0x3abf56('0x25bf'),'msg':_0x3abf56('0x10ad')});}function _0x2e3259(_0x9c40e1){_0x169b43['go']('app.mail.mailAccounts.edit',{'id':_0x9c40e1['id'],'tab':0x7});}function _0x2db8c8(){const _0x9fa433=_0x3f7ca1;if(_0x102463[_0x9fa433('0x1ba2')](_0x9fa433('0x20bf')))_0x169b43['go'](_0x9fa433('0x3a8'),{});else return _0x4f1a6b[_0x9fa433('0x383')][_0x9fa433('0x1c53')]({'userProfileId':_0x102463['getCurrentUser']()[_0x9fa433('0x1e76')],'sectionId':0x262})[_0x9fa433('0x1af5')]['then'](function(_0x1f88e8){const _0x556e3c=_0x9fa433,_0x4690b5=_0x1f88e8&&_0x1f88e8[_0x556e3c('0x2319')]?_0x1f88e8['rows'][0x0]:null;_0x4690b5&&_0x4690b5['enabled']?_0x169b43['go'](_0x556e3c('0x3a8'),{}):_0x28a0ee[_0x556e3c('0x1178')]({'title':_0x2f7033[_0x556e3c('0x1acc')](_0x556e3c('0x286e')),'msg':_0x2f7033['instant'](_0x556e3c('0x1169'))});})[_0x9fa433('0x16df')](function(_0x20ed3b){const _0x131cf8=_0x9fa433;_0x28a0ee[_0x131cf8('0x1db9')]({'title':_0x20ed3b['status']?'API:'+_0x20ed3b[_0x131cf8('0x11c5')]+_0x131cf8('0x16e4')+_0x20ed3b[_0x131cf8('0x1833')]:_0x131cf8('0x338'),'msg':_0x20ed3b[_0x131cf8('0x11c5')]?JSON[_0x131cf8('0x678')](_0x20ed3b[_0x131cf8('0x1457')]):_0x20ed3b[_0x131cf8('0x9b6')]()});});}function _0x25f040(_0x5da476,_0x156ba2){const _0x5b18be=_0x3f7ca1;_0x12b7cb['show']({'controller':_0x5b18be('0x194f'),'controllerAs':'vm','templateUrl':_0x53a9a5,'parent':angular['element'](_0x43d9ae[_0x5b18be('0x13aa')]),'targetEvent':_0x156ba2,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x5da476,'mailAccounts':_0x30c8fb['mailAccounts']?_0x30c8fb[_0x5b18be('0x3d9')][_0x5b18be('0x2319')]:[],'crudPermissions':_0x30c8fb['crudPermissions'],'realtime':![]}});}function _0x34cfa9(_0x4206d9,_0x136dd2){const _0x5d6d2e=_0x3f7ca1,_0x3e7ec2=_0x12b7cb['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x49cbdd()[_0x5d6d2e('0x1c98')](_0x5d6d2e('0x127b'))+'?')[_0x5d6d2e('0x211f')](_0x5d6d2e('0xa53')+(_0x4206d9[_0x5d6d2e('0x2aa')]||_0x5d6d2e('0x127b'))+_0x5d6d2e('0x1d23')+'\x20will\x20be\x20deleted.')[_0x5d6d2e('0x2095')](_0x5d6d2e('0xb15'))[_0x5d6d2e('0x104f')](_0x136dd2)['ok']('OK')['cancel'](_0x5d6d2e('0x28a0'));_0x12b7cb[_0x5d6d2e('0x28e2')](_0x3e7ec2)[_0x5d6d2e('0x17e7')](function(){_0xad8b25(_0x4206d9);},function(){const _0x2bc2b3=_0x5d6d2e;console[_0x2bc2b3('0x1d63')](_0x2bc2b3('0x28a0'));});}let _0x189d08=!![],_0x3e7986=0x1;_0x2c5db6[_0x3f7ca1('0x620')](_0x3f7ca1('0x3ed'),function(_0x40a9cf,_0x57b8be){const _0x335789=_0x3f7ca1;_0x189d08?_0xe7c287(function(){_0x189d08=![];}):(!_0x57b8be&&(_0x3e7986=_0x30c8fb[_0x335789('0x826')][_0x335789('0x115a')]),_0x40a9cf!==_0x57b8be&&(_0x30c8fb[_0x335789('0x826')]['page']=0x1),!_0x40a9cf&&(_0x30c8fb[_0x335789('0x826')][_0x335789('0x115a')]=_0x3e7986),_0x30c8fb[_0x335789('0x21d8')]());});function _0x236af1(_0x1dd3a5){const _0x29ee1c=_0x3f7ca1;_0x30c8fb[_0x29ee1c('0x3d9')]=_0x1dd3a5||{'count':0x0,'rows':[]};}function _0x5558a0(){const _0xe9c0ce=_0x3f7ca1;_0x30c8fb['query'][_0xe9c0ce('0xf19')]=(_0x30c8fb['query'][_0xe9c0ce('0x115a')]-0x1)*_0x30c8fb[_0xe9c0ce('0x826')][_0xe9c0ce('0x193b')],_0x102463[_0xe9c0ce('0x1ba2')](_0xe9c0ce('0x20bf'))?_0x30c8fb[_0xe9c0ce('0x1691')]=_0x4f1a6b[_0xe9c0ce('0x127b')][_0xe9c0ce('0x1c53')](_0x30c8fb[_0xe9c0ce('0x826')],_0x236af1)[_0xe9c0ce('0x1af5')]:(_0x30c8fb[_0xe9c0ce('0x826')]['id']=_0x30c8fb[_0xe9c0ce('0xdeb')]['id'],_0x30c8fb[_0xe9c0ce('0x826')]['section']=_0xe9c0ce('0xedf'),_0x30c8fb[_0xe9c0ce('0x1691')]=_0x4f1a6b[_0xe9c0ce('0xdeb')]['getResources'](_0x30c8fb[_0xe9c0ce('0x826')],_0x236af1)['$promise']);}function _0x44ca88(_0x3a4ee2,_0x35b72e){const _0x4315bb=_0x3f7ca1;_0x12b7cb[_0x4315bb('0x28e2')]({'controller':_0x4315bb('0x11e9'),'controllerAs':'vm','templateUrl':_0x3c5adb,'parent':angular['element'](_0x43d9ae[_0x4315bb('0x13aa')]),'targetEvent':_0x3a4ee2,'clickOutsideToClose':!![],'locals':{'mailAccount':_0x35b72e,'mailAccounts':_0x30c8fb[_0x4315bb('0x3d9')]['rows'],'license':_0x30c8fb['license'],'setting':_0x30c8fb[_0x4315bb('0x1aeb')],'crudPermissions':_0x30c8fb[_0x4315bb('0x103e')]}});}function _0xad8b25(_0x17132c){const _0x483e3f=_0x3f7ca1;if(_0x17132c[_0x483e3f('0x282c')])return _0x28a0ee[_0x483e3f('0x1db9')]({'title':_0x483e3f('0xc13'),'msg':_0x483e3f('0x1772')});_0x4f1a6b['mailAccount'][_0x483e3f('0x1da6')]({'id':_0x17132c['id']})[_0x483e3f('0x1af5')]['then'](function(){const _0x3e3116=_0x483e3f;_0x49cbdd()[_0x3e3116('0x5f3')](_0x30c8fb[_0x3e3116('0x3d9')][_0x3e3116('0x2319')],{'id':_0x17132c['id']}),_0x30c8fb['mailAccounts'][_0x3e3116('0x335')]-=0x1,!_0x30c8fb['mailAccounts'][_0x3e3116('0x2319')][_0x3e3116('0x1f73')]&&_0x30c8fb[_0x3e3116('0x21d8')](),_0x28a0ee[_0x3e3116('0x130d')]({'title':_0x49cbdd()[_0x3e3116('0x1c98')](_0x3e3116('0x1c70'))+_0x3e3116('0x2673'),'msg':_0x17132c[_0x3e3116('0x2aa')]?_0x17132c[_0x3e3116('0x2aa')]+_0x3e3116('0x149f'):''});})[_0x483e3f('0x16df')](function(_0x553d0a){const _0x1ea830=_0x483e3f;if(_0x553d0a['data']&&_0x553d0a[_0x1ea830('0x1457')]['errors']&&_0x553d0a[_0x1ea830('0x1457')][_0x1ea830('0x73e')][_0x1ea830('0x1f73')]){_0x30c8fb['errors']=_0x553d0a[_0x1ea830('0x1457')]['errors']||[{'message':_0x553d0a[_0x1ea830('0x9b6')](),'type':_0x1ea830('0xd2')}];for(let _0xbacbfe=0x0;_0xbacbfe<_0x553d0a[_0x1ea830('0x1457')][_0x1ea830('0x73e')]['length'];_0xbacbfe++){_0x28a0ee[_0x1ea830('0x1db9')]({'title':_0x553d0a[_0x1ea830('0x1457')][_0x1ea830('0x73e')][_0xbacbfe][_0x1ea830('0x412')],'msg':_0x553d0a[_0x1ea830('0x1457')][_0x1ea830('0x73e')][_0xbacbfe][_0x1ea830('0x1603')]});}}else _0x28a0ee['error']({'title':_0x553d0a[_0x1ea830('0x11c5')]?_0x1ea830('0x14f7')+_0x553d0a['status']+'\x20-\x20'+_0x553d0a[_0x1ea830('0x1833')]:_0x1ea830('0xd2'),'msg':_0x553d0a['data']?JSON[_0x1ea830('0x678')](_0x553d0a[_0x1ea830('0x1457')]['message']):_0x553d0a[_0x1ea830('0x1603')]||_0x553d0a[_0x1ea830('0x9b6')]()});});}function _0x26b096(){const _0x1014dc=_0x3f7ca1,_0x49d6e8=angular['copy'](_0x30c8fb[_0x1014dc('0x242d')]);return _0x30c8fb[_0x1014dc('0x242d')]=[],_0x49d6e8;}function _0x465a61(_0x5a9220){const _0x42334c=_0x3f7ca1,_0xcc8289=_0x12b7cb[_0x42334c('0x1121')]()[_0x42334c('0x24d3')](_0x42334c('0x1d07'))['htmlContent'](_0x42334c('0xa53')+_0x30c8fb['selectedMailAccounts'][_0x42334c('0x1f73')]+'\x20selected'+_0x42334c('0xe9f'))[_0x42334c('0x2095')](_0x42334c('0xb6c'))[_0x42334c('0x104f')](_0x5a9220)['ok']('OK')[_0x42334c('0x1d47')](_0x42334c('0x28a0'));_0x12b7cb[_0x42334c('0x28e2')](_0xcc8289)['then'](function(){const _0x13e46a=_0x42334c;_0x30c8fb[_0x13e46a('0x242d')][_0x13e46a('0xccd')](function(_0x5bc742){_0xad8b25(_0x5bc742);}),_0x30c8fb['selectedMailAccounts']=[];});}function _0x18796c(){const _0x47f1bb=_0x3f7ca1;_0x30c8fb[_0x47f1bb('0x242d')]=[];}function _0xd658d8(){const _0x1ec617=_0x3f7ca1;_0x30c8fb[_0x1ec617('0x242d')]=_0x30c8fb[_0x1ec617('0x3d9')][_0x1ec617('0x2319')];}}const _0x1ab514=_0x33c143;_0x310d35['$inject']=['$scope','$state','$location','$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x13d1'),_0x4376d8('0x1e8b'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x310d35(_0x34d57e,_0xa7d371,_0x39f189,_0x135a0c,_0x2d6f96,_0x56678d,_0x3cdfdd,_0x2f1473,_0x2b3c02,_0x482667,_0x56492f,_0x9d35b,_0x36515a,_0x59595d){const _0x4f4f0a=_0x4376d8,_0x57afaf=this;_0x57afaf[_0x4f4f0a('0x197c')]=_0x56492f[_0x4f4f0a('0x2831')](),_0x57afaf[_0x4f4f0a('0x73e')]=[],_0x57afaf[_0x4f4f0a('0x1aeb')]=_0x36515a,_0x57afaf[_0x4f4f0a('0x1d11')]=_0x9d35b,_0x57afaf[_0x4f4f0a('0x103e')]=_0x59595d,_0x57afaf[_0x4f4f0a('0x6ee')]={},_0x57afaf['passwordPattern']=_0x57afaf[_0x4f4f0a('0x1aeb')]&&_0x57afaf['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x57afaf[_0x4f4f0a('0x24d3')]=_0x4f4f0a('0x1c44'),_0x57afaf['mailQueue']=angular['copy'](_0x2b3c02),_0x57afaf['mailQueues']=_0x2f1473,_0x57afaf[_0x4f4f0a('0x282')]=![];!_0x57afaf[_0x4f4f0a('0x1e8b')]&&(_0x57afaf[_0x4f4f0a('0x1e8b')]={'strategy':_0x4f4f0a('0x928'),'timeout':0xa},_0x57afaf[_0x4f4f0a('0x24d3')]='MAIL.NEW_MAILQUEUE',_0x57afaf[_0x4f4f0a('0x282')]=!![]);_0x57afaf[_0x4f4f0a('0x17f6')]=_0x3fedcc,_0x57afaf[_0x4f4f0a('0x2e1')]=_0x343ab4,_0x57afaf[_0x4f4f0a('0x777')]=_0x5014cb,_0x57afaf[_0x4f4f0a('0x1300')]=_0x2c4dee,_0x57afaf[_0x4f4f0a('0x136e')]=_0x13bcb5;function _0x3fedcc(){const _0x15796c=_0x4f4f0a;_0x57afaf[_0x15796c('0x73e')]=[],_0x482667[_0x15796c('0x1e8b')]['save'](_0x57afaf[_0x15796c('0x1e8b')])[_0x15796c('0x1af5')][_0x15796c('0x17e7')](function(_0x20f54c){const _0x3bcdab=_0x15796c;_0x57afaf[_0x3bcdab('0x13d1')]['unshift'](_0x20f54c[_0x3bcdab('0x16b2')]()),_0x3cdfdd[_0x3bcdab('0x130d')]({'title':_0x3bcdab('0x1b2c'),'msg':_0x57afaf['mailQueue'][_0x3bcdab('0x2aa')]?_0x57afaf[_0x3bcdab('0x1e8b')]['name']+_0x3bcdab('0x15a'):''}),_0x13bcb5(_0x20f54c);})[_0x15796c('0x16df')](function(_0x344fd6){const _0x5c7c82=_0x15796c;if(_0x344fd6[_0x5c7c82('0x1457')]&&_0x344fd6['data']['errors']&&_0x344fd6['data'][_0x5c7c82('0x73e')]['length']){_0x57afaf[_0x5c7c82('0x73e')]=_0x344fd6[_0x5c7c82('0x1457')]['errors']||[{'message':_0x344fd6[_0x5c7c82('0x9b6')](),'type':'api.mailQueue.save'}];for(let _0x325617=0x0;_0x325617<_0x344fd6[_0x5c7c82('0x1457')]['errors'][_0x5c7c82('0x1f73')];_0x325617+=0x1){_0x3cdfdd['error']({'title':_0x344fd6['data'][_0x5c7c82('0x73e')][_0x325617][_0x5c7c82('0x412')],'msg':_0x344fd6[_0x5c7c82('0x1457')][_0x5c7c82('0x73e')][_0x325617][_0x5c7c82('0x1603')]});}}else _0x3cdfdd[_0x5c7c82('0x1db9')]({'title':_0x344fd6[_0x5c7c82('0x11c5')]?'API:'+_0x344fd6[_0x5c7c82('0x11c5')]+'\x20-\x20'+_0x344fd6[_0x5c7c82('0x1833')]:_0x5c7c82('0x1210'),'msg':_0x344fd6['data']?JSON[_0x5c7c82('0x678')](_0x344fd6[_0x5c7c82('0x1457')][_0x5c7c82('0x1603')]):_0x344fd6[_0x5c7c82('0x9b6')]()});});}function _0x343ab4(){const _0x4b9573=_0x4f4f0a;_0x57afaf[_0x4b9573('0x73e')]=[],_0x482667['mailQueue'][_0x4b9573('0x27ba')]({'id':_0x57afaf[_0x4b9573('0x1e8b')]['id']},_0x57afaf[_0x4b9573('0x1e8b')])['$promise'][_0x4b9573('0x17e7')](function(_0x213992){const _0x395cfe=_0x4b9573,_0x57b889=_0x49cbdd()[_0x395cfe('0xe8e')](_0x57afaf[_0x395cfe('0x13d1')],{'id':_0x213992['id']});_0x57b889&&_0x49cbdd()[_0x395cfe('0x1ced')](_0x57b889,_0x49cbdd()['pick'](_0x213992[_0x395cfe('0x16b2')](),_0x49cbdd()[_0x395cfe('0x1c0f')](_0x57b889))),_0x3cdfdd[_0x395cfe('0x130d')]({'title':_0x395cfe('0x190a'),'msg':_0x57afaf[_0x395cfe('0x1e8b')]['name']?_0x57afaf[_0x395cfe('0x1e8b')][_0x395cfe('0x2aa')]+_0x395cfe('0x15ca'):''}),_0x13bcb5(_0x213992);})[_0x4b9573('0x16df')](function(_0x26ac17){const _0x3de52a=_0x4b9573;if(_0x26ac17[_0x3de52a('0x1457')]&&_0x26ac17[_0x3de52a('0x1457')][_0x3de52a('0x73e')]&&_0x26ac17[_0x3de52a('0x1457')][_0x3de52a('0x73e')][_0x3de52a('0x1f73')]){_0x57afaf[_0x3de52a('0x73e')]=_0x26ac17['data'][_0x3de52a('0x73e')]||[{'message':_0x26ac17['toString'](),'type':'api.mailQueue.update'}];for(let _0x52b5b0=0x0;_0x52b5b0<_0x26ac17['data'][_0x3de52a('0x73e')]['length'];_0x52b5b0++){_0x3cdfdd[_0x3de52a('0x1db9')]({'title':_0x26ac17[_0x3de52a('0x1457')][_0x3de52a('0x73e')][_0x52b5b0][_0x3de52a('0x412')],'msg':_0x26ac17[_0x3de52a('0x1457')][_0x3de52a('0x73e')][_0x52b5b0]['message']});}}else _0x3cdfdd[_0x3de52a('0x1db9')]({'title':_0x26ac17[_0x3de52a('0x11c5')]?'API:'+_0x26ac17[_0x3de52a('0x11c5')]+_0x3de52a('0x16e4')+_0x26ac17[_0x3de52a('0x1833')]:_0x3de52a('0x2684'),'msg':_0x26ac17[_0x3de52a('0x1457')]?JSON[_0x3de52a('0x678')](_0x26ac17[_0x3de52a('0x1457')][_0x3de52a('0x1603')]):_0x26ac17[_0x3de52a('0x9b6')]()});});}function _0x5014cb(_0x516d7f){const _0x87c185=_0x4f4f0a;_0x57afaf['errors']=[];const _0x6a1f2d=_0x135a0c['confirm']()[_0x87c185('0x24d3')]('Are\x20you\x20sure?')[_0x87c185('0xd5')](_0x87c185('0xade'))[_0x87c185('0x2095')](_0x87c185('0x1182'))['ok'](_0x87c185('0x304'))['cancel']('Cancel')[_0x87c185('0x104f')](_0x516d7f);_0x135a0c[_0x87c185('0x28e2')](_0x6a1f2d)[_0x87c185('0x17e7')](function(){const _0x19dbb1=_0x87c185;_0x482667['mailQueue'][_0x19dbb1('0x1da6')]({'id':_0x57afaf[_0x19dbb1('0x1e8b')]['id']})[_0x19dbb1('0x1af5')][_0x19dbb1('0x17e7')](function(){const _0x21d55b=_0x19dbb1;_0x49cbdd()[_0x21d55b('0x5f3')](_0x57afaf['mailQueues'],{'id':_0x57afaf[_0x21d55b('0x1e8b')]['id']}),_0x3cdfdd[_0x21d55b('0x130d')]({'title':_0x21d55b('0x2752'),'msg':(_0x57afaf[_0x21d55b('0x1e8b')][_0x21d55b('0x2aa')]||_0x21d55b('0x1e8b'))+_0x21d55b('0x149f')}),_0x13bcb5(_0x57afaf[_0x21d55b('0x1e8b')]);})[_0x19dbb1('0x16df')](function(_0x17e2f9){const _0x396559=_0x19dbb1;if(_0x17e2f9['data']&&_0x17e2f9['data'][_0x396559('0x73e')]&&_0x17e2f9[_0x396559('0x1457')][_0x396559('0x73e')][_0x396559('0x1f73')]){_0x57afaf[_0x396559('0x73e')]=_0x17e2f9['data'][_0x396559('0x73e')]||[{'message':_0x17e2f9[_0x396559('0x9b6')](),'type':_0x396559('0x226b')}];for(let _0x2c6b69=0x0;_0x2c6b69<_0x17e2f9['data'][_0x396559('0x73e')][_0x396559('0x1f73')];_0x2c6b69++){_0x3cdfdd['error']({'title':_0x17e2f9['data'][_0x396559('0x73e')][_0x2c6b69][_0x396559('0x412')],'msg':_0x17e2f9[_0x396559('0x1457')]['errors'][_0x2c6b69]['message']});}}else _0x3cdfdd[_0x396559('0x1db9')]({'title':_0x17e2f9[_0x396559('0x11c5')]?'API:'+_0x17e2f9['status']+_0x396559('0x16e4')+_0x17e2f9[_0x396559('0x1833')]:_0x396559('0x226b'),'msg':_0x17e2f9[_0x396559('0x1457')]?JSON[_0x396559('0x678')](_0x17e2f9[_0x396559('0x1457')][_0x396559('0x1603')]):_0x17e2f9[_0x396559('0x1603')]||_0x17e2f9[_0x396559('0x9b6')]()});});},function(){});}function _0x2c4dee(_0x4f7de2){return _0x4f7de2===null?undefined:new Date(_0x4f7de2);}function _0x13bcb5(_0x115f35){const _0x4c124b=_0x4f4f0a;_0x135a0c[_0x4c124b('0x212a')](_0x115f35);}}const _0xb128a8=_0x310d35;_0x4da9c8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1e8b'),_0x4376d8('0x13d1'),_0x4376d8('0x20c8'),'$translate',_0x4376d8('0x1885'),'crudPermissions'];function _0x4da9c8(_0x2464fd,_0x4411b4,_0x123b64,_0x31c5cb,_0x12a0df,_0x558b88,_0x418d3f,_0x4cf6bf,_0x47b87c,_0x3fc133){const _0x586f35=_0x4376d8,_0x139172=this;_0x139172['currentUser']=_0x47b87c[_0x586f35('0x2831')](),_0x139172[_0x586f35('0x1e8b')]=_0x12a0df,_0x139172['crudPermissions']=_0x3fc133,_0x139172[_0x586f35('0x20c8')]=_0x418d3f,_0x139172[_0x586f35('0x532')]=[],_0x139172[_0x586f35('0x2722')]=[],_0x139172['selectedItems']=[],_0x139172['startingAllowedItems']=[],_0x139172[_0x586f35('0x1824')]=[],_0x139172[_0x586f35('0x25dc')]=![],_0x139172[_0x586f35('0xdf0')]=_0x479bfd,_0x139172[_0x586f35('0x257a')]=_0x58fdcb,_0x139172[_0x586f35('0x136e')]=_0x1091a1,_0x139172[_0x586f35('0x26f4')]={'readOnly':!_0x139172['crudPermissions']['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x586f35('0x2aa'),'line1':_0x586f35('0xea6'),'line2':[_0x586f35('0x2aa'),_0x586f35('0xe3e')],'line3':'','labelAll':_0x4cf6bf[_0x586f35('0x1acc')](_0x586f35('0x18b0')),'labelSelected':_0x4cf6bf[_0x586f35('0x1acc')](_0x586f35('0xb83')),'transferCallback':function(){const _0x37df6e=_0x586f35,_0x31536e=_0x49cbdd()[_0x37df6e('0x137')](_0x139172[_0x37df6e('0x1824')],_0x139172['selectedItems'],'id');_0x139172[_0x37df6e('0x25dc')]=_0x49cbdd()[_0x37df6e('0x109a')](_0x31536e)?![]:!![];}};function _0x479bfd(){const _0x738174=_0x586f35;return _0x47b87c[_0x738174('0x1ba2')]('admin')?_0x4489db()[_0x738174('0x16df')](function(_0x49077f){const _0x6f2a3b=_0x738174;_0x123b64[_0x6f2a3b('0x1db9')]({'title':_0x49077f[_0x6f2a3b('0x11c5')]?_0x6f2a3b('0x14f7')+_0x49077f[_0x6f2a3b('0x11c5')]+_0x6f2a3b('0x16e4')+_0x49077f[_0x6f2a3b('0x1833')]:_0x6f2a3b('0x23e0'),'msg':_0x49077f[_0x6f2a3b('0x11c5')]?JSON['stringify'](_0x49077f[_0x6f2a3b('0x1457')]):_0x49077f[_0x6f2a3b('0x9b6')]()});}):_0x1eebd5()[_0x738174('0x17e7')](function(_0x21210f){const _0x3593c5=_0x738174;return _0x139172[_0x3593c5('0x16f8')]=_0x21210f,_0x4489db();})[_0x738174('0x16df')](function(_0x50440d){const _0x4507f9=_0x738174;_0x123b64[_0x4507f9('0x1db9')]({'title':_0x50440d['status']?_0x4507f9('0x14f7')+_0x50440d[_0x4507f9('0x11c5')]+_0x4507f9('0x16e4')+_0x50440d['statusText']:_0x4507f9('0x23e0'),'msg':_0x50440d[_0x4507f9('0x11c5')]?JSON[_0x4507f9('0x678')](_0x50440d[_0x4507f9('0x1457')]):_0x50440d[_0x4507f9('0x9b6')]()});});}function _0x1eebd5(){return _0x4411b4(function(_0xa74802,_0x3ea052){const _0x3196ad=a0_0xd29e;_0x31c5cb['userProfileSection'][_0x3196ad('0x1c53')]({'userProfileId':_0x139172[_0x3196ad('0x197c')]['userProfileId'],'name':_0x3196ad('0x2157')})['$promise']['then'](function(_0x279b28){const _0x29b7d2=_0x3196ad,_0x4f59b1=_0x279b28&&_0x279b28[_0x29b7d2('0x2319')]?_0x279b28[_0x29b7d2('0x2319')][0x0]:null;_0xa74802(_0x4f59b1);})['catch'](function(_0x1f0df9){_0x3ea052(_0x1f0df9);});});}function _0x4489db(){return _0x4411b4(function(_0x3d2ef0,_0x30c20a){const _0x3c8e15=a0_0xd29e;return _0x4265d0()[_0x3c8e15('0x17e7')](function(_0x552a01){const _0x4479ca=_0x3c8e15;return _0x139172['items']=_0x552a01[_0x4479ca('0x2319')]?_0x552a01[_0x4479ca('0x2319')]:[],_0x47b87c['hasRole'](_0x4479ca('0x20bf'))?_0x552a01:_0x139172[_0x4479ca('0x16f8')]?_0x139172[_0x4479ca('0x16f8')][_0x4479ca('0x9e3')]?_0x552a01:_0x3ec28b():null;})[_0x3c8e15('0x17e7')](function(_0xb62bf0){const _0x21cf0e=_0x3c8e15,_0x5b321c=_0xb62bf0&&_0xb62bf0['rows']?_0xb62bf0[_0x21cf0e('0x2319')]:[];return _0x139172['allowedItems']=_0x49cbdd()[_0x21cf0e('0x787')](_0x5b321c,function(_0x1b6e0b){const _0x9605a2=_0x21cf0e;return _0x49cbdd()[_0x9605a2('0xe8e')](_0x139172[_0x9605a2('0x532')],{'id':_0x47b87c['hasRole'](_0x9605a2('0x20bf'))||_0x139172[_0x9605a2('0x16f8')][_0x9605a2('0x9e3')]?_0x1b6e0b['id']:_0x1b6e0b[_0x9605a2('0x5db')]});}),_0x139172[_0x21cf0e('0x181b')]=angular[_0x21cf0e('0x14e5')](_0x139172[_0x21cf0e('0x2722')]),_0x139172[_0x21cf0e('0x532')][_0x21cf0e('0xccd')](function(_0x1462c7){const _0x2c50b2=_0x21cf0e,_0xd02454=_0x49cbdd()[_0x2c50b2('0xe8e')](_0x139172[_0x2c50b2('0x2722')],{'id':_0x1462c7['id']});_0x47b87c[_0x2c50b2('0x1ba2')]('admin')?_0x1462c7[_0x2c50b2('0xc98')]=!![]:_0x1462c7[_0x2c50b2('0xc98')]=typeof _0xd02454!==_0x2c50b2('0xfad')?!![]:![];}),_0x21e66a();})[_0x3c8e15('0x17e7')](function(_0x102ea2){const _0x289793=_0x3c8e15,_0x1e7886=_0x102ea2&&_0x102ea2[_0x289793('0x2319')]?_0x102ea2[_0x289793('0x2319')]:[];_0x139172['selectedItems']=_0x49cbdd()[_0x289793('0x787')](_0x1e7886,function(_0x2f2be7){const _0x53640d=_0x289793,_0x2aee87=_0x49cbdd()[_0x53640d('0xe8e')](_0x139172['items'],{'id':_0x2f2be7['id']});return _0x2aee87[_0x53640d('0x122c')]=_0x2f2be7[_0x53640d('0xb00')]?_0x53640d('0x973')+_0x2f2be7['UserMailQueue']['penalty']:'',_0x2aee87[_0x53640d('0xe3e')]=typeof _0x2f2be7['internal']!==_0x53640d('0xfad')?'<'+_0x2f2be7[_0x53640d('0xe3e')]+'>':'',_0x2aee87;}),_0x139172[_0x289793('0x1824')]=angular[_0x289793('0x14e5')](_0x139172[_0x289793('0xc14')]),_0x139172['dualMultiselectOptions'][_0x289793('0xc14')]=_0x139172[_0x289793('0xc14')],_0x139172[_0x289793('0x26f4')][_0x289793('0x532')]=_0x49cbdd()['differenceBy'](_0x139172[_0x289793('0x2722')],_0x139172['dualMultiselectOptions'][_0x289793('0xc14')],'id'),_0x3d2ef0();})['catch'](function(_0x2ebfff){_0x30c20a(_0x2ebfff);});});}function _0x3ec28b(){return _0x4411b4(function(_0x1087d3,_0x567d96){const _0x4dee8c=a0_0xd29e;return _0x31c5cb[_0x4dee8c('0x78d')][_0x4dee8c('0x1c53')]({'sectionId':_0x139172['section']['id'],'nolimit':!![]})[_0x4dee8c('0x1af5')]['then'](function(_0xd1b05e){_0x1087d3(_0xd1b05e);})[_0x4dee8c('0x16df')](function(_0x497cb6){_0x567d96(_0x497cb6);});});}function _0x21e66a(){return _0x4411b4(function(_0x3ec6eb,_0x1a174e){const _0x402c92=a0_0xd29e;return _0x31c5cb['mailQueue'][_0x402c92('0x1dac')]({'id':_0x139172[_0x402c92('0x1e8b')]['id'],'fields':_0x402c92('0x1152'),'nolimit':!![],'role':_0x402c92('0x684')})[_0x402c92('0x1af5')][_0x402c92('0x17e7')](function(_0x5f454f){_0x3ec6eb(_0x5f454f);})[_0x402c92('0x16df')](function(_0x5767e2){_0x1a174e(_0x5767e2);});});}function _0x4265d0(){return _0x4411b4(function(_0x313f77,_0x433d95){const _0xff327b=a0_0xd29e;return _0x31c5cb[_0xff327b('0x221e')][_0xff327b('0x1c53')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0xff327b('0x684')})[_0xff327b('0x1af5')][_0xff327b('0x17e7')](function(_0x35ad74){_0x313f77(_0x35ad74);})[_0xff327b('0x16df')](function(_0x550870){_0x433d95(_0x550870);});});}function _0x148bd6(_0x49c9f4){return _0x4411b4(function(_0x1ba206,_0x4e41dd){const _0x21c821=a0_0xd29e;_0x49cbdd()[_0x21c821('0x109a')](_0x49c9f4)?_0x1ba206():_0x31c5cb['mailQueue'][_0x21c821('0x1f22')]({'id':_0x139172['mailQueue']['id'],'ids':_0x49cbdd()['map'](_0x49c9f4,'id')})[_0x21c821('0x1af5')][_0x21c821('0x17e7')](function(){_0x1ba206();})['catch'](function(_0x489043){_0x4e41dd(_0x489043);});});}function _0x48e6a9(_0x17e49b){return _0x4411b4(function(_0x4e25a9,_0x1093d9){const _0xcc4980=a0_0xd29e;_0x49cbdd()[_0xcc4980('0x109a')](_0x17e49b)?_0x4e25a9():_0x31c5cb[_0xcc4980('0x1e8b')][_0xcc4980('0x1625')]({'id':_0x139172[_0xcc4980('0x1e8b')]['id'],'ids':_0x49cbdd()[_0xcc4980('0x787')](_0x17e49b,'id')})['$promise'][_0xcc4980('0x17e7')](function(){_0x4e25a9();})[_0xcc4980('0x16df')](function(_0x5ddf11){_0x1093d9(_0x5ddf11);});});}function _0x58fdcb(){const _0xb63daf=_0x586f35,_0x264cf4=_0x49cbdd()[_0xb63daf('0x1ada')](_0x139172[_0xb63daf('0x1824')],_0x139172[_0xb63daf('0xc14')],'id'),_0x5d267f=_0x49cbdd()[_0xb63daf('0x1ada')](_0x139172[_0xb63daf('0xc14')],_0x139172['startingSelectedItems'],'id');return _0x48e6a9(_0x264cf4)[_0xb63daf('0x17e7')](function(){return _0x148bd6(_0x5d267f);})[_0xb63daf('0x17e7')](function(){const _0x475345=_0xb63daf;_0x139172[_0x475345('0x25dc')]=![],_0x139172[_0x475345('0x181b')]=angular[_0x475345('0x14e5')](_0x139172[_0x475345('0x2722')]),_0x139172[_0x475345('0x1824')]=angular['copy'](_0x139172[_0x475345('0xc14')]),_0x123b64['success']({'title':_0x475345('0x9d1'),'msg':_0x475345('0x2603')});})['catch'](function(_0x25835a){const _0x4a4e94=_0xb63daf;_0x123b64[_0x4a4e94('0x1db9')]({'title':_0x25835a[_0x4a4e94('0x11c5')]?'API:'+_0x25835a['status']+_0x4a4e94('0x16e4')+_0x25835a[_0x4a4e94('0x1833')]:_0x4a4e94('0x244e'),'msg':_0x25835a[_0x4a4e94('0x11c5')]?JSON[_0x4a4e94('0x678')](_0x25835a['data']):_0x25835a[_0x4a4e94('0x9b6')]()});});}function _0x1091a1(){const _0x588443=_0x586f35;_0x2464fd[_0x588443('0x212a')]();}}const _0xefd0e4=_0x4da9c8;_0x107b23[_0x4376d8('0x1b9c')]=['$mdDialog','$q','toasty',_0x4376d8('0x212e'),'mailQueue','$translate',_0x4376d8('0x1885'),'crudPermissions'];function _0x107b23(_0x9de6d5,_0x1d58cf,_0x31e8b4,_0x24cb79,_0x43be3b,_0x1246d4,_0x53d748,_0x434a02){const _0x45221b=_0x4376d8,_0x12961b=this;_0x12961b[_0x45221b('0x197c')]=_0x53d748['getCurrentUser'](),_0x12961b[_0x45221b('0x1e8b')]=_0x43be3b,_0x12961b[_0x45221b('0x103e')]=_0x434a02,_0x12961b['items']=[],_0x12961b[_0x45221b('0x2722')]=[],_0x12961b[_0x45221b('0xc14')]=[],_0x12961b[_0x45221b('0x181b')]=[],_0x12961b['startingSelectedItems']=[],_0x12961b[_0x45221b('0x25dc')]=![],_0x12961b[_0x45221b('0x26f4')]={'readOnly':!_0x12961b[_0x45221b('0x103e')][_0x45221b('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x45221b('0x2aa'),'line2':'','line3':'','labelAll':_0x1246d4[_0x45221b('0x1acc')](_0x45221b('0x22')),'labelSelected':_0x1246d4[_0x45221b('0x1acc')](_0x45221b('0x331')),'transferCallback':function(){const _0x1b74ec=_0x45221b,_0xf770e=_0x49cbdd()[_0x1b74ec('0x137')](_0x12961b['startingSelectedItems'],_0x12961b['selectedItems'],'id');_0x12961b['pendingChanges']=_0x49cbdd()[_0x1b74ec('0x109a')](_0xf770e)?![]:!![];}},_0x12961b[_0x45221b('0xdf0')]=_0x57b2a8,_0x12961b[_0x45221b('0x1a8f')]=_0xcc3964,_0x12961b['closeDialog']=_0x51f785;function _0x57b2a8(){const _0x40c2ff=_0x45221b;return _0x53d748['hasRole'](_0x40c2ff('0x20bf'))?_0x45abfa()[_0x40c2ff('0x16df')](function(_0x3755f2){const _0x5d6b76=_0x40c2ff;_0x31e8b4[_0x5d6b76('0x1db9')]({'title':_0x3755f2[_0x5d6b76('0x11c5')]?_0x5d6b76('0x14f7')+_0x3755f2[_0x5d6b76('0x11c5')]+_0x5d6b76('0x16e4')+_0x3755f2[_0x5d6b76('0x1833')]:'SYSTEM:GET_TEAMS','msg':_0x3755f2['status']?JSON[_0x5d6b76('0x678')](_0x3755f2[_0x5d6b76('0x1457')]):_0x3755f2[_0x5d6b76('0x9b6')]()});}):_0x274b5e()[_0x40c2ff('0x17e7')](function(_0x1046f4){const _0x35d660=_0x40c2ff;return _0x12961b[_0x35d660('0x16f8')]=_0x1046f4,_0x45abfa();})[_0x40c2ff('0x16df')](function(_0x25a7f8){const _0x47344b=_0x40c2ff;_0x31e8b4['error']({'title':_0x25a7f8[_0x47344b('0x11c5')]?'API:'+_0x25a7f8[_0x47344b('0x11c5')]+_0x47344b('0x16e4')+_0x25a7f8['statusText']:_0x47344b('0x20cf'),'msg':_0x25a7f8[_0x47344b('0x11c5')]?JSON[_0x47344b('0x678')](_0x25a7f8[_0x47344b('0x1457')]):_0x25a7f8['toString']()});});}function _0x274b5e(){return _0x1d58cf(function(_0x14c124,_0x2601fc){const _0x30d432=a0_0xd29e;_0x24cb79[_0x30d432('0x383')]['get']({'userProfileId':_0x12961b[_0x30d432('0x197c')][_0x30d432('0x1e76')],'name':_0x30d432('0x1cf2')})[_0x30d432('0x1af5')][_0x30d432('0x17e7')](function(_0x1aced1){const _0x444e23=_0x30d432,_0x57e9b8=_0x1aced1&&_0x1aced1[_0x444e23('0x2319')]?_0x1aced1[_0x444e23('0x2319')][0x0]:null;_0x14c124(_0x57e9b8);})['catch'](function(_0x111b71){_0x2601fc(_0x111b71);});});}function _0x45abfa(){return _0x1d58cf(function(_0xeb45b2,_0xf9252e){const _0x13cccb=a0_0xd29e;return _0x122659()[_0x13cccb('0x17e7')](function(_0x3637db){const _0x156832=_0x13cccb;return _0x12961b[_0x156832('0x532')]=_0x3637db['rows']?_0x3637db[_0x156832('0x2319')]:[],_0x53d748[_0x156832('0x1ba2')](_0x156832('0x20bf'))?_0x3637db:_0x12961b[_0x156832('0x16f8')]?_0x12961b[_0x156832('0x16f8')][_0x156832('0x9e3')]?_0x3637db:_0x22b260():null;})[_0x13cccb('0x17e7')](function(_0x40e2e4){const _0x1564b2=_0x13cccb,_0x4d54d6=_0x40e2e4&&_0x40e2e4[_0x1564b2('0x2319')]?_0x40e2e4[_0x1564b2('0x2319')]:[];return _0x12961b[_0x1564b2('0x2722')]=_0x49cbdd()[_0x1564b2('0x787')](_0x4d54d6,function(_0x3f8842){const _0x251f10=_0x1564b2;return _0x49cbdd()[_0x251f10('0xe8e')](_0x12961b[_0x251f10('0x532')],{'id':_0x53d748[_0x251f10('0x1ba2')]('admin')||_0x12961b[_0x251f10('0x16f8')]['autoAssociation']?_0x3f8842['id']:_0x3f8842[_0x251f10('0x5db')]});}),_0x12961b[_0x1564b2('0x532')][_0x1564b2('0xccd')](function(_0x49c2b7){const _0x5ca73b=_0x1564b2,_0x37230b=_0x49cbdd()['find'](_0x12961b[_0x5ca73b('0x2722')],{'id':_0x49c2b7['id']});_0x53d748[_0x5ca73b('0x1ba2')]('admin')?_0x49c2b7[_0x5ca73b('0xc98')]=!![]:_0x49c2b7[_0x5ca73b('0xc98')]=typeof _0x37230b!=='undefined'?!![]:![];}),_0x49ffb3();})[_0x13cccb('0x17e7')](function(_0x183b61){const _0x231087=_0x13cccb,_0x7819f1=_0x183b61&&_0x183b61['rows']?_0x183b61[_0x231087('0x2319')]:[];_0x12961b[_0x231087('0xc14')]=_0x49cbdd()['map'](_0x7819f1,function(_0x2f9b17){const _0x457bb5=_0x231087;return _0x49cbdd()['find'](_0x12961b[_0x457bb5('0x532')],{'id':_0x2f9b17['id']});}),_0x12961b[_0x231087('0x1824')]=angular[_0x231087('0x14e5')](_0x12961b['selectedItems']),_0x12961b[_0x231087('0x26f4')]['selectedItems']=_0x12961b[_0x231087('0xc14')],_0x12961b[_0x231087('0x26f4')]['items']=_0x49cbdd()['differenceBy'](_0x12961b[_0x231087('0x2722')],_0x12961b[_0x231087('0x26f4')][_0x231087('0xc14')],'id'),_0xeb45b2();})[_0x13cccb('0x16df')](function(_0x14974f){_0xf9252e(_0x14974f);});});}function _0x22b260(){return _0x1d58cf(function(_0x57baa0,_0x4a1574){const _0x1d2e49=a0_0xd29e;return _0x24cb79[_0x1d2e49('0x78d')][_0x1d2e49('0x1c53')]({'sectionId':_0x12961b[_0x1d2e49('0x16f8')]['id'],'nolimit':!![]})['$promise'][_0x1d2e49('0x17e7')](function(_0x53b5e4){_0x57baa0(_0x53b5e4);})['catch'](function(_0x5c81bd){_0x4a1574(_0x5c81bd);});});}function _0x49ffb3(){return _0x1d58cf(function(_0x306345,_0x3b4804){const _0xaa14e6=a0_0xd29e;return _0x24cb79[_0xaa14e6('0x1e8b')]['getTeams']({'id':_0x12961b[_0xaa14e6('0x1e8b')]['id'],'fields':_0xaa14e6('0x12d2'),'nolimit':!![]})['$promise']['then'](function(_0x1eef56){_0x306345(_0x1eef56);})[_0xaa14e6('0x16df')](function(_0x468699){_0x3b4804(_0x468699);});});}function _0x122659(){return _0x1d58cf(function(_0x2e6909,_0x1c7565){const _0x2db1ce=a0_0xd29e;return _0x24cb79['team'][_0x2db1ce('0x1c53')]({'fields':'id,name','nolimit':!![]})[_0x2db1ce('0x1af5')]['then'](function(_0x348883){_0x2e6909(_0x348883);})['catch'](function(_0x15d3d4){_0x1c7565(_0x15d3d4);});});}function _0x153324(_0x26aae3){return _0x1d58cf(function(_0x13ba5b,_0x47d21e){const _0x419637=a0_0xd29e;_0x49cbdd()[_0x419637('0x109a')](_0x26aae3)?_0x13ba5b():_0x24cb79['mailQueue'][_0x419637('0x670')]({'id':_0x12961b[_0x419637('0x1e8b')]['id'],'ids':_0x49cbdd()[_0x419637('0x787')](_0x26aae3,'id')})[_0x419637('0x1af5')][_0x419637('0x17e7')](function(){_0x13ba5b();})[_0x419637('0x16df')](function(_0xe4112f){_0x47d21e(_0xe4112f);});});}function _0x4830e4(_0x2b6d4b){return _0x1d58cf(function(_0x3335f1,_0x2bc389){const _0xb5176c=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x2b6d4b)?_0x3335f1():_0x24cb79['mailQueue'][_0xb5176c('0x27e8')]({'id':_0x12961b['mailQueue']['id'],'ids':_0x49cbdd()['map'](_0x2b6d4b,'id')})['$promise'][_0xb5176c('0x17e7')](function(){_0x3335f1();})[_0xb5176c('0x16df')](function(_0x41ff90){_0x2bc389(_0x41ff90);});});}function _0xcc3964(){const _0x146ff9=_0x45221b,_0x2ab0da=_0x49cbdd()[_0x146ff9('0x1ada')](_0x12961b[_0x146ff9('0x1824')],_0x12961b[_0x146ff9('0xc14')],'id'),_0x54002c=_0x49cbdd()[_0x146ff9('0x1ada')](_0x12961b[_0x146ff9('0xc14')],_0x12961b[_0x146ff9('0x1824')],'id');return _0x4830e4(_0x2ab0da)[_0x146ff9('0x17e7')](function(){return _0x153324(_0x54002c);})[_0x146ff9('0x17e7')](function(){const _0x49d5f5=_0x146ff9;_0x12961b[_0x49d5f5('0x25dc')]=![],_0x12961b[_0x49d5f5('0x181b')]=angular[_0x49d5f5('0x14e5')](_0x12961b[_0x49d5f5('0x2722')]),_0x12961b[_0x49d5f5('0x1824')]=angular[_0x49d5f5('0x14e5')](_0x12961b['selectedItems']),_0x31e8b4[_0x49d5f5('0x130d')]({'title':'SUCCESS','msg':_0x49d5f5('0x1091')});})['catch'](function(_0xd7935a){const _0x35cdc6=_0x146ff9;_0x31e8b4[_0x35cdc6('0x1db9')]({'title':_0xd7935a[_0x35cdc6('0x11c5')]?_0x35cdc6('0x14f7')+_0xd7935a[_0x35cdc6('0x11c5')]+_0x35cdc6('0x16e4')+_0xd7935a[_0x35cdc6('0x1833')]:_0x35cdc6('0x244e'),'msg':_0xd7935a[_0x35cdc6('0x11c5')]?JSON[_0x35cdc6('0x678')](_0xd7935a[_0x35cdc6('0x1457')]):_0xd7935a[_0x35cdc6('0x9b6')]()});});}function _0x51f785(){_0x9de6d5['hide']();}}const _0x14523d=_0x107b23,_0x4f081f=_0x4cf2bc['p']+_0x4376d8('0x2287');_0x2cadd3[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885'),_0x4376d8('0x1e8b'),'userProfileSection'];function _0x2cadd3(_0x3eab3d,_0x2a5b48,_0x3fc638,_0x39e225,_0x55ad7e,_0x344404,_0x303665,_0x3dee45,_0x2a9af1,_0x2ebdb1,_0x792d4c,_0x4625ef){const _0x13b8f0=_0x4376d8,_0x182dad=this;_0x182dad[_0x13b8f0('0x197c')]=_0x2ebdb1[_0x13b8f0('0x2831')](),_0x182dad[_0x13b8f0('0x1d11')]=_0x344404,_0x182dad[_0x13b8f0('0x1aeb')]=_0x303665,_0x182dad[_0x13b8f0('0x1572')]=_0x182dad['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x182dad[_0x13b8f0('0xaed')]=_0x2a5b48[_0x13b8f0('0x14fe')]()+_0x13b8f0('0x14')+_0x2a5b48[_0x13b8f0('0x108')](),_0x182dad['mailQueue']=_0x792d4c||_0x3eab3d[_0x13b8f0('0x16fb')][_0x13b8f0('0x1e8b')]||{},_0x182dad[_0x13b8f0('0x383')]=_0x4625ef&&_0x4625ef[_0x13b8f0('0x335')]==0x1?_0x4625ef[_0x13b8f0('0x2319')][0x0]:null,_0x182dad[_0x13b8f0('0x103e')]=_0x2ebdb1[_0x13b8f0('0x17a9')](_0x182dad[_0x13b8f0('0x383')]?_0x182dad[_0x13b8f0('0x383')][_0x13b8f0('0x103e')]:null),_0x182dad[_0x13b8f0('0x6ee')]={},_0x182dad[_0x13b8f0('0xde7')]=_0x3eab3d[_0x13b8f0('0x16fb')]['tab']||0x0,_0x182dad[_0x13b8f0('0x1e34')]=_0x1b9ad4,_0x182dad[_0x13b8f0('0x2359')]=_0x1cf5bd,_0x182dad['alert']=_0x2a9af1[_0x13b8f0('0x1178')],_0x182dad[_0x13b8f0('0x15e2')]=_0x343cde,_0x182dad[_0x13b8f0('0x2e1')]=_0x5acad3;function _0x1b9ad4(_0x1ba1cd,_0x2fce96){const _0x403e66=_0x13b8f0;_0x3fc638[_0x403e66('0x28e2')]({'controller':_0x403e66('0x132c'),'controllerAs':'vm','templateUrl':_0x4f081f,'parent':angular[_0x403e66('0x1ce1')](_0x39e225[_0x403e66('0x13aa')]),'targetEvent':_0x2fce96,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x1ba1cd,'mailQueues':_0x182dad[_0x403e66('0x13d1')]?_0x182dad[_0x403e66('0x13d1')][_0x403e66('0x2319')]:[],'crudPermissions':_0x182dad['crudPermissions']}});}function _0x1cf5bd(_0x5e573e,_0x38b8d0){const _0x4b07b0=_0x13b8f0;_0x3fc638[_0x4b07b0('0x28e2')]({'controller':_0x4b07b0('0x1648'),'controllerAs':'vm','templateUrl':_0xda1718,'parent':angular[_0x4b07b0('0x1ce1')](_0x39e225[_0x4b07b0('0x13aa')]),'targetEvent':_0x38b8d0,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x5e573e,'mailQueues':_0x182dad[_0x4b07b0('0x13d1')]?_0x182dad[_0x4b07b0('0x13d1')][_0x4b07b0('0x2319')]:[],'crudPermissions':_0x182dad[_0x4b07b0('0x103e')],'realtime':![]}});}function _0x343cde(){const _0x52694b=_0x13b8f0;_0x3eab3d['go'](_0x52694b('0xdd4'),{},{'reload':_0x52694b('0xdd4')});}function _0x5acad3(){const _0x48447c=_0x13b8f0;_0x3dee45[_0x48447c('0x1e8b')][_0x48447c('0x27ba')]({'id':_0x182dad['mailQueue']['id']},_0x182dad['mailQueue'])[_0x48447c('0x1af5')]['then'](function(){const _0x236707=_0x48447c;_0x2a9af1[_0x236707('0x130d')]({'title':'MailQueue\x20updated!','msg':_0x182dad[_0x236707('0x1e8b')][_0x236707('0x2aa')]?_0x182dad['mailQueue'][_0x236707('0x2aa')]+'\x20has\x20been\x20updated!':''});})[_0x48447c('0x16df')](function(_0x4c8ef4){const _0x25430b=_0x48447c;_0x2a9af1[_0x25430b('0x1db9')]({'title':_0x4c8ef4[_0x25430b('0x11c5')]?_0x25430b('0x14f7')+_0x4c8ef4[_0x25430b('0x11c5')]+_0x25430b('0x16e4')+_0x4c8ef4[_0x25430b('0x1833')]:_0x25430b('0x273b'),'msg':_0x4c8ef4[_0x25430b('0x1457')]?JSON[_0x25430b('0x678')](_0x4c8ef4[_0x25430b('0x1457')]):_0x4c8ef4['toString']()});});}}const _0x20857a=_0x2cadd3;_0xe17a6['$inject']=[_0x4376d8('0x668'),'$window','$state','$mdSidenav','$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$translate',_0x4376d8('0x13d1'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),'toasty','Auth','license',_0x4376d8('0x1aeb')];function _0xe17a6(_0x4d6098,_0x50e087,_0x190dc4,_0x3eed6d,_0x252a9e,_0x3885b7,_0x420e07,_0x3a893e,_0x2af887,_0x594e00,_0x145bce,_0x2ec677,_0xaa22b8,_0x2e5cba,_0x5a81d8,_0x3cc357,_0x26dbde){const _0x1fa042=_0x4376d8,_0x2e9a9c=this;_0x2e9a9c['license']=_0x3cc357,_0x2e9a9c[_0x1fa042('0x1aeb')]=_0x26dbde,_0x2e9a9c[_0x1fa042('0x197c')]=_0x5a81d8[_0x1fa042('0x2831')](),_0x2e9a9c[_0x1fa042('0x13d1')]=_0x2af887||{'count':0x0,'rows':[]},_0x2e9a9c[_0x1fa042('0xdeb')]=_0x594e00,_0x2e9a9c[_0x1fa042('0x383')]=_0x145bce&&_0x145bce[_0x1fa042('0x335')]==0x1?_0x145bce['rows'][0x0]:null,_0x2e9a9c[_0x1fa042('0x103e')]=_0x5a81d8['parseCrudPermissions'](_0x2e9a9c[_0x1fa042('0x383')]?_0x2e9a9c[_0x1fa042('0x383')][_0x1fa042('0x103e')]:null),_0x2e9a9c[_0x1fa042('0x23c3')]=_0x1fa042('0x13d1'),_0x2e9a9c['listOrder']='',_0x2e9a9c[_0x1fa042('0x24e1')]=null,_0x2e9a9c[_0x1fa042('0xa7')]=[],_0x2e9a9c[_0x1fa042('0x826')]={'fields':_0x1fa042('0x1029'),'sort':_0x1fa042('0x1ac6'),'channel':_0x1fa042('0xc2'),'limit':0xa,'page':0x1},_0x2e9a9c[_0x1fa042('0x245b')]=_0x49cbdd()[_0x1fa042('0x8de')]([{'option':_0x1fa042('0x1890'),'value':_0x1fa042('0xad6')},{'option':_0x1fa042('0x1b14'),'value':_0x1fa042('0x19b1')}],function(_0x536307){const _0x67807a=_0x1fa042;return _0x49cbdd()[_0x67807a('0x737')](_0x536307[_0x67807a('0x175b')],new RegExp('\x27','g'),'');}),_0x2e9a9c[_0x1fa042('0xcd4')]=_0x326056,_0x2e9a9c[_0x1fa042('0x1e34')]=_0x4c4697,_0x2e9a9c[_0x1fa042('0x2359')]=_0x2a2a8d,_0x2e9a9c[_0x1fa042('0xbf4')]=_0x3911ea,_0x2e9a9c[_0x1fa042('0xda8')]=_0x21f8b5,_0x2e9a9c[_0x1fa042('0x130d')]=_0x169fac,_0x2e9a9c[_0x1fa042('0x2397')]=_0x1c8828,_0x2e9a9c[_0x1fa042('0x17a2')]=_0x1b8ad5,_0x2e9a9c[_0x1fa042('0x777')]=_0x2f39f1,_0x2e9a9c['exportSelectedMailQueues']=_0x4d81e7,_0x2e9a9c['deleteSelectedMailQueues']=_0x4c32bf,_0x2e9a9c[_0x1fa042('0x9e9')]=_0x3c8257,_0x2e9a9c[_0x1fa042('0x1211')]=_0x50549b;function _0x326056(_0x272dad){_0x190dc4['go']('app.mail.mailQueues.edit',{'id':_0x272dad['id'],'mailQueue':_0x272dad,'crudPermissions':_0x2e9a9c['crudPermissions']});}function _0x4c4697(_0x45b468,_0x52ef36){const _0x54c82c=_0x1fa042;_0x252a9e[_0x54c82c('0x28e2')]({'controller':_0x54c82c('0x132c'),'controllerAs':'vm','templateUrl':_0x4f081f,'parent':angular[_0x54c82c('0x1ce1')](_0x3885b7[_0x54c82c('0x13aa')]),'targetEvent':_0x52ef36,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x45b468,'mailQueues':_0x2e9a9c['mailQueues']?_0x2e9a9c[_0x54c82c('0x13d1')][_0x54c82c('0x2319')]:[],'crudPermissions':_0x2e9a9c[_0x54c82c('0x103e')]}});}function _0x2a2a8d(_0x432b74,_0x72167a){const _0x273b92=_0x1fa042;_0x252a9e[_0x273b92('0x28e2')]({'controller':_0x273b92('0x1648'),'controllerAs':'vm','templateUrl':_0xda1718,'parent':angular[_0x273b92('0x1ce1')](_0x3885b7[_0x273b92('0x13aa')]),'targetEvent':_0x72167a,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x432b74,'mailQueues':_0x2e9a9c[_0x273b92('0x13d1')]?_0x2e9a9c[_0x273b92('0x13d1')][_0x273b92('0x2319')]:[],'crudPermissions':_0x2e9a9c[_0x273b92('0x103e')],'realtime':![]}});}function _0x3911ea(_0x3ac284,_0x527018){const _0x100994=_0x1fa042,_0xb1f230=_0x252a9e['confirm']()[_0x100994('0x24d3')](_0x100994('0x5e1')+_0x49cbdd()[_0x100994('0x1c98')](_0x100994('0x1e8b'))+'?')[_0x100994('0x211f')](_0x100994('0xa53')+(_0x3ac284['name']||_0x100994('0x1e8b'))+_0x100994('0x1d23')+_0x100994('0xe9f'))[_0x100994('0x2095')](_0x100994('0x26b'))[_0x100994('0x104f')](_0x527018)['ok']('OK')[_0x100994('0x1d47')](_0x100994('0x28a0'));_0x252a9e['show'](_0xb1f230)['then'](function(){_0x2f39f1(_0x3ac284);},function(){const _0x34db7f=_0x100994;console['log'](_0x34db7f('0x28a0'));});}function _0x21f8b5(){const _0x32ae7c=_0x1fa042;if(_0x5a81d8[_0x32ae7c('0x1ba2')]('admin'))_0x190dc4['go'](_0x32ae7c('0xed7'),{});else return _0x2ec677['userProfileSection'][_0x32ae7c('0x1c53')]({'userProfileId':_0x5a81d8[_0x32ae7c('0x2831')]()[_0x32ae7c('0x1e76')],'sectionId':0x262})[_0x32ae7c('0x1af5')][_0x32ae7c('0x17e7')](function(_0x332541){const _0x2ea3d1=_0x32ae7c,_0x4674df=_0x332541&&_0x332541['rows']?_0x332541[_0x2ea3d1('0x2319')][0x0]:null;_0x4674df&&_0x4674df['enabled']?_0x190dc4['go'](_0x2ea3d1('0xed7'),{}):_0x2e5cba[_0x2ea3d1('0x1178')]({'title':_0x3a893e['instant'](_0x2ea3d1('0x286e')),'msg':_0x3a893e['instant'](_0x2ea3d1('0x1169'))});})[_0x32ae7c('0x16df')](function(_0x1e088e){const _0x50577c=_0x32ae7c;_0x2e5cba['error']({'title':_0x1e088e[_0x50577c('0x11c5')]?'API:'+_0x1e088e[_0x50577c('0x11c5')]+'\x20-\x20'+_0x1e088e[_0x50577c('0x1833')]:'USERPROFILE:GET_SECTION','msg':_0x1e088e[_0x50577c('0x11c5')]?JSON['stringify'](_0x1e088e[_0x50577c('0x1457')]):_0x1e088e['toString']()});});}let _0x1ad17a=!![],_0x1e7607=0x1;_0x4d6098[_0x1fa042('0x620')](_0x1fa042('0x3ed'),function(_0x2ec258,_0x50460a){const _0x3f4d67=_0x1fa042;_0x1ad17a?_0x420e07(function(){_0x1ad17a=![];}):(!_0x50460a&&(_0x1e7607=_0x2e9a9c[_0x3f4d67('0x826')][_0x3f4d67('0x115a')]),_0x2ec258!==_0x50460a&&(_0x2e9a9c['query']['page']=0x1),!_0x2ec258&&(_0x2e9a9c['query']['page']=_0x1e7607),_0x2e9a9c[_0x3f4d67('0x2397')]());});function _0x169fac(_0x3d96d0){const _0x44403=_0x1fa042;_0x2e9a9c[_0x44403('0x13d1')]=_0x3d96d0||{'count':0x0,'rows':[]};}function _0x1c8828(){const _0x4d4441=_0x1fa042;_0x2e9a9c[_0x4d4441('0x826')][_0x4d4441('0xf19')]=(_0x2e9a9c[_0x4d4441('0x826')][_0x4d4441('0x115a')]-0x1)*_0x2e9a9c['query'][_0x4d4441('0x193b')],_0x5a81d8[_0x4d4441('0x1ba2')](_0x4d4441('0x20bf'))?_0x2e9a9c[_0x4d4441('0x1691')]=_0x2ec677[_0x4d4441('0x1e8b')][_0x4d4441('0x1c53')](_0x2e9a9c[_0x4d4441('0x826')],_0x169fac)[_0x4d4441('0x1af5')]:(_0x2e9a9c[_0x4d4441('0x826')]['id']=_0x2e9a9c[_0x4d4441('0xdeb')]['id'],_0x2e9a9c[_0x4d4441('0x826')][_0x4d4441('0x16f8')]=_0x4d4441('0x294'),_0x2e9a9c[_0x4d4441('0x1691')]=_0x2ec677[_0x4d4441('0xdeb')][_0x4d4441('0x2447')](_0x2e9a9c[_0x4d4441('0x826')],_0x169fac)['$promise']);}function _0x1b8ad5(_0x5c51c3,_0x41f2d2){const _0x4cf30d=_0x1fa042;_0x252a9e['show']({'controller':_0x4cf30d('0x12fe'),'controllerAs':'vm','templateUrl':_0x29824e,'parent':angular[_0x4cf30d('0x1ce1')](_0x3885b7[_0x4cf30d('0x13aa')]),'targetEvent':_0x5c51c3,'clickOutsideToClose':!![],'locals':{'mailQueue':_0x41f2d2,'mailQueues':_0x2e9a9c[_0x4cf30d('0x13d1')][_0x4cf30d('0x2319')],'license':_0x2e9a9c['license'],'setting':_0x2e9a9c[_0x4cf30d('0x1aeb')],'crudPermissions':_0x2e9a9c['crudPermissions']}});}function _0x2f39f1(_0x49e946){const _0x37a9b0=_0x1fa042;_0x2ec677[_0x37a9b0('0x1e8b')][_0x37a9b0('0x1da6')]({'id':_0x49e946['id']})[_0x37a9b0('0x1af5')][_0x37a9b0('0x17e7')](function(){const _0x299e64=_0x37a9b0;_0x49cbdd()[_0x299e64('0x5f3')](_0x2e9a9c[_0x299e64('0x13d1')]['rows'],{'id':_0x49e946['id']}),_0x2e9a9c[_0x299e64('0x13d1')]['count']-=0x1,!_0x2e9a9c[_0x299e64('0x13d1')]['rows']['length']&&_0x2e9a9c['getMailQueues'](),_0x2e5cba[_0x299e64('0x130d')]({'title':_0x49cbdd()[_0x299e64('0x1c98')](_0x299e64('0xc04'))+_0x299e64('0x2673'),'msg':_0x49e946['name']?_0x49e946[_0x299e64('0x2aa')]+_0x299e64('0x149f'):''});})[_0x37a9b0('0x16df')](function(_0x23ac93){const _0x51e5cf=_0x37a9b0;if(_0x23ac93['data']&&_0x23ac93[_0x51e5cf('0x1457')][_0x51e5cf('0x73e')]&&_0x23ac93[_0x51e5cf('0x1457')][_0x51e5cf('0x73e')][_0x51e5cf('0x1f73')]){_0x2e9a9c[_0x51e5cf('0x73e')]=_0x23ac93[_0x51e5cf('0x1457')][_0x51e5cf('0x73e')]||[{'message':_0x23ac93[_0x51e5cf('0x9b6')](),'type':'SYSTEM:DELETEmailQueue'}];for(let _0x25fe0d=0x0;_0x25fe0d<_0x23ac93[_0x51e5cf('0x1457')][_0x51e5cf('0x73e')]['length'];_0x25fe0d++){_0x2e5cba[_0x51e5cf('0x1db9')]({'title':_0x23ac93[_0x51e5cf('0x1457')][_0x51e5cf('0x73e')][_0x25fe0d][_0x51e5cf('0x412')],'msg':_0x23ac93[_0x51e5cf('0x1457')]['errors'][_0x25fe0d]['message']});}}else _0x2e5cba[_0x51e5cf('0x1db9')]({'title':_0x23ac93[_0x51e5cf('0x11c5')]?_0x51e5cf('0x14f7')+_0x23ac93['status']+'\x20-\x20'+_0x23ac93['statusText']:_0x51e5cf('0x21a4'),'msg':_0x23ac93[_0x51e5cf('0x1457')]?JSON[_0x51e5cf('0x678')](_0x23ac93['data'][_0x51e5cf('0x1603')]):_0x23ac93['message']||_0x23ac93[_0x51e5cf('0x9b6')]()});});}function _0x4d81e7(){const _0x3f8881=_0x1fa042,_0x24100f=angular[_0x3f8881('0x14e5')](_0x2e9a9c[_0x3f8881('0xa7')]);return _0x2e9a9c['selectedMailQueues']=[],_0x24100f;}function _0x4c32bf(_0x44813d){const _0xea5353=_0x1fa042,_0x4183cc=_0x252a9e[_0xea5353('0x1121')]()[_0xea5353('0x24d3')](_0xea5353('0x2'))[_0xea5353('0x211f')](_0xea5353('0xa53')+_0x2e9a9c['selectedMailQueues']['length']+_0xea5353('0x145a')+_0xea5353('0xe9f'))[_0xea5353('0x2095')](_0xea5353('0x1d38'))[_0xea5353('0x104f')](_0x44813d)['ok']('OK')[_0xea5353('0x1d47')](_0xea5353('0x28a0'));_0x252a9e[_0xea5353('0x28e2')](_0x4183cc)['then'](function(){const _0x2988e3=_0xea5353;_0x2e9a9c[_0x2988e3('0xa7')][_0x2988e3('0xccd')](function(_0x1ded4e){_0x2f39f1(_0x1ded4e);}),_0x2e9a9c[_0x2988e3('0xa7')]=[];});}function _0x3c8257(){const _0x22ee41=_0x1fa042;_0x2e9a9c[_0x22ee41('0xa7')]=[];}function _0x50549b(){const _0x239147=_0x1fa042;_0x2e9a9c[_0x239147('0xa7')]=_0x2e9a9c[_0x239147('0x13d1')][_0x239147('0x2319')];}}const _0x327e96=_0xe17a6;_0x311e31[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x23b5'),_0x4376d8('0x66'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x311e31(_0x22739b,_0x5138d6,_0x16aa43,_0x1fcc47,_0x8b5c97,_0x4f1c9b,_0x40a9ff,_0x2843ca,_0x3b77a8,_0x251573,_0xf4f4c,_0x22b536,_0x4aee43,_0x2fc53f){const _0x2e7fa7=_0x4376d8,_0x3b7fa3=this;_0x3b7fa3[_0x2e7fa7('0x197c')]=_0xf4f4c['getCurrentUser'](),_0x3b7fa3['errors']=[],_0x3b7fa3['setting']=_0x4aee43,_0x3b7fa3[_0x2e7fa7('0x1d11')]=_0x22b536,_0x3b7fa3['crudPermissions']=_0x2fc53f,_0x3b7fa3[_0x2e7fa7('0x6ee')]={},_0x3b7fa3[_0x2e7fa7('0x1572')]=_0x3b7fa3[_0x2e7fa7('0x1aeb')]&&_0x3b7fa3[_0x2e7fa7('0x1aeb')][_0x2e7fa7('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3b7fa3['title']=_0x2e7fa7('0x506'),_0x3b7fa3[_0x2e7fa7('0x66')]=angular['copy'](_0x3b77a8),_0x3b7fa3['mailSubtatuses']=_0x2843ca,_0x3b7fa3[_0x2e7fa7('0x4f4')]=![];!_0x3b7fa3[_0x2e7fa7('0x66')]&&(_0x3b7fa3[_0x2e7fa7('0x66')]={},_0x3b7fa3[_0x2e7fa7('0x24d3')]=_0x2e7fa7('0x17be'),_0x3b7fa3[_0x2e7fa7('0x4f4')]=!![]);_0x3b7fa3[_0x2e7fa7('0xd31')]=_0x4fc88f,_0x3b7fa3['saveMailSubstatus']=_0x559633,_0x3b7fa3['deleteMailSubstatus']=_0x1bb65a,_0x3b7fa3[_0x2e7fa7('0x1300')]=_0x2433dc,_0x3b7fa3[_0x2e7fa7('0x136e')]=_0x529177;function _0x4fc88f(){const _0x5520ca=_0x2e7fa7;_0x3b7fa3[_0x5520ca('0x73e')]=[],_0x251573[_0x5520ca('0x66')][_0x5520ca('0x2439')](_0x3b7fa3[_0x5520ca('0x66')])['$promise'][_0x5520ca('0x17e7')](function(_0x2849fe){const _0x434d50=_0x5520ca;_0x3b7fa3['mailSubtatuses'][_0x434d50('0x1893')](_0x2849fe['toJSON']()),_0x40a9ff[_0x434d50('0x130d')]({'title':_0x434d50('0x29e'),'msg':_0x3b7fa3[_0x434d50('0x66')][_0x434d50('0x2aa')]?_0x3b7fa3['mailSubstatus']['name']+'\x20has\x20been\x20created!':''}),_0x529177(_0x2849fe);})[_0x5520ca('0x16df')](function(_0x130bba){const _0xfc3bd6=_0x5520ca;if(_0x130bba[_0xfc3bd6('0x1457')]&&_0x130bba[_0xfc3bd6('0x1457')]['errors']&&_0x130bba[_0xfc3bd6('0x1457')][_0xfc3bd6('0x73e')][_0xfc3bd6('0x1f73')]){_0x3b7fa3[_0xfc3bd6('0x73e')]=_0x130bba[_0xfc3bd6('0x1457')][_0xfc3bd6('0x73e')]||[{'message':_0x130bba[_0xfc3bd6('0x9b6')](),'type':'api.mailSubstatus.save'}];for(let _0x59b7f=0x0;_0x59b7f<_0x130bba[_0xfc3bd6('0x1457')][_0xfc3bd6('0x73e')][_0xfc3bd6('0x1f73')];_0x59b7f+=0x1){_0x40a9ff['error']({'title':_0x130bba[_0xfc3bd6('0x1457')][_0xfc3bd6('0x73e')][_0x59b7f][_0xfc3bd6('0x412')],'msg':_0x130bba[_0xfc3bd6('0x1457')]['errors'][_0x59b7f][_0xfc3bd6('0x1603')]});}}else _0x40a9ff[_0xfc3bd6('0x1db9')]({'title':_0x130bba['status']?_0xfc3bd6('0x14f7')+_0x130bba[_0xfc3bd6('0x11c5')]+'\x20-\x20'+_0x130bba[_0xfc3bd6('0x1833')]:'api.mailSubstatus.save','msg':_0x130bba[_0xfc3bd6('0x1457')]?JSON['stringify'](_0x130bba[_0xfc3bd6('0x1457')][_0xfc3bd6('0x1603')]):_0x130bba['toString']()});});}function _0x559633(){const _0x55de29=_0x2e7fa7;_0x3b7fa3[_0x55de29('0x73e')]=[],_0x251573['mailSubstatus'][_0x55de29('0x27ba')]({'id':_0x3b7fa3[_0x55de29('0x66')]['id']},_0x3b7fa3[_0x55de29('0x66')])['$promise']['then'](function(_0xa748d8){const _0x3eca0c=_0x55de29,_0x16373c=_0x49cbdd()['find'](_0x3b7fa3['mailSubtatuses'],{'id':_0xa748d8['id']});_0x16373c&&_0x49cbdd()[_0x3eca0c('0x1ced')](_0x16373c,_0x49cbdd()[_0x3eca0c('0x230a')](_0xa748d8[_0x3eca0c('0x16b2')](),_0x49cbdd()['keys'](_0x16373c))),_0x40a9ff[_0x3eca0c('0x130d')]({'title':_0x3eca0c('0xad7'),'msg':_0x3b7fa3[_0x3eca0c('0x66')]['name']?_0x3b7fa3['mailSubstatus'][_0x3eca0c('0x2aa')]+_0x3eca0c('0x15ca'):''}),_0x529177(_0xa748d8);})[_0x55de29('0x16df')](function(_0x290ab9){const _0x4fa964=_0x55de29;if(_0x290ab9[_0x4fa964('0x1457')]&&_0x290ab9[_0x4fa964('0x1457')][_0x4fa964('0x73e')]&&_0x290ab9[_0x4fa964('0x1457')][_0x4fa964('0x73e')]['length']){_0x3b7fa3[_0x4fa964('0x73e')]=_0x290ab9[_0x4fa964('0x1457')]['errors']||[{'message':_0x290ab9[_0x4fa964('0x9b6')](),'type':_0x4fa964('0x16c6')}];for(let _0x36a44c=0x0;_0x36a44c<_0x290ab9[_0x4fa964('0x1457')][_0x4fa964('0x73e')]['length'];_0x36a44c++){_0x40a9ff[_0x4fa964('0x1db9')]({'title':_0x290ab9[_0x4fa964('0x1457')][_0x4fa964('0x73e')][_0x36a44c][_0x4fa964('0x412')],'msg':_0x290ab9[_0x4fa964('0x1457')][_0x4fa964('0x73e')][_0x36a44c][_0x4fa964('0x1603')]});}}else _0x40a9ff[_0x4fa964('0x1db9')]({'title':_0x290ab9[_0x4fa964('0x11c5')]?_0x4fa964('0x14f7')+_0x290ab9[_0x4fa964('0x11c5')]+'\x20-\x20'+_0x290ab9[_0x4fa964('0x1833')]:'api.mailSubstatus.update','msg':_0x290ab9[_0x4fa964('0x1457')]?JSON[_0x4fa964('0x678')](_0x290ab9[_0x4fa964('0x1457')][_0x4fa964('0x1603')]):_0x290ab9[_0x4fa964('0x9b6')]()});});}function _0x1bb65a(_0x2658dc){const _0x536093=_0x2e7fa7;_0x3b7fa3[_0x536093('0x73e')]=[];const _0x3a977b=_0x1fcc47[_0x536093('0x1121')]()['title'](_0x536093('0x530'))['content']('The\x20mailSubstatus\x20will\x20be\x20deleted.')[_0x536093('0x2095')](_0x536093('0xafd'))['ok'](_0x536093('0x304'))[_0x536093('0x1d47')]('Cancel')[_0x536093('0x104f')](_0x2658dc);_0x1fcc47[_0x536093('0x28e2')](_0x3a977b)[_0x536093('0x17e7')](function(){const _0x2b7647=_0x536093;_0x251573[_0x2b7647('0x66')]['delete']({'id':_0x3b7fa3[_0x2b7647('0x66')]['id']})[_0x2b7647('0x1af5')]['then'](function(){const _0x1fef76=_0x2b7647;_0x49cbdd()[_0x1fef76('0x5f3')](_0x3b7fa3['mailSubtatuses'],{'id':_0x3b7fa3['mailSubstatus']['id']}),_0x40a9ff[_0x1fef76('0x130d')]({'title':'MailSubstatus\x20properly\x20deleted!','msg':(_0x3b7fa3['mailSubstatus']['name']||_0x1fef76('0x66'))+_0x1fef76('0x149f')}),_0x529177(_0x3b7fa3[_0x1fef76('0x66')]);})[_0x2b7647('0x16df')](function(_0x10f35f){const _0x3c66b6=_0x2b7647;if(_0x10f35f[_0x3c66b6('0x1457')]&&_0x10f35f[_0x3c66b6('0x1457')][_0x3c66b6('0x73e')]&&_0x10f35f[_0x3c66b6('0x1457')][_0x3c66b6('0x73e')][_0x3c66b6('0x1f73')]){_0x3b7fa3['errors']=_0x10f35f[_0x3c66b6('0x1457')][_0x3c66b6('0x73e')]||[{'message':_0x10f35f[_0x3c66b6('0x9b6')](),'type':'api.mailSubstatus.delete'}];for(let _0x6d8b8=0x0;_0x6d8b8<_0x10f35f[_0x3c66b6('0x1457')][_0x3c66b6('0x73e')]['length'];_0x6d8b8++){_0x40a9ff[_0x3c66b6('0x1db9')]({'title':_0x10f35f[_0x3c66b6('0x1457')][_0x3c66b6('0x73e')][_0x6d8b8][_0x3c66b6('0x412')],'msg':_0x10f35f[_0x3c66b6('0x1457')][_0x3c66b6('0x73e')][_0x6d8b8][_0x3c66b6('0x1603')]});}}else _0x40a9ff['error']({'title':_0x10f35f['status']?_0x3c66b6('0x14f7')+_0x10f35f[_0x3c66b6('0x11c5')]+_0x3c66b6('0x16e4')+_0x10f35f[_0x3c66b6('0x1833')]:'api.mailSubstatus.delete','msg':_0x10f35f[_0x3c66b6('0x1457')]?JSON['stringify'](_0x10f35f[_0x3c66b6('0x1457')][_0x3c66b6('0x1603')]):_0x10f35f[_0x3c66b6('0x1603')]||_0x10f35f[_0x3c66b6('0x9b6')]()});});},function(){});}function _0x2433dc(_0x6bc8f5){return _0x6bc8f5===null?undefined:new Date(_0x6bc8f5);}function _0x529177(_0x2e234f){const _0x59331d=_0x2e7fa7;_0x1fcc47[_0x59331d('0x212a')](_0x2e234f);}}const _0x395f63=_0x311e31,_0x36cb58=_0x4cf2bc['p']+_0x4376d8('0x1b59');_0x2d6f0f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),'mailSubtatuses',_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x2d6f0f(_0x9ef676,_0x2e30ab,_0x2c98b0,_0x434566,_0x2131fb,_0x130df9,_0x4907b2,_0x9fe348,_0x21b91d,_0x52842f,_0x27e656,_0x3f3655,_0x6e1bab,_0x9254ba,_0x55661f,_0x5a6033,_0x480979){const _0x30dc13=_0x4376d8,_0x267d8a=this;_0x267d8a['license']=_0x5a6033,_0x267d8a[_0x30dc13('0x1aeb')]=_0x480979,_0x267d8a[_0x30dc13('0x197c')]=_0x55661f['getCurrentUser'](),_0x267d8a['mailSubtatuses']=_0x21b91d||{'count':0x0,'rows':[]},_0x267d8a[_0x30dc13('0xdeb')]=_0x52842f,_0x267d8a[_0x30dc13('0x383')]=_0x27e656&&_0x27e656[_0x30dc13('0x335')]==0x1?_0x27e656['rows'][0x0]:null,_0x267d8a[_0x30dc13('0x103e')]=_0x55661f['parseCrudPermissions'](_0x267d8a[_0x30dc13('0x383')]?_0x267d8a['userProfileSection'][_0x30dc13('0x103e')]:null),_0x267d8a['table']=_0x30dc13('0x23b5'),_0x267d8a[_0x30dc13('0x26a1')]='',_0x267d8a[_0x30dc13('0x24e1')]=null,_0x267d8a[_0x30dc13('0x1d4d')]=[],_0x267d8a[_0x30dc13('0x826')]={'fields':_0x30dc13('0x142d'),'sort':_0x30dc13('0x1ac6'),'limit':0xa,'page':0x1},_0x267d8a[_0x30dc13('0xb32')]=_0x80fee5,_0x267d8a[_0x30dc13('0xbf4')]=_0x2e4238,_0x267d8a[_0x30dc13('0x130d')]=_0x4e6c55,_0x267d8a[_0x30dc13('0x884')]=_0xec87d1,_0x267d8a['createOrEditMailSubstatus']=_0x1e99a2,_0x267d8a[_0x30dc13('0x1a01')]=_0x373110,_0x267d8a[_0x30dc13('0x1982')]=_0x246917,_0x267d8a['deleteSelectedMailSubstatuses']=_0x47758d,_0x267d8a[_0x30dc13('0x15f4')]=_0x172cac,_0x267d8a['selectAllMailSubstatuses']=_0xb82e90;function _0x80fee5(_0x1a5e41,_0x1da133){const _0x1af527=_0x30dc13;_0x2131fb[_0x1af527('0x28e2')]({'controller':'CreateOrEditMailSubstatusDialogController','controllerAs':'vm','templateUrl':_0x36cb58,'parent':angular[_0x1af527('0x1ce1')](_0x130df9[_0x1af527('0x13aa')]),'targetEvent':_0x1da133,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x1a5e41,'mailSubtatuses':_0x267d8a[_0x1af527('0x23b5')][_0x1af527('0x2319')],'license':_0x267d8a[_0x1af527('0x1d11')],'setting':null,'crudPermissions':_0x267d8a[_0x1af527('0x103e')]}});}function _0x2e4238(_0x17ac55,_0x1ade55){const _0xa41d35=_0x30dc13,_0x917c7=_0x2131fb['confirm']()[_0xa41d35('0x24d3')](_0xa41d35('0x5e1')+_0x49cbdd()[_0xa41d35('0x1c98')](_0xa41d35('0x66'))+'?')['htmlContent'](''+(_0x17ac55['name']||'mailSubstatus')+_0xa41d35('0x1d23')+'\x20will\x20be\x20deleted.')[_0xa41d35('0x2095')](_0xa41d35('0x101'))[_0xa41d35('0x104f')](_0x1ade55)['ok']('OK')[_0xa41d35('0x1d47')]('CANCEL');_0x2131fb[_0xa41d35('0x28e2')](_0x917c7)[_0xa41d35('0x17e7')](function(){_0x373110(_0x17ac55);},function(){const _0x5deefe=_0xa41d35;console[_0x5deefe('0x1d63')]('CANCEL');});}let _0x2a9f13=!![],_0x238007=0x1;_0x9ef676['$watch'](_0x30dc13('0x3ed'),function(_0x5f56e1,_0x12dbd0){const _0x34daa1=_0x30dc13;_0x2a9f13?_0x4907b2(function(){_0x2a9f13=![];}):(!_0x12dbd0&&(_0x238007=_0x267d8a['query'][_0x34daa1('0x115a')]),_0x5f56e1!==_0x12dbd0&&(_0x267d8a[_0x34daa1('0x826')][_0x34daa1('0x115a')]=0x1),!_0x5f56e1&&(_0x267d8a[_0x34daa1('0x826')][_0x34daa1('0x115a')]=_0x238007),_0x267d8a[_0x34daa1('0x884')]());});function _0x4e6c55(_0x2ed16e){const _0x211d2a=_0x30dc13;_0x267d8a[_0x211d2a('0x23b5')]=_0x2ed16e||{'count':0x0,'rows':[]};}function _0xec87d1(){const _0x19fdb7=_0x30dc13;_0x267d8a['query'][_0x19fdb7('0xf19')]=(_0x267d8a[_0x19fdb7('0x826')][_0x19fdb7('0x115a')]-0x1)*_0x267d8a[_0x19fdb7('0x826')][_0x19fdb7('0x193b')],_0x55661f[_0x19fdb7('0x1ba2')](_0x19fdb7('0x20bf'))?_0x267d8a['promise']=_0x3f3655[_0x19fdb7('0x66')][_0x19fdb7('0x1c53')](_0x267d8a[_0x19fdb7('0x826')],_0x4e6c55)[_0x19fdb7('0x1af5')]:(_0x267d8a[_0x19fdb7('0x826')]['id']=_0x267d8a[_0x19fdb7('0xdeb')]['id'],_0x267d8a['query']['section']=_0x19fdb7('0x9f0'),_0x267d8a[_0x19fdb7('0x1691')]=_0x3f3655[_0x19fdb7('0xdeb')][_0x19fdb7('0x2447')](_0x267d8a[_0x19fdb7('0x826')],_0x4e6c55)[_0x19fdb7('0x1af5')]);}function _0x1e99a2(_0x459ea8,_0x38fce8){const _0x2c0b01=_0x30dc13;_0x2131fb['show']({'controller':'CreateOrEditMailSubstatusDialogController','controllerAs':'vm','templateUrl':_0x36cb58,'parent':angular['element'](_0x130df9[_0x2c0b01('0x13aa')]),'targetEvent':_0x459ea8,'clickOutsideToClose':!![],'locals':{'mailSubstatus':_0x38fce8,'mailSubtatuses':_0x267d8a[_0x2c0b01('0x23b5')][_0x2c0b01('0x2319')],'license':_0x267d8a[_0x2c0b01('0x1d11')],'setting':_0x267d8a[_0x2c0b01('0x1aeb')],'crudPermissions':_0x267d8a[_0x2c0b01('0x103e')]}});}function _0x373110(_0x5e8284){const _0x2b1978=_0x30dc13;_0x3f3655[_0x2b1978('0x66')][_0x2b1978('0x1da6')]({'id':_0x5e8284['id']})['$promise'][_0x2b1978('0x17e7')](function(){const _0xf8b201=_0x2b1978;_0x49cbdd()[_0xf8b201('0x5f3')](_0x267d8a['mailSubtatuses']['rows'],{'id':_0x5e8284['id']}),_0x267d8a[_0xf8b201('0x23b5')]['count']-=0x1,!_0x267d8a['mailSubtatuses'][_0xf8b201('0x2319')]['length']&&_0x267d8a[_0xf8b201('0x884')](),_0x9254ba[_0xf8b201('0x130d')]({'title':_0x49cbdd()['startCase']('MailSubstatus')+_0xf8b201('0x2673'),'msg':_0x5e8284[_0xf8b201('0x2aa')]?_0x5e8284[_0xf8b201('0x2aa')]+_0xf8b201('0x149f'):''});})['catch'](function(_0x2b270c){const _0x343a1e=_0x2b1978;if(_0x2b270c[_0x343a1e('0x1457')]&&_0x2b270c[_0x343a1e('0x1457')][_0x343a1e('0x73e')]&&_0x2b270c[_0x343a1e('0x1457')]['errors'][_0x343a1e('0x1f73')]){_0x267d8a[_0x343a1e('0x73e')]=_0x2b270c[_0x343a1e('0x1457')][_0x343a1e('0x73e')]||[{'message':_0x2b270c[_0x343a1e('0x9b6')](),'type':_0x343a1e('0xc63')}];for(let _0x5bf5a7=0x0;_0x5bf5a7<_0x2b270c[_0x343a1e('0x1457')]['errors'][_0x343a1e('0x1f73')];_0x5bf5a7++){_0x9254ba[_0x343a1e('0x1db9')]({'title':_0x2b270c[_0x343a1e('0x1457')][_0x343a1e('0x73e')][_0x5bf5a7][_0x343a1e('0x412')],'msg':_0x2b270c[_0x343a1e('0x1457')][_0x343a1e('0x73e')][_0x5bf5a7][_0x343a1e('0x1603')]});}}else _0x9254ba[_0x343a1e('0x1db9')]({'title':_0x2b270c[_0x343a1e('0x11c5')]?_0x343a1e('0x14f7')+_0x2b270c[_0x343a1e('0x11c5')]+_0x343a1e('0x16e4')+_0x2b270c[_0x343a1e('0x1833')]:_0x343a1e('0xc63'),'msg':_0x2b270c[_0x343a1e('0x1457')]?JSON[_0x343a1e('0x678')](_0x2b270c[_0x343a1e('0x1457')][_0x343a1e('0x1603')]):_0x2b270c[_0x343a1e('0x1603')]||_0x2b270c[_0x343a1e('0x9b6')]()});});}function _0x246917(){const _0x26980a=_0x30dc13,_0x4abbb5=angular['copy'](_0x267d8a[_0x26980a('0x1d4d')]);return _0x267d8a[_0x26980a('0x1d4d')]=[],_0x4abbb5;}function _0x47758d(_0x5b9383){const _0x309844=_0x30dc13,_0x75e239=_0x2131fb[_0x309844('0x1121')]()[_0x309844('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20mailSubtatuses?')[_0x309844('0x211f')](_0x309844('0xa53')+_0x267d8a[_0x309844('0x1d4d')][_0x309844('0x1f73')]+_0x309844('0x145a')+_0x309844('0xe9f'))['ariaLabel'](_0x309844('0x14c2'))['targetEvent'](_0x5b9383)['ok']('OK')['cancel'](_0x309844('0x28a0'));_0x2131fb[_0x309844('0x28e2')](_0x75e239)[_0x309844('0x17e7')](function(){const _0x336cde=_0x309844;_0x267d8a[_0x336cde('0x1d4d')][_0x336cde('0xccd')](function(_0x4b8e1f){_0x373110(_0x4b8e1f);}),_0x267d8a['selectedMailSubstatuses']=[];});}function _0x172cac(){_0x267d8a['selectedMailSubstatuses']=[];}function _0xb82e90(){const _0x4f72eb=_0x30dc13;_0x267d8a[_0x4f72eb('0x1d4d')]=_0x267d8a[_0x4f72eb('0x23b5')][_0x4f72eb('0x2319')];}}const _0x411471=_0x2d6f0f;_0x9786e9[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x9786e9(_0xf63e5b,_0x529df5){const _0xeadefe=_0x4376d8;_0xf63e5b['state'](_0xeadefe('0xcb2'),{'abstract':!![],'url':_0xeadefe('0x10e4')})['state'](_0xeadefe('0xdd4'),{'url':_0xeadefe('0xe46'),'views':{'content@app':{'templateUrl':_0x351a3b,'controller':_0xeadefe('0x10aa')}},'resolve':{'mailQueues':[_0xeadefe('0x177'),_0xeadefe('0x1885'),function(_0x15b9a4,_0x2f4e6f){const _0x5d400c=_0xeadefe;return _0x2f4e6f[_0x5d400c('0x1ba2')](_0x5d400c('0x20bf'))?_0x15b9a4['resolve'](_0x5d400c('0xa60'),{'fields':_0x5d400c('0x1029'),'sort':_0x5d400c('0x1ac6'),'channel':_0x5d400c('0xc2'),'limit':0xa,'offset':0x0}):_0x15b9a4['resolve'](_0x5d400c('0x1164'),{'id':_0x2f4e6f[_0x5d400c('0x2831')]()[_0x5d400c('0x1e76')],'section':'MailQueues','fields':_0x5d400c('0x1029'),'sort':_0x5d400c('0x1ac6'),'channel':_0x5d400c('0xc2'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xeadefe('0x177'),_0xeadefe('0x1885'),function(_0x42f70c,_0x4f6fe8){const _0x155053=_0xeadefe;return _0x4f6fe8['hasRole']('admin')?null:_0x42f70c[_0x155053('0x898')](_0x155053('0x235d'),{'fields':'id,name,crudPermissions','id':_0x4f6fe8['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0xeadefe('0x1885'),function(_0xb62431,_0x573ce4){const _0x50f465=_0xeadefe;return _0x573ce4[_0x50f465('0x1ba2')](_0x50f465('0x20bf'))?null:_0xb62431[_0x50f465('0x898')](_0x50f465('0x23e7'),{'fields':_0x50f465('0x1134'),'userProfileId':_0x573ce4[_0x50f465('0x2831')]()[_0x50f465('0x1e76')],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0xeadefe('0xc2')})[_0xeadefe('0x1b9a')](_0xeadefe('0x1baa'),{'url':_0xeadefe('0x2370'),'params':{'mailQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3c7bfc,'controller':_0xeadefe('0x1bc9')}},'resolve':{'mailQueue':[_0xeadefe('0x177'),_0xeadefe('0x118b'),function(_0x4b245f,_0x1bdea7){const _0x517bda=_0xeadefe;return _0x4b245f[_0x517bda('0x898')]('mailQueue@get',{'fields':_0x517bda('0x1029'),'id':_0x1bdea7['id']});}],'userProfileSection':[_0xeadefe('0x177'),_0xeadefe('0x1885'),function(_0x371d62,_0x34f125){const _0x44f30e=_0xeadefe;return _0x371d62['resolve'](_0x44f30e('0x23e7'),{'fields':_0x44f30e('0x1134'),'userProfileId':_0x34f125[_0x44f30e('0x2831')]()['userProfileId'],'sectionId':0x259});}]},'authenticate':!![],'permissionId':0x259,'bodyClass':_0xeadefe('0xc2')})['state'](_0xeadefe('0x10e3'),{'url':_0xeadefe('0x234'),'views':{'content@app':{'templateUrl':_0x191d18,'controller':_0xeadefe('0x1bd4')}},'resolve':{'mailAccounts':[_0xeadefe('0x177'),_0xeadefe('0x1885'),function(_0x5a4502,_0x559374){const _0x1da975=_0xeadefe;return _0x559374[_0x1da975('0x1ba2')](_0x1da975('0x20bf'))?_0x5a4502[_0x1da975('0x898')](_0x1da975('0xfa7'),{'fields':_0x1da975('0x89a'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x5a4502[_0x1da975('0x898')](_0x1da975('0x1164'),{'id':_0x559374['getCurrentUser']()[_0x1da975('0x1e76')],'section':_0x1da975('0xedf'),'fields':_0x1da975('0x89a'),'sort':_0x1da975('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xeadefe('0x177'),_0xeadefe('0x1885'),function(_0x33fda2,_0x503fc4){const _0x2d5904=_0xeadefe;return _0x503fc4[_0x2d5904('0x1ba2')](_0x2d5904('0x20bf'))?null:_0x33fda2[_0x2d5904('0x898')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x503fc4[_0x2d5904('0x2831')]()[_0x2d5904('0x1e76')]});}],'userProfileSection':[_0xeadefe('0x177'),_0xeadefe('0x1885'),function(_0x120c5e,_0x1d4fd6){const _0xf4a070=_0xeadefe;return _0x1d4fd6[_0xf4a070('0x1ba2')](_0xf4a070('0x20bf'))?null:_0x120c5e[_0xf4a070('0x898')](_0xf4a070('0x23e7'),{'fields':_0xf4a070('0x1134'),'userProfileId':_0x1d4fd6[_0xf4a070('0x2831')]()[_0xf4a070('0x1e76')],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':_0xeadefe('0xc2')})[_0xeadefe('0x1b9a')](_0xeadefe('0x1d67'),{'url':_0xeadefe('0x2370'),'params':{'mailAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3dc26d,'controller':_0xeadefe('0x1db8')}},'resolve':{'mailAccount':['apiResolver',_0xeadefe('0x118b'),function(_0x195c51,_0x50dfec){const _0x1e458a=_0xeadefe;return _0x195c51[_0x1e458a('0x898')](_0x1e458a('0xfa7'),{'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','id':_0x50dfec['id']});}],'userProfileSection':[_0xeadefe('0x177'),'Auth',function(_0x307c52,_0x4b4bbd){const _0x54477d=_0xeadefe;return _0x307c52[_0x54477d('0x898')](_0x54477d('0x23e7'),{'fields':_0x54477d('0x1134'),'userProfileId':_0x4b4bbd[_0x54477d('0x2831')]()['userProfileId'],'sectionId':0x25a});}]},'authenticate':!![],'permissionId':0x25a,'bodyClass':'mail'})[_0xeadefe('0x1b9a')](_0xeadefe('0xc54'),{'url':_0xeadefe('0x1ce'),'views':{'content@app':{'templateUrl':_0x2d1b56,'controller':'MailSubstatusesController\x20as\x20vm'}},'resolve':{'mailSubtatuses':[_0xeadefe('0x177'),function(_0x592dfa){const _0x360b1b=_0xeadefe;return _0x592dfa[_0x360b1b('0x898')](_0x360b1b('0x1c7e'),{'fields':_0x360b1b('0x142d'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0xeadefe('0x177'),_0xeadefe('0x1885'),function(_0x186d52,_0x3d1b3b){const _0x2344b2=_0xeadefe;return _0x3d1b3b['hasRole'](_0x2344b2('0x20bf'))?null:_0x186d52[_0x2344b2('0x898')](_0x2344b2('0x235d'),{'fields':'id,name,crudPermissions','id':_0x3d1b3b[_0x2344b2('0x2831')]()[_0x2344b2('0x1e76')]});}],'userProfileSection':['apiResolver',_0xeadefe('0x1885'),function(_0x3795fc,_0x342f74){const _0x9db4ea=_0xeadefe;return _0x342f74[_0x9db4ea('0x1ba2')](_0x9db4ea('0x20bf'))?null:_0x3795fc['resolve'](_0x9db4ea('0x23e7'),{'fields':_0x9db4ea('0x1134'),'userProfileId':_0x342f74[_0x9db4ea('0x2831')]()[_0x9db4ea('0x1e76')],'sectionId':0x25b});}]},'authenticate':!![],'permissionId':0x25b,'bodyClass':'mail'}),_0x529df5['addPart'](_0xeadefe('0x2711'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0xcb2'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),'mdColorPicker',_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),'mdPickers',_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),'ngEmbed',_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),_0x4376d8('0x45')])[_0x4376d8('0x1980')](_0x9786e9)[_0x4376d8('0x5ce')](_0x4376d8('0x11e9'),_0x5cf0b3)[_0x4376d8('0x5ce')]('MailAccountActionsController',_0x3e6310)[_0x4376d8('0x5ce')](_0x4376d8('0x194f'),_0x458b34)[_0x4376d8('0x5ce')](_0x4376d8('0x1368'),_0xe28b6b)[_0x4376d8('0x5ce')](_0x4376d8('0x19db'),_0x4c15e9)[_0x4376d8('0x5ce')](_0x4376d8('0x20a7'),_0x51956f)[_0x4376d8('0x5ce')](_0x4376d8('0x1174'),_0x957f68)['controller'](_0x4376d8('0x19d6'),_0x5ca722)[_0x4376d8('0x5ce')](_0x4376d8('0x785'),_0x533baa)[_0x4376d8('0x5ce')]('EditMailAccountAppnoopDialogController',_0x39ac91)[_0x4376d8('0x5ce')](_0x4376d8('0x2031'),_0x2eb097)['controller']('EditMailAccountAppsystemDialogController',_0x50c1b8)[_0x4376d8('0x5ce')](_0x4376d8('0x86a'),_0xb7531f)[_0x4376d8('0x5ce')](_0x4376d8('0x99d'),_0x5bd657)[_0x4376d8('0x5ce')](_0x4376d8('0x5ec'),_0x4821ce)[_0x4376d8('0x5ce')](_0x4376d8('0xb26'),_0x3b8d27)[_0x4376d8('0x5ce')](_0x4376d8('0x2c4'),_0x2d99e0)['controller'](_0x4376d8('0x23e3'),_0x1fd433)[_0x4376d8('0x5ce')](_0x4376d8('0x209'),_0x1ab514)['controller'](_0x4376d8('0x12fe'),_0xb128a8)['controller'](_0x4376d8('0x1648'),_0xefd0e4)[_0x4376d8('0x5ce')](_0x4376d8('0x132c'),_0x14523d)[_0x4376d8('0x5ce')](_0x4376d8('0xcd2'),_0x20857a)[_0x4376d8('0x5ce')](_0x4376d8('0x10a0'),_0x327e96)[_0x4376d8('0x5ce')](_0x4376d8('0x1d39'),_0x395f63)['controller'](_0x4376d8('0x2224'),_0x411471);const _0x1c8c0f=_0x4cf2bc['p']+_0x4376d8('0x23a4'),_0x1a1b5a=_0x4cf2bc['p']+'src/js/modules/main/apps/sms/views/realtime/agents/view.html/view.html',_0x37d54d=_0x4cf2bc['p']+_0x4376d8('0xb7f');_0x32470c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$q',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$filter',_0x4376d8('0x1492'),_0x4376d8('0x25ea'),'rpcAgents','api',_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0x628'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'$interval'];function _0x32470c(_0x41dd3f,_0x2e2540,_0xd9e974,_0x423c46,_0xddb77b,_0x53ed05,_0x43a284,_0x1df52a,_0xd4f9e2,_0x22db3a,_0x57ef62,_0x3dce8e,_0x44d15f,_0x344bb0,_0x9bd090,_0x5c9d03,_0x1b67b6,_0x20ae97){const _0x9faffe=_0x4376d8,_0x346ed1=this,_0x54d932=[_0x9faffe('0x25b1'),'online','lastLoginAt',_0x9faffe('0x110a'),_0x9faffe('0x11ec'),'lastPauseAt',_0x9faffe('0xe3e'),_0x9faffe('0x15'),_0x9faffe('0x2764'),'openchannelPause',_0x9faffe('0x1467'),_0x9faffe('0x483'),_0x9faffe('0x185b'),_0x9faffe('0x1d98'),_0x9faffe('0x118a'),_0x9faffe('0x1b1a'),_0x9faffe('0xe99'),'mailCapacity',_0x9faffe('0x16f4'),_0x9faffe('0x1676'),_0x9faffe('0x3f4'),'chatCurrentCapacity',_0x9faffe('0x1149'),'mailCurrentCapacity','smsCurrentCapacity',_0x9faffe('0x1798'),'faxCurrentCapacity','chatStatus',_0x9faffe('0x200c'),_0x9faffe('0x9a7'),_0x9faffe('0x30'),_0x9faffe('0x38d'),'faxStatus',_0x9faffe('0x14a5'),_0x9faffe('0x587'),'openchannelStatusTime',_0x9faffe('0x16a4'),_0x9faffe('0x893'),_0x9faffe('0x1e2a'),_0x9faffe('0xbdb'),_0x9faffe('0x1b1d'),_0x9faffe('0x1bd'),'destconnectedlinenum',_0x9faffe('0xf1a'),_0x9faffe('0x1b7d'),_0x9faffe('0xa0d')],_0x382eb2=['chatPause','openchannelPause','mailPause','smsPause',_0x9faffe('0x185b'),'faxPause',_0x9faffe('0x118a'),_0x9faffe('0x1872')];_0x346ed1['currentUser']=_0x5c9d03['getCurrentUser'](),_0x346ed1[_0x9faffe('0x232c')]=[_0x9faffe('0x1589'),_0x9faffe('0x1166'),_0x9faffe('0xe88'),_0x9faffe('0xa01'),_0x9faffe('0x8d0')],_0x346ed1[_0x9faffe('0x1492')]=_0x43a284||{'count':0x0,'rows':[]},_0x346ed1[_0x9faffe('0x1d11')]=_0x1b67b6,_0x346ed1[_0x9faffe('0xdeb')]=_0x344bb0,_0x346ed1['userProfileSection']=_0x9bd090&&_0x9bd090[_0x9faffe('0x335')]==0x1?_0x9bd090[_0x9faffe('0x2319')][0x0]:null,_0x346ed1[_0x9faffe('0x103e')]=_0x5c9d03[_0x9faffe('0x17a9')](_0x346ed1[_0x9faffe('0x383')]?_0x346ed1[_0x9faffe('0x383')][_0x9faffe('0x103e')]:null),_0x346ed1[_0x9faffe('0x25ea')]=_0x1df52a?_0x49cbdd()[_0x9faffe('0x8de')](_0x1df52a[_0x9faffe('0x2319')]?_0x1df52a['rows']:[],'id'):{},_0x346ed1['rpcAgents']=_0xd4f9e2?_0x49cbdd()[_0x9faffe('0x8de')](_0xd4f9e2[_0x9faffe('0x2319')]?_0xd4f9e2[_0x9faffe('0x2319')]:[],'id'):{},_0x346ed1[_0x9faffe('0x219a')]={},_0x346ed1[_0x9faffe('0xae2')]=![],_0x346ed1['order']=[],_0x346ed1['agentInternal']={};for(const _0x243173 in _0x346ed1[_0x9faffe('0x25ea')]){typeof _0x346ed1[_0x9faffe('0x25ea')][_0x243173]!==_0x9faffe('0xfad')&&(_0x346ed1[_0x9faffe('0x25ea')][_0x243173][_0x9faffe('0x161d')]=!![]);}_0x346ed1[_0x9faffe('0x826')]={'limit':0xa,'page':0x1,'order':_0x9faffe('0xea6'),'globalStatusFilter':'','pauseTypeFilter':''},_0x346ed1['logout']=_0x57bae0,_0x346ed1[_0x9faffe('0x18ba')]=_0x58733c,_0x346ed1[_0x9faffe('0x267a')]=_0x111587,_0x346ed1[_0x9faffe('0x2040')]=_0x448d84,_0x346ed1[_0x9faffe('0x3eb')]=_0x26966e,_0x346ed1[_0x9faffe('0x7f6')]=_0x320a3a,_0x346ed1['getAgentGlobalStatus']=_0x21b59e,_0x346ed1[_0x9faffe('0x5b9')]=_0x2fdcfd,_0x346ed1[_0x9faffe('0x160d')]=_0x33c7b9,_0x346ed1[_0x9faffe('0x179b')]=_0x3ff0fc,_0x346ed1[_0x9faffe('0xfd5')]=_0x5b7d7c,_0x346ed1[_0x9faffe('0x1fc4')]=_0x21ba62,_0x346ed1[_0x9faffe('0xdf0')]=_0xce2194,_0x346ed1['onConnect']=_0x1a4443,_0x346ed1[_0x9faffe('0x1ccb')]=_0xd9a246,_0x346ed1['screenRecording']=_0x454306,_0x57ef62['on'](_0x9faffe('0x21a2'),_0x346ed1[_0x9faffe('0xfd5')]),_0x57ef62['on']('user:update',_0x346ed1[_0x9faffe('0x1fc4')]),_0x57ef62['on'](_0x9faffe('0x1a5'),_0x346ed1['onConnect']),_0x57ef62['on'](_0x9faffe('0x1f1f'),_0x346ed1[_0x9faffe('0x1ccb')]),_0xce2194();let _0x943ff1=_0x20ae97(function(){const _0x47d328=_0x9faffe;_0x346ed1[_0x47d328('0xae2')]&&(_0x346ed1[_0x47d328('0xae2')]=![],_0xce2194());},0x3e7);function _0xce2194(){const _0x2366cd=_0x9faffe;_0x346ed1['load']=![];const _0x11e9c2=_0x2e2540['defer']();_0x346ed1[_0x2366cd('0x1691')]=_0x11e9c2[_0x2366cd('0x1691')],_0x346ed1[_0x2366cd('0x1b79')]=[],_0x346ed1[_0x2366cd('0x1e36')]=[],_0x49cbdd()[_0x2366cd('0x1857')](_0x346ed1[_0x2366cd('0x25ea')],function(_0x2bcdae,_0x3eccee){const _0x212fcc=_0x2366cd;_0x346ed1[_0x212fcc('0x1593')][_0x3eccee]&&_0x49cbdd()[_0x212fcc('0x1ced')](_0x2bcdae,_0x49cbdd()[_0x212fcc('0x230a')](_0x49cbdd()[_0x212fcc('0x15c3')](_0x346ed1[_0x212fcc('0x1593')][_0x3eccee],_0x382eb2),_0x54d932)),_0x21b59e(_0x2bcdae),_0x2bcdae[_0x212fcc('0x1872')]?(_0x346ed1[_0x212fcc('0x1b79')][_0x212fcc('0x269f')](_0x2bcdae),_0x346ed1[_0x212fcc('0x20a5')][_0x2bcdae['internal']]=_0x3eccee):_0x2bcdae[_0x212fcc('0x22cb')]=_0x49cbdd()[_0x212fcc('0xa33')](_0x107a13()()[_0x212fcc('0x1c0d')]('x'));});_0x346ed1[_0x2366cd('0x826')][_0x2366cd('0x14f9')]&&_0x49cbdd()[_0x2366cd('0x5f3')](_0x346ed1[_0x2366cd('0x1b79')],function(_0x3972f5){const _0x571e6a=_0x2366cd;return _0x3972f5[_0x571e6a('0xf45')]!==_0x346ed1[_0x571e6a('0x826')][_0x571e6a('0x14f9')];});_0x346ed1[_0x2366cd('0x826')]['pauseTypeFilter']&&_0x49cbdd()[_0x2366cd('0x5f3')](_0x346ed1[_0x2366cd('0x1b79')],function(_0x5c1503){const _0x3a0bd0=_0x2366cd;return _0x5c1503[_0x3a0bd0('0x11ec')]!==_0x346ed1[_0x3a0bd0('0x826')][_0x3a0bd0('0x44f')];});_0x346ed1[_0x2366cd('0x826')][_0x2366cd('0x2483')]&&_0x49cbdd()['remove'](_0x346ed1[_0x2366cd('0x1b79')],function(_0x33b5a6){const _0x10af64=_0x2366cd;return _0x33b5a6['fullname'][_0x10af64('0x19b')]()[_0x10af64('0x2567')](_0x346ed1[_0x10af64('0x826')]['filter'][_0x10af64('0x19b')]())<0x0;});_0x346ed1[_0x2366cd('0x1b79')]=_0x4b7416(_0x346ed1[_0x2366cd('0x1b79')]);const _0x5cecf5=(_0x346ed1['query'][_0x2366cd('0x115a')]-0x1)*_0x346ed1[_0x2366cd('0x826')][_0x2366cd('0x193b')];_0x346ed1[_0x2366cd('0x219a')]=_0x49cbdd()[_0x2366cd('0x6c0')](_0x346ed1['filteredAgents'],_0x5cecf5)[_0x2366cd('0x275f')](0x0,_0x346ed1['query'][_0x2366cd('0x193b')]);for(let _0x4313da=0x0;_0x4313da<_0x346ed1[_0x2366cd('0x219a')][_0x2366cd('0x1f73')];_0x4313da+=0x1){_0x346ed1[_0x2366cd('0x1e36')]['push'](_0x346ed1[_0x2366cd('0x219a')][_0x4313da]['id']);}_0x11e9c2['resolve'](),_0x346ed1[_0x2366cd('0xae2')]=!![];}function _0x5b7d7c(_0x39b891){const _0x3d354b=_0x9faffe;_0x346ed1[_0x3d354b('0x25ea')][_0x39b891['id']]&&(_0x49cbdd()['merge'](_0x346ed1[_0x3d354b('0x25ea')][_0x39b891['id']],_0x49cbdd()[_0x3d354b('0x230a')](_0x49cbdd()[_0x3d354b('0x15c3')](_0x39b891,_0x382eb2),_0x54d932)),_0x49cbdd()[_0x3d354b('0x1ced')](_0x346ed1['rpcAgents'][_0x39b891['id']],_0x49cbdd()[_0x3d354b('0x230a')](_0x49cbdd()[_0x3d354b('0x15c3')](_0x39b891,_0x382eb2),_0x54d932)),_0x21b59e(_0x346ed1[_0x3d354b('0x25ea')][_0x39b891['id']]));}function _0x21ba62(_0x4b1261){const _0x1c687c=_0x9faffe;_0x346ed1[_0x1c687c('0x25ea')][_0x4b1261['id']]&&(_0x49cbdd()[_0x1c687c('0x1ced')](_0x346ed1['agents'][_0x4b1261['id']],_0x49cbdd()[_0x1c687c('0x230a')](_0x4b1261,_0x54d932)),_0x49cbdd()[_0x1c687c('0x1ced')](_0x346ed1[_0x1c687c('0x1593')][_0x4b1261['id']],_0x49cbdd()[_0x1c687c('0x230a')](_0x4b1261,_0x54d932)),_0x4b1261[_0x1c687c('0x110a')]&&(_0x346ed1[_0x1c687c('0x25ea')][_0x4b1261['id']][_0x1c687c('0x22cb')]=_0x4b1261[_0x1c687c('0x110a')],_0x346ed1['rpcAgents'][_0x4b1261['id']][_0x1c687c('0x22cb')]=_0x4b1261[_0x1c687c('0x110a')]),_0x21b59e(_0x346ed1['agents'][_0x4b1261['id']]));}function _0x1a4443(_0x443723){const _0x237963=_0x9faffe;_0x346ed1[_0x237963('0x25ea')][_0x346ed1[_0x237963('0x20a5')][_0x443723[_0x237963('0x1177')]]]&&(_0x49cbdd()[_0x237963('0x1ced')](_0x346ed1[_0x237963('0x25ea')][_0x346ed1[_0x237963('0x20a5')][_0x443723['destaccountcode']]],_0x49cbdd()[_0x237963('0x230a')](_0x443723,[_0x237963('0x1bd'),_0x237963('0xce0')])),_0x49cbdd()[_0x237963('0x1ced')](_0x346ed1[_0x237963('0x1593')][_0x346ed1[_0x237963('0x20a5')][_0x443723[_0x237963('0x1177')]]],_0x49cbdd()[_0x237963('0x230a')](_0x443723,[_0x237963('0x1bd'),_0x237963('0xce0')])));}function _0xd9a246(_0x5df0ba){const _0x1c6c85=_0x9faffe;_0x346ed1[_0x1c6c85('0x25ea')][_0x346ed1[_0x1c6c85('0x20a5')][_0x5df0ba[_0x1c6c85('0x1177')]]]&&(_0x346ed1[_0x1c6c85('0x25ea')][_0x346ed1[_0x1c6c85('0x20a5')][_0x5df0ba['destaccountcode']]]=_0x49cbdd()['omit'](_0x346ed1[_0x1c6c85('0x25ea')][_0x346ed1[_0x1c6c85('0x20a5')][_0x5df0ba['destaccountcode']]],[_0x1c6c85('0x1bd'),'destconnectedlinenum']),_0x346ed1[_0x1c6c85('0x1593')][_0x346ed1[_0x1c6c85('0x20a5')][_0x5df0ba[_0x1c6c85('0x1177')]]]=_0x49cbdd()[_0x1c6c85('0x15c3')](_0x346ed1['rpcAgents'][_0x346ed1[_0x1c6c85('0x20a5')][_0x5df0ba[_0x1c6c85('0x1177')]]],[_0x1c6c85('0x1bd'),_0x1c6c85('0xce0')]));}function _0x57bae0(_0x18ab69){const _0x41c3e1=_0x9faffe;return _0x22db3a[_0x41c3e1('0x221e')][_0x41c3e1('0xff8')]({'id':_0x18ab69['id'],'device':'realtime','agent_id':_0x18ab69['id'],'agent_name':_0x18ab69[_0x41c3e1('0x2aa')]})[_0x41c3e1('0x1af5')][_0x41c3e1('0x17e7')](function(){const _0xeca590=_0x41c3e1;_0x3dce8e[_0xeca590('0x130d')]({'title':_0xeca590('0x686'),'msg':_0x18ab69[_0xeca590('0xea6')]+_0xeca590('0xe21')}),_0x346ed1[_0xeca590('0x25ea')][_0x18ab69['id']]&&(_0x346ed1[_0xeca590('0x25ea')][_0x18ab69['id']][_0xeca590('0x1872')]=![]),_0x346ed1[_0xeca590('0x1593')][_0x18ab69['id']]&&(_0x346ed1[_0xeca590('0x1593')][_0x18ab69['id']][_0xeca590('0x1872')]=![]),_0xce2194();})[_0x41c3e1('0x16df')](function(_0x466570){const _0x519a19=_0x41c3e1;_0x3dce8e['error']({'title':_0x466570[_0x519a19('0x11c5')]?_0x519a19('0x14f7')+_0x466570[_0x519a19('0x11c5')]+_0x519a19('0x16e4')+_0x466570[_0x519a19('0x1833')]:_0x519a19('0x18ea'),'msg':_0x466570[_0x519a19('0x1457')]?JSON['stringify'](_0x466570['data']['message']):_0x466570['toString']()});});}function _0x111587(_0x4a5105,_0x394e3a){const _0x559b1f=_0x9faffe;return _0x22db3a[_0x559b1f('0x221e')][_0x559b1f('0x267a')]({'id':_0x4a5105['id'],'type':_0x394e3a})[_0x559b1f('0x1af5')][_0x559b1f('0x17e7')](function(_0xf8cdec){const _0x323552=_0x559b1f;_0x346ed1['agents'][_0x4a5105['id']]&&_0x49cbdd()['merge'](_0x346ed1[_0x323552('0x25ea')][_0x4a5105['id']],_0x49cbdd()[_0x323552('0x230a')](_0xf8cdec,_0x54d932)),_0x346ed1[_0x323552('0x1593')][_0x4a5105['id']]&&_0x49cbdd()[_0x323552('0x1ced')](_0x346ed1[_0x323552('0x1593')][_0x4a5105['id']],_0x49cbdd()[_0x323552('0x230a')](_0xf8cdec,_0x54d932)),_0x21b59e(_0x346ed1[_0x323552('0x25ea')][_0x4a5105['id']]);})[_0x559b1f('0x16df')](function(_0x56a539){const _0x9de198=_0x559b1f;_0x3dce8e[_0x9de198('0x1db9')]({'title':_0x56a539['status']?_0x9de198('0x14f7')+_0x56a539['status']+_0x9de198('0x16e4')+_0x56a539[_0x9de198('0x1833')]:_0x9de198('0x18ea'),'msg':_0x56a539[_0x9de198('0x1457')]?JSON['stringify'](_0x56a539[_0x9de198('0x1457')][_0x9de198('0x1603')]):_0x56a539[_0x9de198('0x9b6')]()});});}function _0x448d84(_0x1a9580){const _0x1a51e3=_0x9faffe;return _0x22db3a[_0x1a51e3('0x221e')][_0x1a51e3('0xc57')]({'id':_0x1a9580['id']})['$promise'][_0x1a51e3('0x17e7')](function(_0x50fe04){const _0x3c6543=_0x1a51e3;_0x346ed1['agents'][_0x1a9580['id']]&&_0x49cbdd()['merge'](_0x346ed1[_0x3c6543('0x25ea')][_0x1a9580['id']],_0x49cbdd()['pick'](_0x50fe04,_0x54d932)),_0x346ed1[_0x3c6543('0x1593')][_0x1a9580['id']]&&_0x49cbdd()[_0x3c6543('0x1ced')](_0x346ed1[_0x3c6543('0x1593')][_0x1a9580['id']],_0x49cbdd()[_0x3c6543('0x230a')](_0x50fe04,_0x54d932)),_0x21b59e(_0x346ed1['agents'][_0x1a9580['id']]);})[_0x1a51e3('0x16df')](function(_0x119ba7){const _0x7c7209=_0x1a51e3;_0x3dce8e[_0x7c7209('0x1db9')]({'title':_0x119ba7['status']?_0x7c7209('0x14f7')+_0x119ba7['status']+_0x7c7209('0x16e4')+_0x119ba7['statusText']:_0x7c7209('0x18ea'),'msg':_0x119ba7[_0x7c7209('0x1457')]?JSON[_0x7c7209('0x678')](_0x119ba7[_0x7c7209('0x1457')]['message']):_0x119ba7['toString']()});});}function _0x26966e(_0x11be87){const _0x5ecda6=_0x9faffe;_0x423c46[_0x5ecda6('0x28e2')](_0x423c46['alert']()[_0x5ecda6('0x2f4')](!![])[_0x5ecda6('0x24d3')]('Legend')[_0x5ecda6('0x211f')](_0x5ecda6('0xf9f'))['ok']('Ok')[_0x5ecda6('0x104f')](_0x11be87));}function _0x58733c(_0x4d8453,_0x936365){const _0x23c7b1=_0x9faffe;_0x423c46['show']({'controller':_0x23c7b1('0x25ed'),'controllerAs':'vm','templateUrl':_0x5e8625,'parent':angular[_0x23c7b1('0x1ce1')](_0xddb77b[_0x23c7b1('0x13aa')]),'targetEvent':_0x936365,'clickOutsideToClose':!![],'locals':{'agent':_0x4d8453,'agents':[],'channel':_0x23c7b1('0x2cd'),'direction':'inbound','crudPermissions':_0x346ed1[_0x23c7b1('0x103e')]}});}function _0x2fdcfd(_0x6762d7){const _0x5a1b7a=_0x9faffe;return _0x6762d7===_0x5a1b7a('0x267a')||_0x6762d7===_0x5a1b7a('0x1998');}function _0x33c7b9(_0x5d0519){const _0x35b426=_0x9faffe;return _0x5d0519===_0x35b426('0x267a');}function _0x3ff0fc(_0xba990b){const _0x5c741e=_0x9faffe;return _0xba990b===_0x5c741e('0x1998');}function _0x159e1f(_0x4caacb){const _0x357b2e=_0x9faffe;return _0x4caacb===_0x357b2e('0x1ff2')||_0x4caacb===_0x357b2e('0xf10')||_0x4caacb==='unavailable'||_0x4caacb===_0x357b2e('0x1589')||_0x49cbdd()[_0x357b2e('0x390')](_0x4caacb);}function _0x320a3a(_0x347bf6,_0x28d0e8){const _0x5485e6=_0x9faffe;if(_0x28d0e8===_0x5485e6('0x1fe1')){if(_0x347bf6[_0x28d0e8+_0x5485e6('0x51c')]!==_0x5485e6('0x1ff2'))return _0x347bf6[_0x28d0e8+_0x5485e6('0x51c')];if(_0x347bf6[_0x28d0e8+_0x5485e6('0x5d5')])return _0x347bf6[_0x28d0e8+_0x5485e6('0x51c')]=_0x5485e6('0x267a'),'pause';return _0x5485e6('0x1ff2');}else{if(_0x347bf6[_0x28d0e8+_0x5485e6('0x5d5')])return _0x347bf6[_0x28d0e8+_0x5485e6('0x51c')]=_0x5485e6('0x267a'),'pause';return _0x347bf6[_0x28d0e8+'Status'];}}function _0x21b59e(_0x3cd913){const _0x145426=_0x9faffe;let _0x264b05=_0x145426('0xf10');if(_0x49cbdd()[_0x145426('0x12df')]([_0x320a3a(_0x3cd913,_0x145426('0x1fe1')),_0x320a3a(_0x3cd913,'chat'),_0x320a3a(_0x3cd913,_0x145426('0xc2')),_0x320a3a(_0x3cd913,_0x145426('0x1508')),_0x320a3a(_0x3cd913,_0x145426('0x2cd')),_0x320a3a(_0x3cd913,_0x145426('0x1d27')),_0x320a3a(_0x3cd913,_0x145426('0xc23'))],_0x2fdcfd))_0x264b05=_0x145426('0x267a');else{if(_0x49cbdd()['some']([_0x320a3a(_0x3cd913,'voice'),_0x320a3a(_0x3cd913,_0x145426('0x2219')),_0x320a3a(_0x3cd913,'mail'),_0x320a3a(_0x3cd913,_0x145426('0x1508')),_0x320a3a(_0x3cd913,'sms'),_0x320a3a(_0x3cd913,'whatsapp'),_0x320a3a(_0x3cd913,_0x145426('0xc23'))],_0x2fdcfd))_0x264b05='*pause';else _0x49cbdd()['every']([_0x320a3a(_0x3cd913,_0x145426('0x1fe1')),_0x320a3a(_0x3cd913,_0x145426('0x2219')),_0x320a3a(_0x3cd913,_0x145426('0xc2')),_0x320a3a(_0x3cd913,'openchannel'),_0x320a3a(_0x3cd913,_0x145426('0x2cd')),_0x320a3a(_0x3cd913,'whatsapp'),_0x320a3a(_0x3cd913,_0x145426('0xc23'))],_0x159e1f)?_0x264b05=_0x145426('0x1ff2'):_0x264b05=_0x145426('0xe88');}_0x3cd913[_0x145426('0xf45')]!==_0x264b05&&(_0x3cd913[_0x145426('0xf45')]=_0x264b05,_0x3cd913[_0x145426('0x161d')]?(_0x3cd913['init']=![],_0x3cd913[_0x145426('0x22cb')]=_0x2fdcfd(_0x264b05)?_0x49cbdd()['toNumber'](_0x107a13()(_0x3cd913[_0x145426('0x110a')])[_0x145426('0x1c0d')]('x')):_0x49cbdd()[_0x145426('0x103b')]([_0x3cd913['voiceStatusTime'],_0x3cd913[_0x145426('0x587')],_0x3cd913[_0x145426('0x16a4')],_0x3cd913[_0x145426('0x893')],_0x3cd913[_0x145426('0x1e2a')],_0x3cd913[_0x145426('0x18b1')],_0x3cd913[_0x145426('0xbdb')]])):_0x3cd913[_0x145426('0x22cb')]=_0x49cbdd()[_0x145426('0xa33')](_0x107a13()()[_0x145426('0x1c0d')]('x')));}function _0x4b7416(_0x33edd9){const _0x1c5a18=_0x9faffe,_0x3f3b09=_0x49cbdd()[_0x1c5a18('0x818')](_0x346ed1[_0x1c5a18('0x826')][_0x1c5a18('0x1e36')],'-')?_0x1c5a18('0x187b'):_0x1c5a18('0x161a');return _0x49cbdd()[_0x1c5a18('0xa36')](_0x33edd9,[_0x346ed1[_0x1c5a18('0x826')][_0x1c5a18('0x1e36')][_0x1c5a18('0x737')]('-','')],[_0x3f3b09]);}function _0x5d5ae5(){const _0x4259bf=_0x9faffe;_0x943ff1&&(_0x20ae97[_0x4259bf('0x1d47')](_0x943ff1),_0x943ff1=null);}function _0x454306(_0x53af22,_0xb16b9a){const _0x1e1adb=_0x9faffe;return _0x22db3a['user'][_0x1e1adb('0x27ba')]({'id':_0x53af22['id']},{'screenrecording':_0xb16b9a})[_0x1e1adb('0x1af5')]['catch'](function(_0x359e9a){const _0x3a337f=_0x1e1adb;_0x3dce8e[_0x3a337f('0x1db9')]({'title':_0x359e9a['status']?'API:'+_0x359e9a[_0x3a337f('0x11c5')]+_0x3a337f('0x16e4')+_0x359e9a[_0x3a337f('0x1833')]:'api.user.update','msg':_0x359e9a[_0x3a337f('0x1457')]?JSON[_0x3a337f('0x678')](_0x359e9a[_0x3a337f('0x1457')]['message']):_0x359e9a[_0x3a337f('0x9b6')]()});});}_0x41dd3f['$on']('$destroy',function(){const _0x31d1ce=_0x9faffe;_0x57ef62['removeAllListeners'](_0x31d1ce('0x21a2')),_0x57ef62[_0x31d1ce('0x1c65')]('user:update'),_0x57ef62[_0x31d1ce('0x1c65')](_0x31d1ce('0x1a5')),_0x57ef62[_0x31d1ce('0x1c65')](_0x31d1ce('0x1f1f')),_0x5d5ae5();});}const _0x208cd3=_0x32470c,_0x497c02=_0x4cf2bc['p']+_0x4376d8('0x154c'),_0x39d0ff=_0x4cf2bc['p']+_0x4376d8('0x149b');_0x4c83c6[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x26ca'),_0x4376d8('0x33a'),_0x4376d8('0x14c4'),_0x4376d8('0x1d90'),_0x4376d8('0x212e'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885')];function _0x4c83c6(_0x4e51af,_0x214486,_0x3d2d8d,_0x3c312c,_0x55ec11,_0x4d7a4c,_0x561d21,_0x2bcffb,_0x100275,_0x40d2bd,_0x134d5b,_0x2d6c8d,_0x20dc86,_0x302e41){const _0xc2b247=_0x4376d8,_0x173872=this,_0x16636c=[_0xc2b247('0x1458'),_0xc2b247('0x249c'),'waiting',_0xc2b247('0x1d20'),'pTalking',_0xc2b247('0x829'),'message','dialActive','dialMethod','Trunk',_0xc2b247('0x1bb8')];_0x173872['currentUser']=_0x302e41[_0xc2b247('0x2831')](),_0x173872[_0xc2b247('0x335')]=_0x561d21['count']?_0x561d21[_0xc2b247('0x335')]:0x0,_0x173872[_0xc2b247('0x14c4')]=_0x561d21?_0x49cbdd()[_0xc2b247('0x8de')](_0x561d21[_0xc2b247('0x2319')]?_0x561d21[_0xc2b247('0x2319')]:[],'id'):{},_0x173872['rpcQueues']=_0x2bcffb?_0x49cbdd()['keyBy'](_0x2bcffb[_0xc2b247('0x2319')]?_0x2bcffb[_0xc2b247('0x2319')]:[],'id'):{},_0x173872[_0xc2b247('0xdeb')]=_0x2d6c8d,_0x173872[_0xc2b247('0x383')]=_0x20dc86&&_0x20dc86['count']==0x1?_0x20dc86[_0xc2b247('0x2319')][0x0]:null,_0x173872['crudPermissions']=_0x302e41['parseCrudPermissions'](_0x173872['userProfileSection']?_0x173872[_0xc2b247('0x383')][_0xc2b247('0x103e')]:null);_0x302e41['hasRole']('admin')?_0x173872[_0xc2b247('0x826')]={'type':_0xc2b247('0x1e77'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x173872[_0xc2b247('0x826')]={'id':_0x173872['currentUser']['id'],'channel':_0xc2b247('0x2cd'),'type':_0xc2b247('0x1e77'),'sort':_0xc2b247('0x1ac6'),'limit':0xa,'page':0x1};_0x173872[_0xc2b247('0x130d')]=_0x33db08,_0x173872[_0xc2b247('0x1f3b')]=_0x168e5,_0x173872[_0xc2b247('0x1245')]=_0x4dce5e,_0x173872[_0xc2b247('0x1a78')]=_0x445a8c,_0x173872['updateQueue']=_0x3bfad6,_0x173872[_0xc2b247('0xfd5')]=_0x140379,_0x173872[_0xc2b247('0x1899')]=_0x1febe5,_0x173872[_0xc2b247('0x110')]=_0xd34563,_0x173872[_0xc2b247('0x14ed')]=_0x46970e,_0x173872[_0xc2b247('0x1781')]=_0x347084,_0x173872[_0xc2b247('0x1532')]=_0x3098e0,_0x173872[_0xc2b247('0x11e8')]=_0x35b948,_0x173872[_0xc2b247('0x1e36')]=[],_0x49cbdd()[_0xc2b247('0x1857')](_0x173872[_0xc2b247('0x14c4')],function(_0x8721ad){const _0x40dc4e=_0xc2b247;_0x173872['order'][_0x40dc4e('0x269f')](_0x8721ad['id']);}),_0x40d2bd['on'](_0xc2b247('0x62'),_0x173872[_0xc2b247('0xfd5')]),_0x40d2bd['on'](_0xc2b247('0x13f7'),_0x173872[_0xc2b247('0x1899')]),_0x40d2bd['on'](_0xc2b247('0x1257'),_0x173872['onRemoveMember']),_0x40d2bd['on'](_0xc2b247('0x284f'),_0x173872[_0xc2b247('0x14ed')]),_0x40d2bd['on'](_0xc2b247('0x1f34'),_0x173872['onLogout']),_0x40d2bd['on'](_0xc2b247('0x1cfb'),_0x173872[_0xc2b247('0x1781')]);function _0x35b948(){const _0x322dd2=_0xc2b247,_0x4716ae=[];return _0x49cbdd()[_0x322dd2('0x1857')](_0x173872['queues'],function(_0x55f1e5,_0x4ea5b6){const _0x159c46=_0x322dd2;_0x55f1e5[_0x159c46('0x1bb8')]=0x0,_0x55f1e5['loggedInDb']=0x0,_0x173872[_0x159c46('0x14c4')][_0x4ea5b6]['agents']={},_0x4716ae[_0x159c46('0x269f')](_0x100275[_0x159c46('0xdb0')][_0x159c46('0x1f58')]({'id':_0x4ea5b6})['$promise']),_0x173872['rpcQueues'][_0x4ea5b6]&&_0x49cbdd()['merge'](_0x55f1e5,_0x49cbdd()['pick'](_0x173872[_0x159c46('0x1d90')][_0x4ea5b6],_0x16636c));}),_0x3c312c[_0x322dd2('0x1283')](_0x4716ae)[_0x322dd2('0x17e7')](function(_0x519e2c){const _0x5bdf36=_0x322dd2;for(let _0x2b4ceb=0x0;_0x2b4ceb<_0x519e2c[_0x5bdf36('0x1f73')];_0x2b4ceb+=0x1){for(let _0x4e4700=0x0;_0x4e4700<_0x519e2c[_0x2b4ceb][_0x5bdf36('0x2319')][_0x5bdf36('0x1f73')];_0x4e4700++){_0x519e2c[_0x2b4ceb][_0x5bdf36('0x2319')][_0x4e4700][_0x5bdf36('0x1bb8')]&&_0x173872[_0x5bdf36('0x14c4')][_0x519e2c[_0x2b4ceb][_0x5bdf36('0x2319')][_0x4e4700][_0x5bdf36('0xf53')]][_0x5bdf36('0x1bb8')]++,_0x173872['queues'][_0x519e2c[_0x2b4ceb][_0x5bdf36('0x2319')][_0x4e4700]['SmsQueueId']][_0x5bdf36('0x6c2')]++,_0x173872['queues'][_0x519e2c[_0x2b4ceb][_0x5bdf36('0x2319')][_0x4e4700][_0x5bdf36('0xf53')]][_0x5bdf36('0x25ea')][_0x519e2c[_0x2b4ceb]['rows'][_0x4e4700][_0x5bdf36('0x5e5')]]=_0x519e2c[_0x2b4ceb][_0x5bdf36('0x2319')][_0x4e4700][_0x5bdf36('0xf53')];}}})[_0x322dd2('0x16df')](function(_0x46f020){console['error'](_0x46f020);});}function _0x140379(_0x46a3ef){const _0x360c98=_0xc2b247;_0x173872['queues'][_0x46a3ef['id']]&&_0x49cbdd()[_0x360c98('0x1ced')](_0x173872[_0x360c98('0x14c4')][_0x46a3ef['id']],_0x49cbdd()[_0x360c98('0x230a')](_0x46a3ef,_0x16636c));}function _0x1febe5(_0x186096){const _0x54913d=_0xc2b247;_0x173872[_0x54913d('0x14c4')][_0x186096[_0x54913d('0xf53')]]&&_0x173872[_0x54913d('0x14c4')][_0x186096[_0x54913d('0xf53')]][_0x54913d('0x6c2')]++;}function _0xd34563(_0x3f1134){const _0x9d47ba=_0xc2b247;_0x173872[_0x9d47ba('0x14c4')][_0x3f1134['SmsQueueId']]&&_0x173872[_0x9d47ba('0x14c4')][_0x3f1134['SmsQueueId']][_0x9d47ba('0x6c2')]--;}function _0x46970e(_0xf798be){const _0x4b1e9f=_0xc2b247;console[_0x4b1e9f('0x1d63')](_0x4b1e9f('0x14ed'),_0xf798be);if(_0xf798be[_0x4b1e9f('0x118a')])_0x49cbdd()['forIn'](_0x173872[_0x4b1e9f('0x14c4')],function(_0x1d6461){const _0x202637=_0x4b1e9f;_0x1d6461[_0x202637('0x25ea')][_0xf798be['id']]&&(_0x1d6461[_0x202637('0x1bb8')]+=0x1,console['log'](_0x202637('0x267a')));});else!_0xf798be[_0x4b1e9f('0x118a')]&&_0x49cbdd()['forIn'](_0x173872[_0x4b1e9f('0x14c4')],function(_0x477a91){const _0x3f5317=_0x4b1e9f;_0x477a91[_0x3f5317('0x25ea')][_0xf798be['id']]&&(_0x477a91[_0x3f5317('0x1bb8')]>0x0&&(_0x477a91[_0x3f5317('0x1bb8')]-=0x1,console[_0x3f5317('0x1d63')](_0x3f5317('0xc57'))));});}function _0x347084(_0x2810b0){const _0x2c0af3=_0xc2b247;console[_0x2c0af3('0x1d63')](_0x2c0af3('0x1a6b'),_0x2810b0),_0x173872[_0x2c0af3('0x14c4')][_0x2810b0[_0x2c0af3('0xf53')]]&&(_0x173872[_0x2c0af3('0x14c4')][_0x2810b0[_0x2c0af3('0xf53')]][_0x2c0af3('0x6c2')]+=0x1,_0x173872[_0x2c0af3('0x14c4')][_0x2810b0[_0x2c0af3('0xf53')]][_0x2c0af3('0x25ea')][_0x2810b0['UserId']]=_0x2810b0[_0x2c0af3('0xf53')]);}function _0x3098e0(_0x556db3){const _0x3b37b4=_0xc2b247;console[_0x3b37b4('0x1d63')](_0x3b37b4('0x1532'),_0x556db3),_0x173872[_0x3b37b4('0x14c4')][_0x556db3[_0x3b37b4('0xf53')]]&&_0x173872['queues'][_0x556db3[_0x3b37b4('0xf53')]][_0x3b37b4('0x6c2')]>0x0&&(_0x173872[_0x3b37b4('0x14c4')][_0x556db3[_0x3b37b4('0xf53')]]['loggedInDb']-=0x1,delete _0x173872[_0x3b37b4('0x14c4')][_0x556db3[_0x3b37b4('0xf53')]][_0x3b37b4('0x25ea')][_0x556db3[_0x3b37b4('0x5e5')]]);}let _0x33fe41=!![],_0x114d82=0x1;_0x4e51af['$watch'](_0xc2b247('0x3ed'),function(_0x111427,_0x56a0b3){const _0x1fe410=_0xc2b247;_0x33fe41?_0x214486(function(){_0x33fe41=![];}):(!_0x56a0b3&&(_0x114d82=_0x173872[_0x1fe410('0x826')][_0x1fe410('0x115a')]),_0x111427!==_0x56a0b3&&(_0x173872[_0x1fe410('0x826')][_0x1fe410('0x115a')]=0x1),!_0x111427&&(_0x173872[_0x1fe410('0x826')][_0x1fe410('0x115a')]=_0x114d82),_0x173872[_0x1fe410('0x1f3b')]());});function _0x33db08(_0x31cdac){const _0x465b99=_0xc2b247;_0x173872[_0x465b99('0x335')]=_0x31cdac[_0x465b99('0x335')],_0x173872[_0x465b99('0x14c4')]=_0x31cdac?_0x49cbdd()[_0x465b99('0x8de')](_0x31cdac[_0x465b99('0x2319')]?_0x31cdac[_0x465b99('0x2319')]:[],'id'):{};if(_0x31cdac[_0x465b99('0x2319')]){_0x173872[_0x465b99('0x1e36')]=[];for(let _0x2a507f=0x0;_0x2a507f<_0x31cdac[_0x465b99('0x2319')][_0x465b99('0x1f73')];_0x2a507f++){_0x173872[_0x465b99('0x1e36')][_0x465b99('0x269f')](_0x31cdac[_0x465b99('0x2319')][_0x2a507f]['id']);}}_0x35b948();}function _0x168e5(){const _0x40b40e=_0xc2b247;_0x173872['query'][_0x40b40e('0xf19')]=(_0x173872[_0x40b40e('0x826')][_0x40b40e('0x115a')]-0x1)*_0x173872[_0x40b40e('0x826')]['limit'],_0x302e41['hasRole']('admin')?_0x173872[_0x40b40e('0x1691')]=_0x100275['smsQueue'][_0x40b40e('0x1c53')](_0x173872[_0x40b40e('0x826')],_0x33db08)[_0x40b40e('0x1af5')]:(_0x173872[_0x40b40e('0x826')]['id']=_0x173872[_0x40b40e('0xdeb')]['id'],_0x173872[_0x40b40e('0x826')][_0x40b40e('0x16f8')]=_0x40b40e('0x544'),_0x173872[_0x40b40e('0x1691')]=_0x100275[_0x40b40e('0xdeb')][_0x40b40e('0x2447')](_0x173872[_0x40b40e('0x826')],_0x33db08)['$promise']);}function _0x4dce5e(_0x555485,_0x478521){const _0x471a04=_0xc2b247;_0x3d2d8d[_0x471a04('0x28e2')]({'controller':_0x471a04('0x81b'),'controllerAs':'vm','templateUrl':_0x497c02,'parent':angular[_0x471a04('0x1ce1')](_0x55ec11[_0x471a04('0x13aa')]),'targetEvent':_0x555485,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x478521,'smsQueues':_0x49cbdd()[_0x471a04('0xa72')](_0x173872['queues']),'license':null,'setting':null,'crudPermissions':_0x173872[_0x471a04('0x103e')]}});}function _0x445a8c(_0x304095,_0x4736e3){const _0x31ebbc=_0xc2b247;_0x3d2d8d[_0x31ebbc('0x28e2')]({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x39d0ff,'parent':angular[_0x31ebbc('0x1ce1')](_0x55ec11['body']),'targetEvent':_0x304095,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x4736e3,'smsQueues':_0x173872[_0x31ebbc('0x14c4')]?_0x173872['queues'][_0x31ebbc('0x2319')]:[],'realtime':![],'crudPermissions':_0x173872[_0x31ebbc('0x103e')]}});}function _0x3bfad6(_0x1c9077){const _0x5d8db7=_0xc2b247;return _0x100275[_0x5d8db7('0xdb0')]['update'](_0x1c9077)['$promise']['then'](function(){const _0x10a275=_0x5d8db7;_0x134d5b['success']({'title':_0x10a275('0xc7a'),'msg':_0x1c9077[_0x10a275('0x2aa')]?_0x1c9077[_0x10a275('0x2aa')]+_0x10a275('0x12b0'):''});})[_0x5d8db7('0x16df')](function(_0x244907){const _0x493e05=_0x5d8db7;_0x134d5b['error']({'title':_0x493e05('0x2480'),'msg':_0x244907[_0x493e05('0x1603')]});});}_0x4e51af[_0xc2b247('0x207c')]('$destroy',function(){const _0x5e9b15=_0xc2b247;_0x40d2bd['removeAllListeners'](_0x5e9b15('0x62')),_0x40d2bd[_0x5e9b15('0x1c65')](_0x5e9b15('0x1257')),_0x40d2bd[_0x5e9b15('0x1c65')]('userSmsQueue:save'),_0x40d2bd[_0x5e9b15('0x1c65')](_0x5e9b15('0x284f')),_0x40d2bd[_0x5e9b15('0x1c65')](_0x5e9b15('0x1f34')),_0x40d2bd[_0x5e9b15('0x1c65')]('userVoiceQueue:save');});}const _0x37a542=_0x4c83c6;function _0xbc7195(){const _0x1cd2d5=_0x4376d8;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':'red-300-fg\x20icon-close-circle','lagged':_0x1cd2d5('0x20ec'),'reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':'red-300-fg\x20icon-close-circle','unknown':_0x1cd2d5('0x15d8')},'state':{'unknown':'grey-fg\x20icon-phone-hangup','not_inuse':'green-300-fg\x20icon-phone-hangup','inuse':'red-300-fg\x20icon-phone-in-talk','busy':_0x1cd2d5('0xf9e'),'invalid':'grey-fg\x20icon-phone-hangup','unavailable':'grey-fg\x20icon-phone-hangup','ringing':'blue-300-fg\x20icon-phone-incoming','ringinuse':'blue-300-fg\x20icon-phone-incoming','onhold':_0x1cd2d5('0x1f4')},'channelStatus':{'ring':_0x1cd2d5('0x109b'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x1cd2d5('0x1147')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x1cd2d5('0xc21'),'hangup':_0x1cd2d5('0x1147')}};}const _0x5a56d7=_0xbc7195;_0x5edd44[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'socket'];function _0x5edd44(_0xd91915,_0x76fa4b,_0x3abba7){const _0x3f76b8=_0x4376d8,_0x562673=this;_0x3abba7['disconnect'](),_0x3abba7['connect'](),_0x562673[_0x3f76b8('0xde7')]=0x0;switch(_0x76fa4b[_0x3f76b8('0x1247')]['name']){case _0x3f76b8('0x2fa'):_0x562673[_0x3f76b8('0xde7')]=0x0;break;case _0x3f76b8('0x1238'):_0x562673['selectedTab']=0x1;break;default:_0x562673['selectedTab']=0x0,_0x76fa4b['go'](_0x3f76b8('0x2fa'));}_0xd91915[_0x3f76b8('0x620')](_0x3f76b8('0x1bda'),function(_0x2fe648,_0x5e1d49){const _0x53759b=_0x3f76b8;if(_0x2fe648!==_0x5e1d49)switch(_0x2fe648){case 0x0:_0x76fa4b['go'](_0x53759b('0x2fa'));break;case 0x1:_0x76fa4b['go'](_0x53759b('0x1238'));break;default:_0x76fa4b['go'](_0x53759b('0x2fa'));}});}const _0x445b79=_0x5edd44;_0x5d55e7[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x5d55e7(_0x45a7da){const _0x5c8e4d=_0x4376d8;_0x45a7da[_0x5c8e4d('0x1b9a')](_0x5c8e4d('0x202a'),{'url':_0x5c8e4d('0x1dc1'),'views':{'content@app':{'templateUrl':_0x1c8c0f,'controller':_0x5c8e4d('0x9bc')}},'resolve':{'userProfile':[_0x5c8e4d('0x177'),_0x5c8e4d('0x1885'),function(_0x105ab3,_0x57a74a){const _0x3313cc=_0x5c8e4d;return _0x57a74a[_0x3313cc('0x1ba2')](_0x3313cc('0x20bf'))?null:_0x105ab3[_0x3313cc('0x898')]('userProfile@get',{'fields':_0x3313cc('0x8d3'),'id':_0x57a74a[_0x3313cc('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x5c8e4d('0x177'),'Auth',function(_0x2ee613,_0x59332a){const _0x4fff7e=_0x5c8e4d;return _0x59332a[_0x4fff7e('0x1ba2')](_0x4fff7e('0x20bf'))?null:_0x2ee613[_0x4fff7e('0x898')](_0x4fff7e('0x23e7'),{'fields':_0x4fff7e('0x1134'),'userProfileId':_0x59332a['getCurrentUser']()['userProfileId'],'sectionId':0x2c6});}]},'authenticate':!![],'permissionId':0x2c6})[_0x5c8e4d('0x1b9a')]('app.sms.realtime.agents',{'url':_0x5c8e4d('0x1a85'),'controller':_0x5c8e4d('0x26e6'),'templateUrl':_0x1a1b5a,'resolve':{'pauses':[_0x5c8e4d('0x177'),function(_0x4e9950){const _0x5df124=_0x5c8e4d;return _0x4e9950[_0x5df124('0x898')](_0x5df124('0x13db'),{'nolimit':!![]});}],'agents':['apiResolver',_0x5c8e4d('0x1885'),function(_0x5cb303,_0x46fd3b){const _0x3fe433=_0x5c8e4d;return _0x46fd3b[_0x3fe433('0x1ba2')](_0x3fe433('0x20bf'))?_0x5cb303[_0x3fe433('0x898')]('user@get',{'fields':_0x3fe433('0xb31'),'role':'agent','sort':_0x3fe433('0xea6'),'nolimit':!![]}):_0x5cb303[_0x3fe433('0x898')](_0x3fe433('0x1164'),{'id':_0x46fd3b[_0x3fe433('0x2831')]()['userProfileId'],'section':_0x3fe433('0x2157'),'fields':_0x3fe433('0xb31'),'role':_0x3fe433('0x684'),'sort':_0x3fe433('0xea6'),'nolimit':!![]});}],'userProfile':['apiResolver',_0x5c8e4d('0x1885'),function(_0x43442a,_0x20209d){const _0x359b56=_0x5c8e4d;return _0x20209d['hasRole'](_0x359b56('0x20bf'))?null:_0x43442a[_0x359b56('0x898')](_0x359b56('0x235d'),{'fields':'id,name,crudPermissions','id':_0x20209d[_0x359b56('0x2831')]()[_0x359b56('0x1e76')]});}],'userProfileSection':[_0x5c8e4d('0x177'),_0x5c8e4d('0x1885'),function(_0x2758d8,_0x29374d){const _0x35b34d=_0x5c8e4d;return _0x29374d['hasRole']('admin')?null:_0x2758d8[_0x35b34d('0x898')](_0x35b34d('0x23e7'),{'fields':_0x35b34d('0x1134'),'userProfileId':_0x29374d[_0x35b34d('0x2831')]()[_0x35b34d('0x1e76')],'sectionId':0xca});}],'rpcAgents':[_0x5c8e4d('0x177'),function(_0x22252d){const _0x5191b3=_0x5c8e4d;return _0x22252d['resolve'](_0x5191b3('0xb27'));}]},'authenticate':!![],'permissionId':0x2c6})[_0x5c8e4d('0x1b9a')](_0x5c8e4d('0x1238'),{'url':_0x5c8e4d('0x1520'),'controller':_0x5c8e4d('0x263e'),'templateUrl':_0x37d54d,'resolve':{'queues':[_0x5c8e4d('0x177'),_0x5c8e4d('0x1885'),function(_0x337283,_0x4bac85){const _0x17d1ec=_0x5c8e4d;return _0x4bac85[_0x17d1ec('0x1ba2')](_0x17d1ec('0x20bf'))?_0x337283[_0x17d1ec('0x898')]('smsQueue@get',{'type':'inbound','sort':_0x17d1ec('0x1ac6'),'limit':0xa,'offset':0x0}):_0x337283[_0x17d1ec('0x898')](_0x17d1ec('0x1164'),{'id':_0x4bac85['getCurrentUser']()[_0x17d1ec('0x1e76')],'section':'SmsQueues','channel':'sms','type':'inbound','sort':_0x17d1ec('0x1ac6'),'limit':0xa,'page':0x1});}],'userProfile':[_0x5c8e4d('0x177'),_0x5c8e4d('0x1885'),function(_0x49dc91,_0x1bd9e0){const _0x1a7455=_0x5c8e4d;return _0x1bd9e0[_0x1a7455('0x1ba2')](_0x1a7455('0x20bf'))?null:_0x49dc91[_0x1a7455('0x898')](_0x1a7455('0x235d'),{'fields':_0x1a7455('0x8d3'),'id':_0x1bd9e0[_0x1a7455('0x2831')]()[_0x1a7455('0x1e76')]});}],'userProfileSection':[_0x5c8e4d('0x177'),_0x5c8e4d('0x1885'),function(_0x225809,_0x251002){const _0x52f546=_0x5c8e4d;return _0x251002[_0x52f546('0x1ba2')](_0x52f546('0x20bf'))?null:_0x225809[_0x52f546('0x898')](_0x52f546('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x251002[_0x52f546('0x2831')]()[_0x52f546('0x1e76')],'sectionId':0x2bd});}],'rpcQueues':['apiResolver',function(_0x196ee2){const _0x1e8d9d=_0x5c8e4d;return _0x196ee2[_0x1e8d9d('0x898')](_0x1e8d9d('0x234e'));}]},'authenticate':!![],'permissionId':0x2c6});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x202a'),[])[_0x4376d8('0x1980')](_0x5d55e7)[_0x4376d8('0x5ce')]('AgentsSmsRealtimeController',_0x208cd3)['controller'](_0x4376d8('0x1cb0'),_0x37a542)['factory'](_0x4376d8('0x628'),_0x5a56d7)[_0x4376d8('0x5ce')](_0x4376d8('0x2705'),_0x445b79);const _0x3946c6=_0x4cf2bc['p']+_0x4376d8('0x18e2'),_0x10f91b=_0x4cf2bc['p']+'src/js/modules/main/apps/sms/views/smsQueues/edit/view.html/view.html',_0x2a6451=_0x4cf2bc['p']+_0x4376d8('0x1752'),_0x374bb6=_0x4cf2bc['p']+_0x4376d8('0x30f');_0x40c9e3[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x35e'),'smsAccount','api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x40c9e3(_0x28da28,_0xb58eff,_0x1b5f6b,_0x388d5f,_0x2ba1b9,_0x2360c7,_0x1c3c83,_0x16f23e,_0x34cafc,_0x11a92b,_0x473f3b,_0x553269,_0xb43d10,_0x53a4f6){const _0x511816=_0x4376d8,_0x218cde=this;_0x218cde[_0x511816('0x197c')]=_0x473f3b[_0x511816('0x2831')](),_0x218cde['errors']=[],_0x218cde[_0x511816('0x1aeb')]=_0xb43d10,_0x218cde['license']=_0x553269,_0x218cde[_0x511816('0x103e')]=_0x53a4f6,_0x218cde[_0x511816('0x6ee')]={},_0x218cde[_0x511816('0x1572')]=_0x218cde[_0x511816('0x1aeb')]&&_0x218cde['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x218cde['title']=_0x511816('0x187c'),_0x218cde[_0x511816('0x1060')]=angular[_0x511816('0x14e5')](_0x34cafc),_0x218cde[_0x511816('0x35e')]=_0x16f23e,_0x218cde[_0x511816('0x2399')]=![];!_0x218cde[_0x511816('0x1060')]&&(_0x218cde[_0x511816('0x1060')]={'remote':_0x1b5f6b[_0x511816('0x14fe')]()+_0x511816('0x14')+_0x1b5f6b['host']()+(_0x1b5f6b[_0x511816('0x2442')]()?':'+_0x1b5f6b['port']():''),'type':_0x511816('0xf15'),'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x218cde[_0x511816('0x24d3')]=_0x511816('0xfe7'),_0x218cde[_0x511816('0x2399')]=!![]);_0xb58eff['params']['id']&&(_0x218cde[_0x511816('0x1060')][_0x511816('0x17fe')]=_0xb58eff[_0x511816('0x16fb')]['id']);_0x218cde['addNewSmsAccount']=_0x1e0504,_0x218cde[_0x511816('0x1650')]=_0x213ec8,_0x218cde['deleteSmsAccount']=_0x3afb56,_0x218cde[_0x511816('0x1300')]=_0x575d3a,_0x218cde[_0x511816('0x136e')]=_0x5a8608,_0x473f3b[_0x511816('0x1ba2')](_0x511816('0x20bf'))?_0x11a92b[_0x511816('0x25b')][_0x511816('0x1c53')]({'fields':_0x511816('0x12d2'),'sort':_0x511816('0x2aa')})[_0x511816('0x1af5')][_0x511816('0x17e7')](function(_0x202da5){const _0x15f151=_0x511816;_0x218cde['lists']=_0x202da5[_0x15f151('0x2319')]||[];})['catch'](function(_0x4dd52a){const _0x750601=_0x511816;_0x1c3c83[_0x750601('0x1db9')]({'title':_0x4dd52a['status']?_0x750601('0x14f7')+_0x4dd52a['status']+_0x750601('0x16e4')+_0x4dd52a[_0x750601('0x1833')]:'SYSTEM:GET_LISTS','msg':_0x4dd52a[_0x750601('0x1457')]?JSON[_0x750601('0x678')](_0x4dd52a[_0x750601('0x1457')]):_0x4dd52a[_0x750601('0x9b6')]()});}):_0x11a92b[_0x511816('0x25b')][_0x511816('0x1c53')]({'fields':'id,name','sort':_0x511816('0x2aa')})[_0x511816('0x1af5')][_0x511816('0x17e7')](function(_0xcf7da6){const _0x53af6d=_0x511816;_0x218cde[_0x53af6d('0x2504')]=_0xcf7da6[_0x53af6d('0x2319')]||[];})[_0x511816('0x17e7')](function(){const _0x41f9d6=_0x511816;return _0x11a92b[_0x41f9d6('0x383')][_0x41f9d6('0x1c53')]({'userProfileId':_0x218cde[_0x41f9d6('0x197c')][_0x41f9d6('0x1e76')],'sectionId':0x12d})[_0x41f9d6('0x1af5')];})[_0x511816('0x17e7')](function(_0x421723){const _0x3c5dac=_0x511816,_0x3e1c8b=_0x421723&&_0x421723[_0x3c5dac('0x2319')]?_0x421723[_0x3c5dac('0x2319')][0x0]:null;if(!_0x3e1c8b){const _0x344a55=[];let _0x31bc99=null;_0x218cde[_0x3c5dac('0x1060')]&&(_0x31bc99=_0x49cbdd()['find'](_0x218cde[_0x3c5dac('0x2504')],{'id':Number(_0x218cde[_0x3c5dac('0x1060')]['ListId'])}));for(let _0x30071f=0x0;_0x30071f<_0x218cde[_0x3c5dac('0x2504')][_0x3c5dac('0x1f73')];_0x30071f++){_0x31bc99&&_0x218cde[_0x3c5dac('0x2504')][_0x30071f]['id']===_0x31bc99['id']&&(_0x218cde[_0x3c5dac('0x2504')][_0x30071f][_0x3c5dac('0xe5c')]=![],_0x344a55[_0x3c5dac('0x269f')](_0x218cde[_0x3c5dac('0x2504')][_0x30071f]));}_0x218cde[_0x3c5dac('0x2504')]=_0x344a55;}else{if(!_0x3e1c8b[_0x3c5dac('0x9e3')])return _0x11a92b['userProfileResource'][_0x3c5dac('0x1c53')]({'sectionId':_0x3e1c8b['id']})[_0x3c5dac('0x1af5')][_0x3c5dac('0x17e7')](function(_0x427ba7){const _0x4a1120=_0x3c5dac,_0x497dfe=_0x49cbdd()[_0x4a1120('0x787')](_0x427ba7['rows'],function(_0x4002ad){const _0x3ead9d=_0x4a1120;return _0x49cbdd()['find'](_0x218cde[_0x3ead9d('0x2504')],{'id':_0x4002ad[_0x3ead9d('0x5db')]});});let _0x4432b9=null;_0x218cde[_0x4a1120('0x1060')]&&(_0x4432b9=_0x49cbdd()[_0x4a1120('0xe8e')](_0x218cde[_0x4a1120('0x2504')],{'id':Number(_0x218cde['smsAccount'][_0x4a1120('0x7f8')])}));if(_0x4432b9&&!_0x49cbdd()[_0x4a1120('0x26f8')](_0x497dfe,['id',_0x4432b9['id']])){const _0x4eb3dc=_0x49cbdd()['find'](_0x218cde[_0x4a1120('0x2504')],{'id':_0x4432b9['id']});_0x4eb3dc[_0x4a1120('0xe5c')]=![],_0x497dfe['push'](_0x4eb3dc);}_0x218cde[_0x4a1120('0x2504')]=_0x497dfe;});}})['catch'](function(_0x14e979){const _0x252ad4=_0x511816;_0x1c3c83['error']({'title':_0x14e979[_0x252ad4('0x11c5')]?_0x252ad4('0x14f7')+_0x14e979[_0x252ad4('0x11c5')]+'\x20-\x20'+_0x14e979[_0x252ad4('0x1833')]:_0x252ad4('0x1630'),'msg':_0x14e979['data']?JSON[_0x252ad4('0x678')](_0x14e979['data']):_0x14e979[_0x252ad4('0x9b6')]()});});function _0x1e0504(){const _0xee13fc=_0x511816;_0x218cde['errors']=[],_0x11a92b[_0xee13fc('0x1060')][_0xee13fc('0x2439')](_0x218cde[_0xee13fc('0x1060')])[_0xee13fc('0x1af5')][_0xee13fc('0x17e7')](function(_0x4dd899){const _0x2f4d76=_0xee13fc;_0x218cde['smsAccounts'][_0x2f4d76('0x1893')](_0x4dd899[_0x2f4d76('0x16b2')]()),_0x1c3c83[_0x2f4d76('0x130d')]({'title':_0x2f4d76('0x2876'),'msg':_0x218cde['smsAccount'][_0x2f4d76('0x2aa')]?_0x218cde[_0x2f4d76('0x1060')][_0x2f4d76('0x2aa')]+_0x2f4d76('0x15a'):''}),_0x5a8608(_0x4dd899);})[_0xee13fc('0x16df')](function(_0x3d5986){const _0xcac73c=_0xee13fc;if(_0x3d5986[_0xcac73c('0x1457')]&&_0x3d5986['data'][_0xcac73c('0x73e')]&&_0x3d5986[_0xcac73c('0x1457')]['errors']['length']){_0x218cde['errors']=_0x3d5986[_0xcac73c('0x1457')]['errors']||[{'message':_0x3d5986[_0xcac73c('0x9b6')](),'type':_0xcac73c('0x2879')}];for(let _0x2a6378=0x0;_0x2a6378<_0x3d5986['data'][_0xcac73c('0x73e')][_0xcac73c('0x1f73')];_0x2a6378+=0x1){_0x1c3c83['error']({'title':_0x3d5986[_0xcac73c('0x1457')][_0xcac73c('0x73e')][_0x2a6378][_0xcac73c('0x412')],'msg':_0x3d5986['data'][_0xcac73c('0x73e')][_0x2a6378][_0xcac73c('0x1603')]});}}else _0x1c3c83[_0xcac73c('0x1db9')]({'title':_0x3d5986[_0xcac73c('0x11c5')]?_0xcac73c('0x14f7')+_0x3d5986['status']+'\x20-\x20'+_0x3d5986[_0xcac73c('0x1833')]:_0xcac73c('0x2879'),'msg':_0x3d5986['data']?JSON[_0xcac73c('0x678')](_0x3d5986[_0xcac73c('0x1457')][_0xcac73c('0x1603')]):_0x3d5986[_0xcac73c('0x9b6')]()});});}function _0x213ec8(){const _0x9b3eda=_0x511816;_0x218cde[_0x9b3eda('0x73e')]=[],_0x11a92b[_0x9b3eda('0x1060')][_0x9b3eda('0x27ba')]({'id':_0x218cde[_0x9b3eda('0x1060')]['id']},_0x218cde[_0x9b3eda('0x1060')])[_0x9b3eda('0x1af5')][_0x9b3eda('0x17e7')](function(_0x3a46ab){const _0x716b3b=_0x9b3eda,_0x151436=_0x49cbdd()[_0x716b3b('0xe8e')](_0x218cde[_0x716b3b('0x35e')],{'id':_0x3a46ab['id']});_0x151436&&_0x49cbdd()['merge'](_0x151436,_0x49cbdd()[_0x716b3b('0x230a')](_0x3a46ab[_0x716b3b('0x16b2')](),_0x49cbdd()[_0x716b3b('0x1c0f')](_0x151436))),_0x1c3c83['success']({'title':_0x716b3b('0x825'),'msg':_0x218cde['smsAccount']['name']?_0x218cde['smsAccount'][_0x716b3b('0x2aa')]+_0x716b3b('0x15ca'):''}),_0x5a8608(_0x3a46ab);})[_0x9b3eda('0x16df')](function(_0x13e9c9){const _0x189795=_0x9b3eda;if(_0x13e9c9[_0x189795('0x1457')]&&_0x13e9c9['data'][_0x189795('0x73e')]&&_0x13e9c9[_0x189795('0x1457')][_0x189795('0x73e')][_0x189795('0x1f73')]){_0x218cde[_0x189795('0x73e')]=_0x13e9c9['data'][_0x189795('0x73e')]||[{'message':_0x13e9c9[_0x189795('0x9b6')](),'type':_0x189795('0x420')}];for(let _0x2ab33a=0x0;_0x2ab33a<_0x13e9c9[_0x189795('0x1457')][_0x189795('0x73e')][_0x189795('0x1f73')];_0x2ab33a++){_0x1c3c83['error']({'title':_0x13e9c9[_0x189795('0x1457')][_0x189795('0x73e')][_0x2ab33a][_0x189795('0x412')],'msg':_0x13e9c9[_0x189795('0x1457')]['errors'][_0x2ab33a][_0x189795('0x1603')]});}}else _0x1c3c83[_0x189795('0x1db9')]({'title':_0x13e9c9[_0x189795('0x11c5')]?_0x189795('0x14f7')+_0x13e9c9[_0x189795('0x11c5')]+'\x20-\x20'+_0x13e9c9[_0x189795('0x1833')]:_0x189795('0x420'),'msg':_0x13e9c9[_0x189795('0x1457')]?JSON[_0x189795('0x678')](_0x13e9c9['data'][_0x189795('0x1603')]):_0x13e9c9[_0x189795('0x9b6')]()});});}function _0x3afb56(_0x14ffd6){const _0x4b95ab=_0x511816;_0x218cde[_0x4b95ab('0x73e')]=[];const _0x436bd0=_0x388d5f[_0x4b95ab('0x1121')]()[_0x4b95ab('0x24d3')](_0x4b95ab('0x530'))[_0x4b95ab('0xd5')](_0x4b95ab('0x1b8a'))[_0x4b95ab('0x2095')](_0x4b95ab('0x2c9'))['ok']('Delete')['cancel'](_0x4b95ab('0x1b70'))['targetEvent'](_0x14ffd6);_0x388d5f[_0x4b95ab('0x28e2')](_0x436bd0)['then'](function(){const _0x5cfe3d=_0x4b95ab;_0x11a92b[_0x5cfe3d('0x1060')][_0x5cfe3d('0x1da6')]({'id':_0x218cde[_0x5cfe3d('0x1060')]['id']})[_0x5cfe3d('0x1af5')][_0x5cfe3d('0x17e7')](function(){const _0x3fd2e2=_0x5cfe3d;_0x49cbdd()[_0x3fd2e2('0x5f3')](_0x218cde[_0x3fd2e2('0x35e')],{'id':_0x218cde[_0x3fd2e2('0x1060')]['id']}),_0x1c3c83[_0x3fd2e2('0x130d')]({'title':_0x3fd2e2('0xda5'),'msg':(_0x218cde[_0x3fd2e2('0x1060')][_0x3fd2e2('0x2aa')]||_0x3fd2e2('0x1060'))+_0x3fd2e2('0x149f')}),_0x5a8608(_0x218cde[_0x3fd2e2('0x1060')]);})[_0x5cfe3d('0x16df')](function(_0x3e928a){const _0x1b2e26=_0x5cfe3d;if(_0x3e928a[_0x1b2e26('0x1457')]&&_0x3e928a[_0x1b2e26('0x1457')][_0x1b2e26('0x73e')]&&_0x3e928a[_0x1b2e26('0x1457')][_0x1b2e26('0x73e')][_0x1b2e26('0x1f73')]){_0x218cde[_0x1b2e26('0x73e')]=_0x3e928a[_0x1b2e26('0x1457')][_0x1b2e26('0x73e')]||[{'message':_0x3e928a[_0x1b2e26('0x9b6')](),'type':'api.smsAccount.delete'}];for(let _0x398494=0x0;_0x398494<_0x3e928a[_0x1b2e26('0x1457')][_0x1b2e26('0x73e')][_0x1b2e26('0x1f73')];_0x398494++){_0x1c3c83['error']({'title':_0x3e928a['data'][_0x1b2e26('0x73e')][_0x398494][_0x1b2e26('0x412')],'msg':_0x3e928a[_0x1b2e26('0x1457')][_0x1b2e26('0x73e')][_0x398494][_0x1b2e26('0x1603')]});}}else _0x1c3c83[_0x1b2e26('0x1db9')]({'title':_0x3e928a[_0x1b2e26('0x11c5')]?_0x1b2e26('0x14f7')+_0x3e928a['status']+_0x1b2e26('0x16e4')+_0x3e928a[_0x1b2e26('0x1833')]:_0x1b2e26('0x1958'),'msg':_0x3e928a['data']?JSON[_0x1b2e26('0x678')](_0x3e928a[_0x1b2e26('0x1457')]['message']):_0x3e928a['message']||_0x3e928a['toString']()});});},function(){});}function _0x575d3a(_0x50bc3d){return _0x50bc3d===null?undefined:new Date(_0x50bc3d);}function _0x5a8608(_0x53a3e5){const _0x5af4b8=_0x511816;_0x388d5f[_0x5af4b8('0x212a')](_0x53a3e5);}}const _0x2a341d=_0x40c9e3,_0x2cb2a8=_0x4cf2bc['p']+_0x4376d8('0x31d'),_0x3745ee=_0x4cf2bc['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/amazonlex/dialog.html/dialog.html',_0x5d3e01=_0x4cf2bc['p']+_0x4376d8('0x1868'),_0x2e5c2d=_0x4cf2bc['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/close/dialog.html/dialog.html',_0x23f019=_0x4cf2bc['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/dialogflow/dialog.html/dialog.html',_0x3bbf23=_0x4cf2bc['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/apps/gotoif/dialog.html/dialog.html',_0x258f78=_0x4cf2bc['p']+_0x4376d8('0xcd8'),_0x5036ff=_0x4cf2bc['p']+_0x4376d8('0x270a'),_0x221088=_0x4cf2bc['p']+_0x4376d8('0x21eb'),_0x31d390=_0x4cf2bc['p']+_0x4376d8('0x12b'),_0x397b53=_0x4cf2bc['p']+_0x4376d8('0x2288'),_0x5c03c9=_0x4cf2bc['p']+_0x4376d8('0xf11');_0x5beab0[_0x4376d8('0x1b9c')]=[_0x4376d8('0x212e'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),'Auth'];const _0x41c067={'agent':_0x2cb2a8,'amazonlex':_0x3745ee,'autoreply':_0x5d3e01,'close':_0x2e5c2d,'dialogflow':_0x23f019,'gotoif':_0x3bbf23,'gotop':_0x258f78,'interval':_0x5036ff,'noop':_0x221088,'queue':_0x31d390,'system':_0x397b53,'tag':_0x5c03c9};function _0x5beab0(_0x4842d1,_0x2baad7,_0x240b5d,_0x3714d1,_0x1ed25f){const _0x4d836c=_0x4376d8,_0xc1e3fb=this;_0xc1e3fb[_0x4d836c('0x197c')]=_0x1ed25f['getCurrentUser'](),_0xc1e3fb[_0x4d836c('0x1060')]={},_0xc1e3fb[_0x4d836c('0x15ea')]={'count':0x0,'rows':[]},_0xc1e3fb[_0x4d836c('0x11ce')]=[],_0xc1e3fb[_0x4d836c('0x103e')],_0xc1e3fb['query']={'sort':'priority'},_0xc1e3fb[_0x4d836c('0x970')]=_0x49cbdd()[_0x4d836c('0x1ad1')](_0x49cbdd()[_0x4d836c('0x1be3')]([{'app':'Interval','appType':'interval','types':['always',_0x4d836c('0x8fa'),_0x4d836c('0x134c')],'fields':[],'isApp':![]},{'app':_0x4d836c('0x1e49'),'appType':_0x4d836c('0x1e49'),'type':_0x4d836c('0x1e49'),'icon':_0x4d836c('0x24a0'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':'Value','name':'value','type':_0x4d836c('0x132f'),'param':0x0}]},{'app':_0x4d836c('0xca8'),'appType':_0x4d836c('0xca8'),'type':_0x4d836c('0xca8'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'required':!![],'isApp':!![],'extraApi':[{'name':'variables','field':{'name':_0x4d836c('0xb0a'),'key':_0x4d836c('0x2aa')},'route':_0x4d836c('0xb0a'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x4d836c('0x1d36'),'name':'command','type':_0x4d836c('0x132f'),'required':!![],'param':0x0},{'title':_0x4d836c('0xd6a'),'name':_0x4d836c('0xb0a'),'type':_0x4d836c('0x1ecc'),'values':_0x4d836c('0xd26'),'value':_0x4d836c('0x8e2'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x4d836c('0x2576')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':_0x4d836c('0x721'),'appType':_0x4d836c('0x721'),'type':_0x4d836c('0x1fb0'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'fields':[{'title':_0x4d836c('0x182c'),'name':_0x4d836c('0x1a6d'),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x4d836c('0x7a9'),'appType':_0x4d836c('0x7a9'),'type':_0x4d836c('0x7a9'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'fields':[{'title':_0x4d836c('0x2380'),'name':_0x4d836c('0xa67'),'type':_0x4d836c('0x132f'),'required':!![],'param':0x0},{'title':_0x4d836c('0xd8b'),'name':_0x4d836c('0xd8b'),'type':_0x4d836c('0x7b8'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x4d836c('0xe9d'),'type':_0x4d836c('0x7b8'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x4d836c('0x1bd'),'appType':_0x4d836c('0x1bd'),'foreignKey':_0x4d836c('0xf53'),'type':_0x4d836c('0x1bd'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x4d836c('0x14c4'),'field':{'name':_0x4d836c('0x1bd'),'key':'name'},'route':_0x4d836c('0xdb0'),'filters':{'fields':_0x4d836c('0x960'),'sort':_0x4d836c('0x2aa'),'nolimit':!![]},'permissions':{'section':0x2bd}}],'fields':[{'title':_0x4d836c('0x1eb2'),'name':_0x4d836c('0x1bd'),'type':'apiselect','values':_0x4d836c('0x14c4'),'value':_0x4d836c('0x661'),'option':_0x4d836c('0x661'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x4d836c('0x1ceb'),'name':_0x4d836c('0xd2f'),'type':_0x4d836c('0x7b8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x4d836c('0x684'),'appType':'agent','type':_0x4d836c('0x684'),'foreignKey':_0x4d836c('0x5e5'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x4d836c('0x25ea'),'field':{'name':'agent','key':_0x4d836c('0x2aa')},'route':_0x4d836c('0x221e'),'filters':{'fields':_0x4d836c('0x12d2'),'sort':_0x4d836c('0x2aa'),'nolimit':!![],'role':_0x4d836c('0x684')},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x4d836c('0x684'),'type':_0x4d836c('0x1ecc'),'values':_0x4d836c('0x25ea'),'value':'agent.name','option':_0x4d836c('0x274e'),'required':!![],'param':0x0},{'title':_0x4d836c('0x1ceb'),'name':_0x4d836c('0xd2f'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x4d836c('0x96e'),'appType':_0x4d836c('0x96e'),'type':_0x4d836c('0x96e'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'fields':[{'title':_0x4d836c('0x12a6'),'name':_0x4d836c('0x12a6'),'type':_0x4d836c('0x2897'),'defaultValue':'1','values':[{'option':_0x4d836c('0x1432'),'value':'1'},{'option':_0x4d836c('0x768'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x4d836c('0xa46'),'name':_0x4d836c('0x132f'),'type':_0x4d836c('0x6d3'),'required':!![],'param':0x1}]},{'app':_0x4d836c('0xbc9'),'appType':_0x4d836c('0xbc9'),'type':_0x4d836c('0xbc9'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'fields':[{'title':_0x4d836c('0x16d'),'name':_0x4d836c('0x1f27'),'type':_0x4d836c('0x132f'),'required':!![],'param':0x0}]},{'app':_0x4d836c('0x1132'),'appType':_0x4d836c('0x1132'),'type':'tag','foreignKey':_0x4d836c('0x1686'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x4d836c('0x1522'),'field':{'name':'tag','key':_0x4d836c('0x2aa')},'route':'tag','filters':{'fields':_0x4d836c('0x12d2'),'sort':_0x4d836c('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x4d836c('0xe16'),'name':_0x4d836c('0x1132'),'type':_0x4d836c('0x1ecc'),'values':_0x4d836c('0x1522'),'value':_0x4d836c('0xf6b'),'option':_0x4d836c('0xf6b'),'required':!![],'param':0x0}]},{'app':'dialogflow','appType':_0x4d836c('0x2526'),'type':_0x4d836c('0x2526'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'fields':[{'title':_0x4d836c('0x1db5'),'name':_0x4d836c('0xdb5'),'type':_0x4d836c('0x132f'),'required':!![],'param':0x0},{'title':_0x4d836c('0x3e1'),'name':'language','type':_0x4d836c('0x2897'),'defaultValue':_0x4d836c('0x1ac3'),'values':[{'option':_0x4d836c('0x6db'),'value':_0x4d836c('0x2088')},{'option':_0x4d836c('0x14d0'),'value':_0x4d836c('0x1ac3')},{'option':'German','value':_0x4d836c('0x20e6')},{'option':_0x4d836c('0x2536'),'value':_0x4d836c('0x11f8')},{'option':_0x4d836c('0xf87'),'value':_0x4d836c('0x299')},{'option':_0x4d836c('0x1a76'),'value':_0x4d836c('0x1930')},{'option':_0x4d836c('0xcc2'),'value':_0x4d836c('0xeab')},{'option':'Japanese','value':_0x4d836c('0x10d4')},{'option':_0x4d836c('0x19a7'),'value':_0x4d836c('0x169e')},{'option':_0x4d836c('0x28cb'),'value':_0x4d836c('0x923')},{'option':'Norwegian','value':_0x4d836c('0x2471')},{'option':_0x4d836c('0x4cd'),'value':_0x4d836c('0x5ba')},{'option':_0x4d836c('0x22e8'),'value':_0x4d836c('0xb54')},{'option':'Russian','value':_0x4d836c('0x15bd')},{'option':_0x4d836c('0x1198'),'value':'\x27sv\x27'},{'option':'Thai','value':_0x4d836c('0x2817')},{'option':'Ukrainian','value':_0x4d836c('0x4f5')},{'option':_0x4d836c('0x14b1'),'value':_0x4d836c('0x88a')},{'option':_0x4d836c('0xac5'),'value':_0x4d836c('0x317')},{'option':_0x4d836c('0x561'),'value':_0x4d836c('0x445')}],'required':!![],'param':0x1},{'title':_0x4d836c('0x1083'),'name':'welcomemessage','type':_0x4d836c('0x6d3'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x4d836c('0x22f0'),'appType':_0x4d836c('0x22ac'),'type':_0x4d836c('0x22ac'),'icon':_0x4d836c('0x24a0'),'interval':_0x4d836c('0x20c3'),'isApp':!![],'fields':[{'title':_0x4d836c('0x27c2'),'name':_0x4d836c('0x28ab'),'type':_0x4d836c('0x132f'),'required':!![],'param':0x0},{'title':_0x4d836c('0x1900'),'name':_0x4d836c('0x2814'),'type':_0x4d836c('0x132f'),'required':!![],'param':0x1},{'title':_0x4d836c('0x2111'),'name':_0x4d836c('0x1bc2'),'type':_0x4d836c('0x6d3'),'required':!![],'param':0x2},{'title':_0x4d836c('0x3e1'),'name':_0x4d836c('0x3e1'),'type':'select','defaultValue':'\x27en\x27','values':[{'value':_0x4d836c('0x317'),'option':_0x4d836c('0x121')},{'value':_0x4d836c('0x88a'),'option':_0x4d836c('0x14b1')},{'value':_0x4d836c('0x445'),'option':'Chinese\x20(Traditional)'},{'value':_0x4d836c('0x2088'),'option':'Danish'},{'value':_0x4d836c('0x923'),'option':_0x4d836c('0x28cb')},{'value':_0x4d836c('0x1ac3'),'option':_0x4d836c('0x14d0')},{'value':_0x4d836c('0x633'),'option':_0x4d836c('0x86e')},{'value':_0x4d836c('0x23d6'),'option':_0x4d836c('0x2566')},{'value':_0x4d836c('0xf55'),'option':'English\x20(Great\x20Britain)'},{'value':_0x4d836c('0x2613'),'option':_0x4d836c('0x1b61')},{'value':_0x4d836c('0xd76'),'option':_0x4d836c('0x1a71')},{'value':'\x27fr\x27','option':_0x4d836c('0x1a76')},{'value':_0x4d836c('0x12dc'),'option':_0x4d836c('0x2713')},{'value':'\x27fr-FR\x27','option':'\x27France\x20(France)'},{'value':_0x4d836c('0x20e6'),'option':_0x4d836c('0x1b82')},{'value':_0x4d836c('0x245'),'option':_0x4d836c('0x232b')},{'value':'\x27id\x27','option':_0x4d836c('0xcc2')},{'value':'\x27it\x27','option':_0x4d836c('0x2536')},{'value':_0x4d836c('0x10d4'),'option':_0x4d836c('0x1f37')},{'value':_0x4d836c('0x169e'),'option':'Korean'},{'value':'\x27no\x27','option':_0x4d836c('0x1534')},{'value':_0x4d836c('0x13ff'),'option':'Polish'},{'value':_0x4d836c('0xfc1'),'option':_0x4d836c('0x592')},{'value':'\x27pt-PT\x27','option':'Portuguese\x20(Portugal)'},{'value':_0x4d836c('0x15bd'),'option':_0x4d836c('0x991')},{'value':'\x27es\x27','option':_0x4d836c('0xf87')},{'value':_0x4d836c('0x1075'),'option':'Spanish\x20(Latin\x20America)'},{'value':'\x27es-ES\x27','option':_0x4d836c('0x124b')},{'value':_0x4d836c('0x23a5'),'option':'Swedish'},{'value':'\x27th\x27','option':_0x4d836c('0x47d')},{'value':'\x27tr\x27','option':_0x4d836c('0x14d2')},{'value':_0x4d836c('0x4f5'),'option':_0x4d836c('0x1f20')}],'required':!![],'param':0x3},{'title':_0x4d836c('0x1083'),'name':'welcomemessage','type':_0x4d836c('0x6d3'),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':'amazonlex','appType':_0x4d836c('0x16a9'),'type':'amazonlex','icon':_0x4d836c('0x24a0'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x4d836c('0x1452'),'name':_0x4d836c('0x1452'),'type':'text','required':!![],'param':0x0},{'title':_0x4d836c('0x1a62'),'name':_0x4d836c('0x1a62'),'type':_0x4d836c('0x132f'),'required':!![],'param':0x1},{'title':_0x4d836c('0x1dcf'),'name':'lexregion','type':'select','defaultValue':_0x4d836c('0x191f'),'values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':'\x27us-east-1\x27'},{'option':_0x4d836c('0x1c81'),'value':_0x4d836c('0x1472')},{'option':_0x4d836c('0x1296'),'value':_0x4d836c('0x24a3')},{'option':'Asia\x20Pacific\x20(Sydney)','value':_0x4d836c('0x25e8')}],'required':!![],'param':0x2},{'title':_0x4d836c('0x4a'),'name':_0x4d836c('0x4a'),'type':_0x4d836c('0x132f'),'required':!![],'param':0x3},{'title':_0x4d836c('0x1083'),'name':_0x4d836c('0x1083'),'type':_0x4d836c('0x6d3'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],[_0x4d836c('0x643')]),{'isApp':![]}),_0xc1e3fb['list']={'group':{'name':_0x4d836c('0x2003'),'pull':'clone'},'animation':0x64,'sort':![]},_0xc1e3fb['applications']={'group':{'name':_0x4d836c('0x22e2'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x21df3f){const _0x5199c0=_0x4d836c;_0x4a4964(_0x21df3f,_0x21df3f[_0x5199c0('0xf0c')]);},'onSort':function(){_0x293801();}},_0xc1e3fb[_0x4d836c('0x161d')]=_0x52f944,_0xc1e3fb[_0x4d836c('0x1a20')]=_0x477f98,_0xc1e3fb['getSmsAccountApps']=_0x7cbfe6,_0xc1e3fb[_0x4d836c('0x77f')]=_0x4a4964,_0xc1e3fb['editInterval']=_0x5b4431,_0xc1e3fb[_0x4d836c('0x238a')]=_0x1921d3,_0xc1e3fb[_0x4d836c('0x851')]=_0x5c2bce,_0xc1e3fb[_0x4d836c('0x107b')]=_0x293801,_0xc1e3fb[_0x4d836c('0x1a0d')]=_0x5de743;function _0x52f944(_0xc479df,_0x3df92e){const _0x4a3991=_0x4d836c;_0xc1e3fb[_0x4a3991('0x1060')]=_0xc479df,_0xc1e3fb[_0x4a3991('0x103e')]=typeof _0x3df92e!==_0x4a3991('0xfad')?_0x3df92e:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xc1e3fb['applications'][_0x4a3991('0xc3c')]=!_0xc1e3fb['crudPermissions'][_0x4a3991('0x1d34')]?!![]:![],_0xc1e3fb[_0x4a3991('0x826')]['id']=_0xc479df['id'],_0xc1e3fb['query'][_0x4a3991('0xb08')]=!![],_0xc1e3fb['query'][_0x4a3991('0x24c6')]=!![],_0xc1e3fb[_0x4a3991('0x18b7')](),_0xc1e3fb[_0x4a3991('0x1a0d')]();}function _0x477f98(_0x87dad7,_0x31ca21,_0x911309){const _0x5a1fbd=_0x4d836c,_0x4e4b44=_0x2baad7['confirm']()[_0x5a1fbd('0x24d3')](_0x5a1fbd('0x804'))[_0x5a1fbd('0x211f')](_0x5a1fbd('0xa53')+_0x87dad7[_0x5a1fbd('0x643')]+_0x5a1fbd('0x1d23')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5a1fbd('0x37b'))[_0x5a1fbd('0x104f')](_0x911309)['ok']('OK')['cancel'](_0x5a1fbd('0x28a0'));_0x2baad7[_0x5a1fbd('0x28e2')](_0x4e4b44)['then'](function(){const _0xa5f2d9=_0x5a1fbd;_0xc1e3fb[_0xa5f2d9('0x15ea')]['rows'][_0xa5f2d9('0x2335')](_0x31ca21,0x1),_0x293801();},function(){const _0xd2522a=_0x5a1fbd;console[_0xd2522a('0x1d63')](_0xd2522a('0x28a0'));});}function _0x4a4964(_0x1f80a5,_0x58f896){const _0x307f6d=_0x4d836c;if(_0xc1e3fb[_0x307f6d('0x15ea')][_0x307f6d('0x2319')][_0x307f6d('0x1f73')]){const _0x4141c2=_0xc1e3fb[_0x307f6d('0x15ea')][_0x307f6d('0x2319')][_0x58f896]?_0xc1e3fb[_0x307f6d('0x15ea')]['rows'][_0x58f896]:_0xc1e3fb[_0x307f6d('0x15ea')][_0x307f6d('0x2319')][0x0],_0x59ef38=(_0x4141c2['appType']||_0x4141c2['app'])[_0x307f6d('0x19b')]();_0x2baad7['show']({'controller':_0x307f6d('0x20b4')+_0x59ef38+_0x307f6d('0x1553'),'controllerAs':'vm','templateUrl':_0x41c067[_0x59ef38],'parent':angular['element'](_0x240b5d[_0x307f6d('0x13aa')]),'targetEvent':_0x1f80a5,'clickOutsideToClose':!![],'locals':{'smsAccountApp':_0x4141c2,'smsAccount':_0xc1e3fb[_0x307f6d('0x1060')],'crudPermissions':_0xc1e3fb['crudPermissions']}})[_0x307f6d('0x17e7')](function(_0x4c5731){const _0x4b034a=_0x307f6d;_0x4c5731&&(_0x4c5731['id']?_0xc1e3fb[_0x4b034a('0x15ea')][_0x4b034a('0x2319')][_0x58f896]=_0x4c5731:_0xc1e3fb[_0x4b034a('0x15ea')][_0x4b034a('0x2319')]['splice'](_0x58f896,0x0,_0x4c5731),_0x293801());})[_0x307f6d('0x16df')](function(_0xa9ebf0){const _0x2c5074=_0x307f6d;_0xa9ebf0&&_0x3714d1['error']({'title':_0xa9ebf0[_0x2c5074('0x11c5')]?_0x2c5074('0x14f7')+_0xa9ebf0[_0x2c5074('0x11c5')]+_0x2c5074('0x16e4')+_0xa9ebf0[_0x2c5074('0x1833')]:_0x2c5074('0x2514'),'msg':_0xa9ebf0[_0x2c5074('0x1457')]?JSON[_0x2c5074('0x678')](_0xa9ebf0[_0x2c5074('0x1457')]):_0xa9ebf0['toString']()});});}}function _0x5b4431(_0x3e7a39,_0x2f1e3a){const _0x55d9bd=_0x4d836c;if(_0xc1e3fb[_0x55d9bd('0x15ea')]['rows'][_0x55d9bd('0x1f73')]){const _0xb88210=_0xc1e3fb[_0x55d9bd('0x15ea')][_0x55d9bd('0x2319')][_0x2f1e3a]?_0xc1e3fb[_0x55d9bd('0x15ea')][_0x55d9bd('0x2319')][_0x2f1e3a]:_0xc1e3fb[_0x55d9bd('0x15ea')][_0x55d9bd('0x2319')][0x0];_0x2baad7['show']({'controller':_0x55d9bd('0x2500'),'controllerAs':'vm','templateUrl':_0x5036ff,'parent':angular[_0x55d9bd('0x1ce1')](_0x240b5d[_0x55d9bd('0x13aa')]),'targetEvent':_0x3e7a39,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xb88210[_0x55d9bd('0x231f')],'IntervalId':_0xb88210[_0x55d9bd('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0xc1e3fb[_0x55d9bd('0x103e')]}})[_0x55d9bd('0x17e7')](function(_0x520b6b){const _0x1e6424=_0x55d9bd;_0x520b6b&&(_0xb88210[_0x1e6424('0x231f')]=_0x520b6b['interval']||_0x1e6424('0x20c3'),_0xb88210[_0x1e6424('0x24a9')]=_0x520b6b['IntervalId']||null,_0x293801());});}}function _0x293801(){const _0x3cce2d=_0x4d836c;let _0x31c31d=0x1,_0x6351dd=[];for(let _0x3c4f0c=0x0;_0x3c4f0c<_0xc1e3fb[_0x3cce2d('0x15ea')][_0x3cce2d('0x2319')][_0x3cce2d('0x1f73')];_0x3c4f0c++){const _0x244cee=_0xc1e3fb['smsAccountApps'][_0x3cce2d('0x2319')][_0x3c4f0c],_0xb6e518=[],_0x5d6593=[];_0x244cee['intervals']=_0x244cee['interval']!=='*,*,*,*'?[_0x244cee[_0x3cce2d('0x231f')]]:_0x244cee['IntervalId']?_0x49cbdd()[_0x3cce2d('0x787')](_0x49cbdd()[_0x3cce2d('0x2483')](_0xc1e3fb[_0x3cce2d('0x1be1')][_0x3cce2d('0x2319')],{'IntervalId':_0x244cee[_0x3cce2d('0x24a9')]}),_0x3cce2d('0x231f')):[],_0x244cee[_0x3cce2d('0x17b3')]=_0xc1e3fb[_0x3cce2d('0x1060')][_0x3cce2d('0x17b3')],_0x244cee['exten']=_0xc1e3fb[_0x3cce2d('0x1060')][_0x3cce2d('0xee9')],_0x244cee[_0x3cce2d('0x412')]&&(_0x244cee[_0x3cce2d('0x412')]=_0x244cee[_0x3cce2d('0x412')][_0x3cce2d('0x19b')]()),_0x244cee[_0x3cce2d('0x1a6d')]=_0xb6e518[_0x3cce2d('0x1f73')]?_0x49cbdd()['last'](_0xb6e518)[_0x3cce2d('0x1a6d')]+0x1:_0x31c31d,_0x31c31d=(_0x5d6593[_0x3cce2d('0x1f73')]?_0x49cbdd()[_0x3cce2d('0x5e8')](_0x5d6593)['priority']:_0x244cee[_0x3cce2d('0x1a6d')])+0x1,_0x6351dd=_0x49cbdd()[_0x3cce2d('0xe1b')](_0x6351dd,_0xb6e518,[_0x244cee],_0x5d6593);}_0x4842d1[_0x3cce2d('0x1060')][_0x3cce2d('0x55d')]({'id':_0xc1e3fb[_0x3cce2d('0x1060')]['id']},_0x49cbdd()[_0x3cce2d('0x1be3')](_0x6351dd,'priority'))['$promise'][_0x3cce2d('0x17e7')](function(_0x1aefce){const _0xd999a6=_0x3cce2d;_0xc1e3fb['smsAccountApps'][_0xd999a6('0x2319')]=_0x1aefce[_0xd999a6('0x2319')];})['catch'](function(_0x587f35){console['error'](_0x587f35);});}function _0x4cecf3(_0x3e55f8){const _0x1503da=_0x4d836c;_0xc1e3fb[_0x1503da('0x15ea')]=_0x3e55f8||{'count':0x0,'rows':[]};}function _0x5de743(){const _0x2a71a9=_0x4d836c;return _0x4842d1[_0x2a71a9('0x231f')][_0x2a71a9('0x1c53')]({'fields':_0x2a71a9('0x828')})[_0x2a71a9('0x1af5')][_0x2a71a9('0x17e7')](function(_0x47bbd9){_0xc1e3fb['intervals']=_0x47bbd9;})['catch'](function(_0x548d95){console['error'](_0x548d95);});}function _0x7cbfe6(){const _0x590c60=_0x4d836c;_0xc1e3fb[_0x590c60('0x1691')]=_0x4842d1['smsAccount']['getApplications'](_0xc1e3fb[_0x590c60('0x826')],_0x4cecf3)[_0x590c60('0x1af5')];}function _0x1921d3(_0x3d33a6){const _0x3ed068=_0x4d836c;_0x49cbdd()[_0x3ed068('0x5f3')](_0xc1e3fb[_0x3ed068('0x15ea')][_0x3ed068('0x2319')],{'id':_0x3d33a6['id']}),_0x293801(),_0x3714d1[_0x3ed068('0x130d')]({'title':_0x3ed068('0x22bd'),'msg':_0x3d33a6[_0x3ed068('0x643')]?_0x3d33a6['app']+_0x3ed068('0x149f'):''});}function _0x5c2bce(_0x2168f0){const _0x5a0847=_0x4d836c,_0x3dd50b=_0x2baad7['confirm']()['title'](_0x5a0847('0x272a'))[_0x5a0847('0x211f')](''+_0xc1e3fb[_0x5a0847('0x11ce')][_0x5a0847('0x1f73')]+'\x20selected'+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5a0847('0x362'))[_0x5a0847('0x104f')](_0x2168f0)['ok']('OK')[_0x5a0847('0x1d47')](_0x5a0847('0x28a0'));_0x2baad7[_0x5a0847('0x28e2')](_0x3dd50b)[_0x5a0847('0x17e7')](function(){const _0x2c37b0=_0x5a0847;_0xc1e3fb[_0x2c37b0('0x11ce')]['forEach'](function(_0x14040d){const _0x2ab560=_0x2c37b0;_0x49cbdd()[_0x2ab560('0x5f3')](_0xc1e3fb[_0x2ab560('0x15ea')]['rows'],{'id':_0x14040d['id']});}),_0xc1e3fb[_0x2c37b0('0x11ce')]=[],_0x293801();});}}const _0x595e83=_0x5beab0;_0x118e75[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1060'),_0x4376d8('0x35e'),_0x4376d8('0x20c8'),'$translate',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x118e75(_0x322afd,_0x4e3b03,_0xec5631,_0x2b50f6,_0x4a746f,_0x29986a,_0x3ff512,_0x3a7d37,_0x1c1704,_0x2b9809){const _0x2082d2=_0x4376d8,_0x1d9a0b=this;_0x1d9a0b[_0x2082d2('0x197c')]=_0x1c1704[_0x2082d2('0x2831')](),_0x1d9a0b[_0x2082d2('0x1060')]=_0x4a746f,_0x1d9a0b[_0x2082d2('0x103e')]=_0x2b9809,_0x1d9a0b[_0x2082d2('0x20c8')]=_0x3ff512,_0x1d9a0b[_0x2082d2('0x532')]=[],_0x1d9a0b[_0x2082d2('0x2722')]=[],_0x1d9a0b[_0x2082d2('0xc14')]=[],_0x1d9a0b[_0x2082d2('0x181b')]=[],_0x1d9a0b[_0x2082d2('0x1824')]=[],_0x1d9a0b[_0x2082d2('0x25dc')]=![],_0x1d9a0b[_0x2082d2('0xdf0')]=_0x2d26e7,_0x1d9a0b[_0x2082d2('0x257a')]=_0x5174be,_0x1d9a0b[_0x2082d2('0x136e')]=_0x2b7e5d,_0x1d9a0b['dualMultiselectOptions']={'readOnly':!_0x1d9a0b[_0x2082d2('0x103e')][_0x2082d2('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x2082d2('0x2aa'),'line1':_0x2082d2('0xea6'),'line2':[_0x2082d2('0x2aa'),_0x2082d2('0xe3e')],'line3':'','labelAll':_0x3a7d37['instant'](_0x2082d2('0x180f')),'labelSelected':_0x3a7d37['instant'](_0x2082d2('0x1c82')),'transferCallback':function(){const _0x706782=_0x2082d2,_0x495555=_0x49cbdd()[_0x706782('0x137')](_0x1d9a0b[_0x706782('0x1824')],_0x1d9a0b[_0x706782('0xc14')],'id');_0x1d9a0b[_0x706782('0x25dc')]=_0x49cbdd()[_0x706782('0x109a')](_0x495555)?![]:!![];}};function _0x2d26e7(){const _0x16fd3c=_0x2082d2;return _0x1c1704['hasRole']('admin')?_0x4840e2()[_0x16fd3c('0x16df')](function(_0x2ec0b0){const _0x2ee4a8=_0x16fd3c;_0xec5631[_0x2ee4a8('0x1db9')]({'title':_0x2ec0b0[_0x2ee4a8('0x11c5')]?_0x2ee4a8('0x14f7')+_0x2ec0b0[_0x2ee4a8('0x11c5')]+_0x2ee4a8('0x16e4')+_0x2ec0b0[_0x2ee4a8('0x1833')]:'SYSTEM:GET_AGENTS','msg':_0x2ec0b0[_0x2ee4a8('0x11c5')]?JSON[_0x2ee4a8('0x678')](_0x2ec0b0['data']):_0x2ec0b0[_0x2ee4a8('0x9b6')]()});}):_0x453775()['then'](function(_0x9b7e0b){return _0x1d9a0b['section']=_0x9b7e0b,_0x4840e2();})[_0x16fd3c('0x16df')](function(_0x4c4c6b){const _0x2e6d03=_0x16fd3c;_0xec5631[_0x2e6d03('0x1db9')]({'title':_0x4c4c6b['status']?'API:'+_0x4c4c6b[_0x2e6d03('0x11c5')]+_0x2e6d03('0x16e4')+_0x4c4c6b['statusText']:_0x2e6d03('0x23e0'),'msg':_0x4c4c6b[_0x2e6d03('0x11c5')]?JSON[_0x2e6d03('0x678')](_0x4c4c6b['data']):_0x4c4c6b[_0x2e6d03('0x9b6')]()});});}function _0x453775(){return _0x4e3b03(function(_0x440a81,_0x99980d){const _0x1dff65=a0_0xd29e;_0x2b50f6[_0x1dff65('0x383')][_0x1dff65('0x1c53')]({'userProfileId':_0x1d9a0b[_0x1dff65('0x197c')][_0x1dff65('0x1e76')],'name':_0x1dff65('0x2157')})[_0x1dff65('0x1af5')][_0x1dff65('0x17e7')](function(_0xd4cd7f){const _0x585f9a=_0x1dff65,_0x502a41=_0xd4cd7f&&_0xd4cd7f[_0x585f9a('0x2319')]?_0xd4cd7f['rows'][0x0]:null;_0x440a81(_0x502a41);})[_0x1dff65('0x16df')](function(_0x1fb7c3){_0x99980d(_0x1fb7c3);});});}function _0x4840e2(){return _0x4e3b03(function(_0x3a2902,_0x28b060){const _0x2233bb=a0_0xd29e;return _0xb6236()['then'](function(_0x53d18d){const _0xd6c61d=a0_0xd29e;return _0x1d9a0b[_0xd6c61d('0x532')]=_0x53d18d[_0xd6c61d('0x2319')]?_0x53d18d[_0xd6c61d('0x2319')]:[],_0x1c1704[_0xd6c61d('0x1ba2')](_0xd6c61d('0x20bf'))?_0x53d18d:_0x1d9a0b[_0xd6c61d('0x16f8')]?_0x1d9a0b['section']['autoAssociation']?_0x53d18d:_0x53c9fc():null;})['then'](function(_0x58a84c){const _0x3621e8=a0_0xd29e,_0x10e3f6=_0x58a84c&&_0x58a84c[_0x3621e8('0x2319')]?_0x58a84c['rows']:[];return _0x1d9a0b[_0x3621e8('0x2722')]=_0x49cbdd()[_0x3621e8('0x787')](_0x10e3f6,function(_0x3c351d){const _0x190827=_0x3621e8;return _0x49cbdd()[_0x190827('0xe8e')](_0x1d9a0b[_0x190827('0x532')],{'id':_0x1c1704['hasRole']('admin')||_0x1d9a0b[_0x190827('0x16f8')][_0x190827('0x9e3')]?_0x3c351d['id']:_0x3c351d['resourceId']});}),_0x1d9a0b[_0x3621e8('0x181b')]=angular['copy'](_0x1d9a0b[_0x3621e8('0x2722')]),_0x1d9a0b['items'][_0x3621e8('0xccd')](function(_0x59b686){const _0x4485fe=_0x3621e8,_0x38e050=_0x49cbdd()['find'](_0x1d9a0b[_0x4485fe('0x2722')],{'id':_0x59b686['id']});_0x1c1704[_0x4485fe('0x1ba2')]('admin')?_0x59b686[_0x4485fe('0xc98')]=!![]:_0x59b686[_0x4485fe('0xc98')]=typeof _0x38e050!==_0x4485fe('0xfad')?!![]:![];}),_0x5d14eb();})[_0x2233bb('0x17e7')](function(_0x320da1){const _0x51767c=_0x2233bb,_0x1727d5=_0x320da1&&_0x320da1[_0x51767c('0x2319')]?_0x320da1[_0x51767c('0x2319')]:[];_0x1d9a0b[_0x51767c('0xc14')]=_0x49cbdd()[_0x51767c('0x787')](_0x1727d5,function(_0x4d2954){const _0x58457f=_0x51767c,_0x20d62f=_0x49cbdd()[_0x58457f('0xe8e')](_0x1d9a0b[_0x58457f('0x532')],{'id':_0x4d2954['id']});return _0x20d62f[_0x58457f('0x122c')]=_0x4d2954['UserSmsAccount']?_0x58457f('0x973')+_0x4d2954[_0x58457f('0x152a')][_0x58457f('0x122c')]:'',_0x20d62f[_0x58457f('0xe3e')]=typeof _0x4d2954['internal']!==_0x58457f('0xfad')?'<'+_0x4d2954[_0x58457f('0xe3e')]+'>':'',_0x20d62f;}),_0x1d9a0b['startingSelectedItems']=angular[_0x51767c('0x14e5')](_0x1d9a0b[_0x51767c('0xc14')]),_0x1d9a0b[_0x51767c('0x26f4')][_0x51767c('0xc14')]=_0x1d9a0b[_0x51767c('0xc14')],_0x1d9a0b[_0x51767c('0x26f4')][_0x51767c('0x532')]=_0x49cbdd()[_0x51767c('0x1ada')](_0x1d9a0b[_0x51767c('0x2722')],_0x1d9a0b[_0x51767c('0x26f4')][_0x51767c('0xc14')],'id'),_0x3a2902();})[_0x2233bb('0x16df')](function(_0x6050ef){_0x28b060(_0x6050ef);});});}function _0x53c9fc(){return _0x4e3b03(function(_0x3121c7,_0x42ad38){const _0x122880=a0_0xd29e;return _0x2b50f6[_0x122880('0x78d')]['get']({'sectionId':_0x1d9a0b['section']['id'],'nolimit':!![]})['$promise']['then'](function(_0x117425){_0x3121c7(_0x117425);})[_0x122880('0x16df')](function(_0x361290){_0x42ad38(_0x361290);});});}function _0x5d14eb(){return _0x4e3b03(function(_0x3204ff,_0x50856a){const _0x2e041d=a0_0xd29e;return _0x2b50f6[_0x2e041d('0x1060')][_0x2e041d('0x1dac')]({'id':_0x1d9a0b[_0x2e041d('0x1060')]['id'],'fields':_0x2e041d('0x1152'),'nolimit':!![],'role':'agent'})[_0x2e041d('0x1af5')][_0x2e041d('0x17e7')](function(_0x3f65de){_0x3204ff(_0x3f65de);})[_0x2e041d('0x16df')](function(_0x5c3431){_0x50856a(_0x5c3431);});});}function _0xb6236(){return _0x4e3b03(function(_0x3cc3eb,_0x5a04a0){const _0x400dd1=a0_0xd29e;return _0x2b50f6[_0x400dd1('0x221e')][_0x400dd1('0x1c53')]({'fields':_0x400dd1('0x1152'),'nolimit':!![],'role':_0x400dd1('0x684')})[_0x400dd1('0x1af5')][_0x400dd1('0x17e7')](function(_0x1f16d5){_0x3cc3eb(_0x1f16d5);})[_0x400dd1('0x16df')](function(_0x279737){_0x5a04a0(_0x279737);});});}function _0x2c6a61(_0x248409){return _0x4e3b03(function(_0x15e965,_0x490df4){const _0x2ffcdc=a0_0xd29e;_0x49cbdd()[_0x2ffcdc('0x109a')](_0x248409)?_0x15e965():_0x2b50f6[_0x2ffcdc('0x1060')][_0x2ffcdc('0x1f22')]({'id':_0x1d9a0b[_0x2ffcdc('0x1060')]['id'],'ids':_0x49cbdd()[_0x2ffcdc('0x787')](_0x248409,'id')})[_0x2ffcdc('0x1af5')][_0x2ffcdc('0x17e7')](function(){_0x15e965();})[_0x2ffcdc('0x16df')](function(_0x2fe35a){_0x490df4(_0x2fe35a);});});}function _0x4d1c90(_0x7164d0){return _0x4e3b03(function(_0x480f05,_0x4a4528){const _0x17cf26=a0_0xd29e;_0x49cbdd()[_0x17cf26('0x109a')](_0x7164d0)?_0x480f05():_0x2b50f6[_0x17cf26('0x1060')]['removeAgents']({'id':_0x1d9a0b[_0x17cf26('0x1060')]['id'],'ids':_0x49cbdd()[_0x17cf26('0x787')](_0x7164d0,'id')})[_0x17cf26('0x1af5')]['then'](function(){_0x480f05();})[_0x17cf26('0x16df')](function(_0x19899c){_0x4a4528(_0x19899c);});});}function _0x5174be(){const _0x2656d1=_0x2082d2,_0x3826e4=_0x49cbdd()[_0x2656d1('0x1ada')](_0x1d9a0b[_0x2656d1('0x1824')],_0x1d9a0b[_0x2656d1('0xc14')],'id'),_0x4b9fa2=_0x49cbdd()[_0x2656d1('0x1ada')](_0x1d9a0b[_0x2656d1('0xc14')],_0x1d9a0b[_0x2656d1('0x1824')],'id');return _0x4d1c90(_0x3826e4)[_0x2656d1('0x17e7')](function(){return _0x2c6a61(_0x4b9fa2);})[_0x2656d1('0x17e7')](function(){const _0xbe102c=_0x2656d1;_0x1d9a0b[_0xbe102c('0x25dc')]=![],_0x1d9a0b[_0xbe102c('0x181b')]=angular[_0xbe102c('0x14e5')](_0x1d9a0b[_0xbe102c('0x2722')]),_0x1d9a0b[_0xbe102c('0x1824')]=angular['copy'](_0x1d9a0b[_0xbe102c('0xc14')]),_0xec5631[_0xbe102c('0x130d')]({'title':'SUCCESS','msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0x2656d1('0x16df')](function(_0xbd2cf5){const _0x4810ce=_0x2656d1;_0xec5631['error']({'title':_0xbd2cf5[_0x4810ce('0x11c5')]?_0x4810ce('0x14f7')+_0xbd2cf5[_0x4810ce('0x11c5')]+'\x20-\x20'+_0xbd2cf5['statusText']:_0x4810ce('0x244e'),'msg':_0xbd2cf5[_0x4810ce('0x11c5')]?JSON['stringify'](_0xbd2cf5[_0x4810ce('0x1457')]):_0xbd2cf5[_0x4810ce('0x9b6')]()});});}function _0x2b7e5d(){const _0x557ce9=_0x2082d2;_0x322afd[_0x557ce9('0x212a')]();}}const _0x5a72a4=_0x118e75;_0x3cd546[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x168'),_0x4376d8('0x1060'),'api',_0x4376d8('0x1885'),'crudPermissions'];function _0x3cd546(_0x49be41,_0x47bc55,_0xe2cb7a,_0x24478a,_0x3e0923,_0x18d24e,_0x26d867,_0x2ee3c3){const _0x498e91=_0x4376d8,_0x1f3daa=this;_0x1f3daa[_0x498e91('0x197c')]=_0x26d867[_0x498e91('0x2831')](),_0x1f3daa[_0x498e91('0x73e')]=[],_0x1f3daa[_0x498e91('0x24d3')]=_0x498e91('0x1773')+(_0x24478a['appType']||_0x24478a[_0x498e91('0x643')])[_0x498e91('0x14e2')](),_0x1f3daa[_0x498e91('0x684')]=angular[_0x498e91('0x14e5')](_0x24478a),_0x1f3daa['crudPermissions']=_0x2ee3c3,_0x1f3daa['hasModulePermissions']={};if(_0x1f3daa['agent'][_0x498e91('0x2077')])switch(_0x1f3daa[_0x498e91('0x684')]['appType']?_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x1c54')][_0x498e91('0x19b')]():_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x643')][_0x498e91('0x19b')]()){case'custom':break;case _0x498e91('0x2526'):{const _0x33e726=_0x1f3daa[_0x498e91('0x684')]['appdata'][_0x498e91('0x2007')](',');_0x1f3daa[_0x498e91('0x684')][_0x498e91('0xdb5')]=_0x33e726[0x0],_0x1f3daa['agent'][_0x498e91('0x3e1')]=_0x33e726[0x1],_0x1f3daa[_0x498e91('0x684')]['welcomemessage']=_0x33e726['slice'](0x2,_0x33e726[_0x498e91('0x1f73')])[_0x498e91('0x1eba')](',');}break;case _0x498e91('0x22ac'):{const _0x420ee3=_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x2077')][_0x498e91('0x2007')](',');_0x1f3daa['agent']['projectId']=_0x420ee3[0x0],_0x1f3daa['agent']['clientEmail']=_0x420ee3[0x1],_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x1bc2')]=_0x420ee3[0x2],_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x3e1')]=_0x420ee3[0x3],_0x1f3daa[_0x498e91('0x684')]['welcomemessage']=_0x420ee3['slice'](0x4,_0x420ee3[_0x498e91('0x1f73')])[_0x498e91('0x1eba')](',');}break;case _0x498e91('0x16a9'):{const _0x1ce303=_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x2077')][_0x498e91('0x2007')](',');_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x1452')]=_0x1ce303[0x0],_0x1f3daa['agent']['secretaccesskey']=_0x1ce303[0x1],_0x1f3daa['agent'][_0x498e91('0x1dcf')]=_0x1ce303[0x2],_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x4a')]=_0x1ce303[0x3],_0x1f3daa['agent'][_0x498e91('0x1083')]=_0x1ce303[_0x498e91('0x275f')](0x4,_0x1ce303['length'])[_0x498e91('0x1eba')](',');}break;case'autoreply':{const _0x20bc37=_0x1f3daa[_0x498e91('0x684')]['appdata'][_0x498e91('0x2007')](',');_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x12a6')]=isNaN(_0x20bc37[0x0])?_0x20bc37[0x0]:parseInt(_0x20bc37[0x0],0xa),_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x132f')]=_0x20bc37[_0x498e91('0x275f')](0x1,_0x20bc37[_0x498e91('0x1f73')])[_0x498e91('0x1eba')](',');}break;case'message':_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x132f')]=_0x1f3daa['agent']['appdata'];break;case _0x498e91('0xf2e'):_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x2aa')]=_0x1f3daa['agent'][_0x498e91('0x2077')][_0x498e91('0x2007')]('=')[0x0],_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x175b')]=_0x1f3daa[_0x498e91('0x684')]['appdata'][_0x498e91('0x2007')]('=')[0x1];break;case _0x498e91('0x17c6'):_0x1f3daa['agent'][_0x498e91('0x87c')]=_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x2077')];break;default:{const _0x45e948=_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x2077')][_0x498e91('0x2007')](',');_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x684')]=_0x49cbdd()[_0x498e91('0x109a')](_0x45e948[0x0])?_0x45e948[0x0]:isNaN(_0x45e948[0x0])?_0x45e948[0x0]:parseInt(_0x45e948[0x0],0xa),_0x1f3daa['agent'][_0x498e91('0xd2f')]=_0x49cbdd()[_0x498e91('0x109a')](_0x45e948[0x1])?_0x45e948[0x1]:isNaN(_0x45e948[0x1])?_0x45e948[0x1]:parseInt(_0x45e948[0x1],0xa);}break;}else _0x1f3daa[_0x498e91('0x684')]['timeout']=0x1e;_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x412')]&&_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x412')][_0x498e91('0x19b')]()==='outbound'&&_0x1f3daa['agent']['appType'][_0x498e91('0x19b')]()===_0x498e91('0x1711')&&(_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x11d4')]=_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x2154')]?_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x2154')][_0x498e91('0x2007')]('$')[0x0]:undefined,_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x1a8e')]=_0x1f3daa[_0x498e91('0x684')][_0x498e91('0x17f4')]?_0x498e91('0x1d28')+_0x1f3daa[_0x498e91('0x684')]['callerID']:undefined);_0x1f3daa['saveSmsAccountApp']=_0x20a27a,_0x1f3daa['closeDialog']=_0x555004,_0x26d867['hasRole']('admin')?_0x18d24e['user'][_0x498e91('0x1c53')]({'fields':_0x498e91('0x12d2'),'sort':_0x498e91('0x2aa'),'nolimit':'true','role':'agent'})[_0x498e91('0x1af5')][_0x498e91('0x17e7')](function(_0x4141f0){const _0x5bea9f=_0x498e91;_0x1f3daa[_0x5bea9f('0x25ea')]=_0x4141f0[_0x5bea9f('0x2319')]||[];})[_0x498e91('0x16df')](function(_0x1d6e5a){const _0x22984d=_0x498e91;_0xe2cb7a[_0x22984d('0x1db9')]({'title':_0x1d6e5a[_0x22984d('0x11c5')]?'API:'+_0x1d6e5a[_0x22984d('0x11c5')]+_0x22984d('0x16e4')+_0x1d6e5a[_0x22984d('0x1833')]:_0x22984d('0x23e0'),'msg':_0x1d6e5a[_0x22984d('0x1457')]?JSON[_0x22984d('0x678')](_0x1d6e5a[_0x22984d('0x1457')]):_0x1d6e5a['toString']()});}):_0x18d24e[_0x498e91('0x221e')][_0x498e91('0x1c53')]({'fields':_0x498e91('0x12d2'),'sort':_0x498e91('0x2aa'),'nolimit':_0x498e91('0xe34'),'role':_0x498e91('0x684')})[_0x498e91('0x1af5')][_0x498e91('0x17e7')](function(_0x3d050b){const _0x1d37dc=_0x498e91;_0x1f3daa[_0x1d37dc('0x25ea')]=_0x3d050b[_0x1d37dc('0x2319')]||[];})[_0x498e91('0x17e7')](function(){const _0x11fbb4=_0x498e91;return _0x18d24e[_0x11fbb4('0x383')]['get']({'userProfileId':_0x1f3daa[_0x11fbb4('0x197c')]['userProfileId'],'sectionId':0xca})['$promise'];})[_0x498e91('0x17e7')](function(_0x394dab){const _0xb43d8e=_0x498e91,_0x231979=_0x394dab&&_0x394dab[_0xb43d8e('0x2319')]?_0x394dab[_0xb43d8e('0x2319')][0x0]:null;if(!_0x231979){const _0x559b47=[];let _0x2ddd5a=null;_0x1f3daa[_0xb43d8e('0x684')]&&(_0x2ddd5a=_0x49cbdd()['find'](_0x1f3daa[_0xb43d8e('0x25ea')],{'name':_0x1f3daa[_0xb43d8e('0x684')][_0xb43d8e('0x684')]}));for(let _0x2ccb02=0x0;_0x2ccb02<_0x1f3daa[_0xb43d8e('0x25ea')]['length'];_0x2ccb02++){_0x2ddd5a&&_0x1f3daa['agents'][_0x2ccb02]['id']===_0x2ddd5a['id']&&(_0x1f3daa[_0xb43d8e('0x25ea')][_0x2ccb02]['canSelect']=![],_0x559b47['push'](_0x1f3daa['agents'][_0x2ccb02]));}_0x1f3daa[_0xb43d8e('0x25ea')]=_0x559b47;}else{if(!_0x231979[_0xb43d8e('0x9e3')])return _0x18d24e['userProfileResource'][_0xb43d8e('0x1c53')]({'sectionId':_0x231979['id']})[_0xb43d8e('0x1af5')][_0xb43d8e('0x17e7')](function(_0x1d535a){const _0xb5d7e=_0xb43d8e,_0x5d1b60=_0x49cbdd()[_0xb5d7e('0x787')](_0x1d535a['rows'],function(_0x2648bf){const _0x323e3f=_0xb5d7e;return _0x49cbdd()[_0x323e3f('0xe8e')](_0x1f3daa[_0x323e3f('0x25ea')],{'id':_0x2648bf['resourceId']});});let _0x411c66=null;_0x1f3daa[_0xb5d7e('0x684')]&&(_0x411c66=_0x49cbdd()[_0xb5d7e('0xe8e')](_0x1f3daa['agents'],{'name':_0x1f3daa[_0xb5d7e('0x684')][_0xb5d7e('0x684')]}));if(_0x411c66&&!_0x49cbdd()['some'](_0x5d1b60,['id',_0x411c66['id']])){const _0x598f70=_0x49cbdd()[_0xb5d7e('0xe8e')](_0x1f3daa[_0xb5d7e('0x25ea')],{'id':_0x411c66['id']});_0x598f70[_0xb5d7e('0xe5c')]=![],_0x5d1b60[_0xb5d7e('0x269f')](_0x598f70);}_0x1f3daa[_0xb5d7e('0x25ea')]=_0x5d1b60;});}})[_0x498e91('0x16df')](function(_0x56b64e){const _0x54f262=_0x498e91;_0xe2cb7a[_0x54f262('0x1db9')]({'title':_0x56b64e[_0x54f262('0x11c5')]?_0x54f262('0x14f7')+_0x56b64e['status']+'\x20-\x20'+_0x56b64e[_0x54f262('0x1833')]:_0x54f262('0xa37'),'msg':_0x56b64e['data']?JSON[_0x54f262('0x678')](_0x56b64e[_0x54f262('0x1457')]):_0x56b64e[_0x54f262('0x9b6')]()});});function _0x20a27a(){const _0x4575f4=_0x498e91;_0x1f3daa['errors']=[];const _0x3c7c59=[];_0x1f3daa['agent']['type']&&_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x412')][_0x4575f4('0x19b')]()===_0x4575f4('0x1ade')&&_0x1f3daa['agent']['appType']==='outboundDial'&&(_0x1f3daa['agent']['phone']=_0x3e0923[_0x4575f4('0x12af')]?(_0x1f3daa[_0x4575f4('0x684')]['prefix']||'')+_0x4575f4('0x2265')+_0x3e0923[_0x4575f4('0x12af')]+'}':(_0x1f3daa['agent'][_0x4575f4('0x11d4')]||'')+_0x4575f4('0x150e'),_0x3e0923[_0x4575f4('0x287')]!==_0x4575f4('0x7ee')?_0x1f3daa[_0x4575f4('0x684')]['options']['indexOf'](_0x4575f4('0xa22'))<0x0&&(_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x19')]+=_0x4575f4('0xa22')):_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x19')]=_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x19')]['replace'](_0x4575f4('0xa22'),''));const _0xc0db45=_0x49cbdd()[_0x4575f4('0xe8e')](_0x1f3daa[_0x4575f4('0x25ea')],{'name':_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x684')]});_0xc0db45&&(_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x5e5')]=_0xc0db45['id']);if(_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x1c54')]&&_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x1c54')]==='custom'){}else switch((_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x643')]||_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x1c54')])['toLowerCase']()){case _0x4575f4('0xf2e'):_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x2077')]=_0x1f3daa['agent']['name']+'='+_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x175b')];break;case _0x4575f4('0x8fa'):break;default:_0x3c7c59[0x0]=_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x684')],_0x3c7c59[0x1]=_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0xd2f')],_0x1f3daa[_0x4575f4('0x684')][_0x4575f4('0x2077')]=_0x3c7c59[_0x4575f4('0x1eba')](',');}_0x555004(_0x1f3daa['agent']);}function _0x555004(_0x87951b){const _0x41b248=_0x498e91;_0x49be41[_0x41b248('0x212a')](_0x87951b);}}const _0x195576=_0x3cd546;_0x5988c5['$inject']=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x168'),_0x4376d8('0x1060'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x5988c5(_0xe0991,_0x4f77bf,_0x51d4fc,_0x594ff2,_0x2280a8,_0x91ba2c,_0x4a10af,_0x4e9f8c){const _0x852dba=_0x4376d8,_0x16109b=this;_0x16109b[_0x852dba('0x197c')]=_0x4a10af[_0x852dba('0x2831')](),_0x16109b[_0x852dba('0x73e')]=[],_0x16109b[_0x852dba('0x24d3')]='SMS.EDIT_'+(_0x594ff2[_0x852dba('0x1c54')]||_0x594ff2[_0x852dba('0x643')])['toUpperCase'](),_0x16109b['amazonlex']=angular['copy'](_0x594ff2),_0x16109b['crudPermissions']=_0x4e9f8c,_0x16109b[_0x852dba('0x6ee')]={};if(_0x16109b[_0x852dba('0x16a9')]['appdata'])switch(_0x16109b[_0x852dba('0x16a9')]['appType']?_0x16109b['amazonlex'][_0x852dba('0x1c54')][_0x852dba('0x19b')]():_0x16109b[_0x852dba('0x16a9')]['app']['toLowerCase']()){case _0x852dba('0x8fa'):break;case _0x852dba('0x2526'):{const _0x396efe=_0x16109b['amazonlex'][_0x852dba('0x2077')][_0x852dba('0x2007')](',');_0x16109b[_0x852dba('0x16a9')][_0x852dba('0xdb5')]=_0x396efe[0x0],_0x16109b['amazonlex'][_0x852dba('0x3e1')]=_0x396efe[0x1],_0x16109b[_0x852dba('0x16a9')]['welcomemessage']=_0x396efe['slice'](0x2,_0x396efe[_0x852dba('0x1f73')])[_0x852dba('0x1eba')](',');}break;case _0x852dba('0x22ac'):{const _0xa45938=_0x16109b[_0x852dba('0x16a9')]['appdata'][_0x852dba('0x2007')](',');_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x28ab')]=_0xa45938[0x0],_0x16109b[_0x852dba('0x16a9')]['clientEmail']=_0xa45938[0x1],_0x16109b[_0x852dba('0x16a9')]['privateKey']=_0xa45938[0x2],_0x16109b['amazonlex'][_0x852dba('0x3e1')]=_0xa45938[0x3],_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x1083')]=_0xa45938['slice'](0x4,_0xa45938['length'])[_0x852dba('0x1eba')](',');}break;case _0x852dba('0x16a9'):{const _0x99d8e0=_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x2077')][_0x852dba('0x2007')](',');_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x1452')]=_0x99d8e0[0x0],_0x16109b['amazonlex']['secretaccesskey']=_0x99d8e0[0x1],_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x1dcf')]=_0x99d8e0[0x2],_0x16109b['amazonlex']['botname']=_0x99d8e0[0x3],_0x16109b['amazonlex']['welcomemessage']=_0x99d8e0[_0x852dba('0x275f')](0x4,_0x99d8e0['length'])[_0x852dba('0x1eba')](',');}break;case _0x852dba('0x96e'):{const _0x15a6eb=_0x16109b[_0x852dba('0x16a9')]['appdata'][_0x852dba('0x2007')](',');_0x16109b['amazonlex'][_0x852dba('0x12a6')]=isNaN(_0x15a6eb[0x0])?_0x15a6eb[0x0]:parseInt(_0x15a6eb[0x0],0xa),_0x16109b['amazonlex'][_0x852dba('0x132f')]=_0x15a6eb[_0x852dba('0x275f')](0x1,_0x15a6eb[_0x852dba('0x1f73')])['join'](',');}break;case'message':_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x132f')]=_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x2077')];break;case _0x852dba('0xf2e'):_0x16109b['amazonlex']['name']=_0x16109b[_0x852dba('0x16a9')]['appdata'][_0x852dba('0x2007')]('=')[0x0],_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x175b')]=_0x16109b[_0x852dba('0x16a9')]['appdata'][_0x852dba('0x2007')]('=')[0x1];break;case _0x852dba('0x17c6'):_0x16109b[_0x852dba('0x16a9')]['project']=_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x2077')];break;default:{const _0x167ba1=_0x16109b['amazonlex']['appdata'][_0x852dba('0x2007')](',');_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x1452')]=_0x49cbdd()['isEmpty'](_0x167ba1[0x0])?_0x167ba1[0x0]:isNaN(_0x167ba1[0x0])?_0x167ba1[0x0]:parseInt(_0x167ba1[0x0],0xa),_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x1a62')]=_0x49cbdd()[_0x852dba('0x109a')](_0x167ba1[0x1])?_0x167ba1[0x1]:isNaN(_0x167ba1[0x1])?_0x167ba1[0x1]:parseInt(_0x167ba1[0x1],0xa),_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x1dcf')]=_0x49cbdd()[_0x852dba('0x109a')](_0x167ba1[0x2])?_0x167ba1[0x2]:isNaN(_0x167ba1[0x2])?_0x167ba1[0x2]:parseInt(_0x167ba1[0x2],0xa),_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x4a')]=_0x49cbdd()['isEmpty'](_0x167ba1[0x3])?_0x167ba1[0x3]:isNaN(_0x167ba1[0x3])?_0x167ba1[0x3]:parseInt(_0x167ba1[0x3],0xa),_0x16109b['amazonlex']['welcomemessage']=_0x49cbdd()['isEmpty'](_0x167ba1[0x4])?_0x167ba1[0x4]:isNaN(_0x167ba1[0x4])?_0x167ba1[0x4]:parseInt(_0x167ba1[0x4],0xa);}break;}else _0x16109b[_0x852dba('0x16a9')][_0x852dba('0x1dcf')]=_0x852dba('0xf85');_0x16109b[_0x852dba('0x16a9')]['type']&&_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x412')][_0x852dba('0x19b')]()===_0x852dba('0x1ade')&&_0x16109b['amazonlex'][_0x852dba('0x1c54')][_0x852dba('0x19b')]()==='outbounddial'&&(_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x11d4')]=_0x16109b['amazonlex'][_0x852dba('0x2154')]?_0x16109b['amazonlex'][_0x852dba('0x2154')][_0x852dba('0x2007')]('$')[0x0]:undefined,_0x16109b['amazonlex'][_0x852dba('0x1a8e')]=_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x17f4')]?_0x852dba('0x1d28')+_0x16109b[_0x852dba('0x16a9')][_0x852dba('0x17f4')]:undefined);_0x16109b['saveSmsAccountApp']=_0x50d698,_0x16109b[_0x852dba('0x136e')]=_0x4522c5;function _0x50d698(){const _0x2e397b=_0x852dba;_0x16109b['errors']=[];const _0x288ce9=[];_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x412')]&&_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x412')]['toLowerCase']()===_0x2e397b('0x1ade')&&_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x1c54')]==='outboundDial'&&(_0x16109b['amazonlex'][_0x2e397b('0x2154')]=_0x2280a8[_0x2e397b('0x12af')]?(_0x16109b[_0x2e397b('0x16a9')]['prefix']||'')+_0x2e397b('0x2265')+_0x2280a8[_0x2e397b('0x12af')]+'}':(_0x16109b[_0x2e397b('0x16a9')]['prefix']||'')+_0x2e397b('0x150e'),_0x2280a8['recordingFormat']!=='none'?_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x19')][_0x2e397b('0x2567')](_0x2e397b('0xa22'))<0x0&&(_0x16109b['amazonlex']['options']+=_0x2e397b('0xa22')):_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x19')]=_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x19')][_0x2e397b('0x737')](_0x2e397b('0xa22'),''));if(_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x1c54')]&&_0x16109b['amazonlex'][_0x2e397b('0x1c54')]===_0x2e397b('0x8fa')){}else switch((_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x643')]||_0x16109b['amazonlex'][_0x2e397b('0x1c54')])['toLowerCase']()){case _0x2e397b('0xf2e'):_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x2077')]=_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x2aa')]+'='+_0x16109b['amazonlex'][_0x2e397b('0x175b')];break;case'custom':break;default:_0x288ce9[0x0]=_0x16109b[_0x2e397b('0x16a9')]['accesskeyid'],_0x288ce9[0x1]=_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x1a62')],_0x288ce9[0x2]=_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x1dcf')],_0x288ce9[0x3]=_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x4a')],_0x288ce9[0x4]=_0x16109b[_0x2e397b('0x16a9')]['welcomemessage'],_0x16109b[_0x2e397b('0x16a9')][_0x2e397b('0x2077')]=_0x288ce9[_0x2e397b('0x1eba')](',');}_0x4522c5(_0x16109b['amazonlex']);}function _0x4522c5(_0x3717df){const _0x728ee4=_0x852dba;_0xe0991[_0x728ee4('0x212a')](_0x3717df);}}const _0x4d6002=_0x5988c5;_0x2fa449[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x168'),_0x4376d8('0x1060'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x2fa449(_0x255ba0,_0x45cc6f,_0x100bb3,_0x5527de,_0x45a93a,_0x33e0a2,_0x5b5183,_0x2d6ec1){const _0x14da6e=_0x4376d8,_0x7eef29=this;_0x7eef29[_0x14da6e('0x197c')]=_0x5b5183[_0x14da6e('0x2831')](),_0x7eef29['errors']=[],_0x7eef29[_0x14da6e('0x24d3')]='SMS.EDIT_'+(_0x5527de[_0x14da6e('0x1c54')]||_0x5527de[_0x14da6e('0x643')])[_0x14da6e('0x14e2')](),_0x7eef29[_0x14da6e('0x96e')]=angular['copy'](_0x5527de),_0x7eef29[_0x14da6e('0x103e')]=_0x2d6ec1,_0x7eef29[_0x14da6e('0x6ee')]={};if(_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x2077')])switch(_0x7eef29['autoreply'][_0x14da6e('0x1c54')]?_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x1c54')]['toLowerCase']():_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x643')]['toLowerCase']()){case _0x14da6e('0x8fa'):break;case'dialogflow':{const _0xf81522=_0x7eef29['autoreply'][_0x14da6e('0x2077')][_0x14da6e('0x2007')](',');_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0xdb5')]=_0xf81522[0x0],_0x7eef29['autoreply'][_0x14da6e('0x3e1')]=_0xf81522[0x1],_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x1083')]=_0xf81522[_0x14da6e('0x275f')](0x2,_0xf81522[_0x14da6e('0x1f73')])[_0x14da6e('0x1eba')](',');}break;case _0x14da6e('0x22ac'):{const _0x3927ec=_0x7eef29[_0x14da6e('0x96e')]['appdata'][_0x14da6e('0x2007')](',');_0x7eef29['autoreply'][_0x14da6e('0x28ab')]=_0x3927ec[0x0],_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x2814')]=_0x3927ec[0x1],_0x7eef29[_0x14da6e('0x96e')]['privateKey']=_0x3927ec[0x2],_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x3e1')]=_0x3927ec[0x3],_0x7eef29['autoreply'][_0x14da6e('0x1083')]=_0x3927ec[_0x14da6e('0x275f')](0x4,_0x3927ec[_0x14da6e('0x1f73')])[_0x14da6e('0x1eba')](',');}break;case _0x14da6e('0x16a9'):{const _0x220d1c=_0x7eef29['autoreply'][_0x14da6e('0x2077')][_0x14da6e('0x2007')](',');_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x1452')]=_0x220d1c[0x0],_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x1a62')]=_0x220d1c[0x1],_0x7eef29['autoreply'][_0x14da6e('0x1dcf')]=_0x220d1c[0x2],_0x7eef29['autoreply'][_0x14da6e('0x4a')]=_0x220d1c[0x3],_0x7eef29[_0x14da6e('0x96e')]['welcomemessage']=_0x220d1c[_0x14da6e('0x275f')](0x4,_0x220d1c['length'])['join'](',');}break;case _0x14da6e('0x96e'):{const _0x2a2621=_0x7eef29[_0x14da6e('0x96e')]['appdata'][_0x14da6e('0x2007')](',');_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x12a6')]=isNaN(_0x2a2621[0x0])?_0x2a2621[0x0]:parseInt(_0x2a2621[0x0],0xa),_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x132f')]=_0x2a2621[_0x14da6e('0x275f')](0x1,_0x2a2621[_0x14da6e('0x1f73')])[_0x14da6e('0x1eba')](',');}break;case _0x14da6e('0x1603'):_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x132f')]=_0x7eef29[_0x14da6e('0x96e')]['appdata'];break;case _0x14da6e('0xf2e'):_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x2aa')]=_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x2077')][_0x14da6e('0x2007')]('=')[0x0],_0x7eef29['autoreply'][_0x14da6e('0x175b')]=_0x7eef29[_0x14da6e('0x96e')]['appdata']['split']('=')[0x1];break;case _0x14da6e('0x17c6'):_0x7eef29['autoreply'][_0x14da6e('0x87c')]=_0x7eef29[_0x14da6e('0x96e')]['appdata'];break;default:{const _0x42b057=_0x7eef29['autoreply']['appdata'][_0x14da6e('0x2007')](',');_0x7eef29[_0x14da6e('0x96e')]['times']=_0x49cbdd()[_0x14da6e('0x109a')](_0x42b057[0x0])?_0x42b057[0x0]:isNaN(_0x42b057[0x0])?_0x42b057[0x0]:parseInt(_0x42b057[0x0],0xa),_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x132f')]=_0x49cbdd()[_0x14da6e('0x109a')](_0x42b057[0x1])?_0x42b057[0x1]:isNaN(_0x42b057[0x1])?_0x42b057[0x1]:parseInt(_0x42b057[0x1],0xa);}}else _0x7eef29['autoreply'][_0x14da6e('0x12a6')]=0x1;_0x7eef29[_0x14da6e('0x96e')]['type']&&_0x7eef29['autoreply'][_0x14da6e('0x412')]['toLowerCase']()===_0x14da6e('0x1ade')&&_0x7eef29[_0x14da6e('0x96e')]['appType'][_0x14da6e('0x19b')]()==='outbounddial'&&(_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x11d4')]=_0x7eef29['autoreply'][_0x14da6e('0x2154')]?_0x7eef29['autoreply'][_0x14da6e('0x2154')][_0x14da6e('0x2007')]('$')[0x0]:undefined,_0x7eef29['autoreply'][_0x14da6e('0x1a8e')]=_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x17f4')]?_0x14da6e('0x1d28')+_0x7eef29[_0x14da6e('0x96e')][_0x14da6e('0x17f4')]:undefined);_0x7eef29[_0x14da6e('0x25ae')]=_0x589bc9,_0x7eef29['closeDialog']=_0x2c6fd9;function _0x589bc9(){const _0x3b7781=_0x14da6e;_0x7eef29[_0x3b7781('0x73e')]=[];const _0x995247=[];_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x412')]&&_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x412')][_0x3b7781('0x19b')]()==='outbound'&&_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x1c54')]==='outboundDial'&&(_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x2154')]=_0x45a93a[_0x3b7781('0x12af')]?(_0x7eef29['autoreply'][_0x3b7781('0x11d4')]||'')+_0x3b7781('0x2265')+_0x45a93a[_0x3b7781('0x12af')]+'}':(_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x11d4')]||'')+_0x3b7781('0x150e'),_0x45a93a[_0x3b7781('0x287')]!==_0x3b7781('0x7ee')?_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x19')][_0x3b7781('0x2567')](_0x3b7781('0xa22'))<0x0&&(_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x19')]+=_0x3b7781('0xa22')):_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x19')]=_0x7eef29['autoreply']['options'][_0x3b7781('0x737')](_0x3b7781('0xa22'),''));if(_0x7eef29['autoreply'][_0x3b7781('0x1c54')]&&_0x7eef29[_0x3b7781('0x96e')]['appType']===_0x3b7781('0x8fa')){}else switch((_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x643')]||_0x7eef29[_0x3b7781('0x96e')]['appType'])[_0x3b7781('0x19b')]()){case'set':_0x7eef29[_0x3b7781('0x96e')]['appdata']=_0x7eef29['autoreply'][_0x3b7781('0x2aa')]+'='+_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x175b')];break;case _0x3b7781('0x8fa'):break;default:_0x995247[0x0]=_0x7eef29[_0x3b7781('0x96e')]['times'],_0x995247[0x1]=_0x7eef29[_0x3b7781('0x96e')][_0x3b7781('0x132f')],_0x7eef29['autoreply'][_0x3b7781('0x2077')]=_0x995247[_0x3b7781('0x1eba')](',');}_0x2c6fd9(_0x7eef29[_0x3b7781('0x96e')]);}function _0x2c6fd9(_0x3f0596){const _0x5be2d8=_0x14da6e;_0x255ba0[_0x5be2d8('0x212a')](_0x3f0596);}}const _0x35a4e4=_0x2fa449;_0x3f944b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x168'),'smsAccount','api','Auth','crudPermissions'];function _0x3f944b(_0x15e826,_0x30d353,_0x114b93,_0xebc9f4,_0x2663d1,_0x3a8cb9,_0x5e0386,_0x3e1bc6){const _0x33ee15=_0x4376d8,_0x3195bc=this;_0x3195bc['currentUser']=_0x5e0386['getCurrentUser'](),_0x3195bc['errors']=[],_0x3195bc['title']=_0x33ee15('0x1773')+(_0xebc9f4[_0x33ee15('0x1c54')]||_0xebc9f4[_0x33ee15('0x643')])[_0x33ee15('0x14e2')](),_0x3195bc[_0x33ee15('0xbc9')]=angular[_0x33ee15('0x14e5')](_0xebc9f4),_0x3195bc[_0x33ee15('0x103e')]=_0x3e1bc6,_0x3195bc['hasModulePermissions']={};if(_0x3195bc[_0x33ee15('0xbc9')]['appdata'])switch(_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x1c54')]?_0x3195bc['close'][_0x33ee15('0x1c54')][_0x33ee15('0x19b')]():_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x643')]['toLowerCase']()){case _0x33ee15('0x8fa'):break;case'dialogflow':{const _0x3133f6=_0x3195bc[_0x33ee15('0xbc9')]['appdata']['split'](',');_0x3195bc['close'][_0x33ee15('0xdb5')]=_0x3133f6[0x0],_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x3e1')]=_0x3133f6[0x1],_0x3195bc[_0x33ee15('0xbc9')]['welcomemessage']=_0x3133f6[_0x33ee15('0x275f')](0x2,_0x3133f6[_0x33ee15('0x1f73')])[_0x33ee15('0x1eba')](',');}break;case _0x33ee15('0x22ac'):{const _0xb2d51a=_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2077')][_0x33ee15('0x2007')](',');_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x28ab')]=_0xb2d51a[0x0],_0x3195bc[_0x33ee15('0xbc9')]['clientEmail']=_0xb2d51a[0x1],_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x1bc2')]=_0xb2d51a[0x2],_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x3e1')]=_0xb2d51a[0x3],_0x3195bc['close'][_0x33ee15('0x1083')]=_0xb2d51a[_0x33ee15('0x275f')](0x4,_0xb2d51a[_0x33ee15('0x1f73')])[_0x33ee15('0x1eba')](',');}break;case _0x33ee15('0x16a9'):{const _0x50bade=_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2077')][_0x33ee15('0x2007')](',');_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x1452')]=_0x50bade[0x0],_0x3195bc['close']['secretaccesskey']=_0x50bade[0x1],_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x1dcf')]=_0x50bade[0x2],_0x3195bc[_0x33ee15('0xbc9')]['botname']=_0x50bade[0x3],_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x1083')]=_0x50bade['slice'](0x4,_0x50bade['length'])[_0x33ee15('0x1eba')](',');}break;case _0x33ee15('0x96e'):{const _0x47fe33=_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2077')][_0x33ee15('0x2007')](',');_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x12a6')]=isNaN(_0x47fe33[0x0])?_0x47fe33[0x0]:parseInt(_0x47fe33[0x0],0xa),_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x132f')]=_0x47fe33[_0x33ee15('0x275f')](0x1,_0x47fe33[_0x33ee15('0x1f73')])[_0x33ee15('0x1eba')](',');}break;case _0x33ee15('0x1603'):_0x3195bc[_0x33ee15('0xbc9')]['text']=_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2077')];break;case _0x33ee15('0xf2e'):_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2aa')]=_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2077')][_0x33ee15('0x2007')]('=')[0x0],_0x3195bc[_0x33ee15('0xbc9')]['value']=_0x3195bc[_0x33ee15('0xbc9')]['appdata']['split']('=')[0x1];break;case _0x33ee15('0x17c6'):_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x87c')]=_0x3195bc['close'][_0x33ee15('0x2077')];break;default:{const _0x1d57be=_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2077')]['split'](',');_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x1f27')]=_0x49cbdd()['isEmpty'](_0x1d57be[0x0])?_0x1d57be[0x0]:isNaN(_0x1d57be[0x0])?_0x1d57be[0x0]:parseInt(_0x1d57be[0x0],0xa);}break;}else{}_0x3195bc['close'][_0x33ee15('0x412')]&&_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x412')][_0x33ee15('0x19b')]()===_0x33ee15('0x1ade')&&_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x1c54')][_0x33ee15('0x19b')]()===_0x33ee15('0x1711')&&(_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x11d4')]=_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2154')]?_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x2154')][_0x33ee15('0x2007')]('$')[0x0]:undefined,_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x1a8e')]=_0x3195bc['close']['callerID']?_0x33ee15('0x1d28')+_0x3195bc[_0x33ee15('0xbc9')][_0x33ee15('0x17f4')]:undefined);_0x3195bc[_0x33ee15('0x25ae')]=_0xf2d43b,_0x3195bc['closeDialog']=_0xcd184a;function _0xf2d43b(){const _0x82fa18=_0x33ee15;_0x3195bc['errors']=[];const _0x337055=[];_0x3195bc[_0x82fa18('0xbc9')]['type']&&_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x412')][_0x82fa18('0x19b')]()===_0x82fa18('0x1ade')&&_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x1c54')]===_0x82fa18('0xbdc')&&(_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x2154')]=_0x2663d1['cutdigits']?(_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x11d4')]||'')+_0x82fa18('0x2265')+_0x2663d1[_0x82fa18('0x12af')]+'}':(_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x11d4')]||'')+'${EXTEN}',_0x2663d1[_0x82fa18('0x287')]!==_0x82fa18('0x7ee')?_0x3195bc[_0x82fa18('0xbc9')]['options'][_0x82fa18('0x2567')](_0x82fa18('0xa22'))<0x0&&(_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x19')]+=_0x82fa18('0xa22')):_0x3195bc['close'][_0x82fa18('0x19')]=_0x3195bc[_0x82fa18('0xbc9')]['options'][_0x82fa18('0x737')](_0x82fa18('0xa22'),''));if(_0x3195bc['close'][_0x82fa18('0x1c54')]&&_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x1c54')]===_0x82fa18('0x8fa')){}else switch((_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x643')]||_0x3195bc['close'][_0x82fa18('0x1c54')])[_0x82fa18('0x19b')]()){case _0x82fa18('0xf2e'):_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x2077')]=_0x3195bc['close'][_0x82fa18('0x2aa')]+'='+_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x175b')];break;case'custom':break;default:_0x337055[0x0]=_0x3195bc[_0x82fa18('0xbc9')][_0x82fa18('0x1f27')],_0x3195bc['close'][_0x82fa18('0x2077')]=_0x337055[_0x82fa18('0x1eba')](',');}_0xcd184a(_0x3195bc[_0x82fa18('0xbc9')]);}function _0xcd184a(_0x5adfd9){const _0x3fbfb4=_0x33ee15;_0x15e826[_0x3fbfb4('0x212a')](_0x5adfd9);}}const _0x2698ef=_0x3f944b;_0x1f2b17[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x168'),_0x4376d8('0x1060'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x1f2b17(_0x4f9e8c,_0x27f9d1,_0x23d659,_0x3fd2dc,_0x465824,_0x572ad0,_0x4c03d3,_0xe544d7){const _0xe2bc8e=_0x4376d8,_0x19b418=this;_0x19b418[_0xe2bc8e('0x197c')]=_0x4c03d3[_0xe2bc8e('0x2831')](),_0x19b418[_0xe2bc8e('0x73e')]=[],_0x19b418['title']=_0xe2bc8e('0x1773')+(_0x3fd2dc[_0xe2bc8e('0x1c54')]||_0x3fd2dc[_0xe2bc8e('0x643')])[_0xe2bc8e('0x14e2')](),_0x19b418[_0xe2bc8e('0x2526')]=angular[_0xe2bc8e('0x14e5')](_0x3fd2dc),_0x19b418[_0xe2bc8e('0x103e')]=_0xe544d7,_0x19b418[_0xe2bc8e('0x6ee')]={};if(_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x2077')])switch(_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1c54')]?_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1c54')][_0xe2bc8e('0x19b')]():_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x643')]['toLowerCase']()){case _0xe2bc8e('0x8fa'):break;case _0xe2bc8e('0x2526'):{const _0x4dce60=_0x19b418[_0xe2bc8e('0x2526')]['appdata'][_0xe2bc8e('0x2007')](',');_0x19b418[_0xe2bc8e('0x2526')]['key']=_0x4dce60[0x0],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x3e1')]=_0x4dce60[0x1],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1083')]=_0x4dce60[_0xe2bc8e('0x275f')](0x2,_0x4dce60[_0xe2bc8e('0x1f73')])['join'](',');}break;case _0xe2bc8e('0x22ac'):{const _0x501677=_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x2077')][_0xe2bc8e('0x2007')](',');_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x28ab')]=_0x501677[0x0],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x2814')]=_0x501677[0x1],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1bc2')]=_0x501677[0x2],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x3e1')]=_0x501677[0x3],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1083')]=_0x501677['slice'](0x4,_0x501677[_0xe2bc8e('0x1f73')])['join'](',');}break;case'amazonlex':{const _0x181972=_0x19b418['dialogflow'][_0xe2bc8e('0x2077')][_0xe2bc8e('0x2007')](',');_0x19b418[_0xe2bc8e('0x2526')]['accesskeyid']=_0x181972[0x0],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1a62')]=_0x181972[0x1],_0x19b418['dialogflow']['lexregion']=_0x181972[0x2],_0x19b418['dialogflow']['botname']=_0x181972[0x3],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1083')]=_0x181972[_0xe2bc8e('0x275f')](0x4,_0x181972[_0xe2bc8e('0x1f73')])['join'](',');}break;case'autoreply':{const _0x518091=_0x19b418['dialogflow']['appdata'][_0xe2bc8e('0x2007')](',');_0x19b418['dialogflow'][_0xe2bc8e('0x12a6')]=isNaN(_0x518091[0x0])?_0x518091[0x0]:parseInt(_0x518091[0x0],0xa),_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x132f')]=_0x518091[_0xe2bc8e('0x275f')](0x1,_0x518091[_0xe2bc8e('0x1f73')])[_0xe2bc8e('0x1eba')](',');}break;case _0xe2bc8e('0x1603'):_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x132f')]=_0x19b418[_0xe2bc8e('0x2526')]['appdata'];break;case _0xe2bc8e('0xf2e'):_0x19b418[_0xe2bc8e('0x2526')]['name']=_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x2077')][_0xe2bc8e('0x2007')]('=')[0x0],_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x175b')]=_0x19b418['dialogflow'][_0xe2bc8e('0x2077')][_0xe2bc8e('0x2007')]('=')[0x1];break;case'agi':_0x19b418[_0xe2bc8e('0x2526')]['project']=_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x2077')];break;default:{const _0x561506=_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x2077')][_0xe2bc8e('0x2007')](',');_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0xdb5')]=_0x49cbdd()['isEmpty'](_0x561506[0x0])?_0x561506[0x0]:isNaN(_0x561506[0x0])?_0x561506[0x0]:parseInt(_0x561506[0x0],0xa),_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x3e1')]=_0x49cbdd()[_0xe2bc8e('0x109a')](_0x561506[0x1])?_0x561506[0x1]:isNaN(_0x561506[0x1])?_0x561506[0x1]:parseInt(_0x561506[0x1],0xa),_0x19b418[_0xe2bc8e('0x2526')]['welcomemessage']=_0x49cbdd()[_0xe2bc8e('0x109a')](_0x561506[0x2])?_0x561506[0x2]:isNaN(_0x561506[0x2])?_0x561506[0x2]:parseInt(_0x561506[0x2],0xa);}break;}else _0x19b418['dialogflow'][_0xe2bc8e('0x3e1')]='en';_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x412')]&&_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x412')][_0xe2bc8e('0x19b')]()===_0xe2bc8e('0x1ade')&&_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1c54')]['toLowerCase']()===_0xe2bc8e('0x1711')&&(_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x11d4')]=_0x19b418['dialogflow']['phone']?_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x2154')][_0xe2bc8e('0x2007')]('$')[0x0]:undefined,_0x19b418[_0xe2bc8e('0x2526')][_0xe2bc8e('0x1a8e')]=_0x19b418[_0xe2bc8e('0x2526')]['callerID']?_0xe2bc8e('0x1d28')+_0x19b418[_0xe2bc8e('0x2526')]['callerID']:undefined);_0x19b418[_0xe2bc8e('0x25ae')]=_0x2e0fb5,_0x19b418[_0xe2bc8e('0x136e')]=_0x24c0b3;function _0x2e0fb5(){const _0x43f8bd=_0xe2bc8e;_0x19b418[_0x43f8bd('0x73e')]=[];const _0x524f74=[];_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x412')]&&_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x412')][_0x43f8bd('0x19b')]()==='outbound'&&_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x1c54')]===_0x43f8bd('0xbdc')&&(_0x19b418[_0x43f8bd('0x2526')]['phone']=_0x465824['cutdigits']?(_0x19b418['dialogflow'][_0x43f8bd('0x11d4')]||'')+_0x43f8bd('0x2265')+_0x465824[_0x43f8bd('0x12af')]+'}':(_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x11d4')]||'')+'${EXTEN}',_0x465824['recordingFormat']!==_0x43f8bd('0x7ee')?_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x19')][_0x43f8bd('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x19b418['dialogflow'][_0x43f8bd('0x19')]+=_0x43f8bd('0xa22')):_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x19')]=_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x19')]['replace'](_0x43f8bd('0xa22'),''));if(_0x19b418[_0x43f8bd('0x2526')]['appType']&&_0x19b418['dialogflow'][_0x43f8bd('0x1c54')]===_0x43f8bd('0x8fa')){}else switch((_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x643')]||_0x19b418['dialogflow'][_0x43f8bd('0x1c54')])[_0x43f8bd('0x19b')]()){case _0x43f8bd('0xf2e'):_0x19b418[_0x43f8bd('0x2526')]['appdata']=_0x19b418['dialogflow'][_0x43f8bd('0x2aa')]+'='+_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x175b')];break;case _0x43f8bd('0x8fa'):break;default:_0x524f74[0x0]=_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0xdb5')],_0x524f74[0x1]=_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x3e1')],_0x524f74[0x2]=_0x19b418[_0x43f8bd('0x2526')][_0x43f8bd('0x1083')],_0x19b418[_0x43f8bd('0x2526')]['appdata']=_0x524f74['join'](',');}_0x24c0b3(_0x19b418[_0x43f8bd('0x2526')]);}function _0x24c0b3(_0x4a58af){_0x4f9e8c['hide'](_0x4a58af);}}const _0x225a3e=_0x1f2b17;_0x5dc3b3[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty','smsAccountApp',_0x4376d8('0x1060'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x5dc3b3(_0x2a40ea,_0x4fd594,_0x1d9469,_0x5f208e,_0x346c78,_0x14d257,_0x2db457,_0x286d64){const _0x14f464=_0x4376d8,_0x22f104=this;_0x22f104[_0x14f464('0x197c')]=_0x2db457[_0x14f464('0x2831')](),_0x22f104[_0x14f464('0x73e')]=[],_0x22f104['title']=_0x14f464('0x1773')+(_0x5f208e['appType']||_0x5f208e[_0x14f464('0x643')])[_0x14f464('0x14e2')](),_0x22f104[_0x14f464('0x7a9')]=angular[_0x14f464('0x14e5')](_0x5f208e),_0x22f104[_0x14f464('0x103e')]=_0x286d64,_0x22f104[_0x14f464('0x6ee')]={};if(_0x22f104['gotoif']['appdata'])switch(_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x1c54')]?_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x1c54')][_0x14f464('0x19b')]():_0x22f104['gotoif']['app'][_0x14f464('0x19b')]()){case'custom':break;case'dialogflow':{const _0x4ddb46=_0x22f104['gotoif'][_0x14f464('0x2077')][_0x14f464('0x2007')](',');_0x22f104[_0x14f464('0x7a9')][_0x14f464('0xdb5')]=_0x4ddb46[0x0],_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x3e1')]=_0x4ddb46[0x1],_0x22f104['gotoif'][_0x14f464('0x1083')]=_0x4ddb46[_0x14f464('0x275f')](0x2,_0x4ddb46[_0x14f464('0x1f73')])[_0x14f464('0x1eba')](',');}break;case _0x14f464('0x22ac'):{const _0x3ddb08=_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x2077')][_0x14f464('0x2007')](',');_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x28ab')]=_0x3ddb08[0x0],_0x22f104[_0x14f464('0x7a9')]['clientEmail']=_0x3ddb08[0x1],_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x1bc2')]=_0x3ddb08[0x2],_0x22f104['gotoif'][_0x14f464('0x3e1')]=_0x3ddb08[0x3],_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x1083')]=_0x3ddb08[_0x14f464('0x275f')](0x4,_0x3ddb08['length'])[_0x14f464('0x1eba')](',');}break;case _0x14f464('0x16a9'):{const _0x25df24=_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x2077')][_0x14f464('0x2007')](',');_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x1452')]=_0x25df24[0x0],_0x22f104['gotoif'][_0x14f464('0x1a62')]=_0x25df24[0x1],_0x22f104[_0x14f464('0x7a9')]['lexregion']=_0x25df24[0x2],_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x4a')]=_0x25df24[0x3],_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x1083')]=_0x25df24['slice'](0x4,_0x25df24[_0x14f464('0x1f73')])['join'](',');}break;case _0x14f464('0x96e'):{const _0x260932=_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x2077')][_0x14f464('0x2007')](',');_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x12a6')]=isNaN(_0x260932[0x0])?_0x260932[0x0]:parseInt(_0x260932[0x0],0xa),_0x22f104[_0x14f464('0x7a9')]['text']=_0x260932['slice'](0x1,_0x260932[_0x14f464('0x1f73')])[_0x14f464('0x1eba')](',');}break;case _0x14f464('0x1603'):_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x132f')]=_0x22f104['gotoif']['appdata'];break;case _0x14f464('0xf2e'):_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x2aa')]=_0x22f104[_0x14f464('0x7a9')]['appdata']['split']('=')[0x0],_0x22f104['gotoif'][_0x14f464('0x175b')]=_0x22f104['gotoif'][_0x14f464('0x2077')]['split']('=')[0x1];break;case _0x14f464('0x17c6'):_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x87c')]=_0x22f104['gotoif'][_0x14f464('0x2077')];break;default:{const _0x4359cd=_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x2077')][_0x14f464('0x2007')](',');_0x22f104['gotoif'][_0x14f464('0xa67')]=_0x49cbdd()[_0x14f464('0x109a')](_0x4359cd[0x0])?_0x4359cd[0x0]:isNaN(_0x4359cd[0x0])?_0x4359cd[0x0]:parseInt(_0x4359cd[0x0],0xa),_0x22f104['gotoif'][_0x14f464('0xd8b')]=_0x49cbdd()[_0x14f464('0x109a')](_0x4359cd[0x1])?_0x4359cd[0x1]:isNaN(_0x4359cd[0x1])?_0x4359cd[0x1]:parseInt(_0x4359cd[0x1],0xa),_0x22f104[_0x14f464('0x7a9')][_0x14f464('0xe9d')]=_0x49cbdd()[_0x14f464('0x109a')](_0x4359cd[0x2])?_0x4359cd[0x2]:isNaN(_0x4359cd[0x2])?_0x4359cd[0x2]:parseInt(_0x4359cd[0x2],0xa);}break;}else{}_0x22f104[_0x14f464('0x7a9')]['type']&&_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x412')][_0x14f464('0x19b')]()==='outbound'&&_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x1c54')][_0x14f464('0x19b')]()==='outbounddial'&&(_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x11d4')]=_0x22f104[_0x14f464('0x7a9')]['phone']?_0x22f104['gotoif'][_0x14f464('0x2154')][_0x14f464('0x2007')]('$')[0x0]:undefined,_0x22f104[_0x14f464('0x7a9')]['callerId']=_0x22f104['gotoif'][_0x14f464('0x17f4')]?'CALLERID(all)='+_0x22f104[_0x14f464('0x7a9')][_0x14f464('0x17f4')]:undefined);_0x22f104[_0x14f464('0x25ae')]=_0x4e2047,_0x22f104[_0x14f464('0x136e')]=_0x592aff;function _0x4e2047(){const _0x2377a1=_0x14f464;_0x22f104[_0x2377a1('0x73e')]=[];const _0x2ce6f0=[];_0x22f104['gotoif'][_0x2377a1('0x412')]&&_0x22f104['gotoif'][_0x2377a1('0x412')][_0x2377a1('0x19b')]()===_0x2377a1('0x1ade')&&_0x22f104['gotoif'][_0x2377a1('0x1c54')]==='outboundDial'&&(_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x2154')]=_0x346c78['cutdigits']?(_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x11d4')]||'')+_0x2377a1('0x2265')+_0x346c78['cutdigits']+'}':(_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x11d4')]||'')+_0x2377a1('0x150e'),_0x346c78['recordingFormat']!=='none'?_0x22f104[_0x2377a1('0x7a9')]['options'][_0x2377a1('0x2567')](_0x2377a1('0xa22'))<0x0&&(_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x19')]+='U(xcally-mixmonitor-context)'):_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x19')]=_0x22f104['gotoif']['options'][_0x2377a1('0x737')](_0x2377a1('0xa22'),''));if(_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x1c54')]&&_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x1c54')]===_0x2377a1('0x8fa')){}else switch((_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x643')]||_0x22f104[_0x2377a1('0x7a9')]['appType'])[_0x2377a1('0x19b')]()){case'set':_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x2077')]=_0x22f104[_0x2377a1('0x7a9')]['name']+'='+_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x175b')];break;case _0x2377a1('0x8fa'):break;default:_0x2ce6f0[0x0]=_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0xa67')],_0x2ce6f0[0x1]=_0x22f104[_0x2377a1('0x7a9')]['truepriority'],_0x2ce6f0[0x2]=_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0xe9d')],_0x22f104[_0x2377a1('0x7a9')][_0x2377a1('0x2077')]=_0x2ce6f0[_0x2377a1('0x1eba')](',');}_0x592aff(_0x22f104['gotoif']);}function _0x592aff(_0x2da2a3){const _0x55ea85=_0x14f464;_0x2a40ea[_0x55ea85('0x212a')](_0x2da2a3);}}const _0x2ad657=_0x5dc3b3;_0x373b36[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x168'),_0x4376d8('0x1060'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x373b36(_0x3ff46a,_0x27cb06,_0x53ae44,_0x3781b6,_0xe66c94,_0x27d368,_0x3a7075,_0x25470c){const _0x1ee1fb=_0x4376d8,_0xb8ce9e=this;_0xb8ce9e['currentUser']=_0x3a7075[_0x1ee1fb('0x2831')](),_0xb8ce9e[_0x1ee1fb('0x73e')]=[],_0xb8ce9e[_0x1ee1fb('0x24d3')]=_0x1ee1fb('0x1773')+(_0x3781b6['appType']||_0x3781b6[_0x1ee1fb('0x643')])[_0x1ee1fb('0x14e2')](),_0xb8ce9e[_0x1ee1fb('0x721')]=angular[_0x1ee1fb('0x14e5')](_0x3781b6),_0xb8ce9e['crudPermissions']=_0x25470c,_0xb8ce9e[_0x1ee1fb('0x6ee')]={};if(_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2077')])switch(_0xb8ce9e[_0x1ee1fb('0x721')]['appType']?_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x1c54')][_0x1ee1fb('0x19b')]():_0xb8ce9e[_0x1ee1fb('0x721')]['app'][_0x1ee1fb('0x19b')]()){case _0x1ee1fb('0x8fa'):break;case _0x1ee1fb('0x2526'):{const _0x4a7aaa=_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2077')][_0x1ee1fb('0x2007')](',');_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0xdb5')]=_0x4a7aaa[0x0],_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x3e1')]=_0x4a7aaa[0x1],_0xb8ce9e['gotop'][_0x1ee1fb('0x1083')]=_0x4a7aaa[_0x1ee1fb('0x275f')](0x2,_0x4a7aaa[_0x1ee1fb('0x1f73')])[_0x1ee1fb('0x1eba')](',');}break;case _0x1ee1fb('0x22ac'):{const _0x226a8d=_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2077')][_0x1ee1fb('0x2007')](',');_0xb8ce9e['gotop'][_0x1ee1fb('0x28ab')]=_0x226a8d[0x0],_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2814')]=_0x226a8d[0x1],_0xb8ce9e['gotop'][_0x1ee1fb('0x1bc2')]=_0x226a8d[0x2],_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x3e1')]=_0x226a8d[0x3],_0xb8ce9e[_0x1ee1fb('0x721')]['welcomemessage']=_0x226a8d[_0x1ee1fb('0x275f')](0x4,_0x226a8d[_0x1ee1fb('0x1f73')])['join'](',');}break;case _0x1ee1fb('0x16a9'):{const _0x190c8e=_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2077')][_0x1ee1fb('0x2007')](',');_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x1452')]=_0x190c8e[0x0],_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x1a62')]=_0x190c8e[0x1],_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x1dcf')]=_0x190c8e[0x2],_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x4a')]=_0x190c8e[0x3],_0xb8ce9e['gotop'][_0x1ee1fb('0x1083')]=_0x190c8e[_0x1ee1fb('0x275f')](0x4,_0x190c8e[_0x1ee1fb('0x1f73')])[_0x1ee1fb('0x1eba')](',');}break;case _0x1ee1fb('0x96e'):{const _0x4611a3=_0xb8ce9e['gotop'][_0x1ee1fb('0x2077')][_0x1ee1fb('0x2007')](',');_0xb8ce9e['gotop']['times']=isNaN(_0x4611a3[0x0])?_0x4611a3[0x0]:parseInt(_0x4611a3[0x0],0xa),_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x132f')]=_0x4611a3['slice'](0x1,_0x4611a3[_0x1ee1fb('0x1f73')])[_0x1ee1fb('0x1eba')](',');}break;case _0x1ee1fb('0x1603'):_0xb8ce9e[_0x1ee1fb('0x721')]['text']=_0xb8ce9e[_0x1ee1fb('0x721')]['appdata'];break;case'set':_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2aa')]=_0xb8ce9e[_0x1ee1fb('0x721')]['appdata'][_0x1ee1fb('0x2007')]('=')[0x0],_0xb8ce9e['gotop'][_0x1ee1fb('0x175b')]=_0xb8ce9e['gotop'][_0x1ee1fb('0x2077')]['split']('=')[0x1];break;case _0x1ee1fb('0x17c6'):_0xb8ce9e['gotop'][_0x1ee1fb('0x87c')]=_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2077')];break;default:{const _0x5d2814=_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2077')]['split'](',');_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x1a6d')]=_0x49cbdd()[_0x1ee1fb('0x109a')](_0x5d2814[0x0])?_0x5d2814[0x0]:isNaN(_0x5d2814[0x0])?_0x5d2814[0x0]:parseInt(_0x5d2814[0x0],0xa);}break;}else{}_0xb8ce9e['gotop'][_0x1ee1fb('0x412')]&&_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x412')]['toLowerCase']()===_0x1ee1fb('0x1ade')&&_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x1c54')][_0x1ee1fb('0x19b')]()==='outbounddial'&&(_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x11d4')]=_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2154')]?_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x2154')]['split']('$')[0x0]:undefined,_0xb8ce9e[_0x1ee1fb('0x721')]['callerId']=_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x17f4')]?'CALLERID(all)='+_0xb8ce9e[_0x1ee1fb('0x721')][_0x1ee1fb('0x17f4')]:undefined);_0xb8ce9e[_0x1ee1fb('0x25ae')]=_0x419747,_0xb8ce9e[_0x1ee1fb('0x136e')]=_0x1c6eb1;function _0x419747(){const _0x118a4a=_0x1ee1fb;_0xb8ce9e[_0x118a4a('0x73e')]=[];const _0x3c4472=[];_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x412')]&&_0xb8ce9e['gotop'][_0x118a4a('0x412')]['toLowerCase']()==='outbound'&&_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x1c54')]===_0x118a4a('0xbdc')&&(_0xb8ce9e[_0x118a4a('0x721')]['phone']=_0xe66c94[_0x118a4a('0x12af')]?(_0xb8ce9e[_0x118a4a('0x721')]['prefix']||'')+'${EXTEN:'+_0xe66c94[_0x118a4a('0x12af')]+'}':(_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x11d4')]||'')+_0x118a4a('0x150e'),_0xe66c94[_0x118a4a('0x287')]!=='none'?_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x19')][_0x118a4a('0x2567')](_0x118a4a('0xa22'))<0x0&&(_0xb8ce9e['gotop'][_0x118a4a('0x19')]+='U(xcally-mixmonitor-context)'):_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x19')]=_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x19')]['replace'](_0x118a4a('0xa22'),''));if(_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x1c54')]&&_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x1c54')]===_0x118a4a('0x8fa')){}else switch((_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x643')]||_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x1c54')])['toLowerCase']()){case _0x118a4a('0xf2e'):_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x2077')]=_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x2aa')]+'='+_0xb8ce9e['gotop'][_0x118a4a('0x175b')];break;case _0x118a4a('0x8fa'):break;default:_0x3c4472[0x0]=_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x1a6d')],_0xb8ce9e[_0x118a4a('0x721')][_0x118a4a('0x2077')]=_0x3c4472[_0x118a4a('0x1eba')](',');}_0x1c6eb1(_0xb8ce9e[_0x118a4a('0x721')]);}function _0x1c6eb1(_0x44d152){const _0x2591e9=_0x1ee1fb;_0x3ff46a[_0x2591e9('0x212a')](_0x44d152);}}const _0xc8fe20=_0x373b36;_0x48f38a['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x14f6'),'$mdToast',_0x4376d8('0x12f1'),_0x4376d8('0x231f'),_0x4376d8('0x1be1'),_0x4376d8('0x108a'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x48f38a(_0x21fa99,_0xf4670b,_0x3c0256,_0x44c64a,_0x2edd6e,_0x21b098,_0x150fba,_0x31b5bc,_0x29585d,_0x36e9d6){const _0xb3d67e=_0x4376d8,_0x21497f=this;_0x21497f[_0xb3d67e('0x197c')]=_0x29585d['getCurrentUser'](),_0x21497f[_0xb3d67e('0x73e')]=[],_0x21497f[_0xb3d67e('0x24d3')]='TOOLS.EDIT_INTERVAL',_0x21497f[_0xb3d67e('0x231f')]=angular['copy'](_0x2edd6e),_0x21497f[_0xb3d67e('0x1be1')]=_0x21b098,_0x21497f[_0xb3d67e('0x42d')]=![],_0x21497f[_0xb3d67e('0x11e0')]=['always',_0xb3d67e('0x8fa'),_0xb3d67e('0x134c')],_0x21497f[_0xb3d67e('0x103e')]=_0x36e9d6,_0x21497f[_0xb3d67e('0x9d')]=_0x44c64a[_0xb3d67e('0x18cb')](),_0x21497f['monthNumber']=_0x44c64a['getMonthNumber'](),_0x21497f[_0xb3d67e('0x36e')]=_0x44c64a[_0xb3d67e('0x912')](),_0x21497f[_0xb3d67e('0x219f')]=_0x44c64a['getDaysOfMonth']();if(!_0x21497f[_0xb3d67e('0x231f')])_0x21497f[_0xb3d67e('0x231f')]={'interval':'*,*,*,*'},_0x21497f[_0xb3d67e('0x412')]=_0xb3d67e('0x1256'),_0x21497f[_0xb3d67e('0x24d3')]=_0xb3d67e('0x1917'),_0x21497f[_0xb3d67e('0x42d')]=!![];else{if(_0x21497f['interval']['interval']!==_0xb3d67e('0x20c3')){_0x21497f[_0xb3d67e('0x412')]=_0xb3d67e('0x8fa');const _0x4ff51b=_0x21497f[_0xb3d67e('0x231f')][_0xb3d67e('0x231f')][_0xb3d67e('0x2007')](','),_0x5bbb05=_0x4ff51b[0x0],_0x247a03=_0x4ff51b[0x1],_0x10579b=_0x4ff51b[0x2],_0x12e27c=_0x4ff51b[0x3];if(_0x5bbb05!=='*'){const _0x54cbbd=_0x5bbb05['split']('-')[0x0],_0x3dd972=_0x5bbb05[_0xb3d67e('0x2007')]('-')[0x1];let _0x1b106c;_0x1b106c=new Date(),_0x1b106c['setHours'](Number(_0x54cbbd[_0xb3d67e('0x2007')](':')[0x0])),_0x1b106c[_0xb3d67e('0x57b')](Number(_0x54cbbd['split'](':')[0x1])),_0x21497f[_0xb3d67e('0x19bf')]=_0x1b106c,_0x1b106c=new Date(),_0x1b106c[_0xb3d67e('0x196e')](Number(_0x3dd972[_0xb3d67e('0x2007')](':')[0x0])),_0x1b106c[_0xb3d67e('0x57b')](Number(_0x3dd972[_0xb3d67e('0x2007')](':')[0x1])),_0x21497f[_0xb3d67e('0x1c12')]=_0x1b106c;}_0x247a03!=='*'&&(_0x21497f[_0xb3d67e('0x1a98')]=_0x247a03[_0xb3d67e('0x2007')]('-')[0x0],_0x21497f[_0xb3d67e('0x1627')]=_0x247a03[_0xb3d67e('0x2007')]('-')[0x1]),_0x10579b!=='*'&&(_0x21497f['monthDayFrom']=_0x10579b['split']('-')[0x0],_0x21497f[_0xb3d67e('0x271d')]=_0x10579b[_0xb3d67e('0x2007')]('-')[0x1]),_0x12e27c!=='*'&&(_0x21497f[_0xb3d67e('0x88c')]=_0x12e27c['split']('-')[0x0],_0x21497f[_0xb3d67e('0x1f09')]=_0x12e27c[_0xb3d67e('0x2007')]('-')[0x1]);}else _0x21497f[_0xb3d67e('0x412')]=_0xb3d67e('0x1256');}_0x21fa99[_0xb3d67e('0x16fb')]['id']&&!_0x21497f[_0xb3d67e('0x231f')][_0xb3d67e('0xf84')]&&(_0x21497f[_0xb3d67e('0x231f')]['IntervalId']=_0x21fa99[_0xb3d67e('0x16fb')]['id']);_0x21497f['interval']['IntervalId']&&_0x21497f[_0xb3d67e('0x231f')][_0xb3d67e('0xf84')]&&(_0x21497f[_0xb3d67e('0x412')]=_0xb3d67e('0x134c'));_0x21497f[_0xb3d67e('0x28b2')]=_0x331477,_0x21497f[_0xb3d67e('0x872')]=_0x19a7e7,_0x21497f[_0xb3d67e('0x136e')]=_0xf273b1;_0x21497f[_0xb3d67e('0x231f')]['application']&&(_0x29585d[_0xb3d67e('0x1ba2')](_0xb3d67e('0x20bf'))?_0x31b5bc[_0xb3d67e('0x231f')][_0xb3d67e('0x1c53')]({'fields':_0xb3d67e('0x165a'),'IntervalId':'null','nolimit':!![]})['$promise'][_0xb3d67e('0x17e7')](function(_0x516e3c){const _0x944542=_0xb3d67e;_0x21497f[_0x944542('0x1be1')]=_0x516e3c['rows']||[];})[_0xb3d67e('0x16df')](function(_0xc076a7){const _0x177e07=_0xb3d67e;_0x150fba[_0x177e07('0x1db9')]({'title':_0xc076a7[_0x177e07('0x11c5')]?_0x177e07('0x14f7')+_0xc076a7[_0x177e07('0x11c5')]+_0x177e07('0x16e4')+_0xc076a7['statusText']:'SYSTEM:GET_INTERVALS','msg':_0xc076a7[_0x177e07('0x1457')]?JSON[_0x177e07('0x678')](_0xc076a7['data']):_0xc076a7[_0x177e07('0x9b6')]()});}):_0x31b5bc['interval']['get']({'fields':_0xb3d67e('0x165a'),'IntervalId':_0xb3d67e('0x9bb'),'nolimit':!![]})[_0xb3d67e('0x1af5')][_0xb3d67e('0x17e7')](function(_0x5edca9){const _0x21d106=_0xb3d67e;_0x21497f['intervals']=_0x5edca9[_0x21d106('0x2319')]||[];})[_0xb3d67e('0x17e7')](function(){const _0x474804=_0xb3d67e;return _0x31b5bc['userProfileSection'][_0x474804('0x1c53')]({'userProfileId':_0x21497f['currentUser']['userProfileId'],'sectionId':0x3ec})[_0x474804('0x1af5')];})[_0xb3d67e('0x17e7')](function(_0x447a24){const _0x2b99b5=_0xb3d67e,_0x892e13=_0x447a24&&_0x447a24[_0x2b99b5('0x2319')]?_0x447a24[_0x2b99b5('0x2319')][0x0]:null;if(!_0x892e13)_0x21497f[_0x2b99b5('0x1be1')]=[];else{if(!_0x892e13[_0x2b99b5('0x9e3')])return _0x31b5bc[_0x2b99b5('0x78d')][_0x2b99b5('0x1c53')]({'sectionId':_0x892e13['id']})['$promise'][_0x2b99b5('0x17e7')](function(_0x346641){const _0x3f9e82=_0x2b99b5,_0x4377a6=_0x346641&&_0x346641[_0x3f9e82('0x2319')]?_0x346641[_0x3f9e82('0x2319')]:[],_0x33822f=[];let _0x531c30=null;_0x21497f[_0x3f9e82('0x231f')]&&(_0x531c30=_0x49cbdd()[_0x3f9e82('0xe8e')](_0x21497f[_0x3f9e82('0x1be1')],{'name':_0x21497f['interval'][_0x3f9e82('0x24a9')]})),_0x531c30&&!_0x49cbdd()[_0x3f9e82('0x26f8')](_0x4377a6,['resourceId',_0x531c30['id']])&&_0x21497f[_0x3f9e82('0x1be1')][_0x3f9e82('0xccd')](function(_0x4afa2c){const _0x28b705=_0x3f9e82;_0x4afa2c['id']===_0x531c30['id']&&(_0x4afa2c[_0x28b705('0xe5c')]=![],_0x33822f['push'](_0x4afa2c));}),_0x21497f[_0x3f9e82('0x1be1')]=_0x33822f;});}})[_0xb3d67e('0x16df')](function(_0x2ed1bb){const _0xeb30ee=_0xb3d67e;_0x150fba[_0xeb30ee('0x1db9')]({'title':_0x2ed1bb[_0xeb30ee('0x11c5')]?_0xeb30ee('0x14f7')+_0x2ed1bb[_0xeb30ee('0x11c5')]+'\x20-\x20'+_0x2ed1bb[_0xeb30ee('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0x2ed1bb[_0xeb30ee('0x1457')]?JSON[_0xeb30ee('0x678')](_0x2ed1bb[_0xeb30ee('0x1457')]):_0x2ed1bb[_0xeb30ee('0x9b6')]()});}));function _0x77a9e7(){const _0x1f30d9=_0xb3d67e;switch(_0x21497f['type']){case _0x1f30d9('0x1256'):case _0x1f30d9('0x134c'):return _0x1f30d9('0x20c3');case _0x1f30d9('0x8fa'):{const _0xdd964b=[];if(_0x21497f[_0x1f30d9('0x19bf')]!=='*'&&_0x21497f[_0x1f30d9('0x19bf')]&&_0x21497f[_0x1f30d9('0x1c12')]){const _0x41ad7a=(_0x21497f[_0x1f30d9('0x19bf')]['getHours']()<0xa?'0':'')+_0x21497f[_0x1f30d9('0x19bf')][_0x1f30d9('0x13c6')]()+':'+((_0x21497f[_0x1f30d9('0x19bf')][_0x1f30d9('0xf42')]()<0xa?'0':'')+_0x21497f['timeRangeFrom'][_0x1f30d9('0xf42')]()),_0x2d32c5=(_0x21497f[_0x1f30d9('0x1c12')][_0x1f30d9('0x13c6')]()<0xa?'0':'')+_0x21497f[_0x1f30d9('0x1c12')][_0x1f30d9('0x13c6')]()+':'+((_0x21497f[_0x1f30d9('0x1c12')][_0x1f30d9('0xf42')]()<0xa?'0':'')+_0x21497f[_0x1f30d9('0x1c12')][_0x1f30d9('0xf42')]());_0xdd964b[_0x1f30d9('0x269f')](_0x41ad7a+'-'+_0x2d32c5);}else _0xdd964b[_0x1f30d9('0x269f')]('*');return _0x21497f[_0x1f30d9('0x1a98')]?_0x21497f[_0x1f30d9('0x1627')]?_0xdd964b[_0x1f30d9('0x269f')](_0x21497f['dayOfWeekFrom']+'-'+_0x21497f[_0x1f30d9('0x1627')]):_0xdd964b[_0x1f30d9('0x269f')](_0x21497f[_0x1f30d9('0x1a98')]):_0xdd964b[_0x1f30d9('0x269f')]('*'),_0x21497f['monthDayFrom']?_0x21497f['monthDayTo']?_0xdd964b[_0x1f30d9('0x269f')](_0x21497f[_0x1f30d9('0x18d1')]+'-'+_0x21497f[_0x1f30d9('0x271d')]):_0xdd964b['push'](_0x21497f[_0x1f30d9('0x18d1')]):_0xdd964b['push']('*'),_0x21497f['monthFrom']?_0x21497f['monthTo']?_0xdd964b[_0x1f30d9('0x269f')](_0x21497f[_0x1f30d9('0x88c')]+'-'+_0x21497f['monthTo']):_0xdd964b[_0x1f30d9('0x269f')](_0x21497f[_0x1f30d9('0x88c')]):_0xdd964b[_0x1f30d9('0x269f')]('*'),_0xdd964b[_0x1f30d9('0x1eba')]();}}}function _0x331477(){const _0x30dda1=_0xb3d67e;_0x21497f[_0x30dda1('0x73e')]=[],_0x21497f['interval'][_0x30dda1('0x231f')]=_0x77a9e7(),_0x31b5bc[_0x30dda1('0x231f')][_0x30dda1('0x2439')](_0x21497f[_0x30dda1('0x231f')])[_0x30dda1('0x1af5')][_0x30dda1('0x17e7')](function(_0x4ff6d1){const _0x160abb=_0x30dda1;_0x21497f[_0x160abb('0x1be1')][_0x160abb('0x269f')](_0x4ff6d1),_0x150fba[_0x160abb('0x130d')]({'title':_0x160abb('0x2378'),'msg':_0x21497f[_0x160abb('0x231f')][_0x160abb('0x2aa')]?_0x21497f[_0x160abb('0x231f')]['name']+_0x160abb('0x15a'):''}),_0xf273b1();})[_0x30dda1('0x16df')](function(_0x13b46b){const _0x482bd9=_0x30dda1;console['error'](_0x13b46b),_0x21497f['errors']=_0x13b46b['data']['errors']||[{'message':_0x13b46b['toString'](),'type':_0x482bd9('0x2475')}];});}function _0x19a7e7(){const _0x64ac1f=_0xb3d67e;_0x21497f['errors']=[],_0x21497f[_0x64ac1f('0x231f')][_0x64ac1f('0x231f')]=_0x77a9e7(),_0x21497f[_0x64ac1f('0x231f')][_0x64ac1f('0xf84')]?(_0x21497f[_0x64ac1f('0x412')]!==_0x64ac1f('0x134c')&&(_0x21497f[_0x64ac1f('0x231f')][_0x64ac1f('0x24a9')]=null),_0xf273b1(_0x21497f[_0x64ac1f('0x231f')])):_0x31b5bc['interval']['update']({'id':_0x21497f[_0x64ac1f('0x231f')]['id']},_0x21497f['interval'])[_0x64ac1f('0x1af5')][_0x64ac1f('0x17e7')](function(_0x2d9365){const _0x28b12f=_0x64ac1f,_0x161610=_0x49cbdd()[_0x28b12f('0xe8e')](_0x21497f[_0x28b12f('0x1be1')],{'id':_0x2d9365['id']});_0x161610&&_0x49cbdd()[_0x28b12f('0x1ced')](_0x161610,_0x2d9365),_0x150fba[_0x28b12f('0x130d')]({'title':_0x28b12f('0x6a9'),'msg':_0x28b12f('0x2792')}),_0xf273b1();})[_0x64ac1f('0x16df')](function(_0x471b13){const _0x2a7b08=_0x64ac1f;console[_0x2a7b08('0x1db9')](_0x471b13),_0x21497f[_0x2a7b08('0x73e')]=_0x471b13['data'][_0x2a7b08('0x73e')]||[{'message':_0x471b13[_0x2a7b08('0x9b6')](),'type':_0x2a7b08('0xed5')}];});}function _0xf273b1(_0x4efb51){_0xf4670b['hide'](_0x4efb51);}}const _0x5c1453=_0x48f38a;_0x84f9d3['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x168'),'smsAccount','api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x84f9d3(_0x27d13a,_0x54b7f7,_0x27de88,_0x2db7ed,_0xa263f5,_0x260114,_0xd7c3ec,_0x3b12e6){const _0xbe6635=_0x4376d8,_0x402577=this;_0x402577[_0xbe6635('0x197c')]=_0xd7c3ec[_0xbe6635('0x2831')](),_0x402577[_0xbe6635('0x73e')]=[],_0x402577[_0xbe6635('0x24d3')]=_0xbe6635('0x1773')+(_0x2db7ed['appType']||_0x2db7ed['app'])[_0xbe6635('0x14e2')](),_0x402577[_0xbe6635('0x1e49')]=angular[_0xbe6635('0x14e5')](_0x2db7ed),_0x402577[_0xbe6635('0x103e')]=_0x3b12e6,_0x402577[_0xbe6635('0x6ee')]={};if(_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2077')])switch(_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x1c54')]?_0x402577['noop'][_0xbe6635('0x1c54')][_0xbe6635('0x19b')]():_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x643')]['toLowerCase']()){case'custom':break;case _0xbe6635('0x2526'):{const _0x445544=_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2077')][_0xbe6635('0x2007')](',');_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0xdb5')]=_0x445544[0x0],_0x402577[_0xbe6635('0x1e49')]['language']=_0x445544[0x1],_0x402577['noop'][_0xbe6635('0x1083')]=_0x445544[_0xbe6635('0x275f')](0x2,_0x445544[_0xbe6635('0x1f73')])[_0xbe6635('0x1eba')](',');}break;case _0xbe6635('0x22ac'):{const _0x4675ba=_0x402577['noop'][_0xbe6635('0x2077')][_0xbe6635('0x2007')](',');_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x28ab')]=_0x4675ba[0x0],_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2814')]=_0x4675ba[0x1],_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x1bc2')]=_0x4675ba[0x2],_0x402577[_0xbe6635('0x1e49')]['language']=_0x4675ba[0x3],_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x1083')]=_0x4675ba[_0xbe6635('0x275f')](0x4,_0x4675ba[_0xbe6635('0x1f73')])[_0xbe6635('0x1eba')](',');}break;case _0xbe6635('0x16a9'):{const _0x5e675a=_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2077')][_0xbe6635('0x2007')](',');_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x1452')]=_0x5e675a[0x0],_0x402577['noop'][_0xbe6635('0x1a62')]=_0x5e675a[0x1],_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x1dcf')]=_0x5e675a[0x2],_0x402577['noop'][_0xbe6635('0x4a')]=_0x5e675a[0x3],_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x1083')]=_0x5e675a[_0xbe6635('0x275f')](0x4,_0x5e675a[_0xbe6635('0x1f73')])['join'](',');}break;case _0xbe6635('0x96e'):{const _0x1e6515=_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2077')]['split'](',');_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x12a6')]=isNaN(_0x1e6515[0x0])?_0x1e6515[0x0]:parseInt(_0x1e6515[0x0],0xa),_0x402577['noop']['text']=_0x1e6515[_0xbe6635('0x275f')](0x1,_0x1e6515[_0xbe6635('0x1f73')])[_0xbe6635('0x1eba')](',');}break;case _0xbe6635('0x1603'):_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x132f')]=_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2077')];break;case'set':_0x402577['noop'][_0xbe6635('0x2aa')]=_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2077')][_0xbe6635('0x2007')]('=')[0x0],_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x175b')]=_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2077')]['split']('=')[0x1];break;case _0xbe6635('0x17c6'):_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x87c')]=_0x402577['noop'][_0xbe6635('0x2077')];break;default:{const _0x2221b6=_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2077')]['split'](',');_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x175b')]=_0x49cbdd()[_0xbe6635('0x109a')](_0x2221b6[0x0])?_0x2221b6[0x0]:isNaN(_0x2221b6[0x0])?_0x2221b6[0x0]:parseInt(_0x2221b6[0x0],0xa);}break;}else{}_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x412')]&&_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x412')][_0xbe6635('0x19b')]()===_0xbe6635('0x1ade')&&_0x402577['noop'][_0xbe6635('0x1c54')]['toLowerCase']()===_0xbe6635('0x1711')&&(_0x402577['noop'][_0xbe6635('0x11d4')]=_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2154')]?_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x2154')]['split']('$')[0x0]:undefined,_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x1a8e')]=_0x402577['noop'][_0xbe6635('0x17f4')]?'CALLERID(all)='+_0x402577[_0xbe6635('0x1e49')][_0xbe6635('0x17f4')]:undefined);_0x402577[_0xbe6635('0x25ae')]=_0xee44e5,_0x402577[_0xbe6635('0x136e')]=_0x23f4d6;function _0xee44e5(){const _0x40bb0b=_0xbe6635;_0x402577['errors']=[];const _0x4d124f=[];_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x412')]&&_0x402577['noop'][_0x40bb0b('0x412')][_0x40bb0b('0x19b')]()==='outbound'&&_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x1c54')]===_0x40bb0b('0xbdc')&&(_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x2154')]=_0xa263f5['cutdigits']?(_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x11d4')]||'')+_0x40bb0b('0x2265')+_0xa263f5[_0x40bb0b('0x12af')]+'}':(_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x11d4')]||'')+'${EXTEN}',_0xa263f5['recordingFormat']!==_0x40bb0b('0x7ee')?_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x19')][_0x40bb0b('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x402577['noop'][_0x40bb0b('0x19')]+=_0x40bb0b('0xa22')):_0x402577[_0x40bb0b('0x1e49')]['options']=_0x402577[_0x40bb0b('0x1e49')]['options'][_0x40bb0b('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x1c54')]&&_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x1c54')]===_0x40bb0b('0x8fa')){}else switch((_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x643')]||_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x1c54')])['toLowerCase']()){case'set':_0x402577[_0x40bb0b('0x1e49')]['appdata']=_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x2aa')]+'='+_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x175b')];break;case _0x40bb0b('0x8fa'):break;default:_0x4d124f[0x0]=_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x175b')],_0x402577[_0x40bb0b('0x1e49')][_0x40bb0b('0x2077')]=_0x4d124f['join'](',');}_0x23f4d6(_0x402577[_0x40bb0b('0x1e49')]);}function _0x23f4d6(_0x4f5dc9){_0x27d13a['hide'](_0x4f5dc9);}}const _0x1e1ab3=_0x84f9d3;_0xdb087['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'smsAccountApp',_0x4376d8('0x1060'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0xdb087(_0x40bab3,_0x40ff87,_0x23f2ee,_0x14a00e,_0x20940c,_0xf758e6,_0x36798b,_0x36cb8e){const _0x58a0f5=_0x4376d8,_0x1b4bdc=this;_0x1b4bdc[_0x58a0f5('0x197c')]=_0x36798b[_0x58a0f5('0x2831')](),_0x1b4bdc[_0x58a0f5('0x73e')]=[],_0x1b4bdc[_0x58a0f5('0x24d3')]=_0x58a0f5('0x1773')+(_0x14a00e[_0x58a0f5('0x1c54')]||_0x14a00e['app'])[_0x58a0f5('0x14e2')](),_0x1b4bdc[_0x58a0f5('0x1bd')]=angular[_0x58a0f5('0x14e5')](_0x14a00e),_0x1b4bdc['crudPermissions']=_0x36cb8e,_0x1b4bdc[_0x58a0f5('0x6ee')]={};if(_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2077')])switch(_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x1c54')]?_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x1c54')]['toLowerCase']():_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x643')][_0x58a0f5('0x19b')]()){case _0x58a0f5('0x8fa'):break;case'dialogflow':{const _0x1c5b3c=_0x1b4bdc[_0x58a0f5('0x1bd')]['appdata'][_0x58a0f5('0x2007')](',');_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0xdb5')]=_0x1c5b3c[0x0],_0x1b4bdc['queue'][_0x58a0f5('0x3e1')]=_0x1c5b3c[0x1],_0x1b4bdc[_0x58a0f5('0x1bd')]['welcomemessage']=_0x1c5b3c[_0x58a0f5('0x275f')](0x2,_0x1c5b3c[_0x58a0f5('0x1f73')])[_0x58a0f5('0x1eba')](',');}break;case _0x58a0f5('0x22ac'):{const _0x1f2968=_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2077')]['split'](',');_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x28ab')]=_0x1f2968[0x0],_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2814')]=_0x1f2968[0x1],_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x1bc2')]=_0x1f2968[0x2],_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x3e1')]=_0x1f2968[0x3],_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x1083')]=_0x1f2968[_0x58a0f5('0x275f')](0x4,_0x1f2968['length'])['join'](',');}break;case _0x58a0f5('0x16a9'):{const _0x3a1802=_0x1b4bdc['queue'][_0x58a0f5('0x2077')][_0x58a0f5('0x2007')](',');_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x1452')]=_0x3a1802[0x0],_0x1b4bdc['queue']['secretaccesskey']=_0x3a1802[0x1],_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x1dcf')]=_0x3a1802[0x2],_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x4a')]=_0x3a1802[0x3],_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x1083')]=_0x3a1802['slice'](0x4,_0x3a1802[_0x58a0f5('0x1f73')])[_0x58a0f5('0x1eba')](',');}break;case _0x58a0f5('0x96e'):{const _0x4d2294=_0x1b4bdc['queue'][_0x58a0f5('0x2077')][_0x58a0f5('0x2007')](',');_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x12a6')]=isNaN(_0x4d2294[0x0])?_0x4d2294[0x0]:parseInt(_0x4d2294[0x0],0xa),_0x1b4bdc[_0x58a0f5('0x1bd')]['text']=_0x4d2294['slice'](0x1,_0x4d2294['length'])[_0x58a0f5('0x1eba')](',');}break;case _0x58a0f5('0x1603'):_0x1b4bdc['queue']['text']=_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2077')];break;case _0x58a0f5('0xf2e'):_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2aa')]=_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2077')]['split']('=')[0x0],_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x175b')]=_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2077')][_0x58a0f5('0x2007')]('=')[0x1];break;case _0x58a0f5('0x17c6'):_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x87c')]=_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2077')];break;default:{const _0x20be74=_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2077')]['split'](',');_0x1b4bdc['queue']['queue']=_0x49cbdd()[_0x58a0f5('0x109a')](_0x20be74[0x0])?_0x20be74[0x0]:isNaN(_0x20be74[0x0])?_0x20be74[0x0]:parseInt(_0x20be74[0x0],0xa),_0x1b4bdc['queue'][_0x58a0f5('0xd2f')]=_0x49cbdd()[_0x58a0f5('0x109a')](_0x20be74[0x1])?_0x20be74[0x1]:isNaN(_0x20be74[0x1])?_0x20be74[0x1]:parseInt(_0x20be74[0x1],0xa);}break;}else _0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x1bd')]=0x12c,_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0xd2f')]=0x12c;_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x412')]&&_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x412')][_0x58a0f5('0x19b')]()===_0x58a0f5('0x1ade')&&_0x1b4bdc['queue']['appType'][_0x58a0f5('0x19b')]()==='outbounddial'&&(_0x1b4bdc['queue']['prefix']=_0x1b4bdc['queue'][_0x58a0f5('0x2154')]?_0x1b4bdc[_0x58a0f5('0x1bd')][_0x58a0f5('0x2154')][_0x58a0f5('0x2007')]('$')[0x0]:undefined,_0x1b4bdc[_0x58a0f5('0x1bd')]['callerId']=_0x1b4bdc['queue'][_0x58a0f5('0x17f4')]?_0x58a0f5('0x1d28')+_0x1b4bdc['queue'][_0x58a0f5('0x17f4')]:undefined);_0x1b4bdc[_0x58a0f5('0x25ae')]=_0x4b661e,_0x1b4bdc[_0x58a0f5('0x136e')]=_0x4f9c3a,_0x36798b[_0x58a0f5('0x1ba2')](_0x58a0f5('0x20bf'))?_0xf758e6['smsQueue'][_0x58a0f5('0x1c53')]({'fields':_0x58a0f5('0x960'),'sort':_0x58a0f5('0x2aa'),'nolimit':_0x58a0f5('0xe34')})['$promise'][_0x58a0f5('0x17e7')](function(_0x21765b){_0x1b4bdc['queues']=_0x21765b['rows']||[];})[_0x58a0f5('0x16df')](function(_0x58cb5f){const _0x288671=_0x58a0f5;_0x23f2ee[_0x288671('0x1db9')]({'title':_0x58cb5f[_0x288671('0x11c5')]?_0x288671('0x14f7')+_0x58cb5f[_0x288671('0x11c5')]+_0x288671('0x16e4')+_0x58cb5f[_0x288671('0x1833')]:'SYSTEM:GET_QUEUES','msg':_0x58cb5f[_0x288671('0x1457')]?JSON[_0x288671('0x678')](_0x58cb5f[_0x288671('0x1457')]):_0x58cb5f[_0x288671('0x9b6')]()});}):_0xf758e6['smsQueue'][_0x58a0f5('0x1c53')]({'fields':'id,name,type','sort':_0x58a0f5('0x2aa'),'nolimit':_0x58a0f5('0xe34')})[_0x58a0f5('0x1af5')][_0x58a0f5('0x17e7')](function(_0x16b7ff){_0x1b4bdc['queues']=_0x16b7ff['rows']||[];})[_0x58a0f5('0x17e7')](function(){const _0x104673=_0x58a0f5;return _0xf758e6[_0x104673('0x383')][_0x104673('0x1c53')]({'userProfileId':_0x1b4bdc['currentUser'][_0x104673('0x1e76')],'sectionId':0x2bd})[_0x104673('0x1af5')];})[_0x58a0f5('0x17e7')](function(_0x254a47){const _0x5bee80=_0x58a0f5,_0x3aa795=_0x254a47&&_0x254a47[_0x5bee80('0x2319')]?_0x254a47[_0x5bee80('0x2319')][0x0]:null;if(!_0x3aa795){const _0x164fe3=[];let _0x2c1ec4=null;_0x1b4bdc[_0x5bee80('0x1bd')]&&(_0x2c1ec4=_0x49cbdd()[_0x5bee80('0xe8e')](_0x1b4bdc[_0x5bee80('0x14c4')],{'name':_0x1b4bdc['queue'][_0x5bee80('0x1bd')]}));for(let _0x1868b7=0x0;_0x1868b7<_0x1b4bdc[_0x5bee80('0x14c4')][_0x5bee80('0x1f73')];_0x1868b7++){_0x2c1ec4&&_0x1b4bdc['queues'][_0x1868b7]['id']===_0x2c1ec4['id']&&(_0x1b4bdc[_0x5bee80('0x14c4')][_0x1868b7][_0x5bee80('0xe5c')]=![],_0x164fe3[_0x5bee80('0x269f')](_0x1b4bdc[_0x5bee80('0x14c4')][_0x1868b7]));}_0x1b4bdc[_0x5bee80('0x14c4')]=_0x164fe3;}else{if(!_0x3aa795[_0x5bee80('0x9e3')])return _0xf758e6['userProfileResource']['get']({'sectionId':_0x3aa795['id']})[_0x5bee80('0x1af5')]['then'](function(_0x1e39dc){const _0xebb9a9=_0x5bee80,_0x5e4fdc=_0x49cbdd()[_0xebb9a9('0x787')](_0x1e39dc[_0xebb9a9('0x2319')],function(_0x37ed10){const _0x278e0c=_0xebb9a9;return _0x49cbdd()['find'](_0x1b4bdc[_0x278e0c('0x14c4')],{'id':_0x37ed10['resourceId']});});let _0x521a6e=null;_0x1b4bdc[_0xebb9a9('0x1bd')]&&(_0x521a6e=_0x49cbdd()[_0xebb9a9('0xe8e')](_0x1b4bdc[_0xebb9a9('0x14c4')],{'name':_0x1b4bdc[_0xebb9a9('0x1bd')][_0xebb9a9('0x1bd')]}));if(_0x521a6e&&!_0x49cbdd()[_0xebb9a9('0x26f8')](_0x5e4fdc,['id',_0x521a6e['id']])){const _0x49ea0e=_0x49cbdd()[_0xebb9a9('0xe8e')](_0x1b4bdc['queues'],{'id':_0x521a6e['id']});_0x49ea0e[_0xebb9a9('0xe5c')]=![],_0x5e4fdc[_0xebb9a9('0x269f')](_0x49ea0e);}_0x1b4bdc['queues']=_0x5e4fdc;});}})[_0x58a0f5('0x16df')](function(_0x50aff5){const _0x3f27b6=_0x58a0f5;_0x23f2ee['error']({'title':_0x50aff5[_0x3f27b6('0x11c5')]?_0x3f27b6('0x14f7')+_0x50aff5['status']+_0x3f27b6('0x16e4')+_0x50aff5[_0x3f27b6('0x1833')]:_0x3f27b6('0xb5f'),'msg':_0x50aff5['data']?JSON[_0x3f27b6('0x678')](_0x50aff5[_0x3f27b6('0x1457')]):_0x50aff5['toString']()});});function _0x4b661e(){const _0x1a881a=_0x58a0f5;_0x1b4bdc[_0x1a881a('0x73e')]=[];const _0x11e65d=[];_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x412')]&&_0x1b4bdc[_0x1a881a('0x1bd')]['type'][_0x1a881a('0x19b')]()===_0x1a881a('0x1ade')&&_0x1b4bdc['queue'][_0x1a881a('0x1c54')]===_0x1a881a('0xbdc')&&(_0x1b4bdc['queue'][_0x1a881a('0x2154')]=_0x20940c[_0x1a881a('0x12af')]?(_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x11d4')]||'')+_0x1a881a('0x2265')+_0x20940c[_0x1a881a('0x12af')]+'}':(_0x1b4bdc['queue'][_0x1a881a('0x11d4')]||'')+_0x1a881a('0x150e'),_0x20940c[_0x1a881a('0x287')]!==_0x1a881a('0x7ee')?_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x19')]['indexOf'](_0x1a881a('0xa22'))<0x0&&(_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x19')]+=_0x1a881a('0xa22')):_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x19')]=_0x1b4bdc[_0x1a881a('0x1bd')]['options'][_0x1a881a('0x737')](_0x1a881a('0xa22'),''));const _0x315367=_0x49cbdd()[_0x1a881a('0xe8e')](_0x1b4bdc[_0x1a881a('0x14c4')],{'name':_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x1bd')]});_0x315367&&(_0x1b4bdc[_0x1a881a('0x1bd')][_0x49cbdd()['capitalize'](_0x1a881a('0x2cd'))+'QueueId']=_0x315367['id']);if(_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x1c54')]&&_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x1c54')]===_0x1a881a('0x8fa')){}else switch((_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x643')]||_0x1b4bdc[_0x1a881a('0x1bd')]['appType'])[_0x1a881a('0x19b')]()){case'set':_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x2077')]=_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0x2aa')]+'='+_0x1b4bdc['queue'][_0x1a881a('0x175b')];break;case'custom':break;default:_0x11e65d[0x0]=_0x1b4bdc[_0x1a881a('0x1bd')]['queue'],_0x11e65d[0x1]=_0x1b4bdc[_0x1a881a('0x1bd')][_0x1a881a('0xd2f')],_0x1b4bdc[_0x1a881a('0x1bd')]['appdata']=_0x11e65d[_0x1a881a('0x1eba')](',');}_0x4f9c3a(_0x1b4bdc[_0x1a881a('0x1bd')]);}function _0x4f9c3a(_0x300114){const _0x16b5cc=_0x58a0f5;_0x40bab3[_0x16b5cc('0x212a')](_0x300114);}}const _0x268b0b=_0xdb087;_0x46b7db[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x168'),_0x4376d8('0x1060'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x46b7db(_0x2982a7,_0x2b63a5,_0x1c1ba9,_0x60c222,_0x596a09,_0x193d43,_0x291def,_0x4dfe1e){const _0x576ead=_0x4376d8,_0xcb6297=this;_0xcb6297[_0x576ead('0x197c')]=_0x291def[_0x576ead('0x2831')](),_0xcb6297[_0x576ead('0x73e')]=[],_0xcb6297[_0x576ead('0x24d3')]='SMS.EDIT_'+(_0x60c222[_0x576ead('0x1c54')]||_0x60c222[_0x576ead('0x643')])['toUpperCase'](),_0xcb6297[_0x576ead('0xca8')]=angular[_0x576ead('0x14e5')](_0x60c222),_0xcb6297[_0x576ead('0x103e')]=_0x4dfe1e,_0xcb6297['hasModulePermissions']={};if(_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x2077')])switch(_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x1c54')]?_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x1c54')][_0x576ead('0x19b')]():_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x643')]['toLowerCase']()){case'custom':break;case _0x576ead('0x2526'):{const _0x544983=_0xcb6297[_0x576ead('0xca8')]['appdata'][_0x576ead('0x2007')](',');_0xcb6297[_0x576ead('0xca8')]['key']=_0x544983[0x0],_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x3e1')]=_0x544983[0x1],_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x1083')]=_0x544983[_0x576ead('0x275f')](0x2,_0x544983[_0x576ead('0x1f73')])[_0x576ead('0x1eba')](',');}break;case'dialogflowv2':{const _0x2b7812=_0xcb6297['system'][_0x576ead('0x2077')][_0x576ead('0x2007')](',');_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x28ab')]=_0x2b7812[0x0],_0xcb6297[_0x576ead('0xca8')]['clientEmail']=_0x2b7812[0x1],_0xcb6297[_0x576ead('0xca8')]['privateKey']=_0x2b7812[0x2],_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x3e1')]=_0x2b7812[0x3],_0xcb6297['system'][_0x576ead('0x1083')]=_0x2b7812[_0x576ead('0x275f')](0x4,_0x2b7812['length'])[_0x576ead('0x1eba')](',');}break;case _0x576ead('0x16a9'):{const _0x154120=_0xcb6297['system'][_0x576ead('0x2077')]['split'](',');_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x1452')]=_0x154120[0x0],_0xcb6297[_0x576ead('0xca8')]['secretaccesskey']=_0x154120[0x1],_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x1dcf')]=_0x154120[0x2],_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x4a')]=_0x154120[0x3],_0xcb6297['system']['welcomemessage']=_0x154120['slice'](0x4,_0x154120[_0x576ead('0x1f73')])[_0x576ead('0x1eba')](',');}break;case _0x576ead('0x96e'):{const _0x5da698=_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x2077')][_0x576ead('0x2007')](',');_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x12a6')]=isNaN(_0x5da698[0x0])?_0x5da698[0x0]:parseInt(_0x5da698[0x0],0xa),_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x132f')]=_0x5da698[_0x576ead('0x275f')](0x1,_0x5da698[_0x576ead('0x1f73')])[_0x576ead('0x1eba')](',');}break;case _0x576ead('0x1603'):_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x132f')]=_0xcb6297[_0x576ead('0xca8')]['appdata'];break;case'set':_0xcb6297[_0x576ead('0xca8')]['name']=_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x2077')][_0x576ead('0x2007')]('=')[0x0],_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x175b')]=_0xcb6297['system']['appdata']['split']('=')[0x1];break;case _0x576ead('0x17c6'):_0xcb6297['system'][_0x576ead('0x87c')]=_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x2077')];break;default:{const _0x216eeb=_0xcb6297['system'][_0x576ead('0x2077')][_0x576ead('0x2007')](',');_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x1115')]=_0x49cbdd()[_0x576ead('0x109a')](_0x216eeb[0x0])?_0x216eeb[0x0]:isNaN(_0x216eeb[0x0])?_0x216eeb[0x0]:parseInt(_0x216eeb[0x0],0xa),_0xcb6297[_0x576ead('0xca8')][_0x576ead('0xb0a')]=_0x49cbdd()['isEmpty'](_0x216eeb[0x1])?_0x216eeb[0x1]:isNaN(_0x216eeb[0x1])?_0x216eeb[0x1]:parseInt(_0x216eeb[0x1],0xa);}break;}else _0xcb6297[_0x576ead('0xca8')][_0x576ead('0xb0a')]='';_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x412')]&&_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x412')][_0x576ead('0x19b')]()===_0x576ead('0x1ade')&&_0xcb6297[_0x576ead('0xca8')]['appType'][_0x576ead('0x19b')]()===_0x576ead('0x1711')&&(_0xcb6297['system'][_0x576ead('0x11d4')]=_0xcb6297['system'][_0x576ead('0x2154')]?_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x2154')][_0x576ead('0x2007')]('$')[0x0]:undefined,_0xcb6297[_0x576ead('0xca8')][_0x576ead('0x1a8e')]=_0xcb6297[_0x576ead('0xca8')]['callerID']?'CALLERID(all)='+_0xcb6297[_0x576ead('0xca8')]['callerID']:undefined);_0xcb6297[_0x576ead('0x25ae')]=_0x356799,_0xcb6297[_0x576ead('0x136e')]=_0xdeaf7c,_0x291def[_0x576ead('0x1ba2')](_0x576ead('0x20bf'))?_0x193d43[_0x576ead('0xb0a')][_0x576ead('0x1c53')]({'fields':'id,name','sort':_0x576ead('0x2aa'),'nolimit':_0x576ead('0xe34')})[_0x576ead('0x1af5')][_0x576ead('0x17e7')](function(_0x1117c3){const _0x20c766=_0x576ead;_0xcb6297[_0x20c766('0xd26')]=_0x1117c3['rows']||[];})[_0x576ead('0x16df')](function(_0x42bbe5){const _0x2d9238=_0x576ead;_0x1c1ba9[_0x2d9238('0x1db9')]({'title':_0x42bbe5[_0x2d9238('0x11c5')]?_0x2d9238('0x14f7')+_0x42bbe5[_0x2d9238('0x11c5')]+_0x2d9238('0x16e4')+_0x42bbe5[_0x2d9238('0x1833')]:_0x2d9238('0x1edc'),'msg':_0x42bbe5[_0x2d9238('0x1457')]?JSON[_0x2d9238('0x678')](_0x42bbe5[_0x2d9238('0x1457')]):_0x42bbe5[_0x2d9238('0x9b6')]()});}):_0x193d43['variable'][_0x576ead('0x1c53')]({'fields':_0x576ead('0x12d2'),'sort':'name','nolimit':'true'})[_0x576ead('0x1af5')][_0x576ead('0x17e7')](function(_0x321e3c){const _0x388339=_0x576ead;_0xcb6297[_0x388339('0xd26')]=_0x321e3c[_0x388339('0x2319')]||[];})[_0x576ead('0x17e7')](function(){const _0x3bb5e8=_0x576ead;return _0x193d43[_0x3bb5e8('0x383')][_0x3bb5e8('0x1c53')]({'userProfileId':_0xcb6297[_0x3bb5e8('0x197c')]['userProfileId'],'sectionId':0x3f4})['$promise'];})[_0x576ead('0x17e7')](function(_0xba59f0){const _0x3bf4e5=_0x576ead,_0x3eb20b=_0xba59f0&&_0xba59f0['rows']?_0xba59f0[_0x3bf4e5('0x2319')][0x0]:null;if(!_0x3eb20b){const _0x1ea66b=[];let _0x39b2d4=null;_0xcb6297['system']&&(_0x39b2d4=_0x49cbdd()['find'](_0xcb6297['variables'],{'name':_0xcb6297['system']['variable']}));for(let _0x309d06=0x0;_0x309d06<_0xcb6297['variables'][_0x3bf4e5('0x1f73')];_0x309d06++){_0x39b2d4&&_0xcb6297[_0x3bf4e5('0xd26')][_0x309d06]['id']===_0x39b2d4['id']&&(_0xcb6297[_0x3bf4e5('0xd26')][_0x309d06][_0x3bf4e5('0xe5c')]=![],_0x1ea66b['push'](_0xcb6297[_0x3bf4e5('0xd26')][_0x309d06]));}_0xcb6297[_0x3bf4e5('0xd26')]=_0x1ea66b;}else{if(!_0x3eb20b['autoAssociation'])return _0x193d43[_0x3bf4e5('0x78d')][_0x3bf4e5('0x1c53')]({'sectionId':_0x3eb20b['id']})[_0x3bf4e5('0x1af5')][_0x3bf4e5('0x17e7')](function(_0x4152dc){const _0xecec1b=_0x3bf4e5,_0x3762fb=_0x49cbdd()[_0xecec1b('0x787')](_0x4152dc[_0xecec1b('0x2319')],function(_0x369f99){const _0x37cb35=_0xecec1b;return _0x49cbdd()['find'](_0xcb6297[_0x37cb35('0xd26')],{'id':_0x369f99[_0x37cb35('0x5db')]});});let _0x800f66=null;_0xcb6297[_0xecec1b('0xca8')]&&(_0x800f66=_0x49cbdd()[_0xecec1b('0xe8e')](_0xcb6297[_0xecec1b('0xd26')],{'name':_0xcb6297['system'][_0xecec1b('0xb0a')]}));if(_0x800f66&&!_0x49cbdd()['some'](_0x3762fb,['id',_0x800f66['id']])){const _0x55d55c=_0x49cbdd()[_0xecec1b('0xe8e')](_0xcb6297[_0xecec1b('0xd26')],{'id':_0x800f66['id']});_0x55d55c[_0xecec1b('0xe5c')]=![],_0x3762fb['push'](_0x55d55c);}_0xcb6297[_0xecec1b('0xd26')]=_0x3762fb;});}})['catch'](function(_0x2a68ad){const _0x3321f2=_0x576ead;_0x1c1ba9[_0x3321f2('0x1db9')]({'title':_0x2a68ad[_0x3321f2('0x11c5')]?_0x3321f2('0x14f7')+_0x2a68ad[_0x3321f2('0x11c5')]+_0x3321f2('0x16e4')+_0x2a68ad['statusText']:_0x3321f2('0xef7'),'msg':_0x2a68ad[_0x3321f2('0x1457')]?JSON[_0x3321f2('0x678')](_0x2a68ad[_0x3321f2('0x1457')]):_0x2a68ad[_0x3321f2('0x9b6')]()});});function _0x356799(){const _0x12ee17=_0x576ead;_0xcb6297['errors']=[];const _0x255d1e=[];_0xcb6297['system'][_0x12ee17('0x412')]&&_0xcb6297[_0x12ee17('0xca8')]['type']['toLowerCase']()===_0x12ee17('0x1ade')&&_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x1c54')]===_0x12ee17('0xbdc')&&(_0xcb6297['system'][_0x12ee17('0x2154')]=_0x596a09[_0x12ee17('0x12af')]?(_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x11d4')]||'')+'${EXTEN:'+_0x596a09[_0x12ee17('0x12af')]+'}':(_0xcb6297[_0x12ee17('0xca8')]['prefix']||'')+'${EXTEN}',_0x596a09[_0x12ee17('0x287')]!=='none'?_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x19')][_0x12ee17('0x2567')](_0x12ee17('0xa22'))<0x0&&(_0xcb6297[_0x12ee17('0xca8')]['options']+=_0x12ee17('0xa22')):_0xcb6297[_0x12ee17('0xca8')]['options']=_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x19')][_0x12ee17('0x737')](_0x12ee17('0xa22'),''));if(_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x1c54')]&&_0xcb6297[_0x12ee17('0xca8')]['appType']===_0x12ee17('0x8fa')){}else switch((_0xcb6297[_0x12ee17('0xca8')]['app']||_0xcb6297[_0x12ee17('0xca8')]['appType'])[_0x12ee17('0x19b')]()){case'set':_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x2077')]=_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x2aa')]+'='+_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x175b')];break;case _0x12ee17('0x8fa'):break;default:_0x255d1e[0x0]=_0xcb6297['system']['command'],_0x255d1e[0x1]=_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0xb0a')],_0xcb6297[_0x12ee17('0xca8')][_0x12ee17('0x2077')]=_0x255d1e[_0x12ee17('0x1eba')](',');}_0xdeaf7c(_0xcb6297[_0x12ee17('0xca8')]);}function _0xdeaf7c(_0x4635d6){const _0x453346=_0x576ead;_0x2982a7[_0x453346('0x212a')](_0x4635d6);}}const _0x60837d=_0x46b7db;_0xac1b9c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'smsAccountApp',_0x4376d8('0x1060'),'api','Auth',_0x4376d8('0x103e')];function _0xac1b9c(_0x447457,_0x234ebf,_0xc0c6f2,_0xf24268,_0x1c9845,_0x2cb0bf,_0x3b1c3a,_0x184f73){const _0x17910f=_0x4376d8,_0x43611b=this;_0x43611b[_0x17910f('0x197c')]=_0x3b1c3a[_0x17910f('0x2831')](),_0x43611b[_0x17910f('0x73e')]=[],_0x43611b[_0x17910f('0x24d3')]='SMS.EDIT_'+(_0xf24268[_0x17910f('0x1c54')]||_0xf24268[_0x17910f('0x643')])[_0x17910f('0x14e2')](),_0x43611b[_0x17910f('0x1132')]=angular[_0x17910f('0x14e5')](_0xf24268),_0x43611b['crudPermissions']=_0x184f73,_0x43611b[_0x17910f('0x6ee')]={};if(_0x43611b['tag']['appdata'])switch(_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1c54')]?_0x43611b['tag']['appType'][_0x17910f('0x19b')]():_0x43611b['tag'][_0x17910f('0x643')][_0x17910f('0x19b')]()){case'custom':break;case _0x17910f('0x2526'):{const _0x1fd467=_0x43611b[_0x17910f('0x1132')][_0x17910f('0x2077')]['split'](',');_0x43611b['tag'][_0x17910f('0xdb5')]=_0x1fd467[0x0],_0x43611b['tag'][_0x17910f('0x3e1')]=_0x1fd467[0x1],_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1083')]=_0x1fd467[_0x17910f('0x275f')](0x2,_0x1fd467[_0x17910f('0x1f73')])['join'](',');}break;case _0x17910f('0x22ac'):{const _0x4d73f9=_0x43611b['tag'][_0x17910f('0x2077')][_0x17910f('0x2007')](',');_0x43611b[_0x17910f('0x1132')][_0x17910f('0x28ab')]=_0x4d73f9[0x0],_0x43611b[_0x17910f('0x1132')]['clientEmail']=_0x4d73f9[0x1],_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1bc2')]=_0x4d73f9[0x2],_0x43611b['tag'][_0x17910f('0x3e1')]=_0x4d73f9[0x3],_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1083')]=_0x4d73f9[_0x17910f('0x275f')](0x4,_0x4d73f9[_0x17910f('0x1f73')])[_0x17910f('0x1eba')](',');}break;case'amazonlex':{const _0xda7c2f=_0x43611b['tag'][_0x17910f('0x2077')][_0x17910f('0x2007')](',');_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1452')]=_0xda7c2f[0x0],_0x43611b['tag'][_0x17910f('0x1a62')]=_0xda7c2f[0x1],_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1dcf')]=_0xda7c2f[0x2],_0x43611b[_0x17910f('0x1132')][_0x17910f('0x4a')]=_0xda7c2f[0x3],_0x43611b[_0x17910f('0x1132')]['welcomemessage']=_0xda7c2f[_0x17910f('0x275f')](0x4,_0xda7c2f[_0x17910f('0x1f73')])[_0x17910f('0x1eba')](',');}break;case _0x17910f('0x96e'):{const _0x3c6507=_0x43611b[_0x17910f('0x1132')][_0x17910f('0x2077')]['split'](',');_0x43611b['tag']['times']=isNaN(_0x3c6507[0x0])?_0x3c6507[0x0]:parseInt(_0x3c6507[0x0],0xa),_0x43611b['tag'][_0x17910f('0x132f')]=_0x3c6507['slice'](0x1,_0x3c6507[_0x17910f('0x1f73')])['join'](',');}break;case _0x17910f('0x1603'):_0x43611b[_0x17910f('0x1132')][_0x17910f('0x132f')]=_0x43611b[_0x17910f('0x1132')][_0x17910f('0x2077')];break;case _0x17910f('0xf2e'):_0x43611b[_0x17910f('0x1132')][_0x17910f('0x2aa')]=_0x43611b[_0x17910f('0x1132')]['appdata'][_0x17910f('0x2007')]('=')[0x0],_0x43611b[_0x17910f('0x1132')][_0x17910f('0x175b')]=_0x43611b[_0x17910f('0x1132')][_0x17910f('0x2077')][_0x17910f('0x2007')]('=')[0x1];break;case _0x17910f('0x17c6'):_0x43611b[_0x17910f('0x1132')][_0x17910f('0x87c')]=_0x43611b[_0x17910f('0x1132')]['appdata'];break;default:{const _0x149614=_0x43611b[_0x17910f('0x1132')][_0x17910f('0x2077')][_0x17910f('0x2007')](',');_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1132')]=_0x49cbdd()[_0x17910f('0x109a')](_0x149614[0x0])?_0x149614[0x0]:isNaN(_0x149614[0x0])?_0x149614[0x0]:parseInt(_0x149614[0x0],0xa);}break;}else{}_0x43611b['tag'][_0x17910f('0x412')]&&_0x43611b[_0x17910f('0x1132')][_0x17910f('0x412')][_0x17910f('0x19b')]()===_0x17910f('0x1ade')&&_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1c54')][_0x17910f('0x19b')]()===_0x17910f('0x1711')&&(_0x43611b[_0x17910f('0x1132')][_0x17910f('0x11d4')]=_0x43611b[_0x17910f('0x1132')][_0x17910f('0x2154')]?_0x43611b[_0x17910f('0x1132')][_0x17910f('0x2154')][_0x17910f('0x2007')]('$')[0x0]:undefined,_0x43611b[_0x17910f('0x1132')][_0x17910f('0x1a8e')]=_0x43611b['tag'][_0x17910f('0x17f4')]?_0x17910f('0x1d28')+_0x43611b[_0x17910f('0x1132')][_0x17910f('0x17f4')]:undefined);_0x43611b['saveSmsAccountApp']=_0x1a29d8,_0x43611b[_0x17910f('0x136e')]=_0x5f1811,_0x3b1c3a[_0x17910f('0x1ba2')]('admin')?_0x2cb0bf[_0x17910f('0x1132')][_0x17910f('0x1c53')]({'fields':_0x17910f('0x12d2'),'sort':_0x17910f('0x2aa'),'nolimit':_0x17910f('0xe34')})[_0x17910f('0x1af5')]['then'](function(_0x1425d){const _0x4f673f=_0x17910f;_0x43611b[_0x4f673f('0x1522')]=_0x1425d['rows']||[];})[_0x17910f('0x16df')](function(_0x7410ad){const _0x5b4a29=_0x17910f;_0xc0c6f2[_0x5b4a29('0x1db9')]({'title':_0x7410ad['status']?_0x5b4a29('0x14f7')+_0x7410ad[_0x5b4a29('0x11c5')]+_0x5b4a29('0x16e4')+_0x7410ad[_0x5b4a29('0x1833')]:'SYSTEM:GET_TAGS','msg':_0x7410ad[_0x5b4a29('0x1457')]?JSON['stringify'](_0x7410ad[_0x5b4a29('0x1457')]):_0x7410ad['toString']()});}):_0x2cb0bf[_0x17910f('0x1132')]['get']({'fields':_0x17910f('0x12d2'),'sort':_0x17910f('0x2aa'),'nolimit':'true'})[_0x17910f('0x1af5')]['then'](function(_0x13c2ee){const _0x542b1f=_0x17910f;_0x43611b[_0x542b1f('0x1522')]=_0x13c2ee[_0x542b1f('0x2319')]||[];})['then'](function(){const _0x3d6821=_0x17910f;return _0x2cb0bf[_0x3d6821('0x383')][_0x3d6821('0x1c53')]({'userProfileId':_0x43611b['currentUser']['userProfileId'],'sectionId':0x3f0})[_0x3d6821('0x1af5')];})['then'](function(_0x4d99cf){const _0x25ed58=_0x17910f,_0x10b7ac=_0x4d99cf&&_0x4d99cf[_0x25ed58('0x2319')]?_0x4d99cf[_0x25ed58('0x2319')][0x0]:null;if(!_0x10b7ac){const _0x54e8ac=[];let _0x36a09d=null;_0x43611b[_0x25ed58('0x1132')]&&(_0x36a09d=_0x49cbdd()[_0x25ed58('0xe8e')](_0x43611b['tags'],{'name':_0x43611b['tag'][_0x25ed58('0x1132')]}));for(let _0x2f105c=0x0;_0x2f105c<_0x43611b['tags'][_0x25ed58('0x1f73')];_0x2f105c++){_0x36a09d&&_0x43611b['tags'][_0x2f105c]['id']===_0x36a09d['id']&&(_0x43611b[_0x25ed58('0x1522')][_0x2f105c][_0x25ed58('0xe5c')]=![],_0x54e8ac[_0x25ed58('0x269f')](_0x43611b[_0x25ed58('0x1522')][_0x2f105c]));}_0x43611b[_0x25ed58('0x1522')]=_0x54e8ac;}else{if(!_0x10b7ac['autoAssociation'])return _0x2cb0bf['userProfileResource'][_0x25ed58('0x1c53')]({'sectionId':_0x10b7ac['id']})['$promise'][_0x25ed58('0x17e7')](function(_0xd161d7){const _0x47fac9=_0x25ed58,_0x5cbf8e=_0x49cbdd()['map'](_0xd161d7['rows'],function(_0x17c3c8){const _0x3ae8ec=a0_0xd29e;return _0x49cbdd()[_0x3ae8ec('0xe8e')](_0x43611b['tags'],{'id':_0x17c3c8[_0x3ae8ec('0x5db')]});});let _0x46db49=null;_0x43611b['tag']&&(_0x46db49=_0x49cbdd()['find'](_0x43611b[_0x47fac9('0x1522')],{'name':_0x43611b['tag']['tag']}));if(_0x46db49&&!_0x49cbdd()[_0x47fac9('0x26f8')](_0x5cbf8e,['id',_0x46db49['id']])){const _0x683cbf=_0x49cbdd()[_0x47fac9('0xe8e')](_0x43611b[_0x47fac9('0x1522')],{'id':_0x46db49['id']});_0x683cbf[_0x47fac9('0xe5c')]=![],_0x5cbf8e[_0x47fac9('0x269f')](_0x683cbf);}_0x43611b['tags']=_0x5cbf8e;});}})[_0x17910f('0x16df')](function(_0x188e9b){const _0x16e79f=_0x17910f;_0xc0c6f2[_0x16e79f('0x1db9')]({'title':_0x188e9b[_0x16e79f('0x11c5')]?'API:'+_0x188e9b[_0x16e79f('0x11c5')]+_0x16e79f('0x16e4')+_0x188e9b['statusText']:_0x16e79f('0x1221'),'msg':_0x188e9b[_0x16e79f('0x1457')]?JSON[_0x16e79f('0x678')](_0x188e9b['data']):_0x188e9b[_0x16e79f('0x9b6')]()});});function _0x1a29d8(){const _0xfd495c=_0x17910f;_0x43611b[_0xfd495c('0x73e')]=[];const _0x4ac4e7=[];_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x412')]&&_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x412')][_0xfd495c('0x19b')]()===_0xfd495c('0x1ade')&&_0x43611b[_0xfd495c('0x1132')]['appType']===_0xfd495c('0xbdc')&&(_0x43611b['tag'][_0xfd495c('0x2154')]=_0x1c9845[_0xfd495c('0x12af')]?(_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x11d4')]||'')+_0xfd495c('0x2265')+_0x1c9845['cutdigits']+'}':(_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x11d4')]||'')+'${EXTEN}',_0x1c9845[_0xfd495c('0x287')]!==_0xfd495c('0x7ee')?_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x19')][_0xfd495c('0x2567')](_0xfd495c('0xa22'))<0x0&&(_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x19')]+=_0xfd495c('0xa22')):_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x19')]=_0x43611b['tag'][_0xfd495c('0x19')][_0xfd495c('0x737')](_0xfd495c('0xa22'),''));const _0x3fdbd4=_0x49cbdd()[_0xfd495c('0xe8e')](_0x43611b[_0xfd495c('0x1522')],{'name':_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x1132')]});_0x3fdbd4&&(_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x1686')]=_0x3fdbd4['id']);if(_0x43611b[_0xfd495c('0x1132')]['appType']&&_0x43611b['tag'][_0xfd495c('0x1c54')]==='custom'){}else switch((_0x43611b[_0xfd495c('0x1132')]['app']||_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x1c54')])[_0xfd495c('0x19b')]()){case _0xfd495c('0xf2e'):_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x2077')]=_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x2aa')]+'='+_0x43611b[_0xfd495c('0x1132')][_0xfd495c('0x175b')];break;case _0xfd495c('0x8fa'):break;default:_0x4ac4e7[0x0]=_0x43611b['tag'][_0xfd495c('0x1132')],_0x43611b[_0xfd495c('0x1132')]['appdata']=_0x4ac4e7[_0xfd495c('0x1eba')](',');}_0x5f1811(_0x43611b[_0xfd495c('0x1132')]);}function _0x5f1811(_0x4e7375){_0x447457['hide'](_0x4e7375);}}const _0x547c88=_0xac1b9c;_0x27cccf['$inject']=[_0x4376d8('0x28db'),'$scope',_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x27cccf(_0x833731,_0x93637a,_0x11be9b,_0x160b23,_0x34286f,_0x354a76,_0x3bff03,_0x140591,_0x5e5c5a,_0x3e976,_0x40d868){const _0x1be550=_0x4376d8,_0x58edcc=this;_0x58edcc[_0x1be550('0x197c')]=_0x40d868['getCurrentUser'](),_0x58edcc['smsAccount']={},_0x58edcc[_0x1be550('0x188c')]={'count':0x0,'rows':[]},_0x58edcc['selectedSmsAccountInteractions']=[],_0x58edcc[_0x1be550('0x103e')],_0x58edcc['query']={'read':'null','closed':'null','sort':_0x1be550('0x2555'),'includeAll':_0x1be550('0xe34'),'limit':0xa,'page':0x1},_0x58edcc[_0x1be550('0x161d')]=_0x21cc2c,_0x58edcc['deleteConfirm']=_0x4819da,_0x58edcc['smsInteractionDownload']=_0x4d9156,_0x58edcc['success']=_0x334342,_0x58edcc[_0x1be550('0x1f74')]=_0x22b99e,_0x58edcc['spysmsInteraction']=_0x2a2f80,_0x58edcc[_0x1be550('0x585')]=_0x2d437b,_0x58edcc[_0x1be550('0xf9')]=_0x51dbbd,_0x58edcc['deleteSmsAccountInteraction']=_0x511496,_0x58edcc[_0x1be550('0x201e')]=_0x13992b;function _0x21cc2c(_0x5e142a,_0x59b5c3){const _0x234100=_0x1be550;_0x58edcc[_0x234100('0x1060')]=_0x5e142a,_0x58edcc[_0x234100('0x103e')]=typeof _0x59b5c3!==_0x234100('0xfad')?_0x59b5c3:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x58edcc[_0x234100('0x826')][_0x234100('0x17fe')]=_0x58edcc[_0x234100('0x1060')]['id'],_0x58edcc['advancedSearch']={'fields':_0x3f9514()},_0x2d1646();}function _0x2d1646(){const _0x5e7831=_0x1be550;return _0x3e976[_0x5e7831('0x1132')][_0x5e7831('0x1c53')]()[_0x5e7831('0x1af5')][_0x5e7831('0x17e7')](function(_0x1ea29b){const _0x241f8b=_0x5e7831;_0x58edcc[_0x241f8b('0x1522')]=_0x1ea29b||{'count':0x0,'rows':[]};})['then'](function(){const _0x2b89cc=_0x5e7831;_0x58edcc[_0x2b89cc('0x137d')]=_0x524c81();});}function _0x524c81(){const _0x3dbf4a=_0x1be550;return[{'name':_0x3dbf4a('0x1786'),'key':_0x3dbf4a('0x7c9'),'type':_0x3dbf4a('0xbd4'),'label':_0x3dbf4a('0x1ee1')},{'name':'Messages','key':'read','type':_0x3dbf4a('0x2897'),'label':_0x3dbf4a('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x3dbf4a('0x263')},{'value':0x1,'translate':_0x3dbf4a('0x2874')},{'value':null,'translate':_0x3dbf4a('0x9cf')}]},{'name':_0x3dbf4a('0x51c'),'key':_0x3dbf4a('0x2bc'),'type':_0x3dbf4a('0x2897'),'label':_0x3dbf4a('0x12f2'),'customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x3dbf4a('0x2322')},{'value':null,'translate':_0x3dbf4a('0x9cf')}]},{'name':'Agent','key':_0x3dbf4a('0x5e5'),'type':'select','label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':'null','translate':_0x3dbf4a('0x154d')},{'value':undefined,'translate':_0x3dbf4a('0x9cf')}]},{'name':_0x3dbf4a('0xe16'),'key':_0x3dbf4a('0x1132'),'type':_0x3dbf4a('0x1227'),'label':_0x3dbf4a('0x1e4d'),'options':_0x58edcc[_0x3dbf4a('0x1522')][_0x3dbf4a('0x2319')],'placeholder':_0x3dbf4a('0x21aa')}];}function _0x3f9514(){const _0x2ddb56=_0x1be550;return[{'name':'Id','column':'id','type':_0x2ddb56('0x7b8')},{'name':_0x2ddb56('0x239b'),'column':_0x2ddb56('0x239b'),'type':'autocomplete','options':{'searchFields':['firstName',_0x2ddb56('0x8d6'),_0x2ddb56('0x822')],'route':{'model':_0x2ddb56('0x1d2a'),'action':_0x2ddb56('0x1c53'),'params':{'fields':_0x2ddb56('0x2030'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x2ddb56('0x1ed7')],'excludedOperators':['$ne']}},{'name':_0x2ddb56('0x2348'),'column':_0x2ddb56('0x2179'),'type':_0x2ddb56('0x132f'),'options':{'excludedOperators':[_0x2ddb56('0x1767'),_0x2ddb56('0xdaa')]}},{'name':_0x2ddb56('0x2854'),'column':_0x2ddb56('0x139b'),'type':_0x2ddb56('0x132f'),'options':{'excludedOperators':[_0x2ddb56('0x1767'),'$ne']}},{'name':_0x2ddb56('0x51c'),'column':_0x2ddb56('0x2bc'),'type':_0x2ddb56('0x2897'),'values':[{'id':0x0,'translate':_0x2ddb56('0x1f4f')},{'id':0x1,'translate':_0x2ddb56('0x2322')}],'options':{'excludedOperators':[_0x2ddb56('0xdaa')]}},{'name':_0x2ddb56('0x1874'),'column':'User','type':_0x2ddb56('0x682'),'options':{'table':'i','route':{'model':_0x2ddb56('0x221e'),'action':_0x2ddb56('0x1c53'),'params':{'role':_0x2ddb56('0x684'),'fields':_0x2ddb56('0x1f7'),'nolimit':!![]}},'searchFields':['fullname',_0x2ddb56('0x2aa')],'extraOperators':[_0x2ddb56('0x1ed7')],'excludedOperators':[_0x2ddb56('0xdaa')]}},{'name':'Tags','column':_0x2ddb56('0xe16'),'type':'multiselect','options':{'route':{'model':_0x2ddb56('0x1132'),'action':_0x2ddb56('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x2ddb56('0x1786'),'column':'createdAt','type':_0x2ddb56('0xbd4'),'options':{'excludedOperators':[_0x2ddb56('0xdaa')]}},{'name':_0x2ddb56('0xf8b'),'column':_0x2ddb56('0x1aad'),'type':'select','values':[{'id':0x1,'translate':_0x2ddb56('0x2874')},{'id':0x0,'translate':'DASHBOARDS.UNREAD'}],'options':{'excludedOperators':['$ne']}}];}function _0x2d437b(){const _0x159792=_0x1be550;_0x3bff03[_0x159792('0x28e2')]({'controller':_0x159792('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular['element'](_0x140591[_0x159792('0x13aa')]),'clickOutsideToClose':![],'locals':{'fields':_0x58edcc[_0x159792('0xfb6')][_0x159792('0x9c9')],'color':undefined,'storagePath':_0x159792('0x2553')},'fullscreen':!![]})[_0x159792('0x17e7')](function(_0x7c8b08){const _0x162ed1=_0x159792;_0x58edcc[_0x162ed1('0x826')][_0x162ed1('0xfba')]=_0x7c8b08===![]?undefined:_0x7c8b08;if(_0x58edcc[_0x162ed1('0x826')]['search'])_0x22b99e();else _0x7c8b08===![]&&_0x22b99e();})[_0x159792('0x16df')](function(_0x42ab8b){const _0x4b86e3=_0x159792;_0x5e5c5a['error']({'title':_0x4b86e3('0x1288'),'msg':_0x42ab8b[_0x4b86e3('0x1457')]?JSON['stringify'](_0x42ab8b[_0x4b86e3('0x1457')][_0x4b86e3('0x1603')]):_0x42ab8b['toString']()});});}function _0x4d9156(_0x23f739,_0x3ea8b9,_0x500cc2){const _0x151f4f=_0x1be550;return _0x3e976[_0x151f4f('0x17a8')]['download']({'id':_0x23f739['id'],'exists':!![],'attachments':_0x500cc2})['$promise'][_0x151f4f('0x17e7')](function(_0x281d29){const _0x4ed224=_0x151f4f,_0x4869e1=[_0x281d29[_0x4ed224('0x3ca')]];let _0x1190c4=_0x4ed224('0x1219')+_0x23f739['id'];const _0x294ee0=new Blob(_0x4869e1,{'type':_0x281d29[_0x4ed224('0x412')]});_0x1190c4=_0x4ed224('0x21af')+_0x23f739['id']+'.zip';const _0x3b427a=window[_0x4ed224('0x2be')][_0x4ed224('0x68d')]('a');_0x3b427a[_0x4ed224('0x224')](_0x4ed224('0x448'),URL['createObjectURL'](_0x294ee0)),_0x3b427a[_0x4ed224('0x224')](_0x4ed224('0x1244'),_0x1190c4),document['body'][_0x4ed224('0x128c')](_0x3b427a),_0x3b427a[_0x4ed224('0x20d4')]();})[_0x151f4f('0x16df')](function(_0x8c8399){const _0x1f8e78=_0x151f4f;if(_0x8c8399[_0x1f8e78('0x1457')]&&_0x8c8399[_0x1f8e78('0x1457')][_0x1f8e78('0x73e')]&&_0x8c8399['data'][_0x1f8e78('0x73e')][_0x1f8e78('0x1f73')])for(let _0x14fc24=0x0;_0x14fc24<_0x8c8399['data'][_0x1f8e78('0x73e')]['length'];_0x14fc24+=0x1){_0x5e5c5a['error']({'title':_0x8c8399['data'][_0x1f8e78('0x73e')][_0x14fc24][_0x1f8e78('0x412')],'msg':_0x8c8399[_0x1f8e78('0x1457')]['errors'][_0x14fc24][_0x1f8e78('0x1603')]});}else _0x5e5c5a[_0x1f8e78('0x1db9')]({'title':_0x8c8399['status']?_0x1f8e78('0x14f7')+_0x8c8399[_0x1f8e78('0x11c5')]+_0x1f8e78('0x16e4')+_0x8c8399[_0x1f8e78('0x1833')]:_0x1f8e78('0x2879'),'msg':_0x8c8399[_0x1f8e78('0x1457')]?JSON[_0x1f8e78('0x678')](_0x8c8399[_0x1f8e78('0x1457')][_0x1f8e78('0x1603')]):_0x8c8399[_0x1f8e78('0x9b6')]()});});}function _0x4819da(_0x5cdf6c,_0x540e0f){const _0x2107f3=_0x1be550,_0x408764=_0x3bff03[_0x2107f3('0x1121')]()[_0x2107f3('0x24d3')](_0x2107f3('0xd7'))[_0x2107f3('0x211f')](_0x2107f3('0xa53')+(_0x5cdf6c[_0x2107f3('0x2aa')]||_0x5cdf6c['id']&&_0x49cbdd()[_0x2107f3('0x233c')](_0x2107f3('0xb9a'))+_0x5cdf6c['id']||_0x2107f3('0x1219'))+_0x2107f3('0x1d23')+_0x2107f3('0xe9f'))[_0x2107f3('0x2095')](_0x2107f3('0x1b75'))[_0x2107f3('0x104f')](_0x540e0f)['ok']('OK')[_0x2107f3('0x1d47')](_0x2107f3('0x28a0'));_0x3bff03[_0x2107f3('0x28e2')](_0x408764)[_0x2107f3('0x17e7')](function(){_0x511496(_0x5cdf6c);},function(){const _0x475777=_0x2107f3;console['log'](_0x475777('0x28a0'));});}function _0x334342(_0x427a15){const _0x208fe2=_0x1be550;_0x58edcc[_0x208fe2('0x188c')]=_0x427a15||{'count':0x0,'rows':[]};for(let _0x3144d=0x0;_0x3144d<_0x58edcc[_0x208fe2('0x188c')]['rows']['length'];_0x3144d+=0x1){const _0x13864f=_0x58edcc[_0x208fe2('0x188c')][_0x208fe2('0x2319')][_0x3144d];_0x4b6e83(_0x13864f),_0x13864f['Owner']['name']=_0x99fac8(_0x13864f);}}function _0x22b99e(){const _0x344287=_0x1be550;_0x58edcc[_0x344287('0x826')][_0x344287('0xf19')]=(_0x58edcc[_0x344287('0x826')][_0x344287('0x115a')]-0x1)*_0x58edcc[_0x344287('0x826')][_0x344287('0x193b')],_0x58edcc[_0x344287('0x1691')]=_0x3e976[_0x344287('0x17a8')][_0x344287('0x1c53')](_0x58edcc[_0x344287('0x826')],_0x334342)['$promise'];}function _0x2a2f80(_0x1d6fe3,_0x3b76f0){const _0x5a21a9=_0x1be550;_0x3bff03['show']({'controller':_0x5a21a9('0x13b4'),'controllerAs':'vm','templateUrl':_0x46cd84,'parent':angular[_0x5a21a9('0x1ce1')](_0x140591[_0x5a21a9('0x13aa')]),'targetEvent':_0x1d6fe3,'clickOutsideToClose':!![],'onShowing':function(_0x11187e){const _0x72cee6=_0x5a21a9;_0x11187e['vm'][_0x72cee6('0x161d')]({'id':0x1,'channel':_0x72cee6('0x2cd'),'interaction':_0x3b76f0,'spy':!![]},_0x93637a[_0x72cee6('0x178c')]['vm']['setting']);}});}function _0x511496(_0x58e1d8){const _0x3e74dd=_0x1be550;_0x3e976[_0x3e74dd('0x17a8')]['delete']({'id':_0x58e1d8['id']})[_0x3e74dd('0x1af5')]['then'](function(){const _0x515e39=_0x3e74dd;_0x49cbdd()[_0x515e39('0x5f3')](_0x58edcc[_0x515e39('0x188c')][_0x515e39('0x2319')],{'id':_0x58e1d8['id']}),_0x58edcc[_0x515e39('0x188c')][_0x515e39('0x335')]-=0x1,!_0x58edcc['smsAccountInteractions'][_0x515e39('0x2319')][_0x515e39('0x1f73')]&&_0x22b99e(),_0x5e5c5a[_0x515e39('0x130d')]({'title':_0x515e39('0xdca'),'msg':_0x58e1d8[_0x515e39('0x2aa')]?_0x58e1d8[_0x515e39('0x2aa')]+_0x515e39('0x149f'):''});})[_0x3e74dd('0x16df')](function(_0x54f354){const _0x3f0b86=_0x3e74dd;if(_0x54f354[_0x3f0b86('0x1457')]&&_0x54f354[_0x3f0b86('0x1457')][_0x3f0b86('0x73e')]&&_0x54f354[_0x3f0b86('0x1457')]['errors'][_0x3f0b86('0x1f73')]){_0x58edcc[_0x3f0b86('0x73e')]=_0x54f354[_0x3f0b86('0x1457')][_0x3f0b86('0x73e')]||[{'message':_0x54f354['toString'](),'type':_0x3f0b86('0x174a')}];for(let _0x38a402=0x0;_0x38a402<_0x54f354[_0x3f0b86('0x1457')]['errors'][_0x3f0b86('0x1f73')];_0x38a402++){_0x5e5c5a[_0x3f0b86('0x1db9')]({'title':_0x54f354[_0x3f0b86('0x1457')]['errors'][_0x38a402][_0x3f0b86('0x412')],'msg':_0x54f354[_0x3f0b86('0x1457')][_0x3f0b86('0x73e')][_0x38a402][_0x3f0b86('0x1603')]});}}else _0x5e5c5a[_0x3f0b86('0x1db9')]({'title':_0x54f354[_0x3f0b86('0x11c5')]?_0x3f0b86('0x14f7')+_0x54f354[_0x3f0b86('0x11c5')]+_0x3f0b86('0x16e4')+_0x54f354[_0x3f0b86('0x1833')]:_0x3f0b86('0x174a'),'msg':_0x54f354[_0x3f0b86('0x1457')]?JSON['stringify'](_0x54f354['data']['message']):_0x54f354['message']||_0x54f354['toString']()});});}function _0x51dbbd(){const _0x55a690=_0x1be550,_0x26e6b2=angular[_0x55a690('0x14e5')](_0x58edcc['selectedSmsAccountInteractions']);return _0x58edcc['selectedSmsAccountInteractions']=[],_0x26e6b2;}function _0x13992b(_0x141359){const _0x5f8521=_0x1be550,_0x26cbaf=_0x3bff03[_0x5f8521('0x1121')]()[_0x5f8521('0x24d3')](_0x5f8521('0x144e'))['htmlContent'](_0x5f8521('0xa53')+_0x58edcc[_0x5f8521('0x1b4')][_0x5f8521('0x1f73')]+_0x5f8521('0x145a')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x5f8521('0x1d21'))[_0x5f8521('0x104f')](_0x141359)['ok']('OK')[_0x5f8521('0x1d47')](_0x5f8521('0x28a0'));_0x3bff03[_0x5f8521('0x28e2')](_0x26cbaf)[_0x5f8521('0x17e7')](function(){const _0x3fee48=_0x5f8521;_0x58edcc[_0x3fee48('0x1b4')]['forEach'](function(_0x1274de){_0x511496(_0x1274de);}),_0x58edcc[_0x3fee48('0x1b4')]=[];});}function _0x4b6e83(_0x5dfaf9){const _0x12b953=_0x1be550;_0x5dfaf9[_0x12b953('0x239b')]?(_0x5dfaf9[_0x12b953('0x192c')]=(_0x5dfaf9['Contact']['firstName']||'')+'\x20'+(_0x5dfaf9[_0x12b953('0x239b')][_0x12b953('0x8d6')]||''),_0x5dfaf9['contactInfo']=_0x5dfaf9['Contact'][_0x12b953('0xa4f')]):_0x5dfaf9[_0x12b953('0x192c')]=_0x34286f[_0x12b953('0x1acc')]('DASHBOARDS.UNKNOWN');}function _0x99fac8(_0x1dd70a){const _0x49302a=_0x1be550;if(_0x1dd70a[_0x49302a('0x5e5')])return _0x1dd70a[_0x49302a('0x5e5')]===_0x58edcc['currentUser']['id']?_0x34286f[_0x49302a('0x1acc')]('DASHBOARDS.ME'):_0x1dd70a['Owner'][_0x49302a('0xea6')]+'\x20<'+_0x1dd70a['Owner']['internal']+'>';return _0x34286f[_0x49302a('0x1acc')]('DASHBOARDS.NOT_ASSIGNED');}let _0x1726f3=!![],_0x38f8c4=0x1;_0x93637a[_0x1be550('0x620')](_0x1be550('0x4c3'),function(_0x3c3070,_0x29f09d){const _0x2a48ff=_0x1be550;_0x1726f3?_0x354a76(function(){_0x1726f3=![];}):(!_0x29f09d&&(_0x38f8c4=_0x58edcc[_0x2a48ff('0x826')]['page']),_0x3c3070!==_0x29f09d&&(_0x58edcc[_0x2a48ff('0x826')]['page']=0x1),!_0x3c3070&&(_0x58edcc[_0x2a48ff('0x826')][_0x2a48ff('0x115a')]=_0x38f8c4),_0x22b99e());});}const _0x2389de=_0x27cccf,_0x2e4639=_0x4cf2bc['p']+_0x4376d8('0x21be');_0x3fcc10[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),'$scope',_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),_0x4376d8('0xef1'),'$mdDialog','$document',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x3fcc10(_0x275b6c,_0x4a7d47,_0x284465,_0x2fcb4a,_0x574df8,_0x2bc77f,_0x42317b,_0xb2853f,_0x3d50e5,_0x4e5f9a,_0x52fd9d){const _0x3c06ce=_0x4376d8,_0x7fced5=this;_0x7fced5['currentUser']=_0x52fd9d[_0x3c06ce('0x2831')](),_0x7fced5['smsAccount']={},_0x7fced5['smsAccountSmsCannedAnswers']={'count':0x0,'rows':[]},_0x7fced5[_0x3c06ce('0xb89')]=[],_0x7fced5[_0x3c06ce('0x103e')],_0x7fced5[_0x3c06ce('0x826')]={'fields':'createdAt,updatedAt,id,key,value,description','limit':0xa,'page':0x1},_0x7fced5[_0x3c06ce('0x161d')]=_0x5ca2f8,_0x7fced5[_0x3c06ce('0x1a20')]=_0x2ea982,_0x7fced5[_0x3c06ce('0x130d')]=_0x523e88,_0x7fced5[_0x3c06ce('0x153e')]=_0x45ddd4,_0x7fced5[_0x3c06ce('0x7eb')]=_0x275f42,_0x7fced5[_0x3c06ce('0x2398')]=_0x19d554,_0x7fced5['deleteSmsAccountSmsCannedAnswer']=_0x5d10b2,_0x7fced5[_0x3c06ce('0x1253')]=_0x573083;function _0x5ca2f8(_0x249e31,_0x50817b){const _0x2728e0=_0x3c06ce;_0x7fced5[_0x2728e0('0x1060')]=_0x249e31,_0x7fced5[_0x2728e0('0x103e')]=typeof _0x50817b!=='undefined'?_0x50817b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x7fced5[_0x2728e0('0x826')][_0x2728e0('0x17fe')]=_0x7fced5['smsAccount']['id'],_0x7fced5[_0x2728e0('0x826')]['id']=_0x7fced5[_0x2728e0('0x1060')]['id'],_0x45ddd4();}function _0x2ea982(_0x4b0fb2,_0x2e16db){const _0x2fd4e9=_0x3c06ce,_0x2fd446=_0x42317b[_0x2fd4e9('0x1121')]()['title'](_0x2fd4e9('0x233a'))[_0x2fd4e9('0x211f')](_0x2fd4e9('0xa53')+(_0x4b0fb2['name']||_0x4b0fb2['id']&&_0x49cbdd()[_0x2fd4e9('0x233c')](_0x2fd4e9('0xaa9'))+_0x4b0fb2['id']||_0x2fd4e9('0x356'))+''+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x2fd4e9('0xb8c'))['targetEvent'](_0x2e16db)['ok']('OK')['cancel'](_0x2fd4e9('0x28a0'));_0x42317b[_0x2fd4e9('0x28e2')](_0x2fd446)[_0x2fd4e9('0x17e7')](function(){_0x5d10b2(_0x4b0fb2);},function(){const _0x372598=_0x2fd4e9;console[_0x372598('0x1d63')]('CANCEL');});}function _0x523e88(_0xe6c223){const _0x2a8f2d=_0x3c06ce;_0x7fced5[_0x2a8f2d('0x17f1')]=_0xe6c223||{'count':0x0,'rows':[]};}function _0x45ddd4(){const _0x15d75d=_0x3c06ce;_0x7fced5['query'][_0x15d75d('0xf19')]=(_0x7fced5[_0x15d75d('0x826')][_0x15d75d('0x115a')]-0x1)*_0x7fced5['query'][_0x15d75d('0x193b')],_0x7fced5['promise']=_0x4e5f9a[_0x15d75d('0x1060')][_0x15d75d('0x1805')](_0x7fced5[_0x15d75d('0x826')],_0x523e88)[_0x15d75d('0x1af5')];}function _0x275f42(_0x494323,_0x36f46d){const _0x46b6e2=_0x3c06ce;_0x42317b[_0x46b6e2('0x28e2')]({'controller':_0x46b6e2('0x1206'),'controllerAs':'vm','templateUrl':_0x2e4639,'parent':angular[_0x46b6e2('0x1ce1')](_0xb2853f[_0x46b6e2('0x13aa')]),'targetEvent':_0x494323,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x7fced5['smsAccount'],'smsCannedAnswer':_0x36f46d,'smsCannedAnswers':_0x7fced5[_0x46b6e2('0x17f1')]['rows'],'license':null,'setting':null,'crudPermissions':_0x7fced5[_0x46b6e2('0x103e')]}});}function _0x5d10b2(_0x4b1ad2){const _0x12afc5=_0x3c06ce;_0x4e5f9a[_0x12afc5('0x2043')][_0x12afc5('0x1da6')]({'id':_0x4b1ad2['id']})[_0x12afc5('0x1af5')]['then'](function(){const _0x380cbe=_0x12afc5;_0x49cbdd()[_0x380cbe('0x5f3')](_0x7fced5['smsAccountSmsCannedAnswers']['rows'],{'id':_0x4b1ad2['id']}),_0x7fced5[_0x380cbe('0x17f1')][_0x380cbe('0x335')]-=0x1,!_0x7fced5[_0x380cbe('0x17f1')][_0x380cbe('0x2319')][_0x380cbe('0x1f73')]&&_0x45ddd4(),_0x3d50e5[_0x380cbe('0x130d')]({'title':_0x380cbe('0x1ca0'),'msg':_0x4b1ad2[_0x380cbe('0x2aa')]?_0x4b1ad2[_0x380cbe('0x2aa')]+_0x380cbe('0x149f'):''});})[_0x12afc5('0x16df')](function(_0xd09ed3){const _0x243c88=_0x12afc5;if(_0xd09ed3[_0x243c88('0x1457')]&&_0xd09ed3[_0x243c88('0x1457')]['errors']&&_0xd09ed3[_0x243c88('0x1457')][_0x243c88('0x73e')][_0x243c88('0x1f73')]){_0x7fced5['errors']=_0xd09ed3[_0x243c88('0x1457')]['errors']||[{'message':_0xd09ed3['toString'](),'type':'SYSTEM:GETsmsAccount'}];for(let _0x5aad66=0x0;_0x5aad66<_0xd09ed3[_0x243c88('0x1457')][_0x243c88('0x73e')][_0x243c88('0x1f73')];_0x5aad66++){_0x3d50e5[_0x243c88('0x1db9')]({'title':_0xd09ed3[_0x243c88('0x1457')][_0x243c88('0x73e')][_0x5aad66][_0x243c88('0x412')],'msg':_0xd09ed3[_0x243c88('0x1457')][_0x243c88('0x73e')][_0x5aad66][_0x243c88('0x1603')]});}}else _0x3d50e5[_0x243c88('0x1db9')]({'title':_0xd09ed3['status']?_0x243c88('0x14f7')+_0xd09ed3[_0x243c88('0x11c5')]+_0x243c88('0x16e4')+_0xd09ed3[_0x243c88('0x1833')]:_0x243c88('0x174a'),'msg':_0xd09ed3['data']?JSON[_0x243c88('0x678')](_0xd09ed3['data']['message']):_0xd09ed3['message']||_0xd09ed3[_0x243c88('0x9b6')]()});});}function _0x19d554(){const _0x1cc8b9=_0x3c06ce,_0x2227c9=angular[_0x1cc8b9('0x14e5')](_0x7fced5[_0x1cc8b9('0xb89')]);return _0x7fced5[_0x1cc8b9('0xb89')]=[],_0x2227c9;}function _0x573083(_0x49357c){const _0x2cabbb=_0x3c06ce,_0x233d31=_0x42317b['confirm']()[_0x2cabbb('0x24d3')](_0x2cabbb('0x402'))['htmlContent'](_0x2cabbb('0xa53')+_0x7fced5['selectedSmsAccountSmsCannedAnswers'][_0x2cabbb('0x1f73')]+_0x2cabbb('0x145a')+'\x20will\x20be\x20deleted.')[_0x2cabbb('0x2095')](_0x2cabbb('0x2650'))[_0x2cabbb('0x104f')](_0x49357c)['ok']('OK')['cancel'](_0x2cabbb('0x28a0'));_0x42317b['show'](_0x233d31)[_0x2cabbb('0x17e7')](function(){const _0x1bad2f=_0x2cabbb;_0x7fced5[_0x1bad2f('0xb89')][_0x1bad2f('0xccd')](function(_0x2b6712){_0x5d10b2(_0x2b6712);}),_0x7fced5['selectedSmsAccountSmsCannedAnswers']=[];});}let _0x58aaf2=!![],_0x5c6169=0x1;_0x4a7d47[_0x3c06ce('0x620')](_0x3c06ce('0x4c3'),function(_0x52f7d1,_0x1069eb){const _0x31ed22=_0x3c06ce;_0x58aaf2?_0x2bc77f(function(){_0x58aaf2=![];}):(!_0x1069eb&&(_0x5c6169=_0x7fced5[_0x31ed22('0x826')][_0x31ed22('0x115a')]),_0x52f7d1!==_0x1069eb&&(_0x7fced5[_0x31ed22('0x826')][_0x31ed22('0x115a')]=0x1),!_0x52f7d1&&(_0x7fced5[_0x31ed22('0x826')][_0x31ed22('0x115a')]=_0x5c6169),_0x45ddd4());});}const _0x2c8563=_0x3fcc10;_0x32a224[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x1804'),_0x4376d8('0x356'),'api','Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x32a224(_0x40b955,_0x79ab0b,_0x54ba9f,_0x4c47bb,_0x21626a,_0x3fa013,_0x391c38,_0x1d9584,_0xbf837d,_0x2d0614,_0x3ec60f,_0x495ed1,_0xa58bac,_0x3b12a2){const _0x569431=_0x4376d8,_0x1742b9=this;_0x1742b9[_0x569431('0x197c')]=_0x3ec60f['getCurrentUser'](),_0x1742b9[_0x569431('0x73e')]=[],_0x1742b9[_0x569431('0x1aeb')]=_0xa58bac,_0x1742b9[_0x569431('0x1d11')]=_0x495ed1,_0x1742b9[_0x569431('0x103e')]=_0x3b12a2,_0x1742b9[_0x569431('0x6ee')]={},_0x1742b9['passwordPattern']=_0x1742b9[_0x569431('0x1aeb')]&&_0x1742b9[_0x569431('0x1aeb')][_0x569431('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1742b9[_0x569431('0x24d3')]=_0x569431('0x556'),_0x1742b9[_0x569431('0x356')]=angular[_0x569431('0x14e5')](_0xbf837d),_0x1742b9['smsCannedAnswers']=_0x1d9584,_0x1742b9[_0x569431('0x26d8')]=![];!_0x1742b9[_0x569431('0x356')]&&(_0x1742b9[_0x569431('0x356')]={},_0x1742b9[_0x569431('0x24d3')]=_0x569431('0x1659'),_0x1742b9[_0x569431('0x26d8')]=!![]);_0x79ab0b['params']['id']&&(_0x1742b9['smsCannedAnswer'][_0x569431('0x17fe')]=_0x79ab0b[_0x569431('0x16fb')]['id']);_0x1742b9[_0x569431('0x859')]=_0x37b744,_0x1742b9[_0x569431('0x1be6')]=_0x3321e9,_0x1742b9[_0x569431('0xd80')]=_0x497c19,_0x1742b9['getDateFromString']=_0x11ecb3,_0x1742b9[_0x569431('0x136e')]=_0x206f44;function _0x37b744(){const _0x524d17=_0x569431;_0x1742b9[_0x524d17('0x73e')]=[],_0x2d0614[_0x524d17('0x2043')][_0x524d17('0x2439')](_0x1742b9[_0x524d17('0x356')])[_0x524d17('0x1af5')][_0x524d17('0x17e7')](function(_0x415984){const _0x1afd97=_0x524d17;_0x1742b9[_0x1afd97('0x1804')]['unshift'](_0x415984[_0x1afd97('0x16b2')]()),_0x391c38[_0x1afd97('0x130d')]({'title':_0x1afd97('0x80'),'msg':_0x1742b9[_0x1afd97('0x356')][_0x1afd97('0x2aa')]?_0x1742b9[_0x1afd97('0x356')][_0x1afd97('0x2aa')]+_0x1afd97('0x15a'):''}),_0x206f44(_0x415984);})[_0x524d17('0x16df')](function(_0x56545e){const _0x4adb0d=_0x524d17;if(_0x56545e[_0x4adb0d('0x1457')]&&_0x56545e[_0x4adb0d('0x1457')][_0x4adb0d('0x73e')]&&_0x56545e[_0x4adb0d('0x1457')][_0x4adb0d('0x73e')][_0x4adb0d('0x1f73')]){_0x1742b9[_0x4adb0d('0x73e')]=_0x56545e[_0x4adb0d('0x1457')][_0x4adb0d('0x73e')]||[{'message':_0x56545e[_0x4adb0d('0x9b6')](),'type':_0x4adb0d('0x258e')}];for(let _0x2e8f66=0x0;_0x2e8f66<_0x56545e[_0x4adb0d('0x1457')][_0x4adb0d('0x73e')]['length'];_0x2e8f66+=0x1){_0x391c38[_0x4adb0d('0x1db9')]({'title':_0x56545e[_0x4adb0d('0x1457')][_0x4adb0d('0x73e')][_0x2e8f66]['type'],'msg':_0x56545e[_0x4adb0d('0x1457')]['errors'][_0x2e8f66]['message']});}}else _0x391c38[_0x4adb0d('0x1db9')]({'title':_0x56545e[_0x4adb0d('0x11c5')]?_0x4adb0d('0x14f7')+_0x56545e['status']+_0x4adb0d('0x16e4')+_0x56545e[_0x4adb0d('0x1833')]:_0x4adb0d('0x258e'),'msg':_0x56545e[_0x4adb0d('0x1457')]?JSON['stringify'](_0x56545e['data'][_0x4adb0d('0x1603')]):_0x56545e['toString']()});});}function _0x3321e9(){const _0x39d802=_0x569431;_0x1742b9['errors']=[],_0x2d0614['cannedAnswer'][_0x39d802('0x27ba')]({'id':_0x1742b9[_0x39d802('0x356')]['id']},_0x1742b9[_0x39d802('0x356')])['$promise'][_0x39d802('0x17e7')](function(_0x3b3d06){const _0x4410bc=_0x39d802,_0x16d0b8=_0x49cbdd()[_0x4410bc('0xe8e')](_0x1742b9[_0x4410bc('0x1804')],{'id':_0x3b3d06['id']});_0x16d0b8&&_0x49cbdd()[_0x4410bc('0x1ced')](_0x16d0b8,_0x49cbdd()[_0x4410bc('0x230a')](_0x3b3d06[_0x4410bc('0x16b2')](),_0x49cbdd()[_0x4410bc('0x1c0f')](_0x16d0b8))),_0x391c38[_0x4410bc('0x130d')]({'title':'SmsCannedAnswer\x20properly\x20saved!','msg':_0x1742b9['smsCannedAnswer'][_0x4410bc('0x2aa')]?_0x1742b9[_0x4410bc('0x356')][_0x4410bc('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x206f44(_0x3b3d06);})['catch'](function(_0x30e180){const _0x518828=_0x39d802;if(_0x30e180[_0x518828('0x1457')]&&_0x30e180['data'][_0x518828('0x73e')]&&_0x30e180[_0x518828('0x1457')]['errors']['length']){_0x1742b9[_0x518828('0x73e')]=_0x30e180['data'][_0x518828('0x73e')]||[{'message':_0x30e180['toString'](),'type':_0x518828('0x1d77')}];for(let _0x7448b8=0x0;_0x7448b8<_0x30e180[_0x518828('0x1457')]['errors']['length'];_0x7448b8++){_0x391c38[_0x518828('0x1db9')]({'title':_0x30e180[_0x518828('0x1457')][_0x518828('0x73e')][_0x7448b8][_0x518828('0x412')],'msg':_0x30e180['data']['errors'][_0x7448b8][_0x518828('0x1603')]});}}else _0x391c38[_0x518828('0x1db9')]({'title':_0x30e180[_0x518828('0x11c5')]?_0x518828('0x14f7')+_0x30e180[_0x518828('0x11c5')]+_0x518828('0x16e4')+_0x30e180[_0x518828('0x1833')]:'api.cannedAnswer.update','msg':_0x30e180[_0x518828('0x1457')]?JSON[_0x518828('0x678')](_0x30e180[_0x518828('0x1457')][_0x518828('0x1603')]):_0x30e180[_0x518828('0x9b6')]()});});}function _0x497c19(_0x5f450e){const _0x5ba485=_0x569431;_0x1742b9[_0x5ba485('0x73e')]=[];const _0x1547c3=_0x4c47bb[_0x5ba485('0x1121')]()[_0x5ba485('0x24d3')]('Are\x20you\x20sure?')['content']('The\x20smsCannedAnswer\x20will\x20be\x20deleted.')[_0x5ba485('0x2095')]('Delete\x20SmsCannedAnswer')['ok'](_0x5ba485('0x304'))[_0x5ba485('0x1d47')]('Cancel')[_0x5ba485('0x104f')](_0x5f450e);_0x4c47bb[_0x5ba485('0x28e2')](_0x1547c3)['then'](function(){const _0x528c1d=_0x5ba485;_0x2d0614[_0x528c1d('0x2043')]['delete']({'id':_0x1742b9[_0x528c1d('0x356')]['id']})['$promise'][_0x528c1d('0x17e7')](function(){const _0x3604ac=_0x528c1d;_0x49cbdd()[_0x3604ac('0x5f3')](_0x1742b9['smsCannedAnswers'],{'id':_0x1742b9[_0x3604ac('0x356')]['id']}),_0x391c38[_0x3604ac('0x130d')]({'title':_0x3604ac('0x2697'),'msg':(_0x1742b9['smsCannedAnswer'][_0x3604ac('0x2aa')]||_0x3604ac('0x356'))+_0x3604ac('0x149f')}),_0x206f44(_0x1742b9[_0x3604ac('0x356')]);})['catch'](function(_0x3b6a70){const _0x503e9a=_0x528c1d;if(_0x3b6a70[_0x503e9a('0x1457')]&&_0x3b6a70['data'][_0x503e9a('0x73e')]&&_0x3b6a70['data'][_0x503e9a('0x73e')][_0x503e9a('0x1f73')]){_0x1742b9['errors']=_0x3b6a70[_0x503e9a('0x1457')][_0x503e9a('0x73e')]||[{'message':_0x3b6a70[_0x503e9a('0x9b6')](),'type':_0x503e9a('0x26a7')}];for(let _0x512d8f=0x0;_0x512d8f<_0x3b6a70['data'][_0x503e9a('0x73e')][_0x503e9a('0x1f73')];_0x512d8f++){_0x391c38[_0x503e9a('0x1db9')]({'title':_0x3b6a70[_0x503e9a('0x1457')][_0x503e9a('0x73e')][_0x512d8f]['type'],'msg':_0x3b6a70[_0x503e9a('0x1457')][_0x503e9a('0x73e')][_0x512d8f][_0x503e9a('0x1603')]});}}else _0x391c38[_0x503e9a('0x1db9')]({'title':_0x3b6a70[_0x503e9a('0x11c5')]?_0x503e9a('0x14f7')+_0x3b6a70['status']+_0x503e9a('0x16e4')+_0x3b6a70[_0x503e9a('0x1833')]:'api.cannedAnswer.delete','msg':_0x3b6a70[_0x503e9a('0x1457')]?JSON[_0x503e9a('0x678')](_0x3b6a70[_0x503e9a('0x1457')][_0x503e9a('0x1603')]):_0x3b6a70[_0x503e9a('0x1603')]||_0x3b6a70[_0x503e9a('0x9b6')]()});});},function(){});}function _0x11ecb3(_0x441b29){return _0x441b29===null?undefined:new Date(_0x441b29);}function _0x206f44(_0x33fbf1){_0x4c47bb['hide'](_0x33fbf1);}}const _0x4e7263=_0x32a224;_0x653bb3[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window','$state','$mdSidenav',_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x653bb3(_0x5a1a6e,_0x27ee15,_0x25ead4,_0x421612,_0x3e2d65,_0x3341ba,_0x256b56,_0x1c2fc5,_0xf79558,_0x119a65,_0x523a2b){const _0x3c09dc=_0x4376d8,_0x136701=this;_0x136701[_0x3c09dc('0x197c')]=_0x523a2b['getCurrentUser'](),_0x136701[_0x3c09dc('0x23fe')]={'count':0x0,'rows':[]},_0x136701[_0x3c09dc('0x440')]=[],_0x136701[_0x3c09dc('0x103e')],_0x136701[_0x3c09dc('0x1e26')]={'first':'1st','second':_0x3c09dc('0xf67'),'third':_0x3c09dc('0x13a2')},_0x136701[_0x3c09dc('0x826')]={'fields':_0x3c09dc('0x2b9'),'sort':_0x3c09dc('0x1ac6'),'limit':0xa,'page':0x1},_0x136701['init']=_0x172b7b,_0x136701[_0x3c09dc('0x1a20')]=_0x4a9d98,_0x136701[_0x3c09dc('0x130d')]=_0x3e00f9,_0x136701['getDispositions']=_0x490711,_0x136701[_0x3c09dc('0x1eff')]=_0x5e08c,_0x136701[_0x3c09dc('0x2802')]=_0x4f0b71,_0x136701[_0x3c09dc('0xa8e')]=_0x31970e,_0x136701[_0x3c09dc('0xc81')]=_0x293998,_0x136701[_0x3c09dc('0x4cb')]=_0x18a878,_0x136701[_0x3c09dc('0x11d8')]=_0x46b143;function _0x172b7b(_0x4d2a91,_0x46da54){const _0x42bd83=_0x3c09dc;_0x136701[_0x42bd83('0x1060')]=_0x4d2a91||{},_0x136701[_0x42bd83('0x103e')]=typeof _0x46da54!==_0x42bd83('0xfad')?_0x46da54:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x136701[_0x42bd83('0x826')][_0x42bd83('0x17fe')]=_0x136701[_0x42bd83('0x1060')]['id'],_0x136701['query']['id']=_0x136701[_0x42bd83('0x1060')]['id'],_0x490711();}function _0x5e08c(_0x2dc1ca,_0x3eb3ca){const _0x562180=_0x3c09dc;_0x3e2d65[_0x562180('0x28e2')]({'controller':_0x562180('0x8e0'),'controllerAs':'vm','templateUrl':_0x27dcbe,'parent':angular[_0x562180('0x1ce1')](_0x3341ba[_0x562180('0x13aa')]),'targetEvent':_0x2dc1ca,'clickOutsideToClose':!![],'locals':{'disposition':_0x3eb3ca,'dispositions':_0x136701[_0x562180('0x23fe')][_0x562180('0x2319')],'model':{'id':_0x136701[_0x562180('0x1060')]['id'],'field':'SmsAccountId'},'license':null,'setting':null,'crudPermissions':_0x136701['crudPermissions']}})[_0x562180('0x17e7')](function(_0xc6128e){if(_0xc6128e)_0x490711();});}function _0x4a9d98(_0x8da0a1,_0x19d1db){const _0xc10c12=_0x3c09dc,_0x120d66=_0x49cbdd()[_0xc10c12('0x26f8')](_0x136701[_0xc10c12('0x23fe')]['rows'],[_0xc10c12('0x1a27'),_0x8da0a1['id']]),_0x448765=_0x3e2d65['confirm']()[_0xc10c12('0x24d3')](_0x1c2fc5['instant'](_0xc10c12('0x1ab5')))[_0xc10c12('0xd5')](_0x1c2fc5[_0xc10c12('0x1acc')]('TOOLS.NOTIFICATIONS.'+(_0x120d66?_0xc10c12('0xa0a'):_0xc10c12('0xd6c')),{'name':_0x8da0a1[_0xc10c12('0x2aa')]}))['ariaLabel'](_0xc10c12('0x1596'))[_0xc10c12('0x104f')](_0x19d1db)['ok']('OK')[_0xc10c12('0x1d47')](_0x1c2fc5[_0xc10c12('0x1acc')]('TOOLS.CANCEL'));_0x3e2d65[_0xc10c12('0x28e2')](_0x448765)[_0xc10c12('0x17e7')](function(){_0x4f0b71(_0x8da0a1);});}function _0x3e00f9(_0x59bd39){const _0x103af2=_0x3c09dc;_0x136701[_0x103af2('0x23fe')]=_0x59bd39||{'count':0x0,'rows':[]};}function _0x490711(){const _0x239008=_0x3c09dc;_0x136701[_0x239008('0x826')][_0x239008('0xf19')]=(_0x136701['query'][_0x239008('0x115a')]-0x1)*_0x136701[_0x239008('0x826')][_0x239008('0x193b')],_0x136701['promise']=_0xf79558[_0x239008('0x1060')][_0x239008('0x26c2')](_0x136701[_0x239008('0x826')],_0x3e00f9)[_0x239008('0x1af5')];}function _0x4f0b71(_0x17cfec){const _0x55d217=_0x3c09dc;_0xf79558[_0x55d217('0x1f27')]['delete']({'id':_0x17cfec['id']})[_0x55d217('0x1af5')]['then'](function(){const _0x11c8eb=_0x55d217;_0x490711(),_0x119a65[_0x11c8eb('0x130d')]({'title':_0x1c2fc5[_0x11c8eb('0x1acc')](_0x11c8eb('0x10dc'))});})[_0x55d217('0x16df')](function(_0x216878){const _0x2e831e=_0x55d217;if(_0x216878[_0x2e831e('0x1457')]&&_0x216878[_0x2e831e('0x1457')][_0x2e831e('0x73e')]&&_0x216878[_0x2e831e('0x1457')][_0x2e831e('0x73e')][_0x2e831e('0x1f73')]){_0x136701[_0x2e831e('0x73e')]=_0x216878[_0x2e831e('0x1457')][_0x2e831e('0x73e')]||[{'message':_0x216878['toString'](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x2e5e20=0x0;_0x2e5e20<_0x216878[_0x2e831e('0x1457')]['errors'][_0x2e831e('0x1f73')];_0x2e5e20++){_0x119a65[_0x2e831e('0x1db9')]({'title':_0x216878['data'][_0x2e831e('0x73e')][_0x2e5e20]['type'],'msg':_0x216878[_0x2e831e('0x1457')][_0x2e831e('0x73e')][_0x2e5e20][_0x2e831e('0x1603')]});}}else _0x119a65[_0x2e831e('0x1db9')]({'title':_0x216878['status']?_0x2e831e('0x14f7')+_0x216878[_0x2e831e('0x11c5')]+_0x2e831e('0x16e4')+_0x216878['statusText']:_0x2e831e('0x104a'),'msg':_0x216878[_0x2e831e('0x1457')]?JSON['stringify'](_0x216878[_0x2e831e('0x1457')][_0x2e831e('0x1603')]):_0x216878[_0x2e831e('0x1603')]||_0x216878['toString']()});});}function _0x31970e(){const _0x2a336d=_0x3c09dc,_0x4c44b8=angular[_0x2a336d('0x14e5')](_0x136701[_0x2a336d('0x440')]);return _0x136701[_0x2a336d('0x440')]=[],_0x4c44b8;}function _0x293998(_0x3c5c40){const _0x530414=_0x3c09dc,_0x35a7c2=_0x3e2d65['confirm']()[_0x530414('0x24d3')](_0x1c2fc5[_0x530414('0x1acc')](_0x530414('0x21e')))[_0x530414('0xd5')](_0x1c2fc5[_0x530414('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x136701[_0x530414('0x440')][_0x530414('0x1f73')]}))[_0x530414('0x2095')](_0x530414('0x844'))[_0x530414('0x104f')](_0x3c5c40)['ok']('OK')[_0x530414('0x1d47')](_0x1c2fc5[_0x530414('0x1acc')](_0x530414('0x34f')));_0x3e2d65[_0x530414('0x28e2')](_0x35a7c2)[_0x530414('0x17e7')](function(){const _0x18abed=_0x530414;_0x136701[_0x18abed('0x440')][_0x18abed('0xccd')](function(_0x504fbf){_0x4f0b71(_0x504fbf);}),_0x136701[_0x18abed('0x440')]=[];});}function _0x18a878(){const _0x398c23=_0x3c09dc;_0x136701[_0x398c23('0x440')]=[];}function _0x46b143(){const _0x2950b9=_0x3c09dc;_0x136701[_0x2950b9('0x440')]=_0x136701[_0x2950b9('0x23fe')]['rows'];}let _0x11dadd=!![],_0x153476=0x1;_0x5a1a6e[_0x3c09dc('0x620')](_0x3c09dc('0x4c3'),function(_0x3f8770,_0x37fe8f){const _0x49e140=_0x3c09dc;_0x11dadd?_0x256b56(function(){_0x11dadd=![];}):(!_0x37fe8f&&(_0x153476=_0x136701[_0x49e140('0x826')][_0x49e140('0x115a')]),_0x3f8770!==_0x37fe8f&&(_0x136701[_0x49e140('0x826')][_0x49e140('0x115a')]=0x1),!_0x3f8770&&(_0x136701[_0x49e140('0x826')]['page']=_0x153476),_0x490711());});}const _0x5050c4=_0x653bb3,_0x54db8a=_0x4cf2bc['p']+'src/js/modules/main/apps/sms/views/smsAccounts/edit/agentadd/agentadd.html/agentadd.html';_0x94f600[_0x4376d8('0x1b9c')]=['$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1060'),'userProfileSection'];function _0x94f600(_0x35aecf,_0x5dac2d,_0x4c7a2f,_0x5c24e1,_0x9f19ce,_0x404f3e,_0x457a81,_0x29ba0b,_0x548024,_0x2e13eb,_0x177831,_0x34333b){const _0x55cd6c=_0x4376d8,_0x373f7b=this;_0x373f7b[_0x55cd6c('0x197c')]=_0x2e13eb[_0x55cd6c('0x2831')](),_0x373f7b[_0x55cd6c('0x1d11')]=_0x404f3e,_0x373f7b[_0x55cd6c('0x1aeb')]=_0x457a81,_0x373f7b['passwordPattern']=_0x373f7b[_0x55cd6c('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x373f7b['location']=_0x5dac2d[_0x55cd6c('0x14fe')]()+_0x55cd6c('0x14')+_0x5dac2d['host'](),_0x373f7b[_0x55cd6c('0x1060')]=_0x177831||_0x35aecf[_0x55cd6c('0x16fb')][_0x55cd6c('0x1060')]||{},_0x373f7b['userProfileSection']=_0x34333b&&_0x34333b[_0x55cd6c('0x335')]==0x1?_0x34333b[_0x55cd6c('0x2319')][0x0]:null,_0x373f7b[_0x55cd6c('0x103e')]=_0x2e13eb[_0x55cd6c('0x17a9')](_0x373f7b[_0x55cd6c('0x383')]?_0x373f7b[_0x55cd6c('0x383')]['crudPermissions']:null),_0x373f7b[_0x55cd6c('0x6ee')]={},_0x373f7b['selectedTab']=_0x35aecf['params']['tab']||0x0,_0x373f7b[_0x55cd6c('0x2359')]=_0x3ff53c,_0x373f7b[_0x55cd6c('0x99f')]=_0x548024[_0x55cd6c('0x1178')],_0x373f7b[_0x55cd6c('0x763')]=_0x2305ee,_0x373f7b[_0x55cd6c('0x1650')]=_0x2689ac,_0x2e13eb[_0x55cd6c('0x1ba2')]('admin')?_0x29ba0b[_0x55cd6c('0x25b')]['get']({'fields':_0x55cd6c('0x12d2'),'sort':_0x55cd6c('0x2aa')})[_0x55cd6c('0x1af5')][_0x55cd6c('0x17e7')](function(_0x25e723){const _0x3f3876=_0x55cd6c;_0x373f7b[_0x3f3876('0x2504')]=_0x25e723[_0x3f3876('0x2319')]||[];})['catch'](function(_0x240e12){const _0xca83f9=_0x55cd6c;_0x548024[_0xca83f9('0x1db9')]({'title':_0x240e12['status']?_0xca83f9('0x14f7')+_0x240e12[_0xca83f9('0x11c5')]+'\x20-\x20'+_0x240e12[_0xca83f9('0x1833')]:_0xca83f9('0x2410'),'msg':_0x240e12[_0xca83f9('0x1457')]?JSON['stringify'](_0x240e12['data']):_0x240e12[_0xca83f9('0x9b6')]()});}):_0x29ba0b[_0x55cd6c('0x25b')][_0x55cd6c('0x1c53')]({'fields':'id,name','sort':_0x55cd6c('0x2aa')})[_0x55cd6c('0x1af5')]['then'](function(_0x32f033){const _0x4ec1db=_0x55cd6c;_0x373f7b[_0x4ec1db('0x2504')]=_0x32f033[_0x4ec1db('0x2319')]||[];})[_0x55cd6c('0x17e7')](function(){const _0x3f3a66=_0x55cd6c;return _0x29ba0b[_0x3f3a66('0x383')][_0x3f3a66('0x1c53')]({'userProfileId':_0x373f7b[_0x3f3a66('0x197c')][_0x3f3a66('0x1e76')],'sectionId':0x12d})[_0x3f3a66('0x1af5')];})[_0x55cd6c('0x17e7')](function(_0x44c9bc){const _0xee68e=_0x55cd6c,_0x260e55=_0x44c9bc&&_0x44c9bc[_0xee68e('0x2319')]?_0x44c9bc[_0xee68e('0x2319')][0x0]:null;if(!_0x260e55){const _0x599b95=[];let _0x22cc94=null;_0x373f7b[_0xee68e('0x1060')]&&(_0x22cc94=_0x49cbdd()[_0xee68e('0xe8e')](_0x373f7b[_0xee68e('0x2504')],{'id':Number(_0x373f7b[_0xee68e('0x1060')][_0xee68e('0x7f8')])}));for(let _0x2788a6=0x0;_0x2788a6<_0x373f7b[_0xee68e('0x2504')][_0xee68e('0x1f73')];_0x2788a6++){_0x22cc94&&_0x373f7b['lists'][_0x2788a6]['id']===_0x22cc94['id']&&(_0x373f7b['lists'][_0x2788a6][_0xee68e('0xe5c')]=![],_0x599b95[_0xee68e('0x269f')](_0x373f7b[_0xee68e('0x2504')][_0x2788a6]));}_0x373f7b[_0xee68e('0x2504')]=_0x599b95;}else{if(!_0x260e55[_0xee68e('0x9e3')])return _0x29ba0b[_0xee68e('0x78d')]['get']({'sectionId':_0x260e55['id']})[_0xee68e('0x1af5')][_0xee68e('0x17e7')](function(_0x234266){const _0x4f2e48=_0xee68e,_0x59690f=_0x49cbdd()[_0x4f2e48('0x787')](_0x234266['rows'],function(_0x3231bc){const _0x1b4282=_0x4f2e48;return _0x49cbdd()[_0x1b4282('0xe8e')](_0x373f7b[_0x1b4282('0x2504')],{'id':_0x3231bc[_0x1b4282('0x5db')]});});let _0x1314ef=null;_0x373f7b[_0x4f2e48('0x1060')]&&(_0x1314ef=_0x49cbdd()['find'](_0x373f7b['lists'],{'id':Number(_0x373f7b[_0x4f2e48('0x1060')][_0x4f2e48('0x7f8')])}));if(_0x1314ef&&!_0x49cbdd()[_0x4f2e48('0x26f8')](_0x59690f,['id',_0x1314ef['id']])){const _0x1e6e4a=_0x49cbdd()[_0x4f2e48('0xe8e')](_0x373f7b['lists'],{'id':_0x1314ef['id']});_0x1e6e4a[_0x4f2e48('0xe5c')]=![],_0x59690f['push'](_0x1e6e4a);}_0x373f7b['lists']=_0x59690f;});}})[_0x55cd6c('0x16df')](function(_0x55cc9c){const _0x6698c6=_0x55cd6c;_0x548024[_0x6698c6('0x1db9')]({'title':_0x55cc9c['status']?_0x6698c6('0x14f7')+_0x55cc9c['status']+_0x6698c6('0x16e4')+_0x55cc9c[_0x6698c6('0x1833')]:'SYSTEM:GETlists','msg':_0x55cc9c[_0x6698c6('0x1457')]?JSON[_0x6698c6('0x678')](_0x55cc9c[_0x6698c6('0x1457')]):_0x55cc9c['toString']()});}),_0x2e13eb[_0x55cd6c('0x1ba2')]('admin')?_0x29ba0b[_0x55cd6c('0x267a')][_0x55cd6c('0x1c53')]({'fields':'name,id','sort':'name','nolimit':_0x55cd6c('0xe34')})['$promise'][_0x55cd6c('0x17e7')](function(_0x396299){const _0x4253a4=_0x55cd6c;_0x373f7b['pauses']=_0x396299[_0x4253a4('0x2319')]||[];})['catch'](function(_0x67e03b){const _0x28574e=_0x55cd6c;_0x548024[_0x28574e('0x1db9')]({'title':_0x67e03b[_0x28574e('0x11c5')]?_0x28574e('0x14f7')+_0x67e03b[_0x28574e('0x11c5')]+'\x20-\x20'+_0x67e03b['statusText']:'SYSTEM:GET_PAUSES','msg':_0x67e03b['data']?JSON[_0x28574e('0x678')](_0x67e03b[_0x28574e('0x1457')]):_0x67e03b[_0x28574e('0x9b6')]()});}):_0x29ba0b[_0x55cd6c('0x267a')]['get']({'fields':_0x55cd6c('0x90c'),'sort':_0x55cd6c('0x2aa'),'nolimit':_0x55cd6c('0xe34')})['$promise'][_0x55cd6c('0x17e7')](function(_0x590baf){const _0x32223a=_0x55cd6c;_0x373f7b['pauses']=_0x590baf[_0x32223a('0x2319')]||[];})[_0x55cd6c('0x17e7')](function(){const _0x27ada5=_0x55cd6c;return _0x29ba0b[_0x27ada5('0x383')][_0x27ada5('0x1c53')]({'userProfileId':_0x373f7b[_0x27ada5('0x197c')]['userProfileId'],'sectionId':0x3ed})[_0x27ada5('0x1af5')];})[_0x55cd6c('0x17e7')](function(_0x56d1b3){const _0x4a9ea8=_0x55cd6c,_0x43d5a2=_0x56d1b3&&_0x56d1b3[_0x4a9ea8('0x2319')]?_0x56d1b3['rows'][0x0]:null;if(!_0x43d5a2)_0x373f7b[_0x4a9ea8('0x1492')]=[];else{if(!_0x43d5a2['autoAssociation'])return _0x29ba0b[_0x4a9ea8('0x78d')][_0x4a9ea8('0x1c53')]({'sectionId':_0x43d5a2['id']})[_0x4a9ea8('0x1af5')]['then'](function(_0x24a201){const _0x4ec8c1=_0x4a9ea8,_0x3f85a9=_0x49cbdd()[_0x4ec8c1('0x787')](_0x24a201[_0x4ec8c1('0x2319')],function(_0x529855){const _0x54b693=_0x4ec8c1;return _0x49cbdd()[_0x54b693('0xe8e')](_0x373f7b[_0x54b693('0x1492')],{'id':_0x529855[_0x54b693('0x5db')]});});_0x373f7b[_0x4ec8c1('0x1492')][_0x4ec8c1('0xccd')](function(_0x55e4c3){const _0x20eb49=_0x4ec8c1;!_0x49cbdd()[_0x20eb49('0x26f8')](_0x3f85a9,['id',_0x55e4c3['id']])&&(_0x55e4c3['canSelect']=![]),_0x3f85a9[_0x20eb49('0x269f')](_0x55e4c3);}),_0x373f7b[_0x4ec8c1('0x1492')]=_0x3f85a9;});}})['catch'](function(_0x3de88d){const _0x4f2ffb=_0x55cd6c;_0x548024['error']({'title':_0x3de88d[_0x4f2ffb('0x11c5')]?_0x4f2ffb('0x14f7')+_0x3de88d[_0x4f2ffb('0x11c5')]+'\x20-\x20'+_0x3de88d['statusText']:_0x4f2ffb('0x1fae'),'msg':_0x3de88d[_0x4f2ffb('0x1457')]?JSON[_0x4f2ffb('0x678')](_0x3de88d[_0x4f2ffb('0x1457')]):_0x3de88d[_0x4f2ffb('0x9b6')]()});});function _0x3ff53c(_0xc3e383,_0x55ea2c){const _0xd587f0=_0x55cd6c;_0x4c7a2f['show']({'controller':_0xd587f0('0x122e'),'controllerAs':'vm','templateUrl':_0x54db8a,'parent':angular[_0xd587f0('0x1ce1')](_0x5c24e1[_0xd587f0('0x13aa')]),'targetEvent':_0x55ea2c,'clickOutsideToClose':!![],'locals':{'smsAccount':_0xc3e383,'smsAccounts':_0x373f7b[_0xd587f0('0x35e')]?_0x373f7b[_0xd587f0('0x35e')][_0xd587f0('0x2319')]:[],'crudPermissions':_0x373f7b[_0xd587f0('0x103e')],'realtime':![]}});}function _0x2305ee(){const _0x5ae840=_0x55cd6c;_0x35aecf['go'](_0x5ae840('0x14e6'),{},{'reload':_0x5ae840('0x14e6')});}function _0x2689ac(){const _0x496d44=_0x55cd6c;_0x29ba0b[_0x496d44('0x1060')][_0x496d44('0x27ba')]({'id':_0x373f7b[_0x496d44('0x1060')]['id']},_0x373f7b['smsAccount'])['$promise'][_0x496d44('0x17e7')](function(){const _0x1d4bfa=_0x496d44;_0x548024['success']({'title':'SmsAccount\x20updated!','msg':_0x373f7b[_0x1d4bfa('0x1060')][_0x1d4bfa('0x2aa')]?_0x373f7b[_0x1d4bfa('0x1060')][_0x1d4bfa('0x2aa')]+_0x1d4bfa('0x12b0'):''});})[_0x496d44('0x16df')](function(_0x3538df){const _0x583076=_0x496d44;_0x548024[_0x583076('0x1db9')]({'title':_0x3538df[_0x583076('0x11c5')]?_0x583076('0x14f7')+_0x3538df[_0x583076('0x11c5')]+_0x583076('0x16e4')+_0x3538df[_0x583076('0x1833')]:_0x583076('0x174a'),'msg':_0x3538df[_0x583076('0x1457')]?JSON[_0x583076('0x678')](_0x3538df[_0x583076('0x1457')]):_0x3538df[_0x583076('0x9b6')]()});});}}const _0x45ddca=_0x94f600,_0x3e8df0=_0x4cf2bc['p']+_0x4376d8('0x8f5');_0xe9af73[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x35e'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),'setting'];function _0xe9af73(_0x43bc4e,_0x124f21,_0x18ebb5,_0x372428,_0x1f0be8,_0x14fe1e,_0xdb94c,_0x558b5b,_0x275a46,_0xcd0d92,_0x47152e,_0x220c9d,_0x42248f,_0x590671,_0x39bb76,_0x30e332,_0x4a4bf9){const _0x390f5c=_0x4376d8,_0x408dc9=this;_0x408dc9['license']=_0x30e332,_0x408dc9[_0x390f5c('0x1aeb')]=_0x4a4bf9,_0x408dc9[_0x390f5c('0x197c')]=_0x39bb76[_0x390f5c('0x2831')](),_0x408dc9[_0x390f5c('0x35e')]=_0x275a46||{'count':0x0,'rows':[]},_0x408dc9[_0x390f5c('0xdeb')]=_0xcd0d92,_0x408dc9['userProfileSection']=_0x47152e&&_0x47152e[_0x390f5c('0x335')]==0x1?_0x47152e[_0x390f5c('0x2319')][0x0]:null,_0x408dc9[_0x390f5c('0x103e')]=_0x39bb76[_0x390f5c('0x17a9')](_0x408dc9[_0x390f5c('0x383')]?_0x408dc9[_0x390f5c('0x383')]['crudPermissions']:null),_0x408dc9[_0x390f5c('0x23c3')]=_0x390f5c('0x35e'),_0x408dc9['listOrder']='',_0x408dc9[_0x390f5c('0x24e1')]=null,_0x408dc9[_0x390f5c('0x1476')]=[],_0x408dc9['query']={'fields':_0x390f5c('0x2233'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x408dc9[_0x390f5c('0xc41')]=_0x49cbdd()[_0x390f5c('0x8de')]([{'option':'Twilio','value':_0x390f5c('0xb10')},{'option':'Skebby','value':'\x27skebby\x27'},{'option':_0x390f5c('0x18f4'),'value':_0x390f5c('0x20f8')},{'option':'ClickSend','value':'\x27clicksend\x27'},{'option':_0x390f5c('0xe95'),'value':'\x27plivo\x27'},{'option':_0x390f5c('0x7b'),'value':'\x27infobip\x27'},{'option':_0x390f5c('0x17e'),'value':_0x390f5c('0x2494')},{'option':_0x390f5c('0xbb7'),'value':'\x27csc\x27'},{'option':'Intelepeer','value':_0x390f5c('0x1b2a')}],function(_0x1d12a1){const _0x2004de=_0x390f5c;return _0x49cbdd()[_0x2004de('0x737')](_0x1d12a1[_0x2004de('0x175b')],new RegExp('\x27','g'),'');}),_0x408dc9[_0x390f5c('0x35a')]=_0x49cbdd()[_0x390f5c('0x8de')]([{'option':_0x390f5c('0x35c'),'value':'\x27SI\x27'},{'option':_0x390f5c('0x2767'),'value':_0x390f5c('0x2659')},{'option':_0x390f5c('0x28b'),'value':_0x390f5c('0x62e')}],function(_0x3043dc){const _0x4c35fd=_0x390f5c;return _0x49cbdd()[_0x4c35fd('0x737')](_0x3043dc['value'],new RegExp('\x27','g'),'');}),_0x408dc9[_0x390f5c('0xcd4')]=_0x42ce4c,_0x408dc9[_0x390f5c('0x1634')]=_0x1fccd9,_0x408dc9[_0x390f5c('0x2359')]=_0x120585,_0x408dc9[_0x390f5c('0xbf4')]=_0x12f86b,_0x408dc9['success']=_0x47aa9e,_0x408dc9[_0x390f5c('0x24c')]=_0x38dd32,_0x408dc9['createOrEditSmsAccount']=_0x39d6b5,_0x408dc9[_0x390f5c('0x1b81')]=_0x5861c1,_0x408dc9[_0x390f5c('0x1ead')]=_0x3ed986,_0x408dc9[_0x390f5c('0xb44')]=_0x3d83ea,_0x408dc9['deselectSmsAccounts']=_0xfecd70,_0x408dc9[_0x390f5c('0x1f99')]=_0x45d95e,_0x39bb76[_0x390f5c('0x1ba2')](_0x390f5c('0x20bf'))?_0x220c9d[_0x390f5c('0x25b')][_0x390f5c('0x1c53')]({'fields':_0x390f5c('0x12d2'),'sort':_0x390f5c('0x2aa')})[_0x390f5c('0x1af5')]['then'](function(_0x1ab1b5){const _0x11cf4c=_0x390f5c;_0x408dc9[_0x11cf4c('0x2504')]=_0x1ab1b5[_0x11cf4c('0x2319')]||[];})[_0x390f5c('0x16df')](function(_0x1ce70f){const _0xfa3c1b=_0x390f5c;_0x590671['error']({'title':_0x1ce70f[_0xfa3c1b('0x11c5')]?_0xfa3c1b('0x14f7')+_0x1ce70f[_0xfa3c1b('0x11c5')]+_0xfa3c1b('0x16e4')+_0x1ce70f[_0xfa3c1b('0x1833')]:'SYSTEM:GET_LISTS','msg':_0x1ce70f[_0xfa3c1b('0x1457')]?JSON[_0xfa3c1b('0x678')](_0x1ce70f['data']):_0x1ce70f['toString']()});}):_0x220c9d[_0x390f5c('0x25b')][_0x390f5c('0x1c53')]({'fields':_0x390f5c('0x12d2'),'sort':'name'})['$promise']['then'](function(_0x11c182){const _0x404536=_0x390f5c;_0x408dc9[_0x404536('0x2504')]=_0x11c182[_0x404536('0x2319')]||[];})[_0x390f5c('0x17e7')](function(){const _0x2071b2=_0x390f5c;return _0x220c9d['userProfileSection'][_0x2071b2('0x1c53')]({'userProfileId':_0x408dc9['currentUser'][_0x2071b2('0x1e76')],'sectionId':0x12d})['$promise'];})['then'](function(_0x179aa7){const _0x39424a=_0x390f5c,_0x5043b0=_0x179aa7&&_0x179aa7[_0x39424a('0x2319')]?_0x179aa7[_0x39424a('0x2319')][0x0]:null;if(!_0x5043b0){const _0x270a56=[];let _0xf83988=null;_0x408dc9[_0x39424a('0x1060')]&&(_0xf83988=_0x49cbdd()[_0x39424a('0xe8e')](_0x408dc9['lists'],{'id':Number(_0x408dc9[_0x39424a('0x1060')][_0x39424a('0x7f8')])}));for(let _0x4e2cb3=0x0;_0x4e2cb3<_0x408dc9[_0x39424a('0x2504')]['length'];_0x4e2cb3++){_0xf83988&&_0x408dc9['lists'][_0x4e2cb3]['id']===_0xf83988['id']&&(_0x408dc9['lists'][_0x4e2cb3][_0x39424a('0xe5c')]=![],_0x270a56[_0x39424a('0x269f')](_0x408dc9[_0x39424a('0x2504')][_0x4e2cb3]));}_0x408dc9[_0x39424a('0x2504')]=_0x270a56;}else{if(!_0x5043b0[_0x39424a('0x9e3')])return _0x220c9d['userProfileResource'][_0x39424a('0x1c53')]({'sectionId':_0x5043b0['id']})[_0x39424a('0x1af5')][_0x39424a('0x17e7')](function(_0x4c92c5){const _0xdfd0df=_0x39424a,_0x3bb183=_0x49cbdd()[_0xdfd0df('0x787')](_0x4c92c5[_0xdfd0df('0x2319')],function(_0x2edc20){const _0x9e0615=_0xdfd0df;return _0x49cbdd()['find'](_0x408dc9[_0x9e0615('0x2504')],{'id':_0x2edc20[_0x9e0615('0x5db')]});});let _0x48cca0=null;_0x408dc9[_0xdfd0df('0x1060')]&&(_0x48cca0=_0x49cbdd()['find'](_0x408dc9[_0xdfd0df('0x2504')],{'id':Number(_0x408dc9['smsAccount'][_0xdfd0df('0x7f8')])}));if(_0x48cca0&&!_0x49cbdd()[_0xdfd0df('0x26f8')](_0x3bb183,['id',_0x48cca0['id']])){const _0x42c49d=_0x49cbdd()[_0xdfd0df('0xe8e')](_0x408dc9[_0xdfd0df('0x2504')],{'id':_0x48cca0['id']});_0x42c49d['canSelect']=![],_0x3bb183[_0xdfd0df('0x269f')](_0x42c49d);}_0x408dc9['lists']=_0x3bb183;});}})[_0x390f5c('0x16df')](function(_0x5db9ae){const _0x11aa1d=_0x390f5c;_0x590671[_0x11aa1d('0x1db9')]({'title':_0x5db9ae[_0x11aa1d('0x11c5')]?_0x11aa1d('0x14f7')+_0x5db9ae['status']+_0x11aa1d('0x16e4')+_0x5db9ae[_0x11aa1d('0x1833')]:_0x11aa1d('0x1630'),'msg':_0x5db9ae[_0x11aa1d('0x1457')]?JSON[_0x11aa1d('0x678')](_0x5db9ae[_0x11aa1d('0x1457')]):_0x5db9ae[_0x11aa1d('0x9b6')]()});});function _0x42ce4c(_0x439950){const _0x4f96d6=_0x390f5c;_0x18ebb5['go'](_0x4f96d6('0x128'),{'id':_0x439950['id'],'smsAccount':_0x439950,'crudPermissions':_0x408dc9[_0x4f96d6('0x103e')]});}function _0x1fccd9(_0x43a1cb){const _0xf24c3=_0x390f5c;_0x18ebb5['go'](_0xf24c3('0x128'),{'id':_0x43a1cb['id'],'tab':0x5});}function _0x120585(_0x59954a,_0x48ad33){const _0x144dc8=_0x390f5c;_0x1f0be8[_0x144dc8('0x28e2')]({'controller':'SmsAccountagentaddController','controllerAs':'vm','templateUrl':_0x54db8a,'parent':angular[_0x144dc8('0x1ce1')](_0x14fe1e[_0x144dc8('0x13aa')]),'targetEvent':_0x48ad33,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x59954a,'smsAccounts':_0x408dc9['smsAccounts']?_0x408dc9[_0x144dc8('0x35e')][_0x144dc8('0x2319')]:[],'crudPermissions':_0x408dc9[_0x144dc8('0x103e')],'realtime':![]}});}function _0x12f86b(_0x3f084b,_0x512baa){const _0x125de0=_0x390f5c,_0x112f27=_0x1f0be8['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x49cbdd()['startCase'](_0x125de0('0x1060'))+'?')[_0x125de0('0x211f')](_0x125de0('0xa53')+(_0x3f084b['name']||'smsAccount')+_0x125de0('0x1d23')+_0x125de0('0xe9f'))[_0x125de0('0x2095')](_0x125de0('0x150b'))[_0x125de0('0x104f')](_0x512baa)['ok']('OK')[_0x125de0('0x1d47')](_0x125de0('0x28a0'));_0x1f0be8['show'](_0x112f27)['then'](function(){_0x5861c1(_0x3f084b);},function(){const _0x50b5d6=_0x125de0;console[_0x50b5d6('0x1d63')]('CANCEL');});}let _0x4c5850=!![],_0x57898b=0x1;_0x43bc4e['$watch']('vm.query.filter',function(_0x56d954,_0x38d4d8){const _0x2ef2f2=_0x390f5c;_0x4c5850?_0xdb94c(function(){_0x4c5850=![];}):(!_0x38d4d8&&(_0x57898b=_0x408dc9[_0x2ef2f2('0x826')]['page']),_0x56d954!==_0x38d4d8&&(_0x408dc9[_0x2ef2f2('0x826')][_0x2ef2f2('0x115a')]=0x1),!_0x56d954&&(_0x408dc9[_0x2ef2f2('0x826')][_0x2ef2f2('0x115a')]=_0x57898b),_0x408dc9[_0x2ef2f2('0x24c')]());});function _0x47aa9e(_0x9557e9){const _0x1720ed=_0x390f5c;_0x408dc9[_0x1720ed('0x35e')]=_0x9557e9||{'count':0x0,'rows':[]};}function _0x38dd32(){const _0x21a413=_0x390f5c;_0x408dc9[_0x21a413('0x826')][_0x21a413('0xf19')]=(_0x408dc9[_0x21a413('0x826')][_0x21a413('0x115a')]-0x1)*_0x408dc9[_0x21a413('0x826')][_0x21a413('0x193b')],_0x39bb76['hasRole'](_0x21a413('0x20bf'))?_0x408dc9[_0x21a413('0x1691')]=_0x220c9d[_0x21a413('0x1060')]['get'](_0x408dc9[_0x21a413('0x826')],_0x47aa9e)[_0x21a413('0x1af5')]:(_0x408dc9[_0x21a413('0x826')]['id']=_0x408dc9[_0x21a413('0xdeb')]['id'],_0x408dc9['query'][_0x21a413('0x16f8')]=_0x21a413('0x2230'),_0x408dc9[_0x21a413('0x1691')]=_0x220c9d[_0x21a413('0xdeb')]['getResources'](_0x408dc9[_0x21a413('0x826')],_0x47aa9e)[_0x21a413('0x1af5')]);}function _0x39d6b5(_0x1066d2,_0x2eb38f){const _0x2bdabe=_0x390f5c;_0x1f0be8[_0x2bdabe('0x28e2')]({'controller':_0x2bdabe('0x581'),'controllerAs':'vm','templateUrl':_0x3e8df0,'parent':angular[_0x2bdabe('0x1ce1')](_0x14fe1e[_0x2bdabe('0x13aa')]),'targetEvent':_0x1066d2,'clickOutsideToClose':!![],'locals':{'smsAccount':_0x2eb38f,'smsAccounts':_0x408dc9[_0x2bdabe('0x35e')][_0x2bdabe('0x2319')],'license':_0x408dc9[_0x2bdabe('0x1d11')],'setting':_0x408dc9['setting'],'crudPermissions':_0x408dc9[_0x2bdabe('0x103e')]}});}function _0x5861c1(_0x4eb832){const _0x310da0=_0x390f5c;_0x220c9d[_0x310da0('0x1060')][_0x310da0('0x1da6')]({'id':_0x4eb832['id']})[_0x310da0('0x1af5')][_0x310da0('0x17e7')](function(){const _0xebb17d=_0x310da0;_0x49cbdd()[_0xebb17d('0x5f3')](_0x408dc9['smsAccounts'][_0xebb17d('0x2319')],{'id':_0x4eb832['id']}),_0x408dc9['smsAccounts'][_0xebb17d('0x335')]-=0x1,!_0x408dc9[_0xebb17d('0x35e')][_0xebb17d('0x2319')][_0xebb17d('0x1f73')]&&_0x408dc9[_0xebb17d('0x24c')](),_0x590671[_0xebb17d('0x130d')]({'title':_0x49cbdd()[_0xebb17d('0x1c98')]('SmsAccount')+_0xebb17d('0x2673'),'msg':_0x4eb832[_0xebb17d('0x2aa')]?_0x4eb832[_0xebb17d('0x2aa')]+_0xebb17d('0x149f'):''});})[_0x310da0('0x16df')](function(_0x45e79c){const _0x550675=_0x310da0;if(_0x45e79c[_0x550675('0x1457')]&&_0x45e79c[_0x550675('0x1457')]['errors']&&_0x45e79c[_0x550675('0x1457')]['errors'][_0x550675('0x1f73')]){_0x408dc9[_0x550675('0x73e')]=_0x45e79c[_0x550675('0x1457')][_0x550675('0x73e')]||[{'message':_0x45e79c[_0x550675('0x9b6')](),'type':_0x550675('0x23a7')}];for(let _0x3f993e=0x0;_0x3f993e<_0x45e79c[_0x550675('0x1457')][_0x550675('0x73e')][_0x550675('0x1f73')];_0x3f993e++){_0x590671[_0x550675('0x1db9')]({'title':_0x45e79c[_0x550675('0x1457')][_0x550675('0x73e')][_0x3f993e][_0x550675('0x412')],'msg':_0x45e79c[_0x550675('0x1457')][_0x550675('0x73e')][_0x3f993e][_0x550675('0x1603')]});}}else _0x590671['error']({'title':_0x45e79c[_0x550675('0x11c5')]?_0x550675('0x14f7')+_0x45e79c['status']+_0x550675('0x16e4')+_0x45e79c['statusText']:'SYSTEM:DELETEsmsAccount','msg':_0x45e79c[_0x550675('0x1457')]?JSON['stringify'](_0x45e79c['data'][_0x550675('0x1603')]):_0x45e79c[_0x550675('0x1603')]||_0x45e79c[_0x550675('0x9b6')]()});});}function _0x3ed986(){const _0x710906=_0x390f5c,_0x5f0c3b=angular[_0x710906('0x14e5')](_0x408dc9[_0x710906('0x1476')]);return _0x408dc9['selectedSmsAccounts']=[],_0x5f0c3b;}function _0x3d83ea(_0x181d58){const _0x35eec5=_0x390f5c,_0x3ab9d5=_0x1f0be8[_0x35eec5('0x1121')]()[_0x35eec5('0x24d3')](_0x35eec5('0xcbf'))[_0x35eec5('0x211f')](_0x35eec5('0xa53')+_0x408dc9[_0x35eec5('0x1476')][_0x35eec5('0x1f73')]+_0x35eec5('0x145a')+'\x20will\x20be\x20deleted.')[_0x35eec5('0x2095')](_0x35eec5('0x1587'))[_0x35eec5('0x104f')](_0x181d58)['ok']('OK')[_0x35eec5('0x1d47')](_0x35eec5('0x28a0'));_0x1f0be8['show'](_0x3ab9d5)[_0x35eec5('0x17e7')](function(){const _0x10ae76=_0x35eec5;_0x408dc9['selectedSmsAccounts'][_0x10ae76('0xccd')](function(_0x2dd1ee){_0x5861c1(_0x2dd1ee);}),_0x408dc9[_0x10ae76('0x1476')]=[];});}function _0xfecd70(){const _0x67d7ca=_0x390f5c;_0x408dc9[_0x67d7ca('0x1476')]=[];}function _0x45d95e(){const _0x3ce7a9=_0x390f5c;_0x408dc9[_0x3ce7a9('0x1476')]=_0x408dc9[_0x3ce7a9('0x35e')][_0x3ce7a9('0x2319')];}}const _0x332e6d=_0xe9af73;_0x41bbf0[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x33c'),_0x4376d8('0xdb0'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x41bbf0(_0x4f155b,_0x549e90,_0x3f65b6,_0x4ba553,_0x132b1d,_0x1aea69,_0x8faee,_0x47bbe0,_0x303bc4,_0x3fc6fd,_0x59c65d,_0x1d6f2a,_0x464370,_0x2efd17){const _0x1abb4b=_0x4376d8,_0x899cfe=this;_0x899cfe[_0x1abb4b('0x197c')]=_0x59c65d[_0x1abb4b('0x2831')](),_0x899cfe[_0x1abb4b('0x73e')]=[],_0x899cfe[_0x1abb4b('0x1aeb')]=_0x464370,_0x899cfe[_0x1abb4b('0x1d11')]=_0x1d6f2a,_0x899cfe[_0x1abb4b('0x103e')]=_0x2efd17,_0x899cfe[_0x1abb4b('0x6ee')]={},_0x899cfe['passwordPattern']=_0x899cfe[_0x1abb4b('0x1aeb')]&&_0x899cfe[_0x1abb4b('0x1aeb')][_0x1abb4b('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x899cfe['title']=_0x1abb4b('0x7f0'),_0x899cfe[_0x1abb4b('0xdb0')]=angular[_0x1abb4b('0x14e5')](_0x303bc4),_0x899cfe['smsQueues']=_0x47bbe0,_0x899cfe['newSmsQueue']=![];!_0x899cfe[_0x1abb4b('0xdb0')]&&(_0x899cfe['smsQueue']={'strategy':_0x1abb4b('0x928'),'timeout':0xa},_0x899cfe['title']=_0x1abb4b('0x6ab'),_0x899cfe[_0x1abb4b('0x10a3')]=!![]);_0x899cfe['addNewSmsQueue']=_0x3063d6,_0x899cfe[_0x1abb4b('0xee1')]=_0x6b4f7,_0x899cfe[_0x1abb4b('0x1f2f')]=_0x372ded,_0x899cfe[_0x1abb4b('0x1300')]=_0x1d330b,_0x899cfe['closeDialog']=_0x58af42;function _0x3063d6(){const _0x17b98b=_0x1abb4b;_0x899cfe[_0x17b98b('0x73e')]=[],_0x3fc6fd[_0x17b98b('0xdb0')][_0x17b98b('0x2439')](_0x899cfe[_0x17b98b('0xdb0')])[_0x17b98b('0x1af5')][_0x17b98b('0x17e7')](function(_0x38643e){const _0x3fc62d=_0x17b98b;_0x899cfe[_0x3fc62d('0x33c')][_0x3fc62d('0x1893')](_0x38643e['toJSON']()),_0x8faee[_0x3fc62d('0x130d')]({'title':_0x3fc62d('0xe83'),'msg':_0x899cfe[_0x3fc62d('0xdb0')][_0x3fc62d('0x2aa')]?_0x899cfe[_0x3fc62d('0xdb0')][_0x3fc62d('0x2aa')]+_0x3fc62d('0x15a'):''}),_0x58af42(_0x38643e);})[_0x17b98b('0x16df')](function(_0x49dacc){const _0x5b1da6=_0x17b98b;if(_0x49dacc[_0x5b1da6('0x1457')]&&_0x49dacc['data'][_0x5b1da6('0x73e')]&&_0x49dacc[_0x5b1da6('0x1457')][_0x5b1da6('0x73e')]['length']){_0x899cfe[_0x5b1da6('0x73e')]=_0x49dacc['data']['errors']||[{'message':_0x49dacc[_0x5b1da6('0x9b6')](),'type':_0x5b1da6('0x8e9')}];for(let _0x160b61=0x0;_0x160b61<_0x49dacc[_0x5b1da6('0x1457')][_0x5b1da6('0x73e')][_0x5b1da6('0x1f73')];_0x160b61+=0x1){_0x8faee[_0x5b1da6('0x1db9')]({'title':_0x49dacc[_0x5b1da6('0x1457')][_0x5b1da6('0x73e')][_0x160b61][_0x5b1da6('0x412')],'msg':_0x49dacc[_0x5b1da6('0x1457')]['errors'][_0x160b61][_0x5b1da6('0x1603')]});}}else _0x8faee[_0x5b1da6('0x1db9')]({'title':_0x49dacc['status']?_0x5b1da6('0x14f7')+_0x49dacc[_0x5b1da6('0x11c5')]+_0x5b1da6('0x16e4')+_0x49dacc[_0x5b1da6('0x1833')]:'api.smsQueue.save','msg':_0x49dacc[_0x5b1da6('0x1457')]?JSON[_0x5b1da6('0x678')](_0x49dacc[_0x5b1da6('0x1457')][_0x5b1da6('0x1603')]):_0x49dacc[_0x5b1da6('0x9b6')]()});});}function _0x6b4f7(){const _0x46a4d4=_0x1abb4b;_0x899cfe[_0x46a4d4('0x73e')]=[],_0x3fc6fd[_0x46a4d4('0xdb0')]['update']({'id':_0x899cfe['smsQueue']['id']},_0x899cfe[_0x46a4d4('0xdb0')])[_0x46a4d4('0x1af5')][_0x46a4d4('0x17e7')](function(_0x562102){const _0x5c33b9=_0x46a4d4,_0x3d0b0e=_0x49cbdd()[_0x5c33b9('0xe8e')](_0x899cfe[_0x5c33b9('0x33c')],{'id':_0x562102['id']});_0x3d0b0e&&_0x49cbdd()[_0x5c33b9('0x1ced')](_0x3d0b0e,_0x49cbdd()['pick'](_0x562102['toJSON'](),_0x49cbdd()[_0x5c33b9('0x1c0f')](_0x3d0b0e))),_0x8faee[_0x5c33b9('0x130d')]({'title':_0x5c33b9('0x13ac'),'msg':_0x899cfe[_0x5c33b9('0xdb0')][_0x5c33b9('0x2aa')]?_0x899cfe['smsQueue']['name']+'\x20has\x20been\x20saved!':''}),_0x58af42(_0x562102);})[_0x46a4d4('0x16df')](function(_0x4884d5){const _0x58799a=_0x46a4d4;if(_0x4884d5['data']&&_0x4884d5['data'][_0x58799a('0x73e')]&&_0x4884d5[_0x58799a('0x1457')]['errors'][_0x58799a('0x1f73')]){_0x899cfe[_0x58799a('0x73e')]=_0x4884d5['data'][_0x58799a('0x73e')]||[{'message':_0x4884d5['toString'](),'type':'api.smsQueue.update'}];for(let _0x5e8542=0x0;_0x5e8542<_0x4884d5[_0x58799a('0x1457')]['errors']['length'];_0x5e8542++){_0x8faee['error']({'title':_0x4884d5[_0x58799a('0x1457')]['errors'][_0x5e8542][_0x58799a('0x412')],'msg':_0x4884d5[_0x58799a('0x1457')][_0x58799a('0x73e')][_0x5e8542][_0x58799a('0x1603')]});}}else _0x8faee[_0x58799a('0x1db9')]({'title':_0x4884d5['status']?_0x58799a('0x14f7')+_0x4884d5[_0x58799a('0x11c5')]+_0x58799a('0x16e4')+_0x4884d5['statusText']:'api.smsQueue.update','msg':_0x4884d5[_0x58799a('0x1457')]?JSON[_0x58799a('0x678')](_0x4884d5[_0x58799a('0x1457')]['message']):_0x4884d5[_0x58799a('0x9b6')]()});});}function _0x372ded(_0x12cc33){const _0x5bf193=_0x1abb4b;_0x899cfe[_0x5bf193('0x73e')]=[];const _0x1b0b3d=_0x4ba553[_0x5bf193('0x1121')]()[_0x5bf193('0x24d3')](_0x5bf193('0x530'))['content']('The\x20smsQueue\x20will\x20be\x20deleted.')[_0x5bf193('0x2095')](_0x5bf193('0x4b7'))['ok'](_0x5bf193('0x304'))[_0x5bf193('0x1d47')]('Cancel')[_0x5bf193('0x104f')](_0x12cc33);_0x4ba553[_0x5bf193('0x28e2')](_0x1b0b3d)[_0x5bf193('0x17e7')](function(){const _0x21783a=_0x5bf193;_0x3fc6fd['smsQueue'][_0x21783a('0x1da6')]({'id':_0x899cfe[_0x21783a('0xdb0')]['id']})[_0x21783a('0x1af5')]['then'](function(){const _0x3f0cd2=_0x21783a;_0x49cbdd()[_0x3f0cd2('0x5f3')](_0x899cfe[_0x3f0cd2('0x33c')],{'id':_0x899cfe[_0x3f0cd2('0xdb0')]['id']}),_0x8faee['success']({'title':_0x3f0cd2('0x322'),'msg':(_0x899cfe['smsQueue'][_0x3f0cd2('0x2aa')]||_0x3f0cd2('0xdb0'))+'\x20has\x20been\x20deleted!'}),_0x58af42(_0x899cfe['smsQueue']);})[_0x21783a('0x16df')](function(_0x1015e8){const _0xecacec=_0x21783a;if(_0x1015e8[_0xecacec('0x1457')]&&_0x1015e8[_0xecacec('0x1457')]['errors']&&_0x1015e8[_0xecacec('0x1457')][_0xecacec('0x73e')][_0xecacec('0x1f73')]){_0x899cfe[_0xecacec('0x73e')]=_0x1015e8[_0xecacec('0x1457')][_0xecacec('0x73e')]||[{'message':_0x1015e8['toString'](),'type':_0xecacec('0x24c2')}];for(let _0x3fbf6a=0x0;_0x3fbf6a<_0x1015e8['data'][_0xecacec('0x73e')][_0xecacec('0x1f73')];_0x3fbf6a++){_0x8faee['error']({'title':_0x1015e8['data'][_0xecacec('0x73e')][_0x3fbf6a][_0xecacec('0x412')],'msg':_0x1015e8[_0xecacec('0x1457')][_0xecacec('0x73e')][_0x3fbf6a][_0xecacec('0x1603')]});}}else _0x8faee[_0xecacec('0x1db9')]({'title':_0x1015e8[_0xecacec('0x11c5')]?_0xecacec('0x14f7')+_0x1015e8[_0xecacec('0x11c5')]+'\x20-\x20'+_0x1015e8[_0xecacec('0x1833')]:_0xecacec('0x24c2'),'msg':_0x1015e8[_0xecacec('0x1457')]?JSON['stringify'](_0x1015e8['data'][_0xecacec('0x1603')]):_0x1015e8[_0xecacec('0x1603')]||_0x1015e8['toString']()});});},function(){});}function _0x1d330b(_0x18c895){return _0x18c895===null?undefined:new Date(_0x18c895);}function _0x58af42(_0x53e8a6){_0x4ba553['hide'](_0x53e8a6);}}const _0x236786=_0x41bbf0;_0x2cc21c[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),'api',_0x4376d8('0xdb0'),'smsQueues',_0x4376d8('0x20c8'),'$translate','Auth',_0x4376d8('0x103e')];function _0x2cc21c(_0x1c9498,_0x1c7a38,_0x15f852,_0x5890a0,_0x4cbbf8,_0x1a2622,_0x1c690c,_0x47ad47,_0x18c79d,_0x467a86){const _0xe951b7=_0x4376d8,_0x1a0bb9=this;_0x1a0bb9['currentUser']=_0x18c79d[_0xe951b7('0x2831')](),_0x1a0bb9['smsQueue']=_0x4cbbf8,_0x1a0bb9[_0xe951b7('0x103e')]=_0x467a86,_0x1a0bb9['realtime']=_0x1c690c,_0x1a0bb9[_0xe951b7('0x532')]=[],_0x1a0bb9[_0xe951b7('0x2722')]=[],_0x1a0bb9[_0xe951b7('0xc14')]=[],_0x1a0bb9[_0xe951b7('0x181b')]=[],_0x1a0bb9[_0xe951b7('0x1824')]=[],_0x1a0bb9[_0xe951b7('0x25dc')]=![],_0x1a0bb9[_0xe951b7('0xdf0')]=_0xf73c28,_0x1a0bb9[_0xe951b7('0x257a')]=_0x1b556c,_0x1a0bb9[_0xe951b7('0x136e')]=_0x375dc8,_0x1a0bb9[_0xe951b7('0x26f4')]={'readOnly':!_0x1a0bb9[_0xe951b7('0x103e')]['canEdit'],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xe951b7('0x2aa'),'line1':_0xe951b7('0xea6'),'line2':[_0xe951b7('0x2aa'),_0xe951b7('0xe3e')],'line3':'','labelAll':_0x47ad47[_0xe951b7('0x1acc')](_0xe951b7('0x180f')),'labelSelected':_0x47ad47[_0xe951b7('0x1acc')](_0xe951b7('0x1c82')),'transferCallback':function(){const _0x442e72=_0xe951b7,_0x119e68=_0x49cbdd()[_0x442e72('0x137')](_0x1a0bb9[_0x442e72('0x1824')],_0x1a0bb9['selectedItems'],'id');_0x1a0bb9[_0x442e72('0x25dc')]=_0x49cbdd()[_0x442e72('0x109a')](_0x119e68)?![]:!![];}};function _0xf73c28(){const _0x555280=_0xe951b7;return _0x18c79d['hasRole'](_0x555280('0x20bf'))?_0x5b3c5d()[_0x555280('0x16df')](function(_0x10405c){const _0x538a5a=_0x555280;_0x15f852[_0x538a5a('0x1db9')]({'title':_0x10405c[_0x538a5a('0x11c5')]?'API:'+_0x10405c[_0x538a5a('0x11c5')]+_0x538a5a('0x16e4')+_0x10405c[_0x538a5a('0x1833')]:_0x538a5a('0x23e0'),'msg':_0x10405c[_0x538a5a('0x11c5')]?JSON['stringify'](_0x10405c['data']):_0x10405c[_0x538a5a('0x9b6')]()});}):_0x3e9317()['then'](function(_0xebfd84){const _0x24b06c=_0x555280;return _0x1a0bb9[_0x24b06c('0x16f8')]=_0xebfd84,_0x5b3c5d();})[_0x555280('0x16df')](function(_0x27eefa){const _0x376220=_0x555280;_0x15f852[_0x376220('0x1db9')]({'title':_0x27eefa['status']?_0x376220('0x14f7')+_0x27eefa[_0x376220('0x11c5')]+_0x376220('0x16e4')+_0x27eefa[_0x376220('0x1833')]:'SYSTEM:GET_AGENTS','msg':_0x27eefa['status']?JSON[_0x376220('0x678')](_0x27eefa[_0x376220('0x1457')]):_0x27eefa['toString']()});});}function _0x3e9317(){return _0x1c7a38(function(_0x56522d,_0x1d6ea3){const _0x3e08f0=a0_0xd29e;_0x5890a0[_0x3e08f0('0x383')][_0x3e08f0('0x1c53')]({'userProfileId':_0x1a0bb9[_0x3e08f0('0x197c')][_0x3e08f0('0x1e76')],'name':_0x3e08f0('0x2157')})[_0x3e08f0('0x1af5')][_0x3e08f0('0x17e7')](function(_0x30f7d7){const _0x395d0d=_0x3e08f0,_0x5918=_0x30f7d7&&_0x30f7d7[_0x395d0d('0x2319')]?_0x30f7d7[_0x395d0d('0x2319')][0x0]:null;_0x56522d(_0x5918);})['catch'](function(_0x32f55b){_0x1d6ea3(_0x32f55b);});});}function _0x5b3c5d(){return _0x1c7a38(function(_0x23384a,_0x86a0c2){const _0x292d05=a0_0xd29e;return _0x39d1c6()[_0x292d05('0x17e7')](function(_0x43adc9){const _0x2c1f59=_0x292d05;return _0x1a0bb9['items']=_0x43adc9[_0x2c1f59('0x2319')]?_0x43adc9[_0x2c1f59('0x2319')]:[],_0x18c79d[_0x2c1f59('0x1ba2')](_0x2c1f59('0x20bf'))?_0x43adc9:_0x1a0bb9[_0x2c1f59('0x16f8')]?_0x1a0bb9[_0x2c1f59('0x16f8')][_0x2c1f59('0x9e3')]?_0x43adc9:_0x5828a8():null;})[_0x292d05('0x17e7')](function(_0x2bf5b0){const _0x2e64be=_0x292d05,_0x37271c=_0x2bf5b0&&_0x2bf5b0['rows']?_0x2bf5b0['rows']:[];return _0x1a0bb9[_0x2e64be('0x2722')]=_0x49cbdd()['map'](_0x37271c,function(_0x383186){const _0x39fdb8=_0x2e64be;return _0x49cbdd()[_0x39fdb8('0xe8e')](_0x1a0bb9[_0x39fdb8('0x532')],{'id':_0x18c79d['hasRole'](_0x39fdb8('0x20bf'))||_0x1a0bb9['section'][_0x39fdb8('0x9e3')]?_0x383186['id']:_0x383186['resourceId']});}),_0x1a0bb9[_0x2e64be('0x181b')]=angular['copy'](_0x1a0bb9['allowedItems']),_0x1a0bb9[_0x2e64be('0x532')]['forEach'](function(_0x59150c){const _0x9a8455=_0x2e64be,_0xb411ce=_0x49cbdd()[_0x9a8455('0xe8e')](_0x1a0bb9[_0x9a8455('0x2722')],{'id':_0x59150c['id']});_0x18c79d['hasRole'](_0x9a8455('0x20bf'))?_0x59150c[_0x9a8455('0xc98')]=!![]:_0x59150c['isValid']=typeof _0xb411ce!=='undefined'?!![]:![];}),_0x29b718();})[_0x292d05('0x17e7')](function(_0x4f16eb){const _0x1a1e2e=_0x292d05,_0x11666d=_0x4f16eb&&_0x4f16eb[_0x1a1e2e('0x2319')]?_0x4f16eb[_0x1a1e2e('0x2319')]:[];_0x1a0bb9[_0x1a1e2e('0xc14')]=_0x49cbdd()[_0x1a1e2e('0x787')](_0x11666d,function(_0x36cdbc){const _0x282f44=_0x1a1e2e,_0x3773f0=_0x49cbdd()[_0x282f44('0xe8e')](_0x1a0bb9['items'],{'id':_0x36cdbc['id']});return _0x3773f0[_0x282f44('0x122c')]=_0x36cdbc[_0x282f44('0x2873')]?'penalty\x20'+_0x36cdbc['UserSmsQueue'][_0x282f44('0x122c')]:'',_0x3773f0[_0x282f44('0xe3e')]=typeof _0x36cdbc['internal']!==_0x282f44('0xfad')?'<'+_0x36cdbc[_0x282f44('0xe3e')]+'>':'',_0x3773f0;}),_0x1a0bb9[_0x1a1e2e('0x1824')]=angular[_0x1a1e2e('0x14e5')](_0x1a0bb9[_0x1a1e2e('0xc14')]),_0x1a0bb9[_0x1a1e2e('0x26f4')][_0x1a1e2e('0xc14')]=_0x1a0bb9[_0x1a1e2e('0xc14')],_0x1a0bb9[_0x1a1e2e('0x26f4')]['items']=_0x49cbdd()[_0x1a1e2e('0x1ada')](_0x1a0bb9[_0x1a1e2e('0x2722')],_0x1a0bb9[_0x1a1e2e('0x26f4')][_0x1a1e2e('0xc14')],'id'),_0x23384a();})['catch'](function(_0xd427ff){_0x86a0c2(_0xd427ff);});});}function _0x5828a8(){return _0x1c7a38(function(_0x48b596,_0x4b9d04){const _0xa6991e=a0_0xd29e;return _0x5890a0[_0xa6991e('0x78d')][_0xa6991e('0x1c53')]({'sectionId':_0x1a0bb9[_0xa6991e('0x16f8')]['id'],'nolimit':!![]})[_0xa6991e('0x1af5')][_0xa6991e('0x17e7')](function(_0x453dcf){_0x48b596(_0x453dcf);})[_0xa6991e('0x16df')](function(_0x4e4c10){_0x4b9d04(_0x4e4c10);});});}function _0x29b718(){return _0x1c7a38(function(_0x576cd3,_0x1aca9f){const _0x48780a=a0_0xd29e;return _0x5890a0['smsQueue'][_0x48780a('0x1dac')]({'id':_0x1a0bb9[_0x48780a('0xdb0')]['id'],'fields':_0x48780a('0x1152'),'nolimit':!![],'role':_0x48780a('0x684')})['$promise'][_0x48780a('0x17e7')](function(_0xc4883c){_0x576cd3(_0xc4883c);})[_0x48780a('0x16df')](function(_0x1603cb){_0x1aca9f(_0x1603cb);});});}function _0x39d1c6(){return _0x1c7a38(function(_0x2ff24f,_0x195bbf){const _0x5ad585=a0_0xd29e;return _0x5890a0[_0x5ad585('0x221e')][_0x5ad585('0x1c53')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x5ad585('0x684')})[_0x5ad585('0x1af5')][_0x5ad585('0x17e7')](function(_0x2e35c2){_0x2ff24f(_0x2e35c2);})['catch'](function(_0x1df8e5){_0x195bbf(_0x1df8e5);});});}function _0x511a93(_0x178921){return _0x1c7a38(function(_0x38c053,_0x5ba6ed){const _0x367321=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x178921)?_0x38c053():_0x5890a0[_0x367321('0xdb0')][_0x367321('0x1f22')]({'id':_0x1a0bb9[_0x367321('0xdb0')]['id'],'ids':_0x49cbdd()['map'](_0x178921,'id')})[_0x367321('0x1af5')][_0x367321('0x17e7')](function(){_0x38c053();})[_0x367321('0x16df')](function(_0x130b77){_0x5ba6ed(_0x130b77);});});}function _0xecea4a(_0x48230e){return _0x1c7a38(function(_0x9a040,_0x19ca8e){const _0x2298cf=a0_0xd29e;_0x49cbdd()[_0x2298cf('0x109a')](_0x48230e)?_0x9a040():_0x5890a0['smsQueue'][_0x2298cf('0x1625')]({'id':_0x1a0bb9[_0x2298cf('0xdb0')]['id'],'ids':_0x49cbdd()[_0x2298cf('0x787')](_0x48230e,'id')})[_0x2298cf('0x1af5')][_0x2298cf('0x17e7')](function(){_0x9a040();})['catch'](function(_0x385d64){_0x19ca8e(_0x385d64);});});}function _0x1b556c(){const _0xca2f7e=_0xe951b7,_0x5b85a4=_0x49cbdd()[_0xca2f7e('0x1ada')](_0x1a0bb9['startingSelectedItems'],_0x1a0bb9[_0xca2f7e('0xc14')],'id'),_0x2c1d9f=_0x49cbdd()[_0xca2f7e('0x1ada')](_0x1a0bb9[_0xca2f7e('0xc14')],_0x1a0bb9['startingSelectedItems'],'id');return _0xecea4a(_0x5b85a4)[_0xca2f7e('0x17e7')](function(){return _0x511a93(_0x2c1d9f);})[_0xca2f7e('0x17e7')](function(){const _0x463bdf=_0xca2f7e;_0x1a0bb9[_0x463bdf('0x25dc')]=![],_0x1a0bb9[_0x463bdf('0x181b')]=angular['copy'](_0x1a0bb9['allowedItems']),_0x1a0bb9[_0x463bdf('0x1824')]=angular[_0x463bdf('0x14e5')](_0x1a0bb9['selectedItems']),_0x15f852[_0x463bdf('0x130d')]({'title':_0x463bdf('0x9d1'),'msg':'Agents\x20association\x20has\x20been\x20updated!'});})[_0xca2f7e('0x16df')](function(_0x523a16){const _0xb09997=_0xca2f7e;_0x15f852[_0xb09997('0x1db9')]({'title':_0x523a16[_0xb09997('0x11c5')]?_0xb09997('0x14f7')+_0x523a16[_0xb09997('0x11c5')]+_0xb09997('0x16e4')+_0x523a16['statusText']:_0xb09997('0x244e'),'msg':_0x523a16[_0xb09997('0x11c5')]?JSON['stringify'](_0x523a16[_0xb09997('0x1457')]):_0x523a16['toString']()});});}function _0x375dc8(){const _0x480f8c=_0xe951b7;_0x1c9498[_0x480f8c('0x212a')]();}}const _0x14b5cb=_0x2cc21c;_0x3bf1fe['$inject']=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0xdb0'),'$translate','Auth',_0x4376d8('0x103e')];function _0x3bf1fe(_0x5a74a0,_0x8a308f,_0x1cecbb,_0x1fbc58,_0x3c0659,_0x112669,_0x254419,_0x14fd5f){const _0x14068c=_0x4376d8,_0x2ccb3f=this;_0x2ccb3f[_0x14068c('0x197c')]=_0x254419[_0x14068c('0x2831')](),_0x2ccb3f[_0x14068c('0xdb0')]=_0x3c0659,_0x2ccb3f[_0x14068c('0x103e')]=_0x14fd5f,_0x2ccb3f[_0x14068c('0x532')]=[],_0x2ccb3f[_0x14068c('0x2722')]=[],_0x2ccb3f[_0x14068c('0xc14')]=[],_0x2ccb3f[_0x14068c('0x181b')]=[],_0x2ccb3f[_0x14068c('0x1824')]=[],_0x2ccb3f[_0x14068c('0x25dc')]=![],_0x2ccb3f[_0x14068c('0x26f4')]={'readOnly':!_0x2ccb3f[_0x14068c('0x103e')][_0x14068c('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x14068c('0x2aa'),'line1':'name','line2':'','line3':'','labelAll':_0x112669[_0x14068c('0x1acc')](_0x14068c('0x2034')),'labelSelected':_0x112669[_0x14068c('0x1acc')]('SMS.SELECTED_TEAMS'),'transferCallback':function(){const _0x26acf0=_0x14068c,_0x2c3b8a=_0x49cbdd()[_0x26acf0('0x137')](_0x2ccb3f['startingSelectedItems'],_0x2ccb3f[_0x26acf0('0xc14')],'id');_0x2ccb3f[_0x26acf0('0x25dc')]=_0x49cbdd()[_0x26acf0('0x109a')](_0x2c3b8a)?![]:!![];}},_0x2ccb3f['onInit']=_0x1bcebe,_0x2ccb3f['saveTeams']=_0x2e65ad,_0x2ccb3f['closeDialog']=_0x39662c;function _0x1bcebe(){const _0x309147=_0x14068c;return _0x254419[_0x309147('0x1ba2')]('admin')?_0x5d56d3()[_0x309147('0x16df')](function(_0x4fc865){const _0x2161b7=_0x309147;_0x1cecbb[_0x2161b7('0x1db9')]({'title':_0x4fc865[_0x2161b7('0x11c5')]?_0x2161b7('0x14f7')+_0x4fc865[_0x2161b7('0x11c5')]+_0x2161b7('0x16e4')+_0x4fc865[_0x2161b7('0x1833')]:'SYSTEM:GET_TEAMS','msg':_0x4fc865[_0x2161b7('0x11c5')]?JSON[_0x2161b7('0x678')](_0x4fc865[_0x2161b7('0x1457')]):_0x4fc865['toString']()});}):_0x47b543()[_0x309147('0x17e7')](function(_0x2a341c){const _0x4658e9=_0x309147;return _0x2ccb3f[_0x4658e9('0x16f8')]=_0x2a341c,_0x5d56d3();})[_0x309147('0x16df')](function(_0x54ab15){const _0x13575c=_0x309147;_0x1cecbb['error']({'title':_0x54ab15['status']?_0x13575c('0x14f7')+_0x54ab15['status']+_0x13575c('0x16e4')+_0x54ab15[_0x13575c('0x1833')]:_0x13575c('0x20cf'),'msg':_0x54ab15['status']?JSON[_0x13575c('0x678')](_0x54ab15[_0x13575c('0x1457')]):_0x54ab15['toString']()});});}function _0x47b543(){return _0x8a308f(function(_0x500a90,_0x553459){const _0x252543=a0_0xd29e;_0x1fbc58[_0x252543('0x383')][_0x252543('0x1c53')]({'userProfileId':_0x2ccb3f[_0x252543('0x197c')]['userProfileId'],'name':_0x252543('0x1cf2')})['$promise'][_0x252543('0x17e7')](function(_0x31942d){const _0x3e1342=_0x252543,_0x4c0987=_0x31942d&&_0x31942d[_0x3e1342('0x2319')]?_0x31942d[_0x3e1342('0x2319')][0x0]:null;_0x500a90(_0x4c0987);})[_0x252543('0x16df')](function(_0x2c6c2d){_0x553459(_0x2c6c2d);});});}function _0x5d56d3(){return _0x8a308f(function(_0x1bba68,_0x36f8e4){const _0x1ab64a=a0_0xd29e;return _0x24f1fd()[_0x1ab64a('0x17e7')](function(_0x1a9bbb){const _0x291e40=_0x1ab64a;return _0x2ccb3f['items']=_0x1a9bbb[_0x291e40('0x2319')]?_0x1a9bbb[_0x291e40('0x2319')]:[],_0x254419[_0x291e40('0x1ba2')](_0x291e40('0x20bf'))?_0x1a9bbb:_0x2ccb3f[_0x291e40('0x16f8')]?_0x2ccb3f[_0x291e40('0x16f8')][_0x291e40('0x9e3')]?_0x1a9bbb:_0x4d4a8e():null;})['then'](function(_0x586af0){const _0x20d20f=_0x1ab64a,_0x5ba867=_0x586af0&&_0x586af0[_0x20d20f('0x2319')]?_0x586af0[_0x20d20f('0x2319')]:[];return _0x2ccb3f[_0x20d20f('0x2722')]=_0x49cbdd()['map'](_0x5ba867,function(_0x856f6a){const _0x39e17d=_0x20d20f;return _0x49cbdd()['find'](_0x2ccb3f[_0x39e17d('0x532')],{'id':_0x254419['hasRole']('admin')||_0x2ccb3f[_0x39e17d('0x16f8')]['autoAssociation']?_0x856f6a['id']:_0x856f6a[_0x39e17d('0x5db')]});}),_0x2ccb3f[_0x20d20f('0x532')][_0x20d20f('0xccd')](function(_0x23841d){const _0x57e6a1=_0x20d20f,_0x446bdd=_0x49cbdd()[_0x57e6a1('0xe8e')](_0x2ccb3f[_0x57e6a1('0x2722')],{'id':_0x23841d['id']});_0x254419[_0x57e6a1('0x1ba2')]('admin')?_0x23841d[_0x57e6a1('0xc98')]=!![]:_0x23841d[_0x57e6a1('0xc98')]=typeof _0x446bdd!==_0x57e6a1('0xfad')?!![]:![];}),_0x3b6b12();})[_0x1ab64a('0x17e7')](function(_0x14bf65){const _0xa9e769=_0x1ab64a,_0x258dcb=_0x14bf65&&_0x14bf65[_0xa9e769('0x2319')]?_0x14bf65[_0xa9e769('0x2319')]:[];_0x2ccb3f[_0xa9e769('0xc14')]=_0x49cbdd()[_0xa9e769('0x787')](_0x258dcb,function(_0x5b9358){const _0x591662=_0xa9e769;return _0x49cbdd()[_0x591662('0xe8e')](_0x2ccb3f[_0x591662('0x532')],{'id':_0x5b9358['id']});}),_0x2ccb3f[_0xa9e769('0x1824')]=angular[_0xa9e769('0x14e5')](_0x2ccb3f[_0xa9e769('0xc14')]),_0x2ccb3f[_0xa9e769('0x26f4')][_0xa9e769('0xc14')]=_0x2ccb3f[_0xa9e769('0xc14')],_0x2ccb3f[_0xa9e769('0x26f4')][_0xa9e769('0x532')]=_0x49cbdd()[_0xa9e769('0x1ada')](_0x2ccb3f['allowedItems'],_0x2ccb3f['dualMultiselectOptions'][_0xa9e769('0xc14')],'id'),_0x1bba68();})['catch'](function(_0x1a75a2){_0x36f8e4(_0x1a75a2);});});}function _0x4d4a8e(){return _0x8a308f(function(_0x5a4e94,_0x140e04){const _0x525adb=a0_0xd29e;return _0x1fbc58[_0x525adb('0x78d')]['get']({'sectionId':_0x2ccb3f[_0x525adb('0x16f8')]['id'],'nolimit':!![]})[_0x525adb('0x1af5')]['then'](function(_0x56c1d9){_0x5a4e94(_0x56c1d9);})[_0x525adb('0x16df')](function(_0x1e99b8){_0x140e04(_0x1e99b8);});});}function _0x3b6b12(){return _0x8a308f(function(_0x4dda02,_0x2e46cb){const _0x2648e6=a0_0xd29e;return _0x1fbc58[_0x2648e6('0xdb0')][_0x2648e6('0x141f')]({'id':_0x2ccb3f[_0x2648e6('0xdb0')]['id'],'fields':_0x2648e6('0x12d2'),'nolimit':!![]})[_0x2648e6('0x1af5')][_0x2648e6('0x17e7')](function(_0x152a8f){_0x4dda02(_0x152a8f);})[_0x2648e6('0x16df')](function(_0x49d6d9){_0x2e46cb(_0x49d6d9);});});}function _0x24f1fd(){return _0x8a308f(function(_0x5a2117,_0x757d16){const _0x8d92fb=a0_0xd29e;return _0x1fbc58[_0x8d92fb('0x176')][_0x8d92fb('0x1c53')]({'fields':_0x8d92fb('0x12d2'),'nolimit':!![]})[_0x8d92fb('0x1af5')][_0x8d92fb('0x17e7')](function(_0x3b8327){_0x5a2117(_0x3b8327);})['catch'](function(_0x333fc2){_0x757d16(_0x333fc2);});});}function _0x1a2835(_0x1bbd00){return _0x8a308f(function(_0x126749,_0x15050e){const _0x2d27bd=a0_0xd29e;_0x49cbdd()[_0x2d27bd('0x109a')](_0x1bbd00)?_0x126749():_0x1fbc58[_0x2d27bd('0xdb0')][_0x2d27bd('0x670')]({'id':_0x2ccb3f['smsQueue']['id'],'ids':_0x49cbdd()[_0x2d27bd('0x787')](_0x1bbd00,'id')})[_0x2d27bd('0x1af5')]['then'](function(){_0x126749();})['catch'](function(_0x34540d){_0x15050e(_0x34540d);});});}function _0x1a0c6b(_0x22db81){return _0x8a308f(function(_0x543484,_0xba1972){const _0x4e798b=a0_0xd29e;_0x49cbdd()[_0x4e798b('0x109a')](_0x22db81)?_0x543484():_0x1fbc58[_0x4e798b('0xdb0')][_0x4e798b('0x27e8')]({'id':_0x2ccb3f['smsQueue']['id'],'ids':_0x49cbdd()['map'](_0x22db81,'id')})[_0x4e798b('0x1af5')][_0x4e798b('0x17e7')](function(){_0x543484();})[_0x4e798b('0x16df')](function(_0x1c1911){_0xba1972(_0x1c1911);});});}function _0x2e65ad(){const _0x126622=_0x14068c,_0xb091ec=_0x49cbdd()[_0x126622('0x1ada')](_0x2ccb3f[_0x126622('0x1824')],_0x2ccb3f['selectedItems'],'id'),_0x62af62=_0x49cbdd()['differenceBy'](_0x2ccb3f[_0x126622('0xc14')],_0x2ccb3f[_0x126622('0x1824')],'id');return _0x1a0c6b(_0xb091ec)['then'](function(){return _0x1a2835(_0x62af62);})[_0x126622('0x17e7')](function(){const _0x366903=_0x126622;_0x2ccb3f['pendingChanges']=![],_0x2ccb3f[_0x366903('0x181b')]=angular[_0x366903('0x14e5')](_0x2ccb3f[_0x366903('0x2722')]),_0x2ccb3f[_0x366903('0x1824')]=angular[_0x366903('0x14e5')](_0x2ccb3f[_0x366903('0xc14')]),_0x1cecbb[_0x366903('0x130d')]({'title':_0x366903('0x9d1'),'msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x126622('0x16df')](function(_0x42349d){const _0x595b42=_0x126622;_0x1cecbb[_0x595b42('0x1db9')]({'title':_0x42349d['status']?_0x595b42('0x14f7')+_0x42349d[_0x595b42('0x11c5')]+_0x595b42('0x16e4')+_0x42349d[_0x595b42('0x1833')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x42349d[_0x595b42('0x11c5')]?JSON[_0x595b42('0x678')](_0x42349d[_0x595b42('0x1457')]):_0x42349d[_0x595b42('0x9b6')]()});});}function _0x39662c(){const _0x41fce0=_0x14068c;_0x5a74a0[_0x41fce0('0x212a')]();}}const _0x4994d7=_0x3bf1fe,_0x59bef5=_0x4cf2bc['p']+_0x4376d8('0x1f51');_0x531c1b[_0x4376d8('0x1b9c')]=['$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0xdb0'),_0x4376d8('0x383')];function _0x531c1b(_0x503e6d,_0x503afd,_0x3182c0,_0x246ace,_0x494b20,_0x16047f,_0x29840e,_0x3c473d,_0x5e0536,_0x47e750,_0x39aca4,_0xaa5f7b){const _0x4dee8d=_0x4376d8,_0x5338a5=this;_0x5338a5[_0x4dee8d('0x197c')]=_0x47e750['getCurrentUser'](),_0x5338a5[_0x4dee8d('0x1d11')]=_0x16047f,_0x5338a5[_0x4dee8d('0x1aeb')]=_0x29840e,_0x5338a5[_0x4dee8d('0x1572')]=_0x5338a5['setting'][_0x4dee8d('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5338a5[_0x4dee8d('0xaed')]=_0x503afd[_0x4dee8d('0x14fe')]()+_0x4dee8d('0x14')+_0x503afd[_0x4dee8d('0x108')](),_0x5338a5['smsQueue']=_0x39aca4||_0x503e6d[_0x4dee8d('0x16fb')][_0x4dee8d('0xdb0')]||{},_0x5338a5[_0x4dee8d('0x383')]=_0xaa5f7b&&_0xaa5f7b[_0x4dee8d('0x335')]==0x1?_0xaa5f7b[_0x4dee8d('0x2319')][0x0]:null,_0x5338a5[_0x4dee8d('0x103e')]=_0x47e750[_0x4dee8d('0x17a9')](_0x5338a5[_0x4dee8d('0x383')]?_0x5338a5[_0x4dee8d('0x383')]['crudPermissions']:null),_0x5338a5[_0x4dee8d('0x6ee')]={},_0x5338a5[_0x4dee8d('0xde7')]=_0x503e6d[_0x4dee8d('0x16fb')][_0x4dee8d('0x1523')]||0x0,_0x5338a5[_0x4dee8d('0x1e34')]=_0x5662ba,_0x5338a5[_0x4dee8d('0x2359')]=_0x5e229b,_0x5338a5[_0x4dee8d('0x99f')]=_0x5e0536['info'],_0x5338a5[_0x4dee8d('0x17cd')]=_0x370f13,_0x5338a5[_0x4dee8d('0xee1')]=_0x1fb886;function _0x5662ba(_0x609773,_0x5c7aa8){const _0x3710fa=_0x4dee8d;_0x3182c0[_0x3710fa('0x28e2')]({'controller':'SmsQueueteamaddController','controllerAs':'vm','templateUrl':_0x59bef5,'parent':angular[_0x3710fa('0x1ce1')](_0x246ace[_0x3710fa('0x13aa')]),'targetEvent':_0x5c7aa8,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x609773,'smsQueues':_0x5338a5[_0x3710fa('0x33c')]?_0x5338a5['smsQueues'][_0x3710fa('0x2319')]:[],'crudPermissions':_0x5338a5['crudPermissions']}});}function _0x5e229b(_0x9a275d,_0x2c55ce){const _0x17eeaa=_0x4dee8d;_0x3182c0[_0x17eeaa('0x28e2')]({'controller':'SmsQueueagentaddController','controllerAs':'vm','templateUrl':_0x39d0ff,'parent':angular[_0x17eeaa('0x1ce1')](_0x246ace['body']),'targetEvent':_0x2c55ce,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x9a275d,'smsQueues':_0x5338a5[_0x17eeaa('0x33c')]?_0x5338a5[_0x17eeaa('0x33c')]['rows']:[],'crudPermissions':_0x5338a5['crudPermissions'],'realtime':![]}});}function _0x370f13(){const _0x1c50e5=_0x4dee8d;_0x503e6d['go'](_0x1c50e5('0xe52'),{},{'reload':_0x1c50e5('0xe52')});}function _0x1fb886(){const _0x4be3d3=_0x4dee8d;_0x3c473d['smsQueue'][_0x4be3d3('0x27ba')]({'id':_0x5338a5[_0x4be3d3('0xdb0')]['id']},_0x5338a5[_0x4be3d3('0xdb0')])[_0x4be3d3('0x1af5')][_0x4be3d3('0x17e7')](function(){const _0xeb0dd7=_0x4be3d3;_0x5e0536[_0xeb0dd7('0x130d')]({'title':_0xeb0dd7('0x140c'),'msg':_0x5338a5[_0xeb0dd7('0xdb0')]['name']?_0x5338a5[_0xeb0dd7('0xdb0')][_0xeb0dd7('0x2aa')]+_0xeb0dd7('0x12b0'):''});})[_0x4be3d3('0x16df')](function(_0x19213c){const _0x2aa323=_0x4be3d3;_0x5e0536[_0x2aa323('0x1db9')]({'title':_0x19213c['status']?_0x2aa323('0x14f7')+_0x19213c[_0x2aa323('0x11c5')]+_0x2aa323('0x16e4')+_0x19213c[_0x2aa323('0x1833')]:_0x2aa323('0x1a3d'),'msg':_0x19213c[_0x2aa323('0x1457')]?JSON[_0x2aa323('0x678')](_0x19213c['data']):_0x19213c['toString']()});});}}const _0x388b75=_0x531c1b;_0xa782f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$translate','smsQueues',_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),'Auth','license',_0x4376d8('0x1aeb')];function _0xa782f(_0x74b625,_0x25a71f,_0x4f5d5d,_0x5922e1,_0xaefec1,_0x5908b2,_0x117aea,_0x47584a,_0x927462,_0x10be80,_0x178162,_0x18650d,_0x9e3a25,_0x1211d0,_0x5a94b9,_0x9598eb,_0x32fcc3){const _0xacae41=_0x4376d8,_0xc16f5=this;_0xc16f5[_0xacae41('0x1d11')]=_0x9598eb,_0xc16f5[_0xacae41('0x1aeb')]=_0x32fcc3,_0xc16f5[_0xacae41('0x197c')]=_0x5a94b9['getCurrentUser'](),_0xc16f5[_0xacae41('0x33c')]=_0x927462||{'count':0x0,'rows':[]},_0xc16f5[_0xacae41('0xdeb')]=_0x10be80,_0xc16f5[_0xacae41('0x383')]=_0x178162&&_0x178162['count']==0x1?_0x178162[_0xacae41('0x2319')][0x0]:null,_0xc16f5[_0xacae41('0x103e')]=_0x5a94b9[_0xacae41('0x17a9')](_0xc16f5[_0xacae41('0x383')]?_0xc16f5['userProfileSection'][_0xacae41('0x103e')]:null),_0xc16f5[_0xacae41('0x23c3')]=_0xacae41('0x33c'),_0xc16f5['listOrder']='',_0xc16f5[_0xacae41('0x24e1')]=null,_0xc16f5['selectedSmsQueues']=[],_0xc16f5['query']={'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0xacae41('0x1ac6'),'channel':_0xacae41('0x2cd'),'limit':0xa,'page':0x1},_0xc16f5['arraystrategy']=_0x49cbdd()[_0xacae41('0x8de')]([{'option':'Beepall','value':_0xacae41('0xad6')},{'option':_0xacae41('0x1b14'),'value':_0xacae41('0x19b1')}],function(_0x522aa4){const _0x267b2a=_0xacae41;return _0x49cbdd()['replace'](_0x522aa4[_0x267b2a('0x175b')],new RegExp('\x27','g'),'');}),_0xc16f5[_0xacae41('0xcd4')]=_0x259ea5,_0xc16f5[_0xacae41('0x1e34')]=_0x22a71b,_0xc16f5['agentadddialog']=_0x56dbbf,_0xc16f5[_0xacae41('0xbf4')]=_0x2e76da,_0xc16f5['gotorealtimegoto']=_0x3caea2,_0xc16f5[_0xacae41('0x130d')]=_0x1fc537,_0xc16f5['getSmsQueues']=_0xa4d663,_0xc16f5[_0xacae41('0x1245')]=_0x55f1ce,_0xc16f5[_0xacae41('0x1f2f')]=_0x85fab3,_0xc16f5['exportSelectedSmsQueues']=_0x3d8606,_0xc16f5[_0xacae41('0x36f')]=_0x511644,_0xc16f5[_0xacae41('0x1733')]=_0x779d41,_0xc16f5['selectAllSmsQueues']=_0x343622;function _0x259ea5(_0x523b97){const _0x58ebc5=_0xacae41;_0x4f5d5d['go']('app.sms.smsQueues.edit',{'id':_0x523b97['id'],'smsQueue':_0x523b97,'crudPermissions':_0xc16f5[_0x58ebc5('0x103e')]});}function _0x22a71b(_0x247201,_0x461779){const _0x5b0c26=_0xacae41;_0xaefec1[_0x5b0c26('0x28e2')]({'controller':_0x5b0c26('0x51e'),'controllerAs':'vm','templateUrl':_0x59bef5,'parent':angular[_0x5b0c26('0x1ce1')](_0x5908b2[_0x5b0c26('0x13aa')]),'targetEvent':_0x461779,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x247201,'smsQueues':_0xc16f5[_0x5b0c26('0x33c')]?_0xc16f5['smsQueues'][_0x5b0c26('0x2319')]:[],'crudPermissions':_0xc16f5[_0x5b0c26('0x103e')]}});}function _0x56dbbf(_0x2ddbdf,_0x4949b6){const _0xb4a28b=_0xacae41;_0xaefec1[_0xb4a28b('0x28e2')]({'controller':_0xb4a28b('0x1d53'),'controllerAs':'vm','templateUrl':_0x39d0ff,'parent':angular[_0xb4a28b('0x1ce1')](_0x5908b2['body']),'targetEvent':_0x4949b6,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x2ddbdf,'smsQueues':_0xc16f5['smsQueues']?_0xc16f5[_0xb4a28b('0x33c')][_0xb4a28b('0x2319')]:[],'crudPermissions':_0xc16f5[_0xb4a28b('0x103e')],'realtime':![]}});}function _0x2e76da(_0x4b0d7c,_0x4fe8cd){const _0x16dbb3=_0xacae41,_0x1533ce=_0xaefec1[_0x16dbb3('0x1121')]()[_0x16dbb3('0x24d3')](_0x16dbb3('0x5e1')+_0x49cbdd()[_0x16dbb3('0x1c98')](_0x16dbb3('0xdb0'))+'?')[_0x16dbb3('0x211f')](_0x16dbb3('0xa53')+(_0x4b0d7c[_0x16dbb3('0x2aa')]||_0x16dbb3('0xdb0'))+_0x16dbb3('0x1d23')+_0x16dbb3('0xe9f'))[_0x16dbb3('0x2095')](_0x16dbb3('0x2470'))[_0x16dbb3('0x104f')](_0x4fe8cd)['ok']('OK')[_0x16dbb3('0x1d47')](_0x16dbb3('0x28a0'));_0xaefec1['show'](_0x1533ce)[_0x16dbb3('0x17e7')](function(){_0x85fab3(_0x4b0d7c);},function(){const _0x22de99=_0x16dbb3;console[_0x22de99('0x1d63')](_0x22de99('0x28a0'));});}function _0x3caea2(){const _0x1a2fc9=_0xacae41;if(_0x5a94b9[_0x1a2fc9('0x1ba2')](_0x1a2fc9('0x20bf')))_0x4f5d5d['go']('app.sms.realtime.queues',{});else return _0x18650d[_0x1a2fc9('0x383')][_0x1a2fc9('0x1c53')]({'userProfileId':_0x5a94b9['getCurrentUser']()['userProfileId'],'sectionId':0x2c6})['$promise']['then'](function(_0x4f105c){const _0x23b43b=_0x1a2fc9,_0x403186=_0x4f105c&&_0x4f105c[_0x23b43b('0x2319')]?_0x4f105c['rows'][0x0]:null;_0x403186&&_0x403186['enabled']?_0x4f5d5d['go']('app.sms.realtime.queues',{}):_0x1211d0['info']({'title':_0x47584a[_0x23b43b('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x47584a[_0x23b43b('0x1acc')](_0x23b43b('0x1169'))});})[_0x1a2fc9('0x16df')](function(_0x4ad382){const _0x3adf25=_0x1a2fc9;_0x1211d0[_0x3adf25('0x1db9')]({'title':_0x4ad382[_0x3adf25('0x11c5')]?'API:'+_0x4ad382['status']+'\x20-\x20'+_0x4ad382[_0x3adf25('0x1833')]:_0x3adf25('0x338'),'msg':_0x4ad382['status']?JSON['stringify'](_0x4ad382[_0x3adf25('0x1457')]):_0x4ad382[_0x3adf25('0x9b6')]()});});}let _0x4f6f5d=!![],_0x4c50cf=0x1;_0x74b625[_0xacae41('0x620')](_0xacae41('0x3ed'),function(_0x2b222b,_0x402664){const _0x395aff=_0xacae41;_0x4f6f5d?_0x117aea(function(){_0x4f6f5d=![];}):(!_0x402664&&(_0x4c50cf=_0xc16f5[_0x395aff('0x826')][_0x395aff('0x115a')]),_0x2b222b!==_0x402664&&(_0xc16f5['query'][_0x395aff('0x115a')]=0x1),!_0x2b222b&&(_0xc16f5[_0x395aff('0x826')][_0x395aff('0x115a')]=_0x4c50cf),_0xc16f5['getSmsQueues']());});function _0x1fc537(_0x264258){const _0x51e04d=_0xacae41;_0xc16f5[_0x51e04d('0x33c')]=_0x264258||{'count':0x0,'rows':[]};}function _0xa4d663(){const _0x3934ef=_0xacae41;_0xc16f5[_0x3934ef('0x826')][_0x3934ef('0xf19')]=(_0xc16f5[_0x3934ef('0x826')]['page']-0x1)*_0xc16f5[_0x3934ef('0x826')][_0x3934ef('0x193b')],_0x5a94b9[_0x3934ef('0x1ba2')](_0x3934ef('0x20bf'))?_0xc16f5['promise']=_0x18650d[_0x3934ef('0xdb0')][_0x3934ef('0x1c53')](_0xc16f5[_0x3934ef('0x826')],_0x1fc537)[_0x3934ef('0x1af5')]:(_0xc16f5[_0x3934ef('0x826')]['id']=_0xc16f5[_0x3934ef('0xdeb')]['id'],_0xc16f5['query'][_0x3934ef('0x16f8')]=_0x3934ef('0x544'),_0xc16f5['promise']=_0x18650d[_0x3934ef('0xdeb')][_0x3934ef('0x2447')](_0xc16f5['query'],_0x1fc537)['$promise']);}function _0x55f1ce(_0x1d5b80,_0x21eb4f){const _0x1b34f1=_0xacae41;_0xaefec1['show']({'controller':_0x1b34f1('0x81b'),'controllerAs':'vm','templateUrl':_0x497c02,'parent':angular[_0x1b34f1('0x1ce1')](_0x5908b2[_0x1b34f1('0x13aa')]),'targetEvent':_0x1d5b80,'clickOutsideToClose':!![],'locals':{'smsQueue':_0x21eb4f,'smsQueues':_0xc16f5['smsQueues'][_0x1b34f1('0x2319')],'license':_0xc16f5[_0x1b34f1('0x1d11')],'setting':_0xc16f5['setting'],'crudPermissions':_0xc16f5[_0x1b34f1('0x103e')]}});}function _0x85fab3(_0x3803a2){const _0xb5e407=_0xacae41;_0x18650d[_0xb5e407('0xdb0')]['delete']({'id':_0x3803a2['id']})[_0xb5e407('0x1af5')][_0xb5e407('0x17e7')](function(){const _0x370317=_0xb5e407;_0x49cbdd()[_0x370317('0x5f3')](_0xc16f5['smsQueues'][_0x370317('0x2319')],{'id':_0x3803a2['id']}),_0xc16f5[_0x370317('0x33c')][_0x370317('0x335')]-=0x1,!_0xc16f5[_0x370317('0x33c')][_0x370317('0x2319')][_0x370317('0x1f73')]&&_0xc16f5[_0x370317('0xa26')](),_0x1211d0['success']({'title':_0x49cbdd()['startCase']('SmsQueue')+'\x20deleted!','msg':_0x3803a2['name']?_0x3803a2[_0x370317('0x2aa')]+_0x370317('0x149f'):''});})[_0xb5e407('0x16df')](function(_0x4d98ac){const _0x2fcf50=_0xb5e407;if(_0x4d98ac[_0x2fcf50('0x1457')]&&_0x4d98ac[_0x2fcf50('0x1457')][_0x2fcf50('0x73e')]&&_0x4d98ac[_0x2fcf50('0x1457')][_0x2fcf50('0x73e')]['length']){_0xc16f5[_0x2fcf50('0x73e')]=_0x4d98ac[_0x2fcf50('0x1457')][_0x2fcf50('0x73e')]||[{'message':_0x4d98ac[_0x2fcf50('0x9b6')](),'type':_0x2fcf50('0x10f0')}];for(let _0x717062=0x0;_0x717062<_0x4d98ac['data']['errors'][_0x2fcf50('0x1f73')];_0x717062++){_0x1211d0[_0x2fcf50('0x1db9')]({'title':_0x4d98ac[_0x2fcf50('0x1457')][_0x2fcf50('0x73e')][_0x717062]['type'],'msg':_0x4d98ac['data']['errors'][_0x717062][_0x2fcf50('0x1603')]});}}else _0x1211d0[_0x2fcf50('0x1db9')]({'title':_0x4d98ac[_0x2fcf50('0x11c5')]?_0x2fcf50('0x14f7')+_0x4d98ac[_0x2fcf50('0x11c5')]+_0x2fcf50('0x16e4')+_0x4d98ac[_0x2fcf50('0x1833')]:_0x2fcf50('0x10f0'),'msg':_0x4d98ac['data']?JSON['stringify'](_0x4d98ac[_0x2fcf50('0x1457')][_0x2fcf50('0x1603')]):_0x4d98ac[_0x2fcf50('0x1603')]||_0x4d98ac[_0x2fcf50('0x9b6')]()});});}function _0x3d8606(){const _0x16acc8=_0xacae41,_0x46928d=angular[_0x16acc8('0x14e5')](_0xc16f5[_0x16acc8('0x1f97')]);return _0xc16f5[_0x16acc8('0x1f97')]=[],_0x46928d;}function _0x511644(_0xeb3013){const _0x41816e=_0xacae41,_0x3fb8d3=_0xaefec1[_0x41816e('0x1121')]()[_0x41816e('0x24d3')](_0x41816e('0x59f'))[_0x41816e('0x211f')](_0x41816e('0xa53')+_0xc16f5[_0x41816e('0x1f97')]['length']+_0x41816e('0x145a')+_0x41816e('0xe9f'))['ariaLabel']('delete\x20SmsQueues')[_0x41816e('0x104f')](_0xeb3013)['ok']('OK')['cancel']('CANCEL');_0xaefec1[_0x41816e('0x28e2')](_0x3fb8d3)[_0x41816e('0x17e7')](function(){const _0x2fecfc=_0x41816e;_0xc16f5[_0x2fecfc('0x1f97')][_0x2fecfc('0xccd')](function(_0x2c8720){_0x85fab3(_0x2c8720);}),_0xc16f5[_0x2fecfc('0x1f97')]=[];});}function _0x779d41(){const _0x2dc43b=_0xacae41;_0xc16f5[_0x2dc43b('0x1f97')]=[];}function _0x343622(){const _0x2f4627=_0xacae41;_0xc16f5[_0x2f4627('0x1f97')]=_0xc16f5[_0x2f4627('0x33c')]['rows'];}}const _0xd5db93=_0xa782f;_0x81f4c9[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x81f4c9(_0x1edc90,_0x3c4bec){const _0x1812b8=_0x4376d8;_0x1edc90[_0x1812b8('0x1b9a')](_0x1812b8('0x135f'),{'abstract':!![],'url':_0x1812b8('0x334')})[_0x1812b8('0x1b9a')](_0x1812b8('0xe52'),{'url':'/smsQueues','views':{'content@app':{'templateUrl':_0x3946c6,'controller':_0x1812b8('0x1539')}},'resolve':{'smsQueues':['apiResolver',_0x1812b8('0x1885'),function(_0x4211c1,_0x18b976){const _0x5ae661=_0x1812b8;return _0x18b976[_0x5ae661('0x1ba2')](_0x5ae661('0x20bf'))?_0x4211c1[_0x5ae661('0x898')](_0x5ae661('0x966'),{'fields':_0x5ae661('0x1029'),'sort':_0x5ae661('0x1ac6'),'channel':_0x5ae661('0x2cd'),'limit':0xa,'offset':0x0}):_0x4211c1[_0x5ae661('0x898')]('userProfile@getResources',{'id':_0x18b976['getCurrentUser']()[_0x5ae661('0x1e76')],'section':_0x5ae661('0x544'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':_0x5ae661('0x1ac6'),'channel':'sms','limit':0xa,'offset':0x0});}],'userProfile':[_0x1812b8('0x177'),_0x1812b8('0x1885'),function(_0x3e9b52,_0x52377a){const _0x4392e5=_0x1812b8;return _0x52377a[_0x4392e5('0x1ba2')](_0x4392e5('0x20bf'))?null:_0x3e9b52[_0x4392e5('0x898')](_0x4392e5('0x235d'),{'fields':_0x4392e5('0x8d3'),'id':_0x52377a[_0x4392e5('0x2831')]()[_0x4392e5('0x1e76')]});}],'userProfileSection':['apiResolver',_0x1812b8('0x1885'),function(_0x376165,_0xd39e48){const _0xf00b4a=_0x1812b8;return _0xd39e48[_0xf00b4a('0x1ba2')](_0xf00b4a('0x20bf'))?null:_0x376165[_0xf00b4a('0x898')](_0xf00b4a('0x23e7'),{'fields':_0xf00b4a('0x1134'),'userProfileId':_0xd39e48[_0xf00b4a('0x2831')]()[_0xf00b4a('0x1e76')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x1812b8('0x2cd')})[_0x1812b8('0x1b9a')](_0x1812b8('0x16b9'),{'url':_0x1812b8('0x2370'),'params':{'smsQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x10f91b,'controller':_0x1812b8('0x22b7')}},'resolve':{'smsQueue':[_0x1812b8('0x177'),_0x1812b8('0x118b'),function(_0x101cb6,_0x276234){const _0x1e51e0=_0x1812b8;return _0x101cb6['resolve'](_0x1e51e0('0x966'),{'fields':_0x1e51e0('0x1029'),'id':_0x276234['id']});}],'userProfileSection':['apiResolver',_0x1812b8('0x1885'),function(_0x2ea0cb,_0x522d7b){const _0x9a4e58=_0x1812b8;return _0x2ea0cb[_0x9a4e58('0x898')](_0x9a4e58('0x23e7'),{'fields':_0x9a4e58('0x1134'),'userProfileId':_0x522d7b['getCurrentUser']()[_0x9a4e58('0x1e76')],'sectionId':0x2bd});}]},'authenticate':!![],'permissionId':0x2bd,'bodyClass':_0x1812b8('0x2cd')})[_0x1812b8('0x1b9a')](_0x1812b8('0x14e6'),{'url':_0x1812b8('0x22ae'),'views':{'content@app':{'templateUrl':_0x2a6451,'controller':'SmsAccountsController\x20as\x20vm'}},'resolve':{'smsAccounts':[_0x1812b8('0x177'),_0x1812b8('0x1885'),function(_0x53ad9d,_0x262196){const _0x3bd442=_0x1812b8;return _0x262196[_0x3bd442('0x1ba2')](_0x3bd442('0x20bf'))?_0x53ad9d[_0x3bd442('0x898')](_0x3bd442('0xef2'),{'fields':_0x3bd442('0x2233'),'sort':_0x3bd442('0x1ac6'),'limit':0xa,'offset':0x0}):_0x53ad9d[_0x3bd442('0x898')]('userProfile@getResources',{'id':_0x262196[_0x3bd442('0x2831')]()[_0x3bd442('0x1e76')],'section':_0x3bd442('0x2230'),'fields':_0x3bd442('0x2233'),'sort':_0x3bd442('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x1812b8('0x177'),_0x1812b8('0x1885'),function(_0x325fd7,_0x26c5c0){const _0x5c850f=_0x1812b8;return _0x26c5c0[_0x5c850f('0x1ba2')](_0x5c850f('0x20bf'))?null:_0x325fd7['resolve']('userProfile@get',{'fields':_0x5c850f('0x8d3'),'id':_0x26c5c0[_0x5c850f('0x2831')]()[_0x5c850f('0x1e76')]});}],'userProfileSection':[_0x1812b8('0x177'),_0x1812b8('0x1885'),function(_0x4bb479,_0x3cadec){const _0x31c0d5=_0x1812b8;return _0x3cadec['hasRole']('admin')?null:_0x4bb479[_0x31c0d5('0x898')](_0x31c0d5('0x23e7'),{'fields':_0x31c0d5('0x1134'),'userProfileId':_0x3cadec['getCurrentUser']()['userProfileId'],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x1812b8('0x2cd')})['state']('app.sms.smsAccounts.edit',{'url':_0x1812b8('0x2370'),'params':{'smsAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x374bb6,'controller':_0x1812b8('0x15bc')}},'resolve':{'smsAccount':[_0x1812b8('0x177'),_0x1812b8('0x118b'),function(_0x6518d8,_0x5d4e43){const _0x4787e4=_0x1812b8;return _0x6518d8['resolve'](_0x4787e4('0xef2'),{'fields':_0x4787e4('0x2233'),'id':_0x5d4e43['id']});}],'userProfileSection':[_0x1812b8('0x177'),_0x1812b8('0x1885'),function(_0x1d0756,_0x26f24d){const _0x6b10e=_0x1812b8;return _0x1d0756[_0x6b10e('0x898')](_0x6b10e('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x26f24d['getCurrentUser']()[_0x6b10e('0x1e76')],'sectionId':0x2be});}]},'authenticate':!![],'permissionId':0x2be,'bodyClass':_0x1812b8('0x2cd')}),_0x3c4bec[_0x1812b8('0x10b3')](_0x1812b8('0xb59'));}angular[_0x4376d8('0x11c4')]('app.sms',[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),'mdPickers',_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),'ngEmbed',_0x4376d8('0x2459'),'material.components.expansionPanels','chart.js',_0x4376d8('0x178b'),_0x4376d8('0x202a')])[_0x4376d8('0x1980')](_0x81f4c9)[_0x4376d8('0x5ce')](_0x4376d8('0x581'),_0x2a341d)['controller']('SmsAccountActionsController',_0x595e83)[_0x4376d8('0x5ce')](_0x4376d8('0x122e'),_0x5a72a4)[_0x4376d8('0x5ce')]('EditSmsAccountAppagentDialogController',_0x195576)[_0x4376d8('0x5ce')](_0x4376d8('0x1b05'),_0x4d6002)[_0x4376d8('0x5ce')](_0x4376d8('0x9e4'),_0x35a4e4)[_0x4376d8('0x5ce')](_0x4376d8('0x352'),_0x2698ef)['controller'](_0x4376d8('0x2a8'),_0x225a3e)[_0x4376d8('0x5ce')](_0x4376d8('0x251a'),_0x2ad657)[_0x4376d8('0x5ce')](_0x4376d8('0x1cc6'),_0xc8fe20)[_0x4376d8('0x5ce')](_0x4376d8('0x2500'),_0x5c1453)['controller']('EditSmsAccountAppnoopDialogController',_0x1e1ab3)[_0x4376d8('0x5ce')](_0x4376d8('0x2477'),_0x268b0b)[_0x4376d8('0x5ce')](_0x4376d8('0x210d'),_0x60837d)[_0x4376d8('0x5ce')]('EditSmsAccountApptagDialogController',_0x547c88)[_0x4376d8('0x5ce')](_0x4376d8('0x19e9'),_0x2389de)['controller']('SmsAccountSmsCannedAnswersController',_0x2c8563)[_0x4376d8('0x5ce')](_0x4376d8('0x1206'),_0x4e7263)[_0x4376d8('0x5ce')](_0x4376d8('0x130e'),_0x5050c4)[_0x4376d8('0x5ce')]('SmsAccountController',_0x45ddca)['controller'](_0x4376d8('0x759'),_0x332e6d)[_0x4376d8('0x5ce')](_0x4376d8('0x81b'),_0x236786)['controller'](_0x4376d8('0x1d53'),_0x14b5cb)[_0x4376d8('0x5ce')](_0x4376d8('0x51e'),_0x4994d7)[_0x4376d8('0x5ce')]('SmsQueueController',_0x388b75)[_0x4376d8('0x5ce')](_0x4376d8('0x15c9'),_0xd5db93);const _0x2c81c3=_0x4cf2bc['p']+_0x4376d8('0x203f'),_0x523643=_0x4cf2bc['p']+_0x4376d8('0x1407'),_0x200bc8=_0x4cf2bc['p']+_0x4376d8('0x16a7');_0x22896b['$inject']=[_0x4376d8('0x668'),'$q',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x54a'),_0x4376d8('0x1492'),_0x4376d8('0x25ea'),_0x4376d8('0x1593'),_0x4376d8('0x212e'),_0x4376d8('0x25aa'),'toasty',_0x4376d8('0x628'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x33a')];function _0x22896b(_0x2d7713,_0x171e4e,_0x5a1880,_0x373fee,_0x15ebbe,_0x4b2d53,_0x564da6,_0x2ecf6d,_0x4acdee,_0x113115,_0x27e469,_0x14b286,_0x31a7d4,_0x3e3e52,_0x2d17ee,_0x1d24d8,_0x1a1b7a,_0x5413ee){const _0x1922af=_0x4376d8,_0x5d5bc9=this,_0x5519b8=[_0x1922af('0x25b1'),'online',_0x1922af('0x341'),_0x1922af('0x110a'),_0x1922af('0x11ec'),_0x1922af('0x110a'),_0x1922af('0xe3e'),'address',_0x1922af('0x2764'),_0x1922af('0x105e'),_0x1922af('0x1467'),_0x1922af('0x483'),_0x1922af('0x185b'),'faxPause',_0x1922af('0x118a'),_0x1922af('0x1b1a'),_0x1922af('0xe99'),_0x1922af('0xe'),_0x1922af('0x16f4'),_0x1922af('0x1676'),_0x1922af('0x3f4'),_0x1922af('0x139'),'openchannelCurrentCapacity',_0x1922af('0x12e7'),_0x1922af('0x1c68'),_0x1922af('0x1798'),_0x1922af('0x154f'),_0x1922af('0x2766'),_0x1922af('0x200c'),_0x1922af('0x9a7'),'smsStatus',_0x1922af('0x38d'),_0x1922af('0x14b9'),_0x1922af('0x14a5'),_0x1922af('0x587'),'openchannelStatusTime',_0x1922af('0x16a4'),'smsStatusTime','whatsappStatusTime','faxStatusTime',_0x1922af('0x1b1d'),'queue',_0x1922af('0xce0'),_0x1922af('0xf1a'),_0x1922af('0x1b7d'),_0x1922af('0xa0d')],_0x4ca21c=[_0x1922af('0x2764'),_0x1922af('0x105e'),_0x1922af('0x1467'),'smsPause','whatsappPause',_0x1922af('0x1d98'),_0x1922af('0x118a'),_0x1922af('0x1872')];_0x5d5bc9['currentUser']=_0x1d24d8[_0x1922af('0x2831')](),_0x5d5bc9[_0x1922af('0x232c')]=['ringing',_0x1922af('0x1166'),'busy',_0x1922af('0xa01'),_0x1922af('0x8d0')],_0x5d5bc9[_0x1922af('0x1492')]=_0x564da6||{'count':0x0,'rows':[]},_0x5d5bc9[_0x1922af('0x1d11')]=_0x1a1b7a,_0x5d5bc9[_0x1922af('0xdeb')]=_0x3e3e52,_0x5d5bc9[_0x1922af('0x383')]=_0x2d17ee&&_0x2d17ee[_0x1922af('0x335')]==0x1?_0x2d17ee[_0x1922af('0x2319')][0x0]:null,_0x5d5bc9[_0x1922af('0x103e')]=_0x1d24d8['parseCrudPermissions'](_0x5d5bc9[_0x1922af('0x383')]?_0x5d5bc9['userProfileSection'][_0x1922af('0x103e')]:null),_0x5d5bc9[_0x1922af('0x25ea')]=_0x2ecf6d?_0x49cbdd()[_0x1922af('0x8de')](_0x2ecf6d['rows']?_0x2ecf6d[_0x1922af('0x2319')]:[],'id'):{},_0x5d5bc9[_0x1922af('0x1593')]=_0x4acdee?_0x49cbdd()[_0x1922af('0x8de')](_0x4acdee[_0x1922af('0x2319')]?_0x4acdee[_0x1922af('0x2319')]:[],'id'):{},_0x5d5bc9[_0x1922af('0x219a')]={},_0x5d5bc9['load']=![],_0x5d5bc9[_0x1922af('0x1e36')]=[],_0x5d5bc9['agentInternal']={};for(const _0x58ef5f in _0x5d5bc9[_0x1922af('0x25ea')]){typeof _0x5d5bc9['agents'][_0x58ef5f]!=='undefined'&&(_0x5d5bc9[_0x1922af('0x25ea')][_0x58ef5f][_0x1922af('0x161d')]=!![]);}_0x5d5bc9[_0x1922af('0x826')]={'limit':0xa,'page':0x1,'order':_0x1922af('0xea6'),'globalStatusFilter':'','pauseTypeFilter':''},_0x5d5bc9[_0x1922af('0xff8')]=_0x1855d4,_0x5d5bc9[_0x1922af('0x18ba')]=_0x522a6d,_0x5d5bc9['pause']=_0x4b4af3,_0x5d5bc9['unPause']=_0x223db5,_0x5d5bc9[_0x1922af('0x3eb')]=_0xf3b999,_0x5d5bc9['getAgentStatus']=_0x560485,_0x5d5bc9[_0x1922af('0x21a0')]=_0x1cb5c,_0x5d5bc9['isPause']=_0x5136b6,_0x5d5bc9['checkPause']=_0x23a943,_0x5d5bc9[_0x1922af('0x179b')]=_0x3f2dab,_0x5d5bc9[_0x1922af('0xfd5')]=_0x14d3bc,_0x5d5bc9[_0x1922af('0x1fc4')]=_0x50a32d,_0x5d5bc9[_0x1922af('0xdf0')]=_0x2c47ff,_0x5d5bc9['onConnect']=_0x4c7384,_0x5d5bc9[_0x1922af('0x1ccb')]=_0x5d8550,_0x5d5bc9[_0x1922af('0x1375')]=_0x5829be,_0x27e469['on'](_0x1922af('0x21a2'),_0x5d5bc9[_0x1922af('0xfd5')]),_0x27e469['on'](_0x1922af('0x284f'),_0x5d5bc9[_0x1922af('0x1fc4')]),_0x27e469['on'](_0x1922af('0x1a5'),_0x5d5bc9['onConnect']),_0x27e469['on']('user:agentcomplete',_0x5d5bc9[_0x1922af('0x1ccb')]),_0x2c47ff();let _0x36fcf1=_0x5413ee(function(){const _0x23366d=_0x1922af;_0x5d5bc9['load']&&(_0x5d5bc9[_0x23366d('0xae2')]=![],_0x2c47ff());},0x3e7);function _0x2c47ff(){const _0x9d76a=_0x1922af;_0x5d5bc9['load']=![];const _0x273de8=_0x171e4e[_0x9d76a('0x113c')]();_0x5d5bc9[_0x9d76a('0x1691')]=_0x273de8['promise'],_0x5d5bc9[_0x9d76a('0x1b79')]=[],_0x5d5bc9['order']=[],_0x49cbdd()['forIn'](_0x5d5bc9[_0x9d76a('0x25ea')],function(_0x5d6011,_0x4ff42d){const _0x28ee88=_0x9d76a;_0x5d5bc9[_0x28ee88('0x1593')][_0x4ff42d]&&_0x49cbdd()[_0x28ee88('0x1ced')](_0x5d6011,_0x49cbdd()[_0x28ee88('0x230a')](_0x49cbdd()[_0x28ee88('0x15c3')](_0x5d5bc9[_0x28ee88('0x1593')][_0x4ff42d],_0x4ca21c),_0x5519b8)),_0x1cb5c(_0x5d6011),_0x5d6011['online']?(_0x5d5bc9['filteredAgents']['push'](_0x5d6011),_0x5d5bc9['agentInternal'][_0x5d6011['internal']]=_0x4ff42d):_0x5d6011['globalStatusTime']=_0x49cbdd()[_0x28ee88('0xa33')](_0x107a13()()[_0x28ee88('0x1c0d')]('x'));});_0x5d5bc9[_0x9d76a('0x826')][_0x9d76a('0x14f9')]&&_0x49cbdd()[_0x9d76a('0x5f3')](_0x5d5bc9[_0x9d76a('0x1b79')],function(_0x1b8ce7){const _0x1d8109=_0x9d76a;return _0x1b8ce7[_0x1d8109('0xf45')]!==_0x5d5bc9[_0x1d8109('0x826')][_0x1d8109('0x14f9')];});_0x5d5bc9[_0x9d76a('0x826')]['pauseTypeFilter']&&_0x49cbdd()[_0x9d76a('0x5f3')](_0x5d5bc9[_0x9d76a('0x1b79')],function(_0x3f214d){const _0x427a63=_0x9d76a;return _0x3f214d[_0x427a63('0x11ec')]!==_0x5d5bc9[_0x427a63('0x826')][_0x427a63('0x44f')];});_0x5d5bc9['query']['filter']&&_0x49cbdd()[_0x9d76a('0x5f3')](_0x5d5bc9[_0x9d76a('0x1b79')],function(_0x4e4675){const _0x58178c=_0x9d76a;return _0x4e4675[_0x58178c('0xea6')][_0x58178c('0x19b')]()[_0x58178c('0x2567')](_0x5d5bc9[_0x58178c('0x826')][_0x58178c('0x2483')][_0x58178c('0x19b')]())<0x0;});_0x5d5bc9[_0x9d76a('0x1b79')]=_0x10ffd8(_0x5d5bc9[_0x9d76a('0x1b79')]);const _0x160772=(_0x5d5bc9[_0x9d76a('0x826')][_0x9d76a('0x115a')]-0x1)*_0x5d5bc9[_0x9d76a('0x826')][_0x9d76a('0x193b')];_0x5d5bc9[_0x9d76a('0x219a')]=_0x49cbdd()['drop'](_0x5d5bc9[_0x9d76a('0x1b79')],_0x160772)[_0x9d76a('0x275f')](0x0,_0x5d5bc9[_0x9d76a('0x826')]['limit']);for(let _0x59dde6=0x0;_0x59dde6<_0x5d5bc9[_0x9d76a('0x219a')][_0x9d76a('0x1f73')];_0x59dde6+=0x1){_0x5d5bc9[_0x9d76a('0x1e36')][_0x9d76a('0x269f')](_0x5d5bc9[_0x9d76a('0x219a')][_0x59dde6]['id']);}_0x273de8[_0x9d76a('0x898')](),_0x5d5bc9['load']=!![];}function _0x14d3bc(_0x57a0bc){const _0x564296=_0x1922af;_0x5d5bc9[_0x564296('0x25ea')][_0x57a0bc['id']]&&(_0x49cbdd()[_0x564296('0x1ced')](_0x5d5bc9[_0x564296('0x25ea')][_0x57a0bc['id']],_0x49cbdd()[_0x564296('0x230a')](_0x49cbdd()[_0x564296('0x15c3')](_0x57a0bc,_0x4ca21c),_0x5519b8)),_0x49cbdd()['merge'](_0x5d5bc9[_0x564296('0x1593')][_0x57a0bc['id']],_0x49cbdd()[_0x564296('0x230a')](_0x49cbdd()[_0x564296('0x15c3')](_0x57a0bc,_0x4ca21c),_0x5519b8)),_0x1cb5c(_0x5d5bc9['agents'][_0x57a0bc['id']]));}function _0x50a32d(_0x59850f){const _0x41940b=_0x1922af;_0x5d5bc9[_0x41940b('0x25ea')][_0x59850f['id']]&&(_0x49cbdd()['merge'](_0x5d5bc9['agents'][_0x59850f['id']],_0x49cbdd()[_0x41940b('0x230a')](_0x59850f,_0x5519b8)),_0x49cbdd()[_0x41940b('0x1ced')](_0x5d5bc9[_0x41940b('0x1593')][_0x59850f['id']],_0x49cbdd()[_0x41940b('0x230a')](_0x59850f,_0x5519b8)),_0x59850f['lastPauseAt']&&(_0x5d5bc9[_0x41940b('0x25ea')][_0x59850f['id']][_0x41940b('0x22cb')]=_0x59850f[_0x41940b('0x110a')],_0x5d5bc9['rpcAgents'][_0x59850f['id']]['globalStatusTime']=_0x59850f[_0x41940b('0x110a')]),_0x1cb5c(_0x5d5bc9[_0x41940b('0x25ea')][_0x59850f['id']]));}function _0x4c7384(_0x54e91f){const _0x21f07a=_0x1922af;_0x5d5bc9[_0x21f07a('0x25ea')][_0x5d5bc9[_0x21f07a('0x20a5')][_0x54e91f[_0x21f07a('0x1177')]]]&&(_0x49cbdd()['merge'](_0x5d5bc9['agents'][_0x5d5bc9['agentInternal'][_0x54e91f[_0x21f07a('0x1177')]]],_0x49cbdd()['pick'](_0x54e91f,['queue',_0x21f07a('0xce0')])),_0x49cbdd()['merge'](_0x5d5bc9[_0x21f07a('0x1593')][_0x5d5bc9[_0x21f07a('0x20a5')][_0x54e91f[_0x21f07a('0x1177')]]],_0x49cbdd()['pick'](_0x54e91f,[_0x21f07a('0x1bd'),_0x21f07a('0xce0')])));}function _0x5d8550(_0x44307c){const _0x1a25e0=_0x1922af;_0x5d5bc9['agents'][_0x5d5bc9[_0x1a25e0('0x20a5')][_0x44307c[_0x1a25e0('0x1177')]]]&&(_0x5d5bc9[_0x1a25e0('0x25ea')][_0x5d5bc9[_0x1a25e0('0x20a5')][_0x44307c[_0x1a25e0('0x1177')]]]=_0x49cbdd()['omit'](_0x5d5bc9['agents'][_0x5d5bc9['agentInternal'][_0x44307c[_0x1a25e0('0x1177')]]],[_0x1a25e0('0x1bd'),_0x1a25e0('0xce0')]),_0x5d5bc9[_0x1a25e0('0x1593')][_0x5d5bc9[_0x1a25e0('0x20a5')][_0x44307c['destaccountcode']]]=_0x49cbdd()[_0x1a25e0('0x15c3')](_0x5d5bc9['rpcAgents'][_0x5d5bc9[_0x1a25e0('0x20a5')][_0x44307c[_0x1a25e0('0x1177')]]],[_0x1a25e0('0x1bd'),_0x1a25e0('0xce0')]));}function _0x1855d4(_0x114251){const _0x226620=_0x1922af;return _0x113115[_0x226620('0x221e')]['logout']({'id':_0x114251['id'],'device':_0x226620('0x20c8'),'agent_id':_0x114251['id'],'agent_name':_0x114251['name']})[_0x226620('0x1af5')][_0x226620('0x17e7')](function(){const _0x6e4558=_0x226620;_0x14b286[_0x6e4558('0x130d')]({'title':'Agent\x20logout','msg':_0x114251['fullname']+_0x6e4558('0xe21')}),_0x5d5bc9['agents'][_0x114251['id']]&&(_0x5d5bc9[_0x6e4558('0x25ea')][_0x114251['id']]['online']=![]),_0x5d5bc9[_0x6e4558('0x1593')][_0x114251['id']]&&(_0x5d5bc9[_0x6e4558('0x1593')][_0x114251['id']]['online']=![]),_0x2c47ff();})[_0x226620('0x16df')](function(_0x46fedb){const _0x1610f6=_0x226620;_0x14b286[_0x1610f6('0x1db9')]({'title':_0x46fedb[_0x1610f6('0x11c5')]?_0x1610f6('0x14f7')+_0x46fedb[_0x1610f6('0x11c5')]+'\x20-\x20'+_0x46fedb['statusText']:'api.staff.save','msg':_0x46fedb[_0x1610f6('0x1457')]?JSON[_0x1610f6('0x678')](_0x46fedb[_0x1610f6('0x1457')][_0x1610f6('0x1603')]):_0x46fedb['toString']()});});}function _0x4b4af3(_0x189361,_0x2dc925){const _0x5463c2=_0x1922af;return _0x113115['user'][_0x5463c2('0x267a')]({'id':_0x189361['id'],'type':_0x2dc925})[_0x5463c2('0x1af5')][_0x5463c2('0x17e7')](function(_0x2201ef){const _0xc37fdd=_0x5463c2;_0x5d5bc9[_0xc37fdd('0x25ea')][_0x189361['id']]&&_0x49cbdd()['merge'](_0x5d5bc9['agents'][_0x189361['id']],_0x49cbdd()[_0xc37fdd('0x230a')](_0x2201ef,_0x5519b8)),_0x5d5bc9[_0xc37fdd('0x1593')][_0x189361['id']]&&_0x49cbdd()['merge'](_0x5d5bc9[_0xc37fdd('0x1593')][_0x189361['id']],_0x49cbdd()[_0xc37fdd('0x230a')](_0x2201ef,_0x5519b8)),_0x1cb5c(_0x5d5bc9[_0xc37fdd('0x25ea')][_0x189361['id']]);})['catch'](function(_0x103328){const _0x3a4644=_0x5463c2;_0x14b286[_0x3a4644('0x1db9')]({'title':_0x103328['status']?_0x3a4644('0x14f7')+_0x103328[_0x3a4644('0x11c5')]+'\x20-\x20'+_0x103328[_0x3a4644('0x1833')]:'api.staff.save','msg':_0x103328[_0x3a4644('0x1457')]?JSON[_0x3a4644('0x678')](_0x103328[_0x3a4644('0x1457')]['message']):_0x103328[_0x3a4644('0x9b6')]()});});}function _0x223db5(_0x43762e){const _0x3f8e66=_0x1922af;return _0x113115[_0x3f8e66('0x221e')][_0x3f8e66('0xc57')]({'id':_0x43762e['id']})[_0x3f8e66('0x1af5')][_0x3f8e66('0x17e7')](function(_0xea70ed){const _0x22f29d=_0x3f8e66;_0x5d5bc9[_0x22f29d('0x25ea')][_0x43762e['id']]&&_0x49cbdd()[_0x22f29d('0x1ced')](_0x5d5bc9[_0x22f29d('0x25ea')][_0x43762e['id']],_0x49cbdd()['pick'](_0xea70ed,_0x5519b8)),_0x5d5bc9[_0x22f29d('0x1593')][_0x43762e['id']]&&_0x49cbdd()[_0x22f29d('0x1ced')](_0x5d5bc9[_0x22f29d('0x1593')][_0x43762e['id']],_0x49cbdd()[_0x22f29d('0x230a')](_0xea70ed,_0x5519b8)),_0x1cb5c(_0x5d5bc9[_0x22f29d('0x25ea')][_0x43762e['id']]);})['catch'](function(_0x35d669){const _0x4f782f=_0x3f8e66;_0x14b286[_0x4f782f('0x1db9')]({'title':_0x35d669['status']?_0x4f782f('0x14f7')+_0x35d669[_0x4f782f('0x11c5')]+'\x20-\x20'+_0x35d669[_0x4f782f('0x1833')]:_0x4f782f('0x18ea'),'msg':_0x35d669[_0x4f782f('0x1457')]?JSON[_0x4f782f('0x678')](_0x35d669[_0x4f782f('0x1457')][_0x4f782f('0x1603')]):_0x35d669[_0x4f782f('0x9b6')]()});});}function _0xf3b999(_0x22a6f9){const _0x1e29b4=_0x1922af;_0x373fee[_0x1e29b4('0x28e2')](_0x373fee['alert']()[_0x1e29b4('0x2f4')](!![])[_0x1e29b4('0x24d3')](_0x1e29b4('0x5b8'))[_0x1e29b4('0x211f')](_0x1e29b4('0xf9f'))['ok']('Ok')[_0x1e29b4('0x104f')](_0x22a6f9));}function _0x522a6d(_0x272204,_0xb95f2d){const _0x556286=_0x1922af;_0x373fee[_0x556286('0x28e2')]({'controller':_0x556286('0x25ed'),'controllerAs':'vm','templateUrl':_0x5e8625,'parent':angular[_0x556286('0x1ce1')](_0x15ebbe[_0x556286('0x13aa')]),'targetEvent':_0xb95f2d,'clickOutsideToClose':!![],'locals':{'agent':_0x272204,'agents':[],'channel':'openchannel','direction':_0x556286('0x1e77'),'crudPermissions':_0x5d5bc9[_0x556286('0x103e')]}});}function _0x5136b6(_0x3cface){const _0x406f12=_0x1922af;return _0x3cface==='pause'||_0x3cface===_0x406f12('0x1998');}function _0x23a943(_0x198d89){const _0x29be98=_0x1922af;return _0x198d89===_0x29be98('0x267a');}function _0x3f2dab(_0x438287){const _0xb9de10=_0x1922af;return _0x438287===_0xb9de10('0x1998');}function _0x4a7d1c(_0x16aa13){const _0x579a72=_0x1922af;return _0x16aa13===_0x579a72('0x1ff2')||_0x16aa13==='unknown'||_0x16aa13===_0x579a72('0x182')||_0x16aa13===_0x579a72('0x1589')||_0x49cbdd()[_0x579a72('0x390')](_0x16aa13);}function _0x560485(_0x188c2d,_0x4e6ef0){const _0x5c6a14=_0x1922af;if(_0x4e6ef0===_0x5c6a14('0x1fe1')){if(_0x188c2d[_0x4e6ef0+_0x5c6a14('0x51c')]!==_0x5c6a14('0x1ff2'))return _0x188c2d[_0x4e6ef0+'Status'];if(_0x188c2d[_0x4e6ef0+'Pause'])return _0x188c2d[_0x4e6ef0+'Status']=_0x5c6a14('0x267a'),'pause';return _0x5c6a14('0x1ff2');}else{if(_0x188c2d[_0x4e6ef0+_0x5c6a14('0x5d5')])return _0x188c2d[_0x4e6ef0+_0x5c6a14('0x51c')]=_0x5c6a14('0x267a'),'pause';return _0x188c2d[_0x4e6ef0+_0x5c6a14('0x51c')];}}function _0x1cb5c(_0x4b140c){const _0x17d3d4=_0x1922af;let _0x37d136=_0x17d3d4('0xf10');if(_0x49cbdd()['every']([_0x560485(_0x4b140c,_0x17d3d4('0x1fe1')),_0x560485(_0x4b140c,_0x17d3d4('0x2219')),_0x560485(_0x4b140c,_0x17d3d4('0xc2')),_0x560485(_0x4b140c,'openchannel'),_0x560485(_0x4b140c,_0x17d3d4('0x2cd')),_0x560485(_0x4b140c,_0x17d3d4('0x1d27')),_0x560485(_0x4b140c,'fax')],_0x5136b6))_0x37d136=_0x17d3d4('0x267a');else{if(_0x49cbdd()['some']([_0x560485(_0x4b140c,_0x17d3d4('0x1fe1')),_0x560485(_0x4b140c,_0x17d3d4('0x2219')),_0x560485(_0x4b140c,_0x17d3d4('0xc2')),_0x560485(_0x4b140c,'openchannel'),_0x560485(_0x4b140c,'sms'),_0x560485(_0x4b140c,'whatsapp'),_0x560485(_0x4b140c,_0x17d3d4('0xc23'))],_0x5136b6))_0x37d136=_0x17d3d4('0x1998');else _0x49cbdd()[_0x17d3d4('0x12df')]([_0x560485(_0x4b140c,_0x17d3d4('0x1fe1')),_0x560485(_0x4b140c,_0x17d3d4('0x2219')),_0x560485(_0x4b140c,'mail'),_0x560485(_0x4b140c,'openchannel'),_0x560485(_0x4b140c,_0x17d3d4('0x2cd')),_0x560485(_0x4b140c,_0x17d3d4('0x1d27')),_0x560485(_0x4b140c,'fax')],_0x4a7d1c)?_0x37d136=_0x17d3d4('0x1ff2'):_0x37d136=_0x17d3d4('0xe88');}_0x4b140c[_0x17d3d4('0xf45')]!==_0x37d136&&(_0x4b140c[_0x17d3d4('0xf45')]=_0x37d136,_0x4b140c[_0x17d3d4('0x161d')]?(_0x4b140c['init']=![],_0x4b140c[_0x17d3d4('0x22cb')]=_0x5136b6(_0x37d136)?_0x49cbdd()['toNumber'](_0x107a13()(_0x4b140c[_0x17d3d4('0x110a')])[_0x17d3d4('0x1c0d')]('x')):_0x49cbdd()[_0x17d3d4('0x103b')]([_0x4b140c[_0x17d3d4('0x1b1d')],_0x4b140c[_0x17d3d4('0x587')],_0x4b140c[_0x17d3d4('0x16a4')],_0x4b140c['smsStatusTime'],_0x4b140c['whatsappStatusTime'],_0x4b140c[_0x17d3d4('0x18b1')],_0x4b140c[_0x17d3d4('0xbdb')]])):_0x4b140c[_0x17d3d4('0x22cb')]=_0x49cbdd()[_0x17d3d4('0xa33')](_0x107a13()()[_0x17d3d4('0x1c0d')]('x')));}function _0x10ffd8(_0x118581){const _0x3a7a0c=_0x1922af,_0x48bc39=_0x49cbdd()['startsWith'](_0x5d5bc9[_0x3a7a0c('0x826')]['order'],'-')?_0x3a7a0c('0x187b'):_0x3a7a0c('0x161a');return _0x49cbdd()[_0x3a7a0c('0xa36')](_0x118581,[_0x5d5bc9[_0x3a7a0c('0x826')][_0x3a7a0c('0x1e36')][_0x3a7a0c('0x737')]('-','')],[_0x48bc39]);}function _0x1b9173(){_0x36fcf1&&(_0x5413ee['cancel'](_0x36fcf1),_0x36fcf1=null);}function _0x5829be(_0x2c5bc3,_0x3f4121){const _0x680740=_0x1922af;return _0x113115['user']['update']({'id':_0x2c5bc3['id']},{'screenrecording':_0x3f4121})['$promise'][_0x680740('0x16df')](function(_0x45f32d){const _0xb38598=_0x680740;_0x14b286[_0xb38598('0x1db9')]({'title':_0x45f32d[_0xb38598('0x11c5')]?'API:'+_0x45f32d['status']+_0xb38598('0x16e4')+_0x45f32d['statusText']:'api.user.update','msg':_0x45f32d[_0xb38598('0x1457')]?JSON[_0xb38598('0x678')](_0x45f32d[_0xb38598('0x1457')][_0xb38598('0x1603')]):_0x45f32d[_0xb38598('0x9b6')]()});});}_0x2d7713[_0x1922af('0x207c')](_0x1922af('0x2b4'),function(){const _0x36b627=_0x1922af;_0x27e469['removeAllListeners'](_0x36b627('0x21a2')),_0x27e469['removeAllListeners'](_0x36b627('0x284f')),_0x27e469['removeAllListeners'](_0x36b627('0x1a5')),_0x27e469[_0x36b627('0x1c65')]('user:agentcomplete'),_0x1b9173();});}const _0x2f66a5=_0x22896b,_0x40fdd0=_0x4cf2bc['p']+_0x4376d8('0x2702'),_0x173a1e=_0x4cf2bc['p']+_0x4376d8('0x168e');_0x3f6533[_0x4376d8('0x1b9c')]=['$scope','$timeout',_0x4376d8('0x14f6'),'$q','$document','$interval',_0x4376d8('0x14c4'),_0x4376d8('0x1d90'),_0x4376d8('0x212e'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x1885')];function _0x3f6533(_0x501835,_0x38671d,_0x3491ae,_0x4b31fc,_0x1bcef3,_0xa46fbe,_0x17419b,_0x268802,_0x46c008,_0x576a81,_0x43cd22,_0x4e3cd3,_0x478c99,_0x15e3ac){const _0x5e4fac=_0x4376d8,_0x1f83ac=this,_0x59e463=['loggedIn',_0x5e4fac('0x249c'),_0x5e4fac('0x2143'),_0x5e4fac('0x1d20'),_0x5e4fac('0xdb9'),_0x5e4fac('0x829'),'message',_0x5e4fac('0x10c9'),_0x5e4fac('0xa39'),_0x5e4fac('0x1bc6'),'paused'];_0x1f83ac[_0x5e4fac('0x197c')]=_0x15e3ac['getCurrentUser'](),_0x1f83ac[_0x5e4fac('0x335')]=_0x17419b[_0x5e4fac('0x335')]?_0x17419b[_0x5e4fac('0x335')]:0x0,_0x1f83ac[_0x5e4fac('0x14c4')]=_0x17419b?_0x49cbdd()['keyBy'](_0x17419b['rows']?_0x17419b[_0x5e4fac('0x2319')]:[],'id'):{},_0x1f83ac[_0x5e4fac('0x1d90')]=_0x268802?_0x49cbdd()[_0x5e4fac('0x8de')](_0x268802[_0x5e4fac('0x2319')]?_0x268802['rows']:[],'id'):{},_0x1f83ac['userProfile']=_0x4e3cd3,_0x1f83ac[_0x5e4fac('0x383')]=_0x478c99&&_0x478c99['count']==0x1?_0x478c99[_0x5e4fac('0x2319')][0x0]:null,_0x1f83ac[_0x5e4fac('0x103e')]=_0x15e3ac['parseCrudPermissions'](_0x1f83ac[_0x5e4fac('0x383')]?_0x1f83ac[_0x5e4fac('0x383')]['crudPermissions']:null);_0x15e3ac[_0x5e4fac('0x1ba2')](_0x5e4fac('0x20bf'))?_0x1f83ac['query']={'type':_0x5e4fac('0x1e77'),'sort':'-updatedAt','limit':0xa,'page':0x1}:_0x1f83ac[_0x5e4fac('0x826')]={'id':_0x1f83ac[_0x5e4fac('0x197c')]['id'],'channel':_0x5e4fac('0x1508'),'type':'inbound','sort':_0x5e4fac('0x1ac6'),'limit':0xa,'page':0x1};_0x1f83ac[_0x5e4fac('0x130d')]=_0x35019e,_0x1f83ac[_0x5e4fac('0x1f3b')]=_0x367479,_0x1f83ac[_0x5e4fac('0x1302')]=_0x1eb85c,_0x1f83ac[_0x5e4fac('0x1a78')]=_0x5b8e9a,_0x1f83ac[_0x5e4fac('0x139c')]=_0x5a23cb,_0x1f83ac[_0x5e4fac('0xfd5')]=_0x8ce316,_0x1f83ac[_0x5e4fac('0x1899')]=_0x1b5ca5,_0x1f83ac[_0x5e4fac('0x110')]=_0x4f9b9b,_0x1f83ac[_0x5e4fac('0x14ed')]=_0x2f56a1,_0x1f83ac[_0x5e4fac('0x1781')]=_0xa98c15,_0x1f83ac[_0x5e4fac('0x1532')]=_0x37ff38,_0x1f83ac[_0x5e4fac('0x11e8')]=_0x1ebb5e,_0x1f83ac['order']=[],_0x49cbdd()[_0x5e4fac('0x1857')](_0x1f83ac[_0x5e4fac('0x14c4')],function(_0x7e2fe2){const _0x166577=_0x5e4fac;_0x1f83ac[_0x166577('0x1e36')][_0x166577('0x269f')](_0x7e2fe2['id']);}),_0x576a81['on']('openchannel_queue:save',_0x1f83ac[_0x5e4fac('0xfd5')]),_0x576a81['on']('userOpenchannelQueue:save',_0x1f83ac[_0x5e4fac('0x1899')]),_0x576a81['on'](_0x5e4fac('0x118c'),_0x1f83ac['onRemoveMember']),_0x576a81['on'](_0x5e4fac('0x284f'),_0x1f83ac[_0x5e4fac('0x14ed')]),_0x576a81['on'](_0x5e4fac('0x1f34'),_0x1f83ac[_0x5e4fac('0x1532')]),_0x576a81['on'](_0x5e4fac('0x1cfb'),_0x1f83ac[_0x5e4fac('0x1781')]);function _0x1ebb5e(){const _0x2a09f3=_0x5e4fac,_0x44fab7=[];return _0x49cbdd()['forIn'](_0x1f83ac[_0x2a09f3('0x14c4')],function(_0x3b38c8,_0x4deb11){const _0x26a425=_0x2a09f3;_0x3b38c8['paused']=0x0,_0x3b38c8['loggedInDb']=0x0,_0x1f83ac['queues'][_0x4deb11]['agents']={},_0x44fab7[_0x26a425('0x269f')](_0x46c008[_0x26a425('0x891')][_0x26a425('0x1f58')]({'id':_0x4deb11})['$promise']),_0x1f83ac[_0x26a425('0x1d90')][_0x4deb11]&&_0x49cbdd()['merge'](_0x3b38c8,_0x49cbdd()[_0x26a425('0x230a')](_0x1f83ac[_0x26a425('0x1d90')][_0x4deb11],_0x59e463));}),_0x4b31fc[_0x2a09f3('0x1283')](_0x44fab7)['then'](function(_0x1235a1){const _0x118b0d=_0x2a09f3;for(let _0x1bf02f=0x0;_0x1bf02f<_0x1235a1['length'];_0x1bf02f+=0x1){for(let _0x509a9e=0x0;_0x509a9e<_0x1235a1[_0x1bf02f]['rows'][_0x118b0d('0x1f73')];_0x509a9e++){_0x1235a1[_0x1bf02f][_0x118b0d('0x2319')][_0x509a9e][_0x118b0d('0x1bb8')]&&_0x1f83ac['queues'][_0x1235a1[_0x1bf02f][_0x118b0d('0x2319')][_0x509a9e][_0x118b0d('0x1388')]][_0x118b0d('0x1bb8')]++,_0x1f83ac[_0x118b0d('0x14c4')][_0x1235a1[_0x1bf02f][_0x118b0d('0x2319')][_0x509a9e][_0x118b0d('0x1388')]]['loggedInDb']++,_0x1f83ac[_0x118b0d('0x14c4')][_0x1235a1[_0x1bf02f][_0x118b0d('0x2319')][_0x509a9e][_0x118b0d('0x1388')]]['agents'][_0x1235a1[_0x1bf02f][_0x118b0d('0x2319')][_0x509a9e][_0x118b0d('0x5e5')]]=_0x1235a1[_0x1bf02f][_0x118b0d('0x2319')][_0x509a9e]['OpenchannelQueueId'];}}})[_0x2a09f3('0x16df')](function(_0x5db098){const _0x17037b=_0x2a09f3;console[_0x17037b('0x1db9')](_0x5db098);});}function _0x8ce316(_0x109a1f){const _0x2278ea=_0x5e4fac;_0x1f83ac[_0x2278ea('0x14c4')][_0x109a1f['id']]&&_0x49cbdd()[_0x2278ea('0x1ced')](_0x1f83ac['queues'][_0x109a1f['id']],_0x49cbdd()[_0x2278ea('0x230a')](_0x109a1f,_0x59e463));}function _0x1b5ca5(_0x112706){const _0x1b727e=_0x5e4fac;_0x1f83ac[_0x1b727e('0x14c4')][_0x112706[_0x1b727e('0x1388')]]&&_0x1f83ac[_0x1b727e('0x14c4')][_0x112706[_0x1b727e('0x1388')]][_0x1b727e('0x6c2')]++;}function _0x4f9b9b(_0xe86231){const _0x10eaf3=_0x5e4fac;_0x1f83ac['queues'][_0xe86231[_0x10eaf3('0x1388')]]&&_0x1f83ac['queues'][_0xe86231[_0x10eaf3('0x1388')]][_0x10eaf3('0x6c2')]--;}function _0x2f56a1(_0x27f68b){const _0x128194=_0x5e4fac;console[_0x128194('0x1d63')](_0x128194('0x14ed'),_0x27f68b);if(_0x27f68b['voicePause'])_0x49cbdd()[_0x128194('0x1857')](_0x1f83ac[_0x128194('0x14c4')],function(_0x5da6fc){const _0x5e319a=_0x128194;_0x5da6fc['agents'][_0x27f68b['id']]&&(_0x5da6fc['paused']+=0x1,console[_0x5e319a('0x1d63')]('pause'));});else!_0x27f68b[_0x128194('0x118a')]&&_0x49cbdd()['forIn'](_0x1f83ac[_0x128194('0x14c4')],function(_0x5c8092){const _0x171aee=_0x128194;_0x5c8092[_0x171aee('0x25ea')][_0x27f68b['id']]&&(_0x5c8092['paused']>0x0&&(_0x5c8092[_0x171aee('0x1bb8')]-=0x1,console[_0x171aee('0x1d63')](_0x171aee('0xc57'))));});}function _0xa98c15(_0x40acfa){const _0x5e6a17=_0x5e4fac;console[_0x5e6a17('0x1d63')]('onLogged',_0x40acfa),_0x1f83ac[_0x5e6a17('0x14c4')][_0x40acfa[_0x5e6a17('0x1388')]]&&(_0x1f83ac[_0x5e6a17('0x14c4')][_0x40acfa[_0x5e6a17('0x1388')]]['loggedInDb']+=0x1,_0x1f83ac[_0x5e6a17('0x14c4')][_0x40acfa[_0x5e6a17('0x1388')]]['agents'][_0x40acfa['UserId']]=_0x40acfa[_0x5e6a17('0x1388')]);}function _0x37ff38(_0x2afb40){const _0x34eec7=_0x5e4fac;console['log'](_0x34eec7('0x1532'),_0x2afb40),_0x1f83ac[_0x34eec7('0x14c4')][_0x2afb40[_0x34eec7('0x1388')]]&&_0x1f83ac[_0x34eec7('0x14c4')][_0x2afb40['OpenchannelQueueId']]['loggedInDb']>0x0&&(_0x1f83ac[_0x34eec7('0x14c4')][_0x2afb40[_0x34eec7('0x1388')]][_0x34eec7('0x6c2')]-=0x1,delete _0x1f83ac[_0x34eec7('0x14c4')][_0x2afb40['OpenchannelQueueId']][_0x34eec7('0x25ea')][_0x2afb40[_0x34eec7('0x5e5')]]);}let _0x14ab06=!![],_0x262d12=0x1;_0x501835['$watch'](_0x5e4fac('0x3ed'),function(_0x5c73d9,_0x4adfd2){const _0x4151fd=_0x5e4fac;_0x14ab06?_0x38671d(function(){_0x14ab06=![];}):(!_0x4adfd2&&(_0x262d12=_0x1f83ac[_0x4151fd('0x826')][_0x4151fd('0x115a')]),_0x5c73d9!==_0x4adfd2&&(_0x1f83ac[_0x4151fd('0x826')][_0x4151fd('0x115a')]=0x1),!_0x5c73d9&&(_0x1f83ac[_0x4151fd('0x826')][_0x4151fd('0x115a')]=_0x262d12),_0x1f83ac[_0x4151fd('0x1f3b')]());});function _0x35019e(_0x56f212){const _0x54ad75=_0x5e4fac;_0x1f83ac['count']=_0x56f212[_0x54ad75('0x335')],_0x1f83ac[_0x54ad75('0x14c4')]=_0x56f212?_0x49cbdd()[_0x54ad75('0x8de')](_0x56f212[_0x54ad75('0x2319')]?_0x56f212[_0x54ad75('0x2319')]:[],'id'):{};if(_0x56f212['rows']){_0x1f83ac['order']=[];for(let _0x391131=0x0;_0x391131<_0x56f212[_0x54ad75('0x2319')][_0x54ad75('0x1f73')];_0x391131++){_0x1f83ac[_0x54ad75('0x1e36')][_0x54ad75('0x269f')](_0x56f212[_0x54ad75('0x2319')][_0x391131]['id']);}}_0x1ebb5e();}function _0x367479(){const _0x1017fd=_0x5e4fac;_0x1f83ac[_0x1017fd('0x826')]['offset']=(_0x1f83ac[_0x1017fd('0x826')][_0x1017fd('0x115a')]-0x1)*_0x1f83ac[_0x1017fd('0x826')][_0x1017fd('0x193b')],_0x15e3ac[_0x1017fd('0x1ba2')](_0x1017fd('0x20bf'))?_0x1f83ac[_0x1017fd('0x1691')]=_0x46c008['openchannelQueue']['get'](_0x1f83ac[_0x1017fd('0x826')],_0x35019e)[_0x1017fd('0x1af5')]:(_0x1f83ac[_0x1017fd('0x826')]['id']=_0x1f83ac['userProfile']['id'],_0x1f83ac[_0x1017fd('0x826')][_0x1017fd('0x16f8')]=_0x1017fd('0x1dad'),_0x1f83ac['promise']=_0x46c008[_0x1017fd('0xdeb')]['getResources'](_0x1f83ac[_0x1017fd('0x826')],_0x35019e)[_0x1017fd('0x1af5')]);}function _0x1eb85c(_0x2bd2ff,_0x49d297){const _0x523ada=_0x5e4fac;_0x3491ae['show']({'controller':_0x523ada('0x466'),'controllerAs':'vm','templateUrl':_0x40fdd0,'parent':angular['element'](_0x1bcef3[_0x523ada('0x13aa')]),'targetEvent':_0x2bd2ff,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x49d297,'openchannelQueues':_0x49cbdd()[_0x523ada('0xa72')](_0x1f83ac[_0x523ada('0x14c4')]),'license':null,'setting':null,'crudPermissions':_0x1f83ac[_0x523ada('0x103e')]}});}function _0x5b8e9a(_0x3160c8,_0x1a1f41){const _0x2ddf8d=_0x5e4fac;_0x3491ae[_0x2ddf8d('0x28e2')]({'controller':_0x2ddf8d('0x104c'),'controllerAs':'vm','templateUrl':_0x173a1e,'parent':angular[_0x2ddf8d('0x1ce1')](_0x1bcef3[_0x2ddf8d('0x13aa')]),'targetEvent':_0x3160c8,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x1a1f41,'openchannelQueues':_0x1f83ac[_0x2ddf8d('0x14c4')]?_0x1f83ac[_0x2ddf8d('0x14c4')][_0x2ddf8d('0x2319')]:[],'realtime':![],'crudPermissions':_0x1f83ac[_0x2ddf8d('0x103e')]}});}function _0x5a23cb(_0x35a1b7){const _0x5de57a=_0x5e4fac;return _0x46c008[_0x5de57a('0x891')][_0x5de57a('0x27ba')](_0x35a1b7)[_0x5de57a('0x1af5')]['then'](function(){const _0x15402f=_0x5de57a;_0x43cd22['success']({'title':_0x15402f('0xc7a'),'msg':_0x35a1b7[_0x15402f('0x2aa')]?_0x35a1b7[_0x15402f('0x2aa')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x48dc5e){const _0x53da78=_0x5de57a;_0x43cd22[_0x53da78('0x1db9')]({'title':'Error\x20creating\x20queue!','msg':_0x48dc5e[_0x53da78('0x1603')]});});}_0x501835['$on'](_0x5e4fac('0x2b4'),function(){const _0x4778b4=_0x5e4fac;_0x576a81[_0x4778b4('0x1c65')](_0x4778b4('0xb16')),_0x576a81[_0x4778b4('0x1c65')](_0x4778b4('0x118c')),_0x576a81[_0x4778b4('0x1c65')](_0x4778b4('0x1653')),_0x576a81[_0x4778b4('0x1c65')]('user:update'),_0x576a81[_0x4778b4('0x1c65')](_0x4778b4('0x1f34')),_0x576a81[_0x4778b4('0x1c65')]('userVoiceQueue:save');});}const _0x2ba4f9=_0x3f6533;function _0x358b29(){const _0x41c3fa=_0x4376d8;return{'status':{'registered':_0x41c3fa('0x9b4'),'unregistered':_0x41c3fa('0x20ec'),'lagged':_0x41c3fa('0x20ec'),'reachable':_0x41c3fa('0x9b4'),'unreachable':_0x41c3fa('0x20ec'),'unknown':_0x41c3fa('0x15d8')},'state':{'unknown':_0x41c3fa('0x9d7'),'not_inuse':_0x41c3fa('0x23ce'),'inuse':_0x41c3fa('0xbd2'),'busy':_0x41c3fa('0xf9e'),'invalid':_0x41c3fa('0x9d7'),'unavailable':_0x41c3fa('0x9d7'),'ringing':_0x41c3fa('0x109b'),'ringinuse':_0x41c3fa('0x109b'),'onhold':_0x41c3fa('0x1f4')},'channelStatus':{'ring':_0x41c3fa('0x109b'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x41c3fa('0x1147')},'channelStatusOut':{'ring':_0x41c3fa('0xc0c'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x41c3fa('0x1147')}};}const _0x442b4b=_0x358b29;_0x482bf6['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x25aa')];function _0x482bf6(_0x376005,_0x494c5d,_0x225f7a){const _0x309921=_0x4376d8,_0x31bc6d=this;_0x225f7a['disconnect'](),_0x225f7a[_0x309921('0x1f81')](),_0x31bc6d[_0x309921('0xde7')]=0x0;switch(_0x494c5d[_0x309921('0x1247')][_0x309921('0x2aa')]){case _0x309921('0xc07'):_0x31bc6d[_0x309921('0xde7')]=0x0;break;case _0x309921('0x12c4'):_0x31bc6d[_0x309921('0xde7')]=0x1;break;default:_0x31bc6d[_0x309921('0xde7')]=0x0,_0x494c5d['go']('app.openchannel.realtime.agents');}_0x376005[_0x309921('0x620')](_0x309921('0x1bda'),function(_0x1469df,_0x4a0404){const _0x29e978=_0x309921;if(_0x1469df!==_0x4a0404)switch(_0x1469df){case 0x0:_0x494c5d['go'](_0x29e978('0xc07'));break;case 0x1:_0x494c5d['go'](_0x29e978('0x12c4'));break;default:_0x494c5d['go'](_0x29e978('0xc07'));}});}const _0x11eaa7=_0x482bf6;_0x5101b9[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x5101b9(_0x57ea13){const _0x5b2173=_0x4376d8;_0x57ea13[_0x5b2173('0x1b9a')](_0x5b2173('0x20bc'),{'url':_0x5b2173('0x1dc1'),'views':{'content@app':{'templateUrl':_0x2c81c3,'controller':_0x5b2173('0xadc')}},'resolve':{'userProfile':['apiResolver',_0x5b2173('0x1885'),function(_0x595805,_0x2820d8){const _0xa5cc76=_0x5b2173;return _0x2820d8[_0xa5cc76('0x1ba2')](_0xa5cc76('0x20bf'))?null:_0x595805['resolve'](_0xa5cc76('0x235d'),{'fields':_0xa5cc76('0x8d3'),'id':_0x2820d8[_0xa5cc76('0x2831')]()[_0xa5cc76('0x1e76')]});}],'userProfileSection':[_0x5b2173('0x177'),_0x5b2173('0x1885'),function(_0x104a79,_0x97c7df){const _0x52b41d=_0x5b2173;return _0x97c7df[_0x52b41d('0x1ba2')]('admin')?null:_0x104a79[_0x52b41d('0x898')](_0x52b41d('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x97c7df['getCurrentUser']()[_0x52b41d('0x1e76')],'sectionId':0x32a});}]},'authenticate':!![],'permissionId':0x32a})[_0x5b2173('0x1b9a')](_0x5b2173('0xc07'),{'url':_0x5b2173('0x1a85'),'controller':_0x5b2173('0xfda'),'templateUrl':_0x523643,'resolve':{'pauses':[_0x5b2173('0x177'),function(_0x34c337){const _0x42d885=_0x5b2173;return _0x34c337['resolve'](_0x42d885('0x13db'),{'nolimit':!![]});}],'agents':[_0x5b2173('0x177'),_0x5b2173('0x1885'),function(_0x2345b3,_0xbcb1dc){const _0x7d47df=_0x5b2173;return _0xbcb1dc[_0x7d47df('0x1ba2')](_0x7d47df('0x20bf'))?_0x2345b3[_0x7d47df('0x898')]('user@get',{'fields':_0x7d47df('0xb31'),'role':_0x7d47df('0x684'),'sort':_0x7d47df('0xea6'),'nolimit':!![]}):_0x2345b3[_0x7d47df('0x898')]('userProfile@getResources',{'id':_0xbcb1dc[_0x7d47df('0x2831')]()[_0x7d47df('0x1e76')],'section':_0x7d47df('0x2157'),'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':!![]});}],'userProfile':[_0x5b2173('0x177'),_0x5b2173('0x1885'),function(_0x2f574b,_0x577dc7){const _0x2fbb14=_0x5b2173;return _0x577dc7[_0x2fbb14('0x1ba2')](_0x2fbb14('0x20bf'))?null:_0x2f574b[_0x2fbb14('0x898')](_0x2fbb14('0x235d'),{'fields':'id,name,crudPermissions','id':_0x577dc7[_0x2fbb14('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x5b2173('0x177'),_0x5b2173('0x1885'),function(_0x4793f3,_0x5e6eb6){const _0x29e106=_0x5b2173;return _0x5e6eb6[_0x29e106('0x1ba2')](_0x29e106('0x20bf'))?null:_0x4793f3[_0x29e106('0x898')](_0x29e106('0x23e7'),{'fields':_0x29e106('0x1134'),'userProfileId':_0x5e6eb6['getCurrentUser']()[_0x29e106('0x1e76')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x44e087){const _0x43e44e=_0x5b2173;return _0x44e087[_0x43e44e('0x898')](_0x43e44e('0xb27'));}]},'authenticate':!![],'permissionId':0x32a})[_0x5b2173('0x1b9a')](_0x5b2173('0x12c4'),{'url':'/queues','controller':_0x5b2173('0x2156'),'templateUrl':_0x200bc8,'resolve':{'queues':['apiResolver','Auth',function(_0x52d2c3,_0x158205){const _0x24a8da=_0x5b2173;return _0x158205['hasRole'](_0x24a8da('0x20bf'))?_0x52d2c3['resolve']('openchannelQueue@get',{'type':_0x24a8da('0x1e77'),'sort':_0x24a8da('0x1ac6'),'limit':0xa,'offset':0x0}):_0x52d2c3[_0x24a8da('0x898')](_0x24a8da('0x1164'),{'id':_0x158205[_0x24a8da('0x2831')]()['userProfileId'],'section':'OpenchannelQueues','channel':'openchannel','type':_0x24a8da('0x1e77'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0x5b2173('0x1885'),function(_0x229f27,_0x334a0e){const _0x6be380=_0x5b2173;return _0x334a0e['hasRole'](_0x6be380('0x20bf'))?null:_0x229f27[_0x6be380('0x898')]('userProfile@get',{'fields':_0x6be380('0x8d3'),'id':_0x334a0e[_0x6be380('0x2831')]()[_0x6be380('0x1e76')]});}],'userProfileSection':[_0x5b2173('0x177'),'Auth',function(_0x53ad62,_0x5df6a6){const _0x451b04=_0x5b2173;return _0x5df6a6['hasRole'](_0x451b04('0x20bf'))?null:_0x53ad62[_0x451b04('0x898')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5df6a6[_0x451b04('0x2831')]()['userProfileId'],'sectionId':0x321});}],'rpcQueues':[_0x5b2173('0x177'),function(_0x475909){const _0x17c221=_0x5b2173;return _0x475909[_0x17c221('0x898')](_0x17c221('0x21d7'));}]},'authenticate':!![],'permissionId':0x32a});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x20bc'),[])[_0x4376d8('0x1980')](_0x5101b9)[_0x4376d8('0x5ce')](_0x4376d8('0x13d7'),_0x2f66a5)[_0x4376d8('0x5ce')](_0x4376d8('0x573'),_0x2ba4f9)[_0x4376d8('0x26a6')](_0x4376d8('0x628'),_0x442b4b)[_0x4376d8('0x5ce')](_0x4376d8('0xd5e'),_0x11eaa7);const _0x16f724=_0x4cf2bc['p']+_0x4376d8('0x2f9'),_0x449e2f=_0x4cf2bc['p']+'src/js/modules/main/apps/openchannel/views/openchannelQueues/edit/view.html/view.html',_0x382a95=_0x4cf2bc['p']+_0x4376d8('0x638'),_0xcca83d=_0x4cf2bc['p']+_0x4376d8('0x1706');_0x282d24[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x1408'),'openchannelAccount',_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x282d24(_0x4df7ef,_0x583605,_0x27940c,_0x5f055d,_0x3471d4,_0x435839,_0x5038f9,_0x420372,_0x1454c8,_0x127dc1,_0x4e8623,_0x23cb44,_0x19e806,_0x3d5c30){const _0x3abc13=_0x4376d8,_0x3bca22=this;_0x3bca22[_0x3abc13('0x197c')]=_0x4e8623['getCurrentUser'](),_0x3bca22[_0x3abc13('0x73e')]=[],_0x3bca22[_0x3abc13('0x1aeb')]=_0x19e806,_0x3bca22['license']=_0x23cb44,_0x3bca22['crudPermissions']=_0x3d5c30,_0x3bca22[_0x3abc13('0x6ee')]={},_0x3bca22['passwordPattern']=_0x3bca22[_0x3abc13('0x1aeb')]&&_0x3bca22[_0x3abc13('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3bca22[_0x3abc13('0x24d3')]=_0x3abc13('0x323'),_0x3bca22[_0x3abc13('0x152f')]=angular[_0x3abc13('0x14e5')](_0x1454c8),_0x3bca22[_0x3abc13('0x1408')]=_0x420372,_0x3bca22[_0x3abc13('0x13c5')]=![];!_0x3bca22['openchannelAccount']&&(_0x3bca22[_0x3abc13('0x152f')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x3bca22[_0x3abc13('0x24d3')]='OPENCHANNEL.NEW_OPENCHANNELACCOUNT',_0x3bca22[_0x3abc13('0x13c5')]=!![]);_0x583605[_0x3abc13('0x16fb')]['id']&&(_0x3bca22[_0x3abc13('0x152f')]['OpenchannelAccountId']=_0x583605[_0x3abc13('0x16fb')]['id']);_0x3bca22[_0x3abc13('0xce6')]=_0x2741c9,_0x3bca22['saveOpenchannelAccount']=_0x55bda9,_0x3bca22[_0x3abc13('0x2646')]=_0x2cba84,_0x3bca22[_0x3abc13('0x1300')]=_0x151835,_0x3bca22[_0x3abc13('0x136e')]=_0x3d3361,_0x4e8623[_0x3abc13('0x1ba2')](_0x3abc13('0x20bf'))?_0x127dc1[_0x3abc13('0x25b')]['get']({'fields':_0x3abc13('0x12d2'),'sort':_0x3abc13('0x2aa')})[_0x3abc13('0x1af5')][_0x3abc13('0x17e7')](function(_0x116445){const _0x250cdb=_0x3abc13;_0x3bca22[_0x250cdb('0x2504')]=_0x116445[_0x250cdb('0x2319')]||[];})[_0x3abc13('0x16df')](function(_0x4e6bd2){const _0x543f44=_0x3abc13;_0x5038f9[_0x543f44('0x1db9')]({'title':_0x4e6bd2['status']?'API:'+_0x4e6bd2[_0x543f44('0x11c5')]+_0x543f44('0x16e4')+_0x4e6bd2['statusText']:_0x543f44('0x2410'),'msg':_0x4e6bd2[_0x543f44('0x1457')]?JSON[_0x543f44('0x678')](_0x4e6bd2[_0x543f44('0x1457')]):_0x4e6bd2['toString']()});}):_0x127dc1['cmList'][_0x3abc13('0x1c53')]({'fields':_0x3abc13('0x12d2'),'sort':_0x3abc13('0x2aa')})[_0x3abc13('0x1af5')]['then'](function(_0x2d2718){const _0x5b45f9=_0x3abc13;_0x3bca22[_0x5b45f9('0x2504')]=_0x2d2718[_0x5b45f9('0x2319')]||[];})['then'](function(){const _0x2cdf8d=_0x3abc13;return _0x127dc1[_0x2cdf8d('0x383')][_0x2cdf8d('0x1c53')]({'userProfileId':_0x3bca22[_0x2cdf8d('0x197c')][_0x2cdf8d('0x1e76')],'sectionId':0x12d})[_0x2cdf8d('0x1af5')];})[_0x3abc13('0x17e7')](function(_0x122717){const _0xba0885=_0x3abc13,_0x36c765=_0x122717&&_0x122717[_0xba0885('0x2319')]?_0x122717['rows'][0x0]:null;if(!_0x36c765){const _0x4da677=[];let _0x1cb3a2=null;_0x3bca22[_0xba0885('0x152f')]&&(_0x1cb3a2=_0x49cbdd()[_0xba0885('0xe8e')](_0x3bca22[_0xba0885('0x2504')],{'id':Number(_0x3bca22[_0xba0885('0x152f')]['ListId'])}));for(let _0x43950f=0x0;_0x43950f<_0x3bca22[_0xba0885('0x2504')][_0xba0885('0x1f73')];_0x43950f++){_0x1cb3a2&&_0x3bca22[_0xba0885('0x2504')][_0x43950f]['id']===_0x1cb3a2['id']&&(_0x3bca22['lists'][_0x43950f][_0xba0885('0xe5c')]=![],_0x4da677[_0xba0885('0x269f')](_0x3bca22[_0xba0885('0x2504')][_0x43950f]));}_0x3bca22[_0xba0885('0x2504')]=_0x4da677;}else{if(!_0x36c765['autoAssociation'])return _0x127dc1[_0xba0885('0x78d')]['get']({'sectionId':_0x36c765['id']})['$promise'][_0xba0885('0x17e7')](function(_0x27d632){const _0x14997c=_0xba0885,_0x13e260=_0x49cbdd()['map'](_0x27d632[_0x14997c('0x2319')],function(_0x4a985b){const _0x353388=_0x14997c;return _0x49cbdd()[_0x353388('0xe8e')](_0x3bca22[_0x353388('0x2504')],{'id':_0x4a985b[_0x353388('0x5db')]});});let _0xc9c2e7=null;_0x3bca22[_0x14997c('0x152f')]&&(_0xc9c2e7=_0x49cbdd()[_0x14997c('0xe8e')](_0x3bca22['lists'],{'id':Number(_0x3bca22[_0x14997c('0x152f')]['ListId'])}));if(_0xc9c2e7&&!_0x49cbdd()[_0x14997c('0x26f8')](_0x13e260,['id',_0xc9c2e7['id']])){const _0x581931=_0x49cbdd()[_0x14997c('0xe8e')](_0x3bca22[_0x14997c('0x2504')],{'id':_0xc9c2e7['id']});_0x581931[_0x14997c('0xe5c')]=![],_0x13e260[_0x14997c('0x269f')](_0x581931);}_0x3bca22[_0x14997c('0x2504')]=_0x13e260;});}})[_0x3abc13('0x16df')](function(_0x18043c){const _0x585541=_0x3abc13;_0x5038f9[_0x585541('0x1db9')]({'title':_0x18043c[_0x585541('0x11c5')]?_0x585541('0x14f7')+_0x18043c['status']+_0x585541('0x16e4')+_0x18043c[_0x585541('0x1833')]:'SYSTEM:GETlists','msg':_0x18043c[_0x585541('0x1457')]?JSON[_0x585541('0x678')](_0x18043c[_0x585541('0x1457')]):_0x18043c[_0x585541('0x9b6')]()});});function _0x2741c9(){const _0x3eea1d=_0x3abc13;_0x3bca22[_0x3eea1d('0x73e')]=[],_0x127dc1[_0x3eea1d('0x152f')][_0x3eea1d('0x2439')](_0x3bca22[_0x3eea1d('0x152f')])['$promise'][_0x3eea1d('0x17e7')](function(_0x3ff251){const _0xe95aa6=_0x3eea1d;_0x3bca22[_0xe95aa6('0x1408')][_0xe95aa6('0x1893')](_0x3ff251[_0xe95aa6('0x16b2')]()),_0x5038f9['success']({'title':_0xe95aa6('0x13c0'),'msg':_0x3bca22[_0xe95aa6('0x152f')]['name']?_0x3bca22[_0xe95aa6('0x152f')]['name']+_0xe95aa6('0x15a'):''}),_0x3d3361(_0x3ff251);})[_0x3eea1d('0x16df')](function(_0x4df37d){const _0x329c5b=_0x3eea1d;if(_0x4df37d[_0x329c5b('0x1457')]&&_0x4df37d[_0x329c5b('0x1457')][_0x329c5b('0x73e')]&&_0x4df37d['data']['errors'][_0x329c5b('0x1f73')]){_0x3bca22[_0x329c5b('0x73e')]=_0x4df37d[_0x329c5b('0x1457')][_0x329c5b('0x73e')]||[{'message':_0x4df37d[_0x329c5b('0x9b6')](),'type':_0x329c5b('0x272c')}];for(let _0x544408=0x0;_0x544408<_0x4df37d['data'][_0x329c5b('0x73e')][_0x329c5b('0x1f73')];_0x544408+=0x1){_0x5038f9['error']({'title':_0x4df37d[_0x329c5b('0x1457')][_0x329c5b('0x73e')][_0x544408][_0x329c5b('0x412')],'msg':_0x4df37d[_0x329c5b('0x1457')][_0x329c5b('0x73e')][_0x544408]['message']});}}else _0x5038f9[_0x329c5b('0x1db9')]({'title':_0x4df37d['status']?_0x329c5b('0x14f7')+_0x4df37d['status']+'\x20-\x20'+_0x4df37d[_0x329c5b('0x1833')]:_0x329c5b('0x272c'),'msg':_0x4df37d[_0x329c5b('0x1457')]?JSON[_0x329c5b('0x678')](_0x4df37d[_0x329c5b('0x1457')][_0x329c5b('0x1603')]):_0x4df37d[_0x329c5b('0x9b6')]()});});}function _0x55bda9(){const _0x16ac55=_0x3abc13;_0x3bca22[_0x16ac55('0x73e')]=[],_0x127dc1[_0x16ac55('0x152f')][_0x16ac55('0x27ba')]({'id':_0x3bca22[_0x16ac55('0x152f')]['id']},_0x3bca22[_0x16ac55('0x152f')])['$promise'][_0x16ac55('0x17e7')](function(_0x59a7a2){const _0x303184=_0x16ac55,_0x1932f4=_0x49cbdd()[_0x303184('0xe8e')](_0x3bca22[_0x303184('0x1408')],{'id':_0x59a7a2['id']});_0x1932f4&&_0x49cbdd()[_0x303184('0x1ced')](_0x1932f4,_0x49cbdd()[_0x303184('0x230a')](_0x59a7a2[_0x303184('0x16b2')](),_0x49cbdd()['keys'](_0x1932f4))),_0x5038f9['success']({'title':_0x303184('0x27dd'),'msg':_0x3bca22[_0x303184('0x152f')]['name']?_0x3bca22['openchannelAccount']['name']+'\x20has\x20been\x20saved!':''}),_0x3d3361(_0x59a7a2);})[_0x16ac55('0x16df')](function(_0x49fe50){const _0x390bc6=_0x16ac55;if(_0x49fe50['data']&&_0x49fe50[_0x390bc6('0x1457')]['errors']&&_0x49fe50[_0x390bc6('0x1457')][_0x390bc6('0x73e')][_0x390bc6('0x1f73')]){_0x3bca22[_0x390bc6('0x73e')]=_0x49fe50[_0x390bc6('0x1457')][_0x390bc6('0x73e')]||[{'message':_0x49fe50[_0x390bc6('0x9b6')](),'type':_0x390bc6('0xac8')}];for(let _0x2fc0ff=0x0;_0x2fc0ff<_0x49fe50['data']['errors'][_0x390bc6('0x1f73')];_0x2fc0ff++){_0x5038f9['error']({'title':_0x49fe50['data']['errors'][_0x2fc0ff][_0x390bc6('0x412')],'msg':_0x49fe50[_0x390bc6('0x1457')][_0x390bc6('0x73e')][_0x2fc0ff][_0x390bc6('0x1603')]});}}else _0x5038f9[_0x390bc6('0x1db9')]({'title':_0x49fe50['status']?_0x390bc6('0x14f7')+_0x49fe50[_0x390bc6('0x11c5')]+_0x390bc6('0x16e4')+_0x49fe50[_0x390bc6('0x1833')]:'api.openchannelAccount.update','msg':_0x49fe50[_0x390bc6('0x1457')]?JSON[_0x390bc6('0x678')](_0x49fe50['data'][_0x390bc6('0x1603')]):_0x49fe50['toString']()});});}function _0x2cba84(_0x376d1b){const _0x7ae681=_0x3abc13;_0x3bca22[_0x7ae681('0x73e')]=[];const _0x5c1b99=_0x5f055d[_0x7ae681('0x1121')]()['title'](_0x7ae681('0x530'))['content'](_0x7ae681('0x282e'))['ariaLabel'](_0x7ae681('0x233e'))['ok'](_0x7ae681('0x304'))['cancel'](_0x7ae681('0x1b70'))[_0x7ae681('0x104f')](_0x376d1b);_0x5f055d[_0x7ae681('0x28e2')](_0x5c1b99)[_0x7ae681('0x17e7')](function(){const _0x596618=_0x7ae681;_0x127dc1[_0x596618('0x152f')][_0x596618('0x1da6')]({'id':_0x3bca22[_0x596618('0x152f')]['id']})['$promise'][_0x596618('0x17e7')](function(){const _0x12c4d9=_0x596618;_0x49cbdd()[_0x12c4d9('0x5f3')](_0x3bca22['openchannelAccounts'],{'id':_0x3bca22['openchannelAccount']['id']}),_0x5038f9[_0x12c4d9('0x130d')]({'title':_0x12c4d9('0x9a8'),'msg':(_0x3bca22[_0x12c4d9('0x152f')][_0x12c4d9('0x2aa')]||_0x12c4d9('0x152f'))+_0x12c4d9('0x149f')}),_0x3d3361(_0x3bca22[_0x12c4d9('0x152f')]);})[_0x596618('0x16df')](function(_0x5be1ba){const _0x11c473=_0x596618;if(_0x5be1ba['data']&&_0x5be1ba[_0x11c473('0x1457')][_0x11c473('0x73e')]&&_0x5be1ba['data'][_0x11c473('0x73e')]['length']){_0x3bca22[_0x11c473('0x73e')]=_0x5be1ba[_0x11c473('0x1457')][_0x11c473('0x73e')]||[{'message':_0x5be1ba[_0x11c473('0x9b6')](),'type':_0x11c473('0x158a')}];for(let _0x4827fb=0x0;_0x4827fb<_0x5be1ba[_0x11c473('0x1457')][_0x11c473('0x73e')][_0x11c473('0x1f73')];_0x4827fb++){_0x5038f9[_0x11c473('0x1db9')]({'title':_0x5be1ba[_0x11c473('0x1457')][_0x11c473('0x73e')][_0x4827fb][_0x11c473('0x412')],'msg':_0x5be1ba[_0x11c473('0x1457')]['errors'][_0x4827fb][_0x11c473('0x1603')]});}}else _0x5038f9[_0x11c473('0x1db9')]({'title':_0x5be1ba['status']?'API:'+_0x5be1ba[_0x11c473('0x11c5')]+_0x11c473('0x16e4')+_0x5be1ba[_0x11c473('0x1833')]:'api.openchannelAccount.delete','msg':_0x5be1ba[_0x11c473('0x1457')]?JSON['stringify'](_0x5be1ba[_0x11c473('0x1457')][_0x11c473('0x1603')]):_0x5be1ba[_0x11c473('0x1603')]||_0x5be1ba[_0x11c473('0x9b6')]()});});},function(){});}function _0x151835(_0x44b312){return _0x44b312===null?undefined:new Date(_0x44b312);}function _0x3d3361(_0x1c0fb6){const _0x56cb7d=_0x3abc13;_0x5f055d[_0x56cb7d('0x212a')](_0x1c0fb6);}}const _0x1d2063=_0x282d24,_0x7fdc48=_0x4cf2bc['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/agent/dialog.html/dialog.html',_0x2d26b6=_0x4cf2bc['p']+_0x4376d8('0x25d1'),_0x2ab66f=_0x4cf2bc['p']+_0x4376d8('0x8a6'),_0x5d446f=_0x4cf2bc['p']+_0x4376d8('0x230c'),_0x5801c6=_0x4cf2bc['p']+_0x4376d8('0xe22'),_0x105cd1=_0x4cf2bc['p']+_0x4376d8('0x270c'),_0x4ad914=_0x4cf2bc['p']+_0x4376d8('0x3d3'),_0x1f2911=_0x4cf2bc['p']+_0x4376d8('0x15e5'),_0x76dba6=_0x4cf2bc['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/apps/system/dialog.html/dialog.html',_0x1c599c=_0x4cf2bc['p']+_0x4376d8('0x2871');_0x582bb2['$inject']=[_0x4376d8('0x212e'),_0x4376d8('0x14f6'),'$document','toasty',_0x4376d8('0x1885')];const _0x2d3aa4={'agent':_0x7fdc48,'autoreply':_0x2d26b6,'close':_0x2ab66f,'gotoif':_0x5d446f,'gotop':_0x5801c6,'interval':_0x105cd1,'noop':_0x4ad914,'queue':_0x1f2911,'system':_0x76dba6,'tag':_0x1c599c};function _0x582bb2(_0x1e5605,_0x4d98bf,_0x3f9ae3,_0x138897,_0x4469e7){const _0x1663a4=_0x4376d8,_0x2e1a24=this;_0x2e1a24[_0x1663a4('0x197c')]=_0x4469e7[_0x1663a4('0x2831')](),_0x2e1a24[_0x1663a4('0x152f')]={},_0x2e1a24['openchannelAccountApps']={'count':0x0,'rows':[]},_0x2e1a24[_0x1663a4('0x13fe')]=[],_0x2e1a24[_0x1663a4('0x103e')],_0x2e1a24[_0x1663a4('0x826')]={'sort':'priority'},_0x2e1a24[_0x1663a4('0x970')]=_0x49cbdd()[_0x1663a4('0x1ad1')](_0x49cbdd()[_0x1663a4('0x1be3')]([{'app':'dialogflow','appType':_0x1663a4('0x2526'),'type':_0x1663a4('0x2526'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x1663a4('0x1db5'),'name':'key','type':_0x1663a4('0x132f'),'required':!![],'param':0x0},{'title':'language','name':_0x1663a4('0x3e1'),'type':_0x1663a4('0x2897'),'defaultValue':_0x1663a4('0x1ac3'),'values':[{'option':_0x1663a4('0x6db'),'value':_0x1663a4('0x2088')},{'option':_0x1663a4('0x14d0'),'value':_0x1663a4('0x1ac3')},{'option':_0x1663a4('0x1b82'),'value':'\x27de\x27'},{'option':_0x1663a4('0x2536'),'value':'\x27it\x27'},{'option':'Spanish','value':'\x27es\x27'},{'option':'French','value':_0x1663a4('0x1930')},{'option':_0x1663a4('0xcc2'),'value':_0x1663a4('0xeab')},{'option':'Japanese','value':_0x1663a4('0x10d4')},{'option':'Korean\x20(South\x20Korea)','value':'\x27ko\x27'},{'option':'Dutch','value':_0x1663a4('0x923')},{'option':'Norwegian','value':_0x1663a4('0x2471')},{'option':_0x1663a4('0x4cd'),'value':_0x1663a4('0x5ba')},{'option':_0x1663a4('0x22e8'),'value':_0x1663a4('0xb54')},{'option':'Russian','value':_0x1663a4('0x15bd')},{'option':_0x1663a4('0x1198'),'value':'\x27sv\x27'},{'option':_0x1663a4('0x47d'),'value':'\x27th\x27'},{'option':_0x1663a4('0x1f20'),'value':'\x27uk\x27'},{'option':_0x1663a4('0x14b1'),'value':_0x1663a4('0x88a')},{'option':_0x1663a4('0xac5'),'value':_0x1663a4('0x317')},{'option':_0x1663a4('0x561'),'value':'\x27zh-TW\x27'}],'required':!![],'param':0x1},{'title':'welcomemessage','name':_0x1663a4('0x1083'),'type':_0x1663a4('0x6d3'),'maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x1663a4('0x22f0'),'appType':_0x1663a4('0x22ac'),'type':_0x1663a4('0x22ac'),'icon':_0x1663a4('0x24a0'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'ProjectID','name':'projectId','type':_0x1663a4('0x132f'),'required':!![],'param':0x0},{'title':'ClientEmail','name':_0x1663a4('0x2814'),'type':_0x1663a4('0x132f'),'required':!![],'param':0x1},{'title':_0x1663a4('0x2111'),'name':_0x1663a4('0x1bc2'),'type':_0x1663a4('0x6d3'),'required':!![],'param':0x2},{'title':'language','name':_0x1663a4('0x3e1'),'type':_0x1663a4('0x2897'),'defaultValue':'\x27en\x27','values':[{'value':_0x1663a4('0x317'),'option':_0x1663a4('0x121')},{'value':_0x1663a4('0x88a'),'option':'Chinese\x20(Simplified)'},{'value':_0x1663a4('0x445'),'option':'Chinese\x20(Traditional)'},{'value':_0x1663a4('0x2088'),'option':_0x1663a4('0x6db')},{'value':_0x1663a4('0x923'),'option':'Dutch'},{'value':_0x1663a4('0x1ac3'),'option':_0x1663a4('0x14d0')},{'value':_0x1663a4('0x633'),'option':_0x1663a4('0x86e')},{'value':_0x1663a4('0x23d6'),'option':_0x1663a4('0x2566')},{'value':_0x1663a4('0xf55'),'option':_0x1663a4('0x198b')},{'value':_0x1663a4('0x2613'),'option':_0x1663a4('0x1b61')},{'value':_0x1663a4('0xd76'),'option':_0x1663a4('0x1a71')},{'value':_0x1663a4('0x1930'),'option':_0x1663a4('0x1a76')},{'value':_0x1663a4('0x12dc'),'option':_0x1663a4('0x2713')},{'value':_0x1663a4('0x1e6f'),'option':_0x1663a4('0x20e1')},{'value':_0x1663a4('0x20e6'),'option':_0x1663a4('0x1b82')},{'value':_0x1663a4('0x245'),'option':_0x1663a4('0x232b')},{'value':_0x1663a4('0xeab'),'option':_0x1663a4('0xcc2')},{'value':_0x1663a4('0x11f8'),'option':'Italian'},{'value':_0x1663a4('0x10d4'),'option':_0x1663a4('0x1f37')},{'value':'\x27ko\x27','option':_0x1663a4('0x16ad')},{'value':'\x27no\x27','option':_0x1663a4('0x1534')},{'value':'\x27pl\x27','option':_0x1663a4('0x1d30')},{'value':_0x1663a4('0xfc1'),'option':_0x1663a4('0x592')},{'value':_0x1663a4('0x26b0'),'option':_0x1663a4('0x94c')},{'value':_0x1663a4('0x15bd'),'option':'Russian'},{'value':_0x1663a4('0x299'),'option':'Spanish'},{'value':_0x1663a4('0x1075'),'option':_0x1663a4('0x1b64')},{'value':_0x1663a4('0x1cec'),'option':'Spanish\x20(Spain)'},{'value':_0x1663a4('0x23a5'),'option':_0x1663a4('0x1198')},{'value':_0x1663a4('0x2817'),'option':'Thai'},{'value':_0x1663a4('0x14d5'),'option':'Turkish'},{'value':_0x1663a4('0x4f5'),'option':_0x1663a4('0x1f20')}],'required':!![],'param':0x3},{'title':'welcomemessage','name':'welcomemessage','type':_0x1663a4('0x6d3'),'maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x1663a4('0x16a9'),'appType':_0x1663a4('0x16a9'),'type':'amazonlex','icon':'icon-apps','interval':_0x1663a4('0x20c3'),'isApp':!![],'fields':[{'title':_0x1663a4('0x1452'),'name':_0x1663a4('0x1452'),'type':_0x1663a4('0x132f'),'required':!![],'param':0x0},{'title':'secretaccesskey','name':_0x1663a4('0x1a62'),'type':_0x1663a4('0x132f'),'required':!![],'param':0x1},{'title':_0x1663a4('0x1dcf'),'name':_0x1663a4('0x1dcf'),'type':_0x1663a4('0x2897'),'defaultValue':_0x1663a4('0x191f'),'values':[{'option':_0x1663a4('0x22b3'),'value':_0x1663a4('0x191f')},{'option':_0x1663a4('0x1c81'),'value':_0x1663a4('0x1472')},{'option':'EU\x20(Ireland)','value':_0x1663a4('0x24a3')},{'option':_0x1663a4('0x1836'),'value':_0x1663a4('0x25e8')}],'required':!![],'param':0x2},{'title':_0x1663a4('0x4a'),'name':_0x1663a4('0x4a'),'type':'text','required':!![],'param':0x3},{'title':_0x1663a4('0x1083'),'name':_0x1663a4('0x1083'),'type':'textarea','maxlength':0xff,'required':![],'param':0x4,'help':!![]}]},{'app':_0x1663a4('0xaea'),'appType':_0x1663a4('0x231f'),'types':[_0x1663a4('0x1256'),'custom',_0x1663a4('0x134c')],'fields':[],'isApp':![]},{'app':_0x1663a4('0x1e49'),'appType':_0x1663a4('0x1e49'),'type':'noop','icon':_0x1663a4('0x24a0'),'interval':_0x1663a4('0x20c3'),'required':!![],'isApp':!![],'fields':[{'title':_0x1663a4('0x2775'),'name':_0x1663a4('0x175b'),'type':_0x1663a4('0x132f'),'param':0x0}]},{'app':_0x1663a4('0xca8'),'appType':_0x1663a4('0xca8'),'type':_0x1663a4('0xca8'),'icon':'icon-apps','interval':_0x1663a4('0x20c3'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x1663a4('0xd26'),'field':{'name':'variable','key':_0x1663a4('0x2aa')},'route':'variable','filters':{'fields':_0x1663a4('0x12d2'),'sort':_0x1663a4('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':'Command','name':_0x1663a4('0x1115'),'type':_0x1663a4('0x132f'),'required':!![],'param':0x0},{'title':_0x1663a4('0xd6a'),'name':_0x1663a4('0xb0a'),'type':'apiselect','values':_0x1663a4('0xd26'),'value':'variable.name','option':_0x1663a4('0x8e2'),'defaultValues':[{'value':'\x27\x27','option':'None'}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':'gotop','type':_0x1663a4('0x1fb0'),'icon':_0x1663a4('0x24a0'),'interval':_0x1663a4('0x20c3'),'isApp':!![],'fields':[{'title':_0x1663a4('0x182c'),'name':_0x1663a4('0x1a6d'),'type':_0x1663a4('0x7b8'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x1663a4('0x7a9'),'appType':'gotoif','type':_0x1663a4('0x7a9'),'icon':_0x1663a4('0x24a0'),'interval':_0x1663a4('0x20c3'),'isApp':!![],'fields':[{'title':_0x1663a4('0x2380'),'name':_0x1663a4('0xa67'),'type':_0x1663a4('0x132f'),'required':!![],'param':0x0},{'title':_0x1663a4('0xd8b'),'name':_0x1663a4('0xd8b'),'type':'number','min':0x1,'required':!![],'param':0x1},{'title':_0x1663a4('0xe9d'),'name':_0x1663a4('0xe9d'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x1663a4('0x1bd'),'appType':'queue','foreignKey':_0x1663a4('0x1388'),'type':_0x1663a4('0x1bd'),'icon':'icon-apps','interval':_0x1663a4('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x1663a4('0x14c4'),'field':{'name':_0x1663a4('0x1bd'),'key':_0x1663a4('0x2aa')},'route':_0x1663a4('0x891'),'filters':{'fields':_0x1663a4('0x960'),'sort':_0x1663a4('0x2aa'),'nolimit':!![]},'permissions':{'section':0x321}}],'fields':[{'title':_0x1663a4('0x1eb2'),'name':'queue','type':_0x1663a4('0x1ecc'),'values':_0x1663a4('0x14c4'),'value':_0x1663a4('0x661'),'option':_0x1663a4('0x661'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':_0x1663a4('0x7b8'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x1663a4('0x684'),'appType':'agent','type':_0x1663a4('0x684'),'foreignKey':_0x1663a4('0x5e5'),'icon':_0x1663a4('0x24a0'),'interval':_0x1663a4('0x20c3'),'isApp':!![],'extraApi':[{'name':'agents','field':{'name':_0x1663a4('0x684'),'key':_0x1663a4('0x2aa')},'route':_0x1663a4('0x221e'),'filters':{'fields':'id,name','sort':_0x1663a4('0x2aa'),'role':_0x1663a4('0x684'),'nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':'agent','type':'apiselect','values':_0x1663a4('0x25ea'),'value':_0x1663a4('0x274e'),'option':'agent.name','required':!![],'param':0x0},{'title':'Timeout','name':_0x1663a4('0xd2f'),'type':_0x1663a4('0x7b8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':'autoreply','appType':_0x1663a4('0x96e'),'type':_0x1663a4('0x96e'),'icon':_0x1663a4('0x24a0'),'interval':_0x1663a4('0x20c3'),'isApp':!![],'fields':[{'title':_0x1663a4('0x12a6'),'name':_0x1663a4('0x12a6'),'type':_0x1663a4('0x2897'),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':_0x1663a4('0x768'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x1663a4('0xa46'),'name':_0x1663a4('0x132f'),'type':'textarea','required':!![],'param':0x1}]},{'app':_0x1663a4('0xbc9'),'appType':_0x1663a4('0xbc9'),'type':_0x1663a4('0xbc9'),'icon':_0x1663a4('0x24a0'),'interval':_0x1663a4('0x20c3'),'isApp':!![],'fields':[{'title':_0x1663a4('0x16d'),'name':_0x1663a4('0x1f27'),'type':_0x1663a4('0x132f'),'required':!![],'param':0x0}]},{'app':'tag','appType':_0x1663a4('0x1132'),'type':_0x1663a4('0x1132'),'foreignKey':_0x1663a4('0x1686'),'icon':_0x1663a4('0x24a0'),'interval':_0x1663a4('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x1663a4('0x1522'),'field':{'name':_0x1663a4('0x1132'),'key':'name'},'route':'tag','filters':{'fields':'id,name','sort':_0x1663a4('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':'Tag','name':_0x1663a4('0x1132'),'type':'apiselect','values':_0x1663a4('0x1522'),'value':_0x1663a4('0xf6b'),'option':_0x1663a4('0xf6b'),'required':!![],'param':0x0}]}],[_0x1663a4('0x643')]),{'isApp':![]}),_0x2e1a24['list']={'group':{'name':'opt1','pull':_0x1663a4('0x2080')},'animation':0x64,'sort':![]},_0x2e1a24[_0x1663a4('0x1683')]={'group':{'name':_0x1663a4('0x22e2'),'put':_0x1663a4('0x2003')},'animation':0x64,'onAdd':function(_0x1ca670){const _0x592033=_0x1663a4;_0x24da3c(_0x1ca670,_0x1ca670[_0x592033('0xf0c')]);},'onSort':function(){_0x3f3d6f();}},_0x2e1a24['init']=_0x330496,_0x2e1a24[_0x1663a4('0x1a20')]=_0x4a16e9,_0x2e1a24['getOpenchannelAccountApps']=_0x37cd92,_0x2e1a24[_0x1663a4('0x2891')]=_0x24da3c,_0x2e1a24[_0x1663a4('0x1374')]=_0x49a263,_0x2e1a24['deleteOpenchannelAccountApp']=_0x147f12,_0x2e1a24[_0x1663a4('0x1d6')]=_0x262618,_0x2e1a24['rewriteRouting']=_0x3f3d6f,_0x2e1a24['getIntervals']=_0x28bf74;function _0x330496(_0x45b364,_0x354e21){const _0x561aa2=_0x1663a4;_0x2e1a24['openchannelAccount']=_0x45b364,_0x2e1a24[_0x561aa2('0x103e')]=typeof _0x354e21!==_0x561aa2('0xfad')?_0x354e21:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2e1a24[_0x561aa2('0x1683')][_0x561aa2('0xc3c')]=!_0x2e1a24['crudPermissions'][_0x561aa2('0x1d34')]?!![]:![],_0x2e1a24['query']['id']=_0x45b364['id'],_0x2e1a24[_0x561aa2('0x826')][_0x561aa2('0xb08')]=!![],_0x2e1a24['query'][_0x561aa2('0x24c6')]=!![],_0x2e1a24[_0x561aa2('0x166c')](),_0x2e1a24['getIntervals']();}function _0x4a16e9(_0x12483d,_0x168403,_0x252023){const _0x58a8ba=_0x1663a4,_0x100751=_0x4d98bf[_0x58a8ba('0x1121')]()['title'](_0x58a8ba('0x804'))[_0x58a8ba('0x211f')](''+_0x12483d[_0x58a8ba('0x643')]+_0x58a8ba('0x1d23')+'\x20will\x20be\x20deleted.')[_0x58a8ba('0x2095')](_0x58a8ba('0x37b'))['targetEvent'](_0x252023)['ok']('OK')[_0x58a8ba('0x1d47')](_0x58a8ba('0x28a0'));_0x4d98bf[_0x58a8ba('0x28e2')](_0x100751)[_0x58a8ba('0x17e7')](function(){const _0xd5377=_0x58a8ba;_0x2e1a24['openchannelAccountApps'][_0xd5377('0x2319')][_0xd5377('0x2335')](_0x168403,0x1),_0x3f3d6f();},function(){const _0x4516f2=_0x58a8ba;console[_0x4516f2('0x1d63')](_0x4516f2('0x28a0'));});}function _0x24da3c(_0x59dc66,_0xc9cc7d){const _0x856ad6=_0x1663a4;if(_0x2e1a24[_0x856ad6('0x103f')][_0x856ad6('0x2319')]['length']){const _0x22d519=_0x2e1a24[_0x856ad6('0x103f')][_0x856ad6('0x2319')][_0xc9cc7d]?_0x2e1a24[_0x856ad6('0x103f')][_0x856ad6('0x2319')][_0xc9cc7d]:_0x2e1a24[_0x856ad6('0x103f')]['rows'][0x0],_0x41cc3e=(_0x22d519[_0x856ad6('0x1c54')]||_0x22d519[_0x856ad6('0x643')])[_0x856ad6('0x19b')]();_0x4d98bf[_0x856ad6('0x28e2')]({'controller':_0x856ad6('0x2669')+_0x41cc3e+_0x856ad6('0x1553'),'controllerAs':'vm','templateUrl':_0x2d3aa4[_0x41cc3e],'parent':angular[_0x856ad6('0x1ce1')](_0x3f9ae3[_0x856ad6('0x13aa')]),'targetEvent':_0x59dc66,'clickOutsideToClose':!![],'locals':{'openchannelAccountApp':_0x22d519,'openchannelAccount':_0x2e1a24['openchannelAccount'],'crudPermissions':_0x2e1a24['crudPermissions']}})['then'](function(_0x90416f){const _0x3eadb5=_0x856ad6;_0x90416f&&(_0x90416f['id']?_0x2e1a24[_0x3eadb5('0x103f')][_0x3eadb5('0x2319')][_0xc9cc7d]=_0x90416f:_0x2e1a24[_0x3eadb5('0x103f')][_0x3eadb5('0x2319')][_0x3eadb5('0x2335')](_0xc9cc7d,0x0,_0x90416f),_0x3f3d6f());})[_0x856ad6('0x16df')](function(_0x53bf66){const _0x4ef54c=_0x856ad6;_0x53bf66&&_0x138897[_0x4ef54c('0x1db9')]({'title':_0x53bf66[_0x4ef54c('0x11c5')]?'API:'+_0x53bf66[_0x4ef54c('0x11c5')]+_0x4ef54c('0x16e4')+_0x53bf66[_0x4ef54c('0x1833')]:_0x4ef54c('0x2514'),'msg':_0x53bf66[_0x4ef54c('0x1457')]?JSON[_0x4ef54c('0x678')](_0x53bf66['data']):_0x53bf66['toString']()});});}}function _0x49a263(_0x25a5cf,_0x3f14cb){const _0x205cfc=_0x1663a4;if(_0x2e1a24[_0x205cfc('0x103f')]['rows']['length']){const _0x1458f2=_0x2e1a24[_0x205cfc('0x103f')][_0x205cfc('0x2319')][_0x3f14cb]?_0x2e1a24[_0x205cfc('0x103f')][_0x205cfc('0x2319')][_0x3f14cb]:_0x2e1a24[_0x205cfc('0x103f')][_0x205cfc('0x2319')][0x0];_0x4d98bf[_0x205cfc('0x28e2')]({'controller':_0x205cfc('0x19d3'),'controllerAs':'vm','templateUrl':_0x105cd1,'parent':angular[_0x205cfc('0x1ce1')](_0x3f9ae3['body']),'targetEvent':_0x25a5cf,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x1458f2[_0x205cfc('0x231f')],'IntervalId':_0x1458f2[_0x205cfc('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0x2e1a24[_0x205cfc('0x103e')]}})[_0x205cfc('0x17e7')](function(_0x4a82b1){const _0x362650=_0x205cfc;_0x4a82b1&&(_0x1458f2[_0x362650('0x231f')]=_0x4a82b1[_0x362650('0x231f')]||'*,*,*,*',_0x1458f2[_0x362650('0x24a9')]=_0x4a82b1[_0x362650('0x24a9')]||null,_0x3f3d6f());});}}function _0x3f3d6f(){const _0x45c007=_0x1663a4;let _0x232958=0x1,_0x84d0cb=[];for(let _0x3873dc=0x0;_0x3873dc<_0x2e1a24[_0x45c007('0x103f')][_0x45c007('0x2319')][_0x45c007('0x1f73')];_0x3873dc++){const _0x3fac02=_0x2e1a24[_0x45c007('0x103f')][_0x45c007('0x2319')][_0x3873dc],_0x462080=[],_0x2a17ed=[];_0x3fac02[_0x45c007('0x1be1')]=_0x3fac02[_0x45c007('0x231f')]!=='*,*,*,*'?[_0x3fac02['interval']]:_0x3fac02[_0x45c007('0x24a9')]?_0x49cbdd()[_0x45c007('0x787')](_0x49cbdd()[_0x45c007('0x2483')](_0x2e1a24[_0x45c007('0x1be1')][_0x45c007('0x2319')],{'IntervalId':_0x3fac02[_0x45c007('0x24a9')]}),_0x45c007('0x231f')):[],_0x3fac02['context']=_0x2e1a24[_0x45c007('0x152f')][_0x45c007('0x17b3')],_0x3fac02[_0x45c007('0xee9')]=_0x2e1a24[_0x45c007('0x152f')][_0x45c007('0xee9')],_0x3fac02['type']&&(_0x3fac02['type']=_0x3fac02[_0x45c007('0x412')][_0x45c007('0x19b')]()),_0x3fac02[_0x45c007('0x1a6d')]=_0x462080['length']?_0x49cbdd()[_0x45c007('0x5e8')](_0x462080)[_0x45c007('0x1a6d')]+0x1:_0x232958,_0x232958=(_0x2a17ed[_0x45c007('0x1f73')]?_0x49cbdd()[_0x45c007('0x5e8')](_0x2a17ed)['priority']:_0x3fac02[_0x45c007('0x1a6d')])+0x1,_0x84d0cb=_0x49cbdd()[_0x45c007('0xe1b')](_0x84d0cb,_0x462080,[_0x3fac02],_0x2a17ed);}_0x1e5605[_0x45c007('0x152f')][_0x45c007('0x55d')]({'id':_0x2e1a24[_0x45c007('0x152f')]['id']},_0x49cbdd()[_0x45c007('0x1be3')](_0x84d0cb,_0x45c007('0x1a6d')))['$promise']['then'](function(_0x5c1b05){const _0x5409f9=_0x45c007;_0x2e1a24[_0x5409f9('0x103f')][_0x5409f9('0x2319')]=_0x5c1b05[_0x5409f9('0x2319')];})['catch'](function(_0x5e24a4){const _0x45af84=_0x45c007;console[_0x45af84('0x1db9')](_0x5e24a4);});}function _0x1eebb7(_0x59c479){const _0x16e6bb=_0x1663a4;_0x2e1a24[_0x16e6bb('0x103f')]=_0x59c479||{'count':0x0,'rows':[]};}function _0x28bf74(){const _0x42aa0e=_0x1663a4;return _0x1e5605[_0x42aa0e('0x231f')][_0x42aa0e('0x1c53')]({'fields':_0x42aa0e('0x828')})[_0x42aa0e('0x1af5')][_0x42aa0e('0x17e7')](function(_0x5d88de){const _0x2bcf7c=_0x42aa0e;_0x2e1a24[_0x2bcf7c('0x1be1')]=_0x5d88de;})[_0x42aa0e('0x16df')](function(_0x274973){const _0x5c7673=_0x42aa0e;console[_0x5c7673('0x1db9')](_0x274973);});}function _0x37cd92(){const _0x1384d2=_0x1663a4;_0x2e1a24[_0x1384d2('0x1691')]=_0x1e5605[_0x1384d2('0x152f')][_0x1384d2('0xd3e')](_0x2e1a24['query'],_0x1eebb7)[_0x1384d2('0x1af5')];}function _0x147f12(_0x3273e2){const _0x2bb06b=_0x1663a4;_0x49cbdd()[_0x2bb06b('0x5f3')](_0x2e1a24['openchannelAccountApps'][_0x2bb06b('0x2319')],{'id':_0x3273e2['id']}),_0x3f3d6f(),_0x138897['success']({'title':_0x2bb06b('0x22bd'),'msg':_0x3273e2['app']?_0x3273e2['app']+_0x2bb06b('0x149f'):''});}function _0x262618(_0x2e3256){const _0x51663f=_0x1663a4,_0x7e4b58=_0x4d98bf[_0x51663f('0x1121')]()[_0x51663f('0x24d3')](_0x51663f('0x272a'))[_0x51663f('0x211f')](_0x51663f('0xa53')+_0x2e1a24[_0x51663f('0x13fe')][_0x51663f('0x1f73')]+_0x51663f('0x145a')+_0x51663f('0xe9f'))['ariaLabel'](_0x51663f('0x362'))[_0x51663f('0x104f')](_0x2e3256)['ok']('OK')[_0x51663f('0x1d47')](_0x51663f('0x28a0'));_0x4d98bf[_0x51663f('0x28e2')](_0x7e4b58)['then'](function(){const _0x10860c=_0x51663f;_0x2e1a24['selectedOpenchannelAccountApps']['forEach'](function(_0x58ccf5){const _0x201e3b=a0_0xd29e;_0x49cbdd()['remove'](_0x2e1a24[_0x201e3b('0x103f')][_0x201e3b('0x2319')],{'id':_0x58ccf5['id']});}),_0x2e1a24[_0x10860c('0x13fe')]=[],_0x3f3d6f();});}}const _0x39c45a=_0x582bb2;_0x37cd6f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x152f'),'openchannelAccounts',_0x4376d8('0x20c8'),'$translate',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x37cd6f(_0x1c195d,_0x3eb77f,_0xceb9f1,_0x14f6ac,_0x20a25e,_0xe5524e,_0x3e2b41,_0x255c4b,_0x54c811,_0x47bb32){const _0x5d3499=_0x4376d8,_0x2b39b5=this;_0x2b39b5[_0x5d3499('0x197c')]=_0x54c811[_0x5d3499('0x2831')](),_0x2b39b5[_0x5d3499('0x152f')]=_0x20a25e,_0x2b39b5['crudPermissions']=_0x47bb32,_0x2b39b5[_0x5d3499('0x20c8')]=_0x3e2b41,_0x2b39b5[_0x5d3499('0x532')]=[],_0x2b39b5[_0x5d3499('0x2722')]=[],_0x2b39b5[_0x5d3499('0xc14')]=[],_0x2b39b5[_0x5d3499('0x181b')]=[],_0x2b39b5[_0x5d3499('0x1824')]=[],_0x2b39b5['pendingChanges']=![],_0x2b39b5['onInit']=_0x5ed874,_0x2b39b5[_0x5d3499('0x257a')]=_0x1ca43b,_0x2b39b5[_0x5d3499('0x136e')]=_0x5db9e7,_0x2b39b5[_0x5d3499('0x26f4')]={'readOnly':!_0x2b39b5[_0x5d3499('0x103e')][_0x5d3499('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':'fullname','line2':[_0x5d3499('0x2aa'),_0x5d3499('0xe3e')],'line3':'','labelAll':_0x255c4b[_0x5d3499('0x1acc')](_0x5d3499('0x19c5')),'labelSelected':_0x255c4b['instant'](_0x5d3499('0x1e1b')),'transferCallback':function(){const _0x4c686a=_0x5d3499,_0x1b50ae=_0x49cbdd()[_0x4c686a('0x137')](_0x2b39b5['startingSelectedItems'],_0x2b39b5['selectedItems'],'id');_0x2b39b5['pendingChanges']=_0x49cbdd()[_0x4c686a('0x109a')](_0x1b50ae)?![]:!![];}};function _0x5ed874(){const _0x566d4e=_0x5d3499;return _0x54c811[_0x566d4e('0x1ba2')](_0x566d4e('0x20bf'))?_0x5eb805()[_0x566d4e('0x16df')](function(_0x5154a7){const _0x28bfb7=_0x566d4e;_0xceb9f1[_0x28bfb7('0x1db9')]({'title':_0x5154a7['status']?_0x28bfb7('0x14f7')+_0x5154a7[_0x28bfb7('0x11c5')]+'\x20-\x20'+_0x5154a7[_0x28bfb7('0x1833')]:_0x28bfb7('0x23e0'),'msg':_0x5154a7['status']?JSON[_0x28bfb7('0x678')](_0x5154a7['data']):_0x5154a7[_0x28bfb7('0x9b6')]()});}):_0x158ae7()[_0x566d4e('0x17e7')](function(_0x9b1d58){const _0x32eb2e=_0x566d4e;return _0x2b39b5[_0x32eb2e('0x16f8')]=_0x9b1d58,_0x5eb805();})['catch'](function(_0x51e03f){const _0x3c5b1e=_0x566d4e;_0xceb9f1[_0x3c5b1e('0x1db9')]({'title':_0x51e03f[_0x3c5b1e('0x11c5')]?_0x3c5b1e('0x14f7')+_0x51e03f[_0x3c5b1e('0x11c5')]+_0x3c5b1e('0x16e4')+_0x51e03f['statusText']:_0x3c5b1e('0x23e0'),'msg':_0x51e03f[_0x3c5b1e('0x11c5')]?JSON[_0x3c5b1e('0x678')](_0x51e03f['data']):_0x51e03f[_0x3c5b1e('0x9b6')]()});});}function _0x158ae7(){return _0x3eb77f(function(_0x54f49e,_0x47bee7){const _0x3e528a=a0_0xd29e;_0x14f6ac['userProfileSection'][_0x3e528a('0x1c53')]({'userProfileId':_0x2b39b5[_0x3e528a('0x197c')][_0x3e528a('0x1e76')],'name':'Agents'})['$promise'][_0x3e528a('0x17e7')](function(_0x315aed){const _0x6c2910=_0x3e528a,_0x50d19e=_0x315aed&&_0x315aed[_0x6c2910('0x2319')]?_0x315aed[_0x6c2910('0x2319')][0x0]:null;_0x54f49e(_0x50d19e);})['catch'](function(_0x478860){_0x47bee7(_0x478860);});});}function _0x5eb805(){return _0x3eb77f(function(_0x47a770,_0x4820a1){const _0x535c36=a0_0xd29e;return _0x2ac70f()[_0x535c36('0x17e7')](function(_0x30f67a){const _0x1e2397=_0x535c36;return _0x2b39b5['items']=_0x30f67a['rows']?_0x30f67a['rows']:[],_0x54c811[_0x1e2397('0x1ba2')](_0x1e2397('0x20bf'))?_0x30f67a:_0x2b39b5[_0x1e2397('0x16f8')]?_0x2b39b5['section'][_0x1e2397('0x9e3')]?_0x30f67a:_0x5bfca0():null;})[_0x535c36('0x17e7')](function(_0x3938e4){const _0x3e2d0b=_0x535c36,_0x3336f8=_0x3938e4&&_0x3938e4['rows']?_0x3938e4[_0x3e2d0b('0x2319')]:[];return _0x2b39b5['allowedItems']=_0x49cbdd()[_0x3e2d0b('0x787')](_0x3336f8,function(_0x5b9616){const _0x1fba4b=_0x3e2d0b;return _0x49cbdd()[_0x1fba4b('0xe8e')](_0x2b39b5[_0x1fba4b('0x532')],{'id':_0x54c811[_0x1fba4b('0x1ba2')]('admin')||_0x2b39b5[_0x1fba4b('0x16f8')][_0x1fba4b('0x9e3')]?_0x5b9616['id']:_0x5b9616[_0x1fba4b('0x5db')]});}),_0x2b39b5[_0x3e2d0b('0x181b')]=angular[_0x3e2d0b('0x14e5')](_0x2b39b5['allowedItems']),_0x2b39b5[_0x3e2d0b('0x532')][_0x3e2d0b('0xccd')](function(_0x54c681){const _0x397488=_0x3e2d0b,_0x147d9a=_0x49cbdd()[_0x397488('0xe8e')](_0x2b39b5[_0x397488('0x2722')],{'id':_0x54c681['id']});_0x54c811[_0x397488('0x1ba2')](_0x397488('0x20bf'))?_0x54c681[_0x397488('0xc98')]=!![]:_0x54c681[_0x397488('0xc98')]=typeof _0x147d9a!==_0x397488('0xfad')?!![]:![];}),_0x986b8f();})['then'](function(_0x395b01){const _0xf3ef2=_0x535c36,_0x10eea2=_0x395b01&&_0x395b01['rows']?_0x395b01[_0xf3ef2('0x2319')]:[];_0x2b39b5[_0xf3ef2('0xc14')]=_0x49cbdd()[_0xf3ef2('0x787')](_0x10eea2,function(_0x3d06f8){const _0x406559=_0xf3ef2,_0x151d8f=_0x49cbdd()['find'](_0x2b39b5['items'],{'id':_0x3d06f8['id']});return _0x151d8f[_0x406559('0x122c')]=_0x3d06f8[_0x406559('0x36c')]?'penalty\x20'+_0x3d06f8[_0x406559('0x36c')][_0x406559('0x122c')]:'',_0x151d8f[_0x406559('0xe3e')]=typeof _0x3d06f8[_0x406559('0xe3e')]!==_0x406559('0xfad')?'<'+_0x3d06f8[_0x406559('0xe3e')]+'>':'',_0x151d8f;}),_0x2b39b5['startingSelectedItems']=angular['copy'](_0x2b39b5['selectedItems']),_0x2b39b5[_0xf3ef2('0x26f4')][_0xf3ef2('0xc14')]=_0x2b39b5[_0xf3ef2('0xc14')],_0x2b39b5['dualMultiselectOptions'][_0xf3ef2('0x532')]=_0x49cbdd()[_0xf3ef2('0x1ada')](_0x2b39b5[_0xf3ef2('0x2722')],_0x2b39b5[_0xf3ef2('0x26f4')]['selectedItems'],'id'),_0x47a770();})[_0x535c36('0x16df')](function(_0x30faa7){_0x4820a1(_0x30faa7);});});}function _0x5bfca0(){return _0x3eb77f(function(_0x10ece6,_0x1a3443){const _0x548750=a0_0xd29e;return _0x14f6ac[_0x548750('0x78d')][_0x548750('0x1c53')]({'sectionId':_0x2b39b5[_0x548750('0x16f8')]['id'],'nolimit':!![]})[_0x548750('0x1af5')]['then'](function(_0x6797ee){_0x10ece6(_0x6797ee);})[_0x548750('0x16df')](function(_0x5a174f){_0x1a3443(_0x5a174f);});});}function _0x986b8f(){return _0x3eb77f(function(_0x185a5c,_0x5a6a5b){const _0x559e0c=a0_0xd29e;return _0x14f6ac[_0x559e0c('0x152f')]['getAgents']({'id':_0x2b39b5[_0x559e0c('0x152f')]['id'],'fields':_0x559e0c('0x1152'),'nolimit':!![],'role':_0x559e0c('0x684')})[_0x559e0c('0x1af5')][_0x559e0c('0x17e7')](function(_0x42b0d1){_0x185a5c(_0x42b0d1);})[_0x559e0c('0x16df')](function(_0x3d2851){_0x5a6a5b(_0x3d2851);});});}function _0x2ac70f(){return _0x3eb77f(function(_0x2a6929,_0x1ad6a3){const _0x54757d=a0_0xd29e;return _0x14f6ac[_0x54757d('0x221e')][_0x54757d('0x1c53')]({'fields':_0x54757d('0x1152'),'nolimit':!![],'role':_0x54757d('0x684')})['$promise'][_0x54757d('0x17e7')](function(_0x4cbbbe){_0x2a6929(_0x4cbbbe);})[_0x54757d('0x16df')](function(_0x398c18){_0x1ad6a3(_0x398c18);});});}function _0xebf0fd(_0x30685f){return _0x3eb77f(function(_0x53993b,_0x4cd49b){const _0x4b31cc=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x30685f)?_0x53993b():_0x14f6ac[_0x4b31cc('0x152f')][_0x4b31cc('0x1f22')]({'id':_0x2b39b5[_0x4b31cc('0x152f')]['id'],'ids':_0x49cbdd()['map'](_0x30685f,'id')})[_0x4b31cc('0x1af5')][_0x4b31cc('0x17e7')](function(){_0x53993b();})[_0x4b31cc('0x16df')](function(_0x329aa3){_0x4cd49b(_0x329aa3);});});}function _0x4016e2(_0x238954){return _0x3eb77f(function(_0x258913,_0x46dfec){const _0x52070f=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x238954)?_0x258913():_0x14f6ac['openchannelAccount'][_0x52070f('0x1625')]({'id':_0x2b39b5['openchannelAccount']['id'],'ids':_0x49cbdd()[_0x52070f('0x787')](_0x238954,'id')})[_0x52070f('0x1af5')][_0x52070f('0x17e7')](function(){_0x258913();})[_0x52070f('0x16df')](function(_0x247fba){_0x46dfec(_0x247fba);});});}function _0x1ca43b(){const _0x358425=_0x5d3499,_0x3a308c=_0x49cbdd()[_0x358425('0x1ada')](_0x2b39b5[_0x358425('0x1824')],_0x2b39b5['selectedItems'],'id'),_0x44a9d3=_0x49cbdd()['differenceBy'](_0x2b39b5['selectedItems'],_0x2b39b5[_0x358425('0x1824')],'id');return _0x4016e2(_0x3a308c)[_0x358425('0x17e7')](function(){return _0xebf0fd(_0x44a9d3);})['then'](function(){const _0x1880d5=_0x358425;_0x2b39b5['pendingChanges']=![],_0x2b39b5['startingAllowedItems']=angular[_0x1880d5('0x14e5')](_0x2b39b5[_0x1880d5('0x2722')]),_0x2b39b5[_0x1880d5('0x1824')]=angular[_0x1880d5('0x14e5')](_0x2b39b5[_0x1880d5('0xc14')]),_0xceb9f1[_0x1880d5('0x130d')]({'title':_0x1880d5('0x9d1'),'msg':_0x1880d5('0x2603')});})[_0x358425('0x16df')](function(_0x4934ec){const _0x51c5ea=_0x358425;_0xceb9f1[_0x51c5ea('0x1db9')]({'title':_0x4934ec['status']?_0x51c5ea('0x14f7')+_0x4934ec['status']+_0x51c5ea('0x16e4')+_0x4934ec['statusText']:_0x51c5ea('0x244e'),'msg':_0x4934ec['status']?JSON[_0x51c5ea('0x678')](_0x4934ec['data']):_0x4934ec[_0x51c5ea('0x9b6')]()});});}function _0x5db9e7(){const _0xee764e=_0x5d3499;_0x1c195d[_0xee764e('0x212a')]();}}const _0x2bc20b=_0x37cd6f;_0x14d54e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty','openchannelAccountApp',_0x4376d8('0x152f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x14d54e(_0x48977b,_0x1318b6,_0x1d881a,_0x471b37,_0x4d8123,_0x53c7ae,_0xca92d,_0x31a956){const _0x28623e=_0x4376d8,_0x591b62=this;_0x591b62[_0x28623e('0x197c')]=_0xca92d[_0x28623e('0x2831')](),_0x591b62[_0x28623e('0x73e')]=[],_0x591b62['title']=_0x28623e('0x1ee')+(_0x471b37[_0x28623e('0x1c54')]||_0x471b37['app'])[_0x28623e('0x14e2')](),_0x591b62[_0x28623e('0x684')]=angular[_0x28623e('0x14e5')](_0x471b37),_0x591b62[_0x28623e('0x103e')]=_0x31a956,_0x591b62[_0x28623e('0x6ee')]={};if(_0x591b62[_0x28623e('0x684')][_0x28623e('0x2077')])switch(_0x591b62['agent'][_0x28623e('0x1c54')]?_0x591b62[_0x28623e('0x684')][_0x28623e('0x1c54')][_0x28623e('0x19b')]():_0x591b62[_0x28623e('0x684')]['app']['toLowerCase']()){case'custom':break;case _0x28623e('0x2526'):{const _0x142914=_0x591b62[_0x28623e('0x684')]['appdata'][_0x28623e('0x2007')](',');_0x591b62[_0x28623e('0x684')][_0x28623e('0xdb5')]=_0x142914[0x0],_0x591b62[_0x28623e('0x684')][_0x28623e('0x3e1')]=_0x142914[0x1],_0x591b62[_0x28623e('0x684')][_0x28623e('0x1083')]=_0x142914[_0x28623e('0x275f')](0x2,_0x142914[_0x28623e('0x1f73')])[_0x28623e('0x1eba')](',');}break;case _0x28623e('0x22ac'):{const _0x6a8ba6=_0x591b62[_0x28623e('0x684')][_0x28623e('0x2077')]['split'](',');_0x591b62[_0x28623e('0x684')][_0x28623e('0x28ab')]=_0x6a8ba6[0x0],_0x591b62[_0x28623e('0x684')]['clientEmail']=_0x6a8ba6[0x1],_0x591b62['agent'][_0x28623e('0x1bc2')]=_0x6a8ba6[0x2],_0x591b62[_0x28623e('0x684')][_0x28623e('0x3e1')]=_0x6a8ba6[0x3],_0x591b62[_0x28623e('0x684')][_0x28623e('0x1083')]=_0x6a8ba6[_0x28623e('0x275f')](0x4,_0x6a8ba6[_0x28623e('0x1f73')])[_0x28623e('0x1eba')](',');}break;case _0x28623e('0x16a9'):{const _0x12c0e3=_0x591b62['agent'][_0x28623e('0x2077')]['split'](',');_0x591b62[_0x28623e('0x684')][_0x28623e('0x1452')]=_0x12c0e3[0x0],_0x591b62[_0x28623e('0x684')][_0x28623e('0x1a62')]=_0x12c0e3[0x1],_0x591b62[_0x28623e('0x684')]['lexregion']=_0x12c0e3[0x2],_0x591b62[_0x28623e('0x684')][_0x28623e('0x4a')]=_0x12c0e3[0x3],_0x591b62['agent']['welcomemessage']=_0x12c0e3[_0x28623e('0x275f')](0x4,_0x12c0e3[_0x28623e('0x1f73')])[_0x28623e('0x1eba')](',');}break;case _0x28623e('0x96e'):{const _0x3f604a=_0x591b62[_0x28623e('0x684')][_0x28623e('0x2077')][_0x28623e('0x2007')](',');_0x591b62[_0x28623e('0x684')][_0x28623e('0x12a6')]=isNaN(_0x3f604a[0x0])?_0x3f604a[0x0]:parseInt(_0x3f604a[0x0],0xa),_0x591b62[_0x28623e('0x684')]['text']=_0x3f604a['slice'](0x1,_0x3f604a[_0x28623e('0x1f73')])[_0x28623e('0x1eba')](',');}break;case'message':_0x591b62[_0x28623e('0x684')][_0x28623e('0x132f')]=_0x591b62[_0x28623e('0x684')][_0x28623e('0x2077')];break;case _0x28623e('0xf2e'):_0x591b62[_0x28623e('0x684')][_0x28623e('0x2aa')]=_0x591b62['agent'][_0x28623e('0x2077')][_0x28623e('0x2007')]('=')[0x0],_0x591b62[_0x28623e('0x684')][_0x28623e('0x175b')]=_0x591b62[_0x28623e('0x684')][_0x28623e('0x2077')]['split']('=')[0x1];break;case _0x28623e('0x17c6'):_0x591b62[_0x28623e('0x684')][_0x28623e('0x87c')]=_0x591b62[_0x28623e('0x684')][_0x28623e('0x2077')];break;default:{const _0x1a2997=_0x591b62[_0x28623e('0x684')][_0x28623e('0x2077')]['split'](',');_0x591b62[_0x28623e('0x684')][_0x28623e('0x684')]=_0x49cbdd()[_0x28623e('0x109a')](_0x1a2997[0x0])?_0x1a2997[0x0]:isNaN(_0x1a2997[0x0])?_0x1a2997[0x0]:parseInt(_0x1a2997[0x0],0xa),_0x591b62['agent'][_0x28623e('0xd2f')]=_0x49cbdd()[_0x28623e('0x109a')](_0x1a2997[0x1])?_0x1a2997[0x1]:isNaN(_0x1a2997[0x1])?_0x1a2997[0x1]:parseInt(_0x1a2997[0x1],0xa);}break;}else _0x591b62[_0x28623e('0x684')]['timeout']=0x1e;_0x591b62['agent'][_0x28623e('0x412')]&&_0x591b62['agent'][_0x28623e('0x412')][_0x28623e('0x19b')]()===_0x28623e('0x1ade')&&_0x591b62[_0x28623e('0x684')][_0x28623e('0x1c54')]['toLowerCase']()==='outbounddial'&&(_0x591b62[_0x28623e('0x684')][_0x28623e('0x11d4')]=_0x591b62[_0x28623e('0x684')][_0x28623e('0x2154')]?_0x591b62[_0x28623e('0x684')][_0x28623e('0x2154')]['split']('$')[0x0]:undefined,_0x591b62[_0x28623e('0x684')]['callerId']=_0x591b62[_0x28623e('0x684')]['callerID']?_0x28623e('0x1d28')+_0x591b62['agent'][_0x28623e('0x17f4')]:undefined);_0x591b62[_0x28623e('0x22d0')]=_0x32891a,_0x591b62[_0x28623e('0x136e')]=_0x3acbdd,_0xca92d[_0x28623e('0x1ba2')]('admin')?_0x53c7ae['user']['get']({'fields':_0x28623e('0x12d2'),'sort':_0x28623e('0x2aa'),'role':'agent','nolimit':'true'})[_0x28623e('0x1af5')][_0x28623e('0x17e7')](function(_0x2b7dfb){const _0x103d5d=_0x28623e;_0x591b62[_0x103d5d('0x25ea')]=_0x2b7dfb[_0x103d5d('0x2319')]||[];})[_0x28623e('0x16df')](function(_0x21d182){const _0x36c8b6=_0x28623e;_0x1d881a['error']({'title':_0x21d182[_0x36c8b6('0x11c5')]?_0x36c8b6('0x14f7')+_0x21d182[_0x36c8b6('0x11c5')]+'\x20-\x20'+_0x21d182[_0x36c8b6('0x1833')]:_0x36c8b6('0x23e0'),'msg':_0x21d182['data']?JSON['stringify'](_0x21d182[_0x36c8b6('0x1457')]):_0x21d182[_0x36c8b6('0x9b6')]()});}):_0x53c7ae[_0x28623e('0x221e')]['get']({'fields':_0x28623e('0x12d2'),'sort':_0x28623e('0x2aa'),'role':_0x28623e('0x684'),'nolimit':_0x28623e('0xe34')})['$promise'][_0x28623e('0x17e7')](function(_0x1f72f1){const _0x25927f=_0x28623e;_0x591b62[_0x25927f('0x25ea')]=_0x1f72f1[_0x25927f('0x2319')]||[];})[_0x28623e('0x17e7')](function(){const _0xfd8c3f=_0x28623e;return _0x53c7ae['userProfileSection'][_0xfd8c3f('0x1c53')]({'userProfileId':_0x591b62[_0xfd8c3f('0x197c')][_0xfd8c3f('0x1e76')],'sectionId':0xca})[_0xfd8c3f('0x1af5')];})[_0x28623e('0x17e7')](function(_0x3e8e67){const _0x1097b0=_0x28623e,_0x2e684b=_0x3e8e67&&_0x3e8e67[_0x1097b0('0x2319')]?_0x3e8e67[_0x1097b0('0x2319')][0x0]:null;if(!_0x2e684b){const _0x3003ad=[];let _0x13c5e0=null;_0x591b62[_0x1097b0('0x684')]&&(_0x13c5e0=_0x49cbdd()[_0x1097b0('0xe8e')](_0x591b62['agents'],{'name':_0x591b62[_0x1097b0('0x684')][_0x1097b0('0x684')]}));for(let _0x2f7dbd=0x0;_0x2f7dbd<_0x591b62[_0x1097b0('0x25ea')][_0x1097b0('0x1f73')];_0x2f7dbd++){_0x13c5e0&&_0x591b62[_0x1097b0('0x25ea')][_0x2f7dbd]['id']===_0x13c5e0['id']&&(_0x591b62[_0x1097b0('0x25ea')][_0x2f7dbd][_0x1097b0('0xe5c')]=![],_0x3003ad[_0x1097b0('0x269f')](_0x591b62[_0x1097b0('0x25ea')][_0x2f7dbd]));}_0x591b62['agents']=_0x3003ad;}else{if(!_0x2e684b[_0x1097b0('0x9e3')])return _0x53c7ae['userProfileResource'][_0x1097b0('0x1c53')]({'sectionId':_0x2e684b['id']})[_0x1097b0('0x1af5')][_0x1097b0('0x17e7')](function(_0x331ed6){const _0x36dc7b=_0x1097b0,_0xe61c3d=_0x49cbdd()[_0x36dc7b('0x787')](_0x331ed6[_0x36dc7b('0x2319')],function(_0x14259f){const _0x2ef94f=_0x36dc7b;return _0x49cbdd()[_0x2ef94f('0xe8e')](_0x591b62[_0x2ef94f('0x25ea')],{'id':_0x14259f['resourceId']});});let _0x199103=null;_0x591b62[_0x36dc7b('0x684')]&&(_0x199103=_0x49cbdd()[_0x36dc7b('0xe8e')](_0x591b62[_0x36dc7b('0x25ea')],{'name':_0x591b62[_0x36dc7b('0x684')][_0x36dc7b('0x684')]}));if(_0x199103&&!_0x49cbdd()[_0x36dc7b('0x26f8')](_0xe61c3d,['id',_0x199103['id']])){const _0x37e1ac=_0x49cbdd()[_0x36dc7b('0xe8e')](_0x591b62[_0x36dc7b('0x25ea')],{'id':_0x199103['id']});_0x37e1ac[_0x36dc7b('0xe5c')]=![],_0xe61c3d['push'](_0x37e1ac);}_0x591b62[_0x36dc7b('0x25ea')]=_0xe61c3d;});}})['catch'](function(_0x1369d2){const _0x4329ee=_0x28623e;_0x1d881a[_0x4329ee('0x1db9')]({'title':_0x1369d2[_0x4329ee('0x11c5')]?_0x4329ee('0x14f7')+_0x1369d2['status']+_0x4329ee('0x16e4')+_0x1369d2['statusText']:_0x4329ee('0xa37'),'msg':_0x1369d2[_0x4329ee('0x1457')]?JSON[_0x4329ee('0x678')](_0x1369d2['data']):_0x1369d2['toString']()});});function _0x32891a(){const _0x22a5ea=_0x28623e;_0x591b62[_0x22a5ea('0x73e')]=[];const _0x573b2f=[];_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x412')]&&_0x591b62['agent'][_0x22a5ea('0x412')][_0x22a5ea('0x19b')]()===_0x22a5ea('0x1ade')&&_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x1c54')]===_0x22a5ea('0xbdc')&&(_0x591b62['agent'][_0x22a5ea('0x2154')]=_0x4d8123[_0x22a5ea('0x12af')]?(_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x11d4')]||'')+'${EXTEN:'+_0x4d8123['cutdigits']+'}':(_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x11d4')]||'')+_0x22a5ea('0x150e'),_0x4d8123[_0x22a5ea('0x287')]!==_0x22a5ea('0x7ee')?_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x19')][_0x22a5ea('0x2567')](_0x22a5ea('0xa22'))<0x0&&(_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x19')]+='U(xcally-mixmonitor-context)'):_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x19')]=_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x19')]['replace'](_0x22a5ea('0xa22'),''));const _0x46fbc8=_0x49cbdd()[_0x22a5ea('0xe8e')](_0x591b62[_0x22a5ea('0x25ea')],{'name':_0x591b62[_0x22a5ea('0x684')]['agent']});_0x46fbc8&&(_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x5e5')]=_0x46fbc8['id']);if(_0x591b62[_0x22a5ea('0x684')]['appType']&&_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x1c54')]===_0x22a5ea('0x8fa')){}else switch((_0x591b62[_0x22a5ea('0x684')]['app']||_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x1c54')])[_0x22a5ea('0x19b')]()){case _0x22a5ea('0xf2e'):_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x2077')]=_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x2aa')]+'='+_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x175b')];break;case _0x22a5ea('0x8fa'):break;default:_0x573b2f[0x0]=_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0x684')],_0x573b2f[0x1]=_0x591b62[_0x22a5ea('0x684')][_0x22a5ea('0xd2f')],_0x591b62[_0x22a5ea('0x684')]['appdata']=_0x573b2f['join'](',');}_0x3acbdd(_0x591b62[_0x22a5ea('0x684')]);}function _0x3acbdd(_0x259ca8){const _0xe080bb=_0x28623e;_0x48977b[_0xe080bb('0x212a')](_0x259ca8);}}const _0x254fa4=_0x14d54e;_0x86be5c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'openchannelAccountApp',_0x4376d8('0x152f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x86be5c(_0x3c086c,_0x4d2f57,_0x104b98,_0x83a4cb,_0x3d1ad6,_0x3752bd,_0x545c3c,_0x740623){const _0x557754=_0x4376d8,_0x286aa8=this;_0x286aa8['currentUser']=_0x545c3c['getCurrentUser'](),_0x286aa8[_0x557754('0x73e')]=[],_0x286aa8[_0x557754('0x24d3')]=_0x557754('0x1ee')+(_0x83a4cb[_0x557754('0x1c54')]||_0x83a4cb[_0x557754('0x643')])[_0x557754('0x14e2')](),_0x286aa8['amazonlex']=angular['copy'](_0x83a4cb),_0x286aa8['crudPermissions']=_0x740623,_0x286aa8[_0x557754('0x6ee')]={};if(_0x286aa8[_0x557754('0x16a9')]['appdata'])switch(_0x286aa8['amazonlex'][_0x557754('0x1c54')]?_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1c54')]['toLowerCase']():_0x286aa8[_0x557754('0x16a9')][_0x557754('0x643')][_0x557754('0x19b')]()){case _0x557754('0x8fa'):break;case'dialogflow':{const _0x5c4126=_0x286aa8['amazonlex']['appdata'][_0x557754('0x2007')](',');_0x286aa8[_0x557754('0x16a9')][_0x557754('0xdb5')]=_0x5c4126[0x0],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x3e1')]=_0x5c4126[0x1],_0x286aa8['amazonlex'][_0x557754('0x1083')]=_0x5c4126[_0x557754('0x275f')](0x2,_0x5c4126[_0x557754('0x1f73')])[_0x557754('0x1eba')](',');}break;case _0x557754('0x22ac'):{const _0xc8be70=_0x286aa8[_0x557754('0x16a9')][_0x557754('0x2077')]['split'](',');_0x286aa8[_0x557754('0x16a9')]['projectId']=_0xc8be70[0x0],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x2814')]=_0xc8be70[0x1],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1bc2')]=_0xc8be70[0x2],_0x286aa8['amazonlex']['language']=_0xc8be70[0x3],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1083')]=_0xc8be70[_0x557754('0x275f')](0x4,_0xc8be70[_0x557754('0x1f73')])[_0x557754('0x1eba')](',');}break;case _0x557754('0x16a9'):{const _0x35620e=_0x286aa8['amazonlex'][_0x557754('0x2077')][_0x557754('0x2007')](',');_0x286aa8['amazonlex'][_0x557754('0x1452')]=_0x35620e[0x0],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1a62')]=_0x35620e[0x1],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1dcf')]=_0x35620e[0x2],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x4a')]=_0x35620e[0x3],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1083')]=_0x35620e[_0x557754('0x275f')](0x4,_0x35620e[_0x557754('0x1f73')])['join'](',');}break;case _0x557754('0x96e'):{const _0xdd4fa4=_0x286aa8['amazonlex'][_0x557754('0x2077')][_0x557754('0x2007')](',');_0x286aa8[_0x557754('0x16a9')][_0x557754('0x12a6')]=isNaN(_0xdd4fa4[0x0])?_0xdd4fa4[0x0]:parseInt(_0xdd4fa4[0x0],0xa),_0x286aa8[_0x557754('0x16a9')][_0x557754('0x132f')]=_0xdd4fa4[_0x557754('0x275f')](0x1,_0xdd4fa4[_0x557754('0x1f73')])['join'](',');}break;case'message':_0x286aa8[_0x557754('0x16a9')]['text']=_0x286aa8[_0x557754('0x16a9')]['appdata'];break;case'set':_0x286aa8[_0x557754('0x16a9')][_0x557754('0x2aa')]=_0x286aa8[_0x557754('0x16a9')][_0x557754('0x2077')]['split']('=')[0x0],_0x286aa8[_0x557754('0x16a9')][_0x557754('0x175b')]=_0x286aa8[_0x557754('0x16a9')][_0x557754('0x2077')][_0x557754('0x2007')]('=')[0x1];break;case _0x557754('0x17c6'):_0x286aa8[_0x557754('0x16a9')][_0x557754('0x87c')]=_0x286aa8['amazonlex'][_0x557754('0x2077')];break;default:{const _0x535dbe=_0x286aa8[_0x557754('0x16a9')]['appdata'][_0x557754('0x2007')](',');_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1452')]=_0x49cbdd()[_0x557754('0x109a')](_0x535dbe[0x0])?_0x535dbe[0x0]:isNaN(_0x535dbe[0x0])?_0x535dbe[0x0]:parseInt(_0x535dbe[0x0],0xa),_0x286aa8['amazonlex'][_0x557754('0x1a62')]=_0x49cbdd()[_0x557754('0x109a')](_0x535dbe[0x1])?_0x535dbe[0x1]:isNaN(_0x535dbe[0x1])?_0x535dbe[0x1]:parseInt(_0x535dbe[0x1],0xa),_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1dcf')]=_0x49cbdd()['isEmpty'](_0x535dbe[0x2])?_0x535dbe[0x2]:isNaN(_0x535dbe[0x2])?_0x535dbe[0x2]:parseInt(_0x535dbe[0x2],0xa),_0x286aa8[_0x557754('0x16a9')]['botname']=_0x49cbdd()['isEmpty'](_0x535dbe[0x3])?_0x535dbe[0x3]:isNaN(_0x535dbe[0x3])?_0x535dbe[0x3]:parseInt(_0x535dbe[0x3],0xa),_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1083')]=_0x49cbdd()[_0x557754('0x109a')](_0x535dbe[0x4])?_0x535dbe[0x4]:isNaN(_0x535dbe[0x4])?_0x535dbe[0x4]:parseInt(_0x535dbe[0x4],0xa);}break;}else _0x286aa8[_0x557754('0x16a9')][_0x557754('0x1dcf')]=_0x557754('0xf85');_0x286aa8[_0x557754('0x16a9')][_0x557754('0x412')]&&_0x286aa8[_0x557754('0x16a9')][_0x557754('0x412')][_0x557754('0x19b')]()==='outbound'&&_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1c54')][_0x557754('0x19b')]()==='outbounddial'&&(_0x286aa8[_0x557754('0x16a9')][_0x557754('0x11d4')]=_0x286aa8[_0x557754('0x16a9')][_0x557754('0x2154')]?_0x286aa8[_0x557754('0x16a9')][_0x557754('0x2154')][_0x557754('0x2007')]('$')[0x0]:undefined,_0x286aa8[_0x557754('0x16a9')][_0x557754('0x1a8e')]=_0x286aa8[_0x557754('0x16a9')]['callerID']?_0x557754('0x1d28')+_0x286aa8[_0x557754('0x16a9')][_0x557754('0x17f4')]:undefined);_0x286aa8['saveOpenchannelAccountApp']=_0x271b1b,_0x286aa8[_0x557754('0x136e')]=_0x1d1ace;function _0x271b1b(){const _0x12b305=_0x557754;_0x286aa8[_0x12b305('0x73e')]=[];const _0x33da9e=[];_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x412')]&&_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x412')][_0x12b305('0x19b')]()===_0x12b305('0x1ade')&&_0x286aa8['amazonlex'][_0x12b305('0x1c54')]===_0x12b305('0xbdc')&&(_0x286aa8['amazonlex'][_0x12b305('0x2154')]=_0x3d1ad6[_0x12b305('0x12af')]?(_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x11d4')]||'')+'${EXTEN:'+_0x3d1ad6['cutdigits']+'}':(_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x11d4')]||'')+'${EXTEN}',_0x3d1ad6['recordingFormat']!=='none'?_0x286aa8['amazonlex'][_0x12b305('0x19')][_0x12b305('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x19')]+=_0x12b305('0xa22')):_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x19')]=_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x19')][_0x12b305('0x737')](_0x12b305('0xa22'),''));if(_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x1c54')]&&_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x1c54')]==='custom'){}else switch((_0x286aa8[_0x12b305('0x16a9')]['app']||_0x286aa8['amazonlex'][_0x12b305('0x1c54')])[_0x12b305('0x19b')]()){case _0x12b305('0xf2e'):_0x286aa8['amazonlex']['appdata']=_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x2aa')]+'='+_0x286aa8['amazonlex']['value'];break;case _0x12b305('0x8fa'):break;default:_0x33da9e[0x0]=_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x1452')],_0x33da9e[0x1]=_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x1a62')],_0x33da9e[0x2]=_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x1dcf')],_0x33da9e[0x3]=_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x4a')],_0x33da9e[0x4]=_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x1083')],_0x286aa8[_0x12b305('0x16a9')][_0x12b305('0x2077')]=_0x33da9e[_0x12b305('0x1eba')](',');}_0x1d1ace(_0x286aa8['amazonlex']);}function _0x1d1ace(_0xf31118){const _0x56fe96=_0x557754;_0x3c086c[_0x56fe96('0x212a')](_0xf31118);}}const _0x1badef=_0x86be5c;_0x35d274[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x274f'),_0x4376d8('0x152f'),'api',_0x4376d8('0x1885'),'crudPermissions'];function _0x35d274(_0x320214,_0xad342f,_0x2c47d3,_0x2b7589,_0xdd050d,_0x512e5e,_0x4a404f,_0x40130c){const _0x5455b3=_0x4376d8,_0x3c714b=this;_0x3c714b[_0x5455b3('0x197c')]=_0x4a404f['getCurrentUser'](),_0x3c714b[_0x5455b3('0x73e')]=[],_0x3c714b['title']='OPENCHANNEL.EDIT_'+(_0x2b7589[_0x5455b3('0x1c54')]||_0x2b7589[_0x5455b3('0x643')])[_0x5455b3('0x14e2')](),_0x3c714b['autoreply']=angular['copy'](_0x2b7589),_0x3c714b[_0x5455b3('0x103e')]=_0x40130c,_0x3c714b[_0x5455b3('0x6ee')]={};if(_0x3c714b['autoreply']['appdata'])switch(_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x1c54')]?_0x3c714b[_0x5455b3('0x96e')]['appType']['toLowerCase']():_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x643')][_0x5455b3('0x19b')]()){case _0x5455b3('0x8fa'):break;case'dialogflow':{const _0x6e2a01=_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2077')][_0x5455b3('0x2007')](',');_0x3c714b['autoreply'][_0x5455b3('0xdb5')]=_0x6e2a01[0x0],_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x3e1')]=_0x6e2a01[0x1],_0x3c714b[_0x5455b3('0x96e')]['welcomemessage']=_0x6e2a01['slice'](0x2,_0x6e2a01[_0x5455b3('0x1f73')])[_0x5455b3('0x1eba')](',');}break;case _0x5455b3('0x22ac'):{const _0x15ab34=_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2077')][_0x5455b3('0x2007')](',');_0x3c714b['autoreply'][_0x5455b3('0x28ab')]=_0x15ab34[0x0],_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2814')]=_0x15ab34[0x1],_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x1bc2')]=_0x15ab34[0x2],_0x3c714b['autoreply'][_0x5455b3('0x3e1')]=_0x15ab34[0x3],_0x3c714b[_0x5455b3('0x96e')]['welcomemessage']=_0x15ab34[_0x5455b3('0x275f')](0x4,_0x15ab34[_0x5455b3('0x1f73')])[_0x5455b3('0x1eba')](',');}break;case _0x5455b3('0x16a9'):{const _0x5ae370=_0x3c714b[_0x5455b3('0x96e')]['appdata'][_0x5455b3('0x2007')](',');_0x3c714b['autoreply'][_0x5455b3('0x1452')]=_0x5ae370[0x0],_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x1a62')]=_0x5ae370[0x1],_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x1dcf')]=_0x5ae370[0x2],_0x3c714b[_0x5455b3('0x96e')]['botname']=_0x5ae370[0x3],_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x1083')]=_0x5ae370[_0x5455b3('0x275f')](0x4,_0x5ae370[_0x5455b3('0x1f73')])[_0x5455b3('0x1eba')](',');}break;case _0x5455b3('0x96e'):{const _0x4217b9=_0x3c714b[_0x5455b3('0x96e')]['appdata']['split'](',');_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x12a6')]=isNaN(_0x4217b9[0x0])?_0x4217b9[0x0]:parseInt(_0x4217b9[0x0],0xa),_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x132f')]=_0x4217b9[_0x5455b3('0x275f')](0x1,_0x4217b9[_0x5455b3('0x1f73')])[_0x5455b3('0x1eba')](',');}break;case _0x5455b3('0x1603'):_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x132f')]=_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2077')];break;case _0x5455b3('0xf2e'):_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2aa')]=_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2077')][_0x5455b3('0x2007')]('=')[0x0],_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x175b')]=_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2077')]['split']('=')[0x1];break;case _0x5455b3('0x17c6'):_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x87c')]=_0x3c714b[_0x5455b3('0x96e')]['appdata'];break;default:{const _0x32f8de=_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2077')][_0x5455b3('0x2007')](',');_0x3c714b[_0x5455b3('0x96e')]['times']=_0x49cbdd()['isEmpty'](_0x32f8de[0x0])?_0x32f8de[0x0]:isNaN(_0x32f8de[0x0])?_0x32f8de[0x0]:parseInt(_0x32f8de[0x0],0xa),_0x3c714b['autoreply']['text']=_0x49cbdd()['isEmpty'](_0x32f8de[0x1])?_0x32f8de[0x1]:isNaN(_0x32f8de[0x1])?_0x32f8de[0x1]:parseInt(_0x32f8de[0x1],0xa);}break;}else _0x3c714b[_0x5455b3('0x96e')]['times']=0x1;_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x412')]&&_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x412')]['toLowerCase']()===_0x5455b3('0x1ade')&&_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x1c54')][_0x5455b3('0x19b')]()===_0x5455b3('0x1711')&&(_0x3c714b['autoreply']['prefix']=_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2154')]?_0x3c714b[_0x5455b3('0x96e')][_0x5455b3('0x2154')][_0x5455b3('0x2007')]('$')[0x0]:undefined,_0x3c714b[_0x5455b3('0x96e')]['callerId']=_0x3c714b[_0x5455b3('0x96e')]['callerID']?_0x5455b3('0x1d28')+_0x3c714b['autoreply']['callerID']:undefined);_0x3c714b['saveOpenchannelAccountApp']=_0x5778e5,_0x3c714b[_0x5455b3('0x136e')]=_0x39a4fc;function _0x5778e5(){const _0x4f8908=_0x5455b3;_0x3c714b[_0x4f8908('0x73e')]=[];const _0x1791c5=[];_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x412')]&&_0x3c714b['autoreply'][_0x4f8908('0x412')][_0x4f8908('0x19b')]()===_0x4f8908('0x1ade')&&_0x3c714b['autoreply'][_0x4f8908('0x1c54')]==='outboundDial'&&(_0x3c714b[_0x4f8908('0x96e')]['phone']=_0xdd050d[_0x4f8908('0x12af')]?(_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x11d4')]||'')+'${EXTEN:'+_0xdd050d[_0x4f8908('0x12af')]+'}':(_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x11d4')]||'')+_0x4f8908('0x150e'),_0xdd050d[_0x4f8908('0x287')]!==_0x4f8908('0x7ee')?_0x3c714b['autoreply']['options'][_0x4f8908('0x2567')](_0x4f8908('0xa22'))<0x0&&(_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x19')]+=_0x4f8908('0xa22')):_0x3c714b['autoreply'][_0x4f8908('0x19')]=_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x19')][_0x4f8908('0x737')](_0x4f8908('0xa22'),''));if(_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x1c54')]&&_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x1c54')]===_0x4f8908('0x8fa')){}else switch((_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x643')]||_0x3c714b['autoreply'][_0x4f8908('0x1c54')])['toLowerCase']()){case _0x4f8908('0xf2e'):_0x3c714b['autoreply'][_0x4f8908('0x2077')]=_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x2aa')]+'='+_0x3c714b['autoreply'][_0x4f8908('0x175b')];break;case _0x4f8908('0x8fa'):break;default:_0x1791c5[0x0]=_0x3c714b['autoreply'][_0x4f8908('0x12a6')],_0x1791c5[0x1]=_0x3c714b[_0x4f8908('0x96e')]['text'],_0x3c714b[_0x4f8908('0x96e')][_0x4f8908('0x2077')]=_0x1791c5['join'](',');}_0x39a4fc(_0x3c714b[_0x4f8908('0x96e')]);}function _0x39a4fc(_0x58fb4a){_0x320214['hide'](_0x58fb4a);}}const _0x28521a=_0x35d274;_0x5f33e8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'openchannelAccountApp',_0x4376d8('0x152f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x5f33e8(_0x2d3de5,_0x30f598,_0x3e779b,_0x2a51b6,_0x5b0e06,_0x1ece45,_0x2bb6ec,_0x5aa310){const _0x13c033=_0x4376d8,_0x3935a5=this;_0x3935a5[_0x13c033('0x197c')]=_0x2bb6ec[_0x13c033('0x2831')](),_0x3935a5[_0x13c033('0x73e')]=[],_0x3935a5[_0x13c033('0x24d3')]=_0x13c033('0x1ee')+(_0x2a51b6['appType']||_0x2a51b6['app'])[_0x13c033('0x14e2')](),_0x3935a5[_0x13c033('0xbc9')]=angular['copy'](_0x2a51b6),_0x3935a5['crudPermissions']=_0x5aa310,_0x3935a5[_0x13c033('0x6ee')]={};if(_0x3935a5['close'][_0x13c033('0x2077')])switch(_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x1c54')]?_0x3935a5[_0x13c033('0xbc9')]['appType'][_0x13c033('0x19b')]():_0x3935a5['close'][_0x13c033('0x643')][_0x13c033('0x19b')]()){case _0x13c033('0x8fa'):break;case _0x13c033('0x2526'):{const _0x346386=_0x3935a5['close'][_0x13c033('0x2077')][_0x13c033('0x2007')](',');_0x3935a5[_0x13c033('0xbc9')]['key']=_0x346386[0x0],_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x3e1')]=_0x346386[0x1],_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x1083')]=_0x346386['slice'](0x2,_0x346386[_0x13c033('0x1f73')])[_0x13c033('0x1eba')](',');}break;case _0x13c033('0x22ac'):{const _0x3901a2=_0x3935a5[_0x13c033('0xbc9')]['appdata'][_0x13c033('0x2007')](',');_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x28ab')]=_0x3901a2[0x0],_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x2814')]=_0x3901a2[0x1],_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x1bc2')]=_0x3901a2[0x2],_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x3e1')]=_0x3901a2[0x3],_0x3935a5[_0x13c033('0xbc9')]['welcomemessage']=_0x3901a2[_0x13c033('0x275f')](0x4,_0x3901a2[_0x13c033('0x1f73')])[_0x13c033('0x1eba')](',');}break;case _0x13c033('0x16a9'):{const _0x22ad2a=_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x2077')][_0x13c033('0x2007')](',');_0x3935a5['close'][_0x13c033('0x1452')]=_0x22ad2a[0x0],_0x3935a5['close'][_0x13c033('0x1a62')]=_0x22ad2a[0x1],_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x1dcf')]=_0x22ad2a[0x2],_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x4a')]=_0x22ad2a[0x3],_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x1083')]=_0x22ad2a[_0x13c033('0x275f')](0x4,_0x22ad2a[_0x13c033('0x1f73')])[_0x13c033('0x1eba')](',');}break;case _0x13c033('0x96e'):{const _0x911d7c=_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x2077')][_0x13c033('0x2007')](',');_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x12a6')]=isNaN(_0x911d7c[0x0])?_0x911d7c[0x0]:parseInt(_0x911d7c[0x0],0xa),_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x132f')]=_0x911d7c[_0x13c033('0x275f')](0x1,_0x911d7c['length'])['join'](',');}break;case _0x13c033('0x1603'):_0x3935a5['close'][_0x13c033('0x132f')]=_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x2077')];break;case _0x13c033('0xf2e'):_0x3935a5['close'][_0x13c033('0x2aa')]=_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x2077')][_0x13c033('0x2007')]('=')[0x0],_0x3935a5[_0x13c033('0xbc9')]['value']=_0x3935a5['close'][_0x13c033('0x2077')][_0x13c033('0x2007')]('=')[0x1];break;case _0x13c033('0x17c6'):_0x3935a5['close'][_0x13c033('0x87c')]=_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x2077')];break;default:{const _0xaef1d6=_0x3935a5['close'][_0x13c033('0x2077')][_0x13c033('0x2007')](',');_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x1f27')]=_0x49cbdd()[_0x13c033('0x109a')](_0xaef1d6[0x0])?_0xaef1d6[0x0]:isNaN(_0xaef1d6[0x0])?_0xaef1d6[0x0]:parseInt(_0xaef1d6[0x0],0xa);}break;}else{}_0x3935a5['close'][_0x13c033('0x412')]&&_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x412')]['toLowerCase']()===_0x13c033('0x1ade')&&_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x1c54')][_0x13c033('0x19b')]()===_0x13c033('0x1711')&&(_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x11d4')]=_0x3935a5[_0x13c033('0xbc9')]['phone']?_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x2154')][_0x13c033('0x2007')]('$')[0x0]:undefined,_0x3935a5[_0x13c033('0xbc9')][_0x13c033('0x1a8e')]=_0x3935a5['close'][_0x13c033('0x17f4')]?_0x13c033('0x1d28')+_0x3935a5['close'][_0x13c033('0x17f4')]:undefined);_0x3935a5[_0x13c033('0x22d0')]=_0x122deb,_0x3935a5['closeDialog']=_0x5a648d;function _0x122deb(){const _0x14187c=_0x13c033;_0x3935a5['errors']=[];const _0x3a9d7c=[];_0x3935a5[_0x14187c('0xbc9')]['type']&&_0x3935a5['close'][_0x14187c('0x412')]['toLowerCase']()===_0x14187c('0x1ade')&&_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x1c54')]===_0x14187c('0xbdc')&&(_0x3935a5['close'][_0x14187c('0x2154')]=_0x5b0e06[_0x14187c('0x12af')]?(_0x3935a5['close'][_0x14187c('0x11d4')]||'')+_0x14187c('0x2265')+_0x5b0e06[_0x14187c('0x12af')]+'}':(_0x3935a5[_0x14187c('0xbc9')]['prefix']||'')+_0x14187c('0x150e'),_0x5b0e06['recordingFormat']!==_0x14187c('0x7ee')?_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x19')]['indexOf'](_0x14187c('0xa22'))<0x0&&(_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x19')]+='U(xcally-mixmonitor-context)'):_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x19')]=_0x3935a5[_0x14187c('0xbc9')]['options']['replace'](_0x14187c('0xa22'),''));if(_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x1c54')]&&_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x1c54')]==='custom'){}else switch((_0x3935a5['close'][_0x14187c('0x643')]||_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x1c54')])[_0x14187c('0x19b')]()){case _0x14187c('0xf2e'):_0x3935a5['close'][_0x14187c('0x2077')]=_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x2aa')]+'='+_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x175b')];break;case _0x14187c('0x8fa'):break;default:_0x3a9d7c[0x0]=_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x1f27')],_0x3935a5[_0x14187c('0xbc9')][_0x14187c('0x2077')]=_0x3a9d7c[_0x14187c('0x1eba')](',');}_0x5a648d(_0x3935a5[_0x14187c('0xbc9')]);}function _0x5a648d(_0x46c296){const _0x130c3f=_0x13c033;_0x2d3de5[_0x130c3f('0x212a')](_0x46c296);}}const _0xacf021=_0x5f33e8;_0x13607a['$inject']=['$mdDialog','$q','toasty',_0x4376d8('0x274f'),_0x4376d8('0x152f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x13607a(_0x578d0d,_0x58c155,_0x4712ef,_0x5230cd,_0x23501d,_0xc2312d,_0x34c72a,_0x17753e){const _0x8725e3=_0x4376d8,_0x4a0ac7=this;_0x4a0ac7['currentUser']=_0x34c72a['getCurrentUser'](),_0x4a0ac7[_0x8725e3('0x73e')]=[],_0x4a0ac7[_0x8725e3('0x24d3')]='OPENCHANNEL.EDIT_'+(_0x5230cd[_0x8725e3('0x1c54')]||_0x5230cd[_0x8725e3('0x643')])[_0x8725e3('0x14e2')](),_0x4a0ac7[_0x8725e3('0x2526')]=angular[_0x8725e3('0x14e5')](_0x5230cd),_0x4a0ac7[_0x8725e3('0x103e')]=_0x17753e,_0x4a0ac7[_0x8725e3('0x6ee')]={};if(_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x2077')])switch(_0x4a0ac7[_0x8725e3('0x2526')]['appType']?_0x4a0ac7['dialogflow']['appType'][_0x8725e3('0x19b')]():_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x643')][_0x8725e3('0x19b')]()){case _0x8725e3('0x8fa'):break;case _0x8725e3('0x2526'):{const _0x37ed60=_0x4a0ac7[_0x8725e3('0x2526')]['appdata']['split'](',');_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0xdb5')]=_0x37ed60[0x0],_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x3e1')]=_0x37ed60[0x1],_0x4a0ac7['dialogflow'][_0x8725e3('0x1083')]=_0x37ed60[_0x8725e3('0x275f')](0x2,_0x37ed60[_0x8725e3('0x1f73')])[_0x8725e3('0x1eba')](',');}break;case _0x8725e3('0x22ac'):{const _0x206de5=_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x2077')]['split'](',');_0x4a0ac7['dialogflow']['projectId']=_0x206de5[0x0],_0x4a0ac7['dialogflow']['clientEmail']=_0x206de5[0x1],_0x4a0ac7[_0x8725e3('0x2526')]['privateKey']=_0x206de5[0x2],_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x3e1')]=_0x206de5[0x3],_0x4a0ac7['dialogflow']['welcomemessage']=_0x206de5[_0x8725e3('0x275f')](0x4,_0x206de5[_0x8725e3('0x1f73')])['join'](',');}break;case _0x8725e3('0x16a9'):{const _0x359177=_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x2077')][_0x8725e3('0x2007')](',');_0x4a0ac7[_0x8725e3('0x2526')]['accesskeyid']=_0x359177[0x0],_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x1a62')]=_0x359177[0x1],_0x4a0ac7[_0x8725e3('0x2526')]['lexregion']=_0x359177[0x2],_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x4a')]=_0x359177[0x3],_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x1083')]=_0x359177[_0x8725e3('0x275f')](0x4,_0x359177[_0x8725e3('0x1f73')])[_0x8725e3('0x1eba')](',');}break;case _0x8725e3('0x96e'):{const _0x200692=_0x4a0ac7['dialogflow'][_0x8725e3('0x2077')][_0x8725e3('0x2007')](',');_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x12a6')]=isNaN(_0x200692[0x0])?_0x200692[0x0]:parseInt(_0x200692[0x0],0xa),_0x4a0ac7['dialogflow']['text']=_0x200692[_0x8725e3('0x275f')](0x1,_0x200692[_0x8725e3('0x1f73')])[_0x8725e3('0x1eba')](',');}break;case _0x8725e3('0x1603'):_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x132f')]=_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x2077')];break;case _0x8725e3('0xf2e'):_0x4a0ac7['dialogflow'][_0x8725e3('0x2aa')]=_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x2077')][_0x8725e3('0x2007')]('=')[0x0],_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x175b')]=_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x2077')]['split']('=')[0x1];break;case'agi':_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x87c')]=_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x2077')];break;default:{const _0x2dfe50=_0x4a0ac7['dialogflow'][_0x8725e3('0x2077')][_0x8725e3('0x2007')](',');_0x4a0ac7[_0x8725e3('0x2526')]['key']=_0x49cbdd()[_0x8725e3('0x109a')](_0x2dfe50[0x0])?_0x2dfe50[0x0]:isNaN(_0x2dfe50[0x0])?_0x2dfe50[0x0]:parseInt(_0x2dfe50[0x0],0xa),_0x4a0ac7['dialogflow']['language']=_0x49cbdd()[_0x8725e3('0x109a')](_0x2dfe50[0x1])?_0x2dfe50[0x1]:isNaN(_0x2dfe50[0x1])?_0x2dfe50[0x1]:parseInt(_0x2dfe50[0x1],0xa),_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x1083')]=_0x49cbdd()[_0x8725e3('0x109a')](_0x2dfe50[0x2])?_0x2dfe50[0x2]:isNaN(_0x2dfe50[0x2])?_0x2dfe50[0x2]:parseInt(_0x2dfe50[0x2],0xa);}break;}else _0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x3e1')]='en';_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x412')]&&_0x4a0ac7['dialogflow']['type'][_0x8725e3('0x19b')]()===_0x8725e3('0x1ade')&&_0x4a0ac7['dialogflow'][_0x8725e3('0x1c54')][_0x8725e3('0x19b')]()===_0x8725e3('0x1711')&&(_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x11d4')]=_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x2154')]?_0x4a0ac7['dialogflow'][_0x8725e3('0x2154')]['split']('$')[0x0]:undefined,_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x1a8e')]=_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x17f4')]?_0x8725e3('0x1d28')+_0x4a0ac7[_0x8725e3('0x2526')][_0x8725e3('0x17f4')]:undefined);_0x4a0ac7['saveOpenchannelAccountApp']=_0x463ab9,_0x4a0ac7[_0x8725e3('0x136e')]=_0xf28714;function _0x463ab9(){const _0x4b4cf0=_0x8725e3;_0x4a0ac7['errors']=[];const _0x166352=[];_0x4a0ac7['dialogflow'][_0x4b4cf0('0x412')]&&_0x4a0ac7['dialogflow']['type']['toLowerCase']()===_0x4b4cf0('0x1ade')&&_0x4a0ac7[_0x4b4cf0('0x2526')]['appType']===_0x4b4cf0('0xbdc')&&(_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x2154')]=_0x23501d[_0x4b4cf0('0x12af')]?(_0x4a0ac7['dialogflow'][_0x4b4cf0('0x11d4')]||'')+_0x4b4cf0('0x2265')+_0x23501d[_0x4b4cf0('0x12af')]+'}':(_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x11d4')]||'')+_0x4b4cf0('0x150e'),_0x23501d[_0x4b4cf0('0x287')]!=='none'?_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x19')]['indexOf'](_0x4b4cf0('0xa22'))<0x0&&(_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x19')]+=_0x4b4cf0('0xa22')):_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x19')]=_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x19')]['replace']('U(xcally-mixmonitor-context)',''));if(_0x4a0ac7['dialogflow'][_0x4b4cf0('0x1c54')]&&_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x1c54')]===_0x4b4cf0('0x8fa')){}else switch((_0x4a0ac7['dialogflow'][_0x4b4cf0('0x643')]||_0x4a0ac7['dialogflow'][_0x4b4cf0('0x1c54')])[_0x4b4cf0('0x19b')]()){case _0x4b4cf0('0xf2e'):_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x2077')]=_0x4a0ac7[_0x4b4cf0('0x2526')]['name']+'='+_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x175b')];break;case _0x4b4cf0('0x8fa'):break;default:_0x166352[0x0]=_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0xdb5')],_0x166352[0x1]=_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x3e1')],_0x166352[0x2]=_0x4a0ac7['dialogflow'][_0x4b4cf0('0x1083')],_0x4a0ac7[_0x4b4cf0('0x2526')][_0x4b4cf0('0x2077')]=_0x166352['join'](',');}_0xf28714(_0x4a0ac7[_0x4b4cf0('0x2526')]);}function _0xf28714(_0x9f7ba6){const _0x3de33b=_0x8725e3;_0x578d0d[_0x3de33b('0x212a')](_0x9f7ba6);}}const _0x1bcded=_0x13607a;_0x23a81e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x274f'),_0x4376d8('0x152f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x23a81e(_0x36594b,_0x537c5e,_0x494332,_0x200689,_0x327f67,_0x326e95,_0xc50b6b,_0x375e62){const _0x45a1a2=_0x4376d8,_0x594262=this;_0x594262[_0x45a1a2('0x197c')]=_0xc50b6b['getCurrentUser'](),_0x594262[_0x45a1a2('0x73e')]=[],_0x594262[_0x45a1a2('0x24d3')]=_0x45a1a2('0x1ee')+(_0x200689[_0x45a1a2('0x1c54')]||_0x200689[_0x45a1a2('0x643')])['toUpperCase'](),_0x594262[_0x45a1a2('0x7a9')]=angular[_0x45a1a2('0x14e5')](_0x200689),_0x594262[_0x45a1a2('0x103e')]=_0x375e62,_0x594262['hasModulePermissions']={};if(_0x594262['gotoif'][_0x45a1a2('0x2077')])switch(_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x1c54')]?_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x1c54')][_0x45a1a2('0x19b')]():_0x594262['gotoif'][_0x45a1a2('0x643')][_0x45a1a2('0x19b')]()){case'custom':break;case _0x45a1a2('0x2526'):{const _0x4b8df4=_0x594262['gotoif']['appdata'][_0x45a1a2('0x2007')](',');_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0xdb5')]=_0x4b8df4[0x0],_0x594262[_0x45a1a2('0x7a9')]['language']=_0x4b8df4[0x1],_0x594262['gotoif'][_0x45a1a2('0x1083')]=_0x4b8df4['slice'](0x2,_0x4b8df4[_0x45a1a2('0x1f73')])[_0x45a1a2('0x1eba')](',');}break;case _0x45a1a2('0x22ac'):{const _0x35c9d6=_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2077')][_0x45a1a2('0x2007')](',');_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x28ab')]=_0x35c9d6[0x0],_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2814')]=_0x35c9d6[0x1],_0x594262['gotoif'][_0x45a1a2('0x1bc2')]=_0x35c9d6[0x2],_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x3e1')]=_0x35c9d6[0x3],_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x1083')]=_0x35c9d6[_0x45a1a2('0x275f')](0x4,_0x35c9d6[_0x45a1a2('0x1f73')])[_0x45a1a2('0x1eba')](',');}break;case _0x45a1a2('0x16a9'):{const _0x28e839=_0x594262['gotoif'][_0x45a1a2('0x2077')]['split'](',');_0x594262['gotoif'][_0x45a1a2('0x1452')]=_0x28e839[0x0],_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x1a62')]=_0x28e839[0x1],_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x1dcf')]=_0x28e839[0x2],_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x4a')]=_0x28e839[0x3],_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x1083')]=_0x28e839[_0x45a1a2('0x275f')](0x4,_0x28e839[_0x45a1a2('0x1f73')])[_0x45a1a2('0x1eba')](',');}break;case _0x45a1a2('0x96e'):{const _0x25ffaf=_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2077')][_0x45a1a2('0x2007')](',');_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x12a6')]=isNaN(_0x25ffaf[0x0])?_0x25ffaf[0x0]:parseInt(_0x25ffaf[0x0],0xa),_0x594262['gotoif']['text']=_0x25ffaf[_0x45a1a2('0x275f')](0x1,_0x25ffaf[_0x45a1a2('0x1f73')])['join'](',');}break;case _0x45a1a2('0x1603'):_0x594262['gotoif']['text']=_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2077')];break;case _0x45a1a2('0xf2e'):_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2aa')]=_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2077')][_0x45a1a2('0x2007')]('=')[0x0],_0x594262[_0x45a1a2('0x7a9')]['value']=_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2077')][_0x45a1a2('0x2007')]('=')[0x1];break;case'agi':_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x87c')]=_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2077')];break;default:{const _0x2c0ff1=_0x594262['gotoif'][_0x45a1a2('0x2077')][_0x45a1a2('0x2007')](',');_0x594262['gotoif']['condition']=_0x49cbdd()[_0x45a1a2('0x109a')](_0x2c0ff1[0x0])?_0x2c0ff1[0x0]:isNaN(_0x2c0ff1[0x0])?_0x2c0ff1[0x0]:parseInt(_0x2c0ff1[0x0],0xa),_0x594262[_0x45a1a2('0x7a9')]['truepriority']=_0x49cbdd()['isEmpty'](_0x2c0ff1[0x1])?_0x2c0ff1[0x1]:isNaN(_0x2c0ff1[0x1])?_0x2c0ff1[0x1]:parseInt(_0x2c0ff1[0x1],0xa),_0x594262[_0x45a1a2('0x7a9')]['falsepriority']=_0x49cbdd()[_0x45a1a2('0x109a')](_0x2c0ff1[0x2])?_0x2c0ff1[0x2]:isNaN(_0x2c0ff1[0x2])?_0x2c0ff1[0x2]:parseInt(_0x2c0ff1[0x2],0xa);}break;}else{}_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x412')]&&_0x594262[_0x45a1a2('0x7a9')]['type'][_0x45a1a2('0x19b')]()===_0x45a1a2('0x1ade')&&_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x1c54')][_0x45a1a2('0x19b')]()===_0x45a1a2('0x1711')&&(_0x594262[_0x45a1a2('0x7a9')]['prefix']=_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x2154')]?_0x594262['gotoif']['phone'][_0x45a1a2('0x2007')]('$')[0x0]:undefined,_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x1a8e')]=_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x17f4')]?_0x45a1a2('0x1d28')+_0x594262[_0x45a1a2('0x7a9')][_0x45a1a2('0x17f4')]:undefined);_0x594262[_0x45a1a2('0x22d0')]=_0x2caf1a,_0x594262[_0x45a1a2('0x136e')]=_0x4d0416;function _0x2caf1a(){const _0x160c2f=_0x45a1a2;_0x594262[_0x160c2f('0x73e')]=[];const _0x23aa89=[];_0x594262[_0x160c2f('0x7a9')]['type']&&_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x412')][_0x160c2f('0x19b')]()===_0x160c2f('0x1ade')&&_0x594262['gotoif'][_0x160c2f('0x1c54')]===_0x160c2f('0xbdc')&&(_0x594262[_0x160c2f('0x7a9')]['phone']=_0x327f67[_0x160c2f('0x12af')]?(_0x594262['gotoif'][_0x160c2f('0x11d4')]||'')+'${EXTEN:'+_0x327f67[_0x160c2f('0x12af')]+'}':(_0x594262[_0x160c2f('0x7a9')]['prefix']||'')+_0x160c2f('0x150e'),_0x327f67[_0x160c2f('0x287')]!=='none'?_0x594262[_0x160c2f('0x7a9')]['options']['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x19')]+=_0x160c2f('0xa22')):_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x19')]=_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x19')][_0x160c2f('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x1c54')]&&_0x594262[_0x160c2f('0x7a9')]['appType']===_0x160c2f('0x8fa')){}else switch((_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x643')]||_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x1c54')])[_0x160c2f('0x19b')]()){case _0x160c2f('0xf2e'):_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x2077')]=_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x2aa')]+'='+_0x594262[_0x160c2f('0x7a9')]['value'];break;case'custom':break;default:_0x23aa89[0x0]=_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0xa67')],_0x23aa89[0x1]=_0x594262['gotoif']['truepriority'],_0x23aa89[0x2]=_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0xe9d')],_0x594262[_0x160c2f('0x7a9')][_0x160c2f('0x2077')]=_0x23aa89[_0x160c2f('0x1eba')](',');}_0x4d0416(_0x594262[_0x160c2f('0x7a9')]);}function _0x4d0416(_0x47505a){_0x36594b['hide'](_0x47505a);}}const _0x451e90=_0x23a81e;_0x44e13e['$inject']=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x274f'),_0x4376d8('0x152f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x44e13e(_0x3c6391,_0x37ce7b,_0x500dd4,_0x4f70a7,_0x1c9913,_0x50bc1e,_0x470e0b,_0x597e0f){const _0x28ed1d=_0x4376d8,_0x2a3b37=this;_0x2a3b37[_0x28ed1d('0x197c')]=_0x470e0b[_0x28ed1d('0x2831')](),_0x2a3b37[_0x28ed1d('0x73e')]=[],_0x2a3b37['title']='OPENCHANNEL.EDIT_'+(_0x4f70a7[_0x28ed1d('0x1c54')]||_0x4f70a7[_0x28ed1d('0x643')])[_0x28ed1d('0x14e2')](),_0x2a3b37['gotop']=angular[_0x28ed1d('0x14e5')](_0x4f70a7),_0x2a3b37[_0x28ed1d('0x103e')]=_0x597e0f,_0x2a3b37[_0x28ed1d('0x6ee')]={};if(_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')])switch(_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x1c54')]?_0x2a3b37['gotop'][_0x28ed1d('0x1c54')][_0x28ed1d('0x19b')]():_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x643')][_0x28ed1d('0x19b')]()){case'custom':break;case _0x28ed1d('0x2526'):{const _0x37390f=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')][_0x28ed1d('0x2007')](',');_0x2a3b37['gotop']['key']=_0x37390f[0x0],_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x3e1')]=_0x37390f[0x1],_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x1083')]=_0x37390f[_0x28ed1d('0x275f')](0x2,_0x37390f[_0x28ed1d('0x1f73')])[_0x28ed1d('0x1eba')](',');}break;case _0x28ed1d('0x22ac'):{const _0x26bffa=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')][_0x28ed1d('0x2007')](',');_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x28ab')]=_0x26bffa[0x0],_0x2a3b37['gotop'][_0x28ed1d('0x2814')]=_0x26bffa[0x1],_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x1bc2')]=_0x26bffa[0x2],_0x2a3b37[_0x28ed1d('0x721')]['language']=_0x26bffa[0x3],_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x1083')]=_0x26bffa['slice'](0x4,_0x26bffa[_0x28ed1d('0x1f73')])[_0x28ed1d('0x1eba')](',');}break;case _0x28ed1d('0x16a9'):{const _0x54b299=_0x2a3b37['gotop']['appdata']['split'](',');_0x2a3b37['gotop'][_0x28ed1d('0x1452')]=_0x54b299[0x0],_0x2a3b37[_0x28ed1d('0x721')]['secretaccesskey']=_0x54b299[0x1],_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x1dcf')]=_0x54b299[0x2],_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x4a')]=_0x54b299[0x3],_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x1083')]=_0x54b299[_0x28ed1d('0x275f')](0x4,_0x54b299[_0x28ed1d('0x1f73')])[_0x28ed1d('0x1eba')](',');}break;case _0x28ed1d('0x96e'):{const _0x269ea9=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')][_0x28ed1d('0x2007')](',');_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x12a6')]=isNaN(_0x269ea9[0x0])?_0x269ea9[0x0]:parseInt(_0x269ea9[0x0],0xa),_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x132f')]=_0x269ea9[_0x28ed1d('0x275f')](0x1,_0x269ea9[_0x28ed1d('0x1f73')])[_0x28ed1d('0x1eba')](',');}break;case'message':_0x2a3b37['gotop'][_0x28ed1d('0x132f')]=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')];break;case _0x28ed1d('0xf2e'):_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2aa')]=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')][_0x28ed1d('0x2007')]('=')[0x0],_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x175b')]=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')][_0x28ed1d('0x2007')]('=')[0x1];break;case _0x28ed1d('0x17c6'):_0x2a3b37['gotop'][_0x28ed1d('0x87c')]=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')];break;default:{const _0x1de6df=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2077')][_0x28ed1d('0x2007')](',');_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x1a6d')]=_0x49cbdd()[_0x28ed1d('0x109a')](_0x1de6df[0x0])?_0x1de6df[0x0]:isNaN(_0x1de6df[0x0])?_0x1de6df[0x0]:parseInt(_0x1de6df[0x0],0xa);}break;}else{}_0x2a3b37[_0x28ed1d('0x721')]['type']&&_0x2a3b37[_0x28ed1d('0x721')]['type'][_0x28ed1d('0x19b')]()==='outbound'&&_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x1c54')][_0x28ed1d('0x19b')]()===_0x28ed1d('0x1711')&&(_0x2a3b37[_0x28ed1d('0x721')]['prefix']=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2154')]?_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x2154')][_0x28ed1d('0x2007')]('$')[0x0]:undefined,_0x2a3b37['gotop'][_0x28ed1d('0x1a8e')]=_0x2a3b37[_0x28ed1d('0x721')][_0x28ed1d('0x17f4')]?_0x28ed1d('0x1d28')+_0x2a3b37[_0x28ed1d('0x721')]['callerID']:undefined);_0x2a3b37[_0x28ed1d('0x22d0')]=_0x50c038,_0x2a3b37['closeDialog']=_0x4322f8;function _0x50c038(){const _0x534537=_0x28ed1d;_0x2a3b37[_0x534537('0x73e')]=[];const _0xb66684=[];_0x2a3b37[_0x534537('0x721')][_0x534537('0x412')]&&_0x2a3b37['gotop'][_0x534537('0x412')][_0x534537('0x19b')]()===_0x534537('0x1ade')&&_0x2a3b37['gotop'][_0x534537('0x1c54')]===_0x534537('0xbdc')&&(_0x2a3b37[_0x534537('0x721')]['phone']=_0x1c9913[_0x534537('0x12af')]?(_0x2a3b37[_0x534537('0x721')][_0x534537('0x11d4')]||'')+'${EXTEN:'+_0x1c9913[_0x534537('0x12af')]+'}':(_0x2a3b37[_0x534537('0x721')][_0x534537('0x11d4')]||'')+_0x534537('0x150e'),_0x1c9913[_0x534537('0x287')]!=='none'?_0x2a3b37[_0x534537('0x721')][_0x534537('0x19')][_0x534537('0x2567')](_0x534537('0xa22'))<0x0&&(_0x2a3b37[_0x534537('0x721')]['options']+=_0x534537('0xa22')):_0x2a3b37[_0x534537('0x721')][_0x534537('0x19')]=_0x2a3b37['gotop'][_0x534537('0x19')][_0x534537('0x737')]('U(xcally-mixmonitor-context)',''));if(_0x2a3b37['gotop'][_0x534537('0x1c54')]&&_0x2a3b37[_0x534537('0x721')][_0x534537('0x1c54')]===_0x534537('0x8fa')){}else switch((_0x2a3b37[_0x534537('0x721')][_0x534537('0x643')]||_0x2a3b37[_0x534537('0x721')][_0x534537('0x1c54')])[_0x534537('0x19b')]()){case _0x534537('0xf2e'):_0x2a3b37[_0x534537('0x721')][_0x534537('0x2077')]=_0x2a3b37['gotop'][_0x534537('0x2aa')]+'='+_0x2a3b37[_0x534537('0x721')][_0x534537('0x175b')];break;case _0x534537('0x8fa'):break;default:_0xb66684[0x0]=_0x2a3b37[_0x534537('0x721')]['priority'],_0x2a3b37[_0x534537('0x721')][_0x534537('0x2077')]=_0xb66684[_0x534537('0x1eba')](',');}_0x4322f8(_0x2a3b37[_0x534537('0x721')]);}function _0x4322f8(_0x2d0169){const _0x356f56=_0x28ed1d;_0x3c6391[_0x356f56('0x212a')](_0x2d0169);}}const _0x344a38=_0x44e13e;_0x3c414a[_0x4376d8('0x1b9c')]=['$state',_0x4376d8('0x14f6'),_0x4376d8('0x199d'),_0x4376d8('0x12f1'),_0x4376d8('0x231f'),_0x4376d8('0x1be1'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x3c414a(_0x12c41a,_0x1adf29,_0x227f0e,_0x5d7f78,_0x170d5a,_0x26fd72,_0x5742c6,_0x5d11e4,_0x4088d8,_0x4b8396){const _0x23023b=_0x4376d8,_0x137f18=this;_0x137f18[_0x23023b('0x197c')]=_0x4088d8[_0x23023b('0x2831')](),_0x137f18[_0x23023b('0x73e')]=[],_0x137f18[_0x23023b('0x24d3')]='TOOLS.EDIT_INTERVAL',_0x137f18[_0x23023b('0x231f')]=angular[_0x23023b('0x14e5')](_0x170d5a),_0x137f18['intervals']=_0x26fd72,_0x137f18[_0x23023b('0x42d')]=![],_0x137f18[_0x23023b('0x11e0')]=['always','custom','list'],_0x137f18[_0x23023b('0x103e')]=_0x4b8396,_0x137f18[_0x23023b('0x9d')]=_0x5d7f78[_0x23023b('0x18cb')](),_0x137f18['monthNumber']=_0x5d7f78['getMonthNumber'](),_0x137f18[_0x23023b('0x36e')]=_0x5d7f78['getMonthName'](),_0x137f18[_0x23023b('0x219f')]=_0x5d7f78[_0x23023b('0x37c')]();if(!_0x137f18['interval'])_0x137f18['interval']={'interval':_0x23023b('0x20c3')},_0x137f18[_0x23023b('0x412')]=_0x23023b('0x1256'),_0x137f18['title']='TOOLS.NEW_INTERVAL',_0x137f18['newInterval']=!![];else{if(_0x137f18['interval'][_0x23023b('0x231f')]!=='*,*,*,*'){_0x137f18['type']=_0x23023b('0x8fa');const _0xd9f2a0=_0x137f18['interval'][_0x23023b('0x231f')][_0x23023b('0x2007')](','),_0xfac5e4=_0xd9f2a0[0x0],_0x11ce09=_0xd9f2a0[0x1],_0x2e9bb4=_0xd9f2a0[0x2],_0x4a9281=_0xd9f2a0[0x3];if(_0xfac5e4!=='*'){const _0x4cf3bc=_0xfac5e4[_0x23023b('0x2007')]('-')[0x0],_0x49b84d=_0xfac5e4[_0x23023b('0x2007')]('-')[0x1];let _0x134218;_0x134218=new Date(),_0x134218[_0x23023b('0x196e')](Number(_0x4cf3bc[_0x23023b('0x2007')](':')[0x0])),_0x134218[_0x23023b('0x57b')](Number(_0x4cf3bc[_0x23023b('0x2007')](':')[0x1])),_0x137f18[_0x23023b('0x19bf')]=_0x134218,_0x134218=new Date(),_0x134218[_0x23023b('0x196e')](Number(_0x49b84d[_0x23023b('0x2007')](':')[0x0])),_0x134218['setMinutes'](Number(_0x49b84d[_0x23023b('0x2007')](':')[0x1])),_0x137f18['timeRangeTo']=_0x134218;}_0x11ce09!=='*'&&(_0x137f18[_0x23023b('0x1a98')]=_0x11ce09[_0x23023b('0x2007')]('-')[0x0],_0x137f18[_0x23023b('0x1627')]=_0x11ce09[_0x23023b('0x2007')]('-')[0x1]),_0x2e9bb4!=='*'&&(_0x137f18[_0x23023b('0x18d1')]=_0x2e9bb4['split']('-')[0x0],_0x137f18[_0x23023b('0x271d')]=_0x2e9bb4['split']('-')[0x1]),_0x4a9281!=='*'&&(_0x137f18[_0x23023b('0x88c')]=_0x4a9281[_0x23023b('0x2007')]('-')[0x0],_0x137f18[_0x23023b('0x1f09')]=_0x4a9281[_0x23023b('0x2007')]('-')[0x1]);}else _0x137f18[_0x23023b('0x412')]=_0x23023b('0x1256');}_0x12c41a[_0x23023b('0x16fb')]['id']&&!_0x137f18[_0x23023b('0x231f')][_0x23023b('0xf84')]&&(_0x137f18[_0x23023b('0x231f')]['IntervalId']=_0x12c41a[_0x23023b('0x16fb')]['id']);_0x137f18[_0x23023b('0x231f')]['IntervalId']&&_0x137f18[_0x23023b('0x231f')][_0x23023b('0xf84')]&&(_0x137f18[_0x23023b('0x412')]='list');_0x137f18[_0x23023b('0x28b2')]=_0x385b50,_0x137f18[_0x23023b('0x872')]=_0x4b8105,_0x137f18[_0x23023b('0x136e')]=_0x4f398a;_0x137f18[_0x23023b('0x231f')][_0x23023b('0xf84')]&&(_0x4088d8[_0x23023b('0x1ba2')]('admin')?_0x5d11e4[_0x23023b('0x231f')][_0x23023b('0x1c53')]({'fields':_0x23023b('0x165a'),'IntervalId':_0x23023b('0x9bb'),'nolimit':!![]})[_0x23023b('0x1af5')]['then'](function(_0x2dd015){const _0xfab238=_0x23023b;_0x137f18['intervals']=_0x2dd015[_0xfab238('0x2319')]||[];})[_0x23023b('0x16df')](function(_0x59a852){const _0x1a1f8d=_0x23023b;_0x5742c6[_0x1a1f8d('0x1db9')]({'title':_0x59a852[_0x1a1f8d('0x11c5')]?'API:'+_0x59a852[_0x1a1f8d('0x11c5')]+'\x20-\x20'+_0x59a852[_0x1a1f8d('0x1833')]:_0x1a1f8d('0x87a'),'msg':_0x59a852[_0x1a1f8d('0x1457')]?JSON[_0x1a1f8d('0x678')](_0x59a852[_0x1a1f8d('0x1457')]):_0x59a852[_0x1a1f8d('0x9b6')]()});}):_0x5d11e4[_0x23023b('0x231f')][_0x23023b('0x1c53')]({'fields':_0x23023b('0x165a'),'IntervalId':'null','nolimit':!![]})[_0x23023b('0x1af5')][_0x23023b('0x17e7')](function(_0x44aa90){const _0x590266=_0x23023b;_0x137f18['intervals']=_0x44aa90[_0x590266('0x2319')]||[];})['then'](function(){const _0x514de5=_0x23023b;return _0x5d11e4[_0x514de5('0x383')][_0x514de5('0x1c53')]({'userProfileId':_0x137f18[_0x514de5('0x197c')]['userProfileId'],'sectionId':0x3ec})[_0x514de5('0x1af5')];})[_0x23023b('0x17e7')](function(_0xcd0939){const _0x4465ac=_0x23023b,_0x7e16c9=_0xcd0939&&_0xcd0939[_0x4465ac('0x2319')]?_0xcd0939['rows'][0x0]:null;if(!_0x7e16c9)_0x137f18[_0x4465ac('0x1be1')]=[];else{if(!_0x7e16c9[_0x4465ac('0x9e3')])return _0x5d11e4[_0x4465ac('0x78d')][_0x4465ac('0x1c53')]({'sectionId':_0x7e16c9['id']})[_0x4465ac('0x1af5')]['then'](function(_0x5d4467){const _0x159479=_0x4465ac,_0x539781=_0x5d4467&&_0x5d4467[_0x159479('0x2319')]?_0x5d4467['rows']:[],_0x4da371=[];let _0x40bede=null;_0x137f18['interval']&&(_0x40bede=_0x49cbdd()[_0x159479('0xe8e')](_0x137f18[_0x159479('0x1be1')],{'name':_0x137f18[_0x159479('0x231f')][_0x159479('0x24a9')]})),_0x40bede&&!_0x49cbdd()['some'](_0x539781,[_0x159479('0x5db'),_0x40bede['id']])&&_0x137f18[_0x159479('0x1be1')][_0x159479('0xccd')](function(_0x43ebe9){const _0x396283=_0x159479;_0x43ebe9['id']===_0x40bede['id']&&(_0x43ebe9['canSelect']=![],_0x4da371[_0x396283('0x269f')](_0x43ebe9));}),_0x137f18[_0x159479('0x1be1')]=_0x4da371;});}})[_0x23023b('0x16df')](function(_0x56cffd){const _0x2e9718=_0x23023b;_0x5742c6[_0x2e9718('0x1db9')]({'title':_0x56cffd[_0x2e9718('0x11c5')]?_0x2e9718('0x14f7')+_0x56cffd['status']+_0x2e9718('0x16e4')+_0x56cffd[_0x2e9718('0x1833')]:_0x2e9718('0x87a'),'msg':_0x56cffd[_0x2e9718('0x1457')]?JSON[_0x2e9718('0x678')](_0x56cffd['data']):_0x56cffd[_0x2e9718('0x9b6')]()});}));function _0x2c3c3b(){const _0x564e4d=_0x23023b;switch(_0x137f18[_0x564e4d('0x412')]){case _0x564e4d('0x1256'):case'list':return _0x564e4d('0x20c3');case _0x564e4d('0x8fa'):{const _0x14c805=[];if(_0x137f18[_0x564e4d('0x19bf')]!=='*'&&_0x137f18[_0x564e4d('0x19bf')]&&_0x137f18[_0x564e4d('0x1c12')]){const _0x49c5ae=(_0x137f18[_0x564e4d('0x19bf')]['getHours']()<0xa?'0':'')+_0x137f18[_0x564e4d('0x19bf')][_0x564e4d('0x13c6')]()+':'+((_0x137f18[_0x564e4d('0x19bf')][_0x564e4d('0xf42')]()<0xa?'0':'')+_0x137f18[_0x564e4d('0x19bf')][_0x564e4d('0xf42')]()),_0x259b35=(_0x137f18['timeRangeTo']['getHours']()<0xa?'0':'')+_0x137f18[_0x564e4d('0x1c12')][_0x564e4d('0x13c6')]()+':'+((_0x137f18['timeRangeTo'][_0x564e4d('0xf42')]()<0xa?'0':'')+_0x137f18['timeRangeTo'][_0x564e4d('0xf42')]());_0x14c805[_0x564e4d('0x269f')](_0x49c5ae+'-'+_0x259b35);}else _0x14c805[_0x564e4d('0x269f')]('*');return _0x137f18[_0x564e4d('0x1a98')]?_0x137f18[_0x564e4d('0x1627')]?_0x14c805[_0x564e4d('0x269f')](_0x137f18[_0x564e4d('0x1a98')]+'-'+_0x137f18[_0x564e4d('0x1627')]):_0x14c805['push'](_0x137f18['dayOfWeekFrom']):_0x14c805[_0x564e4d('0x269f')]('*'),_0x137f18['monthDayFrom']?_0x137f18['monthDayTo']?_0x14c805[_0x564e4d('0x269f')](_0x137f18[_0x564e4d('0x18d1')]+'-'+_0x137f18[_0x564e4d('0x271d')]):_0x14c805['push'](_0x137f18[_0x564e4d('0x18d1')]):_0x14c805[_0x564e4d('0x269f')]('*'),_0x137f18[_0x564e4d('0x88c')]?_0x137f18[_0x564e4d('0x1f09')]?_0x14c805[_0x564e4d('0x269f')](_0x137f18[_0x564e4d('0x88c')]+'-'+_0x137f18[_0x564e4d('0x1f09')]):_0x14c805['push'](_0x137f18[_0x564e4d('0x88c')]):_0x14c805[_0x564e4d('0x269f')]('*'),_0x14c805['join']();}}}function _0x385b50(){const _0xc241dd=_0x23023b;_0x137f18[_0xc241dd('0x73e')]=[],_0x137f18[_0xc241dd('0x231f')][_0xc241dd('0x231f')]=_0x2c3c3b(),_0x5d11e4['interval'][_0xc241dd('0x2439')](_0x137f18['interval'])[_0xc241dd('0x1af5')][_0xc241dd('0x17e7')](function(_0x4d1bc5){const _0x59dd10=_0xc241dd;_0x137f18[_0x59dd10('0x1be1')][_0x59dd10('0x269f')](_0x4d1bc5),_0x5742c6['success']({'title':_0x59dd10('0x2378'),'msg':_0x137f18[_0x59dd10('0x231f')]['name']?_0x137f18[_0x59dd10('0x231f')][_0x59dd10('0x2aa')]+_0x59dd10('0x15a'):''}),_0x4f398a();})[_0xc241dd('0x16df')](function(_0x2e20d7){const _0x716895=_0xc241dd;console[_0x716895('0x1db9')](_0x2e20d7),_0x137f18[_0x716895('0x73e')]=_0x2e20d7['data'][_0x716895('0x73e')]||[{'message':_0x2e20d7[_0x716895('0x9b6')](),'type':_0x716895('0x2475')}];});}function _0x4b8105(){const _0x2a807e=_0x23023b;_0x137f18[_0x2a807e('0x73e')]=[],_0x137f18['interval']['interval']=_0x2c3c3b(),_0x137f18[_0x2a807e('0x231f')][_0x2a807e('0xf84')]?(_0x137f18['type']!==_0x2a807e('0x134c')&&(_0x137f18['interval'][_0x2a807e('0x24a9')]=null),_0x4f398a(_0x137f18['interval'])):_0x5d11e4[_0x2a807e('0x231f')][_0x2a807e('0x27ba')]({'id':_0x137f18[_0x2a807e('0x231f')]['id']},_0x137f18[_0x2a807e('0x231f')])[_0x2a807e('0x1af5')][_0x2a807e('0x17e7')](function(_0x464faa){const _0x1b3acb=_0x2a807e,_0x8baed1=_0x49cbdd()['find'](_0x137f18[_0x1b3acb('0x1be1')],{'id':_0x464faa['id']});_0x8baed1&&_0x49cbdd()['merge'](_0x8baed1,_0x464faa),_0x5742c6['success']({'title':_0x1b3acb('0x6a9'),'msg':_0x1b3acb('0x2792')}),_0x4f398a();})['catch'](function(_0x576d02){const _0x132137=_0x2a807e;console['error'](_0x576d02),_0x137f18['errors']=_0x576d02['data'][_0x132137('0x73e')]||[{'message':_0x576d02[_0x132137('0x9b6')](),'type':_0x132137('0xed5')}];});}function _0x4f398a(_0x324965){const _0x52368b=_0x23023b;_0x1adf29[_0x52368b('0x212a')](_0x324965);}}const _0x2c904c=_0x3c414a;_0x585231[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x274f'),_0x4376d8('0x152f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x585231(_0x109236,_0x51e953,_0x3e15c6,_0xf1bbce,_0x1d69e0,_0x6560e7,_0x3e04ca,_0x5bb1a0){const _0x18cba1=_0x4376d8,_0x3ac897=this;_0x3ac897[_0x18cba1('0x197c')]=_0x3e04ca[_0x18cba1('0x2831')](),_0x3ac897[_0x18cba1('0x73e')]=[],_0x3ac897['title']=_0x18cba1('0x1ee')+(_0xf1bbce[_0x18cba1('0x1c54')]||_0xf1bbce[_0x18cba1('0x643')])[_0x18cba1('0x14e2')](),_0x3ac897['noop']=angular[_0x18cba1('0x14e5')](_0xf1bbce),_0x3ac897['crudPermissions']=_0x5bb1a0,_0x3ac897['hasModulePermissions']={};if(_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2077')])switch(_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x1c54')]?_0x3ac897[_0x18cba1('0x1e49')]['appType'][_0x18cba1('0x19b')]():_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x643')][_0x18cba1('0x19b')]()){case _0x18cba1('0x8fa'):break;case _0x18cba1('0x2526'):{const _0x5f13b3=_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2077')][_0x18cba1('0x2007')](',');_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0xdb5')]=_0x5f13b3[0x0],_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x3e1')]=_0x5f13b3[0x1],_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x1083')]=_0x5f13b3[_0x18cba1('0x275f')](0x2,_0x5f13b3[_0x18cba1('0x1f73')])[_0x18cba1('0x1eba')](',');}break;case _0x18cba1('0x22ac'):{const _0x5ba627=_0x3ac897[_0x18cba1('0x1e49')]['appdata']['split'](',');_0x3ac897['noop'][_0x18cba1('0x28ab')]=_0x5ba627[0x0],_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2814')]=_0x5ba627[0x1],_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x1bc2')]=_0x5ba627[0x2],_0x3ac897[_0x18cba1('0x1e49')]['language']=_0x5ba627[0x3],_0x3ac897[_0x18cba1('0x1e49')]['welcomemessage']=_0x5ba627[_0x18cba1('0x275f')](0x4,_0x5ba627[_0x18cba1('0x1f73')])[_0x18cba1('0x1eba')](',');}break;case _0x18cba1('0x16a9'):{const _0xde8703=_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2077')]['split'](',');_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x1452')]=_0xde8703[0x0],_0x3ac897[_0x18cba1('0x1e49')]['secretaccesskey']=_0xde8703[0x1],_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x1dcf')]=_0xde8703[0x2],_0x3ac897[_0x18cba1('0x1e49')]['botname']=_0xde8703[0x3],_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x1083')]=_0xde8703[_0x18cba1('0x275f')](0x4,_0xde8703[_0x18cba1('0x1f73')])[_0x18cba1('0x1eba')](',');}break;case _0x18cba1('0x96e'):{const _0x5bd280=_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2077')][_0x18cba1('0x2007')](',');_0x3ac897[_0x18cba1('0x1e49')]['times']=isNaN(_0x5bd280[0x0])?_0x5bd280[0x0]:parseInt(_0x5bd280[0x0],0xa),_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x132f')]=_0x5bd280[_0x18cba1('0x275f')](0x1,_0x5bd280['length'])[_0x18cba1('0x1eba')](',');}break;case _0x18cba1('0x1603'):_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x132f')]=_0x3ac897['noop'][_0x18cba1('0x2077')];break;case _0x18cba1('0xf2e'):_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2aa')]=_0x3ac897['noop']['appdata'][_0x18cba1('0x2007')]('=')[0x0],_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x175b')]=_0x3ac897['noop'][_0x18cba1('0x2077')]['split']('=')[0x1];break;case'agi':_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x87c')]=_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2077')];break;default:{const _0x5d4fb3=_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2077')][_0x18cba1('0x2007')](',');_0x3ac897[_0x18cba1('0x1e49')]['value']=_0x49cbdd()[_0x18cba1('0x109a')](_0x5d4fb3[0x0])?_0x5d4fb3[0x0]:isNaN(_0x5d4fb3[0x0])?_0x5d4fb3[0x0]:parseInt(_0x5d4fb3[0x0],0xa);}break;}else{}_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x412')]&&_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x412')][_0x18cba1('0x19b')]()===_0x18cba1('0x1ade')&&_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x1c54')][_0x18cba1('0x19b')]()===_0x18cba1('0x1711')&&(_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x11d4')]=_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x2154')]?_0x3ac897['noop'][_0x18cba1('0x2154')][_0x18cba1('0x2007')]('$')[0x0]:undefined,_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x1a8e')]=_0x3ac897[_0x18cba1('0x1e49')][_0x18cba1('0x17f4')]?_0x18cba1('0x1d28')+_0x3ac897[_0x18cba1('0x1e49')]['callerID']:undefined);_0x3ac897['saveOpenchannelAccountApp']=_0x169850,_0x3ac897[_0x18cba1('0x136e')]=_0x237aee;function _0x169850(){const _0x363561=_0x18cba1;_0x3ac897[_0x363561('0x73e')]=[];const _0x20da4a=[];_0x3ac897[_0x363561('0x1e49')][_0x363561('0x412')]&&_0x3ac897['noop'][_0x363561('0x412')][_0x363561('0x19b')]()==='outbound'&&_0x3ac897[_0x363561('0x1e49')]['appType']===_0x363561('0xbdc')&&(_0x3ac897[_0x363561('0x1e49')][_0x363561('0x2154')]=_0x1d69e0['cutdigits']?(_0x3ac897[_0x363561('0x1e49')][_0x363561('0x11d4')]||'')+_0x363561('0x2265')+_0x1d69e0['cutdigits']+'}':(_0x3ac897['noop'][_0x363561('0x11d4')]||'')+_0x363561('0x150e'),_0x1d69e0[_0x363561('0x287')]!=='none'?_0x3ac897['noop'][_0x363561('0x19')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x3ac897[_0x363561('0x1e49')][_0x363561('0x19')]+='U(xcally-mixmonitor-context)'):_0x3ac897['noop'][_0x363561('0x19')]=_0x3ac897['noop'][_0x363561('0x19')][_0x363561('0x737')](_0x363561('0xa22'),''));if(_0x3ac897[_0x363561('0x1e49')][_0x363561('0x1c54')]&&_0x3ac897[_0x363561('0x1e49')]['appType']===_0x363561('0x8fa')){}else switch((_0x3ac897[_0x363561('0x1e49')]['app']||_0x3ac897['noop'][_0x363561('0x1c54')])[_0x363561('0x19b')]()){case _0x363561('0xf2e'):_0x3ac897[_0x363561('0x1e49')]['appdata']=_0x3ac897['noop'][_0x363561('0x2aa')]+'='+_0x3ac897[_0x363561('0x1e49')][_0x363561('0x175b')];break;case _0x363561('0x8fa'):break;default:_0x20da4a[0x0]=_0x3ac897['noop'][_0x363561('0x175b')],_0x3ac897[_0x363561('0x1e49')]['appdata']=_0x20da4a[_0x363561('0x1eba')](',');}_0x237aee(_0x3ac897[_0x363561('0x1e49')]);}function _0x237aee(_0x11db23){_0x109236['hide'](_0x11db23);}}const _0x35d30d=_0x585231;_0x2ef56e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x274f'),_0x4376d8('0x152f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x2ef56e(_0xcaa864,_0x337022,_0xf4c227,_0x51ab7b,_0x21fe32,_0x26e5f9,_0x54bbf5,_0xa31d64){const _0x51a2c5=_0x4376d8,_0x3db1b5=this;_0x3db1b5[_0x51a2c5('0x197c')]=_0x54bbf5[_0x51a2c5('0x2831')](),_0x3db1b5['errors']=[],_0x3db1b5[_0x51a2c5('0x24d3')]=_0x51a2c5('0x1ee')+(_0x51ab7b[_0x51a2c5('0x1c54')]||_0x51ab7b[_0x51a2c5('0x643')])[_0x51a2c5('0x14e2')](),_0x3db1b5[_0x51a2c5('0x1bd')]=angular['copy'](_0x51ab7b),_0x3db1b5[_0x51a2c5('0x103e')]=_0xa31d64,_0x3db1b5[_0x51a2c5('0x6ee')]={};if(_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2077')])switch(_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x1c54')]?_0x3db1b5['queue'][_0x51a2c5('0x1c54')][_0x51a2c5('0x19b')]():_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x643')][_0x51a2c5('0x19b')]()){case _0x51a2c5('0x8fa'):break;case'dialogflow':{const _0x564c86=_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2077')][_0x51a2c5('0x2007')](',');_0x3db1b5['queue']['key']=_0x564c86[0x0],_0x3db1b5['queue'][_0x51a2c5('0x3e1')]=_0x564c86[0x1],_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x1083')]=_0x564c86[_0x51a2c5('0x275f')](0x2,_0x564c86[_0x51a2c5('0x1f73')])['join'](',');}break;case _0x51a2c5('0x22ac'):{const _0x2ae52e=_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2077')]['split'](',');_0x3db1b5[_0x51a2c5('0x1bd')]['projectId']=_0x2ae52e[0x0],_0x3db1b5[_0x51a2c5('0x1bd')]['clientEmail']=_0x2ae52e[0x1],_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x1bc2')]=_0x2ae52e[0x2],_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x3e1')]=_0x2ae52e[0x3],_0x3db1b5['queue']['welcomemessage']=_0x2ae52e['slice'](0x4,_0x2ae52e['length'])['join'](',');}break;case _0x51a2c5('0x16a9'):{const _0x387a10=_0x3db1b5[_0x51a2c5('0x1bd')]['appdata'][_0x51a2c5('0x2007')](',');_0x3db1b5['queue'][_0x51a2c5('0x1452')]=_0x387a10[0x0],_0x3db1b5[_0x51a2c5('0x1bd')]['secretaccesskey']=_0x387a10[0x1],_0x3db1b5['queue'][_0x51a2c5('0x1dcf')]=_0x387a10[0x2],_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x4a')]=_0x387a10[0x3],_0x3db1b5[_0x51a2c5('0x1bd')]['welcomemessage']=_0x387a10[_0x51a2c5('0x275f')](0x4,_0x387a10[_0x51a2c5('0x1f73')])['join'](',');}break;case _0x51a2c5('0x96e'):{const _0x12942c=_0x3db1b5[_0x51a2c5('0x1bd')]['appdata'][_0x51a2c5('0x2007')](',');_0x3db1b5[_0x51a2c5('0x1bd')]['times']=isNaN(_0x12942c[0x0])?_0x12942c[0x0]:parseInt(_0x12942c[0x0],0xa),_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x132f')]=_0x12942c[_0x51a2c5('0x275f')](0x1,_0x12942c[_0x51a2c5('0x1f73')])['join'](',');}break;case _0x51a2c5('0x1603'):_0x3db1b5[_0x51a2c5('0x1bd')]['text']=_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2077')];break;case _0x51a2c5('0xf2e'):_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2aa')]=_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2077')][_0x51a2c5('0x2007')]('=')[0x0],_0x3db1b5['queue'][_0x51a2c5('0x175b')]=_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2077')][_0x51a2c5('0x2007')]('=')[0x1];break;case'agi':_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x87c')]=_0x3db1b5['queue']['appdata'];break;default:{const _0x55cf16=_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2077')][_0x51a2c5('0x2007')](',');_0x3db1b5['queue'][_0x51a2c5('0x1bd')]=_0x49cbdd()[_0x51a2c5('0x109a')](_0x55cf16[0x0])?_0x55cf16[0x0]:isNaN(_0x55cf16[0x0])?_0x55cf16[0x0]:parseInt(_0x55cf16[0x0],0xa),_0x3db1b5[_0x51a2c5('0x1bd')]['timeout']=_0x49cbdd()[_0x51a2c5('0x109a')](_0x55cf16[0x1])?_0x55cf16[0x1]:isNaN(_0x55cf16[0x1])?_0x55cf16[0x1]:parseInt(_0x55cf16[0x1],0xa);}break;}else _0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x1bd')]=0x12c,_0x3db1b5[_0x51a2c5('0x1bd')]['timeout']=0x12c;_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x412')]&&_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x412')]['toLowerCase']()===_0x51a2c5('0x1ade')&&_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x1c54')][_0x51a2c5('0x19b')]()===_0x51a2c5('0x1711')&&(_0x3db1b5[_0x51a2c5('0x1bd')]['prefix']=_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x2154')]?_0x3db1b5['queue'][_0x51a2c5('0x2154')][_0x51a2c5('0x2007')]('$')[0x0]:undefined,_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x1a8e')]=_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x17f4')]?'CALLERID(all)='+_0x3db1b5[_0x51a2c5('0x1bd')][_0x51a2c5('0x17f4')]:undefined);_0x3db1b5['saveOpenchannelAccountApp']=_0x4677d7,_0x3db1b5[_0x51a2c5('0x136e')]=_0xdb4834,_0x54bbf5['hasRole'](_0x51a2c5('0x20bf'))?_0x26e5f9[_0x51a2c5('0x891')][_0x51a2c5('0x1c53')]({'fields':'id,name,type','sort':_0x51a2c5('0x2aa'),'nolimit':_0x51a2c5('0xe34')})['$promise'][_0x51a2c5('0x17e7')](function(_0x3d851b){const _0x3fcace=_0x51a2c5;_0x3db1b5['queues']=_0x3d851b[_0x3fcace('0x2319')]||[];})[_0x51a2c5('0x16df')](function(_0x3d88f8){const _0x15f597=_0x51a2c5;_0xf4c227['error']({'title':_0x3d88f8['status']?_0x15f597('0x14f7')+_0x3d88f8['status']+'\x20-\x20'+_0x3d88f8[_0x15f597('0x1833')]:_0x15f597('0x92a'),'msg':_0x3d88f8[_0x15f597('0x1457')]?JSON[_0x15f597('0x678')](_0x3d88f8[_0x15f597('0x1457')]):_0x3d88f8['toString']()});}):_0x26e5f9['openchannelQueue'][_0x51a2c5('0x1c53')]({'fields':'id,name,type','sort':_0x51a2c5('0x2aa'),'nolimit':_0x51a2c5('0xe34')})[_0x51a2c5('0x1af5')][_0x51a2c5('0x17e7')](function(_0x332082){const _0x26ff60=_0x51a2c5;_0x3db1b5[_0x26ff60('0x14c4')]=_0x332082[_0x26ff60('0x2319')]||[];})[_0x51a2c5('0x17e7')](function(){const _0x39c6a0=_0x51a2c5;return _0x26e5f9[_0x39c6a0('0x383')][_0x39c6a0('0x1c53')]({'userProfileId':_0x3db1b5[_0x39c6a0('0x197c')][_0x39c6a0('0x1e76')],'sectionId':0x321})[_0x39c6a0('0x1af5')];})[_0x51a2c5('0x17e7')](function(_0x18a76a){const _0xc8c5ec=_0x51a2c5,_0x1de7bf=_0x18a76a&&_0x18a76a[_0xc8c5ec('0x2319')]?_0x18a76a[_0xc8c5ec('0x2319')][0x0]:null;if(!_0x1de7bf){const _0xc4f767=[];let _0x559969=null;_0x3db1b5['queue']&&(_0x559969=_0x49cbdd()['find'](_0x3db1b5[_0xc8c5ec('0x14c4')],{'name':_0x3db1b5[_0xc8c5ec('0x1bd')]['queue']}));for(let _0xb13ab6=0x0;_0xb13ab6<_0x3db1b5[_0xc8c5ec('0x14c4')][_0xc8c5ec('0x1f73')];_0xb13ab6++){_0x559969&&_0x3db1b5[_0xc8c5ec('0x14c4')][_0xb13ab6]['id']===_0x559969['id']&&(_0x3db1b5['queues'][_0xb13ab6][_0xc8c5ec('0xe5c')]=![],_0xc4f767[_0xc8c5ec('0x269f')](_0x3db1b5[_0xc8c5ec('0x14c4')][_0xb13ab6]));}_0x3db1b5[_0xc8c5ec('0x14c4')]=_0xc4f767;}else{if(!_0x1de7bf[_0xc8c5ec('0x9e3')])return _0x26e5f9[_0xc8c5ec('0x78d')][_0xc8c5ec('0x1c53')]({'sectionId':_0x1de7bf['id']})[_0xc8c5ec('0x1af5')][_0xc8c5ec('0x17e7')](function(_0x13bdad){const _0x482541=_0xc8c5ec,_0x8eb1f9=_0x49cbdd()[_0x482541('0x787')](_0x13bdad['rows'],function(_0x464471){const _0x5f1ffb=_0x482541;return _0x49cbdd()[_0x5f1ffb('0xe8e')](_0x3db1b5['queues'],{'id':_0x464471[_0x5f1ffb('0x5db')]});});let _0x592b27=null;_0x3db1b5[_0x482541('0x1bd')]&&(_0x592b27=_0x49cbdd()[_0x482541('0xe8e')](_0x3db1b5[_0x482541('0x14c4')],{'name':_0x3db1b5[_0x482541('0x1bd')][_0x482541('0x1bd')]}));if(_0x592b27&&!_0x49cbdd()['some'](_0x8eb1f9,['id',_0x592b27['id']])){const _0x306d24=_0x49cbdd()[_0x482541('0xe8e')](_0x3db1b5[_0x482541('0x14c4')],{'id':_0x592b27['id']});_0x306d24[_0x482541('0xe5c')]=![],_0x8eb1f9['push'](_0x306d24);}_0x3db1b5[_0x482541('0x14c4')]=_0x8eb1f9;});}})['catch'](function(_0x58796e){const _0x17a0b4=_0x51a2c5;_0xf4c227[_0x17a0b4('0x1db9')]({'title':_0x58796e[_0x17a0b4('0x11c5')]?_0x17a0b4('0x14f7')+_0x58796e['status']+_0x17a0b4('0x16e4')+_0x58796e['statusText']:_0x17a0b4('0xb5f'),'msg':_0x58796e[_0x17a0b4('0x1457')]?JSON[_0x17a0b4('0x678')](_0x58796e[_0x17a0b4('0x1457')]):_0x58796e['toString']()});});function _0x4677d7(){const _0x270df8=_0x51a2c5;_0x3db1b5['errors']=[];const _0xb2cdf4=[];_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x412')]&&_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x412')][_0x270df8('0x19b')]()===_0x270df8('0x1ade')&&_0x3db1b5[_0x270df8('0x1bd')]['appType']===_0x270df8('0xbdc')&&(_0x3db1b5[_0x270df8('0x1bd')]['phone']=_0x21fe32[_0x270df8('0x12af')]?(_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x11d4')]||'')+_0x270df8('0x2265')+_0x21fe32[_0x270df8('0x12af')]+'}':(_0x3db1b5['queue'][_0x270df8('0x11d4')]||'')+_0x270df8('0x150e'),_0x21fe32[_0x270df8('0x287')]!==_0x270df8('0x7ee')?_0x3db1b5['queue'][_0x270df8('0x19')][_0x270df8('0x2567')](_0x270df8('0xa22'))<0x0&&(_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x19')]+=_0x270df8('0xa22')):_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x19')]=_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x19')][_0x270df8('0x737')](_0x270df8('0xa22'),''));const _0x375e46=_0x49cbdd()[_0x270df8('0xe8e')](_0x3db1b5['queues'],{'name':_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x1bd')]});_0x375e46&&(_0x3db1b5[_0x270df8('0x1bd')][_0x49cbdd()['capitalize'](_0x270df8('0x1a48'))+'QueueId']=_0x375e46['id']);if(_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x1c54')]&&_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x1c54')]===_0x270df8('0x8fa')){}else switch((_0x3db1b5['queue']['app']||_0x3db1b5['queue'][_0x270df8('0x1c54')])[_0x270df8('0x19b')]()){case'set':_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x2077')]=_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x2aa')]+'='+_0x3db1b5[_0x270df8('0x1bd')]['value'];break;case _0x270df8('0x8fa'):break;default:_0xb2cdf4[0x0]=_0x3db1b5[_0x270df8('0x1bd')]['queue'],_0xb2cdf4[0x1]=_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0xd2f')],_0x3db1b5[_0x270df8('0x1bd')][_0x270df8('0x2077')]=_0xb2cdf4[_0x270df8('0x1eba')](',');}_0xdb4834(_0x3db1b5[_0x270df8('0x1bd')]);}function _0xdb4834(_0x3f3f07){_0xcaa864['hide'](_0x3f3f07);}}const _0x3bbd78=_0x2ef56e;_0x3959bc[_0x4376d8('0x1b9c')]=['$mdDialog','$q','toasty','openchannelAccountApp','openchannelAccount',_0x4376d8('0x212e'),'Auth','crudPermissions'];function _0x3959bc(_0x2afda6,_0x33396b,_0x51884d,_0x14ee3b,_0x306040,_0x39576e,_0x41dc82,_0x3c3caf){const _0x3b6952=_0x4376d8,_0x3ccf2b=this;_0x3ccf2b[_0x3b6952('0x197c')]=_0x41dc82[_0x3b6952('0x2831')](),_0x3ccf2b[_0x3b6952('0x73e')]=[],_0x3ccf2b[_0x3b6952('0x24d3')]='OPENCHANNEL.EDIT_'+(_0x14ee3b[_0x3b6952('0x1c54')]||_0x14ee3b[_0x3b6952('0x643')])[_0x3b6952('0x14e2')](),_0x3ccf2b['system']=angular[_0x3b6952('0x14e5')](_0x14ee3b),_0x3ccf2b[_0x3b6952('0x103e')]=_0x3c3caf,_0x3ccf2b['hasModulePermissions']={};if(_0x3ccf2b[_0x3b6952('0xca8')]['appdata'])switch(_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1c54')]?_0x3ccf2b['system'][_0x3b6952('0x1c54')]['toLowerCase']():_0x3ccf2b['system'][_0x3b6952('0x643')][_0x3b6952('0x19b')]()){case _0x3b6952('0x8fa'):break;case _0x3b6952('0x2526'):{const _0x10e511=_0x3ccf2b[_0x3b6952('0xca8')]['appdata'][_0x3b6952('0x2007')](',');_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0xdb5')]=_0x10e511[0x0],_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x3e1')]=_0x10e511[0x1],_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1083')]=_0x10e511[_0x3b6952('0x275f')](0x2,_0x10e511[_0x3b6952('0x1f73')])[_0x3b6952('0x1eba')](',');}break;case'dialogflowv2':{const _0x1a0bb5=_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x2077')][_0x3b6952('0x2007')](',');_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x28ab')]=_0x1a0bb5[0x0],_0x3ccf2b[_0x3b6952('0xca8')]['clientEmail']=_0x1a0bb5[0x1],_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1bc2')]=_0x1a0bb5[0x2],_0x3ccf2b[_0x3b6952('0xca8')]['language']=_0x1a0bb5[0x3],_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1083')]=_0x1a0bb5[_0x3b6952('0x275f')](0x4,_0x1a0bb5[_0x3b6952('0x1f73')])['join'](',');}break;case _0x3b6952('0x16a9'):{const _0x4c6e46=_0x3ccf2b[_0x3b6952('0xca8')]['appdata']['split'](',');_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1452')]=_0x4c6e46[0x0],_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1a62')]=_0x4c6e46[0x1],_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1dcf')]=_0x4c6e46[0x2],_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x4a')]=_0x4c6e46[0x3],_0x3ccf2b[_0x3b6952('0xca8')]['welcomemessage']=_0x4c6e46[_0x3b6952('0x275f')](0x4,_0x4c6e46[_0x3b6952('0x1f73')])[_0x3b6952('0x1eba')](',');}break;case _0x3b6952('0x96e'):{const _0x2b9498=_0x3ccf2b[_0x3b6952('0xca8')]['appdata'][_0x3b6952('0x2007')](',');_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x12a6')]=isNaN(_0x2b9498[0x0])?_0x2b9498[0x0]:parseInt(_0x2b9498[0x0],0xa),_0x3ccf2b[_0x3b6952('0xca8')]['text']=_0x2b9498['slice'](0x1,_0x2b9498[_0x3b6952('0x1f73')])[_0x3b6952('0x1eba')](',');}break;case'message':_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x132f')]=_0x3ccf2b[_0x3b6952('0xca8')]['appdata'];break;case _0x3b6952('0xf2e'):_0x3ccf2b[_0x3b6952('0xca8')]['name']=_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x2077')][_0x3b6952('0x2007')]('=')[0x0],_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x175b')]=_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x2077')][_0x3b6952('0x2007')]('=')[0x1];break;case _0x3b6952('0x17c6'):_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x87c')]=_0x3ccf2b['system']['appdata'];break;default:{const _0x5e13b9=_0x3ccf2b['system'][_0x3b6952('0x2077')][_0x3b6952('0x2007')](',');_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1115')]=_0x49cbdd()[_0x3b6952('0x109a')](_0x5e13b9[0x0])?_0x5e13b9[0x0]:isNaN(_0x5e13b9[0x0])?_0x5e13b9[0x0]:parseInt(_0x5e13b9[0x0],0xa),_0x3ccf2b['system'][_0x3b6952('0xb0a')]=_0x49cbdd()['isEmpty'](_0x5e13b9[0x1])?_0x5e13b9[0x1]:isNaN(_0x5e13b9[0x1])?_0x5e13b9[0x1]:parseInt(_0x5e13b9[0x1],0xa);}break;}else _0x3ccf2b['system'][_0x3b6952('0xb0a')]='';_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x412')]&&_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x412')]['toLowerCase']()===_0x3b6952('0x1ade')&&_0x3ccf2b['system'][_0x3b6952('0x1c54')][_0x3b6952('0x19b')]()==='outbounddial'&&(_0x3ccf2b[_0x3b6952('0xca8')]['prefix']=_0x3ccf2b['system'][_0x3b6952('0x2154')]?_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x2154')][_0x3b6952('0x2007')]('$')[0x0]:undefined,_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x1a8e')]=_0x3ccf2b['system'][_0x3b6952('0x17f4')]?'CALLERID(all)='+_0x3ccf2b[_0x3b6952('0xca8')][_0x3b6952('0x17f4')]:undefined);_0x3ccf2b['saveOpenchannelAccountApp']=_0x1b2725,_0x3ccf2b[_0x3b6952('0x136e')]=_0x250ee4,_0x41dc82[_0x3b6952('0x1ba2')](_0x3b6952('0x20bf'))?_0x39576e[_0x3b6952('0xb0a')][_0x3b6952('0x1c53')]({'fields':_0x3b6952('0x12d2'),'sort':_0x3b6952('0x2aa'),'nolimit':_0x3b6952('0xe34')})['$promise'][_0x3b6952('0x17e7')](function(_0x25d97c){_0x3ccf2b['variables']=_0x25d97c['rows']||[];})[_0x3b6952('0x16df')](function(_0x5ef760){const _0x128158=_0x3b6952;_0x51884d[_0x128158('0x1db9')]({'title':_0x5ef760['status']?_0x128158('0x14f7')+_0x5ef760[_0x128158('0x11c5')]+'\x20-\x20'+_0x5ef760['statusText']:_0x128158('0x1edc'),'msg':_0x5ef760['data']?JSON[_0x128158('0x678')](_0x5ef760[_0x128158('0x1457')]):_0x5ef760[_0x128158('0x9b6')]()});}):_0x39576e['variable'][_0x3b6952('0x1c53')]({'fields':_0x3b6952('0x12d2'),'sort':_0x3b6952('0x2aa'),'nolimit':_0x3b6952('0xe34')})[_0x3b6952('0x1af5')][_0x3b6952('0x17e7')](function(_0x177975){const _0x2de98d=_0x3b6952;_0x3ccf2b[_0x2de98d('0xd26')]=_0x177975[_0x2de98d('0x2319')]||[];})[_0x3b6952('0x17e7')](function(){const _0x24c834=_0x3b6952;return _0x39576e[_0x24c834('0x383')][_0x24c834('0x1c53')]({'userProfileId':_0x3ccf2b[_0x24c834('0x197c')][_0x24c834('0x1e76')],'sectionId':0x3f4})[_0x24c834('0x1af5')];})[_0x3b6952('0x17e7')](function(_0x30d11d){const _0x5caae2=_0x3b6952,_0x465c61=_0x30d11d&&_0x30d11d[_0x5caae2('0x2319')]?_0x30d11d[_0x5caae2('0x2319')][0x0]:null;if(!_0x465c61){const _0x5ac41=[];let _0x56814c=null;_0x3ccf2b['system']&&(_0x56814c=_0x49cbdd()[_0x5caae2('0xe8e')](_0x3ccf2b[_0x5caae2('0xd26')],{'name':_0x3ccf2b['system'][_0x5caae2('0xb0a')]}));for(let _0x42c2bf=0x0;_0x42c2bf<_0x3ccf2b[_0x5caae2('0xd26')][_0x5caae2('0x1f73')];_0x42c2bf++){_0x56814c&&_0x3ccf2b[_0x5caae2('0xd26')][_0x42c2bf]['id']===_0x56814c['id']&&(_0x3ccf2b[_0x5caae2('0xd26')][_0x42c2bf][_0x5caae2('0xe5c')]=![],_0x5ac41[_0x5caae2('0x269f')](_0x3ccf2b['variables'][_0x42c2bf]));}_0x3ccf2b[_0x5caae2('0xd26')]=_0x5ac41;}else{if(!_0x465c61[_0x5caae2('0x9e3')])return _0x39576e['userProfileResource']['get']({'sectionId':_0x465c61['id']})['$promise'][_0x5caae2('0x17e7')](function(_0xd52997){const _0x2274fc=_0x5caae2,_0x55156f=_0x49cbdd()[_0x2274fc('0x787')](_0xd52997['rows'],function(_0x896079){const _0x4b7622=_0x2274fc;return _0x49cbdd()['find'](_0x3ccf2b[_0x4b7622('0xd26')],{'id':_0x896079['resourceId']});});let _0x523d48=null;_0x3ccf2b[_0x2274fc('0xca8')]&&(_0x523d48=_0x49cbdd()[_0x2274fc('0xe8e')](_0x3ccf2b[_0x2274fc('0xd26')],{'name':_0x3ccf2b[_0x2274fc('0xca8')][_0x2274fc('0xb0a')]}));if(_0x523d48&&!_0x49cbdd()['some'](_0x55156f,['id',_0x523d48['id']])){const _0x7bb21f=_0x49cbdd()[_0x2274fc('0xe8e')](_0x3ccf2b[_0x2274fc('0xd26')],{'id':_0x523d48['id']});_0x7bb21f[_0x2274fc('0xe5c')]=![],_0x55156f[_0x2274fc('0x269f')](_0x7bb21f);}_0x3ccf2b[_0x2274fc('0xd26')]=_0x55156f;});}})[_0x3b6952('0x16df')](function(_0x4482fe){const _0x9feb75=_0x3b6952;_0x51884d[_0x9feb75('0x1db9')]({'title':_0x4482fe[_0x9feb75('0x11c5')]?_0x9feb75('0x14f7')+_0x4482fe[_0x9feb75('0x11c5')]+_0x9feb75('0x16e4')+_0x4482fe[_0x9feb75('0x1833')]:_0x9feb75('0xef7'),'msg':_0x4482fe[_0x9feb75('0x1457')]?JSON['stringify'](_0x4482fe['data']):_0x4482fe[_0x9feb75('0x9b6')]()});});function _0x1b2725(){const _0x5f1848=_0x3b6952;_0x3ccf2b['errors']=[];const _0x499bb8=[];_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x412')]&&_0x3ccf2b['system']['type'][_0x5f1848('0x19b')]()===_0x5f1848('0x1ade')&&_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x1c54')]===_0x5f1848('0xbdc')&&(_0x3ccf2b['system'][_0x5f1848('0x2154')]=_0x306040['cutdigits']?(_0x3ccf2b[_0x5f1848('0xca8')]['prefix']||'')+'${EXTEN:'+_0x306040[_0x5f1848('0x12af')]+'}':(_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x11d4')]||'')+_0x5f1848('0x150e'),_0x306040[_0x5f1848('0x287')]!==_0x5f1848('0x7ee')?_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x19')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x19')]+='U(xcally-mixmonitor-context)'):_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x19')]=_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x19')][_0x5f1848('0x737')](_0x5f1848('0xa22'),''));if(_0x3ccf2b['system'][_0x5f1848('0x1c54')]&&_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x1c54')]===_0x5f1848('0x8fa')){}else switch((_0x3ccf2b['system'][_0x5f1848('0x643')]||_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x1c54')])['toLowerCase']()){case'set':_0x3ccf2b[_0x5f1848('0xca8')]['appdata']=_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x2aa')]+'='+_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x175b')];break;case _0x5f1848('0x8fa'):break;default:_0x499bb8[0x0]=_0x3ccf2b[_0x5f1848('0xca8')]['command'],_0x499bb8[0x1]=_0x3ccf2b['system']['variable'],_0x3ccf2b[_0x5f1848('0xca8')][_0x5f1848('0x2077')]=_0x499bb8[_0x5f1848('0x1eba')](',');}_0x250ee4(_0x3ccf2b[_0x5f1848('0xca8')]);}function _0x250ee4(_0x2acaf7){const _0x34465e=_0x3b6952;_0x2afda6[_0x34465e('0x212a')](_0x2acaf7);}}const _0x2ff7d4=_0x3959bc;_0x4918a2[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty','openchannelAccountApp','openchannelAccount',_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x4918a2(_0x456cab,_0x155346,_0x3f7d59,_0x4325ca,_0x45bb3f,_0x363a1b,_0x202b0b,_0x288061){const _0x304e20=_0x4376d8,_0x49da4b=this;_0x49da4b[_0x304e20('0x197c')]=_0x202b0b[_0x304e20('0x2831')](),_0x49da4b[_0x304e20('0x73e')]=[],_0x49da4b['title']=_0x304e20('0x1ee')+(_0x4325ca[_0x304e20('0x1c54')]||_0x4325ca[_0x304e20('0x643')])['toUpperCase'](),_0x49da4b['tag']=angular[_0x304e20('0x14e5')](_0x4325ca),_0x49da4b[_0x304e20('0x103e')]=_0x288061,_0x49da4b[_0x304e20('0x6ee')]={};if(_0x49da4b['tag']['appdata'])switch(_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x1c54')]?_0x49da4b['tag']['appType'][_0x304e20('0x19b')]():_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x643')][_0x304e20('0x19b')]()){case _0x304e20('0x8fa'):break;case'dialogflow':{const _0x28d470=_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x2077')][_0x304e20('0x2007')](',');_0x49da4b[_0x304e20('0x1132')]['key']=_0x28d470[0x0],_0x49da4b[_0x304e20('0x1132')]['language']=_0x28d470[0x1],_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x1083')]=_0x28d470['slice'](0x2,_0x28d470[_0x304e20('0x1f73')])['join'](',');}break;case'dialogflowv2':{const _0x20533f=_0x49da4b['tag'][_0x304e20('0x2077')]['split'](',');_0x49da4b['tag'][_0x304e20('0x28ab')]=_0x20533f[0x0],_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x2814')]=_0x20533f[0x1],_0x49da4b['tag'][_0x304e20('0x1bc2')]=_0x20533f[0x2],_0x49da4b[_0x304e20('0x1132')]['language']=_0x20533f[0x3],_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x1083')]=_0x20533f[_0x304e20('0x275f')](0x4,_0x20533f[_0x304e20('0x1f73')])[_0x304e20('0x1eba')](',');}break;case'amazonlex':{const _0x56b144=_0x49da4b[_0x304e20('0x1132')]['appdata'][_0x304e20('0x2007')](',');_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x1452')]=_0x56b144[0x0],_0x49da4b['tag'][_0x304e20('0x1a62')]=_0x56b144[0x1],_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x1dcf')]=_0x56b144[0x2],_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x4a')]=_0x56b144[0x3],_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x1083')]=_0x56b144[_0x304e20('0x275f')](0x4,_0x56b144[_0x304e20('0x1f73')])['join'](',');}break;case _0x304e20('0x96e'):{const _0x5c60d6=_0x49da4b['tag'][_0x304e20('0x2077')][_0x304e20('0x2007')](',');_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x12a6')]=isNaN(_0x5c60d6[0x0])?_0x5c60d6[0x0]:parseInt(_0x5c60d6[0x0],0xa),_0x49da4b['tag']['text']=_0x5c60d6[_0x304e20('0x275f')](0x1,_0x5c60d6['length'])[_0x304e20('0x1eba')](',');}break;case _0x304e20('0x1603'):_0x49da4b[_0x304e20('0x1132')]['text']=_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x2077')];break;case _0x304e20('0xf2e'):_0x49da4b['tag'][_0x304e20('0x2aa')]=_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x2077')][_0x304e20('0x2007')]('=')[0x0],_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x175b')]=_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x2077')]['split']('=')[0x1];break;case'agi':_0x49da4b[_0x304e20('0x1132')]['project']=_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x2077')];break;default:{const _0x51acec=_0x49da4b[_0x304e20('0x1132')]['appdata'][_0x304e20('0x2007')](',');_0x49da4b[_0x304e20('0x1132')]['tag']=_0x49cbdd()[_0x304e20('0x109a')](_0x51acec[0x0])?_0x51acec[0x0]:isNaN(_0x51acec[0x0])?_0x51acec[0x0]:parseInt(_0x51acec[0x0],0xa);}break;}else{}_0x49da4b['tag'][_0x304e20('0x412')]&&_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x412')][_0x304e20('0x19b')]()===_0x304e20('0x1ade')&&_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x1c54')][_0x304e20('0x19b')]()===_0x304e20('0x1711')&&(_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x11d4')]=_0x49da4b[_0x304e20('0x1132')]['phone']?_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x2154')][_0x304e20('0x2007')]('$')[0x0]:undefined,_0x49da4b['tag'][_0x304e20('0x1a8e')]=_0x49da4b['tag']['callerID']?_0x304e20('0x1d28')+_0x49da4b[_0x304e20('0x1132')][_0x304e20('0x17f4')]:undefined);_0x49da4b[_0x304e20('0x22d0')]=_0x59d05d,_0x49da4b['closeDialog']=_0x370e4e,_0x202b0b['hasRole'](_0x304e20('0x20bf'))?_0x363a1b[_0x304e20('0x1132')][_0x304e20('0x1c53')]({'fields':_0x304e20('0x12d2'),'sort':_0x304e20('0x2aa'),'nolimit':_0x304e20('0xe34')})[_0x304e20('0x1af5')][_0x304e20('0x17e7')](function(_0x549184){const _0x466d62=_0x304e20;_0x49da4b[_0x466d62('0x1522')]=_0x549184[_0x466d62('0x2319')]||[];})[_0x304e20('0x16df')](function(_0x3159df){const _0x5c6944=_0x304e20;_0x3f7d59[_0x5c6944('0x1db9')]({'title':_0x3159df[_0x5c6944('0x11c5')]?'API:'+_0x3159df[_0x5c6944('0x11c5')]+'\x20-\x20'+_0x3159df[_0x5c6944('0x1833')]:_0x5c6944('0x14e7'),'msg':_0x3159df[_0x5c6944('0x1457')]?JSON[_0x5c6944('0x678')](_0x3159df[_0x5c6944('0x1457')]):_0x3159df[_0x5c6944('0x9b6')]()});}):_0x363a1b[_0x304e20('0x1132')][_0x304e20('0x1c53')]({'fields':'id,name','sort':_0x304e20('0x2aa'),'nolimit':'true'})['$promise'][_0x304e20('0x17e7')](function(_0x1d3004){const _0x500c12=_0x304e20;_0x49da4b['tags']=_0x1d3004[_0x500c12('0x2319')]||[];})[_0x304e20('0x17e7')](function(){const _0x35e1cb=_0x304e20;return _0x363a1b[_0x35e1cb('0x383')][_0x35e1cb('0x1c53')]({'userProfileId':_0x49da4b[_0x35e1cb('0x197c')][_0x35e1cb('0x1e76')],'sectionId':0x3f0})['$promise'];})[_0x304e20('0x17e7')](function(_0xb6780f){const _0x5ed03a=_0x304e20,_0x16b216=_0xb6780f&&_0xb6780f[_0x5ed03a('0x2319')]?_0xb6780f[_0x5ed03a('0x2319')][0x0]:null;if(!_0x16b216){const _0x519bb4=[];let _0x4dbfe6=null;_0x49da4b[_0x5ed03a('0x1132')]&&(_0x4dbfe6=_0x49cbdd()[_0x5ed03a('0xe8e')](_0x49da4b[_0x5ed03a('0x1522')],{'name':_0x49da4b[_0x5ed03a('0x1132')][_0x5ed03a('0x1132')]}));for(let _0x2f44c3=0x0;_0x2f44c3<_0x49da4b[_0x5ed03a('0x1522')][_0x5ed03a('0x1f73')];_0x2f44c3++){_0x4dbfe6&&_0x49da4b[_0x5ed03a('0x1522')][_0x2f44c3]['id']===_0x4dbfe6['id']&&(_0x49da4b[_0x5ed03a('0x1522')][_0x2f44c3][_0x5ed03a('0xe5c')]=![],_0x519bb4[_0x5ed03a('0x269f')](_0x49da4b[_0x5ed03a('0x1522')][_0x2f44c3]));}_0x49da4b[_0x5ed03a('0x1522')]=_0x519bb4;}else{if(!_0x16b216['autoAssociation'])return _0x363a1b[_0x5ed03a('0x78d')][_0x5ed03a('0x1c53')]({'sectionId':_0x16b216['id']})[_0x5ed03a('0x1af5')][_0x5ed03a('0x17e7')](function(_0x1935d9){const _0xeca0a2=_0x5ed03a,_0x2abfc5=_0x49cbdd()[_0xeca0a2('0x787')](_0x1935d9[_0xeca0a2('0x2319')],function(_0x146c51){const _0x21775f=_0xeca0a2;return _0x49cbdd()['find'](_0x49da4b[_0x21775f('0x1522')],{'id':_0x146c51['resourceId']});});let _0x32c51c=null;_0x49da4b[_0xeca0a2('0x1132')]&&(_0x32c51c=_0x49cbdd()[_0xeca0a2('0xe8e')](_0x49da4b[_0xeca0a2('0x1522')],{'name':_0x49da4b[_0xeca0a2('0x1132')][_0xeca0a2('0x1132')]}));if(_0x32c51c&&!_0x49cbdd()[_0xeca0a2('0x26f8')](_0x2abfc5,['id',_0x32c51c['id']])){const _0x47690e=_0x49cbdd()[_0xeca0a2('0xe8e')](_0x49da4b[_0xeca0a2('0x1522')],{'id':_0x32c51c['id']});_0x47690e[_0xeca0a2('0xe5c')]=![],_0x2abfc5[_0xeca0a2('0x269f')](_0x47690e);}_0x49da4b['tags']=_0x2abfc5;});}})['catch'](function(_0x453617){const _0x5e4d9=_0x304e20;_0x3f7d59[_0x5e4d9('0x1db9')]({'title':_0x453617[_0x5e4d9('0x11c5')]?'API:'+_0x453617['status']+_0x5e4d9('0x16e4')+_0x453617['statusText']:'SYSTEM:GETtags','msg':_0x453617[_0x5e4d9('0x1457')]?JSON[_0x5e4d9('0x678')](_0x453617['data']):_0x453617['toString']()});});function _0x59d05d(){const _0x95fcf=_0x304e20;_0x49da4b['errors']=[];const _0x2ac478=[];_0x49da4b[_0x95fcf('0x1132')][_0x95fcf('0x412')]&&_0x49da4b[_0x95fcf('0x1132')][_0x95fcf('0x412')][_0x95fcf('0x19b')]()===_0x95fcf('0x1ade')&&_0x49da4b[_0x95fcf('0x1132')]['appType']==='outboundDial'&&(_0x49da4b['tag'][_0x95fcf('0x2154')]=_0x45bb3f['cutdigits']?(_0x49da4b['tag']['prefix']||'')+'${EXTEN:'+_0x45bb3f[_0x95fcf('0x12af')]+'}':(_0x49da4b[_0x95fcf('0x1132')]['prefix']||'')+_0x95fcf('0x150e'),_0x45bb3f['recordingFormat']!==_0x95fcf('0x7ee')?_0x49da4b['tag'][_0x95fcf('0x19')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x49da4b[_0x95fcf('0x1132')][_0x95fcf('0x19')]+='U(xcally-mixmonitor-context)'):_0x49da4b['tag'][_0x95fcf('0x19')]=_0x49da4b[_0x95fcf('0x1132')]['options']['replace']('U(xcally-mixmonitor-context)',''));const _0x45cbdb=_0x49cbdd()[_0x95fcf('0xe8e')](_0x49da4b['tags'],{'name':_0x49da4b[_0x95fcf('0x1132')]['tag']});_0x45cbdb&&(_0x49da4b[_0x95fcf('0x1132')]['TagId']=_0x45cbdb['id']);if(_0x49da4b['tag'][_0x95fcf('0x1c54')]&&_0x49da4b[_0x95fcf('0x1132')]['appType']===_0x95fcf('0x8fa')){}else switch((_0x49da4b['tag'][_0x95fcf('0x643')]||_0x49da4b['tag'][_0x95fcf('0x1c54')])[_0x95fcf('0x19b')]()){case _0x95fcf('0xf2e'):_0x49da4b['tag'][_0x95fcf('0x2077')]=_0x49da4b[_0x95fcf('0x1132')][_0x95fcf('0x2aa')]+'='+_0x49da4b[_0x95fcf('0x1132')][_0x95fcf('0x175b')];break;case _0x95fcf('0x8fa'):break;default:_0x2ac478[0x0]=_0x49da4b[_0x95fcf('0x1132')][_0x95fcf('0x1132')],_0x49da4b[_0x95fcf('0x1132')]['appdata']=_0x2ac478[_0x95fcf('0x1eba')](',');}_0x370e4e(_0x49da4b['tag']);}function _0x370e4e(_0xc36e18){const _0x255f79=_0x304e20;_0x456cab[_0x255f79('0x212a')](_0xc36e18);}}const _0x2bc021=_0x4918a2;_0x11884d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),'$state','$q',_0x4376d8('0x28da'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x11884d(_0x50e70e,_0x44a7e6,_0x4fc68e,_0x32ea1e,_0x48a8e6,_0xc949df,_0x2d0d14,_0x43aa61,_0x59bf90,_0x2dd3b8,_0x174c24){const _0xc90b11=_0x4376d8,_0x849989=this;_0x849989[_0xc90b11('0x197c')]=_0x174c24[_0xc90b11('0x2831')](),_0x849989[_0xc90b11('0x152f')]={},_0x849989[_0xc90b11('0x1233')]={'count':0x0,'rows':[]},_0x849989['selectedOpenchannelAccountInteractions']=[],_0x849989[_0xc90b11('0x103e')],_0x849989['query']={'read':_0xc90b11('0x9bb'),'closed':_0xc90b11('0x9bb'),'sort':_0xc90b11('0x2555'),'includeAll':_0xc90b11('0xe34'),'limit':0xa,'page':0x1},_0x849989[_0xc90b11('0x161d')]=_0x4e8177,_0x849989[_0xc90b11('0x1a20')]=_0x3b53af,_0x849989[_0xc90b11('0x2730')]=_0x228359,_0x849989['success']=_0x50fa3e,_0x849989['getOpenchannelAccountInteractions']=_0x49cf03,_0x849989[_0xc90b11('0x15c8')]=_0x22fa83,_0x849989[_0xc90b11('0x585')]=_0xb0315c,_0x849989[_0xc90b11('0xbe1')]=_0x2e679f,_0x849989['deleteOpenchannelAccountInteraction']=_0x378652,_0x849989[_0xc90b11('0x2639')]=_0x419d54;function _0x4e8177(_0x87c923,_0x52f941){const _0x398510=_0xc90b11;_0x849989['openchannelAccount']=_0x87c923,_0x849989[_0x398510('0x103e')]=typeof _0x52f941!==_0x398510('0xfad')?_0x52f941:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x849989[_0x398510('0x826')]['OpenchannelAccountId']=_0x849989[_0x398510('0x152f')]['id'],_0x849989[_0x398510('0xfb6')]={'fields':_0x2004b0()},_0x14e877();}function _0x14e877(){const _0x4ca452=_0xc90b11;return _0x2dd3b8[_0x4ca452('0x1132')][_0x4ca452('0x1c53')]()[_0x4ca452('0x1af5')]['then'](function(_0x1c276d){const _0x47e59a=_0x4ca452;_0x849989[_0x47e59a('0x1522')]=_0x1c276d||{'count':0x0,'rows':[]};})[_0x4ca452('0x17e7')](function(){_0x849989['quickFilters']=_0x36f64c();});}function _0x36f64c(){const _0x4f1e1d=_0xc90b11;return[{'name':_0x4f1e1d('0x1786'),'key':'createdAt','type':_0x4f1e1d('0xbd4'),'label':_0x4f1e1d('0x1ee1')},{'name':_0x4f1e1d('0xd08'),'key':_0x4f1e1d('0xf64'),'type':_0x4f1e1d('0x2897'),'label':_0x4f1e1d('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x4f1e1d('0x263')},{'value':0x1,'translate':_0x4f1e1d('0x2874')},{'value':null,'translate':_0x4f1e1d('0x9cf')}]},{'name':'Status','key':_0x4f1e1d('0x2bc'),'type':'select','label':_0x4f1e1d('0x12f2'),'customOptions':[{'value':0x0,'translate':_0x4f1e1d('0x1f4f')},{'value':0x1,'translate':_0x4f1e1d('0x2322')},{'value':null,'translate':_0x4f1e1d('0x9cf')}]},{'name':_0x4f1e1d('0x1874'),'key':'UserId','type':_0x4f1e1d('0x2897'),'label':_0x4f1e1d('0x351'),'customOptions':[{'value':_0x4f1e1d('0x9bb'),'translate':_0x4f1e1d('0x154d')},{'value':undefined,'translate':_0x4f1e1d('0x9cf')}]},{'name':_0x4f1e1d('0xe16'),'key':'tag','type':_0x4f1e1d('0x1227'),'label':_0x4f1e1d('0x1e4d'),'options':_0x849989[_0x4f1e1d('0x1522')][_0x4f1e1d('0x2319')],'placeholder':_0x4f1e1d('0x21aa')}];}function _0x2004b0(){const _0x4442be=_0xc90b11;return[{'name':'Id','column':'id','type':'number'},{'name':'Contact','column':'Contact','type':_0x4442be('0x682'),'options':{'searchFields':[_0x4442be('0x1761'),_0x4442be('0x8d6'),_0x4442be('0x822')],'route':{'model':_0x4442be('0x1d2a'),'action':_0x4442be('0x1c53'),'params':{'fields':_0x4442be('0x2030'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x4442be('0x1ed7')],'excludedOperators':[_0x4442be('0xdaa')]}},{'name':_0x4442be('0x2348'),'column':_0x4442be('0x2179'),'type':_0x4442be('0x132f'),'options':{'excludedOperators':['$eq',_0x4442be('0xdaa')]}},{'name':_0x4442be('0x2854'),'column':_0x4442be('0x139b'),'type':_0x4442be('0x132f'),'options':{'excludedOperators':[_0x4442be('0x1767'),_0x4442be('0xdaa')]}},{'name':'Status','column':_0x4442be('0x2bc'),'type':_0x4442be('0x2897'),'values':[{'id':0x0,'translate':_0x4442be('0x1f4f')},{'id':0x1,'translate':_0x4442be('0x2322')}],'options':{'excludedOperators':[_0x4442be('0xdaa')]}},{'name':'Agent','column':_0x4442be('0x24fd'),'type':'autocomplete','options':{'table':'i','route':{'model':'user','action':_0x4442be('0x1c53'),'params':{'role':_0x4442be('0x684'),'fields':_0x4442be('0x1f7'),'nolimit':!![]}},'searchFields':['fullname',_0x4442be('0x2aa')],'extraOperators':[_0x4442be('0x1ed7')],'excludedOperators':[_0x4442be('0xdaa')]}},{'name':_0x4442be('0x28a6'),'column':_0x4442be('0xe16'),'type':'multiselect','options':{'route':{'model':_0x4442be('0x1132'),'action':_0x4442be('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x4442be('0x2045')]}},{'name':_0x4442be('0x1786'),'column':_0x4442be('0x7c9'),'type':_0x4442be('0xbd4'),'options':{'excludedOperators':[_0x4442be('0xdaa')]}},{'name':_0x4442be('0xf8b'),'column':'unreadMessages','type':'select','values':[{'id':0x1,'translate':_0x4442be('0x2874')},{'id':0x0,'translate':_0x4442be('0x263')}],'options':{'excludedOperators':['$ne']}}];}function _0xb0315c(){const _0x72161a=_0xc90b11;_0x2d0d14['show']({'controller':_0x72161a('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0x72161a('0x1ce1')](_0x43aa61[_0x72161a('0x13aa')]),'clickOutsideToClose':![],'locals':{'fields':_0x849989['advancedSearch'][_0x72161a('0x9c9')],'color':undefined,'storagePath':_0x72161a('0x1b91')},'fullscreen':!![]})['then'](function(_0x4b264f){const _0x57dd05=_0x72161a;_0x849989[_0x57dd05('0x826')]['search']=_0x4b264f===![]?undefined:_0x4b264f;if(_0x849989['query']['search'])_0x49cf03();else _0x4b264f===![]&&_0x49cf03();})['catch'](function(_0x63e170){const _0x1d4c1f=_0x72161a;_0x59bf90['error']({'title':_0x1d4c1f('0x1288'),'msg':_0x63e170[_0x1d4c1f('0x1457')]?JSON[_0x1d4c1f('0x678')](_0x63e170[_0x1d4c1f('0x1457')][_0x1d4c1f('0x1603')]):_0x63e170['toString']()});});}function _0x228359(_0x5ce3e5,_0x205752,_0x537143){const _0x56b263=_0xc90b11;return _0x2dd3b8['openchannelInteraction']['download']({'id':_0x5ce3e5['id'],'exists':!![],'attachments':_0x537143})['$promise'][_0x56b263('0x17e7')](function(_0x5e55d1){const _0xb251a0=_0x56b263,_0x2e67d6=[_0x5e55d1[_0xb251a0('0x3ca')]];let _0x361318=_0xb251a0('0x1219')+_0x5ce3e5['id'];const _0x45fbe5=new Blob(_0x2e67d6,{'type':_0x5e55d1[_0xb251a0('0x412')]});_0x361318=_0xb251a0('0x1f40')+_0x5ce3e5['id']+_0xb251a0('0x71b');const _0x4d6a94=window['document'][_0xb251a0('0x68d')]('a');_0x4d6a94[_0xb251a0('0x224')]('href',URL['createObjectURL'](_0x45fbe5)),_0x4d6a94[_0xb251a0('0x224')](_0xb251a0('0x1244'),_0x361318),document[_0xb251a0('0x13aa')][_0xb251a0('0x128c')](_0x4d6a94),_0x4d6a94['click']();})[_0x56b263('0x16df')](function(_0xf2e25){const _0x391c47=_0x56b263;if(_0xf2e25['data']&&_0xf2e25[_0x391c47('0x1457')][_0x391c47('0x73e')]&&_0xf2e25[_0x391c47('0x1457')][_0x391c47('0x73e')][_0x391c47('0x1f73')])for(let _0x49dad8=0x0;_0x49dad8<_0xf2e25[_0x391c47('0x1457')][_0x391c47('0x73e')][_0x391c47('0x1f73')];_0x49dad8+=0x1){_0x59bf90[_0x391c47('0x1db9')]({'title':_0xf2e25[_0x391c47('0x1457')][_0x391c47('0x73e')][_0x49dad8][_0x391c47('0x412')],'msg':_0xf2e25['data'][_0x391c47('0x73e')][_0x49dad8]['message']});}else _0x59bf90[_0x391c47('0x1db9')]({'title':_0xf2e25['status']?'API:'+_0xf2e25['status']+_0x391c47('0x16e4')+_0xf2e25[_0x391c47('0x1833')]:_0x391c47('0x272c'),'msg':_0xf2e25[_0x391c47('0x1457')]?JSON['stringify'](_0xf2e25['data'][_0x391c47('0x1603')]):_0xf2e25[_0x391c47('0x9b6')]()});});}function _0x3b53af(_0x1d99c5,_0x2ed456){const _0x3a4521=_0xc90b11,_0x41434b=_0x2d0d14[_0x3a4521('0x1121')]()[_0x3a4521('0x24d3')](_0x3a4521('0xd7'))[_0x3a4521('0x211f')](''+(_0x1d99c5[_0x3a4521('0x2aa')]||_0x1d99c5['id']&&_0x49cbdd()['upperFirst'](_0x3a4521('0xb9a'))+_0x1d99c5['id']||_0x3a4521('0x1219'))+_0x3a4521('0x1d23')+'\x20will\x20be\x20deleted.')[_0x3a4521('0x2095')](_0x3a4521('0x1b75'))[_0x3a4521('0x104f')](_0x2ed456)['ok']('OK')[_0x3a4521('0x1d47')](_0x3a4521('0x28a0'));_0x2d0d14['show'](_0x41434b)[_0x3a4521('0x17e7')](function(){_0x378652(_0x1d99c5);},function(){const _0x3444cf=_0x3a4521;console[_0x3444cf('0x1d63')]('CANCEL');});}function _0x50fa3e(_0x5ee1df){const _0x317e58=_0xc90b11;_0x849989[_0x317e58('0x1233')]=_0x5ee1df||{'count':0x0,'rows':[]};for(let _0x28fe86=0x0;_0x28fe86<_0x849989['openchannelAccountInteractions'][_0x317e58('0x2319')][_0x317e58('0x1f73')];_0x28fe86+=0x1){const _0x5ee22c=_0x849989[_0x317e58('0x1233')][_0x317e58('0x2319')][_0x28fe86];_0x48b4f2(_0x5ee22c),_0x5ee22c['Owner'][_0x317e58('0x2aa')]=_0x423701(_0x5ee22c);}}function _0x49cf03(){const _0x283bd3=_0xc90b11;_0x849989[_0x283bd3('0x826')][_0x283bd3('0xf19')]=(_0x849989[_0x283bd3('0x826')][_0x283bd3('0x115a')]-0x1)*_0x849989[_0x283bd3('0x826')]['limit'],_0x849989[_0x283bd3('0x1691')]=_0x2dd3b8[_0x283bd3('0x21fb')][_0x283bd3('0x1c53')](_0x849989[_0x283bd3('0x826')],_0x50fa3e)[_0x283bd3('0x1af5')];}function _0x22fa83(_0x24da21,_0x310f0d){const _0xb3011e=_0xc90b11;_0x2d0d14[_0xb3011e('0x28e2')]({'controller':_0xb3011e('0x13b4'),'controllerAs':'vm','templateUrl':_0x46cd84,'parent':angular[_0xb3011e('0x1ce1')](_0x43aa61['body']),'targetEvent':_0x24da21,'clickOutsideToClose':!![],'onShowing':function(_0x42e05f){const _0x11e926=_0xb3011e;_0x42e05f['vm']['init']({'id':0x1,'channel':_0x11e926('0x1508'),'interaction':_0x310f0d,'spy':!![]},_0x44a7e6[_0x11e926('0x178c')]['vm']['setting']);}});}function _0x378652(_0x50b202){const _0x540aa8=_0xc90b11;_0x2dd3b8['openchannelInteraction']['delete']({'id':_0x50b202['id']})[_0x540aa8('0x1af5')][_0x540aa8('0x17e7')](function(){const _0x36978a=_0x540aa8;_0x49cbdd()[_0x36978a('0x5f3')](_0x849989[_0x36978a('0x1233')][_0x36978a('0x2319')],{'id':_0x50b202['id']}),_0x849989[_0x36978a('0x1233')][_0x36978a('0x335')]-=0x1,!_0x849989['openchannelAccountInteractions'][_0x36978a('0x2319')][_0x36978a('0x1f73')]&&_0x49cf03(),_0x59bf90['success']({'title':_0x36978a('0xdca'),'msg':_0x50b202[_0x36978a('0x2aa')]?_0x50b202['name']+'\x20has\x20been\x20deleted!':''});})[_0x540aa8('0x16df')](function(_0x58d30b){const _0x461fe7=_0x540aa8;if(_0x58d30b[_0x461fe7('0x1457')]&&_0x58d30b[_0x461fe7('0x1457')]['errors']&&_0x58d30b['data']['errors'][_0x461fe7('0x1f73')]){_0x849989[_0x461fe7('0x73e')]=_0x58d30b[_0x461fe7('0x1457')][_0x461fe7('0x73e')]||[{'message':_0x58d30b[_0x461fe7('0x9b6')](),'type':_0x461fe7('0xeb2')}];for(let _0x477a68=0x0;_0x477a68<_0x58d30b[_0x461fe7('0x1457')]['errors'][_0x461fe7('0x1f73')];_0x477a68++){_0x59bf90[_0x461fe7('0x1db9')]({'title':_0x58d30b[_0x461fe7('0x1457')][_0x461fe7('0x73e')][_0x477a68][_0x461fe7('0x412')],'msg':_0x58d30b[_0x461fe7('0x1457')][_0x461fe7('0x73e')][_0x477a68][_0x461fe7('0x1603')]});}}else _0x59bf90[_0x461fe7('0x1db9')]({'title':_0x58d30b[_0x461fe7('0x11c5')]?_0x461fe7('0x14f7')+_0x58d30b[_0x461fe7('0x11c5')]+_0x461fe7('0x16e4')+_0x58d30b[_0x461fe7('0x1833')]:'SYSTEM:GETopenchannelAccount','msg':_0x58d30b[_0x461fe7('0x1457')]?JSON[_0x461fe7('0x678')](_0x58d30b[_0x461fe7('0x1457')][_0x461fe7('0x1603')]):_0x58d30b['message']||_0x58d30b['toString']()});});}function _0x2e679f(){const _0x48a835=_0xc90b11,_0x1ccd8f=angular[_0x48a835('0x14e5')](_0x849989[_0x48a835('0x461')]);return _0x849989[_0x48a835('0x461')]=[],_0x1ccd8f;}function _0x419d54(_0x21858a){const _0x179e7c=_0xc90b11,_0xb79f9b=_0x2d0d14[_0x179e7c('0x1121')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20interactions?')[_0x179e7c('0x211f')](_0x179e7c('0xa53')+_0x849989[_0x179e7c('0x461')][_0x179e7c('0x1f73')]+_0x179e7c('0x145a')+_0x179e7c('0xe9f'))[_0x179e7c('0x2095')](_0x179e7c('0x1d21'))[_0x179e7c('0x104f')](_0x21858a)['ok']('OK')[_0x179e7c('0x1d47')](_0x179e7c('0x28a0'));_0x2d0d14['show'](_0xb79f9b)['then'](function(){const _0x4471b9=_0x179e7c;_0x849989[_0x4471b9('0x461')][_0x4471b9('0xccd')](function(_0x44928c){_0x378652(_0x44928c);}),_0x849989[_0x4471b9('0x461')]=[];});}function _0x48b4f2(_0x3fb2ba){const _0x270947=_0xc90b11;if(_0x3fb2ba[_0x270947('0x12da')])_0x3fb2ba[_0x270947('0x192c')]=_0x3fb2ba['from'];else _0x3fb2ba['Contact']?_0x3fb2ba[_0x270947('0x192c')]=(_0x3fb2ba[_0x270947('0x239b')][_0x270947('0x1761')]||'')+'\x20'+(_0x3fb2ba[_0x270947('0x239b')][_0x270947('0x8d6')]||''):_0x3fb2ba['contactName']=_0x48a8e6['instant'](_0x270947('0x50a'));}function _0x423701(_0x17c9ca){const _0x2154d7=_0xc90b11;if(_0x17c9ca['UserId'])return _0x17c9ca[_0x2154d7('0x5e5')]===_0x849989[_0x2154d7('0x197c')]['id']?_0x48a8e6[_0x2154d7('0x1acc')](_0x2154d7('0x2422')):_0x17c9ca['Owner'][_0x2154d7('0xea6')]+'\x20<'+_0x17c9ca['Owner'][_0x2154d7('0xe3e')]+'>';return _0x48a8e6[_0x2154d7('0x1acc')]('DASHBOARDS.NOT_ASSIGNED');}let _0x301f3b=!![],_0x1c4ac1=0x1;_0x44a7e6['$watch'](_0xc90b11('0x4c3'),function(_0x34e2c5,_0x86d018){const _0x7c639f=_0xc90b11;_0x301f3b?_0xc949df(function(){_0x301f3b=![];}):(!_0x86d018&&(_0x1c4ac1=_0x849989['query'][_0x7c639f('0x115a')]),_0x34e2c5!==_0x86d018&&(_0x849989[_0x7c639f('0x826')][_0x7c639f('0x115a')]=0x1),!_0x34e2c5&&(_0x849989['query'][_0x7c639f('0x115a')]=_0x1c4ac1),_0x49cf03());});}const _0x348cfa=_0x11884d,_0x379bea=_0x4cf2bc['p']+'src/js/modules/main/apps/openchannel/views/openchannelAccounts/edit/openchannelCannedAnswers/dialog.html/dialog.html';_0x246037['$inject']=['$cookies','$scope','$state','$q','$translate',_0x4376d8('0xef1'),'$mdDialog','$document','toasty','api','Auth'];function _0x246037(_0x343d5e,_0xd0032a,_0x122dbe,_0x57dc88,_0xca25c0,_0x138971,_0x11d45c,_0x260e78,_0x48ddac,_0x2f272f,_0x171b48){const _0x456267=_0x4376d8,_0x342af5=this;_0x342af5[_0x456267('0x197c')]=_0x171b48[_0x456267('0x2831')](),_0x342af5[_0x456267('0x152f')]={},_0x342af5[_0x456267('0x25f4')]={'count':0x0,'rows':[]},_0x342af5['selectedOpenchannelAccountOpenchannelCannedAnswers']=[],_0x342af5['crudPermissions'],_0x342af5[_0x456267('0x826')]={'fields':_0x456267('0xcfb'),'limit':0xa,'page':0x1},_0x342af5[_0x456267('0x161d')]=_0x10fc52,_0x342af5[_0x456267('0x1a20')]=_0x226c09,_0x342af5['success']=_0xda496f,_0x342af5[_0x456267('0x1496')]=_0x22ef1c,_0x342af5[_0x456267('0x1f03')]=_0x4028b7,_0x342af5[_0x456267('0x8bf')]=_0x28e324,_0x342af5[_0x456267('0x26b6')]=_0xf8fed0,_0x342af5['deleteSelectedOpenchannelAccountOpenchannelCannedAnswers']=_0x2c9746;function _0x10fc52(_0x25859b,_0x2a46ab){const _0x510b27=_0x456267;_0x342af5[_0x510b27('0x152f')]=_0x25859b,_0x342af5[_0x510b27('0x103e')]=typeof _0x2a46ab!=='undefined'?_0x2a46ab:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x342af5['query'][_0x510b27('0x1969')]=_0x342af5[_0x510b27('0x152f')]['id'],_0x342af5[_0x510b27('0x826')]['id']=_0x342af5[_0x510b27('0x152f')]['id'],_0x22ef1c();}function _0x226c09(_0x1f4c39,_0x320c45){const _0x271f98=_0x456267,_0x10b4a4=_0x11d45c['confirm']()[_0x271f98('0x24d3')](_0x271f98('0xdb1'))['htmlContent'](''+(_0x1f4c39[_0x271f98('0x2aa')]||_0x1f4c39['id']&&_0x49cbdd()['upperFirst'](_0x271f98('0xf7a'))+_0x1f4c39['id']||_0x271f98('0xaf0'))+_0x271f98('0x1d23')+'\x20will\x20be\x20deleted.')[_0x271f98('0x2095')](_0x271f98('0x157'))['targetEvent'](_0x320c45)['ok']('OK')[_0x271f98('0x1d47')](_0x271f98('0x28a0'));_0x11d45c[_0x271f98('0x28e2')](_0x10b4a4)[_0x271f98('0x17e7')](function(){_0xf8fed0(_0x1f4c39);},function(){const _0x1690ab=_0x271f98;console[_0x1690ab('0x1d63')](_0x1690ab('0x28a0'));});}function _0xda496f(_0x4e35bc){const _0x4ee3ac=_0x456267;_0x342af5[_0x4ee3ac('0x25f4')]=_0x4e35bc||{'count':0x0,'rows':[]};}function _0x22ef1c(){const _0xabc682=_0x456267;_0x342af5[_0xabc682('0x826')]['offset']=(_0x342af5[_0xabc682('0x826')][_0xabc682('0x115a')]-0x1)*_0x342af5[_0xabc682('0x826')][_0xabc682('0x193b')],_0x342af5[_0xabc682('0x1691')]=_0x2f272f[_0xabc682('0x152f')][_0xabc682('0x1805')](_0x342af5['query'],_0xda496f)[_0xabc682('0x1af5')];}function _0x4028b7(_0x430f60,_0x5df85d){const _0x3dd825=_0x456267;_0x11d45c['show']({'controller':_0x3dd825('0x1758'),'controllerAs':'vm','templateUrl':_0x379bea,'parent':angular[_0x3dd825('0x1ce1')](_0x260e78[_0x3dd825('0x13aa')]),'targetEvent':_0x430f60,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x342af5[_0x3dd825('0x152f')],'openchannelCannedAnswer':_0x5df85d,'openchannelCannedAnswers':_0x342af5[_0x3dd825('0x25f4')][_0x3dd825('0x2319')],'license':null,'setting':null,'crudPermissions':_0x342af5[_0x3dd825('0x103e')]}});}function _0xf8fed0(_0x470f2b){const _0x33972a=_0x456267;_0x2f272f[_0x33972a('0x2043')][_0x33972a('0x1da6')]({'id':_0x470f2b['id']})[_0x33972a('0x1af5')][_0x33972a('0x17e7')](function(){const _0x5bf3c4=_0x33972a;_0x49cbdd()[_0x5bf3c4('0x5f3')](_0x342af5[_0x5bf3c4('0x25f4')][_0x5bf3c4('0x2319')],{'id':_0x470f2b['id']}),_0x342af5[_0x5bf3c4('0x25f4')][_0x5bf3c4('0x335')]-=0x1,!_0x342af5[_0x5bf3c4('0x25f4')]['rows']['length']&&_0x22ef1c(),_0x48ddac[_0x5bf3c4('0x130d')]({'title':_0x5bf3c4('0x21c0'),'msg':_0x470f2b[_0x5bf3c4('0x2aa')]?_0x470f2b['name']+_0x5bf3c4('0x149f'):''});})[_0x33972a('0x16df')](function(_0x313174){const _0x3f4515=_0x33972a;if(_0x313174[_0x3f4515('0x1457')]&&_0x313174[_0x3f4515('0x1457')][_0x3f4515('0x73e')]&&_0x313174[_0x3f4515('0x1457')]['errors'][_0x3f4515('0x1f73')]){_0x342af5[_0x3f4515('0x73e')]=_0x313174[_0x3f4515('0x1457')][_0x3f4515('0x73e')]||[{'message':_0x313174[_0x3f4515('0x9b6')](),'type':_0x3f4515('0xeb2')}];for(let _0x48d977=0x0;_0x48d977<_0x313174[_0x3f4515('0x1457')][_0x3f4515('0x73e')][_0x3f4515('0x1f73')];_0x48d977++){_0x48ddac[_0x3f4515('0x1db9')]({'title':_0x313174['data'][_0x3f4515('0x73e')][_0x48d977][_0x3f4515('0x412')],'msg':_0x313174[_0x3f4515('0x1457')][_0x3f4515('0x73e')][_0x48d977]['message']});}}else _0x48ddac[_0x3f4515('0x1db9')]({'title':_0x313174[_0x3f4515('0x11c5')]?_0x3f4515('0x14f7')+_0x313174[_0x3f4515('0x11c5')]+_0x3f4515('0x16e4')+_0x313174['statusText']:_0x3f4515('0xeb2'),'msg':_0x313174[_0x3f4515('0x1457')]?JSON['stringify'](_0x313174[_0x3f4515('0x1457')]['message']):_0x313174[_0x3f4515('0x1603')]||_0x313174['toString']()});});}function _0x28e324(){const _0x283e36=_0x456267,_0x3bf83e=angular['copy'](_0x342af5[_0x283e36('0x10c8')]);return _0x342af5[_0x283e36('0x10c8')]=[],_0x3bf83e;}function _0x2c9746(_0x390f0d){const _0x54dd44=_0x456267,_0x280e5d=_0x11d45c[_0x54dd44('0x1121')]()[_0x54dd44('0x24d3')](_0x54dd44('0x26cc'))[_0x54dd44('0x211f')](_0x54dd44('0xa53')+_0x342af5['selectedOpenchannelAccountOpenchannelCannedAnswers'][_0x54dd44('0x1f73')]+_0x54dd44('0x145a')+_0x54dd44('0xe9f'))['ariaLabel'](_0x54dd44('0x1cf6'))['targetEvent'](_0x390f0d)['ok']('OK')[_0x54dd44('0x1d47')](_0x54dd44('0x28a0'));_0x11d45c[_0x54dd44('0x28e2')](_0x280e5d)[_0x54dd44('0x17e7')](function(){const _0x4ecc3a=_0x54dd44;_0x342af5[_0x4ecc3a('0x10c8')][_0x4ecc3a('0xccd')](function(_0x638c83){_0xf8fed0(_0x638c83);}),_0x342af5[_0x4ecc3a('0x10c8')]=[];});}let _0x4bfc44=!![],_0x50e309=0x1;_0xd0032a['$watch']('vm_dc.query.filter',function(_0x404670,_0x43238b){const _0x4c4d70=_0x456267;_0x4bfc44?_0x138971(function(){_0x4bfc44=![];}):(!_0x43238b&&(_0x50e309=_0x342af5[_0x4c4d70('0x826')][_0x4c4d70('0x115a')]),_0x404670!==_0x43238b&&(_0x342af5[_0x4c4d70('0x826')]['page']=0x1),!_0x404670&&(_0x342af5[_0x4c4d70('0x826')][_0x4c4d70('0x115a')]=_0x50e309),_0x22ef1c());});}const _0x5f3238=_0x246037;_0x241e84[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x77b'),_0x4376d8('0xaf0'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x241e84(_0x2b2131,_0x5a88fa,_0x1b2865,_0xf8101a,_0xf4e563,_0x5d0c27,_0x5d9952,_0x4e567b,_0xddc37e,_0x236234,_0x356b36,_0x271142,_0x4dea76,_0x61b6c3){const _0x687633=_0x4376d8,_0x266c7c=this;_0x266c7c[_0x687633('0x197c')]=_0x356b36[_0x687633('0x2831')](),_0x266c7c[_0x687633('0x73e')]=[],_0x266c7c[_0x687633('0x1aeb')]=_0x4dea76,_0x266c7c[_0x687633('0x1d11')]=_0x271142,_0x266c7c[_0x687633('0x103e')]=_0x61b6c3,_0x266c7c[_0x687633('0x6ee')]={},_0x266c7c['passwordPattern']=_0x266c7c[_0x687633('0x1aeb')]&&_0x266c7c[_0x687633('0x1aeb')][_0x687633('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x266c7c[_0x687633('0x24d3')]=_0x687633('0x1d1c'),_0x266c7c[_0x687633('0xaf0')]=angular[_0x687633('0x14e5')](_0xddc37e),_0x266c7c['openchannelCannedAnswers']=_0x4e567b,_0x266c7c[_0x687633('0x24b6')]=![];!_0x266c7c['openchannelCannedAnswer']&&(_0x266c7c[_0x687633('0xaf0')]={},_0x266c7c['title']=_0x687633('0x7a2'),_0x266c7c[_0x687633('0x24b6')]=!![]);_0x5a88fa[_0x687633('0x16fb')]['id']&&(_0x266c7c[_0x687633('0xaf0')][_0x687633('0x1969')]=_0x5a88fa['params']['id']);_0x266c7c[_0x687633('0x13cf')]=_0x4a9ab8,_0x266c7c[_0x687633('0x121d')]=_0x23af19,_0x266c7c[_0x687633('0x254e')]=_0x451078,_0x266c7c[_0x687633('0x1300')]=_0xc9bc0b,_0x266c7c[_0x687633('0x136e')]=_0x11a6a7;function _0x4a9ab8(){const _0x1580f1=_0x687633;_0x266c7c[_0x1580f1('0x73e')]=[],_0x236234[_0x1580f1('0x2043')][_0x1580f1('0x2439')](_0x266c7c['openchannelCannedAnswer'])[_0x1580f1('0x1af5')][_0x1580f1('0x17e7')](function(_0x4dcf1c){const _0x3d561b=_0x1580f1;_0x266c7c[_0x3d561b('0x77b')][_0x3d561b('0x1893')](_0x4dcf1c[_0x3d561b('0x16b2')]()),_0x5d9952['success']({'title':_0x3d561b('0xca9'),'msg':_0x266c7c[_0x3d561b('0xaf0')][_0x3d561b('0x2aa')]?_0x266c7c[_0x3d561b('0xaf0')][_0x3d561b('0x2aa')]+_0x3d561b('0x15a'):''}),_0x11a6a7(_0x4dcf1c);})[_0x1580f1('0x16df')](function(_0x39a5da){const _0x594876=_0x1580f1;if(_0x39a5da[_0x594876('0x1457')]&&_0x39a5da[_0x594876('0x1457')][_0x594876('0x73e')]&&_0x39a5da[_0x594876('0x1457')][_0x594876('0x73e')]['length']){_0x266c7c[_0x594876('0x73e')]=_0x39a5da[_0x594876('0x1457')]['errors']||[{'message':_0x39a5da['toString'](),'type':'api.cannedAnswer.save'}];for(let _0x170650=0x0;_0x170650<_0x39a5da[_0x594876('0x1457')]['errors'][_0x594876('0x1f73')];_0x170650+=0x1){_0x5d9952[_0x594876('0x1db9')]({'title':_0x39a5da['data'][_0x594876('0x73e')][_0x170650][_0x594876('0x412')],'msg':_0x39a5da['data'][_0x594876('0x73e')][_0x170650]['message']});}}else _0x5d9952[_0x594876('0x1db9')]({'title':_0x39a5da[_0x594876('0x11c5')]?'API:'+_0x39a5da['status']+_0x594876('0x16e4')+_0x39a5da[_0x594876('0x1833')]:_0x594876('0x258e'),'msg':_0x39a5da[_0x594876('0x1457')]?JSON[_0x594876('0x678')](_0x39a5da[_0x594876('0x1457')]['message']):_0x39a5da['toString']()});});}function _0x23af19(){const _0x50a271=_0x687633;_0x266c7c[_0x50a271('0x73e')]=[],_0x236234[_0x50a271('0x2043')][_0x50a271('0x27ba')]({'id':_0x266c7c[_0x50a271('0xaf0')]['id']},_0x266c7c[_0x50a271('0xaf0')])[_0x50a271('0x1af5')][_0x50a271('0x17e7')](function(_0x3bb6f0){const _0x428909=_0x50a271,_0x3faea0=_0x49cbdd()['find'](_0x266c7c[_0x428909('0x77b')],{'id':_0x3bb6f0['id']});_0x3faea0&&_0x49cbdd()[_0x428909('0x1ced')](_0x3faea0,_0x49cbdd()[_0x428909('0x230a')](_0x3bb6f0[_0x428909('0x16b2')](),_0x49cbdd()['keys'](_0x3faea0))),_0x5d9952[_0x428909('0x130d')]({'title':_0x428909('0x109f'),'msg':_0x266c7c[_0x428909('0xaf0')][_0x428909('0x2aa')]?_0x266c7c[_0x428909('0xaf0')][_0x428909('0x2aa')]+_0x428909('0x15ca'):''}),_0x11a6a7(_0x3bb6f0);})[_0x50a271('0x16df')](function(_0x100cdd){const _0x36ad9c=_0x50a271;if(_0x100cdd[_0x36ad9c('0x1457')]&&_0x100cdd['data'][_0x36ad9c('0x73e')]&&_0x100cdd[_0x36ad9c('0x1457')][_0x36ad9c('0x73e')][_0x36ad9c('0x1f73')]){_0x266c7c[_0x36ad9c('0x73e')]=_0x100cdd[_0x36ad9c('0x1457')][_0x36ad9c('0x73e')]||[{'message':_0x100cdd['toString'](),'type':_0x36ad9c('0x1d77')}];for(let _0x7d2f6=0x0;_0x7d2f6<_0x100cdd[_0x36ad9c('0x1457')][_0x36ad9c('0x73e')][_0x36ad9c('0x1f73')];_0x7d2f6++){_0x5d9952[_0x36ad9c('0x1db9')]({'title':_0x100cdd[_0x36ad9c('0x1457')][_0x36ad9c('0x73e')][_0x7d2f6][_0x36ad9c('0x412')],'msg':_0x100cdd[_0x36ad9c('0x1457')][_0x36ad9c('0x73e')][_0x7d2f6][_0x36ad9c('0x1603')]});}}else _0x5d9952[_0x36ad9c('0x1db9')]({'title':_0x100cdd[_0x36ad9c('0x11c5')]?_0x36ad9c('0x14f7')+_0x100cdd[_0x36ad9c('0x11c5')]+_0x36ad9c('0x16e4')+_0x100cdd['statusText']:_0x36ad9c('0x1d77'),'msg':_0x100cdd['data']?JSON[_0x36ad9c('0x678')](_0x100cdd[_0x36ad9c('0x1457')][_0x36ad9c('0x1603')]):_0x100cdd[_0x36ad9c('0x9b6')]()});});}function _0x451078(_0x2761ae){const _0x2948d5=_0x687633;_0x266c7c['errors']=[];const _0x1da42c=_0xf8101a[_0x2948d5('0x1121')]()[_0x2948d5('0x24d3')](_0x2948d5('0x530'))[_0x2948d5('0xd5')]('The\x20openchannelCannedAnswer\x20will\x20be\x20deleted.')[_0x2948d5('0x2095')]('Delete\x20OpenchannelCannedAnswer')['ok'](_0x2948d5('0x304'))[_0x2948d5('0x1d47')](_0x2948d5('0x1b70'))[_0x2948d5('0x104f')](_0x2761ae);_0xf8101a['show'](_0x1da42c)[_0x2948d5('0x17e7')](function(){const _0x175637=_0x2948d5;_0x236234[_0x175637('0x2043')]['delete']({'id':_0x266c7c['openchannelCannedAnswer']['id']})[_0x175637('0x1af5')]['then'](function(){const _0x314726=_0x175637;_0x49cbdd()[_0x314726('0x5f3')](_0x266c7c['openchannelCannedAnswers'],{'id':_0x266c7c[_0x314726('0xaf0')]['id']}),_0x5d9952[_0x314726('0x130d')]({'title':'OpenchannelCannedAnswer\x20properly\x20deleted!','msg':(_0x266c7c[_0x314726('0xaf0')][_0x314726('0x2aa')]||_0x314726('0xaf0'))+'\x20has\x20been\x20deleted!'}),_0x11a6a7(_0x266c7c['openchannelCannedAnswer']);})[_0x175637('0x16df')](function(_0x3a6db9){const _0x1a4d08=_0x175637;if(_0x3a6db9['data']&&_0x3a6db9[_0x1a4d08('0x1457')]['errors']&&_0x3a6db9[_0x1a4d08('0x1457')][_0x1a4d08('0x73e')][_0x1a4d08('0x1f73')]){_0x266c7c['errors']=_0x3a6db9[_0x1a4d08('0x1457')]['errors']||[{'message':_0x3a6db9[_0x1a4d08('0x9b6')](),'type':'api.cannedAnswer.delete'}];for(let _0x4ccc88=0x0;_0x4ccc88<_0x3a6db9[_0x1a4d08('0x1457')][_0x1a4d08('0x73e')][_0x1a4d08('0x1f73')];_0x4ccc88++){_0x5d9952[_0x1a4d08('0x1db9')]({'title':_0x3a6db9['data']['errors'][_0x4ccc88][_0x1a4d08('0x412')],'msg':_0x3a6db9[_0x1a4d08('0x1457')]['errors'][_0x4ccc88]['message']});}}else _0x5d9952[_0x1a4d08('0x1db9')]({'title':_0x3a6db9[_0x1a4d08('0x11c5')]?_0x1a4d08('0x14f7')+_0x3a6db9[_0x1a4d08('0x11c5')]+_0x1a4d08('0x16e4')+_0x3a6db9[_0x1a4d08('0x1833')]:'api.cannedAnswer.delete','msg':_0x3a6db9[_0x1a4d08('0x1457')]?JSON['stringify'](_0x3a6db9[_0x1a4d08('0x1457')][_0x1a4d08('0x1603')]):_0x3a6db9[_0x1a4d08('0x1603')]||_0x3a6db9[_0x1a4d08('0x9b6')]()});});},function(){});}function _0xc9bc0b(_0xaf5aa9){return _0xaf5aa9===null?undefined:new Date(_0xaf5aa9);}function _0x11a6a7(_0x89db57){_0xf8101a['hide'](_0x89db57);}}const _0x4fcf58=_0x241e84;_0x1ce132[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),'api',_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x1ce132(_0x411e3d,_0x5a9866,_0xf6332c,_0x364683,_0x1beef6,_0x5ee219,_0x22922e,_0x2a4d02,_0x176ece,_0x1af25a,_0x40e15e){const _0x37fe50=_0x4376d8,_0x43af43=this;_0x43af43[_0x37fe50('0x197c')]=_0x40e15e[_0x37fe50('0x2831')](),_0x43af43[_0x37fe50('0x23fe')]={'count':0x0,'rows':[]},_0x43af43[_0x37fe50('0x440')]=[],_0x43af43[_0x37fe50('0x103e')],_0x43af43[_0x37fe50('0x1e26')]={'first':_0x37fe50('0xa13'),'second':_0x37fe50('0xf67'),'third':_0x37fe50('0x13a2')},_0x43af43['query']={'fields':_0x37fe50('0x2b9'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x43af43['init']=_0x513e40,_0x43af43[_0x37fe50('0x1a20')]=_0x34f0a2,_0x43af43['success']=_0x68abb6,_0x43af43[_0x37fe50('0x26c2')]=_0x53c65c,_0x43af43[_0x37fe50('0x1eff')]=_0x26a030,_0x43af43['deleteDisposition']=_0x36e4f6,_0x43af43[_0x37fe50('0xa8e')]=_0x176c26,_0x43af43[_0x37fe50('0xc81')]=_0x282ace,_0x43af43['deselectDispositions']=_0x8e0a8b,_0x43af43['selectAllDispositions']=_0x1d0d36;function _0x513e40(_0x35d5fc,_0x151dcf){const _0x677d71=_0x37fe50;_0x43af43[_0x677d71('0x152f')]=_0x35d5fc||{},_0x43af43[_0x677d71('0x103e')]=typeof _0x151dcf!==_0x677d71('0xfad')?_0x151dcf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x43af43[_0x677d71('0x826')][_0x677d71('0x1969')]=_0x43af43[_0x677d71('0x152f')]['id'],_0x43af43['query']['id']=_0x43af43[_0x677d71('0x152f')]['id'],_0x53c65c();}function _0x26a030(_0x2629fd,_0x340517){const _0x2bc7c5=_0x37fe50;_0x1beef6[_0x2bc7c5('0x28e2')]({'controller':'CreateOrEditDispositionDialogController','controllerAs':'vm','templateUrl':_0x27dcbe,'parent':angular[_0x2bc7c5('0x1ce1')](_0x5ee219[_0x2bc7c5('0x13aa')]),'targetEvent':_0x2629fd,'clickOutsideToClose':!![],'locals':{'disposition':_0x340517,'dispositions':_0x43af43[_0x2bc7c5('0x23fe')]['rows'],'model':{'id':_0x43af43[_0x2bc7c5('0x152f')]['id'],'field':'OpenchannelAccountId'},'license':null,'setting':null,'crudPermissions':_0x43af43[_0x2bc7c5('0x103e')]}})['then'](function(_0x26e519){if(_0x26e519)_0x53c65c();});}function _0x34f0a2(_0x5c4269,_0x29341d){const _0xda877d=_0x37fe50,_0x3e06a4=_0x49cbdd()['some'](_0x43af43[_0xda877d('0x23fe')]['rows'],[_0xda877d('0x1a27'),_0x5c4269['id']]),_0x48629b=_0x1beef6[_0xda877d('0x1121')]()[_0xda877d('0x24d3')](_0x2a4d02[_0xda877d('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0xda877d('0xd5')](_0x2a4d02[_0xda877d('0x1acc')](_0xda877d('0x2ab')+(_0x3e06a4?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0xda877d('0xd6c')),{'name':_0x5c4269[_0xda877d('0x2aa')]}))[_0xda877d('0x2095')]('Delete\x20disposition')['targetEvent'](_0x29341d)['ok']('OK')['cancel'](_0x2a4d02[_0xda877d('0x1acc')](_0xda877d('0x34f')));_0x1beef6[_0xda877d('0x28e2')](_0x48629b)[_0xda877d('0x17e7')](function(){_0x36e4f6(_0x5c4269);});}function _0x68abb6(_0x58c735){_0x43af43['dispositions']=_0x58c735||{'count':0x0,'rows':[]};}function _0x53c65c(){const _0x5488a6=_0x37fe50;_0x43af43[_0x5488a6('0x826')][_0x5488a6('0xf19')]=(_0x43af43[_0x5488a6('0x826')][_0x5488a6('0x115a')]-0x1)*_0x43af43[_0x5488a6('0x826')][_0x5488a6('0x193b')],_0x43af43['promise']=_0x176ece[_0x5488a6('0x152f')]['getDispositions'](_0x43af43[_0x5488a6('0x826')],_0x68abb6)[_0x5488a6('0x1af5')];}function _0x36e4f6(_0x3b15e2){const _0x378618=_0x37fe50;_0x176ece['disposition'][_0x378618('0x1da6')]({'id':_0x3b15e2['id']})['$promise'][_0x378618('0x17e7')](function(){const _0x3d0998=_0x378618;_0x53c65c(),_0x1af25a['success']({'title':_0x2a4d02[_0x3d0998('0x1acc')](_0x3d0998('0x10dc'))});})['catch'](function(_0x100e73){const _0xa097fb=_0x378618;if(_0x100e73[_0xa097fb('0x1457')]&&_0x100e73[_0xa097fb('0x1457')][_0xa097fb('0x73e')]&&_0x100e73[_0xa097fb('0x1457')]['errors']['length']){_0x43af43[_0xa097fb('0x73e')]=_0x100e73[_0xa097fb('0x1457')][_0xa097fb('0x73e')]||[{'message':_0x100e73['toString'](),'type':_0xa097fb('0x104a')}];for(let _0x581c6e=0x0;_0x581c6e<_0x100e73[_0xa097fb('0x1457')][_0xa097fb('0x73e')]['length'];_0x581c6e++){_0x1af25a[_0xa097fb('0x1db9')]({'title':_0x100e73['data']['errors'][_0x581c6e][_0xa097fb('0x412')],'msg':_0x100e73['data'][_0xa097fb('0x73e')][_0x581c6e][_0xa097fb('0x1603')]});}}else _0x1af25a[_0xa097fb('0x1db9')]({'title':_0x100e73[_0xa097fb('0x11c5')]?_0xa097fb('0x14f7')+_0x100e73[_0xa097fb('0x11c5')]+_0xa097fb('0x16e4')+_0x100e73[_0xa097fb('0x1833')]:_0xa097fb('0x104a'),'msg':_0x100e73[_0xa097fb('0x1457')]?JSON[_0xa097fb('0x678')](_0x100e73['data']['message']):_0x100e73[_0xa097fb('0x1603')]||_0x100e73[_0xa097fb('0x9b6')]()});});}function _0x176c26(){const _0x28dd9d=_0x37fe50,_0x142437=angular[_0x28dd9d('0x14e5')](_0x43af43[_0x28dd9d('0x440')]);return _0x43af43[_0x28dd9d('0x440')]=[],_0x142437;}function _0x282ace(_0x223c79){const _0x109e96=_0x37fe50,_0xedf634=_0x1beef6['confirm']()[_0x109e96('0x24d3')](_0x2a4d02[_0x109e96('0x1acc')](_0x109e96('0x21e')))['content'](_0x2a4d02['instant']('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x43af43['selectedDispositions'][_0x109e96('0x1f73')]}))['ariaLabel']('Delete\x20dispositions')[_0x109e96('0x104f')](_0x223c79)['ok']('OK')[_0x109e96('0x1d47')](_0x2a4d02['instant'](_0x109e96('0x34f')));_0x1beef6[_0x109e96('0x28e2')](_0xedf634)['then'](function(){const _0x3252b7=_0x109e96;_0x43af43[_0x3252b7('0x440')]['forEach'](function(_0x5e2aa3){_0x36e4f6(_0x5e2aa3);}),_0x43af43['selectedDispositions']=[];});}function _0x8e0a8b(){const _0x26a64a=_0x37fe50;_0x43af43[_0x26a64a('0x440')]=[];}function _0x1d0d36(){const _0x204b9f=_0x37fe50;_0x43af43[_0x204b9f('0x440')]=_0x43af43['dispositions'][_0x204b9f('0x2319')];}let _0x31a6f7=!![],_0x37639d=0x1;_0x411e3d['$watch']('vm_dc.query.filter',function(_0x34ed3c,_0xf9f1de){const _0x410e45=_0x37fe50;_0x31a6f7?_0x22922e(function(){_0x31a6f7=![];}):(!_0xf9f1de&&(_0x37639d=_0x43af43['query'][_0x410e45('0x115a')]),_0x34ed3c!==_0xf9f1de&&(_0x43af43[_0x410e45('0x826')][_0x410e45('0x115a')]=0x1),!_0x34ed3c&&(_0x43af43[_0x410e45('0x826')][_0x410e45('0x115a')]=_0x37639d),_0x53c65c());});}const _0x443959=_0x1ce132,_0x4716d0=_0x4cf2bc['p']+_0x4376d8('0x25b3');_0x1a9c81[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth','openchannelAccount',_0x4376d8('0x383')];function _0x1a9c81(_0x5dc6ea,_0x5e6419,_0x4433bf,_0x371d78,_0x1b9a2e,_0x264fcf,_0x475509,_0x4dd677,_0x2a7957,_0x3f9d2e,_0x6ef290,_0x2966d1){const _0x1a309b=_0x4376d8,_0x3e46c5=this;_0x3e46c5[_0x1a309b('0x197c')]=_0x3f9d2e['getCurrentUser'](),_0x3e46c5[_0x1a309b('0x1d11')]=_0x264fcf,_0x3e46c5['setting']=_0x475509,_0x3e46c5[_0x1a309b('0x1572')]=_0x3e46c5[_0x1a309b('0x1aeb')][_0x1a309b('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3e46c5[_0x1a309b('0xaed')]=_0x5e6419['protocol']()+_0x1a309b('0x14')+_0x5e6419[_0x1a309b('0x108')](),_0x3e46c5[_0x1a309b('0x152f')]=_0x6ef290||_0x5dc6ea[_0x1a309b('0x16fb')]['openchannelAccount']||{},_0x3e46c5[_0x1a309b('0x383')]=_0x2966d1&&_0x2966d1['count']==0x1?_0x2966d1[_0x1a309b('0x2319')][0x0]:null,_0x3e46c5[_0x1a309b('0x103e')]=_0x3f9d2e[_0x1a309b('0x17a9')](_0x3e46c5[_0x1a309b('0x383')]?_0x3e46c5[_0x1a309b('0x383')][_0x1a309b('0x103e')]:null),_0x3e46c5[_0x1a309b('0x6ee')]={},_0x3e46c5[_0x1a309b('0xde7')]=_0x5dc6ea[_0x1a309b('0x16fb')][_0x1a309b('0x1523')]||0x0,_0x3e46c5[_0x1a309b('0x2359')]=_0x26a332,_0x3e46c5[_0x1a309b('0x99f')]=_0x2a7957[_0x1a309b('0x1178')],_0x3e46c5[_0x1a309b('0x1c88')]=_0x4e1de5,_0x3e46c5[_0x1a309b('0x2232')]=_0xe8a3a4,_0x3f9d2e[_0x1a309b('0x1ba2')](_0x1a309b('0x20bf'))?_0x4dd677['cmList'][_0x1a309b('0x1c53')]({'fields':_0x1a309b('0x12d2'),'sort':_0x1a309b('0x2aa')})['$promise'][_0x1a309b('0x17e7')](function(_0xc892be){const _0xcde08f=_0x1a309b;_0x3e46c5['lists']=_0xc892be[_0xcde08f('0x2319')]||[];})[_0x1a309b('0x16df')](function(_0x578cb9){const _0x192d9e=_0x1a309b;_0x2a7957[_0x192d9e('0x1db9')]({'title':_0x578cb9['status']?'API:'+_0x578cb9[_0x192d9e('0x11c5')]+_0x192d9e('0x16e4')+_0x578cb9['statusText']:_0x192d9e('0x2410'),'msg':_0x578cb9[_0x192d9e('0x1457')]?JSON[_0x192d9e('0x678')](_0x578cb9[_0x192d9e('0x1457')]):_0x578cb9[_0x192d9e('0x9b6')]()});}):_0x4dd677[_0x1a309b('0x25b')][_0x1a309b('0x1c53')]({'fields':_0x1a309b('0x12d2'),'sort':_0x1a309b('0x2aa')})[_0x1a309b('0x1af5')][_0x1a309b('0x17e7')](function(_0x473901){const _0x272118=_0x1a309b;_0x3e46c5[_0x272118('0x2504')]=_0x473901[_0x272118('0x2319')]||[];})[_0x1a309b('0x17e7')](function(){const _0x294e8b=_0x1a309b;return _0x4dd677[_0x294e8b('0x383')][_0x294e8b('0x1c53')]({'userProfileId':_0x3e46c5[_0x294e8b('0x197c')][_0x294e8b('0x1e76')],'sectionId':0x12d})[_0x294e8b('0x1af5')];})[_0x1a309b('0x17e7')](function(_0x3b8873){const _0x240495=_0x1a309b,_0x106f51=_0x3b8873&&_0x3b8873[_0x240495('0x2319')]?_0x3b8873[_0x240495('0x2319')][0x0]:null;if(!_0x106f51){const _0x274317=[];let _0x41799d=null;_0x3e46c5[_0x240495('0x152f')]&&(_0x41799d=_0x49cbdd()[_0x240495('0xe8e')](_0x3e46c5['lists'],{'id':Number(_0x3e46c5[_0x240495('0x152f')][_0x240495('0x7f8')])}));for(let _0x1bbf3b=0x0;_0x1bbf3b<_0x3e46c5['lists']['length'];_0x1bbf3b++){_0x41799d&&_0x3e46c5['lists'][_0x1bbf3b]['id']===_0x41799d['id']&&(_0x3e46c5[_0x240495('0x2504')][_0x1bbf3b][_0x240495('0xe5c')]=![],_0x274317[_0x240495('0x269f')](_0x3e46c5['lists'][_0x1bbf3b]));}_0x3e46c5[_0x240495('0x2504')]=_0x274317;}else{if(!_0x106f51[_0x240495('0x9e3')])return _0x4dd677[_0x240495('0x78d')][_0x240495('0x1c53')]({'sectionId':_0x106f51['id']})[_0x240495('0x1af5')]['then'](function(_0x3ee544){const _0x277a57=_0x240495,_0x224b0f=_0x49cbdd()[_0x277a57('0x787')](_0x3ee544['rows'],function(_0x32dd6c){const _0x1b4f8b=_0x277a57;return _0x49cbdd()[_0x1b4f8b('0xe8e')](_0x3e46c5[_0x1b4f8b('0x2504')],{'id':_0x32dd6c[_0x1b4f8b('0x5db')]});});let _0x5b4a6e=null;_0x3e46c5[_0x277a57('0x152f')]&&(_0x5b4a6e=_0x49cbdd()['find'](_0x3e46c5[_0x277a57('0x2504')],{'id':Number(_0x3e46c5[_0x277a57('0x152f')][_0x277a57('0x7f8')])}));if(_0x5b4a6e&&!_0x49cbdd()[_0x277a57('0x26f8')](_0x224b0f,['id',_0x5b4a6e['id']])){const _0x3e4630=_0x49cbdd()[_0x277a57('0xe8e')](_0x3e46c5[_0x277a57('0x2504')],{'id':_0x5b4a6e['id']});_0x3e4630['canSelect']=![],_0x224b0f[_0x277a57('0x269f')](_0x3e4630);}_0x3e46c5[_0x277a57('0x2504')]=_0x224b0f;});}})[_0x1a309b('0x16df')](function(_0x115072){const _0x1ca557=_0x1a309b;_0x2a7957['error']({'title':_0x115072[_0x1ca557('0x11c5')]?_0x1ca557('0x14f7')+_0x115072[_0x1ca557('0x11c5')]+_0x1ca557('0x16e4')+_0x115072[_0x1ca557('0x1833')]:_0x1ca557('0x1630'),'msg':_0x115072['data']?JSON[_0x1ca557('0x678')](_0x115072[_0x1ca557('0x1457')]):_0x115072[_0x1ca557('0x9b6')]()});}),_0x4dd677['cmContact'][_0x1a309b('0x2234')]({'id':_0x3e46c5[_0x1a309b('0x152f')][_0x1a309b('0x7f8')]})['$promise'][_0x1a309b('0x17e7')](function(_0x54287d){const _0x7c879f=_0x1a309b;_0x3e46c5[_0x7c879f('0x9c9')]=[],_0x54287d=_0x49cbdd()[_0x7c879f('0xa72')](_0x54287d[_0x7c879f('0x16b2')]());const _0x41c90e=['id','createdAt',_0x7c879f('0xb8a'),_0x7c879f('0x1480'),'scheduledat',_0x7c879f('0x7f8'),_0x7c879f('0x452')];for(let _0x88a67e=0x0;_0x88a67e<_0x54287d[_0x7c879f('0x1f73')];_0x88a67e++){!_0x49cbdd()[_0x7c879f('0x24b0')](_0x41c90e,_0x54287d[_0x88a67e]['columnName'])&&_0x3e46c5[_0x7c879f('0x9c9')][_0x7c879f('0x269f')](_0x54287d[_0x88a67e]);}})[_0x1a309b('0x16df')](function(_0x183ef4){const _0x266f57=_0x1a309b;_0x2a7957[_0x266f57('0x1db9')]({'title':_0x183ef4[_0x266f57('0x11c5')]?_0x266f57('0x14f7')+_0x183ef4[_0x266f57('0x11c5')]+'\x20-\x20'+_0x183ef4[_0x266f57('0x1833')]:_0x266f57('0x234a'),'msg':_0x183ef4[_0x266f57('0x1457')]?JSON[_0x266f57('0x678')](_0x183ef4[_0x266f57('0x1457')]):_0x183ef4['toString']()});}),_0x3f9d2e['hasRole'](_0x1a309b('0x20bf'))?_0x4dd677[_0x1a309b('0x267a')]['get']({'fields':'name,id','sort':'name','nolimit':_0x1a309b('0xe34')})[_0x1a309b('0x1af5')]['then'](function(_0x4e7b0a){const _0x4ca112=_0x1a309b;_0x3e46c5[_0x4ca112('0x1492')]=_0x4e7b0a[_0x4ca112('0x2319')]||[];})[_0x1a309b('0x16df')](function(_0x128f1f){const _0x50f249=_0x1a309b;_0x2a7957[_0x50f249('0x1db9')]({'title':_0x128f1f[_0x50f249('0x11c5')]?_0x50f249('0x14f7')+_0x128f1f['status']+_0x50f249('0x16e4')+_0x128f1f[_0x50f249('0x1833')]:'SYSTEM:GET_PAUSES','msg':_0x128f1f[_0x50f249('0x1457')]?JSON['stringify'](_0x128f1f[_0x50f249('0x1457')]):_0x128f1f[_0x50f249('0x9b6')]()});}):_0x4dd677[_0x1a309b('0x267a')]['get']({'fields':_0x1a309b('0x90c'),'sort':_0x1a309b('0x2aa'),'nolimit':_0x1a309b('0xe34')})['$promise'][_0x1a309b('0x17e7')](function(_0x18a2a9){const _0x4ea344=_0x1a309b;_0x3e46c5[_0x4ea344('0x1492')]=_0x18a2a9[_0x4ea344('0x2319')]||[];})[_0x1a309b('0x17e7')](function(){const _0x39d967=_0x1a309b;return _0x4dd677[_0x39d967('0x383')][_0x39d967('0x1c53')]({'userProfileId':_0x3e46c5[_0x39d967('0x197c')][_0x39d967('0x1e76')],'sectionId':0x3ed})['$promise'];})[_0x1a309b('0x17e7')](function(_0x53077d){const _0x3d2f79=_0x1a309b,_0x5ee924=_0x53077d&&_0x53077d[_0x3d2f79('0x2319')]?_0x53077d[_0x3d2f79('0x2319')][0x0]:null;if(!_0x5ee924)_0x3e46c5[_0x3d2f79('0x1492')]=[];else{if(!_0x5ee924[_0x3d2f79('0x9e3')])return _0x4dd677['userProfileResource'][_0x3d2f79('0x1c53')]({'sectionId':_0x5ee924['id']})[_0x3d2f79('0x1af5')][_0x3d2f79('0x17e7')](function(_0x2d9e3f){const _0x1ccd70=_0x3d2f79,_0x5b170f=_0x49cbdd()[_0x1ccd70('0x787')](_0x2d9e3f[_0x1ccd70('0x2319')],function(_0x2319a7){const _0x292473=_0x1ccd70;return _0x49cbdd()[_0x292473('0xe8e')](_0x3e46c5[_0x292473('0x1492')],{'id':_0x2319a7[_0x292473('0x5db')]});});_0x3e46c5[_0x1ccd70('0x1492')][_0x1ccd70('0xccd')](function(_0xc97337){const _0x2a9e8b=_0x1ccd70;!_0x49cbdd()[_0x2a9e8b('0x26f8')](_0x5b170f,['id',_0xc97337['id']])&&(_0xc97337[_0x2a9e8b('0xe5c')]=![]),_0x5b170f['push'](_0xc97337);}),_0x3e46c5['pauses']=_0x5b170f;});}})[_0x1a309b('0x16df')](function(_0x168834){const _0x5448c1=_0x1a309b;_0x2a7957[_0x5448c1('0x1db9')]({'title':_0x168834[_0x5448c1('0x11c5')]?_0x5448c1('0x14f7')+_0x168834['status']+_0x5448c1('0x16e4')+_0x168834[_0x5448c1('0x1833')]:_0x5448c1('0x1fae'),'msg':_0x168834[_0x5448c1('0x1457')]?JSON['stringify'](_0x168834[_0x5448c1('0x1457')]):_0x168834[_0x5448c1('0x9b6')]()});});function _0x26a332(_0xa20fcb,_0x11bf47){const _0x40299a=_0x1a309b;_0x4433bf[_0x40299a('0x28e2')]({'controller':'OpenchannelAccountagentaddController','controllerAs':'vm','templateUrl':_0x4716d0,'parent':angular[_0x40299a('0x1ce1')](_0x371d78[_0x40299a('0x13aa')]),'targetEvent':_0x11bf47,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0xa20fcb,'openchannelAccounts':_0x3e46c5[_0x40299a('0x1408')]?_0x3e46c5[_0x40299a('0x1408')][_0x40299a('0x2319')]:[],'crudPermissions':_0x3e46c5[_0x40299a('0x103e')],'realtime':![]}});}function _0x4e1de5(){const _0x409db8=_0x1a309b;_0x5dc6ea['go'](_0x409db8('0x126b'),{},{'reload':_0x409db8('0x126b')});}function _0xe8a3a4(){const _0x1ed423=_0x1a309b;_0x4dd677[_0x1ed423('0x152f')][_0x1ed423('0x27ba')]({'id':_0x3e46c5[_0x1ed423('0x152f')]['id']},_0x3e46c5['openchannelAccount'])[_0x1ed423('0x1af5')]['then'](function(){const _0x156140=_0x1ed423;_0x2a7957['success']({'title':_0x156140('0x20fb'),'msg':_0x3e46c5[_0x156140('0x152f')][_0x156140('0x2aa')]?_0x3e46c5[_0x156140('0x152f')][_0x156140('0x2aa')]+_0x156140('0x12b0'):''});})[_0x1ed423('0x16df')](function(_0x1a7ebf){const _0x5c05c0=_0x1ed423;_0x2a7957['error']({'title':_0x1a7ebf[_0x5c05c0('0x11c5')]?'API:'+_0x1a7ebf[_0x5c05c0('0x11c5')]+_0x5c05c0('0x16e4')+_0x1a7ebf[_0x5c05c0('0x1833')]:_0x5c05c0('0xeb2'),'msg':_0x1a7ebf[_0x5c05c0('0x1457')]?JSON[_0x5c05c0('0x678')](_0x1a7ebf[_0x5c05c0('0x1457')]):_0x1a7ebf[_0x5c05c0('0x9b6')]()});});}}const _0x1ab225=_0x1a9c81,_0x143ab6=_0x4cf2bc['p']+_0x4376d8('0x167c');_0x30564b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x1408'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x30564b(_0x4b2880,_0x41e59a,_0x18fdef,_0x36131d,_0x3957d5,_0x11d7fe,_0x192dd6,_0xacdebc,_0x35573b,_0x211d9b,_0x6a98e3,_0x58321e,_0x580b9c,_0x424abc,_0x3bb113,_0x189302,_0x5a09ce){const _0x5b95a8=_0x4376d8,_0x2c4d98=this;_0x2c4d98[_0x5b95a8('0x1d11')]=_0x189302,_0x2c4d98[_0x5b95a8('0x1aeb')]=_0x5a09ce,_0x2c4d98[_0x5b95a8('0x197c')]=_0x3bb113['getCurrentUser'](),_0x2c4d98[_0x5b95a8('0x1408')]=_0x35573b||{'count':0x0,'rows':[]},_0x2c4d98[_0x5b95a8('0xdeb')]=_0x211d9b,_0x2c4d98[_0x5b95a8('0x383')]=_0x6a98e3&&_0x6a98e3[_0x5b95a8('0x335')]==0x1?_0x6a98e3[_0x5b95a8('0x2319')][0x0]:null,_0x2c4d98[_0x5b95a8('0x103e')]=_0x3bb113[_0x5b95a8('0x17a9')](_0x2c4d98['userProfileSection']?_0x2c4d98[_0x5b95a8('0x383')][_0x5b95a8('0x103e')]:null),_0x2c4d98[_0x5b95a8('0x23c3')]=_0x5b95a8('0x1408'),_0x2c4d98[_0x5b95a8('0x26a1')]='',_0x2c4d98['listOrderAsc']=null,_0x2c4d98[_0x5b95a8('0x3ac')]=[],_0x2c4d98['query']={'fields':_0x5b95a8('0x756'),'sort':_0x5b95a8('0x1ac6'),'limit':0xa,'page':0x1},_0x2c4d98[_0x5b95a8('0xcd4')]=_0x1fe924,_0x2c4d98[_0x5b95a8('0x1634')]=_0xfb6f76,_0x2c4d98[_0x5b95a8('0x2359')]=_0x3e1a34,_0x2c4d98[_0x5b95a8('0xbf4')]=_0xbcab9f,_0x2c4d98[_0x5b95a8('0x130d')]=_0x2d1109,_0x2c4d98[_0x5b95a8('0x2532')]=_0x9b78c7,_0x2c4d98[_0x5b95a8('0x1f6c')]=_0x46b973,_0x2c4d98[_0x5b95a8('0x2646')]=_0x280a4c,_0x2c4d98[_0x5b95a8('0x3c1')]=_0x526573,_0x2c4d98[_0x5b95a8('0x275a')]=_0x5d4f22,_0x2c4d98['deselectOpenchannelAccounts']=_0x27d06a,_0x2c4d98[_0x5b95a8('0x2243')]=_0x368e63,_0x3bb113[_0x5b95a8('0x1ba2')](_0x5b95a8('0x20bf'))?_0x58321e['cmList']['get']({'fields':'id,name','sort':'name'})[_0x5b95a8('0x1af5')][_0x5b95a8('0x17e7')](function(_0x5dacab){const _0x2993e2=_0x5b95a8;_0x2c4d98['lists']=_0x5dacab[_0x2993e2('0x2319')]||[];})[_0x5b95a8('0x16df')](function(_0x36a3ce){const _0xbf74b3=_0x5b95a8;_0x424abc[_0xbf74b3('0x1db9')]({'title':_0x36a3ce[_0xbf74b3('0x11c5')]?_0xbf74b3('0x14f7')+_0x36a3ce[_0xbf74b3('0x11c5')]+_0xbf74b3('0x16e4')+_0x36a3ce['statusText']:'SYSTEM:GET_LISTS','msg':_0x36a3ce[_0xbf74b3('0x1457')]?JSON['stringify'](_0x36a3ce[_0xbf74b3('0x1457')]):_0x36a3ce[_0xbf74b3('0x9b6')]()});}):_0x58321e[_0x5b95a8('0x25b')][_0x5b95a8('0x1c53')]({'fields':_0x5b95a8('0x12d2'),'sort':_0x5b95a8('0x2aa')})[_0x5b95a8('0x1af5')][_0x5b95a8('0x17e7')](function(_0x5a1b53){const _0x26be06=_0x5b95a8;_0x2c4d98['lists']=_0x5a1b53[_0x26be06('0x2319')]||[];})['then'](function(){const _0x36ac52=_0x5b95a8;return _0x58321e['userProfileSection'][_0x36ac52('0x1c53')]({'userProfileId':_0x2c4d98[_0x36ac52('0x197c')]['userProfileId'],'sectionId':0x12d})['$promise'];})[_0x5b95a8('0x17e7')](function(_0x11c13c){const _0x92d6a3=_0x5b95a8,_0x30ebc8=_0x11c13c&&_0x11c13c[_0x92d6a3('0x2319')]?_0x11c13c[_0x92d6a3('0x2319')][0x0]:null;if(!_0x30ebc8){const _0x2d32bf=[];let _0x428163=null;_0x2c4d98['openchannelAccount']&&(_0x428163=_0x49cbdd()[_0x92d6a3('0xe8e')](_0x2c4d98[_0x92d6a3('0x2504')],{'id':Number(_0x2c4d98[_0x92d6a3('0x152f')][_0x92d6a3('0x7f8')])}));for(let _0x3de0da=0x0;_0x3de0da<_0x2c4d98[_0x92d6a3('0x2504')]['length'];_0x3de0da++){_0x428163&&_0x2c4d98[_0x92d6a3('0x2504')][_0x3de0da]['id']===_0x428163['id']&&(_0x2c4d98['lists'][_0x3de0da][_0x92d6a3('0xe5c')]=![],_0x2d32bf[_0x92d6a3('0x269f')](_0x2c4d98['lists'][_0x3de0da]));}_0x2c4d98[_0x92d6a3('0x2504')]=_0x2d32bf;}else{if(!_0x30ebc8['autoAssociation'])return _0x58321e[_0x92d6a3('0x78d')]['get']({'sectionId':_0x30ebc8['id']})['$promise']['then'](function(_0x1703fc){const _0xb2132a=_0x92d6a3,_0x494524=_0x49cbdd()[_0xb2132a('0x787')](_0x1703fc[_0xb2132a('0x2319')],function(_0xaabb2){const _0xa92939=_0xb2132a;return _0x49cbdd()['find'](_0x2c4d98['lists'],{'id':_0xaabb2[_0xa92939('0x5db')]});});let _0x137f3d=null;_0x2c4d98[_0xb2132a('0x152f')]&&(_0x137f3d=_0x49cbdd()['find'](_0x2c4d98[_0xb2132a('0x2504')],{'id':Number(_0x2c4d98['openchannelAccount'][_0xb2132a('0x7f8')])}));if(_0x137f3d&&!_0x49cbdd()[_0xb2132a('0x26f8')](_0x494524,['id',_0x137f3d['id']])){const _0x20704c=_0x49cbdd()['find'](_0x2c4d98[_0xb2132a('0x2504')],{'id':_0x137f3d['id']});_0x20704c[_0xb2132a('0xe5c')]=![],_0x494524[_0xb2132a('0x269f')](_0x20704c);}_0x2c4d98['lists']=_0x494524;});}})[_0x5b95a8('0x16df')](function(_0x1f5006){const _0x19a291=_0x5b95a8;_0x424abc[_0x19a291('0x1db9')]({'title':_0x1f5006[_0x19a291('0x11c5')]?_0x19a291('0x14f7')+_0x1f5006[_0x19a291('0x11c5')]+_0x19a291('0x16e4')+_0x1f5006[_0x19a291('0x1833')]:'SYSTEM:GETlists','msg':_0x1f5006[_0x19a291('0x1457')]?JSON['stringify'](_0x1f5006[_0x19a291('0x1457')]):_0x1f5006[_0x19a291('0x9b6')]()});});function _0x1fe924(_0x52d1c4){const _0x155efe=_0x5b95a8;_0x18fdef['go']('app.openchannel.openchannelAccounts.edit',{'id':_0x52d1c4['id'],'openchannelAccount':_0x52d1c4,'crudPermissions':_0x2c4d98[_0x155efe('0x103e')]});}function _0xfb6f76(_0xd644b7){const _0x569621=_0x5b95a8;_0x18fdef['go'](_0x569621('0x23dd'),{'id':_0xd644b7['id'],'tab':0x5});}function _0x3e1a34(_0x5240b4,_0xe8f693){const _0x2bcffe=_0x5b95a8;_0x3957d5['show']({'controller':_0x2bcffe('0xb13'),'controllerAs':'vm','templateUrl':_0x4716d0,'parent':angular[_0x2bcffe('0x1ce1')](_0x11d7fe[_0x2bcffe('0x13aa')]),'targetEvent':_0xe8f693,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x5240b4,'openchannelAccounts':_0x2c4d98['openchannelAccounts']?_0x2c4d98[_0x2bcffe('0x1408')][_0x2bcffe('0x2319')]:[],'crudPermissions':_0x2c4d98['crudPermissions'],'realtime':![]}});}function _0xbcab9f(_0x2e3e72,_0x1af27f){const _0x5a4156=_0x5b95a8,_0x4892fa=_0x3957d5['confirm']()[_0x5a4156('0x24d3')](_0x5a4156('0x5e1')+_0x49cbdd()[_0x5a4156('0x1c98')](_0x5a4156('0x152f'))+'?')[_0x5a4156('0x211f')](_0x5a4156('0xa53')+(_0x2e3e72[_0x5a4156('0x2aa')]||_0x5a4156('0x152f'))+_0x5a4156('0x1d23')+_0x5a4156('0xe9f'))['ariaLabel'](_0x5a4156('0x20e2'))[_0x5a4156('0x104f')](_0x1af27f)['ok']('OK')[_0x5a4156('0x1d47')](_0x5a4156('0x28a0'));_0x3957d5[_0x5a4156('0x28e2')](_0x4892fa)['then'](function(){_0x280a4c(_0x2e3e72);},function(){const _0x540ed2=_0x5a4156;console[_0x540ed2('0x1d63')](_0x540ed2('0x28a0'));});}let _0x1530e5=!![],_0x2feabc=0x1;_0x4b2880[_0x5b95a8('0x620')]('vm.query.filter',function(_0x7ae4e3,_0x19c7c6){const _0x789752=_0x5b95a8;_0x1530e5?_0x192dd6(function(){_0x1530e5=![];}):(!_0x19c7c6&&(_0x2feabc=_0x2c4d98[_0x789752('0x826')][_0x789752('0x115a')]),_0x7ae4e3!==_0x19c7c6&&(_0x2c4d98[_0x789752('0x826')]['page']=0x1),!_0x7ae4e3&&(_0x2c4d98[_0x789752('0x826')]['page']=_0x2feabc),_0x2c4d98[_0x789752('0x2532')]());});function _0x2d1109(_0x5923b0){const _0x2677d3=_0x5b95a8;_0x2c4d98[_0x2677d3('0x1408')]=_0x5923b0||{'count':0x0,'rows':[]};}function _0x9b78c7(){const _0x5e5dee=_0x5b95a8;_0x2c4d98[_0x5e5dee('0x826')]['offset']=(_0x2c4d98[_0x5e5dee('0x826')][_0x5e5dee('0x115a')]-0x1)*_0x2c4d98[_0x5e5dee('0x826')][_0x5e5dee('0x193b')],_0x3bb113[_0x5e5dee('0x1ba2')](_0x5e5dee('0x20bf'))?_0x2c4d98[_0x5e5dee('0x1691')]=_0x58321e[_0x5e5dee('0x152f')]['get'](_0x2c4d98[_0x5e5dee('0x826')],_0x2d1109)[_0x5e5dee('0x1af5')]:(_0x2c4d98['query']['id']=_0x2c4d98[_0x5e5dee('0xdeb')]['id'],_0x2c4d98[_0x5e5dee('0x826')]['section']=_0x5e5dee('0x28cf'),_0x2c4d98[_0x5e5dee('0x1691')]=_0x58321e['userProfile'][_0x5e5dee('0x2447')](_0x2c4d98[_0x5e5dee('0x826')],_0x2d1109)[_0x5e5dee('0x1af5')]);}function _0x46b973(_0x24947b,_0x11df91){const _0x482b4b=_0x5b95a8;_0x3957d5[_0x482b4b('0x28e2')]({'controller':_0x482b4b('0x159f'),'controllerAs':'vm','templateUrl':_0x143ab6,'parent':angular[_0x482b4b('0x1ce1')](_0x11d7fe[_0x482b4b('0x13aa')]),'targetEvent':_0x24947b,'clickOutsideToClose':!![],'locals':{'openchannelAccount':_0x11df91,'openchannelAccounts':_0x2c4d98[_0x482b4b('0x1408')]['rows'],'license':_0x2c4d98[_0x482b4b('0x1d11')],'setting':_0x2c4d98[_0x482b4b('0x1aeb')],'crudPermissions':_0x2c4d98[_0x482b4b('0x103e')]}});}function _0x280a4c(_0x19cdde){const _0x4b57a6=_0x5b95a8;_0x58321e[_0x4b57a6('0x152f')][_0x4b57a6('0x1da6')]({'id':_0x19cdde['id']})[_0x4b57a6('0x1af5')][_0x4b57a6('0x17e7')](function(){const _0x42d1ac=_0x4b57a6;_0x49cbdd()[_0x42d1ac('0x5f3')](_0x2c4d98['openchannelAccounts'][_0x42d1ac('0x2319')],{'id':_0x19cdde['id']}),_0x2c4d98[_0x42d1ac('0x1408')][_0x42d1ac('0x335')]-=0x1,!_0x2c4d98['openchannelAccounts'][_0x42d1ac('0x2319')][_0x42d1ac('0x1f73')]&&_0x2c4d98[_0x42d1ac('0x2532')](),_0x424abc['success']({'title':_0x49cbdd()[_0x42d1ac('0x1c98')](_0x42d1ac('0x244b'))+_0x42d1ac('0x2673'),'msg':_0x19cdde[_0x42d1ac('0x2aa')]?_0x19cdde['name']+_0x42d1ac('0x149f'):''});})[_0x4b57a6('0x16df')](function(_0x240fd4){const _0x1ce255=_0x4b57a6;if(_0x240fd4['data']&&_0x240fd4[_0x1ce255('0x1457')]['errors']&&_0x240fd4['data'][_0x1ce255('0x73e')][_0x1ce255('0x1f73')]){_0x2c4d98[_0x1ce255('0x73e')]=_0x240fd4[_0x1ce255('0x1457')]['errors']||[{'message':_0x240fd4['toString'](),'type':_0x1ce255('0x515')}];for(let _0xb89497=0x0;_0xb89497<_0x240fd4[_0x1ce255('0x1457')][_0x1ce255('0x73e')]['length'];_0xb89497++){_0x424abc[_0x1ce255('0x1db9')]({'title':_0x240fd4['data'][_0x1ce255('0x73e')][_0xb89497]['type'],'msg':_0x240fd4[_0x1ce255('0x1457')][_0x1ce255('0x73e')][_0xb89497]['message']});}}else _0x424abc[_0x1ce255('0x1db9')]({'title':_0x240fd4['status']?'API:'+_0x240fd4[_0x1ce255('0x11c5')]+_0x1ce255('0x16e4')+_0x240fd4[_0x1ce255('0x1833')]:_0x1ce255('0x515'),'msg':_0x240fd4[_0x1ce255('0x1457')]?JSON['stringify'](_0x240fd4[_0x1ce255('0x1457')][_0x1ce255('0x1603')]):_0x240fd4[_0x1ce255('0x1603')]||_0x240fd4[_0x1ce255('0x9b6')]()});});}function _0x526573(){const _0x24e3c8=_0x5b95a8,_0x4cd2e2=angular[_0x24e3c8('0x14e5')](_0x2c4d98[_0x24e3c8('0x3ac')]);return _0x2c4d98[_0x24e3c8('0x3ac')]=[],_0x4cd2e2;}function _0x5d4f22(_0x3b1c22){const _0x1201b7=_0x5b95a8,_0x138311=_0x3957d5[_0x1201b7('0x1121')]()[_0x1201b7('0x24d3')](_0x1201b7('0x1d3e'))[_0x1201b7('0x211f')](_0x1201b7('0xa53')+_0x2c4d98['selectedOpenchannelAccounts']['length']+_0x1201b7('0x145a')+_0x1201b7('0xe9f'))[_0x1201b7('0x2095')](_0x1201b7('0x104e'))[_0x1201b7('0x104f')](_0x3b1c22)['ok']('OK')['cancel'](_0x1201b7('0x28a0'));_0x3957d5[_0x1201b7('0x28e2')](_0x138311)[_0x1201b7('0x17e7')](function(){const _0x2fe279=_0x1201b7;_0x2c4d98['selectedOpenchannelAccounts'][_0x2fe279('0xccd')](function(_0x3cdf79){_0x280a4c(_0x3cdf79);}),_0x2c4d98[_0x2fe279('0x3ac')]=[];});}function _0x27d06a(){const _0x1fe077=_0x5b95a8;_0x2c4d98[_0x1fe077('0x3ac')]=[];}function _0x368e63(){const _0x370893=_0x5b95a8;_0x2c4d98['selectedOpenchannelAccounts']=_0x2c4d98[_0x370893('0x1408')][_0x370893('0x2319')];}}const _0x173ec3=_0x30564b;_0x468933[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state','$location','$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x1cca'),'openchannelQueue',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x468933(_0x313ba9,_0x4c3da7,_0x2bc53e,_0x39e441,_0x4ac65f,_0x3eee9a,_0x580675,_0x9cb54e,_0x10d530,_0x5b82a2,_0x2a8c7a,_0x23ada7,_0x532f40,_0x35add5){const _0x1bfe5d=_0x4376d8,_0x430f1c=this;_0x430f1c[_0x1bfe5d('0x197c')]=_0x2a8c7a['getCurrentUser'](),_0x430f1c[_0x1bfe5d('0x73e')]=[],_0x430f1c[_0x1bfe5d('0x1aeb')]=_0x532f40,_0x430f1c[_0x1bfe5d('0x1d11')]=_0x23ada7,_0x430f1c[_0x1bfe5d('0x103e')]=_0x35add5,_0x430f1c[_0x1bfe5d('0x6ee')]={},_0x430f1c[_0x1bfe5d('0x1572')]=_0x430f1c[_0x1bfe5d('0x1aeb')]&&_0x430f1c[_0x1bfe5d('0x1aeb')][_0x1bfe5d('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x430f1c[_0x1bfe5d('0x24d3')]=_0x1bfe5d('0x13df'),_0x430f1c[_0x1bfe5d('0x891')]=angular['copy'](_0x10d530),_0x430f1c[_0x1bfe5d('0x1cca')]=_0x9cb54e,_0x430f1c[_0x1bfe5d('0x2760')]=![];!_0x430f1c[_0x1bfe5d('0x891')]&&(_0x430f1c[_0x1bfe5d('0x891')]={'strategy':_0x1bfe5d('0x928'),'timeout':0xa},_0x430f1c[_0x1bfe5d('0x24d3')]='OPENCHANNEL.NEW_OPENCHANNELQUEUE',_0x430f1c[_0x1bfe5d('0x2760')]=!![]);_0x430f1c[_0x1bfe5d('0x15a5')]=_0x2a9d60,_0x430f1c[_0x1bfe5d('0x703')]=_0xe55348,_0x430f1c[_0x1bfe5d('0x1600')]=_0x2b18e4,_0x430f1c[_0x1bfe5d('0x1300')]=_0x1bcc2a,_0x430f1c['closeDialog']=_0x543666;function _0x2a9d60(){const _0x481f74=_0x1bfe5d;_0x430f1c['errors']=[],_0x5b82a2[_0x481f74('0x891')][_0x481f74('0x2439')](_0x430f1c[_0x481f74('0x891')])[_0x481f74('0x1af5')][_0x481f74('0x17e7')](function(_0x461faf){const _0x29258c=_0x481f74;_0x430f1c[_0x29258c('0x1cca')][_0x29258c('0x1893')](_0x461faf[_0x29258c('0x16b2')]()),_0x580675[_0x29258c('0x130d')]({'title':_0x29258c('0x14b7'),'msg':_0x430f1c[_0x29258c('0x891')][_0x29258c('0x2aa')]?_0x430f1c[_0x29258c('0x891')][_0x29258c('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x543666(_0x461faf);})[_0x481f74('0x16df')](function(_0x51c7e2){const _0x23d52f=_0x481f74;if(_0x51c7e2[_0x23d52f('0x1457')]&&_0x51c7e2[_0x23d52f('0x1457')]['errors']&&_0x51c7e2[_0x23d52f('0x1457')]['errors'][_0x23d52f('0x1f73')]){_0x430f1c['errors']=_0x51c7e2[_0x23d52f('0x1457')]['errors']||[{'message':_0x51c7e2['toString'](),'type':'api.openchannelQueue.save'}];for(let _0x2256fe=0x0;_0x2256fe<_0x51c7e2['data'][_0x23d52f('0x73e')][_0x23d52f('0x1f73')];_0x2256fe+=0x1){_0x580675[_0x23d52f('0x1db9')]({'title':_0x51c7e2[_0x23d52f('0x1457')]['errors'][_0x2256fe][_0x23d52f('0x412')],'msg':_0x51c7e2[_0x23d52f('0x1457')]['errors'][_0x2256fe][_0x23d52f('0x1603')]});}}else _0x580675[_0x23d52f('0x1db9')]({'title':_0x51c7e2[_0x23d52f('0x11c5')]?'API:'+_0x51c7e2['status']+_0x23d52f('0x16e4')+_0x51c7e2[_0x23d52f('0x1833')]:'api.openchannelQueue.save','msg':_0x51c7e2['data']?JSON[_0x23d52f('0x678')](_0x51c7e2[_0x23d52f('0x1457')][_0x23d52f('0x1603')]):_0x51c7e2[_0x23d52f('0x9b6')]()});});}function _0xe55348(){const _0x39dd40=_0x1bfe5d;_0x430f1c['errors']=[],_0x5b82a2['openchannelQueue'][_0x39dd40('0x27ba')]({'id':_0x430f1c[_0x39dd40('0x891')]['id']},_0x430f1c[_0x39dd40('0x891')])[_0x39dd40('0x1af5')][_0x39dd40('0x17e7')](function(_0x4521d3){const _0x5d0341=_0x39dd40,_0x1ecbfe=_0x49cbdd()[_0x5d0341('0xe8e')](_0x430f1c['openchannelQueues'],{'id':_0x4521d3['id']});_0x1ecbfe&&_0x49cbdd()[_0x5d0341('0x1ced')](_0x1ecbfe,_0x49cbdd()[_0x5d0341('0x230a')](_0x4521d3[_0x5d0341('0x16b2')](),_0x49cbdd()['keys'](_0x1ecbfe))),_0x580675[_0x5d0341('0x130d')]({'title':_0x5d0341('0x2280'),'msg':_0x430f1c[_0x5d0341('0x891')][_0x5d0341('0x2aa')]?_0x430f1c[_0x5d0341('0x891')][_0x5d0341('0x2aa')]+_0x5d0341('0x15ca'):''}),_0x543666(_0x4521d3);})[_0x39dd40('0x16df')](function(_0x2c0cfc){const _0x5b2e54=_0x39dd40;if(_0x2c0cfc[_0x5b2e54('0x1457')]&&_0x2c0cfc['data'][_0x5b2e54('0x73e')]&&_0x2c0cfc[_0x5b2e54('0x1457')][_0x5b2e54('0x73e')][_0x5b2e54('0x1f73')]){_0x430f1c[_0x5b2e54('0x73e')]=_0x2c0cfc[_0x5b2e54('0x1457')][_0x5b2e54('0x73e')]||[{'message':_0x2c0cfc[_0x5b2e54('0x9b6')](),'type':'api.openchannelQueue.update'}];for(let _0x498c74=0x0;_0x498c74<_0x2c0cfc['data']['errors'][_0x5b2e54('0x1f73')];_0x498c74++){_0x580675[_0x5b2e54('0x1db9')]({'title':_0x2c0cfc['data'][_0x5b2e54('0x73e')][_0x498c74][_0x5b2e54('0x412')],'msg':_0x2c0cfc[_0x5b2e54('0x1457')][_0x5b2e54('0x73e')][_0x498c74][_0x5b2e54('0x1603')]});}}else _0x580675[_0x5b2e54('0x1db9')]({'title':_0x2c0cfc[_0x5b2e54('0x11c5')]?_0x5b2e54('0x14f7')+_0x2c0cfc[_0x5b2e54('0x11c5')]+_0x5b2e54('0x16e4')+_0x2c0cfc[_0x5b2e54('0x1833')]:'api.openchannelQueue.update','msg':_0x2c0cfc[_0x5b2e54('0x1457')]?JSON['stringify'](_0x2c0cfc[_0x5b2e54('0x1457')]['message']):_0x2c0cfc['toString']()});});}function _0x2b18e4(_0x154a5c){const _0xa13220=_0x1bfe5d;_0x430f1c[_0xa13220('0x73e')]=[];const _0x1356ee=_0x39e441['confirm']()[_0xa13220('0x24d3')](_0xa13220('0x530'))['content'](_0xa13220('0x43f'))[_0xa13220('0x2095')](_0xa13220('0xc84'))['ok'](_0xa13220('0x304'))[_0xa13220('0x1d47')](_0xa13220('0x1b70'))[_0xa13220('0x104f')](_0x154a5c);_0x39e441[_0xa13220('0x28e2')](_0x1356ee)[_0xa13220('0x17e7')](function(){const _0x435134=_0xa13220;_0x5b82a2[_0x435134('0x891')][_0x435134('0x1da6')]({'id':_0x430f1c[_0x435134('0x891')]['id']})['$promise']['then'](function(){const _0xd66fd6=_0x435134;_0x49cbdd()['remove'](_0x430f1c['openchannelQueues'],{'id':_0x430f1c['openchannelQueue']['id']}),_0x580675[_0xd66fd6('0x130d')]({'title':_0xd66fd6('0x27c0'),'msg':(_0x430f1c['openchannelQueue'][_0xd66fd6('0x2aa')]||_0xd66fd6('0x891'))+_0xd66fd6('0x149f')}),_0x543666(_0x430f1c[_0xd66fd6('0x891')]);})[_0x435134('0x16df')](function(_0x278c1c){const _0xd21150=_0x435134;if(_0x278c1c[_0xd21150('0x1457')]&&_0x278c1c['data']['errors']&&_0x278c1c[_0xd21150('0x1457')][_0xd21150('0x73e')][_0xd21150('0x1f73')]){_0x430f1c[_0xd21150('0x73e')]=_0x278c1c[_0xd21150('0x1457')]['errors']||[{'message':_0x278c1c['toString'](),'type':_0xd21150('0x1f9e')}];for(let _0x32d730=0x0;_0x32d730<_0x278c1c[_0xd21150('0x1457')][_0xd21150('0x73e')][_0xd21150('0x1f73')];_0x32d730++){_0x580675['error']({'title':_0x278c1c[_0xd21150('0x1457')][_0xd21150('0x73e')][_0x32d730][_0xd21150('0x412')],'msg':_0x278c1c[_0xd21150('0x1457')][_0xd21150('0x73e')][_0x32d730][_0xd21150('0x1603')]});}}else _0x580675[_0xd21150('0x1db9')]({'title':_0x278c1c[_0xd21150('0x11c5')]?_0xd21150('0x14f7')+_0x278c1c[_0xd21150('0x11c5')]+_0xd21150('0x16e4')+_0x278c1c['statusText']:_0xd21150('0x1f9e'),'msg':_0x278c1c['data']?JSON[_0xd21150('0x678')](_0x278c1c[_0xd21150('0x1457')]['message']):_0x278c1c[_0xd21150('0x1603')]||_0x278c1c[_0xd21150('0x9b6')]()});});},function(){});}function _0x1bcc2a(_0x5162e7){return _0x5162e7===null?undefined:new Date(_0x5162e7);}function _0x543666(_0xa30175){const _0x2ad8c3=_0x1bfe5d;_0x39e441[_0x2ad8c3('0x212a')](_0xa30175);}}const _0x1eaae2=_0x468933;_0x14f891[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x212e'),_0x4376d8('0x891'),_0x4376d8('0x1cca'),_0x4376d8('0x20c8'),'$translate',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x14f891(_0x5cb3b1,_0x121666,_0x3b13df,_0x1eede8,_0x24fd91,_0x342dd5,_0x3c017f,_0x449e4e,_0x5971da,_0x24d15f){const _0x254c38=_0x4376d8,_0x471b1e=this;_0x471b1e[_0x254c38('0x197c')]=_0x5971da[_0x254c38('0x2831')](),_0x471b1e[_0x254c38('0x891')]=_0x24fd91,_0x471b1e['crudPermissions']=_0x24d15f,_0x471b1e[_0x254c38('0x20c8')]=_0x3c017f,_0x471b1e['items']=[],_0x471b1e[_0x254c38('0x2722')]=[],_0x471b1e[_0x254c38('0xc14')]=[],_0x471b1e[_0x254c38('0x181b')]=[],_0x471b1e[_0x254c38('0x1824')]=[],_0x471b1e['pendingChanges']=![],_0x471b1e[_0x254c38('0xdf0')]=_0x1936d8,_0x471b1e['saveAgents']=_0x447da7,_0x471b1e['closeDialog']=_0x233d60,_0x471b1e['dualMultiselectOptions']={'readOnly':!_0x471b1e[_0x254c38('0x103e')][_0x254c38('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x254c38('0x2aa'),'line1':_0x254c38('0xea6'),'line2':[_0x254c38('0x2aa'),_0x254c38('0xe3e')],'line3':'','labelAll':_0x449e4e[_0x254c38('0x1acc')](_0x254c38('0x19c5')),'labelSelected':_0x449e4e[_0x254c38('0x1acc')](_0x254c38('0x1e1b')),'transferCallback':function(){const _0x410eea=_0x254c38,_0x4d0728=_0x49cbdd()[_0x410eea('0x137')](_0x471b1e[_0x410eea('0x1824')],_0x471b1e['selectedItems'],'id');_0x471b1e[_0x410eea('0x25dc')]=_0x49cbdd()[_0x410eea('0x109a')](_0x4d0728)?![]:!![];}};function _0x1936d8(){const _0x46b3f4=_0x254c38;return _0x5971da[_0x46b3f4('0x1ba2')](_0x46b3f4('0x20bf'))?_0x280b47()[_0x46b3f4('0x16df')](function(_0x3e0675){const _0x491fe5=_0x46b3f4;_0x3b13df[_0x491fe5('0x1db9')]({'title':_0x3e0675[_0x491fe5('0x11c5')]?'API:'+_0x3e0675['status']+_0x491fe5('0x16e4')+_0x3e0675[_0x491fe5('0x1833')]:_0x491fe5('0x23e0'),'msg':_0x3e0675[_0x491fe5('0x11c5')]?JSON[_0x491fe5('0x678')](_0x3e0675[_0x491fe5('0x1457')]):_0x3e0675[_0x491fe5('0x9b6')]()});}):_0x70c4f0()[_0x46b3f4('0x17e7')](function(_0x2196c6){const _0x50df3f=_0x46b3f4;return _0x471b1e[_0x50df3f('0x16f8')]=_0x2196c6,_0x280b47();})['catch'](function(_0x1a6749){const _0x328537=_0x46b3f4;_0x3b13df[_0x328537('0x1db9')]({'title':_0x1a6749[_0x328537('0x11c5')]?_0x328537('0x14f7')+_0x1a6749[_0x328537('0x11c5')]+_0x328537('0x16e4')+_0x1a6749[_0x328537('0x1833')]:_0x328537('0x23e0'),'msg':_0x1a6749[_0x328537('0x11c5')]?JSON[_0x328537('0x678')](_0x1a6749[_0x328537('0x1457')]):_0x1a6749['toString']()});});}function _0x70c4f0(){return _0x121666(function(_0x505b69,_0x209e4c){const _0x162bd0=a0_0xd29e;_0x1eede8[_0x162bd0('0x383')][_0x162bd0('0x1c53')]({'userProfileId':_0x471b1e[_0x162bd0('0x197c')]['userProfileId'],'name':'Agents'})[_0x162bd0('0x1af5')][_0x162bd0('0x17e7')](function(_0x502f69){const _0x5a055e=_0x502f69&&_0x502f69['rows']?_0x502f69['rows'][0x0]:null;_0x505b69(_0x5a055e);})['catch'](function(_0x2e06e8){_0x209e4c(_0x2e06e8);});});}function _0x280b47(){return _0x121666(function(_0x4ab592,_0x4444a5){const _0x2dec24=a0_0xd29e;return _0x36fc86()['then'](function(_0x50b9a3){const _0xb6f6e4=a0_0xd29e;return _0x471b1e[_0xb6f6e4('0x532')]=_0x50b9a3[_0xb6f6e4('0x2319')]?_0x50b9a3[_0xb6f6e4('0x2319')]:[],_0x5971da[_0xb6f6e4('0x1ba2')](_0xb6f6e4('0x20bf'))?_0x50b9a3:_0x471b1e['section']?_0x471b1e[_0xb6f6e4('0x16f8')][_0xb6f6e4('0x9e3')]?_0x50b9a3:_0x39877c():null;})['then'](function(_0x45df5e){const _0x35ea26=a0_0xd29e,_0x416185=_0x45df5e&&_0x45df5e[_0x35ea26('0x2319')]?_0x45df5e[_0x35ea26('0x2319')]:[];return _0x471b1e[_0x35ea26('0x2722')]=_0x49cbdd()[_0x35ea26('0x787')](_0x416185,function(_0x3da4b3){const _0x209aec=_0x35ea26;return _0x49cbdd()[_0x209aec('0xe8e')](_0x471b1e['items'],{'id':_0x5971da[_0x209aec('0x1ba2')](_0x209aec('0x20bf'))||_0x471b1e['section'][_0x209aec('0x9e3')]?_0x3da4b3['id']:_0x3da4b3[_0x209aec('0x5db')]});}),_0x471b1e['startingAllowedItems']=angular[_0x35ea26('0x14e5')](_0x471b1e[_0x35ea26('0x2722')]),_0x471b1e[_0x35ea26('0x532')]['forEach'](function(_0x113939){const _0x16f129=_0x35ea26,_0x131af6=_0x49cbdd()[_0x16f129('0xe8e')](_0x471b1e['allowedItems'],{'id':_0x113939['id']});_0x5971da[_0x16f129('0x1ba2')](_0x16f129('0x20bf'))?_0x113939[_0x16f129('0xc98')]=!![]:_0x113939[_0x16f129('0xc98')]=typeof _0x131af6!==_0x16f129('0xfad')?!![]:![];}),_0x1a19eb();})['then'](function(_0x496f81){const _0x249992=a0_0xd29e,_0x2927fe=_0x496f81&&_0x496f81[_0x249992('0x2319')]?_0x496f81['rows']:[];_0x471b1e[_0x249992('0xc14')]=_0x49cbdd()[_0x249992('0x787')](_0x2927fe,function(_0x5eae53){const _0x17bf52=_0x249992,_0x3abe09=_0x49cbdd()[_0x17bf52('0xe8e')](_0x471b1e['items'],{'id':_0x5eae53['id']});return _0x3abe09['penalty']=_0x5eae53[_0x17bf52('0xb7d')]?_0x17bf52('0x973')+_0x5eae53[_0x17bf52('0xb7d')][_0x17bf52('0x122c')]:'',_0x3abe09['internal']=typeof _0x5eae53[_0x17bf52('0xe3e')]!=='undefined'?'<'+_0x5eae53[_0x17bf52('0xe3e')]+'>':'',_0x3abe09;}),_0x471b1e[_0x249992('0x1824')]=angular[_0x249992('0x14e5')](_0x471b1e['selectedItems']),_0x471b1e['dualMultiselectOptions'][_0x249992('0xc14')]=_0x471b1e[_0x249992('0xc14')],_0x471b1e[_0x249992('0x26f4')][_0x249992('0x532')]=_0x49cbdd()[_0x249992('0x1ada')](_0x471b1e[_0x249992('0x2722')],_0x471b1e[_0x249992('0x26f4')]['selectedItems'],'id'),_0x4ab592();})[_0x2dec24('0x16df')](function(_0x296c34){_0x4444a5(_0x296c34);});});}function _0x39877c(){return _0x121666(function(_0x1ffa3e,_0x871ad2){const _0x4ce63c=a0_0xd29e;return _0x1eede8['userProfileResource'][_0x4ce63c('0x1c53')]({'sectionId':_0x471b1e[_0x4ce63c('0x16f8')]['id'],'nolimit':!![]})['$promise'][_0x4ce63c('0x17e7')](function(_0x581caa){_0x1ffa3e(_0x581caa);})['catch'](function(_0x33d389){_0x871ad2(_0x33d389);});});}function _0x1a19eb(){return _0x121666(function(_0x5858b7,_0x19fe61){const _0x2ee4a1=a0_0xd29e;return _0x1eede8[_0x2ee4a1('0x891')][_0x2ee4a1('0x1dac')]({'id':_0x471b1e[_0x2ee4a1('0x891')]['id'],'fields':_0x2ee4a1('0x1152'),'nolimit':!![],'role':_0x2ee4a1('0x684')})[_0x2ee4a1('0x1af5')]['then'](function(_0x5162d4){_0x5858b7(_0x5162d4);})[_0x2ee4a1('0x16df')](function(_0x5b32e6){_0x19fe61(_0x5b32e6);});});}function _0x36fc86(){return _0x121666(function(_0x3d05b4,_0x5c80db){const _0x2882bf=a0_0xd29e;return _0x1eede8['user'][_0x2882bf('0x1c53')]({'fields':_0x2882bf('0x1152'),'nolimit':!![],'role':_0x2882bf('0x684')})[_0x2882bf('0x1af5')][_0x2882bf('0x17e7')](function(_0x1ac072){_0x3d05b4(_0x1ac072);})[_0x2882bf('0x16df')](function(_0x3eceae){_0x5c80db(_0x3eceae);});});}function _0x47ee9c(_0x2fdce9){return _0x121666(function(_0xe37aba,_0x6b26b0){const _0x1fdf08=a0_0xd29e;_0x49cbdd()[_0x1fdf08('0x109a')](_0x2fdce9)?_0xe37aba():_0x1eede8[_0x1fdf08('0x891')][_0x1fdf08('0x1f22')]({'id':_0x471b1e['openchannelQueue']['id'],'ids':_0x49cbdd()[_0x1fdf08('0x787')](_0x2fdce9,'id')})[_0x1fdf08('0x1af5')]['then'](function(){_0xe37aba();})[_0x1fdf08('0x16df')](function(_0xd3d519){_0x6b26b0(_0xd3d519);});});}function _0x317221(_0x450547){return _0x121666(function(_0x385173,_0xd1ad78){const _0x97dd63=a0_0xd29e;_0x49cbdd()[_0x97dd63('0x109a')](_0x450547)?_0x385173():_0x1eede8['openchannelQueue']['removeAgents']({'id':_0x471b1e[_0x97dd63('0x891')]['id'],'ids':_0x49cbdd()[_0x97dd63('0x787')](_0x450547,'id')})[_0x97dd63('0x1af5')]['then'](function(){_0x385173();})[_0x97dd63('0x16df')](function(_0x515c21){_0xd1ad78(_0x515c21);});});}function _0x447da7(){const _0x14bdc5=_0x254c38,_0x22e344=_0x49cbdd()[_0x14bdc5('0x1ada')](_0x471b1e['startingSelectedItems'],_0x471b1e[_0x14bdc5('0xc14')],'id'),_0x4abfb0=_0x49cbdd()['differenceBy'](_0x471b1e[_0x14bdc5('0xc14')],_0x471b1e[_0x14bdc5('0x1824')],'id');return _0x317221(_0x22e344)[_0x14bdc5('0x17e7')](function(){return _0x47ee9c(_0x4abfb0);})[_0x14bdc5('0x17e7')](function(){const _0x59bfb3=_0x14bdc5;_0x471b1e[_0x59bfb3('0x25dc')]=![],_0x471b1e[_0x59bfb3('0x181b')]=angular[_0x59bfb3('0x14e5')](_0x471b1e[_0x59bfb3('0x2722')]),_0x471b1e[_0x59bfb3('0x1824')]=angular[_0x59bfb3('0x14e5')](_0x471b1e[_0x59bfb3('0xc14')]),_0x3b13df[_0x59bfb3('0x130d')]({'title':_0x59bfb3('0x9d1'),'msg':_0x59bfb3('0x2603')});})[_0x14bdc5('0x16df')](function(_0x3c57c8){const _0x3646e9=_0x14bdc5;_0x3b13df[_0x3646e9('0x1db9')]({'title':_0x3c57c8[_0x3646e9('0x11c5')]?_0x3646e9('0x14f7')+_0x3c57c8[_0x3646e9('0x11c5')]+'\x20-\x20'+_0x3c57c8['statusText']:'SYSTEM:LISTS_ASSOCIATION','msg':_0x3c57c8['status']?JSON[_0x3646e9('0x678')](_0x3c57c8[_0x3646e9('0x1457')]):_0x3c57c8[_0x3646e9('0x9b6')]()});});}function _0x233d60(){const _0x581777=_0x254c38;_0x5cb3b1[_0x581777('0x212a')]();}}const _0x117786=_0x14f891;_0x58264d['$inject']=['$mdDialog','$q','toasty',_0x4376d8('0x212e'),_0x4376d8('0x891'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x58264d(_0x4aa4bc,_0x1355ec,_0x3341b9,_0x24b928,_0x1dc740,_0x305095,_0x568957,_0x42ddab){const _0x4131ac=_0x4376d8,_0x3b8092=this;_0x3b8092[_0x4131ac('0x197c')]=_0x568957[_0x4131ac('0x2831')](),_0x3b8092[_0x4131ac('0x891')]=_0x1dc740,_0x3b8092['crudPermissions']=_0x42ddab,_0x3b8092[_0x4131ac('0x532')]=[],_0x3b8092['allowedItems']=[],_0x3b8092[_0x4131ac('0xc14')]=[],_0x3b8092['startingAllowedItems']=[],_0x3b8092[_0x4131ac('0x1824')]=[],_0x3b8092[_0x4131ac('0x25dc')]=![],_0x3b8092[_0x4131ac('0x26f4')]={'readOnly':!_0x3b8092[_0x4131ac('0x103e')][_0x4131ac('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':'name','line1':_0x4131ac('0x2aa'),'line2':'','line3':'','labelAll':_0x305095[_0x4131ac('0x1acc')](_0x4131ac('0x27b2')),'labelSelected':_0x305095[_0x4131ac('0x1acc')](_0x4131ac('0x2894')),'transferCallback':function(){const _0x50ae9e=_0x4131ac,_0x1fb8cb=_0x49cbdd()['xorBy'](_0x3b8092[_0x50ae9e('0x1824')],_0x3b8092[_0x50ae9e('0xc14')],'id');_0x3b8092[_0x50ae9e('0x25dc')]=_0x49cbdd()[_0x50ae9e('0x109a')](_0x1fb8cb)?![]:!![];}},_0x3b8092[_0x4131ac('0xdf0')]=_0x1327cb,_0x3b8092['saveTeams']=_0x3214af,_0x3b8092['closeDialog']=_0x1a4ccc;function _0x1327cb(){const _0x39cbee=_0x4131ac;return _0x568957[_0x39cbee('0x1ba2')]('admin')?_0x105aa2()[_0x39cbee('0x16df')](function(_0x22eaa8){const _0x30a491=_0x39cbee;_0x3341b9['error']({'title':_0x22eaa8[_0x30a491('0x11c5')]?_0x30a491('0x14f7')+_0x22eaa8[_0x30a491('0x11c5')]+_0x30a491('0x16e4')+_0x22eaa8[_0x30a491('0x1833')]:_0x30a491('0x20cf'),'msg':_0x22eaa8[_0x30a491('0x11c5')]?JSON['stringify'](_0x22eaa8[_0x30a491('0x1457')]):_0x22eaa8[_0x30a491('0x9b6')]()});}):_0x500189()[_0x39cbee('0x17e7')](function(_0x489a2d){const _0x1c4135=_0x39cbee;return _0x3b8092[_0x1c4135('0x16f8')]=_0x489a2d,_0x105aa2();})[_0x39cbee('0x16df')](function(_0x4583ca){const _0x54f215=_0x39cbee;_0x3341b9[_0x54f215('0x1db9')]({'title':_0x4583ca[_0x54f215('0x11c5')]?'API:'+_0x4583ca[_0x54f215('0x11c5')]+'\x20-\x20'+_0x4583ca[_0x54f215('0x1833')]:'SYSTEM:GET_TEAMS','msg':_0x4583ca[_0x54f215('0x11c5')]?JSON['stringify'](_0x4583ca[_0x54f215('0x1457')]):_0x4583ca[_0x54f215('0x9b6')]()});});}function _0x500189(){return _0x1355ec(function(_0x3b5a99,_0x45b893){const _0xb2f109=a0_0xd29e;_0x24b928[_0xb2f109('0x383')][_0xb2f109('0x1c53')]({'userProfileId':_0x3b8092['currentUser'][_0xb2f109('0x1e76')],'name':_0xb2f109('0x1cf2')})[_0xb2f109('0x1af5')]['then'](function(_0x15189a){const _0x91b744=_0xb2f109,_0x27863c=_0x15189a&&_0x15189a[_0x91b744('0x2319')]?_0x15189a['rows'][0x0]:null;_0x3b5a99(_0x27863c);})[_0xb2f109('0x16df')](function(_0xeb80ce){_0x45b893(_0xeb80ce);});});}function _0x105aa2(){return _0x1355ec(function(_0x1a9c83,_0x41b2d8){const _0x307dcb=a0_0xd29e;return _0x222008()[_0x307dcb('0x17e7')](function(_0x53b46f){const _0xa28340=_0x307dcb;return _0x3b8092[_0xa28340('0x532')]=_0x53b46f['rows']?_0x53b46f[_0xa28340('0x2319')]:[],_0x568957['hasRole']('admin')?_0x53b46f:_0x3b8092[_0xa28340('0x16f8')]?_0x3b8092[_0xa28340('0x16f8')]['autoAssociation']?_0x53b46f:_0x306331():null;})['then'](function(_0x377c1a){const _0x4922f0=_0x307dcb,_0x393f30=_0x377c1a&&_0x377c1a[_0x4922f0('0x2319')]?_0x377c1a[_0x4922f0('0x2319')]:[];return _0x3b8092[_0x4922f0('0x2722')]=_0x49cbdd()[_0x4922f0('0x787')](_0x393f30,function(_0x1dd486){const _0x1a0584=_0x4922f0;return _0x49cbdd()[_0x1a0584('0xe8e')](_0x3b8092[_0x1a0584('0x532')],{'id':_0x568957[_0x1a0584('0x1ba2')](_0x1a0584('0x20bf'))||_0x3b8092['section'][_0x1a0584('0x9e3')]?_0x1dd486['id']:_0x1dd486[_0x1a0584('0x5db')]});}),_0x3b8092[_0x4922f0('0x532')][_0x4922f0('0xccd')](function(_0x3f36b2){const _0x393e6a=_0x4922f0,_0xc79911=_0x49cbdd()[_0x393e6a('0xe8e')](_0x3b8092[_0x393e6a('0x2722')],{'id':_0x3f36b2['id']});_0x568957[_0x393e6a('0x1ba2')]('admin')?_0x3f36b2[_0x393e6a('0xc98')]=!![]:_0x3f36b2[_0x393e6a('0xc98')]=typeof _0xc79911!==_0x393e6a('0xfad')?!![]:![];}),_0x247a2a();})[_0x307dcb('0x17e7')](function(_0x2819be){const _0x1e4c63=_0x307dcb,_0x5a69ee=_0x2819be&&_0x2819be[_0x1e4c63('0x2319')]?_0x2819be[_0x1e4c63('0x2319')]:[];_0x3b8092[_0x1e4c63('0xc14')]=_0x49cbdd()[_0x1e4c63('0x787')](_0x5a69ee,function(_0x3574ae){const _0x47e2cc=_0x1e4c63;return _0x49cbdd()[_0x47e2cc('0xe8e')](_0x3b8092['items'],{'id':_0x3574ae['id']});}),_0x3b8092['startingSelectedItems']=angular['copy'](_0x3b8092['selectedItems']),_0x3b8092[_0x1e4c63('0x26f4')][_0x1e4c63('0xc14')]=_0x3b8092[_0x1e4c63('0xc14')],_0x3b8092[_0x1e4c63('0x26f4')]['items']=_0x49cbdd()[_0x1e4c63('0x1ada')](_0x3b8092['allowedItems'],_0x3b8092[_0x1e4c63('0x26f4')][_0x1e4c63('0xc14')],'id'),_0x1a9c83();})[_0x307dcb('0x16df')](function(_0x45fdbd){_0x41b2d8(_0x45fdbd);});});}function _0x306331(){return _0x1355ec(function(_0x4eb089,_0x38ac57){const _0x4c6310=a0_0xd29e;return _0x24b928['userProfileResource']['get']({'sectionId':_0x3b8092[_0x4c6310('0x16f8')]['id'],'nolimit':!![]})[_0x4c6310('0x1af5')][_0x4c6310('0x17e7')](function(_0x24a335){_0x4eb089(_0x24a335);})[_0x4c6310('0x16df')](function(_0x32e68e){_0x38ac57(_0x32e68e);});});}function _0x247a2a(){return _0x1355ec(function(_0x372f6b,_0x3e53e9){const _0x5584ca=a0_0xd29e;return _0x24b928[_0x5584ca('0x891')][_0x5584ca('0x141f')]({'id':_0x3b8092['openchannelQueue']['id'],'fields':_0x5584ca('0x12d2'),'nolimit':!![]})[_0x5584ca('0x1af5')][_0x5584ca('0x17e7')](function(_0x5d4eed){_0x372f6b(_0x5d4eed);})[_0x5584ca('0x16df')](function(_0x984772){_0x3e53e9(_0x984772);});});}function _0x222008(){return _0x1355ec(function(_0x2b89a7,_0x3230c6){const _0x3ce5cc=a0_0xd29e;return _0x24b928['team'][_0x3ce5cc('0x1c53')]({'fields':_0x3ce5cc('0x12d2'),'nolimit':!![]})[_0x3ce5cc('0x1af5')][_0x3ce5cc('0x17e7')](function(_0x1d4628){_0x2b89a7(_0x1d4628);})[_0x3ce5cc('0x16df')](function(_0x5a3e7e){_0x3230c6(_0x5a3e7e);});});}function _0x58d4ab(_0x174d40){return _0x1355ec(function(_0x2faa9e,_0x37cf89){const _0x37ba9f=a0_0xd29e;_0x49cbdd()[_0x37ba9f('0x109a')](_0x174d40)?_0x2faa9e():_0x24b928['openchannelQueue'][_0x37ba9f('0x670')]({'id':_0x3b8092[_0x37ba9f('0x891')]['id'],'ids':_0x49cbdd()['map'](_0x174d40,'id')})[_0x37ba9f('0x1af5')]['then'](function(){_0x2faa9e();})[_0x37ba9f('0x16df')](function(_0x2dc97a){_0x37cf89(_0x2dc97a);});});}function _0x46451e(_0x2165e3){return _0x1355ec(function(_0x506232,_0x12d4d0){const _0x3545b1=a0_0xd29e;_0x49cbdd()[_0x3545b1('0x109a')](_0x2165e3)?_0x506232():_0x24b928[_0x3545b1('0x891')][_0x3545b1('0x27e8')]({'id':_0x3b8092[_0x3545b1('0x891')]['id'],'ids':_0x49cbdd()[_0x3545b1('0x787')](_0x2165e3,'id')})[_0x3545b1('0x1af5')]['then'](function(){_0x506232();})[_0x3545b1('0x16df')](function(_0x32d224){_0x12d4d0(_0x32d224);});});}function _0x3214af(){const _0x5cd014=_0x4131ac,_0x11c2b3=_0x49cbdd()[_0x5cd014('0x1ada')](_0x3b8092[_0x5cd014('0x1824')],_0x3b8092[_0x5cd014('0xc14')],'id'),_0x342769=_0x49cbdd()[_0x5cd014('0x1ada')](_0x3b8092[_0x5cd014('0xc14')],_0x3b8092[_0x5cd014('0x1824')],'id');return _0x46451e(_0x11c2b3)[_0x5cd014('0x17e7')](function(){return _0x58d4ab(_0x342769);})['then'](function(){const _0x3155ab=_0x5cd014;_0x3b8092['pendingChanges']=![],_0x3b8092[_0x3155ab('0x181b')]=angular[_0x3155ab('0x14e5')](_0x3b8092['allowedItems']),_0x3b8092['startingSelectedItems']=angular['copy'](_0x3b8092[_0x3155ab('0xc14')]),_0x3341b9[_0x3155ab('0x130d')]({'title':_0x3155ab('0x9d1'),'msg':_0x3155ab('0x1091')});})['catch'](function(_0x2e52c2){const _0x2c29ab=_0x5cd014;_0x3341b9[_0x2c29ab('0x1db9')]({'title':_0x2e52c2[_0x2c29ab('0x11c5')]?_0x2c29ab('0x14f7')+_0x2e52c2['status']+'\x20-\x20'+_0x2e52c2['statusText']:_0x2c29ab('0x244e'),'msg':_0x2e52c2[_0x2c29ab('0x11c5')]?JSON[_0x2c29ab('0x678')](_0x2e52c2[_0x2c29ab('0x1457')]):_0x2e52c2[_0x2c29ab('0x9b6')]()});});}function _0x1a4ccc(){_0x4aa4bc['hide']();}}const _0xccda16=_0x58264d,_0x2f2629=_0x4cf2bc['p']+_0x4376d8('0x23b2');_0x7a1211[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x891'),_0x4376d8('0x383')];function _0x7a1211(_0x25f50a,_0x24fc69,_0x32bcf5,_0x3da3e9,_0x50673d,_0x253d1d,_0x1e57f1,_0x3172b9,_0x154f92,_0x1fa2da,_0x4835d3,_0x59a21e){const _0x4d7fa8=_0x4376d8,_0x266bfa=this;_0x266bfa[_0x4d7fa8('0x197c')]=_0x1fa2da[_0x4d7fa8('0x2831')](),_0x266bfa[_0x4d7fa8('0x1d11')]=_0x253d1d,_0x266bfa[_0x4d7fa8('0x1aeb')]=_0x1e57f1,_0x266bfa[_0x4d7fa8('0x1572')]=_0x266bfa[_0x4d7fa8('0x1aeb')][_0x4d7fa8('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x266bfa[_0x4d7fa8('0xaed')]=_0x24fc69[_0x4d7fa8('0x14fe')]()+_0x4d7fa8('0x14')+_0x24fc69[_0x4d7fa8('0x108')](),_0x266bfa['openchannelQueue']=_0x4835d3||_0x25f50a[_0x4d7fa8('0x16fb')]['openchannelQueue']||{},_0x266bfa[_0x4d7fa8('0x383')]=_0x59a21e&&_0x59a21e[_0x4d7fa8('0x335')]==0x1?_0x59a21e['rows'][0x0]:null,_0x266bfa[_0x4d7fa8('0x103e')]=_0x1fa2da[_0x4d7fa8('0x17a9')](_0x266bfa['userProfileSection']?_0x266bfa['userProfileSection'][_0x4d7fa8('0x103e')]:null),_0x266bfa[_0x4d7fa8('0x6ee')]={},_0x266bfa[_0x4d7fa8('0xde7')]=_0x25f50a['params'][_0x4d7fa8('0x1523')]||0x0,_0x266bfa['teamadddialog']=_0x1a9d79,_0x266bfa['agentadddialog']=_0x3a1bdf,_0x266bfa[_0x4d7fa8('0x99f')]=_0x154f92[_0x4d7fa8('0x1178')],_0x266bfa[_0x4d7fa8('0x14a8')]=_0x3c7031,_0x266bfa['saveOpenchannelQueue']=_0x2d4320;function _0x1a9d79(_0x3c2599,_0x3c472b){const _0x6c7083=_0x4d7fa8;_0x32bcf5[_0x6c7083('0x28e2')]({'controller':_0x6c7083('0x133b'),'controllerAs':'vm','templateUrl':_0x2f2629,'parent':angular[_0x6c7083('0x1ce1')](_0x3da3e9[_0x6c7083('0x13aa')]),'targetEvent':_0x3c472b,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x3c2599,'openchannelQueues':_0x266bfa[_0x6c7083('0x1cca')]?_0x266bfa['openchannelQueues'][_0x6c7083('0x2319')]:[],'crudPermissions':_0x266bfa[_0x6c7083('0x103e')]}});}function _0x3a1bdf(_0x2f0d23,_0x5bad85){const _0x6f50d2=_0x4d7fa8;_0x32bcf5[_0x6f50d2('0x28e2')]({'controller':_0x6f50d2('0x104c'),'controllerAs':'vm','templateUrl':_0x173a1e,'parent':angular[_0x6f50d2('0x1ce1')](_0x3da3e9['body']),'targetEvent':_0x5bad85,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x2f0d23,'openchannelQueues':_0x266bfa[_0x6f50d2('0x1cca')]?_0x266bfa[_0x6f50d2('0x1cca')][_0x6f50d2('0x2319')]:[],'crudPermissions':_0x266bfa[_0x6f50d2('0x103e')],'realtime':![]}});}function _0x3c7031(){const _0x3e6dc3=_0x4d7fa8;_0x25f50a['go'](_0x3e6dc3('0xf26'),{},{'reload':'app.openchannel.openchannelQueues'});}function _0x2d4320(){const _0x548963=_0x4d7fa8;_0x3172b9[_0x548963('0x891')][_0x548963('0x27ba')]({'id':_0x266bfa[_0x548963('0x891')]['id']},_0x266bfa['openchannelQueue'])[_0x548963('0x1af5')][_0x548963('0x17e7')](function(){const _0x3fe0d8=_0x548963;_0x154f92[_0x3fe0d8('0x130d')]({'title':_0x3fe0d8('0x1fe2'),'msg':_0x266bfa['openchannelQueue'][_0x3fe0d8('0x2aa')]?_0x266bfa[_0x3fe0d8('0x891')][_0x3fe0d8('0x2aa')]+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x82b0b5){const _0x5718a2=_0x548963;_0x154f92[_0x5718a2('0x1db9')]({'title':_0x82b0b5[_0x5718a2('0x11c5')]?'API:'+_0x82b0b5[_0x5718a2('0x11c5')]+_0x5718a2('0x16e4')+_0x82b0b5[_0x5718a2('0x1833')]:_0x5718a2('0x2c1'),'msg':_0x82b0b5[_0x5718a2('0x1457')]?JSON[_0x5718a2('0x678')](_0x82b0b5['data']):_0x82b0b5[_0x5718a2('0x9b6')]()});});}}const _0x4b8a03=_0x7a1211;_0x2869d8['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),'$mdSidenav',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0x1cca'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x2869d8(_0x45d60f,_0x5218e9,_0x3a30ed,_0x35a89c,_0x221301,_0x16cb5c,_0xb34110,_0xfd0ae1,_0xa873cd,_0x58e67c,_0xf98a26,_0x261c2e,_0x3e344e,_0x1e202,_0x271037,_0x138e4f,_0x1bf10c){const _0x519e09=_0x4376d8,_0x149d4b=this;_0x149d4b[_0x519e09('0x1d11')]=_0x138e4f,_0x149d4b[_0x519e09('0x1aeb')]=_0x1bf10c,_0x149d4b[_0x519e09('0x197c')]=_0x271037['getCurrentUser'](),_0x149d4b[_0x519e09('0x1cca')]=_0xa873cd||{'count':0x0,'rows':[]},_0x149d4b['userProfile']=_0x58e67c,_0x149d4b[_0x519e09('0x383')]=_0xf98a26&&_0xf98a26['count']==0x1?_0xf98a26[_0x519e09('0x2319')][0x0]:null,_0x149d4b['crudPermissions']=_0x271037[_0x519e09('0x17a9')](_0x149d4b['userProfileSection']?_0x149d4b['userProfileSection']['crudPermissions']:null),_0x149d4b[_0x519e09('0x23c3')]=_0x519e09('0x1cca'),_0x149d4b[_0x519e09('0x26a1')]='',_0x149d4b[_0x519e09('0x24e1')]=null,_0x149d4b[_0x519e09('0x2075')]=[],_0x149d4b['query']={'fields':_0x519e09('0x1029'),'sort':'-updatedAt','channel':_0x519e09('0x1508'),'limit':0xa,'page':0x1},_0x149d4b[_0x519e09('0x245b')]=_0x49cbdd()[_0x519e09('0x8de')]([{'option':'Beepall','value':'\x27beepall\x27'},{'option':'RR\x20Memory','value':_0x519e09('0x19b1')}],function(_0x41f6b6){const _0x52408e=_0x519e09;return _0x49cbdd()[_0x52408e('0x737')](_0x41f6b6[_0x52408e('0x175b')],new RegExp('\x27','g'),'');}),_0x149d4b[_0x519e09('0xcd4')]=_0x1b5d44,_0x149d4b['teamadddialog']=_0xb3f0,_0x149d4b['agentadddialog']=_0x11ee3,_0x149d4b['deleteconfirm']=_0x2914d4,_0x149d4b['gotorealtimegoto']=_0x5bfd04,_0x149d4b['success']=_0x544951,_0x149d4b['getOpenchannelQueues']=_0x658036,_0x149d4b[_0x519e09('0x1302')]=_0x46a353,_0x149d4b[_0x519e09('0x1600')]=_0x22de4c,_0x149d4b['exportSelectedOpenchannelQueues']=_0x431367,_0x149d4b['deleteSelectedOpenchannelQueues']=_0x2b5066,_0x149d4b['deselectOpenchannelQueues']=_0x82492b,_0x149d4b[_0x519e09('0x14e3')]=_0x32163d;function _0x1b5d44(_0x3126c1){const _0x56f779=_0x519e09;_0x3a30ed['go'](_0x56f779('0x211'),{'id':_0x3126c1['id'],'openchannelQueue':_0x3126c1,'crudPermissions':_0x149d4b[_0x56f779('0x103e')]});}function _0xb3f0(_0x1461d7,_0x45069d){const _0x2ab41c=_0x519e09;_0x221301[_0x2ab41c('0x28e2')]({'controller':_0x2ab41c('0x133b'),'controllerAs':'vm','templateUrl':_0x2f2629,'parent':angular[_0x2ab41c('0x1ce1')](_0x16cb5c[_0x2ab41c('0x13aa')]),'targetEvent':_0x45069d,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x1461d7,'openchannelQueues':_0x149d4b[_0x2ab41c('0x1cca')]?_0x149d4b['openchannelQueues'][_0x2ab41c('0x2319')]:[],'crudPermissions':_0x149d4b['crudPermissions']}});}function _0x11ee3(_0x16e544,_0x1cb34d){const _0x5d9069=_0x519e09;_0x221301[_0x5d9069('0x28e2')]({'controller':_0x5d9069('0x104c'),'controllerAs':'vm','templateUrl':_0x173a1e,'parent':angular[_0x5d9069('0x1ce1')](_0x16cb5c[_0x5d9069('0x13aa')]),'targetEvent':_0x1cb34d,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x16e544,'openchannelQueues':_0x149d4b[_0x5d9069('0x1cca')]?_0x149d4b[_0x5d9069('0x1cca')][_0x5d9069('0x2319')]:[],'crudPermissions':_0x149d4b['crudPermissions'],'realtime':![]}});}function _0x2914d4(_0x2d7026,_0x1e4ea4){const _0x5f4c4c=_0x519e09,_0x5226b3=_0x221301[_0x5f4c4c('0x1121')]()['title'](_0x5f4c4c('0x5e1')+_0x49cbdd()[_0x5f4c4c('0x1c98')](_0x5f4c4c('0x891'))+'?')[_0x5f4c4c('0x211f')](''+(_0x2d7026[_0x5f4c4c('0x2aa')]||_0x5f4c4c('0x891'))+_0x5f4c4c('0x1d23')+_0x5f4c4c('0xe9f'))[_0x5f4c4c('0x2095')]('delete\x20openchannelQueue')[_0x5f4c4c('0x104f')](_0x1e4ea4)['ok']('OK')['cancel'](_0x5f4c4c('0x28a0'));_0x221301[_0x5f4c4c('0x28e2')](_0x5226b3)[_0x5f4c4c('0x17e7')](function(){_0x22de4c(_0x2d7026);},function(){const _0x6e6cc6=_0x5f4c4c;console[_0x6e6cc6('0x1d63')](_0x6e6cc6('0x28a0'));});}function _0x5bfd04(){const _0x376d78=_0x519e09;if(_0x271037['hasRole'](_0x376d78('0x20bf')))_0x3a30ed['go']('app.openchannel.realtime.queues',{});else return _0x261c2e[_0x376d78('0x383')]['get']({'userProfileId':_0x271037[_0x376d78('0x2831')]()['userProfileId'],'sectionId':0x32a})[_0x376d78('0x1af5')][_0x376d78('0x17e7')](function(_0x118085){const _0x396d8e=_0x376d78,_0x36bcc7=_0x118085&&_0x118085[_0x396d8e('0x2319')]?_0x118085[_0x396d8e('0x2319')][0x0]:null;_0x36bcc7&&_0x36bcc7[_0x396d8e('0x1cd3')]?_0x3a30ed['go'](_0x396d8e('0x12c4'),{}):_0x1e202[_0x396d8e('0x1178')]({'title':_0xfd0ae1[_0x396d8e('0x1acc')](_0x396d8e('0x286e')),'msg':_0xfd0ae1[_0x396d8e('0x1acc')](_0x396d8e('0x1169'))});})[_0x376d78('0x16df')](function(_0x2c5d80){const _0x4177a3=_0x376d78;_0x1e202[_0x4177a3('0x1db9')]({'title':_0x2c5d80['status']?_0x4177a3('0x14f7')+_0x2c5d80[_0x4177a3('0x11c5')]+'\x20-\x20'+_0x2c5d80[_0x4177a3('0x1833')]:_0x4177a3('0x338'),'msg':_0x2c5d80[_0x4177a3('0x11c5')]?JSON[_0x4177a3('0x678')](_0x2c5d80[_0x4177a3('0x1457')]):_0x2c5d80['toString']()});});}let _0x21f65c=!![],_0x473c7d=0x1;_0x45d60f[_0x519e09('0x620')](_0x519e09('0x3ed'),function(_0x5e28b1,_0x22c58a){const _0x1cdfec=_0x519e09;_0x21f65c?_0xb34110(function(){_0x21f65c=![];}):(!_0x22c58a&&(_0x473c7d=_0x149d4b[_0x1cdfec('0x826')][_0x1cdfec('0x115a')]),_0x5e28b1!==_0x22c58a&&(_0x149d4b[_0x1cdfec('0x826')][_0x1cdfec('0x115a')]=0x1),!_0x5e28b1&&(_0x149d4b['query'][_0x1cdfec('0x115a')]=_0x473c7d),_0x149d4b[_0x1cdfec('0x1332')]());});function _0x544951(_0x22b3fb){_0x149d4b['openchannelQueues']=_0x22b3fb||{'count':0x0,'rows':[]};}function _0x658036(){const _0x4c9fbd=_0x519e09;_0x149d4b[_0x4c9fbd('0x826')]['offset']=(_0x149d4b[_0x4c9fbd('0x826')][_0x4c9fbd('0x115a')]-0x1)*_0x149d4b['query']['limit'],_0x271037[_0x4c9fbd('0x1ba2')](_0x4c9fbd('0x20bf'))?_0x149d4b[_0x4c9fbd('0x1691')]=_0x261c2e[_0x4c9fbd('0x891')][_0x4c9fbd('0x1c53')](_0x149d4b[_0x4c9fbd('0x826')],_0x544951)['$promise']:(_0x149d4b[_0x4c9fbd('0x826')]['id']=_0x149d4b[_0x4c9fbd('0xdeb')]['id'],_0x149d4b[_0x4c9fbd('0x826')][_0x4c9fbd('0x16f8')]=_0x4c9fbd('0x1dad'),_0x149d4b['promise']=_0x261c2e[_0x4c9fbd('0xdeb')][_0x4c9fbd('0x2447')](_0x149d4b['query'],_0x544951)[_0x4c9fbd('0x1af5')]);}function _0x46a353(_0x583705,_0x871dfd){const _0x4d3397=_0x519e09;_0x221301[_0x4d3397('0x28e2')]({'controller':_0x4d3397('0x466'),'controllerAs':'vm','templateUrl':_0x40fdd0,'parent':angular['element'](_0x16cb5c['body']),'targetEvent':_0x583705,'clickOutsideToClose':!![],'locals':{'openchannelQueue':_0x871dfd,'openchannelQueues':_0x149d4b[_0x4d3397('0x1cca')][_0x4d3397('0x2319')],'license':_0x149d4b[_0x4d3397('0x1d11')],'setting':_0x149d4b[_0x4d3397('0x1aeb')],'crudPermissions':_0x149d4b[_0x4d3397('0x103e')]}});}function _0x22de4c(_0x1f78a9){const _0x5de236=_0x519e09;_0x261c2e['openchannelQueue']['delete']({'id':_0x1f78a9['id']})[_0x5de236('0x1af5')][_0x5de236('0x17e7')](function(){const _0x382abe=_0x5de236;_0x49cbdd()[_0x382abe('0x5f3')](_0x149d4b['openchannelQueues']['rows'],{'id':_0x1f78a9['id']}),_0x149d4b['openchannelQueues'][_0x382abe('0x335')]-=0x1,!_0x149d4b[_0x382abe('0x1cca')][_0x382abe('0x2319')]['length']&&_0x149d4b[_0x382abe('0x1332')](),_0x1e202['success']({'title':_0x49cbdd()['startCase'](_0x382abe('0x4bd'))+_0x382abe('0x2673'),'msg':_0x1f78a9[_0x382abe('0x2aa')]?_0x1f78a9[_0x382abe('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x5de236('0x16df')](function(_0x2714b1){const _0x111c00=_0x5de236;if(_0x2714b1['data']&&_0x2714b1[_0x111c00('0x1457')][_0x111c00('0x73e')]&&_0x2714b1[_0x111c00('0x1457')]['errors'][_0x111c00('0x1f73')]){_0x149d4b[_0x111c00('0x73e')]=_0x2714b1[_0x111c00('0x1457')][_0x111c00('0x73e')]||[{'message':_0x2714b1[_0x111c00('0x9b6')](),'type':_0x111c00('0x124d')}];for(let _0x5a45cf=0x0;_0x5a45cf<_0x2714b1[_0x111c00('0x1457')][_0x111c00('0x73e')][_0x111c00('0x1f73')];_0x5a45cf++){_0x1e202[_0x111c00('0x1db9')]({'title':_0x2714b1[_0x111c00('0x1457')]['errors'][_0x5a45cf][_0x111c00('0x412')],'msg':_0x2714b1[_0x111c00('0x1457')][_0x111c00('0x73e')][_0x5a45cf][_0x111c00('0x1603')]});}}else _0x1e202[_0x111c00('0x1db9')]({'title':_0x2714b1[_0x111c00('0x11c5')]?'API:'+_0x2714b1['status']+'\x20-\x20'+_0x2714b1[_0x111c00('0x1833')]:_0x111c00('0x124d'),'msg':_0x2714b1[_0x111c00('0x1457')]?JSON[_0x111c00('0x678')](_0x2714b1[_0x111c00('0x1457')][_0x111c00('0x1603')]):_0x2714b1[_0x111c00('0x1603')]||_0x2714b1['toString']()});});}function _0x431367(){const _0x58d455=_0x519e09,_0x5ec00b=angular[_0x58d455('0x14e5')](_0x149d4b['selectedOpenchannelQueues']);return _0x149d4b[_0x58d455('0x2075')]=[],_0x5ec00b;}function _0x2b5066(_0x1dd55f){const _0x5696cb=_0x519e09,_0x390b03=_0x221301['confirm']()['title'](_0x5696cb('0x910'))['htmlContent'](_0x5696cb('0xa53')+_0x149d4b[_0x5696cb('0x2075')][_0x5696cb('0x1f73')]+_0x5696cb('0x145a')+_0x5696cb('0xe9f'))[_0x5696cb('0x2095')](_0x5696cb('0x27f5'))[_0x5696cb('0x104f')](_0x1dd55f)['ok']('OK')[_0x5696cb('0x1d47')](_0x5696cb('0x28a0'));_0x221301[_0x5696cb('0x28e2')](_0x390b03)[_0x5696cb('0x17e7')](function(){const _0x11c13f=_0x5696cb;_0x149d4b[_0x11c13f('0x2075')][_0x11c13f('0xccd')](function(_0x4817ed){_0x22de4c(_0x4817ed);}),_0x149d4b[_0x11c13f('0x2075')]=[];});}function _0x82492b(){const _0x4f90f2=_0x519e09;_0x149d4b[_0x4f90f2('0x2075')]=[];}function _0x32163d(){const _0x20ca9c=_0x519e09;_0x149d4b['selectedOpenchannelQueues']=_0x149d4b['openchannelQueues'][_0x20ca9c('0x2319')];}}const _0x45fab0=_0x2869d8;_0x3966fa[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x3966fa(_0x12bd9d,_0x26e673){const _0x2f2b7d=_0x4376d8;_0x12bd9d[_0x2f2b7d('0x1b9a')](_0x2f2b7d('0x1456'),{'abstract':!![],'url':_0x2f2b7d('0x22c1')})[_0x2f2b7d('0x1b9a')](_0x2f2b7d('0xf26'),{'url':'/openchannelQueues','views':{'content@app':{'templateUrl':_0x16f724,'controller':_0x2f2b7d('0x1103')}},'resolve':{'openchannelQueues':[_0x2f2b7d('0x177'),'Auth',function(_0x2a9340,_0x459c4d){const _0x49b405=_0x2f2b7d;return _0x459c4d['hasRole'](_0x49b405('0x20bf'))?_0x2a9340['resolve'](_0x49b405('0x1ff3'),{'fields':_0x49b405('0x1029'),'sort':_0x49b405('0x1ac6'),'channel':_0x49b405('0x1508'),'limit':0xa,'offset':0x0}):_0x2a9340[_0x49b405('0x898')]('userProfile@getResources',{'id':_0x459c4d[_0x49b405('0x2831')]()['userProfileId'],'section':_0x49b405('0x1dad'),'fields':'createdAt,updatedAt,id,name,strategy,timeout,description','sort':'-updatedAt','channel':_0x49b405('0x1508'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2f2b7d('0x177'),_0x2f2b7d('0x1885'),function(_0x236d54,_0x193610){const _0x21f52c=_0x2f2b7d;return _0x193610['hasRole'](_0x21f52c('0x20bf'))?null:_0x236d54[_0x21f52c('0x898')](_0x21f52c('0x235d'),{'fields':_0x21f52c('0x8d3'),'id':_0x193610[_0x21f52c('0x2831')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x2f2b7d('0x1885'),function(_0x445df6,_0x3713e9){const _0x5c17e5=_0x2f2b7d;return _0x3713e9[_0x5c17e5('0x1ba2')]('admin')?null:_0x445df6[_0x5c17e5('0x898')](_0x5c17e5('0x23e7'),{'fields':_0x5c17e5('0x1134'),'userProfileId':_0x3713e9[_0x5c17e5('0x2831')]()['userProfileId'],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':'openchannel'})[_0x2f2b7d('0x1b9a')](_0x2f2b7d('0x211'),{'url':_0x2f2b7d('0x2370'),'params':{'openchannelQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x449e2f,'controller':_0x2f2b7d('0x16c')}},'resolve':{'openchannelQueue':['apiResolver',_0x2f2b7d('0x118b'),function(_0x155c1c,_0x4f6b9b){const _0x37288e=_0x2f2b7d;return _0x155c1c[_0x37288e('0x898')](_0x37288e('0x1ff3'),{'fields':_0x37288e('0x1029'),'id':_0x4f6b9b['id']});}],'userProfileSection':[_0x2f2b7d('0x177'),'Auth',function(_0x1fb3bc,_0xa2c5d3){const _0x49ec54=_0x2f2b7d;return _0x1fb3bc[_0x49ec54('0x898')](_0x49ec54('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xa2c5d3['getCurrentUser']()[_0x49ec54('0x1e76')],'sectionId':0x321});}]},'authenticate':!![],'permissionId':0x321,'bodyClass':'openchannel'})[_0x2f2b7d('0x1b9a')](_0x2f2b7d('0x126b'),{'url':'/openchannelAccounts','views':{'content@app':{'templateUrl':_0x382a95,'controller':_0x2f2b7d('0x7e')}},'resolve':{'openchannelAccounts':['apiResolver','Auth',function(_0x1c5f95,_0x235ed2){const _0x595ff1=_0x2f2b7d;return _0x235ed2[_0x595ff1('0x1ba2')](_0x595ff1('0x20bf'))?_0x1c5f95[_0x595ff1('0x898')](_0x595ff1('0xcc4'),{'fields':_0x595ff1('0x756'),'sort':_0x595ff1('0x1ac6'),'limit':0xa,'offset':0x0}):_0x1c5f95[_0x595ff1('0x898')](_0x595ff1('0x1164'),{'id':_0x235ed2[_0x595ff1('0x2831')]()['userProfileId'],'section':'OpenchannelAccounts','fields':_0x595ff1('0x756'),'sort':_0x595ff1('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2f2b7d('0x177'),'Auth',function(_0x51d402,_0x477598){const _0x4603bc=_0x2f2b7d;return _0x477598[_0x4603bc('0x1ba2')](_0x4603bc('0x20bf'))?null:_0x51d402[_0x4603bc('0x898')](_0x4603bc('0x235d'),{'fields':_0x4603bc('0x8d3'),'id':_0x477598['getCurrentUser']()[_0x4603bc('0x1e76')]});}],'userProfileSection':[_0x2f2b7d('0x177'),'Auth',function(_0x2db45e,_0x1efc9c){const _0x80ba09=_0x2f2b7d;return _0x1efc9c['hasRole'](_0x80ba09('0x20bf'))?null:_0x2db45e[_0x80ba09('0x898')](_0x80ba09('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1efc9c[_0x80ba09('0x2831')]()[_0x80ba09('0x1e76')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':_0x2f2b7d('0x1508')})['state'](_0x2f2b7d('0x23dd'),{'url':_0x2f2b7d('0x2370'),'params':{'openchannelAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xcca83d,'controller':_0x2f2b7d('0xd12')}},'resolve':{'openchannelAccount':['apiResolver',_0x2f2b7d('0x118b'),function(_0x1f04bc,_0x5108ed){const _0x310fa8=_0x2f2b7d;return _0x1f04bc[_0x310fa8('0x898')](_0x310fa8('0xcc4'),{'fields':'createdAt,updatedAt,id,name,key,token,replyUri,ListId,waitForTheAssignedAgent,mapKey,mandatoryDisposition,mandatoryDispositionPauseId,description,receiveUri,notificationSound,notificationShake,notificationTemplate,queueTransfer,queueTransferTimeout,agentTransfer,agentTransferTimeout','id':_0x5108ed['id']});}],'userProfileSection':['apiResolver',_0x2f2b7d('0x1885'),function(_0x3cab90,_0xc38de6){const _0x578e44=_0x2f2b7d;return _0x3cab90['resolve'](_0x578e44('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0xc38de6[_0x578e44('0x2831')]()[_0x578e44('0x1e76')],'sectionId':0x322});}]},'authenticate':!![],'permissionId':0x322,'bodyClass':'openchannel'}),_0x26e673[_0x2f2b7d('0x10b3')](_0x2f2b7d('0x240a'));}angular['module'](_0x4376d8('0x1456'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),'flow','mdColorPicker',_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),'mwFormUtils','ngclipboard',_0x4376d8('0x3c4'),'ngEmbed',_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),_0x4376d8('0x20bc')])[_0x4376d8('0x1980')](_0x3966fa)['controller'](_0x4376d8('0x159f'),_0x1d2063)[_0x4376d8('0x5ce')](_0x4376d8('0x257e'),_0x39c45a)[_0x4376d8('0x5ce')](_0x4376d8('0xb13'),_0x2bc20b)[_0x4376d8('0x5ce')](_0x4376d8('0x120e'),_0x254fa4)[_0x4376d8('0x5ce')]('EditOpenchannelAccountAppamazonlexDialogController',_0x1badef)['controller']('EditOpenchannelAccountAppautoreplyDialogController',_0x28521a)[_0x4376d8('0x5ce')](_0x4376d8('0x23b3'),_0xacf021)[_0x4376d8('0x5ce')]('EditOpenchannelAccountAppdialogflowDialogController',_0x1bcded)['controller'](_0x4376d8('0xcd1'),_0x451e90)['controller'](_0x4376d8('0x1da1'),_0x344a38)[_0x4376d8('0x5ce')]('EditOpenchannelAccountAppintervalDialogController',_0x2c904c)[_0x4376d8('0x5ce')](_0x4376d8('0x1ff'),_0x35d30d)['controller']('EditOpenchannelAccountAppqueueDialogController',_0x3bbd78)[_0x4376d8('0x5ce')]('EditOpenchannelAccountAppsystemDialogController',_0x2ff7d4)[_0x4376d8('0x5ce')](_0x4376d8('0x26fa'),_0x2bc021)[_0x4376d8('0x5ce')]('OpenchannelAccountInteractionsController',_0x348cfa)[_0x4376d8('0x5ce')](_0x4376d8('0x754'),_0x5f3238)[_0x4376d8('0x5ce')](_0x4376d8('0x1758'),_0x4fcf58)[_0x4376d8('0x5ce')](_0x4376d8('0x2333'),_0x443959)[_0x4376d8('0x5ce')](_0x4376d8('0x1616'),_0x1ab225)['controller']('OpenchannelAccountsController',_0x173ec3)[_0x4376d8('0x5ce')](_0x4376d8('0x466'),_0x1eaae2)['controller'](_0x4376d8('0x104c'),_0x117786)[_0x4376d8('0x5ce')]('OpenchannelQueueteamaddController',_0xccda16)[_0x4376d8('0x5ce')](_0x4376d8('0xa17'),_0x4b8a03)['controller']('OpenchannelQueuesController',_0x45fab0);const _0x369ef1=_0x4cf2bc['p']+_0x4376d8('0x14a2'),_0x2ca541=_0x4cf2bc['p']+_0x4376d8('0x20e3'),_0x52f87b=_0x4cf2bc['p']+_0x4376d8('0x1e4c'),_0x180cb6=_0x4cf2bc['p']+_0x4376d8('0x2492'),_0x34e15e=_0x4cf2bc['p']+_0x4376d8('0x2101'),_0x570a11=_0x4cf2bc['p']+_0x4376d8('0x1b15'),_0xf8c421=_0x4cf2bc['p']+_0x4376d8('0x1a3e'),_0xfb8d28=_0x4cf2bc['p']+_0x4376d8('0x1d9e'),_0x44b612=_0x4cf2bc['p']+'src/js/modules/main/apps/fax/views/realtime/accounts/view.html/view.html';_0x5504a7['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$document','$state',_0x4376d8('0x212e'),'socket',_0x4376d8('0x108a'),'faxAccounts',_0x4376d8('0x264f'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885')];function _0x5504a7(_0x3e2b0c,_0x48ca52,_0x528da7,_0x1fecc8,_0x49112f,_0x3c1039,_0x5d7214,_0x48d6e6,_0xc2213d,_0x459e3f,_0x49add8,_0x244782,_0x5c0f9d){const _0x2f0f1c=_0x4376d8,_0x2ab9d1=this;_0x2ab9d1[_0x2f0f1c('0x197c')]=_0x5c0f9d[_0x2f0f1c('0x2831')](),_0x2ab9d1[_0x2f0f1c('0x335')]=_0xc2213d&&_0xc2213d[_0x2f0f1c('0x335')]?_0xc2213d[_0x2f0f1c('0x335')]:0x0,_0x2ab9d1[_0x2f0f1c('0xec4')]=_0xc2213d?_0x49cbdd()[_0x2f0f1c('0x8de')](_0xc2213d[_0x2f0f1c('0x2319')]?_0xc2213d['rows']:[],'id'):{},_0x2ab9d1[_0x2f0f1c('0x264f')]=_0x459e3f?_0x49cbdd()[_0x2f0f1c('0x8de')](_0x459e3f['rows']?_0x459e3f[_0x2f0f1c('0x2319')]:[],'id'):{},_0x2ab9d1[_0x2f0f1c('0xdeb')]=_0x49add8,_0x2ab9d1[_0x2f0f1c('0x383')]=_0x244782&&_0x244782[_0x2f0f1c('0x335')]==0x1?_0x244782[_0x2f0f1c('0x2319')][0x0]:null,_0x2ab9d1[_0x2f0f1c('0x103e')]=_0x5c0f9d[_0x2f0f1c('0x17a9')](_0x2ab9d1['userProfileSection']?_0x2ab9d1[_0x2f0f1c('0x383')][_0x2f0f1c('0x103e')]:null),_0x2ab9d1[_0x2f0f1c('0x826')]={'sort':_0x2f0f1c('0x2385'),'limit':0xa,'page':0x1},_0x2ab9d1[_0x2f0f1c('0x130d')]=_0xbd97be,_0x2ab9d1['$onInit']=_0xf2a327,_0x2ab9d1[_0x2f0f1c('0x17d7')]=_0x23d279,_0x2ab9d1[_0x2f0f1c('0xfd5')]=_0x5cf8b6,_0x2ab9d1[_0x2f0f1c('0x50f')]=_0x1e4624,_0x2ab9d1[_0x2f0f1c('0x33f')]=_0x38550f,_0x2ab9d1[_0x2f0f1c('0x1e36')]=[],_0x49cbdd()[_0x2f0f1c('0x1857')](_0x2ab9d1[_0x2f0f1c('0xec4')],function(_0x417f7f){const _0x1fe2d4=_0x2f0f1c;_0x2ab9d1[_0x1fe2d4('0x1e36')][_0x1fe2d4('0x269f')](_0x417f7f['id']);}),_0x5d7214['on']('faxAccount:save',_0x2ab9d1['onSave']),_0x5d7214['on'](_0x2f0f1c('0x228e'),_0x2ab9d1[_0x2f0f1c('0xfd5')]),_0x5d7214['on'](_0x2f0f1c('0x1ab9'),_0x2ab9d1[_0x2f0f1c('0x50f')]);function _0xf2a327(){const _0x309d14=_0x2f0f1c;_0x49cbdd()[_0x309d14('0x1857')](_0x2ab9d1[_0x309d14('0xec4')],function(_0x4e42ac,_0x4bcf71){const _0x25826b=_0x309d14;_0x2ab9d1[_0x25826b('0x264f')][_0x4bcf71]&&_0x49cbdd()[_0x25826b('0x1ced')](_0x4e42ac,_0x2ab9d1['rpcFaxAccounts'][_0x4bcf71]);}),_0x49cbdd()[_0x309d14('0x1857')](_0x2ab9d1[_0x309d14('0xec4')],function(_0x8d772,_0x1de967){const _0xcd70a0=_0x309d14,_0x5c83c4={'id':_0x1de967,'sort':'-id','direction':'in','limit':0x1,'offset':0x0,'$gte':_0xcd70a0('0x276')+_0x107a13()()[_0xcd70a0('0x161c')](_0xcd70a0('0x26d6'))[_0xcd70a0('0x1c0d')](_0xcd70a0('0x1e17'))};_0x3c1039[_0xcd70a0('0x119')][_0xcd70a0('0x18e0')](_0x5c83c4)[_0xcd70a0('0x1af5')]['then'](function(_0x2d2ed1){const _0x21047c=_0xcd70a0;return _0x2d2ed1&&(_0x8d772['in']=_0x2d2ed1[_0x21047c('0x335')]||0x0,_0x8d772[_0x21047c('0x9ed')]=_0x2d2ed1[_0x21047c('0x2319')]&&_0x2d2ed1[_0x21047c('0x2319')][_0x21047c('0x1f73')]?_0x2d2ed1[_0x21047c('0x2319')][0x0][_0x21047c('0x7c9')]:undefined),_0x5c83c4['direction']=_0x21047c('0x1e1a'),_0x3c1039[_0x21047c('0x119')][_0x21047c('0x18e0')](_0x5c83c4)[_0x21047c('0x1af5')];})[_0xcd70a0('0x17e7')](function(_0x461921){const _0x1167f4=_0xcd70a0;_0x461921&&(_0x8d772['out']=_0x461921[_0x1167f4('0x335')]||0x0,_0x8d772[_0x1167f4('0x7d8')]=_0x461921['rows']&&_0x461921['rows'][_0x1167f4('0x1f73')]?_0x461921['rows'][0x0][_0x1167f4('0x7c9')]:undefined);})[_0xcd70a0('0x16df')](function(_0x48d31c){const _0x57a24d=_0xcd70a0;console[_0x57a24d('0x1d63')](_0x48d31c);});});}function _0x5cf8b6(_0x4fed80){const _0x3f19c8=_0x2f0f1c;_0x2ab9d1[_0x3f19c8('0xec4')][_0x4fed80['id']]&&_0x49cbdd()[_0x3f19c8('0x1ced')](_0x2ab9d1[_0x3f19c8('0xec4')][_0x4fed80['id']],_0x4fed80);}function _0x1e4624(_0x58998b){const _0x222e1a=_0x2f0f1c;_0x2ab9d1['faxAccounts'][_0x58998b['FaxAccountId']]&&(_0x58998b[_0x222e1a('0x733')]=='in'?(_0x2ab9d1[_0x222e1a('0xec4')][_0x58998b['FaxAccountId']]['in']+=0x1,_0x2ab9d1[_0x222e1a('0xec4')][_0x58998b[_0x222e1a('0x24f9')]][_0x222e1a('0x9ed')]=_0x58998b[_0x222e1a('0x7c9')]):(_0x2ab9d1[_0x222e1a('0xec4')][_0x58998b['FaxAccountId']][_0x222e1a('0x1e1a')]+=0x1,_0x2ab9d1[_0x222e1a('0xec4')][_0x58998b[_0x222e1a('0x24f9')]]['lastOut']=_0x58998b[_0x222e1a('0x7c9')]));}function _0x38550f(_0xbe7212,_0x48a062){_0x49112f['go']('app.fax.faxAccounts.edit',{'id':_0x48a062['id'],'faxAccount':_0x48a062});}let _0x478391=!![],_0x3062fd=0x1;_0x3e2b0c[_0x2f0f1c('0x620')]('vm.query.filter',function(_0x13babe,_0x3587ab){const _0x5a731e=_0x2f0f1c;_0x478391?_0x48ca52(function(){_0x478391=![];}):(!_0x3587ab&&(_0x3062fd=_0x2ab9d1[_0x5a731e('0x826')][_0x5a731e('0x115a')]),_0x13babe!==_0x3587ab&&(_0x2ab9d1['query'][_0x5a731e('0x115a')]=0x1),!_0x13babe&&(_0x2ab9d1['query'][_0x5a731e('0x115a')]=_0x3062fd),_0x2ab9d1[_0x5a731e('0x17d7')]());});function _0xbd97be(_0x458fe8){const _0x4229b7=_0x2f0f1c;_0x2ab9d1[_0x4229b7('0xec4')]=_0x458fe8?_0x49cbdd()[_0x4229b7('0x8de')](_0x458fe8[_0x4229b7('0x2319')]?_0x458fe8[_0x4229b7('0x2319')]:[],'id'):{};if(_0x458fe8[_0x4229b7('0x2319')]){_0x2ab9d1[_0x4229b7('0x1e36')]=[];for(let _0x3ab9c9=0x0;_0x3ab9c9<_0x458fe8[_0x4229b7('0x2319')][_0x4229b7('0x1f73')];_0x3ab9c9++){_0x2ab9d1['order'][_0x4229b7('0x269f')](_0x458fe8[_0x4229b7('0x2319')][_0x3ab9c9]['id']);}}_0xf2a327();}function _0x23d279(){const _0x1210db=_0x2f0f1c;_0x2ab9d1[_0x1210db('0x826')][_0x1210db('0xf19')]=(_0x2ab9d1[_0x1210db('0x826')][_0x1210db('0x115a')]-0x1)*_0x2ab9d1[_0x1210db('0x826')][_0x1210db('0x193b')],_0x5c0f9d[_0x1210db('0x1ba2')](_0x1210db('0x20bf'))?_0x2ab9d1[_0x1210db('0x1691')]=_0x3c1039['faxAccount'][_0x1210db('0x1c53')](_0x2ab9d1[_0x1210db('0x826')],_0xbd97be)['$promise']:(_0x2ab9d1[_0x1210db('0x826')]['id']=_0x2ab9d1[_0x1210db('0xdeb')]['id'],_0x2ab9d1[_0x1210db('0x826')]['section']='FaxAccounts',_0x2ab9d1['promise']=_0x3c1039[_0x1210db('0xdeb')][_0x1210db('0x2447')](_0x2ab9d1[_0x1210db('0x826')],_0xbd97be)[_0x1210db('0x1af5')]);}_0x3e2b0c[_0x2f0f1c('0x207c')](_0x2f0f1c('0x2b4'),function(){const _0x35395b=_0x2f0f1c;_0x5d7214['removeAllListeners']('faxAccount:save'),_0x5d7214[_0x35395b('0x1c65')](_0x35395b('0x228e')),_0x5d7214[_0x35395b('0x1c65')]('faxMessage:save');});}const _0x126405=_0x5504a7;_0x353984[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$q',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x54a'),_0x4376d8('0x1492'),_0x4376d8('0x25ea'),_0x4376d8('0x1593'),'api',_0x4376d8('0x25aa'),'toasty',_0x4376d8('0x628'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x33a')];function _0x353984(_0x43cb89,_0x7fa65d,_0x645d0e,_0x4d5cae,_0x47b2f1,_0xe534d9,_0x4bfe07,_0x4f0ebb,_0x367cef,_0x53ef71,_0x4a938a,_0x250632,_0xff00ff,_0x441965,_0x3a8a87,_0x3246ee,_0x402e7a,_0x16f225){const _0x418a84=_0x4376d8,_0xa2c702=this,_0x31c964=[_0x418a84('0x25b1'),_0x418a84('0x1872'),_0x418a84('0x341'),_0x418a84('0x110a'),_0x418a84('0x11ec'),_0x418a84('0x110a'),_0x418a84('0xe3e'),_0x418a84('0x15'),_0x418a84('0x2764'),_0x418a84('0x105e'),_0x418a84('0x1467'),_0x418a84('0x483'),_0x418a84('0x185b'),_0x418a84('0x1d98'),_0x418a84('0x118a'),_0x418a84('0x1b1a'),_0x418a84('0xe99'),'mailCapacity',_0x418a84('0x16f4'),_0x418a84('0x1676'),_0x418a84('0x3f4'),_0x418a84('0x139'),'openchannelCurrentCapacity',_0x418a84('0x12e7'),_0x418a84('0x1c68'),_0x418a84('0x1798'),_0x418a84('0x154f'),'chatStatus',_0x418a84('0x200c'),'mailStatus',_0x418a84('0x30'),_0x418a84('0x38d'),_0x418a84('0x14b9'),'voiceStatus','chatStatusTime',_0x418a84('0x18b1'),'mailStatusTime',_0x418a84('0x893'),_0x418a84('0x1e2a'),_0x418a84('0xbdb'),_0x418a84('0x1b1d'),_0x418a84('0x1bd'),_0x418a84('0xce0'),_0x418a84('0xf1a'),'phoneBarEnableScreenRecordingByAgent',_0x418a84('0xa0d')],_0x35d6f0=[_0x418a84('0x2764'),'openchannelPause',_0x418a84('0x1467'),'smsPause',_0x418a84('0x185b'),_0x418a84('0x1d98'),'voicePause',_0x418a84('0x1872')];_0xa2c702[_0x418a84('0x197c')]=_0x3246ee[_0x418a84('0x2831')](),_0xa2c702[_0x418a84('0x232c')]=[_0x418a84('0x1589'),_0x418a84('0x1166'),'busy','onhold',_0x418a84('0x8d0')],_0xa2c702[_0x418a84('0x1492')]=_0x4bfe07||{'count':0x0,'rows':[]},_0xa2c702[_0x418a84('0x1d11')]=_0x402e7a,_0xa2c702[_0x418a84('0xdeb')]=_0x441965,_0xa2c702['userProfileSection']=_0x3a8a87&&_0x3a8a87[_0x418a84('0x335')]==0x1?_0x3a8a87['rows'][0x0]:null,_0xa2c702[_0x418a84('0x103e')]=_0x3246ee[_0x418a84('0x17a9')](_0xa2c702[_0x418a84('0x383')]?_0xa2c702[_0x418a84('0x383')][_0x418a84('0x103e')]:null),_0xa2c702['agents']=_0x4f0ebb?_0x49cbdd()[_0x418a84('0x8de')](_0x4f0ebb[_0x418a84('0x2319')]?_0x4f0ebb[_0x418a84('0x2319')]:[],'id'):{},_0xa2c702['rpcAgents']=_0x367cef?_0x49cbdd()[_0x418a84('0x8de')](_0x367cef['rows']?_0x367cef[_0x418a84('0x2319')]:[],'id'):{},_0xa2c702[_0x418a84('0x219a')]={},_0xa2c702[_0x418a84('0xae2')]=![],_0xa2c702[_0x418a84('0x1e36')]=[],_0xa2c702[_0x418a84('0x20a5')]={};for(const _0x5368d8 in _0xa2c702[_0x418a84('0x25ea')]){typeof _0xa2c702[_0x418a84('0x25ea')][_0x5368d8]!=='undefined'&&(_0xa2c702[_0x418a84('0x25ea')][_0x5368d8][_0x418a84('0x161d')]=!![]);}_0xa2c702[_0x418a84('0x826')]={'limit':0xa,'page':0x1,'order':_0x418a84('0xea6'),'globalStatusFilter':'','pauseTypeFilter':''},_0xa2c702[_0x418a84('0xff8')]=_0x12b7e5,_0xa2c702[_0x418a84('0x18ba')]=_0x2838c7,_0xa2c702[_0x418a84('0x267a')]=_0x341e87,_0xa2c702['unPause']=_0x45cd41,_0xa2c702[_0x418a84('0x3eb')]=_0x1671c0,_0xa2c702[_0x418a84('0x7f6')]=_0x43fa15,_0xa2c702[_0x418a84('0x21a0')]=_0x2f6096,_0xa2c702[_0x418a84('0x5b9')]=_0x3f87db,_0xa2c702[_0x418a84('0x160d')]=_0x39297c,_0xa2c702[_0x418a84('0x179b')]=_0x30beb5,_0xa2c702['onSave']=_0xa80ffd,_0xa2c702[_0x418a84('0x1fc4')]=_0x430167,_0xa2c702[_0x418a84('0xdf0')]=_0x1c4f90,_0xa2c702['onConnect']=_0x330d9e,_0xa2c702[_0x418a84('0x1ccb')]=_0x48a64f,_0xa2c702[_0x418a84('0x1375')]=_0x1d96cd,_0x4a938a['on'](_0x418a84('0x21a2'),_0xa2c702[_0x418a84('0xfd5')]),_0x4a938a['on'](_0x418a84('0x284f'),_0xa2c702[_0x418a84('0x1fc4')]),_0x4a938a['on'](_0x418a84('0x1a5'),_0xa2c702[_0x418a84('0x410')]),_0x4a938a['on']('user:agentcomplete',_0xa2c702[_0x418a84('0x1ccb')]),_0x1c4f90();let _0x255e63=_0x16f225(function(){const _0x37f3f2=_0x418a84;_0xa2c702[_0x37f3f2('0xae2')]&&(_0xa2c702[_0x37f3f2('0xae2')]=![],_0x1c4f90());},0x3e7);function _0x1c4f90(){const _0x333fa3=_0x418a84;_0xa2c702[_0x333fa3('0xae2')]=![];const _0xd9ca12=_0x7fa65d['defer']();_0xa2c702[_0x333fa3('0x1691')]=_0xd9ca12[_0x333fa3('0x1691')],_0xa2c702[_0x333fa3('0x1b79')]=[],_0xa2c702[_0x333fa3('0x1e36')]=[],_0x49cbdd()[_0x333fa3('0x1857')](_0xa2c702['agents'],function(_0xc30446,_0x1f6bc0){const _0x6c3ae4=_0x333fa3;_0xa2c702[_0x6c3ae4('0x1593')][_0x1f6bc0]&&_0x49cbdd()['merge'](_0xc30446,_0x49cbdd()['pick'](_0x49cbdd()[_0x6c3ae4('0x15c3')](_0xa2c702[_0x6c3ae4('0x1593')][_0x1f6bc0],_0x35d6f0),_0x31c964)),_0x2f6096(_0xc30446),_0xc30446[_0x6c3ae4('0x1872')]?(_0xa2c702[_0x6c3ae4('0x1b79')]['push'](_0xc30446),_0xa2c702[_0x6c3ae4('0x20a5')][_0xc30446[_0x6c3ae4('0xe3e')]]=_0x1f6bc0):_0xc30446['globalStatusTime']=_0x49cbdd()['toNumber'](_0x107a13()()['format']('x'));});_0xa2c702['query'][_0x333fa3('0x14f9')]&&_0x49cbdd()[_0x333fa3('0x5f3')](_0xa2c702[_0x333fa3('0x1b79')],function(_0x50bf17){const _0x524ca0=_0x333fa3;return _0x50bf17[_0x524ca0('0xf45')]!==_0xa2c702[_0x524ca0('0x826')][_0x524ca0('0x14f9')];});_0xa2c702[_0x333fa3('0x826')][_0x333fa3('0x44f')]&&_0x49cbdd()[_0x333fa3('0x5f3')](_0xa2c702[_0x333fa3('0x1b79')],function(_0x2e99f5){const _0x3ecb26=_0x333fa3;return _0x2e99f5[_0x3ecb26('0x11ec')]!==_0xa2c702['query'][_0x3ecb26('0x44f')];});_0xa2c702[_0x333fa3('0x826')][_0x333fa3('0x2483')]&&_0x49cbdd()[_0x333fa3('0x5f3')](_0xa2c702[_0x333fa3('0x1b79')],function(_0x2ee4cd){const _0x26cf0d=_0x333fa3;return _0x2ee4cd[_0x26cf0d('0xea6')][_0x26cf0d('0x19b')]()[_0x26cf0d('0x2567')](_0xa2c702['query'][_0x26cf0d('0x2483')]['toLowerCase']())<0x0;});_0xa2c702[_0x333fa3('0x1b79')]=_0x78d1b3(_0xa2c702['filteredAgents']);const _0x36edb9=(_0xa2c702[_0x333fa3('0x826')]['page']-0x1)*_0xa2c702[_0x333fa3('0x826')][_0x333fa3('0x193b')];_0xa2c702[_0x333fa3('0x219a')]=_0x49cbdd()['drop'](_0xa2c702['filteredAgents'],_0x36edb9)[_0x333fa3('0x275f')](0x0,_0xa2c702[_0x333fa3('0x826')]['limit']);for(let _0x49f3bc=0x0;_0x49f3bc<_0xa2c702[_0x333fa3('0x219a')]['length'];_0x49f3bc+=0x1){_0xa2c702[_0x333fa3('0x1e36')][_0x333fa3('0x269f')](_0xa2c702[_0x333fa3('0x219a')][_0x49f3bc]['id']);}_0xd9ca12[_0x333fa3('0x898')](),_0xa2c702[_0x333fa3('0xae2')]=!![];}function _0xa80ffd(_0x4049f8){const _0x103b3e=_0x418a84;_0xa2c702['agents'][_0x4049f8['id']]&&(_0x49cbdd()['merge'](_0xa2c702[_0x103b3e('0x25ea')][_0x4049f8['id']],_0x49cbdd()[_0x103b3e('0x230a')](_0x49cbdd()[_0x103b3e('0x15c3')](_0x4049f8,_0x35d6f0),_0x31c964)),_0x49cbdd()[_0x103b3e('0x1ced')](_0xa2c702[_0x103b3e('0x1593')][_0x4049f8['id']],_0x49cbdd()[_0x103b3e('0x230a')](_0x49cbdd()[_0x103b3e('0x15c3')](_0x4049f8,_0x35d6f0),_0x31c964)),_0x2f6096(_0xa2c702['agents'][_0x4049f8['id']]));}function _0x430167(_0x352cdc){const _0x3f2381=_0x418a84;_0xa2c702[_0x3f2381('0x25ea')][_0x352cdc['id']]&&(_0x49cbdd()[_0x3f2381('0x1ced')](_0xa2c702['agents'][_0x352cdc['id']],_0x49cbdd()[_0x3f2381('0x230a')](_0x352cdc,_0x31c964)),_0x49cbdd()[_0x3f2381('0x1ced')](_0xa2c702['rpcAgents'][_0x352cdc['id']],_0x49cbdd()[_0x3f2381('0x230a')](_0x352cdc,_0x31c964)),_0x352cdc[_0x3f2381('0x110a')]&&(_0xa2c702[_0x3f2381('0x25ea')][_0x352cdc['id']][_0x3f2381('0x22cb')]=_0x352cdc['lastPauseAt'],_0xa2c702[_0x3f2381('0x1593')][_0x352cdc['id']][_0x3f2381('0x22cb')]=_0x352cdc['lastPauseAt']),_0x2f6096(_0xa2c702[_0x3f2381('0x25ea')][_0x352cdc['id']]));}function _0x330d9e(_0x5417e9){const _0x57cd04=_0x418a84;_0xa2c702[_0x57cd04('0x25ea')][_0xa2c702['agentInternal'][_0x5417e9[_0x57cd04('0x1177')]]]&&(_0x49cbdd()[_0x57cd04('0x1ced')](_0xa2c702[_0x57cd04('0x25ea')][_0xa2c702['agentInternal'][_0x5417e9['destaccountcode']]],_0x49cbdd()[_0x57cd04('0x230a')](_0x5417e9,['queue',_0x57cd04('0xce0')])),_0x49cbdd()[_0x57cd04('0x1ced')](_0xa2c702[_0x57cd04('0x1593')][_0xa2c702[_0x57cd04('0x20a5')][_0x5417e9['destaccountcode']]],_0x49cbdd()[_0x57cd04('0x230a')](_0x5417e9,['queue',_0x57cd04('0xce0')])));}function _0x48a64f(_0x351f9c){const _0x3ac391=_0x418a84;_0xa2c702[_0x3ac391('0x25ea')][_0xa2c702[_0x3ac391('0x20a5')][_0x351f9c[_0x3ac391('0x1177')]]]&&(_0xa2c702['agents'][_0xa2c702[_0x3ac391('0x20a5')][_0x351f9c[_0x3ac391('0x1177')]]]=_0x49cbdd()[_0x3ac391('0x15c3')](_0xa2c702[_0x3ac391('0x25ea')][_0xa2c702[_0x3ac391('0x20a5')][_0x351f9c[_0x3ac391('0x1177')]]],[_0x3ac391('0x1bd'),_0x3ac391('0xce0')]),_0xa2c702[_0x3ac391('0x1593')][_0xa2c702[_0x3ac391('0x20a5')][_0x351f9c[_0x3ac391('0x1177')]]]=_0x49cbdd()[_0x3ac391('0x15c3')](_0xa2c702[_0x3ac391('0x1593')][_0xa2c702[_0x3ac391('0x20a5')][_0x351f9c[_0x3ac391('0x1177')]]],['queue',_0x3ac391('0xce0')]));}function _0x12b7e5(_0x1a18f3){const _0x588988=_0x418a84;return _0x53ef71['user'][_0x588988('0xff8')]({'id':_0x1a18f3['id'],'device':_0x588988('0x20c8'),'agent_id':_0x1a18f3['id'],'agent_name':_0x1a18f3[_0x588988('0x2aa')]})[_0x588988('0x1af5')][_0x588988('0x17e7')](function(){const _0x3e5a24=_0x588988;_0x250632['success']({'title':_0x3e5a24('0x686'),'msg':_0x1a18f3[_0x3e5a24('0xea6')]+_0x3e5a24('0xe21')}),_0xa2c702[_0x3e5a24('0x25ea')][_0x1a18f3['id']]&&(_0xa2c702['agents'][_0x1a18f3['id']][_0x3e5a24('0x1872')]=![]),_0xa2c702['rpcAgents'][_0x1a18f3['id']]&&(_0xa2c702[_0x3e5a24('0x1593')][_0x1a18f3['id']]['online']=![]),_0x1c4f90();})[_0x588988('0x16df')](function(_0x30628f){const _0x15ce6b=_0x588988;_0x250632[_0x15ce6b('0x1db9')]({'title':_0x30628f[_0x15ce6b('0x11c5')]?'API:'+_0x30628f[_0x15ce6b('0x11c5')]+_0x15ce6b('0x16e4')+_0x30628f[_0x15ce6b('0x1833')]:_0x15ce6b('0x18ea'),'msg':_0x30628f['data']?JSON[_0x15ce6b('0x678')](_0x30628f[_0x15ce6b('0x1457')][_0x15ce6b('0x1603')]):_0x30628f[_0x15ce6b('0x9b6')]()});});}function _0x341e87(_0x4c021a,_0x33333e){const _0x5d6a36=_0x418a84;return _0x53ef71[_0x5d6a36('0x221e')][_0x5d6a36('0x267a')]({'id':_0x4c021a['id'],'type':_0x33333e})[_0x5d6a36('0x1af5')][_0x5d6a36('0x17e7')](function(_0x505cc6){const _0x1b926c=_0x5d6a36;_0xa2c702[_0x1b926c('0x25ea')][_0x4c021a['id']]&&_0x49cbdd()[_0x1b926c('0x1ced')](_0xa2c702[_0x1b926c('0x25ea')][_0x4c021a['id']],_0x49cbdd()[_0x1b926c('0x230a')](_0x505cc6,_0x31c964)),_0xa2c702[_0x1b926c('0x1593')][_0x4c021a['id']]&&_0x49cbdd()[_0x1b926c('0x1ced')](_0xa2c702['rpcAgents'][_0x4c021a['id']],_0x49cbdd()[_0x1b926c('0x230a')](_0x505cc6,_0x31c964)),_0x2f6096(_0xa2c702[_0x1b926c('0x25ea')][_0x4c021a['id']]);})['catch'](function(_0x3dd95e){const _0xe54fc9=_0x5d6a36;_0x250632['error']({'title':_0x3dd95e['status']?_0xe54fc9('0x14f7')+_0x3dd95e[_0xe54fc9('0x11c5')]+_0xe54fc9('0x16e4')+_0x3dd95e[_0xe54fc9('0x1833')]:'api.staff.save','msg':_0x3dd95e['data']?JSON['stringify'](_0x3dd95e['data']['message']):_0x3dd95e[_0xe54fc9('0x9b6')]()});});}function _0x45cd41(_0x47aa83){const _0x215c56=_0x418a84;return _0x53ef71[_0x215c56('0x221e')]['unpause']({'id':_0x47aa83['id']})[_0x215c56('0x1af5')]['then'](function(_0xaf7751){const _0x5e3cc6=_0x215c56;_0xa2c702[_0x5e3cc6('0x25ea')][_0x47aa83['id']]&&_0x49cbdd()[_0x5e3cc6('0x1ced')](_0xa2c702[_0x5e3cc6('0x25ea')][_0x47aa83['id']],_0x49cbdd()[_0x5e3cc6('0x230a')](_0xaf7751,_0x31c964)),_0xa2c702[_0x5e3cc6('0x1593')][_0x47aa83['id']]&&_0x49cbdd()['merge'](_0xa2c702[_0x5e3cc6('0x1593')][_0x47aa83['id']],_0x49cbdd()[_0x5e3cc6('0x230a')](_0xaf7751,_0x31c964)),_0x2f6096(_0xa2c702[_0x5e3cc6('0x25ea')][_0x47aa83['id']]);})['catch'](function(_0x5d6741){const _0x3563ea=_0x215c56;_0x250632[_0x3563ea('0x1db9')]({'title':_0x5d6741[_0x3563ea('0x11c5')]?_0x3563ea('0x14f7')+_0x5d6741[_0x3563ea('0x11c5')]+_0x3563ea('0x16e4')+_0x5d6741['statusText']:_0x3563ea('0x18ea'),'msg':_0x5d6741[_0x3563ea('0x1457')]?JSON[_0x3563ea('0x678')](_0x5d6741[_0x3563ea('0x1457')][_0x3563ea('0x1603')]):_0x5d6741['toString']()});});}function _0x1671c0(_0xdab820){const _0x18b9ea=_0x418a84;_0x4d5cae['show'](_0x4d5cae[_0x18b9ea('0x99f')]()[_0x18b9ea('0x2f4')](!![])[_0x18b9ea('0x24d3')](_0x18b9ea('0x5b8'))[_0x18b9ea('0x211f')](_0x18b9ea('0xf9f'))['ok']('Ok')[_0x18b9ea('0x104f')](_0xdab820));}function _0x2838c7(_0x2df285,_0xd1cddf){const _0x3e18b3=_0x418a84;_0x4d5cae[_0x3e18b3('0x28e2')]({'controller':'AgentqueueaddController','controllerAs':'vm','templateUrl':_0x5e8625,'parent':angular[_0x3e18b3('0x1ce1')](_0x47b2f1[_0x3e18b3('0x13aa')]),'targetEvent':_0xd1cddf,'clickOutsideToClose':!![],'locals':{'agent':_0x2df285,'agents':[],'channel':_0x3e18b3('0xc23'),'direction':'inbound','crudPermissions':_0xa2c702[_0x3e18b3('0x103e')]}});}function _0x3f87db(_0x292ed8){const _0x39a624=_0x418a84;return _0x292ed8==='pause'||_0x292ed8===_0x39a624('0x1998');}function _0x39297c(_0xb86bbe){const _0x5d32a9=_0x418a84;return _0xb86bbe===_0x5d32a9('0x267a');}function _0x30beb5(_0x49307c){return _0x49307c==='*pause';}function _0x7b5a29(_0x5cb1dd){const _0x59d7ff=_0x418a84;return _0x5cb1dd==='idle'||_0x5cb1dd===_0x59d7ff('0xf10')||_0x5cb1dd==='unavailable'||_0x5cb1dd===_0x59d7ff('0x1589')||_0x49cbdd()[_0x59d7ff('0x390')](_0x5cb1dd);}function _0x43fa15(_0x29708d,_0x16d804){const _0x259f93=_0x418a84;if(_0x16d804===_0x259f93('0x1fe1')){if(_0x29708d[_0x16d804+'Status']!==_0x259f93('0x1ff2'))return _0x29708d[_0x16d804+'Status'];if(_0x29708d[_0x16d804+_0x259f93('0x5d5')])return _0x29708d[_0x16d804+'Status']='pause','pause';return _0x259f93('0x1ff2');}else{if(_0x29708d[_0x16d804+_0x259f93('0x5d5')])return _0x29708d[_0x16d804+'Status']=_0x259f93('0x267a'),_0x259f93('0x267a');return _0x29708d[_0x16d804+_0x259f93('0x51c')];}}function _0x2f6096(_0x59eb4e){const _0x52eae1=_0x418a84;let _0x4d97ed=_0x52eae1('0xf10');if(_0x49cbdd()[_0x52eae1('0x12df')]([_0x43fa15(_0x59eb4e,_0x52eae1('0x1fe1')),_0x43fa15(_0x59eb4e,_0x52eae1('0x2219')),_0x43fa15(_0x59eb4e,_0x52eae1('0xc2')),_0x43fa15(_0x59eb4e,_0x52eae1('0x1508')),_0x43fa15(_0x59eb4e,_0x52eae1('0x2cd')),_0x43fa15(_0x59eb4e,_0x52eae1('0x1d27')),_0x43fa15(_0x59eb4e,_0x52eae1('0xc23'))],_0x3f87db))_0x4d97ed=_0x52eae1('0x267a');else{if(_0x49cbdd()[_0x52eae1('0x26f8')]([_0x43fa15(_0x59eb4e,_0x52eae1('0x1fe1')),_0x43fa15(_0x59eb4e,'chat'),_0x43fa15(_0x59eb4e,_0x52eae1('0xc2')),_0x43fa15(_0x59eb4e,'openchannel'),_0x43fa15(_0x59eb4e,_0x52eae1('0x2cd')),_0x43fa15(_0x59eb4e,_0x52eae1('0x1d27')),_0x43fa15(_0x59eb4e,_0x52eae1('0xc23'))],_0x3f87db))_0x4d97ed=_0x52eae1('0x1998');else _0x49cbdd()[_0x52eae1('0x12df')]([_0x43fa15(_0x59eb4e,_0x52eae1('0x1fe1')),_0x43fa15(_0x59eb4e,'chat'),_0x43fa15(_0x59eb4e,'mail'),_0x43fa15(_0x59eb4e,_0x52eae1('0x1508')),_0x43fa15(_0x59eb4e,'sms'),_0x43fa15(_0x59eb4e,_0x52eae1('0x1d27')),_0x43fa15(_0x59eb4e,_0x52eae1('0xc23'))],_0x7b5a29)?_0x4d97ed=_0x52eae1('0x1ff2'):_0x4d97ed=_0x52eae1('0xe88');}_0x59eb4e[_0x52eae1('0xf45')]!==_0x4d97ed&&(_0x59eb4e['globalStatus']=_0x4d97ed,_0x59eb4e[_0x52eae1('0x161d')]?(_0x59eb4e[_0x52eae1('0x161d')]=![],_0x59eb4e[_0x52eae1('0x22cb')]=_0x3f87db(_0x4d97ed)?_0x49cbdd()[_0x52eae1('0xa33')](_0x107a13()(_0x59eb4e['lastPauseAt'])['format']('x')):_0x49cbdd()['max']([_0x59eb4e[_0x52eae1('0x1b1d')],_0x59eb4e[_0x52eae1('0x587')],_0x59eb4e['mailStatusTime'],_0x59eb4e[_0x52eae1('0x893')],_0x59eb4e[_0x52eae1('0x1e2a')],_0x59eb4e[_0x52eae1('0x18b1')],_0x59eb4e['faxStatusTime']])):_0x59eb4e[_0x52eae1('0x22cb')]=_0x49cbdd()[_0x52eae1('0xa33')](_0x107a13()()['format']('x')));}function _0x78d1b3(_0x3d31ee){const _0x3919aa=_0x418a84,_0x2dc1ec=_0x49cbdd()[_0x3919aa('0x818')](_0xa2c702[_0x3919aa('0x826')]['order'],'-')?_0x3919aa('0x187b'):'asc';return _0x49cbdd()[_0x3919aa('0xa36')](_0x3d31ee,[_0xa2c702[_0x3919aa('0x826')][_0x3919aa('0x1e36')][_0x3919aa('0x737')]('-','')],[_0x2dc1ec]);}function _0x2f50b1(){_0x255e63&&(_0x16f225['cancel'](_0x255e63),_0x255e63=null);}function _0x1d96cd(_0x267262,_0x5a53b3){const _0x30c703=_0x418a84;return _0x53ef71[_0x30c703('0x221e')][_0x30c703('0x27ba')]({'id':_0x267262['id']},{'screenrecording':_0x5a53b3})[_0x30c703('0x1af5')][_0x30c703('0x16df')](function(_0x2947b9){const _0x4b0440=_0x30c703;_0x250632[_0x4b0440('0x1db9')]({'title':_0x2947b9[_0x4b0440('0x11c5')]?_0x4b0440('0x14f7')+_0x2947b9[_0x4b0440('0x11c5')]+_0x4b0440('0x16e4')+_0x2947b9[_0x4b0440('0x1833')]:'api.user.update','msg':_0x2947b9[_0x4b0440('0x1457')]?JSON['stringify'](_0x2947b9[_0x4b0440('0x1457')][_0x4b0440('0x1603')]):_0x2947b9['toString']()});});}_0x43cb89['$on'](_0x418a84('0x2b4'),function(){const _0x378764=_0x418a84;_0x4a938a[_0x378764('0x1c65')](_0x378764('0x21a2')),_0x4a938a[_0x378764('0x1c65')]('user:update'),_0x4a938a[_0x378764('0x1c65')](_0x378764('0x1a5')),_0x4a938a['removeAllListeners']('user:agentcomplete'),_0x2f50b1();});}const _0x5e02f6=_0x353984,_0x192f90=_0x4cf2bc['p']+_0x4376d8('0x21a6'),_0x158e59=_0x4cf2bc['p']+_0x4376d8('0x14b3');_0xc8c23d[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x26ca'),_0x4376d8('0x33a'),_0x4376d8('0x14c4'),_0x4376d8('0x1d90'),_0x4376d8('0x212e'),'socket',_0x4376d8('0x108a'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x1885')];function _0xc8c23d(_0x1ae0da,_0x676c49,_0x1aca8d,_0x100316,_0x39de77,_0x5d2d8d,_0xa14385,_0x5ab422,_0x242e91,_0x55fb0b,_0x2ba68d,_0x21360b,_0xba5276,_0x1243e2){const _0x160869=_0x4376d8,_0x57e626=this,_0x4274c9=[_0x160869('0x1458'),_0x160869('0x249c'),_0x160869('0x2143'),_0x160869('0x1d20'),_0x160869('0xdb9'),_0x160869('0x829'),'message',_0x160869('0x10c9'),_0x160869('0xa39'),'Trunk','paused'];_0x57e626[_0x160869('0x197c')]=_0x1243e2[_0x160869('0x2831')](),_0x57e626[_0x160869('0x335')]=_0xa14385[_0x160869('0x335')]?_0xa14385[_0x160869('0x335')]:0x0,_0x57e626['queues']=_0xa14385?_0x49cbdd()['keyBy'](_0xa14385['rows']?_0xa14385['rows']:[],'id'):{},_0x57e626[_0x160869('0x1d90')]=_0x5ab422?_0x49cbdd()[_0x160869('0x8de')](_0x5ab422[_0x160869('0x2319')]?_0x5ab422[_0x160869('0x2319')]:[],'id'):{},_0x57e626[_0x160869('0xdeb')]=_0x21360b,_0x57e626[_0x160869('0x383')]=_0xba5276&&_0xba5276[_0x160869('0x335')]==0x1?_0xba5276['rows'][0x0]:null,_0x57e626[_0x160869('0x103e')]=_0x1243e2[_0x160869('0x17a9')](_0x57e626['userProfileSection']?_0x57e626[_0x160869('0x383')][_0x160869('0x103e')]:null);_0x1243e2['hasRole'](_0x160869('0x20bf'))?_0x57e626[_0x160869('0x826')]={'type':_0x160869('0x1e77'),'sort':_0x160869('0x1ac6'),'limit':0xa,'page':0x1}:_0x57e626[_0x160869('0x826')]={'id':_0x57e626['currentUser']['id'],'channel':_0x160869('0xc23'),'type':_0x160869('0x1e77'),'sort':_0x160869('0x1ac6'),'limit':0xa,'page':0x1};_0x57e626['success']=_0x21d4ea,_0x57e626[_0x160869('0x1f3b')]=_0x14de39,_0x57e626[_0x160869('0x5c6')]=_0x47d589,_0x57e626[_0x160869('0x1a78')]=_0x5b1825,_0x57e626[_0x160869('0x139c')]=_0x40a873,_0x57e626[_0x160869('0xfd5')]=_0x48fbc1,_0x57e626[_0x160869('0x1899')]=_0x255c91,_0x57e626[_0x160869('0x110')]=_0x5d3a6a,_0x57e626['onPause']=_0xd33e53,_0x57e626[_0x160869('0x1781')]=_0x29ccb4,_0x57e626['onLogout']=_0x24dc61,_0x57e626[_0x160869('0x11e8')]=_0x3fad85,_0x57e626['order']=[],_0x49cbdd()[_0x160869('0x1857')](_0x57e626['queues'],function(_0x9d4178){const _0x3b5d8f=_0x160869;_0x57e626[_0x3b5d8f('0x1e36')][_0x3b5d8f('0x269f')](_0x9d4178['id']);}),_0x55fb0b['on'](_0x160869('0x560'),_0x57e626[_0x160869('0xfd5')]),_0x55fb0b['on'](_0x160869('0x28f'),_0x57e626[_0x160869('0x1899')]),_0x55fb0b['on'](_0x160869('0x1654'),_0x57e626[_0x160869('0x110')]),_0x55fb0b['on']('user:update',_0x57e626['onPause']),_0x55fb0b['on']('userVoiceQueue:remove',_0x57e626[_0x160869('0x1532')]),_0x55fb0b['on'](_0x160869('0x1cfb'),_0x57e626['onLogin']);function _0x3fad85(){const _0x485d3d=_0x160869,_0x2b6d36=[];return _0x49cbdd()[_0x485d3d('0x1857')](_0x57e626[_0x485d3d('0x14c4')],function(_0x2f75f7,_0x3708af){const _0x4853b8=_0x485d3d;_0x2f75f7['paused']=0x0,_0x2f75f7['loggedInDb']=0x0,_0x57e626[_0x4853b8('0x14c4')][_0x3708af][_0x4853b8('0x25ea')]={},_0x2b6d36['push'](_0x242e91[_0x4853b8('0x384')]['getMembers']({'id':_0x3708af})['$promise']),_0x57e626['rpcQueues'][_0x3708af]&&_0x49cbdd()[_0x4853b8('0x1ced')](_0x2f75f7,_0x49cbdd()['pick'](_0x57e626[_0x4853b8('0x1d90')][_0x3708af],_0x4274c9));}),_0x100316[_0x485d3d('0x1283')](_0x2b6d36)[_0x485d3d('0x17e7')](function(_0x3814f3){const _0x5c272f=_0x485d3d;for(let _0x109b41=0x0;_0x109b41<_0x3814f3[_0x5c272f('0x1f73')];_0x109b41+=0x1){for(let _0x262c51=0x0;_0x262c51<_0x3814f3[_0x109b41][_0x5c272f('0x2319')]['length'];_0x262c51++){_0x3814f3[_0x109b41][_0x5c272f('0x2319')][_0x262c51][_0x5c272f('0x1bb8')]&&_0x57e626['queues'][_0x3814f3[_0x109b41][_0x5c272f('0x2319')][_0x262c51]['FaxQueueId']]['paused']++,_0x57e626['queues'][_0x3814f3[_0x109b41][_0x5c272f('0x2319')][_0x262c51][_0x5c272f('0x22f8')]][_0x5c272f('0x6c2')]++,_0x57e626[_0x5c272f('0x14c4')][_0x3814f3[_0x109b41][_0x5c272f('0x2319')][_0x262c51]['FaxQueueId']][_0x5c272f('0x25ea')][_0x3814f3[_0x109b41][_0x5c272f('0x2319')][_0x262c51][_0x5c272f('0x5e5')]]=_0x3814f3[_0x109b41][_0x5c272f('0x2319')][_0x262c51]['FaxQueueId'];}}})['catch'](function(_0x4f6648){const _0x280d03=_0x485d3d;console[_0x280d03('0x1db9')](_0x4f6648);});}function _0x48fbc1(_0x600d5b){const _0x368cac=_0x160869;_0x57e626[_0x368cac('0x14c4')][_0x600d5b['id']]&&_0x49cbdd()[_0x368cac('0x1ced')](_0x57e626['queues'][_0x600d5b['id']],_0x49cbdd()[_0x368cac('0x230a')](_0x600d5b,_0x4274c9));}function _0x255c91(_0x5c293b){const _0x539cf1=_0x160869;_0x57e626['queues'][_0x5c293b[_0x539cf1('0x22f8')]]&&_0x57e626[_0x539cf1('0x14c4')][_0x5c293b[_0x539cf1('0x22f8')]][_0x539cf1('0x6c2')]++;}function _0x5d3a6a(_0x20376d){const _0x25cb62=_0x160869;_0x57e626[_0x25cb62('0x14c4')][_0x20376d[_0x25cb62('0x22f8')]]&&_0x57e626[_0x25cb62('0x14c4')][_0x20376d['FaxQueueId']][_0x25cb62('0x6c2')]--;}function _0xd33e53(_0x1968e4){const _0x45d870=_0x160869;console['log'](_0x45d870('0x14ed'),_0x1968e4);if(_0x1968e4['voicePause'])_0x49cbdd()['forIn'](_0x57e626[_0x45d870('0x14c4')],function(_0x3be487){const _0x5b026a=_0x45d870;_0x3be487['agents'][_0x1968e4['id']]&&(_0x3be487[_0x5b026a('0x1bb8')]+=0x1,console[_0x5b026a('0x1d63')](_0x5b026a('0x267a')));});else!_0x1968e4['voicePause']&&_0x49cbdd()[_0x45d870('0x1857')](_0x57e626[_0x45d870('0x14c4')],function(_0x3b7302){const _0xa330ff=_0x45d870;_0x3b7302[_0xa330ff('0x25ea')][_0x1968e4['id']]&&(_0x3b7302[_0xa330ff('0x1bb8')]>0x0&&(_0x3b7302['paused']-=0x1,console[_0xa330ff('0x1d63')]('unpause')));});}function _0x29ccb4(_0x13b9f2){const _0x46076c=_0x160869;console[_0x46076c('0x1d63')](_0x46076c('0x1a6b'),_0x13b9f2),_0x57e626[_0x46076c('0x14c4')][_0x13b9f2[_0x46076c('0x22f8')]]&&(_0x57e626['queues'][_0x13b9f2[_0x46076c('0x22f8')]][_0x46076c('0x6c2')]+=0x1,_0x57e626[_0x46076c('0x14c4')][_0x13b9f2[_0x46076c('0x22f8')]][_0x46076c('0x25ea')][_0x13b9f2[_0x46076c('0x5e5')]]=_0x13b9f2[_0x46076c('0x22f8')]);}function _0x24dc61(_0xc5b3d3){const _0x4e4e38=_0x160869;console['log']('onLogout',_0xc5b3d3),_0x57e626[_0x4e4e38('0x14c4')][_0xc5b3d3[_0x4e4e38('0x22f8')]]&&_0x57e626[_0x4e4e38('0x14c4')][_0xc5b3d3['FaxQueueId']][_0x4e4e38('0x6c2')]>0x0&&(_0x57e626['queues'][_0xc5b3d3[_0x4e4e38('0x22f8')]][_0x4e4e38('0x6c2')]-=0x1,delete _0x57e626[_0x4e4e38('0x14c4')][_0xc5b3d3[_0x4e4e38('0x22f8')]]['agents'][_0xc5b3d3[_0x4e4e38('0x5e5')]]);}let _0x134814=!![],_0x5be9d0=0x1;_0x1ae0da[_0x160869('0x620')](_0x160869('0x3ed'),function(_0x5d5feb,_0x51271a){const _0x205cae=_0x160869;_0x134814?_0x676c49(function(){_0x134814=![];}):(!_0x51271a&&(_0x5be9d0=_0x57e626[_0x205cae('0x826')][_0x205cae('0x115a')]),_0x5d5feb!==_0x51271a&&(_0x57e626[_0x205cae('0x826')][_0x205cae('0x115a')]=0x1),!_0x5d5feb&&(_0x57e626['query'][_0x205cae('0x115a')]=_0x5be9d0),_0x57e626[_0x205cae('0x1f3b')]());});function _0x21d4ea(_0x250afb){const _0x5b5481=_0x160869;_0x57e626[_0x5b5481('0x335')]=_0x250afb[_0x5b5481('0x335')],_0x57e626[_0x5b5481('0x14c4')]=_0x250afb?_0x49cbdd()[_0x5b5481('0x8de')](_0x250afb[_0x5b5481('0x2319')]?_0x250afb[_0x5b5481('0x2319')]:[],'id'):{};if(_0x250afb[_0x5b5481('0x2319')]){_0x57e626[_0x5b5481('0x1e36')]=[];for(let _0x2c5f75=0x0;_0x2c5f75<_0x250afb[_0x5b5481('0x2319')][_0x5b5481('0x1f73')];_0x2c5f75++){_0x57e626[_0x5b5481('0x1e36')][_0x5b5481('0x269f')](_0x250afb[_0x5b5481('0x2319')][_0x2c5f75]['id']);}}_0x3fad85();}function _0x14de39(){const _0x4c85b6=_0x160869;_0x57e626[_0x4c85b6('0x826')]['offset']=(_0x57e626[_0x4c85b6('0x826')][_0x4c85b6('0x115a')]-0x1)*_0x57e626[_0x4c85b6('0x826')]['limit'],_0x1243e2[_0x4c85b6('0x1ba2')](_0x4c85b6('0x20bf'))?_0x57e626['promise']=_0x242e91[_0x4c85b6('0x384')][_0x4c85b6('0x1c53')](_0x57e626['query'],_0x21d4ea)[_0x4c85b6('0x1af5')]:(_0x57e626[_0x4c85b6('0x826')]['id']=_0x57e626[_0x4c85b6('0xdeb')]['id'],_0x57e626[_0x4c85b6('0x826')]['section']=_0x4c85b6('0x1a10'),_0x57e626['promise']=_0x242e91[_0x4c85b6('0xdeb')]['getResources'](_0x57e626['query'],_0x21d4ea)[_0x4c85b6('0x1af5')]);}function _0x47d589(_0x5cfc0a,_0x5cf099){const _0x5578d5=_0x160869;_0x1aca8d['show']({'controller':_0x5578d5('0x1011'),'controllerAs':'vm','templateUrl':_0x158e59,'parent':angular['element'](_0x39de77[_0x5578d5('0x13aa')]),'targetEvent':_0x5cfc0a,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x5cf099,'faxQueues':_0x49cbdd()[_0x5578d5('0xa72')](_0x57e626[_0x5578d5('0x14c4')]),'license':null,'setting':null,'crudPermissions':_0x57e626[_0x5578d5('0x103e')]}});}function _0x5b1825(_0x108406,_0xb26aaa){const _0x511ebe=_0x160869;_0x1aca8d[_0x511ebe('0x28e2')]({'controller':'FaxQueueagentaddController','controllerAs':'vm','templateUrl':_0x192f90,'parent':angular[_0x511ebe('0x1ce1')](_0x39de77[_0x511ebe('0x13aa')]),'targetEvent':_0x108406,'clickOutsideToClose':!![],'locals':{'faxQueue':_0xb26aaa,'faxQueues':_0x57e626['queues']?_0x57e626['queues'][_0x511ebe('0x2319')]:[],'realtime':![],'crudPermissions':_0x57e626['crudPermissions']}});}function _0x40a873(_0x3b5a89){const _0xbe6279=_0x160869;return _0x242e91['faxQueue']['update'](_0x3b5a89)['$promise'][_0xbe6279('0x17e7')](function(){const _0x2d5b0c=_0xbe6279;_0x2ba68d[_0x2d5b0c('0x130d')]({'title':'Queue\x20properly\x20updated!','msg':_0x3b5a89[_0x2d5b0c('0x2aa')]?_0x3b5a89[_0x2d5b0c('0x2aa')]+_0x2d5b0c('0x12b0'):''});})[_0xbe6279('0x16df')](function(_0x93216f){const _0x2cf8c3=_0xbe6279;_0x2ba68d[_0x2cf8c3('0x1db9')]({'title':_0x2cf8c3('0x2480'),'msg':_0x93216f[_0x2cf8c3('0x1603')]});});}_0x1ae0da['$on']('$destroy',function(){const _0x2bcb31=_0x160869;_0x55fb0b[_0x2bcb31('0x1c65')](_0x2bcb31('0x560')),_0x55fb0b[_0x2bcb31('0x1c65')](_0x2bcb31('0x1654')),_0x55fb0b[_0x2bcb31('0x1c65')](_0x2bcb31('0x28f')),_0x55fb0b['removeAllListeners']('user:update'),_0x55fb0b[_0x2bcb31('0x1c65')](_0x2bcb31('0x1f34')),_0x55fb0b['removeAllListeners'](_0x2bcb31('0x1cfb'));});}const _0x337a3d=_0xc8c23d;function _0x298f44(){const _0x1bc590=_0x4376d8;return{'status':{'registered':'green-300-fg\x20icon-checkbox-marked-circle','unregistered':_0x1bc590('0x20ec'),'lagged':_0x1bc590('0x20ec'),'reachable':_0x1bc590('0x9b4'),'unreachable':_0x1bc590('0x20ec'),'unknown':_0x1bc590('0x15d8')},'state':{'unknown':_0x1bc590('0x9d7'),'not_inuse':_0x1bc590('0x23ce'),'inuse':_0x1bc590('0xbd2'),'busy':_0x1bc590('0xf9e'),'invalid':_0x1bc590('0x9d7'),'unavailable':'grey-fg\x20icon-phone-hangup','ringing':_0x1bc590('0x109b'),'ringinuse':_0x1bc590('0x109b'),'onhold':_0x1bc590('0x1f4')},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x1bc590('0xc21'),'hangup':_0x1bc590('0x1147')},'channelStatusOut':{'ring':_0x1bc590('0xc0c'),'up':'green-300-fg\x20icon-phone-in-talk','hangup':_0x1bc590('0x1147')}};}const _0x2df1b2=_0x298f44;_0x39e06d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x25aa')];function _0x39e06d(_0x452227,_0x17bcc6,_0x129bf8){const _0x2c6bc7=_0x4376d8,_0x20c1a5=this;_0x129bf8['disconnect'](),_0x129bf8[_0x2c6bc7('0x1f81')](),_0x20c1a5[_0x2c6bc7('0xde7')]=0x0;switch(_0x17bcc6[_0x2c6bc7('0x1247')][_0x2c6bc7('0x2aa')]){case'app.fax.realtime.agents':_0x20c1a5[_0x2c6bc7('0xde7')]=0x0;break;case _0x2c6bc7('0x394'):_0x20c1a5[_0x2c6bc7('0xde7')]=0x1;break;case _0x2c6bc7('0x45e'):_0x20c1a5[_0x2c6bc7('0xde7')]=0x2;break;case _0x2c6bc7('0x26e1'):_0x20c1a5[_0x2c6bc7('0xde7')]=0x3;break;default:_0x20c1a5[_0x2c6bc7('0xde7')]=0x0,_0x17bcc6['go'](_0x2c6bc7('0x2740'));}_0x452227['$watch']('vm.selectedTab',function(_0x504da5,_0xf03494){const _0x4fa7dc=_0x2c6bc7;if(_0x504da5!==_0xf03494)switch(_0x504da5){case 0x0:_0x17bcc6['go'](_0x4fa7dc('0x2740'));break;case 0x1:_0x17bcc6['go']('app.fax.realtime.trunks');break;case 0x2:_0x17bcc6['go']('app.fax.realtime.queues');break;case 0x3:_0x17bcc6['go'](_0x4fa7dc('0x26e1'));break;default:_0x17bcc6['go'](_0x4fa7dc('0x2740'));}});}const _0x1a0f40=_0x39e06d;_0x4eb49c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'trunks',_0x4376d8('0x1827'),'api',_0x4376d8('0x25aa'),_0x4376d8('0x628'),_0x4376d8('0xc4c'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x1885')];function _0x4eb49c(_0x4b8a18,_0x588520,_0xe8bf3b,_0x28e914,_0x106856,_0x300bcc,_0xe2a8ce,_0x381260,_0x2cad2e,_0x2fe84f,_0x5a0e04,_0x356682){const _0x4c0b57=_0x4376d8,_0x4404fd=this,_0x2c9b48=['status',_0x4c0b57('0x18ab'),_0x4c0b57('0x6fa'),_0x4c0b57('0x108'),_0x4c0b57('0x2442'),_0x4c0b57('0xe3e'),_0x4c0b57('0x1b9a'),_0x4c0b57('0x11c5')];_0x4404fd['currentUser']=_0x356682[_0x4c0b57('0x2831')](),_0x4404fd[_0x4c0b57('0x335')]=_0x28e914[_0x4c0b57('0x335')],_0x4404fd[_0x4c0b57('0x19cb')]=_0x28e914?_0x28e914[_0x4c0b57('0x2319')]:[],_0x4404fd[_0x4c0b57('0x1827')]=_0x106856?_0x106856['rows']?_0x106856['rows']:[]:[],_0x4404fd[_0x4c0b57('0x826')]={'fields':'id,name','active':!![],'sort':_0x4c0b57('0x1ac6'),'limit':0xa,'page':0x1},_0x4404fd[_0x4c0b57('0x18da')]=_0x381260['status'],_0x4404fd[_0x4c0b57('0x84')]=_0x381260['state'],_0x4404fd['userProfile']=_0x2fe84f,_0x4404fd[_0x4c0b57('0x383')]=_0x5a0e04&&_0x5a0e04['count']==0x1?_0x5a0e04['rows'][0x0]:null,_0x4404fd[_0x4c0b57('0x103e')]=_0x356682['parseCrudPermissions'](_0x4404fd[_0x4c0b57('0x383')]?_0x4404fd[_0x4c0b57('0x383')]['crudPermissions']:null),_0x4404fd[_0x4c0b57('0x130d')]=_0x56fd13,_0x4404fd[_0x4c0b57('0x11e8')]=_0x5718dd,_0x4404fd['showInfo']=_0x23cb9d,_0x4404fd[_0x4c0b57('0x106a')]=_0x1bc6e0,_0x4404fd[_0x4c0b57('0x11b7')]=_0x4001e1,_0x4404fd[_0x4c0b57('0xfd5')]=_0x1a6fc5,_0xe2a8ce['on'](_0x4c0b57('0x1704'),_0x4404fd[_0x4c0b57('0xfd5')]);function _0x5718dd(){const _0x317219=_0x4c0b57;let _0x15b722;for(let _0x13cf8d=0x0;_0x13cf8d<_0x4404fd['trunks'][_0x317219('0x1f73')];_0x13cf8d+=0x1){_0x15b722=_0x49cbdd()[_0x317219('0x1f4c')](_0x4404fd['rpcTrunks'],['id',_0x4404fd[_0x317219('0x19cb')][_0x13cf8d]['id']]),_0x15b722>=0x0&&_0x49cbdd()[_0x317219('0x1ced')](_0x4404fd[_0x317219('0x19cb')][_0x13cf8d],_0x49cbdd()['pick'](_0x4404fd[_0x317219('0x1827')][_0x15b722],_0x2c9b48));}}function _0x23cb9d(_0x23dcec){const _0x233767=_0x4c0b57;_0xe8bf3b[_0x233767('0x28e2')](_0xe8bf3b[_0x233767('0x99f')]()[_0x233767('0x2f4')](!![])['title']('Legend')[_0x233767('0x211f')]('
TODO\x20legend\x20status\x20+\x20state
')['ok']('Ok')['targetEvent'](_0x23dcec));}function _0xc28d67(_0xe7a704,_0x1ca955,_0x3df950){const _0x5bb182=_0x4c0b57;_0x1ca955>=0x0&&_0x49cbdd()[_0x5bb182('0x1ced')](_0xe7a704[_0x1ca955],_0x49cbdd()[_0x5bb182('0x230a')](_0x3df950,_0x2c9b48));}function _0x1a6fc5(_0x4d7f8e){const _0x1871ca=_0x4c0b57,_0x4be940=_0x49cbdd()[_0x1871ca('0x1f4c')](_0x4404fd[_0x1871ca('0x19cb')],['id',_0x4d7f8e['id']]),_0x498e4b=_0x49cbdd()[_0x1871ca('0x1f4c')](_0x4404fd['rpcTrunks'],['id',_0x4d7f8e['id']]);_0xc28d67(_0x4404fd[_0x1871ca('0x19cb')],_0x4be940,_0x4d7f8e),_0xc28d67(_0x4404fd[_0x1871ca('0x1827')],_0x498e4b,_0x4d7f8e);}let _0x2a91f0=!![],_0x857602=0x1;_0x4b8a18[_0x4c0b57('0x620')](_0x4c0b57('0x3ed'),function(_0x1393c7,_0x5b5787){const _0xf3299=_0x4c0b57;_0x2a91f0?_0x588520(function(){_0x2a91f0=![];}):(!_0x5b5787&&(_0x857602=_0x4404fd[_0xf3299('0x826')][_0xf3299('0x115a')]),_0x1393c7!==_0x5b5787&&(_0x4404fd[_0xf3299('0x826')][_0xf3299('0x115a')]=0x1),!_0x1393c7&&(_0x4404fd[_0xf3299('0x826')][_0xf3299('0x115a')]=_0x857602),_0x4404fd['getTrunks']());});function _0x56fd13(_0x58123){const _0x50ec38=_0x4c0b57;_0x4404fd[_0x50ec38('0x335')]=_0x58123[_0x50ec38('0x335')],_0x4404fd[_0x50ec38('0x19cb')]=_0x58123?_0x58123[_0x50ec38('0x2319')]?_0x58123['rows']:[]:[],_0x5718dd();}function _0x1bc6e0(){const _0x58ff6a=_0x4c0b57;_0x4404fd['query']['offset']=(_0x4404fd[_0x58ff6a('0x826')][_0x58ff6a('0x115a')]-0x1)*_0x4404fd[_0x58ff6a('0x826')][_0x58ff6a('0x193b')],_0x356682['hasRole'](_0x58ff6a('0x20bf'))?_0x4404fd['promise']=_0x300bcc[_0x58ff6a('0x252a')][_0x58ff6a('0x1c53')](_0x4404fd[_0x58ff6a('0x826')],_0x56fd13)['$promise']:(_0x4404fd[_0x58ff6a('0x826')]['id']=_0x4404fd[_0x58ff6a('0xdeb')]['id'],_0x4404fd[_0x58ff6a('0x826')][_0x58ff6a('0x16f8')]='Trunks',_0x4404fd[_0x58ff6a('0x1691')]=_0x300bcc['userProfile'][_0x58ff6a('0x2447')](_0x4404fd['query'],_0x56fd13)[_0x58ff6a('0x1af5')]);}_0x4b8a18[_0x4c0b57('0x207c')]('$destroy',function(){const _0x4868a3=_0x4c0b57;_0xe2a8ce[_0x4868a3('0x1c65')](_0x4868a3('0x1704'));});function _0x4001e1(_0x8faee9,_0x5019bf){const _0x376bb1=_0x4c0b57;_0x2cad2e['go'](_0x376bb1('0xccf'),{'id':_0x5019bf['id']});}}const _0x37c83e=_0x4eb49c;_0x1af8de['$inject']=[_0x4376d8('0x183a')];function _0x1af8de(_0x18a4b5){const _0xf1f69c=_0x4376d8;_0x18a4b5['state'](_0xf1f69c('0x2741'),{'url':'/realtime','views':{'content@app':{'templateUrl':_0x34e15e,'controller':_0xf1f69c('0x111')}},'resolve':{'userProfile':[_0xf1f69c('0x177'),_0xf1f69c('0x1885'),function(_0x4a2204,_0xbc008f){const _0x1a571d=_0xf1f69c;return _0xbc008f[_0x1a571d('0x1ba2')](_0x1a571d('0x20bf'))?null:_0x4a2204[_0x1a571d('0x898')](_0x1a571d('0x235d'),{'fields':'id,name,crudPermissions','id':_0xbc008f[_0x1a571d('0x2831')]()['userProfileId']});}],'userProfileSection':[_0xf1f69c('0x177'),_0xf1f69c('0x1885'),function(_0x2f9823,_0x4fbca3){const _0x48276a=_0xf1f69c;return _0x4fbca3[_0x48276a('0x1ba2')](_0x48276a('0x20bf'))?null:_0x2f9823[_0x48276a('0x898')](_0x48276a('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4fbca3[_0x48276a('0x2831')]()['userProfileId'],'sectionId':0x38e});}]},'authenticate':!![],'permissionId':0x38e})['state'](_0xf1f69c('0x2740'),{'url':_0xf1f69c('0x1a85'),'controller':_0xf1f69c('0x2211'),'templateUrl':_0x570a11,'resolve':{'pauses':[_0xf1f69c('0x177'),function(_0x578aec){const _0x3f1baa=_0xf1f69c;return _0x578aec[_0x3f1baa('0x898')](_0x3f1baa('0x13db'),{'nolimit':!![]});}],'agents':[_0xf1f69c('0x177'),'Auth',function(_0x48753c,_0x2b9647){const _0x4533bb=_0xf1f69c;return _0x2b9647['hasRole'](_0x4533bb('0x20bf'))?_0x48753c[_0x4533bb('0x898')](_0x4533bb('0x181a'),{'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':_0x4533bb('0x684'),'sort':_0x4533bb('0xea6'),'nolimit':!![]}):_0x48753c[_0x4533bb('0x898')]('userProfile@getResources',{'id':_0x2b9647['getCurrentUser']()[_0x4533bb('0x1e76')],'section':'Agents','fields':_0x4533bb('0xb31'),'role':_0x4533bb('0x684'),'sort':_0x4533bb('0xea6'),'nolimit':!![]});}],'userProfile':['apiResolver',_0xf1f69c('0x1885'),function(_0x2936e3,_0x2ff1e3){const _0x591a08=_0xf1f69c;return _0x2ff1e3['hasRole']('admin')?null:_0x2936e3['resolve']('userProfile@get',{'fields':_0x591a08('0x8d3'),'id':_0x2ff1e3[_0x591a08('0x2831')]()[_0x591a08('0x1e76')]});}],'userProfileSection':[_0xf1f69c('0x177'),_0xf1f69c('0x1885'),function(_0x35e277,_0x3a7370){const _0x358759=_0xf1f69c;return _0x3a7370['hasRole'](_0x358759('0x20bf'))?null:_0x35e277['resolve'](_0x358759('0x23e7'),{'fields':_0x358759('0x1134'),'userProfileId':_0x3a7370['getCurrentUser']()[_0x358759('0x1e76')],'sectionId':0xca});}],'rpcAgents':[_0xf1f69c('0x177'),function(_0x2ac22c){const _0xf332c3=_0xf1f69c;return _0x2ac22c[_0xf332c3('0x898')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x38e})['state'](_0xf1f69c('0x394'),{'url':_0xf1f69c('0x1439'),'controller':'TrunksFaxRealtimeController\x20as\x20vm','templateUrl':_0xf8c421,'resolve':{'trunks':['apiResolver',_0xf1f69c('0x1885'),function(_0x553071,_0x147e66){const _0x723d0d=_0xf1f69c;return _0x147e66[_0x723d0d('0x1ba2')]('admin')?_0x553071[_0x723d0d('0x898')](_0x723d0d('0x1bbc'),{'fields':_0x723d0d('0x12d2'),'active':!![],'sort':_0x723d0d('0x1ac6'),'limit':0xa,'offset':0x0}):_0x553071[_0x723d0d('0x898')](_0x723d0d('0x1164'),{'id':_0x147e66['getCurrentUser']()[_0x723d0d('0x1e76')],'section':_0x723d0d('0x18f1'),'fields':'id,name','active':!![],'sort':_0x723d0d('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0xf1f69c('0x177'),'Auth',function(_0xc70be3,_0x4f6bc9){const _0x2bc040=_0xf1f69c;return _0x4f6bc9[_0x2bc040('0x1ba2')](_0x2bc040('0x20bf'))?null:_0xc70be3['resolve'](_0x2bc040('0x235d'),{'fields':'id,name,crudPermissions','id':_0x4f6bc9[_0x2bc040('0x2831')]()['userProfileId']});}],'userProfileSection':[_0xf1f69c('0x177'),_0xf1f69c('0x1885'),function(_0x45635a,_0x2df45d){const _0x52b7d7=_0xf1f69c;return _0x2df45d[_0x52b7d7('0x1ba2')](_0x52b7d7('0x20bf'))?null:_0x45635a[_0x52b7d7('0x898')]('userProfileSection@get',{'fields':_0x52b7d7('0x1134'),'userProfileId':_0x2df45d[_0x52b7d7('0x2831')]()[_0x52b7d7('0x1e76')],'sectionId':0x3f3});}],'rpcTrunks':[_0xf1f69c('0x177'),function(_0x349c03){const _0xb719f0=_0xf1f69c;return _0x349c03[_0xb719f0('0x898')](_0xb719f0('0x4d7'));}]},'authenticate':!![],'permissionId':0x38e})['state'](_0xf1f69c('0x45e'),{'url':_0xf1f69c('0x1520'),'controller':_0xf1f69c('0x2723'),'templateUrl':_0xfb8d28,'resolve':{'queues':['apiResolver',_0xf1f69c('0x1885'),function(_0x3efed7,_0x34627b){const _0x54dac8=_0xf1f69c;return _0x34627b[_0x54dac8('0x1ba2')](_0x54dac8('0x20bf'))?_0x3efed7[_0x54dac8('0x898')](_0x54dac8('0xff1'),{'type':_0x54dac8('0x1e77'),'sort':_0x54dac8('0x1ac6'),'limit':0xa,'offset':0x0}):_0x3efed7[_0x54dac8('0x898')](_0x54dac8('0x1164'),{'id':_0x34627b[_0x54dac8('0x2831')]()['userProfileId'],'section':_0x54dac8('0x1a10'),'channel':_0x54dac8('0xc23'),'type':_0x54dac8('0x1e77'),'sort':_0x54dac8('0x1ac6'),'limit':0xa,'page':0x1});}],'userProfile':['apiResolver',_0xf1f69c('0x1885'),function(_0x540e32,_0x137d33){const _0x420107=_0xf1f69c;return _0x137d33['hasRole']('admin')?null:_0x540e32[_0x420107('0x898')]('userProfile@get',{'fields':_0x420107('0x8d3'),'id':_0x137d33[_0x420107('0x2831')]()[_0x420107('0x1e76')]});}],'userProfileSection':[_0xf1f69c('0x177'),'Auth',function(_0x172fe8,_0x50c837){const _0x5eea6b=_0xf1f69c;return _0x50c837[_0x5eea6b('0x1ba2')](_0x5eea6b('0x20bf'))?null:_0x172fe8[_0x5eea6b('0x898')](_0x5eea6b('0x23e7'),{'fields':_0x5eea6b('0x1134'),'userProfileId':_0x50c837['getCurrentUser']()[_0x5eea6b('0x1e76')],'sectionId':0x385});}],'rpcQueues':[_0xf1f69c('0x177'),function(_0x34587c){const _0x55f514=_0xf1f69c;return _0x34587c[_0x55f514('0x898')](_0x55f514('0x1830'));}]},'authenticate':!![],'permissionId':0x38e})[_0xf1f69c('0x1b9a')](_0xf1f69c('0x26e1'),{'url':_0xf1f69c('0x798'),'controller':_0xf1f69c('0x2318'),'templateUrl':_0x44b612,'resolve':{'faxAccounts':['apiResolver','Auth',function(_0x42bce0,_0x1f70fd){const _0x490bbc=_0xf1f69c;return _0x1f70fd['hasRole'](_0x490bbc('0x20bf'))?_0x42bce0[_0x490bbc('0x898')](_0x490bbc('0x652'),{'sort':_0x490bbc('0x1ac6'),'limit':0xa,'offset':0x0}):_0x42bce0['resolve'](_0x490bbc('0x1164'),{'id':_0x1f70fd[_0x490bbc('0x2831')]()['userProfileId'],'section':_0x490bbc('0xeca'),'sort':_0x490bbc('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x209290,_0x5671c1){const _0x39f165=_0xf1f69c;return _0x5671c1[_0x39f165('0x1ba2')]('admin')?null:_0x209290[_0x39f165('0x898')](_0x39f165('0x235d'),{'fields':_0x39f165('0x8d3'),'id':_0x5671c1[_0x39f165('0x2831')]()[_0x39f165('0x1e76')]});}],'userProfileSection':[_0xf1f69c('0x177'),_0xf1f69c('0x1885'),function(_0xc04794,_0x55c560){const _0x451d1b=_0xf1f69c;return _0x55c560['hasRole'](_0x451d1b('0x20bf'))?null:_0xc04794['resolve']('userProfileSection@get',{'fields':_0x451d1b('0x1134'),'userProfileId':_0x55c560['getCurrentUser']()['userProfileId'],'sectionId':0x386});}],'rpcFaxAccounts':[_0xf1f69c('0x177'),function(_0x2392d8){const _0x520aaf=_0xf1f69c;return _0x2392d8[_0x520aaf('0x898')](_0x520aaf('0x377'));}]},'authenticate':!![],'permissionId':0x38e});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x2741'),[])[_0x4376d8('0x1980')](_0x1af8de)['controller'](_0x4376d8('0x17ab'),_0x126405)[_0x4376d8('0x5ce')](_0x4376d8('0x433'),_0x5e02f6)['controller'](_0x4376d8('0x15d3'),_0x337a3d)[_0x4376d8('0x26a6')](_0x4376d8('0x628'),_0x2df1b2)['controller'](_0x4376d8('0x2175'),_0x1a0f40)[_0x4376d8('0x5ce')](_0x4376d8('0x1ef0'),_0x37c83e),_0x3376f7[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0xec4'),_0x4376d8('0x119'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x3376f7(_0x590a9a,_0x828376,_0x2c34,_0x3e0ff1,_0x1a6dfa,_0x2d6e21,_0x30473b,_0x133c79,_0x50d2e8,_0x423226,_0x34c081,_0x4b8f1e,_0x35a829,_0x189f5e){const _0x25de0=_0x4376d8,_0x4763f5=this;_0x4763f5['currentUser']=_0x34c081[_0x25de0('0x2831')](),_0x4763f5['errors']=[],_0x4763f5[_0x25de0('0x1aeb')]=_0x35a829,_0x4763f5[_0x25de0('0x1d11')]=_0x4b8f1e,_0x4763f5[_0x25de0('0x103e')]=_0x189f5e,_0x4763f5[_0x25de0('0x6ee')]={},_0x4763f5[_0x25de0('0x1572')]=_0x4763f5['setting']&&_0x4763f5['setting'][_0x25de0('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4763f5[_0x25de0('0x24d3')]='FAX.EDIT_FAXACCOUNT',_0x4763f5['faxAccount']=angular[_0x25de0('0x14e5')](_0x50d2e8),_0x4763f5[_0x25de0('0xec4')]=_0x133c79,_0x4763f5[_0x25de0('0x1360')]=![];!_0x4763f5['faxAccount']&&(_0x4763f5[_0x25de0('0x119')]={'waitForTheAssignedAgent':0xa,'notificationSound':!![],'queueTransferTimeout':0x12c,'agentTransferTimeout':0x12c},_0x4763f5['title']='FAX.NEW_FAXACCOUNT',_0x4763f5[_0x25de0('0x1360')]=!![]);_0x828376['params']['id']&&(_0x4763f5['faxAccount'][_0x25de0('0x24f9')]=_0x828376[_0x25de0('0x16fb')]['id']);_0x4763f5[_0x25de0('0x152d')]=_0x238891,_0x4763f5[_0x25de0('0x1bc8')]=_0x5c8b97,_0x4763f5['deleteFaxAccount']=_0x1d29d2,_0x4763f5['getDateFromString']=_0x4ced4c,_0x4763f5['closeDialog']=_0x3e7833,_0x34c081['hasRole'](_0x25de0('0x20bf'))?_0x423226['trunk'][_0x25de0('0x1c53')]({'fields':_0x25de0('0x12d2'),'sort':_0x25de0('0x2aa')})['$promise']['then'](function(_0x518adf){const _0x54be2c=_0x25de0;_0x4763f5[_0x54be2c('0x19cb')]=_0x518adf[_0x54be2c('0x2319')]||[];})[_0x25de0('0x16df')](function(_0x5e462c){const _0x315694=_0x25de0;_0x30473b['error']({'title':_0x5e462c[_0x315694('0x11c5')]?_0x315694('0x14f7')+_0x5e462c[_0x315694('0x11c5')]+_0x315694('0x16e4')+_0x5e462c['statusText']:_0x315694('0x130a'),'msg':_0x5e462c[_0x315694('0x1457')]?JSON['stringify'](_0x5e462c['data']):_0x5e462c['toString']()});}):_0x423226[_0x25de0('0x252a')][_0x25de0('0x1c53')]({'fields':_0x25de0('0x12d2'),'sort':'name'})[_0x25de0('0x1af5')][_0x25de0('0x17e7')](function(_0x54a1a9){_0x4763f5['trunks']=_0x54a1a9['rows']||[];})[_0x25de0('0x17e7')](function(){const _0x10538e=_0x25de0;return _0x423226[_0x10538e('0x383')][_0x10538e('0x1c53')]({'userProfileId':_0x4763f5['currentUser'][_0x10538e('0x1e76')],'sectionId':0x3f3})['$promise'];})[_0x25de0('0x17e7')](function(_0x3b3497){const _0xd62774=_0x25de0,_0x5290c8=_0x3b3497&&_0x3b3497['rows']?_0x3b3497[_0xd62774('0x2319')][0x0]:null;if(!_0x5290c8){const _0x1db040=[];let _0x33c846=null;_0x4763f5[_0xd62774('0x119')]&&(_0x33c846=_0x49cbdd()['find'](_0x4763f5[_0xd62774('0x19cb')],{'id':Number(_0x4763f5[_0xd62774('0x119')][_0xd62774('0x129f')])}));for(let _0xe921c1=0x0;_0xe921c1<_0x4763f5['trunks']['length'];_0xe921c1++){_0x33c846&&_0x4763f5['trunks'][_0xe921c1]['id']===_0x33c846['id']&&(_0x4763f5['trunks'][_0xe921c1]['canSelect']=![],_0x1db040[_0xd62774('0x269f')](_0x4763f5[_0xd62774('0x19cb')][_0xe921c1]));}_0x4763f5[_0xd62774('0x19cb')]=_0x1db040;}else{if(!_0x5290c8[_0xd62774('0x9e3')])return _0x423226[_0xd62774('0x78d')][_0xd62774('0x1c53')]({'sectionId':_0x5290c8['id']})[_0xd62774('0x1af5')][_0xd62774('0x17e7')](function(_0x2f3dd1){const _0x45c4cd=_0xd62774,_0x31a978=_0x49cbdd()['map'](_0x2f3dd1[_0x45c4cd('0x2319')],function(_0x2ef7f7){const _0x4f16a8=_0x45c4cd;return _0x49cbdd()['find'](_0x4763f5['trunks'],{'id':_0x2ef7f7[_0x4f16a8('0x5db')]});});let _0x11606c=null;_0x4763f5[_0x45c4cd('0x119')]&&(_0x11606c=_0x49cbdd()[_0x45c4cd('0xe8e')](_0x4763f5[_0x45c4cd('0x19cb')],{'id':Number(_0x4763f5[_0x45c4cd('0x119')][_0x45c4cd('0x129f')])}));if(_0x11606c&&!_0x49cbdd()[_0x45c4cd('0x26f8')](_0x31a978,['id',_0x11606c['id']])){const _0x1f6a63=_0x49cbdd()[_0x45c4cd('0xe8e')](_0x4763f5[_0x45c4cd('0x19cb')],{'id':_0x11606c['id']});_0x1f6a63[_0x45c4cd('0xe5c')]=![],_0x31a978[_0x45c4cd('0x269f')](_0x1f6a63);}_0x4763f5[_0x45c4cd('0x19cb')]=_0x31a978;});}})['catch'](function(_0x3706ca){const _0x5cb056=_0x25de0;_0x30473b[_0x5cb056('0x1db9')]({'title':_0x3706ca[_0x5cb056('0x11c5')]?_0x5cb056('0x14f7')+_0x3706ca[_0x5cb056('0x11c5')]+_0x5cb056('0x16e4')+_0x3706ca[_0x5cb056('0x1833')]:_0x5cb056('0x2825'),'msg':_0x3706ca[_0x5cb056('0x1457')]?JSON[_0x5cb056('0x678')](_0x3706ca[_0x5cb056('0x1457')]):_0x3706ca[_0x5cb056('0x9b6')]()});}),_0x34c081[_0x25de0('0x1ba2')](_0x25de0('0x20bf'))?_0x423226[_0x25de0('0x25b')][_0x25de0('0x1c53')]({'fields':_0x25de0('0x12d2'),'sort':_0x25de0('0x2aa')})[_0x25de0('0x1af5')]['then'](function(_0x2fdb90){const _0x12dfe6=_0x25de0;_0x4763f5['lists']=_0x2fdb90[_0x12dfe6('0x2319')]||[];})[_0x25de0('0x16df')](function(_0xb3e587){const _0x29b774=_0x25de0;_0x30473b['error']({'title':_0xb3e587[_0x29b774('0x11c5')]?_0x29b774('0x14f7')+_0xb3e587['status']+_0x29b774('0x16e4')+_0xb3e587[_0x29b774('0x1833')]:_0x29b774('0x2410'),'msg':_0xb3e587[_0x29b774('0x1457')]?JSON[_0x29b774('0x678')](_0xb3e587[_0x29b774('0x1457')]):_0xb3e587[_0x29b774('0x9b6')]()});}):_0x423226[_0x25de0('0x25b')][_0x25de0('0x1c53')]({'fields':_0x25de0('0x12d2'),'sort':_0x25de0('0x2aa')})[_0x25de0('0x1af5')][_0x25de0('0x17e7')](function(_0x6f350){const _0x2b2c15=_0x25de0;_0x4763f5['lists']=_0x6f350[_0x2b2c15('0x2319')]||[];})['then'](function(){const _0x17c6b5=_0x25de0;return _0x423226['userProfileSection'][_0x17c6b5('0x1c53')]({'userProfileId':_0x4763f5[_0x17c6b5('0x197c')]['userProfileId'],'sectionId':0x12d})[_0x17c6b5('0x1af5')];})['then'](function(_0x8cef2b){const _0x208cf9=_0x25de0,_0x418df2=_0x8cef2b&&_0x8cef2b[_0x208cf9('0x2319')]?_0x8cef2b[_0x208cf9('0x2319')][0x0]:null;if(!_0x418df2){const _0x3941b1=[];let _0x283e9b=null;_0x4763f5[_0x208cf9('0x119')]&&(_0x283e9b=_0x49cbdd()['find'](_0x4763f5[_0x208cf9('0x2504')],{'id':Number(_0x4763f5[_0x208cf9('0x119')][_0x208cf9('0x7f8')])}));for(let _0x4fd3ce=0x0;_0x4fd3ce<_0x4763f5['lists'][_0x208cf9('0x1f73')];_0x4fd3ce++){_0x283e9b&&_0x4763f5[_0x208cf9('0x2504')][_0x4fd3ce]['id']===_0x283e9b['id']&&(_0x4763f5['lists'][_0x4fd3ce][_0x208cf9('0xe5c')]=![],_0x3941b1['push'](_0x4763f5[_0x208cf9('0x2504')][_0x4fd3ce]));}_0x4763f5['lists']=_0x3941b1;}else{if(!_0x418df2['autoAssociation'])return _0x423226[_0x208cf9('0x78d')][_0x208cf9('0x1c53')]({'sectionId':_0x418df2['id']})[_0x208cf9('0x1af5')][_0x208cf9('0x17e7')](function(_0x2d9831){const _0x1432a3=_0x208cf9,_0x1777a0=_0x49cbdd()[_0x1432a3('0x787')](_0x2d9831[_0x1432a3('0x2319')],function(_0x2742f7){const _0x10352f=_0x1432a3;return _0x49cbdd()[_0x10352f('0xe8e')](_0x4763f5['lists'],{'id':_0x2742f7[_0x10352f('0x5db')]});});let _0x2f740e=null;_0x4763f5[_0x1432a3('0x119')]&&(_0x2f740e=_0x49cbdd()['find'](_0x4763f5[_0x1432a3('0x2504')],{'id':Number(_0x4763f5[_0x1432a3('0x119')]['ListId'])}));if(_0x2f740e&&!_0x49cbdd()[_0x1432a3('0x26f8')](_0x1777a0,['id',_0x2f740e['id']])){const _0x23a1af=_0x49cbdd()[_0x1432a3('0xe8e')](_0x4763f5[_0x1432a3('0x2504')],{'id':_0x2f740e['id']});_0x23a1af['canSelect']=![],_0x1777a0[_0x1432a3('0x269f')](_0x23a1af);}_0x4763f5[_0x1432a3('0x2504')]=_0x1777a0;});}})[_0x25de0('0x16df')](function(_0x4b8e63){const _0x3f230a=_0x25de0;_0x30473b['error']({'title':_0x4b8e63[_0x3f230a('0x11c5')]?_0x3f230a('0x14f7')+_0x4b8e63[_0x3f230a('0x11c5')]+_0x3f230a('0x16e4')+_0x4b8e63[_0x3f230a('0x1833')]:_0x3f230a('0x1630'),'msg':_0x4b8e63['data']?JSON['stringify'](_0x4b8e63[_0x3f230a('0x1457')]):_0x4b8e63[_0x3f230a('0x9b6')]()});});function _0x238891(){const _0x47241d=_0x25de0;_0x4763f5[_0x47241d('0x73e')]=[],_0x423226[_0x47241d('0x119')][_0x47241d('0xe30')](_0x4763f5[_0x47241d('0x119')])[_0x47241d('0x1af5')][_0x47241d('0x17e7')](function(_0x3fbb56){const _0x395cc5=_0x47241d;_0x4763f5['faxAccounts'][_0x395cc5('0x1893')](_0x3fbb56['toJSON']()),_0x30473b[_0x395cc5('0x130d')]({'title':_0x395cc5('0x22a4'),'msg':_0x4763f5[_0x395cc5('0x119')]['name']?_0x4763f5[_0x395cc5('0x119')][_0x395cc5('0x2aa')]+_0x395cc5('0x15a'):''}),_0x3e7833(_0x3fbb56);})[_0x47241d('0x16df')](function(_0x11f530){const _0x25d5f9=_0x47241d;if(_0x11f530[_0x25d5f9('0x1457')]&&_0x11f530[_0x25d5f9('0x1457')][_0x25d5f9('0x73e')]&&_0x11f530[_0x25d5f9('0x1457')]['errors'][_0x25d5f9('0x1f73')]){_0x4763f5[_0x25d5f9('0x73e')]=_0x11f530[_0x25d5f9('0x1457')]['errors']||[{'message':_0x11f530['toString'](),'type':_0x25d5f9('0x13eb')}];for(let _0x38dea7=0x0;_0x38dea7<_0x11f530[_0x25d5f9('0x1457')][_0x25d5f9('0x73e')]['length'];_0x38dea7+=0x1){_0x30473b[_0x25d5f9('0x1db9')]({'title':_0x11f530[_0x25d5f9('0x1457')][_0x25d5f9('0x73e')][_0x38dea7][_0x25d5f9('0x412')],'msg':_0x11f530['data'][_0x25d5f9('0x73e')][_0x38dea7][_0x25d5f9('0x1603')]});}}else _0x30473b[_0x25d5f9('0x1db9')]({'title':_0x11f530['status']?_0x25d5f9('0x14f7')+_0x11f530[_0x25d5f9('0x11c5')]+'\x20-\x20'+_0x11f530['statusText']:'api.faxAccount.save','msg':_0x11f530[_0x25d5f9('0x1457')]?JSON[_0x25d5f9('0x678')](_0x11f530[_0x25d5f9('0x1457')][_0x25d5f9('0x1603')]):_0x11f530[_0x25d5f9('0x9b6')]()});});}function _0x5c8b97(){const _0x2801a4=_0x25de0;_0x4763f5[_0x2801a4('0x73e')]=[],_0x423226['faxAccount'][_0x2801a4('0x20c5')](_0x4763f5[_0x2801a4('0x119')])[_0x2801a4('0x1af5')][_0x2801a4('0x17e7')](function(_0x3ad265){const _0x1bd5b6=_0x2801a4,_0x53151a=_0x49cbdd()[_0x1bd5b6('0xe8e')](_0x4763f5['faxAccounts'],{'id':_0x3ad265['id']});_0x53151a&&_0x49cbdd()[_0x1bd5b6('0x1ced')](_0x53151a,_0x49cbdd()[_0x1bd5b6('0x230a')](_0x3ad265[_0x1bd5b6('0x16b2')](),_0x49cbdd()['keys'](_0x53151a))),_0x30473b[_0x1bd5b6('0x130d')]({'title':_0x1bd5b6('0x1ad7'),'msg':_0x4763f5[_0x1bd5b6('0x119')][_0x1bd5b6('0x2aa')]?_0x4763f5['faxAccount'][_0x1bd5b6('0x2aa')]+_0x1bd5b6('0x15ca'):''}),_0x3e7833(_0x3ad265);})['catch'](function(_0x672de){const _0x2f51b3=_0x2801a4;if(_0x672de[_0x2f51b3('0x1457')]&&_0x672de[_0x2f51b3('0x1457')]['errors']&&_0x672de['data']['errors'][_0x2f51b3('0x1f73')]){_0x4763f5['errors']=_0x672de[_0x2f51b3('0x1457')][_0x2f51b3('0x73e')]||[{'message':_0x672de['toString'](),'type':_0x2f51b3('0x3ef')}];for(let _0x5334a0=0x0;_0x5334a0<_0x672de[_0x2f51b3('0x1457')]['errors'][_0x2f51b3('0x1f73')];_0x5334a0++){_0x30473b['error']({'title':_0x672de['data'][_0x2f51b3('0x73e')][_0x5334a0]['type'],'msg':_0x672de[_0x2f51b3('0x1457')][_0x2f51b3('0x73e')][_0x5334a0]['message']});}}else _0x30473b[_0x2f51b3('0x1db9')]({'title':_0x672de[_0x2f51b3('0x11c5')]?_0x2f51b3('0x14f7')+_0x672de['status']+'\x20-\x20'+_0x672de[_0x2f51b3('0x1833')]:_0x2f51b3('0x3ef'),'msg':_0x672de[_0x2f51b3('0x1457')]?JSON['stringify'](_0x672de[_0x2f51b3('0x1457')][_0x2f51b3('0x1603')]):_0x672de['toString']()});});}function _0x1d29d2(_0x3ba2a4){const _0x19376a=_0x25de0;_0x4763f5[_0x19376a('0x73e')]=[];const _0x5fc9af=_0x3e0ff1[_0x19376a('0x1121')]()['title'](_0x19376a('0x530'))['content'](_0x19376a('0x2518'))[_0x19376a('0x2095')]('Delete\x20FaxAccount')['ok'](_0x19376a('0x304'))[_0x19376a('0x1d47')]('Cancel')[_0x19376a('0x104f')](_0x3ba2a4);_0x3e0ff1['show'](_0x5fc9af)[_0x19376a('0x17e7')](function(){const _0x10040b=_0x19376a;_0x423226[_0x10040b('0x119')][_0x10040b('0x1da6')]({'id':_0x4763f5[_0x10040b('0x119')]['id']})[_0x10040b('0x1af5')][_0x10040b('0x17e7')](function(){const _0x129d71=_0x10040b;_0x49cbdd()[_0x129d71('0x5f3')](_0x4763f5[_0x129d71('0xec4')],{'id':_0x4763f5[_0x129d71('0x119')]['id']}),_0x30473b[_0x129d71('0x130d')]({'title':_0x129d71('0x1406'),'msg':(_0x4763f5[_0x129d71('0x119')]['name']||_0x129d71('0x119'))+_0x129d71('0x149f')}),_0x3e7833(_0x4763f5['faxAccount']);})[_0x10040b('0x16df')](function(_0xe23cb9){const _0xb8dcdc=_0x10040b;if(_0xe23cb9[_0xb8dcdc('0x1457')]&&_0xe23cb9[_0xb8dcdc('0x1457')]['errors']&&_0xe23cb9[_0xb8dcdc('0x1457')][_0xb8dcdc('0x73e')][_0xb8dcdc('0x1f73')]){_0x4763f5[_0xb8dcdc('0x73e')]=_0xe23cb9[_0xb8dcdc('0x1457')][_0xb8dcdc('0x73e')]||[{'message':_0xe23cb9['toString'](),'type':_0xb8dcdc('0x7c2')}];for(let _0x250700=0x0;_0x250700<_0xe23cb9[_0xb8dcdc('0x1457')]['errors'][_0xb8dcdc('0x1f73')];_0x250700++){_0x30473b[_0xb8dcdc('0x1db9')]({'title':_0xe23cb9['data']['errors'][_0x250700][_0xb8dcdc('0x412')],'msg':_0xe23cb9[_0xb8dcdc('0x1457')]['errors'][_0x250700][_0xb8dcdc('0x1603')]});}}else _0x30473b['error']({'title':_0xe23cb9[_0xb8dcdc('0x11c5')]?'API:'+_0xe23cb9[_0xb8dcdc('0x11c5')]+_0xb8dcdc('0x16e4')+_0xe23cb9[_0xb8dcdc('0x1833')]:_0xb8dcdc('0x7c2'),'msg':_0xe23cb9[_0xb8dcdc('0x1457')]?JSON['stringify'](_0xe23cb9[_0xb8dcdc('0x1457')][_0xb8dcdc('0x1603')]):_0xe23cb9[_0xb8dcdc('0x1603')]||_0xe23cb9[_0xb8dcdc('0x9b6')]()});});},function(){});}function _0x4ced4c(_0x572fb8){return _0x572fb8===null?undefined:new Date(_0x572fb8);}function _0x3e7833(_0x1b66f1){const _0x115a35=_0x25de0;_0x3e0ff1[_0x115a35('0x212a')](_0x1b66f1);}}const _0x171293=_0x3376f7,_0x297099=_0x4cf2bc['p']+_0x4376d8('0x1bd8'),_0x1d2053=_0x4cf2bc['p']+_0x4376d8('0xea4'),_0x317090=_0x4cf2bc['p']+_0x4376d8('0x1d1b'),_0x346649=_0x4cf2bc['p']+_0x4376d8('0x196f'),_0x135ced=_0x4cf2bc['p']+_0x4376d8('0x1f59'),_0x5742be=_0x4cf2bc['p']+_0x4376d8('0x1ce4'),_0x1fa655=_0x4cf2bc['p']+_0x4376d8('0xe5a'),_0x2977c5=_0x4cf2bc['p']+_0x4376d8('0xc7'),_0x3737d6=_0x4cf2bc['p']+'src/js/modules/main/apps/fax/views/faxAccounts/edit/apps/tag/dialog.html/dialog.html';_0x3a61ae[_0x4376d8('0x1b9c')]=[_0x4376d8('0x212e'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),'Auth'];const _0x5b7e0b={'agent':_0x297099,'close':_0x1d2053,'gotoif':_0x317090,'gotop':_0x346649,'interval':_0x135ced,'noop':_0x5742be,'queue':_0x1fa655,'system':_0x2977c5,'tag':_0x3737d6};function _0x3a61ae(_0x3ba959,_0x163b6,_0x2139c7,_0x101d58,_0x14658d){const _0x2262f0=_0x4376d8,_0x242094=this;_0x242094[_0x2262f0('0x197c')]=_0x14658d['getCurrentUser'](),_0x242094[_0x2262f0('0x119')]={},_0x242094[_0x2262f0('0xe10')]={'count':0x0,'rows':[]},_0x242094[_0x2262f0('0x8a3')]=[],_0x242094[_0x2262f0('0x103e')],_0x242094[_0x2262f0('0x826')]={'sort':_0x2262f0('0x1a6d')},_0x242094[_0x2262f0('0x970')]=_0x49cbdd()[_0x2262f0('0x1ad1')](_0x49cbdd()['sortBy']([{'app':_0x2262f0('0xaea'),'appType':_0x2262f0('0x231f'),'types':[_0x2262f0('0x1256'),_0x2262f0('0x8fa'),_0x2262f0('0x134c')],'fields':[],'isApp':![]},{'app':_0x2262f0('0x1e49'),'appType':'noop','type':'noop','icon':_0x2262f0('0x24a0'),'interval':'*,*,*,*','required':!![],'isApp':!![],'fields':[{'title':_0x2262f0('0x2775'),'name':_0x2262f0('0x175b'),'type':'text','param':0x0}]},{'app':_0x2262f0('0xca8'),'appType':'system','type':_0x2262f0('0xca8'),'icon':'icon-apps','interval':_0x2262f0('0x20c3'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x2262f0('0xd26'),'field':{'name':_0x2262f0('0xb0a'),'key':'name'},'route':_0x2262f0('0xb0a'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x2262f0('0x1d36'),'name':_0x2262f0('0x1115'),'type':_0x2262f0('0x132f'),'required':!![],'param':0x0},{'title':'Variable','name':_0x2262f0('0xb0a'),'type':_0x2262f0('0x1ecc'),'values':_0x2262f0('0xd26'),'value':_0x2262f0('0x8e2'),'option':_0x2262f0('0x8e2'),'defaultValues':[{'value':'\x27\x27','option':_0x2262f0('0x2576')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':'gotop','type':'goto','icon':_0x2262f0('0x24a0'),'interval':_0x2262f0('0x20c3'),'isApp':!![],'fields':[{'title':_0x2262f0('0x182c'),'name':_0x2262f0('0x1a6d'),'type':_0x2262f0('0x7b8'),'required':!![],'min':0x0,'param':0x0}]},{'app':_0x2262f0('0x7a9'),'appType':_0x2262f0('0x7a9'),'type':'gotoif','icon':_0x2262f0('0x24a0'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x2262f0('0x2380'),'name':_0x2262f0('0xa67'),'type':_0x2262f0('0x132f'),'required':!![],'param':0x0},{'title':_0x2262f0('0xd8b'),'name':_0x2262f0('0xd8b'),'type':_0x2262f0('0x7b8'),'min':0x1,'required':!![],'param':0x1},{'title':'falsepriority','name':_0x2262f0('0xe9d'),'type':_0x2262f0('0x7b8'),'min':0x1,'required':!![],'param':0x2}]},{'app':_0x2262f0('0x1bd'),'appType':'queue','foreignKey':_0x2262f0('0x22f8'),'type':'queue','icon':'icon-apps','interval':_0x2262f0('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x2262f0('0x14c4'),'field':{'name':_0x2262f0('0x1bd'),'key':_0x2262f0('0x2aa')},'route':'faxQueue','filters':{'fields':_0x2262f0('0x960'),'sort':_0x2262f0('0x2aa'),'nolimit':!![]},'permissions':{'section':0x385}}],'fields':[{'title':_0x2262f0('0x1eb2'),'name':_0x2262f0('0x1bd'),'type':'apiselect','values':_0x2262f0('0x14c4'),'value':'queue.name','option':_0x2262f0('0x661'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':_0x2262f0('0x1ceb'),'name':'timeout','type':_0x2262f0('0x7b8'),'max':0x20c49b,'min':0x0,'defaultValue':0x12c,'required':!![],'param':0x1}]},{'app':_0x2262f0('0x684'),'appType':'agent','type':_0x2262f0('0x684'),'foreignKey':_0x2262f0('0x5e5'),'icon':_0x2262f0('0x24a0'),'interval':_0x2262f0('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x2262f0('0x25ea'),'field':{'name':_0x2262f0('0x684'),'key':'name'},'route':_0x2262f0('0x221e'),'filters':{'fields':_0x2262f0('0x12d2'),'sort':_0x2262f0('0x2aa'),'role':'agent','nolimit':!![]},'permissions':{'section':0xca}}],'fields':[{'title':_0x2262f0('0x1874'),'name':_0x2262f0('0x684'),'type':_0x2262f0('0x1ecc'),'values':_0x2262f0('0x25ea'),'value':_0x2262f0('0x274e'),'option':_0x2262f0('0x274e'),'required':!![],'param':0x0},{'title':'Timeout','name':_0x2262f0('0xd2f'),'type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x2262f0('0xbc9'),'appType':'close','type':'close','icon':'icon-apps','interval':_0x2262f0('0x20c3'),'isApp':!![],'fields':[{'title':'Disposition','name':'disposition','type':_0x2262f0('0x132f'),'required':!![],'param':0x0}]},{'app':_0x2262f0('0x1132'),'appType':'tag','type':'tag','foreignKey':_0x2262f0('0x1686'),'icon':'icon-apps','interval':_0x2262f0('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x2262f0('0x1522'),'field':{'name':'tag','key':_0x2262f0('0x2aa')},'route':_0x2262f0('0x1132'),'filters':{'fields':_0x2262f0('0x12d2'),'sort':_0x2262f0('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x2262f0('0xe16'),'name':_0x2262f0('0x1132'),'type':_0x2262f0('0x1ecc'),'values':'tags','value':_0x2262f0('0xf6b'),'option':_0x2262f0('0xf6b'),'required':!![],'param':0x0}]}],[_0x2262f0('0x643')]),{'isApp':![]}),_0x242094[_0x2262f0('0x134c')]={'group':{'name':_0x2262f0('0x2003'),'pull':'clone'},'animation':0x64,'sort':![]},_0x242094['applications']={'group':{'name':'opt2','put':_0x2262f0('0x2003')},'animation':0x64,'onAdd':function(_0x9f512b){const _0x43887c=_0x2262f0;_0xf679c6(_0x9f512b,_0x9f512b[_0x43887c('0xf0c')]);},'onSort':function(){_0x25a22f();}},_0x242094[_0x2262f0('0x161d')]=_0x5b9c0e,_0x242094['deleteConfirm']=_0x32639b,_0x242094[_0x2262f0('0x1b7f')]=_0x902da,_0x242094[_0x2262f0('0x2401')]=_0xf679c6,_0x242094[_0x2262f0('0x1374')]=_0x52e016,_0x242094[_0x2262f0('0xe9e')]=_0xf32c71,_0x242094[_0x2262f0('0x1cbd')]=_0x48b895,_0x242094[_0x2262f0('0x107b')]=_0x25a22f,_0x242094[_0x2262f0('0x1a0d')]=_0x3304cc;function _0x5b9c0e(_0x2448ea,_0x380409){const _0x200c23=_0x2262f0;_0x242094['faxAccount']=_0x2448ea,_0x242094[_0x200c23('0x103e')]=typeof _0x380409!==_0x200c23('0xfad')?_0x380409:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x242094[_0x200c23('0x1683')][_0x200c23('0xc3c')]=!_0x242094[_0x200c23('0x103e')][_0x200c23('0x1d34')]?!![]:![],_0x242094['query']['id']=_0x2448ea['id'],_0x242094['query'][_0x200c23('0xb08')]=!![],_0x242094['query']['nolimit']=!![],_0x242094[_0x200c23('0x1b7f')](),_0x242094[_0x200c23('0x1a0d')]();}function _0x32639b(_0x1b51cb,_0x2d4769,_0x50b42a){const _0x4fbc7f=_0x2262f0,_0x2cc354=_0x163b6[_0x4fbc7f('0x1121')]()[_0x4fbc7f('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x4fbc7f('0x211f')](_0x4fbc7f('0xa53')+_0x1b51cb[_0x4fbc7f('0x643')]+_0x4fbc7f('0x1d23')+_0x4fbc7f('0xe9f'))[_0x4fbc7f('0x2095')]('delete\x20application')[_0x4fbc7f('0x104f')](_0x50b42a)['ok']('OK')[_0x4fbc7f('0x1d47')](_0x4fbc7f('0x28a0'));_0x163b6[_0x4fbc7f('0x28e2')](_0x2cc354)[_0x4fbc7f('0x17e7')](function(){const _0x14b431=_0x4fbc7f;_0x242094[_0x14b431('0xe10')][_0x14b431('0x2319')][_0x14b431('0x2335')](_0x2d4769,0x1),_0x25a22f();},function(){const _0x5bb429=_0x4fbc7f;console[_0x5bb429('0x1d63')](_0x5bb429('0x28a0'));});}function _0xf679c6(_0x26263c,_0x4c0c77){const _0x2fa7db=_0x2262f0;if(_0x242094[_0x2fa7db('0xe10')]['rows'][_0x2fa7db('0x1f73')]){const _0x33603c=_0x242094[_0x2fa7db('0xe10')]['rows'][_0x4c0c77]?_0x242094[_0x2fa7db('0xe10')][_0x2fa7db('0x2319')][_0x4c0c77]:_0x242094['faxAccountApps']['rows'][0x0],_0x99ba5d=(_0x33603c[_0x2fa7db('0x1c54')]||_0x33603c['app'])[_0x2fa7db('0x19b')]();_0x163b6[_0x2fa7db('0x28e2')]({'controller':_0x2fa7db('0x1127')+_0x99ba5d+_0x2fa7db('0x1553'),'controllerAs':'vm','templateUrl':_0x5b7e0b[_0x99ba5d],'parent':angular[_0x2fa7db('0x1ce1')](_0x2139c7[_0x2fa7db('0x13aa')]),'targetEvent':_0x26263c,'clickOutsideToClose':!![],'locals':{'faxAccountApp':_0x33603c,'faxAccount':_0x242094[_0x2fa7db('0x119')],'crudPermissions':_0x242094[_0x2fa7db('0x103e')]}})[_0x2fa7db('0x17e7')](function(_0x21857c){const _0x39063d=_0x2fa7db;_0x21857c&&(_0x21857c['id']?_0x242094[_0x39063d('0xe10')][_0x39063d('0x2319')][_0x4c0c77]=_0x21857c:_0x242094[_0x39063d('0xe10')][_0x39063d('0x2319')]['splice'](_0x4c0c77,0x0,_0x21857c),_0x25a22f());})[_0x2fa7db('0x16df')](function(_0xac6b4f){const _0x4cc24a=_0x2fa7db;_0xac6b4f&&_0x101d58[_0x4cc24a('0x1db9')]({'title':_0xac6b4f[_0x4cc24a('0x11c5')]?_0x4cc24a('0x14f7')+_0xac6b4f[_0x4cc24a('0x11c5')]+_0x4cc24a('0x16e4')+_0xac6b4f['statusText']:'SYSTEM:EDITMODALSHOW','msg':_0xac6b4f[_0x4cc24a('0x1457')]?JSON[_0x4cc24a('0x678')](_0xac6b4f[_0x4cc24a('0x1457')]):_0xac6b4f[_0x4cc24a('0x9b6')]()});});}}function _0x52e016(_0x3da6ff,_0x14d572){const _0x36a919=_0x2262f0;if(_0x242094['faxAccountApps'][_0x36a919('0x2319')][_0x36a919('0x1f73')]){const _0xaf3eb8=_0x242094[_0x36a919('0xe10')][_0x36a919('0x2319')][_0x14d572]?_0x242094[_0x36a919('0xe10')][_0x36a919('0x2319')][_0x14d572]:_0x242094[_0x36a919('0xe10')][_0x36a919('0x2319')][0x0];_0x163b6[_0x36a919('0x28e2')]({'controller':_0x36a919('0x6b0'),'controllerAs':'vm','templateUrl':_0x135ced,'parent':angular[_0x36a919('0x1ce1')](_0x2139c7[_0x36a919('0x13aa')]),'targetEvent':_0x3da6ff,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0xaf3eb8['interval'],'IntervalId':_0xaf3eb8[_0x36a919('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0x242094[_0x36a919('0x103e')]}})[_0x36a919('0x17e7')](function(_0x20bcb3){const _0x1a297d=_0x36a919;_0x20bcb3&&(_0xaf3eb8[_0x1a297d('0x231f')]=_0x20bcb3[_0x1a297d('0x231f')]||_0x1a297d('0x20c3'),_0xaf3eb8[_0x1a297d('0x24a9')]=_0x20bcb3[_0x1a297d('0x24a9')]||null,_0x25a22f());});}}function _0x25a22f(){const _0xf6d23=_0x2262f0;let _0x27d9de=0x1,_0x4d0811=[];for(let _0x3d531d=0x0;_0x3d531d<_0x242094[_0xf6d23('0xe10')][_0xf6d23('0x2319')]['length'];_0x3d531d++){const _0x555aec=_0x242094['faxAccountApps'][_0xf6d23('0x2319')][_0x3d531d],_0x25c69a=[],_0x9f81fb=[];_0x555aec['intervals']=_0x555aec['interval']!==_0xf6d23('0x20c3')?[_0x555aec['interval']]:_0x555aec['IntervalId']?_0x49cbdd()['map'](_0x49cbdd()[_0xf6d23('0x2483')](_0x242094['intervals'][_0xf6d23('0x2319')],{'IntervalId':_0x555aec['IntervalId']}),_0xf6d23('0x231f')):[],_0x555aec[_0xf6d23('0x17b3')]=_0x242094['faxAccount'][_0xf6d23('0x17b3')],_0x555aec[_0xf6d23('0xee9')]=_0x242094[_0xf6d23('0x119')][_0xf6d23('0xee9')],_0x555aec[_0xf6d23('0x412')]&&(_0x555aec[_0xf6d23('0x412')]=_0x555aec[_0xf6d23('0x412')][_0xf6d23('0x19b')]()),_0x555aec[_0xf6d23('0x1a6d')]=_0x25c69a[_0xf6d23('0x1f73')]?_0x49cbdd()[_0xf6d23('0x5e8')](_0x25c69a)[_0xf6d23('0x1a6d')]+0x1:_0x27d9de,_0x27d9de=(_0x9f81fb[_0xf6d23('0x1f73')]?_0x49cbdd()['last'](_0x9f81fb)['priority']:_0x555aec[_0xf6d23('0x1a6d')])+0x1,_0x4d0811=_0x49cbdd()[_0xf6d23('0xe1b')](_0x4d0811,_0x25c69a,[_0x555aec],_0x9f81fb);}_0x3ba959['faxAccount']['addApplications']({'id':_0x242094[_0xf6d23('0x119')]['id']},_0x49cbdd()[_0xf6d23('0x1be3')](_0x4d0811,_0xf6d23('0x1a6d')))['$promise']['then'](function(_0x5f4c32){const _0x303f73=_0xf6d23;_0x242094[_0x303f73('0xe10')][_0x303f73('0x2319')]=_0x5f4c32['rows'];})[_0xf6d23('0x16df')](function(_0x1beca3){const _0x2f7aaa=_0xf6d23;console[_0x2f7aaa('0x1db9')](_0x1beca3);});}function _0x3efea0(_0x565516){const _0x11bfd6=_0x2262f0;_0x242094[_0x11bfd6('0xe10')]=_0x565516||{'count':0x0,'rows':[]};}function _0x3304cc(){const _0x5d0043=_0x2262f0;return _0x3ba959[_0x5d0043('0x231f')][_0x5d0043('0x1c53')]({'fields':_0x5d0043('0x828')})[_0x5d0043('0x1af5')][_0x5d0043('0x17e7')](function(_0x224150){const _0x24e13f=_0x5d0043;_0x242094[_0x24e13f('0x1be1')]=_0x224150;})[_0x5d0043('0x16df')](function(_0x5beb83){const _0x5982f2=_0x5d0043;console[_0x5982f2('0x1db9')](_0x5beb83);});}function _0x902da(){const _0x17e0db=_0x2262f0;_0x242094[_0x17e0db('0x1691')]=_0x3ba959[_0x17e0db('0x119')][_0x17e0db('0xd3e')](_0x242094[_0x17e0db('0x826')],_0x3efea0)[_0x17e0db('0x1af5')];}function _0xf32c71(_0x3c867b){const _0x4b5432=_0x2262f0;_0x49cbdd()[_0x4b5432('0x5f3')](_0x242094[_0x4b5432('0xe10')]['rows'],{'id':_0x3c867b['id']}),_0x25a22f(),_0x101d58[_0x4b5432('0x130d')]({'title':'App\x20deleted!','msg':_0x3c867b[_0x4b5432('0x643')]?_0x3c867b[_0x4b5432('0x643')]+_0x4b5432('0x149f'):''});}function _0x48b895(_0x3bb49f){const _0x1c8ea3=_0x2262f0,_0xaf61fd=_0x163b6[_0x1c8ea3('0x1121')]()[_0x1c8ea3('0x24d3')](_0x1c8ea3('0x272a'))[_0x1c8ea3('0x211f')](_0x1c8ea3('0xa53')+_0x242094[_0x1c8ea3('0x8a3')]['length']+_0x1c8ea3('0x145a')+_0x1c8ea3('0xe9f'))[_0x1c8ea3('0x2095')]('delete\x20applications')[_0x1c8ea3('0x104f')](_0x3bb49f)['ok']('OK')[_0x1c8ea3('0x1d47')](_0x1c8ea3('0x28a0'));_0x163b6[_0x1c8ea3('0x28e2')](_0xaf61fd)[_0x1c8ea3('0x17e7')](function(){const _0x2ddd8b=_0x1c8ea3;_0x242094[_0x2ddd8b('0x8a3')][_0x2ddd8b('0xccd')](function(_0x2d30ba){const _0x19c5a8=_0x2ddd8b;_0x49cbdd()['remove'](_0x242094[_0x19c5a8('0xe10')]['rows'],{'id':_0x2d30ba['id']});}),_0x242094['selectedFaxAccountApps']=[],_0x25a22f();});}}const _0x14c020=_0x3a61ae;_0xd039e8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),'faxAccount',_0x4376d8('0xec4'),_0x4376d8('0x20c8'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),'crudPermissions'];function _0xd039e8(_0x1bd4f8,_0x182af4,_0x1bd4fc,_0x4a1e00,_0x27db77,_0x4f2232,_0x45ef48,_0x266311,_0x5674b2,_0x5bb3fc){const _0x3fb696=_0x4376d8,_0x10076c=this;_0x10076c[_0x3fb696('0x197c')]=_0x5674b2[_0x3fb696('0x2831')](),_0x10076c[_0x3fb696('0x119')]=_0x27db77,_0x10076c['crudPermissions']=_0x5bb3fc,_0x10076c[_0x3fb696('0x20c8')]=_0x45ef48,_0x10076c[_0x3fb696('0x532')]=[],_0x10076c[_0x3fb696('0x2722')]=[],_0x10076c['selectedItems']=[],_0x10076c[_0x3fb696('0x181b')]=[],_0x10076c['startingSelectedItems']=[],_0x10076c[_0x3fb696('0x25dc')]=![],_0x10076c['onInit']=_0x95e007,_0x10076c[_0x3fb696('0x257a')]=_0x357ee7,_0x10076c[_0x3fb696('0x136e')]=_0x15f4a8,_0x10076c[_0x3fb696('0x26f4')]={'readOnly':!_0x10076c[_0x3fb696('0x103e')][_0x3fb696('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3fb696('0x2aa'),'line1':'fullname','line2':[_0x3fb696('0x2aa'),_0x3fb696('0xe3e')],'line3':'','labelAll':_0x266311[_0x3fb696('0x1acc')](_0x3fb696('0x1b1c')),'labelSelected':_0x266311[_0x3fb696('0x1acc')](_0x3fb696('0x8e6')),'transferCallback':function(){const _0x5bdc63=_0x3fb696,_0x4a0332=_0x49cbdd()[_0x5bdc63('0x137')](_0x10076c[_0x5bdc63('0x1824')],_0x10076c[_0x5bdc63('0xc14')],'id');_0x10076c[_0x5bdc63('0x25dc')]=_0x49cbdd()['isEmpty'](_0x4a0332)?![]:!![];}};function _0x95e007(){const _0x11db71=_0x3fb696;return _0x5674b2[_0x11db71('0x1ba2')]('admin')?_0x331d7c()['catch'](function(_0xda35fd){const _0x51a0b5=_0x11db71;_0x1bd4fc['error']({'title':_0xda35fd[_0x51a0b5('0x11c5')]?_0x51a0b5('0x14f7')+_0xda35fd[_0x51a0b5('0x11c5')]+_0x51a0b5('0x16e4')+_0xda35fd['statusText']:_0x51a0b5('0x23e0'),'msg':_0xda35fd[_0x51a0b5('0x11c5')]?JSON['stringify'](_0xda35fd['data']):_0xda35fd['toString']()});}):_0x58e37f()[_0x11db71('0x17e7')](function(_0x86795){const _0x28c210=_0x11db71;return _0x10076c[_0x28c210('0x16f8')]=_0x86795,_0x331d7c();})[_0x11db71('0x16df')](function(_0xa33fd0){const _0x4623e6=_0x11db71;_0x1bd4fc[_0x4623e6('0x1db9')]({'title':_0xa33fd0[_0x4623e6('0x11c5')]?_0x4623e6('0x14f7')+_0xa33fd0['status']+'\x20-\x20'+_0xa33fd0[_0x4623e6('0x1833')]:_0x4623e6('0x23e0'),'msg':_0xa33fd0[_0x4623e6('0x11c5')]?JSON[_0x4623e6('0x678')](_0xa33fd0[_0x4623e6('0x1457')]):_0xa33fd0['toString']()});});}function _0x58e37f(){return _0x182af4(function(_0x2129f6,_0xe94622){const _0x32bfb2=a0_0xd29e;_0x4a1e00[_0x32bfb2('0x383')][_0x32bfb2('0x1c53')]({'userProfileId':_0x10076c[_0x32bfb2('0x197c')][_0x32bfb2('0x1e76')],'name':_0x32bfb2('0x2157')})['$promise']['then'](function(_0x269f1b){const _0x2218e0=_0x269f1b&&_0x269f1b['rows']?_0x269f1b['rows'][0x0]:null;_0x2129f6(_0x2218e0);})['catch'](function(_0x13bff9){_0xe94622(_0x13bff9);});});}function _0x331d7c(){return _0x182af4(function(_0x10f578,_0x1f9ae9){const _0x3940e7=a0_0xd29e;return _0x3f818d()['then'](function(_0x3f17e1){const _0x4d6abe=a0_0xd29e;return _0x10076c[_0x4d6abe('0x532')]=_0x3f17e1[_0x4d6abe('0x2319')]?_0x3f17e1['rows']:[],_0x5674b2[_0x4d6abe('0x1ba2')]('admin')?_0x3f17e1:_0x10076c['section']?_0x10076c[_0x4d6abe('0x16f8')][_0x4d6abe('0x9e3')]?_0x3f17e1:_0x552597():null;})['then'](function(_0x14a7a){const _0xd26c92=a0_0xd29e,_0x17b74b=_0x14a7a&&_0x14a7a['rows']?_0x14a7a[_0xd26c92('0x2319')]:[];return _0x10076c[_0xd26c92('0x2722')]=_0x49cbdd()[_0xd26c92('0x787')](_0x17b74b,function(_0x58a2e8){const _0xbf57a3=_0xd26c92;return _0x49cbdd()[_0xbf57a3('0xe8e')](_0x10076c['items'],{'id':_0x5674b2[_0xbf57a3('0x1ba2')](_0xbf57a3('0x20bf'))||_0x10076c[_0xbf57a3('0x16f8')][_0xbf57a3('0x9e3')]?_0x58a2e8['id']:_0x58a2e8[_0xbf57a3('0x5db')]});}),_0x10076c[_0xd26c92('0x181b')]=angular[_0xd26c92('0x14e5')](_0x10076c['allowedItems']),_0x10076c[_0xd26c92('0x532')]['forEach'](function(_0x26ae07){const _0x2965e7=_0xd26c92,_0x11145f=_0x49cbdd()[_0x2965e7('0xe8e')](_0x10076c[_0x2965e7('0x2722')],{'id':_0x26ae07['id']});_0x5674b2[_0x2965e7('0x1ba2')](_0x2965e7('0x20bf'))?_0x26ae07[_0x2965e7('0xc98')]=!![]:_0x26ae07['isValid']=typeof _0x11145f!=='undefined'?!![]:![];}),_0x1acc13();})['then'](function(_0x49f7e7){const _0x106878=a0_0xd29e,_0x58234b=_0x49f7e7&&_0x49f7e7['rows']?_0x49f7e7[_0x106878('0x2319')]:[];_0x10076c['selectedItems']=_0x49cbdd()[_0x106878('0x787')](_0x58234b,function(_0xaa176d){const _0x26d819=_0x106878,_0x59301f=_0x49cbdd()[_0x26d819('0xe8e')](_0x10076c[_0x26d819('0x532')],{'id':_0xaa176d['id']});return _0x59301f['penalty']=_0xaa176d[_0x26d819('0x174')]?_0x26d819('0x973')+_0xaa176d[_0x26d819('0x174')][_0x26d819('0x122c')]:'',_0x59301f['internal']=typeof _0xaa176d['internal']!==_0x26d819('0xfad')?'<'+_0xaa176d[_0x26d819('0xe3e')]+'>':'',_0x59301f;}),_0x10076c[_0x106878('0x1824')]=angular['copy'](_0x10076c[_0x106878('0xc14')]),_0x10076c[_0x106878('0x26f4')][_0x106878('0xc14')]=_0x10076c[_0x106878('0xc14')],_0x10076c[_0x106878('0x26f4')]['items']=_0x49cbdd()['differenceBy'](_0x10076c[_0x106878('0x2722')],_0x10076c[_0x106878('0x26f4')][_0x106878('0xc14')],'id'),_0x10f578();})[_0x3940e7('0x16df')](function(_0xbbd663){_0x1f9ae9(_0xbbd663);});});}function _0x552597(){return _0x182af4(function(_0x3dfb39,_0x6bbde2){const _0x4e089e=a0_0xd29e;return _0x4a1e00[_0x4e089e('0x78d')][_0x4e089e('0x1c53')]({'sectionId':_0x10076c[_0x4e089e('0x16f8')]['id'],'nolimit':!![]})[_0x4e089e('0x1af5')][_0x4e089e('0x17e7')](function(_0x123926){_0x3dfb39(_0x123926);})[_0x4e089e('0x16df')](function(_0x3ce132){_0x6bbde2(_0x3ce132);});});}function _0x1acc13(){return _0x182af4(function(_0x10cf8c,_0x4f9a40){const _0xef777=a0_0xd29e;return _0x4a1e00[_0xef777('0x119')][_0xef777('0x1dac')]({'id':_0x10076c[_0xef777('0x119')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0xef777('0x684')})[_0xef777('0x1af5')][_0xef777('0x17e7')](function(_0x5dd8be){_0x10cf8c(_0x5dd8be);})['catch'](function(_0x59f0fc){_0x4f9a40(_0x59f0fc);});});}function _0x3f818d(){return _0x182af4(function(_0x3b601d,_0x48d470){const _0x2bead1=a0_0xd29e;return _0x4a1e00[_0x2bead1('0x221e')][_0x2bead1('0x1c53')]({'fields':_0x2bead1('0x1152'),'nolimit':!![],'role':_0x2bead1('0x684')})[_0x2bead1('0x1af5')][_0x2bead1('0x17e7')](function(_0x28acd4){_0x3b601d(_0x28acd4);})[_0x2bead1('0x16df')](function(_0x54fa71){_0x48d470(_0x54fa71);});});}function _0x5bdf3b(_0x5b6793){return _0x182af4(function(_0x12bafb,_0xc3fcf0){const _0x1921a1=a0_0xd29e;_0x49cbdd()[_0x1921a1('0x109a')](_0x5b6793)?_0x12bafb():_0x4a1e00[_0x1921a1('0x119')][_0x1921a1('0x1f22')]({'id':_0x10076c[_0x1921a1('0x119')]['id'],'ids':_0x49cbdd()[_0x1921a1('0x787')](_0x5b6793,'id')})[_0x1921a1('0x1af5')][_0x1921a1('0x17e7')](function(){_0x12bafb();})[_0x1921a1('0x16df')](function(_0x47071d){_0xc3fcf0(_0x47071d);});});}function _0x555f28(_0x2c190b){return _0x182af4(function(_0x2e0ad3,_0x61a78b){const _0x5eb4c5=a0_0xd29e;_0x49cbdd()[_0x5eb4c5('0x109a')](_0x2c190b)?_0x2e0ad3():_0x4a1e00[_0x5eb4c5('0x119')][_0x5eb4c5('0x1625')]({'id':_0x10076c[_0x5eb4c5('0x119')]['id'],'ids':_0x49cbdd()[_0x5eb4c5('0x787')](_0x2c190b,'id')})[_0x5eb4c5('0x1af5')][_0x5eb4c5('0x17e7')](function(){_0x2e0ad3();})['catch'](function(_0x1f62d7){_0x61a78b(_0x1f62d7);});});}function _0x357ee7(){const _0x2bb96a=_0x3fb696,_0x5ddbdb=_0x49cbdd()[_0x2bb96a('0x1ada')](_0x10076c['startingSelectedItems'],_0x10076c['selectedItems'],'id'),_0x531c0d=_0x49cbdd()['differenceBy'](_0x10076c[_0x2bb96a('0xc14')],_0x10076c[_0x2bb96a('0x1824')],'id');return _0x555f28(_0x5ddbdb)[_0x2bb96a('0x17e7')](function(){return _0x5bdf3b(_0x531c0d);})['then'](function(){const _0x57013b=_0x2bb96a;_0x10076c[_0x57013b('0x25dc')]=![],_0x10076c['startingAllowedItems']=angular[_0x57013b('0x14e5')](_0x10076c['allowedItems']),_0x10076c['startingSelectedItems']=angular[_0x57013b('0x14e5')](_0x10076c[_0x57013b('0xc14')]),_0x1bd4fc[_0x57013b('0x130d')]({'title':_0x57013b('0x9d1'),'msg':_0x57013b('0x2603')});})['catch'](function(_0x5c04e0){const _0x29ce2e=_0x2bb96a;_0x1bd4fc[_0x29ce2e('0x1db9')]({'title':_0x5c04e0[_0x29ce2e('0x11c5')]?_0x29ce2e('0x14f7')+_0x5c04e0[_0x29ce2e('0x11c5')]+_0x29ce2e('0x16e4')+_0x5c04e0['statusText']:_0x29ce2e('0x244e'),'msg':_0x5c04e0[_0x29ce2e('0x11c5')]?JSON[_0x29ce2e('0x678')](_0x5c04e0[_0x29ce2e('0x1457')]):_0x5c04e0['toString']()});});}function _0x15f4a8(){const _0x1dd0f4=_0x3fb696;_0x1bd4f8[_0x1dd0f4('0x212a')]();}}const _0x51300c=_0xd039e8;_0x312e78[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x4e6'),'faxAccount',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x312e78(_0x2c3b0b,_0x20f79d,_0x296207,_0x4c8a7d,_0x5c739e,_0x319cf2,_0x2b7b97,_0x3dccff){const _0x2307c0=_0x4376d8,_0x1d9c4d=this;_0x1d9c4d['currentUser']=_0x2b7b97[_0x2307c0('0x2831')](),_0x1d9c4d[_0x2307c0('0x73e')]=[],_0x1d9c4d['title']=_0x2307c0('0x1018')+(_0x4c8a7d[_0x2307c0('0x1c54')]||_0x4c8a7d[_0x2307c0('0x643')])[_0x2307c0('0x14e2')](),_0x1d9c4d[_0x2307c0('0x684')]=angular[_0x2307c0('0x14e5')](_0x4c8a7d),_0x1d9c4d[_0x2307c0('0x103e')]=_0x3dccff,_0x1d9c4d[_0x2307c0('0x6ee')]={};if(_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2077')])switch(_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x1c54')]?_0x1d9c4d['agent'][_0x2307c0('0x1c54')]['toLowerCase']():_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x643')][_0x2307c0('0x19b')]()){case'custom':break;case'dialogflow':{const _0x521547=_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2077')][_0x2307c0('0x2007')](',');_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0xdb5')]=_0x521547[0x0],_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x3e1')]=_0x521547[0x1],_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x1083')]=_0x521547['slice'](0x2,_0x521547['length'])['join'](',');}break;case _0x2307c0('0x22ac'):{const _0x1ebd5d=_0x1d9c4d['agent'][_0x2307c0('0x2077')][_0x2307c0('0x2007')](',');_0x1d9c4d['agent'][_0x2307c0('0x28ab')]=_0x1ebd5d[0x0],_0x1d9c4d[_0x2307c0('0x684')]['clientEmail']=_0x1ebd5d[0x1],_0x1d9c4d['agent']['privateKey']=_0x1ebd5d[0x2],_0x1d9c4d['agent']['language']=_0x1ebd5d[0x3],_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x1083')]=_0x1ebd5d[_0x2307c0('0x275f')](0x4,_0x1ebd5d['length'])[_0x2307c0('0x1eba')](',');}break;case'amazonlex':{const _0x357a90=_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2077')][_0x2307c0('0x2007')](',');_0x1d9c4d['agent'][_0x2307c0('0x1452')]=_0x357a90[0x0],_0x1d9c4d[_0x2307c0('0x684')]['secretaccesskey']=_0x357a90[0x1],_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x1dcf')]=_0x357a90[0x2],_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x4a')]=_0x357a90[0x3],_0x1d9c4d['agent'][_0x2307c0('0x1083')]=_0x357a90['slice'](0x4,_0x357a90['length'])[_0x2307c0('0x1eba')](',');}break;case _0x2307c0('0x96e'):{const _0x19e7ff=_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2077')][_0x2307c0('0x2007')](',');_0x1d9c4d[_0x2307c0('0x684')]['times']=isNaN(_0x19e7ff[0x0])?_0x19e7ff[0x0]:parseInt(_0x19e7ff[0x0],0xa),_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x132f')]=_0x19e7ff[_0x2307c0('0x275f')](0x1,_0x19e7ff[_0x2307c0('0x1f73')])['join'](',');}break;case _0x2307c0('0x1603'):_0x1d9c4d['agent'][_0x2307c0('0x132f')]=_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2077')];break;case _0x2307c0('0xf2e'):_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2aa')]=_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2077')][_0x2307c0('0x2007')]('=')[0x0],_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x175b')]=_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2077')][_0x2307c0('0x2007')]('=')[0x1];break;case _0x2307c0('0x17c6'):_0x1d9c4d[_0x2307c0('0x684')]['project']=_0x1d9c4d['agent'][_0x2307c0('0x2077')];break;default:{const _0x302ad4=_0x1d9c4d[_0x2307c0('0x684')]['appdata'][_0x2307c0('0x2007')](',');_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x684')]=_0x49cbdd()[_0x2307c0('0x109a')](_0x302ad4[0x0])?_0x302ad4[0x0]:isNaN(_0x302ad4[0x0])?_0x302ad4[0x0]:parseInt(_0x302ad4[0x0],0xa),_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0xd2f')]=_0x49cbdd()[_0x2307c0('0x109a')](_0x302ad4[0x1])?_0x302ad4[0x1]:isNaN(_0x302ad4[0x1])?_0x302ad4[0x1]:parseInt(_0x302ad4[0x1],0xa);}break;}else _0x1d9c4d[_0x2307c0('0x684')]['timeout']=0x1e;_0x1d9c4d['agent'][_0x2307c0('0x412')]&&_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x412')]['toLowerCase']()===_0x2307c0('0x1ade')&&_0x1d9c4d['agent'][_0x2307c0('0x1c54')][_0x2307c0('0x19b')]()===_0x2307c0('0x1711')&&(_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x11d4')]=_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x2154')]?_0x1d9c4d['agent'][_0x2307c0('0x2154')][_0x2307c0('0x2007')]('$')[0x0]:undefined,_0x1d9c4d[_0x2307c0('0x684')]['callerId']=_0x1d9c4d[_0x2307c0('0x684')][_0x2307c0('0x17f4')]?_0x2307c0('0x1d28')+_0x1d9c4d[_0x2307c0('0x684')]['callerID']:undefined);_0x1d9c4d[_0x2307c0('0x2123')]=_0x4a72e2,_0x1d9c4d[_0x2307c0('0x136e')]=_0xb9a54a,_0x2b7b97['hasRole']('admin')?_0x319cf2[_0x2307c0('0x221e')][_0x2307c0('0x1c53')]({'fields':_0x2307c0('0x12d2'),'sort':_0x2307c0('0x2aa'),'role':'agent','nolimit':'true'})[_0x2307c0('0x1af5')][_0x2307c0('0x17e7')](function(_0x506484){const _0x4b3540=_0x2307c0;_0x1d9c4d[_0x4b3540('0x25ea')]=_0x506484['rows']||[];})[_0x2307c0('0x16df')](function(_0x4d001b){const _0x57d8e1=_0x2307c0;_0x296207[_0x57d8e1('0x1db9')]({'title':_0x4d001b['status']?_0x57d8e1('0x14f7')+_0x4d001b[_0x57d8e1('0x11c5')]+_0x57d8e1('0x16e4')+_0x4d001b[_0x57d8e1('0x1833')]:'SYSTEM:GET_AGENTS','msg':_0x4d001b['data']?JSON[_0x57d8e1('0x678')](_0x4d001b[_0x57d8e1('0x1457')]):_0x4d001b[_0x57d8e1('0x9b6')]()});}):_0x319cf2['user'][_0x2307c0('0x1c53')]({'fields':_0x2307c0('0x12d2'),'sort':_0x2307c0('0x2aa'),'role':'agent','nolimit':_0x2307c0('0xe34')})['$promise'][_0x2307c0('0x17e7')](function(_0x4bacae){const _0x117774=_0x2307c0;_0x1d9c4d[_0x117774('0x25ea')]=_0x4bacae[_0x117774('0x2319')]||[];})['then'](function(){const _0x538260=_0x2307c0;return _0x319cf2[_0x538260('0x383')][_0x538260('0x1c53')]({'userProfileId':_0x1d9c4d[_0x538260('0x197c')][_0x538260('0x1e76')],'sectionId':0xca})['$promise'];})[_0x2307c0('0x17e7')](function(_0x2ca3bd){const _0x38c679=_0x2307c0,_0x386486=_0x2ca3bd&&_0x2ca3bd[_0x38c679('0x2319')]?_0x2ca3bd[_0x38c679('0x2319')][0x0]:null;if(!_0x386486){const _0x2fe6bc=[];let _0x53b3bb=null;_0x1d9c4d['agent']&&(_0x53b3bb=_0x49cbdd()[_0x38c679('0xe8e')](_0x1d9c4d['agents'],{'name':_0x1d9c4d[_0x38c679('0x684')][_0x38c679('0x684')]}));for(let _0x2efa5c=0x0;_0x2efa5c<_0x1d9c4d[_0x38c679('0x25ea')][_0x38c679('0x1f73')];_0x2efa5c++){_0x53b3bb&&_0x1d9c4d[_0x38c679('0x25ea')][_0x2efa5c]['id']===_0x53b3bb['id']&&(_0x1d9c4d[_0x38c679('0x25ea')][_0x2efa5c][_0x38c679('0xe5c')]=![],_0x2fe6bc[_0x38c679('0x269f')](_0x1d9c4d[_0x38c679('0x25ea')][_0x2efa5c]));}_0x1d9c4d['agents']=_0x2fe6bc;}else{if(!_0x386486[_0x38c679('0x9e3')])return _0x319cf2[_0x38c679('0x78d')]['get']({'sectionId':_0x386486['id']})[_0x38c679('0x1af5')][_0x38c679('0x17e7')](function(_0x1406d5){const _0xcd96bc=_0x38c679,_0x1a3dd4=_0x49cbdd()[_0xcd96bc('0x787')](_0x1406d5[_0xcd96bc('0x2319')],function(_0x14123b){const _0x2fd5e3=_0xcd96bc;return _0x49cbdd()[_0x2fd5e3('0xe8e')](_0x1d9c4d[_0x2fd5e3('0x25ea')],{'id':_0x14123b[_0x2fd5e3('0x5db')]});});let _0x4aed32=null;_0x1d9c4d[_0xcd96bc('0x684')]&&(_0x4aed32=_0x49cbdd()['find'](_0x1d9c4d[_0xcd96bc('0x25ea')],{'name':_0x1d9c4d['agent'][_0xcd96bc('0x684')]}));if(_0x4aed32&&!_0x49cbdd()[_0xcd96bc('0x26f8')](_0x1a3dd4,['id',_0x4aed32['id']])){const _0x3e3510=_0x49cbdd()[_0xcd96bc('0xe8e')](_0x1d9c4d[_0xcd96bc('0x25ea')],{'id':_0x4aed32['id']});_0x3e3510['canSelect']=![],_0x1a3dd4[_0xcd96bc('0x269f')](_0x3e3510);}_0x1d9c4d[_0xcd96bc('0x25ea')]=_0x1a3dd4;});}})[_0x2307c0('0x16df')](function(_0x5c8ce9){const _0x12b229=_0x2307c0;_0x296207[_0x12b229('0x1db9')]({'title':_0x5c8ce9[_0x12b229('0x11c5')]?_0x12b229('0x14f7')+_0x5c8ce9[_0x12b229('0x11c5')]+_0x12b229('0x16e4')+_0x5c8ce9[_0x12b229('0x1833')]:_0x12b229('0xa37'),'msg':_0x5c8ce9[_0x12b229('0x1457')]?JSON['stringify'](_0x5c8ce9[_0x12b229('0x1457')]):_0x5c8ce9['toString']()});});function _0x4a72e2(){const _0x51c23e=_0x2307c0;_0x1d9c4d['errors']=[];const _0x47cc2e=[];_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x412')]&&_0x1d9c4d['agent'][_0x51c23e('0x412')][_0x51c23e('0x19b')]()===_0x51c23e('0x1ade')&&_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x1c54')]==='outboundDial'&&(_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x2154')]=_0x5c739e[_0x51c23e('0x12af')]?(_0x1d9c4d[_0x51c23e('0x684')]['prefix']||'')+'${EXTEN:'+_0x5c739e[_0x51c23e('0x12af')]+'}':(_0x1d9c4d['agent']['prefix']||'')+_0x51c23e('0x150e'),_0x5c739e[_0x51c23e('0x287')]!=='none'?_0x1d9c4d[_0x51c23e('0x684')]['options'][_0x51c23e('0x2567')](_0x51c23e('0xa22'))<0x0&&(_0x1d9c4d['agent'][_0x51c23e('0x19')]+='U(xcally-mixmonitor-context)'):_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x19')]=_0x1d9c4d['agent'][_0x51c23e('0x19')][_0x51c23e('0x737')](_0x51c23e('0xa22'),''));const _0x325215=_0x49cbdd()[_0x51c23e('0xe8e')](_0x1d9c4d['agents'],{'name':_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x684')]});_0x325215&&(_0x1d9c4d['agent'][_0x51c23e('0x5e5')]=_0x325215['id']);if(_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x1c54')]&&_0x1d9c4d[_0x51c23e('0x684')]['appType']===_0x51c23e('0x8fa')){}else switch((_0x1d9c4d['agent'][_0x51c23e('0x643')]||_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x1c54')])[_0x51c23e('0x19b')]()){case _0x51c23e('0xf2e'):_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x2077')]=_0x1d9c4d['agent'][_0x51c23e('0x2aa')]+'='+_0x1d9c4d[_0x51c23e('0x684')]['value'];break;case _0x51c23e('0x8fa'):break;default:_0x47cc2e[0x0]=_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0x684')],_0x47cc2e[0x1]=_0x1d9c4d[_0x51c23e('0x684')][_0x51c23e('0xd2f')],_0x1d9c4d['agent'][_0x51c23e('0x2077')]=_0x47cc2e[_0x51c23e('0x1eba')](',');}_0xb9a54a(_0x1d9c4d[_0x51c23e('0x684')]);}function _0xb9a54a(_0x2fc984){const _0x2786e3=_0x2307c0;_0x2c3b0b[_0x2786e3('0x212a')](_0x2fc984);}}const _0x414aa3=_0x312e78;_0x2a1885[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x4e6'),'faxAccount','api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x2a1885(_0x38503e,_0x1cda58,_0x56be93,_0x5040ad,_0x1532f1,_0x4272d4,_0x23f356,_0x3cbb7b){const _0x4db7be=_0x4376d8,_0x5d87a7=this;_0x5d87a7[_0x4db7be('0x197c')]=_0x23f356[_0x4db7be('0x2831')](),_0x5d87a7[_0x4db7be('0x73e')]=[],_0x5d87a7[_0x4db7be('0x24d3')]=_0x4db7be('0x1018')+(_0x5040ad[_0x4db7be('0x1c54')]||_0x5040ad[_0x4db7be('0x643')])[_0x4db7be('0x14e2')](),_0x5d87a7[_0x4db7be('0xbc9')]=angular['copy'](_0x5040ad),_0x5d87a7[_0x4db7be('0x103e')]=_0x3cbb7b,_0x5d87a7['hasModulePermissions']={};if(_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')])switch(_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1c54')]?_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1c54')]['toLowerCase']():_0x5d87a7['close']['app'][_0x4db7be('0x19b')]()){case _0x4db7be('0x8fa'):break;case _0x4db7be('0x2526'):{const _0x4c57f1=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')]['split'](',');_0x5d87a7[_0x4db7be('0xbc9')]['key']=_0x4c57f1[0x0],_0x5d87a7['close'][_0x4db7be('0x3e1')]=_0x4c57f1[0x1],_0x5d87a7['close'][_0x4db7be('0x1083')]=_0x4c57f1[_0x4db7be('0x275f')](0x2,_0x4c57f1[_0x4db7be('0x1f73')])['join'](',');}break;case _0x4db7be('0x22ac'):{const _0x3768dd=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')][_0x4db7be('0x2007')](',');_0x5d87a7[_0x4db7be('0xbc9')]['projectId']=_0x3768dd[0x0],_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2814')]=_0x3768dd[0x1],_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1bc2')]=_0x3768dd[0x2],_0x5d87a7[_0x4db7be('0xbc9')]['language']=_0x3768dd[0x3],_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1083')]=_0x3768dd[_0x4db7be('0x275f')](0x4,_0x3768dd[_0x4db7be('0x1f73')])['join'](',');}break;case _0x4db7be('0x16a9'):{const _0x39a25b=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')][_0x4db7be('0x2007')](',');_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1452')]=_0x39a25b[0x0],_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1a62')]=_0x39a25b[0x1],_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1dcf')]=_0x39a25b[0x2],_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x4a')]=_0x39a25b[0x3],_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1083')]=_0x39a25b[_0x4db7be('0x275f')](0x4,_0x39a25b[_0x4db7be('0x1f73')])['join'](',');}break;case _0x4db7be('0x96e'):{const _0x35037a=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')][_0x4db7be('0x2007')](',');_0x5d87a7['close'][_0x4db7be('0x12a6')]=isNaN(_0x35037a[0x0])?_0x35037a[0x0]:parseInt(_0x35037a[0x0],0xa),_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x132f')]=_0x35037a[_0x4db7be('0x275f')](0x1,_0x35037a[_0x4db7be('0x1f73')])[_0x4db7be('0x1eba')](',');}break;case _0x4db7be('0x1603'):_0x5d87a7['close']['text']=_0x5d87a7[_0x4db7be('0xbc9')]['appdata'];break;case'set':_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2aa')]=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')][_0x4db7be('0x2007')]('=')[0x0],_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x175b')]=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')][_0x4db7be('0x2007')]('=')[0x1];break;case _0x4db7be('0x17c6'):_0x5d87a7[_0x4db7be('0xbc9')]['project']=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')];break;default:{const _0x549425=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2077')][_0x4db7be('0x2007')](',');_0x5d87a7['close'][_0x4db7be('0x1f27')]=_0x49cbdd()[_0x4db7be('0x109a')](_0x549425[0x0])?_0x549425[0x0]:isNaN(_0x549425[0x0])?_0x549425[0x0]:parseInt(_0x549425[0x0],0xa);}break;}else{}_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x412')]&&_0x5d87a7['close']['type']['toLowerCase']()===_0x4db7be('0x1ade')&&_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x1c54')][_0x4db7be('0x19b')]()===_0x4db7be('0x1711')&&(_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x11d4')]=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2154')]?_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x2154')][_0x4db7be('0x2007')]('$')[0x0]:undefined,_0x5d87a7['close']['callerId']=_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x17f4')]?'CALLERID(all)='+_0x5d87a7[_0x4db7be('0xbc9')][_0x4db7be('0x17f4')]:undefined);_0x5d87a7['saveFaxAccountApp']=_0x2e65f4,_0x5d87a7[_0x4db7be('0x136e')]=_0x4ad2c4;function _0x2e65f4(){const _0x18c55b=_0x4db7be;_0x5d87a7[_0x18c55b('0x73e')]=[];const _0x25ff3e=[];_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x412')]&&_0x5d87a7['close'][_0x18c55b('0x412')][_0x18c55b('0x19b')]()===_0x18c55b('0x1ade')&&_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x1c54')]===_0x18c55b('0xbdc')&&(_0x5d87a7[_0x18c55b('0xbc9')]['phone']=_0x1532f1['cutdigits']?(_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x11d4')]||'')+_0x18c55b('0x2265')+_0x1532f1[_0x18c55b('0x12af')]+'}':(_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x11d4')]||'')+_0x18c55b('0x150e'),_0x1532f1[_0x18c55b('0x287')]!==_0x18c55b('0x7ee')?_0x5d87a7['close'][_0x18c55b('0x19')][_0x18c55b('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x19')]+='U(xcally-mixmonitor-context)'):_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x19')]=_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x19')][_0x18c55b('0x737')](_0x18c55b('0xa22'),''));if(_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x1c54')]&&_0x5d87a7[_0x18c55b('0xbc9')]['appType']===_0x18c55b('0x8fa')){}else switch((_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x643')]||_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x1c54')])[_0x18c55b('0x19b')]()){case'set':_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x2077')]=_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x2aa')]+'='+_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x175b')];break;case _0x18c55b('0x8fa'):break;default:_0x25ff3e[0x0]=_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x1f27')],_0x5d87a7[_0x18c55b('0xbc9')][_0x18c55b('0x2077')]=_0x25ff3e[_0x18c55b('0x1eba')](',');}_0x4ad2c4(_0x5d87a7[_0x18c55b('0xbc9')]);}function _0x4ad2c4(_0xbad4a3){const _0x23c271=_0x4db7be;_0x38503e[_0x23c271('0x212a')](_0xbad4a3);}}const _0x300b20=_0x2a1885;_0x1ba6e4[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x4e6'),_0x4376d8('0x119'),_0x4376d8('0x212e'),'Auth','crudPermissions'];function _0x1ba6e4(_0x4061f6,_0x3c6e1f,_0x2cc5e9,_0x4a3721,_0x4d26f1,_0x311d7f,_0x54d604,_0x16b6db){const _0x24a5db=_0x4376d8,_0x4f7b00=this;_0x4f7b00['currentUser']=_0x54d604[_0x24a5db('0x2831')](),_0x4f7b00['errors']=[],_0x4f7b00[_0x24a5db('0x24d3')]=_0x24a5db('0x1018')+(_0x4a3721[_0x24a5db('0x1c54')]||_0x4a3721[_0x24a5db('0x643')])[_0x24a5db('0x14e2')](),_0x4f7b00[_0x24a5db('0x7a9')]=angular[_0x24a5db('0x14e5')](_0x4a3721),_0x4f7b00[_0x24a5db('0x103e')]=_0x16b6db,_0x4f7b00[_0x24a5db('0x6ee')]={};if(_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2077')])switch(_0x4f7b00[_0x24a5db('0x7a9')]['appType']?_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x1c54')][_0x24a5db('0x19b')]():_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x643')][_0x24a5db('0x19b')]()){case'custom':break;case'dialogflow':{const _0x37b024=_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2077')]['split'](',');_0x4f7b00[_0x24a5db('0x7a9')]['key']=_0x37b024[0x0],_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x3e1')]=_0x37b024[0x1],_0x4f7b00['gotoif'][_0x24a5db('0x1083')]=_0x37b024[_0x24a5db('0x275f')](0x2,_0x37b024[_0x24a5db('0x1f73')])[_0x24a5db('0x1eba')](',');}break;case'dialogflowv2':{const _0x4e3d41=_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2077')]['split'](',');_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x28ab')]=_0x4e3d41[0x0],_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2814')]=_0x4e3d41[0x1],_0x4f7b00[_0x24a5db('0x7a9')]['privateKey']=_0x4e3d41[0x2],_0x4f7b00[_0x24a5db('0x7a9')]['language']=_0x4e3d41[0x3],_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x1083')]=_0x4e3d41[_0x24a5db('0x275f')](0x4,_0x4e3d41[_0x24a5db('0x1f73')])[_0x24a5db('0x1eba')](',');}break;case _0x24a5db('0x16a9'):{const _0x4bbb0d=_0x4f7b00[_0x24a5db('0x7a9')]['appdata'][_0x24a5db('0x2007')](',');_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x1452')]=_0x4bbb0d[0x0],_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x1a62')]=_0x4bbb0d[0x1],_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x1dcf')]=_0x4bbb0d[0x2],_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x4a')]=_0x4bbb0d[0x3],_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x1083')]=_0x4bbb0d[_0x24a5db('0x275f')](0x4,_0x4bbb0d[_0x24a5db('0x1f73')])[_0x24a5db('0x1eba')](',');}break;case _0x24a5db('0x96e'):{const _0x3e9be2=_0x4f7b00['gotoif'][_0x24a5db('0x2077')][_0x24a5db('0x2007')](',');_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x12a6')]=isNaN(_0x3e9be2[0x0])?_0x3e9be2[0x0]:parseInt(_0x3e9be2[0x0],0xa),_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x132f')]=_0x3e9be2[_0x24a5db('0x275f')](0x1,_0x3e9be2[_0x24a5db('0x1f73')])[_0x24a5db('0x1eba')](',');}break;case _0x24a5db('0x1603'):_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x132f')]=_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2077')];break;case _0x24a5db('0xf2e'):_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2aa')]=_0x4f7b00['gotoif'][_0x24a5db('0x2077')][_0x24a5db('0x2007')]('=')[0x0],_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x175b')]=_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2077')][_0x24a5db('0x2007')]('=')[0x1];break;case'agi':_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x87c')]=_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2077')];break;default:{const _0x2f516c=_0x4f7b00['gotoif'][_0x24a5db('0x2077')][_0x24a5db('0x2007')](',');_0x4f7b00[_0x24a5db('0x7a9')]['condition']=_0x49cbdd()[_0x24a5db('0x109a')](_0x2f516c[0x0])?_0x2f516c[0x0]:isNaN(_0x2f516c[0x0])?_0x2f516c[0x0]:parseInt(_0x2f516c[0x0],0xa),_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0xd8b')]=_0x49cbdd()[_0x24a5db('0x109a')](_0x2f516c[0x1])?_0x2f516c[0x1]:isNaN(_0x2f516c[0x1])?_0x2f516c[0x1]:parseInt(_0x2f516c[0x1],0xa),_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0xe9d')]=_0x49cbdd()[_0x24a5db('0x109a')](_0x2f516c[0x2])?_0x2f516c[0x2]:isNaN(_0x2f516c[0x2])?_0x2f516c[0x2]:parseInt(_0x2f516c[0x2],0xa);}break;}else{}_0x4f7b00['gotoif'][_0x24a5db('0x412')]&&_0x4f7b00['gotoif']['type'][_0x24a5db('0x19b')]()===_0x24a5db('0x1ade')&&_0x4f7b00['gotoif'][_0x24a5db('0x1c54')][_0x24a5db('0x19b')]()==='outbounddial'&&(_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x11d4')]=_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x2154')]?_0x4f7b00[_0x24a5db('0x7a9')]['phone']['split']('$')[0x0]:undefined,_0x4f7b00[_0x24a5db('0x7a9')][_0x24a5db('0x1a8e')]=_0x4f7b00['gotoif']['callerID']?_0x24a5db('0x1d28')+_0x4f7b00[_0x24a5db('0x7a9')]['callerID']:undefined);_0x4f7b00[_0x24a5db('0x2123')]=_0x456c02,_0x4f7b00['closeDialog']=_0x2d53e1;function _0x456c02(){const _0x39c6d1=_0x24a5db;_0x4f7b00[_0x39c6d1('0x73e')]=[];const _0x493eef=[];_0x4f7b00['gotoif'][_0x39c6d1('0x412')]&&_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x412')][_0x39c6d1('0x19b')]()==='outbound'&&_0x4f7b00['gotoif'][_0x39c6d1('0x1c54')]==='outboundDial'&&(_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x2154')]=_0x4d26f1['cutdigits']?(_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x11d4')]||'')+_0x39c6d1('0x2265')+_0x4d26f1[_0x39c6d1('0x12af')]+'}':(_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x11d4')]||'')+_0x39c6d1('0x150e'),_0x4d26f1[_0x39c6d1('0x287')]!==_0x39c6d1('0x7ee')?_0x4f7b00[_0x39c6d1('0x7a9')]['options'][_0x39c6d1('0x2567')](_0x39c6d1('0xa22'))<0x0&&(_0x4f7b00[_0x39c6d1('0x7a9')]['options']+='U(xcally-mixmonitor-context)'):_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x19')]=_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x19')][_0x39c6d1('0x737')](_0x39c6d1('0xa22'),''));if(_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x1c54')]&&_0x4f7b00['gotoif'][_0x39c6d1('0x1c54')]===_0x39c6d1('0x8fa')){}else switch((_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x643')]||_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x1c54')])[_0x39c6d1('0x19b')]()){case _0x39c6d1('0xf2e'):_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x2077')]=_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x2aa')]+'='+_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x175b')];break;case _0x39c6d1('0x8fa'):break;default:_0x493eef[0x0]=_0x4f7b00[_0x39c6d1('0x7a9')]['condition'],_0x493eef[0x1]=_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0xd8b')],_0x493eef[0x2]=_0x4f7b00['gotoif'][_0x39c6d1('0xe9d')],_0x4f7b00[_0x39c6d1('0x7a9')][_0x39c6d1('0x2077')]=_0x493eef[_0x39c6d1('0x1eba')](',');}_0x2d53e1(_0x4f7b00[_0x39c6d1('0x7a9')]);}function _0x2d53e1(_0x36aabf){const _0x508a9d=_0x24a5db;_0x4061f6[_0x508a9d('0x212a')](_0x36aabf);}}const _0x1051d9=_0x1ba6e4;_0x184d60[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x4e6'),_0x4376d8('0x119'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x184d60(_0x352621,_0x194edb,_0x364d00,_0x5008fa,_0x1c8696,_0x5176eb,_0x424aed,_0xb2f795){const _0x4f6a5e=_0x4376d8,_0x372d88=this;_0x372d88['currentUser']=_0x424aed[_0x4f6a5e('0x2831')](),_0x372d88[_0x4f6a5e('0x73e')]=[],_0x372d88[_0x4f6a5e('0x24d3')]='FAX.EDIT_'+(_0x5008fa['appType']||_0x5008fa[_0x4f6a5e('0x643')])[_0x4f6a5e('0x14e2')](),_0x372d88['gotop']=angular['copy'](_0x5008fa),_0x372d88['crudPermissions']=_0xb2f795,_0x372d88[_0x4f6a5e('0x6ee')]={};if(_0x372d88['gotop']['appdata'])switch(_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x1c54')]?_0x372d88['gotop'][_0x4f6a5e('0x1c54')]['toLowerCase']():_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x643')]['toLowerCase']()){case'custom':break;case _0x4f6a5e('0x2526'):{const _0x280a60=_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2077')][_0x4f6a5e('0x2007')](',');_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0xdb5')]=_0x280a60[0x0],_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x3e1')]=_0x280a60[0x1],_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x1083')]=_0x280a60['slice'](0x2,_0x280a60[_0x4f6a5e('0x1f73')])[_0x4f6a5e('0x1eba')](',');}break;case _0x4f6a5e('0x22ac'):{const _0x5f5c59=_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2077')]['split'](',');_0x372d88[_0x4f6a5e('0x721')]['projectId']=_0x5f5c59[0x0],_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2814')]=_0x5f5c59[0x1],_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x1bc2')]=_0x5f5c59[0x2],_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x3e1')]=_0x5f5c59[0x3],_0x372d88['gotop']['welcomemessage']=_0x5f5c59[_0x4f6a5e('0x275f')](0x4,_0x5f5c59[_0x4f6a5e('0x1f73')])[_0x4f6a5e('0x1eba')](',');}break;case'amazonlex':{const _0x3686b6=_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2077')]['split'](',');_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x1452')]=_0x3686b6[0x0],_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x1a62')]=_0x3686b6[0x1],_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x1dcf')]=_0x3686b6[0x2],_0x372d88['gotop'][_0x4f6a5e('0x4a')]=_0x3686b6[0x3],_0x372d88[_0x4f6a5e('0x721')]['welcomemessage']=_0x3686b6[_0x4f6a5e('0x275f')](0x4,_0x3686b6[_0x4f6a5e('0x1f73')])[_0x4f6a5e('0x1eba')](',');}break;case _0x4f6a5e('0x96e'):{const _0x595b7d=_0x372d88['gotop'][_0x4f6a5e('0x2077')][_0x4f6a5e('0x2007')](',');_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x12a6')]=isNaN(_0x595b7d[0x0])?_0x595b7d[0x0]:parseInt(_0x595b7d[0x0],0xa),_0x372d88[_0x4f6a5e('0x721')]['text']=_0x595b7d[_0x4f6a5e('0x275f')](0x1,_0x595b7d[_0x4f6a5e('0x1f73')])[_0x4f6a5e('0x1eba')](',');}break;case _0x4f6a5e('0x1603'):_0x372d88[_0x4f6a5e('0x721')]['text']=_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2077')];break;case'set':_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2aa')]=_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2077')]['split']('=')[0x0],_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x175b')]=_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2077')][_0x4f6a5e('0x2007')]('=')[0x1];break;case _0x4f6a5e('0x17c6'):_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x87c')]=_0x372d88[_0x4f6a5e('0x721')]['appdata'];break;default:{const _0x21247d=_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2077')][_0x4f6a5e('0x2007')](',');_0x372d88['gotop'][_0x4f6a5e('0x1a6d')]=_0x49cbdd()['isEmpty'](_0x21247d[0x0])?_0x21247d[0x0]:isNaN(_0x21247d[0x0])?_0x21247d[0x0]:parseInt(_0x21247d[0x0],0xa);}break;}else{}_0x372d88[_0x4f6a5e('0x721')]['type']&&_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x412')][_0x4f6a5e('0x19b')]()===_0x4f6a5e('0x1ade')&&_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x1c54')]['toLowerCase']()==='outbounddial'&&(_0x372d88['gotop']['prefix']=_0x372d88[_0x4f6a5e('0x721')]['phone']?_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x2154')][_0x4f6a5e('0x2007')]('$')[0x0]:undefined,_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x1a8e')]=_0x372d88['gotop'][_0x4f6a5e('0x17f4')]?_0x4f6a5e('0x1d28')+_0x372d88[_0x4f6a5e('0x721')][_0x4f6a5e('0x17f4')]:undefined);_0x372d88[_0x4f6a5e('0x2123')]=_0x3f1ad3,_0x372d88[_0x4f6a5e('0x136e')]=_0x580b02;function _0x3f1ad3(){const _0xf4d116=_0x4f6a5e;_0x372d88[_0xf4d116('0x73e')]=[];const _0x195766=[];_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x412')]&&_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x412')][_0xf4d116('0x19b')]()===_0xf4d116('0x1ade')&&_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x1c54')]==='outboundDial'&&(_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x2154')]=_0x1c8696[_0xf4d116('0x12af')]?(_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x11d4')]||'')+'${EXTEN:'+_0x1c8696[_0xf4d116('0x12af')]+'}':(_0x372d88[_0xf4d116('0x721')]['prefix']||'')+_0xf4d116('0x150e'),_0x1c8696['recordingFormat']!==_0xf4d116('0x7ee')?_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x19')][_0xf4d116('0x2567')](_0xf4d116('0xa22'))<0x0&&(_0x372d88[_0xf4d116('0x721')]['options']+=_0xf4d116('0xa22')):_0x372d88['gotop'][_0xf4d116('0x19')]=_0x372d88[_0xf4d116('0x721')]['options']['replace'](_0xf4d116('0xa22'),''));if(_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x1c54')]&&_0x372d88[_0xf4d116('0x721')]['appType']===_0xf4d116('0x8fa')){}else switch((_0x372d88[_0xf4d116('0x721')]['app']||_0x372d88[_0xf4d116('0x721')]['appType'])[_0xf4d116('0x19b')]()){case _0xf4d116('0xf2e'):_0x372d88['gotop']['appdata']=_0x372d88[_0xf4d116('0x721')]['name']+'='+_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x175b')];break;case _0xf4d116('0x8fa'):break;default:_0x195766[0x0]=_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x1a6d')],_0x372d88[_0xf4d116('0x721')][_0xf4d116('0x2077')]=_0x195766[_0xf4d116('0x1eba')](',');}_0x580b02(_0x372d88[_0xf4d116('0x721')]);}function _0x580b02(_0x19ddd3){_0x352621['hide'](_0x19ddd3);}}const _0x5c3676=_0x184d60;_0x58b9b1[_0x4376d8('0x1b9c')]=['$state',_0x4376d8('0x14f6'),_0x4376d8('0x199d'),_0x4376d8('0x12f1'),_0x4376d8('0x231f'),_0x4376d8('0x1be1'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x58b9b1(_0x56a752,_0x718c90,_0x44d83d,_0x4612a6,_0x1a86ff,_0x5c46cb,_0x2ec20b,_0x2f8751,_0x1133f8,_0x31713a){const _0x2260a2=_0x4376d8,_0x5827b8=this;_0x5827b8['currentUser']=_0x1133f8[_0x2260a2('0x2831')](),_0x5827b8[_0x2260a2('0x73e')]=[],_0x5827b8[_0x2260a2('0x24d3')]=_0x2260a2('0x1481'),_0x5827b8[_0x2260a2('0x231f')]=angular['copy'](_0x1a86ff),_0x5827b8[_0x2260a2('0x1be1')]=_0x5c46cb,_0x5827b8[_0x2260a2('0x42d')]=![],_0x5827b8['types']=[_0x2260a2('0x1256'),_0x2260a2('0x8fa'),_0x2260a2('0x134c')],_0x5827b8['crudPermissions']=_0x31713a,_0x5827b8[_0x2260a2('0x9d')]=_0x4612a6[_0x2260a2('0x18cb')](),_0x5827b8[_0x2260a2('0xd0')]=_0x4612a6[_0x2260a2('0x1743')](),_0x5827b8[_0x2260a2('0x36e')]=_0x4612a6[_0x2260a2('0x912')](),_0x5827b8[_0x2260a2('0x219f')]=_0x4612a6[_0x2260a2('0x37c')]();if(!_0x5827b8['interval'])_0x5827b8[_0x2260a2('0x231f')]={'interval':_0x2260a2('0x20c3')},_0x5827b8[_0x2260a2('0x412')]=_0x2260a2('0x1256'),_0x5827b8[_0x2260a2('0x24d3')]='TOOLS.NEW_INTERVAL',_0x5827b8[_0x2260a2('0x42d')]=!![];else{if(_0x5827b8['interval'][_0x2260a2('0x231f')]!==_0x2260a2('0x20c3')){_0x5827b8[_0x2260a2('0x412')]=_0x2260a2('0x8fa');const _0x4cf6eb=_0x5827b8[_0x2260a2('0x231f')]['interval'][_0x2260a2('0x2007')](','),_0x5842d5=_0x4cf6eb[0x0],_0x481382=_0x4cf6eb[0x1],_0xa8a894=_0x4cf6eb[0x2],_0x5d5c51=_0x4cf6eb[0x3];if(_0x5842d5!=='*'){const _0x31e731=_0x5842d5[_0x2260a2('0x2007')]('-')[0x0],_0x4aa065=_0x5842d5[_0x2260a2('0x2007')]('-')[0x1];let _0x5046ab;_0x5046ab=new Date(),_0x5046ab['setHours'](Number(_0x31e731[_0x2260a2('0x2007')](':')[0x0])),_0x5046ab[_0x2260a2('0x57b')](Number(_0x31e731[_0x2260a2('0x2007')](':')[0x1])),_0x5827b8[_0x2260a2('0x19bf')]=_0x5046ab,_0x5046ab=new Date(),_0x5046ab[_0x2260a2('0x196e')](Number(_0x4aa065[_0x2260a2('0x2007')](':')[0x0])),_0x5046ab[_0x2260a2('0x57b')](Number(_0x4aa065[_0x2260a2('0x2007')](':')[0x1])),_0x5827b8['timeRangeTo']=_0x5046ab;}_0x481382!=='*'&&(_0x5827b8[_0x2260a2('0x1a98')]=_0x481382[_0x2260a2('0x2007')]('-')[0x0],_0x5827b8[_0x2260a2('0x1627')]=_0x481382[_0x2260a2('0x2007')]('-')[0x1]),_0xa8a894!=='*'&&(_0x5827b8['monthDayFrom']=_0xa8a894[_0x2260a2('0x2007')]('-')[0x0],_0x5827b8['monthDayTo']=_0xa8a894[_0x2260a2('0x2007')]('-')[0x1]),_0x5d5c51!=='*'&&(_0x5827b8[_0x2260a2('0x88c')]=_0x5d5c51[_0x2260a2('0x2007')]('-')[0x0],_0x5827b8[_0x2260a2('0x1f09')]=_0x5d5c51[_0x2260a2('0x2007')]('-')[0x1]);}else _0x5827b8[_0x2260a2('0x412')]=_0x2260a2('0x1256');}_0x56a752[_0x2260a2('0x16fb')]['id']&&!_0x5827b8['interval'][_0x2260a2('0xf84')]&&(_0x5827b8[_0x2260a2('0x231f')][_0x2260a2('0x24a9')]=_0x56a752[_0x2260a2('0x16fb')]['id']);_0x5827b8[_0x2260a2('0x231f')]['IntervalId']&&_0x5827b8['interval'][_0x2260a2('0xf84')]&&(_0x5827b8[_0x2260a2('0x412')]='list');_0x5827b8['addNewInterval']=_0x64a381,_0x5827b8['saveInterval']=_0x3c7172,_0x5827b8[_0x2260a2('0x136e')]=_0x2420cb;_0x5827b8[_0x2260a2('0x231f')]['application']&&(_0x1133f8['hasRole'](_0x2260a2('0x20bf'))?_0x2f8751[_0x2260a2('0x231f')]['get']({'fields':_0x2260a2('0x165a'),'IntervalId':_0x2260a2('0x9bb'),'nolimit':!![]})['$promise'][_0x2260a2('0x17e7')](function(_0x416ade){const _0x4c48e6=_0x2260a2;_0x5827b8[_0x4c48e6('0x1be1')]=_0x416ade['rows']||[];})[_0x2260a2('0x16df')](function(_0x5b980b){const _0x2ca291=_0x2260a2;_0x2ec20b[_0x2ca291('0x1db9')]({'title':_0x5b980b[_0x2ca291('0x11c5')]?'API:'+_0x5b980b[_0x2ca291('0x11c5')]+'\x20-\x20'+_0x5b980b[_0x2ca291('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0x5b980b[_0x2ca291('0x1457')]?JSON[_0x2ca291('0x678')](_0x5b980b[_0x2ca291('0x1457')]):_0x5b980b['toString']()});}):_0x2f8751['interval']['get']({'fields':_0x2260a2('0x165a'),'IntervalId':_0x2260a2('0x9bb'),'nolimit':!![]})[_0x2260a2('0x1af5')][_0x2260a2('0x17e7')](function(_0x6e4cf2){const _0x236206=_0x2260a2;_0x5827b8[_0x236206('0x1be1')]=_0x6e4cf2[_0x236206('0x2319')]||[];})[_0x2260a2('0x17e7')](function(){const _0x1ccfe1=_0x2260a2;return _0x2f8751[_0x1ccfe1('0x383')][_0x1ccfe1('0x1c53')]({'userProfileId':_0x5827b8[_0x1ccfe1('0x197c')][_0x1ccfe1('0x1e76')],'sectionId':0x3ec})[_0x1ccfe1('0x1af5')];})[_0x2260a2('0x17e7')](function(_0x4c8ea7){const _0x39bb05=_0x2260a2,_0x3d353f=_0x4c8ea7&&_0x4c8ea7[_0x39bb05('0x2319')]?_0x4c8ea7[_0x39bb05('0x2319')][0x0]:null;if(!_0x3d353f)_0x5827b8[_0x39bb05('0x1be1')]=[];else{if(!_0x3d353f['autoAssociation'])return _0x2f8751[_0x39bb05('0x78d')][_0x39bb05('0x1c53')]({'sectionId':_0x3d353f['id']})[_0x39bb05('0x1af5')]['then'](function(_0x2a5acb){const _0x3548b0=_0x39bb05,_0x4fecd4=_0x2a5acb&&_0x2a5acb[_0x3548b0('0x2319')]?_0x2a5acb[_0x3548b0('0x2319')]:[],_0x116c9a=[];let _0xed57a7=null;_0x5827b8[_0x3548b0('0x231f')]&&(_0xed57a7=_0x49cbdd()[_0x3548b0('0xe8e')](_0x5827b8[_0x3548b0('0x1be1')],{'name':_0x5827b8[_0x3548b0('0x231f')][_0x3548b0('0x24a9')]})),_0xed57a7&&!_0x49cbdd()[_0x3548b0('0x26f8')](_0x4fecd4,['resourceId',_0xed57a7['id']])&&_0x5827b8[_0x3548b0('0x1be1')][_0x3548b0('0xccd')](function(_0x57d5fa){const _0x213449=_0x3548b0;_0x57d5fa['id']===_0xed57a7['id']&&(_0x57d5fa[_0x213449('0xe5c')]=![],_0x116c9a['push'](_0x57d5fa));}),_0x5827b8['intervals']=_0x116c9a;});}})[_0x2260a2('0x16df')](function(_0x218343){const _0xdcd80f=_0x2260a2;_0x2ec20b[_0xdcd80f('0x1db9')]({'title':_0x218343[_0xdcd80f('0x11c5')]?_0xdcd80f('0x14f7')+_0x218343[_0xdcd80f('0x11c5')]+_0xdcd80f('0x16e4')+_0x218343[_0xdcd80f('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0x218343[_0xdcd80f('0x1457')]?JSON['stringify'](_0x218343[_0xdcd80f('0x1457')]):_0x218343['toString']()});}));function _0x2d429d(){const _0x3b24a5=_0x2260a2;switch(_0x5827b8['type']){case _0x3b24a5('0x1256'):case _0x3b24a5('0x134c'):return _0x3b24a5('0x20c3');case'custom':{const _0xfa5d6b=[];if(_0x5827b8[_0x3b24a5('0x19bf')]!=='*'&&_0x5827b8[_0x3b24a5('0x19bf')]&&_0x5827b8[_0x3b24a5('0x1c12')]){const _0x1e6818=(_0x5827b8[_0x3b24a5('0x19bf')][_0x3b24a5('0x13c6')]()<0xa?'0':'')+_0x5827b8[_0x3b24a5('0x19bf')][_0x3b24a5('0x13c6')]()+':'+((_0x5827b8[_0x3b24a5('0x19bf')]['getMinutes']()<0xa?'0':'')+_0x5827b8[_0x3b24a5('0x19bf')][_0x3b24a5('0xf42')]()),_0x441522=(_0x5827b8[_0x3b24a5('0x1c12')][_0x3b24a5('0x13c6')]()<0xa?'0':'')+_0x5827b8[_0x3b24a5('0x1c12')]['getHours']()+':'+((_0x5827b8[_0x3b24a5('0x1c12')][_0x3b24a5('0xf42')]()<0xa?'0':'')+_0x5827b8['timeRangeTo'][_0x3b24a5('0xf42')]());_0xfa5d6b[_0x3b24a5('0x269f')](_0x1e6818+'-'+_0x441522);}else _0xfa5d6b[_0x3b24a5('0x269f')]('*');return _0x5827b8[_0x3b24a5('0x1a98')]?_0x5827b8[_0x3b24a5('0x1627')]?_0xfa5d6b['push'](_0x5827b8[_0x3b24a5('0x1a98')]+'-'+_0x5827b8[_0x3b24a5('0x1627')]):_0xfa5d6b[_0x3b24a5('0x269f')](_0x5827b8[_0x3b24a5('0x1a98')]):_0xfa5d6b['push']('*'),_0x5827b8[_0x3b24a5('0x18d1')]?_0x5827b8[_0x3b24a5('0x271d')]?_0xfa5d6b[_0x3b24a5('0x269f')](_0x5827b8[_0x3b24a5('0x18d1')]+'-'+_0x5827b8['monthDayTo']):_0xfa5d6b[_0x3b24a5('0x269f')](_0x5827b8[_0x3b24a5('0x18d1')]):_0xfa5d6b['push']('*'),_0x5827b8[_0x3b24a5('0x88c')]?_0x5827b8[_0x3b24a5('0x1f09')]?_0xfa5d6b[_0x3b24a5('0x269f')](_0x5827b8['monthFrom']+'-'+_0x5827b8['monthTo']):_0xfa5d6b[_0x3b24a5('0x269f')](_0x5827b8[_0x3b24a5('0x88c')]):_0xfa5d6b[_0x3b24a5('0x269f')]('*'),_0xfa5d6b[_0x3b24a5('0x1eba')]();}}}function _0x64a381(){const _0x30cd18=_0x2260a2;_0x5827b8['errors']=[],_0x5827b8[_0x30cd18('0x231f')][_0x30cd18('0x231f')]=_0x2d429d(),_0x2f8751[_0x30cd18('0x231f')]['save'](_0x5827b8[_0x30cd18('0x231f')])[_0x30cd18('0x1af5')][_0x30cd18('0x17e7')](function(_0xd9a74){const _0x21e902=_0x30cd18;_0x5827b8[_0x21e902('0x1be1')]['push'](_0xd9a74),_0x2ec20b[_0x21e902('0x130d')]({'title':_0x21e902('0x2378'),'msg':_0x5827b8[_0x21e902('0x231f')][_0x21e902('0x2aa')]?_0x5827b8[_0x21e902('0x231f')][_0x21e902('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x2420cb();})[_0x30cd18('0x16df')](function(_0x5e88b1){const _0x5275c4=_0x30cd18;console[_0x5275c4('0x1db9')](_0x5e88b1),_0x5827b8[_0x5275c4('0x73e')]=_0x5e88b1[_0x5275c4('0x1457')][_0x5275c4('0x73e')]||[{'message':_0x5e88b1[_0x5275c4('0x9b6')](),'type':_0x5275c4('0x2475')}];});}function _0x3c7172(){const _0x29c93e=_0x2260a2;_0x5827b8[_0x29c93e('0x73e')]=[],_0x5827b8['interval'][_0x29c93e('0x231f')]=_0x2d429d(),_0x5827b8[_0x29c93e('0x231f')]['application']?(_0x5827b8[_0x29c93e('0x412')]!=='list'&&(_0x5827b8[_0x29c93e('0x231f')][_0x29c93e('0x24a9')]=null),_0x2420cb(_0x5827b8[_0x29c93e('0x231f')])):_0x2f8751['interval'][_0x29c93e('0x27ba')]({'id':_0x5827b8['interval']['id']},_0x5827b8[_0x29c93e('0x231f')])[_0x29c93e('0x1af5')][_0x29c93e('0x17e7')](function(_0xf7f511){const _0x3e0ac0=_0x29c93e,_0x2f1aac=_0x49cbdd()[_0x3e0ac0('0xe8e')](_0x5827b8[_0x3e0ac0('0x1be1')],{'id':_0xf7f511['id']});_0x2f1aac&&_0x49cbdd()[_0x3e0ac0('0x1ced')](_0x2f1aac,_0xf7f511),_0x2ec20b[_0x3e0ac0('0x130d')]({'title':'Interval\x20properly\x20saved!','msg':_0x3e0ac0('0x2792')}),_0x2420cb();})[_0x29c93e('0x16df')](function(_0x1c6c77){const _0x3ffb30=_0x29c93e;console[_0x3ffb30('0x1db9')](_0x1c6c77),_0x5827b8[_0x3ffb30('0x73e')]=_0x1c6c77[_0x3ffb30('0x1457')][_0x3ffb30('0x73e')]||[{'message':_0x1c6c77['toString'](),'type':_0x3ffb30('0xed5')}];});}function _0x2420cb(_0x2bc3a2){const _0x2d9894=_0x2260a2;_0x718c90[_0x2d9894('0x212a')](_0x2bc3a2);}}const _0x688d8d=_0x58b9b1;_0x4f8fdb[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'faxAccountApp',_0x4376d8('0x119'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x4f8fdb(_0x3f0858,_0x57a7b6,_0x3b816c,_0x1b7ce7,_0x5125ac,_0x1203d8,_0xa2d4d6,_0x28174b){const _0x13aa57=_0x4376d8,_0x4d2d04=this;_0x4d2d04[_0x13aa57('0x197c')]=_0xa2d4d6['getCurrentUser'](),_0x4d2d04['errors']=[],_0x4d2d04[_0x13aa57('0x24d3')]=_0x13aa57('0x1018')+(_0x1b7ce7['appType']||_0x1b7ce7[_0x13aa57('0x643')])[_0x13aa57('0x14e2')](),_0x4d2d04['noop']=angular['copy'](_0x1b7ce7),_0x4d2d04[_0x13aa57('0x103e')]=_0x28174b,_0x4d2d04['hasModulePermissions']={};if(_0x4d2d04[_0x13aa57('0x1e49')]['appdata'])switch(_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x1c54')]?_0x4d2d04['noop'][_0x13aa57('0x1c54')][_0x13aa57('0x19b')]():_0x4d2d04[_0x13aa57('0x1e49')]['app'][_0x13aa57('0x19b')]()){case'custom':break;case _0x13aa57('0x2526'):{const _0x4d0603=_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x2077')][_0x13aa57('0x2007')](',');_0x4d2d04['noop'][_0x13aa57('0xdb5')]=_0x4d0603[0x0],_0x4d2d04[_0x13aa57('0x1e49')]['language']=_0x4d0603[0x1],_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x1083')]=_0x4d0603[_0x13aa57('0x275f')](0x2,_0x4d0603[_0x13aa57('0x1f73')])[_0x13aa57('0x1eba')](',');}break;case _0x13aa57('0x22ac'):{const _0x133fe5=_0x4d2d04[_0x13aa57('0x1e49')]['appdata'][_0x13aa57('0x2007')](',');_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x28ab')]=_0x133fe5[0x0],_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x2814')]=_0x133fe5[0x1],_0x4d2d04['noop']['privateKey']=_0x133fe5[0x2],_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x3e1')]=_0x133fe5[0x3],_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x1083')]=_0x133fe5[_0x13aa57('0x275f')](0x4,_0x133fe5[_0x13aa57('0x1f73')])['join'](',');}break;case _0x13aa57('0x16a9'):{const _0x570b0e=_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x2077')][_0x13aa57('0x2007')](',');_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x1452')]=_0x570b0e[0x0],_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x1a62')]=_0x570b0e[0x1],_0x4d2d04['noop']['lexregion']=_0x570b0e[0x2],_0x4d2d04[_0x13aa57('0x1e49')]['botname']=_0x570b0e[0x3],_0x4d2d04['noop']['welcomemessage']=_0x570b0e[_0x13aa57('0x275f')](0x4,_0x570b0e[_0x13aa57('0x1f73')])[_0x13aa57('0x1eba')](',');}break;case _0x13aa57('0x96e'):{const _0x550198=_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x2077')]['split'](',');_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x12a6')]=isNaN(_0x550198[0x0])?_0x550198[0x0]:parseInt(_0x550198[0x0],0xa),_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x132f')]=_0x550198[_0x13aa57('0x275f')](0x1,_0x550198[_0x13aa57('0x1f73')])[_0x13aa57('0x1eba')](',');}break;case _0x13aa57('0x1603'):_0x4d2d04['noop']['text']=_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x2077')];break;case _0x13aa57('0xf2e'):_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x2aa')]=_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x2077')][_0x13aa57('0x2007')]('=')[0x0],_0x4d2d04['noop'][_0x13aa57('0x175b')]=_0x4d2d04['noop'][_0x13aa57('0x2077')][_0x13aa57('0x2007')]('=')[0x1];break;case'agi':_0x4d2d04[_0x13aa57('0x1e49')]['project']=_0x4d2d04[_0x13aa57('0x1e49')]['appdata'];break;default:{const _0x4f5450=_0x4d2d04['noop'][_0x13aa57('0x2077')][_0x13aa57('0x2007')](',');_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x175b')]=_0x49cbdd()[_0x13aa57('0x109a')](_0x4f5450[0x0])?_0x4f5450[0x0]:isNaN(_0x4f5450[0x0])?_0x4f5450[0x0]:parseInt(_0x4f5450[0x0],0xa);}break;}else{}_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x412')]&&_0x4d2d04['noop'][_0x13aa57('0x412')]['toLowerCase']()===_0x13aa57('0x1ade')&&_0x4d2d04[_0x13aa57('0x1e49')]['appType'][_0x13aa57('0x19b')]()==='outbounddial'&&(_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x11d4')]=_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x2154')]?_0x4d2d04[_0x13aa57('0x1e49')]['phone'][_0x13aa57('0x2007')]('$')[0x0]:undefined,_0x4d2d04[_0x13aa57('0x1e49')][_0x13aa57('0x1a8e')]=_0x4d2d04[_0x13aa57('0x1e49')]['callerID']?'CALLERID(all)='+_0x4d2d04[_0x13aa57('0x1e49')]['callerID']:undefined);_0x4d2d04[_0x13aa57('0x2123')]=_0x53587f,_0x4d2d04[_0x13aa57('0x136e')]=_0x3fb262;function _0x53587f(){const _0x4b3b36=_0x13aa57;_0x4d2d04[_0x4b3b36('0x73e')]=[];const _0x25a0e8=[];_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x412')]&&_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x412')]['toLowerCase']()===_0x4b3b36('0x1ade')&&_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x1c54')]===_0x4b3b36('0xbdc')&&(_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x2154')]=_0x5125ac[_0x4b3b36('0x12af')]?(_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x11d4')]||'')+_0x4b3b36('0x2265')+_0x5125ac[_0x4b3b36('0x12af')]+'}':(_0x4d2d04['noop'][_0x4b3b36('0x11d4')]||'')+_0x4b3b36('0x150e'),_0x5125ac[_0x4b3b36('0x287')]!==_0x4b3b36('0x7ee')?_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x19')][_0x4b3b36('0x2567')](_0x4b3b36('0xa22'))<0x0&&(_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x19')]+=_0x4b3b36('0xa22')):_0x4d2d04['noop'][_0x4b3b36('0x19')]=_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x19')][_0x4b3b36('0x737')](_0x4b3b36('0xa22'),''));if(_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x1c54')]&&_0x4d2d04['noop'][_0x4b3b36('0x1c54')]===_0x4b3b36('0x8fa')){}else switch((_0x4d2d04['noop']['app']||_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x1c54')])[_0x4b3b36('0x19b')]()){case _0x4b3b36('0xf2e'):_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x2077')]=_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x2aa')]+'='+_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x175b')];break;case _0x4b3b36('0x8fa'):break;default:_0x25a0e8[0x0]=_0x4d2d04[_0x4b3b36('0x1e49')][_0x4b3b36('0x175b')],_0x4d2d04['noop'][_0x4b3b36('0x2077')]=_0x25a0e8[_0x4b3b36('0x1eba')](',');}_0x3fb262(_0x4d2d04[_0x4b3b36('0x1e49')]);}function _0x3fb262(_0x598542){_0x3f0858['hide'](_0x598542);}}const _0x581cea=_0x4f8fdb;_0x3f7af0[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x4e6'),'faxAccount',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x3f7af0(_0x2ecd71,_0xe91b16,_0x220da8,_0x5ed212,_0xf03d82,_0x5573cf,_0x1bd382,_0x12204e){const _0x405a08=_0x4376d8,_0x579664=this;_0x579664[_0x405a08('0x197c')]=_0x1bd382[_0x405a08('0x2831')](),_0x579664[_0x405a08('0x73e')]=[],_0x579664['title']=_0x405a08('0x1018')+(_0x5ed212[_0x405a08('0x1c54')]||_0x5ed212[_0x405a08('0x643')])[_0x405a08('0x14e2')](),_0x579664[_0x405a08('0x1bd')]=angular[_0x405a08('0x14e5')](_0x5ed212),_0x579664[_0x405a08('0x103e')]=_0x12204e,_0x579664['hasModulePermissions']={};if(_0x579664[_0x405a08('0x1bd')]['appdata'])switch(_0x579664['queue'][_0x405a08('0x1c54')]?_0x579664[_0x405a08('0x1bd')][_0x405a08('0x1c54')][_0x405a08('0x19b')]():_0x579664['queue'][_0x405a08('0x643')][_0x405a08('0x19b')]()){case _0x405a08('0x8fa'):break;case'dialogflow':{const _0x26fd40=_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2077')][_0x405a08('0x2007')](',');_0x579664['queue'][_0x405a08('0xdb5')]=_0x26fd40[0x0],_0x579664[_0x405a08('0x1bd')]['language']=_0x26fd40[0x1],_0x579664[_0x405a08('0x1bd')][_0x405a08('0x1083')]=_0x26fd40[_0x405a08('0x275f')](0x2,_0x26fd40[_0x405a08('0x1f73')])[_0x405a08('0x1eba')](',');}break;case _0x405a08('0x22ac'):{const _0x4a4ef2=_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2077')][_0x405a08('0x2007')](',');_0x579664['queue'][_0x405a08('0x28ab')]=_0x4a4ef2[0x0],_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2814')]=_0x4a4ef2[0x1],_0x579664[_0x405a08('0x1bd')][_0x405a08('0x1bc2')]=_0x4a4ef2[0x2],_0x579664['queue'][_0x405a08('0x3e1')]=_0x4a4ef2[0x3],_0x579664[_0x405a08('0x1bd')]['welcomemessage']=_0x4a4ef2[_0x405a08('0x275f')](0x4,_0x4a4ef2[_0x405a08('0x1f73')])[_0x405a08('0x1eba')](',');}break;case'amazonlex':{const _0x4ef383=_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2077')]['split'](',');_0x579664[_0x405a08('0x1bd')][_0x405a08('0x1452')]=_0x4ef383[0x0],_0x579664[_0x405a08('0x1bd')]['secretaccesskey']=_0x4ef383[0x1],_0x579664[_0x405a08('0x1bd')][_0x405a08('0x1dcf')]=_0x4ef383[0x2],_0x579664[_0x405a08('0x1bd')][_0x405a08('0x4a')]=_0x4ef383[0x3],_0x579664['queue'][_0x405a08('0x1083')]=_0x4ef383[_0x405a08('0x275f')](0x4,_0x4ef383[_0x405a08('0x1f73')])[_0x405a08('0x1eba')](',');}break;case _0x405a08('0x96e'):{const _0x45d149=_0x579664['queue']['appdata'][_0x405a08('0x2007')](',');_0x579664[_0x405a08('0x1bd')][_0x405a08('0x12a6')]=isNaN(_0x45d149[0x0])?_0x45d149[0x0]:parseInt(_0x45d149[0x0],0xa),_0x579664['queue'][_0x405a08('0x132f')]=_0x45d149['slice'](0x1,_0x45d149[_0x405a08('0x1f73')])[_0x405a08('0x1eba')](',');}break;case _0x405a08('0x1603'):_0x579664[_0x405a08('0x1bd')]['text']=_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2077')];break;case'set':_0x579664['queue'][_0x405a08('0x2aa')]=_0x579664[_0x405a08('0x1bd')]['appdata']['split']('=')[0x0],_0x579664[_0x405a08('0x1bd')][_0x405a08('0x175b')]=_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2077')]['split']('=')[0x1];break;case _0x405a08('0x17c6'):_0x579664[_0x405a08('0x1bd')][_0x405a08('0x87c')]=_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2077')];break;default:{const _0x5e3b9a=_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2077')]['split'](',');_0x579664[_0x405a08('0x1bd')]['queue']=_0x49cbdd()['isEmpty'](_0x5e3b9a[0x0])?_0x5e3b9a[0x0]:isNaN(_0x5e3b9a[0x0])?_0x5e3b9a[0x0]:parseInt(_0x5e3b9a[0x0],0xa),_0x579664[_0x405a08('0x1bd')]['timeout']=_0x49cbdd()[_0x405a08('0x109a')](_0x5e3b9a[0x1])?_0x5e3b9a[0x1]:isNaN(_0x5e3b9a[0x1])?_0x5e3b9a[0x1]:parseInt(_0x5e3b9a[0x1],0xa);}break;}else _0x579664[_0x405a08('0x1bd')][_0x405a08('0x1bd')]=0x12c,_0x579664[_0x405a08('0x1bd')][_0x405a08('0xd2f')]=0x12c;_0x579664['queue'][_0x405a08('0x412')]&&_0x579664[_0x405a08('0x1bd')]['type'][_0x405a08('0x19b')]()===_0x405a08('0x1ade')&&_0x579664[_0x405a08('0x1bd')]['appType'][_0x405a08('0x19b')]()===_0x405a08('0x1711')&&(_0x579664['queue'][_0x405a08('0x11d4')]=_0x579664[_0x405a08('0x1bd')][_0x405a08('0x2154')]?_0x579664[_0x405a08('0x1bd')]['phone'][_0x405a08('0x2007')]('$')[0x0]:undefined,_0x579664[_0x405a08('0x1bd')]['callerId']=_0x579664['queue']['callerID']?_0x405a08('0x1d28')+_0x579664[_0x405a08('0x1bd')][_0x405a08('0x17f4')]:undefined);_0x579664[_0x405a08('0x2123')]=_0x299254,_0x579664[_0x405a08('0x136e')]=_0x13d469,_0x1bd382['hasRole'](_0x405a08('0x20bf'))?_0x5573cf['faxQueue'][_0x405a08('0x1c53')]({'fields':_0x405a08('0x960'),'sort':_0x405a08('0x2aa'),'nolimit':_0x405a08('0xe34')})[_0x405a08('0x1af5')][_0x405a08('0x17e7')](function(_0x12e176){const _0x4b2cd1=_0x405a08;_0x579664[_0x4b2cd1('0x14c4')]=_0x12e176[_0x4b2cd1('0x2319')]||[];})['catch'](function(_0x20d8ff){const _0x222bd9=_0x405a08;_0x220da8[_0x222bd9('0x1db9')]({'title':_0x20d8ff[_0x222bd9('0x11c5')]?_0x222bd9('0x14f7')+_0x20d8ff['status']+'\x20-\x20'+_0x20d8ff[_0x222bd9('0x1833')]:'SYSTEM:GET_QUEUES','msg':_0x20d8ff[_0x222bd9('0x1457')]?JSON[_0x222bd9('0x678')](_0x20d8ff['data']):_0x20d8ff[_0x222bd9('0x9b6')]()});}):_0x5573cf[_0x405a08('0x384')][_0x405a08('0x1c53')]({'fields':_0x405a08('0x960'),'sort':_0x405a08('0x2aa'),'nolimit':'true'})[_0x405a08('0x1af5')][_0x405a08('0x17e7')](function(_0x5a8f60){const _0x4d47e5=_0x405a08;_0x579664[_0x4d47e5('0x14c4')]=_0x5a8f60[_0x4d47e5('0x2319')]||[];})[_0x405a08('0x17e7')](function(){const _0x49afb5=_0x405a08;return _0x5573cf[_0x49afb5('0x383')][_0x49afb5('0x1c53')]({'userProfileId':_0x579664[_0x49afb5('0x197c')][_0x49afb5('0x1e76')],'sectionId':0x385})[_0x49afb5('0x1af5')];})['then'](function(_0x5b94f9){const _0x4dda1c=_0x405a08,_0x3cc37c=_0x5b94f9&&_0x5b94f9[_0x4dda1c('0x2319')]?_0x5b94f9['rows'][0x0]:null;if(!_0x3cc37c){const _0x4d519d=[];let _0x2b243b=null;_0x579664[_0x4dda1c('0x1bd')]&&(_0x2b243b=_0x49cbdd()['find'](_0x579664[_0x4dda1c('0x14c4')],{'name':_0x579664[_0x4dda1c('0x1bd')]['queue']}));for(let _0x32fe75=0x0;_0x32fe75<_0x579664[_0x4dda1c('0x14c4')][_0x4dda1c('0x1f73')];_0x32fe75++){_0x2b243b&&_0x579664[_0x4dda1c('0x14c4')][_0x32fe75]['id']===_0x2b243b['id']&&(_0x579664[_0x4dda1c('0x14c4')][_0x32fe75][_0x4dda1c('0xe5c')]=![],_0x4d519d[_0x4dda1c('0x269f')](_0x579664['queues'][_0x32fe75]));}_0x579664[_0x4dda1c('0x14c4')]=_0x4d519d;}else{if(!_0x3cc37c['autoAssociation'])return _0x5573cf[_0x4dda1c('0x78d')]['get']({'sectionId':_0x3cc37c['id']})[_0x4dda1c('0x1af5')][_0x4dda1c('0x17e7')](function(_0x4afea9){const _0x2a1d33=_0x4dda1c,_0x1feddc=_0x49cbdd()['map'](_0x4afea9['rows'],function(_0x147db8){const _0x4c96e2=a0_0xd29e;return _0x49cbdd()[_0x4c96e2('0xe8e')](_0x579664[_0x4c96e2('0x14c4')],{'id':_0x147db8[_0x4c96e2('0x5db')]});});let _0x271bc4=null;_0x579664[_0x2a1d33('0x1bd')]&&(_0x271bc4=_0x49cbdd()['find'](_0x579664['queues'],{'name':_0x579664[_0x2a1d33('0x1bd')][_0x2a1d33('0x1bd')]}));if(_0x271bc4&&!_0x49cbdd()[_0x2a1d33('0x26f8')](_0x1feddc,['id',_0x271bc4['id']])){const _0x279a73=_0x49cbdd()[_0x2a1d33('0xe8e')](_0x579664[_0x2a1d33('0x14c4')],{'id':_0x271bc4['id']});_0x279a73['canSelect']=![],_0x1feddc['push'](_0x279a73);}_0x579664['queues']=_0x1feddc;});}})[_0x405a08('0x16df')](function(_0x120981){const _0x2ad98e=_0x405a08;_0x220da8['error']({'title':_0x120981['status']?_0x2ad98e('0x14f7')+_0x120981[_0x2ad98e('0x11c5')]+_0x2ad98e('0x16e4')+_0x120981['statusText']:'SYSTEM:GETqueues','msg':_0x120981[_0x2ad98e('0x1457')]?JSON[_0x2ad98e('0x678')](_0x120981[_0x2ad98e('0x1457')]):_0x120981['toString']()});});function _0x299254(){const _0x4fca11=_0x405a08;_0x579664[_0x4fca11('0x73e')]=[];const _0x13747b=[];_0x579664['queue'][_0x4fca11('0x412')]&&_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x412')][_0x4fca11('0x19b')]()===_0x4fca11('0x1ade')&&_0x579664['queue']['appType']===_0x4fca11('0xbdc')&&(_0x579664[_0x4fca11('0x1bd')]['phone']=_0xf03d82['cutdigits']?(_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x11d4')]||'')+_0x4fca11('0x2265')+_0xf03d82[_0x4fca11('0x12af')]+'}':(_0x579664[_0x4fca11('0x1bd')]['prefix']||'')+_0x4fca11('0x150e'),_0xf03d82['recordingFormat']!=='none'?_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x19')]['indexOf'](_0x4fca11('0xa22'))<0x0&&(_0x579664['queue'][_0x4fca11('0x19')]+=_0x4fca11('0xa22')):_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x19')]=_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x19')]['replace'](_0x4fca11('0xa22'),''));const _0x5a787a=_0x49cbdd()['find'](_0x579664[_0x4fca11('0x14c4')],{'name':_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x1bd')]});_0x5a787a&&(_0x579664[_0x4fca11('0x1bd')][_0x49cbdd()[_0x4fca11('0xb41')]('fax')+'QueueId']=_0x5a787a['id']);if(_0x579664['queue']['appType']&&_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x1c54')]===_0x4fca11('0x8fa')){}else switch((_0x579664[_0x4fca11('0x1bd')]['app']||_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x1c54')])[_0x4fca11('0x19b')]()){case _0x4fca11('0xf2e'):_0x579664[_0x4fca11('0x1bd')]['appdata']=_0x579664[_0x4fca11('0x1bd')]['name']+'='+_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x175b')];break;case _0x4fca11('0x8fa'):break;default:_0x13747b[0x0]=_0x579664[_0x4fca11('0x1bd')][_0x4fca11('0x1bd')],_0x13747b[0x1]=_0x579664[_0x4fca11('0x1bd')]['timeout'],_0x579664[_0x4fca11('0x1bd')]['appdata']=_0x13747b[_0x4fca11('0x1eba')](',');}_0x13d469(_0x579664[_0x4fca11('0x1bd')]);}function _0x13d469(_0x4a54bd){_0x2ecd71['hide'](_0x4a54bd);}}const _0x35ec40=_0x3f7af0;_0x2763a7[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x4e6'),_0x4376d8('0x119'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x2763a7(_0x4a41be,_0x2f3bcd,_0x242ee6,_0x456082,_0x5ec530,_0x25d67f,_0x556499,_0x3d6e9b){const _0x351c08=_0x4376d8,_0x497a4b=this;_0x497a4b[_0x351c08('0x197c')]=_0x556499[_0x351c08('0x2831')](),_0x497a4b[_0x351c08('0x73e')]=[],_0x497a4b[_0x351c08('0x24d3')]='FAX.EDIT_'+(_0x456082['appType']||_0x456082[_0x351c08('0x643')])[_0x351c08('0x14e2')](),_0x497a4b[_0x351c08('0xca8')]=angular[_0x351c08('0x14e5')](_0x456082),_0x497a4b['crudPermissions']=_0x3d6e9b,_0x497a4b[_0x351c08('0x6ee')]={};if(_0x497a4b['system']['appdata'])switch(_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1c54')]?_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1c54')]['toLowerCase']():_0x497a4b[_0x351c08('0xca8')]['app'][_0x351c08('0x19b')]()){case _0x351c08('0x8fa'):break;case'dialogflow':{const _0x4dc241=_0x497a4b[_0x351c08('0xca8')]['appdata'][_0x351c08('0x2007')](',');_0x497a4b[_0x351c08('0xca8')]['key']=_0x4dc241[0x0],_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x3e1')]=_0x4dc241[0x1],_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1083')]=_0x4dc241[_0x351c08('0x275f')](0x2,_0x4dc241[_0x351c08('0x1f73')])[_0x351c08('0x1eba')](',');}break;case _0x351c08('0x22ac'):{const _0x36160d=_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2077')][_0x351c08('0x2007')](',');_0x497a4b[_0x351c08('0xca8')]['projectId']=_0x36160d[0x0],_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2814')]=_0x36160d[0x1],_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1bc2')]=_0x36160d[0x2],_0x497a4b['system'][_0x351c08('0x3e1')]=_0x36160d[0x3],_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1083')]=_0x36160d['slice'](0x4,_0x36160d[_0x351c08('0x1f73')])[_0x351c08('0x1eba')](',');}break;case _0x351c08('0x16a9'):{const _0x2a0ced=_0x497a4b['system'][_0x351c08('0x2077')]['split'](',');_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1452')]=_0x2a0ced[0x0],_0x497a4b[_0x351c08('0xca8')]['secretaccesskey']=_0x2a0ced[0x1],_0x497a4b[_0x351c08('0xca8')]['lexregion']=_0x2a0ced[0x2],_0x497a4b['system'][_0x351c08('0x4a')]=_0x2a0ced[0x3],_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1083')]=_0x2a0ced[_0x351c08('0x275f')](0x4,_0x2a0ced['length'])['join'](',');}break;case'autoreply':{const _0x58cc3d=_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2077')][_0x351c08('0x2007')](',');_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x12a6')]=isNaN(_0x58cc3d[0x0])?_0x58cc3d[0x0]:parseInt(_0x58cc3d[0x0],0xa),_0x497a4b['system']['text']=_0x58cc3d['slice'](0x1,_0x58cc3d['length'])['join'](',');}break;case _0x351c08('0x1603'):_0x497a4b['system'][_0x351c08('0x132f')]=_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2077')];break;case'set':_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2aa')]=_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2077')][_0x351c08('0x2007')]('=')[0x0],_0x497a4b[_0x351c08('0xca8')]['value']=_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2077')][_0x351c08('0x2007')]('=')[0x1];break;case _0x351c08('0x17c6'):_0x497a4b[_0x351c08('0xca8')]['project']=_0x497a4b[_0x351c08('0xca8')]['appdata'];break;default:{const _0x161295=_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2077')][_0x351c08('0x2007')](',');_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1115')]=_0x49cbdd()[_0x351c08('0x109a')](_0x161295[0x0])?_0x161295[0x0]:isNaN(_0x161295[0x0])?_0x161295[0x0]:parseInt(_0x161295[0x0],0xa),_0x497a4b[_0x351c08('0xca8')][_0x351c08('0xb0a')]=_0x49cbdd()['isEmpty'](_0x161295[0x1])?_0x161295[0x1]:isNaN(_0x161295[0x1])?_0x161295[0x1]:parseInt(_0x161295[0x1],0xa);}}else _0x497a4b[_0x351c08('0xca8')][_0x351c08('0xb0a')]='';_0x497a4b['system']['type']&&_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x412')]['toLowerCase']()==='outbound'&&_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x1c54')][_0x351c08('0x19b')]()===_0x351c08('0x1711')&&(_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x11d4')]=_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2154')]?_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x2154')][_0x351c08('0x2007')]('$')[0x0]:undefined,_0x497a4b[_0x351c08('0xca8')]['callerId']=_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x17f4')]?_0x351c08('0x1d28')+_0x497a4b[_0x351c08('0xca8')][_0x351c08('0x17f4')]:undefined);_0x497a4b[_0x351c08('0x2123')]=_0x2fbd07,_0x497a4b['closeDialog']=_0x2ee51c,_0x556499['hasRole'](_0x351c08('0x20bf'))?_0x25d67f['variable'][_0x351c08('0x1c53')]({'fields':_0x351c08('0x12d2'),'sort':'name','nolimit':_0x351c08('0xe34')})[_0x351c08('0x1af5')][_0x351c08('0x17e7')](function(_0x25486b){const _0x259622=_0x351c08;_0x497a4b[_0x259622('0xd26')]=_0x25486b[_0x259622('0x2319')]||[];})[_0x351c08('0x16df')](function(_0x974fd8){const _0x4e3f7f=_0x351c08;_0x242ee6[_0x4e3f7f('0x1db9')]({'title':_0x974fd8['status']?_0x4e3f7f('0x14f7')+_0x974fd8[_0x4e3f7f('0x11c5')]+_0x4e3f7f('0x16e4')+_0x974fd8[_0x4e3f7f('0x1833')]:_0x4e3f7f('0x1edc'),'msg':_0x974fd8[_0x4e3f7f('0x1457')]?JSON[_0x4e3f7f('0x678')](_0x974fd8[_0x4e3f7f('0x1457')]):_0x974fd8['toString']()});}):_0x25d67f[_0x351c08('0xb0a')]['get']({'fields':_0x351c08('0x12d2'),'sort':_0x351c08('0x2aa'),'nolimit':'true'})[_0x351c08('0x1af5')][_0x351c08('0x17e7')](function(_0x14a503){const _0x383460=_0x351c08;_0x497a4b[_0x383460('0xd26')]=_0x14a503[_0x383460('0x2319')]||[];})[_0x351c08('0x17e7')](function(){const _0x19de7a=_0x351c08;return _0x25d67f[_0x19de7a('0x383')][_0x19de7a('0x1c53')]({'userProfileId':_0x497a4b[_0x19de7a('0x197c')][_0x19de7a('0x1e76')],'sectionId':0x3f4})[_0x19de7a('0x1af5')];})[_0x351c08('0x17e7')](function(_0x570ac9){const _0x37420e=_0x351c08,_0xca01cd=_0x570ac9&&_0x570ac9[_0x37420e('0x2319')]?_0x570ac9['rows'][0x0]:null;if(!_0xca01cd){const _0x4d5a89=[];let _0x43430c=null;_0x497a4b[_0x37420e('0xca8')]&&(_0x43430c=_0x49cbdd()[_0x37420e('0xe8e')](_0x497a4b[_0x37420e('0xd26')],{'name':_0x497a4b[_0x37420e('0xca8')][_0x37420e('0xb0a')]}));for(let _0x12712c=0x0;_0x12712c<_0x497a4b[_0x37420e('0xd26')]['length'];_0x12712c++){_0x43430c&&_0x497a4b['variables'][_0x12712c]['id']===_0x43430c['id']&&(_0x497a4b['variables'][_0x12712c][_0x37420e('0xe5c')]=![],_0x4d5a89[_0x37420e('0x269f')](_0x497a4b[_0x37420e('0xd26')][_0x12712c]));}_0x497a4b[_0x37420e('0xd26')]=_0x4d5a89;}else{if(!_0xca01cd[_0x37420e('0x9e3')])return _0x25d67f[_0x37420e('0x78d')][_0x37420e('0x1c53')]({'sectionId':_0xca01cd['id']})[_0x37420e('0x1af5')]['then'](function(_0x123502){const _0x4fd412=_0x37420e,_0xa9f77d=_0x49cbdd()[_0x4fd412('0x787')](_0x123502['rows'],function(_0x110f8d){const _0x4d8fef=_0x4fd412;return _0x49cbdd()[_0x4d8fef('0xe8e')](_0x497a4b[_0x4d8fef('0xd26')],{'id':_0x110f8d[_0x4d8fef('0x5db')]});});let _0x8d6098=null;_0x497a4b[_0x4fd412('0xca8')]&&(_0x8d6098=_0x49cbdd()[_0x4fd412('0xe8e')](_0x497a4b[_0x4fd412('0xd26')],{'name':_0x497a4b[_0x4fd412('0xca8')][_0x4fd412('0xb0a')]}));if(_0x8d6098&&!_0x49cbdd()[_0x4fd412('0x26f8')](_0xa9f77d,['id',_0x8d6098['id']])){const _0xfcc3d2=_0x49cbdd()[_0x4fd412('0xe8e')](_0x497a4b[_0x4fd412('0xd26')],{'id':_0x8d6098['id']});_0xfcc3d2['canSelect']=![],_0xa9f77d[_0x4fd412('0x269f')](_0xfcc3d2);}_0x497a4b[_0x4fd412('0xd26')]=_0xa9f77d;});}})[_0x351c08('0x16df')](function(_0x1aa11e){const _0xb50f2d=_0x351c08;_0x242ee6[_0xb50f2d('0x1db9')]({'title':_0x1aa11e[_0xb50f2d('0x11c5')]?_0xb50f2d('0x14f7')+_0x1aa11e[_0xb50f2d('0x11c5')]+_0xb50f2d('0x16e4')+_0x1aa11e[_0xb50f2d('0x1833')]:_0xb50f2d('0xef7'),'msg':_0x1aa11e[_0xb50f2d('0x1457')]?JSON['stringify'](_0x1aa11e['data']):_0x1aa11e[_0xb50f2d('0x9b6')]()});});function _0x2fbd07(){const _0x44bf12=_0x351c08;_0x497a4b['errors']=[];const _0x235c1a=[];_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x412')]&&_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x412')][_0x44bf12('0x19b')]()==='outbound'&&_0x497a4b['system']['appType']===_0x44bf12('0xbdc')&&(_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x2154')]=_0x5ec530[_0x44bf12('0x12af')]?(_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x11d4')]||'')+_0x44bf12('0x2265')+_0x5ec530[_0x44bf12('0x12af')]+'}':(_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x11d4')]||'')+_0x44bf12('0x150e'),_0x5ec530[_0x44bf12('0x287')]!=='none'?_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x19')]['indexOf'](_0x44bf12('0xa22'))<0x0&&(_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x19')]+=_0x44bf12('0xa22')):_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x19')]=_0x497a4b['system'][_0x44bf12('0x19')][_0x44bf12('0x737')](_0x44bf12('0xa22'),''));if(_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x1c54')]&&_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x1c54')]===_0x44bf12('0x8fa')){}else switch((_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x643')]||_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x1c54')])[_0x44bf12('0x19b')]()){case _0x44bf12('0xf2e'):_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x2077')]=_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x2aa')]+'='+_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x175b')];break;case _0x44bf12('0x8fa'):break;default:_0x235c1a[0x0]=_0x497a4b['system'][_0x44bf12('0x1115')],_0x235c1a[0x1]=_0x497a4b[_0x44bf12('0xca8')]['variable'],_0x497a4b[_0x44bf12('0xca8')][_0x44bf12('0x2077')]=_0x235c1a[_0x44bf12('0x1eba')](',');}_0x2ee51c(_0x497a4b[_0x44bf12('0xca8')]);}function _0x2ee51c(_0x47a383){_0x4a41be['hide'](_0x47a383);}}const _0x6f80b5=_0x2763a7;_0x35d142[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x4e6'),_0x4376d8('0x119'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x103e')];function _0x35d142(_0x10b325,_0x28dad1,_0xf11a1b,_0x461e9a,_0x18c1df,_0x451451,_0x1f7858,_0x2ac565){const _0xc0652a=_0x4376d8,_0x489e68=this;_0x489e68[_0xc0652a('0x197c')]=_0x1f7858[_0xc0652a('0x2831')](),_0x489e68['errors']=[],_0x489e68[_0xc0652a('0x24d3')]='FAX.EDIT_'+(_0x461e9a['appType']||_0x461e9a[_0xc0652a('0x643')])[_0xc0652a('0x14e2')](),_0x489e68['tag']=angular[_0xc0652a('0x14e5')](_0x461e9a),_0x489e68[_0xc0652a('0x103e')]=_0x2ac565,_0x489e68[_0xc0652a('0x6ee')]={};if(_0x489e68['tag'][_0xc0652a('0x2077')])switch(_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x1c54')]?_0x489e68['tag'][_0xc0652a('0x1c54')][_0xc0652a('0x19b')]():_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x643')][_0xc0652a('0x19b')]()){case _0xc0652a('0x8fa'):break;case _0xc0652a('0x2526'):{const _0x479ed4=_0x489e68['tag'][_0xc0652a('0x2077')][_0xc0652a('0x2007')](',');_0x489e68[_0xc0652a('0x1132')]['key']=_0x479ed4[0x0],_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x3e1')]=_0x479ed4[0x1],_0x489e68[_0xc0652a('0x1132')]['welcomemessage']=_0x479ed4[_0xc0652a('0x275f')](0x2,_0x479ed4[_0xc0652a('0x1f73')])['join'](',');}break;case _0xc0652a('0x22ac'):{const _0x12a62a=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2077')][_0xc0652a('0x2007')](',');_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x28ab')]=_0x12a62a[0x0],_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2814')]=_0x12a62a[0x1],_0x489e68[_0xc0652a('0x1132')]['privateKey']=_0x12a62a[0x2],_0x489e68[_0xc0652a('0x1132')]['language']=_0x12a62a[0x3],_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x1083')]=_0x12a62a['slice'](0x4,_0x12a62a[_0xc0652a('0x1f73')])['join'](',');}break;case _0xc0652a('0x16a9'):{const _0x525760=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2077')]['split'](',');_0x489e68['tag'][_0xc0652a('0x1452')]=_0x525760[0x0],_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x1a62')]=_0x525760[0x1],_0x489e68[_0xc0652a('0x1132')]['lexregion']=_0x525760[0x2],_0x489e68['tag'][_0xc0652a('0x4a')]=_0x525760[0x3],_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x1083')]=_0x525760['slice'](0x4,_0x525760[_0xc0652a('0x1f73')])[_0xc0652a('0x1eba')](',');}break;case _0xc0652a('0x96e'):{const _0xa9b8c7=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2077')][_0xc0652a('0x2007')](',');_0x489e68[_0xc0652a('0x1132')]['times']=isNaN(_0xa9b8c7[0x0])?_0xa9b8c7[0x0]:parseInt(_0xa9b8c7[0x0],0xa),_0x489e68['tag'][_0xc0652a('0x132f')]=_0xa9b8c7['slice'](0x1,_0xa9b8c7[_0xc0652a('0x1f73')])[_0xc0652a('0x1eba')](',');}break;case _0xc0652a('0x1603'):_0x489e68[_0xc0652a('0x1132')]['text']=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2077')];break;case'set':_0x489e68['tag']['name']=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2077')][_0xc0652a('0x2007')]('=')[0x0],_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x175b')]=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2077')][_0xc0652a('0x2007')]('=')[0x1];break;case'agi':_0x489e68[_0xc0652a('0x1132')]['project']=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2077')];break;default:{const _0x432cd0=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2077')]['split'](',');_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x1132')]=_0x49cbdd()[_0xc0652a('0x109a')](_0x432cd0[0x0])?_0x432cd0[0x0]:isNaN(_0x432cd0[0x0])?_0x432cd0[0x0]:parseInt(_0x432cd0[0x0],0xa);}break;}else{}_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x412')]&&_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x412')]['toLowerCase']()==='outbound'&&_0x489e68[_0xc0652a('0x1132')]['appType'][_0xc0652a('0x19b')]()===_0xc0652a('0x1711')&&(_0x489e68['tag']['prefix']=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2154')]?_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x2154')][_0xc0652a('0x2007')]('$')[0x0]:undefined,_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x1a8e')]=_0x489e68[_0xc0652a('0x1132')][_0xc0652a('0x17f4')]?'CALLERID(all)='+_0x489e68[_0xc0652a('0x1132')]['callerID']:undefined);_0x489e68[_0xc0652a('0x2123')]=_0x124fb7,_0x489e68[_0xc0652a('0x136e')]=_0x2dc6f7,_0x1f7858[_0xc0652a('0x1ba2')](_0xc0652a('0x20bf'))?_0x451451[_0xc0652a('0x1132')][_0xc0652a('0x1c53')]({'fields':_0xc0652a('0x12d2'),'sort':'name','nolimit':_0xc0652a('0xe34')})['$promise'][_0xc0652a('0x17e7')](function(_0x2658d1){const _0x4085d6=_0xc0652a;_0x489e68[_0x4085d6('0x1522')]=_0x2658d1[_0x4085d6('0x2319')]||[];})[_0xc0652a('0x16df')](function(_0x3c7fe4){const _0x316f98=_0xc0652a;_0xf11a1b[_0x316f98('0x1db9')]({'title':_0x3c7fe4[_0x316f98('0x11c5')]?_0x316f98('0x14f7')+_0x3c7fe4['status']+_0x316f98('0x16e4')+_0x3c7fe4[_0x316f98('0x1833')]:'SYSTEM:GET_TAGS','msg':_0x3c7fe4['data']?JSON['stringify'](_0x3c7fe4['data']):_0x3c7fe4['toString']()});}):_0x451451[_0xc0652a('0x1132')][_0xc0652a('0x1c53')]({'fields':'id,name','sort':_0xc0652a('0x2aa'),'nolimit':_0xc0652a('0xe34')})[_0xc0652a('0x1af5')][_0xc0652a('0x17e7')](function(_0x21473){const _0x2dfc1b=_0xc0652a;_0x489e68['tags']=_0x21473[_0x2dfc1b('0x2319')]||[];})[_0xc0652a('0x17e7')](function(){const _0x33ec5e=_0xc0652a;return _0x451451['userProfileSection']['get']({'userProfileId':_0x489e68['currentUser'][_0x33ec5e('0x1e76')],'sectionId':0x3f0})[_0x33ec5e('0x1af5')];})[_0xc0652a('0x17e7')](function(_0x4512e2){const _0x112322=_0xc0652a,_0x6fbe8=_0x4512e2&&_0x4512e2[_0x112322('0x2319')]?_0x4512e2[_0x112322('0x2319')][0x0]:null;if(!_0x6fbe8){const _0x31d78d=[];let _0x4cccf5=null;_0x489e68['tag']&&(_0x4cccf5=_0x49cbdd()['find'](_0x489e68[_0x112322('0x1522')],{'name':_0x489e68['tag'][_0x112322('0x1132')]}));for(let _0x23c21e=0x0;_0x23c21e<_0x489e68['tags'][_0x112322('0x1f73')];_0x23c21e++){_0x4cccf5&&_0x489e68[_0x112322('0x1522')][_0x23c21e]['id']===_0x4cccf5['id']&&(_0x489e68['tags'][_0x23c21e][_0x112322('0xe5c')]=![],_0x31d78d[_0x112322('0x269f')](_0x489e68[_0x112322('0x1522')][_0x23c21e]));}_0x489e68['tags']=_0x31d78d;}else{if(!_0x6fbe8['autoAssociation'])return _0x451451[_0x112322('0x78d')][_0x112322('0x1c53')]({'sectionId':_0x6fbe8['id']})['$promise']['then'](function(_0x5d595d){const _0x3ff0c8=_0x112322,_0x188528=_0x49cbdd()[_0x3ff0c8('0x787')](_0x5d595d['rows'],function(_0x11b9a7){const _0x215d12=_0x3ff0c8;return _0x49cbdd()[_0x215d12('0xe8e')](_0x489e68['tags'],{'id':_0x11b9a7[_0x215d12('0x5db')]});});let _0x48c327=null;_0x489e68['tag']&&(_0x48c327=_0x49cbdd()[_0x3ff0c8('0xe8e')](_0x489e68[_0x3ff0c8('0x1522')],{'name':_0x489e68[_0x3ff0c8('0x1132')]['tag']}));if(_0x48c327&&!_0x49cbdd()['some'](_0x188528,['id',_0x48c327['id']])){const _0x2471b4=_0x49cbdd()[_0x3ff0c8('0xe8e')](_0x489e68['tags'],{'id':_0x48c327['id']});_0x2471b4[_0x3ff0c8('0xe5c')]=![],_0x188528[_0x3ff0c8('0x269f')](_0x2471b4);}_0x489e68[_0x3ff0c8('0x1522')]=_0x188528;});}})['catch'](function(_0x258b78){const _0x1932df=_0xc0652a;_0xf11a1b['error']({'title':_0x258b78[_0x1932df('0x11c5')]?_0x1932df('0x14f7')+_0x258b78[_0x1932df('0x11c5')]+_0x1932df('0x16e4')+_0x258b78[_0x1932df('0x1833')]:_0x1932df('0x1221'),'msg':_0x258b78[_0x1932df('0x1457')]?JSON[_0x1932df('0x678')](_0x258b78[_0x1932df('0x1457')]):_0x258b78[_0x1932df('0x9b6')]()});});function _0x124fb7(){const _0x5084f2=_0xc0652a;_0x489e68[_0x5084f2('0x73e')]=[];const _0x410ea9=[];_0x489e68[_0x5084f2('0x1132')][_0x5084f2('0x412')]&&_0x489e68['tag']['type'][_0x5084f2('0x19b')]()==='outbound'&&_0x489e68[_0x5084f2('0x1132')]['appType']===_0x5084f2('0xbdc')&&(_0x489e68['tag'][_0x5084f2('0x2154')]=_0x18c1df[_0x5084f2('0x12af')]?(_0x489e68[_0x5084f2('0x1132')][_0x5084f2('0x11d4')]||'')+'${EXTEN:'+_0x18c1df['cutdigits']+'}':(_0x489e68[_0x5084f2('0x1132')][_0x5084f2('0x11d4')]||'')+_0x5084f2('0x150e'),_0x18c1df[_0x5084f2('0x287')]!==_0x5084f2('0x7ee')?_0x489e68[_0x5084f2('0x1132')][_0x5084f2('0x19')][_0x5084f2('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0x489e68['tag'][_0x5084f2('0x19')]+='U(xcally-mixmonitor-context)'):_0x489e68['tag'][_0x5084f2('0x19')]=_0x489e68[_0x5084f2('0x1132')]['options'][_0x5084f2('0x737')]('U(xcally-mixmonitor-context)',''));const _0x358517=_0x49cbdd()[_0x5084f2('0xe8e')](_0x489e68[_0x5084f2('0x1522')],{'name':_0x489e68[_0x5084f2('0x1132')]['tag']});_0x358517&&(_0x489e68['tag'][_0x5084f2('0x1686')]=_0x358517['id']);if(_0x489e68['tag']['appType']&&_0x489e68['tag'][_0x5084f2('0x1c54')]===_0x5084f2('0x8fa')){}else switch((_0x489e68['tag'][_0x5084f2('0x643')]||_0x489e68['tag'][_0x5084f2('0x1c54')])[_0x5084f2('0x19b')]()){case _0x5084f2('0xf2e'):_0x489e68[_0x5084f2('0x1132')][_0x5084f2('0x2077')]=_0x489e68[_0x5084f2('0x1132')][_0x5084f2('0x2aa')]+'='+_0x489e68[_0x5084f2('0x1132')][_0x5084f2('0x175b')];break;case _0x5084f2('0x8fa'):break;default:_0x410ea9[0x0]=_0x489e68['tag'][_0x5084f2('0x1132')],_0x489e68[_0x5084f2('0x1132')][_0x5084f2('0x2077')]=_0x410ea9[_0x5084f2('0x1eba')](',');}_0x2dc6f7(_0x489e68[_0x5084f2('0x1132')]);}function _0x2dc6f7(_0x498e13){_0x10b325['hide'](_0x498e13);}}const _0x2db20d=_0x35d142;_0x557b18['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout','$translate',_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885')];function _0x557b18(_0x2bcab0,_0x133e5f,_0xddbdf8,_0x5437a4,_0xd6dc17,_0x56b826,_0x15ca68,_0x5f361a,_0xcc6350,_0xfc8f31,_0x434b9f){const _0x421d80=_0x4376d8,_0x30fa7e=this;_0x30fa7e[_0x421d80('0x197c')]=_0x434b9f[_0x421d80('0x2831')](),_0x30fa7e['dispositions']={'count':0x0,'rows':[]},_0x30fa7e['selectedDispositions']=[],_0x30fa7e[_0x421d80('0x103e')],_0x30fa7e[_0x421d80('0x1e26')]={'first':'1st','second':_0x421d80('0xf67'),'third':_0x421d80('0x13a2')},_0x30fa7e[_0x421d80('0x826')]={'fields':_0x421d80('0x2b9'),'sort':_0x421d80('0x1ac6'),'limit':0xa,'page':0x1},_0x30fa7e['init']=_0x71b030,_0x30fa7e[_0x421d80('0x1a20')]=_0xfbae76,_0x30fa7e[_0x421d80('0x130d')]=_0x230452,_0x30fa7e[_0x421d80('0x26c2')]=_0x4dc18a,_0x30fa7e[_0x421d80('0x1eff')]=_0x889f8c,_0x30fa7e['deleteDisposition']=_0x2f66eb,_0x30fa7e[_0x421d80('0xa8e')]=_0xf86cca,_0x30fa7e[_0x421d80('0xc81')]=_0x36ae63,_0x30fa7e[_0x421d80('0x4cb')]=_0x2755c2,_0x30fa7e[_0x421d80('0x11d8')]=_0x3454eb;function _0x71b030(_0x32bf54,_0x1c6a24){const _0xc5a862=_0x421d80;_0x30fa7e[_0xc5a862('0x119')]=_0x32bf54||{},_0x30fa7e[_0xc5a862('0x103e')]=typeof _0x1c6a24!=='undefined'?_0x1c6a24:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x30fa7e[_0xc5a862('0x826')][_0xc5a862('0x24f9')]=_0x30fa7e['faxAccount']['id'],_0x30fa7e['query']['id']=_0x30fa7e[_0xc5a862('0x119')]['id'],_0x4dc18a();}function _0x889f8c(_0x146edd,_0x3352c1){const _0x255e11=_0x421d80;_0xd6dc17[_0x255e11('0x28e2')]({'controller':_0x255e11('0x8e0'),'controllerAs':'vm','templateUrl':_0x27dcbe,'parent':angular[_0x255e11('0x1ce1')](_0x56b826[_0x255e11('0x13aa')]),'targetEvent':_0x146edd,'clickOutsideToClose':!![],'locals':{'disposition':_0x3352c1,'dispositions':_0x30fa7e[_0x255e11('0x23fe')][_0x255e11('0x2319')],'model':{'id':_0x30fa7e['faxAccount']['id'],'field':_0x255e11('0x24f9')},'license':null,'setting':null,'crudPermissions':_0x30fa7e['crudPermissions']}})[_0x255e11('0x17e7')](function(_0x294860){if(_0x294860)_0x4dc18a();});}function _0xfbae76(_0x44907d,_0x9dbac7){const _0x5130da=_0x421d80,_0x4e1a21=_0x49cbdd()['some'](_0x30fa7e[_0x5130da('0x23fe')][_0x5130da('0x2319')],[_0x5130da('0x1a27'),_0x44907d['id']]),_0xd717b8=_0xd6dc17[_0x5130da('0x1121')]()['title'](_0x5f361a[_0x5130da('0x1acc')](_0x5130da('0x1ab5')))['content'](_0x5f361a[_0x5130da('0x1acc')]('TOOLS.NOTIFICATIONS.'+(_0x4e1a21?_0x5130da('0xa0a'):_0x5130da('0xd6c')),{'name':_0x44907d[_0x5130da('0x2aa')]}))[_0x5130da('0x2095')](_0x5130da('0x1596'))[_0x5130da('0x104f')](_0x9dbac7)['ok']('OK')['cancel'](_0x5f361a[_0x5130da('0x1acc')](_0x5130da('0x34f')));_0xd6dc17[_0x5130da('0x28e2')](_0xd717b8)[_0x5130da('0x17e7')](function(){_0x2f66eb(_0x44907d);});}function _0x230452(_0x5497af){const _0x2ce245=_0x421d80;_0x30fa7e[_0x2ce245('0x23fe')]=_0x5497af||{'count':0x0,'rows':[]};}function _0x4dc18a(){const _0x560558=_0x421d80;_0x30fa7e[_0x560558('0x826')]['offset']=(_0x30fa7e[_0x560558('0x826')][_0x560558('0x115a')]-0x1)*_0x30fa7e['query'][_0x560558('0x193b')],_0x30fa7e[_0x560558('0x1691')]=_0xcc6350[_0x560558('0x119')][_0x560558('0x26c2')](_0x30fa7e[_0x560558('0x826')],_0x230452)[_0x560558('0x1af5')];}function _0x2f66eb(_0x1107db){const _0x39cefa=_0x421d80;_0xcc6350[_0x39cefa('0x1f27')][_0x39cefa('0x1da6')]({'id':_0x1107db['id']})[_0x39cefa('0x1af5')][_0x39cefa('0x17e7')](function(){const _0x2fca8e=_0x39cefa;_0x4dc18a(),_0xfc8f31[_0x2fca8e('0x130d')]({'title':_0x5f361a['instant'](_0x2fca8e('0x10dc'))});})[_0x39cefa('0x16df')](function(_0x3d5f6f){const _0x1d3e46=_0x39cefa;if(_0x3d5f6f[_0x1d3e46('0x1457')]&&_0x3d5f6f['data'][_0x1d3e46('0x73e')]&&_0x3d5f6f['data'][_0x1d3e46('0x73e')]['length']){_0x30fa7e[_0x1d3e46('0x73e')]=_0x3d5f6f[_0x1d3e46('0x1457')][_0x1d3e46('0x73e')]||[{'message':_0x3d5f6f[_0x1d3e46('0x9b6')](),'type':'SYSTEM:DELETEdisposition'}];for(let _0x28d471=0x0;_0x28d471<_0x3d5f6f['data'][_0x1d3e46('0x73e')][_0x1d3e46('0x1f73')];_0x28d471++){_0xfc8f31[_0x1d3e46('0x1db9')]({'title':_0x3d5f6f['data'][_0x1d3e46('0x73e')][_0x28d471]['type'],'msg':_0x3d5f6f['data'][_0x1d3e46('0x73e')][_0x28d471][_0x1d3e46('0x1603')]});}}else _0xfc8f31['error']({'title':_0x3d5f6f[_0x1d3e46('0x11c5')]?'API:'+_0x3d5f6f[_0x1d3e46('0x11c5')]+_0x1d3e46('0x16e4')+_0x3d5f6f['statusText']:_0x1d3e46('0x104a'),'msg':_0x3d5f6f[_0x1d3e46('0x1457')]?JSON[_0x1d3e46('0x678')](_0x3d5f6f[_0x1d3e46('0x1457')]['message']):_0x3d5f6f[_0x1d3e46('0x1603')]||_0x3d5f6f[_0x1d3e46('0x9b6')]()});});}function _0xf86cca(){const _0x3766d5=_0x421d80,_0x474e61=angular[_0x3766d5('0x14e5')](_0x30fa7e[_0x3766d5('0x440')]);return _0x30fa7e[_0x3766d5('0x440')]=[],_0x474e61;}function _0x36ae63(_0x565122){const _0x3cfea5=_0x421d80,_0x2ca3dd=_0xd6dc17[_0x3cfea5('0x1121')]()[_0x3cfea5('0x24d3')](_0x5f361a[_0x3cfea5('0x1acc')](_0x3cfea5('0x21e')))[_0x3cfea5('0xd5')](_0x5f361a['instant']('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x30fa7e[_0x3cfea5('0x440')][_0x3cfea5('0x1f73')]}))[_0x3cfea5('0x2095')](_0x3cfea5('0x844'))[_0x3cfea5('0x104f')](_0x565122)['ok']('OK')[_0x3cfea5('0x1d47')](_0x5f361a[_0x3cfea5('0x1acc')](_0x3cfea5('0x34f')));_0xd6dc17['show'](_0x2ca3dd)[_0x3cfea5('0x17e7')](function(){const _0x4a7d22=_0x3cfea5;_0x30fa7e[_0x4a7d22('0x440')][_0x4a7d22('0xccd')](function(_0x26fdd8){_0x2f66eb(_0x26fdd8);}),_0x30fa7e[_0x4a7d22('0x440')]=[];});}function _0x2755c2(){const _0x2190df=_0x421d80;_0x30fa7e[_0x2190df('0x440')]=[];}function _0x3454eb(){const _0x12c709=_0x421d80;_0x30fa7e[_0x12c709('0x440')]=_0x30fa7e[_0x12c709('0x23fe')][_0x12c709('0x2319')];}let _0x261981=!![],_0x13cec2=0x1;_0x2bcab0['$watch'](_0x421d80('0x4c3'),function(_0x42a08d,_0x5eb29c){const _0x5252df=_0x421d80;_0x261981?_0x15ca68(function(){_0x261981=![];}):(!_0x5eb29c&&(_0x13cec2=_0x30fa7e['query'][_0x5252df('0x115a')]),_0x42a08d!==_0x5eb29c&&(_0x30fa7e[_0x5252df('0x826')][_0x5252df('0x115a')]=0x1),!_0x42a08d&&(_0x30fa7e['query'][_0x5252df('0x115a')]=_0x13cec2),_0x4dc18a());});}const _0x2a5629=_0x557b18;_0x2437c1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),'$scope','$state','$q',_0x4376d8('0x28da'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),'api','Auth'];function _0x2437c1(_0x17b9a8,_0x2d29b8,_0x4ebcdd,_0x55cef2,_0x27d965,_0x1be81d,_0x44b20f,_0x322202,_0x263aed,_0x4ba3c8,_0x13e6c6){const _0x15a3b8=_0x4376d8,_0x51bbb2=this;_0x51bbb2[_0x15a3b8('0x197c')]=_0x13e6c6[_0x15a3b8('0x2831')](),_0x51bbb2[_0x15a3b8('0x119')]={},_0x51bbb2[_0x15a3b8('0x1fcf')]={'count':0x0,'rows':[]},_0x51bbb2[_0x15a3b8('0x2130')]=[],_0x51bbb2[_0x15a3b8('0x103e')],_0x51bbb2['query']={'read':'null','closed':'null','sort':'-createdAt','includeAll':'true','limit':0xa,'page':0x1},_0x51bbb2[_0x15a3b8('0x161d')]=_0xaa907d,_0x51bbb2[_0x15a3b8('0x1a20')]=_0x1882af,_0x51bbb2[_0x15a3b8('0xe69')]=_0x52dd68,_0x51bbb2[_0x15a3b8('0x130d')]=_0x3c7945,_0x51bbb2['getFaxAccountInteractions']=_0x5c7200,_0x51bbb2[_0x15a3b8('0x2297')]=_0x7a4a91,_0x51bbb2['openAdvancedSearch']=_0x33cab3,_0x51bbb2[_0x15a3b8('0x2342')]=_0x46bc49,_0x51bbb2['deleteFaxAccountInteraction']=_0x19bb5c,_0x51bbb2[_0x15a3b8('0x4ab')]=_0x26aa2c;function _0xaa907d(_0xa89f0e,_0x4650cc){const _0x441f87=_0x15a3b8;_0x51bbb2[_0x441f87('0x119')]=_0xa89f0e,_0x51bbb2['crudPermissions']=typeof _0x4650cc!=='undefined'?_0x4650cc:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x51bbb2[_0x441f87('0x826')][_0x441f87('0x24f9')]=_0x51bbb2[_0x441f87('0x119')]['id'],_0x51bbb2[_0x441f87('0xfb6')]={'fields':_0x40055a()},_0x50c271();}function _0x50c271(){const _0x30c74f=_0x15a3b8;return _0x4ba3c8['tag'][_0x30c74f('0x1c53')]()[_0x30c74f('0x1af5')][_0x30c74f('0x17e7')](function(_0xb3e012){_0x51bbb2['tags']=_0xb3e012||{'count':0x0,'rows':[]};})[_0x30c74f('0x17e7')](function(){const _0x230349=_0x30c74f;_0x51bbb2[_0x230349('0x137d')]=_0x53e13d();});}function _0x53e13d(){const _0x5619b1=_0x15a3b8;return[{'name':_0x5619b1('0x1786'),'key':_0x5619b1('0x7c9'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x5619b1('0xd08'),'key':_0x5619b1('0xf64'),'type':'select','label':_0x5619b1('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x5619b1('0x263')},{'value':0x1,'translate':_0x5619b1('0x2874')},{'value':null,'translate':_0x5619b1('0x9cf')}]},{'name':'Status','key':_0x5619b1('0x2bc'),'type':_0x5619b1('0x2897'),'label':'DASHBOARDS.SELECT_STATUS','customOptions':[{'value':0x0,'translate':'DASHBOARDS.OPENED'},{'value':0x1,'translate':_0x5619b1('0x2322')},{'value':null,'translate':_0x5619b1('0x9cf')}]},{'name':_0x5619b1('0x1874'),'key':_0x5619b1('0x5e5'),'type':_0x5619b1('0x2897'),'label':_0x5619b1('0x351'),'customOptions':[{'value':_0x5619b1('0x9bb'),'translate':_0x5619b1('0x154d')},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':_0x5619b1('0xe16'),'key':_0x5619b1('0x1132'),'type':'multiselect','label':_0x5619b1('0x1e4d'),'options':_0x51bbb2[_0x5619b1('0x1522')][_0x5619b1('0x2319')],'placeholder':_0x5619b1('0x21aa')}];}function _0x40055a(){const _0x5f062b=_0x15a3b8;return[{'name':'Id','column':'id','type':_0x5f062b('0x7b8')},{'name':_0x5f062b('0x239b'),'column':'Contact','type':_0x5f062b('0x682'),'options':{'searchFields':[_0x5f062b('0x1761'),_0x5f062b('0x8d6'),_0x5f062b('0x822')],'route':{'model':_0x5f062b('0x1d2a'),'action':_0x5f062b('0x1c53'),'params':{'fields':_0x5f062b('0x2030'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x5f062b('0x1ed7')],'excludedOperators':[_0x5f062b('0xdaa')]}},{'name':_0x5f062b('0x2348'),'column':_0x5f062b('0x2179'),'type':_0x5f062b('0x132f'),'options':{'excludedOperators':[_0x5f062b('0x1767'),_0x5f062b('0xdaa')]}},{'name':_0x5f062b('0x2854'),'column':_0x5f062b('0x139b'),'type':_0x5f062b('0x132f'),'options':{'excludedOperators':[_0x5f062b('0x1767'),_0x5f062b('0xdaa')]}},{'name':_0x5f062b('0x51c'),'column':'closed','type':_0x5f062b('0x2897'),'values':[{'id':0x0,'translate':_0x5f062b('0x1f4f')},{'id':0x1,'translate':_0x5f062b('0x2322')}],'options':{'excludedOperators':[_0x5f062b('0xdaa')]}},{'name':_0x5f062b('0x1874'),'column':_0x5f062b('0x24fd'),'type':_0x5f062b('0x682'),'options':{'table':'i','route':{'model':_0x5f062b('0x221e'),'action':'get','params':{'role':_0x5f062b('0x684'),'fields':'id,name,fullname','nolimit':!![]}},'searchFields':[_0x5f062b('0xea6'),_0x5f062b('0x2aa')],'extraOperators':[_0x5f062b('0x1ed7')],'excludedOperators':[_0x5f062b('0xdaa')]}},{'name':'Tags','column':_0x5f062b('0xe16'),'type':_0x5f062b('0x1227'),'options':{'route':{'model':_0x5f062b('0x1132'),'action':_0x5f062b('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':[_0x5f062b('0x2045')]}},{'name':_0x5f062b('0x1786'),'column':_0x5f062b('0x7c9'),'type':_0x5f062b('0xbd4'),'options':{'excludedOperators':[_0x5f062b('0xdaa')]}},{'name':_0x5f062b('0xf8b'),'column':_0x5f062b('0x1aad'),'type':_0x5f062b('0x2897'),'values':[{'id':0x1,'translate':_0x5f062b('0x2874')},{'id':0x0,'translate':_0x5f062b('0x263')}],'options':{'excludedOperators':[_0x5f062b('0xdaa')]}}];}function _0x33cab3(){const _0x597a9f=_0x15a3b8;_0x44b20f[_0x597a9f('0x28e2')]({'controller':_0x597a9f('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0x597a9f('0x1ce1')](_0x322202[_0x597a9f('0x13aa')]),'clickOutsideToClose':![],'locals':{'fields':_0x51bbb2['advancedSearch'][_0x597a9f('0x9c9')],'color':undefined,'storagePath':'fax.faxAccounts'},'fullscreen':!![]})[_0x597a9f('0x17e7')](function(_0x22c70b){const _0x4a9ddd=_0x597a9f;_0x51bbb2[_0x4a9ddd('0x826')][_0x4a9ddd('0xfba')]=_0x22c70b===![]?undefined:_0x22c70b;if(_0x51bbb2[_0x4a9ddd('0x826')]['search'])_0x5c7200();else _0x22c70b===![]&&_0x5c7200();})[_0x597a9f('0x16df')](function(_0x1140d1){const _0x4a895a=_0x597a9f;_0x263aed[_0x4a895a('0x1db9')]({'title':'ERROR','msg':_0x1140d1[_0x4a895a('0x1457')]?JSON['stringify'](_0x1140d1[_0x4a895a('0x1457')][_0x4a895a('0x1603')]):_0x1140d1[_0x4a895a('0x9b6')]()});});}function _0x52dd68(_0x456c65,_0x534624,_0x2761ac){const _0x521aa3=_0x15a3b8;return _0x4ba3c8['faxInteraction'][_0x521aa3('0x1244')]({'id':_0x456c65['id'],'exists':!![],'attachments':_0x2761ac})['$promise'][_0x521aa3('0x17e7')](function(_0x38d7d5){const _0x26ba2=_0x521aa3,_0xd9259c=[_0x38d7d5[_0x26ba2('0x3ca')]];let _0x472e5a=_0x26ba2('0x1219')+_0x456c65['id'];const _0x6e9145=new Blob(_0xd9259c,{'type':_0x38d7d5[_0x26ba2('0x412')]});_0x472e5a=_0x26ba2('0x289b')+_0x456c65['id']+'.zip';const _0x1f2dff=window['document'][_0x26ba2('0x68d')]('a');_0x1f2dff[_0x26ba2('0x224')](_0x26ba2('0x448'),URL['createObjectURL'](_0x6e9145)),_0x1f2dff[_0x26ba2('0x224')](_0x26ba2('0x1244'),_0x472e5a),document[_0x26ba2('0x13aa')][_0x26ba2('0x128c')](_0x1f2dff),_0x1f2dff[_0x26ba2('0x20d4')]();})[_0x521aa3('0x16df')](function(_0x53a149){const _0x50fb4d=_0x521aa3;if(_0x53a149[_0x50fb4d('0x1457')]&&_0x53a149[_0x50fb4d('0x1457')]['errors']&&_0x53a149[_0x50fb4d('0x1457')][_0x50fb4d('0x73e')]['length'])for(let _0x463cf9=0x0;_0x463cf9<_0x53a149['data'][_0x50fb4d('0x73e')][_0x50fb4d('0x1f73')];_0x463cf9+=0x1){_0x263aed[_0x50fb4d('0x1db9')]({'title':_0x53a149[_0x50fb4d('0x1457')][_0x50fb4d('0x73e')][_0x463cf9]['type'],'msg':_0x53a149['data']['errors'][_0x463cf9]['message']});}else _0x263aed['error']({'title':_0x53a149[_0x50fb4d('0x11c5')]?_0x50fb4d('0x14f7')+_0x53a149[_0x50fb4d('0x11c5')]+_0x50fb4d('0x16e4')+_0x53a149[_0x50fb4d('0x1833')]:'api.faxAccount.save','msg':_0x53a149[_0x50fb4d('0x1457')]?JSON[_0x50fb4d('0x678')](_0x53a149[_0x50fb4d('0x1457')][_0x50fb4d('0x1603')]):_0x53a149['toString']()});});}function _0x1882af(_0x30baac,_0x32ebdd){const _0x2b3ce7=_0x15a3b8,_0x280ac1=_0x44b20f[_0x2b3ce7('0x1121')]()[_0x2b3ce7('0x24d3')](_0x2b3ce7('0xd7'))[_0x2b3ce7('0x211f')](''+(_0x30baac['name']||_0x30baac['id']&&_0x49cbdd()['upperFirst'](_0x2b3ce7('0xb9a'))+_0x30baac['id']||'interaction')+''+_0x2b3ce7('0xe9f'))[_0x2b3ce7('0x2095')](_0x2b3ce7('0x1b75'))[_0x2b3ce7('0x104f')](_0x32ebdd)['ok']('OK')['cancel']('CANCEL');_0x44b20f[_0x2b3ce7('0x28e2')](_0x280ac1)[_0x2b3ce7('0x17e7')](function(){_0x19bb5c(_0x30baac);},function(){const _0x43d6ca=_0x2b3ce7;console['log'](_0x43d6ca('0x28a0'));});}function _0x3c7945(_0x4449ed){const _0x4ac066=_0x15a3b8;_0x51bbb2[_0x4ac066('0x1fcf')]=_0x4449ed||{'count':0x0,'rows':[]};for(let _0x20a8c0=0x0;_0x20a8c0<_0x51bbb2[_0x4ac066('0x1fcf')][_0x4ac066('0x2319')][_0x4ac066('0x1f73')];_0x20a8c0+=0x1){const _0x1e0760=_0x51bbb2['faxAccountInteractions'][_0x4ac066('0x2319')][_0x20a8c0];_0xa58185(_0x1e0760),_0x1e0760[_0x4ac066('0xe49')][_0x4ac066('0x2aa')]=_0xfd4568(_0x1e0760);}}function _0x5c7200(){const _0x319eae=_0x15a3b8;_0x51bbb2[_0x319eae('0x826')][_0x319eae('0xf19')]=(_0x51bbb2[_0x319eae('0x826')][_0x319eae('0x115a')]-0x1)*_0x51bbb2['query']['limit'],_0x51bbb2[_0x319eae('0x1691')]=_0x4ba3c8[_0x319eae('0xed8')][_0x319eae('0x1c53')](_0x51bbb2[_0x319eae('0x826')],_0x3c7945)[_0x319eae('0x1af5')];}function _0x7a4a91(_0x2c7494,_0x433005){const _0x202e0b=_0x15a3b8;_0x44b20f[_0x202e0b('0x28e2')]({'controller':_0x202e0b('0x13b4'),'controllerAs':'vm','templateUrl':_0x46cd84,'parent':angular[_0x202e0b('0x1ce1')](_0x322202['body']),'targetEvent':_0x2c7494,'clickOutsideToClose':!![],'onShowing':function(_0x5f393b){const _0x477cbe=_0x202e0b;_0x5f393b['vm'][_0x477cbe('0x161d')]({'id':0x1,'channel':'fax','interaction':_0x433005,'spy':!![]},_0x2d29b8[_0x477cbe('0x178c')]['vm'][_0x477cbe('0x1aeb')]);}});}function _0x19bb5c(_0x53bb46){const _0x30b7bf=_0x15a3b8;_0x4ba3c8['faxInteraction'][_0x30b7bf('0x1da6')]({'id':_0x53bb46['id']})[_0x30b7bf('0x1af5')]['then'](function(){const _0x2f9e3a=_0x30b7bf;_0x49cbdd()[_0x2f9e3a('0x5f3')](_0x51bbb2['faxAccountInteractions'][_0x2f9e3a('0x2319')],{'id':_0x53bb46['id']}),_0x51bbb2['faxAccountInteractions'][_0x2f9e3a('0x335')]-=0x1,!_0x51bbb2['faxAccountInteractions'][_0x2f9e3a('0x2319')][_0x2f9e3a('0x1f73')]&&_0x5c7200(),_0x263aed[_0x2f9e3a('0x130d')]({'title':'Interaction\x20deleted!','msg':_0x53bb46[_0x2f9e3a('0x2aa')]?_0x53bb46[_0x2f9e3a('0x2aa')]+_0x2f9e3a('0x149f'):''});})[_0x30b7bf('0x16df')](function(_0x140977){const _0x55bd9b=_0x30b7bf;if(_0x140977['data']&&_0x140977['data'][_0x55bd9b('0x73e')]&&_0x140977[_0x55bd9b('0x1457')][_0x55bd9b('0x73e')][_0x55bd9b('0x1f73')]){_0x51bbb2[_0x55bd9b('0x73e')]=_0x140977[_0x55bd9b('0x1457')][_0x55bd9b('0x73e')]||[{'message':_0x140977[_0x55bd9b('0x9b6')](),'type':'SYSTEM:GETfaxAccount'}];for(let _0x583acb=0x0;_0x583acb<_0x140977[_0x55bd9b('0x1457')][_0x55bd9b('0x73e')][_0x55bd9b('0x1f73')];_0x583acb++){_0x263aed[_0x55bd9b('0x1db9')]({'title':_0x140977[_0x55bd9b('0x1457')][_0x55bd9b('0x73e')][_0x583acb]['type'],'msg':_0x140977[_0x55bd9b('0x1457')][_0x55bd9b('0x73e')][_0x583acb][_0x55bd9b('0x1603')]});}}else _0x263aed[_0x55bd9b('0x1db9')]({'title':_0x140977[_0x55bd9b('0x11c5')]?_0x55bd9b('0x14f7')+_0x140977['status']+_0x55bd9b('0x16e4')+_0x140977['statusText']:_0x55bd9b('0xbec'),'msg':_0x140977[_0x55bd9b('0x1457')]?JSON[_0x55bd9b('0x678')](_0x140977[_0x55bd9b('0x1457')][_0x55bd9b('0x1603')]):_0x140977[_0x55bd9b('0x1603')]||_0x140977[_0x55bd9b('0x9b6')]()});});}function _0x46bc49(){const _0x54ec3c=_0x15a3b8,_0x5a30d1=angular['copy'](_0x51bbb2[_0x54ec3c('0x2130')]);return _0x51bbb2[_0x54ec3c('0x2130')]=[],_0x5a30d1;}function _0x26aa2c(_0x3e1091){const _0x5e3669=_0x15a3b8,_0x2758e0=_0x44b20f[_0x5e3669('0x1121')]()['title'](_0x5e3669('0x144e'))['htmlContent'](_0x5e3669('0xa53')+_0x51bbb2[_0x5e3669('0x2130')][_0x5e3669('0x1f73')]+'\x20selected
'+'\x20will\x20be\x20deleted.')[_0x5e3669('0x2095')](_0x5e3669('0x1d21'))['targetEvent'](_0x3e1091)['ok']('OK')[_0x5e3669('0x1d47')](_0x5e3669('0x28a0'));_0x44b20f[_0x5e3669('0x28e2')](_0x2758e0)[_0x5e3669('0x17e7')](function(){const _0x49848e=_0x5e3669;_0x51bbb2[_0x49848e('0x2130')][_0x49848e('0xccd')](function(_0x206b0c){_0x19bb5c(_0x206b0c);}),_0x51bbb2[_0x49848e('0x2130')]=[];});}function _0xa58185(_0x456e45){const _0x14338d=_0x15a3b8;_0x456e45['Contact']?(_0x456e45[_0x14338d('0x192c')]=(_0x456e45['Contact'][_0x14338d('0x1761')]||'')+'\x20'+(_0x456e45[_0x14338d('0x239b')][_0x14338d('0x8d6')]||''),_0x456e45[_0x14338d('0x1720')]=_0x456e45[_0x14338d('0x239b')][_0x14338d('0xc23')]):_0x456e45[_0x14338d('0x192c')]=_0x27d965[_0x14338d('0x1acc')](_0x14338d('0x30a'));}function _0xfd4568(_0x50d793){const _0x5da390=_0x15a3b8;if(_0x50d793['UserId'])return _0x50d793[_0x5da390('0x5e5')]===_0x51bbb2[_0x5da390('0x197c')]['id']?_0x27d965['instant'](_0x5da390('0x2422')):_0x50d793['Owner'][_0x5da390('0xea6')]+'\x20<'+_0x50d793[_0x5da390('0xe49')]['internal']+'>';return _0x27d965[_0x5da390('0x1acc')]('DASHBOARDS.NOT_ASSIGNED');}let _0x126adf=!![],_0x450324=0x1;_0x2d29b8[_0x15a3b8('0x620')](_0x15a3b8('0x4c3'),function(_0x2ef7c1,_0x14ad95){const _0x22bef4=_0x15a3b8;_0x126adf?_0x1be81d(function(){_0x126adf=![];}):(!_0x14ad95&&(_0x450324=_0x51bbb2[_0x22bef4('0x826')][_0x22bef4('0x115a')]),_0x2ef7c1!==_0x14ad95&&(_0x51bbb2['query']['page']=0x1),!_0x2ef7c1&&(_0x51bbb2['query'][_0x22bef4('0x115a')]=_0x450324),_0x5c7200());});}const _0x175ff3=_0x2437c1,_0x50707f=_0x4cf2bc['p']+_0x4376d8('0x1c05');_0x142cc1[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'api',_0x4376d8('0x108a'),'Auth',_0x4376d8('0x119'),_0x4376d8('0x383')];function _0x142cc1(_0x4579b6,_0x1a1efe,_0x10f0e2,_0x466802,_0x1f1d7d,_0x404c8c,_0x38b0c2,_0x517167,_0x1ffb7c,_0x5b4c3d,_0x12dd3a,_0x1bc92a){const _0x465ca7=_0x4376d8,_0x1ef088=this;_0x1ef088['currentUser']=_0x5b4c3d[_0x465ca7('0x2831')](),_0x1ef088['license']=_0x404c8c,_0x1ef088['setting']=_0x38b0c2,_0x1ef088[_0x465ca7('0x1572')]=_0x1ef088['setting'][_0x465ca7('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1ef088[_0x465ca7('0xaed')]=_0x1a1efe[_0x465ca7('0x14fe')]()+_0x465ca7('0x14')+_0x1a1efe[_0x465ca7('0x108')](),_0x1ef088[_0x465ca7('0x119')]=_0x12dd3a||_0x4579b6['params']['faxAccount']||{},_0x1ef088['userProfileSection']=_0x1bc92a&&_0x1bc92a[_0x465ca7('0x335')]==0x1?_0x1bc92a[_0x465ca7('0x2319')][0x0]:null,_0x1ef088[_0x465ca7('0x103e')]=_0x5b4c3d[_0x465ca7('0x17a9')](_0x1ef088[_0x465ca7('0x383')]?_0x1ef088[_0x465ca7('0x383')][_0x465ca7('0x103e')]:null),_0x1ef088[_0x465ca7('0x6ee')]={},_0x1ef088['selectedTab']=_0x4579b6[_0x465ca7('0x16fb')]['tab']||0x0,_0x1ef088[_0x465ca7('0x2794')]=_0x2f160c,_0x1ef088['agentadddialog']=_0x3aa047,_0x1ef088[_0x465ca7('0x99f')]=_0x1ffb7c['info'],_0x1ef088['gotoFaxAccounts']=_0x518322,_0x1ef088[_0x465ca7('0x1bc8')]=_0x4dac18,_0x5b4c3d[_0x465ca7('0x1ba2')](_0x465ca7('0x20bf'))?_0x517167[_0x465ca7('0x252a')][_0x465ca7('0x1c53')]({'fields':_0x465ca7('0x12d2'),'sort':_0x465ca7('0x2aa')})[_0x465ca7('0x1af5')][_0x465ca7('0x17e7')](function(_0x2b736c){const _0x2e0660=_0x465ca7;_0x1ef088[_0x2e0660('0x19cb')]=_0x2b736c[_0x2e0660('0x2319')]||[];})[_0x465ca7('0x16df')](function(_0x5a7f09){const _0x21d292=_0x465ca7;_0x1ffb7c['error']({'title':_0x5a7f09['status']?_0x21d292('0x14f7')+_0x5a7f09[_0x21d292('0x11c5')]+_0x21d292('0x16e4')+_0x5a7f09['statusText']:_0x21d292('0x130a'),'msg':_0x5a7f09['data']?JSON[_0x21d292('0x678')](_0x5a7f09[_0x21d292('0x1457')]):_0x5a7f09['toString']()});}):_0x517167[_0x465ca7('0x252a')][_0x465ca7('0x1c53')]({'fields':'id,name','sort':_0x465ca7('0x2aa')})[_0x465ca7('0x1af5')][_0x465ca7('0x17e7')](function(_0x33c148){const _0x356927=_0x465ca7;_0x1ef088['trunks']=_0x33c148[_0x356927('0x2319')]||[];})[_0x465ca7('0x17e7')](function(){const _0xb87a63=_0x465ca7;return _0x517167[_0xb87a63('0x383')][_0xb87a63('0x1c53')]({'userProfileId':_0x1ef088[_0xb87a63('0x197c')][_0xb87a63('0x1e76')],'sectionId':0x3f3})[_0xb87a63('0x1af5')];})['then'](function(_0x38d5ea){const _0x432361=_0x465ca7,_0x2c593b=_0x38d5ea&&_0x38d5ea[_0x432361('0x2319')]?_0x38d5ea[_0x432361('0x2319')][0x0]:null;if(!_0x2c593b){const _0x21be0c=[];let _0x237c2e=null;_0x1ef088[_0x432361('0x119')]&&(_0x237c2e=_0x49cbdd()[_0x432361('0xe8e')](_0x1ef088['trunks'],{'id':Number(_0x1ef088[_0x432361('0x119')][_0x432361('0x129f')])}));for(let _0x2d2f6f=0x0;_0x2d2f6f<_0x1ef088[_0x432361('0x19cb')]['length'];_0x2d2f6f++){_0x237c2e&&_0x1ef088[_0x432361('0x19cb')][_0x2d2f6f]['id']===_0x237c2e['id']&&(_0x1ef088[_0x432361('0x19cb')][_0x2d2f6f][_0x432361('0xe5c')]=![],_0x21be0c[_0x432361('0x269f')](_0x1ef088[_0x432361('0x19cb')][_0x2d2f6f]));}_0x1ef088['trunks']=_0x21be0c;}else{if(!_0x2c593b['autoAssociation'])return _0x517167[_0x432361('0x78d')][_0x432361('0x1c53')]({'sectionId':_0x2c593b['id']})[_0x432361('0x1af5')][_0x432361('0x17e7')](function(_0x1d03c2){const _0x2e4c78=_0x432361,_0x2ad01a=_0x49cbdd()['map'](_0x1d03c2[_0x2e4c78('0x2319')],function(_0x11c01e){const _0x560b43=_0x2e4c78;return _0x49cbdd()[_0x560b43('0xe8e')](_0x1ef088['trunks'],{'id':_0x11c01e[_0x560b43('0x5db')]});});let _0x1a783a=null;_0x1ef088['faxAccount']&&(_0x1a783a=_0x49cbdd()[_0x2e4c78('0xe8e')](_0x1ef088[_0x2e4c78('0x19cb')],{'id':Number(_0x1ef088[_0x2e4c78('0x119')][_0x2e4c78('0x129f')])}));if(_0x1a783a&&!_0x49cbdd()['some'](_0x2ad01a,['id',_0x1a783a['id']])){const _0x252345=_0x49cbdd()[_0x2e4c78('0xe8e')](_0x1ef088['trunks'],{'id':_0x1a783a['id']});_0x252345['canSelect']=![],_0x2ad01a['push'](_0x252345);}_0x1ef088[_0x2e4c78('0x19cb')]=_0x2ad01a;});}})[_0x465ca7('0x16df')](function(_0x5f3f3f){const _0x3c94e4=_0x465ca7;_0x1ffb7c[_0x3c94e4('0x1db9')]({'title':_0x5f3f3f[_0x3c94e4('0x11c5')]?_0x3c94e4('0x14f7')+_0x5f3f3f['status']+_0x3c94e4('0x16e4')+_0x5f3f3f[_0x3c94e4('0x1833')]:'SYSTEM:GETtrunks','msg':_0x5f3f3f[_0x3c94e4('0x1457')]?JSON[_0x3c94e4('0x678')](_0x5f3f3f[_0x3c94e4('0x1457')]):_0x5f3f3f[_0x3c94e4('0x9b6')]()});}),_0x5b4c3d[_0x465ca7('0x1ba2')](_0x465ca7('0x20bf'))?_0x517167['cmList'][_0x465ca7('0x1c53')]({'fields':_0x465ca7('0x12d2'),'sort':'name'})[_0x465ca7('0x1af5')][_0x465ca7('0x17e7')](function(_0x5b6859){const _0x5c8ce5=_0x465ca7;_0x1ef088[_0x5c8ce5('0x2504')]=_0x5b6859[_0x5c8ce5('0x2319')]||[];})[_0x465ca7('0x16df')](function(_0x473dd4){const _0x4573af=_0x465ca7;_0x1ffb7c['error']({'title':_0x473dd4[_0x4573af('0x11c5')]?_0x4573af('0x14f7')+_0x473dd4[_0x4573af('0x11c5')]+_0x4573af('0x16e4')+_0x473dd4['statusText']:'SYSTEM:GET_LISTS','msg':_0x473dd4[_0x4573af('0x1457')]?JSON[_0x4573af('0x678')](_0x473dd4['data']):_0x473dd4[_0x4573af('0x9b6')]()});}):_0x517167[_0x465ca7('0x25b')][_0x465ca7('0x1c53')]({'fields':_0x465ca7('0x12d2'),'sort':_0x465ca7('0x2aa')})['$promise'][_0x465ca7('0x17e7')](function(_0x4016be){const _0x4cfa84=_0x465ca7;_0x1ef088['lists']=_0x4016be[_0x4cfa84('0x2319')]||[];})['then'](function(){const _0x40af84=_0x465ca7;return _0x517167['userProfileSection'][_0x40af84('0x1c53')]({'userProfileId':_0x1ef088['currentUser'][_0x40af84('0x1e76')],'sectionId':0x12d})[_0x40af84('0x1af5')];})[_0x465ca7('0x17e7')](function(_0x179b1d){const _0x5d6ca8=_0x465ca7,_0x26b3ee=_0x179b1d&&_0x179b1d['rows']?_0x179b1d[_0x5d6ca8('0x2319')][0x0]:null;if(!_0x26b3ee){const _0x590b65=[];let _0x1dec2e=null;_0x1ef088[_0x5d6ca8('0x119')]&&(_0x1dec2e=_0x49cbdd()[_0x5d6ca8('0xe8e')](_0x1ef088[_0x5d6ca8('0x2504')],{'id':Number(_0x1ef088[_0x5d6ca8('0x119')][_0x5d6ca8('0x7f8')])}));for(let _0x59ba1d=0x0;_0x59ba1d<_0x1ef088[_0x5d6ca8('0x2504')][_0x5d6ca8('0x1f73')];_0x59ba1d++){_0x1dec2e&&_0x1ef088[_0x5d6ca8('0x2504')][_0x59ba1d]['id']===_0x1dec2e['id']&&(_0x1ef088[_0x5d6ca8('0x2504')][_0x59ba1d][_0x5d6ca8('0xe5c')]=![],_0x590b65['push'](_0x1ef088[_0x5d6ca8('0x2504')][_0x59ba1d]));}_0x1ef088[_0x5d6ca8('0x2504')]=_0x590b65;}else{if(!_0x26b3ee[_0x5d6ca8('0x9e3')])return _0x517167[_0x5d6ca8('0x78d')][_0x5d6ca8('0x1c53')]({'sectionId':_0x26b3ee['id']})['$promise'][_0x5d6ca8('0x17e7')](function(_0x1a7708){const _0x37ebd8=_0x5d6ca8,_0x5b29bc=_0x49cbdd()['map'](_0x1a7708['rows'],function(_0x4bb5b1){const _0x1d1388=a0_0xd29e;return _0x49cbdd()[_0x1d1388('0xe8e')](_0x1ef088[_0x1d1388('0x2504')],{'id':_0x4bb5b1[_0x1d1388('0x5db')]});});let _0x15f848=null;_0x1ef088[_0x37ebd8('0x119')]&&(_0x15f848=_0x49cbdd()[_0x37ebd8('0xe8e')](_0x1ef088['lists'],{'id':Number(_0x1ef088[_0x37ebd8('0x119')]['ListId'])}));if(_0x15f848&&!_0x49cbdd()[_0x37ebd8('0x26f8')](_0x5b29bc,['id',_0x15f848['id']])){const _0x1cd248=_0x49cbdd()[_0x37ebd8('0xe8e')](_0x1ef088[_0x37ebd8('0x2504')],{'id':_0x15f848['id']});_0x1cd248[_0x37ebd8('0xe5c')]=![],_0x5b29bc['push'](_0x1cd248);}_0x1ef088[_0x37ebd8('0x2504')]=_0x5b29bc;});}})[_0x465ca7('0x16df')](function(_0xdecee8){const _0x19fa9f=_0x465ca7;_0x1ffb7c[_0x19fa9f('0x1db9')]({'title':_0xdecee8['status']?_0x19fa9f('0x14f7')+_0xdecee8['status']+_0x19fa9f('0x16e4')+_0xdecee8[_0x19fa9f('0x1833')]:_0x19fa9f('0x1630'),'msg':_0xdecee8[_0x19fa9f('0x1457')]?JSON[_0x19fa9f('0x678')](_0xdecee8[_0x19fa9f('0x1457')]):_0xdecee8[_0x19fa9f('0x9b6')]()});}),_0x5b4c3d[_0x465ca7('0x1ba2')](_0x465ca7('0x20bf'))?_0x517167[_0x465ca7('0x267a')][_0x465ca7('0x1c53')]({'fields':_0x465ca7('0x90c'),'sort':_0x465ca7('0x2aa'),'nolimit':'true'})[_0x465ca7('0x1af5')][_0x465ca7('0x17e7')](function(_0x3a64c3){const _0x3a5323=_0x465ca7;_0x1ef088['pauses']=_0x3a64c3[_0x3a5323('0x2319')]||[];})[_0x465ca7('0x16df')](function(_0x401643){const _0x3e680d=_0x465ca7;_0x1ffb7c[_0x3e680d('0x1db9')]({'title':_0x401643[_0x3e680d('0x11c5')]?_0x3e680d('0x14f7')+_0x401643[_0x3e680d('0x11c5')]+_0x3e680d('0x16e4')+_0x401643[_0x3e680d('0x1833')]:_0x3e680d('0xe43'),'msg':_0x401643[_0x3e680d('0x1457')]?JSON[_0x3e680d('0x678')](_0x401643[_0x3e680d('0x1457')]):_0x401643[_0x3e680d('0x9b6')]()});}):_0x517167[_0x465ca7('0x267a')][_0x465ca7('0x1c53')]({'fields':_0x465ca7('0x90c'),'sort':_0x465ca7('0x2aa'),'nolimit':'true'})[_0x465ca7('0x1af5')][_0x465ca7('0x17e7')](function(_0x5c8ae){const _0x26181c=_0x465ca7;_0x1ef088[_0x26181c('0x1492')]=_0x5c8ae[_0x26181c('0x2319')]||[];})[_0x465ca7('0x17e7')](function(){const _0x1d0162=_0x465ca7;return _0x517167['userProfileSection'][_0x1d0162('0x1c53')]({'userProfileId':_0x1ef088[_0x1d0162('0x197c')][_0x1d0162('0x1e76')],'sectionId':0x3ed})['$promise'];})[_0x465ca7('0x17e7')](function(_0x2e980c){const _0xe11e0e=_0x465ca7,_0x5033d1=_0x2e980c&&_0x2e980c[_0xe11e0e('0x2319')]?_0x2e980c[_0xe11e0e('0x2319')][0x0]:null;if(!_0x5033d1)_0x1ef088[_0xe11e0e('0x1492')]=[];else{if(!_0x5033d1[_0xe11e0e('0x9e3')])return _0x517167[_0xe11e0e('0x78d')][_0xe11e0e('0x1c53')]({'sectionId':_0x5033d1['id']})['$promise']['then'](function(_0x1ac902){const _0x3cd964=_0xe11e0e,_0x33f3b5=_0x49cbdd()[_0x3cd964('0x787')](_0x1ac902[_0x3cd964('0x2319')],function(_0x8153ef){const _0x41ac2a=_0x3cd964;return _0x49cbdd()[_0x41ac2a('0xe8e')](_0x1ef088['pauses'],{'id':_0x8153ef[_0x41ac2a('0x5db')]});});_0x1ef088[_0x3cd964('0x1492')][_0x3cd964('0xccd')](function(_0x2bc343){const _0xb82d71=_0x3cd964;!_0x49cbdd()[_0xb82d71('0x26f8')](_0x33f3b5,['id',_0x2bc343['id']])&&(_0x2bc343['canSelect']=![]),_0x33f3b5[_0xb82d71('0x269f')](_0x2bc343);}),_0x1ef088[_0x3cd964('0x1492')]=_0x33f3b5;});}})['catch'](function(_0x4f7709){const _0x362062=_0x465ca7;_0x1ffb7c[_0x362062('0x1db9')]({'title':_0x4f7709[_0x362062('0x11c5')]?'API:'+_0x4f7709[_0x362062('0x11c5')]+_0x362062('0x16e4')+_0x4f7709[_0x362062('0x1833')]:_0x362062('0x1fae'),'msg':_0x4f7709[_0x362062('0x1457')]?JSON[_0x362062('0x678')](_0x4f7709[_0x362062('0x1457')]):_0x4f7709['toString']()});});function _0x2f160c(){const _0x2c5f6d=_0x465ca7;if(_0x5b4c3d['hasRole'](_0x2c5f6d('0x20bf')))_0x4579b6['go'](_0x2c5f6d('0x26e1'),{});else return _0x517167['userProfileSection']['get']({'userProfileId':_0x5b4c3d[_0x2c5f6d('0x2831')]()[_0x2c5f6d('0x1e76')],'sectionId':0x38e})[_0x2c5f6d('0x1af5')][_0x2c5f6d('0x17e7')](function(_0x1e3cf9){const _0x4adca7=_0x2c5f6d,_0x75679c=_0x1e3cf9&&_0x1e3cf9[_0x4adca7('0x2319')]?_0x1e3cf9[_0x4adca7('0x2319')][0x0]:null;_0x75679c&&_0x75679c[_0x4adca7('0x1cd3')]?_0x4579b6['go'](_0x4adca7('0x26e1'),{}):_0x1ffb7c[_0x4adca7('0x1178')]({'title':_0x1f1d7d[_0x4adca7('0x1acc')](_0x4adca7('0x286e')),'msg':_0x1f1d7d['instant']('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x2c5f6d('0x16df')](function(_0x574536){const _0x419af8=_0x2c5f6d;_0x1ffb7c[_0x419af8('0x1db9')]({'title':_0x574536[_0x419af8('0x11c5')]?'API:'+_0x574536[_0x419af8('0x11c5')]+_0x419af8('0x16e4')+_0x574536[_0x419af8('0x1833')]:'USERPROFILE:GET_SECTION','msg':_0x574536[_0x419af8('0x11c5')]?JSON[_0x419af8('0x678')](_0x574536[_0x419af8('0x1457')]):_0x574536[_0x419af8('0x9b6')]()});});}function _0x3aa047(_0x16e73f,_0x2c5378){const _0x4f4fcf=_0x465ca7;_0x10f0e2[_0x4f4fcf('0x28e2')]({'controller':'FaxAccountagentaddController','controllerAs':'vm','templateUrl':_0x50707f,'parent':angular['element'](_0x466802[_0x4f4fcf('0x13aa')]),'targetEvent':_0x2c5378,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x16e73f,'faxAccounts':_0x1ef088[_0x4f4fcf('0xec4')]?_0x1ef088[_0x4f4fcf('0xec4')]['rows']:[],'crudPermissions':_0x1ef088['crudPermissions'],'realtime':![]}});}function _0x518322(){_0x4579b6['go']('app.fax.faxAccounts',{},{'reload':'app.fax.faxAccounts'});}function _0x4dac18(){const _0x29ff92=_0x465ca7;_0x517167[_0x29ff92('0x119')][_0x29ff92('0x20c5')](_0x1ef088['faxAccount'])['$promise'][_0x29ff92('0x17e7')](function(){const _0xdd98f9=_0x29ff92;_0x1ffb7c[_0xdd98f9('0x130d')]({'title':_0xdd98f9('0x1c7c'),'msg':_0x1ef088[_0xdd98f9('0x119')][_0xdd98f9('0x2aa')]?_0x1ef088[_0xdd98f9('0x119')]['name']+_0xdd98f9('0x12b0'):''});})[_0x29ff92('0x16df')](function(_0x50b93e){const _0xa8fd4=_0x29ff92;_0x1ffb7c[_0xa8fd4('0x1db9')]({'title':_0x50b93e[_0xa8fd4('0x11c5')]?_0xa8fd4('0x14f7')+_0x50b93e['status']+'\x20-\x20'+_0x50b93e['statusText']:_0xa8fd4('0xbec'),'msg':_0x50b93e[_0xa8fd4('0x1457')]?JSON[_0xa8fd4('0x678')](_0x50b93e[_0xa8fd4('0x1457')]):_0x50b93e[_0xa8fd4('0x9b6')]()});});}}const _0x3f532e=_0x142cc1,_0x114081=_0x4cf2bc['p']+'src/js/modules/main/apps/fax/views/faxAccounts/create/dialog.html/dialog.html';_0x42f971['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state','$mdSidenav','$mdDialog','$document','$timeout',_0x4376d8('0x28da'),_0x4376d8('0xec4'),'userProfile',_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x42f971(_0x14904a,_0xf82738,_0x2d8e51,_0x5578d4,_0x524377,_0x49a188,_0x6b6b55,_0x10f710,_0x178aab,_0x12da3b,_0x4edf8c,_0x77e74e,_0x5c8314,_0x4fa404,_0x4a6e27,_0x2de45b,_0x69fc38){const _0x390def=_0x4376d8,_0x263182=this;_0x263182[_0x390def('0x1d11')]=_0x2de45b,_0x263182[_0x390def('0x1aeb')]=_0x69fc38,_0x263182['currentUser']=_0x4a6e27[_0x390def('0x2831')](),_0x263182[_0x390def('0xec4')]=_0x178aab||{'count':0x0,'rows':[]},_0x263182[_0x390def('0xdeb')]=_0x12da3b,_0x263182[_0x390def('0x383')]=_0x4edf8c&&_0x4edf8c['count']==0x1?_0x4edf8c[_0x390def('0x2319')][0x0]:null,_0x263182[_0x390def('0x103e')]=_0x4a6e27[_0x390def('0x17a9')](_0x263182['userProfileSection']?_0x263182[_0x390def('0x383')][_0x390def('0x103e')]:null),_0x263182[_0x390def('0x23c3')]=_0x390def('0xec4'),_0x263182[_0x390def('0x26a1')]='',_0x263182['listOrderAsc']=null,_0x263182['selectedFaxAccounts']=[],_0x263182[_0x390def('0x826')]={'fields':_0x390def('0x1b0'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x263182['arrayecm']=_0x49cbdd()[_0x390def('0x8de')]([{'option':_0x390def('0x128f'),'value':_0x390def('0xd7b')},{'option':'no','value':_0x390def('0x2471')}],function(_0x29dd91){const _0x3f7fa5=_0x390def;return _0x49cbdd()['replace'](_0x29dd91[_0x3f7fa5('0x175b')],new RegExp('\x27','g'),'');}),_0x263182['arrayminrate']=_0x49cbdd()[_0x390def('0x8de')]([{'option':'2400','value':_0x390def('0x1875')},{'option':_0x390def('0x1aea'),'value':_0x390def('0xe62')},{'option':_0x390def('0x28a8'),'value':_0x390def('0x1b8f')},{'option':_0x390def('0x1c78'),'value':_0x390def('0x2425')},{'option':'12000','value':_0x390def('0x97f')},{'option':_0x390def('0x5c3'),'value':'\x2714400\x27'}],function(_0x113b79){const _0x3f5ba1=_0x390def;return _0x49cbdd()[_0x3f5ba1('0x737')](_0x113b79[_0x3f5ba1('0x175b')],new RegExp('\x27','g'),'');}),_0x263182[_0x390def('0x78f')]=_0x49cbdd()['keyBy']([{'option':_0x390def('0x7de'),'value':_0x390def('0x1875')},{'option':_0x390def('0x1aea'),'value':_0x390def('0xe62')},{'option':'7200','value':_0x390def('0x1b8f')},{'option':_0x390def('0x1c78'),'value':'\x279600\x27'},{'option':_0x390def('0x28d3'),'value':_0x390def('0x97f')},{'option':_0x390def('0x5c3'),'value':'\x2714400\x27'}],function(_0x46751b){const _0x173dbf=_0x390def;return _0x49cbdd()['replace'](_0x46751b[_0x173dbf('0x175b')],new RegExp('\x27','g'),'');}),_0x263182[_0x390def('0x21f3')]=_0x49cbdd()[_0x390def('0x8de')]([{'option':_0x390def('0xbf1'),'value':_0x390def('0x38e')},{'option':_0x390def('0xca2'),'value':_0x390def('0xc0f')},{'option':_0x390def('0xb5e'),'value':_0x390def('0x13bc')},{'option':_0x390def('0x252f'),'value':_0x390def('0x250f')}],function(_0x212ba9){const _0x35b6d1=_0x390def;return _0x49cbdd()[_0x35b6d1('0x737')](_0x212ba9['value'],new RegExp('\x27','g'),'');}),_0x263182[_0x390def('0xcd4')]=_0x44a80a,_0x263182[_0x390def('0x1634')]=_0x44e7a4,_0x263182['gotorealtimegoto']=_0x573a35,_0x263182[_0x390def('0x2359')]=_0x1a7e8d,_0x263182[_0x390def('0xbf4')]=_0x249fbf,_0x263182[_0x390def('0x130d')]=_0x1f2ccf,_0x263182['getFaxAccounts']=_0x268407,_0x263182[_0x390def('0xfa0')]=_0x56b077,_0x263182[_0x390def('0x387')]=_0x8c3ff3,_0x263182['exportSelectedFaxAccounts']=_0x5ca2b4,_0x263182[_0x390def('0x704')]=_0x1fb1a0,_0x263182[_0x390def('0x19b0')]=_0x487264,_0x263182[_0x390def('0x20b0')]=_0x3a223b,_0x4a6e27[_0x390def('0x1ba2')](_0x390def('0x20bf'))?_0x77e74e[_0x390def('0x252a')][_0x390def('0x1c53')]({'fields':_0x390def('0x12d2'),'sort':_0x390def('0x2aa')})[_0x390def('0x1af5')][_0x390def('0x17e7')](function(_0x1105ea){const _0x56210e=_0x390def;_0x263182[_0x56210e('0x19cb')]=_0x1105ea[_0x56210e('0x2319')]||[];})['catch'](function(_0xd6f682){const _0x232674=_0x390def;_0x4fa404[_0x232674('0x1db9')]({'title':_0xd6f682['status']?_0x232674('0x14f7')+_0xd6f682[_0x232674('0x11c5')]+_0x232674('0x16e4')+_0xd6f682[_0x232674('0x1833')]:'SYSTEM:GET_TRUNKS','msg':_0xd6f682[_0x232674('0x1457')]?JSON['stringify'](_0xd6f682[_0x232674('0x1457')]):_0xd6f682[_0x232674('0x9b6')]()});}):_0x77e74e['trunk'][_0x390def('0x1c53')]({'fields':_0x390def('0x12d2'),'sort':_0x390def('0x2aa')})['$promise'][_0x390def('0x17e7')](function(_0x395b27){const _0x4f6c57=_0x390def;_0x263182[_0x4f6c57('0x19cb')]=_0x395b27['rows']||[];})[_0x390def('0x17e7')](function(){const _0x330e5f=_0x390def;return _0x77e74e[_0x330e5f('0x383')][_0x330e5f('0x1c53')]({'userProfileId':_0x263182['currentUser'][_0x330e5f('0x1e76')],'sectionId':0x3f3})[_0x330e5f('0x1af5')];})[_0x390def('0x17e7')](function(_0x56c5d2){const _0x33893d=_0x390def,_0x172825=_0x56c5d2&&_0x56c5d2['rows']?_0x56c5d2[_0x33893d('0x2319')][0x0]:null;if(!_0x172825){const _0x534e1d=[],_0x50bb03=[];_0x263182['faxAccounts'][_0x33893d('0x2319')][_0x33893d('0xccd')](function(_0x40c779){const _0x41d2c1=_0x33893d,_0x24c2da=_0x49cbdd()[_0x41d2c1('0xe8e')](_0x263182[_0x41d2c1('0x19cb')],{'id':Number(_0x40c779[_0x41d2c1('0x129f')])});_0x50bb03['push'](_0x24c2da);});for(let _0x5d0aa3=0x0;_0x5d0aa3<_0x263182[_0x33893d('0x19cb')][_0x33893d('0x1f73')];_0x5d0aa3++){const _0x4a62d3=_0x49cbdd()[_0x33893d('0x26f8')](_0x50bb03,{'id':_0x263182[_0x33893d('0x19cb')][_0x5d0aa3]['id']});_0x4a62d3&&(_0x263182[_0x33893d('0x19cb')][_0x5d0aa3]['canSelect']=![],_0x534e1d[_0x33893d('0x269f')](_0x263182['trunks'][_0x5d0aa3]));}_0x263182[_0x33893d('0x19cb')]=_0x534e1d;}else{if(!_0x172825['autoAssociation'])return _0x77e74e[_0x33893d('0x78d')][_0x33893d('0x1c53')]({'sectionId':_0x172825['id']})[_0x33893d('0x1af5')][_0x33893d('0x17e7')](function(_0x1f1857){const _0x3ea14e=_0x33893d,_0x34d0c8=_0x49cbdd()[_0x3ea14e('0x787')](_0x1f1857[_0x3ea14e('0x2319')],function(_0x1e65c6){const _0x432380=_0x3ea14e;return _0x49cbdd()['find'](_0x263182[_0x432380('0x19cb')],{'id':_0x1e65c6[_0x432380('0x5db')]});});let _0x50b82b=null;_0x50b82b=[],_0x263182[_0x3ea14e('0xec4')][_0x3ea14e('0x2319')][_0x3ea14e('0xccd')](function(_0x3aad1d){const _0x36dc5b=_0x3ea14e,_0x234a26=_0x49cbdd()[_0x36dc5b('0xe8e')](_0x263182[_0x36dc5b('0x19cb')],{'id':Number(_0x3aad1d['TrunkId'])});_0x50b82b['push'](_0x234a26);}),!_0x49cbdd()[_0x3ea14e('0x109a')](_0x50b82b)&&_0x50b82b[_0x3ea14e('0xccd')](function(_0x478d40){const _0x373832=_0x3ea14e;if(!_0x49cbdd()['some'](_0x34d0c8,['id',_0x478d40['id']])){const _0x49a212=_0x49cbdd()[_0x373832('0xe8e')](_0x263182[_0x373832('0x19cb')],{'id':_0x478d40['id']});_0x49a212[_0x373832('0xe5c')]=![],_0x34d0c8[_0x373832('0x269f')](_0x49a212);}}),_0x263182[_0x3ea14e('0x19cb')]=_0x34d0c8;});}})[_0x390def('0x16df')](function(_0x4f544b){const _0x351ddc=_0x390def;_0x4fa404[_0x351ddc('0x1db9')]({'title':_0x4f544b[_0x351ddc('0x11c5')]?_0x351ddc('0x14f7')+_0x4f544b[_0x351ddc('0x11c5')]+_0x351ddc('0x16e4')+_0x4f544b[_0x351ddc('0x1833')]:_0x351ddc('0x2825'),'msg':_0x4f544b[_0x351ddc('0x1457')]?JSON['stringify'](_0x4f544b[_0x351ddc('0x1457')]):_0x4f544b[_0x351ddc('0x9b6')]()});}),_0x4a6e27[_0x390def('0x1ba2')](_0x390def('0x20bf'))?_0x77e74e['cmList'][_0x390def('0x1c53')]({'fields':_0x390def('0x12d2'),'sort':_0x390def('0x2aa')})[_0x390def('0x1af5')][_0x390def('0x17e7')](function(_0x5c3970){const _0x25eb43=_0x390def;_0x263182[_0x25eb43('0x2504')]=_0x5c3970['rows']||[];})[_0x390def('0x16df')](function(_0x57087b){const _0x181475=_0x390def;_0x4fa404['error']({'title':_0x57087b[_0x181475('0x11c5')]?_0x181475('0x14f7')+_0x57087b['status']+_0x181475('0x16e4')+_0x57087b[_0x181475('0x1833')]:'SYSTEM:GET_LISTS','msg':_0x57087b[_0x181475('0x1457')]?JSON[_0x181475('0x678')](_0x57087b[_0x181475('0x1457')]):_0x57087b[_0x181475('0x9b6')]()});}):_0x77e74e[_0x390def('0x25b')][_0x390def('0x1c53')]({'fields':'id,name','sort':_0x390def('0x2aa')})[_0x390def('0x1af5')]['then'](function(_0x3a0569){const _0x5d3a33=_0x390def;_0x263182[_0x5d3a33('0x2504')]=_0x3a0569[_0x5d3a33('0x2319')]||[];})['then'](function(){const _0x104f69=_0x390def;return _0x77e74e[_0x104f69('0x383')][_0x104f69('0x1c53')]({'userProfileId':_0x263182[_0x104f69('0x197c')][_0x104f69('0x1e76')],'sectionId':0x12d})[_0x104f69('0x1af5')];})[_0x390def('0x17e7')](function(_0x1d590b){const _0x176766=_0x390def,_0x489f3d=_0x1d590b&&_0x1d590b['rows']?_0x1d590b[_0x176766('0x2319')][0x0]:null;if(!_0x489f3d){const _0x32b417=[];let _0x17a523=null;_0x263182['faxAccount']&&(_0x17a523=_0x49cbdd()['find'](_0x263182[_0x176766('0x2504')],{'id':Number(_0x263182[_0x176766('0x119')][_0x176766('0x7f8')])}));for(let _0x1a616c=0x0;_0x1a616c<_0x263182[_0x176766('0x2504')][_0x176766('0x1f73')];_0x1a616c++){_0x17a523&&_0x263182['lists'][_0x1a616c]['id']===_0x17a523['id']&&(_0x263182[_0x176766('0x2504')][_0x1a616c][_0x176766('0xe5c')]=![],_0x32b417[_0x176766('0x269f')](_0x263182[_0x176766('0x2504')][_0x1a616c]));}_0x263182['lists']=_0x32b417;}else{if(!_0x489f3d[_0x176766('0x9e3')])return _0x77e74e[_0x176766('0x78d')][_0x176766('0x1c53')]({'sectionId':_0x489f3d['id']})[_0x176766('0x1af5')][_0x176766('0x17e7')](function(_0x38673f){const _0x243ac5=_0x176766,_0xac0bb9=_0x49cbdd()['map'](_0x38673f['rows'],function(_0x561f20){return _0x49cbdd()['find'](_0x263182['lists'],{'id':_0x561f20['resourceId']});});let _0x1f556b=null;_0x263182[_0x243ac5('0x119')]&&(_0x1f556b=_0x49cbdd()[_0x243ac5('0xe8e')](_0x263182[_0x243ac5('0x2504')],{'id':Number(_0x263182[_0x243ac5('0x119')]['ListId'])}));if(_0x1f556b&&!_0x49cbdd()['some'](_0xac0bb9,['id',_0x1f556b['id']])){const _0x794dd=_0x49cbdd()['find'](_0x263182[_0x243ac5('0x2504')],{'id':_0x1f556b['id']});_0x794dd['canSelect']=![],_0xac0bb9[_0x243ac5('0x269f')](_0x794dd);}_0x263182[_0x243ac5('0x2504')]=_0xac0bb9;});}})[_0x390def('0x16df')](function(_0x4cd18f){const _0x530c81=_0x390def;_0x4fa404[_0x530c81('0x1db9')]({'title':_0x4cd18f['status']?'API:'+_0x4cd18f[_0x530c81('0x11c5')]+_0x530c81('0x16e4')+_0x4cd18f[_0x530c81('0x1833')]:_0x530c81('0x1630'),'msg':_0x4cd18f[_0x530c81('0x1457')]?JSON['stringify'](_0x4cd18f[_0x530c81('0x1457')]):_0x4cd18f[_0x530c81('0x9b6')]()});});function _0x44a80a(_0x2f357c){const _0x582ee4=_0x390def;_0x2d8e51['go'](_0x582ee4('0x11cb'),{'id':_0x2f357c['id'],'faxAccount':_0x2f357c,'crudPermissions':_0x263182[_0x582ee4('0x103e')]});}function _0x44e7a4(_0x438acf){const _0x319264=_0x390def;_0x2d8e51['go'](_0x319264('0x11cb'),{'id':_0x438acf['id'],'tab':0x5});}function _0x573a35(){const _0x54123b=_0x390def;if(_0x4a6e27[_0x54123b('0x1ba2')](_0x54123b('0x20bf')))_0x2d8e51['go'](_0x54123b('0x26e1'),{});else return _0x77e74e[_0x54123b('0x383')][_0x54123b('0x1c53')]({'userProfileId':_0x4a6e27[_0x54123b('0x2831')]()[_0x54123b('0x1e76')],'sectionId':0x38e})[_0x54123b('0x1af5')][_0x54123b('0x17e7')](function(_0xb4533c){const _0x21f2af=_0x54123b,_0x2bab41=_0xb4533c&&_0xb4533c['rows']?_0xb4533c[_0x21f2af('0x2319')][0x0]:null;_0x2bab41&&_0x2bab41['enabled']?_0x2d8e51['go'](_0x21f2af('0x26e1'),{}):_0x4fa404['info']({'title':_0x10f710[_0x21f2af('0x1acc')](_0x21f2af('0x286e')),'msg':_0x10f710[_0x21f2af('0x1acc')](_0x21f2af('0x1169'))});})[_0x54123b('0x16df')](function(_0x46f3d9){const _0x3e1233=_0x54123b;_0x4fa404[_0x3e1233('0x1db9')]({'title':_0x46f3d9['status']?_0x3e1233('0x14f7')+_0x46f3d9['status']+_0x3e1233('0x16e4')+_0x46f3d9[_0x3e1233('0x1833')]:_0x3e1233('0x338'),'msg':_0x46f3d9[_0x3e1233('0x11c5')]?JSON[_0x3e1233('0x678')](_0x46f3d9['data']):_0x46f3d9['toString']()});});}function _0x1a7e8d(_0x10e93b,_0x18ad7b){const _0x305da1=_0x390def;_0x524377[_0x305da1('0x28e2')]({'controller':'FaxAccountagentaddController','controllerAs':'vm','templateUrl':_0x50707f,'parent':angular[_0x305da1('0x1ce1')](_0x49a188[_0x305da1('0x13aa')]),'targetEvent':_0x18ad7b,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x10e93b,'faxAccounts':_0x263182[_0x305da1('0xec4')]?_0x263182['faxAccounts'][_0x305da1('0x2319')]:[],'crudPermissions':_0x263182[_0x305da1('0x103e')],'realtime':![]}});}function _0x249fbf(_0x2c3c71,_0x222c69){const _0x568050=_0x390def,_0x98684a=_0x524377[_0x568050('0x1121')]()[_0x568050('0x24d3')](_0x568050('0x5e1')+_0x49cbdd()['startCase'](_0x568050('0x119'))+'?')[_0x568050('0x211f')](_0x568050('0xa53')+(_0x2c3c71[_0x568050('0x2aa')]||'faxAccount')+_0x568050('0x1d23')+_0x568050('0xe9f'))['ariaLabel']('delete\x20faxAccount')[_0x568050('0x104f')](_0x222c69)['ok']('OK')[_0x568050('0x1d47')](_0x568050('0x28a0'));_0x524377[_0x568050('0x28e2')](_0x98684a)[_0x568050('0x17e7')](function(){_0x8c3ff3(_0x2c3c71);},function(){const _0x51a29e=_0x568050;console[_0x51a29e('0x1d63')](_0x51a29e('0x28a0'));});}let _0x606d31=!![],_0x13cc88=0x1;_0x14904a['$watch'](_0x390def('0x3ed'),function(_0x34c3f1,_0x38d81f){const _0x345dfb=_0x390def;_0x606d31?_0x6b6b55(function(){_0x606d31=![];}):(!_0x38d81f&&(_0x13cc88=_0x263182[_0x345dfb('0x826')][_0x345dfb('0x115a')]),_0x34c3f1!==_0x38d81f&&(_0x263182[_0x345dfb('0x826')][_0x345dfb('0x115a')]=0x1),!_0x34c3f1&&(_0x263182[_0x345dfb('0x826')][_0x345dfb('0x115a')]=_0x13cc88),_0x263182[_0x345dfb('0x17d7')]());});function _0x1f2ccf(_0x341f03){const _0x18d991=_0x390def;_0x263182[_0x18d991('0xec4')]=_0x341f03||{'count':0x0,'rows':[]};}function _0x268407(){const _0x1f4097=_0x390def;_0x263182[_0x1f4097('0x826')][_0x1f4097('0xf19')]=(_0x263182[_0x1f4097('0x826')][_0x1f4097('0x115a')]-0x1)*_0x263182[_0x1f4097('0x826')][_0x1f4097('0x193b')],_0x4a6e27['hasRole'](_0x1f4097('0x20bf'))?_0x263182['promise']=_0x77e74e[_0x1f4097('0x119')]['get'](_0x263182[_0x1f4097('0x826')],_0x1f2ccf)[_0x1f4097('0x1af5')]:(_0x263182[_0x1f4097('0x826')]['id']=_0x263182[_0x1f4097('0xdeb')]['id'],_0x263182[_0x1f4097('0x826')][_0x1f4097('0x16f8')]=_0x1f4097('0xeca'),_0x263182[_0x1f4097('0x1691')]=_0x77e74e['userProfile'][_0x1f4097('0x2447')](_0x263182[_0x1f4097('0x826')],_0x1f2ccf)['$promise']);}function _0x56b077(_0x236883,_0x492d97){const _0x4524a7=_0x390def;_0x524377[_0x4524a7('0x28e2')]({'controller':'CreateOrEditFaxAccountDialogController','controllerAs':'vm','templateUrl':_0x114081,'parent':angular[_0x4524a7('0x1ce1')](_0x49a188[_0x4524a7('0x13aa')]),'targetEvent':_0x236883,'clickOutsideToClose':!![],'locals':{'faxAccount':_0x492d97,'faxAccounts':_0x263182['faxAccounts'][_0x4524a7('0x2319')],'license':_0x263182['license'],'setting':_0x263182[_0x4524a7('0x1aeb')],'crudPermissions':_0x263182['crudPermissions']}});}function _0x8c3ff3(_0xfec7da){const _0x4e65c0=_0x390def;_0x77e74e[_0x4e65c0('0x119')]['delete']({'id':_0xfec7da['id']})[_0x4e65c0('0x1af5')][_0x4e65c0('0x17e7')](function(){const _0x3517d0=_0x4e65c0;_0x49cbdd()[_0x3517d0('0x5f3')](_0x263182[_0x3517d0('0xec4')][_0x3517d0('0x2319')],{'id':_0xfec7da['id']}),_0x263182[_0x3517d0('0xec4')][_0x3517d0('0x335')]-=0x1,!_0x263182['faxAccounts'][_0x3517d0('0x2319')]['length']&&_0x263182[_0x3517d0('0x17d7')](),_0x4fa404[_0x3517d0('0x130d')]({'title':_0x49cbdd()[_0x3517d0('0x1c98')]('FaxAccount')+_0x3517d0('0x2673'),'msg':_0xfec7da[_0x3517d0('0x2aa')]?_0xfec7da[_0x3517d0('0x2aa')]+_0x3517d0('0x149f'):''});})['catch'](function(_0x3fc2da){const _0x27dfcf=_0x4e65c0;if(_0x3fc2da[_0x27dfcf('0x1457')]&&_0x3fc2da[_0x27dfcf('0x1457')][_0x27dfcf('0x73e')]&&_0x3fc2da[_0x27dfcf('0x1457')][_0x27dfcf('0x73e')][_0x27dfcf('0x1f73')]){_0x263182[_0x27dfcf('0x73e')]=_0x3fc2da[_0x27dfcf('0x1457')]['errors']||[{'message':_0x3fc2da[_0x27dfcf('0x9b6')](),'type':_0x27dfcf('0xec1')}];for(let _0x4e124d=0x0;_0x4e124d<_0x3fc2da[_0x27dfcf('0x1457')][_0x27dfcf('0x73e')][_0x27dfcf('0x1f73')];_0x4e124d++){_0x4fa404['error']({'title':_0x3fc2da['data'][_0x27dfcf('0x73e')][_0x4e124d][_0x27dfcf('0x412')],'msg':_0x3fc2da['data'][_0x27dfcf('0x73e')][_0x4e124d]['message']});}}else _0x4fa404[_0x27dfcf('0x1db9')]({'title':_0x3fc2da['status']?_0x27dfcf('0x14f7')+_0x3fc2da[_0x27dfcf('0x11c5')]+_0x27dfcf('0x16e4')+_0x3fc2da[_0x27dfcf('0x1833')]:_0x27dfcf('0xec1'),'msg':_0x3fc2da[_0x27dfcf('0x1457')]?JSON[_0x27dfcf('0x678')](_0x3fc2da['data'][_0x27dfcf('0x1603')]):_0x3fc2da[_0x27dfcf('0x1603')]||_0x3fc2da[_0x27dfcf('0x9b6')]()});});}function _0x5ca2b4(){const _0x3d179a=_0x390def,_0x135db6=angular[_0x3d179a('0x14e5')](_0x263182[_0x3d179a('0x248b')]);return _0x263182[_0x3d179a('0x248b')]=[],_0x135db6;}function _0x1fb1a0(_0x3829df){const _0x5a3e26=_0x390def,_0x3fb5cd=_0x524377[_0x5a3e26('0x1121')]()[_0x5a3e26('0x24d3')](_0x5a3e26('0x1d5f'))[_0x5a3e26('0x211f')](_0x5a3e26('0xa53')+_0x263182[_0x5a3e26('0x248b')]['length']+'\x20selected
'+_0x5a3e26('0xe9f'))[_0x5a3e26('0x2095')](_0x5a3e26('0x3cf'))['targetEvent'](_0x3829df)['ok']('OK')[_0x5a3e26('0x1d47')](_0x5a3e26('0x28a0'));_0x524377[_0x5a3e26('0x28e2')](_0x3fb5cd)['then'](function(){const _0x36901b=_0x5a3e26;_0x263182[_0x36901b('0x248b')][_0x36901b('0xccd')](function(_0x3df55a){_0x8c3ff3(_0x3df55a);}),_0x263182[_0x36901b('0x248b')]=[];});}function _0x487264(){const _0x27f69b=_0x390def;_0x263182[_0x27f69b('0x248b')]=[];}function _0x3a223b(){const _0x4694b2=_0x390def;_0x263182[_0x4694b2('0x248b')]=_0x263182[_0x4694b2('0xec4')][_0x4694b2('0x2319')];}}const _0x32eb30=_0x42f971;_0x162a18['$inject']=[_0x4376d8('0x668'),'$state','$location','$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x1b01'),'faxQueue',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x162a18(_0x59c3fc,_0x4865f9,_0x43101c,_0x40d806,_0x3edfaf,_0x11eb35,_0x5d1780,_0xdc6b83,_0x19c6a2,_0x4b6360,_0x4843ff,_0x58a98e,_0x2ae955,_0x1d0968){const _0x11ab3d=_0x4376d8,_0x314b7a=this;_0x314b7a[_0x11ab3d('0x197c')]=_0x4843ff[_0x11ab3d('0x2831')](),_0x314b7a[_0x11ab3d('0x73e')]=[],_0x314b7a[_0x11ab3d('0x1aeb')]=_0x2ae955,_0x314b7a[_0x11ab3d('0x1d11')]=_0x58a98e,_0x314b7a['crudPermissions']=_0x1d0968,_0x314b7a['hasModulePermissions']={},_0x314b7a[_0x11ab3d('0x1572')]=_0x314b7a[_0x11ab3d('0x1aeb')]&&_0x314b7a['setting'][_0x11ab3d('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x314b7a[_0x11ab3d('0x24d3')]=_0x11ab3d('0x5d1'),_0x314b7a['faxQueue']=angular[_0x11ab3d('0x14e5')](_0x19c6a2),_0x314b7a[_0x11ab3d('0x1b01')]=_0xdc6b83,_0x314b7a['newFaxQueue']=![];!_0x314b7a[_0x11ab3d('0x384')]&&(_0x314b7a['faxQueue']={'strategy':_0x11ab3d('0x928'),'timeout':0xa},_0x314b7a[_0x11ab3d('0x24d3')]=_0x11ab3d('0x187a'),_0x314b7a[_0x11ab3d('0x1c8b')]=!![]);_0x314b7a[_0x11ab3d('0x5da')]=_0x16c119,_0x314b7a[_0x11ab3d('0x1765')]=_0x54ff32,_0x314b7a[_0x11ab3d('0x1ff9')]=_0xf0b323,_0x314b7a[_0x11ab3d('0x1300')]=_0x48a772,_0x314b7a[_0x11ab3d('0x136e')]=_0x2a58a3;function _0x16c119(){const _0x2fa6e0=_0x11ab3d;_0x314b7a[_0x2fa6e0('0x73e')]=[],_0x4b6360[_0x2fa6e0('0x384')][_0x2fa6e0('0x2439')](_0x314b7a[_0x2fa6e0('0x384')])[_0x2fa6e0('0x1af5')]['then'](function(_0x1b6e30){const _0x4553bf=_0x2fa6e0;_0x314b7a[_0x4553bf('0x1b01')][_0x4553bf('0x1893')](_0x1b6e30['toJSON']()),_0x5d1780['success']({'title':_0x4553bf('0x315'),'msg':_0x314b7a[_0x4553bf('0x384')][_0x4553bf('0x2aa')]?_0x314b7a['faxQueue'][_0x4553bf('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x2a58a3(_0x1b6e30);})['catch'](function(_0x35cece){const _0x3cb471=_0x2fa6e0;if(_0x35cece['data']&&_0x35cece[_0x3cb471('0x1457')][_0x3cb471('0x73e')]&&_0x35cece[_0x3cb471('0x1457')][_0x3cb471('0x73e')][_0x3cb471('0x1f73')]){_0x314b7a['errors']=_0x35cece['data'][_0x3cb471('0x73e')]||[{'message':_0x35cece[_0x3cb471('0x9b6')](),'type':_0x3cb471('0x264d')}];for(let _0x25311d=0x0;_0x25311d<_0x35cece[_0x3cb471('0x1457')]['errors']['length'];_0x25311d+=0x1){_0x5d1780['error']({'title':_0x35cece['data']['errors'][_0x25311d][_0x3cb471('0x412')],'msg':_0x35cece[_0x3cb471('0x1457')][_0x3cb471('0x73e')][_0x25311d][_0x3cb471('0x1603')]});}}else _0x5d1780[_0x3cb471('0x1db9')]({'title':_0x35cece['status']?_0x3cb471('0x14f7')+_0x35cece[_0x3cb471('0x11c5')]+_0x3cb471('0x16e4')+_0x35cece[_0x3cb471('0x1833')]:_0x3cb471('0x264d'),'msg':_0x35cece['data']?JSON['stringify'](_0x35cece[_0x3cb471('0x1457')]['message']):_0x35cece[_0x3cb471('0x9b6')]()});});}function _0x54ff32(){const _0x229f56=_0x11ab3d;_0x314b7a['errors']=[],_0x4b6360['faxQueue'][_0x229f56('0x27ba')]({'id':_0x314b7a[_0x229f56('0x384')]['id']},_0x314b7a['faxQueue'])[_0x229f56('0x1af5')][_0x229f56('0x17e7')](function(_0x9b5b12){const _0x1780e2=_0x229f56,_0x3a4b64=_0x49cbdd()[_0x1780e2('0xe8e')](_0x314b7a['faxQueues'],{'id':_0x9b5b12['id']});_0x3a4b64&&_0x49cbdd()[_0x1780e2('0x1ced')](_0x3a4b64,_0x49cbdd()[_0x1780e2('0x230a')](_0x9b5b12[_0x1780e2('0x16b2')](),_0x49cbdd()['keys'](_0x3a4b64))),_0x5d1780[_0x1780e2('0x130d')]({'title':_0x1780e2('0x16a0'),'msg':_0x314b7a[_0x1780e2('0x384')][_0x1780e2('0x2aa')]?_0x314b7a[_0x1780e2('0x384')]['name']+_0x1780e2('0x15ca'):''}),_0x2a58a3(_0x9b5b12);})[_0x229f56('0x16df')](function(_0x7f5f2e){const _0x46b719=_0x229f56;if(_0x7f5f2e[_0x46b719('0x1457')]&&_0x7f5f2e[_0x46b719('0x1457')]['errors']&&_0x7f5f2e[_0x46b719('0x1457')][_0x46b719('0x73e')][_0x46b719('0x1f73')]){_0x314b7a['errors']=_0x7f5f2e[_0x46b719('0x1457')][_0x46b719('0x73e')]||[{'message':_0x7f5f2e[_0x46b719('0x9b6')](),'type':_0x46b719('0x10bf')}];for(let _0x2f1c67=0x0;_0x2f1c67<_0x7f5f2e[_0x46b719('0x1457')][_0x46b719('0x73e')][_0x46b719('0x1f73')];_0x2f1c67++){_0x5d1780[_0x46b719('0x1db9')]({'title':_0x7f5f2e[_0x46b719('0x1457')][_0x46b719('0x73e')][_0x2f1c67][_0x46b719('0x412')],'msg':_0x7f5f2e[_0x46b719('0x1457')][_0x46b719('0x73e')][_0x2f1c67][_0x46b719('0x1603')]});}}else _0x5d1780['error']({'title':_0x7f5f2e['status']?_0x46b719('0x14f7')+_0x7f5f2e[_0x46b719('0x11c5')]+_0x46b719('0x16e4')+_0x7f5f2e['statusText']:_0x46b719('0x10bf'),'msg':_0x7f5f2e[_0x46b719('0x1457')]?JSON[_0x46b719('0x678')](_0x7f5f2e[_0x46b719('0x1457')]['message']):_0x7f5f2e[_0x46b719('0x9b6')]()});});}function _0xf0b323(_0x3609c8){const _0x4b9e75=_0x11ab3d;_0x314b7a['errors']=[];const _0x1544f4=_0x40d806[_0x4b9e75('0x1121')]()['title'](_0x4b9e75('0x530'))[_0x4b9e75('0xd5')](_0x4b9e75('0x12f6'))[_0x4b9e75('0x2095')](_0x4b9e75('0xcf'))['ok'](_0x4b9e75('0x304'))[_0x4b9e75('0x1d47')](_0x4b9e75('0x1b70'))['targetEvent'](_0x3609c8);_0x40d806[_0x4b9e75('0x28e2')](_0x1544f4)['then'](function(){const _0x57c643=_0x4b9e75;_0x4b6360['faxQueue']['delete']({'id':_0x314b7a[_0x57c643('0x384')]['id']})[_0x57c643('0x1af5')][_0x57c643('0x17e7')](function(){const _0x353b59=_0x57c643;_0x49cbdd()[_0x353b59('0x5f3')](_0x314b7a['faxQueues'],{'id':_0x314b7a['faxQueue']['id']}),_0x5d1780[_0x353b59('0x130d')]({'title':_0x353b59('0x1ede'),'msg':(_0x314b7a['faxQueue'][_0x353b59('0x2aa')]||_0x353b59('0x384'))+_0x353b59('0x149f')}),_0x2a58a3(_0x314b7a[_0x353b59('0x384')]);})[_0x57c643('0x16df')](function(_0x3fd5ba){const _0x1f2737=_0x57c643;if(_0x3fd5ba[_0x1f2737('0x1457')]&&_0x3fd5ba[_0x1f2737('0x1457')][_0x1f2737('0x73e')]&&_0x3fd5ba[_0x1f2737('0x1457')][_0x1f2737('0x73e')]['length']){_0x314b7a[_0x1f2737('0x73e')]=_0x3fd5ba[_0x1f2737('0x1457')][_0x1f2737('0x73e')]||[{'message':_0x3fd5ba[_0x1f2737('0x9b6')](),'type':_0x1f2737('0x690')}];for(let _0x580c0d=0x0;_0x580c0d<_0x3fd5ba[_0x1f2737('0x1457')][_0x1f2737('0x73e')][_0x1f2737('0x1f73')];_0x580c0d++){_0x5d1780['error']({'title':_0x3fd5ba[_0x1f2737('0x1457')]['errors'][_0x580c0d][_0x1f2737('0x412')],'msg':_0x3fd5ba[_0x1f2737('0x1457')][_0x1f2737('0x73e')][_0x580c0d]['message']});}}else _0x5d1780[_0x1f2737('0x1db9')]({'title':_0x3fd5ba[_0x1f2737('0x11c5')]?_0x1f2737('0x14f7')+_0x3fd5ba[_0x1f2737('0x11c5')]+_0x1f2737('0x16e4')+_0x3fd5ba[_0x1f2737('0x1833')]:_0x1f2737('0x690'),'msg':_0x3fd5ba[_0x1f2737('0x1457')]?JSON[_0x1f2737('0x678')](_0x3fd5ba[_0x1f2737('0x1457')][_0x1f2737('0x1603')]):_0x3fd5ba['message']||_0x3fd5ba['toString']()});});},function(){});}function _0x48a772(_0x1b2a5a){return _0x1b2a5a===null?undefined:new Date(_0x1b2a5a);}function _0x2a58a3(_0x570e7e){_0x40d806['hide'](_0x570e7e);}}const _0x372393=_0x162a18;_0x4fc32b['$inject']=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x212e'),_0x4376d8('0x384'),_0x4376d8('0x1b01'),_0x4376d8('0x20c8'),'$translate',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x4fc32b(_0x34fefd,_0x40fd13,_0x20cb88,_0x2c5cd3,_0x1c4264,_0x1422c2,_0x195530,_0x3e1147,_0x19b451,_0x27f773){const _0x1201bb=_0x4376d8,_0x1cbd7d=this;_0x1cbd7d['currentUser']=_0x19b451[_0x1201bb('0x2831')](),_0x1cbd7d[_0x1201bb('0x384')]=_0x1c4264,_0x1cbd7d['crudPermissions']=_0x27f773,_0x1cbd7d[_0x1201bb('0x20c8')]=_0x195530,_0x1cbd7d[_0x1201bb('0x532')]=[],_0x1cbd7d[_0x1201bb('0x2722')]=[],_0x1cbd7d[_0x1201bb('0xc14')]=[],_0x1cbd7d['startingAllowedItems']=[],_0x1cbd7d['startingSelectedItems']=[],_0x1cbd7d['pendingChanges']=![],_0x1cbd7d[_0x1201bb('0xdf0')]=_0x4c24eb,_0x1cbd7d[_0x1201bb('0x257a')]=_0x13999a,_0x1cbd7d['closeDialog']=_0x57a7ef,_0x1cbd7d['dualMultiselectOptions']={'readOnly':!_0x1cbd7d[_0x1201bb('0x103e')][_0x1201bb('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1201bb('0x2aa'),'line1':'fullname','line2':['name',_0x1201bb('0xe3e')],'line3':'','labelAll':_0x3e1147[_0x1201bb('0x1acc')](_0x1201bb('0x1b1c')),'labelSelected':_0x3e1147['instant'](_0x1201bb('0x8e6')),'transferCallback':function(){const _0x3f3127=_0x1201bb,_0x35912a=_0x49cbdd()[_0x3f3127('0x137')](_0x1cbd7d[_0x3f3127('0x1824')],_0x1cbd7d[_0x3f3127('0xc14')],'id');_0x1cbd7d[_0x3f3127('0x25dc')]=_0x49cbdd()['isEmpty'](_0x35912a)?![]:!![];}};function _0x4c24eb(){const _0x1e01ee=_0x1201bb;return _0x19b451[_0x1e01ee('0x1ba2')]('admin')?_0x544909()[_0x1e01ee('0x16df')](function(_0x2266c5){const _0xb3a4ab=_0x1e01ee;_0x20cb88[_0xb3a4ab('0x1db9')]({'title':_0x2266c5[_0xb3a4ab('0x11c5')]?_0xb3a4ab('0x14f7')+_0x2266c5['status']+_0xb3a4ab('0x16e4')+_0x2266c5[_0xb3a4ab('0x1833')]:_0xb3a4ab('0x23e0'),'msg':_0x2266c5[_0xb3a4ab('0x11c5')]?JSON[_0xb3a4ab('0x678')](_0x2266c5[_0xb3a4ab('0x1457')]):_0x2266c5[_0xb3a4ab('0x9b6')]()});}):_0x2bcc96()[_0x1e01ee('0x17e7')](function(_0x33838c){const _0x2b30cd=_0x1e01ee;return _0x1cbd7d[_0x2b30cd('0x16f8')]=_0x33838c,_0x544909();})[_0x1e01ee('0x16df')](function(_0x3986bd){const _0x27fe8d=_0x1e01ee;_0x20cb88[_0x27fe8d('0x1db9')]({'title':_0x3986bd['status']?_0x27fe8d('0x14f7')+_0x3986bd[_0x27fe8d('0x11c5')]+'\x20-\x20'+_0x3986bd[_0x27fe8d('0x1833')]:_0x27fe8d('0x23e0'),'msg':_0x3986bd[_0x27fe8d('0x11c5')]?JSON[_0x27fe8d('0x678')](_0x3986bd[_0x27fe8d('0x1457')]):_0x3986bd[_0x27fe8d('0x9b6')]()});});}function _0x2bcc96(){return _0x40fd13(function(_0x3fd23a,_0x22ab81){const _0x21d750=a0_0xd29e;_0x2c5cd3[_0x21d750('0x383')][_0x21d750('0x1c53')]({'userProfileId':_0x1cbd7d['currentUser'][_0x21d750('0x1e76')],'name':_0x21d750('0x2157')})[_0x21d750('0x1af5')]['then'](function(_0xddf885){const _0x1c3bef=_0x21d750,_0x3ec027=_0xddf885&&_0xddf885['rows']?_0xddf885[_0x1c3bef('0x2319')][0x0]:null;_0x3fd23a(_0x3ec027);})[_0x21d750('0x16df')](function(_0x473082){_0x22ab81(_0x473082);});});}function _0x544909(){return _0x40fd13(function(_0x1a46c2,_0x286bf4){const _0x537cc0=a0_0xd29e;return _0x5bd3a2()[_0x537cc0('0x17e7')](function(_0x214bf7){const _0x52f77f=_0x537cc0;return _0x1cbd7d['items']=_0x214bf7[_0x52f77f('0x2319')]?_0x214bf7[_0x52f77f('0x2319')]:[],_0x19b451[_0x52f77f('0x1ba2')](_0x52f77f('0x20bf'))?_0x214bf7:_0x1cbd7d[_0x52f77f('0x16f8')]?_0x1cbd7d['section']['autoAssociation']?_0x214bf7:_0x4691d6():null;})[_0x537cc0('0x17e7')](function(_0x1ac33c){const _0x1c17e0=_0x537cc0,_0x5efe6c=_0x1ac33c&&_0x1ac33c['rows']?_0x1ac33c[_0x1c17e0('0x2319')]:[];return _0x1cbd7d[_0x1c17e0('0x2722')]=_0x49cbdd()[_0x1c17e0('0x787')](_0x5efe6c,function(_0xa70e84){const _0xc28b94=_0x1c17e0;return _0x49cbdd()['find'](_0x1cbd7d[_0xc28b94('0x532')],{'id':_0x19b451[_0xc28b94('0x1ba2')](_0xc28b94('0x20bf'))||_0x1cbd7d['section'][_0xc28b94('0x9e3')]?_0xa70e84['id']:_0xa70e84[_0xc28b94('0x5db')]});}),_0x1cbd7d[_0x1c17e0('0x181b')]=angular[_0x1c17e0('0x14e5')](_0x1cbd7d['allowedItems']),_0x1cbd7d[_0x1c17e0('0x532')][_0x1c17e0('0xccd')](function(_0x2731a8){const _0x16df03=_0x1c17e0,_0x68cbaa=_0x49cbdd()[_0x16df03('0xe8e')](_0x1cbd7d['allowedItems'],{'id':_0x2731a8['id']});_0x19b451[_0x16df03('0x1ba2')](_0x16df03('0x20bf'))?_0x2731a8['isValid']=!![]:_0x2731a8[_0x16df03('0xc98')]=typeof _0x68cbaa!==_0x16df03('0xfad')?!![]:![];}),_0x3baf00();})[_0x537cc0('0x17e7')](function(_0x37e6e7){const _0x3ad171=_0x537cc0,_0x4a2454=_0x37e6e7&&_0x37e6e7[_0x3ad171('0x2319')]?_0x37e6e7[_0x3ad171('0x2319')]:[];_0x1cbd7d['selectedItems']=_0x49cbdd()['map'](_0x4a2454,function(_0x4007df){const _0x26bc36=_0x3ad171,_0x15055c=_0x49cbdd()[_0x26bc36('0xe8e')](_0x1cbd7d[_0x26bc36('0x532')],{'id':_0x4007df['id']});return _0x15055c['penalty']=_0x4007df[_0x26bc36('0x1924')]?_0x26bc36('0x973')+_0x4007df['UserFaxQueue'][_0x26bc36('0x122c')]:'',_0x15055c[_0x26bc36('0xe3e')]=typeof _0x4007df[_0x26bc36('0xe3e')]!==_0x26bc36('0xfad')?'<'+_0x4007df[_0x26bc36('0xe3e')]+'>':'',_0x15055c;}),_0x1cbd7d['startingSelectedItems']=angular[_0x3ad171('0x14e5')](_0x1cbd7d['selectedItems']),_0x1cbd7d['dualMultiselectOptions'][_0x3ad171('0xc14')]=_0x1cbd7d['selectedItems'],_0x1cbd7d[_0x3ad171('0x26f4')][_0x3ad171('0x532')]=_0x49cbdd()[_0x3ad171('0x1ada')](_0x1cbd7d['allowedItems'],_0x1cbd7d[_0x3ad171('0x26f4')]['selectedItems'],'id'),_0x1a46c2();})[_0x537cc0('0x16df')](function(_0x13f169){_0x286bf4(_0x13f169);});});}function _0x4691d6(){return _0x40fd13(function(_0x2ec0a6,_0x188acc){const _0x408f62=a0_0xd29e;return _0x2c5cd3[_0x408f62('0x78d')][_0x408f62('0x1c53')]({'sectionId':_0x1cbd7d[_0x408f62('0x16f8')]['id'],'nolimit':!![]})[_0x408f62('0x1af5')][_0x408f62('0x17e7')](function(_0x2e398b){_0x2ec0a6(_0x2e398b);})['catch'](function(_0x1f146e){_0x188acc(_0x1f146e);});});}function _0x3baf00(){return _0x40fd13(function(_0x3db0d4,_0x1f6b67){const _0x330e60=a0_0xd29e;return _0x2c5cd3[_0x330e60('0x384')][_0x330e60('0x1dac')]({'id':_0x1cbd7d[_0x330e60('0x384')]['id'],'fields':_0x330e60('0x1152'),'nolimit':!![],'role':_0x330e60('0x684')})[_0x330e60('0x1af5')][_0x330e60('0x17e7')](function(_0xcd9143){_0x3db0d4(_0xcd9143);})[_0x330e60('0x16df')](function(_0x404577){_0x1f6b67(_0x404577);});});}function _0x5bd3a2(){return _0x40fd13(function(_0x3dd55a,_0x363e05){const _0x1def5c=a0_0xd29e;return _0x2c5cd3[_0x1def5c('0x221e')][_0x1def5c('0x1c53')]({'fields':_0x1def5c('0x1152'),'nolimit':!![],'role':_0x1def5c('0x684')})['$promise'][_0x1def5c('0x17e7')](function(_0x5b9ef6){_0x3dd55a(_0x5b9ef6);})[_0x1def5c('0x16df')](function(_0x309320){_0x363e05(_0x309320);});});}function _0x5cf549(_0x39f1ac){return _0x40fd13(function(_0x57e51d,_0x35f1aa){const _0x1d9a62=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x39f1ac)?_0x57e51d():_0x2c5cd3[_0x1d9a62('0x384')]['addAgents']({'id':_0x1cbd7d[_0x1d9a62('0x384')]['id'],'ids':_0x49cbdd()[_0x1d9a62('0x787')](_0x39f1ac,'id')})[_0x1d9a62('0x1af5')][_0x1d9a62('0x17e7')](function(){_0x57e51d();})['catch'](function(_0x24deee){_0x35f1aa(_0x24deee);});});}function _0x599a2f(_0x58e274){return _0x40fd13(function(_0x3dad60,_0x581774){const _0x21d5e1=a0_0xd29e;_0x49cbdd()[_0x21d5e1('0x109a')](_0x58e274)?_0x3dad60():_0x2c5cd3[_0x21d5e1('0x384')][_0x21d5e1('0x1625')]({'id':_0x1cbd7d['faxQueue']['id'],'ids':_0x49cbdd()[_0x21d5e1('0x787')](_0x58e274,'id')})['$promise'][_0x21d5e1('0x17e7')](function(){_0x3dad60();})['catch'](function(_0x26e851){_0x581774(_0x26e851);});});}function _0x13999a(){const _0x3d0784=_0x1201bb,_0x130b52=_0x49cbdd()[_0x3d0784('0x1ada')](_0x1cbd7d[_0x3d0784('0x1824')],_0x1cbd7d[_0x3d0784('0xc14')],'id'),_0x30531e=_0x49cbdd()['differenceBy'](_0x1cbd7d[_0x3d0784('0xc14')],_0x1cbd7d[_0x3d0784('0x1824')],'id');return _0x599a2f(_0x130b52)[_0x3d0784('0x17e7')](function(){return _0x5cf549(_0x30531e);})['then'](function(){const _0x21f7bf=_0x3d0784;_0x1cbd7d[_0x21f7bf('0x25dc')]=![],_0x1cbd7d[_0x21f7bf('0x181b')]=angular[_0x21f7bf('0x14e5')](_0x1cbd7d[_0x21f7bf('0x2722')]),_0x1cbd7d[_0x21f7bf('0x1824')]=angular[_0x21f7bf('0x14e5')](_0x1cbd7d['selectedItems']),_0x20cb88[_0x21f7bf('0x130d')]({'title':_0x21f7bf('0x9d1'),'msg':_0x21f7bf('0x2603')});})[_0x3d0784('0x16df')](function(_0x2e5e3e){const _0xe0232b=_0x3d0784;_0x20cb88[_0xe0232b('0x1db9')]({'title':_0x2e5e3e[_0xe0232b('0x11c5')]?_0xe0232b('0x14f7')+_0x2e5e3e[_0xe0232b('0x11c5')]+'\x20-\x20'+_0x2e5e3e[_0xe0232b('0x1833')]:_0xe0232b('0x244e'),'msg':_0x2e5e3e[_0xe0232b('0x11c5')]?JSON['stringify'](_0x2e5e3e['data']):_0x2e5e3e['toString']()});});}function _0x57a7ef(){const _0xff422c=_0x1201bb;_0x34fefd[_0xff422c('0x212a')]();}}const _0x22303f=_0x4fc32b;_0x5c7677[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x384'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x5c7677(_0x5c201c,_0x3beb3d,_0x2aaffb,_0x5ac653,_0x271cc6,_0x45d33e,_0x570e37,_0x51529b){const _0xe2d9f2=_0x4376d8,_0x1f236c=this;_0x1f236c[_0xe2d9f2('0x197c')]=_0x570e37[_0xe2d9f2('0x2831')](),_0x1f236c[_0xe2d9f2('0x384')]=_0x271cc6,_0x1f236c[_0xe2d9f2('0x103e')]=_0x51529b,_0x1f236c[_0xe2d9f2('0x532')]=[],_0x1f236c[_0xe2d9f2('0x2722')]=[],_0x1f236c['selectedItems']=[],_0x1f236c[_0xe2d9f2('0x181b')]=[],_0x1f236c[_0xe2d9f2('0x1824')]=[],_0x1f236c[_0xe2d9f2('0x25dc')]=![],_0x1f236c[_0xe2d9f2('0x26f4')]={'readOnly':!_0x1f236c[_0xe2d9f2('0x103e')]['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0xe2d9f2('0x2aa'),'line1':_0xe2d9f2('0x2aa'),'line2':'','line3':'','labelAll':_0x45d33e[_0xe2d9f2('0x1acc')](_0xe2d9f2('0xc5f')),'labelSelected':_0x45d33e[_0xe2d9f2('0x1acc')](_0xe2d9f2('0x824')),'transferCallback':function(){const _0x25b538=_0xe2d9f2,_0x2551fd=_0x49cbdd()[_0x25b538('0x137')](_0x1f236c[_0x25b538('0x1824')],_0x1f236c[_0x25b538('0xc14')],'id');_0x1f236c[_0x25b538('0x25dc')]=_0x49cbdd()['isEmpty'](_0x2551fd)?![]:!![];}},_0x1f236c[_0xe2d9f2('0xdf0')]=_0x1cde44,_0x1f236c['saveTeams']=_0x5d0ef2,_0x1f236c[_0xe2d9f2('0x136e')]=_0x485464;function _0x1cde44(){const _0x4e506b=_0xe2d9f2;return _0x570e37[_0x4e506b('0x1ba2')](_0x4e506b('0x20bf'))?_0x5231de()[_0x4e506b('0x16df')](function(_0x1e6aac){const _0x138378=_0x4e506b;_0x2aaffb[_0x138378('0x1db9')]({'title':_0x1e6aac[_0x138378('0x11c5')]?_0x138378('0x14f7')+_0x1e6aac[_0x138378('0x11c5')]+_0x138378('0x16e4')+_0x1e6aac[_0x138378('0x1833')]:_0x138378('0x20cf'),'msg':_0x1e6aac[_0x138378('0x11c5')]?JSON[_0x138378('0x678')](_0x1e6aac[_0x138378('0x1457')]):_0x1e6aac[_0x138378('0x9b6')]()});}):_0x5f1d09()[_0x4e506b('0x17e7')](function(_0x1e4a0e){const _0x40de68=_0x4e506b;return _0x1f236c[_0x40de68('0x16f8')]=_0x1e4a0e,_0x5231de();})[_0x4e506b('0x16df')](function(_0x2d3f10){const _0x51b689=_0x4e506b;_0x2aaffb['error']({'title':_0x2d3f10['status']?_0x51b689('0x14f7')+_0x2d3f10[_0x51b689('0x11c5')]+_0x51b689('0x16e4')+_0x2d3f10[_0x51b689('0x1833')]:'SYSTEM:GET_TEAMS','msg':_0x2d3f10['status']?JSON[_0x51b689('0x678')](_0x2d3f10[_0x51b689('0x1457')]):_0x2d3f10[_0x51b689('0x9b6')]()});});}function _0x5f1d09(){return _0x3beb3d(function(_0x345af9,_0x115189){const _0xa50d81=a0_0xd29e;_0x5ac653[_0xa50d81('0x383')]['get']({'userProfileId':_0x1f236c[_0xa50d81('0x197c')][_0xa50d81('0x1e76')],'name':_0xa50d81('0x1cf2')})[_0xa50d81('0x1af5')][_0xa50d81('0x17e7')](function(_0xf5380a){const _0x3c584f=_0xa50d81,_0x3c10bf=_0xf5380a&&_0xf5380a[_0x3c584f('0x2319')]?_0xf5380a['rows'][0x0]:null;_0x345af9(_0x3c10bf);})['catch'](function(_0x141aff){_0x115189(_0x141aff);});});}function _0x5231de(){return _0x3beb3d(function(_0x481603,_0x22ccb4){const _0x5ad8f6=a0_0xd29e;return _0x44fd93()['then'](function(_0x34fdcb){const _0x41b501=a0_0xd29e;return _0x1f236c['items']=_0x34fdcb['rows']?_0x34fdcb[_0x41b501('0x2319')]:[],_0x570e37[_0x41b501('0x1ba2')](_0x41b501('0x20bf'))?_0x34fdcb:_0x1f236c[_0x41b501('0x16f8')]?_0x1f236c[_0x41b501('0x16f8')][_0x41b501('0x9e3')]?_0x34fdcb:_0x46bdf7():null;})['then'](function(_0x4d5e57){const _0x5a13c8=a0_0xd29e,_0x2fae7e=_0x4d5e57&&_0x4d5e57[_0x5a13c8('0x2319')]?_0x4d5e57[_0x5a13c8('0x2319')]:[];return _0x1f236c[_0x5a13c8('0x2722')]=_0x49cbdd()[_0x5a13c8('0x787')](_0x2fae7e,function(_0x4b024a){const _0x5b9131=_0x5a13c8;return _0x49cbdd()[_0x5b9131('0xe8e')](_0x1f236c[_0x5b9131('0x532')],{'id':_0x570e37[_0x5b9131('0x1ba2')](_0x5b9131('0x20bf'))||_0x1f236c[_0x5b9131('0x16f8')][_0x5b9131('0x9e3')]?_0x4b024a['id']:_0x4b024a[_0x5b9131('0x5db')]});}),_0x1f236c[_0x5a13c8('0x532')]['forEach'](function(_0x1718db){const _0x42d2b0=_0x5a13c8,_0x18266b=_0x49cbdd()[_0x42d2b0('0xe8e')](_0x1f236c[_0x42d2b0('0x2722')],{'id':_0x1718db['id']});_0x570e37[_0x42d2b0('0x1ba2')](_0x42d2b0('0x20bf'))?_0x1718db[_0x42d2b0('0xc98')]=!![]:_0x1718db[_0x42d2b0('0xc98')]=typeof _0x18266b!==_0x42d2b0('0xfad')?!![]:![];}),_0xe6c475();})['then'](function(_0x1115c6){const _0x1c61b6=a0_0xd29e,_0x125490=_0x1115c6&&_0x1115c6[_0x1c61b6('0x2319')]?_0x1115c6['rows']:[];_0x1f236c['selectedItems']=_0x49cbdd()['map'](_0x125490,function(_0x20ce4b){const _0x5dd182=_0x1c61b6;return _0x49cbdd()[_0x5dd182('0xe8e')](_0x1f236c[_0x5dd182('0x532')],{'id':_0x20ce4b['id']});}),_0x1f236c[_0x1c61b6('0x1824')]=angular['copy'](_0x1f236c[_0x1c61b6('0xc14')]),_0x1f236c[_0x1c61b6('0x26f4')]['selectedItems']=_0x1f236c['selectedItems'],_0x1f236c[_0x1c61b6('0x26f4')]['items']=_0x49cbdd()['differenceBy'](_0x1f236c[_0x1c61b6('0x2722')],_0x1f236c[_0x1c61b6('0x26f4')][_0x1c61b6('0xc14')],'id'),_0x481603();})[_0x5ad8f6('0x16df')](function(_0x49c988){_0x22ccb4(_0x49c988);});});}function _0x46bdf7(){return _0x3beb3d(function(_0x381285,_0x14b4dc){const _0x30020e=a0_0xd29e;return _0x5ac653[_0x30020e('0x78d')][_0x30020e('0x1c53')]({'sectionId':_0x1f236c[_0x30020e('0x16f8')]['id'],'nolimit':!![]})[_0x30020e('0x1af5')][_0x30020e('0x17e7')](function(_0x401fda){_0x381285(_0x401fda);})[_0x30020e('0x16df')](function(_0x2dc343){_0x14b4dc(_0x2dc343);});});}function _0xe6c475(){return _0x3beb3d(function(_0x406f64,_0xeebdcf){const _0x470505=a0_0xd29e;return _0x5ac653[_0x470505('0x384')]['getTeams']({'id':_0x1f236c['faxQueue']['id'],'fields':'id,name','nolimit':!![]})[_0x470505('0x1af5')][_0x470505('0x17e7')](function(_0x51e79c){_0x406f64(_0x51e79c);})['catch'](function(_0x307d9a){_0xeebdcf(_0x307d9a);});});}function _0x44fd93(){return _0x3beb3d(function(_0x3e3f98,_0x111e80){const _0x519484=a0_0xd29e;return _0x5ac653['team']['get']({'fields':_0x519484('0x12d2'),'nolimit':!![]})[_0x519484('0x1af5')][_0x519484('0x17e7')](function(_0x2178fa){_0x3e3f98(_0x2178fa);})[_0x519484('0x16df')](function(_0x526397){_0x111e80(_0x526397);});});}function _0x3e15bc(_0x2040a1){return _0x3beb3d(function(_0x3fb4b3,_0x1bf599){const _0x3d2b39=a0_0xd29e;_0x49cbdd()[_0x3d2b39('0x109a')](_0x2040a1)?_0x3fb4b3():_0x5ac653[_0x3d2b39('0x384')]['addTeams']({'id':_0x1f236c[_0x3d2b39('0x384')]['id'],'ids':_0x49cbdd()[_0x3d2b39('0x787')](_0x2040a1,'id')})[_0x3d2b39('0x1af5')][_0x3d2b39('0x17e7')](function(){_0x3fb4b3();})[_0x3d2b39('0x16df')](function(_0x436315){_0x1bf599(_0x436315);});});}function _0xa9fb4a(_0x8beca5){return _0x3beb3d(function(_0x5ab6f7,_0x477492){const _0x7da71c=a0_0xd29e;_0x49cbdd()[_0x7da71c('0x109a')](_0x8beca5)?_0x5ab6f7():_0x5ac653[_0x7da71c('0x384')][_0x7da71c('0x27e8')]({'id':_0x1f236c[_0x7da71c('0x384')]['id'],'ids':_0x49cbdd()[_0x7da71c('0x787')](_0x8beca5,'id')})[_0x7da71c('0x1af5')][_0x7da71c('0x17e7')](function(){_0x5ab6f7();})[_0x7da71c('0x16df')](function(_0x14d244){_0x477492(_0x14d244);});});}function _0x5d0ef2(){const _0x28cd8f=_0xe2d9f2,_0x3cb95f=_0x49cbdd()[_0x28cd8f('0x1ada')](_0x1f236c['startingSelectedItems'],_0x1f236c[_0x28cd8f('0xc14')],'id'),_0x461e02=_0x49cbdd()['differenceBy'](_0x1f236c[_0x28cd8f('0xc14')],_0x1f236c[_0x28cd8f('0x1824')],'id');return _0xa9fb4a(_0x3cb95f)[_0x28cd8f('0x17e7')](function(){return _0x3e15bc(_0x461e02);})[_0x28cd8f('0x17e7')](function(){const _0x2841de=_0x28cd8f;_0x1f236c[_0x2841de('0x25dc')]=![],_0x1f236c[_0x2841de('0x181b')]=angular[_0x2841de('0x14e5')](_0x1f236c[_0x2841de('0x2722')]),_0x1f236c[_0x2841de('0x1824')]=angular[_0x2841de('0x14e5')](_0x1f236c[_0x2841de('0xc14')]),_0x2aaffb['success']({'title':_0x2841de('0x9d1'),'msg':_0x2841de('0x1091')});})['catch'](function(_0xfe6a1d){const _0x4552b0=_0x28cd8f;_0x2aaffb[_0x4552b0('0x1db9')]({'title':_0xfe6a1d[_0x4552b0('0x11c5')]?_0x4552b0('0x14f7')+_0xfe6a1d[_0x4552b0('0x11c5')]+_0x4552b0('0x16e4')+_0xfe6a1d['statusText']:_0x4552b0('0x244e'),'msg':_0xfe6a1d[_0x4552b0('0x11c5')]?JSON[_0x4552b0('0x678')](_0xfe6a1d[_0x4552b0('0x1457')]):_0xfe6a1d[_0x4552b0('0x9b6')]()});});}function _0x485464(){const _0x57f620=_0xe2d9f2;_0x5c201c[_0x57f620('0x212a')]();}}const _0x3c236b=_0x5c7677,_0x426006=_0x4cf2bc['p']+'src/js/modules/main/apps/fax/views/faxQueues/edit/teamadd/teamadd.html/teamadd.html';_0x220720['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting','api',_0x4376d8('0x108a'),'Auth',_0x4376d8('0x384'),'userProfileSection'];function _0x220720(_0x3a3041,_0x3140e3,_0x51e24b,_0x587f1a,_0x1968a8,_0x388795,_0x14cb7a,_0x5a26f8,_0x1e76d9,_0x220382,_0x19ba81,_0x2ea704){const _0x32af0f=_0x4376d8,_0x41dd9b=this;_0x41dd9b[_0x32af0f('0x197c')]=_0x220382['getCurrentUser'](),_0x41dd9b[_0x32af0f('0x1d11')]=_0x388795,_0x41dd9b[_0x32af0f('0x1aeb')]=_0x14cb7a,_0x41dd9b['passwordPattern']=_0x41dd9b[_0x32af0f('0x1aeb')][_0x32af0f('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41dd9b[_0x32af0f('0xaed')]=_0x3140e3[_0x32af0f('0x14fe')]()+_0x32af0f('0x14')+_0x3140e3[_0x32af0f('0x108')](),_0x41dd9b[_0x32af0f('0x384')]=_0x19ba81||_0x3a3041[_0x32af0f('0x16fb')][_0x32af0f('0x384')]||{},_0x41dd9b[_0x32af0f('0x383')]=_0x2ea704&&_0x2ea704[_0x32af0f('0x335')]==0x1?_0x2ea704[_0x32af0f('0x2319')][0x0]:null,_0x41dd9b[_0x32af0f('0x103e')]=_0x220382[_0x32af0f('0x17a9')](_0x41dd9b['userProfileSection']?_0x41dd9b['userProfileSection'][_0x32af0f('0x103e')]:null),_0x41dd9b[_0x32af0f('0x6ee')]={},_0x41dd9b[_0x32af0f('0xde7')]=_0x3a3041[_0x32af0f('0x16fb')][_0x32af0f('0x1523')]||0x0,_0x41dd9b[_0x32af0f('0x1e34')]=_0xc7cc74,_0x41dd9b[_0x32af0f('0x2359')]=_0x4f76d3,_0x41dd9b['alert']=_0x1e76d9[_0x32af0f('0x1178')],_0x41dd9b[_0x32af0f('0xf09')]=_0x54206f,_0x41dd9b['saveFaxQueue']=_0x29c486;function _0xc7cc74(_0x37f55c,_0x117058){const _0x11bf22=_0x32af0f;_0x51e24b[_0x11bf22('0x28e2')]({'controller':_0x11bf22('0x1bb3'),'controllerAs':'vm','templateUrl':_0x426006,'parent':angular[_0x11bf22('0x1ce1')](_0x587f1a[_0x11bf22('0x13aa')]),'targetEvent':_0x117058,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x37f55c,'faxQueues':_0x41dd9b[_0x11bf22('0x1b01')]?_0x41dd9b[_0x11bf22('0x1b01')][_0x11bf22('0x2319')]:[],'crudPermissions':_0x41dd9b['crudPermissions']}});}function _0x4f76d3(_0x1e6ca6,_0x2f7890){const _0x183c95=_0x32af0f;_0x51e24b[_0x183c95('0x28e2')]({'controller':_0x183c95('0x148d'),'controllerAs':'vm','templateUrl':_0x192f90,'parent':angular['element'](_0x587f1a['body']),'targetEvent':_0x2f7890,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x1e6ca6,'faxQueues':_0x41dd9b['faxQueues']?_0x41dd9b[_0x183c95('0x1b01')][_0x183c95('0x2319')]:[],'crudPermissions':_0x41dd9b[_0x183c95('0x103e')],'realtime':![]}});}function _0x54206f(){const _0x532fae=_0x32af0f;_0x3a3041['go'](_0x532fae('0x1222'),{},{'reload':_0x532fae('0x1222')});}function _0x29c486(){const _0x17347b=_0x32af0f;_0x5a26f8[_0x17347b('0x384')][_0x17347b('0x27ba')]({'id':_0x41dd9b[_0x17347b('0x384')]['id']},_0x41dd9b['faxQueue'])[_0x17347b('0x1af5')][_0x17347b('0x17e7')](function(){const _0x4766ad=_0x17347b;_0x1e76d9[_0x4766ad('0x130d')]({'title':_0x4766ad('0x25ec'),'msg':_0x41dd9b['faxQueue']['name']?_0x41dd9b[_0x4766ad('0x384')]['name']+_0x4766ad('0x12b0'):''});})[_0x17347b('0x16df')](function(_0x51956b){const _0x1edb60=_0x17347b;_0x1e76d9['error']({'title':_0x51956b[_0x1edb60('0x11c5')]?_0x1edb60('0x14f7')+_0x51956b[_0x1edb60('0x11c5')]+_0x1edb60('0x16e4')+_0x51956b[_0x1edb60('0x1833')]:'SYSTEM:GETfaxQueue','msg':_0x51956b[_0x1edb60('0x1457')]?JSON[_0x1edb60('0x678')](_0x51956b[_0x1edb60('0x1457')]):_0x51956b[_0x1edb60('0x9b6')]()});});}}const _0x1a3067=_0x220720;_0x8caf2f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x1b01'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),'setting'];function _0x8caf2f(_0x59b555,_0x3f0441,_0x1dd907,_0x5990c3,_0x5b8677,_0x2b7ce1,_0x5280a2,_0x4b174a,_0x554562,_0x53c82d,_0x1d5787,_0x2d30a5,_0x11f596,_0x5a1d32,_0x2d30bd,_0x6ad3d0,_0x11c551){const _0xfac762=_0x4376d8,_0x2f291c=this;_0x2f291c[_0xfac762('0x1d11')]=_0x6ad3d0,_0x2f291c[_0xfac762('0x1aeb')]=_0x11c551,_0x2f291c[_0xfac762('0x197c')]=_0x2d30bd[_0xfac762('0x2831')](),_0x2f291c['faxQueues']=_0x554562||{'count':0x0,'rows':[]},_0x2f291c[_0xfac762('0xdeb')]=_0x53c82d,_0x2f291c[_0xfac762('0x383')]=_0x1d5787&&_0x1d5787['count']==0x1?_0x1d5787[_0xfac762('0x2319')][0x0]:null,_0x2f291c[_0xfac762('0x103e')]=_0x2d30bd[_0xfac762('0x17a9')](_0x2f291c['userProfileSection']?_0x2f291c['userProfileSection'][_0xfac762('0x103e')]:null),_0x2f291c[_0xfac762('0x23c3')]=_0xfac762('0x1b01'),_0x2f291c[_0xfac762('0x26a1')]='',_0x2f291c['listOrderAsc']=null,_0x2f291c[_0xfac762('0xb7e')]=[],_0x2f291c[_0xfac762('0x826')]={'fields':_0xfac762('0x1029'),'sort':_0xfac762('0x1ac6'),'channel':_0xfac762('0xc23'),'limit':0xa,'page':0x1},_0x2f291c[_0xfac762('0x245b')]=_0x49cbdd()[_0xfac762('0x8de')]([{'option':'Beepall','value':_0xfac762('0xad6')},{'option':_0xfac762('0x1b14'),'value':_0xfac762('0x19b1')}],function(_0x42d880){const _0x46a88d=_0xfac762;return _0x49cbdd()[_0x46a88d('0x737')](_0x42d880[_0x46a88d('0x175b')],new RegExp('\x27','g'),'');}),_0x2f291c[_0xfac762('0xcd4')]=_0x506153,_0x2f291c[_0xfac762('0x1e34')]=_0x30de81,_0x2f291c['agentadddialog']=_0x25ea49,_0x2f291c['deleteconfirm']=_0x466d0b,_0x2f291c['gotorealtimegoto']=_0x41b709,_0x2f291c[_0xfac762('0x130d')]=_0x148a80,_0x2f291c[_0xfac762('0xfec')]=_0x2150f1,_0x2f291c['createOrEditFaxQueue']=_0x1f79f4,_0x2f291c[_0xfac762('0x1ff9')]=_0x2c40a4,_0x2f291c[_0xfac762('0x69c')]=_0x497a2a,_0x2f291c[_0xfac762('0xb37')]=_0x3cde33,_0x2f291c[_0xfac762('0x1b11')]=_0x1e22b4,_0x2f291c[_0xfac762('0x1bc3')]=_0x50b16d;function _0x506153(_0x22f24b){const _0x1bb8ab=_0xfac762;_0x1dd907['go'](_0x1bb8ab('0x26eb'),{'id':_0x22f24b['id'],'faxQueue':_0x22f24b,'crudPermissions':_0x2f291c[_0x1bb8ab('0x103e')]});}function _0x30de81(_0x493bf5,_0x518fec){const _0x1da8e4=_0xfac762;_0x5b8677[_0x1da8e4('0x28e2')]({'controller':'FaxQueueteamaddController','controllerAs':'vm','templateUrl':_0x426006,'parent':angular[_0x1da8e4('0x1ce1')](_0x2b7ce1['body']),'targetEvent':_0x518fec,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x493bf5,'faxQueues':_0x2f291c[_0x1da8e4('0x1b01')]?_0x2f291c[_0x1da8e4('0x1b01')][_0x1da8e4('0x2319')]:[],'crudPermissions':_0x2f291c[_0x1da8e4('0x103e')]}});}function _0x25ea49(_0x5656c9,_0x5697cd){const _0x1ca6ff=_0xfac762;_0x5b8677[_0x1ca6ff('0x28e2')]({'controller':_0x1ca6ff('0x148d'),'controllerAs':'vm','templateUrl':_0x192f90,'parent':angular[_0x1ca6ff('0x1ce1')](_0x2b7ce1[_0x1ca6ff('0x13aa')]),'targetEvent':_0x5697cd,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x5656c9,'faxQueues':_0x2f291c[_0x1ca6ff('0x1b01')]?_0x2f291c[_0x1ca6ff('0x1b01')][_0x1ca6ff('0x2319')]:[],'crudPermissions':_0x2f291c[_0x1ca6ff('0x103e')],'realtime':![]}});}function _0x466d0b(_0x247108,_0x40e968){const _0x187313=_0xfac762,_0x343ac1=_0x5b8677['confirm']()['title'](_0x187313('0x5e1')+_0x49cbdd()[_0x187313('0x1c98')]('faxQueue')+'?')[_0x187313('0x211f')](''+(_0x247108[_0x187313('0x2aa')]||_0x187313('0x384'))+_0x187313('0x1d23')+_0x187313('0xe9f'))[_0x187313('0x2095')](_0x187313('0x3ad'))[_0x187313('0x104f')](_0x40e968)['ok']('OK')[_0x187313('0x1d47')](_0x187313('0x28a0'));_0x5b8677[_0x187313('0x28e2')](_0x343ac1)[_0x187313('0x17e7')](function(){_0x2c40a4(_0x247108);},function(){const _0x4d4ffd=_0x187313;console[_0x4d4ffd('0x1d63')](_0x4d4ffd('0x28a0'));});}function _0x41b709(){const _0x216832=_0xfac762;if(_0x2d30bd[_0x216832('0x1ba2')](_0x216832('0x20bf')))_0x1dd907['go'](_0x216832('0x45e'),{});else return _0x2d30a5[_0x216832('0x383')][_0x216832('0x1c53')]({'userProfileId':_0x2d30bd['getCurrentUser']()[_0x216832('0x1e76')],'sectionId':0x38e})['$promise']['then'](function(_0x32dfd1){const _0x24413e=_0x216832,_0x2cccf7=_0x32dfd1&&_0x32dfd1['rows']?_0x32dfd1[_0x24413e('0x2319')][0x0]:null;_0x2cccf7&&_0x2cccf7['enabled']?_0x1dd907['go'](_0x24413e('0x45e'),{}):_0x5a1d32[_0x24413e('0x1178')]({'title':_0x4b174a[_0x24413e('0x1acc')](_0x24413e('0x286e')),'msg':_0x4b174a['instant'](_0x24413e('0x1169'))});})[_0x216832('0x16df')](function(_0x41ef00){const _0x42737e=_0x216832;_0x5a1d32[_0x42737e('0x1db9')]({'title':_0x41ef00[_0x42737e('0x11c5')]?_0x42737e('0x14f7')+_0x41ef00[_0x42737e('0x11c5')]+_0x42737e('0x16e4')+_0x41ef00[_0x42737e('0x1833')]:_0x42737e('0x338'),'msg':_0x41ef00[_0x42737e('0x11c5')]?JSON['stringify'](_0x41ef00[_0x42737e('0x1457')]):_0x41ef00[_0x42737e('0x9b6')]()});});}let _0x2f9ae5=!![],_0x3da11b=0x1;_0x59b555[_0xfac762('0x620')](_0xfac762('0x3ed'),function(_0x428e4c,_0x24b2a9){const _0x14e124=_0xfac762;_0x2f9ae5?_0x5280a2(function(){_0x2f9ae5=![];}):(!_0x24b2a9&&(_0x3da11b=_0x2f291c[_0x14e124('0x826')][_0x14e124('0x115a')]),_0x428e4c!==_0x24b2a9&&(_0x2f291c[_0x14e124('0x826')][_0x14e124('0x115a')]=0x1),!_0x428e4c&&(_0x2f291c['query'][_0x14e124('0x115a')]=_0x3da11b),_0x2f291c['getFaxQueues']());});function _0x148a80(_0x4c677d){const _0x305ac6=_0xfac762;_0x2f291c[_0x305ac6('0x1b01')]=_0x4c677d||{'count':0x0,'rows':[]};}function _0x2150f1(){const _0x28ccea=_0xfac762;_0x2f291c[_0x28ccea('0x826')][_0x28ccea('0xf19')]=(_0x2f291c['query'][_0x28ccea('0x115a')]-0x1)*_0x2f291c[_0x28ccea('0x826')][_0x28ccea('0x193b')],_0x2d30bd[_0x28ccea('0x1ba2')](_0x28ccea('0x20bf'))?_0x2f291c[_0x28ccea('0x1691')]=_0x2d30a5[_0x28ccea('0x384')][_0x28ccea('0x1c53')](_0x2f291c[_0x28ccea('0x826')],_0x148a80)[_0x28ccea('0x1af5')]:(_0x2f291c[_0x28ccea('0x826')]['id']=_0x2f291c[_0x28ccea('0xdeb')]['id'],_0x2f291c[_0x28ccea('0x826')][_0x28ccea('0x16f8')]='FaxQueues',_0x2f291c[_0x28ccea('0x1691')]=_0x2d30a5['userProfile'][_0x28ccea('0x2447')](_0x2f291c[_0x28ccea('0x826')],_0x148a80)[_0x28ccea('0x1af5')]);}function _0x1f79f4(_0x331c58,_0x38c6d9){const _0x31b962=_0xfac762;_0x5b8677[_0x31b962('0x28e2')]({'controller':_0x31b962('0x1011'),'controllerAs':'vm','templateUrl':_0x158e59,'parent':angular[_0x31b962('0x1ce1')](_0x2b7ce1[_0x31b962('0x13aa')]),'targetEvent':_0x331c58,'clickOutsideToClose':!![],'locals':{'faxQueue':_0x38c6d9,'faxQueues':_0x2f291c[_0x31b962('0x1b01')][_0x31b962('0x2319')],'license':_0x2f291c[_0x31b962('0x1d11')],'setting':_0x2f291c['setting'],'crudPermissions':_0x2f291c[_0x31b962('0x103e')]}});}function _0x2c40a4(_0x5f36f3){const _0x390725=_0xfac762;_0x2d30a5[_0x390725('0x384')][_0x390725('0x1da6')]({'id':_0x5f36f3['id']})[_0x390725('0x1af5')][_0x390725('0x17e7')](function(){const _0x1a8298=_0x390725;_0x49cbdd()[_0x1a8298('0x5f3')](_0x2f291c[_0x1a8298('0x1b01')][_0x1a8298('0x2319')],{'id':_0x5f36f3['id']}),_0x2f291c['faxQueues'][_0x1a8298('0x335')]-=0x1,!_0x2f291c[_0x1a8298('0x1b01')][_0x1a8298('0x2319')][_0x1a8298('0x1f73')]&&_0x2f291c[_0x1a8298('0xfec')](),_0x5a1d32['success']({'title':_0x49cbdd()[_0x1a8298('0x1c98')]('FaxQueue')+_0x1a8298('0x2673'),'msg':_0x5f36f3[_0x1a8298('0x2aa')]?_0x5f36f3[_0x1a8298('0x2aa')]+_0x1a8298('0x149f'):''});})[_0x390725('0x16df')](function(_0x32ad48){const _0xb7c341=_0x390725;if(_0x32ad48[_0xb7c341('0x1457')]&&_0x32ad48[_0xb7c341('0x1457')]['errors']&&_0x32ad48[_0xb7c341('0x1457')][_0xb7c341('0x73e')]['length']){_0x2f291c[_0xb7c341('0x73e')]=_0x32ad48['data'][_0xb7c341('0x73e')]||[{'message':_0x32ad48[_0xb7c341('0x9b6')](),'type':'SYSTEM:DELETEfaxQueue'}];for(let _0x39d143=0x0;_0x39d143<_0x32ad48[_0xb7c341('0x1457')][_0xb7c341('0x73e')][_0xb7c341('0x1f73')];_0x39d143++){_0x5a1d32[_0xb7c341('0x1db9')]({'title':_0x32ad48[_0xb7c341('0x1457')][_0xb7c341('0x73e')][_0x39d143][_0xb7c341('0x412')],'msg':_0x32ad48[_0xb7c341('0x1457')][_0xb7c341('0x73e')][_0x39d143]['message']});}}else _0x5a1d32[_0xb7c341('0x1db9')]({'title':_0x32ad48[_0xb7c341('0x11c5')]?_0xb7c341('0x14f7')+_0x32ad48[_0xb7c341('0x11c5')]+_0xb7c341('0x16e4')+_0x32ad48[_0xb7c341('0x1833')]:_0xb7c341('0x26e7'),'msg':_0x32ad48[_0xb7c341('0x1457')]?JSON['stringify'](_0x32ad48['data'][_0xb7c341('0x1603')]):_0x32ad48[_0xb7c341('0x1603')]||_0x32ad48[_0xb7c341('0x9b6')]()});});}function _0x497a2a(){const _0x4fd6b5=_0xfac762,_0x43a8fc=angular[_0x4fd6b5('0x14e5')](_0x2f291c[_0x4fd6b5('0xb7e')]);return _0x2f291c['selectedFaxQueues']=[],_0x43a8fc;}function _0x3cde33(_0x48cbe2){const _0x3bcac6=_0xfac762,_0x5bd65f=_0x5b8677[_0x3bcac6('0x1121')]()[_0x3bcac6('0x24d3')](_0x3bcac6('0x17a0'))[_0x3bcac6('0x211f')](_0x3bcac6('0xa53')+_0x2f291c[_0x3bcac6('0xb7e')][_0x3bcac6('0x1f73')]+_0x3bcac6('0x145a')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x3bcac6('0xd96'))[_0x3bcac6('0x104f')](_0x48cbe2)['ok']('OK')[_0x3bcac6('0x1d47')](_0x3bcac6('0x28a0'));_0x5b8677[_0x3bcac6('0x28e2')](_0x5bd65f)[_0x3bcac6('0x17e7')](function(){const _0x22bc54=_0x3bcac6;_0x2f291c[_0x22bc54('0xb7e')]['forEach'](function(_0x57ff7f){_0x2c40a4(_0x57ff7f);}),_0x2f291c[_0x22bc54('0xb7e')]=[];});}function _0x1e22b4(){const _0x387fc5=_0xfac762;_0x2f291c[_0x387fc5('0xb7e')]=[];}function _0x50b16d(){const _0x1036af=_0xfac762;_0x2f291c[_0x1036af('0xb7e')]=_0x2f291c[_0x1036af('0x1b01')][_0x1036af('0x2319')];}}const _0x43d5f0=_0x8caf2f;_0x44b145[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x44b145(_0x57c22f,_0x1a11f8){const _0x326aa1=_0x4376d8;_0x57c22f[_0x326aa1('0x1b9a')](_0x326aa1('0x1c74'),{'abstract':!![],'url':'/fax'})[_0x326aa1('0x1b9a')](_0x326aa1('0x1222'),{'url':'/faxQueues','views':{'content@app':{'templateUrl':_0x369ef1,'controller':_0x326aa1('0x19b2')}},'resolve':{'faxQueues':[_0x326aa1('0x177'),'Auth',function(_0x19f4b1,_0xe9e189){const _0xa52f26=_0x326aa1;return _0xe9e189[_0xa52f26('0x1ba2')]('admin')?_0x19f4b1[_0xa52f26('0x898')](_0xa52f26('0xff1'),{'fields':_0xa52f26('0x1029'),'sort':_0xa52f26('0x1ac6'),'channel':_0xa52f26('0xc23'),'limit':0xa,'offset':0x0}):_0x19f4b1[_0xa52f26('0x898')](_0xa52f26('0x1164'),{'id':_0xe9e189[_0xa52f26('0x2831')]()[_0xa52f26('0x1e76')],'section':_0xa52f26('0x1a10'),'fields':_0xa52f26('0x1029'),'sort':_0xa52f26('0x1ac6'),'channel':'fax','limit':0xa,'offset':0x0});}],'userProfile':[_0x326aa1('0x177'),'Auth',function(_0x569126,_0x563423){const _0x3e3f21=_0x326aa1;return _0x563423[_0x3e3f21('0x1ba2')](_0x3e3f21('0x20bf'))?null:_0x569126[_0x3e3f21('0x898')](_0x3e3f21('0x235d'),{'fields':_0x3e3f21('0x8d3'),'id':_0x563423[_0x3e3f21('0x2831')]()[_0x3e3f21('0x1e76')]});}],'userProfileSection':['apiResolver','Auth',function(_0x445518,_0x483ca3){const _0x50b876=_0x326aa1;return _0x483ca3['hasRole'](_0x50b876('0x20bf'))?null:_0x445518['resolve'](_0x50b876('0x23e7'),{'fields':_0x50b876('0x1134'),'userProfileId':_0x483ca3[_0x50b876('0x2831')]()[_0x50b876('0x1e76')],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':_0x326aa1('0xc23')})[_0x326aa1('0x1b9a')](_0x326aa1('0x26eb'),{'url':'/:id?tab','params':{'faxQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x2ca541,'controller':'FaxQueueController\x20as\x20vm'}},'resolve':{'faxQueue':[_0x326aa1('0x177'),_0x326aa1('0x118b'),function(_0x23867b,_0x508337){const _0x56b605=_0x326aa1;return _0x23867b[_0x56b605('0x898')](_0x56b605('0xff1'),{'fields':_0x56b605('0x1029'),'id':_0x508337['id']});}],'userProfileSection':[_0x326aa1('0x177'),_0x326aa1('0x1885'),function(_0x1d06f9,_0x15c5db){const _0x4cbcc3=_0x326aa1;return _0x1d06f9[_0x4cbcc3('0x898')](_0x4cbcc3('0x23e7'),{'fields':_0x4cbcc3('0x1134'),'userProfileId':_0x15c5db[_0x4cbcc3('0x2831')]()['userProfileId'],'sectionId':0x385});}]},'authenticate':!![],'permissionId':0x385,'bodyClass':'fax'})[_0x326aa1('0x1b9a')](_0x326aa1('0x2525'),{'url':_0x326aa1('0x13c1'),'views':{'content@app':{'templateUrl':_0x52f87b,'controller':_0x326aa1('0x173')}},'resolve':{'faxAccounts':[_0x326aa1('0x177'),_0x326aa1('0x1885'),function(_0x458f39,_0x215620){const _0x52d1ba=_0x326aa1;return _0x215620[_0x52d1ba('0x1ba2')](_0x52d1ba('0x20bf'))?_0x458f39[_0x52d1ba('0x898')](_0x52d1ba('0x652'),{'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':_0x52d1ba('0x1ac6'),'limit':0xa,'offset':0x0}):_0x458f39[_0x52d1ba('0x898')](_0x52d1ba('0x1164'),{'id':_0x215620[_0x52d1ba('0x2831')]()['userProfileId'],'section':'FaxAccounts','fields':_0x52d1ba('0x1b0'),'sort':_0x52d1ba('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x326aa1('0x1885'),function(_0x20c8cc,_0x346cb7){const _0x1fb85a=_0x326aa1;return _0x346cb7['hasRole'](_0x1fb85a('0x20bf'))?null:_0x20c8cc[_0x1fb85a('0x898')](_0x1fb85a('0x235d'),{'fields':_0x1fb85a('0x8d3'),'id':_0x346cb7['getCurrentUser']()[_0x1fb85a('0x1e76')]});}],'userProfileSection':[_0x326aa1('0x177'),_0x326aa1('0x1885'),function(_0x56f210,_0x146bee){const _0x5db919=_0x326aa1;return _0x146bee[_0x5db919('0x1ba2')](_0x5db919('0x20bf'))?null:_0x56f210[_0x5db919('0x898')](_0x5db919('0x23e7'),{'fields':_0x5db919('0x1134'),'userProfileId':_0x146bee['getCurrentUser']()['userProfileId'],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':'fax'})[_0x326aa1('0x1b9a')](_0x326aa1('0x11cb'),{'url':_0x326aa1('0x2370'),'params':{'faxAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x180cb6,'controller':_0x326aa1('0x57e')}},'resolve':{'faxAccount':[_0x326aa1('0x177'),_0x326aa1('0x118b'),function(_0x3e8622,_0x1fd418){const _0x2536cc=_0x326aa1;return _0x3e8622[_0x2536cc('0x898')](_0x2536cc('0x652'),{'fields':_0x2536cc('0x1b0'),'id':_0x1fd418['id']});}],'userProfileSection':[_0x326aa1('0x177'),_0x326aa1('0x1885'),function(_0x1d0349,_0x141cee){const _0x21c278=_0x326aa1;return _0x1d0349[_0x21c278('0x898')](_0x21c278('0x23e7'),{'fields':_0x21c278('0x1134'),'userProfileId':_0x141cee[_0x21c278('0x2831')]()[_0x21c278('0x1e76')],'sectionId':0x386});}]},'authenticate':!![],'permissionId':0x386,'bodyClass':_0x326aa1('0xc23')}),_0x1a11f8[_0x326aa1('0x10b3')]('app/main/apps/fax');}angular[_0x4376d8('0x11c4')](_0x4376d8('0x1c74'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),'flow',_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),'ngAria',_0x4376d8('0x2757'),'mdPickers',_0x4376d8('0xcfd'),'mwFormViewer',_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),'angularMaterialFormBuilder','material.components.expansionPanels',_0x4376d8('0x4c8'),_0x4376d8('0x178b'),'app.fax.realtime'])[_0x4376d8('0x1980')](_0x44b145)[_0x4376d8('0x5ce')]('CreateOrEditFaxAccountDialogController',_0x171293)[_0x4376d8('0x5ce')](_0x4376d8('0xd2c'),_0x14c020)[_0x4376d8('0x5ce')](_0x4376d8('0x1788'),_0x51300c)[_0x4376d8('0x5ce')](_0x4376d8('0x12ce'),_0x414aa3)[_0x4376d8('0x5ce')](_0x4376d8('0x2151'),_0x300b20)[_0x4376d8('0x5ce')](_0x4376d8('0x2418'),_0x1051d9)[_0x4376d8('0x5ce')](_0x4376d8('0x1f3f'),_0x5c3676)[_0x4376d8('0x5ce')](_0x4376d8('0x6b0'),_0x688d8d)[_0x4376d8('0x5ce')](_0x4376d8('0x1b3b'),_0x581cea)[_0x4376d8('0x5ce')]('EditFaxAccountAppqueueDialogController',_0x35ec40)[_0x4376d8('0x5ce')](_0x4376d8('0x21f'),_0x6f80b5)[_0x4376d8('0x5ce')]('EditFaxAccountApptagDialogController',_0x2db20d)[_0x4376d8('0x5ce')](_0x4376d8('0x93'),_0x2a5629)[_0x4376d8('0x5ce')]('FaxAccountInteractionsController',_0x175ff3)[_0x4376d8('0x5ce')]('FaxAccountController',_0x3f532e)[_0x4376d8('0x5ce')](_0x4376d8('0x18b4'),_0x32eb30)[_0x4376d8('0x5ce')](_0x4376d8('0x1011'),_0x372393)[_0x4376d8('0x5ce')](_0x4376d8('0x148d'),_0x22303f)[_0x4376d8('0x5ce')]('FaxQueueteamaddController',_0x3c236b)[_0x4376d8('0x5ce')](_0x4376d8('0x23d0'),_0x1a3067)[_0x4376d8('0x5ce')](_0x4376d8('0x1037'),_0x43d5f0);const _0xb0109a=_0x4cf2bc['p']+_0x4376d8('0x22d3');_0x3dd25f['$inject']=[_0x4376d8('0x14f6'),_0x4376d8('0x28da'),'$q','toasty',_0x4376d8('0x23fe'),_0x4376d8('0x1f27'),'model',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e'),_0x4376d8('0x1d11'),'setting'];function _0x3dd25f(_0x56aff6,_0x5a3223,_0xf042be,_0x481539,_0x4f55a8,_0x5d411d,_0x39c042,_0xb2513f,_0x3f2956,_0x1dccaf,_0xbc67eb,_0x5e7497){const _0x3d42e7=_0x4376d8,_0x12f87b=this;_0x12f87b[_0x3d42e7('0x197c')]=_0x3f2956[_0x3d42e7('0x2831')](),_0x12f87b[_0x3d42e7('0x1f27')]=angular[_0x3d42e7('0x14e5')](_0x5d411d),_0x12f87b['dispositions']=angular[_0x3d42e7('0x14e5')](_0x4f55a8),_0x12f87b[_0x3d42e7('0x1aeb')]=_0x5e7497,_0x12f87b[_0x3d42e7('0x1d11')]=_0xbc67eb,_0x12f87b[_0x3d42e7('0x103e')]=_0x1dccaf,_0x12f87b[_0x3d42e7('0x16f7')]=![],_0x12f87b['errors']=[];!_0x12f87b[_0x3d42e7('0x1f27')]?(_0x12f87b[_0x3d42e7('0x1f27')]={'level':_0x3d42e7('0x1624')},_0x12f87b[_0x3d42e7('0x16f7')]=!![]):_0x538e0b();if(_0x39c042){const _0x14fd4c=_0x39c042[_0x3d42e7('0x1515')];_0x12f87b[_0x3d42e7('0x1f27')][_0x14fd4c]=_0x39c042['id'];}_0x12f87b[_0x3d42e7('0x4f')]=_0xf38780,_0x12f87b[_0x3d42e7('0x23e5')]=_0x275538,_0x12f87b[_0x3d42e7('0x24d6')]=_0x601e37,_0x12f87b['deleteDisposition']=_0x409a90,_0x12f87b[_0x3d42e7('0xf7')]=_0x24e3f9,_0x12f87b['closeDialog']=_0x516ec1;function _0x538e0b(){const _0x424ddf=_0x3d42e7;if(_0x12f87b[_0x424ddf('0x1f27')][_0x424ddf('0x1465')]===_0x424ddf('0x1624'))return;_0x12f87b[_0x424ddf('0x369')]=_0x49cbdd()[_0x424ddf('0xe8e')](_0x12f87b['dispositions'],['id',_0x12f87b['disposition'][_0x424ddf('0x1a27')]]);if(!_0x12f87b['parentDisposition']){_0x17c165()[_0x424ddf('0x17e7')](function(){const _0x29fb81=_0x424ddf;for(let _0x177303=0x0;_0x177303<_0x12f87b['allDispositions'][_0x29fb81('0x1f73')];_0x177303++){const _0x27e648=_0x12f87b[_0x29fb81('0xb2e')][_0x177303];if(_0x27e648['id']===_0x12f87b[_0x29fb81('0x1f27')][_0x29fb81('0x1a27')]){_0x4ceef2(_0x27e648),_0x27e648[_0x29fb81('0xe5c')]=![],_0x12f87b['dispositions'][_0x29fb81('0x269f')](_0x27e648);break;}}});return;}_0x4ceef2(_0x12f87b[_0x424ddf('0x369')]);}function _0x17c165(){return _0xf042be(function(_0x8643a1,_0x4b656f){const _0x56e14b=a0_0xd29e;_0xb2513f[_0x56e14b('0x1f27')][_0x56e14b('0x1c53')]({'fields':_0x56e14b('0x63d'),'sort':'id','nolimit':_0x56e14b('0xe34')})[_0x56e14b('0x1af5')][_0x56e14b('0x17e7')](function(_0x108138){const _0x35d993=_0x56e14b;_0x12f87b[_0x35d993('0xb2e')]=_0x108138[_0x35d993('0x2319')]||[],_0x8643a1();})[_0x56e14b('0x16df')](function(_0x5bb10e){_0x4b656f(_0x5bb10e);});});}function _0x4ceef2(_0x1342ee){const _0xdb6e38=_0x3d42e7;_0x1342ee[_0xdb6e38('0x1465')]==='first'?_0x12f87b[_0xdb6e38('0x1278')]=_0x1342ee:(_0x12f87b['anySecondLevelDisposition']=!![],_0x12f87b[_0xdb6e38('0xb95')]=_0x1342ee,_0x12f87b[_0xdb6e38('0x1278')]=_0x49cbdd()[_0xdb6e38('0xe8e')](_0x12f87b[_0xdb6e38('0x23fe')],['id',_0x12f87b[_0xdb6e38('0xb95')][_0xdb6e38('0x1a27')]]),!_0x12f87b[_0xdb6e38('0x1278')]&&_0x17c165()['then'](function(){const _0x460e26=_0xdb6e38;_0x12f87b['firstLevelDisposition']=_0x49cbdd()['find'](_0x12f87b['allDispositions'],['id',_0x12f87b[_0x460e26('0xb95')][_0x460e26('0x1a27')]]),_0x12f87b['firstLevelDisposition'][_0x460e26('0xe5c')]=![],_0x12f87b[_0x460e26('0x23fe')][_0x460e26('0x269f')](_0x12f87b['firstLevelDisposition']);}));}function _0x24e3f9(_0x2bbaac){const _0x31eb7f=_0x3d42e7;_0x2bbaac===_0x31eb7f('0x1624')?(_0x12f87b[_0x31eb7f('0x1278')]=undefined,_0x12f87b[_0x31eb7f('0xb95')]=undefined,_0x12f87b[_0x31eb7f('0x1920')]=![]):_0x12f87b[_0x31eb7f('0xb95')]=undefined;}function _0xf38780(){const _0x553a65=_0x3d42e7;_0x12f87b[_0x553a65('0xb95')]=undefined,_0x12f87b['anySecondLevelDisposition']=_0x49cbdd()['some'](_0x12f87b[_0x553a65('0x23fe')],function(_0x269da0){const _0x2ec812=_0x553a65;return _0x269da0[_0x2ec812('0x1a27')]===_0x12f87b[_0x2ec812('0x1278')]['id']&&_0x269da0['id']!=_0x12f87b['disposition']['id'];});}function _0x275538(){const _0x16eec7=_0x3d42e7;_0x12f87b[_0x16eec7('0x73e')]=[];if(_0x12f87b[_0x16eec7('0xb95')])_0x12f87b[_0x16eec7('0x1f27')][_0x16eec7('0x1a27')]=_0x12f87b[_0x16eec7('0xb95')]['id'],_0x12f87b[_0x16eec7('0x1f27')][_0x16eec7('0x1465')]=_0x16eec7('0x3ba');else _0x12f87b[_0x16eec7('0x1278')]&&(_0x12f87b[_0x16eec7('0x1f27')][_0x16eec7('0x1a27')]=_0x12f87b[_0x16eec7('0x1278')]['id'],_0x12f87b[_0x16eec7('0x1f27')][_0x16eec7('0x1465')]=_0x16eec7('0x1e5a'));_0xb2513f['disposition']['save'](_0x12f87b[_0x16eec7('0x1f27')])[_0x16eec7('0x1af5')][_0x16eec7('0x17e7')](function(_0x1a58e8){const _0x555dc7=_0x16eec7;_0x12f87b[_0x555dc7('0x23fe')]['unshift'](_0x1a58e8[_0x555dc7('0x16b2')]()),_0x481539[_0x555dc7('0x130d')]({'title':_0x5a3223['instant'](_0x555dc7('0x220a'))}),_0x516ec1(!![]);})[_0x16eec7('0x16df')](function(_0xc4905c){const _0x2d2005=_0x16eec7;if(_0xc4905c[_0x2d2005('0x1457')]&&_0xc4905c[_0x2d2005('0x1457')][_0x2d2005('0x73e')]&&_0xc4905c[_0x2d2005('0x1457')][_0x2d2005('0x73e')][_0x2d2005('0x1f73')]){_0x12f87b[_0x2d2005('0x73e')]=_0xc4905c[_0x2d2005('0x1457')][_0x2d2005('0x73e')]||[{'message':_0xc4905c[_0x2d2005('0x9b6')](),'type':_0x2d2005('0x2749')}];for(let _0x55c65c=0x0;_0x55c65c<_0xc4905c[_0x2d2005('0x1457')][_0x2d2005('0x73e')][_0x2d2005('0x1f73')];_0x55c65c+=0x1){_0x481539[_0x2d2005('0x1db9')]({'title':_0xc4905c[_0x2d2005('0x1457')]['errors'][_0x55c65c][_0x2d2005('0x412')],'msg':_0xc4905c[_0x2d2005('0x1457')]['errors'][_0x55c65c][_0x2d2005('0x1603')]});}}else _0x481539[_0x2d2005('0x1db9')]({'title':_0xc4905c[_0x2d2005('0x11c5')]?_0x2d2005('0x14f7')+_0xc4905c[_0x2d2005('0x11c5')]+_0x2d2005('0x16e4')+_0xc4905c['statusText']:_0x2d2005('0x2749'),'msg':_0xc4905c[_0x2d2005('0x1457')]?JSON[_0x2d2005('0x678')](_0xc4905c[_0x2d2005('0x1457')][_0x2d2005('0x1603')]):_0xc4905c[_0x2d2005('0x9b6')]()});});}function _0x601e37(){const _0x4b7e75=_0x3d42e7;_0x12f87b[_0x4b7e75('0x73e')]=[];if(_0x12f87b[_0x4b7e75('0xb95')])_0x12f87b[_0x4b7e75('0x1f27')]['ParentId']=_0x12f87b[_0x4b7e75('0xb95')]['id'],_0x12f87b[_0x4b7e75('0x1f27')][_0x4b7e75('0x1465')]='third';else _0x12f87b[_0x4b7e75('0x1278')]&&(_0x12f87b[_0x4b7e75('0x1f27')][_0x4b7e75('0x1a27')]=_0x12f87b[_0x4b7e75('0x1278')]['id'],_0x12f87b[_0x4b7e75('0x1f27')][_0x4b7e75('0x1465')]=_0x4b7e75('0x1e5a'));_0xb2513f[_0x4b7e75('0x1f27')][_0x4b7e75('0x27ba')]({'id':_0x12f87b[_0x4b7e75('0x1f27')]['id']},_0x12f87b[_0x4b7e75('0x1f27')])[_0x4b7e75('0x1af5')][_0x4b7e75('0x17e7')](function(_0x30e352){const _0x45057c=_0x4b7e75,_0x3f5d12=_0x49cbdd()[_0x45057c('0xe8e')](_0x12f87b[_0x45057c('0x23fe')],{'id':_0x30e352['id']});_0x3f5d12&&_0x49cbdd()[_0x45057c('0x1ced')](_0x3f5d12,_0x49cbdd()[_0x45057c('0x230a')](_0x30e352[_0x45057c('0x16b2')](),_0x49cbdd()[_0x45057c('0x1c0f')](_0x3f5d12))),_0x481539[_0x45057c('0x130d')]({'title':_0x5a3223[_0x45057c('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITION_SAVED_SUCCESS_TITLE')}),_0x516ec1(!![]);})[_0x4b7e75('0x16df')](function(_0x32f39c){const _0x43aded=_0x4b7e75;if(_0x32f39c[_0x43aded('0x1457')]&&_0x32f39c['data'][_0x43aded('0x73e')]&&_0x32f39c[_0x43aded('0x1457')]['errors'][_0x43aded('0x1f73')]){_0x12f87b['errors']=_0x32f39c[_0x43aded('0x1457')][_0x43aded('0x73e')]||[{'message':_0x32f39c[_0x43aded('0x9b6')](),'type':_0x43aded('0x1f92')}];for(let _0x23d2fd=0x0;_0x23d2fd<_0x32f39c[_0x43aded('0x1457')][_0x43aded('0x73e')][_0x43aded('0x1f73')];_0x23d2fd++){_0x481539[_0x43aded('0x1db9')]({'title':_0x32f39c['data'][_0x43aded('0x73e')][_0x23d2fd][_0x43aded('0x412')],'msg':_0x32f39c['data'][_0x43aded('0x73e')][_0x23d2fd]['message']});}}else _0x481539['error']({'title':_0x32f39c['status']?_0x43aded('0x14f7')+_0x32f39c[_0x43aded('0x11c5')]+_0x43aded('0x16e4')+_0x32f39c[_0x43aded('0x1833')]:_0x43aded('0x1f92'),'msg':_0x32f39c[_0x43aded('0x1457')]?JSON[_0x43aded('0x678')](_0x32f39c[_0x43aded('0x1457')][_0x43aded('0x1603')]):_0x32f39c[_0x43aded('0x9b6')]()});});}function _0x409a90(_0x79dcb6){const _0x561e3d=_0x3d42e7;_0x12f87b[_0x561e3d('0x73e')]=[];const _0x398dca=_0x49cbdd()['some'](_0x12f87b[_0x561e3d('0x23fe')],[_0x561e3d('0x1a27'),_0x12f87b[_0x561e3d('0x1f27')]['id']]),_0x2e333b=_0x56aff6[_0x561e3d('0x1121')]({'skipHide':!![]})['title'](_0x5a3223['instant']('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x561e3d('0xd5')](_0x5a3223[_0x561e3d('0x1acc')](_0x561e3d('0x2ab')+(_0x398dca?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x561e3d('0xd6c')),{'name':_0x12f87b[_0x561e3d('0x1f27')]['name']}))['ariaLabel'](_0x561e3d('0x1596'))['ok'](_0x5a3223['instant']('TOOLS.DELETE'))[_0x561e3d('0x1d47')](_0x5a3223[_0x561e3d('0x1acc')](_0x561e3d('0x34f')))['targetEvent'](_0x79dcb6);_0x56aff6[_0x561e3d('0x28e2')](_0x2e333b)[_0x561e3d('0x17e7')](function(){const _0x266455=_0x561e3d;_0xb2513f[_0x266455('0x1f27')][_0x266455('0x1da6')]({'id':_0x12f87b[_0x266455('0x1f27')]['id']})[_0x266455('0x1af5')][_0x266455('0x17e7')](function(){const _0x5a025d=_0x266455;_0x481539['success']({'title':_0x5a3223[_0x5a025d('0x1acc')](_0x5a025d('0x10dc'))}),_0x516ec1(!![]);})[_0x266455('0x16df')](function(_0x8969ce){const _0x1ce4fd=_0x266455;if(_0x8969ce[_0x1ce4fd('0x1457')]&&_0x8969ce[_0x1ce4fd('0x1457')][_0x1ce4fd('0x73e')]&&_0x8969ce[_0x1ce4fd('0x1457')]['errors']['length']){_0x12f87b[_0x1ce4fd('0x73e')]=_0x8969ce[_0x1ce4fd('0x1457')][_0x1ce4fd('0x73e')]||[{'message':_0x8969ce['toString'](),'type':'api.disposition.delete'}];for(let _0x1a0df8=0x0;_0x1a0df8<_0x8969ce[_0x1ce4fd('0x1457')][_0x1ce4fd('0x73e')][_0x1ce4fd('0x1f73')];_0x1a0df8++){_0x481539[_0x1ce4fd('0x1db9')]({'title':_0x8969ce['data']['errors'][_0x1a0df8][_0x1ce4fd('0x412')],'msg':_0x8969ce[_0x1ce4fd('0x1457')][_0x1ce4fd('0x73e')][_0x1a0df8][_0x1ce4fd('0x1603')]});}}else _0x481539[_0x1ce4fd('0x1db9')]({'title':_0x8969ce['status']?_0x1ce4fd('0x14f7')+_0x8969ce[_0x1ce4fd('0x11c5')]+_0x1ce4fd('0x16e4')+_0x8969ce[_0x1ce4fd('0x1833')]:_0x1ce4fd('0x144c'),'msg':_0x8969ce[_0x1ce4fd('0x1457')]?JSON['stringify'](_0x8969ce[_0x1ce4fd('0x1457')][_0x1ce4fd('0x1603')]):_0x8969ce[_0x1ce4fd('0x1603')]||_0x8969ce[_0x1ce4fd('0x9b6')]()});});});}function _0x516ec1(_0x300b04){const _0x235bf6=_0x3d42e7;_0x56aff6[_0x235bf6('0x212a')](_0x300b04);}}const _0x30b38f=_0x3dd25f;_0x399a45['$inject']=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),'$mdSidenav','$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x23fe'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x399a45(_0x100082,_0x26b5b2,_0x1293c2,_0x247428,_0x427e3f,_0x3b7d2e,_0x204198,_0x4db75f,_0x2175be,_0x40d842,_0x1812ca,_0xed4a6a,_0x1ccd3c,_0x59b790,_0xb87ce5,_0x2cadf5){const _0x3b3d6c=_0x4376d8,_0x3b3234=this;_0x3b3234['license']=_0xb87ce5,_0x3b3234['setting']=_0x2cadf5,_0x3b3234[_0x3b3d6c('0x197c')]=_0x59b790['getCurrentUser'](),_0x3b3234[_0x3b3d6c('0x23fe')]=_0x2175be||{'count':0x0,'rows':[]},_0x3b3234[_0x3b3d6c('0xdeb')]=_0x40d842,_0x3b3234[_0x3b3d6c('0x383')]=_0x1812ca&&_0x1812ca[_0x3b3d6c('0x335')]==0x1?_0x1812ca[_0x3b3d6c('0x2319')][0x0]:null,_0x3b3234['crudPermissions']=_0x59b790[_0x3b3d6c('0x17a9')](_0x3b3234[_0x3b3d6c('0x383')]?_0x3b3234[_0x3b3d6c('0x383')][_0x3b3d6c('0x103e')]:null),_0x3b3234[_0x3b3d6c('0x440')]=[],_0x3b3234['levels']={'first':_0x3b3d6c('0xa13'),'second':_0x3b3d6c('0xf67'),'third':_0x3b3d6c('0x13a2')},_0x3b3234[_0x3b3d6c('0x826')]={'fields':_0x3b3d6c('0x2b9'),'sort':_0x3b3d6c('0x1ac6'),'MailAccountId':_0x3b3d6c('0x9bb'),'FaxAccountId':_0x3b3d6c('0x9bb'),'SmsAccountId':'null','OpenchannelAccountId':_0x3b3d6c('0x9bb'),'ChatWebsiteId':_0x3b3d6c('0x9bb'),'WhatsappAccountId':_0x3b3d6c('0x9bb'),'ListId':_0x3b3d6c('0x9bb'),'limit':0xa,'page':0x1},_0x3b3234['deleteconfirm']=_0x46ec61,_0x3b3234[_0x3b3d6c('0x130d')]=_0x4661a0,_0x3b3234[_0x3b3d6c('0x26c2')]=_0x3f64d5,_0x3b3234[_0x3b3d6c('0x1eff')]=_0x3656b6,_0x3b3234[_0x3b3d6c('0x2802')]=_0x5f1ebe,_0x3b3234[_0x3b3d6c('0xa8e')]=_0x2059ea,_0x3b3234['deleteSelectedDispositions']=_0x280c23,_0x3b3234[_0x3b3d6c('0x4cb')]=_0x4b5fb3,_0x3b3234[_0x3b3d6c('0x11d8')]=_0x10ae31;function _0x3656b6(_0x47dbc0,_0x32b0d8){const _0x4b6c41=_0x3b3d6c;_0x427e3f[_0x4b6c41('0x28e2')]({'controller':_0x4b6c41('0x8e0'),'controllerAs':'vm','templateUrl':_0x27dcbe,'parent':angular[_0x4b6c41('0x1ce1')](_0x3b7d2e[_0x4b6c41('0x13aa')]),'targetEvent':_0x47dbc0,'clickOutsideToClose':!![],'locals':{'disposition':_0x32b0d8,'dispositions':_0x3b3234['dispositions'][_0x4b6c41('0x2319')],'model':null,'license':_0x3b3234[_0x4b6c41('0x1d11')],'setting':_0x3b3234[_0x4b6c41('0x1aeb')],'crudPermissions':_0x3b3234[_0x4b6c41('0x103e')]}})[_0x4b6c41('0x17e7')](function(_0x500a06){if(_0x500a06===!![])_0x3f64d5();});}function _0x46ec61(_0x9dffc6,_0x3f9e59){const _0x18b634=_0x3b3d6c,_0x173a4e=_0x49cbdd()[_0x18b634('0x26f8')](_0x3b3234[_0x18b634('0x23fe')][_0x18b634('0x2319')],['ParentId',_0x9dffc6['id']]),_0x53d301=_0x427e3f[_0x18b634('0x1121')]()[_0x18b634('0x24d3')](_0x4db75f[_0x18b634('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))['content'](_0x4db75f[_0x18b634('0x1acc')](_0x18b634('0x2ab')+(_0x173a4e?'DISPOSITION_DELETE_MESSAGE_CHILDREN':_0x18b634('0xd6c')),{'name':_0x9dffc6[_0x18b634('0x2aa')]}))[_0x18b634('0x2095')](_0x18b634('0x1596'))[_0x18b634('0x104f')](_0x3f9e59)['ok']('OK')[_0x18b634('0x1d47')](_0x4db75f[_0x18b634('0x1acc')](_0x18b634('0x34f')));_0x427e3f[_0x18b634('0x28e2')](_0x53d301)[_0x18b634('0x17e7')](function(){_0x5f1ebe(_0x9dffc6);});}function _0x4661a0(_0x2f3df1){const _0x3075bc=_0x3b3d6c;_0x3b3234[_0x3075bc('0x23fe')]=_0x2f3df1||{'count':0x0,'rows':[]};}function _0x3f64d5(){const _0x26629e=_0x3b3d6c;_0x3b3234[_0x26629e('0x826')]['offset']=(_0x3b3234[_0x26629e('0x826')]['page']-0x1)*_0x3b3234[_0x26629e('0x826')]['limit'],_0x59b790['isAdmin']()?_0x3b3234[_0x26629e('0x1691')]=_0xed4a6a[_0x26629e('0x1f27')][_0x26629e('0x1c53')](_0x3b3234[_0x26629e('0x826')],_0x4661a0)['$promise']:(_0x3b3234[_0x26629e('0x826')]['id']=_0x3b3234[_0x26629e('0xdeb')]['id'],_0x3b3234[_0x26629e('0x826')][_0x26629e('0x16f8')]=_0x26629e('0x1fa7'),_0x3b3234[_0x26629e('0x1691')]=_0xed4a6a[_0x26629e('0xdeb')][_0x26629e('0x2447')](_0x3b3234[_0x26629e('0x826')],_0x4661a0)[_0x26629e('0x1af5')]);}function _0x5f1ebe(_0x1abfe8){const _0x5b43b5=_0x3b3d6c;_0xed4a6a[_0x5b43b5('0x1f27')][_0x5b43b5('0x1da6')]({'id':_0x1abfe8['id']})[_0x5b43b5('0x1af5')][_0x5b43b5('0x17e7')](function(){const _0x23acbf=_0x5b43b5;_0x3f64d5(),_0x1ccd3c[_0x23acbf('0x130d')]({'title':_0x4db75f[_0x23acbf('0x1acc')](_0x23acbf('0x10dc'))});})['catch'](function(_0x1b084b){const _0x25d92e=_0x5b43b5;if(_0x1b084b[_0x25d92e('0x1457')]&&_0x1b084b[_0x25d92e('0x1457')]['errors']&&_0x1b084b[_0x25d92e('0x1457')][_0x25d92e('0x73e')][_0x25d92e('0x1f73')]){_0x3b3234[_0x25d92e('0x73e')]=_0x1b084b[_0x25d92e('0x1457')][_0x25d92e('0x73e')]||[{'message':_0x1b084b[_0x25d92e('0x9b6')](),'type':_0x25d92e('0x104a')}];for(let _0x4bbef7=0x0;_0x4bbef7<_0x1b084b[_0x25d92e('0x1457')][_0x25d92e('0x73e')][_0x25d92e('0x1f73')];_0x4bbef7++){_0x1ccd3c[_0x25d92e('0x1db9')]({'title':_0x1b084b['data'][_0x25d92e('0x73e')][_0x4bbef7][_0x25d92e('0x412')],'msg':_0x1b084b[_0x25d92e('0x1457')]['errors'][_0x4bbef7][_0x25d92e('0x1603')]});}}else _0x1ccd3c[_0x25d92e('0x1db9')]({'title':_0x1b084b['status']?_0x25d92e('0x14f7')+_0x1b084b[_0x25d92e('0x11c5')]+_0x25d92e('0x16e4')+_0x1b084b[_0x25d92e('0x1833')]:'SYSTEM:DELETEdisposition','msg':_0x1b084b[_0x25d92e('0x1457')]?JSON[_0x25d92e('0x678')](_0x1b084b[_0x25d92e('0x1457')][_0x25d92e('0x1603')]):_0x1b084b['message']||_0x1b084b[_0x25d92e('0x9b6')]()});});}function _0x2059ea(){const _0x1298bf=_0x3b3d6c,_0x9197a2=angular[_0x1298bf('0x14e5')](_0x3b3234[_0x1298bf('0x440')]);return _0x3b3234[_0x1298bf('0x440')]=[],_0x9197a2;}function _0x280c23(_0xf4d91d){const _0x2ca43b=_0x3b3d6c,_0x17511a=_0x427e3f[_0x2ca43b('0x1121')]()[_0x2ca43b('0x24d3')](_0x4db75f[_0x2ca43b('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x2ca43b('0xd5')](_0x4db75f['instant'](_0x2ca43b('0x11b8'),{'total':_0x3b3234[_0x2ca43b('0x440')][_0x2ca43b('0x1f73')]}))[_0x2ca43b('0x2095')](_0x2ca43b('0x844'))[_0x2ca43b('0x104f')](_0xf4d91d)['ok']('OK')[_0x2ca43b('0x1d47')](_0x4db75f[_0x2ca43b('0x1acc')](_0x2ca43b('0x34f')));_0x427e3f['show'](_0x17511a)[_0x2ca43b('0x17e7')](function(){const _0x21dfec=_0x2ca43b;_0x3b3234[_0x21dfec('0x440')][_0x21dfec('0xccd')](function(_0x422af0){_0x5f1ebe(_0x422af0);}),_0x3b3234[_0x21dfec('0x440')]=[];});}function _0x4b5fb3(){const _0x298fab=_0x3b3d6c;_0x3b3234[_0x298fab('0x440')]=[];}function _0x10ae31(){const _0x22b1a0=_0x3b3d6c;_0x3b3234[_0x22b1a0('0x440')]=_0x3b3234[_0x22b1a0('0x23fe')][_0x22b1a0('0x2319')];}let _0x33e01b=!![],_0x411b08=0x1;_0x100082[_0x3b3d6c('0x620')](_0x3b3d6c('0x3ed'),function(_0x222d46,_0x392475){const _0x2829a4=_0x3b3d6c;_0x33e01b?_0x204198(function(){_0x33e01b=![];}):(!_0x392475&&(_0x411b08=_0x3b3234[_0x2829a4('0x826')]['page']),_0x222d46!==_0x392475&&(_0x3b3234[_0x2829a4('0x826')][_0x2829a4('0x115a')]=0x1),!_0x222d46&&(_0x3b3234[_0x2829a4('0x826')][_0x2829a4('0x115a')]=_0x411b08),_0x3f64d5());});}const _0x166ad5=_0x399a45;_0x237f6d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x237f6d(_0x1a9dd5){const _0x448322=_0x4376d8;_0x1a9dd5['state'](_0x448322('0x1cb1'),{'url':_0x448322('0x4da'),'views':{'content@app':{'templateUrl':_0xb0109a,'controller':_0x448322('0x3cc')}},'resolve':{'dispositions':[_0x448322('0x177'),_0x448322('0x1885'),function(_0x224403,_0x15734d){const _0x323fb0=_0x448322;return _0x15734d['hasRole'](_0x323fb0('0x20bf'))?_0x224403['resolve'](_0x323fb0('0x18d5'),{'fields':_0x323fb0('0x2b9'),'sort':'-updatedAt','MailAccountId':_0x323fb0('0x9bb'),'FaxAccountId':_0x323fb0('0x9bb'),'SmsAccountId':'null','OpenchannelAccountId':'null','ChatWebsiteId':_0x323fb0('0x9bb'),'WhatsappAccountId':_0x323fb0('0x9bb'),'ListId':_0x323fb0('0x9bb'),'limit':0xa,'offset':0x0}):_0x224403[_0x323fb0('0x898')](_0x323fb0('0x1164'),{'id':_0x15734d[_0x323fb0('0x2831')]()[_0x323fb0('0x1e76')],'section':_0x323fb0('0x1fa7'),'fields':_0x323fb0('0x2b9'),'sort':'-updatedAt','MailAccountId':'null','FaxAccountId':_0x323fb0('0x9bb'),'SmsAccountId':_0x323fb0('0x9bb'),'OpenchannelAccountId':_0x323fb0('0x9bb'),'ChatWebsiteId':_0x323fb0('0x9bb'),'WhatsappAccountId':'null','ListId':_0x323fb0('0x9bb'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x448322('0x1885'),function(_0x297ff7,_0x324390){const _0x1562ba=_0x448322;return _0x324390[_0x1562ba('0x1ba2')]('admin')?null:_0x297ff7[_0x1562ba('0x898')](_0x1562ba('0x235d'),{'fields':_0x1562ba('0x8d3'),'id':_0x324390[_0x1562ba('0x2831')]()[_0x1562ba('0x1e76')]});}],'userProfileSection':[_0x448322('0x177'),'Auth',function(_0x28df32,_0x539bdf){const _0xeddd68=_0x448322;return _0x539bdf[_0xeddd68('0x1ba2')](_0xeddd68('0x20bf'))?null:_0x28df32['resolve']('userProfileSection@get',{'fields':_0xeddd68('0x1134'),'userProfileId':_0x539bdf[_0xeddd68('0x2831')]()[_0xeddd68('0x1e76')],'sectionId':0x3ea});}]},'authenticate':!![],'permissionId':0x3ea,'bodyClass':_0x448322('0x238f')});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x1cb1'),[])[_0x4376d8('0x1980')](_0x237f6d)['controller'](_0x4376d8('0x8e0'),_0x30b38f)['controller'](_0x4376d8('0x1864'),_0x166ad5);const _0x1679bf=_0x4cf2bc['p']+_0x4376d8('0x2d0'),_0x289e24=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/triggers/edit/view.html/view.html';_0x2fc772[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x28da'),'toasty',_0x4376d8('0x1133'),_0x4376d8('0x1c8d'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x2fc772(_0x2ac4fd,_0x3db1ac,_0x41dc52,_0x47b8fa,_0x485f66,_0x492b57,_0x324371,_0x5c2872,_0x130cb5,_0x21acca){const _0x1afb01=_0x4376d8,_0x9c0695=this;_0x9c0695['currentUser']=_0x324371[_0x1afb01('0x2831')](),_0x9c0695[_0x1afb01('0x1c8d')]=angular[_0x1afb01('0x14e5')](_0x485f66),_0x9c0695[_0x1afb01('0x1133')]=angular['copy'](_0x47b8fa),_0x9c0695['setting']=_0x130cb5,_0x9c0695[_0x1afb01('0x1d11')]=_0x5c2872,_0x9c0695['crudPermissions']=_0x21acca,_0x9c0695[_0x1afb01('0x1975')]=![],_0x9c0695[_0x1afb01('0x73e')]=[];!_0x9c0695[_0x1afb01('0x1c8d')]&&(_0x9c0695['trigger']={'channel':'voice'},_0x9c0695[_0x1afb01('0x1975')]=!![]);_0x9c0695[_0x1afb01('0x2205')]=_0x46de83,_0x9c0695[_0x1afb01('0xc4f')]=_0x230d55,_0x9c0695[_0x1afb01('0x145d')]=_0x381710,_0x9c0695[_0x1afb01('0x136e')]=_0x3bf10a;function _0x46de83(){const _0x416131=_0x1afb01;_0x9c0695['errors']=[],_0x492b57[_0x416131('0x1c8d')][_0x416131('0x2439')](_0x9c0695[_0x416131('0x1c8d')])[_0x416131('0x1af5')][_0x416131('0x17e7')](function(_0x5480a0){const _0x394b21=_0x416131;_0x9c0695[_0x394b21('0x1133')][_0x394b21('0x1893')](_0x5480a0['toJSON']()),_0x41dc52['success']({'title':_0x3db1ac[_0x394b21('0x1acc')](_0x394b21('0x2207'))}),_0x3bf10a(_0x9c0695['triggers']);})['catch'](function(_0x1966ff){const _0x204faf=_0x416131;if(_0x1966ff[_0x204faf('0x1457')]&&_0x1966ff[_0x204faf('0x1457')]['errors']&&_0x1966ff['data'][_0x204faf('0x73e')][_0x204faf('0x1f73')]){_0x9c0695[_0x204faf('0x73e')]=_0x1966ff['data'][_0x204faf('0x73e')]||[{'message':_0x1966ff[_0x204faf('0x9b6')](),'type':_0x204faf('0x2601')}];for(let _0x9f2c25=0x0;_0x9f2c25<_0x1966ff[_0x204faf('0x1457')][_0x204faf('0x73e')][_0x204faf('0x1f73')];_0x9f2c25+=0x1){_0x41dc52[_0x204faf('0x1db9')]({'title':_0x1966ff[_0x204faf('0x1457')]['errors'][_0x9f2c25][_0x204faf('0x412')],'msg':_0x1966ff[_0x204faf('0x1457')][_0x204faf('0x73e')][_0x9f2c25]['message']});}}else _0x41dc52[_0x204faf('0x1db9')]({'title':_0x1966ff[_0x204faf('0x11c5')]?_0x204faf('0x14f7')+_0x1966ff['status']+_0x204faf('0x16e4')+_0x1966ff[_0x204faf('0x1833')]:_0x204faf('0x2601'),'msg':_0x1966ff[_0x204faf('0x1457')]?JSON['stringify'](_0x1966ff[_0x204faf('0x1457')][_0x204faf('0x1603')]):_0x1966ff[_0x204faf('0x9b6')]()});});}function _0x230d55(){const _0xdf50f=_0x1afb01;_0x9c0695[_0xdf50f('0x73e')]=[],_0x492b57[_0xdf50f('0x1c8d')]['update']({'id':_0x9c0695['trigger']['id']},_0x9c0695[_0xdf50f('0x1c8d')])[_0xdf50f('0x1af5')]['then'](function(){const _0x3ed290=_0xdf50f;_0x9c0695[_0x3ed290('0x1133')]=_0x49cbdd()[_0x3ed290('0x787')](_0x9c0695[_0x3ed290('0x1133')],function(_0x3fa1a1){const _0x4990da=_0x3ed290;if(_0x3fa1a1['id']===_0x9c0695['trigger']['id'])return _0x9c0695[_0x4990da('0x1c8d')];else return _0x3fa1a1;}),_0x41dc52['success']({'title':_0x3db1ac[_0x3ed290('0x1acc')](_0x3ed290('0x1a5a'))}),_0x3bf10a(_0x9c0695['triggers']);})[_0xdf50f('0x16df')](function(_0x123bfd){const _0x2672be=_0xdf50f;if(_0x123bfd['data']&&_0x123bfd['data'][_0x2672be('0x73e')]&&_0x123bfd[_0x2672be('0x1457')][_0x2672be('0x73e')]['length']){_0x9c0695[_0x2672be('0x73e')]=_0x123bfd['data'][_0x2672be('0x73e')]||[{'message':_0x123bfd[_0x2672be('0x9b6')](),'type':_0x2672be('0x244')}];for(let _0x16aa78=0x0;_0x16aa78<_0x123bfd[_0x2672be('0x1457')][_0x2672be('0x73e')][_0x2672be('0x1f73')];_0x16aa78++){_0x41dc52['error']({'title':_0x123bfd['data'][_0x2672be('0x73e')][_0x16aa78][_0x2672be('0x412')],'msg':_0x123bfd[_0x2672be('0x1457')]['errors'][_0x16aa78][_0x2672be('0x1603')]});}}else _0x41dc52['error']({'title':_0x123bfd[_0x2672be('0x11c5')]?_0x2672be('0x14f7')+_0x123bfd[_0x2672be('0x11c5')]+_0x2672be('0x16e4')+_0x123bfd['statusText']:_0x2672be('0x244'),'msg':_0x123bfd[_0x2672be('0x1457')]?JSON[_0x2672be('0x678')](_0x123bfd[_0x2672be('0x1457')][_0x2672be('0x1603')]):_0x123bfd[_0x2672be('0x9b6')]()});});}function _0x381710(_0x198c2d){const _0x5ce1a7=_0x1afb01;_0x9c0695[_0x5ce1a7('0x73e')]=[];const _0x1cd810=_0x2ac4fd[_0x5ce1a7('0x1121')]({'skipHide':!![]})['title'](_0x3db1ac[_0x5ce1a7('0x1acc')](_0x5ce1a7('0x2453')))[_0x5ce1a7('0xd5')](_0x3db1ac[_0x5ce1a7('0x1acc')](_0x5ce1a7('0x113e'),{'name':_0x9c0695[_0x5ce1a7('0x1c8d')]['name']}))['ariaLabel'](_0x5ce1a7('0x2444'))['ok'](_0x3db1ac[_0x5ce1a7('0x1acc')](_0x5ce1a7('0x1bca')))[_0x5ce1a7('0x1d47')](_0x3db1ac[_0x5ce1a7('0x1acc')]('TOOLS.CANCEL'))[_0x5ce1a7('0x104f')](_0x198c2d);_0x2ac4fd['show'](_0x1cd810)[_0x5ce1a7('0x17e7')](function(){const _0x7ee7df=_0x5ce1a7;_0x492b57[_0x7ee7df('0x1c8d')][_0x7ee7df('0x1da6')]({'id':_0x9c0695[_0x7ee7df('0x1c8d')]['id']})[_0x7ee7df('0x1af5')]['then'](function(){const _0x560b8c=_0x7ee7df;_0x9c0695[_0x560b8c('0x1133')]=_0x49cbdd()[_0x560b8c('0x2483')](_0x9c0695[_0x560b8c('0x1133')],function(_0x1d2e50){const _0x4f816b=_0x560b8c;return _0x1d2e50['id']!==_0x9c0695[_0x4f816b('0x1c8d')]['id'];}),_0x41dc52['success']({'title':_0x3db1ac[_0x560b8c('0x1acc')](_0x560b8c('0x2696'))}),_0x3bf10a(_0x9c0695[_0x560b8c('0x1133')]);})['catch'](function(_0xc2db62){const _0x43ede0=_0x7ee7df;if(_0xc2db62['data']&&_0xc2db62['data'][_0x43ede0('0x73e')]&&_0xc2db62['data'][_0x43ede0('0x73e')][_0x43ede0('0x1f73')]){_0x9c0695[_0x43ede0('0x73e')]=_0xc2db62[_0x43ede0('0x1457')][_0x43ede0('0x73e')]||[{'message':_0xc2db62[_0x43ede0('0x9b6')](),'type':_0x43ede0('0x178d')}];for(let _0x162649=0x0;_0x162649<_0xc2db62[_0x43ede0('0x1457')][_0x43ede0('0x73e')][_0x43ede0('0x1f73')];_0x162649++){_0x41dc52['error']({'title':_0xc2db62[_0x43ede0('0x1457')][_0x43ede0('0x73e')][_0x162649][_0x43ede0('0x412')],'msg':_0xc2db62['data'][_0x43ede0('0x73e')][_0x162649][_0x43ede0('0x1603')]});}}else _0x41dc52['error']({'title':_0xc2db62[_0x43ede0('0x11c5')]?_0x43ede0('0x14f7')+_0xc2db62[_0x43ede0('0x11c5')]+_0x43ede0('0x16e4')+_0xc2db62['statusText']:_0x43ede0('0x178d'),'msg':_0xc2db62['data']?JSON[_0x43ede0('0x678')](_0xc2db62[_0x43ede0('0x1457')][_0x43ede0('0x1603')]):_0xc2db62[_0x43ede0('0x1603')]||_0xc2db62[_0x43ede0('0x9b6')]()});});},function(){});}function _0x3bf10a(_0x3bd766){const _0x397db0=_0x1afb01;_0x2ac4fd[_0x397db0('0x212a')](_0x3bd766);}}const _0x24b43f=_0x2fc772,_0x165113=_0x4cf2bc['p']+_0x4376d8('0x185c');_0xc56246['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x28da'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'Auth'];function _0xc56246(_0x25e793,_0x2a40ad,_0x43defa,_0x16e786,_0x59d276,_0x38c0ac,_0x264f5a,_0xf49280){const _0x216c6b=_0x4376d8,_0x10fb1a=this;_0x10fb1a[_0x216c6b('0x197c')]=_0xf49280[_0x216c6b('0x2831')](),_0x10fb1a[_0x216c6b('0x1c8d')]={},_0x10fb1a['triggerActions']={'count':0x0,'rows':[]},_0x10fb1a['selectedTriggerActions']=[],_0x10fb1a[_0x216c6b('0x826')]={'fields':_0x216c6b('0xec'),'limit':0xa,'page':0x1},_0x10fb1a[_0x216c6b('0x710')]={'zendesk':_0x216c6b('0x2600'),'salesforce':'Salesforce','sugarcrm':_0x216c6b('0xae7'),'freshdesk':_0x216c6b('0x1b45'),'desk':_0x216c6b('0x15a2'),'zoho':'Zoho','vtiger':_0x216c6b('0x1b12'),'dynamics365':_0x216c6b('0x374'),'servicenow':_0x216c6b('0x1cfd'),'freshsales':_0x216c6b('0x337')},_0x10fb1a['motionBarOptions']={0x0:_0x216c6b('0x1ae0'),0x1:'CTI\x20URL',0x2:_0x216c6b('0x1ccf')},_0x10fb1a['onInit']=_0x3355a1,_0x10fb1a['success']=_0x1e89ba,_0x10fb1a[_0x216c6b('0x1d0f')]=_0x5e780e,_0x10fb1a[_0x216c6b('0x1fa2')]=_0x74cdc0,_0x10fb1a[_0x216c6b('0x278c')]=_0x122f66,_0x10fb1a[_0x216c6b('0x1a20')]=_0x570fb9,_0x10fb1a[_0x216c6b('0x1f10')]=_0x25ef14;function _0x3355a1(_0x455064,_0x245af5){const _0xb86d9d=_0x216c6b;_0x10fb1a[_0xb86d9d('0x1c8d')]=_0x455064,_0x10fb1a[_0xb86d9d('0x103e')]=typeof _0x245af5!=='undefined'?_0x245af5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x10fb1a[_0xb86d9d('0x826')][_0xb86d9d('0x1bd0')]=_0x10fb1a[_0xb86d9d('0x1c8d')]['id'],_0x10fb1a[_0xb86d9d('0x826')]['id']=_0x10fb1a['trigger']['id'],_0x5e780e();}function _0x24dc54(){const _0x3d7145=_0x216c6b;_0xf49280['isAdmin']()?_0x264f5a[_0x3d7145('0x25b')]['get']({'fields':_0x3d7145('0x12d2'),'sort':_0x3d7145('0x2aa'),'nolimit':_0x3d7145('0xe34')})[_0x3d7145('0x1af5')]['then'](function(_0x1af0c3){const _0x3e9f86=_0x3d7145;_0x10fb1a[_0x3e9f86('0x2504')]=_0x1af0c3[_0x3e9f86('0x2319')]||[];})[_0x3d7145('0x16df')](function(_0x545c1d){const _0x51431b=_0x3d7145;_0x38c0ac['error']({'title':_0x545c1d[_0x51431b('0x11c5')]?'API:'+_0x545c1d['status']+_0x51431b('0x16e4')+_0x545c1d[_0x51431b('0x1833')]:'SYSTEM:GET_LISTS','msg':_0x545c1d[_0x51431b('0x1457')]?JSON['stringify'](_0x545c1d[_0x51431b('0x1457')]):_0x545c1d[_0x51431b('0x9b6')]()});}):_0x264f5a[_0x3d7145('0x25b')][_0x3d7145('0x1c53')]({'fields':_0x3d7145('0x12d2'),'sort':_0x3d7145('0x2aa'),'nolimit':_0x3d7145('0xe34')})[_0x3d7145('0x1af5')][_0x3d7145('0x17e7')](function(_0x47bcd7){const _0x2318bf=_0x3d7145;_0x10fb1a[_0x2318bf('0x2504')]=_0x47bcd7[_0x2318bf('0x2319')]||[];})['then'](function(){const _0x1da059=_0x3d7145;return _0x264f5a[_0x1da059('0x383')][_0x1da059('0x1c53')]({'userProfileId':_0x10fb1a[_0x1da059('0x197c')][_0x1da059('0x1e76')],'sectionId':0x12d})['$promise'];})[_0x3d7145('0x17e7')](function(_0x94330b){const _0x1ca13a=_0x3d7145,_0xf7356b=_0x94330b&&_0x94330b[_0x1ca13a('0x2319')]?_0x94330b['rows'][0x0]:null;if(!_0xf7356b){const _0x34b3f6=[],_0x2cb385=[];_0x10fb1a[_0x1ca13a('0x99a')]['rows'][_0x1ca13a('0xccd')](function(_0x3fe2c6){const _0x14d969=_0x1ca13a;if(_0x3fe2c6[_0x14d969('0x1928')]===_0x14d969('0x17df')){const _0x39858b=_0x49cbdd()[_0x14d969('0xe8e')](_0x10fb1a[_0x14d969('0x2504')],{'id':Number(_0x3fe2c6['data1'])});_0x2cb385[_0x14d969('0x269f')](_0x39858b);}});for(let _0x4b1d0b=0x0;_0x4b1d0b<_0x10fb1a[_0x1ca13a('0x2504')][_0x1ca13a('0x1f73')];_0x4b1d0b++){const _0x54f350=_0x49cbdd()[_0x1ca13a('0x26f8')](_0x2cb385,{'id':_0x10fb1a[_0x1ca13a('0x2504')][_0x4b1d0b]['id']});_0x54f350&&(_0x10fb1a[_0x1ca13a('0x2504')][_0x4b1d0b][_0x1ca13a('0xe5c')]=![],_0x34b3f6[_0x1ca13a('0x269f')](_0x10fb1a[_0x1ca13a('0x2504')][_0x4b1d0b]));}_0x10fb1a[_0x1ca13a('0x2504')]=_0x34b3f6;}else{if(!_0xf7356b[_0x1ca13a('0x9e3')])return _0x264f5a[_0x1ca13a('0x78d')][_0x1ca13a('0x1c53')]({'sectionId':_0xf7356b['id']})['$promise'][_0x1ca13a('0x17e7')](function(_0x3fb3c9){const _0x54e1ad=_0x1ca13a,_0x25daa5=_0x49cbdd()[_0x54e1ad('0x787')](_0x3fb3c9[_0x54e1ad('0x2319')],function(_0x5c159f){const _0x6bcf89=_0x54e1ad;return _0x49cbdd()[_0x6bcf89('0xe8e')](_0x10fb1a[_0x6bcf89('0x2504')],{'id':_0x5c159f[_0x6bcf89('0x5db')]});});let _0x3c8644=null;_0x3c8644=[],_0x10fb1a[_0x54e1ad('0x99a')][_0x54e1ad('0x2319')][_0x54e1ad('0xccd')](function(_0x108610){const _0x3ba380=_0x54e1ad;if(_0x108610[_0x3ba380('0x1928')]===_0x3ba380('0x17df')){const _0x55fe0b=_0x49cbdd()['find'](_0x10fb1a[_0x3ba380('0x2504')],{'id':Number(_0x108610['data1'])});_0x3c8644[_0x3ba380('0x269f')](_0x55fe0b);}}),!_0x49cbdd()['isEmpty'](_0x3c8644)&&_0x3c8644[_0x54e1ad('0xccd')](function(_0x4482dd){const _0x3fea45=_0x54e1ad;if(!_0x49cbdd()[_0x3fea45('0x26f8')](_0x25daa5,['id',_0x4482dd['id']])){const _0x5c2afa=_0x49cbdd()['find'](_0x10fb1a[_0x3fea45('0x2504')],{'id':_0x4482dd['id']});_0x5c2afa[_0x3fea45('0xe5c')]=![],_0x25daa5[_0x3fea45('0x269f')](_0x5c2afa);}}),_0x10fb1a[_0x54e1ad('0x2504')]=_0x25daa5;});}})[_0x3d7145('0x16df')](function(_0x22f2ff){const _0x1bc62e=_0x3d7145;_0x38c0ac[_0x1bc62e('0x1db9')]({'title':_0x22f2ff[_0x1bc62e('0x11c5')]?_0x1bc62e('0x14f7')+_0x22f2ff['status']+_0x1bc62e('0x16e4')+_0x22f2ff[_0x1bc62e('0x1833')]:_0x1bc62e('0x1630'),'msg':_0x22f2ff['data']?JSON[_0x1bc62e('0x678')](_0x22f2ff['data']):_0x22f2ff['toString']()});});}function _0x31a07a(){const _0x29663f=_0x216c6b,_0x19de38=_0x49cbdd()(_0x10fb1a[_0x29663f('0x99a')][_0x29663f('0x2319')])['map'](function(_0x36eced){const _0x68964b=_0x29663f;return _0x36eced[_0x68964b('0x1928')]==='integration'?_0x36eced[_0x68964b('0x26ba')]:undefined;})[_0x29663f('0x1e8')]()['uniq']()['value']();_0x19de38[_0x29663f('0xccd')](function(_0x2dc6ca){const _0x4f9777=_0x29663f,_0x5409dd=_0x2dc6ca+_0x4f9777('0x1e6e');if(!_0x10fb1a[_0x5409dd]){const _0x23b4d2=_0x4f9777('0x983')+_0x49cbdd()['startCase'](_0x2dc6ca)+_0x4f9777('0x896');_0x264f5a[_0x23b4d2][_0x4f9777('0x1c53')]({'fields':'id,name','sort':'id','nolimit':_0x4f9777('0xe34')})[_0x4f9777('0x1af5')][_0x4f9777('0x17e7')](function(_0x51d124){const _0x566589=_0x4f9777;_0x10fb1a[_0x5409dd]=_0x51d124[_0x566589('0x2319')]||[];})[_0x4f9777('0x16df')](function(_0x26a47b){const _0x53e3b4=_0x4f9777;_0x38c0ac[_0x53e3b4('0x1db9')]({'title':_0x26a47b[_0x53e3b4('0x11c5')]?_0x53e3b4('0x14f7')+_0x26a47b[_0x53e3b4('0x11c5')]+_0x53e3b4('0x16e4')+_0x26a47b['statusText']:'SYSTEM:GET_'+_0x5409dd[_0x53e3b4('0x14e2')]()+'ACCOUNTS','msg':_0x26a47b[_0x53e3b4('0x1457')]?JSON[_0x53e3b4('0x678')](_0x26a47b[_0x53e3b4('0x1457')]):_0x26a47b[_0x53e3b4('0x9b6')]()});});}});}function _0x30db0c(){const _0x518abe=_0x216c6b;_0xf49280[_0x518abe('0xea2')]()?_0x264f5a['jscriptyProject']['get']({'fields':_0x518abe('0x12d2'),'sort':'name','nolimit':_0x518abe('0xe34')})['$promise'][_0x518abe('0x17e7')](function(_0x5d9ada){const _0x6fee13=_0x518abe;_0x10fb1a[_0x6fee13('0x20e0')]=_0x5d9ada['rows']||[];})[_0x518abe('0x16df')](function(_0x5edc75){const _0x1cba24=_0x518abe;_0x38c0ac['error']({'title':_0x5edc75[_0x1cba24('0x11c5')]?_0x1cba24('0x14f7')+_0x5edc75[_0x1cba24('0x11c5')]+_0x1cba24('0x16e4')+_0x5edc75['statusText']:_0x1cba24('0x13d0'),'msg':_0x5edc75[_0x1cba24('0x1457')]?JSON[_0x1cba24('0x678')](_0x5edc75[_0x1cba24('0x1457')]):_0x5edc75[_0x1cba24('0x9b6')]()});}):_0x264f5a[_0x518abe('0x12fb')]['get']({'fields':'id,name','sort':'name','nolimit':_0x518abe('0xe34')})[_0x518abe('0x1af5')][_0x518abe('0x17e7')](function(_0x1bf5c1){const _0x1773e8=_0x518abe;_0x10fb1a[_0x1773e8('0x20e0')]=_0x1bf5c1[_0x1773e8('0x2319')]||[];})['then'](function(){const _0x4e7505=_0x518abe;return _0x264f5a[_0x4e7505('0x383')]['get']({'userProfileId':_0x10fb1a[_0x4e7505('0x197c')][_0x4e7505('0x1e76')],'sectionId':0x6a5})[_0x4e7505('0x1af5')];})[_0x518abe('0x17e7')](function(_0x1be56f){const _0x251c4f=_0x518abe,_0x2e3d36=_0x1be56f&&_0x1be56f[_0x251c4f('0x2319')]?_0x1be56f['rows'][0x0]:null;if(!_0x2e3d36){const _0x483fc9=[],_0x3bce13=[];_0x10fb1a[_0x251c4f('0x99a')]['rows']['forEach'](function(_0x1401df){const _0x14848d=_0x251c4f;if(_0x1401df[_0x14848d('0x1928')]===_0x14848d('0x2343')){const _0x4d12dd=_0x49cbdd()[_0x14848d('0xe8e')](_0x10fb1a[_0x14848d('0x20e0')],{'id':Number(_0x1401df[_0x14848d('0x26ba')])});_0x3bce13[_0x14848d('0x269f')](_0x4d12dd);}});for(let _0x3876d0=0x0;_0x3876d0<_0x10fb1a[_0x251c4f('0x20e0')][_0x251c4f('0x1f73')];_0x3876d0++){const _0xe62f68=_0x49cbdd()[_0x251c4f('0x26f8')](_0x3bce13,{'id':_0x10fb1a[_0x251c4f('0x20e0')][_0x3876d0]['id']});_0xe62f68&&(_0x10fb1a[_0x251c4f('0x20e0')][_0x3876d0][_0x251c4f('0xe5c')]=![],_0x483fc9['push'](_0x10fb1a[_0x251c4f('0x20e0')][_0x3876d0]));}_0x10fb1a['projects']=_0x483fc9;}else{if(!_0x2e3d36['autoAssociation'])return _0x264f5a['userProfileResource'][_0x251c4f('0x1c53')]({'sectionId':_0x2e3d36['id']})[_0x251c4f('0x1af5')][_0x251c4f('0x17e7')](function(_0x2546e3){const _0x310d60=_0x251c4f,_0x26f37e=_0x49cbdd()[_0x310d60('0x787')](_0x2546e3['rows'],function(_0x4f9f3d){const _0x8527e5=_0x310d60;return _0x49cbdd()[_0x8527e5('0xe8e')](_0x10fb1a[_0x8527e5('0x20e0')],{'id':_0x4f9f3d['resourceId']});});let _0x278511=null;_0x278511=[],_0x10fb1a['triggerActions']['rows'][_0x310d60('0xccd')](function(_0x78d394){const _0x3850b4=_0x310d60;if(_0x78d394[_0x3850b4('0x1928')]===_0x3850b4('0x2343')){const _0x50d795=_0x49cbdd()[_0x3850b4('0xe8e')](_0x10fb1a[_0x3850b4('0x20e0')],{'id':Number(_0x78d394[_0x3850b4('0x26ba')])});_0x278511[_0x3850b4('0x269f')](_0x50d795);}}),!_0x49cbdd()['isEmpty'](_0x278511)&&_0x278511[_0x310d60('0xccd')](function(_0x1c6482){const _0x47a3e8=_0x310d60;if(!_0x49cbdd()[_0x47a3e8('0x26f8')](_0x26f37e,['id',_0x1c6482['id']])){const _0x5e7960=_0x49cbdd()[_0x47a3e8('0xe8e')](_0x10fb1a[_0x47a3e8('0x20e0')],{'id':_0x1c6482['id']});_0x5e7960[_0x47a3e8('0xe5c')]=![],_0x26f37e[_0x47a3e8('0x269f')](_0x5e7960);}}),_0x10fb1a[_0x310d60('0x20e0')]=_0x26f37e;});}})[_0x518abe('0x16df')](function(_0x5ce786){const _0x23c5d5=_0x518abe;_0x38c0ac['error']({'title':_0x5ce786[_0x23c5d5('0x11c5')]?_0x23c5d5('0x14f7')+_0x5ce786[_0x23c5d5('0x11c5')]+_0x23c5d5('0x16e4')+_0x5ce786[_0x23c5d5('0x1833')]:_0x23c5d5('0x27b7'),'msg':_0x5ce786[_0x23c5d5('0x1457')]?JSON[_0x23c5d5('0x678')](_0x5ce786['data']):_0x5ce786[_0x23c5d5('0x9b6')]()});});}function _0x42be22(){const _0x2a8d3f=_0x216c6b;_0xf49280[_0x2a8d3f('0xea2')]()?_0x264f5a[_0x2a8d3f('0x2260')][_0x2a8d3f('0x1c53')]({'fields':_0x2a8d3f('0x12d2'),'sort':'id','nolimit':'true'})[_0x2a8d3f('0x1af5')][_0x2a8d3f('0x17e7')](function(_0x3dce2b){const _0x2b9ec7=_0x2a8d3f;_0x10fb1a[_0x2b9ec7('0x143e')]=_0x3dce2b[_0x2b9ec7('0x2319')]||[];})[_0x2a8d3f('0x16df')](function(_0x131611){const _0x5306f9=_0x2a8d3f;_0x38c0ac[_0x5306f9('0x1db9')]({'title':_0x131611[_0x5306f9('0x11c5')]?_0x5306f9('0x14f7')+_0x131611[_0x5306f9('0x11c5')]+'\x20-\x20'+_0x131611[_0x5306f9('0x1833')]:_0x5306f9('0x408'),'msg':_0x131611[_0x5306f9('0x1457')]?JSON['stringify'](_0x131611[_0x5306f9('0x1457')]):_0x131611['toString']()});}):_0x264f5a['template']['get']({'fields':'id,name','sort':'id','nolimit':_0x2a8d3f('0xe34')})['$promise']['then'](function(_0x2a49de){const _0x2b304d=_0x2a8d3f;_0x10fb1a[_0x2b304d('0x143e')]=_0x2a49de['rows']||[];})[_0x2a8d3f('0x17e7')](function(){const _0x22d0d7=_0x2a8d3f;return _0x264f5a['userProfileSection'][_0x22d0d7('0x1c53')]({'userProfileId':_0x10fb1a[_0x22d0d7('0x197c')][_0x22d0d7('0x1e76')],'sectionId':0x3f1})['$promise'];})[_0x2a8d3f('0x17e7')](function(_0x1f7cc4){const _0x3340cf=_0x2a8d3f,_0x50cbad=_0x1f7cc4&&_0x1f7cc4['rows']?_0x1f7cc4['rows'][0x0]:null;if(!_0x50cbad){const _0x5319ca=[],_0x13af9b=[];_0x10fb1a[_0x3340cf('0x99a')][_0x3340cf('0x2319')][_0x3340cf('0xccd')](function(_0x41740d){const _0x204112=_0x3340cf;if(_0x49cbdd()[_0x204112('0x24b0')](['motionbar',_0x204112('0x2055')],_0x41740d[_0x204112('0x1928')])){const _0x210e41=_0x49cbdd()[_0x204112('0xe8e')](_0x10fb1a[_0x204112('0x143e')],{'id':Number(_0x41740d[_0x204112('0x14da')])});_0x13af9b[_0x204112('0x269f')](_0x210e41);}});for(let _0x26ea1b=0x0;_0x26ea1b<_0x10fb1a['templates'][_0x3340cf('0x1f73')];_0x26ea1b++){const _0x1be616=_0x49cbdd()[_0x3340cf('0x26f8')](_0x13af9b,{'id':_0x10fb1a[_0x3340cf('0x143e')][_0x26ea1b]['id']});_0x1be616&&(_0x10fb1a[_0x3340cf('0x143e')][_0x26ea1b][_0x3340cf('0xe5c')]=![],_0x5319ca[_0x3340cf('0x269f')](_0x10fb1a['templates'][_0x26ea1b]));}_0x10fb1a[_0x3340cf('0x143e')]=_0x5319ca;}else{if(!_0x50cbad[_0x3340cf('0x9e3')])return _0x264f5a[_0x3340cf('0x78d')][_0x3340cf('0x1c53')]({'sectionId':_0x50cbad['id']})[_0x3340cf('0x1af5')]['then'](function(_0x3269aa){const _0x49f2f9=_0x3340cf,_0x3397e6=_0x49cbdd()['map'](_0x3269aa['rows'],function(_0xb78dad){const _0x268a57=a0_0xd29e;return _0x49cbdd()['find'](_0x10fb1a[_0x268a57('0x143e')],{'id':_0xb78dad[_0x268a57('0x5db')]});});let _0x40248e=null;_0x40248e=[],_0x10fb1a['triggerActions'][_0x49f2f9('0x2319')]['forEach'](function(_0x131f09){const _0x3560bd=_0x49f2f9;if(_0x49cbdd()[_0x3560bd('0x24b0')](['motionbar',_0x3560bd('0x2055')],_0x131f09['action'])){const _0x44636b=_0x49cbdd()['find'](_0x10fb1a[_0x3560bd('0x143e')],{'id':Number(_0x131f09[_0x3560bd('0x14da')])});_0x40248e[_0x3560bd('0x269f')](_0x44636b);}}),!_0x49cbdd()[_0x49f2f9('0x109a')](_0x40248e)&&_0x40248e[_0x49f2f9('0xccd')](function(_0x8605a8){const _0x3b0b83=_0x49f2f9;if(!_0x49cbdd()[_0x3b0b83('0x26f8')](_0x3397e6,['id',_0x8605a8['id']])){const _0x43363f=_0x49cbdd()[_0x3b0b83('0xe8e')](_0x10fb1a['templates'],{'id':_0x8605a8['id']});_0x43363f[_0x3b0b83('0xe5c')]=![],_0x3397e6['push'](_0x43363f);}}),_0x10fb1a[_0x49f2f9('0x143e')]=_0x3397e6;});}})[_0x2a8d3f('0x16df')](function(_0x444d3e){const _0x5d80d2=_0x2a8d3f;_0x38c0ac['error']({'title':_0x444d3e[_0x5d80d2('0x11c5')]?_0x5d80d2('0x14f7')+_0x444d3e[_0x5d80d2('0x11c5')]+_0x5d80d2('0x16e4')+_0x444d3e[_0x5d80d2('0x1833')]:_0x5d80d2('0x408'),'msg':_0x444d3e[_0x5d80d2('0x1457')]?JSON['stringify'](_0x444d3e['data']):_0x444d3e['toString']()});});}function _0x53436b(){const _0xcaee6a=_0x216c6b;if(_0x49cbdd()[_0xcaee6a('0x26f8')](_0x10fb1a[_0xcaee6a('0x99a')][_0xcaee6a('0x2319')],[_0xcaee6a('0x1928'),_0xcaee6a('0x17df')])){if(!_0x10fb1a[_0xcaee6a('0x2504')])_0x24dc54();}_0x49cbdd()[_0xcaee6a('0x26f8')](_0x10fb1a[_0xcaee6a('0x99a')]['rows'],[_0xcaee6a('0x1928'),_0xcaee6a('0x1294')])&&_0x31a07a();if(_0x49cbdd()[_0xcaee6a('0x26f8')](_0x10fb1a[_0xcaee6a('0x99a')][_0xcaee6a('0x2319')],function(_0x50080b){const _0x4f1cf9=_0xcaee6a;return _0x49cbdd()['includes'](['motionbar',_0x4f1cf9('0x2055')],_0x50080b[_0x4f1cf9('0x1928')]);})){if(!_0x10fb1a[_0xcaee6a('0x143e')])_0x42be22();}if(_0x49cbdd()[_0xcaee6a('0x26f8')](_0x10fb1a['triggerActions']['rows'],[_0xcaee6a('0x1928'),_0xcaee6a('0x2343')])){if(!_0x10fb1a[_0xcaee6a('0x20e0')])_0x30db0c();}}function _0x1e89ba(_0x353b88){const _0x2669c6=_0x216c6b;_0x10fb1a[_0x2669c6('0x99a')]=_0x353b88||{'count':0x0,'rows':[]},_0x53436b();}function _0x5e780e(){const _0x254568=_0x216c6b;_0x10fb1a[_0x254568('0x826')][_0x254568('0xf19')]=(_0x10fb1a[_0x254568('0x826')]['page']-0x1)*_0x10fb1a[_0x254568('0x826')][_0x254568('0x193b')],_0x10fb1a[_0x254568('0x1691')]=_0x264f5a['trigger'][_0x254568('0x26f6')](_0x10fb1a[_0x254568('0x826')],_0x1e89ba)[_0x254568('0x1af5')];}function _0x74cdc0(_0x5530ae,_0x3a4d47){const _0xf87d2e=_0x216c6b;_0x16e786[_0xf87d2e('0x28e2')]({'controller':'CreateOrEditActionDialogController','controllerAs':'vm','templateUrl':_0x165113,'parent':angular[_0xf87d2e('0x1ce1')](_0x59d276[_0xf87d2e('0x13aa')]),'targetEvent':_0x5530ae,'clickOutsideToClose':!![],'locals':{'trigger':_0x10fb1a[_0xf87d2e('0x1c8d')],'action':_0x3a4d47,'actions':_0x10fb1a[_0xf87d2e('0x99a')]['rows'],'license':null,'setting':null,'crudPermissions':_0x10fb1a['crudPermissions']}})[_0xf87d2e('0x17e7')](function(_0x1a0496){const _0x30e6a9=_0xf87d2e;_0x1a0496&&(_0x10fb1a[_0x30e6a9('0x99a')]={'count':_0x1a0496[_0x30e6a9('0x1f73')],'rows':_0x1a0496},_0x53436b());});}function _0x570fb9(_0x3e1883,_0x215a67){const _0x55fdcc=_0x216c6b,_0x2ba13c=_0x16e786[_0x55fdcc('0x1121')]()[_0x55fdcc('0x24d3')](_0x2a40ad[_0x55fdcc('0x1acc')](_0x55fdcc('0x2655')))[_0x55fdcc('0x2095')](_0x55fdcc('0x249'))['targetEvent'](_0x215a67)['ok']('OK')[_0x55fdcc('0x1d47')](_0x2a40ad['instant'](_0x55fdcc('0x34f')));_0x16e786['show'](_0x2ba13c)[_0x55fdcc('0x17e7')](function(){_0x4b4616(_0x3e1883,!![]);});}function _0x4b4616(_0x40ea79,_0x4e65b5){const _0x1b0de5=_0x216c6b;_0x264f5a[_0x1b0de5('0x1928')][_0x1b0de5('0x1da6')]({'id':_0x40ea79['id']})['$promise'][_0x1b0de5('0x17e7')](function(){const _0x28c6ad=_0x1b0de5;_0x5e780e(),_0x4e65b5&&_0x38c0ac[_0x28c6ad('0x130d')]({'title':_0x2a40ad[_0x28c6ad('0x1acc')](_0x28c6ad('0x72'))});})[_0x1b0de5('0x16df')](function(_0x5cf835){const _0x4c68b1=_0x1b0de5;if(_0x5cf835[_0x4c68b1('0x1457')]&&_0x5cf835[_0x4c68b1('0x1457')][_0x4c68b1('0x73e')]&&_0x5cf835[_0x4c68b1('0x1457')][_0x4c68b1('0x73e')][_0x4c68b1('0x1f73')]){_0x10fb1a['errors']=_0x5cf835[_0x4c68b1('0x1457')]['errors']||[{'message':_0x5cf835[_0x4c68b1('0x9b6')](),'type':_0x4c68b1('0x138a')}];for(let _0x526a6d=0x0;_0x526a6d<_0x5cf835['data']['errors'][_0x4c68b1('0x1f73')];_0x526a6d++){_0x38c0ac[_0x4c68b1('0x1db9')]({'title':_0x5cf835[_0x4c68b1('0x1457')][_0x4c68b1('0x73e')][_0x526a6d][_0x4c68b1('0x412')],'msg':_0x5cf835[_0x4c68b1('0x1457')][_0x4c68b1('0x73e')][_0x526a6d][_0x4c68b1('0x1603')]});}}else _0x38c0ac[_0x4c68b1('0x1db9')]({'title':_0x5cf835['status']?_0x4c68b1('0x14f7')+_0x5cf835[_0x4c68b1('0x11c5')]+_0x4c68b1('0x16e4')+_0x5cf835['statusText']:_0x4c68b1('0x138a'),'msg':_0x5cf835[_0x4c68b1('0x1457')]?JSON[_0x4c68b1('0x678')](_0x5cf835[_0x4c68b1('0x1457')][_0x4c68b1('0x1603')]):_0x5cf835[_0x4c68b1('0x1603')]||_0x5cf835[_0x4c68b1('0x9b6')]()});});}function _0x122f66(){const _0x304e90=_0x216c6b,_0x46780a=angular[_0x304e90('0x14e5')](_0x10fb1a['selectedTriggerActions']);return _0x10fb1a['selectedTriggerActions']=[],_0x46780a;}function _0x25ef14(_0x5cca2b){const _0x2e1bc5=_0x216c6b,_0x37f305=_0x16e786['confirm']()[_0x2e1bc5('0x24d3')](_0x2a40ad['instant']('TOOLS.NOTIFICATIONS.ACTIONS_DELETE_TITLE'))[_0x2e1bc5('0xd5')](_0x2a40ad[_0x2e1bc5('0x1acc')](_0x2e1bc5('0x1267'),{'total':_0x10fb1a['selectedTriggerActions'][_0x2e1bc5('0x1f73')]}))[_0x2e1bc5('0x2095')](_0x2e1bc5('0x105b'))[_0x2e1bc5('0x104f')](_0x5cca2b)['ok']('OK')[_0x2e1bc5('0x1d47')](_0x2a40ad[_0x2e1bc5('0x1acc')](_0x2e1bc5('0x34f')));_0x16e786[_0x2e1bc5('0x28e2')](_0x37f305)['then'](function(){const _0x3817ad=_0x2e1bc5;_0x10fb1a['selectedTriggerActions'][_0x3817ad('0xccd')](function(_0x29ba35){_0x4b4616(_0x29ba35);}),_0x10fb1a[_0x3817ad('0x1d97')]=[],_0x38c0ac[_0x3817ad('0x130d')]({'title':_0x2a40ad[_0x3817ad('0x1acc')](_0x3817ad('0x273c'))});});}let _0x368176=!![],_0x773888=0x1;_0x25e793[_0x216c6b('0x620')](_0x216c6b('0x4c3'),function(_0x469905,_0x19f24d){const _0x22345d=_0x216c6b;_0x368176?_0x43defa(function(){_0x368176=![];}):(!_0x19f24d&&(_0x773888=_0x10fb1a[_0x22345d('0x826')][_0x22345d('0x115a')]),_0x469905!==_0x19f24d&&(_0x10fb1a['query'][_0x22345d('0x115a')]=0x1),!_0x469905&&(_0x10fb1a[_0x22345d('0x826')]['page']=_0x773888),_0x5e780e());});}const _0x4c4aea=_0xc56246;_0x3ce1f0[_0x4376d8('0x1b9c')]=['$state',_0x4376d8('0x14f6'),_0x4376d8('0x28da'),_0x4376d8('0x108a'),'actions',_0x4376d8('0x1928'),_0x4376d8('0x1c8d'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x3ce1f0(_0x566c88,_0x68504f,_0x540c68,_0x343ff0,_0x27a469,_0x3b211c,_0x5455f3,_0x132f1c,_0x50ba7e,_0x276318,_0x2a6a74,_0x26e60d){const _0x3b4a74=_0x4376d8,_0x2ff79d=this;_0x2ff79d[_0x3b4a74('0x197c')]=_0x50ba7e[_0x3b4a74('0x2831')](),_0x2ff79d[_0x3b4a74('0x1928')]=angular[_0x3b4a74('0x14e5')](_0x3b211c),_0x2ff79d[_0x3b4a74('0xacf')]=angular[_0x3b4a74('0x14e5')](_0x27a469),_0x2ff79d['setting']=_0x2a6a74,_0x2ff79d[_0x3b4a74('0x1d11')]=_0x276318,_0x2ff79d['crudPermissions']=_0x26e60d,_0x2ff79d[_0x3b4a74('0x794')]=![],_0x2ff79d[_0x3b4a74('0x73e')]=[],_0x2ff79d[_0x3b4a74('0x1c8d')]=angular[_0x3b4a74('0x14e5')](_0x5455f3);!_0x2ff79d[_0x3b4a74('0x1928')]&&(_0x2ff79d[_0x3b4a74('0x1928')]={},_0x2ff79d[_0x3b4a74('0x794')]=!![]);_0x2ff79d['action']['ActionId']=_0x566c88[_0x3b4a74('0x16fb')]['id']||undefined,_0x2ff79d[_0x3b4a74('0x1fc5')]=[_0x3b4a74('0x2154'),_0x3b4a74('0xa4f'),_0x3b4a74('0xc23')],_0x2ff79d[_0x3b4a74('0x4a2')]=_0x5b25d8,_0x2ff79d[_0x3b4a74('0x14f3')]=_0x353a77,_0x2ff79d[_0x3b4a74('0x222e')]=_0x17f46d,_0x2ff79d[_0x3b4a74('0x1fba')]=_0x2406d0,_0x2ff79d[_0x3b4a74('0xb9c')]=_0x1682c5,_0x2ff79d['onSearchFieldsInit']=_0x432c10,_0x2ff79d[_0x3b4a74('0x11a6')]=_0x326e92,_0x2ff79d[_0x3b4a74('0x24fb')]=_0x2a5000,_0x2ff79d[_0x3b4a74('0x1b28')]=_0x204cca,_0x2ff79d[_0x3b4a74('0x728')]=_0x541e48,_0x2ff79d[_0x3b4a74('0x5ed')]=_0x50d133,_0x2ff79d[_0x3b4a74('0x22c4')]=_0xe9a54d,_0x2ff79d[_0x3b4a74('0x136e')]=_0x1b0c82;function _0x2406d0(){const _0x284e63=_0x3b4a74;_0x50ba7e[_0x284e63('0x6ee')](_0x284e63('0x7c5'))[_0x284e63('0x17e7')](function(_0x37fa37){const _0xfb1982=_0x284e63;_0x2ff79d[_0xfb1982('0x20b5')]=_0x37fa37;})[_0x284e63('0x16df')](function(_0x5c554e){const _0x2979dc=_0x284e63;_0x343ff0['error']({'title':_0x5c554e[_0x2979dc('0x11c5')]?_0x2979dc('0x14f7')+_0x5c554e['status']+'\x20-\x20'+_0x5c554e[_0x2979dc('0x1833')]:_0x2979dc('0x12d5'),'msg':_0x5c554e[_0x2979dc('0x1457')]?JSON[_0x2979dc('0x678')](_0x5c554e[_0x2979dc('0x1457')]):_0x5c554e['toString']()});});if(_0x2ff79d['action'][_0x284e63('0x1928')])_0x2e00f2();}function _0x1682c5(){const _0x361153=_0x3b4a74,_0x2bb4dc=[0x515,0x516,0x517,0x519,0x51a,0x51b,0x51c,0x51d,0x51e,0x51f];_0x50ba7e['hasSectionsPermissions'](_0x2bb4dc)[_0x361153('0x17e7')](function(_0x4402ce){const _0x58e2d1=_0x361153;_0x2ff79d[_0x58e2d1('0x1904')]=_0x49cbdd()[_0x58e2d1('0x1ced')](_0x2ff79d[_0x58e2d1('0x1904')],_0x4402ce);})[_0x361153('0x16df')](function(_0x4ac2ef){const _0x1aca08=_0x361153;_0x343ff0['error']({'title':_0x4ac2ef[_0x1aca08('0x11c5')]?_0x1aca08('0x14f7')+_0x4ac2ef[_0x1aca08('0x11c5')]+_0x1aca08('0x16e4')+_0x4ac2ef['statusText']:'SYSTEM:GET_SECTIONS_PERMISSIONS','msg':_0x4ac2ef['data']?JSON[_0x1aca08('0x678')](_0x4ac2ef[_0x1aca08('0x1457')]):_0x4ac2ef[_0x1aca08('0x9b6')]()});});}function _0x432c10(){if(!_0x2ff79d['newAction'])_0x56272b();}function _0x3e7447(){const _0x37e3c3=_0x3b4a74;_0x50ba7e[_0x37e3c3('0xea2')]()?_0x132f1c[_0x37e3c3('0x25b')][_0x37e3c3('0x1c53')]({'fields':_0x37e3c3('0x12d2'),'sort':_0x37e3c3('0x2aa'),'nolimit':_0x37e3c3('0xe34')})[_0x37e3c3('0x1af5')][_0x37e3c3('0x17e7')](function(_0xe62729){const _0xfe94a9=_0x37e3c3;_0x2ff79d[_0xfe94a9('0x2504')]=_0xe62729[_0xfe94a9('0x2319')]||[];})[_0x37e3c3('0x16df')](function(_0x569e7f){const _0x4d4c1f=_0x37e3c3;_0x343ff0[_0x4d4c1f('0x1db9')]({'title':_0x569e7f['status']?_0x4d4c1f('0x14f7')+_0x569e7f['status']+_0x4d4c1f('0x16e4')+_0x569e7f[_0x4d4c1f('0x1833')]:_0x4d4c1f('0x2410'),'msg':_0x569e7f[_0x4d4c1f('0x1457')]?JSON['stringify'](_0x569e7f[_0x4d4c1f('0x1457')]):_0x569e7f['toString']()});}):_0x132f1c[_0x37e3c3('0x25b')][_0x37e3c3('0x1c53')]({'fields':'id,name','sort':_0x37e3c3('0x2aa'),'nolimit':_0x37e3c3('0xe34')})[_0x37e3c3('0x1af5')]['then'](function(_0x25d47c){_0x2ff79d['lists']=_0x25d47c['rows']||[];})[_0x37e3c3('0x17e7')](function(){const _0x35c67d=_0x37e3c3;return _0x132f1c[_0x35c67d('0x383')]['get']({'userProfileId':_0x2ff79d['currentUser'][_0x35c67d('0x1e76')],'sectionId':0x12d})[_0x35c67d('0x1af5')];})[_0x37e3c3('0x17e7')](function(_0x623501){const _0x43cf48=_0x37e3c3,_0x42c7cf=_0x623501&&_0x623501[_0x43cf48('0x2319')]?_0x623501[_0x43cf48('0x2319')][0x0]:null;if(!_0x42c7cf){const _0x27eece=[],_0xc96b29=[];_0x2ff79d[_0x43cf48('0x99a')][_0x43cf48('0x2319')][_0x43cf48('0xccd')](function(_0x269e2f){const _0x3f5496=_0x43cf48;if(_0x269e2f[_0x3f5496('0x1928')]===_0x3f5496('0x17df')){const _0x4b9999=_0x49cbdd()[_0x3f5496('0xe8e')](_0x2ff79d[_0x3f5496('0x2504')],{'id':Number(_0x269e2f[_0x3f5496('0x26ba')])});_0xc96b29[_0x3f5496('0x269f')](_0x4b9999);}});for(let _0x54551a=0x0;_0x54551a<_0x2ff79d[_0x43cf48('0x2504')]['length'];_0x54551a++){const _0x24adcc=_0x49cbdd()[_0x43cf48('0x26f8')](_0xc96b29,{'id':_0x2ff79d['lists'][_0x54551a]['id']});_0x24adcc&&(_0x2ff79d[_0x43cf48('0x2504')][_0x54551a]['canSelect']=![],_0x27eece[_0x43cf48('0x269f')](_0x2ff79d[_0x43cf48('0x2504')][_0x54551a]));}_0x2ff79d[_0x43cf48('0x2504')]=_0x27eece;}else{if(!_0x42c7cf['autoAssociation'])return _0x132f1c['userProfileResource'][_0x43cf48('0x1c53')]({'sectionId':_0x42c7cf['id']})[_0x43cf48('0x1af5')]['then'](function(_0x3576d0){const _0x236421=_0x43cf48,_0x187281=_0x49cbdd()[_0x236421('0x787')](_0x3576d0[_0x236421('0x2319')],function(_0x3f5827){const _0xe1c7ad=_0x236421;return _0x49cbdd()['find'](_0x2ff79d[_0xe1c7ad('0x2504')],{'id':_0x3f5827[_0xe1c7ad('0x5db')]});});let _0x42c93e=null;_0x42c93e=[],_0x2ff79d[_0x236421('0x99a')][_0x236421('0x2319')]['forEach'](function(_0x3a0517){const _0x34132f=_0x236421;if(_0x3a0517[_0x34132f('0x1928')]===_0x34132f('0x17df')){const _0x501783=_0x49cbdd()['find'](_0x2ff79d['lists'],{'id':Number(_0x3a0517[_0x34132f('0x26ba')])});_0x42c93e[_0x34132f('0x269f')](_0x501783);}}),!_0x49cbdd()[_0x236421('0x109a')](_0x42c93e)&&_0x42c93e['forEach'](function(_0x10a8b8){const _0x365b58=_0x236421;if(!_0x49cbdd()['some'](_0x187281,['id',_0x10a8b8['id']])){const _0x3499ea=_0x49cbdd()['find'](_0x2ff79d[_0x365b58('0x2504')],{'id':_0x10a8b8['id']});_0x3499ea[_0x365b58('0xe5c')]=![],_0x187281[_0x365b58('0x269f')](_0x3499ea);}}),_0x2ff79d[_0x236421('0x2504')]=_0x187281;});}})[_0x37e3c3('0x16df')](function(_0x49642a){const _0x574424=_0x37e3c3;_0x343ff0[_0x574424('0x1db9')]({'title':_0x49642a[_0x574424('0x11c5')]?'API:'+_0x49642a[_0x574424('0x11c5')]+'\x20-\x20'+_0x49642a[_0x574424('0x1833')]:_0x574424('0x1630'),'msg':_0x49642a[_0x574424('0x1457')]?JSON[_0x574424('0x678')](_0x49642a[_0x574424('0x1457')]):_0x49642a['toString']()});});}function _0x3df5e3(){const _0x312e82=_0x3b4a74;_0x132f1c[_0x312e82('0x1d2a')][_0x312e82('0x2234')]({})[_0x312e82('0x1af5')][_0x312e82('0x17e7')](function(_0x4cad4c){const _0x2fb5a1=_0x312e82;_0x2ff79d[_0x2fb5a1('0xda3')]=[],_0x2ff79d[_0x2fb5a1('0x1341')]=[];const _0x1cdc24=_0x49cbdd()[_0x2fb5a1('0xa72')](_0x4cad4c['toJSON']());for(let _0x347cf2=0x0;_0x347cf2<_0x1cdc24[_0x2fb5a1('0x1f73')];_0x347cf2++){if(_0x49cbdd()['includes'](_0x2ff79d[_0x2fb5a1('0x1fc5')],_0x1cdc24[_0x347cf2][_0x2fb5a1('0x1547')]))_0x2ff79d[_0x2fb5a1('0xda3')]['push'](_0x1cdc24[_0x347cf2]);else{if(_0x49cbdd()[_0x2fb5a1('0x818')](_0x1cdc24[_0x347cf2][_0x2fb5a1('0x1547')],'cf_')){if(_0x1cdc24[_0x347cf2][_0x2fb5a1('0x8fa')][_0x2fb5a1('0x412')]==='text')_0x2ff79d['customFields'][_0x2fb5a1('0x269f')](_0x1cdc24[_0x347cf2]);}}}})[_0x312e82('0x16df')](function(_0x6c1091){const _0x1d4a79=_0x312e82;_0x343ff0['error']({'title':_0x6c1091[_0x1d4a79('0x11c5')]?'API:'+_0x6c1091[_0x1d4a79('0x11c5')]+_0x1d4a79('0x16e4')+_0x6c1091[_0x1d4a79('0x1833')]:'SYSTEM:DESCRIBE_CM_CONTACT','msg':_0x6c1091[_0x1d4a79('0x1457')]?JSON[_0x1d4a79('0x678')](_0x6c1091['data']):_0x6c1091[_0x1d4a79('0x9b6')]()});});}function _0x56272b(){const _0x2e0b2b=_0x3b4a74;_0x132f1c['cmList'][_0x2e0b2b('0x6c7')]({'id':_0x2ff79d[_0x2e0b2b('0x1928')][_0x2e0b2b('0x26ba')],'ListId':_0x2ff79d[_0x2e0b2b('0x1928')][_0x2e0b2b('0x26ba')]})['$promise']['then'](function(_0x507a6b){const _0x444d16=_0x2e0b2b;_0x2ff79d[_0x444d16('0xe32')]=_0x49cbdd()['filter'](_0x507a6b[_0x444d16('0x2319')],[_0x444d16('0x412'),_0x444d16('0x132f')]),_0x2ff79d[_0x444d16('0xe32')][_0x444d16('0xccd')](function(_0x29b4fe){const _0x3d0a41=_0x444d16;_0x29b4fe[_0x3d0a41('0x1547')]=_0x3d0a41('0x481')+_0x29b4fe['id'];});})['catch'](function(_0x19e15){const _0x252f97=_0x2e0b2b;_0x343ff0[_0x252f97('0x1db9')]({'title':_0x19e15[_0x252f97('0x11c5')]?'API:'+_0x19e15['status']+_0x252f97('0x16e4')+_0x19e15[_0x252f97('0x1833')]:'SYSTEM:GET_LIST_CUSTOM_FIELDS','msg':_0x19e15['data']?JSON[_0x252f97('0x678')](_0x19e15['data']):_0x19e15[_0x252f97('0x9b6')]()});});}function _0x3e3621(){const _0x279746=_0x3b4a74;_0x50ba7e[_0x279746('0xea2')]()?_0x132f1c['jscriptyProject'][_0x279746('0x1c53')]({'fields':'id,name','sort':_0x279746('0x2aa'),'nolimit':_0x279746('0xe34')})[_0x279746('0x1af5')][_0x279746('0x17e7')](function(_0x3394db){const _0x4a5f94=_0x279746;_0x2ff79d[_0x4a5f94('0x20e0')]=_0x3394db[_0x4a5f94('0x2319')]||[];})[_0x279746('0x16df')](function(_0x62716b){const _0x32d6b1=_0x279746;_0x343ff0[_0x32d6b1('0x1db9')]({'title':_0x62716b[_0x32d6b1('0x11c5')]?_0x32d6b1('0x14f7')+_0x62716b[_0x32d6b1('0x11c5')]+_0x32d6b1('0x16e4')+_0x62716b['statusText']:_0x32d6b1('0x13d0'),'msg':_0x62716b[_0x32d6b1('0x1457')]?JSON[_0x32d6b1('0x678')](_0x62716b['data']):_0x62716b[_0x32d6b1('0x9b6')]()});}):_0x132f1c[_0x279746('0x12fb')][_0x279746('0x1c53')]({'fields':'id,name','sort':_0x279746('0x2aa'),'nolimit':_0x279746('0xe34')})['$promise'][_0x279746('0x17e7')](function(_0x232033){const _0xab11e4=_0x279746;_0x2ff79d[_0xab11e4('0x20e0')]=_0x232033['rows']||[];})['then'](function(){const _0x5285da=_0x279746;return _0x132f1c[_0x5285da('0x383')][_0x5285da('0x1c53')]({'userProfileId':_0x2ff79d['currentUser'][_0x5285da('0x1e76')],'sectionId':0x6a5})[_0x5285da('0x1af5')];})['then'](function(_0x27c259){const _0x440183=_0x279746,_0x3f8abf=_0x27c259&&_0x27c259[_0x440183('0x2319')]?_0x27c259[_0x440183('0x2319')][0x0]:null;if(!_0x3f8abf){const _0x2e7cf9=[],_0x20cd25=[];_0x2ff79d['triggerActions']['rows'][_0x440183('0xccd')](function(_0x28bfe2){const _0x19de4c=_0x440183;if(_0x28bfe2[_0x19de4c('0x1928')]===_0x19de4c('0x2343')){const _0x5e9269=_0x49cbdd()[_0x19de4c('0xe8e')](_0x2ff79d[_0x19de4c('0x20e0')],{'id':Number(_0x28bfe2['data1'])});_0x20cd25[_0x19de4c('0x269f')](_0x5e9269);}});for(let _0x967928=0x0;_0x967928<_0x2ff79d['projects']['length'];_0x967928++){const _0xe53960=_0x49cbdd()[_0x440183('0x26f8')](_0x20cd25,{'id':_0x2ff79d[_0x440183('0x20e0')][_0x967928]['id']});_0xe53960&&(_0x2ff79d[_0x440183('0x20e0')][_0x967928]['canSelect']=![],_0x2e7cf9[_0x440183('0x269f')](_0x2ff79d['projects'][_0x967928]));}_0x2ff79d[_0x440183('0x20e0')]=_0x2e7cf9;}else{if(!_0x3f8abf['autoAssociation'])return _0x132f1c[_0x440183('0x78d')]['get']({'sectionId':_0x3f8abf['id']})[_0x440183('0x1af5')][_0x440183('0x17e7')](function(_0x146b91){const _0x29c0a5=_0x440183,_0x549659=_0x49cbdd()[_0x29c0a5('0x787')](_0x146b91[_0x29c0a5('0x2319')],function(_0x9c35a9){const _0x3b3a7e=_0x29c0a5;return _0x49cbdd()[_0x3b3a7e('0xe8e')](_0x2ff79d['projects'],{'id':_0x9c35a9[_0x3b3a7e('0x5db')]});});let _0x294f5f=null;_0x294f5f=[],_0x2ff79d[_0x29c0a5('0x99a')][_0x29c0a5('0x2319')][_0x29c0a5('0xccd')](function(_0x3f40fa){const _0x16dbd8=_0x29c0a5;if(_0x3f40fa[_0x16dbd8('0x1928')]===_0x16dbd8('0x2343')){const _0x291bb7=_0x49cbdd()['find'](_0x2ff79d['projects'],{'id':Number(_0x3f40fa['data1'])});_0x294f5f['push'](_0x291bb7);}}),!_0x49cbdd()[_0x29c0a5('0x109a')](_0x294f5f)&&_0x294f5f[_0x29c0a5('0xccd')](function(_0xbc151f){const _0x140cc3=_0x29c0a5;if(!_0x49cbdd()['some'](_0x549659,['id',_0xbc151f['id']])){const _0x1c46fc=_0x49cbdd()[_0x140cc3('0xe8e')](_0x2ff79d[_0x140cc3('0x20e0')],{'id':_0xbc151f['id']});_0x1c46fc[_0x140cc3('0xe5c')]=![],_0x549659[_0x140cc3('0x269f')](_0x1c46fc);}}),_0x2ff79d[_0x29c0a5('0x20e0')]=_0x549659;});}})[_0x279746('0x16df')](function(_0x34469c){const _0x4c64c4=_0x279746;_0x343ff0['error']({'title':_0x34469c['status']?_0x4c64c4('0x14f7')+_0x34469c[_0x4c64c4('0x11c5')]+_0x4c64c4('0x16e4')+_0x34469c[_0x4c64c4('0x1833')]:_0x4c64c4('0x27b7'),'msg':_0x34469c[_0x4c64c4('0x1457')]?JSON['stringify'](_0x34469c[_0x4c64c4('0x1457')]):_0x34469c['toString']()});});}function _0x16b733(){const _0x15812e=_0x3b4a74;_0x50ba7e[_0x15812e('0xea2')]()?_0x132f1c[_0x15812e('0x2260')]['get']({'fields':_0x15812e('0x12d2'),'sort':'id','nolimit':_0x15812e('0xe34')})['$promise'][_0x15812e('0x17e7')](function(_0x588442){const _0x488ae8=_0x15812e;_0x2ff79d[_0x488ae8('0x143e')]=_0x588442[_0x488ae8('0x2319')]||[];})[_0x15812e('0x16df')](function(_0x1f80dd){const _0x489fa2=_0x15812e;_0x343ff0[_0x489fa2('0x1db9')]({'title':_0x1f80dd[_0x489fa2('0x11c5')]?'API:'+_0x1f80dd['status']+'\x20-\x20'+_0x1f80dd[_0x489fa2('0x1833')]:'SYSTEM:GET_TEMPLATES','msg':_0x1f80dd[_0x489fa2('0x1457')]?JSON[_0x489fa2('0x678')](_0x1f80dd[_0x489fa2('0x1457')]):_0x1f80dd['toString']()});}):_0x132f1c[_0x15812e('0x2260')][_0x15812e('0x1c53')]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x15812e('0x1af5')]['then'](function(_0x192cdb){const _0x83b1de=_0x15812e;_0x2ff79d[_0x83b1de('0x143e')]=_0x192cdb[_0x83b1de('0x2319')]||[];})[_0x15812e('0x17e7')](function(){const _0x30980c=_0x15812e;return _0x132f1c[_0x30980c('0x383')][_0x30980c('0x1c53')]({'userProfileId':_0x2ff79d[_0x30980c('0x197c')][_0x30980c('0x1e76')],'sectionId':0x3f1})[_0x30980c('0x1af5')];})[_0x15812e('0x17e7')](function(_0x3e695a){const _0x569bbd=_0x15812e,_0x1cfa3d=_0x3e695a&&_0x3e695a[_0x569bbd('0x2319')]?_0x3e695a[_0x569bbd('0x2319')][0x0]:null;if(!_0x1cfa3d){const _0x37970d=[],_0x265c5e=[];_0x2ff79d[_0x569bbd('0x99a')][_0x569bbd('0x2319')][_0x569bbd('0xccd')](function(_0x68fe09){const _0x3acd1d=_0x569bbd;if(_0x49cbdd()[_0x3acd1d('0x24b0')]([_0x3acd1d('0x1422'),'browser'],_0x68fe09['action'])){const _0x11ac9d=_0x49cbdd()[_0x3acd1d('0xe8e')](_0x2ff79d[_0x3acd1d('0x143e')],{'id':Number(_0x68fe09[_0x3acd1d('0x14da')])});_0x265c5e[_0x3acd1d('0x269f')](_0x11ac9d);}});for(let _0x48a3f8=0x0;_0x48a3f8<_0x2ff79d[_0x569bbd('0x143e')]['length'];_0x48a3f8++){const _0x425120=_0x49cbdd()[_0x569bbd('0x26f8')](_0x265c5e,{'id':_0x2ff79d[_0x569bbd('0x143e')][_0x48a3f8]['id']});_0x425120&&(_0x2ff79d['templates'][_0x48a3f8]['canSelect']=![],_0x37970d['push'](_0x2ff79d['templates'][_0x48a3f8]));}_0x2ff79d['templates']=_0x37970d;}else{if(!_0x1cfa3d[_0x569bbd('0x9e3')])return _0x132f1c[_0x569bbd('0x78d')][_0x569bbd('0x1c53')]({'sectionId':_0x1cfa3d['id']})[_0x569bbd('0x1af5')][_0x569bbd('0x17e7')](function(_0x2ab9fb){const _0x553efb=_0x569bbd,_0x4a7081=_0x49cbdd()['map'](_0x2ab9fb['rows'],function(_0x511d83){const _0xff7107=a0_0xd29e;return _0x49cbdd()[_0xff7107('0xe8e')](_0x2ff79d['templates'],{'id':_0x511d83[_0xff7107('0x5db')]});});let _0x140f8c=null;_0x140f8c=[],_0x2ff79d[_0x553efb('0x99a')][_0x553efb('0x2319')][_0x553efb('0xccd')](function(_0x3fdcf4){const _0x21ceb0=_0x553efb;if(_0x49cbdd()[_0x21ceb0('0x24b0')]([_0x21ceb0('0x1422'),_0x21ceb0('0x2055')],_0x3fdcf4[_0x21ceb0('0x1928')])){const _0x2ff1f7=_0x49cbdd()['find'](_0x2ff79d[_0x21ceb0('0x143e')],{'id':Number(_0x3fdcf4[_0x21ceb0('0x14da')])});_0x140f8c[_0x21ceb0('0x269f')](_0x2ff1f7);}}),!_0x49cbdd()['isEmpty'](_0x140f8c)&&_0x140f8c[_0x553efb('0xccd')](function(_0x36d184){const _0x33e1e8=_0x553efb;if(!_0x49cbdd()['some'](_0x4a7081,['id',_0x36d184['id']])){const _0x34230c=_0x49cbdd()['find'](_0x2ff79d[_0x33e1e8('0x143e')],{'id':_0x36d184['id']});_0x34230c['canSelect']=![],_0x4a7081[_0x33e1e8('0x269f')](_0x34230c);}}),_0x2ff79d[_0x553efb('0x143e')]=_0x4a7081;});}})[_0x15812e('0x16df')](function(_0x41cf14){const _0x510953=_0x15812e;_0x343ff0[_0x510953('0x1db9')]({'title':_0x41cf14[_0x510953('0x11c5')]?'API:'+_0x41cf14[_0x510953('0x11c5')]+_0x510953('0x16e4')+_0x41cf14['statusText']:_0x510953('0x408'),'msg':_0x41cf14[_0x510953('0x1457')]?JSON[_0x510953('0x678')](_0x41cf14[_0x510953('0x1457')]):_0x41cf14[_0x510953('0x9b6')]()});});}function _0x171fbb(){const _0x375b1a=_0x3b4a74;switch(_0x2ff79d[_0x375b1a('0x1928')][_0x375b1a('0x26ba')]){case _0x375b1a('0x19e6'):return _0x2ff79d[_0x375b1a('0x1904')][0x515];case _0x375b1a('0x17c7'):return _0x2ff79d[_0x375b1a('0x1904')][0x516];case _0x375b1a('0xe51'):return _0x2ff79d['hasSectionPermissions'][0x519];case _0x375b1a('0x9c5'):return _0x2ff79d[_0x375b1a('0x1904')][0x517];case _0x375b1a('0x56b'):return _0x2ff79d[_0x375b1a('0x1904')][0x51a];case'zoho':return _0x2ff79d['hasSectionPermissions'][0x51b];case _0x375b1a('0x172b'):return _0x2ff79d['hasSectionPermissions'][0x51c];case _0x375b1a('0x2604'):return _0x2ff79d[_0x375b1a('0x1904')][0x51d];case'servicenow':return _0x2ff79d[_0x375b1a('0x1904')][0x51e];case'freshsales':return _0x2ff79d[_0x375b1a('0x1904')][0x51f];}}function _0x2b0395(){const _0x282b03=_0x3b4a74;_0x2ff79d[_0x282b03('0x1928')][_0x282b03('0x26ba')]=undefined,_0x2ff79d[_0x282b03('0x1928')][_0x282b03('0x14da')]=undefined,_0x2ff79d[_0x282b03('0x1928')][_0x282b03('0x124e')]=undefined,_0x2ff79d[_0x282b03('0x1928')][_0x282b03('0x5c0')]=undefined,_0x2ff79d[_0x282b03('0x1928')][_0x282b03('0x13fa')]=_0x2ff79d[_0x282b03('0x1928')][_0x282b03('0x1928')]===_0x282b03('0x147')?0x5:undefined;}function _0x2e00f2(){const _0x3c3ea8=_0x3b4a74;switch(_0x2ff79d['action'][_0x3c3ea8('0x1928')]){case _0x3c3ea8('0x17df'):if(!_0x2ff79d[_0x3c3ea8('0x2504')])_0x3e7447();if(!_0x2ff79d[_0x3c3ea8('0xda3')])_0x3df5e3();_0x2ff79d[_0x3c3ea8('0x1928')][_0x3c3ea8('0x124e')]=_0x2ff79d[_0x3c3ea8('0x1928')][_0x3c3ea8('0x124e')]?_0x2ff79d[_0x3c3ea8('0x1928')]['data3']['split'](','):[_0x3c3ea8('0x2154')];if(_0x2ff79d[_0x3c3ea8('0x1928')][_0x3c3ea8('0x14da')]==='1'&&!_0x2ff79d[_0x3c3ea8('0x1928')][_0x3c3ea8('0x5c0')])_0x2ff79d[_0x3c3ea8('0x1928')][_0x3c3ea8('0x5c0')]=_0x3c3ea8('0x2154');break;case _0x3c3ea8('0x2343'):if(!_0x2ff79d[_0x3c3ea8('0x20e0')])_0x3e3621();break;case _0x3c3ea8('0x147'):if(!_0x2ff79d[_0x3c3ea8('0x1928')][_0x3c3ea8('0x13fa')])_0x2ff79d['action']['data5']=0x5;break;}}function _0x326e92(){_0x2b0395(),_0x2e00f2();}function _0x2a5000(){const _0x260d21=_0x3b4a74;_0x2ff79d[_0x260d21('0x1928')]['data2']=undefined,_0x2ff79d[_0x260d21('0x1928')][_0x260d21('0x124e')]=undefined,_0x2ff79d[_0x260d21('0x1928')][_0x260d21('0x9f')]=_0x2ff79d['newAction']?![]:!_0x171fbb();const _0xa44a3a=_0x260d21('0x983')+_0x49cbdd()[_0x260d21('0xb41')](_0x2ff79d['action'][_0x260d21('0x26ba')])+_0x260d21('0x896');_0x132f1c[_0xa44a3a][_0x260d21('0x1c53')]({'fields':_0x260d21('0x12d2'),'sort':'id','nolimit':_0x260d21('0xe34')})[_0x260d21('0x1af5')][_0x260d21('0x17e7')](function(_0x3739e4){const _0x2c6960=_0x260d21;_0x2ff79d[_0x2c6960('0xc72')]=_0x3739e4[_0x2c6960('0x2319')]||[];})[_0x260d21('0x16df')](function(_0xf39dd2){const _0x5354ed=_0x260d21;_0x343ff0['error']({'title':_0xf39dd2[_0x5354ed('0x11c5')]?'API:'+_0xf39dd2[_0x5354ed('0x11c5')]+_0x5354ed('0x16e4')+_0xf39dd2[_0x5354ed('0x1833')]:_0x5354ed('0x1a06')+_0x2ff79d[_0x5354ed('0x1928')]['data1'][_0x5354ed('0x14e2')]()+_0x5354ed('0x18b2'),'msg':_0xf39dd2[_0x5354ed('0x1457')]?JSON[_0x5354ed('0x678')](_0xf39dd2['data']):_0xf39dd2[_0x5354ed('0x9b6')]()});});}function _0x204cca(){_0x56272b();}function _0x541e48(){const _0x48d8c7=_0x3b4a74;if(_0x2ff79d[_0x48d8c7('0x1928')][_0x48d8c7('0x26ba')]==='0'&&!_0x2ff79d[_0x48d8c7('0x143e')])_0x16b733();}function _0x50d133(){const _0x1eb791=_0x3b4a74;if(_0x2ff79d['action'][_0x1eb791('0x14da')]==='0')_0x2ff79d['action']['data4']=undefined;if(!_0x2ff79d[_0x1eb791('0x1928')]['data4']&&_0x2ff79d[_0x1eb791('0x1928')][_0x1eb791('0x14da')]==='1')_0x2ff79d[_0x1eb791('0x1928')][_0x1eb791('0x5c0')]=_0x1eb791('0x2154');}function _0xe9a54d(){const _0x423a93=_0x3b4a74;_0x2ff79d['action'][_0x423a93('0x124e')]=undefined;const _0x4c29af=_0x423a93('0x983')+_0x49cbdd()[_0x423a93('0xb41')](_0x2ff79d['action'][_0x423a93('0x26ba')])+_0x423a93('0x273e');_0x132f1c[_0x4c29af][_0x423a93('0x1c53')]({'fields':'id,name,AccountId','sort':'id','nolimit':'true'})[_0x423a93('0x1af5')]['then'](function(_0x1ae783){const _0x5c31f2=_0x423a93;_0x2ff79d[_0x5c31f2('0x11d0')]=_0x1ae783[_0x5c31f2('0x2319')]||[];})[_0x423a93('0x16df')](function(_0x1e2e5f){const _0x389853=_0x423a93;_0x343ff0[_0x389853('0x1db9')]({'title':_0x1e2e5f[_0x389853('0x11c5')]?_0x389853('0x14f7')+_0x1e2e5f[_0x389853('0x11c5')]+_0x389853('0x16e4')+_0x1e2e5f['statusText']:_0x389853('0x1a06')+_0x2ff79d[_0x389853('0x1928')][_0x389853('0x26ba')][_0x389853('0x14e2')]()+_0x389853('0x1d3c'),'msg':_0x1e2e5f[_0x389853('0x1457')]?JSON[_0x389853('0x678')](_0x1e2e5f[_0x389853('0x1457')]):_0x1e2e5f[_0x389853('0x9b6')]()});});}function _0x22776b(){const _0x1d24db=_0x3b4a74,_0x1de72e=angular[_0x1d24db('0x14e5')](_0x2ff79d[_0x1d24db('0x1928')]);if(_0x49cbdd()['isArray'](_0x1de72e['data3']))_0x1de72e['data3']=_0x2ff79d[_0x1d24db('0x1928')][_0x1d24db('0x124e')]['join'](',');return _0x1de72e;}function _0x5b25d8(){const _0x2ebf60=_0x3b4a74;_0x2ff79d[_0x2ebf60('0x73e')]=[];const _0x3c1174=_0x22776b();_0x132f1c[_0x2ebf60('0x1c8d')][_0x2ebf60('0x100d')]({'id':_0x566c88[_0x2ebf60('0x16fb')]['id']},_0x3c1174)[_0x2ebf60('0x1af5')][_0x2ebf60('0x17e7')](function(_0x14d8ca){const _0x391fff=_0x2ebf60;_0x2ff79d[_0x391fff('0xacf')][_0x391fff('0x1893')](_0x14d8ca['toJSON']()),_0x343ff0[_0x391fff('0x130d')]({'title':_0x540c68[_0x391fff('0x1acc')](_0x391fff('0x22f4'))}),_0x1b0c82(_0x2ff79d[_0x391fff('0xacf')]);})[_0x2ebf60('0x16df')](function(_0x3a1989){const _0x4a9941=_0x2ebf60;if(_0x3a1989['data']&&_0x3a1989[_0x4a9941('0x1457')][_0x4a9941('0x73e')]&&_0x3a1989[_0x4a9941('0x1457')][_0x4a9941('0x73e')][_0x4a9941('0x1f73')]){_0x2ff79d[_0x4a9941('0x73e')]=_0x3a1989[_0x4a9941('0x1457')][_0x4a9941('0x73e')]||[{'message':_0x3a1989[_0x4a9941('0x9b6')](),'type':_0x4a9941('0x1784')}];for(let _0x360502=0x0;_0x360502<_0x3a1989[_0x4a9941('0x1457')][_0x4a9941('0x73e')]['length'];_0x360502+=0x1){_0x343ff0[_0x4a9941('0x1db9')]({'title':_0x3a1989[_0x4a9941('0x1457')]['errors'][_0x360502][_0x4a9941('0x412')],'msg':_0x3a1989[_0x4a9941('0x1457')]['errors'][_0x360502][_0x4a9941('0x1603')]});}}else _0x343ff0[_0x4a9941('0x1db9')]({'title':_0x3a1989[_0x4a9941('0x11c5')]?_0x4a9941('0x14f7')+_0x3a1989[_0x4a9941('0x11c5')]+_0x4a9941('0x16e4')+_0x3a1989[_0x4a9941('0x1833')]:_0x4a9941('0x1784'),'msg':_0x3a1989[_0x4a9941('0x1457')]?JSON[_0x4a9941('0x678')](_0x3a1989[_0x4a9941('0x1457')][_0x4a9941('0x1603')]):_0x3a1989[_0x4a9941('0x9b6')]()});});}function _0x353a77(){const _0x378b93=_0x3b4a74;_0x2ff79d['errors']=[];const _0x6f479a=_0x22776b();_0x132f1c['action'][_0x378b93('0x27ba')]({'id':_0x6f479a['id']},_0x6f479a)['$promise']['then'](function(){const _0x4d91d4=_0x378b93;_0x2ff79d[_0x4d91d4('0xacf')]=_0x49cbdd()['map'](_0x2ff79d[_0x4d91d4('0xacf')],function(_0x3eb49d){if(_0x3eb49d['id']===_0x6f479a['id'])return _0x6f479a;else return _0x3eb49d;}),_0x343ff0[_0x4d91d4('0x130d')]({'title':_0x540c68[_0x4d91d4('0x1acc')](_0x4d91d4('0xd03'))}),_0x1b0c82(_0x2ff79d[_0x4d91d4('0xacf')]);})[_0x378b93('0x16df')](function(_0x504e4b){const _0x3280ac=_0x378b93;if(_0x504e4b['data']&&_0x504e4b[_0x3280ac('0x1457')]['errors']&&_0x504e4b['data'][_0x3280ac('0x73e')]['length']){_0x2ff79d[_0x3280ac('0x73e')]=_0x504e4b['data'][_0x3280ac('0x73e')]||[{'message':_0x504e4b[_0x3280ac('0x9b6')](),'type':_0x3280ac('0x1141')}];for(let _0x50c6f0=0x0;_0x50c6f0<_0x504e4b[_0x3280ac('0x1457')]['errors']['length'];_0x50c6f0++){_0x343ff0[_0x3280ac('0x1db9')]({'title':_0x504e4b[_0x3280ac('0x1457')][_0x3280ac('0x73e')][_0x50c6f0]['type'],'msg':_0x504e4b['data'][_0x3280ac('0x73e')][_0x50c6f0]['message']});}}else _0x343ff0['error']({'title':_0x504e4b[_0x3280ac('0x11c5')]?_0x3280ac('0x14f7')+_0x504e4b[_0x3280ac('0x11c5')]+_0x3280ac('0x16e4')+_0x504e4b[_0x3280ac('0x1833')]:_0x3280ac('0x1141'),'msg':_0x504e4b[_0x3280ac('0x1457')]?JSON[_0x3280ac('0x678')](_0x504e4b['data'][_0x3280ac('0x1603')]):_0x504e4b[_0x3280ac('0x9b6')]()});});}function _0x17f46d(_0x86c9){const _0x5e6e60=_0x3b4a74;_0x2ff79d[_0x5e6e60('0x73e')]=[];const _0x26b4f7=_0x68504f[_0x5e6e60('0x1121')]({'skipHide':!![]})[_0x5e6e60('0x24d3')](_0x540c68[_0x5e6e60('0x1acc')](_0x5e6e60('0x2655')))[_0x5e6e60('0x2095')](_0x5e6e60('0x249'))['ok'](_0x540c68[_0x5e6e60('0x1acc')](_0x5e6e60('0x1bca')))[_0x5e6e60('0x1d47')](_0x540c68['instant'](_0x5e6e60('0x34f')))[_0x5e6e60('0x104f')](_0x86c9);_0x68504f[_0x5e6e60('0x28e2')](_0x26b4f7)[_0x5e6e60('0x17e7')](function(){const _0x55afae=_0x5e6e60;_0x132f1c[_0x55afae('0x1928')]['delete']({'id':_0x2ff79d[_0x55afae('0x1928')]['id']})[_0x55afae('0x1af5')]['then'](function(){const _0x15320e=_0x55afae;_0x2ff79d[_0x15320e('0xacf')]=_0x49cbdd()['filter'](_0x2ff79d[_0x15320e('0xacf')],function(_0x20aa65){const _0x226dbe=_0x15320e;return _0x20aa65['id']!==_0x2ff79d[_0x226dbe('0x1928')]['id'];}),_0x343ff0[_0x15320e('0x130d')]({'title':_0x540c68[_0x15320e('0x1acc')]('TOOLS.NOTIFICATIONS.ACTION_DELETED_SUCCESS_TITLE')}),_0x1b0c82(_0x2ff79d[_0x15320e('0xacf')]);})['catch'](function(_0x4ee6a4){const _0x33dd75=_0x55afae;if(_0x4ee6a4[_0x33dd75('0x1457')]&&_0x4ee6a4[_0x33dd75('0x1457')][_0x33dd75('0x73e')]&&_0x4ee6a4[_0x33dd75('0x1457')][_0x33dd75('0x73e')]['length']){_0x2ff79d[_0x33dd75('0x73e')]=_0x4ee6a4['data'][_0x33dd75('0x73e')]||[{'message':_0x4ee6a4['toString'](),'type':_0x33dd75('0x1c5')}];for(let _0x169e05=0x0;_0x169e05<_0x4ee6a4[_0x33dd75('0x1457')][_0x33dd75('0x73e')][_0x33dd75('0x1f73')];_0x169e05++){_0x343ff0[_0x33dd75('0x1db9')]({'title':_0x4ee6a4[_0x33dd75('0x1457')][_0x33dd75('0x73e')][_0x169e05][_0x33dd75('0x412')],'msg':_0x4ee6a4['data'][_0x33dd75('0x73e')][_0x169e05][_0x33dd75('0x1603')]});}}else _0x343ff0[_0x33dd75('0x1db9')]({'title':_0x4ee6a4['status']?_0x33dd75('0x14f7')+_0x4ee6a4[_0x33dd75('0x11c5')]+_0x33dd75('0x16e4')+_0x4ee6a4[_0x33dd75('0x1833')]:_0x33dd75('0x1c5'),'msg':_0x4ee6a4[_0x33dd75('0x1457')]?JSON[_0x33dd75('0x678')](_0x4ee6a4[_0x33dd75('0x1457')]['message']):_0x4ee6a4[_0x33dd75('0x1603')]||_0x4ee6a4[_0x33dd75('0x9b6')]()});});},function(){});}function _0x1b0c82(_0x47e3fe){const _0x29f248=_0x3b4a74;_0x68504f[_0x29f248('0x212a')](_0x47e3fe);}}const _0x1a3b94=_0x3ce1f0,_0x140df6=_0x4cf2bc['p']+_0x4376d8('0x75f');_0x7b997a[_0x4376d8('0x1b9c')]=['$scope','$q','$translate',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$document','toasty','api',_0x4376d8('0x1885')];function _0x7b997a(_0x44f6ce,_0x3e1c52,_0xb76f39,_0x216637,_0x1fd27e,_0x1e9cc3,_0x2dede7,_0x1ca891,_0x1f5ceb){const _0x447aff=_0x4376d8,_0x50886f=this;_0x50886f[_0x447aff('0x197c')]=_0x1f5ceb['getCurrentUser'](),_0x50886f[_0x447aff('0x1c8d')]={},_0x50886f[_0x447aff('0x21f5')]={'count':0x0,'rows':[]},_0x50886f['selectedTriggerAllConditions']=[],_0x50886f['query']={'fields':_0x447aff('0x2371'),'limit':0xa,'page':0x1},_0x50886f[_0x447aff('0x9c9')]={'queue':'Queue','lastevent':_0x447aff('0x202d'),'routeId':_0x447aff('0x7b5'),'agent':_0x447aff('0x1874'),'account':'Account','interaction':_0x447aff('0x3de'),'message':'Message'},_0x50886f[_0x447aff('0x2625')]={'abandoned':_0x447aff('0x98b'),'timeout':_0x447aff('0x1ceb'),'complete':_0x447aff('0xef6'),'rejected':_0x447aff('0x6b'),'called':_0x447aff('0x950'),'connect':_0x447aff('0x6b5'),'nosuchnumber':_0x447aff('0x13e8'),'busy':_0x447aff('0x1ea5'),'noanswer':_0x447aff('0x1afb'),'congestion':_0x447aff('0xce2'),'agentreject':_0x447aff('0x72f')},_0x50886f[_0x447aff('0x1503')]={'in':_0x447aff('0x19ce'),'out':'Outgoing','accept':'Accepted','reject':'Rejected'},_0x50886f[_0x447aff('0xdf0')]=_0x5a5371,_0x50886f[_0x447aff('0x130d')]=_0x327514,_0x50886f[_0x447aff('0x157f')]=_0x2509ff,_0x50886f[_0x447aff('0x17')]=_0x37cea8,_0x50886f[_0x447aff('0xbaa')]=_0x3b1ca7,_0x50886f['deleteConfirm']=_0x8d31d,_0x50886f[_0x447aff('0x1f6b')]=_0x3ba2b0;function _0x5a5371(_0xec9f18,_0x520b86){const _0x3cabb1=_0x447aff;_0x50886f[_0x3cabb1('0x1c8d')]=_0xec9f18,_0x50886f[_0x3cabb1('0x103e')]=typeof _0x520b86!=='undefined'?_0x520b86:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x50886f[_0x3cabb1('0x826')]['TriggerAllId']=_0x50886f['trigger']['id'],_0x50886f[_0x3cabb1('0x826')]['id']=_0x50886f['trigger']['id'],_0x2509ff();}function _0x397acb(){const _0x1e1266=_0x447aff,_0x344ce1=_0x50886f[_0x1e1266('0x1c8d')][_0x1e1266('0x15d7')],_0x987c3b=_0x50886f[_0x1e1266('0x1c8d')][_0x1e1266('0x15d7')]+_0x50886f[_0x1e1266('0x1c8d')][_0x1e1266('0x15d7')]===_0x1e1266('0x2219')?_0x1e1266('0x1a97'):_0x1e1266('0x1e6e'),_0x330859=_0x50886f['trigger'][_0x1e1266('0x15d7')]+(_0x50886f[_0x1e1266('0x1c8d')][_0x1e1266('0x15d7')]==='chat'?_0x1e1266('0x1b71'):_0x1e1266('0x896'));let _0x3abb71;switch(_0x50886f[_0x1e1266('0x1c8d')]['channel']){case _0x1e1266('0x2219'):_0x3abb71=0x1f6;break;case _0x1e1266('0xc23'):_0x3abb71=0x386;break;case _0x1e1266('0xc2'):_0x3abb71=0x25a;break;case'openchannel':_0x3abb71=0x322;break;case _0x1e1266('0x2cd'):_0x3abb71=0x2be;break;case _0x1e1266('0x1d27'):_0x3abb71=0x836;break;}_0x1f5ceb['isAdmin']()?_0x1ca891[_0x330859][_0x1e1266('0x1c53')]({'fields':_0x1e1266('0x12d2'),'sort':'id','nolimit':_0x1e1266('0xe34')})[_0x1e1266('0x1af5')]['then'](function(_0x3d3f1d){const _0x3342ec=_0x1e1266;_0x50886f[_0x987c3b]=_0x3d3f1d[_0x3342ec('0x2319')]||[];})[_0x1e1266('0x16df')](function(_0x48eb9f){const _0x1e2ae7=_0x1e1266;_0x2dede7[_0x1e2ae7('0x1db9')]({'title':_0x48eb9f[_0x1e2ae7('0x11c5')]?_0x1e2ae7('0x14f7')+_0x48eb9f[_0x1e2ae7('0x11c5')]+_0x1e2ae7('0x16e4')+_0x48eb9f[_0x1e2ae7('0x1833')]:_0x1e2ae7('0x1a06')+_0x344ce1['toUpperCase']()+_0x344ce1===_0x1e2ae7('0x2219')?_0x1e2ae7('0x15eb'):_0x1e2ae7('0x18b2'),'msg':_0x48eb9f['data']?JSON[_0x1e2ae7('0x678')](_0x48eb9f[_0x1e2ae7('0x1457')]):_0x48eb9f['toString']()});}):_0x1ca891[_0x330859][_0x1e1266('0x1c53')]({'fields':_0x1e1266('0x12d2'),'sort':'id','nolimit':_0x1e1266('0xe34')})['$promise']['then'](function(_0x307bad){_0x50886f[_0x987c3b]=_0x307bad['rows']||[];})['then'](function(){const _0x20c795=_0x1e1266;return _0x1ca891[_0x20c795('0x383')]['get']({'userProfileId':_0x50886f[_0x20c795('0x197c')][_0x20c795('0x1e76')],'sectionId':_0x3abb71})['$promise'];})[_0x1e1266('0x17e7')](function(_0x389f4e){const _0x30d1bc=_0x1e1266,_0x102c66=_0x389f4e&&_0x389f4e['rows']?_0x389f4e[_0x30d1bc('0x2319')][0x0]:null;if(!_0x102c66){const _0x216795=[],_0x479b60=[];_0x50886f[_0x30d1bc('0x21f5')]['rows']['forEach'](function(_0x2af5db){const _0x54edf8=_0x30d1bc;if(_0x2af5db['field']==='account'){const _0x399301=_0x49cbdd()[_0x54edf8('0xe8e')](_0x50886f[_0x987c3b],{'id':Number(_0x2af5db[_0x54edf8('0x175b')])});_0x479b60[_0x54edf8('0x269f')](_0x399301);}});for(let _0x49ce08=0x0;_0x49ce08<_0x50886f[_0x987c3b][_0x30d1bc('0x1f73')];_0x49ce08++){const _0x3d48fa=_0x49cbdd()[_0x30d1bc('0x26f8')](_0x479b60,{'id':_0x50886f[_0x987c3b][_0x49ce08]['id']});_0x3d48fa&&(_0x50886f[_0x987c3b][_0x49ce08][_0x30d1bc('0xe5c')]=![],_0x216795[_0x30d1bc('0x269f')](_0x50886f[_0x987c3b][_0x49ce08]));}_0x50886f[_0x987c3b]=_0x216795;}else{if(!_0x102c66[_0x30d1bc('0x9e3')])return _0x1ca891['userProfileResource']['get']({'sectionId':_0x102c66['id']})[_0x30d1bc('0x1af5')][_0x30d1bc('0x17e7')](function(_0x36b2cb){const _0xf17956=_0x30d1bc,_0x1bbcd1=_0x49cbdd()[_0xf17956('0x787')](_0x36b2cb[_0xf17956('0x2319')],function(_0x1ba522){const _0x51529d=_0xf17956;return _0x49cbdd()[_0x51529d('0xe8e')](_0x50886f[_0x987c3b],{'id':_0x1ba522[_0x51529d('0x5db')]});});let _0x2f3ddf=null;_0x2f3ddf=[],_0x50886f['triggerAllConditions'][_0xf17956('0x2319')]['forEach'](function(_0x553f23){const _0x27231b=_0xf17956;if(_0x553f23['field']==='account'){const _0x4ef9d9=_0x49cbdd()['find'](_0x50886f[_0x987c3b],{'id':Number(_0x553f23['value'])});_0x2f3ddf[_0x27231b('0x269f')](_0x4ef9d9);}}),!_0x49cbdd()[_0xf17956('0x109a')](_0x2f3ddf)&&_0x2f3ddf[_0xf17956('0xccd')](function(_0x249bf3){const _0x5c2434=_0xf17956;if(!_0x49cbdd()['some'](_0x1bbcd1,['id',_0x249bf3['id']])){const _0x2739c6=_0x49cbdd()[_0x5c2434('0xe8e')](_0x50886f[_0x987c3b],{'id':_0x249bf3['id']});_0x2739c6['canSelect']=![],_0x1bbcd1['push'](_0x2739c6);}}),_0x50886f[_0x987c3b]=_0x1bbcd1;});}})['catch'](function(_0x32087c){const _0x207d48=_0x1e1266;_0x2dede7['error']({'title':_0x32087c[_0x207d48('0x11c5')]?'API:'+_0x32087c[_0x207d48('0x11c5')]+'\x20-\x20'+_0x32087c[_0x207d48('0x1833')]:_0x207d48('0x1a06')+_0x344ce1[_0x207d48('0x14e2')]()+_0x344ce1===_0x207d48('0x2219')?'WEBSITES':_0x207d48('0x18b2'),'msg':_0x32087c['data']?JSON[_0x207d48('0x678')](_0x32087c['data']):_0x32087c[_0x207d48('0x9b6')]()});});}function _0x56367a(){const _0x296dfa=_0x447aff,_0x42bbbd=[{'id':0x191,'type':_0x296dfa('0x1e77')},{'id':0x5dd,'type':'outbound'}];let _0x4fb741=null;_0x1f5ceb['isAdmin']()?_0x1ca891['voiceQueue']['get']({'fields':_0x296dfa('0x960'),'sort':_0x296dfa('0x2aa'),'nolimit':_0x296dfa('0xe34')})[_0x296dfa('0x1af5')]['then'](function(_0x581098){const _0x40b818=_0x296dfa;_0x50886f['queues']=_0x581098[_0x40b818('0x2319')]||[];})[_0x296dfa('0x16df')](function(_0x5349d7){const _0x7a8b7d=_0x296dfa;_0x2dede7[_0x7a8b7d('0x1db9')]({'title':_0x5349d7[_0x7a8b7d('0x11c5')]?_0x7a8b7d('0x14f7')+_0x5349d7[_0x7a8b7d('0x11c5')]+_0x7a8b7d('0x16e4')+_0x5349d7['statusText']:'SYSTEM:GET_VOICEQUEUES','msg':_0x5349d7[_0x7a8b7d('0x1457')]?JSON[_0x7a8b7d('0x678')](_0x5349d7[_0x7a8b7d('0x1457')]):_0x5349d7['toString']()});}):_0x1ca891[_0x296dfa('0x1243')][_0x296dfa('0x1c53')]({'fields':_0x296dfa('0x960'),'sort':_0x296dfa('0x2aa'),'nolimit':_0x296dfa('0xe34')})['$promise']['then'](function(_0x3046df){const _0x3c130f=_0x296dfa;_0x4fb741=_0x3046df[_0x3c130f('0x2319')]||[];})[_0x296dfa('0x17e7')](function(){const _0x1218a6=_0x296dfa,_0x21dc96=[];for(let _0x227718=0x0;_0x227718<_0x42bbbd['length'];_0x227718++){_0x21dc96['push'](_0x1ca891[_0x1218a6('0x383')]['get']({'userProfileId':_0x50886f[_0x1218a6('0x197c')][_0x1218a6('0x1e76')],'sectionId':_0x42bbbd[_0x227718]['id']})[_0x1218a6('0x1af5')]);}return _0x3e1c52[_0x1218a6('0x1283')](_0x21dc96);})['then'](function(_0x569418){const _0x5ad07b=_0x296dfa,_0x5eb91e=_0x49cbdd()['map'](_0x569418,function(_0x3fcc30){return _0x3fcc30&&_0x3fcc30['rows']?_0x3fcc30['rows'][0x0]:null;}),_0x8b66b1=[];for(let _0x48c21b=0x0;_0x48c21b<_0x42bbbd[_0x5ad07b('0x1f73')];_0x48c21b++){const _0x1d4715=_0x49cbdd()[_0x5ad07b('0xe8e')](_0x5eb91e,[_0x5ad07b('0x2676'),_0x42bbbd[_0x48c21b]['id']]);if(_0x1d4715){if(!_0x1d4715[_0x5ad07b('0x9e3')])_0x8b66b1['push'](_0x1ca891[_0x5ad07b('0x78d')]['get']({'sectionId':_0x1d4715['id']})['$promise']);else{const _0x2b6b27=[];_0x4fb741[_0x5ad07b('0xccd')](function(_0x149b14){const _0x16eb08=_0x5ad07b;_0x149b14['type']===_0x42bbbd[_0x48c21b][_0x16eb08('0x412')]&&_0x2b6b27['push'](_0x149b14);}),_0x8b66b1[_0x5ad07b('0x269f')]({'rows':_0x2b6b27,'count':_0x2b6b27['length']});}}}return _0x3e1c52[_0x5ad07b('0x1283')](_0x8b66b1);})['then'](function(_0x3a909b){const _0x14c22f=_0x296dfa,_0x168ec3=[],_0x1e1a67=[];_0x50886f[_0x14c22f('0x21f5')]['rows'][_0x14c22f('0xccd')](function(_0x4553b4){const _0x46d721=_0x14c22f;if(_0x4553b4['field']===_0x46d721('0x1bd')){const _0x410845=_0x49cbdd()[_0x46d721('0xe8e')](_0x4fb741,{'name':_0x4553b4[_0x46d721('0x175b')]});_0x1e1a67[_0x46d721('0x269f')](_0x410845);}});for(let _0x515019=0x0;_0x515019<_0x3a909b[_0x14c22f('0x1f73')];_0x515019++){const _0x5d4bf5=_0x3a909b[_0x515019][_0x14c22f('0x2319')]||[];_0x5d4bf5[_0x14c22f('0xccd')](function(_0x3358ed){const _0x5a82a9=_0x14c22f;_0x168ec3[_0x5a82a9('0x269f')](_0x3358ed);});}!_0x49cbdd()[_0x14c22f('0x109a')](_0x1e1a67)&&_0x1e1a67[_0x14c22f('0xccd')](function(_0x163acd){const _0x166941=_0x14c22f;if(!_0x49cbdd()[_0x166941('0x26f8')](_0x168ec3,[_0x166941('0x5db'),_0x163acd['id']])){const _0x520157=_0x49cbdd()[_0x166941('0xe8e')](_0x4fb741,{'id':_0x163acd['id']});_0x520157['canSelect']=![],_0x168ec3[_0x166941('0x269f')](_0x520157);}}),_0x50886f[_0x14c22f('0x14c4')]=_0x168ec3;})['catch'](function(_0x42695f){const _0x1b2673=_0x296dfa;_0x2dede7[_0x1b2673('0x1db9')]({'title':_0x42695f[_0x1b2673('0x11c5')]?_0x1b2673('0x14f7')+_0x42695f['status']+'\x20-\x20'+_0x42695f[_0x1b2673('0x1833')]:_0x1b2673('0x92a'),'msg':_0x42695f[_0x1b2673('0x1457')]?JSON[_0x1b2673('0x678')](_0x42695f[_0x1b2673('0x1457')]):_0x42695f[_0x1b2673('0x9b6')]()});});}function _0x4b5b2f(){const _0x3f7bed=_0x447aff;_0x1f5ceb['isAdmin']()?_0x1ca891[_0x3f7bed('0x16c2')][_0x3f7bed('0x1c53')]({'fields':'id,exten','type':_0x3f7bed('0x1ade'),'VoiceExtensionId':_0x3f7bed('0x9bb'),'nolimit':'true'})[_0x3f7bed('0x1af5')]['then'](function(_0x1a4e60){const _0x3cee94=_0x3f7bed;_0x50886f[_0x3cee94('0x789')]=_0x1a4e60['rows']||[];})[_0x3f7bed('0x16df')](function(_0x2f6552){const _0x280045=_0x3f7bed;_0x2dede7[_0x280045('0x1db9')]({'title':_0x2f6552['status']?'API:'+_0x2f6552[_0x280045('0x11c5')]+'\x20-\x20'+_0x2f6552[_0x280045('0x1833')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x2f6552['data']?JSON['stringify'](_0x2f6552[_0x280045('0x1457')]):_0x2f6552[_0x280045('0x9b6')]()});}):_0x1ca891[_0x3f7bed('0x16c2')][_0x3f7bed('0x1c53')]({'fields':_0x3f7bed('0x1cd2'),'type':'outbound','VoiceExtensionId':_0x3f7bed('0x9bb'),'nolimit':_0x3f7bed('0xe34')})['$promise']['then'](function(_0x10c353){const _0x231631=_0x3f7bed;_0x50886f[_0x231631('0x789')]=_0x10c353['rows']||[];})[_0x3f7bed('0x17e7')](function(){const _0x4bb8cb=_0x3f7bed;return _0x1ca891[_0x4bb8cb('0x383')][_0x4bb8cb('0x1c53')]({'userProfileId':_0x50886f[_0x4bb8cb('0x197c')][_0x4bb8cb('0x1e76')],'sectionId':0x193})[_0x4bb8cb('0x1af5')];})[_0x3f7bed('0x17e7')](function(_0x32a1e3){const _0x565b7a=_0x3f7bed,_0x179708=_0x32a1e3&&_0x32a1e3[_0x565b7a('0x2319')]?_0x32a1e3[_0x565b7a('0x2319')][0x0]:null;if(!_0x179708){const _0x4d85d3=[],_0x4107b5=[];_0x50886f[_0x565b7a('0x21f5')]['rows'][_0x565b7a('0xccd')](function(_0xe3410a){const _0x5b4afc=_0x565b7a;if(_0xe3410a[_0x5b4afc('0x1515')]===_0x5b4afc('0x1e01')){const _0x4d43c0=_0x49cbdd()['find'](_0x50886f[_0x5b4afc('0x789')],{'id':Number(_0xe3410a[_0x5b4afc('0x175b')])});_0x4107b5['push'](_0x4d43c0);}});for(let _0x176fb5=0x0;_0x176fb5<_0x50886f[_0x565b7a('0x789')][_0x565b7a('0x1f73')];_0x176fb5++){const _0x5a4a7c=_0x49cbdd()['some'](_0x4107b5,{'id':_0x50886f[_0x565b7a('0x789')][_0x176fb5]['id']});_0x5a4a7c&&(_0x50886f['outboundRoutes'][_0x176fb5]['canSelect']=![],_0x4d85d3[_0x565b7a('0x269f')](_0x50886f['outboundRoutes'][_0x176fb5]));}_0x50886f['outboundRoutes']=_0x4d85d3;}else{if(!_0x179708['autoAssociation'])return _0x1ca891['userProfileResource'][_0x565b7a('0x1c53')]({'sectionId':_0x179708['id']})['$promise'][_0x565b7a('0x17e7')](function(_0x165c6d){const _0x297a72=_0x565b7a,_0x3532e3=_0x49cbdd()[_0x297a72('0x787')](_0x165c6d[_0x297a72('0x2319')],function(_0x2ef8d0){const _0x12f27c=_0x297a72;return _0x49cbdd()[_0x12f27c('0xe8e')](_0x50886f[_0x12f27c('0x789')],{'id':_0x2ef8d0[_0x12f27c('0x5db')]});});let _0x53b10f=null;_0x53b10f=[],_0x50886f[_0x297a72('0x21f5')][_0x297a72('0x2319')][_0x297a72('0xccd')](function(_0x887f54){const _0x58d205=_0x297a72;if(_0x887f54[_0x58d205('0x1515')]===_0x58d205('0x1e01')){const _0x207f16=_0x49cbdd()[_0x58d205('0xe8e')](_0x50886f[_0x58d205('0x789')],{'id':Number(_0x887f54[_0x58d205('0x175b')])});_0x53b10f[_0x58d205('0x269f')](_0x207f16);}}),!_0x49cbdd()[_0x297a72('0x109a')](_0x53b10f)&&_0x53b10f[_0x297a72('0xccd')](function(_0x29588c){const _0x926141=_0x297a72;if(!_0x49cbdd()['some'](_0x3532e3,['id',_0x29588c['id']])){const _0x1bb5b6=_0x49cbdd()[_0x926141('0xe8e')](_0x50886f[_0x926141('0x789')],{'id':_0x29588c['id']});_0x1bb5b6[_0x926141('0xe5c')]=![],_0x3532e3['push'](_0x1bb5b6);}}),_0x50886f[_0x297a72('0x789')]=_0x3532e3;});}})['catch'](function(_0x24ef96){const _0x48f829=_0x3f7bed;_0x2dede7['error']({'title':_0x24ef96[_0x48f829('0x11c5')]?_0x48f829('0x14f7')+_0x24ef96[_0x48f829('0x11c5')]+_0x48f829('0x16e4')+_0x24ef96['statusText']:_0x48f829('0x228'),'msg':_0x24ef96[_0x48f829('0x1457')]?JSON['stringify'](_0x24ef96['data']):_0x24ef96[_0x48f829('0x9b6')]()});});}function _0x83c626(){const _0x236f84=_0x447aff;_0x1f5ceb[_0x236f84('0xea2')]()?_0x1ca891[_0x236f84('0x221e')][_0x236f84('0x1c53')]({'fields':_0x236f84('0x1f7'),'sort':_0x236f84('0x2aa'),'role':_0x236f84('0x684'),'nolimit':'true'})['$promise'][_0x236f84('0x17e7')](function(_0x34c3f6){const _0x3ce6a4=_0x236f84;_0x50886f[_0x3ce6a4('0x25ea')]=_0x34c3f6[_0x3ce6a4('0x2319')]||[];})[_0x236f84('0x16df')](function(_0x3c605a){const _0x3e0405=_0x236f84;_0x2dede7[_0x3e0405('0x1db9')]({'title':_0x3c605a[_0x3e0405('0x11c5')]?_0x3e0405('0x14f7')+_0x3c605a[_0x3e0405('0x11c5')]+_0x3e0405('0x16e4')+_0x3c605a[_0x3e0405('0x1833')]:_0x3e0405('0x23e0'),'msg':_0x3c605a[_0x3e0405('0x1457')]?JSON[_0x3e0405('0x678')](_0x3c605a[_0x3e0405('0x1457')]):_0x3c605a[_0x3e0405('0x9b6')]()});}):_0x1ca891[_0x236f84('0x221e')][_0x236f84('0x1c53')]({'fields':'id,name,fullname','sort':_0x236f84('0x2aa'),'role':_0x236f84('0x684'),'nolimit':_0x236f84('0xe34')})[_0x236f84('0x1af5')]['then'](function(_0x4e014c){const _0x475a1b=_0x236f84;_0x50886f[_0x475a1b('0x25ea')]=_0x4e014c[_0x475a1b('0x2319')]||[];})[_0x236f84('0x17e7')](function(){const _0x4df1a6=_0x236f84;return _0x1ca891[_0x4df1a6('0x383')][_0x4df1a6('0x1c53')]({'userProfileId':_0x50886f[_0x4df1a6('0x197c')][_0x4df1a6('0x1e76')],'sectionId':0xca})[_0x4df1a6('0x1af5')];})['then'](function(_0x202e14){const _0x50a367=_0x236f84,_0x31f337=_0x202e14&&_0x202e14[_0x50a367('0x2319')]?_0x202e14[_0x50a367('0x2319')][0x0]:null;if(!_0x31f337){const _0x43cd9a=[],_0x2cf48b=[];_0x50886f[_0x50a367('0x21f5')][_0x50a367('0x2319')][_0x50a367('0xccd')](function(_0x83e1db){const _0x168092=_0x50a367;if(_0x83e1db[_0x168092('0x1515')]==='agent'){const _0x330f0a=_0x49cbdd()[_0x168092('0xe8e')](_0x50886f[_0x168092('0x25ea')],{'name':_0x83e1db['value']});_0x2cf48b[_0x168092('0x269f')](_0x330f0a);}});for(let _0xcdbc6b=0x0;_0xcdbc6b<_0x50886f[_0x50a367('0x25ea')]['length'];_0xcdbc6b++){const _0x42180d=_0x49cbdd()['some'](_0x2cf48b,{'id':_0x50886f[_0x50a367('0x25ea')][_0xcdbc6b]['id']});_0x42180d&&(_0x50886f['agents'][_0xcdbc6b][_0x50a367('0xe5c')]=![],_0x43cd9a['push'](_0x50886f[_0x50a367('0x25ea')][_0xcdbc6b]));}_0x50886f[_0x50a367('0x25ea')]=_0x43cd9a;}else{if(!_0x31f337[_0x50a367('0x9e3')])return _0x1ca891[_0x50a367('0x78d')][_0x50a367('0x1c53')]({'sectionId':_0x31f337['id']})[_0x50a367('0x1af5')][_0x50a367('0x17e7')](function(_0x328306){const _0x228e89=_0x50a367,_0x59caad=_0x49cbdd()[_0x228e89('0x787')](_0x328306[_0x228e89('0x2319')],function(_0xba4b68){const _0x12935f=_0x228e89;return _0x49cbdd()[_0x12935f('0xe8e')](_0x50886f[_0x12935f('0x25ea')],{'id':_0xba4b68[_0x12935f('0x5db')]});});let _0x58d807=null;_0x58d807=[],_0x50886f[_0x228e89('0x21f5')]['rows'][_0x228e89('0xccd')](function(_0x45aa4b){const _0x85b865=_0x228e89;if(_0x45aa4b['field']===_0x85b865('0x684')){const _0xb3f56a=_0x49cbdd()['find'](_0x50886f[_0x85b865('0x25ea')],{'name':_0x45aa4b['value']});_0x58d807[_0x85b865('0x269f')](_0xb3f56a);}}),!_0x49cbdd()[_0x228e89('0x109a')](_0x58d807)&&_0x58d807['forEach'](function(_0x248168){const _0x48c6ab=_0x228e89;if(!_0x49cbdd()['some'](_0x59caad,['id',_0x248168['id']])){const _0x4af2d1=_0x49cbdd()[_0x48c6ab('0xe8e')](_0x50886f[_0x48c6ab('0x25ea')],{'id':_0x248168['id']});_0x4af2d1[_0x48c6ab('0xe5c')]=![],_0x59caad[_0x48c6ab('0x269f')](_0x4af2d1);}}),_0x50886f[_0x228e89('0x25ea')]=_0x59caad;});}})[_0x236f84('0x16df')](function(_0x114711){const _0x405fe5=_0x236f84;_0x2dede7[_0x405fe5('0x1db9')]({'title':_0x114711[_0x405fe5('0x11c5')]?_0x405fe5('0x14f7')+_0x114711['status']+_0x405fe5('0x16e4')+_0x114711[_0x405fe5('0x1833')]:_0x405fe5('0x23e0'),'msg':_0x114711[_0x405fe5('0x1457')]?JSON[_0x405fe5('0x678')](_0x114711[_0x405fe5('0x1457')]):_0x114711[_0x405fe5('0x9b6')]()});});}function _0x10e7e2(){const _0x49d609=_0x447aff;if(_0x50886f['trigger']['channel']===_0x49d609('0x1fe1')){if(_0x49cbdd()['some'](_0x50886f[_0x49d609('0x21f5')][_0x49d609('0x2319')],['field','queue'])){if(!_0x50886f['queues'])_0x56367a();}if(_0x49cbdd()['some'](_0x50886f['triggerAllConditions'][_0x49d609('0x2319')],[_0x49d609('0x1515'),_0x49d609('0x1e01')])){if(!_0x50886f['outboundRoutes'])_0x4b5b2f();}if(_0x49cbdd()[_0x49d609('0x26f8')](_0x50886f['triggerAllConditions'][_0x49d609('0x2319')],['field',_0x49d609('0x684')])){if(!_0x50886f[_0x49d609('0x25ea')])_0x83c626();}}else _0x397acb();}function _0x327514(_0x18d98e){const _0x132110=_0x447aff;_0x50886f[_0x132110('0x21f5')]=_0x18d98e||{'count':0x0,'rows':[]},_0x10e7e2();}function _0x2509ff(){const _0x26f8d9=_0x447aff;_0x50886f[_0x26f8d9('0x826')][_0x26f8d9('0xf19')]=(_0x50886f[_0x26f8d9('0x826')][_0x26f8d9('0x115a')]-0x1)*_0x50886f[_0x26f8d9('0x826')]['limit'],_0x50886f[_0x26f8d9('0x1691')]=_0x1ca891[_0x26f8d9('0x1c8d')][_0x26f8d9('0x172c')](_0x50886f[_0x26f8d9('0x826')],_0x327514)[_0x26f8d9('0x1af5')];}function _0x37cea8(_0x299379,_0x557f27){const _0xb758a=_0x447aff;_0x1fd27e['show']({'controller':_0xb758a('0x1191'),'controllerAs':'vm','templateUrl':_0x140df6,'parent':angular[_0xb758a('0x1ce1')](_0x1e9cc3[_0xb758a('0x13aa')]),'targetEvent':_0x299379,'clickOutsideToClose':!![],'locals':{'trigger':_0x50886f[_0xb758a('0x1c8d')],'allCondition':_0x557f27,'allConditions':_0x50886f[_0xb758a('0x21f5')]['rows'],'license':null,'setting':null,'crudPermissions':_0x50886f[_0xb758a('0x103e')]}})['then'](function(_0x1f7f86){_0x1f7f86&&(_0x50886f['triggerAllConditions']={'count':_0x1f7f86['length'],'rows':_0x1f7f86},_0x10e7e2());});}function _0x8d31d(_0x1f1d8a,_0x5c2153){const _0x224e91=_0x447aff,_0x46e14c=_0x1fd27e[_0x224e91('0x1121')]()[_0x224e91('0x24d3')](_0xb76f39[_0x224e91('0x1acc')](_0x224e91('0x8af')))[_0x224e91('0x2095')](_0x224e91('0x1440'))[_0x224e91('0x104f')](_0x5c2153)['ok']('OK')['cancel'](_0xb76f39[_0x224e91('0x1acc')]('TOOLS.CANCEL'));_0x1fd27e[_0x224e91('0x28e2')](_0x46e14c)[_0x224e91('0x17e7')](function(){_0x3d8f27(_0x1f1d8a,!![]);});}function _0x3d8f27(_0x12e55e,_0x41368a){const _0xfdd83=_0x447aff;_0x1ca891[_0xfdd83('0xa67')][_0xfdd83('0x1da6')]({'id':_0x12e55e['id']})[_0xfdd83('0x1af5')][_0xfdd83('0x17e7')](function(){const _0x50504d=_0xfdd83;_0x2509ff(),_0x41368a&&_0x2dede7[_0x50504d('0x130d')]({'title':_0xb76f39['instant'](_0x50504d('0x12d9'))});})[_0xfdd83('0x16df')](function(_0x420683){const _0x1f2e40=_0xfdd83;if(_0x420683[_0x1f2e40('0x1457')]&&_0x420683[_0x1f2e40('0x1457')]['errors']&&_0x420683[_0x1f2e40('0x1457')]['errors'][_0x1f2e40('0x1f73')]){_0x50886f[_0x1f2e40('0x73e')]=_0x420683[_0x1f2e40('0x1457')][_0x1f2e40('0x73e')]||[{'message':_0x420683[_0x1f2e40('0x9b6')](),'type':'SYSTEM:GETtrigger'}];for(let _0x650ec2=0x0;_0x650ec2<_0x420683[_0x1f2e40('0x1457')]['errors']['length'];_0x650ec2++){_0x2dede7[_0x1f2e40('0x1db9')]({'title':_0x420683['data']['errors'][_0x650ec2]['type'],'msg':_0x420683[_0x1f2e40('0x1457')][_0x1f2e40('0x73e')][_0x650ec2][_0x1f2e40('0x1603')]});}}else _0x2dede7[_0x1f2e40('0x1db9')]({'title':_0x420683['status']?_0x1f2e40('0x14f7')+_0x420683[_0x1f2e40('0x11c5')]+_0x1f2e40('0x16e4')+_0x420683[_0x1f2e40('0x1833')]:_0x1f2e40('0x138a'),'msg':_0x420683['data']?JSON[_0x1f2e40('0x678')](_0x420683[_0x1f2e40('0x1457')][_0x1f2e40('0x1603')]):_0x420683[_0x1f2e40('0x1603')]||_0x420683[_0x1f2e40('0x9b6')]()});});}function _0x3b1ca7(){const _0x57eee5=_0x447aff,_0x194a9b=angular[_0x57eee5('0x14e5')](_0x50886f[_0x57eee5('0x197b')]);return _0x50886f[_0x57eee5('0x197b')]=[],_0x194a9b;}function _0x3ba2b0(_0x40b562){const _0x274164=_0x447aff,_0x10bd30=_0x1fd27e[_0x274164('0x1121')]()['title'](_0xb76f39[_0x274164('0x1acc')](_0x274164('0x1f9b')))[_0x274164('0xd5')](_0xb76f39[_0x274164('0x1acc')](_0x274164('0x2d9'),{'total':_0x50886f[_0x274164('0x197b')][_0x274164('0x1f73')]}))[_0x274164('0x2095')](_0x274164('0x61b'))[_0x274164('0x104f')](_0x40b562)['ok']('OK')[_0x274164('0x1d47')](_0xb76f39[_0x274164('0x1acc')](_0x274164('0x34f')));_0x1fd27e[_0x274164('0x28e2')](_0x10bd30)[_0x274164('0x17e7')](function(){const _0x1d919e=_0x274164;_0x50886f[_0x1d919e('0x197b')][_0x1d919e('0xccd')](function(_0x4fec5f){_0x3d8f27(_0x4fec5f);}),_0x50886f['selectedTriggerAllConditions']=[],_0x2dede7[_0x1d919e('0x130d')]({'title':_0xb76f39[_0x1d919e('0x1acc')](_0x1d919e('0x2610'))});});}let _0x6e4735=!![],_0xb323fd=0x1;_0x44f6ce['$watch'](_0x447aff('0x4c3'),function(_0x4f247e,_0x3dd77a){const _0x194bbc=_0x447aff;_0x6e4735?_0x216637(function(){_0x6e4735=![];}):(!_0x3dd77a&&(_0xb323fd=_0x50886f[_0x194bbc('0x826')][_0x194bbc('0x115a')]),_0x4f247e!==_0x3dd77a&&(_0x50886f['query'][_0x194bbc('0x115a')]=0x1),!_0x4f247e&&(_0x50886f[_0x194bbc('0x826')][_0x194bbc('0x115a')]=_0xb323fd),_0x2509ff());});}const _0x4214ad=_0x7b997a;_0x579829['$inject']=['$scope',_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x21ba'),_0x4376d8('0x1363'),_0x4376d8('0x1c8d'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x579829(_0x40e188,_0x333890,_0xa06123,_0x301bc9,_0x345753,_0x35720f,_0x158384,_0x2bd5c6,_0x524ad3,_0x55074e,_0x499ad8,_0x3174d8,_0x30a636,_0x239ef0,_0xb3714c){const _0x3906fd=_0x4376d8,_0x2e7614=this;_0x2e7614['currentUser']=_0x3174d8[_0x3906fd('0x2831')](),_0x2e7614[_0x3906fd('0x73e')]=[],_0x2e7614[_0x3906fd('0x1aeb')]=_0x239ef0,_0x2e7614[_0x3906fd('0x1d11')]=_0x30a636,_0x2e7614[_0x3906fd('0x103e')]=_0xb3714c,_0x2e7614[_0x3906fd('0x6ee')]={},_0x2e7614[_0x3906fd('0x1572')]=_0x2e7614[_0x3906fd('0x1aeb')]&&_0x2e7614[_0x3906fd('0x1aeb')][_0x3906fd('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2e7614[_0x3906fd('0x24d3')]=_0x3906fd('0x2638'),_0x2e7614[_0x3906fd('0x1363')]=angular[_0x3906fd('0x14e5')](_0x524ad3),_0x2e7614[_0x3906fd('0x21ba')]=_0x2bd5c6,_0x2e7614[_0x3906fd('0x2768')]=![],_0x2e7614[_0x3906fd('0x1c8d')]=angular[_0x3906fd('0x14e5')](_0x55074e);!_0x2e7614[_0x3906fd('0x1363')]&&(_0x2e7614[_0x3906fd('0x1363')]={'field':_0x3906fd('0x1bd'),'operator':_0x3906fd('0x15d2'),'value':'in'},_0x2e7614['title']='TOOLS.NEW_ALLCONDITION',_0x2e7614[_0x3906fd('0x2768')]=!![]);_0x333890[_0x3906fd('0x16fb')]['id']&&(_0x2e7614['allCondition']['TriggerAllId']=_0x333890[_0x3906fd('0x16fb')]['id']);_0x2e7614[_0x3906fd('0x215d')]=_0x396799,_0x2e7614['saveAllCondition']=_0x2e6a73,_0x2e7614['deleteAllCondition']=_0x59012b,_0x2e7614[_0x3906fd('0x1300')]=_0x4df212,_0x2e7614[_0x3906fd('0x136e')]=_0xfc17f3,_0x3174d8[_0x3906fd('0x1ba2')](_0x3906fd('0x20bf'))?_0x499ad8[_0x3906fd('0xdb2')][_0x3906fd('0x1c53')]({'fields':'id,name','sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x1e01e0){const _0x330052=_0x3906fd;_0x2e7614[_0x330052('0x24cd')]=_0x1e01e0['rows']||[];})[_0x3906fd('0x16df')](function(_0x550f5c){const _0x3930cf=_0x3906fd;_0x158384[_0x3930cf('0x1db9')]({'title':_0x550f5c[_0x3930cf('0x11c5')]?_0x3930cf('0x14f7')+_0x550f5c['status']+_0x3930cf('0x16e4')+_0x550f5c[_0x3930cf('0x1833')]:_0x3930cf('0x1a8'),'msg':_0x550f5c[_0x3930cf('0x1457')]?JSON['stringify'](_0x550f5c[_0x3930cf('0x1457')]):_0x550f5c[_0x3930cf('0x9b6')]()});}):_0x499ad8['chatWebsite']['get']({'fields':'id,name','sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x2bab31){const _0x57ddba=_0x3906fd;_0x2e7614[_0x57ddba('0x24cd')]=_0x2bab31['rows']||[];})[_0x3906fd('0x17e7')](function(){const _0x386f54=_0x3906fd;return _0x499ad8[_0x386f54('0x383')][_0x386f54('0x1c53')]({'userProfileId':_0x2e7614['currentUser'][_0x386f54('0x1e76')],'sectionId':0x1f6})[_0x386f54('0x1af5')];})['then'](function(_0x30e610){const _0x1846de=_0x3906fd,_0x207146=_0x30e610&&_0x30e610[_0x1846de('0x2319')]?_0x30e610['rows'][0x0]:null;if(!_0x207146){const _0x4ca69c=[];let _0x14b928=null;_0x2e7614[_0x1846de('0x1363')]&&(_0x14b928=_0x49cbdd()[_0x1846de('0xe8e')](_0x2e7614[_0x1846de('0x24cd')],{'id':Number(_0x2e7614[_0x1846de('0x1363')][_0x1846de('0x175b')])}));for(let _0x1d97bd=0x0;_0x1d97bd<_0x2e7614[_0x1846de('0x24cd')][_0x1846de('0x1f73')];_0x1d97bd++){_0x14b928&&_0x2e7614[_0x1846de('0x24cd')][_0x1d97bd]['id']===_0x14b928['id']&&(_0x2e7614['chatAccounts'][_0x1d97bd][_0x1846de('0xe5c')]=![],_0x4ca69c[_0x1846de('0x269f')](_0x2e7614[_0x1846de('0x24cd')][_0x1d97bd]));}_0x2e7614[_0x1846de('0x24cd')]=_0x4ca69c;}else{if(!_0x207146['autoAssociation'])return _0x499ad8[_0x1846de('0x78d')][_0x1846de('0x1c53')]({'sectionId':_0x207146['id']})[_0x1846de('0x1af5')][_0x1846de('0x17e7')](function(_0x654d14){const _0x3b079d=_0x1846de,_0x58ff9f=_0x49cbdd()[_0x3b079d('0x787')](_0x654d14[_0x3b079d('0x2319')],function(_0xe20a81){const _0x471097=_0x3b079d;return _0x49cbdd()[_0x471097('0xe8e')](_0x2e7614[_0x471097('0x24cd')],{'id':_0xe20a81[_0x471097('0x5db')]});});let _0x48b581=null;_0x2e7614['allCondition']&&(_0x48b581=_0x49cbdd()[_0x3b079d('0xe8e')](_0x2e7614['chatAccounts'],{'id':Number(_0x2e7614[_0x3b079d('0x1363')][_0x3b079d('0x175b')])}));if(_0x48b581&&!_0x49cbdd()[_0x3b079d('0x26f8')](_0x58ff9f,['id',_0x48b581['id']])){const _0xc04a22=_0x49cbdd()[_0x3b079d('0xe8e')](_0x2e7614[_0x3b079d('0x24cd')],{'id':_0x48b581['id']});_0xc04a22[_0x3b079d('0xe5c')]=![],_0x58ff9f['push'](_0xc04a22);}_0x2e7614[_0x3b079d('0x24cd')]=_0x58ff9f;});}})[_0x3906fd('0x16df')](function(_0x52a753){const _0x5cb0a4=_0x3906fd;_0x158384['error']({'title':_0x52a753[_0x5cb0a4('0x11c5')]?_0x5cb0a4('0x14f7')+_0x52a753[_0x5cb0a4('0x11c5')]+'\x20-\x20'+_0x52a753[_0x5cb0a4('0x1833')]:_0x5cb0a4('0xc93'),'msg':_0x52a753[_0x5cb0a4('0x1457')]?JSON[_0x5cb0a4('0x678')](_0x52a753[_0x5cb0a4('0x1457')]):_0x52a753[_0x5cb0a4('0x9b6')]()});}),_0x3174d8[_0x3906fd('0x1ba2')]('admin')?_0x499ad8[_0x3906fd('0x127b')]['get']({'fields':_0x3906fd('0x12d2'),'sort':'id','nolimit':'true'})['$promise'][_0x3906fd('0x17e7')](function(_0x5c4fa1){const _0x149d5a=_0x3906fd;_0x2e7614[_0x149d5a('0x3d9')]=_0x5c4fa1[_0x149d5a('0x2319')]||[];})[_0x3906fd('0x16df')](function(_0x182cbe){const _0x439ad6=_0x3906fd;_0x158384['error']({'title':_0x182cbe[_0x439ad6('0x11c5')]?_0x439ad6('0x14f7')+_0x182cbe[_0x439ad6('0x11c5')]+_0x439ad6('0x16e4')+_0x182cbe[_0x439ad6('0x1833')]:_0x439ad6('0x11c'),'msg':_0x182cbe[_0x439ad6('0x1457')]?JSON['stringify'](_0x182cbe[_0x439ad6('0x1457')]):_0x182cbe[_0x439ad6('0x9b6')]()});}):_0x499ad8[_0x3906fd('0x127b')][_0x3906fd('0x1c53')]({'fields':_0x3906fd('0x12d2'),'sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x20c6c9){const _0x158656=_0x3906fd;_0x2e7614[_0x158656('0x3d9')]=_0x20c6c9[_0x158656('0x2319')]||[];})['then'](function(){const _0x5d081d=_0x3906fd;return _0x499ad8[_0x5d081d('0x383')][_0x5d081d('0x1c53')]({'userProfileId':_0x2e7614['currentUser'][_0x5d081d('0x1e76')],'sectionId':0x25a})[_0x5d081d('0x1af5')];})[_0x3906fd('0x17e7')](function(_0x2c7f5f){const _0x371de0=_0x3906fd,_0x5393c3=_0x2c7f5f&&_0x2c7f5f[_0x371de0('0x2319')]?_0x2c7f5f[_0x371de0('0x2319')][0x0]:null;if(!_0x5393c3){const _0x4e5996=[];let _0x220068=null;_0x2e7614[_0x371de0('0x1363')]&&(_0x220068=_0x49cbdd()[_0x371de0('0xe8e')](_0x2e7614['mailAccounts'],{'id':Number(_0x2e7614[_0x371de0('0x1363')][_0x371de0('0x175b')])}));for(let _0x30286c=0x0;_0x30286c<_0x2e7614['mailAccounts'][_0x371de0('0x1f73')];_0x30286c++){_0x220068&&_0x2e7614['mailAccounts'][_0x30286c]['id']===_0x220068['id']&&(_0x2e7614[_0x371de0('0x3d9')][_0x30286c][_0x371de0('0xe5c')]=![],_0x4e5996[_0x371de0('0x269f')](_0x2e7614['mailAccounts'][_0x30286c]));}_0x2e7614[_0x371de0('0x3d9')]=_0x4e5996;}else{if(!_0x5393c3[_0x371de0('0x9e3')])return _0x499ad8[_0x371de0('0x78d')]['get']({'sectionId':_0x5393c3['id']})[_0x371de0('0x1af5')][_0x371de0('0x17e7')](function(_0x453c2f){const _0x2081e1=_0x371de0,_0x294420=_0x49cbdd()['map'](_0x453c2f[_0x2081e1('0x2319')],function(_0x29656b){const _0x43db24=_0x2081e1;return _0x49cbdd()[_0x43db24('0xe8e')](_0x2e7614[_0x43db24('0x3d9')],{'id':_0x29656b['resourceId']});});let _0x32a089=null;_0x2e7614[_0x2081e1('0x1363')]&&(_0x32a089=_0x49cbdd()['find'](_0x2e7614[_0x2081e1('0x3d9')],{'id':Number(_0x2e7614[_0x2081e1('0x1363')][_0x2081e1('0x175b')])}));if(_0x32a089&&!_0x49cbdd()['some'](_0x294420,['id',_0x32a089['id']])){const _0x1dcf13=_0x49cbdd()['find'](_0x2e7614[_0x2081e1('0x3d9')],{'id':_0x32a089['id']});_0x1dcf13[_0x2081e1('0xe5c')]=![],_0x294420[_0x2081e1('0x269f')](_0x1dcf13);}_0x2e7614[_0x2081e1('0x3d9')]=_0x294420;});}})[_0x3906fd('0x16df')](function(_0x8e3f1c){const _0x4a1af0=_0x3906fd;_0x158384[_0x4a1af0('0x1db9')]({'title':_0x8e3f1c[_0x4a1af0('0x11c5')]?'API:'+_0x8e3f1c[_0x4a1af0('0x11c5')]+'\x20-\x20'+_0x8e3f1c[_0x4a1af0('0x1833')]:_0x4a1af0('0x25dd'),'msg':_0x8e3f1c[_0x4a1af0('0x1457')]?JSON[_0x4a1af0('0x678')](_0x8e3f1c['data']):_0x8e3f1c[_0x4a1af0('0x9b6')]()});}),_0x3174d8[_0x3906fd('0x1ba2')]('admin')?_0x499ad8[_0x3906fd('0x1060')][_0x3906fd('0x1c53')]({'fields':'id,name','sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x1b99cc){const _0xde6aff=_0x3906fd;_0x2e7614[_0xde6aff('0x35e')]=_0x1b99cc[_0xde6aff('0x2319')]||[];})['catch'](function(_0x2b4617){const _0x5223a4=_0x3906fd;_0x158384['error']({'title':_0x2b4617[_0x5223a4('0x11c5')]?'API:'+_0x2b4617[_0x5223a4('0x11c5')]+_0x5223a4('0x16e4')+_0x2b4617[_0x5223a4('0x1833')]:_0x5223a4('0x224c'),'msg':_0x2b4617['data']?JSON[_0x5223a4('0x678')](_0x2b4617[_0x5223a4('0x1457')]):_0x2b4617[_0x5223a4('0x9b6')]()});}):_0x499ad8['smsAccount']['get']({'fields':'id,name','sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')]['then'](function(_0x47d797){const _0x503537=_0x3906fd;_0x2e7614[_0x503537('0x35e')]=_0x47d797[_0x503537('0x2319')]||[];})[_0x3906fd('0x17e7')](function(){const _0x235587=_0x3906fd;return _0x499ad8[_0x235587('0x383')][_0x235587('0x1c53')]({'userProfileId':_0x2e7614['currentUser']['userProfileId'],'sectionId':0x2be})[_0x235587('0x1af5')];})[_0x3906fd('0x17e7')](function(_0x10ff8f){const _0x217f0b=_0x3906fd,_0xd17222=_0x10ff8f&&_0x10ff8f['rows']?_0x10ff8f[_0x217f0b('0x2319')][0x0]:null;if(!_0xd17222){const _0x5b4365=[];let _0x48ba7a=null;_0x2e7614[_0x217f0b('0x1363')]&&(_0x48ba7a=_0x49cbdd()[_0x217f0b('0xe8e')](_0x2e7614[_0x217f0b('0x35e')],{'id':Number(_0x2e7614[_0x217f0b('0x1363')]['value'])}));for(let _0x2106a8=0x0;_0x2106a8<_0x2e7614['smsAccounts']['length'];_0x2106a8++){_0x48ba7a&&_0x2e7614[_0x217f0b('0x35e')][_0x2106a8]['id']===_0x48ba7a['id']&&(_0x2e7614[_0x217f0b('0x35e')][_0x2106a8]['canSelect']=![],_0x5b4365['push'](_0x2e7614[_0x217f0b('0x35e')][_0x2106a8]));}_0x2e7614[_0x217f0b('0x35e')]=_0x5b4365;}else{if(!_0xd17222['autoAssociation'])return _0x499ad8[_0x217f0b('0x78d')][_0x217f0b('0x1c53')]({'sectionId':_0xd17222['id']})[_0x217f0b('0x1af5')]['then'](function(_0x90cb2b){const _0xa6fd19=_0x217f0b,_0x1eb667=_0x49cbdd()[_0xa6fd19('0x787')](_0x90cb2b[_0xa6fd19('0x2319')],function(_0x19e3dd){const _0x886d48=_0xa6fd19;return _0x49cbdd()[_0x886d48('0xe8e')](_0x2e7614[_0x886d48('0x35e')],{'id':_0x19e3dd['resourceId']});});let _0x23da38=null;_0x2e7614[_0xa6fd19('0x1363')]&&(_0x23da38=_0x49cbdd()[_0xa6fd19('0xe8e')](_0x2e7614['smsAccounts'],{'id':Number(_0x2e7614[_0xa6fd19('0x1363')][_0xa6fd19('0x175b')])}));if(_0x23da38&&!_0x49cbdd()[_0xa6fd19('0x26f8')](_0x1eb667,['id',_0x23da38['id']])){const _0x1c25ac=_0x49cbdd()[_0xa6fd19('0xe8e')](_0x2e7614[_0xa6fd19('0x35e')],{'id':_0x23da38['id']});_0x1c25ac[_0xa6fd19('0xe5c')]=![],_0x1eb667[_0xa6fd19('0x269f')](_0x1c25ac);}_0x2e7614['smsAccounts']=_0x1eb667;});}})[_0x3906fd('0x16df')](function(_0x2f399a){const _0x5c5bdb=_0x3906fd;_0x158384['error']({'title':_0x2f399a[_0x5c5bdb('0x11c5')]?_0x5c5bdb('0x14f7')+_0x2f399a[_0x5c5bdb('0x11c5')]+_0x5c5bdb('0x16e4')+_0x2f399a['statusText']:_0x5c5bdb('0x196a'),'msg':_0x2f399a['data']?JSON[_0x5c5bdb('0x678')](_0x2f399a[_0x5c5bdb('0x1457')]):_0x2f399a[_0x5c5bdb('0x9b6')]()});}),_0x3174d8[_0x3906fd('0x1ba2')]('admin')?_0x499ad8[_0x3906fd('0x254f')][_0x3906fd('0x1c53')]({'fields':'id,name','sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x1d10c8){const _0x48b035=_0x3906fd;_0x2e7614[_0x48b035('0x58b')]=_0x1d10c8['rows']||[];})[_0x3906fd('0x16df')](function(_0x22dc65){const _0xd325d1=_0x3906fd;_0x158384[_0xd325d1('0x1db9')]({'title':_0x22dc65[_0xd325d1('0x11c5')]?_0xd325d1('0x14f7')+_0x22dc65[_0xd325d1('0x11c5')]+_0xd325d1('0x16e4')+_0x22dc65[_0xd325d1('0x1833')]:_0xd325d1('0xfc9'),'msg':_0x22dc65[_0xd325d1('0x1457')]?JSON[_0xd325d1('0x678')](_0x22dc65['data']):_0x22dc65[_0xd325d1('0x9b6')]()});}):_0x499ad8[_0x3906fd('0x254f')][_0x3906fd('0x1c53')]({'fields':_0x3906fd('0x12d2'),'sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x147172){const _0x172a1f=_0x3906fd;_0x2e7614[_0x172a1f('0x58b')]=_0x147172[_0x172a1f('0x2319')]||[];})[_0x3906fd('0x17e7')](function(){const _0x138e14=_0x3906fd;return _0x499ad8[_0x138e14('0x383')]['get']({'userProfileId':_0x2e7614[_0x138e14('0x197c')][_0x138e14('0x1e76')],'sectionId':0x836})[_0x138e14('0x1af5')];})[_0x3906fd('0x17e7')](function(_0x781bb9){const _0x29d31b=_0x3906fd,_0x5c7c8d=_0x781bb9&&_0x781bb9['rows']?_0x781bb9[_0x29d31b('0x2319')][0x0]:null;if(!_0x5c7c8d){const _0x53470e=[];let _0x5c4009=null;_0x2e7614['allCondition']&&(_0x5c4009=_0x49cbdd()['find'](_0x2e7614[_0x29d31b('0x58b')],{'id':Number(_0x2e7614[_0x29d31b('0x1363')][_0x29d31b('0x175b')])}));for(let _0x370d84=0x0;_0x370d84<_0x2e7614[_0x29d31b('0x58b')][_0x29d31b('0x1f73')];_0x370d84++){_0x5c4009&&_0x2e7614[_0x29d31b('0x58b')][_0x370d84]['id']===_0x5c4009['id']&&(_0x2e7614[_0x29d31b('0x58b')][_0x370d84][_0x29d31b('0xe5c')]=![],_0x53470e[_0x29d31b('0x269f')](_0x2e7614[_0x29d31b('0x58b')][_0x370d84]));}_0x2e7614['whatsappAccounts']=_0x53470e;}else{if(!_0x5c7c8d[_0x29d31b('0x9e3')])return _0x499ad8['userProfileResource']['get']({'sectionId':_0x5c7c8d['id']})['$promise'][_0x29d31b('0x17e7')](function(_0xf55b11){const _0x5072b2=_0x29d31b,_0x1c3984=_0x49cbdd()[_0x5072b2('0x787')](_0xf55b11['rows'],function(_0x26406d){const _0x41ab2a=_0x5072b2;return _0x49cbdd()[_0x41ab2a('0xe8e')](_0x2e7614['whatsappAccounts'],{'id':_0x26406d['resourceId']});});let _0x4462a9=null;_0x2e7614[_0x5072b2('0x1363')]&&(_0x4462a9=_0x49cbdd()[_0x5072b2('0xe8e')](_0x2e7614[_0x5072b2('0x58b')],{'id':Number(_0x2e7614[_0x5072b2('0x1363')]['value'])}));if(_0x4462a9&&!_0x49cbdd()[_0x5072b2('0x26f8')](_0x1c3984,['id',_0x4462a9['id']])){const _0x19422f=_0x49cbdd()[_0x5072b2('0xe8e')](_0x2e7614[_0x5072b2('0x58b')],{'id':_0x4462a9['id']});_0x19422f[_0x5072b2('0xe5c')]=![],_0x1c3984[_0x5072b2('0x269f')](_0x19422f);}_0x2e7614[_0x5072b2('0x58b')]=_0x1c3984;});}})[_0x3906fd('0x16df')](function(_0x21bc21){const _0x5e5d02=_0x3906fd;_0x158384[_0x5e5d02('0x1db9')]({'title':_0x21bc21['status']?_0x5e5d02('0x14f7')+_0x21bc21['status']+_0x5e5d02('0x16e4')+_0x21bc21[_0x5e5d02('0x1833')]:_0x5e5d02('0xee'),'msg':_0x21bc21[_0x5e5d02('0x1457')]?JSON[_0x5e5d02('0x678')](_0x21bc21[_0x5e5d02('0x1457')]):_0x21bc21[_0x5e5d02('0x9b6')]()});}),_0x3174d8[_0x3906fd('0x1ba2')](_0x3906fd('0x20bf'))?_0x499ad8[_0x3906fd('0x119')][_0x3906fd('0x1c53')]({'fields':_0x3906fd('0x12d2'),'sort':'id','nolimit':_0x3906fd('0xe34')})['$promise'][_0x3906fd('0x17e7')](function(_0xdca010){const _0x381281=_0x3906fd;_0x2e7614[_0x381281('0xec4')]=_0xdca010[_0x381281('0x2319')]||[];})['catch'](function(_0x14b385){const _0x39f533=_0x3906fd;_0x158384[_0x39f533('0x1db9')]({'title':_0x14b385[_0x39f533('0x11c5')]?_0x39f533('0x14f7')+_0x14b385[_0x39f533('0x11c5')]+'\x20-\x20'+_0x14b385[_0x39f533('0x1833')]:'SYSTEM:GET_FAXACCOUNTS','msg':_0x14b385['data']?JSON['stringify'](_0x14b385[_0x39f533('0x1457')]):_0x14b385[_0x39f533('0x9b6')]()});}):_0x499ad8[_0x3906fd('0x119')][_0x3906fd('0x1c53')]({'fields':_0x3906fd('0x12d2'),'sort':'id','nolimit':_0x3906fd('0xe34')})['$promise'][_0x3906fd('0x17e7')](function(_0x3a60b6){const _0x22a0fa=_0x3906fd;_0x2e7614['faxAccounts']=_0x3a60b6[_0x22a0fa('0x2319')]||[];})['then'](function(){const _0x5c2d4d=_0x3906fd;return _0x499ad8[_0x5c2d4d('0x383')][_0x5c2d4d('0x1c53')]({'userProfileId':_0x2e7614[_0x5c2d4d('0x197c')][_0x5c2d4d('0x1e76')],'sectionId':0x386})[_0x5c2d4d('0x1af5')];})[_0x3906fd('0x17e7')](function(_0x48cd6e){const _0x3737ae=_0x3906fd,_0x4a941a=_0x48cd6e&&_0x48cd6e[_0x3737ae('0x2319')]?_0x48cd6e[_0x3737ae('0x2319')][0x0]:null;if(!_0x4a941a){const _0x8f78d5=[];let _0x28f595=null;_0x2e7614['allCondition']&&(_0x28f595=_0x49cbdd()[_0x3737ae('0xe8e')](_0x2e7614[_0x3737ae('0xec4')],{'id':Number(_0x2e7614['allCondition']['value'])}));for(let _0x4e0552=0x0;_0x4e0552<_0x2e7614[_0x3737ae('0xec4')][_0x3737ae('0x1f73')];_0x4e0552++){_0x28f595&&_0x2e7614['faxAccounts'][_0x4e0552]['id']===_0x28f595['id']&&(_0x2e7614[_0x3737ae('0xec4')][_0x4e0552][_0x3737ae('0xe5c')]=![],_0x8f78d5[_0x3737ae('0x269f')](_0x2e7614[_0x3737ae('0xec4')][_0x4e0552]));}_0x2e7614[_0x3737ae('0xec4')]=_0x8f78d5;}else{if(!_0x4a941a[_0x3737ae('0x9e3')])return _0x499ad8[_0x3737ae('0x78d')][_0x3737ae('0x1c53')]({'sectionId':_0x4a941a['id']})['$promise'][_0x3737ae('0x17e7')](function(_0x4a503c){const _0x1a5c05=_0x3737ae,_0x189bb5=_0x49cbdd()[_0x1a5c05('0x787')](_0x4a503c[_0x1a5c05('0x2319')],function(_0x38a2a7){const _0x4151fc=_0x1a5c05;return _0x49cbdd()[_0x4151fc('0xe8e')](_0x2e7614[_0x4151fc('0xec4')],{'id':_0x38a2a7[_0x4151fc('0x5db')]});});let _0x42bd4b=null;_0x2e7614[_0x1a5c05('0x1363')]&&(_0x42bd4b=_0x49cbdd()['find'](_0x2e7614[_0x1a5c05('0xec4')],{'id':Number(_0x2e7614['allCondition'][_0x1a5c05('0x175b')])}));if(_0x42bd4b&&!_0x49cbdd()[_0x1a5c05('0x26f8')](_0x189bb5,['id',_0x42bd4b['id']])){const _0x549e03=_0x49cbdd()[_0x1a5c05('0xe8e')](_0x2e7614[_0x1a5c05('0xec4')],{'id':_0x42bd4b['id']});_0x549e03[_0x1a5c05('0xe5c')]=![],_0x189bb5['push'](_0x549e03);}_0x2e7614[_0x1a5c05('0xec4')]=_0x189bb5;});}})[_0x3906fd('0x16df')](function(_0x51cdb0){const _0x5e2245=_0x3906fd;_0x158384[_0x5e2245('0x1db9')]({'title':_0x51cdb0['status']?'API:'+_0x51cdb0[_0x5e2245('0x11c5')]+_0x5e2245('0x16e4')+_0x51cdb0[_0x5e2245('0x1833')]:_0x5e2245('0x99'),'msg':_0x51cdb0[_0x5e2245('0x1457')]?JSON[_0x5e2245('0x678')](_0x51cdb0[_0x5e2245('0x1457')]):_0x51cdb0[_0x5e2245('0x9b6')]()});}),_0x3174d8[_0x3906fd('0x1ba2')](_0x3906fd('0x20bf'))?_0x499ad8[_0x3906fd('0x152f')][_0x3906fd('0x1c53')]({'fields':'id,name','sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x3e3640){const _0x4e9117=_0x3906fd;_0x2e7614[_0x4e9117('0x1408')]=_0x3e3640[_0x4e9117('0x2319')]||[];})['catch'](function(_0x2d73ce){const _0x433f3f=_0x3906fd;_0x158384['error']({'title':_0x2d73ce['status']?_0x433f3f('0x14f7')+_0x2d73ce[_0x433f3f('0x11c5')]+'\x20-\x20'+_0x2d73ce[_0x433f3f('0x1833')]:_0x433f3f('0x25ee'),'msg':_0x2d73ce['data']?JSON['stringify'](_0x2d73ce['data']):_0x2d73ce[_0x433f3f('0x9b6')]()});}):_0x499ad8['openchannelAccount']['get']({'fields':_0x3906fd('0x12d2'),'sort':'id','nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x15edb6){const _0x1b32bc=_0x3906fd;_0x2e7614[_0x1b32bc('0x1408')]=_0x15edb6[_0x1b32bc('0x2319')]||[];})[_0x3906fd('0x17e7')](function(){const _0x509ffc=_0x3906fd;return _0x499ad8[_0x509ffc('0x383')]['get']({'userProfileId':_0x2e7614['currentUser']['userProfileId'],'sectionId':0x322})[_0x509ffc('0x1af5')];})[_0x3906fd('0x17e7')](function(_0x215871){const _0x542eca=_0x3906fd,_0x3c7f9e=_0x215871&&_0x215871[_0x542eca('0x2319')]?_0x215871['rows'][0x0]:null;if(!_0x3c7f9e){const _0x1fbece=[];let _0x518b14=null;_0x2e7614[_0x542eca('0x1363')]&&(_0x518b14=_0x49cbdd()[_0x542eca('0xe8e')](_0x2e7614[_0x542eca('0x1408')],{'id':Number(_0x2e7614['allCondition']['value'])}));for(let _0x5895a5=0x0;_0x5895a5<_0x2e7614[_0x542eca('0x1408')]['length'];_0x5895a5++){_0x518b14&&_0x2e7614[_0x542eca('0x1408')][_0x5895a5]['id']===_0x518b14['id']&&(_0x2e7614['openchannelAccounts'][_0x5895a5][_0x542eca('0xe5c')]=![],_0x1fbece[_0x542eca('0x269f')](_0x2e7614[_0x542eca('0x1408')][_0x5895a5]));}_0x2e7614[_0x542eca('0x1408')]=_0x1fbece;}else{if(!_0x3c7f9e['autoAssociation'])return _0x499ad8['userProfileResource']['get']({'sectionId':_0x3c7f9e['id']})[_0x542eca('0x1af5')][_0x542eca('0x17e7')](function(_0x574b71){const _0x42d845=_0x542eca,_0x2f9d98=_0x49cbdd()[_0x42d845('0x787')](_0x574b71['rows'],function(_0x4d0ed5){const _0x1741c0=_0x42d845;return _0x49cbdd()[_0x1741c0('0xe8e')](_0x2e7614['openchannelAccounts'],{'id':_0x4d0ed5[_0x1741c0('0x5db')]});});let _0x378cea=null;_0x2e7614[_0x42d845('0x1363')]&&(_0x378cea=_0x49cbdd()[_0x42d845('0xe8e')](_0x2e7614[_0x42d845('0x1408')],{'id':Number(_0x2e7614[_0x42d845('0x1363')]['value'])}));if(_0x378cea&&!_0x49cbdd()['some'](_0x2f9d98,['id',_0x378cea['id']])){const _0x2f87f2=_0x49cbdd()[_0x42d845('0xe8e')](_0x2e7614[_0x42d845('0x1408')],{'id':_0x378cea['id']});_0x2f87f2[_0x42d845('0xe5c')]=![],_0x2f9d98['push'](_0x2f87f2);}_0x2e7614[_0x42d845('0x1408')]=_0x2f9d98;});}})[_0x3906fd('0x16df')](function(_0x5804f1){const _0x434a30=_0x3906fd;_0x158384['error']({'title':_0x5804f1[_0x434a30('0x11c5')]?_0x434a30('0x14f7')+_0x5804f1[_0x434a30('0x11c5')]+_0x434a30('0x16e4')+_0x5804f1[_0x434a30('0x1833')]:_0x434a30('0x27db'),'msg':_0x5804f1[_0x434a30('0x1457')]?JSON[_0x434a30('0x678')](_0x5804f1[_0x434a30('0x1457')]):_0x5804f1['toString']()});});const _0x4b86bf=[{'id':0x191,'type':_0x3906fd('0x1e77')},{'id':0x5dd,'type':_0x3906fd('0x1ade')}];let _0x31c7b9=null;_0x3174d8['hasRole']('admin')?_0x499ad8[_0x3906fd('0x1243')][_0x3906fd('0x1c53')]({'fields':_0x3906fd('0x960'),'sort':_0x3906fd('0x2aa'),'nolimit':'true'})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x5ccd6a){const _0x5870af=_0x3906fd;_0x2e7614[_0x5870af('0x14c4')]=_0x5ccd6a['rows']||[];})[_0x3906fd('0x16df')](function(_0x13c9eb){const _0x30b0c1=_0x3906fd;_0x158384['error']({'title':_0x13c9eb['status']?_0x30b0c1('0x14f7')+_0x13c9eb[_0x30b0c1('0x11c5')]+_0x30b0c1('0x16e4')+_0x13c9eb[_0x30b0c1('0x1833')]:_0x30b0c1('0x92a'),'msg':_0x13c9eb['data']?JSON[_0x30b0c1('0x678')](_0x13c9eb['data']):_0x13c9eb[_0x30b0c1('0x9b6')]()});}):_0x499ad8[_0x3906fd('0x1243')][_0x3906fd('0x1c53')]({'fields':'id,name,type','sort':_0x3906fd('0x2aa'),'nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x473ac7){const _0x1a43f7=_0x3906fd;_0x31c7b9=_0x473ac7[_0x1a43f7('0x2319')]||[];})[_0x3906fd('0x17e7')](function(){const _0x151719=_0x3906fd,_0x2762f5=[];for(let _0x1ef14d=0x0;_0x1ef14d<_0x4b86bf['length'];_0x1ef14d++){_0x2762f5['push'](_0x499ad8[_0x151719('0x383')][_0x151719('0x1c53')]({'userProfileId':_0x2e7614['currentUser']['userProfileId'],'sectionId':_0x4b86bf[_0x1ef14d]['id']})[_0x151719('0x1af5')]);}return _0x345753[_0x151719('0x1283')](_0x2762f5);})[_0x3906fd('0x17e7')](function(_0x301cb9){const _0x580b04=_0x3906fd,_0x44a3ed=_0x49cbdd()[_0x580b04('0x787')](_0x301cb9,function(_0x52f8a2){const _0x485f09=_0x580b04;return _0x52f8a2&&_0x52f8a2[_0x485f09('0x2319')]?_0x52f8a2[_0x485f09('0x2319')][0x0]:null;}),_0x7165e3=[];for(let _0x41e4b4=0x0;_0x41e4b4<_0x4b86bf[_0x580b04('0x1f73')];_0x41e4b4++){const _0xc1fd64=_0x49cbdd()[_0x580b04('0xe8e')](_0x44a3ed,[_0x580b04('0x2676'),_0x4b86bf[_0x41e4b4]['id']]);if(_0xc1fd64){if(!_0xc1fd64[_0x580b04('0x9e3')])_0x7165e3[_0x580b04('0x269f')](_0x499ad8[_0x580b04('0x78d')][_0x580b04('0x1c53')]({'sectionId':_0xc1fd64['id']})[_0x580b04('0x1af5')]);else{const _0x26539b=[];_0x31c7b9[_0x580b04('0xccd')](function(_0xb24db7){const _0x1225f7=_0x580b04;_0xb24db7[_0x1225f7('0x412')]===_0x4b86bf[_0x41e4b4][_0x1225f7('0x412')]&&_0x26539b[_0x1225f7('0x269f')](_0xb24db7);}),_0x7165e3[_0x580b04('0x269f')]({'rows':_0x26539b,'count':_0x26539b[_0x580b04('0x1f73')]});}}}return _0x345753[_0x580b04('0x1283')](_0x7165e3);})[_0x3906fd('0x17e7')](function(_0x4a5ff3){const _0xa7f357=_0x3906fd,_0x27d6a9=[];let _0x13daa6=null;_0x2e7614[_0xa7f357('0x1363')]&&(_0x13daa6=_0x49cbdd()[_0xa7f357('0xe8e')](_0x31c7b9,{'name':_0x2e7614[_0xa7f357('0x1363')]['value']}));for(let _0x1b7111=0x0;_0x1b7111<_0x4a5ff3['length'];_0x1b7111++){const _0x58f495=_0x4a5ff3[_0x1b7111][_0xa7f357('0x2319')]||[];_0x58f495['forEach'](function(_0x18ea1a){const _0x521a43=_0xa7f357;_0x27d6a9[_0x521a43('0x269f')](_0x18ea1a);});}_0x13daa6&&!_0x49cbdd()[_0xa7f357('0x26f8')](_0x27d6a9,[_0xa7f357('0x5db'),_0x13daa6['id']])&&_0x31c7b9['forEach'](function(_0x48e21b){_0x48e21b['id']===_0x13daa6['id']&&(_0x48e21b['canSelect']=![],_0x27d6a9['push'](_0x48e21b));}),_0x2e7614['queues']=_0x27d6a9;})[_0x3906fd('0x16df')](function(_0x5b1e14){const _0xa6ea8f=_0x3906fd;_0x158384[_0xa6ea8f('0x1db9')]({'title':_0x5b1e14[_0xa6ea8f('0x11c5')]?_0xa6ea8f('0x14f7')+_0x5b1e14[_0xa6ea8f('0x11c5')]+_0xa6ea8f('0x16e4')+_0x5b1e14[_0xa6ea8f('0x1833')]:'SYSTEM:GETqueues','msg':_0x5b1e14[_0xa6ea8f('0x1457')]?JSON[_0xa6ea8f('0x678')](_0x5b1e14[_0xa6ea8f('0x1457')]):_0x5b1e14['toString']()});}),_0x3174d8['hasRole'](_0x3906fd('0x20bf'))?_0x499ad8[_0x3906fd('0x16c2')][_0x3906fd('0x1c53')]({'fields':_0x3906fd('0x1cd2'),'type':_0x3906fd('0x1ade'),'VoiceExtensionId':_0x3906fd('0x9bb'),'nolimit':_0x3906fd('0xe34')})['$promise']['then'](function(_0x4d1016){const _0x58392f=_0x3906fd;_0x2e7614[_0x58392f('0x789')]=_0x4d1016['rows']||[];})['catch'](function(_0x362551){const _0x26008b=_0x3906fd;_0x158384[_0x26008b('0x1db9')]({'title':_0x362551['status']?'API:'+_0x362551[_0x26008b('0x11c5')]+'\x20-\x20'+_0x362551[_0x26008b('0x1833')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x362551[_0x26008b('0x1457')]?JSON[_0x26008b('0x678')](_0x362551['data']):_0x362551[_0x26008b('0x9b6')]()});}):_0x499ad8[_0x3906fd('0x16c2')][_0x3906fd('0x1c53')]({'fields':_0x3906fd('0x1cd2'),'type':_0x3906fd('0x1ade'),'VoiceExtensionId':_0x3906fd('0x9bb'),'nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')]['then'](function(_0x57ba11){const _0x197f91=_0x3906fd;_0x2e7614['outboundRoutes']=_0x57ba11[_0x197f91('0x2319')]||[];})[_0x3906fd('0x17e7')](function(){const _0x59cf47=_0x3906fd;return _0x499ad8[_0x59cf47('0x383')]['get']({'userProfileId':_0x2e7614[_0x59cf47('0x197c')][_0x59cf47('0x1e76')],'sectionId':0x193})[_0x59cf47('0x1af5')];})[_0x3906fd('0x17e7')](function(_0x5be96d){const _0x465bf7=_0x3906fd,_0x2e9a73=_0x5be96d&&_0x5be96d['rows']?_0x5be96d[_0x465bf7('0x2319')][0x0]:null;if(!_0x2e9a73){const _0x3e23c0=[];let _0x164f64=null;_0x2e7614[_0x465bf7('0x1363')]&&(_0x164f64=_0x49cbdd()['find'](_0x2e7614[_0x465bf7('0x789')],{'id':Number(_0x2e7614['allCondition'][_0x465bf7('0x175b')])}));for(let _0x2919c4=0x0;_0x2919c4<_0x2e7614[_0x465bf7('0x789')][_0x465bf7('0x1f73')];_0x2919c4++){_0x164f64&&_0x2e7614[_0x465bf7('0x789')][_0x2919c4]['id']===_0x164f64['id']&&(_0x2e7614[_0x465bf7('0x789')][_0x2919c4][_0x465bf7('0xe5c')]=![],_0x3e23c0[_0x465bf7('0x269f')](_0x2e7614[_0x465bf7('0x789')][_0x2919c4]));}_0x2e7614[_0x465bf7('0x789')]=_0x3e23c0;}else{if(!_0x2e9a73[_0x465bf7('0x9e3')])return _0x499ad8[_0x465bf7('0x78d')][_0x465bf7('0x1c53')]({'sectionId':_0x2e9a73['id']})[_0x465bf7('0x1af5')]['then'](function(_0x198c0b){const _0x752655=_0x465bf7,_0x4ad74a=_0x49cbdd()[_0x752655('0x787')](_0x198c0b[_0x752655('0x2319')],function(_0x11d5d5){const _0x347bc7=_0x752655;return _0x49cbdd()[_0x347bc7('0xe8e')](_0x2e7614['outboundRoutes'],{'id':_0x11d5d5[_0x347bc7('0x5db')]});});let _0x4c5d7c=null;_0x2e7614[_0x752655('0x1363')]&&(_0x4c5d7c=_0x49cbdd()[_0x752655('0xe8e')](_0x2e7614[_0x752655('0x789')],{'id':Number(_0x2e7614['allCondition'][_0x752655('0x175b')])}));if(_0x4c5d7c&&!_0x49cbdd()[_0x752655('0x26f8')](_0x4ad74a,['id',_0x4c5d7c['id']])){const _0x12a8e1=_0x49cbdd()[_0x752655('0xe8e')](_0x2e7614[_0x752655('0x789')],{'id':_0x4c5d7c['id']});_0x12a8e1[_0x752655('0xe5c')]=![],_0x4ad74a[_0x752655('0x269f')](_0x12a8e1);}_0x2e7614['outboundRoutes']=_0x4ad74a;});}})['catch'](function(_0x48f77d){const _0x44b16b=_0x3906fd;_0x158384[_0x44b16b('0x1db9')]({'title':_0x48f77d[_0x44b16b('0x11c5')]?_0x44b16b('0x14f7')+_0x48f77d[_0x44b16b('0x11c5')]+_0x44b16b('0x16e4')+_0x48f77d[_0x44b16b('0x1833')]:_0x44b16b('0x28a4'),'msg':_0x48f77d['data']?JSON[_0x44b16b('0x678')](_0x48f77d[_0x44b16b('0x1457')]):_0x48f77d[_0x44b16b('0x9b6')]()});}),_0x3174d8['hasRole'](_0x3906fd('0x20bf'))?_0x499ad8[_0x3906fd('0x221e')][_0x3906fd('0x1c53')]({'fields':_0x3906fd('0x1f7'),'sort':'name','role':_0x3906fd('0x684'),'nolimit':'true'})[_0x3906fd('0x1af5')]['then'](function(_0xe3ac0a){const _0x2fba12=_0x3906fd;_0x2e7614['agents']=_0xe3ac0a[_0x2fba12('0x2319')]||[];})[_0x3906fd('0x16df')](function(_0x29c24){const _0x34a4ca=_0x3906fd;_0x158384[_0x34a4ca('0x1db9')]({'title':_0x29c24['status']?_0x34a4ca('0x14f7')+_0x29c24['status']+_0x34a4ca('0x16e4')+_0x29c24['statusText']:_0x34a4ca('0x23e0'),'msg':_0x29c24[_0x34a4ca('0x1457')]?JSON[_0x34a4ca('0x678')](_0x29c24[_0x34a4ca('0x1457')]):_0x29c24['toString']()});}):_0x499ad8['user']['get']({'fields':_0x3906fd('0x1f7'),'sort':_0x3906fd('0x2aa'),'role':_0x3906fd('0x684'),'nolimit':_0x3906fd('0xe34')})[_0x3906fd('0x1af5')][_0x3906fd('0x17e7')](function(_0x3340eb){const _0x122a2f=_0x3906fd;_0x2e7614[_0x122a2f('0x25ea')]=_0x3340eb[_0x122a2f('0x2319')]||[];})[_0x3906fd('0x17e7')](function(){const _0xcf9fc9=_0x3906fd;return _0x499ad8[_0xcf9fc9('0x383')]['get']({'userProfileId':_0x2e7614[_0xcf9fc9('0x197c')][_0xcf9fc9('0x1e76')],'sectionId':0xca})[_0xcf9fc9('0x1af5')];})[_0x3906fd('0x17e7')](function(_0x45939e){const _0x475930=_0x3906fd,_0x59eed=_0x45939e&&_0x45939e[_0x475930('0x2319')]?_0x45939e[_0x475930('0x2319')][0x0]:null;if(!_0x59eed){const _0x23030c=[];let _0x36f687=null;_0x2e7614['allCondition']&&(_0x36f687=_0x49cbdd()['find'](_0x2e7614[_0x475930('0x25ea')],{'name':_0x2e7614[_0x475930('0x1363')]['value']}));for(let _0x39db09=0x0;_0x39db09<_0x2e7614[_0x475930('0x25ea')][_0x475930('0x1f73')];_0x39db09++){_0x36f687&&_0x2e7614['agents'][_0x39db09]['id']===_0x36f687['id']&&(_0x2e7614[_0x475930('0x25ea')][_0x39db09][_0x475930('0xe5c')]=![],_0x23030c[_0x475930('0x269f')](_0x2e7614['agents'][_0x39db09]));}_0x2e7614['agents']=_0x23030c;}else{if(!_0x59eed[_0x475930('0x9e3')])return _0x499ad8['userProfileResource'][_0x475930('0x1c53')]({'sectionId':_0x59eed['id']})[_0x475930('0x1af5')][_0x475930('0x17e7')](function(_0x548321){const _0x9496eb=_0x475930,_0x297cae=_0x49cbdd()[_0x9496eb('0x787')](_0x548321[_0x9496eb('0x2319')],function(_0x466668){const _0x1bde6f=_0x9496eb;return _0x49cbdd()[_0x1bde6f('0xe8e')](_0x2e7614[_0x1bde6f('0x25ea')],{'id':_0x466668[_0x1bde6f('0x5db')]});});let _0x17d1f2=null;_0x2e7614[_0x9496eb('0x1363')]&&(_0x17d1f2=_0x49cbdd()[_0x9496eb('0xe8e')](_0x2e7614[_0x9496eb('0x25ea')],{'name':_0x2e7614['allCondition'][_0x9496eb('0x175b')]}));if(_0x17d1f2&&!_0x49cbdd()[_0x9496eb('0x26f8')](_0x297cae,['id',_0x17d1f2['id']])){const _0x48f794=_0x49cbdd()['find'](_0x2e7614[_0x9496eb('0x25ea')],{'id':_0x17d1f2['id']});_0x48f794[_0x9496eb('0xe5c')]=![],_0x297cae[_0x9496eb('0x269f')](_0x48f794);}_0x2e7614[_0x9496eb('0x25ea')]=_0x297cae;});}})['catch'](function(_0x124fc3){const _0x15db1c=_0x3906fd;_0x158384['error']({'title':_0x124fc3[_0x15db1c('0x11c5')]?'API:'+_0x124fc3[_0x15db1c('0x11c5')]+'\x20-\x20'+_0x124fc3[_0x15db1c('0x1833')]:_0x15db1c('0xa37'),'msg':_0x124fc3[_0x15db1c('0x1457')]?JSON['stringify'](_0x124fc3[_0x15db1c('0x1457')]):_0x124fc3[_0x15db1c('0x9b6')]()});});function _0x396799(){const _0xe7b82d=_0x3906fd;_0x2e7614[_0xe7b82d('0x73e')]=[],_0x499ad8['trigger'][_0xe7b82d('0x1d84')]({'id':_0x333890[_0xe7b82d('0x16fb')]['id']},_0x2e7614[_0xe7b82d('0x1363')])[_0xe7b82d('0x1af5')][_0xe7b82d('0x17e7')](function(_0x1db9dd){const _0x159746=_0xe7b82d;_0x2e7614[_0x159746('0x21ba')][_0x159746('0x1893')](_0x1db9dd[_0x159746('0x16b2')]()),_0x158384[_0x159746('0x130d')]({'title':'AllCondition\x20properly\x20created','msg':_0x2e7614['allCondition'][_0x159746('0x2aa')]?_0x2e7614[_0x159746('0x1363')][_0x159746('0x2aa')]+_0x159746('0x15a'):''}),_0xfc17f3(_0x1db9dd);})[_0xe7b82d('0x16df')](function(_0x2534e2){const _0x486cbc=_0xe7b82d;if(_0x2534e2[_0x486cbc('0x1457')]&&_0x2534e2[_0x486cbc('0x1457')][_0x486cbc('0x73e')]&&_0x2534e2[_0x486cbc('0x1457')]['errors'][_0x486cbc('0x1f73')]){_0x2e7614[_0x486cbc('0x73e')]=_0x2534e2['data'][_0x486cbc('0x73e')]||[{'message':_0x2534e2['toString'](),'type':_0x486cbc('0x2791')}];for(let _0x5b4438=0x0;_0x5b4438<_0x2534e2['data'][_0x486cbc('0x73e')][_0x486cbc('0x1f73')];_0x5b4438+=0x1){_0x158384[_0x486cbc('0x1db9')]({'title':_0x2534e2['data']['errors'][_0x5b4438]['type'],'msg':_0x2534e2['data'][_0x486cbc('0x73e')][_0x5b4438][_0x486cbc('0x1603')]});}}else _0x158384[_0x486cbc('0x1db9')]({'title':_0x2534e2[_0x486cbc('0x11c5')]?_0x486cbc('0x14f7')+_0x2534e2[_0x486cbc('0x11c5')]+'\x20-\x20'+_0x2534e2[_0x486cbc('0x1833')]:_0x486cbc('0x2791'),'msg':_0x2534e2[_0x486cbc('0x1457')]?JSON['stringify'](_0x2534e2['data']['message']):_0x2534e2[_0x486cbc('0x9b6')]()});});}function _0x2e6a73(){const _0x131599=_0x3906fd;_0x2e7614[_0x131599('0x73e')]=[],_0x499ad8[_0x131599('0xa67')]['update']({'id':_0x2e7614[_0x131599('0x1363')]['id']},_0x2e7614[_0x131599('0x1363')])[_0x131599('0x1af5')][_0x131599('0x17e7')](function(_0x49ff50){const _0x58a9b0=_0x131599,_0x2c586b=_0x49cbdd()['find'](_0x2e7614[_0x58a9b0('0x21ba')],{'id':_0x49ff50['id']});_0x2c586b&&_0x49cbdd()[_0x58a9b0('0x1ced')](_0x2c586b,_0x49cbdd()[_0x58a9b0('0x230a')](_0x49ff50[_0x58a9b0('0x16b2')](),_0x49cbdd()[_0x58a9b0('0x1c0f')](_0x2c586b))),_0x158384[_0x58a9b0('0x130d')]({'title':_0x58a9b0('0x11f6'),'msg':_0x2e7614[_0x58a9b0('0x1363')][_0x58a9b0('0x2aa')]?_0x2e7614[_0x58a9b0('0x1363')]['name']+_0x58a9b0('0x15ca'):''}),_0xfc17f3(_0x49ff50);})['catch'](function(_0x3d9842){const _0x1ee010=_0x131599;if(_0x3d9842['data']&&_0x3d9842[_0x1ee010('0x1457')][_0x1ee010('0x73e')]&&_0x3d9842[_0x1ee010('0x1457')][_0x1ee010('0x73e')][_0x1ee010('0x1f73')]){_0x2e7614[_0x1ee010('0x73e')]=_0x3d9842[_0x1ee010('0x1457')]['errors']||[{'message':_0x3d9842['toString'](),'type':_0x1ee010('0x26f0')}];for(let _0x26a392=0x0;_0x26a392<_0x3d9842[_0x1ee010('0x1457')]['errors'][_0x1ee010('0x1f73')];_0x26a392++){_0x158384[_0x1ee010('0x1db9')]({'title':_0x3d9842[_0x1ee010('0x1457')][_0x1ee010('0x73e')][_0x26a392][_0x1ee010('0x412')],'msg':_0x3d9842[_0x1ee010('0x1457')]['errors'][_0x26a392]['message']});}}else _0x158384[_0x1ee010('0x1db9')]({'title':_0x3d9842[_0x1ee010('0x11c5')]?_0x1ee010('0x14f7')+_0x3d9842[_0x1ee010('0x11c5')]+'\x20-\x20'+_0x3d9842[_0x1ee010('0x1833')]:_0x1ee010('0x26f0'),'msg':_0x3d9842[_0x1ee010('0x1457')]?JSON['stringify'](_0x3d9842[_0x1ee010('0x1457')][_0x1ee010('0x1603')]):_0x3d9842[_0x1ee010('0x9b6')]()});});}function _0x59012b(_0x2b4354){const _0x1fae71=_0x3906fd;_0x2e7614['errors']=[];const _0x2ae381=_0x301bc9[_0x1fae71('0x1121')]()['title']('Are\x20you\x20sure?')['content'](_0x1fae71('0x5d7'))[_0x1fae71('0x2095')]('Delete\x20AllCondition')['ok']('Delete')[_0x1fae71('0x1d47')]('Cancel')[_0x1fae71('0x104f')](_0x2b4354);_0x301bc9[_0x1fae71('0x28e2')](_0x2ae381)[_0x1fae71('0x17e7')](function(){const _0x1b9805=_0x1fae71;_0x499ad8['condition']['delete']({'id':_0x2e7614[_0x1b9805('0x1363')]['id']})[_0x1b9805('0x1af5')][_0x1b9805('0x17e7')](function(){const _0x554059=_0x1b9805;_0x49cbdd()[_0x554059('0x5f3')](_0x2e7614['allconditions'],{'id':_0x2e7614['allCondition']['id']}),_0x158384['success']({'title':_0x554059('0x2106'),'msg':(_0x2e7614['allCondition'][_0x554059('0x2aa')]||_0x554059('0x1363'))+_0x554059('0x149f')}),_0xfc17f3(_0x2e7614[_0x554059('0x1363')]);})['catch'](function(_0x34c34f){const _0x3b6ba4=_0x1b9805;if(_0x34c34f['data']&&_0x34c34f[_0x3b6ba4('0x1457')][_0x3b6ba4('0x73e')]&&_0x34c34f[_0x3b6ba4('0x1457')][_0x3b6ba4('0x73e')][_0x3b6ba4('0x1f73')]){_0x2e7614['errors']=_0x34c34f[_0x3b6ba4('0x1457')][_0x3b6ba4('0x73e')]||[{'message':_0x34c34f['toString'](),'type':_0x3b6ba4('0x1df')}];for(let _0x526cd5=0x0;_0x526cd5<_0x34c34f[_0x3b6ba4('0x1457')][_0x3b6ba4('0x73e')][_0x3b6ba4('0x1f73')];_0x526cd5++){_0x158384[_0x3b6ba4('0x1db9')]({'title':_0x34c34f[_0x3b6ba4('0x1457')][_0x3b6ba4('0x73e')][_0x526cd5][_0x3b6ba4('0x412')],'msg':_0x34c34f['data'][_0x3b6ba4('0x73e')][_0x526cd5][_0x3b6ba4('0x1603')]});}}else _0x158384[_0x3b6ba4('0x1db9')]({'title':_0x34c34f[_0x3b6ba4('0x11c5')]?_0x3b6ba4('0x14f7')+_0x34c34f[_0x3b6ba4('0x11c5')]+_0x3b6ba4('0x16e4')+_0x34c34f[_0x3b6ba4('0x1833')]:_0x3b6ba4('0x1df'),'msg':_0x34c34f[_0x3b6ba4('0x1457')]?JSON[_0x3b6ba4('0x678')](_0x34c34f[_0x3b6ba4('0x1457')]['message']):_0x34c34f[_0x3b6ba4('0x1603')]||_0x34c34f[_0x3b6ba4('0x9b6')]()});});},function(){});}function _0x4df212(_0x3ef7e6){return _0x3ef7e6===null?undefined:new Date(_0x3ef7e6);}function _0xfc17f3(_0x187a8d){const _0x14fbed=_0x3906fd;_0x301bc9[_0x14fbed('0x212a')](_0x187a8d);}}const _0x52578f=_0x579829,_0x5d40c1=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/triggers/edit/anyconditions/create/dialog.html/dialog.html';_0x2ae10a['$inject']=[_0x4376d8('0x668'),'$q','$translate',_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x108a'),'api',_0x4376d8('0x1885')];function _0x2ae10a(_0x3901cd,_0x1cbf4e,_0x319403,_0x26937d,_0x18eed5,_0x1b3163,_0x33dd0c,_0x20ffad,_0x47f155){const _0x2559db=_0x4376d8,_0x553d0b=this;_0x553d0b[_0x2559db('0x197c')]=_0x47f155['getCurrentUser'](),_0x553d0b[_0x2559db('0x1c8d')]={},_0x553d0b[_0x2559db('0x24ff')]={'count':0x0,'rows':[]},_0x553d0b['selectedTriggerAnyConditions']=[],_0x553d0b[_0x2559db('0x826')]={'fields':_0x2559db('0x2371'),'limit':0xa,'page':0x1},_0x553d0b[_0x2559db('0x9c9')]={'queue':'Queue','lastevent':_0x2559db('0x202d'),'routeId':'OutboundRoute','agent':'Agent','account':_0x2559db('0x896'),'interaction':_0x2559db('0x3de'),'message':_0x2559db('0x213')},_0x553d0b[_0x2559db('0x2625')]={'abandoned':_0x2559db('0x98b'),'timeout':_0x2559db('0x1ceb'),'complete':'Hangup','rejected':_0x2559db('0x6b'),'called':_0x2559db('0x950'),'connect':_0x2559db('0x6b5'),'nosuchnumber':_0x2559db('0x13e8'),'busy':_0x2559db('0x1ea5'),'noanswer':_0x2559db('0x1afb'),'congestion':_0x2559db('0xce2'),'agentreject':_0x2559db('0x72f')},_0x553d0b[_0x2559db('0x1503')]={'in':_0x2559db('0x19ce'),'out':_0x2559db('0x2368'),'accept':_0x2559db('0x23b0'),'reject':_0x2559db('0x1e8c')},_0x553d0b[_0x2559db('0xdf0')]=_0x1729cd,_0x553d0b[_0x2559db('0x130d')]=_0x123900,_0x553d0b[_0x2559db('0x24f3')]=_0x2d4bf7,_0x553d0b[_0x2559db('0x2339')]=_0x2e1dd4,_0x553d0b[_0x2559db('0x736')]=_0x59de49,_0x553d0b[_0x2559db('0x1a20')]=_0x1800ec,_0x553d0b[_0x2559db('0x1897')]=_0x210ec6,_0x553d0b['deleteSelectedTriggerAnyConditions']=_0x2a67a2;function _0x1729cd(_0x5c1dd2,_0x22baee){const _0x2840c5=_0x2559db;_0x553d0b[_0x2840c5('0x1c8d')]=_0x5c1dd2,_0x553d0b[_0x2840c5('0x103e')]=typeof _0x22baee!=='undefined'?_0x22baee:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x553d0b[_0x2840c5('0x826')][_0x2840c5('0x73d')]=_0x553d0b[_0x2840c5('0x1c8d')]['id'],_0x553d0b[_0x2840c5('0x826')]['id']=_0x553d0b[_0x2840c5('0x1c8d')]['id'],_0x2d4bf7();}function _0x208d73(){const _0x3209cb=_0x2559db,_0x694b55=_0x553d0b['trigger'][_0x3209cb('0x15d7')]+_0x553d0b[_0x3209cb('0x1c8d')][_0x3209cb('0x15d7')]===_0x3209cb('0x2219')?_0x3209cb('0x1a97'):_0x3209cb('0x1e6e'),_0x18a944=_0x553d0b[_0x3209cb('0x1c8d')][_0x3209cb('0x15d7')]+(_0x553d0b[_0x3209cb('0x1c8d')][_0x3209cb('0x15d7')]==='chat'?_0x3209cb('0x1b71'):_0x3209cb('0x896'));let _0x391a53;switch(_0x553d0b['trigger'][_0x3209cb('0x15d7')]){case _0x3209cb('0x2219'):_0x391a53=0x1f6;break;case _0x3209cb('0xc23'):_0x391a53=0x386;break;case _0x3209cb('0xc2'):_0x391a53=0x25a;break;case _0x3209cb('0x1508'):_0x391a53=0x322;break;case _0x3209cb('0x2cd'):_0x391a53=0x2be;break;case'whatsapp':_0x391a53=0x836;break;}if(_0x47f155[_0x3209cb('0xea2')]()){const _0x3eeefc=_0x553d0b[_0x3209cb('0x1c8d')][_0x3209cb('0x15d7')];_0x20ffad[_0x18a944]['get']({'fields':_0x3209cb('0x12d2'),'sort':'id','nolimit':_0x3209cb('0xe34')})[_0x3209cb('0x1af5')][_0x3209cb('0x17e7')](function(_0x42c1e9){const _0x3f35c8=_0x3209cb;_0x553d0b[_0x694b55]=_0x42c1e9[_0x3f35c8('0x2319')]||[];})[_0x3209cb('0x16df')](function(_0x484fa5){const _0x3be6f1=_0x3209cb;_0x33dd0c['error']({'title':_0x484fa5[_0x3be6f1('0x11c5')]?_0x3be6f1('0x14f7')+_0x484fa5[_0x3be6f1('0x11c5')]+'\x20-\x20'+_0x484fa5['statusText']:_0x3be6f1('0x1a06')+_0x3eeefc['toUpperCase']()+_0x3eeefc==='chat'?'WEBSITES':_0x3be6f1('0x18b2'),'msg':_0x484fa5[_0x3be6f1('0x1457')]?JSON[_0x3be6f1('0x678')](_0x484fa5[_0x3be6f1('0x1457')]):_0x484fa5[_0x3be6f1('0x9b6')]()});});}else{const _0x51d62f=_0x553d0b[_0x3209cb('0x1c8d')][_0x3209cb('0x15d7')];_0x20ffad[_0x18a944][_0x3209cb('0x1c53')]({'fields':'id,name','sort':'id','nolimit':'true'})[_0x3209cb('0x1af5')]['then'](function(_0x12c711){const _0x562b44=_0x3209cb;_0x553d0b[_0x694b55]=_0x12c711[_0x562b44('0x2319')]||[];})[_0x3209cb('0x17e7')](function(){const _0x5aefcf=_0x3209cb;return _0x20ffad[_0x5aefcf('0x383')][_0x5aefcf('0x1c53')]({'userProfileId':_0x553d0b[_0x5aefcf('0x197c')][_0x5aefcf('0x1e76')],'sectionId':_0x391a53})[_0x5aefcf('0x1af5')];})[_0x3209cb('0x17e7')](function(_0x16fcc8){const _0x496ef9=_0x3209cb,_0x1ebe6a=_0x16fcc8&&_0x16fcc8[_0x496ef9('0x2319')]?_0x16fcc8[_0x496ef9('0x2319')][0x0]:null;if(!_0x1ebe6a){const _0x2ca9f6=[],_0x213708=[];_0x553d0b[_0x496ef9('0x24ff')][_0x496ef9('0x2319')][_0x496ef9('0xccd')](function(_0x2005fc){const _0x58c6f9=_0x496ef9;if(_0x2005fc[_0x58c6f9('0x1515')]==='account'){const _0xaa6391=_0x49cbdd()['find'](_0x553d0b[_0x694b55],{'id':Number(_0x2005fc['value'])});_0x213708[_0x58c6f9('0x269f')](_0xaa6391);}});for(let _0x4bc6f8=0x0;_0x4bc6f8<_0x553d0b[_0x694b55][_0x496ef9('0x1f73')];_0x4bc6f8++){const _0xbab1c7=_0x49cbdd()[_0x496ef9('0x26f8')](_0x213708,{'id':_0x553d0b[_0x694b55][_0x4bc6f8]['id']});_0xbab1c7&&(_0x553d0b[_0x694b55][_0x4bc6f8][_0x496ef9('0xe5c')]=![],_0x2ca9f6[_0x496ef9('0x269f')](_0x553d0b[_0x694b55][_0x4bc6f8]));}_0x553d0b[_0x694b55]=_0x2ca9f6;}else{if(!_0x1ebe6a[_0x496ef9('0x9e3')])return _0x20ffad['userProfileResource'][_0x496ef9('0x1c53')]({'sectionId':_0x1ebe6a['id']})['$promise']['then'](function(_0x7f0591){const _0x3c5a59=_0x496ef9,_0x33032b=_0x49cbdd()[_0x3c5a59('0x787')](_0x7f0591[_0x3c5a59('0x2319')],function(_0x1fb4fa){const _0x435cda=_0x3c5a59;return _0x49cbdd()[_0x435cda('0xe8e')](_0x553d0b[_0x694b55],{'id':_0x1fb4fa[_0x435cda('0x5db')]});});let _0xa8a4d0=null;_0xa8a4d0=[],_0x553d0b['triggerAnyConditions'][_0x3c5a59('0x2319')][_0x3c5a59('0xccd')](function(_0x1b4495){const _0x3ef815=_0x3c5a59;if(_0x1b4495['field']===_0x3ef815('0x2679')){const _0x8d62df=_0x49cbdd()[_0x3ef815('0xe8e')](_0x553d0b[_0x694b55],{'id':Number(_0x1b4495[_0x3ef815('0x175b')])});_0xa8a4d0[_0x3ef815('0x269f')](_0x8d62df);}}),!_0x49cbdd()[_0x3c5a59('0x109a')](_0xa8a4d0)&&_0xa8a4d0[_0x3c5a59('0xccd')](function(_0x39adbd){const _0x3fc260=_0x3c5a59;if(!_0x49cbdd()[_0x3fc260('0x26f8')](_0x33032b,['id',_0x39adbd['id']])){const _0x15d913=_0x49cbdd()[_0x3fc260('0xe8e')](_0x553d0b[_0x694b55],{'id':_0x39adbd['id']});_0x15d913[_0x3fc260('0xe5c')]=![],_0x33032b[_0x3fc260('0x269f')](_0x15d913);}}),_0x553d0b[_0x694b55]=_0x33032b;});}})[_0x3209cb('0x16df')](function(_0x1507e7){const _0x4906e3=_0x3209cb;_0x33dd0c[_0x4906e3('0x1db9')]({'title':_0x1507e7['status']?_0x4906e3('0x14f7')+_0x1507e7[_0x4906e3('0x11c5')]+_0x4906e3('0x16e4')+_0x1507e7[_0x4906e3('0x1833')]:_0x4906e3('0x1a06')+_0x51d62f[_0x4906e3('0x14e2')]()+_0x51d62f==='chat'?_0x4906e3('0x15eb'):_0x4906e3('0x18b2'),'msg':_0x1507e7['data']?JSON['stringify'](_0x1507e7[_0x4906e3('0x1457')]):_0x1507e7[_0x4906e3('0x9b6')]()});});}}function _0x114354(){const _0x5f6be9=_0x2559db,_0x516900=[{'id':0x191,'type':_0x5f6be9('0x1e77')},{'id':0x5dd,'type':_0x5f6be9('0x1ade')}];let _0x625490=null;_0x47f155[_0x5f6be9('0xea2')]()?_0x20ffad[_0x5f6be9('0x1243')][_0x5f6be9('0x1c53')]({'fields':_0x5f6be9('0x960'),'sort':_0x5f6be9('0x2aa'),'nolimit':_0x5f6be9('0xe34')})[_0x5f6be9('0x1af5')]['then'](function(_0x829c7d){const _0x139fe9=_0x5f6be9;_0x553d0b[_0x139fe9('0x14c4')]=_0x829c7d[_0x139fe9('0x2319')]||[];})[_0x5f6be9('0x16df')](function(_0x2bb777){const _0x36ab1a=_0x5f6be9;_0x33dd0c[_0x36ab1a('0x1db9')]({'title':_0x2bb777[_0x36ab1a('0x11c5')]?_0x36ab1a('0x14f7')+_0x2bb777[_0x36ab1a('0x11c5')]+_0x36ab1a('0x16e4')+_0x2bb777['statusText']:_0x36ab1a('0x793'),'msg':_0x2bb777[_0x36ab1a('0x1457')]?JSON[_0x36ab1a('0x678')](_0x2bb777[_0x36ab1a('0x1457')]):_0x2bb777[_0x36ab1a('0x9b6')]()});}):_0x20ffad[_0x5f6be9('0x1243')][_0x5f6be9('0x1c53')]({'fields':_0x5f6be9('0x960'),'sort':_0x5f6be9('0x2aa'),'nolimit':_0x5f6be9('0xe34')})[_0x5f6be9('0x1af5')][_0x5f6be9('0x17e7')](function(_0x5dc2a1){const _0x19ee0d=_0x5f6be9;_0x625490=_0x5dc2a1[_0x19ee0d('0x2319')]||[];})[_0x5f6be9('0x17e7')](function(){const _0x4f17c1=_0x5f6be9,_0x1ca9ff=[];for(let _0x3c4253=0x0;_0x3c4253<_0x516900[_0x4f17c1('0x1f73')];_0x3c4253++){_0x1ca9ff[_0x4f17c1('0x269f')](_0x20ffad[_0x4f17c1('0x383')]['get']({'userProfileId':_0x553d0b[_0x4f17c1('0x197c')]['userProfileId'],'sectionId':_0x516900[_0x3c4253]['id']})[_0x4f17c1('0x1af5')]);}return _0x1cbf4e[_0x4f17c1('0x1283')](_0x1ca9ff);})[_0x5f6be9('0x17e7')](function(_0xc3934d){const _0x53cf76=_0x5f6be9,_0x3c7981=_0x49cbdd()[_0x53cf76('0x787')](_0xc3934d,function(_0x122caa){return _0x122caa&&_0x122caa['rows']?_0x122caa['rows'][0x0]:null;}),_0x5e7d84=[];for(let _0x51f228=0x0;_0x51f228<_0x516900[_0x53cf76('0x1f73')];_0x51f228++){const _0x3d2ae1=_0x49cbdd()[_0x53cf76('0xe8e')](_0x3c7981,[_0x53cf76('0x2676'),_0x516900[_0x51f228]['id']]);if(_0x3d2ae1){if(!_0x3d2ae1[_0x53cf76('0x9e3')])_0x5e7d84['push'](_0x20ffad[_0x53cf76('0x78d')][_0x53cf76('0x1c53')]({'sectionId':_0x3d2ae1['id']})[_0x53cf76('0x1af5')]);else{const _0x17fc2a=[];_0x625490[_0x53cf76('0xccd')](function(_0xd7f3e8){const _0x2357b5=_0x53cf76;_0xd7f3e8['type']===_0x516900[_0x51f228][_0x2357b5('0x412')]&&_0x17fc2a[_0x2357b5('0x269f')](_0xd7f3e8);}),_0x5e7d84[_0x53cf76('0x269f')]({'rows':_0x17fc2a,'count':_0x17fc2a[_0x53cf76('0x1f73')]});}}}return _0x1cbf4e['all'](_0x5e7d84);})['then'](function(_0xcc93a6){const _0x279624=_0x5f6be9,_0x509ea2=[],_0x2dee9d=[];_0x553d0b['triggerAnyConditions'][_0x279624('0x2319')][_0x279624('0xccd')](function(_0x27d064){const _0x306e1d=_0x279624;if(_0x27d064[_0x306e1d('0x1515')]==='queue'){const _0x4e6974=_0x49cbdd()[_0x306e1d('0xe8e')](_0x625490,{'name':_0x27d064[_0x306e1d('0x175b')]});_0x2dee9d[_0x306e1d('0x269f')](_0x4e6974);}});for(let _0x2f3a68=0x0;_0x2f3a68<_0xcc93a6['length'];_0x2f3a68++){const _0x4cdfaa=_0xcc93a6[_0x2f3a68]['rows']||[];_0x4cdfaa[_0x279624('0xccd')](function(_0x50e397){const _0x17acd8=_0x279624;_0x509ea2[_0x17acd8('0x269f')](_0x50e397);});}!_0x49cbdd()[_0x279624('0x109a')](_0x2dee9d)&&_0x2dee9d['forEach'](function(_0x3b6f11){const _0x867930=_0x279624;if(!_0x49cbdd()[_0x867930('0x26f8')](_0x509ea2,[_0x867930('0x5db'),_0x3b6f11['id']])){const _0xfe7b9=_0x49cbdd()[_0x867930('0xe8e')](_0x625490,{'id':_0x3b6f11['id']});_0xfe7b9[_0x867930('0xe5c')]=![],_0x509ea2[_0x867930('0x269f')](_0xfe7b9);}}),_0x553d0b[_0x279624('0x14c4')]=_0x509ea2;})[_0x5f6be9('0x16df')](function(_0x351b26){const _0x227587=_0x5f6be9;_0x33dd0c[_0x227587('0x1db9')]({'title':_0x351b26[_0x227587('0x11c5')]?_0x227587('0x14f7')+_0x351b26[_0x227587('0x11c5')]+_0x227587('0x16e4')+_0x351b26['statusText']:'SYSTEM:GET_QUEUES','msg':_0x351b26['data']?JSON['stringify'](_0x351b26[_0x227587('0x1457')]):_0x351b26[_0x227587('0x9b6')]()});});}function _0x1dc33e(){const _0xb143a=_0x2559db;_0x47f155[_0xb143a('0xea2')]()?_0x20ffad[_0xb143a('0x16c2')][_0xb143a('0x1c53')]({'fields':_0xb143a('0x1cd2'),'type':_0xb143a('0x1ade'),'VoiceExtensionId':_0xb143a('0x9bb'),'nolimit':'true'})[_0xb143a('0x1af5')][_0xb143a('0x17e7')](function(_0x30e3d6){const _0x6b3c5d=_0xb143a;_0x553d0b[_0x6b3c5d('0x789')]=_0x30e3d6[_0x6b3c5d('0x2319')]||[];})[_0xb143a('0x16df')](function(_0x49a680){const _0x14432e=_0xb143a;_0x33dd0c[_0x14432e('0x1db9')]({'title':_0x49a680[_0x14432e('0x11c5')]?_0x14432e('0x14f7')+_0x49a680[_0x14432e('0x11c5')]+_0x14432e('0x16e4')+_0x49a680[_0x14432e('0x1833')]:_0x14432e('0x228'),'msg':_0x49a680['data']?JSON[_0x14432e('0x678')](_0x49a680[_0x14432e('0x1457')]):_0x49a680[_0x14432e('0x9b6')]()});}):_0x20ffad[_0xb143a('0x16c2')]['get']({'fields':_0xb143a('0x1cd2'),'type':_0xb143a('0x1ade'),'VoiceExtensionId':'null','nolimit':_0xb143a('0xe34')})[_0xb143a('0x1af5')][_0xb143a('0x17e7')](function(_0x2701c0){const _0x4f59ff=_0xb143a;_0x553d0b['outboundRoutes']=_0x2701c0[_0x4f59ff('0x2319')]||[];})['then'](function(){const _0x2c26bc=_0xb143a;return _0x20ffad[_0x2c26bc('0x383')]['get']({'userProfileId':_0x553d0b[_0x2c26bc('0x197c')][_0x2c26bc('0x1e76')],'sectionId':0x193})[_0x2c26bc('0x1af5')];})[_0xb143a('0x17e7')](function(_0x48f41d){const _0x338eb8=_0xb143a,_0x4a637b=_0x48f41d&&_0x48f41d[_0x338eb8('0x2319')]?_0x48f41d[_0x338eb8('0x2319')][0x0]:null;if(!_0x4a637b){const _0x19a762=[],_0x21357e=[];_0x553d0b[_0x338eb8('0x24ff')][_0x338eb8('0x2319')][_0x338eb8('0xccd')](function(_0x4ccd92){const _0xe892ad=_0x338eb8;if(_0x4ccd92[_0xe892ad('0x1515')]===_0xe892ad('0x1e01')){const _0x463231=_0x49cbdd()['find'](_0x553d0b[_0xe892ad('0x789')],{'id':Number(_0x4ccd92[_0xe892ad('0x175b')])});_0x21357e[_0xe892ad('0x269f')](_0x463231);}});for(let _0x153b52=0x0;_0x153b52<_0x553d0b[_0x338eb8('0x789')][_0x338eb8('0x1f73')];_0x153b52++){const _0x137726=_0x49cbdd()[_0x338eb8('0x26f8')](_0x21357e,{'id':_0x553d0b[_0x338eb8('0x789')][_0x153b52]['id']});_0x137726&&(_0x553d0b['outboundRoutes'][_0x153b52][_0x338eb8('0xe5c')]=![],_0x19a762['push'](_0x553d0b[_0x338eb8('0x789')][_0x153b52]));}_0x553d0b[_0x338eb8('0x789')]=_0x19a762;}else{if(!_0x4a637b[_0x338eb8('0x9e3')])return _0x20ffad[_0x338eb8('0x78d')]['get']({'sectionId':_0x4a637b['id']})[_0x338eb8('0x1af5')]['then'](function(_0x48a8e1){const _0x2a92a8=_0x338eb8,_0x2982ab=_0x49cbdd()['map'](_0x48a8e1[_0x2a92a8('0x2319')],function(_0xd93869){const _0x23d1a=_0x2a92a8;return _0x49cbdd()[_0x23d1a('0xe8e')](_0x553d0b[_0x23d1a('0x789')],{'id':_0xd93869[_0x23d1a('0x5db')]});});let _0x58b3b2=null;_0x58b3b2=[],_0x553d0b[_0x2a92a8('0x24ff')][_0x2a92a8('0x2319')]['forEach'](function(_0x36ce36){const _0x5073af=_0x2a92a8;if(_0x36ce36[_0x5073af('0x1515')]===_0x5073af('0x1e01')){const _0x267b24=_0x49cbdd()['find'](_0x553d0b[_0x5073af('0x789')],{'id':Number(_0x36ce36[_0x5073af('0x175b')])});_0x58b3b2['push'](_0x267b24);}}),!_0x49cbdd()[_0x2a92a8('0x109a')](_0x58b3b2)&&_0x58b3b2['forEach'](function(_0x3c3770){const _0x35bea6=_0x2a92a8;if(!_0x49cbdd()[_0x35bea6('0x26f8')](_0x2982ab,['id',_0x3c3770['id']])){const _0x1ddd4e=_0x49cbdd()['find'](_0x553d0b[_0x35bea6('0x789')],{'id':_0x3c3770['id']});_0x1ddd4e['canSelect']=![],_0x2982ab[_0x35bea6('0x269f')](_0x1ddd4e);}}),_0x553d0b[_0x2a92a8('0x789')]=_0x2982ab;});}})[_0xb143a('0x16df')](function(_0x5692dd){const _0x59aac6=_0xb143a;_0x33dd0c['error']({'title':_0x5692dd['status']?'API:'+_0x5692dd[_0x59aac6('0x11c5')]+'\x20-\x20'+_0x5692dd[_0x59aac6('0x1833')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x5692dd[_0x59aac6('0x1457')]?JSON[_0x59aac6('0x678')](_0x5692dd['data']):_0x5692dd[_0x59aac6('0x9b6')]()});});}function _0x5ecd0c(){const _0x39db43=_0x2559db;_0x47f155['isAdmin']()?_0x20ffad[_0x39db43('0x221e')][_0x39db43('0x1c53')]({'fields':_0x39db43('0x1f7'),'sort':'name','role':'agent','nolimit':_0x39db43('0xe34')})[_0x39db43('0x1af5')]['then'](function(_0x1da100){const _0x4366bd=_0x39db43;_0x553d0b[_0x4366bd('0x25ea')]=_0x1da100[_0x4366bd('0x2319')]||[];})[_0x39db43('0x16df')](function(_0x307786){const _0x5cd9b0=_0x39db43;_0x33dd0c[_0x5cd9b0('0x1db9')]({'title':_0x307786[_0x5cd9b0('0x11c5')]?_0x5cd9b0('0x14f7')+_0x307786[_0x5cd9b0('0x11c5')]+_0x5cd9b0('0x16e4')+_0x307786[_0x5cd9b0('0x1833')]:_0x5cd9b0('0x23e0'),'msg':_0x307786[_0x5cd9b0('0x1457')]?JSON[_0x5cd9b0('0x678')](_0x307786[_0x5cd9b0('0x1457')]):_0x307786[_0x5cd9b0('0x9b6')]()});}):_0x20ffad['user'][_0x39db43('0x1c53')]({'fields':_0x39db43('0x1f7'),'sort':_0x39db43('0x2aa'),'role':_0x39db43('0x684'),'nolimit':_0x39db43('0xe34')})['$promise'][_0x39db43('0x17e7')](function(_0x58186d){const _0x4153e9=_0x39db43;_0x553d0b[_0x4153e9('0x25ea')]=_0x58186d[_0x4153e9('0x2319')]||[];})[_0x39db43('0x17e7')](function(){const _0x5d1393=_0x39db43;return _0x20ffad[_0x5d1393('0x383')][_0x5d1393('0x1c53')]({'userProfileId':_0x553d0b[_0x5d1393('0x197c')][_0x5d1393('0x1e76')],'sectionId':0xca})[_0x5d1393('0x1af5')];})['then'](function(_0x13169c){const _0x374eb9=_0x39db43,_0x4a20c5=_0x13169c&&_0x13169c['rows']?_0x13169c[_0x374eb9('0x2319')][0x0]:null;if(!_0x4a20c5){const _0x266a6b=[],_0x1bfa6a=[];_0x553d0b[_0x374eb9('0x24ff')]['rows'][_0x374eb9('0xccd')](function(_0x23831b){const _0x38fa12=_0x374eb9;if(_0x23831b['field']===_0x38fa12('0x684')){const _0x2f5238=_0x49cbdd()[_0x38fa12('0xe8e')](_0x553d0b[_0x38fa12('0x25ea')],{'name':_0x23831b[_0x38fa12('0x175b')]});_0x1bfa6a[_0x38fa12('0x269f')](_0x2f5238);}});for(let _0x417c63=0x0;_0x417c63<_0x553d0b[_0x374eb9('0x25ea')][_0x374eb9('0x1f73')];_0x417c63++){const _0x540dce=_0x49cbdd()['some'](_0x1bfa6a,{'id':_0x553d0b['agents'][_0x417c63]['id']});_0x540dce&&(_0x553d0b['agents'][_0x417c63][_0x374eb9('0xe5c')]=![],_0x266a6b[_0x374eb9('0x269f')](_0x553d0b['agents'][_0x417c63]));}_0x553d0b[_0x374eb9('0x25ea')]=_0x266a6b;}else{if(!_0x4a20c5[_0x374eb9('0x9e3')])return _0x20ffad[_0x374eb9('0x78d')][_0x374eb9('0x1c53')]({'sectionId':_0x4a20c5['id']})[_0x374eb9('0x1af5')][_0x374eb9('0x17e7')](function(_0x31e46f){const _0x2b7306=_0x374eb9,_0x4ec350=_0x49cbdd()[_0x2b7306('0x787')](_0x31e46f[_0x2b7306('0x2319')],function(_0x99a455){const _0x5f3c71=_0x2b7306;return _0x49cbdd()[_0x5f3c71('0xe8e')](_0x553d0b[_0x5f3c71('0x25ea')],{'id':_0x99a455[_0x5f3c71('0x5db')]});});let _0x42d990=null;_0x42d990=[],_0x553d0b[_0x2b7306('0x24ff')][_0x2b7306('0x2319')][_0x2b7306('0xccd')](function(_0x21a299){const _0x4a5997=_0x2b7306;if(_0x21a299['field']===_0x4a5997('0x684')){const _0x117e34=_0x49cbdd()[_0x4a5997('0xe8e')](_0x553d0b[_0x4a5997('0x25ea')],{'name':_0x21a299[_0x4a5997('0x175b')]});_0x42d990[_0x4a5997('0x269f')](_0x117e34);}}),!_0x49cbdd()['isEmpty'](_0x42d990)&&_0x42d990[_0x2b7306('0xccd')](function(_0x37a43f){const _0x1603c9=_0x2b7306;if(!_0x49cbdd()['some'](_0x4ec350,['id',_0x37a43f['id']])){const _0x44bed9=_0x49cbdd()[_0x1603c9('0xe8e')](_0x553d0b[_0x1603c9('0x25ea')],{'id':_0x37a43f['id']});_0x44bed9[_0x1603c9('0xe5c')]=![],_0x4ec350[_0x1603c9('0x269f')](_0x44bed9);}}),_0x553d0b[_0x2b7306('0x25ea')]=_0x4ec350;});}})['catch'](function(_0x5dbc87){const _0x14ac88=_0x39db43;_0x33dd0c['error']({'title':_0x5dbc87[_0x14ac88('0x11c5')]?'API:'+_0x5dbc87['status']+'\x20-\x20'+_0x5dbc87['statusText']:_0x14ac88('0x23e0'),'msg':_0x5dbc87['data']?JSON[_0x14ac88('0x678')](_0x5dbc87[_0x14ac88('0x1457')]):_0x5dbc87['toString']()});});}function _0x595b55(){const _0x398abd=_0x2559db;if(_0x553d0b[_0x398abd('0x1c8d')][_0x398abd('0x15d7')]===_0x398abd('0x1fe1')){if(_0x49cbdd()[_0x398abd('0x26f8')](_0x553d0b[_0x398abd('0x24ff')][_0x398abd('0x2319')],['field',_0x398abd('0x1bd')])){if(!_0x553d0b[_0x398abd('0x14c4')])_0x114354();}if(_0x49cbdd()[_0x398abd('0x26f8')](_0x553d0b[_0x398abd('0x24ff')][_0x398abd('0x2319')],[_0x398abd('0x1515'),_0x398abd('0x1e01')])){if(!_0x553d0b['outboundRoutes'])_0x1dc33e();}if(_0x49cbdd()['some'](_0x553d0b['triggerAnyConditions'][_0x398abd('0x2319')],[_0x398abd('0x1515'),_0x398abd('0x684')])){if(!_0x553d0b[_0x398abd('0x25ea')])_0x5ecd0c();}}else _0x208d73();}function _0x123900(_0x4cbd8b){_0x553d0b['triggerAnyConditions']=_0x4cbd8b||{'count':0x0,'rows':[]},_0x595b55();}function _0x2d4bf7(){const _0x1a71e9=_0x2559db;_0x553d0b[_0x1a71e9('0x826')][_0x1a71e9('0xf19')]=(_0x553d0b['query'][_0x1a71e9('0x115a')]-0x1)*_0x553d0b[_0x1a71e9('0x826')][_0x1a71e9('0x193b')],_0x553d0b[_0x1a71e9('0x1691')]=_0x20ffad[_0x1a71e9('0x1c8d')][_0x1a71e9('0x21e6')](_0x553d0b[_0x1a71e9('0x826')],_0x123900)[_0x1a71e9('0x1af5')];}function _0x2e1dd4(_0x31a61,_0x2a7b96){const _0x39f72c=_0x2559db;_0x18eed5[_0x39f72c('0x28e2')]({'controller':'CreateOrEditAnyConditionDialogController','controllerAs':'vm','templateUrl':_0x5d40c1,'parent':angular[_0x39f72c('0x1ce1')](_0x1b3163[_0x39f72c('0x13aa')]),'targetEvent':_0x31a61,'clickOutsideToClose':!![],'locals':{'trigger':_0x553d0b['trigger'],'anyCondition':_0x2a7b96,'anyConditions':_0x553d0b[_0x39f72c('0x24ff')][_0x39f72c('0x2319')],'license':null,'setting':null,'crudPermissions':_0x553d0b[_0x39f72c('0x103e')]}})[_0x39f72c('0x17e7')](function(_0x3bae34){const _0x4fdcc2=_0x39f72c;_0x3bae34&&(_0x553d0b[_0x4fdcc2('0x24ff')]={'count':_0x3bae34['length'],'rows':_0x3bae34},_0x595b55());});}function _0x1800ec(_0x5239ce,_0x1b7fc3){const _0x35ab40=_0x2559db,_0xbb7e0a=_0x18eed5[_0x35ab40('0x1121')]()['title'](_0x319403[_0x35ab40('0x1acc')](_0x35ab40('0x8af')))[_0x35ab40('0x2095')](_0x35ab40('0x1440'))[_0x35ab40('0x104f')](_0x1b7fc3)['ok']('OK')[_0x35ab40('0x1d47')](_0x319403[_0x35ab40('0x1acc')](_0x35ab40('0x34f')));_0x18eed5[_0x35ab40('0x28e2')](_0xbb7e0a)[_0x35ab40('0x17e7')](function(){_0x210ec6(_0x5239ce,!![]);});}function _0x210ec6(_0x3d1ddd,_0x70cc22){const _0x1a617d=_0x2559db;_0x20ffad['condition'][_0x1a617d('0x1da6')]({'id':_0x3d1ddd['id']})['$promise']['then'](function(){const _0xf50f7d=_0x1a617d;_0x2d4bf7(),_0x70cc22&&_0x33dd0c[_0xf50f7d('0x130d')]({'title':_0x319403['instant']('TOOLS.NOTIFICATIONS.CONDITION_DELETED_SUCCESS_TITLE')});})[_0x1a617d('0x16df')](function(_0x2e256f){const _0x3c1c02=_0x1a617d;if(_0x2e256f[_0x3c1c02('0x1457')]&&_0x2e256f[_0x3c1c02('0x1457')]['errors']&&_0x2e256f[_0x3c1c02('0x1457')]['errors'][_0x3c1c02('0x1f73')]){_0x553d0b[_0x3c1c02('0x73e')]=_0x2e256f[_0x3c1c02('0x1457')][_0x3c1c02('0x73e')]||[{'message':_0x2e256f[_0x3c1c02('0x9b6')](),'type':_0x3c1c02('0x138a')}];for(let _0x2aeed8=0x0;_0x2aeed8<_0x2e256f[_0x3c1c02('0x1457')][_0x3c1c02('0x73e')][_0x3c1c02('0x1f73')];_0x2aeed8++){_0x33dd0c['error']({'title':_0x2e256f[_0x3c1c02('0x1457')][_0x3c1c02('0x73e')][_0x2aeed8][_0x3c1c02('0x412')],'msg':_0x2e256f[_0x3c1c02('0x1457')][_0x3c1c02('0x73e')][_0x2aeed8][_0x3c1c02('0x1603')]});}}else _0x33dd0c[_0x3c1c02('0x1db9')]({'title':_0x2e256f[_0x3c1c02('0x11c5')]?'API:'+_0x2e256f[_0x3c1c02('0x11c5')]+_0x3c1c02('0x16e4')+_0x2e256f['statusText']:_0x3c1c02('0x138a'),'msg':_0x2e256f[_0x3c1c02('0x1457')]?JSON[_0x3c1c02('0x678')](_0x2e256f[_0x3c1c02('0x1457')][_0x3c1c02('0x1603')]):_0x2e256f[_0x3c1c02('0x1603')]||_0x2e256f['toString']()});});}function _0x59de49(){const _0x205c17=_0x2559db,_0x3250f8=angular[_0x205c17('0x14e5')](_0x553d0b[_0x205c17('0x20af')]);return _0x553d0b[_0x205c17('0x20af')]=[],_0x3250f8;}function _0x2a67a2(_0x4e0260){const _0x398cdb=_0x2559db,_0x9f282e=_0x18eed5[_0x398cdb('0x1121')]()[_0x398cdb('0x24d3')](_0x319403['instant'](_0x398cdb('0x1f9b')))[_0x398cdb('0xd5')](_0x319403['instant'](_0x398cdb('0x2d9'),{'total':_0x553d0b[_0x398cdb('0x20af')][_0x398cdb('0x1f73')]}))[_0x398cdb('0x2095')]('Delete\x20conditions')[_0x398cdb('0x104f')](_0x4e0260)['ok']('OK')[_0x398cdb('0x1d47')](_0x319403[_0x398cdb('0x1acc')](_0x398cdb('0x34f')));_0x18eed5[_0x398cdb('0x28e2')](_0x9f282e)['then'](function(){const _0x30b0ee=_0x398cdb;_0x553d0b[_0x30b0ee('0x20af')][_0x30b0ee('0xccd')](function(_0x3154d4){_0x210ec6(_0x3154d4);}),_0x553d0b['selectedTriggerAnyConditions']=[],_0x33dd0c['success']({'title':_0x319403['instant'](_0x30b0ee('0x2610'))});});}let _0x4795bf=!![],_0xb8a2e4=0x1;_0x3901cd[_0x2559db('0x620')](_0x2559db('0x4c3'),function(_0x57e86c,_0x2d2180){const _0x118494=_0x2559db;_0x4795bf?_0x26937d(function(){_0x4795bf=![];}):(!_0x2d2180&&(_0xb8a2e4=_0x553d0b['query']['page']),_0x57e86c!==_0x2d2180&&(_0x553d0b['query'][_0x118494('0x115a')]=0x1),!_0x57e86c&&(_0x553d0b['query'][_0x118494('0x115a')]=_0xb8a2e4),_0x2d4bf7());});}const _0x10461d=_0x2ae10a;_0x3feeee['$inject']=[_0x4376d8('0xc4c'),'$mdDialog','$q','$translate','toasty',_0x4376d8('0x17b2'),_0x4376d8('0x1363'),_0x4376d8('0x1c8d'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x3feeee(_0x1a1fd4,_0x3da9e8,_0x2ce9c3,_0x31244c,_0x5bf9d9,_0xba91ff,_0x4d482b,_0x7af393,_0x3a5cb7,_0x34d138,_0x211b37,_0x35e21c,_0x16d7c8){const _0xf95da1=_0x4376d8,_0x1f3285=this;_0x1f3285[_0xf95da1('0x197c')]=_0x34d138[_0xf95da1('0x2831')](),_0x1f3285[_0xf95da1('0x1363')]=angular[_0xf95da1('0x14e5')](_0x4d482b),_0x1f3285['allConditions']=angular['copy'](_0xba91ff),_0x1f3285[_0xf95da1('0x1aeb')]=_0x35e21c,_0x1f3285[_0xf95da1('0x1d11')]=_0x211b37,_0x1f3285['crudPermissions']=_0x16d7c8,_0x1f3285[_0xf95da1('0x6ee')]={},_0x1f3285[_0xf95da1('0x2768')]=![],_0x1f3285[_0xf95da1('0x73e')]=[],_0x1f3285[_0xf95da1('0x1c8d')]=angular[_0xf95da1('0x14e5')](_0x7af393);!_0x1f3285[_0xf95da1('0x1363')]?(_0x1f3285[_0xf95da1('0x1363')]={'operator':'equals'},_0x1f3285[_0xf95da1('0x2768')]=!![]):_0x3c6aca();_0x1f3285[_0xf95da1('0x1363')][_0xf95da1('0x51b')]=_0x1a1fd4[_0xf95da1('0x16fb')]['id']||undefined,_0x1f3285[_0xf95da1('0x2625')]=[{'name':_0xf95da1('0x98b'),'value':_0xf95da1('0x22b6')},{'name':_0xf95da1('0x1ceb'),'value':'timeout'},{'name':_0xf95da1('0xef6'),'value':_0xf95da1('0x8c4')},{'name':_0xf95da1('0x6b'),'value':'rejected'},{'name':_0xf95da1('0x950'),'value':_0xf95da1('0x1307')},{'name':'Answer','value':_0xf95da1('0x1f81')},{'name':_0xf95da1('0x13e8'),'value':_0xf95da1('0x1ef5')},{'name':_0xf95da1('0x1ea5'),'value':'busy'},{'name':_0xf95da1('0x1afb'),'value':'noanswer'},{'name':_0xf95da1('0xce2'),'value':_0xf95da1('0x235a')},{'name':_0xf95da1('0x72f'),'value':_0xf95da1('0x27cc')}],_0x1f3285['onFieldSelection']=_0x3f6314,_0x1f3285[_0xf95da1('0x215d')]=_0x60b591,_0x1f3285['saveAllCondition']=_0x28421d,_0x1f3285[_0xf95da1('0x1568')]=_0x265fc1,_0x1f3285[_0xf95da1('0x136e')]=_0x4f7e6a;function _0x45d502(){const _0x53eafe=_0xf95da1,_0x56168b=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0x53eafe('0x1ade')}];let _0x476c9e=null;_0x34d138['isAdmin']()?_0x3a5cb7[_0x53eafe('0x1243')][_0x53eafe('0x1c53')]({'fields':'id,name,type','sort':'name','nolimit':'true'})[_0x53eafe('0x1af5')]['then'](function(_0x11e52f){const _0x1c4029=_0x53eafe;_0x1f3285[_0x1c4029('0x14c4')]=_0x11e52f[_0x1c4029('0x2319')]||[];})[_0x53eafe('0x16df')](function(_0xa7abe3){const _0x2ebd8d=_0x53eafe;_0x5bf9d9['error']({'title':_0xa7abe3[_0x2ebd8d('0x11c5')]?_0x2ebd8d('0x14f7')+_0xa7abe3[_0x2ebd8d('0x11c5')]+_0x2ebd8d('0x16e4')+_0xa7abe3[_0x2ebd8d('0x1833')]:_0x2ebd8d('0x793'),'msg':_0xa7abe3[_0x2ebd8d('0x1457')]?JSON['stringify'](_0xa7abe3[_0x2ebd8d('0x1457')]):_0xa7abe3['toString']()});}):_0x3a5cb7[_0x53eafe('0x1243')][_0x53eafe('0x1c53')]({'fields':_0x53eafe('0x960'),'sort':_0x53eafe('0x2aa'),'nolimit':_0x53eafe('0xe34')})[_0x53eafe('0x1af5')][_0x53eafe('0x17e7')](function(_0x47e6d5){_0x476c9e=_0x47e6d5['rows']||[];})['then'](function(){const _0x22fc0c=_0x53eafe,_0x135650=[];for(let _0x32b4dc=0x0;_0x32b4dc<_0x56168b[_0x22fc0c('0x1f73')];_0x32b4dc++){_0x135650[_0x22fc0c('0x269f')](_0x3a5cb7[_0x22fc0c('0x383')][_0x22fc0c('0x1c53')]({'userProfileId':_0x1f3285[_0x22fc0c('0x197c')][_0x22fc0c('0x1e76')],'sectionId':_0x56168b[_0x32b4dc]['id']})[_0x22fc0c('0x1af5')]);}return _0x2ce9c3[_0x22fc0c('0x1283')](_0x135650);})['then'](function(_0x35134f){const _0xc4ea31=_0x53eafe,_0x7e486=_0x49cbdd()[_0xc4ea31('0x787')](_0x35134f,function(_0x2db3c5){const _0x43464c=_0xc4ea31;return _0x2db3c5&&_0x2db3c5[_0x43464c('0x2319')]?_0x2db3c5[_0x43464c('0x2319')][0x0]:null;}),_0x5342b5=[];for(let _0xe51266=0x0;_0xe51266<_0x56168b[_0xc4ea31('0x1f73')];_0xe51266++){const _0x59c128=_0x49cbdd()[_0xc4ea31('0xe8e')](_0x7e486,[_0xc4ea31('0x2676'),_0x56168b[_0xe51266]['id']]);if(_0x59c128){if(!_0x59c128[_0xc4ea31('0x9e3')])_0x5342b5[_0xc4ea31('0x269f')](_0x3a5cb7[_0xc4ea31('0x78d')]['get']({'sectionId':_0x59c128['id']})['$promise']);else{const _0x148232=[];_0x476c9e[_0xc4ea31('0xccd')](function(_0x847c6){const _0x2d7921=_0xc4ea31;_0x847c6[_0x2d7921('0x412')]===_0x56168b[_0xe51266]['type']&&_0x148232['push'](_0x847c6);}),_0x5342b5[_0xc4ea31('0x269f')]({'rows':_0x148232,'count':_0x148232[_0xc4ea31('0x1f73')]});}}}return _0x2ce9c3['all'](_0x5342b5);})[_0x53eafe('0x17e7')](function(_0x3ffbf9){const _0x1c5b37=_0x53eafe,_0x26715a=[],_0x24fd65=[];_0x1f3285[_0x1c5b37('0x25d0')][_0x1c5b37('0x2319')][_0x1c5b37('0xccd')](function(_0x413e81){const _0x3ead05=_0x1c5b37;if(_0x413e81['field']===_0x3ead05('0x1bd')){const _0x4ac24a=_0x49cbdd()[_0x3ead05('0xe8e')](_0x476c9e,{'name':_0x413e81['value']});_0x24fd65['push'](_0x4ac24a);}});for(let _0x3dc7f0=0x0;_0x3dc7f0<_0x3ffbf9['length'];_0x3dc7f0++){const _0x19fcfb=_0x3ffbf9[_0x3dc7f0][_0x1c5b37('0x2319')]||[];_0x19fcfb['forEach'](function(_0x4248dc){const _0x486f0d=_0x1c5b37;_0x26715a[_0x486f0d('0x269f')](_0x4248dc);});}!_0x49cbdd()[_0x1c5b37('0x109a')](_0x24fd65)&&_0x24fd65[_0x1c5b37('0xccd')](function(_0x325aab){const _0x59b573=_0x1c5b37;if(!_0x49cbdd()[_0x59b573('0x26f8')](_0x26715a,[_0x59b573('0x5db'),_0x325aab['id']])){const _0x4ecc58=_0x49cbdd()[_0x59b573('0xe8e')](_0x476c9e,{'id':_0x325aab['id']});_0x4ecc58[_0x59b573('0xe5c')]=![],_0x26715a[_0x59b573('0x269f')](_0x4ecc58);}}),_0x1f3285[_0x1c5b37('0x14c4')]=_0x26715a;})[_0x53eafe('0x16df')](function(_0x539584){const _0x364ba8=_0x53eafe;_0x5bf9d9[_0x364ba8('0x1db9')]({'title':_0x539584[_0x364ba8('0x11c5')]?_0x364ba8('0x14f7')+_0x539584[_0x364ba8('0x11c5')]+'\x20-\x20'+_0x539584[_0x364ba8('0x1833')]:_0x364ba8('0x92a'),'msg':_0x539584[_0x364ba8('0x1457')]?JSON[_0x364ba8('0x678')](_0x539584['data']):_0x539584[_0x364ba8('0x9b6')]()});});}function _0x5677a2(){const _0x2377c7=_0xf95da1;_0x34d138[_0x2377c7('0xea2')]()?_0x3a5cb7[_0x2377c7('0x16c2')][_0x2377c7('0x1c53')]({'fields':'id,exten','type':'outbound','VoiceExtensionId':_0x2377c7('0x9bb'),'nolimit':_0x2377c7('0xe34')})[_0x2377c7('0x1af5')][_0x2377c7('0x17e7')](function(_0x82bedd){const _0x223eb9=_0x2377c7;_0x1f3285[_0x223eb9('0x789')]=_0x82bedd[_0x223eb9('0x2319')]||[];})[_0x2377c7('0x16df')](function(_0x13f6c4){const _0x42309b=_0x2377c7;_0x5bf9d9[_0x42309b('0x1db9')]({'title':_0x13f6c4[_0x42309b('0x11c5')]?_0x42309b('0x14f7')+_0x13f6c4[_0x42309b('0x11c5')]+_0x42309b('0x16e4')+_0x13f6c4[_0x42309b('0x1833')]:_0x42309b('0x228'),'msg':_0x13f6c4[_0x42309b('0x1457')]?JSON[_0x42309b('0x678')](_0x13f6c4['data']):_0x13f6c4['toString']()});}):_0x3a5cb7[_0x2377c7('0x16c2')][_0x2377c7('0x1c53')]({'fields':_0x2377c7('0x1cd2'),'type':_0x2377c7('0x1ade'),'VoiceExtensionId':_0x2377c7('0x9bb'),'nolimit':_0x2377c7('0xe34')})[_0x2377c7('0x1af5')][_0x2377c7('0x17e7')](function(_0x446104){const _0x601caa=_0x2377c7;_0x1f3285[_0x601caa('0x789')]=_0x446104[_0x601caa('0x2319')]||[];})[_0x2377c7('0x17e7')](function(){const _0x10abd6=_0x2377c7;return _0x3a5cb7[_0x10abd6('0x383')][_0x10abd6('0x1c53')]({'userProfileId':_0x1f3285['currentUser']['userProfileId'],'sectionId':0x193})[_0x10abd6('0x1af5')];})[_0x2377c7('0x17e7')](function(_0x4789d7){const _0x5914b4=_0x2377c7,_0x42df57=_0x4789d7&&_0x4789d7[_0x5914b4('0x2319')]?_0x4789d7[_0x5914b4('0x2319')][0x0]:null;if(!_0x42df57){const _0x55fc98=[],_0x157f08=[];_0x1f3285['triggerallConditions'][_0x5914b4('0x2319')][_0x5914b4('0xccd')](function(_0x1bf230){const _0x193c0f=_0x5914b4;if(_0x1bf230[_0x193c0f('0x1515')]===_0x193c0f('0x1e01')){const _0x4c0c66=_0x49cbdd()[_0x193c0f('0xe8e')](_0x1f3285[_0x193c0f('0x789')],{'id':Number(_0x1bf230[_0x193c0f('0x175b')])});_0x157f08[_0x193c0f('0x269f')](_0x4c0c66);}});for(let _0x3345b9=0x0;_0x3345b9<_0x1f3285['outboundRoutes']['length'];_0x3345b9++){const _0x494666=_0x49cbdd()['some'](_0x157f08,{'id':_0x1f3285[_0x5914b4('0x789')][_0x3345b9]['id']});_0x494666&&(_0x1f3285[_0x5914b4('0x789')][_0x3345b9][_0x5914b4('0xe5c')]=![],_0x55fc98[_0x5914b4('0x269f')](_0x1f3285[_0x5914b4('0x789')][_0x3345b9]));}_0x1f3285[_0x5914b4('0x789')]=_0x55fc98;}else{if(!_0x42df57[_0x5914b4('0x9e3')])return _0x3a5cb7['userProfileResource'][_0x5914b4('0x1c53')]({'sectionId':_0x42df57['id']})[_0x5914b4('0x1af5')][_0x5914b4('0x17e7')](function(_0x46370c){const _0x123fb4=_0x5914b4,_0x332bad=_0x49cbdd()['map'](_0x46370c[_0x123fb4('0x2319')],function(_0x1c590b){const _0x591900=_0x123fb4;return _0x49cbdd()['find'](_0x1f3285[_0x591900('0x789')],{'id':_0x1c590b[_0x591900('0x5db')]});});let _0x3c30ae=null;_0x3c30ae=[],_0x1f3285[_0x123fb4('0x25d0')][_0x123fb4('0x2319')][_0x123fb4('0xccd')](function(_0x9a40e4){const _0x119b5f=_0x123fb4;if(_0x9a40e4['field']===_0x119b5f('0x1e01')){const _0x4a1e81=_0x49cbdd()['find'](_0x1f3285[_0x119b5f('0x789')],{'id':Number(_0x9a40e4[_0x119b5f('0x175b')])});_0x3c30ae[_0x119b5f('0x269f')](_0x4a1e81);}}),!_0x49cbdd()[_0x123fb4('0x109a')](_0x3c30ae)&&_0x3c30ae[_0x123fb4('0xccd')](function(_0x4260ef){const _0x88bec4=_0x123fb4;if(!_0x49cbdd()['some'](_0x332bad,['id',_0x4260ef['id']])){const _0x19602b=_0x49cbdd()['find'](_0x1f3285['outboundRoutes'],{'id':_0x4260ef['id']});_0x19602b[_0x88bec4('0xe5c')]=![],_0x332bad[_0x88bec4('0x269f')](_0x19602b);}}),_0x1f3285[_0x123fb4('0x789')]=_0x332bad;});}})['catch'](function(_0x3b43d0){const _0x56fcdb=_0x2377c7;_0x5bf9d9[_0x56fcdb('0x1db9')]({'title':_0x3b43d0[_0x56fcdb('0x11c5')]?'API:'+_0x3b43d0[_0x56fcdb('0x11c5')]+_0x56fcdb('0x16e4')+_0x3b43d0[_0x56fcdb('0x1833')]:'SYSTEM:GET_OUTBOUNDROUTES','msg':_0x3b43d0[_0x56fcdb('0x1457')]?JSON[_0x56fcdb('0x678')](_0x3b43d0['data']):_0x3b43d0[_0x56fcdb('0x9b6')]()});});}function _0x2b4974(){const _0x2c74be=_0xf95da1;_0x34d138[_0x2c74be('0xea2')]()?_0x3a5cb7[_0x2c74be('0x221e')][_0x2c74be('0x1c53')]({'fields':_0x2c74be('0x1f7'),'sort':'name','role':'agent','nolimit':_0x2c74be('0xe34')})[_0x2c74be('0x1af5')][_0x2c74be('0x17e7')](function(_0x188e33){const _0x1fa1f2=_0x2c74be;_0x1f3285['agents']=_0x188e33[_0x1fa1f2('0x2319')]||[];})[_0x2c74be('0x16df')](function(_0x84afb3){const _0x1c043f=_0x2c74be;_0x5bf9d9[_0x1c043f('0x1db9')]({'title':_0x84afb3[_0x1c043f('0x11c5')]?'API:'+_0x84afb3[_0x1c043f('0x11c5')]+_0x1c043f('0x16e4')+_0x84afb3[_0x1c043f('0x1833')]:_0x1c043f('0x23e0'),'msg':_0x84afb3[_0x1c043f('0x1457')]?JSON['stringify'](_0x84afb3[_0x1c043f('0x1457')]):_0x84afb3[_0x1c043f('0x9b6')]()});}):_0x3a5cb7[_0x2c74be('0x221e')][_0x2c74be('0x1c53')]({'fields':'id,name,fullname','sort':_0x2c74be('0x2aa'),'role':_0x2c74be('0x684'),'nolimit':_0x2c74be('0xe34')})['$promise'][_0x2c74be('0x17e7')](function(_0x2f4478){const _0x145e62=_0x2c74be;_0x1f3285['agents']=_0x2f4478[_0x145e62('0x2319')]||[];})['then'](function(){const _0x57af3a=_0x2c74be;return _0x3a5cb7[_0x57af3a('0x383')]['get']({'userProfileId':_0x1f3285[_0x57af3a('0x197c')][_0x57af3a('0x1e76')],'sectionId':0xca})[_0x57af3a('0x1af5')];})[_0x2c74be('0x17e7')](function(_0x507748){const _0x561880=_0x2c74be,_0x3396eb=_0x507748&&_0x507748['rows']?_0x507748['rows'][0x0]:null;if(!_0x3396eb){const _0x18ba98=[],_0x542731=[];_0x1f3285[_0x561880('0x25d0')][_0x561880('0x2319')]['forEach'](function(_0x375008){const _0x27f305=_0x561880;if(_0x375008[_0x27f305('0x1515')]==='agent'){const _0x2a33f9=_0x49cbdd()[_0x27f305('0xe8e')](_0x1f3285[_0x27f305('0x25ea')],{'name':_0x375008[_0x27f305('0x175b')]});_0x542731['push'](_0x2a33f9);}});for(let _0x4e1375=0x0;_0x4e1375<_0x1f3285['agents'][_0x561880('0x1f73')];_0x4e1375++){const _0xf7722c=_0x49cbdd()[_0x561880('0x26f8')](_0x542731,{'id':_0x1f3285[_0x561880('0x25ea')][_0x4e1375]['id']});_0xf7722c&&(_0x1f3285[_0x561880('0x25ea')][_0x4e1375][_0x561880('0xe5c')]=![],_0x18ba98[_0x561880('0x269f')](_0x1f3285['agents'][_0x4e1375]));}_0x1f3285[_0x561880('0x25ea')]=_0x18ba98;}else{if(!_0x3396eb[_0x561880('0x9e3')])return _0x3a5cb7[_0x561880('0x78d')]['get']({'sectionId':_0x3396eb['id']})[_0x561880('0x1af5')][_0x561880('0x17e7')](function(_0x573fd6){const _0x196c3c=_0x561880,_0x51f730=_0x49cbdd()[_0x196c3c('0x787')](_0x573fd6[_0x196c3c('0x2319')],function(_0x53d126){const _0x362792=_0x196c3c;return _0x49cbdd()[_0x362792('0xe8e')](_0x1f3285[_0x362792('0x25ea')],{'id':_0x53d126[_0x362792('0x5db')]});});let _0x16e31c=null;_0x16e31c=[],_0x1f3285['triggerallConditions'][_0x196c3c('0x2319')][_0x196c3c('0xccd')](function(_0x272244){const _0x11738f=_0x196c3c;if(_0x272244['field']==='agent'){const _0x857b8b=_0x49cbdd()[_0x11738f('0xe8e')](_0x1f3285['agents'],{'name':_0x272244[_0x11738f('0x175b')]});_0x16e31c[_0x11738f('0x269f')](_0x857b8b);}}),!_0x49cbdd()[_0x196c3c('0x109a')](_0x16e31c)&&_0x16e31c[_0x196c3c('0xccd')](function(_0x14d1fc){const _0x40e9d6=_0x196c3c;if(!_0x49cbdd()[_0x40e9d6('0x26f8')](_0x51f730,['id',_0x14d1fc['id']])){const _0x1aed8a=_0x49cbdd()[_0x40e9d6('0xe8e')](_0x1f3285['agents'],{'id':_0x14d1fc['id']});_0x1aed8a['canSelect']=![],_0x51f730['push'](_0x1aed8a);}}),_0x1f3285['agents']=_0x51f730;});}})['catch'](function(_0x33f475){const _0x48f262=_0x2c74be;_0x5bf9d9[_0x48f262('0x1db9')]({'title':_0x33f475[_0x48f262('0x11c5')]?_0x48f262('0x14f7')+_0x33f475[_0x48f262('0x11c5')]+_0x48f262('0x16e4')+_0x33f475[_0x48f262('0x1833')]:_0x48f262('0x23e0'),'msg':_0x33f475[_0x48f262('0x1457')]?JSON[_0x48f262('0x678')](_0x33f475['data']):_0x33f475[_0x48f262('0x9b6')]()});});}function _0x5c8d06(){const _0x4d0878=_0xf95da1,_0x12883f=_0x1f3285[_0x4d0878('0x1c8d')]['channel']+(_0x1f3285['trigger'][_0x4d0878('0x15d7')]===_0x4d0878('0x2219')?_0x4d0878('0x1b71'):_0x4d0878('0x896'));let _0x4f8e74;switch(_0x1f3285[_0x4d0878('0x1c8d')][_0x4d0878('0x15d7')]){case _0x4d0878('0x2219'):_0x4f8e74=0x1f6;break;case _0x4d0878('0xc23'):_0x4f8e74=0x386;break;case _0x4d0878('0xc2'):_0x4f8e74=0x25a;break;case _0x4d0878('0x1508'):_0x4f8e74=0x322;break;case _0x4d0878('0x2cd'):_0x4f8e74=0x2be;break;case'whatsapp':_0x4f8e74=0x836;break;}if(_0x34d138[_0x4d0878('0xea2')]()){const _0x39c080=_0x1f3285['trigger'][_0x4d0878('0x15d7')];_0x3a5cb7[_0x12883f]['get']({'fields':'id,name','sort':'id','nolimit':'true'})[_0x4d0878('0x1af5')][_0x4d0878('0x17e7')](function(_0x5a4d72){const _0x47fd20=_0x4d0878;_0x1f3285[_0x47fd20('0xc72')]=_0x5a4d72[_0x47fd20('0x2319')]||[];})[_0x4d0878('0x16df')](function(_0x4541f5){const _0x61c0a2=_0x4d0878;_0x5bf9d9[_0x61c0a2('0x1db9')]({'title':_0x4541f5[_0x61c0a2('0x11c5')]?_0x61c0a2('0x14f7')+_0x4541f5[_0x61c0a2('0x11c5')]+_0x61c0a2('0x16e4')+_0x4541f5[_0x61c0a2('0x1833')]:'SYSTEM:GET_'+_0x39c080[_0x61c0a2('0x14e2')]()+_0x39c080===_0x61c0a2('0x2219')?'WEBSITES':_0x61c0a2('0x18b2'),'msg':_0x4541f5[_0x61c0a2('0x1457')]?JSON[_0x61c0a2('0x678')](_0x4541f5[_0x61c0a2('0x1457')]):_0x4541f5[_0x61c0a2('0x9b6')]()});});}else _0x3a5cb7[_0x12883f][_0x4d0878('0x1c53')]({'fields':_0x4d0878('0x12d2'),'sort':'id','nolimit':_0x4d0878('0xe34')})[_0x4d0878('0x1af5')]['then'](function(_0x5e11ea){const _0x132895=_0x4d0878;_0x1f3285[_0x132895('0xc72')]=_0x5e11ea[_0x132895('0x2319')]||[];})['then'](function(){const _0x7947d2=_0x4d0878;return _0x3a5cb7[_0x7947d2('0x383')][_0x7947d2('0x1c53')]({'userProfileId':_0x1f3285[_0x7947d2('0x197c')][_0x7947d2('0x1e76')],'sectionId':_0x4f8e74})[_0x7947d2('0x1af5')];})[_0x4d0878('0x17e7')](function(_0x13fce6){const _0x44097c=_0x4d0878,_0x5b95ce=_0x13fce6&&_0x13fce6[_0x44097c('0x2319')]?_0x13fce6[_0x44097c('0x2319')][0x0]:null;if(!_0x5b95ce){const _0x16b170=[],_0x1361d0=[];_0x1f3285[_0x44097c('0x25d0')]['rows']['forEach'](function(_0x3d00d1){const _0x5ab9e9=_0x44097c;if(_0x3d00d1[_0x5ab9e9('0x1515')]===_0x5ab9e9('0x2679')){const _0xd77122=_0x49cbdd()['find'](_0x1f3285[_0x5ab9e9('0xc72')],{'id':Number(_0x3d00d1[_0x5ab9e9('0x175b')])});_0x1361d0[_0x5ab9e9('0x269f')](_0xd77122);}});for(let _0x2e93e8=0x0;_0x2e93e8<_0x1f3285[_0x44097c('0xc72')]['length'];_0x2e93e8++){const _0x250cdf=_0x49cbdd()[_0x44097c('0x26f8')](_0x1361d0,{'id':_0x1f3285['accounts'][_0x2e93e8]['id']});_0x250cdf&&(_0x1f3285[_0x44097c('0xc72')][_0x2e93e8][_0x44097c('0xe5c')]=![],_0x16b170[_0x44097c('0x269f')](_0x1f3285[_0x44097c('0xc72')][_0x2e93e8]));}_0x1f3285[_0x44097c('0xc72')]=_0x16b170;}else{if(!_0x5b95ce[_0x44097c('0x9e3')])return _0x3a5cb7[_0x44097c('0x78d')][_0x44097c('0x1c53')]({'sectionId':_0x5b95ce['id']})[_0x44097c('0x1af5')][_0x44097c('0x17e7')](function(_0x23315f){const _0x322807=_0x44097c,_0x48f621=_0x49cbdd()[_0x322807('0x787')](_0x23315f[_0x322807('0x2319')],function(_0x44877b){const _0x2f9898=_0x322807;return _0x49cbdd()[_0x2f9898('0xe8e')](_0x1f3285['accounts'],{'id':_0x44877b[_0x2f9898('0x5db')]});});let _0x5f181d=null;_0x5f181d=[],_0x1f3285[_0x322807('0x25d0')][_0x322807('0x2319')][_0x322807('0xccd')](function(_0x40522b){const _0x3c96ee=_0x322807;if(_0x40522b[_0x3c96ee('0x1515')]===_0x3c96ee('0x2679')){const _0x32565d=_0x49cbdd()[_0x3c96ee('0xe8e')](_0x1f3285[_0x3c96ee('0xc72')],{'id':Number(_0x40522b[_0x3c96ee('0x175b')])});_0x5f181d['push'](_0x32565d);}}),!_0x49cbdd()['isEmpty'](_0x5f181d)&&_0x5f181d['forEach'](function(_0xbc6a61){const _0x503afc=_0x322807;if(!_0x49cbdd()[_0x503afc('0x26f8')](_0x48f621,['id',_0xbc6a61['id']])){const _0x26b2a1=_0x49cbdd()[_0x503afc('0xe8e')](_0x1f3285[_0x503afc('0xc72')],{'id':_0xbc6a61['id']});_0x26b2a1['canSelect']=![],_0x48f621['push'](_0x26b2a1);}}),_0x1f3285[_0x322807('0xc72')]=_0x48f621;});}})[_0x4d0878('0x16df')](function(_0x13e37c){const _0x17d58d=_0x4d0878,_0x454e4e=_0x1f3285[_0x17d58d('0x1c8d')][_0x17d58d('0x15d7')];_0x5bf9d9[_0x17d58d('0x1db9')]({'title':_0x13e37c[_0x17d58d('0x11c5')]?'API:'+_0x13e37c[_0x17d58d('0x11c5')]+_0x17d58d('0x16e4')+_0x13e37c[_0x17d58d('0x1833')]:_0x17d58d('0x1a06')+_0x454e4e[_0x17d58d('0x14e2')]()+_0x454e4e==='chat'?'WEBSITES':_0x17d58d('0x18b2'),'msg':_0x13e37c['data']?JSON[_0x17d58d('0x678')](_0x13e37c[_0x17d58d('0x1457')]):_0x13e37c['toString']()});});}function _0x3c6aca(){const _0x15a7a4=_0xf95da1;switch(_0x1f3285[_0x15a7a4('0x1363')][_0x15a7a4('0x1515')]){case _0x15a7a4('0x1bd'):if(!_0x1f3285[_0x15a7a4('0x14c4')])_0x45d502();break;case _0x15a7a4('0x1e01'):if(!_0x1f3285[_0x15a7a4('0x789')])_0x5677a2();break;case _0x15a7a4('0x684'):if(!_0x1f3285['agents'])_0x2b4974();break;case _0x15a7a4('0x2679'):_0x5c8d06();break;}}function _0x3f6314(){_0x3c6aca();}function _0x60b591(){const _0x55b87f=_0xf95da1;_0x1f3285['errors']=[],_0x3a5cb7[_0x55b87f('0x1c8d')][_0x55b87f('0x1d84')]({'id':_0x1a1fd4['params']['id']},_0x1f3285[_0x55b87f('0x1363')])[_0x55b87f('0x1af5')][_0x55b87f('0x17e7')](function(_0x55db5d){const _0x1d2c21=_0x55b87f;_0x1f3285[_0x1d2c21('0x17b2')]['unshift'](_0x55db5d[_0x1d2c21('0x16b2')]()),_0x5bf9d9[_0x1d2c21('0x130d')]({'title':_0x31244c['instant'](_0x1d2c21('0x212'))}),_0x4f7e6a(_0x1f3285[_0x1d2c21('0x17b2')]);})['catch'](function(_0x3dc86c){const _0x5dd7b0=_0x55b87f;if(_0x3dc86c[_0x5dd7b0('0x1457')]&&_0x3dc86c[_0x5dd7b0('0x1457')][_0x5dd7b0('0x73e')]&&_0x3dc86c[_0x5dd7b0('0x1457')][_0x5dd7b0('0x73e')][_0x5dd7b0('0x1f73')]){_0x1f3285[_0x5dd7b0('0x73e')]=_0x3dc86c[_0x5dd7b0('0x1457')][_0x5dd7b0('0x73e')]||[{'message':_0x3dc86c[_0x5dd7b0('0x9b6')](),'type':_0x5dd7b0('0x2791')}];for(let _0x7c44d0=0x0;_0x7c44d0<_0x3dc86c[_0x5dd7b0('0x1457')][_0x5dd7b0('0x73e')][_0x5dd7b0('0x1f73')];_0x7c44d0+=0x1){_0x5bf9d9[_0x5dd7b0('0x1db9')]({'title':_0x3dc86c[_0x5dd7b0('0x1457')][_0x5dd7b0('0x73e')][_0x7c44d0][_0x5dd7b0('0x412')],'msg':_0x3dc86c['data'][_0x5dd7b0('0x73e')][_0x7c44d0][_0x5dd7b0('0x1603')]});}}else _0x5bf9d9[_0x5dd7b0('0x1db9')]({'title':_0x3dc86c[_0x5dd7b0('0x11c5')]?'API:'+_0x3dc86c['status']+'\x20-\x20'+_0x3dc86c['statusText']:'api.condition.save','msg':_0x3dc86c['data']?JSON[_0x5dd7b0('0x678')](_0x3dc86c[_0x5dd7b0('0x1457')][_0x5dd7b0('0x1603')]):_0x3dc86c[_0x5dd7b0('0x9b6')]()});});}function _0x28421d(){const _0x199525=_0xf95da1;_0x1f3285['errors']=[],_0x3a5cb7['condition']['update']({'id':_0x1f3285[_0x199525('0x1363')]['id']},_0x1f3285[_0x199525('0x1363')])[_0x199525('0x1af5')][_0x199525('0x17e7')](function(){const _0xddcb1d=_0x199525;_0x1f3285[_0xddcb1d('0x17b2')]=_0x49cbdd()[_0xddcb1d('0x787')](_0x1f3285[_0xddcb1d('0x17b2')],function(_0x23df36){const _0x3939aa=_0xddcb1d;if(_0x23df36['id']===_0x1f3285[_0x3939aa('0x1363')]['id'])return _0x1f3285[_0x3939aa('0x1363')];else return _0x23df36;}),_0x5bf9d9[_0xddcb1d('0x130d')]({'title':_0x31244c[_0xddcb1d('0x1acc')](_0xddcb1d('0x20ac'))}),_0x4f7e6a(_0x1f3285['allConditions']);})[_0x199525('0x16df')](function(_0x28c96f){const _0x193048=_0x199525;if(_0x28c96f[_0x193048('0x1457')]&&_0x28c96f['data']['errors']&&_0x28c96f[_0x193048('0x1457')]['errors'][_0x193048('0x1f73')]){_0x1f3285[_0x193048('0x73e')]=_0x28c96f['data'][_0x193048('0x73e')]||[{'message':_0x28c96f[_0x193048('0x9b6')](),'type':_0x193048('0x26f0')}];for(let _0x1fb1e1=0x0;_0x1fb1e1<_0x28c96f[_0x193048('0x1457')][_0x193048('0x73e')][_0x193048('0x1f73')];_0x1fb1e1++){_0x5bf9d9[_0x193048('0x1db9')]({'title':_0x28c96f[_0x193048('0x1457')][_0x193048('0x73e')][_0x1fb1e1][_0x193048('0x412')],'msg':_0x28c96f[_0x193048('0x1457')][_0x193048('0x73e')][_0x1fb1e1]['message']});}}else _0x5bf9d9[_0x193048('0x1db9')]({'title':_0x28c96f[_0x193048('0x11c5')]?_0x193048('0x14f7')+_0x28c96f[_0x193048('0x11c5')]+_0x193048('0x16e4')+_0x28c96f[_0x193048('0x1833')]:_0x193048('0x26f0'),'msg':_0x28c96f[_0x193048('0x1457')]?JSON[_0x193048('0x678')](_0x28c96f['data']['message']):_0x28c96f[_0x193048('0x9b6')]()});});}function _0x265fc1(_0x580b91){const _0x28217e=_0xf95da1;_0x1f3285['errors']=[];const _0x5e3002=_0x3da9e8[_0x28217e('0x1121')]({'skipHide':!![]})[_0x28217e('0x24d3')](_0x31244c[_0x28217e('0x1acc')](_0x28217e('0x8af')))[_0x28217e('0x2095')](_0x28217e('0x1440'))['ok'](_0x31244c['instant'](_0x28217e('0x1bca')))['cancel'](_0x31244c[_0x28217e('0x1acc')](_0x28217e('0x34f')))['targetEvent'](_0x580b91);_0x3da9e8[_0x28217e('0x28e2')](_0x5e3002)['then'](function(){const _0x29bfe6=_0x28217e;_0x3a5cb7[_0x29bfe6('0xa67')]['delete']({'id':_0x1f3285[_0x29bfe6('0x1363')]['id']})[_0x29bfe6('0x1af5')][_0x29bfe6('0x17e7')](function(){const _0x3c6b28=_0x29bfe6;_0x1f3285[_0x3c6b28('0x17b2')]=_0x49cbdd()['filter'](_0x1f3285[_0x3c6b28('0x17b2')],function(_0x16afc0){const _0x3e96b5=_0x3c6b28;return _0x16afc0['id']!==_0x1f3285[_0x3e96b5('0x1363')]['id'];}),_0x5bf9d9[_0x3c6b28('0x130d')]({'title':_0x31244c[_0x3c6b28('0x1acc')](_0x3c6b28('0x12d9'))}),_0x4f7e6a(_0x1f3285[_0x3c6b28('0x17b2')]);})[_0x29bfe6('0x16df')](function(_0x17f74f){const _0x143d37=_0x29bfe6;if(_0x17f74f[_0x143d37('0x1457')]&&_0x17f74f[_0x143d37('0x1457')][_0x143d37('0x73e')]&&_0x17f74f[_0x143d37('0x1457')][_0x143d37('0x73e')]['length']){_0x1f3285[_0x143d37('0x73e')]=_0x17f74f[_0x143d37('0x1457')][_0x143d37('0x73e')]||[{'message':_0x17f74f[_0x143d37('0x9b6')](),'type':_0x143d37('0x1df')}];for(let _0x1a8a46=0x0;_0x1a8a46<_0x17f74f[_0x143d37('0x1457')][_0x143d37('0x73e')]['length'];_0x1a8a46++){_0x5bf9d9[_0x143d37('0x1db9')]({'title':_0x17f74f[_0x143d37('0x1457')][_0x143d37('0x73e')][_0x1a8a46][_0x143d37('0x412')],'msg':_0x17f74f['data'][_0x143d37('0x73e')][_0x1a8a46][_0x143d37('0x1603')]});}}else _0x5bf9d9[_0x143d37('0x1db9')]({'title':_0x17f74f[_0x143d37('0x11c5')]?_0x143d37('0x14f7')+_0x17f74f[_0x143d37('0x11c5')]+_0x143d37('0x16e4')+_0x17f74f[_0x143d37('0x1833')]:_0x143d37('0x1df'),'msg':_0x17f74f[_0x143d37('0x1457')]?JSON[_0x143d37('0x678')](_0x17f74f[_0x143d37('0x1457')][_0x143d37('0x1603')]):_0x17f74f[_0x143d37('0x1603')]||_0x17f74f[_0x143d37('0x9b6')]()});});},function(){});}function _0x4f7e6a(_0x411cd5){const _0x4e6ebb=_0xf95da1;_0x3da9e8[_0x4e6ebb('0x212a')](_0x411cd5);}}const _0x1889e1=_0x3feeee;_0x253a15[_0x4376d8('0x1b9c')]=['$state',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1c8d'),_0x4376d8('0x383')];function _0x253a15(_0x42d4b5,_0x3517fa,_0x2bd830,_0x303f46,_0xda501c,_0x4662e9,_0x2b63da,_0x41717b,_0x15c262){const _0x1ad7e6=_0x4376d8,_0x5141b9=this;_0x5141b9[_0x1ad7e6('0x197c')]=_0x2b63da[_0x1ad7e6('0x2831')](),_0x5141b9[_0x1ad7e6('0x1d11')]=_0x2bd830,_0x5141b9[_0x1ad7e6('0x1aeb')]=_0x303f46,_0x5141b9[_0x1ad7e6('0x1c8d')]=_0x41717b||_0x42d4b5['params'][_0x1ad7e6('0x1c8d')]||{},_0x5141b9[_0x1ad7e6('0xde7')]=_0x42d4b5['params'][_0x1ad7e6('0x1523')]||0x0;_0x42d4b5[_0x1ad7e6('0x16fb')][_0x1ad7e6('0x103e')]?_0x5141b9['crudPermissions']=_0x42d4b5[_0x1ad7e6('0x16fb')][_0x1ad7e6('0x103e')]:(_0x5141b9[_0x1ad7e6('0x383')]=_0x15c262&&_0x15c262['count']==0x1?_0x15c262[_0x1ad7e6('0x2319')][0x0]:null,_0x5141b9[_0x1ad7e6('0x103e')]=_0x2b63da[_0x1ad7e6('0x17a9')](_0x5141b9[_0x1ad7e6('0x383')]?_0x5141b9[_0x1ad7e6('0x383')][_0x1ad7e6('0x103e')]:null));_0x5141b9[_0x1ad7e6('0x72d')]=_0x12e30f,_0x5141b9['saveTrigger']=_0x5ce063;function _0x12e30f(){const _0x385af8=_0x1ad7e6;_0x42d4b5['go'](_0x385af8('0x2065'),{},{'reload':'app.tools.triggers'});}function _0x5ce063(){const _0x56be58=_0x1ad7e6;_0xda501c[_0x56be58('0x1c8d')][_0x56be58('0x27ba')]({'id':_0x5141b9[_0x56be58('0x1c8d')]['id']},_0x5141b9[_0x56be58('0x1c8d')])[_0x56be58('0x1af5')][_0x56be58('0x17e7')](function(){const _0x1170bc=_0x56be58;_0x4662e9['success']({'title':_0x3517fa[_0x1170bc('0x1acc')]('TOOLS.NOTIFICATIONS.TRIGGER_SAVED_SUCCESS_TITLE')});})[_0x56be58('0x16df')](function(_0x572061){const _0x299c8f=_0x56be58;_0x4662e9['error']({'title':_0x572061[_0x299c8f('0x11c5')]?_0x299c8f('0x14f7')+_0x572061[_0x299c8f('0x11c5')]+_0x299c8f('0x16e4')+_0x572061['statusText']:_0x299c8f('0x138a'),'msg':_0x572061[_0x299c8f('0x1457')]?JSON['stringify'](_0x572061[_0x299c8f('0x1457')]):_0x572061[_0x299c8f('0x9b6')]()});});}}const _0x3990fe=_0x253a15,_0x2b7c43=_0x4cf2bc['p']+_0x4376d8('0x905');_0x5bc717['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),'$translate',_0x4376d8('0x1133'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),'toasty','Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x5bc717(_0x2f30a4,_0x5e66ef,_0x36ef34,_0xbd356b,_0x1de2d6,_0x303a7f,_0x5392da,_0x1efdfa,_0xcef998,_0x4a9f48,_0x46b2ab,_0x2f9e45,_0xe9e95a,_0x4bfcfd){const _0x262737=_0x4376d8,_0x4c16eb=this;_0x4c16eb['license']=_0xe9e95a,_0x4c16eb[_0x262737('0x1aeb')]=_0x4bfcfd,_0x4c16eb[_0x262737('0x197c')]=_0x2f9e45[_0x262737('0x2831')](),_0x4c16eb[_0x262737('0x1133')]=_0x5392da||{'count':0x0,'rows':[]},_0x4c16eb[_0x262737('0xdeb')]=_0x1efdfa,_0x4c16eb['userProfileSection']=_0xcef998&&_0xcef998[_0x262737('0x335')]==0x1?_0xcef998[_0x262737('0x2319')][0x0]:null,_0x4c16eb['crudPermissions']=_0x2f9e45['parseCrudPermissions'](_0x4c16eb['userProfileSection']?_0x4c16eb[_0x262737('0x383')]['crudPermissions']:null),_0x4c16eb[_0x262737('0x159d')]=[],_0x4c16eb[_0x262737('0x826')]={'fields':_0x262737('0x2fd'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x4c16eb[_0x262737('0x1e7f')]=_0x17cadf,_0x4c16eb['createOrEditTrigger']=_0x24087f,_0x4c16eb['success']=_0x4de043,_0x4c16eb[_0x262737('0xdce')]=_0x405d3f,_0x4c16eb['deleteconfirm']=_0x301426,_0x4c16eb[_0x262737('0xdf6')]=_0x4889dc,_0x4c16eb['deleteSelectedTriggers']=_0x43baa3,_0x4c16eb[_0x262737('0x116f')]=_0x53cc07,_0x4c16eb[_0x262737('0x139a')]=_0x4741f0;function _0x17cadf(_0x5f403c){const _0x12151=_0x262737;_0x5e66ef['go'](_0x12151('0xb30'),{'id':_0x5f403c['id'],'trigger':_0x5f403c,'crudPermissions':_0x4c16eb[_0x12151('0x103e')]});}function _0x24087f(_0x34ee9a,_0x2ceec5){const _0x2e8a2e=_0x262737;if(_0x4c16eb[_0x2e8a2e('0x103e')][_0x2e8a2e('0x1fc2')]||_0x4c16eb[_0x2e8a2e('0x103e')]['canDelete']&&!_0x4c16eb[_0x2e8a2e('0x103e')][_0x2e8a2e('0x1d34')]){_0x17cadf(_0x2ceec5);return;}_0x36ef34['show']({'controller':'CreateOrEditTriggerDialogController','controllerAs':'vm','templateUrl':_0x2b7c43,'parent':angular[_0x2e8a2e('0x1ce1')](_0xbd356b[_0x2e8a2e('0x13aa')]),'targetEvent':_0x34ee9a,'clickOutsideToClose':!![],'locals':{'trigger':_0x2ceec5,'triggers':_0x4c16eb[_0x2e8a2e('0x1133')][_0x2e8a2e('0x2319')],'license':_0x4c16eb['license'],'setting':_0x4c16eb[_0x2e8a2e('0x1aeb')],'crudPermissions':_0x4c16eb[_0x2e8a2e('0x103e')]}})[_0x2e8a2e('0x17e7')](function(_0x367c1c){const _0x9d26af=_0x2e8a2e;_0x367c1c&&(_0x4c16eb[_0x9d26af('0x1133')]={'count':_0x367c1c[_0x9d26af('0x1f73')],'rows':_0x367c1c});});}function _0x4de043(_0x2d00cd){const _0x3f686c=_0x262737;_0x4c16eb[_0x3f686c('0x1133')]=_0x2d00cd||{'count':0x0,'rows':[]};}function _0x405d3f(){const _0x5d21ff=_0x262737;_0x4c16eb[_0x5d21ff('0x826')][_0x5d21ff('0xf19')]=(_0x4c16eb[_0x5d21ff('0x826')]['page']-0x1)*_0x4c16eb[_0x5d21ff('0x826')][_0x5d21ff('0x193b')],_0x2f9e45[_0x5d21ff('0xea2')]()?_0x4c16eb['promise']=_0x4a9f48['trigger'][_0x5d21ff('0x1c53')](_0x4c16eb[_0x5d21ff('0x826')],_0x4de043)['$promise']:(_0x4c16eb[_0x5d21ff('0x826')]['id']=_0x4c16eb[_0x5d21ff('0xdeb')]['id'],_0x4c16eb[_0x5d21ff('0x826')][_0x5d21ff('0x16f8')]='Triggers',_0x4c16eb['promise']=_0x4a9f48[_0x5d21ff('0xdeb')][_0x5d21ff('0x2447')](_0x4c16eb[_0x5d21ff('0x826')],_0x4de043)[_0x5d21ff('0x1af5')]);}function _0x301426(_0x151bc5,_0x2905be){const _0x3069fd=_0x262737,_0x47f498=_0x36ef34[_0x3069fd('0x1121')]()['title'](_0x303a7f[_0x3069fd('0x1acc')](_0x3069fd('0x2453')))[_0x3069fd('0xd5')](_0x303a7f[_0x3069fd('0x1acc')]('TOOLS.NOTIFICATIONS.TRIGGER_DELETE_MESSAGE',{'name':_0x151bc5[_0x3069fd('0x2aa')]}))['ariaLabel'](_0x3069fd('0x2444'))[_0x3069fd('0x104f')](_0x2905be)['ok']('OK')['cancel'](_0x303a7f[_0x3069fd('0x1acc')](_0x3069fd('0x34f')));_0x36ef34['show'](_0x47f498)[_0x3069fd('0x17e7')](function(){_0x22f6fe(_0x151bc5,!![]);});}function _0x22f6fe(_0x183e0e,_0x1f189f){const _0x450332=_0x262737;_0x4a9f48[_0x450332('0x1c8d')][_0x450332('0x1da6')]({'id':_0x183e0e['id']})[_0x450332('0x1af5')]['then'](function(){const _0x331281=_0x450332;_0x405d3f(),_0x1f189f&&_0x46b2ab[_0x331281('0x130d')]({'title':_0x303a7f[_0x331281('0x1acc')](_0x331281('0x2696'))});})['catch'](function(_0x442403){const _0x355439=_0x450332;if(_0x442403[_0x355439('0x1457')]&&_0x442403[_0x355439('0x1457')][_0x355439('0x73e')]&&_0x442403[_0x355439('0x1457')]['errors']['length']){_0x4c16eb[_0x355439('0x73e')]=_0x442403[_0x355439('0x1457')][_0x355439('0x73e')]||[{'message':_0x442403[_0x355439('0x9b6')](),'type':'SYSTEM:DELETEtrigger'}];for(let _0x40e3be=0x0;_0x40e3be<_0x442403[_0x355439('0x1457')][_0x355439('0x73e')][_0x355439('0x1f73')];_0x40e3be++){_0x46b2ab[_0x355439('0x1db9')]({'title':_0x442403[_0x355439('0x1457')][_0x355439('0x73e')][_0x40e3be][_0x355439('0x412')],'msg':_0x442403[_0x355439('0x1457')]['errors'][_0x40e3be][_0x355439('0x1603')]});}}else _0x46b2ab[_0x355439('0x1db9')]({'title':_0x442403[_0x355439('0x11c5')]?_0x355439('0x14f7')+_0x442403[_0x355439('0x11c5')]+_0x355439('0x16e4')+_0x442403[_0x355439('0x1833')]:_0x355439('0x25c2'),'msg':_0x442403[_0x355439('0x1457')]?JSON[_0x355439('0x678')](_0x442403[_0x355439('0x1457')][_0x355439('0x1603')]):_0x442403[_0x355439('0x1603')]||_0x442403[_0x355439('0x9b6')]()});});}function _0x4889dc(){const _0x587412=_0x262737,_0x16a5f4=angular[_0x587412('0x14e5')](_0x4c16eb[_0x587412('0x159d')]);return _0x4c16eb[_0x587412('0x159d')]=[],_0x16a5f4;}function _0x43baa3(_0x439e50){const _0x16f48b=_0x262737,_0x3118a6=_0x36ef34[_0x16f48b('0x1121')]()[_0x16f48b('0x24d3')](_0x303a7f['instant'](_0x16f48b('0x888')))[_0x16f48b('0xd5')](_0x303a7f[_0x16f48b('0x1acc')](_0x16f48b('0x11b5'),{'total':_0x4c16eb['selectedTriggers'][_0x16f48b('0x1f73')]}))[_0x16f48b('0x2095')](_0x16f48b('0x192d'))['targetEvent'](_0x439e50)['ok']('OK')[_0x16f48b('0x1d47')](_0x303a7f[_0x16f48b('0x1acc')](_0x16f48b('0x34f')));_0x36ef34['show'](_0x3118a6)[_0x16f48b('0x17e7')](function(){const _0x1b3ca4=_0x16f48b;_0x4c16eb[_0x1b3ca4('0x159d')][_0x1b3ca4('0xccd')](function(_0x38bd63){_0x22f6fe(_0x38bd63);}),_0x4c16eb[_0x1b3ca4('0x159d')]=[],_0x46b2ab[_0x1b3ca4('0x130d')]({'title':_0x303a7f['instant'](_0x1b3ca4('0x359'))});});}function _0x53cc07(){const _0x1dc260=_0x262737;_0x4c16eb[_0x1dc260('0x159d')]=[];}function _0x4741f0(){const _0x1e8897=_0x262737;_0x4c16eb[_0x1e8897('0x159d')]=_0x4c16eb[_0x1e8897('0x1133')][_0x1e8897('0x2319')];}let _0x4928b1=!![],_0x23e776=0x1;_0x2f30a4[_0x262737('0x620')](_0x262737('0x3ed'),function(_0x23af50,_0x1e168a){const _0x3b7a8a=_0x262737;_0x4928b1?_0x1de2d6(function(){_0x4928b1=![];}):(!_0x1e168a&&(_0x23e776=_0x4c16eb[_0x3b7a8a('0x826')][_0x3b7a8a('0x115a')]),_0x23af50!==_0x1e168a&&(_0x4c16eb[_0x3b7a8a('0x826')]['page']=0x1),!_0x23af50&&(_0x4c16eb['query'][_0x3b7a8a('0x115a')]=_0x23e776),_0x405d3f());});}const _0x3d368a=_0x5bc717;_0x5e2505['$inject']=[_0x4376d8('0x183a')];function _0x5e2505(_0x49de62){const _0x1529ab=_0x4376d8;_0x49de62['state']('app.tools.triggers',{'url':_0x1529ab('0x1d24'),'views':{'content@app':{'templateUrl':_0x1679bf,'controller':_0x1529ab('0x112')}},'resolve':{'triggers':['apiResolver',_0x1529ab('0x1885'),function(_0x3e55df,_0x50f4c7){const _0x1c9b04=_0x1529ab;return _0x50f4c7[_0x1c9b04('0x1ba2')](_0x1c9b04('0x20bf'))?_0x3e55df[_0x1c9b04('0x898')](_0x1c9b04('0x107'),{'fields':_0x1c9b04('0x1f88'),'sort':_0x1c9b04('0x1ac6'),'limit':0xa,'offset':0x0}):_0x3e55df[_0x1c9b04('0x898')](_0x1c9b04('0x1164'),{'id':_0x50f4c7[_0x1c9b04('0x2831')]()[_0x1c9b04('0x1e76')],'section':_0x1c9b04('0x2019'),'fields':_0x1c9b04('0x1f88'),'sort':_0x1c9b04('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x1529ab('0x1885'),function(_0x182622,_0x11dca3){const _0x1428cd=_0x1529ab;return _0x11dca3[_0x1428cd('0x1ba2')](_0x1428cd('0x20bf'))?null:_0x182622[_0x1428cd('0x898')](_0x1428cd('0x235d'),{'fields':_0x1428cd('0x8d3'),'id':_0x11dca3['getCurrentUser']()[_0x1428cd('0x1e76')]});}],'userProfileSection':[_0x1529ab('0x177'),_0x1529ab('0x1885'),function(_0xf3ad50,_0x19c9d0){const _0x14f03f=_0x1529ab;return _0x19c9d0[_0x14f03f('0x1ba2')](_0x14f03f('0x20bf'))?null:_0xf3ad50[_0x14f03f('0x898')]('userProfileSection@get',{'fields':_0x14f03f('0x1134'),'userProfileId':_0x19c9d0[_0x14f03f('0x2831')]()[_0x14f03f('0x1e76')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':'tools'})[_0x1529ab('0x1b9a')](_0x1529ab('0xb30'),{'url':_0x1529ab('0x2370'),'params':{'trigger':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x289e24,'controller':'TriggerController\x20as\x20vm'}},'resolve':{'trigger':[_0x1529ab('0x177'),_0x1529ab('0x118b'),function(_0x526755,_0x506024){const _0x4110e1=_0x1529ab;return _0x526755[_0x4110e1('0x898')]('trigger@get',{'fields':_0x4110e1('0x1f88'),'id':_0x506024['id']});}],'userProfileSection':[_0x1529ab('0x177'),_0x1529ab('0x1885'),function(_0x3c6b37,_0x380204){const _0x498d20=_0x1529ab;return _0x3c6b37[_0x498d20('0x898')]('userProfileSection@get',{'fields':_0x498d20('0x1134'),'userProfileId':_0x380204['getCurrentUser']()[_0x498d20('0x1e76')],'sectionId':0x3f2});}]},'authenticate':!![],'permissionId':0x3f2,'bodyClass':_0x1529ab('0x238f')});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x2065'),[])[_0x4376d8('0x1980')](_0x5e2505)[_0x4376d8('0x5ce')](_0x4376d8('0x1c89'),_0x24b43f)[_0x4376d8('0x5ce')](_0x4376d8('0x80d'),_0x4c4aea)['controller'](_0x4376d8('0x2571'),_0x1a3b94)['controller']('TriggerAllConditionsController',_0x4214ad)[_0x4376d8('0x5ce')](_0x4376d8('0x1191'),_0x52578f)[_0x4376d8('0x5ce')](_0x4376d8('0x1f9'),_0x10461d)[_0x4376d8('0x5ce')](_0x4376d8('0x257f'),_0x1889e1)[_0x4376d8('0x5ce')](_0x4376d8('0x453'),_0x3990fe)['controller'](_0x4376d8('0x1433'),_0x3d368a);const _0x1f2d4b=_0x4cf2bc['p']+_0x4376d8('0x1c26'),_0x37ff5d=_0x4cf2bc['p']+_0x4376d8('0x1755'),_0x526dcb=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/customDashboards/edit/view.html/view.html',_0x12c6bb=_0x4cf2bc['p']+_0x4376d8('0x1938'),_0x4af79a=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/intervals/edit/view.html/view.html',_0x56c94c=_0x4cf2bc['p']+_0x4376d8('0x1f2'),_0x666c91=_0x4cf2bc['p']+_0x4376d8('0x1908'),_0x48d72d=_0x4cf2bc['p']+_0x4376d8('0x1ed0'),_0x54eddf=_0x4cf2bc['p']+_0x4376d8('0x17f9'),_0x35fb1d=_0x4cf2bc['p']+_0x4376d8('0x94a'),_0x80022=_0x4cf2bc['p']+_0x4376d8('0x1e53'),_0x42021a=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/trunks/edit/view.html/view.html',_0x143a0b=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/variables/variables.html/variables.html',_0x322292=_0x4cf2bc['p']+_0x4376d8('0x1ac1');_0x1d490e[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0xe8f'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),'toasty','Auth','license','setting'];function _0x1d490e(_0x46f655,_0x31ac1d,_0x549b1a,_0x6e54f8,_0x4e2a21,_0x6de2bb,_0x458f98,_0x3f542a,_0x49c62f,_0x2abe0a,_0x528f2,_0x296d78,_0x1ffb5b,_0x53780a,_0xf59ddb,_0x18d3bd,_0x427ef7){const _0x252b4d=_0x4376d8,_0x4ec949=this;_0x4ec949[_0x252b4d('0x1d11')]=_0x18d3bd,_0x4ec949[_0x252b4d('0x1aeb')]=_0x427ef7,_0x4ec949['currentUser']=_0xf59ddb[_0x252b4d('0x2831')](),_0x4ec949[_0x252b4d('0xe8f')]=_0x49c62f||{'count':0x0,'rows':[]},_0x4ec949[_0x252b4d('0xdeb')]=_0x2abe0a,_0x4ec949[_0x252b4d('0x383')]=_0x528f2&&_0x528f2[_0x252b4d('0x335')]==0x1?_0x528f2[_0x252b4d('0x2319')][0x0]:null,_0x4ec949[_0x252b4d('0x103e')]=_0xf59ddb[_0x252b4d('0x17a9')](_0x4ec949[_0x252b4d('0x383')]?_0x4ec949[_0x252b4d('0x383')]['crudPermissions']:null),_0x4ec949[_0x252b4d('0x23c3')]=_0x252b4d('0xe8f'),_0x4ec949[_0x252b4d('0x26a1')]='',_0x4ec949['listOrderAsc']=null,_0x4ec949['selectedCannedAnswers']=[],_0x4ec949[_0x252b4d('0x826')]={'fields':_0x252b4d('0xcfb'),'sort':'-updatedAt','MailAccountId':_0x252b4d('0x9bb'),'FaxAccountId':_0x252b4d('0x9bb'),'SmsAccountId':_0x252b4d('0x9bb'),'OpenchannelAccountId':_0x252b4d('0x9bb'),'ChatWebsiteId':_0x252b4d('0x9bb'),'limit':0xa,'page':0x1},_0x4ec949[_0x252b4d('0xb32')]=_0x1ed285,_0x4ec949[_0x252b4d('0xbf4')]=_0x4714a9,_0x4ec949[_0x252b4d('0x130d')]=_0xabd3af,_0x4ec949[_0x252b4d('0x2145')]=_0xa802d9,_0x4ec949[_0x252b4d('0x40e')]=_0x5661e1,_0x4ec949['deleteCannedAnswer']=_0x18311b,_0x4ec949['exportSelectedCannedAnswers']=_0x126203,_0x4ec949['deleteSelectedCannedAnswers']=_0x439b4a,_0x4ec949[_0x252b4d('0xe78')]=_0x11fafd,_0x4ec949['selectAllCannedAnswers']=_0x1d1c5b;function _0x1ed285(_0x172e48,_0x2cd0eb){const _0x5e8714=_0x252b4d;_0x4e2a21[_0x5e8714('0x28e2')]({'controller':_0x5e8714('0x182e'),'controllerAs':'vm','templateUrl':_0x322292,'parent':angular['element'](_0x6de2bb[_0x5e8714('0x13aa')]),'targetEvent':_0x2cd0eb,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x172e48,'cannedAnswers':_0x4ec949['cannedAnswers'][_0x5e8714('0x2319')],'license':_0x4ec949[_0x5e8714('0x1d11')],'setting':null,'crudPermissions':_0x4ec949['crudPermissions']}});}function _0x4714a9(_0x670b71,_0x1181e5){const _0x40e1c2=_0x252b4d,_0x4f79fc=_0x4e2a21[_0x40e1c2('0x1121')]()[_0x40e1c2('0x24d3')](_0x40e1c2('0x5e1')+_0x49cbdd()[_0x40e1c2('0x1c98')](_0x40e1c2('0x2043'))+'?')[_0x40e1c2('0x211f')](_0x40e1c2('0xa53')+(_0x670b71['name']||'cannedAnswer')+_0x40e1c2('0x1d23')+_0x40e1c2('0xe9f'))[_0x40e1c2('0x2095')](_0x40e1c2('0x1694'))[_0x40e1c2('0x104f')](_0x1181e5)['ok']('OK')[_0x40e1c2('0x1d47')]('CANCEL');_0x4e2a21[_0x40e1c2('0x28e2')](_0x4f79fc)['then'](function(){_0x18311b(_0x670b71);},function(){const _0x4e3200=_0x40e1c2;console[_0x4e3200('0x1d63')](_0x4e3200('0x28a0'));});}let _0x211f7b=!![],_0x6b5b7d=0x1;_0x46f655[_0x252b4d('0x620')]('vm.query.filter',function(_0x521b3b,_0x2a0869){const _0x518e27=_0x252b4d;_0x211f7b?_0x458f98(function(){_0x211f7b=![];}):(!_0x2a0869&&(_0x6b5b7d=_0x4ec949['query']['page']),_0x521b3b!==_0x2a0869&&(_0x4ec949[_0x518e27('0x826')][_0x518e27('0x115a')]=0x1),!_0x521b3b&&(_0x4ec949[_0x518e27('0x826')][_0x518e27('0x115a')]=_0x6b5b7d),_0x4ec949[_0x518e27('0x2145')]());});function _0xabd3af(_0x13cbcc){const _0x227ceb=_0x252b4d;_0x4ec949[_0x227ceb('0xe8f')]=_0x13cbcc||{'count':0x0,'rows':[]};}function _0xa802d9(){const _0x4674c8=_0x252b4d;_0x4ec949[_0x4674c8('0x826')]['offset']=(_0x4ec949[_0x4674c8('0x826')][_0x4674c8('0x115a')]-0x1)*_0x4ec949[_0x4674c8('0x826')]['limit'],_0xf59ddb[_0x4674c8('0x1ba2')]('admin')?_0x4ec949['promise']=_0x296d78[_0x4674c8('0x2043')][_0x4674c8('0x1c53')](_0x4ec949[_0x4674c8('0x826')],_0xabd3af)[_0x4674c8('0x1af5')]:(_0x4ec949['query']['id']=_0x4ec949[_0x4674c8('0xdeb')]['id'],_0x4ec949[_0x4674c8('0x826')][_0x4674c8('0x16f8')]=_0x4674c8('0x204f'),_0x4ec949[_0x4674c8('0x1691')]=_0x296d78['userProfile'][_0x4674c8('0x2447')](_0x4ec949[_0x4674c8('0x826')],_0xabd3af)[_0x4674c8('0x1af5')]);}function _0x5661e1(_0x18d59e,_0x98cb05){const _0xf023e5=_0x252b4d;_0x4e2a21[_0xf023e5('0x28e2')]({'controller':_0xf023e5('0x182e'),'controllerAs':'vm','templateUrl':_0x322292,'parent':angular['element'](_0x6de2bb[_0xf023e5('0x13aa')]),'targetEvent':_0x18d59e,'clickOutsideToClose':!![],'locals':{'cannedAnswer':_0x98cb05,'cannedAnswers':_0x4ec949[_0xf023e5('0xe8f')][_0xf023e5('0x2319')],'license':_0x4ec949[_0xf023e5('0x1d11')],'setting':_0x4ec949['setting'],'crudPermissions':_0x4ec949[_0xf023e5('0x103e')]}});}function _0x18311b(_0x37872a){const _0x1d2554=_0x252b4d;_0x296d78[_0x1d2554('0x2043')][_0x1d2554('0x1da6')]({'id':_0x37872a['id']})[_0x1d2554('0x1af5')][_0x1d2554('0x17e7')](function(){const _0x5a31a1=_0x1d2554;_0x49cbdd()[_0x5a31a1('0x5f3')](_0x4ec949[_0x5a31a1('0xe8f')][_0x5a31a1('0x2319')],{'id':_0x37872a['id']}),_0x4ec949[_0x5a31a1('0xe8f')][_0x5a31a1('0x335')]-=0x1,!_0x4ec949['cannedAnswers'][_0x5a31a1('0x2319')][_0x5a31a1('0x1f73')]&&_0x4ec949[_0x5a31a1('0x2145')](),_0x53780a[_0x5a31a1('0x130d')]({'title':_0x49cbdd()[_0x5a31a1('0x1c98')](_0x5a31a1('0x1bad'))+_0x5a31a1('0x2673'),'msg':_0x37872a[_0x5a31a1('0x2aa')]?_0x37872a[_0x5a31a1('0x2aa')]+_0x5a31a1('0x149f'):''});})[_0x1d2554('0x16df')](function(_0x1ff193){const _0x24529e=_0x1d2554;if(_0x1ff193['data']&&_0x1ff193[_0x24529e('0x1457')][_0x24529e('0x73e')]&&_0x1ff193[_0x24529e('0x1457')][_0x24529e('0x73e')][_0x24529e('0x1f73')]){_0x4ec949[_0x24529e('0x73e')]=_0x1ff193[_0x24529e('0x1457')][_0x24529e('0x73e')]||[{'message':_0x1ff193[_0x24529e('0x9b6')](),'type':'SYSTEM:DELETEcannedAnswer'}];for(let _0x157ff7=0x0;_0x157ff7<_0x1ff193[_0x24529e('0x1457')][_0x24529e('0x73e')][_0x24529e('0x1f73')];_0x157ff7++){_0x53780a[_0x24529e('0x1db9')]({'title':_0x1ff193[_0x24529e('0x1457')]['errors'][_0x157ff7]['type'],'msg':_0x1ff193['data'][_0x24529e('0x73e')][_0x157ff7]['message']});}}else _0x53780a['error']({'title':_0x1ff193[_0x24529e('0x11c5')]?_0x24529e('0x14f7')+_0x1ff193[_0x24529e('0x11c5')]+_0x24529e('0x16e4')+_0x1ff193['statusText']:'SYSTEM:DELETEcannedAnswer','msg':_0x1ff193['data']?JSON[_0x24529e('0x678')](_0x1ff193['data'][_0x24529e('0x1603')]):_0x1ff193['message']||_0x1ff193[_0x24529e('0x9b6')]()});});}function _0x126203(){const _0x245263=_0x252b4d,_0x2957e5=angular['copy'](_0x4ec949[_0x245263('0x269d')]);return _0x4ec949[_0x245263('0x269d')]=[],_0x2957e5;}function _0x439b4a(_0x3bc337){const _0x38e71b=_0x252b4d,_0x308878=_0x4e2a21[_0x38e71b('0x1121')]()[_0x38e71b('0x24d3')](_0x38e71b('0x535'))[_0x38e71b('0x211f')](_0x38e71b('0xa53')+_0x4ec949['selectedCannedAnswers'][_0x38e71b('0x1f73')]+_0x38e71b('0x145a')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x38e71b('0xa3c'))[_0x38e71b('0x104f')](_0x3bc337)['ok']('OK')['cancel'](_0x38e71b('0x28a0'));_0x4e2a21[_0x38e71b('0x28e2')](_0x308878)[_0x38e71b('0x17e7')](function(){const _0x4ee670=_0x38e71b;_0x4ec949['selectedCannedAnswers']['forEach'](function(_0x24c84a){_0x18311b(_0x24c84a);}),_0x4ec949[_0x4ee670('0x269d')]=[];});}function _0x11fafd(){const _0x57c349=_0x252b4d;_0x4ec949[_0x57c349('0x269d')]=[];}function _0x1d1c5b(){const _0x206a7d=_0x252b4d;_0x4ec949[_0x206a7d('0x269d')]=_0x4ec949['cannedAnswers'][_0x206a7d('0x2319')];}}const _0x4fbf1c=_0x1d490e;_0x1e0204['$inject']=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0xe8f'),_0x4376d8('0x2043'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x1e0204(_0x1a87ed,_0x55744b,_0xf433a5,_0x390ebd,_0x37a5aa,_0x857a34,_0x3e0bfd,_0x38bde4,_0x4d1221,_0x10a5a6,_0x5b7329,_0x209df9,_0x3c4ad2,_0x5049b5){const _0x32ea79=_0x4376d8,_0xc481ba=this;_0xc481ba['currentUser']=_0x5b7329[_0x32ea79('0x2831')](),_0xc481ba[_0x32ea79('0x73e')]=[],_0xc481ba['setting']=_0x3c4ad2,_0xc481ba[_0x32ea79('0x1d11')]=_0x209df9,_0xc481ba[_0x32ea79('0x103e')]=_0x5049b5,_0xc481ba[_0x32ea79('0x6ee')]={},_0xc481ba[_0x32ea79('0x1572')]=_0xc481ba[_0x32ea79('0x1aeb')]&&_0xc481ba[_0x32ea79('0x1aeb')][_0x32ea79('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xc481ba[_0x32ea79('0x24d3')]=_0x32ea79('0x13b5'),_0xc481ba['cannedAnswer']=angular['copy'](_0x4d1221),_0xc481ba[_0x32ea79('0xe8f')]=_0x38bde4,_0xc481ba[_0x32ea79('0x176e')]=![];!_0xc481ba[_0x32ea79('0x2043')]&&(_0xc481ba[_0x32ea79('0x2043')]={},_0xc481ba['title']=_0x32ea79('0x2665'),_0xc481ba['newCannedAnswer']=!![]);_0xc481ba[_0x32ea79('0xb66')]=_0x303b5b,_0xc481ba['saveCannedAnswer']=_0x26d388,_0xc481ba[_0x32ea79('0x25de')]=_0x4eb944,_0xc481ba[_0x32ea79('0x1300')]=_0xd3cc00,_0xc481ba[_0x32ea79('0x136e')]=_0x29183b;function _0x303b5b(){const _0x595949=_0x32ea79;_0xc481ba[_0x595949('0x73e')]=[],_0x10a5a6['cannedAnswer']['save'](_0xc481ba['cannedAnswer'])[_0x595949('0x1af5')][_0x595949('0x17e7')](function(_0x5b0c7e){const _0x29d109=_0x595949;_0xc481ba[_0x29d109('0xe8f')]['unshift'](_0x5b0c7e[_0x29d109('0x16b2')]()),_0x3e0bfd[_0x29d109('0x130d')]({'title':'CannedAnswer\x20properly\x20created','msg':_0xc481ba['cannedAnswer']['name']?_0xc481ba[_0x29d109('0x2043')][_0x29d109('0x2aa')]+_0x29d109('0x15a'):''}),_0x29183b(_0x5b0c7e);})[_0x595949('0x16df')](function(_0x3d842f){const _0x4b1cd5=_0x595949;if(_0x3d842f[_0x4b1cd5('0x1457')]&&_0x3d842f['data'][_0x4b1cd5('0x73e')]&&_0x3d842f[_0x4b1cd5('0x1457')][_0x4b1cd5('0x73e')][_0x4b1cd5('0x1f73')]){_0xc481ba['errors']=_0x3d842f[_0x4b1cd5('0x1457')]['errors']||[{'message':_0x3d842f[_0x4b1cd5('0x9b6')](),'type':_0x4b1cd5('0x258e')}];for(let _0x6b6a67=0x0;_0x6b6a67<_0x3d842f[_0x4b1cd5('0x1457')]['errors'][_0x4b1cd5('0x1f73')];_0x6b6a67+=0x1){_0x3e0bfd['error']({'title':_0x3d842f[_0x4b1cd5('0x1457')][_0x4b1cd5('0x73e')][_0x6b6a67][_0x4b1cd5('0x412')],'msg':_0x3d842f[_0x4b1cd5('0x1457')]['errors'][_0x6b6a67]['message']});}}else _0x3e0bfd[_0x4b1cd5('0x1db9')]({'title':_0x3d842f[_0x4b1cd5('0x11c5')]?_0x4b1cd5('0x14f7')+_0x3d842f[_0x4b1cd5('0x11c5')]+_0x4b1cd5('0x16e4')+_0x3d842f[_0x4b1cd5('0x1833')]:_0x4b1cd5('0x258e'),'msg':_0x3d842f[_0x4b1cd5('0x1457')]?JSON[_0x4b1cd5('0x678')](_0x3d842f['data'][_0x4b1cd5('0x1603')]):_0x3d842f[_0x4b1cd5('0x9b6')]()});});}function _0x26d388(){const _0x444538=_0x32ea79;_0xc481ba[_0x444538('0x73e')]=[],_0x10a5a6['cannedAnswer'][_0x444538('0x27ba')]({'id':_0xc481ba[_0x444538('0x2043')]['id']},_0xc481ba[_0x444538('0x2043')])[_0x444538('0x1af5')][_0x444538('0x17e7')](function(_0x398de2){const _0x43dc6b=_0x444538,_0x47532c=_0x49cbdd()[_0x43dc6b('0xe8e')](_0xc481ba[_0x43dc6b('0xe8f')],{'id':_0x398de2['id']});_0x47532c&&_0x49cbdd()[_0x43dc6b('0x1ced')](_0x47532c,_0x49cbdd()['pick'](_0x398de2[_0x43dc6b('0x16b2')](),_0x49cbdd()[_0x43dc6b('0x1c0f')](_0x47532c))),_0x3e0bfd[_0x43dc6b('0x130d')]({'title':'CannedAnswer\x20properly\x20saved!','msg':_0xc481ba['cannedAnswer'][_0x43dc6b('0x2aa')]?_0xc481ba[_0x43dc6b('0x2043')][_0x43dc6b('0x2aa')]+_0x43dc6b('0x15ca'):''}),_0x29183b(_0x398de2);})[_0x444538('0x16df')](function(_0x44aa18){const _0x149a66=_0x444538;if(_0x44aa18[_0x149a66('0x1457')]&&_0x44aa18[_0x149a66('0x1457')]['errors']&&_0x44aa18[_0x149a66('0x1457')][_0x149a66('0x73e')][_0x149a66('0x1f73')]){_0xc481ba[_0x149a66('0x73e')]=_0x44aa18[_0x149a66('0x1457')][_0x149a66('0x73e')]||[{'message':_0x44aa18['toString'](),'type':_0x149a66('0x1d77')}];for(let _0x495f2d=0x0;_0x495f2d<_0x44aa18[_0x149a66('0x1457')]['errors'][_0x149a66('0x1f73')];_0x495f2d++){_0x3e0bfd[_0x149a66('0x1db9')]({'title':_0x44aa18['data']['errors'][_0x495f2d][_0x149a66('0x412')],'msg':_0x44aa18[_0x149a66('0x1457')][_0x149a66('0x73e')][_0x495f2d][_0x149a66('0x1603')]});}}else _0x3e0bfd[_0x149a66('0x1db9')]({'title':_0x44aa18[_0x149a66('0x11c5')]?_0x149a66('0x14f7')+_0x44aa18['status']+_0x149a66('0x16e4')+_0x44aa18[_0x149a66('0x1833')]:'api.cannedAnswer.update','msg':_0x44aa18[_0x149a66('0x1457')]?JSON[_0x149a66('0x678')](_0x44aa18['data'][_0x149a66('0x1603')]):_0x44aa18[_0x149a66('0x9b6')]()});});}function _0x4eb944(_0x5e9065){const _0x21f53=_0x32ea79;_0xc481ba['errors']=[];const _0x3cae97=_0x390ebd[_0x21f53('0x1121')]()[_0x21f53('0x24d3')]('Are\x20you\x20sure?')['content'](_0x21f53('0x34c'))[_0x21f53('0x2095')](_0x21f53('0x894'))['ok'](_0x21f53('0x304'))[_0x21f53('0x1d47')](_0x21f53('0x1b70'))[_0x21f53('0x104f')](_0x5e9065);_0x390ebd['show'](_0x3cae97)[_0x21f53('0x17e7')](function(){const _0x1f4c3e=_0x21f53;_0x10a5a6[_0x1f4c3e('0x2043')][_0x1f4c3e('0x1da6')]({'id':_0xc481ba[_0x1f4c3e('0x2043')]['id']})['$promise'][_0x1f4c3e('0x17e7')](function(){const _0x32348c=_0x1f4c3e;_0x49cbdd()[_0x32348c('0x5f3')](_0xc481ba['cannedAnswers'],{'id':_0xc481ba[_0x32348c('0x2043')]['id']}),_0x3e0bfd['success']({'title':_0x32348c('0x287e'),'msg':(_0xc481ba[_0x32348c('0x2043')][_0x32348c('0x2aa')]||_0x32348c('0x2043'))+_0x32348c('0x149f')}),_0x29183b(_0xc481ba[_0x32348c('0x2043')]);})[_0x1f4c3e('0x16df')](function(_0x20044e){const _0x2cdad0=_0x1f4c3e;if(_0x20044e[_0x2cdad0('0x1457')]&&_0x20044e['data'][_0x2cdad0('0x73e')]&&_0x20044e['data'][_0x2cdad0('0x73e')][_0x2cdad0('0x1f73')]){_0xc481ba[_0x2cdad0('0x73e')]=_0x20044e[_0x2cdad0('0x1457')][_0x2cdad0('0x73e')]||[{'message':_0x20044e['toString'](),'type':_0x2cdad0('0x26a7')}];for(let _0x4b02f9=0x0;_0x4b02f9<_0x20044e[_0x2cdad0('0x1457')][_0x2cdad0('0x73e')]['length'];_0x4b02f9++){_0x3e0bfd[_0x2cdad0('0x1db9')]({'title':_0x20044e[_0x2cdad0('0x1457')][_0x2cdad0('0x73e')][_0x4b02f9][_0x2cdad0('0x412')],'msg':_0x20044e[_0x2cdad0('0x1457')]['errors'][_0x4b02f9][_0x2cdad0('0x1603')]});}}else _0x3e0bfd[_0x2cdad0('0x1db9')]({'title':_0x20044e[_0x2cdad0('0x11c5')]?_0x2cdad0('0x14f7')+_0x20044e[_0x2cdad0('0x11c5')]+_0x2cdad0('0x16e4')+_0x20044e[_0x2cdad0('0x1833')]:_0x2cdad0('0x26a7'),'msg':_0x20044e[_0x2cdad0('0x1457')]?JSON[_0x2cdad0('0x678')](_0x20044e[_0x2cdad0('0x1457')]['message']):_0x20044e[_0x2cdad0('0x1603')]||_0x20044e[_0x2cdad0('0x9b6')]()});});},function(){});}function _0xd3cc00(_0x469792){return _0x469792===null?undefined:new Date(_0x469792);}function _0x29183b(_0x27620a){const _0x2f1046=_0x32ea79;_0x390ebd[_0x2f1046('0x212a')](_0x27620a);}}const _0x59f0ac=_0x1e0204;_0x394387[_0x4376d8('0x1b9c')]=['$scope','$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x10ca'),_0x4376d8('0x282f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x394387(_0x26e871,_0x37883f,_0x30bee0,_0x11ea19,_0x3edff4,_0x134196,_0x1594c3,_0x1713c7,_0x36d127,_0x228774,_0xa898c2,_0x2c0825,_0x84611f,_0x10ac10){const _0x4cab16=_0x4376d8,_0x584396=this;_0x584396['currentUser']=_0xa898c2['getCurrentUser'](),_0x584396['errors']=[],_0x584396[_0x4cab16('0x1aeb')]=_0x84611f,_0x584396[_0x4cab16('0x1d11')]=_0x2c0825,_0x584396[_0x4cab16('0x103e')]=_0x10ac10,_0x584396[_0x4cab16('0x6ee')]={},_0x584396[_0x4cab16('0x1572')]=_0x584396[_0x4cab16('0x1aeb')]&&_0x584396[_0x4cab16('0x1aeb')][_0x4cab16('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x584396[_0x4cab16('0x24d3')]='TOOLS.EDIT_CUSTOMDASHBOARD',_0x584396['customDashboard']=angular[_0x4cab16('0x14e5')](_0x36d127),_0x584396['customDashboards']=_0x1713c7,_0x584396['newCustomDashboard']=![];!_0x584396[_0x4cab16('0x282f')]&&(_0x584396[_0x4cab16('0x282f')]={},_0x584396['title']=_0x4cab16('0xc0'),_0x584396[_0x4cab16('0x467')]=!![]);_0x584396[_0x4cab16('0x21d')]=_0x18555b,_0x584396[_0x4cab16('0x553')]=_0x22b123,_0x584396['deleteCustomDashboard']=_0x47eebf,_0x584396['getDateFromString']=_0x15d002,_0x584396[_0x4cab16('0x136e')]=_0x2d03d7;function _0x18555b(){const _0x558810=_0x4cab16;_0x584396['errors']=[],_0x228774[_0x558810('0x40f')][_0x558810('0x2439')](_0x584396[_0x558810('0x282f')])[_0x558810('0x1af5')][_0x558810('0x17e7')](function(_0xcfd876){const _0x4f86b8=_0x558810;_0x584396[_0x4f86b8('0x10ca')][_0x4f86b8('0x1893')](_0xcfd876[_0x4f86b8('0x16b2')]()),_0x1594c3[_0x4f86b8('0x130d')]({'title':'CustomDashboard\x20properly\x20created','msg':_0x584396[_0x4f86b8('0x282f')][_0x4f86b8('0x2aa')]?_0x584396['customDashboard']['name']+_0x4f86b8('0x15a'):''}),_0x2d03d7(_0xcfd876);})[_0x558810('0x16df')](function(_0x1aaa1d){const _0x3ce209=_0x558810;if(_0x1aaa1d['data']&&_0x1aaa1d[_0x3ce209('0x1457')]['errors']&&_0x1aaa1d[_0x3ce209('0x1457')][_0x3ce209('0x73e')][_0x3ce209('0x1f73')]){_0x584396[_0x3ce209('0x73e')]=_0x1aaa1d[_0x3ce209('0x1457')][_0x3ce209('0x73e')]||[{'message':_0x1aaa1d['toString'](),'type':_0x3ce209('0x11b1')}];for(let _0x566d96=0x0;_0x566d96<_0x1aaa1d[_0x3ce209('0x1457')][_0x3ce209('0x73e')][_0x3ce209('0x1f73')];_0x566d96+=0x1){_0x1594c3[_0x3ce209('0x1db9')]({'title':_0x1aaa1d[_0x3ce209('0x1457')][_0x3ce209('0x73e')][_0x566d96][_0x3ce209('0x412')],'msg':_0x1aaa1d['data'][_0x3ce209('0x73e')][_0x566d96][_0x3ce209('0x1603')]});}}else _0x1594c3[_0x3ce209('0x1db9')]({'title':_0x1aaa1d[_0x3ce209('0x11c5')]?'API:'+_0x1aaa1d[_0x3ce209('0x11c5')]+_0x3ce209('0x16e4')+_0x1aaa1d['statusText']:'api.dashboard.save','msg':_0x1aaa1d[_0x3ce209('0x1457')]?JSON['stringify'](_0x1aaa1d[_0x3ce209('0x1457')]['message']):_0x1aaa1d[_0x3ce209('0x9b6')]()});});}function _0x22b123(){const _0x167bad=_0x4cab16;_0x584396['errors']=[],_0x228774['dashboard'][_0x167bad('0x27ba')]({'id':_0x584396[_0x167bad('0x282f')]['id']},_0x584396['customDashboard'])[_0x167bad('0x1af5')][_0x167bad('0x17e7')](function(_0x4d173b){const _0x1ec43a=_0x167bad,_0xfa6367=_0x49cbdd()[_0x1ec43a('0xe8e')](_0x584396[_0x1ec43a('0x10ca')],{'id':_0x4d173b['id']});_0xfa6367&&_0x49cbdd()[_0x1ec43a('0x1ced')](_0xfa6367,_0x49cbdd()[_0x1ec43a('0x230a')](_0x4d173b[_0x1ec43a('0x16b2')](),_0x49cbdd()[_0x1ec43a('0x1c0f')](_0xfa6367))),_0x1594c3[_0x1ec43a('0x130d')]({'title':_0x1ec43a('0x336'),'msg':_0x584396[_0x1ec43a('0x282f')][_0x1ec43a('0x2aa')]?_0x584396[_0x1ec43a('0x282f')][_0x1ec43a('0x2aa')]+_0x1ec43a('0x15ca'):''}),_0x2d03d7(_0x4d173b);})['catch'](function(_0x2118c3){const _0x5cd653=_0x167bad;if(_0x2118c3[_0x5cd653('0x1457')]&&_0x2118c3[_0x5cd653('0x1457')][_0x5cd653('0x73e')]&&_0x2118c3[_0x5cd653('0x1457')][_0x5cd653('0x73e')][_0x5cd653('0x1f73')]){_0x584396['errors']=_0x2118c3['data']['errors']||[{'message':_0x2118c3[_0x5cd653('0x9b6')](),'type':'api.dashboard.update'}];for(let _0x5a9864=0x0;_0x5a9864<_0x2118c3[_0x5cd653('0x1457')][_0x5cd653('0x73e')][_0x5cd653('0x1f73')];_0x5a9864++){_0x1594c3[_0x5cd653('0x1db9')]({'title':_0x2118c3[_0x5cd653('0x1457')][_0x5cd653('0x73e')][_0x5a9864][_0x5cd653('0x412')],'msg':_0x2118c3[_0x5cd653('0x1457')][_0x5cd653('0x73e')][_0x5a9864][_0x5cd653('0x1603')]});}}else _0x1594c3[_0x5cd653('0x1db9')]({'title':_0x2118c3[_0x5cd653('0x11c5')]?_0x5cd653('0x14f7')+_0x2118c3[_0x5cd653('0x11c5')]+'\x20-\x20'+_0x2118c3[_0x5cd653('0x1833')]:'api.dashboard.update','msg':_0x2118c3[_0x5cd653('0x1457')]?JSON[_0x5cd653('0x678')](_0x2118c3[_0x5cd653('0x1457')][_0x5cd653('0x1603')]):_0x2118c3[_0x5cd653('0x9b6')]()});});}function _0x47eebf(_0x4f40b2){const _0x1c1ae6=_0x4cab16;_0x584396[_0x1c1ae6('0x73e')]=[];const _0x42e52b=_0x11ea19[_0x1c1ae6('0x1121')]()[_0x1c1ae6('0x24d3')](_0x1c1ae6('0x530'))[_0x1c1ae6('0xd5')](_0x1c1ae6('0xf5a'))[_0x1c1ae6('0x2095')](_0x1c1ae6('0x688'))['ok'](_0x1c1ae6('0x304'))[_0x1c1ae6('0x1d47')](_0x1c1ae6('0x1b70'))['targetEvent'](_0x4f40b2);_0x11ea19['show'](_0x42e52b)[_0x1c1ae6('0x17e7')](function(){const _0x7f46fa=_0x1c1ae6;_0x228774[_0x7f46fa('0x40f')]['delete']({'id':_0x584396[_0x7f46fa('0x282f')]['id']})[_0x7f46fa('0x1af5')][_0x7f46fa('0x17e7')](function(){const _0x2a77fd=_0x7f46fa;_0x49cbdd()[_0x2a77fd('0x5f3')](_0x584396[_0x2a77fd('0x10ca')],{'id':_0x584396['customDashboard']['id']}),_0x1594c3[_0x2a77fd('0x130d')]({'title':_0x2a77fd('0xf2b'),'msg':(_0x584396[_0x2a77fd('0x282f')]['name']||'customDashboard')+_0x2a77fd('0x149f')}),_0x2d03d7(_0x584396[_0x2a77fd('0x282f')]);})['catch'](function(_0x21d75d){const _0x3fa742=_0x7f46fa;if(_0x21d75d[_0x3fa742('0x1457')]&&_0x21d75d['data'][_0x3fa742('0x73e')]&&_0x21d75d['data']['errors']['length']){_0x584396[_0x3fa742('0x73e')]=_0x21d75d[_0x3fa742('0x1457')][_0x3fa742('0x73e')]||[{'message':_0x21d75d[_0x3fa742('0x9b6')](),'type':'api.dashboard.delete'}];for(let _0x425fcf=0x0;_0x425fcf<_0x21d75d['data']['errors']['length'];_0x425fcf++){_0x1594c3[_0x3fa742('0x1db9')]({'title':_0x21d75d[_0x3fa742('0x1457')][_0x3fa742('0x73e')][_0x425fcf][_0x3fa742('0x412')],'msg':_0x21d75d['data'][_0x3fa742('0x73e')][_0x425fcf][_0x3fa742('0x1603')]});}}else _0x1594c3[_0x3fa742('0x1db9')]({'title':_0x21d75d[_0x3fa742('0x11c5')]?_0x3fa742('0x14f7')+_0x21d75d[_0x3fa742('0x11c5')]+'\x20-\x20'+_0x21d75d[_0x3fa742('0x1833')]:_0x3fa742('0x1316'),'msg':_0x21d75d[_0x3fa742('0x1457')]?JSON[_0x3fa742('0x678')](_0x21d75d['data'][_0x3fa742('0x1603')]):_0x21d75d[_0x3fa742('0x1603')]||_0x21d75d['toString']()});});},function(){});}function _0x15d002(_0x39e0e9){return _0x39e0e9===null?undefined:new Date(_0x39e0e9);}function _0x2d03d7(_0x538b1f){const _0x39f151=_0x4cab16;_0x11ea19[_0x39f151('0x212a')](_0x538b1f);}}const _0x1031a3=_0x394387,_0x202040=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/customDashboards/create/dialog.html/dialog.html';_0x4d92a4[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),'$mdSidenav','$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x10ca'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api','msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x4d92a4(_0x2a712c,_0x27c3c1,_0x486858,_0x27d1ed,_0x47d069,_0x2da5f0,_0x290111,_0x1794c9,_0x55e170,_0x35b56a,_0x1c4662,_0x3714f9,_0x484125,_0x31dae4,_0x2bd3e3,_0x513998,_0x1e0faa){const _0x2e426e=_0x4376d8,_0x19a578=this;_0x19a578[_0x2e426e('0x1d11')]=_0x513998,_0x19a578[_0x2e426e('0x1aeb')]=_0x1e0faa,_0x19a578[_0x2e426e('0x197c')]=_0x2bd3e3[_0x2e426e('0x2831')](),_0x19a578[_0x2e426e('0x10ca')]=_0x55e170||{'count':0x0,'rows':[]},_0x19a578[_0x2e426e('0xdeb')]=_0x35b56a,_0x19a578[_0x2e426e('0x383')]=_0x1c4662&&_0x1c4662[_0x2e426e('0x335')]==0x1?_0x1c4662['rows'][0x0]:null,_0x19a578['crudPermissions']=_0x2bd3e3['parseCrudPermissions'](_0x19a578[_0x2e426e('0x383')]?_0x19a578['userProfileSection'][_0x2e426e('0x103e')]:null),_0x19a578[_0x2e426e('0x23c3')]=_0x2e426e('0x10ca'),_0x19a578['listOrder']='',_0x19a578[_0x2e426e('0x24e1')]=null,_0x19a578['selectedCustomDashboards']=[],_0x19a578[_0x2e426e('0x826')]={'fields':'createdAt,updatedAt,id,name,description','sort':_0x2e426e('0x1ac6'),'limit':0xa,'page':0x1},_0x19a578[_0x2e426e('0xcd4')]=_0x5d196d,_0x19a578[_0x2e426e('0x10ce')]=_0x131ddd,_0x19a578['deleteconfirm']=_0x5537ed,_0x19a578['success']=_0x372bb4,_0x19a578[_0x2e426e('0x262a')]=_0xb12b7d,_0x19a578[_0x2e426e('0x2417')]=_0x3af555,_0x19a578['deleteCustomDashboard']=_0x56d42e,_0x19a578[_0x2e426e('0xd77')]=_0x7e81ee,_0x19a578[_0x2e426e('0x63e')]=_0x58dbae,_0x19a578['deselectCustomDashboards']=_0x4ac23b,_0x19a578['selectAllCustomDashboards']=_0x20ae60;function _0x5d196d(_0x15b3ed){_0x486858['go']('app.tools.customDashboards.edit',{'id':_0x15b3ed['id'],'customDashboard':_0x15b3ed,'crudPermissions':_0x19a578['crudPermissions']});}function _0x131ddd(_0x3c3866){const _0x56027e=_0x2e426e;_0x486858['go'](_0x56027e('0xc99'),{'id':_0x3c3866['id']});}function _0x5537ed(_0x160e46,_0x5a7a66){const _0x52fe88=_0x2e426e,_0x3b832d=_0x47d069[_0x52fe88('0x1121')]()[_0x52fe88('0x24d3')](_0x52fe88('0x5e1')+_0x49cbdd()[_0x52fe88('0x1c98')](_0x52fe88('0x282f'))+'?')[_0x52fe88('0x211f')](_0x52fe88('0xa53')+(_0x160e46[_0x52fe88('0x2aa')]||_0x52fe88('0x282f'))+''+_0x52fe88('0xe9f'))['ariaLabel']('delete\x20customDashboard')[_0x52fe88('0x104f')](_0x5a7a66)['ok']('OK')[_0x52fe88('0x1d47')](_0x52fe88('0x28a0'));_0x47d069[_0x52fe88('0x28e2')](_0x3b832d)['then'](function(){_0x56d42e(_0x160e46);},function(){const _0x5574ec=_0x52fe88;console[_0x5574ec('0x1d63')]('CANCEL');});}let _0x504b74=!![],_0x34ef52=0x1;_0x2a712c[_0x2e426e('0x620')]('vm.query.filter',function(_0x1481c3,_0x2cefe6){const _0x585e2e=_0x2e426e;_0x504b74?_0x290111(function(){_0x504b74=![];}):(!_0x2cefe6&&(_0x34ef52=_0x19a578[_0x585e2e('0x826')][_0x585e2e('0x115a')]),_0x1481c3!==_0x2cefe6&&(_0x19a578[_0x585e2e('0x826')][_0x585e2e('0x115a')]=0x1),!_0x1481c3&&(_0x19a578['query']['page']=_0x34ef52),_0x19a578[_0x585e2e('0x262a')]());});function _0x372bb4(_0x313803){const _0x426a4e=_0x2e426e;_0x19a578[_0x426a4e('0x10ca')]=_0x313803||{'count':0x0,'rows':[]};}function _0xb12b7d(){const _0x2429c8=_0x2e426e;_0x19a578['query']['offset']=(_0x19a578[_0x2429c8('0x826')]['page']-0x1)*_0x19a578[_0x2429c8('0x826')]['limit'],_0x2bd3e3['hasRole']('admin')?_0x19a578[_0x2429c8('0x1691')]=_0x3714f9[_0x2429c8('0x40f')]['get'](_0x19a578[_0x2429c8('0x826')],_0x372bb4)[_0x2429c8('0x1af5')]:(_0x19a578[_0x2429c8('0x826')]['id']=_0x19a578['userProfile']['id'],_0x19a578[_0x2429c8('0x826')][_0x2429c8('0x16f8')]=_0x2429c8('0x1a9f'),_0x19a578[_0x2429c8('0x1691')]=_0x3714f9[_0x2429c8('0xdeb')]['getResources'](_0x19a578[_0x2429c8('0x826')],_0x372bb4)[_0x2429c8('0x1af5')]);}function _0x3af555(_0x21c472,_0x40df87){const _0x2bc7a8=_0x2e426e;_0x47d069[_0x2bc7a8('0x28e2')]({'controller':_0x2bc7a8('0xc7d'),'controllerAs':'vm','templateUrl':_0x202040,'parent':angular[_0x2bc7a8('0x1ce1')](_0x2da5f0['body']),'targetEvent':_0x21c472,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x40df87,'customDashboards':_0x19a578['customDashboards'][_0x2bc7a8('0x2319')],'license':_0x19a578[_0x2bc7a8('0x1d11')],'setting':_0x19a578['setting'],'crudPermissions':_0x19a578[_0x2bc7a8('0x103e')]}});}function _0x56d42e(_0x4c1dda){const _0x8f8e05=_0x2e426e;_0x3714f9[_0x8f8e05('0x40f')]['delete']({'id':_0x4c1dda['id']})[_0x8f8e05('0x1af5')][_0x8f8e05('0x17e7')](function(){const _0x41e505=_0x8f8e05;_0x49cbdd()[_0x41e505('0x5f3')](_0x19a578['customDashboards'][_0x41e505('0x2319')],{'id':_0x4c1dda['id']}),_0x19a578['customDashboards'][_0x41e505('0x335')]-=0x1,!_0x19a578[_0x41e505('0x10ca')][_0x41e505('0x2319')]['length']&&_0x19a578[_0x41e505('0x262a')](),_0x31dae4[_0x41e505('0x130d')]({'title':_0x49cbdd()[_0x41e505('0x1c98')](_0x41e505('0xc'))+'\x20deleted!','msg':_0x4c1dda['name']?_0x4c1dda[_0x41e505('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x8f8e05('0x16df')](function(_0x52eb21){const _0x1f97ff=_0x8f8e05;if(_0x52eb21[_0x1f97ff('0x1457')]&&_0x52eb21[_0x1f97ff('0x1457')][_0x1f97ff('0x73e')]&&_0x52eb21[_0x1f97ff('0x1457')][_0x1f97ff('0x73e')][_0x1f97ff('0x1f73')]){_0x19a578[_0x1f97ff('0x73e')]=_0x52eb21[_0x1f97ff('0x1457')]['errors']||[{'message':_0x52eb21[_0x1f97ff('0x9b6')](),'type':_0x1f97ff('0x1afd')}];for(let _0x412791=0x0;_0x412791<_0x52eb21[_0x1f97ff('0x1457')][_0x1f97ff('0x73e')][_0x1f97ff('0x1f73')];_0x412791++){_0x31dae4[_0x1f97ff('0x1db9')]({'title':_0x52eb21[_0x1f97ff('0x1457')][_0x1f97ff('0x73e')][_0x412791]['type'],'msg':_0x52eb21[_0x1f97ff('0x1457')][_0x1f97ff('0x73e')][_0x412791][_0x1f97ff('0x1603')]});}}else _0x31dae4['error']({'title':_0x52eb21['status']?_0x1f97ff('0x14f7')+_0x52eb21[_0x1f97ff('0x11c5')]+_0x1f97ff('0x16e4')+_0x52eb21[_0x1f97ff('0x1833')]:'SYSTEM:DELETEdashboard','msg':_0x52eb21['data']?JSON[_0x1f97ff('0x678')](_0x52eb21[_0x1f97ff('0x1457')]['message']):_0x52eb21['message']||_0x52eb21[_0x1f97ff('0x9b6')]()});});}function _0x7e81ee(){const _0x2a3e84=_0x2e426e,_0x5792a4=angular[_0x2a3e84('0x14e5')](_0x19a578[_0x2a3e84('0xa9f')]);return _0x19a578[_0x2a3e84('0xa9f')]=[],_0x5792a4;}function _0x58dbae(_0xc9ecb2){const _0x38783b=_0x2e426e,_0xf8591c=_0x47d069[_0x38783b('0x1121')]()[_0x38783b('0x24d3')](_0x38783b('0xc5d'))['htmlContent'](_0x38783b('0xa53')+_0x19a578['selectedCustomDashboards'][_0x38783b('0x1f73')]+_0x38783b('0x145a')+_0x38783b('0xe9f'))[_0x38783b('0x2095')](_0x38783b('0x19f7'))['targetEvent'](_0xc9ecb2)['ok']('OK')[_0x38783b('0x1d47')](_0x38783b('0x28a0'));_0x47d069[_0x38783b('0x28e2')](_0xf8591c)[_0x38783b('0x17e7')](function(){const _0x5424dd=_0x38783b;_0x19a578[_0x5424dd('0xa9f')]['forEach'](function(_0x503872){_0x56d42e(_0x503872);}),_0x19a578[_0x5424dd('0xa9f')]=[];});}function _0x4ac23b(){_0x19a578['selectedCustomDashboards']=[];}function _0x20ae60(){const _0x1d209a=_0x2e426e;_0x19a578['selectedCustomDashboards']=_0x19a578[_0x1d209a('0x10ca')][_0x1d209a('0x2319')];}}const _0x483a94=_0x4d92a4;_0x37568e['$inject']=[_0x4376d8('0x14f6'),_0x4376d8('0xc4c'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0x282f'),'customDashboards',_0x4376d8('0x28da')];function _0x37568e(_0x16370c,_0x56cd7e,_0xcb75c,_0x11396d,_0x2ae397,_0x1916b4,_0x36ee4f){const _0xb07da7=_0x4376d8,_0x538417=this;_0x538417[_0xb07da7('0x467')]=!![],_0x538417[_0xb07da7('0x282f')]=angular[_0xb07da7('0x14e5')](_0x2ae397),_0x538417[_0xb07da7('0x10ca')]=_0x1916b4,_0x538417[_0xb07da7('0x24d3')]=_0x36ee4f[_0xb07da7('0x1acc')](_0xb07da7('0x447'));_0x2ae397&&_0x2ae397['name']&&(_0x538417[_0xb07da7('0x24d3')]+=':\x20'+_0x2ae397['name']);_0x538417['cloneCustomDashboard']=_0x8d9a7,_0x538417[_0xb07da7('0x136e')]=_0x396909;function _0x8d9a7(){const _0x106a92=_0xb07da7;return _0x11396d[_0x106a92('0x40f')][_0x106a92('0x2080')]({'id':_0x2ae397['id'],'includeAll':!![]},_0x538417[_0x106a92('0x282f')])[_0x106a92('0x1af5')]['then'](function(_0x212626){const _0x2fefed=_0x106a92;_0x538417[_0x2fefed('0x10ca')]['unshift'](_0x212626['toJSON']()),_0xcb75c['success']({'title':_0x2fefed('0x719'),'msg':_0x538417[_0x2fefed('0x282f')][_0x2fefed('0x2aa')]?_0x538417[_0x2fefed('0x282f')][_0x2fefed('0x2aa')]+'\x20has\x20been\x20cloned!':''}),_0x56cd7e['go'](_0x2fefed('0x475'),{'id':_0x212626['id']}),_0x396909(_0x212626);})[_0x106a92('0x16df')](function(_0x32878b){const _0x54b2d0=_0x106a92;if(_0x32878b[_0x54b2d0('0x1457')]&&_0x32878b[_0x54b2d0('0x1457')]['errors']&&_0x32878b[_0x54b2d0('0x1457')][_0x54b2d0('0x73e')]['length']){_0x538417[_0x54b2d0('0x73e')]=_0x32878b['data'][_0x54b2d0('0x73e')]||[{'message':_0x32878b[_0x54b2d0('0x9b6')](),'type':_0x54b2d0('0x1519')}];for(let _0x55dea8=0x0;_0x55dea8<_0x32878b['data'][_0x54b2d0('0x73e')]['length'];_0x55dea8+=0x1){_0xcb75c[_0x54b2d0('0x1db9')]({'title':_0x32878b['data']['errors'][_0x55dea8][_0x54b2d0('0x412')],'msg':_0x32878b[_0x54b2d0('0x1457')][_0x54b2d0('0x73e')][_0x55dea8][_0x54b2d0('0x1603')]});}}else _0xcb75c[_0x54b2d0('0x1db9')]({'title':_0x32878b[_0x54b2d0('0x11c5')]?_0x54b2d0('0x14f7')+_0x32878b[_0x54b2d0('0x11c5')]+'\x20-\x20'+_0x32878b[_0x54b2d0('0x1833')]:_0x54b2d0('0x1519'),'msg':_0x32878b[_0x54b2d0('0x1457')]?JSON[_0x54b2d0('0x678')](_0x32878b[_0x54b2d0('0x1457')][_0x54b2d0('0x1603')]):_0x32878b[_0x54b2d0('0x9b6')]()});});}function _0x396909(_0x1b0d36){_0x16370c['hide'](_0x1b0d36);}}const _0x2dae98=_0x37568e,_0x14c4ae=_0x4cf2bc['p']+_0x4376d8('0x243b');_0xa9a091[_0x4376d8('0x1b9c')]=['$mdDialog','$document',_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0x212e')];function _0xa9a091(_0xd1bbe1,_0x4d3867,_0x1691d9,_0x3fec99,_0x51528c){const _0x13956d=_0x4376d8,_0x1616de=this;_0x1616de[_0x13956d('0x282f')]={},_0x1616de[_0x13956d('0x160f')]=_0x51528c[_0x13956d('0x1207')][_0x13956d('0x13b0')]({'fields':_0x13956d('0x12d2')}),_0x1616de[_0x13956d('0x161d')]=_0x1599cb,_0x1616de[_0x13956d('0x15f8')]=_0x313407,_0x1616de[_0x13956d('0x1dc8')]=_0x3236d1;function _0x1599cb(_0xe5b830,_0x399efd){const _0x10b349=_0x13956d;return _0x1616de[_0x10b349('0x103e')]=typeof _0x399efd!==_0x10b349('0xfad')?_0x399efd:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1616de[_0x10b349('0x282f')]=_0xe5b830,_0x1616de[_0x10b349('0x282f')][_0x10b349('0x19e')]={'enabled':!![],'handle':_0x10b349('0x256a'),'stop':_0x407e3d},_0x1616de[_0x10b349('0x282f')]['resizable']={'enabled':!![],'handle':_0x10b349('0x145'),'stop':_0x407e3d},_0x1616de[_0x10b349('0x282f')][_0x10b349('0xb18')]=[],_0x51528c[_0x10b349('0x40f')][_0x10b349('0x4b2')]({'id':_0xe5b830['id']})[_0x10b349('0x1af5')][_0x10b349('0x17e7')](function(_0x36f33e){const _0xa991da=_0x10b349;if(_0x36f33e&&_0x36f33e['count']&&_0x36f33e[_0xa991da('0x2319')])for(let _0x3497fe=0x0;_0x3497fe<_0x36f33e[_0xa991da('0x2319')][_0xa991da('0x1f73')];_0x3497fe+=0x1){_0x36f33e[_0xa991da('0x2319')][_0x3497fe]['voiceQueues']=_0x1616de[_0xa991da('0x160f')],_0x36f33e[_0xa991da('0x2319')][_0x3497fe][_0xa991da('0x1494')]=_0x49cbdd()[_0xa991da('0x787')](_0x1616de[_0xa991da('0x160f')][_0xa991da('0x2319')],'id'),_0x36f33e[_0xa991da('0x2319')][_0x3497fe][_0xa991da('0x156')]='app/core/directives/ms-widget-engine/ms-widget-engine-'+_0x36f33e['rows'][_0x3497fe][_0xa991da('0x412')]+_0xa991da('0x14c')+_0x36f33e[_0xa991da('0x2319')][_0x3497fe][_0xa991da('0x412')]+_0xa991da('0xb14'),_0x1616de[_0xa991da('0x282f')][_0xa991da('0xb18')]['push'](_0x36f33e[_0xa991da('0x2319')][_0x3497fe]);}})['catch'](function(_0x2f227e){const _0x55623c=_0x10b349;console[_0x55623c('0x1db9')](_0x2f227e);});}function _0x313407(_0x153711){const _0xb65c9=_0x13956d;if(_0x153711&&_0x153711[_0xb65c9('0xbf3')])for(let _0x6728c5=0x0;_0x6728c5<_0x153711[_0xb65c9('0xbf3')][_0xb65c9('0x1f73')];_0x6728c5+=0x1){_0x153711[_0xb65c9('0xbf3')][_0x6728c5][_0xb65c9('0x2aa')]===_0xb65c9('0x17d1')&&(_0x153711[_0xb65c9('0x2137')]=_0x153711[_0xb65c9('0xbf3')][_0x6728c5]['type']),_0x153711[_0x153711['attrs'][_0x6728c5][_0xb65c9('0x2aa')]]=_0x153711[_0xb65c9('0xbf3')][_0x6728c5][_0xb65c9('0x175b')];}_0xd1bbe1[_0xb65c9('0x28e2')]({'controller':'CreateOrEditDashboardItemDialogController','controllerAs':'vm','templateUrl':_0x14c4ae,'parent':angular['element'](_0x4d3867[_0xb65c9('0x13aa')]),'clickOutsideToClose':!![],'locals':{'dashboarditem':_0x153711,'dashboard':_0x1616de[_0xb65c9('0x282f')]['widgets'],'license':null,'setting':null,'crudPermissions':_0x1616de[_0xb65c9('0x103e')]}})[_0xb65c9('0x17e7')](function(_0x28caa4){const _0x246c6b=_0xb65c9;if(_0x28caa4)for(let _0xbc2e33=0x0;_0xbc2e33<_0x1616de[_0x246c6b('0x282f')][_0x246c6b('0xb18')][_0x246c6b('0x1f73')];_0xbc2e33+=0x1){_0x1616de['customDashboard'][_0x246c6b('0xb18')][_0xbc2e33]['id']===_0x28caa4['id']&&(_0x1616de[_0x246c6b('0x282f')]['widgets'][_0xbc2e33][_0x246c6b('0xbf3')]=_0x28caa4[_0x246c6b('0xbf3')],_0x1616de['customDashboard'][_0x246c6b('0xb18')][_0xbc2e33][_0x246c6b('0x160f')]=_0x1616de['voiceQueues'],_0x1616de[_0x246c6b('0x282f')][_0x246c6b('0xb18')][_0xbc2e33]['voiceQueuesSelected']=_0x49cbdd()[_0x246c6b('0x787')](_0x1616de[_0x246c6b('0x160f')][_0x246c6b('0x2319')],'id'),_0x1616de[_0x246c6b('0x282f')][_0x246c6b('0xb18')][_0xbc2e33]['templateUrl']=_0x246c6b('0x28a5')+_0x1616de[_0x246c6b('0x282f')]['widgets'][_0xbc2e33][_0x246c6b('0x412')]+_0x246c6b('0x14c')+_0x1616de[_0x246c6b('0x282f')]['widgets'][_0xbc2e33][_0x246c6b('0x412')]+_0x246c6b('0xb14'));}});}function _0x3236d1(_0x3605a1){const _0x5d9854=_0x13956d,_0x762285=_0xd1bbe1[_0x5d9854('0x1121')]()[_0x5d9854('0x24d3')](_0x5d9854('0x15cf')+_0x3605a1['title']+'?')['textContent']('')[_0x5d9854('0x2095')](_0x5d9854('0x92'))['ok'](_0x5d9854('0x28c5'))[_0x5d9854('0x1d47')]('NO');_0xd1bbe1[_0x5d9854('0x28e2')](_0x762285)['then'](function(){const _0x19096e=_0x5d9854;return _0x51528c[_0x19096e('0xdcf')][_0x19096e('0x1da6')]({'id':_0x3605a1['id']})[_0x19096e('0x1af5')][_0x19096e('0x17e7')](function(){const _0x12e393=_0x19096e;_0x49cbdd()['remove'](_0x1616de['customDashboard']['widgets'],{'id':_0x3605a1['id']}),_0x3fec99['success']({'title':_0x12e393('0x16fd'),'msg':_0x3605a1[_0x12e393('0x2aa')]?_0x3605a1['name']+_0x12e393('0x149f'):_0x12e393('0x136d')});})[_0x19096e('0x16df')](function(_0x528c04){const _0x20e57a=_0x19096e;if(_0x528c04['data']&&_0x528c04['data']['errors']&&_0x528c04[_0x20e57a('0x1457')]['errors']['length']){_0x1616de[_0x20e57a('0x73e')]=_0x528c04['data'][_0x20e57a('0x73e')]||[{'message':_0x528c04[_0x20e57a('0x9b6')](),'type':_0x20e57a('0x44d')}];for(let _0x2020b9=0x0;_0x2020b9<_0x528c04['data'][_0x20e57a('0x73e')]['length'];_0x2020b9++){_0x3fec99['error']({'title':_0x528c04['data'][_0x20e57a('0x73e')][_0x2020b9][_0x20e57a('0x412')],'msg':_0x528c04[_0x20e57a('0x1457')]['errors'][_0x2020b9][_0x20e57a('0x1603')]});}}else _0x3fec99[_0x20e57a('0x1db9')]({'title':_0x528c04[_0x20e57a('0x11c5')]?_0x20e57a('0x14f7')+_0x528c04['status']+'\x20-\x20'+_0x528c04[_0x20e57a('0x1833')]:_0x20e57a('0x1afd'),'msg':_0x528c04['data']?JSON['stringify'](_0x528c04[_0x20e57a('0x1457')][_0x20e57a('0x1603')]):_0x528c04[_0x20e57a('0x1603')]||_0x528c04['toString']()});console[_0x20e57a('0x1db9')](_0x528c04);});});}function _0x407e3d(_0x4cf2ba,_0x213433,_0xec82bc){const _0x2afbd6=_0x13956d;return _0x51528c['dashboardItem'][_0x2afbd6('0x27ba')](_0xec82bc)[_0x2afbd6('0x1af5')][_0x2afbd6('0x16df')](function(_0x1f47a0){const _0x4e906e=_0x2afbd6;console[_0x4e906e('0x1db9')](_0x1f47a0);});}}const _0x2e7d53=_0xa9a091,_0x300dd6=_0x4cf2bc['p']+_0x4376d8('0x1615');_0x5100f7['$inject']=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x40f'),_0x4376d8('0x28c3'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x5100f7(_0x33d3eb,_0x1b2c2d,_0xf62315,_0x196684,_0x2f5151,_0x4d79fd,_0x50f676,_0x1ab491,_0x4572dc,_0x5db369,_0x37c011,_0x1a846f,_0x11b6cc,_0x1917ee){const _0xc2a943=_0x4376d8,_0x4c6a0c=this;_0x4c6a0c[_0xc2a943('0x197c')]=_0x37c011[_0xc2a943('0x2831')](),_0x4c6a0c['errors']=[],_0x4c6a0c[_0xc2a943('0x1aeb')]=_0x11b6cc,_0x4c6a0c[_0xc2a943('0x1d11')]=_0x1a846f,_0x4c6a0c[_0xc2a943('0x103e')]=_0x1917ee,_0x4c6a0c[_0xc2a943('0x6ee')]={},_0x4c6a0c['passwordPattern']=_0x4c6a0c['setting']&&_0x4c6a0c[_0xc2a943('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4c6a0c[_0xc2a943('0x24d3')]=_0xc2a943('0x73f'),_0x4c6a0c[_0xc2a943('0x28c3')]=angular[_0xc2a943('0x14e5')](_0x4572dc),_0x4c6a0c[_0xc2a943('0x40f')]=_0x1ab491,_0x4c6a0c[_0xc2a943('0x11ac')]=![],_0x4c6a0c[_0xc2a943('0xffd')]=[],_0x4c6a0c[_0xc2a943('0x826')]={'fields':_0xc2a943('0x1fbd'),'limit':0xa,'page':0x1,'sort':'-updatedAt'};!_0x4c6a0c['dashboarditem']?(_0x4c6a0c[_0xc2a943('0x28c3')]={'type':_0xc2a943('0x26ab'),'attrUrl':_0xc2a943('0x2217'),'attrHourFormat':_0xc2a943('0x36b'),'attrTimezone':_0xc2a943('0xd4d'),'attrMetric':_0xc2a943('0x1d0e'),'attrSerie1':_0xc2a943('0x1d0e'),'attrSerie2':'null','attrSerie3':'null','attrRefresh':0xa,'attrFontSize':0x14,'foreground':_0xc2a943('0x185d'),'background':_0xc2a943('0x76a')},_0x4c6a0c['title']=_0xc2a943('0x1524'),_0x4c6a0c['newDashboardItem']=!![]):_0x4c6a0c[_0xc2a943('0x28c3')][_0xc2a943('0x412')]==_0xc2a943('0xf89')&&(_0x4c6a0c[_0xc2a943('0x2883')]=_0x4c6a0c['dashboarditem']['reportType']==='custom'?_0xc2a943('0x18bc'):_0xc2a943('0x1369'),_0x5db369[_0x4c6a0c[_0xc2a943('0x2883')]][_0xc2a943('0x1c53')]({'fields':_0xc2a943('0xc2e')})['$promise']['then'](function(_0x138e97){const _0x3e1897=_0xc2a943;_0x4c6a0c['currentReport']=_0x49cbdd()[_0x3e1897('0xe8e')](_0x138e97['rows'],{'id':_0x4c6a0c['dashboarditem']['attrReport']}),_0x4c6a0c['dashboarditem'][_0x3e1897('0x9d2')]=_0x4c6a0c[_0x3e1897('0x32e')]['name'],_0x4c6a0c[_0x3e1897('0x826')][_0x3e1897('0x14e')]=_0x4c6a0c['currentReport'][_0x3e1897('0x14e')];}));_0x4c6a0c['addNewDashboardItem']=_0x73f785,_0x4c6a0c[_0xc2a943('0xa89')]=_0x919f94,_0x4c6a0c[_0xc2a943('0x17b7')]=_0x35543a,_0x4c6a0c[_0xc2a943('0x1300')]=_0x581dbd,_0x4c6a0c['getReports']=_0x4b2d8b,_0x4c6a0c[_0xc2a943('0xad9')]=_0x13e0e5,_0x4c6a0c[_0xc2a943('0x16b')]=_0x30e3ee,_0x4c6a0c[_0xc2a943('0x171d')]=_0x1ec090,_0x4c6a0c[_0xc2a943('0x136e')]=_0x30508c,_0x5db369[_0xc2a943('0x148')][_0xc2a943('0x1c53')]({})['$promise'][_0xc2a943('0x17e7')](function(_0x3f36fa){const _0x530d72=_0xc2a943;_0x4c6a0c[_0x530d72('0x1ab7')]=_0x3f36fa[_0x530d72('0x2319')]||[];})[_0xc2a943('0x16df')](function(_0x51164f){const _0x1d322e=_0xc2a943;_0x50f676['error']({'title':_0x51164f[_0x1d322e('0x11c5')]?_0x1d322e('0x14f7')+_0x51164f['status']+'\x20-\x20'+_0x51164f['statusText']:_0x1d322e('0xb3'),'msg':_0x51164f[_0x1d322e('0x1457')]?JSON['stringify'](_0x51164f[_0x1d322e('0x1457')]):_0x51164f['toString']()});});const _0x3e07f4=[{'id':0x191,'type':'inbound'},{'id':0x5dd,'type':_0xc2a943('0x1ade')}];let _0x1f754e=null;_0x37c011[_0xc2a943('0x1ba2')](_0xc2a943('0x20bf'))?_0x5db369[_0xc2a943('0x1243')][_0xc2a943('0x1c53')]({'fields':_0xc2a943('0x960'),'sort':_0xc2a943('0x2aa'),'nolimit':_0xc2a943('0xe34')})['$promise']['then'](function(_0x456287){const _0x48bb00=_0xc2a943;_0x4c6a0c[_0x48bb00('0x160f')]=_0x456287['rows']||[];})[_0xc2a943('0x16df')](function(_0xd341c5){const _0x5054a8=_0xc2a943;_0x50f676[_0x5054a8('0x1db9')]({'title':_0xd341c5[_0x5054a8('0x11c5')]?'API:'+_0xd341c5[_0x5054a8('0x11c5')]+_0x5054a8('0x16e4')+_0xd341c5[_0x5054a8('0x1833')]:_0x5054a8('0x793'),'msg':_0xd341c5['data']?JSON[_0x5054a8('0x678')](_0xd341c5[_0x5054a8('0x1457')]):_0xd341c5['toString']()});}):_0x5db369['voiceQueue']['get']({'fields':_0xc2a943('0x960'),'sort':_0xc2a943('0x2aa'),'nolimit':'true'})[_0xc2a943('0x1af5')][_0xc2a943('0x17e7')](function(_0x4d3bce){const _0x3a9a17=_0xc2a943;_0x1f754e=_0x4d3bce[_0x3a9a17('0x2319')]||[];})[_0xc2a943('0x17e7')](function(){const _0x1613e0=_0xc2a943,_0x9fefc=[];for(let _0x4cff33=0x0;_0x4cff33<_0x3e07f4['length'];_0x4cff33++){_0x9fefc['push'](_0x5db369['userProfileSection']['get']({'userProfileId':_0x4c6a0c[_0x1613e0('0x197c')][_0x1613e0('0x1e76')],'sectionId':_0x3e07f4[_0x4cff33]['id']})[_0x1613e0('0x1af5')]);}return _0x2f5151['all'](_0x9fefc);})[_0xc2a943('0x17e7')](function(_0x363fc4){const _0x5801aa=_0xc2a943,_0x49159a=_0x49cbdd()['map'](_0x363fc4,function(_0x157f53){const _0x5dc762=a0_0xd29e;return _0x157f53&&_0x157f53[_0x5dc762('0x2319')]?_0x157f53[_0x5dc762('0x2319')][0x0]:null;}),_0x32f5d4=[];for(let _0xd65c23=0x0;_0xd65c23<_0x3e07f4[_0x5801aa('0x1f73')];_0xd65c23++){const _0x3246d0=_0x49cbdd()['find'](_0x49159a,['sectionId',_0x3e07f4[_0xd65c23]['id']]);if(_0x3246d0){if(!_0x3246d0['autoAssociation'])_0x32f5d4[_0x5801aa('0x269f')](_0x5db369[_0x5801aa('0x78d')][_0x5801aa('0x1c53')]({'sectionId':_0x3246d0['id']})[_0x5801aa('0x1af5')]);else{const _0x1e10f4=[];_0x1f754e['forEach'](function(_0x359db2){const _0x5b3169=_0x5801aa;_0x359db2['type']===_0x3e07f4[_0xd65c23][_0x5b3169('0x412')]&&_0x1e10f4[_0x5b3169('0x269f')](_0x359db2);}),_0x32f5d4[_0x5801aa('0x269f')]({'rows':_0x1e10f4,'count':_0x1e10f4[_0x5801aa('0x1f73')]});}}}return _0x2f5151[_0x5801aa('0x1283')](_0x32f5d4);})[_0xc2a943('0x17e7')](function(_0x38c027){const _0x23bead=_0xc2a943,_0x2710b4=[];let _0x129ecb=null;_0x4c6a0c[_0x23bead('0x28c3')]&&(_0x129ecb=_0x49cbdd()[_0x23bead('0xe8e')](_0x1f754e,{'id':Number(_0x4c6a0c[_0x23bead('0x28c3')][_0x23bead('0x1eea')])}));for(let _0x2c38be=0x0;_0x2c38be<_0x38c027[_0x23bead('0x1f73')];_0x2c38be++){const _0x536a10=_0x38c027[_0x2c38be][_0x23bead('0x2319')]||[];_0x536a10[_0x23bead('0xccd')](function(_0xa0f899){const _0x1e98da=_0x23bead;_0x2710b4[_0x1e98da('0x269f')](_0xa0f899);});}_0x129ecb&&!_0x49cbdd()['some'](_0x2710b4,[_0x23bead('0x5db'),_0x129ecb['id']])&&_0x1f754e[_0x23bead('0xccd')](function(_0x3fb84f){const _0x53c5be=_0x23bead;_0x3fb84f['id']===_0x129ecb['id']&&(_0x3fb84f[_0x53c5be('0xe5c')]=![],_0x2710b4[_0x53c5be('0x269f')](_0x3fb84f));}),_0x4c6a0c[_0x23bead('0x160f')]=_0x2710b4;})['catch'](function(_0x5352b7){const _0x1740b5=_0xc2a943;_0x50f676['error']({'title':_0x5352b7[_0x1740b5('0x11c5')]?_0x1740b5('0x14f7')+_0x5352b7[_0x1740b5('0x11c5')]+'\x20-\x20'+_0x5352b7[_0x1740b5('0x1833')]:_0x1740b5('0x649'),'msg':_0x5352b7[_0x1740b5('0x1457')]?JSON[_0x1740b5('0x678')](_0x5352b7[_0x1740b5('0x1457')]):_0x5352b7[_0x1740b5('0x9b6')]()});});function _0x73f785(){const _0x33cce7=_0xc2a943;_0x4c6a0c[_0x33cce7('0x73e')]=[],_0x5db369[_0x33cce7('0x40f')]['addItem']({'id':_0x1b2c2d['params']['id']},_0x4c6a0c[_0x33cce7('0x28c3')])[_0x33cce7('0x1af5')][_0x33cce7('0x17e7')](function(_0x590304){const _0x1917e3=_0x33cce7;_0x4c6a0c[_0x1917e3('0x40f')][_0x1917e3('0x1893')](_0x590304['toJSON']()),_0x50f676[_0x1917e3('0x130d')]({'title':_0x1917e3('0xa3f'),'msg':_0x4c6a0c['dashboarditem']['name']?_0x4c6a0c[_0x1917e3('0x28c3')][_0x1917e3('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x30508c(_0x590304);})[_0x33cce7('0x16df')](function(_0x20bbb5){const _0x20920a=_0x33cce7;if(_0x20bbb5[_0x20920a('0x1457')]&&_0x20bbb5[_0x20920a('0x1457')][_0x20920a('0x73e')]&&_0x20bbb5[_0x20920a('0x1457')][_0x20920a('0x73e')][_0x20920a('0x1f73')]){_0x4c6a0c[_0x20920a('0x73e')]=_0x20bbb5[_0x20920a('0x1457')][_0x20920a('0x73e')]||[{'message':_0x20bbb5[_0x20920a('0x9b6')](),'type':_0x20920a('0x1950')}];for(let _0x531dc3=0x0;_0x531dc3<_0x20bbb5[_0x20920a('0x1457')]['errors'][_0x20920a('0x1f73')];_0x531dc3+=0x1){_0x50f676[_0x20920a('0x1db9')]({'title':_0x20bbb5['data'][_0x20920a('0x73e')][_0x531dc3][_0x20920a('0x412')],'msg':_0x20bbb5[_0x20920a('0x1457')]['errors'][_0x531dc3][_0x20920a('0x1603')]});}}else _0x50f676['error']({'title':_0x20bbb5[_0x20920a('0x11c5')]?_0x20920a('0x14f7')+_0x20bbb5[_0x20920a('0x11c5')]+_0x20920a('0x16e4')+_0x20bbb5['statusText']:'api.dashboardItem.save','msg':_0x20bbb5[_0x20920a('0x1457')]?JSON[_0x20920a('0x678')](_0x20bbb5[_0x20920a('0x1457')][_0x20920a('0x1603')]):_0x20bbb5['toString']()});});}function _0x919f94(){const _0x39f825=_0xc2a943;_0x4c6a0c[_0x39f825('0x73e')]=[],_0x5db369['dashboardItem'][_0x39f825('0x27ba')]({'id':_0x4c6a0c[_0x39f825('0x28c3')]['id']},_0x4c6a0c['dashboarditem'])[_0x39f825('0x1af5')][_0x39f825('0x17e7')](function(_0x586ed2){const _0x43cb57=_0x39f825,_0x3b8944=_0x49cbdd()[_0x43cb57('0xe8e')](_0x4c6a0c[_0x43cb57('0x40f')],{'id':_0x586ed2['id']});_0x3b8944&&_0x49cbdd()[_0x43cb57('0x1ced')](_0x3b8944,_0x49cbdd()[_0x43cb57('0x230a')](_0x586ed2[_0x43cb57('0x16b2')](),_0x49cbdd()[_0x43cb57('0x1c0f')](_0x3b8944))),_0x50f676[_0x43cb57('0x130d')]({'title':_0x43cb57('0xdc'),'msg':_0x4c6a0c[_0x43cb57('0x28c3')][_0x43cb57('0x2aa')]?_0x4c6a0c[_0x43cb57('0x28c3')][_0x43cb57('0x2aa')]+_0x43cb57('0x15ca'):''}),_0x30508c(_0x586ed2);})[_0x39f825('0x16df')](function(_0x3c403f){const _0x111aed=_0x39f825;if(_0x3c403f[_0x111aed('0x1457')]&&_0x3c403f[_0x111aed('0x1457')][_0x111aed('0x73e')]&&_0x3c403f[_0x111aed('0x1457')][_0x111aed('0x73e')][_0x111aed('0x1f73')]){_0x4c6a0c['errors']=_0x3c403f['data'][_0x111aed('0x73e')]||[{'message':_0x3c403f['toString'](),'type':'api.dashboardItem.update'}];for(let _0x28e6c2=0x0;_0x28e6c2<_0x3c403f[_0x111aed('0x1457')][_0x111aed('0x73e')][_0x111aed('0x1f73')];_0x28e6c2++){_0x50f676['error']({'title':_0x3c403f[_0x111aed('0x1457')]['errors'][_0x28e6c2][_0x111aed('0x412')],'msg':_0x3c403f[_0x111aed('0x1457')][_0x111aed('0x73e')][_0x28e6c2][_0x111aed('0x1603')]});}}else _0x50f676[_0x111aed('0x1db9')]({'title':_0x3c403f[_0x111aed('0x11c5')]?_0x111aed('0x14f7')+_0x3c403f[_0x111aed('0x11c5')]+_0x111aed('0x16e4')+_0x3c403f[_0x111aed('0x1833')]:_0x111aed('0x12b1'),'msg':_0x3c403f[_0x111aed('0x1457')]?JSON['stringify'](_0x3c403f[_0x111aed('0x1457')][_0x111aed('0x1603')]):_0x3c403f['toString']()});});}function _0x35543a(_0x263639){const _0x5dc7db=_0xc2a943;_0x4c6a0c[_0x5dc7db('0x73e')]=[];const _0x2dce4e=_0x196684['confirm']()[_0x5dc7db('0x24d3')](_0x5dc7db('0x530'))[_0x5dc7db('0xd5')]('The\x20dashboarditem\x20will\x20be\x20deleted.')[_0x5dc7db('0x2095')](_0x5dc7db('0x82c'))['ok'](_0x5dc7db('0x304'))['cancel'](_0x5dc7db('0x1b70'))[_0x5dc7db('0x104f')](_0x263639);_0x196684['show'](_0x2dce4e)['then'](function(){const _0x535804=_0x5dc7db;_0x5db369[_0x535804('0xdcf')][_0x535804('0x1da6')]({'id':_0x4c6a0c['dashboarditem']['id']})[_0x535804('0x1af5')][_0x535804('0x17e7')](function(){const _0x23afce=_0x535804;_0x49cbdd()['remove'](_0x4c6a0c[_0x23afce('0x40f')],{'id':_0x4c6a0c[_0x23afce('0x28c3')]['id']}),_0x50f676['success']({'title':_0x23afce('0x173f'),'msg':(_0x4c6a0c[_0x23afce('0x28c3')][_0x23afce('0x2aa')]||'dashboarditem')+'\x20has\x20been\x20deleted!'}),_0x30508c(_0x4c6a0c[_0x23afce('0x28c3')]);})[_0x535804('0x16df')](function(_0x249636){const _0x6aa1f0=_0x535804;if(_0x249636[_0x6aa1f0('0x1457')]&&_0x249636['data'][_0x6aa1f0('0x73e')]&&_0x249636['data']['errors'][_0x6aa1f0('0x1f73')]){_0x4c6a0c[_0x6aa1f0('0x73e')]=_0x249636[_0x6aa1f0('0x1457')][_0x6aa1f0('0x73e')]||[{'message':_0x249636[_0x6aa1f0('0x9b6')](),'type':'api.dashboardItem.delete'}];for(let _0x170708=0x0;_0x170708<_0x249636['data'][_0x6aa1f0('0x73e')][_0x6aa1f0('0x1f73')];_0x170708++){_0x50f676[_0x6aa1f0('0x1db9')]({'title':_0x249636[_0x6aa1f0('0x1457')][_0x6aa1f0('0x73e')][_0x170708][_0x6aa1f0('0x412')],'msg':_0x249636[_0x6aa1f0('0x1457')][_0x6aa1f0('0x73e')][_0x170708][_0x6aa1f0('0x1603')]});}}else _0x50f676['error']({'title':_0x249636[_0x6aa1f0('0x11c5')]?_0x6aa1f0('0x14f7')+_0x249636[_0x6aa1f0('0x11c5')]+_0x6aa1f0('0x16e4')+_0x249636[_0x6aa1f0('0x1833')]:'api.dashboardItem.delete','msg':_0x249636[_0x6aa1f0('0x1457')]?JSON[_0x6aa1f0('0x678')](_0x249636[_0x6aa1f0('0x1457')]['message']):_0x249636[_0x6aa1f0('0x1603')]||_0x249636[_0x6aa1f0('0x9b6')]()});});},function(){});}function _0x221b72(){const _0x11d58a=_0xc2a943,_0x5e9052={'core':{'multiple':![],'animation':!![],'error':function(_0x560e70){const _0x2f5055=a0_0xd29e;console['error'](_0x2f5055('0x12b8')+angular[_0x2f5055('0x1d04')](_0x560e70));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x11d58a('0x1b19')]};return _0x4c6a0c[_0x11d58a('0x197c')]['role']!==_0x11d58a('0x20bf')?_0x5db369['userProfileSection']['get']({'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x4c6a0c[_0x11d58a('0x197c')][_0x11d58a('0x1e76')],'sectionId':0x4b3})[_0x11d58a('0x1af5')]['then'](function(_0x1d8724){const _0x1defe8=_0x11d58a;return _0x4c6a0c[_0x1defe8('0x383')]=_0x1d8724&&_0x1d8724[_0x1defe8('0x335')]==0x1?_0x1d8724[_0x1defe8('0x2319')][0x0]:null,_0x5e9052;})['catch'](function(_0x4c1ce7){const _0x313dc9=_0x11d58a;_0x50f676[_0x313dc9('0x1db9')]({'title':_0x313dc9('0x1288'),'msg':_0x4c1ce7['message']});}):_0x5e9052;}function _0x58ae37(_0x5be06f){return _0x5be06f?{'loaded':_0x2df368,'select_node':_0x2841b2}:{'loaded':_0xc86d95,'select_node':_0x104dc8};}function _0x2841b2(_0x5213b0,_0x3cefa6){const _0x39d61b=_0xc2a943;_0x4c6a0c[_0x39d61b('0x68c')][_0x39d61b('0x1cf1')](!![])[_0x39d61b('0x221b')](),_0x4c6a0c[_0x39d61b('0x68c')][_0x39d61b('0x1cf1')](!![])[_0x39d61b('0x1746')](),_0x4c6a0c[_0x39d61b('0x5af')]=_0x3cefa6[_0x39d61b('0x10a')],_0x4c6a0c[_0x39d61b('0x5af')][_0x39d61b('0x8fa')]=!![],_0x4c6a0c[_0x39d61b('0xab1')]=_0x4c6a0c['treeCustomInstance'][_0x39d61b('0x1cf1')](!![])['get_path'](_0x4c6a0c[_0x39d61b('0x5af')])[_0x39d61b('0x1eba')]('/\x20'),_0x4c6a0c[_0x39d61b('0x2883')]=_0x39d61b('0x18bc'),_0x4c6a0c['query'][_0x39d61b('0x14e')]=_0x3cefa6[_0x39d61b('0x10a')]['id'],_0x4b2d8b();}function _0x104dc8(_0x34549c,_0x264a7e){const _0x353cd7=_0xc2a943;_0x4c6a0c['treeCustomInstance'][_0x353cd7('0x1cf1')](!![])[_0x353cd7('0x221b')](),_0x4c6a0c[_0x353cd7('0x24ea')][_0x353cd7('0x1cf1')](!![])[_0x353cd7('0x1746')](),_0x4c6a0c['currentNode']=_0x264a7e[_0x353cd7('0x10a')],_0x4c6a0c[_0x353cd7('0x5af')]['custom']=![],_0x4c6a0c['currentPath']=_0x4c6a0c[_0x353cd7('0x68c')]['jstree'](!![])[_0x353cd7('0x94b')](_0x4c6a0c[_0x353cd7('0x5af')])[_0x353cd7('0x1eba')]('/\x20'),_0x4c6a0c[_0x353cd7('0x2883')]=_0x353cd7('0x1369'),_0x4c6a0c['query'][_0x353cd7('0x14e')]=_0x264a7e[_0x353cd7('0x10a')]['id'],_0x4b2d8b();}function _0x2df368(){const _0x155e24=_0xc2a943;if(!_0x4c6a0c['newDashboardItem']&&_0x4c6a0c[_0x155e24('0x2883')]==='analyticCustomReport'){const _0x148771=_0x4c6a0c[_0x155e24('0x24ea')][_0x155e24('0x1cf1')](!![])[_0x155e24('0x1e85')](_0x4c6a0c[_0x155e24('0x826')][_0x155e24('0x14e')]);_0x2841b2(null,{'node':_0x148771,'selected':_0x148771['id']});}}function _0xc86d95(){const _0x55811a=_0xc2a943;if(!_0x4c6a0c['newDashboardItem']&&_0x4c6a0c[_0x55811a('0x2883')]===_0x55811a('0x1369')){const _0x2e8d01=_0x4c6a0c[_0x55811a('0x68c')][_0x55811a('0x1cf1')](!![])[_0x55811a('0x1e85')](_0x4c6a0c[_0x55811a('0x826')][_0x55811a('0x14e')]);_0x104dc8(null,{'node':_0x2e8d01,'selected':_0x2e8d01['id']});}}function _0x4b2d8b(){const _0x1ee62a=_0xc2a943;_0x4c6a0c[_0x1ee62a('0x826')][_0x1ee62a('0xf19')]=(_0x4c6a0c[_0x1ee62a('0x826')][_0x1ee62a('0x115a')]-0x1)*_0x4c6a0c[_0x1ee62a('0x826')][_0x1ee62a('0x193b')];if(_0x4c6a0c['apiName']){if(_0x4c6a0c['currentUser'][_0x1ee62a('0x1085')]==='admin')_0x4c6a0c[_0x1ee62a('0x1691')]=_0x5db369[_0x4c6a0c[_0x1ee62a('0x2883')]][_0x1ee62a('0x1c53')](_0x4c6a0c[_0x1ee62a('0x826')],_0x323b32)[_0x1ee62a('0x1af5')];else{if(!_0x4c6a0c['userProfileSection'])return _0x323b32(null);else{if(_0x4c6a0c['userProfileSection'][_0x1ee62a('0x9e3')])_0x4c6a0c[_0x1ee62a('0x1691')]=_0x5db369[_0x4c6a0c[_0x1ee62a('0x2883')]][_0x1ee62a('0x1c53')](_0x4c6a0c['query'],_0x323b32)[_0x1ee62a('0x1af5')];else{let _0x2a1546=[];_0x4c6a0c[_0x1ee62a('0x1691')]=_0x5db369[_0x4c6a0c[_0x1ee62a('0x2883')]]['get'](_0x4c6a0c[_0x1ee62a('0x826')])['$promise'][_0x1ee62a('0x17e7')](function(_0x156f02){const _0x41640b=_0x1ee62a;return _0x2a1546=_0x156f02&&_0x156f02[_0x41640b('0x2319')]?_0x156f02[_0x41640b('0x2319')]:[],_0x2a1546[_0x41640b('0x1f73')]>0x0?_0x5db369[_0x41640b('0x78d')][_0x41640b('0x1c53')]({'sectionId':_0x4c6a0c[_0x41640b('0x383')]['id'],'type':_0x4c6a0c[_0x41640b('0x2883')]===_0x41640b('0x1369')?_0x41640b('0x9fb'):_0x41640b('0xc39')})[_0x41640b('0x1af5')][_0x41640b('0x17e7')](function(_0x483371){const _0x2aad72=_0x41640b,_0x1b6ad6=_0x483371&&_0x483371[_0x2aad72('0x2319')]?_0x483371[_0x2aad72('0x2319')]:[];if(_0x1b6ad6[_0x2aad72('0x1f73')]>0x0){const _0x2ccf4a=[];return _0x2a1546[_0x2aad72('0xccd')](function(_0x28977e){const _0x84af77=_0x2aad72,_0x2c784b=_0x49cbdd()['find'](_0x1b6ad6,[_0x84af77('0x5db'),_0x28977e['id']]);if(_0x2c784b)_0x2ccf4a[_0x84af77('0x269f')](_0x28977e);}),_0x323b32({'count':_0x2ccf4a['length'],'rows':_0x2ccf4a});}else return _0x323b32(null);}):_0x323b32(null);})[_0x1ee62a('0x16df')](function(_0x26d36f){const _0x42a671=_0x1ee62a;_0x50f676[_0x42a671('0x1db9')]({'title':_0x26d36f['status']?_0x42a671('0x14f7')+_0x26d36f[_0x42a671('0x11c5')]+_0x42a671('0x16e4')+_0x26d36f[_0x42a671('0x1833')]:_0x42a671('0xfbd'),'msg':_0x26d36f[_0x42a671('0x1457')]?JSON[_0x42a671('0x678')](_0x26d36f[_0x42a671('0x1457')]):_0x26d36f[_0x42a671('0x9b6')]()});});}}}}}function _0x323b32(_0x5d129a){const _0x3d4f3c=_0xc2a943;_0x4c6a0c[_0x3d4f3c('0xe04')]=_0x5d129a||{'count':0x0,'rows':[]},!_0x4c6a0c[_0x3d4f3c('0x11ac')]&&_0x4c6a0c['selectedReport'][_0x3d4f3c('0x269f')](_0x49cbdd()[_0x3d4f3c('0xe8e')](_0x4c6a0c[_0x3d4f3c('0xe04')]['rows'],{'id':_0x4c6a0c[_0x3d4f3c('0x32e')]['id']}));}function _0x1ec090(){const _0x44a44c=_0xc2a943;_0x4c6a0c[_0x44a44c('0x233d')]=_0x4c6a0c[_0x44a44c('0x1ab7')][0x0]?angular[_0x44a44c('0x12e6')](_0x4c6a0c[_0x44a44c('0x1ab7')][0x0][_0x44a44c('0x204b')]):[],_0x4c6a0c[_0x44a44c('0xae0')]=_0x4c6a0c[_0x44a44c('0x1ab7')][0x1]?angular['fromJson'](_0x4c6a0c['treeReports'][0x1][_0x44a44c('0x204b')]):[],_0x4c6a0c[_0x44a44c('0x266a')]=_0x221b72(),_0x4c6a0c[_0x44a44c('0x1cce')]=_0x58ae37(![]),_0x4c6a0c[_0x44a44c('0x1ef9')]=_0x58ae37(!![]),_0x196684[_0x44a44c('0x28e2')]({'controller':function(){return _0x4c6a0c;},'controllerAs':'vm','templateUrl':_0x300dd6,'autoWrap':!![],'skipHide':!![]});}function _0x13e0e5(){const _0x3f08b8=_0xc2a943;_0x4c6a0c[_0x3f08b8('0x28c3')]['report']=_0x4c6a0c['selectedReport'][0x0][_0x3f08b8('0x2aa')],_0x4c6a0c[_0x3f08b8('0x28c3')][_0x3f08b8('0x17d1')]=_0x4c6a0c[_0x3f08b8('0xffd')][0x0]['id'],_0x4c6a0c[_0x3f08b8('0x28c3')]['reportType']=_0x4c6a0c['currentNode'][_0x3f08b8('0x8fa')]?_0x3f08b8('0x8fa'):_0x3f08b8('0x1543');if(!_0x4c6a0c['newDashboardItem']){const _0x3dd1d5={'name':_0x3f08b8('0x17d1'),'type':_0x4c6a0c[_0x3f08b8('0x28c3')]['reportType'],'value':_0x4c6a0c['selectedReport'][0x0]['id']};_0x4c6a0c['dashboarditem'][_0x3f08b8('0xbf3')][_0x3f08b8('0x2335')](_0x49cbdd()[_0x3f08b8('0x1f4c')](_0x4c6a0c[_0x3f08b8('0x28c3')][_0x3f08b8('0xbf3')],0x1,_0x3dd1d5));}_0x33d3eb[_0x3f08b8('0x13cc')]['report'][_0x3f08b8('0x23f5')](),_0x196684[_0x3f08b8('0x212a')]();}function _0x30e3ee(){_0x196684['hide']();}function _0x581dbd(_0x6c4957){return _0x6c4957===null?undefined:new Date(_0x6c4957);}function _0x30508c(_0x18c14d){const _0x24cd6b=_0xc2a943;_0x196684[_0x24cd6b('0x212a')](_0x18c14d);}}const _0x2fdcd4=_0x5100f7,_0x51b3e4=_0x4cf2bc['p']+_0x4376d8('0x1631');_0x29eb4d[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'api',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x282f'),_0x4376d8('0x383')];function _0x29eb4d(_0x2d5268,_0x27c7cf,_0xf5769f,_0x5dbe10,_0x40fdde,_0x200064,_0x388e6c,_0x154c44,_0x1b9f12,_0x47a633,_0x14d353,_0x508634){const _0x55ac44=_0x4376d8,_0x2debb5=this;_0x2debb5['currentUser']=_0x47a633[_0x55ac44('0x2831')](),_0x2debb5[_0x55ac44('0x1d11')]=_0x200064,_0x2debb5[_0x55ac44('0x1aeb')]=_0x388e6c,_0x2debb5[_0x55ac44('0x1572')]=_0x2debb5[_0x55ac44('0x1aeb')][_0x55ac44('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2debb5[_0x55ac44('0xaed')]=_0x27c7cf[_0x55ac44('0x14fe')]()+'://'+_0x27c7cf[_0x55ac44('0x108')](),_0x2debb5[_0x55ac44('0x282f')]=_0x14d353||_0x2d5268[_0x55ac44('0x16fb')][_0x55ac44('0x282f')]||{},_0x2debb5[_0x55ac44('0x383')]=_0x508634&&_0x508634['count']==0x1?_0x508634[_0x55ac44('0x2319')][0x0]:null,_0x2debb5['crudPermissions']=_0x47a633[_0x55ac44('0x17a9')](_0x2debb5[_0x55ac44('0x383')]?_0x2debb5[_0x55ac44('0x383')][_0x55ac44('0x103e')]:null),_0x2debb5[_0x55ac44('0x6ee')]={},_0x2debb5[_0x55ac44('0xde7')]=_0x2d5268[_0x55ac44('0x16fb')][_0x55ac44('0x1523')]||0x0,_0x2debb5[_0x55ac44('0x1459')]=_0x36a418,_0x2debb5[_0x55ac44('0x2794')]=_0x230a4f,_0x2debb5[_0x55ac44('0x99f')]=_0x1b9f12[_0x55ac44('0x1178')],_0x2debb5[_0x55ac44('0x1823')]=_0x237464,_0x2debb5[_0x55ac44('0x553')]=_0x59e72c;function _0x36a418(_0x507770,_0x56e3ab){const _0x44a050=_0x55ac44;_0xf5769f[_0x44a050('0x28e2')]({'controller':'CustomDashboardcloneController','controllerAs':'vm','templateUrl':_0x51b3e4,'parent':angular[_0x44a050('0x1ce1')](_0x5dbe10[_0x44a050('0x13aa')]),'targetEvent':_0x56e3ab,'clickOutsideToClose':!![],'locals':{'customDashboard':_0x507770,'customDashboards':_0x2debb5[_0x44a050('0x10ca')]?_0x2debb5[_0x44a050('0x10ca')][_0x44a050('0x2319')]:[],'crudPermissions':_0x2debb5[_0x44a050('0x103e')]}});}function _0x230a4f(_0x128819){const _0x5f1994=_0x55ac44;_0x2d5268['go'](_0x5f1994('0xc99'),{'id':_0x128819['id']});}function _0x237464(){const _0x203b24=_0x55ac44;_0x2d5268['go'](_0x203b24('0x1dda'),{},{'reload':_0x203b24('0x1dda')});}function _0x59e72c(){const _0x53ee33=_0x55ac44;_0x154c44[_0x53ee33('0x40f')][_0x53ee33('0x27ba')]({'id':_0x2debb5[_0x53ee33('0x282f')]['id']},_0x2debb5[_0x53ee33('0x282f')])['$promise'][_0x53ee33('0x17e7')](function(){const _0x4dbc76=_0x53ee33;_0x1b9f12[_0x4dbc76('0x130d')]({'title':'CustomDashboard\x20updated!','msg':_0x2debb5[_0x4dbc76('0x282f')]['name']?_0x2debb5[_0x4dbc76('0x282f')][_0x4dbc76('0x2aa')]+_0x4dbc76('0x12b0'):''});})[_0x53ee33('0x16df')](function(_0x2f1757){const _0x587b9c=_0x53ee33;_0x1b9f12[_0x587b9c('0x1db9')]({'title':_0x2f1757[_0x587b9c('0x11c5')]?_0x587b9c('0x14f7')+_0x2f1757[_0x587b9c('0x11c5')]+_0x587b9c('0x16e4')+_0x2f1757[_0x587b9c('0x1833')]:_0x587b9c('0x25c4'),'msg':_0x2f1757[_0x587b9c('0x1457')]?JSON[_0x587b9c('0x678')](_0x2f1757['data']):_0x2f1757[_0x587b9c('0x9b6')]()});});}}const _0x3f8277=_0x29eb4d;_0x518013[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state','$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty','intervals',_0x4376d8('0x231f'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x518013(_0x219f5f,_0x1fc432,_0x43a100,_0x3a35e6,_0x257de8,_0x7c053c,_0x1a45fd,_0x1acf19,_0x362c9e,_0x5f10c7,_0x1a5153,_0x5b040e,_0x71d928,_0x26ca9d){const _0x3791f8=_0x4376d8,_0x1428ed=this;_0x1428ed[_0x3791f8('0x197c')]=_0x1a5153[_0x3791f8('0x2831')](),_0x1428ed[_0x3791f8('0x73e')]=[],_0x1428ed[_0x3791f8('0x1aeb')]=_0x71d928,_0x1428ed[_0x3791f8('0x1d11')]=_0x5b040e,_0x1428ed['crudPermissions']=_0x26ca9d,_0x1428ed[_0x3791f8('0x6ee')]={},_0x1428ed[_0x3791f8('0x1572')]=_0x1428ed[_0x3791f8('0x1aeb')]&&_0x1428ed[_0x3791f8('0x1aeb')][_0x3791f8('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1428ed[_0x3791f8('0x24d3')]=_0x3791f8('0x1481'),_0x1428ed['interval']=angular[_0x3791f8('0x14e5')](_0x362c9e),_0x1428ed[_0x3791f8('0x1be1')]=_0x1acf19,_0x1428ed['newInterval']=![];!_0x1428ed[_0x3791f8('0x231f')]&&(_0x1428ed[_0x3791f8('0x231f')]={},_0x1428ed[_0x3791f8('0x24d3')]=_0x3791f8('0x1917'),_0x1428ed['newInterval']=!![]);_0x1428ed[_0x3791f8('0x28b2')]=_0x51ea5c,_0x1428ed[_0x3791f8('0x872')]=_0x332fca,_0x1428ed[_0x3791f8('0x1420')]=_0x12fa5a,_0x1428ed[_0x3791f8('0x1300')]=_0x280196,_0x1428ed['closeDialog']=_0x349121;function _0x51ea5c(){const _0x23cf55=_0x3791f8;_0x1428ed[_0x23cf55('0x73e')]=[],_0x5f10c7['interval'][_0x23cf55('0x2439')](_0x1428ed['interval'])[_0x23cf55('0x1af5')][_0x23cf55('0x17e7')](function(_0x37d9a1){const _0xd85aeb=_0x23cf55;_0x1428ed[_0xd85aeb('0x1be1')][_0xd85aeb('0x1893')](_0x37d9a1[_0xd85aeb('0x16b2')]()),_0x1a45fd[_0xd85aeb('0x130d')]({'title':_0xd85aeb('0x2378'),'msg':_0x1428ed['interval'][_0xd85aeb('0x2aa')]?_0x1428ed[_0xd85aeb('0x231f')][_0xd85aeb('0x2aa')]+_0xd85aeb('0x15a'):''}),_0x349121(_0x37d9a1);})['catch'](function(_0x277a03){const _0x2a72fb=_0x23cf55;if(_0x277a03['data']&&_0x277a03[_0x2a72fb('0x1457')][_0x2a72fb('0x73e')]&&_0x277a03[_0x2a72fb('0x1457')]['errors'][_0x2a72fb('0x1f73')]){_0x1428ed[_0x2a72fb('0x73e')]=_0x277a03[_0x2a72fb('0x1457')][_0x2a72fb('0x73e')]||[{'message':_0x277a03[_0x2a72fb('0x9b6')](),'type':_0x2a72fb('0x2475')}];for(let _0x1e9358=0x0;_0x1e9358<_0x277a03['data'][_0x2a72fb('0x73e')][_0x2a72fb('0x1f73')];_0x1e9358+=0x1){_0x1a45fd[_0x2a72fb('0x1db9')]({'title':_0x277a03[_0x2a72fb('0x1457')][_0x2a72fb('0x73e')][_0x1e9358]['type'],'msg':_0x277a03['data'][_0x2a72fb('0x73e')][_0x1e9358][_0x2a72fb('0x1603')]});}}else _0x1a45fd[_0x2a72fb('0x1db9')]({'title':_0x277a03[_0x2a72fb('0x11c5')]?_0x2a72fb('0x14f7')+_0x277a03[_0x2a72fb('0x11c5')]+'\x20-\x20'+_0x277a03[_0x2a72fb('0x1833')]:_0x2a72fb('0x2475'),'msg':_0x277a03['data']?JSON[_0x2a72fb('0x678')](_0x277a03[_0x2a72fb('0x1457')][_0x2a72fb('0x1603')]):_0x277a03[_0x2a72fb('0x9b6')]()});});}function _0x332fca(){const _0x342900=_0x3791f8;_0x1428ed[_0x342900('0x73e')]=[],_0x5f10c7['interval'][_0x342900('0x27ba')]({'id':_0x1428ed[_0x342900('0x231f')]['id']},_0x1428ed[_0x342900('0x231f')])['$promise'][_0x342900('0x17e7')](function(_0x3ac0cb){const _0x58c4e7=_0x342900,_0x12acad=_0x49cbdd()[_0x58c4e7('0xe8e')](_0x1428ed[_0x58c4e7('0x1be1')],{'id':_0x3ac0cb['id']});_0x12acad&&_0x49cbdd()['merge'](_0x12acad,_0x49cbdd()[_0x58c4e7('0x230a')](_0x3ac0cb['toJSON'](),_0x49cbdd()[_0x58c4e7('0x1c0f')](_0x12acad))),_0x1a45fd[_0x58c4e7('0x130d')]({'title':_0x58c4e7('0x6a9'),'msg':_0x1428ed[_0x58c4e7('0x231f')][_0x58c4e7('0x2aa')]?_0x1428ed[_0x58c4e7('0x231f')][_0x58c4e7('0x2aa')]+_0x58c4e7('0x15ca'):''}),_0x349121(_0x3ac0cb);})['catch'](function(_0x374b1a){const _0xd5f47f=_0x342900;if(_0x374b1a[_0xd5f47f('0x1457')]&&_0x374b1a[_0xd5f47f('0x1457')]['errors']&&_0x374b1a[_0xd5f47f('0x1457')][_0xd5f47f('0x73e')]['length']){_0x1428ed[_0xd5f47f('0x73e')]=_0x374b1a[_0xd5f47f('0x1457')]['errors']||[{'message':_0x374b1a[_0xd5f47f('0x9b6')](),'type':_0xd5f47f('0xed5')}];for(let _0x12d68f=0x0;_0x12d68f<_0x374b1a[_0xd5f47f('0x1457')][_0xd5f47f('0x73e')][_0xd5f47f('0x1f73')];_0x12d68f++){_0x1a45fd[_0xd5f47f('0x1db9')]({'title':_0x374b1a['data']['errors'][_0x12d68f][_0xd5f47f('0x412')],'msg':_0x374b1a[_0xd5f47f('0x1457')][_0xd5f47f('0x73e')][_0x12d68f][_0xd5f47f('0x1603')]});}}else _0x1a45fd[_0xd5f47f('0x1db9')]({'title':_0x374b1a['status']?'API:'+_0x374b1a['status']+'\x20-\x20'+_0x374b1a[_0xd5f47f('0x1833')]:_0xd5f47f('0xed5'),'msg':_0x374b1a[_0xd5f47f('0x1457')]?JSON[_0xd5f47f('0x678')](_0x374b1a[_0xd5f47f('0x1457')][_0xd5f47f('0x1603')]):_0x374b1a[_0xd5f47f('0x9b6')]()});});}function _0x12fa5a(_0x5dab65){const _0xc41388=_0x3791f8;_0x1428ed[_0xc41388('0x73e')]=[];const _0x3d4d59=_0x3a35e6[_0xc41388('0x1121')]()[_0xc41388('0x24d3')](_0xc41388('0x530'))['content'](_0xc41388('0x243'))[_0xc41388('0x2095')](_0xc41388('0x591'))['ok'](_0xc41388('0x304'))[_0xc41388('0x1d47')]('Cancel')[_0xc41388('0x104f')](_0x5dab65);_0x3a35e6['show'](_0x3d4d59)[_0xc41388('0x17e7')](function(){const _0x175786=_0xc41388;_0x5f10c7[_0x175786('0x231f')][_0x175786('0x1da6')]({'id':_0x1428ed[_0x175786('0x231f')]['id']})[_0x175786('0x1af5')]['then'](function(){const _0x58e2e4=_0x175786;_0x49cbdd()[_0x58e2e4('0x5f3')](_0x1428ed[_0x58e2e4('0x1be1')],{'id':_0x1428ed[_0x58e2e4('0x231f')]['id']}),_0x1a45fd[_0x58e2e4('0x130d')]({'title':_0x58e2e4('0x1d45'),'msg':(_0x1428ed[_0x58e2e4('0x231f')][_0x58e2e4('0x2aa')]||_0x58e2e4('0x231f'))+_0x58e2e4('0x149f')}),_0x349121(_0x1428ed[_0x58e2e4('0x231f')]);})[_0x175786('0x16df')](function(_0x47cc75){const _0x3261a1=_0x175786;if(_0x47cc75[_0x3261a1('0x1457')]&&_0x47cc75[_0x3261a1('0x1457')][_0x3261a1('0x73e')]&&_0x47cc75[_0x3261a1('0x1457')]['errors'][_0x3261a1('0x1f73')]){_0x1428ed[_0x3261a1('0x73e')]=_0x47cc75['data']['errors']||[{'message':_0x47cc75[_0x3261a1('0x9b6')](),'type':_0x3261a1('0x20ea')}];for(let _0xfd15b4=0x0;_0xfd15b4<_0x47cc75[_0x3261a1('0x1457')][_0x3261a1('0x73e')][_0x3261a1('0x1f73')];_0xfd15b4++){_0x1a45fd['error']({'title':_0x47cc75[_0x3261a1('0x1457')]['errors'][_0xfd15b4]['type'],'msg':_0x47cc75[_0x3261a1('0x1457')]['errors'][_0xfd15b4]['message']});}}else _0x1a45fd['error']({'title':_0x47cc75[_0x3261a1('0x11c5')]?_0x3261a1('0x14f7')+_0x47cc75[_0x3261a1('0x11c5')]+_0x3261a1('0x16e4')+_0x47cc75[_0x3261a1('0x1833')]:_0x3261a1('0x20ea'),'msg':_0x47cc75[_0x3261a1('0x1457')]?JSON[_0x3261a1('0x678')](_0x47cc75[_0x3261a1('0x1457')][_0x3261a1('0x1603')]):_0x47cc75['message']||_0x47cc75[_0x3261a1('0x9b6')]()});});},function(){});}function _0x280196(_0x28bafd){return _0x28bafd===null?undefined:new Date(_0x28bafd);}function _0x349121(_0xff93bb){const _0x19b90f=_0x3791f8;_0x3a35e6[_0x19b90f('0x212a')](_0xff93bb);}}const _0x16d714=_0x518013;_0x2a55a2['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x14f6'),'$mdToast',_0x4376d8('0x12f1'),_0x4376d8('0x231f'),_0x4376d8('0x1be1'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x2a55a2(_0x1b8138,_0x13205c,_0x3f4b03,_0x5cd85d,_0x28b4d9,_0x4fb9bc,_0x43c21b,_0x3effac,_0x3ada7a,_0x2718df){const _0x4b0e4f=_0x4376d8,_0x5a4df0=this;_0x5a4df0['currentUser']=_0x3ada7a[_0x4b0e4f('0x2831')](),_0x5a4df0[_0x4b0e4f('0x73e')]=[],_0x5a4df0[_0x4b0e4f('0x24d3')]=_0x4b0e4f('0x1481'),_0x5a4df0['interval']=angular[_0x4b0e4f('0x14e5')](_0x28b4d9),_0x5a4df0['intervals']=_0x4fb9bc,_0x5a4df0[_0x4b0e4f('0x42d')]=![],_0x5a4df0[_0x4b0e4f('0x11e0')]=[_0x4b0e4f('0x1256'),_0x4b0e4f('0x8fa')],_0x5a4df0[_0x4b0e4f('0x103e')]=_0x2718df,_0x5a4df0[_0x4b0e4f('0x9d')]=_0x5cd85d['getDaysOfWeek'](),_0x5a4df0[_0x4b0e4f('0xd0')]=_0x5cd85d[_0x4b0e4f('0x1743')](),_0x5a4df0[_0x4b0e4f('0x36e')]=_0x5cd85d[_0x4b0e4f('0x912')](),_0x5a4df0['daysOfMonth']=_0x5cd85d['getDaysOfMonth']();if(!_0x5a4df0[_0x4b0e4f('0x231f')])_0x5a4df0[_0x4b0e4f('0x231f')]={'interval':_0x4b0e4f('0x20c3')},_0x5a4df0[_0x4b0e4f('0x412')]=_0x4b0e4f('0x1256'),_0x5a4df0[_0x4b0e4f('0x24d3')]=_0x4b0e4f('0x1917'),_0x5a4df0[_0x4b0e4f('0x42d')]=!![];else{if(_0x5a4df0['interval'][_0x4b0e4f('0x231f')]!=='*,*,*,*'){_0x5a4df0['type']=_0x4b0e4f('0x8fa');const _0x474272=_0x5a4df0['interval'][_0x4b0e4f('0x231f')][_0x4b0e4f('0x2007')](','),_0x30cf85=_0x474272[0x0],_0x3b8f3b=_0x474272[0x1],_0x57a046=_0x474272[0x2],_0x2ac604=_0x474272[0x3];if(_0x30cf85!=='*'){const _0x71164a=_0x30cf85[_0x4b0e4f('0x2007')]('-')[0x0],_0x7ec612=_0x30cf85['split']('-')[0x1];let _0x4f8afb;_0x4f8afb=new Date(),_0x4f8afb[_0x4b0e4f('0x196e')](Number(_0x71164a[_0x4b0e4f('0x2007')](':')[0x0])),_0x4f8afb[_0x4b0e4f('0x57b')](Number(_0x71164a[_0x4b0e4f('0x2007')](':')[0x1])),_0x5a4df0[_0x4b0e4f('0x19bf')]=_0x4f8afb,_0x4f8afb=new Date(),_0x4f8afb['setHours'](Number(_0x7ec612['split'](':')[0x0])),_0x4f8afb[_0x4b0e4f('0x57b')](Number(_0x7ec612[_0x4b0e4f('0x2007')](':')[0x1])),_0x5a4df0['timeRangeTo']=_0x4f8afb;}_0x3b8f3b!=='*'&&(_0x5a4df0[_0x4b0e4f('0x1a98')]=_0x3b8f3b['split']('-')[0x0],_0x5a4df0[_0x4b0e4f('0x1627')]=_0x3b8f3b[_0x4b0e4f('0x2007')]('-')[0x1]),_0x57a046!=='*'&&(_0x5a4df0[_0x4b0e4f('0x18d1')]=_0x57a046['split']('-')[0x0],_0x5a4df0[_0x4b0e4f('0x271d')]=_0x57a046[_0x4b0e4f('0x2007')]('-')[0x1]),_0x2ac604!=='*'&&(_0x5a4df0[_0x4b0e4f('0x88c')]=_0x2ac604['split']('-')[0x0],_0x5a4df0[_0x4b0e4f('0x1f09')]=_0x2ac604[_0x4b0e4f('0x2007')]('-')[0x1]);}else _0x5a4df0['type']=_0x4b0e4f('0x1256');}_0x1b8138[_0x4b0e4f('0x16fb')]['id']&&!_0x5a4df0[_0x4b0e4f('0x231f')][_0x4b0e4f('0xf84')]&&(_0x5a4df0[_0x4b0e4f('0x231f')][_0x4b0e4f('0x24a9')]=_0x1b8138[_0x4b0e4f('0x16fb')]['id']);_0x5a4df0[_0x4b0e4f('0x231f')][_0x4b0e4f('0x24a9')]&&_0x5a4df0['interval'][_0x4b0e4f('0xf84')]&&(_0x5a4df0[_0x4b0e4f('0x412')]='list');_0x5a4df0['addNewInterval']=_0x5b7fa8,_0x5a4df0[_0x4b0e4f('0x872')]=_0x329b87,_0x5a4df0[_0x4b0e4f('0x136e')]=_0x4265ea;_0x5a4df0[_0x4b0e4f('0x231f')][_0x4b0e4f('0xf84')]&&(_0x3ada7a[_0x4b0e4f('0x1ba2')](_0x4b0e4f('0x20bf'))?_0x3effac[_0x4b0e4f('0x231f')][_0x4b0e4f('0x1c53')]({'fields':'id,name,interval,IntervalId','IntervalId':'null','nolimit':!![]})['$promise'][_0x4b0e4f('0x17e7')](function(_0x4d17bf){const _0x24355b=_0x4b0e4f;_0x5a4df0[_0x24355b('0x1be1')]=_0x4d17bf[_0x24355b('0x2319')]||[];})['catch'](function(_0x39075f){const _0x58a59a=_0x4b0e4f;_0x43c21b['error']({'title':_0x39075f[_0x58a59a('0x11c5')]?_0x58a59a('0x14f7')+_0x39075f['status']+_0x58a59a('0x16e4')+_0x39075f['statusText']:_0x58a59a('0x87a'),'msg':_0x39075f[_0x58a59a('0x1457')]?JSON[_0x58a59a('0x678')](_0x39075f[_0x58a59a('0x1457')]):_0x39075f[_0x58a59a('0x9b6')]()});}):_0x3effac[_0x4b0e4f('0x231f')][_0x4b0e4f('0x1c53')]({'fields':'id,name,interval,IntervalId','IntervalId':_0x4b0e4f('0x9bb'),'nolimit':!![]})[_0x4b0e4f('0x1af5')][_0x4b0e4f('0x17e7')](function(_0x1875dc){const _0x476112=_0x4b0e4f;_0x5a4df0[_0x476112('0x1be1')]=_0x1875dc['rows']||[];})[_0x4b0e4f('0x17e7')](function(){const _0x5e076f=_0x4b0e4f;return _0x3effac['userProfileSection']['get']({'userProfileId':_0x5a4df0[_0x5e076f('0x197c')][_0x5e076f('0x1e76')],'sectionId':0x3ec})['$promise'];})[_0x4b0e4f('0x17e7')](function(_0x491ed5){const _0x3ff4b2=_0x4b0e4f,_0x3756bf=_0x491ed5&&_0x491ed5[_0x3ff4b2('0x2319')]?_0x491ed5['rows'][0x0]:null;if(!_0x3756bf)_0x5a4df0[_0x3ff4b2('0x1be1')]=[];else{if(!_0x3756bf[_0x3ff4b2('0x9e3')])return _0x3effac[_0x3ff4b2('0x78d')][_0x3ff4b2('0x1c53')]({'sectionId':_0x3756bf['id']})['$promise'][_0x3ff4b2('0x17e7')](function(_0x5cd801){const _0x7c1790=_0x3ff4b2,_0x4b5c43=_0x5cd801&&_0x5cd801[_0x7c1790('0x2319')]?_0x5cd801[_0x7c1790('0x2319')]:[],_0x2c9425=[];let _0x463de7=null;_0x5a4df0[_0x7c1790('0x231f')]&&(_0x463de7=_0x49cbdd()[_0x7c1790('0xe8e')](_0x5a4df0[_0x7c1790('0x1be1')],{'name':_0x5a4df0[_0x7c1790('0x231f')][_0x7c1790('0x24a9')]})),_0x463de7&&!_0x49cbdd()[_0x7c1790('0x26f8')](_0x4b5c43,[_0x7c1790('0x5db'),_0x463de7['id']])&&_0x5a4df0[_0x7c1790('0x1be1')][_0x7c1790('0xccd')](function(_0x3563ec){const _0x4820ba=_0x7c1790;_0x3563ec['id']===_0x463de7['id']&&(_0x3563ec['canSelect']=![],_0x2c9425[_0x4820ba('0x269f')](_0x3563ec));}),_0x5a4df0[_0x7c1790('0x1be1')]=_0x2c9425;});}})['catch'](function(_0x199d63){const _0x54301f=_0x4b0e4f;_0x43c21b[_0x54301f('0x1db9')]({'title':_0x199d63[_0x54301f('0x11c5')]?_0x54301f('0x14f7')+_0x199d63[_0x54301f('0x11c5')]+'\x20-\x20'+_0x199d63[_0x54301f('0x1833')]:'SYSTEM:GET_INTERVALS','msg':_0x199d63[_0x54301f('0x1457')]?JSON['stringify'](_0x199d63[_0x54301f('0x1457')]):_0x199d63[_0x54301f('0x9b6')]()});}));function _0x319b01(){const _0x49ae09=_0x4b0e4f;switch(_0x5a4df0[_0x49ae09('0x412')]){case _0x49ae09('0x1256'):case _0x49ae09('0x134c'):return _0x49ae09('0x20c3');case _0x49ae09('0x8fa'):{const _0x38fc7a=[];if(_0x5a4df0['timeRangeFrom']!=='*'&&_0x5a4df0[_0x49ae09('0x19bf')]&&_0x5a4df0['timeRangeTo']){const _0x14c0c7=(_0x5a4df0[_0x49ae09('0x19bf')][_0x49ae09('0x13c6')]()<0xa?'0':'')+_0x5a4df0[_0x49ae09('0x19bf')][_0x49ae09('0x13c6')]()+':'+((_0x5a4df0['timeRangeFrom'][_0x49ae09('0xf42')]()<0xa?'0':'')+_0x5a4df0[_0x49ae09('0x19bf')][_0x49ae09('0xf42')]()),_0x1ebf3f=(_0x5a4df0[_0x49ae09('0x1c12')][_0x49ae09('0x13c6')]()<0xa?'0':'')+_0x5a4df0['timeRangeTo'][_0x49ae09('0x13c6')]()+':'+((_0x5a4df0[_0x49ae09('0x1c12')]['getMinutes']()<0xa?'0':'')+_0x5a4df0['timeRangeTo'][_0x49ae09('0xf42')]());_0x38fc7a['push'](_0x14c0c7+'-'+_0x1ebf3f);}else _0x38fc7a[_0x49ae09('0x269f')]('*');return _0x5a4df0[_0x49ae09('0x1a98')]?_0x5a4df0[_0x49ae09('0x1627')]?_0x38fc7a[_0x49ae09('0x269f')](_0x5a4df0['dayOfWeekFrom']+'-'+_0x5a4df0[_0x49ae09('0x1627')]):_0x38fc7a[_0x49ae09('0x269f')](_0x5a4df0[_0x49ae09('0x1a98')]):_0x38fc7a['push']('*'),_0x5a4df0[_0x49ae09('0x18d1')]?_0x5a4df0[_0x49ae09('0x271d')]?_0x38fc7a['push'](_0x5a4df0[_0x49ae09('0x18d1')]+'-'+_0x5a4df0[_0x49ae09('0x271d')]):_0x38fc7a[_0x49ae09('0x269f')](_0x5a4df0[_0x49ae09('0x18d1')]):_0x38fc7a[_0x49ae09('0x269f')]('*'),_0x5a4df0['monthFrom']?_0x5a4df0[_0x49ae09('0x1f09')]?_0x38fc7a[_0x49ae09('0x269f')](_0x5a4df0[_0x49ae09('0x88c')]+'-'+_0x5a4df0[_0x49ae09('0x1f09')]):_0x38fc7a[_0x49ae09('0x269f')](_0x5a4df0[_0x49ae09('0x88c')]):_0x38fc7a[_0x49ae09('0x269f')]('*'),_0x38fc7a[_0x49ae09('0x1eba')]();}}}function _0x5b7fa8(){const _0xbe908e=_0x4b0e4f;_0x5a4df0[_0xbe908e('0x73e')]=[],_0x5a4df0['interval'][_0xbe908e('0x231f')]=_0x319b01(),_0x3effac[_0xbe908e('0x231f')]['save'](_0x5a4df0[_0xbe908e('0x231f')])[_0xbe908e('0x1af5')][_0xbe908e('0x17e7')](function(_0xf0119b){const _0x4c63f9=_0xbe908e;_0x5a4df0['intervals'][_0x4c63f9('0x269f')](_0xf0119b),_0x43c21b[_0x4c63f9('0x130d')]({'title':_0x4c63f9('0x2378'),'msg':_0x5a4df0[_0x4c63f9('0x231f')][_0x4c63f9('0x2aa')]?_0x5a4df0['interval'][_0x4c63f9('0x2aa')]+_0x4c63f9('0x15a'):''}),_0x4265ea();})[_0xbe908e('0x16df')](function(_0x5b1acf){const _0x126612=_0xbe908e;console[_0x126612('0x1db9')](_0x5b1acf),_0x5a4df0['errors']=_0x5b1acf['data'][_0x126612('0x73e')]||[{'message':_0x5b1acf[_0x126612('0x9b6')](),'type':_0x126612('0x2475')}];});}function _0x329b87(){const _0x534aca=_0x4b0e4f;_0x5a4df0['errors']=[],_0x5a4df0['interval']['interval']=_0x319b01(),_0x5a4df0['interval'][_0x534aca('0xf84')]?(_0x5a4df0['type']!==_0x534aca('0x134c')&&(_0x5a4df0['interval'][_0x534aca('0x24a9')]=null),_0x4265ea(_0x5a4df0[_0x534aca('0x231f')])):_0x3effac[_0x534aca('0x231f')][_0x534aca('0x27ba')]({'id':_0x5a4df0['interval']['id']},_0x5a4df0[_0x534aca('0x231f')])[_0x534aca('0x1af5')]['then'](function(_0x5d159f){const _0x19848b=_0x534aca,_0x2dac52=_0x49cbdd()['find'](_0x5a4df0[_0x19848b('0x1be1')],{'id':_0x5d159f['id']});_0x2dac52&&_0x49cbdd()[_0x19848b('0x1ced')](_0x2dac52,_0x5d159f),_0x43c21b[_0x19848b('0x130d')]({'title':_0x19848b('0x6a9'),'msg':'Interval\x20has\x20been\x20saved!'}),_0x4265ea();})[_0x534aca('0x16df')](function(_0x1618a0){const _0x2e76d0=_0x534aca;console[_0x2e76d0('0x1db9')](_0x1618a0),_0x5a4df0[_0x2e76d0('0x73e')]=_0x1618a0['data'][_0x2e76d0('0x73e')]||[{'message':_0x1618a0[_0x2e76d0('0x9b6')](),'type':_0x2e76d0('0xed5')}];});}function _0x4265ea(_0x19f71e){const _0x2b2041=_0x4b0e4f;_0x13205c[_0x2b2041('0x212a')](_0x19f71e);}}const _0x116c65=_0x2a55a2,_0x32b2a5=_0x4cf2bc['p']+_0x4376d8('0x23a2');_0x22cd8b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),_0x4376d8('0xef1'),'$mdDialog','$document',_0x4376d8('0x108a'),'api',_0x4376d8('0x1885')];function _0x22cd8b(_0x51439a,_0xa3c924,_0x52f557,_0x441eaa,_0x1f0b3d,_0x4a403a,_0x364f22,_0x2bbf0b,_0x130c7a,_0x474cef,_0x12b3aa){const _0x4abd2f=_0x4376d8,_0x3ff833=this;_0x3ff833[_0x4abd2f('0x197c')]=_0x12b3aa[_0x4abd2f('0x2831')](),_0x3ff833[_0x4abd2f('0x231f')]={},_0x3ff833[_0x4abd2f('0x26ac')]={'count':0x0,'rows':[]},_0x3ff833[_0x4abd2f('0x1162')]=[],_0x3ff833['crudPermissions'],_0x3ff833['sortableTable']={'animation':0x64,'onSort':function(_0xd52699){const _0x393fb8=_0x4abd2f;_0x474cef[_0x393fb8('0x231f')][_0x393fb8('0x2b0')]({'id':_0x3ff833[_0x393fb8('0x231f')]['id']},_0xd52699['models'])['$promise']['then'](function(_0x3ccd53){const _0x529f27=_0x393fb8;_0x3ff833[_0x529f27('0x26ac')][_0x529f27('0x2319')]=_0x3ccd53;})['catch'](function(_0x31ac9d){const _0xaa90ba=_0x393fb8;_0x130c7a[_0xaa90ba('0x1db9')]({'title':_0x31ac9d[_0xaa90ba('0x11c5')]?_0xaa90ba('0x14f7')+_0x31ac9d[_0xaa90ba('0x11c5')]+_0xaa90ba('0x16e4')+_0x31ac9d[_0xaa90ba('0x1833')]:_0xaa90ba('0x1dcb'),'msg':_0x31ac9d[_0xaa90ba('0x1457')]?JSON['stringify'](_0x31ac9d['data']):_0x31ac9d['toString']()});});}},_0x3ff833['query']={'fields':_0x4abd2f('0x19df'),'nolimit':_0x4abd2f('0xe34'),'limit':0xa,'page':0x1},_0x3ff833['init']=_0x41f8d2,_0x3ff833['deleteConfirm']=_0x5d7dfc,_0x3ff833[_0x4abd2f('0x130d')]=_0x1c1a7a,_0x3ff833[_0x4abd2f('0x209b')]=_0x447ceb,_0x3ff833[_0x4abd2f('0x257c')]=_0x8808c0,_0x3ff833[_0x4abd2f('0x7db')]=_0x5087e6,_0x3ff833[_0x4abd2f('0x277e')]=_0x2f1774,_0x3ff833[_0x4abd2f('0xc06')]=_0x41f10f;function _0x41f8d2(_0x4682bd,_0x2b4420){const _0x38923d=_0x4abd2f;_0x3ff833['interval']=_0x4682bd,_0x3ff833[_0x38923d('0x103e')]=typeof _0x2b4420!==_0x38923d('0xfad')?_0x2b4420:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x3ff833[_0x38923d('0x1c4b')][_0x38923d('0xc3c')]=!_0x3ff833[_0x38923d('0x103e')][_0x38923d('0x1d34')]?!![]:![],_0x3ff833[_0x38923d('0x826')]['id']=_0x3ff833[_0x38923d('0x231f')]['id'],_0x447ceb();}function _0x5d7dfc(_0x4e46f3,_0x4b0ab9){const _0xc10996=_0x4abd2f,_0x3781bc=_0x364f22['confirm']()[_0xc10996('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interval?')[_0xc10996('0x211f')](_0xc10996('0xa53')+(_0x4e46f3[_0xc10996('0x2aa')]||_0x4e46f3['id']&&_0x49cbdd()[_0xc10996('0x233c')](_0xc10996('0x17dc'))+_0x4e46f3['id']||'interval')+'
'+_0xc10996('0xe9f'))['ariaLabel'](_0xc10996('0x1e7'))['targetEvent'](_0x4b0ab9)['ok']('OK')[_0xc10996('0x1d47')]('CANCEL');_0x364f22['show'](_0x3781bc)['then'](function(){_0x2f1774(_0x4e46f3);},function(){const _0x23455b=_0xc10996;console['log'](_0x23455b('0x28a0'));});}function _0x1c1a7a(_0x337599){const _0x28adfd=_0x4abd2f;_0x3ff833[_0x28adfd('0x26ac')]=_0x337599||{'count':0x0,'rows':[]};}function _0x447ceb(){const _0x5de7c0=_0x4abd2f;_0x3ff833[_0x5de7c0('0x826')][_0x5de7c0('0xf19')]=(_0x3ff833['query'][_0x5de7c0('0x115a')]-0x1)*_0x3ff833[_0x5de7c0('0x826')][_0x5de7c0('0x193b')],_0x3ff833['promise']=_0x474cef[_0x5de7c0('0x231f')][_0x5de7c0('0x1a0d')](_0x3ff833[_0x5de7c0('0x826')],_0x1c1a7a)[_0x5de7c0('0x1af5')];}function _0x8808c0(_0x14466f,_0x4ec479){const _0x2433b4=_0x4abd2f;_0x364f22[_0x2433b4('0x28e2')]({'controller':_0x2433b4('0xe90'),'controllerAs':'vm','templateUrl':_0x32b2a5,'parent':angular[_0x2433b4('0x1ce1')](_0x2bbf0b[_0x2433b4('0x13aa')]),'targetEvent':_0x14466f,'clickOutsideToClose':!![],'locals':{'interval':_0x4ec479,'intervals':_0x3ff833[_0x2433b4('0x26ac')][_0x2433b4('0x2319')],'license':null,'setting':null,'crudPermissions':_0x3ff833[_0x2433b4('0x103e')]}});}function _0x2f1774(_0x815f5f){const _0x237338=_0x4abd2f;_0x474cef['interval']['delete']({'id':_0x815f5f['id']})[_0x237338('0x1af5')]['then'](function(){const _0x35394c=_0x237338;_0x49cbdd()[_0x35394c('0x5f3')](_0x3ff833[_0x35394c('0x26ac')][_0x35394c('0x2319')],{'id':_0x815f5f['id']}),_0x3ff833['intervalIntervals'][_0x35394c('0x335')]-=0x1,!_0x3ff833[_0x35394c('0x26ac')][_0x35394c('0x2319')][_0x35394c('0x1f73')]&&_0x447ceb(),_0x130c7a[_0x35394c('0x130d')]({'title':_0x35394c('0x1f7a'),'msg':_0x815f5f[_0x35394c('0x2aa')]?_0x815f5f['name']+'\x20has\x20been\x20deleted!':''});})[_0x237338('0x16df')](function(_0x281bca){const _0x1ce68c=_0x237338;if(_0x281bca['data']&&_0x281bca[_0x1ce68c('0x1457')][_0x1ce68c('0x73e')]&&_0x281bca[_0x1ce68c('0x1457')][_0x1ce68c('0x73e')][_0x1ce68c('0x1f73')]){_0x3ff833['errors']=_0x281bca['data'][_0x1ce68c('0x73e')]||[{'message':_0x281bca[_0x1ce68c('0x9b6')](),'type':_0x1ce68c('0x1f79')}];for(let _0x1ec9f7=0x0;_0x1ec9f7<_0x281bca[_0x1ce68c('0x1457')][_0x1ce68c('0x73e')][_0x1ce68c('0x1f73')];_0x1ec9f7++){_0x130c7a[_0x1ce68c('0x1db9')]({'title':_0x281bca[_0x1ce68c('0x1457')][_0x1ce68c('0x73e')][_0x1ec9f7][_0x1ce68c('0x412')],'msg':_0x281bca[_0x1ce68c('0x1457')][_0x1ce68c('0x73e')][_0x1ec9f7][_0x1ce68c('0x1603')]});}}else _0x130c7a['error']({'title':_0x281bca[_0x1ce68c('0x11c5')]?_0x1ce68c('0x14f7')+_0x281bca[_0x1ce68c('0x11c5')]+_0x1ce68c('0x16e4')+_0x281bca[_0x1ce68c('0x1833')]:_0x1ce68c('0x1f79'),'msg':_0x281bca[_0x1ce68c('0x1457')]?JSON[_0x1ce68c('0x678')](_0x281bca['data']['message']):_0x281bca[_0x1ce68c('0x1603')]||_0x281bca[_0x1ce68c('0x9b6')]()});});}function _0x5087e6(){const _0x5d7edc=_0x4abd2f,_0x166fc6=angular[_0x5d7edc('0x14e5')](_0x3ff833[_0x5d7edc('0x1162')]);return _0x3ff833[_0x5d7edc('0x1162')]=[],_0x166fc6;}function _0x41f10f(_0x43b083){const _0x237558=_0x4abd2f,_0x1c2e22=_0x364f22['confirm']()[_0x237558('0x24d3')](_0x237558('0x210f'))[_0x237558('0x211f')](_0x237558('0xa53')+_0x3ff833[_0x237558('0x1162')][_0x237558('0x1f73')]+'\x20selected
'+_0x237558('0xe9f'))['ariaLabel'](_0x237558('0x1ce8'))['targetEvent'](_0x43b083)['ok']('OK')['cancel'](_0x237558('0x28a0'));_0x364f22[_0x237558('0x28e2')](_0x1c2e22)[_0x237558('0x17e7')](function(){const _0x121ca1=_0x237558;_0x3ff833[_0x121ca1('0x1162')]['forEach'](function(_0x5d19cb){_0x2f1774(_0x5d19cb);}),_0x3ff833[_0x121ca1('0x1162')]=[];});}let _0x4c5d86=!![],_0x353b26=0x1;_0xa3c924[_0x4abd2f('0x620')](_0x4abd2f('0x4c3'),function(_0x263f50,_0x30c783){const _0x5ddfa4=_0x4abd2f;_0x4c5d86?_0x4a403a(function(){_0x4c5d86=![];}):(!_0x30c783&&(_0x353b26=_0x3ff833[_0x5ddfa4('0x826')]['page']),_0x263f50!==_0x30c783&&(_0x3ff833[_0x5ddfa4('0x826')][_0x5ddfa4('0x115a')]=0x1),!_0x263f50&&(_0x3ff833['query']['page']=_0x353b26),_0x447ceb());});}const _0x48914b=_0x22cd8b;_0x27fa86['$inject']=['$state',_0x4376d8('0x1391'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885'),_0x4376d8('0x231f'),_0x4376d8('0x383')];function _0x27fa86(_0x566dc1,_0xeeb9c6,_0x2f0d13,_0xbad699,_0x2e8412,_0x58d17b,_0x4ddacb,_0x380d95,_0x4a092a,_0x50e78d,_0x100c76,_0x345501){const _0x46c2ab=_0x4376d8,_0x125c01=this;_0x125c01[_0x46c2ab('0x197c')]=_0x50e78d[_0x46c2ab('0x2831')](),_0x125c01[_0x46c2ab('0x1d11')]=_0x58d17b,_0x125c01[_0x46c2ab('0x1aeb')]=_0x4ddacb,_0x125c01[_0x46c2ab('0x1572')]=_0x125c01[_0x46c2ab('0x1aeb')][_0x46c2ab('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x125c01['location']=_0xeeb9c6['protocol']()+_0x46c2ab('0x14')+_0xeeb9c6[_0x46c2ab('0x108')](),_0x125c01[_0x46c2ab('0x231f')]=_0x100c76||_0x566dc1[_0x46c2ab('0x16fb')][_0x46c2ab('0x231f')]||{},_0x125c01['userProfileSection']=_0x345501&&_0x345501[_0x46c2ab('0x335')]==0x1?_0x345501[_0x46c2ab('0x2319')][0x0]:null,_0x125c01[_0x46c2ab('0x103e')]=_0x50e78d[_0x46c2ab('0x17a9')](_0x125c01[_0x46c2ab('0x383')]?_0x125c01[_0x46c2ab('0x383')][_0x46c2ab('0x103e')]:null),_0x125c01[_0x46c2ab('0x6ee')]={},_0x125c01[_0x46c2ab('0xde7')]=_0x566dc1[_0x46c2ab('0x16fb')][_0x46c2ab('0x1523')]||0x0,_0x125c01['alert']=_0x4a092a[_0x46c2ab('0x1178')],_0x125c01['gotoIntervals']=_0x118d6a,_0x125c01[_0x46c2ab('0x872')]=_0x441f89;function _0x118d6a(){const _0x47b4eb=_0x46c2ab;_0x566dc1['go'](_0x47b4eb('0xd66'),{},{'reload':_0x47b4eb('0xd66')});}function _0x441f89(){const _0x30e576=_0x46c2ab;_0x380d95[_0x30e576('0x231f')][_0x30e576('0x27ba')]({'id':_0x125c01[_0x30e576('0x231f')]['id']},_0x125c01[_0x30e576('0x231f')])[_0x30e576('0x1af5')][_0x30e576('0x17e7')](function(){const _0x3eb92b=_0x30e576;_0x4a092a[_0x3eb92b('0x130d')]({'title':'Interval\x20updated!','msg':_0x125c01[_0x3eb92b('0x231f')][_0x3eb92b('0x2aa')]?_0x125c01['interval'][_0x3eb92b('0x2aa')]+_0x3eb92b('0x12b0'):''});})[_0x30e576('0x16df')](function(_0x583a31){const _0xd827d3=_0x30e576;_0x4a092a[_0xd827d3('0x1db9')]({'title':_0x583a31[_0xd827d3('0x11c5')]?_0xd827d3('0x14f7')+_0x583a31['status']+_0xd827d3('0x16e4')+_0x583a31[_0xd827d3('0x1833')]:_0xd827d3('0x1f79'),'msg':_0x583a31[_0xd827d3('0x1457')]?JSON[_0xd827d3('0x678')](_0x583a31[_0xd827d3('0x1457')]):_0x583a31[_0xd827d3('0x9b6')]()});});}}const _0x30b8df=_0x27fa86,_0x56b957=_0x4cf2bc['p']+_0x4376d8('0x1665');_0x5dfe69[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),'intervals',_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x5dfe69(_0xcfe579,_0x3dbf1a,_0x5de92d,_0x264432,_0x34dda8,_0x85e8d6,_0x483c84,_0x1d9ee5,_0x2ca45f,_0x2cf315,_0x25990b,_0x460ee4,_0x3e6911,_0x5a09f1,_0x5498d6,_0x49314e,_0xea2fe0){const _0x560b90=_0x4376d8,_0x43601f=this;_0x43601f[_0x560b90('0x1d11')]=_0x49314e,_0x43601f['setting']=_0xea2fe0,_0x43601f[_0x560b90('0x197c')]=_0x5498d6[_0x560b90('0x2831')](),_0x43601f[_0x560b90('0x1be1')]=_0x2ca45f||{'count':0x0,'rows':[]},_0x43601f[_0x560b90('0xdeb')]=_0x2cf315,_0x43601f[_0x560b90('0x383')]=_0x25990b&&_0x25990b['count']==0x1?_0x25990b[_0x560b90('0x2319')][0x0]:null,_0x43601f['crudPermissions']=_0x5498d6['parseCrudPermissions'](_0x43601f[_0x560b90('0x383')]?_0x43601f[_0x560b90('0x383')][_0x560b90('0x103e')]:null),_0x43601f[_0x560b90('0x23c3')]=_0x560b90('0x1be1'),_0x43601f[_0x560b90('0x26a1')]='',_0x43601f[_0x560b90('0x24e1')]=null,_0x43601f[_0x560b90('0xa05')]=[],_0x43601f['query']={'fields':_0x560b90('0x142d'),'sort':_0x560b90('0x1ac6'),'IntervalId':'null','limit':0xa,'page':0x1},_0x43601f[_0x560b90('0xcd4')]=_0x521dfb,_0x43601f[_0x560b90('0xbf4')]=_0x1dcec1,_0x43601f['success']=_0x20e728,_0x43601f[_0x560b90('0x1a0d')]=_0x48a8c8,_0x43601f['createOrEditInterval']=_0x2ab472,_0x43601f[_0x560b90('0x1420')]=_0x32d5ac,_0x43601f['exportSelectedIntervals']=_0x57c708,_0x43601f[_0x560b90('0x415')]=_0x655564,_0x43601f[_0x560b90('0x5a7')]=_0x97313e,_0x43601f[_0x560b90('0x11d5')]=_0x40ee88;function _0x521dfb(_0x43b015){const _0x452199=_0x560b90;_0x5de92d['go'](_0x452199('0x17d'),{'id':_0x43b015['id'],'interval':_0x43b015,'crudPermissions':_0x43601f['crudPermissions']});}function _0x1dcec1(_0x157c5b,_0x84a06e){const _0x54e98f=_0x560b90,_0x15b309=_0x34dda8[_0x54e98f('0x1121')]()['title'](_0x54e98f('0x5e1')+_0x49cbdd()[_0x54e98f('0x1c98')]('interval')+'?')['htmlContent'](''+(_0x157c5b[_0x54e98f('0x2aa')]||_0x54e98f('0x231f'))+_0x54e98f('0x1d23')+_0x54e98f('0xe9f'))['ariaLabel'](_0x54e98f('0x1e7'))[_0x54e98f('0x104f')](_0x84a06e)['ok']('OK')[_0x54e98f('0x1d47')](_0x54e98f('0x28a0'));_0x34dda8[_0x54e98f('0x28e2')](_0x15b309)[_0x54e98f('0x17e7')](function(){_0x32d5ac(_0x157c5b);},function(){const _0x23406f=_0x54e98f;console[_0x23406f('0x1d63')]('CANCEL');});}let _0x5a29b8=!![],_0x317671=0x1;_0xcfe579['$watch'](_0x560b90('0x3ed'),function(_0x498e9a,_0x387d14){const _0x278ebd=_0x560b90;_0x5a29b8?_0x483c84(function(){_0x5a29b8=![];}):(!_0x387d14&&(_0x317671=_0x43601f['query']['page']),_0x498e9a!==_0x387d14&&(_0x43601f[_0x278ebd('0x826')][_0x278ebd('0x115a')]=0x1),!_0x498e9a&&(_0x43601f[_0x278ebd('0x826')][_0x278ebd('0x115a')]=_0x317671),_0x43601f[_0x278ebd('0x1a0d')]());});function _0x20e728(_0x8f4855){const _0x59bace=_0x560b90;_0x43601f[_0x59bace('0x1be1')]=_0x8f4855||{'count':0x0,'rows':[]};}function _0x48a8c8(){const _0xe37abd=_0x560b90;_0x43601f['query']['offset']=(_0x43601f['query'][_0xe37abd('0x115a')]-0x1)*_0x43601f[_0xe37abd('0x826')][_0xe37abd('0x193b')],_0x5498d6[_0xe37abd('0x1ba2')](_0xe37abd('0x20bf'))?_0x43601f['promise']=_0x460ee4[_0xe37abd('0x231f')][_0xe37abd('0x1c53')](_0x43601f[_0xe37abd('0x826')],_0x20e728)[_0xe37abd('0x1af5')]:(_0x43601f[_0xe37abd('0x826')]['id']=_0x43601f['userProfile']['id'],_0x43601f[_0xe37abd('0x826')]['section']=_0xe37abd('0xf88'),_0x43601f[_0xe37abd('0x1691')]=_0x460ee4['userProfile'][_0xe37abd('0x2447')](_0x43601f[_0xe37abd('0x826')],_0x20e728)['$promise']);}function _0x2ab472(_0x501586,_0x531910){const _0x2692cc=_0x560b90;_0x34dda8[_0x2692cc('0x28e2')]({'controller':_0x2692cc('0x791'),'controllerAs':'vm','templateUrl':_0x56b957,'parent':angular[_0x2692cc('0x1ce1')](_0x85e8d6[_0x2692cc('0x13aa')]),'targetEvent':_0x501586,'clickOutsideToClose':!![],'locals':{'interval':_0x531910,'intervals':_0x43601f[_0x2692cc('0x1be1')][_0x2692cc('0x2319')],'license':_0x43601f[_0x2692cc('0x1d11')],'setting':_0x43601f['setting'],'crudPermissions':_0x43601f[_0x2692cc('0x103e')]}});}function _0x32d5ac(_0x1bd5bc){const _0x4b983a=_0x560b90;_0x460ee4[_0x4b983a('0x231f')][_0x4b983a('0x1da6')]({'id':_0x1bd5bc['id']})[_0x4b983a('0x1af5')][_0x4b983a('0x17e7')](function(){const _0x46c36b=_0x4b983a;_0x49cbdd()[_0x46c36b('0x5f3')](_0x43601f[_0x46c36b('0x1be1')][_0x46c36b('0x2319')],{'id':_0x1bd5bc['id']}),_0x43601f[_0x46c36b('0x1be1')][_0x46c36b('0x335')]-=0x1,!_0x43601f[_0x46c36b('0x1be1')][_0x46c36b('0x2319')][_0x46c36b('0x1f73')]&&_0x43601f['getIntervals'](),_0x5a09f1[_0x46c36b('0x130d')]({'title':_0x49cbdd()[_0x46c36b('0x1c98')](_0x46c36b('0xaea'))+_0x46c36b('0x2673'),'msg':_0x1bd5bc[_0x46c36b('0x2aa')]?_0x1bd5bc[_0x46c36b('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x4b983a('0x16df')](function(_0x10c2d8){const _0x2c81ea=_0x4b983a;if(_0x10c2d8['data']&&_0x10c2d8['data'][_0x2c81ea('0x73e')]&&_0x10c2d8[_0x2c81ea('0x1457')][_0x2c81ea('0x73e')]['length']){_0x43601f[_0x2c81ea('0x73e')]=_0x10c2d8['data'][_0x2c81ea('0x73e')]||[{'message':_0x10c2d8[_0x2c81ea('0x9b6')](),'type':'SYSTEM:DELETEinterval'}];for(let _0x2e94c3=0x0;_0x2e94c3<_0x10c2d8[_0x2c81ea('0x1457')][_0x2c81ea('0x73e')][_0x2c81ea('0x1f73')];_0x2e94c3++){_0x5a09f1[_0x2c81ea('0x1db9')]({'title':_0x10c2d8['data'][_0x2c81ea('0x73e')][_0x2e94c3][_0x2c81ea('0x412')],'msg':_0x10c2d8[_0x2c81ea('0x1457')][_0x2c81ea('0x73e')][_0x2e94c3][_0x2c81ea('0x1603')]});}}else _0x5a09f1[_0x2c81ea('0x1db9')]({'title':_0x10c2d8[_0x2c81ea('0x11c5')]?_0x2c81ea('0x14f7')+_0x10c2d8['status']+'\x20-\x20'+_0x10c2d8[_0x2c81ea('0x1833')]:'SYSTEM:DELETEinterval','msg':_0x10c2d8[_0x2c81ea('0x1457')]?JSON[_0x2c81ea('0x678')](_0x10c2d8[_0x2c81ea('0x1457')][_0x2c81ea('0x1603')]):_0x10c2d8[_0x2c81ea('0x1603')]||_0x10c2d8[_0x2c81ea('0x9b6')]()});});}function _0x57c708(){const _0x77971=_0x560b90,_0x5e0254=angular[_0x77971('0x14e5')](_0x43601f[_0x77971('0xa05')]);return _0x43601f[_0x77971('0xa05')]=[],_0x5e0254;}function _0x655564(_0x5dec7d){const _0xf15513=_0x560b90,_0x51c08e=_0x34dda8[_0xf15513('0x1121')]()[_0xf15513('0x24d3')](_0xf15513('0x210f'))[_0xf15513('0x211f')](_0xf15513('0xa53')+_0x43601f[_0xf15513('0xa05')]['length']+_0xf15513('0x145a')+_0xf15513('0xe9f'))[_0xf15513('0x2095')](_0xf15513('0x1bfa'))[_0xf15513('0x104f')](_0x5dec7d)['ok']('OK')[_0xf15513('0x1d47')]('CANCEL');_0x34dda8['show'](_0x51c08e)['then'](function(){const _0x26f86b=_0xf15513;_0x43601f[_0x26f86b('0xa05')][_0x26f86b('0xccd')](function(_0xa2eb54){_0x32d5ac(_0xa2eb54);}),_0x43601f[_0x26f86b('0xa05')]=[];});}function _0x97313e(){_0x43601f['selectedIntervals']=[];}function _0x40ee88(){const _0x35fc24=_0x560b90;_0x43601f['selectedIntervals']=_0x43601f[_0x35fc24('0x1be1')][_0x35fc24('0x2319')];}}const _0x4b6154=_0x5dfe69;_0x2d9c21['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x1492'),_0x4376d8('0x267a'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x2d9c21(_0x208a97,_0x10c2a1,_0x59f54,_0x5b80c8,_0x3a459c,_0x3f261e,_0x65b11e,_0x566125,_0xf91655,_0x51de60,_0x264885,_0x2c2a81,_0x3caf39,_0x2f9bac){const _0x5cdbbe=_0x4376d8,_0x318a6c=this;_0x318a6c[_0x5cdbbe('0x197c')]=_0x264885['getCurrentUser'](),_0x318a6c[_0x5cdbbe('0x73e')]=[],_0x318a6c[_0x5cdbbe('0x1aeb')]=_0x3caf39,_0x318a6c[_0x5cdbbe('0x1d11')]=_0x2c2a81,_0x318a6c[_0x5cdbbe('0x103e')]=_0x2f9bac,_0x318a6c['hasModulePermissions']={},_0x318a6c['passwordPattern']=_0x318a6c['setting']&&_0x318a6c[_0x5cdbbe('0x1aeb')][_0x5cdbbe('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x318a6c[_0x5cdbbe('0x24d3')]=_0x5cdbbe('0x503'),_0x318a6c['pause']=angular[_0x5cdbbe('0x14e5')](_0xf91655),_0x318a6c[_0x5cdbbe('0x1492')]=_0x566125,_0x318a6c[_0x5cdbbe('0x2027')]=![];!_0x318a6c['pause']&&(_0x318a6c['pause']={},_0x318a6c['title']=_0x5cdbbe('0x117'),_0x318a6c['newPause']=!![]);_0x318a6c[_0x5cdbbe('0x2336')]=_0x5f2acf,_0x318a6c[_0x5cdbbe('0x1176')]=_0x1c3c39,_0x318a6c[_0x5cdbbe('0x276d')]=_0x34e693,_0x318a6c['getDateFromString']=_0x395158,_0x318a6c[_0x5cdbbe('0x136e')]=_0x464eae;function _0x5f2acf(){const _0x5880cb=_0x5cdbbe;_0x318a6c[_0x5880cb('0x73e')]=[],_0x51de60[_0x5880cb('0x267a')][_0x5880cb('0x2439')](_0x318a6c[_0x5880cb('0x267a')])[_0x5880cb('0x1af5')]['then'](function(_0x3edc56){const _0x4b8406=_0x5880cb;_0x318a6c[_0x4b8406('0x1492')][_0x4b8406('0x1893')](_0x3edc56[_0x4b8406('0x16b2')]()),_0x65b11e[_0x4b8406('0x130d')]({'title':_0x4b8406('0x1b96'),'msg':_0x318a6c[_0x4b8406('0x267a')][_0x4b8406('0x2aa')]?_0x318a6c['pause'][_0x4b8406('0x2aa')]+_0x4b8406('0x15a'):''}),_0x464eae(_0x3edc56);})['catch'](function(_0x837d08){const _0x325dcc=_0x5880cb;if(_0x837d08['data']&&_0x837d08['data'][_0x325dcc('0x73e')]&&_0x837d08[_0x325dcc('0x1457')]['errors'][_0x325dcc('0x1f73')]){_0x318a6c['errors']=_0x837d08[_0x325dcc('0x1457')][_0x325dcc('0x73e')]||[{'message':_0x837d08['toString'](),'type':_0x325dcc('0x20cc')}];for(let _0x57f967=0x0;_0x57f967<_0x837d08['data']['errors'][_0x325dcc('0x1f73')];_0x57f967+=0x1){_0x65b11e['error']({'title':_0x837d08['data']['errors'][_0x57f967][_0x325dcc('0x412')],'msg':_0x837d08[_0x325dcc('0x1457')]['errors'][_0x57f967][_0x325dcc('0x1603')]});}}else _0x65b11e[_0x325dcc('0x1db9')]({'title':_0x837d08[_0x325dcc('0x11c5')]?'API:'+_0x837d08['status']+_0x325dcc('0x16e4')+_0x837d08['statusText']:_0x325dcc('0x20cc'),'msg':_0x837d08['data']?JSON[_0x325dcc('0x678')](_0x837d08[_0x325dcc('0x1457')][_0x325dcc('0x1603')]):_0x837d08[_0x325dcc('0x9b6')]()});});}function _0x1c3c39(){const _0x4077f0=_0x5cdbbe;_0x318a6c[_0x4077f0('0x73e')]=[],_0x51de60[_0x4077f0('0x267a')][_0x4077f0('0x27ba')]({'id':_0x318a6c['pause']['id']},_0x318a6c[_0x4077f0('0x267a')])[_0x4077f0('0x1af5')]['then'](function(_0x1b61a8){const _0x3ba1b6=_0x4077f0,_0x2a42f6=_0x49cbdd()[_0x3ba1b6('0xe8e')](_0x318a6c[_0x3ba1b6('0x1492')],{'id':_0x1b61a8['id']});_0x2a42f6&&_0x49cbdd()['merge'](_0x2a42f6,_0x49cbdd()[_0x3ba1b6('0x230a')](_0x1b61a8[_0x3ba1b6('0x16b2')](),_0x49cbdd()['keys'](_0x2a42f6))),_0x65b11e[_0x3ba1b6('0x130d')]({'title':'Pause\x20properly\x20saved!','msg':_0x318a6c[_0x3ba1b6('0x267a')]['name']?_0x318a6c[_0x3ba1b6('0x267a')][_0x3ba1b6('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x464eae(_0x1b61a8);})['catch'](function(_0x1f6a1f){const _0x46bae1=_0x4077f0;if(_0x1f6a1f[_0x46bae1('0x1457')]&&_0x1f6a1f[_0x46bae1('0x1457')][_0x46bae1('0x73e')]&&_0x1f6a1f[_0x46bae1('0x1457')][_0x46bae1('0x73e')][_0x46bae1('0x1f73')]){_0x318a6c[_0x46bae1('0x73e')]=_0x1f6a1f[_0x46bae1('0x1457')][_0x46bae1('0x73e')]||[{'message':_0x1f6a1f[_0x46bae1('0x9b6')](),'type':_0x46bae1('0x735')}];for(let _0x513d7a=0x0;_0x513d7a<_0x1f6a1f['data'][_0x46bae1('0x73e')][_0x46bae1('0x1f73')];_0x513d7a++){_0x65b11e[_0x46bae1('0x1db9')]({'title':_0x1f6a1f[_0x46bae1('0x1457')][_0x46bae1('0x73e')][_0x513d7a][_0x46bae1('0x412')],'msg':_0x1f6a1f[_0x46bae1('0x1457')][_0x46bae1('0x73e')][_0x513d7a][_0x46bae1('0x1603')]});}}else _0x65b11e[_0x46bae1('0x1db9')]({'title':_0x1f6a1f[_0x46bae1('0x11c5')]?'API:'+_0x1f6a1f[_0x46bae1('0x11c5')]+_0x46bae1('0x16e4')+_0x1f6a1f[_0x46bae1('0x1833')]:_0x46bae1('0x735'),'msg':_0x1f6a1f[_0x46bae1('0x1457')]?JSON[_0x46bae1('0x678')](_0x1f6a1f[_0x46bae1('0x1457')][_0x46bae1('0x1603')]):_0x1f6a1f[_0x46bae1('0x9b6')]()});});}function _0x34e693(_0xc9b97d){const _0x427d46=_0x5cdbbe;_0x318a6c[_0x427d46('0x73e')]=[];const _0x38e7fe=_0x5b80c8[_0x427d46('0x1121')]()[_0x427d46('0x24d3')](_0x427d46('0x530'))['content']('The\x20pause\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Pause')['ok'](_0x427d46('0x304'))[_0x427d46('0x1d47')](_0x427d46('0x1b70'))['targetEvent'](_0xc9b97d);_0x5b80c8[_0x427d46('0x28e2')](_0x38e7fe)['then'](function(){const _0x20ce1d=_0x427d46;_0x51de60[_0x20ce1d('0x267a')][_0x20ce1d('0x1da6')]({'id':_0x318a6c[_0x20ce1d('0x267a')]['id']})['$promise'][_0x20ce1d('0x17e7')](function(){const _0x3ad0c2=_0x20ce1d;_0x49cbdd()[_0x3ad0c2('0x5f3')](_0x318a6c['pauses'],{'id':_0x318a6c[_0x3ad0c2('0x267a')]['id']}),_0x65b11e[_0x3ad0c2('0x130d')]({'title':_0x3ad0c2('0x2129'),'msg':(_0x318a6c[_0x3ad0c2('0x267a')][_0x3ad0c2('0x2aa')]||_0x3ad0c2('0x267a'))+'\x20has\x20been\x20deleted!'}),_0x464eae(_0x318a6c[_0x3ad0c2('0x267a')]);})['catch'](function(_0x439074){const _0x57d936=_0x20ce1d;if(_0x439074['data']&&_0x439074[_0x57d936('0x1457')][_0x57d936('0x73e')]&&_0x439074['data'][_0x57d936('0x73e')]['length']){_0x318a6c[_0x57d936('0x73e')]=_0x439074[_0x57d936('0x1457')][_0x57d936('0x73e')]||[{'message':_0x439074[_0x57d936('0x9b6')](),'type':_0x57d936('0x1014')}];for(let _0x473feb=0x0;_0x473feb<_0x439074[_0x57d936('0x1457')][_0x57d936('0x73e')][_0x57d936('0x1f73')];_0x473feb++){_0x65b11e[_0x57d936('0x1db9')]({'title':_0x439074['data'][_0x57d936('0x73e')][_0x473feb][_0x57d936('0x412')],'msg':_0x439074['data'][_0x57d936('0x73e')][_0x473feb][_0x57d936('0x1603')]});}}else _0x65b11e[_0x57d936('0x1db9')]({'title':_0x439074[_0x57d936('0x11c5')]?'API:'+_0x439074[_0x57d936('0x11c5')]+_0x57d936('0x16e4')+_0x439074[_0x57d936('0x1833')]:_0x57d936('0x1014'),'msg':_0x439074[_0x57d936('0x1457')]?JSON[_0x57d936('0x678')](_0x439074['data']['message']):_0x439074[_0x57d936('0x1603')]||_0x439074['toString']()});});},function(){});}function _0x395158(_0x21c92b){return _0x21c92b===null?undefined:new Date(_0x21c92b);}function _0x464eae(_0x2f8f5c){const _0x349c74=_0x5cdbbe;_0x5b80c8[_0x349c74('0x212a')](_0x2f8f5c);}}const _0x1c87c6=_0x2d9c21,_0x16593d=_0x4cf2bc['p']+_0x4376d8('0x17e9');_0x3b1ba1['$inject']=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0x1492'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting'];function _0x3b1ba1(_0x36be3c,_0x2ad47b,_0x12fe07,_0x16a39f,_0x76b5e7,_0x40cc08,_0x63783a,_0x40c279,_0x3e4daf,_0x56a36f,_0x58a3e6,_0x1d81a3,_0x31df8f,_0x547a17,_0x8517ab,_0x40c849,_0x411185){const _0x4d366b=_0x4376d8,_0x370f3f=this;_0x370f3f['license']=_0x40c849,_0x370f3f[_0x4d366b('0x1aeb')]=_0x411185,_0x370f3f[_0x4d366b('0x197c')]=_0x8517ab[_0x4d366b('0x2831')](),_0x370f3f[_0x4d366b('0x1492')]=_0x3e4daf||{'count':0x0,'rows':[]},_0x370f3f['userProfile']=_0x56a36f,_0x370f3f[_0x4d366b('0x383')]=_0x58a3e6&&_0x58a3e6[_0x4d366b('0x335')]==0x1?_0x58a3e6[_0x4d366b('0x2319')][0x0]:null,_0x370f3f[_0x4d366b('0x103e')]=_0x8517ab[_0x4d366b('0x17a9')](_0x370f3f['userProfileSection']?_0x370f3f[_0x4d366b('0x383')][_0x4d366b('0x103e')]:null),_0x370f3f['table']=_0x4d366b('0x1492'),_0x370f3f[_0x4d366b('0x26a1')]='',_0x370f3f[_0x4d366b('0x24e1')]=null,_0x370f3f[_0x4d366b('0x184b')]=[],_0x370f3f[_0x4d366b('0x826')]={'fields':_0x4d366b('0x142d'),'sort':_0x4d366b('0x1ac6'),'limit':0xa,'page':0x1},_0x370f3f[_0x4d366b('0xb32')]=_0x426c65,_0x370f3f[_0x4d366b('0xbf4')]=_0x6eb562,_0x370f3f['success']=_0xe5e673,_0x370f3f[_0x4d366b('0x327')]=_0x1f91d1,_0x370f3f[_0x4d366b('0x617')]=_0x55f7a3,_0x370f3f[_0x4d366b('0x276d')]=_0x286c0c,_0x370f3f[_0x4d366b('0xa68')]=_0x10f314,_0x370f3f[_0x4d366b('0xa95')]=_0x434715,_0x370f3f['deselectPauses']=_0xa9f7be,_0x370f3f[_0x4d366b('0x6dd')]=_0x5b4c77;function _0x426c65(_0xe05bda,_0x371764){const _0x576880=_0x4d366b;_0x76b5e7[_0x576880('0x28e2')]({'controller':_0x576880('0x1202'),'controllerAs':'vm','templateUrl':_0x16593d,'parent':angular[_0x576880('0x1ce1')](_0x40cc08[_0x576880('0x13aa')]),'targetEvent':_0x371764,'clickOutsideToClose':!![],'locals':{'pause':_0xe05bda,'pauses':_0x370f3f['pauses']['rows'],'license':_0x370f3f['license'],'setting':null,'crudPermissions':_0x370f3f[_0x576880('0x103e')]}});}function _0x6eb562(_0x13c840,_0x1555a5){const _0x6c4ede=_0x4d366b,_0x46893f=_0x76b5e7['confirm']()['title'](_0x6c4ede('0x5e1')+_0x49cbdd()[_0x6c4ede('0x1c98')](_0x6c4ede('0x267a'))+'?')[_0x6c4ede('0x211f')](_0x6c4ede('0xa53')+(_0x13c840[_0x6c4ede('0x2aa')]||_0x6c4ede('0x267a'))+_0x6c4ede('0x1d23')+_0x6c4ede('0xe9f'))[_0x6c4ede('0x2095')](_0x6c4ede('0x26ec'))['targetEvent'](_0x1555a5)['ok']('OK')[_0x6c4ede('0x1d47')](_0x6c4ede('0x28a0'));_0x76b5e7[_0x6c4ede('0x28e2')](_0x46893f)[_0x6c4ede('0x17e7')](function(){_0x286c0c(_0x13c840);},function(){const _0x1db479=_0x6c4ede;console[_0x1db479('0x1d63')](_0x1db479('0x28a0'));});}let _0xc239c6=!![],_0x491770=0x1;_0x36be3c[_0x4d366b('0x620')](_0x4d366b('0x3ed'),function(_0x80b8cd,_0x162ff0){const _0x138fe4=_0x4d366b;_0xc239c6?_0x63783a(function(){_0xc239c6=![];}):(!_0x162ff0&&(_0x491770=_0x370f3f[_0x138fe4('0x826')][_0x138fe4('0x115a')]),_0x80b8cd!==_0x162ff0&&(_0x370f3f[_0x138fe4('0x826')]['page']=0x1),!_0x80b8cd&&(_0x370f3f['query'][_0x138fe4('0x115a')]=_0x491770),_0x370f3f[_0x138fe4('0x327')]());});function _0xe5e673(_0x20ed7f){_0x370f3f['pauses']=_0x20ed7f||{'count':0x0,'rows':[]};}function _0x1f91d1(){const _0x2ce2dc=_0x4d366b;_0x370f3f[_0x2ce2dc('0x826')][_0x2ce2dc('0xf19')]=(_0x370f3f[_0x2ce2dc('0x826')]['page']-0x1)*_0x370f3f[_0x2ce2dc('0x826')]['limit'],_0x8517ab[_0x2ce2dc('0x1ba2')](_0x2ce2dc('0x20bf'))?_0x370f3f[_0x2ce2dc('0x1691')]=_0x1d81a3[_0x2ce2dc('0x267a')]['get'](_0x370f3f[_0x2ce2dc('0x826')],_0xe5e673)[_0x2ce2dc('0x1af5')]:(_0x370f3f['query']['id']=_0x370f3f['userProfile']['id'],_0x370f3f['query'][_0x2ce2dc('0x16f8')]=_0x2ce2dc('0x181d'),_0x370f3f[_0x2ce2dc('0x1691')]=_0x1d81a3[_0x2ce2dc('0xdeb')][_0x2ce2dc('0x2447')](_0x370f3f[_0x2ce2dc('0x826')],_0xe5e673)[_0x2ce2dc('0x1af5')]);}function _0x55f7a3(_0x124103,_0x573063){const _0x5e51fb=_0x4d366b;_0x76b5e7[_0x5e51fb('0x28e2')]({'controller':_0x5e51fb('0x1202'),'controllerAs':'vm','templateUrl':_0x16593d,'parent':angular['element'](_0x40cc08[_0x5e51fb('0x13aa')]),'targetEvent':_0x124103,'clickOutsideToClose':!![],'locals':{'pause':_0x573063,'pauses':_0x370f3f[_0x5e51fb('0x1492')][_0x5e51fb('0x2319')],'license':_0x370f3f[_0x5e51fb('0x1d11')],'setting':_0x370f3f[_0x5e51fb('0x1aeb')],'crudPermissions':_0x370f3f[_0x5e51fb('0x103e')]}});}function _0x286c0c(_0x517d06){const _0x1e7b80=_0x4d366b;_0x1d81a3[_0x1e7b80('0x267a')][_0x1e7b80('0x1da6')]({'id':_0x517d06['id']})[_0x1e7b80('0x1af5')][_0x1e7b80('0x17e7')](function(){const _0x1a81ec=_0x1e7b80;_0x49cbdd()[_0x1a81ec('0x5f3')](_0x370f3f['pauses'][_0x1a81ec('0x2319')],{'id':_0x517d06['id']}),_0x370f3f[_0x1a81ec('0x1492')][_0x1a81ec('0x335')]-=0x1,!_0x370f3f[_0x1a81ec('0x1492')]['rows'][_0x1a81ec('0x1f73')]&&_0x370f3f[_0x1a81ec('0x327')](),_0x547a17['success']({'title':_0x49cbdd()[_0x1a81ec('0x1c98')]('Pause')+_0x1a81ec('0x2673'),'msg':_0x517d06[_0x1a81ec('0x2aa')]?_0x517d06['name']+_0x1a81ec('0x149f'):''});})[_0x1e7b80('0x16df')](function(_0x4b8ab6){const _0x336c80=_0x1e7b80;if(_0x4b8ab6[_0x336c80('0x1457')]&&_0x4b8ab6[_0x336c80('0x1457')]['errors']&&_0x4b8ab6[_0x336c80('0x1457')][_0x336c80('0x73e')][_0x336c80('0x1f73')]){_0x370f3f['errors']=_0x4b8ab6[_0x336c80('0x1457')][_0x336c80('0x73e')]||[{'message':_0x4b8ab6['toString'](),'type':_0x336c80('0x142b')}];for(let _0x32b0d6=0x0;_0x32b0d6<_0x4b8ab6[_0x336c80('0x1457')][_0x336c80('0x73e')][_0x336c80('0x1f73')];_0x32b0d6++){_0x547a17[_0x336c80('0x1db9')]({'title':_0x4b8ab6[_0x336c80('0x1457')][_0x336c80('0x73e')][_0x32b0d6][_0x336c80('0x412')],'msg':_0x4b8ab6[_0x336c80('0x1457')][_0x336c80('0x73e')][_0x32b0d6][_0x336c80('0x1603')]});}}else _0x547a17[_0x336c80('0x1db9')]({'title':_0x4b8ab6['status']?'API:'+_0x4b8ab6[_0x336c80('0x11c5')]+_0x336c80('0x16e4')+_0x4b8ab6[_0x336c80('0x1833')]:_0x336c80('0x142b'),'msg':_0x4b8ab6[_0x336c80('0x1457')]?JSON[_0x336c80('0x678')](_0x4b8ab6[_0x336c80('0x1457')][_0x336c80('0x1603')]):_0x4b8ab6[_0x336c80('0x1603')]||_0x4b8ab6[_0x336c80('0x9b6')]()});});}function _0x10f314(){const _0x559511=_0x4d366b,_0x107570=angular[_0x559511('0x14e5')](_0x370f3f[_0x559511('0x184b')]);return _0x370f3f[_0x559511('0x184b')]=[],_0x107570;}function _0x434715(_0x204354){const _0x4b4035=_0x4d366b,_0x2841ab=_0x76b5e7['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20pauses?')['htmlContent'](''+_0x370f3f[_0x4b4035('0x184b')]['length']+_0x4b4035('0x145a')+_0x4b4035('0xe9f'))['ariaLabel'](_0x4b4035('0xc12'))[_0x4b4035('0x104f')](_0x204354)['ok']('OK')[_0x4b4035('0x1d47')](_0x4b4035('0x28a0'));_0x76b5e7['show'](_0x2841ab)['then'](function(){const _0x5f121f=_0x4b4035;_0x370f3f[_0x5f121f('0x184b')][_0x5f121f('0xccd')](function(_0x1f47e6){_0x286c0c(_0x1f47e6);}),_0x370f3f[_0x5f121f('0x184b')]=[];});}function _0xa9f7be(){const _0x396fd0=_0x4d366b;_0x370f3f[_0x396fd0('0x184b')]=[];}function _0x5b4c77(){const _0x1c0c7a=_0x4d366b;_0x370f3f[_0x1c0c7a('0x184b')]=_0x370f3f[_0x1c0c7a('0x1492')][_0x1c0c7a('0x2319')];}}const _0x3e380c=_0x3b1ba1,_0x25e1aa=_0x4cf2bc['p']+_0x4376d8('0x80e');_0xc72326[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),'schedules',_0x4376d8('0x2651'),_0x4376d8('0x212e'),'Auth','license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0xc72326(_0xd798e1,_0x17b04b,_0x10c0df,_0x5511eb,_0x76e6a7,_0x3c2583,_0x96ce46,_0x38a7dc,_0x2216fa,_0x4da177,_0x21203f,_0x2c1538,_0x5a93e1,_0x3749a2){const _0x402082=_0x4376d8,_0x35a9ad=this;_0x35a9ad['currentUser']=_0x21203f[_0x402082('0x2831')](),_0x35a9ad['errors']=[],_0x35a9ad['setting']=_0x5a93e1,_0x35a9ad['license']=_0x2c1538,_0x35a9ad[_0x402082('0x103e')]=_0x3749a2,_0x35a9ad['hasModulePermissions']={},_0x35a9ad[_0x402082('0x1572')]=_0x35a9ad[_0x402082('0x1aeb')]&&_0x35a9ad[_0x402082('0x1aeb')][_0x402082('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x35a9ad[_0x402082('0x24d3')]=_0x402082('0xf50'),_0x35a9ad['schedule']=angular[_0x402082('0x14e5')](_0x2216fa),_0x35a9ad['schedules']=_0x38a7dc,_0x35a9ad[_0x402082('0x1e97')]=![],_0x35a9ad[_0x402082('0xffd')]=[],_0x35a9ad['query']={'fields':'createdAt,updatedAt,id,name,description,table,parent,conditions,joins','limit':0xa,'page':0x1,'sort':_0x402082('0x1ac6')};if(!_0x35a9ad[_0x402082('0x2651')])_0x35a9ad[_0x402082('0x2651')]={'output':'xlsx','active':!![],'startAt':new Date(),'endAt':new Date(Date[_0x402082('0x1a88')]()+0x1e*0x18*0x3c*0x3c*0x3e8),'cron':_0x402082('0xe44'),'subtractNumber':0x1,'subtractUnit':_0x402082('0x1e7e'),'sendMail':![],'sendIfEmpty':!![]},_0x35a9ad[_0x402082('0x24d3')]=_0x402082('0xf01'),_0x35a9ad[_0x402082('0x1e97')]=!![];else{_0x35a9ad['apiName']=_0x35a9ad[_0x402082('0x2651')][_0x402082('0x1d5b')]?_0x402082('0x1369'):_0x402082('0x18bc');const _0x5bb747=_0x35a9ad[_0x402082('0x2651')][_0x402082('0x1d5b')]?_0x35a9ad[_0x402082('0x2651')]['DefaultReportId']:_0x35a9ad[_0x402082('0x2651')][_0x402082('0x9a6')];_0x4da177[_0x35a9ad[_0x402082('0x2883')]]['get']({'fields':_0x402082('0xc2e')})['$promise'][_0x402082('0x17e7')](function(_0x40b7ba){const _0xad6ee8=_0x402082;_0x35a9ad['currentReport']=_0x49cbdd()[_0xad6ee8('0xe8e')](_0x40b7ba[_0xad6ee8('0x2319')],{'id':_0x5bb747}),_0x35a9ad['schedule']['report']=_0x35a9ad['currentReport'][_0xad6ee8('0x2aa')],_0x35a9ad['query'][_0xad6ee8('0x14e')]=_0x35a9ad['currentReport'][_0xad6ee8('0x14e')];});}_0x35a9ad[_0x402082('0x19e8')]=_0x5406db,_0x35a9ad[_0x402082('0x13b6')]=_0x5fed45,_0x35a9ad[_0x402082('0xe9a')]=_0x3fc10e,_0x35a9ad['getDateFromString']=_0x708523,_0x35a9ad['getReports']=_0x11b7b2,_0x35a9ad[_0x402082('0xad9')]=_0x3a51f7,_0x35a9ad[_0x402082('0x16b')]=_0x328b49,_0x35a9ad[_0x402082('0x171d')]=_0x9f5edd,_0x35a9ad[_0x402082('0x136e')]=_0x5f16e9,_0x4da177['analyticTreeReport'][_0x402082('0x1c53')]({})[_0x402082('0x1af5')][_0x402082('0x17e7')](function(_0x4418da){_0x35a9ad['treeReports']=_0x4418da['rows']||[];})[_0x402082('0x16df')](function(_0x4fbc68){const _0x537e69=_0x402082;_0x96ce46[_0x537e69('0x1db9')]({'title':_0x4fbc68['status']?'API:'+_0x4fbc68['status']+_0x537e69('0x16e4')+_0x4fbc68[_0x537e69('0x1833')]:_0x537e69('0xb3'),'msg':_0x4fbc68[_0x537e69('0x1457')]?JSON[_0x537e69('0x678')](_0x4fbc68[_0x537e69('0x1457')]):_0x4fbc68[_0x537e69('0x9b6')]()});}),_0x21203f[_0x402082('0x1ba2')](_0x402082('0x20bf'))?_0x4da177[_0x402082('0x127b')]['get']({'fields':_0x402082('0x12d2'),'sort':'name'})['$promise'][_0x402082('0x17e7')](function(_0x467160){const _0x359c91=_0x402082;_0x35a9ad[_0x359c91('0x3d9')]=_0x467160['rows']||[];})['catch'](function(_0x5b0446){const _0xc22d07=_0x402082;_0x96ce46['error']({'title':_0x5b0446[_0xc22d07('0x11c5')]?'API:'+_0x5b0446['status']+_0xc22d07('0x16e4')+_0x5b0446[_0xc22d07('0x1833')]:_0xc22d07('0x11c'),'msg':_0x5b0446['data']?JSON['stringify'](_0x5b0446[_0xc22d07('0x1457')]):_0x5b0446[_0xc22d07('0x9b6')]()});}):_0x4da177[_0x402082('0x127b')][_0x402082('0x1c53')]({'fields':_0x402082('0x12d2'),'sort':_0x402082('0x2aa')})[_0x402082('0x1af5')]['then'](function(_0x240547){const _0x47f519=_0x402082;_0x35a9ad[_0x47f519('0x3d9')]=_0x240547[_0x47f519('0x2319')]||[];})[_0x402082('0x17e7')](function(){const _0x4ad437=_0x402082;return _0x4da177[_0x4ad437('0x383')][_0x4ad437('0x1c53')]({'userProfileId':_0x35a9ad[_0x4ad437('0x197c')][_0x4ad437('0x1e76')],'sectionId':0x25a})[_0x4ad437('0x1af5')];})['then'](function(_0x4de56a){const _0x532cb9=_0x402082,_0x1b9195=_0x4de56a&&_0x4de56a[_0x532cb9('0x2319')]?_0x4de56a['rows'][0x0]:null;if(!_0x1b9195){const _0x3960ac=[];let _0x20a3ed=null;_0x35a9ad[_0x532cb9('0x2651')]&&(_0x20a3ed=_0x49cbdd()[_0x532cb9('0xe8e')](_0x35a9ad[_0x532cb9('0x3d9')],{'id':Number(_0x35a9ad['schedule'][_0x532cb9('0xbda')])}));for(let _0x37419a=0x0;_0x37419a<_0x35a9ad[_0x532cb9('0x3d9')][_0x532cb9('0x1f73')];_0x37419a++){_0x20a3ed&&_0x35a9ad[_0x532cb9('0x3d9')][_0x37419a]['id']===_0x20a3ed['id']&&(_0x35a9ad[_0x532cb9('0x3d9')][_0x37419a]['canSelect']=![],_0x3960ac['push'](_0x35a9ad[_0x532cb9('0x3d9')][_0x37419a]));}_0x35a9ad[_0x532cb9('0x3d9')]=_0x3960ac;}else{if(!_0x1b9195[_0x532cb9('0x9e3')])return _0x4da177[_0x532cb9('0x78d')][_0x532cb9('0x1c53')]({'sectionId':_0x1b9195['id']})[_0x532cb9('0x1af5')][_0x532cb9('0x17e7')](function(_0x330f7c){const _0x104212=_0x532cb9,_0x29763d=_0x49cbdd()[_0x104212('0x787')](_0x330f7c[_0x104212('0x2319')],function(_0x127b40){const _0x19bad8=_0x104212;return _0x49cbdd()[_0x19bad8('0xe8e')](_0x35a9ad['mailAccounts'],{'id':_0x127b40['resourceId']});});let _0xa7e1ff=null;_0x35a9ad[_0x104212('0x2651')]&&(_0xa7e1ff=_0x49cbdd()[_0x104212('0xe8e')](_0x35a9ad['mailAccounts'],{'id':Number(_0x35a9ad[_0x104212('0x2651')][_0x104212('0xbda')])}));if(_0xa7e1ff&&!_0x49cbdd()[_0x104212('0x26f8')](_0x29763d,['id',_0xa7e1ff['id']])){const _0xc06a8=_0x49cbdd()['find'](_0x35a9ad['mailAccounts'],{'id':_0xa7e1ff['id']});_0xc06a8['canSelect']=![],_0x29763d[_0x104212('0x269f')](_0xc06a8);}_0x35a9ad[_0x104212('0x3d9')]=_0x29763d;});}})[_0x402082('0x16df')](function(_0x2c828d){const _0x26c9b0=_0x402082;_0x96ce46['error']({'title':_0x2c828d[_0x26c9b0('0x11c5')]?_0x26c9b0('0x14f7')+_0x2c828d[_0x26c9b0('0x11c5')]+_0x26c9b0('0x16e4')+_0x2c828d[_0x26c9b0('0x1833')]:_0x26c9b0('0x25dd'),'msg':_0x2c828d[_0x26c9b0('0x1457')]?JSON['stringify'](_0x2c828d['data']):_0x2c828d[_0x26c9b0('0x9b6')]()});});function _0x5406db(){const _0x3e6ff4=_0x402082;_0x35a9ad['errors']=[],_0x4da177[_0x3e6ff4('0x2651')][_0x3e6ff4('0x2439')](_0x35a9ad['schedule'])[_0x3e6ff4('0x1af5')][_0x3e6ff4('0x17e7')](function(_0x5b0ca7){const _0xb1c7f5=_0x3e6ff4;_0x35a9ad[_0xb1c7f5('0x2344')][_0xb1c7f5('0x1893')](_0x5b0ca7[_0xb1c7f5('0x16b2')]()),_0x96ce46[_0xb1c7f5('0x130d')]({'title':_0xb1c7f5('0x2ba'),'msg':_0x35a9ad['schedule'][_0xb1c7f5('0x2aa')]?_0x35a9ad['schedule']['name']+'\x20has\x20been\x20created!':''}),_0x5f16e9(_0x5b0ca7);})[_0x3e6ff4('0x16df')](function(_0x41e926){const _0x35dc58=_0x3e6ff4;if(_0x41e926[_0x35dc58('0x1457')]&&_0x41e926['data']['errors']&&_0x41e926[_0x35dc58('0x1457')]['errors'][_0x35dc58('0x1f73')]){_0x35a9ad[_0x35dc58('0x73e')]=_0x41e926['data'][_0x35dc58('0x73e')]||[{'message':_0x41e926[_0x35dc58('0x9b6')](),'type':'api.schedule.save'}];for(let _0x277773=0x0;_0x277773<_0x41e926[_0x35dc58('0x1457')][_0x35dc58('0x73e')][_0x35dc58('0x1f73')];_0x277773+=0x1){_0x96ce46[_0x35dc58('0x1db9')]({'title':_0x41e926[_0x35dc58('0x1457')]['errors'][_0x277773][_0x35dc58('0x412')],'msg':_0x41e926['data'][_0x35dc58('0x73e')][_0x277773][_0x35dc58('0x1603')]});}}else _0x96ce46[_0x35dc58('0x1db9')]({'title':_0x41e926['status']?_0x35dc58('0x14f7')+_0x41e926[_0x35dc58('0x11c5')]+'\x20-\x20'+_0x41e926[_0x35dc58('0x1833')]:_0x35dc58('0x1558'),'msg':_0x41e926[_0x35dc58('0x1457')]?JSON['stringify'](_0x41e926[_0x35dc58('0x1457')]['message']):_0x41e926[_0x35dc58('0x9b6')]()});});}function _0x5fed45(){const _0x447e5a=_0x402082;_0x35a9ad[_0x447e5a('0x73e')]=[],_0x4da177[_0x447e5a('0x2651')]['update']({'id':_0x35a9ad[_0x447e5a('0x2651')]['id']},_0x35a9ad[_0x447e5a('0x2651')])[_0x447e5a('0x1af5')][_0x447e5a('0x17e7')](function(_0x2876c5){const _0x353da4=_0x447e5a,_0x2fd27a=_0x49cbdd()[_0x353da4('0xe8e')](_0x35a9ad[_0x353da4('0x2344')],{'id':_0x2876c5['id']});_0x2fd27a&&_0x49cbdd()[_0x353da4('0x1ced')](_0x2fd27a,_0x49cbdd()[_0x353da4('0x230a')](_0x2876c5[_0x353da4('0x16b2')](),_0x49cbdd()['keys'](_0x2fd27a))),_0x96ce46['success']({'title':_0x353da4('0x1a92'),'msg':_0x35a9ad[_0x353da4('0x2651')][_0x353da4('0x2aa')]?_0x35a9ad[_0x353da4('0x2651')]['name']+_0x353da4('0x15ca'):''}),_0x5f16e9(_0x2876c5);})[_0x447e5a('0x16df')](function(_0x46495f){const _0x1825ae=_0x447e5a;if(_0x46495f[_0x1825ae('0x1457')]&&_0x46495f[_0x1825ae('0x1457')]['errors']&&_0x46495f[_0x1825ae('0x1457')]['errors'][_0x1825ae('0x1f73')]){_0x35a9ad[_0x1825ae('0x73e')]=_0x46495f[_0x1825ae('0x1457')][_0x1825ae('0x73e')]||[{'message':_0x46495f['toString'](),'type':_0x1825ae('0x355')}];for(let _0x22ae82=0x0;_0x22ae82<_0x46495f[_0x1825ae('0x1457')]['errors'][_0x1825ae('0x1f73')];_0x22ae82++){_0x96ce46[_0x1825ae('0x1db9')]({'title':_0x46495f[_0x1825ae('0x1457')][_0x1825ae('0x73e')][_0x22ae82]['type'],'msg':_0x46495f[_0x1825ae('0x1457')][_0x1825ae('0x73e')][_0x22ae82][_0x1825ae('0x1603')]});}}else _0x96ce46[_0x1825ae('0x1db9')]({'title':_0x46495f[_0x1825ae('0x11c5')]?'API:'+_0x46495f[_0x1825ae('0x11c5')]+_0x1825ae('0x16e4')+_0x46495f[_0x1825ae('0x1833')]:_0x1825ae('0x355'),'msg':_0x46495f[_0x1825ae('0x1457')]?JSON[_0x1825ae('0x678')](_0x46495f[_0x1825ae('0x1457')]['message']):_0x46495f[_0x1825ae('0x9b6')]()});});}function _0x3fc10e(_0x199d2c){const _0x2102b8=_0x402082;_0x35a9ad[_0x2102b8('0x73e')]=[];const _0x30bca6=_0x5511eb['confirm']()[_0x2102b8('0x24d3')](_0x2102b8('0x530'))['content']('The\x20schedule\x20will\x20be\x20deleted.')['ariaLabel']('Delete\x20Schedule')['ok']('Delete')[_0x2102b8('0x1d47')](_0x2102b8('0x1b70'))[_0x2102b8('0x104f')](_0x199d2c);_0x5511eb[_0x2102b8('0x28e2')](_0x30bca6)['then'](function(){const _0x2418e2=_0x2102b8;_0x4da177[_0x2418e2('0x2651')][_0x2418e2('0x1da6')]({'id':_0x35a9ad[_0x2418e2('0x2651')]['id']})[_0x2418e2('0x1af5')]['then'](function(){const _0xfd3bb2=_0x2418e2;_0x49cbdd()['remove'](_0x35a9ad[_0xfd3bb2('0x2344')],{'id':_0x35a9ad['schedule']['id']}),_0x96ce46[_0xfd3bb2('0x130d')]({'title':_0xfd3bb2('0x2172'),'msg':(_0x35a9ad[_0xfd3bb2('0x2651')]['name']||_0xfd3bb2('0x2651'))+_0xfd3bb2('0x149f')}),_0x5f16e9(_0x35a9ad[_0xfd3bb2('0x2651')]);})[_0x2418e2('0x16df')](function(_0x32e7f7){const _0x125628=_0x2418e2;if(_0x32e7f7[_0x125628('0x1457')]&&_0x32e7f7[_0x125628('0x1457')][_0x125628('0x73e')]&&_0x32e7f7['data'][_0x125628('0x73e')][_0x125628('0x1f73')]){_0x35a9ad[_0x125628('0x73e')]=_0x32e7f7[_0x125628('0x1457')]['errors']||[{'message':_0x32e7f7['toString'](),'type':_0x125628('0x1b6d')}];for(let _0x176c83=0x0;_0x176c83<_0x32e7f7[_0x125628('0x1457')][_0x125628('0x73e')][_0x125628('0x1f73')];_0x176c83++){_0x96ce46[_0x125628('0x1db9')]({'title':_0x32e7f7[_0x125628('0x1457')][_0x125628('0x73e')][_0x176c83][_0x125628('0x412')],'msg':_0x32e7f7[_0x125628('0x1457')]['errors'][_0x176c83][_0x125628('0x1603')]});}}else _0x96ce46[_0x125628('0x1db9')]({'title':_0x32e7f7['status']?'API:'+_0x32e7f7[_0x125628('0x11c5')]+_0x125628('0x16e4')+_0x32e7f7[_0x125628('0x1833')]:_0x125628('0x1b6d'),'msg':_0x32e7f7[_0x125628('0x1457')]?JSON['stringify'](_0x32e7f7['data'][_0x125628('0x1603')]):_0x32e7f7[_0x125628('0x1603')]||_0x32e7f7['toString']()});});},function(){});}function _0x25c53e(){const _0x5037a2=_0x402082,_0x42a253={'core':{'multiple':![],'animation':!![],'error':function(_0x4f26f5){const _0x16b649=a0_0xd29e;console[_0x16b649('0x1db9')]('treeCtrl:\x20error\x20from\x20js\x20tree\x20-\x20'+angular[_0x16b649('0x1d04')](_0x4f26f5));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':['wholerow']};return _0x35a9ad[_0x5037a2('0x197c')][_0x5037a2('0x1085')]!==_0x5037a2('0x20bf')?_0x4da177[_0x5037a2('0x383')][_0x5037a2('0x1c53')]({'fields':_0x5037a2('0x1134'),'userProfileId':_0x35a9ad[_0x5037a2('0x197c')]['userProfileId'],'sectionId':0x4b3})[_0x5037a2('0x1af5')]['then'](function(_0x1d1765){const _0x329b9a=_0x5037a2;return _0x35a9ad['userProfileSection']=_0x1d1765&&_0x1d1765[_0x329b9a('0x335')]==0x1?_0x1d1765[_0x329b9a('0x2319')][0x0]:null,_0x42a253;})[_0x5037a2('0x16df')](function(_0x4e0540){const _0x1288f3=_0x5037a2;_0x96ce46[_0x1288f3('0x1db9')]({'title':_0x1288f3('0x1288'),'msg':_0x4e0540[_0x1288f3('0x1603')]});}):_0x42a253;}function _0x37b014(_0x2e37e5){return _0x2e37e5?{'loaded':_0x3ac719,'select_node':_0x469168}:{'loaded':_0x3877fc,'select_node':_0x577817};}function _0x469168(_0x270974,_0x16fc8b){const _0xf20683=_0x402082;_0x35a9ad[_0xf20683('0x68c')][_0xf20683('0x1cf1')](!![])[_0xf20683('0x221b')](),_0x35a9ad[_0xf20683('0x68c')]['jstree'](!![])[_0xf20683('0x1746')](),_0x35a9ad[_0xf20683('0x5af')]=_0x16fc8b['node'],_0x35a9ad[_0xf20683('0x5af')][_0xf20683('0x8fa')]=!![],_0x35a9ad[_0xf20683('0xab1')]=_0x35a9ad[_0xf20683('0x24ea')][_0xf20683('0x1cf1')](!![])['get_path'](_0x35a9ad[_0xf20683('0x5af')])['join']('/\x20'),_0x35a9ad[_0xf20683('0x2883')]=_0xf20683('0x18bc'),_0x35a9ad[_0xf20683('0x826')]['parent']=_0x16fc8b[_0xf20683('0x10a')]['id'],_0x11b7b2();}function _0x577817(_0x2e2e2a,_0x422a47){const _0x1910b5=_0x402082;_0x35a9ad[_0x1910b5('0x24ea')]['jstree'](!![])[_0x1910b5('0x221b')](),_0x35a9ad[_0x1910b5('0x24ea')][_0x1910b5('0x1cf1')](!![])[_0x1910b5('0x1746')](),_0x35a9ad['currentNode']=_0x422a47[_0x1910b5('0x10a')],_0x35a9ad['currentNode'][_0x1910b5('0x8fa')]=![],_0x35a9ad[_0x1910b5('0xab1')]=_0x35a9ad[_0x1910b5('0x68c')][_0x1910b5('0x1cf1')](!![])[_0x1910b5('0x94b')](_0x35a9ad['currentNode'])[_0x1910b5('0x1eba')]('/\x20'),_0x35a9ad[_0x1910b5('0x2883')]=_0x1910b5('0x1369'),_0x35a9ad['query'][_0x1910b5('0x14e')]=_0x422a47[_0x1910b5('0x10a')]['id'],_0x11b7b2();}function _0x3ac719(){const _0x582eda=_0x402082;if(!_0x35a9ad[_0x582eda('0x1e97')]&&_0x35a9ad[_0x582eda('0x2883')]==='analyticCustomReport'){const _0x5ace5f=_0x35a9ad[_0x582eda('0x24ea')]['jstree'](!![])[_0x582eda('0x1e85')](_0x35a9ad[_0x582eda('0x826')]['parent']);_0x469168(null,{'node':_0x5ace5f,'selected':_0x5ace5f['id']});}}function _0x3877fc(){const _0x1c9d14=_0x402082;if(!_0x35a9ad[_0x1c9d14('0x1e97')]&&_0x35a9ad[_0x1c9d14('0x2883')]==='analyticDefaultReport'){const _0x4db1fd=_0x35a9ad[_0x1c9d14('0x68c')][_0x1c9d14('0x1cf1')](!![])[_0x1c9d14('0x1e85')](_0x35a9ad['query'][_0x1c9d14('0x14e')]);_0x577817(null,{'node':_0x4db1fd,'selected':_0x4db1fd['id']});}}function _0x11b7b2(){const _0x3c5137=_0x402082;_0x35a9ad[_0x3c5137('0x826')][_0x3c5137('0xf19')]=(_0x35a9ad[_0x3c5137('0x826')][_0x3c5137('0x115a')]-0x1)*_0x35a9ad[_0x3c5137('0x826')][_0x3c5137('0x193b')];if(_0x35a9ad[_0x3c5137('0x2883')]){if(_0x35a9ad[_0x3c5137('0x197c')][_0x3c5137('0x1085')]===_0x3c5137('0x20bf'))_0x35a9ad[_0x3c5137('0x1691')]=_0x4da177[_0x35a9ad[_0x3c5137('0x2883')]]['get'](_0x35a9ad[_0x3c5137('0x826')],_0x371e8f)['$promise'];else{if(!_0x35a9ad['userProfileSection'])return _0x371e8f(null);else{if(_0x35a9ad['userProfileSection'][_0x3c5137('0x9e3')])_0x35a9ad[_0x3c5137('0x1691')]=_0x4da177[_0x35a9ad[_0x3c5137('0x2883')]][_0x3c5137('0x1c53')](_0x35a9ad[_0x3c5137('0x826')],_0x371e8f)[_0x3c5137('0x1af5')];else{let _0x2c89c9=[];_0x35a9ad['promise']=_0x4da177[_0x35a9ad[_0x3c5137('0x2883')]][_0x3c5137('0x1c53')](_0x35a9ad[_0x3c5137('0x826')])['$promise'][_0x3c5137('0x17e7')](function(_0x15caff){const _0x52e3fe=_0x3c5137;return _0x2c89c9=_0x15caff&&_0x15caff[_0x52e3fe('0x2319')]?_0x15caff[_0x52e3fe('0x2319')]:[],_0x2c89c9['length']>0x0?_0x4da177[_0x52e3fe('0x78d')][_0x52e3fe('0x1c53')]({'sectionId':_0x35a9ad[_0x52e3fe('0x383')]['id'],'type':_0x35a9ad[_0x52e3fe('0x2883')]===_0x52e3fe('0x1369')?_0x52e3fe('0x9fb'):'CustomReports'})[_0x52e3fe('0x1af5')]['then'](function(_0xf2fe93){const _0x339706=_0x52e3fe,_0x310965=_0xf2fe93&&_0xf2fe93[_0x339706('0x2319')]?_0xf2fe93[_0x339706('0x2319')]:[];if(_0x310965[_0x339706('0x1f73')]>0x0){const _0x141db2=[];return _0x2c89c9[_0x339706('0xccd')](function(_0x360432){const _0xcf7333=_0x339706,_0x592fce=_0x49cbdd()[_0xcf7333('0xe8e')](_0x310965,[_0xcf7333('0x5db'),_0x360432['id']]);if(_0x592fce)_0x141db2[_0xcf7333('0x269f')](_0x360432);}),_0x371e8f({'count':_0x141db2['length'],'rows':_0x141db2});}else return _0x371e8f(null);}):_0x371e8f(null);})[_0x3c5137('0x16df')](function(_0x2dfea2){const _0x4a538a=_0x3c5137;_0x96ce46[_0x4a538a('0x1db9')]({'title':_0x2dfea2[_0x4a538a('0x11c5')]?_0x4a538a('0x14f7')+_0x2dfea2[_0x4a538a('0x11c5')]+'\x20-\x20'+_0x2dfea2[_0x4a538a('0x1833')]:_0x4a538a('0xfbd'),'msg':_0x2dfea2[_0x4a538a('0x1457')]?JSON[_0x4a538a('0x678')](_0x2dfea2[_0x4a538a('0x1457')]):_0x2dfea2[_0x4a538a('0x9b6')]()});});}}}}}function _0x371e8f(_0x23673d){const _0xabaea7=_0x402082;_0x35a9ad[_0xabaea7('0xe04')]=_0x23673d||{'count':0x0,'rows':[]},!_0x35a9ad[_0xabaea7('0x1e97')]&&_0x35a9ad['selectedReport'][_0xabaea7('0x269f')](_0x49cbdd()[_0xabaea7('0xe8e')](_0x35a9ad['reports']['rows'],{'id':_0x35a9ad[_0xabaea7('0x32e')]['id']}));}function _0x9f5edd(){const _0x1f1f8f=_0x402082;_0x35a9ad[_0x1f1f8f('0x233d')]=_0x35a9ad[_0x1f1f8f('0x1ab7')][0x0]?angular[_0x1f1f8f('0x12e6')](_0x35a9ad[_0x1f1f8f('0x1ab7')][0x0][_0x1f1f8f('0x204b')]):[],_0x35a9ad['treeCustomData']=_0x35a9ad[_0x1f1f8f('0x1ab7')][0x1]?angular[_0x1f1f8f('0x12e6')](_0x35a9ad[_0x1f1f8f('0x1ab7')][0x1][_0x1f1f8f('0x204b')]):[],_0x35a9ad[_0x1f1f8f('0x266a')]=_0x25c53e(),_0x35a9ad[_0x1f1f8f('0x1cce')]=_0x37b014(![]),_0x35a9ad[_0x1f1f8f('0x1ef9')]=_0x37b014(!![]),_0x5511eb['show']({'controller':function(){return _0x35a9ad;},'controllerAs':'vm','templateUrl':_0x25e1aa,'autoWrap':!![],'skipHide':!![]});}function _0x3a51f7(){const _0x402539=_0x402082;_0x35a9ad[_0x402539('0x2651')]['report']=_0x35a9ad[_0x402539('0xffd')][0x0][_0x402539('0x2aa')],_0x35a9ad[_0x402539('0x5af')][_0x402539('0x8fa')]?(_0x35a9ad[_0x402539('0x2651')][_0x402539('0x9a6')]=_0x35a9ad[_0x402539('0xffd')][0x0]['id'],delete _0x35a9ad[_0x402539('0x2651')][_0x402539('0x1d5b')]):(_0x35a9ad[_0x402539('0x2651')][_0x402539('0x1d5b')]=_0x35a9ad[_0x402539('0xffd')][0x0]['id'],delete _0x35a9ad[_0x402539('0x2651')]['CustomReportId']),_0xd798e1['scheduleForm'][_0x402539('0x9d2')][_0x402539('0x23f5')](),_0x5511eb[_0x402539('0x212a')]();}function _0x328b49(){const _0x21ecb0=_0x402082;_0x5511eb[_0x21ecb0('0x212a')]();}function _0x708523(_0x46c748){return _0x46c748===null?undefined:new Date(_0x46c748);}function _0x5f16e9(_0x278ca7){const _0x36980f=_0x402082;_0x5511eb[_0x36980f('0x212a')](_0x278ca7);}}const _0x61f9c0=_0xc72326,_0x4d095d=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/schedules/create/dialog.html/dialog.html';_0x38cb63[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state','$mdSidenav',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0x2344'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),'toasty',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting'];function _0x38cb63(_0x167d47,_0x2d1445,_0xbb93a1,_0x2aa736,_0x4aa125,_0x259ef4,_0x1a051b,_0xf45919,_0x409347,_0x441a7c,_0x45576d,_0x5d6ee5,_0x4c7082,_0x4031c0,_0x401ef8,_0x4f6cc8,_0x116cb0){const _0x3140b8=_0x4376d8,_0x543130=this;_0x543130['license']=_0x4f6cc8,_0x543130['setting']=_0x116cb0,_0x543130[_0x3140b8('0x197c')]=_0x401ef8['getCurrentUser'](),_0x543130['schedules']=_0x409347||{'count':0x0,'rows':[]},_0x543130[_0x3140b8('0xdeb')]=_0x441a7c,_0x543130[_0x3140b8('0x383')]=_0x45576d&&_0x45576d[_0x3140b8('0x335')]==0x1?_0x45576d[_0x3140b8('0x2319')][0x0]:null,_0x543130['crudPermissions']=_0x401ef8[_0x3140b8('0x17a9')](_0x543130[_0x3140b8('0x383')]?_0x543130[_0x3140b8('0x383')][_0x3140b8('0x103e')]:null),_0x543130[_0x3140b8('0x23c3')]='schedules',_0x543130[_0x3140b8('0x26a1')]='',_0x543130[_0x3140b8('0x24e1')]=null,_0x543130[_0x3140b8('0x5d6')]=[],_0x543130[_0x3140b8('0x826')]={'fields':_0x3140b8('0x1e7d'),'sort':_0x3140b8('0x1ac6'),'limit':0xa,'page':0x1},_0x543130[_0x3140b8('0x13c3')]=_0x49cbdd()['keyBy']([{'option':_0x3140b8('0x7e1'),'value':_0x3140b8('0x53c')},{'option':_0x3140b8('0x1b50'),'value':_0x3140b8('0x1108')},{'option':_0x3140b8('0x227c'),'value':_0x3140b8('0x1b2')}],function(_0xd686d1){const _0x4e7b24=_0x3140b8;return _0x49cbdd()['replace'](_0xd686d1[_0x4e7b24('0x175b')],new RegExp('\x27','g'),'');}),_0x543130[_0x3140b8('0x1d62')]=_0x49cbdd()[_0x3140b8('0x8de')]([{'option':_0x3140b8('0x19ae'),'value':'\x27minutes\x27'},{'option':'Hours','value':_0x3140b8('0x2128')},{'option':_0x3140b8('0x1b77'),'value':_0x3140b8('0x1aab')},{'option':_0x3140b8('0x2437'),'value':_0x3140b8('0x1537')},{'option':_0x3140b8('0x1e40'),'value':_0x3140b8('0x1947')},{'option':_0x3140b8('0x25fc'),'value':_0x3140b8('0xc80')},{'option':_0x3140b8('0x1b29'),'value':_0x3140b8('0xd06')}],function(_0x15498e){const _0x447b78=_0x3140b8;return _0x49cbdd()[_0x447b78('0x737')](_0x15498e['value'],new RegExp('\x27','g'),'');}),_0x543130['editdialog']=_0x4fa941,_0x543130[_0x3140b8('0x23e')]=_0x5f96f6,_0x543130[_0x3140b8('0xbf4')]=_0x55588d,_0x543130[_0x3140b8('0x130d')]=_0xe77648,_0x543130[_0x3140b8('0xa51')]=_0xb450bc,_0x543130['createOrEditSchedule']=_0x2b048e,_0x543130[_0x3140b8('0xe9a')]=_0x55ddea,_0x543130[_0x3140b8('0x1ded')]=_0x59930c,_0x543130[_0x3140b8('0xe82')]=_0x547aea,_0x543130[_0x3140b8('0x11a5')]=_0x5c0293,_0x543130[_0x3140b8('0x55a')]=_0x6e52ad,_0x5d6ee5[_0x3140b8('0x148')][_0x3140b8('0x1c53')]({})[_0x3140b8('0x1af5')]['then'](function(_0x4b98a2){const _0x163788=_0x3140b8;_0x543130['treeReports']=_0x4b98a2[_0x163788('0x2319')]||[];})[_0x3140b8('0x16df')](function(_0x5c6c39){const _0x228d04=_0x3140b8;_0x4031c0['error']({'title':_0x5c6c39[_0x228d04('0x11c5')]?'API:'+_0x5c6c39[_0x228d04('0x11c5')]+'\x20-\x20'+_0x5c6c39[_0x228d04('0x1833')]:'SYSTEM:GET_TREEREPORTS','msg':_0x5c6c39[_0x228d04('0x1457')]?JSON['stringify'](_0x5c6c39[_0x228d04('0x1457')]):_0x5c6c39[_0x228d04('0x9b6')]()});}),_0x401ef8[_0x3140b8('0x1ba2')](_0x3140b8('0x20bf'))?_0x5d6ee5['mailAccount'][_0x3140b8('0x1c53')]({'fields':_0x3140b8('0x12d2'),'sort':_0x3140b8('0x2aa')})[_0x3140b8('0x1af5')]['then'](function(_0x40bd34){const _0x30ac9b=_0x3140b8;_0x543130[_0x30ac9b('0x3d9')]=_0x40bd34['rows']||[];})[_0x3140b8('0x16df')](function(_0x50bc81){const _0x5c1f04=_0x3140b8;_0x4031c0['error']({'title':_0x50bc81[_0x5c1f04('0x11c5')]?_0x5c1f04('0x14f7')+_0x50bc81[_0x5c1f04('0x11c5')]+'\x20-\x20'+_0x50bc81[_0x5c1f04('0x1833')]:_0x5c1f04('0x11c'),'msg':_0x50bc81['data']?JSON[_0x5c1f04('0x678')](_0x50bc81[_0x5c1f04('0x1457')]):_0x50bc81[_0x5c1f04('0x9b6')]()});}):_0x5d6ee5[_0x3140b8('0x127b')][_0x3140b8('0x1c53')]({'fields':'id,name','sort':_0x3140b8('0x2aa')})[_0x3140b8('0x1af5')]['then'](function(_0x4c4df5){const _0x3f7a22=_0x3140b8;_0x543130['mailAccounts']=_0x4c4df5[_0x3f7a22('0x2319')]||[];})[_0x3140b8('0x17e7')](function(){const _0x4173bc=_0x3140b8;return _0x5d6ee5[_0x4173bc('0x383')][_0x4173bc('0x1c53')]({'userProfileId':_0x543130[_0x4173bc('0x197c')][_0x4173bc('0x1e76')],'sectionId':0x25a})[_0x4173bc('0x1af5')];})[_0x3140b8('0x17e7')](function(_0xdcbbd4){const _0xa8a6bd=_0x3140b8,_0x5722ee=_0xdcbbd4&&_0xdcbbd4[_0xa8a6bd('0x2319')]?_0xdcbbd4['rows'][0x0]:null;if(!_0x5722ee){const _0x13bec6=[];let _0x1064f4=null;_0x543130[_0xa8a6bd('0x2651')]&&(_0x1064f4=_0x49cbdd()[_0xa8a6bd('0xe8e')](_0x543130[_0xa8a6bd('0x3d9')],{'id':Number(_0x543130['schedule'][_0xa8a6bd('0xbda')])}));for(let _0x12443a=0x0;_0x12443a<_0x543130['mailAccounts'][_0xa8a6bd('0x1f73')];_0x12443a++){_0x1064f4&&_0x543130[_0xa8a6bd('0x3d9')][_0x12443a]['id']===_0x1064f4['id']&&(_0x543130[_0xa8a6bd('0x3d9')][_0x12443a]['canSelect']=![],_0x13bec6[_0xa8a6bd('0x269f')](_0x543130['mailAccounts'][_0x12443a]));}_0x543130['mailAccounts']=_0x13bec6;}else{if(!_0x5722ee['autoAssociation'])return _0x5d6ee5[_0xa8a6bd('0x78d')][_0xa8a6bd('0x1c53')]({'sectionId':_0x5722ee['id']})[_0xa8a6bd('0x1af5')][_0xa8a6bd('0x17e7')](function(_0x415989){const _0x296c72=_0xa8a6bd,_0x32f0f8=_0x49cbdd()[_0x296c72('0x787')](_0x415989[_0x296c72('0x2319')],function(_0x402048){const _0x9600ac=_0x296c72;return _0x49cbdd()['find'](_0x543130[_0x9600ac('0x3d9')],{'id':_0x402048['resourceId']});});let _0x1941cb=null;_0x543130['schedule']&&(_0x1941cb=_0x49cbdd()[_0x296c72('0xe8e')](_0x543130[_0x296c72('0x3d9')],{'id':Number(_0x543130[_0x296c72('0x2651')][_0x296c72('0xbda')])}));if(_0x1941cb&&!_0x49cbdd()[_0x296c72('0x26f8')](_0x32f0f8,['id',_0x1941cb['id']])){const _0x1a9b83=_0x49cbdd()[_0x296c72('0xe8e')](_0x543130[_0x296c72('0x3d9')],{'id':_0x1941cb['id']});_0x1a9b83[_0x296c72('0xe5c')]=![],_0x32f0f8[_0x296c72('0x269f')](_0x1a9b83);}_0x543130[_0x296c72('0x3d9')]=_0x32f0f8;});}})[_0x3140b8('0x16df')](function(_0x5dfb05){const _0x244a1a=_0x3140b8;_0x4031c0[_0x244a1a('0x1db9')]({'title':_0x5dfb05[_0x244a1a('0x11c5')]?_0x244a1a('0x14f7')+_0x5dfb05[_0x244a1a('0x11c5')]+_0x244a1a('0x16e4')+_0x5dfb05[_0x244a1a('0x1833')]:_0x244a1a('0x25dd'),'msg':_0x5dfb05[_0x244a1a('0x1457')]?JSON[_0x244a1a('0x678')](_0x5dfb05[_0x244a1a('0x1457')]):_0x5dfb05['toString']()});});function _0x4fa941(_0x4e3a3e,_0x2b0041){const _0x4476bd=_0x3140b8;_0x4aa125[_0x4476bd('0x28e2')]({'controller':_0x4476bd('0x1a2f'),'controllerAs':'vm','templateUrl':_0x4d095d,'parent':angular[_0x4476bd('0x1ce1')](_0x259ef4[_0x4476bd('0x13aa')]),'targetEvent':_0x2b0041,'clickOutsideToClose':!![],'locals':{'schedule':_0x4e3a3e,'schedules':_0x543130[_0x4476bd('0x2344')][_0x4476bd('0x2319')],'license':_0x543130[_0x4476bd('0x1d11')],'setting':null,'crudPermissions':_0x543130[_0x4476bd('0x103e')]}});}function _0x5f96f6(_0x3510a2,_0x14275e){const _0x3303fc=_0x3140b8,_0x575571=_0x4aa125[_0x3303fc('0x1121')]()['title'](_0x3303fc('0x1193'))[_0x3303fc('0x211f')](_0x3303fc('0xa53')+(_0x3510a2['name']||'schedule')+_0x3303fc('0x1d23')+_0x3303fc('0x135d'))[_0x3303fc('0x2095')]('delete\x20schedule')[_0x3303fc('0x104f')](_0x14275e)['ok']('OK')['cancel'](_0x3303fc('0x28a0'));_0x4aa125[_0x3303fc('0x28e2')](_0x575571)[_0x3303fc('0x17e7')](function(){const _0x1ac1d5=_0x3303fc;return _0x5d6ee5[_0x1ac1d5('0x2651')][_0x1ac1d5('0x1a46')]({'id':_0x3510a2['id']})[_0x1ac1d5('0x1af5')];},function(){const _0x6bb92=_0x3303fc;console['log'](_0x6bb92('0x28a0'));});}function _0x55588d(_0x25ccc5,_0x1287ff){const _0x4384c4=_0x3140b8,_0x10a913=_0x4aa125[_0x4384c4('0x1121')]()[_0x4384c4('0x24d3')](_0x4384c4('0x5e1')+_0x49cbdd()[_0x4384c4('0x1c98')](_0x4384c4('0x2651'))+'?')[_0x4384c4('0x211f')](_0x4384c4('0xa53')+(_0x25ccc5[_0x4384c4('0x2aa')]||'schedule')+''+_0x4384c4('0xe9f'))['ariaLabel'](_0x4384c4('0x1e29'))[_0x4384c4('0x104f')](_0x1287ff)['ok']('OK')[_0x4384c4('0x1d47')](_0x4384c4('0x28a0'));_0x4aa125[_0x4384c4('0x28e2')](_0x10a913)[_0x4384c4('0x17e7')](function(){_0x55ddea(_0x25ccc5);},function(){const _0x19613a=_0x4384c4;console[_0x19613a('0x1d63')]('CANCEL');});}let _0x41031f=!![],_0x2898cc=0x1;_0x167d47[_0x3140b8('0x620')]('vm.query.filter',function(_0x743199,_0x11dc8d){const _0x5c8b94=_0x3140b8;_0x41031f?_0x1a051b(function(){_0x41031f=![];}):(!_0x11dc8d&&(_0x2898cc=_0x543130['query']['page']),_0x743199!==_0x11dc8d&&(_0x543130['query']['page']=0x1),!_0x743199&&(_0x543130[_0x5c8b94('0x826')]['page']=_0x2898cc),_0x543130[_0x5c8b94('0xa51')]());});function _0xe77648(_0x587f9d){const _0x4b1f82=_0x3140b8;_0x543130[_0x4b1f82('0x2344')]=_0x587f9d||{'count':0x0,'rows':[]};}function _0xb450bc(){const _0x5672b5=_0x3140b8;_0x543130[_0x5672b5('0x826')]['offset']=(_0x543130[_0x5672b5('0x826')][_0x5672b5('0x115a')]-0x1)*_0x543130[_0x5672b5('0x826')][_0x5672b5('0x193b')],_0x401ef8[_0x5672b5('0x1ba2')](_0x5672b5('0x20bf'))?_0x543130[_0x5672b5('0x1691')]=_0x5d6ee5[_0x5672b5('0x2651')][_0x5672b5('0x1c53')](_0x543130['query'],_0xe77648)[_0x5672b5('0x1af5')]:(_0x543130[_0x5672b5('0x826')]['id']=_0x543130[_0x5672b5('0xdeb')]['id'],_0x543130[_0x5672b5('0x826')][_0x5672b5('0x16f8')]='Scheduler',_0x543130[_0x5672b5('0x1691')]=_0x5d6ee5[_0x5672b5('0xdeb')][_0x5672b5('0x2447')](_0x543130[_0x5672b5('0x826')],_0xe77648)[_0x5672b5('0x1af5')]);}function _0x2b048e(_0x544ac3,_0x1ddf2d){const _0x3f8022=_0x3140b8;_0x4aa125['show']({'controller':_0x3f8022('0x1a2f'),'controllerAs':'vm','templateUrl':_0x4d095d,'parent':angular[_0x3f8022('0x1ce1')](_0x259ef4[_0x3f8022('0x13aa')]),'targetEvent':_0x544ac3,'clickOutsideToClose':!![],'locals':{'schedule':_0x1ddf2d,'schedules':_0x543130[_0x3f8022('0x2344')][_0x3f8022('0x2319')],'license':_0x543130[_0x3f8022('0x1d11')],'setting':_0x543130['setting'],'crudPermissions':_0x543130[_0x3f8022('0x103e')]}});}function _0x55ddea(_0xfba9b4){const _0x13ff11=_0x3140b8;_0x5d6ee5[_0x13ff11('0x2651')][_0x13ff11('0x1da6')]({'id':_0xfba9b4['id']})['$promise'][_0x13ff11('0x17e7')](function(){const _0xddad7=_0x13ff11;_0x49cbdd()[_0xddad7('0x5f3')](_0x543130[_0xddad7('0x2344')][_0xddad7('0x2319')],{'id':_0xfba9b4['id']}),_0x543130[_0xddad7('0x2344')]['count']-=0x1,!_0x543130[_0xddad7('0x2344')][_0xddad7('0x2319')][_0xddad7('0x1f73')]&&_0x543130['getScheduler'](),_0x4031c0[_0xddad7('0x130d')]({'title':_0x49cbdd()[_0xddad7('0x1c98')](_0xddad7('0xa69'))+_0xddad7('0x2673'),'msg':_0xfba9b4[_0xddad7('0x2aa')]?_0xfba9b4[_0xddad7('0x2aa')]+_0xddad7('0x149f'):''});})[_0x13ff11('0x16df')](function(_0x2db266){const _0x15c131=_0x13ff11;if(_0x2db266[_0x15c131('0x1457')]&&_0x2db266[_0x15c131('0x1457')][_0x15c131('0x73e')]&&_0x2db266['data'][_0x15c131('0x73e')][_0x15c131('0x1f73')]){_0x543130[_0x15c131('0x73e')]=_0x2db266[_0x15c131('0x1457')]['errors']||[{'message':_0x2db266[_0x15c131('0x9b6')](),'type':_0x15c131('0x4bb')}];for(let _0x379c9f=0x0;_0x379c9f<_0x2db266[_0x15c131('0x1457')]['errors'][_0x15c131('0x1f73')];_0x379c9f++){_0x4031c0[_0x15c131('0x1db9')]({'title':_0x2db266['data'][_0x15c131('0x73e')][_0x379c9f][_0x15c131('0x412')],'msg':_0x2db266[_0x15c131('0x1457')][_0x15c131('0x73e')][_0x379c9f][_0x15c131('0x1603')]});}}else _0x4031c0[_0x15c131('0x1db9')]({'title':_0x2db266['status']?_0x15c131('0x14f7')+_0x2db266[_0x15c131('0x11c5')]+'\x20-\x20'+_0x2db266[_0x15c131('0x1833')]:'SYSTEM:DELETEschedule','msg':_0x2db266[_0x15c131('0x1457')]?JSON['stringify'](_0x2db266[_0x15c131('0x1457')][_0x15c131('0x1603')]):_0x2db266[_0x15c131('0x1603')]||_0x2db266['toString']()});});}function _0x59930c(){const _0x16641d=_0x3140b8,_0x499dd4=angular[_0x16641d('0x14e5')](_0x543130['selectedScheduler']);return _0x543130['selectedScheduler']=[],_0x499dd4;}function _0x547aea(_0x38b9b7){const _0x4da440=_0x3140b8,_0x465af3=_0x4aa125[_0x4da440('0x1121')]()[_0x4da440('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20schedules?')[_0x4da440('0x211f')](_0x4da440('0xa53')+_0x543130[_0x4da440('0x5d6')]['length']+'\x20selected'+_0x4da440('0xe9f'))[_0x4da440('0x2095')](_0x4da440('0x22c0'))[_0x4da440('0x104f')](_0x38b9b7)['ok']('OK')['cancel'](_0x4da440('0x28a0'));_0x4aa125[_0x4da440('0x28e2')](_0x465af3)[_0x4da440('0x17e7')](function(){const _0x1fcae1=_0x4da440;_0x543130[_0x1fcae1('0x5d6')][_0x1fcae1('0xccd')](function(_0xdaf915){_0x55ddea(_0xdaf915);}),_0x543130[_0x1fcae1('0x5d6')]=[];});}function _0x5c0293(){const _0x1a8198=_0x3140b8;_0x543130[_0x1a8198('0x5d6')]=[];}function _0x6e52ad(){const _0x55bc7e=_0x3140b8;_0x543130['selectedScheduler']=_0x543130[_0x55bc7e('0x2344')]['rows'];}}const _0x293d91=_0x38cb63;_0x8adbda[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x27c4'),'sound',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x8adbda(_0xb9d929,_0x49b266,_0x118bae,_0x24db9d,_0x14660a,_0x370e9d,_0x18f675,_0x3a15c5,_0x21cd50,_0x4ce7,_0x504ee7,_0x186429,_0x166bae,_0x456130){const _0x593147=_0x4376d8,_0x23d618=this;_0x23d618[_0x593147('0x197c')]=_0x504ee7[_0x593147('0x2831')](),_0x23d618[_0x593147('0x73e')]=[],_0x23d618[_0x593147('0x1aeb')]=_0x166bae,_0x23d618[_0x593147('0x1d11')]=_0x186429,_0x23d618[_0x593147('0x103e')]=_0x456130,_0x23d618[_0x593147('0x6ee')]={},_0x23d618['passwordPattern']=_0x23d618['setting']&&_0x23d618[_0x593147('0x1aeb')][_0x593147('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x23d618['title']=_0x593147('0x266b'),_0x23d618[_0x593147('0x1f64')]=angular[_0x593147('0x14e5')](_0x21cd50),_0x23d618['sounds']=_0x3a15c5,_0x23d618[_0x593147('0x18af')]=![];!_0x23d618['sound']&&(_0x23d618[_0x593147('0x1f64')]={},_0x23d618[_0x593147('0x24d3')]=_0x593147('0x1390'),_0x23d618[_0x593147('0x18af')]=!![]);_0x23d618['addNewSound']=_0x2db573,_0x23d618[_0x593147('0x28e4')]=_0x4c689e,_0x23d618['deleteSound']=_0x2be11d,_0x23d618[_0x593147('0x1300')]=_0x4f562b,_0x23d618[_0x593147('0x136e')]=_0x31a8e8;function _0x2db573(){const _0xfbe7f8=_0x593147;_0x23d618[_0xfbe7f8('0x73e')]=[],_0x4ce7[_0xfbe7f8('0x1f64')][_0xfbe7f8('0x2439')](_0x23d618[_0xfbe7f8('0x1f64')])[_0xfbe7f8('0x1af5')][_0xfbe7f8('0x17e7')](function(_0x1fe1af){const _0x43ba82=_0xfbe7f8;_0x23d618[_0x43ba82('0x27c4')][_0x43ba82('0x1893')](_0x1fe1af[_0x43ba82('0x16b2')]()),_0x18f675[_0x43ba82('0x130d')]({'title':_0x43ba82('0x277b'),'msg':_0x23d618[_0x43ba82('0x1f64')][_0x43ba82('0x2aa')]?_0x23d618[_0x43ba82('0x1f64')][_0x43ba82('0x2aa')]+_0x43ba82('0x15a'):''}),_0x31a8e8(_0x1fe1af);})[_0xfbe7f8('0x16df')](function(_0x4ee8b8){const _0x370e5d=_0xfbe7f8;if(_0x4ee8b8[_0x370e5d('0x1457')]&&_0x4ee8b8[_0x370e5d('0x1457')][_0x370e5d('0x73e')]&&_0x4ee8b8[_0x370e5d('0x1457')][_0x370e5d('0x73e')][_0x370e5d('0x1f73')]){_0x23d618[_0x370e5d('0x73e')]=_0x4ee8b8['data'][_0x370e5d('0x73e')]||[{'message':_0x4ee8b8[_0x370e5d('0x9b6')](),'type':'api.sound.save'}];for(let _0x152627=0x0;_0x152627<_0x4ee8b8[_0x370e5d('0x1457')][_0x370e5d('0x73e')][_0x370e5d('0x1f73')];_0x152627+=0x1){_0x18f675['error']({'title':_0x4ee8b8['data'][_0x370e5d('0x73e')][_0x152627][_0x370e5d('0x412')],'msg':_0x4ee8b8[_0x370e5d('0x1457')]['errors'][_0x152627][_0x370e5d('0x1603')]});}}else _0x18f675[_0x370e5d('0x1db9')]({'title':_0x4ee8b8['status']?_0x370e5d('0x14f7')+_0x4ee8b8[_0x370e5d('0x11c5')]+_0x370e5d('0x16e4')+_0x4ee8b8[_0x370e5d('0x1833')]:_0x370e5d('0x1dfd'),'msg':_0x4ee8b8[_0x370e5d('0x1457')]?JSON[_0x370e5d('0x678')](_0x4ee8b8['data']['message']):_0x4ee8b8['toString']()});});}function _0x4c689e(){const _0xc3baf2=_0x593147;_0x23d618[_0xc3baf2('0x73e')]=[],_0x4ce7[_0xc3baf2('0x1f64')][_0xc3baf2('0x27ba')]({'id':_0x23d618[_0xc3baf2('0x1f64')]['id']},_0x23d618[_0xc3baf2('0x1f64')])['$promise']['then'](function(_0x3ed3e7){const _0x4ae030=_0xc3baf2,_0x4e0f11=_0x49cbdd()[_0x4ae030('0xe8e')](_0x23d618[_0x4ae030('0x27c4')],{'id':_0x3ed3e7['id']});_0x4e0f11&&_0x49cbdd()[_0x4ae030('0x1ced')](_0x4e0f11,_0x49cbdd()[_0x4ae030('0x230a')](_0x3ed3e7['toJSON'](),_0x49cbdd()['keys'](_0x4e0f11))),_0x18f675['success']({'title':_0x4ae030('0x131a'),'msg':_0x23d618['sound'][_0x4ae030('0x2aa')]?_0x23d618[_0x4ae030('0x1f64')][_0x4ae030('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x31a8e8(_0x3ed3e7);})[_0xc3baf2('0x16df')](function(_0xbb9224){const _0x4bd93f=_0xc3baf2;if(_0xbb9224['data']&&_0xbb9224['data'][_0x4bd93f('0x73e')]&&_0xbb9224[_0x4bd93f('0x1457')]['errors'][_0x4bd93f('0x1f73')]){_0x23d618[_0x4bd93f('0x73e')]=_0xbb9224['data'][_0x4bd93f('0x73e')]||[{'message':_0xbb9224[_0x4bd93f('0x9b6')](),'type':'api.sound.update'}];for(let _0x118490=0x0;_0x118490<_0xbb9224[_0x4bd93f('0x1457')][_0x4bd93f('0x73e')][_0x4bd93f('0x1f73')];_0x118490++){_0x18f675[_0x4bd93f('0x1db9')]({'title':_0xbb9224[_0x4bd93f('0x1457')][_0x4bd93f('0x73e')][_0x118490]['type'],'msg':_0xbb9224[_0x4bd93f('0x1457')][_0x4bd93f('0x73e')][_0x118490][_0x4bd93f('0x1603')]});}}else _0x18f675[_0x4bd93f('0x1db9')]({'title':_0xbb9224[_0x4bd93f('0x11c5')]?_0x4bd93f('0x14f7')+_0xbb9224[_0x4bd93f('0x11c5')]+_0x4bd93f('0x16e4')+_0xbb9224['statusText']:_0x4bd93f('0x8ff'),'msg':_0xbb9224['data']?JSON['stringify'](_0xbb9224[_0x4bd93f('0x1457')]['message']):_0xbb9224['toString']()});});}function _0x2be11d(_0xfd33a1){const _0x1602b8=_0x593147;_0x23d618[_0x1602b8('0x73e')]=[];const _0x4b82c2=_0x24db9d[_0x1602b8('0x1121')]()[_0x1602b8('0x24d3')](_0x1602b8('0x530'))[_0x1602b8('0xd5')]('The\x20sound\x20will\x20be\x20deleted.')['ariaLabel'](_0x1602b8('0x2878'))['ok']('Delete')[_0x1602b8('0x1d47')](_0x1602b8('0x1b70'))['targetEvent'](_0xfd33a1);_0x24db9d[_0x1602b8('0x28e2')](_0x4b82c2)[_0x1602b8('0x17e7')](function(){const _0xaba798=_0x1602b8;_0x4ce7[_0xaba798('0x1f64')][_0xaba798('0x1da6')]({'id':_0x23d618[_0xaba798('0x1f64')]['id']})[_0xaba798('0x1af5')]['then'](function(){const _0x21fc64=_0xaba798;_0x49cbdd()['remove'](_0x23d618['sounds'],{'id':_0x23d618[_0x21fc64('0x1f64')]['id']}),_0x18f675['success']({'title':_0x21fc64('0x1f84'),'msg':(_0x23d618[_0x21fc64('0x1f64')][_0x21fc64('0x2aa')]||_0x21fc64('0x1f64'))+_0x21fc64('0x149f')}),_0x31a8e8(_0x23d618[_0x21fc64('0x1f64')]);})[_0xaba798('0x16df')](function(_0x3cb419){const _0x1ebba2=_0xaba798;if(_0x3cb419['data']&&_0x3cb419['data']['errors']&&_0x3cb419[_0x1ebba2('0x1457')]['errors'][_0x1ebba2('0x1f73')]){_0x23d618[_0x1ebba2('0x73e')]=_0x3cb419['data'][_0x1ebba2('0x73e')]||[{'message':_0x3cb419[_0x1ebba2('0x9b6')](),'type':_0x1ebba2('0x1b1f')}];for(let _0x437c5e=0x0;_0x437c5e<_0x3cb419[_0x1ebba2('0x1457')]['errors'][_0x1ebba2('0x1f73')];_0x437c5e++){_0x18f675[_0x1ebba2('0x1db9')]({'title':_0x3cb419['data'][_0x1ebba2('0x73e')][_0x437c5e][_0x1ebba2('0x412')],'msg':_0x3cb419[_0x1ebba2('0x1457')][_0x1ebba2('0x73e')][_0x437c5e][_0x1ebba2('0x1603')]});}}else _0x18f675[_0x1ebba2('0x1db9')]({'title':_0x3cb419[_0x1ebba2('0x11c5')]?_0x1ebba2('0x14f7')+_0x3cb419[_0x1ebba2('0x11c5')]+_0x1ebba2('0x16e4')+_0x3cb419[_0x1ebba2('0x1833')]:'api.sound.delete','msg':_0x3cb419[_0x1ebba2('0x1457')]?JSON[_0x1ebba2('0x678')](_0x3cb419[_0x1ebba2('0x1457')][_0x1ebba2('0x1603')]):_0x3cb419['message']||_0x3cb419['toString']()});});},function(){});}function _0x4f562b(_0x502f0c){return _0x502f0c===null?undefined:new Date(_0x502f0c);}function _0x31a8e8(_0x1aaa81){const _0x117b96=_0x593147;_0x24db9d[_0x117b96('0x212a')](_0x1aaa81);}}const _0x1de609=_0x8adbda,_0x5504f2=_0x4cf2bc['p']+'src/js/modules/main/apps/tools/views/sounds/create/dialog.html/dialog.html',_0x3c8d80=_0x4cf2bc['p']+_0x4376d8('0x154b');_0x50e80e[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x27c4'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x50e80e(_0x19ea82,_0x3faef7,_0x384b5,_0x1df902,_0x127050,_0x1a4e05,_0x56348e,_0x447c71,_0x5a0331,_0x4cf9d,_0x318ae8,_0x787988,_0x5d883e,_0x352c1e,_0x22e10b,_0x701e4f,_0x4f21df){const _0x1775c2=_0x4376d8,_0x49ffcd=this;_0x49ffcd[_0x1775c2('0x1d11')]=_0x701e4f,_0x49ffcd[_0x1775c2('0x1aeb')]=_0x4f21df,_0x49ffcd['currentUser']=_0x22e10b[_0x1775c2('0x2831')](),_0x49ffcd[_0x1775c2('0x27c4')]=_0x5a0331||{'count':0x0,'rows':[]},_0x49ffcd['userProfile']=_0x4cf9d,_0x49ffcd['userProfileSection']=_0x318ae8&&_0x318ae8[_0x1775c2('0x335')]==0x1?_0x318ae8[_0x1775c2('0x2319')][0x0]:null,_0x49ffcd[_0x1775c2('0x103e')]=_0x22e10b['parseCrudPermissions'](_0x49ffcd[_0x1775c2('0x383')]?_0x49ffcd[_0x1775c2('0x383')][_0x1775c2('0x103e')]:null),_0x49ffcd['table']=_0x1775c2('0x27c4'),_0x49ffcd[_0x1775c2('0x26a1')]='',_0x49ffcd[_0x1775c2('0x24e1')]=null,_0x49ffcd['selectedSounds']=[],_0x49ffcd[_0x1775c2('0x826')]={'fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':'-updatedAt','limit':0xa,'page':0x1},_0x49ffcd[_0x1775c2('0xb32')]=_0x31e7bd,_0x49ffcd[_0x1775c2('0x1818')]=_0x20ad91,_0x49ffcd[_0x1775c2('0xbf4')]=_0x2d2928,_0x49ffcd['success']=_0x41fd27,_0x49ffcd[_0x1775c2('0x13ca')]=_0x5d7a98,_0x49ffcd['createOrEditSound']=_0x28eb48,_0x49ffcd['deleteSound']=_0x37efac,_0x49ffcd[_0x1775c2('0xa97')]=_0x38a2d7,_0x49ffcd[_0x1775c2('0x187')]=_0x2bfa64,_0x49ffcd[_0x1775c2('0x2058')]=_0x268935,_0x49ffcd[_0x1775c2('0x1e12')]=_0x3e3b7b,_0x49ffcd[_0x1775c2('0xdb6')]=_0x3b0d15;function _0x31e7bd(_0x256aed,_0x140c0c){const _0x25d86f=_0x1775c2;_0x127050['show']({'controller':_0x25d86f('0x16d4'),'controllerAs':'vm','templateUrl':_0x5504f2,'parent':angular[_0x25d86f('0x1ce1')](_0x1a4e05[_0x25d86f('0x13aa')]),'targetEvent':_0x140c0c,'clickOutsideToClose':!![],'locals':{'sound':_0x256aed,'sounds':_0x49ffcd[_0x25d86f('0x27c4')][_0x25d86f('0x2319')],'license':_0x49ffcd[_0x25d86f('0x1d11')],'setting':null,'crudPermissions':_0x49ffcd['crudPermissions']}});}function _0x20ad91(_0x5c2e14){const _0x4df347=_0x1775c2;return _0x787988[_0x4df347('0x1f64')][_0x4df347('0x1244')]({'id':_0x5c2e14['id']})[_0x4df347('0x1af5')][_0x4df347('0x17e7')](function(_0x59e2b0){const _0x359583=_0x4df347,_0x19c211=[_0x59e2b0['buffer']];let _0x50bfee=_0x359583('0x1244');const _0x3adec0=new Blob(_0x19c211,{'type':_0x59e2b0[_0x359583('0x412')]});_0x50bfee=_0x5c2e14['converted_format']?_0x5c2e14[_0x359583('0x1138')]+'.'+_0x5c2e14[_0x359583('0x1f54')]:_0x5c2e14[_0x359583('0x1138')];const _0x5dc81d=window[_0x359583('0x2be')][_0x359583('0x68d')]('a');_0x5dc81d[_0x359583('0x224')](_0x359583('0x448'),URL['createObjectURL'](_0x3adec0)),_0x5dc81d[_0x359583('0x224')](_0x359583('0x1244'),_0x50bfee),document[_0x359583('0x13aa')][_0x359583('0x128c')](_0x5dc81d),_0x5dc81d['click']();})['catch'](function(_0x2164c5){const _0x99f4ad=_0x4df347;if(_0x2164c5[_0x99f4ad('0x1457')]&&_0x2164c5['data'][_0x99f4ad('0x73e')]&&_0x2164c5['data']['errors'][_0x99f4ad('0x1f73')])for(let _0x307a9a=0x0;_0x307a9a<_0x2164c5[_0x99f4ad('0x1457')][_0x99f4ad('0x73e')][_0x99f4ad('0x1f73')];_0x307a9a++){_0x352c1e[_0x99f4ad('0x1db9')]({'title':_0x2164c5['data'][_0x99f4ad('0x73e')][_0x307a9a][_0x99f4ad('0x412')],'msg':_0x2164c5['data'][_0x99f4ad('0x73e')][_0x307a9a][_0x99f4ad('0x1603')]});}else _0x352c1e['error']({'title':_0x2164c5[_0x99f4ad('0x11c5')]?'API:'+_0x2164c5[_0x99f4ad('0x11c5')]+'\x20-\x20'+_0x2164c5[_0x99f4ad('0x1833')]:_0x99f4ad('0x1dfd'),'msg':_0x2164c5[_0x99f4ad('0x1457')]?JSON[_0x99f4ad('0x678')](_0x2164c5[_0x99f4ad('0x1457')][_0x99f4ad('0x1603')]):_0x2164c5[_0x99f4ad('0x9b6')]()});});}function _0x2d2928(_0x362036,_0x29f4dc){const _0x494a57=_0x1775c2,_0x409458=_0x127050['confirm']()['title'](_0x494a57('0x5e1')+_0x49cbdd()['startCase'](_0x494a57('0x1f64'))+'?')[_0x494a57('0x211f')](_0x494a57('0xa53')+(_0x362036[_0x494a57('0x2aa')]||'sound')+_0x494a57('0x1d23')+_0x494a57('0xe9f'))[_0x494a57('0x2095')](_0x494a57('0x2218'))[_0x494a57('0x104f')](_0x29f4dc)['ok']('OK')[_0x494a57('0x1d47')]('CANCEL');_0x127050['show'](_0x409458)[_0x494a57('0x17e7')](function(){_0x37efac(_0x362036);},function(){const _0x280888=_0x494a57;console['log'](_0x280888('0x28a0'));});}let _0xbea01=!![],_0x3dd434=0x1;_0x19ea82[_0x1775c2('0x620')](_0x1775c2('0x3ed'),function(_0x427f9a,_0x5ecaa0){const _0x452294=_0x1775c2;_0xbea01?_0x56348e(function(){_0xbea01=![];}):(!_0x5ecaa0&&(_0x3dd434=_0x49ffcd[_0x452294('0x826')]['page']),_0x427f9a!==_0x5ecaa0&&(_0x49ffcd[_0x452294('0x826')]['page']=0x1),!_0x427f9a&&(_0x49ffcd['query'][_0x452294('0x115a')]=_0x3dd434),_0x49ffcd['getSounds']());});function _0x41fd27(_0x438cb7){const _0x5d52c2=_0x1775c2;_0x49ffcd[_0x5d52c2('0x27c4')]=_0x438cb7||{'count':0x0,'rows':[]};}function _0x5d7a98(){const _0x37d873=_0x1775c2;_0x49ffcd[_0x37d873('0x826')]['offset']=(_0x49ffcd[_0x37d873('0x826')]['page']-0x1)*_0x49ffcd[_0x37d873('0x826')][_0x37d873('0x193b')],_0x22e10b['hasRole'](_0x37d873('0x20bf'))?_0x49ffcd[_0x37d873('0x1691')]=_0x787988[_0x37d873('0x1f64')][_0x37d873('0x1c53')](_0x49ffcd[_0x37d873('0x826')],_0x41fd27)[_0x37d873('0x1af5')]:(_0x49ffcd[_0x37d873('0x826')]['id']=_0x49ffcd[_0x37d873('0xdeb')]['id'],_0x49ffcd[_0x37d873('0x826')][_0x37d873('0x16f8')]=_0x37d873('0x18ff'),_0x49ffcd[_0x37d873('0x1691')]=_0x787988[_0x37d873('0xdeb')][_0x37d873('0x2447')](_0x49ffcd[_0x37d873('0x826')],_0x41fd27)[_0x37d873('0x1af5')]);}function _0x28eb48(_0x17b3f5,_0x23eb2d){const _0x327d84=_0x1775c2;_0x127050[_0x327d84('0x28e2')]({'controller':'CreateOrEditSoundDialogController','controllerAs':'vm','templateUrl':_0x5504f2,'parent':angular[_0x327d84('0x1ce1')](_0x1a4e05[_0x327d84('0x13aa')]),'targetEvent':_0x17b3f5,'clickOutsideToClose':!![],'locals':{'sound':_0x23eb2d,'sounds':_0x49ffcd[_0x327d84('0x27c4')]['rows'],'license':_0x49ffcd[_0x327d84('0x1d11')],'setting':_0x49ffcd['setting'],'crudPermissions':_0x49ffcd[_0x327d84('0x103e')]}});}function _0x37efac(_0x331e55){const _0x5da001=_0x1775c2;_0x787988[_0x5da001('0x1f64')][_0x5da001('0x1da6')]({'id':_0x331e55['id']})[_0x5da001('0x1af5')][_0x5da001('0x17e7')](function(){const _0x5e4ed0=_0x5da001;_0x49cbdd()[_0x5e4ed0('0x5f3')](_0x49ffcd[_0x5e4ed0('0x27c4')][_0x5e4ed0('0x2319')],{'id':_0x331e55['id']}),_0x49ffcd[_0x5e4ed0('0x27c4')][_0x5e4ed0('0x335')]-=0x1,!_0x49ffcd[_0x5e4ed0('0x27c4')][_0x5e4ed0('0x2319')][_0x5e4ed0('0x1f73')]&&_0x49ffcd[_0x5e4ed0('0x13ca')](),_0x352c1e[_0x5e4ed0('0x130d')]({'title':_0x49cbdd()[_0x5e4ed0('0x1c98')](_0x5e4ed0('0x2892'))+'\x20deleted!','msg':_0x331e55[_0x5e4ed0('0x2aa')]?_0x331e55[_0x5e4ed0('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x5da001('0x16df')](function(_0x2fd6c7){const _0x148ed7=_0x5da001;if(_0x2fd6c7[_0x148ed7('0x1457')]&&_0x2fd6c7[_0x148ed7('0x1457')][_0x148ed7('0x73e')]&&_0x2fd6c7[_0x148ed7('0x1457')][_0x148ed7('0x73e')][_0x148ed7('0x1f73')]){_0x49ffcd['errors']=_0x2fd6c7[_0x148ed7('0x1457')][_0x148ed7('0x73e')]||[{'message':_0x2fd6c7[_0x148ed7('0x9b6')](),'type':'SYSTEM:DELETEsound'}];for(let _0x5d98ce=0x0;_0x5d98ce<_0x2fd6c7[_0x148ed7('0x1457')][_0x148ed7('0x73e')][_0x148ed7('0x1f73')];_0x5d98ce++){_0x352c1e[_0x148ed7('0x1db9')]({'title':_0x2fd6c7[_0x148ed7('0x1457')][_0x148ed7('0x73e')][_0x5d98ce][_0x148ed7('0x412')],'msg':_0x2fd6c7[_0x148ed7('0x1457')][_0x148ed7('0x73e')][_0x5d98ce]['message']});}}else _0x352c1e[_0x148ed7('0x1db9')]({'title':_0x2fd6c7[_0x148ed7('0x11c5')]?'API:'+_0x2fd6c7['status']+_0x148ed7('0x16e4')+_0x2fd6c7[_0x148ed7('0x1833')]:_0x148ed7('0x88d'),'msg':_0x2fd6c7['data']?JSON[_0x148ed7('0x678')](_0x2fd6c7['data'][_0x148ed7('0x1603')]):_0x2fd6c7[_0x148ed7('0x1603')]||_0x2fd6c7[_0x148ed7('0x9b6')]()});});}function _0x38a2d7(){const _0x388757=_0x1775c2,_0x336572=angular[_0x388757('0x14e5')](_0x49ffcd[_0x388757('0x5bb')]);return _0x49ffcd[_0x388757('0x5bb')]=[],_0x336572;}function _0x2bfa64(_0x5790b0){const _0x14e774=_0x1775c2,_0x52073b=_0x127050['confirm']()['title'](_0x14e774('0x1ca2'))[_0x14e774('0x211f')](_0x14e774('0xa53')+_0x49ffcd[_0x14e774('0x5bb')][_0x14e774('0x1f73')]+_0x14e774('0x145a')+_0x14e774('0xe9f'))[_0x14e774('0x2095')](_0x14e774('0x2fb'))[_0x14e774('0x104f')](_0x5790b0)['ok']('OK')[_0x14e774('0x1d47')](_0x14e774('0x28a0'));_0x127050[_0x14e774('0x28e2')](_0x52073b)['then'](function(){const _0x9d508b=_0x14e774;_0x49ffcd['selectedSounds'][_0x9d508b('0xccd')](function(_0x4a73b1){_0x37efac(_0x4a73b1);}),_0x49ffcd['selectedSounds']=[];});}function _0x268935(){_0x49ffcd['selectedSounds']=[];}function _0x3e3b7b(){const _0x2a8a44=_0x1775c2;_0x49ffcd['selectedSounds']=_0x49ffcd[_0x2a8a44('0x27c4')][_0x2a8a44('0x2319')];}function _0x3b0d15(_0x45977d){const _0xbf3dbe=_0x1775c2;_0x127050[_0xbf3dbe('0x28e2')]({'controller':'UploadSoundDialogController','controllerAs':'vm','templateUrl':_0x3c8d80,'parent':angular[_0xbf3dbe('0x1ce1')](_0x1a4e05['body']),'targetEvent':_0x45977d,'clickOutsideToClose':!![],'locals':{'sounds':_0x49ffcd[_0xbf3dbe('0x27c4')]['rows']}});}}const _0x44aa3d=_0x50e80e;_0x1e9c7b['$inject']=[_0x4376d8('0x28db'),'$mdDialog',_0x4376d8('0x108a'),_0x4376d8('0x27c4'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x1e9c7b(_0x2dd1b1,_0x2895f8,_0x36a4,_0x3db4c3,_0x2e4913,_0x1cb9e3){const _0x8f81d9=_0x4376d8,_0x143042=this,_0x1ffaa0=0xf,_0x220f54=_0x1ffaa0*0x400*0x400;_0x143042[_0x8f81d9('0x197c')]=_0x1cb9e3['getCurrentUser'](),_0x143042[_0x8f81d9('0x73e')]=[],_0x143042[_0x8f81d9('0x24d3')]=_0x8f81d9('0x183'),_0x143042[_0x8f81d9('0x27c4')]=_0x3db4c3,_0x143042[_0x8f81d9('0x24df')]=[],_0x143042[_0x8f81d9('0x63c')]=_0x8f81d9('0x7ee'),_0x143042['sound']={},_0x143042[_0x8f81d9('0x1713')]={'maxChunkRetries':0x1,'chunkSize':_0x220f54,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x8f81d9('0x1279')},_0x143042[_0x8f81d9('0xbdf')]={'flow':{}},_0x143042['dropping']=![],_0x143042[_0x8f81d9('0xb73')]=_0xc42171,_0x143042['upload']=_0x337ca0,_0x143042[_0x8f81d9('0x1852')]=_0x13b59f,_0x143042[_0x8f81d9('0x1986')]=_0x3e2b18,_0x143042['uploadComplete']=_0x2f46e0,_0x143042[_0x8f81d9('0x136e')]=_0x320e98;function _0xc42171(_0x493df0){const _0x10fe6b=_0x8f81d9,_0xe85a4e=['wav',_0x10fe6b('0x131d'),'gsm'];if(!_0x49cbdd()[_0x10fe6b('0x24b0')](_0xe85a4e,_0x493df0[_0x10fe6b('0x11b0')]()))return _0x36a4[_0x10fe6b('0x1db9')]({'title':_0x10fe6b('0xf3d')+_0x493df0[_0x10fe6b('0x11b0')](),'msg':'Supported\x20extension:\x20'+_0xe85a4e[_0x10fe6b('0x1eba')]()}),![];if(_0x493df0['size']>_0x220f54)return _0x36a4[_0x10fe6b('0x1db9')]({'title':_0x10fe6b('0x586'),'msg':_0x10fe6b('0x349')+_0x1ffaa0+'MB'}),![];return _0x143042[_0x10fe6b('0x1f64')]={'id':_0x493df0[_0x10fe6b('0x22b5')],'file':_0x493df0},_0x143042['uploadSounds'][_0x10fe6b('0x1893')](_0x143042[_0x10fe6b('0x1f64')]),!![];}function _0x337ca0(){const _0x47b7d9=_0x8f81d9;_0x143042['uploadState']=_0x47b7d9('0x22df'),_0x143042[_0x47b7d9('0xbdf')][_0x47b7d9('0x3bb')]['opts'][_0x47b7d9('0x10b')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x47b7d9('0x28e8')+_0x2dd1b1['get']('motion.token')},_0x143042[_0x47b7d9('0xbdf')]['flow'][_0x47b7d9('0x1771')][_0x47b7d9('0x826')]={'role':_0x143042[_0x47b7d9('0x197c')]['role'],'userProfileId':_0x143042['currentUser'][_0x47b7d9('0x1e76')]},_0x143042['ngFlow']['flow'][_0x47b7d9('0x624')]();}function _0x13b59f(_0x568896,_0x530a6f){const _0x181145=_0x8f81d9;_0x143042[_0x181145('0x27c4')]['unshift'](JSON[_0x181145('0x1f0a')](_0x530a6f)),angular[_0x181145('0xccd')](_0x143042[_0x181145('0x24df')],function(_0x26d108){const _0x52c5dc=_0x181145;if(_0x26d108['id']===_0x568896[_0x52c5dc('0x22b5')]){const _0x4e4f40=new FileReader();_0x4e4f40[_0x52c5dc('0x1ea4')](_0x26d108[_0x52c5dc('0xc89')][_0x52c5dc('0xc89')]),_0x4e4f40[_0x52c5dc('0x2a1')]=function(_0x298b9e){const _0x29f3de=_0x52c5dc;_0x26d108[_0x29f3de('0x101e')]=_0x298b9e['target']['result'];};}});}function _0x3e2b18(){const _0xc58b48=_0x8f81d9;_0x143042[_0xc58b48('0xbdf')][_0xc58b48('0x3bb')][_0xc58b48('0x1d47')](),_0x36a4[_0xc58b48('0x1db9')]({'title':_0xc58b48('0x982'),'msg':'Cannot\x20upload\x20the\x20sound'}),_0x143042[_0xc58b48('0x63c')]='failed';}function _0x2f46e0(){const _0x48b52d=_0x8f81d9;_0x143042['uploadState']!==_0x48b52d('0xca1')&&(_0x143042[_0x48b52d('0x63c')]=_0x48b52d('0x1491'),_0x36a4['success']({'title':'Upload\x20completed','msg':_0x143042[_0x48b52d('0x1f64')]['file']['name']+'\x20uploaded\x20successfully'}));}function _0x320e98(){const _0x5c2a5e=_0x8f81d9;_0x2895f8[_0x5c2a5e('0x212a')]();}}const _0x48931c=_0x1e9c7b;_0x2a2f7e['$inject']=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x1522'),_0x4376d8('0x1132'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x2a2f7e(_0x41eda0,_0x11c56c,_0xb6cb31,_0x465c84,_0x2c800e,_0x3afae1,_0x3cd69e,_0x1b9180,_0x14b0d8,_0xeca0d1,_0x3bff67,_0xa2bc02,_0x257ec7,_0x3c3b2f){const _0xe8ced5=_0x4376d8,_0x1a84df=this;_0x1a84df[_0xe8ced5('0x197c')]=_0x3bff67[_0xe8ced5('0x2831')](),_0x1a84df[_0xe8ced5('0x73e')]=[],_0x1a84df['setting']=_0x257ec7,_0x1a84df[_0xe8ced5('0x1d11')]=_0xa2bc02,_0x1a84df[_0xe8ced5('0x103e')]=_0x3c3b2f,_0x1a84df[_0xe8ced5('0x6ee')]={},_0x1a84df[_0xe8ced5('0x1572')]=_0x1a84df[_0xe8ced5('0x1aeb')]&&_0x1a84df[_0xe8ced5('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1a84df[_0xe8ced5('0x24d3')]=_0xe8ced5('0x20b8'),_0x1a84df['tag']=angular[_0xe8ced5('0x14e5')](_0x14b0d8),_0x1a84df['tags']=_0x1b9180,_0x1a84df[_0xe8ced5('0x4ce')]=![];!_0x1a84df['tag']&&(_0x1a84df[_0xe8ced5('0x1132')]={},_0x1a84df['title']=_0xe8ced5('0x18'),_0x1a84df[_0xe8ced5('0x4ce')]=!![]);_0x1a84df[_0xe8ced5('0xd38')]=_0x2f330b,_0x1a84df['saveTag']=_0x3d9637,_0x1a84df['deleteTag']=_0x43a019,_0x1a84df['getDateFromString']=_0x6e1265,_0x1a84df[_0xe8ced5('0x136e')]=_0x3425d5;function _0x2f330b(){const _0x3c4347=_0xe8ced5;_0x1a84df[_0x3c4347('0x73e')]=[],_0xeca0d1[_0x3c4347('0x1132')][_0x3c4347('0x2439')](_0x1a84df[_0x3c4347('0x1132')])[_0x3c4347('0x1af5')][_0x3c4347('0x17e7')](function(_0x1da601){const _0x46cc1c=_0x3c4347;_0x1a84df[_0x46cc1c('0x1522')][_0x46cc1c('0x1893')](_0x1da601[_0x46cc1c('0x16b2')]()),_0x3cd69e['success']({'title':_0x46cc1c('0xd4f'),'msg':_0x1a84df[_0x46cc1c('0x1132')]['name']?_0x1a84df[_0x46cc1c('0x1132')][_0x46cc1c('0x2aa')]+_0x46cc1c('0x15a'):''}),_0x3425d5(_0x1da601);})[_0x3c4347('0x16df')](function(_0x1d049e){const _0x36b5b4=_0x3c4347;if(_0x1d049e[_0x36b5b4('0x1457')]&&_0x1d049e[_0x36b5b4('0x1457')][_0x36b5b4('0x73e')]&&_0x1d049e[_0x36b5b4('0x1457')]['errors'][_0x36b5b4('0x1f73')]){_0x1a84df[_0x36b5b4('0x73e')]=_0x1d049e[_0x36b5b4('0x1457')][_0x36b5b4('0x73e')]||[{'message':_0x1d049e[_0x36b5b4('0x9b6')](),'type':_0x36b5b4('0x20fd')}];for(let _0x3a284e=0x0;_0x3a284e<_0x1d049e[_0x36b5b4('0x1457')]['errors'][_0x36b5b4('0x1f73')];_0x3a284e+=0x1){_0x3cd69e[_0x36b5b4('0x1db9')]({'title':_0x1d049e['data'][_0x36b5b4('0x73e')][_0x3a284e][_0x36b5b4('0x412')],'msg':_0x1d049e[_0x36b5b4('0x1457')][_0x36b5b4('0x73e')][_0x3a284e]['message']});}}else _0x3cd69e[_0x36b5b4('0x1db9')]({'title':_0x1d049e[_0x36b5b4('0x11c5')]?_0x36b5b4('0x14f7')+_0x1d049e[_0x36b5b4('0x11c5')]+'\x20-\x20'+_0x1d049e[_0x36b5b4('0x1833')]:_0x36b5b4('0x20fd'),'msg':_0x1d049e['data']?JSON[_0x36b5b4('0x678')](_0x1d049e['data'][_0x36b5b4('0x1603')]):_0x1d049e[_0x36b5b4('0x9b6')]()});});}function _0x3d9637(){const _0x9599ce=_0xe8ced5;_0x1a84df[_0x9599ce('0x73e')]=[],_0xeca0d1[_0x9599ce('0x1132')][_0x9599ce('0x27ba')]({'id':_0x1a84df[_0x9599ce('0x1132')]['id']},_0x1a84df[_0x9599ce('0x1132')])['$promise']['then'](function(_0x26d85d){const _0x3adc92=_0x9599ce,_0x35b9f7=_0x49cbdd()[_0x3adc92('0xe8e')](_0x1a84df[_0x3adc92('0x1522')],{'id':_0x26d85d['id']});_0x35b9f7&&_0x49cbdd()[_0x3adc92('0x1ced')](_0x35b9f7,_0x49cbdd()[_0x3adc92('0x230a')](_0x26d85d[_0x3adc92('0x16b2')](),_0x49cbdd()['keys'](_0x35b9f7))),_0x3cd69e[_0x3adc92('0x130d')]({'title':_0x3adc92('0x2255'),'msg':_0x1a84df[_0x3adc92('0x1132')][_0x3adc92('0x2aa')]?_0x1a84df[_0x3adc92('0x1132')][_0x3adc92('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x3425d5(_0x26d85d);})[_0x9599ce('0x16df')](function(_0x1c53fd){const _0x3a0e70=_0x9599ce;if(_0x1c53fd[_0x3a0e70('0x1457')]&&_0x1c53fd[_0x3a0e70('0x1457')]['errors']&&_0x1c53fd['data'][_0x3a0e70('0x73e')][_0x3a0e70('0x1f73')]){_0x1a84df[_0x3a0e70('0x73e')]=_0x1c53fd[_0x3a0e70('0x1457')][_0x3a0e70('0x73e')]||[{'message':_0x1c53fd['toString'](),'type':_0x3a0e70('0xbe')}];for(let _0x581fd4=0x0;_0x581fd4<_0x1c53fd[_0x3a0e70('0x1457')][_0x3a0e70('0x73e')][_0x3a0e70('0x1f73')];_0x581fd4++){_0x3cd69e['error']({'title':_0x1c53fd[_0x3a0e70('0x1457')][_0x3a0e70('0x73e')][_0x581fd4]['type'],'msg':_0x1c53fd[_0x3a0e70('0x1457')][_0x3a0e70('0x73e')][_0x581fd4][_0x3a0e70('0x1603')]});}}else _0x3cd69e['error']({'title':_0x1c53fd[_0x3a0e70('0x11c5')]?_0x3a0e70('0x14f7')+_0x1c53fd[_0x3a0e70('0x11c5')]+_0x3a0e70('0x16e4')+_0x1c53fd[_0x3a0e70('0x1833')]:_0x3a0e70('0xbe'),'msg':_0x1c53fd['data']?JSON[_0x3a0e70('0x678')](_0x1c53fd[_0x3a0e70('0x1457')]['message']):_0x1c53fd[_0x3a0e70('0x9b6')]()});});}function _0x43a019(_0x3207bb){const _0x416164=_0xe8ced5;_0x1a84df[_0x416164('0x73e')]=[];const _0x21c0fb=_0x465c84['confirm']()[_0x416164('0x24d3')](_0x416164('0x530'))[_0x416164('0xd5')](_0x416164('0xddb'))[_0x416164('0x2095')](_0x416164('0xecf'))['ok'](_0x416164('0x304'))[_0x416164('0x1d47')](_0x416164('0x1b70'))[_0x416164('0x104f')](_0x3207bb);_0x465c84['show'](_0x21c0fb)['then'](function(){const _0x4fab05=_0x416164;_0xeca0d1[_0x4fab05('0x1132')][_0x4fab05('0x1da6')]({'id':_0x1a84df[_0x4fab05('0x1132')]['id']})[_0x4fab05('0x1af5')]['then'](function(){const _0x1805ca=_0x4fab05;_0x49cbdd()[_0x1805ca('0x5f3')](_0x1a84df[_0x1805ca('0x1522')],{'id':_0x1a84df[_0x1805ca('0x1132')]['id']}),_0x3cd69e[_0x1805ca('0x130d')]({'title':_0x1805ca('0x2112'),'msg':(_0x1a84df[_0x1805ca('0x1132')][_0x1805ca('0x2aa')]||_0x1805ca('0x1132'))+_0x1805ca('0x149f')}),_0x3425d5(_0x1a84df[_0x1805ca('0x1132')]);})[_0x4fab05('0x16df')](function(_0xfa0b0b){const _0x4c91da=_0x4fab05;if(_0xfa0b0b[_0x4c91da('0x1457')]&&_0xfa0b0b[_0x4c91da('0x1457')][_0x4c91da('0x73e')]&&_0xfa0b0b['data'][_0x4c91da('0x73e')][_0x4c91da('0x1f73')]){_0x1a84df[_0x4c91da('0x73e')]=_0xfa0b0b[_0x4c91da('0x1457')]['errors']||[{'message':_0xfa0b0b[_0x4c91da('0x9b6')](),'type':_0x4c91da('0x83f')}];for(let _0x25b7a7=0x0;_0x25b7a7<_0xfa0b0b[_0x4c91da('0x1457')][_0x4c91da('0x73e')][_0x4c91da('0x1f73')];_0x25b7a7++){_0x3cd69e[_0x4c91da('0x1db9')]({'title':_0xfa0b0b['data'][_0x4c91da('0x73e')][_0x25b7a7]['type'],'msg':_0xfa0b0b[_0x4c91da('0x1457')][_0x4c91da('0x73e')][_0x25b7a7]['message']});}}else _0x3cd69e[_0x4c91da('0x1db9')]({'title':_0xfa0b0b[_0x4c91da('0x11c5')]?_0x4c91da('0x14f7')+_0xfa0b0b[_0x4c91da('0x11c5')]+'\x20-\x20'+_0xfa0b0b[_0x4c91da('0x1833')]:_0x4c91da('0x83f'),'msg':_0xfa0b0b[_0x4c91da('0x1457')]?JSON['stringify'](_0xfa0b0b[_0x4c91da('0x1457')][_0x4c91da('0x1603')]):_0xfa0b0b[_0x4c91da('0x1603')]||_0xfa0b0b[_0x4c91da('0x9b6')]()});});},function(){});}function _0x6e1265(_0x46fc73){return _0x46fc73===null?undefined:new Date(_0x46fc73);}function _0x3425d5(_0x283ae3){const _0xd37347=_0xe8ced5;_0x465c84[_0xd37347('0x212a')](_0x283ae3);}}const _0x12de44=_0x2a2f7e,_0x53063a=_0x4cf2bc['p']+_0x4376d8('0x1c7f');_0x2baf13['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),'$mdSidenav',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$translate',_0x4376d8('0x1522'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x2baf13(_0x57c468,_0x40965a,_0x514a36,_0x59263c,_0xb8ff55,_0x564d80,_0x4e6913,_0x12a92d,_0x56493a,_0x1991ba,_0x4bba8d,_0x14495c,_0x275f3c,_0x4e25e5,_0x58da17,_0x5f310e,_0x201030){const _0x2b0703=_0x4376d8,_0x5d7500=this;_0x5d7500[_0x2b0703('0x1d11')]=_0x5f310e,_0x5d7500[_0x2b0703('0x1aeb')]=_0x201030,_0x5d7500['currentUser']=_0x58da17['getCurrentUser'](),_0x5d7500['tags']=_0x56493a||{'count':0x0,'rows':[]},_0x5d7500[_0x2b0703('0xdeb')]=_0x1991ba,_0x5d7500['userProfileSection']=_0x4bba8d&&_0x4bba8d[_0x2b0703('0x335')]==0x1?_0x4bba8d['rows'][0x0]:null,_0x5d7500[_0x2b0703('0x103e')]=_0x58da17[_0x2b0703('0x17a9')](_0x5d7500[_0x2b0703('0x383')]?_0x5d7500[_0x2b0703('0x383')]['crudPermissions']:null),_0x5d7500[_0x2b0703('0x23c3')]=_0x2b0703('0x1522'),_0x5d7500[_0x2b0703('0x26a1')]='',_0x5d7500[_0x2b0703('0x24e1')]=null,_0x5d7500[_0x2b0703('0x8b4')]=[],_0x5d7500[_0x2b0703('0x826')]={'fields':_0x2b0703('0x889'),'sort':_0x2b0703('0x1ac6'),'limit':0xa,'page':0x1},_0x5d7500[_0x2b0703('0xb32')]=_0x22899f,_0x5d7500['deleteconfirm']=_0xa5b2c6,_0x5d7500['success']=_0x5e08a1,_0x5d7500[_0x2b0703('0x79a')]=_0x149d74,_0x5d7500['createOrEditTag']=_0x8840df,_0x5d7500['deleteTag']=_0x3cc44f,_0x5d7500['exportSelectedTags']=_0x46a873,_0x5d7500['deleteSelectedTags']=_0x59f673,_0x5d7500['deselectTags']=_0x314081,_0x5d7500[_0x2b0703('0xfcf')]=_0x496be4;function _0x22899f(_0xa872df,_0x42e5b9){const _0x2d7128=_0x2b0703;_0xb8ff55[_0x2d7128('0x28e2')]({'controller':_0x2d7128('0x1025'),'controllerAs':'vm','templateUrl':_0x53063a,'parent':angular[_0x2d7128('0x1ce1')](_0x564d80[_0x2d7128('0x13aa')]),'targetEvent':_0x42e5b9,'clickOutsideToClose':!![],'locals':{'tag':_0xa872df,'tags':_0x5d7500[_0x2d7128('0x1522')][_0x2d7128('0x2319')],'license':_0x5d7500[_0x2d7128('0x1d11')],'setting':null,'crudPermissions':_0x5d7500[_0x2d7128('0x103e')]}});}function _0xa5b2c6(_0x424546,_0x51d42d){const _0x2e3ca8=_0x2b0703,_0x3d7278=_0xb8ff55[_0x2e3ca8('0x1121')]()['title'](_0x2e3ca8('0x5e1')+_0x49cbdd()[_0x2e3ca8('0x1c98')](_0x2e3ca8('0x1132'))+'?')[_0x2e3ca8('0x211f')](''+(_0x424546[_0x2e3ca8('0x2aa')]||'tag')+_0x2e3ca8('0x1d23')+_0x2e3ca8('0xe9f'))[_0x2e3ca8('0x2095')](_0x2e3ca8('0x1f53'))[_0x2e3ca8('0x104f')](_0x51d42d)['ok']('OK')[_0x2e3ca8('0x1d47')](_0x2e3ca8('0x28a0'));_0xb8ff55['show'](_0x3d7278)[_0x2e3ca8('0x17e7')](function(){_0x3cc44f(_0x424546);},function(){const _0x4af4f5=_0x2e3ca8;console[_0x4af4f5('0x1d63')](_0x4af4f5('0x28a0'));});}let _0x330b54=!![],_0x265dfe=0x1;_0x57c468['$watch'](_0x2b0703('0x3ed'),function(_0x2ae406,_0x46e60c){const _0x7f7836=_0x2b0703;_0x330b54?_0x4e6913(function(){_0x330b54=![];}):(!_0x46e60c&&(_0x265dfe=_0x5d7500[_0x7f7836('0x826')]['page']),_0x2ae406!==_0x46e60c&&(_0x5d7500[_0x7f7836('0x826')]['page']=0x1),!_0x2ae406&&(_0x5d7500[_0x7f7836('0x826')][_0x7f7836('0x115a')]=_0x265dfe),_0x5d7500[_0x7f7836('0x79a')]());});function _0x5e08a1(_0x4c8e75){const _0x1efda1=_0x2b0703;_0x5d7500[_0x1efda1('0x1522')]=_0x4c8e75||{'count':0x0,'rows':[]};}function _0x149d74(){const _0x303a9e=_0x2b0703;_0x5d7500[_0x303a9e('0x826')]['offset']=(_0x5d7500[_0x303a9e('0x826')][_0x303a9e('0x115a')]-0x1)*_0x5d7500[_0x303a9e('0x826')][_0x303a9e('0x193b')],_0x58da17[_0x303a9e('0x1ba2')](_0x303a9e('0x20bf'))?_0x5d7500[_0x303a9e('0x1691')]=_0x14495c[_0x303a9e('0x1132')][_0x303a9e('0x1c53')](_0x5d7500[_0x303a9e('0x826')],_0x5e08a1)[_0x303a9e('0x1af5')]:(_0x5d7500[_0x303a9e('0x826')]['id']=_0x5d7500['userProfile']['id'],_0x5d7500[_0x303a9e('0x826')][_0x303a9e('0x16f8')]=_0x303a9e('0x28a6'),_0x5d7500[_0x303a9e('0x1691')]=_0x14495c[_0x303a9e('0xdeb')][_0x303a9e('0x2447')](_0x5d7500[_0x303a9e('0x826')],_0x5e08a1)[_0x303a9e('0x1af5')]);}function _0x8840df(_0x4a664c,_0xa9698){const _0x50f3fe=_0x2b0703;_0xb8ff55[_0x50f3fe('0x28e2')]({'controller':_0x50f3fe('0x1025'),'controllerAs':'vm','templateUrl':_0x53063a,'parent':angular['element'](_0x564d80['body']),'targetEvent':_0x4a664c,'clickOutsideToClose':!![],'locals':{'tag':_0xa9698,'tags':_0x5d7500[_0x50f3fe('0x1522')][_0x50f3fe('0x2319')],'license':_0x5d7500['license'],'setting':_0x5d7500['setting'],'crudPermissions':_0x5d7500[_0x50f3fe('0x103e')]}});}function _0x3cc44f(_0x4c5e75){const _0x25db4e=_0x2b0703;_0x14495c[_0x25db4e('0x1132')][_0x25db4e('0x1da6')]({'id':_0x4c5e75['id']})['$promise'][_0x25db4e('0x17e7')](function(){const _0xb260d4=_0x25db4e;_0x49cbdd()[_0xb260d4('0x5f3')](_0x5d7500[_0xb260d4('0x1522')][_0xb260d4('0x2319')],{'id':_0x4c5e75['id']}),_0x5d7500[_0xb260d4('0x1522')][_0xb260d4('0x335')]-=0x1,!_0x5d7500[_0xb260d4('0x1522')]['rows'][_0xb260d4('0x1f73')]&&_0x5d7500[_0xb260d4('0x79a')](),_0x4e25e5[_0xb260d4('0x130d')]({'title':_0x49cbdd()['startCase']('Tag')+'\x20deleted!','msg':_0x4c5e75[_0xb260d4('0x2aa')]?_0x4c5e75[_0xb260d4('0x2aa')]+_0xb260d4('0x149f'):''});})[_0x25db4e('0x16df')](function(_0x3f5966){const _0x20a6ab=_0x25db4e;if(_0x3f5966[_0x20a6ab('0x1457')]&&_0x3f5966[_0x20a6ab('0x1457')][_0x20a6ab('0x73e')]&&_0x3f5966[_0x20a6ab('0x1457')][_0x20a6ab('0x73e')][_0x20a6ab('0x1f73')]){_0x5d7500['errors']=_0x3f5966[_0x20a6ab('0x1457')][_0x20a6ab('0x73e')]||[{'message':_0x3f5966[_0x20a6ab('0x9b6')](),'type':_0x20a6ab('0x5fd')}];for(let _0x4dd016=0x0;_0x4dd016<_0x3f5966[_0x20a6ab('0x1457')]['errors'][_0x20a6ab('0x1f73')];_0x4dd016++){_0x4e25e5[_0x20a6ab('0x1db9')]({'title':_0x3f5966[_0x20a6ab('0x1457')][_0x20a6ab('0x73e')][_0x4dd016]['type'],'msg':_0x3f5966[_0x20a6ab('0x1457')][_0x20a6ab('0x73e')][_0x4dd016][_0x20a6ab('0x1603')]});}}else _0x4e25e5[_0x20a6ab('0x1db9')]({'title':_0x3f5966[_0x20a6ab('0x11c5')]?_0x20a6ab('0x14f7')+_0x3f5966[_0x20a6ab('0x11c5')]+_0x20a6ab('0x16e4')+_0x3f5966['statusText']:_0x20a6ab('0x5fd'),'msg':_0x3f5966['data']?JSON[_0x20a6ab('0x678')](_0x3f5966[_0x20a6ab('0x1457')][_0x20a6ab('0x1603')]):_0x3f5966['message']||_0x3f5966[_0x20a6ab('0x9b6')]()});});}function _0x46a873(){const _0x53cfc2=_0x2b0703,_0x169c63=angular[_0x53cfc2('0x14e5')](_0x5d7500['selectedTags']);return _0x5d7500[_0x53cfc2('0x8b4')]=[],_0x169c63;}function _0x59f673(_0x3111e3){const _0x32229a=_0x2b0703,_0x38b1b6=_0xb8ff55[_0x32229a('0x1121')]()[_0x32229a('0x24d3')](_0x32229a('0x1231'))[_0x32229a('0x211f')](''+_0x5d7500['selectedTags'][_0x32229a('0x1f73')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x32229a('0x2095')]('delete\x20Tags')[_0x32229a('0x104f')](_0x3111e3)['ok']('OK')[_0x32229a('0x1d47')](_0x32229a('0x28a0'));_0xb8ff55[_0x32229a('0x28e2')](_0x38b1b6)[_0x32229a('0x17e7')](function(){const _0x5f4e06=_0x32229a;_0x5d7500[_0x5f4e06('0x8b4')]['forEach'](function(_0x6e4949){_0x3cc44f(_0x6e4949);}),_0x5d7500[_0x5f4e06('0x8b4')]=[];});}function _0x314081(){const _0x41e2d3=_0x2b0703;_0x5d7500[_0x41e2d3('0x8b4')]=[];}function _0x496be4(){const _0xfb2c8e=_0x2b0703;_0x5d7500[_0xfb2c8e('0x8b4')]=_0x5d7500[_0xfb2c8e('0x1522')]['rows'];}}const _0x1b795c=_0x2baf13;_0x2b3eec[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x143e'),'template',_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x2b3eec(_0x5bad3e,_0x508d8f,_0x2317fe,_0x471992,_0x19c37c,_0x2b09c4,_0x446f1f,_0x350379,_0x211a55,_0x142fd,_0x1b0846,_0x51e822,_0x24facb,_0x4c2a67){const _0x4043c8=_0x4376d8,_0x221bce=this;_0x221bce[_0x4043c8('0x197c')]=_0x1b0846['getCurrentUser'](),_0x221bce['errors']=[],_0x221bce[_0x4043c8('0x1aeb')]=_0x24facb,_0x221bce[_0x4043c8('0x1d11')]=_0x51e822,_0x221bce[_0x4043c8('0x103e')]=_0x4c2a67,_0x221bce[_0x4043c8('0x6ee')]={},_0x221bce['passwordPattern']=_0x221bce[_0x4043c8('0x1aeb')]&&_0x221bce[_0x4043c8('0x1aeb')][_0x4043c8('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x221bce['title']=_0x4043c8('0x12a'),_0x221bce[_0x4043c8('0x2260')]=angular[_0x4043c8('0x14e5')](_0x211a55),_0x221bce[_0x4043c8('0x143e')]=_0x350379,_0x221bce[_0x4043c8('0x188b')]=![];!_0x221bce[_0x4043c8('0x2260')]&&(_0x221bce['template']={},_0x221bce[_0x4043c8('0x24d3')]=_0x4043c8('0x233f'),_0x221bce[_0x4043c8('0x188b')]=!![]);_0x221bce[_0x4043c8('0x1564')]=_0x387d73,_0x221bce[_0x4043c8('0x17ea')]=_0x255933,_0x221bce[_0x4043c8('0x2579')]=_0x2ef4ba,_0x221bce[_0x4043c8('0x1300')]=_0x1837d7,_0x221bce[_0x4043c8('0x136e')]=_0x2af415;function _0x387d73(){const _0x5e8553=_0x4043c8;_0x221bce[_0x5e8553('0x73e')]=[],_0x142fd[_0x5e8553('0x2260')][_0x5e8553('0x2439')](_0x221bce[_0x5e8553('0x2260')])[_0x5e8553('0x1af5')]['then'](function(_0x17394b){const _0x3da517=_0x5e8553;_0x221bce['templates'][_0x3da517('0x1893')](_0x17394b['toJSON']()),_0x446f1f[_0x3da517('0x130d')]({'title':'Template\x20properly\x20created','msg':_0x221bce[_0x3da517('0x2260')][_0x3da517('0x2aa')]?_0x221bce[_0x3da517('0x2260')][_0x3da517('0x2aa')]+_0x3da517('0x15a'):''}),_0x2af415(_0x17394b);})[_0x5e8553('0x16df')](function(_0x57de39){const _0x256268=_0x5e8553;if(_0x57de39[_0x256268('0x1457')]&&_0x57de39['data']['errors']&&_0x57de39[_0x256268('0x1457')][_0x256268('0x73e')][_0x256268('0x1f73')]){_0x221bce[_0x256268('0x73e')]=_0x57de39[_0x256268('0x1457')][_0x256268('0x73e')]||[{'message':_0x57de39['toString'](),'type':_0x256268('0x2721')}];for(let _0x58f58b=0x0;_0x58f58b<_0x57de39[_0x256268('0x1457')]['errors']['length'];_0x58f58b+=0x1){_0x446f1f[_0x256268('0x1db9')]({'title':_0x57de39['data'][_0x256268('0x73e')][_0x58f58b][_0x256268('0x412')],'msg':_0x57de39[_0x256268('0x1457')][_0x256268('0x73e')][_0x58f58b][_0x256268('0x1603')]});}}else _0x446f1f['error']({'title':_0x57de39['status']?_0x256268('0x14f7')+_0x57de39[_0x256268('0x11c5')]+'\x20-\x20'+_0x57de39[_0x256268('0x1833')]:_0x256268('0x2721'),'msg':_0x57de39[_0x256268('0x1457')]?JSON[_0x256268('0x678')](_0x57de39['data'][_0x256268('0x1603')]):_0x57de39[_0x256268('0x9b6')]()});});}function _0x255933(){const _0x5a1366=_0x4043c8;_0x221bce[_0x5a1366('0x73e')]=[],_0x142fd[_0x5a1366('0x2260')][_0x5a1366('0x27ba')]({'id':_0x221bce[_0x5a1366('0x2260')]['id']},_0x221bce['template'])[_0x5a1366('0x1af5')][_0x5a1366('0x17e7')](function(_0x4789a4){const _0xdedcfc=_0x5a1366,_0x59b79c=_0x49cbdd()[_0xdedcfc('0xe8e')](_0x221bce[_0xdedcfc('0x143e')],{'id':_0x4789a4['id']});_0x59b79c&&_0x49cbdd()[_0xdedcfc('0x1ced')](_0x59b79c,_0x49cbdd()[_0xdedcfc('0x230a')](_0x4789a4[_0xdedcfc('0x16b2')](),_0x49cbdd()['keys'](_0x59b79c))),_0x446f1f[_0xdedcfc('0x130d')]({'title':_0xdedcfc('0x1c41'),'msg':_0x221bce[_0xdedcfc('0x2260')]['name']?_0x221bce[_0xdedcfc('0x2260')][_0xdedcfc('0x2aa')]+_0xdedcfc('0x15ca'):''}),_0x2af415(_0x4789a4);})[_0x5a1366('0x16df')](function(_0xb263f4){const _0x540e51=_0x5a1366;if(_0xb263f4[_0x540e51('0x1457')]&&_0xb263f4[_0x540e51('0x1457')][_0x540e51('0x73e')]&&_0xb263f4[_0x540e51('0x1457')][_0x540e51('0x73e')][_0x540e51('0x1f73')]){_0x221bce[_0x540e51('0x73e')]=_0xb263f4[_0x540e51('0x1457')][_0x540e51('0x73e')]||[{'message':_0xb263f4['toString'](),'type':'api.template.update'}];for(let _0x51a3b4=0x0;_0x51a3b4<_0xb263f4[_0x540e51('0x1457')]['errors'][_0x540e51('0x1f73')];_0x51a3b4++){_0x446f1f[_0x540e51('0x1db9')]({'title':_0xb263f4['data'][_0x540e51('0x73e')][_0x51a3b4][_0x540e51('0x412')],'msg':_0xb263f4['data'][_0x540e51('0x73e')][_0x51a3b4][_0x540e51('0x1603')]});}}else _0x446f1f['error']({'title':_0xb263f4[_0x540e51('0x11c5')]?'API:'+_0xb263f4['status']+_0x540e51('0x16e4')+_0xb263f4[_0x540e51('0x1833')]:_0x540e51('0x138d'),'msg':_0xb263f4[_0x540e51('0x1457')]?JSON[_0x540e51('0x678')](_0xb263f4['data'][_0x540e51('0x1603')]):_0xb263f4[_0x540e51('0x9b6')]()});});}function _0x2ef4ba(_0x3e2787){const _0x168f29=_0x4043c8;_0x221bce[_0x168f29('0x73e')]=[];const _0x145767=_0x471992[_0x168f29('0x1121')]()['title'](_0x168f29('0x530'))['content'](_0x168f29('0x138b'))[_0x168f29('0x2095')](_0x168f29('0x17b'))['ok'](_0x168f29('0x304'))[_0x168f29('0x1d47')](_0x168f29('0x1b70'))[_0x168f29('0x104f')](_0x3e2787);_0x471992['show'](_0x145767)[_0x168f29('0x17e7')](function(){const _0x6630fb=_0x168f29;_0x142fd[_0x6630fb('0x2260')][_0x6630fb('0x1da6')]({'id':_0x221bce['template']['id']})[_0x6630fb('0x1af5')][_0x6630fb('0x17e7')](function(){const _0x1e2513=_0x6630fb;_0x49cbdd()[_0x1e2513('0x5f3')](_0x221bce[_0x1e2513('0x143e')],{'id':_0x221bce[_0x1e2513('0x2260')]['id']}),_0x446f1f['success']({'title':_0x1e2513('0xe4d'),'msg':(_0x221bce[_0x1e2513('0x2260')][_0x1e2513('0x2aa')]||_0x1e2513('0x2260'))+'\x20has\x20been\x20deleted!'}),_0x2af415(_0x221bce[_0x1e2513('0x2260')]);})[_0x6630fb('0x16df')](function(_0x8d6932){const _0x3ac1c7=_0x6630fb;if(_0x8d6932['data']&&_0x8d6932[_0x3ac1c7('0x1457')][_0x3ac1c7('0x73e')]&&_0x8d6932['data'][_0x3ac1c7('0x73e')][_0x3ac1c7('0x1f73')]){_0x221bce[_0x3ac1c7('0x73e')]=_0x8d6932[_0x3ac1c7('0x1457')][_0x3ac1c7('0x73e')]||[{'message':_0x8d6932[_0x3ac1c7('0x9b6')](),'type':_0x3ac1c7('0x1436')}];for(let _0x2a7f31=0x0;_0x2a7f31<_0x8d6932['data'][_0x3ac1c7('0x73e')]['length'];_0x2a7f31++){_0x446f1f[_0x3ac1c7('0x1db9')]({'title':_0x8d6932['data']['errors'][_0x2a7f31][_0x3ac1c7('0x412')],'msg':_0x8d6932[_0x3ac1c7('0x1457')][_0x3ac1c7('0x73e')][_0x2a7f31][_0x3ac1c7('0x1603')]});}}else _0x446f1f[_0x3ac1c7('0x1db9')]({'title':_0x8d6932[_0x3ac1c7('0x11c5')]?_0x3ac1c7('0x14f7')+_0x8d6932['status']+_0x3ac1c7('0x16e4')+_0x8d6932['statusText']:'api.template.delete','msg':_0x8d6932[_0x3ac1c7('0x1457')]?JSON[_0x3ac1c7('0x678')](_0x8d6932[_0x3ac1c7('0x1457')]['message']):_0x8d6932['message']||_0x8d6932[_0x3ac1c7('0x9b6')]()});});},function(){});}function _0x1837d7(_0x1ab2d7){return _0x1ab2d7===null?undefined:new Date(_0x1ab2d7);}function _0x2af415(_0x4ee203){_0x471992['hide'](_0x4ee203);}}const _0x5a8405=_0x2b3eec,_0x5749e1=_0x4cf2bc['p']+_0x4376d8('0x68f');_0x2ff5e9['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x143e'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting'];function _0x2ff5e9(_0x477a53,_0x3ba3c8,_0xa70fa6,_0x3fa0ca,_0x328c40,_0x59bfcc,_0x1832b2,_0x954f11,_0x14a06a,_0xad6b09,_0x1b3555,_0x1272a5,_0x3485bc,_0x594ccc,_0x23f594,_0x1f7f91,_0x14f51f){const _0x1a0ea5=_0x4376d8,_0x307a6c=this;_0x307a6c[_0x1a0ea5('0x1d11')]=_0x1f7f91,_0x307a6c[_0x1a0ea5('0x1aeb')]=_0x14f51f,_0x307a6c['currentUser']=_0x23f594[_0x1a0ea5('0x2831')](),_0x307a6c['templates']=_0x14a06a||{'count':0x0,'rows':[]},_0x307a6c[_0x1a0ea5('0xdeb')]=_0xad6b09,_0x307a6c[_0x1a0ea5('0x383')]=_0x1b3555&&_0x1b3555[_0x1a0ea5('0x335')]==0x1?_0x1b3555[_0x1a0ea5('0x2319')][0x0]:null,_0x307a6c[_0x1a0ea5('0x103e')]=_0x23f594[_0x1a0ea5('0x17a9')](_0x307a6c['userProfileSection']?_0x307a6c[_0x1a0ea5('0x383')][_0x1a0ea5('0x103e')]:null),_0x307a6c[_0x1a0ea5('0x23c3')]='templates',_0x307a6c[_0x1a0ea5('0x26a1')]='',_0x307a6c['listOrderAsc']=null,_0x307a6c[_0x1a0ea5('0xc05')]=[],_0x307a6c[_0x1a0ea5('0x826')]={'fields':_0x1a0ea5('0x588'),'sort':_0x1a0ea5('0x1ac6'),'limit':0xa,'page':0x1},_0x307a6c[_0x1a0ea5('0xb32')]=_0x5744ae,_0x307a6c[_0x1a0ea5('0xbf4')]=_0x422070,_0x307a6c[_0x1a0ea5('0x130d')]=_0x59f2d7,_0x307a6c[_0x1a0ea5('0x16d5')]=_0x1fd08e,_0x307a6c[_0x1a0ea5('0x1858')]=_0x1e59eb,_0x307a6c['deleteTemplate']=_0x29fb45,_0x307a6c['exportSelectedTemplates']=_0x52e834,_0x307a6c[_0x1a0ea5('0x61c')]=_0x8124d4,_0x307a6c['deselectTemplates']=_0x376bd4,_0x307a6c['selectAllTemplates']=_0xc32c41;function _0x5744ae(_0x1718b5,_0x1d9aa7){const _0x5895bf=_0x1a0ea5;_0x328c40[_0x5895bf('0x28e2')]({'controller':_0x5895bf('0x205e'),'controllerAs':'vm','templateUrl':_0x5749e1,'parent':angular['element'](_0x59bfcc[_0x5895bf('0x13aa')]),'targetEvent':_0x1d9aa7,'clickOutsideToClose':!![],'locals':{'template':_0x1718b5,'templates':_0x307a6c[_0x5895bf('0x143e')][_0x5895bf('0x2319')],'license':_0x307a6c[_0x5895bf('0x1d11')],'setting':null,'crudPermissions':_0x307a6c['crudPermissions']}});}function _0x422070(_0x17bed0,_0x58522d){const _0x46ecf6=_0x1a0ea5,_0x100e3d=_0x328c40[_0x46ecf6('0x1121')]()[_0x46ecf6('0x24d3')](_0x46ecf6('0x5e1')+_0x49cbdd()[_0x46ecf6('0x1c98')](_0x46ecf6('0x2260'))+'?')[_0x46ecf6('0x211f')](_0x46ecf6('0xa53')+(_0x17bed0[_0x46ecf6('0x2aa')]||'template')+_0x46ecf6('0x1d23')+_0x46ecf6('0xe9f'))[_0x46ecf6('0x2095')](_0x46ecf6('0xaa1'))[_0x46ecf6('0x104f')](_0x58522d)['ok']('OK')[_0x46ecf6('0x1d47')](_0x46ecf6('0x28a0'));_0x328c40[_0x46ecf6('0x28e2')](_0x100e3d)['then'](function(){_0x29fb45(_0x17bed0);},function(){const _0x1f5342=_0x46ecf6;console[_0x1f5342('0x1d63')](_0x1f5342('0x28a0'));});}let _0x42b8ba=!![],_0x17411b=0x1;_0x477a53[_0x1a0ea5('0x620')](_0x1a0ea5('0x3ed'),function(_0x2c1461,_0x4a5ad1){const _0xa7f71a=_0x1a0ea5;_0x42b8ba?_0x1832b2(function(){_0x42b8ba=![];}):(!_0x4a5ad1&&(_0x17411b=_0x307a6c[_0xa7f71a('0x826')][_0xa7f71a('0x115a')]),_0x2c1461!==_0x4a5ad1&&(_0x307a6c[_0xa7f71a('0x826')][_0xa7f71a('0x115a')]=0x1),!_0x2c1461&&(_0x307a6c[_0xa7f71a('0x826')][_0xa7f71a('0x115a')]=_0x17411b),_0x307a6c['getTemplates']());});function _0x59f2d7(_0x3e9e04){const _0x5dbf70=_0x1a0ea5;_0x307a6c[_0x5dbf70('0x143e')]=_0x3e9e04||{'count':0x0,'rows':[]};}function _0x1fd08e(){const _0xf0f848=_0x1a0ea5;_0x307a6c[_0xf0f848('0x826')]['offset']=(_0x307a6c[_0xf0f848('0x826')][_0xf0f848('0x115a')]-0x1)*_0x307a6c[_0xf0f848('0x826')][_0xf0f848('0x193b')],_0x23f594[_0xf0f848('0x1ba2')](_0xf0f848('0x20bf'))?_0x307a6c[_0xf0f848('0x1691')]=_0x1272a5[_0xf0f848('0x2260')][_0xf0f848('0x1c53')](_0x307a6c['query'],_0x59f2d7)[_0xf0f848('0x1af5')]:(_0x307a6c['query']['id']=_0x307a6c[_0xf0f848('0xdeb')]['id'],_0x307a6c[_0xf0f848('0x826')][_0xf0f848('0x16f8')]=_0xf0f848('0x24e9'),_0x307a6c[_0xf0f848('0x1691')]=_0x1272a5[_0xf0f848('0xdeb')][_0xf0f848('0x2447')](_0x307a6c[_0xf0f848('0x826')],_0x59f2d7)[_0xf0f848('0x1af5')]);}function _0x1e59eb(_0x513527,_0x31a6c2){const _0x4a15f1=_0x1a0ea5;_0x328c40[_0x4a15f1('0x28e2')]({'controller':_0x4a15f1('0x205e'),'controllerAs':'vm','templateUrl':_0x5749e1,'parent':angular[_0x4a15f1('0x1ce1')](_0x59bfcc['body']),'targetEvent':_0x513527,'clickOutsideToClose':!![],'locals':{'template':_0x31a6c2,'templates':_0x307a6c['templates']['rows'],'license':_0x307a6c[_0x4a15f1('0x1d11')],'setting':_0x307a6c[_0x4a15f1('0x1aeb')],'crudPermissions':_0x307a6c[_0x4a15f1('0x103e')]}});}function _0x29fb45(_0x4eba1f){const _0x226bdc=_0x1a0ea5;_0x1272a5[_0x226bdc('0x2260')][_0x226bdc('0x1da6')]({'id':_0x4eba1f['id']})[_0x226bdc('0x1af5')][_0x226bdc('0x17e7')](function(){const _0x19c89e=_0x226bdc;_0x49cbdd()[_0x19c89e('0x5f3')](_0x307a6c[_0x19c89e('0x143e')][_0x19c89e('0x2319')],{'id':_0x4eba1f['id']}),_0x307a6c[_0x19c89e('0x143e')]['count']-=0x1,!_0x307a6c[_0x19c89e('0x143e')][_0x19c89e('0x2319')][_0x19c89e('0x1f73')]&&_0x307a6c[_0x19c89e('0x16d5')](),_0x594ccc[_0x19c89e('0x130d')]({'title':_0x49cbdd()[_0x19c89e('0x1c98')]('Template')+_0x19c89e('0x2673'),'msg':_0x4eba1f['name']?_0x4eba1f[_0x19c89e('0x2aa')]+_0x19c89e('0x149f'):''});})[_0x226bdc('0x16df')](function(_0x58f6d3){const _0xfbcc17=_0x226bdc;if(_0x58f6d3[_0xfbcc17('0x1457')]&&_0x58f6d3[_0xfbcc17('0x1457')]['errors']&&_0x58f6d3[_0xfbcc17('0x1457')][_0xfbcc17('0x73e')]['length']){_0x307a6c['errors']=_0x58f6d3[_0xfbcc17('0x1457')][_0xfbcc17('0x73e')]||[{'message':_0x58f6d3[_0xfbcc17('0x9b6')](),'type':'SYSTEM:DELETEtemplate'}];for(let _0x47d1f0=0x0;_0x47d1f0<_0x58f6d3[_0xfbcc17('0x1457')][_0xfbcc17('0x73e')][_0xfbcc17('0x1f73')];_0x47d1f0++){_0x594ccc['error']({'title':_0x58f6d3['data'][_0xfbcc17('0x73e')][_0x47d1f0][_0xfbcc17('0x412')],'msg':_0x58f6d3[_0xfbcc17('0x1457')]['errors'][_0x47d1f0][_0xfbcc17('0x1603')]});}}else _0x594ccc[_0xfbcc17('0x1db9')]({'title':_0x58f6d3[_0xfbcc17('0x11c5')]?_0xfbcc17('0x14f7')+_0x58f6d3[_0xfbcc17('0x11c5')]+_0xfbcc17('0x16e4')+_0x58f6d3['statusText']:'SYSTEM:DELETEtemplate','msg':_0x58f6d3['data']?JSON['stringify'](_0x58f6d3[_0xfbcc17('0x1457')][_0xfbcc17('0x1603')]):_0x58f6d3[_0xfbcc17('0x1603')]||_0x58f6d3[_0xfbcc17('0x9b6')]()});});}function _0x52e834(){const _0x57924d=_0x1a0ea5,_0x3e9b86=angular[_0x57924d('0x14e5')](_0x307a6c[_0x57924d('0xc05')]);return _0x307a6c[_0x57924d('0xc05')]=[],_0x3e9b86;}function _0x8124d4(_0x2f0f7f){const _0x5c2454=_0x1a0ea5,_0x1b0f0d=_0x328c40[_0x5c2454('0x1121')]()['title'](_0x5c2454('0x14bf'))['htmlContent'](_0x5c2454('0xa53')+_0x307a6c[_0x5c2454('0xc05')][_0x5c2454('0x1f73')]+_0x5c2454('0x145a')+_0x5c2454('0xe9f'))[_0x5c2454('0x2095')](_0x5c2454('0x2542'))[_0x5c2454('0x104f')](_0x2f0f7f)['ok']('OK')[_0x5c2454('0x1d47')](_0x5c2454('0x28a0'));_0x328c40['show'](_0x1b0f0d)[_0x5c2454('0x17e7')](function(){const _0x3cea49=_0x5c2454;_0x307a6c[_0x3cea49('0xc05')][_0x3cea49('0xccd')](function(_0x55e1a0){_0x29fb45(_0x55e1a0);}),_0x307a6c[_0x3cea49('0xc05')]=[];});}function _0x376bd4(){const _0x54e3b0=_0x1a0ea5;_0x307a6c[_0x54e3b0('0xc05')]=[];}function _0xc32c41(){const _0x61c657=_0x1a0ea5;_0x307a6c[_0x61c657('0xc05')]=_0x307a6c[_0x61c657('0x143e')][_0x61c657('0x2319')];}}const _0x28dc33=_0x2ff5e9;_0x50ca2d['$inject']=[_0x4376d8('0x668'),'$state','$location',_0x4376d8('0x14f6'),'$q','$translate','toasty','trunks',_0x4376d8('0x252a'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x50ca2d(_0x3a1295,_0x198807,_0x5f5a6f,_0x1e92cb,_0x1a9a39,_0x4370e9,_0x4e8ca5,_0x25590b,_0x39a3fa,_0x494a02,_0x4cca3b,_0x9423a9,_0x5226f5,_0x4425e2){const _0x17f36e=_0x4376d8,_0x134906=this;_0x134906[_0x17f36e('0x197c')]=_0x4cca3b[_0x17f36e('0x2831')](),_0x134906[_0x17f36e('0x73e')]=[],_0x134906[_0x17f36e('0x1aeb')]=_0x5226f5,_0x134906[_0x17f36e('0x1d11')]=_0x9423a9,_0x134906['crudPermissions']=_0x4425e2,_0x134906[_0x17f36e('0x6ee')]={},_0x134906[_0x17f36e('0x1572')]=_0x134906[_0x17f36e('0x1aeb')]&&_0x134906[_0x17f36e('0x1aeb')][_0x17f36e('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x134906[_0x17f36e('0x24d3')]='TOOLS.EDIT_TRUNK',_0x134906[_0x17f36e('0x252a')]=angular['copy'](_0x39a3fa),_0x134906['trunks']=_0x25590b,_0x134906[_0x17f36e('0xdee')]=![];!_0x134906[_0x17f36e('0x252a')]&&(_0x134906[_0x17f36e('0x252a')]={'active':!![],'type':_0x17f36e('0x1a82'),'dtmfmode':_0x17f36e('0x1396'),'qualify':_0x17f36e('0x128f'),'t38pt_udptl':'no'},_0x134906[_0x17f36e('0x24d3')]='TOOLS.NEW_TRUNK',_0x134906[_0x17f36e('0xdee')]=!![]);_0x134906['addNewTrunk']=_0x210abf,_0x134906[_0x17f36e('0x1c95')]=_0x26b0f2,_0x134906[_0x17f36e('0x8e8')]=_0x505509,_0x134906[_0x17f36e('0x1300')]=_0x2c11fd,_0x134906[_0x17f36e('0x136e')]=_0x402f6e;function _0x210abf(){const _0x264be7=_0x17f36e;_0x134906[_0x264be7('0x73e')]=[],_0x494a02[_0x264be7('0x252a')][_0x264be7('0x2439')](_0x134906[_0x264be7('0x252a')])[_0x264be7('0x1af5')][_0x264be7('0x17e7')](function(_0x282429){const _0x4e823c=_0x264be7;_0x134906['trunks'][_0x4e823c('0x1893')](_0x282429['toJSON']()),_0x4e8ca5[_0x4e823c('0x130d')]({'title':_0x4e823c('0x2800'),'msg':_0x134906[_0x4e823c('0x252a')][_0x4e823c('0x2aa')]?_0x134906[_0x4e823c('0x252a')][_0x4e823c('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x402f6e(_0x282429);})[_0x264be7('0x16df')](function(_0x3e6e5f){const _0x330a52=_0x264be7;if(_0x3e6e5f[_0x330a52('0x1457')]&&_0x3e6e5f[_0x330a52('0x1457')][_0x330a52('0x73e')]&&_0x3e6e5f[_0x330a52('0x1457')][_0x330a52('0x73e')][_0x330a52('0x1f73')]){_0x134906[_0x330a52('0x73e')]=_0x3e6e5f[_0x330a52('0x1457')][_0x330a52('0x73e')]||[{'message':_0x3e6e5f[_0x330a52('0x9b6')](),'type':_0x330a52('0xcc3')}];for(let _0x3e3832=0x0;_0x3e3832<_0x3e6e5f[_0x330a52('0x1457')][_0x330a52('0x73e')][_0x330a52('0x1f73')];_0x3e3832+=0x1){_0x4e8ca5[_0x330a52('0x1db9')]({'title':_0x3e6e5f[_0x330a52('0x1457')]['errors'][_0x3e3832][_0x330a52('0x412')],'msg':_0x3e6e5f[_0x330a52('0x1457')]['errors'][_0x3e3832][_0x330a52('0x1603')]});}}else _0x4e8ca5[_0x330a52('0x1db9')]({'title':_0x3e6e5f[_0x330a52('0x11c5')]?_0x330a52('0x14f7')+_0x3e6e5f[_0x330a52('0x11c5')]+_0x330a52('0x16e4')+_0x3e6e5f['statusText']:_0x330a52('0xcc3'),'msg':_0x3e6e5f[_0x330a52('0x1457')]?JSON[_0x330a52('0x678')](_0x3e6e5f[_0x330a52('0x1457')][_0x330a52('0x1603')]):_0x3e6e5f[_0x330a52('0x9b6')]()});});}function _0x26b0f2(){const _0x3ead40=_0x17f36e;_0x134906[_0x3ead40('0x73e')]=[],_0x494a02['trunk']['update']({'id':_0x134906['trunk']['id']},_0x134906[_0x3ead40('0x252a')])['$promise']['then'](function(_0xaea04a){const _0x185ba3=_0x3ead40,_0x848be9=_0x49cbdd()[_0x185ba3('0xe8e')](_0x134906[_0x185ba3('0x19cb')],{'id':_0xaea04a['id']});_0x848be9&&_0x49cbdd()['merge'](_0x848be9,_0x49cbdd()['pick'](_0xaea04a[_0x185ba3('0x16b2')](),_0x49cbdd()['keys'](_0x848be9))),_0x4e8ca5[_0x185ba3('0x130d')]({'title':'Trunk\x20properly\x20saved!','msg':_0x134906[_0x185ba3('0x252a')][_0x185ba3('0x2aa')]?_0x134906['trunk'][_0x185ba3('0x2aa')]+_0x185ba3('0x15ca'):''}),_0x402f6e(_0xaea04a);})[_0x3ead40('0x16df')](function(_0x20ae69){const _0x21e546=_0x3ead40;if(_0x20ae69[_0x21e546('0x1457')]&&_0x20ae69[_0x21e546('0x1457')][_0x21e546('0x73e')]&&_0x20ae69[_0x21e546('0x1457')]['errors']['length']){_0x134906[_0x21e546('0x73e')]=_0x20ae69[_0x21e546('0x1457')]['errors']||[{'message':_0x20ae69[_0x21e546('0x9b6')](),'type':_0x21e546('0x22a7')}];for(let _0x23fef4=0x0;_0x23fef4<_0x20ae69['data']['errors']['length'];_0x23fef4++){_0x4e8ca5[_0x21e546('0x1db9')]({'title':_0x20ae69[_0x21e546('0x1457')][_0x21e546('0x73e')][_0x23fef4][_0x21e546('0x412')],'msg':_0x20ae69[_0x21e546('0x1457')][_0x21e546('0x73e')][_0x23fef4][_0x21e546('0x1603')]});}}else _0x4e8ca5['error']({'title':_0x20ae69[_0x21e546('0x11c5')]?_0x21e546('0x14f7')+_0x20ae69['status']+'\x20-\x20'+_0x20ae69['statusText']:_0x21e546('0x22a7'),'msg':_0x20ae69['data']?JSON[_0x21e546('0x678')](_0x20ae69[_0x21e546('0x1457')][_0x21e546('0x1603')]):_0x20ae69[_0x21e546('0x9b6')]()});});}function _0x505509(_0x2774e2){const _0x4616d2=_0x17f36e;_0x134906[_0x4616d2('0x73e')]=[];const _0x54edb0=_0x1e92cb['confirm']()[_0x4616d2('0x24d3')]('Are\x20you\x20sure?')[_0x4616d2('0xd5')]('The\x20trunk\x20will\x20be\x20deleted.')['ariaLabel'](_0x4616d2('0x529'))['ok']('Delete')[_0x4616d2('0x1d47')](_0x4616d2('0x1b70'))[_0x4616d2('0x104f')](_0x2774e2);_0x1e92cb[_0x4616d2('0x28e2')](_0x54edb0)[_0x4616d2('0x17e7')](function(){const _0x34ee23=_0x4616d2;_0x494a02[_0x34ee23('0x252a')][_0x34ee23('0x1da6')]({'id':_0x134906['trunk']['id']})[_0x34ee23('0x1af5')][_0x34ee23('0x17e7')](function(){const _0x51d8c1=_0x34ee23;_0x49cbdd()[_0x51d8c1('0x5f3')](_0x134906[_0x51d8c1('0x19cb')],{'id':_0x134906[_0x51d8c1('0x252a')]['id']}),_0x4e8ca5[_0x51d8c1('0x130d')]({'title':_0x51d8c1('0x196'),'msg':(_0x134906[_0x51d8c1('0x252a')]['name']||_0x51d8c1('0x252a'))+_0x51d8c1('0x149f')}),_0x402f6e(_0x134906[_0x51d8c1('0x252a')]);})[_0x34ee23('0x16df')](function(_0xe95934){const _0x386c0a=_0x34ee23;if(_0xe95934['data']&&_0xe95934[_0x386c0a('0x1457')]['errors']&&_0xe95934['data'][_0x386c0a('0x73e')][_0x386c0a('0x1f73')]){_0x134906[_0x386c0a('0x73e')]=_0xe95934[_0x386c0a('0x1457')]['errors']||[{'message':_0xe95934[_0x386c0a('0x9b6')](),'type':_0x386c0a('0x32c')}];for(let _0x1dac80=0x0;_0x1dac80<_0xe95934[_0x386c0a('0x1457')][_0x386c0a('0x73e')][_0x386c0a('0x1f73')];_0x1dac80++){_0x4e8ca5['error']({'title':_0xe95934[_0x386c0a('0x1457')][_0x386c0a('0x73e')][_0x1dac80][_0x386c0a('0x412')],'msg':_0xe95934[_0x386c0a('0x1457')][_0x386c0a('0x73e')][_0x1dac80][_0x386c0a('0x1603')]});}}else _0x4e8ca5[_0x386c0a('0x1db9')]({'title':_0xe95934[_0x386c0a('0x11c5')]?_0x386c0a('0x14f7')+_0xe95934[_0x386c0a('0x11c5')]+_0x386c0a('0x16e4')+_0xe95934['statusText']:'api.trunk.delete','msg':_0xe95934[_0x386c0a('0x1457')]?JSON[_0x386c0a('0x678')](_0xe95934[_0x386c0a('0x1457')][_0x386c0a('0x1603')]):_0xe95934['message']||_0xe95934[_0x386c0a('0x9b6')]()});});},function(){});}function _0x2c11fd(_0x34d93f){return _0x34d93f===null?undefined:new Date(_0x34d93f);}function _0x402f6e(_0x42470b){const _0x35cdfc=_0x17f36e;_0x1e92cb[_0x35cdfc('0x212a')](_0x42470b);}}const _0x4621a7=_0x50ca2d;_0x3d6639[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0xc4c'),_0x4376d8('0x108a'),'api',_0x4376d8('0x252a'),_0x4376d8('0x19cb'),_0x4376d8('0x28da')];function _0x3d6639(_0xedaf72,_0x130e10,_0x295c24,_0x22d57e,_0x1c291d,_0x4572ed,_0x1bda6c){const _0x2e3924=_0x4376d8,_0x4966dc=this;_0x4966dc[_0x2e3924('0xdee')]=!![],_0x4966dc['trunk']=angular[_0x2e3924('0x14e5')](_0x1c291d),_0x4966dc[_0x2e3924('0x19cb')]=_0x4572ed,_0x4966dc['title']=_0x1bda6c['instant']('TOOLS.CLONE_TRUNK');_0x1c291d&&_0x1c291d[_0x2e3924('0x2aa')]&&(_0x4966dc[_0x2e3924('0x24d3')]+=':\x20'+_0x1c291d[_0x2e3924('0x2aa')]);_0x4966dc[_0x2e3924('0x1777')]=_0x5120f8,_0x4966dc[_0x2e3924('0x136e')]=_0x10f813;function _0x5120f8(){const _0x3b9cb3=_0x2e3924;return _0x22d57e['trunk'][_0x3b9cb3('0x2080')]({'id':_0x1c291d['id']},_0x4966dc[_0x3b9cb3('0x252a')])['$promise']['then'](function(_0x221632){const _0x308605=_0x3b9cb3;_0x4966dc[_0x308605('0x19cb')][_0x308605('0x1893')](_0x221632[_0x308605('0x16b2')]()),_0x295c24[_0x308605('0x130d')]({'title':'Trunk\x20properly\x20cloned','msg':_0x4966dc[_0x308605('0x252a')]['name']?_0x4966dc[_0x308605('0x252a')]['name']+_0x308605('0x22c9'):''}),_0x130e10['go'](_0x308605('0xccf'),{'id':_0x221632['id']}),_0x10f813(_0x221632);})[_0x3b9cb3('0x16df')](function(_0x1045c7){const _0x44e30f=_0x3b9cb3;if(_0x1045c7[_0x44e30f('0x1457')]&&_0x1045c7[_0x44e30f('0x1457')][_0x44e30f('0x73e')]&&_0x1045c7[_0x44e30f('0x1457')][_0x44e30f('0x73e')][_0x44e30f('0x1f73')]){_0x4966dc[_0x44e30f('0x73e')]=_0x1045c7[_0x44e30f('0x1457')][_0x44e30f('0x73e')]||[{'message':_0x1045c7[_0x44e30f('0x9b6')](),'type':'api.trunk.clone'}];for(let _0x3e03eb=0x0;_0x3e03eb<_0x1045c7[_0x44e30f('0x1457')][_0x44e30f('0x73e')][_0x44e30f('0x1f73')];_0x3e03eb+=0x1){_0x295c24[_0x44e30f('0x1db9')]({'title':_0x1045c7[_0x44e30f('0x1457')][_0x44e30f('0x73e')][_0x3e03eb][_0x44e30f('0x412')],'msg':_0x1045c7[_0x44e30f('0x1457')][_0x44e30f('0x73e')][_0x3e03eb][_0x44e30f('0x1603')]});}}else _0x295c24[_0x44e30f('0x1db9')]({'title':_0x1045c7[_0x44e30f('0x11c5')]?_0x44e30f('0x14f7')+_0x1045c7[_0x44e30f('0x11c5')]+'\x20-\x20'+_0x1045c7[_0x44e30f('0x1833')]:'api.trunk.clone','msg':_0x1045c7['data']?JSON[_0x44e30f('0x678')](_0x1045c7[_0x44e30f('0x1457')][_0x44e30f('0x1603')]):_0x1045c7['toString']()});});}function _0x10f813(_0x498673){const _0x4d648c=_0x2e3924;_0xedaf72[_0x4d648c('0x212a')](_0x498673);}}const _0x46f6e4=_0x3d6639,_0x400011=_0x4cf2bc['p']+_0x4376d8('0xa19');_0x2e190a[_0x4376d8('0x1b9c')]=['$state','$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x252a'),'userProfileSection'];function _0x2e190a(_0x4a397a,_0xc2b2fa,_0x131f16,_0x58aecc,_0xcf5cd9,_0x3d4026,_0x4bd059,_0x406e49,_0x49dce5,_0x5781fa,_0x18cc40,_0x361b05){const _0x393e0f=_0x4376d8,_0x45a33c=this;_0x45a33c[_0x393e0f('0x197c')]=_0x5781fa[_0x393e0f('0x2831')](),_0x45a33c[_0x393e0f('0x1d11')]=_0x3d4026,_0x45a33c[_0x393e0f('0x1aeb')]=_0x4bd059,_0x45a33c[_0x393e0f('0x1572')]=_0x45a33c[_0x393e0f('0x1aeb')][_0x393e0f('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45a33c[_0x393e0f('0xaed')]=_0xc2b2fa[_0x393e0f('0x14fe')]()+_0x393e0f('0x14')+_0xc2b2fa[_0x393e0f('0x108')](),_0x45a33c['trunk']=_0x18cc40||_0x4a397a[_0x393e0f('0x16fb')]['trunk']||{},_0x45a33c['userProfileSection']=_0x361b05&&_0x361b05[_0x393e0f('0x335')]==0x1?_0x361b05[_0x393e0f('0x2319')][0x0]:null,_0x45a33c[_0x393e0f('0x103e')]=_0x5781fa[_0x393e0f('0x17a9')](_0x45a33c[_0x393e0f('0x383')]?_0x45a33c['userProfileSection']['crudPermissions']:null),_0x45a33c[_0x393e0f('0x6ee')]={},_0x45a33c[_0x393e0f('0xde7')]=_0x4a397a[_0x393e0f('0x16fb')]['tab']||0x0,_0x45a33c[_0x393e0f('0x2794')]=_0x1eb441,_0x45a33c[_0x393e0f('0x1459')]=_0x4c7163,_0x45a33c[_0x393e0f('0x99f')]=_0x49dce5['info'],_0x45a33c[_0x393e0f('0x215')]=_0x159e22,_0x45a33c['saveTrunk']=_0x1c0616,_0x5781fa[_0x393e0f('0x1ba2')](_0x393e0f('0x20bf'))?_0x406e49['voiceContext'][_0x393e0f('0x1c53')]({'fields':_0x393e0f('0x12d2'),'sort':_0x393e0f('0x2aa')})[_0x393e0f('0x1af5')]['then'](function(_0x91481){const _0x3c972c=_0x393e0f;_0x45a33c[_0x3c972c('0xfb3')]=_0x91481[_0x3c972c('0x2319')]||[];})[_0x393e0f('0x16df')](function(_0x303fd7){const _0x39b4c2=_0x393e0f;_0x49dce5['error']({'title':_0x303fd7[_0x39b4c2('0x11c5')]?_0x39b4c2('0x14f7')+_0x303fd7[_0x39b4c2('0x11c5')]+_0x39b4c2('0x16e4')+_0x303fd7[_0x39b4c2('0x1833')]:_0x39b4c2('0xa2c'),'msg':_0x303fd7[_0x39b4c2('0x1457')]?JSON['stringify'](_0x303fd7[_0x39b4c2('0x1457')]):_0x303fd7[_0x39b4c2('0x9b6')]()});}):_0x406e49[_0x393e0f('0xc76')][_0x393e0f('0x1c53')]({'fields':_0x393e0f('0x12d2'),'sort':_0x393e0f('0x2aa')})[_0x393e0f('0x1af5')][_0x393e0f('0x17e7')](function(_0x434900){const _0x45ea98=_0x393e0f;_0x45a33c['contexts']=_0x434900[_0x45ea98('0x2319')]||[];})[_0x393e0f('0x17e7')](function(){const _0x367977=_0x393e0f;return _0x406e49[_0x367977('0x383')][_0x367977('0x1c53')]({'userProfileId':_0x45a33c[_0x367977('0x197c')]['userProfileId'],'sectionId':0x195})[_0x367977('0x1af5')];})[_0x393e0f('0x17e7')](function(_0x52d208){const _0x2e4436=_0x393e0f,_0x46ef2b=_0x52d208&&_0x52d208[_0x2e4436('0x2319')]?_0x52d208['rows'][0x0]:null;if(!_0x46ef2b)return _0x406e49[_0x2e4436('0xc76')]['get']({'fields':_0x2e4436('0x12d2'),'sort':'name','defaultEntry':0x1})['$promise'][_0x2e4436('0x17e7')](function(_0x16c53e){const _0x3baae8=_0x2e4436;_0x45a33c[_0x3baae8('0xfb3')]=_0x16c53e[_0x3baae8('0x2319')]||[];});else{if(!_0x46ef2b[_0x2e4436('0x9e3')])return _0x406e49['userProfileResource']['get']({'sectionId':_0x46ef2b['id']})[_0x2e4436('0x1af5')][_0x2e4436('0x17e7')](function(_0x144200){const _0x42d2f7=_0x2e4436,_0x3a9041=_0x49cbdd()[_0x42d2f7('0x787')](_0x144200[_0x42d2f7('0x2319')],function(_0x64b6ce){const _0x2c785c=_0x42d2f7;return _0x49cbdd()[_0x2c785c('0xe8e')](_0x45a33c[_0x2c785c('0xfb3')],{'id':_0x64b6ce[_0x2c785c('0x5db')]});});let _0x4964e5=null;_0x45a33c[_0x42d2f7('0x252a')]&&(_0x4964e5=_0x49cbdd()['find'](_0x45a33c['contexts'],{'name':_0x45a33c['trunk'][_0x42d2f7('0x17b3')]}));if(_0x4964e5&&!_0x49cbdd()[_0x42d2f7('0x26f8')](_0x3a9041,['id',_0x4964e5['id']])){const _0x188ce6=_0x49cbdd()['find'](_0x45a33c['contexts'],{'id':_0x4964e5['id']});_0x188ce6['canSelect']=![],_0x3a9041['push'](_0x188ce6);}_0x45a33c[_0x42d2f7('0xfb3')]=_0x3a9041;});}})[_0x393e0f('0x16df')](function(_0x292afe){const _0x2af77e=_0x393e0f;_0x49dce5[_0x2af77e('0x1db9')]({'title':_0x292afe[_0x2af77e('0x11c5')]?_0x2af77e('0x14f7')+_0x292afe['status']+'\x20-\x20'+_0x292afe['statusText']:_0x2af77e('0x78'),'msg':_0x292afe[_0x2af77e('0x1457')]?JSON[_0x2af77e('0x678')](_0x292afe[_0x2af77e('0x1457')]):_0x292afe[_0x2af77e('0x9b6')]()});});function _0x1eb441(){const _0xa8ecd8=_0x393e0f;if(_0x5781fa['hasRole'](_0xa8ecd8('0x20bf')))_0x4a397a['go'](_0xa8ecd8('0x417'),{});else return _0x406e49[_0xa8ecd8('0x383')][_0xa8ecd8('0x1c53')]({'userProfileId':_0x5781fa[_0xa8ecd8('0x2831')]()[_0xa8ecd8('0x1e76')],'sectionId':0x19b})[_0xa8ecd8('0x1af5')][_0xa8ecd8('0x17e7')](function(_0x58cc7f){const _0x22e616=_0xa8ecd8,_0x37136b=_0x58cc7f&&_0x58cc7f[_0x22e616('0x2319')]?_0x58cc7f['rows'][0x0]:null;_0x37136b&&_0x37136b[_0x22e616('0x1cd3')]?_0x4a397a['go'](_0x22e616('0x417'),{}):_0x49dce5['info']({'title':_0xcf5cd9['instant'](_0x22e616('0x286e')),'msg':_0xcf5cd9[_0x22e616('0x1acc')](_0x22e616('0x1169'))});})['catch'](function(_0x359f3f){const _0x3f5d86=_0xa8ecd8;_0x49dce5[_0x3f5d86('0x1db9')]({'title':_0x359f3f[_0x3f5d86('0x11c5')]?_0x3f5d86('0x14f7')+_0x359f3f[_0x3f5d86('0x11c5')]+_0x3f5d86('0x16e4')+_0x359f3f[_0x3f5d86('0x1833')]:_0x3f5d86('0x338'),'msg':_0x359f3f['status']?JSON['stringify'](_0x359f3f[_0x3f5d86('0x1457')]):_0x359f3f[_0x3f5d86('0x9b6')]()});});}function _0x4c7163(_0x4bbc36,_0x3b6480){const _0x5e77b2=_0x393e0f;_0x131f16['show']({'controller':_0x5e77b2('0x43a'),'controllerAs':'vm','templateUrl':_0x400011,'parent':angular[_0x5e77b2('0x1ce1')](_0x58aecc[_0x5e77b2('0x13aa')]),'targetEvent':_0x3b6480,'clickOutsideToClose':!![],'locals':{'trunk':_0x4bbc36,'trunks':_0x45a33c[_0x5e77b2('0x19cb')]?_0x45a33c[_0x5e77b2('0x19cb')][_0x5e77b2('0x2319')]:[],'crudPermissions':_0x45a33c[_0x5e77b2('0x103e')]}});}function _0x159e22(){const _0x300684=_0x393e0f;_0x4a397a['go'](_0x300684('0xa85'),{},{'reload':_0x300684('0xa85')});}function _0x1c0616(){const _0xc9a47e=_0x393e0f;_0x406e49[_0xc9a47e('0x252a')][_0xc9a47e('0x27ba')]({'id':_0x45a33c[_0xc9a47e('0x252a')]['id']},_0x45a33c[_0xc9a47e('0x252a')])[_0xc9a47e('0x1af5')][_0xc9a47e('0x17e7')](function(){const _0x1470fb=_0xc9a47e;_0x49dce5[_0x1470fb('0x130d')]({'title':_0x1470fb('0xdba'),'msg':_0x45a33c[_0x1470fb('0x252a')][_0x1470fb('0x2aa')]?_0x45a33c['trunk'][_0x1470fb('0x2aa')]+_0x1470fb('0x12b0'):''});})[_0xc9a47e('0x16df')](function(_0x5e6ab1){const _0x42d831=_0xc9a47e;_0x49dce5[_0x42d831('0x1db9')]({'title':_0x5e6ab1[_0x42d831('0x11c5')]?'API:'+_0x5e6ab1[_0x42d831('0x11c5')]+'\x20-\x20'+_0x5e6ab1[_0x42d831('0x1833')]:_0x42d831('0x22f'),'msg':_0x5e6ab1['data']?JSON[_0x42d831('0x678')](_0x5e6ab1[_0x42d831('0x1457')]):_0x5e6ab1[_0x42d831('0x9b6')]()});});}}const _0x47ea78=_0x2e190a,_0x348584=_0x4cf2bc['p']+_0x4376d8('0x2c3');_0x2bb67b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),'$translate',_0x4376d8('0x19cb'),_0x4376d8('0xdeb'),'userProfileSection','api',_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x2bb67b(_0x2b88d3,_0x4dd810,_0xeacd50,_0x43a23c,_0x2259fd,_0x4b23f7,_0x4849bf,_0x375759,_0x36f826,_0x41d6ce,_0x2188b5,_0x187cc0,_0x32ee6e,_0x59a34d,_0xa13a75,_0x2476ec,_0x3eb838){const _0x79dfa3=_0x4376d8,_0x3421ee=this;_0x3421ee[_0x79dfa3('0x1d11')]=_0x2476ec,_0x3421ee['setting']=_0x3eb838,_0x3421ee['currentUser']=_0xa13a75[_0x79dfa3('0x2831')](),_0x3421ee[_0x79dfa3('0x19cb')]=_0x36f826||{'count':0x0,'rows':[]},_0x3421ee[_0x79dfa3('0xdeb')]=_0x41d6ce,_0x3421ee['userProfileSection']=_0x2188b5&&_0x2188b5[_0x79dfa3('0x335')]==0x1?_0x2188b5['rows'][0x0]:null,_0x3421ee['crudPermissions']=_0xa13a75['parseCrudPermissions'](_0x3421ee[_0x79dfa3('0x383')]?_0x3421ee[_0x79dfa3('0x383')][_0x79dfa3('0x103e')]:null),_0x3421ee['table']=_0x79dfa3('0x19cb'),_0x3421ee[_0x79dfa3('0x26a1')]='',_0x3421ee[_0x79dfa3('0x24e1')]=null,_0x3421ee[_0x79dfa3('0x26b3')]=[],_0x3421ee[_0x79dfa3('0x826')]={'fields':_0x79dfa3('0x10cf'),'sort':_0x79dfa3('0x1ac6'),'limit':0xa,'page':0x1},_0x3421ee[_0x79dfa3('0xc41')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':_0x79dfa3('0x129e'),'value':_0x79dfa3('0x19ab')},{'option':_0x79dfa3('0x24fd'),'value':_0x79dfa3('0x4')},{'option':'Peer','value':_0x79dfa3('0x517')}],function(_0x40453f){const _0x2c326d=_0x79dfa3;return _0x49cbdd()[_0x2c326d('0x737')](_0x40453f[_0x2c326d('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x263d')]=_0x49cbdd()['keyBy']([{'option':'rfc2833','value':_0x79dfa3('0x729')},{'option':_0x79dfa3('0x1178'),'value':_0x79dfa3('0xba2')},{'option':'shortinfo','value':_0x79dfa3('0x102c')},{'option':_0x79dfa3('0x9fc'),'value':'\x27inband\x27'},{'option':_0x79dfa3('0x141b'),'value':'\x27auto\x27'}],function(_0xb09a78){const _0x7b0be5=_0x79dfa3;return _0x49cbdd()[_0x7b0be5('0x737')](_0xb09a78[_0x7b0be5('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x311')]=_0x49cbdd()['keyBy']([{'option':_0x79dfa3('0x222f'),'value':_0x79dfa3('0xf77')},{'option':_0x79dfa3('0x549'),'value':_0x79dfa3('0x1010')},{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x79dfa3('0x2471')},{'option':_0x79dfa3('0x360'),'value':_0x79dfa3('0xc4d')},{'option':_0x79dfa3('0x21ec'),'value':_0x79dfa3('0x210b')}],function(_0x49fd30){const _0x128db1=_0x79dfa3;return _0x49cbdd()[_0x128db1('0x737')](_0x49fd30[_0x128db1('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x247')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':'yes','value':_0x79dfa3('0xd7b')},{'option':'no','value':_0x79dfa3('0x2471')}],function(_0x44b6d2){const _0x469bc9=_0x79dfa3;return _0x49cbdd()['replace'](_0x44b6d2[_0x469bc9('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x248')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':_0x79dfa3('0xaf5'),'value':'\x27ulaw\x27'},{'option':'alaw','value':_0x79dfa3('0x273')},{'option':_0x79dfa3('0xbc3'),'value':'\x27gsm\x27'},{'option':_0x79dfa3('0x246f'),'value':'\x27g723\x27'},{'option':_0x79dfa3('0x1fac'),'value':_0x79dfa3('0x55e')},{'option':'g722','value':_0x79dfa3('0x3aa')},{'option':'g729','value':_0x79dfa3('0x26c9')},{'option':_0x79dfa3('0x170d'),'value':_0x79dfa3('0x219c')},{'option':_0x79dfa3('0x2587'),'value':'\x27opus\x27'},{'option':_0x79dfa3('0xafe'),'value':'\x27h264\x27'}],function(_0x4c357b){const _0x5464bc=_0x79dfa3;return _0x49cbdd()[_0x5464bc('0x737')](_0x4c357b[_0x5464bc('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x17a7')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':'port','value':'\x27port\x27'},{'option':_0x79dfa3('0x11e'),'value':_0x79dfa3('0x40d')},{'option':'very','value':_0x79dfa3('0x2503')}],function(_0x439686){const _0xb0a6a0=_0x79dfa3;return _0x49cbdd()[_0xb0a6a0('0x737')](_0x439686[_0xb0a6a0('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x2a7')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x79dfa3('0x2471')},{'option':_0x79dfa3('0x55f'),'value':_0x79dfa3('0x1277')},{'option':'update','value':'\x27update\x27'}],function(_0x12bd65){const _0x4190a3=_0x79dfa3;return _0x49cbdd()[_0x4190a3('0x737')](_0x12bd65[_0x4190a3('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x1c3e')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':_0x79dfa3('0x128f'),'value':_0x79dfa3('0xd7b')},{'option':'no','value':_0x79dfa3('0x2471')}],function(_0x3f3fac){const _0xa144dd=_0x79dfa3;return _0x49cbdd()['replace'](_0x3f3fac[_0xa144dd('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x213f')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':'yes','value':_0x79dfa3('0xd7b')},{'option':'no','value':'\x27no\x27'}],function(_0x3594c1){const _0x4f6408=_0x79dfa3;return _0x49cbdd()['replace'](_0x3594c1[_0x4f6408('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee['arraytrustrpid']=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':_0x79dfa3('0x128f'),'value':'\x27yes\x27'},{'option':'no','value':'\x27no\x27'}],function(_0x3392af){const _0x4f2e5c=_0x79dfa3;return _0x49cbdd()['replace'](_0x3392af[_0x4f2e5c('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x98d')]=_0x49cbdd()['keyBy']([{'option':'yes','value':_0x79dfa3('0xd7b')},{'option':'no','value':_0x79dfa3('0x2471')},{'option':'pai','value':_0x79dfa3('0xcf5')}],function(_0x4ab299){const _0x429aad=_0x79dfa3;return _0x49cbdd()[_0x429aad('0x737')](_0x4ab299[_0x429aad('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee['arrayencryption']=_0x49cbdd()['keyBy']([{'option':'yes','value':'\x27yes\x27'},{'option':'no','value':_0x79dfa3('0x2471')}],function(_0x959caf){const _0x2a84ae=_0x79dfa3;return _0x49cbdd()[_0x2a84ae('0x737')](_0x959caf[_0x2a84ae('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0xc9')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':'udp','value':'\x27udp\x27'},{'option':'tcp','value':_0x79dfa3('0x26e9')},{'option':'ws','value':_0x79dfa3('0x1d05')},{'option':_0x79dfa3('0x1054'),'value':_0x79dfa3('0x1287')},{'option':_0x79dfa3('0x2e2'),'value':_0x79dfa3('0x175d')}],function(_0x56bff9){const _0xfd1173=_0x79dfa3;return _0x49cbdd()[_0xfd1173('0x737')](_0x56bff9[_0xfd1173('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0x1570')]=_0x49cbdd()[_0x79dfa3('0x8de')]([{'option':_0x79dfa3('0x8e3'),'value':_0x79dfa3('0xd7b')},{'option':'No','value':_0x79dfa3('0x2471')},{'option':_0x79dfa3('0x768'),'value':_0x79dfa3('0x1632')}],function(_0x2dca8e){const _0x59bd33=_0x79dfa3;return _0x49cbdd()[_0x59bd33('0x737')](_0x2dca8e[_0x59bd33('0x175b')],new RegExp('\x27','g'),'');}),_0x3421ee[_0x79dfa3('0xcd4')]=_0x4e4a9a,_0x3421ee['clonedialog']=_0x2345ea,_0x3421ee['gotorealtimegoto']=_0x13514a,_0x3421ee[_0x79dfa3('0xbf4')]=_0x2172f0,_0x3421ee[_0x79dfa3('0x130d')]=_0x5f1caa,_0x3421ee[_0x79dfa3('0x106a')]=_0x49df24,_0x3421ee[_0x79dfa3('0x221d')]=_0x463c3b,_0x3421ee[_0x79dfa3('0x8e8')]=_0x231bca,_0x3421ee[_0x79dfa3('0x1c4f')]=_0x56a27b,_0x3421ee['deleteSelectedTrunks']=_0x3a16d8,_0x3421ee[_0x79dfa3('0x87d')]=_0x440cf2,_0x3421ee[_0x79dfa3('0x1ac4')]=_0x2166eb;function _0x4e4a9a(_0x353500){const _0x20bfab=_0x79dfa3;_0xeacd50['go'](_0x20bfab('0xccf'),{'id':_0x353500['id'],'trunk':_0x353500,'crudPermissions':_0x3421ee[_0x20bfab('0x103e')]});}function _0x2345ea(_0x3b71f6,_0x207e03){const _0x36fa2d=_0x79dfa3;_0x2259fd[_0x36fa2d('0x28e2')]({'controller':_0x36fa2d('0x43a'),'controllerAs':'vm','templateUrl':_0x400011,'parent':angular[_0x36fa2d('0x1ce1')](_0x4b23f7[_0x36fa2d('0x13aa')]),'targetEvent':_0x207e03,'clickOutsideToClose':!![],'locals':{'trunk':_0x3b71f6,'trunks':_0x3421ee[_0x36fa2d('0x19cb')]?_0x3421ee['trunks'][_0x36fa2d('0x2319')]:[],'crudPermissions':_0x3421ee[_0x36fa2d('0x103e')]}});}function _0x13514a(){const _0x47cc52=_0x79dfa3;if(_0xa13a75['hasRole'](_0x47cc52('0x20bf')))_0xeacd50['go']('app.voice.realtime.trunks',{});else return _0x187cc0['userProfileSection'][_0x47cc52('0x1c53')]({'userProfileId':_0xa13a75[_0x47cc52('0x2831')]()['userProfileId'],'sectionId':0x19b})['$promise'][_0x47cc52('0x17e7')](function(_0x403e8d){const _0x4678f2=_0x47cc52,_0x22abdb=_0x403e8d&&_0x403e8d[_0x4678f2('0x2319')]?_0x403e8d['rows'][0x0]:null;_0x22abdb&&_0x22abdb['enabled']?_0xeacd50['go'](_0x4678f2('0x417'),{}):_0x59a34d[_0x4678f2('0x1178')]({'title':_0x375759[_0x4678f2('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x375759[_0x4678f2('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x47cc52('0x16df')](function(_0x12b459){const _0xfaa150=_0x47cc52;_0x59a34d[_0xfaa150('0x1db9')]({'title':_0x12b459[_0xfaa150('0x11c5')]?'API:'+_0x12b459[_0xfaa150('0x11c5')]+'\x20-\x20'+_0x12b459[_0xfaa150('0x1833')]:_0xfaa150('0x338'),'msg':_0x12b459[_0xfaa150('0x11c5')]?JSON[_0xfaa150('0x678')](_0x12b459[_0xfaa150('0x1457')]):_0x12b459[_0xfaa150('0x9b6')]()});});}function _0x2172f0(_0x52fcf5,_0x16edac){const _0x3a0b92=_0x79dfa3,_0x1a9652=_0x2259fd[_0x3a0b92('0x1121')]()[_0x3a0b92('0x24d3')](_0x3a0b92('0x5e1')+_0x49cbdd()[_0x3a0b92('0x1c98')](_0x3a0b92('0x252a'))+'?')[_0x3a0b92('0x211f')](_0x3a0b92('0xa53')+(_0x52fcf5['name']||_0x3a0b92('0x252a'))+''+_0x3a0b92('0xe9f'))['ariaLabel'](_0x3a0b92('0x276b'))[_0x3a0b92('0x104f')](_0x16edac)['ok']('OK')['cancel'](_0x3a0b92('0x28a0'));_0x2259fd[_0x3a0b92('0x28e2')](_0x1a9652)[_0x3a0b92('0x17e7')](function(){_0x231bca(_0x52fcf5);},function(){const _0xdac708=_0x3a0b92;console[_0xdac708('0x1d63')](_0xdac708('0x28a0'));});}let _0x2f8c63=!![],_0x9e101b=0x1;_0x2b88d3[_0x79dfa3('0x620')](_0x79dfa3('0x3ed'),function(_0x19c667,_0x2dcb19){const _0x3e66d5=_0x79dfa3;_0x2f8c63?_0x4849bf(function(){_0x2f8c63=![];}):(!_0x2dcb19&&(_0x9e101b=_0x3421ee['query'][_0x3e66d5('0x115a')]),_0x19c667!==_0x2dcb19&&(_0x3421ee[_0x3e66d5('0x826')]['page']=0x1),!_0x19c667&&(_0x3421ee[_0x3e66d5('0x826')][_0x3e66d5('0x115a')]=_0x9e101b),_0x3421ee[_0x3e66d5('0x106a')]());});function _0x5f1caa(_0x1f2c00){const _0x36907b=_0x79dfa3;_0x3421ee[_0x36907b('0x19cb')]=_0x1f2c00||{'count':0x0,'rows':[]};}function _0x49df24(){const _0x5fbcdd=_0x79dfa3;_0x3421ee['query'][_0x5fbcdd('0xf19')]=(_0x3421ee[_0x5fbcdd('0x826')][_0x5fbcdd('0x115a')]-0x1)*_0x3421ee[_0x5fbcdd('0x826')][_0x5fbcdd('0x193b')],_0xa13a75[_0x5fbcdd('0x1ba2')]('admin')?_0x3421ee[_0x5fbcdd('0x1691')]=_0x187cc0[_0x5fbcdd('0x252a')][_0x5fbcdd('0x1c53')](_0x3421ee[_0x5fbcdd('0x826')],_0x5f1caa)[_0x5fbcdd('0x1af5')]:(_0x3421ee[_0x5fbcdd('0x826')]['id']=_0x3421ee[_0x5fbcdd('0xdeb')]['id'],_0x3421ee[_0x5fbcdd('0x826')][_0x5fbcdd('0x16f8')]=_0x5fbcdd('0x18f1'),_0x3421ee[_0x5fbcdd('0x1691')]=_0x187cc0[_0x5fbcdd('0xdeb')][_0x5fbcdd('0x2447')](_0x3421ee[_0x5fbcdd('0x826')],_0x5f1caa)[_0x5fbcdd('0x1af5')]);}function _0x463c3b(_0x428cf3,_0x2e7b29){const _0xb9169c=_0x79dfa3;_0x2259fd[_0xb9169c('0x28e2')]({'controller':_0xb9169c('0x1708'),'controllerAs':'vm','templateUrl':_0x348584,'parent':angular[_0xb9169c('0x1ce1')](_0x4b23f7['body']),'targetEvent':_0x428cf3,'clickOutsideToClose':!![],'locals':{'trunk':_0x2e7b29,'trunks':_0x3421ee[_0xb9169c('0x19cb')][_0xb9169c('0x2319')],'license':_0x3421ee['license'],'setting':_0x3421ee[_0xb9169c('0x1aeb')],'crudPermissions':_0x3421ee[_0xb9169c('0x103e')]}});}function _0x231bca(_0x5450ff){const _0x7e179e=_0x79dfa3;_0x187cc0[_0x7e179e('0x252a')][_0x7e179e('0x1da6')]({'id':_0x5450ff['id']})['$promise'][_0x7e179e('0x17e7')](function(){const _0x4bfd84=_0x7e179e;_0x49cbdd()[_0x4bfd84('0x5f3')](_0x3421ee[_0x4bfd84('0x19cb')][_0x4bfd84('0x2319')],{'id':_0x5450ff['id']}),_0x3421ee[_0x4bfd84('0x19cb')]['count']-=0x1,!_0x3421ee[_0x4bfd84('0x19cb')]['rows'][_0x4bfd84('0x1f73')]&&_0x3421ee['getTrunks'](),_0x59a34d['success']({'title':_0x49cbdd()['startCase'](_0x4bfd84('0x1bc6'))+'\x20deleted!','msg':_0x5450ff['name']?_0x5450ff[_0x4bfd84('0x2aa')]+_0x4bfd84('0x149f'):''});})['catch'](function(_0x47111c){const _0x51c6b7=_0x7e179e;if(_0x47111c[_0x51c6b7('0x1457')]&&_0x47111c[_0x51c6b7('0x1457')][_0x51c6b7('0x73e')]&&_0x47111c[_0x51c6b7('0x1457')][_0x51c6b7('0x73e')][_0x51c6b7('0x1f73')]){_0x3421ee['errors']=_0x47111c[_0x51c6b7('0x1457')][_0x51c6b7('0x73e')]||[{'message':_0x47111c[_0x51c6b7('0x9b6')](),'type':_0x51c6b7('0xf8')}];for(let _0x3f2fe4=0x0;_0x3f2fe4<_0x47111c[_0x51c6b7('0x1457')][_0x51c6b7('0x73e')]['length'];_0x3f2fe4++){_0x59a34d[_0x51c6b7('0x1db9')]({'title':_0x47111c[_0x51c6b7('0x1457')]['errors'][_0x3f2fe4][_0x51c6b7('0x412')],'msg':_0x47111c[_0x51c6b7('0x1457')][_0x51c6b7('0x73e')][_0x3f2fe4][_0x51c6b7('0x1603')]});}}else _0x59a34d[_0x51c6b7('0x1db9')]({'title':_0x47111c[_0x51c6b7('0x11c5')]?'API:'+_0x47111c[_0x51c6b7('0x11c5')]+_0x51c6b7('0x16e4')+_0x47111c[_0x51c6b7('0x1833')]:'SYSTEM:DELETEtrunk','msg':_0x47111c[_0x51c6b7('0x1457')]?JSON[_0x51c6b7('0x678')](_0x47111c[_0x51c6b7('0x1457')][_0x51c6b7('0x1603')]):_0x47111c[_0x51c6b7('0x1603')]||_0x47111c[_0x51c6b7('0x9b6')]()});});}function _0x56a27b(){const _0x3e2633=_0x79dfa3,_0x3b3cde=angular[_0x3e2633('0x14e5')](_0x3421ee[_0x3e2633('0x26b3')]);return _0x3421ee['selectedTrunks']=[],_0x3b3cde;}function _0x3a16d8(_0x26271f){const _0x3b539c=_0x79dfa3,_0x28dbf9=_0x2259fd[_0x3b539c('0x1121')]()[_0x3b539c('0x24d3')](_0x3b539c('0x808'))[_0x3b539c('0x211f')](_0x3b539c('0xa53')+_0x3421ee['selectedTrunks'][_0x3b539c('0x1f73')]+'\x20selected
'+_0x3b539c('0xe9f'))[_0x3b539c('0x2095')](_0x3b539c('0xc7f'))[_0x3b539c('0x104f')](_0x26271f)['ok']('OK')['cancel'](_0x3b539c('0x28a0'));_0x2259fd[_0x3b539c('0x28e2')](_0x28dbf9)[_0x3b539c('0x17e7')](function(){const _0x2863ad=_0x3b539c;_0x3421ee[_0x2863ad('0x26b3')][_0x2863ad('0xccd')](function(_0x24a498){_0x231bca(_0x24a498);}),_0x3421ee[_0x2863ad('0x26b3')]=[];});}function _0x440cf2(){const _0x182fb1=_0x79dfa3;_0x3421ee[_0x182fb1('0x26b3')]=[];}function _0x2166eb(){const _0x537a22=_0x79dfa3;_0x3421ee[_0x537a22('0x26b3')]=_0x3421ee[_0x537a22('0x19cb')][_0x537a22('0x2319')];}}const _0x48466a=_0x2bb67b;_0x52fe65[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location','$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0xd26'),_0x4376d8('0xb0a'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x52fe65(_0x53cc90,_0x599a8d,_0x5f1649,_0xb3ab23,_0x459645,_0x26736c,_0x3004ce,_0x1741fa,_0x47d2ea,_0x4a12c5,_0x34e01d,_0x36e3c7,_0x22cbdf,_0x1e927e){const _0x525dea=_0x4376d8,_0x5bcde3=this;_0x5bcde3[_0x525dea('0x197c')]=_0x34e01d[_0x525dea('0x2831')](),_0x5bcde3[_0x525dea('0x73e')]=[],_0x5bcde3[_0x525dea('0x1aeb')]=_0x22cbdf,_0x5bcde3['license']=_0x36e3c7,_0x5bcde3[_0x525dea('0x103e')]=_0x1e927e,_0x5bcde3[_0x525dea('0x6ee')]={},_0x5bcde3[_0x525dea('0x1572')]=_0x5bcde3[_0x525dea('0x1aeb')]&&_0x5bcde3[_0x525dea('0x1aeb')][_0x525dea('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5bcde3[_0x525dea('0x24d3')]='TOOLS.EDIT_VARIABLE',_0x5bcde3['variable']=angular['copy'](_0x47d2ea),_0x5bcde3[_0x525dea('0xd26')]=_0x1741fa,_0x5bcde3[_0x525dea('0x683')]=![];!_0x5bcde3[_0x525dea('0xb0a')]&&(_0x5bcde3['variable']={},_0x5bcde3[_0x525dea('0x24d3')]=_0x525dea('0xfcd'),_0x5bcde3['newVariable']=!![]);_0x5bcde3[_0x525dea('0x27ae')]=_0x4a9828,_0x5bcde3[_0x525dea('0xfa')]=_0x4e1138,_0x5bcde3[_0x525dea('0x2838')]=_0x5c26bb,_0x5bcde3['getDateFromString']=_0x4da892,_0x5bcde3[_0x525dea('0x136e')]=_0x2ef432;function _0x4a9828(){const _0x27452d=_0x525dea;_0x5bcde3[_0x27452d('0x73e')]=[],_0x4a12c5['variable'][_0x27452d('0x2439')](_0x5bcde3[_0x27452d('0xb0a')])['$promise'][_0x27452d('0x17e7')](function(_0x32821d){const _0xc45ed8=_0x27452d;_0x5bcde3[_0xc45ed8('0xd26')][_0xc45ed8('0x1893')](_0x32821d[_0xc45ed8('0x16b2')]()),_0x3004ce['success']({'title':_0xc45ed8('0x149a'),'msg':_0x5bcde3[_0xc45ed8('0xb0a')]['name']?_0x5bcde3['variable'][_0xc45ed8('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x2ef432(_0x32821d);})[_0x27452d('0x16df')](function(_0x290e0b){const _0x4701da=_0x27452d;if(_0x290e0b[_0x4701da('0x1457')]&&_0x290e0b['data'][_0x4701da('0x73e')]&&_0x290e0b['data'][_0x4701da('0x73e')]['length']){_0x5bcde3[_0x4701da('0x73e')]=_0x290e0b[_0x4701da('0x1457')][_0x4701da('0x73e')]||[{'message':_0x290e0b[_0x4701da('0x9b6')](),'type':_0x4701da('0x1881')}];for(let _0x30542b=0x0;_0x30542b<_0x290e0b[_0x4701da('0x1457')][_0x4701da('0x73e')][_0x4701da('0x1f73')];_0x30542b+=0x1){_0x3004ce[_0x4701da('0x1db9')]({'title':_0x290e0b[_0x4701da('0x1457')][_0x4701da('0x73e')][_0x30542b][_0x4701da('0x412')],'msg':_0x290e0b['data'][_0x4701da('0x73e')][_0x30542b][_0x4701da('0x1603')]});}}else _0x3004ce['error']({'title':_0x290e0b[_0x4701da('0x11c5')]?'API:'+_0x290e0b['status']+_0x4701da('0x16e4')+_0x290e0b['statusText']:_0x4701da('0x1881'),'msg':_0x290e0b['data']?JSON[_0x4701da('0x678')](_0x290e0b[_0x4701da('0x1457')][_0x4701da('0x1603')]):_0x290e0b['toString']()});});}function _0x4e1138(){const _0x54ca85=_0x525dea;_0x5bcde3[_0x54ca85('0x73e')]=[],_0x4a12c5[_0x54ca85('0xb0a')][_0x54ca85('0x27ba')]({'id':_0x5bcde3[_0x54ca85('0xb0a')]['id']},_0x5bcde3[_0x54ca85('0xb0a')])[_0x54ca85('0x1af5')][_0x54ca85('0x17e7')](function(_0x2c38ac){const _0x24e522=_0x54ca85,_0x2990fc=_0x49cbdd()[_0x24e522('0xe8e')](_0x5bcde3[_0x24e522('0xd26')],{'id':_0x2c38ac['id']});_0x2990fc&&_0x49cbdd()['merge'](_0x2990fc,_0x49cbdd()[_0x24e522('0x230a')](_0x2c38ac[_0x24e522('0x16b2')](),_0x49cbdd()[_0x24e522('0x1c0f')](_0x2990fc))),_0x3004ce[_0x24e522('0x130d')]({'title':'Variable\x20properly\x20saved!','msg':_0x5bcde3[_0x24e522('0xb0a')][_0x24e522('0x2aa')]?_0x5bcde3[_0x24e522('0xb0a')]['name']+_0x24e522('0x15ca'):''}),_0x2ef432(_0x2c38ac);})['catch'](function(_0x74be63){const _0x1aa550=_0x54ca85;if(_0x74be63[_0x1aa550('0x1457')]&&_0x74be63[_0x1aa550('0x1457')][_0x1aa550('0x73e')]&&_0x74be63[_0x1aa550('0x1457')][_0x1aa550('0x73e')][_0x1aa550('0x1f73')]){_0x5bcde3[_0x1aa550('0x73e')]=_0x74be63['data'][_0x1aa550('0x73e')]||[{'message':_0x74be63['toString'](),'type':'api.variable.update'}];for(let _0x496f98=0x0;_0x496f98<_0x74be63[_0x1aa550('0x1457')][_0x1aa550('0x73e')]['length'];_0x496f98++){_0x3004ce[_0x1aa550('0x1db9')]({'title':_0x74be63[_0x1aa550('0x1457')][_0x1aa550('0x73e')][_0x496f98][_0x1aa550('0x412')],'msg':_0x74be63[_0x1aa550('0x1457')][_0x1aa550('0x73e')][_0x496f98][_0x1aa550('0x1603')]});}}else _0x3004ce[_0x1aa550('0x1db9')]({'title':_0x74be63[_0x1aa550('0x11c5')]?_0x1aa550('0x14f7')+_0x74be63[_0x1aa550('0x11c5')]+_0x1aa550('0x16e4')+_0x74be63[_0x1aa550('0x1833')]:_0x1aa550('0x1b52'),'msg':_0x74be63['data']?JSON['stringify'](_0x74be63['data'][_0x1aa550('0x1603')]):_0x74be63[_0x1aa550('0x9b6')]()});});}function _0x5c26bb(_0x7c20ae){const _0x5e41db=_0x525dea;_0x5bcde3[_0x5e41db('0x73e')]=[];const _0x108e6e=_0xb3ab23[_0x5e41db('0x1121')]()[_0x5e41db('0x24d3')](_0x5e41db('0x530'))[_0x5e41db('0xd5')](_0x5e41db('0x260d'))[_0x5e41db('0x2095')](_0x5e41db('0x1b67'))['ok'](_0x5e41db('0x304'))[_0x5e41db('0x1d47')](_0x5e41db('0x1b70'))[_0x5e41db('0x104f')](_0x7c20ae);_0xb3ab23[_0x5e41db('0x28e2')](_0x108e6e)[_0x5e41db('0x17e7')](function(){const _0x5b667e=_0x5e41db;_0x4a12c5[_0x5b667e('0xb0a')]['delete']({'id':_0x5bcde3[_0x5b667e('0xb0a')]['id']})[_0x5b667e('0x1af5')]['then'](function(){const _0x1cfefa=_0x5b667e;_0x49cbdd()[_0x1cfefa('0x5f3')](_0x5bcde3[_0x1cfefa('0xd26')],{'id':_0x5bcde3[_0x1cfefa('0xb0a')]['id']}),_0x3004ce[_0x1cfefa('0x130d')]({'title':'Variable\x20properly\x20deleted!','msg':(_0x5bcde3['variable'][_0x1cfefa('0x2aa')]||_0x1cfefa('0xb0a'))+'\x20has\x20been\x20deleted!'}),_0x2ef432(_0x5bcde3[_0x1cfefa('0xb0a')]);})[_0x5b667e('0x16df')](function(_0x13c8a9){const _0x57544b=_0x5b667e;if(_0x13c8a9[_0x57544b('0x1457')]&&_0x13c8a9[_0x57544b('0x1457')]['errors']&&_0x13c8a9[_0x57544b('0x1457')][_0x57544b('0x73e')][_0x57544b('0x1f73')]){_0x5bcde3[_0x57544b('0x73e')]=_0x13c8a9['data'][_0x57544b('0x73e')]||[{'message':_0x13c8a9[_0x57544b('0x9b6')](),'type':'api.variable.delete'}];for(let _0x5230ee=0x0;_0x5230ee<_0x13c8a9[_0x57544b('0x1457')]['errors'][_0x57544b('0x1f73')];_0x5230ee++){_0x3004ce[_0x57544b('0x1db9')]({'title':_0x13c8a9[_0x57544b('0x1457')][_0x57544b('0x73e')][_0x5230ee]['type'],'msg':_0x13c8a9[_0x57544b('0x1457')][_0x57544b('0x73e')][_0x5230ee][_0x57544b('0x1603')]});}}else _0x3004ce['error']({'title':_0x13c8a9[_0x57544b('0x11c5')]?_0x57544b('0x14f7')+_0x13c8a9[_0x57544b('0x11c5')]+_0x57544b('0x16e4')+_0x13c8a9['statusText']:_0x57544b('0x14ce'),'msg':_0x13c8a9['data']?JSON['stringify'](_0x13c8a9['data']['message']):_0x13c8a9[_0x57544b('0x1603')]||_0x13c8a9[_0x57544b('0x9b6')]()});});},function(){});}function _0x4da892(_0x5dbb54){return _0x5dbb54===null?undefined:new Date(_0x5dbb54);}function _0x2ef432(_0x935f59){_0xb3ab23['hide'](_0x935f59);}}const _0x1b4056=_0x52fe65,_0x1b921c=_0x4cf2bc['p']+_0x4376d8('0x5bf');_0x2e1e4c[_0x4376d8('0x1b9c')]=['$scope','$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),'variables','userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x2e1e4c(_0x2747a3,_0x21362e,_0x1bae5f,_0x277bf7,_0x17db3a,_0x285420,_0x123598,_0x37b224,_0x58f996,_0x13d6e5,_0x5256b0,_0x5a62bf,_0xd19bdd,_0x273d63,_0x33417e,_0x4f4a60,_0x5bdf03){const _0x3edbfb=_0x4376d8,_0x14a5a2=this;_0x14a5a2['license']=_0x4f4a60,_0x14a5a2['setting']=_0x5bdf03,_0x14a5a2[_0x3edbfb('0x197c')]=_0x33417e[_0x3edbfb('0x2831')](),_0x14a5a2[_0x3edbfb('0xd26')]=_0x58f996||{'count':0x0,'rows':[]},_0x14a5a2[_0x3edbfb('0xdeb')]=_0x13d6e5,_0x14a5a2['userProfileSection']=_0x5256b0&&_0x5256b0[_0x3edbfb('0x335')]==0x1?_0x5256b0[_0x3edbfb('0x2319')][0x0]:null,_0x14a5a2['crudPermissions']=_0x33417e[_0x3edbfb('0x17a9')](_0x14a5a2[_0x3edbfb('0x383')]?_0x14a5a2[_0x3edbfb('0x383')][_0x3edbfb('0x103e')]:null),_0x14a5a2['table']=_0x3edbfb('0xd26'),_0x14a5a2['listOrder']='',_0x14a5a2[_0x3edbfb('0x24e1')]=null,_0x14a5a2[_0x3edbfb('0x1bce')]=[],_0x14a5a2[_0x3edbfb('0x826')]={'fields':_0x3edbfb('0x142d'),'sort':_0x3edbfb('0x1ac6'),'limit':0xa,'page':0x1},_0x14a5a2[_0x3edbfb('0xb32')]=_0x387e11,_0x14a5a2[_0x3edbfb('0xbf4')]=_0x2057c5,_0x14a5a2[_0x3edbfb('0x130d')]=_0x499a9b,_0x14a5a2[_0x3edbfb('0xa48')]=_0xe9f72d,_0x14a5a2[_0x3edbfb('0x1675')]=_0x167740,_0x14a5a2[_0x3edbfb('0x2838')]=_0x391934,_0x14a5a2[_0x3edbfb('0xf72')]=_0x608f72,_0x14a5a2[_0x3edbfb('0x4ae')]=_0x45b916,_0x14a5a2[_0x3edbfb('0x10b7')]=_0xc1da92,_0x14a5a2['selectAllVariables']=_0x33a039;function _0x387e11(_0x4b5353,_0x2eff59){const _0x4f1fea=_0x3edbfb;_0x17db3a[_0x4f1fea('0x28e2')]({'controller':_0x4f1fea('0x30c'),'controllerAs':'vm','templateUrl':_0x1b921c,'parent':angular['element'](_0x285420[_0x4f1fea('0x13aa')]),'targetEvent':_0x2eff59,'clickOutsideToClose':!![],'locals':{'variable':_0x4b5353,'variables':_0x14a5a2[_0x4f1fea('0xd26')][_0x4f1fea('0x2319')],'license':_0x14a5a2['license'],'setting':null,'crudPermissions':_0x14a5a2[_0x4f1fea('0x103e')]}});}function _0x2057c5(_0x2b60f5,_0x1086d0){const _0x49b4ac=_0x3edbfb,_0x3d9d35=_0x17db3a[_0x49b4ac('0x1121')]()[_0x49b4ac('0x24d3')](_0x49b4ac('0x5e1')+_0x49cbdd()[_0x49b4ac('0x1c98')]('variable')+'?')[_0x49b4ac('0x211f')](''+(_0x2b60f5[_0x49b4ac('0x2aa')]||_0x49b4ac('0xb0a'))+_0x49b4ac('0x1d23')+'\x20will\x20be\x20deleted.')[_0x49b4ac('0x2095')](_0x49b4ac('0x229f'))[_0x49b4ac('0x104f')](_0x1086d0)['ok']('OK')[_0x49b4ac('0x1d47')]('CANCEL');_0x17db3a['show'](_0x3d9d35)[_0x49b4ac('0x17e7')](function(){_0x391934(_0x2b60f5);},function(){const _0x19c867=_0x49b4ac;console[_0x19c867('0x1d63')](_0x19c867('0x28a0'));});}let _0x5c19aa=!![],_0x684469=0x1;_0x2747a3[_0x3edbfb('0x620')](_0x3edbfb('0x3ed'),function(_0x24e908,_0x213e4f){const _0x85d3cc=_0x3edbfb;_0x5c19aa?_0x123598(function(){_0x5c19aa=![];}):(!_0x213e4f&&(_0x684469=_0x14a5a2[_0x85d3cc('0x826')][_0x85d3cc('0x115a')]),_0x24e908!==_0x213e4f&&(_0x14a5a2[_0x85d3cc('0x826')]['page']=0x1),!_0x24e908&&(_0x14a5a2['query']['page']=_0x684469),_0x14a5a2['getVariables']());});function _0x499a9b(_0x278775){const _0x4ba72a=_0x3edbfb;_0x14a5a2[_0x4ba72a('0xd26')]=_0x278775||{'count':0x0,'rows':[]};}function _0xe9f72d(){const _0x1597e6=_0x3edbfb;_0x14a5a2['query'][_0x1597e6('0xf19')]=(_0x14a5a2[_0x1597e6('0x826')][_0x1597e6('0x115a')]-0x1)*_0x14a5a2[_0x1597e6('0x826')]['limit'],_0x33417e[_0x1597e6('0x1ba2')](_0x1597e6('0x20bf'))?_0x14a5a2[_0x1597e6('0x1691')]=_0x5a62bf[_0x1597e6('0xb0a')]['get'](_0x14a5a2[_0x1597e6('0x826')],_0x499a9b)[_0x1597e6('0x1af5')]:(_0x14a5a2['query']['id']=_0x14a5a2[_0x1597e6('0xdeb')]['id'],_0x14a5a2[_0x1597e6('0x826')][_0x1597e6('0x16f8')]='Variables',_0x14a5a2[_0x1597e6('0x1691')]=_0x5a62bf[_0x1597e6('0xdeb')][_0x1597e6('0x2447')](_0x14a5a2[_0x1597e6('0x826')],_0x499a9b)['$promise']);}function _0x167740(_0x388e7b,_0x5eb368){const _0x330d8c=_0x3edbfb;_0x17db3a['show']({'controller':_0x330d8c('0x30c'),'controllerAs':'vm','templateUrl':_0x1b921c,'parent':angular[_0x330d8c('0x1ce1')](_0x285420[_0x330d8c('0x13aa')]),'targetEvent':_0x388e7b,'clickOutsideToClose':!![],'locals':{'variable':_0x5eb368,'variables':_0x14a5a2['variables'][_0x330d8c('0x2319')],'license':_0x14a5a2['license'],'setting':_0x14a5a2[_0x330d8c('0x1aeb')],'crudPermissions':_0x14a5a2[_0x330d8c('0x103e')]}});}function _0x391934(_0x31af6f){const _0x3d9de5=_0x3edbfb;_0x5a62bf['variable'][_0x3d9de5('0x1da6')]({'id':_0x31af6f['id']})[_0x3d9de5('0x1af5')]['then'](function(){const _0x51cbfb=_0x3d9de5;_0x49cbdd()['remove'](_0x14a5a2[_0x51cbfb('0xd26')][_0x51cbfb('0x2319')],{'id':_0x31af6f['id']}),_0x14a5a2[_0x51cbfb('0xd26')][_0x51cbfb('0x335')]-=0x1,!_0x14a5a2[_0x51cbfb('0xd26')][_0x51cbfb('0x2319')]['length']&&_0x14a5a2[_0x51cbfb('0xa48')](),_0x273d63[_0x51cbfb('0x130d')]({'title':_0x49cbdd()[_0x51cbfb('0x1c98')](_0x51cbfb('0xd6a'))+_0x51cbfb('0x2673'),'msg':_0x31af6f[_0x51cbfb('0x2aa')]?_0x31af6f[_0x51cbfb('0x2aa')]+_0x51cbfb('0x149f'):''});})[_0x3d9de5('0x16df')](function(_0x173f8b){const _0x1d8921=_0x3d9de5;if(_0x173f8b[_0x1d8921('0x1457')]&&_0x173f8b[_0x1d8921('0x1457')][_0x1d8921('0x73e')]&&_0x173f8b[_0x1d8921('0x1457')][_0x1d8921('0x73e')][_0x1d8921('0x1f73')]){_0x14a5a2['errors']=_0x173f8b[_0x1d8921('0x1457')]['errors']||[{'message':_0x173f8b[_0x1d8921('0x9b6')](),'type':_0x1d8921('0x1179')}];for(let _0x29e976=0x0;_0x29e976<_0x173f8b[_0x1d8921('0x1457')]['errors']['length'];_0x29e976++){_0x273d63[_0x1d8921('0x1db9')]({'title':_0x173f8b[_0x1d8921('0x1457')][_0x1d8921('0x73e')][_0x29e976]['type'],'msg':_0x173f8b[_0x1d8921('0x1457')]['errors'][_0x29e976]['message']});}}else _0x273d63[_0x1d8921('0x1db9')]({'title':_0x173f8b['status']?_0x1d8921('0x14f7')+_0x173f8b[_0x1d8921('0x11c5')]+'\x20-\x20'+_0x173f8b[_0x1d8921('0x1833')]:'SYSTEM:DELETEvariable','msg':_0x173f8b['data']?JSON[_0x1d8921('0x678')](_0x173f8b['data'][_0x1d8921('0x1603')]):_0x173f8b[_0x1d8921('0x1603')]||_0x173f8b[_0x1d8921('0x9b6')]()});});}function _0x608f72(){const _0x58f9fb=_0x3edbfb,_0x160f8c=angular[_0x58f9fb('0x14e5')](_0x14a5a2['selectedVariables']);return _0x14a5a2['selectedVariables']=[],_0x160f8c;}function _0x45b916(_0x50e30d){const _0x4756c2=_0x3edbfb,_0x2fe6c2=_0x17db3a[_0x4756c2('0x1121')]()[_0x4756c2('0x24d3')](_0x4756c2('0x1475'))[_0x4756c2('0x211f')](_0x4756c2('0xa53')+_0x14a5a2[_0x4756c2('0x1bce')]['length']+'\x20selected'+_0x4756c2('0xe9f'))[_0x4756c2('0x2095')](_0x4756c2('0x37e'))['targetEvent'](_0x50e30d)['ok']('OK')[_0x4756c2('0x1d47')](_0x4756c2('0x28a0'));_0x17db3a[_0x4756c2('0x28e2')](_0x2fe6c2)[_0x4756c2('0x17e7')](function(){const _0x13eafe=_0x4756c2;_0x14a5a2['selectedVariables'][_0x13eafe('0xccd')](function(_0x1304da){_0x391934(_0x1304da);}),_0x14a5a2[_0x13eafe('0x1bce')]=[];});}function _0xc1da92(){const _0x573e1d=_0x3edbfb;_0x14a5a2[_0x573e1d('0x1bce')]=[];}function _0x33a039(){const _0x4c399d=_0x3edbfb;_0x14a5a2['selectedVariables']=_0x14a5a2[_0x4c399d('0xd26')]['rows'];}}const _0x58e5ca=_0x2e1e4c;_0x5a8196[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x5a8196(_0xa203ac,_0x9b8b6a){const _0x47060c=_0x4376d8;_0xa203ac[_0x47060c('0x1b9a')](_0x47060c('0xee7'),{'abstract':!![],'url':_0x47060c('0x151b')})['state'](_0x47060c('0x146e'),{'url':_0x47060c('0x1770'),'views':{'content@app':{'templateUrl':_0x1f2d4b,'controller':'CannedAnswersController\x20as\x20vm'}},'resolve':{'cannedAnswers':['apiResolver',_0x47060c('0x1885'),function(_0x28617c,_0x1d7c96){const _0x541e49=_0x47060c;return _0x1d7c96[_0x541e49('0x1ba2')](_0x541e49('0x20bf'))?_0x28617c[_0x541e49('0x898')](_0x541e49('0xd87'),{'fields':'createdAt,updatedAt,id,key,value,description','sort':_0x541e49('0x1ac6'),'MailAccountId':_0x541e49('0x9bb'),'FaxAccountId':_0x541e49('0x9bb'),'SmsAccountId':'null','OpenchannelAccountId':_0x541e49('0x9bb'),'ChatWebsiteId':_0x541e49('0x9bb'),'limit':0xa,'offset':0x0}):_0x28617c[_0x541e49('0x898')](_0x541e49('0x1164'),{'id':_0x1d7c96[_0x541e49('0x2831')]()['userProfileId'],'section':_0x541e49('0x204f'),'fields':_0x541e49('0xcfb'),'sort':_0x541e49('0x1ac6'),'MailAccountId':_0x541e49('0x9bb'),'FaxAccountId':'null','SmsAccountId':_0x541e49('0x9bb'),'OpenchannelAccountId':'null','ChatWebsiteId':_0x541e49('0x9bb'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x47060c('0x177'),'Auth',function(_0xb1f69c,_0x47da32){const _0x105537=_0x47060c;return _0x47da32[_0x105537('0x1ba2')](_0x105537('0x20bf'))?null:_0xb1f69c[_0x105537('0x898')](_0x105537('0x235d'),{'fields':_0x105537('0x8d3'),'id':_0x47da32['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x1a55af,_0x415100){const _0x15f499=_0x47060c;return _0x415100[_0x15f499('0x1ba2')](_0x15f499('0x20bf'))?null:_0x1a55af[_0x15f499('0x898')](_0x15f499('0x23e7'),{'fields':_0x15f499('0x1134'),'userProfileId':_0x415100['getCurrentUser']()['userProfileId'],'sectionId':0x3e9});}]},'authenticate':!![],'permissionId':0x3e9,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')]('app.tools.customDashboards',{'url':_0x47060c('0x23d1'),'views':{'content@app':{'templateUrl':_0x37ff5d,'controller':'CustomDashboardsController\x20as\x20vm'}},'resolve':{'customDashboards':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x2a7f91,_0x2fea7f){const _0x2d9e0f=_0x47060c;return _0x2fea7f[_0x2d9e0f('0x1ba2')](_0x2d9e0f('0x20bf'))?_0x2a7f91[_0x2d9e0f('0x898')](_0x2d9e0f('0x5d8'),{'fields':_0x2d9e0f('0x142d'),'sort':_0x2d9e0f('0x1ac6'),'limit':0xa,'offset':0x0}):_0x2a7f91['resolve'](_0x2d9e0f('0x1164'),{'id':_0x2fea7f[_0x2d9e0f('0x2831')]()[_0x2d9e0f('0x1e76')],'section':_0x2d9e0f('0x1a9f'),'fields':_0x2d9e0f('0x142d'),'sort':_0x2d9e0f('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x3848f6,_0x3b1939){const _0x32ddea=_0x47060c;return _0x3b1939[_0x32ddea('0x1ba2')](_0x32ddea('0x20bf'))?null:_0x3848f6[_0x32ddea('0x898')](_0x32ddea('0x235d'),{'fields':_0x32ddea('0x8d3'),'id':_0x3b1939[_0x32ddea('0x2831')]()[_0x32ddea('0x1e76')]});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x1e8725,_0x1cbc8b){const _0x21c969=_0x47060c;return _0x1cbc8b[_0x21c969('0x1ba2')]('admin')?null:_0x1e8725[_0x21c969('0x898')](_0x21c969('0x23e7'),{'fields':_0x21c969('0x1134'),'userProfileId':_0x1cbc8b['getCurrentUser']()['userProfileId'],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')](_0x47060c('0x475'),{'url':_0x47060c('0x2370'),'params':{'customDashboard':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x526dcb,'controller':_0x47060c('0x7b1')}},'resolve':{'customDashboard':[_0x47060c('0x177'),_0x47060c('0x118b'),function(_0x49826a,_0x4b8cf5){const _0x425f1a=_0x47060c;return _0x49826a[_0x425f1a('0x898')]('dashboard@get',{'fields':_0x425f1a('0x142d'),'id':_0x4b8cf5['id']});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x5e2e31,_0x28df4b){const _0x9ef190=_0x47060c;return _0x5e2e31['resolve']('userProfileSection@get',{'fields':_0x9ef190('0x1134'),'userProfileId':_0x28df4b[_0x9ef190('0x2831')]()[_0x9ef190('0x1e76')],'sectionId':0x3eb});}]},'authenticate':!![],'permissionId':0x3eb,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')](_0x47060c('0xd66'),{'url':_0x47060c('0x5ee'),'views':{'content@app':{'templateUrl':_0x12c6bb,'controller':_0x47060c('0xd22')}},'resolve':{'intervals':[_0x47060c('0x177'),'Auth',function(_0x3d32aa,_0x429172){const _0x931ef5=_0x47060c;return _0x429172[_0x931ef5('0x1ba2')](_0x931ef5('0x20bf'))?_0x3d32aa[_0x931ef5('0x898')]('interval@get',{'fields':_0x931ef5('0x142d'),'sort':_0x931ef5('0x1ac6'),'IntervalId':'null','limit':0xa,'offset':0x0}):_0x3d32aa[_0x931ef5('0x898')](_0x931ef5('0x1164'),{'id':_0x429172[_0x931ef5('0x2831')]()[_0x931ef5('0x1e76')],'section':_0x931ef5('0xf88'),'fields':_0x931ef5('0x142d'),'sort':_0x931ef5('0x1ac6'),'IntervalId':_0x931ef5('0x9bb'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x4f3d1e,_0x4c3947){const _0x18ec79=_0x47060c;return _0x4c3947['hasRole']('admin')?null:_0x4f3d1e[_0x18ec79('0x898')](_0x18ec79('0x235d'),{'fields':_0x18ec79('0x8d3'),'id':_0x4c3947[_0x18ec79('0x2831')]()[_0x18ec79('0x1e76')]});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x1fb2b5,_0x23b1c7){const _0xcc2f45=_0x47060c;return _0x23b1c7[_0xcc2f45('0x1ba2')](_0xcc2f45('0x20bf'))?null:_0x1fb2b5[_0xcc2f45('0x898')](_0xcc2f45('0x23e7'),{'fields':_0xcc2f45('0x1134'),'userProfileId':_0x23b1c7['getCurrentUser']()[_0xcc2f45('0x1e76')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':'tools'})[_0x47060c('0x1b9a')](_0x47060c('0x17d'),{'url':_0x47060c('0x2370'),'params':{'interval':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4af79a,'controller':_0x47060c('0x1a5f')}},'resolve':{'interval':[_0x47060c('0x177'),'$stateParams',function(_0x2ea8f7,_0x1ca312){const _0x3cf1a6=_0x47060c;return _0x2ea8f7['resolve'](_0x3cf1a6('0x79e'),{'fields':_0x3cf1a6('0x142d'),'id':_0x1ca312['id']});}],'userProfileSection':['apiResolver',_0x47060c('0x1885'),function(_0x32c28c,_0x2cef31){const _0x37d5f3=_0x47060c;return _0x32c28c[_0x37d5f3('0x898')]('userProfileSection@get',{'fields':_0x37d5f3('0x1134'),'userProfileId':_0x2cef31[_0x37d5f3('0x2831')]()[_0x37d5f3('0x1e76')],'sectionId':0x3ec});}]},'authenticate':!![],'permissionId':0x3ec,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')](_0x47060c('0x23f0'),{'url':_0x47060c('0x1985'),'views':{'content@app':{'templateUrl':_0x56c94c,'controller':_0x47060c('0x16dc')}},'resolve':{'pauses':[_0x47060c('0x177'),'Auth',function(_0xe74b07,_0x1588f8){const _0x44c292=_0x47060c;return _0x1588f8[_0x44c292('0x1ba2')](_0x44c292('0x20bf'))?_0xe74b07[_0x44c292('0x898')]('pause@get',{'fields':_0x44c292('0x142d'),'sort':_0x44c292('0x1ac6'),'limit':0xa,'offset':0x0}):_0xe74b07[_0x44c292('0x898')](_0x44c292('0x1164'),{'id':_0x1588f8[_0x44c292('0x2831')]()['userProfileId'],'section':'Pauses','fields':'createdAt,updatedAt,id,name,description','sort':_0x44c292('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x3aadb0,_0x1ee0b1){const _0x1a0a6d=_0x47060c;return _0x1ee0b1[_0x1a0a6d('0x1ba2')]('admin')?null:_0x3aadb0[_0x1a0a6d('0x898')](_0x1a0a6d('0x235d'),{'fields':_0x1a0a6d('0x8d3'),'id':_0x1ee0b1['getCurrentUser']()['userProfileId']});}],'userProfileSection':['apiResolver',_0x47060c('0x1885'),function(_0x5dcefc,_0x543167){const _0x2ec8e3=_0x47060c;return _0x543167['hasRole'](_0x2ec8e3('0x20bf'))?null:_0x5dcefc['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x543167[_0x2ec8e3('0x2831')]()['userProfileId'],'sectionId':0x3ed});}]},'authenticate':!![],'permissionId':0x3ed,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')](_0x47060c('0x211d'),{'url':_0x47060c('0x6fd'),'views':{'content@app':{'templateUrl':_0x666c91,'controller':_0x47060c('0x277f')}},'resolve':{'schedules':[_0x47060c('0x177'),'Auth',function(_0x39944b,_0x164dd9){const _0x3c394f=_0x47060c;return _0x164dd9[_0x3c394f('0x1ba2')](_0x3c394f('0x20bf'))?_0x39944b[_0x3c394f('0x898')](_0x3c394f('0x13b1'),{'fields':_0x3c394f('0x1e7d'),'sort':_0x3c394f('0x1ac6'),'limit':0xa,'offset':0x0}):_0x39944b[_0x3c394f('0x898')]('userProfile@getResources',{'id':_0x164dd9[_0x3c394f('0x2831')]()[_0x3c394f('0x1e76')],'section':_0x3c394f('0x6c8'),'fields':_0x3c394f('0x1e7d'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x40b69d,_0x3ac885){const _0xa0157a=_0x47060c;return _0x3ac885['hasRole'](_0xa0157a('0x20bf'))?null:_0x40b69d[_0xa0157a('0x898')](_0xa0157a('0x235d'),{'fields':'id,name,crudPermissions','id':_0x3ac885['getCurrentUser']()[_0xa0157a('0x1e76')]});}],'userProfileSection':[_0x47060c('0x177'),'Auth',function(_0x489ac4,_0x2c7dee){const _0x5afa3a=_0x47060c;return _0x2c7dee[_0x5afa3a('0x1ba2')](_0x5afa3a('0x20bf'))?null:_0x489ac4[_0x5afa3a('0x898')](_0x5afa3a('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2c7dee[_0x5afa3a('0x2831')]()['userProfileId'],'sectionId':0x3ee});}]},'authenticate':!![],'permissionId':0x3ee,'bodyClass':_0x47060c('0x238f')})['state'](_0x47060c('0xcb4'),{'url':_0x47060c('0x738'),'views':{'content@app':{'templateUrl':_0x48d72d,'controller':_0x47060c('0x20f4')}},'resolve':{'sounds':['apiResolver',_0x47060c('0x1885'),function(_0x5474be,_0x58e7bc){const _0x5e7e36=_0x47060c;return _0x58e7bc['hasRole']('admin')?_0x5474be[_0x5e7e36('0x898')]('sound@get',{'fields':_0x5e7e36('0x19c6'),'sort':_0x5e7e36('0x1ac6'),'limit':0xa,'offset':0x0}):_0x5474be[_0x5e7e36('0x898')](_0x5e7e36('0x1164'),{'id':_0x58e7bc[_0x5e7e36('0x2831')]()[_0x5e7e36('0x1e76')],'section':_0x5e7e36('0x18ff'),'fields':'createdAt,updatedAt,id,save_name,converted_format,name,audio,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x15d8a8,_0x44be54){const _0x23eb39=_0x47060c;return _0x44be54[_0x23eb39('0x1ba2')](_0x23eb39('0x20bf'))?null:_0x15d8a8[_0x23eb39('0x898')](_0x23eb39('0x235d'),{'fields':'id,name,crudPermissions','id':_0x44be54['getCurrentUser']()[_0x23eb39('0x1e76')]});}],'userProfileSection':['apiResolver',_0x47060c('0x1885'),function(_0x50f7cf,_0x3eeb4d){const _0x2596dd=_0x47060c;return _0x3eeb4d['hasRole'](_0x2596dd('0x20bf'))?null:_0x50f7cf['resolve'](_0x2596dd('0x23e7'),{'fields':_0x2596dd('0x1134'),'userProfileId':_0x3eeb4d[_0x2596dd('0x2831')]()['userProfileId'],'sectionId':0x3ef});}]},'authenticate':!![],'permissionId':0x3ef,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')]('app.tools.tags',{'url':'/tags','views':{'content@app':{'templateUrl':_0x54eddf,'controller':'TagsController\x20as\x20vm'}},'resolve':{'tags':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x2176ac,_0x3ab1e9){const _0x4cc7bc=_0x47060c;return _0x3ab1e9[_0x4cc7bc('0x1ba2')]('admin')?_0x2176ac[_0x4cc7bc('0x898')](_0x4cc7bc('0x22aa'),{'fields':_0x4cc7bc('0x889'),'sort':_0x4cc7bc('0x1ac6'),'limit':0xa,'offset':0x0}):_0x2176ac[_0x4cc7bc('0x898')](_0x4cc7bc('0x1164'),{'id':_0x3ab1e9[_0x4cc7bc('0x2831')]()['userProfileId'],'section':'Tags','fields':_0x4cc7bc('0x889'),'sort':_0x4cc7bc('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x78d8df,_0x5c5501){const _0x32352f=_0x47060c;return _0x5c5501[_0x32352f('0x1ba2')](_0x32352f('0x20bf'))?null:_0x78d8df[_0x32352f('0x898')]('userProfile@get',{'fields':_0x32352f('0x8d3'),'id':_0x5c5501[_0x32352f('0x2831')]()[_0x32352f('0x1e76')]});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x1a5cc8,_0x5a0db4){const _0x22b676=_0x47060c;return _0x5a0db4[_0x22b676('0x1ba2')](_0x22b676('0x20bf'))?null:_0x1a5cc8[_0x22b676('0x898')]('userProfileSection@get',{'fields':_0x22b676('0x1134'),'userProfileId':_0x5a0db4[_0x22b676('0x2831')]()[_0x22b676('0x1e76')],'sectionId':0x3f0});}]},'authenticate':!![],'permissionId':0x3f0,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')](_0x47060c('0xa5c'),{'url':_0x47060c('0xcf0'),'views':{'content@app':{'templateUrl':_0x35fb1d,'controller':'TemplatesController\x20as\x20vm'}},'resolve':{'templates':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x24768a,_0x97ea5){const _0x53e25a=_0x47060c;return _0x97ea5['hasRole'](_0x53e25a('0x20bf'))?_0x24768a[_0x53e25a('0x898')](_0x53e25a('0x1417'),{'fields':_0x53e25a('0x588'),'sort':_0x53e25a('0x1ac6'),'limit':0xa,'offset':0x0}):_0x24768a[_0x53e25a('0x898')](_0x53e25a('0x1164'),{'id':_0x97ea5[_0x53e25a('0x2831')]()['userProfileId'],'section':_0x53e25a('0x24e9'),'fields':_0x53e25a('0x588'),'sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x47060c('0x177'),'Auth',function(_0x4cda50,_0x1072f5){const _0x2182cd=_0x47060c;return _0x1072f5[_0x2182cd('0x1ba2')](_0x2182cd('0x20bf'))?null:_0x4cda50[_0x2182cd('0x898')](_0x2182cd('0x235d'),{'fields':_0x2182cd('0x8d3'),'id':_0x1072f5['getCurrentUser']()[_0x2182cd('0x1e76')]});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x47ed95,_0x3e7ecd){const _0xbe9ed=_0x47060c;return _0x3e7ecd[_0xbe9ed('0x1ba2')](_0xbe9ed('0x20bf'))?null:_0x47ed95[_0xbe9ed('0x898')](_0xbe9ed('0x23e7'),{'fields':_0xbe9ed('0x1134'),'userProfileId':_0x3e7ecd[_0xbe9ed('0x2831')]()[_0xbe9ed('0x1e76')],'sectionId':0x3f1});}]},'authenticate':!![],'permissionId':0x3f1,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')](_0x47060c('0xa85'),{'url':'/trunks','views':{'content@app':{'templateUrl':_0x80022,'controller':_0x47060c('0x258')}},'resolve':{'trunks':[_0x47060c('0x177'),'Auth',function(_0x511021,_0x7ce9){const _0x56fb74=_0x47060c;return _0x7ce9[_0x56fb74('0x1ba2')](_0x56fb74('0x20bf'))?_0x511021[_0x56fb74('0x898')](_0x56fb74('0x1bbc'),{'fields':_0x56fb74('0x10cf'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x511021['resolve'](_0x56fb74('0x1164'),{'id':_0x7ce9[_0x56fb74('0x2831')]()['userProfileId'],'section':_0x56fb74('0x18f1'),'fields':_0x56fb74('0x10cf'),'sort':_0x56fb74('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x47060c('0x177'),'Auth',function(_0xa29ee4,_0x188ca2){const _0x19617d=_0x47060c;return _0x188ca2[_0x19617d('0x1ba2')](_0x19617d('0x20bf'))?null:_0xa29ee4[_0x19617d('0x898')]('userProfile@get',{'fields':_0x19617d('0x8d3'),'id':_0x188ca2['getCurrentUser']()[_0x19617d('0x1e76')]});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x5a7761,_0x24c35e){const _0x208054=_0x47060c;return _0x24c35e['hasRole']('admin')?null:_0x5a7761['resolve']('userProfileSection@get',{'fields':_0x208054('0x1134'),'userProfileId':_0x24c35e[_0x208054('0x2831')]()[_0x208054('0x1e76')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')](_0x47060c('0xccf'),{'url':_0x47060c('0x2370'),'params':{'trunk':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x42021a,'controller':_0x47060c('0x1303')}},'resolve':{'trunk':[_0x47060c('0x177'),_0x47060c('0x118b'),function(_0x5155e9,_0x4233ad){const _0x176645=_0x47060c;return _0x5155e9[_0x176645('0x898')](_0x176645('0x1bbc'),{'fields':_0x176645('0x10cf'),'id':_0x4233ad['id']});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0xf5a343,_0x4b69b7){const _0x3003ab=_0x47060c;return _0xf5a343[_0x3003ab('0x898')](_0x3003ab('0x23e7'),{'fields':_0x3003ab('0x1134'),'userProfileId':_0x4b69b7[_0x3003ab('0x2831')]()[_0x3003ab('0x1e76')],'sectionId':0x3f3});}]},'authenticate':!![],'permissionId':0x3f3,'bodyClass':_0x47060c('0x238f')})[_0x47060c('0x1b9a')]('app.tools.variables',{'url':_0x47060c('0x1ba6'),'views':{'content@app':{'templateUrl':_0x143a0b,'controller':_0x47060c('0x1c94')}},'resolve':{'variables':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x4d1c14,_0x364be6){const _0x52c174=_0x47060c;return _0x364be6[_0x52c174('0x1ba2')]('admin')?_0x4d1c14[_0x52c174('0x898')](_0x52c174('0x2568'),{'fields':_0x52c174('0x142d'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x4d1c14[_0x52c174('0x898')]('userProfile@getResources',{'id':_0x364be6[_0x52c174('0x2831')]()[_0x52c174('0x1e76')],'section':_0x52c174('0x1044'),'fields':_0x52c174('0x142d'),'sort':_0x52c174('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x12cae1,_0x15b8cf){const _0xafb18=_0x47060c;return _0x15b8cf[_0xafb18('0x1ba2')]('admin')?null:_0x12cae1[_0xafb18('0x898')](_0xafb18('0x235d'),{'fields':_0xafb18('0x8d3'),'id':_0x15b8cf['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x47060c('0x177'),_0x47060c('0x1885'),function(_0x58df2c,_0x31befa){const _0x27092b=_0x47060c;return _0x31befa[_0x27092b('0x1ba2')]('admin')?null:_0x58df2c[_0x27092b('0x898')](_0x27092b('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x31befa[_0x27092b('0x2831')]()[_0x27092b('0x1e76')],'sectionId':0x3f4});}]},'authenticate':!![],'permissionId':0x3f4,'bodyClass':_0x47060c('0x238f')}),_0x9b8b6a['addPart']('app/main/apps/tools');}angular[_0x4376d8('0x11c4')](_0x4376d8('0xee7'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),'ckeditor',_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),'mdPickers',_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),'chart.js',_0x4376d8('0x178b'),_0x4376d8('0x1cb1'),_0x4376d8('0x2065')])[_0x4376d8('0x1980')](_0x5a8196)[_0x4376d8('0x5ce')](_0x4376d8('0x1832'),_0x4fbf1c)[_0x4376d8('0x5ce')](_0x4376d8('0x182e'),_0x59f0ac)[_0x4376d8('0x5ce')](_0x4376d8('0xc7d'),_0x1031a3)[_0x4376d8('0x5ce')](_0x4376d8('0x29d'),_0x483a94)[_0x4376d8('0x5ce')](_0x4376d8('0xf40'),_0x2dae98)[_0x4376d8('0x5ce')](_0x4376d8('0x1cb4'),_0x2e7d53)[_0x4376d8('0x5ce')](_0x4376d8('0x52c'),_0x2fdcd4)[_0x4376d8('0x5ce')]('CustomDashboardController',_0x3f8277)[_0x4376d8('0x5ce')]('CreateOrEditIntervalDialogController',_0x16d714)['controller'](_0x4376d8('0xe90'),_0x116c65)['controller'](_0x4376d8('0x1ac2'),_0x48914b)['controller'](_0x4376d8('0x257'),_0x30b8df)[_0x4376d8('0x5ce')](_0x4376d8('0x2125'),_0x4b6154)[_0x4376d8('0x5ce')]('CreateOrEditPauseDialogController',_0x1c87c6)[_0x4376d8('0x5ce')]('PausesController',_0x3e380c)[_0x4376d8('0x5ce')](_0x4376d8('0x1a2f'),_0x61f9c0)[_0x4376d8('0x5ce')](_0x4376d8('0x8b0'),_0x293d91)['controller'](_0x4376d8('0x16d4'),_0x1de609)[_0x4376d8('0x5ce')](_0x4376d8('0xe75'),_0x44aa3d)[_0x4376d8('0x5ce')]('UploadSoundDialogController',_0x48931c)[_0x4376d8('0x5ce')](_0x4376d8('0x1025'),_0x12de44)[_0x4376d8('0x5ce')]('TagsController',_0x1b795c)[_0x4376d8('0x5ce')]('CreateOrEditTemplateDialogController',_0x5a8405)[_0x4376d8('0x5ce')](_0x4376d8('0xe12'),_0x28dc33)[_0x4376d8('0x5ce')](_0x4376d8('0x1708'),_0x4621a7)['controller'](_0x4376d8('0x43a'),_0x46f6e4)[_0x4376d8('0x5ce')](_0x4376d8('0xb5'),_0x47ea78)[_0x4376d8('0x5ce')](_0x4376d8('0x1b97'),_0x48466a)['controller'](_0x4376d8('0x30c'),_0x1b4056)[_0x4376d8('0x5ce')]('VariablesController',_0x58e5ca);const _0x35816d=_0x4cf2bc['p']+_0x4376d8('0x1886'),_0x4da19e=_0x4cf2bc['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/view.html/view.html';_0x14e535['$inject']=['$mdDialog',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x1885'),_0x4376d8('0x108a'),'projects','project','api','openFromEditor',_0x4376d8('0x103e')];function _0x14e535(_0x494448,_0x263373,_0x5f1791,_0x2104ee,_0x38b403,_0x3a0d3d,_0x431a22,_0xdcf0cb,_0x28a192,_0x83d9d9,_0x1e119d){const _0x193c3c=_0x4376d8,_0x59671e=this;_0x59671e['errors']=[],_0x59671e['title']=_0x193c3c('0x6e3'),_0x59671e[_0x193c3c('0x103e')]=_0x1e119d,_0x59671e[_0x193c3c('0x87c')]=angular[_0x193c3c('0x14e5')](_0xdcf0cb),_0x59671e[_0x193c3c('0x2b')]=!![],_0x59671e['projects']=_0x431a22,_0x59671e[_0x193c3c('0x11d6')]=![],_0x59671e[_0x193c3c('0x1591')]=_0x83d9d9;!_0x59671e[_0x193c3c('0x87c')]&&(_0x59671e[_0x193c3c('0x87c')]={'name':'','description':''},_0x59671e[_0x193c3c('0x24d3')]=_0x193c3c('0x25c7'),_0x59671e[_0x193c3c('0x11d6')]=!![]);_0x59671e['addNewProject']=_0x1de855,_0x59671e[_0x193c3c('0xdcc')]=_0x4c46d9,_0x59671e[_0x193c3c('0x1b8')]=_0x57d3c5,_0x59671e[_0x193c3c('0x136e')]=_0x2221dc;function _0x1de855(){const _0x2cd42f=_0x193c3c;_0x59671e['errors']=[],_0x28a192['squareProject'][_0x2cd42f('0x2439')](_0x59671e[_0x2cd42f('0x87c')])[_0x2cd42f('0x1af5')][_0x2cd42f('0x17e7')](function(_0x7d41d3){const _0x5de03d=_0x2cd42f;return _0x28a192[_0x5de03d('0x221e')][_0x5de03d('0xdf3')]({'id':_0x38b403[_0x5de03d('0x2831')]()['id'],'ids':[_0x7d41d3['id']]})['$promise'],_0x7d41d3;})[_0x2cd42f('0x17e7')](function(_0x569821){const _0x43bea2=_0x2cd42f;_0x59671e[_0x43bea2('0x20e0')][_0x43bea2('0x1893')](_0x569821),_0x3a0d3d[_0x43bea2('0x130d')]({'title':_0x43bea2('0x1d4b'),'msg':_0x59671e['project'][_0x43bea2('0x2aa')]?_0x59671e[_0x43bea2('0x87c')][_0x43bea2('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x2221dc(_0x569821),_0x59671e[_0x43bea2('0x1591')]&&(_0x59671e[_0x43bea2('0x2b')]?_0x263373[_0x43bea2('0xd0d')](_0x43bea2('0x1364')+_0x569821['id'],_0x43bea2('0x1c7')):_0x5f1791['go'](_0x43bea2('0x89e'),{'id':_0x569821['id']}));})[_0x2cd42f('0x16df')](function(_0x4b9588){const _0x53a3e0=_0x2cd42f;if(_0x4b9588[_0x53a3e0('0x1457')]&&_0x4b9588[_0x53a3e0('0x1457')][_0x53a3e0('0x73e')]&&_0x4b9588[_0x53a3e0('0x1457')][_0x53a3e0('0x73e')]['length']){_0x59671e['errors']=_0x4b9588[_0x53a3e0('0x1457')][_0x53a3e0('0x73e')]||[{'message':_0x4b9588[_0x53a3e0('0x9b6')](),'type':_0x53a3e0('0x9b7')}];for(let _0x309535=0x0;_0x309535<_0x4b9588[_0x53a3e0('0x1457')][_0x53a3e0('0x73e')]['length'];_0x309535++){_0x3a0d3d['error']({'title':_0x4b9588[_0x53a3e0('0x1457')][_0x53a3e0('0x73e')][_0x309535][_0x53a3e0('0x412')],'msg':_0x4b9588[_0x53a3e0('0x1457')]['errors'][_0x309535][_0x53a3e0('0x1603')]});}}else _0x3a0d3d[_0x53a3e0('0x1db9')]({'title':_0x4b9588['status']?_0x53a3e0('0x14f7')+_0x4b9588['status']+_0x53a3e0('0x16e4')+_0x4b9588[_0x53a3e0('0x1833')]:_0x53a3e0('0x9b7'),'msg':_0x4b9588[_0x53a3e0('0x1457')]?JSON[_0x53a3e0('0x678')](_0x4b9588[_0x53a3e0('0x1457')][_0x53a3e0('0x1603')]):_0x4b9588[_0x53a3e0('0x9b6')]()});});}function _0x4c46d9(){const _0x194f8d=_0x193c3c;_0x59671e[_0x194f8d('0x73e')]=[],_0x28a192['squareProject']['update']({'id':_0x59671e[_0x194f8d('0x87c')]['id']},_0x59671e['project'])[_0x194f8d('0x1af5')][_0x194f8d('0x17e7')](function(_0x5d6631){const _0x182cbd=_0x194f8d,_0x4f55aa=_0x49cbdd()[_0x182cbd('0xe8e')](_0x59671e[_0x182cbd('0x20e0')],{'id':_0x5d6631['id']});_0x4f55aa&&_0x49cbdd()['merge'](_0x4f55aa,_0x5d6631),_0x3a0d3d[_0x182cbd('0x130d')]({'title':_0x182cbd('0x28cd'),'msg':_0x59671e['project'][_0x182cbd('0x2aa')]?_0x59671e[_0x182cbd('0x87c')][_0x182cbd('0x2aa')]+_0x182cbd('0x15ca'):''}),_0x2221dc(_0x5d6631);})[_0x194f8d('0x16df')](function(_0x1a0072){const _0x3b8f79=_0x194f8d;if(_0x1a0072[_0x3b8f79('0x1457')]&&_0x1a0072[_0x3b8f79('0x1457')]['errors']&&_0x1a0072[_0x3b8f79('0x1457')][_0x3b8f79('0x73e')][_0x3b8f79('0x1f73')]){_0x59671e[_0x3b8f79('0x73e')]=_0x1a0072[_0x3b8f79('0x1457')][_0x3b8f79('0x73e')]||[{'message':_0x1a0072[_0x3b8f79('0x9b6')](),'type':_0x3b8f79('0x26d4')}];for(let _0x2aae34=0x0;_0x2aae34<_0x1a0072[_0x3b8f79('0x1457')]['errors'][_0x3b8f79('0x1f73')];_0x2aae34++){_0x3a0d3d['error']({'title':_0x1a0072[_0x3b8f79('0x1457')][_0x3b8f79('0x73e')][_0x2aae34][_0x3b8f79('0x412')],'msg':_0x1a0072[_0x3b8f79('0x1457')][_0x3b8f79('0x73e')][_0x2aae34][_0x3b8f79('0x1603')]});}}else _0x3a0d3d[_0x3b8f79('0x1db9')]({'title':_0x1a0072['status']?_0x3b8f79('0x14f7')+_0x1a0072[_0x3b8f79('0x11c5')]+_0x3b8f79('0x16e4')+_0x1a0072[_0x3b8f79('0x1833')]:_0x3b8f79('0x26d4'),'msg':_0x1a0072[_0x3b8f79('0x1457')]?JSON['stringify'](_0x1a0072[_0x3b8f79('0x1457')][_0x3b8f79('0x1603')]):_0x1a0072[_0x3b8f79('0x9b6')]()});});}function _0x57d3c5(){const _0x5968a6=_0x193c3c;_0x59671e['errors']=[];const _0x5bc310=_0x494448[_0x5968a6('0x1121')]()['title'](_0x5968a6('0x530'))[_0x5968a6('0xd5')]('The\x20project\x20will\x20be\x20deleted.')[_0x5968a6('0x2095')](_0x5968a6('0x1349'))['ok'](_0x5968a6('0x304'))[_0x5968a6('0x1d47')](_0x5968a6('0x1b70'))[_0x5968a6('0x104f')](event);_0x494448[_0x5968a6('0x28e2')](_0x5bc310)[_0x5968a6('0x17e7')](function(){const _0x2c5568=_0x5968a6;_0x28a192[_0x2c5568('0x1218')][_0x2c5568('0x1da6')]({'id':_0x59671e[_0x2c5568('0x87c')]['id']})[_0x2c5568('0x1af5')][_0x2c5568('0x17e7')](function(){const _0x4eec7a=_0x2c5568;return _0x28a192[_0x4eec7a('0x1218')][_0x4eec7a('0x4d2')]({'id':_0x59671e[_0x4eec7a('0x87c')]['id']})[_0x4eec7a('0x1af5')];})[_0x2c5568('0x17e7')](function(_0x518510){const _0x8f96b9=_0x2c5568,_0xc07486=[],_0x53fc1d=_0x518510[_0x8f96b9('0x2319')];for(let _0x47a432=0x0;_0x47a432<_0x53fc1d['length'];_0x47a432++){_0xc07486['push'](_0x28a192[_0x8f96b9('0x221e')][_0x8f96b9('0x4d5')]({'id':_0x38b403[_0x8f96b9('0x2831')]()['id'],'ids':[_0x59671e[_0x8f96b9('0x87c')]['id']]})[_0x8f96b9('0x1af5')]);}return _0x2104ee[_0x8f96b9('0x1283')](_0xc07486);})['then'](function(){const _0x5be8bd=_0x2c5568;_0x49cbdd()[_0x5be8bd('0x5f3')](_0x59671e[_0x5be8bd('0x20e0')],{'id':_0x59671e['project']['id']}),_0x3a0d3d['success']({'title':_0x5be8bd('0x277c'),'msg':_0x59671e[_0x5be8bd('0x87c')]['name']?_0x59671e[_0x5be8bd('0x87c')][_0x5be8bd('0x2aa')]+'\x20has\x20been\x20deleted!':''}),_0x2221dc(_0x59671e[_0x5be8bd('0x87c')]);})[_0x2c5568('0x16df')](function(_0x1df24c){const _0x3242a9=_0x2c5568;console[_0x3242a9('0x1db9')](_0x1df24c),_0x59671e[_0x3242a9('0x73e')]=_0x1df24c['data']['errors']||[{'message':_0x1df24c[_0x3242a9('0x9b6')](),'type':_0x3242a9('0xab7')}];});},function(){});}function _0x2221dc(_0x5c6d67){_0x494448['hide'](_0x5c6d67);}}const _0x2191ad=_0x14e535;_0xb3fd99[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0xc7b'),_0x4376d8('0x244f'),_0x4376d8('0x5df'),_0x4376d8('0xaa7'),_0x4376d8('0x1f19'),'googleTtsLanguage',_0x4376d8('0x12ed'),_0x4376d8('0x19cb'),_0x4376d8('0x14c4'),'sounds',_0x4376d8('0xd26'),'databases',_0x4376d8('0x20e0'),_0x4376d8('0xfb3'),'intervals','mailAccounts',_0x4376d8('0x143e'),_0x4376d8('0x2504'),_0x4376d8('0x12e5'),'saveCallback',_0x4376d8('0x13e6'),_0x4376d8('0x24eb'),_0x4376d8('0x35e'),_0x4376d8('0x1492'),_0x4376d8('0x405'),_0x4376d8('0x333'),_0x4376d8('0x6b4'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0xb3fd99(_0x46cabc,_0x51b7c7,_0x1a6a64,_0x2fab87,_0x40d814,_0x2eceb1,_0x42d92a,_0x4b3380,_0x4b2e1c,_0x3a0c56,_0x12d413,_0x10eb2c,_0x54fd84,_0x276c69,_0x1fa1ef,_0x2f9bee,_0x4059f9,_0x3eda8b,_0x4e3f44,_0x57844e,_0x334e05,_0x5355d6,_0x50deb2,_0x136c17,_0x2de3cb,_0x69f16b,_0xa6f392,_0x18e736,_0x2308bd,_0x11f500,_0x5b7cf0,_0x15711b){const _0x5af68b=_0x4376d8,_0x490d5a=this,_0x35d43e={'playback':['file_id'],'answer':[_0x5af68b('0xd2f')],'menu':['file_id',_0x5af68b('0x280'),_0x5af68b('0x329'),_0x5af68b('0x2223')],'getdigits':[_0x5af68b('0x1013'),_0x5af68b('0xfa3'),_0x5af68b('0x10a5'),_0x5af68b('0x1031'),_0x5af68b('0x2223')],'getsecretdigits':['file_id',_0x5af68b('0xfa3'),_0x5af68b('0x10a5'),_0x5af68b('0x1031'),'hiddendigitsnum','retry'],'vswitch':[_0x5af68b('0xfa3')],'database':[_0x5af68b('0x6e6'),_0x5af68b('0x826')],'ext_dial':[_0x5af68b('0x1e39'),_0x5af68b('0x2154'),_0x5af68b('0xd2f')],'set':[_0x5af68b('0xfa3')],'math':[_0x5af68b('0xfa3')],'gotoc':[_0x5af68b('0x17b3'),_0x5af68b('0x26c3'),_0x5af68b('0x1a6d')],'system':[_0x5af68b('0x1115')],'agi':[_0x5af68b('0x1115')],'gotoif':[_0x5af68b('0xa67')],'saydigits':[_0x5af68b('0x7e5')],'saynumber':[_0x5af68b('0x7b8')],'sayphonetic':[_0x5af68b('0x132f')],'record':[_0x5af68b('0xc89'),_0x5af68b('0xd2f')],'goal':[_0x5af68b('0x258b')],'dial':['sip_id',_0x5af68b('0xd2f')],'queue':[_0x5af68b('0x2f7'),_0x5af68b('0xd2f')],'callback':[_0x5af68b('0x1baf'),_0x5af68b('0x2aa'),_0x5af68b('0x2154'),_0x5af68b('0x2052')],'gotoiftime':[_0x5af68b('0x2064')],'voicemail':['mailbox'],'subproject':[_0x5af68b('0xfb9')],'sendSMS':[_0x5af68b('0x42c'),'to',_0x5af68b('0x676')],'sendMail':[_0x5af68b('0x2499'),'to'],'sendFax':[_0x5af68b('0x2499'),'to',_0x5af68b('0x9c8')],'google_cloud_tts':[_0x5af68b('0x25cb'),'google_cloud_tts_text_type',_0x5af68b('0x132f')],'tts':['text'],'ispeechtts':[_0x5af68b('0x132f'),_0x5af68b('0xdb5'),_0x5af68b('0x1d4a')],'ispeechasr':[_0x5af68b('0xdb5'),'timeout'],'custom_app':[_0x5af68b('0xf84')],'googleasr':[_0x5af68b('0xdb5'),_0x5af68b('0xd2f')],'awspolly':['aws_access_key_id','aws_secret_access_key','text','aws_text_type'],'lumenvoxtts':[_0x5af68b('0x132f')],'sestektts':[_0x5af68b('0x132f')],'lumenvoxasr':['grammar'],'sestekasr':[_0x5af68b('0x1e67')],'tildeasr':[_0x5af68b('0x863'),_0x5af68b('0x1378'),'uri'],'login':[_0x5af68b('0x1ebe')],'pause':[_0x5af68b('0x1ebe'),'pause_id'],'unpause':[_0x5af68b('0x1ebe')],'logout':['findBy'],'dialogflow':[_0x5af68b('0xdb5'),_0x5af68b('0x132f'),_0x5af68b('0x2478')],'awslex':['aws_access_key_id',_0x5af68b('0x15a4'),_0x5af68b('0x1b6'),_0x5af68b('0x497'),_0x5af68b('0x132f')],'sesteknda':[_0x5af68b('0x132f'),_0x5af68b('0x9dc'),'username',_0x5af68b('0xb62'),_0x5af68b('0x152e')],'restapi':[_0x5af68b('0x101e'),_0x5af68b('0x21b7')],'mrcpsynth':['text'],'mrcprecog':[_0x5af68b('0x1e67')],'dialogflowV2':[_0x5af68b('0x1a60'),'client_email',_0x5af68b('0x2765'),_0x5af68b('0x20c7'),'text']},_0x126cfb={'queue':[_0x5af68b('0x1013')],'database':[_0x5af68b('0xfa3')],'pause':['pause_id']},_0x223ebf={'sendMail':['to','cc',_0x5af68b('0x427')],'voicemail':[_0x5af68b('0x25c6')]};_0x490d5a[_0x5af68b('0x251d')]=_0x5355d6['tagName'],_0x490d5a[_0x5af68b('0x13b')]=_0x49cbdd()[_0x5af68b('0x787')](_0x5355d6['attributes'],function(_0x50a420){const _0x30e4fa=_0x5af68b;return{'name':_0x50a420[_0x30e4fa('0x2aa')],'value':_0x50a420[_0x30e4fa('0x175b')],'defaultValue':_0x126cfb[_0x490d5a[_0x30e4fa('0x251d')]]&&_0x49cbdd()[_0x30e4fa('0x24b0')](_0x126cfb[_0x490d5a[_0x30e4fa('0x251d')]],_0x50a420[_0x30e4fa('0x2aa')]),'required':_0x35d43e[_0x490d5a[_0x30e4fa('0x251d')]]&&_0x49cbdd()[_0x30e4fa('0x24b0')](_0x35d43e[_0x490d5a['cellName']],_0x50a420[_0x30e4fa('0x2aa')]),'help':_0x223ebf[_0x490d5a[_0x30e4fa('0x251d')]]&&_0x49cbdd()[_0x30e4fa('0x24b0')](_0x223ebf[_0x490d5a[_0x30e4fa('0x251d')]],_0x50a420['name'])};}),_0x490d5a[_0x5af68b('0xa72')]={'authMethod':[{'value':_0x5af68b('0x3b'),'option':'NO\x20AUTH'},{'value':_0x5af68b('0x1273'),'option':_0x5af68b('0x1070')}],'answer':[{'value':_0x5af68b('0x128f'),'option':_0x5af68b('0x8e3')},{'value':'no','option':'No'}],'ndagenerate_audio':[{'value':0x1,'option':'Yes'},{'value':0x0,'option':'No'}],'ndaactivity_type':[{'value':_0x5af68b('0x1603'),'option':_0x5af68b('0x213')},{'value':'conversationUpdate','option':_0x5af68b('0x1848')},{'value':_0x5af68b('0x1bc4'),'option':_0x5af68b('0x26ee')},{'value':_0x5af68b('0x1047'),'option':_0x5af68b('0x1aa3')}],'hiddendigitspos':[{'value':'first','option':_0x5af68b('0x454')},{'value':_0x5af68b('0x5e8'),'option':'Last'}],'recordingFormat':[{'value':_0x5af68b('0x8f4'),'option':'Wav'},{'value':_0x5af68b('0xbc3'),'option':_0x5af68b('0x10e1')}],'intkey':[{'value':'#','option':'#'},{'value':'*','option':'*'}],'beep':[{'value':_0x5af68b('0x1e79'),'option':_0x5af68b('0x8e3')},{'value':_0x5af68b('0x526'),'option':'No'}],'model':_0x2fab87,'ispeech_asr_language':_0x40d814,'ispeech_tts_language':_0x42d92a,'languageCode':_0x4b3380,'ssmlGender':[{'value':'FEMALE','option':_0x5af68b('0x70')},{'value':_0x5af68b('0x18fe'),'option':'Male'}],'google_tts_language':_0x4b2e1c,'google_asr_language':_0x2eceb1,'google_cloud_tts_text_type':[{'value':_0x5af68b('0x132f'),'option':_0x5af68b('0xa46')},{'value':_0x5af68b('0xf03'),'option':'SSML'}],'aws_polly_region':_0x2de3cb,'aws_polly_voice':_0x136c17,'aws_text_type':[{'value':'text','option':'Text'},{'value':_0x5af68b('0xf03'),'option':_0x5af68b('0x5b2')}],'callback_priority':[{'option':_0x5af68b('0x11ea'),'value':0x4},{'option':_0x5af68b('0xf1e'),'value':0x3},{'option':_0x5af68b('0x1410'),'value':0x2},{'option':_0x5af68b('0xfd2'),'value':0x1},{'option':'Lowest','value':0x0}],'findBy':[{'value':_0x5af68b('0xe3e'),'option':_0x5af68b('0x1e3e')},{'value':_0x5af68b('0x2154'),'option':_0x5af68b('0x101a')},{'value':'mobile','option':_0x5af68b('0x255e')}],'dialogflow_language':_0x18e736,'dialogflowV2_language':_0x2308bd,'aws_lex_region':_0x11f500,'method':[{'value':_0x5af68b('0x1eaf'),'option':_0x5af68b('0x1eaf')},{'value':_0x5af68b('0x1fe7'),'option':'POST'},{'value':_0x5af68b('0x256b'),'option':_0x5af68b('0x256b')},{'value':'DELETE','option':_0x5af68b('0x1e20')}]},_0x490d5a[_0x5af68b('0x103e')]=_0x15711b,_0x490d5a[_0x5af68b('0xdf0')]=_0x55e851,_0x490d5a[_0x5af68b('0x136e')]=_0x16bacd,_0x490d5a[_0x5af68b('0x212d')]=_0x12bdf2;function _0x55e851(){const _0x49663b=_0x5af68b;_0x5b7cf0[_0x49663b('0x1ba2')](_0x49663b('0x20bf'))?_0x3ca585():_0x66749d();}function _0x12bdf2(_0x5e7968,_0x273afa,_0x3d503b,_0x2f141){return _0x49cbdd()['map'](_0x5e7968,function(_0x5d4c1c){const _0x4b9413=a0_0xd29e;return{'value':_0x5d4c1c[_0x273afa],'option':_0x5d4c1c[_0x3d503b],'group':_0x2f141?_0x5d4c1c[_0x2f141]:undefined,'canSelect':typeof _0x5d4c1c[_0x4b9413('0xe5c')]!==_0x4b9413('0xfad')?_0x5d4c1c[_0x4b9413('0xe5c')]:!![]};});}function _0x13c9fe(_0x1c4556,_0x22c0e3,_0x5b1114,_0x47015c){const _0x4ed164=_0x5af68b,_0x15bce3=_0x49cbdd()[_0x4ed164('0x2483')](_0x1c4556,function(_0x369011){return _0x369011[_0x47015c]===null;}),_0x1a5fab=[];return _0x49cbdd()[_0x4ed164('0xccd')](_0x15bce3,function(_0x119bcc){const _0x1c23dc=_0x4ed164;_0x1a5fab[_0x1c23dc('0x269f')]({'value':_0x119bcc[_0x22c0e3],'option':_0x119bcc[_0x5b1114]});const _0x2170b3=_0x49cbdd()[_0x1c23dc('0x2483')](_0x1c4556,function(_0x32100c){return _0x32100c[_0x47015c]===_0x119bcc['id'];});_0x49cbdd()[_0x1c23dc('0xccd')](_0x2170b3,function(_0x1d09e5){const _0x568eb2=_0x1c23dc;_0x1a5fab[_0x568eb2('0x269f')]({'value':_0x1d09e5[_0x22c0e3],'option':_0x568eb2('0x16e4')+_0x1d09e5[_0x5b1114]});});}),_0x1a5fab;}function _0x3ca585(){const _0x297bc5=_0x5af68b,_0x37b64e={'sip_id':_0x12bdf2(_0x3a0c56,'id','fullname','role'),'trunk_name':_0x12bdf2(_0x12d413,_0x297bc5('0x2aa'),_0x297bc5('0x2aa')),'trunk_id':_0x12bdf2(_0x12d413,'id','name'),'queue_id':_0x12bdf2(_0x10eb2c,'id',_0x297bc5('0x2aa')),'file_id':_0x12bdf2(_0x54fd84,'id','name'),'variable_id':_0x12bdf2(_0x276c69,'id',_0x297bc5('0x2aa')),'odbc_id':_0x12bdf2(_0x1fa1ef,'id','name'),'project_id':_0x12bdf2(_0x2f9bee,'id','name'),'context':_0x12bdf2(_0x4059f9,'id',_0x297bc5('0x2aa')),'interval_id':_0x13c9fe(_0x3eda8b,'id',_0x297bc5('0x2aa'),_0x297bc5('0x24a9')),'account_id':_0x12bdf2(_0x4e3f44,'id',_0x297bc5('0x2aa')),'template_id':_0x12bdf2(_0x57844e,'id',_0x297bc5('0x2aa')),'list_id':_0x12bdf2(_0x334e05,'id',_0x297bc5('0x2aa')),'sms_account_id':_0x12bdf2(_0x69f16b,'id','name'),'pause_id':_0x12bdf2(_0xa6f392,'id',_0x297bc5('0x2aa'))},_0x3ae3b8=_0x49cbdd()[_0x297bc5('0x1ced')](_0x490d5a[_0x297bc5('0xa72')],_0x37b64e);_0x490d5a['values']=_0x3ae3b8;}function _0x66749d(){const _0x3f0639=_0x5af68b,_0x13ceea=['sip_id',_0x3f0639('0x1e39'),'trunk_id',_0x3f0639('0x2f7'),_0x3f0639('0x1013'),_0x3f0639('0xfa3'),_0x3f0639('0x6e6'),'project_id',_0x3f0639('0x17b3'),_0x3f0639('0x2064'),_0x3f0639('0x2499'),'template_id','list_id','sms_account_id','pause_id'];for(let _0x3e2d2c=0x0;_0x3e2d2c<_0x490d5a[_0x3f0639('0x13b')][_0x3f0639('0x1f73')];_0x3e2d2c++){if(_0x49cbdd()[_0x3f0639('0x24b0')](_0x13ceea,_0x490d5a[_0x3f0639('0x13b')][_0x3e2d2c]['name']))switch(_0x490d5a[_0x3f0639('0x13b')][_0x3e2d2c][_0x3f0639('0x2aa')]){case _0x3f0639('0x12b6'):_0xc8f26c();break;case _0x3f0639('0x1e39'):_0x1aaae7();break;case _0x3f0639('0x278b'):_0xb1754a();break;case _0x3f0639('0x2f7'):_0xcc26();break;case'file_id':_0x3d7cd5();break;case'variable_id':_0x5ba5cd();break;case'odbc_id':_0x5d855a();break;case _0x3f0639('0xfb9'):_0x5145f7();break;case _0x3f0639('0x17b3'):_0x118e2e();break;case _0x3f0639('0x2064'):_0x47f929();break;case _0x3f0639('0x2499'):_0x4d4276();break;case'template_id':_0x2d2934();break;case'list_id':_0x1e9e2c();break;case'sms_account_id':_0x5d1b91();break;case _0x3f0639('0x1819'):_0xfbfe72();break;}}}function _0xc8f26c(){const _0x33d3c4=_0x5af68b,_0x59f457=Number(_0x49cbdd()['find'](_0x490d5a[_0x33d3c4('0x13b')],{'name':_0x33d3c4('0x12b6')})[_0x33d3c4('0x175b')]),_0x42101e=_0x49cbdd()['some'](_0x3a0c56,{'id':_0x59f457});if(!_0x42101e&&_0x59f457>0x0)return _0x51b7c7[_0x33d3c4('0x221e')][_0x33d3c4('0x1c53')]({'id':_0x59f457,'fields':_0x33d3c4('0xe80')})[_0x33d3c4('0x1af5')][_0x33d3c4('0x17e7')](function(_0x47061e){const _0x5714b8=_0x33d3c4,_0x3f0b95=_0x47061e[_0x5714b8('0x16b2')]();_0x3f0b95[_0x5714b8('0xe5c')]=![],_0x3a0c56[_0x5714b8('0x269f')](_0x3f0b95),_0x490d5a[_0x5714b8('0xa72')][_0x5714b8('0x12b6')]=_0x12bdf2(_0x3a0c56,'id',_0x5714b8('0xea6'),_0x5714b8('0x1085'));})[_0x33d3c4('0x16df')](function(_0x325495){const _0x4a038e=_0x33d3c4;_0x1a6a64[_0x4a038e('0x1db9')]({'title':_0x325495[_0x4a038e('0x11c5')]?_0x4a038e('0x14f7')+_0x325495[_0x4a038e('0x11c5')]+_0x4a038e('0x16e4')+_0x325495[_0x4a038e('0x1833')]:'GET_USER','msg':_0x325495[_0x4a038e('0x1457')]?JSON[_0x4a038e('0x678')](_0x325495[_0x4a038e('0x1457')]['message']):_0x325495[_0x4a038e('0x9b6')]()});});else _0x490d5a['values'][_0x33d3c4('0x12b6')]=_0x12bdf2(_0x3a0c56,'id',_0x33d3c4('0xea6'),_0x33d3c4('0x1085'));}function _0x1e9e2c(){const _0x4082f7=_0x5af68b,_0x1f4587=Number(_0x49cbdd()['find'](_0x490d5a[_0x4082f7('0x13b')],{'name':_0x4082f7('0x1baf')})[_0x4082f7('0x175b')]),_0x323a2f=_0x49cbdd()[_0x4082f7('0x26f8')](_0x334e05,{'id':_0x1f4587});if(!_0x323a2f&&_0x1f4587>0x0)return _0x51b7c7['cmList']['get']({'id':_0x1f4587,'fields':_0x4082f7('0x12d2')})['$promise']['then'](function(_0xc6f033){const _0x5d87e2=_0x4082f7,_0x13a960=_0xc6f033['toJSON']();_0x13a960[_0x5d87e2('0xe5c')]=![],_0x334e05[_0x5d87e2('0x269f')](_0x13a960),_0x490d5a[_0x5d87e2('0xa72')][_0x5d87e2('0x1baf')]=_0x12bdf2(_0x334e05,'id',_0x5d87e2('0x2aa'));})['catch'](function(_0xfbf7bc){const _0x409c89=_0x4082f7;_0x1a6a64[_0x409c89('0x1db9')]({'title':_0xfbf7bc['status']?_0x409c89('0x14f7')+_0xfbf7bc['status']+_0x409c89('0x16e4')+_0xfbf7bc[_0x409c89('0x1833')]:_0x409c89('0x21f0'),'msg':_0xfbf7bc[_0x409c89('0x1457')]?JSON[_0x409c89('0x678')](_0xfbf7bc[_0x409c89('0x1457')]['message']):_0xfbf7bc['toString']()});});else _0x490d5a['values'][_0x4082f7('0x1baf')]=_0x12bdf2(_0x334e05,'id',_0x4082f7('0x2aa'));}function _0xb1754a(){const _0x115243=_0x5af68b,_0x22eece=Number(_0x49cbdd()[_0x115243('0xe8e')](_0x490d5a[_0x115243('0x13b')],{'name':_0x115243('0x278b')})['value']),_0x26ccf7=_0x49cbdd()[_0x115243('0x26f8')](_0x12d413,{'id':_0x22eece});if(!_0x26ccf7&&_0x22eece>0x0)return _0x51b7c7['trunk'][_0x115243('0x1c53')]({'id':_0x22eece,'fields':_0x115243('0x12d2')})[_0x115243('0x1af5')][_0x115243('0x17e7')](function(_0x2ee543){const _0x36a048=_0x115243,_0x200157=_0x2ee543[_0x36a048('0x16b2')]();_0x200157[_0x36a048('0xe5c')]=![],_0x12d413['push'](_0x200157),_0x490d5a[_0x36a048('0xa72')][_0x36a048('0x278b')]=_0x12bdf2(_0x12d413,'id',_0x36a048('0x2aa'));})['catch'](function(_0x26bb2b){const _0x102e65=_0x115243;_0x1a6a64[_0x102e65('0x1db9')]({'title':_0x26bb2b[_0x102e65('0x11c5')]?_0x102e65('0x14f7')+_0x26bb2b[_0x102e65('0x11c5')]+_0x102e65('0x16e4')+_0x26bb2b['statusText']:_0x102e65('0x259a'),'msg':_0x26bb2b['data']?JSON['stringify'](_0x26bb2b['data'][_0x102e65('0x1603')]):_0x26bb2b[_0x102e65('0x9b6')]()});});else _0x490d5a[_0x115243('0xa72')][_0x115243('0x278b')]=_0x12bdf2(_0x12d413,'id',_0x115243('0x2aa'));}function _0x1aaae7(){const _0x583546=_0x5af68b,_0x3afba7=_0x49cbdd()[_0x583546('0xe8e')](_0x490d5a['attributes'],{'name':_0x583546('0x1e39')})['value'],_0x17b265=_0x49cbdd()[_0x583546('0x26f8')](_0x12d413,{'name':_0x3afba7});if(!_0x17b265&&_0x3afba7)return _0x51b7c7[_0x583546('0x252a')][_0x583546('0x1c53')]({'name':_0x3afba7,'fields':_0x583546('0x12d2')})['$promise']['then'](function(_0x4d75f0){const _0x45350a=_0x583546;if(_0x4d75f0['count']>0x0&&_0x4d75f0[_0x45350a('0x2319')][_0x45350a('0x1f73')]>0x0){const _0x69bfb3=_0x4d75f0[_0x45350a('0x2319')][0x0];_0x69bfb3[_0x45350a('0xe5c')]=![],_0x12d413[_0x45350a('0x269f')](_0x69bfb3),_0x490d5a[_0x45350a('0xa72')][_0x45350a('0x1e39')]=_0x12bdf2(_0x12d413,_0x45350a('0x2aa'),_0x45350a('0x2aa'));}})[_0x583546('0x16df')](function(_0x4bb5d4){const _0x4dd0ae=_0x583546;_0x1a6a64['error']({'title':_0x4bb5d4[_0x4dd0ae('0x11c5')]?_0x4dd0ae('0x14f7')+_0x4bb5d4[_0x4dd0ae('0x11c5')]+_0x4dd0ae('0x16e4')+_0x4bb5d4[_0x4dd0ae('0x1833')]:'GET_TRUNK','msg':_0x4bb5d4[_0x4dd0ae('0x1457')]?JSON[_0x4dd0ae('0x678')](_0x4bb5d4['data'][_0x4dd0ae('0x1603')]):_0x4bb5d4[_0x4dd0ae('0x9b6')]()});});else _0x490d5a[_0x583546('0xa72')][_0x583546('0x1e39')]=_0x12bdf2(_0x12d413,_0x583546('0x2aa'),_0x583546('0x2aa'));}function _0xcc26(){const _0x4cef0f=_0x5af68b,_0x5755a8=Number(_0x49cbdd()[_0x4cef0f('0xe8e')](_0x490d5a[_0x4cef0f('0x13b')],{'name':'queue_id'})[_0x4cef0f('0x175b')]),_0x181c31=_0x49cbdd()[_0x4cef0f('0x26f8')](_0x10eb2c,{'id':_0x5755a8});if(!_0x181c31&&_0x5755a8>0x0)return _0x51b7c7[_0x4cef0f('0x1243')][_0x4cef0f('0x1c53')]({'id':_0x5755a8,'fields':_0x4cef0f('0x12d2')})[_0x4cef0f('0x1af5')][_0x4cef0f('0x17e7')](function(_0x257064){const _0x29c076=_0x4cef0f,_0x3c3e92=_0x257064[_0x29c076('0x16b2')]();_0x3c3e92['canSelect']=![],_0x10eb2c[_0x29c076('0x269f')](_0x3c3e92),_0x490d5a['values'][_0x29c076('0x2f7')]=_0x12bdf2(_0x10eb2c,'id',_0x29c076('0x2aa'));})[_0x4cef0f('0x16df')](function(_0x23cfec){const _0x3ef516=_0x4cef0f;_0x1a6a64[_0x3ef516('0x1db9')]({'title':_0x23cfec[_0x3ef516('0x11c5')]?'API:'+_0x23cfec['status']+'\x20-\x20'+_0x23cfec[_0x3ef516('0x1833')]:_0x3ef516('0x1f86'),'msg':_0x23cfec['data']?JSON[_0x3ef516('0x678')](_0x23cfec[_0x3ef516('0x1457')]['message']):_0x23cfec['toString']()});});else _0x490d5a[_0x4cef0f('0xa72')][_0x4cef0f('0x2f7')]=_0x12bdf2(_0x10eb2c,'id','name');}function _0x3d7cd5(){const _0xf7e8cf=_0x5af68b,_0x21f2b5=Number(_0x49cbdd()['find'](_0x490d5a[_0xf7e8cf('0x13b')],{'name':_0xf7e8cf('0x1013')})[_0xf7e8cf('0x175b')]),_0x186117=_0x49cbdd()[_0xf7e8cf('0x26f8')](_0x54fd84,{'id':_0x21f2b5});if(!_0x186117&&_0x21f2b5>0x0)return _0x51b7c7[_0xf7e8cf('0x1f64')][_0xf7e8cf('0x1c53')]({'id':_0x21f2b5,'fields':_0xf7e8cf('0x12d2')})[_0xf7e8cf('0x1af5')]['then'](function(_0x1f37e9){const _0x61f2a=_0xf7e8cf,_0x6ec3f=_0x1f37e9[_0x61f2a('0x16b2')]();_0x6ec3f['canSelect']=![],_0x54fd84[_0x61f2a('0x269f')](_0x6ec3f),_0x490d5a[_0x61f2a('0xa72')][_0x61f2a('0x1013')]=_0x12bdf2(_0x54fd84,'id',_0x61f2a('0x2aa'));})[_0xf7e8cf('0x16df')](function(_0x431d8a){const _0x27d168=_0xf7e8cf;_0x1a6a64[_0x27d168('0x1db9')]({'title':_0x431d8a[_0x27d168('0x11c5')]?_0x27d168('0x14f7')+_0x431d8a['status']+_0x27d168('0x16e4')+_0x431d8a[_0x27d168('0x1833')]:_0x27d168('0x1110'),'msg':_0x431d8a['data']?JSON['stringify'](_0x431d8a[_0x27d168('0x1457')][_0x27d168('0x1603')]):_0x431d8a[_0x27d168('0x9b6')]()});});else _0x490d5a[_0xf7e8cf('0xa72')][_0xf7e8cf('0x1013')]=_0x12bdf2(_0x54fd84,'id',_0xf7e8cf('0x2aa'));}function _0x5ba5cd(){const _0x4a2a64=_0x5af68b,_0x26cbf2=Number(_0x49cbdd()[_0x4a2a64('0xe8e')](_0x490d5a['attributes'],{'name':_0x4a2a64('0xfa3')})['value']),_0x8ea32b=_0x49cbdd()[_0x4a2a64('0x26f8')](_0x276c69,{'id':_0x26cbf2});if(!_0x8ea32b&&_0x26cbf2>0x0)return _0x51b7c7[_0x4a2a64('0xb0a')][_0x4a2a64('0x1c53')]({'id':_0x26cbf2,'fields':_0x4a2a64('0x12d2')})['$promise']['then'](function(_0x3986cd){const _0x1dc498=_0x4a2a64,_0x41b84c=_0x3986cd[_0x1dc498('0x16b2')]();_0x41b84c[_0x1dc498('0xe5c')]=![],_0x276c69[_0x1dc498('0x269f')](_0x41b84c),_0x490d5a['values'][_0x1dc498('0xfa3')]=_0x12bdf2(_0x276c69,'id',_0x1dc498('0x2aa'));})[_0x4a2a64('0x16df')](function(_0x28aa7b){const _0x5aedbf=_0x4a2a64;_0x1a6a64[_0x5aedbf('0x1db9')]({'title':_0x28aa7b[_0x5aedbf('0x11c5')]?_0x5aedbf('0x14f7')+_0x28aa7b[_0x5aedbf('0x11c5')]+_0x5aedbf('0x16e4')+_0x28aa7b[_0x5aedbf('0x1833')]:'GET_VARIABLE','msg':_0x28aa7b[_0x5aedbf('0x1457')]?JSON[_0x5aedbf('0x678')](_0x28aa7b[_0x5aedbf('0x1457')]['message']):_0x28aa7b[_0x5aedbf('0x9b6')]()});});else _0x490d5a[_0x4a2a64('0xa72')]['variable_id']=_0x12bdf2(_0x276c69,'id',_0x4a2a64('0x2aa'));}function _0x5d855a(){const _0x3985c3=_0x5af68b,_0x25ad1d=Number(_0x49cbdd()[_0x3985c3('0xe8e')](_0x490d5a[_0x3985c3('0x13b')],{'name':_0x3985c3('0x6e6')})['value']),_0xe31636=_0x49cbdd()[_0x3985c3('0x26f8')](_0x1fa1ef,{'id':_0x25ad1d});if(!_0xe31636&&_0x25ad1d>0x0)return _0x51b7c7[_0x3985c3('0x153c')][_0x3985c3('0x1c53')]({'id':_0x25ad1d,'fields':'id,name'})[_0x3985c3('0x1af5')][_0x3985c3('0x17e7')](function(_0x359c6e){const _0x1615d3=_0x3985c3,_0x4b2576=_0x359c6e[_0x1615d3('0x16b2')]();_0x4b2576[_0x1615d3('0xe5c')]=![],_0x1fa1ef['push'](_0x4b2576),_0x490d5a[_0x1615d3('0xa72')][_0x1615d3('0x6e6')]=_0x12bdf2(_0x1fa1ef,'id',_0x1615d3('0x2aa'));})[_0x3985c3('0x16df')](function(_0x2ed740){const _0x35be4a=_0x3985c3;_0x1a6a64['error']({'title':_0x2ed740[_0x35be4a('0x11c5')]?_0x35be4a('0x14f7')+_0x2ed740[_0x35be4a('0x11c5')]+_0x35be4a('0x16e4')+_0x2ed740[_0x35be4a('0x1833')]:'GET_ODBC','msg':_0x2ed740[_0x35be4a('0x1457')]?JSON[_0x35be4a('0x678')](_0x2ed740[_0x35be4a('0x1457')][_0x35be4a('0x1603')]):_0x2ed740[_0x35be4a('0x9b6')]()});});else _0x490d5a[_0x3985c3('0xa72')][_0x3985c3('0x6e6')]=_0x12bdf2(_0x1fa1ef,'id','name');}function _0x5145f7(){const _0x4836ab=_0x5af68b,_0x563f4f=Number(_0x49cbdd()['find'](_0x490d5a[_0x4836ab('0x13b')],{'name':'project_id'})['value']),_0x3b849c=_0x49cbdd()['some'](_0x2f9bee,{'id':_0x563f4f});if(!_0x3b849c&&_0x563f4f>0x0)return _0x51b7c7['squareProject'][_0x4836ab('0x1c53')]({'id':_0x563f4f,'fields':_0x4836ab('0x12d2')})[_0x4836ab('0x1af5')][_0x4836ab('0x17e7')](function(_0x395590){const _0x1a492e=_0x4836ab,_0x1fb311=_0x395590[_0x1a492e('0x16b2')]();_0x1fb311[_0x1a492e('0xe5c')]=![],_0x2f9bee['push'](_0x1fb311),_0x490d5a[_0x1a492e('0xa72')]['project_id']=_0x12bdf2(_0x2f9bee,'id','name');})['catch'](function(_0x3edba6){const _0xd602e=_0x4836ab;_0x1a6a64[_0xd602e('0x1db9')]({'title':_0x3edba6[_0xd602e('0x11c5')]?_0xd602e('0x14f7')+_0x3edba6['status']+_0xd602e('0x16e4')+_0x3edba6[_0xd602e('0x1833')]:_0xd602e('0x2213'),'msg':_0x3edba6[_0xd602e('0x1457')]?JSON[_0xd602e('0x678')](_0x3edba6[_0xd602e('0x1457')][_0xd602e('0x1603')]):_0x3edba6[_0xd602e('0x9b6')]()});});else _0x490d5a[_0x4836ab('0xa72')][_0x4836ab('0xfb9')]=_0x12bdf2(_0x2f9bee,'id',_0x4836ab('0x2aa'));}function _0x118e2e(){const _0x16e30a=_0x5af68b,_0x367bc0=Number(_0x49cbdd()[_0x16e30a('0xe8e')](_0x490d5a[_0x16e30a('0x13b')],{'name':'context'})[_0x16e30a('0x175b')]),_0x5d8698=_0x49cbdd()[_0x16e30a('0x26f8')](_0x4059f9,{'id':_0x367bc0});if(!_0x5d8698&&_0x367bc0>0x0)return _0x51b7c7[_0x16e30a('0xc76')][_0x16e30a('0x1c53')]({'id':_0x367bc0,'fields':_0x16e30a('0x12d2')})['$promise']['then'](function(_0x37f87b){const _0x42d607=_0x16e30a,_0x43187c=_0x37f87b[_0x42d607('0x16b2')]();_0x43187c[_0x42d607('0xe5c')]=![],_0x4059f9[_0x42d607('0x269f')](_0x43187c),_0x490d5a['values']['context']=_0x12bdf2(_0x4059f9,'id',_0x42d607('0x2aa'));})['catch'](function(_0x4a3940){const _0x132043=_0x16e30a;_0x1a6a64[_0x132043('0x1db9')]({'title':_0x4a3940[_0x132043('0x11c5')]?_0x132043('0x14f7')+_0x4a3940['status']+'\x20-\x20'+_0x4a3940[_0x132043('0x1833')]:_0x132043('0xf76'),'msg':_0x4a3940[_0x132043('0x1457')]?JSON[_0x132043('0x678')](_0x4a3940[_0x132043('0x1457')][_0x132043('0x1603')]):_0x4a3940[_0x132043('0x9b6')]()});});else _0x490d5a[_0x16e30a('0xa72')][_0x16e30a('0x17b3')]=_0x12bdf2(_0x4059f9,'id',_0x16e30a('0x2aa'));}function _0x47f929(){const _0x53eb58=_0x5af68b,_0x416396=Number(_0x49cbdd()['find'](_0x490d5a[_0x53eb58('0x13b')],{'name':'interval_id'})['value']),_0x1f2fb3=_0x49cbdd()[_0x53eb58('0x26f8')](_0x3eda8b,{'id':_0x416396});if(!_0x1f2fb3&&_0x416396>0x0)return _0x51b7c7[_0x53eb58('0x231f')][_0x53eb58('0x1c53')]({'id':_0x416396,'fields':_0x53eb58('0x18bf')})[_0x53eb58('0x1af5')][_0x53eb58('0x17e7')](function(_0x3e2f96){const _0x1f793c=_0x53eb58,_0xc5fd61=_0x3e2f96['toJSON']();_0xc5fd61[_0x1f793c('0xe5c')]=![],_0x3eda8b['push'](_0xc5fd61),_0x490d5a[_0x1f793c('0xa72')][_0x1f793c('0x2064')]=_0x12bdf2(_0x3eda8b,'id',_0x1f793c('0x2aa'),_0x1f793c('0x24a9'));})[_0x53eb58('0x16df')](function(_0x521e90){const _0x3c8d14=_0x53eb58;_0x1a6a64[_0x3c8d14('0x1db9')]({'title':_0x521e90[_0x3c8d14('0x11c5')]?_0x3c8d14('0x14f7')+_0x521e90[_0x3c8d14('0x11c5')]+_0x3c8d14('0x16e4')+_0x521e90['statusText']:'GET_INTERVAL','msg':_0x521e90[_0x3c8d14('0x1457')]?JSON[_0x3c8d14('0x678')](_0x521e90[_0x3c8d14('0x1457')]['message']):_0x521e90[_0x3c8d14('0x9b6')]()});});else _0x490d5a[_0x53eb58('0xa72')]['interval_id']=_0x12bdf2(_0x3eda8b,'id',_0x53eb58('0x2aa'),'IntervalId');}function _0x4d4276(){const _0x581fec=_0x5af68b,_0x4eaa6e=Number(_0x49cbdd()[_0x581fec('0xe8e')](_0x490d5a[_0x581fec('0x13b')],{'name':_0x581fec('0x2499')})[_0x581fec('0x175b')]),_0x3d8a23=_0x49cbdd()[_0x581fec('0x26f8')](_0x4e3f44,{'id':_0x4eaa6e});if(!_0x3d8a23&&_0x4eaa6e>0x0)return _0x51b7c7[_0x581fec('0x127b')][_0x581fec('0x1c53')]({'id':_0x4eaa6e,'fields':_0x581fec('0x12d2')})[_0x581fec('0x1af5')][_0x581fec('0x17e7')](function(_0x5bc0a6){const _0x1e0e92=_0x581fec,_0x5c3e47=_0x5bc0a6[_0x1e0e92('0x16b2')]();_0x5c3e47[_0x1e0e92('0xe5c')]=![],_0x4e3f44[_0x1e0e92('0x269f')](_0x5c3e47),_0x490d5a[_0x1e0e92('0xa72')]['account_id']=_0x12bdf2(_0x4e3f44,'id','name');})['catch'](function(_0x4a1503){const _0x47ffa7=_0x581fec;_0x1a6a64[_0x47ffa7('0x1db9')]({'title':_0x4a1503[_0x47ffa7('0x11c5')]?_0x47ffa7('0x14f7')+_0x4a1503[_0x47ffa7('0x11c5')]+'\x20-\x20'+_0x4a1503[_0x47ffa7('0x1833')]:_0x47ffa7('0x48e'),'msg':_0x4a1503[_0x47ffa7('0x1457')]?JSON[_0x47ffa7('0x678')](_0x4a1503[_0x47ffa7('0x1457')][_0x47ffa7('0x1603')]):_0x4a1503['toString']()});});else _0x490d5a[_0x581fec('0xa72')][_0x581fec('0x2499')]=_0x12bdf2(_0x4e3f44,'id',_0x581fec('0x2aa'));}function _0x5d1b91(){const _0x6f995d=_0x5af68b,_0x5468d3=Number(_0x49cbdd()[_0x6f995d('0xe8e')](_0x490d5a[_0x6f995d('0x13b')],{'name':'sms_account_id'})[_0x6f995d('0x175b')]),_0x10b01=_0x49cbdd()[_0x6f995d('0x26f8')](_0x69f16b,{'id':_0x5468d3});if(!_0x10b01&&_0x5468d3>0x0)return _0x51b7c7[_0x6f995d('0x1060')]['get']({'id':_0x5468d3,'fields':'id,name'})[_0x6f995d('0x1af5')]['then'](function(_0x34a0ff){const _0x28b77e=_0x6f995d,_0x1f0c91=_0x34a0ff[_0x28b77e('0x16b2')]();_0x1f0c91[_0x28b77e('0xe5c')]=![],_0x69f16b[_0x28b77e('0x269f')](_0x1f0c91),_0x490d5a[_0x28b77e('0xa72')][_0x28b77e('0x42c')]=_0x12bdf2(_0x69f16b,'id',_0x28b77e('0x2aa'));})['catch'](function(_0x149f02){const _0x17f42f=_0x6f995d;_0x1a6a64[_0x17f42f('0x1db9')]({'title':_0x149f02[_0x17f42f('0x11c5')]?_0x17f42f('0x14f7')+_0x149f02[_0x17f42f('0x11c5')]+_0x17f42f('0x16e4')+_0x149f02[_0x17f42f('0x1833')]:'GET_SMS_ACCOUNT','msg':_0x149f02[_0x17f42f('0x1457')]?JSON['stringify'](_0x149f02['data'][_0x17f42f('0x1603')]):_0x149f02[_0x17f42f('0x9b6')]()});});else _0x490d5a[_0x6f995d('0xa72')]['sms_account_id']=_0x12bdf2(_0x69f16b,'id',_0x6f995d('0x2aa'));}function _0x2d2934(){const _0x388f8f=_0x5af68b,_0x46a0d2=Number(_0x49cbdd()['find'](_0x490d5a[_0x388f8f('0x13b')],{'name':'template_id'})[_0x388f8f('0x175b')]),_0x1fb652=_0x49cbdd()[_0x388f8f('0x26f8')](_0x57844e,{'id':_0x46a0d2});if(!_0x1fb652&&_0x46a0d2>0x0)return _0x51b7c7['template'][_0x388f8f('0x1c53')]({'id':_0x46a0d2,'fields':_0x388f8f('0x12d2')})['$promise'][_0x388f8f('0x17e7')](function(_0x14973e){const _0x3f3ab5=_0x388f8f,_0x2a4a79=_0x14973e['toJSON']();_0x2a4a79[_0x3f3ab5('0xe5c')]=![],_0x57844e['push'](_0x2a4a79),_0x490d5a[_0x3f3ab5('0xa72')][_0x3f3ab5('0x286')]=_0x12bdf2(_0x57844e,'id',_0x3f3ab5('0x2aa'));})[_0x388f8f('0x16df')](function(_0x462386){const _0x49bfad=_0x388f8f;_0x1a6a64['error']({'title':_0x462386[_0x49bfad('0x11c5')]?_0x49bfad('0x14f7')+_0x462386[_0x49bfad('0x11c5')]+_0x49bfad('0x16e4')+_0x462386[_0x49bfad('0x1833')]:_0x49bfad('0x2788'),'msg':_0x462386[_0x49bfad('0x1457')]?JSON['stringify'](_0x462386[_0x49bfad('0x1457')][_0x49bfad('0x1603')]):_0x462386['toString']()});});else _0x490d5a['values'][_0x388f8f('0x286')]=_0x12bdf2(_0x57844e,'id',_0x388f8f('0x2aa'));}function _0xfbfe72(){const _0x43c6b0=_0x5af68b,_0x2414db=Number(_0x49cbdd()[_0x43c6b0('0xe8e')](_0x490d5a[_0x43c6b0('0x13b')],{'name':_0x43c6b0('0x1819')})[_0x43c6b0('0x175b')]),_0xd781e0=_0x49cbdd()[_0x43c6b0('0x26f8')](_0xa6f392,{'id':_0x2414db});if(!_0xd781e0&&_0x2414db>0x0)return _0x51b7c7[_0x43c6b0('0x267a')][_0x43c6b0('0x1c53')]({'id':_0x2414db,'fields':_0x43c6b0('0x12d2')})[_0x43c6b0('0x1af5')][_0x43c6b0('0x17e7')](function(_0x5852e2){const _0x1a5024=_0x43c6b0,_0x1aa905=_0x5852e2[_0x1a5024('0x16b2')]();_0x1aa905[_0x1a5024('0xe5c')]=![],_0xa6f392[_0x1a5024('0x269f')](_0x1aa905),_0x490d5a['values'][_0x1a5024('0x1819')]=_0x12bdf2(_0xa6f392,'id',_0x1a5024('0x2aa'));})['catch'](function(_0x38eaee){const _0xac69b=_0x43c6b0;_0x1a6a64[_0xac69b('0x1db9')]({'title':_0x38eaee['status']?_0xac69b('0x14f7')+_0x38eaee[_0xac69b('0x11c5')]+_0xac69b('0x16e4')+_0x38eaee[_0xac69b('0x1833')]:'GET_PAUSE','msg':_0x38eaee['data']?JSON[_0xac69b('0x678')](_0x38eaee['data'][_0xac69b('0x1603')]):_0x38eaee[_0xac69b('0x9b6')]()});});else _0x490d5a['values'][_0x43c6b0('0x1819')]=_0x12bdf2(_0xa6f392,'id',_0x43c6b0('0x2aa'));}function _0x16bacd(_0x554809){const _0x39dab8=_0x5af68b;_0x554809&&_0x50deb2(_0x490d5a[_0x39dab8('0x13b')]),_0x46cabc[_0x39dab8('0x212a')]();}}const _0x154983=_0xb3fd99;function _0xd7e8f6(){const _0x3aa2bf=_0x4376d8;return{'require':_0x3aa2bf('0x1e2'),'link':function(_0x1a2b74,_0x5e257e,_0x12f47d,_0x2fbc39){const _0x3753c2=_0x3aa2bf;_0x2fbc39[_0x3753c2('0x2010')][_0x3753c2('0x269f')](function(_0x420989){return''+_0x420989;}),_0x2fbc39[_0x3753c2('0x18a9')][_0x3753c2('0x269f')](function(_0x450b30){return parseFloat(_0x450b30);});}};}const _0x33707b=_0xd7e8f6;function _0x1ff138(){const _0x5ca9a3=_0x4376d8;return[{'value':'da','option':_0x5ca9a3('0x6db')},{'value':'en','option':_0x5ca9a3('0x14d0')},{'value':'de','option':_0x5ca9a3('0x1b82')},{'value':'it','option':_0x5ca9a3('0x2536')},{'value':'es','option':'Spanish'},{'value':'fr','option':_0x5ca9a3('0x1a76')},{'value':'id','option':_0x5ca9a3('0xcc2')},{'value':'ja','option':_0x5ca9a3('0x1f37')},{'value':'ko','option':_0x5ca9a3('0x19a7')},{'value':'nl','option':_0x5ca9a3('0x28cb')},{'value':'no','option':'Norwegian'},{'value':'pt','option':_0x5ca9a3('0x4cd')},{'value':_0x5ca9a3('0x279f'),'option':_0x5ca9a3('0x22e8')},{'value':'ru','option':_0x5ca9a3('0x991')},{'value':'sv','option':_0x5ca9a3('0x1198')},{'value':'th','option':_0x5ca9a3('0x47d')},{'value':'uk','option':_0x5ca9a3('0x1f20')},{'value':_0x5ca9a3('0x1740'),'option':_0x5ca9a3('0x14b1')},{'value':'zh-HK','option':_0x5ca9a3('0xac5')},{'value':_0x5ca9a3('0x1da3'),'option':'Chinese\x20(Traditional)'}];}function _0x4af1c5(){const _0x4e1d06=_0x4376d8;return[{'value':_0x4e1d06('0xc24'),'option':_0x4e1d06('0x121')},{'value':_0x4e1d06('0x1740'),'option':_0x4e1d06('0x14b1')},{'value':_0x4e1d06('0x1da3'),'option':_0x4e1d06('0x561')},{'value':'da','option':_0x4e1d06('0x6db')},{'value':'nl','option':_0x4e1d06('0x28cb')},{'value':'en','option':_0x4e1d06('0x14d0')},{'value':_0x4e1d06('0xa1c'),'option':_0x4e1d06('0x86e')},{'value':'en-CA','option':_0x4e1d06('0x2566')},{'value':_0x4e1d06('0x3d6'),'option':_0x4e1d06('0x198b')},{'value':'en-IN','option':_0x4e1d06('0x1b61')},{'value':'en-US','option':_0x4e1d06('0x1a71')},{'value':'fr','option':_0x4e1d06('0x1a76')},{'value':_0x4e1d06('0x1ad0'),'option':_0x4e1d06('0x2713')},{'value':_0x4e1d06('0x1a4b'),'option':_0x4e1d06('0x21e9')},{'value':'de','option':'German'},{'value':'hi','option':_0x4e1d06('0x232b')},{'value':'id','option':'Indonesian'},{'value':'it','option':_0x4e1d06('0x2536')},{'value':'ja','option':'Japanese'},{'value':'ko','option':_0x4e1d06('0x16ad')},{'value':'no','option':'Norwegian'},{'value':'pl','option':'Polish'},{'value':_0x4e1d06('0xfc'),'option':_0x4e1d06('0x592')},{'value':'pt-PT','option':_0x4e1d06('0x94c')},{'value':'ru','option':_0x4e1d06('0x991')},{'value':'es','option':'Spanish'},{'value':'es-419','option':_0x4e1d06('0x1b64')},{'value':_0x4e1d06('0x975'),'option':_0x4e1d06('0x124b')},{'value':'sw','option':_0x4e1d06('0x1198')},{'value':'th','option':'Thai'},{'value':'tr','option':_0x4e1d06('0x14d2')},{'value':'uk','option':'Ukrainian'}];}function _0x4139f0(){const _0x521a18=_0x4376d8;return[{'value':_0x521a18('0xc35'),'option':_0x521a18('0x1dd6')},{'value':'cs-CZ','option':_0x521a18('0x1538')},{'value':'da-DK','option':'Danish\x20(Denmark)'},{'value':'de-DE','option':_0x521a18('0xd8f')},{'value':_0x521a18('0x228c'),'option':_0x521a18('0x1bb')},{'value':'en-AU','option':_0x521a18('0x16ac')},{'value':_0x521a18('0x144'),'option':_0x521a18('0x1b61')},{'value':_0x521a18('0x3d6'),'option':_0x521a18('0x2df')},{'value':_0x521a18('0xcb0'),'option':_0x521a18('0x1a71')},{'value':_0x521a18('0xef5'),'option':_0x521a18('0x2755')},{'value':_0x521a18('0x119e'),'option':'Filipino\x20(Philippines)'},{'value':_0x521a18('0x1ad0'),'option':_0x521a18('0x2713')},{'value':'fr-FR','option':_0x521a18('0x12b7')},{'value':_0x521a18('0x95'),'option':'Hindi\x20(India)'},{'value':_0x521a18('0x2097'),'option':_0x521a18('0x234c')},{'value':_0x521a18('0xaf6'),'option':_0x521a18('0x10bc')},{'value':_0x521a18('0xfe3'),'option':_0x521a18('0x15d5')},{'value':_0x521a18('0x1e6'),'option':_0x521a18('0x1ab1')},{'value':_0x521a18('0x10c2'),'option':_0x521a18('0x19a7')},{'value':'cmn-CN','option':'Mandarin\x20Chinese'},{'value':_0x521a18('0x2855'),'option':'Norwegian\x20(Norway)'},{'value':_0x521a18('0x6d0'),'option':_0x521a18('0x8bc')},{'value':_0x521a18('0xfc'),'option':'Portuguese\x20(Brazil)'},{'value':_0x521a18('0x26fb'),'option':_0x521a18('0x94c')},{'value':_0x521a18('0x2266'),'option':_0x521a18('0xe7d')},{'value':_0x521a18('0x2547'),'option':'Slovak\x20(Slovakia)'},{'value':_0x521a18('0x975'),'option':_0x521a18('0x124b')},{'value':_0x521a18('0x28e6'),'option':_0x521a18('0x9f7')},{'value':_0x521a18('0x1976'),'option':_0x521a18('0x642')},{'value':_0x521a18('0xe6a'),'option':_0x521a18('0x2350')},{'value':_0x521a18('0xf65'),'option':'Vietnamese\x20(Vietnam)'}];}function _0x458cda(){const _0x5cd9c5=_0x4376d8;return[{'value':'af','option':_0x5cd9c5('0x1484')},{'value':'sq','option':'Albanian'},{'value':'am','option':_0x5cd9c5('0x192b')},{'value':'ar','option':_0x5cd9c5('0x1dd6')},{'value':'hy','option':_0x5cd9c5('0x1db2')},{'value':'az','option':_0x5cd9c5('0x2859')},{'value':'eu','option':_0x5cd9c5('0x7e0')},{'value':'be','option':_0x5cd9c5('0x21c8')},{'value':'bn','option':_0x5cd9c5('0x24dd')},{'value':'bh','option':_0x5cd9c5('0x23ba')},{'value':'bs','option':'Bosnian'},{'value':'br','option':_0x5cd9c5('0x1036')},{'value':'bg','option':_0x5cd9c5('0x15cd')},{'value':'km','option':_0x5cd9c5('0x1395')},{'value':'ca','option':_0x5cd9c5('0x20d7')},{'value':_0x5cd9c5('0x1740'),'option':_0x5cd9c5('0x14b1')},{'value':_0x5cd9c5('0x1da3'),'option':'Chinese\x20(Traditional)'},{'value':'co','option':_0x5cd9c5('0x223a')},{'value':'hr','option':'Croatian'},{'value':'cs','option':_0x5cd9c5('0x1c67')},{'value':'da','option':_0x5cd9c5('0x6db')},{'value':'nl','option':_0x5cd9c5('0x28cb')},{'value':'en','option':_0x5cd9c5('0x14d0')},{'value':'eo','option':_0x5cd9c5('0xd5d')},{'value':'et','option':_0x5cd9c5('0xd63')},{'value':'fo','option':_0x5cd9c5('0x6c6')},{'value':'tl','option':_0x5cd9c5('0x1246')},{'value':'fi','option':_0x5cd9c5('0x255a')},{'value':'fr','option':_0x5cd9c5('0x1a76')},{'value':'fy','option':'Frisian'},{'value':'gl','option':_0x5cd9c5('0x2434')},{'value':'ka','option':_0x5cd9c5('0x956')},{'value':'de','option':_0x5cd9c5('0x1b82')},{'value':'el','option':_0x5cd9c5('0x4c5')},{'value':'gn','option':_0x5cd9c5('0x2674')},{'value':'gu','option':_0x5cd9c5('0x5d')},{'value':_0x5cd9c5('0x1171'),'option':_0x5cd9c5('0xba1')},{'value':'ha','option':_0x5cd9c5('0x199')},{'value':'iw','option':'Hebrew'},{'value':'hi','option':'Hindi'},{'value':'hu','option':_0x5cd9c5('0x13de')},{'value':'is','option':_0x5cd9c5('0x2841')},{'value':'id','option':'Indonesian'},{'value':'ia','option':'Interlingua'},{'value':'ga','option':_0x5cd9c5('0x22ca')},{'value':'it','option':'Italian'},{'value':'jw','option':_0x5cd9c5('0xb35')},{'value':'ja','option':_0x5cd9c5('0x1f37')},{'value':'kn','option':_0x5cd9c5('0x1f6f')},{'value':'kk','option':'Kazakh'},{'value':'rw','option':_0x5cd9c5('0xde4')},{'value':'rn','option':'Kirundi'},{'value':'xx-klingon','option':_0x5cd9c5('0x1d19')},{'value':'ku','option':'Kurdish'},{'value':'ko','option':_0x5cd9c5('0x16ad')},{'value':'ky','option':_0x5cd9c5('0x255')},{'value':'lo','option':'Laothian'},{'value':'la','option':_0x5cd9c5('0x1b35')},{'value':'lv','option':_0x5cd9c5('0x47e')},{'value':'ln','option':'Lingala'},{'value':'lt','option':_0x5cd9c5('0xc48')},{'value':'mk','option':'Macedonian'},{'value':'mg','option':_0x5cd9c5('0x1cd6')},{'value':'ml','option':_0x5cd9c5('0xa94')},{'value':'mt','option':_0x5cd9c5('0x99c')},{'value':'mi','option':_0x5cd9c5('0x1882')},{'value':'mr','option':'Marathi'},{'value':'mo','option':_0x5cd9c5('0x1e0e')},{'value':'mn','option':_0x5cd9c5('0x2409')},{'value':_0x5cd9c5('0x283f'),'option':_0x5cd9c5('0x2868')},{'value':'ne','option':_0x5cd9c5('0x268')},{'value':'no','option':_0x5cd9c5('0x1534')},{'value':'nn','option':_0x5cd9c5('0x1447')},{'value':'oc','option':_0x5cd9c5('0xdfd')},{'value':'or','option':_0x5cd9c5('0x1c5f')},{'value':'om','option':_0x5cd9c5('0x1437')},{'value':'ps','option':'Pashto'},{'value':'fa','option':_0x5cd9c5('0x1cea')},{'value':'xx-pirate','option':_0x5cd9c5('0x12be')},{'value':'pl','option':'Polish'},{'value':'pt-BR','option':'Portuguese\x20(Brazil)'},{'value':_0x5cd9c5('0x26fb'),'option':_0x5cd9c5('0x94c')},{'value':'pa','option':_0x5cd9c5('0x2194')},{'value':'qu','option':_0x5cd9c5('0x18d7')},{'value':'ro','option':_0x5cd9c5('0x1fc8')},{'value':'rm','option':_0x5cd9c5('0x155b')},{'value':'ru','option':_0x5cd9c5('0x991')},{'value':'gd','option':_0x5cd9c5('0x1559')},{'value':'sr','option':_0x5cd9c5('0x226e')},{'value':'sh','option':_0x5cd9c5('0x1255')},{'value':'st','option':_0x5cd9c5('0x1ffe')},{'value':'sn','option':'Shona'},{'value':'sd','option':_0x5cd9c5('0x393')},{'value':'si','option':_0x5cd9c5('0x155d')},{'value':'sk','option':_0x5cd9c5('0x1a4f')},{'value':'sl','option':_0x5cd9c5('0x101f')},{'value':'so','option':_0x5cd9c5('0x13c2')},{'value':'es','option':_0x5cd9c5('0xf87')},{'value':'su','option':_0x5cd9c5('0x807')},{'value':'sw','option':_0x5cd9c5('0x1536')},{'value':'sv','option':'Swedish'},{'value':'tg','option':_0x5cd9c5('0x1561')},{'value':'ta','option':_0x5cd9c5('0x1f8c')},{'value':'tt','option':_0x5cd9c5('0x1425')},{'value':'te','option':'Telugu'},{'value':'th','option':_0x5cd9c5('0x47d')},{'value':'ti','option':_0x5cd9c5('0x210c')},{'value':'to','option':_0x5cd9c5('0xd24')},{'value':'tr','option':'Turkish'},{'value':'tk','option':_0x5cd9c5('0x61d')},{'value':'tw','option':_0x5cd9c5('0x724')},{'value':'ug','option':_0x5cd9c5('0x288c')},{'value':'uk','option':_0x5cd9c5('0x1f20')},{'value':'ur','option':_0x5cd9c5('0x1154')},{'value':'uz','option':_0x5cd9c5('0x5a1')},{'value':'vi','option':'Vietnamese'},{'value':'cy','option':_0x5cd9c5('0x165d')},{'value':'xh','option':_0x5cd9c5('0x12f0')},{'value':'yi','option':_0x5cd9c5('0xc34')},{'value':'yo','option':_0x5cd9c5('0x3bc')},{'value':'zu','option':_0x5cd9c5('0x1b48')}];}function _0x3706de(){const _0x1739d8=_0x4376d8;return[{'value':'af-ZA','option':_0x1739d8('0x112b')},{'value':_0x1739d8('0x3b5'),'option':_0x1739d8('0x1c9')},{'value':_0x1739d8('0x25eb'),'option':_0x1739d8('0xa0e')},{'value':_0x1739d8('0xdf1'),'option':_0x1739d8('0x28aa')},{'value':'id-ID','option':_0x1739d8('0x10bc')},{'value':_0x1739d8('0x16a6'),'option':_0x1739d8('0x13c8')},{'value':_0x1739d8('0x82d'),'option':'Bengali\x20(Bangladesh)'},{'value':_0x1739d8('0x6af'),'option':_0x1739d8('0xcc6')},{'value':'ca-ES','option':'Catalan\x20(Spain)'},{'value':'cs-CZ','option':_0x1739d8('0x1538')},{'value':'da-DK','option':_0x1739d8('0x2110')},{'value':_0x1739d8('0xe18'),'option':_0x1739d8('0x443')},{'value':_0x1739d8('0xa1c'),'option':_0x1739d8('0x86e')},{'value':_0x1739d8('0x24d0'),'option':'English\x20(Canada)'},{'value':'en-GH','option':'English\x20(Ghana)'},{'value':_0x1739d8('0x3d6'),'option':'English\x20(United\x20Kingdom)'},{'value':_0x1739d8('0x144'),'option':_0x1739d8('0x1b61')},{'value':_0x1739d8('0x3d7'),'option':'English\x20(Ireland)'},{'value':'en-KE','option':_0x1739d8('0x280c')},{'value':_0x1739d8('0x20d5'),'option':_0x1739d8('0x1793')},{'value':'en-NG','option':'English\x20(Nigeria)'},{'value':_0x1739d8('0xb9e'),'option':'English\x20(Philippines)'},{'value':_0x1739d8('0x1de'),'option':_0x1739d8('0x867')},{'value':'en-TZ','option':'English\x20(Tanzania)'},{'value':_0x1739d8('0xcb0'),'option':_0x1739d8('0x1ab8')},{'value':'es-AR','option':'Spanish\x20(Argentina)'},{'value':_0x1739d8('0x14cf'),'option':_0x1739d8('0x41a')},{'value':_0x1739d8('0x7d3'),'option':'Spanish\x20(Chile)'},{'value':'es-CO','option':_0x1739d8('0x14eb')},{'value':_0x1739d8('0x170f'),'option':_0x1739d8('0x681')},{'value':_0x1739d8('0x26e8'),'option':_0x1739d8('0x107e')},{'value':_0x1739d8('0x1ec8'),'option':_0x1739d8('0x19f6')},{'value':_0x1739d8('0x975'),'option':'Spanish\x20(Spain)'},{'value':_0x1739d8('0xeff'),'option':_0x1739d8('0x1926')},{'value':_0x1739d8('0x22a5'),'option':_0x1739d8('0x1a0a')},{'value':_0x1739d8('0x213b'),'option':_0x1739d8('0xfdb')},{'value':_0x1739d8('0x122a'),'option':_0x1739d8('0x206b')},{'value':_0x1739d8('0x5b1'),'option':_0x1739d8('0x1f42')},{'value':'es-PA','option':_0x1739d8('0x1318')},{'value':_0x1739d8('0x11a4'),'option':'Spanish\x20(Paraguay)'},{'value':'es-PE','option':_0x1739d8('0x10ff')},{'value':'es-PR','option':_0x1739d8('0x25d6')},{'value':_0x1739d8('0xce'),'option':_0x1739d8('0x43')},{'value':_0x1739d8('0x1e32'),'option':'Spanish\x20(Uruguay)'},{'value':_0x1739d8('0x277a'),'option':_0x1739d8('0x12b2')},{'value':_0x1739d8('0xe2a'),'option':_0x1739d8('0x2408')},{'value':_0x1739d8('0x119e'),'option':_0x1739d8('0x2067')},{'value':_0x1739d8('0x1ad0'),'option':_0x1739d8('0x2713')},{'value':_0x1739d8('0x1a4b'),'option':_0x1739d8('0x12b7')},{'value':'gl-ES','option':_0x1739d8('0x298')},{'value':'ka-GE','option':'Georgian\x20(Georgia)'},{'value':_0x1739d8('0x150'),'option':_0x1739d8('0x2502')},{'value':'hr-HR','option':'Croatian\x20(Croatia)'},{'value':_0x1739d8('0x1744'),'option':_0x1739d8('0x24e5')},{'value':_0x1739d8('0x134d'),'option':'Icelandic\x20(Iceland)'},{'value':'it-IT','option':_0x1739d8('0x15d5')},{'value':_0x1739d8('0xf90'),'option':_0x1739d8('0x1101')},{'value':_0x1739d8('0xdc7'),'option':'Kannada\x20(India)'},{'value':_0x1739d8('0xcaf'),'option':'Khmer\x20(Cambodia)'},{'value':_0x1739d8('0x775'),'option':_0x1739d8('0x9d9')},{'value':'lv-LV','option':_0x1739d8('0xbe6')},{'value':'lt-LT','option':_0x1739d8('0x1382')},{'value':_0x1739d8('0x2097'),'option':_0x1739d8('0x234c')},{'value':_0x1739d8('0x14c6'),'option':'Malayalam\x20(India)'},{'value':_0x1739d8('0x64a'),'option':_0x1739d8('0x7f4')},{'value':_0x1739d8('0x830'),'option':'Dutch\x20(Netherlands)'},{'value':_0x1739d8('0x1a58'),'option':_0x1739d8('0xeb5')},{'value':'nb-NO','option':_0x1739d8('0x992')},{'value':'pl-PL','option':'Polish\x20(Poland)'},{'value':_0x1739d8('0xfc'),'option':_0x1739d8('0x592')},{'value':_0x1739d8('0x26fb'),'option':'Portuguese\x20(Portugal)'},{'value':_0x1739d8('0x2131'),'option':_0x1739d8('0x114c')},{'value':_0x1739d8('0x155e'),'option':_0x1739d8('0x1293')},{'value':'sk-SK','option':_0x1739d8('0x916')},{'value':_0x1739d8('0x2330'),'option':'Slovenian\x20(Slovenia)'},{'value':_0x1739d8('0xe48'),'option':_0x1739d8('0x6e8')},{'value':_0x1739d8('0x316'),'option':_0x1739d8('0x1a4e')},{'value':_0x1739d8('0xb8e'),'option':'Swahili\x20(Kenya)'},{'value':'fi-FI','option':_0x1739d8('0x2755')},{'value':_0x1739d8('0x28e6'),'option':_0x1739d8('0x9f7')},{'value':_0x1739d8('0x1d50'),'option':_0x1739d8('0x1a09')},{'value':_0x1739d8('0xbb3'),'option':_0x1739d8('0x8a5')},{'value':'ta-LK','option':_0x1739d8('0x16b1')},{'value':'ta-MY','option':_0x1739d8('0x28cc')},{'value':_0x1739d8('0x14b8'),'option':_0x1739d8('0x953')},{'value':_0x1739d8('0xf65'),'option':_0x1739d8('0x18c6')},{'value':'tr-TR','option':_0x1739d8('0x642')},{'value':_0x1739d8('0x1787'),'option':_0x1739d8('0x1416')},{'value':_0x1739d8('0x26d2'),'option':_0x1739d8('0x2326')},{'value':'el-GR','option':_0x1739d8('0x1bb')},{'value':_0x1739d8('0x19eb'),'option':'Bulgarian\x20(Bulgaria)'},{'value':_0x1739d8('0x2266'),'option':'Russian\x20(Russia)'},{'value':_0x1739d8('0x25c9'),'option':'Serbian\x20(Serbia)'},{'value':_0x1739d8('0xe6a'),'option':_0x1739d8('0x2350')},{'value':'he-IL','option':'Hebrew\x20(Israel)'},{'value':_0x1739d8('0x1bcb'),'option':_0x1739d8('0x2627')},{'value':'ar-JO','option':_0x1739d8('0x13e9')},{'value':_0x1739d8('0x978'),'option':_0x1739d8('0x2391')},{'value':_0x1739d8('0x772'),'option':'Arabic\x20(Bahrain)'},{'value':_0x1739d8('0xc55'),'option':'Arabic\x20(Algeria)'},{'value':'ar-SA','option':_0x1739d8('0x288e')},{'value':_0x1739d8('0x2334'),'option':_0x1739d8('0x221f')},{'value':_0x1739d8('0x24a6'),'option':_0x1739d8('0xb92')},{'value':_0x1739d8('0x27b9'),'option':'Arabic\x20(Morocco)'},{'value':_0x1739d8('0x4cc'),'option':'Arabic\x20(Tunisia)'},{'value':_0x1739d8('0x3bf'),'option':_0x1739d8('0x1a11')},{'value':_0x1739d8('0x144a'),'option':_0x1739d8('0x1775')},{'value':_0x1739d8('0xd6'),'option':_0x1739d8('0x53a')},{'value':_0x1739d8('0x13b2'),'option':_0x1739d8('0x1b44')},{'value':_0x1739d8('0x1845'),'option':_0x1739d8('0x26c8')},{'value':_0x1739d8('0x80c'),'option':_0x1739d8('0x1967')},{'value':_0x1739d8('0x95'),'option':_0x1739d8('0x15b1')},{'value':_0x1739d8('0x1dbe'),'option':'Thai\x20(Thailand)'},{'value':_0x1739d8('0x10c2'),'option':_0x1739d8('0x19a7')},{'value':_0x1739d8('0x1315'),'option':_0x1739d8('0xab8')},{'value':_0x1739d8('0x285d'),'option':'Chinese,\x20Cantonese\x20(Traditional,\x20Hong\x20Kong)'},{'value':_0x1739d8('0x1e6'),'option':_0x1739d8('0x1ab1')},{'value':_0x1739d8('0x18cc'),'option':'Chinese,\x20Mandarin\x20(Simplified,\x20Hong\x20Kong)'},{'value':_0x1739d8('0x23dc'),'option':'Chinese,\x20Mandarin\x20(Simplified,\x20China)'}];}function _0x43efa3(){const _0x379a54=_0x4376d8;return[{'value':'usenglishfemale','option':'US\x20English\x20Female'},{'value':_0x379a54('0x244a'),'option':'US\x20English\x20Male'},{'value':_0x379a54('0x24bb'),'option':'UK\x20English\x20Female'},{'value':_0x379a54('0x24f6'),'option':_0x379a54('0xe3a')},{'value':'auenglishfemale','option':_0x379a54('0xcfe')},{'value':_0x379a54('0x1644'),'option':_0x379a54('0xb12')},{'value':_0x379a54('0x1e57'),'option':_0x379a54('0x968')},{'value':_0x379a54('0x54d'),'option':_0x379a54('0x9ef')},{'value':'chchinesemale','option':_0x379a54('0xf82')},{'value':'hkchinesefemale','option':_0x379a54('0x14ae')},{'value':'twchinesefemale','option':_0x379a54('0x25e0')},{'value':_0x379a54('0x6ba'),'option':_0x379a54('0x20a3')},{'value':_0x379a54('0xf23'),'option':_0x379a54('0x2861')},{'value':_0x379a54('0x1097'),'option':_0x379a54('0x73')},{'value':_0x379a54('0xa21'),'option':_0x379a54('0x1eed')},{'value':'caenglishfemale','option':_0x379a54('0x1651')},{'value':_0x379a54('0x805'),'option':_0x379a54('0x2283')},{'value':_0x379a54('0x437'),'option':_0x379a54('0x318')},{'value':_0x379a54('0x16e9'),'option':_0x379a54('0x13e')},{'value':_0x379a54('0x13af'),'option':_0x379a54('0x7cb')},{'value':_0x379a54('0x522'),'option':'European\x20Spanish\x20Female'},{'value':'eurspanishmale','option':_0x379a54('0x11e7')},{'value':'eurcatalanfemale','option':_0x379a54('0x2328')},{'value':_0x379a54('0x1b0a'),'option':_0x379a54('0x1956')},{'value':_0x379a54('0xc56'),'option':'European\x20Danish\x20Female'},{'value':_0x379a54('0x71c'),'option':_0x379a54('0x2860')},{'value':_0x379a54('0x2416'),'option':_0x379a54('0x1e0b')},{'value':_0x379a54('0x125a'),'option':'European\x20French\x20Male'},{'value':_0x379a54('0x13f5'),'option':_0x379a54('0x173e')},{'value':'eurdutchfemale','option':_0x379a54('0xb24')},{'value':_0x379a54('0x550'),'option':_0x379a54('0x130f')},{'value':_0x379a54('0x382'),'option':_0x379a54('0x262c')},{'value':'euritalianmale','option':_0x379a54('0x2798')},{'value':_0x379a54('0xd79'),'option':_0x379a54('0x16e8')},{'value':_0x379a54('0x227d'),'option':_0x379a54('0x122f')},{'value':_0x379a54('0x27cf'),'option':_0x379a54('0xd1e')},{'value':_0x379a54('0x2bf'),'option':'European\x20German\x20Male'},{'value':'rurussianfemale','option':'Russian\x20Female'},{'value':'rurussianmale','option':'Russian\x20Male'},{'value':_0x379a54('0x2592'),'option':_0x379a54('0x18ad')},{'value':_0x379a54('0x1cf3'),'option':'Canadian\x20French\x20Female'},{'value':_0x379a54('0x11bd'),'option':'Canadian\x20French\x20Male'}];}function _0x500d29(){const _0x1b7b20=_0x4376d8;return[{'value':_0x1b7b20('0xcb0'),'option':_0x1b7b20('0x1a71')},{'value':'en-CA','option':_0x1b7b20('0x2566')},{'value':_0x1b7b20('0x3d6'),'option':_0x1b7b20('0x2df')},{'value':_0x1b7b20('0xa1c'),'option':_0x1b7b20('0x86e')},{'value':_0x1b7b20('0x975'),'option':_0x1b7b20('0x124b')},{'value':_0x1b7b20('0x122a'),'option':_0x1b7b20('0x206b')},{'value':_0x1b7b20('0xfe3'),'option':'Italian\x20(Italy)\x20/\x20Finnish\x20(Finland)'},{'value':'fr-FR','option':_0x1b7b20('0x443')},{'value':'fr-CA','option':_0x1b7b20('0x2713')},{'value':_0x1b7b20('0x6d0'),'option':_0x1b7b20('0x8bc')},{'value':_0x1b7b20('0x26fb'),'option':_0x1b7b20('0x94c')},{'value':_0x1b7b20('0x7dd'),'option':'Catalan\x20(Catalan)'},{'value':_0x1b7b20('0x1da3'),'option':'Chinese\x20(Taiwan)'},{'value':_0x1b7b20('0x1fad'),'option':_0x1b7b20('0x2110')},{'value':_0x1b7b20('0x1e6'),'option':_0x1b7b20('0x1ab1')},{'value':_0x1b7b20('0x10c2'),'option':_0x1b7b20('0x1185')},{'value':_0x1b7b20('0x830'),'option':_0x1b7b20('0xd8f')},{'value':_0x1b7b20('0x2855'),'option':_0x1b7b20('0x1495')},{'value':'pt-BR','option':'Portuguese\x20(Brazil)'},{'value':'ru-RU','option':'Russian\x20(Russia)'},{'value':_0x1b7b20('0x28e6'),'option':'Swedish\x20(Sweden)'},{'value':'zh-CN','option':_0x1b7b20('0x194d')},{'value':_0x1b7b20('0xc24'),'option':_0x1b7b20('0xac5')}];}function _0x52628a(){const _0x12f20d=_0x4376d8;return[{'value':'0','option':'Default'},{'value':_0x12f20d('0xbd4'),'option':_0x12f20d('0x2270')},{'value':_0x12f20d('0x1dd1'),'option':_0x12f20d('0x1aa2')},{'value':_0x12f20d('0x812'),'option':_0x12f20d('0x749')},{'value':_0x12f20d('0x20f7'),'option':_0x12f20d('0x111a')},{'value':'numbersto999','option':'Numbers\x20to\x20999'},{'value':_0x12f20d('0x4ec'),'option':_0x12f20d('0x1581')},{'value':_0x12f20d('0x2509'),'option':_0x12f20d('0x1a84')},{'value':_0x12f20d('0x1dd3'),'option':_0x12f20d('0x1042')},{'value':_0x12f20d('0x400'),'option':_0x12f20d('0xdb4')}];}function _0x2511b6(){const _0xc1a58b=_0x4376d8;return[{'value':_0xc1a58b('0x2147'),'option':'Amy\x20(English,\x20British,\x20Female)'},{'value':_0xc1a58b('0x1b6b'),'option':'Astrid\x20(Swedish,\x20Female)'},{'value':'Brian','option':_0xc1a58b('0x1fd7')},{'value':_0xc1a58b('0x20e'),'option':'Carla\x20(Italian,\x20Female)'},{'value':_0xc1a58b('0x27e6'),'option':_0xc1a58b('0x2236')},{'value':_0xc1a58b('0xf3'),'option':_0xc1a58b('0x7fc')},{'value':'Chantal','option':_0xc1a58b('0x1c56')},{'value':_0xc1a58b('0x72c'),'option':_0xc1a58b('0xe57')},{'value':_0xc1a58b('0x1344'),'option':'Cristiano\x20(Portuguese,\x20Male)'},{'value':_0xc1a58b('0x8ba'),'option':_0xc1a58b('0x1c80')},{'value':'Emma','option':_0xc1a58b('0x10ed')},{'value':'Enrique','option':_0xc1a58b('0x38')},{'value':'Ewa','option':_0xc1a58b('0x2c8')},{'value':_0xc1a58b('0x271c'),'option':_0xc1a58b('0x1829')},{'value':_0xc1a58b('0x1c2e'),'option':_0xc1a58b('0x2507')},{'value':'Giorgio','option':_0xc1a58b('0x767')},{'value':_0xc1a58b('0x15c2'),'option':_0xc1a58b('0xafb')},{'value':_0xc1a58b('0x180e'),'option':'Hans\x20(German,\x20Male)'},{'value':_0xc1a58b('0x1d6b'),'option':_0xc1a58b('0x1c2b')},{'value':_0xc1a58b('0x2e9'),'option':'Ivy\x20(English,\x20US,\x20Female)'},{'value':_0xc1a58b('0x32d'),'option':_0xc1a58b('0x1c61')},{'value':'Jan','option':_0xc1a58b('0x186a')},{'value':_0xc1a58b('0x20b1'),'option':_0xc1a58b('0x272e')},{'value':'Joey','option':_0xc1a58b('0x1b6c')},{'value':'Justin','option':_0xc1a58b('0x2464')},{'value':_0xc1a58b('0x5aa'),'option':_0xc1a58b('0x1721')},{'value':_0xc1a58b('0x210e'),'option':'Kendra\x20(English,\x20US,\x20Female)'},{'value':_0xc1a58b('0x1714'),'option':_0xc1a58b('0x2727')},{'value':_0xc1a58b('0x1398'),'option':'Liv\x20(Norwegian,\x20Female)'},{'value':'Lotte','option':_0xc1a58b('0x1d0a')},{'value':_0xc1a58b('0x18d9'),'option':_0xc1a58b('0x95a')},{'value':_0xc1a58b('0x83a'),'option':_0xc1a58b('0x15e8')},{'value':_0xc1a58b('0x264c'),'option':'Marlene\x20(German,\x20Female)'},{'value':_0xc1a58b('0x1030'),'option':_0xc1a58b('0x25af')},{'value':_0xc1a58b('0x177b'),'option':_0xc1a58b('0x34a')},{'value':_0xc1a58b('0x182a'),'option':_0xc1a58b('0x979')},{'value':'Mizuki','option':_0xc1a58b('0x1a5c')},{'value':'Naja','option':'Naja\x20(Danish,\x20Female)'},{'value':'Nicole','option':_0xc1a58b('0x1c01')},{'value':_0xc1a58b('0xd42'),'option':'Penelope\x20(Spanish,\x20US,\x20Female)'},{'value':_0xc1a58b('0x135b'),'option':_0xc1a58b('0x24af')},{'value':'Ricardo','option':_0xc1a58b('0xfa6')},{'value':_0xc1a58b('0x15f5'),'option':_0xc1a58b('0x1c31')},{'value':'Russell','option':_0xc1a58b('0x1580')},{'value':'Salli','option':'Salli\x20(English,\x20US,\x20Female)'},{'value':'Tatyana','option':_0xc1a58b('0x1813')},{'value':_0xc1a58b('0x1c24'),'option':_0xc1a58b('0xec3')}];}function _0x131061(){const _0x5bb956=_0x4376d8;return[{'value':_0x5bb956('0xf85'),'option':'US\x20East\x20(N.\x20Virginia)'},{'value':_0x5bb956('0x504'),'option':_0x5bb956('0x202f')},{'value':'us-west-1','option':_0x5bb956('0x1ac7')},{'value':_0x5bb956('0x18a5'),'option':'US\x20West\x20(Oregon)'},{'value':'ca-central-1','option':_0x5bb956('0x1a1e')},{'value':'eu-west-1','option':'EU\x20(Ireland)'},{'value':'eu-central-1','option':_0x5bb956('0xbf7')},{'value':_0x5bb956('0x554'),'option':'EU\x20(London)'},{'value':'eu-west-3','option':_0x5bb956('0x263c')},{'value':_0x5bb956('0x1c90'),'option':_0x5bb956('0xf00')},{'value':_0x5bb956('0x70f'),'option':_0x5bb956('0x1836')},{'value':_0x5bb956('0x1fd6'),'option':'Asia\x20Pacific\x20(Seoul)'},{'value':'ap-northeast-1','option':_0x5bb956('0x799')},{'value':_0x5bb956('0x28df'),'option':_0x5bb956('0x1ef8')},{'value':_0x5bb956('0x1de6'),'option':'South\x20America\x20(São\x20Paulo)'}];}function _0x528763(){const _0x1aae5e=_0x4376d8;return[{'value':'us-east-1','option':_0x1aae5e('0x22b3')},{'value':_0x1aae5e('0x18a5'),'option':_0x1aae5e('0x1c81')},{'value':_0x1aae5e('0x13ec'),'option':'EU\x20(Ireland)'},{'value':_0x1aae5e('0x70f'),'option':'Asia\x20Pacific\x20(Sydney)'}];}_0x135c70[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x108a'),'currentXML',_0x4376d8('0xcb')];function _0x135c70(_0x5bea31,_0x26a4d7,_0x4d5a6a,_0x56d3a4){const _0x3700ae=_0x4376d8,_0x2c279f=this;_0x2c279f[_0x3700ae('0x87c')]={'preproduction':_0x4d5a6a};function _0xd21089(_0x496374){const _0x1cf634=_0x3700ae;_0x496374?(_0x56d3a4(_0x2c279f['project'][_0x1cf634('0x1719')]),_0x5bea31['hide'](_0x2c279f[_0x1cf634('0x87c')][_0x1cf634('0x1719')])):_0x5bea31['hide']();}_0x2c279f[_0x3700ae('0x136e')]=_0xd21089;}const _0x2083f7=_0x135c70;_0x6af4fa['$inject']=[_0x4376d8('0x14f6'),_0x4376d8('0xcb')];function _0x6af4fa(_0x4dfaca,_0x119a4f){const _0x130544=_0x4376d8,_0x12e03f=this,_0x1f666c=0x5,_0x3539f2=_0x1f666c*0x400*0x400;_0x12e03f[_0x130544('0x73e')]=[],_0x12e03f[_0x130544('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x3539f2,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x12e03f[_0x130544('0xbdf')]={'flow':{}},_0x12e03f[_0x130544('0x1b74')]=![],_0x12e03f[_0x130544('0x136e')]=_0xa0e5db,_0x12e03f[_0x130544('0xb73')]=_0x5e549c;function _0x5e549c(_0x5e7f42){const _0xad73b9=_0x130544;_0x12e03f[_0xad73b9('0x73e')]=[];const _0x1c4cf5=[_0xad73b9('0x14e4')];!_0x49cbdd()[_0xad73b9('0x24b0')](_0x1c4cf5,_0x5e7f42[_0xad73b9('0x11b0')]())&&_0x12e03f[_0xad73b9('0x73e')][_0xad73b9('0x269f')]({'message':_0xad73b9('0x5bc')+_0x5e7f42[_0xad73b9('0x11b0')]()+'\x20is\x20not\x20supported!'});_0x5e7f42[_0xad73b9('0xf04')]>_0x3539f2&&_0x12e03f[_0xad73b9('0x73e')][_0xad73b9('0x269f')]({'message':'The\x20file\x20is\x20too\x20big.\x20The\x20max\x20allowed\x20size\x20is\x20'+_0x1f666c+'MB'});if(!_0x12e03f['errors'][_0xad73b9('0x1f73')]){const _0x3de9d0=new FileReader();_0x3de9d0[_0xad73b9('0x2a1')]=function(_0x1bc0da){const _0x27747e=_0xad73b9;_0xa0e5db(_0x1bc0da[_0x27747e('0x8cf')]['result']);},_0x3de9d0[_0xad73b9('0x5b7')](_0x5e7f42[_0xad73b9('0xc89')]);}}function _0xa0e5db(_0x5c38f0){const _0x272727=_0x130544;_0x5c38f0?(_0x119a4f(_0x5c38f0),_0x4dfaca[_0x272727('0x212a')](_0x5c38f0)):_0x4dfaca[_0x272727('0x212a')]();}}const _0x8d8d07=_0x6af4fa;_0x2058f5[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x108a'),'project',_0x4376d8('0x212e')];function _0x2058f5(_0x4f7cf6,_0x562054,_0xefd809,_0x42f893){const _0x47332a=_0x4376d8,_0x151fbb=this;_0x151fbb[_0x47332a('0x87c')]=_0x49cbdd()['clone'](_0xefd809);function _0x226400(){const _0x46ec05=_0x47332a;_0x151fbb[_0x46ec05('0x73e')]=[],_0x42f893[_0x46ec05('0x1218')][_0x46ec05('0x27ba')]({'id':_0x151fbb[_0x46ec05('0x87c')]['id']},{'notes':_0x151fbb[_0x46ec05('0x87c')][_0x46ec05('0x27cd')],'description':_0x151fbb[_0x46ec05('0x87c')][_0x46ec05('0x986')]})[_0x46ec05('0x1af5')][_0x46ec05('0x17e7')](function(_0x1c4733){const _0x5f05dc=_0x46ec05;_0x562054[_0x5f05dc('0x130d')]({'title':_0x5f05dc('0x251'),'msg':_0x151fbb[_0x5f05dc('0x87c')][_0x5f05dc('0x2aa')]?_0x151fbb[_0x5f05dc('0x87c')][_0x5f05dc('0x2aa')]+_0x5f05dc('0x12b0'):''}),_0x4f7cf6[_0x5f05dc('0x212a')](_0x1c4733);})['catch'](function(_0x9fc8cd){const _0x508218=_0x46ec05;console[_0x508218('0x1db9')](_0x9fc8cd),_0x151fbb[_0x508218('0x73e')]=_0x9fc8cd[_0x508218('0x1457')][_0x508218('0x73e')]||[{'message':_0x9fc8cd[_0x508218('0x9b6')](),'type':_0x508218('0x26d4')}];});}function _0x110db9(){const _0x1b202b=_0x47332a;_0x4f7cf6[_0x1b202b('0x212a')]();}_0x151fbb[_0x47332a('0x136e')]=_0x110db9,_0x151fbb[_0x47332a('0x2439')]=_0x226400;}const _0x23263c=_0x2058f5;_0x3061ad[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x108a'),'projects',_0x4376d8('0x198f'),'$state'];function _0x3061ad(_0x425822,_0x42e2b9,_0x4e67a8,_0x333f83,_0x2b6b0d){const _0xd2a36c=_0x4376d8,_0x1fb169=this;_0x1fb169[_0xd2a36c('0x20e0')]=_0x4e67a8,_0x1fb169['id']='',_0x1fb169[_0xd2a36c('0x2b')]=!![];function _0x64bf05(_0x581b17){const _0x34ffef=_0xd2a36c;_0x1fb169[_0x34ffef('0x73e')]=[],_0x581b17?(_0x425822[_0x34ffef('0x212a')](),_0x1fb169[_0x34ffef('0x2b')]?_0x333f83[_0x34ffef('0xd0d')](_0x34ffef('0x1364')+_0x1fb169['id'],'_blank'):_0x2b6b0d['go'](_0x34ffef('0x89e'),{'id':_0x1fb169['id']})):_0x425822['hide']();}_0x1fb169['closeDialog']=_0x64bf05;}const _0x5dade2=_0x3061ad;_0x23c94a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'project',_0x4376d8('0x20e0'),_0x4376d8('0x28da')];function _0x23c94a(_0x497062,_0x411c28,_0x5e81a2,_0x206d7d,_0x2dd57c,_0x359b5e){const _0x3cad6f=_0x4376d8,_0x50cdc8=this;_0x50cdc8[_0x3cad6f('0x87c')]=_0x206d7d,_0x50cdc8['penalty']=0x0,_0x50cdc8['items']=[],_0x50cdc8[_0x3cad6f('0xc14')]=[],_0x50cdc8[_0x3cad6f('0x136e')]=_0x982ed1,_0x50cdc8['dualMultiselectOptions']={'readOnly':![],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x3cad6f('0x2aa'),'line1':_0x3cad6f('0xea6'),'line2':['name',_0x3cad6f('0xe3e')],'line3':_0x3cad6f('0x122c'),'labelAll':_0x359b5e['instant']('CALLYSQUARE.ALL_USERS'),'labelSelected':_0x359b5e[_0x3cad6f('0x1acc')](_0x3cad6f('0x7e4')),'transferCallback':function(_0x4c1766,_0x298403){const _0x5444cf=_0x3cad6f;_0x5e81a2[_0x5444cf('0x1218')][_0x298403?_0x5444cf('0x605'):_0x5444cf('0x1acd')]({'id':_0x50cdc8[_0x5444cf('0x87c')]['id'],'ids':_0x49cbdd()[_0x5444cf('0x787')](_0x4c1766,'id'),'penalty':_0x50cdc8[_0x5444cf('0x122c')]||0x0})[_0x5444cf('0x1af5')]['then'](function(){const _0x1ef156=_0x5444cf;_0x411c28[_0x1ef156('0x130d')]({'title':_0x1ef156('0xca3')+(_0x298403?_0x1ef156('0x5cd'):_0x1ef156('0x22ea')),'msg':_0x1ef156('0x1372')+(_0x298403?_0x1ef156('0x5cd'):_0x1ef156('0x22ea'))+'!'}),!_0x298403&&_0x1e2340();})[_0x5444cf('0x16df')](function(_0x56f0f7){const _0x94aaa4=_0x5444cf;_0x411c28[_0x94aaa4('0x1db9')]({'title':_0x56f0f7[_0x94aaa4('0x11c5')]?_0x94aaa4('0x14f7')+_0x56f0f7[_0x94aaa4('0x11c5')]+'\x20-\x20'+_0x56f0f7['statusText']:_0x94aaa4('0x21bd'),'msg':_0x56f0f7[_0x94aaa4('0x11c5')]?JSON[_0x94aaa4('0x678')](_0x56f0f7[_0x94aaa4('0x1457')]):_0x56f0f7[_0x94aaa4('0x9b6')]()});});}};function _0x1e2340(){const _0x51f53a=_0x3cad6f;return _0x5e81a2['squareProject'][_0x51f53a('0x4d2')]({'id':_0x50cdc8[_0x51f53a('0x87c')]['id'],'fields':_0x51f53a('0x2022'),'nolimit':!![],'role':'user'})['$promise'][_0x51f53a('0x17e7')](function(_0x271117){const _0x265e6b=_0x51f53a;return _0x50cdc8['selectedItems']=_0x271117[_0x265e6b('0x2319')]?_0x49cbdd()['map'](_0x271117[_0x265e6b('0x2319')],function(_0x267a10){return _0x267a10;}):[],_0x50cdc8[_0x265e6b('0x26f4')][_0x265e6b('0xc14')]=_0x50cdc8[_0x265e6b('0xc14')],_0x5e81a2['user'][_0x265e6b('0x1c53')]({'fields':'id,fullname,name,internal','role':_0x265e6b('0x221e'),'nolimit':!![]})['$promise'];})[_0x51f53a('0x17e7')](function(_0xb41064){const _0x2e272e=_0x51f53a;_0x50cdc8['items']=_0xb41064[_0x2e272e('0x2319')]?_0x49cbdd()[_0x2e272e('0x787')](_0xb41064[_0x2e272e('0x2319')],function(_0x184342){return _0x184342;}):[],_0x50cdc8['dualMultiselectOptions'][_0x2e272e('0x532')]=_0x49cbdd()[_0x2e272e('0x1ada')](_0x50cdc8[_0x2e272e('0x532')],_0x50cdc8[_0x2e272e('0xc14')],'id');})[_0x51f53a('0x16df')](function(_0x147eaf){const _0x4eeb40=_0x51f53a;_0x411c28[_0x4eeb40('0x1db9')]({'title':_0x147eaf[_0x4eeb40('0x11c5')]?'API:'+_0x147eaf[_0x4eeb40('0x11c5')]+'\x20-\x20'+_0x147eaf['statusText']:_0x4eeb40('0xea7'),'msg':_0x147eaf[_0x4eeb40('0x11c5')]?JSON[_0x4eeb40('0x678')](_0x147eaf[_0x4eeb40('0x1457')]):_0x147eaf['toString']()});});}function _0x982ed1(){const _0xd5bf5c=_0x3cad6f;_0x497062[_0xd5bf5c('0x212a')]();}_0x1e2340();}const _0x228fae=_0x23c94a;_0xb53b3c[_0x4376d8('0x1b9c')]=['$mdDialog',_0x4376d8('0x108a'),_0x4376d8('0x87c'),_0x4376d8('0x14fc'),_0x4376d8('0x212e'),_0x4376d8('0x198f'),_0x4376d8('0xc4c')];function _0xb53b3c(_0x3c0ad5,_0x277fe2,_0x43f6b4,_0x43f802,_0x48030d,_0x2b4d95,_0x5c1b18){const _0x22842d=_0x4376d8,_0x1ff21d=this;_0x1ff21d[_0x22842d('0x87c')]=angular[_0x22842d('0x14e5')](_0x43f6b4),_0x1ff21d[_0x22842d('0x87c')]['name']+=_0x22842d('0xb0e'),_0x1ff21d[_0x22842d('0x87c')][_0x22842d('0x1719')]=_0x43f802,_0x1ff21d[_0x22842d('0x2b')]=!![];function _0x562b2e(){const _0x3786bd=_0x22842d;delete _0x1ff21d[_0x3786bd('0x87c')]['id'],_0x48030d['squareProject'][_0x3786bd('0x2439')](_0x1ff21d[_0x3786bd('0x87c')])[_0x3786bd('0x1af5')][_0x3786bd('0x17e7')](function(_0x4586fc){const _0x521dfe=_0x3786bd;_0x277fe2[_0x521dfe('0x130d')]({'title':_0x521dfe('0x1d4b'),'msg':_0x1ff21d[_0x521dfe('0x87c')][_0x521dfe('0x2aa')]?_0x1ff21d[_0x521dfe('0x87c')]['name']+_0x521dfe('0x15a'):''}),_0x3c0ad5[_0x521dfe('0x212a')](_0x4586fc),_0x1ff21d[_0x521dfe('0x2b')]?_0x2b4d95['open'](_0x521dfe('0x1364')+_0x4586fc['id'],_0x521dfe('0x1c7')):_0x5c1b18['go'](_0x521dfe('0x89e'),{'id':_0x4586fc['id']});})[_0x3786bd('0x16df')](function(_0x4f14d9){const _0x231561=_0x3786bd;console['error'](_0x4f14d9),_0x1ff21d[_0x231561('0x73e')]=_0x4f14d9['data']['errors']||[{'message':_0x4f14d9[_0x231561('0x9b6')](),'type':_0x231561('0x9b7')}];});}function _0xfbb83f(){const _0x21f175=_0x22842d;_0x3c0ad5[_0x21f175('0x212a')]();}_0x1ff21d[_0x22842d('0x136e')]=_0xfbb83f,_0x1ff21d['save']=_0x562b2e;}const _0x3e22fd=_0xb53b3c,_0x11267b=_0x4cf2bc['p']+_0x4376d8('0x854'),_0x157ed7=_0x4cf2bc['p']+_0x4376d8('0x1b41'),_0x59cab0=_0x4cf2bc['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/open/open.html/open.html',_0x48c35c=_0x4cf2bc['p']+_0x4376d8('0x1797'),_0x52b1f7=_0x4cf2bc['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/info/info.html/info.html',_0x61965f=_0x4cf2bc['p']+_0x4376d8('0x1dd9'),_0x2d6353=_0x4cf2bc['p']+'src/js/modules/main/apps/callysquare/views/projects/edit/import/import.html/import.html';_0x3f855e[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x26ca'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x87c'),_0x4376d8('0x12ed'),'trunks',_0x4376d8('0x14c4'),_0x4376d8('0x27c4'),_0x4376d8('0xd26'),'databases','contexts',_0x4376d8('0x20e0'),'intervals','mailAccounts',_0x4376d8('0x143e'),_0x4376d8('0x2504'),'smsAccounts',_0x4376d8('0x1492'),_0x4376d8('0x383'),_0x4376d8('0x1885')];const _0x411781=window[_0x4376d8('0x208d')],_0x554ad5=window[_0x4376d8('0xa44')];function _0x3f855e(_0x48d617,_0x2bcf52,_0x58b887,_0x45cf96,_0x8b3bf6,_0x10e9a3,_0x239ee5,_0x55cce0,_0x30dd9a,_0x2f596e,_0x5349fb,_0x52081d,_0x10faf7,_0x4292a3,_0x51a827,_0x1c1a2d,_0x242b32,_0x4396e6,_0xfcd6dc,_0x4dc619,_0x5b131b,_0x4e07bf,_0x1c04d1,_0x51f20c){const _0x577856=_0x4376d8,_0x4afc5c=this;_0x4afc5c[_0x577856('0x197c')]=_0x51f20c[_0x577856('0x2831')](),_0x4afc5c[_0x577856('0x87c')]=_0x55cce0||{},_0x4afc5c['userProfileSection']=_0x1c04d1&&_0x1c04d1[_0x577856('0x335')]==0x1?_0x1c04d1[_0x577856('0x2319')][0x0]:null,_0x4afc5c['crudPermissions']=_0x51f20c[_0x577856('0x17a9')](_0x4afc5c[_0x577856('0x383')]?_0x4afc5c['userProfileSection']['crudPermissions']:null),_0x4afc5c['onInit']=_0x574628,_0x4afc5c['saveOrPublishProject']=_0x7f2a9f,_0x4afc5c[_0x577856('0x27e7')]=_0x3f739a,_0x4afc5c[_0x577856('0x11d6')]=_0x5d7c4e,_0x4afc5c['openProject']=_0x299c79,_0x4afc5c['saveProjectAs']=_0x176d16,_0x4afc5c['newVariable']=_0x59c9a9,_0x4afc5c[_0x577856('0x1a45')]=_0x2e92f6,_0x4afc5c[_0x577856('0x1f5c')]=_0x26adf0,_0x4afc5c[_0x577856('0x177e')]=_0x1c3036,_0x4afc5c['gotoProjects']=_0x22b929;function _0x574628(){const _0x38e2a8=_0x577856,_0x463031=new _0x411781(_0x4afc5c,new _0x554ad5(),document[_0x38e2a8('0x4c2')](_0x38e2a8('0x2596')));_0x463031['openString'](_0x4afc5c[_0x38e2a8('0x87c')][_0x38e2a8('0x1719')],_0x4afc5c['project'][_0x38e2a8('0x2aa')],_0x4afc5c[_0x38e2a8('0x87c')]);}function _0x3f739a(_0xca0fc,_0x5a10f5){const _0x29b069=_0x577856;_0x58b887[_0x29b069('0x28e2')]({'controller':_0x29b069('0x19e2'),'controllerAs':'vm','templateUrl':_0x11267b,'parent':angular[_0x29b069('0x1ce1')](_0x2bcf52['body']),'clickOutsideToClose':!![],'locals':{'users':_0x30dd9a['rows']||[],'trunks':_0x2f596e['rows']||[],'queues':_0x5349fb['rows']||[],'sounds':_0x52081d[_0x29b069('0x2319')]||[],'variables':_0x10faf7[_0x29b069('0x2319')]||[],'databases':_0x4292a3['rows']||[],'contexts':_0x51a827[_0x29b069('0x2319')]||[],'projects':_0x1c1a2d[_0x29b069('0x2319')]||[],'intervals':_0x242b32[_0x29b069('0x2319')]||[],'mailAccounts':_0x4396e6[_0x29b069('0x2319')]||[],'smsAccounts':_0x5b131b[_0x29b069('0x2319')]||[],'pauses':_0x4e07bf[_0x29b069('0x2319')]||[],'templates':_0xfcd6dc['rows']||[],'lists':_0x4dc619[_0x29b069('0x2319')]||[],'cell':_0xca0fc,'saveCallback':_0x5a10f5,'crudPermissions':_0x4afc5c['crudPermissions']}});}function _0x5d7c4e(_0x558dd1){const _0x20e68c=_0x577856;_0x58b887[_0x20e68c('0x28e2')]({'controller':_0x20e68c('0xb3c'),'controllerAs':'vm','templateUrl':_0x157ed7,'parent':angular[_0x20e68c('0x1ce1')](_0x2bcf52[_0x20e68c('0x13aa')]),'clickOutsideToClose':!![],'locals':{'project':_0x558dd1,'projects':_0x1c1a2d['rows'],'openFromEditor':!![],'license':null,'setting':null,'crudPermissions':_0x4afc5c[_0x20e68c('0x103e')]}});}function _0x299c79(){const _0x2b71bb=_0x577856;_0x58b887[_0x2b71bb('0x28e2')]({'controller':'MxGraphOpenProjectController','controllerAs':'vm','templateUrl':_0x59cab0,'parent':angular[_0x2b71bb('0x1ce1')](_0x2bcf52[_0x2b71bb('0x13aa')]),'clickOutsideToClose':!![],'locals':{'projects':_0x1c1a2d[_0x2b71bb('0x2319')]||[]}});}function _0x176d16(_0x5e6aaf){const _0x4ad8fd=_0x577856;_0x58b887[_0x4ad8fd('0x28e2')]({'controller':'MxGraphSaveProjectAsController','controllerAs':'vm','templateUrl':_0x48c35c,'parent':angular[_0x4ad8fd('0x1ce1')](_0x2bcf52['body']),'clickOutsideToClose':!![],'locals':{'project':_0x4afc5c['project'],'currentXML':_0x5e6aaf}})[_0x4ad8fd('0x17e7')](function(_0x35be9f){_0x35be9f&&_0x1c1a2d['rows']['push'](_0x35be9f);});}function _0x245404(){return _0x45cf96(function(_0x2bc2bb,_0x37f53f){const _0x39f6bd=a0_0xd29e;return _0x239ee5[_0x39f6bd('0x383')][_0x39f6bd('0x1c53')]({'userProfileId':_0x4afc5c['currentUser'][_0x39f6bd('0x1e76')],'sectionId':0x3f4})[_0x39f6bd('0x1af5')][_0x39f6bd('0x17e7')](function(_0x5bee2e){const _0x57a0c8=_0x39f6bd,_0x1e1dd4=_0x5bee2e[_0x57a0c8('0x2319')]?_0x5bee2e[_0x57a0c8('0x2319')][0x0]:null,_0x5be4c9=_0x51f20c['parseCrudPermissions'](_0x1e1dd4?_0x1e1dd4[_0x57a0c8('0x103e')]:null);_0x2bc2bb(_0x5be4c9);})[_0x39f6bd('0x16df')](function(_0xbd48c){_0x37f53f(_0xbd48c);});});}function _0x59c9a9(_0x1b2e43){const _0x1fb0a3=_0x577856;return _0x245404()[_0x1fb0a3('0x17e7')](function(_0x12ca9c){const _0x10156b=_0x1fb0a3;_0x12ca9c['canEdit']?_0x58b887[_0x10156b('0x28e2')]({'controller':_0x10156b('0x30c'),'controllerAs':'vm','templateUrl':_0x1b921c,'parent':angular[_0x10156b('0x1ce1')](_0x2bcf52[_0x10156b('0x13aa')]),'clickOutsideToClose':!![],'locals':{'variable':_0x1b2e43,'variables':_0x10faf7['rows'],'license':null,'setting':null,'crudPermissions':_0x12ca9c}}):_0x10e9a3[_0x10156b('0x1178')]({'title':_0x8b3bf6[_0x10156b('0x1acc')](_0x10156b('0x286e')),'msg':_0x8b3bf6['instant'](_0x10156b('0xd17'))});})[_0x1fb0a3('0x16df')](function(_0x14628d){const _0x5d6e06=_0x1fb0a3;_0x10e9a3[_0x5d6e06('0x1db9')]({'title':_0x14628d['status']?'API:'+_0x14628d[_0x5d6e06('0x11c5')]+_0x5d6e06('0x16e4')+_0x14628d[_0x5d6e06('0x1833')]:_0x5d6e06('0x39b'),'msg':_0x14628d[_0x5d6e06('0x1457')]?JSON['stringify'](_0x14628d[_0x5d6e06('0x1457')]):_0x14628d['toString']()});});}function _0x2e92f6(_0x39e77b){const _0x5e922a=_0x577856;_0x58b887[_0x5e922a('0x28e2')]({'controller':_0x5e922a('0x18a1'),'controllerAs':'vm','templateUrl':_0x52b1f7,'parent':angular[_0x5e922a('0x1ce1')](_0x2bcf52[_0x5e922a('0x13aa')]),'targetEvent':_0x39e77b,'clickOutsideToClose':!![],'locals':{'project':_0x4afc5c['project']}})[_0x5e922a('0x17e7')](function(_0x47663f){const _0x229dd3=_0x5e922a;_0x47663f&&_0x49cbdd()[_0x229dd3('0x1ced')](_0x4afc5c[_0x229dd3('0x87c')],_0x47663f);});}function _0x26adf0(_0x514f0a,_0x35f485){const _0x34753c=_0x577856;_0x58b887['show']({'controller':_0x34753c('0x1fb'),'controllerAs':'vm','templateUrl':_0x61965f,'parent':angular[_0x34753c('0x1ce1')](_0x2bcf52[_0x34753c('0x13aa')]),'clickOutsideToClose':!![],'locals':{'currentXML':_0x514f0a,'saveCallback':_0x35f485}})[_0x34753c('0x17e7')](function(_0x3d340f){const _0x32bdc5=_0x34753c;_0x3d340f&&(_0x4afc5c[_0x32bdc5('0x87c')][_0x32bdc5('0x1719')]=_0x3d340f);});}function _0x1c3036(_0x4a995a){const _0x49e8e5=_0x577856;_0x58b887['show']({'controller':_0x49e8e5('0x256f'),'controllerAs':'vm','templateUrl':_0x2d6353,'parent':angular['element'](_0x2bcf52['body']),'clickOutsideToClose':!![],'locals':{'saveCallback':_0x4a995a}})[_0x49e8e5('0x17e7')](function(_0xad762f){const _0x4f5ea3=_0x49e8e5;_0xad762f&&(_0x4afc5c[_0x4f5ea3('0x87c')]['preproduction']=_0xad762f);});}function _0x7f2a9f(_0x1f70e9,_0x42556e){const _0x9239b6=_0x577856,_0x336c6b={'preproduction':_0x1f70e9};_0x42556e&&(_0x336c6b[_0x9239b6('0x1bd1')]=_0x1f70e9),_0x239ee5[_0x9239b6('0x1218')][_0x9239b6('0x27ba')]({'id':_0x4afc5c[_0x9239b6('0x87c')]['id']},_0x336c6b)[_0x9239b6('0x1af5')]['then'](function(_0x5131dd){const _0x397da4=_0x9239b6;_0x10e9a3[_0x397da4('0x130d')]({'title':_0x397da4('0xbca')+(_0x42556e?_0x397da4('0xa27'):_0x397da4('0x51d'))+'!','msg':_0x4afc5c[_0x397da4('0x87c')][_0x397da4('0x2aa')]?_0x4afc5c['project'][_0x397da4('0x2aa')]+'\x20has\x20been\x20'+(_0x42556e?_0x397da4('0xa27'):_0x397da4('0x51d'))+'!':''}),_0x4afc5c[_0x397da4('0x87c')][_0x397da4('0x1719')]=_0x5131dd['preproduction'];})[_0x9239b6('0x16df')](function(_0x434cab){const _0x52baa5=_0x9239b6;_0x10e9a3[_0x52baa5('0x1db9')]({'title':_0x434cab['status']?_0x52baa5('0x14f7')+_0x434cab[_0x52baa5('0x11c5')]+_0x52baa5('0x16e4')+_0x434cab[_0x52baa5('0x1833')]:_0x52baa5('0xd92'),'msg':_0x434cab[_0x52baa5('0x1457')]?JSON[_0x52baa5('0x678')](_0x434cab['data']):_0x434cab[_0x52baa5('0x9b6')]()});});}function _0x22b929(){const _0x1735cd=_0x577856;_0x48d617['go'](_0x1735cd('0x6ce'),{},{'reload':_0x1735cd('0x6ce')});}}const _0x5281f1=_0x3f855e;_0x43f28f['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x20e0'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x43f28f(_0x437a8f,_0x5b2a4d,_0x14102c,_0x4d5cf9,_0x878289,_0x544b36,_0x3d1542,_0x1a0f64,_0x25c7e2,_0x4d58a4,_0x21cd59,_0x2acfd0,_0x20355e){const _0x4651f5=_0x4376d8,_0x552866=this;_0x552866[_0x4651f5('0x197c')]=_0x20355e[_0x4651f5('0x2831')](),_0x552866[_0x4651f5('0x20e0')]=_0x4d5cf9||{'count':0x0,'rows':[]},_0x552866['userProfile']=_0x878289,_0x552866['userProfileSection']=_0x544b36&&_0x544b36['count']==0x1?_0x544b36['rows'][0x0]:null,_0x552866[_0x4651f5('0x103e')]=_0x20355e[_0x4651f5('0x17a9')](_0x552866[_0x4651f5('0x383')]?_0x552866[_0x4651f5('0x383')][_0x4651f5('0x103e')]:null),_0x552866[_0x4651f5('0x23c3')]=_0x4651f5('0x20e0'),_0x552866['listOrder']='',_0x552866[_0x4651f5('0x24e1')]=null,_0x552866[_0x4651f5('0x1bb9')]=[],_0x552866[_0x4651f5('0x826')]={'fields':_0x4651f5('0x1a8d'),'sort':_0x4651f5('0x1ac6'),'limit':0xa,'page':0x1},_0x552866[_0x4651f5('0xcd4')]=_0x1cafb7,_0x552866[_0x4651f5('0xbf4')]=_0x2af218,_0x552866[_0x4651f5('0x130d')]=_0x35e3d4,_0x552866[_0x4651f5('0x131b')]=_0x48b1e8,_0x552866['createOrEditProject']=_0x26ff57,_0x552866[_0x4651f5('0x1b8')]=_0x4c38da,_0x552866[_0x4651f5('0x17c9')]=_0x45819c,_0x552866['deleteSelectedProjects']=_0x5c7d12,_0x552866['deselectProjects']=_0x2de138,_0x552866[_0x4651f5('0x2021')]=_0xb2a500;function _0x1cafb7(_0x55b595){const _0x5caf0b=_0x4651f5;_0x5b2a4d['go'](_0x5caf0b('0x89e'),{'id':_0x55b595['id'],'crudPermissions':_0x552866[_0x5caf0b('0x103e')]});}function _0x2af218(_0x53d21f,_0xa797aa){const _0x2bc777=_0x4651f5,_0x3ece64=_0x25c7e2[_0x2bc777('0x1121')]()[_0x2bc777('0x24d3')](_0x2bc777('0x19a6'))[_0x2bc777('0x211f')](_0x2bc777('0xa53')+_0x53d21f['name']+_0x2bc777('0x1d23')+_0x2bc777('0xe9f'))[_0x2bc777('0x2095')]('delete\x20project')[_0x2bc777('0x104f')](_0xa797aa)['ok']('OK')[_0x2bc777('0x1d47')]('CANCEL');_0x25c7e2[_0x2bc777('0x28e2')](_0x3ece64)[_0x2bc777('0x17e7')](function(){_0x4c38da(_0x53d21f);},function(){const _0x5a1b1b=_0x2bc777;console[_0x5a1b1b('0x1d63')]('CANCEL');});}let _0x3e9f76=!![],_0x5b616e=0x1;_0x437a8f[_0x4651f5('0x620')](_0x4651f5('0x3ed'),function(_0x3d4fd6,_0x1f4efa){const _0x6da85a=_0x4651f5;_0x3e9f76?_0x21cd59(function(){_0x3e9f76=![];}):(!_0x1f4efa&&(_0x5b616e=_0x552866[_0x6da85a('0x826')][_0x6da85a('0x115a')]),_0x3d4fd6!==_0x1f4efa&&(_0x552866[_0x6da85a('0x826')][_0x6da85a('0x115a')]=0x1),!_0x3d4fd6&&(_0x552866[_0x6da85a('0x826')][_0x6da85a('0x115a')]=_0x5b616e),_0x552866[_0x6da85a('0x131b')]());});function _0x35e3d4(_0x2a17b3){const _0x99a0dd=_0x4651f5;_0x552866[_0x99a0dd('0x20e0')]=_0x2a17b3||{'count':0x0,'rows':[]};}function _0x48b1e8(){const _0x22e52f=_0x4651f5;_0x552866[_0x22e52f('0x826')][_0x22e52f('0xf19')]=(_0x552866['query'][_0x22e52f('0x115a')]-0x1)*_0x552866[_0x22e52f('0x826')][_0x22e52f('0x193b')],_0x20355e[_0x22e52f('0x1ba2')](_0x22e52f('0x20bf'))?_0x552866[_0x22e52f('0x1691')]=_0x3d1542[_0x22e52f('0x1218')][_0x22e52f('0x1c53')](_0x552866[_0x22e52f('0x826')],_0x35e3d4)[_0x22e52f('0x1af5')]:(_0x552866['query']['id']=_0x552866[_0x22e52f('0xdeb')]['id'],_0x552866[_0x22e52f('0x826')][_0x22e52f('0x16f8')]=_0x22e52f('0x119a'),_0x552866[_0x22e52f('0x1691')]=_0x3d1542[_0x22e52f('0xdeb')][_0x22e52f('0x2447')](_0x552866[_0x22e52f('0x826')],_0x35e3d4)[_0x22e52f('0x1af5')]);}function _0x26ff57(_0x263ffb,_0x4abbb8){const _0x397ed7=_0x4651f5;_0x25c7e2['show']({'controller':_0x397ed7('0xb3c'),'controllerAs':'vm','templateUrl':_0x157ed7,'parent':angular[_0x397ed7('0x1ce1')](_0x4d58a4[_0x397ed7('0x13aa')]),'targetEvent':_0x263ffb,'clickOutsideToClose':!![],'locals':{'project':_0x4abbb8,'projects':_0x552866[_0x397ed7('0x20e0')][_0x397ed7('0x2319')],'openFromEditor':null,'setting':null,'crudPermissions':_0x552866['crudPermissions']}});}function _0x4c38da(_0x4c235e){const _0x1c2469=_0x4651f5;_0x3d1542[_0x1c2469('0x1218')]['delete']({'id':_0x4c235e['id']})[_0x1c2469('0x1af5')]['then'](function(){const _0x5cbbdc=_0x1c2469;_0x49cbdd()[_0x5cbbdc('0x5f3')](_0x552866[_0x5cbbdc('0x20e0')][_0x5cbbdc('0x2319')],{'id':_0x4c235e['id']}),_0x552866[_0x5cbbdc('0x20e0')]['count']-=0x1,!_0x552866['projects'][_0x5cbbdc('0x2319')][_0x5cbbdc('0x1f73')]&&_0x552866[_0x5cbbdc('0x131b')](),_0x2acfd0[_0x5cbbdc('0x130d')]({'title':_0x5cbbdc('0xa5f'),'msg':_0x4c235e[_0x5cbbdc('0x2aa')]?_0x4c235e[_0x5cbbdc('0x2aa')]+_0x5cbbdc('0x149f'):''});})['catch'](function(_0x26321f){const _0x18c05c=_0x1c2469;if(_0x26321f['data']&&_0x26321f[_0x18c05c('0x1457')][_0x18c05c('0x73e')]&&_0x26321f[_0x18c05c('0x1457')][_0x18c05c('0x73e')][_0x18c05c('0x1f73')]){_0x552866[_0x18c05c('0x73e')]=_0x26321f[_0x18c05c('0x1457')]['errors']||[{'message':_0x26321f['toString'](),'type':_0x18c05c('0x1709')}];for(let _0x3f53cc=0x0;_0x3f53cc<_0x26321f[_0x18c05c('0x1457')][_0x18c05c('0x73e')][_0x18c05c('0x1f73')];_0x3f53cc++){_0x2acfd0[_0x18c05c('0x1db9')]({'title':_0x26321f[_0x18c05c('0x1457')]['errors'][_0x3f53cc][_0x18c05c('0x412')],'msg':_0x26321f['data'][_0x18c05c('0x73e')][_0x3f53cc][_0x18c05c('0x1603')]});}}else _0x2acfd0['error']({'title':_0x26321f[_0x18c05c('0x11c5')]?'API:'+_0x26321f['status']+_0x18c05c('0x16e4')+_0x26321f[_0x18c05c('0x1833')]:_0x18c05c('0x1709'),'msg':_0x26321f[_0x18c05c('0x1457')]?JSON['stringify'](_0x26321f[_0x18c05c('0x1457')]['message']):_0x26321f[_0x18c05c('0x1603')]||_0x26321f['toString']()});});}function _0x45819c(){const _0x323a8e=_0x4651f5,_0x453ca4=angular[_0x323a8e('0x14e5')](_0x552866['selectedProjects']);return _0x552866[_0x323a8e('0x1bb9')]=[],_0x453ca4;}function _0x5c7d12(_0x903877){const _0x43b24d=_0x4651f5,_0x1e3220=_0x25c7e2['confirm']()['title'](_0x43b24d('0x60f'))[_0x43b24d('0x211f')](_0x43b24d('0xa53')+_0x552866[_0x43b24d('0x1bb9')][_0x43b24d('0x1f73')]+'\x20selected
'+_0x43b24d('0xe9f'))[_0x43b24d('0x2095')](_0x43b24d('0x20b6'))[_0x43b24d('0x104f')](_0x903877)['ok']('OK')[_0x43b24d('0x1d47')](_0x43b24d('0x28a0'));_0x25c7e2[_0x43b24d('0x28e2')](_0x1e3220)[_0x43b24d('0x17e7')](function(){const _0x1291fd=_0x43b24d;_0x552866[_0x1291fd('0x1bb9')][_0x1291fd('0xccd')](function(_0x5a2a19){_0x4c38da(_0x5a2a19);}),_0x552866['selectedProjects']=[];});}function _0x2de138(){const _0x492306=_0x4651f5;_0x552866[_0x492306('0x1bb9')]=[];}function _0xb2a500(){const _0x356b5f=_0x4651f5;_0x552866[_0x356b5f('0x1bb9')]=_0x552866['projects'][_0x356b5f('0x2319')];}}const _0x1902f9=_0x43f28f;_0x1d99d4[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x1d99d4(_0x52325f){const _0x2b271a=_0x4376d8;_0x52325f[_0x2b271a('0x1b9a')](_0x2b271a('0x6ce'),{'url':'/projects','views':{'content@app':{'templateUrl':_0x35816d,'controller':'ProjectsController\x20as\x20vm'}},'resolve':{'projects':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x39d00c,_0x4a8933){const _0x45aff7=_0x2b271a;return _0x4a8933[_0x45aff7('0x1ba2')]('admin')?_0x39d00c[_0x45aff7('0x898')]('squareProject@get',{'fields':'id,name,description,notes','sort':_0x45aff7('0x2aa'),'limit':0xa,'offset':0x0}):_0x39d00c['resolve'](_0x45aff7('0x1164'),{'id':_0x4a8933[_0x45aff7('0x2831')]()[_0x45aff7('0x1e76')],'section':'SquareProjects','fields':'id,name,description,notes','sort':_0x45aff7('0x2aa'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x13f632,_0x35c940){const _0x4cf7d9=_0x2b271a;return _0x13f632['resolve']('userProfile@get',{'fields':_0x4cf7d9('0x8d3'),'id':_0x35c940[_0x4cf7d9('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x5ddbee,_0x57beed){const _0x4adabe=_0x2b271a;return _0x5ddbee[_0x4adabe('0x898')](_0x4adabe('0x23e7'),{'fields':_0x4adabe('0x1134'),'userProfileId':_0x57beed[_0x4adabe('0x2831')]()[_0x4adabe('0x1e76')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x2b271a('0x18eb')})[_0x2b271a('0x1b9a')](_0x2b271a('0x89e'),{'url':_0x2b271a('0x1987'),'views':{'content@app':{'templateUrl':_0x4da19e,'controller':_0x2b271a('0x2435')}},'params':{'crudPermissions':undefined},'resolve':{'project':[_0x2b271a('0x177'),_0x2b271a('0x118b'),function(_0x18c8df,_0x171399){const _0x4b56dd=_0x2b271a;return _0x18c8df[_0x4b56dd('0x898')](_0x4b56dd('0x1fb9'),{'id':_0x171399['id']});}],'users':['apiResolver',_0x2b271a('0x1885'),function(_0x3d162b,_0x1d4f6e){const _0x246a26=_0x2b271a;return _0x1d4f6e[_0x246a26('0x1ba2')](_0x246a26('0x20bf'))?_0x3d162b['resolve']('user@get',{'fields':_0x246a26('0xe80'),'sort':_0x246a26('0x2aa'),'nolimit':!![]}):_0x3d162b[_0x246a26('0x898')]('userProfile@getResources',{'id':_0x1d4f6e[_0x246a26('0x2831')]()[_0x246a26('0x1e76')],'section':_0x246a26('0x15d4'),'mergeResources':!![],'fields':_0x246a26('0xe80'),'sort':_0x246a26('0x2aa'),'nolimit':!![]});}],'trunks':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x1e6d01,_0x47f6a6){const _0x45798d=_0x2b271a;return _0x47f6a6[_0x45798d('0x1ba2')](_0x45798d('0x20bf'))?_0x1e6d01[_0x45798d('0x898')]('trunk@get',{'fields':_0x45798d('0x12d2'),'sort':'name','nolimit':!![]}):_0x1e6d01[_0x45798d('0x898')](_0x45798d('0x1164'),{'id':_0x47f6a6[_0x45798d('0x2831')]()['userProfileId'],'section':'Trunks','fields':_0x45798d('0x12d2'),'sort':_0x45798d('0x2aa'),'nolimit':!![]});}],'queues':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x163333,_0x49fa84){const _0x16c041=_0x2b271a;return _0x49fa84[_0x16c041('0x1ba2')](_0x16c041('0x20bf'))?_0x163333[_0x16c041('0x898')](_0x16c041('0xa5a'),{'type':'inbound','fields':_0x16c041('0x12d2'),'sort':_0x16c041('0x2aa'),'nolimit':!![]}):_0x163333[_0x16c041('0x898')]('userProfile@getResources',{'id':_0x49fa84[_0x16c041('0x2831')]()[_0x16c041('0x1e76')],'section':_0x16c041('0x2068'),'type':_0x16c041('0x1e77'),'fields':_0x16c041('0x12d2'),'sort':_0x16c041('0x2aa'),'nolimit':!![]});}],'sounds':['apiResolver',_0x2b271a('0x1885'),function(_0x23df3c,_0x625338){const _0x39a491=_0x2b271a;return _0x625338[_0x39a491('0x1ba2')](_0x39a491('0x20bf'))?_0x23df3c['resolve']('sound@get',{'fields':_0x39a491('0x12d2'),'sort':_0x39a491('0x2aa'),'nolimit':!![]}):_0x23df3c[_0x39a491('0x898')]('userProfile@getResources',{'id':_0x625338[_0x39a491('0x2831')]()[_0x39a491('0x1e76')],'section':_0x39a491('0x18ff'),'fields':_0x39a491('0x12d2'),'sort':_0x39a491('0x2aa'),'nolimit':!![]});}],'variables':['apiResolver','Auth',function(_0x581e4b,_0x1a9b6f){const _0x11d5be=_0x2b271a;return _0x1a9b6f[_0x11d5be('0x1ba2')]('admin')?_0x581e4b[_0x11d5be('0x898')]('variable@get',{'fields':_0x11d5be('0x12d2'),'sort':'name','nolimit':!![]}):_0x581e4b['resolve'](_0x11d5be('0x1164'),{'id':_0x1a9b6f[_0x11d5be('0x2831')]()[_0x11d5be('0x1e76')],'section':'Variables','fields':_0x11d5be('0x12d2'),'sort':'name','nolimit':!![]});}],'databases':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x518f78,_0x2e112c){const _0x4f670a=_0x2b271a;return _0x2e112c[_0x4f670a('0x1ba2')](_0x4f670a('0x20bf'))?_0x518f78[_0x4f670a('0x898')](_0x4f670a('0x245d'),{'fields':_0x4f670a('0x12d2'),'sort':_0x4f670a('0x2aa'),'nolimit':!![]}):_0x518f78[_0x4f670a('0x898')]('userProfile@getResources',{'id':_0x2e112c[_0x4f670a('0x2831')]()['userProfileId'],'section':_0x4f670a('0x16d8'),'fields':_0x4f670a('0x12d2'),'sort':_0x4f670a('0x2aa'),'nolimit':!![]});}],'projects':['apiResolver',_0x2b271a('0x1885'),function(_0x12fff8,_0x14a213){const _0x305978=_0x2b271a;return _0x14a213[_0x305978('0x1ba2')](_0x305978('0x20bf'))?_0x12fff8[_0x305978('0x898')](_0x305978('0x1fb9'),{'fields':_0x305978('0x12d2'),'sort':'name','nolimit':!![]}):_0x12fff8[_0x305978('0x898')](_0x305978('0x1164'),{'id':_0x14a213[_0x305978('0x2831')]()['userProfileId'],'section':'SquareProjects','fields':_0x305978('0x12d2'),'sort':'name','nolimit':!![]});}],'contexts':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x168cd6,_0x250d92){const _0x361d1e=_0x2b271a;return _0x250d92[_0x361d1e('0x1ba2')](_0x361d1e('0x20bf'))?_0x168cd6[_0x361d1e('0x898')](_0x361d1e('0x27a1'),{'fields':'id,name','sort':_0x361d1e('0x2aa'),'nolimit':!![]}):_0x168cd6[_0x361d1e('0x898')](_0x361d1e('0x1164'),{'id':_0x250d92['getCurrentUser']()[_0x361d1e('0x1e76')],'section':_0x361d1e('0xb67'),'fields':'id,name','sort':_0x361d1e('0x2aa'),'nolimit':!![]});}],'intervals':['apiResolver',_0x2b271a('0x1885'),function(_0x43cdf7,_0x29bcdb){const _0x4ea592=_0x2b271a;return _0x29bcdb[_0x4ea592('0x1ba2')](_0x4ea592('0x20bf'))?_0x43cdf7[_0x4ea592('0x898')](_0x4ea592('0x79e'),{'fields':_0x4ea592('0x18bf'),'sort':_0x4ea592('0x2aa'),'nolimit':!![]}):_0x43cdf7[_0x4ea592('0x898')](_0x4ea592('0x1164'),{'id':_0x29bcdb[_0x4ea592('0x2831')]()[_0x4ea592('0x1e76')],'section':_0x4ea592('0xf88'),'fields':'id,name,IntervalId','sort':_0x4ea592('0x2aa'),'nolimit':!![]});}],'mailAccounts':['apiResolver',_0x2b271a('0x1885'),function(_0x373ee8,_0x45759b){const _0x307b8f=_0x2b271a;return _0x45759b[_0x307b8f('0x1ba2')](_0x307b8f('0x20bf'))?_0x373ee8['resolve']('mailAccount@get',{'fields':_0x307b8f('0x12d2'),'sort':_0x307b8f('0x2aa'),'nolimit':!![]}):_0x373ee8[_0x307b8f('0x898')](_0x307b8f('0x1164'),{'id':_0x45759b['getCurrentUser']()[_0x307b8f('0x1e76')],'section':'MailAccounts','fields':_0x307b8f('0x12d2'),'sort':_0x307b8f('0x2aa'),'nolimit':!![]});}],'templates':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x184d62,_0x44f3e4){const _0x4781bf=_0x2b271a;return _0x44f3e4[_0x4781bf('0x1ba2')]('admin')?_0x184d62[_0x4781bf('0x898')](_0x4781bf('0x1417'),{'fields':_0x4781bf('0x12d2'),'sort':'name','nolimit':!![]}):_0x184d62['resolve']('userProfile@getResources',{'id':_0x44f3e4[_0x4781bf('0x2831')]()[_0x4781bf('0x1e76')],'section':'Templates','fields':_0x4781bf('0x12d2'),'sort':_0x4781bf('0x2aa'),'nolimit':!![]});}],'lists':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x50dda3,_0x84b808){const _0x3162e8=_0x2b271a;return _0x84b808['hasRole'](_0x3162e8('0x20bf'))?_0x50dda3['resolve'](_0x3162e8('0x1fd9'),{'fields':_0x3162e8('0x12d2'),'sort':_0x3162e8('0x2aa'),'nolimit':!![]}):_0x50dda3[_0x3162e8('0x898')]('userProfile@getResources',{'id':_0x84b808[_0x3162e8('0x2831')]()[_0x3162e8('0x1e76')],'section':_0x3162e8('0xeee'),'fields':_0x3162e8('0x12d2'),'sort':_0x3162e8('0x2aa'),'nolimit':!![]});}],'smsAccounts':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0xec3632,_0x597817){const _0x111cfc=_0x2b271a;return _0x597817['hasRole'](_0x111cfc('0x20bf'))?_0xec3632[_0x111cfc('0x898')](_0x111cfc('0xef2'),{'fields':_0x111cfc('0x12d2'),'sort':_0x111cfc('0x2aa'),'nolimit':!![]}):_0xec3632[_0x111cfc('0x898')](_0x111cfc('0x1164'),{'id':_0x597817[_0x111cfc('0x2831')]()[_0x111cfc('0x1e76')],'section':_0x111cfc('0x2230'),'fields':_0x111cfc('0x12d2'),'sort':_0x111cfc('0x2aa'),'nolimit':!![]});}],'pauses':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0xe4ae52,_0x124db5){const _0x21743b=_0x2b271a;return _0x124db5['hasRole'](_0x21743b('0x20bf'))?_0xe4ae52[_0x21743b('0x898')]('pause@get',{'fields':_0x21743b('0x12d2'),'sort':_0x21743b('0x2aa'),'nolimit':!![]}):_0xe4ae52[_0x21743b('0x898')](_0x21743b('0x1164'),{'id':_0x124db5['getCurrentUser']()[_0x21743b('0x1e76')],'section':'Pauses','fields':'id,name','sort':_0x21743b('0x2aa'),'nolimit':!![]});}],'userProfileSection':[_0x2b271a('0x177'),_0x2b271a('0x1885'),function(_0x35afe2,_0x1499c6){const _0x24f33c=_0x2b271a;return _0x35afe2[_0x24f33c('0x898')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1499c6[_0x24f33c('0x2831')]()[_0x24f33c('0x1e76')],'sectionId':0x44f});}]},'authenticate':!![],'permissionId':0x44f,'bodyClass':_0x2b271a('0x18eb')});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x6ce'),[])[_0x4376d8('0x1980')](_0x1d99d4)['controller'](_0x4376d8('0xb3c'),_0x2191ad)[_0x4376d8('0x5ce')](_0x4376d8('0x19e2'),_0x154983)[_0x4376d8('0x213d')]('stringToNumber',_0x33707b)['factory'](_0x4376d8('0xc7b'),_0x52628a)[_0x4376d8('0x26a6')](_0x4376d8('0x244f'),_0x500d29)[_0x4376d8('0x26a6')](_0x4376d8('0xaa7'),_0x43efa3)[_0x4376d8('0x26a6')](_0x4376d8('0x1f19'),_0x4139f0)[_0x4376d8('0x26a6')](_0x4376d8('0xdcd'),_0x458cda)[_0x4376d8('0x26a6')](_0x4376d8('0x5df'),_0x3706de)[_0x4376d8('0x26a6')](_0x4376d8('0x13e6'),_0x2511b6)[_0x4376d8('0x26a6')]('awsPollyRegion',_0x131061)[_0x4376d8('0x26a6')](_0x4376d8('0x6b4'),_0x528763)[_0x4376d8('0x26a6')](_0x4376d8('0x405'),_0x1ff138)[_0x4376d8('0x26a6')](_0x4376d8('0x333'),_0x4af1c5)[_0x4376d8('0x5ce')](_0x4376d8('0x1fb'),_0x2083f7)['controller']('MxGraphImportXMLController',_0x8d8d07)['controller']('MxGraphUpdateInfoController',_0x23263c)[_0x4376d8('0x5ce')](_0x4376d8('0x2144'),_0x5dade2)['controller']('ProjectspermissionaddController',_0x228fae)[_0x4376d8('0x5ce')](_0x4376d8('0x1941'),_0x3e22fd)[_0x4376d8('0x5ce')](_0x4376d8('0x16c0'),_0x5281f1)[_0x4376d8('0x5ce')](_0x4376d8('0x1c1b'),_0x1902f9);const _0x12d08e=_0x4cf2bc['p']+_0x4376d8('0x623'),_0x5b095c=_0x4cf2bc['p']+'src/js/modules/main/apps/callysquare/views/squareRecordings/squareRecordings.html/squareRecordings.html';_0x4017f7[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),'odbcs',_0x4376d8('0x1656'),'api','Auth',_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x4017f7(_0x10afbe,_0x945956,_0x15b450,_0x156cd4,_0x1e39dd,_0xe7b8fa,_0x20d333,_0x4e85a6,_0x3a6704,_0x2cff09,_0x3d374b,_0x5c347b,_0x22f3d2,_0x2e4ec1){const _0x17bf54=_0x4376d8,_0x329b73=this;_0x329b73['currentUser']=_0x3d374b['getCurrentUser'](),_0x329b73[_0x17bf54('0x73e')]=[],_0x329b73[_0x17bf54('0x1aeb')]=_0x22f3d2,_0x329b73[_0x17bf54('0x1d11')]=_0x5c347b,_0x329b73['crudPermissions']=_0x2e4ec1,_0x329b73[_0x17bf54('0x6ee')]={},_0x329b73[_0x17bf54('0x1572')]=_0x329b73['setting']&&_0x329b73[_0x17bf54('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x329b73['title']='CALLYSQUARE.EDIT_ODBC',_0x329b73[_0x17bf54('0x1656')]=angular[_0x17bf54('0x14e5')](_0x3a6704),_0x329b73['odbcs']=_0x4e85a6,_0x329b73[_0x17bf54('0x1a53')]=![];!_0x329b73['odbc']&&(_0x329b73[_0x17bf54('0x1656')]={},_0x329b73['title']=_0x17bf54('0x22ec'),_0x329b73['newOdbc']=!![]);_0x329b73[_0x17bf54('0x1ce5')]=_0x821ac7,_0x329b73['saveOdbc']=_0x31103d,_0x329b73[_0x17bf54('0x1078')]=_0x3a991c,_0x329b73[_0x17bf54('0x1300')]=_0x2cc4dd,_0x329b73['closeDialog']=_0x5964b6;function _0x821ac7(){const _0x3d256a=_0x17bf54;_0x329b73['errors']=[],_0x2cff09[_0x3d256a('0x153c')][_0x3d256a('0x2439')](_0x329b73[_0x3d256a('0x1656')])[_0x3d256a('0x1af5')][_0x3d256a('0x17e7')](function(_0x42aa80){const _0x415636=_0x3d256a;_0x329b73['odbcs'][_0x415636('0x1893')](_0x42aa80[_0x415636('0x16b2')]()),_0x20d333['success']({'title':'Odbc\x20properly\x20created','msg':_0x329b73['odbc'][_0x415636('0x2aa')]?_0x329b73[_0x415636('0x1656')]['name']+_0x415636('0x15a'):''}),_0x5964b6(_0x42aa80);})['catch'](function(_0x2b6ee1){const _0x52bc12=_0x3d256a;if(_0x2b6ee1[_0x52bc12('0x1457')]&&_0x2b6ee1[_0x52bc12('0x1457')][_0x52bc12('0x73e')]&&_0x2b6ee1[_0x52bc12('0x1457')][_0x52bc12('0x73e')][_0x52bc12('0x1f73')]){_0x329b73[_0x52bc12('0x73e')]=_0x2b6ee1['data']['errors']||[{'message':_0x2b6ee1['toString'](),'type':_0x52bc12('0x22ce')}];for(let _0x1e2a4d=0x0;_0x1e2a4d<_0x2b6ee1[_0x52bc12('0x1457')][_0x52bc12('0x73e')][_0x52bc12('0x1f73')];_0x1e2a4d+=0x1){_0x20d333['error']({'title':_0x2b6ee1[_0x52bc12('0x1457')][_0x52bc12('0x73e')][_0x1e2a4d][_0x52bc12('0x412')],'msg':_0x2b6ee1['data']['errors'][_0x1e2a4d][_0x52bc12('0x1603')]});}}else _0x20d333[_0x52bc12('0x1db9')]({'title':_0x2b6ee1[_0x52bc12('0x11c5')]?_0x52bc12('0x14f7')+_0x2b6ee1['status']+_0x52bc12('0x16e4')+_0x2b6ee1[_0x52bc12('0x1833')]:_0x52bc12('0x22ce'),'msg':_0x2b6ee1[_0x52bc12('0x1457')]?JSON[_0x52bc12('0x678')](_0x2b6ee1[_0x52bc12('0x1457')][_0x52bc12('0x1603')]):_0x2b6ee1[_0x52bc12('0x9b6')]()});});}function _0x31103d(){const _0x45d86e=_0x17bf54;_0x329b73[_0x45d86e('0x73e')]=[],_0x2cff09['squareOdbc'][_0x45d86e('0x27ba')]({'id':_0x329b73[_0x45d86e('0x1656')]['id']},_0x329b73['odbc'])[_0x45d86e('0x1af5')]['then'](function(_0x4fb964){const _0x21e527=_0x45d86e,_0x4da8d1=_0x49cbdd()[_0x21e527('0xe8e')](_0x329b73[_0x21e527('0xf52')],{'id':_0x4fb964['id']});_0x4da8d1&&_0x49cbdd()[_0x21e527('0x1ced')](_0x4da8d1,_0x49cbdd()['pick'](_0x4fb964[_0x21e527('0x16b2')](),_0x49cbdd()[_0x21e527('0x1c0f')](_0x4da8d1))),_0x20d333['success']({'title':'Odbc\x20properly\x20saved!','msg':_0x329b73['odbc'][_0x21e527('0x2aa')]?_0x329b73[_0x21e527('0x1656')][_0x21e527('0x2aa')]+_0x21e527('0x15ca'):''}),_0x5964b6(_0x4fb964);})[_0x45d86e('0x16df')](function(_0x157cf3){const _0x5e63f3=_0x45d86e;if(_0x157cf3[_0x5e63f3('0x1457')]&&_0x157cf3[_0x5e63f3('0x1457')]['errors']&&_0x157cf3[_0x5e63f3('0x1457')]['errors'][_0x5e63f3('0x1f73')]){_0x329b73['errors']=_0x157cf3[_0x5e63f3('0x1457')][_0x5e63f3('0x73e')]||[{'message':_0x157cf3[_0x5e63f3('0x9b6')](),'type':_0x5e63f3('0x1fe6')}];for(let _0xafbff3=0x0;_0xafbff3<_0x157cf3[_0x5e63f3('0x1457')][_0x5e63f3('0x73e')][_0x5e63f3('0x1f73')];_0xafbff3++){_0x20d333[_0x5e63f3('0x1db9')]({'title':_0x157cf3[_0x5e63f3('0x1457')][_0x5e63f3('0x73e')][_0xafbff3][_0x5e63f3('0x412')],'msg':_0x157cf3['data']['errors'][_0xafbff3]['message']});}}else _0x20d333['error']({'title':_0x157cf3['status']?'API:'+_0x157cf3[_0x5e63f3('0x11c5')]+_0x5e63f3('0x16e4')+_0x157cf3[_0x5e63f3('0x1833')]:'api.squareOdbc.update','msg':_0x157cf3[_0x5e63f3('0x1457')]?JSON[_0x5e63f3('0x678')](_0x157cf3['data'][_0x5e63f3('0x1603')]):_0x157cf3[_0x5e63f3('0x9b6')]()});});}function _0x3a991c(_0x131c6e){const _0x1c3b0e=_0x17bf54;_0x329b73[_0x1c3b0e('0x73e')]=[];const _0x13d241=_0x156cd4[_0x1c3b0e('0x1121')]()[_0x1c3b0e('0x24d3')](_0x1c3b0e('0x530'))[_0x1c3b0e('0xd5')](_0x1c3b0e('0x19a3'))[_0x1c3b0e('0x2095')](_0x1c3b0e('0xa80'))['ok'](_0x1c3b0e('0x304'))[_0x1c3b0e('0x1d47')](_0x1c3b0e('0x1b70'))['targetEvent'](_0x131c6e);_0x156cd4[_0x1c3b0e('0x28e2')](_0x13d241)[_0x1c3b0e('0x17e7')](function(){const _0x5e4401=_0x1c3b0e;_0x2cff09['squareOdbc'][_0x5e4401('0x1da6')]({'id':_0x329b73[_0x5e4401('0x1656')]['id']})['$promise'][_0x5e4401('0x17e7')](function(){const _0x3077aa=_0x5e4401;_0x49cbdd()[_0x3077aa('0x5f3')](_0x329b73[_0x3077aa('0xf52')],{'id':_0x329b73[_0x3077aa('0x1656')]['id']}),_0x20d333['success']({'title':'Odbc\x20properly\x20deleted!','msg':(_0x329b73['odbc'][_0x3077aa('0x2aa')]||_0x3077aa('0x1656'))+'\x20has\x20been\x20deleted!'}),_0x5964b6(_0x329b73[_0x3077aa('0x1656')]);})['catch'](function(_0x3abcfd){const _0x15d94a=_0x5e4401;if(_0x3abcfd[_0x15d94a('0x1457')]&&_0x3abcfd[_0x15d94a('0x1457')][_0x15d94a('0x73e')]&&_0x3abcfd[_0x15d94a('0x1457')][_0x15d94a('0x73e')]['length']){_0x329b73[_0x15d94a('0x73e')]=_0x3abcfd[_0x15d94a('0x1457')][_0x15d94a('0x73e')]||[{'message':_0x3abcfd[_0x15d94a('0x9b6')](),'type':_0x15d94a('0x13bd')}];for(let _0x13b8b2=0x0;_0x13b8b2<_0x3abcfd[_0x15d94a('0x1457')][_0x15d94a('0x73e')][_0x15d94a('0x1f73')];_0x13b8b2++){_0x20d333['error']({'title':_0x3abcfd[_0x15d94a('0x1457')][_0x15d94a('0x73e')][_0x13b8b2][_0x15d94a('0x412')],'msg':_0x3abcfd[_0x15d94a('0x1457')][_0x15d94a('0x73e')][_0x13b8b2][_0x15d94a('0x1603')]});}}else _0x20d333[_0x15d94a('0x1db9')]({'title':_0x3abcfd[_0x15d94a('0x11c5')]?_0x15d94a('0x14f7')+_0x3abcfd[_0x15d94a('0x11c5')]+'\x20-\x20'+_0x3abcfd[_0x15d94a('0x1833')]:'api.squareOdbc.delete','msg':_0x3abcfd[_0x15d94a('0x1457')]?JSON[_0x15d94a('0x678')](_0x3abcfd['data'][_0x15d94a('0x1603')]):_0x3abcfd[_0x15d94a('0x1603')]||_0x3abcfd[_0x15d94a('0x9b6')]()});});},function(){});}function _0x2cc4dd(_0x307d44){return _0x307d44===null?undefined:new Date(_0x307d44);}function _0x5964b6(_0x173438){const _0x375311=_0x17bf54;_0x156cd4[_0x375311('0x212a')](_0x173438);}}const _0x3655a2=_0x4017f7,_0x5ce55a=_0x4cf2bc['p']+_0x4376d8('0x1e59');_0x3836f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0xf52'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x3836f(_0x2e4373,_0x10b3aa,_0xea22e2,_0x47f2f0,_0x35c860,_0x2d12a3,_0x6eb149,_0x6c54bb,_0x32c953,_0x2981c0,_0x150a0b,_0x4d8c02,_0x45bb93,_0x2ba47d,_0xa9e2d4,_0x435b8f,_0x517f67){const _0x1bcf82=_0x4376d8,_0x5a767a=this;_0x5a767a[_0x1bcf82('0x1d11')]=_0x435b8f,_0x5a767a['setting']=_0x517f67,_0x5a767a[_0x1bcf82('0x197c')]=_0xa9e2d4[_0x1bcf82('0x2831')](),_0x5a767a['odbcs']=_0x32c953||{'count':0x0,'rows':[]},_0x5a767a[_0x1bcf82('0xdeb')]=_0x2981c0,_0x5a767a[_0x1bcf82('0x383')]=_0x150a0b&&_0x150a0b['count']==0x1?_0x150a0b[_0x1bcf82('0x2319')][0x0]:null,_0x5a767a[_0x1bcf82('0x103e')]=_0xa9e2d4[_0x1bcf82('0x17a9')](_0x5a767a[_0x1bcf82('0x383')]?_0x5a767a['userProfileSection'][_0x1bcf82('0x103e')]:null),_0x5a767a['table']='odbcs',_0x5a767a['listOrder']='',_0x5a767a['listOrderAsc']=null,_0x5a767a['selectedODBC']=[],_0x5a767a[_0x1bcf82('0x826')]={'fields':_0x1bcf82('0x2575'),'sort':_0x1bcf82('0x1ac6'),'limit':0xa,'page':0x1},_0x5a767a[_0x1bcf82('0xb32')]=_0x1c0396,_0x5a767a[_0x1bcf82('0x985')]=_0x2d1464,_0x5a767a[_0x1bcf82('0xbf4')]=_0x382434,_0x5a767a[_0x1bcf82('0x130d')]=_0x4563f8,_0x5a767a[_0x1bcf82('0x2796')]=_0xe9f8,_0x5a767a[_0x1bcf82('0x1c96')]=_0x1cacb8,_0x5a767a[_0x1bcf82('0x1078')]=_0x10eb7b,_0x5a767a[_0x1bcf82('0x27df')]=_0x417669,_0x5a767a[_0x1bcf82('0x56c')]=_0x122f4c,_0x5a767a[_0x1bcf82('0x236a')]=_0x3aeaff,_0x5a767a[_0x1bcf82('0x6b9')]=_0x4108ca;function _0x1c0396(_0x1dd0cc,_0xed1e40){const _0xc93b9a=_0x1bcf82;_0x35c860['show']({'controller':'CreateOrEditOdbcDialogController','controllerAs':'vm','templateUrl':_0x5ce55a,'parent':angular[_0xc93b9a('0x1ce1')](_0x2d12a3[_0xc93b9a('0x13aa')]),'targetEvent':_0xed1e40,'clickOutsideToClose':!![],'locals':{'odbc':_0x1dd0cc,'odbcs':_0x5a767a['odbcs'][_0xc93b9a('0x2319')],'license':_0x5a767a[_0xc93b9a('0x1d11')],'setting':null,'crudPermissions':_0x5a767a[_0xc93b9a('0x103e')]}});}function _0x2d1464(_0x70eb97){const _0x9d91d8=_0x1bcf82;return _0x4d8c02['squareOdbc'][_0x9d91d8('0x1ec')]({'id':_0x70eb97['id']})[_0x9d91d8('0x1af5')]['then'](function(){const _0x562b4b=_0x9d91d8;_0x2ba47d['success']({'title':_0x562b4b('0x1a4c'),'msg':_0x562b4b('0x120d')});})[_0x9d91d8('0x16df')](function(_0x51497e){const _0x23170f=_0x9d91d8;_0x2ba47d['error']({'title':'Square\x20ODBC\x20properly\x20tested','msg':_0x51497e[_0x23170f('0x1457')]?JSON['stringify'](_0x51497e[_0x23170f('0x1457')]):_0x51497e[_0x23170f('0x9b6')]()});});}function _0x382434(_0x3a9208,_0x959c59){const _0x132338=_0x1bcf82,_0x101691=_0x35c860[_0x132338('0x1121')]()[_0x132338('0x24d3')](_0x132338('0x5e1')+_0x49cbdd()[_0x132338('0x1c98')](_0x132338('0x1656'))+'?')[_0x132338('0x211f')](_0x132338('0xa53')+(_0x3a9208['name']||_0x132338('0x1656'))+'
'+_0x132338('0xe9f'))[_0x132338('0x2095')](_0x132338('0xe1f'))['targetEvent'](_0x959c59)['ok']('OK')[_0x132338('0x1d47')](_0x132338('0x28a0'));_0x35c860[_0x132338('0x28e2')](_0x101691)[_0x132338('0x17e7')](function(){_0x10eb7b(_0x3a9208);},function(){console['log']('CANCEL');});}let _0x1a6f5d=!![],_0x4f2904=0x1;_0x2e4373[_0x1bcf82('0x620')](_0x1bcf82('0x3ed'),function(_0x34cb11,_0x51c953){const _0x370e40=_0x1bcf82;_0x1a6f5d?_0x6eb149(function(){_0x1a6f5d=![];}):(!_0x51c953&&(_0x4f2904=_0x5a767a[_0x370e40('0x826')][_0x370e40('0x115a')]),_0x34cb11!==_0x51c953&&(_0x5a767a['query'][_0x370e40('0x115a')]=0x1),!_0x34cb11&&(_0x5a767a[_0x370e40('0x826')][_0x370e40('0x115a')]=_0x4f2904),_0x5a767a[_0x370e40('0x2796')]());});function _0x4563f8(_0x3fd24c){_0x5a767a['odbcs']=_0x3fd24c||{'count':0x0,'rows':[]};}function _0xe9f8(){const _0x2ed64f=_0x1bcf82;_0x5a767a[_0x2ed64f('0x826')][_0x2ed64f('0xf19')]=(_0x5a767a[_0x2ed64f('0x826')][_0x2ed64f('0x115a')]-0x1)*_0x5a767a[_0x2ed64f('0x826')]['limit'],_0xa9e2d4[_0x2ed64f('0x1ba2')](_0x2ed64f('0x20bf'))?_0x5a767a[_0x2ed64f('0x1691')]=_0x4d8c02[_0x2ed64f('0x153c')]['get'](_0x5a767a[_0x2ed64f('0x826')],_0x4563f8)[_0x2ed64f('0x1af5')]:(_0x5a767a[_0x2ed64f('0x826')]['id']=_0x5a767a[_0x2ed64f('0xdeb')]['id'],_0x5a767a[_0x2ed64f('0x826')][_0x2ed64f('0x16f8')]=_0x2ed64f('0x16d8'),_0x5a767a['promise']=_0x4d8c02[_0x2ed64f('0xdeb')]['getResources'](_0x5a767a[_0x2ed64f('0x826')],_0x4563f8)[_0x2ed64f('0x1af5')]);}function _0x1cacb8(_0x490077,_0x1f1869){const _0xdb6b10=_0x1bcf82;_0x35c860[_0xdb6b10('0x28e2')]({'controller':_0xdb6b10('0x2377'),'controllerAs':'vm','templateUrl':_0x5ce55a,'parent':angular['element'](_0x2d12a3['body']),'targetEvent':_0x490077,'clickOutsideToClose':!![],'locals':{'odbc':_0x1f1869,'odbcs':_0x5a767a[_0xdb6b10('0xf52')][_0xdb6b10('0x2319')],'license':_0x5a767a['license'],'setting':_0x5a767a[_0xdb6b10('0x1aeb')],'crudPermissions':_0x5a767a['crudPermissions']}});}function _0x10eb7b(_0x8db000){const _0x1007e0=_0x1bcf82;_0x4d8c02[_0x1007e0('0x153c')]['delete']({'id':_0x8db000['id']})[_0x1007e0('0x1af5')][_0x1007e0('0x17e7')](function(){const _0x829de2=_0x1007e0;_0x49cbdd()['remove'](_0x5a767a['odbcs'][_0x829de2('0x2319')],{'id':_0x8db000['id']}),_0x5a767a[_0x829de2('0xf52')]['count']-=0x1,!_0x5a767a['odbcs'][_0x829de2('0x2319')][_0x829de2('0x1f73')]&&_0x5a767a[_0x829de2('0x2796')](),_0x2ba47d[_0x829de2('0x130d')]({'title':_0x49cbdd()[_0x829de2('0x1c98')](_0x829de2('0xa10'))+'\x20deleted!','msg':_0x8db000[_0x829de2('0x2aa')]?_0x8db000[_0x829de2('0x2aa')]+_0x829de2('0x149f'):''});})[_0x1007e0('0x16df')](function(_0xd0ceb3){const _0x5416d4=_0x1007e0;if(_0xd0ceb3[_0x5416d4('0x1457')]&&_0xd0ceb3['data'][_0x5416d4('0x73e')]&&_0xd0ceb3[_0x5416d4('0x1457')]['errors'][_0x5416d4('0x1f73')]){_0x5a767a[_0x5416d4('0x73e')]=_0xd0ceb3[_0x5416d4('0x1457')][_0x5416d4('0x73e')]||[{'message':_0xd0ceb3[_0x5416d4('0x9b6')](),'type':'SYSTEM:DELETEsquareOdbc'}];for(let _0x3add86=0x0;_0x3add86<_0xd0ceb3[_0x5416d4('0x1457')][_0x5416d4('0x73e')][_0x5416d4('0x1f73')];_0x3add86++){_0x2ba47d[_0x5416d4('0x1db9')]({'title':_0xd0ceb3[_0x5416d4('0x1457')][_0x5416d4('0x73e')][_0x3add86][_0x5416d4('0x412')],'msg':_0xd0ceb3[_0x5416d4('0x1457')][_0x5416d4('0x73e')][_0x3add86][_0x5416d4('0x1603')]});}}else _0x2ba47d[_0x5416d4('0x1db9')]({'title':_0xd0ceb3[_0x5416d4('0x11c5')]?_0x5416d4('0x14f7')+_0xd0ceb3['status']+_0x5416d4('0x16e4')+_0xd0ceb3[_0x5416d4('0x1833')]:_0x5416d4('0x9b5'),'msg':_0xd0ceb3[_0x5416d4('0x1457')]?JSON[_0x5416d4('0x678')](_0xd0ceb3[_0x5416d4('0x1457')][_0x5416d4('0x1603')]):_0xd0ceb3[_0x5416d4('0x1603')]||_0xd0ceb3['toString']()});});}function _0x417669(){const _0x2c8e94=_0x1bcf82,_0x542a91=angular[_0x2c8e94('0x14e5')](_0x5a767a[_0x2c8e94('0x19d9')]);return _0x5a767a['selectedODBC']=[],_0x542a91;}function _0x122f4c(_0x512158){const _0x29988e=_0x1bcf82,_0x272d37=_0x35c860[_0x29988e('0x1121')]()[_0x29988e('0x24d3')](_0x29988e('0x256e'))[_0x29988e('0x211f')](_0x29988e('0xa53')+_0x5a767a['selectedODBC']['length']+_0x29988e('0x145a')+_0x29988e('0xe9f'))[_0x29988e('0x2095')]('delete\x20Odbcs')[_0x29988e('0x104f')](_0x512158)['ok']('OK')[_0x29988e('0x1d47')](_0x29988e('0x28a0'));_0x35c860[_0x29988e('0x28e2')](_0x272d37)['then'](function(){const _0x1e1811=_0x29988e;_0x5a767a[_0x1e1811('0x19d9')][_0x1e1811('0xccd')](function(_0x25127b){_0x10eb7b(_0x25127b);}),_0x5a767a[_0x1e1811('0x19d9')]=[];});}function _0x3aeaff(){const _0x1f17a7=_0x1bcf82;_0x5a767a[_0x1f17a7('0x19d9')]=[];}function _0x4108ca(){const _0x224604=_0x1bcf82;_0x5a767a[_0x224604('0x19d9')]=_0x5a767a[_0x224604('0xf52')][_0x224604('0x2319')];}}const _0x32cd98=_0x3836f;_0x5e7c32[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x43b'),_0x4376d8('0x3'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x5e7c32(_0x21f918,_0x2ea481,_0x53fafa,_0x417c6c,_0x489a88,_0x501e3b,_0x43b434,_0x2e23ad,_0x322a93,_0x3fc121,_0x26ad5d,_0x2ad8b7,_0x106ed8,_0x55e167){const _0x37e5ed=_0x4376d8,_0x23a0a4=this;_0x23a0a4['currentUser']=_0x26ad5d[_0x37e5ed('0x2831')](),_0x23a0a4[_0x37e5ed('0x73e')]=[],_0x23a0a4[_0x37e5ed('0x1aeb')]=_0x106ed8,_0x23a0a4[_0x37e5ed('0x1d11')]=_0x2ad8b7,_0x23a0a4[_0x37e5ed('0x103e')]=_0x55e167,_0x23a0a4[_0x37e5ed('0x6ee')]={},_0x23a0a4[_0x37e5ed('0x1572')]=_0x23a0a4[_0x37e5ed('0x1aeb')]&&_0x23a0a4['setting'][_0x37e5ed('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x23a0a4[_0x37e5ed('0x24d3')]='CALLYSQUARE.EDIT_SQUARERECORDING',_0x23a0a4[_0x37e5ed('0x3')]=angular[_0x37e5ed('0x14e5')](_0x322a93),_0x23a0a4[_0x37e5ed('0x43b')]=_0x2e23ad,_0x23a0a4[_0x37e5ed('0xdc6')]=![];!_0x23a0a4[_0x37e5ed('0x3')]&&(_0x23a0a4['squareRecording']={},_0x23a0a4['title']='CALLYSQUARE.NEW_SQUARERECORDING',_0x23a0a4[_0x37e5ed('0xdc6')]=!![]);_0x23a0a4['addNewSquareRecording']=_0x333a60,_0x23a0a4[_0x37e5ed('0x1129')]=_0x5cd1fd,_0x23a0a4[_0x37e5ed('0x1907')]=_0x1d3657,_0x23a0a4[_0x37e5ed('0x1300')]=_0x33582a,_0x23a0a4[_0x37e5ed('0x136e')]=_0x508fb0;function _0x333a60(){const _0x5f32b0=_0x37e5ed;_0x23a0a4[_0x5f32b0('0x73e')]=[],_0x3fc121['squareRecording'][_0x5f32b0('0x2439')](_0x23a0a4['squareRecording'])[_0x5f32b0('0x1af5')][_0x5f32b0('0x17e7')](function(_0x179386){const _0x4f5092=_0x5f32b0;_0x23a0a4['squareRecordings'][_0x4f5092('0x1893')](_0x179386[_0x4f5092('0x16b2')]()),_0x43b434[_0x4f5092('0x130d')]({'title':_0x4f5092('0x10d2'),'msg':_0x23a0a4[_0x4f5092('0x3')]['name']?_0x23a0a4['squareRecording'][_0x4f5092('0x2aa')]+_0x4f5092('0x15a'):''}),_0x508fb0(_0x179386);})['catch'](function(_0x5249fb){const _0xd496da=_0x5f32b0;if(_0x5249fb['data']&&_0x5249fb[_0xd496da('0x1457')][_0xd496da('0x73e')]&&_0x5249fb[_0xd496da('0x1457')][_0xd496da('0x73e')][_0xd496da('0x1f73')]){_0x23a0a4[_0xd496da('0x73e')]=_0x5249fb['data'][_0xd496da('0x73e')]||[{'message':_0x5249fb['toString'](),'type':_0xd496da('0x2005')}];for(let _0x382be7=0x0;_0x382be7<_0x5249fb[_0xd496da('0x1457')][_0xd496da('0x73e')]['length'];_0x382be7+=0x1){_0x43b434[_0xd496da('0x1db9')]({'title':_0x5249fb[_0xd496da('0x1457')]['errors'][_0x382be7][_0xd496da('0x412')],'msg':_0x5249fb[_0xd496da('0x1457')][_0xd496da('0x73e')][_0x382be7][_0xd496da('0x1603')]});}}else _0x43b434[_0xd496da('0x1db9')]({'title':_0x5249fb[_0xd496da('0x11c5')]?_0xd496da('0x14f7')+_0x5249fb[_0xd496da('0x11c5')]+_0xd496da('0x16e4')+_0x5249fb[_0xd496da('0x1833')]:'api.squareRecording.save','msg':_0x5249fb[_0xd496da('0x1457')]?JSON[_0xd496da('0x678')](_0x5249fb['data'][_0xd496da('0x1603')]):_0x5249fb[_0xd496da('0x9b6')]()});});}function _0x5cd1fd(){const _0x36ab7d=_0x37e5ed;_0x23a0a4[_0x36ab7d('0x73e')]=[],_0x3fc121[_0x36ab7d('0x3')]['update']({'id':_0x23a0a4[_0x36ab7d('0x3')]['id']},_0x23a0a4['squareRecording'])[_0x36ab7d('0x1af5')][_0x36ab7d('0x17e7')](function(_0x5f5375){const _0x1b0a99=_0x36ab7d,_0xac3858=_0x49cbdd()[_0x1b0a99('0xe8e')](_0x23a0a4[_0x1b0a99('0x43b')],{'id':_0x5f5375['id']});_0xac3858&&_0x49cbdd()['merge'](_0xac3858,_0x49cbdd()[_0x1b0a99('0x230a')](_0x5f5375[_0x1b0a99('0x16b2')](),_0x49cbdd()[_0x1b0a99('0x1c0f')](_0xac3858))),_0x43b434['success']({'title':_0x1b0a99('0x4d1'),'msg':_0x23a0a4[_0x1b0a99('0x3')][_0x1b0a99('0x2aa')]?_0x23a0a4[_0x1b0a99('0x3')][_0x1b0a99('0x2aa')]+_0x1b0a99('0x15ca'):''}),_0x508fb0(_0x5f5375);})[_0x36ab7d('0x16df')](function(_0xfb6ac8){const _0x2b2daa=_0x36ab7d;if(_0xfb6ac8[_0x2b2daa('0x1457')]&&_0xfb6ac8[_0x2b2daa('0x1457')][_0x2b2daa('0x73e')]&&_0xfb6ac8['data'][_0x2b2daa('0x73e')]['length']){_0x23a0a4['errors']=_0xfb6ac8[_0x2b2daa('0x1457')][_0x2b2daa('0x73e')]||[{'message':_0xfb6ac8[_0x2b2daa('0x9b6')](),'type':_0x2b2daa('0x17ed')}];for(let _0x3fbdc5=0x0;_0x3fbdc5<_0xfb6ac8[_0x2b2daa('0x1457')][_0x2b2daa('0x73e')][_0x2b2daa('0x1f73')];_0x3fbdc5++){_0x43b434[_0x2b2daa('0x1db9')]({'title':_0xfb6ac8[_0x2b2daa('0x1457')][_0x2b2daa('0x73e')][_0x3fbdc5]['type'],'msg':_0xfb6ac8['data'][_0x2b2daa('0x73e')][_0x3fbdc5][_0x2b2daa('0x1603')]});}}else _0x43b434[_0x2b2daa('0x1db9')]({'title':_0xfb6ac8[_0x2b2daa('0x11c5')]?_0x2b2daa('0x14f7')+_0xfb6ac8[_0x2b2daa('0x11c5')]+'\x20-\x20'+_0xfb6ac8[_0x2b2daa('0x1833')]:_0x2b2daa('0x17ed'),'msg':_0xfb6ac8['data']?JSON['stringify'](_0xfb6ac8[_0x2b2daa('0x1457')][_0x2b2daa('0x1603')]):_0xfb6ac8[_0x2b2daa('0x9b6')]()});});}function _0x1d3657(_0x2147b3){const _0x160b7f=_0x37e5ed;_0x23a0a4['errors']=[];const _0x2be2f4=_0x417c6c[_0x160b7f('0x1121')]()[_0x160b7f('0x24d3')](_0x160b7f('0x530'))[_0x160b7f('0xd5')](_0x160b7f('0x1d49'))['ariaLabel'](_0x160b7f('0x208f'))['ok'](_0x160b7f('0x304'))[_0x160b7f('0x1d47')](_0x160b7f('0x1b70'))[_0x160b7f('0x104f')](_0x2147b3);_0x417c6c[_0x160b7f('0x28e2')](_0x2be2f4)['then'](function(){const _0x4420=_0x160b7f;_0x3fc121[_0x4420('0x3')]['delete']({'id':_0x23a0a4['squareRecording']['id']})['$promise'][_0x4420('0x17e7')](function(){const _0x1f1c53=_0x4420;_0x49cbdd()['remove'](_0x23a0a4[_0x1f1c53('0x43b')],{'id':_0x23a0a4[_0x1f1c53('0x3')]['id']}),_0x43b434[_0x1f1c53('0x130d')]({'title':'SquareRecording\x20properly\x20deleted!','msg':(_0x23a0a4[_0x1f1c53('0x3')][_0x1f1c53('0x2aa')]||_0x1f1c53('0x3'))+_0x1f1c53('0x149f')}),_0x508fb0(_0x23a0a4[_0x1f1c53('0x3')]);})[_0x4420('0x16df')](function(_0x2e3570){const _0x1b792f=_0x4420;if(_0x2e3570['data']&&_0x2e3570['data'][_0x1b792f('0x73e')]&&_0x2e3570['data'][_0x1b792f('0x73e')][_0x1b792f('0x1f73')]){_0x23a0a4['errors']=_0x2e3570[_0x1b792f('0x1457')][_0x1b792f('0x73e')]||[{'message':_0x2e3570[_0x1b792f('0x9b6')](),'type':_0x1b792f('0x1bfe')}];for(let _0x399e57=0x0;_0x399e57<_0x2e3570[_0x1b792f('0x1457')]['errors']['length'];_0x399e57++){_0x43b434['error']({'title':_0x2e3570['data'][_0x1b792f('0x73e')][_0x399e57][_0x1b792f('0x412')],'msg':_0x2e3570[_0x1b792f('0x1457')][_0x1b792f('0x73e')][_0x399e57]['message']});}}else _0x43b434[_0x1b792f('0x1db9')]({'title':_0x2e3570['status']?_0x1b792f('0x14f7')+_0x2e3570['status']+_0x1b792f('0x16e4')+_0x2e3570['statusText']:'api.squareRecording.delete','msg':_0x2e3570[_0x1b792f('0x1457')]?JSON[_0x1b792f('0x678')](_0x2e3570[_0x1b792f('0x1457')]['message']):_0x2e3570['message']||_0x2e3570[_0x1b792f('0x9b6')]()});});},function(){});}function _0x33582a(_0x106913){return _0x106913===null?undefined:new Date(_0x106913);}function _0x508fb0(_0x40de07){const _0x146d83=_0x37e5ed;_0x417c6c[_0x146d83('0x212a')](_0x40de07);}}const _0x1cdfc7=_0x5e7c32,_0xe9b436=_0x4cf2bc['p']+_0x4376d8('0x1342');_0x427676[_0x4376d8('0x1b9c')]=['$scope','$window','$state','$mdSidenav','$mdDialog','$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x43b'),'userProfile',_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),'toasty','Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x427676(_0x5016b7,_0x536b83,_0x49899c,_0x1ffa75,_0x240540,_0x2b75cc,_0xda481f,_0x568137,_0x5efe83,_0xabc659,_0x435f54,_0x34e84e,_0x49fea4,_0x5338dd,_0x2dfc0d,_0x1ed0e7,_0x427ae7){const _0x329fc9=_0x4376d8,_0x15eac1=this;_0x15eac1[_0x329fc9('0x1d11')]=_0x1ed0e7,_0x15eac1[_0x329fc9('0x1aeb')]=_0x427ae7,_0x15eac1[_0x329fc9('0x197c')]=_0x2dfc0d[_0x329fc9('0x2831')](),_0x15eac1[_0x329fc9('0x43b')]=_0x5efe83||{'count':0x0,'rows':[]},_0x15eac1[_0x329fc9('0xdeb')]=_0xabc659,_0x15eac1['userProfileSection']=_0x435f54&&_0x435f54[_0x329fc9('0x335')]==0x1?_0x435f54[_0x329fc9('0x2319')][0x0]:null,_0x15eac1['crudPermissions']=_0x2dfc0d[_0x329fc9('0x17a9')](_0x15eac1['userProfileSection']?_0x15eac1['userProfileSection']['crudPermissions']:null),_0x15eac1[_0x329fc9('0x23c3')]='squareRecordings',_0x15eac1[_0x329fc9('0x26a1')]='',_0x15eac1[_0x329fc9('0x24e1')]=null,_0x15eac1['selectedSquareRecordings']=[],_0x15eac1['query']={'fields':'createdAt,updatedAt,id,filename,projectName,uniqueid,callerid,extension,audio,savePath,format','sort':_0x329fc9('0x1ac6'),'limit':0xa,'page':0x1},_0x15eac1[_0x329fc9('0x1818')]=_0x2b6492,_0x15eac1[_0x329fc9('0xbf4')]=_0x578c92,_0x15eac1[_0x329fc9('0x130d')]=_0x3a64f6,_0x15eac1['getSquareRecordings']=_0xc91b9a,_0x15eac1[_0x329fc9('0x26df')]=_0x2adf30,_0x15eac1[_0x329fc9('0x1907')]=_0x19b77d,_0x15eac1[_0x329fc9('0x1454')]=_0x59d528,_0x15eac1[_0x329fc9('0x27c3')]=_0x454f04,_0x15eac1[_0x329fc9('0xdf8')]=_0x2f3c7d,_0x15eac1[_0x329fc9('0xa77')]=_0x5c24f0;function _0x2b6492(_0x26183c){const _0xbb370a=_0x329fc9;return _0x34e84e[_0xbb370a('0x3')]['download']({'id':_0x26183c['id']})[_0xbb370a('0x1af5')][_0xbb370a('0x17e7')](function(_0x5d2b74){const _0xa742ac=_0xbb370a,_0x3950e6=[_0x5d2b74[_0xa742ac('0x3ca')]];let _0x51ddc8='download';const _0x22d170=new Blob(_0x3950e6,{'type':_0x5d2b74['type']});_0x51ddc8=_0x26183c[_0xa742ac('0x35b')]+_0x26183c[_0xa742ac('0x1c0d')];const _0x4c00ce=window[_0xa742ac('0x2be')]['createElement']('a');_0x4c00ce[_0xa742ac('0x224')](_0xa742ac('0x448'),URL[_0xa742ac('0x28ce')](_0x22d170)),_0x4c00ce[_0xa742ac('0x224')]('download',_0x51ddc8),document[_0xa742ac('0x13aa')][_0xa742ac('0x128c')](_0x4c00ce),_0x4c00ce[_0xa742ac('0x20d4')]();})[_0xbb370a('0x16df')](function(_0x8ef86b){const _0x57f009=_0xbb370a;if(_0x8ef86b[_0x57f009('0x1457')]&&_0x8ef86b['data'][_0x57f009('0x73e')]&&_0x8ef86b[_0x57f009('0x1457')][_0x57f009('0x73e')][_0x57f009('0x1f73')])for(let _0x378881=0x0;_0x378881<_0x8ef86b['data']['errors']['length'];_0x378881++){_0x5338dd[_0x57f009('0x1db9')]({'title':_0x8ef86b['data']['errors'][_0x378881][_0x57f009('0x412')],'msg':_0x8ef86b[_0x57f009('0x1457')]['errors'][_0x378881][_0x57f009('0x1603')]});}else _0x5338dd[_0x57f009('0x1db9')]({'title':_0x8ef86b[_0x57f009('0x11c5')]?_0x57f009('0x14f7')+_0x8ef86b[_0x57f009('0x11c5')]+'\x20-\x20'+_0x8ef86b[_0x57f009('0x1833')]:_0x57f009('0x2005'),'msg':_0x8ef86b[_0x57f009('0x1457')]?JSON[_0x57f009('0x678')](_0x8ef86b[_0x57f009('0x1457')]['message']):_0x8ef86b[_0x57f009('0x9b6')]()});});}function _0x578c92(_0x56b25f,_0x258ac4){const _0x5d8f93=_0x329fc9,_0x36b248=_0x240540['confirm']()[_0x5d8f93('0x24d3')](_0x5d8f93('0x5e1')+_0x49cbdd()[_0x5d8f93('0x1c98')](_0x5d8f93('0x3'))+'?')['htmlContent'](_0x5d8f93('0xa53')+(_0x56b25f['name']||_0x5d8f93('0x3'))+'
'+'\x20will\x20be\x20deleted.')[_0x5d8f93('0x2095')](_0x5d8f93('0xe3f'))['targetEvent'](_0x258ac4)['ok']('OK')['cancel'](_0x5d8f93('0x28a0'));_0x240540[_0x5d8f93('0x28e2')](_0x36b248)[_0x5d8f93('0x17e7')](function(){_0x19b77d(_0x56b25f);},function(){console['log']('CANCEL');});}let _0x52f7ec=!![],_0x14d16e=0x1;_0x5016b7[_0x329fc9('0x620')]('vm.query.filter',function(_0x3ac5c8,_0x1a3c99){const _0x861e2=_0x329fc9;_0x52f7ec?_0xda481f(function(){_0x52f7ec=![];}):(!_0x1a3c99&&(_0x14d16e=_0x15eac1[_0x861e2('0x826')][_0x861e2('0x115a')]),_0x3ac5c8!==_0x1a3c99&&(_0x15eac1['query']['page']=0x1),!_0x3ac5c8&&(_0x15eac1[_0x861e2('0x826')][_0x861e2('0x115a')]=_0x14d16e),_0x15eac1[_0x861e2('0x740')]());});function _0x3a64f6(_0x56430a){const _0x1be7f4=_0x329fc9;_0x15eac1[_0x1be7f4('0x43b')]=_0x56430a||{'count':0x0,'rows':[]};}function _0xc91b9a(){const _0x39caf9=_0x329fc9;_0x15eac1[_0x39caf9('0x826')][_0x39caf9('0xf19')]=(_0x15eac1[_0x39caf9('0x826')][_0x39caf9('0x115a')]-0x1)*_0x15eac1[_0x39caf9('0x826')][_0x39caf9('0x193b')],_0x2dfc0d[_0x39caf9('0x1ba2')](_0x39caf9('0x20bf'))?_0x15eac1[_0x39caf9('0x1691')]=_0x34e84e[_0x39caf9('0x3')]['get'](_0x15eac1[_0x39caf9('0x826')],_0x3a64f6)[_0x39caf9('0x1af5')]:(_0x15eac1[_0x39caf9('0x826')]['id']=_0x15eac1[_0x39caf9('0xdeb')]['id'],_0x15eac1[_0x39caf9('0x826')][_0x39caf9('0x16f8')]=_0x39caf9('0x2645'),_0x15eac1[_0x39caf9('0x1691')]=_0x34e84e['userProfile'][_0x39caf9('0x2447')](_0x15eac1[_0x39caf9('0x826')],_0x3a64f6)[_0x39caf9('0x1af5')]);}function _0x2adf30(_0x4512d6,_0xe74762){const _0xa8588c=_0x329fc9;_0x240540[_0xa8588c('0x28e2')]({'controller':_0xa8588c('0x28bf'),'controllerAs':'vm','templateUrl':_0xe9b436,'parent':angular[_0xa8588c('0x1ce1')](_0x2b75cc['body']),'targetEvent':_0x4512d6,'clickOutsideToClose':!![],'locals':{'squareRecording':_0xe74762,'squareRecordings':_0x15eac1[_0xa8588c('0x43b')][_0xa8588c('0x2319')],'license':_0x15eac1['license'],'setting':_0x15eac1[_0xa8588c('0x1aeb')],'crudPermissions':_0x15eac1[_0xa8588c('0x103e')]}});}function _0x19b77d(_0x1f451e){const _0xbbd841=_0x329fc9;_0x34e84e['squareRecording'][_0xbbd841('0x1da6')]({'id':_0x1f451e['id']})[_0xbbd841('0x1af5')][_0xbbd841('0x17e7')](function(){const _0xf6a644=_0xbbd841;_0x49cbdd()[_0xf6a644('0x5f3')](_0x15eac1[_0xf6a644('0x43b')][_0xf6a644('0x2319')],{'id':_0x1f451e['id']}),_0x15eac1['squareRecordings']['count']-=0x1,!_0x15eac1[_0xf6a644('0x43b')][_0xf6a644('0x2319')]['length']&&_0x15eac1[_0xf6a644('0x740')](),_0x5338dd[_0xf6a644('0x130d')]({'title':_0x49cbdd()['startCase'](_0xf6a644('0x14ff'))+'\x20deleted!','msg':_0x1f451e[_0xf6a644('0x2aa')]?_0x1f451e[_0xf6a644('0x2aa')]+_0xf6a644('0x149f'):''});})[_0xbbd841('0x16df')](function(_0x2bc5fd){const _0x5687e6=_0xbbd841;if(_0x2bc5fd[_0x5687e6('0x1457')]&&_0x2bc5fd['data']['errors']&&_0x2bc5fd[_0x5687e6('0x1457')][_0x5687e6('0x73e')][_0x5687e6('0x1f73')]){_0x15eac1['errors']=_0x2bc5fd[_0x5687e6('0x1457')]['errors']||[{'message':_0x2bc5fd[_0x5687e6('0x9b6')](),'type':'SYSTEM:DELETEsquareRecording'}];for(let _0x561620=0x0;_0x561620<_0x2bc5fd[_0x5687e6('0x1457')]['errors'][_0x5687e6('0x1f73')];_0x561620++){_0x5338dd[_0x5687e6('0x1db9')]({'title':_0x2bc5fd[_0x5687e6('0x1457')][_0x5687e6('0x73e')][_0x561620][_0x5687e6('0x412')],'msg':_0x2bc5fd[_0x5687e6('0x1457')][_0x5687e6('0x73e')][_0x561620][_0x5687e6('0x1603')]});}}else _0x5338dd[_0x5687e6('0x1db9')]({'title':_0x2bc5fd[_0x5687e6('0x11c5')]?_0x5687e6('0x14f7')+_0x2bc5fd[_0x5687e6('0x11c5')]+_0x5687e6('0x16e4')+_0x2bc5fd[_0x5687e6('0x1833')]:_0x5687e6('0xa00'),'msg':_0x2bc5fd[_0x5687e6('0x1457')]?JSON['stringify'](_0x2bc5fd[_0x5687e6('0x1457')][_0x5687e6('0x1603')]):_0x2bc5fd[_0x5687e6('0x1603')]||_0x2bc5fd[_0x5687e6('0x9b6')]()});});}function _0x59d528(){const _0xf17637=_0x329fc9,_0x3d5117=angular['copy'](_0x15eac1['selectedSquareRecordings']);return _0x15eac1[_0xf17637('0x225')]=[],_0x3d5117;}function _0x454f04(_0x9ec234){const _0x3b3ef2=_0x329fc9,_0xde8c51=_0x240540[_0x3b3ef2('0x1121')]()[_0x3b3ef2('0x24d3')](_0x3b3ef2('0x153'))[_0x3b3ef2('0x211f')](_0x3b3ef2('0xa53')+_0x15eac1[_0x3b3ef2('0x225')]['length']+_0x3b3ef2('0x145a')+_0x3b3ef2('0xe9f'))[_0x3b3ef2('0x2095')](_0x3b3ef2('0x2570'))[_0x3b3ef2('0x104f')](_0x9ec234)['ok']('OK')[_0x3b3ef2('0x1d47')](_0x3b3ef2('0x28a0'));_0x240540[_0x3b3ef2('0x28e2')](_0xde8c51)[_0x3b3ef2('0x17e7')](function(){const _0x3edf88=_0x3b3ef2;_0x15eac1[_0x3edf88('0x225')]['forEach'](function(_0x1d76d1){_0x19b77d(_0x1d76d1);}),_0x15eac1[_0x3edf88('0x225')]=[];});}function _0x2f3c7d(){const _0x276454=_0x329fc9;_0x15eac1[_0x276454('0x225')]=[];}function _0x5c24f0(){const _0x418e5f=_0x329fc9;_0x15eac1[_0x418e5f('0x225')]=_0x15eac1[_0x418e5f('0x43b')][_0x418e5f('0x2319')];}}const _0x53026d=_0x427676;_0x49309a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x49309a(_0x5a9cd0,_0x2452ef){const _0x422eec=_0x4376d8;_0x5a9cd0[_0x422eec('0x1b9a')](_0x422eec('0x546'),{'abstract':!![],'url':_0x422eec('0xe71')})[_0x422eec('0x1b9a')](_0x422eec('0x449'),{'url':'/odbcs','views':{'content@app':{'templateUrl':_0x12d08e,'controller':_0x422eec('0xbab')}},'resolve':{'odbcs':[_0x422eec('0x177'),_0x422eec('0x1885'),function(_0x289dc9,_0x984431){const _0x3865cc=_0x422eec;return _0x984431['hasRole'](_0x3865cc('0x20bf'))?_0x289dc9[_0x3865cc('0x898')](_0x3865cc('0x245d'),{'fields':_0x3865cc('0x2575'),'sort':'-updatedAt','limit':0xa,'offset':0x0}):_0x289dc9[_0x3865cc('0x898')](_0x3865cc('0x1164'),{'id':_0x984431['getCurrentUser']()['userProfileId'],'section':_0x3865cc('0x16d8'),'fields':_0x3865cc('0x2575'),'sort':_0x3865cc('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x422eec('0x177'),'Auth',function(_0x21b15f,_0x3f694d){const _0x110136=_0x422eec;return _0x3f694d[_0x110136('0x1ba2')](_0x110136('0x20bf'))?null:_0x21b15f[_0x110136('0x898')](_0x110136('0x235d'),{'fields':_0x110136('0x8d3'),'id':_0x3f694d[_0x110136('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x422eec('0x177'),_0x422eec('0x1885'),function(_0x48f724,_0x64f300){const _0xcd414c=_0x422eec;return _0x64f300['hasRole']('admin')?null:_0x48f724[_0xcd414c('0x898')](_0xcd414c('0x23e7'),{'fields':_0xcd414c('0x1134'),'userProfileId':_0x64f300[_0xcd414c('0x2831')]()[_0xcd414c('0x1e76')],'sectionId':0x44d});}]},'authenticate':!![],'permissionId':0x44d,'bodyClass':_0x422eec('0x18eb')})[_0x422eec('0x1b9a')](_0x422eec('0x1552'),{'url':_0x422eec('0x45d'),'views':{'content@app':{'templateUrl':_0x5b095c,'controller':_0x422eec('0x659')}},'resolve':{'squareRecordings':[_0x422eec('0x177'),_0x422eec('0x1885'),function(_0x4861c9,_0x211a7f){const _0x53a328=_0x422eec;return _0x211a7f[_0x53a328('0x1ba2')](_0x53a328('0x20bf'))?_0x4861c9[_0x53a328('0x898')](_0x53a328('0x1b'),{'fields':_0x53a328('0x10cb'),'sort':_0x53a328('0x1ac6'),'limit':0xa,'offset':0x0}):_0x4861c9['resolve']('userProfile@getResources',{'id':_0x211a7f[_0x53a328('0x2831')]()['userProfileId'],'section':'SquareRecordings','fields':_0x53a328('0x10cb'),'sort':_0x53a328('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x422eec('0x177'),_0x422eec('0x1885'),function(_0x254159,_0x3a275b){const _0x2dfe96=_0x422eec;return _0x3a275b[_0x2dfe96('0x1ba2')]('admin')?null:_0x254159[_0x2dfe96('0x898')](_0x2dfe96('0x235d'),{'fields':'id,name,crudPermissions','id':_0x3a275b[_0x2dfe96('0x2831')]()[_0x2dfe96('0x1e76')]});}],'userProfileSection':['apiResolver',_0x422eec('0x1885'),function(_0xccbafd,_0x13d0f6){const _0x3f7675=_0x422eec;return _0x13d0f6[_0x3f7675('0x1ba2')](_0x3f7675('0x20bf'))?null:_0xccbafd[_0x3f7675('0x898')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x13d0f6[_0x3f7675('0x2831')]()['userProfileId'],'sectionId':0x44e});}]},'authenticate':!![],'permissionId':0x44e,'bodyClass':_0x422eec('0x18eb')}),_0x2452ef[_0x422eec('0x10b3')](_0x422eec('0x784'));}angular[_0x4376d8('0x11c4')]('app.callysquare',[_0x4376d8('0x14cd'),'ngPassword','md.data.table','flow',_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),'ng-sortable',_0x4376d8('0x9c2'),_0x4376d8('0x2757'),_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),'ngclipboard',_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),'app.callysquare.projects'])[_0x4376d8('0x1980')](_0x49309a)[_0x4376d8('0x5ce')](_0x4376d8('0x2377'),_0x3655a2)[_0x4376d8('0x5ce')](_0x4376d8('0xeaf'),_0x32cd98)['controller'](_0x4376d8('0x28bf'),_0x1cdfc7)[_0x4376d8('0x5ce')](_0x4376d8('0x1ce6'),_0x53026d);const _0x1f613c=_0x4cf2bc['p']+_0x4376d8('0x132d'),_0x16f68c=_0x4cf2bc['p']+'src/js/modules/main/apps/analytics/views/extractedReports/extractedReports.html/extractedReports.html',_0x37b71b=_0x4cf2bc['p']+'src/js/modules/main/apps/analytics/views/reports/reports.html/reports.html',_0x1e0a32=_0x4cf2bc['p']+_0x4376d8('0x9df');var _0x35468c=_0x4cf2bc(0xd5a);_0x4af087['$inject']=[_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),'report','api',_0x4376d8('0x2883'),_0x4376d8('0xae0')];function _0x4af087(_0x487914,_0x280904,_0x547a3b,_0x2916e6,_0x5cabfd,_0x1631dc,_0x1ffcbf){const _0x2ce0be=_0x4376d8,_0x2877ef=this;_0x2877ef[_0x2ce0be('0x73e')]=[],_0x2877ef[_0x2ce0be('0x9d2')]=angular[_0x2ce0be('0x14e5')](_0x2916e6),_0x2877ef[_0x2ce0be('0x9d2')][_0x2ce0be('0x2aa')]+=_0x2ce0be('0x16a1'),_0x2877ef[_0x2ce0be('0xae0')]=_0x1ffcbf,_0x2877ef['treeCustomConfig']={'core':{'multiple':![],'animation':!![],'error':function(_0x2a06a2){const _0x45dd65=_0x2ce0be;console['error'](_0x45dd65('0x12b8')+angular[_0x45dd65('0x1d04')](_0x2a06a2));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':[_0x2ce0be('0x1b19')]},_0x2877ef[_0x2ce0be('0x1ef9')]={'select_node':_0x41c100},_0x2877ef[_0x2ce0be('0xc19')]=_0x43695b,_0x2877ef[_0x2ce0be('0x136e')]=_0x1c6a6c;function _0x43695b(){const _0x2a9119=_0x2ce0be;_0x2877ef[_0x2a9119('0x73e')]=[];let _0x4574f8;_0x5cabfd[_0x2a9119('0x18bc')][_0x2a9119('0x2439')]({'name':_0x2877ef[_0x2a9119('0x9d2')][_0x2a9119('0x2aa')],'description':_0x2877ef['report'][_0x2a9119('0x986')],'table':_0x2877ef[_0x2a9119('0x9d2')][_0x2a9119('0x23c3')],'conditions':_0x2877ef[_0x2a9119('0x9d2')][_0x2a9119('0x1d44')],'joins':_0x2877ef['report'][_0x2a9119('0x1856')],'parent':_0x2877ef[_0x2a9119('0x5af')]['id']})[_0x2a9119('0x1af5')][_0x2a9119('0x17e7')](function(_0x20f752){const _0x8963e5=_0x2a9119;_0x4574f8=_0x20f752,_0x547a3b[_0x8963e5('0x130d')]({'title':'Report\x20properly\x20copied!','msg':_0x2877ef['report'][_0x8963e5('0x2aa')]?_0x2877ef['report']['name']+_0x8963e5('0xfc4'):''});const _0x2f18f5={'fields':_0x8963e5('0x21b2'),'nolimit':!![]};return _0x2f18f5[_0x1631dc===_0x8963e5('0x18bc')?_0x8963e5('0x9a6'):_0x8963e5('0x1d5b')]=_0x2877ef[_0x8963e5('0x9d2')]['id'],_0x5cabfd['analyticFieldReport'][_0x8963e5('0x1c53')](_0x2f18f5)[_0x8963e5('0x1af5')];})[_0x2a9119('0x17e7')](function(_0x45e42b){const _0x2a61e8=_0x2a9119,_0x9c4aa0=_0x49cbdd()[_0x2a61e8('0x787')](_0x45e42b['rows'],function(_0x4108b6){const _0x2d7702=_0x2a61e8;return _0x49cbdd()[_0x2d7702('0x15f7')]({},_0x4108b6,{'CustomReportId':_0x4574f8['id']});});return _0x5cabfd[_0x2a61e8('0x1a36')]['bulkCreate'](_0x9c4aa0)[_0x2a61e8('0x1af5')];})[_0x2a9119('0x17e7')](function(){const _0x57529b=_0x2a9119;_0x547a3b['success']({'title':_0x57529b('0xc03'),'msg':_0x57529b('0x1748')}),_0x1c6a6c();})[_0x2a9119('0x16df')](function(_0x3d99a9){const _0xbce992=_0x2a9119;_0x547a3b[_0xbce992('0x1db9')]({'title':_0x3d99a9[_0xbce992('0x11c5')]?_0xbce992('0x14f7')+_0x3d99a9[_0xbce992('0x11c5')]+'\x20-\x20'+_0x3d99a9['statusText']:_0xbce992('0x89b'),'msg':_0x3d99a9[_0xbce992('0x1457')]?JSON['stringify'](_0x3d99a9[_0xbce992('0x1457')][_0xbce992('0x1603')]):_0x3d99a9[_0xbce992('0x9b6')]()});});}function _0x41c100(_0xacbcfb,_0x20c1f6){const _0x480632=_0x2ce0be;_0x2877ef['currentNode']=_0x20c1f6[_0x480632('0x10a')];}function _0x1c6a6c(){_0x280904['hide']();}}const _0x10978a=_0x4af087;_0x23ed22[_0x4376d8('0x1b9c')]=[_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0xe04'),_0x4376d8('0x9d2'),_0x4376d8('0x212e'),_0x4376d8('0x2883'),_0x4376d8('0x5af'),_0x4376d8('0x1061'),_0x4376d8('0x103e')];function _0x23ed22(_0x133755,_0x8b5ff,_0x33e154,_0x431866,_0x32cd03,_0x122295,_0x45ce7d,_0x5a4453,_0x24c309,_0xbe6e0a){const _0x3d4c42=_0x4376d8,_0x764f96=this;_0x764f96[_0x3d4c42('0x73e')]=[],_0x764f96[_0x3d4c42('0x22c6')]=[],_0x764f96['title']=_0x3d4c42('0x21e0'),_0x764f96[_0x3d4c42('0x103e')]=_0xbe6e0a,_0x764f96[_0x3d4c42('0x9d2')]=angular['copy'](_0x32cd03),_0x764f96[_0x3d4c42('0xe04')]=_0x431866,_0x764f96[_0x3d4c42('0x2242')]=![],_0x764f96[_0x3d4c42('0x193')]=_0x24c309[_0x3d4c42('0x212d')](),_0x764f96['joinTypes']=[{'key':_0x3d4c42('0x1eba'),'value':_0x3d4c42('0x816')},{'key':_0x3d4c42('0x2534'),'value':_0x3d4c42('0x1130')},{'key':'right_join','value':'Right\x20Join'},{'key':_0x3d4c42('0xf2f'),'value':_0x3d4c42('0x5e9')}];!_0x764f96[_0x3d4c42('0x9d2')]&&(_0x764f96[_0x3d4c42('0x9d2')]={'name':'','table':'report_agent','description':'','parent':_0x5a4453['id']},_0x764f96[_0x3d4c42('0x24d3')]=_0x3d4c42('0x2490'),_0x764f96[_0x3d4c42('0x2242')]=!![]);_0x764f96['addNewReport']=_0x53a8c9,_0x764f96[_0x3d4c42('0x22e9')]=_0x30fcf9,_0x764f96['deleteReport']=_0x181be4,_0x764f96['closeDialog']=_0x429194,_0x764f96[_0x3d4c42('0x2059')]=_0x2e54fb,_0x764f96[_0x3d4c42('0x3d8')]=_0x220467,_0x764f96[_0x3d4c42('0x9a')]=_0x58976c;function _0x220467(_0x3d0abd){const _0xab71b7=_0x3d4c42;_0x764f96[_0xab71b7('0x22c6')][_0xab71b7('0x2335')](_0x3d0abd,0x1);}function _0x58976c(_0x21d058,_0x48187d,_0x2cab91){const _0x10a5e8=_0x3d4c42,_0xad6daa=_0x49cbdd()['find'](_0x764f96[_0x10a5e8('0x193')],{'name':_0x2cab91});_0xad6daa&&_0xad6daa[_0x10a5e8('0x212e')]&&_0x122295[_0xad6daa[_0x10a5e8('0x212e')]][_0x10a5e8('0x2234')]()[_0x10a5e8('0x1af5')]['then'](function(_0x595fe7){const _0x107d4a=_0x10a5e8;_0x21d058[_0x48187d]=_0x49cbdd()[_0x107d4a('0x4f1')](_0x49cbdd()[_0x107d4a('0x1c0f')](_0x595fe7),[_0x107d4a('0x1af5'),'$resolved']);})[_0x10a5e8('0x16df')](function(_0xd3602b){const _0x4552a0=_0x10a5e8;console[_0x4552a0('0x1db9')](_0xd3602b);});}function _0x2e54fb(_0x565321){const _0x234e07=_0x3d4c42;_0x565321&&(delete _0x764f96[_0x234e07('0x1960')],_0x764f96[_0x234e07('0x22c6')][_0x234e07('0x269f')](_0x565321));}function _0x53a8c9(){const _0xca8a1a=_0x3d4c42;_0x764f96[_0xca8a1a('0x73e')]=[],_0x764f96[_0xca8a1a('0x9d2')][_0xca8a1a('0x1856')]=_0x49cbdd()['map'](_0x764f96[_0xca8a1a('0x22c6')]||[],function(_0x4ef91e){const _0x320868=_0xca8a1a;return{'parentKey':_0x4ef91e[_0x320868('0x27f7')],'foreignTable':_0x4ef91e['name'],'foreignKey':_0x4ef91e['foreignKey'],'type':_0x4ef91e[_0x320868('0x412')][_0x320868('0x19b')]()};}),_0x764f96[_0xca8a1a('0x9d2')][_0xca8a1a('0x1856')]=JSON[_0xca8a1a('0x678')](_0x764f96[_0xca8a1a('0x9d2')][_0xca8a1a('0x1856')]),_0x122295[_0x45ce7d]['save'](_0x764f96[_0xca8a1a('0x9d2')])['$promise'][_0xca8a1a('0x17e7')](function(_0x42a2fc){const _0x257739=_0xca8a1a;_0x764f96[_0x257739('0xe04')][_0x257739('0x1893')](_0x42a2fc),_0x33e154[_0x257739('0x130d')]({'title':'Report\x20properly\x20created','msg':_0x764f96['report']['name']?_0x764f96[_0x257739('0x9d2')][_0x257739('0x2aa')]+_0x257739('0x15a'):''}),_0x429194();})[_0xca8a1a('0x16df')](function(_0x506ed7){const _0x4afdb7=_0xca8a1a;if(_0x506ed7['data']&&_0x506ed7[_0x4afdb7('0x1457')]['errors']&&_0x506ed7['data']['errors'][_0x4afdb7('0x1f73')]){_0x764f96[_0x4afdb7('0x73e')]=_0x506ed7['data'][_0x4afdb7('0x73e')]||[{'message':_0x506ed7['toString'](),'type':_0x4afdb7('0x1220')}];for(let _0x12cc15=0x0;_0x12cc15<_0x506ed7['data'][_0x4afdb7('0x73e')][_0x4afdb7('0x1f73')];_0x12cc15++){_0x33e154[_0x4afdb7('0x1db9')]({'title':_0x506ed7[_0x4afdb7('0x1457')]['errors'][_0x12cc15][_0x4afdb7('0x412')],'msg':_0x506ed7[_0x4afdb7('0x1457')]['errors'][_0x12cc15][_0x4afdb7('0x1603')]});}}else _0x33e154['error']({'title':_0x506ed7[_0x4afdb7('0x11c5')]?_0x4afdb7('0x14f7')+_0x506ed7[_0x4afdb7('0x11c5')]+_0x4afdb7('0x16e4')+_0x506ed7[_0x4afdb7('0x1833')]:_0x4afdb7('0x1220'),'msg':_0x506ed7[_0x4afdb7('0x1457')]?JSON[_0x4afdb7('0x678')](_0x506ed7[_0x4afdb7('0x1457')]['message']):_0x506ed7['toString']()});});}function _0x30fcf9(){const _0x1b0fb1=_0x3d4c42;_0x764f96[_0x1b0fb1('0x73e')]=[],_0x122295[_0x45ce7d][_0x1b0fb1('0x27ba')]({'id':_0x764f96[_0x1b0fb1('0x9d2')]['id']},_0x764f96[_0x1b0fb1('0x9d2')])[_0x1b0fb1('0x1af5')][_0x1b0fb1('0x17e7')](function(_0x11e46a){const _0x31d9f2=_0x1b0fb1,_0x364cf9=_0x49cbdd()['find'](_0x764f96[_0x31d9f2('0xe04')],{'id':_0x11e46a['id']});_0x364cf9&&_0x49cbdd()[_0x31d9f2('0x1ced')](_0x364cf9,_0x11e46a),_0x33e154['success']({'title':'Report\x20properly\x20saved!','msg':_0x764f96[_0x31d9f2('0x9d2')][_0x31d9f2('0x2aa')]?_0x764f96[_0x31d9f2('0x9d2')]['name']+_0x31d9f2('0x15ca'):''}),_0x429194();})[_0x1b0fb1('0x16df')](function(_0x33f959){const _0x2c4e3d=_0x1b0fb1;if(_0x33f959[_0x2c4e3d('0x1457')]&&_0x33f959['data'][_0x2c4e3d('0x73e')]&&_0x33f959[_0x2c4e3d('0x1457')][_0x2c4e3d('0x73e')][_0x2c4e3d('0x1f73')]){_0x764f96['errors']=_0x33f959['data'][_0x2c4e3d('0x73e')]||[{'message':_0x33f959[_0x2c4e3d('0x9b6')](),'type':_0x2c4e3d('0x2394')}];for(let _0x374576=0x0;_0x374576<_0x33f959[_0x2c4e3d('0x1457')][_0x2c4e3d('0x73e')]['length'];_0x374576++){_0x33e154[_0x2c4e3d('0x1db9')]({'title':_0x33f959[_0x2c4e3d('0x1457')]['errors'][_0x374576]['type'],'msg':_0x33f959['data'][_0x2c4e3d('0x73e')][_0x374576][_0x2c4e3d('0x1603')]});}}else _0x33e154['error']({'title':_0x33f959['status']?'API:'+_0x33f959[_0x2c4e3d('0x11c5')]+_0x2c4e3d('0x16e4')+_0x33f959[_0x2c4e3d('0x1833')]:_0x2c4e3d('0x2394'),'msg':_0x33f959[_0x2c4e3d('0x1457')]?JSON[_0x2c4e3d('0x678')](_0x33f959[_0x2c4e3d('0x1457')][_0x2c4e3d('0x1603')]):_0x33f959[_0x2c4e3d('0x9b6')]()});});}function _0x181be4(){const _0x50d0a5=_0x3d4c42;_0x764f96[_0x50d0a5('0x73e')]=[];const _0x402ab2=_0x8b5ff['confirm']()['title'](_0x50d0a5('0x530'))[_0x50d0a5('0xd5')](_0x50d0a5('0x1ba'))[_0x50d0a5('0x2095')](_0x50d0a5('0x13f3'))['ok'](_0x50d0a5('0x304'))['cancel'](_0x50d0a5('0x1b70'))[_0x50d0a5('0x104f')](event);_0x8b5ff[_0x50d0a5('0x28e2')](_0x402ab2)[_0x50d0a5('0x17e7')](function(){const _0x5a159f=_0x50d0a5;_0x122295[_0x45ce7d][_0x5a159f('0x1da6')]({'id':_0x764f96[_0x5a159f('0x9d2')]['id']})[_0x5a159f('0x1af5')][_0x5a159f('0x17e7')](function(){const _0x52d494=_0x5a159f;_0x49cbdd()[_0x52d494('0x5f3')](_0x764f96[_0x52d494('0xe04')],{'id':_0x764f96['report']['id']}),_0x33e154[_0x52d494('0x130d')]({'title':_0x52d494('0x103c'),'msg':_0x764f96['report']['name']?_0x764f96[_0x52d494('0x9d2')][_0x52d494('0x2aa')]+_0x52d494('0x149f'):''}),_0x429194();})['catch'](function(_0x4427ca){const _0xed5f14=_0x5a159f;_0x764f96[_0xed5f14('0x73e')]=_0x4427ca[_0xed5f14('0x1457')][_0xed5f14('0x73e')]||[{'message':_0x4427ca['toString'](),'type':_0xed5f14('0x19e4')}];});},function(){});}function _0x429194(){const _0x544495=_0x3d4c42;_0x8b5ff[_0x544495('0x212a')]();}}const _0x5312b3=_0x23ed22;_0x4e7299[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x1061'),'toasty',_0x4376d8('0x665')];function _0x4e7299(_0x1ac198,_0x407b30,_0x325ee,_0x1a332f){const _0x2cef8e=_0x4376d8,_0x277cdf=this;_0x277cdf[_0x2cef8e('0x9d2')]={},_0x277cdf[_0x2cef8e('0x1d44')]=_0x1a332f[_0x2cef8e('0x16e0')],_0x277cdf[_0x2cef8e('0x161d')]=_0x2c777e,_0x277cdf[_0x2cef8e('0xc1f')]=_0x183076,_0x277cdf[_0x2cef8e('0x249d')]=_0x31e406,_0x277cdf[_0x2cef8e('0x1a20')]=_0x5196c0,_0x277cdf[_0x2cef8e('0xf4f')]=_0x26f47e;function _0x2c777e(_0x325d6a,_0x1a9025){const _0x2b5a82=_0x2cef8e;_0x277cdf[_0x2b5a82('0x9d2')]=_0x325d6a,_0x277cdf[_0x2b5a82('0x9d2')]['condition']=angular['fromJson'](_0x325d6a[_0x2b5a82('0x1d44')])||{'group':{'operator':_0x2b5a82('0xc9a'),'rules':[]}},_0x277cdf[_0x2b5a82('0x103e')]=typeof _0x1a9025!==_0x2b5a82('0xfad')?_0x1a9025:{'readOnly':!![],'canEdit':![],'canDelete':![]};for(let _0x1ec671=0x0;_0x1ec671<_0x277cdf[_0x2b5a82('0x9d2')]['condition'][_0x2b5a82('0x125e')][_0x2b5a82('0x271f')][_0x2b5a82('0x1f73')];_0x1ec671++){if(_0x277cdf[_0x2b5a82('0x9d2')][_0x2b5a82('0xa67')]['group'][_0x2b5a82('0x271f')][_0x1ec671]['field']){const _0x36db8d=_0x277cdf[_0x2b5a82('0x9d2')]['condition']['group'][_0x2b5a82('0x271f')][_0x1ec671][_0x2b5a82('0x1515')][_0x2b5a82('0x2007')]('.');_0x36db8d['length']===0x1&&(_0x277cdf[_0x2b5a82('0x9d2')][_0x2b5a82('0xa67')][_0x2b5a82('0x125e')][_0x2b5a82('0x271f')][_0x1ec671][_0x2b5a82('0x1515')]=_0x277cdf['report'][_0x2b5a82('0x23c3')]+'.'+_0x277cdf[_0x2b5a82('0x9d2')][_0x2b5a82('0xa67')][_0x2b5a82('0x125e')][_0x2b5a82('0x271f')][_0x1ec671][_0x2b5a82('0x1515')]);}}_0x407b30[_0x2b5a82('0xff3')](_0x277cdf[_0x2b5a82('0x9d2')][_0x2b5a82('0x23c3')])[_0x2b5a82('0x17e7')](function(_0x34bd37){const _0x1974d4=_0x2b5a82;_0x277cdf[_0x1974d4('0xd72')]=_0x49cbdd()[_0x1974d4('0x4f1')](_0x49cbdd()[_0x1974d4('0x1c0f')](_0x34bd37),[_0x1974d4('0x1af5'),_0x1974d4('0x1314'),_0x1974d4('0x7c9'),'updatedAt']);})['catch'](function(_0x580a19){const _0x3df01a=_0x2b5a82;_0x325ee[_0x3df01a('0x1db9')]({'title':_0x580a19[_0x3df01a('0x11c5')]?_0x3df01a('0x14f7')+_0x580a19[_0x3df01a('0x11c5')]+'\x20-\x20'+_0x580a19[_0x3df01a('0x1833')]:'SYSTEM:DESCRIBE','msg':_0x580a19[_0x3df01a('0x1457')]?JSON[_0x3df01a('0x678')](_0x580a19['data']):_0x580a19['toString']()});});}function _0x183076(_0x507d17){const _0x1308c1=_0x2cef8e;_0x507d17[_0x1308c1('0x1893')]({'condition':'=','field':'','value':''});}function _0x31e406(_0x128089){const _0x586d70=_0x2cef8e;_0x128089[_0x586d70('0x269f')]({'group':{'operator':'AND','rules':[]}});}function _0x5196c0(_0xa0dff8,_0x520cad,_0x2fa1a2){const _0x2bc353=_0x2cef8e,_0x499cef=_0x1ac198[_0x2bc353('0x1121')]()[_0x2bc353('0x24d3')](_0x2bc353('0x1892'))['htmlContent'](_0x2bc353('0x2799'))['ariaLabel'](_0x2bc353('0x20b7'))['targetEvent'](_0x2fa1a2)['ok']('OK')[_0x2bc353('0x1d47')](_0x2bc353('0x28a0'));_0x1ac198[_0x2bc353('0x28e2')](_0x499cef)[_0x2bc353('0x17e7')](function(){_0xa0dff8['splice'](_0x520cad,0x1);},function(){const _0x4dd742=_0x2bc353;console[_0x4dd742('0x1d63')](_0x4dd742('0x28a0'));});}function _0x26f47e(_0x4d261e){const _0x3bcae0=_0x2cef8e;return!_0x49cbdd()['includes']([_0x3bcae0('0x1c76'),'IS\x20NOT\x20NULL',_0x3bcae0('0xdc0'),'IS\x20NOT\x20EMPTY'],_0x4d261e);}}const _0xe6ad07=_0x4e7299;_0x4b9679[_0x4376d8('0x1b9c')]=['api'];function _0x4b9679(_0x3ec9be){const _0x3ef825=_0x4376d8,_0x27c7a4={'cm_companies':_0x3ef825('0x27e'),'cm_contacts':'cmContact','cm_hopper':_0x3ef825('0xf6a'),'cm_hopper_final':_0x3ef825('0x255c'),'cm_hopper_history':_0x3ef825('0x2231'),'cm_lists':_0x3ef825('0x25b'),'chat_websites':'chatWebsite','chat_queues':_0x3ef825('0x262e'),'chat_interactions':_0x3ef825('0x1a0'),'chat_messages':_0x3ef825('0xd47'),'chat_offline_messages':_0x3ef825('0x4b8'),'report_chat_queue':_0x3ef825('0x8fd'),'report_chat_transfer':'chatTransferReport','mail_accounts':_0x3ef825('0x127b'),'mail_queues':_0x3ef825('0x1e8b'),'mail_interactions':_0x3ef825('0xa5'),'mail_messages':_0x3ef825('0x2839'),'report_mail_queue':_0x3ef825('0x1dc3'),'report_mail_transfer':_0x3ef825('0x1086'),'openchannel_accounts':_0x3ef825('0x152f'),'openchannel_queues':'openchannelQueue','openchannel_interactions':_0x3ef825('0x21fb'),'openchannel_messages':'openchannelMessage','report_openchannel_queue':_0x3ef825('0x2742'),'report_openchannel_transfer':_0x3ef825('0x25e6'),'sms_accounts':'smsAccount','sms_queues':_0x3ef825('0xdb0'),'sms_interactions':_0x3ef825('0x17a8'),'sms_messages':'smsMessage','report_sms_queue':'smsQueueReport','report_sms_transfer':'smsTransferReport','fax_accounts':_0x3ef825('0x119'),'fax_queues':_0x3ef825('0x384'),'fax_interactions':_0x3ef825('0xed8'),'fax_messages':_0x3ef825('0x22e6'),'report_fax_transfer':'faxTransferReport','report_fax_queue':_0x3ef825('0x11f'),'report_call':'voiceCallReport','report_agent':_0x3ef825('0x770'),'report_square':_0x3ef825('0xb57'),'report_member':'memberReport','report_queue':'voiceQueueReport','report_square_details':_0x3ef825('0x25d7'),'report_dial':_0x3ef825('0xc6f'),'report_jscripty_sessions':_0x3ef825('0x1338'),'report_jscripty_questions':_0x3ef825('0xc3a'),'report_jscripty_answers':'jscriptyAnswerReport','users':_0x3ef825('0x221e'),'voice_recordings':_0x3ef825('0x5f4'),'cdr':'cdr','whatsapp_accounts':'whatsappAccount','whatsapp_queues':_0x3ef825('0x1e28'),'whatsapp_interactions':'whatsappInteraction','whatsapp_messages':_0x3ef825('0x1fb5'),'report_whatsapp_queue':_0x3ef825('0x5cb'),'report_whatsapp_transfer':_0x3ef825('0x310')};return{'getMap':function(){const _0xfb9663=_0x3ef825,_0x4c62db=[];return _0x49cbdd()[_0xfb9663('0x1857')](_0x27c7a4,function(_0x28dc05,_0x171252){_0x4c62db['push']({'name':_0x171252,'api':_0x28dc05});}),_0x4c62db;},'getColumns':function(_0x1758aa){const _0x768971=_0x3ef825,_0x3178f5=_0x27c7a4[_0x1758aa];return _0x3ec9be[_0x3178f5][_0x768971('0x2234')]()[_0x768971('0x1af5')];}};}const _0x101c5a=_0x4b9679;_0x3398ac[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x9d2'),_0x4376d8('0xa7e'),_0x4376d8('0x1cc1'),_0x4376d8('0x1aee'),_0x4376d8('0xd72'),_0x4376d8('0x665'),_0x4376d8('0x212e'),_0x4376d8('0x103e')];function _0x3398ac(_0xdf2a53,_0xd28158,_0x34818d,_0x6a0c88,_0x48a2a4,_0x29f387,_0x4095ee,_0x49894f,_0x43ddd5,_0x1b2cf0,_0x4126a9,_0x3ec166){const _0x21bddf=_0x4376d8,_0x3ad361=this;_0x3ad361[_0x21bddf('0x73e')]=[],_0x3ad361[_0x21bddf('0x24d3')]=_0x21bddf('0x189f'),_0x3ad361[_0x21bddf('0x9d2')]=_0x48a2a4,_0x3ad361[_0x21bddf('0x1cc1')]=angular[_0x21bddf('0x14e5')](_0x4095ee),_0x3ad361[_0x21bddf('0xa7e')]=_0x29f387,_0x3ad361['metrics']=_0x49894f,_0x3ad361[_0x21bddf('0xd72')]=_0x43ddd5,_0x3ad361[_0x21bddf('0x665')]=_0x1b2cf0,_0x3ad361[_0x21bddf('0xf22')]=![],_0x3ad361['crudPermissions']=_0x3ec166;if(!_0x3ad361[_0x21bddf('0x1cc1')])_0x3ad361[_0x21bddf('0x1cc1')]={'type':_0x21bddf('0x2d6'),'function':null,'format':null,'groupBy':![],'orderBy':null},_0x3ad361[_0x21bddf('0x24d3')]=_0x21bddf('0xaef'),_0x3ad361[_0x21bddf('0xf22')]=!![];else{_0x3ad361[_0x21bddf('0x1cc1')]['type']=_0x3ad361['reportField'][_0x21bddf('0x8fa')]?'custom':_0x3ad361[_0x21bddf('0x1cc1')][_0x21bddf('0x150f')]?'metric':'column';if(_0x3ad361[_0x21bddf('0x1cc1')][_0x21bddf('0x1515')]&&!_0x3ad361[_0x21bddf('0x1cc1')][_0x21bddf('0x8fa')]&&_0x49cbdd()['isNil'](_0x3ad361[_0x21bddf('0x1cc1')][_0x21bddf('0x150f')])){const _0x45769a=_0x3ad361[_0x21bddf('0x1cc1')][_0x21bddf('0x1515')][_0x21bddf('0x2007')]('.');_0x45769a[_0x21bddf('0x1f73')]===0x1&&(_0x3ad361[_0x21bddf('0x1cc1')][_0x21bddf('0x1515')]=_0x3ad361['report']['table']+'.'+_0x3ad361['reportField'][_0x21bddf('0x1515')]);}}_0x3ad361[_0x21bddf('0x2826')]=_0x5399cb,_0x3ad361['saveReportField']=_0x9c45c6,_0x3ad361[_0x21bddf('0x2678')]=_0x436243,_0x3ad361[_0x21bddf('0x136e')]=_0x5150c2;function _0x5399cb(){const _0x3e704b=_0x21bddf;_0x3ad361[_0x3e704b('0x73e')]=[],_0x3ad361[_0x3e704b('0x1cc1')]['custom']=_0x3ad361['reportField']['type']===_0x3e704b('0x8fa'),_0x3ad361[_0x3e704b('0x1cc1')][_0x3e704b('0x150f')]=_0x3ad361['reportField'][_0x3e704b('0x412')]===_0x3e704b('0x1401')?_0x3ad361['reportField'][_0x3e704b('0x150f')]:null,_0x3ad361['reportField']['CustomReportId']=_0x3ad361[_0x3e704b('0x9d2')]['id'],_0x4126a9[_0x3e704b('0x1a36')][_0x3e704b('0x2439')](_0x3ad361[_0x3e704b('0x1cc1')])[_0x3e704b('0x1af5')][_0x3e704b('0x17e7')](function(_0x4767ae){const _0x2eae90=_0x3e704b;_0x3ad361[_0x2eae90('0xa7e')][_0x2eae90('0x269f')](_0x4767ae),_0x6a0c88[_0x2eae90('0x130d')]({'title':_0x2eae90('0x1c63'),'msg':_0x3ad361[_0x2eae90('0x1cc1')][_0x2eae90('0x1515')]?_0x3ad361[_0x2eae90('0x1cc1')][_0x2eae90('0x1515')]+_0x2eae90('0x15a'):_0x3ad361[_0x2eae90('0x1cc1')]['type']+'\x20has\x20been\x20created!'}),_0x5150c2();})['catch'](function(_0x48facc){const _0x21cfc2=_0x3e704b;_0x3ad361['errors']=_0x48facc[_0x21cfc2('0x1457')][_0x21cfc2('0x73e')]||[{'message':_0x48facc[_0x21cfc2('0x9b6')](),'type':_0x21cfc2('0x1adb')}];});}function _0x9c45c6(){const _0x4b02c4=_0x21bddf;_0x3ad361[_0x4b02c4('0x73e')]=[],_0x3ad361[_0x4b02c4('0x1cc1')]['custom']=_0x3ad361['reportField'][_0x4b02c4('0x412')]==='custom',_0x3ad361[_0x4b02c4('0x1cc1')][_0x4b02c4('0x150f')]=_0x3ad361[_0x4b02c4('0x1cc1')][_0x4b02c4('0x412')]===_0x4b02c4('0x1401')?_0x3ad361[_0x4b02c4('0x1cc1')][_0x4b02c4('0x150f')]:null,_0x4126a9[_0x4b02c4('0x1a36')][_0x4b02c4('0x27ba')]({'id':_0x3ad361[_0x4b02c4('0x1cc1')]['id']},_0x3ad361['reportField'])['$promise'][_0x4b02c4('0x17e7')](function(_0xf5775b){const _0x5775f5=_0x4b02c4,_0x20bead=_0x49cbdd()[_0x5775f5('0xe8e')](_0x3ad361[_0x5775f5('0xa7e')],{'id':_0xf5775b['id']});_0x20bead&&_0x49cbdd()[_0x5775f5('0x1ced')](_0x20bead,_0xf5775b),_0x6a0c88[_0x5775f5('0x130d')]({'title':_0x5775f5('0x2d4'),'msg':_0x3ad361[_0x5775f5('0x1cc1')][_0x5775f5('0x1515')]?_0x3ad361['reportField'][_0x5775f5('0x1515')]+_0x5775f5('0x15ca'):''}),_0x5150c2();})[_0x4b02c4('0x16df')](function(_0x47494c){const _0x366a50=_0x4b02c4;_0x3ad361[_0x366a50('0x73e')]=_0x47494c[_0x366a50('0x1457')][_0x366a50('0x73e')]||[{'message':_0x47494c['toString'](),'type':'api.analyticFieldReport.update'}];});}function _0x436243(_0x2254df){const _0x32862a=_0x21bddf;_0x3ad361[_0x32862a('0x73e')]=[];const _0x26e235=_0x34818d[_0x32862a('0x1121')]()['title']('Are\x20you\x20sure?')['content']('The\x20field\x20will\x20be\x20deleted.')[_0x32862a('0x2095')](_0x32862a('0x13f3'))['ok']('Delete')[_0x32862a('0x1d47')](_0x32862a('0x1b70'))[_0x32862a('0x104f')](_0x2254df);_0x34818d[_0x32862a('0x28e2')](_0x26e235)['then'](function(){const _0xccdb97=_0x32862a;_0x4126a9[_0xccdb97('0x1a36')][_0xccdb97('0x1da6')]({'id':_0x3ad361[_0xccdb97('0x1cc1')]['id']})['$promise'][_0xccdb97('0x17e7')](function(){const _0x3e78c2=_0xccdb97;_0x49cbdd()[_0x3e78c2('0x5f3')](_0x3ad361[_0x3e78c2('0xa7e')],{'id':_0x3ad361[_0x3e78c2('0x1cc1')]['id']}),_0x6a0c88[_0x3e78c2('0x130d')]({'title':_0x3e78c2('0x5e3'),'msg':_0x3ad361[_0x3e78c2('0x1cc1')][_0x3e78c2('0x1515')]?_0x3ad361[_0x3e78c2('0x1cc1')][_0x3e78c2('0x1515')]+_0x3e78c2('0x149f'):''}),_0x5150c2();})[_0xccdb97('0x16df')](function(_0x44a523){const _0xbe882a=_0xccdb97;_0x3ad361['errors']=_0x44a523[_0xbe882a('0x1457')][_0xbe882a('0x73e')]||[{'message':_0x44a523['toString'](),'type':_0xbe882a('0x82f')}];});},function(){});}function _0x5150c2(){const _0x5ddf02=_0x21bddf;_0x34818d[_0x5ddf02('0x212a')]();}}const _0x3b1b08=_0x3398ac,_0x18a3d3=_0x4cf2bc['p']+_0x4376d8('0xb3a');_0x1173fe['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x108a'),'api',_0x4376d8('0x1061'),_0x4376d8('0x665'),_0x4376d8('0x28da')];function _0x1173fe(_0x1fa32c,_0x15b4d8,_0x3d23de,_0x252223,_0x59f566,_0x4eddfe,_0x1a4e93,_0x28666c,_0x30e956,_0x11b261){const _0x2b7624=_0x4376d8,_0x17b5fb=this;_0x17b5fb[_0x2b7624('0x9d2')]={},_0x17b5fb[_0x2b7624('0xa7e')]={'count':0x0,'rows':[]},_0x17b5fb[_0x2b7624('0x8b2')]=_0x49cbdd()[_0x2b7624('0x8de')](_0x30e956[_0x2b7624('0xf99')],_0x2b7624('0x175b')),_0x17b5fb[_0x2b7624('0x1c3c')]=_0x49cbdd()[_0x2b7624('0x8de')](_0x30e956['getFormats'],_0x2b7624('0x175b')),_0x17b5fb[_0x2b7624('0x139f')]=_0x49cbdd()[_0x2b7624('0x8de')](_0x30e956['getGroupBy'],_0x2b7624('0x175b')),_0x17b5fb[_0x2b7624('0xa36')]=_0x49cbdd()['keyBy'](_0x30e956[_0x2b7624('0x2607')],_0x2b7624('0x175b')),_0x17b5fb[_0x2b7624('0x23ab')]=[],_0x17b5fb[_0x2b7624('0x826')]={'fields':'createdAt,updatedAt,id,field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]},_0x17b5fb[_0x2b7624('0x1c4b')]={'animation':0x64,'onSort':function(_0x5ba388){const _0x164a21=_0x2b7624;_0x1a4e93[_0x164a21('0x1a36')][_0x164a21('0x2227')]({'id':_0x17b5fb[_0x164a21('0x9d2')]['id']},_0x5ba388[_0x164a21('0xfc5')])[_0x164a21('0x1af5')][_0x164a21('0x17e7')](function(_0x5b9224){const _0x2f2d93=_0x164a21;_0x17b5fb[_0x2f2d93('0xa7e')]['rows']=_0x5b9224;})[_0x164a21('0x16df')](function(_0x2dc455){const _0x31a94c=_0x164a21;_0x4eddfe[_0x31a94c('0x1db9')]({'title':_0x2dc455[_0x31a94c('0x11c5')]?_0x31a94c('0x14f7')+_0x2dc455[_0x31a94c('0x11c5')]+'\x20-\x20'+_0x2dc455[_0x31a94c('0x1833')]:_0x31a94c('0x127f')});});}},_0x17b5fb['init']=_0x385f38,_0x17b5fb[_0x2b7624('0x1a20')]=_0x4709bb,_0x17b5fb[_0x2b7624('0x130d')]=_0x1d9589,_0x17b5fb['getReportFields']=_0x9471b2,_0x17b5fb[_0x2b7624('0x122b')]=_0x10ac66,_0x17b5fb['deleteReportField']=_0x4f5749,_0x17b5fb[_0x2b7624('0x527')]=_0x36aa11,_0x17b5fb['getMetricName']=_0x4d9950,_0x17b5fb['getMetricValue']=_0x20cbbf;function _0x385f38(_0x50a095,_0x1f9cf2){const _0x16874d=_0x2b7624;_0x17b5fb['report']=_0x50a095,_0x17b5fb['query'][_0x16874d('0x9a6')]=_0x17b5fb[_0x16874d('0x9d2')]['id'],_0x17b5fb[_0x16874d('0x103e')]=typeof _0x1f9cf2!==_0x16874d('0xfad')?_0x1f9cf2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x17b5fb[_0x16874d('0x1c4b')][_0x16874d('0xc3c')]=!_0x17b5fb[_0x16874d('0x103e')][_0x16874d('0x1d34')]?!![]:![],_0x28666c[_0x16874d('0xff3')](_0x17b5fb['report'][_0x16874d('0x23c3')])[_0x16874d('0x17e7')](function(_0xd31ab7){const _0x5098f1=_0x16874d;return _0x17b5fb[_0x5098f1('0xd72')]=_0x49cbdd()[_0x5098f1('0x4f1')](_0x49cbdd()[_0x5098f1('0x1c0f')](_0xd31ab7),[_0x5098f1('0x1af5'),_0x5098f1('0x1314')]),_0x1a4e93[_0x5098f1('0x2103')][_0x5098f1('0x1c53')]({'fields':_0x5098f1('0x1209'),'nolimit':!![]})[_0x5098f1('0x1af5')];})[_0x16874d('0x17e7')](function(_0x4e154e){const _0x524f46=_0x16874d;_0x17b5fb[_0x524f46('0x1aee')]=_0x4e154e['rows'];})[_0x16874d('0x16df')](function(_0x19c612){const _0x59a3c6=_0x16874d;_0x4eddfe[_0x59a3c6('0x1db9')]({'title':_0x19c612[_0x59a3c6('0x11c5')]?_0x59a3c6('0x14f7')+_0x19c612[_0x59a3c6('0x11c5')]+_0x59a3c6('0x16e4')+_0x19c612['statusText']:_0x59a3c6('0x150c'),'msg':_0x19c612[_0x59a3c6('0x1457')]?JSON[_0x59a3c6('0x678')](_0x19c612[_0x59a3c6('0x1457')]):_0x19c612[_0x59a3c6('0x9b6')]()});}),_0x17b5fb[_0x16874d('0x24db')]();}function _0x4709bb(_0x53354d,_0x297023){const _0xe544f0=_0x2b7624,_0xb9befa=_0x252223[_0xe544f0('0x1121')]()[_0xe544f0('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0xe544f0('0x211f')](_0xe544f0('0xa53')+_0x53354d[_0xe544f0('0x1515')]+_0xe544f0('0x1d23')+_0xe544f0('0xe9f'))[_0xe544f0('0x2095')]('delete\x20field')[_0xe544f0('0x104f')](_0x297023)['ok']('OK')[_0xe544f0('0x1d47')](_0xe544f0('0x28a0'));_0x252223[_0xe544f0('0x28e2')](_0xb9befa)[_0xe544f0('0x17e7')](function(){_0x4f5749(_0x53354d);},function(){const _0x5838f9=_0xe544f0;console[_0x5838f9('0x1d63')]('CANCEL');});}let _0x28bc38=!![];_0x15b4d8[_0x2b7624('0x620')](_0x2b7624('0xd18'),function(){_0x28bc38?_0x3d23de(function(){_0x28bc38=![];}):_0x17b5fb['getReportFields']();});function _0x1d9589(_0x1edf5d){const _0x415d30=_0x2b7624;_0x17b5fb[_0x415d30('0xa7e')]=_0x1edf5d||{'count':0x0,'rows':[]};}function _0x9471b2(){const _0xe21995=_0x2b7624;_0x17b5fb[_0xe21995('0x1691')]=_0x1a4e93[_0xe21995('0x1a36')]['get'](_0x17b5fb[_0xe21995('0x826')],_0x1d9589)[_0xe21995('0x1af5')];}function _0x10ac66(_0x10e380,_0x5436e9){const _0x53a48c=_0x2b7624;_0x252223[_0x53a48c('0x28e2')]({'controller':_0x53a48c('0xa59'),'controllerAs':'vm','templateUrl':_0x18a3d3,'parent':angular['element'](_0x59f566[_0x53a48c('0x13aa')]),'targetEvent':_0x10e380,'clickOutsideToClose':!![],'locals':{'report':_0x17b5fb[_0x53a48c('0x9d2')],'reportField':_0x5436e9,'reportFields':_0x17b5fb[_0x53a48c('0xa7e')][_0x53a48c('0x2319')],'metrics':_0x17b5fb[_0x53a48c('0x1aee')],'columns':_0x17b5fb[_0x53a48c('0xd72')],'setting':null,'crudPermissions':_0x17b5fb[_0x53a48c('0x103e')]}});}function _0x4f5749(_0x1751dc){const _0x374620=_0x2b7624;_0x1a4e93['analyticFieldReport'][_0x374620('0x1da6')]({'id':_0x1751dc['id']})[_0x374620('0x1af5')][_0x374620('0x17e7')](function(){const _0x3cd9ce=_0x374620;_0x17b5fb[_0x3cd9ce('0x23ab')]=[],_0x49cbdd()['remove'](_0x17b5fb[_0x3cd9ce('0xa7e')][_0x3cd9ce('0x2319')],{'id':_0x1751dc['id']}),_0x17b5fb[_0x3cd9ce('0xa7e')]['count']-=0x1,!_0x17b5fb['reportFields'][_0x3cd9ce('0x2319')]['length']&&_0x17b5fb[_0x3cd9ce('0x24db')](),_0x4eddfe[_0x3cd9ce('0x130d')]({'title':_0x3cd9ce('0x1605'),'msg':_0x1751dc[_0x3cd9ce('0x1515')]?_0x1751dc[_0x3cd9ce('0x1515')]+'\x20has\x20been\x20deleted!':''});})[_0x374620('0x16df')](function(_0x49ab53){const _0x270da7=_0x374620;_0x4eddfe[_0x270da7('0x1db9')]({'title':_0x49ab53[_0x270da7('0x11c5')]?'API:'+_0x49ab53[_0x270da7('0x11c5')]+_0x270da7('0x16e4')+_0x49ab53[_0x270da7('0x1833')]:_0x270da7('0x378'),'msg':_0x49ab53['data']?JSON['stringify'](_0x49ab53[_0x270da7('0x1457')]):_0x49ab53['toString']()});});}function _0x36aa11(_0x19430b){const _0x2996bf=_0x2b7624,_0x2dd22c=_0x252223[_0x2996bf('0x1121')]()[_0x2996bf('0x24d3')](_0x2996bf('0x1fdd'))[_0x2996bf('0x211f')](_0x2996bf('0xa53')+_0x17b5fb['selectedReportFields'][_0x2996bf('0x1f73')]+'\x20selected'+_0x2996bf('0xe9f'))['ariaLabel'](_0x2996bf('0x15ee'))['targetEvent'](_0x19430b)['ok']('OK')[_0x2996bf('0x1d47')](_0x2996bf('0x28a0'));_0x252223[_0x2996bf('0x28e2')](_0x2dd22c)['then'](function(){const _0x496f4d=_0x2996bf;_0x17b5fb[_0x496f4d('0x23ab')]['forEach'](function(_0x1cce8f){_0x4f5749(_0x1cce8f);}),_0x17b5fb[_0x496f4d('0x23ab')]=[];});}function _0x4d9950(_0x5b6c99){const _0x4f9bfa=_0x2b7624,_0x433033=_0x49cbdd()['find'](_0x17b5fb[_0x4f9bfa('0x1aee')],{'id':_0x5b6c99});return _0x433033?_0x433033[_0x4f9bfa('0x2aa')]:_0x11b261[_0x4f9bfa('0x1acc')]('ANALYTICS.NO_METRIC_FOUND');}function _0x20cbbf(_0x139be7){const _0x9f822a=_0x2b7624,_0x3c49b1=_0x49cbdd()[_0x9f822a('0xe8e')](_0x17b5fb[_0x9f822a('0x1aee')],{'id':_0x139be7});return _0x3c49b1?_0x3c49b1['metric']:_0x11b261[_0x9f822a('0x1acc')](_0x9f822a('0x84b'));}}const _0x58d1bd=_0x1173fe;function _0x1a01ad(){const _0x4a3392=_0x4376d8,_0xc26718=[{'value':_0x4a3392('0xfff'),'option':function(_0x427d84){const _0x56b3a4=_0x4a3392;return _0x56b3a4('0x223e')+_0x427d84+')';}},{'value':_0x4a3392('0x1a29'),'option':function(_0x4ca0e8){const _0xa695b2=_0x4a3392;return _0xa695b2('0x23a1')+_0x4ca0e8+')';}},{'value':'COUNT\x20DISTINCT','option':function(_0x462086){return'COUNT\x20(DISTINCT\x20'+_0x462086+')';}},{'value':_0x4a3392('0xcdc'),'option':function(_0x2320ce){const _0x3c9917=_0x4a3392;return _0x3c9917('0xe2e')+_0x2320ce+')';}},{'value':_0x4a3392('0x15bb'),'option':function(_0x4dd885){const _0x3071e3=_0x4a3392;return _0x3071e3('0x35')+_0x4dd885+')';}},{'value':_0x4a3392('0x1d64'),'option':function(_0x312205){const _0x37c31d=_0x4a3392;return _0x37c31d('0x7c3')+_0x312205+')';}},{'value':'GROUP_CONCAT','option':function(_0x4cb8c1){const _0x372878=_0x4a3392;return _0x372878('0x637')+_0x4cb8c1+')';}},{'value':_0x4a3392('0x1e22'),'option':function(_0xda795a){return'GROUP_CONCAT\x20('+_0xda795a+'\x20ORDER\x20BY\x20'+_0xda795a+'\x20ASC)';}},{'value':_0x4a3392('0x2739'),'option':function(_0x3aa393){const _0x17312b=_0x4a3392;return'GROUP_CONCAT\x20('+_0x3aa393+_0x17312b('0x12b4')+_0x3aa393+_0x17312b('0x1298');}}],_0x41a402=[{'value':'SEC_TO_TIME','option':function(_0x1eab8c){return'SEC_TO_TIME\x20('+_0x1eab8c+')';}},{'value':'DATE','option':function(_0x2198d5){return'DATE\x20('+_0x2198d5+')';}},{'value':'HOUR','option':function(_0x54a8f0){const _0x50e1be=_0x4a3392;return _0x50e1be('0x252')+_0x54a8f0+')';}},{'value':_0x4a3392('0x58'),'option':function(_0x31c8fd){const _0x4ab9f3=_0x4a3392;return _0x4ab9f3('0x17ae')+_0x31c8fd+')';}},{'value':_0x4a3392('0xedb'),'option':function(_0x30c9d5){const _0x65669=_0x4a3392;return _0x65669('0x16e2')+_0x30c9d5+')';}}],_0x303d6f=[{'value':![],'option':function(){return'No';}},{'value':!![],'option':function(_0x4d3786){const _0x55937f=_0x4a3392;return _0x55937f('0x26a0')+_0x4d3786;}}],_0x6c55e2=[{'value':_0x4a3392('0x1173'),'option':function(_0x402377){const _0x378f71=_0x4a3392;return _0x378f71('0xd45')+_0x402377+'\x20ASC';}},{'value':_0x4a3392('0xbc0'),'option':function(_0x57421a){const _0x59da03=_0x4a3392;return _0x59da03('0xd45')+_0x57421a+_0x59da03('0x2311');}}],_0x296bb4=['=','!=','<','<=','>','>=',_0x4a3392('0x1649'),_0x4a3392('0x1b76'),_0x4a3392('0x1c76'),_0x4a3392('0xdf4'),'IS\x20EMPTY',_0x4a3392('0x214b')];return{'getFunctions':_0xc26718,'getFormats':_0x41a402,'getGroupBy':_0x303d6f,'getOrderBy':_0x6c55e2,'getConditions':_0x296bb4};}const _0x4b3651=_0x1a01ad;_0x15687e['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x9d2'),'Auth',_0x4376d8('0x383')];function _0x15687e(_0x2b0a6a,_0x490b88,_0x11445b,_0xc68e7e,_0x1c0916,_0x2130b){const _0xcf121b=_0x4376d8,_0x23f978=this;_0x23f978[_0xcf121b('0x9d2')]=_0xc68e7e||{},_0x23f978[_0xcf121b('0x383')]=_0x2130b&&_0x2130b[_0xcf121b('0x335')]==0x1?_0x2130b[_0xcf121b('0x2319')][0x0]:null,_0x23f978[_0xcf121b('0x103e')]=_0x1c0916['parseCrudPermissions'](_0x23f978['userProfileSection']?_0x23f978[_0xcf121b('0x383')]['crudPermissions']:null),_0x23f978[_0xcf121b('0xde7')]=_0x2b0a6a[_0xcf121b('0x16fb')][_0xcf121b('0x1523')]||0x0,_0x23f978[_0xcf121b('0x1ad8')]=_0x166d1b,_0x23f978['saveReport']=_0x1e1951,_0x23f978['previewReport']=_0x126fd0,_0x23f978[_0xcf121b('0x46c')]=_0x6ddf3c,_0x23f978[_0xcf121b('0x10a1')]=_0x533dbb,_0x23f978[_0xcf121b('0x25f3')]=_0x139315,_0x23f978[_0xcf121b('0x187d')]=_0x364bb;function _0x166d1b(){const _0x566635=_0xcf121b;_0x2b0a6a['go'](_0x566635('0x23f6'),{},{'reload':_0x566635('0x23f6')});}function _0x1e1951(){const _0x320d43=_0xcf121b;_0x23f978[_0x320d43('0x9d2')][_0x320d43('0x1d44')]=angular[_0x320d43('0x1d04')](_0x23f978[_0x320d43('0x9d2')][_0x320d43('0xa67')]),_0x11445b['analyticCustomReport'][_0x320d43('0x27ba')]({'id':_0x23f978[_0x320d43('0x9d2')]['id']},_0x49cbdd()[_0x320d43('0x15c3')](_0x23f978[_0x320d43('0x9d2')],_0x320d43('0x1856')))[_0x320d43('0x1af5')][_0x320d43('0x17e7')](function(){const _0x5c61bd=_0x320d43;_0x490b88[_0x5c61bd('0x130d')]({'title':_0x5c61bd('0x2105'),'msg':_0x23f978['report'][_0x5c61bd('0x2aa')]?_0x23f978['report']['name']+_0x5c61bd('0x12b0'):''});})[_0x320d43('0x16df')](function(_0x233a23){const _0x323345=_0x320d43;_0x490b88[_0x323345('0x1db9')]({'title':_0x233a23[_0x323345('0x11c5')]?_0x323345('0x14f7')+_0x233a23['status']+_0x323345('0x16e4')+_0x233a23[_0x323345('0x1833')]:'SYSTEM:GETreport','msg':_0x233a23[_0x323345('0x1457')]?JSON[_0x323345('0x678')](_0x233a23[_0x323345('0x1457')]):_0x233a23[_0x323345('0x9b6')]()});});}function _0x126fd0(){const _0x2ea6da=_0xcf121b;_0x23f978['columns']=[],_0x23f978['rows']=[],_0x23f978[_0x2ea6da('0x1db9')]=![],_0x11445b['analyticFieldReport'][_0x2ea6da('0x1c53')]({'fields':_0x2ea6da('0x26ce'),'nolimit':!![],'CustomReportId':_0x23f978[_0x2ea6da('0x9d2')]['id']})[_0x2ea6da('0x1af5')][_0x2ea6da('0x17e7')](function(_0x531ce7){const _0x32b065=_0x2ea6da;return _0x23f978[_0x32b065('0xd72')]=_0x531ce7?_0x531ce7['rows']:[],_0x11445b[_0x32b065('0x18bc')][_0x32b065('0x145b')]({'id':_0x23f978['report']['id']})[_0x32b065('0x1af5')];})[_0x2ea6da('0x17e7')](function(_0x231d09){_0x23f978['rows']=_0x231d09;})['catch'](function(_0x1cbb07){const _0x21d396=_0x2ea6da;console[_0x21d396('0x1d63')](_0x1cbb07),_0x23f978[_0x21d396('0x1db9')]={'title':_0x1cbb07[_0x21d396('0x11c5')]?_0x21d396('0x14f7')+_0x1cbb07[_0x21d396('0x11c5')]+_0x21d396('0x16e4')+_0x1cbb07[_0x21d396('0x1833')]:'SYSTEM:analyticFieldReport','msg':_0x1cbb07[_0x21d396('0x1457')]?_0x1cbb07[_0x21d396('0x1457')][_0x21d396('0x1603')]:_0x1cbb07[_0x21d396('0x9b6')](),'sql':_0x1cbb07['data']?_0x1cbb07[_0x21d396('0x1457')][_0x21d396('0x14e')]?_0x1cbb07[_0x21d396('0x1457')][_0x21d396('0x14e')][_0x21d396('0x28c4')]:_0x21d396('0x827'):_0x21d396('0x827')},_0x490b88[_0x21d396('0x1db9')](_0x23f978[_0x21d396('0x1db9')]);});}function _0x364bb(_0x1aa129,_0x285acc){const _0x36c09e=_0xcf121b;return _0x107a13()(_0x285acc,'YYYY-MM-DDTHH:mm:ssZ',!![])[_0x36c09e('0xc98')]()&&(_0x285acc=_0x107a13()(_0x285acc,'')['format']('YYYY-MM-DD\x20HH:mm:ss')),_0x285acc;}function _0x6ddf3c(){const _0x3e4859=_0xcf121b;return _0x23f978['queryResult']='Loading...',_0x11445b[_0x3e4859('0x18bc')][_0x3e4859('0x826')]({'id':_0x23f978[_0x3e4859('0x9d2')]['id']})['$promise'][_0x3e4859('0x17e7')](function(_0x2b21cf){const _0x543fe3=_0x3e4859;_0x23f978[_0x543fe3('0x117b')]=_0x2b21cf['sql'];})[_0x3e4859('0x16df')](function(_0x129d42){const _0x108a6e=_0x3e4859;_0x23f978['queryResult']='',console[_0x108a6e('0x1d63')](_0x129d42),_0x23f978[_0x108a6e('0x1db9')]={'title':_0x129d42[_0x108a6e('0x11c5')]?'API:'+_0x129d42['status']+_0x108a6e('0x16e4')+_0x129d42[_0x108a6e('0x1833')]:_0x108a6e('0x1aa6'),'msg':_0x129d42[_0x108a6e('0x1457')]?_0x129d42['data'][_0x108a6e('0x1603')]:_0x129d42['toString'](),'sql':_0x129d42[_0x108a6e('0x1457')]?_0x129d42[_0x108a6e('0x1457')][_0x108a6e('0x14e')]?_0x129d42[_0x108a6e('0x1457')]['parent'][_0x108a6e('0x28c4')]:_0x108a6e('0x827'):'NO\x20QUERY'},_0x490b88['error'](_0x23f978[_0x108a6e('0x1db9')]);});}function _0x533dbb(_0x8623f2,_0x11dfa4){const _0x3d280f=_0xcf121b;if(_0x139315(_0x8623f2))return _0x49cbdd()[_0x3d280f('0x787')](_0x8623f2,_0x11dfa4)[_0x3d280f('0x1eba')](',');return'';}function _0x139315(_0x8742ec){return _0x49cbdd()['isArray'](_0x8742ec);}}const _0x175325=_0x15687e;_0xd4d9c9[_0x4376d8('0x1b9c')]=['$location',_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x9d2'),'api',_0x4376d8('0x2883')];function _0xd4d9c9(_0x3e745d,_0x1fd664,_0x1f9b6e,_0x474bc9,_0x2a32a8,_0x430219){const _0x313945=_0x4376d8,_0x41cf4f=this;_0x41cf4f['errors']=[],_0x41cf4f['report']=angular[_0x313945('0x14e5')](_0x474bc9),_0x41cf4f[_0x313945('0x187d')]=_0x1870e5,_0x41cf4f[_0x313945('0x136e')]=_0x3ceb9e,_0x53b341();function _0x53b341(){const _0x28d595=_0x313945;_0x41cf4f['columns']=[],_0x41cf4f[_0x28d595('0x2319')]=[],_0x41cf4f['error']=![];const _0x4d784e={'fields':_0x28d595('0x26ce'),'nolimit':!![]};_0x4d784e[_0x430219==='analyticCustomReport'?_0x28d595('0x9a6'):_0x28d595('0x1d5b')]=_0x41cf4f[_0x28d595('0x9d2')]['id'],_0x41cf4f['promise']=_0x2a32a8['analyticFieldReport'][_0x28d595('0x1c53')](_0x4d784e)[_0x28d595('0x1af5')][_0x28d595('0x17e7')](function(_0x2dd014){const _0x274182=_0x28d595;return _0x41cf4f['columns']=_0x2dd014?_0x2dd014[_0x274182('0x2319')]:[],_0x2a32a8[_0x430219][_0x274182('0x145b')]({'id':_0x41cf4f[_0x274182('0x9d2')]['id']})[_0x274182('0x1af5')];})['then'](function(_0xa7c6d4){const _0x5cf0d3=_0x28d595;_0x41cf4f[_0x5cf0d3('0x2319')]=_0xa7c6d4;})[_0x28d595('0x16df')](function(_0x4e76a3){const _0x481185=_0x28d595;console[_0x481185('0x1d63')](_0x4e76a3),_0x41cf4f[_0x481185('0x1db9')]={'title':_0x4e76a3[_0x481185('0x11c5')]?_0x481185('0x14f7')+_0x4e76a3[_0x481185('0x11c5')]+_0x481185('0x16e4')+_0x4e76a3[_0x481185('0x1833')]:_0x481185('0x1aa6'),'msg':_0x4e76a3[_0x481185('0x1457')]?_0x4e76a3[_0x481185('0x1457')][_0x481185('0x1603')]:_0x4e76a3[_0x481185('0x9b6')](),'sql':_0x4e76a3[_0x481185('0x1457')]?_0x4e76a3['data']['parent']?_0x4e76a3['data'][_0x481185('0x14e')][_0x481185('0x28c4')]:_0x481185('0x827'):_0x481185('0x827')},_0x1f9b6e[_0x481185('0x1db9')](_0x41cf4f[_0x481185('0x1db9')]);});}function _0x1870e5(_0x4ee057,_0x3088a8){const _0x237733=_0x313945;return _0x107a13()(_0x3088a8,_0x237733('0xfd0'),!![])['isValid']()&&(_0x3088a8=_0x107a13()(_0x3088a8,'')['format']('YYYY-MM-DD\x20HH:mm:ss')),_0x3088a8;}function _0x3ceb9e(){_0x1fd664['hide']();}}const _0x2022e2=_0xd4d9c9,_0x882e2b=_0x4cf2bc['p']+'src/js/modules/main/apps/analytics/views/reports/copy/dialog.html/dialog.html',_0x112fb5=_0x4cf2bc['p']+_0x4376d8('0x161f'),_0x160139=_0x4cf2bc['p']+_0x4376d8('0xbe5'),_0x908707=_0x4cf2bc['p']+_0x4376d8('0xec7');_0x4a7a6d[_0x4376d8('0x1b9c')]=['$scope','$timeout',_0x4376d8('0x26ca'),_0x4376d8('0x14f6'),_0x4376d8('0xc4c'),_0x4376d8('0x198f'),_0x4376d8('0x28da'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1ab7'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x4a7a6d(_0x596446,_0x39e141,_0xfb87b,_0x77ba2a,_0x2d7c54,_0x61a18c,_0x225fd7,_0x13cc31,_0x4c4796,_0x17517f,_0x578205,_0x512c9a,_0x4ebce1){const _0x35efdb=_0x4376d8,_0x376f98=this;_0x376f98['currentUser']=_0x4ebce1[_0x35efdb('0x2831')](),_0x376f98[_0x35efdb('0xe04')]={'count':0x0,'rows':[]},_0x376f98[_0x35efdb('0xdeb')]=_0x13cc31,_0x376f98['userProfileSection']=_0x4c4796&&_0x4c4796[_0x35efdb('0x335')]==0x1?_0x4c4796[_0x35efdb('0x2319')][0x0]:null,_0x376f98['crudPermissions']=_0x4ebce1['parseCrudPermissions'](_0x376f98[_0x35efdb('0x383')]?_0x376f98[_0x35efdb('0x383')][_0x35efdb('0x103e')]:null),_0x376f98[_0x35efdb('0x842')]=[],_0x376f98[_0x35efdb('0x826')]={'fields':'createdAt,updatedAt,id,name,description,table,parent,conditions,joins','limit':0xa,'page':0x1,'sort':_0x35efdb('0x1ac6')},_0x376f98[_0x35efdb('0x2883')]=null,_0x376f98[_0x35efdb('0xab1')]='',_0x376f98[_0x35efdb('0x14e8')]=!![],_0x376f98[_0x35efdb('0xcd4')]=_0x4276f4,_0x376f98[_0x35efdb('0x26b1')]=_0x13ad7f,_0x376f98['previewdialog']=_0x2163b3,_0x376f98[_0x35efdb('0x2853')]=_0x1f22e4,_0x376f98[_0x35efdb('0x165e')]=_0x3789db,_0x376f98['deleteconfirm']=_0x50ea3e,_0x376f98['success']=_0x57ad52,_0x376f98['getReports']=_0x216e36,_0x376f98[_0x35efdb('0x127d')]=_0x325f8a,_0x376f98[_0x35efdb('0x16f5')]=_0x15398a,_0x376f98[_0x35efdb('0x1d3')]=_0x4571bb,_0x376f98['exportSelectedReports']=_0x9528db,_0x376f98[_0x35efdb('0xa4d')]=_0x3e368a,_0x376f98['deselectReports']=_0x5d0bad,_0x376f98[_0x35efdb('0x108d')]=_0x586c9e,_0x376f98[_0x35efdb('0x233d')]=_0x578205[_0x35efdb('0x2319')][0x0]?angular['fromJson'](_0x578205[_0x35efdb('0x2319')][0x0][_0x35efdb('0x204b')]):[],_0x376f98[_0x35efdb('0xae0')]=_0x578205[_0x35efdb('0x2319')][0x1]?angular[_0x35efdb('0x12e6')](_0x578205[_0x35efdb('0x2319')][0x1]['tree']):[],_0x376f98[_0x35efdb('0x268f')]=_0x572da9(![]),_0x376f98[_0x35efdb('0x27f6')]=_0x572da9(!![]),_0x376f98[_0x35efdb('0x1cce')]=_0x64b62(![]),_0x376f98[_0x35efdb('0x1ef9')]=_0x64b62(!![]);function _0x4276f4(_0x36b7f5){_0x2d7c54['go']('app.analytics.reports.edit',{'id':_0x36b7f5['id'],'crudPermissions':_0x376f98['crudPermissions']});}function _0x13ad7f(_0x49a93c,_0x263394){const _0x36fa67=_0x35efdb;_0x77ba2a[_0x36fa67('0x28e2')]({'controller':_0x36fa67('0x18cf'),'controllerAs':'vm','templateUrl':_0x882e2b,'parent':angular[_0x36fa67('0x1ce1')](_0xfb87b[_0x36fa67('0x13aa')]),'targetEvent':_0x263394,'clickOutsideToClose':!![],'locals':{'report':_0x49a93c,'apiName':_0x376f98[_0x36fa67('0x2883')],'treeCustomData':_0x376f98[_0x36fa67('0x24ea')][_0x36fa67('0x1cf1')](!![])[_0x36fa67('0x1e3a')]('#')}})['finally'](function(){});}function _0x2163b3(_0x56dee3,_0x26a12b){const _0x2d4dd5=_0x35efdb;_0x77ba2a[_0x2d4dd5('0x28e2')]({'controller':_0x2d4dd5('0x1362'),'controllerAs':'vm','templateUrl':_0x112fb5,'parent':angular[_0x2d4dd5('0x1ce1')](_0xfb87b[_0x2d4dd5('0x13aa')]),'targetEvent':_0x26a12b,'clickOutsideToClose':!![],'locals':{'report':_0x56dee3,'apiName':_0x376f98['apiName']}});}function _0x1f22e4(_0x4e1530,_0x2af2da){const _0x41de51=_0x35efdb;_0x77ba2a[_0x41de51('0x28e2')]({'controller':_0x41de51('0x18bb'),'controllerAs':'vm','templateUrl':_0x160139,'parent':angular['element'](_0xfb87b[_0x41de51('0x13aa')]),'targetEvent':_0x2af2da,'clickOutsideToClose':!![],'locals':{'report':_0x4e1530,'apiName':_0x376f98['apiName'],'currentPath':_0x376f98[_0x41de51('0xab1')]}});}function _0x3789db(_0x24407d){const _0x1f255d=_0x35efdb;let _0x531af3;_0x17517f[_0x1f255d('0x2103')]['get']({'fields':_0x1f255d('0x1209'),'nolimit':!![]})['$promise'][_0x1f255d('0x17e7')](function(_0x53c433){const _0x275956=_0x1f255d;_0x531af3=_0x49cbdd()['keyBy'](_0x53c433[_0x275956('0x2319')],'id');const _0x2cb23c={'fields':'field,alias,function,format,groupBy,orderBy,custom,MetricId','nolimit':!![]};return _0x2cb23c[_0x376f98[_0x275956('0x2883')]===_0x275956('0x18bc')?'CustomReportId':_0x275956('0x1d5b')]=_0x24407d['id'],_0x17517f[_0x275956('0x1a36')][_0x275956('0x1c53')](_0x2cb23c)[_0x275956('0x1af5')];})[_0x1f255d('0x17e7')](function(_0x2ad7bf){const _0x1c5416=_0x1f255d;for(let _0x4f44e2=0x0;_0x4f44e2<_0x2ad7bf[_0x1c5416('0x2319')][_0x1c5416('0x1f73')];_0x4f44e2+=0x1){_0x2ad7bf[_0x1c5416('0x2319')][_0x4f44e2][_0x1c5416('0x150f')]&&(_0x2ad7bf['rows'][_0x4f44e2][_0x1c5416('0x1515')]=_0x531af3[_0x2ad7bf[_0x1c5416('0x2319')][_0x4f44e2][_0x1c5416('0x150f')]]['metric'],_0x2ad7bf[_0x1c5416('0x2319')][_0x4f44e2][_0x1c5416('0x8fa')]=!![]),delete _0x2ad7bf[_0x1c5416('0x2319')][_0x4f44e2]['MetricId'];}const _0x3c27f6=_0x61a18c[_0x1c5416('0x2be')][_0x1c5416('0x68d')]('a');_0x3c27f6[_0x1c5416('0x448')]='data:text/json;charset=utf-8,'+_0x61a18c[_0x1c5416('0x1f71')](angular[_0x1c5416('0x1d04')]({'name':_0x24407d[_0x1c5416('0x2aa')],'description':_0x24407d[_0x1c5416('0x986')],'table':_0x24407d[_0x1c5416('0x23c3')],'conditions':_0x24407d['conditions'],'joins':_0x24407d[_0x1c5416('0x1856')],'fields':_0x2ad7bf[_0x1c5416('0x2319')]})),_0x3c27f6[_0x1c5416('0x1244')]=_0x24407d[_0x1c5416('0x2aa')]+_0x1c5416('0x18df'),_0x3c27f6[_0x1c5416('0x8cf')]=_0x1c5416('0x2345'),_0x3c27f6[_0x1c5416('0x20d4')](),_0x512c9a[_0x1c5416('0x130d')]({'title':'Report\x20downloaded!','msg':_0x24407d[_0x1c5416('0x2aa')]?_0x24407d[_0x1c5416('0x2aa')]+_0x1c5416('0x386'):''});})['catch'](function(_0x157e79){const _0xd80164=_0x1f255d;_0x512c9a[_0xd80164('0x1db9')]({'title':_0x157e79['status']?_0xd80164('0x14f7')+_0x157e79[_0xd80164('0x11c5')]+_0xd80164('0x16e4')+_0x157e79[_0xd80164('0x1833')]:_0xd80164('0x26a3'),'msg':_0x157e79[_0xd80164('0x1457')]?JSON[_0xd80164('0x678')](_0x157e79['data']):_0x157e79[_0xd80164('0x9b6')]()});});}function _0x50ea3e(_0x332a96,_0x5a5fa7){const _0x310e0b=_0x35efdb,_0x176df6=_0x77ba2a[_0x310e0b('0x1121')]()[_0x310e0b('0x24d3')](_0x310e0b('0x98a'))[_0x310e0b('0x211f')](''+_0x332a96[_0x310e0b('0x2aa')]+_0x310e0b('0x1d23')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x310e0b('0x5fb'))[_0x310e0b('0x104f')](_0x5a5fa7)['ok']('OK')[_0x310e0b('0x1d47')](_0x310e0b('0x28a0'));_0x77ba2a['show'](_0x176df6)['then'](function(){_0x4571bb(_0x332a96);},function(){const _0x37194d=_0x310e0b;console[_0x37194d('0x1d63')]('CANCEL');});}let _0x471da1=!![],_0x4c5a9b=0x1;_0x596446['$watch']('vm.query.filter',function(_0x5a3ab4,_0x287a52){const _0x45a09d=_0x35efdb;_0x471da1?_0x39e141(function(){_0x471da1=![];}):(!_0x287a52&&(_0x4c5a9b=_0x376f98[_0x45a09d('0x826')][_0x45a09d('0x115a')]),_0x5a3ab4!==_0x287a52&&(_0x376f98[_0x45a09d('0x826')][_0x45a09d('0x115a')]=0x1),!_0x5a3ab4&&(_0x376f98[_0x45a09d('0x826')][_0x45a09d('0x115a')]=_0x4c5a9b),_0x376f98[_0x45a09d('0x1e08')]());}),_0x596446[_0x35efdb('0x620')]('vm.search',function(_0xfc4514){const _0x42cefd=_0x35efdb;_0x376f98['treeDefaultInstance']&&_0x376f98['treeDefaultInstance'][_0x42cefd('0x1cf1')](!![])[_0x42cefd('0xfba')](_0xfc4514),_0x376f98[_0x42cefd('0x24ea')]&&_0x376f98[_0x42cefd('0x24ea')][_0x42cefd('0x1cf1')](!![])[_0x42cefd('0xfba')](_0xfc4514);});function _0x57ad52(_0x1635f6){const _0x29f06e=_0x35efdb;_0x376f98[_0x29f06e('0xe04')]=_0x1635f6||{'count':0x0,'rows':[]};}function _0x216e36(){const _0x30f12b=_0x35efdb;_0x376f98[_0x30f12b('0x826')][_0x30f12b('0xf19')]=(_0x376f98[_0x30f12b('0x826')][_0x30f12b('0x115a')]-0x1)*_0x376f98[_0x30f12b('0x826')][_0x30f12b('0x193b')];if(_0x376f98['apiName']){if(_0x376f98[_0x30f12b('0x197c')]['role']===_0x30f12b('0x20bf')||_0x376f98[_0x30f12b('0x383')][_0x30f12b('0x9e3')])_0x376f98[_0x30f12b('0x1691')]=_0x17517f[_0x376f98[_0x30f12b('0x2883')]][_0x30f12b('0x1c53')](_0x376f98[_0x30f12b('0x826')],_0x57ad52)[_0x30f12b('0x1af5')];else{let _0x2976b9=[];_0x376f98[_0x30f12b('0x1691')]=_0x17517f[_0x376f98['apiName']][_0x30f12b('0x1c53')](_0x376f98['query'])[_0x30f12b('0x1af5')]['then'](function(_0x43c5b9){const _0x498d28=_0x30f12b;return _0x2976b9=_0x43c5b9&&_0x43c5b9[_0x498d28('0x2319')]?_0x43c5b9[_0x498d28('0x2319')]:[],_0x2976b9['length']>0x0?_0x17517f[_0x498d28('0x78d')][_0x498d28('0x1c53')]({'sectionId':_0x376f98[_0x498d28('0x383')]['id'],'type':_0x376f98[_0x498d28('0x2883')]==='analyticDefaultReport'?_0x498d28('0x9fb'):'CustomReports'})[_0x498d28('0x1af5')][_0x498d28('0x17e7')](function(_0xf3252f){const _0x739ab4=_0x498d28,_0x470a37=_0xf3252f&&_0xf3252f[_0x739ab4('0x2319')]?_0xf3252f[_0x739ab4('0x2319')]:[];if(_0x470a37[_0x739ab4('0x1f73')]>0x0){const _0x40b571=[];return _0x2976b9[_0x739ab4('0xccd')](function(_0x2e050a){const _0x4372ea=_0x739ab4,_0xe6d050=_0x49cbdd()[_0x4372ea('0xe8e')](_0x470a37,['resourceId',_0x2e050a['id']]);if(_0xe6d050)_0x40b571['push'](_0x2e050a);}),_0x57ad52({'count':_0x40b571['length'],'rows':_0x40b571});}else return _0x57ad52(null);}):_0x57ad52(null);});}}}function _0x325f8a(_0xe8c336,_0x1764bf){const _0x58d0ab=_0x35efdb;_0x77ba2a[_0x58d0ab('0x28e2')]({'controller':_0x58d0ab('0x21cb'),'controllerAs':'vm','templateUrl':_0x908707,'parent':angular[_0x58d0ab('0x1ce1')](_0xfb87b[_0x58d0ab('0x13aa')]),'targetEvent':_0xe8c336,'clickOutsideToClose':!![],'locals':{'report':_0x1764bf,'reports':_0x376f98[_0x58d0ab('0xe04')]['rows'],'apiName':_0x376f98[_0x58d0ab('0x2883')],'currentNode':_0x376f98['currentNode'],'setting':null,'crudPermissions':_0x376f98[_0x58d0ab('0x103e')]}});}function _0x15398a(_0x1b8a73){const _0x17fc86=_0x35efdb;if(_0x1b8a73[_0x17fc86('0xc89')]['type']===_0x17fc86('0x225c')){const _0x5e4a41=new FileReader();_0x5e4a41[_0x17fc86('0x2a1')]=function(_0x4ee6b3){const _0x3ad226=_0x17fc86;console[_0x3ad226('0x1d63')](_0x4ee6b3[_0x3ad226('0x8cf')]['result']);try{let _0x15f0e8=atob(_0x4ee6b3['target'][_0x3ad226('0x2284')]['split'](',')[0x1]);_0x15f0e8=angular[_0x3ad226('0x12e6')](_0x15f0e8),_0x17517f[_0x3ad226('0x18bc')]['save']({'name':_0x15f0e8[_0x3ad226('0x2aa')],'description':_0x15f0e8['description'],'table':_0x15f0e8[_0x3ad226('0x23c3')],'conditions':_0x15f0e8[_0x3ad226('0x1d44')],'joins':_0x15f0e8[_0x3ad226('0x1856')],'parent':_0x376f98['currentNode']['id']})[_0x3ad226('0x1af5')]['then'](function(_0x39cb00){const _0x43afc7=_0x3ad226;_0x376f98[_0x43afc7('0xe04')][_0x43afc7('0x2319')][_0x43afc7('0x1893')](_0x39cb00),_0x512c9a[_0x43afc7('0x130d')]({'title':'Report\x20saved!','msg':_0x39cb00[_0x43afc7('0x2aa')]?_0x39cb00[_0x43afc7('0x2aa')]+_0x43afc7('0x15ca'):''});const _0x6dad91=_0x49cbdd()[_0x43afc7('0x787')](_0x15f0e8[_0x43afc7('0x9c9')],function(_0x353d8d){const _0x4b94aa=_0x43afc7;return _0x49cbdd()[_0x4b94aa('0x15f7')]({},_0x353d8d,{'CustomReportId':_0x39cb00['id']});});return _0x17517f['analyticFieldReport'][_0x43afc7('0x2168')](_0x6dad91)[_0x43afc7('0x1af5')];})[_0x3ad226('0x17e7')](function(){const _0x1e2142=_0x3ad226;_0x512c9a['success']({'title':_0x1e2142('0x28e3'),'msg':_0x1e2142('0x1726')});})[_0x3ad226('0x16df')](function(_0x349229){const _0x4eb858=_0x3ad226;_0x512c9a[_0x4eb858('0x1db9')]({'title':_0x349229[_0x4eb858('0x11c5')]?_0x4eb858('0x14f7')+_0x349229[_0x4eb858('0x11c5')]+_0x4eb858('0x16e4')+_0x349229[_0x4eb858('0x1833')]:_0x4eb858('0xc4'),'msg':_0x349229['data']?JSON['stringify'](_0x349229[_0x4eb858('0x1457')]):_0x349229[_0x4eb858('0x9b6')]()});});}catch(_0x15634c){console[_0x3ad226('0x1db9')](_0x15634c),_0x512c9a[_0x3ad226('0x1db9')]({'title':'Decode\x20File\x20Error','msg':_0x15634c['toString']()});}},_0x5e4a41['readAsDataURL'](_0x1b8a73[_0x17fc86('0xc89')]);}else _0x512c9a['error']({'title':_0x17fc86('0x27dc'),'msg':_0x17fc86('0xf6c')});}function _0x4571bb(_0x1ff17b){const _0x286ea1=_0x35efdb;_0x376f98[_0x286ea1('0x2883')]&&_0x17517f[_0x376f98[_0x286ea1('0x2883')]][_0x286ea1('0x1da6')]({'id':_0x1ff17b['id']})[_0x286ea1('0x1af5')][_0x286ea1('0x17e7')](function(){const _0x28c445=_0x286ea1;_0x49cbdd()[_0x28c445('0x5f3')](_0x376f98[_0x28c445('0xe04')][_0x28c445('0x2319')],{'id':_0x1ff17b['id']}),_0x376f98['reports']['count']-=0x1,!_0x376f98[_0x28c445('0xe04')][_0x28c445('0x2319')][_0x28c445('0x1f73')]&&_0x376f98[_0x28c445('0x1e08')](),_0x512c9a[_0x28c445('0x130d')]({'title':_0x28c445('0x11f1'),'msg':_0x1ff17b[_0x28c445('0x2aa')]?_0x1ff17b[_0x28c445('0x2aa')]+_0x28c445('0x149f'):''});})[_0x286ea1('0x16df')](function(_0x543755){const _0x440683=_0x286ea1;if(_0x543755['data']&&_0x543755['data'][_0x440683('0x73e')]&&_0x543755[_0x440683('0x1457')][_0x440683('0x73e')][_0x440683('0x1f73')]){_0x376f98[_0x440683('0x73e')]=_0x543755[_0x440683('0x1457')][_0x440683('0x73e')]||[{'message':_0x543755[_0x440683('0x9b6')](),'type':_0x440683('0x776')}];for(let _0x8e3cd7=0x0;_0x8e3cd7<_0x543755[_0x440683('0x1457')]['errors'][_0x440683('0x1f73')];_0x8e3cd7++){_0x512c9a[_0x440683('0x1db9')]({'title':_0x543755[_0x440683('0x1457')][_0x440683('0x73e')][_0x8e3cd7]['type'],'msg':_0x543755[_0x440683('0x1457')][_0x440683('0x73e')][_0x8e3cd7]['message']});}}else _0x512c9a[_0x440683('0x1db9')]({'title':_0x543755[_0x440683('0x11c5')]?_0x440683('0x14f7')+_0x543755['status']+_0x440683('0x16e4')+_0x543755['statusText']:'api.analyticreport.delete','msg':_0x543755[_0x440683('0x1457')]?JSON[_0x440683('0x678')](_0x543755['data'][_0x440683('0x1603')]):_0x543755['message']||_0x543755['toString']()});});}function _0x9528db(){const _0x23aeb6=_0x35efdb,_0x1881b7=angular['copy'](_0x376f98[_0x23aeb6('0x842')]);return _0x376f98[_0x23aeb6('0x842')]=[],_0x1881b7;}function _0x3e368a(_0x195009){const _0x5b46d1=_0x35efdb,_0x1a59e6=_0x77ba2a[_0x5b46d1('0x1121')]()['title'](_0x5b46d1('0x1806'))[_0x5b46d1('0x211f')](_0x5b46d1('0xa53')+_0x376f98[_0x5b46d1('0x842')][_0x5b46d1('0x1f73')]+_0x5b46d1('0x145a')+_0x5b46d1('0xe9f'))[_0x5b46d1('0x2095')](_0x5b46d1('0x1ec9'))['targetEvent'](_0x195009)['ok']('OK')[_0x5b46d1('0x1d47')](_0x5b46d1('0x28a0'));_0x77ba2a[_0x5b46d1('0x28e2')](_0x1a59e6)[_0x5b46d1('0x17e7')](function(){const _0x53ab15=_0x5b46d1;_0x376f98['selectedReports']['forEach'](function(_0x4c9151){_0x4571bb(_0x4c9151);}),_0x376f98[_0x53ab15('0x842')]=[];});}function _0x5d0bad(){const _0x2e4096=_0x35efdb;_0x376f98[_0x2e4096('0x842')]=[];}function _0x586c9e(){const _0x3b5e98=_0x35efdb;_0x376f98[_0x3b5e98('0x842')]=_0x376f98[_0x3b5e98('0xe04')][_0x3b5e98('0x2319')];}function _0x15b4a2(_0xff36f2,_0x58c6f3){const _0x5c4919=_0x35efdb;_0x376f98['treeDefaultInstance'][_0x5c4919('0x1cf1')](!![])[_0x5c4919('0x221b')](),_0x376f98[_0x5c4919('0x68c')][_0x5c4919('0x1cf1')](!![])['close_all'](),_0x376f98['currentNode']=_0x58c6f3['node'],_0x376f98[_0x5c4919('0x5af')][_0x5c4919('0x8fa')]=!![],_0x376f98[_0x5c4919('0xab1')]=_0x376f98[_0x5c4919('0x24ea')][_0x5c4919('0x1cf1')](!![])[_0x5c4919('0x94b')](_0x376f98[_0x5c4919('0x5af')])[_0x5c4919('0x1eba')]('/\x20'),_0x376f98[_0x5c4919('0x2883')]=_0x5c4919('0x18bc'),_0x376f98[_0x5c4919('0x826')][_0x5c4919('0x14e')]=_0x58c6f3['node']['id'],_0x216e36();}function _0x54f474(_0x540a63,_0x3393fd){const _0x99a0a5=_0x35efdb;_0x376f98[_0x99a0a5('0x24ea')][_0x99a0a5('0x1cf1')](!![])[_0x99a0a5('0x221b')](),_0x376f98['treeCustomInstance'][_0x99a0a5('0x1cf1')](!![])[_0x99a0a5('0x1746')](),_0x376f98[_0x99a0a5('0x5af')]=_0x3393fd[_0x99a0a5('0x10a')],_0x376f98[_0x99a0a5('0x5af')][_0x99a0a5('0x8fa')]=![],_0x376f98['currentPath']=_0x376f98['treeDefaultInstance'][_0x99a0a5('0x1cf1')](!![])['get_path'](_0x376f98[_0x99a0a5('0x5af')])[_0x99a0a5('0x1eba')]('/\x20'),_0x376f98[_0x99a0a5('0x2883')]='analyticDefaultReport',_0x376f98[_0x99a0a5('0x826')][_0x99a0a5('0x14e')]=_0x3393fd[_0x99a0a5('0x10a')]['id'],_0x216e36();}function _0x15248f(_0x17dec7,_0x24cd05){const _0x1a10ef=_0x35efdb,_0x41e5ad=angular[_0x1a10ef('0x1d04')](_0x376f98['treeCustomInstance']['jstree'](!![])['get_json']('#'));_0x17517f[_0x1a10ef('0x148')]['update']({'id':0x2,'tree':_0x41e5ad})[_0x1a10ef('0x1af5')][_0x1a10ef('0x17e7')](function(){const _0x306fcb=_0x1a10ef;_0x578205['rows'][0x1]&&(_0x578205['rows'][0x1]['tree']=_0x41e5ad),_0x512c9a[_0x306fcb('0x130d')]({'title':_0x306fcb('0x1cf5'),'msg':_0x24cd05[_0x306fcb('0x10a')][_0x306fcb('0x132f')]?_0x24cd05['node']['text']+_0x306fcb('0x12b0'):'Node\x20has\x20been\x20updated!'});})[_0x1a10ef('0x16df')](function(_0x59d6ac){const _0x13097d=_0x1a10ef;_0x512c9a[_0x13097d('0x1db9')]({'title':_0x59d6ac[_0x13097d('0x11c5')]?'API:'+_0x59d6ac[_0x13097d('0x11c5')]+_0x13097d('0x16e4')+_0x59d6ac[_0x13097d('0x1833')]:'SYSTEM:UPDATEanalyticTreeReport','msg':_0x59d6ac[_0x13097d('0x1457')]?JSON[_0x13097d('0x678')](_0x59d6ac['data']):_0x59d6ac[_0x13097d('0x9b6')]()});});}function _0x572da9(_0x14b136){const _0x4453b8=_0x35efdb;return{'core':{'multiple':![],'animation':!![],'error':function(_0x45389f){const _0x1be14f=a0_0xd29e;console['error'](_0x1be14f('0x12b8')+angular[_0x1be14f('0x1d04')](_0x45389f));},'check_callback':!![],'worker':!![]},'version':0x1,'plugins':_0x14b136?[_0x4453b8('0x25a6'),_0x4453b8('0x1dc6'),_0x4453b8('0xfba'),_0x4453b8('0x1b9a'),_0x4453b8('0x1b19')]:[_0x4453b8('0xfba'),'state',_0x4453b8('0x1b19')],'contextmenu':{'items':function(_0x413771){const _0x2d8519=_0x4453b8,_0x344989={};return _0x376f98[_0x2d8519('0x103e')]['canEdit']&&_0x49cbdd()[_0x2d8519('0x1048')](_0x344989,{'create':{'label':_0x225fd7[_0x2d8519('0x1acc')](_0x2d8519('0x9c0')),'action':function(){const _0x3413ca=_0x2d8519;_0x413771=_0x376f98['treeCustomInstance'][_0x3413ca('0x1cf1')](!![])[_0x3413ca('0x22c3')](_0x413771),_0x376f98[_0x3413ca('0x24ea')][_0x3413ca('0x1cf1')](!![])['edit'](_0x413771);}},'rename':{'_disabled':_0x413771['parent']==='#','label':_0x225fd7[_0x2d8519('0x1acc')]('ANALYTICS.RENAME'),'action':function(){const _0x290f14=_0x2d8519;_0x376f98[_0x290f14('0x24ea')]['jstree'](!![])[_0x290f14('0x21dd')](_0x413771);}}}),_0x376f98[_0x2d8519('0x103e')]['canDelete']&&_0x49cbdd()['assign'](_0x344989,{'remove':{'_disabled':_0x413771['parent']==='#','label':_0x225fd7[_0x2d8519('0x1acc')](_0x2d8519('0x1811')),'action':function(){const _0x1769bf=_0x2d8519,_0x35ab7f=_0x77ba2a[_0x1769bf('0x1121')]()[_0x1769bf('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20node?')['htmlContent'](_0x1769bf('0xa53')+(_0x413771[_0x1769bf('0x132f')]?_0x413771[_0x1769bf('0x132f')]:_0x1769bf('0x274a'))+''+_0x1769bf('0x10b8'))[_0x1769bf('0x2095')](_0x1769bf('0x171a'))['ok']('OK')['cancel'](_0x1769bf('0x28a0'));_0x77ba2a[_0x1769bf('0x28e2')](_0x35ab7f)[_0x1769bf('0x17e7')](function(){const _0x569e3c=_0x1769bf;let _0x3ceef9=_0x376f98[_0x569e3c('0x24ea')][_0x569e3c('0x1cf1')](!![])[_0x569e3c('0x1e02')](_0x413771);_0x3ceef9=_0x376f98[_0x569e3c('0x24ea')][_0x569e3c('0x1cf1')](!![])['get_node'](_0x3ceef9),_0x376f98[_0x569e3c('0x24ea')][_0x569e3c('0x1cf1')](!![])[_0x569e3c('0xf33')](_0x413771),_0x468e54([_0x413771['id']][_0x569e3c('0xe1b')](_0x413771[_0x569e3c('0x14a7')]||[])),_0x376f98['treeCustomInstance'][_0x569e3c('0x1cf1')](!![])[_0x569e3c('0x2835')](_0x3ceef9);});}}}),_0x344989;}}};}function _0x468e54(_0x191ef1){const _0x2eb37e=_0x35efdb;return _0x17517f[_0x2eb37e('0x18bc')][_0x2eb37e('0x1c53')]({'parent':_0x191ef1[_0x2eb37e('0x1eba')](','),'fields':'id,name'})['$promise'][_0x2eb37e('0x17e7')](function(_0x4df2a6){const _0xbb473f=_0x2eb37e;_0x4df2a6&&_0x4df2a6[_0xbb473f('0x2319')]&&_0x4df2a6[_0xbb473f('0x2319')]['forEach'](function(_0x47f0fc){_0x4571bb(_0x47f0fc);});})[_0x2eb37e('0x16df')](function(_0x1f8e93){const _0x3333e0=_0x2eb37e;_0x512c9a[_0x3333e0('0x1db9')]({'title':_0x1f8e93[_0x3333e0('0x11c5')]?_0x3333e0('0x14f7')+_0x1f8e93[_0x3333e0('0x11c5')]+_0x3333e0('0x16e4')+_0x1f8e93[_0x3333e0('0x1833')]:_0x3333e0('0xbd'),'msg':_0x1f8e93[_0x3333e0('0x1457')]?JSON[_0x3333e0('0x678')](_0x1f8e93[_0x3333e0('0x1457')]):_0x1f8e93[_0x3333e0('0x9b6')]()});});}function _0x64b62(_0x315676){return _0x315676?{'create_node':_0x15248f,'rename_node':_0x15248f,'move_node':_0x15248f,'delete_node':_0x15248f,'select_node':_0x15b4a2}:{'select_node':_0x54f474};}}const _0x4d024e=_0x4a7a6d,_0x4dab18=_0x4cf2bc['p']+_0x4376d8('0x54b');_0x6d22f['$inject']=[_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x9d2'),_0x4376d8('0x212e'),'apiName',_0x4376d8('0x26ca'),'currentPath'];function _0x6d22f(_0xb98e27,_0xdcfa63,_0x747012,_0xeb8ff5,_0xbf160a,_0x103468,_0x364a28,_0x143929){const _0x2a7263=_0x4376d8,_0x5e1333=this;_0x5e1333[_0x2a7263('0x73e')]=[],_0x5e1333['report']=angular[_0x2a7263('0x14e5')](_0xeb8ff5),_0x5e1333[_0x2a7263('0x21a9')]={},_0x5e1333[_0x2a7263('0x616')]=_0x5c34e5,_0x5e1333[_0x2a7263('0x136e')]=_0x4a18b5,_0x5e1333['refreshDate']=_0x5e27ce,_0x5e27ce();function _0x5e27ce(){const _0x4ceb55=_0x2a7263;_0x5e1333[_0x4ceb55('0x21a9')]={'id':_0x5e1333['report']['id'],'name':_0x5e1333[_0x4ceb55('0x9d2')][_0x4ceb55('0x2aa')],'startDate':new Date(_0x107a13()()['startOf'](_0x4ceb55('0x26d6'))),'endDate':new Date(_0x107a13()()[_0x4ceb55('0x200e')](_0x4ceb55('0x26d6'))),'output':_0x4ceb55('0x181e'),'fullPath':_0x143929?_0x143929+'/'+_0x5e1333[_0x4ceb55('0x9d2')][_0x4ceb55('0x2aa')]:_0x5e1333[_0x4ceb55('0x9d2')][_0x4ceb55('0x2aa')]};}function _0x5c34e5(_0x5c0f15){const _0x929503=_0x2a7263;_0x5e1333[_0x929503('0x73e')]=[],_0x5e1333[_0x929503('0x938')]=_0x49cbdd()['assign']({},_0x5e1333[_0x929503('0x21a9')],{'startDate':_0x107a13()(_0x5e1333[_0x929503('0x21a9')][_0x929503('0x7a8')])['format'](_0x929503('0x1e17')),'endDate':_0x107a13()(_0x5e1333[_0x929503('0x21a9')][_0x929503('0x237d')])[_0x929503('0x1c0d')]('YYYY-MM-DD\x20HH:mm:ss')}),_0xbf160a[_0x103468][_0x929503('0x1a46')](_0x5e1333[_0x929503('0x938')])[_0x929503('0x1af5')]['then'](function(_0x51750e){const _0x2b7e00=_0x929503;_0x5e1333['export'][_0x2b7e00('0x2ad')]===_0x2b7e00('0x11')?_0xdcfa63['show']({'controller':_0x2b7e00('0x611'),'controllerAs':'vm','templateUrl':_0x4dab18,'parent':angular[_0x2b7e00('0x1ce1')](_0x364a28[_0x2b7e00('0x13aa')]),'targetEvent':_0x5c0f15,'skipHide':!![],'locals':{'apiName':_0x103468,'exportDate':_0x5e1333[_0x2b7e00('0x938')],'results':_0x51750e},'resolve':{'columns':['apiResolver',function(_0x4421d8){const _0x1118f0=_0x2b7e00,_0x10b919={'fields':_0x1118f0('0x26ce'),'nolimit':!![]};return _0x10b919[_0x103468==='analyticCustomReport'?'CustomReportId':_0x1118f0('0x1d5b')]=_0x5e1333['report']['id'],_0x4421d8['resolve'](_0x1118f0('0x1614'),_0x10b919);}]}}):(_0x747012[_0x2b7e00('0x130d')]({'title':_0x2b7e00('0x1497'),'msg':_0x5e1333[_0x2b7e00('0x9d2')][_0x2b7e00('0x2aa')]?_0x5e1333[_0x2b7e00('0x9d2')][_0x2b7e00('0x2aa')]+_0x2b7e00('0x2173'):''}),_0x4a18b5());})['catch'](function(_0x1a4614){const _0x29fa04=_0x929503;_0x747012[_0x29fa04('0x1db9')]({'title':_0x1a4614['status']?_0x29fa04('0x14f7')+_0x1a4614[_0x29fa04('0x11c5')]+_0x29fa04('0x16e4')+_0x1a4614['statusText']:_0x29fa04('0x150c'),'msg':_0x1a4614[_0x29fa04('0x1457')]?JSON[_0x29fa04('0x678')](_0x1a4614[_0x29fa04('0x1457')][_0x29fa04('0x1603')]):_0x1a4614[_0x29fa04('0x9b6')]()});});}function _0x4a18b5(){_0xdcfa63['hide']();}}const _0x344c20=_0x6d22f;_0x323608[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0xd72'),_0x4376d8('0x2a'),_0x4376d8('0x2883'),_0x4376d8('0x938')];function _0x323608(_0x3a509a,_0x5a0f75,_0xa4ae98,_0x2b6391,_0x7c24bb,_0x52e9d5,_0x34a5f5){const _0x13d1d3=_0x4376d8,_0x5360b1=this;_0x5360b1['errors']=[],_0x5360b1[_0x13d1d3('0xd72')]=_0x2b6391?_0x2b6391[_0x13d1d3('0x2319')]:[],_0x5360b1[_0x13d1d3('0x2a')]=_0x7c24bb||{'rows':[],'count':0x0},_0x5360b1[_0x13d1d3('0x826')]={'limit':0xa,'page':0x1},_0x5360b1[_0x13d1d3('0x136e')]=_0x4a8f60,_0x5360b1[_0x13d1d3('0x1f9d')]=_0x46528f,_0x5360b1[_0x13d1d3('0x187d')]=_0x1cfdf4;function _0x46528f(){const _0x54d9b4=_0x13d1d3;_0x34a5f5[_0x54d9b4('0xf19')]=(_0x5360b1[_0x54d9b4('0x826')]['page']-0x1)*_0x5360b1['query'][_0x54d9b4('0x193b')],_0x34a5f5[_0x54d9b4('0x193b')]=_0x5360b1[_0x54d9b4('0x826')][_0x54d9b4('0x193b')],_0x5360b1[_0x54d9b4('0x1691')]=_0xa4ae98[_0x52e9d5][_0x54d9b4('0x1a46')](_0x34a5f5,_0x1d18a2)[_0x54d9b4('0x1af5')];}function _0x1cfdf4(_0x177513,_0x987595){const _0x1e0c63=_0x13d1d3;return _0x107a13()(_0x987595,_0x1e0c63('0xfd0'),!![])['isValid']()&&(_0x987595=_0x107a13()(_0x987595,'')[_0x1e0c63('0x1c0d')]('YYYY-MM-DD\x20HH:mm:ss')),_0x987595;}function _0x1d18a2(_0x59115a){const _0x3bb2f4=_0x13d1d3;_0x5360b1[_0x3bb2f4('0x2a')]=_0x59115a||{'count':0x0,'rows':[]};}function _0x4a8f60(){const _0x24a618=_0x13d1d3;_0x3a509a[_0x24a618('0x212a')]();}}const _0x4a0e5e=_0x323608;_0x286509[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x286509(_0x34e3e8){const _0x10a14d=_0x4376d8;_0x34e3e8[_0x10a14d('0x1b9a')](_0x10a14d('0x23f6'),{'url':'/reports','views':{'content@app':{'templateUrl':_0x37b71b,'controller':_0x10a14d('0xfe5')}},'resolve':{'treeReports':[_0x10a14d('0x177'),function(_0x3e456b){const _0xfc8e7e=_0x10a14d;return _0x3e456b['resolve'](_0xfc8e7e('0x1754'),{'fields':_0xfc8e7e('0x1e92'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x10a14d('0x177'),_0x10a14d('0x1885'),function(_0x13279f,_0x5c7a5a){const _0x1fae8a=_0x10a14d;return _0x13279f[_0x1fae8a('0x898')]('userProfile@get',{'fields':_0x1fae8a('0x8d3'),'id':_0x5c7a5a['getCurrentUser']()[_0x1fae8a('0x1e76')]});}],'userProfileSection':['apiResolver',_0x10a14d('0x1885'),function(_0x24b89b,_0x3f358b){const _0x1e0e4f=_0x10a14d;return _0x24b89b[_0x1e0e4f('0x898')]('userProfileSection@get',{'fields':_0x1e0e4f('0x1134'),'userProfileId':_0x3f358b[_0x1e0e4f('0x2831')]()[_0x1e0e4f('0x1e76')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':_0x10a14d('0x1586')})[_0x10a14d('0x1b9a')](_0x10a14d('0x2122'),{'url':_0x10a14d('0x2370'),'views':{'content@app':{'templateUrl':_0x1e0a32,'controller':_0x10a14d('0x10f6')}},'resolve':{'report':[_0x10a14d('0x177'),_0x10a14d('0x118b'),'$q',_0x10a14d('0x1061'),function(_0x3e1047,_0x4e919e,_0x480bc9,_0x42770a){const _0x5f0855=_0x10a14d;let _0x39fdc2;return _0x3e1047[_0x5f0855('0x898')]('analyticCustomReport@get',{'fields':_0x5f0855('0x28d2'),'id':_0x4e919e['id']})[_0x5f0855('0x17e7')](function(_0xb81f82){const _0x4f1bdd=_0x5f0855,_0x2ffb90=[];_0x39fdc2=_0xb81f82;if(_0x39fdc2[_0x4f1bdd('0x1856')])try{_0x39fdc2[_0x4f1bdd('0x1856')]=JSON[_0x4f1bdd('0x1f0a')](_0x39fdc2['joins']);for(let _0x3916bf=0x0;_0x3916bf<_0x39fdc2[_0x4f1bdd('0x1856')][_0x4f1bdd('0x1f73')];_0x3916bf+=0x1){_0x2ffb90[_0x4f1bdd('0x269f')](_0x42770a[_0x4f1bdd('0xff3')](_0x39fdc2[_0x4f1bdd('0x1856')][_0x3916bf][_0x4f1bdd('0x575')]));}}catch(_0x2e5715){console['log'](_0x2e5715);}return _0x480bc9[_0x4f1bdd('0x1283')](_0x2ffb90);})[_0x5f0855('0x17e7')](function(_0x5e7e6c){const _0x582175=_0x5f0855;for(let _0x451528=0x0;_0x451528<_0x5e7e6c[_0x582175('0x1f73')];_0x451528+=0x1){_0x39fdc2[_0x582175('0x1856')][_0x451528][_0x582175('0xdfc')]=_0x49cbdd()[_0x582175('0x4f1')](_0x49cbdd()[_0x582175('0x1c0f')](_0x5e7e6c[_0x451528]),['$promise',_0x582175('0x1314')]);}return _0x39fdc2;});}],'userProfileSection':['apiResolver',_0x10a14d('0x1885'),function(_0x409aac,_0x2767f5){const _0x3d0379=_0x10a14d;return _0x409aac[_0x3d0379('0x898')](_0x3d0379('0x23e7'),{'fields':_0x3d0379('0x1134'),'userProfileId':_0x2767f5[_0x3d0379('0x2831')]()[_0x3d0379('0x1e76')],'sectionId':0x4b3});}]},'authenticate':!![],'permissionId':0x4b3,'bodyClass':'analytics'});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x23f6'),['ngJsTree'])[_0x4376d8('0x1980')](_0x286509)['controller'](_0x4376d8('0x18cf'),_0x10978a)[_0x4376d8('0x5ce')](_0x4376d8('0x21cb'),_0x5312b3)[_0x4376d8('0x5ce')](_0x4376d8('0x1c2d'),_0xe6ad07)[_0x4376d8('0x26a6')]('describeTable',_0x101c5a)['controller']('CreateOrEditReportFieldDialogController',_0x3b1b08)['controller'](_0x4376d8('0x18ce'),_0x58d1bd)[_0x4376d8('0x26a6')](_0x4376d8('0x665'),_0x4b3651)[_0x4376d8('0x5ce')](_0x4376d8('0x115d'),_0x175325)[_0x4376d8('0x5ce')](_0x4376d8('0x1362'),_0x2022e2)['controller'](_0x4376d8('0x1e7c'),_0x4d024e)[_0x4376d8('0x5ce')]('RunReportDialogController',_0x344c20)[_0x4376d8('0x5ce')](_0x4376d8('0x611'),_0x4a0e5e),_0x332b22[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x18b3'),_0x4376d8('0x71d'),'api',_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x332b22(_0x34d931,_0xd5155d,_0x2172d8,_0x54ce21,_0x51986d,_0x32ee51,_0x1ef7b6,_0x419ef8,_0x39f4de,_0x56b71b,_0x442ecf,_0xfbb4ea,_0xbac475,_0x50058d){const _0x21f49c=_0x4376d8,_0x597b3a=this;_0x597b3a[_0x21f49c('0x197c')]=_0x442ecf['getCurrentUser'](),_0x597b3a[_0x21f49c('0x73e')]=[],_0x597b3a[_0x21f49c('0x1aeb')]=_0xbac475,_0x597b3a[_0x21f49c('0x1d11')]=_0xfbb4ea,_0x597b3a[_0x21f49c('0x103e')]=_0x50058d,_0x597b3a['hasModulePermissions']={},_0x597b3a[_0x21f49c('0x1572')]=_0x597b3a[_0x21f49c('0x1aeb')]&&_0x597b3a[_0x21f49c('0x1aeb')][_0x21f49c('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x597b3a[_0x21f49c('0x24d3')]=_0x21f49c('0x1d4'),_0x597b3a[_0x21f49c('0x71d')]=angular[_0x21f49c('0x14e5')](_0x39f4de),_0x597b3a['extractedReports']=_0x419ef8,_0x597b3a[_0x21f49c('0xbba')]=![];!_0x597b3a[_0x21f49c('0x71d')]&&(_0x597b3a[_0x21f49c('0x71d')]={},_0x597b3a[_0x21f49c('0x24d3')]='ANALYTICS.NEW_EXTRACTEDREPORT',_0x597b3a[_0x21f49c('0xbba')]=!![]);_0x597b3a[_0x21f49c('0x2681')]=_0x54a9aa,_0x597b3a['saveExtractedReport']=_0xfb190c,_0x597b3a[_0x21f49c('0x1951')]=_0x354a2e,_0x597b3a[_0x21f49c('0x1300')]=_0x17d364,_0x597b3a[_0x21f49c('0x136e')]=_0x257e29;function _0x54a9aa(){const _0x178acc=_0x21f49c;_0x597b3a[_0x178acc('0x73e')]=[],_0x56b71b['analyticExtractedReport']['save'](_0x597b3a['extractedReport'])[_0x178acc('0x1af5')][_0x178acc('0x17e7')](function(_0x197f81){const _0xf862a7=_0x178acc;_0x597b3a[_0xf862a7('0x18b3')]['unshift'](_0x197f81[_0xf862a7('0x16b2')]()),_0x1ef7b6[_0xf862a7('0x130d')]({'title':'ExtractedReport\x20properly\x20created','msg':_0x597b3a[_0xf862a7('0x71d')][_0xf862a7('0x2aa')]?_0x597b3a[_0xf862a7('0x71d')][_0xf862a7('0x2aa')]+_0xf862a7('0x15a'):''}),_0x257e29(_0x197f81);})[_0x178acc('0x16df')](function(_0x4fd23b){const _0x2b12fa=_0x178acc;if(_0x4fd23b['data']&&_0x4fd23b[_0x2b12fa('0x1457')][_0x2b12fa('0x73e')]&&_0x4fd23b[_0x2b12fa('0x1457')][_0x2b12fa('0x73e')][_0x2b12fa('0x1f73')]){_0x597b3a[_0x2b12fa('0x73e')]=_0x4fd23b[_0x2b12fa('0x1457')][_0x2b12fa('0x73e')]||[{'message':_0x4fd23b[_0x2b12fa('0x9b6')](),'type':_0x2b12fa('0x49a')}];for(let _0x1adf33=0x0;_0x1adf33<_0x4fd23b[_0x2b12fa('0x1457')]['errors'][_0x2b12fa('0x1f73')];_0x1adf33+=0x1){_0x1ef7b6[_0x2b12fa('0x1db9')]({'title':_0x4fd23b['data'][_0x2b12fa('0x73e')][_0x1adf33]['type'],'msg':_0x4fd23b[_0x2b12fa('0x1457')][_0x2b12fa('0x73e')][_0x1adf33]['message']});}}else _0x1ef7b6[_0x2b12fa('0x1db9')]({'title':_0x4fd23b[_0x2b12fa('0x11c5')]?_0x2b12fa('0x14f7')+_0x4fd23b[_0x2b12fa('0x11c5')]+'\x20-\x20'+_0x4fd23b['statusText']:_0x2b12fa('0x49a'),'msg':_0x4fd23b[_0x2b12fa('0x1457')]?JSON[_0x2b12fa('0x678')](_0x4fd23b[_0x2b12fa('0x1457')][_0x2b12fa('0x1603')]):_0x4fd23b[_0x2b12fa('0x9b6')]()});});}function _0xfb190c(){const _0x1c55df=_0x21f49c;_0x597b3a['errors']=[],_0x56b71b['analyticExtractedReport'][_0x1c55df('0x27ba')]({'id':_0x597b3a[_0x1c55df('0x71d')]['id']},_0x597b3a[_0x1c55df('0x71d')])[_0x1c55df('0x1af5')]['then'](function(_0x3fde3e){const _0x22e31c=_0x1c55df,_0x4e8ef8=_0x49cbdd()[_0x22e31c('0xe8e')](_0x597b3a[_0x22e31c('0x18b3')],{'id':_0x3fde3e['id']});_0x4e8ef8&&_0x49cbdd()[_0x22e31c('0x1ced')](_0x4e8ef8,_0x49cbdd()[_0x22e31c('0x230a')](_0x3fde3e[_0x22e31c('0x16b2')](),_0x49cbdd()['keys'](_0x4e8ef8))),_0x1ef7b6[_0x22e31c('0x130d')]({'title':_0x22e31c('0x23f3'),'msg':_0x597b3a[_0x22e31c('0x71d')][_0x22e31c('0x2aa')]?_0x597b3a[_0x22e31c('0x71d')]['name']+_0x22e31c('0x15ca'):''}),_0x257e29(_0x3fde3e);})['catch'](function(_0x5f52b7){const _0x449ab3=_0x1c55df;if(_0x5f52b7[_0x449ab3('0x1457')]&&_0x5f52b7[_0x449ab3('0x1457')][_0x449ab3('0x73e')]&&_0x5f52b7[_0x449ab3('0x1457')]['errors'][_0x449ab3('0x1f73')]){_0x597b3a['errors']=_0x5f52b7[_0x449ab3('0x1457')][_0x449ab3('0x73e')]||[{'message':_0x5f52b7[_0x449ab3('0x9b6')](),'type':'api.analyticExtractedReport.update'}];for(let _0x384184=0x0;_0x384184<_0x5f52b7[_0x449ab3('0x1457')][_0x449ab3('0x73e')][_0x449ab3('0x1f73')];_0x384184++){_0x1ef7b6[_0x449ab3('0x1db9')]({'title':_0x5f52b7['data'][_0x449ab3('0x73e')][_0x384184][_0x449ab3('0x412')],'msg':_0x5f52b7['data'][_0x449ab3('0x73e')][_0x384184]['message']});}}else _0x1ef7b6[_0x449ab3('0x1db9')]({'title':_0x5f52b7[_0x449ab3('0x11c5')]?_0x449ab3('0x14f7')+_0x5f52b7[_0x449ab3('0x11c5')]+_0x449ab3('0x16e4')+_0x5f52b7[_0x449ab3('0x1833')]:_0x449ab3('0xf96'),'msg':_0x5f52b7[_0x449ab3('0x1457')]?JSON['stringify'](_0x5f52b7[_0x449ab3('0x1457')][_0x449ab3('0x1603')]):_0x5f52b7[_0x449ab3('0x9b6')]()});});}function _0x354a2e(_0x4e7dca){const _0x1e1ade=_0x21f49c;_0x597b3a[_0x1e1ade('0x73e')]=[];const _0x50af99=_0x54ce21[_0x1e1ade('0x1121')]()[_0x1e1ade('0x24d3')](_0x1e1ade('0x530'))[_0x1e1ade('0xd5')](_0x1e1ade('0x126f'))[_0x1e1ade('0x2095')](_0x1e1ade('0xa70'))['ok'](_0x1e1ade('0x304'))['cancel']('Cancel')['targetEvent'](_0x4e7dca);_0x54ce21[_0x1e1ade('0x28e2')](_0x50af99)[_0x1e1ade('0x17e7')](function(){const _0x37545d=_0x1e1ade;_0x56b71b['analyticExtractedReport']['delete']({'id':_0x597b3a[_0x37545d('0x71d')]['id']})['$promise'][_0x37545d('0x17e7')](function(){const _0x3ab371=_0x37545d;_0x49cbdd()[_0x3ab371('0x5f3')](_0x597b3a[_0x3ab371('0x18b3')],{'id':_0x597b3a[_0x3ab371('0x71d')]['id']}),_0x1ef7b6[_0x3ab371('0x130d')]({'title':_0x3ab371('0x2789'),'msg':(_0x597b3a['extractedReport']['name']||'extractedReport')+_0x3ab371('0x149f')}),_0x257e29(_0x597b3a[_0x3ab371('0x71d')]);})[_0x37545d('0x16df')](function(_0x39d4bd){const _0x4597c0=_0x37545d;if(_0x39d4bd['data']&&_0x39d4bd[_0x4597c0('0x1457')]['errors']&&_0x39d4bd[_0x4597c0('0x1457')][_0x4597c0('0x73e')][_0x4597c0('0x1f73')]){_0x597b3a[_0x4597c0('0x73e')]=_0x39d4bd['data']['errors']||[{'message':_0x39d4bd[_0x4597c0('0x9b6')](),'type':_0x4597c0('0xeac')}];for(let _0x2aff5f=0x0;_0x2aff5f<_0x39d4bd[_0x4597c0('0x1457')]['errors'][_0x4597c0('0x1f73')];_0x2aff5f++){_0x1ef7b6['error']({'title':_0x39d4bd[_0x4597c0('0x1457')]['errors'][_0x2aff5f]['type'],'msg':_0x39d4bd['data'][_0x4597c0('0x73e')][_0x2aff5f][_0x4597c0('0x1603')]});}}else _0x1ef7b6[_0x4597c0('0x1db9')]({'title':_0x39d4bd[_0x4597c0('0x11c5')]?_0x4597c0('0x14f7')+_0x39d4bd[_0x4597c0('0x11c5')]+_0x4597c0('0x16e4')+_0x39d4bd['statusText']:_0x4597c0('0xeac'),'msg':_0x39d4bd[_0x4597c0('0x1457')]?JSON[_0x4597c0('0x678')](_0x39d4bd[_0x4597c0('0x1457')][_0x4597c0('0x1603')]):_0x39d4bd[_0x4597c0('0x1603')]||_0x39d4bd[_0x4597c0('0x9b6')]()});});},function(){});}function _0x17d364(_0x104575){return _0x104575===null?undefined:new Date(_0x104575);}function _0x257e29(_0xc65d3b){const _0x41ceea=_0x21f49c;_0x54ce21[_0x41ceea('0x212a')](_0xc65d3b);}}const _0x16e574=_0x332b22,_0x3d88e7=_0x4cf2bc['p']+_0x4376d8('0x1b1e');_0x37929e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x18b3'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x37929e(_0x562ed2,_0x20a79b,_0xfa84e0,_0x1c6605,_0xc9de9e,_0x1eec4c,_0x311ab7,_0x44dcd9,_0x1620c0,_0x5a52be,_0x114781,_0x3f6ad5,_0x43aa80,_0x2b333c,_0x55ca24,_0x11ebbe,_0x10a778){const _0x167735=_0x4376d8,_0x308e3e=this;_0x308e3e[_0x167735('0x1d11')]=_0x11ebbe,_0x308e3e[_0x167735('0x1aeb')]=_0x10a778,_0x308e3e[_0x167735('0x197c')]=_0x55ca24[_0x167735('0x2831')](),_0x308e3e[_0x167735('0x18b3')]=_0x1620c0||{'count':0x0,'rows':[]},_0x308e3e[_0x167735('0xdeb')]=_0x5a52be,_0x308e3e['userProfileSection']=_0x114781&&_0x114781['count']==0x1?_0x114781[_0x167735('0x2319')][0x0]:null,_0x308e3e[_0x167735('0x103e')]=_0x55ca24['parseCrudPermissions'](_0x308e3e['userProfileSection']?_0x308e3e[_0x167735('0x383')][_0x167735('0x103e')]:null),_0x308e3e[_0x167735('0x23c3')]=_0x167735('0x18b3'),_0x308e3e[_0x167735('0x26a1')]='',_0x308e3e[_0x167735('0x24e1')]=null,_0x308e3e['selectedExtractedReports']=[],_0x308e3e[_0x167735('0x826')]={'fields':_0x167735('0x64b'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x308e3e[_0x167735('0xb32')]=_0x2ce1c9,_0x308e3e[_0x167735('0x1818')]=_0x298adc,_0x308e3e[_0x167735('0xbf4')]=_0x23b39a,_0x308e3e[_0x167735('0x130d')]=_0x221593,_0x308e3e[_0x167735('0x23da')]=_0x4ccede,_0x308e3e[_0x167735('0x23bc')]=_0x4881bc,_0x308e3e['deleteExtractedReport']=_0x37eb0a,_0x308e3e[_0x167735('0x1c0c')]=_0x194f2e,_0x308e3e[_0x167735('0xbdd')]=_0x22915b,_0x308e3e['deselectExtractedReports']=_0x35b088,_0x308e3e[_0x167735('0x1fb6')]=_0x1aeaf0;function _0x2ce1c9(_0xb3e558,_0x518d48){const _0x7ee566=_0x167735;_0xc9de9e[_0x7ee566('0x28e2')]({'controller':_0x7ee566('0xf08'),'controllerAs':'vm','templateUrl':_0x3d88e7,'parent':angular['element'](_0x1eec4c[_0x7ee566('0x13aa')]),'targetEvent':_0x518d48,'clickOutsideToClose':!![],'locals':{'extractedReport':_0xb3e558,'extractedReports':_0x308e3e[_0x7ee566('0x18b3')][_0x7ee566('0x2319')],'license':_0x308e3e[_0x7ee566('0x1d11')],'setting':null,'crudPermissions':_0x308e3e['crudPermissions']}});}function _0x298adc(_0x130672){const _0x24aecf=_0x167735;return _0x3f6ad5[_0x24aecf('0x841')][_0x24aecf('0x1244')]({'id':_0x130672['id']})[_0x24aecf('0x1af5')][_0x24aecf('0x17e7')](function(_0xeda9f9){const _0x227257=_0x24aecf,_0x35fbbd=[_0xeda9f9[_0x227257('0x3ca')]];let _0x5d41be=_0x227257('0x1244');const _0x2c6170=new Blob(_0x35fbbd,{'type':_0xeda9f9[_0x227257('0x412')]});_0x5d41be=_0x130672['savename'];const _0x2185bb=window[_0x227257('0x2be')][_0x227257('0x68d')]('a');_0x2185bb[_0x227257('0x224')](_0x227257('0x448'),URL[_0x227257('0x28ce')](_0x2c6170)),_0x2185bb[_0x227257('0x224')](_0x227257('0x1244'),_0x5d41be),document['body'][_0x227257('0x128c')](_0x2185bb),_0x2185bb['click']();})[_0x24aecf('0x16df')](function(_0x279a81){const _0x41641b=_0x24aecf;if(_0x279a81['data']&&_0x279a81[_0x41641b('0x1457')]['errors']&&_0x279a81[_0x41641b('0x1457')]['errors'][_0x41641b('0x1f73')])for(let _0x35a7a0=0x0;_0x35a7a0<_0x279a81[_0x41641b('0x1457')][_0x41641b('0x73e')][_0x41641b('0x1f73')];_0x35a7a0++){_0x2b333c[_0x41641b('0x1db9')]({'title':_0x279a81['data'][_0x41641b('0x73e')][_0x35a7a0][_0x41641b('0x412')],'msg':_0x279a81['data'][_0x41641b('0x73e')][_0x35a7a0][_0x41641b('0x1603')]});}else _0x2b333c[_0x41641b('0x1db9')]({'title':_0x279a81[_0x41641b('0x11c5')]?'API:'+_0x279a81[_0x41641b('0x11c5')]+_0x41641b('0x16e4')+_0x279a81[_0x41641b('0x1833')]:'api.analyticExtractedReport.save','msg':_0x279a81[_0x41641b('0x1457')]?JSON['stringify'](_0x279a81[_0x41641b('0x1457')][_0x41641b('0x1603')]):_0x279a81['toString']()});});}function _0x23b39a(_0x25ebae,_0x24108c){const _0x120288=_0x167735,_0x16a40a=_0xc9de9e['confirm']()[_0x120288('0x24d3')](_0x120288('0x5e1')+_0x49cbdd()[_0x120288('0x1c98')](_0x120288('0x71d'))+'?')['htmlContent'](_0x120288('0xa53')+(_0x25ebae[_0x120288('0x2aa')]||_0x120288('0x71d'))+''+_0x120288('0xe9f'))[_0x120288('0x2095')](_0x120288('0x963'))[_0x120288('0x104f')](_0x24108c)['ok']('OK')[_0x120288('0x1d47')](_0x120288('0x28a0'));_0xc9de9e['show'](_0x16a40a)[_0x120288('0x17e7')](function(){_0x37eb0a(_0x25ebae);},function(){const _0x4afe1d=_0x120288;console[_0x4afe1d('0x1d63')](_0x4afe1d('0x28a0'));});}let _0x46bb85=!![],_0x1ea8af=0x1;_0x562ed2[_0x167735('0x620')](_0x167735('0x3ed'),function(_0x1a21f7,_0x33541e){const _0xe6ec8d=_0x167735;_0x46bb85?_0x311ab7(function(){_0x46bb85=![];}):(!_0x33541e&&(_0x1ea8af=_0x308e3e[_0xe6ec8d('0x826')][_0xe6ec8d('0x115a')]),_0x1a21f7!==_0x33541e&&(_0x308e3e[_0xe6ec8d('0x826')][_0xe6ec8d('0x115a')]=0x1),!_0x1a21f7&&(_0x308e3e[_0xe6ec8d('0x826')][_0xe6ec8d('0x115a')]=_0x1ea8af),_0x308e3e['getExtractedReports']());});function _0x221593(_0x1e4586){const _0x21b989=_0x167735;_0x308e3e[_0x21b989('0x18b3')]=_0x1e4586||{'count':0x0,'rows':[]};}function _0x4ccede(){const _0xe0e609=_0x167735;_0x308e3e['query'][_0xe0e609('0xf19')]=(_0x308e3e[_0xe0e609('0x826')][_0xe0e609('0x115a')]-0x1)*_0x308e3e[_0xe0e609('0x826')][_0xe0e609('0x193b')],_0x55ca24[_0xe0e609('0x1ba2')](_0xe0e609('0x20bf'))?_0x308e3e['promise']=_0x3f6ad5['analyticExtractedReport'][_0xe0e609('0x1c53')](_0x308e3e['query'],_0x221593)[_0xe0e609('0x1af5')]:(_0x308e3e[_0xe0e609('0x826')]['id']=_0x308e3e['userProfile']['id'],_0x308e3e[_0xe0e609('0x826')]['section']='ExtractedReports',_0x308e3e['promise']=_0x3f6ad5[_0xe0e609('0xdeb')]['getResources'](_0x308e3e[_0xe0e609('0x826')],_0x221593)[_0xe0e609('0x1af5')]);}function _0x4881bc(_0x5dba60,_0x414dbc){const _0x35cae1=_0x167735;_0xc9de9e[_0x35cae1('0x28e2')]({'controller':'CreateOrEditExtractedReportDialogController','controllerAs':'vm','templateUrl':_0x3d88e7,'parent':angular['element'](_0x1eec4c[_0x35cae1('0x13aa')]),'targetEvent':_0x5dba60,'clickOutsideToClose':!![],'locals':{'extractedReport':_0x414dbc,'extractedReports':_0x308e3e[_0x35cae1('0x18b3')][_0x35cae1('0x2319')],'license':_0x308e3e[_0x35cae1('0x1d11')],'setting':_0x308e3e[_0x35cae1('0x1aeb')],'crudPermissions':_0x308e3e[_0x35cae1('0x103e')]}});}function _0x37eb0a(_0x1300c9){const _0x3c24d2=_0x167735;_0x3f6ad5['analyticExtractedReport'][_0x3c24d2('0x1da6')]({'id':_0x1300c9['id']})[_0x3c24d2('0x1af5')][_0x3c24d2('0x17e7')](function(){const _0x5b496a=_0x3c24d2;_0x49cbdd()['remove'](_0x308e3e[_0x5b496a('0x18b3')][_0x5b496a('0x2319')],{'id':_0x1300c9['id']}),_0x308e3e[_0x5b496a('0x18b3')][_0x5b496a('0x335')]-=0x1,!_0x308e3e[_0x5b496a('0x18b3')]['rows'][_0x5b496a('0x1f73')]&&_0x308e3e[_0x5b496a('0x23da')](),_0x2b333c['success']({'title':_0x49cbdd()['startCase'](_0x5b496a('0xe17'))+_0x5b496a('0x2673'),'msg':_0x1300c9[_0x5b496a('0x2aa')]?_0x1300c9[_0x5b496a('0x2aa')]+_0x5b496a('0x149f'):''});})[_0x3c24d2('0x16df')](function(_0x3fe5cf){const _0x467699=_0x3c24d2;if(_0x3fe5cf[_0x467699('0x1457')]&&_0x3fe5cf[_0x467699('0x1457')][_0x467699('0x73e')]&&_0x3fe5cf['data'][_0x467699('0x73e')][_0x467699('0x1f73')]){_0x308e3e[_0x467699('0x73e')]=_0x3fe5cf[_0x467699('0x1457')][_0x467699('0x73e')]||[{'message':_0x3fe5cf[_0x467699('0x9b6')](),'type':_0x467699('0x287c')}];for(let _0x3cf110=0x0;_0x3cf110<_0x3fe5cf[_0x467699('0x1457')][_0x467699('0x73e')][_0x467699('0x1f73')];_0x3cf110++){_0x2b333c['error']({'title':_0x3fe5cf[_0x467699('0x1457')][_0x467699('0x73e')][_0x3cf110][_0x467699('0x412')],'msg':_0x3fe5cf[_0x467699('0x1457')][_0x467699('0x73e')][_0x3cf110][_0x467699('0x1603')]});}}else _0x2b333c['error']({'title':_0x3fe5cf[_0x467699('0x11c5')]?_0x467699('0x14f7')+_0x3fe5cf[_0x467699('0x11c5')]+_0x467699('0x16e4')+_0x3fe5cf[_0x467699('0x1833')]:_0x467699('0x287c'),'msg':_0x3fe5cf[_0x467699('0x1457')]?JSON['stringify'](_0x3fe5cf[_0x467699('0x1457')][_0x467699('0x1603')]):_0x3fe5cf['message']||_0x3fe5cf[_0x467699('0x9b6')]()});});}function _0x194f2e(){const _0x90a694=_0x167735,_0x2c183a=angular[_0x90a694('0x14e5')](_0x308e3e['selectedExtractedReports']);return _0x308e3e['selectedExtractedReports']=[],_0x2c183a;}function _0x22915b(_0x281841){const _0x244796=_0x167735,_0x2c4e1e=_0xc9de9e[_0x244796('0x1121')]()[_0x244796('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20extractedReports?')[_0x244796('0x211f')](_0x244796('0xa53')+_0x308e3e[_0x244796('0x24b1')][_0x244796('0x1f73')]+'\x20selected'+_0x244796('0xe9f'))['ariaLabel'](_0x244796('0xccb'))[_0x244796('0x104f')](_0x281841)['ok']('OK')['cancel']('CANCEL');_0xc9de9e[_0x244796('0x28e2')](_0x2c4e1e)['then'](function(){const _0x921899=_0x244796;_0x308e3e[_0x921899('0x24b1')][_0x921899('0xccd')](function(_0x4dec92){_0x37eb0a(_0x4dec92);}),_0x308e3e[_0x921899('0x24b1')]=[];});}function _0x35b088(){_0x308e3e['selectedExtractedReports']=[];}function _0x1aeaf0(){const _0x34ce4e=_0x167735;_0x308e3e[_0x34ce4e('0x24b1')]=_0x308e3e[_0x34ce4e('0x18b3')][_0x34ce4e('0x2319')];}}const _0x3b1251=_0x37929e;_0x4e79e9[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x1aee'),_0x4376d8('0x1401'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x4e79e9(_0x3c016b,_0x4a17db,_0x1fad40,_0x3a6487,_0x3d1931,_0x5541a9,_0x1b78f9,_0x3a45a2,_0x394eb8,_0xf80c94,_0x1311b1,_0x309742,_0x470133,_0x22e14f){const _0xba6ef0=_0x4376d8,_0x458800=this;_0x458800[_0xba6ef0('0x197c')]=_0x1311b1['getCurrentUser'](),_0x458800[_0xba6ef0('0x73e')]=[],_0x458800[_0xba6ef0('0x1aeb')]=_0x470133,_0x458800['license']=_0x309742,_0x458800[_0xba6ef0('0x103e')]=_0x22e14f,_0x458800[_0xba6ef0('0x6ee')]={},_0x458800[_0xba6ef0('0x1572')]=_0x458800['setting']&&_0x458800[_0xba6ef0('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x458800[_0xba6ef0('0x24d3')]=_0xba6ef0('0x1dfe'),_0x458800['metric']=angular[_0xba6ef0('0x14e5')](_0x394eb8),_0x458800[_0xba6ef0('0x1aee')]=_0x3a45a2,_0x458800['newMetric']=![];!_0x458800[_0xba6ef0('0x1401')]&&(_0x458800[_0xba6ef0('0x1401')]={'table':_0xba6ef0('0xfc7')},_0x458800[_0xba6ef0('0x24d3')]='ANALYTICS.NEW_METRIC',_0x458800['newMetric']=!![]);_0x458800[_0xba6ef0('0xc87')]=_0x11fbd8,_0x458800[_0xba6ef0('0x22a1')]=_0x58e682,_0x458800[_0xba6ef0('0x26f')]=_0x5c0515,_0x458800[_0xba6ef0('0x1300')]=_0xbc3ac8,_0x458800[_0xba6ef0('0x136e')]=_0x385eee;function _0x11fbd8(){const _0x2de553=_0xba6ef0;_0x458800[_0x2de553('0x73e')]=[],_0xf80c94['analyticMetric'][_0x2de553('0x2439')](_0x458800[_0x2de553('0x1401')])[_0x2de553('0x1af5')][_0x2de553('0x17e7')](function(_0x4975ac){const _0x118ed8=_0x2de553;_0x458800[_0x118ed8('0x1aee')][_0x118ed8('0x1893')](_0x4975ac[_0x118ed8('0x16b2')]()),_0x1b78f9[_0x118ed8('0x130d')]({'title':_0x118ed8('0x17f7'),'msg':_0x458800[_0x118ed8('0x1401')][_0x118ed8('0x2aa')]?_0x458800[_0x118ed8('0x1401')]['name']+'\x20has\x20been\x20created!':''}),_0x385eee(_0x4975ac);})[_0x2de553('0x16df')](function(_0xd854ba){const _0x9b4e8d=_0x2de553;if(_0xd854ba[_0x9b4e8d('0x1457')]&&_0xd854ba['data'][_0x9b4e8d('0x73e')]&&_0xd854ba['data']['errors'][_0x9b4e8d('0x1f73')]){_0x458800[_0x9b4e8d('0x73e')]=_0xd854ba[_0x9b4e8d('0x1457')][_0x9b4e8d('0x73e')]||[{'message':_0xd854ba[_0x9b4e8d('0x9b6')](),'type':'api.analyticMetric.save'}];for(let _0x52ba07=0x0;_0x52ba07<_0xd854ba['data'][_0x9b4e8d('0x73e')]['length'];_0x52ba07+=0x1){_0x1b78f9[_0x9b4e8d('0x1db9')]({'title':_0xd854ba[_0x9b4e8d('0x1457')][_0x9b4e8d('0x73e')][_0x52ba07][_0x9b4e8d('0x412')],'msg':_0xd854ba[_0x9b4e8d('0x1457')][_0x9b4e8d('0x73e')][_0x52ba07]['message']});}}else _0x1b78f9[_0x9b4e8d('0x1db9')]({'title':_0xd854ba[_0x9b4e8d('0x11c5')]?_0x9b4e8d('0x14f7')+_0xd854ba['status']+'\x20-\x20'+_0xd854ba[_0x9b4e8d('0x1833')]:_0x9b4e8d('0x277'),'msg':_0xd854ba[_0x9b4e8d('0x1457')]?JSON[_0x9b4e8d('0x678')](_0xd854ba[_0x9b4e8d('0x1457')][_0x9b4e8d('0x1603')]):_0xd854ba[_0x9b4e8d('0x9b6')]()});});}function _0x58e682(){const _0x23e458=_0xba6ef0;_0x458800['errors']=[],_0xf80c94[_0x23e458('0x2103')][_0x23e458('0x27ba')]({'id':_0x458800[_0x23e458('0x1401')]['id']},_0x458800[_0x23e458('0x1401')])[_0x23e458('0x1af5')][_0x23e458('0x17e7')](function(_0x3c82d8){const _0x2305fd=_0x23e458,_0x3a21f2=_0x49cbdd()[_0x2305fd('0xe8e')](_0x458800[_0x2305fd('0x1aee')],{'id':_0x3c82d8['id']});_0x3a21f2&&_0x49cbdd()['merge'](_0x3a21f2,_0x49cbdd()['pick'](_0x3c82d8['toJSON'](),_0x49cbdd()[_0x2305fd('0x1c0f')](_0x3a21f2))),_0x1b78f9[_0x2305fd('0x130d')]({'title':'Metric\x20properly\x20saved!','msg':_0x458800['metric'][_0x2305fd('0x2aa')]?_0x458800[_0x2305fd('0x1401')]['name']+'\x20has\x20been\x20saved!':''}),_0x385eee(_0x3c82d8);})[_0x23e458('0x16df')](function(_0xbac6b4){const _0x1789b7=_0x23e458;if(_0xbac6b4[_0x1789b7('0x1457')]&&_0xbac6b4[_0x1789b7('0x1457')][_0x1789b7('0x73e')]&&_0xbac6b4[_0x1789b7('0x1457')][_0x1789b7('0x73e')][_0x1789b7('0x1f73')]){_0x458800[_0x1789b7('0x73e')]=_0xbac6b4[_0x1789b7('0x1457')]['errors']||[{'message':_0xbac6b4['toString'](),'type':_0x1789b7('0x1e58')}];for(let _0x408554=0x0;_0x408554<_0xbac6b4['data'][_0x1789b7('0x73e')][_0x1789b7('0x1f73')];_0x408554++){_0x1b78f9[_0x1789b7('0x1db9')]({'title':_0xbac6b4['data'][_0x1789b7('0x73e')][_0x408554]['type'],'msg':_0xbac6b4[_0x1789b7('0x1457')]['errors'][_0x408554]['message']});}}else _0x1b78f9[_0x1789b7('0x1db9')]({'title':_0xbac6b4['status']?_0x1789b7('0x14f7')+_0xbac6b4[_0x1789b7('0x11c5')]+_0x1789b7('0x16e4')+_0xbac6b4[_0x1789b7('0x1833')]:_0x1789b7('0x1e58'),'msg':_0xbac6b4[_0x1789b7('0x1457')]?JSON['stringify'](_0xbac6b4['data']['message']):_0xbac6b4['toString']()});});}function _0x5c0515(_0x5c5272){const _0x44792c=_0xba6ef0;_0x458800[_0x44792c('0x73e')]=[];const _0xc5e897=_0x3a6487[_0x44792c('0x1121')]()['title'](_0x44792c('0x530'))[_0x44792c('0xd5')](_0x44792c('0x558'))[_0x44792c('0x2095')]('Delete\x20Metric')['ok'](_0x44792c('0x304'))[_0x44792c('0x1d47')]('Cancel')[_0x44792c('0x104f')](_0x5c5272);_0x3a6487['show'](_0xc5e897)['then'](function(){const _0x2b4a38=_0x44792c;_0xf80c94[_0x2b4a38('0x2103')][_0x2b4a38('0x1da6')]({'id':_0x458800[_0x2b4a38('0x1401')]['id']})[_0x2b4a38('0x1af5')]['then'](function(){const _0x22e3e1=_0x2b4a38;_0x49cbdd()[_0x22e3e1('0x5f3')](_0x458800[_0x22e3e1('0x1aee')],{'id':_0x458800['metric']['id']}),_0x1b78f9['success']({'title':'Metric\x20properly\x20deleted!','msg':(_0x458800[_0x22e3e1('0x1401')]['name']||_0x22e3e1('0x1401'))+_0x22e3e1('0x149f')}),_0x385eee(_0x458800['metric']);})[_0x2b4a38('0x16df')](function(_0x56811d){const _0x486c11=_0x2b4a38;if(_0x56811d['data']&&_0x56811d[_0x486c11('0x1457')][_0x486c11('0x73e')]&&_0x56811d[_0x486c11('0x1457')][_0x486c11('0x73e')][_0x486c11('0x1f73')]){_0x458800[_0x486c11('0x73e')]=_0x56811d[_0x486c11('0x1457')]['errors']||[{'message':_0x56811d[_0x486c11('0x9b6')](),'type':_0x486c11('0x2d7')}];for(let _0x106f92=0x0;_0x106f92<_0x56811d[_0x486c11('0x1457')]['errors'][_0x486c11('0x1f73')];_0x106f92++){_0x1b78f9[_0x486c11('0x1db9')]({'title':_0x56811d[_0x486c11('0x1457')]['errors'][_0x106f92][_0x486c11('0x412')],'msg':_0x56811d[_0x486c11('0x1457')]['errors'][_0x106f92][_0x486c11('0x1603')]});}}else _0x1b78f9[_0x486c11('0x1db9')]({'title':_0x56811d[_0x486c11('0x11c5')]?_0x486c11('0x14f7')+_0x56811d[_0x486c11('0x11c5')]+_0x486c11('0x16e4')+_0x56811d[_0x486c11('0x1833')]:_0x486c11('0x2d7'),'msg':_0x56811d[_0x486c11('0x1457')]?JSON[_0x486c11('0x678')](_0x56811d[_0x486c11('0x1457')][_0x486c11('0x1603')]):_0x56811d['message']||_0x56811d[_0x486c11('0x9b6')]()});});},function(){});}function _0xbc3ac8(_0x34c749){return _0x34c749===null?undefined:new Date(_0x34c749);}function _0x385eee(_0x3e14af){const _0x18fbbf=_0xba6ef0;_0x3a6487[_0x18fbbf('0x212a')](_0x3e14af);}}const _0x46bdaf=_0x4e79e9,_0x2f34e3=_0x4cf2bc['p']+_0x4376d8('0x1679');_0x95bc91['$inject']=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0x1aee'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x95bc91(_0xdf67a4,_0x529996,_0x2641fe,_0x4e6ea0,_0xe2d5a1,_0x2c2b0f,_0x22edd7,_0x327efb,_0x423169,_0x2859b1,_0x5b63ee,_0x5c3a0b,_0x2a94ac,_0x3f291d,_0x16d8a9,_0xc0bb96,_0xf276){const _0x50c672=_0x4376d8,_0x97c900=this;_0x97c900[_0x50c672('0x1d11')]=_0xc0bb96,_0x97c900[_0x50c672('0x1aeb')]=_0xf276,_0x97c900[_0x50c672('0x197c')]=_0x16d8a9[_0x50c672('0x2831')](),_0x97c900[_0x50c672('0x1aee')]=_0x423169||{'count':0x0,'rows':[]},_0x97c900['userProfile']=_0x2859b1,_0x97c900[_0x50c672('0x383')]=_0x5b63ee&&_0x5b63ee[_0x50c672('0x335')]==0x1?_0x5b63ee[_0x50c672('0x2319')][0x0]:null,_0x97c900[_0x50c672('0x103e')]=_0x16d8a9[_0x50c672('0x17a9')](_0x97c900[_0x50c672('0x383')]?_0x97c900[_0x50c672('0x383')][_0x50c672('0x103e')]:null),_0x97c900[_0x50c672('0x23c3')]=_0x50c672('0x1aee'),_0x97c900[_0x50c672('0x26a1')]='',_0x97c900[_0x50c672('0x24e1')]=null,_0x97c900[_0x50c672('0x52b')]=[],_0x97c900[_0x50c672('0x826')]={'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':_0x50c672('0x1ac6'),'limit':0xa,'page':0x1},_0x97c900[_0x50c672('0x1f7b')]=_0x49cbdd()[_0x50c672('0x8de')]([{'option':_0x50c672('0x46d'),'value':_0x50c672('0x1cd4')},{'option':_0x50c672('0x3e3'),'value':_0x50c672('0x1f95')},{'option':_0x50c672('0x11c3'),'value':_0x50c672('0x1f7e')},{'option':_0x50c672('0x131'),'value':_0x50c672('0x1ba8')},{'option':_0x50c672('0x18e1'),'value':'\x27chat_interactions\x27'},{'option':_0x50c672('0x24ee'),'value':_0x50c672('0xd40')},{'option':_0x50c672('0xd23'),'value':_0x50c672('0x25b8')},{'option':_0x50c672('0xbd9'),'value':_0x50c672('0x120c')},{'option':_0x50c672('0xffb'),'value':'\x27report_chat_queue\x27'},{'option':_0x50c672('0x236f'),'value':_0x50c672('0x1579')},{'option':_0x50c672('0x18d6'),'value':_0x50c672('0xa7f')},{'option':_0x50c672('0x3c9'),'value':_0x50c672('0xe13')},{'option':_0x50c672('0x11a2'),'value':_0x50c672('0x2599')},{'option':_0x50c672('0x3f6'),'value':_0x50c672('0x1b7c')},{'option':_0x50c672('0x14d4'),'value':_0x50c672('0x647')},{'option':_0x50c672('0x2429'),'value':_0x50c672('0x77e')},{'option':'Dialer\x20Hopper\x20Logs','value':'\x27cm_hopper_history\x27'},{'option':_0x50c672('0x1f2b'),'value':_0x50c672('0x1e3f')},{'option':'Email\x20Account','value':'\x27mail_accounts\x27'},{'option':_0x50c672('0x198d'),'value':_0x50c672('0x9bf')},{'option':_0x50c672('0x216b'),'value':_0x50c672('0x1571')},{'option':'Email\x20Queues','value':_0x50c672('0x209e')},{'option':'Email\x20Report\x20Queue','value':'\x27report_mail_queue\x27'},{'option':'Email\x20Report\x20Transfer','value':_0x50c672('0x480')},{'option':_0x50c672('0x1449'),'value':'\x27fax_accounts\x27'},{'option':'Fax\x20Interaction','value':'\x27fax_interactions\x27'},{'option':'Fax\x20Messages','value':_0x50c672('0xb64')},{'option':_0x50c672('0x2153'),'value':_0x50c672('0x2586')},{'option':'Fax\x20Report\x20Queue','value':_0x50c672('0x289a')},{'option':_0x50c672('0x27af'),'value':_0x50c672('0xa73')},{'option':_0x50c672('0x14a1'),'value':'\x27report_jscripty_sessions\x27'},{'option':'Jscripty\x20Questions','value':_0x50c672('0x23f4')},{'option':'Jscripty\x20Answers','value':_0x50c672('0x15fa')},{'option':_0x50c672('0xeee'),'value':_0x50c672('0x1b20')},{'option':'Member\x20Report','value':_0x50c672('0x130c')},{'option':_0x50c672('0x1f6'),'value':'\x27openchannel_accounts\x27'},{'option':_0x50c672('0x1971'),'value':'\x27openchannel_interactions\x27'},{'option':'Openchannel\x20Messages','value':_0x50c672('0x0')},{'option':_0x50c672('0x2529'),'value':'\x27openchannel_queues\x27'},{'option':'Openchannel\x20Report\x20Queue','value':_0x50c672('0x2310')},{'option':_0x50c672('0x14fb'),'value':_0x50c672('0xe91')},{'option':_0x50c672('0x189'),'value':_0x50c672('0x7df')},{'option':_0x50c672('0x1879'),'value':_0x50c672('0x269a')},{'option':_0x50c672('0x4ef'),'value':_0x50c672('0xf14')},{'option':_0x50c672('0x171c'),'value':'\x27sms_messages\x27'},{'option':_0x50c672('0xc6a'),'value':_0x50c672('0x507')},{'option':'SMS\x20Report\x20Queue','value':_0x50c672('0x20a9')},{'option':_0x50c672('0x2606'),'value':_0x50c672('0x1373')},{'option':_0x50c672('0x15d4'),'value':_0x50c672('0x1da7')},{'option':_0x50c672('0x18d'),'value':_0x50c672('0xba3')},{'option':_0x50c672('0x143d'),'value':_0x50c672('0x50')},{'option':'Whatsapp\x20Interaction','value':_0x50c672('0x1b68')},{'option':_0x50c672('0x25d'),'value':_0x50c672('0x12db')},{'option':_0x50c672('0xf43'),'value':_0x50c672('0xcfc')},{'option':'Whatsapp\x20Report\x20Queue','value':_0x50c672('0x1e9c')},{'option':_0x50c672('0x4bf'),'value':_0x50c672('0x1263')}],function(_0x3fd0a1){const _0x3c29b2=_0x50c672;return _0x49cbdd()[_0x3c29b2('0x737')](_0x3fd0a1[_0x3c29b2('0x175b')],new RegExp('\x27','g'),'');}),_0x97c900[_0x50c672('0xb32')]=_0x32d33c,_0x97c900['deleteconfirm']=_0x250907,_0x97c900['success']=_0x46393a,_0x97c900[_0x50c672('0x116d')]=_0x377373,_0x97c900['createOrEditMetric']=_0x2a80c1,_0x97c900[_0x50c672('0x26f')]=_0x48f489,_0x97c900[_0x50c672('0x2629')]=_0x1f9867,_0x97c900[_0x50c672('0x465')]=_0x5a0dcf,_0x97c900[_0x50c672('0x106b')]=_0x591b63,_0x97c900[_0x50c672('0x15ce')]=_0x5b0765;function _0x32d33c(_0x22e5cf,_0x45487b){const _0x52916d=_0x50c672;_0xe2d5a1[_0x52916d('0x28e2')]({'controller':_0x52916d('0x1622'),'controllerAs':'vm','templateUrl':_0x2f34e3,'parent':angular[_0x52916d('0x1ce1')](_0x2c2b0f[_0x52916d('0x13aa')]),'targetEvent':_0x45487b,'clickOutsideToClose':!![],'locals':{'metric':_0x22e5cf,'metrics':_0x97c900[_0x52916d('0x1aee')][_0x52916d('0x2319')],'license':_0x97c900[_0x52916d('0x1d11')],'setting':null,'crudPermissions':_0x97c900[_0x52916d('0x103e')]}});}function _0x250907(_0xc9653f,_0x32ac0c){const _0x6123ce=_0x50c672,_0x53b49a=_0xe2d5a1[_0x6123ce('0x1121')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x49cbdd()[_0x6123ce('0x1c98')]('metric')+'?')['htmlContent'](_0x6123ce('0xa53')+(_0xc9653f[_0x6123ce('0x2aa')]||_0x6123ce('0x1401'))+_0x6123ce('0x1d23')+_0x6123ce('0xe9f'))['ariaLabel'](_0x6123ce('0x160a'))['targetEvent'](_0x32ac0c)['ok']('OK')[_0x6123ce('0x1d47')](_0x6123ce('0x28a0'));_0xe2d5a1[_0x6123ce('0x28e2')](_0x53b49a)[_0x6123ce('0x17e7')](function(){_0x48f489(_0xc9653f);},function(){const _0x2b9bfe=_0x6123ce;console[_0x2b9bfe('0x1d63')](_0x2b9bfe('0x28a0'));});}let _0x457af2=!![],_0x36d50f=0x1;_0xdf67a4[_0x50c672('0x620')]('vm.query.filter',function(_0x2bd275,_0x182dfa){const _0x18175c=_0x50c672;_0x457af2?_0x22edd7(function(){_0x457af2=![];}):(!_0x182dfa&&(_0x36d50f=_0x97c900[_0x18175c('0x826')][_0x18175c('0x115a')]),_0x2bd275!==_0x182dfa&&(_0x97c900[_0x18175c('0x826')][_0x18175c('0x115a')]=0x1),!_0x2bd275&&(_0x97c900[_0x18175c('0x826')][_0x18175c('0x115a')]=_0x36d50f),_0x97c900[_0x18175c('0x116d')]());});function _0x46393a(_0x4ee9bd){const _0x9038d=_0x50c672;_0x97c900[_0x9038d('0x1aee')]=_0x4ee9bd||{'count':0x0,'rows':[]};}function _0x377373(){const _0x14949c=_0x50c672;_0x97c900['query'][_0x14949c('0xf19')]=(_0x97c900[_0x14949c('0x826')][_0x14949c('0x115a')]-0x1)*_0x97c900[_0x14949c('0x826')][_0x14949c('0x193b')],_0x16d8a9['hasRole'](_0x14949c('0x20bf'))?_0x97c900['promise']=_0x5c3a0b[_0x14949c('0x2103')][_0x14949c('0x1c53')](_0x97c900['query'],_0x46393a)['$promise']:(_0x97c900['query']['id']=_0x97c900['userProfile']['id'],_0x97c900['query']['section']=_0x14949c('0x1b5e'),_0x97c900[_0x14949c('0x1691')]=_0x5c3a0b[_0x14949c('0xdeb')][_0x14949c('0x2447')](_0x97c900[_0x14949c('0x826')],_0x46393a)[_0x14949c('0x1af5')]);}function _0x2a80c1(_0x30d0c1,_0x2bed87){const _0x5de4b6=_0x50c672;_0xe2d5a1[_0x5de4b6('0x28e2')]({'controller':_0x5de4b6('0x1622'),'controllerAs':'vm','templateUrl':_0x2f34e3,'parent':angular[_0x5de4b6('0x1ce1')](_0x2c2b0f[_0x5de4b6('0x13aa')]),'targetEvent':_0x30d0c1,'clickOutsideToClose':!![],'locals':{'metric':_0x2bed87,'metrics':_0x97c900[_0x5de4b6('0x1aee')]['rows'],'license':_0x97c900[_0x5de4b6('0x1d11')],'setting':_0x97c900[_0x5de4b6('0x1aeb')],'crudPermissions':_0x97c900[_0x5de4b6('0x103e')]}});}function _0x48f489(_0x4044d9){const _0xc242fd=_0x50c672;_0x5c3a0b[_0xc242fd('0x2103')][_0xc242fd('0x1da6')]({'id':_0x4044d9['id']})[_0xc242fd('0x1af5')]['then'](function(){const _0x587e9f=_0xc242fd;_0x49cbdd()[_0x587e9f('0x5f3')](_0x97c900['metrics']['rows'],{'id':_0x4044d9['id']}),_0x97c900[_0x587e9f('0x1aee')]['count']-=0x1,!_0x97c900[_0x587e9f('0x1aee')][_0x587e9f('0x2319')][_0x587e9f('0x1f73')]&&_0x97c900['getMetrics'](),_0x3f291d[_0x587e9f('0x130d')]({'title':_0x49cbdd()[_0x587e9f('0x1c98')](_0x587e9f('0x264b'))+_0x587e9f('0x2673'),'msg':_0x4044d9[_0x587e9f('0x2aa')]?_0x4044d9[_0x587e9f('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0xc242fd('0x16df')](function(_0x508a3f){const _0x3a4a36=_0xc242fd;if(_0x508a3f[_0x3a4a36('0x1457')]&&_0x508a3f[_0x3a4a36('0x1457')]['errors']&&_0x508a3f[_0x3a4a36('0x1457')]['errors']['length']){_0x97c900['errors']=_0x508a3f[_0x3a4a36('0x1457')][_0x3a4a36('0x73e')]||[{'message':_0x508a3f[_0x3a4a36('0x9b6')](),'type':'SYSTEM:DELETEanalyticMetric'}];for(let _0x48e81a=0x0;_0x48e81a<_0x508a3f['data'][_0x3a4a36('0x73e')][_0x3a4a36('0x1f73')];_0x48e81a++){_0x3f291d['error']({'title':_0x508a3f[_0x3a4a36('0x1457')][_0x3a4a36('0x73e')][_0x48e81a][_0x3a4a36('0x412')],'msg':_0x508a3f[_0x3a4a36('0x1457')][_0x3a4a36('0x73e')][_0x48e81a][_0x3a4a36('0x1603')]});}}else _0x3f291d[_0x3a4a36('0x1db9')]({'title':_0x508a3f[_0x3a4a36('0x11c5')]?_0x3a4a36('0x14f7')+_0x508a3f['status']+_0x3a4a36('0x16e4')+_0x508a3f[_0x3a4a36('0x1833')]:_0x3a4a36('0xd9d'),'msg':_0x508a3f[_0x3a4a36('0x1457')]?JSON[_0x3a4a36('0x678')](_0x508a3f[_0x3a4a36('0x1457')][_0x3a4a36('0x1603')]):_0x508a3f[_0x3a4a36('0x1603')]||_0x508a3f[_0x3a4a36('0x9b6')]()});});}function _0x1f9867(){const _0x474df6=_0x50c672,_0x57ccc2=angular[_0x474df6('0x14e5')](_0x97c900[_0x474df6('0x52b')]);return _0x97c900['selectedMetrics']=[],_0x57ccc2;}function _0x5a0dcf(_0x2f2c7a){const _0x1b8747=_0x50c672,_0x25538d=_0xe2d5a1[_0x1b8747('0x1121')]()[_0x1b8747('0x24d3')](_0x1b8747('0x1594'))['htmlContent'](_0x1b8747('0xa53')+_0x97c900[_0x1b8747('0x52b')]['length']+_0x1b8747('0x145a')+_0x1b8747('0xe9f'))[_0x1b8747('0x2095')](_0x1b8747('0x845'))[_0x1b8747('0x104f')](_0x2f2c7a)['ok']('OK')[_0x1b8747('0x1d47')](_0x1b8747('0x28a0'));_0xe2d5a1['show'](_0x25538d)[_0x1b8747('0x17e7')](function(){const _0x6a08b4=_0x1b8747;_0x97c900[_0x6a08b4('0x52b')]['forEach'](function(_0x2de63b){_0x48f489(_0x2de63b);}),_0x97c900['selectedMetrics']=[];});}function _0x591b63(){const _0x5eaf97=_0x50c672;_0x97c900[_0x5eaf97('0x52b')]=[];}function _0x5b0765(){const _0x2bb1f4=_0x50c672;_0x97c900[_0x2bb1f4('0x52b')]=_0x97c900[_0x2bb1f4('0x1aee')][_0x2bb1f4('0x2319')];}}const _0x16b54b=_0x95bc91;_0x32cd41[_0x4376d8('0x1b9c')]=['$stateProvider',_0x4376d8('0x21fc')];function _0x32cd41(_0x45cba0,_0x2f08f0){const _0x4c9585=_0x4376d8;_0x45cba0[_0x4c9585('0x1b9a')](_0x4c9585('0x2771'),{'abstract':!![],'url':_0x4c9585('0x524')})[_0x4c9585('0x1b9a')](_0x4c9585('0x14a6'),{'url':_0x4c9585('0x1901'),'views':{'content@app':{'templateUrl':_0x1f613c,'controller':_0x4c9585('0x1f5a')}},'resolve':{'metrics':['apiResolver',_0x4c9585('0x1885'),function(_0xea6bbf,_0x2a372f){const _0x272191=_0x4c9585;return _0x2a372f[_0x272191('0x1ba2')](_0x272191('0x20bf'))?_0xea6bbf[_0x272191('0x898')](_0x272191('0xc0d'),{'fields':_0x272191('0x16ea'),'sort':_0x272191('0x1ac6'),'limit':0xa,'offset':0x0}):_0xea6bbf['resolve'](_0x272191('0x1164'),{'id':_0x2a372f[_0x272191('0x2831')]()['userProfileId'],'section':_0x272191('0x1b5e'),'fields':'createdAt,updatedAt,id,name,table,metric,description','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':[_0x4c9585('0x177'),_0x4c9585('0x1885'),function(_0xe7094c,_0x4f28c1){const _0x2410e=_0x4c9585;return _0x4f28c1[_0x2410e('0x1ba2')](_0x2410e('0x20bf'))?null:_0xe7094c[_0x2410e('0x898')](_0x2410e('0x235d'),{'fields':_0x2410e('0x8d3'),'id':_0x4f28c1['getCurrentUser']()[_0x2410e('0x1e76')]});}],'userProfileSection':[_0x4c9585('0x177'),_0x4c9585('0x1885'),function(_0x267197,_0x4b0e60){const _0x54d0b8=_0x4c9585;return _0x4b0e60[_0x54d0b8('0x1ba2')](_0x54d0b8('0x20bf'))?null:_0x267197[_0x54d0b8('0x898')](_0x54d0b8('0x23e7'),{'fields':_0x54d0b8('0x1134'),'userProfileId':_0x4b0e60[_0x54d0b8('0x2831')]()['userProfileId'],'sectionId':0x4b1});}]},'authenticate':!![],'permissionId':0x4b1,'bodyClass':_0x4c9585('0x1586')})['state'](_0x4c9585('0xf28'),{'url':_0x4c9585('0x1fe5'),'views':{'content@app':{'templateUrl':_0x16f68c,'controller':_0x4c9585('0x1c37')}},'resolve':{'extractedReports':[_0x4c9585('0x177'),_0x4c9585('0x1885'),function(_0x312ccb,_0x2de71c){const _0x265510=_0x4c9585;return _0x2de71c[_0x265510('0x1ba2')](_0x265510('0x20bf'))?_0x312ccb[_0x265510('0x898')](_0x265510('0x2743'),{'fields':_0x265510('0x64b'),'sort':_0x265510('0x1ac6'),'limit':0xa,'offset':0x0}):_0x312ccb[_0x265510('0x898')](_0x265510('0x1164'),{'id':_0x2de71c['getCurrentUser']()['userProfileId'],'section':_0x265510('0x11b'),'fields':'createdAt,updatedAt,id,name,basename,savename,type,startDate,endDate,status,output,reportId,reportType','sort':'-updatedAt','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x4c9585('0x1885'),function(_0x209416,_0x783f3b){const _0x4a3148=_0x4c9585;return _0x783f3b[_0x4a3148('0x1ba2')](_0x4a3148('0x20bf'))?null:_0x209416['resolve'](_0x4a3148('0x235d'),{'fields':_0x4a3148('0x8d3'),'id':_0x783f3b[_0x4a3148('0x2831')]()[_0x4a3148('0x1e76')]});}],'userProfileSection':[_0x4c9585('0x177'),'Auth',function(_0x1c0924,_0x401344){const _0x285b75=_0x4c9585;return _0x401344[_0x285b75('0x1ba2')](_0x285b75('0x20bf'))?null:_0x1c0924[_0x285b75('0x898')](_0x285b75('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x401344[_0x285b75('0x2831')]()[_0x285b75('0x1e76')],'sectionId':0x4b2});}]},'authenticate':!![],'permissionId':0x4b2,'bodyClass':_0x4c9585('0x1586')}),_0x2f08f0[_0x4c9585('0x10b3')]('app/main/apps/analytics');}angular[_0x4376d8('0x11c4')](_0x4376d8('0x2771'),['ngCsv',_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),'mdColorPicker','ckeditor',_0x4376d8('0x1187'),'ngAria',_0x4376d8('0x2757'),_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),'mwFormUtils',_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),'angularMaterialFormBuilder','material.components.expansionPanels',_0x4376d8('0x4c8'),_0x4376d8('0x178b'),_0x4376d8('0x23f6')])[_0x4376d8('0x1980')](_0x32cd41)['controller'](_0x4376d8('0xf08'),_0x16e574)[_0x4376d8('0x5ce')]('ExtractedReportsController',_0x3b1251)['controller'](_0x4376d8('0x1622'),_0x46bdaf)[_0x4376d8('0x5ce')]('MetricsController',_0x16b54b);const _0x283f1a=_0x4cf2bc['p']+_0x4376d8('0x1ecf'),_0x237a21=_0x4cf2bc['p']+_0x4376d8('0x2686'),_0x5d05f7=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/salesforceAccounts/salesforceAccounts.html/salesforceAccounts.html',_0xde94c4=_0x4cf2bc['p']+_0x4376d8('0x28c8'),_0x21892f=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/freshdeskAccounts.html/freshdeskAccounts.html',_0x23cfd4=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/view.html/view.html',_0x278cad=_0x4cf2bc['p']+_0x4376d8('0x59e'),_0x334eee=_0x4cf2bc['p']+_0x4376d8('0x1fcd'),_0x1f050b=_0x4cf2bc['p']+_0x4376d8('0x1ae5'),_0x1abef5=_0x4cf2bc['p']+_0x4376d8('0x207e'),_0x23d421=_0x4cf2bc['p']+_0x4376d8('0x1a47'),_0x3e4f29=_0x4cf2bc['p']+_0x4376d8('0x8b3'),_0x1ec2ea=_0x4cf2bc['p']+_0x4376d8('0x6f4'),_0x13529f=_0x4cf2bc['p']+_0x4376d8('0x1f82'),_0x42fd0d=_0x4cf2bc['p']+_0x4376d8('0x35f'),_0x5e63a4=_0x4cf2bc['p']+_0x4376d8('0x224f'),_0x5b405a=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/servicenowAccounts/servicenowAccounts.html/servicenowAccounts.html',_0x168393=_0x4cf2bc['p']+_0x4376d8('0x1ca9'),_0x554fb2=_0x4cf2bc['p']+_0x4376d8('0x1d3b'),_0xcc323e=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/view.html/view.html';_0x400673['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x5a9'),_0x4376d8('0x27cb'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x400673(_0x109c6a,_0x4c9200,_0x88f34d,_0xf41c4f,_0xb1103c,_0x353b11,_0x3b6830,_0x54aa1d,_0x295c1e,_0x46c0e2,_0x3aae40,_0x2fe915,_0x556771,_0x21e089){const _0x2086d0=_0x4376d8,_0x12177e=this;_0x12177e[_0x2086d0('0x197c')]=_0x3aae40[_0x2086d0('0x2831')](),_0x12177e['errors']=[],_0x12177e['setting']=_0x556771,_0x12177e[_0x2086d0('0x1d11')]=_0x2fe915,_0x12177e[_0x2086d0('0x103e')]=_0x21e089,_0x12177e[_0x2086d0('0x6ee')]={},_0x12177e[_0x2086d0('0x1572')]=_0x12177e[_0x2086d0('0x1aeb')]&&_0x12177e[_0x2086d0('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x12177e[_0x2086d0('0x24d3')]=_0x2086d0('0x4f7'),_0x12177e[_0x2086d0('0x27cb')]=angular[_0x2086d0('0x14e5')](_0x295c1e),_0x12177e[_0x2086d0('0x5a9')]=_0x54aa1d,_0x12177e[_0x2086d0('0x500')]=![];!_0x12177e['deskAccount']&&(_0x12177e[_0x2086d0('0x27cb')]={'type':_0x2086d0('0x1994'),'authType':'basic','serverUrl':_0x88f34d[_0x2086d0('0x14fe')]()+_0x2086d0('0x14')+_0x88f34d['host']()+(_0x88f34d[_0x2086d0('0x2442')]()?':'+_0x88f34d[_0x2086d0('0x2442')]():'')},_0x12177e['title']=_0x2086d0('0x1fec'),_0x12177e[_0x2086d0('0x500')]=!![]);_0x12177e[_0x2086d0('0x2710')]=_0x1c1cef,_0x12177e[_0x2086d0('0xa20')]=_0x134c6c,_0x12177e[_0x2086d0('0x726')]=_0x509f06,_0x12177e[_0x2086d0('0x1300')]=_0x155d74,_0x12177e[_0x2086d0('0x136e')]=_0x15d530;function _0x1c1cef(){const _0xbe4a5d=_0x2086d0;_0x12177e[_0xbe4a5d('0x73e')]=[],_0x46c0e2[_0xbe4a5d('0x278')][_0xbe4a5d('0x2439')](_0x12177e[_0xbe4a5d('0x27cb')])['$promise'][_0xbe4a5d('0x17e7')](function(_0x5a4268){const _0x2fd999=_0xbe4a5d;_0x12177e[_0x2fd999('0x5a9')][_0x2fd999('0x1893')](_0x5a4268[_0x2fd999('0x16b2')]()),_0x3b6830[_0x2fd999('0x130d')]({'title':_0x2fd999('0x259d'),'msg':_0x12177e[_0x2fd999('0x27cb')][_0x2fd999('0x2aa')]?_0x12177e[_0x2fd999('0x27cb')]['name']+'\x20has\x20been\x20created!':''}),_0x15d530(_0x5a4268);})['catch'](function(_0x4fa571){const _0x193f3f=_0xbe4a5d;if(_0x4fa571[_0x193f3f('0x1457')]&&_0x4fa571[_0x193f3f('0x1457')][_0x193f3f('0x73e')]&&_0x4fa571['data']['errors'][_0x193f3f('0x1f73')]){_0x12177e[_0x193f3f('0x73e')]=_0x4fa571[_0x193f3f('0x1457')][_0x193f3f('0x73e')]||[{'message':_0x4fa571[_0x193f3f('0x9b6')](),'type':_0x193f3f('0x1753')}];for(let _0x292a4c=0x0;_0x292a4c<_0x4fa571[_0x193f3f('0x1457')][_0x193f3f('0x73e')][_0x193f3f('0x1f73')];_0x292a4c+=0x1){_0x3b6830[_0x193f3f('0x1db9')]({'title':_0x4fa571[_0x193f3f('0x1457')]['errors'][_0x292a4c][_0x193f3f('0x412')],'msg':_0x4fa571[_0x193f3f('0x1457')]['errors'][_0x292a4c][_0x193f3f('0x1603')]});}}else _0x3b6830[_0x193f3f('0x1db9')]({'title':_0x4fa571[_0x193f3f('0x11c5')]?_0x193f3f('0x14f7')+_0x4fa571['status']+'\x20-\x20'+_0x4fa571[_0x193f3f('0x1833')]:_0x193f3f('0x1753'),'msg':_0x4fa571[_0x193f3f('0x1457')]?JSON[_0x193f3f('0x678')](_0x4fa571[_0x193f3f('0x1457')][_0x193f3f('0x1603')]):_0x4fa571[_0x193f3f('0x9b6')]()});});}function _0x134c6c(){const _0x2decc5=_0x2086d0;_0x12177e['errors']=[],_0x46c0e2['intDeskAccount'][_0x2decc5('0x27ba')]({'id':_0x12177e[_0x2decc5('0x27cb')]['id']},_0x12177e[_0x2decc5('0x27cb')])[_0x2decc5('0x1af5')][_0x2decc5('0x17e7')](function(_0x462a19){const _0x2d8950=_0x2decc5,_0x5d4caf=_0x49cbdd()['find'](_0x12177e[_0x2d8950('0x5a9')],{'id':_0x462a19['id']});_0x5d4caf&&_0x49cbdd()[_0x2d8950('0x1ced')](_0x5d4caf,_0x49cbdd()['pick'](_0x462a19[_0x2d8950('0x16b2')](),_0x49cbdd()[_0x2d8950('0x1c0f')](_0x5d4caf))),_0x3b6830[_0x2d8950('0x130d')]({'title':'DeskAccount\x20properly\x20saved!','msg':_0x12177e[_0x2d8950('0x27cb')]['name']?_0x12177e[_0x2d8950('0x27cb')][_0x2d8950('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x15d530(_0x462a19);})[_0x2decc5('0x16df')](function(_0x1b7e79){const _0x5b6e15=_0x2decc5;if(_0x1b7e79[_0x5b6e15('0x1457')]&&_0x1b7e79['data'][_0x5b6e15('0x73e')]&&_0x1b7e79[_0x5b6e15('0x1457')][_0x5b6e15('0x73e')][_0x5b6e15('0x1f73')]){_0x12177e['errors']=_0x1b7e79[_0x5b6e15('0x1457')]['errors']||[{'message':_0x1b7e79[_0x5b6e15('0x9b6')](),'type':_0x5b6e15('0x26b9')}];for(let _0x3baf13=0x0;_0x3baf13<_0x1b7e79[_0x5b6e15('0x1457')]['errors'][_0x5b6e15('0x1f73')];_0x3baf13++){_0x3b6830[_0x5b6e15('0x1db9')]({'title':_0x1b7e79[_0x5b6e15('0x1457')][_0x5b6e15('0x73e')][_0x3baf13]['type'],'msg':_0x1b7e79[_0x5b6e15('0x1457')][_0x5b6e15('0x73e')][_0x3baf13][_0x5b6e15('0x1603')]});}}else _0x3b6830[_0x5b6e15('0x1db9')]({'title':_0x1b7e79['status']?'API:'+_0x1b7e79[_0x5b6e15('0x11c5')]+_0x5b6e15('0x16e4')+_0x1b7e79[_0x5b6e15('0x1833')]:_0x5b6e15('0x26b9'),'msg':_0x1b7e79[_0x5b6e15('0x1457')]?JSON['stringify'](_0x1b7e79[_0x5b6e15('0x1457')][_0x5b6e15('0x1603')]):_0x1b7e79['toString']()});});}function _0x509f06(_0x50683f){const _0x41b2ad=_0x2086d0;_0x12177e['errors']=[];const _0x3eb431=_0xf41c4f[_0x41b2ad('0x1121')]()[_0x41b2ad('0x24d3')](_0x41b2ad('0x530'))[_0x41b2ad('0xd5')](_0x41b2ad('0x112e'))[_0x41b2ad('0x2095')](_0x41b2ad('0x9d0'))['ok'](_0x41b2ad('0x304'))[_0x41b2ad('0x1d47')](_0x41b2ad('0x1b70'))[_0x41b2ad('0x104f')](_0x50683f);_0xf41c4f['show'](_0x3eb431)[_0x41b2ad('0x17e7')](function(){const _0x22efe5=_0x41b2ad;_0x46c0e2['intDeskAccount'][_0x22efe5('0x1da6')]({'id':_0x12177e[_0x22efe5('0x27cb')]['id']})[_0x22efe5('0x1af5')][_0x22efe5('0x17e7')](function(){const _0x55b699=_0x22efe5;_0x49cbdd()[_0x55b699('0x5f3')](_0x12177e['deskAccounts'],{'id':_0x12177e[_0x55b699('0x27cb')]['id']}),_0x3b6830['success']({'title':'DeskAccount\x20properly\x20deleted!','msg':(_0x12177e[_0x55b699('0x27cb')][_0x55b699('0x2aa')]||'deskAccount')+_0x55b699('0x149f')}),_0x15d530(_0x12177e[_0x55b699('0x27cb')]);})[_0x22efe5('0x16df')](function(_0x505d62){const _0x5ee917=_0x22efe5;if(_0x505d62['data']&&_0x505d62[_0x5ee917('0x1457')]['errors']&&_0x505d62['data'][_0x5ee917('0x73e')][_0x5ee917('0x1f73')]){_0x12177e[_0x5ee917('0x73e')]=_0x505d62[_0x5ee917('0x1457')][_0x5ee917('0x73e')]||[{'message':_0x505d62[_0x5ee917('0x9b6')](),'type':_0x5ee917('0x16be')}];for(let _0x383abc=0x0;_0x383abc<_0x505d62['data'][_0x5ee917('0x73e')]['length'];_0x383abc++){_0x3b6830['error']({'title':_0x505d62['data'][_0x5ee917('0x73e')][_0x383abc]['type'],'msg':_0x505d62['data']['errors'][_0x383abc][_0x5ee917('0x1603')]});}}else _0x3b6830[_0x5ee917('0x1db9')]({'title':_0x505d62[_0x5ee917('0x11c5')]?_0x5ee917('0x14f7')+_0x505d62[_0x5ee917('0x11c5')]+_0x5ee917('0x16e4')+_0x505d62[_0x5ee917('0x1833')]:_0x5ee917('0x16be'),'msg':_0x505d62[_0x5ee917('0x1457')]?JSON[_0x5ee917('0x678')](_0x505d62[_0x5ee917('0x1457')]['message']):_0x505d62[_0x5ee917('0x1603')]||_0x505d62[_0x5ee917('0x9b6')]()});});},function(){});}function _0x155d74(_0x266b97){return _0x266b97===null?undefined:new Date(_0x266b97);}function _0x15d530(_0x352c70){const _0x49d5b0=_0x2086d0;_0xf41c4f[_0x49d5b0('0x212a')](_0x352c70);}}const _0x17b419=_0x400673,_0x471dc8=_0x4cf2bc['p']+_0x4376d8('0xaa5');_0x16c1c7['$inject']=['$scope','$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout','$translate',_0x4376d8('0x5a9'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license','setting'];function _0x16c1c7(_0x1b9594,_0x27e0bd,_0x6acc94,_0x2c7a7c,_0x4bc4ff,_0x1778d1,_0x5d2d40,_0x27d33e,_0x14006b,_0x187256,_0x40e835,_0x24f2b2,_0x3bd702,_0x382806,_0x1f93ae,_0x2e4ccd,_0x330b21){const _0x306097=_0x4376d8,_0x4be448=this;_0x4be448[_0x306097('0x1d11')]=_0x2e4ccd,_0x4be448['setting']=_0x330b21,_0x4be448[_0x306097('0x197c')]=_0x1f93ae[_0x306097('0x2831')](),_0x4be448['deskAccounts']=_0x14006b||{'count':0x0,'rows':[]},_0x4be448[_0x306097('0xdeb')]=_0x187256,_0x4be448['userProfileSection']=_0x40e835&&_0x40e835['count']==0x1?_0x40e835[_0x306097('0x2319')][0x0]:null,_0x4be448[_0x306097('0x103e')]=_0x1f93ae[_0x306097('0x17a9')](_0x4be448[_0x306097('0x383')]?_0x4be448[_0x306097('0x383')][_0x306097('0x103e')]:null),_0x4be448[_0x306097('0x23c3')]=_0x306097('0x5a9'),_0x4be448[_0x306097('0x26a1')]='',_0x4be448[_0x306097('0x24e1')]=null,_0x4be448[_0x306097('0x2862')]=[],_0x4be448['query']={'fields':_0x306097('0x20dc'),'limit':0xa,'page':0x1},_0x4be448[_0x306097('0xc41')]=_0x49cbdd()[_0x306097('0x8de')]([{'option':_0x306097('0x5d0'),'value':'\x27integrationTab\x27'},{'option':_0x306097('0x639'),'value':_0x306097('0x6f5')}],function(_0x3bb33a){return _0x49cbdd()['replace'](_0x3bb33a['value'],new RegExp('\x27','g'),'');}),_0x4be448['arrayauthType']=_0x49cbdd()['keyBy']([{'option':_0x306097('0x35c'),'value':_0x306097('0x1de3')}],function(_0x35998c){const _0x2da97b=_0x306097;return _0x49cbdd()[_0x2da97b('0x737')](_0x35998c[_0x2da97b('0x175b')],new RegExp('\x27','g'),'');}),_0x4be448[_0x306097('0xcd4')]=_0x29c6a5,_0x4be448[_0x306097('0xf3a')]=_0x5a6a23,_0x4be448[_0x306097('0xbf4')]=_0x14b4b5,_0x4be448[_0x306097('0x130d')]=_0x3a1f1c,_0x4be448['getDeskAccounts']=_0x4c136c,_0x4be448[_0x306097('0x7')]=_0x303b79,_0x4be448[_0x306097('0x726')]=_0x193fd0,_0x4be448[_0x306097('0x1204')]=_0x2d90d2,_0x4be448[_0x306097('0xf05')]=_0x88c427,_0x4be448[_0x306097('0x25e4')]=_0x4b204c,_0x4be448[_0x306097('0x1e62')]=_0x300442;function _0x29c6a5(_0x41a6e9){_0x6acc94['go']('app.integrations.deskAccounts.edit',{'id':_0x41a6e9['id'],'deskAccount':_0x41a6e9,'crudPermissions':_0x4be448['crudPermissions']});}function _0x5a6a23(_0x36be6f){const _0x55e5ba=_0x306097;return _0x24f2b2['intDeskAccount'][_0x55e5ba('0x9a')]({'id':_0x36be6f['id'],'test':!![]})['$promise'][_0x55e5ba('0x17e7')](function(){const _0xf3ceea=_0x55e5ba;_0x382806[_0xf3ceea('0x130d')]({'title':_0xf3ceea('0x52e'),'msg':_0xf3ceea('0x120d')});})['catch'](function(_0x51df7e){const _0x11666c=_0x55e5ba;_0x382806['error']({'title':'DeskAccount\x20properly\x20tested','msg':_0x51df7e[_0x11666c('0x1457')]?_0x51df7e[_0x11666c('0x1457')][_0x11666c('0x1603')]?_0x51df7e[_0x11666c('0x1457')][_0x11666c('0x1603')]:JSON[_0x11666c('0x678')](_0x51df7e[_0x11666c('0x1457')]):_0x51df7e[_0x11666c('0x9b6')]()});});}function _0x14b4b5(_0x4983cd,_0x8cfd21){const _0x24d159=_0x306097,_0x17d6ad=_0x4bc4ff[_0x24d159('0x1121')]()[_0x24d159('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20'+_0x49cbdd()['startCase'](_0x24d159('0x27cb'))+'?')['htmlContent'](''+(_0x4983cd[_0x24d159('0x2aa')]||_0x24d159('0x27cb'))+_0x24d159('0x1d23')+_0x24d159('0xe9f'))['ariaLabel'](_0x24d159('0x2541'))[_0x24d159('0x104f')](_0x8cfd21)['ok']('OK')[_0x24d159('0x1d47')]('CANCEL');_0x4bc4ff['show'](_0x17d6ad)[_0x24d159('0x17e7')](function(){_0x193fd0(_0x4983cd);},function(){const _0x2c49c3=_0x24d159;console[_0x2c49c3('0x1d63')]('CANCEL');});}let _0x35d2c2=!![],_0x56c9d8=0x1;_0x1b9594[_0x306097('0x620')](_0x306097('0x3ed'),function(_0x599bd5,_0x11ae43){const _0x4e4924=_0x306097;_0x35d2c2?_0x5d2d40(function(){_0x35d2c2=![];}):(!_0x11ae43&&(_0x56c9d8=_0x4be448[_0x4e4924('0x826')][_0x4e4924('0x115a')]),_0x599bd5!==_0x11ae43&&(_0x4be448['query'][_0x4e4924('0x115a')]=0x1),!_0x599bd5&&(_0x4be448[_0x4e4924('0x826')][_0x4e4924('0x115a')]=_0x56c9d8),_0x4be448[_0x4e4924('0x1d1d')]());});function _0x3a1f1c(_0x2bc36c){const _0x4297b5=_0x306097;_0x4be448[_0x4297b5('0x5a9')]=_0x2bc36c||{'count':0x0,'rows':[]};}function _0x4c136c(){const _0x29edd2=_0x306097;_0x4be448[_0x29edd2('0x826')][_0x29edd2('0xf19')]=(_0x4be448[_0x29edd2('0x826')][_0x29edd2('0x115a')]-0x1)*_0x4be448[_0x29edd2('0x826')][_0x29edd2('0x193b')],_0x1f93ae[_0x29edd2('0x1ba2')](_0x29edd2('0x20bf'))?_0x4be448['promise']=_0x24f2b2['intDeskAccount']['get'](_0x4be448[_0x29edd2('0x826')],_0x3a1f1c)[_0x29edd2('0x1af5')]:(_0x4be448[_0x29edd2('0x826')]['id']=_0x4be448['userProfile']['id'],_0x4be448[_0x29edd2('0x826')][_0x29edd2('0x16f8')]=_0x29edd2('0x26dd'),_0x4be448[_0x29edd2('0x1691')]=_0x24f2b2[_0x29edd2('0xdeb')][_0x29edd2('0x2447')](_0x4be448[_0x29edd2('0x826')],_0x3a1f1c)[_0x29edd2('0x1af5')]);}function _0x303b79(_0x1160f2,_0x577be1){const _0x1c873f=_0x306097;_0x4bc4ff[_0x1c873f('0x28e2')]({'controller':'CreateOrEditDeskAccountDialogController','controllerAs':'vm','templateUrl':_0x471dc8,'parent':angular['element'](_0x1778d1[_0x1c873f('0x13aa')]),'targetEvent':_0x1160f2,'clickOutsideToClose':!![],'locals':{'deskAccount':_0x577be1,'deskAccounts':_0x4be448[_0x1c873f('0x5a9')][_0x1c873f('0x2319')],'license':_0x4be448['license'],'setting':_0x4be448[_0x1c873f('0x1aeb')],'crudPermissions':_0x4be448[_0x1c873f('0x103e')]}});}function _0x193fd0(_0x3b68f9){const _0x34716f=_0x306097;_0x24f2b2[_0x34716f('0x278')][_0x34716f('0x1da6')]({'id':_0x3b68f9['id']})['$promise'][_0x34716f('0x17e7')](function(){const _0x395c27=_0x34716f;_0x49cbdd()[_0x395c27('0x5f3')](_0x4be448['deskAccounts']['rows'],{'id':_0x3b68f9['id']}),_0x4be448['deskAccounts'][_0x395c27('0x335')]-=0x1,!_0x4be448['deskAccounts'][_0x395c27('0x2319')]['length']&&_0x4be448[_0x395c27('0x1d1d')](),_0x382806[_0x395c27('0x130d')]({'title':_0x49cbdd()[_0x395c27('0x1c98')](_0x395c27('0x2824'))+'\x20deleted!','msg':_0x3b68f9['name']?_0x3b68f9[_0x395c27('0x2aa')]+_0x395c27('0x149f'):''});})[_0x34716f('0x16df')](function(_0x5c5f13){const _0x29b6b5=_0x34716f;if(_0x5c5f13[_0x29b6b5('0x1457')]&&_0x5c5f13[_0x29b6b5('0x1457')][_0x29b6b5('0x73e')]&&_0x5c5f13[_0x29b6b5('0x1457')]['errors']['length']){_0x4be448[_0x29b6b5('0x73e')]=_0x5c5f13[_0x29b6b5('0x1457')][_0x29b6b5('0x73e')]||[{'message':_0x5c5f13['toString'](),'type':_0x29b6b5('0x77d')}];for(let _0x17ab94=0x0;_0x17ab94<_0x5c5f13[_0x29b6b5('0x1457')]['errors']['length'];_0x17ab94++){_0x382806['error']({'title':_0x5c5f13[_0x29b6b5('0x1457')][_0x29b6b5('0x73e')][_0x17ab94][_0x29b6b5('0x412')],'msg':_0x5c5f13[_0x29b6b5('0x1457')][_0x29b6b5('0x73e')][_0x17ab94][_0x29b6b5('0x1603')]});}}else _0x382806[_0x29b6b5('0x1db9')]({'title':_0x5c5f13[_0x29b6b5('0x11c5')]?'API:'+_0x5c5f13[_0x29b6b5('0x11c5')]+_0x29b6b5('0x16e4')+_0x5c5f13['statusText']:_0x29b6b5('0x77d'),'msg':_0x5c5f13[_0x29b6b5('0x1457')]?JSON[_0x29b6b5('0x678')](_0x5c5f13[_0x29b6b5('0x1457')]['message']):_0x5c5f13[_0x29b6b5('0x1603')]||_0x5c5f13[_0x29b6b5('0x9b6')]()});});}function _0x2d90d2(){const _0x59e5e1=_0x306097,_0x4abdcc=angular[_0x59e5e1('0x14e5')](_0x4be448[_0x59e5e1('0x2862')]);return _0x4be448['selectedDeskAccounts']=[],_0x4abdcc;}function _0x88c427(_0x1876ae){const _0x492525=_0x306097,_0xcc6a26=_0x4bc4ff['confirm']()['title'](_0x492525('0x1e2f'))[_0x492525('0x211f')](_0x492525('0xa53')+_0x4be448['selectedDeskAccounts'][_0x492525('0x1f73')]+'\x20selected'+_0x492525('0xe9f'))[_0x492525('0x2095')](_0x492525('0x636'))[_0x492525('0x104f')](_0x1876ae)['ok']('OK')[_0x492525('0x1d47')]('CANCEL');_0x4bc4ff['show'](_0xcc6a26)[_0x492525('0x17e7')](function(){const _0x2b0de0=_0x492525;_0x4be448[_0x2b0de0('0x2862')]['forEach'](function(_0x502f0b){_0x193fd0(_0x502f0b);}),_0x4be448[_0x2b0de0('0x2862')]=[];});}function _0x4b204c(){_0x4be448['selectedDeskAccounts']=[];}function _0x300442(){const _0x347de8=_0x306097;_0x4be448['selectedDeskAccounts']=_0x4be448[_0x347de8('0x5a9')][_0x347de8('0x2319')];}}const _0x2a5132=_0x16c1c7,_0x208b40=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/configurations/dialog.html/dialog.html',_0x339af6=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/deskAccounts/edit/item/dialog.html/dialog.html';_0x1b462d[_0x4376d8('0x1b9c')]=['$mdDialog',_0x4376d8('0x26ca'),'api',_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x1b462d(_0x4fceaa,_0xc2d80e,_0x39cf6e,_0x5df3e2,_0x49ed7d){const _0x2d682b=_0x4376d8,_0x1c80f2=this;_0x1c80f2[_0x2d682b('0x197c')]=_0x49ed7d[_0x2d682b('0x2831')](),_0x1c80f2[_0x2d682b('0x27cb')]={},_0x1c80f2[_0x2d682b('0xca4')]={},_0x1c80f2['configurations']=[],_0x1c80f2[_0x2d682b('0x226')]=-0x1,_0x1c80f2[_0x2d682b('0x103e')],_0x1c80f2[_0x2d682b('0x161d')]=_0x4fe528,_0x1c80f2[_0x2d682b('0x76')]=_0x2f58c5,_0x1c80f2[_0x2d682b('0x82b')]=_0x32e07c,_0x1c80f2[_0x2d682b('0x15f0')]=_0x488a24,_0x1c80f2[_0x2d682b('0x8b4')]=[],_0x1c80f2[_0x2d682b('0x5ca')]=_0x492153,_0x39cf6e[_0x2d682b('0x1132')][_0x2d682b('0x1c53')]({'nolimit':!![],'sort':_0x2d682b('0x2aa')})[_0x2d682b('0x1af5')][_0x2d682b('0x17e7')](function(_0x2412b1){const _0x1f5ecc=_0x2d682b;_0x1c80f2[_0x1f5ecc('0x1522')]=_0x2412b1[_0x1f5ecc('0x2319')]?_0x2412b1[_0x1f5ecc('0x2319')]:[];})['catch'](function(_0x5ecd59){const _0x2118f2=_0x2d682b;_0x5df3e2[_0x2118f2('0x1db9')]({'title':_0x5ecd59[_0x2118f2('0x11c5')]?_0x2118f2('0x14f7')+_0x5ecd59[_0x2118f2('0x11c5')]+_0x2118f2('0x16e4')+_0x5ecd59[_0x2118f2('0x1833')]:_0x2118f2('0x1435'),'msg':_0x5ecd59[_0x2118f2('0x1457')]?JSON[_0x2118f2('0x678')](_0x5ecd59[_0x2118f2('0x1457')]):_0x5ecd59[_0x2118f2('0x9b6')]()});});function _0x492153(){const _0x1b8501=_0x2d682b;_0x39cf6e[_0x1b8501('0xd2b')][_0x1b8501('0x4bc')]({'id':_0x1c80f2[_0x1b8501('0xca4')]['id'],'ids':_0x1c80f2[_0x1b8501('0x8b4')]})[_0x1b8501('0x1af5')]['then'](function(){const _0x311d16=_0x1b8501;_0x5df3e2['success']({'title':_0x311d16('0x286d'),'msg':_0x311d16('0x2f6')});})['catch'](function(_0x165cc8){const _0x3692a=_0x1b8501;_0x5df3e2[_0x3692a('0x1db9')]({'title':_0x165cc8[_0x3692a('0x11c5')]?_0x3692a('0x14f7')+_0x165cc8['status']+_0x3692a('0x16e4')+_0x165cc8['statusText']:_0x3692a('0x25b0'),'msg':_0x165cc8[_0x3692a('0x1457')]?JSON['stringify'](_0x165cc8[_0x3692a('0x1457')]):_0x165cc8[_0x3692a('0x9b6')]()});});}function _0x4fe528(_0xbd6261,_0x235698){const _0x3e511b=_0x2d682b;_0x1c80f2[_0x3e511b('0x27cb')]=_0xbd6261,_0x1c80f2['crudPermissions']=typeof _0x235698!==_0x3e511b('0xfad')?_0x235698:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x39cf6e[_0x3e511b('0x278')][_0x3e511b('0xee0')]({'id':_0x1c80f2[_0x3e511b('0x27cb')]['id'],'sort':_0x3e511b('0x1ac6')})[_0x3e511b('0x1af5')][_0x3e511b('0x17e7')](function(_0xc4153d){const _0x172cb9=_0x3e511b;return _0x1c80f2[_0x172cb9('0x11d0')]=_0xc4153d[_0x172cb9('0x2319')]?_0xc4153d[_0x172cb9('0x2319')]:[],_0x1c80f2[_0x172cb9('0x11d0')][_0x172cb9('0x1f73')]&&_0x1c80f2[_0x172cb9('0x76')](0x0),_0x39cf6e[_0x172cb9('0xb0a')][_0x172cb9('0x1c53')]({'nolimit':!![],'sort':_0x172cb9('0x2aa')})['$promise'];})[_0x3e511b('0x17e7')](function(_0x118d94){const _0x5b9366=_0x3e511b;_0x1c80f2['variables']=_0x118d94[_0x5b9366('0x2319')]?_0x118d94['rows']:[],_0x1c80f2[_0x5b9366('0x214d')]=_0x49cbdd()[_0x5b9366('0x8de')](_0x1c80f2[_0x5b9366('0xd26')],'id');})['catch'](function(_0x1227dc){const _0x5a0474=_0x3e511b;_0x5df3e2[_0x5a0474('0x1db9')]({'title':_0x1227dc[_0x5a0474('0x11c5')]?'API:'+_0x1227dc['status']+_0x5a0474('0x16e4')+_0x1227dc[_0x5a0474('0x1833')]:_0x5a0474('0x183b'),'msg':_0x1227dc[_0x5a0474('0x1457')]?JSON['stringify'](_0x1227dc[_0x5a0474('0x1457')]):_0x1227dc['toString']()});});}function _0x2f58c5(_0x2cd664){const _0xd1bb5a=_0x2d682b;_0x1c80f2[_0xd1bb5a('0xca4')]=_0x1c80f2['configurations'][_0x2cd664],_0x1c80f2[_0xd1bb5a('0x226')]=_0x2cd664,_0x39cf6e[_0xd1bb5a('0xd2b')][_0xd1bb5a('0x94e')]({'id':_0x1c80f2[_0xd1bb5a('0xca4')]['id']})[_0xd1bb5a('0x1af5')][_0xd1bb5a('0x17e7')](function(_0x549f25){const _0x6647d6=_0xd1bb5a;return _0x1c80f2[_0x6647d6('0x1261')]=_0x549f25['rows']?_0x549f25['rows']:[],_0x39cf6e[_0x6647d6('0xd2b')][_0x6647d6('0x24c7')]({'id':_0x1c80f2[_0x6647d6('0xca4')]['id']})[_0x6647d6('0x1af5')];})[_0xd1bb5a('0x17e7')](function(_0x1d0043){const _0x2661ee=_0xd1bb5a;return _0x1c80f2[_0x2661ee('0x1a2a')]=_0x1d0043['rows']?_0x1d0043[_0x2661ee('0x2319')]:[],_0x39cf6e[_0x2661ee('0xd2b')][_0x2661ee('0x9a')]({'id':_0x1c80f2[_0x2661ee('0xca4')]['id']})[_0x2661ee('0x1af5')];})[_0xd1bb5a('0x17e7')](function(_0x37bc09){const _0x50f5a9=_0xd1bb5a;_0x1c80f2[_0x50f5a9('0x9c9')]=_0x37bc09[_0x50f5a9('0x2319')]?_0x37bc09[_0x50f5a9('0x2319')]:[];})['catch'](function(_0x4461be){const _0x374e84=_0xd1bb5a;_0x5df3e2[_0x374e84('0x1db9')]({'title':_0x4461be[_0x374e84('0x11c5')]?_0x374e84('0x14f7')+_0x4461be[_0x374e84('0x11c5')]+_0x374e84('0x16e4')+_0x4461be[_0x374e84('0x1833')]:_0x374e84('0x23be'),'msg':_0x4461be[_0x374e84('0x1457')]?JSON[_0x374e84('0x678')](_0x4461be[_0x374e84('0x1457')]):_0x4461be[_0x374e84('0x9b6')]()});}),_0x39cf6e[_0xd1bb5a('0xd2b')][_0xd1bb5a('0x79a')]({'id':_0x1c80f2['deskConfiguration']['id']})['$promise']['then'](function(_0x571dcc){const _0x1855c2=_0xd1bb5a;_0x1c80f2['selectedTags']=_0x571dcc['rows']?_0x49cbdd()[_0x1855c2('0x787')](_0x571dcc[_0x1855c2('0x2319')],'id'):[];})['catch'](function(_0x2198dd){const _0x3e4ce5=_0xd1bb5a;_0x5df3e2[_0x3e4ce5('0x1db9')]({'title':_0x2198dd['status']?_0x3e4ce5('0x14f7')+_0x2198dd[_0x3e4ce5('0x11c5')]+_0x3e4ce5('0x16e4')+_0x2198dd[_0x3e4ce5('0x1833')]:_0x3e4ce5('0x1435'),'msg':_0x2198dd[_0x3e4ce5('0x1457')]?JSON[_0x3e4ce5('0x678')](_0x2198dd[_0x3e4ce5('0x1457')]):_0x2198dd[_0x3e4ce5('0x9b6')]()});});}function _0x32e07c(_0x24b9a8,_0x5357b9){const _0x4cdec0=_0x2d682b;_0x4fceaa[_0x4cdec0('0x28e2')]({'controller':'CreateOrEditDeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x208b40,'parent':angular[_0x4cdec0('0x1ce1')](_0xc2d80e[_0x4cdec0('0x13aa')]),'targetEvent':_0x24b9a8,'clickOutsideToClose':!![],'locals':{'deskConfiguration':_0x5357b9,'configurations':_0x1c80f2[_0x4cdec0('0x11d0')],'license':null,'setting':null,'crudPermissions':_0x1c80f2[_0x4cdec0('0x103e')]}})['finally'](function(){const _0x44190d=_0x4cdec0;_0x1c80f2[_0x44190d('0x76')](0x0);});}function _0x488a24(_0x7cb398,_0x28dd7d){const _0x1ec261=_0x2d682b,_0x1305c9=_0x4fceaa['confirm']()[_0x1ec261('0x24d3')](_0x1ec261('0x163e'))[_0x1ec261('0x211f')](_0x1ec261('0xa53')+(_0x28dd7d[_0x1ec261('0x2aa')]||_0x1ec261('0xca4'))+_0x1ec261('0x1d23')+_0x1ec261('0xe9f'))['ariaLabel'](_0x1ec261('0xacd'))[_0x1ec261('0x104f')](_0x7cb398)['ok']('OK')[_0x1ec261('0x1d47')](_0x1ec261('0x28a0'));_0x4fceaa[_0x1ec261('0x28e2')](_0x1305c9)['then'](function(){const _0x549d05=_0x1ec261;_0x39cf6e[_0x549d05('0xd2b')][_0x549d05('0x1da6')]({'id':_0x28dd7d['id']})[_0x549d05('0x1af5')]['then'](function(){const _0x12269a=_0x549d05;_0x49cbdd()['remove'](_0x1c80f2['configurations'],{'id':_0x28dd7d['id']}),_0x5df3e2[_0x12269a('0x130d')]({'title':'DeskConfiguration\x20deleted!','msg':_0x28dd7d[_0x12269a('0x2aa')]?_0x28dd7d[_0x12269a('0x2aa')]+_0x12269a('0x149f'):''});})['catch'](function(_0x30fff6){const _0x30deaf=_0x549d05;_0x5df3e2[_0x30deaf('0x1db9')]({'title':_0x30fff6[_0x30deaf('0x11c5')]?'API:'+_0x30fff6[_0x30deaf('0x11c5')]+_0x30deaf('0x16e4')+_0x30fff6[_0x30deaf('0x1833')]:_0x30deaf('0x11b4'),'msg':_0x30fff6[_0x30deaf('0x1457')]?JSON[_0x30deaf('0x678')](_0x30fff6[_0x30deaf('0x1457')]):_0x30fff6[_0x30deaf('0x9b6')]()});})['finally'](function(){const _0x1380a0=_0x549d05;_0x1c80f2[_0x1380a0('0x76')](0x0);});},function(){const _0x1ebd5c=_0x1ec261;console[_0x1ebd5c('0x1d63')](_0x1ebd5c('0x28a0'));});}_0x1c80f2[_0x2d682b('0x95b')]=[],_0x1c80f2[_0x2d682b('0x1066')]=_0x43274f,_0x1c80f2['deleteSubjectConfirm']=_0x358323,_0x1c80f2[_0x2d682b('0x2738')]=_0x159778;function _0x43274f(_0x230dce,_0x9e3e05){const _0x4469d9=_0x2d682b;_0x4fceaa[_0x4469d9('0x28e2')]({'controller':_0x4469d9('0x2523'),'controllerAs':'vm','templateUrl':_0x339af6,'parent':angular[_0x4469d9('0x1ce1')](_0xc2d80e[_0x4469d9('0x13aa')]),'targetEvent':_0x230dce,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x9e3e05,'items':_0x1c80f2[_0x4469d9('0x1261')],'configuration':_0x1c80f2['deskConfiguration'],'account':_0x1c80f2[_0x4469d9('0x27cb')],'license':null,'setting':null,'crudPermissions':_0x1c80f2['crudPermissions']}});}function _0x3223b1(_0x4c276c){const _0xe3af4a=_0x2d682b;_0x39cf6e[_0xe3af4a('0xd61')][_0xe3af4a('0x1da6')]({'id':_0x4c276c['id']})['$promise']['then'](function(){const _0x230d5c=_0xe3af4a;_0x49cbdd()[_0x230d5c('0x5f3')](_0x1c80f2[_0x230d5c('0x1261')],{'id':_0x4c276c['id']}),_0x5df3e2[_0x230d5c('0x130d')]({'title':'Subject\x20deleted!','msg':_0x230d5c('0x179c')});})['catch'](function(_0x4cae47){const _0x1272c5=_0xe3af4a;_0x5df3e2[_0x1272c5('0x1db9')]({'title':_0x4cae47[_0x1272c5('0x11c5')]?_0x1272c5('0x14f7')+_0x4cae47[_0x1272c5('0x11c5')]+_0x1272c5('0x16e4')+_0x4cae47['statusText']:_0x1272c5('0x14bd'),'msg':_0x4cae47['data']?JSON['stringify'](_0x4cae47[_0x1272c5('0x1457')]):_0x4cae47[_0x1272c5('0x9b6')]()});});}function _0x358323(_0x4579c4,_0x1cec63){const _0x25b3f0=_0x2d682b,_0x3a74c8=_0x4fceaa[_0x25b3f0('0x1121')]()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0x25b3f0('0x211f')](_0x25b3f0('0x694')+_0x25b3f0('0xe9f'))['ariaLabel'](_0x25b3f0('0x16d1'))[_0x25b3f0('0x104f')](_0x4579c4)['ok']('OK')[_0x25b3f0('0x1d47')](_0x25b3f0('0x28a0'));_0x4fceaa[_0x25b3f0('0x28e2')](_0x3a74c8)['then'](function(){_0x3223b1(_0x1cec63);},function(){const _0x1ad23e=_0x25b3f0;console['log'](_0x1ad23e('0x28a0'));});}function _0x159778(_0xee8062){const _0x118213=_0x2d682b,_0x5beead=_0x4fceaa[_0x118213('0x1121')]()[_0x118213('0x24d3')](_0x118213('0xb0b'))['htmlContent'](''+_0x1c80f2[_0x118213('0x95b')][_0x118213('0x1f73')]+_0x118213('0x145a')+_0x118213('0xe9f'))['ariaLabel'](_0x118213('0x1bc'))[_0x118213('0x104f')](_0xee8062)['ok']('OK')[_0x118213('0x1d47')](_0x118213('0x28a0'));_0x4fceaa[_0x118213('0x28e2')](_0x5beead)[_0x118213('0x17e7')](function(){const _0x189758=_0x118213;_0x1c80f2['selectedSubjects'][_0x189758('0xccd')](function(_0x5b5c64){_0x3223b1(_0x5b5c64);}),_0x1c80f2[_0x189758('0x95b')]=[];});}_0x1c80f2[_0x2d682b('0xb0f')]=[],_0x1c80f2[_0x2d682b('0x1ac8')]=_0x17e7ef,_0x1c80f2[_0x2d682b('0x178')]=_0x389a7b,_0x1c80f2[_0x2d682b('0xe42')]=_0xd42fc8;function _0x17e7ef(_0x6183ad,_0x6f77c7){const _0x56d10c=_0x2d682b;_0x4fceaa[_0x56d10c('0x28e2')]({'controller':_0x56d10c('0x2523'),'controllerAs':'vm','templateUrl':_0x339af6,'parent':angular[_0x56d10c('0x1ce1')](_0xc2d80e['body']),'targetEvent':_0x6183ad,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x6f77c7,'items':_0x1c80f2['descriptions'],'configuration':_0x1c80f2[_0x56d10c('0xca4')],'account':_0x1c80f2[_0x56d10c('0x27cb')],'license':null,'setting':null,'crudPermissions':_0x1c80f2['crudPermissions']}});}function _0x395af1(_0x2832c6){const _0x509a7b=_0x2d682b;_0x39cf6e[_0x509a7b('0xd61')][_0x509a7b('0x1da6')]({'id':_0x2832c6['id']})['$promise'][_0x509a7b('0x17e7')](function(){const _0x2e186a=_0x509a7b;_0x49cbdd()[_0x2e186a('0x5f3')](_0x1c80f2[_0x2e186a('0x1a2a')],{'id':_0x2832c6['id']}),_0x5df3e2[_0x2e186a('0x130d')]({'title':_0x2e186a('0x1504'),'msg':'Description\x20has\x20been\x20deleted!'});})['catch'](function(_0x104679){const _0x3f4196=_0x509a7b;_0x5df3e2[_0x3f4196('0x1db9')]({'title':_0x104679[_0x3f4196('0x11c5')]?'API:'+_0x104679[_0x3f4196('0x11c5')]+'\x20-\x20'+_0x104679[_0x3f4196('0x1833')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x104679[_0x3f4196('0x1457')]?JSON[_0x3f4196('0x678')](_0x104679['data']):_0x104679[_0x3f4196('0x9b6')]()});});}function _0x389a7b(_0x531fbf,_0xe21bb){const _0x429852=_0x2d682b,_0x401088=_0x4fceaa[_0x429852('0x1121')]()[_0x429852('0x24d3')](_0x429852('0x2bb'))['htmlContent'](_0x429852('0x217a')+_0x429852('0xe9f'))['ariaLabel'](_0x429852('0x1cf7'))[_0x429852('0x104f')](_0x531fbf)['ok']('OK')[_0x429852('0x1d47')]('CANCEL');_0x4fceaa[_0x429852('0x28e2')](_0x401088)[_0x429852('0x17e7')](function(){_0x395af1(_0xe21bb);},function(){const _0x2d5fe1=_0x429852;console[_0x2d5fe1('0x1d63')](_0x2d5fe1('0x28a0'));});}function _0xd42fc8(_0x1c8730){const _0x3b007f=_0x2d682b,_0xa4e8fa=_0x4fceaa[_0x3b007f('0x1121')]()['title'](_0x3b007f('0x12d4'))[_0x3b007f('0x211f')](''+_0x1c80f2[_0x3b007f('0xb0f')][_0x3b007f('0x1f73')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x3b007f('0x2095')]('delete\x20descriptions')[_0x3b007f('0x104f')](_0x1c8730)['ok']('OK')[_0x3b007f('0x1d47')]('CANCEL');_0x4fceaa[_0x3b007f('0x28e2')](_0xa4e8fa)[_0x3b007f('0x17e7')](function(){const _0x15956f=_0x3b007f;_0x1c80f2[_0x15956f('0xb0f')]['forEach'](function(_0x30f985){_0x395af1(_0x30f985);}),_0x1c80f2[_0x15956f('0xb0f')]=[];});}_0x1c80f2[_0x2d682b('0xa2e')]=[],_0x1c80f2[_0x2d682b('0xc53')]=_0x124737,_0x1c80f2[_0x2d682b('0x7f5')]=_0x217e24,_0x1c80f2[_0x2d682b('0xd1b')]=_0x15a431;function _0x124737(_0x4c5aa6,_0x28d751){const _0x42f303=_0x2d682b;_0x4fceaa['show']({'controller':_0x42f303('0x2523'),'controllerAs':'vm','templateUrl':_0x339af6,'parent':angular[_0x42f303('0x1ce1')](_0xc2d80e['body']),'targetEvent':_0x4c5aa6,'clickOutsideToClose':!![],'locals':{'type':_0x42f303('0x1515'),'item':_0x28d751,'items':_0x1c80f2['fields'],'configuration':_0x1c80f2['deskConfiguration'],'account':_0x1c80f2[_0x42f303('0x27cb')],'license':null,'setting':null,'crudPermissions':_0x1c80f2[_0x42f303('0x103e')]}});}function _0xd070d3(_0x2c0dc1){const _0x489bb9=_0x2d682b;_0x39cf6e[_0x489bb9('0xd61')][_0x489bb9('0x1da6')]({'id':_0x2c0dc1['id']})[_0x489bb9('0x1af5')][_0x489bb9('0x17e7')](function(){const _0x2583e=_0x489bb9;_0x49cbdd()['remove'](_0x1c80f2['fields'],{'id':_0x2c0dc1['id']}),_0x5df3e2[_0x2583e('0x130d')]({'title':_0x2583e('0x1605'),'msg':_0x2583e('0xbb8')});})[_0x489bb9('0x16df')](function(_0x4c86e2){const _0x459b22=_0x489bb9;_0x5df3e2[_0x459b22('0x1db9')]({'title':_0x4c86e2[_0x459b22('0x11c5')]?_0x459b22('0x14f7')+_0x4c86e2['status']+_0x459b22('0x16e4')+_0x4c86e2['statusText']:_0x459b22('0x14bd'),'msg':_0x4c86e2['data']?JSON[_0x459b22('0x678')](_0x4c86e2[_0x459b22('0x1457')]):_0x4c86e2[_0x459b22('0x9b6')]()});});}function _0x217e24(_0x4a9a5d,_0x3421e8){const _0x2cca21=_0x2d682b,_0x693646=_0x4fceaa[_0x2cca21('0x1121')]()[_0x2cca21('0x24d3')](_0x2cca21('0x1d1f'))[_0x2cca21('0x211f')](_0x2cca21('0x23ff')+_0x2cca21('0xe9f'))[_0x2cca21('0x2095')](_0x2cca21('0x1f01'))['targetEvent'](_0x4a9a5d)['ok']('OK')[_0x2cca21('0x1d47')]('CANCEL');_0x4fceaa[_0x2cca21('0x28e2')](_0x693646)[_0x2cca21('0x17e7')](function(){_0xd070d3(_0x3421e8);},function(){const _0x3c2279=_0x2cca21;console[_0x3c2279('0x1d63')]('CANCEL');});}function _0x15a431(_0x58bfb4){const _0x1d3f70=_0x2d682b,_0x568b7f=_0x4fceaa['confirm']()[_0x1d3f70('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x1d3f70('0x211f')](_0x1d3f70('0xa53')+_0x1c80f2[_0x1d3f70('0xa2e')][_0x1d3f70('0x1f73')]+_0x1d3f70('0x145a')+_0x1d3f70('0xe9f'))['ariaLabel'](_0x1d3f70('0x15ee'))['targetEvent'](_0x58bfb4)['ok']('OK')[_0x1d3f70('0x1d47')](_0x1d3f70('0x28a0'));_0x4fceaa[_0x1d3f70('0x28e2')](_0x568b7f)[_0x1d3f70('0x17e7')](function(){const _0x536775=_0x1d3f70;_0x1c80f2[_0x536775('0xa2e')][_0x536775('0xccd')](function(_0x55f668){_0xd070d3(_0x55f668);}),_0x1c80f2[_0x536775('0xa2e')]=[];});}}const _0x12c870=_0x1b462d;_0x43e561[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x11d0'),_0x4376d8('0xca4'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x43e561(_0x380e2c,_0x1e185c,_0x318fe0,_0x226d54,_0xd720e0,_0x15c1d9,_0x54f3ed,_0x16d346,_0x80266f,_0x6c4fa5,_0x9d2f54,_0x5c364d,_0x480d6e,_0x4edba0){const _0x4ee7ce=_0x4376d8,_0x5d2170=this;_0x5d2170['currentUser']=_0x9d2f54[_0x4ee7ce('0x2831')](),_0x5d2170['errors']=[],_0x5d2170[_0x4ee7ce('0x1aeb')]=_0x480d6e,_0x5d2170[_0x4ee7ce('0x1d11')]=_0x5c364d,_0x5d2170['crudPermissions']=_0x4edba0,_0x5d2170[_0x4ee7ce('0x6ee')]={},_0x5d2170[_0x4ee7ce('0x1572')]=_0x5d2170[_0x4ee7ce('0x1aeb')]&&_0x5d2170['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5d2170['title']='INTEGRATIONS.EDIT_DESKCONFIGURATION',_0x5d2170[_0x4ee7ce('0xca4')]=angular['copy'](_0x80266f),_0x5d2170[_0x4ee7ce('0x11d0')]=_0x16d346,_0x5d2170[_0x4ee7ce('0x126c')]=![];!_0x5d2170[_0x4ee7ce('0xca4')]&&(_0x5d2170[_0x4ee7ce('0xca4')]={'channel':_0x4ee7ce('0x1fe1'),'type':_0x4ee7ce('0x1e77')},_0x5d2170['title']=_0x4ee7ce('0x1699'),_0x5d2170[_0x4ee7ce('0x126c')]=!![]);_0x5d2170[_0x4ee7ce('0x21b')]=_0x4cda0b,_0x5d2170[_0x4ee7ce('0xc18')]=_0x3c1e01,_0x5d2170[_0x4ee7ce('0x15f0')]=_0x17434b,_0x5d2170[_0x4ee7ce('0x1300')]=_0x2e56af,_0x5d2170[_0x4ee7ce('0x136e')]=_0x33adb6;function _0x4cda0b(){const _0x83524c=_0x4ee7ce;_0x5d2170[_0x83524c('0x73e')]=[],_0x6c4fa5[_0x83524c('0x278')][_0x83524c('0x5e0')]({'id':_0x1e185c[_0x83524c('0x16fb')]['id']},_0x5d2170['deskConfiguration'])['$promise'][_0x83524c('0x17e7')](function(_0x4f8e47){const _0x1ebe5c=_0x83524c;_0x5d2170[_0x1ebe5c('0x11d0')][_0x1ebe5c('0x1893')](_0x4f8e47[_0x1ebe5c('0x16b2')]()),_0x54f3ed[_0x1ebe5c('0x130d')]({'title':_0x1ebe5c('0x6a6'),'msg':_0x5d2170['deskConfiguration']['name']?_0x5d2170[_0x1ebe5c('0xca4')][_0x1ebe5c('0x2aa')]+_0x1ebe5c('0x15a'):''}),_0x33adb6(_0x4f8e47);})[_0x83524c('0x16df')](function(_0x49fd3f){const _0x28069c=_0x83524c;if(_0x49fd3f['data']&&_0x49fd3f['data'][_0x28069c('0x73e')]&&_0x49fd3f[_0x28069c('0x1457')][_0x28069c('0x73e')][_0x28069c('0x1f73')]){_0x5d2170['errors']=_0x49fd3f[_0x28069c('0x1457')][_0x28069c('0x73e')]||[{'message':_0x49fd3f['toString'](),'type':'api.intDeskConfiguration.save'}];for(let _0x934da8=0x0;_0x934da8<_0x49fd3f['data'][_0x28069c('0x73e')][_0x28069c('0x1f73')];_0x934da8+=0x1){_0x54f3ed[_0x28069c('0x1db9')]({'title':_0x49fd3f[_0x28069c('0x1457')][_0x28069c('0x73e')][_0x934da8][_0x28069c('0x412')],'msg':_0x49fd3f[_0x28069c('0x1457')][_0x28069c('0x73e')][_0x934da8][_0x28069c('0x1603')]});}}else _0x54f3ed['error']({'title':_0x49fd3f[_0x28069c('0x11c5')]?_0x28069c('0x14f7')+_0x49fd3f[_0x28069c('0x11c5')]+_0x28069c('0x16e4')+_0x49fd3f['statusText']:_0x28069c('0xb02'),'msg':_0x49fd3f[_0x28069c('0x1457')]?JSON['stringify'](_0x49fd3f[_0x28069c('0x1457')][_0x28069c('0x1603')]):_0x49fd3f[_0x28069c('0x9b6')]()});});}function _0x3c1e01(){const _0x3b87fa=_0x4ee7ce;_0x5d2170[_0x3b87fa('0x73e')]=[],_0x6c4fa5[_0x3b87fa('0xd2b')][_0x3b87fa('0x27ba')]({'id':_0x5d2170[_0x3b87fa('0xca4')]['id']},_0x5d2170[_0x3b87fa('0xca4')])[_0x3b87fa('0x1af5')][_0x3b87fa('0x17e7')](function(_0x41c1d5){const _0x542ead=_0x3b87fa,_0x4422df=_0x49cbdd()['find'](_0x5d2170[_0x542ead('0x11d0')],{'id':_0x41c1d5['id']});_0x4422df&&_0x49cbdd()[_0x542ead('0x1ced')](_0x4422df,_0x49cbdd()[_0x542ead('0x230a')](_0x41c1d5['toJSON'](),_0x49cbdd()[_0x542ead('0x1c0f')](_0x4422df))),_0x54f3ed[_0x542ead('0x130d')]({'title':'DeskConfiguration\x20properly\x20saved!','msg':_0x5d2170[_0x542ead('0xca4')][_0x542ead('0x2aa')]?_0x5d2170[_0x542ead('0xca4')]['name']+_0x542ead('0x15ca'):''}),_0x33adb6(_0x41c1d5);})['catch'](function(_0x4f9dee){const _0x5cd291=_0x3b87fa;if(_0x4f9dee[_0x5cd291('0x1457')]&&_0x4f9dee[_0x5cd291('0x1457')][_0x5cd291('0x73e')]&&_0x4f9dee[_0x5cd291('0x1457')][_0x5cd291('0x73e')][_0x5cd291('0x1f73')]){_0x5d2170[_0x5cd291('0x73e')]=_0x4f9dee[_0x5cd291('0x1457')]['errors']||[{'message':_0x4f9dee[_0x5cd291('0x9b6')](),'type':'api.intDeskConfiguration.update'}];for(let _0x5886a9=0x0;_0x5886a9<_0x4f9dee[_0x5cd291('0x1457')][_0x5cd291('0x73e')]['length'];_0x5886a9++){_0x54f3ed['error']({'title':_0x4f9dee[_0x5cd291('0x1457')][_0x5cd291('0x73e')][_0x5886a9][_0x5cd291('0x412')],'msg':_0x4f9dee[_0x5cd291('0x1457')][_0x5cd291('0x73e')][_0x5886a9]['message']});}}else _0x54f3ed[_0x5cd291('0x1db9')]({'title':_0x4f9dee[_0x5cd291('0x11c5')]?'API:'+_0x4f9dee[_0x5cd291('0x11c5')]+_0x5cd291('0x16e4')+_0x4f9dee[_0x5cd291('0x1833')]:_0x5cd291('0x203'),'msg':_0x4f9dee[_0x5cd291('0x1457')]?JSON[_0x5cd291('0x678')](_0x4f9dee[_0x5cd291('0x1457')]['message']):_0x4f9dee[_0x5cd291('0x9b6')]()});});}function _0x17434b(_0x5f3902){const _0x55c244=_0x4ee7ce;_0x5d2170[_0x55c244('0x73e')]=[];const _0x3c363c=_0x226d54['confirm']()[_0x55c244('0x24d3')](_0x55c244('0x530'))[_0x55c244('0xd5')](_0x55c244('0x1641'))[_0x55c244('0x2095')](_0x55c244('0x270d'))['ok'](_0x55c244('0x304'))['cancel'](_0x55c244('0x1b70'))[_0x55c244('0x104f')](_0x5f3902);_0x226d54[_0x55c244('0x28e2')](_0x3c363c)[_0x55c244('0x17e7')](function(){const _0x3c0221=_0x55c244;_0x6c4fa5[_0x3c0221('0xd2b')][_0x3c0221('0x1da6')]({'id':_0x5d2170[_0x3c0221('0xca4')]['id']})['$promise'][_0x3c0221('0x17e7')](function(){const _0x4fe148=_0x3c0221;_0x49cbdd()[_0x4fe148('0x5f3')](_0x5d2170['configurations'],{'id':_0x5d2170[_0x4fe148('0xca4')]['id']}),_0x54f3ed[_0x4fe148('0x130d')]({'title':_0x4fe148('0x9b8'),'msg':(_0x5d2170[_0x4fe148('0xca4')]['name']||'deskConfiguration')+'\x20has\x20been\x20deleted!'}),_0x33adb6(_0x5d2170[_0x4fe148('0xca4')]);})[_0x3c0221('0x16df')](function(_0x3c7840){const _0x30f0d9=_0x3c0221;if(_0x3c7840[_0x30f0d9('0x1457')]&&_0x3c7840[_0x30f0d9('0x1457')][_0x30f0d9('0x73e')]&&_0x3c7840[_0x30f0d9('0x1457')][_0x30f0d9('0x73e')][_0x30f0d9('0x1f73')]){_0x5d2170[_0x30f0d9('0x73e')]=_0x3c7840[_0x30f0d9('0x1457')]['errors']||[{'message':_0x3c7840['toString'](),'type':'api.intDeskConfiguration.delete'}];for(let _0x2bff97=0x0;_0x2bff97<_0x3c7840[_0x30f0d9('0x1457')][_0x30f0d9('0x73e')][_0x30f0d9('0x1f73')];_0x2bff97++){_0x54f3ed['error']({'title':_0x3c7840['data']['errors'][_0x2bff97][_0x30f0d9('0x412')],'msg':_0x3c7840[_0x30f0d9('0x1457')][_0x30f0d9('0x73e')][_0x2bff97][_0x30f0d9('0x1603')]});}}else _0x54f3ed[_0x30f0d9('0x1db9')]({'title':_0x3c7840[_0x30f0d9('0x11c5')]?'API:'+_0x3c7840['status']+'\x20-\x20'+_0x3c7840[_0x30f0d9('0x1833')]:_0x30f0d9('0x1117'),'msg':_0x3c7840[_0x30f0d9('0x1457')]?JSON[_0x30f0d9('0x678')](_0x3c7840[_0x30f0d9('0x1457')][_0x30f0d9('0x1603')]):_0x3c7840[_0x30f0d9('0x1603')]||_0x3c7840[_0x30f0d9('0x9b6')]()});});},function(){});}function _0x2e56af(_0x4fee9b){return _0x4fee9b===null?undefined:new Date(_0x4fee9b);}function _0x33adb6(_0x3ae186){const _0x18c10a=_0x4ee7ce;_0x226d54[_0x18c10a('0x212a')](_0x3ae186);}}const _0x4a8941=_0x43e561;_0x40ea2f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state','$location',_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x1c4'),'items',_0x4376d8('0x28b8'),_0x4376d8('0x2679'),_0x4376d8('0x412'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x40ea2f(_0x56f2b2,_0x4f83ca,_0x16dda6,_0x21886d,_0x66459d,_0x361a6b,_0x2b9d81,_0x7434a4,_0x16d092,_0x1b5b32,_0x1884e6,_0x337f63,_0x4cc5da){const _0x4e05c8=_0x4376d8,_0x5347ef=this;_0x5347ef[_0x4e05c8('0x197c')]=_0x337f63['getCurrentUser'](),_0x5347ef[_0x4e05c8('0x73e')]=[],_0x5347ef[_0x4e05c8('0x24d3')]='INTEGRATIONS.EDIT_'+_0x49cbdd()['toUpper'](_0x1b5b32),_0x5347ef[_0x4e05c8('0x28b8')]=angular['copy'](_0x7434a4),_0x5347ef[_0x4e05c8('0x532')]=_0x2b9d81,_0x5347ef[_0x4e05c8('0x412')]=_0x1b5b32,_0x5347ef[_0x4e05c8('0x103e')]=_0x4cc5da,_0x5347ef[_0x4e05c8('0x1ac5')]=![];!_0x5347ef[_0x4e05c8('0x28b8')]&&(_0x5347ef['item']={'type':'string'},_0x5347ef['item'][_0x49cbdd()[_0x4e05c8('0xb41')](_0x1b5b32)+'Id']=_0x361a6b['id'],_0x5347ef[_0x4e05c8('0x24d3')]=_0x4e05c8('0x6fe')+_0x49cbdd()['toUpper'](_0x1b5b32),_0x5347ef[_0x4e05c8('0x1ac5')]=!![]);_0x5347ef['addNewItem']=_0x23119c,_0x5347ef[_0x4e05c8('0x1321')]=_0x297fbf,_0x5347ef[_0x4e05c8('0x1350')]=_0x7732d9,_0x5347ef['getSelectedVariable']=_0x202257,_0x5347ef[_0x4e05c8('0x136e')]=_0x52d18f,_0x1884e6[_0x4e05c8('0xb0a')]['get']({'nolimit':!![]})[_0x4e05c8('0x1af5')]['then'](function(_0x570ccb){const _0x5e3df1=_0x4e05c8;return _0x5347ef[_0x5e3df1('0xd26')]=_0x570ccb[_0x5e3df1('0x2319')]?_0x570ccb['rows']:[],_0x1884e6[_0x5e3df1('0x770')]['describe']()[_0x5e3df1('0x1af5')];})[_0x4e05c8('0x17e7')](function(_0x586399){const _0x1d31ea=_0x4e05c8;return _0x5347ef['voiceAgentReportColumns']=_0x49cbdd()[_0x1d31ea('0x4f1')](_0x49cbdd()[_0x1d31ea('0x1c0f')](_0x586399),[_0x1d31ea('0x1af5'),_0x1d31ea('0x1314'),_0x1d31ea('0x7c9'),'updatedAt',_0x1d31ea('0x1c59')]),_0x5347ef[_0x1d31ea('0x217b')][_0x1d31ea('0x269f')](_0x1d31ea('0x1bea')),_0x1884e6['voiceDialReport']['describe']()[_0x1d31ea('0x1af5')];})[_0x4e05c8('0x17e7')](function(_0x1462bb){const _0x384729=_0x4e05c8;_0x5347ef[_0x384729('0xe00')]=_0x49cbdd()['difference'](_0x49cbdd()[_0x384729('0x1c0f')](_0x1462bb),['$promise',_0x384729('0x1314'),_0x384729('0x7c9'),_0x384729('0xb8a'),_0x384729('0x1c59')]),_0x5347ef[_0x384729('0xe00')]['push']('recordingURL');})[_0x4e05c8('0x16df')](function(_0x424f02){const _0x4b1b9f=_0x4e05c8;_0x66459d[_0x4b1b9f('0x1db9')]({'title':_0x424f02[_0x4b1b9f('0x11c5')]?'API:'+_0x424f02[_0x4b1b9f('0x11c5')]+_0x4b1b9f('0x16e4')+_0x424f02[_0x4b1b9f('0x1833')]:'SYSTEM:GETVARIABLES','msg':_0x424f02[_0x4b1b9f('0x1457')]?JSON[_0x4b1b9f('0x678')](_0x424f02[_0x4b1b9f('0x1457')]):_0x424f02['toString']()});}),_0x1884e6[_0x4e05c8('0x278')][_0x4e05c8('0x9a')]({'id':_0x16d092['id'],'ticketType':_0x361a6b[_0x4e05c8('0x148e')]?_0x361a6b[_0x4e05c8('0x148e')]:undefined})[_0x4e05c8('0x1af5')][_0x4e05c8('0x17e7')](function(_0x40dcce){const _0x2d8c45=_0x4e05c8;_0x5347ef[_0x2d8c45('0x20c2')]=!![],_0x5347ef[_0x2d8c45('0x9c9')]=_0x40dcce[_0x2d8c45('0x2319')]?_0x40dcce['rows']:[],_0x5347ef[_0x2d8c45('0x28b8')]['idField']&&(_0x5347ef[_0x2d8c45('0x1fa4')]=_0x49cbdd()[_0x2d8c45('0xe8e')](_0x5347ef[_0x2d8c45('0x9c9')],{'id':_0x5347ef[_0x2d8c45('0x28b8')][_0x2d8c45('0x8d8')]}));})[_0x4e05c8('0x16df')](function(_0x1e236e){const _0x16e578=_0x4e05c8;_0x5347ef['accountConnected']=![],console[_0x16e578('0x1db9')](_0x1e236e);});function _0x23119c(){const _0x40d57c=_0x4e05c8;_0x5347ef['errors']=[],_0x5347ef[_0x40d57c('0x1fa4')]&&(_0x5347ef[_0x40d57c('0x28b8')][_0x40d57c('0x8d8')]=_0x5347ef[_0x40d57c('0x1fa4')]['id'],_0x5347ef[_0x40d57c('0x28b8')][_0x40d57c('0x1a12')]=_0x5347ef[_0x40d57c('0x1fa4')][_0x40d57c('0x2aa')],_0x5347ef['item'][_0x40d57c('0x1fa4')]=_0x5347ef[_0x40d57c('0x1fa4')][_0x40d57c('0x8fa')]),_0x1884e6[_0x40d57c('0xd61')]['save'](_0x5347ef[_0x40d57c('0x28b8')])[_0x40d57c('0x1af5')][_0x40d57c('0x17e7')](function(_0x567bb7){const _0x134bd7=_0x40d57c;_0x5347ef['items'][_0x134bd7('0x1893')](_0x567bb7),_0x66459d[_0x134bd7('0x130d')]({'title':_0x49cbdd()[_0x134bd7('0xb41')](_0x1b5b32)+_0x134bd7('0x23ad'),'msg':_0x49cbdd()[_0x134bd7('0xb41')](_0x1b5b32)+_0x134bd7('0x15a')}),_0x52d18f();})[_0x40d57c('0x16df')](function(_0x8db336){const _0x35423a=_0x40d57c;console[_0x35423a('0x1db9')](_0x8db336),_0x5347ef['errors']=_0x8db336[_0x35423a('0x1457')]['errors']||[{'message':_0x8db336[_0x35423a('0x9b6')](),'type':_0x35423a('0xbe0')}];});}function _0x297fbf(){const _0x3433b8=_0x4e05c8;_0x5347ef[_0x3433b8('0x73e')]=[],_0x5347ef[_0x3433b8('0x1fa4')]&&(_0x5347ef['item'][_0x3433b8('0x8d8')]=_0x5347ef[_0x3433b8('0x1fa4')]['id'],_0x5347ef[_0x3433b8('0x28b8')][_0x3433b8('0x1a12')]=_0x5347ef['customField'][_0x3433b8('0x2aa')],_0x5347ef[_0x3433b8('0x28b8')]['customField']=_0x5347ef[_0x3433b8('0x1fa4')][_0x3433b8('0x8fa')]),_0x1884e6[_0x3433b8('0xd61')][_0x3433b8('0x27ba')]({'id':_0x5347ef['item']['id']},_0x5347ef[_0x3433b8('0x28b8')])[_0x3433b8('0x1af5')][_0x3433b8('0x17e7')](function(_0x19888e){const _0x45d20f=_0x3433b8,_0x6e5e04=_0x49cbdd()['find'](_0x5347ef[_0x45d20f('0x532')],{'id':_0x19888e['id']});_0x6e5e04&&_0x49cbdd()[_0x45d20f('0x1ced')](_0x6e5e04,_0x19888e),_0x66459d[_0x45d20f('0x130d')]({'title':_0x49cbdd()[_0x45d20f('0xb41')](_0x1b5b32)+_0x45d20f('0x2b8'),'msg':_0x49cbdd()['capitalize'](_0x1b5b32)+_0x45d20f('0x15ca')}),_0x52d18f();})[_0x3433b8('0x16df')](function(_0x4237b3){const _0x97e87c=_0x3433b8;console['error'](_0x4237b3),_0x5347ef[_0x97e87c('0x73e')]=_0x4237b3[_0x97e87c('0x1457')][_0x97e87c('0x73e')]||[{'message':_0x4237b3[_0x97e87c('0x9b6')](),'type':_0x97e87c('0x428')}];});}function _0x7732d9(_0x34f191){const _0x4cc0a2=_0x4e05c8;_0x5347ef[_0x4cc0a2('0x73e')]=[];const _0x569ad3=_0x21886d[_0x4cc0a2('0x1121')]()[_0x4cc0a2('0x24d3')](_0x4cc0a2('0x530'))[_0x4cc0a2('0xd5')]('The\x20'+_0x1b5b32+_0x4cc0a2('0xe9f'))[_0x4cc0a2('0x2095')](_0x4cc0a2('0x1aaa')+_0x49cbdd()['capitalize'](_0x1b5b32))['ok'](_0x4cc0a2('0x304'))[_0x4cc0a2('0x1d47')]('Cancel')['targetEvent'](_0x34f191);_0x21886d['show'](_0x569ad3)['then'](function(){const _0x66a235=_0x4cc0a2;_0x1884e6[_0x66a235('0xd61')]['delete']({'id':_0x5347ef[_0x66a235('0x28b8')]['id']})[_0x66a235('0x1af5')][_0x66a235('0x17e7')](function(){const _0x461f91=_0x66a235;_0x49cbdd()['remove'](_0x5347ef[_0x461f91('0x532')],{'id':_0x5347ef[_0x461f91('0x28b8')]['id']}),_0x66459d[_0x461f91('0x130d')]({'title':_0x49cbdd()[_0x461f91('0xb41')](_0x1b5b32)+_0x461f91('0x253a'),'msg':_0x49cbdd()[_0x461f91('0xb41')](_0x1b5b32)+'\x20has\x20been\x20deleted!'}),_0x52d18f();})[_0x66a235('0x16df')](function(_0x1d15fe){const _0x22fde6=_0x66a235;console[_0x22fde6('0x1db9')](_0x1d15fe),_0x5347ef[_0x22fde6('0x73e')]=_0x1d15fe[_0x22fde6('0x1457')][_0x22fde6('0x73e')]||[{'message':_0x1d15fe[_0x22fde6('0x9b6')](),'type':_0x22fde6('0x2220')}];});},function(){});}function _0x202257(){const _0x1e2243=_0x4e05c8;return _0x5347ef[_0x1e2243('0x28b8')]['variableName']!==undefined?_0x5347ef[_0x1e2243('0x28b8')]['variableName']:_0x1e2243('0x2588');}function _0x52d18f(){_0x21886d['hide']();}}const _0x3b0bbf=_0x40ea2f;_0x5d0b80['$inject']=[_0x4376d8('0xc4c'),'$location','$mdDialog',_0x4376d8('0x26ca'),'$translate',_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885'),_0x4376d8('0x27cb'),'userProfileSection'];function _0x5d0b80(_0x929dfe,_0x5a8742,_0x13ad2b,_0x3da160,_0x197851,_0x6dbd4f,_0x52c048,_0x47ca3f,_0x2e7c36,_0x34f5c7,_0x4c8333,_0x385e2b){const _0x542157=_0x4376d8,_0xbdb434=this;_0xbdb434[_0x542157('0x197c')]=_0x34f5c7['getCurrentUser'](),_0xbdb434[_0x542157('0x1d11')]=_0x6dbd4f,_0xbdb434[_0x542157('0x1aeb')]=_0x52c048,_0xbdb434['passwordPattern']=_0xbdb434[_0x542157('0x1aeb')][_0x542157('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0xbdb434['location']=_0x5a8742[_0x542157('0x14fe')]()+_0x542157('0x14')+_0x5a8742[_0x542157('0x108')](),_0xbdb434[_0x542157('0x27cb')]=_0x4c8333||_0x929dfe[_0x542157('0x16fb')][_0x542157('0x27cb')]||{},_0xbdb434[_0x542157('0x383')]=_0x385e2b&&_0x385e2b['count']==0x1?_0x385e2b[_0x542157('0x2319')][0x0]:null,_0xbdb434['crudPermissions']=_0x34f5c7[_0x542157('0x17a9')](_0xbdb434[_0x542157('0x383')]?_0xbdb434[_0x542157('0x383')]['crudPermissions']:null),_0xbdb434['hasModulePermissions']={},_0xbdb434['selectedTab']=_0x929dfe[_0x542157('0x16fb')][_0x542157('0x1523')]||0x0,_0xbdb434[_0x542157('0x99f')]=_0x2e7c36[_0x542157('0x1178')],_0xbdb434[_0x542157('0x1573')]=_0x4ddc63,_0xbdb434[_0x542157('0xa20')]=_0x5d5de0;function _0x4ddc63(){const _0x2a5459=_0x542157;_0x929dfe['go']('app.integrations.deskAccounts',{},{'reload':_0x2a5459('0x68b')});}function _0x5d5de0(){const _0x4c5fc6=_0x542157;_0x47ca3f[_0x4c5fc6('0x278')][_0x4c5fc6('0x27ba')]({'id':_0xbdb434[_0x4c5fc6('0x27cb')]['id']},_0xbdb434[_0x4c5fc6('0x27cb')])[_0x4c5fc6('0x1af5')]['then'](function(){const _0x43aecc=_0x4c5fc6;_0x2e7c36[_0x43aecc('0x130d')]({'title':_0x43aecc('0x86b'),'msg':_0xbdb434['deskAccount']['name']?_0xbdb434[_0x43aecc('0x27cb')][_0x43aecc('0x2aa')]+_0x43aecc('0x12b0'):''});})[_0x4c5fc6('0x16df')](function(_0x308bed){const _0x1c98e0=_0x4c5fc6;_0x2e7c36[_0x1c98e0('0x1db9')]({'title':_0x308bed[_0x1c98e0('0x11c5')]?'API:'+_0x308bed[_0x1c98e0('0x11c5')]+_0x1c98e0('0x16e4')+_0x308bed[_0x1c98e0('0x1833')]:_0x1c98e0('0x1974'),'msg':_0x308bed['data']?JSON[_0x1c98e0('0x678')](_0x308bed[_0x1c98e0('0x1457')]):_0x308bed[_0x1c98e0('0x9b6')]()});});}}const _0x42b152=_0x5d0b80;_0x504cea[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),'dynamics365Accounts','dynamics365Account','api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x504cea(_0xbd4f66,_0x87a45d,_0x32ed27,_0x4b0838,_0x20c433,_0x1339a2,_0x1692fd,_0x30c120,_0xff6494,_0x54d933,_0x45bc61,_0x290ba7,_0x44b10d,_0x3fcc5c){const _0x27eaf3=_0x4376d8,_0x1dcd9a=this;_0x1dcd9a['currentUser']=_0x45bc61[_0x27eaf3('0x2831')](),_0x1dcd9a[_0x27eaf3('0x73e')]=[],_0x1dcd9a['setting']=_0x44b10d,_0x1dcd9a[_0x27eaf3('0x1d11')]=_0x290ba7,_0x1dcd9a['crudPermissions']=_0x3fcc5c,_0x1dcd9a[_0x27eaf3('0x6ee')]={},_0x1dcd9a[_0x27eaf3('0x1572')]=_0x1dcd9a[_0x27eaf3('0x1aeb')]&&_0x1dcd9a['setting'][_0x27eaf3('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1dcd9a['title']='INTEGRATIONS.EDIT_DYNAMICS365ACCOUNT',_0x1dcd9a[_0x27eaf3('0x52d')]=angular['copy'](_0xff6494),_0x1dcd9a[_0x27eaf3('0xa78')]=_0x30c120,_0x1dcd9a[_0x27eaf3('0x1bac')]=![];!_0x1dcd9a[_0x27eaf3('0x52d')]&&(_0x1dcd9a[_0x27eaf3('0x52d')]={'serverUrl':_0x32ed27[_0x27eaf3('0x14fe')]()+_0x27eaf3('0x14')+_0x32ed27['host']()+(_0x32ed27[_0x27eaf3('0x2442')]()?':'+_0x32ed27[_0x27eaf3('0x2442')]():'')},_0x1dcd9a[_0x27eaf3('0x24d3')]=_0x27eaf3('0xd35'),_0x1dcd9a[_0x27eaf3('0x1bac')]=!![]);_0x1dcd9a[_0x27eaf3('0x502')]=_0x698d4d,_0x1dcd9a[_0x27eaf3('0xd11')]=_0x29cb7d,_0x1dcd9a[_0x27eaf3('0x2325')]=_0x4fea6d,_0x1dcd9a[_0x27eaf3('0x1300')]=_0x16d9ec,_0x1dcd9a[_0x27eaf3('0x136e')]=_0x1a9b0c;function _0x698d4d(){const _0x18143d=_0x27eaf3;_0x1dcd9a[_0x18143d('0x73e')]=[],_0x54d933[_0x18143d('0x399')][_0x18143d('0x2439')](_0x1dcd9a[_0x18143d('0x52d')])['$promise'][_0x18143d('0x17e7')](function(_0x62d09e){const _0x3f2248=_0x18143d;_0x1dcd9a[_0x3f2248('0xa78')]['unshift'](_0x62d09e['toJSON']()),_0x1692fd[_0x3f2248('0x130d')]({'title':_0x3f2248('0x21ef'),'msg':_0x1dcd9a[_0x3f2248('0x52d')][_0x3f2248('0x2aa')]?_0x1dcd9a[_0x3f2248('0x52d')][_0x3f2248('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x1a9b0c(_0x62d09e);})[_0x18143d('0x16df')](function(_0x952031){const _0x3f20a4=_0x18143d;if(_0x952031[_0x3f20a4('0x1457')]&&_0x952031[_0x3f20a4('0x1457')][_0x3f20a4('0x73e')]&&_0x952031[_0x3f20a4('0x1457')]['errors']['length']){_0x1dcd9a['errors']=_0x952031[_0x3f20a4('0x1457')][_0x3f20a4('0x73e')]||[{'message':_0x952031[_0x3f20a4('0x9b6')](),'type':_0x3f20a4('0xb56')}];for(let _0x2a1653=0x0;_0x2a1653<_0x952031[_0x3f20a4('0x1457')][_0x3f20a4('0x73e')][_0x3f20a4('0x1f73')];_0x2a1653+=0x1){_0x1692fd[_0x3f20a4('0x1db9')]({'title':_0x952031[_0x3f20a4('0x1457')]['errors'][_0x2a1653][_0x3f20a4('0x412')],'msg':_0x952031[_0x3f20a4('0x1457')]['errors'][_0x2a1653][_0x3f20a4('0x1603')]});}}else _0x1692fd[_0x3f20a4('0x1db9')]({'title':_0x952031['status']?_0x3f20a4('0x14f7')+_0x952031[_0x3f20a4('0x11c5')]+'\x20-\x20'+_0x952031[_0x3f20a4('0x1833')]:_0x3f20a4('0xb56'),'msg':_0x952031[_0x3f20a4('0x1457')]?JSON['stringify'](_0x952031['data'][_0x3f20a4('0x1603')]):_0x952031[_0x3f20a4('0x9b6')]()});});}function _0x29cb7d(){const _0x979e75=_0x27eaf3;_0x1dcd9a['errors']=[],_0x54d933[_0x979e75('0x399')][_0x979e75('0x27ba')]({'id':_0x1dcd9a[_0x979e75('0x52d')]['id']},_0x1dcd9a[_0x979e75('0x52d')])['$promise'][_0x979e75('0x17e7')](function(_0x584652){const _0x3c2614=_0x979e75,_0x11784f=_0x49cbdd()['find'](_0x1dcd9a[_0x3c2614('0xa78')],{'id':_0x584652['id']});_0x11784f&&_0x49cbdd()[_0x3c2614('0x1ced')](_0x11784f,_0x49cbdd()['pick'](_0x584652['toJSON'](),_0x49cbdd()[_0x3c2614('0x1c0f')](_0x11784f))),_0x1692fd[_0x3c2614('0x130d')]({'title':_0x3c2614('0x221a'),'msg':_0x1dcd9a[_0x3c2614('0x52d')][_0x3c2614('0x2aa')]?_0x1dcd9a['dynamics365Account'][_0x3c2614('0x2aa')]+_0x3c2614('0x15ca'):''}),_0x1a9b0c(_0x584652);})[_0x979e75('0x16df')](function(_0x50f61b){const _0x4c38af=_0x979e75;if(_0x50f61b['data']&&_0x50f61b['data'][_0x4c38af('0x73e')]&&_0x50f61b[_0x4c38af('0x1457')][_0x4c38af('0x73e')][_0x4c38af('0x1f73')]){_0x1dcd9a[_0x4c38af('0x73e')]=_0x50f61b[_0x4c38af('0x1457')][_0x4c38af('0x73e')]||[{'message':_0x50f61b[_0x4c38af('0x9b6')](),'type':_0x4c38af('0x1c04')}];for(let _0x51a263=0x0;_0x51a263<_0x50f61b[_0x4c38af('0x1457')]['errors']['length'];_0x51a263++){_0x1692fd['error']({'title':_0x50f61b['data'][_0x4c38af('0x73e')][_0x51a263][_0x4c38af('0x412')],'msg':_0x50f61b['data']['errors'][_0x51a263][_0x4c38af('0x1603')]});}}else _0x1692fd[_0x4c38af('0x1db9')]({'title':_0x50f61b[_0x4c38af('0x11c5')]?_0x4c38af('0x14f7')+_0x50f61b[_0x4c38af('0x11c5')]+'\x20-\x20'+_0x50f61b[_0x4c38af('0x1833')]:_0x4c38af('0x1c04'),'msg':_0x50f61b[_0x4c38af('0x1457')]?JSON['stringify'](_0x50f61b[_0x4c38af('0x1457')][_0x4c38af('0x1603')]):_0x50f61b['toString']()});});}function _0x4fea6d(_0xd2cac2){const _0x132ce4=_0x27eaf3;_0x1dcd9a[_0x132ce4('0x73e')]=[];const _0x1e24c8=_0x4b0838[_0x132ce4('0x1121')]()[_0x132ce4('0x24d3')]('Are\x20you\x20sure?')[_0x132ce4('0xd5')](_0x132ce4('0x2ee'))['ariaLabel'](_0x132ce4('0x116'))['ok']('Delete')[_0x132ce4('0x1d47')](_0x132ce4('0x1b70'))['targetEvent'](_0xd2cac2);_0x4b0838[_0x132ce4('0x28e2')](_0x1e24c8)[_0x132ce4('0x17e7')](function(){const _0x1c9f11=_0x132ce4;_0x54d933[_0x1c9f11('0x399')][_0x1c9f11('0x1da6')]({'id':_0x1dcd9a[_0x1c9f11('0x52d')]['id']})[_0x1c9f11('0x1af5')][_0x1c9f11('0x17e7')](function(){const _0x302f59=_0x1c9f11;_0x49cbdd()[_0x302f59('0x5f3')](_0x1dcd9a[_0x302f59('0xa78')],{'id':_0x1dcd9a['dynamics365Account']['id']}),_0x1692fd['success']({'title':'Dynamics365Account\x20properly\x20deleted!','msg':(_0x1dcd9a[_0x302f59('0x52d')][_0x302f59('0x2aa')]||_0x302f59('0x52d'))+_0x302f59('0x149f')}),_0x1a9b0c(_0x1dcd9a[_0x302f59('0x52d')]);})[_0x1c9f11('0x16df')](function(_0x52efe4){const _0x301048=_0x1c9f11;if(_0x52efe4[_0x301048('0x1457')]&&_0x52efe4[_0x301048('0x1457')][_0x301048('0x73e')]&&_0x52efe4['data']['errors']['length']){_0x1dcd9a['errors']=_0x52efe4[_0x301048('0x1457')][_0x301048('0x73e')]||[{'message':_0x52efe4[_0x301048('0x9b6')](),'type':_0x301048('0xdf5')}];for(let _0xf4a14f=0x0;_0xf4a14f<_0x52efe4[_0x301048('0x1457')][_0x301048('0x73e')][_0x301048('0x1f73')];_0xf4a14f++){_0x1692fd[_0x301048('0x1db9')]({'title':_0x52efe4['data']['errors'][_0xf4a14f][_0x301048('0x412')],'msg':_0x52efe4['data']['errors'][_0xf4a14f]['message']});}}else _0x1692fd[_0x301048('0x1db9')]({'title':_0x52efe4['status']?_0x301048('0x14f7')+_0x52efe4['status']+_0x301048('0x16e4')+_0x52efe4['statusText']:'api.intDynamics365Account.delete','msg':_0x52efe4[_0x301048('0x1457')]?JSON['stringify'](_0x52efe4[_0x301048('0x1457')][_0x301048('0x1603')]):_0x52efe4['message']||_0x52efe4['toString']()});});},function(){});}function _0x16d9ec(_0x3d9903){return _0x3d9903===null?undefined:new Date(_0x3d9903);}function _0x1a9b0c(_0x2571b0){const _0x37c68f=_0x27eaf3;_0x4b0838[_0x37c68f('0x212a')](_0x2571b0);}}const _0x5030b7=_0x504cea,_0x487965=_0x4cf2bc['p']+_0x4376d8('0x24a4');_0x5f343c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),'$mdSidenav',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$translate',_0x4376d8('0xa78'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),'toasty',_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x5f343c(_0x414d77,_0x537c69,_0x485bf0,_0x9238d5,_0x3e98ab,_0x3c3181,_0x593acc,_0x1c2e7f,_0x33f005,_0x4b9465,_0x2e5d01,_0xddd322,_0x5b90fb,_0x3f92eb,_0x37e541,_0x9aeb54,_0x1f6ad4){const _0x88da8c=_0x4376d8,_0x4d4efe=this;_0x4d4efe[_0x88da8c('0x1d11')]=_0x9aeb54,_0x4d4efe[_0x88da8c('0x1aeb')]=_0x1f6ad4,_0x4d4efe[_0x88da8c('0x197c')]=_0x37e541[_0x88da8c('0x2831')](),_0x4d4efe[_0x88da8c('0xa78')]=_0x33f005||{'count':0x0,'rows':[]},_0x4d4efe[_0x88da8c('0xdeb')]=_0x4b9465,_0x4d4efe[_0x88da8c('0x383')]=_0x2e5d01&&_0x2e5d01[_0x88da8c('0x335')]==0x1?_0x2e5d01[_0x88da8c('0x2319')][0x0]:null,_0x4d4efe[_0x88da8c('0x103e')]=_0x37e541['parseCrudPermissions'](_0x4d4efe[_0x88da8c('0x383')]?_0x4d4efe[_0x88da8c('0x383')][_0x88da8c('0x103e')]:null),_0x4d4efe[_0x88da8c('0x23c3')]=_0x88da8c('0xa78'),_0x4d4efe[_0x88da8c('0x26a1')]='',_0x4d4efe[_0x88da8c('0x24e1')]=null,_0x4d4efe[_0x88da8c('0x16ec')]=[],_0x4d4efe[_0x88da8c('0x826')]={'fields':_0x88da8c('0x482'),'limit':0xa,'page':0x1},_0x4d4efe[_0x88da8c('0xcd4')]=_0x4ed999,_0x4d4efe['testtestintegrationaccount']=_0x3418ae,_0x4d4efe[_0x88da8c('0xbf4')]=_0x76d32c,_0x4d4efe[_0x88da8c('0x130d')]=_0xb578b3,_0x4d4efe['getDynamics365Accounts']=_0x172a97,_0x4d4efe[_0x88da8c('0x26c')]=_0x5a16f3,_0x4d4efe[_0x88da8c('0x2325')]=_0x563a94,_0x4d4efe[_0x88da8c('0x2615')]=_0xdc97b6,_0x4d4efe['deleteSelectedDynamics365Accounts']=_0x28df8f,_0x4d4efe[_0x88da8c('0x2192')]=_0x1d2e53,_0x4d4efe[_0x88da8c('0x1e95')]=_0x13ecf1;function _0x4ed999(_0x28951a){const _0x3d0b3c=_0x88da8c;_0x485bf0['go'](_0x3d0b3c('0x69d'),{'id':_0x28951a['id'],'dynamics365Account':_0x28951a,'crudPermissions':_0x4d4efe[_0x3d0b3c('0x103e')]});}function _0x3418ae(_0x5f141d){const _0x27d1d2=_0x88da8c;return _0xddd322[_0x27d1d2('0x399')][_0x27d1d2('0x9a')]({'id':_0x5f141d['id'],'test':!![]})['$promise'][_0x27d1d2('0x17e7')](function(){const _0x3359c6=_0x27d1d2;_0x3f92eb['success']({'title':'Dynamics365Account\x20properly\x20tested','msg':_0x3359c6('0x120d')});})[_0x27d1d2('0x16df')](function(_0x53c758){const _0x51880e=_0x27d1d2;_0x3f92eb[_0x51880e('0x1db9')]({'title':_0x51880e('0x1431'),'msg':_0x53c758[_0x51880e('0x1457')]?_0x53c758[_0x51880e('0x1457')]['message']?_0x53c758[_0x51880e('0x1457')]['message']:JSON[_0x51880e('0x678')](_0x53c758[_0x51880e('0x1457')]):_0x53c758[_0x51880e('0x9b6')]()});});}function _0x76d32c(_0x6610b6,_0x167928){const _0x25b353=_0x88da8c,_0x1fd1c2=_0x3e98ab[_0x25b353('0x1121')]()[_0x25b353('0x24d3')](_0x25b353('0x5e1')+_0x49cbdd()[_0x25b353('0x1c98')](_0x25b353('0x52d'))+'?')['htmlContent'](_0x25b353('0xa53')+(_0x6610b6[_0x25b353('0x2aa')]||_0x25b353('0x52d'))+''+_0x25b353('0xe9f'))[_0x25b353('0x2095')](_0x25b353('0xb94'))[_0x25b353('0x104f')](_0x167928)['ok']('OK')['cancel']('CANCEL');_0x3e98ab[_0x25b353('0x28e2')](_0x1fd1c2)[_0x25b353('0x17e7')](function(){_0x563a94(_0x6610b6);},function(){const _0x2128ce=_0x25b353;console[_0x2128ce('0x1d63')](_0x2128ce('0x28a0'));});}let _0x1ed73e=!![],_0x378564=0x1;_0x414d77[_0x88da8c('0x620')]('vm.query.filter',function(_0x3dad1a,_0x3a2ac4){const _0x4759c9=_0x88da8c;_0x1ed73e?_0x593acc(function(){_0x1ed73e=![];}):(!_0x3a2ac4&&(_0x378564=_0x4d4efe[_0x4759c9('0x826')][_0x4759c9('0x115a')]),_0x3dad1a!==_0x3a2ac4&&(_0x4d4efe[_0x4759c9('0x826')]['page']=0x1),!_0x3dad1a&&(_0x4d4efe[_0x4759c9('0x826')]['page']=_0x378564),_0x4d4efe[_0x4759c9('0x23c7')]());});function _0xb578b3(_0x2a94fb){const _0x1707c3=_0x88da8c;_0x4d4efe[_0x1707c3('0xa78')]=_0x2a94fb||{'count':0x0,'rows':[]};}function _0x172a97(){const _0x30e83b=_0x88da8c;_0x4d4efe['query'][_0x30e83b('0xf19')]=(_0x4d4efe[_0x30e83b('0x826')]['page']-0x1)*_0x4d4efe[_0x30e83b('0x826')][_0x30e83b('0x193b')],_0x37e541[_0x30e83b('0x1ba2')](_0x30e83b('0x20bf'))?_0x4d4efe[_0x30e83b('0x1691')]=_0xddd322[_0x30e83b('0x399')]['get'](_0x4d4efe['query'],_0xb578b3)['$promise']:(_0x4d4efe[_0x30e83b('0x826')]['id']=_0x4d4efe[_0x30e83b('0xdeb')]['id'],_0x4d4efe[_0x30e83b('0x826')][_0x30e83b('0x16f8')]=_0x30e83b('0x2163'),_0x4d4efe[_0x30e83b('0x1691')]=_0xddd322[_0x30e83b('0xdeb')]['getResources'](_0x4d4efe[_0x30e83b('0x826')],_0xb578b3)[_0x30e83b('0x1af5')]);}function _0x5a16f3(_0x3c6b8a,_0x3aa230){const _0x18458=_0x88da8c;_0x3e98ab[_0x18458('0x28e2')]({'controller':_0x18458('0x1959'),'controllerAs':'vm','templateUrl':_0x487965,'parent':angular[_0x18458('0x1ce1')](_0x3c3181['body']),'targetEvent':_0x3c6b8a,'clickOutsideToClose':!![],'locals':{'dynamics365Account':_0x3aa230,'dynamics365Accounts':_0x4d4efe[_0x18458('0xa78')]['rows'],'license':_0x4d4efe['license'],'setting':_0x4d4efe[_0x18458('0x1aeb')],'crudPermissions':_0x4d4efe['crudPermissions']}});}function _0x563a94(_0x21905a){const _0xba6f29=_0x88da8c;_0xddd322[_0xba6f29('0x399')][_0xba6f29('0x1da6')]({'id':_0x21905a['id']})[_0xba6f29('0x1af5')][_0xba6f29('0x17e7')](function(){const _0x68426b=_0xba6f29;_0x49cbdd()[_0x68426b('0x5f3')](_0x4d4efe[_0x68426b('0xa78')][_0x68426b('0x2319')],{'id':_0x21905a['id']}),_0x4d4efe[_0x68426b('0xa78')]['count']-=0x1,!_0x4d4efe['dynamics365Accounts'][_0x68426b('0x2319')]['length']&&_0x4d4efe[_0x68426b('0x23c7')](),_0x3f92eb[_0x68426b('0x130d')]({'title':_0x49cbdd()[_0x68426b('0x1c98')](_0x68426b('0x1ddf'))+_0x68426b('0x2673'),'msg':_0x21905a[_0x68426b('0x2aa')]?_0x21905a[_0x68426b('0x2aa')]+_0x68426b('0x149f'):''});})[_0xba6f29('0x16df')](function(_0x46c903){const _0x4cfcc0=_0xba6f29;if(_0x46c903[_0x4cfcc0('0x1457')]&&_0x46c903['data']['errors']&&_0x46c903[_0x4cfcc0('0x1457')]['errors'][_0x4cfcc0('0x1f73')]){_0x4d4efe[_0x4cfcc0('0x73e')]=_0x46c903[_0x4cfcc0('0x1457')]['errors']||[{'message':_0x46c903[_0x4cfcc0('0x9b6')](),'type':'SYSTEM:DELETEintDynamics365Account'}];for(let _0x1823b1=0x0;_0x1823b1<_0x46c903[_0x4cfcc0('0x1457')]['errors']['length'];_0x1823b1++){_0x3f92eb[_0x4cfcc0('0x1db9')]({'title':_0x46c903[_0x4cfcc0('0x1457')][_0x4cfcc0('0x73e')][_0x1823b1][_0x4cfcc0('0x412')],'msg':_0x46c903['data'][_0x4cfcc0('0x73e')][_0x1823b1][_0x4cfcc0('0x1603')]});}}else _0x3f92eb[_0x4cfcc0('0x1db9')]({'title':_0x46c903[_0x4cfcc0('0x11c5')]?_0x4cfcc0('0x14f7')+_0x46c903[_0x4cfcc0('0x11c5')]+_0x4cfcc0('0x16e4')+_0x46c903[_0x4cfcc0('0x1833')]:'SYSTEM:DELETEintDynamics365Account','msg':_0x46c903[_0x4cfcc0('0x1457')]?JSON[_0x4cfcc0('0x678')](_0x46c903['data'][_0x4cfcc0('0x1603')]):_0x46c903[_0x4cfcc0('0x1603')]||_0x46c903[_0x4cfcc0('0x9b6')]()});});}function _0xdc97b6(){const _0x3d60fd=_0x88da8c,_0x550efe=angular['copy'](_0x4d4efe[_0x3d60fd('0x16ec')]);return _0x4d4efe[_0x3d60fd('0x16ec')]=[],_0x550efe;}function _0x28df8f(_0x58ec4f){const _0x1b8c45=_0x88da8c,_0x17d6a5=_0x3e98ab[_0x1b8c45('0x1121')]()[_0x1b8c45('0x24d3')](_0x1b8c45('0x25f9'))['htmlContent'](''+_0x4d4efe[_0x1b8c45('0x16ec')][_0x1b8c45('0x1f73')]+_0x1b8c45('0x145a')+_0x1b8c45('0xe9f'))[_0x1b8c45('0x2095')]('delete\x20Dynamics365Accounts')[_0x1b8c45('0x104f')](_0x58ec4f)['ok']('OK')[_0x1b8c45('0x1d47')](_0x1b8c45('0x28a0'));_0x3e98ab[_0x1b8c45('0x28e2')](_0x17d6a5)['then'](function(){const _0x49de78=_0x1b8c45;_0x4d4efe[_0x49de78('0x16ec')]['forEach'](function(_0x78cc7f){_0x563a94(_0x78cc7f);}),_0x4d4efe[_0x49de78('0x16ec')]=[];});}function _0x1d2e53(){const _0x2a6aa9=_0x88da8c;_0x4d4efe[_0x2a6aa9('0x16ec')]=[];}function _0x13ecf1(){const _0x36cd41=_0x88da8c;_0x4d4efe[_0x36cd41('0x16ec')]=_0x4d4efe['dynamics365Accounts']['rows'];}}const _0x427d8f=_0x5f343c,_0x4bb163=_0x4cf2bc['p']+_0x4376d8('0x4ad'),_0x24c145=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/dynamics365Accounts/edit/item/dialog.html/dialog.html';_0x56568e[_0x4376d8('0x1b9c')]=['$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth'];function _0x56568e(_0x1dec94,_0x20774f,_0x4a2f5e,_0x1d931f,_0x168779){const _0x2cb3fd=_0x4376d8,_0x5e22c5=this;_0x5e22c5[_0x2cb3fd('0x197c')]=_0x168779['getCurrentUser'](),_0x5e22c5[_0x2cb3fd('0x52d')]={},_0x5e22c5[_0x2cb3fd('0x1284')]={},_0x5e22c5['configurations']=[],_0x5e22c5[_0x2cb3fd('0x1a44')]=-0x1,_0x5e22c5[_0x2cb3fd('0x103e')],_0x5e22c5[_0x2cb3fd('0x161d')]=_0x56ff97,_0x5e22c5[_0x2cb3fd('0x142a')]=_0x34f5c8,_0x5e22c5['createOrEditDynamics365Configuration']=_0x2c5dec,_0x5e22c5[_0x2cb3fd('0x100b')]=_0x4adbd2;function _0x56ff97(_0x2544ff,_0x4349b9){const _0x4f13bd=_0x2cb3fd;_0x5e22c5[_0x4f13bd('0x52d')]=_0x2544ff,_0x5e22c5[_0x4f13bd('0x103e')]=typeof _0x4349b9!==_0x4f13bd('0xfad')?_0x4349b9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a2f5e[_0x4f13bd('0x399')][_0x4f13bd('0xee0')]({'id':_0x5e22c5['dynamics365Account']['id'],'sort':_0x4f13bd('0x1ac6')})['$promise'][_0x4f13bd('0x17e7')](function(_0xbc29cc){const _0x5cd270=_0x4f13bd;return _0x5e22c5['configurations']=_0xbc29cc[_0x5cd270('0x2319')]?_0xbc29cc[_0x5cd270('0x2319')]:[],_0x5e22c5[_0x5cd270('0x11d0')][_0x5cd270('0x1f73')]&&_0x5e22c5['getDynamics365Configuration'](0x0),_0x4a2f5e[_0x5cd270('0xb0a')][_0x5cd270('0x1c53')]({'nolimit':!![],'sort':_0x5cd270('0x2aa')})[_0x5cd270('0x1af5')];})[_0x4f13bd('0x17e7')](function(_0x4e725c){const _0x34c879=_0x4f13bd;_0x5e22c5['variables']=_0x4e725c[_0x34c879('0x2319')]?_0x4e725c[_0x34c879('0x2319')]:[],_0x5e22c5[_0x34c879('0x214d')]=_0x49cbdd()[_0x34c879('0x8de')](_0x5e22c5['variables'],'id');})[_0x4f13bd('0x16df')](function(_0x1fd410){const _0x4334c8=_0x4f13bd;_0x1d931f['error']({'title':_0x1fd410[_0x4334c8('0x11c5')]?'API:'+_0x1fd410[_0x4334c8('0x11c5')]+'\x20-\x20'+_0x1fd410['statusText']:_0x4334c8('0x183b'),'msg':_0x1fd410[_0x4334c8('0x1457')]?JSON[_0x4334c8('0x678')](_0x1fd410[_0x4334c8('0x1457')]):_0x1fd410[_0x4334c8('0x9b6')]()});});}function _0x34f5c8(_0x3c0ea0){const _0x50c6c1=_0x2cb3fd;_0x5e22c5[_0x50c6c1('0x1284')]=_0x5e22c5['configurations'][_0x3c0ea0],_0x5e22c5[_0x50c6c1('0x1a44')]=_0x3c0ea0,_0x4a2f5e['intDynamics365Configuration']['getSubjects']({'id':_0x5e22c5['dynamics365Configuration']['id']})[_0x50c6c1('0x1af5')][_0x50c6c1('0x17e7')](function(_0x518e11){const _0xe74a9d=_0x50c6c1;return _0x5e22c5[_0xe74a9d('0x1261')]=_0x518e11[_0xe74a9d('0x2319')]?_0x518e11[_0xe74a9d('0x2319')]:[],_0x4a2f5e[_0xe74a9d('0x27a6')][_0xe74a9d('0x24c7')]({'id':_0x5e22c5[_0xe74a9d('0x1284')]['id']})[_0xe74a9d('0x1af5')];})[_0x50c6c1('0x17e7')](function(_0x2fa7d7){const _0x4cb351=_0x50c6c1;return _0x5e22c5['descriptions']=_0x2fa7d7[_0x4cb351('0x2319')]?_0x2fa7d7[_0x4cb351('0x2319')]:[],_0x4a2f5e[_0x4cb351('0x27a6')]['getFields']({'id':_0x5e22c5[_0x4cb351('0x1284')]['id']})['$promise'];})[_0x50c6c1('0x17e7')](function(_0x2220e5){const _0x537cf5=_0x50c6c1;_0x5e22c5[_0x537cf5('0x9c9')]=_0x2220e5[_0x537cf5('0x2319')]?_0x2220e5['rows']:[];})[_0x50c6c1('0x16df')](function(_0x274937){const _0x5862bf=_0x50c6c1;_0x1d931f['error']({'title':_0x274937[_0x5862bf('0x11c5')]?_0x5862bf('0x14f7')+_0x274937[_0x5862bf('0x11c5')]+_0x5862bf('0x16e4')+_0x274937[_0x5862bf('0x1833')]:_0x5862bf('0x23be'),'msg':_0x274937[_0x5862bf('0x1457')]?JSON[_0x5862bf('0x678')](_0x274937[_0x5862bf('0x1457')]):_0x274937[_0x5862bf('0x9b6')]()});});}function _0x2c5dec(_0xb60f4e,_0x4ea324){const _0x171e32=_0x2cb3fd;_0x1dec94[_0x171e32('0x28e2')]({'controller':_0x171e32('0x1e71'),'controllerAs':'vm','templateUrl':_0x4bb163,'parent':angular['element'](_0x20774f['body']),'targetEvent':_0xb60f4e,'clickOutsideToClose':!![],'locals':{'dynamics365Configuration':_0x4ea324,'configurations':_0x5e22c5['configurations'],'license':null,'setting':null,'crudPermissions':_0x5e22c5['crudPermissions']}})[_0x171e32('0x74e')](function(){const _0x2af843=_0x171e32;_0x5e22c5[_0x2af843('0x142a')](0x0);});}function _0x4adbd2(_0x4cd75b,_0xccc70c){const _0x278473=_0x2cb3fd,_0x171fcd=_0x1dec94['confirm']()[_0x278473('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20dynamics365Configuration?')[_0x278473('0x211f')](_0x278473('0xa53')+(_0xccc70c['name']||_0x278473('0x1284'))+_0x278473('0x1d23')+_0x278473('0xe9f'))['ariaLabel'](_0x278473('0xc25'))[_0x278473('0x104f')](_0x4cd75b)['ok']('OK')[_0x278473('0x1d47')](_0x278473('0x28a0'));_0x1dec94['show'](_0x171fcd)[_0x278473('0x17e7')](function(){const _0x496230=_0x278473;_0x4a2f5e[_0x496230('0x27a6')][_0x496230('0x1da6')]({'id':_0xccc70c['id']})['$promise'][_0x496230('0x17e7')](function(){const _0xc0b165=_0x496230;_0x49cbdd()['remove'](_0x5e22c5[_0xc0b165('0x11d0')],{'id':_0xccc70c['id']}),_0x1d931f[_0xc0b165('0x130d')]({'title':_0xc0b165('0x1ea9'),'msg':_0xccc70c[_0xc0b165('0x2aa')]?_0xccc70c[_0xc0b165('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x496230('0x16df')](function(_0x32e32c){const _0x150a7c=_0x496230;_0x1d931f[_0x150a7c('0x1db9')]({'title':_0x32e32c[_0x150a7c('0x11c5')]?'API:'+_0x32e32c[_0x150a7c('0x11c5')]+_0x150a7c('0x16e4')+_0x32e32c[_0x150a7c('0x1833')]:_0x150a7c('0x11b4'),'msg':_0x32e32c['data']?JSON[_0x150a7c('0x678')](_0x32e32c[_0x150a7c('0x1457')]):_0x32e32c['toString']()});})[_0x496230('0x74e')](function(){_0x5e22c5['getDynamics365Configuration'](0x0);});},function(){const _0x557171=_0x278473;console[_0x557171('0x1d63')](_0x557171('0x28a0'));});}_0x5e22c5[_0x2cb3fd('0x95b')]=[],_0x5e22c5[_0x2cb3fd('0x1066')]=_0x251ac0,_0x5e22c5['deleteSubjectConfirm']=_0x434af5,_0x5e22c5[_0x2cb3fd('0x2738')]=_0x46878c;function _0x251ac0(_0x195233,_0x6f46c2){const _0x2c6e49=_0x2cb3fd;_0x1dec94['show']({'controller':'CreateOrEditDynamics365AccountItemDialogController','controllerAs':'vm','templateUrl':_0x24c145,'parent':angular[_0x2c6e49('0x1ce1')](_0x20774f[_0x2c6e49('0x13aa')]),'targetEvent':_0x195233,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x6f46c2,'items':_0x5e22c5[_0x2c6e49('0x1261')],'configuration':_0x5e22c5['dynamics365Configuration'],'account':_0x5e22c5[_0x2c6e49('0x52d')],'license':null,'setting':null,'crudPermissions':_0x5e22c5['crudPermissions']}});}function _0x1431ac(_0x4b110f){const _0x13c08e=_0x2cb3fd;_0x4a2f5e['intDynamics365Field'][_0x13c08e('0x1da6')]({'id':_0x4b110f['id']})['$promise'][_0x13c08e('0x17e7')](function(){const _0x36b0aa=_0x13c08e;_0x49cbdd()[_0x36b0aa('0x5f3')](_0x5e22c5[_0x36b0aa('0x1261')],{'id':_0x4b110f['id']}),_0x1d931f[_0x36b0aa('0x130d')]({'title':'Subject\x20deleted!','msg':_0x36b0aa('0x179c')});})[_0x13c08e('0x16df')](function(_0x11862f){const _0xe3c2eb=_0x13c08e;_0x1d931f[_0xe3c2eb('0x1db9')]({'title':_0x11862f[_0xe3c2eb('0x11c5')]?_0xe3c2eb('0x14f7')+_0x11862f[_0xe3c2eb('0x11c5')]+'\x20-\x20'+_0x11862f[_0xe3c2eb('0x1833')]:_0xe3c2eb('0x14bd'),'msg':_0x11862f[_0xe3c2eb('0x1457')]?JSON[_0xe3c2eb('0x678')](_0x11862f['data']):_0x11862f[_0xe3c2eb('0x9b6')]()});});}function _0x434af5(_0x2f4564,_0x414216){const _0x37bbe9=_0x2cb3fd,_0x197ae0=_0x1dec94[_0x37bbe9('0x1121')]()[_0x37bbe9('0x24d3')](_0x37bbe9('0x1371'))[_0x37bbe9('0x211f')]('Subject'+_0x37bbe9('0xe9f'))[_0x37bbe9('0x2095')](_0x37bbe9('0x16d1'))['targetEvent'](_0x2f4564)['ok']('OK')['cancel'](_0x37bbe9('0x28a0'));_0x1dec94[_0x37bbe9('0x28e2')](_0x197ae0)[_0x37bbe9('0x17e7')](function(){_0x1431ac(_0x414216);},function(){const _0x1cec42=_0x37bbe9;console['log'](_0x1cec42('0x28a0'));});}function _0x46878c(_0x3d3e7e){const _0x2844ba=_0x2cb3fd,_0x248c7e=_0x1dec94[_0x2844ba('0x1121')]()[_0x2844ba('0x24d3')](_0x2844ba('0xb0b'))['htmlContent'](''+_0x5e22c5[_0x2844ba('0x95b')][_0x2844ba('0x1f73')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x2844ba('0x2095')](_0x2844ba('0x1bc'))[_0x2844ba('0x104f')](_0x3d3e7e)['ok']('OK')[_0x2844ba('0x1d47')](_0x2844ba('0x28a0'));_0x1dec94[_0x2844ba('0x28e2')](_0x248c7e)['then'](function(){const _0x5074ce=_0x2844ba;_0x5e22c5[_0x5074ce('0x95b')][_0x5074ce('0xccd')](function(_0x59a83e){_0x1431ac(_0x59a83e);}),_0x5e22c5[_0x5074ce('0x95b')]=[];});}_0x5e22c5[_0x2cb3fd('0xb0f')]=[],_0x5e22c5[_0x2cb3fd('0x1ac8')]=_0xc18228,_0x5e22c5[_0x2cb3fd('0x178')]=_0x1be1a6,_0x5e22c5['deleteSelectedDescriptions']=_0x52ff53;function _0xc18228(_0x14aefb,_0x4bf6a6){const _0x2f3358=_0x2cb3fd;_0x1dec94[_0x2f3358('0x28e2')]({'controller':_0x2f3358('0xbcb'),'controllerAs':'vm','templateUrl':_0x24c145,'parent':angular[_0x2f3358('0x1ce1')](_0x20774f[_0x2f3358('0x13aa')]),'targetEvent':_0x14aefb,'clickOutsideToClose':!![],'locals':{'type':_0x2f3358('0x986'),'item':_0x4bf6a6,'items':_0x5e22c5[_0x2f3358('0x1a2a')],'configuration':_0x5e22c5[_0x2f3358('0x1284')],'account':_0x5e22c5[_0x2f3358('0x52d')],'license':null,'setting':null,'crudPermissions':_0x5e22c5[_0x2f3358('0x103e')]}});}function _0x1ff627(_0x428e5b){const _0x4189fb=_0x2cb3fd;_0x4a2f5e[_0x4189fb('0x1fdb')][_0x4189fb('0x1da6')]({'id':_0x428e5b['id']})['$promise'][_0x4189fb('0x17e7')](function(){const _0x5df654=_0x4189fb;_0x49cbdd()[_0x5df654('0x5f3')](_0x5e22c5[_0x5df654('0x1a2a')],{'id':_0x428e5b['id']}),_0x1d931f[_0x5df654('0x130d')]({'title':_0x5df654('0x1504'),'msg':_0x5df654('0x56f')});})['catch'](function(_0xa6d843){const _0x598e26=_0x4189fb;_0x1d931f['error']({'title':_0xa6d843[_0x598e26('0x11c5')]?'API:'+_0xa6d843[_0x598e26('0x11c5')]+_0x598e26('0x16e4')+_0xa6d843[_0x598e26('0x1833')]:_0x598e26('0x14bd'),'msg':_0xa6d843[_0x598e26('0x1457')]?JSON['stringify'](_0xa6d843[_0x598e26('0x1457')]):_0xa6d843[_0x598e26('0x9b6')]()});});}function _0x1be1a6(_0x2b58c3,_0x204216){const _0x15838b=_0x2cb3fd,_0x1a310b=_0x1dec94[_0x15838b('0x1121')]()[_0x15838b('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20description?')['htmlContent'](_0x15838b('0x217a')+_0x15838b('0xe9f'))[_0x15838b('0x2095')](_0x15838b('0x1cf7'))[_0x15838b('0x104f')](_0x2b58c3)['ok']('OK')[_0x15838b('0x1d47')](_0x15838b('0x28a0'));_0x1dec94[_0x15838b('0x28e2')](_0x1a310b)[_0x15838b('0x17e7')](function(){_0x1ff627(_0x204216);},function(){const _0x282dd7=_0x15838b;console[_0x282dd7('0x1d63')](_0x282dd7('0x28a0'));});}function _0x52ff53(_0x41e01e){const _0xb99f13=_0x2cb3fd,_0x1a7001=_0x1dec94[_0xb99f13('0x1121')]()[_0xb99f13('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20descriptions?')[_0xb99f13('0x211f')](_0xb99f13('0xa53')+_0x5e22c5[_0xb99f13('0xb0f')]['length']+'\x20selected'+_0xb99f13('0xe9f'))['ariaLabel'](_0xb99f13('0x1fb1'))['targetEvent'](_0x41e01e)['ok']('OK')[_0xb99f13('0x1d47')](_0xb99f13('0x28a0'));_0x1dec94['show'](_0x1a7001)[_0xb99f13('0x17e7')](function(){const _0x3b3883=_0xb99f13;_0x5e22c5[_0x3b3883('0xb0f')][_0x3b3883('0xccd')](function(_0x2499f8){_0x1ff627(_0x2499f8);}),_0x5e22c5[_0x3b3883('0xb0f')]=[];});}_0x5e22c5['selectedFields']=[],_0x5e22c5[_0x2cb3fd('0xc53')]=_0x28fdca,_0x5e22c5[_0x2cb3fd('0x7f5')]=_0x2bd29d,_0x5e22c5[_0x2cb3fd('0xd1b')]=_0x38f6ec;function _0x28fdca(_0x1c7ff9,_0x9e86a9){const _0x488ea4=_0x2cb3fd;_0x1dec94[_0x488ea4('0x28e2')]({'controller':_0x488ea4('0xbcb'),'controllerAs':'vm','templateUrl':_0x24c145,'parent':angular[_0x488ea4('0x1ce1')](_0x20774f['body']),'targetEvent':_0x1c7ff9,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x9e86a9,'items':_0x5e22c5['fields'],'configuration':_0x5e22c5[_0x488ea4('0x1284')],'account':_0x5e22c5['dynamics365Account'],'license':null,'setting':null,'crudPermissions':_0x5e22c5[_0x488ea4('0x103e')]}});}function _0x5ce5a4(_0x234790){const _0x178a53=_0x2cb3fd;_0x4a2f5e[_0x178a53('0x1fdb')][_0x178a53('0x1da6')]({'id':_0x234790['id']})[_0x178a53('0x1af5')][_0x178a53('0x17e7')](function(){const _0x2286ea=_0x178a53;_0x49cbdd()[_0x2286ea('0x5f3')](_0x5e22c5[_0x2286ea('0x9c9')],{'id':_0x234790['id']}),_0x1d931f[_0x2286ea('0x130d')]({'title':'Field\x20deleted!','msg':_0x2286ea('0xbb8')});})[_0x178a53('0x16df')](function(_0x2f7290){const _0x14e494=_0x178a53;_0x1d931f['error']({'title':_0x2f7290[_0x14e494('0x11c5')]?_0x14e494('0x14f7')+_0x2f7290[_0x14e494('0x11c5')]+_0x14e494('0x16e4')+_0x2f7290[_0x14e494('0x1833')]:_0x14e494('0x14bd'),'msg':_0x2f7290[_0x14e494('0x1457')]?JSON[_0x14e494('0x678')](_0x2f7290[_0x14e494('0x1457')]):_0x2f7290[_0x14e494('0x9b6')]()});});}function _0x2bd29d(_0x2a5209,_0x11394a){const _0x33697c=_0x2cb3fd,_0x46ce47=_0x1dec94['confirm']()[_0x33697c('0x24d3')](_0x33697c('0x1d1f'))[_0x33697c('0x211f')](_0x33697c('0x23ff')+'\x20will\x20be\x20deleted.')[_0x33697c('0x2095')](_0x33697c('0x1f01'))[_0x33697c('0x104f')](_0x2a5209)['ok']('OK')[_0x33697c('0x1d47')]('CANCEL');_0x1dec94[_0x33697c('0x28e2')](_0x46ce47)[_0x33697c('0x17e7')](function(){_0x5ce5a4(_0x11394a);},function(){const _0x1339f8=_0x33697c;console['log'](_0x1339f8('0x28a0'));});}function _0x38f6ec(_0x923c65){const _0x555095=_0x2cb3fd,_0x28cdb0=_0x1dec94[_0x555095('0x1121')]()[_0x555095('0x24d3')](_0x555095('0x1fdd'))[_0x555095('0x211f')](_0x555095('0xa53')+_0x5e22c5[_0x555095('0xa2e')][_0x555095('0x1f73')]+_0x555095('0x145a')+_0x555095('0xe9f'))[_0x555095('0x2095')](_0x555095('0x15ee'))['targetEvent'](_0x923c65)['ok']('OK')[_0x555095('0x1d47')]('CANCEL');_0x1dec94['show'](_0x28cdb0)['then'](function(){const _0x5d4b1a=_0x555095;_0x5e22c5[_0x5d4b1a('0xa2e')][_0x5d4b1a('0xccd')](function(_0x4c7e84){_0x5ce5a4(_0x4c7e84);}),_0x5e22c5['selectedFields']=[];});}}const _0x1f4f51=_0x56568e;_0x15dc4c[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),'$location','$mdDialog','$q','$translate',_0x4376d8('0x108a'),'configurations',_0x4376d8('0x1284'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x15dc4c(_0x3ae314,_0x38db02,_0xfc395,_0x5707b6,_0x232971,_0x5e68c1,_0x1fd58a,_0x536e4f,_0x1ca887,_0x12b697,_0x423aa8,_0xdc7fe3,_0x539acc,_0x243dc3){const _0x32f58d=_0x4376d8,_0x480fb0=this;_0x480fb0['currentUser']=_0x423aa8[_0x32f58d('0x2831')](),_0x480fb0[_0x32f58d('0x73e')]=[],_0x480fb0['setting']=_0x539acc,_0x480fb0[_0x32f58d('0x1d11')]=_0xdc7fe3,_0x480fb0[_0x32f58d('0x103e')]=_0x243dc3,_0x480fb0[_0x32f58d('0x6ee')]={},_0x480fb0['passwordPattern']=_0x480fb0[_0x32f58d('0x1aeb')]&&_0x480fb0[_0x32f58d('0x1aeb')][_0x32f58d('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x480fb0[_0x32f58d('0x24d3')]=_0x32f58d('0x1ae1'),_0x480fb0[_0x32f58d('0x1284')]=angular[_0x32f58d('0x14e5')](_0x1ca887),_0x480fb0[_0x32f58d('0x11d0')]=_0x536e4f,_0x480fb0[_0x32f58d('0x564')]=![];!_0x480fb0[_0x32f58d('0x1284')]&&(_0x480fb0[_0x32f58d('0x1284')]={'channel':'voice','type':_0x32f58d('0x1e77'),'ticketType':_0x32f58d('0xc0b')},_0x480fb0['title']=_0x32f58d('0x24a5'),_0x480fb0['newDynamics365Configuration']=!![]);_0x480fb0[_0x32f58d('0x1eca')]=_0x2617d4,_0x480fb0[_0x32f58d('0x1a86')]=_0x164381,_0x480fb0['deleteDynamics365Configuration']=_0x362baf,_0x480fb0[_0x32f58d('0x1300')]=_0x27f80b,_0x480fb0[_0x32f58d('0x136e')]=_0x37427a;function _0x2617d4(){const _0x12cb4e=_0x32f58d;_0x480fb0[_0x12cb4e('0x73e')]=[],_0x12b697['intDynamics365Account'][_0x12cb4e('0x5e0')]({'id':_0x38db02['params']['id']},_0x480fb0[_0x12cb4e('0x1284')])[_0x12cb4e('0x1af5')][_0x12cb4e('0x17e7')](function(_0x249a64){const _0x8da896=_0x12cb4e;_0x480fb0[_0x8da896('0x11d0')]['unshift'](_0x249a64[_0x8da896('0x16b2')]()),_0x1fd58a[_0x8da896('0x130d')]({'title':_0x8da896('0x1e75'),'msg':_0x480fb0[_0x8da896('0x1284')][_0x8da896('0x2aa')]?_0x480fb0[_0x8da896('0x1284')][_0x8da896('0x2aa')]+_0x8da896('0x15a'):''}),_0x37427a(_0x249a64);})[_0x12cb4e('0x16df')](function(_0x2ea362){const _0x415a8d=_0x12cb4e;if(_0x2ea362[_0x415a8d('0x1457')]&&_0x2ea362[_0x415a8d('0x1457')][_0x415a8d('0x73e')]&&_0x2ea362['data']['errors'][_0x415a8d('0x1f73')]){_0x480fb0[_0x415a8d('0x73e')]=_0x2ea362['data'][_0x415a8d('0x73e')]||[{'message':_0x2ea362[_0x415a8d('0x9b6')](),'type':'api.intDynamics365Configuration.save'}];for(let _0x3f87dd=0x0;_0x3f87dd<_0x2ea362[_0x415a8d('0x1457')]['errors']['length'];_0x3f87dd+=0x1){_0x1fd58a[_0x415a8d('0x1db9')]({'title':_0x2ea362[_0x415a8d('0x1457')]['errors'][_0x3f87dd][_0x415a8d('0x412')],'msg':_0x2ea362[_0x415a8d('0x1457')][_0x415a8d('0x73e')][_0x3f87dd][_0x415a8d('0x1603')]});}}else _0x1fd58a['error']({'title':_0x2ea362['status']?'API:'+_0x2ea362[_0x415a8d('0x11c5')]+_0x415a8d('0x16e4')+_0x2ea362['statusText']:_0x415a8d('0xbe7'),'msg':_0x2ea362['data']?JSON[_0x415a8d('0x678')](_0x2ea362[_0x415a8d('0x1457')][_0x415a8d('0x1603')]):_0x2ea362[_0x415a8d('0x9b6')]()});});}function _0x164381(){const _0xb36071=_0x32f58d;_0x480fb0[_0xb36071('0x73e')]=[],_0x12b697['intDynamics365Configuration'][_0xb36071('0x27ba')]({'id':_0x480fb0[_0xb36071('0x1284')]['id']},_0x480fb0['dynamics365Configuration'])['$promise'][_0xb36071('0x17e7')](function(_0x5a0a24){const _0x296353=_0xb36071,_0x15bd2e=_0x49cbdd()[_0x296353('0xe8e')](_0x480fb0['configurations'],{'id':_0x5a0a24['id']});_0x15bd2e&&_0x49cbdd()[_0x296353('0x1ced')](_0x15bd2e,_0x49cbdd()[_0x296353('0x230a')](_0x5a0a24[_0x296353('0x16b2')](),_0x49cbdd()[_0x296353('0x1c0f')](_0x15bd2e))),_0x1fd58a[_0x296353('0x130d')]({'title':_0x296353('0x93c'),'msg':_0x480fb0['dynamics365Configuration'][_0x296353('0x2aa')]?_0x480fb0[_0x296353('0x1284')]['name']+_0x296353('0x15ca'):''}),_0x37427a(_0x5a0a24);})['catch'](function(_0x209c35){const _0x5512c2=_0xb36071;if(_0x209c35[_0x5512c2('0x1457')]&&_0x209c35[_0x5512c2('0x1457')][_0x5512c2('0x73e')]&&_0x209c35[_0x5512c2('0x1457')][_0x5512c2('0x73e')][_0x5512c2('0x1f73')]){_0x480fb0['errors']=_0x209c35['data'][_0x5512c2('0x73e')]||[{'message':_0x209c35[_0x5512c2('0x9b6')](),'type':'api.intDynamics365Configuration.update'}];for(let _0x5b5c84=0x0;_0x5b5c84<_0x209c35[_0x5512c2('0x1457')][_0x5512c2('0x73e')][_0x5512c2('0x1f73')];_0x5b5c84++){_0x1fd58a[_0x5512c2('0x1db9')]({'title':_0x209c35[_0x5512c2('0x1457')][_0x5512c2('0x73e')][_0x5b5c84][_0x5512c2('0x412')],'msg':_0x209c35[_0x5512c2('0x1457')][_0x5512c2('0x73e')][_0x5b5c84][_0x5512c2('0x1603')]});}}else _0x1fd58a[_0x5512c2('0x1db9')]({'title':_0x209c35[_0x5512c2('0x11c5')]?'API:'+_0x209c35[_0x5512c2('0x11c5')]+_0x5512c2('0x16e4')+_0x209c35[_0x5512c2('0x1833')]:_0x5512c2('0x1a6f'),'msg':_0x209c35[_0x5512c2('0x1457')]?JSON['stringify'](_0x209c35['data'][_0x5512c2('0x1603')]):_0x209c35['toString']()});});}function _0x362baf(_0x3a1950){const _0x404e0f=_0x32f58d;_0x480fb0['errors']=[];const _0x616f7b=_0x5707b6[_0x404e0f('0x1121')]()[_0x404e0f('0x24d3')](_0x404e0f('0x530'))[_0x404e0f('0xd5')]('The\x20dynamics365Configuration\x20will\x20be\x20deleted.')['ariaLabel'](_0x404e0f('0x1f67'))['ok'](_0x404e0f('0x304'))[_0x404e0f('0x1d47')]('Cancel')['targetEvent'](_0x3a1950);_0x5707b6[_0x404e0f('0x28e2')](_0x616f7b)[_0x404e0f('0x17e7')](function(){const _0x2fcd6c=_0x404e0f;_0x12b697[_0x2fcd6c('0x27a6')]['delete']({'id':_0x480fb0['dynamics365Configuration']['id']})[_0x2fcd6c('0x1af5')][_0x2fcd6c('0x17e7')](function(){const _0x3249d6=_0x2fcd6c;_0x49cbdd()[_0x3249d6('0x5f3')](_0x480fb0[_0x3249d6('0x11d0')],{'id':_0x480fb0[_0x3249d6('0x1284')]['id']}),_0x1fd58a[_0x3249d6('0x130d')]({'title':_0x3249d6('0x234d'),'msg':(_0x480fb0[_0x3249d6('0x1284')][_0x3249d6('0x2aa')]||_0x3249d6('0x1284'))+_0x3249d6('0x149f')}),_0x37427a(_0x480fb0[_0x3249d6('0x1284')]);})[_0x2fcd6c('0x16df')](function(_0x4ca2a6){const _0x4bde9f=_0x2fcd6c;if(_0x4ca2a6['data']&&_0x4ca2a6['data'][_0x4bde9f('0x73e')]&&_0x4ca2a6[_0x4bde9f('0x1457')][_0x4bde9f('0x73e')][_0x4bde9f('0x1f73')]){_0x480fb0[_0x4bde9f('0x73e')]=_0x4ca2a6[_0x4bde9f('0x1457')][_0x4bde9f('0x73e')]||[{'message':_0x4ca2a6['toString'](),'type':_0x4bde9f('0x1b6e')}];for(let _0x41e35e=0x0;_0x41e35e<_0x4ca2a6[_0x4bde9f('0x1457')]['errors'][_0x4bde9f('0x1f73')];_0x41e35e++){_0x1fd58a[_0x4bde9f('0x1db9')]({'title':_0x4ca2a6['data']['errors'][_0x41e35e][_0x4bde9f('0x412')],'msg':_0x4ca2a6[_0x4bde9f('0x1457')][_0x4bde9f('0x73e')][_0x41e35e]['message']});}}else _0x1fd58a['error']({'title':_0x4ca2a6[_0x4bde9f('0x11c5')]?_0x4bde9f('0x14f7')+_0x4ca2a6[_0x4bde9f('0x11c5')]+_0x4bde9f('0x16e4')+_0x4ca2a6[_0x4bde9f('0x1833')]:_0x4bde9f('0x1b6e'),'msg':_0x4ca2a6[_0x4bde9f('0x1457')]?JSON[_0x4bde9f('0x678')](_0x4ca2a6[_0x4bde9f('0x1457')][_0x4bde9f('0x1603')]):_0x4ca2a6[_0x4bde9f('0x1603')]||_0x4ca2a6[_0x4bde9f('0x9b6')]()});});},function(){});}function _0x27f80b(_0x274ac6){return _0x274ac6===null?undefined:new Date(_0x274ac6);}function _0x37427a(_0x46a34e){const _0x2fe4f0=_0x32f58d;_0x5707b6[_0x2fe4f0('0x212a')](_0x46a34e);}}const _0x5d5a24=_0x15dc4c;_0x20c4cd['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),'configuration',_0x4376d8('0x532'),_0x4376d8('0x28b8'),'account',_0x4376d8('0x412'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x20c4cd(_0x5387fb,_0x1e5c17,_0x4269b4,_0x3383b0,_0x23e34b,_0x2168eb,_0x1eab4e,_0x216047,_0xb483fc,_0x4317ea,_0x4bd5ca,_0x5b9e01,_0xb0345d){const _0x56a90e=_0x4376d8,_0x2d4892=this;_0x2d4892[_0x56a90e('0x197c')]=_0x5b9e01[_0x56a90e('0x2831')](),_0x2d4892['errors']=[],_0x2d4892[_0x56a90e('0x24d3')]=_0x56a90e('0x9dd')+_0x49cbdd()['toUpper'](_0x4317ea),_0x2d4892[_0x56a90e('0x28b8')]=angular[_0x56a90e('0x14e5')](_0x216047),_0x2d4892['items']=_0x1eab4e,_0x2d4892[_0x56a90e('0x412')]=_0x4317ea,_0x2d4892[_0x56a90e('0x103e')]=_0xb0345d,_0x2d4892[_0x56a90e('0x1ac5')]=![];!_0x2d4892['item']&&(_0x2d4892[_0x56a90e('0x28b8')]={'type':_0x56a90e('0x1783')},_0x2d4892[_0x56a90e('0x28b8')][_0x49cbdd()[_0x56a90e('0xb41')](_0x4317ea)+'Id']=_0x2168eb['id'],_0x2d4892['title']=_0x56a90e('0x6fe')+_0x49cbdd()[_0x56a90e('0x286f')](_0x4317ea),_0x2d4892['newItem']=!![]);_0x2d4892['addNewItem']=_0x3a79a1,_0x2d4892[_0x56a90e('0x1321')]=_0x904b3b,_0x2d4892[_0x56a90e('0x1350')]=_0x1caa7f,_0x2d4892[_0x56a90e('0x140a')]=_0x55c23b,_0x2d4892[_0x56a90e('0x136e')]=_0x2bd3,_0x4bd5ca[_0x56a90e('0xb0a')][_0x56a90e('0x1c53')]({'nolimit':!![]})[_0x56a90e('0x1af5')][_0x56a90e('0x17e7')](function(_0xed4449){const _0x169227=_0x56a90e;return _0x2d4892[_0x169227('0xd26')]=_0xed4449[_0x169227('0x2319')]?_0xed4449[_0x169227('0x2319')]:[],_0x4bd5ca['voiceAgentReport'][_0x169227('0x2234')]()['$promise'];})[_0x56a90e('0x17e7')](function(_0x34e494){const _0x2d8070=_0x56a90e;return _0x2d4892[_0x2d8070('0x217b')]=_0x49cbdd()['difference'](_0x49cbdd()[_0x2d8070('0x1c0f')](_0x34e494),[_0x2d8070('0x1af5'),'$resolved',_0x2d8070('0x7c9'),'updatedAt','sourceid']),_0x2d4892[_0x2d8070('0x217b')][_0x2d8070('0x269f')](_0x2d8070('0x1bea')),_0x4bd5ca['voiceDialReport'][_0x2d8070('0x2234')]()['$promise'];})['then'](function(_0x3601ed){const _0xb6a8a0=_0x56a90e;_0x2d4892[_0xb6a8a0('0xe00')]=_0x49cbdd()[_0xb6a8a0('0x4f1')](_0x49cbdd()[_0xb6a8a0('0x1c0f')](_0x3601ed),[_0xb6a8a0('0x1af5'),_0xb6a8a0('0x1314'),_0xb6a8a0('0x7c9'),_0xb6a8a0('0xb8a'),'sourceid']),_0x2d4892['voiceDialReportColumns'][_0xb6a8a0('0x269f')](_0xb6a8a0('0x1bea'));})[_0x56a90e('0x16df')](function(_0x15fcbc){const _0x3b9d8b=_0x56a90e;_0x23e34b['error']({'title':_0x15fcbc[_0x3b9d8b('0x11c5')]?'API:'+_0x15fcbc[_0x3b9d8b('0x11c5')]+'\x20-\x20'+_0x15fcbc[_0x3b9d8b('0x1833')]:_0x3b9d8b('0x3a9'),'msg':_0x15fcbc['data']?JSON[_0x3b9d8b('0x678')](_0x15fcbc[_0x3b9d8b('0x1457')]):_0x15fcbc['toString']()});}),_0x4bd5ca[_0x56a90e('0x399')][_0x56a90e('0x9a')]({'id':_0xb483fc['id'],'ticketType':_0x2168eb[_0x56a90e('0x148e')]?_0x2168eb['ticketType']:undefined})[_0x56a90e('0x1af5')][_0x56a90e('0x17e7')](function(_0x5ac85b){const _0xc7ea28=_0x56a90e;_0x2d4892['accountConnected']=!![],_0x2d4892[_0xc7ea28('0x9c9')]=_0x5ac85b['rows']?_0x5ac85b[_0xc7ea28('0x2319')]:[],_0x2d4892[_0xc7ea28('0x28b8')][_0xc7ea28('0x8d8')]&&(_0x2d4892['customField']=_0x49cbdd()['find'](_0x2d4892[_0xc7ea28('0x9c9')],{'id':_0x2d4892[_0xc7ea28('0x28b8')][_0xc7ea28('0x8d8')]}));})[_0x56a90e('0x16df')](function(_0x1989a4){const _0x5b084b=_0x56a90e;_0x2d4892[_0x5b084b('0x20c2')]=![],console['error'](_0x1989a4);});function _0x3a79a1(){const _0x492674=_0x56a90e;_0x2d4892['errors']=[],_0x2d4892['customField']&&(_0x2d4892['item'][_0x492674('0x8d8')]=_0x2d4892[_0x492674('0x1fa4')]['id'],_0x2d4892[_0x492674('0x28b8')][_0x492674('0x1a12')]=_0x2d4892[_0x492674('0x1fa4')][_0x492674('0x2aa')],_0x2d4892[_0x492674('0x28b8')][_0x492674('0x1fa4')]=_0x2d4892[_0x492674('0x1fa4')]['custom']),_0x4bd5ca[_0x492674('0x1fdb')][_0x492674('0x2439')](_0x2d4892['item'])[_0x492674('0x1af5')][_0x492674('0x17e7')](function(_0x3df009){const _0x50379b=_0x492674;_0x2d4892[_0x50379b('0x532')]['unshift'](_0x3df009),_0x23e34b['success']({'title':_0x49cbdd()['capitalize'](_0x4317ea)+_0x50379b('0x23ad'),'msg':_0x49cbdd()[_0x50379b('0xb41')](_0x4317ea)+_0x50379b('0x15a')}),_0x2bd3();})['catch'](function(_0x34a0e6){const _0x3d78cf=_0x492674;console[_0x3d78cf('0x1db9')](_0x34a0e6),_0x2d4892[_0x3d78cf('0x73e')]=_0x34a0e6[_0x3d78cf('0x1457')][_0x3d78cf('0x73e')]||[{'message':_0x34a0e6['toString'](),'type':_0x3d78cf('0xbe0')}];});}function _0x904b3b(){const _0x5e006b=_0x56a90e;_0x2d4892[_0x5e006b('0x73e')]=[],_0x2d4892[_0x5e006b('0x1fa4')]&&(_0x2d4892[_0x5e006b('0x28b8')][_0x5e006b('0x8d8')]=_0x2d4892[_0x5e006b('0x1fa4')]['id'],_0x2d4892['item'][_0x5e006b('0x1a12')]=_0x2d4892[_0x5e006b('0x1fa4')][_0x5e006b('0x2aa')],_0x2d4892[_0x5e006b('0x28b8')][_0x5e006b('0x1fa4')]=_0x2d4892['customField'][_0x5e006b('0x8fa')]),_0x4bd5ca[_0x5e006b('0x1fdb')][_0x5e006b('0x27ba')]({'id':_0x2d4892[_0x5e006b('0x28b8')]['id']},_0x2d4892[_0x5e006b('0x28b8')])[_0x5e006b('0x1af5')][_0x5e006b('0x17e7')](function(_0x393a69){const _0x353ac0=_0x5e006b,_0x135913=_0x49cbdd()[_0x353ac0('0xe8e')](_0x2d4892[_0x353ac0('0x532')],{'id':_0x393a69['id']});_0x135913&&_0x49cbdd()[_0x353ac0('0x1ced')](_0x135913,_0x393a69),_0x23e34b[_0x353ac0('0x130d')]({'title':_0x49cbdd()[_0x353ac0('0xb41')](_0x4317ea)+_0x353ac0('0x2b8'),'msg':_0x49cbdd()['capitalize'](_0x4317ea)+_0x353ac0('0x15ca')}),_0x2bd3();})[_0x5e006b('0x16df')](function(_0x27d3c8){const _0x23b0bf=_0x5e006b;console['error'](_0x27d3c8),_0x2d4892['errors']=_0x27d3c8[_0x23b0bf('0x1457')][_0x23b0bf('0x73e')]||[{'message':_0x27d3c8['toString'](),'type':_0x23b0bf('0x428')}];});}function _0x1caa7f(_0x585636){const _0x42d208=_0x56a90e;_0x2d4892[_0x42d208('0x73e')]=[];const _0x3ec661=_0x3383b0['confirm']()[_0x42d208('0x24d3')](_0x42d208('0x530'))[_0x42d208('0xd5')](_0x42d208('0x1664')+_0x4317ea+'\x20will\x20be\x20deleted.')[_0x42d208('0x2095')](_0x42d208('0x1aaa')+_0x49cbdd()['capitalize'](_0x4317ea))['ok'](_0x42d208('0x304'))['cancel']('Cancel')[_0x42d208('0x104f')](_0x585636);_0x3383b0['show'](_0x3ec661)[_0x42d208('0x17e7')](function(){const _0x489b22=_0x42d208;_0x4bd5ca[_0x489b22('0x1fdb')][_0x489b22('0x1da6')]({'id':_0x2d4892[_0x489b22('0x28b8')]['id']})[_0x489b22('0x1af5')][_0x489b22('0x17e7')](function(){const _0x27831a=_0x489b22;_0x49cbdd()['remove'](_0x2d4892['items'],{'id':_0x2d4892[_0x27831a('0x28b8')]['id']}),_0x23e34b[_0x27831a('0x130d')]({'title':_0x49cbdd()['capitalize'](_0x4317ea)+'\x20properly\x20deleted!','msg':_0x49cbdd()[_0x27831a('0xb41')](_0x4317ea)+'\x20has\x20been\x20deleted!'}),_0x2bd3();})[_0x489b22('0x16df')](function(_0xd86ecf){const _0x17014f=_0x489b22;console[_0x17014f('0x1db9')](_0xd86ecf),_0x2d4892['errors']=_0xd86ecf[_0x17014f('0x1457')][_0x17014f('0x73e')]||[{'message':_0xd86ecf[_0x17014f('0x9b6')](),'type':_0x17014f('0x2220')}];});},function(){});}function _0x55c23b(){const _0x334a3c=_0x56a90e;return _0x2d4892['item'][_0x334a3c('0x4fd')]!==undefined?_0x2d4892['item'][_0x334a3c('0x4fd')]:'Please\x20select\x20a\x20variable';}function _0x2bd3(){const _0x301d45=_0x56a90e;_0x3383b0[_0x301d45('0x212a')]();}}const _0x48f50c=_0x20c4cd;_0x4d3528[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'api',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x52d'),_0x4376d8('0x383')];function _0x4d3528(_0x207023,_0x59cfea,_0x8f4a41,_0x3d7833,_0x128223,_0x5a7b18,_0x38296e,_0x4b6627,_0x13c693,_0x4a8be9,_0x4c7d5e,_0x42fa73){const _0x53c19c=_0x4376d8,_0x397c79=this;_0x397c79[_0x53c19c('0x197c')]=_0x4a8be9['getCurrentUser'](),_0x397c79[_0x53c19c('0x1d11')]=_0x5a7b18,_0x397c79[_0x53c19c('0x1aeb')]=_0x38296e,_0x397c79[_0x53c19c('0x1572')]=_0x397c79['setting'][_0x53c19c('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x397c79[_0x53c19c('0xaed')]=_0x59cfea[_0x53c19c('0x14fe')]()+_0x53c19c('0x14')+_0x59cfea['host'](),_0x397c79[_0x53c19c('0x52d')]=_0x4c7d5e||_0x207023[_0x53c19c('0x16fb')][_0x53c19c('0x52d')]||{},_0x397c79[_0x53c19c('0x383')]=_0x42fa73&&_0x42fa73[_0x53c19c('0x335')]==0x1?_0x42fa73[_0x53c19c('0x2319')][0x0]:null,_0x397c79[_0x53c19c('0x103e')]=_0x4a8be9[_0x53c19c('0x17a9')](_0x397c79['userProfileSection']?_0x397c79[_0x53c19c('0x383')]['crudPermissions']:null),_0x397c79[_0x53c19c('0x6ee')]={},_0x397c79[_0x53c19c('0xde7')]=_0x207023['params']['tab']||0x0,_0x397c79[_0x53c19c('0x99f')]=_0x13c693['info'],_0x397c79[_0x53c19c('0x1ee2')]=_0x2f42a5,_0x397c79[_0x53c19c('0xd11')]=_0x1fae82;function _0x2f42a5(){const _0x1c2a2d=_0x53c19c;_0x207023['go']('app.integrations.dynamics365Accounts',{},{'reload':_0x1c2a2d('0x14b6')});}function _0x1fae82(){const _0x35d29b=_0x53c19c;_0x4b6627['intDynamics365Account']['update']({'id':_0x397c79[_0x35d29b('0x52d')]['id']},_0x397c79[_0x35d29b('0x52d')])[_0x35d29b('0x1af5')][_0x35d29b('0x17e7')](function(){const _0x5e3957=_0x35d29b;_0x13c693[_0x5e3957('0x130d')]({'title':'Dynamics365Account\x20updated!','msg':_0x397c79['dynamics365Account'][_0x5e3957('0x2aa')]?_0x397c79[_0x5e3957('0x52d')][_0x5e3957('0x2aa')]+_0x5e3957('0x12b0'):''});})[_0x35d29b('0x16df')](function(_0x1859c2){const _0x122623=_0x35d29b;_0x13c693[_0x122623('0x1db9')]({'title':_0x1859c2[_0x122623('0x11c5')]?_0x122623('0x14f7')+_0x1859c2[_0x122623('0x11c5')]+_0x122623('0x16e4')+_0x1859c2['statusText']:_0x122623('0xc7e'),'msg':_0x1859c2[_0x122623('0x1457')]?JSON['stringify'](_0x1859c2['data']):_0x1859c2[_0x122623('0x9b6')]()});});}}const _0x43dcd4=_0x4d3528;_0x308209[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0xdab'),'freshdeskAccount','api','Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x308209(_0x11829b,_0xc98c7,_0x2fdfa5,_0x560557,_0x4a8847,_0x444957,_0x5e0024,_0x40c90f,_0x57e6d6,_0x3f7a6a,_0x236abf,_0x44b656,_0x46d60c,_0x442b34){const _0x524c25=_0x4376d8,_0x3a917e=this;_0x3a917e[_0x524c25('0x197c')]=_0x236abf[_0x524c25('0x2831')](),_0x3a917e['errors']=[],_0x3a917e['setting']=_0x46d60c,_0x3a917e[_0x524c25('0x1d11')]=_0x44b656,_0x3a917e[_0x524c25('0x103e')]=_0x442b34,_0x3a917e[_0x524c25('0x6ee')]={},_0x3a917e[_0x524c25('0x1572')]=_0x3a917e['setting']&&_0x3a917e[_0x524c25('0x1aeb')][_0x524c25('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a917e[_0x524c25('0x24d3')]=_0x524c25('0xb4d'),_0x3a917e[_0x524c25('0x1e23')]=angular[_0x524c25('0x14e5')](_0x57e6d6),_0x3a917e[_0x524c25('0xdab')]=_0x40c90f,_0x3a917e['newFreshdeskAccount']=![];!_0x3a917e['freshdeskAccount']&&(_0x3a917e[_0x524c25('0x1e23')]={'serverUrl':_0x2fdfa5[_0x524c25('0x14fe')]()+_0x524c25('0x14')+_0x2fdfa5[_0x524c25('0x108')]()+(_0x2fdfa5[_0x524c25('0x2442')]()?':'+_0x2fdfa5[_0x524c25('0x2442')]():'')},_0x3a917e[_0x524c25('0x24d3')]=_0x524c25('0x1f44'),_0x3a917e[_0x524c25('0x22bf')]=!![]);_0x3a917e[_0x524c25('0xd49')]=_0xb35ac1,_0x3a917e['saveFreshdeskAccount']=_0x2c68d2,_0x3a917e[_0x524c25('0x1a1a')]=_0x1a5efa,_0x3a917e[_0x524c25('0x1300')]=_0x170b9d,_0x3a917e[_0x524c25('0x136e')]=_0xdb027a;function _0xb35ac1(){const _0x393ed4=_0x524c25;_0x3a917e[_0x393ed4('0x73e')]=[],_0x3f7a6a[_0x393ed4('0x1190')][_0x393ed4('0x2439')](_0x3a917e['freshdeskAccount'])[_0x393ed4('0x1af5')][_0x393ed4('0x17e7')](function(_0x118ca4){const _0x194303=_0x393ed4;_0x3a917e[_0x194303('0xdab')]['unshift'](_0x118ca4[_0x194303('0x16b2')]()),_0x5e0024[_0x194303('0x130d')]({'title':_0x194303('0xbfd'),'msg':_0x3a917e[_0x194303('0x1e23')][_0x194303('0x2aa')]?_0x3a917e['freshdeskAccount'][_0x194303('0x2aa')]+_0x194303('0x15a'):''}),_0xdb027a(_0x118ca4);})[_0x393ed4('0x16df')](function(_0x58ed78){const _0x11ca1b=_0x393ed4;if(_0x58ed78[_0x11ca1b('0x1457')]&&_0x58ed78[_0x11ca1b('0x1457')]['errors']&&_0x58ed78[_0x11ca1b('0x1457')]['errors'][_0x11ca1b('0x1f73')]){_0x3a917e['errors']=_0x58ed78[_0x11ca1b('0x1457')][_0x11ca1b('0x73e')]||[{'message':_0x58ed78[_0x11ca1b('0x9b6')](),'type':_0x11ca1b('0x2257')}];for(let _0x27699c=0x0;_0x27699c<_0x58ed78[_0x11ca1b('0x1457')][_0x11ca1b('0x73e')][_0x11ca1b('0x1f73')];_0x27699c+=0x1){_0x5e0024[_0x11ca1b('0x1db9')]({'title':_0x58ed78[_0x11ca1b('0x1457')]['errors'][_0x27699c]['type'],'msg':_0x58ed78[_0x11ca1b('0x1457')][_0x11ca1b('0x73e')][_0x27699c][_0x11ca1b('0x1603')]});}}else _0x5e0024['error']({'title':_0x58ed78[_0x11ca1b('0x11c5')]?'API:'+_0x58ed78['status']+'\x20-\x20'+_0x58ed78[_0x11ca1b('0x1833')]:_0x11ca1b('0x2257'),'msg':_0x58ed78[_0x11ca1b('0x1457')]?JSON['stringify'](_0x58ed78[_0x11ca1b('0x1457')][_0x11ca1b('0x1603')]):_0x58ed78[_0x11ca1b('0x9b6')]()});});}function _0x2c68d2(){const _0x293590=_0x524c25;_0x3a917e[_0x293590('0x73e')]=[],_0x3f7a6a['intFreshdeskAccount'][_0x293590('0x27ba')]({'id':_0x3a917e[_0x293590('0x1e23')]['id']},_0x3a917e[_0x293590('0x1e23')])['$promise'][_0x293590('0x17e7')](function(_0x5adbd5){const _0xfbb225=_0x293590,_0x3483cf=_0x49cbdd()['find'](_0x3a917e[_0xfbb225('0xdab')],{'id':_0x5adbd5['id']});_0x3483cf&&_0x49cbdd()[_0xfbb225('0x1ced')](_0x3483cf,_0x49cbdd()[_0xfbb225('0x230a')](_0x5adbd5['toJSON'](),_0x49cbdd()[_0xfbb225('0x1c0f')](_0x3483cf))),_0x5e0024[_0xfbb225('0x130d')]({'title':_0xfbb225('0x15a7'),'msg':_0x3a917e[_0xfbb225('0x1e23')][_0xfbb225('0x2aa')]?_0x3a917e[_0xfbb225('0x1e23')][_0xfbb225('0x2aa')]+_0xfbb225('0x15ca'):''}),_0xdb027a(_0x5adbd5);})[_0x293590('0x16df')](function(_0x479454){const _0x25306e=_0x293590;if(_0x479454['data']&&_0x479454[_0x25306e('0x1457')][_0x25306e('0x73e')]&&_0x479454[_0x25306e('0x1457')][_0x25306e('0x73e')]['length']){_0x3a917e[_0x25306e('0x73e')]=_0x479454[_0x25306e('0x1457')][_0x25306e('0x73e')]||[{'message':_0x479454[_0x25306e('0x9b6')](),'type':_0x25306e('0x2041')}];for(let _0x1a2688=0x0;_0x1a2688<_0x479454[_0x25306e('0x1457')]['errors'][_0x25306e('0x1f73')];_0x1a2688++){_0x5e0024[_0x25306e('0x1db9')]({'title':_0x479454[_0x25306e('0x1457')][_0x25306e('0x73e')][_0x1a2688][_0x25306e('0x412')],'msg':_0x479454[_0x25306e('0x1457')][_0x25306e('0x73e')][_0x1a2688][_0x25306e('0x1603')]});}}else _0x5e0024['error']({'title':_0x479454['status']?_0x25306e('0x14f7')+_0x479454[_0x25306e('0x11c5')]+_0x25306e('0x16e4')+_0x479454['statusText']:'api.intFreshdeskAccount.update','msg':_0x479454[_0x25306e('0x1457')]?JSON[_0x25306e('0x678')](_0x479454[_0x25306e('0x1457')][_0x25306e('0x1603')]):_0x479454[_0x25306e('0x9b6')]()});});}function _0x1a5efa(_0x3763e5){const _0x12d92e=_0x524c25;_0x3a917e[_0x12d92e('0x73e')]=[];const _0x9d3943=_0x560557[_0x12d92e('0x1121')]()[_0x12d92e('0x24d3')]('Are\x20you\x20sure?')['content'](_0x12d92e('0x11ee'))[_0x12d92e('0x2095')](_0x12d92e('0xb7a'))['ok'](_0x12d92e('0x304'))[_0x12d92e('0x1d47')]('Cancel')[_0x12d92e('0x104f')](_0x3763e5);_0x560557['show'](_0x9d3943)[_0x12d92e('0x17e7')](function(){const _0x4f3eb8=_0x12d92e;_0x3f7a6a[_0x4f3eb8('0x1190')][_0x4f3eb8('0x1da6')]({'id':_0x3a917e[_0x4f3eb8('0x1e23')]['id']})[_0x4f3eb8('0x1af5')][_0x4f3eb8('0x17e7')](function(){const _0x49203c=_0x4f3eb8;_0x49cbdd()['remove'](_0x3a917e[_0x49203c('0xdab')],{'id':_0x3a917e[_0x49203c('0x1e23')]['id']}),_0x5e0024['success']({'title':_0x49203c('0xf7f'),'msg':(_0x3a917e['freshdeskAccount'][_0x49203c('0x2aa')]||'freshdeskAccount')+_0x49203c('0x149f')}),_0xdb027a(_0x3a917e[_0x49203c('0x1e23')]);})['catch'](function(_0x21148e){const _0x544297=_0x4f3eb8;if(_0x21148e['data']&&_0x21148e[_0x544297('0x1457')][_0x544297('0x73e')]&&_0x21148e['data'][_0x544297('0x73e')][_0x544297('0x1f73')]){_0x3a917e['errors']=_0x21148e[_0x544297('0x1457')][_0x544297('0x73e')]||[{'message':_0x21148e['toString'](),'type':_0x544297('0x1e88')}];for(let _0x1b11a7=0x0;_0x1b11a7<_0x21148e[_0x544297('0x1457')][_0x544297('0x73e')][_0x544297('0x1f73')];_0x1b11a7++){_0x5e0024[_0x544297('0x1db9')]({'title':_0x21148e[_0x544297('0x1457')][_0x544297('0x73e')][_0x1b11a7][_0x544297('0x412')],'msg':_0x21148e[_0x544297('0x1457')][_0x544297('0x73e')][_0x1b11a7][_0x544297('0x1603')]});}}else _0x5e0024[_0x544297('0x1db9')]({'title':_0x21148e['status']?_0x544297('0x14f7')+_0x21148e[_0x544297('0x11c5')]+_0x544297('0x16e4')+_0x21148e[_0x544297('0x1833')]:_0x544297('0x1e88'),'msg':_0x21148e[_0x544297('0x1457')]?JSON[_0x544297('0x678')](_0x21148e[_0x544297('0x1457')]['message']):_0x21148e[_0x544297('0x1603')]||_0x21148e['toString']()});});},function(){});}function _0x170b9d(_0x5b519a){return _0x5b519a===null?undefined:new Date(_0x5b519a);}function _0xdb027a(_0x5d4864){const _0x53e87e=_0x524c25;_0x560557[_0x53e87e('0x212a')](_0x5d4864);}}const _0x19fa2b=_0x308209,_0x449eae=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/configurations/dialog.html/dialog.html',_0x4ab3f7=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/freshdeskAccounts/edit/item/dialog.html/dialog.html';_0x1f3416[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x1f3416(_0x56ce91,_0x5f3811,_0xd5266b,_0x45a1d3,_0x41fb0d){const _0x4a538b=_0x4376d8,_0x165b7b=this;_0x165b7b['currentUser']=_0x41fb0d[_0x4a538b('0x2831')](),_0x165b7b['freshdeskAccount']={},_0x165b7b[_0x4a538b('0x271b')]={},_0x165b7b['configurations']=[],_0x165b7b['selectedFreshdeskConfiguration']=-0x1,_0x165b7b[_0x4a538b('0x103e')],_0x165b7b[_0x4a538b('0x161d')]=_0x2e4cf8,_0x165b7b[_0x4a538b('0x2693')]=_0x4cf08e,_0x165b7b[_0x4a538b('0x1339')]=_0x50575a,_0x165b7b[_0x4a538b('0x79d')]=_0x33847f,_0x165b7b[_0x4a538b('0x8b4')]=[],_0x165b7b[_0x4a538b('0x5ca')]=_0x4659e7,_0xd5266b[_0x4a538b('0x1132')][_0x4a538b('0x1c53')]({'nolimit':!![],'sort':_0x4a538b('0x2aa')})[_0x4a538b('0x1af5')][_0x4a538b('0x17e7')](function(_0x3e639a){const _0x15862b=_0x4a538b;_0x165b7b[_0x15862b('0x1522')]=_0x3e639a[_0x15862b('0x2319')]?_0x3e639a[_0x15862b('0x2319')]:[];})['catch'](function(_0x346ded){const _0x25084d=_0x4a538b;_0x45a1d3[_0x25084d('0x1db9')]({'title':_0x346ded[_0x25084d('0x11c5')]?'API:'+_0x346ded[_0x25084d('0x11c5')]+'\x20-\x20'+_0x346ded[_0x25084d('0x1833')]:_0x25084d('0x1435'),'msg':_0x346ded[_0x25084d('0x1457')]?JSON[_0x25084d('0x678')](_0x346ded['data']):_0x346ded[_0x25084d('0x9b6')]()});});function _0x4659e7(){const _0x71ad20=_0x4a538b;_0xd5266b[_0x71ad20('0x4c')]['setTags']({'id':_0x165b7b['freshdeskConfiguration']['id'],'ids':_0x165b7b['selectedTags']})[_0x71ad20('0x1af5')][_0x71ad20('0x17e7')](function(){const _0x115012=_0x71ad20;_0x45a1d3[_0x115012('0x130d')]({'title':_0x115012('0x286d'),'msg':_0x115012('0x2f6')});})[_0x71ad20('0x16df')](function(_0x5b1772){const _0x33102e=_0x71ad20;_0x45a1d3[_0x33102e('0x1db9')]({'title':_0x5b1772[_0x33102e('0x11c5')]?_0x33102e('0x14f7')+_0x5b1772[_0x33102e('0x11c5')]+'\x20-\x20'+_0x5b1772[_0x33102e('0x1833')]:_0x33102e('0x25b0'),'msg':_0x5b1772[_0x33102e('0x1457')]?JSON[_0x33102e('0x678')](_0x5b1772[_0x33102e('0x1457')]):_0x5b1772['toString']()});});}function _0x2e4cf8(_0x46ad04,_0x1d58b2){const _0x5e24a5=_0x4a538b;_0x165b7b[_0x5e24a5('0x1e23')]=_0x46ad04,_0x165b7b['crudPermissions']=typeof _0x1d58b2!==_0x5e24a5('0xfad')?_0x1d58b2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xd5266b[_0x5e24a5('0x1190')][_0x5e24a5('0xee0')]({'id':_0x165b7b['freshdeskAccount']['id'],'sort':_0x5e24a5('0x1ac6')})[_0x5e24a5('0x1af5')][_0x5e24a5('0x17e7')](function(_0x993c2c){const _0xbfe7ea=_0x5e24a5;return _0x165b7b['configurations']=_0x993c2c[_0xbfe7ea('0x2319')]?_0x993c2c[_0xbfe7ea('0x2319')]:[],_0x165b7b[_0xbfe7ea('0x11d0')][_0xbfe7ea('0x1f73')]&&_0x165b7b[_0xbfe7ea('0x2693')](0x0),_0xd5266b[_0xbfe7ea('0xb0a')][_0xbfe7ea('0x1c53')]({'nolimit':!![],'sort':_0xbfe7ea('0x2aa')})[_0xbfe7ea('0x1af5')];})[_0x5e24a5('0x17e7')](function(_0x41a007){const _0x30e05e=_0x5e24a5;_0x165b7b[_0x30e05e('0xd26')]=_0x41a007['rows']?_0x41a007[_0x30e05e('0x2319')]:[],_0x165b7b[_0x30e05e('0x214d')]=_0x49cbdd()[_0x30e05e('0x8de')](_0x165b7b[_0x30e05e('0xd26')],'id');})[_0x5e24a5('0x16df')](function(_0x446df9){const _0x49f230=_0x5e24a5;_0x45a1d3['error']({'title':_0x446df9[_0x49f230('0x11c5')]?_0x49f230('0x14f7')+_0x446df9[_0x49f230('0x11c5')]+_0x49f230('0x16e4')+_0x446df9[_0x49f230('0x1833')]:'SYSTEM:GETCONFIGURATION','msg':_0x446df9[_0x49f230('0x1457')]?JSON[_0x49f230('0x678')](_0x446df9[_0x49f230('0x1457')]):_0x446df9[_0x49f230('0x9b6')]()});});}function _0x4cf08e(_0x49e125){const _0x1d6b3e=_0x4a538b;_0x165b7b[_0x1d6b3e('0x271b')]=_0x165b7b['configurations'][_0x49e125],_0x165b7b[_0x1d6b3e('0x1e3')]=_0x49e125,_0xd5266b[_0x1d6b3e('0x4c')][_0x1d6b3e('0x94e')]({'id':_0x165b7b[_0x1d6b3e('0x271b')]['id']})[_0x1d6b3e('0x1af5')]['then'](function(_0x3177f6){const _0x49ad78=_0x1d6b3e;return _0x165b7b[_0x49ad78('0x1261')]=_0x3177f6[_0x49ad78('0x2319')]?_0x3177f6['rows']:[],_0xd5266b[_0x49ad78('0x4c')][_0x49ad78('0x24c7')]({'id':_0x165b7b[_0x49ad78('0x271b')]['id']})[_0x49ad78('0x1af5')];})['then'](function(_0x2765ec){const _0x18818e=_0x1d6b3e;return _0x165b7b[_0x18818e('0x1a2a')]=_0x2765ec[_0x18818e('0x2319')]?_0x2765ec['rows']:[],_0xd5266b[_0x18818e('0x4c')][_0x18818e('0x9a')]({'id':_0x165b7b[_0x18818e('0x271b')]['id']})[_0x18818e('0x1af5')];})['then'](function(_0x11cdf3){const _0x3a0a0a=_0x1d6b3e;_0x165b7b[_0x3a0a0a('0x9c9')]=_0x11cdf3['rows']?_0x11cdf3[_0x3a0a0a('0x2319')]:[];})[_0x1d6b3e('0x16df')](function(_0xc852c3){const _0x431387=_0x1d6b3e;_0x45a1d3['error']({'title':_0xc852c3['status']?_0x431387('0x14f7')+_0xc852c3[_0x431387('0x11c5')]+_0x431387('0x16e4')+_0xc852c3[_0x431387('0x1833')]:_0x431387('0x23be'),'msg':_0xc852c3[_0x431387('0x1457')]?JSON[_0x431387('0x678')](_0xc852c3[_0x431387('0x1457')]):_0xc852c3[_0x431387('0x9b6')]()});}),_0xd5266b['intFreshdeskConfiguration'][_0x1d6b3e('0x79a')]({'id':_0x165b7b[_0x1d6b3e('0x271b')]['id']})[_0x1d6b3e('0x1af5')][_0x1d6b3e('0x17e7')](function(_0xacf64f){const _0x310aa6=_0x1d6b3e;_0x165b7b[_0x310aa6('0x8b4')]=_0xacf64f[_0x310aa6('0x2319')]?_0x49cbdd()[_0x310aa6('0x787')](_0xacf64f[_0x310aa6('0x2319')],'id'):[];})[_0x1d6b3e('0x16df')](function(_0x55ecdf){const _0x256caa=_0x1d6b3e;_0x45a1d3[_0x256caa('0x1db9')]({'title':_0x55ecdf[_0x256caa('0x11c5')]?_0x256caa('0x14f7')+_0x55ecdf['status']+_0x256caa('0x16e4')+_0x55ecdf[_0x256caa('0x1833')]:_0x256caa('0x1435'),'msg':_0x55ecdf[_0x256caa('0x1457')]?JSON[_0x256caa('0x678')](_0x55ecdf[_0x256caa('0x1457')]):_0x55ecdf[_0x256caa('0x9b6')]()});});}function _0x50575a(_0x5f4d6c,_0x59cd7a){const _0x4d4aa6=_0x4a538b;_0x56ce91[_0x4d4aa6('0x28e2')]({'controller':'CreateOrEditFreshdeskConfigurationDialogController','controllerAs':'vm','templateUrl':_0x449eae,'parent':angular[_0x4d4aa6('0x1ce1')](_0x5f3811[_0x4d4aa6('0x13aa')]),'targetEvent':_0x5f4d6c,'clickOutsideToClose':!![],'locals':{'freshdeskConfiguration':_0x59cd7a,'configurations':_0x165b7b[_0x4d4aa6('0x11d0')],'license':null,'setting':null,'crudPermissions':_0x165b7b[_0x4d4aa6('0x103e')]}})[_0x4d4aa6('0x74e')](function(){const _0x2cc393=_0x4d4aa6;_0x165b7b[_0x2cc393('0x2693')](0x0);});}function _0x33847f(_0x37069c,_0x3e3ebf){const _0x1e5a2e=_0x4a538b,_0x2b6d54=_0x56ce91[_0x1e5a2e('0x1121')]()[_0x1e5a2e('0x24d3')](_0x1e5a2e('0xf27'))[_0x1e5a2e('0x211f')](''+(_0x3e3ebf[_0x1e5a2e('0x2aa')]||_0x1e5a2e('0x271b'))+''+_0x1e5a2e('0xe9f'))[_0x1e5a2e('0x2095')](_0x1e5a2e('0x1728'))[_0x1e5a2e('0x104f')](_0x37069c)['ok']('OK')['cancel'](_0x1e5a2e('0x28a0'));_0x56ce91[_0x1e5a2e('0x28e2')](_0x2b6d54)['then'](function(){const _0x4d8fac=_0x1e5a2e;_0xd5266b[_0x4d8fac('0x4c')][_0x4d8fac('0x1da6')]({'id':_0x3e3ebf['id']})[_0x4d8fac('0x1af5')][_0x4d8fac('0x17e7')](function(){const _0x130221=_0x4d8fac;_0x49cbdd()[_0x130221('0x5f3')](_0x165b7b[_0x130221('0x11d0')],{'id':_0x3e3ebf['id']}),_0x45a1d3[_0x130221('0x130d')]({'title':_0x130221('0xe0e'),'msg':_0x3e3ebf[_0x130221('0x2aa')]?_0x3e3ebf[_0x130221('0x2aa')]+_0x130221('0x149f'):''});})[_0x4d8fac('0x16df')](function(_0x467898){const _0x34750b=_0x4d8fac;_0x45a1d3['error']({'title':_0x467898[_0x34750b('0x11c5')]?_0x34750b('0x14f7')+_0x467898['status']+_0x34750b('0x16e4')+_0x467898[_0x34750b('0x1833')]:_0x34750b('0x11b4'),'msg':_0x467898[_0x34750b('0x1457')]?JSON[_0x34750b('0x678')](_0x467898[_0x34750b('0x1457')]):_0x467898[_0x34750b('0x9b6')]()});})[_0x4d8fac('0x74e')](function(){const _0x144256=_0x4d8fac;_0x165b7b[_0x144256('0x2693')](0x0);});},function(){const _0x5793e1=_0x1e5a2e;console[_0x5793e1('0x1d63')]('CANCEL');});}_0x165b7b['selectedSubjects']=[],_0x165b7b['createOrEditSubject']=_0x403b36,_0x165b7b[_0x4a538b('0x268a')]=_0x5b1311,_0x165b7b[_0x4a538b('0x2738')]=_0x5bfc05;function _0x403b36(_0x3d6a52,_0x34c097){const _0x3ba985=_0x4a538b;_0x56ce91[_0x3ba985('0x28e2')]({'controller':_0x3ba985('0x1e06'),'controllerAs':'vm','templateUrl':_0x4ab3f7,'parent':angular['element'](_0x5f3811[_0x3ba985('0x13aa')]),'targetEvent':_0x3d6a52,'clickOutsideToClose':!![],'locals':{'type':_0x3ba985('0x2179'),'item':_0x34c097,'items':_0x165b7b[_0x3ba985('0x1261')],'configuration':_0x165b7b[_0x3ba985('0x271b')],'account':_0x165b7b[_0x3ba985('0x1e23')],'license':null,'setting':null,'crudPermissions':_0x165b7b[_0x3ba985('0x103e')]}});}function _0x205e93(_0x39d889){const _0x32fca0=_0x4a538b;_0xd5266b[_0x32fca0('0xbf2')][_0x32fca0('0x1da6')]({'id':_0x39d889['id']})['$promise'][_0x32fca0('0x17e7')](function(){const _0x1a87a3=_0x32fca0;_0x49cbdd()['remove'](_0x165b7b[_0x1a87a3('0x1261')],{'id':_0x39d889['id']}),_0x45a1d3[_0x1a87a3('0x130d')]({'title':_0x1a87a3('0x198'),'msg':_0x1a87a3('0x179c')});})[_0x32fca0('0x16df')](function(_0x29de3f){const _0x2bb037=_0x32fca0;_0x45a1d3[_0x2bb037('0x1db9')]({'title':_0x29de3f['status']?_0x2bb037('0x14f7')+_0x29de3f[_0x2bb037('0x11c5')]+_0x2bb037('0x16e4')+_0x29de3f[_0x2bb037('0x1833')]:_0x2bb037('0x14bd'),'msg':_0x29de3f[_0x2bb037('0x1457')]?JSON[_0x2bb037('0x678')](_0x29de3f['data']):_0x29de3f['toString']()});});}function _0x5b1311(_0x37f1d3,_0x20438a){const _0xdc0523=_0x4a538b,_0x5dec85=_0x56ce91[_0xdc0523('0x1121')]()['title'](_0xdc0523('0x1371'))['htmlContent'](_0xdc0523('0x694')+_0xdc0523('0xe9f'))[_0xdc0523('0x2095')]('delete\x20subject')[_0xdc0523('0x104f')](_0x37f1d3)['ok']('OK')[_0xdc0523('0x1d47')](_0xdc0523('0x28a0'));_0x56ce91[_0xdc0523('0x28e2')](_0x5dec85)[_0xdc0523('0x17e7')](function(){_0x205e93(_0x20438a);},function(){const _0xa6053d=_0xdc0523;console[_0xa6053d('0x1d63')](_0xa6053d('0x28a0'));});}function _0x5bfc05(_0x4abcf9){const _0x345a42=_0x4a538b,_0x2aadd8=_0x56ce91[_0x345a42('0x1121')]()['title'](_0x345a42('0xb0b'))[_0x345a42('0x211f')](_0x345a42('0xa53')+_0x165b7b[_0x345a42('0x95b')][_0x345a42('0x1f73')]+_0x345a42('0x145a')+_0x345a42('0xe9f'))[_0x345a42('0x2095')](_0x345a42('0x1bc'))['targetEvent'](_0x4abcf9)['ok']('OK')[_0x345a42('0x1d47')](_0x345a42('0x28a0'));_0x56ce91['show'](_0x2aadd8)['then'](function(){const _0x25aea1=_0x345a42;_0x165b7b[_0x25aea1('0x95b')][_0x25aea1('0xccd')](function(_0x3d5d7b){_0x205e93(_0x3d5d7b);}),_0x165b7b['selectedSubjects']=[];});}_0x165b7b[_0x4a538b('0xb0f')]=[],_0x165b7b[_0x4a538b('0x1ac8')]=_0xd5ba29,_0x165b7b['deleteDescriptionConfirm']=_0x5a2179,_0x165b7b['deleteSelectedDescriptions']=_0x3688ae;function _0xd5ba29(_0x2f18dd,_0x3b91e5){const _0x4945b1=_0x4a538b;_0x56ce91[_0x4945b1('0x28e2')]({'controller':_0x4945b1('0x1e06'),'controllerAs':'vm','templateUrl':_0x4ab3f7,'parent':angular[_0x4945b1('0x1ce1')](_0x5f3811[_0x4945b1('0x13aa')]),'targetEvent':_0x2f18dd,'clickOutsideToClose':!![],'locals':{'type':_0x4945b1('0x986'),'item':_0x3b91e5,'items':_0x165b7b['descriptions'],'configuration':_0x165b7b[_0x4945b1('0x271b')],'account':_0x165b7b[_0x4945b1('0x1e23')],'license':null,'setting':null,'crudPermissions':_0x165b7b[_0x4945b1('0x103e')]}});}function _0x2b732b(_0x1155c6){const _0x5f2399=_0x4a538b;_0xd5266b[_0x5f2399('0xbf2')][_0x5f2399('0x1da6')]({'id':_0x1155c6['id']})[_0x5f2399('0x1af5')][_0x5f2399('0x17e7')](function(){const _0x22372b=_0x5f2399;_0x49cbdd()[_0x22372b('0x5f3')](_0x165b7b[_0x22372b('0x1a2a')],{'id':_0x1155c6['id']}),_0x45a1d3['success']({'title':'Description\x20deleted!','msg':_0x22372b('0x56f')});})[_0x5f2399('0x16df')](function(_0x276143){const _0x1be075=_0x5f2399;_0x45a1d3[_0x1be075('0x1db9')]({'title':_0x276143[_0x1be075('0x11c5')]?'API:'+_0x276143[_0x1be075('0x11c5')]+_0x1be075('0x16e4')+_0x276143[_0x1be075('0x1833')]:_0x1be075('0x14bd'),'msg':_0x276143[_0x1be075('0x1457')]?JSON[_0x1be075('0x678')](_0x276143['data']):_0x276143[_0x1be075('0x9b6')]()});});}function _0x5a2179(_0x41021d,_0x2c71e8){const _0x543e18=_0x4a538b,_0x40a550=_0x56ce91[_0x543e18('0x1121')]()['title'](_0x543e18('0x2bb'))[_0x543e18('0x211f')]('Description'+_0x543e18('0xe9f'))[_0x543e18('0x2095')]('delete\x20description')[_0x543e18('0x104f')](_0x41021d)['ok']('OK')['cancel'](_0x543e18('0x28a0'));_0x56ce91[_0x543e18('0x28e2')](_0x40a550)[_0x543e18('0x17e7')](function(){_0x2b732b(_0x2c71e8);},function(){const _0x195a68=_0x543e18;console[_0x195a68('0x1d63')](_0x195a68('0x28a0'));});}function _0x3688ae(_0xc6e8b1){const _0x35f87=_0x4a538b,_0x46f7b5=_0x56ce91['confirm']()['title'](_0x35f87('0x12d4'))[_0x35f87('0x211f')](''+_0x165b7b[_0x35f87('0xb0f')][_0x35f87('0x1f73')]+_0x35f87('0x145a')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x35f87('0x1fb1'))['targetEvent'](_0xc6e8b1)['ok']('OK')[_0x35f87('0x1d47')](_0x35f87('0x28a0'));_0x56ce91['show'](_0x46f7b5)[_0x35f87('0x17e7')](function(){const _0x1ccbba=_0x35f87;_0x165b7b[_0x1ccbba('0xb0f')]['forEach'](function(_0x29f3ca){_0x2b732b(_0x29f3ca);}),_0x165b7b[_0x1ccbba('0xb0f')]=[];});}_0x165b7b['selectedFields']=[],_0x165b7b[_0x4a538b('0xc53')]=_0x105f24,_0x165b7b[_0x4a538b('0x7f5')]=_0x5ac2e6,_0x165b7b[_0x4a538b('0xd1b')]=_0x14906b;function _0x105f24(_0x567cee,_0x1a673a){const _0x2f6ab2=_0x4a538b;_0x56ce91[_0x2f6ab2('0x28e2')]({'controller':_0x2f6ab2('0x1e06'),'controllerAs':'vm','templateUrl':_0x4ab3f7,'parent':angular[_0x2f6ab2('0x1ce1')](_0x5f3811[_0x2f6ab2('0x13aa')]),'targetEvent':_0x567cee,'clickOutsideToClose':!![],'locals':{'type':_0x2f6ab2('0x1515'),'item':_0x1a673a,'items':_0x165b7b[_0x2f6ab2('0x9c9')],'configuration':_0x165b7b['freshdeskConfiguration'],'account':_0x165b7b['freshdeskAccount'],'license':null,'setting':null,'crudPermissions':_0x165b7b[_0x2f6ab2('0x103e')]}});}function _0x47a773(_0x5cf0d9){const _0x720cec=_0x4a538b;_0xd5266b[_0x720cec('0xbf2')][_0x720cec('0x1da6')]({'id':_0x5cf0d9['id']})['$promise'][_0x720cec('0x17e7')](function(){const _0x45c44a=_0x720cec;_0x49cbdd()['remove'](_0x165b7b[_0x45c44a('0x9c9')],{'id':_0x5cf0d9['id']}),_0x45a1d3[_0x45c44a('0x130d')]({'title':_0x45c44a('0x1605'),'msg':_0x45c44a('0xbb8')});})[_0x720cec('0x16df')](function(_0x3e5aae){const _0x558d48=_0x720cec;_0x45a1d3['error']({'title':_0x3e5aae[_0x558d48('0x11c5')]?_0x558d48('0x14f7')+_0x3e5aae[_0x558d48('0x11c5')]+_0x558d48('0x16e4')+_0x3e5aae[_0x558d48('0x1833')]:_0x558d48('0x14bd'),'msg':_0x3e5aae[_0x558d48('0x1457')]?JSON['stringify'](_0x3e5aae[_0x558d48('0x1457')]):_0x3e5aae['toString']()});});}function _0x5ac2e6(_0x216d0a,_0x4741ba){const _0x5326d8=_0x4a538b,_0x1bc7f3=_0x56ce91[_0x5326d8('0x1121')]()[_0x5326d8('0x24d3')](_0x5326d8('0x1d1f'))[_0x5326d8('0x211f')]('Field'+_0x5326d8('0xe9f'))[_0x5326d8('0x2095')](_0x5326d8('0x1f01'))['targetEvent'](_0x216d0a)['ok']('OK')['cancel']('CANCEL');_0x56ce91['show'](_0x1bc7f3)[_0x5326d8('0x17e7')](function(){_0x47a773(_0x4741ba);},function(){const _0x5b6524=_0x5326d8;console[_0x5b6524('0x1d63')](_0x5b6524('0x28a0'));});}function _0x14906b(_0x1b37c3){const _0x228441=_0x4a538b,_0x37afb7=_0x56ce91['confirm']()['title']('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x228441('0x211f')](_0x228441('0xa53')+_0x165b7b['selectedFields']['length']+_0x228441('0x145a')+_0x228441('0xe9f'))[_0x228441('0x2095')](_0x228441('0x15ee'))[_0x228441('0x104f')](_0x1b37c3)['ok']('OK')[_0x228441('0x1d47')](_0x228441('0x28a0'));_0x56ce91[_0x228441('0x28e2')](_0x37afb7)[_0x228441('0x17e7')](function(){const _0xe89d92=_0x228441;_0x165b7b[_0xe89d92('0xa2e')][_0xe89d92('0xccd')](function(_0x1ac1c5){_0x47a773(_0x1ac1c5);}),_0x165b7b[_0xe89d92('0xa2e')]=[];});}}const _0x59cf45=_0x1f3416;_0x1be4a8['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x11d0'),_0x4376d8('0x271b'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x1be4a8(_0x46d645,_0x1e2fb0,_0x1d2ba7,_0x4279cf,_0x2acece,_0x4a38c2,_0x59f59b,_0xbf7cc1,_0x382d8a,_0x497d9b,_0x5b16cd,_0x40df93,_0x113841,_0x2e2b95){const _0x396c8e=_0x4376d8,_0x1c831a=this;_0x1c831a[_0x396c8e('0x197c')]=_0x5b16cd[_0x396c8e('0x2831')](),_0x1c831a[_0x396c8e('0x73e')]=[],_0x1c831a[_0x396c8e('0x1aeb')]=_0x113841,_0x1c831a[_0x396c8e('0x1d11')]=_0x40df93,_0x1c831a[_0x396c8e('0x103e')]=_0x2e2b95,_0x1c831a[_0x396c8e('0x6ee')]={},_0x1c831a['passwordPattern']=_0x1c831a[_0x396c8e('0x1aeb')]&&_0x1c831a[_0x396c8e('0x1aeb')][_0x396c8e('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1c831a[_0x396c8e('0x24d3')]=_0x396c8e('0x2718'),_0x1c831a[_0x396c8e('0x271b')]=angular['copy'](_0x382d8a),_0x1c831a[_0x396c8e('0x11d0')]=_0xbf7cc1,_0x1c831a[_0x396c8e('0xb04')]=![];!_0x1c831a[_0x396c8e('0x271b')]&&(_0x1c831a[_0x396c8e('0x271b')]={'channel':_0x396c8e('0x1fe1'),'type':_0x396c8e('0x1e77')},_0x1c831a['title']=_0x396c8e('0x1914'),_0x1c831a[_0x396c8e('0xb04')]=!![]);_0x1c831a['addNewFreshdeskConfiguration']=_0x384d72,_0x1c831a[_0x396c8e('0x1c93')]=_0x333cc9,_0x1c831a[_0x396c8e('0x79d')]=_0x4ebf3d,_0x1c831a['getDateFromString']=_0x1ebd80,_0x1c831a[_0x396c8e('0x136e')]=_0x59ce2b;function _0x384d72(){const _0x1aff9f=_0x396c8e;_0x1c831a[_0x1aff9f('0x73e')]=[],_0x497d9b[_0x1aff9f('0x1190')][_0x1aff9f('0x5e0')]({'id':_0x1e2fb0[_0x1aff9f('0x16fb')]['id']},_0x1c831a['freshdeskConfiguration'])[_0x1aff9f('0x1af5')][_0x1aff9f('0x17e7')](function(_0x4dee01){const _0x4c453e=_0x1aff9f;_0x1c831a['configurations'][_0x4c453e('0x1893')](_0x4dee01['toJSON']()),_0x59f59b['success']({'title':'FreshdeskConfiguration\x20properly\x20created','msg':_0x1c831a[_0x4c453e('0x271b')][_0x4c453e('0x2aa')]?_0x1c831a[_0x4c453e('0x271b')][_0x4c453e('0x2aa')]+_0x4c453e('0x15a'):''}),_0x59ce2b(_0x4dee01);})[_0x1aff9f('0x16df')](function(_0x14e82e){const _0x4d0573=_0x1aff9f;if(_0x14e82e[_0x4d0573('0x1457')]&&_0x14e82e['data']['errors']&&_0x14e82e[_0x4d0573('0x1457')][_0x4d0573('0x73e')][_0x4d0573('0x1f73')]){_0x1c831a[_0x4d0573('0x73e')]=_0x14e82e[_0x4d0573('0x1457')][_0x4d0573('0x73e')]||[{'message':_0x14e82e[_0x4d0573('0x9b6')](),'type':'api.intFreshdeskConfiguration.save'}];for(let _0x5d1bc5=0x0;_0x5d1bc5<_0x14e82e[_0x4d0573('0x1457')][_0x4d0573('0x73e')][_0x4d0573('0x1f73')];_0x5d1bc5+=0x1){_0x59f59b[_0x4d0573('0x1db9')]({'title':_0x14e82e['data']['errors'][_0x5d1bc5][_0x4d0573('0x412')],'msg':_0x14e82e['data']['errors'][_0x5d1bc5]['message']});}}else _0x59f59b[_0x4d0573('0x1db9')]({'title':_0x14e82e['status']?_0x4d0573('0x14f7')+_0x14e82e[_0x4d0573('0x11c5')]+_0x4d0573('0x16e4')+_0x14e82e['statusText']:_0x4d0573('0x1af4'),'msg':_0x14e82e[_0x4d0573('0x1457')]?JSON[_0x4d0573('0x678')](_0x14e82e['data']['message']):_0x14e82e[_0x4d0573('0x9b6')]()});});}function _0x333cc9(){const _0x3ce8cd=_0x396c8e;_0x1c831a[_0x3ce8cd('0x73e')]=[],_0x497d9b['intFreshdeskConfiguration']['update']({'id':_0x1c831a[_0x3ce8cd('0x271b')]['id']},_0x1c831a[_0x3ce8cd('0x271b')])[_0x3ce8cd('0x1af5')][_0x3ce8cd('0x17e7')](function(_0xa31437){const _0x3fa654=_0x3ce8cd,_0x55e865=_0x49cbdd()[_0x3fa654('0xe8e')](_0x1c831a[_0x3fa654('0x11d0')],{'id':_0xa31437['id']});_0x55e865&&_0x49cbdd()[_0x3fa654('0x1ced')](_0x55e865,_0x49cbdd()['pick'](_0xa31437[_0x3fa654('0x16b2')](),_0x49cbdd()[_0x3fa654('0x1c0f')](_0x55e865))),_0x59f59b[_0x3fa654('0x130d')]({'title':_0x3fa654('0x90'),'msg':_0x1c831a[_0x3fa654('0x271b')][_0x3fa654('0x2aa')]?_0x1c831a[_0x3fa654('0x271b')][_0x3fa654('0x2aa')]+_0x3fa654('0x15ca'):''}),_0x59ce2b(_0xa31437);})[_0x3ce8cd('0x16df')](function(_0x303ae9){const _0x373012=_0x3ce8cd;if(_0x303ae9['data']&&_0x303ae9[_0x373012('0x1457')]['errors']&&_0x303ae9[_0x373012('0x1457')][_0x373012('0x73e')][_0x373012('0x1f73')]){_0x1c831a['errors']=_0x303ae9[_0x373012('0x1457')][_0x373012('0x73e')]||[{'message':_0x303ae9['toString'](),'type':'api.intFreshdeskConfiguration.update'}];for(let _0x2fbe5a=0x0;_0x2fbe5a<_0x303ae9[_0x373012('0x1457')]['errors']['length'];_0x2fbe5a++){_0x59f59b['error']({'title':_0x303ae9[_0x373012('0x1457')]['errors'][_0x2fbe5a][_0x373012('0x412')],'msg':_0x303ae9['data'][_0x373012('0x73e')][_0x2fbe5a][_0x373012('0x1603')]});}}else _0x59f59b['error']({'title':_0x303ae9['status']?_0x373012('0x14f7')+_0x303ae9[_0x373012('0x11c5')]+_0x373012('0x16e4')+_0x303ae9[_0x373012('0x1833')]:_0x373012('0x166e'),'msg':_0x303ae9[_0x373012('0x1457')]?JSON[_0x373012('0x678')](_0x303ae9['data'][_0x373012('0x1603')]):_0x303ae9['toString']()});});}function _0x4ebf3d(_0x4ee8cf){const _0x39621f=_0x396c8e;_0x1c831a[_0x39621f('0x73e')]=[];const _0x7da9d8=_0x4279cf[_0x39621f('0x1121')]()[_0x39621f('0x24d3')](_0x39621f('0x530'))[_0x39621f('0xd5')]('The\x20freshdeskConfiguration\x20will\x20be\x20deleted.')[_0x39621f('0x2095')]('Delete\x20FreshdeskConfiguration')['ok'](_0x39621f('0x304'))['cancel']('Cancel')['targetEvent'](_0x4ee8cf);_0x4279cf[_0x39621f('0x28e2')](_0x7da9d8)[_0x39621f('0x17e7')](function(){const _0x1afa82=_0x39621f;_0x497d9b[_0x1afa82('0x4c')]['delete']({'id':_0x1c831a[_0x1afa82('0x271b')]['id']})[_0x1afa82('0x1af5')]['then'](function(){const _0x2ebcd2=_0x1afa82;_0x49cbdd()['remove'](_0x1c831a['configurations'],{'id':_0x1c831a[_0x2ebcd2('0x271b')]['id']}),_0x59f59b[_0x2ebcd2('0x130d')]({'title':_0x2ebcd2('0x2733'),'msg':(_0x1c831a['freshdeskConfiguration'][_0x2ebcd2('0x2aa')]||_0x2ebcd2('0x271b'))+_0x2ebcd2('0x149f')}),_0x59ce2b(_0x1c831a[_0x2ebcd2('0x271b')]);})[_0x1afa82('0x16df')](function(_0xa3146e){const _0x2b5ade=_0x1afa82;if(_0xa3146e[_0x2b5ade('0x1457')]&&_0xa3146e[_0x2b5ade('0x1457')]['errors']&&_0xa3146e[_0x2b5ade('0x1457')][_0x2b5ade('0x73e')][_0x2b5ade('0x1f73')]){_0x1c831a['errors']=_0xa3146e[_0x2b5ade('0x1457')][_0x2b5ade('0x73e')]||[{'message':_0xa3146e[_0x2b5ade('0x9b6')](),'type':_0x2b5ade('0x1e70')}];for(let _0x52fa0a=0x0;_0x52fa0a<_0xa3146e[_0x2b5ade('0x1457')]['errors']['length'];_0x52fa0a++){_0x59f59b['error']({'title':_0xa3146e[_0x2b5ade('0x1457')][_0x2b5ade('0x73e')][_0x52fa0a][_0x2b5ade('0x412')],'msg':_0xa3146e[_0x2b5ade('0x1457')]['errors'][_0x52fa0a][_0x2b5ade('0x1603')]});}}else _0x59f59b[_0x2b5ade('0x1db9')]({'title':_0xa3146e[_0x2b5ade('0x11c5')]?_0x2b5ade('0x14f7')+_0xa3146e['status']+_0x2b5ade('0x16e4')+_0xa3146e[_0x2b5ade('0x1833')]:'api.intFreshdeskConfiguration.delete','msg':_0xa3146e[_0x2b5ade('0x1457')]?JSON[_0x2b5ade('0x678')](_0xa3146e[_0x2b5ade('0x1457')][_0x2b5ade('0x1603')]):_0xa3146e[_0x2b5ade('0x1603')]||_0xa3146e[_0x2b5ade('0x9b6')]()});});},function(){});}function _0x1ebd80(_0x4ae246){return _0x4ae246===null?undefined:new Date(_0x4ae246);}function _0x59ce2b(_0x41dab5){const _0x5a2612=_0x396c8e;_0x4279cf[_0x5a2612('0x212a')](_0x41dab5);}}const _0x1f4126=_0x1be4a8;_0x15439f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),'configuration',_0x4376d8('0x532'),_0x4376d8('0x28b8'),_0x4376d8('0x2679'),_0x4376d8('0x412'),'api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x15439f(_0x589887,_0x82410e,_0x52ecc4,_0x3d11e1,_0x5a6f36,_0x1ed634,_0x3bd4e2,_0x3f82f4,_0x9b6197,_0x43386a,_0x1dd14e,_0xca554c,_0x7459d){const _0x203d78=_0x4376d8,_0x552dbd=this;_0x552dbd[_0x203d78('0x197c')]=_0xca554c[_0x203d78('0x2831')](),_0x552dbd[_0x203d78('0x73e')]=[],_0x552dbd[_0x203d78('0x24d3')]=_0x203d78('0x9dd')+_0x49cbdd()[_0x203d78('0x286f')](_0x43386a),_0x552dbd['item']=angular[_0x203d78('0x14e5')](_0x3f82f4),_0x552dbd[_0x203d78('0x532')]=_0x3bd4e2,_0x552dbd['type']=_0x43386a,_0x552dbd[_0x203d78('0x103e')]=_0x7459d,_0x552dbd[_0x203d78('0x1ac5')]=![];!_0x552dbd[_0x203d78('0x28b8')]&&(_0x552dbd['item']={'type':_0x203d78('0x1783')},_0x552dbd['item'][_0x49cbdd()[_0x203d78('0xb41')](_0x43386a)+'Id']=_0x1ed634['id'],_0x552dbd['title']=_0x203d78('0x6fe')+_0x49cbdd()['toUpper'](_0x43386a),_0x552dbd[_0x203d78('0x1ac5')]=!![]);_0x552dbd['addNewItem']=_0xf4876b,_0x552dbd['saveItem']=_0x25a7e8,_0x552dbd[_0x203d78('0x1350')]=_0x4c0826,_0x552dbd[_0x203d78('0x140a')]=_0x1211da,_0x552dbd[_0x203d78('0x136e')]=_0x1a6b4a,_0x1dd14e[_0x203d78('0xb0a')][_0x203d78('0x1c53')]({'nolimit':!![]})['$promise']['then'](function(_0x20d366){const _0x2ce265=_0x203d78;return _0x552dbd[_0x2ce265('0xd26')]=_0x20d366[_0x2ce265('0x2319')]?_0x20d366[_0x2ce265('0x2319')]:[],_0x1dd14e[_0x2ce265('0x770')][_0x2ce265('0x2234')]()['$promise'];})[_0x203d78('0x17e7')](function(_0x324e84){const _0x42c326=_0x203d78;return _0x552dbd[_0x42c326('0x217b')]=_0x49cbdd()['difference'](_0x49cbdd()[_0x42c326('0x1c0f')](_0x324e84),[_0x42c326('0x1af5'),_0x42c326('0x1314'),_0x42c326('0x7c9'),_0x42c326('0xb8a'),_0x42c326('0x1c59')]),_0x552dbd[_0x42c326('0x217b')][_0x42c326('0x269f')]('recordingURL'),_0x1dd14e['voiceDialReport']['describe']()[_0x42c326('0x1af5')];})[_0x203d78('0x17e7')](function(_0x42c67a){const _0x4e79b7=_0x203d78;_0x552dbd['voiceDialReportColumns']=_0x49cbdd()['difference'](_0x49cbdd()[_0x4e79b7('0x1c0f')](_0x42c67a),[_0x4e79b7('0x1af5'),_0x4e79b7('0x1314'),_0x4e79b7('0x7c9'),_0x4e79b7('0xb8a'),_0x4e79b7('0x1c59')]),_0x552dbd[_0x4e79b7('0xe00')][_0x4e79b7('0x269f')](_0x4e79b7('0x1bea'));})[_0x203d78('0x16df')](function(_0x37ea1e){const _0xa02919=_0x203d78;_0x5a6f36['error']({'title':_0x37ea1e[_0xa02919('0x11c5')]?'API:'+_0x37ea1e[_0xa02919('0x11c5')]+'\x20-\x20'+_0x37ea1e['statusText']:_0xa02919('0x3a9'),'msg':_0x37ea1e['data']?JSON[_0xa02919('0x678')](_0x37ea1e['data']):_0x37ea1e[_0xa02919('0x9b6')]()});}),_0x1dd14e[_0x203d78('0x1190')][_0x203d78('0x9a')]({'id':_0x9b6197['id'],'ticketType':_0x1ed634[_0x203d78('0x148e')]?_0x1ed634['ticketType']:undefined})[_0x203d78('0x1af5')]['then'](function(_0x1e7865){const _0x31d341=_0x203d78;_0x552dbd['accountConnected']=!![],_0x552dbd['fields']=_0x1e7865[_0x31d341('0x2319')]?_0x1e7865[_0x31d341('0x2319')]:[],_0x552dbd[_0x31d341('0x28b8')][_0x31d341('0x8d8')]&&(_0x552dbd[_0x31d341('0x1fa4')]=_0x49cbdd()[_0x31d341('0xe8e')](_0x552dbd[_0x31d341('0x9c9')],{'id':_0x552dbd['item'][_0x31d341('0x8d8')]}));})[_0x203d78('0x16df')](function(_0x196200){const _0x3ba517=_0x203d78;_0x552dbd[_0x3ba517('0x20c2')]=![],console[_0x3ba517('0x1db9')](_0x196200);});function _0xf4876b(){const _0x25a810=_0x203d78;_0x552dbd[_0x25a810('0x73e')]=[],_0x552dbd[_0x25a810('0x1fa4')]&&(_0x552dbd[_0x25a810('0x28b8')][_0x25a810('0x8d8')]=_0x552dbd['customField']['id'],_0x552dbd[_0x25a810('0x28b8')][_0x25a810('0x1a12')]=_0x552dbd[_0x25a810('0x1fa4')][_0x25a810('0x2aa')],_0x552dbd['item'][_0x25a810('0x1fa4')]=_0x552dbd[_0x25a810('0x1fa4')]['custom']),_0x1dd14e[_0x25a810('0xbf2')][_0x25a810('0x2439')](_0x552dbd['item'])['$promise'][_0x25a810('0x17e7')](function(_0x5f38bf){const _0x4d041f=_0x25a810;_0x552dbd[_0x4d041f('0x532')][_0x4d041f('0x1893')](_0x5f38bf),_0x5a6f36['success']({'title':_0x49cbdd()[_0x4d041f('0xb41')](_0x43386a)+'\x20properly\x20created','msg':_0x49cbdd()[_0x4d041f('0xb41')](_0x43386a)+_0x4d041f('0x15a')}),_0x1a6b4a();})[_0x25a810('0x16df')](function(_0x161f91){const _0x46603b=_0x25a810;console[_0x46603b('0x1db9')](_0x161f91),_0x552dbd['errors']=_0x161f91[_0x46603b('0x1457')][_0x46603b('0x73e')]||[{'message':_0x161f91['toString'](),'type':_0x46603b('0xbe0')}];});}function _0x25a7e8(){const _0x52d1e0=_0x203d78;_0x552dbd['errors']=[],_0x552dbd[_0x52d1e0('0x1fa4')]&&(_0x552dbd[_0x52d1e0('0x28b8')]['idField']=_0x552dbd[_0x52d1e0('0x1fa4')]['id'],_0x552dbd['item'][_0x52d1e0('0x1a12')]=_0x552dbd[_0x52d1e0('0x1fa4')][_0x52d1e0('0x2aa')],_0x552dbd['item'][_0x52d1e0('0x1fa4')]=_0x552dbd['customField']['custom']),_0x1dd14e[_0x52d1e0('0xbf2')]['update']({'id':_0x552dbd[_0x52d1e0('0x28b8')]['id']},_0x552dbd[_0x52d1e0('0x28b8')])[_0x52d1e0('0x1af5')][_0x52d1e0('0x17e7')](function(_0x3c191b){const _0x142002=_0x52d1e0,_0x323350=_0x49cbdd()[_0x142002('0xe8e')](_0x552dbd['items'],{'id':_0x3c191b['id']});_0x323350&&_0x49cbdd()[_0x142002('0x1ced')](_0x323350,_0x3c191b),_0x5a6f36[_0x142002('0x130d')]({'title':_0x49cbdd()[_0x142002('0xb41')](_0x43386a)+'\x20properly\x20saved!','msg':_0x49cbdd()[_0x142002('0xb41')](_0x43386a)+'\x20has\x20been\x20saved!'}),_0x1a6b4a();})[_0x52d1e0('0x16df')](function(_0x1b8f69){const _0x53bd47=_0x52d1e0;console[_0x53bd47('0x1db9')](_0x1b8f69),_0x552dbd[_0x53bd47('0x73e')]=_0x1b8f69[_0x53bd47('0x1457')][_0x53bd47('0x73e')]||[{'message':_0x1b8f69[_0x53bd47('0x9b6')](),'type':_0x53bd47('0x428')}];});}function _0x4c0826(_0x2646cf){const _0x2d67db=_0x203d78;_0x552dbd[_0x2d67db('0x73e')]=[];const _0x486c76=_0x3d11e1[_0x2d67db('0x1121')]()[_0x2d67db('0x24d3')](_0x2d67db('0x530'))[_0x2d67db('0xd5')](_0x2d67db('0x1664')+_0x43386a+_0x2d67db('0xe9f'))[_0x2d67db('0x2095')](_0x2d67db('0x1aaa')+_0x49cbdd()['capitalize'](_0x43386a))['ok'](_0x2d67db('0x304'))[_0x2d67db('0x1d47')](_0x2d67db('0x1b70'))[_0x2d67db('0x104f')](_0x2646cf);_0x3d11e1[_0x2d67db('0x28e2')](_0x486c76)[_0x2d67db('0x17e7')](function(){const _0x2dfa11=_0x2d67db;_0x1dd14e[_0x2dfa11('0xbf2')]['delete']({'id':_0x552dbd[_0x2dfa11('0x28b8')]['id']})[_0x2dfa11('0x1af5')][_0x2dfa11('0x17e7')](function(){const _0x5bfc5d=_0x2dfa11;_0x49cbdd()['remove'](_0x552dbd['items'],{'id':_0x552dbd[_0x5bfc5d('0x28b8')]['id']}),_0x5a6f36[_0x5bfc5d('0x130d')]({'title':_0x49cbdd()[_0x5bfc5d('0xb41')](_0x43386a)+_0x5bfc5d('0x253a'),'msg':_0x49cbdd()['capitalize'](_0x43386a)+_0x5bfc5d('0x149f')}),_0x1a6b4a();})['catch'](function(_0x433675){const _0xe93cd9=_0x2dfa11;console[_0xe93cd9('0x1db9')](_0x433675),_0x552dbd[_0xe93cd9('0x73e')]=_0x433675['data']['errors']||[{'message':_0x433675[_0xe93cd9('0x9b6')](),'type':_0xe93cd9('0x2220')}];});},function(){});}function _0x1211da(){const _0x136ec3=_0x203d78;return _0x552dbd[_0x136ec3('0x28b8')][_0x136ec3('0x4fd')]!==undefined?_0x552dbd[_0x136ec3('0x28b8')]['variableName']:_0x136ec3('0x2588');}function _0x1a6b4a(){const _0x4b0af2=_0x203d78;_0x3d11e1[_0x4b0af2('0x212a')]();}}const _0x1126f7=_0x15439f;_0x3b606a[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1e23'),_0x4376d8('0x383')];function _0x3b606a(_0x4f3c28,_0x633a60,_0x5c49af,_0xd17de9,_0x498e65,_0x48bf16,_0x111312,_0x87aeb6,_0x40593f,_0x237dc2,_0x334c58,_0x56fad7){const _0x183d28=_0x4376d8,_0x265fb9=this;_0x265fb9['currentUser']=_0x237dc2[_0x183d28('0x2831')](),_0x265fb9[_0x183d28('0x1d11')]=_0x48bf16,_0x265fb9['setting']=_0x111312,_0x265fb9[_0x183d28('0x1572')]=_0x265fb9[_0x183d28('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x265fb9[_0x183d28('0xaed')]=_0x633a60[_0x183d28('0x14fe')]()+_0x183d28('0x14')+_0x633a60['host'](),_0x265fb9['freshdeskAccount']=_0x334c58||_0x4f3c28['params'][_0x183d28('0x1e23')]||{},_0x265fb9[_0x183d28('0x383')]=_0x56fad7&&_0x56fad7[_0x183d28('0x335')]==0x1?_0x56fad7['rows'][0x0]:null,_0x265fb9[_0x183d28('0x103e')]=_0x237dc2[_0x183d28('0x17a9')](_0x265fb9[_0x183d28('0x383')]?_0x265fb9[_0x183d28('0x383')][_0x183d28('0x103e')]:null),_0x265fb9[_0x183d28('0x6ee')]={},_0x265fb9['selectedTab']=_0x4f3c28[_0x183d28('0x16fb')]['tab']||0x0,_0x265fb9['alert']=_0x40593f[_0x183d28('0x1178')],_0x265fb9['gotoFreshdeskAccounts']=_0x1afe15,_0x265fb9[_0x183d28('0x1d7c')]=_0x616418;function _0x1afe15(){const _0x29b4c0=_0x183d28;_0x4f3c28['go'](_0x29b4c0('0x23c8'),{},{'reload':'app.integrations.freshdeskAccounts'});}function _0x616418(){const _0x2db997=_0x183d28;_0x87aeb6['intFreshdeskAccount'][_0x2db997('0x27ba')]({'id':_0x265fb9[_0x2db997('0x1e23')]['id']},_0x265fb9[_0x2db997('0x1e23')])[_0x2db997('0x1af5')][_0x2db997('0x17e7')](function(){const _0x4c8e67=_0x2db997;_0x40593f[_0x4c8e67('0x130d')]({'title':'FreshdeskAccount\x20updated!','msg':_0x265fb9[_0x4c8e67('0x1e23')]['name']?_0x265fb9['freshdeskAccount']['name']+'\x20has\x20been\x20updated!':''});})[_0x2db997('0x16df')](function(_0x567228){const _0x42421f=_0x2db997;_0x40593f[_0x42421f('0x1db9')]({'title':_0x567228[_0x42421f('0x11c5')]?_0x42421f('0x14f7')+_0x567228['status']+_0x42421f('0x16e4')+_0x567228[_0x42421f('0x1833')]:_0x42421f('0x54c'),'msg':_0x567228[_0x42421f('0x1457')]?JSON[_0x42421f('0x678')](_0x567228[_0x42421f('0x1457')]):_0x567228[_0x42421f('0x9b6')]()});});}}const _0x16f815=_0x3b606a,_0x511aa6=_0x4cf2bc['p']+_0x4376d8('0x1276');_0x4dce90[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0xdab'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x4dce90(_0x120da5,_0x51c822,_0x3063ab,_0x27b0c8,_0x1ddfb0,_0x215082,_0x58d317,_0xa7c91d,_0x326dc3,_0x314c8a,_0x256db2,_0x5c7ab0,_0x553a16,_0x1d90ff,_0x99777,_0x54d1b0,_0x2f39db){const _0x5acfe3=_0x4376d8,_0x11ee14=this;_0x11ee14[_0x5acfe3('0x1d11')]=_0x54d1b0,_0x11ee14['setting']=_0x2f39db,_0x11ee14[_0x5acfe3('0x197c')]=_0x99777[_0x5acfe3('0x2831')](),_0x11ee14[_0x5acfe3('0xdab')]=_0x326dc3||{'count':0x0,'rows':[]},_0x11ee14[_0x5acfe3('0xdeb')]=_0x314c8a,_0x11ee14[_0x5acfe3('0x383')]=_0x256db2&&_0x256db2[_0x5acfe3('0x335')]==0x1?_0x256db2[_0x5acfe3('0x2319')][0x0]:null,_0x11ee14['crudPermissions']=_0x99777[_0x5acfe3('0x17a9')](_0x11ee14[_0x5acfe3('0x383')]?_0x11ee14['userProfileSection'][_0x5acfe3('0x103e')]:null),_0x11ee14[_0x5acfe3('0x23c3')]=_0x5acfe3('0xdab'),_0x11ee14['listOrder']='',_0x11ee14[_0x5acfe3('0x24e1')]=null,_0x11ee14[_0x5acfe3('0x1575')]=[],_0x11ee14[_0x5acfe3('0x826')]={'fields':_0x5acfe3('0x4ca'),'limit':0xa,'page':0x1},_0x11ee14['editstate']=_0x38a845,_0x11ee14[_0x5acfe3('0xf3a')]=_0x554796,_0x11ee14[_0x5acfe3('0xbf4')]=_0x283bff,_0x11ee14['success']=_0x2d919a,_0x11ee14['getFreshdeskAccounts']=_0x11a255,_0x11ee14[_0x5acfe3('0x819')]=_0x2e3dbe,_0x11ee14['deleteFreshdeskAccount']=_0x3c17d0,_0x11ee14['exportSelectedFreshdeskAccounts']=_0x451880,_0x11ee14[_0x5acfe3('0xfbf')]=_0x1b200c,_0x11ee14[_0x5acfe3('0x21de')]=_0x1928cd,_0x11ee14['selectAllFreshdeskAccounts']=_0x59c468;function _0x38a845(_0x1149d6){const _0x47364c=_0x5acfe3;_0x3063ab['go']('app.integrations.freshdeskAccounts.edit',{'id':_0x1149d6['id'],'freshdeskAccount':_0x1149d6,'crudPermissions':_0x11ee14[_0x47364c('0x103e')]});}function _0x554796(_0x142e6f){const _0x5e43f5=_0x5acfe3;return _0x5c7ab0[_0x5e43f5('0x1190')][_0x5e43f5('0x9a')]({'id':_0x142e6f['id'],'test':!![]})['$promise'][_0x5e43f5('0x17e7')](function(){const _0x41741a=_0x5e43f5;_0x1d90ff['success']({'title':_0x41741a('0x1eec'),'msg':_0x41741a('0x120d')});})['catch'](function(_0x39ce95){const _0x505fe3=_0x5e43f5;_0x1d90ff[_0x505fe3('0x1db9')]({'title':_0x505fe3('0x1eec'),'msg':_0x39ce95['data']?_0x39ce95[_0x505fe3('0x1457')][_0x505fe3('0x1603')]?_0x39ce95[_0x505fe3('0x1457')][_0x505fe3('0x1603')]:JSON['stringify'](_0x39ce95[_0x505fe3('0x1457')]):_0x39ce95[_0x505fe3('0x9b6')]()});});}function _0x283bff(_0x12404f,_0x580baa){const _0x52420f=_0x5acfe3,_0x1fb4e9=_0x1ddfb0['confirm']()[_0x52420f('0x24d3')](_0x52420f('0x5e1')+_0x49cbdd()['startCase'](_0x52420f('0x1e23'))+'?')[_0x52420f('0x211f')](_0x52420f('0xa53')+(_0x12404f[_0x52420f('0x2aa')]||_0x52420f('0x1e23'))+_0x52420f('0x1d23')+'\x20will\x20be\x20deleted.')[_0x52420f('0x2095')](_0x52420f('0x2ef'))[_0x52420f('0x104f')](_0x580baa)['ok']('OK')[_0x52420f('0x1d47')](_0x52420f('0x28a0'));_0x1ddfb0[_0x52420f('0x28e2')](_0x1fb4e9)[_0x52420f('0x17e7')](function(){_0x3c17d0(_0x12404f);},function(){const _0x573614=_0x52420f;console[_0x573614('0x1d63')]('CANCEL');});}let _0x19ed15=!![],_0x203678=0x1;_0x120da5[_0x5acfe3('0x620')]('vm.query.filter',function(_0x274cf1,_0x313bd2){const _0xd7ae8a=_0x5acfe3;_0x19ed15?_0x58d317(function(){_0x19ed15=![];}):(!_0x313bd2&&(_0x203678=_0x11ee14[_0xd7ae8a('0x826')][_0xd7ae8a('0x115a')]),_0x274cf1!==_0x313bd2&&(_0x11ee14[_0xd7ae8a('0x826')][_0xd7ae8a('0x115a')]=0x1),!_0x274cf1&&(_0x11ee14['query'][_0xd7ae8a('0x115a')]=_0x203678),_0x11ee14[_0xd7ae8a('0xbbf')]());});function _0x2d919a(_0x50a6cd){const _0x56ace1=_0x5acfe3;_0x11ee14[_0x56ace1('0xdab')]=_0x50a6cd||{'count':0x0,'rows':[]};}function _0x11a255(){const _0x256b6f=_0x5acfe3;_0x11ee14['query'][_0x256b6f('0xf19')]=(_0x11ee14[_0x256b6f('0x826')][_0x256b6f('0x115a')]-0x1)*_0x11ee14[_0x256b6f('0x826')][_0x256b6f('0x193b')],_0x99777['hasRole'](_0x256b6f('0x20bf'))?_0x11ee14[_0x256b6f('0x1691')]=_0x5c7ab0['intFreshdeskAccount'][_0x256b6f('0x1c53')](_0x11ee14[_0x256b6f('0x826')],_0x2d919a)[_0x256b6f('0x1af5')]:(_0x11ee14[_0x256b6f('0x826')]['id']=_0x11ee14['userProfile']['id'],_0x11ee14['query']['section']=_0x256b6f('0x1e8e'),_0x11ee14[_0x256b6f('0x1691')]=_0x5c7ab0[_0x256b6f('0xdeb')][_0x256b6f('0x2447')](_0x11ee14['query'],_0x2d919a)[_0x256b6f('0x1af5')]);}function _0x2e3dbe(_0x5023a1,_0x45602c){const _0x4aa395=_0x5acfe3;_0x1ddfb0['show']({'controller':_0x4aa395('0x17c0'),'controllerAs':'vm','templateUrl':_0x511aa6,'parent':angular[_0x4aa395('0x1ce1')](_0x215082['body']),'targetEvent':_0x5023a1,'clickOutsideToClose':!![],'locals':{'freshdeskAccount':_0x45602c,'freshdeskAccounts':_0x11ee14['freshdeskAccounts']['rows'],'license':_0x11ee14[_0x4aa395('0x1d11')],'setting':_0x11ee14[_0x4aa395('0x1aeb')],'crudPermissions':_0x11ee14[_0x4aa395('0x103e')]}});}function _0x3c17d0(_0x596cbe){const _0x1f1d15=_0x5acfe3;_0x5c7ab0[_0x1f1d15('0x1190')][_0x1f1d15('0x1da6')]({'id':_0x596cbe['id']})[_0x1f1d15('0x1af5')][_0x1f1d15('0x17e7')](function(){const _0xddae19=_0x1f1d15;_0x49cbdd()[_0xddae19('0x5f3')](_0x11ee14[_0xddae19('0xdab')][_0xddae19('0x2319')],{'id':_0x596cbe['id']}),_0x11ee14[_0xddae19('0xdab')][_0xddae19('0x335')]-=0x1,!_0x11ee14[_0xddae19('0xdab')][_0xddae19('0x2319')]['length']&&_0x11ee14[_0xddae19('0xbbf')](),_0x1d90ff[_0xddae19('0x130d')]({'title':_0x49cbdd()[_0xddae19('0x1c98')](_0xddae19('0x1d2b'))+'\x20deleted!','msg':_0x596cbe['name']?_0x596cbe[_0xddae19('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x1f1d15('0x16df')](function(_0x568a97){const _0x58b103=_0x1f1d15;if(_0x568a97['data']&&_0x568a97['data']['errors']&&_0x568a97[_0x58b103('0x1457')]['errors'][_0x58b103('0x1f73')]){_0x11ee14['errors']=_0x568a97['data'][_0x58b103('0x73e')]||[{'message':_0x568a97[_0x58b103('0x9b6')](),'type':_0x58b103('0x1af8')}];for(let _0x2f8bae=0x0;_0x2f8bae<_0x568a97[_0x58b103('0x1457')]['errors'][_0x58b103('0x1f73')];_0x2f8bae++){_0x1d90ff[_0x58b103('0x1db9')]({'title':_0x568a97['data'][_0x58b103('0x73e')][_0x2f8bae][_0x58b103('0x412')],'msg':_0x568a97[_0x58b103('0x1457')][_0x58b103('0x73e')][_0x2f8bae][_0x58b103('0x1603')]});}}else _0x1d90ff[_0x58b103('0x1db9')]({'title':_0x568a97[_0x58b103('0x11c5')]?_0x58b103('0x14f7')+_0x568a97[_0x58b103('0x11c5')]+_0x58b103('0x16e4')+_0x568a97[_0x58b103('0x1833')]:_0x58b103('0x1af8'),'msg':_0x568a97[_0x58b103('0x1457')]?JSON[_0x58b103('0x678')](_0x568a97[_0x58b103('0x1457')][_0x58b103('0x1603')]):_0x568a97[_0x58b103('0x1603')]||_0x568a97[_0x58b103('0x9b6')]()});});}function _0x451880(){const _0x4facd2=_0x5acfe3,_0x507ae7=angular[_0x4facd2('0x14e5')](_0x11ee14[_0x4facd2('0x1575')]);return _0x11ee14[_0x4facd2('0x1575')]=[],_0x507ae7;}function _0x1b200c(_0x4a307a){const _0x4286c5=_0x5acfe3,_0x3e10cc=_0x1ddfb0[_0x4286c5('0x1121')]()[_0x4286c5('0x24d3')](_0x4286c5('0x1cfa'))[_0x4286c5('0x211f')](_0x4286c5('0xa53')+_0x11ee14['selectedFreshdeskAccounts'][_0x4286c5('0x1f73')]+'\x20selected'+'\x20will\x20be\x20deleted.')[_0x4286c5('0x2095')](_0x4286c5('0xd6b'))[_0x4286c5('0x104f')](_0x4a307a)['ok']('OK')[_0x4286c5('0x1d47')]('CANCEL');_0x1ddfb0['show'](_0x3e10cc)['then'](function(){const _0x243dc9=_0x4286c5;_0x11ee14[_0x243dc9('0x1575')][_0x243dc9('0xccd')](function(_0x213da6){_0x3c17d0(_0x213da6);}),_0x11ee14[_0x243dc9('0x1575')]=[];});}function _0x1928cd(){const _0x1b0482=_0x5acfe3;_0x11ee14[_0x1b0482('0x1575')]=[];}function _0x59c468(){const _0x3b504d=_0x5acfe3;_0x11ee14[_0x3b504d('0x1575')]=_0x11ee14[_0x3b504d('0xdab')][_0x3b504d('0x2319')];}}const _0x48f374=_0x4dce90;_0x5239fb[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x19e5'),'freshsalesAccount',_0x4376d8('0x212e'),'Auth','license','setting',_0x4376d8('0x103e')];function _0x5239fb(_0x257a62,_0x4bab56,_0x40eba7,_0x32b92a,_0xf407bc,_0x4eb324,_0x1b54b9,_0x5208dd,_0x5597f7,_0xed0eec,_0x5665f5,_0xfa92f1,_0x40a6f9,_0x3ffdf2){const _0x36c82d=_0x4376d8,_0x32b424=this;_0x32b424[_0x36c82d('0x197c')]=_0x5665f5[_0x36c82d('0x2831')](),_0x32b424['errors']=[],_0x32b424[_0x36c82d('0x1aeb')]=_0x40a6f9,_0x32b424[_0x36c82d('0x1d11')]=_0xfa92f1,_0x32b424['crudPermissions']=_0x3ffdf2,_0x32b424[_0x36c82d('0x6ee')]={},_0x32b424[_0x36c82d('0x1572')]=_0x32b424['setting']&&_0x32b424['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32b424['title']=_0x36c82d('0x1735'),_0x32b424[_0x36c82d('0x10ef')]=angular['copy'](_0x5597f7),_0x32b424[_0x36c82d('0x19e5')]=_0x5208dd,_0x32b424[_0x36c82d('0x398')]=![];!_0x32b424['freshsalesAccount']&&(_0x32b424[_0x36c82d('0x10ef')]={'serverUrl':_0x40eba7[_0x36c82d('0x14fe')]()+'://'+_0x40eba7[_0x36c82d('0x108')]()+(_0x40eba7[_0x36c82d('0x2442')]()?':'+_0x40eba7[_0x36c82d('0x2442')]():'')},_0x32b424[_0x36c82d('0x24d3')]=_0x36c82d('0x15ff'),_0x32b424['newFreshsalesAccount']=!![]);_0x32b424['addNewFreshsalesAccount']=_0x41aae4,_0x32b424[_0x36c82d('0x10ab')]=_0x1bb9b7,_0x32b424[_0x36c82d('0x109c')]=_0x43d98d,_0x32b424[_0x36c82d('0x1300')]=_0x4e03f3,_0x32b424[_0x36c82d('0x136e')]=_0x14deca;function _0x41aae4(){const _0xef7601=_0x36c82d;_0x32b424[_0xef7601('0x73e')]=[],_0xed0eec[_0xef7601('0x13e5')][_0xef7601('0x2439')](_0x32b424[_0xef7601('0x10ef')])['$promise']['then'](function(_0x1d86d9){const _0x2f6aa2=_0xef7601;_0x32b424[_0x2f6aa2('0x19e5')]['unshift'](_0x1d86d9['toJSON']()),_0x1b54b9['success']({'title':_0x2f6aa2('0x3da'),'msg':_0x32b424['freshsalesAccount'][_0x2f6aa2('0x2aa')]?_0x32b424[_0x2f6aa2('0x10ef')][_0x2f6aa2('0x2aa')]+_0x2f6aa2('0x15a'):''}),_0x14deca(_0x1d86d9);})[_0xef7601('0x16df')](function(_0x20840c){const _0x5e55df=_0xef7601;if(_0x20840c[_0x5e55df('0x1457')]&&_0x20840c[_0x5e55df('0x1457')][_0x5e55df('0x73e')]&&_0x20840c[_0x5e55df('0x1457')]['errors'][_0x5e55df('0x1f73')]){_0x32b424[_0x5e55df('0x73e')]=_0x20840c[_0x5e55df('0x1457')][_0x5e55df('0x73e')]||[{'message':_0x20840c[_0x5e55df('0x9b6')](),'type':_0x5e55df('0x2267')}];for(let _0x56cb9c=0x0;_0x56cb9c<_0x20840c['data'][_0x5e55df('0x73e')][_0x5e55df('0x1f73')];_0x56cb9c+=0x1){_0x1b54b9['error']({'title':_0x20840c[_0x5e55df('0x1457')][_0x5e55df('0x73e')][_0x56cb9c][_0x5e55df('0x412')],'msg':_0x20840c[_0x5e55df('0x1457')][_0x5e55df('0x73e')][_0x56cb9c]['message']});}}else _0x1b54b9['error']({'title':_0x20840c[_0x5e55df('0x11c5')]?_0x5e55df('0x14f7')+_0x20840c[_0x5e55df('0x11c5')]+'\x20-\x20'+_0x20840c[_0x5e55df('0x1833')]:_0x5e55df('0x2267'),'msg':_0x20840c[_0x5e55df('0x1457')]?JSON[_0x5e55df('0x678')](_0x20840c[_0x5e55df('0x1457')]['message']):_0x20840c[_0x5e55df('0x9b6')]()});});}function _0x1bb9b7(){const _0x1406fc=_0x36c82d;_0x32b424[_0x1406fc('0x73e')]=[],_0xed0eec[_0x1406fc('0x13e5')][_0x1406fc('0x27ba')]({'id':_0x32b424[_0x1406fc('0x10ef')]['id']},_0x32b424[_0x1406fc('0x10ef')])[_0x1406fc('0x1af5')][_0x1406fc('0x17e7')](function(_0x33ca94){const _0x2d7f27=_0x1406fc,_0x189de3=_0x49cbdd()[_0x2d7f27('0xe8e')](_0x32b424['freshsalesAccounts'],{'id':_0x33ca94['id']});_0x189de3&&_0x49cbdd()[_0x2d7f27('0x1ced')](_0x189de3,_0x49cbdd()['pick'](_0x33ca94['toJSON'](),_0x49cbdd()[_0x2d7f27('0x1c0f')](_0x189de3))),_0x1b54b9[_0x2d7f27('0x130d')]({'title':'FreshsalesAccount\x20properly\x20saved!','msg':_0x32b424[_0x2d7f27('0x10ef')][_0x2d7f27('0x2aa')]?_0x32b424[_0x2d7f27('0x10ef')][_0x2d7f27('0x2aa')]+_0x2d7f27('0x15ca'):''}),_0x14deca(_0x33ca94);})[_0x1406fc('0x16df')](function(_0x38bb38){const _0x212743=_0x1406fc;if(_0x38bb38[_0x212743('0x1457')]&&_0x38bb38[_0x212743('0x1457')]['errors']&&_0x38bb38[_0x212743('0x1457')][_0x212743('0x73e')]['length']){_0x32b424['errors']=_0x38bb38[_0x212743('0x1457')][_0x212743('0x73e')]||[{'message':_0x38bb38[_0x212743('0x9b6')](),'type':_0x212743('0x2e6')}];for(let _0x8330a4=0x0;_0x8330a4<_0x38bb38[_0x212743('0x1457')]['errors']['length'];_0x8330a4++){_0x1b54b9[_0x212743('0x1db9')]({'title':_0x38bb38['data'][_0x212743('0x73e')][_0x8330a4]['type'],'msg':_0x38bb38[_0x212743('0x1457')][_0x212743('0x73e')][_0x8330a4][_0x212743('0x1603')]});}}else _0x1b54b9[_0x212743('0x1db9')]({'title':_0x38bb38[_0x212743('0x11c5')]?'API:'+_0x38bb38['status']+_0x212743('0x16e4')+_0x38bb38[_0x212743('0x1833')]:_0x212743('0x2e6'),'msg':_0x38bb38[_0x212743('0x1457')]?JSON['stringify'](_0x38bb38[_0x212743('0x1457')][_0x212743('0x1603')]):_0x38bb38[_0x212743('0x9b6')]()});});}function _0x43d98d(_0x14551b){const _0x407cb1=_0x36c82d;_0x32b424[_0x407cb1('0x73e')]=[];const _0x39ee25=_0x32b92a[_0x407cb1('0x1121')]()['title'](_0x407cb1('0x530'))[_0x407cb1('0xd5')](_0x407cb1('0x997'))[_0x407cb1('0x2095')](_0x407cb1('0x1daf'))['ok'](_0x407cb1('0x304'))[_0x407cb1('0x1d47')](_0x407cb1('0x1b70'))[_0x407cb1('0x104f')](_0x14551b);_0x32b92a['show'](_0x39ee25)['then'](function(){const _0x12a4b4=_0x407cb1;_0xed0eec[_0x12a4b4('0x13e5')][_0x12a4b4('0x1da6')]({'id':_0x32b424[_0x12a4b4('0x10ef')]['id']})[_0x12a4b4('0x1af5')][_0x12a4b4('0x17e7')](function(){const _0x3c0637=_0x12a4b4;_0x49cbdd()[_0x3c0637('0x5f3')](_0x32b424[_0x3c0637('0x19e5')],{'id':_0x32b424[_0x3c0637('0x10ef')]['id']}),_0x1b54b9[_0x3c0637('0x130d')]({'title':_0x3c0637('0xfd9'),'msg':(_0x32b424[_0x3c0637('0x10ef')]['name']||'freshsalesAccount')+_0x3c0637('0x149f')}),_0x14deca(_0x32b424['freshsalesAccount']);})['catch'](function(_0x20bce5){const _0xae0e7b=_0x12a4b4;if(_0x20bce5[_0xae0e7b('0x1457')]&&_0x20bce5[_0xae0e7b('0x1457')][_0xae0e7b('0x73e')]&&_0x20bce5['data'][_0xae0e7b('0x73e')][_0xae0e7b('0x1f73')]){_0x32b424['errors']=_0x20bce5[_0xae0e7b('0x1457')][_0xae0e7b('0x73e')]||[{'message':_0x20bce5[_0xae0e7b('0x9b6')](),'type':_0xae0e7b('0x117e')}];for(let _0x2906ce=0x0;_0x2906ce<_0x20bce5['data'][_0xae0e7b('0x73e')][_0xae0e7b('0x1f73')];_0x2906ce++){_0x1b54b9[_0xae0e7b('0x1db9')]({'title':_0x20bce5[_0xae0e7b('0x1457')][_0xae0e7b('0x73e')][_0x2906ce][_0xae0e7b('0x412')],'msg':_0x20bce5[_0xae0e7b('0x1457')][_0xae0e7b('0x73e')][_0x2906ce][_0xae0e7b('0x1603')]});}}else _0x1b54b9[_0xae0e7b('0x1db9')]({'title':_0x20bce5['status']?_0xae0e7b('0x14f7')+_0x20bce5[_0xae0e7b('0x11c5')]+_0xae0e7b('0x16e4')+_0x20bce5['statusText']:'api.intFreshsalesAccount.delete','msg':_0x20bce5[_0xae0e7b('0x1457')]?JSON['stringify'](_0x20bce5['data']['message']):_0x20bce5[_0xae0e7b('0x1603')]||_0x20bce5[_0xae0e7b('0x9b6')]()});});},function(){});}function _0x4e03f3(_0x39a96b){return _0x39a96b===null?undefined:new Date(_0x39a96b);}function _0x14deca(_0x59b18b){const _0x1f467a=_0x36c82d;_0x32b92a[_0x1f467a('0x212a')](_0x59b18b);}}const _0x130d5b=_0x5239fb,_0x28fc5d=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/freshsalesAccounts/edit/configurations/dialog.html/dialog.html',_0x38ede9=_0x4cf2bc['p']+_0x4376d8('0x224b');_0x49fef0[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x49fef0(_0x9fe1b3,_0x2b48d7,_0x5ae9e4,_0x282d1f,_0x45b90e){const _0x19e3b6=_0x4376d8,_0x478b1c=this;_0x478b1c['currentUser']=_0x45b90e[_0x19e3b6('0x2831')](),_0x478b1c[_0x19e3b6('0x10ef')]={},_0x478b1c[_0x19e3b6('0x10e9')]={},_0x478b1c['configurations']=[],_0x478b1c[_0x19e3b6('0x2013')]=-0x1,_0x478b1c[_0x19e3b6('0x103e')],_0x478b1c[_0x19e3b6('0x161d')]=_0x1e9fea,_0x478b1c[_0x19e3b6('0x9fe')]=_0xe631bd,_0x478b1c[_0x19e3b6('0x1c32')]=_0x4e71f0,_0x478b1c[_0x19e3b6('0x1da4')]=_0x258c01;function _0x1e9fea(_0x262af5,_0x51adea){const _0x357e90=_0x19e3b6;_0x478b1c[_0x357e90('0x10ef')]=_0x262af5,_0x478b1c[_0x357e90('0x103e')]=typeof _0x51adea!==_0x357e90('0xfad')?_0x51adea:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5ae9e4[_0x357e90('0x13e5')]['getConfigurations']({'id':_0x478b1c[_0x357e90('0x10ef')]['id'],'sort':_0x357e90('0x1ac6')})[_0x357e90('0x1af5')][_0x357e90('0x17e7')](function(_0x3088c6){const _0xe2873a=_0x357e90;return _0x478b1c['configurations']=_0x3088c6[_0xe2873a('0x2319')]?_0x3088c6[_0xe2873a('0x2319')]:[],_0x478b1c[_0xe2873a('0x11d0')][_0xe2873a('0x1f73')]&&_0x478b1c[_0xe2873a('0x9fe')](0x0),_0x5ae9e4[_0xe2873a('0xb0a')][_0xe2873a('0x1c53')]({'nolimit':!![],'sort':_0xe2873a('0x2aa')})[_0xe2873a('0x1af5')];})[_0x357e90('0x17e7')](function(_0x50fddc){const _0x66ff13=_0x357e90;_0x478b1c[_0x66ff13('0xd26')]=_0x50fddc[_0x66ff13('0x2319')]?_0x50fddc[_0x66ff13('0x2319')]:[],_0x478b1c[_0x66ff13('0x214d')]=_0x49cbdd()[_0x66ff13('0x8de')](_0x478b1c['variables'],'id');})[_0x357e90('0x16df')](function(_0x41357a){const _0x28b62f=_0x357e90;_0x282d1f['error']({'title':_0x41357a[_0x28b62f('0x11c5')]?_0x28b62f('0x14f7')+_0x41357a['status']+'\x20-\x20'+_0x41357a['statusText']:_0x28b62f('0x183b'),'msg':_0x41357a[_0x28b62f('0x1457')]?JSON[_0x28b62f('0x678')](_0x41357a[_0x28b62f('0x1457')]):_0x41357a['toString']()});});}function _0xe631bd(_0xc779b9){const _0x23ffb8=_0x19e3b6;_0x478b1c[_0x23ffb8('0x10e9')]=_0x478b1c['configurations'][_0xc779b9],_0x478b1c['selectedFreshsalesConfiguration']=_0xc779b9,_0x5ae9e4['intFreshsalesConfiguration'][_0x23ffb8('0x94e')]({'id':_0x478b1c[_0x23ffb8('0x10e9')]['id']})[_0x23ffb8('0x1af5')][_0x23ffb8('0x17e7')](function(_0x46bb45){const _0x5d0d88=_0x23ffb8;return _0x478b1c[_0x5d0d88('0x1261')]=_0x46bb45[_0x5d0d88('0x2319')]?_0x46bb45['rows']:[],_0x5ae9e4[_0x5d0d88('0xda9')][_0x5d0d88('0x24c7')]({'id':_0x478b1c[_0x5d0d88('0x10e9')]['id']})['$promise'];})[_0x23ffb8('0x17e7')](function(_0x5684c4){const _0x19ab06=_0x23ffb8;return _0x478b1c['descriptions']=_0x5684c4['rows']?_0x5684c4['rows']:[],_0x5ae9e4[_0x19ab06('0xda9')][_0x19ab06('0x9a')]({'id':_0x478b1c[_0x19ab06('0x10e9')]['id']})[_0x19ab06('0x1af5')];})[_0x23ffb8('0x17e7')](function(_0x5b072c){const _0x1f8e8b=_0x23ffb8;_0x478b1c[_0x1f8e8b('0x9c9')]=_0x5b072c[_0x1f8e8b('0x2319')]?_0x5b072c['rows']:[];})[_0x23ffb8('0x16df')](function(_0x58175b){const _0x3549ec=_0x23ffb8;_0x282d1f['error']({'title':_0x58175b[_0x3549ec('0x11c5')]?_0x3549ec('0x14f7')+_0x58175b['status']+_0x3549ec('0x16e4')+_0x58175b[_0x3549ec('0x1833')]:_0x3549ec('0x23be'),'msg':_0x58175b[_0x3549ec('0x1457')]?JSON['stringify'](_0x58175b[_0x3549ec('0x1457')]):_0x58175b[_0x3549ec('0x9b6')]()});});}function _0x4e71f0(_0x2141f6,_0x16a22b){const _0x446c76=_0x19e3b6;_0x9fe1b3['show']({'controller':_0x446c76('0x1607'),'controllerAs':'vm','templateUrl':_0x28fc5d,'parent':angular['element'](_0x2b48d7[_0x446c76('0x13aa')]),'targetEvent':_0x2141f6,'clickOutsideToClose':!![],'locals':{'freshsalesConfiguration':_0x16a22b,'configurations':_0x478b1c[_0x446c76('0x11d0')],'license':null,'setting':null,'crudPermissions':_0x478b1c['crudPermissions']}})[_0x446c76('0x74e')](function(){const _0xbf369=_0x446c76;_0x478b1c[_0xbf369('0x9fe')](0x0);});}function _0x258c01(_0x845b77,_0xb4b510){const _0x44857d=_0x19e3b6,_0x52c231=_0x9fe1b3[_0x44857d('0x1121')]()[_0x44857d('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20freshsalesConfiguration?')[_0x44857d('0x211f')](''+(_0xb4b510[_0x44857d('0x2aa')]||_0x44857d('0x10e9'))+_0x44857d('0x1d23')+_0x44857d('0xe9f'))[_0x44857d('0x2095')]('delete\x20freshsalesConfiguration')[_0x44857d('0x104f')](_0x845b77)['ok']('OK')[_0x44857d('0x1d47')]('CANCEL');_0x9fe1b3['show'](_0x52c231)[_0x44857d('0x17e7')](function(){const _0x505e92=_0x44857d;_0x5ae9e4[_0x505e92('0xda9')][_0x505e92('0x1da6')]({'id':_0xb4b510['id']})[_0x505e92('0x1af5')][_0x505e92('0x17e7')](function(){const _0x4d2280=_0x505e92;_0x49cbdd()[_0x4d2280('0x5f3')](_0x478b1c[_0x4d2280('0x11d0')],{'id':_0xb4b510['id']}),_0x282d1f['success']({'title':_0x4d2280('0x3b2'),'msg':_0xb4b510[_0x4d2280('0x2aa')]?_0xb4b510['name']+_0x4d2280('0x149f'):''});})['catch'](function(_0x13a6b){const _0x1f5dda=_0x505e92;_0x282d1f[_0x1f5dda('0x1db9')]({'title':_0x13a6b[_0x1f5dda('0x11c5')]?'API:'+_0x13a6b[_0x1f5dda('0x11c5')]+_0x1f5dda('0x16e4')+_0x13a6b[_0x1f5dda('0x1833')]:'SYSTEM:DELETECONFIGURATION','msg':_0x13a6b[_0x1f5dda('0x1457')]?JSON[_0x1f5dda('0x678')](_0x13a6b[_0x1f5dda('0x1457')]):_0x13a6b[_0x1f5dda('0x9b6')]()});})[_0x505e92('0x74e')](function(){const _0x53e3f8=_0x505e92;_0x478b1c[_0x53e3f8('0x9fe')](0x0);});},function(){const _0x2608c6=_0x44857d;console['log'](_0x2608c6('0x28a0'));});}_0x478b1c[_0x19e3b6('0x95b')]=[],_0x478b1c[_0x19e3b6('0x1066')]=_0x223507,_0x478b1c[_0x19e3b6('0x268a')]=_0x34495f,_0x478b1c[_0x19e3b6('0x2738')]=_0x19d5a0;function _0x223507(_0x1604ab,_0x2d99e2){const _0x10f398=_0x19e3b6;_0x9fe1b3[_0x10f398('0x28e2')]({'controller':'CreateOrEditFreshsalesAccountItemDialogController','controllerAs':'vm','templateUrl':_0x38ede9,'parent':angular[_0x10f398('0x1ce1')](_0x2b48d7[_0x10f398('0x13aa')]),'targetEvent':_0x1604ab,'clickOutsideToClose':!![],'locals':{'type':_0x10f398('0x2179'),'item':_0x2d99e2,'items':_0x478b1c['subjects'],'configuration':_0x478b1c[_0x10f398('0x10e9')],'account':_0x478b1c['freshsalesAccount'],'license':null,'setting':null,'crudPermissions':_0x478b1c[_0x10f398('0x103e')]}});}function _0x3e4634(_0x1e3fb6){const _0xedf56b=_0x19e3b6;_0x5ae9e4[_0xedf56b('0x2278')][_0xedf56b('0x1da6')]({'id':_0x1e3fb6['id']})['$promise'][_0xedf56b('0x17e7')](function(){const _0x2b97d9=_0xedf56b;_0x49cbdd()[_0x2b97d9('0x5f3')](_0x478b1c[_0x2b97d9('0x1261')],{'id':_0x1e3fb6['id']}),_0x282d1f[_0x2b97d9('0x130d')]({'title':_0x2b97d9('0x198'),'msg':'Subject\x20has\x20been\x20deleted!'});})[_0xedf56b('0x16df')](function(_0x4715e2){const _0x552454=_0xedf56b;_0x282d1f[_0x552454('0x1db9')]({'title':_0x4715e2[_0x552454('0x11c5')]?_0x552454('0x14f7')+_0x4715e2['status']+_0x552454('0x16e4')+_0x4715e2['statusText']:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x4715e2[_0x552454('0x1457')]?JSON['stringify'](_0x4715e2[_0x552454('0x1457')]):_0x4715e2['toString']()});});}function _0x34495f(_0x316888,_0x3309e1){const _0x22cda6=_0x19e3b6,_0x19adde=_0x9fe1b3['confirm']()[_0x22cda6('0x24d3')](_0x22cda6('0x1371'))[_0x22cda6('0x211f')](_0x22cda6('0x694')+_0x22cda6('0xe9f'))[_0x22cda6('0x2095')](_0x22cda6('0x16d1'))['targetEvent'](_0x316888)['ok']('OK')['cancel'](_0x22cda6('0x28a0'));_0x9fe1b3[_0x22cda6('0x28e2')](_0x19adde)[_0x22cda6('0x17e7')](function(){_0x3e4634(_0x3309e1);},function(){const _0x2a1520=_0x22cda6;console['log'](_0x2a1520('0x28a0'));});}function _0x19d5a0(_0x41bf67){const _0x2592bb=_0x19e3b6,_0x5a8ca4=_0x9fe1b3[_0x2592bb('0x1121')]()[_0x2592bb('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0x2592bb('0x211f')](_0x2592bb('0xa53')+_0x478b1c['selectedSubjects']['length']+_0x2592bb('0x145a')+_0x2592bb('0xe9f'))[_0x2592bb('0x2095')](_0x2592bb('0x1bc'))['targetEvent'](_0x41bf67)['ok']('OK')['cancel'](_0x2592bb('0x28a0'));_0x9fe1b3[_0x2592bb('0x28e2')](_0x5a8ca4)[_0x2592bb('0x17e7')](function(){const _0xff4101=_0x2592bb;_0x478b1c['selectedSubjects'][_0xff4101('0xccd')](function(_0x10fac7){_0x3e4634(_0x10fac7);}),_0x478b1c[_0xff4101('0x95b')]=[];});}_0x478b1c[_0x19e3b6('0xb0f')]=[],_0x478b1c[_0x19e3b6('0x1ac8')]=_0x193bfe,_0x478b1c[_0x19e3b6('0x178')]=_0x569a88,_0x478b1c[_0x19e3b6('0xe42')]=_0x419cd7;function _0x193bfe(_0x4fdc0c,_0x43bc7b){const _0x27ca56=_0x19e3b6;_0x9fe1b3['show']({'controller':_0x27ca56('0x1c2c'),'controllerAs':'vm','templateUrl':_0x38ede9,'parent':angular[_0x27ca56('0x1ce1')](_0x2b48d7[_0x27ca56('0x13aa')]),'targetEvent':_0x4fdc0c,'clickOutsideToClose':!![],'locals':{'type':_0x27ca56('0x986'),'item':_0x43bc7b,'items':_0x478b1c[_0x27ca56('0x1a2a')],'configuration':_0x478b1c[_0x27ca56('0x10e9')],'account':_0x478b1c[_0x27ca56('0x10ef')],'license':null,'setting':null,'crudPermissions':_0x478b1c['crudPermissions']}});}function _0x552fb8(_0x489acb){const _0xc0f458=_0x19e3b6;_0x5ae9e4[_0xc0f458('0x2278')]['delete']({'id':_0x489acb['id']})['$promise'][_0xc0f458('0x17e7')](function(){const _0x415b8c=_0xc0f458;_0x49cbdd()[_0x415b8c('0x5f3')](_0x478b1c[_0x415b8c('0x1a2a')],{'id':_0x489acb['id']}),_0x282d1f['success']({'title':_0x415b8c('0x1504'),'msg':_0x415b8c('0x56f')});})[_0xc0f458('0x16df')](function(_0x54896f){const _0x5c9552=_0xc0f458;_0x282d1f[_0x5c9552('0x1db9')]({'title':_0x54896f['status']?'API:'+_0x54896f[_0x5c9552('0x11c5')]+_0x5c9552('0x16e4')+_0x54896f[_0x5c9552('0x1833')]:_0x5c9552('0x14bd'),'msg':_0x54896f[_0x5c9552('0x1457')]?JSON[_0x5c9552('0x678')](_0x54896f[_0x5c9552('0x1457')]):_0x54896f[_0x5c9552('0x9b6')]()});});}function _0x569a88(_0x47a344,_0x493b15){const _0x2499c1=_0x19e3b6,_0x43dfd3=_0x9fe1b3[_0x2499c1('0x1121')]()[_0x2499c1('0x24d3')](_0x2499c1('0x2bb'))[_0x2499c1('0x211f')](_0x2499c1('0x217a')+'\x20will\x20be\x20deleted.')[_0x2499c1('0x2095')](_0x2499c1('0x1cf7'))['targetEvent'](_0x47a344)['ok']('OK')[_0x2499c1('0x1d47')](_0x2499c1('0x28a0'));_0x9fe1b3[_0x2499c1('0x28e2')](_0x43dfd3)[_0x2499c1('0x17e7')](function(){_0x552fb8(_0x493b15);},function(){const _0x4ba599=_0x2499c1;console[_0x4ba599('0x1d63')](_0x4ba599('0x28a0'));});}function _0x419cd7(_0x538cdc){const _0x129233=_0x19e3b6,_0x2b6548=_0x9fe1b3[_0x129233('0x1121')]()[_0x129233('0x24d3')](_0x129233('0x12d4'))['htmlContent'](_0x129233('0xa53')+_0x478b1c[_0x129233('0xb0f')][_0x129233('0x1f73')]+_0x129233('0x145a')+_0x129233('0xe9f'))['ariaLabel'](_0x129233('0x1fb1'))[_0x129233('0x104f')](_0x538cdc)['ok']('OK')['cancel']('CANCEL');_0x9fe1b3[_0x129233('0x28e2')](_0x2b6548)[_0x129233('0x17e7')](function(){const _0x3f9ee0=_0x129233;_0x478b1c[_0x3f9ee0('0xb0f')][_0x3f9ee0('0xccd')](function(_0x3fd7f0){_0x552fb8(_0x3fd7f0);}),_0x478b1c[_0x3f9ee0('0xb0f')]=[];});}_0x478b1c['selectedFields']=[],_0x478b1c[_0x19e3b6('0xc53')]=_0x885ade,_0x478b1c['deleteFieldConfirm']=_0x5d9081,_0x478b1c[_0x19e3b6('0xd1b')]=_0x1ab90d;function _0x885ade(_0x15a04a,_0x4569b4){const _0x34932f=_0x19e3b6;_0x9fe1b3['show']({'controller':_0x34932f('0x1c2c'),'controllerAs':'vm','templateUrl':_0x38ede9,'parent':angular['element'](_0x2b48d7[_0x34932f('0x13aa')]),'targetEvent':_0x15a04a,'clickOutsideToClose':!![],'locals':{'type':_0x34932f('0x1515'),'item':_0x4569b4,'items':_0x478b1c['fields'],'configuration':_0x478b1c[_0x34932f('0x10e9')],'account':_0x478b1c[_0x34932f('0x10ef')],'license':null,'setting':null,'crudPermissions':_0x478b1c['crudPermissions']}});}function _0x500db7(_0x163fd8){const _0x5de550=_0x19e3b6;_0x5ae9e4[_0x5de550('0x2278')][_0x5de550('0x1da6')]({'id':_0x163fd8['id']})[_0x5de550('0x1af5')][_0x5de550('0x17e7')](function(){const _0x5a5867=_0x5de550;_0x49cbdd()[_0x5a5867('0x5f3')](_0x478b1c[_0x5a5867('0x9c9')],{'id':_0x163fd8['id']}),_0x282d1f[_0x5a5867('0x130d')]({'title':_0x5a5867('0x1605'),'msg':_0x5a5867('0xbb8')});})[_0x5de550('0x16df')](function(_0x1f7c03){const _0x53fe36=_0x5de550;_0x282d1f[_0x53fe36('0x1db9')]({'title':_0x1f7c03['status']?'API:'+_0x1f7c03[_0x53fe36('0x11c5')]+_0x53fe36('0x16e4')+_0x1f7c03[_0x53fe36('0x1833')]:_0x53fe36('0x14bd'),'msg':_0x1f7c03['data']?JSON[_0x53fe36('0x678')](_0x1f7c03[_0x53fe36('0x1457')]):_0x1f7c03[_0x53fe36('0x9b6')]()});});}function _0x5d9081(_0x1499e9,_0x22f0bc){const _0x208443=_0x19e3b6,_0x47fcd5=_0x9fe1b3[_0x208443('0x1121')]()[_0x208443('0x24d3')](_0x208443('0x1d1f'))[_0x208443('0x211f')](_0x208443('0x23ff')+_0x208443('0xe9f'))[_0x208443('0x2095')](_0x208443('0x1f01'))[_0x208443('0x104f')](_0x1499e9)['ok']('OK')[_0x208443('0x1d47')](_0x208443('0x28a0'));_0x9fe1b3['show'](_0x47fcd5)['then'](function(){_0x500db7(_0x22f0bc);},function(){const _0x4df344=_0x208443;console[_0x4df344('0x1d63')](_0x4df344('0x28a0'));});}function _0x1ab90d(_0x164365){const _0x10c3dd=_0x19e3b6,_0x3d55ab=_0x9fe1b3['confirm']()[_0x10c3dd('0x24d3')](_0x10c3dd('0x1fdd'))['htmlContent'](_0x10c3dd('0xa53')+_0x478b1c['selectedFields'][_0x10c3dd('0x1f73')]+_0x10c3dd('0x145a')+_0x10c3dd('0xe9f'))[_0x10c3dd('0x2095')](_0x10c3dd('0x15ee'))['targetEvent'](_0x164365)['ok']('OK')[_0x10c3dd('0x1d47')](_0x10c3dd('0x28a0'));_0x9fe1b3['show'](_0x3d55ab)[_0x10c3dd('0x17e7')](function(){const _0x5e6450=_0x10c3dd;_0x478b1c['selectedFields']['forEach'](function(_0x3157f2){_0x500db7(_0x3157f2);}),_0x478b1c[_0x5e6450('0xa2e')]=[];});}}const _0x2b181e=_0x49fef0;_0x159e97[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x11d0'),_0x4376d8('0x10e9'),'api',_0x4376d8('0x1885'),'license','setting',_0x4376d8('0x103e')];function _0x159e97(_0x5afff6,_0x2da722,_0x55dcd3,_0xb4ffac,_0x1f8dde,_0x2ab4c9,_0x584a8a,_0x438415,_0x3f4d77,_0x39992a,_0x3b97a5,_0x1e73f4,_0x541e93,_0x43f00f){const _0x397e7f=_0x4376d8,_0x411e14=this;_0x411e14[_0x397e7f('0x197c')]=_0x3b97a5[_0x397e7f('0x2831')](),_0x411e14['errors']=[],_0x411e14[_0x397e7f('0x1aeb')]=_0x541e93,_0x411e14[_0x397e7f('0x1d11')]=_0x1e73f4,_0x411e14[_0x397e7f('0x103e')]=_0x43f00f,_0x411e14[_0x397e7f('0x6ee')]={},_0x411e14['passwordPattern']=_0x411e14[_0x397e7f('0x1aeb')]&&_0x411e14[_0x397e7f('0x1aeb')][_0x397e7f('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x411e14[_0x397e7f('0x24d3')]=_0x397e7f('0x2c2'),_0x411e14[_0x397e7f('0x10e9')]=angular[_0x397e7f('0x14e5')](_0x3f4d77),_0x411e14['configurations']=_0x438415,_0x411e14[_0x397e7f('0x14c5')]=![];!_0x411e14['freshsalesConfiguration']&&(_0x411e14[_0x397e7f('0x10e9')]={'channel':'voice','type':_0x397e7f('0x1e77')},_0x411e14[_0x397e7f('0x24d3')]=_0x397e7f('0x7c1'),_0x411e14['newFreshsalesConfiguration']=!![]);_0x411e14[_0x397e7f('0x19a5')]=_0x479447,_0x411e14['saveFreshsalesConfiguration']=_0x14d069,_0x411e14['deleteFreshsalesConfiguration']=_0x14ed82,_0x411e14[_0x397e7f('0x1300')]=_0x1480f,_0x411e14['closeDialog']=_0x355ec5;function _0x479447(){const _0x519dbe=_0x397e7f;_0x411e14[_0x519dbe('0x73e')]=[],_0x39992a[_0x519dbe('0x13e5')]['addConfiguration']({'id':_0x2da722[_0x519dbe('0x16fb')]['id']},_0x411e14['freshsalesConfiguration'])[_0x519dbe('0x1af5')][_0x519dbe('0x17e7')](function(_0x5d054a){const _0x37f668=_0x519dbe;_0x411e14[_0x37f668('0x11d0')][_0x37f668('0x1893')](_0x5d054a[_0x37f668('0x16b2')]()),_0x584a8a[_0x37f668('0x130d')]({'title':_0x37f668('0xb4e'),'msg':_0x411e14[_0x37f668('0x10e9')][_0x37f668('0x2aa')]?_0x411e14['freshsalesConfiguration']['name']+'\x20has\x20been\x20created!':''}),_0x355ec5(_0x5d054a);})[_0x519dbe('0x16df')](function(_0x580cc2){const _0x139a6b=_0x519dbe;if(_0x580cc2[_0x139a6b('0x1457')]&&_0x580cc2[_0x139a6b('0x1457')][_0x139a6b('0x73e')]&&_0x580cc2['data'][_0x139a6b('0x73e')]['length']){_0x411e14['errors']=_0x580cc2[_0x139a6b('0x1457')][_0x139a6b('0x73e')]||[{'message':_0x580cc2[_0x139a6b('0x9b6')](),'type':'api.intFreshsalesConfiguration.save'}];for(let _0x2d0ca2=0x0;_0x2d0ca2<_0x580cc2['data'][_0x139a6b('0x73e')]['length'];_0x2d0ca2+=0x1){_0x584a8a[_0x139a6b('0x1db9')]({'title':_0x580cc2[_0x139a6b('0x1457')][_0x139a6b('0x73e')][_0x2d0ca2][_0x139a6b('0x412')],'msg':_0x580cc2[_0x139a6b('0x1457')][_0x139a6b('0x73e')][_0x2d0ca2][_0x139a6b('0x1603')]});}}else _0x584a8a[_0x139a6b('0x1db9')]({'title':_0x580cc2[_0x139a6b('0x11c5')]?_0x139a6b('0x14f7')+_0x580cc2[_0x139a6b('0x11c5')]+_0x139a6b('0x16e4')+_0x580cc2[_0x139a6b('0x1833')]:_0x139a6b('0x9d3'),'msg':_0x580cc2[_0x139a6b('0x1457')]?JSON[_0x139a6b('0x678')](_0x580cc2['data'][_0x139a6b('0x1603')]):_0x580cc2[_0x139a6b('0x9b6')]()});});}function _0x14d069(){const _0x302d3b=_0x397e7f;_0x411e14[_0x302d3b('0x73e')]=[],_0x39992a[_0x302d3b('0xda9')][_0x302d3b('0x27ba')]({'id':_0x411e14[_0x302d3b('0x10e9')]['id']},_0x411e14[_0x302d3b('0x10e9')])[_0x302d3b('0x1af5')]['then'](function(_0x222731){const _0x307ffd=_0x302d3b,_0x3d6c7d=_0x49cbdd()[_0x307ffd('0xe8e')](_0x411e14[_0x307ffd('0x11d0')],{'id':_0x222731['id']});_0x3d6c7d&&_0x49cbdd()['merge'](_0x3d6c7d,_0x49cbdd()[_0x307ffd('0x230a')](_0x222731[_0x307ffd('0x16b2')](),_0x49cbdd()['keys'](_0x3d6c7d))),_0x584a8a[_0x307ffd('0x130d')]({'title':_0x307ffd('0x1ef6'),'msg':_0x411e14[_0x307ffd('0x10e9')][_0x307ffd('0x2aa')]?_0x411e14['freshsalesConfiguration'][_0x307ffd('0x2aa')]+_0x307ffd('0x15ca'):''}),_0x355ec5(_0x222731);})[_0x302d3b('0x16df')](function(_0x37a881){const _0x377d84=_0x302d3b;if(_0x37a881[_0x377d84('0x1457')]&&_0x37a881[_0x377d84('0x1457')]['errors']&&_0x37a881['data'][_0x377d84('0x73e')][_0x377d84('0x1f73')]){_0x411e14[_0x377d84('0x73e')]=_0x37a881[_0x377d84('0x1457')][_0x377d84('0x73e')]||[{'message':_0x37a881[_0x377d84('0x9b6')](),'type':_0x377d84('0x657')}];for(let _0x160994=0x0;_0x160994<_0x37a881[_0x377d84('0x1457')][_0x377d84('0x73e')][_0x377d84('0x1f73')];_0x160994++){_0x584a8a[_0x377d84('0x1db9')]({'title':_0x37a881['data'][_0x377d84('0x73e')][_0x160994][_0x377d84('0x412')],'msg':_0x37a881[_0x377d84('0x1457')][_0x377d84('0x73e')][_0x160994][_0x377d84('0x1603')]});}}else _0x584a8a['error']({'title':_0x37a881[_0x377d84('0x11c5')]?'API:'+_0x37a881['status']+_0x377d84('0x16e4')+_0x37a881['statusText']:_0x377d84('0x657'),'msg':_0x37a881['data']?JSON[_0x377d84('0x678')](_0x37a881['data'][_0x377d84('0x1603')]):_0x37a881[_0x377d84('0x9b6')]()});});}function _0x14ed82(_0x55bf74){const _0x4963cb=_0x397e7f;_0x411e14['errors']=[];const _0x4a6fae=_0xb4ffac[_0x4963cb('0x1121')]()[_0x4963cb('0x24d3')](_0x4963cb('0x530'))[_0x4963cb('0xd5')](_0x4963cb('0x133a'))[_0x4963cb('0x2095')](_0x4963cb('0xdd1'))['ok']('Delete')['cancel']('Cancel')[_0x4963cb('0x104f')](_0x55bf74);_0xb4ffac[_0x4963cb('0x28e2')](_0x4a6fae)[_0x4963cb('0x17e7')](function(){const _0x7ae7ca=_0x4963cb;_0x39992a[_0x7ae7ca('0xda9')][_0x7ae7ca('0x1da6')]({'id':_0x411e14[_0x7ae7ca('0x10e9')]['id']})[_0x7ae7ca('0x1af5')][_0x7ae7ca('0x17e7')](function(){const _0x370778=_0x7ae7ca;_0x49cbdd()[_0x370778('0x5f3')](_0x411e14[_0x370778('0x11d0')],{'id':_0x411e14[_0x370778('0x10e9')]['id']}),_0x584a8a[_0x370778('0x130d')]({'title':'FreshsalesConfiguration\x20properly\x20deleted!','msg':(_0x411e14['freshsalesConfiguration'][_0x370778('0x2aa')]||_0x370778('0x10e9'))+'\x20has\x20been\x20deleted!'}),_0x355ec5(_0x411e14[_0x370778('0x10e9')]);})[_0x7ae7ca('0x16df')](function(_0x403e06){const _0x541e15=_0x7ae7ca;if(_0x403e06[_0x541e15('0x1457')]&&_0x403e06[_0x541e15('0x1457')][_0x541e15('0x73e')]&&_0x403e06[_0x541e15('0x1457')][_0x541e15('0x73e')]['length']){_0x411e14[_0x541e15('0x73e')]=_0x403e06['data'][_0x541e15('0x73e')]||[{'message':_0x403e06[_0x541e15('0x9b6')](),'type':_0x541e15('0x899')}];for(let _0x3780b7=0x0;_0x3780b7<_0x403e06[_0x541e15('0x1457')][_0x541e15('0x73e')][_0x541e15('0x1f73')];_0x3780b7++){_0x584a8a[_0x541e15('0x1db9')]({'title':_0x403e06[_0x541e15('0x1457')][_0x541e15('0x73e')][_0x3780b7][_0x541e15('0x412')],'msg':_0x403e06[_0x541e15('0x1457')][_0x541e15('0x73e')][_0x3780b7][_0x541e15('0x1603')]});}}else _0x584a8a['error']({'title':_0x403e06[_0x541e15('0x11c5')]?_0x541e15('0x14f7')+_0x403e06['status']+_0x541e15('0x16e4')+_0x403e06[_0x541e15('0x1833')]:'api.intFreshsalesConfiguration.delete','msg':_0x403e06[_0x541e15('0x1457')]?JSON[_0x541e15('0x678')](_0x403e06['data'][_0x541e15('0x1603')]):_0x403e06['message']||_0x403e06[_0x541e15('0x9b6')]()});});},function(){});}function _0x1480f(_0x22ca9f){return _0x22ca9f===null?undefined:new Date(_0x22ca9f);}function _0x355ec5(_0x5b70ad){const _0x1f0a6c=_0x397e7f;_0xb4ffac[_0x1f0a6c('0x212a')](_0x5b70ad);}}const _0xcd6720=_0x159e97;_0x1ea170[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x1c4'),_0x4376d8('0x532'),_0x4376d8('0x28b8'),_0x4376d8('0x2679'),_0x4376d8('0x412'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x1ea170(_0xdd3dbe,_0x42c2d4,_0x50ad6f,_0x5293ac,_0x15d062,_0x37765b,_0x3a20e5,_0x2f9076,_0x4fc951,_0x1b430b,_0x1791e3,_0x500118,_0x145246){const _0x31680d=_0x4376d8,_0x4dda91=this;_0x4dda91[_0x31680d('0x197c')]=_0x500118[_0x31680d('0x2831')](),_0x4dda91[_0x31680d('0x73e')]=[],_0x4dda91[_0x31680d('0x24d3')]='INTEGRATIONS.EDIT_'+_0x49cbdd()['toUpper'](_0x1b430b),_0x4dda91['item']=angular[_0x31680d('0x14e5')](_0x2f9076),_0x4dda91[_0x31680d('0x532')]=_0x3a20e5,_0x4dda91['type']=_0x1b430b,_0x4dda91[_0x31680d('0x103e')]=_0x145246,_0x4dda91[_0x31680d('0x1ac5')]=![];!_0x4dda91['item']&&(_0x4dda91['item']={'type':_0x31680d('0x1783')},_0x4dda91[_0x31680d('0x28b8')][_0x49cbdd()['capitalize'](_0x1b430b)+'Id']=_0x37765b['id'],_0x4dda91[_0x31680d('0x24d3')]=_0x31680d('0x6fe')+_0x49cbdd()[_0x31680d('0x286f')](_0x1b430b),_0x4dda91['newItem']=!![]);_0x4dda91[_0x31680d('0x1978')]=_0x34dd67,_0x4dda91[_0x31680d('0x1321')]=_0x29064d,_0x4dda91[_0x31680d('0x1350')]=_0x3ca49a,_0x4dda91['getSelectedVariable']=_0x31d51f,_0x4dda91[_0x31680d('0x136e')]=_0x1826c2,_0x1791e3['variable'][_0x31680d('0x1c53')]({'nolimit':!![]})['$promise']['then'](function(_0x19af4a){const _0x197355=_0x31680d;return _0x4dda91[_0x197355('0xd26')]=_0x19af4a[_0x197355('0x2319')]?_0x19af4a[_0x197355('0x2319')]:[],_0x1791e3[_0x197355('0x770')][_0x197355('0x2234')]()[_0x197355('0x1af5')];})[_0x31680d('0x17e7')](function(_0x47c660){const _0x2ec04a=_0x31680d;return _0x4dda91[_0x2ec04a('0x217b')]=_0x49cbdd()['difference'](_0x49cbdd()[_0x2ec04a('0x1c0f')](_0x47c660),[_0x2ec04a('0x1af5'),'$resolved',_0x2ec04a('0x7c9'),'updatedAt',_0x2ec04a('0x1c59')]),_0x4dda91[_0x2ec04a('0x217b')][_0x2ec04a('0x269f')](_0x2ec04a('0x1bea')),_0x1791e3['voiceDialReport'][_0x2ec04a('0x2234')]()[_0x2ec04a('0x1af5')];})[_0x31680d('0x17e7')](function(_0x387532){const _0x1f9143=_0x31680d;_0x4dda91[_0x1f9143('0xe00')]=_0x49cbdd()[_0x1f9143('0x4f1')](_0x49cbdd()['keys'](_0x387532),[_0x1f9143('0x1af5'),_0x1f9143('0x1314'),_0x1f9143('0x7c9'),_0x1f9143('0xb8a'),_0x1f9143('0x1c59')]),_0x4dda91[_0x1f9143('0xe00')][_0x1f9143('0x269f')](_0x1f9143('0x1bea'));})['catch'](function(_0xf77999){const _0x4d456a=_0x31680d;_0x15d062[_0x4d456a('0x1db9')]({'title':_0xf77999[_0x4d456a('0x11c5')]?_0x4d456a('0x14f7')+_0xf77999['status']+_0x4d456a('0x16e4')+_0xf77999[_0x4d456a('0x1833')]:'SYSTEM:GETVARIABLES','msg':_0xf77999[_0x4d456a('0x1457')]?JSON['stringify'](_0xf77999[_0x4d456a('0x1457')]):_0xf77999[_0x4d456a('0x9b6')]()});}),_0x1791e3[_0x31680d('0x13e5')][_0x31680d('0x9a')]({'id':_0x4fc951['id'],'ticketType':_0x37765b['ticketType']?_0x37765b[_0x31680d('0x148e')]:undefined})[_0x31680d('0x1af5')]['then'](function(_0x4b5956){const _0x2cc757=_0x31680d;_0x4dda91[_0x2cc757('0x20c2')]=!![],_0x4dda91[_0x2cc757('0x9c9')]=_0x4b5956[_0x2cc757('0x2319')]?_0x4b5956[_0x2cc757('0x2319')]:[],_0x4dda91[_0x2cc757('0x28b8')]['idField']&&(_0x4dda91[_0x2cc757('0x1fa4')]=_0x49cbdd()['find'](_0x4dda91[_0x2cc757('0x9c9')],{'id':_0x4dda91[_0x2cc757('0x28b8')]['idField']}));})[_0x31680d('0x16df')](function(_0x48d259){const _0x1f11b9=_0x31680d;_0x4dda91[_0x1f11b9('0x20c2')]=![],console['error'](_0x48d259);});function _0x34dd67(){const _0x23bf63=_0x31680d;_0x4dda91[_0x23bf63('0x73e')]=[],_0x4dda91[_0x23bf63('0x1fa4')]&&(_0x4dda91['item'][_0x23bf63('0x8d8')]=_0x4dda91['customField']['id'],_0x4dda91[_0x23bf63('0x28b8')][_0x23bf63('0x1a12')]=_0x4dda91[_0x23bf63('0x1fa4')]['name'],_0x4dda91['item'][_0x23bf63('0x1fa4')]=_0x4dda91[_0x23bf63('0x1fa4')][_0x23bf63('0x8fa')]),_0x1791e3[_0x23bf63('0x2278')]['save'](_0x4dda91[_0x23bf63('0x28b8')])[_0x23bf63('0x1af5')][_0x23bf63('0x17e7')](function(_0x8721ce){const _0x3b5f52=_0x23bf63;_0x4dda91[_0x3b5f52('0x532')]['unshift'](_0x8721ce),_0x15d062['success']({'title':_0x49cbdd()[_0x3b5f52('0xb41')](_0x1b430b)+'\x20properly\x20created','msg':_0x49cbdd()[_0x3b5f52('0xb41')](_0x1b430b)+_0x3b5f52('0x15a')}),_0x1826c2();})['catch'](function(_0x18bd18){const _0x421b8e=_0x23bf63;console[_0x421b8e('0x1db9')](_0x18bd18),_0x4dda91['errors']=_0x18bd18[_0x421b8e('0x1457')][_0x421b8e('0x73e')]||[{'message':_0x18bd18[_0x421b8e('0x9b6')](),'type':'api.item.save'}];});}function _0x29064d(){const _0x3edad9=_0x31680d;_0x4dda91[_0x3edad9('0x73e')]=[],_0x4dda91[_0x3edad9('0x1fa4')]&&(_0x4dda91[_0x3edad9('0x28b8')][_0x3edad9('0x8d8')]=_0x4dda91[_0x3edad9('0x1fa4')]['id'],_0x4dda91['item']['nameField']=_0x4dda91[_0x3edad9('0x1fa4')][_0x3edad9('0x2aa')],_0x4dda91[_0x3edad9('0x28b8')][_0x3edad9('0x1fa4')]=_0x4dda91[_0x3edad9('0x1fa4')][_0x3edad9('0x8fa')]),_0x1791e3['intFreshsalesField']['update']({'id':_0x4dda91[_0x3edad9('0x28b8')]['id']},_0x4dda91[_0x3edad9('0x28b8')])[_0x3edad9('0x1af5')][_0x3edad9('0x17e7')](function(_0x3705a5){const _0x5c6798=_0x3edad9,_0x38d227=_0x49cbdd()['find'](_0x4dda91[_0x5c6798('0x532')],{'id':_0x3705a5['id']});_0x38d227&&_0x49cbdd()[_0x5c6798('0x1ced')](_0x38d227,_0x3705a5),_0x15d062['success']({'title':_0x49cbdd()[_0x5c6798('0xb41')](_0x1b430b)+'\x20properly\x20saved!','msg':_0x49cbdd()['capitalize'](_0x1b430b)+'\x20has\x20been\x20saved!'}),_0x1826c2();})[_0x3edad9('0x16df')](function(_0x38c1c0){const _0x56521d=_0x3edad9;console[_0x56521d('0x1db9')](_0x38c1c0),_0x4dda91[_0x56521d('0x73e')]=_0x38c1c0[_0x56521d('0x1457')][_0x56521d('0x73e')]||[{'message':_0x38c1c0['toString'](),'type':_0x56521d('0x428')}];});}function _0x3ca49a(_0x7cac68){const _0x19acf8=_0x31680d;_0x4dda91[_0x19acf8('0x73e')]=[];const _0x677d65=_0x5293ac[_0x19acf8('0x1121')]()['title'](_0x19acf8('0x530'))[_0x19acf8('0xd5')](_0x19acf8('0x1664')+_0x1b430b+_0x19acf8('0xe9f'))['ariaLabel'](_0x19acf8('0x1aaa')+_0x49cbdd()[_0x19acf8('0xb41')](_0x1b430b))['ok'](_0x19acf8('0x304'))[_0x19acf8('0x1d47')](_0x19acf8('0x1b70'))[_0x19acf8('0x104f')](_0x7cac68);_0x5293ac['show'](_0x677d65)['then'](function(){const _0xb7be18=_0x19acf8;_0x1791e3[_0xb7be18('0x2278')][_0xb7be18('0x1da6')]({'id':_0x4dda91['item']['id']})[_0xb7be18('0x1af5')][_0xb7be18('0x17e7')](function(){const _0x1537fa=_0xb7be18;_0x49cbdd()[_0x1537fa('0x5f3')](_0x4dda91[_0x1537fa('0x532')],{'id':_0x4dda91[_0x1537fa('0x28b8')]['id']}),_0x15d062['success']({'title':_0x49cbdd()[_0x1537fa('0xb41')](_0x1b430b)+_0x1537fa('0x253a'),'msg':_0x49cbdd()['capitalize'](_0x1b430b)+_0x1537fa('0x149f')}),_0x1826c2();})[_0xb7be18('0x16df')](function(_0x13fa55){const _0x409aec=_0xb7be18;console[_0x409aec('0x1db9')](_0x13fa55),_0x4dda91[_0x409aec('0x73e')]=_0x13fa55[_0x409aec('0x1457')][_0x409aec('0x73e')]||[{'message':_0x13fa55[_0x409aec('0x9b6')](),'type':'api.item.delete'}];});},function(){});}function _0x31d51f(){const _0x583254=_0x31680d;return _0x4dda91[_0x583254('0x28b8')]['variableName']!==undefined?_0x4dda91[_0x583254('0x28b8')]['variableName']:_0x583254('0x2588');}function _0x1826c2(){const _0x25bdb8=_0x31680d;_0x5293ac[_0x25bdb8('0x212a')]();}}const _0x10bb89=_0x1ea170;_0x15da0a['$inject']=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x10ef'),'userProfileSection'];function _0x15da0a(_0x3b545f,_0x1d581e,_0x21dead,_0x35934e,_0x59e2a9,_0xd00c93,_0x1b3c05,_0x3038a3,_0x9617ca,_0x582ca7,_0x1d5198,_0x587190){const _0x506599=_0x4376d8,_0x27656f=this;_0x27656f[_0x506599('0x197c')]=_0x582ca7[_0x506599('0x2831')](),_0x27656f[_0x506599('0x1d11')]=_0xd00c93,_0x27656f[_0x506599('0x1aeb')]=_0x1b3c05,_0x27656f[_0x506599('0x1572')]=_0x27656f[_0x506599('0x1aeb')][_0x506599('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x27656f['location']=_0x1d581e[_0x506599('0x14fe')]()+_0x506599('0x14')+_0x1d581e[_0x506599('0x108')](),_0x27656f[_0x506599('0x10ef')]=_0x1d5198||_0x3b545f['params'][_0x506599('0x10ef')]||{},_0x27656f[_0x506599('0x383')]=_0x587190&&_0x587190[_0x506599('0x335')]==0x1?_0x587190['rows'][0x0]:null,_0x27656f[_0x506599('0x103e')]=_0x582ca7[_0x506599('0x17a9')](_0x27656f['userProfileSection']?_0x27656f[_0x506599('0x383')][_0x506599('0x103e')]:null),_0x27656f[_0x506599('0x6ee')]={},_0x27656f['selectedTab']=_0x3b545f[_0x506599('0x16fb')][_0x506599('0x1523')]||0x0,_0x27656f[_0x506599('0x99f')]=_0x9617ca[_0x506599('0x1178')],_0x27656f['gotoFreshsalesAccounts']=_0x306ee7,_0x27656f[_0x506599('0x10ab')]=_0x5137af;function _0x306ee7(){const _0x43408f=_0x506599;_0x3b545f['go']('app.integrations.freshsalesAccounts',{},{'reload':_0x43408f('0x363')});}function _0x5137af(){const _0x4f9c4b=_0x506599;_0x3038a3[_0x4f9c4b('0x13e5')][_0x4f9c4b('0x27ba')]({'id':_0x27656f[_0x4f9c4b('0x10ef')]['id']},_0x27656f['freshsalesAccount'])[_0x4f9c4b('0x1af5')][_0x4f9c4b('0x17e7')](function(){const _0x345ea8=_0x4f9c4b;_0x9617ca[_0x345ea8('0x130d')]({'title':_0x345ea8('0x6a2'),'msg':_0x27656f[_0x345ea8('0x10ef')][_0x345ea8('0x2aa')]?_0x27656f[_0x345ea8('0x10ef')][_0x345ea8('0x2aa')]+_0x345ea8('0x12b0'):''});})['catch'](function(_0x424528){const _0x3ec7b4=_0x4f9c4b;_0x9617ca[_0x3ec7b4('0x1db9')]({'title':_0x424528['status']?_0x3ec7b4('0x14f7')+_0x424528[_0x3ec7b4('0x11c5')]+_0x3ec7b4('0x16e4')+_0x424528[_0x3ec7b4('0x1833')]:'SYSTEM:GETintFreshsalesAccount','msg':_0x424528['data']?JSON[_0x3ec7b4('0x678')](_0x424528[_0x3ec7b4('0x1457')]):_0x424528[_0x3ec7b4('0x9b6')]()});});}}const _0x258f98=_0x15da0a,_0x5a911f=_0x4cf2bc['p']+_0x4376d8('0x19e7');_0x6873ad[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),'$translate','freshsalesAccounts','userProfile',_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),_0x4376d8('0x108a'),'Auth','license','setting'];function _0x6873ad(_0x57d31c,_0x52929c,_0x22d5a7,_0x5a37f2,_0x17ac48,_0x46e8e3,_0x1c2967,_0x3ba59e,_0x382fed,_0x5729c8,_0x208f90,_0x43eff8,_0x43c2e5,_0x29e925,_0x34630b,_0x31b3d0,_0x505f0c){const _0x3f1adf=_0x4376d8,_0x4c865f=this;_0x4c865f[_0x3f1adf('0x1d11')]=_0x31b3d0,_0x4c865f[_0x3f1adf('0x1aeb')]=_0x505f0c,_0x4c865f[_0x3f1adf('0x197c')]=_0x34630b[_0x3f1adf('0x2831')](),_0x4c865f[_0x3f1adf('0x19e5')]=_0x382fed||{'count':0x0,'rows':[]},_0x4c865f[_0x3f1adf('0xdeb')]=_0x5729c8,_0x4c865f[_0x3f1adf('0x383')]=_0x208f90&&_0x208f90['count']==0x1?_0x208f90[_0x3f1adf('0x2319')][0x0]:null,_0x4c865f[_0x3f1adf('0x103e')]=_0x34630b['parseCrudPermissions'](_0x4c865f[_0x3f1adf('0x383')]?_0x4c865f[_0x3f1adf('0x383')][_0x3f1adf('0x103e')]:null),_0x4c865f[_0x3f1adf('0x23c3')]='freshsalesAccounts',_0x4c865f[_0x3f1adf('0x26a1')]='',_0x4c865f[_0x3f1adf('0x24e1')]=null,_0x4c865f[_0x3f1adf('0x23a6')]=[],_0x4c865f[_0x3f1adf('0x826')]={'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'page':0x1},_0x4c865f[_0x3f1adf('0xcd4')]=_0x1f19ba,_0x4c865f[_0x3f1adf('0xf3a')]=_0x778c55,_0x4c865f[_0x3f1adf('0xbf4')]=_0x2dcca1,_0x4c865f[_0x3f1adf('0x130d')]=_0x5a50a3,_0x4c865f[_0x3f1adf('0x1f49')]=_0x310103,_0x4c865f[_0x3f1adf('0x513')]=_0x3d78ba,_0x4c865f[_0x3f1adf('0x109c')]=_0x5ad93e,_0x4c865f[_0x3f1adf('0x3d4')]=_0x222101,_0x4c865f[_0x3f1adf('0xa2d')]=_0x26f732,_0x4c865f[_0x3f1adf('0x2533')]=_0x193fb4,_0x4c865f[_0x3f1adf('0x1688')]=_0x4f4b18;function _0x1f19ba(_0x5be3ca){const _0x531673=_0x3f1adf;_0x22d5a7['go'](_0x531673('0x21a1'),{'id':_0x5be3ca['id'],'freshsalesAccount':_0x5be3ca,'crudPermissions':_0x4c865f[_0x531673('0x103e')]});}function _0x778c55(_0x2f9eb9){const _0x12ca59=_0x3f1adf;return _0x43eff8['intFreshsalesAccount'][_0x12ca59('0x9a')]({'id':_0x2f9eb9['id'],'test':!![]})[_0x12ca59('0x1af5')][_0x12ca59('0x17e7')](function(){const _0x9605dc=_0x12ca59;_0x29e925[_0x9605dc('0x130d')]({'title':_0x9605dc('0x183d'),'msg':_0x9605dc('0x120d')});})['catch'](function(_0x4618d5){const _0x41f25c=_0x12ca59;_0x29e925['error']({'title':'FreshsalesAccount\x20properly\x20tested','msg':_0x4618d5['data']?_0x4618d5[_0x41f25c('0x1457')][_0x41f25c('0x1603')]?_0x4618d5[_0x41f25c('0x1457')][_0x41f25c('0x1603')]:JSON['stringify'](_0x4618d5[_0x41f25c('0x1457')]):_0x4618d5[_0x41f25c('0x9b6')]()});});}function _0x2dcca1(_0xb254e3,_0x1c09be){const _0x48ca66=_0x3f1adf,_0x5ba6a3=_0x17ac48['confirm']()[_0x48ca66('0x24d3')](_0x48ca66('0x5e1')+_0x49cbdd()[_0x48ca66('0x1c98')]('freshsalesAccount')+'?')[_0x48ca66('0x211f')](''+(_0xb254e3[_0x48ca66('0x2aa')]||_0x48ca66('0x10ef'))+''+_0x48ca66('0xe9f'))[_0x48ca66('0x2095')]('delete\x20freshsalesAccount')['targetEvent'](_0x1c09be)['ok']('OK')[_0x48ca66('0x1d47')](_0x48ca66('0x28a0'));_0x17ac48[_0x48ca66('0x28e2')](_0x5ba6a3)[_0x48ca66('0x17e7')](function(){_0x5ad93e(_0xb254e3);},function(){const _0x283ba4=_0x48ca66;console[_0x283ba4('0x1d63')](_0x283ba4('0x28a0'));});}let _0xa1cb1e=!![],_0x3734ea=0x1;_0x57d31c[_0x3f1adf('0x620')](_0x3f1adf('0x3ed'),function(_0x2e8042,_0x10cccd){const _0x3cc56c=_0x3f1adf;_0xa1cb1e?_0x1c2967(function(){_0xa1cb1e=![];}):(!_0x10cccd&&(_0x3734ea=_0x4c865f[_0x3cc56c('0x826')][_0x3cc56c('0x115a')]),_0x2e8042!==_0x10cccd&&(_0x4c865f[_0x3cc56c('0x826')][_0x3cc56c('0x115a')]=0x1),!_0x2e8042&&(_0x4c865f[_0x3cc56c('0x826')][_0x3cc56c('0x115a')]=_0x3734ea),_0x4c865f[_0x3cc56c('0x1f49')]());});function _0x5a50a3(_0xd64521){const _0x3a1902=_0x3f1adf;_0x4c865f[_0x3a1902('0x19e5')]=_0xd64521||{'count':0x0,'rows':[]};}function _0x310103(){const _0x53e44f=_0x3f1adf;_0x4c865f[_0x53e44f('0x826')]['offset']=(_0x4c865f[_0x53e44f('0x826')]['page']-0x1)*_0x4c865f[_0x53e44f('0x826')][_0x53e44f('0x193b')],_0x34630b[_0x53e44f('0x1ba2')](_0x53e44f('0x20bf'))?_0x4c865f[_0x53e44f('0x1691')]=_0x43eff8[_0x53e44f('0x13e5')][_0x53e44f('0x1c53')](_0x4c865f[_0x53e44f('0x826')],_0x5a50a3)[_0x53e44f('0x1af5')]:(_0x4c865f[_0x53e44f('0x826')]['id']=_0x4c865f[_0x53e44f('0xdeb')]['id'],_0x4c865f[_0x53e44f('0x826')]['section']=_0x53e44f('0xe7f'),_0x4c865f[_0x53e44f('0x1691')]=_0x43eff8['userProfile'][_0x53e44f('0x2447')](_0x4c865f['query'],_0x5a50a3)[_0x53e44f('0x1af5')]);}function _0x3d78ba(_0x4cb9ac,_0x2f6e00){const _0x44351a=_0x3f1adf;_0x17ac48[_0x44351a('0x28e2')]({'controller':_0x44351a('0x5b'),'controllerAs':'vm','templateUrl':_0x5a911f,'parent':angular[_0x44351a('0x1ce1')](_0x46e8e3[_0x44351a('0x13aa')]),'targetEvent':_0x4cb9ac,'clickOutsideToClose':!![],'locals':{'freshsalesAccount':_0x2f6e00,'freshsalesAccounts':_0x4c865f['freshsalesAccounts']['rows'],'license':_0x4c865f[_0x44351a('0x1d11')],'setting':_0x4c865f[_0x44351a('0x1aeb')],'crudPermissions':_0x4c865f['crudPermissions']}});}function _0x5ad93e(_0x7d4480){const _0x2dece0=_0x3f1adf;_0x43eff8[_0x2dece0('0x13e5')][_0x2dece0('0x1da6')]({'id':_0x7d4480['id']})[_0x2dece0('0x1af5')]['then'](function(){const _0x4f7585=_0x2dece0;_0x49cbdd()[_0x4f7585('0x5f3')](_0x4c865f['freshsalesAccounts'][_0x4f7585('0x2319')],{'id':_0x7d4480['id']}),_0x4c865f[_0x4f7585('0x19e5')][_0x4f7585('0x335')]-=0x1,!_0x4c865f[_0x4f7585('0x19e5')]['rows'][_0x4f7585('0x1f73')]&&_0x4c865f['getFreshsalesAccounts'](),_0x29e925[_0x4f7585('0x130d')]({'title':_0x49cbdd()[_0x4f7585('0x1c98')](_0x4f7585('0x2516'))+'\x20deleted!','msg':_0x7d4480[_0x4f7585('0x2aa')]?_0x7d4480[_0x4f7585('0x2aa')]+_0x4f7585('0x149f'):''});})[_0x2dece0('0x16df')](function(_0x368885){const _0xfef441=_0x2dece0;if(_0x368885[_0xfef441('0x1457')]&&_0x368885[_0xfef441('0x1457')][_0xfef441('0x73e')]&&_0x368885[_0xfef441('0x1457')]['errors']['length']){_0x4c865f['errors']=_0x368885[_0xfef441('0x1457')]['errors']||[{'message':_0x368885[_0xfef441('0x9b6')](),'type':_0xfef441('0x81')}];for(let _0x41390e=0x0;_0x41390e<_0x368885[_0xfef441('0x1457')][_0xfef441('0x73e')][_0xfef441('0x1f73')];_0x41390e++){_0x29e925[_0xfef441('0x1db9')]({'title':_0x368885['data']['errors'][_0x41390e][_0xfef441('0x412')],'msg':_0x368885[_0xfef441('0x1457')]['errors'][_0x41390e][_0xfef441('0x1603')]});}}else _0x29e925[_0xfef441('0x1db9')]({'title':_0x368885[_0xfef441('0x11c5')]?_0xfef441('0x14f7')+_0x368885[_0xfef441('0x11c5')]+_0xfef441('0x16e4')+_0x368885['statusText']:_0xfef441('0x81'),'msg':_0x368885[_0xfef441('0x1457')]?JSON[_0xfef441('0x678')](_0x368885[_0xfef441('0x1457')][_0xfef441('0x1603')]):_0x368885['message']||_0x368885[_0xfef441('0x9b6')]()});});}function _0x222101(){const _0x5ee3a3=_0x3f1adf,_0x29f059=angular[_0x5ee3a3('0x14e5')](_0x4c865f[_0x5ee3a3('0x23a6')]);return _0x4c865f['selectedFreshsalesAccounts']=[],_0x29f059;}function _0x26f732(_0x303dc0){const _0x6e8748=_0x3f1adf,_0x4f4cd5=_0x17ac48['confirm']()['title'](_0x6e8748('0x92c'))[_0x6e8748('0x211f')](_0x6e8748('0xa53')+_0x4c865f[_0x6e8748('0x23a6')]['length']+_0x6e8748('0x145a')+'\x20will\x20be\x20deleted.')[_0x6e8748('0x2095')](_0x6e8748('0x48f'))['targetEvent'](_0x303dc0)['ok']('OK')[_0x6e8748('0x1d47')](_0x6e8748('0x28a0'));_0x17ac48['show'](_0x4f4cd5)['then'](function(){const _0x4c77a4=_0x6e8748;_0x4c865f[_0x4c77a4('0x23a6')][_0x4c77a4('0xccd')](function(_0x329435){_0x5ad93e(_0x329435);}),_0x4c865f[_0x4c77a4('0x23a6')]=[];});}function _0x193fb4(){const _0x3066c2=_0x3f1adf;_0x4c865f[_0x3066c2('0x23a6')]=[];}function _0x4f4b18(){const _0x2ff579=_0x3f1adf;_0x4c865f[_0x2ff579('0x23a6')]=_0x4c865f['freshsalesAccounts']['rows'];}}const _0x275cc9=_0x6873ad;_0x59c847[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state','$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x1915'),_0x4376d8('0x375'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),'crudPermissions'];function _0x59c847(_0x3f2593,_0x2ad46a,_0x5d1ae2,_0x14f9fd,_0x489a8e,_0xe7747e,_0x54970d,_0x3b03a4,_0x263dc8,_0x199014,_0xf954e5,_0x2e3a6a,_0x1a9da5,_0x5ac53c){const _0x1700dd=_0x4376d8,_0x3a048f=this;_0x3a048f[_0x1700dd('0x197c')]=_0xf954e5['getCurrentUser'](),_0x3a048f[_0x1700dd('0x73e')]=[],_0x3a048f[_0x1700dd('0x1aeb')]=_0x1a9da5,_0x3a048f['license']=_0x2e3a6a,_0x3a048f[_0x1700dd('0x103e')]=_0x5ac53c,_0x3a048f['hasModulePermissions']={},_0x3a048f[_0x1700dd('0x1572')]=_0x3a048f['setting']&&_0x3a048f['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3a048f[_0x1700dd('0x24d3')]=_0x1700dd('0xed2'),_0x3a048f['salesforceAccount']=angular[_0x1700dd('0x14e5')](_0x263dc8),_0x3a048f[_0x1700dd('0x1915')]=_0x3b03a4,_0x3a048f['newSalesforceAccount']=![];!_0x3a048f[_0x1700dd('0x375')]&&(_0x3a048f[_0x1700dd('0x375')]={'type':_0x1700dd('0x1994'),'serverUrl':_0x5d1ae2[_0x1700dd('0x14fe')]()+'://'+_0x5d1ae2['host']()+(_0x5d1ae2[_0x1700dd('0x2442')]()?':'+_0x5d1ae2[_0x1700dd('0x2442')]():'')},_0x3a048f[_0x1700dd('0x24d3')]='INTEGRATIONS.NEW_SALESFORCEACCOUNT',_0x3a048f[_0x1700dd('0x1b84')]=!![]);_0x3a048f[_0x1700dd('0x1002')]=_0xa16fa6,_0x3a048f[_0x1700dd('0x1de7')]=_0x5c03a7,_0x3a048f[_0x1700dd('0x1680')]=_0x4b3c60,_0x3a048f[_0x1700dd('0x1300')]=_0x10c57d,_0x3a048f[_0x1700dd('0x136e')]=_0x4ddee4;function _0xa16fa6(){const _0x2cde21=_0x1700dd;_0x3a048f['errors']=[],_0x199014[_0x2cde21('0x1c19')][_0x2cde21('0x2439')](_0x3a048f[_0x2cde21('0x375')])[_0x2cde21('0x1af5')]['then'](function(_0x369f24){const _0x5395eb=_0x2cde21;_0x3a048f[_0x5395eb('0x1915')][_0x5395eb('0x1893')](_0x369f24[_0x5395eb('0x16b2')]()),_0x54970d['success']({'title':_0x5395eb('0x1782'),'msg':_0x3a048f[_0x5395eb('0x375')]['name']?_0x3a048f[_0x5395eb('0x375')][_0x5395eb('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x4ddee4(_0x369f24);})[_0x2cde21('0x16df')](function(_0x7d469a){const _0x52d221=_0x2cde21;if(_0x7d469a[_0x52d221('0x1457')]&&_0x7d469a[_0x52d221('0x1457')]['errors']&&_0x7d469a[_0x52d221('0x1457')][_0x52d221('0x73e')]['length']){_0x3a048f[_0x52d221('0x73e')]=_0x7d469a['data'][_0x52d221('0x73e')]||[{'message':_0x7d469a['toString'](),'type':'api.intSalesforceAccount.save'}];for(let _0x2fd782=0x0;_0x2fd782<_0x7d469a[_0x52d221('0x1457')]['errors']['length'];_0x2fd782+=0x1){_0x54970d['error']({'title':_0x7d469a['data']['errors'][_0x2fd782][_0x52d221('0x412')],'msg':_0x7d469a[_0x52d221('0x1457')][_0x52d221('0x73e')][_0x2fd782]['message']});}}else _0x54970d[_0x52d221('0x1db9')]({'title':_0x7d469a[_0x52d221('0x11c5')]?'API:'+_0x7d469a[_0x52d221('0x11c5')]+'\x20-\x20'+_0x7d469a[_0x52d221('0x1833')]:_0x52d221('0x20e5'),'msg':_0x7d469a[_0x52d221('0x1457')]?JSON[_0x52d221('0x678')](_0x7d469a[_0x52d221('0x1457')]['message']):_0x7d469a[_0x52d221('0x9b6')]()});});}function _0x5c03a7(){const _0x133f69=_0x1700dd;_0x3a048f[_0x133f69('0x73e')]=[],_0x199014[_0x133f69('0x1c19')][_0x133f69('0x27ba')]({'id':_0x3a048f[_0x133f69('0x375')]['id']},_0x3a048f[_0x133f69('0x375')])['$promise']['then'](function(_0x4eff9e){const _0xa86bd9=_0x133f69,_0x5e2860=_0x49cbdd()[_0xa86bd9('0xe8e')](_0x3a048f['salesforceAccounts'],{'id':_0x4eff9e['id']});_0x5e2860&&_0x49cbdd()[_0xa86bd9('0x1ced')](_0x5e2860,_0x49cbdd()['pick'](_0x4eff9e[_0xa86bd9('0x16b2')](),_0x49cbdd()[_0xa86bd9('0x1c0f')](_0x5e2860))),_0x54970d[_0xa86bd9('0x130d')]({'title':_0xa86bd9('0x170e'),'msg':_0x3a048f['salesforceAccount']['name']?_0x3a048f['salesforceAccount'][_0xa86bd9('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x4ddee4(_0x4eff9e);})[_0x133f69('0x16df')](function(_0x49221a){const _0x8f884c=_0x133f69;if(_0x49221a[_0x8f884c('0x1457')]&&_0x49221a[_0x8f884c('0x1457')][_0x8f884c('0x73e')]&&_0x49221a['data'][_0x8f884c('0x73e')]['length']){_0x3a048f['errors']=_0x49221a['data'][_0x8f884c('0x73e')]||[{'message':_0x49221a['toString'](),'type':_0x8f884c('0x1d15')}];for(let _0x13c26d=0x0;_0x13c26d<_0x49221a[_0x8f884c('0x1457')]['errors'][_0x8f884c('0x1f73')];_0x13c26d++){_0x54970d[_0x8f884c('0x1db9')]({'title':_0x49221a['data']['errors'][_0x13c26d][_0x8f884c('0x412')],'msg':_0x49221a[_0x8f884c('0x1457')][_0x8f884c('0x73e')][_0x13c26d]['message']});}}else _0x54970d[_0x8f884c('0x1db9')]({'title':_0x49221a[_0x8f884c('0x11c5')]?_0x8f884c('0x14f7')+_0x49221a['status']+_0x8f884c('0x16e4')+_0x49221a[_0x8f884c('0x1833')]:_0x8f884c('0x1d15'),'msg':_0x49221a[_0x8f884c('0x1457')]?JSON[_0x8f884c('0x678')](_0x49221a[_0x8f884c('0x1457')][_0x8f884c('0x1603')]):_0x49221a[_0x8f884c('0x9b6')]()});});}function _0x4b3c60(_0x488438){const _0x46e424=_0x1700dd;_0x3a048f[_0x46e424('0x73e')]=[];const _0x18fcdd=_0x14f9fd[_0x46e424('0x1121')]()['title']('Are\x20you\x20sure?')[_0x46e424('0xd5')](_0x46e424('0x615'))[_0x46e424('0x2095')](_0x46e424('0x74d'))['ok'](_0x46e424('0x304'))['cancel'](_0x46e424('0x1b70'))[_0x46e424('0x104f')](_0x488438);_0x14f9fd[_0x46e424('0x28e2')](_0x18fcdd)[_0x46e424('0x17e7')](function(){const _0x28e8d0=_0x46e424;_0x199014[_0x28e8d0('0x1c19')][_0x28e8d0('0x1da6')]({'id':_0x3a048f[_0x28e8d0('0x375')]['id']})[_0x28e8d0('0x1af5')]['then'](function(){const _0x3a503a=_0x28e8d0;_0x49cbdd()[_0x3a503a('0x5f3')](_0x3a048f[_0x3a503a('0x1915')],{'id':_0x3a048f[_0x3a503a('0x375')]['id']}),_0x54970d[_0x3a503a('0x130d')]({'title':'SalesforceAccount\x20properly\x20deleted!','msg':(_0x3a048f['salesforceAccount'][_0x3a503a('0x2aa')]||_0x3a503a('0x375'))+'\x20has\x20been\x20deleted!'}),_0x4ddee4(_0x3a048f[_0x3a503a('0x375')]);})[_0x28e8d0('0x16df')](function(_0x15122d){const _0x468dda=_0x28e8d0;if(_0x15122d[_0x468dda('0x1457')]&&_0x15122d[_0x468dda('0x1457')][_0x468dda('0x73e')]&&_0x15122d[_0x468dda('0x1457')][_0x468dda('0x73e')][_0x468dda('0x1f73')]){_0x3a048f[_0x468dda('0x73e')]=_0x15122d['data'][_0x468dda('0x73e')]||[{'message':_0x15122d[_0x468dda('0x9b6')](),'type':_0x468dda('0x25e7')}];for(let _0x3027b4=0x0;_0x3027b4<_0x15122d[_0x468dda('0x1457')]['errors'][_0x468dda('0x1f73')];_0x3027b4++){_0x54970d[_0x468dda('0x1db9')]({'title':_0x15122d[_0x468dda('0x1457')]['errors'][_0x3027b4]['type'],'msg':_0x15122d[_0x468dda('0x1457')]['errors'][_0x3027b4]['message']});}}else _0x54970d['error']({'title':_0x15122d[_0x468dda('0x11c5')]?_0x468dda('0x14f7')+_0x15122d['status']+_0x468dda('0x16e4')+_0x15122d[_0x468dda('0x1833')]:'api.intSalesforceAccount.delete','msg':_0x15122d[_0x468dda('0x1457')]?JSON[_0x468dda('0x678')](_0x15122d[_0x468dda('0x1457')][_0x468dda('0x1603')]):_0x15122d[_0x468dda('0x1603')]||_0x15122d[_0x468dda('0x9b6')]()});});},function(){});}function _0x10c57d(_0x3d773b){return _0x3d773b===null?undefined:new Date(_0x3d773b);}function _0x4ddee4(_0x28cb36){const _0x413c5b=_0x1700dd;_0x14f9fd[_0x413c5b('0x212a')](_0x28cb36);}}const _0x5be889=_0x59c847,_0x17baf8=_0x4cf2bc['p']+_0x4376d8('0x2032'),_0x37f931=_0x4cf2bc['p']+_0x4376d8('0x31a');_0x5723a1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$document',_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x5723a1(_0x5e4894,_0x1b3a3a,_0x326f51,_0xf225d3,_0x4b11f9){const _0x175941=_0x4376d8,_0x405d7f=this;_0x405d7f[_0x175941('0x197c')]=_0x4b11f9[_0x175941('0x2831')](),_0x405d7f['salesforceAccount']={},_0x405d7f[_0x175941('0x78c')]={},_0x405d7f['configurations']=[],_0x405d7f[_0x175941('0x190c')]=-0x1,_0x405d7f[_0x175941('0x103e')],_0x405d7f[_0x175941('0x161d')]=_0x3d7adf,_0x405d7f['getSalesforceConfiguration']=_0x29fd1a,_0x405d7f['createOrEditSalesforceConfiguration']=_0xd4a242,_0x405d7f[_0x175941('0x1a66')]=_0x3465f4,_0x405d7f[_0x175941('0x10f5')]=_0x2d1fd9;function _0x2d1fd9(){const _0x2d8658=_0x175941;return _0x326f51[_0x2d8658('0x1486')][_0x2d8658('0x27ba')]({'id':_0x405d7f[_0x2d8658('0x78c')]['id']},_0x405d7f[_0x2d8658('0x78c')])[_0x2d8658('0x1af5')][_0x2d8658('0x17e7')](function(){const _0x260e33=_0x2d8658;_0xf225d3[_0x260e33('0x130d')]({'title':_0x260e33('0x1e90'),'msg':_0x260e33('0x150d')});})['catch'](function(_0x30f6df){const _0x2e6846=_0x2d8658;_0xf225d3[_0x2e6846('0x1db9')]({'title':_0x30f6df[_0x2e6846('0x11c5')]?_0x2e6846('0x14f7')+_0x30f6df[_0x2e6846('0x11c5')]+'\x20-\x20'+_0x30f6df[_0x2e6846('0x1833')]:_0x2e6846('0x22f9'),'msg':_0x30f6df[_0x2e6846('0x1457')]?JSON[_0x2e6846('0x678')](_0x30f6df['data']):_0x30f6df['toString']()});});}function _0x3d7adf(_0xa71520,_0x489460){const _0x3a13fe=_0x175941;_0x405d7f['salesforceAccount']=_0xa71520,_0x405d7f[_0x3a13fe('0x103e')]=typeof _0x489460!==_0x3a13fe('0xfad')?_0x489460:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x326f51[_0x3a13fe('0x1c19')][_0x3a13fe('0xee0')]({'id':_0x405d7f[_0x3a13fe('0x375')]['id'],'sort':_0x3a13fe('0x1ac6')})[_0x3a13fe('0x1af5')][_0x3a13fe('0x17e7')](function(_0x54b358){const _0x5a42f2=_0x3a13fe;return _0x405d7f[_0x5a42f2('0x11d0')]=_0x54b358[_0x5a42f2('0x2319')]?_0x54b358['rows']:[],_0x405d7f[_0x5a42f2('0x11d0')][_0x5a42f2('0x1f73')]&&_0x405d7f['getSalesforceConfiguration'](0x0),_0x326f51[_0x5a42f2('0xb0a')][_0x5a42f2('0x1c53')]({'nolimit':!![],'sort':_0x5a42f2('0x2aa')})[_0x5a42f2('0x1af5')];})[_0x3a13fe('0x17e7')](function(_0x2f1904){const _0x6eae26=_0x3a13fe;_0x405d7f[_0x6eae26('0xd26')]=_0x2f1904[_0x6eae26('0x2319')]?_0x2f1904['rows']:[],_0x405d7f['variablesById']=_0x49cbdd()[_0x6eae26('0x8de')](_0x405d7f['variables'],'id');})['catch'](function(_0x558ac1){const _0x23778f=_0x3a13fe;_0xf225d3[_0x23778f('0x1db9')]({'title':_0x558ac1[_0x23778f('0x11c5')]?'API:'+_0x558ac1['status']+_0x23778f('0x16e4')+_0x558ac1[_0x23778f('0x1833')]:'SYSTEM:GETCONFIGURATION','msg':_0x558ac1[_0x23778f('0x1457')]?JSON['stringify'](_0x558ac1[_0x23778f('0x1457')]):_0x558ac1['toString']()});});}function _0x29fd1a(_0x3ccf37){const _0x4b440d=_0x175941;_0x405d7f[_0x4b440d('0x78c')]=_0x405d7f[_0x4b440d('0x11d0')][_0x3ccf37],_0x405d7f['selectedSalesforceConfiguration']=_0x3ccf37,_0x326f51[_0x4b440d('0x1486')][_0x4b440d('0x94e')]({'id':_0x405d7f['salesforceConfiguration']['id']})[_0x4b440d('0x1af5')]['then'](function(_0x491c91){const _0x435953=_0x4b440d;return _0x405d7f['subjects']=_0x491c91[_0x435953('0x2319')]?_0x491c91[_0x435953('0x2319')]:[],_0x326f51[_0x435953('0x1486')][_0x435953('0x24c7')]({'id':_0x405d7f[_0x435953('0x78c')]['id']})[_0x435953('0x1af5')];})[_0x4b440d('0x17e7')](function(_0x68f366){const _0x2253c2=_0x4b440d;return _0x405d7f[_0x2253c2('0x1a2a')]=_0x68f366['rows']?_0x68f366[_0x2253c2('0x2319')]:[],_0x326f51[_0x2253c2('0x1486')][_0x2253c2('0x9a')]({'id':_0x405d7f[_0x2253c2('0x78c')]['id']})[_0x2253c2('0x1af5')];})['then'](function(_0x465982){const _0x2dbfd7=_0x4b440d;_0x405d7f[_0x2dbfd7('0x9c9')]=_0x465982[_0x2dbfd7('0x2319')]?_0x465982['rows']:[];})[_0x4b440d('0x16df')](function(_0x53dffd){const _0x2e783c=_0x4b440d;_0xf225d3[_0x2e783c('0x1db9')]({'title':_0x53dffd[_0x2e783c('0x11c5')]?_0x2e783c('0x14f7')+_0x53dffd['status']+_0x2e783c('0x16e4')+_0x53dffd['statusText']:_0x2e783c('0x23be'),'msg':_0x53dffd[_0x2e783c('0x1457')]?JSON[_0x2e783c('0x678')](_0x53dffd['data']):_0x53dffd[_0x2e783c('0x9b6')]()});});}function _0xd4a242(_0x150eb0,_0xd1f6a7){const _0x1c9d54=_0x175941;_0x5e4894['show']({'controller':_0x1c9d54('0x195d'),'controllerAs':'vm','templateUrl':_0x17baf8,'parent':angular[_0x1c9d54('0x1ce1')](_0x1b3a3a[_0x1c9d54('0x13aa')]),'targetEvent':_0x150eb0,'clickOutsideToClose':!![],'locals':{'salesforceConfiguration':_0xd1f6a7,'configurations':_0x405d7f['configurations'],'license':null,'setting':null,'crudPermissions':_0x405d7f['crudPermissions']}})[_0x1c9d54('0x74e')](function(){const _0x132080=_0x1c9d54;_0x405d7f[_0x132080('0xc3e')](0x0);});}function _0x3465f4(_0x3f5ba9,_0x1f15af){const _0x4cb967=_0x175941,_0x24d71b=_0x5e4894['confirm']()[_0x4cb967('0x24d3')](_0x4cb967('0x147d'))[_0x4cb967('0x211f')](_0x4cb967('0xa53')+(_0x1f15af[_0x4cb967('0x2aa')]||'salesforceConfiguration')+_0x4cb967('0x1d23')+_0x4cb967('0xe9f'))[_0x4cb967('0x2095')](_0x4cb967('0xc60'))[_0x4cb967('0x104f')](_0x3f5ba9)['ok']('OK')['cancel'](_0x4cb967('0x28a0'));_0x5e4894[_0x4cb967('0x28e2')](_0x24d71b)[_0x4cb967('0x17e7')](function(){const _0x4d0dee=_0x4cb967;_0x326f51['intSalesforceConfiguration'][_0x4d0dee('0x1da6')]({'id':_0x1f15af['id']})[_0x4d0dee('0x1af5')][_0x4d0dee('0x17e7')](function(){const _0x1299fc=_0x4d0dee;_0x49cbdd()[_0x1299fc('0x5f3')](_0x405d7f[_0x1299fc('0x11d0')],{'id':_0x1f15af['id']}),_0xf225d3[_0x1299fc('0x130d')]({'title':_0x1299fc('0x28a3'),'msg':_0x1f15af['name']?_0x1f15af[_0x1299fc('0x2aa')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x480b23){const _0x3ed31f=_0x4d0dee;_0xf225d3[_0x3ed31f('0x1db9')]({'title':_0x480b23['status']?_0x3ed31f('0x14f7')+_0x480b23[_0x3ed31f('0x11c5')]+_0x3ed31f('0x16e4')+_0x480b23[_0x3ed31f('0x1833')]:_0x3ed31f('0x11b4'),'msg':_0x480b23[_0x3ed31f('0x1457')]?JSON[_0x3ed31f('0x678')](_0x480b23[_0x3ed31f('0x1457')]):_0x480b23[_0x3ed31f('0x9b6')]()});})[_0x4d0dee('0x74e')](function(){const _0x5e14bd=_0x4d0dee;_0x405d7f[_0x5e14bd('0xc3e')](0x0);});},function(){const _0xb5830e=_0x4cb967;console[_0xb5830e('0x1d63')](_0xb5830e('0x28a0'));});}_0x405d7f[_0x175941('0x95b')]=[],_0x405d7f['createOrEditSubject']=_0x81f82e,_0x405d7f[_0x175941('0x268a')]=_0x3e4bee,_0x405d7f[_0x175941('0x2738')]=_0x2f4a41;function _0x81f82e(_0x299b81,_0x13a789){const _0x1f1142=_0x175941;_0x5e4894[_0x1f1142('0x28e2')]({'controller':_0x1f1142('0x222b'),'controllerAs':'vm','templateUrl':_0x37f931,'parent':angular[_0x1f1142('0x1ce1')](_0x1b3a3a[_0x1f1142('0x13aa')]),'targetEvent':_0x299b81,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x13a789,'items':_0x405d7f[_0x1f1142('0x1261')],'configuration':_0x405d7f[_0x1f1142('0x78c')],'account':_0x405d7f[_0x1f1142('0x375')],'license':null,'setting':null,'crudPermissions':_0x405d7f[_0x1f1142('0x103e')]}});}function _0x26323e(_0x5a8b90){const _0x41feb4=_0x175941;_0x326f51[_0x41feb4('0x85a')][_0x41feb4('0x1da6')]({'id':_0x5a8b90['id']})[_0x41feb4('0x1af5')][_0x41feb4('0x17e7')](function(){const _0x5e3c93=_0x41feb4;_0x49cbdd()[_0x5e3c93('0x5f3')](_0x405d7f[_0x5e3c93('0x1261')],{'id':_0x5a8b90['id']}),_0xf225d3[_0x5e3c93('0x130d')]({'title':'Subject\x20deleted!','msg':_0x5e3c93('0x179c')});})[_0x41feb4('0x16df')](function(_0x437d97){const _0x264ebb=_0x41feb4;_0xf225d3[_0x264ebb('0x1db9')]({'title':_0x437d97[_0x264ebb('0x11c5')]?_0x264ebb('0x14f7')+_0x437d97[_0x264ebb('0x11c5')]+_0x264ebb('0x16e4')+_0x437d97[_0x264ebb('0x1833')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x437d97['data']?JSON[_0x264ebb('0x678')](_0x437d97[_0x264ebb('0x1457')]):_0x437d97['toString']()});});}function _0x3e4bee(_0xe1a81c,_0x4ceb29){const _0x452ec7=_0x175941,_0xb62ecc=_0x5e4894[_0x452ec7('0x1121')]()[_0x452ec7('0x24d3')](_0x452ec7('0x1371'))[_0x452ec7('0x211f')](_0x452ec7('0x694')+_0x452ec7('0xe9f'))['ariaLabel']('delete\x20subject')[_0x452ec7('0x104f')](_0xe1a81c)['ok']('OK')[_0x452ec7('0x1d47')](_0x452ec7('0x28a0'));_0x5e4894['show'](_0xb62ecc)[_0x452ec7('0x17e7')](function(){_0x26323e(_0x4ceb29);},function(){const _0x16e92f=_0x452ec7;console[_0x16e92f('0x1d63')](_0x16e92f('0x28a0'));});}function _0x2f4a41(_0x37597e){const _0x29ce62=_0x175941,_0x240920=_0x5e4894[_0x29ce62('0x1121')]()[_0x29ce62('0x24d3')](_0x29ce62('0xb0b'))[_0x29ce62('0x211f')](_0x29ce62('0xa53')+_0x405d7f[_0x29ce62('0x95b')][_0x29ce62('0x1f73')]+_0x29ce62('0x145a')+_0x29ce62('0xe9f'))['ariaLabel'](_0x29ce62('0x1bc'))[_0x29ce62('0x104f')](_0x37597e)['ok']('OK')[_0x29ce62('0x1d47')](_0x29ce62('0x28a0'));_0x5e4894['show'](_0x240920)[_0x29ce62('0x17e7')](function(){const _0x3dad41=_0x29ce62;_0x405d7f[_0x3dad41('0x95b')][_0x3dad41('0xccd')](function(_0x3625fc){_0x26323e(_0x3625fc);}),_0x405d7f[_0x3dad41('0x95b')]=[];});}_0x405d7f[_0x175941('0xb0f')]=[],_0x405d7f[_0x175941('0x1ac8')]=_0x414918,_0x405d7f[_0x175941('0x178')]=_0x4f0304,_0x405d7f['deleteSelectedDescriptions']=_0x2b0027;function _0x414918(_0x29fa3e,_0x22b91a){const _0x27e102=_0x175941;_0x5e4894[_0x27e102('0x28e2')]({'controller':_0x27e102('0x222b'),'controllerAs':'vm','templateUrl':_0x37f931,'parent':angular['element'](_0x1b3a3a['body']),'targetEvent':_0x29fa3e,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x22b91a,'items':_0x405d7f[_0x27e102('0x1a2a')],'configuration':_0x405d7f[_0x27e102('0x78c')],'account':_0x405d7f[_0x27e102('0x375')],'license':null,'setting':null,'crudPermissions':_0x405d7f[_0x27e102('0x103e')]}});}function _0x4a00fb(_0xd88a0){const _0x34fc40=_0x175941;_0x326f51[_0x34fc40('0x85a')]['delete']({'id':_0xd88a0['id']})[_0x34fc40('0x1af5')][_0x34fc40('0x17e7')](function(){const _0x127ef5=_0x34fc40;_0x49cbdd()[_0x127ef5('0x5f3')](_0x405d7f[_0x127ef5('0x1a2a')],{'id':_0xd88a0['id']}),_0xf225d3[_0x127ef5('0x130d')]({'title':_0x127ef5('0x1504'),'msg':_0x127ef5('0x56f')});})['catch'](function(_0x2c566f){const _0x5371a9=_0x34fc40;_0xf225d3[_0x5371a9('0x1db9')]({'title':_0x2c566f[_0x5371a9('0x11c5')]?_0x5371a9('0x14f7')+_0x2c566f[_0x5371a9('0x11c5')]+_0x5371a9('0x16e4')+_0x2c566f[_0x5371a9('0x1833')]:_0x5371a9('0x14bd'),'msg':_0x2c566f[_0x5371a9('0x1457')]?JSON[_0x5371a9('0x678')](_0x2c566f['data']):_0x2c566f[_0x5371a9('0x9b6')]()});});}function _0x4f0304(_0x383e6,_0x5978e0){const _0x432ccb=_0x175941,_0x34d554=_0x5e4894[_0x432ccb('0x1121')]()['title'](_0x432ccb('0x2bb'))['htmlContent'](_0x432ccb('0x217a')+'\x20will\x20be\x20deleted.')[_0x432ccb('0x2095')](_0x432ccb('0x1cf7'))['targetEvent'](_0x383e6)['ok']('OK')[_0x432ccb('0x1d47')]('CANCEL');_0x5e4894[_0x432ccb('0x28e2')](_0x34d554)[_0x432ccb('0x17e7')](function(){_0x4a00fb(_0x5978e0);},function(){const _0x42db02=_0x432ccb;console['log'](_0x42db02('0x28a0'));});}function _0x2b0027(_0x41e756){const _0x148fc6=_0x175941,_0x3e6881=_0x5e4894['confirm']()[_0x148fc6('0x24d3')](_0x148fc6('0x12d4'))[_0x148fc6('0x211f')](_0x148fc6('0xa53')+_0x405d7f[_0x148fc6('0xb0f')][_0x148fc6('0x1f73')]+_0x148fc6('0x145a')+_0x148fc6('0xe9f'))[_0x148fc6('0x2095')](_0x148fc6('0x1fb1'))[_0x148fc6('0x104f')](_0x41e756)['ok']('OK')[_0x148fc6('0x1d47')](_0x148fc6('0x28a0'));_0x5e4894[_0x148fc6('0x28e2')](_0x3e6881)[_0x148fc6('0x17e7')](function(){const _0x213d2a=_0x148fc6;_0x405d7f['selectedDescriptions'][_0x213d2a('0xccd')](function(_0x3a6ca6){_0x4a00fb(_0x3a6ca6);}),_0x405d7f[_0x213d2a('0xb0f')]=[];});}_0x405d7f[_0x175941('0xa2e')]=[],_0x405d7f[_0x175941('0xc53')]=_0x555858,_0x405d7f[_0x175941('0x7f5')]=_0x4cf66c,_0x405d7f[_0x175941('0xd1b')]=_0x139717;function _0x555858(_0xa872a1,_0x56cdb7){const _0x588f7b=_0x175941;_0x5e4894[_0x588f7b('0x28e2')]({'controller':_0x588f7b('0x222b'),'controllerAs':'vm','templateUrl':_0x37f931,'parent':angular['element'](_0x1b3a3a[_0x588f7b('0x13aa')]),'targetEvent':_0xa872a1,'clickOutsideToClose':!![],'locals':{'type':_0x588f7b('0x1515'),'item':_0x56cdb7,'items':_0x405d7f[_0x588f7b('0x9c9')],'configuration':_0x405d7f[_0x588f7b('0x78c')],'account':_0x405d7f['salesforceAccount'],'license':null,'setting':null,'crudPermissions':_0x405d7f[_0x588f7b('0x103e')]}});}function _0x44eaae(_0x4e4914){const _0x277073=_0x175941;_0x326f51['intSalesforceField']['delete']({'id':_0x4e4914['id']})[_0x277073('0x1af5')][_0x277073('0x17e7')](function(){const _0xac3890=_0x277073;_0x49cbdd()[_0xac3890('0x5f3')](_0x405d7f[_0xac3890('0x9c9')],{'id':_0x4e4914['id']}),_0xf225d3[_0xac3890('0x130d')]({'title':_0xac3890('0x1605'),'msg':_0xac3890('0xbb8')});})[_0x277073('0x16df')](function(_0x3f7d1a){const _0x320509=_0x277073;_0xf225d3[_0x320509('0x1db9')]({'title':_0x3f7d1a['status']?'API:'+_0x3f7d1a[_0x320509('0x11c5')]+_0x320509('0x16e4')+_0x3f7d1a[_0x320509('0x1833')]:_0x320509('0x14bd'),'msg':_0x3f7d1a[_0x320509('0x1457')]?JSON[_0x320509('0x678')](_0x3f7d1a[_0x320509('0x1457')]):_0x3f7d1a[_0x320509('0x9b6')]()});});}function _0x4cf66c(_0x10ed30,_0x3fcafe){const _0x393a5f=_0x175941,_0x1b03eb=_0x5e4894[_0x393a5f('0x1121')]()[_0x393a5f('0x24d3')](_0x393a5f('0x1d1f'))[_0x393a5f('0x211f')]('Field'+_0x393a5f('0xe9f'))[_0x393a5f('0x2095')](_0x393a5f('0x1f01'))[_0x393a5f('0x104f')](_0x10ed30)['ok']('OK')[_0x393a5f('0x1d47')](_0x393a5f('0x28a0'));_0x5e4894['show'](_0x1b03eb)[_0x393a5f('0x17e7')](function(){_0x44eaae(_0x3fcafe);},function(){const _0x4a1125=_0x393a5f;console[_0x4a1125('0x1d63')](_0x4a1125('0x28a0'));});}function _0x139717(_0x9a2201){const _0x1491f5=_0x175941,_0x406704=_0x5e4894['confirm']()[_0x1491f5('0x24d3')](_0x1491f5('0x1fdd'))[_0x1491f5('0x211f')](_0x1491f5('0xa53')+_0x405d7f[_0x1491f5('0xa2e')][_0x1491f5('0x1f73')]+_0x1491f5('0x145a')+'\x20will\x20be\x20deleted.')[_0x1491f5('0x2095')](_0x1491f5('0x15ee'))[_0x1491f5('0x104f')](_0x9a2201)['ok']('OK')[_0x1491f5('0x1d47')](_0x1491f5('0x28a0'));_0x5e4894['show'](_0x406704)['then'](function(){const _0x3ddfea=_0x1491f5;_0x405d7f[_0x3ddfea('0xa2e')][_0x3ddfea('0xccd')](function(_0x261dba){_0x44eaae(_0x261dba);}),_0x405d7f['selectedFields']=[];});}}const _0x3ee80c=_0x5723a1;_0x432e32[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x11d0'),_0x4376d8('0x78c'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x432e32(_0x38a483,_0x556cea,_0x3b6c49,_0xbbbd05,_0x4292fe,_0x566aff,_0x4717c1,_0x3134a2,_0x3b6d53,_0x50cbb7,_0x572ce8,_0x14b40f,_0xaf6305,_0x23f49d){const _0x8cbf09=_0x4376d8,_0x155ed5=this;_0x155ed5['currentUser']=_0x572ce8[_0x8cbf09('0x2831')](),_0x155ed5[_0x8cbf09('0x73e')]=[],_0x155ed5[_0x8cbf09('0x1aeb')]=_0xaf6305,_0x155ed5['license']=_0x14b40f,_0x155ed5[_0x8cbf09('0x103e')]=_0x23f49d,_0x155ed5[_0x8cbf09('0x6ee')]={},_0x155ed5[_0x8cbf09('0x1572')]=_0x155ed5[_0x8cbf09('0x1aeb')]&&_0x155ed5['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x155ed5[_0x8cbf09('0x24d3')]='INTEGRATIONS.EDIT_SALESFORCECONFIGURATION',_0x155ed5[_0x8cbf09('0x78c')]=angular[_0x8cbf09('0x14e5')](_0x3b6d53),_0x155ed5['configurations']=_0x3134a2,_0x155ed5['newSalesforceConfiguration']=![];!_0x155ed5['salesforceConfiguration']&&(_0x155ed5[_0x8cbf09('0x78c')]={'channel':_0x8cbf09('0x1fe1'),'type':_0x8cbf09('0x1e77'),'ticketType':_0x8cbf09('0xa8')},_0x155ed5['title']=_0x8cbf09('0xa86'),_0x155ed5[_0x8cbf09('0x271a')]=!![]);_0x155ed5[_0x8cbf09('0x67b')]=_0x2bba3f,_0x155ed5['saveSalesforceConfiguration']=_0x3297a9,_0x155ed5['deleteSalesforceConfiguration']=_0x724d0d,_0x155ed5[_0x8cbf09('0x1300')]=_0x41a23d,_0x155ed5[_0x8cbf09('0x136e')]=_0x4801d4;function _0x2bba3f(){const _0xc8996d=_0x8cbf09;_0x155ed5['errors']=[],_0x50cbb7[_0xc8996d('0x1c19')][_0xc8996d('0x5e0')]({'id':_0x556cea['params']['id']},_0x155ed5[_0xc8996d('0x78c')])['$promise'][_0xc8996d('0x17e7')](function(_0x4aa8e1){const _0x467a8a=_0xc8996d;_0x155ed5[_0x467a8a('0x11d0')][_0x467a8a('0x1893')](_0x4aa8e1[_0x467a8a('0x16b2')]()),_0x4717c1[_0x467a8a('0x130d')]({'title':_0x467a8a('0x126a'),'msg':_0x155ed5['salesforceConfiguration']['name']?_0x155ed5[_0x467a8a('0x78c')][_0x467a8a('0x2aa')]+_0x467a8a('0x15a'):''}),_0x4801d4(_0x4aa8e1);})['catch'](function(_0x277322){const _0x2cda54=_0xc8996d;if(_0x277322[_0x2cda54('0x1457')]&&_0x277322[_0x2cda54('0x1457')][_0x2cda54('0x73e')]&&_0x277322['data'][_0x2cda54('0x73e')]['length']){_0x155ed5[_0x2cda54('0x73e')]=_0x277322['data'][_0x2cda54('0x73e')]||[{'message':_0x277322[_0x2cda54('0x9b6')](),'type':_0x2cda54('0x15c5')}];for(let _0x23eb7d=0x0;_0x23eb7d<_0x277322[_0x2cda54('0x1457')]['errors']['length'];_0x23eb7d+=0x1){_0x4717c1[_0x2cda54('0x1db9')]({'title':_0x277322[_0x2cda54('0x1457')][_0x2cda54('0x73e')][_0x23eb7d][_0x2cda54('0x412')],'msg':_0x277322[_0x2cda54('0x1457')][_0x2cda54('0x73e')][_0x23eb7d][_0x2cda54('0x1603')]});}}else _0x4717c1[_0x2cda54('0x1db9')]({'title':_0x277322['status']?_0x2cda54('0x14f7')+_0x277322[_0x2cda54('0x11c5')]+_0x2cda54('0x16e4')+_0x277322[_0x2cda54('0x1833')]:_0x2cda54('0x15c5'),'msg':_0x277322['data']?JSON[_0x2cda54('0x678')](_0x277322[_0x2cda54('0x1457')][_0x2cda54('0x1603')]):_0x277322[_0x2cda54('0x9b6')]()});});}function _0x3297a9(){const _0x316e0e=_0x8cbf09;_0x155ed5[_0x316e0e('0x73e')]=[],_0x50cbb7[_0x316e0e('0x1486')][_0x316e0e('0x27ba')]({'id':_0x155ed5[_0x316e0e('0x78c')]['id']},_0x155ed5[_0x316e0e('0x78c')])[_0x316e0e('0x1af5')][_0x316e0e('0x17e7')](function(_0x149f9e){const _0x6d83a1=_0x316e0e,_0x25f1b9=_0x49cbdd()[_0x6d83a1('0xe8e')](_0x155ed5['configurations'],{'id':_0x149f9e['id']});_0x25f1b9&&_0x49cbdd()[_0x6d83a1('0x1ced')](_0x25f1b9,_0x49cbdd()[_0x6d83a1('0x230a')](_0x149f9e[_0x6d83a1('0x16b2')](),_0x49cbdd()[_0x6d83a1('0x1c0f')](_0x25f1b9))),_0x4717c1[_0x6d83a1('0x130d')]({'title':_0x6d83a1('0x28b4'),'msg':_0x155ed5[_0x6d83a1('0x78c')]['name']?_0x155ed5[_0x6d83a1('0x78c')][_0x6d83a1('0x2aa')]+_0x6d83a1('0x15ca'):''}),_0x4801d4(_0x149f9e);})[_0x316e0e('0x16df')](function(_0x113029){const _0x28a593=_0x316e0e;if(_0x113029[_0x28a593('0x1457')]&&_0x113029['data']['errors']&&_0x113029[_0x28a593('0x1457')][_0x28a593('0x73e')][_0x28a593('0x1f73')]){_0x155ed5['errors']=_0x113029[_0x28a593('0x1457')][_0x28a593('0x73e')]||[{'message':_0x113029[_0x28a593('0x9b6')](),'type':_0x28a593('0xdf7')}];for(let _0x550d9d=0x0;_0x550d9d<_0x113029[_0x28a593('0x1457')][_0x28a593('0x73e')][_0x28a593('0x1f73')];_0x550d9d++){_0x4717c1[_0x28a593('0x1db9')]({'title':_0x113029['data'][_0x28a593('0x73e')][_0x550d9d][_0x28a593('0x412')],'msg':_0x113029[_0x28a593('0x1457')]['errors'][_0x550d9d][_0x28a593('0x1603')]});}}else _0x4717c1['error']({'title':_0x113029[_0x28a593('0x11c5')]?_0x28a593('0x14f7')+_0x113029[_0x28a593('0x11c5')]+_0x28a593('0x16e4')+_0x113029[_0x28a593('0x1833')]:'api.intSalesforceConfiguration.update','msg':_0x113029[_0x28a593('0x1457')]?JSON[_0x28a593('0x678')](_0x113029[_0x28a593('0x1457')][_0x28a593('0x1603')]):_0x113029[_0x28a593('0x9b6')]()});});}function _0x724d0d(_0x2856af){const _0xb78e49=_0x8cbf09;_0x155ed5['errors']=[];const _0x43a5fd=_0xbbbd05[_0xb78e49('0x1121')]()[_0xb78e49('0x24d3')](_0xb78e49('0x530'))[_0xb78e49('0xd5')](_0xb78e49('0xaab'))[_0xb78e49('0x2095')](_0xb78e49('0x1346'))['ok'](_0xb78e49('0x304'))['cancel']('Cancel')[_0xb78e49('0x104f')](_0x2856af);_0xbbbd05[_0xb78e49('0x28e2')](_0x43a5fd)[_0xb78e49('0x17e7')](function(){const _0x565299=_0xb78e49;_0x50cbb7['intSalesforceConfiguration'][_0x565299('0x1da6')]({'id':_0x155ed5[_0x565299('0x78c')]['id']})['$promise']['then'](function(){const _0x5dd3db=_0x565299;_0x49cbdd()[_0x5dd3db('0x5f3')](_0x155ed5[_0x5dd3db('0x11d0')],{'id':_0x155ed5[_0x5dd3db('0x78c')]['id']}),_0x4717c1[_0x5dd3db('0x130d')]({'title':_0x5dd3db('0x1c5b'),'msg':(_0x155ed5['salesforceConfiguration'][_0x5dd3db('0x2aa')]||'salesforceConfiguration')+_0x5dd3db('0x149f')}),_0x4801d4(_0x155ed5[_0x5dd3db('0x78c')]);})[_0x565299('0x16df')](function(_0xa2a1f5){const _0x457c87=_0x565299;if(_0xa2a1f5[_0x457c87('0x1457')]&&_0xa2a1f5['data']['errors']&&_0xa2a1f5['data'][_0x457c87('0x73e')]['length']){_0x155ed5[_0x457c87('0x73e')]=_0xa2a1f5[_0x457c87('0x1457')][_0x457c87('0x73e')]||[{'message':_0xa2a1f5[_0x457c87('0x9b6')](),'type':'api.intSalesforceConfiguration.delete'}];for(let _0x1e58d3=0x0;_0x1e58d3<_0xa2a1f5[_0x457c87('0x1457')]['errors'][_0x457c87('0x1f73')];_0x1e58d3++){_0x4717c1[_0x457c87('0x1db9')]({'title':_0xa2a1f5[_0x457c87('0x1457')]['errors'][_0x1e58d3][_0x457c87('0x412')],'msg':_0xa2a1f5[_0x457c87('0x1457')][_0x457c87('0x73e')][_0x1e58d3][_0x457c87('0x1603')]});}}else _0x4717c1[_0x457c87('0x1db9')]({'title':_0xa2a1f5[_0x457c87('0x11c5')]?'API:'+_0xa2a1f5['status']+_0x457c87('0x16e4')+_0xa2a1f5[_0x457c87('0x1833')]:_0x457c87('0x65c'),'msg':_0xa2a1f5[_0x457c87('0x1457')]?JSON[_0x457c87('0x678')](_0xa2a1f5[_0x457c87('0x1457')][_0x457c87('0x1603')]):_0xa2a1f5[_0x457c87('0x1603')]||_0xa2a1f5['toString']()});});},function(){});}function _0x41a23d(_0x17a0b5){return _0x17a0b5===null?undefined:new Date(_0x17a0b5);}function _0x4801d4(_0x15329b){const _0x19fb2e=_0x8cbf09;_0xbbbd05[_0x19fb2e('0x212a')](_0x15329b);}}const _0x169f44=_0x432e32;_0x32f16e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x1c4'),_0x4376d8('0x532'),_0x4376d8('0x28b8'),_0x4376d8('0x2679'),'type',_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x32f16e(_0x5964f8,_0xb4f153,_0x40ac88,_0x30fa39,_0x420310,_0x3b6a56,_0x32e760,_0x521cd5,_0x336a26,_0x24ff5a,_0xa0564e,_0xe249e4,_0x2aaf09){const _0x61c4cd=_0x4376d8,_0x330974=this;_0x330974[_0x61c4cd('0x197c')]=_0xe249e4[_0x61c4cd('0x2831')](),_0x330974[_0x61c4cd('0x73e')]=[],_0x330974['title']=_0x61c4cd('0x9dd')+_0x49cbdd()[_0x61c4cd('0x286f')](_0x24ff5a),_0x330974[_0x61c4cd('0x28b8')]=angular[_0x61c4cd('0x14e5')](_0x521cd5),_0x330974[_0x61c4cd('0x532')]=_0x32e760,_0x330974[_0x61c4cd('0x412')]=_0x24ff5a,_0x330974[_0x61c4cd('0x103e')]=_0x2aaf09,_0x330974[_0x61c4cd('0x1ac5')]=![];!_0x330974['item']&&(_0x330974[_0x61c4cd('0x28b8')]={'type':_0x61c4cd('0x1783')},_0x330974[_0x61c4cd('0x28b8')][_0x49cbdd()[_0x61c4cd('0xb41')](_0x24ff5a)+'Id']=_0x3b6a56['id'],_0x330974[_0x61c4cd('0x24d3')]=_0x61c4cd('0x6fe')+_0x49cbdd()[_0x61c4cd('0x286f')](_0x24ff5a),_0x330974[_0x61c4cd('0x1ac5')]=!![]);_0x330974[_0x61c4cd('0x1978')]=_0x42d3de,_0x330974[_0x61c4cd('0x1321')]=_0x56eaa4,_0x330974[_0x61c4cd('0x1350')]=_0x1a911c,_0x330974[_0x61c4cd('0x140a')]=_0x2f8563,_0x330974['closeDialog']=_0x341395,_0xa0564e[_0x61c4cd('0xb0a')][_0x61c4cd('0x1c53')]({'nolimit':!![]})[_0x61c4cd('0x1af5')][_0x61c4cd('0x17e7')](function(_0x39fd74){const _0x124668=_0x61c4cd;return _0x330974[_0x124668('0xd26')]=_0x39fd74[_0x124668('0x2319')]?_0x39fd74[_0x124668('0x2319')]:[],_0xa0564e[_0x124668('0x770')][_0x124668('0x2234')]()[_0x124668('0x1af5')];})['then'](function(_0x2112d1){const _0x47636a=_0x61c4cd;return _0x330974['voiceAgentReportColumns']=_0x49cbdd()[_0x47636a('0x4f1')](_0x49cbdd()['keys'](_0x2112d1),['$promise',_0x47636a('0x1314'),_0x47636a('0x7c9'),_0x47636a('0xb8a'),_0x47636a('0x1c59')]),_0x330974['voiceAgentReportColumns'][_0x47636a('0x269f')](_0x47636a('0x1bea')),_0xa0564e[_0x47636a('0xc6f')][_0x47636a('0x2234')]()[_0x47636a('0x1af5')];})['then'](function(_0x22dd41){const _0x542dc4=_0x61c4cd;_0x330974[_0x542dc4('0xe00')]=_0x49cbdd()[_0x542dc4('0x4f1')](_0x49cbdd()[_0x542dc4('0x1c0f')](_0x22dd41),['$promise',_0x542dc4('0x1314'),_0x542dc4('0x7c9'),'updatedAt',_0x542dc4('0x1c59')]),_0x330974['voiceDialReportColumns'][_0x542dc4('0x269f')](_0x542dc4('0x1bea'));})[_0x61c4cd('0x16df')](function(_0x2030a2){const _0x2c3a89=_0x61c4cd;_0x420310[_0x2c3a89('0x1db9')]({'title':_0x2030a2[_0x2c3a89('0x11c5')]?_0x2c3a89('0x14f7')+_0x2030a2['status']+_0x2c3a89('0x16e4')+_0x2030a2[_0x2c3a89('0x1833')]:_0x2c3a89('0x3a9'),'msg':_0x2030a2['data']?JSON[_0x2c3a89('0x678')](_0x2030a2['data']):_0x2030a2[_0x2c3a89('0x9b6')]()});}),_0xa0564e['intSalesforceAccount'][_0x61c4cd('0x9a')]({'id':_0x336a26['id'],'ticketType':_0x3b6a56['ticketType']?_0x3b6a56[_0x61c4cd('0x148e')]:undefined})[_0x61c4cd('0x1af5')][_0x61c4cd('0x17e7')](function(_0x546af4){const _0x396518=_0x61c4cd;_0x330974['accountConnected']=!![],_0x330974[_0x396518('0x9c9')]=_0x546af4[_0x396518('0x2319')]?_0x546af4[_0x396518('0x2319')]:[],_0x330974[_0x396518('0x28b8')][_0x396518('0x8d8')]&&(_0x330974['customField']=_0x49cbdd()[_0x396518('0xe8e')](_0x330974['fields'],{'id':_0x330974[_0x396518('0x28b8')]['idField']}));})[_0x61c4cd('0x16df')](function(_0x1b11da){const _0x1d2f93=_0x61c4cd;_0x330974[_0x1d2f93('0x20c2')]=![],console[_0x1d2f93('0x1db9')](_0x1b11da);});function _0x42d3de(){const _0x5deebc=_0x61c4cd;_0x330974[_0x5deebc('0x73e')]=[],_0x330974[_0x5deebc('0x1fa4')]&&(_0x330974[_0x5deebc('0x28b8')][_0x5deebc('0x8d8')]=_0x330974[_0x5deebc('0x1fa4')]['id'],_0x330974[_0x5deebc('0x28b8')][_0x5deebc('0x1a12')]=_0x330974[_0x5deebc('0x1fa4')]['name'],_0x330974['item'][_0x5deebc('0x1fa4')]=_0x330974[_0x5deebc('0x1fa4')][_0x5deebc('0x8fa')]),_0xa0564e[_0x5deebc('0x85a')]['save'](_0x330974[_0x5deebc('0x28b8')])[_0x5deebc('0x1af5')][_0x5deebc('0x17e7')](function(_0x3ab9db){const _0x23fe63=_0x5deebc;_0x330974[_0x23fe63('0x532')][_0x23fe63('0x1893')](_0x3ab9db),_0x420310[_0x23fe63('0x130d')]({'title':_0x49cbdd()[_0x23fe63('0xb41')](_0x24ff5a)+_0x23fe63('0x23ad'),'msg':_0x49cbdd()[_0x23fe63('0xb41')](_0x24ff5a)+_0x23fe63('0x15a')}),_0x341395();})[_0x5deebc('0x16df')](function(_0x14f0fe){const _0x4e97b=_0x5deebc;console['error'](_0x14f0fe),_0x330974[_0x4e97b('0x73e')]=_0x14f0fe[_0x4e97b('0x1457')][_0x4e97b('0x73e')]||[{'message':_0x14f0fe[_0x4e97b('0x9b6')](),'type':'api.item.save'}];});}function _0x56eaa4(){const _0x2944f5=_0x61c4cd;_0x330974[_0x2944f5('0x73e')]=[],_0x330974[_0x2944f5('0x1fa4')]&&(_0x330974[_0x2944f5('0x28b8')][_0x2944f5('0x8d8')]=_0x330974['customField']['id'],_0x330974[_0x2944f5('0x28b8')][_0x2944f5('0x1a12')]=_0x330974['customField']['name'],_0x330974[_0x2944f5('0x28b8')][_0x2944f5('0x1fa4')]=_0x330974['customField'][_0x2944f5('0x8fa')]),_0xa0564e[_0x2944f5('0x85a')]['update']({'id':_0x330974[_0x2944f5('0x28b8')]['id']},_0x330974[_0x2944f5('0x28b8')])[_0x2944f5('0x1af5')]['then'](function(_0x235d32){const _0x6a5b3a=_0x2944f5,_0x331624=_0x49cbdd()['find'](_0x330974[_0x6a5b3a('0x532')],{'id':_0x235d32['id']});_0x331624&&_0x49cbdd()[_0x6a5b3a('0x1ced')](_0x331624,_0x235d32),_0x420310[_0x6a5b3a('0x130d')]({'title':_0x49cbdd()['capitalize'](_0x24ff5a)+_0x6a5b3a('0x2b8'),'msg':_0x49cbdd()[_0x6a5b3a('0xb41')](_0x24ff5a)+'\x20has\x20been\x20saved!'}),_0x341395();})['catch'](function(_0x1619a0){const _0x13b6e2=_0x2944f5;console[_0x13b6e2('0x1db9')](_0x1619a0),_0x330974[_0x13b6e2('0x73e')]=_0x1619a0[_0x13b6e2('0x1457')]['errors']||[{'message':_0x1619a0['toString'](),'type':_0x13b6e2('0x428')}];});}function _0x1a911c(_0x4cfbfb){const _0x31a20e=_0x61c4cd;_0x330974[_0x31a20e('0x73e')]=[];const _0x537f31=_0x30fa39['confirm']()[_0x31a20e('0x24d3')](_0x31a20e('0x530'))[_0x31a20e('0xd5')](_0x31a20e('0x1664')+_0x24ff5a+'\x20will\x20be\x20deleted.')[_0x31a20e('0x2095')](_0x31a20e('0x1aaa')+_0x49cbdd()[_0x31a20e('0xb41')](_0x24ff5a))['ok'](_0x31a20e('0x304'))[_0x31a20e('0x1d47')](_0x31a20e('0x1b70'))[_0x31a20e('0x104f')](_0x4cfbfb);_0x30fa39['show'](_0x537f31)[_0x31a20e('0x17e7')](function(){const _0xeab1a9=_0x31a20e;_0xa0564e['intSalesforceField']['delete']({'id':_0x330974[_0xeab1a9('0x28b8')]['id']})[_0xeab1a9('0x1af5')]['then'](function(){const _0x22a0d3=_0xeab1a9;_0x49cbdd()[_0x22a0d3('0x5f3')](_0x330974['items'],{'id':_0x330974['item']['id']}),_0x420310['success']({'title':_0x49cbdd()[_0x22a0d3('0xb41')](_0x24ff5a)+_0x22a0d3('0x253a'),'msg':_0x49cbdd()[_0x22a0d3('0xb41')](_0x24ff5a)+_0x22a0d3('0x149f')}),_0x341395();})[_0xeab1a9('0x16df')](function(_0x201450){const _0x340721=_0xeab1a9;console[_0x340721('0x1db9')](_0x201450),_0x330974['errors']=_0x201450[_0x340721('0x1457')][_0x340721('0x73e')]||[{'message':_0x201450[_0x340721('0x9b6')](),'type':'api.item.delete'}];});},function(){});}function _0x2f8563(){const _0x4b8315=_0x61c4cd;return _0x330974['item'][_0x4b8315('0x4fd')]!==undefined?_0x330974[_0x4b8315('0x28b8')][_0x4b8315('0x4fd')]:'Please\x20select\x20a\x20variable';}function _0x341395(){const _0x219437=_0x61c4cd;_0x30fa39[_0x219437('0x212a')]();}}const _0x5547c0=_0x32f16e;_0x242ba3[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x375'),_0x4376d8('0x383')];function _0x242ba3(_0x5c082d,_0x253616,_0x4ee692,_0x303258,_0x5956cc,_0x4d5378,_0x5cd742,_0x6b602e,_0xa21e24,_0x2d4abc,_0x3fb1d5,_0x74f2fe){const _0x1d2b19=_0x4376d8,_0x1e4620=this;_0x1e4620[_0x1d2b19('0x197c')]=_0x2d4abc[_0x1d2b19('0x2831')](),_0x1e4620[_0x1d2b19('0x1d11')]=_0x4d5378,_0x1e4620[_0x1d2b19('0x1aeb')]=_0x5cd742,_0x1e4620['passwordPattern']=_0x1e4620[_0x1d2b19('0x1aeb')][_0x1d2b19('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1e4620[_0x1d2b19('0xaed')]=_0x253616[_0x1d2b19('0x14fe')]()+_0x1d2b19('0x14')+_0x253616[_0x1d2b19('0x108')](),_0x1e4620['salesforceAccount']=_0x3fb1d5||_0x5c082d[_0x1d2b19('0x16fb')][_0x1d2b19('0x375')]||{},_0x1e4620['userProfileSection']=_0x74f2fe&&_0x74f2fe[_0x1d2b19('0x335')]==0x1?_0x74f2fe['rows'][0x0]:null,_0x1e4620[_0x1d2b19('0x103e')]=_0x2d4abc[_0x1d2b19('0x17a9')](_0x1e4620[_0x1d2b19('0x383')]?_0x1e4620[_0x1d2b19('0x383')][_0x1d2b19('0x103e')]:null),_0x1e4620[_0x1d2b19('0x6ee')]={},_0x1e4620['selectedTab']=_0x5c082d[_0x1d2b19('0x16fb')][_0x1d2b19('0x1523')]||0x0,_0x1e4620[_0x1d2b19('0x99f')]=_0xa21e24[_0x1d2b19('0x1178')],_0x1e4620[_0x1d2b19('0xca0')]=_0x563768,_0x1e4620[_0x1d2b19('0x1de7')]=_0x4dd4bb;function _0x563768(){const _0x2934a0=_0x1d2b19;_0x5c082d['go'](_0x2934a0('0x2719'),{},{'reload':_0x2934a0('0x2719')});}function _0x4dd4bb(){const _0x23eb15=_0x1d2b19;_0x6b602e[_0x23eb15('0x1c19')][_0x23eb15('0x27ba')]({'id':_0x1e4620[_0x23eb15('0x375')]['id']},_0x1e4620[_0x23eb15('0x375')])[_0x23eb15('0x1af5')][_0x23eb15('0x17e7')](function(){const _0x1e2ceb=_0x23eb15;_0xa21e24['success']({'title':_0x1e2ceb('0x206f'),'msg':_0x1e4620[_0x1e2ceb('0x375')][_0x1e2ceb('0x2aa')]?_0x1e4620[_0x1e2ceb('0x375')][_0x1e2ceb('0x2aa')]+_0x1e2ceb('0x12b0'):''});})[_0x23eb15('0x16df')](function(_0xc309b4){const _0x1dcb41=_0x23eb15;_0xa21e24['error']({'title':_0xc309b4[_0x1dcb41('0x11c5')]?_0x1dcb41('0x14f7')+_0xc309b4[_0x1dcb41('0x11c5')]+'\x20-\x20'+_0xc309b4[_0x1dcb41('0x1833')]:_0x1dcb41('0x17b4'),'msg':_0xc309b4[_0x1dcb41('0x1457')]?JSON[_0x1dcb41('0x678')](_0xc309b4['data']):_0xc309b4[_0x1dcb41('0x9b6')]()});});}}const _0x3acce8=_0x242ba3,_0x364a08=_0x4cf2bc['p']+_0x4376d8('0x1790');_0x8b96a8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x1915'),'userProfile',_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting'];function _0x8b96a8(_0x235c32,_0x3902ba,_0x12dffd,_0x2d2214,_0x13b103,_0x51361c,_0x238af8,_0x11e78f,_0x8a4983,_0x2ead9c,_0x14c00f,_0x2adc4d,_0x405e78,_0x59a199,_0x206142,_0x54c6f8,_0x33096f){const _0x29a7b4=_0x4376d8,_0x1915e6=this;_0x1915e6[_0x29a7b4('0x1d11')]=_0x54c6f8,_0x1915e6[_0x29a7b4('0x1aeb')]=_0x33096f,_0x1915e6['currentUser']=_0x206142[_0x29a7b4('0x2831')](),_0x1915e6[_0x29a7b4('0x1915')]=_0x8a4983||{'count':0x0,'rows':[]},_0x1915e6[_0x29a7b4('0xdeb')]=_0x2ead9c,_0x1915e6[_0x29a7b4('0x383')]=_0x14c00f&&_0x14c00f[_0x29a7b4('0x335')]==0x1?_0x14c00f[_0x29a7b4('0x2319')][0x0]:null,_0x1915e6[_0x29a7b4('0x103e')]=_0x206142[_0x29a7b4('0x17a9')](_0x1915e6[_0x29a7b4('0x383')]?_0x1915e6['userProfileSection']['crudPermissions']:null),_0x1915e6[_0x29a7b4('0x23c3')]=_0x29a7b4('0x1915'),_0x1915e6['listOrder']='',_0x1915e6[_0x29a7b4('0x24e1')]=null,_0x1915e6[_0x29a7b4('0x13dc')]=[],_0x1915e6[_0x29a7b4('0x826')]={'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','limit':0xa,'page':0x1},_0x1915e6[_0x29a7b4('0xc41')]=_0x49cbdd()[_0x29a7b4('0x8de')]([{'option':_0x29a7b4('0x5d0'),'value':'\x27integrationTab\x27'},{'option':_0x29a7b4('0x639'),'value':'\x27newTab\x27'}],function(_0x5dec1d){const _0x41b4df=_0x29a7b4;return _0x49cbdd()['replace'](_0x5dec1d[_0x41b4df('0x175b')],new RegExp('\x27','g'),'');}),_0x1915e6[_0x29a7b4('0xcd4')]=_0x4f3497,_0x1915e6[_0x29a7b4('0xf3a')]=_0x1e60e8,_0x1915e6[_0x29a7b4('0xbf4')]=_0x439f17,_0x1915e6[_0x29a7b4('0x130d')]=_0x8b1aa,_0x1915e6[_0x29a7b4('0x1d86')]=_0x44e9cc,_0x1915e6[_0x29a7b4('0x283d')]=_0x4e0ad5,_0x1915e6['deleteSalesforceAccount']=_0xd0424b,_0x1915e6[_0x29a7b4('0x17b0')]=_0x15eb49,_0x1915e6[_0x29a7b4('0x22ab')]=_0x3938e5,_0x1915e6[_0x29a7b4('0x127')]=_0x18121a,_0x1915e6[_0x29a7b4('0x15c0')]=_0x237413;function _0x4f3497(_0x48bec3){const _0x37f718=_0x29a7b4;_0x12dffd['go'](_0x37f718('0x212b'),{'id':_0x48bec3['id'],'salesforceAccount':_0x48bec3,'crudPermissions':_0x1915e6[_0x37f718('0x103e')]});}function _0x1e60e8(_0x1a22d5){const _0x1297f6=_0x29a7b4;return _0x2adc4d[_0x1297f6('0x1c19')][_0x1297f6('0x9a')]({'id':_0x1a22d5['id'],'test':!![]})[_0x1297f6('0x1af5')][_0x1297f6('0x17e7')](function(){const _0x878cb=_0x1297f6;_0x59a199[_0x878cb('0x130d')]({'title':_0x878cb('0x283'),'msg':_0x878cb('0x120d')});})[_0x1297f6('0x16df')](function(_0xbc782b){const _0x21e67d=_0x1297f6;_0x59a199['error']({'title':_0x21e67d('0x283'),'msg':_0xbc782b['data']?_0xbc782b[_0x21e67d('0x1457')][_0x21e67d('0x1603')]?_0xbc782b[_0x21e67d('0x1457')][_0x21e67d('0x1603')]:JSON[_0x21e67d('0x678')](_0xbc782b[_0x21e67d('0x1457')]):_0xbc782b[_0x21e67d('0x9b6')]()});});}function _0x439f17(_0x386d9e,_0xb64d85){const _0x161d90=_0x29a7b4,_0x576dbf=_0x13b103[_0x161d90('0x1121')]()['title'](_0x161d90('0x5e1')+_0x49cbdd()[_0x161d90('0x1c98')](_0x161d90('0x375'))+'?')['htmlContent'](_0x161d90('0xa53')+(_0x386d9e[_0x161d90('0x2aa')]||_0x161d90('0x375'))+_0x161d90('0x1d23')+'\x20will\x20be\x20deleted.')[_0x161d90('0x2095')]('delete\x20salesforceAccount')[_0x161d90('0x104f')](_0xb64d85)['ok']('OK')[_0x161d90('0x1d47')]('CANCEL');_0x13b103[_0x161d90('0x28e2')](_0x576dbf)[_0x161d90('0x17e7')](function(){_0xd0424b(_0x386d9e);},function(){const _0xb8ebef=_0x161d90;console[_0xb8ebef('0x1d63')](_0xb8ebef('0x28a0'));});}let _0xe4098f=!![],_0x3a665d=0x1;_0x235c32[_0x29a7b4('0x620')](_0x29a7b4('0x3ed'),function(_0x3287ff,_0x116521){const _0x20a32b=_0x29a7b4;_0xe4098f?_0x238af8(function(){_0xe4098f=![];}):(!_0x116521&&(_0x3a665d=_0x1915e6[_0x20a32b('0x826')]['page']),_0x3287ff!==_0x116521&&(_0x1915e6[_0x20a32b('0x826')][_0x20a32b('0x115a')]=0x1),!_0x3287ff&&(_0x1915e6[_0x20a32b('0x826')][_0x20a32b('0x115a')]=_0x3a665d),_0x1915e6[_0x20a32b('0x1d86')]());});function _0x8b1aa(_0x140e03){const _0x3fca40=_0x29a7b4;_0x1915e6[_0x3fca40('0x1915')]=_0x140e03||{'count':0x0,'rows':[]};}function _0x44e9cc(){const _0x53928c=_0x29a7b4;_0x1915e6[_0x53928c('0x826')][_0x53928c('0xf19')]=(_0x1915e6[_0x53928c('0x826')][_0x53928c('0x115a')]-0x1)*_0x1915e6['query'][_0x53928c('0x193b')],_0x206142[_0x53928c('0x1ba2')]('admin')?_0x1915e6[_0x53928c('0x1691')]=_0x2adc4d[_0x53928c('0x1c19')][_0x53928c('0x1c53')](_0x1915e6['query'],_0x8b1aa)['$promise']:(_0x1915e6[_0x53928c('0x826')]['id']=_0x1915e6[_0x53928c('0xdeb')]['id'],_0x1915e6[_0x53928c('0x826')][_0x53928c('0x16f8')]=_0x53928c('0x1aa0'),_0x1915e6['promise']=_0x2adc4d[_0x53928c('0xdeb')][_0x53928c('0x2447')](_0x1915e6[_0x53928c('0x826')],_0x8b1aa)['$promise']);}function _0x4e0ad5(_0x16aa62,_0x4ed416){const _0x49ac28=_0x29a7b4;_0x13b103['show']({'controller':_0x49ac28('0x19e3'),'controllerAs':'vm','templateUrl':_0x364a08,'parent':angular[_0x49ac28('0x1ce1')](_0x51361c[_0x49ac28('0x13aa')]),'targetEvent':_0x16aa62,'clickOutsideToClose':!![],'locals':{'salesforceAccount':_0x4ed416,'salesforceAccounts':_0x1915e6[_0x49ac28('0x1915')]['rows'],'license':_0x1915e6[_0x49ac28('0x1d11')],'setting':_0x1915e6[_0x49ac28('0x1aeb')],'crudPermissions':_0x1915e6[_0x49ac28('0x103e')]}});}function _0xd0424b(_0x58aaf){const _0x172b4c=_0x29a7b4;_0x2adc4d[_0x172b4c('0x1c19')][_0x172b4c('0x1da6')]({'id':_0x58aaf['id']})[_0x172b4c('0x1af5')][_0x172b4c('0x17e7')](function(){const _0x472b77=_0x172b4c;_0x49cbdd()[_0x472b77('0x5f3')](_0x1915e6[_0x472b77('0x1915')][_0x472b77('0x2319')],{'id':_0x58aaf['id']}),_0x1915e6[_0x472b77('0x1915')][_0x472b77('0x335')]-=0x1,!_0x1915e6[_0x472b77('0x1915')][_0x472b77('0x2319')][_0x472b77('0x1f73')]&&_0x1915e6[_0x472b77('0x1d86')](),_0x59a199['success']({'title':_0x49cbdd()[_0x472b77('0x1c98')]('SalesforceAccount')+_0x472b77('0x2673'),'msg':_0x58aaf[_0x472b77('0x2aa')]?_0x58aaf['name']+'\x20has\x20been\x20deleted!':''});})[_0x172b4c('0x16df')](function(_0x204604){const _0x1cb7ba=_0x172b4c;if(_0x204604[_0x1cb7ba('0x1457')]&&_0x204604['data'][_0x1cb7ba('0x73e')]&&_0x204604[_0x1cb7ba('0x1457')][_0x1cb7ba('0x73e')][_0x1cb7ba('0x1f73')]){_0x1915e6['errors']=_0x204604['data'][_0x1cb7ba('0x73e')]||[{'message':_0x204604[_0x1cb7ba('0x9b6')](),'type':_0x1cb7ba('0x1647')}];for(let _0x5968b4=0x0;_0x5968b4<_0x204604['data'][_0x1cb7ba('0x73e')][_0x1cb7ba('0x1f73')];_0x5968b4++){_0x59a199[_0x1cb7ba('0x1db9')]({'title':_0x204604['data'][_0x1cb7ba('0x73e')][_0x5968b4][_0x1cb7ba('0x412')],'msg':_0x204604[_0x1cb7ba('0x1457')]['errors'][_0x5968b4][_0x1cb7ba('0x1603')]});}}else _0x59a199['error']({'title':_0x204604[_0x1cb7ba('0x11c5')]?_0x1cb7ba('0x14f7')+_0x204604['status']+_0x1cb7ba('0x16e4')+_0x204604[_0x1cb7ba('0x1833')]:_0x1cb7ba('0x1647'),'msg':_0x204604[_0x1cb7ba('0x1457')]?JSON[_0x1cb7ba('0x678')](_0x204604[_0x1cb7ba('0x1457')][_0x1cb7ba('0x1603')]):_0x204604['message']||_0x204604[_0x1cb7ba('0x9b6')]()});});}function _0x15eb49(){const _0x1fb837=_0x29a7b4,_0x44c549=angular[_0x1fb837('0x14e5')](_0x1915e6[_0x1fb837('0x13dc')]);return _0x1915e6['selectedSalesforceAccounts']=[],_0x44c549;}function _0x3938e5(_0x91f02c){const _0x25cb6c=_0x29a7b4,_0x140993=_0x13b103['confirm']()[_0x25cb6c('0x24d3')](_0x25cb6c('0x269b'))[_0x25cb6c('0x211f')](''+_0x1915e6['selectedSalesforceAccounts'][_0x25cb6c('0x1f73')]+_0x25cb6c('0x145a')+_0x25cb6c('0xe9f'))['ariaLabel'](_0x25cb6c('0x1ac0'))[_0x25cb6c('0x104f')](_0x91f02c)['ok']('OK')[_0x25cb6c('0x1d47')](_0x25cb6c('0x28a0'));_0x13b103[_0x25cb6c('0x28e2')](_0x140993)[_0x25cb6c('0x17e7')](function(){const _0x3c4cc0=_0x25cb6c;_0x1915e6[_0x3c4cc0('0x13dc')][_0x3c4cc0('0xccd')](function(_0x3f198a){_0xd0424b(_0x3f198a);}),_0x1915e6[_0x3c4cc0('0x13dc')]=[];});}function _0x18121a(){const _0x24bc29=_0x29a7b4;_0x1915e6[_0x24bc29('0x13dc')]=[];}function _0x237413(){const _0x2ef2a7=_0x29a7b4;_0x1915e6[_0x2ef2a7('0x13dc')]=_0x1915e6[_0x2ef2a7('0x1915')][_0x2ef2a7('0x2319')];}}const _0x1dc397=_0x8b96a8;_0x3e9617[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),'servicenowAccounts','servicenowAccount','api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x3e9617(_0x256319,_0x144eb1,_0x40b2b9,_0xac8bfb,_0x7719e3,_0x1e35a8,_0x2d5453,_0xde43ce,_0x469d58,_0x4725fb,_0x337ce7,_0x570d24,_0x4b3ccd,_0x190ebb){const _0x58e078=_0x4376d8,_0x1bdfe9=this;_0x1bdfe9[_0x58e078('0x197c')]=_0x337ce7[_0x58e078('0x2831')](),_0x1bdfe9[_0x58e078('0x73e')]=[],_0x1bdfe9[_0x58e078('0x1aeb')]=_0x4b3ccd,_0x1bdfe9[_0x58e078('0x1d11')]=_0x570d24,_0x1bdfe9['crudPermissions']=_0x190ebb,_0x1bdfe9[_0x58e078('0x6ee')]={},_0x1bdfe9[_0x58e078('0x1572')]=_0x1bdfe9[_0x58e078('0x1aeb')]&&_0x1bdfe9[_0x58e078('0x1aeb')][_0x58e078('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1bdfe9['title']='INTEGRATIONS.EDIT_SERVICENOWACCOUNT',_0x1bdfe9[_0x58e078('0x265f')]=angular['copy'](_0x469d58),_0x1bdfe9[_0x58e078('0x2291')]=_0xde43ce,_0x1bdfe9['newServicenowAccount']=![];!_0x1bdfe9[_0x58e078('0x265f')]&&(_0x1bdfe9[_0x58e078('0x265f')]={'serverUrl':_0x40b2b9[_0x58e078('0x14fe')]()+_0x58e078('0x14')+_0x40b2b9[_0x58e078('0x108')]()+(_0x40b2b9[_0x58e078('0x2442')]()?':'+_0x40b2b9[_0x58e078('0x2442')]():'')},_0x1bdfe9['title']=_0x58e078('0x2648'),_0x1bdfe9['newServicenowAccount']=!![]);_0x1bdfe9[_0x58e078('0x81c')]=_0x2f57fd,_0x1bdfe9[_0x58e078('0x24f1')]=_0x59e909,_0x1bdfe9['deleteServicenowAccount']=_0x5dea13,_0x1bdfe9['getDateFromString']=_0x2e5080,_0x1bdfe9[_0x58e078('0x136e')]=_0x1f1eed;function _0x2f57fd(){const _0x48022b=_0x58e078;_0x1bdfe9[_0x48022b('0x73e')]=[],_0x4725fb[_0x48022b('0x18c2')][_0x48022b('0x2439')](_0x1bdfe9[_0x48022b('0x265f')])[_0x48022b('0x1af5')]['then'](function(_0x22f8e0){const _0x5e9b50=_0x48022b;_0x1bdfe9[_0x5e9b50('0x2291')][_0x5e9b50('0x1893')](_0x22f8e0[_0x5e9b50('0x16b2')]()),_0x2d5453[_0x5e9b50('0x130d')]({'title':_0x5e9b50('0x1105'),'msg':_0x1bdfe9['servicenowAccount'][_0x5e9b50('0x2aa')]?_0x1bdfe9[_0x5e9b50('0x265f')][_0x5e9b50('0x2aa')]+_0x5e9b50('0x15a'):''}),_0x1f1eed(_0x22f8e0);})[_0x48022b('0x16df')](function(_0x4119e8){const _0x1518b7=_0x48022b;if(_0x4119e8[_0x1518b7('0x1457')]&&_0x4119e8['data'][_0x1518b7('0x73e')]&&_0x4119e8[_0x1518b7('0x1457')][_0x1518b7('0x73e')]['length']){_0x1bdfe9[_0x1518b7('0x73e')]=_0x4119e8[_0x1518b7('0x1457')][_0x1518b7('0x73e')]||[{'message':_0x4119e8[_0x1518b7('0x9b6')](),'type':_0x1518b7('0x2511')}];for(let _0x44f64d=0x0;_0x44f64d<_0x4119e8['data']['errors'][_0x1518b7('0x1f73')];_0x44f64d+=0x1){_0x2d5453[_0x1518b7('0x1db9')]({'title':_0x4119e8[_0x1518b7('0x1457')][_0x1518b7('0x73e')][_0x44f64d][_0x1518b7('0x412')],'msg':_0x4119e8[_0x1518b7('0x1457')][_0x1518b7('0x73e')][_0x44f64d]['message']});}}else _0x2d5453[_0x1518b7('0x1db9')]({'title':_0x4119e8[_0x1518b7('0x11c5')]?_0x1518b7('0x14f7')+_0x4119e8['status']+'\x20-\x20'+_0x4119e8['statusText']:_0x1518b7('0x2511'),'msg':_0x4119e8[_0x1518b7('0x1457')]?JSON['stringify'](_0x4119e8[_0x1518b7('0x1457')]['message']):_0x4119e8[_0x1518b7('0x9b6')]()});});}function _0x59e909(){const _0x4c801a=_0x58e078;_0x1bdfe9[_0x4c801a('0x73e')]=[],_0x4725fb[_0x4c801a('0x18c2')]['update']({'id':_0x1bdfe9[_0x4c801a('0x265f')]['id']},_0x1bdfe9[_0x4c801a('0x265f')])[_0x4c801a('0x1af5')]['then'](function(_0x19649a){const _0x3f9d6c=_0x4c801a,_0x457da1=_0x49cbdd()['find'](_0x1bdfe9[_0x3f9d6c('0x2291')],{'id':_0x19649a['id']});_0x457da1&&_0x49cbdd()['merge'](_0x457da1,_0x49cbdd()[_0x3f9d6c('0x230a')](_0x19649a[_0x3f9d6c('0x16b2')](),_0x49cbdd()[_0x3f9d6c('0x1c0f')](_0x457da1))),_0x2d5453[_0x3f9d6c('0x130d')]({'title':'ServicenowAccount\x20properly\x20saved!','msg':_0x1bdfe9[_0x3f9d6c('0x265f')][_0x3f9d6c('0x2aa')]?_0x1bdfe9[_0x3f9d6c('0x265f')][_0x3f9d6c('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x1f1eed(_0x19649a);})[_0x4c801a('0x16df')](function(_0x29174a){const _0xa21bd5=_0x4c801a;if(_0x29174a[_0xa21bd5('0x1457')]&&_0x29174a[_0xa21bd5('0x1457')][_0xa21bd5('0x73e')]&&_0x29174a['data'][_0xa21bd5('0x73e')][_0xa21bd5('0x1f73')]){_0x1bdfe9[_0xa21bd5('0x73e')]=_0x29174a['data'][_0xa21bd5('0x73e')]||[{'message':_0x29174a[_0xa21bd5('0x9b6')](),'type':_0xa21bd5('0xab2')}];for(let _0x53746d=0x0;_0x53746d<_0x29174a[_0xa21bd5('0x1457')][_0xa21bd5('0x73e')][_0xa21bd5('0x1f73')];_0x53746d++){_0x2d5453[_0xa21bd5('0x1db9')]({'title':_0x29174a['data'][_0xa21bd5('0x73e')][_0x53746d][_0xa21bd5('0x412')],'msg':_0x29174a[_0xa21bd5('0x1457')][_0xa21bd5('0x73e')][_0x53746d][_0xa21bd5('0x1603')]});}}else _0x2d5453[_0xa21bd5('0x1db9')]({'title':_0x29174a[_0xa21bd5('0x11c5')]?_0xa21bd5('0x14f7')+_0x29174a[_0xa21bd5('0x11c5')]+_0xa21bd5('0x16e4')+_0x29174a['statusText']:_0xa21bd5('0xab2'),'msg':_0x29174a[_0xa21bd5('0x1457')]?JSON[_0xa21bd5('0x678')](_0x29174a['data']['message']):_0x29174a[_0xa21bd5('0x9b6')]()});});}function _0x5dea13(_0x52e824){const _0xf6dae6=_0x58e078;_0x1bdfe9['errors']=[];const _0x5066ad=_0xac8bfb['confirm']()['title']('Are\x20you\x20sure?')[_0xf6dae6('0xd5')](_0xf6dae6('0x20ff'))[_0xf6dae6('0x2095')](_0xf6dae6('0x635'))['ok'](_0xf6dae6('0x304'))[_0xf6dae6('0x1d47')]('Cancel')['targetEvent'](_0x52e824);_0xac8bfb[_0xf6dae6('0x28e2')](_0x5066ad)['then'](function(){const _0x337e8b=_0xf6dae6;_0x4725fb[_0x337e8b('0x18c2')][_0x337e8b('0x1da6')]({'id':_0x1bdfe9['servicenowAccount']['id']})[_0x337e8b('0x1af5')][_0x337e8b('0x17e7')](function(){const _0x25b18e=_0x337e8b;_0x49cbdd()['remove'](_0x1bdfe9[_0x25b18e('0x2291')],{'id':_0x1bdfe9[_0x25b18e('0x265f')]['id']}),_0x2d5453['success']({'title':_0x25b18e('0x204d'),'msg':(_0x1bdfe9['servicenowAccount'][_0x25b18e('0x2aa')]||_0x25b18e('0x265f'))+'\x20has\x20been\x20deleted!'}),_0x1f1eed(_0x1bdfe9[_0x25b18e('0x265f')]);})[_0x337e8b('0x16df')](function(_0x1479c8){const _0x3f496f=_0x337e8b;if(_0x1479c8[_0x3f496f('0x1457')]&&_0x1479c8[_0x3f496f('0x1457')]['errors']&&_0x1479c8['data'][_0x3f496f('0x73e')][_0x3f496f('0x1f73')]){_0x1bdfe9['errors']=_0x1479c8[_0x3f496f('0x1457')][_0x3f496f('0x73e')]||[{'message':_0x1479c8['toString'](),'type':_0x3f496f('0x8d2')}];for(let _0x5eb205=0x0;_0x5eb205<_0x1479c8[_0x3f496f('0x1457')][_0x3f496f('0x73e')][_0x3f496f('0x1f73')];_0x5eb205++){_0x2d5453[_0x3f496f('0x1db9')]({'title':_0x1479c8[_0x3f496f('0x1457')][_0x3f496f('0x73e')][_0x5eb205][_0x3f496f('0x412')],'msg':_0x1479c8[_0x3f496f('0x1457')][_0x3f496f('0x73e')][_0x5eb205]['message']});}}else _0x2d5453[_0x3f496f('0x1db9')]({'title':_0x1479c8['status']?_0x3f496f('0x14f7')+_0x1479c8[_0x3f496f('0x11c5')]+_0x3f496f('0x16e4')+_0x1479c8[_0x3f496f('0x1833')]:'api.intServicenowAccount.delete','msg':_0x1479c8[_0x3f496f('0x1457')]?JSON['stringify'](_0x1479c8[_0x3f496f('0x1457')][_0x3f496f('0x1603')]):_0x1479c8[_0x3f496f('0x1603')]||_0x1479c8[_0x3f496f('0x9b6')]()});});},function(){});}function _0x2e5080(_0x438d46){return _0x438d46===null?undefined:new Date(_0x438d46);}function _0x1f1eed(_0x53ba4d){const _0x2b3bb5=_0x58e078;_0xac8bfb[_0x2b3bb5('0x212a')](_0x53ba4d);}}const _0xe2cdc=_0x3e9617,_0x5b4203=_0x4cf2bc['p']+_0x4376d8('0x33d'),_0x588b90=_0x4cf2bc['p']+_0x4376d8('0x531');_0x376372[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'api',_0x4376d8('0x108a'),'Auth'];function _0x376372(_0x2c7ea4,_0x460a5c,_0x5c12a3,_0x211ceb,_0xe50605){const _0x81bd98=_0x4376d8,_0x393a60=this;_0x393a60[_0x81bd98('0x197c')]=_0xe50605[_0x81bd98('0x2831')](),_0x393a60[_0x81bd98('0x265f')]={},_0x393a60[_0x81bd98('0xa6f')]={},_0x393a60[_0x81bd98('0x11d0')]=[],_0x393a60[_0x81bd98('0x5de')]=-0x1,_0x393a60[_0x81bd98('0x103e')],_0x393a60[_0x81bd98('0x161d')]=_0x492c3e,_0x393a60['getServicenowConfiguration']=_0x2df47a,_0x393a60[_0x81bd98('0x12c0')]=_0x63a652,_0x393a60[_0x81bd98('0xd75')]=_0x3d9737;function _0x492c3e(_0x5927fd,_0x1c82b5){const _0x5c9924=_0x81bd98;_0x393a60[_0x5c9924('0x265f')]=_0x5927fd,_0x393a60[_0x5c9924('0x103e')]=typeof _0x1c82b5!=='undefined'?_0x1c82b5:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x5c12a3[_0x5c9924('0x18c2')][_0x5c9924('0xee0')]({'id':_0x393a60['servicenowAccount']['id'],'sort':_0x5c9924('0x1ac6')})[_0x5c9924('0x1af5')][_0x5c9924('0x17e7')](function(_0x2f9f64){const _0x34e22e=_0x5c9924;return _0x393a60[_0x34e22e('0x11d0')]=_0x2f9f64['rows']?_0x2f9f64[_0x34e22e('0x2319')]:[],_0x393a60['configurations'][_0x34e22e('0x1f73')]&&_0x393a60['getServicenowConfiguration'](0x0),_0x5c12a3[_0x34e22e('0xb0a')][_0x34e22e('0x1c53')]({'nolimit':!![],'sort':_0x34e22e('0x2aa')})[_0x34e22e('0x1af5')];})['then'](function(_0x3245f0){const _0x14e09f=_0x5c9924;_0x393a60[_0x14e09f('0xd26')]=_0x3245f0[_0x14e09f('0x2319')]?_0x3245f0[_0x14e09f('0x2319')]:[],_0x393a60['variablesById']=_0x49cbdd()[_0x14e09f('0x8de')](_0x393a60[_0x14e09f('0xd26')],'id');})[_0x5c9924('0x16df')](function(_0x33b9df){const _0x39d1a4=_0x5c9924;_0x211ceb['error']({'title':_0x33b9df['status']?'API:'+_0x33b9df['status']+_0x39d1a4('0x16e4')+_0x33b9df['statusText']:_0x39d1a4('0x183b'),'msg':_0x33b9df[_0x39d1a4('0x1457')]?JSON[_0x39d1a4('0x678')](_0x33b9df[_0x39d1a4('0x1457')]):_0x33b9df[_0x39d1a4('0x9b6')]()});});}function _0x2df47a(_0x9f2bce){const _0x166a13=_0x81bd98;_0x393a60[_0x166a13('0xa6f')]=_0x393a60[_0x166a13('0x11d0')][_0x9f2bce],_0x393a60[_0x166a13('0x5de')]=_0x9f2bce,_0x5c12a3[_0x166a13('0xe4a')]['getSubjects']({'id':_0x393a60[_0x166a13('0xa6f')]['id']})[_0x166a13('0x1af5')]['then'](function(_0x1386aa){const _0x3d5639=_0x166a13;return _0x393a60['subjects']=_0x1386aa['rows']?_0x1386aa[_0x3d5639('0x2319')]:[],_0x5c12a3[_0x3d5639('0xe4a')]['getDescriptions']({'id':_0x393a60[_0x3d5639('0xa6f')]['id']})['$promise'];})[_0x166a13('0x17e7')](function(_0x5d10bf){const _0x197d0c=_0x166a13;return _0x393a60[_0x197d0c('0x1a2a')]=_0x5d10bf['rows']?_0x5d10bf[_0x197d0c('0x2319')]:[],_0x5c12a3[_0x197d0c('0xe4a')]['getFields']({'id':_0x393a60['servicenowConfiguration']['id']})[_0x197d0c('0x1af5')];})['then'](function(_0x240dad){const _0x3b939f=_0x166a13;_0x393a60[_0x3b939f('0x9c9')]=_0x240dad[_0x3b939f('0x2319')]?_0x240dad['rows']:[];})[_0x166a13('0x16df')](function(_0x53c0cd){const _0x3ea7ce=_0x166a13;_0x211ceb[_0x3ea7ce('0x1db9')]({'title':_0x53c0cd[_0x3ea7ce('0x11c5')]?_0x3ea7ce('0x14f7')+_0x53c0cd['status']+_0x3ea7ce('0x16e4')+_0x53c0cd[_0x3ea7ce('0x1833')]:_0x3ea7ce('0x23be'),'msg':_0x53c0cd[_0x3ea7ce('0x1457')]?JSON[_0x3ea7ce('0x678')](_0x53c0cd['data']):_0x53c0cd[_0x3ea7ce('0x9b6')]()});});}function _0x63a652(_0x37e7c6,_0x5277b3){const _0x3bfaee=_0x81bd98;_0x2c7ea4[_0x3bfaee('0x28e2')]({'controller':_0x3bfaee('0x1909'),'controllerAs':'vm','templateUrl':_0x5b4203,'parent':angular[_0x3bfaee('0x1ce1')](_0x460a5c[_0x3bfaee('0x13aa')]),'targetEvent':_0x37e7c6,'clickOutsideToClose':!![],'locals':{'servicenowConfiguration':_0x5277b3,'configurations':_0x393a60[_0x3bfaee('0x11d0')],'license':null,'setting':null,'crudPermissions':_0x393a60[_0x3bfaee('0x103e')]}})['finally'](function(){const _0x4eaa4c=_0x3bfaee;_0x393a60[_0x4eaa4c('0xfce')](0x0);});}function _0x3d9737(_0x113e0a,_0x4ee20c){const _0x4bb7b1=_0x81bd98,_0x569da3=_0x2c7ea4['confirm']()[_0x4bb7b1('0x24d3')](_0x4bb7b1('0x1f61'))[_0x4bb7b1('0x211f')](_0x4bb7b1('0xa53')+(_0x4ee20c[_0x4bb7b1('0x2aa')]||_0x4bb7b1('0xa6f'))+''+_0x4bb7b1('0xe9f'))[_0x4bb7b1('0x2095')](_0x4bb7b1('0x2508'))[_0x4bb7b1('0x104f')](_0x113e0a)['ok']('OK')[_0x4bb7b1('0x1d47')](_0x4bb7b1('0x28a0'));_0x2c7ea4[_0x4bb7b1('0x28e2')](_0x569da3)[_0x4bb7b1('0x17e7')](function(){const _0x22748e=_0x4bb7b1;_0x5c12a3['intServicenowConfiguration'][_0x22748e('0x1da6')]({'id':_0x4ee20c['id']})[_0x22748e('0x1af5')]['then'](function(){const _0x16c154=_0x22748e;_0x49cbdd()['remove'](_0x393a60['configurations'],{'id':_0x4ee20c['id']}),_0x211ceb['success']({'title':_0x16c154('0x117d'),'msg':_0x4ee20c[_0x16c154('0x2aa')]?_0x4ee20c[_0x16c154('0x2aa')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x12eb9e){const _0x54b9f9=_0x22748e;_0x211ceb[_0x54b9f9('0x1db9')]({'title':_0x12eb9e['status']?_0x54b9f9('0x14f7')+_0x12eb9e[_0x54b9f9('0x11c5')]+_0x54b9f9('0x16e4')+_0x12eb9e[_0x54b9f9('0x1833')]:_0x54b9f9('0x11b4'),'msg':_0x12eb9e[_0x54b9f9('0x1457')]?JSON[_0x54b9f9('0x678')](_0x12eb9e[_0x54b9f9('0x1457')]):_0x12eb9e[_0x54b9f9('0x9b6')]()});})['finally'](function(){const _0x3d03d1=_0x22748e;_0x393a60[_0x3d03d1('0xfce')](0x0);});},function(){const _0x212621=_0x4bb7b1;console[_0x212621('0x1d63')](_0x212621('0x28a0'));});}_0x393a60[_0x81bd98('0x95b')]=[],_0x393a60[_0x81bd98('0x1066')]=_0x5d68be,_0x393a60[_0x81bd98('0x268a')]=_0x155cac,_0x393a60[_0x81bd98('0x2738')]=_0x367c0c;function _0x5d68be(_0x4b907c,_0x490b43){const _0x1c3267=_0x81bd98;_0x2c7ea4[_0x1c3267('0x28e2')]({'controller':'CreateOrEditServicenowAccountItemDialogController','controllerAs':'vm','templateUrl':_0x588b90,'parent':angular[_0x1c3267('0x1ce1')](_0x460a5c['body']),'targetEvent':_0x4b907c,'clickOutsideToClose':!![],'locals':{'type':'subject','item':_0x490b43,'items':_0x393a60[_0x1c3267('0x1261')],'configuration':_0x393a60[_0x1c3267('0xa6f')],'account':_0x393a60['servicenowAccount'],'license':null,'setting':null,'crudPermissions':_0x393a60[_0x1c3267('0x103e')]}});}function _0x320d27(_0x4bd5c9){const _0x159554=_0x81bd98;_0x5c12a3[_0x159554('0x129')][_0x159554('0x1da6')]({'id':_0x4bd5c9['id']})[_0x159554('0x1af5')]['then'](function(){const _0x2f73f2=_0x159554;_0x49cbdd()[_0x2f73f2('0x5f3')](_0x393a60['subjects'],{'id':_0x4bd5c9['id']}),_0x211ceb['success']({'title':_0x2f73f2('0x198'),'msg':_0x2f73f2('0x179c')});})[_0x159554('0x16df')](function(_0x472bec){const _0x41f874=_0x159554;_0x211ceb[_0x41f874('0x1db9')]({'title':_0x472bec['status']?_0x41f874('0x14f7')+_0x472bec[_0x41f874('0x11c5')]+_0x41f874('0x16e4')+_0x472bec[_0x41f874('0x1833')]:_0x41f874('0x14bd'),'msg':_0x472bec[_0x41f874('0x1457')]?JSON[_0x41f874('0x678')](_0x472bec[_0x41f874('0x1457')]):_0x472bec['toString']()});});}function _0x155cac(_0x3c5231,_0x38abfa){const _0x561e1e=_0x81bd98,_0x2e5c86=_0x2c7ea4[_0x561e1e('0x1121')]()[_0x561e1e('0x24d3')](_0x561e1e('0x1371'))['htmlContent']('Subject'+_0x561e1e('0xe9f'))['ariaLabel'](_0x561e1e('0x16d1'))[_0x561e1e('0x104f')](_0x3c5231)['ok']('OK')[_0x561e1e('0x1d47')](_0x561e1e('0x28a0'));_0x2c7ea4['show'](_0x2e5c86)[_0x561e1e('0x17e7')](function(){_0x320d27(_0x38abfa);},function(){const _0x564e8c=_0x561e1e;console[_0x564e8c('0x1d63')](_0x564e8c('0x28a0'));});}function _0x367c0c(_0x745895){const _0x3016da=_0x81bd98,_0x6a043b=_0x2c7ea4['confirm']()[_0x3016da('0x24d3')](_0x3016da('0xb0b'))[_0x3016da('0x211f')](''+_0x393a60[_0x3016da('0x95b')][_0x3016da('0x1f73')]+_0x3016da('0x145a')+_0x3016da('0xe9f'))[_0x3016da('0x2095')](_0x3016da('0x1bc'))[_0x3016da('0x104f')](_0x745895)['ok']('OK')['cancel'](_0x3016da('0x28a0'));_0x2c7ea4[_0x3016da('0x28e2')](_0x6a043b)[_0x3016da('0x17e7')](function(){const _0x59833a=_0x3016da;_0x393a60[_0x59833a('0x95b')][_0x59833a('0xccd')](function(_0x2bd589){_0x320d27(_0x2bd589);}),_0x393a60[_0x59833a('0x95b')]=[];});}_0x393a60['selectedDescriptions']=[],_0x393a60['createOrEditDescription']=_0x27725a,_0x393a60[_0x81bd98('0x178')]=_0x450c67,_0x393a60[_0x81bd98('0xe42')]=_0xb9b9b3;function _0x27725a(_0x1e9c3e,_0x256a8e){const _0x4954f9=_0x81bd98;_0x2c7ea4[_0x4954f9('0x28e2')]({'controller':'CreateOrEditServicenowAccountItemDialogController','controllerAs':'vm','templateUrl':_0x588b90,'parent':angular[_0x4954f9('0x1ce1')](_0x460a5c[_0x4954f9('0x13aa')]),'targetEvent':_0x1e9c3e,'clickOutsideToClose':!![],'locals':{'type':'description','item':_0x256a8e,'items':_0x393a60[_0x4954f9('0x1a2a')],'configuration':_0x393a60[_0x4954f9('0xa6f')],'account':_0x393a60['servicenowAccount'],'license':null,'setting':null,'crudPermissions':_0x393a60['crudPermissions']}});}function _0x1c641a(_0x2b05b1){const _0x592eb3=_0x81bd98;_0x5c12a3[_0x592eb3('0x129')][_0x592eb3('0x1da6')]({'id':_0x2b05b1['id']})['$promise'][_0x592eb3('0x17e7')](function(){const _0x49e885=_0x592eb3;_0x49cbdd()[_0x49e885('0x5f3')](_0x393a60[_0x49e885('0x1a2a')],{'id':_0x2b05b1['id']}),_0x211ceb['success']({'title':_0x49e885('0x1504'),'msg':_0x49e885('0x56f')});})['catch'](function(_0x3112da){const _0x51ef87=_0x592eb3;_0x211ceb['error']({'title':_0x3112da[_0x51ef87('0x11c5')]?'API:'+_0x3112da[_0x51ef87('0x11c5')]+_0x51ef87('0x16e4')+_0x3112da[_0x51ef87('0x1833')]:_0x51ef87('0x14bd'),'msg':_0x3112da[_0x51ef87('0x1457')]?JSON['stringify'](_0x3112da[_0x51ef87('0x1457')]):_0x3112da[_0x51ef87('0x9b6')]()});});}function _0x450c67(_0x523a34,_0x58f9ac){const _0x59025f=_0x81bd98,_0x59c9a8=_0x2c7ea4[_0x59025f('0x1121')]()['title'](_0x59025f('0x2bb'))[_0x59025f('0x211f')](_0x59025f('0x217a')+_0x59025f('0xe9f'))[_0x59025f('0x2095')](_0x59025f('0x1cf7'))[_0x59025f('0x104f')](_0x523a34)['ok']('OK')[_0x59025f('0x1d47')]('CANCEL');_0x2c7ea4[_0x59025f('0x28e2')](_0x59c9a8)[_0x59025f('0x17e7')](function(){_0x1c641a(_0x58f9ac);},function(){const _0x258740=_0x59025f;console[_0x258740('0x1d63')](_0x258740('0x28a0'));});}function _0xb9b9b3(_0x573241){const _0x50c96d=_0x81bd98,_0x3b97cc=_0x2c7ea4['confirm']()[_0x50c96d('0x24d3')](_0x50c96d('0x12d4'))[_0x50c96d('0x211f')](_0x50c96d('0xa53')+_0x393a60[_0x50c96d('0xb0f')][_0x50c96d('0x1f73')]+_0x50c96d('0x145a')+'\x20will\x20be\x20deleted.')[_0x50c96d('0x2095')](_0x50c96d('0x1fb1'))['targetEvent'](_0x573241)['ok']('OK')['cancel'](_0x50c96d('0x28a0'));_0x2c7ea4[_0x50c96d('0x28e2')](_0x3b97cc)[_0x50c96d('0x17e7')](function(){const _0x5b8f71=_0x50c96d;_0x393a60['selectedDescriptions'][_0x5b8f71('0xccd')](function(_0x32b7d2){_0x1c641a(_0x32b7d2);}),_0x393a60[_0x5b8f71('0xb0f')]=[];});}_0x393a60['selectedFields']=[],_0x393a60[_0x81bd98('0xc53')]=_0x392f72,_0x393a60[_0x81bd98('0x7f5')]=_0x1edb61,_0x393a60[_0x81bd98('0xd1b')]=_0x2d888c;function _0x392f72(_0x1a0025,_0x158535){const _0x3f41d5=_0x81bd98;_0x2c7ea4[_0x3f41d5('0x28e2')]({'controller':_0x3f41d5('0xc95'),'controllerAs':'vm','templateUrl':_0x588b90,'parent':angular['element'](_0x460a5c[_0x3f41d5('0x13aa')]),'targetEvent':_0x1a0025,'clickOutsideToClose':!![],'locals':{'type':_0x3f41d5('0x1515'),'item':_0x158535,'items':_0x393a60[_0x3f41d5('0x9c9')],'configuration':_0x393a60[_0x3f41d5('0xa6f')],'account':_0x393a60[_0x3f41d5('0x265f')],'license':null,'setting':null,'crudPermissions':_0x393a60[_0x3f41d5('0x103e')]}});}function _0x13821c(_0x3f36a9){const _0x16ee28=_0x81bd98;_0x5c12a3[_0x16ee28('0x129')]['delete']({'id':_0x3f36a9['id']})[_0x16ee28('0x1af5')][_0x16ee28('0x17e7')](function(){const _0x5ddb5f=_0x16ee28;_0x49cbdd()[_0x5ddb5f('0x5f3')](_0x393a60[_0x5ddb5f('0x9c9')],{'id':_0x3f36a9['id']}),_0x211ceb[_0x5ddb5f('0x130d')]({'title':_0x5ddb5f('0x1605'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x16ee28('0x16df')](function(_0x299e7a){const _0x269c17=_0x16ee28;_0x211ceb[_0x269c17('0x1db9')]({'title':_0x299e7a[_0x269c17('0x11c5')]?_0x269c17('0x14f7')+_0x299e7a[_0x269c17('0x11c5')]+_0x269c17('0x16e4')+_0x299e7a[_0x269c17('0x1833')]:_0x269c17('0x14bd'),'msg':_0x299e7a[_0x269c17('0x1457')]?JSON[_0x269c17('0x678')](_0x299e7a[_0x269c17('0x1457')]):_0x299e7a['toString']()});});}function _0x1edb61(_0x3abf23,_0x3bc262){const _0x28b586=_0x81bd98,_0x210909=_0x2c7ea4[_0x28b586('0x1121')]()[_0x28b586('0x24d3')](_0x28b586('0x1d1f'))[_0x28b586('0x211f')](_0x28b586('0x23ff')+_0x28b586('0xe9f'))[_0x28b586('0x2095')](_0x28b586('0x1f01'))[_0x28b586('0x104f')](_0x3abf23)['ok']('OK')[_0x28b586('0x1d47')](_0x28b586('0x28a0'));_0x2c7ea4[_0x28b586('0x28e2')](_0x210909)[_0x28b586('0x17e7')](function(){_0x13821c(_0x3bc262);},function(){const _0xba27b3=_0x28b586;console[_0xba27b3('0x1d63')](_0xba27b3('0x28a0'));});}function _0x2d888c(_0x5abf7d){const _0x5674a5=_0x81bd98,_0x2f4415=_0x2c7ea4[_0x5674a5('0x1121')]()[_0x5674a5('0x24d3')](_0x5674a5('0x1fdd'))[_0x5674a5('0x211f')](_0x5674a5('0xa53')+_0x393a60[_0x5674a5('0xa2e')][_0x5674a5('0x1f73')]+_0x5674a5('0x145a')+'\x20will\x20be\x20deleted.')[_0x5674a5('0x2095')](_0x5674a5('0x15ee'))[_0x5674a5('0x104f')](_0x5abf7d)['ok']('OK')[_0x5674a5('0x1d47')](_0x5674a5('0x28a0'));_0x2c7ea4[_0x5674a5('0x28e2')](_0x2f4415)[_0x5674a5('0x17e7')](function(){const _0x46bd0b=_0x5674a5;_0x393a60[_0x46bd0b('0xa2e')][_0x46bd0b('0xccd')](function(_0x1e019d){_0x13821c(_0x1e019d);}),_0x393a60[_0x46bd0b('0xa2e')]=[];});}}const _0x43b073=_0x376372;_0x53a0e5['$inject']=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x11d0'),_0x4376d8('0xa6f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x53a0e5(_0x4b7fda,_0x4eb167,_0x160bcb,_0x16fec7,_0x1adeb9,_0x3c99b2,_0x5bada5,_0x18db40,_0x203d3b,_0x3e686d,_0x4f89ef,_0x9ad8eb,_0x2faf23,_0x828d54){const _0x2cfe07=_0x4376d8,_0x3706b4=this;_0x3706b4['currentUser']=_0x4f89ef[_0x2cfe07('0x2831')](),_0x3706b4[_0x2cfe07('0x73e')]=[],_0x3706b4['setting']=_0x2faf23,_0x3706b4[_0x2cfe07('0x1d11')]=_0x9ad8eb,_0x3706b4[_0x2cfe07('0x103e')]=_0x828d54,_0x3706b4[_0x2cfe07('0x6ee')]={},_0x3706b4['passwordPattern']=_0x3706b4[_0x2cfe07('0x1aeb')]&&_0x3706b4[_0x2cfe07('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3706b4['title']='INTEGRATIONS.EDIT_SERVICENOWCONFIGURATION',_0x3706b4['servicenowConfiguration']=angular[_0x2cfe07('0x14e5')](_0x203d3b),_0x3706b4['configurations']=_0x18db40,_0x3706b4[_0x2cfe07('0x654')]=![];!_0x3706b4[_0x2cfe07('0xa6f')]&&(_0x3706b4[_0x2cfe07('0xa6f')]={'channel':_0x2cfe07('0x1fe1'),'type':'inbound'},_0x3706b4['title']=_0x2cfe07('0x631'),_0x3706b4[_0x2cfe07('0x654')]=!![]);_0x3706b4[_0x2cfe07('0x17c5')]=_0x57aba1,_0x3706b4[_0x2cfe07('0x67a')]=_0x40be38,_0x3706b4[_0x2cfe07('0xd75')]=_0x4c7058,_0x3706b4[_0x2cfe07('0x1300')]=_0x596b90,_0x3706b4['closeDialog']=_0x401a20;function _0x57aba1(){const _0x53da81=_0x2cfe07;_0x3706b4[_0x53da81('0x73e')]=[],_0x3e686d[_0x53da81('0x18c2')]['addConfiguration']({'id':_0x4eb167['params']['id']},_0x3706b4[_0x53da81('0xa6f')])['$promise']['then'](function(_0x1e8770){const _0x2ada84=_0x53da81;_0x3706b4[_0x2ada84('0x11d0')][_0x2ada84('0x1893')](_0x1e8770[_0x2ada84('0x16b2')]()),_0x5bada5['success']({'title':_0x2ada84('0x1ed'),'msg':_0x3706b4[_0x2ada84('0xa6f')][_0x2ada84('0x2aa')]?_0x3706b4[_0x2ada84('0xa6f')][_0x2ada84('0x2aa')]+_0x2ada84('0x15a'):''}),_0x401a20(_0x1e8770);})[_0x53da81('0x16df')](function(_0x2a5fa0){const _0x52daa3=_0x53da81;if(_0x2a5fa0['data']&&_0x2a5fa0[_0x52daa3('0x1457')][_0x52daa3('0x73e')]&&_0x2a5fa0[_0x52daa3('0x1457')]['errors'][_0x52daa3('0x1f73')]){_0x3706b4['errors']=_0x2a5fa0[_0x52daa3('0x1457')][_0x52daa3('0x73e')]||[{'message':_0x2a5fa0['toString'](),'type':_0x52daa3('0xccc')}];for(let _0x1cfcd0=0x0;_0x1cfcd0<_0x2a5fa0['data']['errors'][_0x52daa3('0x1f73')];_0x1cfcd0+=0x1){_0x5bada5[_0x52daa3('0x1db9')]({'title':_0x2a5fa0['data'][_0x52daa3('0x73e')][_0x1cfcd0][_0x52daa3('0x412')],'msg':_0x2a5fa0['data'][_0x52daa3('0x73e')][_0x1cfcd0][_0x52daa3('0x1603')]});}}else _0x5bada5[_0x52daa3('0x1db9')]({'title':_0x2a5fa0['status']?'API:'+_0x2a5fa0[_0x52daa3('0x11c5')]+_0x52daa3('0x16e4')+_0x2a5fa0['statusText']:_0x52daa3('0xccc'),'msg':_0x2a5fa0[_0x52daa3('0x1457')]?JSON[_0x52daa3('0x678')](_0x2a5fa0[_0x52daa3('0x1457')][_0x52daa3('0x1603')]):_0x2a5fa0[_0x52daa3('0x9b6')]()});});}function _0x40be38(){const _0x5d5a57=_0x2cfe07;_0x3706b4[_0x5d5a57('0x73e')]=[],_0x3e686d[_0x5d5a57('0xe4a')]['update']({'id':_0x3706b4[_0x5d5a57('0xa6f')]['id']},_0x3706b4[_0x5d5a57('0xa6f')])[_0x5d5a57('0x1af5')][_0x5d5a57('0x17e7')](function(_0x58cee6){const _0x5a4216=_0x5d5a57,_0x52eab8=_0x49cbdd()[_0x5a4216('0xe8e')](_0x3706b4[_0x5a4216('0x11d0')],{'id':_0x58cee6['id']});_0x52eab8&&_0x49cbdd()[_0x5a4216('0x1ced')](_0x52eab8,_0x49cbdd()[_0x5a4216('0x230a')](_0x58cee6[_0x5a4216('0x16b2')](),_0x49cbdd()[_0x5a4216('0x1c0f')](_0x52eab8))),_0x5bada5[_0x5a4216('0x130d')]({'title':_0x5a4216('0x116e'),'msg':_0x3706b4['servicenowConfiguration']['name']?_0x3706b4[_0x5a4216('0xa6f')][_0x5a4216('0x2aa')]+_0x5a4216('0x15ca'):''}),_0x401a20(_0x58cee6);})[_0x5d5a57('0x16df')](function(_0x235b33){const _0x1522fd=_0x5d5a57;if(_0x235b33[_0x1522fd('0x1457')]&&_0x235b33[_0x1522fd('0x1457')]['errors']&&_0x235b33[_0x1522fd('0x1457')][_0x1522fd('0x73e')][_0x1522fd('0x1f73')]){_0x3706b4[_0x1522fd('0x73e')]=_0x235b33[_0x1522fd('0x1457')]['errors']||[{'message':_0x235b33[_0x1522fd('0x9b6')](),'type':_0x1522fd('0x1e43')}];for(let _0x2f5b06=0x0;_0x2f5b06<_0x235b33['data'][_0x1522fd('0x73e')][_0x1522fd('0x1f73')];_0x2f5b06++){_0x5bada5[_0x1522fd('0x1db9')]({'title':_0x235b33[_0x1522fd('0x1457')]['errors'][_0x2f5b06]['type'],'msg':_0x235b33[_0x1522fd('0x1457')][_0x1522fd('0x73e')][_0x2f5b06]['message']});}}else _0x5bada5['error']({'title':_0x235b33[_0x1522fd('0x11c5')]?'API:'+_0x235b33['status']+_0x1522fd('0x16e4')+_0x235b33['statusText']:_0x1522fd('0x1e43'),'msg':_0x235b33[_0x1522fd('0x1457')]?JSON[_0x1522fd('0x678')](_0x235b33[_0x1522fd('0x1457')][_0x1522fd('0x1603')]):_0x235b33[_0x1522fd('0x9b6')]()});});}function _0x4c7058(_0x2be6ed){const _0x5f23f5=_0x2cfe07;_0x3706b4[_0x5f23f5('0x73e')]=[];const _0xcc5484=_0x16fec7[_0x5f23f5('0x1121')]()[_0x5f23f5('0x24d3')](_0x5f23f5('0x530'))[_0x5f23f5('0xd5')](_0x5f23f5('0x760'))[_0x5f23f5('0x2095')](_0x5f23f5('0x2195'))['ok'](_0x5f23f5('0x304'))[_0x5f23f5('0x1d47')](_0x5f23f5('0x1b70'))[_0x5f23f5('0x104f')](_0x2be6ed);_0x16fec7[_0x5f23f5('0x28e2')](_0xcc5484)[_0x5f23f5('0x17e7')](function(){const _0x85b6c5=_0x5f23f5;_0x3e686d['intServicenowConfiguration'][_0x85b6c5('0x1da6')]({'id':_0x3706b4[_0x85b6c5('0xa6f')]['id']})[_0x85b6c5('0x1af5')][_0x85b6c5('0x17e7')](function(){const _0x521256=_0x85b6c5;_0x49cbdd()[_0x521256('0x5f3')](_0x3706b4[_0x521256('0x11d0')],{'id':_0x3706b4['servicenowConfiguration']['id']}),_0x5bada5[_0x521256('0x130d')]({'title':_0x521256('0x1d1'),'msg':(_0x3706b4['servicenowConfiguration']['name']||_0x521256('0xa6f'))+_0x521256('0x149f')}),_0x401a20(_0x3706b4[_0x521256('0xa6f')]);})['catch'](function(_0x2677d2){const _0x32e7bc=_0x85b6c5;if(_0x2677d2[_0x32e7bc('0x1457')]&&_0x2677d2['data'][_0x32e7bc('0x73e')]&&_0x2677d2[_0x32e7bc('0x1457')]['errors'][_0x32e7bc('0x1f73')]){_0x3706b4['errors']=_0x2677d2[_0x32e7bc('0x1457')][_0x32e7bc('0x73e')]||[{'message':_0x2677d2[_0x32e7bc('0x9b6')](),'type':_0x32e7bc('0x2594')}];for(let _0x1d47a9=0x0;_0x1d47a9<_0x2677d2[_0x32e7bc('0x1457')][_0x32e7bc('0x73e')]['length'];_0x1d47a9++){_0x5bada5[_0x32e7bc('0x1db9')]({'title':_0x2677d2[_0x32e7bc('0x1457')][_0x32e7bc('0x73e')][_0x1d47a9][_0x32e7bc('0x412')],'msg':_0x2677d2['data'][_0x32e7bc('0x73e')][_0x1d47a9][_0x32e7bc('0x1603')]});}}else _0x5bada5[_0x32e7bc('0x1db9')]({'title':_0x2677d2[_0x32e7bc('0x11c5')]?_0x32e7bc('0x14f7')+_0x2677d2[_0x32e7bc('0x11c5')]+'\x20-\x20'+_0x2677d2[_0x32e7bc('0x1833')]:'api.intServicenowConfiguration.delete','msg':_0x2677d2['data']?JSON['stringify'](_0x2677d2[_0x32e7bc('0x1457')][_0x32e7bc('0x1603')]):_0x2677d2[_0x32e7bc('0x1603')]||_0x2677d2[_0x32e7bc('0x9b6')]()});});},function(){});}function _0x596b90(_0x27accd){return _0x27accd===null?undefined:new Date(_0x27accd);}function _0x401a20(_0x6c9a78){const _0x3cc14e=_0x2cfe07;_0x16fec7[_0x3cc14e('0x212a')](_0x6c9a78);}}const _0x2bf3a6=_0x53a0e5;_0x495d81[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x1c4'),'items',_0x4376d8('0x28b8'),'account',_0x4376d8('0x412'),'api','Auth',_0x4376d8('0x103e')];function _0x495d81(_0x1527df,_0x9db1e3,_0x512935,_0x1d6b58,_0x54e063,_0x884cdf,_0x4cfde6,_0x4f31b6,_0x599286,_0x2c25e9,_0x5413dd,_0x42df19,_0xfc615d){const _0x2ae545=_0x4376d8,_0x493731=this;_0x493731[_0x2ae545('0x197c')]=_0x42df19[_0x2ae545('0x2831')](),_0x493731[_0x2ae545('0x73e')]=[],_0x493731[_0x2ae545('0x24d3')]=_0x2ae545('0x9dd')+_0x49cbdd()[_0x2ae545('0x286f')](_0x2c25e9),_0x493731[_0x2ae545('0x28b8')]=angular[_0x2ae545('0x14e5')](_0x4f31b6),_0x493731[_0x2ae545('0x532')]=_0x4cfde6,_0x493731['type']=_0x2c25e9,_0x493731[_0x2ae545('0x103e')]=_0xfc615d,_0x493731[_0x2ae545('0x1ac5')]=![];!_0x493731[_0x2ae545('0x28b8')]&&(_0x493731[_0x2ae545('0x28b8')]={'type':'string'},_0x493731[_0x2ae545('0x28b8')][_0x49cbdd()[_0x2ae545('0xb41')](_0x2c25e9)+'Id']=_0x884cdf['id'],_0x493731[_0x2ae545('0x24d3')]=_0x2ae545('0x6fe')+_0x49cbdd()[_0x2ae545('0x286f')](_0x2c25e9),_0x493731[_0x2ae545('0x1ac5')]=!![]);_0x493731[_0x2ae545('0x1978')]=_0x3e94b7,_0x493731[_0x2ae545('0x1321')]=_0x5c8e41,_0x493731[_0x2ae545('0x1350')]=_0x950b4,_0x493731[_0x2ae545('0x140a')]=_0x2965d1,_0x493731['closeDialog']=_0x3de8f8,_0x5413dd['variable']['get']({'nolimit':!![]})[_0x2ae545('0x1af5')]['then'](function(_0x14cf29){const _0x35f861=_0x2ae545;return _0x493731[_0x35f861('0xd26')]=_0x14cf29[_0x35f861('0x2319')]?_0x14cf29[_0x35f861('0x2319')]:[],_0x5413dd['voiceAgentReport']['describe']()[_0x35f861('0x1af5')];})['then'](function(_0x14016b){const _0x235028=_0x2ae545;return _0x493731[_0x235028('0x217b')]=_0x49cbdd()['difference'](_0x49cbdd()['keys'](_0x14016b),[_0x235028('0x1af5'),_0x235028('0x1314'),_0x235028('0x7c9'),_0x235028('0xb8a'),_0x235028('0x1c59')]),_0x493731[_0x235028('0x217b')]['push'](_0x235028('0x1bea')),_0x5413dd[_0x235028('0xc6f')][_0x235028('0x2234')]()[_0x235028('0x1af5')];})[_0x2ae545('0x17e7')](function(_0x1c3b17){const _0x10f92c=_0x2ae545;_0x493731[_0x10f92c('0xe00')]=_0x49cbdd()['difference'](_0x49cbdd()[_0x10f92c('0x1c0f')](_0x1c3b17),[_0x10f92c('0x1af5'),_0x10f92c('0x1314'),_0x10f92c('0x7c9'),_0x10f92c('0xb8a'),_0x10f92c('0x1c59')]),_0x493731[_0x10f92c('0xe00')][_0x10f92c('0x269f')](_0x10f92c('0x1bea'));})[_0x2ae545('0x16df')](function(_0x31cf97){const _0x451792=_0x2ae545;_0x54e063['error']({'title':_0x31cf97[_0x451792('0x11c5')]?_0x451792('0x14f7')+_0x31cf97[_0x451792('0x11c5')]+_0x451792('0x16e4')+_0x31cf97[_0x451792('0x1833')]:_0x451792('0x3a9'),'msg':_0x31cf97[_0x451792('0x1457')]?JSON[_0x451792('0x678')](_0x31cf97[_0x451792('0x1457')]):_0x31cf97[_0x451792('0x9b6')]()});}),_0x5413dd[_0x2ae545('0x18c2')][_0x2ae545('0x9a')]({'id':_0x599286['id'],'ticketType':_0x884cdf[_0x2ae545('0x148e')]?_0x884cdf[_0x2ae545('0x148e')]:undefined})[_0x2ae545('0x1af5')][_0x2ae545('0x17e7')](function(_0x5bea9c){const _0x108d91=_0x2ae545;_0x493731[_0x108d91('0x20c2')]=!![],_0x493731['fields']=_0x5bea9c[_0x108d91('0x2319')]?_0x5bea9c[_0x108d91('0x2319')]:[],_0x493731['item'][_0x108d91('0x8d8')]&&(_0x493731[_0x108d91('0x1fa4')]=_0x49cbdd()[_0x108d91('0xe8e')](_0x493731[_0x108d91('0x9c9')],{'id':_0x493731[_0x108d91('0x28b8')][_0x108d91('0x8d8')]}));})[_0x2ae545('0x16df')](function(_0x4d48df){const _0x2217aa=_0x2ae545;_0x493731[_0x2217aa('0x20c2')]=![],console['error'](_0x4d48df);});function _0x3e94b7(){const _0xcf0963=_0x2ae545;_0x493731['errors']=[],_0x493731[_0xcf0963('0x1fa4')]&&(_0x493731[_0xcf0963('0x28b8')][_0xcf0963('0x8d8')]=_0x493731[_0xcf0963('0x1fa4')]['id'],_0x493731[_0xcf0963('0x28b8')]['nameField']=_0x493731[_0xcf0963('0x1fa4')][_0xcf0963('0x2aa')],_0x493731[_0xcf0963('0x28b8')][_0xcf0963('0x1fa4')]=_0x493731['customField'][_0xcf0963('0x8fa')]),_0x5413dd[_0xcf0963('0x129')][_0xcf0963('0x2439')](_0x493731[_0xcf0963('0x28b8')])['$promise'][_0xcf0963('0x17e7')](function(_0x11ab8b){const _0x5996ba=_0xcf0963;_0x493731[_0x5996ba('0x532')][_0x5996ba('0x1893')](_0x11ab8b),_0x54e063[_0x5996ba('0x130d')]({'title':_0x49cbdd()[_0x5996ba('0xb41')](_0x2c25e9)+_0x5996ba('0x23ad'),'msg':_0x49cbdd()[_0x5996ba('0xb41')](_0x2c25e9)+'\x20has\x20been\x20created!'}),_0x3de8f8();})[_0xcf0963('0x16df')](function(_0x48002a){const _0x54f4e4=_0xcf0963;console[_0x54f4e4('0x1db9')](_0x48002a),_0x493731[_0x54f4e4('0x73e')]=_0x48002a['data'][_0x54f4e4('0x73e')]||[{'message':_0x48002a[_0x54f4e4('0x9b6')](),'type':'api.item.save'}];});}function _0x5c8e41(){const _0x1670f4=_0x2ae545;_0x493731[_0x1670f4('0x73e')]=[],_0x493731[_0x1670f4('0x1fa4')]&&(_0x493731[_0x1670f4('0x28b8')][_0x1670f4('0x8d8')]=_0x493731[_0x1670f4('0x1fa4')]['id'],_0x493731['item'][_0x1670f4('0x1a12')]=_0x493731[_0x1670f4('0x1fa4')][_0x1670f4('0x2aa')],_0x493731['item'][_0x1670f4('0x1fa4')]=_0x493731['customField'][_0x1670f4('0x8fa')]),_0x5413dd[_0x1670f4('0x129')][_0x1670f4('0x27ba')]({'id':_0x493731[_0x1670f4('0x28b8')]['id']},_0x493731[_0x1670f4('0x28b8')])[_0x1670f4('0x1af5')][_0x1670f4('0x17e7')](function(_0x20f55e){const _0x463127=_0x1670f4,_0x2b1745=_0x49cbdd()['find'](_0x493731[_0x463127('0x532')],{'id':_0x20f55e['id']});_0x2b1745&&_0x49cbdd()[_0x463127('0x1ced')](_0x2b1745,_0x20f55e),_0x54e063[_0x463127('0x130d')]({'title':_0x49cbdd()[_0x463127('0xb41')](_0x2c25e9)+_0x463127('0x2b8'),'msg':_0x49cbdd()[_0x463127('0xb41')](_0x2c25e9)+_0x463127('0x15ca')}),_0x3de8f8();})[_0x1670f4('0x16df')](function(_0x3f8e21){const _0x57ed9a=_0x1670f4;console['error'](_0x3f8e21),_0x493731[_0x57ed9a('0x73e')]=_0x3f8e21[_0x57ed9a('0x1457')][_0x57ed9a('0x73e')]||[{'message':_0x3f8e21['toString'](),'type':_0x57ed9a('0x428')}];});}function _0x950b4(_0x4cdb81){const _0x247c76=_0x2ae545;_0x493731[_0x247c76('0x73e')]=[];const _0x1d8f90=_0x1d6b58[_0x247c76('0x1121')]()[_0x247c76('0x24d3')](_0x247c76('0x530'))['content'](_0x247c76('0x1664')+_0x2c25e9+'\x20will\x20be\x20deleted.')[_0x247c76('0x2095')](_0x247c76('0x1aaa')+_0x49cbdd()[_0x247c76('0xb41')](_0x2c25e9))['ok'](_0x247c76('0x304'))[_0x247c76('0x1d47')](_0x247c76('0x1b70'))['targetEvent'](_0x4cdb81);_0x1d6b58[_0x247c76('0x28e2')](_0x1d8f90)[_0x247c76('0x17e7')](function(){const _0x23e040=_0x247c76;_0x5413dd[_0x23e040('0x129')][_0x23e040('0x1da6')]({'id':_0x493731[_0x23e040('0x28b8')]['id']})[_0x23e040('0x1af5')][_0x23e040('0x17e7')](function(){const _0x4272f1=_0x23e040;_0x49cbdd()[_0x4272f1('0x5f3')](_0x493731['items'],{'id':_0x493731[_0x4272f1('0x28b8')]['id']}),_0x54e063[_0x4272f1('0x130d')]({'title':_0x49cbdd()['capitalize'](_0x2c25e9)+_0x4272f1('0x253a'),'msg':_0x49cbdd()[_0x4272f1('0xb41')](_0x2c25e9)+_0x4272f1('0x149f')}),_0x3de8f8();})['catch'](function(_0x55158e){const _0x5263ef=_0x23e040;console[_0x5263ef('0x1db9')](_0x55158e),_0x493731[_0x5263ef('0x73e')]=_0x55158e['data'][_0x5263ef('0x73e')]||[{'message':_0x55158e[_0x5263ef('0x9b6')](),'type':_0x5263ef('0x2220')}];});},function(){});}function _0x2965d1(){const _0x11bf81=_0x2ae545;return _0x493731[_0x11bf81('0x28b8')]['variableName']!==undefined?_0x493731['item'][_0x11bf81('0x4fd')]:_0x11bf81('0x2588');}function _0x3de8f8(){const _0x11f857=_0x2ae545;_0x1d6b58[_0x11f857('0x212a')]();}}const _0x318cc1=_0x495d81;_0x417ede['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$document','$translate','license',_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth','servicenowAccount','userProfileSection'];function _0x417ede(_0x40ecc0,_0x481fab,_0x4ba4df,_0xff7119,_0x30d0c9,_0x56463d,_0x2ef359,_0x439fd1,_0x5d8d62,_0x3be2c7,_0x1bb98b,_0x2b8a3c){const _0x3a685d=_0x4376d8,_0x21a336=this;_0x21a336[_0x3a685d('0x197c')]=_0x3be2c7[_0x3a685d('0x2831')](),_0x21a336[_0x3a685d('0x1d11')]=_0x56463d,_0x21a336[_0x3a685d('0x1aeb')]=_0x2ef359,_0x21a336[_0x3a685d('0x1572')]=_0x21a336[_0x3a685d('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x21a336['location']=_0x481fab[_0x3a685d('0x14fe')]()+_0x3a685d('0x14')+_0x481fab[_0x3a685d('0x108')](),_0x21a336[_0x3a685d('0x265f')]=_0x1bb98b||_0x40ecc0[_0x3a685d('0x16fb')][_0x3a685d('0x265f')]||{},_0x21a336['userProfileSection']=_0x2b8a3c&&_0x2b8a3c[_0x3a685d('0x335')]==0x1?_0x2b8a3c[_0x3a685d('0x2319')][0x0]:null,_0x21a336[_0x3a685d('0x103e')]=_0x3be2c7['parseCrudPermissions'](_0x21a336['userProfileSection']?_0x21a336[_0x3a685d('0x383')][_0x3a685d('0x103e')]:null),_0x21a336[_0x3a685d('0x6ee')]={},_0x21a336[_0x3a685d('0xde7')]=_0x40ecc0[_0x3a685d('0x16fb')]['tab']||0x0,_0x21a336['alert']=_0x5d8d62[_0x3a685d('0x1178')],_0x21a336['gotoServicenowAccounts']=_0x176fc3,_0x21a336[_0x3a685d('0x24f1')]=_0x1b3347;function _0x176fc3(){const _0x286f3c=_0x3a685d;_0x40ecc0['go'](_0x286f3c('0x29a'),{},{'reload':_0x286f3c('0x29a')});}function _0x1b3347(){const _0x244abf=_0x3a685d;_0x439fd1['intServicenowAccount'][_0x244abf('0x27ba')]({'id':_0x21a336[_0x244abf('0x265f')]['id']},_0x21a336[_0x244abf('0x265f')])[_0x244abf('0x1af5')][_0x244abf('0x17e7')](function(){const _0xc43f53=_0x244abf;_0x5d8d62[_0xc43f53('0x130d')]({'title':_0xc43f53('0x1b13'),'msg':_0x21a336[_0xc43f53('0x265f')][_0xc43f53('0x2aa')]?_0x21a336[_0xc43f53('0x265f')][_0xc43f53('0x2aa')]+_0xc43f53('0x12b0'):''});})[_0x244abf('0x16df')](function(_0x9cf015){const _0xa5bdef=_0x244abf;_0x5d8d62[_0xa5bdef('0x1db9')]({'title':_0x9cf015[_0xa5bdef('0x11c5')]?'API:'+_0x9cf015[_0xa5bdef('0x11c5')]+'\x20-\x20'+_0x9cf015[_0xa5bdef('0x1833')]:_0xa5bdef('0x1250'),'msg':_0x9cf015[_0xa5bdef('0x1457')]?JSON['stringify'](_0x9cf015[_0xa5bdef('0x1457')]):_0x9cf015[_0xa5bdef('0x9b6')]()});});}}const _0x2f046c=_0x417ede,_0x561fd2=_0x4cf2bc['p']+_0x4376d8('0x11e6');_0x1fbaeb['$inject']=['$scope','$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),'$mdDialog','$document','$timeout',_0x4376d8('0x28da'),'servicenowAccounts','userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x1fbaeb(_0x409d5a,_0x4d251d,_0x401bb5,_0x771d31,_0x450d87,_0x18aeb1,_0x37c537,_0x441575,_0x109fe8,_0x3496b7,_0x592326,_0xaf0902,_0x5a073e,_0x547839,_0x3997ac,_0x3ad884,_0x462d07){const _0x2bb4a7=_0x4376d8,_0x33ed46=this;_0x33ed46[_0x2bb4a7('0x1d11')]=_0x3ad884,_0x33ed46[_0x2bb4a7('0x1aeb')]=_0x462d07,_0x33ed46[_0x2bb4a7('0x197c')]=_0x3997ac[_0x2bb4a7('0x2831')](),_0x33ed46[_0x2bb4a7('0x2291')]=_0x109fe8||{'count':0x0,'rows':[]},_0x33ed46[_0x2bb4a7('0xdeb')]=_0x3496b7,_0x33ed46[_0x2bb4a7('0x383')]=_0x592326&&_0x592326[_0x2bb4a7('0x335')]==0x1?_0x592326[_0x2bb4a7('0x2319')][0x0]:null,_0x33ed46['crudPermissions']=_0x3997ac[_0x2bb4a7('0x17a9')](_0x33ed46[_0x2bb4a7('0x383')]?_0x33ed46[_0x2bb4a7('0x383')][_0x2bb4a7('0x103e')]:null),_0x33ed46[_0x2bb4a7('0x23c3')]='servicenowAccounts',_0x33ed46[_0x2bb4a7('0x26a1')]='',_0x33ed46[_0x2bb4a7('0x24e1')]=null,_0x33ed46[_0x2bb4a7('0x27a8')]=[],_0x33ed46[_0x2bb4a7('0x826')]={'fields':_0x2bb4a7('0x4dc'),'limit':0xa,'page':0x1},_0x33ed46['editstate']=_0x15fb46,_0x33ed46['testtestintegrationaccount']=_0x11ea30,_0x33ed46['deleteconfirm']=_0x174808,_0x33ed46[_0x2bb4a7('0x130d')]=_0x54fe33,_0x33ed46['getServicenowAccounts']=_0x2a043e,_0x33ed46[_0x2bb4a7('0x2337')]=_0x186a25,_0x33ed46['deleteServicenowAccount']=_0x16ae6c,_0x33ed46['exportSelectedServicenowAccounts']=_0x3568e1,_0x33ed46['deleteSelectedServicenowAccounts']=_0x4583b0,_0x33ed46[_0x2bb4a7('0x2561')]=_0x581b07,_0x33ed46['selectAllServicenowAccounts']=_0x29a009;function _0x15fb46(_0x17a5b6){_0x401bb5['go']('app.integrations.servicenowAccounts.edit',{'id':_0x17a5b6['id'],'servicenowAccount':_0x17a5b6,'crudPermissions':_0x33ed46['crudPermissions']});}function _0x11ea30(_0x4199b3){const _0x3808c9=_0x2bb4a7;return _0xaf0902[_0x3808c9('0x18c2')][_0x3808c9('0x9a')]({'id':_0x4199b3['id'],'test':!![]})['$promise'][_0x3808c9('0x17e7')](function(){const _0x5ec9ac=_0x3808c9;_0x547839[_0x5ec9ac('0x130d')]({'title':_0x5ec9ac('0x1d66'),'msg':_0x5ec9ac('0x120d')});})[_0x3808c9('0x16df')](function(_0x37fec){const _0x124b03=_0x3808c9;_0x547839['error']({'title':'ServicenowAccount\x20properly\x20tested','msg':_0x37fec[_0x124b03('0x1457')]?_0x37fec[_0x124b03('0x1457')][_0x124b03('0x1603')]?_0x37fec[_0x124b03('0x1457')][_0x124b03('0x1603')]:JSON[_0x124b03('0x678')](_0x37fec[_0x124b03('0x1457')]):_0x37fec[_0x124b03('0x9b6')]()});});}function _0x174808(_0x612469,_0x188d05){const _0x1cbc2c=_0x2bb4a7,_0x4362d2=_0x450d87[_0x1cbc2c('0x1121')]()[_0x1cbc2c('0x24d3')](_0x1cbc2c('0x5e1')+_0x49cbdd()[_0x1cbc2c('0x1c98')](_0x1cbc2c('0x265f'))+'?')['htmlContent'](_0x1cbc2c('0xa53')+(_0x612469['name']||'servicenowAccount')+_0x1cbc2c('0x1d23')+'\x20will\x20be\x20deleted.')[_0x1cbc2c('0x2095')](_0x1cbc2c('0xfdf'))[_0x1cbc2c('0x104f')](_0x188d05)['ok']('OK')['cancel'](_0x1cbc2c('0x28a0'));_0x450d87[_0x1cbc2c('0x28e2')](_0x4362d2)[_0x1cbc2c('0x17e7')](function(){_0x16ae6c(_0x612469);},function(){const _0x41d62b=_0x1cbc2c;console['log'](_0x41d62b('0x28a0'));});}let _0x26e978=!![],_0x59ee2c=0x1;_0x409d5a['$watch'](_0x2bb4a7('0x3ed'),function(_0x238e9b,_0x461a96){const _0x259895=_0x2bb4a7;_0x26e978?_0x37c537(function(){_0x26e978=![];}):(!_0x461a96&&(_0x59ee2c=_0x33ed46['query'][_0x259895('0x115a')]),_0x238e9b!==_0x461a96&&(_0x33ed46['query']['page']=0x1),!_0x238e9b&&(_0x33ed46['query'][_0x259895('0x115a')]=_0x59ee2c),_0x33ed46[_0x259895('0xde')]());});function _0x54fe33(_0x44189a){const _0x4c13ee=_0x2bb4a7;_0x33ed46[_0x4c13ee('0x2291')]=_0x44189a||{'count':0x0,'rows':[]};}function _0x2a043e(){const _0x5f4578=_0x2bb4a7;_0x33ed46['query'][_0x5f4578('0xf19')]=(_0x33ed46[_0x5f4578('0x826')][_0x5f4578('0x115a')]-0x1)*_0x33ed46['query'][_0x5f4578('0x193b')],_0x3997ac[_0x5f4578('0x1ba2')](_0x5f4578('0x20bf'))?_0x33ed46[_0x5f4578('0x1691')]=_0xaf0902[_0x5f4578('0x18c2')][_0x5f4578('0x1c53')](_0x33ed46[_0x5f4578('0x826')],_0x54fe33)['$promise']:(_0x33ed46[_0x5f4578('0x826')]['id']=_0x33ed46['userProfile']['id'],_0x33ed46[_0x5f4578('0x826')][_0x5f4578('0x16f8')]='ServicenowAccounts',_0x33ed46[_0x5f4578('0x1691')]=_0xaf0902[_0x5f4578('0xdeb')][_0x5f4578('0x2447')](_0x33ed46[_0x5f4578('0x826')],_0x54fe33)[_0x5f4578('0x1af5')]);}function _0x186a25(_0x3d16ad,_0x5513aa){const _0x4096eb=_0x2bb4a7;_0x450d87[_0x4096eb('0x28e2')]({'controller':'CreateOrEditServicenowAccountDialogController','controllerAs':'vm','templateUrl':_0x561fd2,'parent':angular[_0x4096eb('0x1ce1')](_0x18aeb1[_0x4096eb('0x13aa')]),'targetEvent':_0x3d16ad,'clickOutsideToClose':!![],'locals':{'servicenowAccount':_0x5513aa,'servicenowAccounts':_0x33ed46[_0x4096eb('0x2291')][_0x4096eb('0x2319')],'license':_0x33ed46['license'],'setting':_0x33ed46[_0x4096eb('0x1aeb')],'crudPermissions':_0x33ed46[_0x4096eb('0x103e')]}});}function _0x16ae6c(_0x481163){const _0x1aa399=_0x2bb4a7;_0xaf0902['intServicenowAccount'][_0x1aa399('0x1da6')]({'id':_0x481163['id']})[_0x1aa399('0x1af5')][_0x1aa399('0x17e7')](function(){const _0x1f93d6=_0x1aa399;_0x49cbdd()['remove'](_0x33ed46[_0x1f93d6('0x2291')][_0x1f93d6('0x2319')],{'id':_0x481163['id']}),_0x33ed46['servicenowAccounts'][_0x1f93d6('0x335')]-=0x1,!_0x33ed46[_0x1f93d6('0x2291')]['rows'][_0x1f93d6('0x1f73')]&&_0x33ed46[_0x1f93d6('0xde')](),_0x547839[_0x1f93d6('0x130d')]({'title':_0x49cbdd()[_0x1f93d6('0x1c98')]('ServicenowAccount')+_0x1f93d6('0x2673'),'msg':_0x481163[_0x1f93d6('0x2aa')]?_0x481163[_0x1f93d6('0x2aa')]+_0x1f93d6('0x149f'):''});})[_0x1aa399('0x16df')](function(_0x427a3b){const _0x3de483=_0x1aa399;if(_0x427a3b[_0x3de483('0x1457')]&&_0x427a3b[_0x3de483('0x1457')][_0x3de483('0x73e')]&&_0x427a3b[_0x3de483('0x1457')][_0x3de483('0x73e')][_0x3de483('0x1f73')]){_0x33ed46[_0x3de483('0x73e')]=_0x427a3b['data']['errors']||[{'message':_0x427a3b[_0x3de483('0x9b6')](),'type':_0x3de483('0x1e27')}];for(let _0x36d0f0=0x0;_0x36d0f0<_0x427a3b[_0x3de483('0x1457')][_0x3de483('0x73e')][_0x3de483('0x1f73')];_0x36d0f0++){_0x547839[_0x3de483('0x1db9')]({'title':_0x427a3b['data'][_0x3de483('0x73e')][_0x36d0f0][_0x3de483('0x412')],'msg':_0x427a3b[_0x3de483('0x1457')][_0x3de483('0x73e')][_0x36d0f0][_0x3de483('0x1603')]});}}else _0x547839['error']({'title':_0x427a3b[_0x3de483('0x11c5')]?'API:'+_0x427a3b[_0x3de483('0x11c5')]+_0x3de483('0x16e4')+_0x427a3b[_0x3de483('0x1833')]:'SYSTEM:DELETEintServicenowAccount','msg':_0x427a3b[_0x3de483('0x1457')]?JSON[_0x3de483('0x678')](_0x427a3b['data'][_0x3de483('0x1603')]):_0x427a3b[_0x3de483('0x1603')]||_0x427a3b[_0x3de483('0x9b6')]()});});}function _0x3568e1(){const _0x28422f=_0x2bb4a7,_0x2b36ee=angular[_0x28422f('0x14e5')](_0x33ed46[_0x28422f('0x27a8')]);return _0x33ed46[_0x28422f('0x27a8')]=[],_0x2b36ee;}function _0x4583b0(_0xc0675a){const _0x40ce47=_0x2bb4a7,_0x361fea=_0x450d87['confirm']()[_0x40ce47('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20servicenowAccounts?')['htmlContent'](_0x40ce47('0xa53')+_0x33ed46[_0x40ce47('0x27a8')]['length']+'\x20selected'+_0x40ce47('0xe9f'))['ariaLabel'](_0x40ce47('0x2161'))[_0x40ce47('0x104f')](_0xc0675a)['ok']('OK')[_0x40ce47('0x1d47')](_0x40ce47('0x28a0'));_0x450d87[_0x40ce47('0x28e2')](_0x361fea)[_0x40ce47('0x17e7')](function(){const _0x3c811e=_0x40ce47;_0x33ed46['selectedServicenowAccounts'][_0x3c811e('0xccd')](function(_0x48203f){_0x16ae6c(_0x48203f);}),_0x33ed46[_0x3c811e('0x27a8')]=[];});}function _0x581b07(){const _0xdddb32=_0x2bb4a7;_0x33ed46[_0xdddb32('0x27a8')]=[];}function _0x29a009(){const _0x208f18=_0x2bb4a7;_0x33ed46['selectedServicenowAccounts']=_0x33ed46[_0x208f18('0x2291')][_0x208f18('0x2319')];}}const _0x538347=_0x1fbaeb;_0xa737[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x245f'),_0x4376d8('0x6e5'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0xa737(_0x37436b,_0x1b9042,_0x3f7d2f,_0x90ee13,_0x293cfc,_0x5c502c,_0x383941,_0x399a84,_0x3c8750,_0x9ca531,_0x441bc9,_0xf8c3f6,_0x161c27,_0x4e1a46){const _0x957ad7=_0x4376d8,_0x2695e9=this;_0x2695e9[_0x957ad7('0x197c')]=_0x441bc9[_0x957ad7('0x2831')](),_0x2695e9[_0x957ad7('0x73e')]=[],_0x2695e9['setting']=_0x161c27,_0x2695e9[_0x957ad7('0x1d11')]=_0xf8c3f6,_0x2695e9['crudPermissions']=_0x4e1a46,_0x2695e9[_0x957ad7('0x6ee')]={},_0x2695e9[_0x957ad7('0x1572')]=_0x2695e9[_0x957ad7('0x1aeb')]&&_0x2695e9[_0x957ad7('0x1aeb')][_0x957ad7('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2695e9[_0x957ad7('0x24d3')]=_0x957ad7('0x10d9'),_0x2695e9['sugarcrmAccount']=angular['copy'](_0x3c8750),_0x2695e9[_0x957ad7('0x245f')]=_0x399a84,_0x2695e9[_0x957ad7('0x1498')]=![];!_0x2695e9[_0x957ad7('0x6e5')]&&(_0x2695e9[_0x957ad7('0x6e5')]={'serverUrl':_0x3f7d2f['protocol']()+_0x957ad7('0x14')+_0x3f7d2f[_0x957ad7('0x108')]()+(_0x3f7d2f['port']()?':'+_0x3f7d2f[_0x957ad7('0x2442')]():'')},_0x2695e9[_0x957ad7('0x24d3')]=_0x957ad7('0x24f'),_0x2695e9[_0x957ad7('0x1498')]=!![]);_0x2695e9[_0x957ad7('0x10a7')]=_0x49eafe,_0x2695e9['saveSugarcrmAccount']=_0x170086,_0x2695e9[_0x957ad7('0x939')]=_0x44c9c6,_0x2695e9[_0x957ad7('0x1300')]=_0x45bfa3,_0x2695e9['closeDialog']=_0x32764a;function _0x49eafe(){const _0x53ecee=_0x957ad7;_0x2695e9[_0x53ecee('0x73e')]=[],_0x9ca531['intSugarcrmAccount'][_0x53ecee('0x2439')](_0x2695e9[_0x53ecee('0x6e5')])[_0x53ecee('0x1af5')][_0x53ecee('0x17e7')](function(_0x3c1cbe){const _0x56df26=_0x53ecee;_0x2695e9[_0x56df26('0x245f')][_0x56df26('0x1893')](_0x3c1cbe[_0x56df26('0x16b2')]()),_0x383941[_0x56df26('0x130d')]({'title':_0x56df26('0x15d0'),'msg':_0x2695e9[_0x56df26('0x6e5')][_0x56df26('0x2aa')]?_0x2695e9[_0x56df26('0x6e5')][_0x56df26('0x2aa')]+_0x56df26('0x15a'):''}),_0x32764a(_0x3c1cbe);})[_0x53ecee('0x16df')](function(_0x195aa3){const _0x2ddd49=_0x53ecee;if(_0x195aa3[_0x2ddd49('0x1457')]&&_0x195aa3[_0x2ddd49('0x1457')]['errors']&&_0x195aa3[_0x2ddd49('0x1457')][_0x2ddd49('0x73e')][_0x2ddd49('0x1f73')]){_0x2695e9['errors']=_0x195aa3[_0x2ddd49('0x1457')]['errors']||[{'message':_0x195aa3[_0x2ddd49('0x9b6')](),'type':_0x2ddd49('0x20e8')}];for(let _0x1e906f=0x0;_0x1e906f<_0x195aa3[_0x2ddd49('0x1457')]['errors']['length'];_0x1e906f+=0x1){_0x383941[_0x2ddd49('0x1db9')]({'title':_0x195aa3['data'][_0x2ddd49('0x73e')][_0x1e906f]['type'],'msg':_0x195aa3[_0x2ddd49('0x1457')]['errors'][_0x1e906f][_0x2ddd49('0x1603')]});}}else _0x383941['error']({'title':_0x195aa3[_0x2ddd49('0x11c5')]?'API:'+_0x195aa3[_0x2ddd49('0x11c5')]+_0x2ddd49('0x16e4')+_0x195aa3[_0x2ddd49('0x1833')]:'api.intSugarcrmAccount.save','msg':_0x195aa3['data']?JSON['stringify'](_0x195aa3[_0x2ddd49('0x1457')][_0x2ddd49('0x1603')]):_0x195aa3['toString']()});});}function _0x170086(){const _0x2c4ef3=_0x957ad7;_0x2695e9['errors']=[],_0x9ca531[_0x2c4ef3('0x1ab3')]['update']({'id':_0x2695e9[_0x2c4ef3('0x6e5')]['id']},_0x2695e9['sugarcrmAccount'])['$promise'][_0x2c4ef3('0x17e7')](function(_0x3fea3d){const _0x52e068=_0x2c4ef3,_0x26b7a0=_0x49cbdd()[_0x52e068('0xe8e')](_0x2695e9[_0x52e068('0x245f')],{'id':_0x3fea3d['id']});_0x26b7a0&&_0x49cbdd()[_0x52e068('0x1ced')](_0x26b7a0,_0x49cbdd()[_0x52e068('0x230a')](_0x3fea3d[_0x52e068('0x16b2')](),_0x49cbdd()['keys'](_0x26b7a0))),_0x383941['success']({'title':'SugarcrmAccount\x20properly\x20saved!','msg':_0x2695e9['sugarcrmAccount'][_0x52e068('0x2aa')]?_0x2695e9['sugarcrmAccount'][_0x52e068('0x2aa')]+_0x52e068('0x15ca'):''}),_0x32764a(_0x3fea3d);})[_0x2c4ef3('0x16df')](function(_0xb3443b){const _0x4ee4d8=_0x2c4ef3;if(_0xb3443b['data']&&_0xb3443b['data']['errors']&&_0xb3443b['data'][_0x4ee4d8('0x73e')][_0x4ee4d8('0x1f73')]){_0x2695e9[_0x4ee4d8('0x73e')]=_0xb3443b[_0x4ee4d8('0x1457')][_0x4ee4d8('0x73e')]||[{'message':_0xb3443b[_0x4ee4d8('0x9b6')](),'type':_0x4ee4d8('0x1112')}];for(let _0x5c192e=0x0;_0x5c192e<_0xb3443b[_0x4ee4d8('0x1457')][_0x4ee4d8('0x73e')][_0x4ee4d8('0x1f73')];_0x5c192e++){_0x383941[_0x4ee4d8('0x1db9')]({'title':_0xb3443b[_0x4ee4d8('0x1457')]['errors'][_0x5c192e]['type'],'msg':_0xb3443b[_0x4ee4d8('0x1457')][_0x4ee4d8('0x73e')][_0x5c192e][_0x4ee4d8('0x1603')]});}}else _0x383941[_0x4ee4d8('0x1db9')]({'title':_0xb3443b[_0x4ee4d8('0x11c5')]?_0x4ee4d8('0x14f7')+_0xb3443b[_0x4ee4d8('0x11c5')]+_0x4ee4d8('0x16e4')+_0xb3443b[_0x4ee4d8('0x1833')]:_0x4ee4d8('0x1112'),'msg':_0xb3443b['data']?JSON[_0x4ee4d8('0x678')](_0xb3443b[_0x4ee4d8('0x1457')]['message']):_0xb3443b[_0x4ee4d8('0x9b6')]()});});}function _0x44c9c6(_0x5030cd){const _0x1054c1=_0x957ad7;_0x2695e9[_0x1054c1('0x73e')]=[];const _0x297cd7=_0x90ee13[_0x1054c1('0x1121')]()[_0x1054c1('0x24d3')](_0x1054c1('0x530'))[_0x1054c1('0xd5')](_0x1054c1('0x20ef'))[_0x1054c1('0x2095')](_0x1054c1('0x949'))['ok'](_0x1054c1('0x304'))[_0x1054c1('0x1d47')](_0x1054c1('0x1b70'))[_0x1054c1('0x104f')](_0x5030cd);_0x90ee13[_0x1054c1('0x28e2')](_0x297cd7)['then'](function(){const _0x487520=_0x1054c1;_0x9ca531[_0x487520('0x1ab3')]['delete']({'id':_0x2695e9[_0x487520('0x6e5')]['id']})['$promise']['then'](function(){const _0x13eff7=_0x487520;_0x49cbdd()['remove'](_0x2695e9[_0x13eff7('0x245f')],{'id':_0x2695e9[_0x13eff7('0x6e5')]['id']}),_0x383941[_0x13eff7('0x130d')]({'title':_0x13eff7('0xe37'),'msg':(_0x2695e9[_0x13eff7('0x6e5')]['name']||_0x13eff7('0x6e5'))+_0x13eff7('0x149f')}),_0x32764a(_0x2695e9[_0x13eff7('0x6e5')]);})['catch'](function(_0x357d7b){const _0x26cb3b=_0x487520;if(_0x357d7b['data']&&_0x357d7b[_0x26cb3b('0x1457')][_0x26cb3b('0x73e')]&&_0x357d7b[_0x26cb3b('0x1457')]['errors']['length']){_0x2695e9['errors']=_0x357d7b[_0x26cb3b('0x1457')]['errors']||[{'message':_0x357d7b[_0x26cb3b('0x9b6')](),'type':_0x26cb3b('0x658')}];for(let _0x35d970=0x0;_0x35d970<_0x357d7b['data'][_0x26cb3b('0x73e')][_0x26cb3b('0x1f73')];_0x35d970++){_0x383941[_0x26cb3b('0x1db9')]({'title':_0x357d7b[_0x26cb3b('0x1457')]['errors'][_0x35d970][_0x26cb3b('0x412')],'msg':_0x357d7b[_0x26cb3b('0x1457')][_0x26cb3b('0x73e')][_0x35d970]['message']});}}else _0x383941[_0x26cb3b('0x1db9')]({'title':_0x357d7b[_0x26cb3b('0x11c5')]?_0x26cb3b('0x14f7')+_0x357d7b['status']+_0x26cb3b('0x16e4')+_0x357d7b[_0x26cb3b('0x1833')]:_0x26cb3b('0x658'),'msg':_0x357d7b[_0x26cb3b('0x1457')]?JSON[_0x26cb3b('0x678')](_0x357d7b[_0x26cb3b('0x1457')][_0x26cb3b('0x1603')]):_0x357d7b['message']||_0x357d7b[_0x26cb3b('0x9b6')]()});});},function(){});}function _0x45bfa3(_0x514c26){return _0x514c26===null?undefined:new Date(_0x514c26);}function _0x32764a(_0x2608f1){const _0x399139=_0x957ad7;_0x90ee13[_0x399139('0x212a')](_0x2608f1);}}const _0x10bcc4=_0xa737,_0x5554c9=_0x4cf2bc['p']+_0x4376d8('0xdb8'),_0x2b3562=_0x4cf2bc['p']+_0x4376d8('0xd7a');_0x5dc088[_0x4376d8('0x1b9c')]=['$mdDialog','$document','api','toasty','Auth'];function _0x5dc088(_0x35e984,_0x5a9b4a,_0x484b01,_0x7020b0,_0x4e6ab5){const _0x28272d=_0x4376d8,_0x3cf9b6=this;_0x3cf9b6[_0x28272d('0x197c')]=_0x4e6ab5[_0x28272d('0x2831')](),_0x3cf9b6['sugarcrmAccount']={},_0x3cf9b6[_0x28272d('0x2517')]={},_0x3cf9b6[_0x28272d('0x11d0')]=[],_0x3cf9b6['selectedSugarcrmConfiguration']=-0x1,_0x3cf9b6[_0x28272d('0x103e')],_0x3cf9b6['init']=_0x3c32ac,_0x3cf9b6[_0x28272d('0xab5')]=_0x412831,_0x3cf9b6[_0x28272d('0xead')]=_0xabaac9,_0x3cf9b6['deleteSugarcrmConfiguration']=_0x17a2fb;function _0x3c32ac(_0x7b3b57,_0x4d2862){const _0x2d5375=_0x28272d;_0x3cf9b6[_0x2d5375('0x6e5')]=_0x7b3b57,_0x3cf9b6[_0x2d5375('0x103e')]=typeof _0x4d2862!==_0x2d5375('0xfad')?_0x4d2862:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x484b01[_0x2d5375('0x1ab3')]['getConfigurations']({'id':_0x3cf9b6[_0x2d5375('0x6e5')]['id'],'sort':_0x2d5375('0x1ac6')})['$promise'][_0x2d5375('0x17e7')](function(_0x4a90d5){const _0x5b2507=_0x2d5375;return _0x3cf9b6[_0x5b2507('0x11d0')]=_0x4a90d5[_0x5b2507('0x2319')]?_0x4a90d5['rows']:[],_0x3cf9b6[_0x5b2507('0x11d0')][_0x5b2507('0x1f73')]&&_0x3cf9b6[_0x5b2507('0xab5')](0x0),_0x484b01['variable'][_0x5b2507('0x1c53')]({'nolimit':!![],'sort':_0x5b2507('0x2aa')})[_0x5b2507('0x1af5')];})[_0x2d5375('0x17e7')](function(_0x411762){const _0x3208f5=_0x2d5375;_0x3cf9b6[_0x3208f5('0xd26')]=_0x411762[_0x3208f5('0x2319')]?_0x411762[_0x3208f5('0x2319')]:[],_0x3cf9b6[_0x3208f5('0x214d')]=_0x49cbdd()[_0x3208f5('0x8de')](_0x3cf9b6[_0x3208f5('0xd26')],'id');})[_0x2d5375('0x16df')](function(_0x101ce1){const _0x752c9b=_0x2d5375;_0x7020b0[_0x752c9b('0x1db9')]({'title':_0x101ce1['status']?_0x752c9b('0x14f7')+_0x101ce1[_0x752c9b('0x11c5')]+'\x20-\x20'+_0x101ce1[_0x752c9b('0x1833')]:_0x752c9b('0x183b'),'msg':_0x101ce1[_0x752c9b('0x1457')]?JSON['stringify'](_0x101ce1[_0x752c9b('0x1457')]):_0x101ce1['toString']()});});}function _0x412831(_0x4a6edb){const _0x1d7e58=_0x28272d;_0x3cf9b6['sugarcrmConfiguration']=_0x3cf9b6[_0x1d7e58('0x11d0')][_0x4a6edb],_0x3cf9b6[_0x1d7e58('0x17fc')]=_0x4a6edb,_0x484b01[_0x1d7e58('0xb91')][_0x1d7e58('0x94e')]({'id':_0x3cf9b6[_0x1d7e58('0x2517')]['id']})[_0x1d7e58('0x1af5')][_0x1d7e58('0x17e7')](function(_0x65d337){const _0x4b4995=_0x1d7e58;return _0x3cf9b6[_0x4b4995('0x1261')]=_0x65d337[_0x4b4995('0x2319')]?_0x65d337[_0x4b4995('0x2319')]:[],_0x484b01[_0x4b4995('0xb91')]['getDescriptions']({'id':_0x3cf9b6[_0x4b4995('0x2517')]['id']})[_0x4b4995('0x1af5')];})[_0x1d7e58('0x17e7')](function(_0x52112d){const _0x252bfa=_0x1d7e58;return _0x3cf9b6[_0x252bfa('0x1a2a')]=_0x52112d[_0x252bfa('0x2319')]?_0x52112d[_0x252bfa('0x2319')]:[],_0x484b01['intSugarcrmConfiguration'][_0x252bfa('0x9a')]({'id':_0x3cf9b6[_0x252bfa('0x2517')]['id']})[_0x252bfa('0x1af5')];})['then'](function(_0x397e4f){const _0x48dff6=_0x1d7e58;_0x3cf9b6[_0x48dff6('0x9c9')]=_0x397e4f['rows']?_0x397e4f[_0x48dff6('0x2319')]:[];})['catch'](function(_0x5b5bd1){const _0x412ec2=_0x1d7e58;_0x7020b0[_0x412ec2('0x1db9')]({'title':_0x5b5bd1[_0x412ec2('0x11c5')]?'API:'+_0x5b5bd1[_0x412ec2('0x11c5')]+_0x412ec2('0x16e4')+_0x5b5bd1[_0x412ec2('0x1833')]:'SYSTEM:GETConfigurations','msg':_0x5b5bd1[_0x412ec2('0x1457')]?JSON[_0x412ec2('0x678')](_0x5b5bd1[_0x412ec2('0x1457')]):_0x5b5bd1[_0x412ec2('0x9b6')]()});});}function _0xabaac9(_0x4d4cde,_0x3d6a74){const _0xff5730=_0x28272d;_0x35e984[_0xff5730('0x28e2')]({'controller':_0xff5730('0x9ca'),'controllerAs':'vm','templateUrl':_0x5554c9,'parent':angular['element'](_0x5a9b4a['body']),'targetEvent':_0x4d4cde,'clickOutsideToClose':!![],'locals':{'sugarcrmConfiguration':_0x3d6a74,'configurations':_0x3cf9b6[_0xff5730('0x11d0')],'license':null,'setting':null,'crudPermissions':_0x3cf9b6[_0xff5730('0x103e')]}})[_0xff5730('0x74e')](function(){_0x3cf9b6['getSugarcrmConfiguration'](0x0);});}function _0x17a2fb(_0x225b6a,_0x5c6355){const _0x157c07=_0x28272d,_0x10e1d1=_0x35e984['confirm']()[_0x157c07('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20sugarcrmConfiguration?')[_0x157c07('0x211f')](_0x157c07('0xa53')+(_0x5c6355['name']||'sugarcrmConfiguration')+''+_0x157c07('0xe9f'))[_0x157c07('0x2095')](_0x157c07('0x5ae'))[_0x157c07('0x104f')](_0x225b6a)['ok']('OK')[_0x157c07('0x1d47')]('CANCEL');_0x35e984[_0x157c07('0x28e2')](_0x10e1d1)[_0x157c07('0x17e7')](function(){const _0x5cf8d2=_0x157c07;_0x484b01[_0x5cf8d2('0xb91')][_0x5cf8d2('0x1da6')]({'id':_0x5c6355['id']})[_0x5cf8d2('0x1af5')]['then'](function(){const _0x121a34=_0x5cf8d2;_0x49cbdd()[_0x121a34('0x5f3')](_0x3cf9b6[_0x121a34('0x11d0')],{'id':_0x5c6355['id']}),_0x7020b0[_0x121a34('0x130d')]({'title':_0x121a34('0xb85'),'msg':_0x5c6355[_0x121a34('0x2aa')]?_0x5c6355['name']+_0x121a34('0x149f'):''});})['catch'](function(_0xdef373){const _0xa5b028=_0x5cf8d2;_0x7020b0[_0xa5b028('0x1db9')]({'title':_0xdef373[_0xa5b028('0x11c5')]?_0xa5b028('0x14f7')+_0xdef373[_0xa5b028('0x11c5')]+_0xa5b028('0x16e4')+_0xdef373[_0xa5b028('0x1833')]:_0xa5b028('0x11b4'),'msg':_0xdef373['data']?JSON[_0xa5b028('0x678')](_0xdef373[_0xa5b028('0x1457')]):_0xdef373[_0xa5b028('0x9b6')]()});})[_0x5cf8d2('0x74e')](function(){_0x3cf9b6['getSugarcrmConfiguration'](0x0);});},function(){const _0x54b4ad=_0x157c07;console[_0x54b4ad('0x1d63')](_0x54b4ad('0x28a0'));});}_0x3cf9b6['selectedSubjects']=[],_0x3cf9b6[_0x28272d('0x1066')]=_0xa8e807,_0x3cf9b6[_0x28272d('0x268a')]=_0x14302b,_0x3cf9b6[_0x28272d('0x2738')]=_0x57ae4f;function _0xa8e807(_0x2f4cd8,_0x43fa8d){const _0x4960e2=_0x28272d;_0x35e984[_0x4960e2('0x28e2')]({'controller':_0x4960e2('0x2546'),'controllerAs':'vm','templateUrl':_0x2b3562,'parent':angular[_0x4960e2('0x1ce1')](_0x5a9b4a[_0x4960e2('0x13aa')]),'targetEvent':_0x2f4cd8,'clickOutsideToClose':!![],'locals':{'type':_0x4960e2('0x2179'),'item':_0x43fa8d,'items':_0x3cf9b6['subjects'],'configuration':_0x3cf9b6[_0x4960e2('0x2517')],'account':_0x3cf9b6['sugarcrmAccount'],'license':null,'setting':null,'crudPermissions':_0x3cf9b6['crudPermissions']}});}function _0x20811b(_0x3c298e){const _0xbeec78=_0x28272d;_0x484b01['intSugarcrmField'][_0xbeec78('0x1da6')]({'id':_0x3c298e['id']})[_0xbeec78('0x1af5')][_0xbeec78('0x17e7')](function(){const _0x290625=_0xbeec78;_0x49cbdd()['remove'](_0x3cf9b6[_0x290625('0x1261')],{'id':_0x3c298e['id']}),_0x7020b0[_0x290625('0x130d')]({'title':'Subject\x20deleted!','msg':_0x290625('0x179c')});})['catch'](function(_0x56e5ab){const _0x12412f=_0xbeec78;_0x7020b0[_0x12412f('0x1db9')]({'title':_0x56e5ab[_0x12412f('0x11c5')]?_0x12412f('0x14f7')+_0x56e5ab['status']+_0x12412f('0x16e4')+_0x56e5ab[_0x12412f('0x1833')]:_0x12412f('0x14bd'),'msg':_0x56e5ab['data']?JSON['stringify'](_0x56e5ab[_0x12412f('0x1457')]):_0x56e5ab[_0x12412f('0x9b6')]()});});}function _0x14302b(_0x2e1584,_0x5e3603){const _0x2f875e=_0x28272d,_0x4aa018=_0x35e984[_0x2f875e('0x1121')]()[_0x2f875e('0x24d3')](_0x2f875e('0x1371'))['htmlContent'](_0x2f875e('0x694')+_0x2f875e('0xe9f'))[_0x2f875e('0x2095')](_0x2f875e('0x16d1'))['targetEvent'](_0x2e1584)['ok']('OK')[_0x2f875e('0x1d47')](_0x2f875e('0x28a0'));_0x35e984['show'](_0x4aa018)[_0x2f875e('0x17e7')](function(){_0x20811b(_0x5e3603);},function(){const _0x1a78e5=_0x2f875e;console[_0x1a78e5('0x1d63')]('CANCEL');});}function _0x57ae4f(_0x18c8a2){const _0xa904ca=_0x28272d,_0x5b1afc=_0x35e984[_0xa904ca('0x1121')]()[_0xa904ca('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20subjects?')[_0xa904ca('0x211f')](''+_0x3cf9b6[_0xa904ca('0x95b')][_0xa904ca('0x1f73')]+_0xa904ca('0x145a')+_0xa904ca('0xe9f'))[_0xa904ca('0x2095')](_0xa904ca('0x1bc'))[_0xa904ca('0x104f')](_0x18c8a2)['ok']('OK')[_0xa904ca('0x1d47')]('CANCEL');_0x35e984[_0xa904ca('0x28e2')](_0x5b1afc)[_0xa904ca('0x17e7')](function(){const _0x4a8168=_0xa904ca;_0x3cf9b6[_0x4a8168('0x95b')]['forEach'](function(_0x5233ac){_0x20811b(_0x5233ac);}),_0x3cf9b6['selectedSubjects']=[];});}_0x3cf9b6['selectedDescriptions']=[],_0x3cf9b6[_0x28272d('0x1ac8')]=_0x290e63,_0x3cf9b6[_0x28272d('0x178')]=_0x1c6fb4,_0x3cf9b6[_0x28272d('0xe42')]=_0x44e69e;function _0x290e63(_0x118278,_0x16aed9){const _0x11d0cc=_0x28272d;_0x35e984['show']({'controller':_0x11d0cc('0x2546'),'controllerAs':'vm','templateUrl':_0x2b3562,'parent':angular['element'](_0x5a9b4a[_0x11d0cc('0x13aa')]),'targetEvent':_0x118278,'clickOutsideToClose':!![],'locals':{'type':_0x11d0cc('0x986'),'item':_0x16aed9,'items':_0x3cf9b6[_0x11d0cc('0x1a2a')],'configuration':_0x3cf9b6['sugarcrmConfiguration'],'account':_0x3cf9b6[_0x11d0cc('0x6e5')],'license':null,'setting':null,'crudPermissions':_0x3cf9b6[_0x11d0cc('0x103e')]}});}function _0x2b68da(_0x3b7279){const _0x4087d5=_0x28272d;_0x484b01[_0x4087d5('0x41b')][_0x4087d5('0x1da6')]({'id':_0x3b7279['id']})[_0x4087d5('0x1af5')][_0x4087d5('0x17e7')](function(){const _0x2daca9=_0x4087d5;_0x49cbdd()[_0x2daca9('0x5f3')](_0x3cf9b6['descriptions'],{'id':_0x3b7279['id']}),_0x7020b0[_0x2daca9('0x130d')]({'title':_0x2daca9('0x1504'),'msg':'Description\x20has\x20been\x20deleted!'});})['catch'](function(_0x4ca6b5){const _0x550b7c=_0x4087d5;_0x7020b0[_0x550b7c('0x1db9')]({'title':_0x4ca6b5['status']?_0x550b7c('0x14f7')+_0x4ca6b5[_0x550b7c('0x11c5')]+_0x550b7c('0x16e4')+_0x4ca6b5['statusText']:_0x550b7c('0x14bd'),'msg':_0x4ca6b5[_0x550b7c('0x1457')]?JSON['stringify'](_0x4ca6b5[_0x550b7c('0x1457')]):_0x4ca6b5[_0x550b7c('0x9b6')]()});});}function _0x1c6fb4(_0xb40ef8,_0x3f1492){const _0x1b5e54=_0x28272d,_0x3f9750=_0x35e984[_0x1b5e54('0x1121')]()[_0x1b5e54('0x24d3')](_0x1b5e54('0x2bb'))[_0x1b5e54('0x211f')](_0x1b5e54('0x217a')+_0x1b5e54('0xe9f'))[_0x1b5e54('0x2095')](_0x1b5e54('0x1cf7'))[_0x1b5e54('0x104f')](_0xb40ef8)['ok']('OK')[_0x1b5e54('0x1d47')](_0x1b5e54('0x28a0'));_0x35e984['show'](_0x3f9750)[_0x1b5e54('0x17e7')](function(){_0x2b68da(_0x3f1492);},function(){const _0x46b39d=_0x1b5e54;console[_0x46b39d('0x1d63')](_0x46b39d('0x28a0'));});}function _0x44e69e(_0x501734){const _0x56615b=_0x28272d,_0xa9381c=_0x35e984[_0x56615b('0x1121')]()['title'](_0x56615b('0x12d4'))[_0x56615b('0x211f')](''+_0x3cf9b6['selectedDescriptions'][_0x56615b('0x1f73')]+_0x56615b('0x145a')+_0x56615b('0xe9f'))[_0x56615b('0x2095')](_0x56615b('0x1fb1'))['targetEvent'](_0x501734)['ok']('OK')[_0x56615b('0x1d47')](_0x56615b('0x28a0'));_0x35e984['show'](_0xa9381c)['then'](function(){const _0x2601f1=_0x56615b;_0x3cf9b6['selectedDescriptions'][_0x2601f1('0xccd')](function(_0x5023c4){_0x2b68da(_0x5023c4);}),_0x3cf9b6[_0x2601f1('0xb0f')]=[];});}_0x3cf9b6['selectedFields']=[],_0x3cf9b6[_0x28272d('0xc53')]=_0x393845,_0x3cf9b6['deleteFieldConfirm']=_0x234bcc,_0x3cf9b6['deleteSelectedFields']=_0xc01e25;function _0x393845(_0x2c5d8d,_0x4f2815){const _0x5b3f5a=_0x28272d;_0x35e984[_0x5b3f5a('0x28e2')]({'controller':_0x5b3f5a('0x2546'),'controllerAs':'vm','templateUrl':_0x2b3562,'parent':angular['element'](_0x5a9b4a[_0x5b3f5a('0x13aa')]),'targetEvent':_0x2c5d8d,'clickOutsideToClose':!![],'locals':{'type':'field','item':_0x4f2815,'items':_0x3cf9b6[_0x5b3f5a('0x9c9')],'configuration':_0x3cf9b6[_0x5b3f5a('0x2517')],'account':_0x3cf9b6[_0x5b3f5a('0x6e5')],'license':null,'setting':null,'crudPermissions':_0x3cf9b6['crudPermissions']}});}function _0x15507a(_0x57b37d){const _0x12c57c=_0x28272d;_0x484b01[_0x12c57c('0x41b')][_0x12c57c('0x1da6')]({'id':_0x57b37d['id']})[_0x12c57c('0x1af5')][_0x12c57c('0x17e7')](function(){const _0x3f46ac=_0x12c57c;_0x49cbdd()[_0x3f46ac('0x5f3')](_0x3cf9b6['fields'],{'id':_0x57b37d['id']}),_0x7020b0['success']({'title':'Field\x20deleted!','msg':_0x3f46ac('0xbb8')});})['catch'](function(_0x2cb5ee){const _0x14613d=_0x12c57c;_0x7020b0[_0x14613d('0x1db9')]({'title':_0x2cb5ee[_0x14613d('0x11c5')]?_0x14613d('0x14f7')+_0x2cb5ee[_0x14613d('0x11c5')]+'\x20-\x20'+_0x2cb5ee[_0x14613d('0x1833')]:_0x14613d('0x14bd'),'msg':_0x2cb5ee['data']?JSON['stringify'](_0x2cb5ee[_0x14613d('0x1457')]):_0x2cb5ee[_0x14613d('0x9b6')]()});});}function _0x234bcc(_0x255a21,_0x214b48){const _0x1ef3a6=_0x28272d,_0x4f9b91=_0x35e984['confirm']()[_0x1ef3a6('0x24d3')](_0x1ef3a6('0x1d1f'))['htmlContent'](_0x1ef3a6('0x23ff')+_0x1ef3a6('0xe9f'))[_0x1ef3a6('0x2095')](_0x1ef3a6('0x1f01'))['targetEvent'](_0x255a21)['ok']('OK')[_0x1ef3a6('0x1d47')]('CANCEL');_0x35e984[_0x1ef3a6('0x28e2')](_0x4f9b91)[_0x1ef3a6('0x17e7')](function(){_0x15507a(_0x214b48);},function(){const _0x104fe2=_0x1ef3a6;console[_0x104fe2('0x1d63')](_0x104fe2('0x28a0'));});}function _0xc01e25(_0x7e3b70){const _0x51d499=_0x28272d,_0x3418bb=_0x35e984['confirm']()[_0x51d499('0x24d3')](_0x51d499('0x1fdd'))[_0x51d499('0x211f')](_0x51d499('0xa53')+_0x3cf9b6[_0x51d499('0xa2e')][_0x51d499('0x1f73')]+_0x51d499('0x145a')+_0x51d499('0xe9f'))['ariaLabel'](_0x51d499('0x15ee'))[_0x51d499('0x104f')](_0x7e3b70)['ok']('OK')[_0x51d499('0x1d47')](_0x51d499('0x28a0'));_0x35e984[_0x51d499('0x28e2')](_0x3418bb)[_0x51d499('0x17e7')](function(){const _0x216a39=_0x51d499;_0x3cf9b6[_0x216a39('0xa2e')][_0x216a39('0xccd')](function(_0x2353d4){_0x15507a(_0x2353d4);}),_0x3cf9b6[_0x216a39('0xa2e')]=[];});}}const _0x54d974=_0x5dc088;_0x419732[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x11d0'),'sugarcrmConfiguration',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x419732(_0x4006cd,_0x43ae82,_0x4b0163,_0x2da398,_0xd1aced,_0x253e19,_0x3b3e69,_0x590dad,_0x4a6a5c,_0x329d5e,_0x4cab5a,_0x3c9d95,_0x24f0fb,_0x4ee614){const _0x1be973=_0x4376d8,_0x4d18a3=this;_0x4d18a3[_0x1be973('0x197c')]=_0x4cab5a[_0x1be973('0x2831')](),_0x4d18a3['errors']=[],_0x4d18a3[_0x1be973('0x1aeb')]=_0x24f0fb,_0x4d18a3[_0x1be973('0x1d11')]=_0x3c9d95,_0x4d18a3[_0x1be973('0x103e')]=_0x4ee614,_0x4d18a3[_0x1be973('0x6ee')]={},_0x4d18a3['passwordPattern']=_0x4d18a3[_0x1be973('0x1aeb')]&&_0x4d18a3['setting'][_0x1be973('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4d18a3[_0x1be973('0x24d3')]=_0x1be973('0x166f'),_0x4d18a3['sugarcrmConfiguration']=angular[_0x1be973('0x14e5')](_0x4a6a5c),_0x4d18a3['configurations']=_0x590dad,_0x4d18a3[_0x1be973('0x930')]=![];!_0x4d18a3[_0x1be973('0x2517')]&&(_0x4d18a3['sugarcrmConfiguration']={'channel':_0x1be973('0x1fe1'),'type':_0x1be973('0x1e77')},_0x4d18a3[_0x1be973('0x24d3')]='INTEGRATIONS.NEW_SUGARCRMCONFIGURATION',_0x4d18a3[_0x1be973('0x930')]=!![]);_0x4d18a3[_0x1be973('0x284b')]=_0x23fa47,_0x4d18a3[_0x1be973('0x215b')]=_0x25e849,_0x4d18a3[_0x1be973('0x162')]=_0x274c39,_0x4d18a3[_0x1be973('0x1300')]=_0x249360,_0x4d18a3['closeDialog']=_0x449506;function _0x23fa47(){const _0x382f33=_0x1be973;_0x4d18a3[_0x382f33('0x73e')]=[],_0x329d5e[_0x382f33('0x1ab3')][_0x382f33('0x5e0')]({'id':_0x43ae82['params']['id']},_0x4d18a3[_0x382f33('0x2517')])['$promise'][_0x382f33('0x17e7')](function(_0xb8a263){const _0x1b4ca1=_0x382f33;_0x4d18a3['configurations'][_0x1b4ca1('0x1893')](_0xb8a263[_0x1b4ca1('0x16b2')]()),_0x3b3e69[_0x1b4ca1('0x130d')]({'title':_0x1b4ca1('0x2139'),'msg':_0x4d18a3['sugarcrmConfiguration'][_0x1b4ca1('0x2aa')]?_0x4d18a3[_0x1b4ca1('0x2517')][_0x1b4ca1('0x2aa')]+_0x1b4ca1('0x15a'):''}),_0x449506(_0xb8a263);})[_0x382f33('0x16df')](function(_0x19532a){const _0x4de82b=_0x382f33;if(_0x19532a[_0x4de82b('0x1457')]&&_0x19532a['data']['errors']&&_0x19532a[_0x4de82b('0x1457')][_0x4de82b('0x73e')][_0x4de82b('0x1f73')]){_0x4d18a3[_0x4de82b('0x73e')]=_0x19532a[_0x4de82b('0x1457')][_0x4de82b('0x73e')]||[{'message':_0x19532a[_0x4de82b('0x9b6')](),'type':_0x4de82b('0x23db')}];for(let _0x5dba8d=0x0;_0x5dba8d<_0x19532a[_0x4de82b('0x1457')][_0x4de82b('0x73e')][_0x4de82b('0x1f73')];_0x5dba8d+=0x1){_0x3b3e69[_0x4de82b('0x1db9')]({'title':_0x19532a['data'][_0x4de82b('0x73e')][_0x5dba8d][_0x4de82b('0x412')],'msg':_0x19532a[_0x4de82b('0x1457')][_0x4de82b('0x73e')][_0x5dba8d][_0x4de82b('0x1603')]});}}else _0x3b3e69[_0x4de82b('0x1db9')]({'title':_0x19532a['status']?'API:'+_0x19532a[_0x4de82b('0x11c5')]+_0x4de82b('0x16e4')+_0x19532a[_0x4de82b('0x1833')]:_0x4de82b('0x23db'),'msg':_0x19532a[_0x4de82b('0x1457')]?JSON[_0x4de82b('0x678')](_0x19532a[_0x4de82b('0x1457')][_0x4de82b('0x1603')]):_0x19532a['toString']()});});}function _0x25e849(){const _0x1ad109=_0x1be973;_0x4d18a3[_0x1ad109('0x73e')]=[],_0x329d5e['intSugarcrmConfiguration']['update']({'id':_0x4d18a3[_0x1ad109('0x2517')]['id']},_0x4d18a3['sugarcrmConfiguration'])[_0x1ad109('0x1af5')][_0x1ad109('0x17e7')](function(_0xe20579){const _0x241e8e=_0x1ad109,_0x4f23f8=_0x49cbdd()[_0x241e8e('0xe8e')](_0x4d18a3['configurations'],{'id':_0xe20579['id']});_0x4f23f8&&_0x49cbdd()['merge'](_0x4f23f8,_0x49cbdd()[_0x241e8e('0x230a')](_0xe20579[_0x241e8e('0x16b2')](),_0x49cbdd()['keys'](_0x4f23f8))),_0x3b3e69[_0x241e8e('0x130d')]({'title':'SugarcrmConfiguration\x20properly\x20saved!','msg':_0x4d18a3['sugarcrmConfiguration'][_0x241e8e('0x2aa')]?_0x4d18a3['sugarcrmConfiguration'][_0x241e8e('0x2aa')]+_0x241e8e('0x15ca'):''}),_0x449506(_0xe20579);})['catch'](function(_0x371305){const _0x28c3a2=_0x1ad109;if(_0x371305[_0x28c3a2('0x1457')]&&_0x371305[_0x28c3a2('0x1457')]['errors']&&_0x371305['data'][_0x28c3a2('0x73e')][_0x28c3a2('0x1f73')]){_0x4d18a3['errors']=_0x371305['data'][_0x28c3a2('0x73e')]||[{'message':_0x371305[_0x28c3a2('0x9b6')](),'type':_0x28c3a2('0x224a')}];for(let _0x3fffd1=0x0;_0x3fffd1<_0x371305[_0x28c3a2('0x1457')][_0x28c3a2('0x73e')][_0x28c3a2('0x1f73')];_0x3fffd1++){_0x3b3e69[_0x28c3a2('0x1db9')]({'title':_0x371305[_0x28c3a2('0x1457')]['errors'][_0x3fffd1]['type'],'msg':_0x371305['data'][_0x28c3a2('0x73e')][_0x3fffd1][_0x28c3a2('0x1603')]});}}else _0x3b3e69[_0x28c3a2('0x1db9')]({'title':_0x371305['status']?_0x28c3a2('0x14f7')+_0x371305[_0x28c3a2('0x11c5')]+_0x28c3a2('0x16e4')+_0x371305[_0x28c3a2('0x1833')]:'api.intSugarcrmConfiguration.update','msg':_0x371305[_0x28c3a2('0x1457')]?JSON[_0x28c3a2('0x678')](_0x371305['data'][_0x28c3a2('0x1603')]):_0x371305[_0x28c3a2('0x9b6')]()});});}function _0x274c39(_0x59d499){const _0xc09191=_0x1be973;_0x4d18a3[_0xc09191('0x73e')]=[];const _0x3975e=_0x2da398[_0xc09191('0x1121')]()[_0xc09191('0x24d3')](_0xc09191('0x530'))[_0xc09191('0xd5')](_0xc09191('0x4b9'))[_0xc09191('0x2095')]('Delete\x20SugarcrmConfiguration')['ok'](_0xc09191('0x304'))[_0xc09191('0x1d47')](_0xc09191('0x1b70'))['targetEvent'](_0x59d499);_0x2da398[_0xc09191('0x28e2')](_0x3975e)[_0xc09191('0x17e7')](function(){const _0x22eed0=_0xc09191;_0x329d5e['intSugarcrmConfiguration'][_0x22eed0('0x1da6')]({'id':_0x4d18a3[_0x22eed0('0x2517')]['id']})['$promise'][_0x22eed0('0x17e7')](function(){const _0x1b5c04=_0x22eed0;_0x49cbdd()[_0x1b5c04('0x5f3')](_0x4d18a3[_0x1b5c04('0x11d0')],{'id':_0x4d18a3[_0x1b5c04('0x2517')]['id']}),_0x3b3e69['success']({'title':_0x1b5c04('0x207a'),'msg':(_0x4d18a3[_0x1b5c04('0x2517')]['name']||'sugarcrmConfiguration')+'\x20has\x20been\x20deleted!'}),_0x449506(_0x4d18a3[_0x1b5c04('0x2517')]);})['catch'](function(_0x1fefdb){const _0x1a6927=_0x22eed0;if(_0x1fefdb['data']&&_0x1fefdb[_0x1a6927('0x1457')]['errors']&&_0x1fefdb[_0x1a6927('0x1457')]['errors'][_0x1a6927('0x1f73')]){_0x4d18a3[_0x1a6927('0x73e')]=_0x1fefdb[_0x1a6927('0x1457')][_0x1a6927('0x73e')]||[{'message':_0x1fefdb['toString'](),'type':_0x1a6927('0x169c')}];for(let _0x53aab2=0x0;_0x53aab2<_0x1fefdb['data'][_0x1a6927('0x73e')]['length'];_0x53aab2++){_0x3b3e69['error']({'title':_0x1fefdb[_0x1a6927('0x1457')][_0x1a6927('0x73e')][_0x53aab2]['type'],'msg':_0x1fefdb[_0x1a6927('0x1457')][_0x1a6927('0x73e')][_0x53aab2]['message']});}}else _0x3b3e69[_0x1a6927('0x1db9')]({'title':_0x1fefdb[_0x1a6927('0x11c5')]?_0x1a6927('0x14f7')+_0x1fefdb['status']+_0x1a6927('0x16e4')+_0x1fefdb[_0x1a6927('0x1833')]:_0x1a6927('0x169c'),'msg':_0x1fefdb[_0x1a6927('0x1457')]?JSON[_0x1a6927('0x678')](_0x1fefdb['data'][_0x1a6927('0x1603')]):_0x1fefdb[_0x1a6927('0x1603')]||_0x1fefdb[_0x1a6927('0x9b6')]()});});},function(){});}function _0x249360(_0x389b40){return _0x389b40===null?undefined:new Date(_0x389b40);}function _0x449506(_0x19e920){const _0x5ba8bc=_0x1be973;_0x2da398[_0x5ba8bc('0x212a')](_0x19e920);}}const _0xcfe6e3=_0x419732;_0x5d5809[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x1c4'),'items',_0x4376d8('0x28b8'),'account',_0x4376d8('0x412'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'crudPermissions'];function _0x5d5809(_0x9f9139,_0x313c65,_0x1e4556,_0x2fec6b,_0x15fd08,_0x4d14a3,_0x20aa56,_0x50b055,_0x13443c,_0x3d4c70,_0x640882,_0x58efa2,_0xe91bc7){const _0x4496ee=_0x4376d8,_0x1d439e=this;_0x1d439e[_0x4496ee('0x197c')]=_0x58efa2[_0x4496ee('0x2831')](),_0x1d439e['errors']=[],_0x1d439e['title']=_0x4496ee('0x9dd')+_0x49cbdd()[_0x4496ee('0x286f')](_0x3d4c70),_0x1d439e[_0x4496ee('0x28b8')]=angular[_0x4496ee('0x14e5')](_0x50b055),_0x1d439e['items']=_0x20aa56,_0x1d439e[_0x4496ee('0x412')]=_0x3d4c70,_0x1d439e[_0x4496ee('0x103e')]=_0xe91bc7,_0x1d439e[_0x4496ee('0x1ac5')]=![];!_0x1d439e[_0x4496ee('0x28b8')]&&(_0x1d439e[_0x4496ee('0x28b8')]={'type':_0x4496ee('0x1783')},_0x1d439e[_0x4496ee('0x28b8')][_0x49cbdd()['capitalize'](_0x3d4c70)+'Id']=_0x4d14a3['id'],_0x1d439e['title']=_0x4496ee('0x6fe')+_0x49cbdd()['toUpper'](_0x3d4c70),_0x1d439e[_0x4496ee('0x1ac5')]=!![]);_0x1d439e['addNewItem']=_0x2793ac,_0x1d439e['saveItem']=_0x1db46c,_0x1d439e['deleteItem']=_0x2bf0c9,_0x1d439e[_0x4496ee('0x140a')]=_0x690113,_0x1d439e[_0x4496ee('0x136e')]=_0x28c60b,_0x640882['variable']['get']({'nolimit':!![]})[_0x4496ee('0x1af5')]['then'](function(_0x42a46e){const _0x159570=_0x4496ee;return _0x1d439e[_0x159570('0xd26')]=_0x42a46e[_0x159570('0x2319')]?_0x42a46e[_0x159570('0x2319')]:[],_0x640882['voiceAgentReport'][_0x159570('0x2234')]()[_0x159570('0x1af5')];})[_0x4496ee('0x17e7')](function(_0x527d5a){const _0x4e6d01=_0x4496ee;return _0x1d439e[_0x4e6d01('0x217b')]=_0x49cbdd()[_0x4e6d01('0x4f1')](_0x49cbdd()['keys'](_0x527d5a),['$promise',_0x4e6d01('0x1314'),_0x4e6d01('0x7c9'),'updatedAt','sourceid']),_0x1d439e[_0x4e6d01('0x217b')][_0x4e6d01('0x269f')](_0x4e6d01('0x1bea')),_0x640882['voiceDialReport']['describe']()[_0x4e6d01('0x1af5')];})[_0x4496ee('0x17e7')](function(_0x26eca4){const _0x8c11a3=_0x4496ee;_0x1d439e['voiceDialReportColumns']=_0x49cbdd()[_0x8c11a3('0x4f1')](_0x49cbdd()[_0x8c11a3('0x1c0f')](_0x26eca4),[_0x8c11a3('0x1af5'),_0x8c11a3('0x1314'),_0x8c11a3('0x7c9'),_0x8c11a3('0xb8a'),'sourceid']),_0x1d439e[_0x8c11a3('0xe00')]['push'](_0x8c11a3('0x1bea'));})[_0x4496ee('0x16df')](function(_0xcb9ad7){const _0x3018db=_0x4496ee;_0x15fd08[_0x3018db('0x1db9')]({'title':_0xcb9ad7[_0x3018db('0x11c5')]?_0x3018db('0x14f7')+_0xcb9ad7[_0x3018db('0x11c5')]+'\x20-\x20'+_0xcb9ad7['statusText']:_0x3018db('0x3a9'),'msg':_0xcb9ad7[_0x3018db('0x1457')]?JSON['stringify'](_0xcb9ad7[_0x3018db('0x1457')]):_0xcb9ad7[_0x3018db('0x9b6')]()});}),_0x640882[_0x4496ee('0x1ab3')]['getFields']({'id':_0x13443c['id'],'ticketType':_0x4d14a3[_0x4496ee('0x148e')]?_0x4d14a3[_0x4496ee('0x148e')]:undefined})[_0x4496ee('0x1af5')][_0x4496ee('0x17e7')](function(_0x508696){const _0x234f14=_0x4496ee;_0x1d439e[_0x234f14('0x20c2')]=!![],_0x1d439e[_0x234f14('0x9c9')]=_0x508696[_0x234f14('0x2319')]?_0x508696[_0x234f14('0x2319')]:[],_0x1d439e[_0x234f14('0x28b8')][_0x234f14('0x8d8')]&&(_0x1d439e[_0x234f14('0x1fa4')]=_0x49cbdd()[_0x234f14('0xe8e')](_0x1d439e[_0x234f14('0x9c9')],{'id':_0x1d439e[_0x234f14('0x28b8')][_0x234f14('0x8d8')]}));})[_0x4496ee('0x16df')](function(_0x2626c7){const _0x2beb0e=_0x4496ee;_0x1d439e['accountConnected']=![],console[_0x2beb0e('0x1db9')](_0x2626c7);});function _0x2793ac(){const _0x4b1178=_0x4496ee;_0x1d439e['errors']=[],_0x1d439e['customField']&&(_0x1d439e[_0x4b1178('0x28b8')]['idField']=_0x1d439e[_0x4b1178('0x1fa4')]['id'],_0x1d439e['item'][_0x4b1178('0x1a12')]=_0x1d439e['customField'][_0x4b1178('0x2aa')],_0x1d439e['item'][_0x4b1178('0x1fa4')]=_0x1d439e[_0x4b1178('0x1fa4')][_0x4b1178('0x8fa')]),_0x640882[_0x4b1178('0x41b')][_0x4b1178('0x2439')](_0x1d439e['item'])['$promise'][_0x4b1178('0x17e7')](function(_0x339034){const _0x82d298=_0x4b1178;_0x1d439e[_0x82d298('0x532')][_0x82d298('0x1893')](_0x339034),_0x15fd08[_0x82d298('0x130d')]({'title':_0x49cbdd()['capitalize'](_0x3d4c70)+'\x20properly\x20created','msg':_0x49cbdd()[_0x82d298('0xb41')](_0x3d4c70)+_0x82d298('0x15a')}),_0x28c60b();})[_0x4b1178('0x16df')](function(_0x19f536){const _0x16d75c=_0x4b1178;console['error'](_0x19f536),_0x1d439e[_0x16d75c('0x73e')]=_0x19f536[_0x16d75c('0x1457')][_0x16d75c('0x73e')]||[{'message':_0x19f536[_0x16d75c('0x9b6')](),'type':'api.item.save'}];});}function _0x1db46c(){const _0x27bc07=_0x4496ee;_0x1d439e[_0x27bc07('0x73e')]=[],_0x1d439e[_0x27bc07('0x1fa4')]&&(_0x1d439e['item'][_0x27bc07('0x8d8')]=_0x1d439e[_0x27bc07('0x1fa4')]['id'],_0x1d439e[_0x27bc07('0x28b8')][_0x27bc07('0x1a12')]=_0x1d439e[_0x27bc07('0x1fa4')][_0x27bc07('0x2aa')],_0x1d439e[_0x27bc07('0x28b8')][_0x27bc07('0x1fa4')]=_0x1d439e[_0x27bc07('0x1fa4')][_0x27bc07('0x8fa')]),_0x640882[_0x27bc07('0x41b')][_0x27bc07('0x27ba')]({'id':_0x1d439e[_0x27bc07('0x28b8')]['id']},_0x1d439e[_0x27bc07('0x28b8')])[_0x27bc07('0x1af5')]['then'](function(_0x28ad57){const _0x110045=_0x27bc07,_0x3767f1=_0x49cbdd()[_0x110045('0xe8e')](_0x1d439e[_0x110045('0x532')],{'id':_0x28ad57['id']});_0x3767f1&&_0x49cbdd()['merge'](_0x3767f1,_0x28ad57),_0x15fd08[_0x110045('0x130d')]({'title':_0x49cbdd()[_0x110045('0xb41')](_0x3d4c70)+_0x110045('0x2b8'),'msg':_0x49cbdd()[_0x110045('0xb41')](_0x3d4c70)+_0x110045('0x15ca')}),_0x28c60b();})[_0x27bc07('0x16df')](function(_0x4297cd){const _0x36eb4a=_0x27bc07;console[_0x36eb4a('0x1db9')](_0x4297cd),_0x1d439e['errors']=_0x4297cd[_0x36eb4a('0x1457')][_0x36eb4a('0x73e')]||[{'message':_0x4297cd[_0x36eb4a('0x9b6')](),'type':_0x36eb4a('0x428')}];});}function _0x2bf0c9(_0x4198ea){const _0x2c9035=_0x4496ee;_0x1d439e['errors']=[];const _0xd18e8c=_0x2fec6b[_0x2c9035('0x1121')]()[_0x2c9035('0x24d3')]('Are\x20you\x20sure?')[_0x2c9035('0xd5')](_0x2c9035('0x1664')+_0x3d4c70+_0x2c9035('0xe9f'))[_0x2c9035('0x2095')](_0x2c9035('0x1aaa')+_0x49cbdd()[_0x2c9035('0xb41')](_0x3d4c70))['ok'](_0x2c9035('0x304'))['cancel'](_0x2c9035('0x1b70'))['targetEvent'](_0x4198ea);_0x2fec6b[_0x2c9035('0x28e2')](_0xd18e8c)[_0x2c9035('0x17e7')](function(){const _0x216601=_0x2c9035;_0x640882[_0x216601('0x41b')][_0x216601('0x1da6')]({'id':_0x1d439e[_0x216601('0x28b8')]['id']})['$promise'][_0x216601('0x17e7')](function(){const _0x236e71=_0x216601;_0x49cbdd()[_0x236e71('0x5f3')](_0x1d439e[_0x236e71('0x532')],{'id':_0x1d439e[_0x236e71('0x28b8')]['id']}),_0x15fd08[_0x236e71('0x130d')]({'title':_0x49cbdd()[_0x236e71('0xb41')](_0x3d4c70)+'\x20properly\x20deleted!','msg':_0x49cbdd()['capitalize'](_0x3d4c70)+_0x236e71('0x149f')}),_0x28c60b();})[_0x216601('0x16df')](function(_0x2cb0e4){const _0x23feac=_0x216601;console['error'](_0x2cb0e4),_0x1d439e['errors']=_0x2cb0e4[_0x23feac('0x1457')][_0x23feac('0x73e')]||[{'message':_0x2cb0e4[_0x23feac('0x9b6')](),'type':'api.item.delete'}];});},function(){});}function _0x690113(){const _0x21b163=_0x4496ee;return _0x1d439e[_0x21b163('0x28b8')][_0x21b163('0x4fd')]!==undefined?_0x1d439e[_0x21b163('0x28b8')][_0x21b163('0x4fd')]:'Please\x20select\x20a\x20variable';}function _0x28c60b(){const _0x3029c4=_0x4496ee;_0x2fec6b[_0x3029c4('0x212a')]();}}const _0x478b48=_0x5d5809;_0x2e30b9[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),'toasty','Auth',_0x4376d8('0x6e5'),_0x4376d8('0x383')];function _0x2e30b9(_0x397d62,_0x480ae4,_0x18100e,_0x5101c9,_0x122e25,_0x1e7c0d,_0x1dfc6c,_0x2efa42,_0x1c7c4d,_0x4d6169,_0x557c23,_0x5725ae){const _0x3aabb1=_0x4376d8,_0x16c128=this;_0x16c128[_0x3aabb1('0x197c')]=_0x4d6169['getCurrentUser'](),_0x16c128[_0x3aabb1('0x1d11')]=_0x1e7c0d,_0x16c128[_0x3aabb1('0x1aeb')]=_0x1dfc6c,_0x16c128[_0x3aabb1('0x1572')]=_0x16c128[_0x3aabb1('0x1aeb')][_0x3aabb1('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x16c128[_0x3aabb1('0xaed')]=_0x480ae4[_0x3aabb1('0x14fe')]()+_0x3aabb1('0x14')+_0x480ae4[_0x3aabb1('0x108')](),_0x16c128[_0x3aabb1('0x6e5')]=_0x557c23||_0x397d62[_0x3aabb1('0x16fb')]['sugarcrmAccount']||{},_0x16c128[_0x3aabb1('0x383')]=_0x5725ae&&_0x5725ae[_0x3aabb1('0x335')]==0x1?_0x5725ae[_0x3aabb1('0x2319')][0x0]:null,_0x16c128[_0x3aabb1('0x103e')]=_0x4d6169[_0x3aabb1('0x17a9')](_0x16c128[_0x3aabb1('0x383')]?_0x16c128[_0x3aabb1('0x383')]['crudPermissions']:null),_0x16c128[_0x3aabb1('0x6ee')]={},_0x16c128[_0x3aabb1('0xde7')]=_0x397d62['params'][_0x3aabb1('0x1523')]||0x0,_0x16c128[_0x3aabb1('0x99f')]=_0x1c7c4d[_0x3aabb1('0x1178')],_0x16c128['gotoSugarcrmAccounts']=_0x285a0b,_0x16c128[_0x3aabb1('0x5c2')]=_0x30f10a;function _0x285a0b(){_0x397d62['go']('app.integrations.sugarcrmAccounts',{},{'reload':'app.integrations.sugarcrmAccounts'});}function _0x30f10a(){const _0x3e9ca7=_0x3aabb1;_0x2efa42[_0x3e9ca7('0x1ab3')][_0x3e9ca7('0x27ba')]({'id':_0x16c128[_0x3e9ca7('0x6e5')]['id']},_0x16c128[_0x3e9ca7('0x6e5')])[_0x3e9ca7('0x1af5')][_0x3e9ca7('0x17e7')](function(){const _0x386edf=_0x3e9ca7;_0x1c7c4d[_0x386edf('0x130d')]({'title':_0x386edf('0xac'),'msg':_0x16c128[_0x386edf('0x6e5')][_0x386edf('0x2aa')]?_0x16c128[_0x386edf('0x6e5')][_0x386edf('0x2aa')]+_0x386edf('0x12b0'):''});})['catch'](function(_0xc66282){const _0x402e0e=_0x3e9ca7;_0x1c7c4d['error']({'title':_0xc66282[_0x402e0e('0x11c5')]?'API:'+_0xc66282[_0x402e0e('0x11c5')]+'\x20-\x20'+_0xc66282[_0x402e0e('0x1833')]:_0x402e0e('0x1035'),'msg':_0xc66282[_0x402e0e('0x1457')]?JSON[_0x402e0e('0x678')](_0xc66282['data']):_0xc66282[_0x402e0e('0x9b6')]()});});}}const _0x6fc0c0=_0x2e30b9,_0x464c8e=_0x4cf2bc['p']+_0x4376d8('0xc31');_0x2b8732[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),'$mdSidenav',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x245f'),'userProfile','userProfileSection',_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x2b8732(_0x525ac1,_0x2e010f,_0xaf97ab,_0x54bd9d,_0x253c9d,_0x526ad6,_0x2bae35,_0xdc8527,_0x1da5fa,_0x9efae8,_0x163a59,_0x530e38,_0x913358,_0x452002,_0xe6140f,_0x3978e6,_0x44f24e){const _0x465d3a=_0x4376d8,_0xa16c10=this;_0xa16c10[_0x465d3a('0x1d11')]=_0x3978e6,_0xa16c10[_0x465d3a('0x1aeb')]=_0x44f24e,_0xa16c10[_0x465d3a('0x197c')]=_0xe6140f['getCurrentUser'](),_0xa16c10[_0x465d3a('0x245f')]=_0x1da5fa||{'count':0x0,'rows':[]},_0xa16c10[_0x465d3a('0xdeb')]=_0x9efae8,_0xa16c10[_0x465d3a('0x383')]=_0x163a59&&_0x163a59[_0x465d3a('0x335')]==0x1?_0x163a59[_0x465d3a('0x2319')][0x0]:null,_0xa16c10[_0x465d3a('0x103e')]=_0xe6140f[_0x465d3a('0x17a9')](_0xa16c10[_0x465d3a('0x383')]?_0xa16c10['userProfileSection']['crudPermissions']:null),_0xa16c10['table']=_0x465d3a('0x245f'),_0xa16c10[_0x465d3a('0x26a1')]='',_0xa16c10[_0x465d3a('0x24e1')]=null,_0xa16c10[_0x465d3a('0x21d5')]=[],_0xa16c10[_0x465d3a('0x826')]={'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','limit':0xa,'page':0x1},_0xa16c10[_0x465d3a('0xcd4')]=_0x387334,_0xa16c10['testtestintegrationaccount']=_0x5e1dc1,_0xa16c10[_0x465d3a('0xbf4')]=_0x382fdc,_0xa16c10[_0x465d3a('0x130d')]=_0xc3f6c,_0xa16c10[_0x465d3a('0x281c')]=_0x302a05,_0xa16c10[_0x465d3a('0x220')]=_0x456288,_0xa16c10[_0x465d3a('0x939')]=_0x1cf623,_0xa16c10[_0x465d3a('0x204c')]=_0x2b063b,_0xa16c10[_0x465d3a('0x2821')]=_0x2bbd24,_0xa16c10[_0x465d3a('0x878')]=_0x5bd6fa,_0xa16c10[_0x465d3a('0xe35')]=_0x128d72;function _0x387334(_0x1db2ea){const _0x1103a6=_0x465d3a;_0xaf97ab['go'](_0x1103a6('0x1966'),{'id':_0x1db2ea['id'],'sugarcrmAccount':_0x1db2ea,'crudPermissions':_0xa16c10[_0x1103a6('0x103e')]});}function _0x5e1dc1(_0x25cf03){const _0x539168=_0x465d3a;return _0x530e38[_0x539168('0x1ab3')][_0x539168('0x9a')]({'id':_0x25cf03['id'],'test':!![]})[_0x539168('0x1af5')][_0x539168('0x17e7')](function(){const _0x5a9524=_0x539168;_0x452002[_0x5a9524('0x130d')]({'title':'SugarcrmAccount\x20properly\x20tested','msg':_0x5a9524('0x120d')});})[_0x539168('0x16df')](function(_0x5c76fd){const _0x8347d2=_0x539168;_0x452002['error']({'title':_0x8347d2('0x1455'),'msg':_0x5c76fd['data']?_0x5c76fd[_0x8347d2('0x1457')][_0x8347d2('0x1603')]?_0x5c76fd[_0x8347d2('0x1457')]['message']:JSON[_0x8347d2('0x678')](_0x5c76fd[_0x8347d2('0x1457')]):_0x5c76fd[_0x8347d2('0x9b6')]()});});}function _0x382fdc(_0x3ee238,_0x7595f6){const _0x3f58af=_0x465d3a,_0x37ed04=_0x253c9d[_0x3f58af('0x1121')]()[_0x3f58af('0x24d3')](_0x3f58af('0x5e1')+_0x49cbdd()[_0x3f58af('0x1c98')]('sugarcrmAccount')+'?')['htmlContent'](''+(_0x3ee238[_0x3f58af('0x2aa')]||'sugarcrmAccount')+_0x3f58af('0x1d23')+_0x3f58af('0xe9f'))[_0x3f58af('0x2095')](_0x3f58af('0x593'))['targetEvent'](_0x7595f6)['ok']('OK')['cancel'](_0x3f58af('0x28a0'));_0x253c9d[_0x3f58af('0x28e2')](_0x37ed04)['then'](function(){_0x1cf623(_0x3ee238);},function(){const _0x325939=_0x3f58af;console[_0x325939('0x1d63')]('CANCEL');});}let _0x546ff9=!![],_0x22df07=0x1;_0x525ac1[_0x465d3a('0x620')](_0x465d3a('0x3ed'),function(_0xa686e,_0x21dfdb){const _0x1e024f=_0x465d3a;_0x546ff9?_0x2bae35(function(){_0x546ff9=![];}):(!_0x21dfdb&&(_0x22df07=_0xa16c10[_0x1e024f('0x826')][_0x1e024f('0x115a')]),_0xa686e!==_0x21dfdb&&(_0xa16c10[_0x1e024f('0x826')][_0x1e024f('0x115a')]=0x1),!_0xa686e&&(_0xa16c10[_0x1e024f('0x826')][_0x1e024f('0x115a')]=_0x22df07),_0xa16c10['getSugarcrmAccounts']());});function _0xc3f6c(_0x78fdab){const _0x1d9e07=_0x465d3a;_0xa16c10[_0x1d9e07('0x245f')]=_0x78fdab||{'count':0x0,'rows':[]};}function _0x302a05(){const _0x5925a6=_0x465d3a;_0xa16c10['query'][_0x5925a6('0xf19')]=(_0xa16c10['query'][_0x5925a6('0x115a')]-0x1)*_0xa16c10[_0x5925a6('0x826')][_0x5925a6('0x193b')],_0xe6140f[_0x5925a6('0x1ba2')]('admin')?_0xa16c10[_0x5925a6('0x1691')]=_0x530e38[_0x5925a6('0x1ab3')][_0x5925a6('0x1c53')](_0xa16c10[_0x5925a6('0x826')],_0xc3f6c)[_0x5925a6('0x1af5')]:(_0xa16c10['query']['id']=_0xa16c10[_0x5925a6('0xdeb')]['id'],_0xa16c10[_0x5925a6('0x826')]['section']=_0x5925a6('0x148c'),_0xa16c10[_0x5925a6('0x1691')]=_0x530e38[_0x5925a6('0xdeb')][_0x5925a6('0x2447')](_0xa16c10[_0x5925a6('0x826')],_0xc3f6c)['$promise']);}function _0x456288(_0x396f34,_0x3a6949){const _0x47c3e4=_0x465d3a;_0x253c9d['show']({'controller':'CreateOrEditSugarcrmAccountDialogController','controllerAs':'vm','templateUrl':_0x464c8e,'parent':angular[_0x47c3e4('0x1ce1')](_0x526ad6[_0x47c3e4('0x13aa')]),'targetEvent':_0x396f34,'clickOutsideToClose':!![],'locals':{'sugarcrmAccount':_0x3a6949,'sugarcrmAccounts':_0xa16c10[_0x47c3e4('0x245f')][_0x47c3e4('0x2319')],'license':_0xa16c10['license'],'setting':_0xa16c10[_0x47c3e4('0x1aeb')],'crudPermissions':_0xa16c10['crudPermissions']}});}function _0x1cf623(_0x1082b4){const _0x5becc0=_0x465d3a;_0x530e38[_0x5becc0('0x1ab3')]['delete']({'id':_0x1082b4['id']})[_0x5becc0('0x1af5')][_0x5becc0('0x17e7')](function(){const _0x3cfe96=_0x5becc0;_0x49cbdd()['remove'](_0xa16c10[_0x3cfe96('0x245f')][_0x3cfe96('0x2319')],{'id':_0x1082b4['id']}),_0xa16c10['sugarcrmAccounts'][_0x3cfe96('0x335')]-=0x1,!_0xa16c10[_0x3cfe96('0x245f')][_0x3cfe96('0x2319')][_0x3cfe96('0x1f73')]&&_0xa16c10[_0x3cfe96('0x281c')](),_0x452002[_0x3cfe96('0x130d')]({'title':_0x49cbdd()[_0x3cfe96('0x1c98')]('SugarcrmAccount')+_0x3cfe96('0x2673'),'msg':_0x1082b4[_0x3cfe96('0x2aa')]?_0x1082b4[_0x3cfe96('0x2aa')]+_0x3cfe96('0x149f'):''});})[_0x5becc0('0x16df')](function(_0x2f0e86){const _0x3a1987=_0x5becc0;if(_0x2f0e86[_0x3a1987('0x1457')]&&_0x2f0e86[_0x3a1987('0x1457')][_0x3a1987('0x73e')]&&_0x2f0e86[_0x3a1987('0x1457')]['errors'][_0x3a1987('0x1f73')]){_0xa16c10[_0x3a1987('0x73e')]=_0x2f0e86[_0x3a1987('0x1457')][_0x3a1987('0x73e')]||[{'message':_0x2f0e86['toString'](),'type':'SYSTEM:DELETEintSugarcrmAccount'}];for(let _0x596b0a=0x0;_0x596b0a<_0x2f0e86[_0x3a1987('0x1457')][_0x3a1987('0x73e')][_0x3a1987('0x1f73')];_0x596b0a++){_0x452002[_0x3a1987('0x1db9')]({'title':_0x2f0e86[_0x3a1987('0x1457')][_0x3a1987('0x73e')][_0x596b0a][_0x3a1987('0x412')],'msg':_0x2f0e86[_0x3a1987('0x1457')][_0x3a1987('0x73e')][_0x596b0a][_0x3a1987('0x1603')]});}}else _0x452002[_0x3a1987('0x1db9')]({'title':_0x2f0e86[_0x3a1987('0x11c5')]?_0x3a1987('0x14f7')+_0x2f0e86[_0x3a1987('0x11c5')]+_0x3a1987('0x16e4')+_0x2f0e86[_0x3a1987('0x1833')]:_0x3a1987('0x4c7'),'msg':_0x2f0e86['data']?JSON[_0x3a1987('0x678')](_0x2f0e86['data'][_0x3a1987('0x1603')]):_0x2f0e86[_0x3a1987('0x1603')]||_0x2f0e86['toString']()});});}function _0x2b063b(){const _0x13ba5a=_0x465d3a,_0x4b9a3e=angular[_0x13ba5a('0x14e5')](_0xa16c10[_0x13ba5a('0x21d5')]);return _0xa16c10[_0x13ba5a('0x21d5')]=[],_0x4b9a3e;}function _0x2bbd24(_0x43e281){const _0x2a1f2d=_0x465d3a,_0x36af71=_0x253c9d[_0x2a1f2d('0x1121')]()[_0x2a1f2d('0x24d3')](_0x2a1f2d('0x1ebb'))[_0x2a1f2d('0x211f')](''+_0xa16c10['selectedSugarcrmAccounts'][_0x2a1f2d('0x1f73')]+_0x2a1f2d('0x145a')+'\x20will\x20be\x20deleted.')[_0x2a1f2d('0x2095')](_0x2a1f2d('0x48d'))[_0x2a1f2d('0x104f')](_0x43e281)['ok']('OK')[_0x2a1f2d('0x1d47')](_0x2a1f2d('0x28a0'));_0x253c9d[_0x2a1f2d('0x28e2')](_0x36af71)[_0x2a1f2d('0x17e7')](function(){const _0x4abae0=_0x2a1f2d;_0xa16c10[_0x4abae0('0x21d5')][_0x4abae0('0xccd')](function(_0x3f0d93){_0x1cf623(_0x3f0d93);}),_0xa16c10[_0x4abae0('0x21d5')]=[];});}function _0x5bd6fa(){const _0x445491=_0x465d3a;_0xa16c10[_0x445491('0x21d5')]=[];}function _0x128d72(){const _0x49a247=_0x465d3a;_0xa16c10[_0x49a247('0x21d5')]=_0xa16c10['sugarcrmAccounts'][_0x49a247('0x2319')];}}const _0x3764ab=_0x2b8732;_0x24230b[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x1b34'),_0x4376d8('0x22a6'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x24230b(_0x229bd8,_0x2ac9b5,_0x424b35,_0x36a640,_0x4dfddd,_0x3dc36b,_0x14185c,_0x137cff,_0x111d25,_0xa347c3,_0x384e2f,_0x4b3713,_0x37bd26,_0x429a5a){const _0x4c3873=_0x4376d8,_0x1d852e=this;_0x1d852e[_0x4c3873('0x197c')]=_0x384e2f['getCurrentUser'](),_0x1d852e[_0x4c3873('0x73e')]=[],_0x1d852e[_0x4c3873('0x1aeb')]=_0x37bd26,_0x1d852e['license']=_0x4b3713,_0x1d852e[_0x4c3873('0x103e')]=_0x429a5a,_0x1d852e['hasModulePermissions']={},_0x1d852e[_0x4c3873('0x1572')]=_0x1d852e['setting']&&_0x1d852e[_0x4c3873('0x1aeb')][_0x4c3873('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x1d852e[_0x4c3873('0x24d3')]=_0x4c3873('0x1e66'),_0x1d852e['vtigerAccount']=angular[_0x4c3873('0x14e5')](_0x111d25),_0x1d852e[_0x4c3873('0x1b34')]=_0x137cff,_0x1d852e[_0x4c3873('0x2108')]=![];!_0x1d852e[_0x4c3873('0x22a6')]&&(_0x1d852e[_0x4c3873('0x22a6')]={'serverUrl':_0x424b35[_0x4c3873('0x14fe')]()+_0x4c3873('0x14')+_0x424b35[_0x4c3873('0x108')]()+(_0x424b35[_0x4c3873('0x2442')]()?':'+_0x424b35[_0x4c3873('0x2442')]():'')},_0x1d852e[_0x4c3873('0x24d3')]=_0x4c3873('0x1855'),_0x1d852e[_0x4c3873('0x2108')]=!![]);_0x1d852e[_0x4c3873('0xfd4')]=_0x43e657,_0x1d852e[_0x4c3873('0x2226')]=_0x108a04,_0x1d852e[_0x4c3873('0x347')]=_0x4b8d75,_0x1d852e[_0x4c3873('0x1300')]=_0x3e1441,_0x1d852e[_0x4c3873('0x136e')]=_0x1f5000;function _0x43e657(){const _0x5677a6=_0x4c3873;_0x1d852e[_0x5677a6('0x73e')]=[],_0xa347c3[_0x5677a6('0x2090')][_0x5677a6('0x2439')](_0x1d852e[_0x5677a6('0x22a6')])[_0x5677a6('0x1af5')][_0x5677a6('0x17e7')](function(_0x4c6de4){const _0x268f6f=_0x5677a6;_0x1d852e[_0x268f6f('0x1b34')]['unshift'](_0x4c6de4['toJSON']()),_0x14185c[_0x268f6f('0x130d')]({'title':_0x268f6f('0xbcf'),'msg':_0x1d852e[_0x268f6f('0x22a6')][_0x268f6f('0x2aa')]?_0x1d852e[_0x268f6f('0x22a6')]['name']+'\x20has\x20been\x20created!':''}),_0x1f5000(_0x4c6de4);})[_0x5677a6('0x16df')](function(_0x429095){const _0x2d23bf=_0x5677a6;if(_0x429095[_0x2d23bf('0x1457')]&&_0x429095['data'][_0x2d23bf('0x73e')]&&_0x429095[_0x2d23bf('0x1457')][_0x2d23bf('0x73e')][_0x2d23bf('0x1f73')]){_0x1d852e[_0x2d23bf('0x73e')]=_0x429095[_0x2d23bf('0x1457')][_0x2d23bf('0x73e')]||[{'message':_0x429095[_0x2d23bf('0x9b6')](),'type':_0x2d23bf('0x10d1')}];for(let _0x208237=0x0;_0x208237<_0x429095[_0x2d23bf('0x1457')][_0x2d23bf('0x73e')]['length'];_0x208237+=0x1){_0x14185c[_0x2d23bf('0x1db9')]({'title':_0x429095[_0x2d23bf('0x1457')][_0x2d23bf('0x73e')][_0x208237]['type'],'msg':_0x429095[_0x2d23bf('0x1457')][_0x2d23bf('0x73e')][_0x208237][_0x2d23bf('0x1603')]});}}else _0x14185c[_0x2d23bf('0x1db9')]({'title':_0x429095['status']?_0x2d23bf('0x14f7')+_0x429095[_0x2d23bf('0x11c5')]+_0x2d23bf('0x16e4')+_0x429095[_0x2d23bf('0x1833')]:'api.intVtigerAccount.save','msg':_0x429095[_0x2d23bf('0x1457')]?JSON['stringify'](_0x429095[_0x2d23bf('0x1457')]['message']):_0x429095[_0x2d23bf('0x9b6')]()});});}function _0x108a04(){const _0x37b727=_0x4c3873;_0x1d852e['errors']=[],_0xa347c3[_0x37b727('0x2090')]['update']({'id':_0x1d852e[_0x37b727('0x22a6')]['id']},_0x1d852e[_0x37b727('0x22a6')])[_0x37b727('0x1af5')][_0x37b727('0x17e7')](function(_0xbe571d){const _0x1a5a2b=_0x37b727,_0x41e1aa=_0x49cbdd()['find'](_0x1d852e['vtigerAccounts'],{'id':_0xbe571d['id']});_0x41e1aa&&_0x49cbdd()[_0x1a5a2b('0x1ced')](_0x41e1aa,_0x49cbdd()[_0x1a5a2b('0x230a')](_0xbe571d[_0x1a5a2b('0x16b2')](),_0x49cbdd()[_0x1a5a2b('0x1c0f')](_0x41e1aa))),_0x14185c[_0x1a5a2b('0x130d')]({'title':_0x1a5a2b('0x166a'),'msg':_0x1d852e['vtigerAccount']['name']?_0x1d852e[_0x1a5a2b('0x22a6')][_0x1a5a2b('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x1f5000(_0xbe571d);})[_0x37b727('0x16df')](function(_0x398fc0){const _0x23cd5b=_0x37b727;if(_0x398fc0[_0x23cd5b('0x1457')]&&_0x398fc0[_0x23cd5b('0x1457')][_0x23cd5b('0x73e')]&&_0x398fc0['data'][_0x23cd5b('0x73e')][_0x23cd5b('0x1f73')]){_0x1d852e[_0x23cd5b('0x73e')]=_0x398fc0['data'][_0x23cd5b('0x73e')]||[{'message':_0x398fc0[_0x23cd5b('0x9b6')](),'type':'api.intVtigerAccount.update'}];for(let _0x29a01c=0x0;_0x29a01c<_0x398fc0[_0x23cd5b('0x1457')][_0x23cd5b('0x73e')][_0x23cd5b('0x1f73')];_0x29a01c++){_0x14185c[_0x23cd5b('0x1db9')]({'title':_0x398fc0[_0x23cd5b('0x1457')][_0x23cd5b('0x73e')][_0x29a01c][_0x23cd5b('0x412')],'msg':_0x398fc0[_0x23cd5b('0x1457')][_0x23cd5b('0x73e')][_0x29a01c][_0x23cd5b('0x1603')]});}}else _0x14185c[_0x23cd5b('0x1db9')]({'title':_0x398fc0[_0x23cd5b('0x11c5')]?_0x23cd5b('0x14f7')+_0x398fc0[_0x23cd5b('0x11c5')]+_0x23cd5b('0x16e4')+_0x398fc0['statusText']:_0x23cd5b('0x2138'),'msg':_0x398fc0[_0x23cd5b('0x1457')]?JSON[_0x23cd5b('0x678')](_0x398fc0['data'][_0x23cd5b('0x1603')]):_0x398fc0[_0x23cd5b('0x9b6')]()});});}function _0x4b8d75(_0x3a4686){const _0x2a5579=_0x4c3873;_0x1d852e[_0x2a5579('0x73e')]=[];const _0x27e69a=_0x36a640[_0x2a5579('0x1121')]()[_0x2a5579('0x24d3')](_0x2a5579('0x530'))['content'](_0x2a5579('0x1cf'))[_0x2a5579('0x2095')]('Delete\x20VtigerAccount')['ok'](_0x2a5579('0x304'))[_0x2a5579('0x1d47')]('Cancel')[_0x2a5579('0x104f')](_0x3a4686);_0x36a640[_0x2a5579('0x28e2')](_0x27e69a)[_0x2a5579('0x17e7')](function(){const _0x171e87=_0x2a5579;_0xa347c3[_0x171e87('0x2090')][_0x171e87('0x1da6')]({'id':_0x1d852e[_0x171e87('0x22a6')]['id']})['$promise'][_0x171e87('0x17e7')](function(){const _0x17e466=_0x171e87;_0x49cbdd()['remove'](_0x1d852e[_0x17e466('0x1b34')],{'id':_0x1d852e[_0x17e466('0x22a6')]['id']}),_0x14185c[_0x17e466('0x130d')]({'title':'VtigerAccount\x20properly\x20deleted!','msg':(_0x1d852e['vtigerAccount'][_0x17e466('0x2aa')]||'vtigerAccount')+_0x17e466('0x149f')}),_0x1f5000(_0x1d852e[_0x17e466('0x22a6')]);})[_0x171e87('0x16df')](function(_0x56176b){const _0x22fcb1=_0x171e87;if(_0x56176b[_0x22fcb1('0x1457')]&&_0x56176b[_0x22fcb1('0x1457')][_0x22fcb1('0x73e')]&&_0x56176b['data'][_0x22fcb1('0x73e')][_0x22fcb1('0x1f73')]){_0x1d852e[_0x22fcb1('0x73e')]=_0x56176b[_0x22fcb1('0x1457')]['errors']||[{'message':_0x56176b[_0x22fcb1('0x9b6')](),'type':_0x22fcb1('0x314')}];for(let _0x55ffcc=0x0;_0x55ffcc<_0x56176b[_0x22fcb1('0x1457')][_0x22fcb1('0x73e')][_0x22fcb1('0x1f73')];_0x55ffcc++){_0x14185c[_0x22fcb1('0x1db9')]({'title':_0x56176b['data']['errors'][_0x55ffcc][_0x22fcb1('0x412')],'msg':_0x56176b['data'][_0x22fcb1('0x73e')][_0x55ffcc][_0x22fcb1('0x1603')]});}}else _0x14185c[_0x22fcb1('0x1db9')]({'title':_0x56176b[_0x22fcb1('0x11c5')]?'API:'+_0x56176b[_0x22fcb1('0x11c5')]+'\x20-\x20'+_0x56176b['statusText']:_0x22fcb1('0x314'),'msg':_0x56176b[_0x22fcb1('0x1457')]?JSON[_0x22fcb1('0x678')](_0x56176b[_0x22fcb1('0x1457')][_0x22fcb1('0x1603')]):_0x56176b['message']||_0x56176b[_0x22fcb1('0x9b6')]()});});},function(){});}function _0x3e1441(_0xf7d511){return _0xf7d511===null?undefined:new Date(_0xf7d511);}function _0x1f5000(_0x5c20fe){const _0xdd564a=_0x4c3873;_0x36a640[_0xdd564a('0x212a')](_0x5c20fe);}}const _0x3d7b1e=_0x24230b,_0x2cdac3=_0x4cf2bc['p']+_0x4376d8('0x1e74'),_0xc91fa2=_0x4cf2bc['p']+'src/js/modules/main/apps/integrations/views/vtigerAccounts/edit/item/dialog.html/dialog.html';_0xc21ae6['$inject']=[_0x4376d8('0x14f6'),'$document',_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1885')];function _0xc21ae6(_0x595d50,_0x216ab1,_0x4046e9,_0x29752c,_0x4ec601){const _0x26c94c=_0x4376d8,_0x4a2e2b=this;_0x4a2e2b[_0x26c94c('0x197c')]=_0x4ec601[_0x26c94c('0x2831')](),_0x4a2e2b[_0x26c94c('0x22a6')]={},_0x4a2e2b[_0x26c94c('0xa88')]={},_0x4a2e2b[_0x26c94c('0x11d0')]=[],_0x4a2e2b[_0x26c94c('0x1320')]=-0x1,_0x4a2e2b[_0x26c94c('0x103e')],_0x4a2e2b['init']=_0x7650bf,_0x4a2e2b[_0x26c94c('0x2498')]=_0x1f28cb,_0x4a2e2b[_0x26c94c('0x1445')]=_0x192464,_0x4a2e2b[_0x26c94c('0x1eee')]=_0x7044d3;function _0x7650bf(_0x3b1c66,_0x4fdfb4){const _0x202e5a=_0x26c94c;_0x4a2e2b[_0x202e5a('0x22a6')]=_0x3b1c66,_0x4a2e2b[_0x202e5a('0x103e')]=typeof _0x4fdfb4!==_0x202e5a('0xfad')?_0x4fdfb4:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4046e9[_0x202e5a('0x2090')][_0x202e5a('0xee0')]({'id':_0x4a2e2b[_0x202e5a('0x22a6')]['id'],'sort':_0x202e5a('0x1ac6')})[_0x202e5a('0x1af5')][_0x202e5a('0x17e7')](function(_0x453957){const _0x4805bf=_0x202e5a;return _0x4a2e2b['configurations']=_0x453957[_0x4805bf('0x2319')]?_0x453957[_0x4805bf('0x2319')]:[],_0x4a2e2b[_0x4805bf('0x11d0')][_0x4805bf('0x1f73')]&&_0x4a2e2b[_0x4805bf('0x2498')](0x0),_0x4046e9[_0x4805bf('0xb0a')][_0x4805bf('0x1c53')]({'nolimit':!![],'sort':_0x4805bf('0x2aa')})[_0x4805bf('0x1af5')];})[_0x202e5a('0x17e7')](function(_0x3e84f1){const _0x2943ba=_0x202e5a;_0x4a2e2b[_0x2943ba('0xd26')]=_0x3e84f1[_0x2943ba('0x2319')]?_0x3e84f1[_0x2943ba('0x2319')]:[],_0x4a2e2b[_0x2943ba('0x214d')]=_0x49cbdd()['keyBy'](_0x4a2e2b[_0x2943ba('0xd26')],'id');})[_0x202e5a('0x16df')](function(_0x42a149){const _0x2f12b6=_0x202e5a;_0x29752c[_0x2f12b6('0x1db9')]({'title':_0x42a149[_0x2f12b6('0x11c5')]?'API:'+_0x42a149[_0x2f12b6('0x11c5')]+_0x2f12b6('0x16e4')+_0x42a149[_0x2f12b6('0x1833')]:_0x2f12b6('0x183b'),'msg':_0x42a149['data']?JSON[_0x2f12b6('0x678')](_0x42a149[_0x2f12b6('0x1457')]):_0x42a149[_0x2f12b6('0x9b6')]()});});}function _0x1f28cb(_0x25ba3b){const _0x48b1c9=_0x26c94c;_0x4a2e2b[_0x48b1c9('0xa88')]=_0x4a2e2b[_0x48b1c9('0x11d0')][_0x25ba3b],_0x4a2e2b[_0x48b1c9('0x1320')]=_0x25ba3b,_0x4046e9[_0x48b1c9('0xb03')][_0x48b1c9('0x94e')]({'id':_0x4a2e2b['vtigerConfiguration']['id']})['$promise'][_0x48b1c9('0x17e7')](function(_0x55bf04){const _0xa31b17=_0x48b1c9;return _0x4a2e2b[_0xa31b17('0x1261')]=_0x55bf04[_0xa31b17('0x2319')]?_0x55bf04[_0xa31b17('0x2319')]:[],_0x4046e9[_0xa31b17('0xb03')]['getDescriptions']({'id':_0x4a2e2b[_0xa31b17('0xa88')]['id']})[_0xa31b17('0x1af5')];})['then'](function(_0xda725c){const _0x1d6c77=_0x48b1c9;return _0x4a2e2b[_0x1d6c77('0x1a2a')]=_0xda725c[_0x1d6c77('0x2319')]?_0xda725c[_0x1d6c77('0x2319')]:[],_0x4046e9[_0x1d6c77('0xb03')][_0x1d6c77('0x9a')]({'id':_0x4a2e2b[_0x1d6c77('0xa88')]['id']})[_0x1d6c77('0x1af5')];})[_0x48b1c9('0x17e7')](function(_0x209d45){const _0x179833=_0x48b1c9;_0x4a2e2b[_0x179833('0x9c9')]=_0x209d45[_0x179833('0x2319')]?_0x209d45[_0x179833('0x2319')]:[];})['catch'](function(_0x27a1f6){const _0x137550=_0x48b1c9;_0x29752c[_0x137550('0x1db9')]({'title':_0x27a1f6[_0x137550('0x11c5')]?_0x137550('0x14f7')+_0x27a1f6[_0x137550('0x11c5')]+_0x137550('0x16e4')+_0x27a1f6[_0x137550('0x1833')]:_0x137550('0x23be'),'msg':_0x27a1f6[_0x137550('0x1457')]?JSON[_0x137550('0x678')](_0x27a1f6[_0x137550('0x1457')]):_0x27a1f6['toString']()});});}function _0x192464(_0x9f3858,_0x1d675b){const _0x395b34=_0x26c94c;_0x595d50[_0x395b34('0x28e2')]({'controller':'CreateOrEditVtigerConfigurationDialogController','controllerAs':'vm','templateUrl':_0x2cdac3,'parent':angular['element'](_0x216ab1['body']),'targetEvent':_0x9f3858,'clickOutsideToClose':!![],'locals':{'vtigerConfiguration':_0x1d675b,'configurations':_0x4a2e2b[_0x395b34('0x11d0')],'license':null,'setting':null,'crudPermissions':_0x4a2e2b[_0x395b34('0x103e')]}})[_0x395b34('0x74e')](function(){const _0x1ba489=_0x395b34;_0x4a2e2b[_0x1ba489('0x2498')](0x0);});}function _0x7044d3(_0x37ddd5,_0x945316){const _0x385c03=_0x26c94c,_0x33a9b5=_0x595d50['confirm']()['title'](_0x385c03('0x1598'))[_0x385c03('0x211f')](''+(_0x945316[_0x385c03('0x2aa')]||_0x385c03('0xa88'))+''+_0x385c03('0xe9f'))['ariaLabel'](_0x385c03('0x2314'))[_0x385c03('0x104f')](_0x37ddd5)['ok']('OK')[_0x385c03('0x1d47')](_0x385c03('0x28a0'));_0x595d50[_0x385c03('0x28e2')](_0x33a9b5)[_0x385c03('0x17e7')](function(){const _0x51eff6=_0x385c03;_0x4046e9['intVtigerConfiguration']['delete']({'id':_0x945316['id']})[_0x51eff6('0x1af5')][_0x51eff6('0x17e7')](function(){const _0x47424c=_0x51eff6;_0x49cbdd()['remove'](_0x4a2e2b[_0x47424c('0x11d0')],{'id':_0x945316['id']}),_0x29752c[_0x47424c('0x130d')]({'title':_0x47424c('0x256'),'msg':_0x945316[_0x47424c('0x2aa')]?_0x945316[_0x47424c('0x2aa')]+_0x47424c('0x149f'):''});})[_0x51eff6('0x16df')](function(_0x609ac6){const _0x182411=_0x51eff6;_0x29752c[_0x182411('0x1db9')]({'title':_0x609ac6['status']?_0x182411('0x14f7')+_0x609ac6[_0x182411('0x11c5')]+_0x182411('0x16e4')+_0x609ac6[_0x182411('0x1833')]:_0x182411('0x11b4'),'msg':_0x609ac6[_0x182411('0x1457')]?JSON[_0x182411('0x678')](_0x609ac6[_0x182411('0x1457')]):_0x609ac6[_0x182411('0x9b6')]()});})[_0x51eff6('0x74e')](function(){_0x4a2e2b['getVtigerConfiguration'](0x0);});},function(){const _0x32e15d=_0x385c03;console[_0x32e15d('0x1d63')](_0x32e15d('0x28a0'));});}_0x4a2e2b[_0x26c94c('0x95b')]=[],_0x4a2e2b[_0x26c94c('0x1066')]=_0x24bf6c,_0x4a2e2b[_0x26c94c('0x268a')]=_0x5c3cb2,_0x4a2e2b[_0x26c94c('0x2738')]=_0x364481;function _0x24bf6c(_0xae0f10,_0x2c6c07){const _0x5b36eb=_0x26c94c;_0x595d50['show']({'controller':_0x5b36eb('0x1efb'),'controllerAs':'vm','templateUrl':_0xc91fa2,'parent':angular[_0x5b36eb('0x1ce1')](_0x216ab1['body']),'targetEvent':_0xae0f10,'clickOutsideToClose':!![],'locals':{'type':_0x5b36eb('0x2179'),'item':_0x2c6c07,'items':_0x4a2e2b[_0x5b36eb('0x1261')],'configuration':_0x4a2e2b[_0x5b36eb('0xa88')],'account':_0x4a2e2b['vtigerAccount'],'license':null,'setting':null,'crudPermissions':_0x4a2e2b[_0x5b36eb('0x103e')]}});}function _0x19d3f0(_0x15da87){const _0x55cb13=_0x26c94c;_0x4046e9[_0x55cb13('0xb23')]['delete']({'id':_0x15da87['id']})[_0x55cb13('0x1af5')]['then'](function(){const _0x3cce8a=_0x55cb13;_0x49cbdd()[_0x3cce8a('0x5f3')](_0x4a2e2b['subjects'],{'id':_0x15da87['id']}),_0x29752c[_0x3cce8a('0x130d')]({'title':_0x3cce8a('0x198'),'msg':_0x3cce8a('0x179c')});})[_0x55cb13('0x16df')](function(_0x3da528){const _0x4b0921=_0x55cb13;_0x29752c[_0x4b0921('0x1db9')]({'title':_0x3da528[_0x4b0921('0x11c5')]?'API:'+_0x3da528[_0x4b0921('0x11c5')]+_0x4b0921('0x16e4')+_0x3da528[_0x4b0921('0x1833')]:_0x4b0921('0x14bd'),'msg':_0x3da528[_0x4b0921('0x1457')]?JSON[_0x4b0921('0x678')](_0x3da528['data']):_0x3da528[_0x4b0921('0x9b6')]()});});}function _0x5c3cb2(_0x17dd9e,_0x42390f){const _0xa8cb1c=_0x26c94c,_0xda4afa=_0x595d50['confirm']()[_0xa8cb1c('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20subject?')[_0xa8cb1c('0x211f')]('Subject'+_0xa8cb1c('0xe9f'))[_0xa8cb1c('0x2095')](_0xa8cb1c('0x16d1'))[_0xa8cb1c('0x104f')](_0x17dd9e)['ok']('OK')[_0xa8cb1c('0x1d47')](_0xa8cb1c('0x28a0'));_0x595d50[_0xa8cb1c('0x28e2')](_0xda4afa)[_0xa8cb1c('0x17e7')](function(){_0x19d3f0(_0x42390f);},function(){const _0x2a31ad=_0xa8cb1c;console[_0x2a31ad('0x1d63')]('CANCEL');});}function _0x364481(_0x1c9fe0){const _0x4900b5=_0x26c94c,_0x18d837=_0x595d50[_0x4900b5('0x1121')]()[_0x4900b5('0x24d3')](_0x4900b5('0xb0b'))[_0x4900b5('0x211f')](_0x4900b5('0xa53')+_0x4a2e2b[_0x4900b5('0x95b')][_0x4900b5('0x1f73')]+_0x4900b5('0x145a')+_0x4900b5('0xe9f'))['ariaLabel']('delete\x20subjects')[_0x4900b5('0x104f')](_0x1c9fe0)['ok']('OK')['cancel'](_0x4900b5('0x28a0'));_0x595d50[_0x4900b5('0x28e2')](_0x18d837)[_0x4900b5('0x17e7')](function(){const _0x389d16=_0x4900b5;_0x4a2e2b[_0x389d16('0x95b')]['forEach'](function(_0x4d452b){_0x19d3f0(_0x4d452b);}),_0x4a2e2b[_0x389d16('0x95b')]=[];});}_0x4a2e2b[_0x26c94c('0xb0f')]=[],_0x4a2e2b['createOrEditDescription']=_0x4c2aea,_0x4a2e2b['deleteDescriptionConfirm']=_0x43bf31,_0x4a2e2b[_0x26c94c('0xe42')]=_0x3ccdc1;function _0x4c2aea(_0x2a394b,_0x54864b){const _0x5d14d5=_0x26c94c;_0x595d50[_0x5d14d5('0x28e2')]({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0xc91fa2,'parent':angular[_0x5d14d5('0x1ce1')](_0x216ab1[_0x5d14d5('0x13aa')]),'targetEvent':_0x2a394b,'clickOutsideToClose':!![],'locals':{'type':_0x5d14d5('0x986'),'item':_0x54864b,'items':_0x4a2e2b['descriptions'],'configuration':_0x4a2e2b[_0x5d14d5('0xa88')],'account':_0x4a2e2b[_0x5d14d5('0x22a6')],'license':null,'setting':null,'crudPermissions':_0x4a2e2b[_0x5d14d5('0x103e')]}});}function _0xbab2bd(_0x5b3949){const _0x2fafbf=_0x26c94c;_0x4046e9[_0x2fafbf('0xb23')][_0x2fafbf('0x1da6')]({'id':_0x5b3949['id']})[_0x2fafbf('0x1af5')]['then'](function(){const _0x13110d=_0x2fafbf;_0x49cbdd()[_0x13110d('0x5f3')](_0x4a2e2b[_0x13110d('0x1a2a')],{'id':_0x5b3949['id']}),_0x29752c[_0x13110d('0x130d')]({'title':_0x13110d('0x1504'),'msg':_0x13110d('0x56f')});})[_0x2fafbf('0x16df')](function(_0x332ef5){const _0x5453cb=_0x2fafbf;_0x29752c['error']({'title':_0x332ef5['status']?_0x5453cb('0x14f7')+_0x332ef5[_0x5453cb('0x11c5')]+_0x5453cb('0x16e4')+_0x332ef5[_0x5453cb('0x1833')]:_0x5453cb('0x14bd'),'msg':_0x332ef5['data']?JSON[_0x5453cb('0x678')](_0x332ef5['data']):_0x332ef5[_0x5453cb('0x9b6')]()});});}function _0x43bf31(_0x142a24,_0x52804b){const _0x7f43d4=_0x26c94c,_0x2fa0a4=_0x595d50[_0x7f43d4('0x1121')]()[_0x7f43d4('0x24d3')](_0x7f43d4('0x2bb'))[_0x7f43d4('0x211f')](_0x7f43d4('0x217a')+_0x7f43d4('0xe9f'))[_0x7f43d4('0x2095')]('delete\x20description')['targetEvent'](_0x142a24)['ok']('OK')['cancel'](_0x7f43d4('0x28a0'));_0x595d50[_0x7f43d4('0x28e2')](_0x2fa0a4)[_0x7f43d4('0x17e7')](function(){_0xbab2bd(_0x52804b);},function(){const _0x19a8a5=_0x7f43d4;console[_0x19a8a5('0x1d63')](_0x19a8a5('0x28a0'));});}function _0x3ccdc1(_0x11a4ca){const _0x3bdd69=_0x26c94c,_0x2710a6=_0x595d50[_0x3bdd69('0x1121')]()['title'](_0x3bdd69('0x12d4'))['htmlContent'](_0x3bdd69('0xa53')+_0x4a2e2b['selectedDescriptions'][_0x3bdd69('0x1f73')]+_0x3bdd69('0x145a')+'\x20will\x20be\x20deleted.')[_0x3bdd69('0x2095')]('delete\x20descriptions')[_0x3bdd69('0x104f')](_0x11a4ca)['ok']('OK')['cancel'](_0x3bdd69('0x28a0'));_0x595d50[_0x3bdd69('0x28e2')](_0x2710a6)[_0x3bdd69('0x17e7')](function(){const _0x4ae548=_0x3bdd69;_0x4a2e2b['selectedDescriptions'][_0x4ae548('0xccd')](function(_0x43c694){_0xbab2bd(_0x43c694);}),_0x4a2e2b[_0x4ae548('0xb0f')]=[];});}_0x4a2e2b['selectedFields']=[],_0x4a2e2b[_0x26c94c('0xc53')]=_0x19c7c7,_0x4a2e2b[_0x26c94c('0x7f5')]=_0x52bc34,_0x4a2e2b['deleteSelectedFields']=_0x116533;function _0x19c7c7(_0x5499c0,_0xb0b441){const _0x385e4a=_0x26c94c;_0x595d50['show']({'controller':'CreateOrEditVtigerAccountItemDialogController','controllerAs':'vm','templateUrl':_0xc91fa2,'parent':angular[_0x385e4a('0x1ce1')](_0x216ab1[_0x385e4a('0x13aa')]),'targetEvent':_0x5499c0,'clickOutsideToClose':!![],'locals':{'type':_0x385e4a('0x1515'),'item':_0xb0b441,'items':_0x4a2e2b[_0x385e4a('0x9c9')],'configuration':_0x4a2e2b[_0x385e4a('0xa88')],'account':_0x4a2e2b[_0x385e4a('0x22a6')],'license':null,'setting':null,'crudPermissions':_0x4a2e2b[_0x385e4a('0x103e')]}});}function _0x145c2a(_0x2475c){const _0x4341fb=_0x26c94c;_0x4046e9[_0x4341fb('0xb23')][_0x4341fb('0x1da6')]({'id':_0x2475c['id']})['$promise'][_0x4341fb('0x17e7')](function(){const _0x340e8d=_0x4341fb;_0x49cbdd()[_0x340e8d('0x5f3')](_0x4a2e2b[_0x340e8d('0x9c9')],{'id':_0x2475c['id']}),_0x29752c[_0x340e8d('0x130d')]({'title':_0x340e8d('0x1605'),'msg':'Field\x20has\x20been\x20deleted!'});})[_0x4341fb('0x16df')](function(_0x5e6854){const _0x1ee904=_0x4341fb;_0x29752c[_0x1ee904('0x1db9')]({'title':_0x5e6854[_0x1ee904('0x11c5')]?_0x1ee904('0x14f7')+_0x5e6854['status']+_0x1ee904('0x16e4')+_0x5e6854[_0x1ee904('0x1833')]:_0x1ee904('0x14bd'),'msg':_0x5e6854[_0x1ee904('0x1457')]?JSON[_0x1ee904('0x678')](_0x5e6854[_0x1ee904('0x1457')]):_0x5e6854[_0x1ee904('0x9b6')]()});});}function _0x52bc34(_0x759f4a,_0x2cd0d7){const _0x119509=_0x26c94c,_0x558af1=_0x595d50[_0x119509('0x1121')]()[_0x119509('0x24d3')](_0x119509('0x1d1f'))[_0x119509('0x211f')]('Field'+'\x20will\x20be\x20deleted.')[_0x119509('0x2095')](_0x119509('0x1f01'))[_0x119509('0x104f')](_0x759f4a)['ok']('OK')[_0x119509('0x1d47')](_0x119509('0x28a0'));_0x595d50[_0x119509('0x28e2')](_0x558af1)[_0x119509('0x17e7')](function(){_0x145c2a(_0x2cd0d7);},function(){const _0x1bbed0=_0x119509;console[_0x1bbed0('0x1d63')](_0x1bbed0('0x28a0'));});}function _0x116533(_0x2d27ab){const _0x4b732d=_0x26c94c,_0x58e070=_0x595d50[_0x4b732d('0x1121')]()['title'](_0x4b732d('0x1fdd'))[_0x4b732d('0x211f')](_0x4b732d('0xa53')+_0x4a2e2b[_0x4b732d('0xa2e')][_0x4b732d('0x1f73')]+_0x4b732d('0x145a')+_0x4b732d('0xe9f'))[_0x4b732d('0x2095')](_0x4b732d('0x15ee'))['targetEvent'](_0x2d27ab)['ok']('OK')[_0x4b732d('0x1d47')]('CANCEL');_0x595d50[_0x4b732d('0x28e2')](_0x58e070)[_0x4b732d('0x17e7')](function(){const _0x1616f5=_0x4b732d;_0x4a2e2b[_0x1616f5('0xa2e')][_0x1616f5('0xccd')](function(_0x32d843){_0x145c2a(_0x32d843);}),_0x4a2e2b[_0x1616f5('0xa2e')]=[];});}}const _0x5e2c00=_0xc21ae6;_0x40b27d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),'configurations',_0x4376d8('0xa88'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x40b27d(_0x2e771c,_0x757699,_0x508e22,_0x2bc5ab,_0x2a0c1a,_0x1a183d,_0x3f23b3,_0x5562d9,_0x515053,_0x45c28b,_0x569844,_0xe66724,_0x1b24ef,_0x23e749){const _0x471891=_0x4376d8,_0x14eb88=this;_0x14eb88['currentUser']=_0x569844[_0x471891('0x2831')](),_0x14eb88[_0x471891('0x73e')]=[],_0x14eb88[_0x471891('0x1aeb')]=_0x1b24ef,_0x14eb88[_0x471891('0x1d11')]=_0xe66724,_0x14eb88['crudPermissions']=_0x23e749,_0x14eb88[_0x471891('0x6ee')]={},_0x14eb88[_0x471891('0x1572')]=_0x14eb88['setting']&&_0x14eb88[_0x471891('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x14eb88[_0x471891('0x24d3')]=_0x471891('0xf2'),_0x14eb88[_0x471891('0xa88')]=angular[_0x471891('0x14e5')](_0x515053),_0x14eb88[_0x471891('0x11d0')]=_0x5562d9,_0x14eb88['newVtigerConfiguration']=![];!_0x14eb88[_0x471891('0xa88')]&&(_0x14eb88[_0x471891('0xa88')]={'channel':_0x471891('0x1fe1'),'type':'inbound'},_0x14eb88[_0x471891('0x24d3')]='INTEGRATIONS.NEW_VTIGERCONFIGURATION',_0x14eb88['newVtigerConfiguration']=!![]);_0x14eb88[_0x471891('0x46b')]=_0x53afba,_0x14eb88[_0x471891('0x15b4')]=_0x3e290b,_0x14eb88[_0x471891('0x1eee')]=_0x8e164e,_0x14eb88[_0x471891('0x1300')]=_0x2d8100,_0x14eb88[_0x471891('0x136e')]=_0xee44c5;function _0x53afba(){const _0x4bb790=_0x471891;_0x14eb88[_0x4bb790('0x73e')]=[],_0x45c28b[_0x4bb790('0x2090')][_0x4bb790('0x5e0')]({'id':_0x757699['params']['id']},_0x14eb88['vtigerConfiguration'])[_0x4bb790('0x1af5')][_0x4bb790('0x17e7')](function(_0x23451e){const _0x52d029=_0x4bb790;_0x14eb88[_0x52d029('0x11d0')][_0x52d029('0x1893')](_0x23451e['toJSON']()),_0x3f23b3[_0x52d029('0x130d')]({'title':'VtigerConfiguration\x20properly\x20created','msg':_0x14eb88['vtigerConfiguration'][_0x52d029('0x2aa')]?_0x14eb88['vtigerConfiguration'][_0x52d029('0x2aa')]+_0x52d029('0x15a'):''}),_0xee44c5(_0x23451e);})['catch'](function(_0x261040){const _0x29df5a=_0x4bb790;if(_0x261040[_0x29df5a('0x1457')]&&_0x261040[_0x29df5a('0x1457')][_0x29df5a('0x73e')]&&_0x261040[_0x29df5a('0x1457')][_0x29df5a('0x73e')]['length']){_0x14eb88[_0x29df5a('0x73e')]=_0x261040[_0x29df5a('0x1457')][_0x29df5a('0x73e')]||[{'message':_0x261040[_0x29df5a('0x9b6')](),'type':_0x29df5a('0x12c2')}];for(let _0x58bc9a=0x0;_0x58bc9a<_0x261040[_0x29df5a('0x1457')][_0x29df5a('0x73e')][_0x29df5a('0x1f73')];_0x58bc9a+=0x1){_0x3f23b3['error']({'title':_0x261040[_0x29df5a('0x1457')][_0x29df5a('0x73e')][_0x58bc9a][_0x29df5a('0x412')],'msg':_0x261040[_0x29df5a('0x1457')][_0x29df5a('0x73e')][_0x58bc9a][_0x29df5a('0x1603')]});}}else _0x3f23b3[_0x29df5a('0x1db9')]({'title':_0x261040[_0x29df5a('0x11c5')]?_0x29df5a('0x14f7')+_0x261040[_0x29df5a('0x11c5')]+_0x29df5a('0x16e4')+_0x261040[_0x29df5a('0x1833')]:_0x29df5a('0x12c2'),'msg':_0x261040['data']?JSON[_0x29df5a('0x678')](_0x261040['data'][_0x29df5a('0x1603')]):_0x261040[_0x29df5a('0x9b6')]()});});}function _0x3e290b(){const _0x5ae6e4=_0x471891;_0x14eb88[_0x5ae6e4('0x73e')]=[],_0x45c28b['intVtigerConfiguration'][_0x5ae6e4('0x27ba')]({'id':_0x14eb88['vtigerConfiguration']['id']},_0x14eb88[_0x5ae6e4('0xa88')])['$promise'][_0x5ae6e4('0x17e7')](function(_0x4d24b7){const _0x5d40be=_0x5ae6e4,_0x4b45a4=_0x49cbdd()[_0x5d40be('0xe8e')](_0x14eb88[_0x5d40be('0x11d0')],{'id':_0x4d24b7['id']});_0x4b45a4&&_0x49cbdd()[_0x5d40be('0x1ced')](_0x4b45a4,_0x49cbdd()[_0x5d40be('0x230a')](_0x4d24b7['toJSON'](),_0x49cbdd()[_0x5d40be('0x1c0f')](_0x4b45a4))),_0x3f23b3['success']({'title':_0x5d40be('0x7c6'),'msg':_0x14eb88['vtigerConfiguration']['name']?_0x14eb88[_0x5d40be('0xa88')][_0x5d40be('0x2aa')]+_0x5d40be('0x15ca'):''}),_0xee44c5(_0x4d24b7);})[_0x5ae6e4('0x16df')](function(_0x451d98){const _0x222a10=_0x5ae6e4;if(_0x451d98['data']&&_0x451d98[_0x222a10('0x1457')][_0x222a10('0x73e')]&&_0x451d98[_0x222a10('0x1457')][_0x222a10('0x73e')][_0x222a10('0x1f73')]){_0x14eb88[_0x222a10('0x73e')]=_0x451d98['data'][_0x222a10('0x73e')]||[{'message':_0x451d98['toString'](),'type':'api.intVtigerConfiguration.update'}];for(let _0xc2cb2f=0x0;_0xc2cb2f<_0x451d98[_0x222a10('0x1457')]['errors'][_0x222a10('0x1f73')];_0xc2cb2f++){_0x3f23b3[_0x222a10('0x1db9')]({'title':_0x451d98[_0x222a10('0x1457')]['errors'][_0xc2cb2f]['type'],'msg':_0x451d98[_0x222a10('0x1457')]['errors'][_0xc2cb2f]['message']});}}else _0x3f23b3[_0x222a10('0x1db9')]({'title':_0x451d98[_0x222a10('0x11c5')]?_0x222a10('0x14f7')+_0x451d98[_0x222a10('0x11c5')]+'\x20-\x20'+_0x451d98[_0x222a10('0x1833')]:'api.intVtigerConfiguration.update','msg':_0x451d98[_0x222a10('0x1457')]?JSON[_0x222a10('0x678')](_0x451d98[_0x222a10('0x1457')][_0x222a10('0x1603')]):_0x451d98['toString']()});});}function _0x8e164e(_0x3b215c){const _0x15bd53=_0x471891;_0x14eb88['errors']=[];const _0x222b18=_0x2bc5ab[_0x15bd53('0x1121')]()[_0x15bd53('0x24d3')]('Are\x20you\x20sure?')[_0x15bd53('0xd5')](_0x15bd53('0x1e72'))['ariaLabel'](_0x15bd53('0x815'))['ok'](_0x15bd53('0x304'))[_0x15bd53('0x1d47')](_0x15bd53('0x1b70'))[_0x15bd53('0x104f')](_0x3b215c);_0x2bc5ab[_0x15bd53('0x28e2')](_0x222b18)[_0x15bd53('0x17e7')](function(){const _0x3661cf=_0x15bd53;_0x45c28b[_0x3661cf('0xb03')][_0x3661cf('0x1da6')]({'id':_0x14eb88[_0x3661cf('0xa88')]['id']})['$promise']['then'](function(){const _0x58f51f=_0x3661cf;_0x49cbdd()['remove'](_0x14eb88[_0x58f51f('0x11d0')],{'id':_0x14eb88[_0x58f51f('0xa88')]['id']}),_0x3f23b3[_0x58f51f('0x130d')]({'title':_0x58f51f('0x2320'),'msg':(_0x14eb88[_0x58f51f('0xa88')][_0x58f51f('0x2aa')]||_0x58f51f('0xa88'))+_0x58f51f('0x149f')}),_0xee44c5(_0x14eb88[_0x58f51f('0xa88')]);})[_0x3661cf('0x16df')](function(_0xca920b){const _0x16226c=_0x3661cf;if(_0xca920b[_0x16226c('0x1457')]&&_0xca920b[_0x16226c('0x1457')]['errors']&&_0xca920b[_0x16226c('0x1457')]['errors'][_0x16226c('0x1f73')]){_0x14eb88[_0x16226c('0x73e')]=_0xca920b['data'][_0x16226c('0x73e')]||[{'message':_0xca920b[_0x16226c('0x9b6')](),'type':'api.intVtigerConfiguration.delete'}];for(let _0x4004ba=0x0;_0x4004ba<_0xca920b[_0x16226c('0x1457')][_0x16226c('0x73e')][_0x16226c('0x1f73')];_0x4004ba++){_0x3f23b3['error']({'title':_0xca920b['data'][_0x16226c('0x73e')][_0x4004ba][_0x16226c('0x412')],'msg':_0xca920b['data'][_0x16226c('0x73e')][_0x4004ba][_0x16226c('0x1603')]});}}else _0x3f23b3[_0x16226c('0x1db9')]({'title':_0xca920b[_0x16226c('0x11c5')]?_0x16226c('0x14f7')+_0xca920b[_0x16226c('0x11c5')]+_0x16226c('0x16e4')+_0xca920b['statusText']:_0x16226c('0x10fa'),'msg':_0xca920b[_0x16226c('0x1457')]?JSON[_0x16226c('0x678')](_0xca920b[_0x16226c('0x1457')]['message']):_0xca920b['message']||_0xca920b[_0x16226c('0x9b6')]()});});},function(){});}function _0x2d8100(_0x128375){return _0x128375===null?undefined:new Date(_0x128375);}function _0xee44c5(_0x48de14){const _0x4cb7c=_0x471891;_0x2bc5ab[_0x4cb7c('0x212a')](_0x48de14);}}const _0x1686bb=_0x40b27d;_0x2171b5[_0x4376d8('0x1b9c')]=['$scope','$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x1c4'),'items','item',_0x4376d8('0x2679'),_0x4376d8('0x412'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x2171b5(_0x15b026,_0xcab8c2,_0x1a6bbb,_0x4c8bec,_0x2dfe38,_0x20ba60,_0x4f2fd2,_0x203c65,_0x22b29c,_0x38c491,_0x45e102,_0x20ee94,_0x2a8c8){const _0xe1fd2e=_0x4376d8,_0x5332ea=this;_0x5332ea[_0xe1fd2e('0x197c')]=_0x20ee94[_0xe1fd2e('0x2831')](),_0x5332ea[_0xe1fd2e('0x73e')]=[],_0x5332ea['title']=_0xe1fd2e('0x9dd')+_0x49cbdd()[_0xe1fd2e('0x286f')](_0x38c491),_0x5332ea[_0xe1fd2e('0x28b8')]=angular[_0xe1fd2e('0x14e5')](_0x203c65),_0x5332ea[_0xe1fd2e('0x532')]=_0x4f2fd2,_0x5332ea['type']=_0x38c491,_0x5332ea[_0xe1fd2e('0x103e')]=_0x2a8c8,_0x5332ea[_0xe1fd2e('0x1ac5')]=![];!_0x5332ea[_0xe1fd2e('0x28b8')]&&(_0x5332ea[_0xe1fd2e('0x28b8')]={'type':'string'},_0x5332ea[_0xe1fd2e('0x28b8')][_0x49cbdd()[_0xe1fd2e('0xb41')](_0x38c491)+'Id']=_0x20ba60['id'],_0x5332ea[_0xe1fd2e('0x24d3')]=_0xe1fd2e('0x6fe')+_0x49cbdd()['toUpper'](_0x38c491),_0x5332ea['newItem']=!![]);_0x5332ea[_0xe1fd2e('0x1978')]=_0x45365b,_0x5332ea[_0xe1fd2e('0x1321')]=_0x5858e3,_0x5332ea[_0xe1fd2e('0x1350')]=_0x23b12e,_0x5332ea[_0xe1fd2e('0x140a')]=_0x6d1f3d,_0x5332ea[_0xe1fd2e('0x136e')]=_0xef53c9,_0x45e102['variable']['get']({'nolimit':!![]})[_0xe1fd2e('0x1af5')][_0xe1fd2e('0x17e7')](function(_0x1fa6f9){const _0xc955c6=_0xe1fd2e;return _0x5332ea[_0xc955c6('0xd26')]=_0x1fa6f9[_0xc955c6('0x2319')]?_0x1fa6f9['rows']:[],_0x45e102[_0xc955c6('0x770')][_0xc955c6('0x2234')]()[_0xc955c6('0x1af5')];})[_0xe1fd2e('0x17e7')](function(_0x1b109a){const _0x12622c=_0xe1fd2e;return _0x5332ea[_0x12622c('0x217b')]=_0x49cbdd()['difference'](_0x49cbdd()[_0x12622c('0x1c0f')](_0x1b109a),[_0x12622c('0x1af5'),_0x12622c('0x1314'),_0x12622c('0x7c9'),'updatedAt',_0x12622c('0x1c59')]),_0x5332ea['voiceAgentReportColumns']['push']('recordingURL'),_0x45e102[_0x12622c('0xc6f')][_0x12622c('0x2234')]()[_0x12622c('0x1af5')];})[_0xe1fd2e('0x17e7')](function(_0x3d390d){const _0x4c5349=_0xe1fd2e;_0x5332ea[_0x4c5349('0xe00')]=_0x49cbdd()[_0x4c5349('0x4f1')](_0x49cbdd()['keys'](_0x3d390d),[_0x4c5349('0x1af5'),_0x4c5349('0x1314'),_0x4c5349('0x7c9'),_0x4c5349('0xb8a'),_0x4c5349('0x1c59')]),_0x5332ea[_0x4c5349('0xe00')][_0x4c5349('0x269f')](_0x4c5349('0x1bea'));})[_0xe1fd2e('0x16df')](function(_0x5269e5){const _0x56606e=_0xe1fd2e;_0x2dfe38[_0x56606e('0x1db9')]({'title':_0x5269e5[_0x56606e('0x11c5')]?'API:'+_0x5269e5[_0x56606e('0x11c5')]+_0x56606e('0x16e4')+_0x5269e5[_0x56606e('0x1833')]:_0x56606e('0x3a9'),'msg':_0x5269e5['data']?JSON[_0x56606e('0x678')](_0x5269e5[_0x56606e('0x1457')]):_0x5269e5[_0x56606e('0x9b6')]()});}),_0x45e102[_0xe1fd2e('0x2090')][_0xe1fd2e('0x9a')]({'id':_0x22b29c['id'],'ticketType':_0x20ba60[_0xe1fd2e('0x148e')]?_0x20ba60[_0xe1fd2e('0x148e')]:undefined})[_0xe1fd2e('0x1af5')][_0xe1fd2e('0x17e7')](function(_0x4bf4dc){const _0x590b14=_0xe1fd2e;_0x5332ea[_0x590b14('0x20c2')]=!![],_0x5332ea['fields']=_0x4bf4dc[_0x590b14('0x2319')]?_0x4bf4dc['rows']:[],_0x5332ea[_0x590b14('0x28b8')][_0x590b14('0x8d8')]&&(_0x5332ea[_0x590b14('0x1fa4')]=_0x49cbdd()['find'](_0x5332ea['fields'],{'id':_0x5332ea[_0x590b14('0x28b8')][_0x590b14('0x8d8')]}));})[_0xe1fd2e('0x16df')](function(_0x256034){_0x5332ea['accountConnected']=![],console['error'](_0x256034);});function _0x45365b(){const _0x626431=_0xe1fd2e;_0x5332ea[_0x626431('0x73e')]=[],_0x5332ea[_0x626431('0x1fa4')]&&(_0x5332ea[_0x626431('0x28b8')]['idField']=_0x5332ea[_0x626431('0x1fa4')]['id'],_0x5332ea[_0x626431('0x28b8')][_0x626431('0x1a12')]=_0x5332ea[_0x626431('0x1fa4')][_0x626431('0x2aa')],_0x5332ea[_0x626431('0x28b8')]['customField']=_0x5332ea[_0x626431('0x1fa4')][_0x626431('0x8fa')]),_0x45e102['intVtigerField']['save'](_0x5332ea[_0x626431('0x28b8')])[_0x626431('0x1af5')][_0x626431('0x17e7')](function(_0x223207){const _0x3cf564=_0x626431;_0x5332ea['items'][_0x3cf564('0x1893')](_0x223207),_0x2dfe38[_0x3cf564('0x130d')]({'title':_0x49cbdd()['capitalize'](_0x38c491)+'\x20properly\x20created','msg':_0x49cbdd()[_0x3cf564('0xb41')](_0x38c491)+'\x20has\x20been\x20created!'}),_0xef53c9();})[_0x626431('0x16df')](function(_0x52af76){const _0x4004d9=_0x626431;console[_0x4004d9('0x1db9')](_0x52af76),_0x5332ea[_0x4004d9('0x73e')]=_0x52af76[_0x4004d9('0x1457')][_0x4004d9('0x73e')]||[{'message':_0x52af76[_0x4004d9('0x9b6')](),'type':'api.item.save'}];});}function _0x5858e3(){const _0x5f1d04=_0xe1fd2e;_0x5332ea[_0x5f1d04('0x73e')]=[],_0x5332ea[_0x5f1d04('0x1fa4')]&&(_0x5332ea[_0x5f1d04('0x28b8')][_0x5f1d04('0x8d8')]=_0x5332ea[_0x5f1d04('0x1fa4')]['id'],_0x5332ea[_0x5f1d04('0x28b8')]['nameField']=_0x5332ea[_0x5f1d04('0x1fa4')][_0x5f1d04('0x2aa')],_0x5332ea['item'][_0x5f1d04('0x1fa4')]=_0x5332ea[_0x5f1d04('0x1fa4')][_0x5f1d04('0x8fa')]),_0x45e102[_0x5f1d04('0xb23')][_0x5f1d04('0x27ba')]({'id':_0x5332ea[_0x5f1d04('0x28b8')]['id']},_0x5332ea[_0x5f1d04('0x28b8')])[_0x5f1d04('0x1af5')][_0x5f1d04('0x17e7')](function(_0x57d32e){const _0x4b34ac=_0x5f1d04,_0x4068bb=_0x49cbdd()['find'](_0x5332ea[_0x4b34ac('0x532')],{'id':_0x57d32e['id']});_0x4068bb&&_0x49cbdd()[_0x4b34ac('0x1ced')](_0x4068bb,_0x57d32e),_0x2dfe38['success']({'title':_0x49cbdd()[_0x4b34ac('0xb41')](_0x38c491)+_0x4b34ac('0x2b8'),'msg':_0x49cbdd()['capitalize'](_0x38c491)+_0x4b34ac('0x15ca')}),_0xef53c9();})[_0x5f1d04('0x16df')](function(_0x31e383){const _0xc9bd3b=_0x5f1d04;console[_0xc9bd3b('0x1db9')](_0x31e383),_0x5332ea[_0xc9bd3b('0x73e')]=_0x31e383[_0xc9bd3b('0x1457')][_0xc9bd3b('0x73e')]||[{'message':_0x31e383[_0xc9bd3b('0x9b6')](),'type':_0xc9bd3b('0x428')}];});}function _0x23b12e(_0x32acd7){const _0x3f5b42=_0xe1fd2e;_0x5332ea[_0x3f5b42('0x73e')]=[];const _0x4e5934=_0x4c8bec[_0x3f5b42('0x1121')]()[_0x3f5b42('0x24d3')](_0x3f5b42('0x530'))['content'](_0x3f5b42('0x1664')+_0x38c491+_0x3f5b42('0xe9f'))[_0x3f5b42('0x2095')](_0x3f5b42('0x1aaa')+_0x49cbdd()[_0x3f5b42('0xb41')](_0x38c491))['ok']('Delete')['cancel'](_0x3f5b42('0x1b70'))[_0x3f5b42('0x104f')](_0x32acd7);_0x4c8bec['show'](_0x4e5934)[_0x3f5b42('0x17e7')](function(){const _0x1cd643=_0x3f5b42;_0x45e102[_0x1cd643('0xb23')][_0x1cd643('0x1da6')]({'id':_0x5332ea[_0x1cd643('0x28b8')]['id']})[_0x1cd643('0x1af5')][_0x1cd643('0x17e7')](function(){const _0x40cd5b=_0x1cd643;_0x49cbdd()[_0x40cd5b('0x5f3')](_0x5332ea[_0x40cd5b('0x532')],{'id':_0x5332ea[_0x40cd5b('0x28b8')]['id']}),_0x2dfe38[_0x40cd5b('0x130d')]({'title':_0x49cbdd()[_0x40cd5b('0xb41')](_0x38c491)+_0x40cd5b('0x253a'),'msg':_0x49cbdd()['capitalize'](_0x38c491)+'\x20has\x20been\x20deleted!'}),_0xef53c9();})[_0x1cd643('0x16df')](function(_0x39b083){const _0x5b1257=_0x1cd643;console['error'](_0x39b083),_0x5332ea[_0x5b1257('0x73e')]=_0x39b083[_0x5b1257('0x1457')][_0x5b1257('0x73e')]||[{'message':_0x39b083[_0x5b1257('0x9b6')](),'type':_0x5b1257('0x2220')}];});},function(){});}function _0x6d1f3d(){const _0x489d8f=_0xe1fd2e;return _0x5332ea[_0x489d8f('0x28b8')]['variableName']!==undefined?_0x5332ea['item'][_0x489d8f('0x4fd')]:_0x489d8f('0x2588');}function _0xef53c9(){_0x4c8bec['hide']();}}const _0x556f3d=_0x2171b5;_0x14d4f4['$inject']=['$state',_0x4376d8('0x1391'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x28da'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x22a6'),'userProfileSection'];function _0x14d4f4(_0x5374a4,_0x36b795,_0x22da80,_0x24fbe7,_0x266330,_0x3e7360,_0x284daf,_0x5142ac,_0x1aede4,_0x8d8f81,_0x13ef48,_0x57aa47){const _0x2bf26a=_0x4376d8,_0x36e895=this;_0x36e895['currentUser']=_0x8d8f81['getCurrentUser'](),_0x36e895['license']=_0x3e7360,_0x36e895[_0x2bf26a('0x1aeb')]=_0x284daf,_0x36e895['passwordPattern']=_0x36e895[_0x2bf26a('0x1aeb')][_0x2bf26a('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x36e895[_0x2bf26a('0xaed')]=_0x36b795[_0x2bf26a('0x14fe')]()+_0x2bf26a('0x14')+_0x36b795[_0x2bf26a('0x108')](),_0x36e895[_0x2bf26a('0x22a6')]=_0x13ef48||_0x5374a4[_0x2bf26a('0x16fb')][_0x2bf26a('0x22a6')]||{},_0x36e895[_0x2bf26a('0x383')]=_0x57aa47&&_0x57aa47['count']==0x1?_0x57aa47[_0x2bf26a('0x2319')][0x0]:null,_0x36e895['crudPermissions']=_0x8d8f81[_0x2bf26a('0x17a9')](_0x36e895['userProfileSection']?_0x36e895[_0x2bf26a('0x383')][_0x2bf26a('0x103e')]:null),_0x36e895[_0x2bf26a('0x6ee')]={},_0x36e895[_0x2bf26a('0xde7')]=_0x5374a4[_0x2bf26a('0x16fb')][_0x2bf26a('0x1523')]||0x0,_0x36e895[_0x2bf26a('0x99f')]=_0x1aede4[_0x2bf26a('0x1178')],_0x36e895[_0x2bf26a('0x26cf')]=_0x33d4a6,_0x36e895[_0x2bf26a('0x2226')]=_0x333d0e;function _0x33d4a6(){const _0x4353f5=_0x2bf26a;_0x5374a4['go']('app.integrations.vtigerAccounts',{},{'reload':_0x4353f5('0xb28')});}function _0x333d0e(){const _0x5733a6=_0x2bf26a;_0x5142ac[_0x5733a6('0x2090')][_0x5733a6('0x27ba')]({'id':_0x36e895['vtigerAccount']['id']},_0x36e895[_0x5733a6('0x22a6')])[_0x5733a6('0x1af5')][_0x5733a6('0x17e7')](function(){const _0x305cd7=_0x5733a6;_0x1aede4[_0x305cd7('0x130d')]({'title':_0x305cd7('0x1d80'),'msg':_0x36e895[_0x305cd7('0x22a6')][_0x305cd7('0x2aa')]?_0x36e895['vtigerAccount'][_0x305cd7('0x2aa')]+_0x305cd7('0x12b0'):''});})[_0x5733a6('0x16df')](function(_0x3179ac){const _0x56b72e=_0x5733a6;_0x1aede4[_0x56b72e('0x1db9')]({'title':_0x3179ac[_0x56b72e('0x11c5')]?'API:'+_0x3179ac['status']+_0x56b72e('0x16e4')+_0x3179ac['statusText']:_0x56b72e('0x1c6a'),'msg':_0x3179ac[_0x56b72e('0x1457')]?JSON[_0x56b72e('0x678')](_0x3179ac[_0x56b72e('0x1457')]):_0x3179ac[_0x56b72e('0x9b6')]()});});}}const _0x582d1d=_0x14d4f4,_0x455100=_0x4cf2bc['p']+_0x4376d8('0x279');_0x1670ee[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window','$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x1b34'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),'setting'];function _0x1670ee(_0x8cbc5,_0x50067a,_0x14752a,_0x5d4710,_0x8f8f04,_0x1deee6,_0x263217,_0x3fb028,_0x17574c,_0xa18752,_0x3c378e,_0x1cc6e9,_0x20d1ca,_0x286b73,_0x51b794,_0xb16474,_0x361778){const _0x3718f1=_0x4376d8,_0x2dbca3=this;_0x2dbca3['license']=_0xb16474,_0x2dbca3[_0x3718f1('0x1aeb')]=_0x361778,_0x2dbca3[_0x3718f1('0x197c')]=_0x51b794[_0x3718f1('0x2831')](),_0x2dbca3[_0x3718f1('0x1b34')]=_0x17574c||{'count':0x0,'rows':[]},_0x2dbca3[_0x3718f1('0xdeb')]=_0xa18752,_0x2dbca3[_0x3718f1('0x383')]=_0x3c378e&&_0x3c378e['count']==0x1?_0x3c378e[_0x3718f1('0x2319')][0x0]:null,_0x2dbca3[_0x3718f1('0x103e')]=_0x51b794[_0x3718f1('0x17a9')](_0x2dbca3['userProfileSection']?_0x2dbca3['userProfileSection']['crudPermissions']:null),_0x2dbca3[_0x3718f1('0x23c3')]=_0x3718f1('0x1b34'),_0x2dbca3[_0x3718f1('0x26a1')]='',_0x2dbca3[_0x3718f1('0x24e1')]=null,_0x2dbca3[_0x3718f1('0x1019')]=[],_0x2dbca3[_0x3718f1('0x826')]={'fields':_0x3718f1('0x1973'),'limit':0xa,'page':0x1},_0x2dbca3['editstate']=_0x4a7266,_0x2dbca3['testtestintegrationaccount']=_0x94771c,_0x2dbca3[_0x3718f1('0xbf4')]=_0x3e9c0f,_0x2dbca3[_0x3718f1('0x130d')]=_0x2ab97f,_0x2dbca3['getVtigerAccounts']=_0x58c9a6,_0x2dbca3[_0x3718f1('0xbae')]=_0x50fffb,_0x2dbca3[_0x3718f1('0x347')]=_0x4111ab,_0x2dbca3[_0x3718f1('0x26cb')]=_0x2c9248,_0x2dbca3['deleteSelectedVtigerAccounts']=_0x2416ef,_0x2dbca3[_0x3718f1('0x604')]=_0x35aa95,_0x2dbca3['selectAllVtigerAccounts']=_0x2eaba0;function _0x4a7266(_0xfabae1){const _0x429485=_0x3718f1;_0x14752a['go'](_0x429485('0x237f'),{'id':_0xfabae1['id'],'vtigerAccount':_0xfabae1,'crudPermissions':_0x2dbca3[_0x429485('0x103e')]});}function _0x94771c(_0xa0354a){const _0x3b7a38=_0x3718f1;return _0x1cc6e9[_0x3b7a38('0x2090')][_0x3b7a38('0x9a')]({'id':_0xa0354a['id'],'test':!![]})[_0x3b7a38('0x1af5')][_0x3b7a38('0x17e7')](function(){const _0xfdfe96=_0x3b7a38;_0x286b73[_0xfdfe96('0x130d')]({'title':_0xfdfe96('0x902'),'msg':_0xfdfe96('0x120d')});})[_0x3b7a38('0x16df')](function(_0x1f16af){const _0x50ea22=_0x3b7a38;_0x286b73['error']({'title':_0x50ea22('0x902'),'msg':_0x1f16af['data']?_0x1f16af[_0x50ea22('0x1457')][_0x50ea22('0x1603')]?_0x1f16af[_0x50ea22('0x1457')]['message']:JSON['stringify'](_0x1f16af['data']):_0x1f16af[_0x50ea22('0x9b6')]()});});}function _0x3e9c0f(_0x53953e,_0xa7a0be){const _0x281525=_0x3718f1,_0x4392eb=_0x8f8f04['confirm']()[_0x281525('0x24d3')](_0x281525('0x5e1')+_0x49cbdd()['startCase']('vtigerAccount')+'?')[_0x281525('0x211f')](''+(_0x53953e[_0x281525('0x2aa')]||_0x281525('0x22a6'))+_0x281525('0x1d23')+_0x281525('0xe9f'))['ariaLabel'](_0x281525('0xeb8'))[_0x281525('0x104f')](_0xa7a0be)['ok']('OK')[_0x281525('0x1d47')]('CANCEL');_0x8f8f04[_0x281525('0x28e2')](_0x4392eb)[_0x281525('0x17e7')](function(){_0x4111ab(_0x53953e);},function(){const _0x4e5f60=_0x281525;console['log'](_0x4e5f60('0x28a0'));});}let _0x504e52=!![],_0x5bd62d=0x1;_0x8cbc5[_0x3718f1('0x620')]('vm.query.filter',function(_0x24e338,_0x41a044){const _0x3d3f8d=_0x3718f1;_0x504e52?_0x263217(function(){_0x504e52=![];}):(!_0x41a044&&(_0x5bd62d=_0x2dbca3['query'][_0x3d3f8d('0x115a')]),_0x24e338!==_0x41a044&&(_0x2dbca3[_0x3d3f8d('0x826')][_0x3d3f8d('0x115a')]=0x1),!_0x24e338&&(_0x2dbca3[_0x3d3f8d('0x826')][_0x3d3f8d('0x115a')]=_0x5bd62d),_0x2dbca3[_0x3d3f8d('0x15a0')]());});function _0x2ab97f(_0x4853a1){const _0x348801=_0x3718f1;_0x2dbca3[_0x348801('0x1b34')]=_0x4853a1||{'count':0x0,'rows':[]};}function _0x58c9a6(){const _0x43a5ca=_0x3718f1;_0x2dbca3[_0x43a5ca('0x826')][_0x43a5ca('0xf19')]=(_0x2dbca3[_0x43a5ca('0x826')]['page']-0x1)*_0x2dbca3['query']['limit'],_0x51b794[_0x43a5ca('0x1ba2')](_0x43a5ca('0x20bf'))?_0x2dbca3[_0x43a5ca('0x1691')]=_0x1cc6e9[_0x43a5ca('0x2090')]['get'](_0x2dbca3[_0x43a5ca('0x826')],_0x2ab97f)[_0x43a5ca('0x1af5')]:(_0x2dbca3[_0x43a5ca('0x826')]['id']=_0x2dbca3[_0x43a5ca('0xdeb')]['id'],_0x2dbca3[_0x43a5ca('0x826')][_0x43a5ca('0x16f8')]=_0x43a5ca('0x1763'),_0x2dbca3[_0x43a5ca('0x1691')]=_0x1cc6e9[_0x43a5ca('0xdeb')]['getResources'](_0x2dbca3[_0x43a5ca('0x826')],_0x2ab97f)['$promise']);}function _0x50fffb(_0x87afb5,_0x3237d5){const _0x406f43=_0x3718f1;_0x8f8f04[_0x406f43('0x28e2')]({'controller':_0x406f43('0x1c30'),'controllerAs':'vm','templateUrl':_0x455100,'parent':angular[_0x406f43('0x1ce1')](_0x1deee6['body']),'targetEvent':_0x87afb5,'clickOutsideToClose':!![],'locals':{'vtigerAccount':_0x3237d5,'vtigerAccounts':_0x2dbca3[_0x406f43('0x1b34')][_0x406f43('0x2319')],'license':_0x2dbca3[_0x406f43('0x1d11')],'setting':_0x2dbca3[_0x406f43('0x1aeb')],'crudPermissions':_0x2dbca3[_0x406f43('0x103e')]}});}function _0x4111ab(_0x32377b){const _0x386e8c=_0x3718f1;_0x1cc6e9[_0x386e8c('0x2090')][_0x386e8c('0x1da6')]({'id':_0x32377b['id']})['$promise']['then'](function(){const _0x54e1ea=_0x386e8c;_0x49cbdd()[_0x54e1ea('0x5f3')](_0x2dbca3[_0x54e1ea('0x1b34')]['rows'],{'id':_0x32377b['id']}),_0x2dbca3[_0x54e1ea('0x1b34')][_0x54e1ea('0x335')]-=0x1,!_0x2dbca3[_0x54e1ea('0x1b34')][_0x54e1ea('0x2319')][_0x54e1ea('0x1f73')]&&_0x2dbca3[_0x54e1ea('0x15a0')](),_0x286b73['success']({'title':_0x49cbdd()[_0x54e1ea('0x1c98')](_0x54e1ea('0x10ac'))+_0x54e1ea('0x2673'),'msg':_0x32377b[_0x54e1ea('0x2aa')]?_0x32377b[_0x54e1ea('0x2aa')]+_0x54e1ea('0x149f'):''});})[_0x386e8c('0x16df')](function(_0x34fc62){const _0x651a5e=_0x386e8c;if(_0x34fc62['data']&&_0x34fc62[_0x651a5e('0x1457')][_0x651a5e('0x73e')]&&_0x34fc62[_0x651a5e('0x1457')]['errors']['length']){_0x2dbca3['errors']=_0x34fc62[_0x651a5e('0x1457')][_0x651a5e('0x73e')]||[{'message':_0x34fc62[_0x651a5e('0x9b6')](),'type':_0x651a5e('0x645')}];for(let _0x170802=0x0;_0x170802<_0x34fc62[_0x651a5e('0x1457')][_0x651a5e('0x73e')][_0x651a5e('0x1f73')];_0x170802++){_0x286b73['error']({'title':_0x34fc62[_0x651a5e('0x1457')][_0x651a5e('0x73e')][_0x170802][_0x651a5e('0x412')],'msg':_0x34fc62['data'][_0x651a5e('0x73e')][_0x170802]['message']});}}else _0x286b73['error']({'title':_0x34fc62['status']?_0x651a5e('0x14f7')+_0x34fc62[_0x651a5e('0x11c5')]+_0x651a5e('0x16e4')+_0x34fc62[_0x651a5e('0x1833')]:_0x651a5e('0x645'),'msg':_0x34fc62['data']?JSON['stringify'](_0x34fc62['data'][_0x651a5e('0x1603')]):_0x34fc62['message']||_0x34fc62[_0x651a5e('0x9b6')]()});});}function _0x2c9248(){const _0x2e6f0b=_0x3718f1,_0x43c811=angular[_0x2e6f0b('0x14e5')](_0x2dbca3['selectedVtigerAccounts']);return _0x2dbca3[_0x2e6f0b('0x1019')]=[],_0x43c811;}function _0x2416ef(_0x51b38d){const _0x42604e=_0x3718f1,_0x173026=_0x8f8f04[_0x42604e('0x1121')]()[_0x42604e('0x24d3')](_0x42604e('0x865'))[_0x42604e('0x211f')](_0x42604e('0xa53')+_0x2dbca3['selectedVtigerAccounts'][_0x42604e('0x1f73')]+_0x42604e('0x145a')+_0x42604e('0xe9f'))[_0x42604e('0x2095')](_0x42604e('0x10ea'))[_0x42604e('0x104f')](_0x51b38d)['ok']('OK')['cancel'](_0x42604e('0x28a0'));_0x8f8f04[_0x42604e('0x28e2')](_0x173026)[_0x42604e('0x17e7')](function(){const _0x5befa1=_0x42604e;_0x2dbca3[_0x5befa1('0x1019')][_0x5befa1('0xccd')](function(_0x1578f0){_0x4111ab(_0x1578f0);}),_0x2dbca3['selectedVtigerAccounts']=[];});}function _0x35aa95(){_0x2dbca3['selectedVtigerAccounts']=[];}function _0x2eaba0(){const _0x3ae7ed=_0x3718f1;_0x2dbca3[_0x3ae7ed('0x1019')]=_0x2dbca3[_0x3ae7ed('0x1b34')][_0x3ae7ed('0x2319')];}}const _0x2ec4b9=_0x1670ee;_0x49bfcb[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x929'),_0x4376d8('0x2029'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x49bfcb(_0x5ec0de,_0x50f520,_0x58ac19,_0x5e22af,_0x5a0672,_0x5ee7d2,_0x1ef05a,_0x4e6f61,_0x2d95e5,_0x29a552,_0x296238,_0x36a367,_0x48758f,_0x5718f6){const _0x375b0f=_0x4376d8,_0x11ab7f=this;_0x11ab7f[_0x375b0f('0x197c')]=_0x296238[_0x375b0f('0x2831')](),_0x11ab7f['errors']=[],_0x11ab7f[_0x375b0f('0x1aeb')]=_0x48758f,_0x11ab7f[_0x375b0f('0x1d11')]=_0x36a367,_0x11ab7f[_0x375b0f('0x103e')]=_0x5718f6,_0x11ab7f[_0x375b0f('0x6ee')]={},_0x11ab7f['passwordPattern']=_0x11ab7f[_0x375b0f('0x1aeb')]&&_0x11ab7f['setting'][_0x375b0f('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x11ab7f[_0x375b0f('0x24d3')]=_0x375b0f('0x156c'),_0x11ab7f[_0x375b0f('0x2029')]=angular[_0x375b0f('0x14e5')](_0x2d95e5),_0x11ab7f[_0x375b0f('0x929')]=_0x4e6f61,_0x11ab7f[_0x375b0f('0x4f0')]=![];!_0x11ab7f['zendeskAccount']&&(_0x11ab7f[_0x375b0f('0x2029')]={'type':_0x375b0f('0x1994'),'authType':_0x375b0f('0xb62'),'serverUrl':_0x58ac19[_0x375b0f('0x14fe')]()+'://'+_0x58ac19[_0x375b0f('0x108')]()+(_0x58ac19[_0x375b0f('0x2442')]()?':'+_0x58ac19[_0x375b0f('0x2442')]():'')},_0x11ab7f[_0x375b0f('0x24d3')]=_0x375b0f('0x77c'),_0x11ab7f[_0x375b0f('0x4f0')]=!![]);_0x11ab7f[_0x375b0f('0x1fe9')]=_0xd5f85c,_0x11ab7f[_0x375b0f('0x199b')]=_0x32bbab,_0x11ab7f[_0x375b0f('0x1b6f')]=_0x23fb76,_0x11ab7f[_0x375b0f('0x1300')]=_0x375d4b,_0x11ab7f[_0x375b0f('0x136e')]=_0x2c3335;function _0xd5f85c(){const _0x3a4536=_0x375b0f;_0x11ab7f[_0x3a4536('0x73e')]=[],_0x29a552['intZendeskAccount'][_0x3a4536('0x2439')](_0x11ab7f['zendeskAccount'])[_0x3a4536('0x1af5')]['then'](function(_0x4e61a2){const _0x3d69d0=_0x3a4536;_0x11ab7f[_0x3d69d0('0x929')][_0x3d69d0('0x1893')](_0x4e61a2['toJSON']()),_0x1ef05a['success']({'title':'ZendeskAccount\x20properly\x20created','msg':_0x11ab7f[_0x3d69d0('0x2029')]['name']?_0x11ab7f[_0x3d69d0('0x2029')][_0x3d69d0('0x2aa')]+_0x3d69d0('0x15a'):''}),_0x2c3335(_0x4e61a2);})[_0x3a4536('0x16df')](function(_0x26fe76){const _0x33481c=_0x3a4536;if(_0x26fe76[_0x33481c('0x1457')]&&_0x26fe76[_0x33481c('0x1457')][_0x33481c('0x73e')]&&_0x26fe76[_0x33481c('0x1457')][_0x33481c('0x73e')]['length']){_0x11ab7f[_0x33481c('0x73e')]=_0x26fe76[_0x33481c('0x1457')][_0x33481c('0x73e')]||[{'message':_0x26fe76[_0x33481c('0x9b6')](),'type':'api.intZendeskAccount.save'}];for(let _0xa6ca79=0x0;_0xa6ca79<_0x26fe76['data'][_0x33481c('0x73e')][_0x33481c('0x1f73')];_0xa6ca79+=0x1){_0x1ef05a[_0x33481c('0x1db9')]({'title':_0x26fe76[_0x33481c('0x1457')][_0x33481c('0x73e')][_0xa6ca79][_0x33481c('0x412')],'msg':_0x26fe76[_0x33481c('0x1457')][_0x33481c('0x73e')][_0xa6ca79][_0x33481c('0x1603')]});}}else _0x1ef05a[_0x33481c('0x1db9')]({'title':_0x26fe76[_0x33481c('0x11c5')]?_0x33481c('0x14f7')+_0x26fe76[_0x33481c('0x11c5')]+_0x33481c('0x16e4')+_0x26fe76[_0x33481c('0x1833')]:_0x33481c('0x179'),'msg':_0x26fe76[_0x33481c('0x1457')]?JSON[_0x33481c('0x678')](_0x26fe76[_0x33481c('0x1457')][_0x33481c('0x1603')]):_0x26fe76['toString']()});});}function _0x32bbab(){const _0x1160a6=_0x375b0f;_0x11ab7f[_0x1160a6('0x73e')]=[],_0x29a552[_0x1160a6('0x1b8b')]['update']({'id':_0x11ab7f[_0x1160a6('0x2029')]['id']},_0x11ab7f[_0x1160a6('0x2029')])[_0x1160a6('0x1af5')][_0x1160a6('0x17e7')](function(_0x2ec163){const _0x37a267=_0x1160a6,_0xe970f5=_0x49cbdd()['find'](_0x11ab7f[_0x37a267('0x929')],{'id':_0x2ec163['id']});_0xe970f5&&_0x49cbdd()[_0x37a267('0x1ced')](_0xe970f5,_0x49cbdd()[_0x37a267('0x230a')](_0x2ec163['toJSON'](),_0x49cbdd()[_0x37a267('0x1c0f')](_0xe970f5))),_0x1ef05a[_0x37a267('0x130d')]({'title':'ZendeskAccount\x20properly\x20saved!','msg':_0x11ab7f[_0x37a267('0x2029')][_0x37a267('0x2aa')]?_0x11ab7f['zendeskAccount'][_0x37a267('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x2c3335(_0x2ec163);})['catch'](function(_0x5523bf){const _0x3831d1=_0x1160a6;if(_0x5523bf['data']&&_0x5523bf[_0x3831d1('0x1457')][_0x3831d1('0x73e')]&&_0x5523bf['data'][_0x3831d1('0x73e')][_0x3831d1('0x1f73')]){_0x11ab7f[_0x3831d1('0x73e')]=_0x5523bf[_0x3831d1('0x1457')][_0x3831d1('0x73e')]||[{'message':_0x5523bf[_0x3831d1('0x9b6')](),'type':'api.intZendeskAccount.update'}];for(let _0x18ed26=0x0;_0x18ed26<_0x5523bf[_0x3831d1('0x1457')][_0x3831d1('0x73e')][_0x3831d1('0x1f73')];_0x18ed26++){_0x1ef05a[_0x3831d1('0x1db9')]({'title':_0x5523bf['data']['errors'][_0x18ed26][_0x3831d1('0x412')],'msg':_0x5523bf[_0x3831d1('0x1457')]['errors'][_0x18ed26][_0x3831d1('0x1603')]});}}else _0x1ef05a[_0x3831d1('0x1db9')]({'title':_0x5523bf[_0x3831d1('0x11c5')]?'API:'+_0x5523bf[_0x3831d1('0x11c5')]+'\x20-\x20'+_0x5523bf[_0x3831d1('0x1833')]:'api.intZendeskAccount.update','msg':_0x5523bf[_0x3831d1('0x1457')]?JSON['stringify'](_0x5523bf[_0x3831d1('0x1457')][_0x3831d1('0x1603')]):_0x5523bf[_0x3831d1('0x9b6')]()});});}function _0x23fb76(_0x9da81d){const _0x218f4f=_0x375b0f;_0x11ab7f[_0x218f4f('0x73e')]=[];const _0x3224c2=_0x5e22af[_0x218f4f('0x1121')]()[_0x218f4f('0x24d3')](_0x218f4f('0x530'))[_0x218f4f('0xd5')](_0x218f4f('0xff6'))['ariaLabel']('Delete\x20ZendeskAccount')['ok'](_0x218f4f('0x304'))[_0x218f4f('0x1d47')]('Cancel')[_0x218f4f('0x104f')](_0x9da81d);_0x5e22af[_0x218f4f('0x28e2')](_0x3224c2)[_0x218f4f('0x17e7')](function(){const _0x2516a8=_0x218f4f;_0x29a552[_0x2516a8('0x1b8b')][_0x2516a8('0x1da6')]({'id':_0x11ab7f[_0x2516a8('0x2029')]['id']})[_0x2516a8('0x1af5')][_0x2516a8('0x17e7')](function(){const _0x411fc2=_0x2516a8;_0x49cbdd()['remove'](_0x11ab7f[_0x411fc2('0x929')],{'id':_0x11ab7f['zendeskAccount']['id']}),_0x1ef05a['success']({'title':_0x411fc2('0x49d'),'msg':(_0x11ab7f[_0x411fc2('0x2029')][_0x411fc2('0x2aa')]||_0x411fc2('0x2029'))+_0x411fc2('0x149f')}),_0x2c3335(_0x11ab7f[_0x411fc2('0x2029')]);})[_0x2516a8('0x16df')](function(_0x2327b3){const _0x5f3974=_0x2516a8;if(_0x2327b3[_0x5f3974('0x1457')]&&_0x2327b3[_0x5f3974('0x1457')][_0x5f3974('0x73e')]&&_0x2327b3[_0x5f3974('0x1457')][_0x5f3974('0x73e')][_0x5f3974('0x1f73')]){_0x11ab7f[_0x5f3974('0x73e')]=_0x2327b3['data'][_0x5f3974('0x73e')]||[{'message':_0x2327b3['toString'](),'type':_0x5f3974('0x17da')}];for(let _0x20dc8c=0x0;_0x20dc8c<_0x2327b3[_0x5f3974('0x1457')][_0x5f3974('0x73e')]['length'];_0x20dc8c++){_0x1ef05a[_0x5f3974('0x1db9')]({'title':_0x2327b3[_0x5f3974('0x1457')][_0x5f3974('0x73e')][_0x20dc8c][_0x5f3974('0x412')],'msg':_0x2327b3[_0x5f3974('0x1457')][_0x5f3974('0x73e')][_0x20dc8c][_0x5f3974('0x1603')]});}}else _0x1ef05a[_0x5f3974('0x1db9')]({'title':_0x2327b3[_0x5f3974('0x11c5')]?'API:'+_0x2327b3[_0x5f3974('0x11c5')]+_0x5f3974('0x16e4')+_0x2327b3[_0x5f3974('0x1833')]:_0x5f3974('0x17da'),'msg':_0x2327b3[_0x5f3974('0x1457')]?JSON[_0x5f3974('0x678')](_0x2327b3[_0x5f3974('0x1457')][_0x5f3974('0x1603')]):_0x2327b3[_0x5f3974('0x1603')]||_0x2327b3[_0x5f3974('0x9b6')]()});});},function(){});}function _0x375d4b(_0x30f6a9){return _0x30f6a9===null?undefined:new Date(_0x30f6a9);}function _0x2c3335(_0x262bcd){const _0x1e373c=_0x375b0f;_0x5e22af[_0x1e373c('0x212a')](_0x262bcd);}}const _0xb72976=_0x49bfcb;_0x519015[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state','$location','$mdDialog',_0x4376d8('0x108a'),_0x4376d8('0x1c4'),_0x4376d8('0x532'),_0x4376d8('0x28b8'),_0x4376d8('0x2679'),'type','api',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x519015(_0x554822,_0x568202,_0x50573a,_0x5731d3,_0x44f417,_0x139567,_0x77b490,_0xb348f5,_0xdc8837,_0x36b8c1,_0x18b1ef,_0x51fb82,_0x40e213){const _0x49de3d=_0x4376d8,_0x3d6e90=this;_0x3d6e90[_0x49de3d('0x197c')]=_0x51fb82[_0x49de3d('0x2831')](),_0x3d6e90[_0x49de3d('0x73e')]=[],_0x3d6e90['title']=_0x49de3d('0x9dd')+_0x49cbdd()[_0x49de3d('0x286f')](_0x36b8c1),_0x3d6e90[_0x49de3d('0x28b8')]=angular[_0x49de3d('0x14e5')](_0xb348f5),_0x3d6e90[_0x49de3d('0x532')]=_0x77b490,_0x3d6e90[_0x49de3d('0x412')]=_0x36b8c1,_0x3d6e90[_0x49de3d('0x103e')]=_0x40e213,_0x3d6e90[_0x49de3d('0x1ac5')]=![];!_0x3d6e90[_0x49de3d('0x28b8')]&&(_0x3d6e90[_0x49de3d('0x28b8')]={'type':_0x49de3d('0x1783')},_0x3d6e90[_0x49de3d('0x28b8')][_0x49cbdd()[_0x49de3d('0xb41')](_0x36b8c1)+'Id']=_0x139567['id'],_0x3d6e90[_0x49de3d('0x24d3')]=_0x49de3d('0x6fe')+_0x49cbdd()[_0x49de3d('0x286f')](_0x36b8c1),_0x3d6e90[_0x49de3d('0x1ac5')]=!![]);_0x3d6e90[_0x49de3d('0x1978')]=_0x45124f,_0x3d6e90[_0x49de3d('0x1321')]=_0x240e99,_0x3d6e90['deleteItem']=_0xc0f495,_0x3d6e90['getSelectedVariable']=_0x480ddf,_0x3d6e90[_0x49de3d('0x136e')]=_0x5e92d9,_0x18b1ef[_0x49de3d('0xb0a')][_0x49de3d('0x1c53')]({'nolimit':!![]})[_0x49de3d('0x1af5')]['then'](function(_0x11288b){const _0x2e294b=_0x49de3d;return _0x3d6e90['variables']=_0x11288b[_0x2e294b('0x2319')]?_0x11288b[_0x2e294b('0x2319')]:[],_0x18b1ef[_0x2e294b('0x770')][_0x2e294b('0x2234')]()[_0x2e294b('0x1af5')];})[_0x49de3d('0x17e7')](function(_0x210629){const _0x157aee=_0x49de3d;return _0x3d6e90[_0x157aee('0x217b')]=_0x49cbdd()[_0x157aee('0x4f1')](_0x49cbdd()[_0x157aee('0x1c0f')](_0x210629),[_0x157aee('0x1af5'),'$resolved',_0x157aee('0x7c9'),_0x157aee('0xb8a'),_0x157aee('0x1c59')]),_0x3d6e90[_0x157aee('0x217b')]['push'](_0x157aee('0x1bea')),_0x18b1ef[_0x157aee('0xc6f')][_0x157aee('0x2234')]()[_0x157aee('0x1af5')];})['then'](function(_0x5786cb){const _0x313c00=_0x49de3d;_0x3d6e90[_0x313c00('0xe00')]=_0x49cbdd()[_0x313c00('0x4f1')](_0x49cbdd()['keys'](_0x5786cb),[_0x313c00('0x1af5'),'$resolved',_0x313c00('0x7c9'),'updatedAt',_0x313c00('0x1c59')]),_0x3d6e90[_0x313c00('0xe00')][_0x313c00('0x269f')](_0x313c00('0x1bea'));})[_0x49de3d('0x16df')](function(_0x40b245){const _0x54e45a=_0x49de3d;_0x44f417[_0x54e45a('0x1db9')]({'title':_0x40b245[_0x54e45a('0x11c5')]?_0x54e45a('0x14f7')+_0x40b245[_0x54e45a('0x11c5')]+'\x20-\x20'+_0x40b245['statusText']:_0x54e45a('0x3a9'),'msg':_0x40b245[_0x54e45a('0x1457')]?JSON['stringify'](_0x40b245[_0x54e45a('0x1457')]):_0x40b245[_0x54e45a('0x9b6')]()});}),_0x18b1ef[_0x49de3d('0x1b8b')]['getFields']({'id':_0xdc8837['id'],'ticketType':_0x139567['ticketType']?_0x139567[_0x49de3d('0x148e')]:undefined})['$promise'][_0x49de3d('0x17e7')](function(_0x30de00){const _0x6bad07=_0x49de3d;_0x3d6e90[_0x6bad07('0x20c2')]=!![],_0x3d6e90[_0x6bad07('0x9c9')]=_0x30de00['rows']?_0x30de00[_0x6bad07('0x2319')]:[],_0x3d6e90[_0x6bad07('0x28b8')][_0x6bad07('0x8d8')]&&(_0x3d6e90[_0x6bad07('0x1fa4')]=_0x49cbdd()['find'](_0x3d6e90[_0x6bad07('0x9c9')],{'id':_0x3d6e90[_0x6bad07('0x28b8')][_0x6bad07('0x8d8')]}));})[_0x49de3d('0x16df')](function(_0x356560){const _0x254e55=_0x49de3d;_0x3d6e90[_0x254e55('0x20c2')]=![],console['error'](_0x356560);});function _0x45124f(){const _0x45c049=_0x49de3d;_0x3d6e90[_0x45c049('0x73e')]=[],_0x3d6e90['customField']&&(_0x3d6e90[_0x45c049('0x28b8')][_0x45c049('0x8d8')]=_0x3d6e90[_0x45c049('0x1fa4')]['id'],_0x3d6e90[_0x45c049('0x28b8')]['nameField']=_0x3d6e90[_0x45c049('0x1fa4')][_0x45c049('0x2aa')],_0x3d6e90[_0x45c049('0x28b8')][_0x45c049('0x1fa4')]=_0x3d6e90[_0x45c049('0x1fa4')][_0x45c049('0x8fa')]),_0x18b1ef[_0x45c049('0x1d78')]['save'](_0x3d6e90[_0x45c049('0x28b8')])[_0x45c049('0x1af5')][_0x45c049('0x17e7')](function(_0x15d84d){const _0x29498a=_0x45c049;_0x3d6e90['items'][_0x29498a('0x1893')](_0x15d84d),_0x44f417[_0x29498a('0x130d')]({'title':_0x49cbdd()[_0x29498a('0xb41')](_0x36b8c1)+'\x20properly\x20created','msg':_0x49cbdd()[_0x29498a('0xb41')](_0x36b8c1)+_0x29498a('0x15a')}),_0x5e92d9();})[_0x45c049('0x16df')](function(_0x39f7f4){const _0x25eb58=_0x45c049;console[_0x25eb58('0x1db9')](_0x39f7f4),_0x3d6e90['errors']=_0x39f7f4[_0x25eb58('0x1457')]['errors']||[{'message':_0x39f7f4[_0x25eb58('0x9b6')](),'type':_0x25eb58('0xbe0')}];});}function _0x240e99(){const _0x9765b=_0x49de3d;_0x3d6e90[_0x9765b('0x73e')]=[],_0x3d6e90[_0x9765b('0x1fa4')]&&(_0x3d6e90[_0x9765b('0x28b8')][_0x9765b('0x8d8')]=_0x3d6e90[_0x9765b('0x1fa4')]['id'],_0x3d6e90[_0x9765b('0x28b8')][_0x9765b('0x1a12')]=_0x3d6e90[_0x9765b('0x1fa4')][_0x9765b('0x2aa')],_0x3d6e90[_0x9765b('0x28b8')][_0x9765b('0x1fa4')]=_0x3d6e90[_0x9765b('0x1fa4')][_0x9765b('0x8fa')]),_0x18b1ef[_0x9765b('0x1d78')][_0x9765b('0x27ba')]({'id':_0x3d6e90['item']['id']},_0x3d6e90[_0x9765b('0x28b8')])[_0x9765b('0x1af5')]['then'](function(_0x54c3ac){const _0x4814f3=_0x9765b,_0x15b9b0=_0x49cbdd()['find'](_0x3d6e90[_0x4814f3('0x532')],{'id':_0x54c3ac['id']});_0x15b9b0&&_0x49cbdd()[_0x4814f3('0x1ced')](_0x15b9b0,_0x54c3ac),_0x44f417['success']({'title':_0x49cbdd()[_0x4814f3('0xb41')](_0x36b8c1)+_0x4814f3('0x2b8'),'msg':_0x49cbdd()[_0x4814f3('0xb41')](_0x36b8c1)+_0x4814f3('0x15ca')}),_0x5e92d9();})[_0x9765b('0x16df')](function(_0x187572){const _0x118507=_0x9765b;console[_0x118507('0x1db9')](_0x187572),_0x3d6e90[_0x118507('0x73e')]=_0x187572[_0x118507('0x1457')][_0x118507('0x73e')]||[{'message':_0x187572['toString'](),'type':_0x118507('0x428')}];});}function _0xc0f495(_0xc50cfc){const _0x39141a=_0x49de3d;_0x3d6e90[_0x39141a('0x73e')]=[];const _0x36319e=_0x5731d3[_0x39141a('0x1121')]()[_0x39141a('0x24d3')]('Are\x20you\x20sure?')[_0x39141a('0xd5')](_0x39141a('0x1664')+_0x36b8c1+_0x39141a('0xe9f'))[_0x39141a('0x2095')](_0x39141a('0x1aaa')+_0x49cbdd()[_0x39141a('0xb41')](_0x36b8c1))['ok'](_0x39141a('0x304'))[_0x39141a('0x1d47')](_0x39141a('0x1b70'))['targetEvent'](_0xc50cfc);_0x5731d3[_0x39141a('0x28e2')](_0x36319e)[_0x39141a('0x17e7')](function(){const _0x263527=_0x39141a;_0x18b1ef[_0x263527('0x1d78')][_0x263527('0x1da6')]({'id':_0x3d6e90[_0x263527('0x28b8')]['id']})[_0x263527('0x1af5')]['then'](function(){const _0x41fbff=_0x263527;_0x49cbdd()[_0x41fbff('0x5f3')](_0x3d6e90[_0x41fbff('0x532')],{'id':_0x3d6e90[_0x41fbff('0x28b8')]['id']}),_0x44f417[_0x41fbff('0x130d')]({'title':_0x49cbdd()['capitalize'](_0x36b8c1)+_0x41fbff('0x253a'),'msg':_0x49cbdd()[_0x41fbff('0xb41')](_0x36b8c1)+'\x20has\x20been\x20deleted!'}),_0x5e92d9();})[_0x263527('0x16df')](function(_0x101795){const _0x2ba661=_0x263527;console['error'](_0x101795),_0x3d6e90[_0x2ba661('0x73e')]=_0x101795[_0x2ba661('0x1457')][_0x2ba661('0x73e')]||[{'message':_0x101795[_0x2ba661('0x9b6')](),'type':_0x2ba661('0x2220')}];});},function(){});}function _0x480ddf(){const _0x5ba1cf=_0x49de3d;return _0x3d6e90[_0x5ba1cf('0x28b8')][_0x5ba1cf('0x4fd')]!==undefined?_0x3d6e90[_0x5ba1cf('0x28b8')][_0x5ba1cf('0x4fd')]:'Please\x20select\x20a\x20variable';}function _0x5e92d9(){const _0x35f898=_0x49de3d;_0x5731d3[_0x35f898('0x212a')]();}}const _0xcfbeb7=_0x519015;_0x88ce58[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),'zendeskAccount','userProfileSection'];function _0x88ce58(_0x24e647,_0x96f547,_0x425b21,_0x20773a,_0x379b9a,_0x3fd8bb,_0x53f436,_0x3259ec,_0x4242ff,_0x1f6b37,_0x5f4a0d,_0x1cf780){const _0x4130cb=_0x4376d8,_0x106c11=this;_0x106c11[_0x4130cb('0x197c')]=_0x1f6b37[_0x4130cb('0x2831')](),_0x106c11['license']=_0x3fd8bb,_0x106c11[_0x4130cb('0x1aeb')]=_0x53f436,_0x106c11['passwordPattern']=_0x106c11[_0x4130cb('0x1aeb')][_0x4130cb('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x106c11[_0x4130cb('0xaed')]=_0x96f547[_0x4130cb('0x14fe')]()+_0x4130cb('0x14')+_0x96f547[_0x4130cb('0x108')](),_0x106c11[_0x4130cb('0x2029')]=_0x5f4a0d||_0x24e647[_0x4130cb('0x16fb')]['zendeskAccount']||{},_0x106c11[_0x4130cb('0x383')]=_0x1cf780&&_0x1cf780[_0x4130cb('0x335')]==0x1?_0x1cf780['rows'][0x0]:null,_0x106c11['crudPermissions']=_0x1f6b37[_0x4130cb('0x17a9')](_0x106c11[_0x4130cb('0x383')]?_0x106c11[_0x4130cb('0x383')][_0x4130cb('0x103e')]:null),_0x106c11[_0x4130cb('0x6ee')]={},_0x106c11[_0x4130cb('0xde7')]=_0x24e647[_0x4130cb('0x16fb')][_0x4130cb('0x1523')]||0x0,_0x106c11['alert']=_0x4242ff['info'],_0x106c11[_0x4130cb('0x250b')]=_0x4956b7,_0x106c11[_0x4130cb('0x199b')]=_0x103257;function _0x4956b7(){_0x24e647['go']('app.integrations.zendeskAccounts',{},{'reload':'app.integrations.zendeskAccounts'});}function _0x103257(){const _0xde6558=_0x4130cb;_0x3259ec[_0xde6558('0x1b8b')][_0xde6558('0x27ba')]({'id':_0x106c11[_0xde6558('0x2029')]['id']},_0x106c11['zendeskAccount'])['$promise'][_0xde6558('0x17e7')](function(){const _0x4edc0b=_0xde6558;_0x4242ff[_0x4edc0b('0x130d')]({'title':_0x4edc0b('0xa3d'),'msg':_0x106c11['zendeskAccount'][_0x4edc0b('0x2aa')]?_0x106c11[_0x4edc0b('0x2029')][_0x4edc0b('0x2aa')]+'\x20has\x20been\x20updated!':''});})[_0xde6558('0x16df')](function(_0x50378e){const _0x1fd3ca=_0xde6558;_0x4242ff[_0x1fd3ca('0x1db9')]({'title':_0x50378e[_0x1fd3ca('0x11c5')]?_0x1fd3ca('0x14f7')+_0x50378e[_0x1fd3ca('0x11c5')]+_0x1fd3ca('0x16e4')+_0x50378e[_0x1fd3ca('0x1833')]:_0x1fd3ca('0x14ef'),'msg':_0x50378e[_0x1fd3ca('0x1457')]?JSON['stringify'](_0x50378e[_0x1fd3ca('0x1457')]):_0x50378e[_0x1fd3ca('0x9b6')]()});});}}const _0x1cb022=_0x88ce58,_0x5c825a=_0x4cf2bc['p']+_0x4376d8('0x1292'),_0xfddac5=_0x4cf2bc['p']+_0x4376d8('0x1dbd');_0x231dbc[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$document',_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];function _0x231dbc(_0x3e3b62,_0x1e93cb,_0x412b0b,_0x5c7c6f,_0x1aa872){const _0x44800b=_0x4376d8,_0x387257=this;_0x387257['currentUser']=_0x1aa872[_0x44800b('0x2831')](),_0x387257[_0x44800b('0x2029')]={},_0x387257['zendeskConfiguration']={},_0x387257[_0x44800b('0xed0')]=[],_0x387257[_0x44800b('0x2b7')]=-0x1,_0x387257['crudPermissions'],_0x387257['init']=_0x48a43a,_0x387257[_0x44800b('0x388')]=_0x13a7da,_0x387257[_0x44800b('0x1673')]=_0x2d2fb8,_0x387257[_0x44800b('0x39f')]=_0x4cf00c,_0x387257['selectedTags']=[],_0x387257['selectTagsChanged']=_0x5da4fe,_0x412b0b[_0x44800b('0x1132')][_0x44800b('0x1c53')]({'nolimit':!![],'sort':_0x44800b('0x2aa')})[_0x44800b('0x1af5')][_0x44800b('0x17e7')](function(_0x23f39a){const _0x33059e=_0x44800b;_0x387257[_0x33059e('0x1522')]=_0x23f39a[_0x33059e('0x2319')]?_0x23f39a[_0x33059e('0x2319')]:[];})[_0x44800b('0x16df')](function(_0x5c50a2){const _0x1681b5=_0x44800b;_0x5c7c6f[_0x1681b5('0x1db9')]({'title':_0x5c50a2[_0x1681b5('0x11c5')]?'API:'+_0x5c50a2['status']+_0x1681b5('0x16e4')+_0x5c50a2['statusText']:_0x1681b5('0x1435'),'msg':_0x5c50a2['data']?JSON['stringify'](_0x5c50a2[_0x1681b5('0x1457')]):_0x5c50a2[_0x1681b5('0x9b6')]()});});function _0x5da4fe(){const _0x23ab47=_0x44800b;_0x412b0b['intZendeskConfiguration'][_0x23ab47('0x4bc')]({'id':_0x387257[_0x23ab47('0x4a6')]['id'],'ids':_0x387257[_0x23ab47('0x8b4')]})['$promise']['then'](function(){const _0x450bfa=_0x23ab47;_0x5c7c6f[_0x450bfa('0x130d')]({'title':_0x450bfa('0x286d'),'msg':_0x450bfa('0x2f6')});})[_0x23ab47('0x16df')](function(_0x5c0034){const _0x2ce0b8=_0x23ab47;_0x5c7c6f[_0x2ce0b8('0x1db9')]({'title':_0x5c0034['status']?'API:'+_0x5c0034[_0x2ce0b8('0x11c5')]+_0x2ce0b8('0x16e4')+_0x5c0034[_0x2ce0b8('0x1833')]:_0x2ce0b8('0x25b0'),'msg':_0x5c0034['data']?JSON['stringify'](_0x5c0034[_0x2ce0b8('0x1457')]):_0x5c0034[_0x2ce0b8('0x9b6')]()});});}function _0x48a43a(_0x5881b1,_0x27e4bf){const _0x4372aa=_0x44800b;_0x387257[_0x4372aa('0x2029')]=_0x5881b1,_0x387257['crudPermissions']=typeof _0x27e4bf!==_0x4372aa('0xfad')?_0x27e4bf:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x412b0b[_0x4372aa('0x1b8b')]['getConfigurations']({'id':_0x387257['zendeskAccount']['id'],'sort':_0x4372aa('0x1ac6')})[_0x4372aa('0x1af5')][_0x4372aa('0x17e7')](function(_0x4d28e6){const _0x29b4d1=_0x4372aa;return _0x387257[_0x29b4d1('0xed0')]=_0x4d28e6[_0x29b4d1('0x2319')]?_0x4d28e6['rows']:[],_0x387257['zendeskConfigurations'][_0x29b4d1('0x1f73')]&&_0x387257[_0x29b4d1('0x388')](0x0),_0x412b0b[_0x29b4d1('0xb0a')][_0x29b4d1('0x1c53')]({'nolimit':!![],'sort':_0x29b4d1('0x2aa')})[_0x29b4d1('0x1af5')];})[_0x4372aa('0x17e7')](function(_0x542f01){const _0x11b544=_0x4372aa;_0x387257['variables']=_0x542f01[_0x11b544('0x2319')]?_0x542f01[_0x11b544('0x2319')]:[],_0x387257[_0x11b544('0x214d')]=_0x49cbdd()[_0x11b544('0x8de')](_0x387257[_0x11b544('0xd26')],'id');})[_0x4372aa('0x16df')](function(_0x465e26){const _0x5abef1=_0x4372aa;_0x5c7c6f[_0x5abef1('0x1db9')]({'title':_0x465e26[_0x5abef1('0x11c5')]?'API:'+_0x465e26['status']+_0x5abef1('0x16e4')+_0x465e26[_0x5abef1('0x1833')]:'SYSTEM:GETCONFIGURATION','msg':_0x465e26[_0x5abef1('0x1457')]?JSON['stringify'](_0x465e26[_0x5abef1('0x1457')]):_0x465e26[_0x5abef1('0x9b6')]()});});}function _0x13a7da(_0x24c1b8){const _0x2f13ca=_0x44800b;_0x387257[_0x2f13ca('0x4a6')]=_0x387257[_0x2f13ca('0xed0')][_0x24c1b8],_0x387257[_0x2f13ca('0x2b7')]=_0x24c1b8,_0x412b0b[_0x2f13ca('0x129c')][_0x2f13ca('0x94e')]({'id':_0x387257[_0x2f13ca('0x4a6')]['id']})[_0x2f13ca('0x1af5')][_0x2f13ca('0x17e7')](function(_0x152316){const _0x33ad27=_0x2f13ca;return _0x387257[_0x33ad27('0x1261')]=_0x152316[_0x33ad27('0x2319')]?_0x152316[_0x33ad27('0x2319')]:[],_0x412b0b[_0x33ad27('0x129c')][_0x33ad27('0x24c7')]({'id':_0x387257[_0x33ad27('0x4a6')]['id']})[_0x33ad27('0x1af5')];})[_0x2f13ca('0x17e7')](function(_0x5aba97){const _0x5d55d1=_0x2f13ca;return _0x387257[_0x5d55d1('0x1a2a')]=_0x5aba97[_0x5d55d1('0x2319')]?_0x5aba97['rows']:[],_0x412b0b['intZendeskConfiguration'][_0x5d55d1('0x9a')]({'id':_0x387257[_0x5d55d1('0x4a6')]['id']})[_0x5d55d1('0x1af5')];})['then'](function(_0x2dcbbe){const _0x428486=_0x2f13ca;_0x387257['fields']=_0x2dcbbe[_0x428486('0x2319')]?_0x2dcbbe[_0x428486('0x2319')]:[];})[_0x2f13ca('0x16df')](function(_0xb1e32f){const _0x2a9df0=_0x2f13ca;_0x5c7c6f['error']({'title':_0xb1e32f[_0x2a9df0('0x11c5')]?'API:'+_0xb1e32f['status']+_0x2a9df0('0x16e4')+_0xb1e32f[_0x2a9df0('0x1833')]:_0x2a9df0('0x23be'),'msg':_0xb1e32f['data']?JSON[_0x2a9df0('0x678')](_0xb1e32f[_0x2a9df0('0x1457')]):_0xb1e32f[_0x2a9df0('0x9b6')]()});}),_0x412b0b[_0x2f13ca('0x129c')][_0x2f13ca('0x79a')]({'id':_0x387257[_0x2f13ca('0x4a6')]['id']})[_0x2f13ca('0x1af5')][_0x2f13ca('0x17e7')](function(_0x3f7cf7){const _0x5e5241=_0x2f13ca;_0x387257[_0x5e5241('0x8b4')]=_0x3f7cf7['rows']?_0x49cbdd()[_0x5e5241('0x787')](_0x3f7cf7[_0x5e5241('0x2319')],'id'):[];})[_0x2f13ca('0x16df')](function(_0x226088){const _0x59c90e=_0x2f13ca;_0x5c7c6f[_0x59c90e('0x1db9')]({'title':_0x226088[_0x59c90e('0x11c5')]?_0x59c90e('0x14f7')+_0x226088[_0x59c90e('0x11c5')]+_0x59c90e('0x16e4')+_0x226088['statusText']:_0x59c90e('0x1435'),'msg':_0x226088[_0x59c90e('0x1457')]?JSON[_0x59c90e('0x678')](_0x226088['data']):_0x226088[_0x59c90e('0x9b6')]()});});}function _0x2d2fb8(_0x58c7f8,_0x1d0206){const _0x48cb1c=_0x44800b;_0x3e3b62[_0x48cb1c('0x28e2')]({'controller':_0x48cb1c('0x2026'),'controllerAs':'vm','templateUrl':_0x5c825a,'parent':angular[_0x48cb1c('0x1ce1')](_0x1e93cb[_0x48cb1c('0x13aa')]),'targetEvent':_0x58c7f8,'clickOutsideToClose':!![],'locals':{'zendeskConfiguration':_0x1d0206,'zendeskConfigurations':_0x387257['zendeskConfigurations'],'license':null,'setting':null,'crudPermissions':_0x387257[_0x48cb1c('0x103e')]}})[_0x48cb1c('0x74e')](function(){const _0x2efbbb=_0x48cb1c;_0x387257[_0x2efbbb('0x388')](0x0);});}function _0x4cf00c(_0x3a68cd,_0x225ad1){const _0x4327ef=_0x44800b,_0x43d26f=_0x3e3b62[_0x4327ef('0x1121')]()[_0x4327ef('0x24d3')](_0x4327ef('0xbf6'))[_0x4327ef('0x211f')](_0x4327ef('0xa53')+(_0x225ad1[_0x4327ef('0x2aa')]||_0x4327ef('0x4a6'))+_0x4327ef('0x1d23')+_0x4327ef('0xe9f'))[_0x4327ef('0x2095')]('delete\x20zendeskConfiguration')['targetEvent'](_0x3a68cd)['ok']('OK')[_0x4327ef('0x1d47')](_0x4327ef('0x28a0'));_0x3e3b62[_0x4327ef('0x28e2')](_0x43d26f)['then'](function(){const _0x5929dd=_0x4327ef;_0x412b0b[_0x5929dd('0x129c')][_0x5929dd('0x1da6')]({'id':_0x225ad1['id']})[_0x5929dd('0x1af5')][_0x5929dd('0x17e7')](function(){const _0xb61a8b=_0x5929dd;_0x49cbdd()[_0xb61a8b('0x5f3')](_0x387257['zendeskConfigurations'],{'id':_0x225ad1['id']}),_0x5c7c6f[_0xb61a8b('0x130d')]({'title':_0xb61a8b('0x600'),'msg':_0x225ad1[_0xb61a8b('0x2aa')]?_0x225ad1[_0xb61a8b('0x2aa')]+_0xb61a8b('0x149f'):''});})[_0x5929dd('0x16df')](function(_0x2e15e8){const _0xa6a71d=_0x5929dd;_0x5c7c6f[_0xa6a71d('0x1db9')]({'title':_0x2e15e8['status']?_0xa6a71d('0x14f7')+_0x2e15e8[_0xa6a71d('0x11c5')]+_0xa6a71d('0x16e4')+_0x2e15e8[_0xa6a71d('0x1833')]:_0xa6a71d('0x11b4'),'msg':_0x2e15e8['data']?JSON[_0xa6a71d('0x678')](_0x2e15e8[_0xa6a71d('0x1457')]):_0x2e15e8[_0xa6a71d('0x9b6')]()});})[_0x5929dd('0x74e')](function(){const _0x2d8f50=_0x5929dd;_0x387257[_0x2d8f50('0x388')](0x0);});},function(){const _0x54b88e=_0x4327ef;console[_0x54b88e('0x1d63')](_0x54b88e('0x28a0'));});}_0x387257[_0x44800b('0x95b')]=[],_0x387257[_0x44800b('0x1066')]=_0x3a3774,_0x387257[_0x44800b('0x268a')]=_0x153956,_0x387257[_0x44800b('0x2738')]=_0x126d40;function _0x3a3774(_0x2a5bb0,_0x419ae2){const _0x566cb0=_0x44800b;_0x3e3b62['show']({'controller':'CreateOrEditZendeskAccountItemDialogController','controllerAs':'vm','templateUrl':_0xfddac5,'parent':angular[_0x566cb0('0x1ce1')](_0x1e93cb[_0x566cb0('0x13aa')]),'targetEvent':_0x2a5bb0,'clickOutsideToClose':!![],'locals':{'type':_0x566cb0('0x2179'),'item':_0x419ae2,'items':_0x387257[_0x566cb0('0x1261')],'configuration':_0x387257[_0x566cb0('0x4a6')],'account':_0x387257[_0x566cb0('0x2029')],'license':null,'setting':null,'crudPermissions':_0x387257['crudPermissions']}});}function _0x5644ea(_0x1f1bef){const _0x73605f=_0x44800b;_0x412b0b[_0x73605f('0x1d78')][_0x73605f('0x1da6')]({'id':_0x1f1bef['id']})['$promise'][_0x73605f('0x17e7')](function(){const _0x56113a=_0x73605f;_0x49cbdd()[_0x56113a('0x5f3')](_0x387257[_0x56113a('0x1261')],{'id':_0x1f1bef['id']}),_0x5c7c6f[_0x56113a('0x130d')]({'title':_0x56113a('0x198'),'msg':_0x56113a('0x179c')});})['catch'](function(_0x3661d5){const _0x751747=_0x73605f;_0x5c7c6f[_0x751747('0x1db9')]({'title':_0x3661d5[_0x751747('0x11c5')]?'API:'+_0x3661d5[_0x751747('0x11c5')]+'\x20-\x20'+_0x3661d5[_0x751747('0x1833')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x3661d5[_0x751747('0x1457')]?JSON[_0x751747('0x678')](_0x3661d5[_0x751747('0x1457')]):_0x3661d5[_0x751747('0x9b6')]()});});}function _0x153956(_0xe8cde7,_0x1e6191){const _0x8f810a=_0x44800b,_0x4a3f9f=_0x3e3b62[_0x8f810a('0x1121')]()[_0x8f810a('0x24d3')](_0x8f810a('0x1371'))[_0x8f810a('0x211f')](_0x8f810a('0x694')+_0x8f810a('0xe9f'))[_0x8f810a('0x2095')](_0x8f810a('0x16d1'))[_0x8f810a('0x104f')](_0xe8cde7)['ok']('OK')['cancel'](_0x8f810a('0x28a0'));_0x3e3b62['show'](_0x4a3f9f)[_0x8f810a('0x17e7')](function(){_0x5644ea(_0x1e6191);},function(){const _0xad668a=_0x8f810a;console[_0xad668a('0x1d63')]('CANCEL');});}function _0x126d40(_0x4b3622){const _0x8665a4=_0x44800b,_0x2b71f2=_0x3e3b62['confirm']()['title'](_0x8665a4('0xb0b'))[_0x8665a4('0x211f')](_0x8665a4('0xa53')+_0x387257[_0x8665a4('0x95b')][_0x8665a4('0x1f73')]+_0x8665a4('0x145a')+_0x8665a4('0xe9f'))['ariaLabel']('delete\x20subjects')[_0x8665a4('0x104f')](_0x4b3622)['ok']('OK')['cancel']('CANCEL');_0x3e3b62[_0x8665a4('0x28e2')](_0x2b71f2)[_0x8665a4('0x17e7')](function(){const _0x88d362=_0x8665a4;_0x387257[_0x88d362('0x95b')][_0x88d362('0xccd')](function(_0x594d8c){_0x5644ea(_0x594d8c);}),_0x387257['selectedSubjects']=[];});}_0x387257[_0x44800b('0xb0f')]=[],_0x387257[_0x44800b('0x1ac8')]=_0x542bb1,_0x387257[_0x44800b('0x178')]=_0x3985da,_0x387257[_0x44800b('0xe42')]=_0x45a1d0;function _0x542bb1(_0x2b8ffd,_0x1a6a50){const _0x3e44c4=_0x44800b;_0x3e3b62[_0x3e44c4('0x28e2')]({'controller':_0x3e44c4('0xfe9'),'controllerAs':'vm','templateUrl':_0xfddac5,'parent':angular[_0x3e44c4('0x1ce1')](_0x1e93cb['body']),'targetEvent':_0x2b8ffd,'clickOutsideToClose':!![],'locals':{'type':_0x3e44c4('0x986'),'item':_0x1a6a50,'items':_0x387257[_0x3e44c4('0x1a2a')],'configuration':_0x387257[_0x3e44c4('0x4a6')],'account':_0x387257['zendeskAccount'],'license':null,'setting':null,'crudPermissions':_0x387257[_0x3e44c4('0x103e')]}});}function _0x90d7ba(_0x32bc59){const _0x221d90=_0x44800b;_0x412b0b[_0x221d90('0x1d78')][_0x221d90('0x1da6')]({'id':_0x32bc59['id']})[_0x221d90('0x1af5')][_0x221d90('0x17e7')](function(){const _0x3cb449=_0x221d90;_0x49cbdd()['remove'](_0x387257[_0x3cb449('0x1a2a')],{'id':_0x32bc59['id']}),_0x5c7c6f[_0x3cb449('0x130d')]({'title':_0x3cb449('0x1504'),'msg':_0x3cb449('0x56f')});})['catch'](function(_0x2faf58){const _0x5b91a5=_0x221d90;_0x5c7c6f[_0x5b91a5('0x1db9')]({'title':_0x2faf58[_0x5b91a5('0x11c5')]?_0x5b91a5('0x14f7')+_0x2faf58['status']+'\x20-\x20'+_0x2faf58['statusText']:_0x5b91a5('0x14bd'),'msg':_0x2faf58[_0x5b91a5('0x1457')]?JSON['stringify'](_0x2faf58[_0x5b91a5('0x1457')]):_0x2faf58[_0x5b91a5('0x9b6')]()});});}function _0x3985da(_0x5e3cfe,_0xc48cd8){const _0x9847b3=_0x44800b,_0x54e85c=_0x3e3b62[_0x9847b3('0x1121')]()[_0x9847b3('0x24d3')](_0x9847b3('0x2bb'))[_0x9847b3('0x211f')](_0x9847b3('0x217a')+_0x9847b3('0xe9f'))[_0x9847b3('0x2095')](_0x9847b3('0x1cf7'))['targetEvent'](_0x5e3cfe)['ok']('OK')[_0x9847b3('0x1d47')](_0x9847b3('0x28a0'));_0x3e3b62[_0x9847b3('0x28e2')](_0x54e85c)[_0x9847b3('0x17e7')](function(){_0x90d7ba(_0xc48cd8);},function(){const _0x59c271=_0x9847b3;console[_0x59c271('0x1d63')]('CANCEL');});}function _0x45a1d0(_0x38bd2c){const _0x3c7acb=_0x44800b,_0x2d180a=_0x3e3b62[_0x3c7acb('0x1121')]()[_0x3c7acb('0x24d3')](_0x3c7acb('0x12d4'))[_0x3c7acb('0x211f')](_0x3c7acb('0xa53')+_0x387257[_0x3c7acb('0xb0f')][_0x3c7acb('0x1f73')]+_0x3c7acb('0x145a')+'\x20will\x20be\x20deleted.')[_0x3c7acb('0x2095')](_0x3c7acb('0x1fb1'))[_0x3c7acb('0x104f')](_0x38bd2c)['ok']('OK')[_0x3c7acb('0x1d47')]('CANCEL');_0x3e3b62[_0x3c7acb('0x28e2')](_0x2d180a)[_0x3c7acb('0x17e7')](function(){const _0x24e4ca=_0x3c7acb;_0x387257[_0x24e4ca('0xb0f')][_0x24e4ca('0xccd')](function(_0x4cf2c8){_0x90d7ba(_0x4cf2c8);}),_0x387257[_0x24e4ca('0xb0f')]=[];});}_0x387257[_0x44800b('0xa2e')]=[],_0x387257[_0x44800b('0xc53')]=_0x28d259,_0x387257['deleteFieldConfirm']=_0x237c55,_0x387257[_0x44800b('0xd1b')]=_0x3a0571;function _0x28d259(_0x65288f,_0x231fe3){const _0x5ca5cd=_0x44800b;_0x3e3b62[_0x5ca5cd('0x28e2')]({'controller':_0x5ca5cd('0xfe9'),'controllerAs':'vm','templateUrl':_0xfddac5,'parent':angular['element'](_0x1e93cb['body']),'targetEvent':_0x65288f,'clickOutsideToClose':!![],'locals':{'type':_0x5ca5cd('0x1515'),'item':_0x231fe3,'items':_0x387257[_0x5ca5cd('0x9c9')],'configuration':_0x387257[_0x5ca5cd('0x4a6')],'account':_0x387257[_0x5ca5cd('0x2029')],'license':null,'setting':null,'crudPermissions':_0x387257[_0x5ca5cd('0x103e')]}});}function _0x2cd2df(_0x510fab){const _0x2bad6d=_0x44800b;_0x412b0b[_0x2bad6d('0x1d78')][_0x2bad6d('0x1da6')]({'id':_0x510fab['id']})[_0x2bad6d('0x1af5')][_0x2bad6d('0x17e7')](function(){const _0x4acc72=_0x2bad6d;_0x49cbdd()[_0x4acc72('0x5f3')](_0x387257['fields'],{'id':_0x510fab['id']}),_0x5c7c6f[_0x4acc72('0x130d')]({'title':_0x4acc72('0x1605'),'msg':_0x4acc72('0xbb8')});})[_0x2bad6d('0x16df')](function(_0x44e461){const _0x2e5909=_0x2bad6d;_0x5c7c6f[_0x2e5909('0x1db9')]({'title':_0x44e461[_0x2e5909('0x11c5')]?_0x2e5909('0x14f7')+_0x44e461[_0x2e5909('0x11c5')]+_0x2e5909('0x16e4')+_0x44e461[_0x2e5909('0x1833')]:_0x2e5909('0x14bd'),'msg':_0x44e461[_0x2e5909('0x1457')]?JSON[_0x2e5909('0x678')](_0x44e461[_0x2e5909('0x1457')]):_0x44e461[_0x2e5909('0x9b6')]()});});}function _0x237c55(_0x344310,_0x53698d){const _0x54e776=_0x44800b,_0x260db4=_0x3e3b62[_0x54e776('0x1121')]()[_0x54e776('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')[_0x54e776('0x211f')](_0x54e776('0x23ff')+_0x54e776('0xe9f'))['ariaLabel'](_0x54e776('0x1f01'))['targetEvent'](_0x344310)['ok']('OK')[_0x54e776('0x1d47')](_0x54e776('0x28a0'));_0x3e3b62[_0x54e776('0x28e2')](_0x260db4)[_0x54e776('0x17e7')](function(){_0x2cd2df(_0x53698d);},function(){const _0x9aa04=_0x54e776;console[_0x9aa04('0x1d63')](_0x9aa04('0x28a0'));});}function _0x3a0571(_0x285e56){const _0x755e9c=_0x44800b,_0x52999e=_0x3e3b62[_0x755e9c('0x1121')]()[_0x755e9c('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20fields?')[_0x755e9c('0x211f')](_0x755e9c('0xa53')+_0x387257[_0x755e9c('0xa2e')][_0x755e9c('0x1f73')]+_0x755e9c('0x145a')+_0x755e9c('0xe9f'))[_0x755e9c('0x2095')]('delete\x20fields')[_0x755e9c('0x104f')](_0x285e56)['ok']('OK')['cancel']('CANCEL');_0x3e3b62[_0x755e9c('0x28e2')](_0x52999e)['then'](function(){const _0x506522=_0x755e9c;_0x387257[_0x506522('0xa2e')]['forEach'](function(_0x205355){_0x2cd2df(_0x205355);}),_0x387257[_0x506522('0xa2e')]=[];});}}const _0x1d0ad8=_0x231dbc;_0x5b8e63['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0xed0'),'zendeskConfiguration',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x5b8e63(_0x42b038,_0x517d72,_0x5c024b,_0x19dfe7,_0x4283ba,_0x1a7d89,_0x5672a1,_0x473c1c,_0x9196b8,_0x5571ca,_0xe0dba9,_0x4552bd,_0x148c21,_0x542146){const _0x1209a4=_0x4376d8,_0x4b72c2=this;_0x4b72c2[_0x1209a4('0x197c')]=_0xe0dba9[_0x1209a4('0x2831')](),_0x4b72c2[_0x1209a4('0x73e')]=[],_0x4b72c2[_0x1209a4('0x1aeb')]=_0x148c21,_0x4b72c2['license']=_0x4552bd,_0x4b72c2['crudPermissions']=_0x542146,_0x4b72c2['hasModulePermissions']={},_0x4b72c2['passwordPattern']=_0x4b72c2[_0x1209a4('0x1aeb')]&&_0x4b72c2['setting'][_0x1209a4('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4b72c2['title']=_0x1209a4('0x2338'),_0x4b72c2[_0x1209a4('0x4a6')]=angular['copy'](_0x9196b8),_0x4b72c2['zendeskConfigurations']=_0x473c1c,_0x4b72c2[_0x1209a4('0x1835')]=![];!_0x4b72c2[_0x1209a4('0x4a6')]&&(_0x4b72c2[_0x1209a4('0x4a6')]={'channel':_0x1209a4('0x1fe1'),'type':_0x1209a4('0x1e77')},_0x4b72c2[_0x1209a4('0x24d3')]='INTEGRATIONS.NEW_ZENDESKCONFIGURATION',_0x4b72c2[_0x1209a4('0x1835')]=!![]);_0x4b72c2[_0x1209a4('0x1dfc')]=_0x3bb5f0,_0x4b72c2[_0x1209a4('0x4a5')]=_0x52daa8,_0x4b72c2[_0x1209a4('0x39f')]=_0x106dfa,_0x4b72c2[_0x1209a4('0x1300')]=_0x1e759c,_0x4b72c2[_0x1209a4('0x136e')]=_0x248595;function _0x3bb5f0(){const _0x12972c=_0x1209a4;_0x4b72c2[_0x12972c('0x73e')]=[],_0x5571ca[_0x12972c('0x1b8b')][_0x12972c('0x5e0')]({'id':_0x517d72[_0x12972c('0x16fb')]['id']},_0x4b72c2[_0x12972c('0x4a6')])[_0x12972c('0x1af5')]['then'](function(_0x200599){const _0x1756f4=_0x12972c;_0x4b72c2[_0x1756f4('0xed0')][_0x1756f4('0x1893')](_0x200599[_0x1756f4('0x16b2')]()),_0x5672a1[_0x1756f4('0x130d')]({'title':_0x1756f4('0x19c3'),'msg':_0x4b72c2[_0x1756f4('0x4a6')][_0x1756f4('0x2aa')]?_0x4b72c2['zendeskConfiguration'][_0x1756f4('0x2aa')]+_0x1756f4('0x15a'):''}),_0x248595(_0x200599);})[_0x12972c('0x16df')](function(_0x278fcd){const _0x38d26c=_0x12972c;if(_0x278fcd[_0x38d26c('0x1457')]&&_0x278fcd[_0x38d26c('0x1457')][_0x38d26c('0x73e')]&&_0x278fcd['data'][_0x38d26c('0x73e')]['length']){_0x4b72c2['errors']=_0x278fcd[_0x38d26c('0x1457')]['errors']||[{'message':_0x278fcd[_0x38d26c('0x9b6')](),'type':_0x38d26c('0x18fc')}];for(let _0x3139cd=0x0;_0x3139cd<_0x278fcd[_0x38d26c('0x1457')][_0x38d26c('0x73e')][_0x38d26c('0x1f73')];_0x3139cd+=0x1){_0x5672a1[_0x38d26c('0x1db9')]({'title':_0x278fcd['data']['errors'][_0x3139cd][_0x38d26c('0x412')],'msg':_0x278fcd[_0x38d26c('0x1457')][_0x38d26c('0x73e')][_0x3139cd]['message']});}}else _0x5672a1[_0x38d26c('0x1db9')]({'title':_0x278fcd['status']?'API:'+_0x278fcd[_0x38d26c('0x11c5')]+_0x38d26c('0x16e4')+_0x278fcd[_0x38d26c('0x1833')]:_0x38d26c('0x18fc'),'msg':_0x278fcd['data']?JSON[_0x38d26c('0x678')](_0x278fcd[_0x38d26c('0x1457')]['message']):_0x278fcd[_0x38d26c('0x9b6')]()});});}function _0x52daa8(){const _0x396d3c=_0x1209a4;_0x4b72c2[_0x396d3c('0x73e')]=[],_0x5571ca[_0x396d3c('0x129c')][_0x396d3c('0x27ba')]({'id':_0x4b72c2['zendeskConfiguration']['id']},_0x4b72c2['zendeskConfiguration'])['$promise']['then'](function(_0x2b9625){const _0x1734c6=_0x396d3c,_0x56c5a2=_0x49cbdd()[_0x1734c6('0xe8e')](_0x4b72c2[_0x1734c6('0xed0')],{'id':_0x2b9625['id']});_0x56c5a2&&_0x49cbdd()[_0x1734c6('0x1ced')](_0x56c5a2,_0x49cbdd()[_0x1734c6('0x230a')](_0x2b9625[_0x1734c6('0x16b2')](),_0x49cbdd()[_0x1734c6('0x1c0f')](_0x56c5a2))),_0x5672a1[_0x1734c6('0x130d')]({'title':_0x1734c6('0x2246'),'msg':_0x4b72c2[_0x1734c6('0x4a6')]['name']?_0x4b72c2[_0x1734c6('0x4a6')][_0x1734c6('0x2aa')]+_0x1734c6('0x15ca'):''}),_0x248595(_0x2b9625);})[_0x396d3c('0x16df')](function(_0x19b4b7){const _0x5cd25a=_0x396d3c;if(_0x19b4b7[_0x5cd25a('0x1457')]&&_0x19b4b7[_0x5cd25a('0x1457')][_0x5cd25a('0x73e')]&&_0x19b4b7[_0x5cd25a('0x1457')][_0x5cd25a('0x73e')][_0x5cd25a('0x1f73')]){_0x4b72c2['errors']=_0x19b4b7[_0x5cd25a('0x1457')][_0x5cd25a('0x73e')]||[{'message':_0x19b4b7[_0x5cd25a('0x9b6')](),'type':_0x5cd25a('0x20c1')}];for(let _0x56676e=0x0;_0x56676e<_0x19b4b7[_0x5cd25a('0x1457')]['errors']['length'];_0x56676e++){_0x5672a1[_0x5cd25a('0x1db9')]({'title':_0x19b4b7[_0x5cd25a('0x1457')][_0x5cd25a('0x73e')][_0x56676e][_0x5cd25a('0x412')],'msg':_0x19b4b7[_0x5cd25a('0x1457')][_0x5cd25a('0x73e')][_0x56676e][_0x5cd25a('0x1603')]});}}else _0x5672a1['error']({'title':_0x19b4b7['status']?_0x5cd25a('0x14f7')+_0x19b4b7['status']+_0x5cd25a('0x16e4')+_0x19b4b7[_0x5cd25a('0x1833')]:_0x5cd25a('0x20c1'),'msg':_0x19b4b7['data']?JSON[_0x5cd25a('0x678')](_0x19b4b7[_0x5cd25a('0x1457')]['message']):_0x19b4b7[_0x5cd25a('0x9b6')]()});});}function _0x106dfa(_0x4f27c3){const _0x546120=_0x1209a4;_0x4b72c2['errors']=[];const _0x49d23d=_0x19dfe7[_0x546120('0x1121')]()[_0x546120('0x24d3')](_0x546120('0x530'))['content']('The\x20zendeskConfiguration\x20will\x20be\x20deleted.')['ariaLabel'](_0x546120('0x19ef'))['ok'](_0x546120('0x304'))[_0x546120('0x1d47')](_0x546120('0x1b70'))[_0x546120('0x104f')](_0x4f27c3);_0x19dfe7[_0x546120('0x28e2')](_0x49d23d)['then'](function(){const _0x161ce1=_0x546120;_0x5571ca['intZendeskConfiguration'][_0x161ce1('0x1da6')]({'id':_0x4b72c2['zendeskConfiguration']['id']})[_0x161ce1('0x1af5')][_0x161ce1('0x17e7')](function(){const _0x3cee9f=_0x161ce1;_0x49cbdd()['remove'](_0x4b72c2[_0x3cee9f('0xed0')],{'id':_0x4b72c2[_0x3cee9f('0x4a6')]['id']}),_0x5672a1[_0x3cee9f('0x130d')]({'title':'ZendeskConfiguration\x20properly\x20deleted!','msg':(_0x4b72c2['zendeskConfiguration'][_0x3cee9f('0x2aa')]||_0x3cee9f('0x4a6'))+'\x20has\x20been\x20deleted!'}),_0x248595(_0x4b72c2[_0x3cee9f('0x4a6')]);})['catch'](function(_0x1be9ad){const _0x2f5971=_0x161ce1;if(_0x1be9ad[_0x2f5971('0x1457')]&&_0x1be9ad[_0x2f5971('0x1457')][_0x2f5971('0x73e')]&&_0x1be9ad[_0x2f5971('0x1457')][_0x2f5971('0x73e')]['length']){_0x4b72c2[_0x2f5971('0x73e')]=_0x1be9ad[_0x2f5971('0x1457')][_0x2f5971('0x73e')]||[{'message':_0x1be9ad[_0x2f5971('0x9b6')](),'type':'api.intZendeskConfiguration.delete'}];for(let _0x33d441=0x0;_0x33d441<_0x1be9ad[_0x2f5971('0x1457')][_0x2f5971('0x73e')][_0x2f5971('0x1f73')];_0x33d441++){_0x5672a1['error']({'title':_0x1be9ad[_0x2f5971('0x1457')][_0x2f5971('0x73e')][_0x33d441][_0x2f5971('0x412')],'msg':_0x1be9ad[_0x2f5971('0x1457')][_0x2f5971('0x73e')][_0x33d441][_0x2f5971('0x1603')]});}}else _0x5672a1[_0x2f5971('0x1db9')]({'title':_0x1be9ad[_0x2f5971('0x11c5')]?_0x2f5971('0x14f7')+_0x1be9ad['status']+'\x20-\x20'+_0x1be9ad[_0x2f5971('0x1833')]:_0x2f5971('0x491'),'msg':_0x1be9ad[_0x2f5971('0x1457')]?JSON[_0x2f5971('0x678')](_0x1be9ad[_0x2f5971('0x1457')][_0x2f5971('0x1603')]):_0x1be9ad[_0x2f5971('0x1603')]||_0x1be9ad['toString']()});});},function(){});}function _0x1e759c(_0xa00022){return _0xa00022===null?undefined:new Date(_0xa00022);}function _0x248595(_0x2a9740){const _0x1e3926=_0x1209a4;_0x19dfe7[_0x1e3926('0x212a')](_0x2a9740);}}const _0x2c27eb=_0x5b8e63,_0xc7caef=_0x4cf2bc['p']+_0x4376d8('0x2574');_0x10069a['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x929'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x10069a(_0x5ba793,_0x526937,_0xf90178,_0x32185c,_0x1b82de,_0x6ccfbb,_0x28f003,_0x1fd034,_0x2d6f3c,_0x2f4a3b,_0x8dabd7,_0x511c21,_0x366e20,_0x3de9af,_0xe7918c,_0x349940,_0x5d6e18){const _0x20e251=_0x4376d8,_0x15d079=this;_0x15d079[_0x20e251('0x1d11')]=_0x349940,_0x15d079[_0x20e251('0x1aeb')]=_0x5d6e18,_0x15d079['currentUser']=_0xe7918c[_0x20e251('0x2831')](),_0x15d079[_0x20e251('0x929')]=_0x2d6f3c||{'count':0x0,'rows':[]},_0x15d079[_0x20e251('0xdeb')]=_0x2f4a3b,_0x15d079[_0x20e251('0x383')]=_0x8dabd7&&_0x8dabd7[_0x20e251('0x335')]==0x1?_0x8dabd7[_0x20e251('0x2319')][0x0]:null,_0x15d079['crudPermissions']=_0xe7918c['parseCrudPermissions'](_0x15d079[_0x20e251('0x383')]?_0x15d079[_0x20e251('0x383')][_0x20e251('0x103e')]:null),_0x15d079['table']=_0x20e251('0x929'),_0x15d079[_0x20e251('0x26a1')]='',_0x15d079['listOrderAsc']=null,_0x15d079[_0x20e251('0x2132')]=[],_0x15d079[_0x20e251('0x826')]={'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,authType,password,token,serverUrl,description','limit':0xa,'page':0x1},_0x15d079[_0x20e251('0xc41')]=_0x49cbdd()[_0x20e251('0x8de')]([{'option':_0x20e251('0x5d0'),'value':_0x20e251('0x96c')},{'option':_0x20e251('0x639'),'value':_0x20e251('0x6f5')}],function(_0x1dd505){const _0x46db8d=_0x20e251;return _0x49cbdd()[_0x46db8d('0x737')](_0x1dd505[_0x46db8d('0x175b')],new RegExp('\x27','g'),'');}),_0x15d079['arrayauthType']=_0x49cbdd()[_0x20e251('0x8de')]([{'option':_0x20e251('0x21ea'),'value':_0x20e251('0x13d9')},{'option':_0x20e251('0x856'),'value':_0x20e251('0x1c4d')}],function(_0x37ea04){const _0x507952=_0x20e251;return _0x49cbdd()[_0x507952('0x737')](_0x37ea04[_0x507952('0x175b')],new RegExp('\x27','g'),'');}),_0x15d079[_0x20e251('0xcd4')]=_0x1e06c1,_0x15d079[_0x20e251('0xf3a')]=_0x4692d6,_0x15d079[_0x20e251('0xbf4')]=_0x8330ff,_0x15d079[_0x20e251('0x130d')]=_0x5ad415,_0x15d079[_0x20e251('0x286b')]=_0x5d1540,_0x15d079[_0x20e251('0xc08')]=_0x1a83bf,_0x15d079[_0x20e251('0x1b6f')]=_0x3005f8,_0x15d079[_0x20e251('0x2815')]=_0x3c8ca6,_0x15d079[_0x20e251('0x27f3')]=_0x229b7d,_0x15d079['deselectZendeskAccounts']=_0x351707,_0x15d079[_0x20e251('0x2299')]=_0x4e7133;function _0x1e06c1(_0x4cdbfe){const _0x4a57eb=_0x20e251;_0xf90178['go'](_0x4a57eb('0x132a'),{'id':_0x4cdbfe['id'],'zendeskAccount':_0x4cdbfe,'crudPermissions':_0x15d079[_0x4a57eb('0x103e')]});}function _0x4692d6(_0x4ac620){const _0x2fdca1=_0x20e251;return _0x511c21[_0x2fdca1('0x1b8b')][_0x2fdca1('0x9a')]({'id':_0x4ac620['id'],'test':!![]})[_0x2fdca1('0x1af5')][_0x2fdca1('0x17e7')](function(){const _0x6150ea=_0x2fdca1;_0x3de9af['success']({'title':_0x6150ea('0x990'),'msg':_0x6150ea('0x120d')});})[_0x2fdca1('0x16df')](function(_0x5b3ea4){const _0xb0ec08=_0x2fdca1;_0x3de9af[_0xb0ec08('0x1db9')]({'title':_0xb0ec08('0x990'),'msg':_0x5b3ea4['data']?_0x5b3ea4['data']['message']?_0x5b3ea4[_0xb0ec08('0x1457')][_0xb0ec08('0x1603')]:JSON[_0xb0ec08('0x678')](_0x5b3ea4[_0xb0ec08('0x1457')]):_0x5b3ea4[_0xb0ec08('0x9b6')]()});});}function _0x8330ff(_0x597654,_0x35fc7b){const _0x1fda9d=_0x20e251,_0x579921=_0x1b82de[_0x1fda9d('0x1121')]()[_0x1fda9d('0x24d3')](_0x1fda9d('0x5e1')+_0x49cbdd()[_0x1fda9d('0x1c98')]('zendeskAccount')+'?')['htmlContent'](_0x1fda9d('0xa53')+(_0x597654[_0x1fda9d('0x2aa')]||_0x1fda9d('0x2029'))+_0x1fda9d('0x1d23')+_0x1fda9d('0xe9f'))[_0x1fda9d('0x2095')](_0x1fda9d('0x2286'))['targetEvent'](_0x35fc7b)['ok']('OK')['cancel']('CANCEL');_0x1b82de[_0x1fda9d('0x28e2')](_0x579921)[_0x1fda9d('0x17e7')](function(){_0x3005f8(_0x597654);},function(){console['log']('CANCEL');});}let _0x4bb6bb=!![],_0x5d5b7d=0x1;_0x5ba793[_0x20e251('0x620')](_0x20e251('0x3ed'),function(_0x2b7cb4,_0x40c754){const _0x2e27a9=_0x20e251;_0x4bb6bb?_0x28f003(function(){_0x4bb6bb=![];}):(!_0x40c754&&(_0x5d5b7d=_0x15d079['query'][_0x2e27a9('0x115a')]),_0x2b7cb4!==_0x40c754&&(_0x15d079[_0x2e27a9('0x826')]['page']=0x1),!_0x2b7cb4&&(_0x15d079['query']['page']=_0x5d5b7d),_0x15d079['getZendeskAccounts']());});function _0x5ad415(_0x48f41c){_0x15d079['zendeskAccounts']=_0x48f41c||{'count':0x0,'rows':[]};}function _0x5d1540(){const _0x1dda86=_0x20e251;_0x15d079[_0x1dda86('0x826')][_0x1dda86('0xf19')]=(_0x15d079[_0x1dda86('0x826')][_0x1dda86('0x115a')]-0x1)*_0x15d079[_0x1dda86('0x826')]['limit'],_0xe7918c[_0x1dda86('0x1ba2')](_0x1dda86('0x20bf'))?_0x15d079[_0x1dda86('0x1691')]=_0x511c21['intZendeskAccount'][_0x1dda86('0x1c53')](_0x15d079['query'],_0x5ad415)[_0x1dda86('0x1af5')]:(_0x15d079[_0x1dda86('0x826')]['id']=_0x15d079[_0x1dda86('0xdeb')]['id'],_0x15d079[_0x1dda86('0x826')][_0x1dda86('0x16f8')]=_0x1dda86('0x5f5'),_0x15d079[_0x1dda86('0x1691')]=_0x511c21['userProfile'][_0x1dda86('0x2447')](_0x15d079['query'],_0x5ad415)[_0x1dda86('0x1af5')]);}function _0x1a83bf(_0xc9c5d8,_0x1d61c3){const _0x27f6c4=_0x20e251;_0x1b82de[_0x27f6c4('0x28e2')]({'controller':_0x27f6c4('0x252b'),'controllerAs':'vm','templateUrl':_0xc7caef,'parent':angular[_0x27f6c4('0x1ce1')](_0x6ccfbb[_0x27f6c4('0x13aa')]),'targetEvent':_0xc9c5d8,'clickOutsideToClose':!![],'locals':{'zendeskAccount':_0x1d61c3,'zendeskAccounts':_0x15d079[_0x27f6c4('0x929')][_0x27f6c4('0x2319')],'license':_0x15d079[_0x27f6c4('0x1d11')],'setting':_0x15d079[_0x27f6c4('0x1aeb')],'crudPermissions':_0x15d079[_0x27f6c4('0x103e')]}});}function _0x3005f8(_0x3eaf29){const _0x401da2=_0x20e251;_0x511c21[_0x401da2('0x1b8b')][_0x401da2('0x1da6')]({'id':_0x3eaf29['id']})[_0x401da2('0x1af5')]['then'](function(){const _0x9e2df9=_0x401da2;_0x49cbdd()[_0x9e2df9('0x5f3')](_0x15d079[_0x9e2df9('0x929')]['rows'],{'id':_0x3eaf29['id']}),_0x15d079['zendeskAccounts'][_0x9e2df9('0x335')]-=0x1,!_0x15d079[_0x9e2df9('0x929')][_0x9e2df9('0x2319')][_0x9e2df9('0x1f73')]&&_0x15d079['getZendeskAccounts'](),_0x3de9af[_0x9e2df9('0x130d')]({'title':_0x49cbdd()[_0x9e2df9('0x1c98')]('ZendeskAccount')+'\x20deleted!','msg':_0x3eaf29[_0x9e2df9('0x2aa')]?_0x3eaf29['name']+_0x9e2df9('0x149f'):''});})[_0x401da2('0x16df')](function(_0x16b774){const _0x130f9b=_0x401da2;if(_0x16b774['data']&&_0x16b774['data'][_0x130f9b('0x73e')]&&_0x16b774[_0x130f9b('0x1457')]['errors']['length']){_0x15d079[_0x130f9b('0x73e')]=_0x16b774['data'][_0x130f9b('0x73e')]||[{'message':_0x16b774['toString'](),'type':_0x130f9b('0xf5d')}];for(let _0x2a0efd=0x0;_0x2a0efd<_0x16b774[_0x130f9b('0x1457')]['errors'][_0x130f9b('0x1f73')];_0x2a0efd++){_0x3de9af[_0x130f9b('0x1db9')]({'title':_0x16b774[_0x130f9b('0x1457')][_0x130f9b('0x73e')][_0x2a0efd][_0x130f9b('0x412')],'msg':_0x16b774['data'][_0x130f9b('0x73e')][_0x2a0efd]['message']});}}else _0x3de9af[_0x130f9b('0x1db9')]({'title':_0x16b774[_0x130f9b('0x11c5')]?'API:'+_0x16b774[_0x130f9b('0x11c5')]+_0x130f9b('0x16e4')+_0x16b774[_0x130f9b('0x1833')]:_0x130f9b('0xf5d'),'msg':_0x16b774[_0x130f9b('0x1457')]?JSON[_0x130f9b('0x678')](_0x16b774[_0x130f9b('0x1457')]['message']):_0x16b774[_0x130f9b('0x1603')]||_0x16b774['toString']()});});}function _0x3c8ca6(){const _0x56ce80=_0x20e251,_0x2e5583=angular[_0x56ce80('0x14e5')](_0x15d079[_0x56ce80('0x2132')]);return _0x15d079[_0x56ce80('0x2132')]=[],_0x2e5583;}function _0x229b7d(_0x5ea9b6){const _0x20bfb2=_0x20e251,_0x37c7db=_0x1b82de[_0x20bfb2('0x1121')]()[_0x20bfb2('0x24d3')](_0x20bfb2('0x59c'))[_0x20bfb2('0x211f')](_0x20bfb2('0xa53')+_0x15d079['selectedZendeskAccounts'][_0x20bfb2('0x1f73')]+_0x20bfb2('0x145a')+_0x20bfb2('0xe9f'))[_0x20bfb2('0x2095')](_0x20bfb2('0x228d'))[_0x20bfb2('0x104f')](_0x5ea9b6)['ok']('OK')[_0x20bfb2('0x1d47')](_0x20bfb2('0x28a0'));_0x1b82de[_0x20bfb2('0x28e2')](_0x37c7db)[_0x20bfb2('0x17e7')](function(){const _0x47c345=_0x20bfb2;_0x15d079[_0x47c345('0x2132')][_0x47c345('0xccd')](function(_0x31cb36){_0x3005f8(_0x31cb36);}),_0x15d079[_0x47c345('0x2132')]=[];});}function _0x351707(){const _0x355976=_0x20e251;_0x15d079[_0x355976('0x2132')]=[];}function _0x4e7133(){const _0x5e2fae=_0x20e251;_0x15d079[_0x5e2fae('0x2132')]=_0x15d079['zendeskAccounts'][_0x5e2fae('0x2319')];}}const _0x4660b0=_0x10069a;_0x13507a[_0x4376d8('0x1b9c')]=['$scope','$state',_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x27c6'),_0x4376d8('0x1a15'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x13507a(_0x46c514,_0x81abaa,_0x809f28,_0xd7dffa,_0x3ee3a4,_0x1b3922,_0x20354a,_0x1feda7,_0x1a1052,_0x40f478,_0xc8698b,_0x275379,_0x345598,_0x4bb9dd){const _0x3b7588=_0x4376d8,_0x5c671f=this;_0x5c671f['currentUser']=_0xc8698b[_0x3b7588('0x2831')](),_0x5c671f[_0x3b7588('0x73e')]=[],_0x5c671f[_0x3b7588('0x1aeb')]=_0x345598,_0x5c671f[_0x3b7588('0x1d11')]=_0x275379,_0x5c671f[_0x3b7588('0x103e')]=_0x4bb9dd,_0x5c671f[_0x3b7588('0x6ee')]={},_0x5c671f[_0x3b7588('0x1572')]=_0x5c671f[_0x3b7588('0x1aeb')]&&_0x5c671f[_0x3b7588('0x1aeb')][_0x3b7588('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5c671f[_0x3b7588('0x24d3')]=_0x3b7588('0xbac'),_0x5c671f[_0x3b7588('0x1a15')]=angular[_0x3b7588('0x14e5')](_0x1a1052),_0x5c671f[_0x3b7588('0x27c6')]=_0x1feda7,_0x5c671f['newZohoAccount']=![];!_0x5c671f['zohoAccount']&&(_0x5c671f[_0x3b7588('0x1a15')]={'host':_0x3b7588('0x215a'),'zone':'EU','serverUrl':_0x809f28[_0x3b7588('0x14fe')]()+_0x3b7588('0x14')+_0x809f28[_0x3b7588('0x108')]()+(_0x809f28[_0x3b7588('0x2442')]()?':'+_0x809f28[_0x3b7588('0x2442')]():'')},_0x5c671f[_0x3b7588('0x24d3')]=_0x3b7588('0x2657'),_0x5c671f[_0x3b7588('0x1751')]=!![]);_0x5c671f[_0x3b7588('0x19f')]=_0x133cdf,_0x5c671f[_0x3b7588('0x12e2')]=_0x25cb78,_0x5c671f[_0x3b7588('0x4ac')]=_0x4830c5,_0x5c671f[_0x3b7588('0x1300')]=_0x20fb29,_0x5c671f[_0x3b7588('0x136e')]=_0x5831c5;function _0x133cdf(){const _0x2d4aa7=_0x3b7588;_0x5c671f[_0x2d4aa7('0x73e')]=[],_0x40f478[_0x2d4aa7('0x279a')]['save'](_0x5c671f[_0x2d4aa7('0x1a15')])['$promise']['then'](function(_0x374343){const _0x5b7d09=_0x2d4aa7;_0x5c671f['zohoAccounts']['unshift'](_0x374343['toJSON']()),_0x20354a['success']({'title':_0x5b7d09('0x279d'),'msg':_0x5c671f[_0x5b7d09('0x1a15')]['name']?_0x5c671f[_0x5b7d09('0x1a15')][_0x5b7d09('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x5831c5(_0x374343);})[_0x2d4aa7('0x16df')](function(_0x7a8da0){const _0x1c3964=_0x2d4aa7;if(_0x7a8da0[_0x1c3964('0x1457')]&&_0x7a8da0['data'][_0x1c3964('0x73e')]&&_0x7a8da0['data']['errors']['length']){_0x5c671f[_0x1c3964('0x73e')]=_0x7a8da0[_0x1c3964('0x1457')][_0x1c3964('0x73e')]||[{'message':_0x7a8da0[_0x1c3964('0x9b6')](),'type':_0x1c3964('0x62b')}];for(let _0x36d6f6=0x0;_0x36d6f6<_0x7a8da0[_0x1c3964('0x1457')][_0x1c3964('0x73e')][_0x1c3964('0x1f73')];_0x36d6f6+=0x1){_0x20354a[_0x1c3964('0x1db9')]({'title':_0x7a8da0['data'][_0x1c3964('0x73e')][_0x36d6f6]['type'],'msg':_0x7a8da0[_0x1c3964('0x1457')][_0x1c3964('0x73e')][_0x36d6f6][_0x1c3964('0x1603')]});}}else _0x20354a[_0x1c3964('0x1db9')]({'title':_0x7a8da0[_0x1c3964('0x11c5')]?_0x1c3964('0x14f7')+_0x7a8da0['status']+_0x1c3964('0x16e4')+_0x7a8da0['statusText']:_0x1c3964('0x62b'),'msg':_0x7a8da0[_0x1c3964('0x1457')]?JSON[_0x1c3964('0x678')](_0x7a8da0[_0x1c3964('0x1457')][_0x1c3964('0x1603')]):_0x7a8da0[_0x1c3964('0x9b6')]()});});}function _0x25cb78(){const _0x3ef0e4=_0x3b7588;_0x5c671f['errors']=[],_0x40f478[_0x3ef0e4('0x279a')][_0x3ef0e4('0x27ba')]({'id':_0x5c671f['zohoAccount']['id']},_0x5c671f[_0x3ef0e4('0x1a15')])[_0x3ef0e4('0x1af5')]['then'](function(_0x2ca3eb){const _0x2fbf62=_0x3ef0e4,_0x573872=_0x49cbdd()[_0x2fbf62('0xe8e')](_0x5c671f['zohoAccounts'],{'id':_0x2ca3eb['id']});_0x573872&&_0x49cbdd()[_0x2fbf62('0x1ced')](_0x573872,_0x49cbdd()[_0x2fbf62('0x230a')](_0x2ca3eb[_0x2fbf62('0x16b2')](),_0x49cbdd()['keys'](_0x573872))),_0x20354a[_0x2fbf62('0x130d')]({'title':_0x2fbf62('0x1ec0'),'msg':_0x5c671f['zohoAccount'][_0x2fbf62('0x2aa')]?_0x5c671f['zohoAccount']['name']+_0x2fbf62('0x15ca'):''}),_0x5831c5(_0x2ca3eb);})[_0x3ef0e4('0x16df')](function(_0x1c9dc9){const _0x5af65c=_0x3ef0e4;if(_0x1c9dc9[_0x5af65c('0x1457')]&&_0x1c9dc9[_0x5af65c('0x1457')]['errors']&&_0x1c9dc9[_0x5af65c('0x1457')][_0x5af65c('0x73e')][_0x5af65c('0x1f73')]){_0x5c671f[_0x5af65c('0x73e')]=_0x1c9dc9[_0x5af65c('0x1457')][_0x5af65c('0x73e')]||[{'message':_0x1c9dc9[_0x5af65c('0x9b6')](),'type':_0x5af65c('0x26db')}];for(let _0x198e5d=0x0;_0x198e5d<_0x1c9dc9['data'][_0x5af65c('0x73e')][_0x5af65c('0x1f73')];_0x198e5d++){_0x20354a[_0x5af65c('0x1db9')]({'title':_0x1c9dc9[_0x5af65c('0x1457')][_0x5af65c('0x73e')][_0x198e5d]['type'],'msg':_0x1c9dc9[_0x5af65c('0x1457')][_0x5af65c('0x73e')][_0x198e5d][_0x5af65c('0x1603')]});}}else _0x20354a[_0x5af65c('0x1db9')]({'title':_0x1c9dc9[_0x5af65c('0x11c5')]?_0x5af65c('0x14f7')+_0x1c9dc9[_0x5af65c('0x11c5')]+_0x5af65c('0x16e4')+_0x1c9dc9[_0x5af65c('0x1833')]:_0x5af65c('0x26db'),'msg':_0x1c9dc9['data']?JSON['stringify'](_0x1c9dc9[_0x5af65c('0x1457')][_0x5af65c('0x1603')]):_0x1c9dc9[_0x5af65c('0x9b6')]()});});}function _0x4830c5(_0x695d3a){const _0x3143e2=_0x3b7588;_0x5c671f[_0x3143e2('0x73e')]=[];const _0x37a4d0=_0xd7dffa[_0x3143e2('0x1121')]()['title'](_0x3143e2('0x530'))['content']('The\x20zohoAccount\x20will\x20be\x20deleted.')['ariaLabel'](_0x3143e2('0x58f'))['ok'](_0x3143e2('0x304'))[_0x3143e2('0x1d47')]('Cancel')['targetEvent'](_0x695d3a);_0xd7dffa['show'](_0x37a4d0)['then'](function(){const _0x127136=_0x3143e2;_0x40f478[_0x127136('0x279a')]['delete']({'id':_0x5c671f[_0x127136('0x1a15')]['id']})['$promise'][_0x127136('0x17e7')](function(){const _0x1fc1a3=_0x127136;_0x49cbdd()[_0x1fc1a3('0x5f3')](_0x5c671f[_0x1fc1a3('0x27c6')],{'id':_0x5c671f[_0x1fc1a3('0x1a15')]['id']}),_0x20354a[_0x1fc1a3('0x130d')]({'title':_0x1fc1a3('0x2171'),'msg':(_0x5c671f[_0x1fc1a3('0x1a15')][_0x1fc1a3('0x2aa')]||_0x1fc1a3('0x1a15'))+'\x20has\x20been\x20deleted!'}),_0x5831c5(_0x5c671f['zohoAccount']);})[_0x127136('0x16df')](function(_0x466b1c){const _0x88ecd7=_0x127136;if(_0x466b1c['data']&&_0x466b1c[_0x88ecd7('0x1457')][_0x88ecd7('0x73e')]&&_0x466b1c['data'][_0x88ecd7('0x73e')][_0x88ecd7('0x1f73')]){_0x5c671f[_0x88ecd7('0x73e')]=_0x466b1c[_0x88ecd7('0x1457')][_0x88ecd7('0x73e')]||[{'message':_0x466b1c[_0x88ecd7('0x9b6')](),'type':_0x88ecd7('0x1be')}];for(let _0x5c3e8d=0x0;_0x5c3e8d<_0x466b1c[_0x88ecd7('0x1457')][_0x88ecd7('0x73e')][_0x88ecd7('0x1f73')];_0x5c3e8d++){_0x20354a[_0x88ecd7('0x1db9')]({'title':_0x466b1c['data'][_0x88ecd7('0x73e')][_0x5c3e8d]['type'],'msg':_0x466b1c[_0x88ecd7('0x1457')][_0x88ecd7('0x73e')][_0x5c3e8d][_0x88ecd7('0x1603')]});}}else _0x20354a[_0x88ecd7('0x1db9')]({'title':_0x466b1c[_0x88ecd7('0x11c5')]?_0x88ecd7('0x14f7')+_0x466b1c[_0x88ecd7('0x11c5')]+'\x20-\x20'+_0x466b1c[_0x88ecd7('0x1833')]:_0x88ecd7('0x1be'),'msg':_0x466b1c[_0x88ecd7('0x1457')]?JSON[_0x88ecd7('0x678')](_0x466b1c[_0x88ecd7('0x1457')][_0x88ecd7('0x1603')]):_0x466b1c[_0x88ecd7('0x1603')]||_0x466b1c['toString']()});});},function(){});}function _0x20fb29(_0x397e0a){return _0x397e0a===null?undefined:new Date(_0x397e0a);}function _0x5831c5(_0x4fadd1){const _0x5a0d24=_0x3b7588;_0xd7dffa[_0x5a0d24('0x212a')](_0x4fadd1);}}const _0x2aecac=_0x13507a,_0xa143af=_0x4cf2bc['p']+_0x4376d8('0x146'),_0x21bc7d=_0x4cf2bc['p']+_0x4376d8('0x14ad');_0x1cb822[_0x4376d8('0x1b9c')]=['$mdDialog','$document',_0x4376d8('0x212e'),'toasty','Auth'];function _0x1cb822(_0x214ae1,_0x538cf6,_0x4861f0,_0xacfc20,_0x2600e9){const _0x54c3ba=_0x4376d8,_0x149a62=this;_0x149a62[_0x54c3ba('0x197c')]=_0x2600e9['getCurrentUser'](),_0x149a62[_0x54c3ba('0x1a15')]={},_0x149a62['zohoConfiguration']={},_0x149a62[_0x54c3ba('0x11d0')]=[],_0x149a62[_0x54c3ba('0x1470')]=-0x1,_0x149a62['crudPermissions'],_0x149a62[_0x54c3ba('0x161d')]=_0x175801,_0x149a62[_0x54c3ba('0x1192')]=_0x5162a0,_0x149a62[_0x54c3ba('0x284a')]=_0x3ee7b7,_0x149a62[_0x54c3ba('0x106f')]=_0x14f356,_0x149a62[_0x54c3ba('0x10f5')]=_0x5d7928;function _0x5d7928(){const _0x1a6648=_0x54c3ba;return _0x4861f0[_0x1a6648('0x8b7')][_0x1a6648('0x27ba')]({'id':_0x149a62['zohoConfiguration']['id']},_0x149a62[_0x1a6648('0x2225')])[_0x1a6648('0x1af5')]['then'](function(){const _0x5b2000=_0x1a6648;_0xacfc20[_0x5b2000('0x130d')]({'title':_0x5b2000('0x1e90'),'msg':_0x5b2000('0x150d')});})[_0x1a6648('0x16df')](function(_0x17a167){const _0x4f5ed5=_0x1a6648;_0xacfc20[_0x4f5ed5('0x1db9')]({'title':_0x17a167[_0x4f5ed5('0x11c5')]?_0x4f5ed5('0x14f7')+_0x17a167['status']+'\x20-\x20'+_0x17a167[_0x4f5ed5('0x1833')]:_0x4f5ed5('0x22f9'),'msg':_0x17a167[_0x4f5ed5('0x1457')]?JSON['stringify'](_0x17a167[_0x4f5ed5('0x1457')]):_0x17a167[_0x4f5ed5('0x9b6')]()});});}function _0x175801(_0xf9210e,_0x2258c0){const _0x549b39=_0x54c3ba;_0x149a62[_0x549b39('0x1a15')]=_0xf9210e,_0x149a62[_0x549b39('0x103e')]=typeof _0x2258c0!==_0x549b39('0xfad')?_0x2258c0:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4861f0['intZohoAccount'][_0x549b39('0xee0')]({'id':_0x149a62[_0x549b39('0x1a15')]['id'],'sort':_0x549b39('0x1ac6')})[_0x549b39('0x1af5')][_0x549b39('0x17e7')](function(_0x31e6dd){const _0x3c26a8=_0x549b39;return _0x149a62[_0x3c26a8('0x11d0')]=_0x31e6dd[_0x3c26a8('0x2319')]?_0x31e6dd[_0x3c26a8('0x2319')]:[],_0x149a62[_0x3c26a8('0x11d0')]['length']&&_0x149a62[_0x3c26a8('0x1192')](0x0),_0x4861f0[_0x3c26a8('0xb0a')][_0x3c26a8('0x1c53')]({'nolimit':!![],'sort':_0x3c26a8('0x2aa')})['$promise'];})[_0x549b39('0x17e7')](function(_0x51d48a){const _0x116b12=_0x549b39;_0x149a62['variables']=_0x51d48a[_0x116b12('0x2319')]?_0x51d48a[_0x116b12('0x2319')]:[],_0x149a62[_0x116b12('0x214d')]=_0x49cbdd()['keyBy'](_0x149a62['variables'],'id');})[_0x549b39('0x16df')](function(_0x2824f2){const _0x31be94=_0x549b39;_0xacfc20[_0x31be94('0x1db9')]({'title':_0x2824f2[_0x31be94('0x11c5')]?_0x31be94('0x14f7')+_0x2824f2[_0x31be94('0x11c5')]+_0x31be94('0x16e4')+_0x2824f2[_0x31be94('0x1833')]:'SYSTEM:GETCONFIGURATION','msg':_0x2824f2[_0x31be94('0x1457')]?JSON[_0x31be94('0x678')](_0x2824f2[_0x31be94('0x1457')]):_0x2824f2['toString']()});});}function _0x5162a0(_0x4aa888){const _0x5193de=_0x54c3ba;_0x149a62[_0x5193de('0x2225')]=_0x149a62['configurations'][_0x4aa888],_0x149a62[_0x5193de('0x1470')]=_0x4aa888,_0x4861f0[_0x5193de('0x8b7')][_0x5193de('0x94e')]({'id':_0x149a62['zohoConfiguration']['id']})[_0x5193de('0x1af5')][_0x5193de('0x17e7')](function(_0x4653f7){const _0x134605=_0x5193de;return _0x149a62[_0x134605('0x1261')]=_0x4653f7[_0x134605('0x2319')]?_0x4653f7[_0x134605('0x2319')]:[],_0x4861f0[_0x134605('0x8b7')][_0x134605('0x24c7')]({'id':_0x149a62['zohoConfiguration']['id']})[_0x134605('0x1af5')];})['then'](function(_0x3549d0){const _0x56cfa2=_0x5193de;return _0x149a62[_0x56cfa2('0x1a2a')]=_0x3549d0[_0x56cfa2('0x2319')]?_0x3549d0[_0x56cfa2('0x2319')]:[],_0x4861f0[_0x56cfa2('0x8b7')]['getFields']({'id':_0x149a62['zohoConfiguration']['id']})['$promise'];})['then'](function(_0x3afea9){const _0x50f035=_0x5193de;_0x149a62[_0x50f035('0x9c9')]=_0x3afea9['rows']?_0x3afea9[_0x50f035('0x2319')]:[];})[_0x5193de('0x16df')](function(_0x4821a1){const _0x4be0a4=_0x5193de;_0xacfc20['error']({'title':_0x4821a1[_0x4be0a4('0x11c5')]?_0x4be0a4('0x14f7')+_0x4821a1[_0x4be0a4('0x11c5')]+_0x4be0a4('0x16e4')+_0x4821a1['statusText']:_0x4be0a4('0x23be'),'msg':_0x4821a1['data']?JSON[_0x4be0a4('0x678')](_0x4821a1[_0x4be0a4('0x1457')]):_0x4821a1[_0x4be0a4('0x9b6')]()});});}function _0x3ee7b7(_0x25d23a,_0xed77e5){const _0x179fbf=_0x54c3ba;_0x214ae1[_0x179fbf('0x28e2')]({'controller':_0x179fbf('0x4f8'),'controllerAs':'vm','templateUrl':_0xa143af,'parent':angular['element'](_0x538cf6[_0x179fbf('0x13aa')]),'targetEvent':_0x25d23a,'clickOutsideToClose':!![],'locals':{'zohoConfiguration':_0xed77e5,'configurations':_0x149a62[_0x179fbf('0x11d0')],'license':null,'setting':null,'crudPermissions':_0x149a62[_0x179fbf('0x103e')]}})['finally'](function(){const _0x134db3=_0x179fbf;_0x149a62[_0x134db3('0x1192')](0x0);});}function _0x14f356(_0xa4320e,_0x21188e){const _0x12cc3d=_0x54c3ba,_0x1385ce=_0x214ae1[_0x12cc3d('0x1121')]()['title'](_0x12cc3d('0xb5a'))[_0x12cc3d('0x211f')](''+(_0x21188e[_0x12cc3d('0x2aa')]||_0x12cc3d('0x2225'))+''+_0x12cc3d('0xe9f'))[_0x12cc3d('0x2095')](_0x12cc3d('0xcb9'))[_0x12cc3d('0x104f')](_0xa4320e)['ok']('OK')[_0x12cc3d('0x1d47')](_0x12cc3d('0x28a0'));_0x214ae1[_0x12cc3d('0x28e2')](_0x1385ce)[_0x12cc3d('0x17e7')](function(){const _0x5de25a=_0x12cc3d;_0x4861f0[_0x5de25a('0x8b7')][_0x5de25a('0x1da6')]({'id':_0x21188e['id']})[_0x5de25a('0x1af5')]['then'](function(){const _0x3862bb=_0x5de25a;_0x49cbdd()[_0x3862bb('0x5f3')](_0x149a62[_0x3862bb('0x11d0')],{'id':_0x21188e['id']}),_0xacfc20['success']({'title':_0x3862bb('0x232'),'msg':_0x21188e[_0x3862bb('0x2aa')]?_0x21188e[_0x3862bb('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x5de25a('0x16df')](function(_0x3f1179){const _0x3e2e7e=_0x5de25a;_0xacfc20[_0x3e2e7e('0x1db9')]({'title':_0x3f1179[_0x3e2e7e('0x11c5')]?_0x3e2e7e('0x14f7')+_0x3f1179['status']+_0x3e2e7e('0x16e4')+_0x3f1179[_0x3e2e7e('0x1833')]:_0x3e2e7e('0x11b4'),'msg':_0x3f1179[_0x3e2e7e('0x1457')]?JSON[_0x3e2e7e('0x678')](_0x3f1179[_0x3e2e7e('0x1457')]):_0x3f1179[_0x3e2e7e('0x9b6')]()});})[_0x5de25a('0x74e')](function(){const _0x142fa7=_0x5de25a;_0x149a62[_0x142fa7('0x1192')](0x0);});},function(){const _0x4b8e7d=_0x12cc3d;console[_0x4b8e7d('0x1d63')]('CANCEL');});}_0x149a62[_0x54c3ba('0x95b')]=[],_0x149a62[_0x54c3ba('0x1066')]=_0x6c5617,_0x149a62['deleteSubjectConfirm']=_0x5e31dc,_0x149a62[_0x54c3ba('0x2738')]=_0xa0a17;function _0x6c5617(_0x52566e,_0x1a8106){const _0x20a3ea=_0x54c3ba;_0x214ae1[_0x20a3ea('0x28e2')]({'controller':'CreateOrEditZohoAccountItemDialogController','controllerAs':'vm','templateUrl':_0x21bc7d,'parent':angular[_0x20a3ea('0x1ce1')](_0x538cf6['body']),'targetEvent':_0x52566e,'clickOutsideToClose':!![],'locals':{'type':_0x20a3ea('0x2179'),'item':_0x1a8106,'items':_0x149a62[_0x20a3ea('0x1261')],'configuration':_0x149a62[_0x20a3ea('0x2225')],'account':_0x149a62[_0x20a3ea('0x1a15')],'license':null,'setting':null,'crudPermissions':_0x149a62[_0x20a3ea('0x103e')]}});}function _0x534e0f(_0x2404c5){const _0x4367d2=_0x54c3ba;_0x4861f0['intZohoField']['delete']({'id':_0x2404c5['id']})[_0x4367d2('0x1af5')][_0x4367d2('0x17e7')](function(){const _0x294ca2=_0x4367d2;_0x49cbdd()['remove'](_0x149a62[_0x294ca2('0x1261')],{'id':_0x2404c5['id']}),_0xacfc20[_0x294ca2('0x130d')]({'title':_0x294ca2('0x198'),'msg':_0x294ca2('0x179c')});})[_0x4367d2('0x16df')](function(_0x583a3f){const _0x5e4a61=_0x4367d2;_0xacfc20[_0x5e4a61('0x1db9')]({'title':_0x583a3f['status']?'API:'+_0x583a3f[_0x5e4a61('0x11c5')]+'\x20-\x20'+_0x583a3f[_0x5e4a61('0x1833')]:'SYSTEM:DELETECONFIGURATIONFIELD','msg':_0x583a3f[_0x5e4a61('0x1457')]?JSON['stringify'](_0x583a3f['data']):_0x583a3f['toString']()});});}function _0x5e31dc(_0x557ba7,_0x1bf181){const _0x2c61c3=_0x54c3ba,_0x1633a5=_0x214ae1[_0x2c61c3('0x1121')]()['title'](_0x2c61c3('0x1371'))[_0x2c61c3('0x211f')](_0x2c61c3('0x694')+_0x2c61c3('0xe9f'))[_0x2c61c3('0x2095')](_0x2c61c3('0x16d1'))[_0x2c61c3('0x104f')](_0x557ba7)['ok']('OK')[_0x2c61c3('0x1d47')]('CANCEL');_0x214ae1[_0x2c61c3('0x28e2')](_0x1633a5)[_0x2c61c3('0x17e7')](function(){_0x534e0f(_0x1bf181);},function(){const _0x79e6ad=_0x2c61c3;console[_0x79e6ad('0x1d63')](_0x79e6ad('0x28a0'));});}function _0xa0a17(_0x438b98){const _0x4122cd=_0x54c3ba,_0x1caa6b=_0x214ae1['confirm']()[_0x4122cd('0x24d3')](_0x4122cd('0xb0b'))[_0x4122cd('0x211f')](_0x4122cd('0xa53')+_0x149a62[_0x4122cd('0x95b')][_0x4122cd('0x1f73')]+_0x4122cd('0x145a')+'\x20will\x20be\x20deleted.')[_0x4122cd('0x2095')](_0x4122cd('0x1bc'))['targetEvent'](_0x438b98)['ok']('OK')[_0x4122cd('0x1d47')](_0x4122cd('0x28a0'));_0x214ae1['show'](_0x1caa6b)['then'](function(){const _0xefa097=_0x4122cd;_0x149a62[_0xefa097('0x95b')][_0xefa097('0xccd')](function(_0x2b7667){_0x534e0f(_0x2b7667);}),_0x149a62['selectedSubjects']=[];});}_0x149a62[_0x54c3ba('0xb0f')]=[],_0x149a62[_0x54c3ba('0x1ac8')]=_0x2ff3bb,_0x149a62['deleteDescriptionConfirm']=_0x52bc9e,_0x149a62[_0x54c3ba('0xe42')]=_0x3c5dff;function _0x2ff3bb(_0x2365ae,_0x27bc2c){const _0x31c72b=_0x54c3ba;_0x214ae1['show']({'controller':_0x31c72b('0xaf'),'controllerAs':'vm','templateUrl':_0x21bc7d,'parent':angular[_0x31c72b('0x1ce1')](_0x538cf6[_0x31c72b('0x13aa')]),'targetEvent':_0x2365ae,'clickOutsideToClose':!![],'locals':{'type':_0x31c72b('0x986'),'item':_0x27bc2c,'items':_0x149a62[_0x31c72b('0x1a2a')],'configuration':_0x149a62[_0x31c72b('0x2225')],'account':_0x149a62[_0x31c72b('0x1a15')],'license':null,'setting':null,'crudPermissions':_0x149a62[_0x31c72b('0x103e')]}});}function _0x16d329(_0x182bda){const _0x233909=_0x54c3ba;_0x4861f0[_0x233909('0x142c')][_0x233909('0x1da6')]({'id':_0x182bda['id']})[_0x233909('0x1af5')][_0x233909('0x17e7')](function(){const _0x5db1f7=_0x233909;_0x49cbdd()['remove'](_0x149a62[_0x5db1f7('0x1a2a')],{'id':_0x182bda['id']}),_0xacfc20['success']({'title':'Description\x20deleted!','msg':_0x5db1f7('0x56f')});})[_0x233909('0x16df')](function(_0x5682f2){const _0x1dc925=_0x233909;_0xacfc20[_0x1dc925('0x1db9')]({'title':_0x5682f2[_0x1dc925('0x11c5')]?_0x1dc925('0x14f7')+_0x5682f2[_0x1dc925('0x11c5')]+_0x1dc925('0x16e4')+_0x5682f2[_0x1dc925('0x1833')]:_0x1dc925('0x14bd'),'msg':_0x5682f2[_0x1dc925('0x1457')]?JSON['stringify'](_0x5682f2['data']):_0x5682f2['toString']()});});}function _0x52bc9e(_0x53eb24,_0x17b578){const _0x2b91bd=_0x54c3ba,_0x6d1eb3=_0x214ae1[_0x2b91bd('0x1121')]()[_0x2b91bd('0x24d3')](_0x2b91bd('0x2bb'))['htmlContent'](_0x2b91bd('0x217a')+_0x2b91bd('0xe9f'))[_0x2b91bd('0x2095')](_0x2b91bd('0x1cf7'))[_0x2b91bd('0x104f')](_0x53eb24)['ok']('OK')[_0x2b91bd('0x1d47')](_0x2b91bd('0x28a0'));_0x214ae1[_0x2b91bd('0x28e2')](_0x6d1eb3)[_0x2b91bd('0x17e7')](function(){_0x16d329(_0x17b578);},function(){const _0xc432a8=_0x2b91bd;console['log'](_0xc432a8('0x28a0'));});}function _0x3c5dff(_0x277633){const _0x4a246e=_0x54c3ba,_0x1a0e18=_0x214ae1[_0x4a246e('0x1121')]()[_0x4a246e('0x24d3')](_0x4a246e('0x12d4'))[_0x4a246e('0x211f')](''+_0x149a62[_0x4a246e('0xb0f')][_0x4a246e('0x1f73')]+'\x20selected'+_0x4a246e('0xe9f'))[_0x4a246e('0x2095')](_0x4a246e('0x1fb1'))['targetEvent'](_0x277633)['ok']('OK')[_0x4a246e('0x1d47')](_0x4a246e('0x28a0'));_0x214ae1[_0x4a246e('0x28e2')](_0x1a0e18)[_0x4a246e('0x17e7')](function(){const _0x826f48=_0x4a246e;_0x149a62[_0x826f48('0xb0f')][_0x826f48('0xccd')](function(_0x40ac95){_0x16d329(_0x40ac95);}),_0x149a62[_0x826f48('0xb0f')]=[];});}_0x149a62[_0x54c3ba('0xa2e')]=[],_0x149a62[_0x54c3ba('0xc53')]=_0x115c93,_0x149a62['deleteFieldConfirm']=_0x4f346c,_0x149a62[_0x54c3ba('0xd1b')]=_0x106cb2;function _0x115c93(_0x34a909,_0x1dbee3){const _0x4aadc1=_0x54c3ba;_0x214ae1[_0x4aadc1('0x28e2')]({'controller':_0x4aadc1('0xaf'),'controllerAs':'vm','templateUrl':_0x21bc7d,'parent':angular[_0x4aadc1('0x1ce1')](_0x538cf6[_0x4aadc1('0x13aa')]),'targetEvent':_0x34a909,'clickOutsideToClose':!![],'locals':{'type':_0x4aadc1('0x1515'),'item':_0x1dbee3,'items':_0x149a62[_0x4aadc1('0x9c9')],'configuration':_0x149a62[_0x4aadc1('0x2225')],'account':_0x149a62[_0x4aadc1('0x1a15')],'license':null,'setting':null,'crudPermissions':_0x149a62['crudPermissions']}});}function _0x3d8c66(_0x1bba69){const _0x4f89ac=_0x54c3ba;_0x4861f0[_0x4f89ac('0x142c')][_0x4f89ac('0x1da6')]({'id':_0x1bba69['id']})[_0x4f89ac('0x1af5')][_0x4f89ac('0x17e7')](function(){const _0x3ea083=_0x4f89ac;_0x49cbdd()[_0x3ea083('0x5f3')](_0x149a62[_0x3ea083('0x9c9')],{'id':_0x1bba69['id']}),_0xacfc20[_0x3ea083('0x130d')]({'title':'Field\x20deleted!','msg':_0x3ea083('0xbb8')});})[_0x4f89ac('0x16df')](function(_0x94bff4){const _0xb51014=_0x4f89ac;_0xacfc20[_0xb51014('0x1db9')]({'title':_0x94bff4[_0xb51014('0x11c5')]?_0xb51014('0x14f7')+_0x94bff4['status']+'\x20-\x20'+_0x94bff4[_0xb51014('0x1833')]:_0xb51014('0x14bd'),'msg':_0x94bff4[_0xb51014('0x1457')]?JSON['stringify'](_0x94bff4['data']):_0x94bff4[_0xb51014('0x9b6')]()});});}function _0x4f346c(_0x156517,_0x35333b){const _0x370f98=_0x54c3ba,_0x1ddc88=_0x214ae1[_0x370f98('0x1121')]()[_0x370f98('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20field?')['htmlContent'](_0x370f98('0x23ff')+'\x20will\x20be\x20deleted.')[_0x370f98('0x2095')](_0x370f98('0x1f01'))['targetEvent'](_0x156517)['ok']('OK')[_0x370f98('0x1d47')](_0x370f98('0x28a0'));_0x214ae1[_0x370f98('0x28e2')](_0x1ddc88)['then'](function(){_0x3d8c66(_0x35333b);},function(){const _0x5867c5=_0x370f98;console[_0x5867c5('0x1d63')](_0x5867c5('0x28a0'));});}function _0x106cb2(_0x272141){const _0x4dbed5=_0x54c3ba,_0x282567=_0x214ae1[_0x4dbed5('0x1121')]()[_0x4dbed5('0x24d3')](_0x4dbed5('0x1fdd'))['htmlContent'](_0x4dbed5('0xa53')+_0x149a62[_0x4dbed5('0xa2e')]['length']+_0x4dbed5('0x145a')+_0x4dbed5('0xe9f'))[_0x4dbed5('0x2095')](_0x4dbed5('0x15ee'))['targetEvent'](_0x272141)['ok']('OK')[_0x4dbed5('0x1d47')](_0x4dbed5('0x28a0'));_0x214ae1[_0x4dbed5('0x28e2')](_0x282567)[_0x4dbed5('0x17e7')](function(){const _0x3cd510=_0x4dbed5;_0x149a62[_0x3cd510('0xa2e')]['forEach'](function(_0x2f1eba){_0x3d8c66(_0x2f1eba);}),_0x149a62[_0x3cd510('0xa2e')]=[];});}}const _0x249121=_0x1cb822;_0x40d18e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x11d0'),_0x4376d8('0x2225'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x40d18e(_0x5bcd93,_0x253685,_0x4b7132,_0x53094b,_0x3de161,_0x2cb9a2,_0x3ab0da,_0x258e20,_0x321a4e,_0x34fdc5,_0x4f3d8c,_0x144e36,_0x4de68e,_0x568058){const _0x39b210=_0x4376d8,_0x204494=this;_0x204494[_0x39b210('0x197c')]=_0x4f3d8c[_0x39b210('0x2831')](),_0x204494['errors']=[],_0x204494[_0x39b210('0x1aeb')]=_0x4de68e,_0x204494[_0x39b210('0x1d11')]=_0x144e36,_0x204494[_0x39b210('0x103e')]=_0x568058,_0x204494[_0x39b210('0x6ee')]={},_0x204494[_0x39b210('0x1572')]=_0x204494[_0x39b210('0x1aeb')]&&_0x204494[_0x39b210('0x1aeb')][_0x39b210('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x204494[_0x39b210('0x24d3')]=_0x39b210('0x1521'),_0x204494[_0x39b210('0x2225')]=angular[_0x39b210('0x14e5')](_0x321a4e),_0x204494[_0x39b210('0x11d0')]=_0x258e20,_0x204494[_0x39b210('0x1df1')]=![];!_0x204494[_0x39b210('0x2225')]&&(_0x204494['zohoConfiguration']={'channel':'voice','type':_0x39b210('0x1e77')},_0x204494[_0x39b210('0x24d3')]=_0x39b210('0x17ba'),_0x204494[_0x39b210('0x1df1')]=!![]);_0x204494[_0x39b210('0x1e1d')]=_0x24ecf9,_0x204494[_0x39b210('0x1540')]=_0x4cfa3a,_0x204494['deleteZohoConfiguration']=_0x3864a9,_0x204494[_0x39b210('0x1300')]=_0x55f8de,_0x204494[_0x39b210('0x136e')]=_0x2b8ecd;function _0x24ecf9(){const _0xaab770=_0x39b210;_0x204494[_0xaab770('0x73e')]=[],_0x34fdc5[_0xaab770('0x279a')][_0xaab770('0x5e0')]({'id':_0x253685['params']['id']},_0x204494[_0xaab770('0x2225')])[_0xaab770('0x1af5')]['then'](function(_0x1bbde0){const _0x1b7aeb=_0xaab770;_0x204494[_0x1b7aeb('0x11d0')][_0x1b7aeb('0x1893')](_0x1bbde0[_0x1b7aeb('0x16b2')]()),_0x3ab0da[_0x1b7aeb('0x130d')]({'title':_0x1b7aeb('0x1229'),'msg':_0x204494[_0x1b7aeb('0x2225')][_0x1b7aeb('0x2aa')]?_0x204494[_0x1b7aeb('0x2225')]['name']+_0x1b7aeb('0x15a'):''}),_0x2b8ecd(_0x1bbde0);})[_0xaab770('0x16df')](function(_0x4241d1){const _0x4055b6=_0xaab770;if(_0x4241d1[_0x4055b6('0x1457')]&&_0x4241d1[_0x4055b6('0x1457')]['errors']&&_0x4241d1[_0x4055b6('0x1457')]['errors'][_0x4055b6('0x1f73')]){_0x204494[_0x4055b6('0x73e')]=_0x4241d1['data'][_0x4055b6('0x73e')]||[{'message':_0x4241d1[_0x4055b6('0x9b6')](),'type':'api.intZohoConfiguration.save'}];for(let _0x57bcb4=0x0;_0x57bcb4<_0x4241d1['data'][_0x4055b6('0x73e')][_0x4055b6('0x1f73')];_0x57bcb4+=0x1){_0x3ab0da[_0x4055b6('0x1db9')]({'title':_0x4241d1[_0x4055b6('0x1457')][_0x4055b6('0x73e')][_0x57bcb4][_0x4055b6('0x412')],'msg':_0x4241d1['data']['errors'][_0x57bcb4][_0x4055b6('0x1603')]});}}else _0x3ab0da[_0x4055b6('0x1db9')]({'title':_0x4241d1[_0x4055b6('0x11c5')]?_0x4055b6('0x14f7')+_0x4241d1[_0x4055b6('0x11c5')]+_0x4055b6('0x16e4')+_0x4241d1['statusText']:_0x4055b6('0x2023'),'msg':_0x4241d1[_0x4055b6('0x1457')]?JSON[_0x4055b6('0x678')](_0x4241d1[_0x4055b6('0x1457')][_0x4055b6('0x1603')]):_0x4241d1[_0x4055b6('0x9b6')]()});});}function _0x4cfa3a(){const _0x34547d=_0x39b210;_0x204494[_0x34547d('0x73e')]=[],_0x34fdc5['intZohoConfiguration'][_0x34547d('0x27ba')]({'id':_0x204494[_0x34547d('0x2225')]['id']},_0x204494['zohoConfiguration'])[_0x34547d('0x1af5')]['then'](function(_0x2d9371){const _0x530233=_0x34547d,_0x40c4e4=_0x49cbdd()[_0x530233('0xe8e')](_0x204494['configurations'],{'id':_0x2d9371['id']});_0x40c4e4&&_0x49cbdd()[_0x530233('0x1ced')](_0x40c4e4,_0x49cbdd()[_0x530233('0x230a')](_0x2d9371[_0x530233('0x16b2')](),_0x49cbdd()[_0x530233('0x1c0f')](_0x40c4e4))),_0x3ab0da[_0x530233('0x130d')]({'title':'ZohoConfiguration\x20properly\x20saved!','msg':_0x204494[_0x530233('0x2225')]['name']?_0x204494[_0x530233('0x2225')]['name']+'\x20has\x20been\x20saved!':''}),_0x2b8ecd(_0x2d9371);})[_0x34547d('0x16df')](function(_0x3021c0){const _0x75fd39=_0x34547d;if(_0x3021c0[_0x75fd39('0x1457')]&&_0x3021c0[_0x75fd39('0x1457')][_0x75fd39('0x73e')]&&_0x3021c0[_0x75fd39('0x1457')][_0x75fd39('0x73e')][_0x75fd39('0x1f73')]){_0x204494[_0x75fd39('0x73e')]=_0x3021c0[_0x75fd39('0x1457')]['errors']||[{'message':_0x3021c0['toString'](),'type':_0x75fd39('0x2315')}];for(let _0x35fc13=0x0;_0x35fc13<_0x3021c0['data'][_0x75fd39('0x73e')][_0x75fd39('0x1f73')];_0x35fc13++){_0x3ab0da['error']({'title':_0x3021c0[_0x75fd39('0x1457')]['errors'][_0x35fc13][_0x75fd39('0x412')],'msg':_0x3021c0[_0x75fd39('0x1457')][_0x75fd39('0x73e')][_0x35fc13][_0x75fd39('0x1603')]});}}else _0x3ab0da[_0x75fd39('0x1db9')]({'title':_0x3021c0['status']?_0x75fd39('0x14f7')+_0x3021c0[_0x75fd39('0x11c5')]+_0x75fd39('0x16e4')+_0x3021c0['statusText']:'api.intZohoConfiguration.update','msg':_0x3021c0[_0x75fd39('0x1457')]?JSON['stringify'](_0x3021c0[_0x75fd39('0x1457')][_0x75fd39('0x1603')]):_0x3021c0[_0x75fd39('0x9b6')]()});});}function _0x3864a9(_0x588744){const _0x2f2ace=_0x39b210;_0x204494[_0x2f2ace('0x73e')]=[];const _0x46d9a5=_0x53094b['confirm']()[_0x2f2ace('0x24d3')](_0x2f2ace('0x530'))[_0x2f2ace('0xd5')](_0x2f2ace('0x193f'))[_0x2f2ace('0x2095')](_0x2f2ace('0xa9e'))['ok'](_0x2f2ace('0x304'))['cancel'](_0x2f2ace('0x1b70'))[_0x2f2ace('0x104f')](_0x588744);_0x53094b[_0x2f2ace('0x28e2')](_0x46d9a5)['then'](function(){const _0x447df2=_0x2f2ace;_0x34fdc5[_0x447df2('0x8b7')][_0x447df2('0x1da6')]({'id':_0x204494[_0x447df2('0x2225')]['id']})['$promise']['then'](function(){const _0x43e3dd=_0x447df2;_0x49cbdd()[_0x43e3dd('0x5f3')](_0x204494[_0x43e3dd('0x11d0')],{'id':_0x204494[_0x43e3dd('0x2225')]['id']}),_0x3ab0da[_0x43e3dd('0x130d')]({'title':_0x43e3dd('0x1c27'),'msg':(_0x204494[_0x43e3dd('0x2225')][_0x43e3dd('0x2aa')]||_0x43e3dd('0x2225'))+'\x20has\x20been\x20deleted!'}),_0x2b8ecd(_0x204494[_0x43e3dd('0x2225')]);})[_0x447df2('0x16df')](function(_0x1361e4){const _0x39e5c2=_0x447df2;if(_0x1361e4['data']&&_0x1361e4['data'][_0x39e5c2('0x73e')]&&_0x1361e4[_0x39e5c2('0x1457')][_0x39e5c2('0x73e')][_0x39e5c2('0x1f73')]){_0x204494[_0x39e5c2('0x73e')]=_0x1361e4['data'][_0x39e5c2('0x73e')]||[{'message':_0x1361e4['toString'](),'type':_0x39e5c2('0x16ba')}];for(let _0xc9bcd0=0x0;_0xc9bcd0<_0x1361e4[_0x39e5c2('0x1457')][_0x39e5c2('0x73e')][_0x39e5c2('0x1f73')];_0xc9bcd0++){_0x3ab0da[_0x39e5c2('0x1db9')]({'title':_0x1361e4['data'][_0x39e5c2('0x73e')][_0xc9bcd0][_0x39e5c2('0x412')],'msg':_0x1361e4['data'][_0x39e5c2('0x73e')][_0xc9bcd0][_0x39e5c2('0x1603')]});}}else _0x3ab0da[_0x39e5c2('0x1db9')]({'title':_0x1361e4[_0x39e5c2('0x11c5')]?_0x39e5c2('0x14f7')+_0x1361e4[_0x39e5c2('0x11c5')]+_0x39e5c2('0x16e4')+_0x1361e4[_0x39e5c2('0x1833')]:_0x39e5c2('0x16ba'),'msg':_0x1361e4[_0x39e5c2('0x1457')]?JSON[_0x39e5c2('0x678')](_0x1361e4[_0x39e5c2('0x1457')][_0x39e5c2('0x1603')]):_0x1361e4[_0x39e5c2('0x1603')]||_0x1361e4[_0x39e5c2('0x9b6')]()});});},function(){});}function _0x55f8de(_0x4e266d){return _0x4e266d===null?undefined:new Date(_0x4e266d);}function _0x2b8ecd(_0x2424eb){const _0x58ad06=_0x39b210;_0x53094b[_0x58ad06('0x212a')](_0x2424eb);}}const _0x5c2b05=_0x40d18e;_0x1c05e1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),'$mdDialog','toasty',_0x4376d8('0x1c4'),_0x4376d8('0x532'),_0x4376d8('0x28b8'),_0x4376d8('0x2679'),_0x4376d8('0x412'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x1c05e1(_0x16254e,_0x37bb76,_0x7b7514,_0x5d973d,_0x43da72,_0x3e8d74,_0x2d9182,_0x310599,_0x232847,_0x271949,_0x4927c1,_0x4dd77a,_0xcc3772){const _0x209448=_0x4376d8,_0x4557d5=this;_0x4557d5[_0x209448('0x197c')]=_0x4dd77a[_0x209448('0x2831')](),_0x4557d5['errors']=[],_0x4557d5[_0x209448('0x24d3')]=_0x209448('0x9dd')+_0x49cbdd()['toUpper'](_0x271949),_0x4557d5[_0x209448('0x28b8')]=angular['copy'](_0x310599),_0x4557d5[_0x209448('0x532')]=_0x2d9182,_0x4557d5['type']=_0x271949,_0x4557d5[_0x209448('0x103e')]=_0xcc3772,_0x4557d5[_0x209448('0x1ac5')]=![];!_0x4557d5[_0x209448('0x28b8')]&&(_0x4557d5[_0x209448('0x28b8')]={'type':_0x209448('0x1783')},_0x4557d5[_0x209448('0x28b8')][_0x49cbdd()[_0x209448('0xb41')](_0x271949)+'Id']=_0x3e8d74['id'],_0x4557d5[_0x209448('0x24d3')]=_0x209448('0x6fe')+_0x49cbdd()[_0x209448('0x286f')](_0x271949),_0x4557d5[_0x209448('0x1ac5')]=!![]);_0x4557d5[_0x209448('0x1978')]=_0x1b6126,_0x4557d5[_0x209448('0x1321')]=_0x351862,_0x4557d5[_0x209448('0x1350')]=_0x236c88,_0x4557d5[_0x209448('0x140a')]=_0x5a8a88,_0x4557d5[_0x209448('0x136e')]=_0x1f1797,_0x4927c1[_0x209448('0xb0a')][_0x209448('0x1c53')]({'nolimit':!![]})[_0x209448('0x1af5')][_0x209448('0x17e7')](function(_0x39f318){const _0x1465ab=_0x209448;return _0x4557d5[_0x1465ab('0xd26')]=_0x39f318[_0x1465ab('0x2319')]?_0x39f318[_0x1465ab('0x2319')]:[],_0x4927c1[_0x1465ab('0x770')][_0x1465ab('0x2234')]()[_0x1465ab('0x1af5')];})['then'](function(_0x4d28e4){const _0x16e915=_0x209448;return _0x4557d5[_0x16e915('0x217b')]=_0x49cbdd()['difference'](_0x49cbdd()[_0x16e915('0x1c0f')](_0x4d28e4),[_0x16e915('0x1af5'),_0x16e915('0x1314'),_0x16e915('0x7c9'),_0x16e915('0xb8a'),_0x16e915('0x1c59')]),_0x4557d5['voiceAgentReportColumns'][_0x16e915('0x269f')](_0x16e915('0x1bea')),_0x4927c1[_0x16e915('0xc6f')][_0x16e915('0x2234')]()[_0x16e915('0x1af5')];})[_0x209448('0x17e7')](function(_0x4b6945){const _0xeb3e24=_0x209448;_0x4557d5[_0xeb3e24('0xe00')]=_0x49cbdd()['difference'](_0x49cbdd()[_0xeb3e24('0x1c0f')](_0x4b6945),[_0xeb3e24('0x1af5'),'$resolved',_0xeb3e24('0x7c9'),_0xeb3e24('0xb8a'),'sourceid']),_0x4557d5[_0xeb3e24('0xe00')][_0xeb3e24('0x269f')]('recordingURL');})[_0x209448('0x16df')](function(_0x27ec9b){const _0x3cf8ed=_0x209448;_0x43da72[_0x3cf8ed('0x1db9')]({'title':_0x27ec9b[_0x3cf8ed('0x11c5')]?_0x3cf8ed('0x14f7')+_0x27ec9b[_0x3cf8ed('0x11c5')]+_0x3cf8ed('0x16e4')+_0x27ec9b[_0x3cf8ed('0x1833')]:_0x3cf8ed('0x3a9'),'msg':_0x27ec9b['data']?JSON[_0x3cf8ed('0x678')](_0x27ec9b[_0x3cf8ed('0x1457')]):_0x27ec9b[_0x3cf8ed('0x9b6')]()});}),_0x4927c1[_0x209448('0x279a')][_0x209448('0x9a')]({'id':_0x232847['id'],'ticketType':_0x3e8d74[_0x209448('0x148e')]?_0x3e8d74[_0x209448('0x148e')]:undefined})[_0x209448('0x1af5')][_0x209448('0x17e7')](function(_0x160ed9){const _0x338ea4=_0x209448;_0x4557d5['accountConnected']=!![],_0x4557d5[_0x338ea4('0x9c9')]=_0x160ed9[_0x338ea4('0x2319')]?_0x160ed9[_0x338ea4('0x2319')]:[],_0x4557d5[_0x338ea4('0x28b8')]['idField']&&(_0x4557d5[_0x338ea4('0x1fa4')]=_0x49cbdd()[_0x338ea4('0xe8e')](_0x4557d5[_0x338ea4('0x9c9')],{'id':_0x4557d5['item']['idField']}));})[_0x209448('0x16df')](function(_0x511199){const _0x2e4f5d=_0x209448;_0x4557d5[_0x2e4f5d('0x20c2')]=![],console[_0x2e4f5d('0x1db9')](_0x511199);});function _0x1b6126(){const _0x4503e2=_0x209448;_0x4557d5[_0x4503e2('0x73e')]=[],_0x4557d5[_0x4503e2('0x1fa4')]&&(_0x4557d5[_0x4503e2('0x28b8')]['idField']=_0x4557d5[_0x4503e2('0x1fa4')]['id'],_0x4557d5[_0x4503e2('0x28b8')]['nameField']=_0x4557d5['customField'][_0x4503e2('0x2aa')],_0x4557d5[_0x4503e2('0x28b8')][_0x4503e2('0x1fa4')]=_0x4557d5[_0x4503e2('0x1fa4')][_0x4503e2('0x8fa')]),_0x4927c1['intZohoField'][_0x4503e2('0x2439')](_0x4557d5[_0x4503e2('0x28b8')])[_0x4503e2('0x1af5')][_0x4503e2('0x17e7')](function(_0x5e7c11){const _0x21cfa1=_0x4503e2;_0x4557d5[_0x21cfa1('0x532')][_0x21cfa1('0x1893')](_0x5e7c11),_0x43da72[_0x21cfa1('0x130d')]({'title':_0x49cbdd()['capitalize'](_0x271949)+_0x21cfa1('0x23ad'),'msg':_0x49cbdd()['capitalize'](_0x271949)+_0x21cfa1('0x15a')}),_0x1f1797();})[_0x4503e2('0x16df')](function(_0x1cbab2){const _0x37a974=_0x4503e2;console[_0x37a974('0x1db9')](_0x1cbab2),_0x4557d5[_0x37a974('0x73e')]=_0x1cbab2['data'][_0x37a974('0x73e')]||[{'message':_0x1cbab2[_0x37a974('0x9b6')](),'type':_0x37a974('0xbe0')}];});}function _0x351862(){const _0x29656c=_0x209448;_0x4557d5['errors']=[],_0x4557d5[_0x29656c('0x1fa4')]&&(_0x4557d5[_0x29656c('0x28b8')][_0x29656c('0x8d8')]=_0x4557d5['customField']['id'],_0x4557d5[_0x29656c('0x28b8')]['nameField']=_0x4557d5[_0x29656c('0x1fa4')][_0x29656c('0x2aa')],_0x4557d5[_0x29656c('0x28b8')][_0x29656c('0x1fa4')]=_0x4557d5['customField']['custom']),_0x4927c1[_0x29656c('0x142c')][_0x29656c('0x27ba')]({'id':_0x4557d5['item']['id']},_0x4557d5[_0x29656c('0x28b8')])[_0x29656c('0x1af5')]['then'](function(_0x1f6833){const _0x59104=_0x29656c,_0x59e8ca=_0x49cbdd()['find'](_0x4557d5[_0x59104('0x532')],{'id':_0x1f6833['id']});_0x59e8ca&&_0x49cbdd()[_0x59104('0x1ced')](_0x59e8ca,_0x1f6833),_0x43da72[_0x59104('0x130d')]({'title':_0x49cbdd()[_0x59104('0xb41')](_0x271949)+'\x20properly\x20saved!','msg':_0x49cbdd()[_0x59104('0xb41')](_0x271949)+_0x59104('0x15ca')}),_0x1f1797();})[_0x29656c('0x16df')](function(_0x50a0cd){const _0x23c7df=_0x29656c;console[_0x23c7df('0x1db9')](_0x50a0cd),_0x4557d5[_0x23c7df('0x73e')]=_0x50a0cd[_0x23c7df('0x1457')]['errors']||[{'message':_0x50a0cd[_0x23c7df('0x9b6')](),'type':_0x23c7df('0x428')}];});}function _0x236c88(_0x40b837){const _0x31dabe=_0x209448;_0x4557d5[_0x31dabe('0x73e')]=[];const _0x5a3bcb=_0x5d973d[_0x31dabe('0x1121')]()['title']('Are\x20you\x20sure?')[_0x31dabe('0xd5')](_0x31dabe('0x1664')+_0x271949+_0x31dabe('0xe9f'))[_0x31dabe('0x2095')]('Delete\x20'+_0x49cbdd()[_0x31dabe('0xb41')](_0x271949))['ok'](_0x31dabe('0x304'))[_0x31dabe('0x1d47')]('Cancel')[_0x31dabe('0x104f')](_0x40b837);_0x5d973d[_0x31dabe('0x28e2')](_0x5a3bcb)[_0x31dabe('0x17e7')](function(){const _0xc48ae0=_0x31dabe;_0x4927c1[_0xc48ae0('0x142c')][_0xc48ae0('0x1da6')]({'id':_0x4557d5[_0xc48ae0('0x28b8')]['id']})[_0xc48ae0('0x1af5')][_0xc48ae0('0x17e7')](function(){const _0x3d84d6=_0xc48ae0;_0x49cbdd()[_0x3d84d6('0x5f3')](_0x4557d5['items'],{'id':_0x4557d5[_0x3d84d6('0x28b8')]['id']}),_0x43da72['success']({'title':_0x49cbdd()[_0x3d84d6('0xb41')](_0x271949)+'\x20properly\x20deleted!','msg':_0x49cbdd()[_0x3d84d6('0xb41')](_0x271949)+_0x3d84d6('0x149f')}),_0x1f1797();})[_0xc48ae0('0x16df')](function(_0x2f3d79){const _0x53db11=_0xc48ae0;console[_0x53db11('0x1db9')](_0x2f3d79),_0x4557d5[_0x53db11('0x73e')]=_0x2f3d79[_0x53db11('0x1457')]['errors']||[{'message':_0x2f3d79['toString'](),'type':_0x53db11('0x2220')}];});},function(){});}function _0x5a8a88(){const _0x1ee9ba=_0x209448;return _0x4557d5[_0x1ee9ba('0x28b8')][_0x1ee9ba('0x4fd')]!==undefined?_0x4557d5[_0x1ee9ba('0x28b8')][_0x1ee9ba('0x4fd')]:_0x1ee9ba('0x2588');}function _0x1f1797(){const _0x3e5d9c=_0x209448;_0x5d973d[_0x3e5d9c('0x212a')]();}}const _0x307b6d=_0x1c05e1;_0x503dc4[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$translate',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth','zohoAccount',_0x4376d8('0x383')];function _0x503dc4(_0x9b9edb,_0x28ffc4,_0x287d6c,_0x24568b,_0x523ea3,_0x27c604,_0x2dbc93,_0x1fac62,_0x457e2f,_0x5303ef,_0x167f49,_0x957f8e){const _0x479a59=_0x4376d8,_0x10f1fc=this;_0x10f1fc['currentUser']=_0x5303ef['getCurrentUser'](),_0x10f1fc[_0x479a59('0x1d11')]=_0x27c604,_0x10f1fc['setting']=_0x2dbc93,_0x10f1fc['passwordPattern']=_0x10f1fc[_0x479a59('0x1aeb')][_0x479a59('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x10f1fc[_0x479a59('0xaed')]=_0x28ffc4['protocol']()+'://'+_0x28ffc4['host'](),_0x10f1fc[_0x479a59('0x1a15')]=_0x167f49||_0x9b9edb[_0x479a59('0x16fb')]['zohoAccount']||{},_0x10f1fc[_0x479a59('0x383')]=_0x957f8e&&_0x957f8e[_0x479a59('0x335')]==0x1?_0x957f8e[_0x479a59('0x2319')][0x0]:null,_0x10f1fc['crudPermissions']=_0x5303ef[_0x479a59('0x17a9')](_0x10f1fc['userProfileSection']?_0x10f1fc[_0x479a59('0x383')]['crudPermissions']:null),_0x10f1fc['hasModulePermissions']={},_0x10f1fc[_0x479a59('0xde7')]=_0x9b9edb['params'][_0x479a59('0x1523')]||0x0,_0x10f1fc[_0x479a59('0x99f')]=_0x457e2f[_0x479a59('0x1178')],_0x10f1fc[_0x479a59('0x16a')]=_0x20deb9,_0x10f1fc['saveZohoAccount']=_0xe0d0ac;function _0x20deb9(){const _0x54e964=_0x479a59;_0x9b9edb['go'](_0x54e964('0xe4b'),{},{'reload':'app.integrations.zohoAccounts'});}function _0xe0d0ac(){const _0x11bad6=_0x479a59;_0x1fac62[_0x11bad6('0x279a')]['update']({'id':_0x10f1fc[_0x11bad6('0x1a15')]['id']},_0x10f1fc[_0x11bad6('0x1a15')])[_0x11bad6('0x1af5')][_0x11bad6('0x17e7')](function(){const _0x21dad0=_0x11bad6;_0x457e2f[_0x21dad0('0x130d')]({'title':_0x21dad0('0x5e4'),'msg':_0x10f1fc[_0x21dad0('0x1a15')][_0x21dad0('0x2aa')]?_0x10f1fc[_0x21dad0('0x1a15')][_0x21dad0('0x2aa')]+_0x21dad0('0x12b0'):''});})[_0x11bad6('0x16df')](function(_0x221ba3){const _0x2a1ce8=_0x11bad6;_0x457e2f[_0x2a1ce8('0x1db9')]({'title':_0x221ba3[_0x2a1ce8('0x11c5')]?_0x2a1ce8('0x14f7')+_0x221ba3[_0x2a1ce8('0x11c5')]+_0x2a1ce8('0x16e4')+_0x221ba3[_0x2a1ce8('0x1833')]:'SYSTEM:GETintZohoAccount','msg':_0x221ba3['data']?JSON[_0x2a1ce8('0x678')](_0x221ba3[_0x2a1ce8('0x1457')]):_0x221ba3[_0x2a1ce8('0x9b6')]()});});}}const _0x58a8bc=_0x503dc4,_0x3de071=_0x4cf2bc['p']+_0x4376d8('0x81d');_0x185a6a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),'zohoAccounts',_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x185a6a(_0x59516b,_0x4ca6aa,_0x3c9c9f,_0x311804,_0xb9c6d3,_0x17c28f,_0xa794f9,_0x14279d,_0x5ccd9f,_0x16faf9,_0x3a9ad3,_0x3aa68b,_0x33fac5,_0x20256c,_0x1a06ac,_0x209522,_0x3b71d7){const _0x49dfff=_0x4376d8,_0x15f3a9=this;_0x15f3a9[_0x49dfff('0x1d11')]=_0x209522,_0x15f3a9[_0x49dfff('0x1aeb')]=_0x3b71d7,_0x15f3a9[_0x49dfff('0x197c')]=_0x1a06ac['getCurrentUser'](),_0x15f3a9[_0x49dfff('0x27c6')]=_0x5ccd9f||{'count':0x0,'rows':[]},_0x15f3a9['userProfile']=_0x16faf9,_0x15f3a9[_0x49dfff('0x383')]=_0x3a9ad3&&_0x3a9ad3[_0x49dfff('0x335')]==0x1?_0x3a9ad3[_0x49dfff('0x2319')][0x0]:null,_0x15f3a9[_0x49dfff('0x103e')]=_0x1a06ac[_0x49dfff('0x17a9')](_0x15f3a9[_0x49dfff('0x383')]?_0x15f3a9[_0x49dfff('0x383')][_0x49dfff('0x103e')]:null),_0x15f3a9[_0x49dfff('0x23c3')]=_0x49dfff('0x27c6'),_0x15f3a9[_0x49dfff('0x26a1')]='',_0x15f3a9[_0x49dfff('0x24e1')]=null,_0x15f3a9[_0x49dfff('0x1a90')]=[],_0x15f3a9[_0x49dfff('0x826')]={'fields':_0x49dfff('0x20e4'),'limit':0xa,'page':0x1},_0x15f3a9[_0x49dfff('0x175f')]=_0x49cbdd()[_0x49dfff('0x8de')]([{'option':_0x49dfff('0x215a'),'value':_0x49dfff('0x1d48')},{'option':_0x49dfff('0x1059'),'value':'\x27zoho.eu\x27'}],function(_0x46122f){const _0x4c1e17=_0x49dfff;return _0x49cbdd()[_0x4c1e17('0x737')](_0x46122f[_0x4c1e17('0x175b')],new RegExp('\x27','g'),'');}),_0x15f3a9[_0x49dfff('0x1d29')]=_0x49cbdd()['keyBy']([{'option':'US','value':_0x49dfff('0xe66')},{'option':'AU','value':_0x49dfff('0x2228')},{'option':'EU','value':_0x49dfff('0x667')},{'option':'IN','value':_0x49dfff('0x254c')},{'option':'CN','value':_0x49dfff('0xdc9')}],function(_0x260488){const _0x43fd6e=_0x49dfff;return _0x49cbdd()[_0x43fd6e('0x737')](_0x260488[_0x43fd6e('0x175b')],new RegExp('\x27','g'),'');}),_0x15f3a9[_0x49dfff('0xcd4')]=_0x7347d1,_0x15f3a9[_0x49dfff('0xf3a')]=_0xf4a80d,_0x15f3a9['deleteconfirm']=_0x15a332,_0x15f3a9[_0x49dfff('0x130d')]=_0x5a082c,_0x15f3a9[_0x49dfff('0x1be8')]=_0x3e2a7b,_0x15f3a9[_0x49dfff('0x9eb')]=_0x32290a,_0x15f3a9[_0x49dfff('0x4ac')]=_0x285fb5,_0x15f3a9[_0x49dfff('0x11af')]=_0x3aaebd,_0x15f3a9[_0x49dfff('0xe20')]=_0x587517,_0x15f3a9['deselectZohoAccounts']=_0x5ca939,_0x15f3a9[_0x49dfff('0x176d')]=_0x4a169e;function _0x7347d1(_0x46e3cd){const _0x4696c7=_0x49dfff;_0x3c9c9f['go']('app.integrations.zohoAccounts.edit',{'id':_0x46e3cd['id'],'zohoAccount':_0x46e3cd,'crudPermissions':_0x15f3a9[_0x4696c7('0x103e')]});}function _0xf4a80d(_0x249616){const _0x20eb5f=_0x49dfff;return _0x3aa68b[_0x20eb5f('0x279a')][_0x20eb5f('0x9a')]({'id':_0x249616['id'],'test':!![]})[_0x20eb5f('0x1af5')][_0x20eb5f('0x17e7')](function(){const _0x16fbb2=_0x20eb5f;_0x20256c[_0x16fbb2('0x130d')]({'title':_0x16fbb2('0x1d79'),'msg':_0x16fbb2('0x120d')});})['catch'](function(_0x535ddc){const _0x4fc38b=_0x20eb5f;_0x20256c[_0x4fc38b('0x1db9')]({'title':_0x4fc38b('0x1d79'),'msg':_0x535ddc[_0x4fc38b('0x1457')]?_0x535ddc[_0x4fc38b('0x1457')][_0x4fc38b('0x1603')]?_0x535ddc[_0x4fc38b('0x1457')][_0x4fc38b('0x1603')]:JSON[_0x4fc38b('0x678')](_0x535ddc[_0x4fc38b('0x1457')]):_0x535ddc[_0x4fc38b('0x9b6')]()});});}function _0x15a332(_0x213be1,_0x22eacc){const _0x3d45e3=_0x49dfff,_0x1b4e92=_0xb9c6d3[_0x3d45e3('0x1121')]()['title'](_0x3d45e3('0x5e1')+_0x49cbdd()['startCase'](_0x3d45e3('0x1a15'))+'?')[_0x3d45e3('0x211f')](_0x3d45e3('0xa53')+(_0x213be1['name']||_0x3d45e3('0x1a15'))+_0x3d45e3('0x1d23')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x3d45e3('0x1051'))[_0x3d45e3('0x104f')](_0x22eacc)['ok']('OK')[_0x3d45e3('0x1d47')](_0x3d45e3('0x28a0'));_0xb9c6d3[_0x3d45e3('0x28e2')](_0x1b4e92)['then'](function(){_0x285fb5(_0x213be1);},function(){console['log']('CANCEL');});}let _0x354ac4=!![],_0x45b9b0=0x1;_0x59516b['$watch'](_0x49dfff('0x3ed'),function(_0x5e0463,_0x4bec70){const _0xea95c5=_0x49dfff;_0x354ac4?_0xa794f9(function(){_0x354ac4=![];}):(!_0x4bec70&&(_0x45b9b0=_0x15f3a9['query'][_0xea95c5('0x115a')]),_0x5e0463!==_0x4bec70&&(_0x15f3a9['query'][_0xea95c5('0x115a')]=0x1),!_0x5e0463&&(_0x15f3a9[_0xea95c5('0x826')][_0xea95c5('0x115a')]=_0x45b9b0),_0x15f3a9[_0xea95c5('0x1be8')]());});function _0x5a082c(_0x1df61d){_0x15f3a9['zohoAccounts']=_0x1df61d||{'count':0x0,'rows':[]};}function _0x3e2a7b(){const _0x4d3a95=_0x49dfff;_0x15f3a9[_0x4d3a95('0x826')][_0x4d3a95('0xf19')]=(_0x15f3a9[_0x4d3a95('0x826')][_0x4d3a95('0x115a')]-0x1)*_0x15f3a9[_0x4d3a95('0x826')][_0x4d3a95('0x193b')],_0x1a06ac[_0x4d3a95('0x1ba2')]('admin')?_0x15f3a9[_0x4d3a95('0x1691')]=_0x3aa68b[_0x4d3a95('0x279a')][_0x4d3a95('0x1c53')](_0x15f3a9[_0x4d3a95('0x826')],_0x5a082c)['$promise']:(_0x15f3a9[_0x4d3a95('0x826')]['id']=_0x15f3a9[_0x4d3a95('0xdeb')]['id'],_0x15f3a9[_0x4d3a95('0x826')]['section']=_0x4d3a95('0xbb1'),_0x15f3a9['promise']=_0x3aa68b[_0x4d3a95('0xdeb')][_0x4d3a95('0x2447')](_0x15f3a9[_0x4d3a95('0x826')],_0x5a082c)[_0x4d3a95('0x1af5')]);}function _0x32290a(_0x46ed71,_0x8c4869){const _0x59261b=_0x49dfff;_0xb9c6d3['show']({'controller':_0x59261b('0x28ae'),'controllerAs':'vm','templateUrl':_0x3de071,'parent':angular[_0x59261b('0x1ce1')](_0x17c28f[_0x59261b('0x13aa')]),'targetEvent':_0x46ed71,'clickOutsideToClose':!![],'locals':{'zohoAccount':_0x8c4869,'zohoAccounts':_0x15f3a9[_0x59261b('0x27c6')]['rows'],'license':_0x15f3a9[_0x59261b('0x1d11')],'setting':_0x15f3a9[_0x59261b('0x1aeb')],'crudPermissions':_0x15f3a9[_0x59261b('0x103e')]}});}function _0x285fb5(_0xc6f9fa){const _0xa0b36e=_0x49dfff;_0x3aa68b['intZohoAccount'][_0xa0b36e('0x1da6')]({'id':_0xc6f9fa['id']})[_0xa0b36e('0x1af5')][_0xa0b36e('0x17e7')](function(){const _0x33d4a8=_0xa0b36e;_0x49cbdd()['remove'](_0x15f3a9[_0x33d4a8('0x27c6')][_0x33d4a8('0x2319')],{'id':_0xc6f9fa['id']}),_0x15f3a9[_0x33d4a8('0x27c6')]['count']-=0x1,!_0x15f3a9[_0x33d4a8('0x27c6')][_0x33d4a8('0x2319')][_0x33d4a8('0x1f73')]&&_0x15f3a9['getZohoAccounts'](),_0x20256c[_0x33d4a8('0x130d')]({'title':_0x49cbdd()[_0x33d4a8('0x1c98')](_0x33d4a8('0xc01'))+'\x20deleted!','msg':_0xc6f9fa[_0x33d4a8('0x2aa')]?_0xc6f9fa[_0x33d4a8('0x2aa')]+_0x33d4a8('0x149f'):''});})[_0xa0b36e('0x16df')](function(_0x44672f){const _0xcaa2c3=_0xa0b36e;if(_0x44672f[_0xcaa2c3('0x1457')]&&_0x44672f[_0xcaa2c3('0x1457')][_0xcaa2c3('0x73e')]&&_0x44672f[_0xcaa2c3('0x1457')]['errors'][_0xcaa2c3('0x1f73')]){_0x15f3a9[_0xcaa2c3('0x73e')]=_0x44672f[_0xcaa2c3('0x1457')]['errors']||[{'message':_0x44672f['toString'](),'type':_0xcaa2c3('0x9cc')}];for(let _0x4ed92f=0x0;_0x4ed92f<_0x44672f[_0xcaa2c3('0x1457')][_0xcaa2c3('0x73e')]['length'];_0x4ed92f++){_0x20256c[_0xcaa2c3('0x1db9')]({'title':_0x44672f[_0xcaa2c3('0x1457')][_0xcaa2c3('0x73e')][_0x4ed92f][_0xcaa2c3('0x412')],'msg':_0x44672f[_0xcaa2c3('0x1457')]['errors'][_0x4ed92f][_0xcaa2c3('0x1603')]});}}else _0x20256c[_0xcaa2c3('0x1db9')]({'title':_0x44672f[_0xcaa2c3('0x11c5')]?'API:'+_0x44672f['status']+'\x20-\x20'+_0x44672f[_0xcaa2c3('0x1833')]:_0xcaa2c3('0x9cc'),'msg':_0x44672f[_0xcaa2c3('0x1457')]?JSON[_0xcaa2c3('0x678')](_0x44672f['data'][_0xcaa2c3('0x1603')]):_0x44672f['message']||_0x44672f['toString']()});});}function _0x3aaebd(){const _0x40853d=_0x49dfff,_0x55086e=angular[_0x40853d('0x14e5')](_0x15f3a9['selectedZohoAccounts']);return _0x15f3a9['selectedZohoAccounts']=[],_0x55086e;}function _0x587517(_0xdc3176){const _0x3de974=_0x49dfff,_0xd27caa=_0xb9c6d3[_0x3de974('0x1121')]()[_0x3de974('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20zohoAccounts?')[_0x3de974('0x211f')](_0x3de974('0xa53')+_0x15f3a9[_0x3de974('0x1a90')][_0x3de974('0x1f73')]+_0x3de974('0x145a')+'\x20will\x20be\x20deleted.')[_0x3de974('0x2095')](_0x3de974('0x19f1'))[_0x3de974('0x104f')](_0xdc3176)['ok']('OK')[_0x3de974('0x1d47')](_0x3de974('0x28a0'));_0xb9c6d3[_0x3de974('0x28e2')](_0xd27caa)[_0x3de974('0x17e7')](function(){const _0x47c9d2=_0x3de974;_0x15f3a9[_0x47c9d2('0x1a90')]['forEach'](function(_0x3c6b08){_0x285fb5(_0x3c6b08);}),_0x15f3a9[_0x47c9d2('0x1a90')]=[];});}function _0x5ca939(){const _0x1c837c=_0x49dfff;_0x15f3a9[_0x1c837c('0x1a90')]=[];}function _0x4a169e(){const _0xece335=_0x49dfff;_0x15f3a9[_0xece335('0x1a90')]=_0x15f3a9[_0xece335('0x27c6')][_0xece335('0x2319')];}}const _0x445461=_0x185a6a;_0x4ab015[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),'$translatePartialLoaderProvider'];function _0x4ab015(_0x23b7b9,_0x773119){const _0x56e20c=_0x4376d8;_0x23b7b9[_0x56e20c('0x1b9a')](_0x56e20c('0x1eb'),{'abstract':!![],'url':'/integrations'})['state'](_0x56e20c('0xab6'),{'url':_0x56e20c('0xa3a'),'views':{'content@app':{'templateUrl':_0x283f1a,'controller':_0x56e20c('0x1609')}},'resolve':{'zendeskAccounts':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x811770,_0x2ec99c){const _0x44efd7=_0x56e20c;return _0x2ec99c['hasRole'](_0x44efd7('0x20bf'))?_0x811770[_0x44efd7('0x898')](_0x44efd7('0x1702'),{'fields':_0x44efd7('0x176b'),'limit':0xa,'offset':0x0}):_0x811770['resolve'](_0x44efd7('0x1164'),{'id':_0x2ec99c['getCurrentUser']()[_0x44efd7('0x1e76')],'section':_0x44efd7('0x5f5'),'fields':_0x44efd7('0x176b'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x56e20c('0x177'),'Auth',function(_0x5b1178,_0x4d0f23){const _0x5323c8=_0x56e20c;return _0x4d0f23['hasRole'](_0x5323c8('0x20bf'))?null:_0x5b1178['resolve'](_0x5323c8('0x235d'),{'fields':'id,name,crudPermissions','id':_0x4d0f23[_0x5323c8('0x2831')]()[_0x5323c8('0x1e76')]});}],'userProfileSection':['apiResolver',_0x56e20c('0x1885'),function(_0x5310d5,_0x524526){const _0x404459=_0x56e20c;return _0x524526[_0x404459('0x1ba2')]('admin')?null:_0x5310d5[_0x404459('0x898')](_0x404459('0x23e7'),{'fields':_0x404459('0x1134'),'userProfileId':_0x524526[_0x404459('0x2831')]()[_0x404459('0x1e76')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':'integrations'})[_0x56e20c('0x1b9a')](_0x56e20c('0x132a'),{'url':_0x56e20c('0x2370'),'params':{'zendeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x237a21,'controller':_0x56e20c('0x1050')}},'resolve':{'zendeskAccount':['apiResolver',_0x56e20c('0x118b'),function(_0x3ec0d8,_0x4b9f30){const _0x343f12=_0x56e20c;return _0x3ec0d8[_0x343f12('0x898')](_0x343f12('0x1702'),{'fields':_0x343f12('0x176b'),'id':_0x4b9f30['id']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x329fc4,_0x452a8d){const _0x395130=_0x56e20c;return _0x329fc4[_0x395130('0x898')]('userProfileSection@get',{'fields':_0x395130('0x1134'),'userProfileId':_0x452a8d[_0x395130('0x2831')]()[_0x395130('0x1e76')],'sectionId':0x515});}]},'authenticate':!![],'permissionId':0x515,'bodyClass':_0x56e20c('0x1760')})['state'](_0x56e20c('0x2719'),{'url':_0x56e20c('0x107c'),'views':{'content@app':{'templateUrl':_0x5d05f7,'controller':_0x56e20c('0x4a7')}},'resolve':{'salesforceAccounts':['apiResolver',_0x56e20c('0x1885'),function(_0x4759b4,_0x18a065){const _0x86baf9=_0x56e20c;return _0x18a065[_0x86baf9('0x1ba2')]('admin')?_0x4759b4[_0x86baf9('0x898')](_0x86baf9('0x45a'),{'fields':_0x86baf9('0x1837'),'limit':0xa,'offset':0x0}):_0x4759b4[_0x86baf9('0x898')](_0x86baf9('0x1164'),{'id':_0x18a065[_0x86baf9('0x2831')]()[_0x86baf9('0x1e76')],'section':_0x86baf9('0x1aa0'),'fields':'createdAt,updatedAt,id,name,type,username,remoteUri,password,clientId,clientSecret,securityToken,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x56e20c('0x177'),'Auth',function(_0xe4e217,_0x1282cf){const _0x2c8b69=_0x56e20c;return _0x1282cf[_0x2c8b69('0x1ba2')](_0x2c8b69('0x20bf'))?null:_0xe4e217['resolve'](_0x2c8b69('0x235d'),{'fields':_0x2c8b69('0x8d3'),'id':_0x1282cf[_0x2c8b69('0x2831')]()[_0x2c8b69('0x1e76')]});}],'userProfileSection':['apiResolver',_0x56e20c('0x1885'),function(_0x109260,_0x56ab4a){const _0x3aa44c=_0x56e20c;return _0x56ab4a[_0x3aa44c('0x1ba2')]('admin')?null:_0x109260[_0x3aa44c('0x898')](_0x3aa44c('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x56ab4a[_0x3aa44c('0x2831')]()['userProfileId'],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x56e20c('0x1760')})['state'](_0x56e20c('0x212b'),{'url':_0x56e20c('0x2370'),'params':{'salesforceAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xde94c4,'controller':_0x56e20c('0x225a')}},'resolve':{'salesforceAccount':[_0x56e20c('0x177'),_0x56e20c('0x118b'),function(_0x25e02c,_0x598151){const _0x42f986=_0x56e20c;return _0x25e02c[_0x42f986('0x898')](_0x42f986('0x45a'),{'fields':_0x42f986('0x1837'),'id':_0x598151['id']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x2073fa,_0x5a40ee){const _0x36aba3=_0x56e20c;return _0x2073fa[_0x36aba3('0x898')](_0x36aba3('0x23e7'),{'fields':_0x36aba3('0x1134'),'userProfileId':_0x5a40ee[_0x36aba3('0x2831')]()[_0x36aba3('0x1e76')],'sectionId':0x516});}]},'authenticate':!![],'permissionId':0x516,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x23c8'),{'url':_0x56e20c('0x15a6'),'views':{'content@app':{'templateUrl':_0x21892f,'controller':_0x56e20c('0x495')}},'resolve':{'freshdeskAccounts':['apiResolver','Auth',function(_0x3963b8,_0x4996c4){const _0x18f4ba=_0x56e20c;return _0x4996c4[_0x18f4ba('0x1ba2')](_0x18f4ba('0x20bf'))?_0x3963b8[_0x18f4ba('0x898')](_0x18f4ba('0x24d'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0}):_0x3963b8[_0x18f4ba('0x898')](_0x18f4ba('0x1164'),{'id':_0x4996c4[_0x18f4ba('0x2831')]()[_0x18f4ba('0x1e76')],'section':'FreshdeskAccounts','fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x56e20c('0x177'),'Auth',function(_0x55454d,_0x3910a1){const _0x1cb5e7=_0x56e20c;return _0x3910a1[_0x1cb5e7('0x1ba2')]('admin')?null:_0x55454d[_0x1cb5e7('0x898')]('userProfile@get',{'fields':_0x1cb5e7('0x8d3'),'id':_0x3910a1[_0x1cb5e7('0x2831')]()[_0x1cb5e7('0x1e76')]});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x9832f3,_0x5db000){const _0x558d02=_0x56e20c;return _0x5db000[_0x558d02('0x1ba2')](_0x558d02('0x20bf'))?null:_0x9832f3[_0x558d02('0x898')](_0x558d02('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x5db000[_0x558d02('0x2831')]()[_0x558d02('0x1e76')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x4b3'),{'url':_0x56e20c('0x2370'),'params':{'freshdeskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x23cfd4,'controller':_0x56e20c('0xd15')}},'resolve':{'freshdeskAccount':[_0x56e20c('0x177'),_0x56e20c('0x118b'),function(_0x119399,_0x113d08){const _0x16d1d1=_0x56e20c;return _0x119399['resolve'](_0x16d1d1('0x24d'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x113d08['id']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x53ca90,_0x28321e){const _0x4ed48d=_0x56e20c;return _0x53ca90[_0x4ed48d('0x898')](_0x4ed48d('0x23e7'),{'fields':_0x4ed48d('0x1134'),'userProfileId':_0x28321e[_0x4ed48d('0x2831')]()[_0x4ed48d('0x1e76')],'sectionId':0x517});}]},'authenticate':!![],'permissionId':0x517,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x1f04'),{'url':_0x56e20c('0x1f90'),'views':{'content@app':{'templateUrl':_0x278cad,'controller':_0x56e20c('0x22a3')}},'resolve':{'sugarcrmAccounts':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0xd0fab8,_0x1c5386){const _0x5f5835=_0x56e20c;return _0x1c5386[_0x5f5835('0x1ba2')](_0x5f5835('0x20bf'))?_0xd0fab8[_0x5f5835('0x898')]('intSugarcrmAccount@get',{'fields':_0x5f5835('0x1237'),'limit':0xa,'offset':0x0}):_0xd0fab8[_0x5f5835('0x898')](_0x5f5835('0x1164'),{'id':_0x1c5386[_0x5f5835('0x2831')]()[_0x5f5835('0x1e76')],'section':_0x5f5835('0x148c'),'fields':_0x5f5835('0x1237'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x56e20c('0x177'),'Auth',function(_0xfc3e5b,_0x16dae1){const _0x55df6b=_0x56e20c;return _0x16dae1[_0x55df6b('0x1ba2')]('admin')?null:_0xfc3e5b['resolve'](_0x55df6b('0x235d'),{'fields':_0x55df6b('0x8d3'),'id':_0x16dae1[_0x55df6b('0x2831')]()[_0x55df6b('0x1e76')]});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x1c3042,_0x34c9e8){const _0x6319e3=_0x56e20c;return _0x34c9e8[_0x6319e3('0x1ba2')](_0x6319e3('0x20bf'))?null:_0x1c3042[_0x6319e3('0x898')](_0x6319e3('0x23e7'),{'fields':_0x6319e3('0x1134'),'userProfileId':_0x34c9e8['getCurrentUser']()[_0x6319e3('0x1e76')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')]('app.integrations.sugarcrmAccounts.edit',{'url':_0x56e20c('0x2370'),'params':{'sugarcrmAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x334eee,'controller':_0x56e20c('0x115e')}},'resolve':{'sugarcrmAccount':['apiResolver',_0x56e20c('0x118b'),function(_0x141c3e,_0x1150c4){const _0x3fded7=_0x56e20c;return _0x141c3e[_0x3fded7('0x898')](_0x3fded7('0xa8d'),{'fields':'createdAt,updatedAt,id,name,username,remoteUri,password,serverUrl,description','id':_0x1150c4['id']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0xe42b6c,_0x2ee206){const _0x1e4a49=_0x56e20c;return _0xe42b6c['resolve']('userProfileSection@get',{'fields':_0x1e4a49('0x1134'),'userProfileId':_0x2ee206[_0x1e4a49('0x2831')]()[_0x1e4a49('0x1e76')],'sectionId':0x519});}]},'authenticate':!![],'permissionId':0x519,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')]('app.integrations.deskAccounts',{'url':_0x56e20c('0x1935'),'views':{'content@app':{'templateUrl':_0x1f050b,'controller':'DeskAccountsController\x20as\x20vm'}},'resolve':{'deskAccounts':[_0x56e20c('0x177'),'Auth',function(_0x370534,_0x45183c){const _0x374c6c=_0x56e20c;return _0x45183c['hasRole'](_0x374c6c('0x20bf'))?_0x370534['resolve'](_0x374c6c('0x113b'),{'fields':_0x374c6c('0x20dc'),'limit':0xa,'offset':0x0}):_0x370534[_0x374c6c('0x898')]('userProfile@getResources',{'id':_0x45183c[_0x374c6c('0x2831')]()['userProfileId'],'section':_0x374c6c('0x26dd'),'fields':_0x374c6c('0x20dc'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x56e20c('0x177'),'Auth',function(_0x1dc8f1,_0x27cc6b){const _0x2769be=_0x56e20c;return _0x27cc6b['hasRole'](_0x2769be('0x20bf'))?null:_0x1dc8f1[_0x2769be('0x898')](_0x2769be('0x235d'),{'fields':_0x2769be('0x8d3'),'id':_0x27cc6b[_0x2769be('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x56e20c('0x177'),'Auth',function(_0x27e889,_0x3e1099){const _0x2eb045=_0x56e20c;return _0x3e1099['hasRole']('admin')?null:_0x27e889[_0x2eb045('0x898')](_0x2eb045('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x3e1099[_0x2eb045('0x2831')]()['userProfileId'],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0xcbb'),{'url':_0x56e20c('0x2370'),'params':{'deskAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x1abef5,'controller':_0x56e20c('0x1e9f')}},'resolve':{'deskAccount':[_0x56e20c('0x177'),_0x56e20c('0x118b'),function(_0x3a5612,_0x33843f){const _0x47f7fd=_0x56e20c;return _0x3a5612['resolve']('intDeskAccount@get',{'fields':_0x47f7fd('0x20dc'),'id':_0x33843f['id']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x2adb7b,_0x4d06da){const _0x58551a=_0x56e20c;return _0x2adb7b['resolve']('userProfileSection@get',{'fields':_0x58551a('0x1134'),'userProfileId':_0x4d06da[_0x58551a('0x2831')]()['userProfileId'],'sectionId':0x51a});}]},'authenticate':!![],'permissionId':0x51a,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')]('app.integrations.zohoAccounts',{'url':_0x56e20c('0xc42'),'views':{'content@app':{'templateUrl':_0x23d421,'controller':_0x56e20c('0x2715')}},'resolve':{'zohoAccounts':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0xb46629,_0x10c8b9){const _0x424910=_0x56e20c;return _0x10c8b9[_0x424910('0x1ba2')](_0x424910('0x20bf'))?_0xb46629[_0x424910('0x898')](_0x424910('0x162c'),{'fields':_0x424910('0x20e4'),'limit':0xa,'offset':0x0}):_0xb46629[_0x424910('0x898')](_0x424910('0x1164'),{'id':_0x10c8b9[_0x424910('0x2831')]()[_0x424910('0x1e76')],'section':_0x424910('0xbb1'),'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x1081ae,_0x1aabe1){const _0x2b37b3=_0x56e20c;return _0x1aabe1[_0x2b37b3('0x1ba2')](_0x2b37b3('0x20bf'))?null:_0x1081ae[_0x2b37b3('0x898')](_0x2b37b3('0x235d'),{'fields':'id,name,crudPermissions','id':_0x1aabe1[_0x2b37b3('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x553ecb,_0x4ca39f){const _0x1d5691=_0x56e20c;return _0x4ca39f['hasRole'](_0x1d5691('0x20bf'))?null:_0x553ecb[_0x1d5691('0x898')]('userProfileSection@get',{'fields':_0x1d5691('0x1134'),'userProfileId':_0x4ca39f[_0x1d5691('0x2831')]()[_0x1d5691('0x1e76')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x1f2d'),{'url':_0x56e20c('0x2370'),'params':{'zohoAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x3e4f29,'controller':_0x56e20c('0x1032')}},'resolve':{'zohoAccount':['apiResolver',_0x56e20c('0x118b'),function(_0x1e2edb,_0x755306){return _0x1e2edb['resolve']('intZohoAccount@get',{'fields':'createdAt,updatedAt,id,name,host,zone,clientId,clientSecret,code,refreshToken,serverUrl,description','id':_0x755306['id']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x5a72b6,_0x1ce828){const _0x9af8e3=_0x56e20c;return _0x5a72b6[_0x9af8e3('0x898')](_0x9af8e3('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x1ce828['getCurrentUser']()[_0x9af8e3('0x1e76')],'sectionId':0x51b});}]},'authenticate':!![],'permissionId':0x51b,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0xb28'),{'url':_0x56e20c('0xc91'),'views':{'content@app':{'templateUrl':_0x1ec2ea,'controller':'VtigerAccountsController\x20as\x20vm'}},'resolve':{'vtigerAccounts':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x57b972,_0x165b30){const _0x2d3b4a=_0x56e20c;return _0x165b30[_0x2d3b4a('0x1ba2')](_0x2d3b4a('0x20bf'))?_0x57b972[_0x2d3b4a('0x898')](_0x2d3b4a('0xb9d'),{'fields':_0x2d3b4a('0x1973'),'limit':0xa,'offset':0x0}):_0x57b972[_0x2d3b4a('0x898')]('userProfile@getResources',{'id':_0x165b30['getCurrentUser']()['userProfileId'],'section':_0x2d3b4a('0x1763'),'fields':'createdAt,updatedAt,id,name,description,username,accessKey,remoteUri,serverUrl','limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x56e20c('0x1885'),function(_0x62abcf,_0x333ed2){const _0x4c2f47=_0x56e20c;return _0x333ed2[_0x4c2f47('0x1ba2')](_0x4c2f47('0x20bf'))?null:_0x62abcf[_0x4c2f47('0x898')](_0x4c2f47('0x235d'),{'fields':'id,name,crudPermissions','id':_0x333ed2[_0x4c2f47('0x2831')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x56e20c('0x1885'),function(_0x3c4b7c,_0x73e78f){const _0xa65d21=_0x56e20c;return _0x73e78f[_0xa65d21('0x1ba2')](_0xa65d21('0x20bf'))?null:_0x3c4b7c[_0xa65d21('0x898')](_0xa65d21('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x73e78f[_0xa65d21('0x2831')]()['userProfileId'],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x237f'),{'url':_0x56e20c('0x2370'),'params':{'vtigerAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x13529f,'controller':_0x56e20c('0x2365')}},'resolve':{'vtigerAccount':[_0x56e20c('0x177'),_0x56e20c('0x118b'),function(_0x488c79,_0x128c05){const _0x219c48=_0x56e20c;return _0x488c79[_0x219c48('0x898')]('intVtigerAccount@get',{'fields':_0x219c48('0x1973'),'id':_0x128c05['id']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x1798be,_0x258f97){const _0x5b06c3=_0x56e20c;return _0x1798be['resolve'](_0x5b06c3('0x23e7'),{'fields':_0x5b06c3('0x1134'),'userProfileId':_0x258f97['getCurrentUser']()[_0x5b06c3('0x1e76')],'sectionId':0x51c});}]},'authenticate':!![],'permissionId':0x51c,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x14b6'),{'url':_0x56e20c('0xe64'),'views':{'content@app':{'templateUrl':_0x42fd0d,'controller':_0x56e20c('0x567')}},'resolve':{'dynamics365Accounts':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x38b8be,_0x330782){const _0x12802f=_0x56e20c;return _0x330782['hasRole'](_0x12802f('0x20bf'))?_0x38b8be[_0x12802f('0x898')]('intDynamics365Account@get',{'fields':_0x12802f('0x482'),'limit':0xa,'offset':0x0}):_0x38b8be['resolve'](_0x12802f('0x1164'),{'id':_0x330782[_0x12802f('0x2831')]()['userProfileId'],'section':_0x12802f('0x2163'),'fields':_0x12802f('0x482'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x3603a3,_0x368ec4){const _0x3acd42=_0x56e20c;return _0x368ec4[_0x3acd42('0x1ba2')](_0x3acd42('0x20bf'))?null:_0x3603a3[_0x3acd42('0x898')](_0x3acd42('0x235d'),{'fields':_0x3acd42('0x8d3'),'id':_0x368ec4['getCurrentUser']()[_0x3acd42('0x1e76')]});}],'userProfileSection':['apiResolver',_0x56e20c('0x1885'),function(_0x176444,_0x20a916){const _0x29797e=_0x56e20c;return _0x20a916[_0x29797e('0x1ba2')](_0x29797e('0x20bf'))?null:_0x176444['resolve'](_0x29797e('0x23e7'),{'fields':_0x29797e('0x1134'),'userProfileId':_0x20a916[_0x29797e('0x2831')]()[_0x29797e('0x1e76')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')]('app.integrations.dynamics365Accounts.edit',{'url':'/:id?tab','params':{'dynamics365Account':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x5e63a4,'controller':_0x56e20c('0x2016')}},'resolve':{'dynamics365Account':[_0x56e20c('0x177'),_0x56e20c('0x118b'),function(_0x302f4,_0x52b165){const _0x59108d=_0x56e20c;return _0x302f4[_0x59108d('0x898')](_0x59108d('0x26f2'),{'fields':_0x59108d('0x482'),'id':_0x52b165['id']});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x4d2995,_0x4f89a6){const _0x2c0c4d=_0x56e20c;return _0x4d2995[_0x2c0c4d('0x898')]('userProfileSection@get',{'fields':_0x2c0c4d('0x1134'),'userProfileId':_0x4f89a6['getCurrentUser']()[_0x2c0c4d('0x1e76')],'sectionId':0x51d});}]},'authenticate':!![],'permissionId':0x51d,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x29a'),{'url':_0x56e20c('0x3f2'),'views':{'content@app':{'templateUrl':_0x5b405a,'controller':_0x56e20c('0x1351')}},'resolve':{'servicenowAccounts':['apiResolver',_0x56e20c('0x1885'),function(_0x59a714,_0x153186){const _0x30faca=_0x56e20c;return _0x153186[_0x30faca('0x1ba2')](_0x30faca('0x20bf'))?_0x59a714['resolve']('intServicenowAccount@get',{'fields':_0x30faca('0x4dc'),'limit':0xa,'offset':0x0}):_0x59a714[_0x30faca('0x898')](_0x30faca('0x1164'),{'id':_0x153186['getCurrentUser']()[_0x30faca('0x1e76')],'section':_0x30faca('0x4e9'),'fields':'createdAt,updatedAt,id,name,username,password,email,remoteUri,serverUrl,description','limit':0xa,'offset':0x0});}],'userProfile':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x244417,_0x2b5196){const _0x479f21=_0x56e20c;return _0x2b5196[_0x479f21('0x1ba2')]('admin')?null:_0x244417[_0x479f21('0x898')](_0x479f21('0x235d'),{'fields':_0x479f21('0x8d3'),'id':_0x2b5196['getCurrentUser']()[_0x479f21('0x1e76')]});}],'userProfileSection':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x2f9af0,_0x17e077){const _0x16b901=_0x56e20c;return _0x17e077[_0x16b901('0x1ba2')](_0x16b901('0x20bf'))?null:_0x2f9af0['resolve'](_0x16b901('0x23e7'),{'fields':_0x16b901('0x1134'),'userProfileId':_0x17e077['getCurrentUser']()[_0x16b901('0x1e76')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x2268'),{'url':'/:id?tab','params':{'servicenowAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x168393,'controller':_0x56e20c('0x1e0a')}},'resolve':{'servicenowAccount':[_0x56e20c('0x177'),_0x56e20c('0x118b'),function(_0x34133e,_0x2d24ef){const _0x55fffd=_0x56e20c;return _0x34133e[_0x55fffd('0x898')](_0x55fffd('0x39d'),{'fields':_0x55fffd('0x4dc'),'id':_0x2d24ef['id']});}],'userProfileSection':['apiResolver',_0x56e20c('0x1885'),function(_0x18b00c,_0x555ee9){const _0x450a7c=_0x56e20c;return _0x18b00c[_0x450a7c('0x898')](_0x450a7c('0x23e7'),{'fields':_0x450a7c('0x1134'),'userProfileId':_0x555ee9['getCurrentUser']()[_0x450a7c('0x1e76')],'sectionId':0x51e});}]},'authenticate':!![],'permissionId':0x51e,'bodyClass':_0x56e20c('0x1760')})[_0x56e20c('0x1b9a')](_0x56e20c('0x363'),{'url':_0x56e20c('0x27d4'),'views':{'content@app':{'templateUrl':_0x554fb2,'controller':'FreshsalesAccountsController\x20as\x20vm'}},'resolve':{'freshsalesAccounts':[_0x56e20c('0x177'),'Auth',function(_0x18f4b1,_0x2a4bc4){const _0x2a5e69=_0x56e20c;return _0x2a4bc4[_0x2a5e69('0x1ba2')]('admin')?_0x18f4b1[_0x2a5e69('0x898')]('intFreshsalesAccount@get',{'fields':_0x2a5e69('0x4ca'),'limit':0xa,'offset':0x0}):_0x18f4b1[_0x2a5e69('0x898')](_0x2a5e69('0x1164'),{'id':_0x2a4bc4[_0x2a5e69('0x2831')]()['userProfileId'],'section':_0x2a5e69('0xe7f'),'fields':_0x2a5e69('0x4ca'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x56e20c('0x177'),_0x56e20c('0x1885'),function(_0x5f3308,_0x3dfc0f){const _0x32ad69=_0x56e20c;return _0x3dfc0f[_0x32ad69('0x1ba2')](_0x32ad69('0x20bf'))?null:_0x5f3308[_0x32ad69('0x898')](_0x32ad69('0x235d'),{'fields':_0x32ad69('0x8d3'),'id':_0x3dfc0f[_0x32ad69('0x2831')]()[_0x32ad69('0x1e76')]});}],'userProfileSection':[_0x56e20c('0x177'),'Auth',function(_0x39dee4,_0x15b870){const _0xb839c=_0x56e20c;return _0x15b870[_0xb839c('0x1ba2')](_0xb839c('0x20bf'))?null:_0x39dee4[_0xb839c('0x898')](_0xb839c('0x23e7'),{'fields':_0xb839c('0x1134'),'userProfileId':_0x15b870[_0xb839c('0x2831')]()[_0xb839c('0x1e76')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x56e20c('0x1760')})['state'](_0x56e20c('0x21a1'),{'url':'/:id?tab','params':{'freshsalesAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xcc323e,'controller':'FreshsalesAccountController\x20as\x20vm'}},'resolve':{'freshsalesAccount':[_0x56e20c('0x177'),'$stateParams',function(_0x15ec15,_0x51bddd){return _0x15ec15['resolve']('intFreshsalesAccount@get',{'fields':'createdAt,updatedAt,id,name,username,remoteUri,apiKey,serverUrl,description','id':_0x51bddd['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x4a9dc1,_0x5618f5){const _0x317b9c=_0x56e20c;return _0x4a9dc1[_0x317b9c('0x898')]('userProfileSection@get',{'fields':_0x317b9c('0x1134'),'userProfileId':_0x5618f5[_0x317b9c('0x2831')]()[_0x317b9c('0x1e76')],'sectionId':0x518});}]},'authenticate':!![],'permissionId':0x518,'bodyClass':_0x56e20c('0x1760')}),_0x773119[_0x56e20c('0x10b3')](_0x56e20c('0x1884'));}angular['module'](_0x4376d8('0x1eb'),['ngCsv',_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),'mdPickers',_0x4376d8('0xcfd'),'mwFormViewer',_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),'angular-cron-jobs',_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),'angular.filter'])[_0x4376d8('0x1980')](_0x4ab015)[_0x4376d8('0x5ce')](_0x4376d8('0x16db'),_0x17b419)[_0x4376d8('0x5ce')](_0x4376d8('0x2290'),_0x2a5132)[_0x4376d8('0x5ce')]('DeskAccountConfigurationsController',_0x12c870)[_0x4376d8('0x5ce')](_0x4376d8('0x2593'),_0x4a8941)[_0x4376d8('0x5ce')](_0x4376d8('0x2523'),_0x3b0bbf)['controller'](_0x4376d8('0x1af'),_0x42b152)[_0x4376d8('0x5ce')]('CreateOrEditDynamics365AccountDialogController',_0x5030b7)[_0x4376d8('0x5ce')](_0x4376d8('0x113d'),_0x427d8f)[_0x4376d8('0x5ce')]('Dynamics365AccountConfigurationsController',_0x1f4f51)[_0x4376d8('0x5ce')](_0x4376d8('0x1e71'),_0x5d5a24)[_0x4376d8('0x5ce')](_0x4376d8('0xbcb'),_0x48f50c)['controller'](_0x4376d8('0x121e'),_0x43dcd4)[_0x4376d8('0x5ce')]('CreateOrEditFreshdeskAccountDialogController',_0x19fa2b)[_0x4376d8('0x5ce')](_0x4376d8('0xb8'),_0x59cf45)[_0x4376d8('0x5ce')](_0x4376d8('0x27c7'),_0x1f4126)['controller'](_0x4376d8('0x1e06'),_0x1126f7)[_0x4376d8('0x5ce')](_0x4376d8('0x34e'),_0x16f815)[_0x4376d8('0x5ce')](_0x4376d8('0xc97'),_0x48f374)[_0x4376d8('0x5ce')](_0x4376d8('0x5b'),_0x130d5b)[_0x4376d8('0x5ce')](_0x4376d8('0x10b1'),_0x2b181e)['controller'](_0x4376d8('0x1607'),_0xcd6720)[_0x4376d8('0x5ce')](_0x4376d8('0x1c2c'),_0x10bb89)[_0x4376d8('0x5ce')]('FreshsalesAccountController',_0x258f98)[_0x4376d8('0x5ce')](_0x4376d8('0x307'),_0x275cc9)['controller'](_0x4376d8('0x19e3'),_0x5be889)[_0x4376d8('0x5ce')]('SalesforceAccountConfigurationsController',_0x3ee80c)['controller'](_0x4376d8('0x195d'),_0x169f44)[_0x4376d8('0x5ce')](_0x4376d8('0x222b'),_0x5547c0)['controller'](_0x4376d8('0x263b'),_0x3acce8)[_0x4376d8('0x5ce')]('SalesforceAccountsController',_0x1dc397)[_0x4376d8('0x5ce')](_0x4376d8('0x1ad5'),_0xe2cdc)['controller'](_0x4376d8('0x1a40'),_0x43b073)[_0x4376d8('0x5ce')](_0x4376d8('0x1909'),_0x2bf3a6)['controller'](_0x4376d8('0xc95'),_0x318cc1)[_0x4376d8('0x5ce')](_0x4376d8('0x186f'),_0x2f046c)[_0x4376d8('0x5ce')](_0x4376d8('0xb3e'),_0x538347)[_0x4376d8('0x5ce')](_0x4376d8('0xbfa'),_0x10bcc4)[_0x4376d8('0x5ce')]('SugarcrmAccountConfigurationsController',_0x54d974)[_0x4376d8('0x5ce')](_0x4376d8('0x9ca'),_0xcfe6e3)['controller'](_0x4376d8('0x2546'),_0x478b48)['controller'](_0x4376d8('0x91'),_0x6fc0c0)['controller'](_0x4376d8('0x232f'),_0x3764ab)[_0x4376d8('0x5ce')](_0x4376d8('0x1c30'),_0x3d7b1e)['controller']('VtigerAccountConfigurationsController',_0x5e2c00)['controller'](_0x4376d8('0xbde'),_0x1686bb)[_0x4376d8('0x5ce')](_0x4376d8('0x1efb'),_0x556f3d)[_0x4376d8('0x5ce')](_0x4376d8('0x1e25'),_0x582d1d)['controller'](_0x4376d8('0x1c18'),_0x2ec4b9)[_0x4376d8('0x5ce')](_0x4376d8('0x252b'),_0xb72976)[_0x4376d8('0x5ce')](_0x4376d8('0xfe9'),_0xcfbeb7)['controller'](_0x4376d8('0x25f8'),_0x1cb022)['controller'](_0x4376d8('0x20bb'),_0x1d0ad8)['controller'](_0x4376d8('0x2026'),_0x2c27eb)['controller']('ZendeskAccountsController',_0x4660b0)['controller'](_0x4376d8('0x28ae'),_0x2aecac)[_0x4376d8('0x5ce')]('ZohoAccountConfigurationsController',_0x249121)[_0x4376d8('0x5ce')](_0x4376d8('0x4f8'),_0x5c2b05)[_0x4376d8('0x5ce')](_0x4376d8('0xaf'),_0x307b6d)[_0x4376d8('0x5ce')](_0x4376d8('0xfb1'),_0x58a8bc)['controller']('ZohoAccountsController',_0x445461);const _0x26ecd8=_0x4cf2bc['p']+_0x4376d8('0x3a1'),_0x200a5d=_0x4cf2bc['p']+_0x4376d8('0x1e68'),_0x42b214=_0x4cf2bc['p']+_0x4376d8('0x37d');_0x481954[_0x4376d8('0x1b9c')]=['$document','$mdDialog',_0x4376d8('0xc4c'),_0x4376d8('0x1d11'),'toasty','api'];function _0x481954(_0x2c8d53,_0x426ca6,_0x534d0f,_0xf96f40,_0x25f612,_0x57eabd){const _0x594018=_0x4376d8,_0x3e58bc=this;_0x3e58bc[_0x594018('0x1d11')]=_0xf96f40||{},_0x3e58bc[_0x594018('0x25ea')]=0x0,_0x3e58bc['users']=0x0,_0x3e58bc[_0x594018('0xd51')]=0x0,_0x3e58bc[_0x594018('0x108b')]=[{'name':_0x594018('0x1fe1'),'icon':_0x594018('0x23de')},{'name':_0x594018('0x2219'),'icon':_0x594018('0x1fff')},{'name':_0x594018('0xc2'),'icon':_0x594018('0x1f8b')},{'name':'messaging','icon':_0x594018('0x1469')},{'name':_0x594018('0xc23'),'icon':'icon-deskphone'},{'name':'openchannel','icon':'icon-google-earth'},{'name':_0x594018('0x1d27'),'icon':_0x594018('0x1485')}],_0x3e58bc[_0x594018('0x1f4d')]=[{'name':'cm','icon':_0x594018('0x181c')},{'name':_0x594018('0x1646'),'icon':_0x594018('0x2a3')},{'name':_0x594018('0x2343'),'icon':_0x594018('0x1cd0')}],_0x3e58bc[_0x594018('0xa47')]=[{'name':_0x594018('0x4b6'),'icon':_0x594018('0x27b3')},{'name':'jaws','icon':'icon-fish'},{'name':_0x594018('0x8fa'),'icon':_0x594018('0x6a3')},{'name':_0x594018('0xf1a'),'icon':_0x594018('0x28e')},{'name':'ai','icon':_0x594018('0x1640')}],_0x3e58bc[_0x594018('0x17d9')]=[{'name':'callysquare','icon':'icon-sitemap','restart':!![],'label':_0x594018('0x108b'),'enabled':_0x594018('0x1fe1')},{'name':_0x594018('0x2467'),'icon':'icon-dots-horizontal','restart':![],'label':'sessions','enabled':'chat'}],_0x3e58bc[_0x594018('0xb1f')]=[{'name':'update','icon':_0x594018('0x1f9a')}],_0x57eabd[_0x594018('0x221e')][_0x594018('0x1c53')]({'fields':'id','role':_0x594018('0x684'),'online':!![]})['$promise'][_0x594018('0x17e7')](function(_0x1dcb11){const _0x34e232=_0x594018;return _0x3e58bc[_0x34e232('0x25ea')]=_0x1dcb11&&_0x1dcb11[_0x34e232('0x335')]?_0x1dcb11[_0x34e232('0x335')]:0x0,_0x57eabd[_0x34e232('0x221e')]['get']({'fields':'id','role':'user,admin'})[_0x34e232('0x1af5')];})['then'](function(_0x24aead){const _0x4bdb96=_0x594018;return _0x3e58bc[_0x4bdb96('0x12ed')]=_0x24aead&&_0x24aead[_0x4bdb96('0x335')]?_0x24aead[_0x4bdb96('0x335')]:0x0,_0x57eabd[_0x4bdb96('0x221e')][_0x4bdb96('0x1c53')]({'fields':'id','role':_0x4bdb96('0x21b5')})[_0x4bdb96('0x1af5')];})[_0x594018('0x17e7')](function(_0x292c51){const _0x3f888e=_0x594018;_0x3e58bc['telephones']=_0x292c51&&_0x292c51[_0x3f888e('0x335')]?_0x292c51[_0x3f888e('0x335')]:0x0;})['catch'](function(_0x130d47){console['log'](_0x130d47);});function _0x19b64e(_0xff2dfe){const _0x2ccaf3=_0x594018;_0x426ca6[_0x2ccaf3('0x28e2')]({'controller':_0x2ccaf3('0x12ac'),'controllerAs':'vm','templateUrl':_0x200a5d,'parent':angular[_0x2ccaf3('0x1ce1')](_0x2c8d53[_0x2ccaf3('0x13aa')]),'targetEvent':_0xff2dfe,'clickOutsideToClose':!![],'locals':{'license':_0xf96f40}});}function _0x4ebb01(_0x52ec45){const _0xacf687=_0x594018;_0x426ca6[_0xacf687('0x28e2')]({'controller':_0xacf687('0x219e'),'controllerAs':'vm','templateUrl':_0x42b214,'parent':angular['element'](_0x2c8d53[_0xacf687('0x13aa')]),'targetEvent':_0x52ec45,'clickOutsideToClose':!![],'locals':{'license':_0xf96f40,'channels':_0x3e58bc['channels'],'modules':_0x3e58bc[_0xacf687('0x1f4d')],'addons':_0x3e58bc[_0xacf687('0xa47')],'sessions':_0x3e58bc[_0xacf687('0x17d9')],'others':_0x3e58bc['others']}});}function _0x39ed2c(){_0x534d0f['go']('app.settings.system',{'tab':0x1});}_0x3e58bc[_0x594018('0x209f')]=_0x4ebb01,_0x3e58bc['updateLicense']=_0x19b64e,_0x3e58bc[_0x594018('0x8a7')]=_0x39ed2c;}const _0x32e566=_0x481954;_0x57510c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x1d11'),_0x4376d8('0x108b'),_0x4376d8('0x1f4d'),'addons',_0x4376d8('0x17d9'),_0x4376d8('0xb1f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x28da')];function _0x57510c(_0x2b16b5,_0x1dc08a,_0x3bef66,_0x2921a3,_0x1930fa,_0x4d906a,_0x48c824,_0x5e0711,_0x387e10,_0x212de8,_0x4e8877){const _0x2268b0=_0x4376d8,_0x2e6431=this;_0x2e6431['errors']=[],_0x2e6431['user']=_0x212de8[_0x2268b0('0x2831')](),_0x2e6431[_0x2268b0('0x1d11')]=angular[_0x2268b0('0x14e5')](_0x3bef66),_0x2e6431['channels']=_0x2921a3,_0x2e6431[_0x2268b0('0x1f4d')]=_0x1930fa,_0x2e6431[_0x2268b0('0xa47')]=_0x4d906a,_0x2e6431[_0x2268b0('0x17d9')]=_0x48c824,_0x2e6431[_0x2268b0('0xb1f')]=_0x5e0711,_0x2e6431[_0x2268b0('0x1d11')][_0x2268b0('0x2aa')]=_0x2e6431['user'][_0x2268b0('0xea6')],_0x2e6431['license'][_0x2268b0('0x822')]=_0x2e6431[_0x2268b0('0x221e')][_0x2268b0('0x822')],_0x2e6431['sendRequest']=_0x4856c9,_0x2e6431['closeDialog']=_0x30dffb;function _0x4856c9(){const _0x1f97b9=_0x2268b0;_0x2e6431[_0x1f97b9('0x73e')]=[],_0x2e6431[_0x1f97b9('0x23c3')]=_0x1f97b9('0x2093');for(const _0x42fdec in _0x2e6431[_0x1f97b9('0x1d11')]){typeof _0x2e6431[_0x1f97b9('0x1d11')][_0x42fdec]!==_0x1f97b9('0xfad')&&!_0x49cbdd()[_0x1f97b9('0x24b0')](['$promise',_0x1f97b9('0x1314')],_0x42fdec)&&(_0x3bef66[_0x42fdec]===_0x2e6431[_0x1f97b9('0x1d11')][_0x42fdec]?_0x2e6431['table']+='|'+_0x42fdec+'|'+(_0x3bef66[_0x42fdec]!==undefined?_0x3bef66[_0x42fdec]:'')+'|'+_0x2e6431[_0x1f97b9('0x1d11')][_0x42fdec]+'|\x0a':_0x2e6431[_0x1f97b9('0x23c3')]+='|'+_0x42fdec+_0x1f97b9('0x31b')+(_0x3bef66[_0x42fdec]!==undefined?_0x3bef66[_0x42fdec]:'')+_0x1f97b9('0x16c5')+_0x2e6431['license'][_0x42fdec]+_0x1f97b9('0x1cc7'));}_0x387e10[_0x1f97b9('0xb38')][_0x1f97b9('0x2439')]({'key':_0x1f97b9('0x1f48'),'summary':_0x1f97b9('0x255f'),'description':_0x2e6431['table'],'issuetype':_0x1f97b9('0x2170')})[_0x1f97b9('0x1af5')][_0x1f97b9('0x17e7')](function(){const _0xb391f2=_0x1f97b9;_0x1dc08a[_0xb391f2('0x130d')]({'title':'Request\x20sent!','msg':_0x4e8877[_0xb391f2('0x1acc')]('SETTINGS.LICENSE_REQUEST_SENT'),'timeout':0x3a98}),_0x30dffb();})[_0x1f97b9('0x16df')](function(_0x27a755){const _0x1f3c1f=_0x1f97b9;console[_0x1f3c1f('0x1db9')](_0x27a755),_0x2e6431[_0x1f3c1f('0x73e')]=[{'message':_0x4e8877[_0x1f3c1f('0x1acc')](_0x1f3c1f('0x1e16')),'type':_0x1f3c1f('0x1226')}];});}function _0x30dffb(){const _0x4bccbd=_0x2268b0;_0x2b16b5[_0x4bccbd('0x212a')]();}}const _0x5ece71=_0x57510c;_0x446302[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x1d11'),_0x4376d8('0x212e')];function _0x446302(_0x4892eb,_0x1a2d5f,_0x4711a6,_0x2c8abe){const _0x366f68=_0x4376d8,_0x544137=this;_0x544137['errors']=[],_0x544137[_0x366f68('0x1d11')]=angular[_0x366f68('0x14e5')](_0x4711a6),_0x544137[_0x366f68('0x204e')],_0x544137[_0x366f68('0x20db')]=_0x59c525,_0x544137[_0x366f68('0x136e')]=_0x100c36;function _0x59c525(){const _0x50031c=_0x366f68;return _0x2c8abe[_0x50031c('0x1d11')][_0x50031c('0x27ba')]({'id':0x1,'key':_0x544137['licenseKey']})[_0x50031c('0x1af5')][_0x50031c('0x17e7')](function(_0x2d2292){const _0x1c3410=_0x50031c;_0x2d2292&&(_0x2d2292[_0x1c3410('0x21d3')]?_0x1a2d5f['error']({'title':_0x1c3410('0x20ed'),'msg':'Invalid\x20license\x20key'}):_0x1a2d5f[_0x1c3410('0x130d')]({'title':'License\x20properly\x20updated!','msg':_0x1c3410('0x2e')}));})[_0x50031c('0x16df')](function(_0x1b5cfd){const _0x47a840=_0x50031c;_0x1a2d5f[_0x47a840('0x1db9')]({'title':_0x1b5cfd[_0x47a840('0x11c5')]?_0x47a840('0x14f7')+_0x1b5cfd[_0x47a840('0x11c5')]+'\x20-\x20'+_0x1b5cfd['statusText']:_0x47a840('0x26d7'),'msg':_0x1b5cfd[_0x47a840('0x1457')]?JSON[_0x47a840('0x678')](_0x1b5cfd['data']):_0x1b5cfd['toString']()});});}function _0x100c36(){const _0x56a0cd=_0x366f68;_0x4892eb[_0x56a0cd('0x212a')]();}}const _0x579d23=_0x446302;_0x475363[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x475363(_0x2107e6){const _0x5052ce=_0x4376d8;_0x2107e6[_0x5052ce('0x1b9a')](_0x5052ce('0x2159'),{'url':_0x5052ce('0x143a'),'views':{'content@app':{'templateUrl':_0x26ecd8,'controller':_0x5052ce('0x266e')}},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x5052ce('0x429')});}angular['module'](_0x4376d8('0x2159'),[])[_0x4376d8('0x1980')](_0x475363)['controller']('LicenseController',_0x32e566)[_0x4376d8('0x5ce')](_0x4376d8('0x219e'),_0x5ece71)[_0x4376d8('0x5ce')](_0x4376d8('0x12ac'),_0x579d23);const _0x478ff3=_0x4cf2bc['p']+_0x4376d8('0x1742');_0x154552['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x33a'),'$mdDialog',_0x4376d8('0xc4c'),_0x4376d8('0xca8'),'processes',_0x4376d8('0x108a'),_0x4376d8('0x212e')];function _0x154552(_0x31fdee,_0x49cd4a,_0x1a4fcd,_0x2142bb,_0x3d8187,_0x107f70,_0x22a6b9,_0x1a6c1a){const _0x160c9c=_0x4376d8,_0x3c3ba3=this;let _0x6df91d=null;_0x3c3ba3[_0x160c9c('0xca8')]=_0x3d8187||{},_0x3c3ba3[_0x160c9c('0xc51')]=_0x107f70?_0x107f70[_0x160c9c('0x2319')]:[],_0x3c3ba3[_0x160c9c('0xf6f')]=0x7,_0x3c3ba3[_0x160c9c('0xde7')]=_0x2142bb[_0x160c9c('0x16fb')][_0x160c9c('0x1523')]||0x0,_0x3c3ba3[_0x160c9c('0x32f')]=_0x637acc,_0x3c3ba3[_0x160c9c('0x2633')]=_0xbee566,_0x3c3ba3[_0x160c9c('0xfde')]=_0x25aff2,_0x3c3ba3[_0x160c9c('0x848')]=_0x348681;function _0x25aff2(){const _0x575716=_0x160c9c;_0x49cd4a[_0x575716('0x1d47')](_0x6df91d),_0x6df91d=null;}function _0x348681(_0x39136,_0x214529,_0x37c2f6){const _0x4da285=_0x160c9c,_0x3aa3e0=_0x1a4fcd[_0x4da285('0x1121')]()[_0x4da285('0x24d3')](_0x4da285('0x533')+_0x214529+'?')['textContent'](_0x4da285('0x2440')+_0x37c2f6[_0x4da285('0x14e2')]())[_0x4da285('0x2095')](_0x4da285('0x20d2'))['targetEvent'](_0x39136)['ok']('Ok')['cancel']('Cancel');_0x1a4fcd[_0x4da285('0x28e2')](_0x3aa3e0)[_0x4da285('0x17e7')](function(){const _0x105f1b=_0x4da285;return _0x1a6c1a[_0x105f1b('0x9a1')][_0x105f1b('0x27ba')]({'id':_0x214529,'status':_0x37c2f6});})[_0x4da285('0x17e7')](function(){const _0x67993f=_0x4da285;_0x49cd4a(_0x3c3ba3[_0x67993f('0x2633')],0x3e8,0x1);})['then'](function(){const _0x516b5b=_0x4da285;_0x22a6b9[_0x516b5b('0x130d')]({'title':_0x516b5b('0x121c'),'msg':_0x516b5b('0x9e0')+_0x37c2f6});});}function _0x637acc(){const _0x1151de=_0x160c9c;return _0x1a6c1a['system']['get']()[_0x1151de('0x1af5')]['then'](function(_0x3ed454){const _0x2167da=_0x1151de;_0x49cbdd()[_0x2167da('0x1ced')](_0x3c3ba3['system'],_0x3ed454);})[_0x1151de('0x16df')](_0x3c3ba3['cancelInterval']);}function _0xbee566(){const _0x5da9b1=_0x160c9c;return _0x1a6c1a[_0x5da9b1('0x9a1')][_0x5da9b1('0x1c53')]()[_0x5da9b1('0x1af5')][_0x5da9b1('0x17e7')](function(_0x249a37){const _0x235cf0=_0x5da9b1;_0x49cbdd()[_0x235cf0('0x1ced')](_0x3c3ba3[_0x235cf0('0xc51')],_0x249a37?_0x249a37[_0x235cf0('0x2319')]:[]);})['catch'](_0x3c3ba3[_0x5da9b1('0xfde')]);}_0x6df91d=_0x49cd4a(_0x3c3ba3['getInfo'],0x1388),_0x31fdee[_0x160c9c('0x207c')](_0x160c9c('0x2b4'),function(){_0x3c3ba3['cancelInterval']();});}const _0x500f23=_0x154552;_0x3003a1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x3003a1(_0xdef0da){const _0x3e4dde=_0x4376d8;_0xdef0da[_0x3e4dde('0x1b9a')]('app.settings.system',{'url':'/system?tab','views':{'content@app':{'templateUrl':_0x478ff3,'controller':_0x3e4dde('0x4ea')}},'resolve':{'system':[_0x3e4dde('0x177'),function(_0x213f15){const _0x20c14c=_0x3e4dde;return _0x213f15[_0x20c14c('0x898')]('system@get');}],'processes':[_0x3e4dde('0x177'),function(_0x18d9a3){const _0x151801=_0x3e4dde;return _0x18d9a3[_0x151801('0x898')](_0x151801('0x157e'));}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x3e4dde('0x429')});}angular[_0x4376d8('0x11c4')]('app.settings.system',[])['config'](_0x3003a1)[_0x4376d8('0x5ce')](_0x4376d8('0x27bf'),_0x500f23);const _0x2ca618=_0x4cf2bc['p']+_0x4376d8('0xd0e');_0x3836a5[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x33a'),'$window','$timeout',_0x4376d8('0x212e')];function _0x3836a5(_0x5836d6,_0x57660e,_0x4d92f1,_0x4d4fd6,_0x12fdb4){const _0x8c3fee=_0x4376d8,_0x3ad81d=this;_0x3ad81d[_0x8c3fee('0x24d3')]=_0x8c3fee('0x111b'),_0x3ad81d[_0x8c3fee('0x2f')]=0x0,_0x3ad81d[_0x8c3fee('0x254d')]=!![],_0x3ad81d[_0x8c3fee('0x2ad')]=_0x8c3fee('0x1911'),_0x3ad81d['success']=!![],_0x3ad81d['interval']=_0x57660e(function(){const _0x37face=_0x8c3fee;_0x3ad81d[_0x37face('0x2f')]<0x5a&&(_0x3ad81d[_0x37face('0x2f')]+=0x1);},0x3e8),_0x12fdb4[_0x8c3fee('0x20eb')]['fetch']()[_0x8c3fee('0x1af5')][_0x8c3fee('0x17e7')](function(_0x26bc51){const _0x9f7367=_0x8c3fee;return _0x3ad81d[_0x9f7367('0x2ad')]=_0x26bc51[_0x9f7367('0x2ad')]+_0x9f7367('0x26a5'),_0x12fdb4[_0x9f7367('0x20eb')][_0x9f7367('0x2a9')]()['$promise'];})[_0x8c3fee('0x17e7')](function(_0x593e8e){const _0xc7ee62=_0x8c3fee;return _0x3ad81d[_0xc7ee62('0x2ad')]=_0x593e8e[_0xc7ee62('0x2ad')]+_0xc7ee62('0x26a5'),_0x12fdb4[_0xc7ee62('0x20eb')][_0xc7ee62('0x1a81')]()[_0xc7ee62('0x1af5')];})[_0x8c3fee('0x17e7')](function(_0x2da031){const _0x2206f7=_0x8c3fee;return _0x3ad81d['output']=_0x2da031[_0x2206f7('0x2ad')]+_0x2206f7('0x26a5'),_0x12fdb4[_0x2206f7('0x20eb')][_0x2206f7('0xbff')]()[_0x2206f7('0x1af5')];})[_0x8c3fee('0x17e7')](function(_0x4616ce){const _0x47c478=_0x8c3fee;return _0x3ad81d[_0x47c478('0x2ad')]=_0x4616ce[_0x47c478('0x2ad')]+_0x47c478('0x26a5'),_0x12fdb4[_0x47c478('0x20eb')][_0x47c478('0x10f4')]()[_0x47c478('0x1af5')];})[_0x8c3fee('0x17e7')](function(){_0x3ad81d['output']='Waiting\x20to\x20restart\x20motion...',_0x4d4fd6(function(){_0x3ad81d['stopInterval']();},0x7530);})[_0x8c3fee('0x16df')](function(_0x69780c){const _0x2b6735=_0x8c3fee;_0x3ad81d['success']=![],_0x3ad81d[_0x2b6735('0x1a19')](),_0x3ad81d[_0x2b6735('0x2ad')]=JSON['stringify'](_0x69780c);});function _0x4e852d(){const _0x391f65=_0x8c3fee;angular['isDefined'](_0x3ad81d[_0x391f65('0x231f')])&&(_0x57660e['cancel'](_0x3ad81d[_0x391f65('0x231f')]),_0x3ad81d[_0x391f65('0x231f')]=undefined),_0x3ad81d[_0x391f65('0x2f')]=0x64,_0x3ad81d[_0x391f65('0x254d')]=![];}function _0x36c7ee(){const _0x394719=_0x8c3fee;_0x4d92f1[_0x394719('0xaed')]['reload']();}function _0x2bdc9e(){const _0x48c161=_0x8c3fee;_0x5836d6[_0x48c161('0x212a')]();}_0x3ad81d[_0x8c3fee('0x136e')]=_0x2bdc9e,_0x3ad81d[_0x8c3fee('0x19e0')]=_0x36c7ee,_0x3ad81d[_0x8c3fee('0x1a19')]=_0x4e852d;}const _0x5f2a55=_0x3836a5,_0x315c23=_0x4cf2bc['p']+'src/js/modules/main/apps/settings/views/updates/update/dialog.html/dialog.html';_0x48a61b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0x33a'),_0x4376d8('0x26ca'),_0x4376d8('0x20eb')];function _0x48a61b(_0x48deed,_0x477c58,_0x16b610,_0x5e62d1){const _0x4894a5=this;_0x4894a5['version']=_0x5e62d1||{};function _0x20f075(_0x1fbe39){const _0x501f8b=a0_0xd29e,_0x3f9697=_0x48deed['confirm']()['title'](_0x501f8b('0x1dc2'))[_0x501f8b('0x211f')](_0x501f8b('0xf63'))[_0x501f8b('0x2095')]('')[_0x501f8b('0x104f')](_0x1fbe39)[_0x501f8b('0x2f4')](!![])[_0x501f8b('0x14e')](angular[_0x501f8b('0x1ce1')](_0x16b610[_0x501f8b('0x13aa')]))['ok']('I\x20agree')[_0x501f8b('0x1d47')]('Disagree');_0x48deed['show'](_0x3f9697)[_0x501f8b('0x17e7')](function(){const _0x1068b7=_0x501f8b;_0x48deed[_0x1068b7('0x28e2')]({'controller':_0x1068b7('0x20dd'),'controllerAs':'vm','templateUrl':_0x315c23,'parent':angular['element'](_0x16b610[_0x1068b7('0x13aa')]),'targetEvent':_0x1fbe39,'clickOutsideToClose':![]});});}_0x4894a5['updateConfirm']=_0x20f075;}const _0x3a14a5=_0x48a61b;_0xd1b817['$inject']=['$stateProvider'];function _0xd1b817(_0x4de2d4){const _0x2f76f8=_0x4376d8;_0x4de2d4[_0x2f76f8('0x1b9a')](_0x2f76f8('0xad5'),{'url':_0x2f76f8('0x241d'),'views':{'content@app':{'templateUrl':_0x2ca618,'controller':_0x2f76f8('0x1017')}},'resolve':{'version':['apiResolver',function(_0x2367ee){const _0x303e8a=_0x2f76f8;return _0x2367ee[_0x303e8a('0x898')](_0x303e8a('0x325'),{'latest':!![]});}],'userProfile':[_0x2f76f8('0x177'),'Auth',function(_0x227e53,_0x242d9d){const _0x5ebd7e=_0x2f76f8;return _0x227e53['resolve'](_0x5ebd7e('0x235d'),{'fields':_0x5ebd7e('0x8d3'),'id':_0x242d9d[_0x5ebd7e('0x2831')]()[_0x5ebd7e('0x1e76')]});}],'userProfileSection':[_0x2f76f8('0x177'),'Auth',function(_0x5e9ff1,_0x14cc43){const _0x1496dd=_0x2f76f8;return _0x5e9ff1[_0x1496dd('0x898')](_0x1496dd('0x23e7'),{'fields':_0x1496dd('0x1134'),'userProfileId':_0x14cc43[_0x1496dd('0x2831')]()['userProfileId'],'sectionId':0x578});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'});}angular[_0x4376d8('0x11c4')](_0x4376d8('0xad5'),[])[_0x4376d8('0x1980')](_0xd1b817)[_0x4376d8('0x5ce')]('UpdateDialogController',_0x5f2a55)[_0x4376d8('0x5ce')]('UpdatesController',_0x3a14a5);const _0x348bf5=_0x4cf2bc['p']+_0x4376d8('0x1619'),_0x15a737=_0x4cf2bc['p']+_0x4376d8('0x2583'),_0x3ef185=_0x4cf2bc['p']+_0x4376d8('0x1f5'),_0x29fa82=_0x4cf2bc['p']+_0x4376d8('0xc5c'),_0x3422b0=_0x4cf2bc['p']+_0x4376d8('0x97d'),_0x2cfded=_0x4cf2bc['p']+'src/js/modules/main/apps/settings/views/cloudProviders/create/dialog.html/dialog.html';_0x15b807['$inject']=['$scope',_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x1409'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x15b807(_0x6f5041,_0x138864,_0x35a66d,_0x2f8486,_0x442b4e,_0x1f77f8,_0x65084,_0x59e899,_0x2038d6,_0x2a4fe3,_0x485c78,_0x2b7dae,_0x3de0e8,_0x3c04d2,_0x176f9c){const _0x2935c9=_0x4376d8,_0x5b757e=this;_0x5b757e[_0x2935c9('0x1d11')]=_0x3c04d2,_0x5b757e[_0x2935c9('0x1aeb')]=_0x176f9c,_0x5b757e['currentUser']=_0x3de0e8[_0x2935c9('0x2831')](),_0x5b757e[_0x2935c9('0x1409')]=_0x2038d6||{'count':0x0,'rows':[]},_0x5b757e[_0x2935c9('0x23c3')]=_0x2935c9('0x1409'),_0x5b757e[_0x2935c9('0x26a1')]='',_0x5b757e[_0x2935c9('0x24e1')]=null,_0x5b757e[_0x2935c9('0x1156')]=[],_0x5b757e[_0x2935c9('0x826')]={'fields':_0x2935c9('0x17de'),'sort':_0x2935c9('0x1ac6'),'limit':0xa,'page':0x1},_0x5b757e[_0x2935c9('0x56d')]=_0x49cbdd()[_0x2935c9('0x8de')]([{'option':_0x2935c9('0x1968'),'value':_0x2935c9('0x774')}],function(_0x35a3fa){const _0x3a5689=_0x2935c9;return _0x49cbdd()[_0x3a5689('0x737')](_0x35a3fa['value'],new RegExp('\x27','g'),'');}),_0x5b757e[_0x2935c9('0xb32')]=_0x37b679,_0x5b757e[_0x2935c9('0xbf4')]=_0x17579c,_0x5b757e[_0x2935c9('0x130d')]=_0x445249,_0x5b757e[_0x2935c9('0x1955')]=_0x2d2240,_0x5b757e[_0x2935c9('0x404')]=_0x442cab,_0x5b757e[_0x2935c9('0x3b9')]=_0x556e4e,_0x5b757e['exportSelectedAiTools']=_0x57028e,_0x5b757e[_0x2935c9('0x1de5')]=_0xd08854,_0x5b757e[_0x2935c9('0x121b')]=_0x448fed,_0x5b757e[_0x2935c9('0x15dd')]=_0x12bc3b;function _0x37b679(_0x2f4e18,_0x2ac1be){const _0x40acb0=_0x2935c9;_0x442b4e['show']({'controller':_0x40acb0('0x302'),'controllerAs':'vm','templateUrl':_0x2cfded,'parent':angular[_0x40acb0('0x1ce1')](_0x1f77f8[_0x40acb0('0x13aa')]),'targetEvent':_0x2ac1be,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x2f4e18,'cloudProviders':_0x5b757e[_0x40acb0('0x1409')][_0x40acb0('0x2319')],'license':_0x5b757e[_0x40acb0('0x1d11')],'setting':null,'crudPermissions':_0x5b757e[_0x40acb0('0x103e')]}});}function _0x17579c(_0x7dd164,_0x14555a){const _0x509afc=_0x2935c9,_0x6ceed1=_0x442b4e[_0x509afc('0x1121')]()[_0x509afc('0x24d3')](_0x509afc('0x5e1')+_0x49cbdd()[_0x509afc('0x1c98')]('cloudProvider')+'?')[_0x509afc('0x211f')](_0x509afc('0xa53')+(_0x7dd164[_0x509afc('0x2aa')]||_0x509afc('0x2535'))+''+_0x509afc('0xe9f'))[_0x509afc('0x2095')](_0x509afc('0x6d6'))[_0x509afc('0x104f')](_0x14555a)['ok']('OK')['cancel'](_0x509afc('0x28a0'));_0x442b4e[_0x509afc('0x28e2')](_0x6ceed1)[_0x509afc('0x17e7')](function(){_0x556e4e(_0x7dd164);},function(){const _0x37a9c7=_0x509afc;console['log'](_0x37a9c7('0x28a0'));});}let _0x373ad4=!![],_0x1c5150=0x1;_0x6f5041['$watch']('vm.query.filter',function(_0x4f9850,_0x577d99){const _0x466f22=_0x2935c9;_0x373ad4?_0x65084(function(){_0x373ad4=![];}):(!_0x577d99&&(_0x1c5150=_0x5b757e[_0x466f22('0x826')][_0x466f22('0x115a')]),_0x4f9850!==_0x577d99&&(_0x5b757e[_0x466f22('0x826')]['page']=0x1),!_0x4f9850&&(_0x5b757e[_0x466f22('0x826')][_0x466f22('0x115a')]=_0x1c5150),_0x5b757e[_0x466f22('0x1955')]());});function _0x445249(_0x2b660b){const _0x321348=_0x2935c9;_0x5b757e[_0x321348('0x1409')]=_0x2b660b||{'count':0x0,'rows':[]};}function _0x2d2240(){const _0xae83bc=_0x2935c9;_0x5b757e[_0xae83bc('0x826')][_0xae83bc('0xf19')]=(_0x5b757e[_0xae83bc('0x826')][_0xae83bc('0x115a')]-0x1)*_0x5b757e['query'][_0xae83bc('0x193b')],_0x3de0e8[_0xae83bc('0x1ba2')]('admin')?_0x5b757e[_0xae83bc('0x1691')]=_0x2a4fe3['cloudProvider']['get'](_0x5b757e['query'],_0x445249)[_0xae83bc('0x1af5')]:(_0x5b757e['query']['id']=_0x5b757e[_0xae83bc('0xdeb')]['id'],_0x5b757e[_0xae83bc('0x826')][_0xae83bc('0x16f8')]=_0xae83bc('0x161e'),_0x5b757e[_0xae83bc('0x1691')]=_0x2a4fe3[_0xae83bc('0xdeb')][_0xae83bc('0x2447')](_0x5b757e[_0xae83bc('0x826')],_0x445249)['$promise']);}function _0x442cab(_0x3c6b81,_0x21b937){const _0x34b425=_0x2935c9;_0x442b4e[_0x34b425('0x28e2')]({'controller':_0x34b425('0x302'),'controllerAs':'vm','templateUrl':_0x2cfded,'parent':angular[_0x34b425('0x1ce1')](_0x1f77f8[_0x34b425('0x13aa')]),'targetEvent':_0x3c6b81,'clickOutsideToClose':!![],'locals':{'cloudProvider':_0x21b937,'cloudProviders':_0x5b757e['cloudProviders'][_0x34b425('0x2319')],'license':_0x5b757e[_0x34b425('0x1d11')],'setting':_0x5b757e[_0x34b425('0x1aeb')],'crudPermissions':_0x5b757e[_0x34b425('0x103e')]}});}function _0x556e4e(_0x582b55){const _0x4b8c1a=_0x2935c9;_0x2a4fe3[_0x4b8c1a('0x2535')]['delete']({'id':_0x582b55['id']})[_0x4b8c1a('0x1af5')][_0x4b8c1a('0x17e7')](function(){const _0x821dc5=_0x4b8c1a;_0x49cbdd()[_0x821dc5('0x5f3')](_0x5b757e['cloudProviders']['rows'],{'id':_0x582b55['id']}),_0x5b757e[_0x821dc5('0x1409')]['count']-=0x1,!_0x5b757e[_0x821dc5('0x1409')][_0x821dc5('0x2319')][_0x821dc5('0x1f73')]&&_0x5b757e['getAiTools'](),_0x2b7dae['success']({'title':_0x49cbdd()[_0x821dc5('0x1c98')](_0x821dc5('0x1e65'))+_0x821dc5('0x2673'),'msg':_0x582b55[_0x821dc5('0x2aa')]?_0x582b55[_0x821dc5('0x2aa')]+_0x821dc5('0x149f'):''});})['catch'](function(_0x5c75c8){const _0x24102d=_0x4b8c1a;if(_0x5c75c8[_0x24102d('0x1457')]&&_0x5c75c8[_0x24102d('0x1457')][_0x24102d('0x73e')]&&_0x5c75c8['data'][_0x24102d('0x73e')]['length']){_0x5b757e[_0x24102d('0x73e')]=_0x5c75c8[_0x24102d('0x1457')]['errors']||[{'message':_0x5c75c8[_0x24102d('0x9b6')](),'type':'SYSTEM:DELETEcloudProvider'}];for(let _0x3a1e8d=0x0;_0x3a1e8d<_0x5c75c8[_0x24102d('0x1457')][_0x24102d('0x73e')][_0x24102d('0x1f73')];_0x3a1e8d++){_0x2b7dae['error']({'title':_0x5c75c8[_0x24102d('0x1457')][_0x24102d('0x73e')][_0x3a1e8d][_0x24102d('0x412')],'msg':_0x5c75c8['data'][_0x24102d('0x73e')][_0x3a1e8d][_0x24102d('0x1603')]});}}else _0x2b7dae[_0x24102d('0x1db9')]({'title':_0x5c75c8['status']?'API:'+_0x5c75c8[_0x24102d('0x11c5')]+_0x24102d('0x16e4')+_0x5c75c8[_0x24102d('0x1833')]:_0x24102d('0x1356'),'msg':_0x5c75c8[_0x24102d('0x1457')]?JSON[_0x24102d('0x678')](_0x5c75c8[_0x24102d('0x1457')][_0x24102d('0x1603')]):_0x5c75c8['message']||_0x5c75c8[_0x24102d('0x9b6')]()});});}function _0x57028e(){const _0x28f391=_0x2935c9,_0xff0a58=angular[_0x28f391('0x14e5')](_0x5b757e[_0x28f391('0x1156')]);return _0x5b757e[_0x28f391('0x1156')]=[],_0xff0a58;}function _0xd08854(_0x5b142a){const _0x8212a5=_0x2935c9,_0x188abd=_0x442b4e[_0x8212a5('0x1121')]()[_0x8212a5('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20cloudProviders?')[_0x8212a5('0x211f')](_0x8212a5('0xa53')+_0x5b757e[_0x8212a5('0x1156')][_0x8212a5('0x1f73')]+_0x8212a5('0x145a')+_0x8212a5('0xe9f'))[_0x8212a5('0x2095')](_0x8212a5('0x3cb'))[_0x8212a5('0x104f')](_0x5b142a)['ok']('OK')[_0x8212a5('0x1d47')](_0x8212a5('0x28a0'));_0x442b4e[_0x8212a5('0x28e2')](_0x188abd)[_0x8212a5('0x17e7')](function(){const _0x582451=_0x8212a5;_0x5b757e[_0x582451('0x1156')]['forEach'](function(_0x394533){_0x556e4e(_0x394533);}),_0x5b757e['selectedAiTools']=[];});}function _0x448fed(){const _0x3ceefd=_0x2935c9;_0x5b757e[_0x3ceefd('0x1156')]=[];}function _0x12bc3b(){const _0x36a0b1=_0x2935c9;_0x5b757e[_0x36a0b1('0x1156')]=_0x5b757e['cloudProviders'][_0x36a0b1('0x2319')];}}const _0x4400ed=_0x15b807;_0x27c6a8[_0x4376d8('0x1b9c')]=['$scope','$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x1409'),'cloudProvider',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x27c6a8(_0x42200d,_0x525248,_0x49320e,_0x5879b8,_0x146a5b,_0x3e15d5,_0x5de9a7,_0xaed5ee,_0x31fe34,_0x323165,_0xf1fb9f,_0x5b3298,_0x41a0b1){const _0x3b6ff2=_0x4376d8,_0x41b951=this;_0x41b951[_0x3b6ff2('0x197c')]=_0xf1fb9f[_0x3b6ff2('0x2831')](),_0x41b951[_0x3b6ff2('0x73e')]=[],_0x41b951[_0x3b6ff2('0x1aeb')]=_0x41a0b1,_0x41b951['license']=_0x5b3298,_0x41b951[_0x3b6ff2('0x6ee')]={},_0x41b951[_0x3b6ff2('0x1572')]=_0x41b951['setting']&&_0x41b951[_0x3b6ff2('0x1aeb')][_0x3b6ff2('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x41b951[_0x3b6ff2('0x24d3')]=_0x3b6ff2('0x7ff'),_0x41b951[_0x3b6ff2('0x2535')]=angular[_0x3b6ff2('0x14e5')](_0x31fe34),_0x41b951['cloudProviders']=_0xaed5ee,_0x41b951[_0x3b6ff2('0x6e0')]=![];!_0x41b951[_0x3b6ff2('0x2535')]&&(_0x41b951[_0x3b6ff2('0x2535')]={},_0x41b951[_0x3b6ff2('0x24d3')]=_0x3b6ff2('0x1bb1'),_0x41b951[_0x3b6ff2('0x6e0')]=!![]);_0x41b951[_0x3b6ff2('0x1a42')]=_0x2d34c7,_0x41b951[_0x3b6ff2('0x286c')]=_0x259051,_0x41b951[_0x3b6ff2('0x3b9')]=_0x502074,_0x41b951[_0x3b6ff2('0x1300')]=_0x488200,_0x41b951[_0x3b6ff2('0x136e')]=_0x4b90a9;function _0x2d34c7(){const _0x41df91=_0x3b6ff2;_0x41b951[_0x41df91('0x73e')]=[],_0x323165[_0x41df91('0x2535')]['save'](_0x41b951[_0x41df91('0x2535')])[_0x41df91('0x1af5')][_0x41df91('0x17e7')](function(_0x624c9a){const _0x3cfacb=_0x41df91;_0x41b951[_0x3cfacb('0x1409')]['unshift'](_0x624c9a[_0x3cfacb('0x16b2')]()),_0x5de9a7[_0x3cfacb('0x130d')]({'title':'CloudProvider\x20properly\x20created','msg':_0x41b951[_0x3cfacb('0x2535')]['name']?_0x41b951[_0x3cfacb('0x2535')][_0x3cfacb('0x2aa')]+_0x3cfacb('0x15a'):''}),_0x4b90a9(_0x624c9a);})[_0x41df91('0x16df')](function(_0x5d92ff){const _0x2ae55e=_0x41df91;if(_0x5d92ff[_0x2ae55e('0x1457')]&&_0x5d92ff[_0x2ae55e('0x1457')][_0x2ae55e('0x73e')]&&_0x5d92ff[_0x2ae55e('0x1457')][_0x2ae55e('0x73e')][_0x2ae55e('0x1f73')]){_0x41b951[_0x2ae55e('0x73e')]=_0x5d92ff[_0x2ae55e('0x1457')]['errors']||[{'message':_0x5d92ff['toString'](),'type':_0x2ae55e('0x1854')}];for(let _0x2e16e9=0x0;_0x2e16e9<_0x5d92ff[_0x2ae55e('0x1457')][_0x2ae55e('0x73e')][_0x2ae55e('0x1f73')];_0x2e16e9+=0x1){_0x5de9a7[_0x2ae55e('0x1db9')]({'title':_0x5d92ff[_0x2ae55e('0x1457')][_0x2ae55e('0x73e')][_0x2e16e9][_0x2ae55e('0x412')],'msg':_0x5d92ff[_0x2ae55e('0x1457')][_0x2ae55e('0x73e')][_0x2e16e9][_0x2ae55e('0x1603')]});}}else _0x5de9a7[_0x2ae55e('0x1db9')]({'title':_0x5d92ff[_0x2ae55e('0x11c5')]?'API:'+_0x5d92ff[_0x2ae55e('0x11c5')]+_0x2ae55e('0x16e4')+_0x5d92ff[_0x2ae55e('0x1833')]:_0x2ae55e('0x1854'),'msg':_0x5d92ff[_0x2ae55e('0x1457')]?JSON[_0x2ae55e('0x678')](_0x5d92ff['data'][_0x2ae55e('0x1603')]):_0x5d92ff[_0x2ae55e('0x9b6')]()});});}function _0x259051(){const _0xc4c8a4=_0x3b6ff2;_0x41b951['errors']=[],_0x323165[_0xc4c8a4('0x2535')][_0xc4c8a4('0x27ba')]({'id':_0x41b951[_0xc4c8a4('0x2535')]['id']},_0x41b951['cloudProvider'])[_0xc4c8a4('0x1af5')][_0xc4c8a4('0x17e7')](function(_0x37414e){const _0x97d93c=_0xc4c8a4,_0x3ade3c=_0x49cbdd()[_0x97d93c('0xe8e')](_0x41b951[_0x97d93c('0x1409')],{'id':_0x37414e['id']});_0x3ade3c&&_0x49cbdd()[_0x97d93c('0x1ced')](_0x3ade3c,_0x49cbdd()[_0x97d93c('0x230a')](_0x37414e[_0x97d93c('0x16b2')](),_0x49cbdd()[_0x97d93c('0x1c0f')](_0x3ade3c))),_0x5de9a7[_0x97d93c('0x130d')]({'title':'CloudProvider\x20properly\x20saved!','msg':_0x41b951[_0x97d93c('0x2535')]['name']?_0x41b951[_0x97d93c('0x2535')][_0x97d93c('0x2aa')]+_0x97d93c('0x15ca'):''}),_0x4b90a9(_0x37414e);})[_0xc4c8a4('0x16df')](function(_0x1b4592){const _0x1799f6=_0xc4c8a4;if(_0x1b4592[_0x1799f6('0x1457')]&&_0x1b4592[_0x1799f6('0x1457')][_0x1799f6('0x73e')]&&_0x1b4592[_0x1799f6('0x1457')][_0x1799f6('0x73e')][_0x1799f6('0x1f73')]){_0x41b951[_0x1799f6('0x73e')]=_0x1b4592[_0x1799f6('0x1457')][_0x1799f6('0x73e')]||[{'message':_0x1b4592[_0x1799f6('0x9b6')](),'type':'api.cloudProvider.update'}];for(let _0xc4d192=0x0;_0xc4d192<_0x1b4592['data']['errors'][_0x1799f6('0x1f73')];_0xc4d192++){_0x5de9a7['error']({'title':_0x1b4592[_0x1799f6('0x1457')][_0x1799f6('0x73e')][_0xc4d192]['type'],'msg':_0x1b4592[_0x1799f6('0x1457')][_0x1799f6('0x73e')][_0xc4d192][_0x1799f6('0x1603')]});}}else _0x5de9a7[_0x1799f6('0x1db9')]({'title':_0x1b4592[_0x1799f6('0x11c5')]?_0x1799f6('0x14f7')+_0x1b4592[_0x1799f6('0x11c5')]+_0x1799f6('0x16e4')+_0x1b4592[_0x1799f6('0x1833')]:_0x1799f6('0x2468'),'msg':_0x1b4592[_0x1799f6('0x1457')]?JSON[_0x1799f6('0x678')](_0x1b4592[_0x1799f6('0x1457')]['message']):_0x1b4592[_0x1799f6('0x9b6')]()});});}function _0x502074(_0x484684){const _0x54cd84=_0x3b6ff2;_0x41b951['errors']=[];const _0x19e8e2=_0x5879b8[_0x54cd84('0x1121')]()[_0x54cd84('0x24d3')]('Are\x20you\x20sure?')[_0x54cd84('0xd5')]('The\x20cloudProvider\x20will\x20be\x20deleted.')[_0x54cd84('0x2095')](_0x54cd84('0x168a'))['ok']('Delete')['cancel']('Cancel')['targetEvent'](_0x484684);_0x5879b8['show'](_0x19e8e2)[_0x54cd84('0x17e7')](function(){const _0x48ab50=_0x54cd84;_0x323165[_0x48ab50('0x2535')][_0x48ab50('0x1da6')]({'id':_0x41b951['cloudProvider']['id']})['$promise'][_0x48ab50('0x17e7')](function(){const _0x2c6b52=_0x48ab50;_0x49cbdd()['remove'](_0x41b951[_0x2c6b52('0x1409')],{'id':_0x41b951['cloudProvider']['id']}),_0x5de9a7[_0x2c6b52('0x130d')]({'title':_0x2c6b52('0x27aa'),'msg':(_0x41b951['cloudProvider'][_0x2c6b52('0x2aa')]||'cloudProvider')+'\x20has\x20been\x20deleted!'}),_0x4b90a9(_0x41b951[_0x2c6b52('0x2535')]);})[_0x48ab50('0x16df')](function(_0x1d0110){const _0x2159ee=_0x48ab50;if(_0x1d0110['data']&&_0x1d0110[_0x2159ee('0x1457')]['errors']&&_0x1d0110[_0x2159ee('0x1457')][_0x2159ee('0x73e')]['length']){_0x41b951['errors']=_0x1d0110[_0x2159ee('0x1457')][_0x2159ee('0x73e')]||[{'message':_0x1d0110[_0x2159ee('0x9b6')](),'type':_0x2159ee('0x23aa')}];for(let _0x31abb7=0x0;_0x31abb7<_0x1d0110['data'][_0x2159ee('0x73e')][_0x2159ee('0x1f73')];_0x31abb7++){_0x5de9a7[_0x2159ee('0x1db9')]({'title':_0x1d0110[_0x2159ee('0x1457')]['errors'][_0x31abb7][_0x2159ee('0x412')],'msg':_0x1d0110['data'][_0x2159ee('0x73e')][_0x31abb7][_0x2159ee('0x1603')]});}}else _0x5de9a7[_0x2159ee('0x1db9')]({'title':_0x1d0110[_0x2159ee('0x11c5')]?'API:'+_0x1d0110[_0x2159ee('0x11c5')]+_0x2159ee('0x16e4')+_0x1d0110[_0x2159ee('0x1833')]:_0x2159ee('0x23aa'),'msg':_0x1d0110['data']?JSON[_0x2159ee('0x678')](_0x1d0110[_0x2159ee('0x1457')][_0x2159ee('0x1603')]):_0x1d0110[_0x2159ee('0x1603')]||_0x1d0110[_0x2159ee('0x9b6')]()});});},function(){});}function _0x488200(_0x455909){return _0x455909===null?undefined:new Date(_0x455909);}function _0x4b90a9(_0x4b6246){_0x5879b8['hide'](_0x4b6246);}}const _0x1018f5=_0x27c6a8;_0x187384['$inject']=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x1d57'),_0x4376d8('0xd81'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x187384(_0x22a353,_0x5975f5,_0x525a72,_0x5b4990,_0x2cb7e7,_0x27c835,_0x387d9d,_0x4cc151,_0x49b6f9,_0x46ae25,_0x3cc2a7,_0x4cb867,_0x49ea95,_0x196728){const _0x4ed415=_0x4376d8,_0x3f45d7=this;_0x3f45d7[_0x4ed415('0x197c')]=_0x3cc2a7[_0x4ed415('0x2831')](),_0x3f45d7[_0x4ed415('0x73e')]=[],_0x3f45d7[_0x4ed415('0x1aeb')]=_0x49ea95,_0x3f45d7[_0x4ed415('0x1d11')]=_0x4cb867,_0x3f45d7['crudPermissions']=_0x196728,_0x3f45d7[_0x4ed415('0x6ee')]={},_0x3f45d7[_0x4ed415('0x1572')]=_0x3f45d7[_0x4ed415('0x1aeb')]&&_0x3f45d7[_0x4ed415('0x1aeb')][_0x4ed415('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3f45d7[_0x4ed415('0x24d3')]=_0x4ed415('0xa6'),_0x3f45d7[_0x4ed415('0xd81')]=angular[_0x4ed415('0x14e5')](_0x49b6f9),_0x3f45d7[_0x4ed415('0x1d57')]=_0x4cc151,_0x3f45d7['newCustomization']=![];!_0x3f45d7[_0x4ed415('0xd81')]&&(_0x3f45d7[_0x4ed415('0xd81')]={},_0x3f45d7[_0x4ed415('0x24d3')]=_0x4ed415('0x713'),_0x3f45d7[_0x4ed415('0x2616')]=!![]);_0x3f45d7[_0x4ed415('0x56a')]=_0x1a283d,_0x3f45d7[_0x4ed415('0x1b23')]=_0x4cadb0,_0x3f45d7[_0x4ed415('0xbfb')]=_0x20ed27,_0x3f45d7[_0x4ed415('0x1300')]=_0x1e9655,_0x3f45d7[_0x4ed415('0x136e')]=_0x2b0824;function _0x1a283d(){const _0x17dfc5=_0x4ed415;_0x3f45d7[_0x17dfc5('0x73e')]=[],_0x46ae25[_0x17dfc5('0x1aeb')][_0x17dfc5('0x2439')](_0x3f45d7[_0x17dfc5('0xd81')])['$promise'][_0x17dfc5('0x17e7')](function(_0x32a356){const _0x33b8b0=_0x17dfc5;_0x3f45d7['customizations']['unshift'](_0x32a356[_0x33b8b0('0x16b2')]()),_0x387d9d[_0x33b8b0('0x130d')]({'title':_0x33b8b0('0x28de'),'msg':_0x3f45d7['customization']['name']?_0x3f45d7[_0x33b8b0('0xd81')][_0x33b8b0('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x2b0824(_0x32a356);})['catch'](function(_0x54deb0){const _0x2946dc=_0x17dfc5;if(_0x54deb0['data']&&_0x54deb0[_0x2946dc('0x1457')]['errors']&&_0x54deb0['data'][_0x2946dc('0x73e')][_0x2946dc('0x1f73')]){_0x3f45d7['errors']=_0x54deb0[_0x2946dc('0x1457')][_0x2946dc('0x73e')]||[{'message':_0x54deb0[_0x2946dc('0x9b6')](),'type':_0x2946dc('0x25e3')}];for(let _0x4b0c85=0x0;_0x4b0c85<_0x54deb0['data'][_0x2946dc('0x73e')][_0x2946dc('0x1f73')];_0x4b0c85+=0x1){_0x387d9d['error']({'title':_0x54deb0[_0x2946dc('0x1457')][_0x2946dc('0x73e')][_0x4b0c85][_0x2946dc('0x412')],'msg':_0x54deb0[_0x2946dc('0x1457')][_0x2946dc('0x73e')][_0x4b0c85][_0x2946dc('0x1603')]});}}else _0x387d9d['error']({'title':_0x54deb0[_0x2946dc('0x11c5')]?_0x2946dc('0x14f7')+_0x54deb0[_0x2946dc('0x11c5')]+_0x2946dc('0x16e4')+_0x54deb0[_0x2946dc('0x1833')]:_0x2946dc('0x25e3'),'msg':_0x54deb0[_0x2946dc('0x1457')]?JSON[_0x2946dc('0x678')](_0x54deb0['data'][_0x2946dc('0x1603')]):_0x54deb0[_0x2946dc('0x9b6')]()});});}function _0x4cadb0(){const _0x4ac819=_0x4ed415;_0x3f45d7['errors']=[],_0x46ae25['setting']['update']({'id':_0x3f45d7['customization']['id']},_0x3f45d7['customization'])[_0x4ac819('0x1af5')][_0x4ac819('0x17e7')](function(_0x285613){const _0x22ea56=_0x4ac819,_0x1df135=_0x49cbdd()[_0x22ea56('0xe8e')](_0x3f45d7[_0x22ea56('0x1d57')],{'id':_0x285613['id']});_0x1df135&&_0x49cbdd()[_0x22ea56('0x1ced')](_0x1df135,_0x49cbdd()['pick'](_0x285613[_0x22ea56('0x16b2')](),_0x49cbdd()['keys'](_0x1df135))),_0x387d9d[_0x22ea56('0x130d')]({'title':_0x22ea56('0x9e8'),'msg':_0x3f45d7[_0x22ea56('0xd81')][_0x22ea56('0x2aa')]?_0x3f45d7[_0x22ea56('0xd81')][_0x22ea56('0x2aa')]+_0x22ea56('0x15ca'):''}),_0x2b0824(_0x285613);})['catch'](function(_0x1e70d5){const _0x49fe3f=_0x4ac819;if(_0x1e70d5['data']&&_0x1e70d5['data'][_0x49fe3f('0x73e')]&&_0x1e70d5['data'][_0x49fe3f('0x73e')][_0x49fe3f('0x1f73')]){_0x3f45d7[_0x49fe3f('0x73e')]=_0x1e70d5[_0x49fe3f('0x1457')][_0x49fe3f('0x73e')]||[{'message':_0x1e70d5[_0x49fe3f('0x9b6')](),'type':_0x49fe3f('0x1c2a')}];for(let _0x150d43=0x0;_0x150d43<_0x1e70d5[_0x49fe3f('0x1457')][_0x49fe3f('0x73e')][_0x49fe3f('0x1f73')];_0x150d43++){_0x387d9d['error']({'title':_0x1e70d5[_0x49fe3f('0x1457')][_0x49fe3f('0x73e')][_0x150d43][_0x49fe3f('0x412')],'msg':_0x1e70d5[_0x49fe3f('0x1457')][_0x49fe3f('0x73e')][_0x150d43]['message']});}}else _0x387d9d[_0x49fe3f('0x1db9')]({'title':_0x1e70d5[_0x49fe3f('0x11c5')]?_0x49fe3f('0x14f7')+_0x1e70d5[_0x49fe3f('0x11c5')]+_0x49fe3f('0x16e4')+_0x1e70d5[_0x49fe3f('0x1833')]:'api.setting.update','msg':_0x1e70d5[_0x49fe3f('0x1457')]?JSON[_0x49fe3f('0x678')](_0x1e70d5[_0x49fe3f('0x1457')]['message']):_0x1e70d5['toString']()});});}function _0x20ed27(_0xd12bbe){const _0x2e9177=_0x4ed415;_0x3f45d7[_0x2e9177('0x73e')]=[];const _0x3a0af3=_0x5b4990[_0x2e9177('0x1121')]()['title'](_0x2e9177('0x530'))[_0x2e9177('0xd5')](_0x2e9177('0x16f0'))[_0x2e9177('0x2095')](_0x2e9177('0x1d83'))['ok']('Delete')[_0x2e9177('0x1d47')](_0x2e9177('0x1b70'))[_0x2e9177('0x104f')](_0xd12bbe);_0x5b4990['show'](_0x3a0af3)[_0x2e9177('0x17e7')](function(){const _0x251271=_0x2e9177;_0x46ae25[_0x251271('0x1aeb')][_0x251271('0x1da6')]({'id':_0x3f45d7[_0x251271('0xd81')]['id']})[_0x251271('0x1af5')][_0x251271('0x17e7')](function(){const _0x2d2c78=_0x251271;_0x49cbdd()[_0x2d2c78('0x5f3')](_0x3f45d7[_0x2d2c78('0x1d57')],{'id':_0x3f45d7[_0x2d2c78('0xd81')]['id']}),_0x387d9d[_0x2d2c78('0x130d')]({'title':_0x2d2c78('0x283e'),'msg':(_0x3f45d7['customization'][_0x2d2c78('0x2aa')]||_0x2d2c78('0xd81'))+_0x2d2c78('0x149f')}),_0x2b0824(_0x3f45d7['customization']);})[_0x251271('0x16df')](function(_0x197b4e){const _0x442386=_0x251271;if(_0x197b4e[_0x442386('0x1457')]&&_0x197b4e[_0x442386('0x1457')][_0x442386('0x73e')]&&_0x197b4e['data'][_0x442386('0x73e')][_0x442386('0x1f73')]){_0x3f45d7[_0x442386('0x73e')]=_0x197b4e[_0x442386('0x1457')][_0x442386('0x73e')]||[{'message':_0x197b4e['toString'](),'type':'api.setting.delete'}];for(let _0x2062ab=0x0;_0x2062ab<_0x197b4e[_0x442386('0x1457')][_0x442386('0x73e')][_0x442386('0x1f73')];_0x2062ab++){_0x387d9d[_0x442386('0x1db9')]({'title':_0x197b4e[_0x442386('0x1457')][_0x442386('0x73e')][_0x2062ab]['type'],'msg':_0x197b4e[_0x442386('0x1457')]['errors'][_0x2062ab][_0x442386('0x1603')]});}}else _0x387d9d[_0x442386('0x1db9')]({'title':_0x197b4e[_0x442386('0x11c5')]?_0x442386('0x14f7')+_0x197b4e[_0x442386('0x11c5')]+'\x20-\x20'+_0x197b4e['statusText']:_0x442386('0x8f9'),'msg':_0x197b4e[_0x442386('0x1457')]?JSON[_0x442386('0x678')](_0x197b4e[_0x442386('0x1457')]['message']):_0x197b4e['message']||_0x197b4e[_0x442386('0x9b6')]()});});},function(){});}function _0x1e9655(_0x25895a){return _0x25895a===null?undefined:new Date(_0x25895a);}function _0x2b0824(_0x4a004e){const _0x4f3f7d=_0x4ed415;_0x5b4990[_0x4f3f7d('0x212a')](_0x4a004e);}}const _0x23a410=_0x187384;_0x3907cb[_0x4376d8('0x1b9c')]=['customizations',_0x4376d8('0x212e'),_0x4376d8('0x108a'),'license','Auth'];function _0x3907cb(_0x1d6b54,_0x5a0d06,_0x37049c,_0x2a6da1,_0x390453){const _0x5e5247=_0x4376d8,_0x56e928=this;_0x56e928[_0x5e5247('0x197c')]=_0x390453['getCurrentUser'](),_0x56e928['license']=_0x2a6da1,_0x56e928[_0x5e5247('0x1d57')]=_0x1d6b54,_0x56e928[_0x5e5247('0xd81')]={};_0x56e928[_0x5e5247('0x1d57')]&&_0x56e928[_0x5e5247('0x1d57')]['rows']&&_0x56e928[_0x5e5247('0x1d57')][_0x5e5247('0x2319')]['length']&&(_0x56e928[_0x5e5247('0xd81')]=_0x56e928[_0x5e5247('0x1d57')][_0x5e5247('0x2319')][0x0]);_0x56e928['saveCustomization']=_0x307b65;function _0x307b65(){const _0x14a298=_0x5e5247;_0x56e928['customization']['id']?_0x5a0d06[_0x14a298('0x1aeb')][_0x14a298('0x27ba')]({'id':_0x56e928[_0x14a298('0xd81')]['id']},_0x56e928[_0x14a298('0xd81')])[_0x14a298('0x1af5')][_0x14a298('0x17e7')](function(){const _0x1c9605=_0x14a298;_0x37049c['success']({'title':_0x1c9605('0xf5b'),'msg':_0x56e928[_0x1c9605('0xd81')]['name']?_0x56e928[_0x1c9605('0xd81')][_0x1c9605('0x2aa')]+_0x1c9605('0x12b0'):''});})[_0x14a298('0x16df')](function(_0x50830e){const _0x12bf33=_0x14a298;_0x37049c[_0x12bf33('0x1db9')]({'title':_0x50830e[_0x12bf33('0x11c5')]?_0x12bf33('0x14f7')+_0x50830e[_0x12bf33('0x11c5')]+_0x12bf33('0x16e4')+_0x50830e[_0x12bf33('0x1833')]:_0x12bf33('0x11cf'),'msg':_0x50830e[_0x12bf33('0x1457')]?JSON[_0x12bf33('0x678')](_0x50830e[_0x12bf33('0x1457')]):_0x50830e[_0x12bf33('0x9b6')]()});}):_0x5a0d06['setting']['save'](_0x56e928[_0x14a298('0xd81')])['$promise'][_0x14a298('0x17e7')](function(_0x170d77){const _0xae5ae3=_0x14a298;_0x49cbdd()[_0xae5ae3('0x1ced')](_0x56e928[_0xae5ae3('0xd81')],_0x170d77),_0x37049c[_0xae5ae3('0x130d')]({'title':_0xae5ae3('0xf5b'),'msg':_0x56e928['customization'][_0xae5ae3('0x2aa')]?_0x56e928[_0xae5ae3('0xd81')][_0xae5ae3('0x2aa')]+_0xae5ae3('0x12b0'):''});})[_0x14a298('0x16df')](function(_0x2a9d33){const _0x50148c=_0x14a298;_0x37049c[_0x50148c('0x1db9')]({'title':_0x2a9d33[_0x50148c('0x11c5')]?_0x50148c('0x14f7')+_0x2a9d33[_0x50148c('0x11c5')]+_0x50148c('0x16e4')+_0x2a9d33[_0x50148c('0x1833')]:_0x50148c('0x11cf'),'msg':_0x2a9d33[_0x50148c('0x1457')]?JSON[_0x50148c('0x678')](_0x2a9d33[_0x50148c('0x1457')]):_0x2a9d33['toString']()});});}}const _0x2cd110=_0x3907cb;_0x18aa6f[_0x4376d8('0x1b9c')]=['$cookies',_0x4376d8('0x108a')];function _0x18aa6f(_0xc3996a,_0x10983a){const _0x21a6eb=_0x4376d8,_0x33da0e=this,_0x3e7dfc=0x8,_0x1143bd=_0x3e7dfc*0x400*0x400;_0x33da0e['customization']={},_0x33da0e[_0x21a6eb('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x1143bd,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x33da0e['ngFlow']={'flow':{}},_0x33da0e[_0x21a6eb('0x1b74')]=![],_0x33da0e['fileAdded']=_0x3ceb83,_0x33da0e[_0x21a6eb('0x624')]=_0xf064bf,_0x33da0e[_0x21a6eb('0x1852')]=_0x40f75b,_0x33da0e['init']=_0x457cf2;function _0x457cf2(_0x25446b){const _0x3b85f7=_0x21a6eb;_0x33da0e['customization']=angular[_0x3b85f7('0x14e5')](_0x25446b),_0x33da0e['ngFlowOptions'][_0x3b85f7('0x8cf')]='/api/settings/1/favicon'['replace'](_0x3b85f7('0x17cf'),_0x33da0e[_0x3b85f7('0xd81')]['id']),_0x33da0e[_0x3b85f7('0xd81')][_0x3b85f7('0x1563')]=[];}function _0x3ceb83(_0x1ace7e){const _0x31c24e=_0x21a6eb,_0x2a14bd=[_0x31c24e('0x1b65'),_0x31c24e('0x5ef'),_0x31c24e('0xb1e')];if(!_0x49cbdd()[_0x31c24e('0x24b0')](_0x2a14bd,_0x1ace7e[_0x31c24e('0x11b0')]()))return _0x10983a[_0x31c24e('0x1db9')]({'title':'Invalid\x20extension:\x20'+_0x1ace7e[_0x31c24e('0x11b0')](),'msg':_0x31c24e('0x836')+_0x2a14bd[_0x31c24e('0x1eba')]()}),![];if(_0x1ace7e[_0x31c24e('0xf04')]>_0x1143bd)return _0x10983a['error']({'title':'File\x20too\x20big','msg':_0x31c24e('0x349')+_0x3e7dfc+'MB'}),![];const _0x1a8a32={'id':_0x1ace7e[_0x31c24e('0x22b5')],'file':_0x1ace7e,'type':_0x31c24e('0x22df')};return _0x33da0e[_0x31c24e('0xd81')]['images']['unshift'](_0x1a8a32),!![];}function _0xf064bf(){const _0x545b0a=_0x21a6eb;_0x33da0e[_0x545b0a('0xbdf')][_0x545b0a('0x3bb')][_0x545b0a('0x1771')][_0x545b0a('0x10b')]={'X-Requested-With':_0x545b0a('0x20a6'),'Authorization':'Bearer\x20'+_0xc3996a['get'](_0x545b0a('0xb2a'))},_0x33da0e['ngFlow']['flow'][_0x545b0a('0x624')]();}function _0x40f75b(_0x11b897){const _0xc8cf24=_0x21a6eb;angular['forEach'](_0x33da0e[_0xc8cf24('0xd81')][_0xc8cf24('0x1563')],function(_0x1389a4){const _0x1125e0=_0xc8cf24;if(_0x1389a4['id']===_0x11b897[_0x1125e0('0x22b5')]){const _0x2b1e8e=new FileReader();_0x2b1e8e[_0x1125e0('0x1ea4')](_0x1389a4[_0x1125e0('0xc89')][_0x1125e0('0xc89')]),_0x2b1e8e['onload']=function(_0x3d28bf){const _0x53c98f=_0x1125e0;_0x1389a4[_0x53c98f('0x101e')]=_0x3d28bf['target'][_0x53c98f('0x2284')];},_0x1389a4['type']=_0x1125e0('0x22ad');}});}}const _0x32941c=_0x18aa6f;_0x59b0b0['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x108a')];function _0x59b0b0(_0x44084a,_0x419ea2){const _0x536b7b=_0x4376d8,_0x2b7e01=this,_0x5b99a4=0x8,_0x36f3c2=_0x5b99a4*0x400*0x400;_0x2b7e01[_0x536b7b('0xd81')]={},_0x2b7e01[_0x536b7b('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x36f3c2,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x2b7e01['ngFlow']={'flow':{}},_0x2b7e01[_0x536b7b('0x1b74')]=![],_0x2b7e01[_0x536b7b('0xb73')]=_0xad8f6c,_0x2b7e01[_0x536b7b('0x624')]=_0x3c5d92,_0x2b7e01[_0x536b7b('0x1852')]=_0x461022,_0x2b7e01[_0x536b7b('0x161d')]=_0x591f02;function _0x591f02(_0x20a460){const _0x1fb948=_0x536b7b;_0x2b7e01[_0x1fb948('0xd81')]=angular['copy'](_0x20a460),_0x2b7e01[_0x1fb948('0x1713')]['target']=_0x1fb948('0x2044')[_0x1fb948('0x737')](_0x1fb948('0x17cf'),_0x2b7e01[_0x1fb948('0xd81')]['id']),_0x2b7e01[_0x1fb948('0xd81')][_0x1fb948('0x1563')]=[];}function _0xad8f6c(_0x1af55f){const _0x1c08b2=_0x536b7b,_0x4180f8=['png',_0x1c08b2('0x5ef')];if(!_0x49cbdd()[_0x1c08b2('0x24b0')](_0x4180f8,_0x1af55f['getExtension']()))return _0x419ea2[_0x1c08b2('0x1db9')]({'title':_0x1c08b2('0xf3d')+_0x1af55f['getExtension'](),'msg':'Supported\x20extension:\x20'+_0x4180f8[_0x1c08b2('0x1eba')]()}),![];if(_0x1af55f[_0x1c08b2('0xf04')]>_0x36f3c2)return _0x419ea2['error']({'title':_0x1c08b2('0x586'),'msg':_0x1c08b2('0x349')+_0x5b99a4+'MB'}),![];const _0x11fdd5={'id':_0x1af55f['uniqueIdentifier'],'file':_0x1af55f,'type':_0x1c08b2('0x22df')};return _0x2b7e01['customization']['images'][_0x1c08b2('0x1893')](_0x11fdd5),!![];}function _0x3c5d92(){const _0x1ba7c6=_0x536b7b;_0x2b7e01[_0x1ba7c6('0xbdf')][_0x1ba7c6('0x3bb')][_0x1ba7c6('0x1771')][_0x1ba7c6('0x10b')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x1ba7c6('0x28e8')+_0x44084a[_0x1ba7c6('0x1c53')](_0x1ba7c6('0xb2a'))},_0x2b7e01[_0x1ba7c6('0xbdf')]['flow']['upload']();}function _0x461022(_0x3826c3){const _0x338451=_0x536b7b;angular['forEach'](_0x2b7e01[_0x338451('0xd81')]['images'],function(_0x39a310){const _0x5da004=_0x338451;if(_0x39a310['id']===_0x3826c3[_0x5da004('0x22b5')]){const _0x1788a1=new FileReader();_0x1788a1[_0x5da004('0x1ea4')](_0x39a310[_0x5da004('0xc89')][_0x5da004('0xc89')]),_0x1788a1[_0x5da004('0x2a1')]=function(_0x4b28a6){const _0x3e9e76=_0x5da004;_0x39a310[_0x3e9e76('0x101e')]=_0x4b28a6[_0x3e9e76('0x8cf')][_0x3e9e76('0x2284')];},_0x39a310['type']=_0x5da004('0x22ad');}});}}const _0xf75a77=_0x59b0b0;_0x4e05df[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x108a')];function _0x4e05df(_0x3796c7,_0x32a290){const _0xe4d483=_0x4376d8,_0x266268=this,_0x1bbb24=0x8,_0x2a4da2=_0x1bbb24*0x400*0x400;_0x266268[_0xe4d483('0xd81')]={},_0x266268[_0xe4d483('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x2a4da2,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x266268[_0xe4d483('0xbdf')]={'flow':{}},_0x266268[_0xe4d483('0x1b74')]=![],_0x266268[_0xe4d483('0xb73')]=_0x386ee2,_0x266268[_0xe4d483('0x624')]=_0x1409d2,_0x266268['fileSuccess']=_0x5ba465,_0x266268[_0xe4d483('0x161d')]=_0x1a31d7;function _0x1a31d7(_0x309d30){const _0x8cc702=_0xe4d483;_0x266268[_0x8cc702('0xd81')]=angular[_0x8cc702('0x14e5')](_0x309d30),_0x266268[_0x8cc702('0x1713')][_0x8cc702('0x8cf')]=_0x8cc702('0x730')[_0x8cc702('0x737')](_0x8cc702('0x17cf'),_0x266268[_0x8cc702('0xd81')]['id']),_0x266268[_0x8cc702('0xd81')][_0x8cc702('0x1563')]=[];}function _0x386ee2(_0x4e2ebe){const _0x353327=_0xe4d483,_0x2bde59=[_0x353327('0x1b65'),_0x353327('0x5ef')];if(!_0x49cbdd()[_0x353327('0x24b0')](_0x2bde59,_0x4e2ebe[_0x353327('0x11b0')]()))return _0x32a290['error']({'title':_0x353327('0xf3d')+_0x4e2ebe[_0x353327('0x11b0')](),'msg':_0x353327('0x836')+_0x2bde59[_0x353327('0x1eba')]()}),![];if(_0x4e2ebe['size']>_0x2a4da2)return _0x32a290['error']({'title':_0x353327('0x586'),'msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x1bbb24+'MB'}),![];const _0x3711a2={'id':_0x4e2ebe['uniqueIdentifier'],'file':_0x4e2ebe,'type':_0x353327('0x22df')};return _0x266268[_0x353327('0xd81')][_0x353327('0x1563')][_0x353327('0x1893')](_0x3711a2),!![];}function _0x1409d2(){const _0x54afd4=_0xe4d483;_0x266268[_0x54afd4('0xbdf')]['flow'][_0x54afd4('0x1771')][_0x54afd4('0x10b')]={'X-Requested-With':_0x54afd4('0x20a6'),'Authorization':_0x54afd4('0x28e8')+_0x3796c7['get'](_0x54afd4('0xb2a'))},_0x266268[_0x54afd4('0xbdf')]['flow']['upload']();}function _0x5ba465(_0x55cc9b){const _0x4dacda=_0xe4d483;angular[_0x4dacda('0xccd')](_0x266268[_0x4dacda('0xd81')][_0x4dacda('0x1563')],function(_0x2bc4f8){const _0x27de1d=_0x4dacda;if(_0x2bc4f8['id']===_0x55cc9b['uniqueIdentifier']){const _0x963e39=new FileReader();_0x963e39['readAsDataURL'](_0x2bc4f8[_0x27de1d('0xc89')]['file']),_0x963e39[_0x27de1d('0x2a1')]=function(_0x2cff44){const _0x161474=_0x27de1d;_0x2bc4f8['url']=_0x2cff44[_0x161474('0x8cf')][_0x161474('0x2284')];},_0x2bc4f8['type']=_0x27de1d('0x22ad');}});}}const _0x3b9aa7=_0x4e05df;_0x20f410[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),'toasty'];function _0x20f410(_0x421c7f,_0x197823){const _0x866e30=_0x4376d8,_0x18efe8=this,_0x489068=0x8,_0x435c05=_0x489068*0x400*0x400;_0x18efe8[_0x866e30('0xd81')]={},_0x18efe8[_0x866e30('0x1713')]={'singleFile':!![],'maxChunkRetries':0x1,'chunkSize':_0x435c05,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![]},_0x18efe8[_0x866e30('0xbdf')]={'flow':{}},_0x18efe8['dropping']=![],_0x18efe8[_0x866e30('0xb73')]=_0x4fbe00,_0x18efe8[_0x866e30('0x624')]=_0xd94663,_0x18efe8[_0x866e30('0x1852')]=_0xb786c8,_0x18efe8[_0x866e30('0x161d')]=_0x5a529b;function _0x5a529b(_0x5c8974){const _0x393ad4=_0x866e30;_0x18efe8[_0x393ad4('0xd81')]=angular[_0x393ad4('0x14e5')](_0x5c8974),_0x18efe8[_0x393ad4('0x1713')][_0x393ad4('0x8cf')]=_0x393ad4('0x1312')['replace'](':id',_0x18efe8[_0x393ad4('0xd81')]['id']),_0x18efe8[_0x393ad4('0xd81')]['images']=[];}function _0x4fbe00(_0x18910d){const _0x87c1dd=_0x866e30,_0x5c9635=[_0x87c1dd('0x1b65'),_0x87c1dd('0x5ef')];if(!_0x49cbdd()[_0x87c1dd('0x24b0')](_0x5c9635,_0x18910d['getExtension']()))return _0x197823['error']({'title':_0x87c1dd('0xf3d')+_0x18910d[_0x87c1dd('0x11b0')](),'msg':_0x87c1dd('0x836')+_0x5c9635['join']()}),![];if(_0x18910d[_0x87c1dd('0xf04')]>_0x435c05)return _0x197823['error']({'title':'File\x20too\x20big','msg':'The\x20max\x20allowed\x20size\x20is\x20'+_0x489068+'MB'}),![];const _0x1c7f8c={'id':_0x18910d[_0x87c1dd('0x22b5')],'file':_0x18910d,'type':_0x87c1dd('0x22df')};return _0x18efe8[_0x87c1dd('0xd81')][_0x87c1dd('0x1563')][_0x87c1dd('0x1893')](_0x1c7f8c),!![];}function _0xd94663(){const _0x12367d=_0x866e30;_0x18efe8[_0x12367d('0xbdf')]['flow']['opts'][_0x12367d('0x10b')]={'X-Requested-With':'XMLHttpRequest','Authorization':'Bearer\x20'+_0x421c7f[_0x12367d('0x1c53')](_0x12367d('0xb2a'))},_0x18efe8[_0x12367d('0xbdf')][_0x12367d('0x3bb')]['upload']();}function _0xb786c8(_0x4c7c70){const _0x119b7b=_0x866e30;angular[_0x119b7b('0xccd')](_0x18efe8[_0x119b7b('0xd81')][_0x119b7b('0x1563')],function(_0x3e300d){const _0x18ed9d=_0x119b7b;if(_0x3e300d['id']===_0x4c7c70[_0x18ed9d('0x22b5')]){const _0x5bbeb8=new FileReader();_0x5bbeb8[_0x18ed9d('0x1ea4')](_0x3e300d[_0x18ed9d('0xc89')]['file']),_0x5bbeb8[_0x18ed9d('0x2a1')]=function(_0x5190c4){const _0x582942=_0x18ed9d;_0x3e300d[_0x582942('0x101e')]=_0x5190c4[_0x582942('0x8cf')][_0x582942('0x2284')];},_0x3e300d[_0x18ed9d('0x412')]='image';}});}}const _0x246290=_0x20f410;_0x3db8dc['$inject']=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x61a'),_0x4376d8('0xdb7'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x3db8dc(_0x5e69d7,_0x4a7ada,_0x3e7a18,_0x559522,_0x1507ef,_0xaeb5a4,_0x298f77,_0x1fab98,_0x58b2d,_0x5b8d70,_0x5cf898,_0x41b150,_0x4d258d,_0x3d9d37){const _0x4cfaa2=_0x4376d8,_0x45bf7b=this;_0x45bf7b[_0x4cfaa2('0x197c')]=_0x5cf898[_0x4cfaa2('0x2831')](),_0x45bf7b[_0x4cfaa2('0x73e')]=[],_0x45bf7b['setting']=_0x4d258d,_0x45bf7b[_0x4cfaa2('0x1d11')]=_0x41b150,_0x45bf7b[_0x4cfaa2('0x103e')]=_0x3d9d37,_0x45bf7b[_0x4cfaa2('0x6ee')]={},_0x45bf7b[_0x4cfaa2('0x1572')]=_0x45bf7b[_0x4cfaa2('0x1aeb')]&&_0x45bf7b['setting'][_0x4cfaa2('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x45bf7b['title']=_0x4cfaa2('0x168f'),_0x45bf7b['general']=angular[_0x4cfaa2('0x14e5')](_0x58b2d),_0x45bf7b['generals']=_0x1fab98,_0x45bf7b['newGeneral']=![];!_0x45bf7b[_0x4cfaa2('0xdb7')]&&(_0x45bf7b[_0x4cfaa2('0xdb7')]={'min_internal':0x3e8,'chatTimeout':0x1e,'phoneBarAutoUpdater':!![],'phoneBarAutoUpdaterUrl':_0x4cfaa2('0x1c8a'),'splitSizeCsv':0x1388,'splitSizePdf':0x3e8,'splitSizeXlsx':0x1388,'messagesAlignment':_0x4cfaa2('0x1d13'),'phoneBarRememberMeEnabled':!![],'allowedLoginAttempts':0x5,'blockDuration':0xa,'loginMailFrequency':0xa,'enforcePasswordHistory':!![],'passwordHistoryLimit':0x3},_0x45bf7b['title']=_0x4cfaa2('0x1325'),_0x45bf7b[_0x4cfaa2('0x1fa8')]=!![]);_0x45bf7b[_0x4cfaa2('0x240f')]=_0x32532a,_0x45bf7b[_0x4cfaa2('0x23f')]=_0x2a841e,_0x45bf7b[_0x4cfaa2('0x1e52')]=_0x1c2e4d,_0x45bf7b[_0x4cfaa2('0x1300')]=_0x394c00,_0x45bf7b[_0x4cfaa2('0x136e')]=_0x1c15ec,_0x5b8d70[_0x4cfaa2('0x2535')][_0x4cfaa2('0x1c53')]({'fields':_0x4cfaa2('0x12d2'),'sort':_0x4cfaa2('0x2aa'),'nolimit':_0x4cfaa2('0xe34')})[_0x4cfaa2('0x1af5')]['then'](function(_0x48a2c6){const _0x2aac15=_0x4cfaa2;_0x45bf7b[_0x2aac15('0x1409')]=_0x48a2c6['rows']||[];})['catch'](function(_0x531569){const _0x5963cb=_0x4cfaa2;_0x298f77[_0x5963cb('0x1db9')]({'title':_0x531569[_0x5963cb('0x11c5')]?_0x5963cb('0x14f7')+_0x531569[_0x5963cb('0x11c5')]+_0x5963cb('0x16e4')+_0x531569[_0x5963cb('0x1833')]:_0x5963cb('0x100c'),'msg':_0x531569['data']?JSON[_0x5963cb('0x678')](_0x531569['data']):_0x531569['toString']()});});function _0x32532a(){const _0x3deb19=_0x4cfaa2;_0x45bf7b[_0x3deb19('0x73e')]=[],_0x5b8d70[_0x3deb19('0x1aeb')][_0x3deb19('0x2439')](_0x45bf7b[_0x3deb19('0xdb7')])[_0x3deb19('0x1af5')][_0x3deb19('0x17e7')](function(_0x1e8658){const _0x1bd9c3=_0x3deb19;_0x45bf7b[_0x1bd9c3('0x61a')][_0x1bd9c3('0x1893')](_0x1e8658['toJSON']()),_0x298f77[_0x1bd9c3('0x130d')]({'title':'General\x20properly\x20created','msg':_0x45bf7b['general'][_0x1bd9c3('0x2aa')]?_0x45bf7b['general']['name']+_0x1bd9c3('0x15a'):''}),_0x1c15ec(_0x1e8658);})[_0x3deb19('0x16df')](function(_0x46630a){const _0x51a282=_0x3deb19;if(_0x46630a['data']&&_0x46630a[_0x51a282('0x1457')][_0x51a282('0x73e')]&&_0x46630a['data'][_0x51a282('0x73e')][_0x51a282('0x1f73')]){_0x45bf7b[_0x51a282('0x73e')]=_0x46630a[_0x51a282('0x1457')][_0x51a282('0x73e')]||[{'message':_0x46630a[_0x51a282('0x9b6')](),'type':_0x51a282('0x25e3')}];for(let _0x4c9334=0x0;_0x4c9334<_0x46630a[_0x51a282('0x1457')]['errors'][_0x51a282('0x1f73')];_0x4c9334+=0x1){_0x298f77[_0x51a282('0x1db9')]({'title':_0x46630a[_0x51a282('0x1457')][_0x51a282('0x73e')][_0x4c9334][_0x51a282('0x412')],'msg':_0x46630a[_0x51a282('0x1457')]['errors'][_0x4c9334][_0x51a282('0x1603')]});}}else _0x298f77[_0x51a282('0x1db9')]({'title':_0x46630a['status']?_0x51a282('0x14f7')+_0x46630a['status']+_0x51a282('0x16e4')+_0x46630a[_0x51a282('0x1833')]:_0x51a282('0x25e3'),'msg':_0x46630a[_0x51a282('0x1457')]?JSON['stringify'](_0x46630a[_0x51a282('0x1457')][_0x51a282('0x1603')]):_0x46630a[_0x51a282('0x9b6')]()});});}function _0x2a841e(){const _0xc8f2d2=_0x4cfaa2;_0x45bf7b['errors']=[],_0x5b8d70[_0xc8f2d2('0x1aeb')]['update']({'id':_0x45bf7b['general']['id']},_0x45bf7b[_0xc8f2d2('0xdb7')])[_0xc8f2d2('0x1af5')]['then'](function(_0x578284){const _0xcfc0d0=_0xc8f2d2,_0x5e8fb1=_0x49cbdd()[_0xcfc0d0('0xe8e')](_0x45bf7b['generals'],{'id':_0x578284['id']});_0x5e8fb1&&_0x49cbdd()[_0xcfc0d0('0x1ced')](_0x5e8fb1,_0x49cbdd()[_0xcfc0d0('0x230a')](_0x578284[_0xcfc0d0('0x16b2')](),_0x49cbdd()[_0xcfc0d0('0x1c0f')](_0x5e8fb1))),_0x298f77['success']({'title':_0xcfc0d0('0x2293'),'msg':_0x45bf7b[_0xcfc0d0('0xdb7')][_0xcfc0d0('0x2aa')]?_0x45bf7b[_0xcfc0d0('0xdb7')][_0xcfc0d0('0x2aa')]+_0xcfc0d0('0x15ca'):''}),_0x1c15ec(_0x578284);})['catch'](function(_0x1af7fc){const _0x395f1a=_0xc8f2d2;if(_0x1af7fc[_0x395f1a('0x1457')]&&_0x1af7fc[_0x395f1a('0x1457')]['errors']&&_0x1af7fc[_0x395f1a('0x1457')][_0x395f1a('0x73e')]['length']){_0x45bf7b[_0x395f1a('0x73e')]=_0x1af7fc[_0x395f1a('0x1457')]['errors']||[{'message':_0x1af7fc[_0x395f1a('0x9b6')](),'type':_0x395f1a('0x1c2a')}];for(let _0x1a9857=0x0;_0x1a9857<_0x1af7fc[_0x395f1a('0x1457')][_0x395f1a('0x73e')][_0x395f1a('0x1f73')];_0x1a9857++){_0x298f77[_0x395f1a('0x1db9')]({'title':_0x1af7fc[_0x395f1a('0x1457')]['errors'][_0x1a9857]['type'],'msg':_0x1af7fc['data'][_0x395f1a('0x73e')][_0x1a9857][_0x395f1a('0x1603')]});}}else _0x298f77['error']({'title':_0x1af7fc[_0x395f1a('0x11c5')]?_0x395f1a('0x14f7')+_0x1af7fc[_0x395f1a('0x11c5')]+_0x395f1a('0x16e4')+_0x1af7fc['statusText']:_0x395f1a('0x1c2a'),'msg':_0x1af7fc[_0x395f1a('0x1457')]?JSON[_0x395f1a('0x678')](_0x1af7fc[_0x395f1a('0x1457')][_0x395f1a('0x1603')]):_0x1af7fc[_0x395f1a('0x9b6')]()});});}function _0x1c2e4d(_0x36c055){const _0x23f5ac=_0x4cfaa2;_0x45bf7b[_0x23f5ac('0x73e')]=[];const _0x16672a=_0x559522[_0x23f5ac('0x1121')]()[_0x23f5ac('0x24d3')](_0x23f5ac('0x530'))[_0x23f5ac('0xd5')](_0x23f5ac('0x2556'))['ariaLabel'](_0x23f5ac('0x1b8c'))['ok'](_0x23f5ac('0x304'))['cancel'](_0x23f5ac('0x1b70'))[_0x23f5ac('0x104f')](_0x36c055);_0x559522[_0x23f5ac('0x28e2')](_0x16672a)[_0x23f5ac('0x17e7')](function(){const _0x262910=_0x23f5ac;_0x5b8d70['setting'][_0x262910('0x1da6')]({'id':_0x45bf7b[_0x262910('0xdb7')]['id']})[_0x262910('0x1af5')][_0x262910('0x17e7')](function(){const _0x52d095=_0x262910;_0x49cbdd()[_0x52d095('0x5f3')](_0x45bf7b['generals'],{'id':_0x45bf7b[_0x52d095('0xdb7')]['id']}),_0x298f77[_0x52d095('0x130d')]({'title':'General\x20properly\x20deleted!','msg':(_0x45bf7b[_0x52d095('0xdb7')]['name']||_0x52d095('0xdb7'))+_0x52d095('0x149f')}),_0x1c15ec(_0x45bf7b[_0x52d095('0xdb7')]);})[_0x262910('0x16df')](function(_0x1ae0c3){const _0x32e3a4=_0x262910;if(_0x1ae0c3[_0x32e3a4('0x1457')]&&_0x1ae0c3[_0x32e3a4('0x1457')][_0x32e3a4('0x73e')]&&_0x1ae0c3[_0x32e3a4('0x1457')][_0x32e3a4('0x73e')]['length']){_0x45bf7b['errors']=_0x1ae0c3[_0x32e3a4('0x1457')][_0x32e3a4('0x73e')]||[{'message':_0x1ae0c3['toString'](),'type':_0x32e3a4('0x8f9')}];for(let _0x262f8a=0x0;_0x262f8a<_0x1ae0c3[_0x32e3a4('0x1457')][_0x32e3a4('0x73e')][_0x32e3a4('0x1f73')];_0x262f8a++){_0x298f77[_0x32e3a4('0x1db9')]({'title':_0x1ae0c3[_0x32e3a4('0x1457')][_0x32e3a4('0x73e')][_0x262f8a][_0x32e3a4('0x412')],'msg':_0x1ae0c3[_0x32e3a4('0x1457')][_0x32e3a4('0x73e')][_0x262f8a][_0x32e3a4('0x1603')]});}}else _0x298f77[_0x32e3a4('0x1db9')]({'title':_0x1ae0c3[_0x32e3a4('0x11c5')]?_0x32e3a4('0x14f7')+_0x1ae0c3[_0x32e3a4('0x11c5')]+_0x32e3a4('0x16e4')+_0x1ae0c3[_0x32e3a4('0x1833')]:_0x32e3a4('0x8f9'),'msg':_0x1ae0c3['data']?JSON[_0x32e3a4('0x678')](_0x1ae0c3['data'][_0x32e3a4('0x1603')]):_0x1ae0c3[_0x32e3a4('0x1603')]||_0x1ae0c3[_0x32e3a4('0x9b6')]()});});},function(){});}function _0x394c00(_0x36e499){return _0x36e499===null?undefined:new Date(_0x36e499);}function _0x1c15ec(_0x27c088){const _0x4f7a76=_0x4cfaa2;_0x559522[_0x4f7a76('0x212a')](_0x27c088);}}const _0x14f7c5=_0x3db8dc;_0x5d8173[_0x4376d8('0x1b9c')]=[_0x4376d8('0x61a'),_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1d11'),'Auth'];function _0x5d8173(_0x634c61,_0x5f0979,_0xa0257b,_0x1eab00,_0x3d8d8d){const _0x56c4f4=_0x4376d8,_0x5b882b=this;_0x5b882b[_0x56c4f4('0x197c')]=_0x3d8d8d[_0x56c4f4('0x2831')](),_0x5b882b['license']=_0x1eab00,_0x5b882b['generals']=_0x634c61,_0x5b882b[_0x56c4f4('0xdb7')]={};_0x5b882b['generals']&&_0x5b882b[_0x56c4f4('0x61a')]['rows']&&_0x5b882b['generals'][_0x56c4f4('0x2319')][_0x56c4f4('0x1f73')]&&(_0x5b882b[_0x56c4f4('0xdb7')]=_0x5b882b[_0x56c4f4('0x61a')][_0x56c4f4('0x2319')][0x0]);_0x5f0979[_0x56c4f4('0x2535')][_0x56c4f4('0x1c53')]({'fields':_0x56c4f4('0x12d2'),'sort':_0x56c4f4('0x2aa'),'nolimit':'true'})[_0x56c4f4('0x1af5')][_0x56c4f4('0x17e7')](function(_0x38feb3){const _0x2ed48f=_0x56c4f4;_0x5b882b['cloudProviders']=_0x38feb3[_0x2ed48f('0x2319')]||[];})[_0x56c4f4('0x16df')](function(_0xde4493){const _0xd2a616=_0x56c4f4;_0xa0257b[_0xd2a616('0x1db9')]({'title':_0xde4493[_0xd2a616('0x11c5')]?_0xd2a616('0x14f7')+_0xde4493[_0xd2a616('0x11c5')]+_0xd2a616('0x16e4')+_0xde4493[_0xd2a616('0x1833')]:'SYSTEM:GET_CLOUDPROVIDERS','msg':_0xde4493[_0xd2a616('0x1457')]?JSON[_0xd2a616('0x678')](_0xde4493['data']):_0xde4493[_0xd2a616('0x9b6')]()});}),_0x5b882b[_0x56c4f4('0x23f')]=_0x1b02b0;function _0x1b02b0(){const _0x286a65=_0x56c4f4;_0x5b882b[_0x286a65('0xdb7')]['id']?_0x5f0979[_0x286a65('0x1aeb')][_0x286a65('0x27ba')]({'id':_0x5b882b['general']['id']},_0x5b882b[_0x286a65('0xdb7')])[_0x286a65('0x1af5')]['then'](function(){const _0x203c33=_0x286a65;_0xa0257b['success']({'title':_0x203c33('0xea3'),'msg':_0x5b882b[_0x203c33('0xdb7')][_0x203c33('0x2aa')]?_0x5b882b[_0x203c33('0xdb7')][_0x203c33('0x2aa')]+'\x20has\x20been\x20updated!':''});})[_0x286a65('0x16df')](function(_0x5629ee){const _0x1e2d82=_0x286a65;_0xa0257b[_0x1e2d82('0x1db9')]({'title':_0x5629ee[_0x1e2d82('0x11c5')]?_0x1e2d82('0x14f7')+_0x5629ee[_0x1e2d82('0x11c5')]+_0x1e2d82('0x16e4')+_0x5629ee[_0x1e2d82('0x1833')]:_0x1e2d82('0x11cf'),'msg':_0x5629ee[_0x1e2d82('0x1457')]?JSON[_0x1e2d82('0x678')](_0x5629ee[_0x1e2d82('0x1457')]):_0x5629ee[_0x1e2d82('0x9b6')]()});}):_0x5f0979[_0x286a65('0x1aeb')][_0x286a65('0x2439')](_0x5b882b['general'])[_0x286a65('0x1af5')][_0x286a65('0x17e7')](function(_0x4c854c){const _0x5bcd5f=_0x286a65;_0x49cbdd()[_0x5bcd5f('0x1ced')](_0x5b882b[_0x5bcd5f('0xdb7')],_0x4c854c),_0xa0257b[_0x5bcd5f('0x130d')]({'title':_0x5bcd5f('0xea3'),'msg':_0x5b882b['general'][_0x5bcd5f('0x2aa')]?_0x5b882b[_0x5bcd5f('0xdb7')]['name']+_0x5bcd5f('0x12b0'):''});})[_0x286a65('0x16df')](function(_0x5690b6){const _0x798600=_0x286a65;_0xa0257b[_0x798600('0x1db9')]({'title':_0x5690b6[_0x798600('0x11c5')]?'API:'+_0x5690b6['status']+_0x798600('0x16e4')+_0x5690b6[_0x798600('0x1833')]:_0x798600('0x11cf'),'msg':_0x5690b6[_0x798600('0x1457')]?JSON[_0x798600('0x678')](_0x5690b6[_0x798600('0x1457')]):_0x5690b6[_0x798600('0x9b6')]()});});}}const _0x132f79=_0x5d8173;_0x3e51d2[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x2119'),_0x4376d8('0x118'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x3e51d2(_0x43b416,_0x48712e,_0x591120,_0x5889e4,_0x5eb81d,_0x4b9667,_0xa1cd2c,_0x316a64,_0x3672f1,_0x4577f5,_0x2da4bb,_0x26b5c0,_0x500e20){const _0x25e3c5=_0x4376d8,_0x31f28b=this;_0x31f28b[_0x25e3c5('0x197c')]=_0x2da4bb[_0x25e3c5('0x2831')](),_0x31f28b[_0x25e3c5('0x73e')]=[],_0x31f28b[_0x25e3c5('0x1aeb')]=_0x500e20,_0x31f28b[_0x25e3c5('0x1d11')]=_0x26b5c0,_0x31f28b[_0x25e3c5('0x6ee')]={},_0x31f28b[_0x25e3c5('0x1572')]=_0x31f28b[_0x25e3c5('0x1aeb')]&&_0x31f28b[_0x25e3c5('0x1aeb')][_0x25e3c5('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x31f28b['title']=_0x25e3c5('0x1d8c'),_0x31f28b[_0x25e3c5('0x118')]=angular[_0x25e3c5('0x14e5')](_0x3672f1),_0x31f28b['networks']=_0x316a64,_0x31f28b[_0x25e3c5('0x1e89')]=![];!_0x31f28b[_0x25e3c5('0x118')]&&(_0x31f28b[_0x25e3c5('0x118')]={'type':_0x25e3c5('0x976')},_0x31f28b[_0x25e3c5('0x24d3')]=_0x25e3c5('0x1545'),_0x31f28b['newNetwork']=!![]);_0x31f28b[_0x25e3c5('0x576')]=_0x399927,_0x31f28b['saveNetwork']=_0x5b0cfe,_0x31f28b[_0x25e3c5('0x27a5')]=_0x32906c,_0x31f28b[_0x25e3c5('0x1300')]=_0x53e09e,_0x31f28b[_0x25e3c5('0x136e')]=_0x485035;function _0x399927(){const _0x1752e6=_0x25e3c5;_0x31f28b['errors']=[],_0x4577f5['network'][_0x1752e6('0x2439')](_0x31f28b[_0x1752e6('0x118')])['$promise'][_0x1752e6('0x17e7')](function(_0x5cf90f){const _0x3c098e=_0x1752e6;_0x31f28b[_0x3c098e('0x2119')][_0x3c098e('0x1893')](_0x5cf90f['toJSON']()),_0xa1cd2c[_0x3c098e('0x130d')]({'title':_0x3c098e('0x1a05'),'msg':_0x31f28b[_0x3c098e('0x118')][_0x3c098e('0x2aa')]?_0x31f28b[_0x3c098e('0x118')][_0x3c098e('0x2aa')]+_0x3c098e('0x15a'):''}),_0x485035(_0x5cf90f);})[_0x1752e6('0x16df')](function(_0xe4b8e){const _0x4e4b97=_0x1752e6;if(_0xe4b8e[_0x4e4b97('0x1457')]&&_0xe4b8e[_0x4e4b97('0x1457')][_0x4e4b97('0x73e')]&&_0xe4b8e['data'][_0x4e4b97('0x73e')]['length']){_0x31f28b[_0x4e4b97('0x73e')]=_0xe4b8e[_0x4e4b97('0x1457')][_0x4e4b97('0x73e')]||[{'message':_0xe4b8e['toString'](),'type':_0x4e4b97('0xef8')}];for(let _0x358bf9=0x0;_0x358bf9<_0xe4b8e[_0x4e4b97('0x1457')]['errors'][_0x4e4b97('0x1f73')];_0x358bf9+=0x1){_0xa1cd2c[_0x4e4b97('0x1db9')]({'title':_0xe4b8e[_0x4e4b97('0x1457')][_0x4e4b97('0x73e')][_0x358bf9][_0x4e4b97('0x412')],'msg':_0xe4b8e[_0x4e4b97('0x1457')][_0x4e4b97('0x73e')][_0x358bf9][_0x4e4b97('0x1603')]});}}else _0xa1cd2c['error']({'title':_0xe4b8e[_0x4e4b97('0x11c5')]?_0x4e4b97('0x14f7')+_0xe4b8e[_0x4e4b97('0x11c5')]+'\x20-\x20'+_0xe4b8e[_0x4e4b97('0x1833')]:_0x4e4b97('0xef8'),'msg':_0xe4b8e[_0x4e4b97('0x1457')]?JSON['stringify'](_0xe4b8e[_0x4e4b97('0x1457')][_0x4e4b97('0x1603')]):_0xe4b8e[_0x4e4b97('0x9b6')]()});});}function _0x5b0cfe(){const _0x3fba32=_0x25e3c5;_0x31f28b[_0x3fba32('0x73e')]=[],_0x4577f5[_0x3fba32('0x118')][_0x3fba32('0x27ba')]({'id':_0x31f28b['network']['id']},_0x31f28b['network'])[_0x3fba32('0x1af5')]['then'](function(_0x2ffbbc){const _0x952a15=_0x3fba32,_0x3f0fd2=_0x49cbdd()[_0x952a15('0xe8e')](_0x31f28b['networks'],{'id':_0x2ffbbc['id']});_0x3f0fd2&&_0x49cbdd()['merge'](_0x3f0fd2,_0x49cbdd()[_0x952a15('0x230a')](_0x2ffbbc[_0x952a15('0x16b2')](),_0x49cbdd()[_0x952a15('0x1c0f')](_0x3f0fd2))),_0xa1cd2c[_0x952a15('0x130d')]({'title':_0x952a15('0x24d5'),'msg':_0x31f28b[_0x952a15('0x118')][_0x952a15('0x2aa')]?_0x31f28b[_0x952a15('0x118')][_0x952a15('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x485035(_0x2ffbbc);})[_0x3fba32('0x16df')](function(_0x3ddc57){const _0x3270f8=_0x3fba32;if(_0x3ddc57[_0x3270f8('0x1457')]&&_0x3ddc57[_0x3270f8('0x1457')][_0x3270f8('0x73e')]&&_0x3ddc57[_0x3270f8('0x1457')][_0x3270f8('0x73e')][_0x3270f8('0x1f73')]){_0x31f28b['errors']=_0x3ddc57[_0x3270f8('0x1457')][_0x3270f8('0x73e')]||[{'message':_0x3ddc57[_0x3270f8('0x9b6')](),'type':_0x3270f8('0x21a5')}];for(let _0x3a10d4=0x0;_0x3a10d4<_0x3ddc57[_0x3270f8('0x1457')][_0x3270f8('0x73e')][_0x3270f8('0x1f73')];_0x3a10d4++){_0xa1cd2c[_0x3270f8('0x1db9')]({'title':_0x3ddc57['data'][_0x3270f8('0x73e')][_0x3a10d4][_0x3270f8('0x412')],'msg':_0x3ddc57[_0x3270f8('0x1457')]['errors'][_0x3a10d4]['message']});}}else _0xa1cd2c[_0x3270f8('0x1db9')]({'title':_0x3ddc57[_0x3270f8('0x11c5')]?_0x3270f8('0x14f7')+_0x3ddc57[_0x3270f8('0x11c5')]+_0x3270f8('0x16e4')+_0x3ddc57[_0x3270f8('0x1833')]:_0x3270f8('0x21a5'),'msg':_0x3ddc57[_0x3270f8('0x1457')]?JSON[_0x3270f8('0x678')](_0x3ddc57['data'][_0x3270f8('0x1603')]):_0x3ddc57[_0x3270f8('0x9b6')]()});});}function _0x32906c(_0x325ea5){const _0x4e30c5=_0x25e3c5;_0x31f28b[_0x4e30c5('0x73e')]=[];const _0x1ecbd3=_0x5889e4[_0x4e30c5('0x1121')]()[_0x4e30c5('0x24d3')]('Are\x20you\x20sure?')[_0x4e30c5('0xd5')](_0x4e30c5('0x1126'))[_0x4e30c5('0x2095')](_0x4e30c5('0x2777'))['ok'](_0x4e30c5('0x304'))[_0x4e30c5('0x1d47')](_0x4e30c5('0x1b70'))[_0x4e30c5('0x104f')](_0x325ea5);_0x5889e4['show'](_0x1ecbd3)['then'](function(){const _0x161dca=_0x4e30c5;_0x4577f5['network'][_0x161dca('0x1da6')]({'id':_0x31f28b[_0x161dca('0x118')]['id']})[_0x161dca('0x1af5')][_0x161dca('0x17e7')](function(){const _0x4d5c82=_0x161dca;_0x49cbdd()[_0x4d5c82('0x5f3')](_0x31f28b['networks'],{'id':_0x31f28b[_0x4d5c82('0x118')]['id']}),_0xa1cd2c[_0x4d5c82('0x130d')]({'title':_0x4d5c82('0x1034'),'msg':(_0x31f28b[_0x4d5c82('0x118')][_0x4d5c82('0x2aa')]||_0x4d5c82('0x118'))+_0x4d5c82('0x149f')}),_0x485035(_0x31f28b[_0x4d5c82('0x118')]);})[_0x161dca('0x16df')](function(_0x569ca9){const _0x34c5a9=_0x161dca;if(_0x569ca9[_0x34c5a9('0x1457')]&&_0x569ca9[_0x34c5a9('0x1457')]['errors']&&_0x569ca9['data'][_0x34c5a9('0x73e')][_0x34c5a9('0x1f73')]){_0x31f28b['errors']=_0x569ca9[_0x34c5a9('0x1457')]['errors']||[{'message':_0x569ca9[_0x34c5a9('0x9b6')](),'type':'api.network.delete'}];for(let _0xe52286=0x0;_0xe52286<_0x569ca9[_0x34c5a9('0x1457')][_0x34c5a9('0x73e')]['length'];_0xe52286++){_0xa1cd2c['error']({'title':_0x569ca9[_0x34c5a9('0x1457')][_0x34c5a9('0x73e')][_0xe52286]['type'],'msg':_0x569ca9[_0x34c5a9('0x1457')]['errors'][_0xe52286][_0x34c5a9('0x1603')]});}}else _0xa1cd2c['error']({'title':_0x569ca9[_0x34c5a9('0x11c5')]?_0x34c5a9('0x14f7')+_0x569ca9['status']+'\x20-\x20'+_0x569ca9[_0x34c5a9('0x1833')]:'api.network.delete','msg':_0x569ca9['data']?JSON[_0x34c5a9('0x678')](_0x569ca9[_0x34c5a9('0x1457')][_0x34c5a9('0x1603')]):_0x569ca9['message']||_0x569ca9['toString']()});});},function(){});}function _0x53e09e(_0x23f804){return _0x23f804===null?undefined:new Date(_0x23f804);}function _0x485035(_0x33b5bf){const _0x29624c=_0x25e3c5;_0x5889e4[_0x29624c('0x212a')](_0x33b5bf);}}const _0x4900e9=_0x3e51d2,_0x5cd837=_0x4cf2bc['p']+_0x4376d8('0x1090');_0x182d3c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),'$mdDialog','$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x2119'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x182d3c(_0x271f6a,_0x3def3f,_0x6ad1dd,_0x72bc12,_0x3735b4,_0x42be42,_0x412a00,_0x1a0ee0,_0x136d5e,_0x29b5f1,_0xb62c1,_0x232dfe,_0x2cfeaf,_0x41aa9b,_0x2390e0){const _0x56d165=_0x4376d8,_0x24403e=this;_0x24403e[_0x56d165('0x1d11')]=_0x41aa9b,_0x24403e['setting']=_0x2390e0,_0x24403e[_0x56d165('0x197c')]=_0x2cfeaf['getCurrentUser'](),_0x24403e[_0x56d165('0x2119')]=_0x136d5e||{'count':0x0,'rows':[]},_0x24403e[_0x56d165('0x23c3')]=_0x56d165('0x2119'),_0x24403e[_0x56d165('0x26a1')]='',_0x24403e[_0x56d165('0x24e1')]=null,_0x24403e[_0x56d165('0x1803')]=[],_0x24403e[_0x56d165('0x826')]={'fields':'createdAt,updatedAt,id,type,value,username,password','sort':_0x56d165('0x1ac6'),'limit':0xa,'page':0x1},_0x24403e[_0x56d165('0xc41')]=_0x49cbdd()[_0x56d165('0x8de')]([{'option':_0x56d165('0x250d'),'value':_0x56d165('0x1639')},{'option':_0x56d165('0x3fe'),'value':_0x56d165('0x1426')},{'option':'Turn','value':_0x56d165('0x2424')},{'option':'Stun','value':_0x56d165('0x8cb')}],function(_0x4c2608){const _0x348dce=_0x56d165;return _0x49cbdd()[_0x348dce('0x737')](_0x4c2608[_0x348dce('0x175b')],new RegExp('\x27','g'),'');}),_0x24403e['editdialog']=_0x298e16,_0x24403e[_0x56d165('0xbf4')]=_0xfd3bb0,_0x24403e[_0x56d165('0x130d')]=_0x315ef5,_0x24403e[_0x56d165('0xe4')]=_0x57ffbf,_0x24403e['createOrEditNetwork']=_0x36eca2,_0x24403e[_0x56d165('0x27a5')]=_0x36efab,_0x24403e[_0x56d165('0x14af')]=_0x415655,_0x24403e[_0x56d165('0x26fc')]=_0xa62f77,_0x24403e[_0x56d165('0x20a8')]=_0xde5d86,_0x24403e[_0x56d165('0x1fa6')]=_0x596648;function _0x298e16(_0x39c4f6,_0x25e02d){const _0x3f2226=_0x56d165;_0x3735b4['show']({'controller':_0x3f2226('0x2732'),'controllerAs':'vm','templateUrl':_0x5cd837,'parent':angular[_0x3f2226('0x1ce1')](_0x42be42[_0x3f2226('0x13aa')]),'targetEvent':_0x25e02d,'clickOutsideToClose':!![],'locals':{'network':_0x39c4f6,'networks':_0x24403e[_0x3f2226('0x2119')][_0x3f2226('0x2319')],'license':_0x24403e[_0x3f2226('0x1d11')],'setting':null,'crudPermissions':_0x24403e[_0x3f2226('0x103e')]}});}function _0xfd3bb0(_0x4c1f94,_0x2fef2b){const _0x591422=_0x56d165,_0x5e3f9e=_0x3735b4[_0x591422('0x1121')]()[_0x591422('0x24d3')](_0x591422('0x5e1')+_0x49cbdd()[_0x591422('0x1c98')](_0x591422('0x118'))+'?')[_0x591422('0x211f')](_0x591422('0xa53')+(_0x4c1f94[_0x591422('0x2aa')]||'network')+_0x591422('0x1d23')+_0x591422('0xe9f'))[_0x591422('0x2095')](_0x591422('0x1033'))[_0x591422('0x104f')](_0x2fef2b)['ok']('OK')['cancel'](_0x591422('0x28a0'));_0x3735b4[_0x591422('0x28e2')](_0x5e3f9e)[_0x591422('0x17e7')](function(){_0x36efab(_0x4c1f94);},function(){const _0x5071ed=_0x591422;console[_0x5071ed('0x1d63')](_0x5071ed('0x28a0'));});}let _0x31cd1e=!![],_0x16f669=0x1;_0x271f6a['$watch']('vm.query.filter',function(_0x4bcbeb,_0x3ff07d){const _0x5e1b56=_0x56d165;_0x31cd1e?_0x412a00(function(){_0x31cd1e=![];}):(!_0x3ff07d&&(_0x16f669=_0x24403e[_0x5e1b56('0x826')][_0x5e1b56('0x115a')]),_0x4bcbeb!==_0x3ff07d&&(_0x24403e[_0x5e1b56('0x826')][_0x5e1b56('0x115a')]=0x1),!_0x4bcbeb&&(_0x24403e[_0x5e1b56('0x826')]['page']=_0x16f669),_0x24403e[_0x5e1b56('0xe4')]());});function _0x315ef5(_0x50c914){_0x24403e['networks']=_0x50c914||{'count':0x0,'rows':[]};}function _0x57ffbf(){const _0x54a961=_0x56d165;_0x24403e[_0x54a961('0x826')][_0x54a961('0xf19')]=(_0x24403e[_0x54a961('0x826')]['page']-0x1)*_0x24403e['query'][_0x54a961('0x193b')],_0x2cfeaf[_0x54a961('0x1ba2')](_0x54a961('0x20bf'))?_0x24403e[_0x54a961('0x1691')]=_0x29b5f1[_0x54a961('0x118')]['get'](_0x24403e['query'],_0x315ef5)['$promise']:(_0x24403e[_0x54a961('0x826')]['id']=_0x24403e[_0x54a961('0xdeb')]['id'],_0x24403e[_0x54a961('0x826')]['section']=_0x54a961('0x1962'),_0x24403e[_0x54a961('0x1691')]=_0x29b5f1[_0x54a961('0xdeb')]['getResources'](_0x24403e[_0x54a961('0x826')],_0x315ef5)[_0x54a961('0x1af5')]);}function _0x36eca2(_0x470a38,_0x4195eb){const _0x9534c7=_0x56d165;_0x3735b4[_0x9534c7('0x28e2')]({'controller':_0x9534c7('0x2732'),'controllerAs':'vm','templateUrl':_0x5cd837,'parent':angular[_0x9534c7('0x1ce1')](_0x42be42[_0x9534c7('0x13aa')]),'targetEvent':_0x470a38,'clickOutsideToClose':!![],'locals':{'network':_0x4195eb,'networks':_0x24403e[_0x9534c7('0x2119')][_0x9534c7('0x2319')],'license':_0x24403e[_0x9534c7('0x1d11')],'setting':_0x24403e[_0x9534c7('0x1aeb')],'crudPermissions':_0x24403e[_0x9534c7('0x103e')]}});}function _0x36efab(_0x4dc50f){const _0x2ec461=_0x56d165;_0x29b5f1[_0x2ec461('0x118')]['delete']({'id':_0x4dc50f['id']})['$promise'][_0x2ec461('0x17e7')](function(){const _0x28730e=_0x2ec461;_0x49cbdd()[_0x28730e('0x5f3')](_0x24403e[_0x28730e('0x2119')][_0x28730e('0x2319')],{'id':_0x4dc50f['id']}),_0x24403e['networks'][_0x28730e('0x335')]-=0x1,!_0x24403e['networks'][_0x28730e('0x2319')][_0x28730e('0x1f73')]&&_0x24403e[_0x28730e('0xe4')](),_0x232dfe[_0x28730e('0x130d')]({'title':_0x49cbdd()[_0x28730e('0x1c98')](_0x28730e('0xd3'))+_0x28730e('0x2673'),'msg':_0x4dc50f[_0x28730e('0x2aa')]?_0x4dc50f['name']+_0x28730e('0x149f'):''});})['catch'](function(_0x1b0963){const _0x8703fd=_0x2ec461;if(_0x1b0963['data']&&_0x1b0963['data'][_0x8703fd('0x73e')]&&_0x1b0963[_0x8703fd('0x1457')][_0x8703fd('0x73e')][_0x8703fd('0x1f73')]){_0x24403e[_0x8703fd('0x73e')]=_0x1b0963[_0x8703fd('0x1457')][_0x8703fd('0x73e')]||[{'message':_0x1b0963[_0x8703fd('0x9b6')](),'type':_0x8703fd('0x21f1')}];for(let _0x5e073d=0x0;_0x5e073d<_0x1b0963[_0x8703fd('0x1457')][_0x8703fd('0x73e')][_0x8703fd('0x1f73')];_0x5e073d++){_0x232dfe[_0x8703fd('0x1db9')]({'title':_0x1b0963[_0x8703fd('0x1457')][_0x8703fd('0x73e')][_0x5e073d][_0x8703fd('0x412')],'msg':_0x1b0963[_0x8703fd('0x1457')]['errors'][_0x5e073d][_0x8703fd('0x1603')]});}}else _0x232dfe[_0x8703fd('0x1db9')]({'title':_0x1b0963[_0x8703fd('0x11c5')]?_0x8703fd('0x14f7')+_0x1b0963['status']+_0x8703fd('0x16e4')+_0x1b0963['statusText']:_0x8703fd('0x21f1'),'msg':_0x1b0963[_0x8703fd('0x1457')]?JSON[_0x8703fd('0x678')](_0x1b0963[_0x8703fd('0x1457')][_0x8703fd('0x1603')]):_0x1b0963['message']||_0x1b0963[_0x8703fd('0x9b6')]()});});}function _0x415655(){const _0x23daef=_0x56d165,_0x327772=angular[_0x23daef('0x14e5')](_0x24403e[_0x23daef('0x1803')]);return _0x24403e['selectedNetworks']=[],_0x327772;}function _0xa62f77(_0x360c47){const _0xde26dd=_0x56d165,_0x4b11a6=_0x3735b4['confirm']()[_0xde26dd('0x24d3')](_0xde26dd('0x2084'))[_0xde26dd('0x211f')](_0xde26dd('0xa53')+_0x24403e[_0xde26dd('0x1803')][_0xde26dd('0x1f73')]+'\x20selected'+_0xde26dd('0xe9f'))[_0xde26dd('0x2095')](_0xde26dd('0x1505'))[_0xde26dd('0x104f')](_0x360c47)['ok']('OK')[_0xde26dd('0x1d47')](_0xde26dd('0x28a0'));_0x3735b4['show'](_0x4b11a6)[_0xde26dd('0x17e7')](function(){const _0x233cb4=_0xde26dd;_0x24403e[_0x233cb4('0x1803')][_0x233cb4('0xccd')](function(_0x123421){_0x36efab(_0x123421);}),_0x24403e['selectedNetworks']=[];});}function _0xde5d86(){_0x24403e['selectedNetworks']=[];}function _0x596648(){const _0x51acd1=_0x56d165;_0x24403e[_0x51acd1('0x1803')]=_0x24403e[_0x51acd1('0x2119')][_0x51acd1('0x2319')];}}const _0xc66f24=_0x182d3c;_0x380877[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),'toasty',_0x4376d8('0x1c4a'),_0x4376d8('0x324'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x380877(_0xe5a745,_0x1e2aab,_0xaa6af0,_0x20753d,_0x54ece8,_0x334870,_0x36ab39,_0xfee2a3,_0x1b8ed9,_0x5d123e,_0x153f87,_0x2fb964,_0x449e3e,_0x23c1c7){const _0x1344b2=_0x4376d8,_0x217bae=this;_0x217bae[_0x1344b2('0x197c')]=_0x153f87[_0x1344b2('0x2831')](),_0x217bae[_0x1344b2('0x73e')]=[],_0x217bae[_0x1344b2('0x1aeb')]=_0x449e3e,_0x217bae[_0x1344b2('0x1d11')]=_0x2fb964,_0x217bae[_0x1344b2('0x103e')]=_0x23c1c7,_0x217bae[_0x1344b2('0x6ee')]={},_0x217bae[_0x1344b2('0x1572')]=_0x217bae[_0x1344b2('0x1aeb')]&&_0x217bae[_0x1344b2('0x1aeb')][_0x1344b2('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x217bae[_0x1344b2('0x24d3')]=_0x1344b2('0x1022'),_0x217bae[_0x1344b2('0x324')]=angular[_0x1344b2('0x14e5')](_0x1b8ed9),_0x217bae[_0x1344b2('0x1c4a')]=_0xfee2a3,_0x217bae[_0x1344b2('0x265c')]=![];!_0x217bae[_0x1344b2('0x324')]&&(_0x217bae[_0x1344b2('0x324')]={'service':!![]},_0x217bae[_0x1344b2('0x24d3')]=_0x1344b2('0x1b58'),_0x217bae['newSmtp']=!![]);_0x217bae[_0x1344b2('0x7a4')]=_0x519b18,_0x217bae[_0x1344b2('0x1be5')]=_0x1d336f,_0x217bae['deleteSmtp']=_0x5e70dd,_0x217bae[_0x1344b2('0x1300')]=_0x5dbbab,_0x217bae[_0x1344b2('0x136e')]=_0x1028d6;function _0x519b18(){const _0x53a14f=_0x1344b2;_0x217bae[_0x53a14f('0x73e')]=[],_0x5d123e['mailAccount'][_0x53a14f('0x2439')](_0x217bae[_0x53a14f('0x324')])[_0x53a14f('0x1af5')][_0x53a14f('0x17e7')](function(_0x4bc6ff){const _0x48aba4=_0x53a14f;_0x217bae['smtps'][_0x48aba4('0x1893')](_0x4bc6ff['toJSON']()),_0x36ab39['success']({'title':'Smtp\x20properly\x20created','msg':_0x217bae[_0x48aba4('0x324')][_0x48aba4('0x2aa')]?_0x217bae['smtp'][_0x48aba4('0x2aa')]+_0x48aba4('0x15a'):''}),_0x1028d6(_0x4bc6ff);})['catch'](function(_0x21528e){const _0x21bce3=_0x53a14f;if(_0x21528e[_0x21bce3('0x1457')]&&_0x21528e[_0x21bce3('0x1457')]['errors']&&_0x21528e[_0x21bce3('0x1457')][_0x21bce3('0x73e')][_0x21bce3('0x1f73')]){_0x217bae['errors']=_0x21528e[_0x21bce3('0x1457')][_0x21bce3('0x73e')]||[{'message':_0x21528e['toString'](),'type':'api.mailAccount.save'}];for(let _0x10385a=0x0;_0x10385a<_0x21528e[_0x21bce3('0x1457')][_0x21bce3('0x73e')][_0x21bce3('0x1f73')];_0x10385a+=0x1){_0x36ab39['error']({'title':_0x21528e[_0x21bce3('0x1457')][_0x21bce3('0x73e')][_0x10385a][_0x21bce3('0x412')],'msg':_0x21528e[_0x21bce3('0x1457')][_0x21bce3('0x73e')][_0x10385a][_0x21bce3('0x1603')]});}}else _0x36ab39[_0x21bce3('0x1db9')]({'title':_0x21528e[_0x21bce3('0x11c5')]?'API:'+_0x21528e['status']+_0x21bce3('0x16e4')+_0x21528e['statusText']:'api.mailAccount.save','msg':_0x21528e[_0x21bce3('0x1457')]?JSON[_0x21bce3('0x678')](_0x21528e['data'][_0x21bce3('0x1603')]):_0x21528e[_0x21bce3('0x9b6')]()});});}function _0x1d336f(){const _0x1cbf32=_0x1344b2;_0x217bae[_0x1cbf32('0x73e')]=[],_0x5d123e['mailAccount'][_0x1cbf32('0x27ba')]({'id':_0x217bae[_0x1cbf32('0x324')]['id']},_0x217bae[_0x1cbf32('0x324')])[_0x1cbf32('0x1af5')][_0x1cbf32('0x17e7')](function(_0xdae4ea){const _0x16d0a1=_0x1cbf32,_0x13d610=_0x49cbdd()[_0x16d0a1('0xe8e')](_0x217bae['smtps'],{'id':_0xdae4ea['id']});_0x13d610&&_0x49cbdd()['merge'](_0x13d610,_0x49cbdd()[_0x16d0a1('0x230a')](_0xdae4ea['toJSON'](),_0x49cbdd()[_0x16d0a1('0x1c0f')](_0x13d610))),_0x36ab39['success']({'title':_0x16d0a1('0xc4b'),'msg':_0x217bae['smtp'][_0x16d0a1('0x2aa')]?_0x217bae['smtp'][_0x16d0a1('0x2aa')]+_0x16d0a1('0x15ca'):''}),_0x1028d6(_0xdae4ea);})[_0x1cbf32('0x16df')](function(_0x5ed6fc){const _0x21d16f=_0x1cbf32;if(_0x5ed6fc[_0x21d16f('0x1457')]&&_0x5ed6fc[_0x21d16f('0x1457')][_0x21d16f('0x73e')]&&_0x5ed6fc[_0x21d16f('0x1457')][_0x21d16f('0x73e')][_0x21d16f('0x1f73')]){_0x217bae[_0x21d16f('0x73e')]=_0x5ed6fc[_0x21d16f('0x1457')][_0x21d16f('0x73e')]||[{'message':_0x5ed6fc[_0x21d16f('0x9b6')](),'type':_0x21d16f('0xa43')}];for(let _0x21d082=0x0;_0x21d082<_0x5ed6fc['data'][_0x21d16f('0x73e')]['length'];_0x21d082++){_0x36ab39['error']({'title':_0x5ed6fc[_0x21d16f('0x1457')][_0x21d16f('0x73e')][_0x21d082][_0x21d16f('0x412')],'msg':_0x5ed6fc[_0x21d16f('0x1457')][_0x21d16f('0x73e')][_0x21d082][_0x21d16f('0x1603')]});}}else _0x36ab39[_0x21d16f('0x1db9')]({'title':_0x5ed6fc[_0x21d16f('0x11c5')]?'API:'+_0x5ed6fc[_0x21d16f('0x11c5')]+_0x21d16f('0x16e4')+_0x5ed6fc['statusText']:'api.mailAccount.update','msg':_0x5ed6fc['data']?JSON['stringify'](_0x5ed6fc[_0x21d16f('0x1457')]['message']):_0x5ed6fc['toString']()});});}function _0x5e70dd(_0x49b5a1){const _0x2c8da6=_0x1344b2;_0x217bae[_0x2c8da6('0x73e')]=[];const _0x57daa4=_0x20753d[_0x2c8da6('0x1121')]()['title'](_0x2c8da6('0x530'))[_0x2c8da6('0xd5')](_0x2c8da6('0xde6'))[_0x2c8da6('0x2095')]('Delete\x20Smtp')['ok'](_0x2c8da6('0x304'))['cancel']('Cancel')[_0x2c8da6('0x104f')](_0x49b5a1);_0x20753d[_0x2c8da6('0x28e2')](_0x57daa4)[_0x2c8da6('0x17e7')](function(){const _0x38a751=_0x2c8da6;_0x5d123e[_0x38a751('0x127b')][_0x38a751('0x1da6')]({'id':_0x217bae[_0x38a751('0x324')]['id']})[_0x38a751('0x1af5')][_0x38a751('0x17e7')](function(){const _0x5a617a=_0x38a751;_0x49cbdd()[_0x5a617a('0x5f3')](_0x217bae[_0x5a617a('0x1c4a')],{'id':_0x217bae[_0x5a617a('0x324')]['id']}),_0x36ab39[_0x5a617a('0x130d')]({'title':_0x5a617a('0x12bd'),'msg':(_0x217bae[_0x5a617a('0x324')]['name']||_0x5a617a('0x324'))+'\x20has\x20been\x20deleted!'}),_0x1028d6(_0x217bae[_0x5a617a('0x324')]);})['catch'](function(_0x31ad9a){const _0x9506c1=_0x38a751;if(_0x31ad9a['data']&&_0x31ad9a[_0x9506c1('0x1457')][_0x9506c1('0x73e')]&&_0x31ad9a[_0x9506c1('0x1457')][_0x9506c1('0x73e')]['length']){_0x217bae[_0x9506c1('0x73e')]=_0x31ad9a[_0x9506c1('0x1457')][_0x9506c1('0x73e')]||[{'message':_0x31ad9a['toString'](),'type':_0x9506c1('0x516')}];for(let _0xbb952b=0x0;_0xbb952b<_0x31ad9a['data'][_0x9506c1('0x73e')][_0x9506c1('0x1f73')];_0xbb952b++){_0x36ab39[_0x9506c1('0x1db9')]({'title':_0x31ad9a[_0x9506c1('0x1457')][_0x9506c1('0x73e')][_0xbb952b][_0x9506c1('0x412')],'msg':_0x31ad9a[_0x9506c1('0x1457')][_0x9506c1('0x73e')][_0xbb952b][_0x9506c1('0x1603')]});}}else _0x36ab39['error']({'title':_0x31ad9a[_0x9506c1('0x11c5')]?_0x9506c1('0x14f7')+_0x31ad9a[_0x9506c1('0x11c5')]+'\x20-\x20'+_0x31ad9a[_0x9506c1('0x1833')]:_0x9506c1('0x516'),'msg':_0x31ad9a[_0x9506c1('0x1457')]?JSON[_0x9506c1('0x678')](_0x31ad9a['data'][_0x9506c1('0x1603')]):_0x31ad9a[_0x9506c1('0x1603')]||_0x31ad9a['toString']()});});},function(){});}function _0x5dbbab(_0x454ad6){return _0x454ad6===null?undefined:new Date(_0x454ad6);}function _0x1028d6(_0x1573e9){const _0x453418=_0x1344b2;_0x20753d[_0x453418('0x212a')](_0x1573e9);}}const _0x3a9b7f=_0x380877;_0x449527[_0x4376d8('0x1b9c')]=['smtps',_0x4376d8('0x212e'),'toasty',_0x4376d8('0x1d11'),_0x4376d8('0x1885')];function _0x449527(_0x1bb027,_0x34618a,_0xd2c83b,_0x29349a,_0x182f22){const _0x4e9f6b=_0x4376d8,_0x4fe62b=this;_0x4fe62b[_0x4e9f6b('0x197c')]=_0x182f22[_0x4e9f6b('0x2831')](),_0x4fe62b[_0x4e9f6b('0x1d11')]=_0x29349a,_0x4fe62b['smtps']=_0x1bb027,_0x4fe62b[_0x4e9f6b('0x324')]={};_0x4fe62b[_0x4e9f6b('0x1c4a')]&&_0x4fe62b[_0x4e9f6b('0x1c4a')][_0x4e9f6b('0x2319')]&&_0x4fe62b[_0x4e9f6b('0x1c4a')][_0x4e9f6b('0x2319')][_0x4e9f6b('0x1f73')]?_0x4fe62b[_0x4e9f6b('0x324')]=_0x4fe62b[_0x4e9f6b('0x1c4a')][_0x4e9f6b('0x2319')][0x0]:_0x4fe62b[_0x4e9f6b('0x324')]={'service':!![],'Smtp':{'service':null}};_0x4fe62b[_0x4e9f6b('0x1be5')]=_0x167b7a,_0x4fe62b[_0x4e9f6b('0x1bf1')]=_0x180d3d;function _0x180d3d(){const _0x293d90=_0x4e9f6b;_0x4fe62b[_0x293d90('0x324')]['id']&&_0x34618a['mailAccount']['verifySmtp']({'id':_0x4fe62b['smtp']['id']})[_0x293d90('0x1af5')][_0x293d90('0x17e7')](function(){const _0x122275=_0x293d90;_0xd2c83b[_0x122275('0x130d')]({'title':'Smtp\x20verified!','msg':_0x4fe62b[_0x122275('0x324')]['name']?_0x4fe62b[_0x122275('0x324')][_0x122275('0x2aa')]+'\x20has\x20been\x20verified!':''});})[_0x293d90('0x16df')](function(_0x411ced){const _0x222b09=_0x293d90;_0xd2c83b['error']({'title':_0x222b09('0xb71'),'msg':_0x411ced[_0x222b09('0x1457')]?JSON['stringify'](_0x411ced[_0x222b09('0x1457')]):_0x411ced[_0x222b09('0x9b6')](),'timeout':0x2710});});}function _0x167b7a(){const _0x11c91c=_0x4e9f6b;_0x4fe62b[_0x11c91c('0x324')]['id']?_0x34618a[_0x11c91c('0x127b')]['update']({'id':_0x4fe62b[_0x11c91c('0x324')]['id']},_0x4fe62b[_0x11c91c('0x324')])['$promise']['then'](function(){const _0x4c57c5=_0x11c91c;_0xd2c83b['success']({'title':'Smtp\x20updated!','msg':_0x4fe62b[_0x4c57c5('0x324')][_0x4c57c5('0x2aa')]?_0x4fe62b[_0x4c57c5('0x324')][_0x4c57c5('0x2aa')]+'\x20has\x20been\x20updated!':''});})[_0x11c91c('0x16df')](function(_0x5ea4eb){const _0x5e645a=_0x11c91c;_0xd2c83b['error']({'title':_0x5ea4eb[_0x5e645a('0x11c5')]?_0x5e645a('0x14f7')+_0x5ea4eb[_0x5e645a('0x11c5')]+_0x5e645a('0x16e4')+_0x5ea4eb[_0x5e645a('0x1833')]:'SYSTEM:GETmailAccount','msg':_0x5ea4eb[_0x5e645a('0x1457')]?JSON[_0x5e645a('0x678')](_0x5ea4eb['data']):_0x5ea4eb[_0x5e645a('0x9b6')]()});}):_0x34618a[_0x11c91c('0x127b')][_0x11c91c('0x2439')](_0x4fe62b[_0x11c91c('0x324')])[_0x11c91c('0x1af5')][_0x11c91c('0x17e7')](function(_0x523046){const _0x35d14f=_0x11c91c;_0x49cbdd()[_0x35d14f('0x1ced')](_0x4fe62b['smtp'],_0x523046),_0xd2c83b['success']({'title':_0x35d14f('0xcfa'),'msg':_0x4fe62b[_0x35d14f('0x324')][_0x35d14f('0x2aa')]?_0x4fe62b[_0x35d14f('0x324')][_0x35d14f('0x2aa')]+_0x35d14f('0x12b0'):''});})[_0x11c91c('0x16df')](function(_0x101407){const _0x10ec6b=_0x11c91c;_0xd2c83b[_0x10ec6b('0x1db9')]({'title':_0x101407['status']?_0x10ec6b('0x14f7')+_0x101407[_0x10ec6b('0x11c5')]+_0x10ec6b('0x16e4')+_0x101407[_0x10ec6b('0x1833')]:_0x10ec6b('0x2061'),'msg':_0x101407[_0x10ec6b('0x1457')]?JSON[_0x10ec6b('0x678')](_0x101407[_0x10ec6b('0x1457')]):_0x101407[_0x10ec6b('0x9b6')]()});});}}const _0x49f2f5=_0x449527;_0x433c3a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),'$translatePartialLoaderProvider'];function _0x433c3a(_0x4a417d,_0x406089){const _0x2ae6c2=_0x4376d8;_0x4a417d[_0x2ae6c2('0x1b9a')](_0x2ae6c2('0xf9a'),{'abstract':!![],'url':'/settings'})[_0x2ae6c2('0x1b9a')]('app.settings.generals',{'url':_0x2ae6c2('0x2e7'),'views':{'content@app':{'templateUrl':_0x348bf5,'controller':_0x2ae6c2('0x934')}},'resolve':{'generals':[_0x2ae6c2('0x177'),function(_0x2404b1){const _0x48cca4=_0x2ae6c2;return _0x2404b1[_0x48cca4('0x898')](_0x48cca4('0x1bfd'),{'fields':_0x48cca4('0x242'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':'settings'})[_0x2ae6c2('0x1b9a')](_0x2ae6c2('0x15c7'),{'url':_0x2ae6c2('0x613'),'views':{'content@app':{'templateUrl':_0x15a737,'controller':_0x2ae6c2('0x27d1')}},'resolve':{'smtps':[_0x2ae6c2('0x177'),function(_0x481acd){const _0x310331=_0x2ae6c2;return _0x481acd[_0x310331('0x898')]('mailAccount@get',{'fields':_0x310331('0x19b9'),'service':'1','limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x2ae6c2('0x429')})['state']('app.settings.networks',{'url':_0x2ae6c2('0x1bdd'),'views':{'content@app':{'templateUrl':_0x3ef185,'controller':_0x2ae6c2('0x1336')}},'resolve':{'networks':['apiResolver',function(_0x3dc782){const _0x215287=_0x2ae6c2;return _0x3dc782[_0x215287('0x898')](_0x215287('0x12c6'),{'fields':_0x215287('0x256c'),'sort':_0x215287('0x1ac6'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x2ae6c2('0x429')})[_0x2ae6c2('0x1b9a')](_0x2ae6c2('0x2047'),{'url':_0x2ae6c2('0x2091'),'views':{'content@app':{'templateUrl':_0x29fa82,'controller':'CustomizationsController\x20as\x20vm'}},'resolve':{'customizations':[_0x2ae6c2('0x177'),function(_0x33371f){const _0xe1a33c=_0x2ae6c2;return _0x33371f['resolve']('setting@get',{'fields':_0xe1a33c('0x1c09'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x2ae6c2('0x429')})[_0x2ae6c2('0x1b9a')](_0x2ae6c2('0x4fb'),{'url':_0x2ae6c2('0x1e45'),'views':{'content@app':{'templateUrl':_0x3422b0,'controller':_0x2ae6c2('0x962')}},'resolve':{'cloudProviders':['apiResolver',function(_0x3a124a){const _0x1b9414=_0x2ae6c2;return _0x3a124a[_0x1b9414('0x898')](_0x1b9414('0x1638'),{'fields':_0x1b9414('0x17de'),'sort':_0x1b9414('0x1ac6'),'limit':0xa,'offset':0x0});}]},'authenticate':!![],'permissionId':0x578,'bodyClass':_0x2ae6c2('0x429')}),_0x406089[_0x2ae6c2('0x10b3')](_0x2ae6c2('0x3a5'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0xf9a'),['ngCsv',_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),'ngAnimate',_0x4376d8('0xf54'),'mwFormBuilder','mwFormViewer',_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),_0x4376d8('0xad5'),_0x4376d8('0x2159'),_0x4376d8('0xd9f')])['config'](_0x433c3a)[_0x4376d8('0x5ce')](_0x4376d8('0x14c9'),_0x4400ed)[_0x4376d8('0x5ce')](_0x4376d8('0x302'),_0x1018f5)['controller'](_0x4376d8('0x2406'),_0x23a410)[_0x4376d8('0x5ce')](_0x4376d8('0x1828'),_0x2cd110)[_0x4376d8('0x5ce')](_0x4376d8('0x13e4'),_0x32941c)[_0x4376d8('0x5ce')]('CustomizationlogoController',_0xf75a77)[_0x4376d8('0x5ce')]('CustomizationlogologinController',_0x3b9aa7)['controller'](_0x4376d8('0x2277'),_0x246290)['controller'](_0x4376d8('0x26a8'),_0x14f7c5)[_0x4376d8('0x5ce')](_0x4376d8('0xce5'),_0x132f79)[_0x4376d8('0x5ce')](_0x4376d8('0x2732'),_0x4900e9)[_0x4376d8('0x5ce')](_0x4376d8('0x6b8'),_0xc66f24)['controller'](_0x4376d8('0x289c'),_0x3a9b7f)[_0x4376d8('0x5ce')](_0x4376d8('0x25a4'),_0x49f2f5);const _0x3775ec=_0x4cf2bc['p']+_0x4376d8('0x27d2'),_0x926fc9=_0x4cf2bc['p']+_0x4376d8('0x397'),_0x69d5eb=_0x4cf2bc['p']+_0x4376d8('0x231c'),_0x2cb21b=_0x4cf2bc['p']+'src/js/modules/main/apps/motiondialer/views/realtime/queue_calls/view.html/view.html',_0x30a5aa=_0x4cf2bc['p']+'src/js/modules/main/apps/motiondialer/views/realtime/abandonedcalls/view.html/view.html',_0x154e0e=_0x4cf2bc['p']+_0x4376d8('0x3b3'),_0x45a97e=_0x4cf2bc['p']+_0x4376d8('0x25b9'),_0x550ffe=_0x4cf2bc['p']+_0x4376d8('0x1dfa');_0x581a58[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$window',_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x1885'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0x25ea'),'dispositions'];function _0x581a58(_0xfb9710,_0x5bcb94,_0x47e495,_0x253528,_0x376234,_0x50ddd0,_0x4c174e,_0x23bdbb,_0x1fbdde,_0x2f7c34,_0x2f974f,_0x422b89,_0x1bc7e4,_0x18e6f6){const _0x50db96=_0x4376d8,_0x385c8f=this;_0x385c8f[_0x50db96('0x197c')]=_0x2f7c34[_0x50db96('0x2831')](),_0x385c8f[_0x50db96('0x25ea')]=_0x1bc7e4?_0x1bc7e4:[],_0x385c8f[_0x50db96('0x23fe')]=_0x18e6f6,_0x385c8f[_0x50db96('0x911')]={'count':0x0,'rows':[]},_0x385c8f[_0x50db96('0xfb4')]=![],_0x385c8f[_0x50db96('0x26de')]=!![],_0x385c8f['userProfile']=_0x23bdbb,_0x385c8f[_0x50db96('0x383')]=_0x1fbdde&&_0x1fbdde[_0x50db96('0x335')]==0x1?_0x1fbdde[_0x50db96('0x2319')][0x0]:null,_0x385c8f[_0x50db96('0x103e')]=_0x2f7c34[_0x50db96('0x17a9')](_0x385c8f[_0x50db96('0x383')]?_0x385c8f[_0x50db96('0x383')][_0x50db96('0x103e')]:null),_0x385c8f[_0x50db96('0x826')]={'fields':_0x50db96('0x6ea'),'type':_0x50db96('0x1ade'),'queuecallerexitreason':_0x50db96('0x24')+','+_0x50db96('0x227b'),'sort':_0x50db96('0x1ac6'),'limit':0xa,'page':0x1},_0x385c8f[_0x50db96('0x1eb9')]=_0x541f07,_0x385c8f['refreshAbandonedCalls']=_0x5491db,_0x385c8f[_0x50db96('0x25a9')]=_0x8831ae,_0x385c8f[_0x50db96('0x164c')]=_0x2fb5d1,_0x385c8f[_0x50db96('0x339')]=_0x9f5d33,_0x385c8f[_0x50db96('0x562')]=_0x2515fd,_0x2f974f[_0x50db96('0x1335')]('voiceQueueReport:save',_0x385c8f[_0x50db96('0x339')]),_0x2f974f['on'](_0x50db96('0x140f'),_0x385c8f['onUpdateVoiceQueueReport']),_0x4d8685();function _0x4d8685(){const _0x4e4034=_0x50db96;let _0x15fa52=_0x376234[_0x4e4034('0x1a93')]['getItem'](_0x4e4034('0xde5')+_0x385c8f[_0x4e4034('0x197c')]['id']);if(_0x15fa52)_0x15fa52=JSON[_0x4e4034('0x1f0a')](_0x15fa52),_0x15fa52&&_0x15fa52[_0x4e4034('0x826')]&&(_0x385c8f[_0x4e4034('0x826')]=_0x49cbdd()[_0x4e4034('0x1ced')](_0x15fa52[_0x4e4034('0x826')],_0x49cbdd()[_0x4e4034('0x15c3')](_0x385c8f['query'],[_0x4e4034('0x1b22'),_0x4e4034('0x193b'),'page'])),_0x385c8f[_0x4e4034('0x826')]=_0x49cbdd()['omit'](_0x385c8f[_0x4e4034('0x826')],_0x4e4034('0x2483')));else{const _0x23e91e={'$gte':_0x107a13()()[_0x4e4034('0x161c')]('month')[_0x4e4034('0x1376')](0x0,!![])[_0x4e4034('0x1c0d')](),'$lte':_0x107a13()()['endOf']('month')[_0x4e4034('0x1376')](0x0,!![])[_0x4e4034('0x1c0d')]()};_0x385c8f[_0x4e4034('0x826')]['createdAt']=_0x23e91e;}_0x2f7c34[_0x4e4034('0x1ba2')](_0x4e4034('0x20bf'))?_0x4c174e[_0x4e4034('0x221e')][_0x4e4034('0x1f3b')]({'id':_0x2f7c34[_0x4e4034('0x2831')]()['id'],'fields':_0x4e4034('0x12d2'),'channel':_0x4e4034('0x1fe1'),'type':'outbound','nolimit':!![]})['$promise'][_0x4e4034('0x17e7')](function(_0x1395c9){const _0x116e25=_0x4e4034;_0x385c8f[_0x116e25('0x14c4')]=_0x1395c9||{'count':0x0,'rows':[]},_0x385c8f[_0x116e25('0xf91')]=_0x49cbdd()[_0x116e25('0x250e')](_0x49cbdd()[_0x116e25('0x8de')](_0x385c8f[_0x116e25('0x14c4')]['rows'],_0x116e25('0x2aa')),_0x116e25('0x2aa'));})['catch'](function(_0x3fa49f){const _0x4eee29=_0x4e4034;console[_0x4eee29('0x1db9')](_0x3fa49f);})[_0x4e4034('0x74e')](function(){const _0x48a91d=_0x4e4034;_0x385c8f[_0x48a91d('0x137d')]=_0x4c8e25(),_0x385c8f[_0x48a91d('0x1eb9')]();}):_0x4c174e[_0x4e4034('0xdeb')][_0x4e4034('0x2447')]({'id':_0x385c8f['currentUser'][_0x4e4034('0x1e76')],'section':_0x4e4034('0x1299'),'channel':_0x4e4034('0x1fe1'),'type':_0x4e4034('0x1ade'),'sort':_0x4e4034('0x1ac6'),'nolimit':!![]})[_0x4e4034('0x1af5')][_0x4e4034('0x17e7')](function(_0x2429d4){const _0x285672=_0x4e4034;_0x385c8f[_0x285672('0x14c4')]=_0x2429d4||{'count':0x0,'rows':[]},_0x385c8f[_0x285672('0xf91')]=_0x49cbdd()[_0x285672('0x250e')](_0x49cbdd()[_0x285672('0x8de')](_0x385c8f['queues'][_0x285672('0x2319')],_0x285672('0x2aa')),'name');})['catch'](function(_0x51498b){console['error'](_0x51498b);})[_0x4e4034('0x74e')](function(){const _0x3cab87=_0x4e4034;_0x385c8f[_0x3cab87('0x137d')]=_0x4c8e25(),_0x385c8f['getAbandonedCalls']();});}function _0x4c8e25(){const _0x13e357=_0x50db96;return[{'name':_0x13e357('0x1786'),'key':_0x13e357('0x7c9'),'type':'date','label':_0x13e357('0x1ee1')},{'name':_0x13e357('0x1874'),'key':_0x13e357('0x5ab'),'type':_0x13e357('0x2897'),'label':_0x13e357('0x351'),'options':_0x385c8f['agents'][_0x13e357('0x2319')],'customOptions':[{'value':_0x13e357('0xb84'),'translate':_0x13e357('0x154d')},{'value':undefined,'translate':_0x13e357('0x9cf')}]},{'name':_0x13e357('0xd59'),'key':'queue','type':_0x13e357('0x1227'),'label':_0x13e357('0x14ba'),'options':_0x385c8f[_0x13e357('0x14c4')]['rows']}];}function _0x541f07(){const _0x7c9796=_0x50db96;_0x385c8f[_0x7c9796('0x26de')]=![],_0x385c8f[_0x7c9796('0x14c4')][_0x7c9796('0x335')]>0x0?(_0x385c8f[_0x7c9796('0x826')]['queue']=_0x385c8f[_0x7c9796('0x14c4')][_0x7c9796('0x335')]===0x1?_0x385c8f['queues'][_0x7c9796('0x2319')][0x0]['name']:_0x385c8f[_0x7c9796('0x826')]['queue'],_0x385c8f[_0x7c9796('0x826')][_0x7c9796('0xf19')]=(_0x385c8f[_0x7c9796('0x826')][_0x7c9796('0x115a')]-0x1)*_0x385c8f[_0x7c9796('0x826')][_0x7c9796('0x193b')],_0x376234[_0x7c9796('0x1a93')][_0x7c9796('0x230f')](_0x7c9796('0xde5')+_0x385c8f[_0x7c9796('0x197c')]['id'],JSON[_0x7c9796('0x678')]({'query':_0x49cbdd()[_0x7c9796('0x15c3')](_0x385c8f[_0x7c9796('0x826')],'queue')})),_0x385c8f['promise']=_0x4c174e[_0x7c9796('0x2086')][_0x7c9796('0xeb6')](_0x385c8f[_0x7c9796('0x826')],_0xdcc316)[_0x7c9796('0x1af5')]):_0xdcc316(null);}function _0xdcc316(_0x42f974){const _0x4ae6d7=_0x50db96;_0x385c8f[_0x4ae6d7('0x911')]=_0x42f974||{'count':0x0,'rows':[]},_0x385c8f[_0x4ae6d7('0x26de')]=!![];}function _0x5491db(){const _0x1b6048=_0x50db96;_0x385c8f[_0x1b6048('0xfb4')]=![],_0x385c8f[_0x1b6048('0x1eb9')]();}function _0x9f5d33(_0x3dfba4){const _0x5c83dd=_0x50db96,_0x27588a=_0x5c83dd('0x1ade');_0x3dfba4&&_0x385c8f['queuesMap']&&_0x3dfba4['queue'][_0x5c83dd('0x412')]===_0x27588a&&_0x385c8f[_0x5c83dd('0xf91')][_0x3dfba4['queue']]&&(_0x385c8f[_0x5c83dd('0xfb4')]=!![]);}function _0x2515fd(_0x3fd033){const _0x373610=_0x50db96;if(_0x3fd033){const _0x2b7327=_0x49cbdd()[_0x373610('0x1f4c')](_0x385c8f['abandonedCalls'][_0x373610('0x2319')],['id',_0x3fd033['id']]);_0x2b7327>=0x0&&_0x49cbdd()[_0x373610('0x1ced')](_0x385c8f['abandonedCalls']['rows'][_0x2b7327],_0x3fd033);}}function _0x8831ae(_0x2259b5,_0x5212bb){const _0x27b083=_0x50db96;_0x2259b5&&_0x4c174e[_0x27b083('0x2086')][_0x27b083('0x27ba')]({'id':_0x2259b5['id'],'lastAssignedTo':_0x5212bb?_0x5212bb[_0x27b083('0x2aa')]:null,'assigned':_0x5212bb?!![]:![]})[_0x27b083('0x1af5')][_0x27b083('0x16df')](function(_0x109a45){console['log'](_0x109a45);});}function _0x2fb5d1(_0x4331c1){const _0x55892e=_0x50db96;_0x47e495[_0x55892e('0x28e2')]({'controller':_0x55892e('0xf7b'),'controllerAs':'vm','templateUrl':_0x550ffe,'parent':angular[_0x55892e('0x1ce1')](_0x253528[_0x55892e('0x13aa')]),'targetEvent':_0x4331c1,'resolve':{'globalDispositions':[_0x55892e('0x177'),function(_0x2f2b21){const _0x470b93=_0x55892e;return _0x2f2b21[_0x470b93('0x898')](_0x470b93('0x18d5'),{'MailAccountId':'null','FaxAccountId':_0x470b93('0x9bb'),'SmsAccountId':_0x470b93('0x9bb'),'WhatsappAccountId':_0x470b93('0x9bb'),'OpenchannelAccountId':_0x470b93('0x9bb'),'ChatWebsiteId':'null','ListId':_0x470b93('0x9bb')});}]},'locals':{'dispositions':_0x385c8f[_0x55892e('0x23fe')],'call':_0x4331c1}})[_0x55892e('0x17e7')](function(_0x17b3ac){const _0x3c9617=_0x55892e;if(_0x17b3ac){const _0x5398f1={'id':_0x4331c1['id'],'disposition':_0x17b3ac[_0x3c9617('0x11f4')]||null,'secondDisposition':_0x17b3ac[_0x3c9617('0x19ca')]||null,'thirdDisposition':_0x17b3ac['thirdLevel']||null};_0x4c174e[_0x3c9617('0x2086')][_0x3c9617('0x27ba')](_0x5398f1)[_0x3c9617('0x1af5')][_0x3c9617('0x16df')](function(_0x547c45){const _0x49303d=_0x3c9617;console[_0x49303d('0x1d63')](_0x547c45);});}});}let _0x593253=!![],_0x5291d7=0x1;_0xfb9710['$watch'](_0x50db96('0x3ed'),function(_0x5d00f0,_0x2802ca){const _0x2a9eb5=_0x50db96;_0x593253?_0x5bcb94(function(){_0x593253=![];}):(!_0x2802ca&&(_0x5291d7=_0x385c8f['query'][_0x2a9eb5('0x115a')]),_0x5d00f0!==_0x2802ca&&(_0x385c8f[_0x2a9eb5('0x826')]['page']=0x1),!_0x5d00f0&&(_0x385c8f['query'][_0x2a9eb5('0x115a')]=_0x5291d7),_0x385c8f[_0x2a9eb5('0x1eb9')]());}),_0xfb9710[_0x50db96('0x207c')](_0x50db96('0x2b4'),function(){const _0x3f43a2=_0x50db96;_0x2f974f[_0x3f43a2('0x1c65')](_0x3f43a2('0x174c')),_0x2f974f['removeAllListeners']('voiceQueueReport:update');});}const _0x4f8641=_0x581a58;_0xc27d09[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$q','$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$filter','pauses',_0x4376d8('0x25ea'),'rpcAgents','api',_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0x628'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x33a')];function _0xc27d09(_0x5e96e1,_0x4b61b3,_0x652c38,_0x50ebbf,_0x48713b,_0x475306,_0x83ef7e,_0x292bef,_0x486ef4,_0x22a518,_0xd18b4b,_0x201c9b,_0x4411dd,_0x4889f8,_0x234c86,_0x5d51f7,_0x5ef074,_0x824867){const _0x1212b7=_0x4376d8,_0x283af4=this,_0x241170=['userpic','online',_0x1212b7('0x341'),_0x1212b7('0x110a'),_0x1212b7('0x11ec'),_0x1212b7('0x110a'),_0x1212b7('0xe3e'),_0x1212b7('0x15'),_0x1212b7('0x2764'),'openchannelPause','mailPause','smsPause',_0x1212b7('0x185b'),_0x1212b7('0x1d98'),_0x1212b7('0x118a'),_0x1212b7('0x1b1a'),'openchannelCapacity',_0x1212b7('0xe'),'smsCapacity','whatsappCapacity','faxCapacity','chatCurrentCapacity',_0x1212b7('0x1149'),_0x1212b7('0x12e7'),_0x1212b7('0x1c68'),_0x1212b7('0x1798'),_0x1212b7('0x154f'),'chatStatus',_0x1212b7('0x200c'),'mailStatus',_0x1212b7('0x30'),_0x1212b7('0x38d'),_0x1212b7('0x14b9'),'voiceStatus',_0x1212b7('0x587'),_0x1212b7('0x18b1'),_0x1212b7('0x16a4'),_0x1212b7('0x893'),_0x1212b7('0x1e2a'),_0x1212b7('0xbdb'),'voiceStatusTime','queue',_0x1212b7('0xce0'),_0x1212b7('0xf1a'),'phoneBarEnableScreenRecordingByAgent',_0x1212b7('0xa0d')],_0x354cd8=[_0x1212b7('0x2764'),_0x1212b7('0x105e'),_0x1212b7('0x1467'),'smsPause',_0x1212b7('0x185b'),_0x1212b7('0x1d98'),_0x1212b7('0x118a'),_0x1212b7('0x1872')];_0x283af4[_0x1212b7('0x197c')]=_0x5d51f7[_0x1212b7('0x2831')](),_0x283af4[_0x1212b7('0x232c')]=['ringing','inuse','busy',_0x1212b7('0xa01'),'not_inuse'],_0x283af4['pauses']=_0x83ef7e||{'count':0x0,'rows':[]},_0x283af4[_0x1212b7('0x1d11')]=_0x5ef074,_0x283af4[_0x1212b7('0xdeb')]=_0x4889f8,_0x283af4[_0x1212b7('0x383')]=_0x234c86&&_0x234c86[_0x1212b7('0x335')]==0x1?_0x234c86['rows'][0x0]:null,_0x283af4['crudPermissions']=_0x5d51f7[_0x1212b7('0x17a9')](_0x283af4[_0x1212b7('0x383')]?_0x283af4[_0x1212b7('0x383')][_0x1212b7('0x103e')]:null),_0x283af4[_0x1212b7('0x25ea')]=_0x292bef?_0x49cbdd()[_0x1212b7('0x8de')](_0x292bef[_0x1212b7('0x2319')]?_0x292bef[_0x1212b7('0x2319')]:[],'id'):{},_0x283af4['rpcAgents']=_0x486ef4?_0x49cbdd()[_0x1212b7('0x8de')](_0x486ef4[_0x1212b7('0x2319')]?_0x486ef4[_0x1212b7('0x2319')]:[],'id'):{},_0x283af4['paginatedAgents']={},_0x283af4[_0x1212b7('0xae2')]=![],_0x283af4[_0x1212b7('0x1e36')]=[],_0x283af4['agentInternal']={};for(const _0x44d978 in _0x283af4[_0x1212b7('0x25ea')]){typeof _0x283af4[_0x1212b7('0x25ea')][_0x44d978]!==_0x1212b7('0xfad')&&(_0x283af4[_0x1212b7('0x25ea')][_0x44d978][_0x1212b7('0x161d')]=!![]);}_0x283af4['query']={'limit':0xa,'page':0x1,'order':_0x1212b7('0xea6'),'globalStatusFilter':'','pauseTypeFilter':''},_0x283af4[_0x1212b7('0xff8')]=_0x517563,_0x283af4[_0x1212b7('0x18ba')]=_0x517de8,_0x283af4[_0x1212b7('0x267a')]=_0x4b0500,_0x283af4['unPause']=_0x573374,_0x283af4['showInfo']=_0x1e8ed3,_0x283af4[_0x1212b7('0x7f6')]=_0x435e52,_0x283af4[_0x1212b7('0x21a0')]=_0xe965e2,_0x283af4[_0x1212b7('0x5b9')]=_0x55622d,_0x283af4[_0x1212b7('0x160d')]=_0x5ef09c,_0x283af4[_0x1212b7('0x179b')]=_0x4746b1,_0x283af4[_0x1212b7('0xfd5')]=_0x499a5b,_0x283af4[_0x1212b7('0x1fc4')]=_0x7b3b6b,_0x283af4['onInit']=_0x4a7e99,_0x283af4[_0x1212b7('0x410')]=_0x2016c4,_0x283af4[_0x1212b7('0x1ccb')]=_0x2eac12,_0x283af4[_0x1212b7('0x1375')]=_0x1249ad,_0xd18b4b['on'](_0x1212b7('0x21a2'),_0x283af4['onSave']),_0xd18b4b['on'](_0x1212b7('0x284f'),_0x283af4['onUpdate']),_0xd18b4b['on']('user:agentconnect',_0x283af4[_0x1212b7('0x410')]),_0xd18b4b['on'](_0x1212b7('0x1f1f'),_0x283af4['onComplete']),_0x4a7e99();let _0x3d5e5d=_0x824867(function(){const _0x22d80b=_0x1212b7;_0x283af4[_0x22d80b('0xae2')]&&(_0x283af4['load']=![],_0x4a7e99());},0x3e7);function _0x4a7e99(){const _0x583155=_0x1212b7;_0x283af4['load']=![];const _0x53ac95=_0x4b61b3['defer']();_0x283af4['promise']=_0x53ac95[_0x583155('0x1691')],_0x283af4[_0x583155('0x1b79')]=[],_0x283af4[_0x583155('0x1e36')]=[],_0x49cbdd()[_0x583155('0x1857')](_0x283af4[_0x583155('0x25ea')],function(_0x5a6de5,_0xa93234){const _0x426e66=_0x583155;_0x283af4[_0x426e66('0x1593')][_0xa93234]&&_0x49cbdd()[_0x426e66('0x1ced')](_0x5a6de5,_0x49cbdd()[_0x426e66('0x230a')](_0x49cbdd()[_0x426e66('0x15c3')](_0x283af4['rpcAgents'][_0xa93234],_0x354cd8),_0x241170)),_0xe965e2(_0x5a6de5),_0x5a6de5[_0x426e66('0x1872')]?(_0x283af4[_0x426e66('0x1b79')][_0x426e66('0x269f')](_0x5a6de5),_0x283af4[_0x426e66('0x20a5')][_0x5a6de5['internal']]=_0xa93234):_0x5a6de5[_0x426e66('0x22cb')]=_0x49cbdd()[_0x426e66('0xa33')](_0x107a13()()['format']('x'));});_0x283af4['query'][_0x583155('0x14f9')]&&_0x49cbdd()[_0x583155('0x5f3')](_0x283af4['filteredAgents'],function(_0x36b49e){const _0x1296ab=_0x583155;return _0x36b49e['globalStatus']!==_0x283af4['query'][_0x1296ab('0x14f9')];});_0x283af4[_0x583155('0x826')][_0x583155('0x44f')]&&_0x49cbdd()[_0x583155('0x5f3')](_0x283af4[_0x583155('0x1b79')],function(_0x17c5ab){const _0x5272bc=_0x583155;return _0x17c5ab[_0x5272bc('0x11ec')]!==_0x283af4['query']['pauseTypeFilter'];});_0x283af4[_0x583155('0x826')][_0x583155('0x2483')]&&_0x49cbdd()['remove'](_0x283af4[_0x583155('0x1b79')],function(_0x180978){const _0x19cf3c=_0x583155;return _0x180978[_0x19cf3c('0xea6')][_0x19cf3c('0x19b')]()[_0x19cf3c('0x2567')](_0x283af4[_0x19cf3c('0x826')][_0x19cf3c('0x2483')][_0x19cf3c('0x19b')]())<0x0;});_0x283af4[_0x583155('0x1b79')]=_0x31cbfe(_0x283af4['filteredAgents']);const _0x2661e3=(_0x283af4[_0x583155('0x826')][_0x583155('0x115a')]-0x1)*_0x283af4[_0x583155('0x826')][_0x583155('0x193b')];_0x283af4[_0x583155('0x219a')]=_0x49cbdd()[_0x583155('0x6c0')](_0x283af4[_0x583155('0x1b79')],_0x2661e3)['slice'](0x0,_0x283af4['query'][_0x583155('0x193b')]);for(let _0x1f48d8=0x0;_0x1f48d8<_0x283af4['paginatedAgents']['length'];_0x1f48d8+=0x1){_0x283af4[_0x583155('0x1e36')][_0x583155('0x269f')](_0x283af4[_0x583155('0x219a')][_0x1f48d8]['id']);}_0x53ac95[_0x583155('0x898')](),_0x283af4['load']=!![];}function _0x499a5b(_0x13ac0a){const _0x162ac8=_0x1212b7;_0x283af4['agents'][_0x13ac0a['id']]&&(_0x49cbdd()['merge'](_0x283af4[_0x162ac8('0x25ea')][_0x13ac0a['id']],_0x49cbdd()[_0x162ac8('0x230a')](_0x49cbdd()[_0x162ac8('0x15c3')](_0x13ac0a,_0x354cd8),_0x241170)),_0x49cbdd()['merge'](_0x283af4[_0x162ac8('0x1593')][_0x13ac0a['id']],_0x49cbdd()[_0x162ac8('0x230a')](_0x49cbdd()[_0x162ac8('0x15c3')](_0x13ac0a,_0x354cd8),_0x241170)),_0xe965e2(_0x283af4[_0x162ac8('0x25ea')][_0x13ac0a['id']]));}function _0x7b3b6b(_0x499a2f){const _0x5425c3=_0x1212b7;_0x283af4[_0x5425c3('0x25ea')][_0x499a2f['id']]&&(_0x49cbdd()['merge'](_0x283af4[_0x5425c3('0x25ea')][_0x499a2f['id']],_0x49cbdd()[_0x5425c3('0x230a')](_0x499a2f,_0x241170)),_0x49cbdd()[_0x5425c3('0x1ced')](_0x283af4[_0x5425c3('0x1593')][_0x499a2f['id']],_0x49cbdd()[_0x5425c3('0x230a')](_0x499a2f,_0x241170)),_0x499a2f['lastPauseAt']&&(_0x283af4[_0x5425c3('0x25ea')][_0x499a2f['id']][_0x5425c3('0x22cb')]=_0x499a2f[_0x5425c3('0x110a')],_0x283af4[_0x5425c3('0x1593')][_0x499a2f['id']][_0x5425c3('0x22cb')]=_0x499a2f['lastPauseAt']),_0xe965e2(_0x283af4[_0x5425c3('0x25ea')][_0x499a2f['id']]));}function _0x2016c4(_0x12c38b){const _0x1894be=_0x1212b7;_0x283af4[_0x1894be('0x25ea')][_0x283af4[_0x1894be('0x20a5')][_0x12c38b[_0x1894be('0x1177')]]]&&(_0x49cbdd()[_0x1894be('0x1ced')](_0x283af4[_0x1894be('0x25ea')][_0x283af4[_0x1894be('0x20a5')][_0x12c38b[_0x1894be('0x1177')]]],_0x49cbdd()['pick'](_0x12c38b,[_0x1894be('0x1bd'),_0x1894be('0xce0')])),_0x49cbdd()['merge'](_0x283af4[_0x1894be('0x1593')][_0x283af4[_0x1894be('0x20a5')][_0x12c38b[_0x1894be('0x1177')]]],_0x49cbdd()[_0x1894be('0x230a')](_0x12c38b,[_0x1894be('0x1bd'),_0x1894be('0xce0')])));}function _0x2eac12(_0x476204){const _0x2e79d9=_0x1212b7;_0x283af4[_0x2e79d9('0x25ea')][_0x283af4['agentInternal'][_0x476204['destaccountcode']]]&&(_0x283af4[_0x2e79d9('0x25ea')][_0x283af4[_0x2e79d9('0x20a5')][_0x476204['destaccountcode']]]=_0x49cbdd()['omit'](_0x283af4[_0x2e79d9('0x25ea')][_0x283af4[_0x2e79d9('0x20a5')][_0x476204[_0x2e79d9('0x1177')]]],[_0x2e79d9('0x1bd'),_0x2e79d9('0xce0')]),_0x283af4[_0x2e79d9('0x1593')][_0x283af4[_0x2e79d9('0x20a5')][_0x476204[_0x2e79d9('0x1177')]]]=_0x49cbdd()[_0x2e79d9('0x15c3')](_0x283af4[_0x2e79d9('0x1593')][_0x283af4['agentInternal'][_0x476204[_0x2e79d9('0x1177')]]],[_0x2e79d9('0x1bd'),_0x2e79d9('0xce0')]));}function _0x517563(_0x11e6fe){const _0x2195bf=_0x1212b7;return _0x22a518['user'][_0x2195bf('0xff8')]({'id':_0x11e6fe['id'],'device':'realtime','agent_id':_0x11e6fe['id'],'agent_name':_0x11e6fe[_0x2195bf('0x2aa')]})[_0x2195bf('0x1af5')][_0x2195bf('0x17e7')](function(){const _0x1f9797=_0x2195bf;_0x201c9b[_0x1f9797('0x130d')]({'title':_0x1f9797('0x686'),'msg':_0x11e6fe['fullname']+_0x1f9797('0xe21')}),_0x283af4[_0x1f9797('0x25ea')][_0x11e6fe['id']]&&(_0x283af4['agents'][_0x11e6fe['id']][_0x1f9797('0x1872')]=![]),_0x283af4['rpcAgents'][_0x11e6fe['id']]&&(_0x283af4['rpcAgents'][_0x11e6fe['id']]['online']=![]),_0x4a7e99();})['catch'](function(_0xb8b22d){const _0x3b61b8=_0x2195bf;_0x201c9b[_0x3b61b8('0x1db9')]({'title':_0xb8b22d[_0x3b61b8('0x11c5')]?'API:'+_0xb8b22d[_0x3b61b8('0x11c5')]+_0x3b61b8('0x16e4')+_0xb8b22d[_0x3b61b8('0x1833')]:_0x3b61b8('0x18ea'),'msg':_0xb8b22d['data']?JSON[_0x3b61b8('0x678')](_0xb8b22d[_0x3b61b8('0x1457')][_0x3b61b8('0x1603')]):_0xb8b22d[_0x3b61b8('0x9b6')]()});});}function _0x4b0500(_0x6705f8,_0x34196b){const _0x340bd4=_0x1212b7;return _0x22a518['user'][_0x340bd4('0x267a')]({'id':_0x6705f8['id'],'type':_0x34196b})[_0x340bd4('0x1af5')][_0x340bd4('0x17e7')](function(_0x19c85a){const _0x18a6ff=_0x340bd4;_0x283af4[_0x18a6ff('0x25ea')][_0x6705f8['id']]&&_0x49cbdd()['merge'](_0x283af4[_0x18a6ff('0x25ea')][_0x6705f8['id']],_0x49cbdd()[_0x18a6ff('0x230a')](_0x19c85a,_0x241170)),_0x283af4[_0x18a6ff('0x1593')][_0x6705f8['id']]&&_0x49cbdd()[_0x18a6ff('0x1ced')](_0x283af4[_0x18a6ff('0x1593')][_0x6705f8['id']],_0x49cbdd()['pick'](_0x19c85a,_0x241170)),_0xe965e2(_0x283af4['agents'][_0x6705f8['id']]);})[_0x340bd4('0x16df')](function(_0x57e46a){const _0x44c8fa=_0x340bd4;_0x201c9b[_0x44c8fa('0x1db9')]({'title':_0x57e46a[_0x44c8fa('0x11c5')]?_0x44c8fa('0x14f7')+_0x57e46a['status']+'\x20-\x20'+_0x57e46a[_0x44c8fa('0x1833')]:_0x44c8fa('0x18ea'),'msg':_0x57e46a[_0x44c8fa('0x1457')]?JSON[_0x44c8fa('0x678')](_0x57e46a['data'][_0x44c8fa('0x1603')]):_0x57e46a[_0x44c8fa('0x9b6')]()});});}function _0x573374(_0x5db173){const _0x89e29e=_0x1212b7;return _0x22a518[_0x89e29e('0x221e')]['unpause']({'id':_0x5db173['id']})['$promise'][_0x89e29e('0x17e7')](function(_0xca44b0){const _0x19be99=_0x89e29e;_0x283af4[_0x19be99('0x25ea')][_0x5db173['id']]&&_0x49cbdd()[_0x19be99('0x1ced')](_0x283af4[_0x19be99('0x25ea')][_0x5db173['id']],_0x49cbdd()['pick'](_0xca44b0,_0x241170)),_0x283af4[_0x19be99('0x1593')][_0x5db173['id']]&&_0x49cbdd()[_0x19be99('0x1ced')](_0x283af4[_0x19be99('0x1593')][_0x5db173['id']],_0x49cbdd()['pick'](_0xca44b0,_0x241170)),_0xe965e2(_0x283af4[_0x19be99('0x25ea')][_0x5db173['id']]);})[_0x89e29e('0x16df')](function(_0x14f08a){const _0xf17a4=_0x89e29e;_0x201c9b[_0xf17a4('0x1db9')]({'title':_0x14f08a[_0xf17a4('0x11c5')]?'API:'+_0x14f08a[_0xf17a4('0x11c5')]+_0xf17a4('0x16e4')+_0x14f08a['statusText']:_0xf17a4('0x18ea'),'msg':_0x14f08a[_0xf17a4('0x1457')]?JSON[_0xf17a4('0x678')](_0x14f08a[_0xf17a4('0x1457')]['message']):_0x14f08a['toString']()});});}function _0x1e8ed3(_0x59fdbe){const _0x27de5c=_0x1212b7;_0x50ebbf[_0x27de5c('0x28e2')](_0x50ebbf['alert']()['clickOutsideToClose'](!![])[_0x27de5c('0x24d3')](_0x27de5c('0x5b8'))[_0x27de5c('0x211f')](_0x27de5c('0xf9f'))['ok']('Ok')[_0x27de5c('0x104f')](_0x59fdbe));}function _0x517de8(_0x45a801,_0x4c1fb9){const _0xd61418=_0x1212b7;_0x50ebbf[_0xd61418('0x28e2')]({'controller':_0xd61418('0x25ed'),'controllerAs':'vm','templateUrl':_0x5e8625,'parent':angular[_0xd61418('0x1ce1')](_0x48713b[_0xd61418('0x13aa')]),'targetEvent':_0x4c1fb9,'clickOutsideToClose':!![],'locals':{'agent':_0x45a801,'agents':[],'channel':_0xd61418('0x1fe1'),'direction':_0xd61418('0x1ade'),'crudPermissions':_0x283af4['crudPermissions']}});}function _0x55622d(_0x218de6){const _0x11d460=_0x1212b7;return _0x218de6===_0x11d460('0x267a')||_0x218de6===_0x11d460('0x1998');}function _0x5ef09c(_0x490a1c){const _0x23998d=_0x1212b7;return _0x490a1c===_0x23998d('0x267a');}function _0x4746b1(_0x4db981){return _0x4db981==='*pause';}function _0x3a52b7(_0x40c260){const _0x64d2ac=_0x1212b7;return _0x40c260==='idle'||_0x40c260===_0x64d2ac('0xf10')||_0x40c260===_0x64d2ac('0x182')||_0x40c260==='ringing'||_0x49cbdd()['isNil'](_0x40c260);}function _0x435e52(_0x99ff69,_0x400521){const _0x406361=_0x1212b7;if(_0x400521===_0x406361('0x1fe1')){if(_0x99ff69[_0x400521+_0x406361('0x51c')]!=='idle')return _0x99ff69[_0x400521+_0x406361('0x51c')];if(_0x99ff69[_0x400521+_0x406361('0x5d5')])return _0x99ff69[_0x400521+'Status']=_0x406361('0x267a'),'pause';return'idle';}else{if(_0x99ff69[_0x400521+_0x406361('0x5d5')])return _0x99ff69[_0x400521+_0x406361('0x51c')]=_0x406361('0x267a'),_0x406361('0x267a');return _0x99ff69[_0x400521+_0x406361('0x51c')];}}function _0xe965e2(_0x2d9e09){const _0x2e797b=_0x1212b7;let _0x27fcfc='unknown';if(_0x49cbdd()[_0x2e797b('0x12df')]([_0x435e52(_0x2d9e09,_0x2e797b('0x1fe1')),_0x435e52(_0x2d9e09,_0x2e797b('0x2219')),_0x435e52(_0x2d9e09,_0x2e797b('0xc2')),_0x435e52(_0x2d9e09,_0x2e797b('0x1508')),_0x435e52(_0x2d9e09,_0x2e797b('0x2cd')),_0x435e52(_0x2d9e09,_0x2e797b('0x1d27')),_0x435e52(_0x2d9e09,_0x2e797b('0xc23'))],_0x55622d))_0x27fcfc=_0x2e797b('0x267a');else{if(_0x49cbdd()[_0x2e797b('0x26f8')]([_0x435e52(_0x2d9e09,_0x2e797b('0x1fe1')),_0x435e52(_0x2d9e09,'chat'),_0x435e52(_0x2d9e09,'mail'),_0x435e52(_0x2d9e09,_0x2e797b('0x1508')),_0x435e52(_0x2d9e09,_0x2e797b('0x2cd')),_0x435e52(_0x2d9e09,'whatsapp'),_0x435e52(_0x2d9e09,_0x2e797b('0xc23'))],_0x55622d))_0x27fcfc='*pause';else _0x49cbdd()[_0x2e797b('0x12df')]([_0x435e52(_0x2d9e09,_0x2e797b('0x1fe1')),_0x435e52(_0x2d9e09,_0x2e797b('0x2219')),_0x435e52(_0x2d9e09,_0x2e797b('0xc2')),_0x435e52(_0x2d9e09,_0x2e797b('0x1508')),_0x435e52(_0x2d9e09,_0x2e797b('0x2cd')),_0x435e52(_0x2d9e09,_0x2e797b('0x1d27')),_0x435e52(_0x2d9e09,_0x2e797b('0xc23'))],_0x3a52b7)?_0x27fcfc='idle':_0x27fcfc=_0x2e797b('0xe88');}_0x2d9e09[_0x2e797b('0xf45')]!==_0x27fcfc&&(_0x2d9e09['globalStatus']=_0x27fcfc,_0x2d9e09[_0x2e797b('0x161d')]?(_0x2d9e09['init']=![],_0x2d9e09[_0x2e797b('0x22cb')]=_0x55622d(_0x27fcfc)?_0x49cbdd()['toNumber'](_0x107a13()(_0x2d9e09[_0x2e797b('0x110a')])['format']('x')):_0x49cbdd()['max']([_0x2d9e09[_0x2e797b('0x1b1d')],_0x2d9e09['chatStatusTime'],_0x2d9e09[_0x2e797b('0x16a4')],_0x2d9e09['smsStatusTime'],_0x2d9e09['whatsappStatusTime'],_0x2d9e09[_0x2e797b('0x18b1')],_0x2d9e09[_0x2e797b('0xbdb')]])):_0x2d9e09[_0x2e797b('0x22cb')]=_0x49cbdd()[_0x2e797b('0xa33')](_0x107a13()()[_0x2e797b('0x1c0d')]('x')));}function _0x31cbfe(_0x5c1c6c){const _0x4dac00=_0x1212b7,_0x1c4272=_0x49cbdd()[_0x4dac00('0x818')](_0x283af4[_0x4dac00('0x826')][_0x4dac00('0x1e36')],'-')?_0x4dac00('0x187b'):_0x4dac00('0x161a');return _0x49cbdd()[_0x4dac00('0xa36')](_0x5c1c6c,[_0x283af4['query'][_0x4dac00('0x1e36')][_0x4dac00('0x737')]('-','')],[_0x1c4272]);}function _0x27551f(){const _0x5aedec=_0x1212b7;_0x3d5e5d&&(_0x824867[_0x5aedec('0x1d47')](_0x3d5e5d),_0x3d5e5d=null);}function _0x1249ad(_0xf6b20f,_0x3efbea){const _0x55d4f3=_0x1212b7;return _0x22a518[_0x55d4f3('0x221e')][_0x55d4f3('0x27ba')]({'id':_0xf6b20f['id']},{'screenrecording':_0x3efbea})[_0x55d4f3('0x1af5')]['catch'](function(_0x5ef852){const _0x1b6c68=_0x55d4f3;_0x201c9b[_0x1b6c68('0x1db9')]({'title':_0x5ef852[_0x1b6c68('0x11c5')]?_0x1b6c68('0x14f7')+_0x5ef852['status']+_0x1b6c68('0x16e4')+_0x5ef852['statusText']:_0x1b6c68('0xad3'),'msg':_0x5ef852[_0x1b6c68('0x1457')]?JSON[_0x1b6c68('0x678')](_0x5ef852[_0x1b6c68('0x1457')][_0x1b6c68('0x1603')]):_0x5ef852[_0x1b6c68('0x9b6')]()});});}_0x5e96e1[_0x1212b7('0x207c')](_0x1212b7('0x2b4'),function(){const _0x3cce6c=_0x1212b7;_0xd18b4b[_0x3cce6c('0x1c65')](_0x3cce6c('0x21a2')),_0xd18b4b[_0x3cce6c('0x1c65')]('user:update'),_0xd18b4b[_0x3cce6c('0x1c65')](_0x3cce6c('0x1a5')),_0xd18b4b[_0x3cce6c('0x1c65')](_0x3cce6c('0x1f1f')),_0x27551f();});}const _0x4664c6=_0xc27d09,_0x3c0cd7=_0x4cf2bc['p']+_0x4376d8('0x580');_0x5f3d0e[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x33a'),'rpcCampaigns',_0x4376d8('0x27'),_0x4376d8('0x212e'),_0x4376d8('0x25aa'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x1885')];function _0x5f3d0e(_0x5ed72b,_0x5ab95a,_0x35dc07,_0x2cc777,_0x19ca34,_0x4eeda1,_0x423eac,_0x95f1f3,_0x3e9fc6,_0x3f518f,_0x4cd68c,_0x183a2e){const _0x5afdb8=_0x4376d8,_0x51595c=this,_0x128ff0=[_0x5afdb8('0x2aa'),'active',_0x5afdb8('0xe7e'),_0x5afdb8('0x1603'),_0x5afdb8('0x829'),'IntervalId',_0x5afdb8('0x981'),_0x5afdb8('0x1bc6'),_0x5afdb8('0x129f'),'ivrAnswerCallsDay','dialQueueProject',_0x5afdb8('0x2164'),_0x5afdb8('0x986')];_0x51595c[_0x5afdb8('0x197c')]=_0x183a2e[_0x5afdb8('0x2831')](),_0x51595c[_0x5afdb8('0x335')]=_0x423eac[_0x5afdb8('0x335')],_0x51595c[_0x5afdb8('0x27')]=_0x423eac?_0x49cbdd()[_0x5afdb8('0x8de')](_0x423eac[_0x5afdb8('0x2319')]?_0x423eac[_0x5afdb8('0x2319')]:[],'id'):{},_0x51595c['rpcCampaigns']=_0x4eeda1?_0x49cbdd()['keyBy'](_0x4eeda1[_0x5afdb8('0x2319')]?_0x4eeda1[_0x5afdb8('0x2319')]:[],'id'):{},_0x51595c[_0x5afdb8('0xdeb')]=_0x3f518f,_0x51595c['userProfileSection']=_0x4cd68c&&_0x4cd68c[_0x5afdb8('0x335')]==0x1?_0x4cd68c[_0x5afdb8('0x2319')][0x0]:null,_0x51595c[_0x5afdb8('0x103e')]=_0x183a2e['parseCrudPermissions'](_0x51595c[_0x5afdb8('0x383')]?_0x51595c[_0x5afdb8('0x383')][_0x5afdb8('0x103e')]:null),_0x51595c['query']={'sort':_0x5afdb8('0x1ac6'),'limit':0xa,'page':0x1},_0x51595c[_0x5afdb8('0x130d')]=_0xcd91ad,_0x51595c[_0x5afdb8('0x1569')]=_0x320c8a,_0x51595c['onSave']=_0x16f704,_0x51595c[_0x5afdb8('0x11e8')]=_0x5a5643,_0x51595c[_0x5afdb8('0x12e3')]=_0x48abd0,_0x3e9fc6[_0x5afdb8('0x1335')](_0x5afdb8('0xfbc'),_0x51595c[_0x5afdb8('0xfd5')]),_0x51595c['interval']=_0x19ca34(function(){},0x3e7);function _0x5a5643(){const _0x56e8be=_0x5afdb8;_0x49cbdd()[_0x56e8be('0x1857')](_0x51595c[_0x56e8be('0x27')],function(_0x8b2803,_0x3b4d40){const _0x9b5988=_0x56e8be;_0x51595c[_0x9b5988('0x21ff')][_0x3b4d40]&&_0x49cbdd()[_0x9b5988('0x1ced')](_0x8b2803,_0x49cbdd()[_0x9b5988('0x230a')](_0x51595c[_0x9b5988('0x21ff')][_0x3b4d40],_0x128ff0));});}function _0x16f704(_0x264fe0){const _0x3bbfe0=_0x5afdb8;_0x51595c[_0x3bbfe0('0x27')][_0x264fe0['id']]&&(_0x49cbdd()[_0x3bbfe0('0x1ced')](_0x51595c[_0x3bbfe0('0x27')][_0x264fe0['id']],_0x49cbdd()['pick'](_0x264fe0,_0x128ff0)),_0x49cbdd()[_0x3bbfe0('0x1ced')](_0x51595c[_0x3bbfe0('0x21ff')][_0x264fe0['id']],_0x49cbdd()['pick'](_0x264fe0,_0x128ff0)));}let _0x4f7aae=!![],_0x2e2602=0x1;_0x5ed72b[_0x5afdb8('0x620')](_0x5afdb8('0x3ed'),function(_0xa3ed89,_0x4b6833){const _0x37214d=_0x5afdb8;_0x4f7aae?_0x5ab95a(function(){_0x4f7aae=![];}):(!_0x4b6833&&(_0x2e2602=_0x51595c[_0x37214d('0x826')][_0x37214d('0x115a')]),_0xa3ed89!==_0x4b6833&&(_0x51595c['query'][_0x37214d('0x115a')]=0x1),!_0xa3ed89&&(_0x51595c[_0x37214d('0x826')][_0x37214d('0x115a')]=_0x2e2602),_0x51595c['getCampaigns']());});function _0xcd91ad(_0x551503){const _0x49e6cc=_0x5afdb8;_0x51595c[_0x49e6cc('0x335')]=_0x551503[_0x49e6cc('0x335')],_0x51595c['campaigns']=_0x551503?_0x49cbdd()[_0x49e6cc('0x8de')](_0x551503[_0x49e6cc('0x2319')]?_0x551503[_0x49e6cc('0x2319')]:[],'id'):{},_0x5a5643();}function _0x320c8a(){const _0x291c00=_0x5afdb8;_0x51595c[_0x291c00('0x826')][_0x291c00('0xf19')]=(_0x51595c[_0x291c00('0x826')][_0x291c00('0x115a')]-0x1)*_0x51595c[_0x291c00('0x826')]['limit'],_0x183a2e[_0x291c00('0x1ba2')](_0x291c00('0x20bf'))?_0x51595c[_0x291c00('0x1691')]=_0x95f1f3['campaign'][_0x291c00('0x1c53')](_0x51595c[_0x291c00('0x826')],_0xcd91ad)[_0x291c00('0x1af5')]:(_0x51595c[_0x291c00('0x826')]['id']=_0x51595c['userProfile']['id'],_0x51595c[_0x291c00('0x826')]['section']=_0x291c00('0x2187'),_0x51595c[_0x291c00('0x1691')]=_0x95f1f3[_0x291c00('0xdeb')][_0x291c00('0x2447')](_0x51595c[_0x291c00('0x826')],_0xcd91ad)[_0x291c00('0x1af5')]);}function _0x48abd0(_0x4a378b,_0x583ccb){const _0x14163a=_0x5afdb8;_0x35dc07[_0x14163a('0x28e2')]({'controller':_0x14163a('0x3ea'),'controllerAs':'vm','templateUrl':_0x3c0cd7,'parent':angular[_0x14163a('0x1ce1')](_0x2cc777[_0x14163a('0x13aa')]),'targetEvent':_0x4a378b,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x583ccb,'ivrCampaigns':_0x49cbdd()[_0x14163a('0xa72')](_0x51595c[_0x14163a('0x27')]),'license':null,'setting':null,'crudPermissions':_0x51595c[_0x14163a('0x103e')]}});}_0x5ed72b[_0x5afdb8('0x207c')](_0x5afdb8('0x2b4'),function(){const _0x379ac2=_0x5afdb8;_0x3e9fc6[_0x379ac2('0x1c65')](_0x379ac2('0xfbc')),_0x51595c[_0x379ac2('0x231f')]&&_0x19ca34[_0x379ac2('0x1d47')](_0x51595c[_0x379ac2('0x231f')]);});}const _0x3b478c=_0x5f3d0e;_0x2311a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x25ea'),_0x4376d8('0x14c4'),_0x4376d8('0x1c1c'),_0x4376d8('0x212e'),'socket',_0x4376d8('0x628'),_0x4376d8('0x108a'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x1885')];function _0x2311a(_0x4e95a0,_0x3ea66d,_0x4e26a2,_0x4c7cf3,_0x154318,_0x4a7fc8,_0x1f77b3,_0x57e44b,_0x1700fa,_0x1cee79,_0x13ef79,_0x258c6e,_0x52f116){const _0x43c155=_0x4376d8,_0x5ac2f5=this;_0x5ac2f5[_0x43c155('0x197c')]=_0x52f116[_0x43c155('0x2831')](),_0x5ac2f5['agents']=_0x4c7cf3||{'count':0x0,'rows':[]},_0x5ac2f5[_0x43c155('0x14c4')]=_0x154318?_0x49cbdd()[_0x43c155('0x8de')](_0x154318[_0x43c155('0x2319')]?_0x154318['rows']:[],'name'):{},_0x5ac2f5[_0x43c155('0x15b7')]=_0x4a7fc8?_0x49cbdd()[_0x43c155('0x8de')](_0x4a7fc8[_0x43c155('0x2319')]?_0x49cbdd()['filter'](_0x4a7fc8[_0x43c155('0x2319')],{'type':'outbound'}):[],'uniqueid'):{},_0x5ac2f5[_0x43c155('0x1c1c')]={},_0x5ac2f5['userProfile']=_0x13ef79,_0x5ac2f5['userProfileSection']=_0x258c6e&&_0x258c6e[_0x43c155('0x335')]==0x1?_0x258c6e['rows'][0x0]:null,_0x5ac2f5['crudPermissions']=_0x52f116[_0x43c155('0x17a9')](_0x5ac2f5[_0x43c155('0x383')]?_0x5ac2f5['userProfileSection'][_0x43c155('0x103e')]:null),_0x5ac2f5['queryChannels']={'limit':0xa,'page':0x1},_0x5ac2f5[_0x43c155('0x1a55')]=_0x317b37,_0x5ac2f5[_0x43c155('0x11e8')]=_0x1162a3,_0x5ac2f5[_0x43c155('0xfd5')]=_0x3cade7,_0x5ac2f5[_0x43c155('0x201a')]=_0xa67a3b,_0x5ac2f5[_0x43c155('0x450')]=_0x184d9f,_0x5ac2f5[_0x43c155('0x430')]=_0x2bc30f,_0x5ac2f5['redirectToNumber']=_0x3b891e,_0x57e44b['on'](_0x43c155('0x1b3'),_0x5ac2f5[_0x43c155('0xfd5')]),_0x57e44b['on'](_0x43c155('0x22d1'),_0x5ac2f5[_0x43c155('0x201a')]);function _0x317b37(_0x2d0403){const _0x36983e=_0x43c155;return _0x49cbdd()[_0x36983e('0xf04')](_0x2d0403);}function _0x1162a3(){const _0x20c7fc=_0x43c155;_0x49cbdd()[_0x20c7fc('0x1857')](_0x5ac2f5[_0x20c7fc('0x15b7')],function(_0x139b0d,_0x131af8){const _0x4b014a=_0x20c7fc;_0x49cbdd()['find'](_0x5ac2f5[_0x4b014a('0x14c4')],{'name':_0x139b0d[_0x4b014a('0x2aa')]})&&(_0x5ac2f5[_0x4b014a('0x1c1c')][_0x131af8]=_0x139b0d);});}function _0x3cade7(_0x5e7c5a){const _0x13de7f=_0x43c155;_0x5e7c5a['type']===_0x13de7f('0x1ade')&&(_0x49cbdd()[_0x13de7f('0xe8e')](_0x5ac2f5[_0x13de7f('0x14c4')],{'name':_0x5e7c5a[_0x13de7f('0x2aa')]})&&(_0x5ac2f5[_0x13de7f('0x1c1c')][_0x5e7c5a[_0x13de7f('0x35b')]]=_0x5e7c5a));}function _0xa67a3b(_0x47559a){const _0x2480cb=_0x43c155;_0x5ac2f5[_0x2480cb('0x1c1c')][_0x47559a[_0x2480cb('0x35b')]]&&delete _0x5ac2f5[_0x2480cb('0x1c1c')][_0x47559a[_0x2480cb('0x35b')]];}function _0x184d9f(_0x487e73){const _0x5083ef=_0x43c155;return _0x1f77b3[_0x5083ef('0x1207')][_0x5083ef('0x21cd')]({'uniqueid':_0x487e73})[_0x5083ef('0x1af5')]['then'](function(_0x331d1d){const _0x36cbe6=_0x5083ef;_0x1cee79['success']({'title':_0x36cbe6('0x2779')+_0x487e73+_0x36cbe6('0x85e'),'msg':_0x331d1d[_0x36cbe6('0x1603')]||''});})['catch'](function(_0x1c5183){const _0x211a5e=_0x5083ef;_0x1cee79[_0x211a5e('0x1db9')]({'title':_0x1c5183[_0x211a5e('0x11c5')]+_0x211a5e('0x16e4')+_0x1c5183[_0x211a5e('0x1833')],'msg':JSON[_0x211a5e('0x678')](_0x1c5183[_0x211a5e('0x1457')])||_0x1c5183[_0x211a5e('0x1603')][_0x211a5e('0x1eba')]('\x20')});});}function _0x2bc30f(_0x303aee,_0x75ca86,_0x2ecef0){const _0x336a71=_0x43c155;return _0x1f77b3[_0x336a71('0x1207')][_0x336a71('0x2427')]({'uniqueid':_0x303aee,'exten':_0x75ca86,'context':_0x2ecef0})[_0x336a71('0x1af5')]['then'](function(_0x22dbb1){const _0xf34678=_0x336a71;_0x1cee79['success']({'title':_0xf34678('0x2779')+_0x303aee+_0xf34678('0x135e'),'msg':_0x22dbb1[_0xf34678('0x1603')]||''});})[_0x336a71('0x16df')](function(_0x272a8){const _0x434b33=_0x336a71;_0x1cee79[_0x434b33('0x1db9')]({'title':_0x272a8[_0x434b33('0x11c5')]+_0x434b33('0x16e4')+_0x272a8[_0x434b33('0x1833')],'msg':JSON[_0x434b33('0x678')](_0x272a8[_0x434b33('0x1457')])||_0x272a8[_0x434b33('0x1603')][_0x434b33('0x1eba')]('\x20')});});}function _0x3b891e(_0x156434,_0x8ab100){const _0x1e5702=_0x43c155,_0x5ba43e=_0x4e26a2[_0x1e5702('0x137c')]()[_0x1e5702('0x24d3')](_0x1e5702('0x14bb'))[_0x1e5702('0x1ba5')](_0x1e5702('0x1f30'))['targetEvent'](_0x156434)['ok']('Ok')[_0x1e5702('0x1d47')](_0x1e5702('0x1b70'));return _0x4e26a2[_0x1e5702('0x28e2')](_0x5ba43e)[_0x1e5702('0x17e7')](function(_0x4cfccd){const _0x2b2b58=_0x1e5702;return _0x1f77b3[_0x2b2b58('0x1207')][_0x2b2b58('0x2427')]({'uniqueid':_0x8ab100,'exten':_0x4cfccd})['$promise'];})[_0x1e5702('0x17e7')](function(_0x50d48e){const _0x299bfb=_0x1e5702;_0x1cee79[_0x299bfb('0x130d')]({'title':_0x299bfb('0x2779')+_0x8ab100+_0x299bfb('0x135e'),'msg':_0x50d48e[_0x299bfb('0x1603')]||''});})[_0x1e5702('0x16df')](function(_0x1fce01){const _0x255b1a=_0x1e5702;_0x1cee79[_0x255b1a('0x1db9')]({'title':_0x1fce01[_0x255b1a('0x11c5')]+_0x255b1a('0x16e4')+_0x1fce01[_0x255b1a('0x1833')],'msg':JSON[_0x255b1a('0x678')](_0x1fce01['data'])||_0x1fce01['message'][_0x255b1a('0x1eba')]('\x20')});});}_0x4e95a0['$on'](_0x43c155('0x2b4'),function(){const _0x599a64=_0x43c155;_0x57e44b[_0x599a64('0x1c65')]('voice_queue_channel:save'),_0x57e44b[_0x599a64('0x1c65')](_0x599a64('0x22d1'));});}const _0x16c1cb=_0x2311a;_0x397f6e['$inject']=[_0x4376d8('0x668'),_0x4376d8('0xef1'),_0x4376d8('0x33a'),_0x4376d8('0x14c4'),'rpcQueues','api',_0x4376d8('0x25aa'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885')];function _0x397f6e(_0x2f4553,_0x30b335,_0x4d2393,_0x13043c,_0x14da8d,_0xef31d9,_0x26444a,_0x51b8e1,_0x536822,_0x40a34b){const _0x1850ee=_0x4376d8,_0x442c0d=this,_0x2edb0b=[_0x1850ee('0x1d0e'),_0x1850ee('0x3c8'),_0x1850ee('0x1d14'),_0x1850ee('0xf97'),_0x1850ee('0x1602'),_0x1850ee('0x230e'),_0x1850ee('0x4d0'),_0x1850ee('0xf7e'),'outboundNoSuchCallsDay','outboundUnknownCallsDay',_0x1850ee('0x17c8'),_0x1850ee('0xae3'),'outboundBlacklistCallsDay',_0x1850ee('0x937'),'outboundAnswerAgiCallsDay',_0x1850ee('0x23c2'),_0x1850ee('0xc2f')];_0x442c0d[_0x1850ee('0x335')]=_0x13043c[_0x1850ee('0x335')],_0x442c0d['queues']=_0x13043c?_0x49cbdd()[_0x1850ee('0x8de')](_0x13043c['rows']?_0x13043c[_0x1850ee('0x2319')]:[],'id'):{},_0x442c0d['rpcQueues']=_0x14da8d?_0x49cbdd()['keyBy'](_0x14da8d[_0x1850ee('0x2319')]?_0x14da8d[_0x1850ee('0x2319')]:[],'id'):{},_0x442c0d[_0x1850ee('0xdeb')]=_0x51b8e1,_0x442c0d[_0x1850ee('0x383')]=_0x536822&&_0x536822[_0x1850ee('0x335')]==0x1?_0x536822[_0x1850ee('0x2319')][0x0]:null,_0x442c0d[_0x1850ee('0x103e')]=_0x40a34b['parseCrudPermissions'](_0x442c0d['userProfileSection']?_0x442c0d[_0x1850ee('0x383')]['crudPermissions']:null);_0x40a34b[_0x1850ee('0x1ba2')](_0x1850ee('0x20bf'))?_0x442c0d[_0x1850ee('0x826')]={'type':_0x1850ee('0x1ade'),'fields':_0x1850ee('0x12d2'),'sort':_0x1850ee('0x1ac6'),'limit':0xa,'page':0x1}:_0x442c0d[_0x1850ee('0x826')]={'id':_0x40a34b[_0x1850ee('0x2831')]()['id'],'channel':_0x1850ee('0x1fe1'),'type':_0x1850ee('0x1ade'),'fields':_0x1850ee('0x12d2'),'sort':_0x1850ee('0x1ac6'),'limit':0xa,'page':0x1};_0x442c0d[_0x1850ee('0x130d')]=_0x5302f2,_0x442c0d[_0x1850ee('0x1f3b')]=_0x59835a,_0x442c0d[_0x1850ee('0xfd5')]=_0x34f61e,_0x442c0d[_0x1850ee('0x11e8')]=_0x867f49,_0x26444a['onWithoutApply'](_0x1850ee('0x1ddb'),_0x442c0d[_0x1850ee('0xfd5')]),_0x442c0d[_0x1850ee('0x231f')]=_0x4d2393(function(){},0x3e7);function _0x867f49(){const _0x4c2cc9=_0x1850ee;_0x49cbdd()['forIn'](_0x442c0d[_0x4c2cc9('0x14c4')],function(_0x406a2a,_0x9575b5){const _0x214b70=_0x4c2cc9;_0x442c0d[_0x214b70('0x1d90')][_0x9575b5]&&_0x49cbdd()[_0x214b70('0x1ced')](_0x406a2a,_0x49cbdd()[_0x214b70('0x230a')](_0x442c0d[_0x214b70('0x1d90')][_0x9575b5],_0x2edb0b));});}function _0x34f61e(_0x3102fe){const _0x2ed15f=_0x1850ee;_0x442c0d[_0x2ed15f('0x14c4')][_0x3102fe['id']]&&_0x49cbdd()[_0x2ed15f('0x1ced')](_0x442c0d[_0x2ed15f('0x14c4')][_0x3102fe['id']],_0x49cbdd()['pick'](_0x3102fe,_0x2edb0b));}let _0x511b6f=!![],_0x565154=0x1;_0x2f4553[_0x1850ee('0x620')]('vm.query.filter',function(_0x54e478,_0x577cfe){const _0x43ac4c=_0x1850ee;_0x511b6f?_0x30b335(function(){_0x511b6f=![];}):(!_0x577cfe&&(_0x565154=_0x442c0d[_0x43ac4c('0x826')][_0x43ac4c('0x115a')]),_0x54e478!==_0x577cfe&&(_0x442c0d[_0x43ac4c('0x826')][_0x43ac4c('0x115a')]=0x1),!_0x54e478&&(_0x442c0d['query'][_0x43ac4c('0x115a')]=_0x565154),_0x442c0d[_0x43ac4c('0x1f3b')]());});function _0x5302f2(_0x218021){const _0x2ecd13=_0x1850ee;_0x442c0d[_0x2ecd13('0x335')]=_0x218021[_0x2ecd13('0x335')],_0x442c0d[_0x2ecd13('0x14c4')]=_0x218021?_0x49cbdd()['keyBy'](_0x218021['rows']?_0x218021[_0x2ecd13('0x2319')]:[],'id'):{},_0x867f49();}function _0x59835a(){const _0x9a9924=_0x1850ee;_0x442c0d[_0x9a9924('0x826')][_0x9a9924('0xf19')]=(_0x442c0d[_0x9a9924('0x826')]['page']-0x1)*_0x442c0d[_0x9a9924('0x826')][_0x9a9924('0x193b')],_0x40a34b[_0x9a9924('0x1ba2')](_0x9a9924('0x20bf'))?_0x442c0d[_0x9a9924('0x1691')]=_0xef31d9['voiceQueue'][_0x9a9924('0x1c53')](_0x442c0d['query'],_0x5302f2)[_0x9a9924('0x1af5')]:(_0x442c0d[_0x9a9924('0x826')]['id']=_0x442c0d[_0x9a9924('0xdeb')]['id'],_0x442c0d[_0x9a9924('0x826')][_0x9a9924('0x16f8')]=_0x9a9924('0x1299'),_0x442c0d[_0x9a9924('0x1691')]=_0xef31d9[_0x9a9924('0xdeb')][_0x9a9924('0x2447')](_0x442c0d['query'],_0x5302f2)['$promise']);}_0x2f4553[_0x1850ee('0x207c')](_0x1850ee('0x2b4'),function(){const _0x51f636=_0x1850ee;_0x26444a[_0x51f636('0x1c65')](_0x51f636('0x1ddb')),_0x442c0d[_0x51f636('0x231f')]&&_0x4d2393[_0x51f636('0x1d47')](_0x442c0d[_0x51f636('0x231f')]);});}const _0x41925e=_0x397f6e,_0x31b9dc=_0x4cf2bc['p']+_0x4376d8('0x1de2'),_0x4cbf7f=_0x4cf2bc['p']+_0x4376d8('0x358'),_0x326495=_0x4cf2bc['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/agentadd/agentadd.html/agentadd.html';_0x21455c[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xef1'),'$mdDialog','$q',_0x4376d8('0x26ca'),'$interval',_0x4376d8('0x14c4'),'rpcQueues',_0x4376d8('0x212e'),_0x4376d8('0x25aa'),_0x4376d8('0x108a'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x1885')];function _0x21455c(_0xe62b32,_0x28f75b,_0x40c654,_0xa1a817,_0x48a5a4,_0x9d7f4,_0xde50cc,_0x37fd20,_0x4bf0bd,_0x261d41,_0x26cc71,_0x5652df,_0x39fbbc,_0x381e8f){const _0x48673e=_0x4376d8,_0x1bf844=this,_0x1d8bbb=[_0x48673e('0x1458'),_0x48673e('0x249c'),_0x48673e('0x2143'),_0x48673e('0x1d20'),_0x48673e('0xdb9'),_0x48673e('0x829'),_0x48673e('0x1603'),_0x48673e('0x10c9'),_0x48673e('0xa39'),'Trunk','paused',_0x48673e('0x1780'),_0x48673e('0x23c6'),_0x48673e('0x13a4'),_0x48673e('0x24c0'),_0x48673e('0x19ed'),_0x48673e('0x2188'),_0x48673e('0x22fa'),_0x48673e('0xd4e'),_0x48673e('0x1a'),_0x48673e('0x1877'),'predictiveIntervalTotalCalls',_0x48673e('0x239c'),_0x48673e('0x2865'),_0x48673e('0x1f5e'),_0x48673e('0x2259'),_0x48673e('0xd6e')];_0x1bf844['currentUser']=_0x381e8f[_0x48673e('0x2831')](),_0x1bf844[_0x48673e('0x335')]=_0xde50cc[_0x48673e('0x335')]?_0xde50cc[_0x48673e('0x335')]:0x0,_0x1bf844[_0x48673e('0x14c4')]=_0xde50cc?_0x49cbdd()[_0x48673e('0x8de')](_0xde50cc[_0x48673e('0x2319')]?_0xde50cc[_0x48673e('0x2319')]:[],'id'):{},_0x1bf844[_0x48673e('0x1d90')]=_0x37fd20?_0x49cbdd()[_0x48673e('0x8de')](_0x37fd20[_0x48673e('0x2319')]?_0x37fd20['rows']:[],'id'):{},_0x1bf844[_0x48673e('0xdeb')]=_0x5652df,_0x1bf844[_0x48673e('0x383')]=_0x39fbbc&&_0x39fbbc[_0x48673e('0x335')]==0x1?_0x39fbbc[_0x48673e('0x2319')][0x0]:null,_0x1bf844[_0x48673e('0x103e')]=_0x381e8f[_0x48673e('0x17a9')](_0x1bf844[_0x48673e('0x383')]?_0x1bf844[_0x48673e('0x383')]['crudPermissions']:null);_0x381e8f['hasRole'](_0x48673e('0x20bf'))?_0x1bf844['query']={'type':_0x48673e('0x1ade'),'sort':_0x48673e('0x1ac6'),'limit':0xa,'page':0x1}:_0x1bf844['query']={'id':_0x1bf844[_0x48673e('0x197c')]['id'],'channel':_0x48673e('0x1fe1'),'type':_0x48673e('0x1ade'),'sort':_0x48673e('0x1ac6'),'limit':0xa,'page':0x1};_0x1bf844[_0x48673e('0x130d')]=_0x4b995a,_0x1bf844[_0x48673e('0x1f3b')]=_0x566ba9,_0x1bf844[_0x48673e('0x23b6')]=_0x391d5c,_0x1bf844[_0x48673e('0x1cd5')]=_0x5e3168,_0x1bf844['agentAdd']=_0x2ad64c,_0x1bf844[_0x48673e('0x139c')]=_0x262f19,_0x1bf844['onSave']=_0x5a1e31,_0x1bf844['onSaveMember']=_0x18409f,_0x1bf844[_0x48673e('0x14ed')]=_0x5ccdd4,_0x1bf844[_0x48673e('0x1781')]=_0x441c09,_0x1bf844[_0x48673e('0x1532')]=_0xc75263,_0x1bf844[_0x48673e('0x11e8')]=_0x14fe89,_0x1bf844[_0x48673e('0x1e36')]=[],_0x49cbdd()[_0x48673e('0x1857')](_0x1bf844['queues'],function(_0x48b675){const _0x2c7061=_0x48673e;_0x1bf844[_0x2c7061('0x1e36')]['push'](_0x48b675['id']);}),_0x261d41[_0x48673e('0x1335')]('voice_queue:save',_0x1bf844['onSave']),_0x1bf844[_0x48673e('0x231f')]=_0x9d7f4(function(){},0x3e7),_0x261d41['on'](_0x48673e('0x271'),_0x1bf844['onSaveMember']),_0x261d41['on']('user:update',_0x1bf844[_0x48673e('0x14ed')]),_0x261d41['on'](_0x48673e('0x1f34'),_0x1bf844[_0x48673e('0x1532')]),_0x261d41['on']('userVoiceQueue:save',_0x1bf844['onLogin']);function _0x14fe89(){const _0x2062e4=_0x48673e,_0xcb3e2c=[];return _0x49cbdd()[_0x2062e4('0x1857')](_0x1bf844[_0x2062e4('0x14c4')],function(_0x3a1125,_0x208dfd){const _0x11e5a0=_0x2062e4;_0x3a1125[_0x11e5a0('0x1bb8')]=0x0,_0x3a1125['loggedInDb']=0x0,_0x1bf844[_0x11e5a0('0x14c4')][_0x208dfd][_0x11e5a0('0x25ea')]={},_0xcb3e2c[_0x11e5a0('0x269f')](_0x4bf0bd[_0x11e5a0('0x1243')]['getMembers']({'id':_0x208dfd})['$promise']),_0x1bf844[_0x11e5a0('0x1d90')][_0x208dfd]&&_0x49cbdd()['merge'](_0x3a1125,_0x49cbdd()[_0x11e5a0('0x230a')](_0x1bf844['rpcQueues'][_0x208dfd],_0x1d8bbb));}),_0xa1a817['all'](_0xcb3e2c)[_0x2062e4('0x17e7')](function(_0x4cbc56){const _0x5538fc=_0x2062e4;for(let _0x6b0e4e=0x0;_0x6b0e4e<_0x4cbc56[_0x5538fc('0x1f73')];_0x6b0e4e+=0x1){for(let _0x497448=0x0;_0x497448<_0x4cbc56[_0x6b0e4e][_0x5538fc('0x2319')][_0x5538fc('0x1f73')];_0x497448++){_0x4cbc56[_0x6b0e4e][_0x5538fc('0x2319')][_0x497448]['paused']&&_0x1bf844[_0x5538fc('0x14c4')][_0x4cbc56[_0x6b0e4e][_0x5538fc('0x2319')][_0x497448][_0x5538fc('0x2803')]][_0x5538fc('0x1bb8')]++,_0x1bf844[_0x5538fc('0x14c4')][_0x4cbc56[_0x6b0e4e][_0x5538fc('0x2319')][_0x497448][_0x5538fc('0x2803')]]['loggedInDb']++,_0x1bf844[_0x5538fc('0x14c4')][_0x4cbc56[_0x6b0e4e]['rows'][_0x497448][_0x5538fc('0x2803')]][_0x5538fc('0x25ea')][_0x4cbc56[_0x6b0e4e][_0x5538fc('0x2319')][_0x497448][_0x5538fc('0x5e5')]]=_0x4cbc56[_0x6b0e4e][_0x5538fc('0x2319')][_0x497448]['VoiceQueueId'];}}})[_0x2062e4('0x16df')](function(_0x1d749f){const _0x5d623f=_0x2062e4;console[_0x5d623f('0x1db9')](_0x1d749f);});}function _0x5a1e31(_0x3eb3f5){const _0x4c3a2f=_0x48673e;_0x1bf844[_0x4c3a2f('0x14c4')][_0x3eb3f5['id']]&&(_0x49cbdd()[_0x4c3a2f('0x1ced')](_0x1bf844['queues'][_0x3eb3f5['id']],_0x49cbdd()['pick'](_0x3eb3f5,_0x1d8bbb)),_0x49cbdd()['isNil'](_0x3eb3f5[_0x4c3a2f('0x1780')])&&(_0x1bf844[_0x4c3a2f('0x14c4')][_0x3eb3f5['id']][_0x4c3a2f('0x1780')]=undefined));}function _0x18409f(_0x28de2c){const _0xbf3e61=_0x48673e;_0x1bf844[_0xbf3e61('0x14c4')][_0x28de2c['MotionDialerQueueId']]&&_0x1bf844[_0xbf3e61('0x14c4')][_0x28de2c[_0xbf3e61('0x159')]][_0xbf3e61('0x6c2')]++;}function _0x5ccdd4(_0x566f0b){const _0x5e82db=_0x48673e;console[_0x5e82db('0x1d63')]('onPause',_0x566f0b);if(_0x566f0b[_0x5e82db('0x118a')])_0x49cbdd()['forIn'](_0x1bf844['queues'],function(_0x55a511){const _0x491951=_0x5e82db;_0x55a511[_0x491951('0x25ea')][_0x566f0b['id']]&&(_0x55a511['paused']+=0x1,console[_0x491951('0x1d63')](_0x491951('0x267a')));});else!_0x566f0b['voicePause']&&_0x49cbdd()[_0x5e82db('0x1857')](_0x1bf844[_0x5e82db('0x14c4')],function(_0x1eb0b0){const _0xdd881b=_0x5e82db;_0x1eb0b0[_0xdd881b('0x25ea')][_0x566f0b['id']]&&(_0x1eb0b0[_0xdd881b('0x1bb8')]>0x0&&(_0x1eb0b0[_0xdd881b('0x1bb8')]-=0x1,console[_0xdd881b('0x1d63')](_0xdd881b('0xc57'))));});}function _0x441c09(_0xf2d31f){const _0x491a50=_0x48673e;console['log'](_0x491a50('0x1a6b'),_0xf2d31f),_0x1bf844[_0x491a50('0x14c4')][_0xf2d31f[_0x491a50('0x2803')]]&&(_0x1bf844[_0x491a50('0x14c4')][_0xf2d31f[_0x491a50('0x2803')]]['loggedInDb']+=0x1,_0x1bf844['queues'][_0xf2d31f[_0x491a50('0x2803')]][_0x491a50('0x25ea')][_0xf2d31f[_0x491a50('0x5e5')]]=_0xf2d31f[_0x491a50('0x2803')]);}function _0xc75263(_0x8ec7c3){const _0x538b2d=_0x48673e;console[_0x538b2d('0x1d63')]('onLogout',_0x8ec7c3),_0x1bf844[_0x538b2d('0x14c4')][_0x8ec7c3[_0x538b2d('0x2803')]]&&_0x1bf844['queues'][_0x8ec7c3['VoiceQueueId']][_0x538b2d('0x6c2')]>0x0&&(_0x1bf844[_0x538b2d('0x14c4')][_0x8ec7c3[_0x538b2d('0x2803')]]['loggedInDb']-=0x1,delete _0x1bf844[_0x538b2d('0x14c4')][_0x8ec7c3[_0x538b2d('0x2803')]]['agents'][_0x8ec7c3['UserId']]);}let _0x70cde1=!![],_0x125c83=0x1;_0xe62b32[_0x48673e('0x620')]('vm.query.filter',function(_0x4b862d,_0x53197d){const _0x5e3c55=_0x48673e;_0x70cde1?_0x28f75b(function(){_0x70cde1=![];}):(!_0x53197d&&(_0x125c83=_0x1bf844[_0x5e3c55('0x826')][_0x5e3c55('0x115a')]),_0x4b862d!==_0x53197d&&(_0x1bf844['query']['page']=0x1),!_0x4b862d&&(_0x1bf844[_0x5e3c55('0x826')][_0x5e3c55('0x115a')]=_0x125c83),_0x1bf844['getQueues']());});function _0x4b995a(_0x3f4aca){const _0x45e055=_0x48673e;_0x1bf844[_0x45e055('0x335')]=_0x3f4aca['count'],_0x1bf844[_0x45e055('0x14c4')]=_0x3f4aca?_0x49cbdd()[_0x45e055('0x8de')](_0x3f4aca[_0x45e055('0x2319')]?_0x3f4aca[_0x45e055('0x2319')]:[],'id'):{};if(_0x3f4aca[_0x45e055('0x2319')]){_0x1bf844['order']=[];for(let _0x425311=0x0;_0x425311<_0x3f4aca[_0x45e055('0x2319')]['length'];_0x425311++){_0x1bf844[_0x45e055('0x1e36')][_0x45e055('0x269f')](_0x3f4aca[_0x45e055('0x2319')][_0x425311]['id']);}}_0x14fe89();}function _0x566ba9(){const _0x524ef7=_0x48673e;_0x1bf844['query'][_0x524ef7('0xf19')]=(_0x1bf844[_0x524ef7('0x826')][_0x524ef7('0x115a')]-0x1)*_0x1bf844[_0x524ef7('0x826')][_0x524ef7('0x193b')],_0x381e8f[_0x524ef7('0x1ba2')](_0x524ef7('0x20bf'))?_0x1bf844[_0x524ef7('0x1691')]=_0x4bf0bd['voiceQueue'][_0x524ef7('0x1c53')](_0x1bf844[_0x524ef7('0x826')],_0x4b995a)[_0x524ef7('0x1af5')]:(_0x1bf844[_0x524ef7('0x826')]['id']=_0x1bf844[_0x524ef7('0xdeb')]['id'],_0x1bf844['query'][_0x524ef7('0x16f8')]='QueueCampaigns',_0x1bf844[_0x524ef7('0x1691')]=_0x4bf0bd['userProfile']['getResources'](_0x1bf844[_0x524ef7('0x826')],_0x4b995a)[_0x524ef7('0x1af5')]);}function _0x391d5c(_0x7050e3,_0x29d101){const _0x58fc5d=_0x48673e;_0x40c654[_0x58fc5d('0x28e2')]({'controller':_0x58fc5d('0xe79'),'controllerAs':'vm','templateUrl':_0x31b9dc,'parent':angular['element'](_0x48a5a4[_0x58fc5d('0x13aa')]),'targetEvent':_0x7050e3,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x29d101,'queueCampaigns':_0x49cbdd()[_0x58fc5d('0xa72')](_0x1bf844[_0x58fc5d('0x14c4')]),'license':null,'setting':null,'crudPermissions':_0x1bf844[_0x58fc5d('0x103e')]}});}function _0x5e3168(_0x5ac105,_0x3060ff){const _0x3ce00d=_0x48673e;_0x40c654[_0x3ce00d('0x28e2')]({'controller':_0x3ce00d('0x5fe'),'controllerAs':'vm','templateUrl':_0x4cbf7f,'parent':angular['element'](_0x48a5a4[_0x3ce00d('0x13aa')]),'targetEvent':_0x5ac105,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x3060ff}});}function _0x2ad64c(_0x39c352,_0x30c793){const _0x1b0c49=_0x48673e;_0x40c654[_0x1b0c49('0x28e2')]({'controller':'QueueCampaignagentaddController','controllerAs':'vm','templateUrl':_0x326495,'parent':angular[_0x1b0c49('0x1ce1')](_0x48a5a4['body']),'targetEvent':_0x39c352,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x30c793,'queueCampaigns':_0x1bf844[_0x1b0c49('0x14c4')]?_0x1bf844[_0x1b0c49('0x14c4')][_0x1b0c49('0x2319')]:[],'realtime':!![],'crudPermissions':_0x1bf844[_0x1b0c49('0x103e')]}});}function _0x262f19(_0x433df3){const _0x52c500=_0x48673e;return _0x4bf0bd['voiceQueue'][_0x52c500('0x27ba')](_0x433df3)['$promise'][_0x52c500('0x17e7')](function(){const _0x2f7615=_0x52c500;_0x26cc71['success']({'title':_0x2f7615('0xc7a'),'msg':_0x433df3[_0x2f7615('0x2aa')]?_0x433df3[_0x2f7615('0x2aa')]+_0x2f7615('0x12b0'):''});})[_0x52c500('0x16df')](function(_0x21f1c6){const _0x346acc=_0x52c500;_0x26cc71[_0x346acc('0x1db9')]({'title':_0x346acc('0x2480'),'msg':_0x21f1c6[_0x346acc('0x1603')]});});}_0xe62b32[_0x48673e('0x207c')](_0x48673e('0x2b4'),function(){const _0x19eb3c=_0x48673e;_0x261d41[_0x19eb3c('0x1c65')](_0x19eb3c('0x1ddb')),_0x1bf844[_0x19eb3c('0x231f')]&&_0x9d7f4[_0x19eb3c('0x1d47')](_0x1bf844[_0x19eb3c('0x231f')]),_0x261d41[_0x19eb3c('0x1c65')]('userVoiceQueueRt:save'),_0x261d41[_0x19eb3c('0x1c65')](_0x19eb3c('0x284f')),_0x261d41[_0x19eb3c('0x1c65')](_0x19eb3c('0x1f34')),_0x261d41[_0x19eb3c('0x1c65')](_0x19eb3c('0x1cfb'));});}const _0xb633cc=_0x21455c;_0x210e49['$inject']=[_0x4376d8('0x14f6'),_0x4376d8('0x33a'),_0x4376d8('0x25f7')];function _0x210e49(_0x4cf1a8,_0x483e0b,_0x257c29){const _0x2b674f=_0x4376d8,_0x5d2909=this;_0x5d2909[_0x2b674f('0x25f7')]=_0x257c29,_0x5d2909[_0x2b674f('0xcab')]=_0x5cbb35,_0x5d2909[_0x2b674f('0x2522')]=_0x55d50f,_0x5d2909['closeDialog']=_0x23f046;function _0x5cbb35(_0x346459,_0x45fc66){const _0x35b0d2=_0x2b674f;return _0x107a13()(_0x346459)[_0x35b0d2('0xd62')]('m',_0x45fc66)[_0x35b0d2('0x1c0d')](_0x35b0d2('0x36b'));}function _0x55d50f(_0x24dfd4){const _0x2aca31=_0x2b674f;return _0x107a13()(_0x24dfd4)[_0x2aca31('0x1c0d')](_0x2aca31('0x36b'));}function _0x23f046(){const _0x2b742b=_0x2b674f;_0x4cf1a8[_0x2b742b('0x212a')]();}}const _0x3005a4=_0x210e49;function _0x416632(){const _0x4b8d92=_0x4376d8;return{'status':{'registered':_0x4b8d92('0x9b4'),'unregistered':_0x4b8d92('0x20ec'),'lagged':'red-300-fg\x20icon-close-circle','reachable':'green-300-fg\x20icon-checkbox-marked-circle','unreachable':_0x4b8d92('0x20ec'),'unknown':_0x4b8d92('0x15d8')},'state':{'unknown':_0x4b8d92('0x9d7'),'not_inuse':_0x4b8d92('0x23ce'),'inuse':'red-300-fg\x20icon-phone-in-talk','busy':'red-300-fg\x20icon-phone-locked','invalid':_0x4b8d92('0x9d7'),'unavailable':_0x4b8d92('0x9d7'),'ringing':_0x4b8d92('0x109b'),'ringinuse':_0x4b8d92('0x109b'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':_0x4b8d92('0x109b'),'up':_0x4b8d92('0xc21'),'hangup':_0x4b8d92('0x1147')},'channelStatusOut':{'ring':'blue-300-fg\x20icon-phone-outgoing','up':_0x4b8d92('0xc21'),'hangup':_0x4b8d92('0x1147')}};}const _0x37c55c=_0x416632;_0x3b579c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'socket'];function _0x3b579c(_0x532d0a,_0x15b964,_0x188285){const _0x1c6e32=_0x4376d8,_0xf9c9f=this;_0x188285['disconnect'](),_0x188285[_0x1c6e32('0x1f81')](),_0xf9c9f[_0x1c6e32('0xde7')]=0x0;switch(_0x15b964[_0x1c6e32('0x1247')][_0x1c6e32('0x2aa')]){case _0x1c6e32('0x572'):_0xf9c9f[_0x1c6e32('0xde7')]=0x0;break;case _0x1c6e32('0x1718'):_0xf9c9f[_0x1c6e32('0xde7')]=0x1;break;case'app.motiondialer.realtime.queue_calls':_0xf9c9f['selectedTab']=0x2;break;case'app.motiondialer.realtime.abandonedcalls':_0xf9c9f[_0x1c6e32('0xde7')]=0x3;break;case _0x1c6e32('0x996'):_0xf9c9f[_0x1c6e32('0xde7')]=0x4;break;case'app.motiondialer.realtime.ivr_campaigns':_0xf9c9f[_0x1c6e32('0xde7')]=0x5;break;default:_0xf9c9f[_0x1c6e32('0xde7')]=0x0,_0x15b964['go'](_0x1c6e32('0x572'));}_0x532d0a['$watch'](_0x1c6e32('0x1bda'),function(_0x3db4ae,_0x2ad61a){const _0x20eb12=_0x1c6e32;if(_0x3db4ae!==_0x2ad61a)switch(_0x3db4ae){case 0x0:_0x15b964['go'](_0x20eb12('0x572'));break;case 0x1:_0x15b964['go'](_0x20eb12('0x1718'));break;case 0x2:_0x15b964['go'](_0x20eb12('0xb39'));break;case 0x3:_0x15b964['go'](_0x20eb12('0x2364'));break;case 0x4:_0x15b964['go'](_0x20eb12('0x996'));break;case 0x5:_0x15b964['go'](_0x20eb12('0x1bd7'));break;default:_0x15b964['go']('app.motiondialer.realtime.agents');}});}const _0xcdfae5=_0x3b579c;_0x4bd9a7[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x4bd9a7(_0x16483a){const _0x4e1513=_0x4376d8;_0x16483a[_0x4e1513('0x1b9a')](_0x4e1513('0xbe8'),{'url':_0x4e1513('0x1dc1'),'views':{'content@app':{'templateUrl':_0x3775ec,'controller':_0x4e1513('0xe7b')}},'resolve':{'userProfile':['apiResolver','Auth',function(_0x2044df,_0x5ac23a){const _0xe86056=_0x4e1513;return _0x5ac23a[_0xe86056('0x1ba2')](_0xe86056('0x20bf'))?null:_0x2044df[_0xe86056('0x898')](_0xe86056('0x235d'),{'fields':'id,name,crudPermissions','id':_0x5ac23a[_0xe86056('0x2831')]()[_0xe86056('0x1e76')]});}],'userProfileSection':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x209263,_0x543dd1){const _0x78a43=_0x4e1513;return _0x543dd1[_0x78a43('0x1ba2')](_0x78a43('0x20bf'))?null:_0x209263['resolve'](_0x78a43('0x23e7'),{'fields':_0x78a43('0x1134'),'userProfileId':_0x543dd1[_0x78a43('0x2831')]()[_0x78a43('0x1e76')],'sectionId':0x5e6});}]},'authenticate':!![],'permissionId':0x5e6})[_0x4e1513('0x1b9a')]('app.motiondialer.realtime.agents',{'url':'/agents','controller':_0x4e1513('0x4c1'),'templateUrl':_0x926fc9,'resolve':{'pauses':[_0x4e1513('0x177'),function(_0x1118e2){const _0x5f48fb=_0x4e1513;return _0x1118e2[_0x5f48fb('0x898')](_0x5f48fb('0x13db'),{'nolimit':!![]});}],'agents':['apiResolver',_0x4e1513('0x1885'),function(_0x442b0a,_0x489cef){const _0x590dda=_0x4e1513;return _0x489cef[_0x590dda('0x1ba2')](_0x590dda('0x20bf'))?_0x442b0a[_0x590dda('0x898')](_0x590dda('0x181a'),{'fields':_0x590dda('0xb31'),'role':_0x590dda('0x684'),'sort':_0x590dda('0xea6'),'nolimit':!![]}):_0x442b0a[_0x590dda('0x898')](_0x590dda('0x1164'),{'id':_0x489cef[_0x590dda('0x2831')]()[_0x590dda('0x1e76')],'section':'Agents','fields':_0x590dda('0xb31'),'role':_0x590dda('0x684'),'sort':'fullname','nolimit':!![]});}],'userProfile':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x206c31,_0x892b11){const _0x40f6ac=_0x4e1513;return _0x892b11['hasRole'](_0x40f6ac('0x20bf'))?null:_0x206c31['resolve'](_0x40f6ac('0x235d'),{'fields':_0x40f6ac('0x8d3'),'id':_0x892b11[_0x40f6ac('0x2831')]()[_0x40f6ac('0x1e76')]});}],'userProfileSection':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x556b59,_0x28feeb){const _0x3c9ab9=_0x4e1513;return _0x28feeb[_0x3c9ab9('0x1ba2')](_0x3c9ab9('0x20bf'))?null:_0x556b59[_0x3c9ab9('0x898')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x28feeb['getCurrentUser']()[_0x3c9ab9('0x1e76')],'sectionId':0xca});}],'rpcAgents':['apiResolver',function(_0x56deac){const _0x484fb8=_0x4e1513;return _0x56deac[_0x484fb8('0x898')]('rpc@getAgents');}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x4e1513('0x1718'),{'url':_0x4e1513('0x1520'),'controller':_0x4e1513('0x1e4'),'templateUrl':_0x69d5eb,'resolve':{'queues':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x3f0f02,_0x4d8246){const _0x5f05f4=_0x4e1513;return _0x4d8246[_0x5f05f4('0x1ba2')](_0x5f05f4('0x20bf'))?_0x3f0f02['resolve'](_0x5f05f4('0xa5a'),{'type':_0x5f05f4('0x1ade'),'sort':_0x5f05f4('0x1ac6'),'limit':0xa,'offset':0x0}):_0x3f0f02[_0x5f05f4('0x898')]('userProfile@getResources',{'id':_0x4d8246[_0x5f05f4('0x2831')]()[_0x5f05f4('0x1e76')],'section':_0x5f05f4('0x1299'),'channel':'voice','type':_0x5f05f4('0x1ade'),'sort':_0x5f05f4('0x1ac6'),'limit':0xa,'page':0x1});}],'userProfile':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0xa87e0b,_0x8f534b){const _0x29325e=_0x4e1513;return _0x8f534b[_0x29325e('0x1ba2')]('admin')?null:_0xa87e0b[_0x29325e('0x898')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x8f534b[_0x29325e('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x5be2bd,_0x169a6a){const _0x499633=_0x4e1513;return _0x169a6a['hasRole']('admin')?null:_0x5be2bd[_0x499633('0x898')](_0x499633('0x23e7'),{'fields':_0x499633('0x1134'),'userProfileId':_0x169a6a[_0x499633('0x2831')]()['userProfileId'],'sectionId':0x5dd});}],'rpcQueues':[_0x4e1513('0x177'),function(_0x9bd3bf){const _0x276381=_0x4e1513;return _0x9bd3bf[_0x276381('0x898')](_0x276381('0x1cfe'));}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x4e1513('0xb39'),{'url':_0x4e1513('0x25a0'),'controller':_0x4e1513('0x3ff'),'templateUrl':_0x2cb21b,'resolve':{'agents':[_0x4e1513('0x177'),'Auth',function(_0x21f86b,_0x5b35e3){const _0x3954dd=_0x4e1513;return _0x5b35e3[_0x3954dd('0x1ba2')](_0x3954dd('0x20bf'))?_0x21f86b[_0x3954dd('0x898')](_0x3954dd('0x181a'),{'fields':_0x3954dd('0x1f23'),'role':_0x3954dd('0x684'),'nolimit':!![]}):_0x21f86b[_0x3954dd('0x898')]('userProfile@getResources',{'id':_0x5b35e3['getCurrentUser']()[_0x3954dd('0x1e76')],'section':'Agents','fields':'id,name,role,context','role':_0x3954dd('0x684'),'nolimit':!![]});}],'queues':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x35a2b9,_0x50aa7d){const _0x58403e=_0x4e1513;return _0x50aa7d[_0x58403e('0x1ba2')](_0x58403e('0x20bf'))?_0x35a2b9[_0x58403e('0x898')](_0x58403e('0xa5a'),{'type':'outbound','sort':'-updatedAt','nolimit':!![]}):_0x35a2b9[_0x58403e('0x898')](_0x58403e('0x1164'),{'id':_0x50aa7d[_0x58403e('0x2831')]()[_0x58403e('0x1e76')],'section':'QueueCampaigns','channel':_0x58403e('0x1fe1'),'type':'outbound','sort':_0x58403e('0x1ac6'),'nolimit':!![]});}],'userProfile':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x93aadd,_0x878461){const _0x373a1a=_0x4e1513;return _0x878461[_0x373a1a('0x1ba2')](_0x373a1a('0x20bf'))?null:_0x93aadd['resolve'](_0x373a1a('0x235d'),{'fields':_0x373a1a('0x8d3'),'id':_0x878461[_0x373a1a('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x9183a6,_0x582abb){const _0x39bae4=_0x4e1513;return _0x582abb[_0x39bae4('0x1ba2')](_0x39bae4('0x20bf'))?null:_0x9183a6[_0x39bae4('0x898')]('userProfileSection@get',{'fields':_0x39bae4('0x1134'),'userProfileId':_0x582abb[_0x39bae4('0x2831')]()[_0x39bae4('0x1e76')],'sectionId':0x5dd});}],'rpcVoiceQueuesChannels':[_0x4e1513('0x177'),function(_0x344f2c){const _0x3df8c6=_0x4e1513;return _0x344f2c[_0x3df8c6('0x898')](_0x3df8c6('0x22e'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x4e1513('0x1b9a')](_0x4e1513('0x2364'),{'url':_0x4e1513('0x6c3'),'controller':_0x4e1513('0x1b80'),'templateUrl':_0x30a5aa,'resolve':{'agents':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x11e604,_0x28e9fa){const _0xa59000=_0x4e1513;return _0x28e9fa[_0xa59000('0x1ba2')](_0xa59000('0x20bf'))?_0x11e604[_0xa59000('0x898')](_0xa59000('0x181a'),{'fields':_0xa59000('0x1f23'),'role':_0xa59000('0x684'),'nolimit':!![]}):_0x11e604[_0xa59000('0x898')](_0xa59000('0x1164'),{'id':_0x28e9fa[_0xa59000('0x2831')]()[_0xa59000('0x1e76')],'section':_0xa59000('0x2157'),'fields':'id,name,role,context','role':_0xa59000('0x684'),'nolimit':!![]});}],'queues':[_0x4e1513('0x177'),'Auth',function(_0x43640b,_0x4a507f){const _0x598c45=_0x4e1513;return _0x4a507f['hasRole'](_0x598c45('0x20bf'))?_0x43640b[_0x598c45('0x898')](_0x598c45('0xa5a'),{'type':_0x598c45('0x1ade'),'sort':_0x598c45('0x1ac6'),'nolimit':!![]}):_0x43640b[_0x598c45('0x898')](_0x598c45('0x1164'),{'id':_0x4a507f[_0x598c45('0x2831')]()[_0x598c45('0x1e76')],'section':_0x598c45('0x1299'),'channel':_0x598c45('0x1fe1'),'type':_0x598c45('0x1ade'),'sort':'-updatedAt','nolimit':!![]});}],'dispositions':[_0x4e1513('0x177'),'Auth',function(_0x5ae354,_0x4afbdd){const _0x437ad4=_0x4e1513;return _0x4afbdd[_0x437ad4('0x1ba2')](_0x437ad4('0x20bf'))?_0x5ae354[_0x437ad4('0x898')](_0x437ad4('0x18d5'),{'fields':_0x437ad4('0x25b5'),'sort':_0x437ad4('0x1ac6'),'MailAccountId':_0x437ad4('0x9bb'),'FaxAccountId':_0x437ad4('0x9bb'),'SmsAccountId':_0x437ad4('0x9bb'),'WhatsappAccountId':_0x437ad4('0x9bb'),'OpenchannelAccountId':_0x437ad4('0x9bb'),'ChatWebsiteId':_0x437ad4('0x9bb'),'ListId':'null','nolimit':!![]}):_0x5ae354[_0x437ad4('0x898')](_0x437ad4('0x1164'),{'id':_0x4afbdd[_0x437ad4('0x2831')]()['userProfileId'],'section':'Dispositions','fields':_0x437ad4('0xe5b'),'sort':_0x437ad4('0x1ac6'),'MailAccountId':_0x437ad4('0x9bb'),'FaxAccountId':_0x437ad4('0x9bb'),'SmsAccountId':_0x437ad4('0x9bb'),'WhatsappAccountId':_0x437ad4('0x9bb'),'OpenchannelAccountId':_0x437ad4('0x9bb'),'ChatWebsiteId':'null','ListId':_0x437ad4('0x9bb'),'nolimit':!![]});}],'userProfile':[_0x4e1513('0x177'),'Auth',function(_0x4ed2a1,_0x34ea78){const _0x2442a7=_0x4e1513;return _0x34ea78[_0x2442a7('0x1ba2')](_0x2442a7('0x20bf'))?null:_0x4ed2a1[_0x2442a7('0x898')](_0x2442a7('0x235d'),{'fields':'id,name,crudPermissions','id':_0x34ea78[_0x2442a7('0x2831')]()['userProfileId']});}],'userProfileSection':['apiResolver',_0x4e1513('0x1885'),function(_0x3b54c1,_0x532226){const _0x3f4348=_0x4e1513;return _0x532226[_0x3f4348('0x1ba2')](_0x3f4348('0x20bf'))?null:_0x3b54c1[_0x3f4348('0x898')](_0x3f4348('0x23e7'),{'fields':_0x3f4348('0x1134'),'userProfileId':_0x532226['getCurrentUser']()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5e6})['state'](_0x4e1513('0x996'),{'url':_0x4e1513('0x24e7'),'controller':_0x4e1513('0x1a3f'),'templateUrl':_0x154e0e,'resolve':{'queues':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x31285f,_0x21dfd8){const _0x266e5e=_0x4e1513;return _0x21dfd8[_0x266e5e('0x1ba2')]('admin')?_0x31285f[_0x266e5e('0x898')]('voiceQueue@get',{'type':'outbound','fields':_0x266e5e('0x12d2'),'sort':_0x266e5e('0x1ac6'),'limit':0xa,'offset':0x0}):_0x31285f[_0x266e5e('0x898')]('userProfile@getResources',{'id':_0x21dfd8[_0x266e5e('0x2831')]()[_0x266e5e('0x1e76')],'section':_0x266e5e('0x1299'),'channel':_0x266e5e('0x1fe1'),'type':'outbound','sort':_0x266e5e('0x1ac6'),'nolimit':!![]});}],'userProfile':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x218e38,_0x1eb6e8){const _0x38ac4a=_0x4e1513;return _0x1eb6e8[_0x38ac4a('0x1ba2')](_0x38ac4a('0x20bf'))?null:_0x218e38[_0x38ac4a('0x898')](_0x38ac4a('0x235d'),{'fields':'id,name,crudPermissions','id':_0x1eb6e8[_0x38ac4a('0x2831')]()[_0x38ac4a('0x1e76')]});}],'userProfileSection':[_0x4e1513('0x177'),'Auth',function(_0x2a08d8,_0x44e473){const _0x57730e=_0x4e1513;return _0x44e473[_0x57730e('0x1ba2')](_0x57730e('0x20bf'))?null:_0x2a08d8['resolve'](_0x57730e('0x23e7'),{'fields':_0x57730e('0x1134'),'userProfileId':_0x44e473[_0x57730e('0x2831')]()[_0x57730e('0x1e76')],'sectionId':0x5dd});}],'rpcQueues':[_0x4e1513('0x177'),function(_0x3168a3){const _0x106c36=_0x4e1513;return _0x3168a3['resolve'](_0x106c36('0x1cfe'));}]},'authenticate':!![],'permissionId':0x5e6})[_0x4e1513('0x1b9a')]('app.motiondialer.realtime.ivr_campaigns',{'url':_0x4e1513('0xbb6'),'controller':_0x4e1513('0x224d'),'templateUrl':_0x45a97e,'resolve':{'campaigns':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x10aa94,_0x3959df){const _0x4289b8=_0x4e1513;return _0x3959df[_0x4289b8('0x1ba2')](_0x4289b8('0x20bf'))?_0x10aa94[_0x4289b8('0x898')](_0x4289b8('0xba'),{'sort':_0x4289b8('0x1ac6'),'limit':0xa,'offset':0x0}):_0x10aa94['resolve']('userProfile@getResources',{'id':_0x3959df['getCurrentUser']()[_0x4289b8('0x1e76')],'section':_0x4289b8('0x2187'),'sort':_0x4289b8('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x48dde2,_0x22b6b0){const _0x2b057a=_0x4e1513;return _0x22b6b0[_0x2b057a('0x1ba2')](_0x2b057a('0x20bf'))?null:_0x48dde2[_0x2b057a('0x898')](_0x2b057a('0x235d'),{'fields':_0x2b057a('0x8d3'),'id':_0x22b6b0[_0x2b057a('0x2831')]()[_0x2b057a('0x1e76')]});}],'userProfileSection':[_0x4e1513('0x177'),_0x4e1513('0x1885'),function(_0x426185,_0x261833){const _0x42b9ac=_0x4e1513;return _0x261833[_0x42b9ac('0x1ba2')](_0x42b9ac('0x20bf'))?null:_0x426185[_0x42b9ac('0x898')](_0x42b9ac('0x23e7'),{'fields':_0x42b9ac('0x1134'),'userProfileId':_0x261833[_0x42b9ac('0x2831')]()[_0x42b9ac('0x1e76')],'sectionId':0x5de});}],'rpcCampaigns':['apiResolver',function(_0x4669dc){const _0x59f438=_0x4e1513;return _0x4669dc['resolve'](_0x59f438('0x12'));}]},'authenticate':!![],'permissionId':0x5e6});}angular[_0x4376d8('0x11c4')](_0x4376d8('0xbe8'),[])[_0x4376d8('0x1980')](_0x4bd9a7)['controller'](_0x4376d8('0x5a3'),_0x4f8641)['controller'](_0x4376d8('0x1d4c'),_0x4664c6)[_0x4376d8('0x5ce')](_0x4376d8('0x11d9'),_0x3b478c)[_0x4376d8('0x5ce')](_0x4376d8('0xf4'),_0x16c1cb)[_0x4376d8('0x5ce')](_0x4376d8('0xaa8'),_0x41925e)['controller'](_0x4376d8('0x1136'),_0xb633cc)[_0x4376d8('0x5ce')](_0x4376d8('0x5fe'),_0x3005a4)['factory'](_0x4376d8('0x628'),_0x37c55c)['controller'](_0x4376d8('0x723'),_0xcdfae5);const _0x4957d3=_0x4cf2bc['p']+_0x4376d8('0xfeb'),_0x4d81cc=_0x4cf2bc['p']+_0x4376d8('0x2734'),_0x36ef4e=_0x4cf2bc['p']+_0x4376d8('0x1d40'),_0x82e73b=_0x4cf2bc['p']+_0x4376d8('0x17a');_0x284ecd[_0x4376d8('0x1b9c')]=['$scope','$state',_0x4376d8('0x1391'),'$mdDialog','$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x27b4'),'ivrCampaign','api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x284ecd(_0xa4db06,_0x25ee21,_0x43916e,_0x26d6cc,_0x213d19,_0x55d214,_0x5e336d,_0x26b864,_0x526829,_0x2cd84e,_0x3779cf,_0x148743,_0x5330a8,_0x3b2285){const _0x32f454=_0x4376d8,_0x59dde3=this;_0x59dde3['currentUser']=_0x3779cf['getCurrentUser'](),_0x59dde3[_0x32f454('0x73e')]=[],_0x59dde3[_0x32f454('0x1aeb')]=_0x5330a8,_0x59dde3[_0x32f454('0x1d11')]=_0x148743,_0x59dde3['crudPermissions']=_0x3b2285,_0x59dde3['hasModulePermissions']={},_0x59dde3[_0x32f454('0x1572')]=_0x59dde3[_0x32f454('0x1aeb')]&&_0x59dde3[_0x32f454('0x1aeb')][_0x32f454('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x59dde3['title']=_0x32f454('0x1660'),_0x59dde3[_0x32f454('0x2148')]=angular[_0x32f454('0x14e5')](_0x526829),_0x59dde3[_0x32f454('0x27b4')]=_0x26b864,_0x59dde3[_0x32f454('0x1d10')]=![];!_0x59dde3[_0x32f454('0x2148')]&&(_0x59dde3[_0x32f454('0x2148')]={'active':!![],'type':_0x32f454('0xe8'),'dialCheckDuplicateType':_0x32f454('0x1256'),'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':_0x32f454('0x1173'),'dialGlobalInterval':'07:00-22:00,*,*,*','dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388},_0x59dde3[_0x32f454('0x24d3')]=_0x32f454('0x228a'),_0x59dde3[_0x32f454('0x1d10')]=!![]);_0x59dde3[_0x32f454('0x11e1')]=_0x3ec269,_0x59dde3['saveIvrCampaign']=_0x3f2daf,_0x59dde3[_0x32f454('0x2466')]=_0x149804,_0x59dde3[_0x32f454('0x1300')]=_0x1ac7e4,_0x59dde3[_0x32f454('0x136e')]=_0x24efb1,_0x3779cf[_0x32f454('0x1ba2')](_0x32f454('0x20bf'))?_0x2cd84e[_0x32f454('0x252a')][_0x32f454('0x1c53')]({'fields':_0x32f454('0x12d2'),'sort':_0x32f454('0x2aa'),'table':_0x32f454('0xe34')})[_0x32f454('0x1af5')][_0x32f454('0x17e7')](function(_0x405d9f){const _0x5275ed=_0x32f454;_0x59dde3[_0x5275ed('0x19cb')]=_0x405d9f[_0x5275ed('0x2319')]||[];})[_0x32f454('0x16df')](function(_0xf2485f){const _0x25c911=_0x32f454;_0x5e336d[_0x25c911('0x1db9')]({'title':_0xf2485f[_0x25c911('0x11c5')]?_0x25c911('0x14f7')+_0xf2485f[_0x25c911('0x11c5')]+'\x20-\x20'+_0xf2485f[_0x25c911('0x1833')]:'SYSTEM:GET_TRUNKS','msg':_0xf2485f[_0x25c911('0x1457')]?JSON[_0x25c911('0x678')](_0xf2485f[_0x25c911('0x1457')]):_0xf2485f[_0x25c911('0x9b6')]()});}):_0x2cd84e[_0x32f454('0x252a')][_0x32f454('0x1c53')]({'fields':'id,name','sort':'name','table':'true'})['$promise']['then'](function(_0x36eb13){const _0x38cee2=_0x32f454;_0x59dde3[_0x38cee2('0x19cb')]=_0x36eb13[_0x38cee2('0x2319')]||[];})['then'](function(){const _0x1b4a11=_0x32f454;return _0x2cd84e[_0x1b4a11('0x383')]['get']({'userProfileId':_0x59dde3['currentUser'][_0x1b4a11('0x1e76')],'sectionId':0x3f3})[_0x1b4a11('0x1af5')];})[_0x32f454('0x17e7')](function(_0x1e2e11){const _0x44e793=_0x32f454,_0x551344=_0x1e2e11&&_0x1e2e11[_0x44e793('0x2319')]?_0x1e2e11[_0x44e793('0x2319')][0x0]:null;if(!_0x551344)_0x59dde3[_0x44e793('0x19cb')]=[];else{if(!_0x551344[_0x44e793('0x9e3')])return _0x2cd84e[_0x44e793('0x78d')][_0x44e793('0x1c53')]({'sectionId':_0x551344['id']})['$promise'][_0x44e793('0x17e7')](function(_0x5aed27){const _0x27caff=_0x44e793,_0x2ac3df=_0x49cbdd()[_0x27caff('0x787')](_0x5aed27[_0x27caff('0x2319')],function(_0x10f70c){const _0x537427=_0x27caff;return _0x49cbdd()[_0x537427('0xe8e')](_0x59dde3[_0x537427('0x19cb')],{'id':_0x10f70c[_0x537427('0x5db')]});});_0x59dde3[_0x27caff('0x19cb')][_0x27caff('0xccd')](function(_0x364b43){const _0x353057=_0x27caff;!_0x49cbdd()[_0x353057('0x26f8')](_0x2ac3df,['id',_0x364b43['id']])&&(_0x364b43['canSelect']=![]),_0x2ac3df[_0x353057('0x269f')](_0x364b43);}),_0x59dde3['trunks']=_0x2ac3df;});}})[_0x32f454('0x16df')](function(_0x49f7e9){const _0x4b80c5=_0x32f454;_0x5e336d[_0x4b80c5('0x1db9')]({'title':_0x49f7e9[_0x4b80c5('0x11c5')]?'API:'+_0x49f7e9[_0x4b80c5('0x11c5')]+_0x4b80c5('0x16e4')+_0x49f7e9[_0x4b80c5('0x1833')]:'SYSTEM:GETtrunks','msg':_0x49f7e9[_0x4b80c5('0x1457')]?JSON[_0x4b80c5('0x678')](_0x49f7e9[_0x4b80c5('0x1457')]):_0x49f7e9[_0x4b80c5('0x9b6')]()});}),_0x3779cf[_0x32f454('0x1ba2')]('admin')?_0x2cd84e['squareProject'][_0x32f454('0x1c53')]({'fields':'id,name','sort':_0x32f454('0x2aa')})['$promise'][_0x32f454('0x17e7')](function(_0x5c8591){const _0x101754=_0x32f454;_0x59dde3[_0x101754('0x20e0')]=_0x5c8591[_0x101754('0x2319')]||[];})[_0x32f454('0x16df')](function(_0x1e2180){const _0xd6cd9f=_0x32f454;_0x5e336d['error']({'title':_0x1e2180[_0xd6cd9f('0x11c5')]?_0xd6cd9f('0x14f7')+_0x1e2180[_0xd6cd9f('0x11c5')]+'\x20-\x20'+_0x1e2180[_0xd6cd9f('0x1833')]:'SYSTEM:GET_PROJECTS','msg':_0x1e2180[_0xd6cd9f('0x1457')]?JSON[_0xd6cd9f('0x678')](_0x1e2180[_0xd6cd9f('0x1457')]):_0x1e2180[_0xd6cd9f('0x9b6')]()});}):_0x2cd84e[_0x32f454('0x1218')][_0x32f454('0x1c53')]({'fields':_0x32f454('0x12d2'),'sort':'name'})['$promise'][_0x32f454('0x17e7')](function(_0x3813a7){const _0x106302=_0x32f454;_0x59dde3[_0x106302('0x20e0')]=_0x3813a7[_0x106302('0x2319')]||[];})[_0x32f454('0x17e7')](function(){const _0x268ae4=_0x32f454;return _0x2cd84e[_0x268ae4('0x383')]['get']({'userProfileId':_0x59dde3[_0x268ae4('0x197c')][_0x268ae4('0x1e76')],'sectionId':0x44f})[_0x268ae4('0x1af5')];})[_0x32f454('0x17e7')](function(_0x585f49){const _0x53160e=_0x32f454,_0x435dc3=_0x585f49&&_0x585f49[_0x53160e('0x2319')]?_0x585f49[_0x53160e('0x2319')][0x0]:null;if(!_0x435dc3){const _0x30fd95=[];let _0x16d4b0=null;_0x59dde3[_0x53160e('0x2148')]&&(_0x16d4b0=_0x49cbdd()['find'](_0x59dde3[_0x53160e('0x20e0')],{'id':Number(_0x59dde3[_0x53160e('0x2148')][_0x53160e('0x981')])}));for(let _0x427a29=0x0;_0x427a29<_0x59dde3[_0x53160e('0x20e0')]['length'];_0x427a29++){_0x16d4b0&&_0x59dde3[_0x53160e('0x20e0')][_0x427a29]['id']===_0x16d4b0['id']&&(_0x59dde3[_0x53160e('0x20e0')][_0x427a29][_0x53160e('0xe5c')]=![],_0x30fd95['push'](_0x59dde3[_0x53160e('0x20e0')][_0x427a29]));}_0x59dde3['projects']=_0x30fd95;}else{if(!_0x435dc3[_0x53160e('0x9e3')])return _0x2cd84e[_0x53160e('0x78d')][_0x53160e('0x1c53')]({'sectionId':_0x435dc3['id']})[_0x53160e('0x1af5')]['then'](function(_0x40fb1e){const _0x35aed2=_0x53160e,_0x5572fc=_0x49cbdd()['map'](_0x40fb1e[_0x35aed2('0x2319')],function(_0x225996){const _0x37514f=_0x35aed2;return _0x49cbdd()['find'](_0x59dde3[_0x37514f('0x20e0')],{'id':_0x225996[_0x37514f('0x5db')]});});let _0x496eb3=null;_0x59dde3[_0x35aed2('0x2148')]&&(_0x496eb3=_0x49cbdd()['find'](_0x59dde3[_0x35aed2('0x20e0')],{'id':Number(_0x59dde3[_0x35aed2('0x2148')][_0x35aed2('0x981')])}));if(_0x496eb3&&!_0x49cbdd()[_0x35aed2('0x26f8')](_0x5572fc,['id',_0x496eb3['id']])){const _0x1db39d=_0x49cbdd()[_0x35aed2('0xe8e')](_0x59dde3[_0x35aed2('0x20e0')],{'id':_0x496eb3['id']});_0x1db39d[_0x35aed2('0xe5c')]=![],_0x5572fc[_0x35aed2('0x269f')](_0x1db39d);}_0x59dde3[_0x35aed2('0x20e0')]=_0x5572fc;});}})[_0x32f454('0x16df')](function(_0x121d5e){const _0x13d5ff=_0x32f454;_0x5e336d['error']({'title':_0x121d5e['status']?_0x13d5ff('0x14f7')+_0x121d5e[_0x13d5ff('0x11c5')]+_0x13d5ff('0x16e4')+_0x121d5e[_0x13d5ff('0x1833')]:'SYSTEM:GETprojects','msg':_0x121d5e[_0x13d5ff('0x1457')]?JSON['stringify'](_0x121d5e['data']):_0x121d5e[_0x13d5ff('0x9b6')]()});}),_0x3779cf[_0x32f454('0x1ba2')](_0x32f454('0x20bf'))?_0x2cd84e[_0x32f454('0x231f')][_0x32f454('0x1c53')]({'fields':_0x32f454('0x12d2'),'sort':_0x32f454('0x2aa'),'IntervalId':_0x32f454('0x9bb')})[_0x32f454('0x1af5')][_0x32f454('0x17e7')](function(_0x3c17d2){const _0x12c84a=_0x32f454;_0x59dde3[_0x12c84a('0x231f')]=_0x3c17d2[_0x12c84a('0x2319')]||[];})[_0x32f454('0x16df')](function(_0x2c7414){const _0x2e8f08=_0x32f454;_0x5e336d[_0x2e8f08('0x1db9')]({'title':_0x2c7414[_0x2e8f08('0x11c5')]?_0x2e8f08('0x14f7')+_0x2c7414[_0x2e8f08('0x11c5')]+_0x2e8f08('0x16e4')+_0x2c7414[_0x2e8f08('0x1833')]:_0x2e8f08('0xebd'),'msg':_0x2c7414[_0x2e8f08('0x1457')]?JSON['stringify'](_0x2c7414[_0x2e8f08('0x1457')]):_0x2c7414[_0x2e8f08('0x9b6')]()});}):_0x2cd84e['interval']['get']({'fields':_0x32f454('0x12d2'),'sort':_0x32f454('0x2aa'),'IntervalId':_0x32f454('0x9bb')})[_0x32f454('0x1af5')][_0x32f454('0x17e7')](function(_0x3ac0c1){const _0x5195ab=_0x32f454;_0x59dde3[_0x5195ab('0x231f')]=_0x3ac0c1[_0x5195ab('0x2319')]||[];})['then'](function(){const _0xa3e1f5=_0x32f454;return _0x2cd84e[_0xa3e1f5('0x383')]['get']({'userProfileId':_0x59dde3['currentUser'][_0xa3e1f5('0x1e76')],'sectionId':0x3ec})['$promise'];})['then'](function(_0x598613){const _0x49a1bd=_0x32f454,_0x549d77=_0x598613&&_0x598613[_0x49a1bd('0x2319')]?_0x598613[_0x49a1bd('0x2319')][0x0]:null;if(!_0x549d77){const _0x41a3b0=[];let _0x509d4c=null;_0x59dde3[_0x49a1bd('0x2148')]&&(_0x509d4c=_0x49cbdd()[_0x49a1bd('0xe8e')](_0x59dde3[_0x49a1bd('0x231f')],{'id':Number(_0x59dde3[_0x49a1bd('0x2148')][_0x49a1bd('0x24a9')])}));for(let _0x186da0=0x0;_0x186da0<_0x59dde3[_0x49a1bd('0x231f')]['length'];_0x186da0++){_0x509d4c&&_0x59dde3[_0x49a1bd('0x231f')][_0x186da0]['id']===_0x509d4c['id']&&(_0x59dde3[_0x49a1bd('0x231f')][_0x186da0][_0x49a1bd('0xe5c')]=![],_0x41a3b0['push'](_0x59dde3[_0x49a1bd('0x231f')][_0x186da0]));}_0x59dde3[_0x49a1bd('0x231f')]=_0x41a3b0;}else{if(!_0x549d77['autoAssociation'])return _0x2cd84e[_0x49a1bd('0x78d')][_0x49a1bd('0x1c53')]({'sectionId':_0x549d77['id']})[_0x49a1bd('0x1af5')]['then'](function(_0x90e071){const _0xb0f2da=_0x49a1bd,_0x1b2d1c=_0x49cbdd()['map'](_0x90e071[_0xb0f2da('0x2319')],function(_0x5912c1){const _0x113195=_0xb0f2da;return _0x49cbdd()[_0x113195('0xe8e')](_0x59dde3[_0x113195('0x231f')],{'id':_0x5912c1['resourceId']});});let _0x50933a=null;_0x59dde3['ivrCampaign']&&(_0x50933a=_0x49cbdd()[_0xb0f2da('0xe8e')](_0x59dde3[_0xb0f2da('0x231f')],{'id':Number(_0x59dde3[_0xb0f2da('0x2148')][_0xb0f2da('0x24a9')])}));if(_0x50933a&&!_0x49cbdd()[_0xb0f2da('0x26f8')](_0x1b2d1c,['id',_0x50933a['id']])){const _0xff895d=_0x49cbdd()[_0xb0f2da('0xe8e')](_0x59dde3[_0xb0f2da('0x231f')],{'id':_0x50933a['id']});_0xff895d[_0xb0f2da('0xe5c')]=![],_0x1b2d1c['push'](_0xff895d);}_0x59dde3[_0xb0f2da('0x231f')]=_0x1b2d1c;});}})[_0x32f454('0x16df')](function(_0x152b32){const _0x237c06=_0x32f454;_0x5e336d['error']({'title':_0x152b32[_0x237c06('0x11c5')]?'API:'+_0x152b32[_0x237c06('0x11c5')]+_0x237c06('0x16e4')+_0x152b32['statusText']:_0x237c06('0x1f79'),'msg':_0x152b32['data']?JSON[_0x237c06('0x678')](_0x152b32[_0x237c06('0x1457')]):_0x152b32[_0x237c06('0x9b6')]()});});function _0x3ec269(){const _0x19a0f3=_0x32f454;_0x59dde3['errors']=[],_0x2cd84e['campaign']['save'](_0x59dde3[_0x19a0f3('0x2148')])['$promise'][_0x19a0f3('0x17e7')](function(_0x451e18){const _0xa6bf63=_0x19a0f3;_0x59dde3[_0xa6bf63('0x27b4')]['unshift'](_0x451e18['toJSON']()),_0x5e336d[_0xa6bf63('0x130d')]({'title':_0xa6bf63('0x1507'),'msg':_0x59dde3[_0xa6bf63('0x2148')][_0xa6bf63('0x2aa')]?_0x59dde3['ivrCampaign'][_0xa6bf63('0x2aa')]+_0xa6bf63('0x15a'):''}),_0x24efb1(_0x451e18);})[_0x19a0f3('0x16df')](function(_0x4cfa17){const _0x3a088b=_0x19a0f3;if(_0x4cfa17[_0x3a088b('0x1457')]&&_0x4cfa17[_0x3a088b('0x1457')][_0x3a088b('0x73e')]&&_0x4cfa17[_0x3a088b('0x1457')][_0x3a088b('0x73e')][_0x3a088b('0x1f73')]){_0x59dde3[_0x3a088b('0x73e')]=_0x4cfa17[_0x3a088b('0x1457')][_0x3a088b('0x73e')]||[{'message':_0x4cfa17['toString'](),'type':_0x3a088b('0x1a83')}];for(let _0x193dc7=0x0;_0x193dc7<_0x4cfa17[_0x3a088b('0x1457')][_0x3a088b('0x73e')]['length'];_0x193dc7+=0x1){_0x5e336d[_0x3a088b('0x1db9')]({'title':_0x4cfa17[_0x3a088b('0x1457')]['errors'][_0x193dc7][_0x3a088b('0x412')],'msg':_0x4cfa17[_0x3a088b('0x1457')][_0x3a088b('0x73e')][_0x193dc7][_0x3a088b('0x1603')]});}}else _0x5e336d['error']({'title':_0x4cfa17[_0x3a088b('0x11c5')]?_0x3a088b('0x14f7')+_0x4cfa17['status']+'\x20-\x20'+_0x4cfa17[_0x3a088b('0x1833')]:'api.campaign.save','msg':_0x4cfa17[_0x3a088b('0x1457')]?JSON['stringify'](_0x4cfa17[_0x3a088b('0x1457')][_0x3a088b('0x1603')]):_0x4cfa17[_0x3a088b('0x9b6')]()});});}function _0x3f2daf(){const _0x5037df=_0x32f454;_0x59dde3[_0x5037df('0x73e')]=[],_0x2cd84e[_0x5037df('0x2395')][_0x5037df('0x27ba')]({'id':_0x59dde3['ivrCampaign']['id']},_0x59dde3['ivrCampaign'])[_0x5037df('0x1af5')][_0x5037df('0x17e7')](function(_0x550473){const _0x551272=_0x5037df,_0x57fee1=_0x49cbdd()[_0x551272('0xe8e')](_0x59dde3[_0x551272('0x27b4')],{'id':_0x550473['id']});_0x57fee1&&_0x49cbdd()[_0x551272('0x1ced')](_0x57fee1,_0x49cbdd()['pick'](_0x550473[_0x551272('0x16b2')](),_0x49cbdd()[_0x551272('0x1c0f')](_0x57fee1))),_0x5e336d[_0x551272('0x130d')]({'title':_0x551272('0x1f6e'),'msg':_0x59dde3[_0x551272('0x2148')][_0x551272('0x2aa')]?_0x59dde3[_0x551272('0x2148')][_0x551272('0x2aa')]+_0x551272('0x15ca'):''}),_0x24efb1(_0x550473);})[_0x5037df('0x16df')](function(_0xcd9992){const _0x5a443a=_0x5037df;if(_0xcd9992['data']&&_0xcd9992['data'][_0x5a443a('0x73e')]&&_0xcd9992['data'][_0x5a443a('0x73e')][_0x5a443a('0x1f73')]){_0x59dde3[_0x5a443a('0x73e')]=_0xcd9992[_0x5a443a('0x1457')][_0x5a443a('0x73e')]||[{'message':_0xcd9992[_0x5a443a('0x9b6')](),'type':_0x5a443a('0x21d4')}];for(let _0x5c854a=0x0;_0x5c854a<_0xcd9992[_0x5a443a('0x1457')]['errors'][_0x5a443a('0x1f73')];_0x5c854a++){_0x5e336d[_0x5a443a('0x1db9')]({'title':_0xcd9992[_0x5a443a('0x1457')][_0x5a443a('0x73e')][_0x5c854a][_0x5a443a('0x412')],'msg':_0xcd9992[_0x5a443a('0x1457')][_0x5a443a('0x73e')][_0x5c854a][_0x5a443a('0x1603')]});}}else _0x5e336d[_0x5a443a('0x1db9')]({'title':_0xcd9992[_0x5a443a('0x11c5')]?'API:'+_0xcd9992['status']+'\x20-\x20'+_0xcd9992['statusText']:_0x5a443a('0x21d4'),'msg':_0xcd9992[_0x5a443a('0x1457')]?JSON[_0x5a443a('0x678')](_0xcd9992[_0x5a443a('0x1457')]['message']):_0xcd9992[_0x5a443a('0x9b6')]()});});}function _0x149804(_0x107ff1){const _0x536e94=_0x32f454;_0x59dde3[_0x536e94('0x73e')]=[];const _0x49a113=_0x26d6cc[_0x536e94('0x1121')]()[_0x536e94('0x24d3')](_0x536e94('0x530'))['content'](_0x536e94('0x196c'))['ariaLabel'](_0x536e94('0xbcc'))['ok'](_0x536e94('0x304'))[_0x536e94('0x1d47')]('Cancel')[_0x536e94('0x104f')](_0x107ff1);_0x26d6cc[_0x536e94('0x28e2')](_0x49a113)[_0x536e94('0x17e7')](function(){const _0x449979=_0x536e94;_0x2cd84e[_0x449979('0x2395')][_0x449979('0x1da6')]({'id':_0x59dde3[_0x449979('0x2148')]['id']})[_0x449979('0x1af5')][_0x449979('0x17e7')](function(){const _0x3959b4=_0x449979;_0x49cbdd()[_0x3959b4('0x5f3')](_0x59dde3[_0x3959b4('0x27b4')],{'id':_0x59dde3[_0x3959b4('0x2148')]['id']}),_0x5e336d[_0x3959b4('0x130d')]({'title':_0x3959b4('0x23c'),'msg':(_0x59dde3[_0x3959b4('0x2148')][_0x3959b4('0x2aa')]||_0x3959b4('0x2148'))+_0x3959b4('0x149f')}),_0x24efb1(_0x59dde3[_0x3959b4('0x2148')]);})['catch'](function(_0x53f0b5){const _0x49c4eb=_0x449979;if(_0x53f0b5[_0x49c4eb('0x1457')]&&_0x53f0b5[_0x49c4eb('0x1457')][_0x49c4eb('0x73e')]&&_0x53f0b5[_0x49c4eb('0x1457')][_0x49c4eb('0x73e')][_0x49c4eb('0x1f73')]){_0x59dde3[_0x49c4eb('0x73e')]=_0x53f0b5[_0x49c4eb('0x1457')]['errors']||[{'message':_0x53f0b5[_0x49c4eb('0x9b6')](),'type':_0x49c4eb('0x1809')}];for(let _0x402040=0x0;_0x402040<_0x53f0b5[_0x49c4eb('0x1457')]['errors'][_0x49c4eb('0x1f73')];_0x402040++){_0x5e336d['error']({'title':_0x53f0b5[_0x49c4eb('0x1457')][_0x49c4eb('0x73e')][_0x402040][_0x49c4eb('0x412')],'msg':_0x53f0b5['data']['errors'][_0x402040]['message']});}}else _0x5e336d['error']({'title':_0x53f0b5['status']?_0x49c4eb('0x14f7')+_0x53f0b5['status']+'\x20-\x20'+_0x53f0b5['statusText']:_0x49c4eb('0x1809'),'msg':_0x53f0b5[_0x49c4eb('0x1457')]?JSON[_0x49c4eb('0x678')](_0x53f0b5[_0x49c4eb('0x1457')][_0x49c4eb('0x1603')]):_0x53f0b5[_0x49c4eb('0x1603')]||_0x53f0b5[_0x49c4eb('0x9b6')]()});});},function(){});}function _0x1ac7e4(_0x1d5369){return _0x1d5369===null?undefined:new Date(_0x1d5369);}function _0x24efb1(_0xc8c396){const _0x1f96c0=_0x32f454;_0x26d6cc[_0x1f96c0('0x212a')](_0xc8c396);}}const _0x5a84f1=_0x284ecd;_0x3dd3ce[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x2148'),'$translate',_0x4376d8('0xef1'),_0x4376d8('0x1885'),'crudPermissions'];function _0x3dd3ce(_0x13c53c,_0x41d38a,_0x1eef64,_0x26d354,_0x422eb0,_0x18245d,_0x17efe3,_0x8ed6d1,_0x15bca8){const _0x50fe58=_0x4376d8,_0x45065e=this;_0x45065e[_0x50fe58('0x197c')]=_0x8ed6d1['getCurrentUser'](),_0x45065e[_0x50fe58('0x2148')]=_0x422eb0,_0x45065e['crudPermissions']=_0x15bca8,_0x45065e['apiRoute']='voiceQueue',_0x45065e['getApi']=_0x50fe58('0x170'),_0x45065e[_0x50fe58('0xed')]=_0x50fe58('0x2238'),_0x45065e[_0x50fe58('0x27c')]='removeBlackLists',_0x45065e['items']=[],_0x45065e['allowedItems']=[],_0x45065e[_0x50fe58('0xc14')]=[],_0x45065e['startingAllowedItems']=[],_0x45065e['startingSelectedItems']=[],_0x45065e[_0x50fe58('0x25dc')]=![],_0x45065e[_0x50fe58('0x782')]=![],_0x45065e['dualMultiselectOptions']={'readOnly':!_0x45065e[_0x50fe58('0x103e')][_0x50fe58('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x50fe58('0x2aa'),'line1':'name','line2':'','line3':'','labelAll':_0x18245d['instant'](_0x50fe58('0x21a3')),'labelSelected':_0x18245d[_0x50fe58('0x1acc')](_0x50fe58('0xd54')),'transferCallback':function(){const _0x233132=_0x50fe58,_0x20b6a4=_0x49cbdd()[_0x233132('0x137')](_0x45065e[_0x233132('0x1824')],_0x45065e[_0x233132('0xc14')],'id');_0x45065e[_0x233132('0x25dc')]=_0x49cbdd()[_0x233132('0x109a')](_0x20b6a4)?![]:!![];}},_0x45065e[_0x50fe58('0xdf0')]=_0x14bc14,_0x45065e[_0x50fe58('0xc8')]=_0x2aad43,_0x45065e['closeDialog']=_0x3e3a2a;function _0x14bc14(){const _0x2681c2=_0x50fe58;return _0x8ed6d1[_0x2681c2('0x1ba2')]('admin')?_0x4dcd09()[_0x2681c2('0x16df')](function(_0x444867){const _0x34995b=_0x2681c2;_0x1eef64[_0x34995b('0x1db9')]({'title':_0x444867[_0x34995b('0x11c5')]?_0x34995b('0x14f7')+_0x444867[_0x34995b('0x11c5')]+'\x20-\x20'+_0x444867[_0x34995b('0x1833')]:_0x34995b('0x1040'),'msg':_0x444867[_0x34995b('0x11c5')]?JSON[_0x34995b('0x678')](_0x444867['data']):_0x444867['toString']()});}):_0x19e2e9()[_0x2681c2('0x17e7')](function(_0x34c885){const _0x4067ea=_0x2681c2;return _0x45065e[_0x4067ea('0x16f8')]=_0x34c885,_0x4dcd09();})[_0x2681c2('0x16df')](function(_0x87896a){const _0x31b245=_0x2681c2;_0x1eef64[_0x31b245('0x1db9')]({'title':_0x87896a['status']?'API:'+_0x87896a[_0x31b245('0x11c5')]+'\x20-\x20'+_0x87896a[_0x31b245('0x1833')]:'SYSTEM:GETLISTS','msg':_0x87896a[_0x31b245('0x11c5')]?JSON[_0x31b245('0x678')](_0x87896a[_0x31b245('0x1457')]):_0x87896a[_0x31b245('0x9b6')]()});});}function _0x19e2e9(){return _0x41d38a(function(_0x4713b6,_0x314d29){const _0x5116fc=a0_0xd29e;_0x26d354[_0x5116fc('0x383')][_0x5116fc('0x1c53')]({'userProfileId':_0x45065e['currentUser'][_0x5116fc('0x1e76')],'name':_0x5116fc('0xeee')})[_0x5116fc('0x1af5')][_0x5116fc('0x17e7')](function(_0x5b8415){const _0x542bc7=_0x5116fc,_0x28c2f1=_0x5b8415&&_0x5b8415[_0x542bc7('0x2319')]?_0x5b8415['rows'][0x0]:null;_0x4713b6(_0x28c2f1);})['catch'](function(_0x5cd7d0){_0x314d29(_0x5cd7d0);});});}function _0x4dcd09(){return _0x41d38a(function(_0x3268fa,_0x392996){const _0x1299d7=a0_0xd29e;return _0x4145e2()['then'](function(_0x1f3ab7){const _0x5b029c=a0_0xd29e;return _0x45065e[_0x5b029c('0x532')]=_0x1f3ab7[_0x5b029c('0x2319')]?_0x1f3ab7[_0x5b029c('0x2319')]:[],_0x8ed6d1['hasRole'](_0x5b029c('0x20bf'))?_0x1f3ab7:_0x45065e[_0x5b029c('0x16f8')]?_0x45065e['section'][_0x5b029c('0x9e3')]?_0x1f3ab7:_0x9404():null;})[_0x1299d7('0x17e7')](function(_0x414a6f){const _0x4f035e=_0x1299d7,_0x26f6a1=_0x414a6f&&_0x414a6f[_0x4f035e('0x2319')]?_0x414a6f[_0x4f035e('0x2319')]:[];return _0x45065e[_0x4f035e('0x2722')]=_0x49cbdd()[_0x4f035e('0x787')](_0x26f6a1,function(_0x5e1da0){const _0x65ad0d=_0x4f035e;return _0x49cbdd()['find'](_0x45065e['items'],{'id':_0x8ed6d1[_0x65ad0d('0x1ba2')](_0x65ad0d('0x20bf'))||_0x45065e['section'][_0x65ad0d('0x9e3')]?_0x5e1da0['id']:_0x5e1da0[_0x65ad0d('0x5db')]});}),_0x45065e[_0x4f035e('0x181b')]=angular['copy'](_0x45065e[_0x4f035e('0x2722')]),_0x45065e[_0x4f035e('0x532')][_0x4f035e('0xccd')](function(_0x5c27d6){const _0x2a65fa=_0x4f035e,_0x379f28=_0x49cbdd()['find'](_0x45065e[_0x2a65fa('0x2722')],{'id':_0x5c27d6['id']});_0x45065e['currentUser']['role']==='admin'?_0x5c27d6['isValid']=!![]:_0x5c27d6['isValid']=typeof _0x379f28!==_0x2a65fa('0xfad')?!![]:![];}),_0x5ba677();})[_0x1299d7('0x17e7')](function(_0x2fa3dd){const _0x173cb9=_0x1299d7,_0x4e6b32=_0x2fa3dd&&_0x2fa3dd[_0x173cb9('0x2319')]?_0x2fa3dd[_0x173cb9('0x2319')]:[];_0x45065e['selectedItems']=_0x49cbdd()[_0x173cb9('0x787')](_0x4e6b32,function(_0x2e7704){const _0x1e57f6=_0x173cb9;return _0x49cbdd()[_0x1e57f6('0xe8e')](_0x45065e[_0x1e57f6('0x532')],{'id':_0x2e7704['id']});}),_0x45065e[_0x173cb9('0x1824')]=angular[_0x173cb9('0x14e5')](_0x45065e[_0x173cb9('0xc14')]),_0x45065e[_0x173cb9('0x26f4')][_0x173cb9('0xc14')]=_0x45065e[_0x173cb9('0xc14')],_0x45065e['dualMultiselectOptions'][_0x173cb9('0x532')]=_0x49cbdd()[_0x173cb9('0x1ada')](_0x45065e[_0x173cb9('0x2722')],_0x45065e[_0x173cb9('0x26f4')][_0x173cb9('0xc14')],'id'),_0x3268fa();})['catch'](function(_0x3250c2){_0x392996(_0x3250c2);});});}function _0x9404(){return _0x41d38a(function(_0x5f2094,_0x5efc){const _0x2a8355=a0_0xd29e;return _0x26d354[_0x2a8355('0x78d')][_0x2a8355('0x1c53')]({'sectionId':_0x45065e[_0x2a8355('0x16f8')]['id'],'nolimit':!![]})[_0x2a8355('0x1af5')][_0x2a8355('0x17e7')](function(_0x332592){_0x5f2094(_0x332592);})[_0x2a8355('0x16df')](function(_0x50be41){_0x5efc(_0x50be41);});});}function _0x5ba677(){return _0x41d38a(function(_0x4fe9b1,_0x13ec7f){const _0x57340c=a0_0xd29e,_0x5583b9=_0x26d354[_0x45065e[_0x57340c('0x714')]];return _0x5583b9[_0x45065e[_0x57340c('0x27a0')]]({'id':_0x45065e[_0x57340c('0x2148')]['id'],'fields':_0x57340c('0x12d2'),'nolimit':!![]})[_0x57340c('0x1af5')][_0x57340c('0x17e7')](function(_0xdadb2e){_0x4fe9b1(_0xdadb2e);})[_0x57340c('0x16df')](function(_0x736687){_0x13ec7f(_0x736687);});});}function _0x4145e2(){return _0x41d38a(function(_0x11c067,_0x31fc6c){const _0x25eced=a0_0xd29e;return _0x26d354['cmList']['get']({'fields':_0x25eced('0x12d2'),'nolimit':!![]})[_0x25eced('0x1af5')][_0x25eced('0x17e7')](function(_0x53126c){_0x11c067(_0x53126c);})[_0x25eced('0x16df')](function(_0x2da994){_0x31fc6c(_0x2da994);});});}function _0x12a566(_0x20e0f1){return _0x41d38a(function(_0x4beef8,_0x44aed1){const _0x157d9c=a0_0xd29e;if(_0x49cbdd()[_0x157d9c('0x109a')](_0x20e0f1))_0x4beef8();else{const _0x27e7c7=_0x26d354[_0x45065e[_0x157d9c('0x714')]];_0x27e7c7[_0x45065e[_0x157d9c('0xed')]]({'id':_0x45065e['ivrCampaign']['id'],'ids':_0x49cbdd()[_0x157d9c('0x787')](_0x20e0f1,'id')})[_0x157d9c('0x1af5')][_0x157d9c('0x17e7')](function(){_0x4beef8();})[_0x157d9c('0x16df')](function(_0x472969){_0x44aed1(_0x472969);});}});}function _0x5be42e(_0x3b76dd){return _0x41d38a(function(_0x3043f7,_0x12c52d){const _0x2e8645=a0_0xd29e;if(_0x49cbdd()['isEmpty'](_0x3b76dd))_0x3043f7();else{const _0x459ef2=_0x26d354[_0x45065e[_0x2e8645('0x714')]];_0x459ef2[_0x45065e[_0x2e8645('0x27c')]]({'id':_0x45065e[_0x2e8645('0x2148')]['id'],'ids':_0x49cbdd()['map'](_0x3b76dd,'id')})[_0x2e8645('0x1af5')][_0x2e8645('0x17e7')](function(){_0x3043f7();})['catch'](function(_0x52e91c){_0x12c52d(_0x52e91c);});}});}function _0x2aad43(){const _0x29cb20=_0x50fe58;_0x45065e['loading']=!![];const _0x396972=_0x49cbdd()[_0x29cb20('0x1ada')](_0x45065e[_0x29cb20('0x1824')],_0x45065e[_0x29cb20('0xc14')],'id'),_0x5c83a3=_0x49cbdd()[_0x29cb20('0x1ada')](_0x45065e['selectedItems'],_0x45065e[_0x29cb20('0x1824')],'id');return _0x5be42e(_0x396972)[_0x29cb20('0x17e7')](function(){return _0x12a566(_0x5c83a3);})[_0x29cb20('0x17e7')](function(){const _0x15c14e=_0x29cb20;_0x45065e[_0x15c14e('0x25dc')]=![],_0x45065e[_0x15c14e('0x181b')]=angular[_0x15c14e('0x14e5')](_0x45065e[_0x15c14e('0x2722')]),_0x45065e[_0x15c14e('0x1824')]=angular['copy'](_0x45065e['selectedItems']),_0x1eef64[_0x15c14e('0x130d')]({'title':_0x15c14e('0x9d1'),'msg':_0x15c14e('0x1611')});})['catch'](function(_0x31a496){const _0x525842=_0x29cb20;_0x1eef64[_0x525842('0x1db9')]({'title':_0x31a496[_0x525842('0x11c5')]?_0x525842('0x14f7')+_0x31a496[_0x525842('0x11c5')]+_0x525842('0x16e4')+_0x31a496[_0x525842('0x1833')]:_0x525842('0x244e'),'msg':_0x31a496[_0x525842('0x11c5')]?JSON['stringify'](_0x31a496[_0x525842('0x1457')]):_0x31a496['toString']()});})['finally'](function(){const _0x594979=_0x29cb20;_0x45065e[_0x594979('0x782')]=![];});}function _0x3e3a2a(){const _0x1cd298=_0x50fe58;_0x13c53c[_0x1cd298('0x212a')]();}}const _0x31cc92=_0x3dd3ce;_0x1eff1f[_0x4376d8('0x1b9c')]=['$mdDialog',_0x4376d8('0xc4c'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'ivrCampaign',_0x4376d8('0x27b4'),'$translate'];function _0x1eff1f(_0x3ba65b,_0x2768fb,_0x92fdd4,_0x29a11f,_0x1947ff,_0x4e1c7,_0x49feb4){const _0x4655ec=_0x4376d8,_0x19ea81=this;_0x19ea81[_0x4655ec('0x1d10')]=!![],_0x19ea81[_0x4655ec('0x2148')]=angular[_0x4655ec('0x14e5')](_0x1947ff),_0x19ea81[_0x4655ec('0x27b4')]=_0x4e1c7,_0x19ea81[_0x4655ec('0x24d3')]=_0x49feb4[_0x4655ec('0x1acc')](_0x4655ec('0x285b'));_0x1947ff&&_0x1947ff[_0x4655ec('0x2aa')]&&(_0x19ea81['title']+=':\x20'+_0x1947ff[_0x4655ec('0x2aa')]);_0x19ea81[_0x4655ec('0xbee')]=_0x3c12e7,_0x19ea81[_0x4655ec('0x136e')]=_0x53c649;function _0x3c12e7(){const _0x413d85=_0x4655ec;return _0x29a11f[_0x413d85('0x2395')][_0x413d85('0x2080')]({'id':_0x1947ff['id']},_0x19ea81[_0x413d85('0x2148')])[_0x413d85('0x1af5')][_0x413d85('0x17e7')](function(_0x4a651e){const _0x3ffdfc=_0x413d85;_0x19ea81[_0x3ffdfc('0x27b4')][_0x3ffdfc('0x1893')](_0x4a651e[_0x3ffdfc('0x16b2')]()),_0x92fdd4['success']({'title':'IvrCampaign\x20properly\x20cloned','msg':_0x19ea81[_0x3ffdfc('0x2148')][_0x3ffdfc('0x2aa')]?_0x19ea81['ivrCampaign'][_0x3ffdfc('0x2aa')]+_0x3ffdfc('0x22c9'):''}),_0x2768fb['go'](_0x3ffdfc('0x1a91'),{'id':_0x4a651e['id']}),_0x53c649(_0x4a651e);})[_0x413d85('0x16df')](function(_0x17e0e3){const _0x35bd4d=_0x413d85;if(_0x17e0e3[_0x35bd4d('0x1457')]&&_0x17e0e3[_0x35bd4d('0x1457')]['errors']&&_0x17e0e3[_0x35bd4d('0x1457')][_0x35bd4d('0x73e')][_0x35bd4d('0x1f73')]){_0x19ea81['errors']=_0x17e0e3[_0x35bd4d('0x1457')][_0x35bd4d('0x73e')]||[{'message':_0x17e0e3[_0x35bd4d('0x9b6')](),'type':_0x35bd4d('0x2262')}];for(let _0x26496c=0x0;_0x26496c<_0x17e0e3[_0x35bd4d('0x1457')][_0x35bd4d('0x73e')][_0x35bd4d('0x1f73')];_0x26496c+=0x1){_0x92fdd4[_0x35bd4d('0x1db9')]({'title':_0x17e0e3[_0x35bd4d('0x1457')]['errors'][_0x26496c][_0x35bd4d('0x412')],'msg':_0x17e0e3[_0x35bd4d('0x1457')]['errors'][_0x26496c][_0x35bd4d('0x1603')]});}}else _0x92fdd4[_0x35bd4d('0x1db9')]({'title':_0x17e0e3[_0x35bd4d('0x11c5')]?_0x35bd4d('0x14f7')+_0x17e0e3[_0x35bd4d('0x11c5')]+_0x35bd4d('0x16e4')+_0x17e0e3['statusText']:_0x35bd4d('0x2262'),'msg':_0x17e0e3['data']?JSON[_0x35bd4d('0x678')](_0x17e0e3[_0x35bd4d('0x1457')]['message']):_0x17e0e3[_0x35bd4d('0x9b6')]()});});}function _0x53c649(_0x6d539d){const _0x2e0b53=_0x4655ec;_0x3ba65b[_0x2e0b53('0x212a')](_0x6d539d);}}const _0x3ce944=_0x1eff1f;_0x15a531['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),_0x4376d8('0xef1'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'toasty','api',_0x4376d8('0x1885')];function _0x15a531(_0x190c31,_0x585347,_0x1f20e4,_0x560843,_0x7dd415,_0x453a34,_0x1a8e22,_0xef45c7,_0x8c6bca,_0x3a053d,_0x5317ba){const _0x1034ca=_0x4376d8,_0x18f354=this;_0x18f354[_0x1034ca('0x197c')]=_0x5317ba[_0x1034ca('0x2831')](),_0x18f354[_0x1034ca('0x2148')]={},_0x18f354[_0x1034ca('0xe03')]={'count':0x0,'rows':[]},_0x18f354[_0x1034ca('0xceb')]=[],_0x18f354[_0x1034ca('0x103e')],_0x18f354[_0x1034ca('0x826')]={'fields':_0x1034ca('0x2476'),'sort':'-id','limit':0xa,'page':0x1},_0x18f354[_0x1034ca('0x161d')]=_0x342742,_0x18f354['deleteConfirm']=_0x47884f,_0x18f354[_0x1034ca('0x130d')]=_0x203b1d,_0x18f354[_0x1034ca('0x132b')]=_0x145ea6,_0x18f354[_0x1034ca('0x41d')]=_0x119ef4,_0x18f354['deleteIvrCampaignHopperBlack']=_0x999632,_0x18f354['deleteSelectedIvrCampaignHopperBlacks']=_0x12d0dc;function _0x342742(_0x447981,_0x4c91f9){const _0x301324=_0x1034ca;_0x18f354[_0x301324('0x2148')]=_0x447981,_0x18f354[_0x301324('0x103e')]=typeof _0x4c91f9!==_0x301324('0xfad')?_0x4c91f9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x18f354[_0x301324('0x826')][_0x301324('0x23b7')]=_0x18f354[_0x301324('0x2148')]['id'],_0x18f354[_0x301324('0x826')]['id']=_0x18f354[_0x301324('0x2148')]['id'],_0x145ea6();}function _0x47884f(_0x38b3e1,_0x4a2ddc){const _0x1bd371=_0x1034ca,_0x30c98e=_0x1a8e22['confirm']()[_0x1bd371('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20hopperBlack?')['htmlContent'](_0x1bd371('0xa53')+(_0x38b3e1[_0x1bd371('0x2aa')]||_0x38b3e1['id']&&_0x49cbdd()['upperFirst'](_0x1bd371('0x16ab'))+_0x38b3e1['id']||_0x1bd371('0x2618'))+_0x1bd371('0x1d23')+_0x1bd371('0xe9f'))[_0x1bd371('0x2095')](_0x1bd371('0x1483'))[_0x1bd371('0x104f')](_0x4a2ddc)['ok']('OK')['cancel'](_0x1bd371('0x28a0'));_0x1a8e22[_0x1bd371('0x28e2')](_0x30c98e)[_0x1bd371('0x17e7')](function(){_0x999632(_0x38b3e1);},function(){const _0x56a3ea=_0x1bd371;console['log'](_0x56a3ea('0x28a0'));});}function _0x203b1d(_0x5f3e54){const _0x3904cb=_0x1034ca;_0x18f354[_0x3904cb('0xe03')]=_0x5f3e54||{'count':0x0,'rows':[]};}function _0x145ea6(){const _0x5476bc=_0x1034ca;_0x18f354[_0x5476bc('0x826')]['offset']=(_0x18f354[_0x5476bc('0x826')][_0x5476bc('0x115a')]-0x1)*_0x18f354[_0x5476bc('0x826')][_0x5476bc('0x193b')],_0x18f354[_0x5476bc('0x1691')]=_0x3a053d[_0x5476bc('0x2395')][_0x5476bc('0x59a')](_0x18f354[_0x5476bc('0x826')],_0x203b1d)['$promise'];}function _0x999632(_0x5e001b){const _0x5c952d=_0x1034ca;_0x3a053d[_0x5c952d('0x2618')][_0x5c952d('0x1da6')]({'id':_0x5e001b['id']})[_0x5c952d('0x1af5')][_0x5c952d('0x17e7')](function(){const _0x27536a=_0x5c952d;_0x49cbdd()[_0x27536a('0x5f3')](_0x18f354[_0x27536a('0xe03')][_0x27536a('0x2319')],{'id':_0x5e001b['id']}),_0x18f354['ivrCampaignHopperBlacks']['count']-=0x1,!_0x18f354[_0x27536a('0xe03')][_0x27536a('0x2319')][_0x27536a('0x1f73')]&&_0x145ea6(),_0x8c6bca['success']({'title':_0x27536a('0x77'),'msg':_0x5e001b[_0x27536a('0x2aa')]?_0x5e001b[_0x27536a('0x2aa')]+_0x27536a('0x149f'):''});})[_0x5c952d('0x16df')](function(_0x148a56){const _0x1648a0=_0x5c952d;if(_0x148a56[_0x1648a0('0x1457')]&&_0x148a56[_0x1648a0('0x1457')][_0x1648a0('0x73e')]&&_0x148a56[_0x1648a0('0x1457')][_0x1648a0('0x73e')][_0x1648a0('0x1f73')]){_0x18f354[_0x1648a0('0x73e')]=_0x148a56['data']['errors']||[{'message':_0x148a56['toString'](),'type':_0x1648a0('0x2146')}];for(let _0x145447=0x0;_0x145447<_0x148a56[_0x1648a0('0x1457')][_0x1648a0('0x73e')][_0x1648a0('0x1f73')];_0x145447++){_0x8c6bca[_0x1648a0('0x1db9')]({'title':_0x148a56[_0x1648a0('0x1457')][_0x1648a0('0x73e')][_0x145447]['type'],'msg':_0x148a56[_0x1648a0('0x1457')][_0x1648a0('0x73e')][_0x145447]['message']});}}else _0x8c6bca['error']({'title':_0x148a56['status']?_0x1648a0('0x14f7')+_0x148a56[_0x1648a0('0x11c5')]+_0x1648a0('0x16e4')+_0x148a56[_0x1648a0('0x1833')]:_0x1648a0('0x2146'),'msg':_0x148a56[_0x1648a0('0x1457')]?JSON[_0x1648a0('0x678')](_0x148a56[_0x1648a0('0x1457')][_0x1648a0('0x1603')]):_0x148a56['message']||_0x148a56[_0x1648a0('0x9b6')]()});});}function _0x119ef4(){const _0x5ad1fa=_0x1034ca,_0x1d02e7=angular[_0x5ad1fa('0x14e5')](_0x18f354[_0x5ad1fa('0xceb')]);return _0x18f354['selectedIvrCampaignHopperBlacks']=[],_0x1d02e7;}function _0x12d0dc(_0x20a2de){const _0x4bdd60=_0x1034ca,_0x192c5e=_0x1a8e22['confirm']()['title'](_0x4bdd60('0x26b8'))[_0x4bdd60('0x211f')](_0x4bdd60('0xa53')+_0x18f354[_0x4bdd60('0xceb')][_0x4bdd60('0x1f73')]+'\x20selected'+_0x4bdd60('0xe9f'))['ariaLabel']('delete\x20hopperBlacks')[_0x4bdd60('0x104f')](_0x20a2de)['ok']('OK')[_0x4bdd60('0x1d47')]('CANCEL');_0x1a8e22[_0x4bdd60('0x28e2')](_0x192c5e)[_0x4bdd60('0x17e7')](function(){const _0x450a58=_0x4bdd60;_0x18f354[_0x450a58('0xceb')][_0x450a58('0xccd')](function(_0x21e70c){_0x999632(_0x21e70c);}),_0x18f354['selectedIvrCampaignHopperBlacks']=[];});}let _0x473a5e=!![],_0x6fee7c=0x1;_0x585347[_0x1034ca('0x620')]('vm_dc.query.filter',function(_0x42f073,_0x31dbc0){const _0x10b2c5=_0x1034ca;_0x473a5e?_0x453a34(function(){_0x473a5e=![];}):(!_0x31dbc0&&(_0x6fee7c=_0x18f354['query'][_0x10b2c5('0x115a')]),_0x42f073!==_0x31dbc0&&(_0x18f354[_0x10b2c5('0x826')][_0x10b2c5('0x115a')]=0x1),!_0x42f073&&(_0x18f354['query'][_0x10b2c5('0x115a')]=_0x6fee7c),_0x145ea6());});}const _0x441456=_0x15a531;_0x1ab381['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x108a'),'api',_0x4376d8('0x1885')];function _0x1ab381(_0x3394e5,_0x13ad34,_0xe873ba,_0x4771c5,_0x4bc2b3,_0x39f7b3,_0x9f1cb0,_0x55f219,_0x3a84c4,_0x24cb23,_0x1a380e){const _0x1ddc97=_0x4376d8,_0x1f23a8=this;_0x1f23a8[_0x1ddc97('0x197c')]=_0x1a380e['getCurrentUser'](),_0x1f23a8[_0x1ddc97('0x2720')]={},_0x1f23a8['ivrCampaign']={},_0x1f23a8[_0x1ddc97('0x186e')]={'count':0x0,'rows':[]},_0x1f23a8[_0x1ddc97('0x1e9b')]=[],_0x1f23a8[_0x1ddc97('0x103e')],_0x1f23a8[_0x1ddc97('0x826')]={'fields':_0x1ddc97('0xae8'),'sort':_0x1ddc97('0x1bf2'),'limit':0xa,'page':0x1},_0x1f23a8[_0x1ddc97('0x161d')]=_0x3ae66e,_0x1f23a8[_0x1ddc97('0x1a20')]=_0x28bc1c,_0x1f23a8[_0x1ddc97('0x130d')]=_0x50e8a4,_0x1f23a8['getIvrCampaignHopperFinals']=_0x3ae3bd,_0x1f23a8[_0x1ddc97('0x2253')]=_0x2d8e42,_0x1f23a8['deleteIvrCampaignHopperFinal']=_0x1e860c,_0x1f23a8['deleteSelectedIvrCampaignHopperFinals']=_0x2f9291,_0x1f23a8['moveIvrCampaignHopperFinal']=_0x415229,_0x1f23a8[_0x1ddc97('0x23fc')]=_0x42dc34,_0x1f23a8[_0x1ddc97('0x977')]=_0xa86865,_0x1f23a8[_0x1ddc97('0x1adc')]=_0x2c7a21,_0x1f23a8[_0x1ddc97('0x2469')]=_0x466a81;function _0x3ae66e(_0x3a7821,_0x1a516a){const _0x544080=_0x1ddc97;_0x1f23a8[_0x544080('0x2148')]=_0x3a7821,_0x1f23a8['crudPermissions']=typeof _0x1a516a!=='undefined'?_0x1a516a:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x1f23a8[_0x544080('0x826')][_0x544080('0x23b7')]=_0x1f23a8[_0x544080('0x2148')]['id'],_0x1f23a8[_0x544080('0x826')]['id']=_0x1f23a8[_0x544080('0x2148')]['id'],_0x3ae3bd();}function _0x28bc1c(_0x36ec70,_0x4fd4c1){const _0x5e92a2=_0x1ddc97,_0x3ae4d8=_0x9f1cb0[_0x5e92a2('0x1121')]()['title'](_0x5e92a2('0xd52'))[_0x5e92a2('0x211f')](_0x5e92a2('0xa53')+(_0x36ec70[_0x5e92a2('0x2aa')]||_0x36ec70['id']&&_0x49cbdd()[_0x5e92a2('0x233c')](_0x5e92a2('0xd65'))+_0x36ec70['id']||_0x5e92a2('0x19d'))+''+_0x5e92a2('0xe9f'))['ariaLabel'](_0x5e92a2('0x123'))[_0x5e92a2('0x104f')](_0x4fd4c1)['ok']('OK')[_0x5e92a2('0x1d47')](_0x5e92a2('0x28a0'));_0x9f1cb0[_0x5e92a2('0x28e2')](_0x3ae4d8)['then'](function(){_0x1e860c(_0x36ec70);},function(){const _0x5e89fb=_0x5e92a2;console['log'](_0x5e89fb('0x28a0'));});}function _0x50e8a4(_0xcee3df){const _0x41e635=_0x1ddc97;_0x1f23a8[_0x41e635('0x186e')]=_0xcee3df||{'count':0x0,'rows':[]};}function _0x3ae3bd(){const _0x259c95=_0x1ddc97;_0x1f23a8[_0x259c95('0x826')]['offset']=(_0x1f23a8['query']['page']-0x1)*_0x1f23a8['query']['limit'],_0x1f23a8[_0x259c95('0x1691')]=_0x24cb23[_0x259c95('0x2395')][_0x259c95('0x1ee6')](_0x1f23a8['query'],_0x50e8a4)[_0x259c95('0x1af5')];}function _0x1e860c(_0x5371ba){const _0x43365a=_0x1ddc97;_0x24cb23[_0x43365a('0x19d')][_0x43365a('0x1da6')]({'id':_0x5371ba['id']})[_0x43365a('0x1af5')]['then'](function(){const _0x2ae7ac=_0x43365a;_0x49cbdd()['remove'](_0x1f23a8[_0x2ae7ac('0x186e')][_0x2ae7ac('0x2319')],{'id':_0x5371ba['id']}),_0x1f23a8[_0x2ae7ac('0x186e')][_0x2ae7ac('0x335')]-=0x1,!_0x1f23a8['ivrCampaignHopperFinals'][_0x2ae7ac('0x2319')][_0x2ae7ac('0x1f73')]&&_0x3ae3bd(),_0x3a84c4[_0x2ae7ac('0x130d')]({'title':_0x2ae7ac('0x78a'),'msg':_0x5371ba[_0x2ae7ac('0x2aa')]?_0x5371ba[_0x2ae7ac('0x2aa')]+_0x2ae7ac('0x149f'):''});})[_0x43365a('0x16df')](function(_0x1c9d71){const _0x2181ee=_0x43365a;if(_0x1c9d71[_0x2181ee('0x1457')]&&_0x1c9d71[_0x2181ee('0x1457')][_0x2181ee('0x73e')]&&_0x1c9d71['data'][_0x2181ee('0x73e')][_0x2181ee('0x1f73')]){_0x1f23a8[_0x2181ee('0x73e')]=_0x1c9d71[_0x2181ee('0x1457')][_0x2181ee('0x73e')]||[{'message':_0x1c9d71[_0x2181ee('0x9b6')](),'type':_0x2181ee('0x2146')}];for(let _0x293c54=0x0;_0x293c54<_0x1c9d71[_0x2181ee('0x1457')][_0x2181ee('0x73e')][_0x2181ee('0x1f73')];_0x293c54++){_0x3a84c4[_0x2181ee('0x1db9')]({'title':_0x1c9d71[_0x2181ee('0x1457')][_0x2181ee('0x73e')][_0x293c54][_0x2181ee('0x412')],'msg':_0x1c9d71[_0x2181ee('0x1457')][_0x2181ee('0x73e')][_0x293c54]['message']});}}else _0x3a84c4[_0x2181ee('0x1db9')]({'title':_0x1c9d71[_0x2181ee('0x11c5')]?'API:'+_0x1c9d71[_0x2181ee('0x11c5')]+_0x2181ee('0x16e4')+_0x1c9d71[_0x2181ee('0x1833')]:_0x2181ee('0x2146'),'msg':_0x1c9d71['data']?JSON[_0x2181ee('0x678')](_0x1c9d71[_0x2181ee('0x1457')]['message']):_0x1c9d71[_0x2181ee('0x1603')]||_0x1c9d71[_0x2181ee('0x9b6')]()});});}function _0x2d8e42(){const _0x4f8c09=_0x1ddc97,_0x3de9f4=angular['copy'](_0x1f23a8[_0x4f8c09('0x1e9b')]);return _0x1f23a8['selectedIvrCampaignHopperFinals']=[],_0x3de9f4;}function _0x2f9291(_0x463a32){const _0x1441d4=_0x1ddc97,_0x213242=_0x9f1cb0[_0x1441d4('0x1121')]()[_0x1441d4('0x24d3')](_0x1441d4('0x56e'))[_0x1441d4('0x211f')](_0x1441d4('0xa53')+_0x1f23a8[_0x1441d4('0x1e9b')][_0x1441d4('0x1f73')]+_0x1441d4('0x145a')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x1441d4('0x173b'))[_0x1441d4('0x104f')](_0x463a32)['ok']('OK')[_0x1441d4('0x1d47')]('CANCEL');_0x9f1cb0['show'](_0x213242)[_0x1441d4('0x17e7')](function(){const _0x51119a=_0x1441d4;_0x1f23a8[_0x51119a('0x1e9b')][_0x51119a('0xccd')](function(_0x19e97d){_0x1e860c(_0x19e97d);}),_0x1f23a8[_0x51119a('0x1e9b')]=[];});}function _0x42dc34(_0x390edf){const _0x41b268=_0x1ddc97;_0x24cb23[_0x41b268('0x255c')]['moveContactsIvrCampaignHopperFinal']({'id':_0x1f23a8[_0x41b268('0x826')]['id'],'state':_0x390edf})['$promise'][_0x41b268('0x17e7')](function(_0x515182){const _0x32b1c=_0x41b268;_0x49cbdd()['isNil'](_0x515182)&&_0x49cbdd()[_0x32b1c('0x390')](_0x515182[0x0])?_0x3a84c4[_0x32b1c('0x1178')]({'title':_0x32b1c('0x1628'),'msg':'0'}):_0x3a84c4[_0x32b1c('0x1178')]({'title':'Restored\x20Contacts','msg':JSON[_0x32b1c('0x678')](_0x515182[0x0][_0x32b1c('0x13ba')])});})[_0x41b268('0x16df')](function(_0x38f776){const _0x5bdfcd=_0x41b268;_0x3a84c4[_0x5bdfcd('0x1db9')]({'title':_0x38f776[_0x5bdfcd('0x11c5')]?_0x5bdfcd('0x14f7')+_0x38f776[_0x5bdfcd('0x11c5')]+_0x5bdfcd('0x16e4')+_0x38f776['statusText']:_0x5bdfcd('0x21ab'),'msg':_0x38f776['data']?JSON['stringify'](_0x38f776[_0x5bdfcd('0x1457')]['message']):_0x38f776['message']||_0x38f776[_0x5bdfcd('0x9b6')]()});});}function _0xa86865(_0x1cbf9d){const _0x35081b=_0x1ddc97;_0x24cb23['cmHopperFinal'][_0x35081b('0x977')]({'id':_0x1cbf9d})[_0x35081b('0x1af5')][_0x35081b('0x17e7')](function(_0x14479b){const _0x5737b2=_0x35081b;_0x49cbdd()['merge'](_0x1f23a8[_0x5737b2('0x2720')],_0x14479b[0x0]);})[_0x35081b('0x16df')](function(_0x3ec7f5){const _0x3ba4da=_0x35081b;_0x3a84c4[_0x3ba4da('0x1db9')]({'title':_0x3ec7f5['status']?'API:'+_0x3ec7f5[_0x3ba4da('0x11c5')]+'\x20-\x20'+_0x3ec7f5[_0x3ba4da('0x1833')]:_0x3ba4da('0x2146'),'msg':_0x3ec7f5[_0x3ba4da('0x1457')]?JSON[_0x3ba4da('0x678')](_0x3ec7f5[_0x3ba4da('0x1457')]['message']):_0x3ec7f5[_0x3ba4da('0x1603')]||_0x3ec7f5[_0x3ba4da('0x9b6')]()});});}function _0x466a81(_0x4e0d6b){const _0x380696=_0x1ddc97,_0x29f831=_0x9f1cb0[_0x380696('0x1121')]()[_0x380696('0x24d3')](_0x380696('0x1d5c'))[_0x380696('0x211f')](_0x380696('0x1c75')+_0x380696('0x28bd'))[_0x380696('0x2095')]('Restore\x20Contacts')[_0x380696('0x104f')](_0x4e0d6b)['ok']('OK')['cancel']('CANCEL');_0x9f1cb0[_0x380696('0x28e2')](_0x29f831)[_0x380696('0x17e7')](function(){const _0xbf57a8=_0x380696;_0x1f23a8['selectedIvrCampaignHopperFinals']['forEach'](function(_0x39fb1b){_0x415229(_0x39fb1b);}),_0x1f23a8[_0xbf57a8('0x1e9b')]=[];});}function _0x2c7a21(_0x75510b,_0x2b51b1){const _0x48169e=_0x1ddc97,_0x5ea6f3=_0x9f1cb0[_0x48169e('0x1121')]()[_0x48169e('0x24d3')](_0x48169e('0x22ed'))[_0x48169e('0x211f')](_0x48169e('0xa53')+'Contact'+''+_0x48169e('0x28bd'))[_0x48169e('0x2095')]('Restore\x20Contact')[_0x48169e('0x104f')](_0x2b51b1)['ok']('OK')['cancel'](_0x48169e('0x28a0'));_0x9f1cb0['show'](_0x5ea6f3)['then'](function(){_0x415229(_0x75510b);},function(){const _0x524a3d=_0x48169e;console[_0x524a3d('0x1d63')](_0x524a3d('0x28a0'));});}function _0x2dddd2(_0x5daabe){const _0x298f36=_0x1ddc97,_0x3a02cf={};return _0x3a02cf['phone']=_0x5daabe[_0x298f36('0x2202')],_0x3a02cf[_0x298f36('0x2809')]=_0x107a13()()[_0x298f36('0x1c0d')](_0x298f36('0x1e17')),_0x3a02cf[_0x298f36('0x1a7')]=0x0,_0x3a02cf['countcongestionretry']=0x0,_0x3a02cf[_0x298f36('0xe85')]=0x0,_0x3a02cf[_0x298f36('0x23d7')]=0x0,_0x3a02cf['ContactId']=_0x5daabe['ContactId'],_0x3a02cf[_0x298f36('0x7f8')]=_0x5daabe[_0x298f36('0x7f8')],_0x3a02cf[_0x298f36('0x5e5')]=_0x5daabe[_0x298f36('0x2094')]?null:_0x5daabe[_0x298f36('0x5e5')],_0x3a02cf[_0x298f36('0x2803')]=_0x5daabe[_0x298f36('0x2803')],_0x3a02cf[_0x298f36('0x23b7')]=_0x5daabe['CampaignId'],_0x3a02cf[_0x298f36('0x1a6d')]=_0x5daabe[_0x298f36('0x229')]?0x3:0x2,_0x3a02cf[_0x298f36('0x229')]=_0x5daabe[_0x298f36('0x229')]?!![]:![],_0x3a02cf;}function _0x1acca2(_0x5ede3c){const _0x426574=_0x1ddc97,_0x4bd158={};return _0x4bd158[_0x426574('0x2202')]=_0x5ede3c[_0x426574('0x2202')],_0x4bd158[_0x426574('0x2400')]=_0x5ede3c[_0x426574('0x2400')],_0x4bd158[_0x426574('0x2809')]=_0x107a13()()[_0x426574('0x1c0d')](_0x426574('0x1e17')),_0x4bd158[_0x426574('0x1a7')]=_0x5ede3c[_0x426574('0x1a7')],_0x4bd158[_0x426574('0x26ed')]=_0x5ede3c['countcongestionretry'],_0x4bd158[_0x426574('0xe85')]=_0x5ede3c['countnoanswerretry'],_0x4bd158[_0x426574('0x23d7')]=_0x5ede3c[_0x426574('0x23d7')],_0x4bd158['ContactId']=_0x5ede3c[_0x426574('0x1e84')],_0x4bd158[_0x426574('0x7f8')]=_0x5ede3c[_0x426574('0x7f8')],_0x4bd158[_0x426574('0x5e5')]=_0x1a380e[_0x426574('0x2831')]()['id'],_0x4bd158[_0x426574('0x2803')]=_0x5ede3c[_0x426574('0x2803')],_0x4bd158[_0x426574('0x23b7')]=_0x5ede3c[_0x426574('0x23b7')],_0x4bd158[_0x426574('0x1902')]=_0x107a13()()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x4bd158[_0x426574('0x1c39')]=!![],_0x4bd158[_0x426574('0x1b9a')]=0x19,_0x4bd158[_0x426574('0xd53')]=_0x426574('0xbbe'),_0x4bd158[_0x426574('0x2395')]=_0x5ede3c['campaign'],_0x4bd158[_0x426574('0xac6')]=_0x5ede3c[_0x426574('0x2803')]?'queue':'ivr',_0x4bd158;}function _0x415229(_0x10b638){const _0x1402e7=_0x1ddc97;_0x24cb23[_0x1402e7('0x255c')][_0x1402e7('0x2829')](_0x10b638)[_0x1402e7('0x1af5')][_0x1402e7('0x17e7')](function(_0x11e5cb){const _0x54b499=_0x1402e7;_0x3a84c4[_0x54b499('0x1178')]({'title':_0x54b499('0x1fa0'),'msg':'Contact\x20ID\x20'+_0x11e5cb[_0x54b499('0x1e84')]});})[_0x1402e7('0x16df')](function(_0x4c4483){const _0x15cfd4=_0x1402e7;_0x4c4483[_0x15cfd4('0x1457')]===_0x15cfd4('0x423')?_0x24cb23[_0x15cfd4('0xf6a')][_0x15cfd4('0x2439')](_0x2dddd2(_0x10b638))[_0x15cfd4('0x1af5')][_0x15cfd4('0x17e7')](function(_0x42ee7d){const _0x5d24c0=_0x15cfd4;_0x3a84c4[_0x5d24c0('0x1178')]({'title':_0x5d24c0('0x15e7'),'msg':_0x5d24c0('0x1eb4')+_0x42ee7d['ContactId']}),_0x42ee7d['ContactId']&&_0x24cb23[_0x5d24c0('0x2231')]['save'](_0x1acca2(_0x10b638));})[_0x15cfd4('0x16df')](function(_0x569dbb){const _0x4ca2b1=_0x15cfd4;!_0x49cbdd()[_0x4ca2b1('0x390')](_0x569dbb[_0x4ca2b1('0x1457')])&&_0x569dbb[_0x4ca2b1('0x1457')][_0x4ca2b1('0x1603')]==='Validation\x20error'?_0x3a84c4[_0x4ca2b1('0x1178')]({'title':_0x4ca2b1('0x1fa0'),'msg':_0x4ca2b1('0x1eb4')+_0x10b638[_0x4ca2b1('0x1e84')]}):_0x3a84c4['error']({'title':_0x569dbb[_0x4ca2b1('0x11c5')]?'API:'+_0x569dbb[_0x4ca2b1('0x11c5')]+_0x4ca2b1('0x16e4')+_0x569dbb[_0x4ca2b1('0x1833')]:_0x4ca2b1('0x21ab'),'msg':_0x569dbb[_0x4ca2b1('0x1457')]?JSON[_0x4ca2b1('0x678')](_0x569dbb[_0x4ca2b1('0x1457')][_0x4ca2b1('0x1603')]):_0x569dbb[_0x4ca2b1('0x1603')]||_0x569dbb[_0x4ca2b1('0x9b6')]()});}):_0x3a84c4[_0x15cfd4('0x1db9')]({'title':_0x4c4483[_0x15cfd4('0x11c5')]?_0x15cfd4('0x14f7')+_0x4c4483[_0x15cfd4('0x11c5')]+_0x15cfd4('0x16e4')+_0x4c4483['statusText']:'SYSTEM:GETvoiceQueue','msg':_0x4c4483[_0x15cfd4('0x1457')]?JSON[_0x15cfd4('0x678')](_0x4c4483[_0x15cfd4('0x1457')][_0x15cfd4('0x1603')]):_0x4c4483[_0x15cfd4('0x1603')]||_0x4c4483['toString']()});});}let _0x2eef3a=!![],_0x58c19e=0x1;_0x13ad34[_0x1ddc97('0x620')](_0x1ddc97('0x4c3'),function(_0xd05ba4,_0x110524){const _0x42d115=_0x1ddc97;_0x2eef3a?_0x39f7b3(function(){_0x2eef3a=![];}):(!_0x110524&&(_0x58c19e=_0x1f23a8['query']['page']),_0xd05ba4!==_0x110524&&(_0x1f23a8['query']['page']=0x1),!_0xd05ba4&&(_0x1f23a8[_0x42d115('0x826')][_0x42d115('0x115a')]=_0x58c19e),_0x3ae3bd());});}const _0x117cd9=_0x1ab381;_0x2cb222[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q','$translate',_0x4376d8('0xef1'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x2cb222(_0x2dddf1,_0xd8a3ab,_0x3e4e5f,_0x41642c,_0x23a55d,_0xf05372,_0x253b29,_0x561f28,_0x536466,_0x5f06a7,_0x43b303){const _0x52cd71=_0x4376d8,_0x9e042f=this;_0x9e042f['currentUser']=_0x43b303[_0x52cd71('0x2831')](),_0x9e042f[_0x52cd71('0x2148')]={},_0x9e042f[_0x52cd71('0x1c2f')]={'count':0x0,'rows':[]},_0x9e042f['selectedIvrCampaignHopperHistories']=[],_0x9e042f['crudPermissions'],_0x9e042f['query']={'fields':_0x52cd71('0x913'),'sort':_0x52cd71('0x1bf2'),'limit':0xa,'page':0x1},_0x9e042f['init']=_0x3a6208,_0x9e042f['deleteConfirm']=_0x235c65,_0x9e042f[_0x52cd71('0x130d')]=_0x2fa01e,_0x9e042f[_0x52cd71('0x34d')]=_0x249e06,_0x9e042f[_0x52cd71('0x259b')]=_0x39f5d7,_0x9e042f['deleteIvrCampaignHopperHistory']=_0x3a2505,_0x9e042f[_0x52cd71('0x121a')]=_0xbb64ce;function _0x3a6208(_0xa1122f,_0x3162c2){const _0x2e3e1c=_0x52cd71;_0x9e042f[_0x2e3e1c('0x2148')]=_0xa1122f,_0x9e042f[_0x2e3e1c('0x103e')]=typeof _0x3162c2!==_0x2e3e1c('0xfad')?_0x3162c2:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x9e042f[_0x2e3e1c('0x826')][_0x2e3e1c('0x23b7')]=_0x9e042f[_0x2e3e1c('0x2148')]['id'],_0x9e042f[_0x2e3e1c('0x826')]['id']=_0x9e042f[_0x2e3e1c('0x2148')]['id'],_0x249e06();}function _0x235c65(_0x1c12f7,_0x33b9b4){const _0x5e06ed=_0x52cd71,_0x13e895=_0x253b29[_0x5e06ed('0x1121')]()[_0x5e06ed('0x24d3')](_0x5e06ed('0xda4'))[_0x5e06ed('0x211f')](_0x5e06ed('0xa53')+(_0x1c12f7[_0x5e06ed('0x2aa')]||_0x1c12f7['id']&&_0x49cbdd()[_0x5e06ed('0x233c')]('hopperHistory\x20#')+_0x1c12f7['id']||_0x5e06ed('0x246c'))+''+_0x5e06ed('0xe9f'))[_0x5e06ed('0x2095')](_0x5e06ed('0x1fcc'))[_0x5e06ed('0x104f')](_0x33b9b4)['ok']('OK')[_0x5e06ed('0x1d47')](_0x5e06ed('0x28a0'));_0x253b29[_0x5e06ed('0x28e2')](_0x13e895)[_0x5e06ed('0x17e7')](function(){_0x3a2505(_0x1c12f7);},function(){const _0x16a9de=_0x5e06ed;console[_0x16a9de('0x1d63')]('CANCEL');});}function _0x2fa01e(_0x4f26fe){_0x9e042f['ivrCampaignHopperHistories']=_0x4f26fe||{'count':0x0,'rows':[]};}function _0x249e06(){const _0x2be393=_0x52cd71;_0x9e042f[_0x2be393('0x826')][_0x2be393('0xf19')]=(_0x9e042f[_0x2be393('0x826')][_0x2be393('0x115a')]-0x1)*_0x9e042f[_0x2be393('0x826')]['limit'],_0x9e042f[_0x2be393('0x1691')]=_0x5f06a7[_0x2be393('0x2395')]['getHopperHistories'](_0x9e042f[_0x2be393('0x826')],_0x2fa01e)[_0x2be393('0x1af5')];}function _0x3a2505(_0x16dfc6){const _0xf243b0=_0x52cd71;_0x5f06a7[_0xf243b0('0x246c')][_0xf243b0('0x1da6')]({'id':_0x16dfc6['id']})[_0xf243b0('0x1af5')][_0xf243b0('0x17e7')](function(){const _0x4ddf6c=_0xf243b0;_0x49cbdd()[_0x4ddf6c('0x5f3')](_0x9e042f['ivrCampaignHopperHistories'][_0x4ddf6c('0x2319')],{'id':_0x16dfc6['id']}),_0x9e042f[_0x4ddf6c('0x1c2f')][_0x4ddf6c('0x335')]-=0x1,!_0x9e042f[_0x4ddf6c('0x1c2f')][_0x4ddf6c('0x2319')][_0x4ddf6c('0x1f73')]&&_0x249e06(),_0x536466[_0x4ddf6c('0x130d')]({'title':_0x4ddf6c('0x1f3c'),'msg':_0x16dfc6[_0x4ddf6c('0x2aa')]?_0x16dfc6[_0x4ddf6c('0x2aa')]+_0x4ddf6c('0x149f'):''});})[_0xf243b0('0x16df')](function(_0x4b621b){const _0x2a4863=_0xf243b0;if(_0x4b621b[_0x2a4863('0x1457')]&&_0x4b621b['data'][_0x2a4863('0x73e')]&&_0x4b621b[_0x2a4863('0x1457')][_0x2a4863('0x73e')]['length']){_0x9e042f['errors']=_0x4b621b[_0x2a4863('0x1457')][_0x2a4863('0x73e')]||[{'message':_0x4b621b[_0x2a4863('0x9b6')](),'type':_0x2a4863('0x2146')}];for(let _0x5ad5a0=0x0;_0x5ad5a0<_0x4b621b['data'][_0x2a4863('0x73e')][_0x2a4863('0x1f73')];_0x5ad5a0++){_0x536466[_0x2a4863('0x1db9')]({'title':_0x4b621b[_0x2a4863('0x1457')][_0x2a4863('0x73e')][_0x5ad5a0][_0x2a4863('0x412')],'msg':_0x4b621b[_0x2a4863('0x1457')][_0x2a4863('0x73e')][_0x5ad5a0][_0x2a4863('0x1603')]});}}else _0x536466[_0x2a4863('0x1db9')]({'title':_0x4b621b[_0x2a4863('0x11c5')]?_0x2a4863('0x14f7')+_0x4b621b['status']+'\x20-\x20'+_0x4b621b['statusText']:_0x2a4863('0x2146'),'msg':_0x4b621b[_0x2a4863('0x1457')]?JSON[_0x2a4863('0x678')](_0x4b621b['data'][_0x2a4863('0x1603')]):_0x4b621b['message']||_0x4b621b[_0x2a4863('0x9b6')]()});});}function _0x39f5d7(){const _0x13587e=_0x52cd71,_0x36c995=angular[_0x13587e('0x14e5')](_0x9e042f[_0x13587e('0x1866')]);return _0x9e042f[_0x13587e('0x1866')]=[],_0x36c995;}function _0xbb64ce(_0x4937eb){const _0x5c476d=_0x52cd71,_0x393b5f=_0x253b29[_0x5c476d('0x1121')]()[_0x5c476d('0x24d3')](_0x5c476d('0xf5f'))[_0x5c476d('0x211f')](_0x5c476d('0xa53')+_0x9e042f[_0x5c476d('0x1866')][_0x5c476d('0x1f73')]+_0x5c476d('0x145a')+_0x5c476d('0xe9f'))['ariaLabel'](_0x5c476d('0x1a5e'))[_0x5c476d('0x104f')](_0x4937eb)['ok']('OK')['cancel'](_0x5c476d('0x28a0'));_0x253b29[_0x5c476d('0x28e2')](_0x393b5f)['then'](function(){const _0x4ede70=_0x5c476d;_0x9e042f[_0x4ede70('0x1866')]['forEach'](function(_0x1d2506){_0x3a2505(_0x1d2506);}),_0x9e042f['selectedIvrCampaignHopperHistories']=[];});}let _0x2daae6=!![],_0x53e5cb=0x1;_0xd8a3ab[_0x52cd71('0x620')](_0x52cd71('0x4c3'),function(_0x48face,_0x475247){const _0x655bda=_0x52cd71;_0x2daae6?_0xf05372(function(){_0x2daae6=![];}):(!_0x475247&&(_0x53e5cb=_0x9e042f['query'][_0x655bda('0x115a')]),_0x48face!==_0x475247&&(_0x9e042f[_0x655bda('0x826')][_0x655bda('0x115a')]=0x1),!_0x48face&&(_0x9e042f[_0x655bda('0x826')][_0x655bda('0x115a')]=_0x53e5cb),_0x249e06());});}const _0x75338f=_0x2cb222;_0x51e9a1[_0x4376d8('0x1b9c')]=['$cookies',_0x4376d8('0x668'),'$state','$q',_0x4376d8('0x28da'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x51e9a1(_0x54d652,_0x1955b0,_0x21ef21,_0x924b5e,_0x8c4613,_0x39405e,_0x116a4,_0x229529,_0x593904,_0x1559fc,_0x11ad1e){const _0x4c58ad=_0x4376d8,_0x54f8da=this;_0x54f8da[_0x4c58ad('0x197c')]=_0x11ad1e[_0x4c58ad('0x2831')](),_0x54f8da[_0x4c58ad('0x2148')]={},_0x54f8da['ivrCampaignHoppers']={'count':0x0,'rows':[]},_0x54f8da[_0x4c58ad('0x540')]=[],_0x54f8da[_0x4c58ad('0x103e')],_0x54f8da['query']={'fields':_0x4c58ad('0x1183'),'sort':_0x4c58ad('0x1ac6'),'limit':0xa,'page':0x1},_0x54f8da[_0x4c58ad('0x1a1b')]=_0x49cbdd()[_0x4c58ad('0x8de')]([{'option':'Highest','value':'\x274\x27'},{'option':_0x4c58ad('0xf1e'),'value':_0x4c58ad('0x3f5')},{'option':_0x4c58ad('0x1410'),'value':_0x4c58ad('0x788')},{'option':_0x4c58ad('0xfd2'),'value':_0x4c58ad('0x1d26')},{'option':'Lowest','value':_0x4c58ad('0x1528')}],function(_0x15ad05){return _0x49cbdd()['replace'](_0x15ad05['value'],new RegExp('\x27','g'),'');}),_0x54f8da['init']=_0x5b68f9,_0x54f8da['deleteConfirm']=_0x444f4c,_0x54f8da[_0x4c58ad('0x130d')]=_0x32f1a2,_0x54f8da[_0x4c58ad('0xd4')]=_0x166cfb,_0x54f8da[_0x4c58ad('0xc82')]=_0x58d971,_0x54f8da[_0x4c58ad('0x2759')]=_0x3b41a2,_0x54f8da[_0x4c58ad('0x1e64')]=_0x3c7d39,_0x54f8da[_0x4c58ad('0x6ca')]=_0x55aee8,_0x11ad1e[_0x4c58ad('0x1ba2')](_0x4c58ad('0x20bf'))?_0x1559fc['user'][_0x4c58ad('0x1c53')]({'fields':_0x4c58ad('0x12d2'),'role':_0x4c58ad('0x684'),'sort':_0x4c58ad('0x2aa'),'nolimit':_0x4c58ad('0xe34')})['$promise']['then'](function(_0x48f1e8){const _0x2e6cca=_0x4c58ad;_0x54f8da['agents']=_0x48f1e8[_0x2e6cca('0x2319')]||[];})[_0x4c58ad('0x16df')](function(_0x4541be){const _0x413300=_0x4c58ad;_0x593904[_0x413300('0x1db9')]({'title':_0x4541be[_0x413300('0x11c5')]?'API:'+_0x4541be[_0x413300('0x11c5')]+_0x413300('0x16e4')+_0x4541be[_0x413300('0x1833')]:_0x413300('0x23e0'),'msg':_0x4541be[_0x413300('0x1457')]?JSON[_0x413300('0x678')](_0x4541be[_0x413300('0x1457')]):_0x4541be['toString']()});}):_0x1559fc[_0x4c58ad('0x221e')][_0x4c58ad('0x1c53')]({'fields':_0x4c58ad('0x12d2'),'role':_0x4c58ad('0x684'),'sort':_0x4c58ad('0x2aa'),'nolimit':_0x4c58ad('0xe34')})['$promise']['then'](function(_0x36a523){const _0x1efc1f=_0x4c58ad;_0x54f8da['agents']=_0x36a523[_0x1efc1f('0x2319')]||[];})[_0x4c58ad('0x17e7')](function(){const _0x4f2323=_0x4c58ad;return _0x1559fc[_0x4f2323('0x383')][_0x4f2323('0x1c53')]({'userProfileId':_0x54f8da[_0x4f2323('0x197c')][_0x4f2323('0x1e76')],'sectionId':0xca})[_0x4f2323('0x1af5')];})[_0x4c58ad('0x17e7')](function(_0x22e317){const _0x2a6f77=_0x4c58ad,_0x3f10dc=_0x22e317&&_0x22e317[_0x2a6f77('0x2319')]?_0x22e317[_0x2a6f77('0x2319')][0x0]:null;if(!_0x3f10dc)_0x54f8da[_0x2a6f77('0x25ea')]=[];else{if(!_0x3f10dc['autoAssociation'])return _0x1559fc[_0x2a6f77('0x78d')][_0x2a6f77('0x1c53')]({'sectionId':_0x3f10dc['id']})[_0x2a6f77('0x1af5')][_0x2a6f77('0x17e7')](function(_0x24a162){const _0xcd99ee=_0x2a6f77,_0x5e9607=_0x49cbdd()['map'](_0x24a162[_0xcd99ee('0x2319')],function(_0x36fd7a){const _0x394f25=_0xcd99ee;return _0x49cbdd()[_0x394f25('0xe8e')](_0x54f8da['agents'],{'id':_0x36fd7a[_0x394f25('0x5db')]});});_0x54f8da[_0xcd99ee('0x25ea')]['forEach'](function(_0x484f95){const _0x1e5f1b=_0xcd99ee;!_0x49cbdd()['some'](_0x5e9607,['id',_0x484f95['id']])&&(_0x484f95[_0x1e5f1b('0xe5c')]=![]),_0x5e9607[_0x1e5f1b('0x269f')](_0x484f95);}),_0x54f8da[_0xcd99ee('0x25ea')]=_0x5e9607;});}})[_0x4c58ad('0x16df')](function(_0x566889){const _0x35f242=_0x4c58ad;_0x593904['error']({'title':_0x566889['status']?_0x35f242('0x14f7')+_0x566889['status']+_0x35f242('0x16e4')+_0x566889[_0x35f242('0x1833')]:'SYSTEM:GETagents','msg':_0x566889['data']?JSON['stringify'](_0x566889['data']):_0x566889['toString']()});});function _0x5b68f9(_0x1e0dc7,_0x29724d){const _0x3f893c=_0x4c58ad;_0x54f8da[_0x3f893c('0x2148')]=_0x1e0dc7,_0x54f8da[_0x3f893c('0x103e')]=typeof _0x29724d!==_0x3f893c('0xfad')?_0x29724d:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x54f8da[_0x3f893c('0x826')][_0x3f893c('0x23b7')]=_0x54f8da[_0x3f893c('0x2148')]['id'],_0x54f8da['query']['id']=_0x54f8da[_0x3f893c('0x2148')]['id'],_0x166cfb();}function _0x444f4c(_0x212ee1,_0x4a1183){const _0x26b4f0=_0x4c58ad,_0x141b70=_0x116a4[_0x26b4f0('0x1121')]()[_0x26b4f0('0x24d3')](_0x26b4f0('0x158'))[_0x26b4f0('0x211f')](_0x26b4f0('0xa53')+(_0x212ee1['name']||_0x212ee1['id']&&_0x49cbdd()[_0x26b4f0('0x233c')](_0x26b4f0('0x246'))+_0x212ee1['id']||_0x26b4f0('0x2774'))+''+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x26b4f0('0x538'))[_0x26b4f0('0x104f')](_0x4a1183)['ok']('OK')['cancel'](_0x26b4f0('0x28a0'));_0x116a4[_0x26b4f0('0x28e2')](_0x141b70)[_0x26b4f0('0x17e7')](function(){_0x3c7d39(_0x212ee1);},function(){const _0x1e07f9=_0x26b4f0;console[_0x1e07f9('0x1d63')]('CANCEL');});}function _0x32f1a2(_0x1f2fc4){const _0x781580=_0x4c58ad;_0x54f8da[_0x781580('0x739')]=_0x1f2fc4||{'count':0x0,'rows':[]};}function _0x166cfb(){const _0x251f64=_0x4c58ad;_0x54f8da[_0x251f64('0x826')]['offset']=(_0x54f8da[_0x251f64('0x826')][_0x251f64('0x115a')]-0x1)*_0x54f8da[_0x251f64('0x826')][_0x251f64('0x193b')],_0x54f8da[_0x251f64('0x1691')]=_0x1559fc['campaign']['getHoppers'](_0x54f8da[_0x251f64('0x826')],_0x32f1a2)[_0x251f64('0x1af5')];}function _0x58d971(_0x586d47,_0x54439f){const _0x4aaa14=_0x4c58ad;_0x116a4[_0x4aaa14('0x28e2')]({'controller':_0x4aaa14('0x1db1'),'controllerAs':'vm','templateUrl':_0xd0f39e,'parent':angular[_0x4aaa14('0x1ce1')](_0x229529[_0x4aaa14('0x13aa')]),'targetEvent':_0x586d47,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x54f8da[_0x4aaa14('0x2148')],'hopper':_0x54439f,'hoppers':_0x54f8da[_0x4aaa14('0x739')][_0x4aaa14('0x2319')],'license':null,'setting':null,'crudPermissions':_0x54f8da[_0x4aaa14('0x103e')]}});}function _0x3c7d39(_0x6b5da8){const _0x5d75a6=_0x4c58ad;_0x1559fc[_0x5d75a6('0xf6a')][_0x5d75a6('0x1da6')]({'id':_0x6b5da8['id']})['$promise']['then'](function(){const _0xf54944=_0x5d75a6;_0x49cbdd()[_0xf54944('0x5f3')](_0x54f8da[_0xf54944('0x739')][_0xf54944('0x2319')],{'id':_0x6b5da8['id']}),_0x54f8da[_0xf54944('0x739')]['count']-=0x1,!_0x54f8da['ivrCampaignHoppers'][_0xf54944('0x2319')]['length']&&_0x166cfb(),_0x593904[_0xf54944('0x130d')]({'title':_0xf54944('0x1f1d'),'msg':_0x6b5da8[_0xf54944('0x2aa')]?_0x6b5da8[_0xf54944('0x2aa')]+'\x20has\x20been\x20deleted!':''});})[_0x5d75a6('0x16df')](function(_0x5635e0){const _0x5b3592=_0x5d75a6;if(_0x5635e0[_0x5b3592('0x1457')]&&_0x5635e0[_0x5b3592('0x1457')][_0x5b3592('0x73e')]&&_0x5635e0['data'][_0x5b3592('0x73e')][_0x5b3592('0x1f73')]){_0x54f8da[_0x5b3592('0x73e')]=_0x5635e0['data'][_0x5b3592('0x73e')]||[{'message':_0x5635e0[_0x5b3592('0x9b6')](),'type':_0x5b3592('0x2146')}];for(let _0x14d0b7=0x0;_0x14d0b7<_0x5635e0[_0x5b3592('0x1457')][_0x5b3592('0x73e')][_0x5b3592('0x1f73')];_0x14d0b7++){_0x593904[_0x5b3592('0x1db9')]({'title':_0x5635e0[_0x5b3592('0x1457')][_0x5b3592('0x73e')][_0x14d0b7][_0x5b3592('0x412')],'msg':_0x5635e0[_0x5b3592('0x1457')][_0x5b3592('0x73e')][_0x14d0b7][_0x5b3592('0x1603')]});}}else _0x593904['error']({'title':_0x5635e0[_0x5b3592('0x11c5')]?_0x5b3592('0x14f7')+_0x5635e0['status']+_0x5b3592('0x16e4')+_0x5635e0['statusText']:'SYSTEM:GETcampaign','msg':_0x5635e0['data']?JSON[_0x5b3592('0x678')](_0x5635e0[_0x5b3592('0x1457')][_0x5b3592('0x1603')]):_0x5635e0['message']||_0x5635e0[_0x5b3592('0x9b6')]()});});}function _0x3b41a2(){const _0x38bc80=_0x4c58ad,_0x9609cb=angular[_0x38bc80('0x14e5')](_0x54f8da[_0x38bc80('0x540')]);return _0x54f8da[_0x38bc80('0x540')]=[],_0x9609cb;}function _0x55aee8(_0x2080db){const _0xd9779c=_0x4c58ad,_0x43e607=_0x116a4['confirm']()[_0xd9779c('0x24d3')](_0xd9779c('0x1fee'))[_0xd9779c('0x211f')](_0xd9779c('0xa53')+_0x54f8da[_0xd9779c('0x540')][_0xd9779c('0x1f73')]+_0xd9779c('0x145a')+_0xd9779c('0xe9f'))[_0xd9779c('0x2095')](_0xd9779c('0xe77'))[_0xd9779c('0x104f')](_0x2080db)['ok']('OK')[_0xd9779c('0x1d47')](_0xd9779c('0x28a0'));_0x116a4[_0xd9779c('0x28e2')](_0x43e607)[_0xd9779c('0x17e7')](function(){const _0xdf2d82=_0xd9779c;_0x54f8da[_0xdf2d82('0x540')][_0xdf2d82('0xccd')](function(_0x2606f6){_0x3c7d39(_0x2606f6);}),_0x54f8da[_0xdf2d82('0x540')]=[];});}let _0x897884=!![],_0x2e122d=0x1;_0x1955b0[_0x4c58ad('0x620')]('vm_dc.query.filter',function(_0x2e56f3,_0x342ba5){const _0x2e11a5=_0x4c58ad;_0x897884?_0x39405e(function(){_0x897884=![];}):(!_0x342ba5&&(_0x2e122d=_0x54f8da['query'][_0x2e11a5('0x115a')]),_0x2e56f3!==_0x342ba5&&(_0x54f8da[_0x2e11a5('0x826')][_0x2e11a5('0x115a')]=0x1),!_0x2e56f3&&(_0x54f8da[_0x2e11a5('0x826')][_0x2e11a5('0x115a')]=_0x2e122d),_0x166cfb());});}const _0x3835e8=_0x51e9a1;_0x54717f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0xf70'),'hopper',_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x54717f(_0x24697f,_0x354a9b,_0x485976,_0x58989c,_0x167280,_0x60c487,_0x4910af,_0x24129e,_0x1c8329,_0x431bfd,_0x5cfdad,_0x54051a,_0xd9d134,_0xc2f63f){const _0x1f0bae=_0x4376d8,_0x197b21=this;_0x197b21[_0x1f0bae('0x197c')]=_0x5cfdad[_0x1f0bae('0x2831')](),_0x197b21[_0x1f0bae('0x73e')]=[],_0x197b21[_0x1f0bae('0x1aeb')]=_0xd9d134,_0x197b21['license']=_0x54051a,_0x197b21[_0x1f0bae('0x103e')]=_0xc2f63f,_0x197b21[_0x1f0bae('0x6ee')]={},_0x197b21[_0x1f0bae('0x1572')]=_0x197b21[_0x1f0bae('0x1aeb')]&&_0x197b21['setting'][_0x1f0bae('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x197b21[_0x1f0bae('0x24d3')]=_0x1f0bae('0x1a73'),_0x197b21[_0x1f0bae('0x2774')]=angular[_0x1f0bae('0x14e5')](_0x1c8329),_0x197b21[_0x1f0bae('0xf70')]=_0x24129e,_0x197b21[_0x1f0bae('0x96d')]=![];!_0x197b21[_0x1f0bae('0x2774')]&&(_0x197b21[_0x1f0bae('0x2774')]={},_0x197b21[_0x1f0bae('0x24d3')]=_0x1f0bae('0x2866'),_0x197b21['newHopper']=!![]);_0x354a9b[_0x1f0bae('0x16fb')]['id']&&(_0x197b21[_0x1f0bae('0x2774')][_0x1f0bae('0x23b7')]=_0x354a9b[_0x1f0bae('0x16fb')]['id']);_0x197b21[_0x1f0bae('0x1e98')]=_0x13567c,_0x197b21[_0x1f0bae('0xdf2')]=_0xd0d7f6,_0x197b21['deleteHopper']=_0x562722,_0x197b21[_0x1f0bae('0x1300')]=_0x2e79c5,_0x197b21[_0x1f0bae('0x136e')]=_0xc27330,_0x5cfdad[_0x1f0bae('0x1ba2')](_0x1f0bae('0x20bf'))?_0x431bfd['user'][_0x1f0bae('0x1c53')]({'fields':'id,name','role':_0x1f0bae('0x684'),'sort':'name','nolimit':'true'})[_0x1f0bae('0x1af5')][_0x1f0bae('0x17e7')](function(_0x2fe8d){const _0x42aa4a=_0x1f0bae;_0x197b21[_0x42aa4a('0x25ea')]=_0x2fe8d[_0x42aa4a('0x2319')]||[];})[_0x1f0bae('0x16df')](function(_0x18ee2b){const _0x5e4bf7=_0x1f0bae;_0x4910af[_0x5e4bf7('0x1db9')]({'title':_0x18ee2b[_0x5e4bf7('0x11c5')]?_0x5e4bf7('0x14f7')+_0x18ee2b[_0x5e4bf7('0x11c5')]+_0x5e4bf7('0x16e4')+_0x18ee2b[_0x5e4bf7('0x1833')]:_0x5e4bf7('0x23e0'),'msg':_0x18ee2b[_0x5e4bf7('0x1457')]?JSON[_0x5e4bf7('0x678')](_0x18ee2b[_0x5e4bf7('0x1457')]):_0x18ee2b['toString']()});}):_0x431bfd[_0x1f0bae('0x221e')]['get']({'fields':_0x1f0bae('0x12d2'),'role':'agent','sort':_0x1f0bae('0x2aa'),'nolimit':'true'})[_0x1f0bae('0x1af5')][_0x1f0bae('0x17e7')](function(_0x513c81){const _0x1e7a6a=_0x1f0bae;_0x197b21[_0x1e7a6a('0x25ea')]=_0x513c81[_0x1e7a6a('0x2319')]||[];})[_0x1f0bae('0x17e7')](function(){const _0x2af1f1=_0x1f0bae;return _0x431bfd[_0x2af1f1('0x383')][_0x2af1f1('0x1c53')]({'userProfileId':_0x197b21['currentUser']['userProfileId'],'sectionId':0xca})[_0x2af1f1('0x1af5')];})[_0x1f0bae('0x17e7')](function(_0x4ffa88){const _0x4b0fb8=_0x1f0bae,_0x32cbdf=_0x4ffa88&&_0x4ffa88['rows']?_0x4ffa88['rows'][0x0]:null;if(!_0x32cbdf)_0x197b21['agents']=[];else{if(!_0x32cbdf['autoAssociation'])return _0x431bfd[_0x4b0fb8('0x78d')][_0x4b0fb8('0x1c53')]({'sectionId':_0x32cbdf['id']})[_0x4b0fb8('0x1af5')][_0x4b0fb8('0x17e7')](function(_0x5c7c50){const _0x16ccae=_0x4b0fb8,_0x5bc0f6=_0x49cbdd()[_0x16ccae('0x787')](_0x5c7c50[_0x16ccae('0x2319')],function(_0xd14caf){const _0x26894b=_0x16ccae;return _0x49cbdd()['find'](_0x197b21[_0x26894b('0x25ea')],{'id':_0xd14caf[_0x26894b('0x5db')]});});_0x197b21[_0x16ccae('0x25ea')][_0x16ccae('0xccd')](function(_0x3cddfc){const _0x1ff92=_0x16ccae;!_0x49cbdd()[_0x1ff92('0x26f8')](_0x5bc0f6,['id',_0x3cddfc['id']])&&(_0x3cddfc[_0x1ff92('0xe5c')]=![]),_0x5bc0f6[_0x1ff92('0x269f')](_0x3cddfc);}),_0x197b21['agents']=_0x5bc0f6;});}})[_0x1f0bae('0x16df')](function(_0x103dd3){const _0x218a5c=_0x1f0bae;_0x4910af['error']({'title':_0x103dd3['status']?_0x218a5c('0x14f7')+_0x103dd3['status']+'\x20-\x20'+_0x103dd3[_0x218a5c('0x1833')]:_0x218a5c('0xa37'),'msg':_0x103dd3[_0x218a5c('0x1457')]?JSON[_0x218a5c('0x678')](_0x103dd3[_0x218a5c('0x1457')]):_0x103dd3['toString']()});});function _0x13567c(){const _0xa6661=_0x1f0bae;_0x197b21[_0xa6661('0x73e')]=[],_0x431bfd[_0xa6661('0xf6a')][_0xa6661('0x2439')](_0x197b21['hopper'])[_0xa6661('0x1af5')]['then'](function(_0x32e93a){const _0x4bf99f=_0xa6661;_0x197b21[_0x4bf99f('0xf70')][_0x4bf99f('0x1893')](_0x32e93a[_0x4bf99f('0x16b2')]()),_0x4910af[_0x4bf99f('0x130d')]({'title':'Hopper\x20properly\x20created','msg':_0x197b21[_0x4bf99f('0x2774')]['name']?_0x197b21['hopper']['name']+_0x4bf99f('0x15a'):''}),_0xc27330(_0x32e93a);})[_0xa6661('0x16df')](function(_0x2861d4){const _0x2c6291=_0xa6661;if(_0x2861d4['data']&&_0x2861d4[_0x2c6291('0x1457')][_0x2c6291('0x73e')]&&_0x2861d4[_0x2c6291('0x1457')][_0x2c6291('0x73e')]['length']){_0x197b21['errors']=_0x2861d4[_0x2c6291('0x1457')][_0x2c6291('0x73e')]||[{'message':_0x2861d4[_0x2c6291('0x9b6')](),'type':_0x2c6291('0xa6a')}];for(let _0x17a6d6=0x0;_0x17a6d6<_0x2861d4['data']['errors'][_0x2c6291('0x1f73')];_0x17a6d6+=0x1){_0x4910af[_0x2c6291('0x1db9')]({'title':_0x2861d4[_0x2c6291('0x1457')][_0x2c6291('0x73e')][_0x17a6d6][_0x2c6291('0x412')],'msg':_0x2861d4[_0x2c6291('0x1457')]['errors'][_0x17a6d6][_0x2c6291('0x1603')]});}}else _0x4910af[_0x2c6291('0x1db9')]({'title':_0x2861d4[_0x2c6291('0x11c5')]?'API:'+_0x2861d4[_0x2c6291('0x11c5')]+_0x2c6291('0x16e4')+_0x2861d4[_0x2c6291('0x1833')]:'api.cmHopper.save','msg':_0x2861d4[_0x2c6291('0x1457')]?JSON['stringify'](_0x2861d4[_0x2c6291('0x1457')][_0x2c6291('0x1603')]):_0x2861d4['toString']()});});}function _0xd0d7f6(){const _0x566f55=_0x1f0bae;_0x197b21[_0x566f55('0x73e')]=[];let _0x220037,_0x4c3f54,_0x44e5b8,_0x3975c4;_0x197b21[_0x566f55('0x2774')][_0x566f55('0x5e5')]=_0x197b21[_0x566f55('0x2774')][_0x566f55('0x229')]?_0x197b21['hopper'][_0x566f55('0x5e5')]:null,_0x197b21[_0x566f55('0x2774')][_0x566f55('0x536')]=_0x5cfdad[_0x566f55('0x2831')]()['id'],_0x431bfd[_0x566f55('0xf6a')][_0x566f55('0x1c53')]({'id':_0x197b21[_0x566f55('0x2774')]['id'],'attributes':[_0x566f55('0x2809')]})[_0x566f55('0x1af5')][_0x566f55('0x17e7')](function(_0x2784f6){const _0x3792a2=_0x566f55;_0x49cbdd()[_0x3792a2('0x390')](_0x2784f6)||_0x49cbdd()['isEmpty'](_0x2784f6)?_0x220037=_0x107a13()()[_0x3792a2('0x1c0d')](_0x3792a2('0x1e17')):_0x220037=_0x2784f6[_0x3792a2('0x2809')];})[_0x566f55('0x74e')](function(){const _0x45bab3=_0x566f55;_0x431bfd[_0x45bab3('0xf6a')][_0x45bab3('0x27ba')]({'id':_0x197b21['hopper']['id']},_0x49cbdd()[_0x45bab3('0x15c3')](_0x197b21[_0x45bab3('0x2774')],[_0x45bab3('0x2803'),_0x45bab3('0x23b7'),'ContactId',_0x45bab3('0x7f8')]))[_0x45bab3('0x1af5')][_0x45bab3('0x17e7')](function(_0x2041de){const _0x1c6ffd=_0x45bab3;_0x4c3f54=_0x2041de,_0x431bfd[_0x1c6ffd('0x1d2a')][_0x1c6ffd('0x1c53')]({'id':_0x4c3f54[_0x1c6ffd('0x1e84')],'attributes':[_0x1c6ffd('0x1761'),_0x1c6ffd('0x8d6')]})[_0x1c6ffd('0x1af5')][_0x1c6ffd('0x17e7')](function(_0x17c894){const _0x286761=_0x1c6ffd;!_0x49cbdd()[_0x286761('0x390')](_0x17c894)&&!_0x49cbdd()['isNil'](_0x17c894['firstName'])&&(_0x44e5b8=_0x17c894[_0x286761('0x1761')],!_0x49cbdd()[_0x286761('0x390')](_0x17c894[_0x286761('0x8d6')])&&(_0x44e5b8+='\x20'+_0x17c894[_0x286761('0x8d6')]));})['catch'](function(){_0x44e5b8=undefined;})[_0x1c6ffd('0x74e')](function(){const _0x16e2b2=_0x1c6ffd;_0x431bfd[_0x16e2b2('0x2395')]['get']({'raw':![],'id':_0x4c3f54['CampaignId'],'attributes':[_0x16e2b2('0x2aa')]})[_0x16e2b2('0x1af5')][_0x16e2b2('0x17e7')](function(_0x486336){const _0x4adc75=_0x16e2b2;_0x3975c4=_0x486336[_0x4adc75('0x2aa')];})[_0x16e2b2('0x16df')](function(){_0x3975c4=undefined;})[_0x16e2b2('0x74e')](function(){const _0x224a7e=_0x16e2b2;_0x431bfd[_0x224a7e('0x2231')]['save']({'state':0x18,'statedesc':'Edited','scheduledat':_0x220037,'calleridnum':_0x4c3f54['phone'],'calleridname':_0x44e5b8,'campaigntype':_0x4c3f54['VoiceQueueId']?_0x224a7e('0x1bd'):_0x224a7e('0xe8'),'campaign':_0x3975c4,'editedat':_0x107a13()()[_0x224a7e('0x1c0d')](_0x224a7e('0x1e17')),'edited':!![],'ListId':_0x4c3f54[_0x224a7e('0x7f8')],'UserId':_0x5cfdad[_0x224a7e('0x2831')]()['id'],'VoiceQueueId':_0x4c3f54[_0x224a7e('0x2803')],'CampaignId':_0x4c3f54[_0x224a7e('0x23b7')],'ContactId':_0x4c3f54['ContactId'],'callback':_0x4c3f54[_0x224a7e('0x2cf')],'callbackuniqueid':_0x4c3f54[_0x224a7e('0x25be')],'countbusyretry':_0x4c3f54[_0x224a7e('0x1a7')],'countcongestionretry':_0x4c3f54['countcongestionretry'],'countglobal':_0x4c3f54[_0x224a7e('0x23d7')],'countnoanswerretry':_0x4c3f54[_0x224a7e('0xe85')],'followuptime':_0x4c3f54[_0x224a7e('0xac9')],'recallme':_0x4c3f54[_0x224a7e('0x229')]});});});const _0x4f3b62=_0x49cbdd()[_0x1c6ffd('0xe8e')](_0x197b21[_0x1c6ffd('0xf70')],{'id':_0x2041de['id']});_0x4f3b62&&_0x49cbdd()[_0x1c6ffd('0x1ced')](_0x4f3b62,_0x49cbdd()['pick'](_0x2041de[_0x1c6ffd('0x16b2')](),_0x49cbdd()[_0x1c6ffd('0x1c0f')](_0x4f3b62))),_0x4910af[_0x1c6ffd('0x130d')]({'title':_0x1c6ffd('0x1e82'),'msg':_0x197b21[_0x1c6ffd('0x2774')][_0x1c6ffd('0x2aa')]?_0x197b21[_0x1c6ffd('0x2774')][_0x1c6ffd('0x2aa')]+_0x1c6ffd('0x15ca'):''}),_0xc27330(_0x2041de);})['catch'](function(_0x298425){const _0x1c3ad9=_0x45bab3;if(_0x298425['data']&&_0x298425['data']['errors']&&_0x298425[_0x1c3ad9('0x1457')][_0x1c3ad9('0x73e')][_0x1c3ad9('0x1f73')]){_0x197b21[_0x1c3ad9('0x73e')]=_0x298425['data'][_0x1c3ad9('0x73e')]||[{'message':_0x298425['toString'](),'type':_0x1c3ad9('0x22d')}];for(let _0x50ca3f=0x0;_0x50ca3f<_0x298425[_0x1c3ad9('0x1457')][_0x1c3ad9('0x73e')]['length'];_0x50ca3f++){_0x4910af['error']({'title':_0x298425[_0x1c3ad9('0x1457')][_0x1c3ad9('0x73e')][_0x50ca3f][_0x1c3ad9('0x412')],'msg':_0x298425[_0x1c3ad9('0x1457')]['errors'][_0x50ca3f][_0x1c3ad9('0x1603')]});}}else _0x4910af[_0x1c3ad9('0x1db9')]({'title':_0x298425[_0x1c3ad9('0x11c5')]?_0x1c3ad9('0x14f7')+_0x298425[_0x1c3ad9('0x11c5')]+'\x20-\x20'+_0x298425[_0x1c3ad9('0x1833')]:'api.cmHopper.update','msg':_0x298425[_0x1c3ad9('0x1457')]?JSON['stringify'](_0x298425[_0x1c3ad9('0x1457')]['message']):_0x298425[_0x1c3ad9('0x9b6')]()});});});}function _0x562722(_0x5de2d0){const _0x2103d4=_0x1f0bae;_0x197b21[_0x2103d4('0x73e')]=[];const _0x4b91c6=_0x58989c[_0x2103d4('0x1121')]()[_0x2103d4('0x24d3')](_0x2103d4('0x530'))[_0x2103d4('0xd5')]('The\x20hopper\x20will\x20be\x20deleted.')['ariaLabel'](_0x2103d4('0x25c1'))['ok'](_0x2103d4('0x304'))[_0x2103d4('0x1d47')](_0x2103d4('0x1b70'))['targetEvent'](_0x5de2d0);_0x58989c[_0x2103d4('0x28e2')](_0x4b91c6)[_0x2103d4('0x17e7')](function(){const _0x56fb08=_0x2103d4;_0x431bfd['cmHopper'][_0x56fb08('0x1da6')]({'id':_0x197b21[_0x56fb08('0x2774')]['id']})[_0x56fb08('0x1af5')][_0x56fb08('0x17e7')](function(){const _0x3168b8=_0x56fb08;_0x49cbdd()[_0x3168b8('0x5f3')](_0x197b21[_0x3168b8('0xf70')],{'id':_0x197b21['hopper']['id']}),_0x4910af['success']({'title':'Hopper\x20properly\x20deleted!','msg':(_0x197b21[_0x3168b8('0x2774')][_0x3168b8('0x2aa')]||_0x3168b8('0x2774'))+'\x20has\x20been\x20deleted!'}),_0xc27330(_0x197b21[_0x3168b8('0x2774')]);})[_0x56fb08('0x16df')](function(_0x577220){const _0x876f6f=_0x56fb08;if(_0x577220[_0x876f6f('0x1457')]&&_0x577220[_0x876f6f('0x1457')][_0x876f6f('0x73e')]&&_0x577220['data'][_0x876f6f('0x73e')][_0x876f6f('0x1f73')]){_0x197b21['errors']=_0x577220['data'][_0x876f6f('0x73e')]||[{'message':_0x577220[_0x876f6f('0x9b6')](),'type':_0x876f6f('0x183c')}];for(let _0x2b0d61=0x0;_0x2b0d61<_0x577220[_0x876f6f('0x1457')]['errors'][_0x876f6f('0x1f73')];_0x2b0d61++){_0x4910af[_0x876f6f('0x1db9')]({'title':_0x577220[_0x876f6f('0x1457')][_0x876f6f('0x73e')][_0x2b0d61]['type'],'msg':_0x577220[_0x876f6f('0x1457')]['errors'][_0x2b0d61]['message']});}}else _0x4910af[_0x876f6f('0x1db9')]({'title':_0x577220[_0x876f6f('0x11c5')]?_0x876f6f('0x14f7')+_0x577220['status']+_0x876f6f('0x16e4')+_0x577220[_0x876f6f('0x1833')]:_0x876f6f('0x183c'),'msg':_0x577220[_0x876f6f('0x1457')]?JSON[_0x876f6f('0x678')](_0x577220[_0x876f6f('0x1457')]['message']):_0x577220['message']||_0x577220[_0x876f6f('0x9b6')]()});});},function(){});}function _0x2e79c5(_0x41669d){return _0x41669d===null?undefined:new Date(_0x41669d);}function _0xc27330(_0x39114c){const _0x28c5f2=_0x1f0bae;_0x58989c[_0x28c5f2('0x212a')](_0x39114c);}}const _0x17c7ef=_0x54717f;_0x1efe99[_0x4376d8('0x1b9c')]=[_0x4376d8('0x212e'),_0x4376d8('0x108a')];function _0x1efe99(_0x40035a,_0x1e6819){const _0x55217a=_0x4376d8,_0x4f8493=this;_0x4f8493[_0x55217a('0x2148')]={},_0x4f8493[_0x55217a('0x161d')]=_0x595ec5;function _0x595ec5(_0x3f04c7){const _0x484fcf=_0x55217a;_0x4f8493[_0x484fcf('0x2148')]=_0x3f04c7,_0x40035a[_0x484fcf('0xf6a')][_0x484fcf('0x1c53')]({'limit':0x0,'CampaignId':_0x3f04c7['id']})[_0x484fcf('0x1af5')]['then'](function(_0x1da413){const _0x5c5ac5=_0x484fcf;return _0x4f8493[_0x5c5ac5('0x1d0e')]=_0x1da413[_0x5c5ac5('0x335')]||0x0,_0x40035a[_0x5c5ac5('0xf6a')]['get']({'limit':0x0,'CampaignId':_0x3f04c7['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0x5c5ac5('0x1af5')];})['then'](function(_0x8ee8ec){const _0x29dc76=_0x484fcf;return _0x4f8493[_0x29dc76('0x24cc')]=_0x8ee8ec[_0x29dc76('0x335')]||0x0,_0x40035a[_0x29dc76('0x255c')]['get']({'limit':0x0,'CampaignId':_0x3f04c7['id']})['$promise'];})[_0x484fcf('0x17e7')](function(_0x3de069){const _0x229eed=_0x484fcf;_0x4f8493[_0x229eed('0x2bc')]=_0x3de069[_0x229eed('0x335')]||0x0;})[_0x484fcf('0x16df')](function(_0x1b875a){const _0x31802a=_0x484fcf;_0x1e6819[_0x31802a('0x1db9')]({'title':_0x1b875a['status']?_0x31802a('0x14f7')+_0x1b875a[_0x31802a('0x11c5')]+_0x31802a('0x16e4')+_0x1b875a[_0x31802a('0x1833')]:_0x31802a('0x1435'),'msg':_0x1b875a[_0x31802a('0x1457')]?JSON['stringify'](_0x1b875a[_0x31802a('0x1457')]):_0x1b875a[_0x31802a('0x9b6')]()});});}}const _0x41159b=_0x1efe99;_0x1ed621['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x2148'),_0x4376d8('0x28da'),_0x4376d8('0xef1'),'Auth',_0x4376d8('0x103e')];function _0x1ed621(_0x144614,_0x29ea0b,_0x2cbebf,_0x1af88d,_0x920aa5,_0x4a24fa,_0x1b5b84,_0x1b538f,_0x2fd3be){const _0x2d1bd1=_0x4376d8,_0x2521c2=this;_0x2521c2['currentUser']=_0x1b538f[_0x2d1bd1('0x2831')](),_0x2521c2[_0x2d1bd1('0x2148')]=_0x920aa5,_0x2521c2[_0x2d1bd1('0x103e')]=_0x2fd3be,_0x2521c2[_0x2d1bd1('0x714')]=_0x2d1bd1('0x2395'),_0x2521c2[_0x2d1bd1('0x27a0')]='getLists',_0x2521c2[_0x2d1bd1('0xed')]=_0x2d1bd1('0x147f'),_0x2521c2[_0x2d1bd1('0x27c')]=_0x2d1bd1('0x1b63'),_0x2521c2[_0x2d1bd1('0x532')]=[],_0x2521c2[_0x2d1bd1('0x2722')]=[],_0x2521c2[_0x2d1bd1('0xc14')]=[],_0x2521c2[_0x2d1bd1('0x181b')]=[],_0x2521c2[_0x2d1bd1('0x1824')]=[],_0x2521c2['pendingChanges']=![],_0x2521c2[_0x2d1bd1('0x782')]=![],_0x2521c2['dualMultiselectOptions']={'readOnly':!_0x2521c2[_0x2d1bd1('0x103e')][_0x2d1bd1('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0x2d1bd1('0x2aa'),'line1':_0x2d1bd1('0x2aa'),'line2':'','line3':'','labelAll':_0x4a24fa['instant'](_0x2d1bd1('0x21a3')),'labelSelected':_0x4a24fa[_0x2d1bd1('0x1acc')](_0x2d1bd1('0xd54')),'transferCallback':function(){const _0x101dc4=_0x2d1bd1,_0x581fd8=_0x49cbdd()[_0x101dc4('0x137')](_0x2521c2[_0x101dc4('0x1824')],_0x2521c2['selectedItems'],'id');_0x2521c2[_0x101dc4('0x25dc')]=_0x49cbdd()[_0x101dc4('0x109a')](_0x581fd8)?![]:!![];}},_0x2521c2[_0x2d1bd1('0xdf0')]=_0x3e7196,_0x2521c2[_0x2d1bd1('0xc8')]=_0x309635,_0x2521c2['closeDialog']=_0x43b691;function _0x3e7196(){const _0x309e00=_0x2d1bd1;return _0x1b538f[_0x309e00('0x1ba2')](_0x309e00('0x20bf'))?_0x80e652()[_0x309e00('0x16df')](function(_0x58d566){const _0x3f3708=_0x309e00;_0x2cbebf[_0x3f3708('0x1db9')]({'title':_0x58d566[_0x3f3708('0x11c5')]?_0x3f3708('0x14f7')+_0x58d566['status']+_0x3f3708('0x16e4')+_0x58d566[_0x3f3708('0x1833')]:_0x3f3708('0x1040'),'msg':_0x58d566[_0x3f3708('0x11c5')]?JSON[_0x3f3708('0x678')](_0x58d566[_0x3f3708('0x1457')]):_0x58d566[_0x3f3708('0x9b6')]()});}):_0x100d6e()[_0x309e00('0x17e7')](function(_0x2d9751){const _0x50465c=_0x309e00;return _0x2521c2[_0x50465c('0x16f8')]=_0x2d9751,_0x80e652();})[_0x309e00('0x16df')](function(_0x57a8c9){const _0x5b0e2a=_0x309e00;_0x2cbebf[_0x5b0e2a('0x1db9')]({'title':_0x57a8c9[_0x5b0e2a('0x11c5')]?_0x5b0e2a('0x14f7')+_0x57a8c9[_0x5b0e2a('0x11c5')]+_0x5b0e2a('0x16e4')+_0x57a8c9[_0x5b0e2a('0x1833')]:_0x5b0e2a('0x1040'),'msg':_0x57a8c9['status']?JSON[_0x5b0e2a('0x678')](_0x57a8c9[_0x5b0e2a('0x1457')]):_0x57a8c9[_0x5b0e2a('0x9b6')]()});});}function _0x100d6e(){return _0x29ea0b(function(_0x2ae3cd,_0x232067){const _0x5ded42=a0_0xd29e;_0x1af88d[_0x5ded42('0x383')]['get']({'userProfileId':_0x2521c2[_0x5ded42('0x197c')][_0x5ded42('0x1e76')],'name':_0x5ded42('0xeee')})[_0x5ded42('0x1af5')][_0x5ded42('0x17e7')](function(_0x4fe9f1){const _0x43f948=_0x5ded42,_0x42c3fc=_0x4fe9f1&&_0x4fe9f1[_0x43f948('0x2319')]?_0x4fe9f1[_0x43f948('0x2319')][0x0]:null;_0x2ae3cd(_0x42c3fc);})[_0x5ded42('0x16df')](function(_0x4ed77c){_0x232067(_0x4ed77c);});});}function _0x80e652(){return _0x29ea0b(function(_0x4fd77f,_0x115497){const _0x3f05d8=a0_0xd29e;return _0x5a3594()[_0x3f05d8('0x17e7')](function(_0x1bcb63){const _0x3df017=_0x3f05d8;return _0x2521c2['items']=_0x1bcb63[_0x3df017('0x2319')]?_0x1bcb63[_0x3df017('0x2319')]:[],_0x1b538f[_0x3df017('0x1ba2')](_0x3df017('0x20bf'))?_0x1bcb63:_0x2521c2['section']?_0x2521c2[_0x3df017('0x16f8')]['autoAssociation']?_0x1bcb63:_0x1d0f7d():null;})[_0x3f05d8('0x17e7')](function(_0x3408c2){const _0x8958c2=_0x3f05d8,_0x39ef04=_0x3408c2&&_0x3408c2['rows']?_0x3408c2[_0x8958c2('0x2319')]:[];return _0x2521c2['allowedItems']=_0x49cbdd()[_0x8958c2('0x787')](_0x39ef04,function(_0x17f42e){const _0x25ece6=_0x8958c2;return _0x49cbdd()[_0x25ece6('0xe8e')](_0x2521c2[_0x25ece6('0x532')],{'id':_0x1b538f[_0x25ece6('0x1ba2')]('admin')||_0x2521c2[_0x25ece6('0x16f8')][_0x25ece6('0x9e3')]?_0x17f42e['id']:_0x17f42e['resourceId']});}),_0x2521c2['startingAllowedItems']=angular[_0x8958c2('0x14e5')](_0x2521c2[_0x8958c2('0x2722')]),_0x2521c2['items'][_0x8958c2('0xccd')](function(_0x7191a8){const _0x8052f7=_0x8958c2,_0x4dfee2=_0x49cbdd()['find'](_0x2521c2[_0x8052f7('0x2722')],{'id':_0x7191a8['id']});_0x2521c2[_0x8052f7('0x197c')][_0x8052f7('0x1085')]===_0x8052f7('0x20bf')?_0x7191a8[_0x8052f7('0xc98')]=!![]:_0x7191a8[_0x8052f7('0xc98')]=typeof _0x4dfee2!==_0x8052f7('0xfad')?!![]:![];}),_0x27531b();})[_0x3f05d8('0x17e7')](function(_0x20d6d6){const _0x5b7383=_0x3f05d8,_0x1cb2fe=_0x20d6d6&&_0x20d6d6[_0x5b7383('0x2319')]?_0x20d6d6[_0x5b7383('0x2319')]:[];_0x2521c2[_0x5b7383('0xc14')]=_0x49cbdd()[_0x5b7383('0x787')](_0x1cb2fe,function(_0x570761){const _0x1acd06=_0x5b7383;return _0x49cbdd()['find'](_0x2521c2[_0x1acd06('0x532')],{'id':_0x570761['id']});}),_0x2521c2[_0x5b7383('0x1824')]=angular['copy'](_0x2521c2[_0x5b7383('0xc14')]),_0x2521c2[_0x5b7383('0x26f4')][_0x5b7383('0xc14')]=_0x2521c2['selectedItems'],_0x2521c2[_0x5b7383('0x26f4')][_0x5b7383('0x532')]=_0x49cbdd()['differenceBy'](_0x2521c2[_0x5b7383('0x2722')],_0x2521c2[_0x5b7383('0x26f4')][_0x5b7383('0xc14')],'id'),_0x4fd77f();})['catch'](function(_0x5c2192){_0x115497(_0x5c2192);});});}function _0x1d0f7d(){return _0x29ea0b(function(_0x3da265,_0x20c1ed){const _0x3818dd=a0_0xd29e;return _0x1af88d[_0x3818dd('0x78d')][_0x3818dd('0x1c53')]({'sectionId':_0x2521c2[_0x3818dd('0x16f8')]['id'],'nolimit':!![]})[_0x3818dd('0x1af5')]['then'](function(_0x537e24){_0x3da265(_0x537e24);})[_0x3818dd('0x16df')](function(_0x4a2414){_0x20c1ed(_0x4a2414);});});}function _0x27531b(){return _0x29ea0b(function(_0x40b1ad,_0x41be85){const _0x1d1d3d=a0_0xd29e,_0x5b2558=_0x1af88d[_0x2521c2[_0x1d1d3d('0x714')]];return _0x5b2558[_0x2521c2[_0x1d1d3d('0x27a0')]]({'id':_0x2521c2['ivrCampaign']['id'],'fields':_0x1d1d3d('0x12d2'),'nolimit':!![]})['$promise']['then'](function(_0xf6785a){_0x40b1ad(_0xf6785a);})[_0x1d1d3d('0x16df')](function(_0x5d460d){_0x41be85(_0x5d460d);});});}function _0x5a3594(){return _0x29ea0b(function(_0x6a567,_0x4574b8){const _0x5685fa=a0_0xd29e;return _0x1af88d[_0x5685fa('0x25b')][_0x5685fa('0x1c53')]({'fields':_0x5685fa('0x12d2'),'nolimit':!![]})[_0x5685fa('0x1af5')][_0x5685fa('0x17e7')](function(_0x4a03df){_0x6a567(_0x4a03df);})[_0x5685fa('0x16df')](function(_0x3feca3){_0x4574b8(_0x3feca3);});});}function _0xdf085f(_0x63f624){return _0x29ea0b(function(_0x29e8ee,_0x147269){const _0x47ce6c=a0_0xd29e;if(_0x49cbdd()[_0x47ce6c('0x109a')](_0x63f624))_0x29e8ee();else{const _0x10d679=_0x1af88d[_0x2521c2[_0x47ce6c('0x714')]];_0x10d679[_0x2521c2[_0x47ce6c('0xed')]]({'id':_0x2521c2[_0x47ce6c('0x2148')]['id'],'ids':_0x49cbdd()[_0x47ce6c('0x787')](_0x63f624,'id')})['$promise'][_0x47ce6c('0x17e7')](function(){_0x29e8ee();})[_0x47ce6c('0x16df')](function(_0x3e1a51){_0x147269(_0x3e1a51);});}});}function _0x159ff2(_0x197f10){return _0x29ea0b(function(_0x344a30,_0x4c67d3){const _0x46661f=a0_0xd29e;if(_0x49cbdd()[_0x46661f('0x109a')](_0x197f10))_0x344a30();else{const _0x3f702b=_0x1af88d[_0x2521c2[_0x46661f('0x714')]];_0x3f702b[_0x2521c2[_0x46661f('0x27c')]]({'id':_0x2521c2[_0x46661f('0x2148')]['id'],'ids':_0x49cbdd()[_0x46661f('0x787')](_0x197f10,'id')})[_0x46661f('0x1af5')][_0x46661f('0x17e7')](function(){_0x344a30();})[_0x46661f('0x16df')](function(_0x468931){_0x4c67d3(_0x468931);});}});}function _0x309635(){const _0x3a29f5=_0x2d1bd1;_0x2521c2[_0x3a29f5('0x782')]=!![];const _0x38d4c9=_0x49cbdd()[_0x3a29f5('0x1ada')](_0x2521c2[_0x3a29f5('0x1824')],_0x2521c2['selectedItems'],'id'),_0x4503c1=_0x49cbdd()[_0x3a29f5('0x1ada')](_0x2521c2[_0x3a29f5('0xc14')],_0x2521c2[_0x3a29f5('0x1824')],'id');return _0x159ff2(_0x38d4c9)[_0x3a29f5('0x17e7')](function(){return _0xdf085f(_0x4503c1);})['then'](function(){const _0x30bf73=_0x3a29f5;_0x2521c2[_0x30bf73('0x25dc')]=![],_0x2521c2[_0x30bf73('0x181b')]=angular[_0x30bf73('0x14e5')](_0x2521c2['allowedItems']),_0x2521c2[_0x30bf73('0x1824')]=angular[_0x30bf73('0x14e5')](_0x2521c2['selectedItems']),_0x2cbebf[_0x30bf73('0x130d')]({'title':_0x30bf73('0x9d1'),'msg':_0x30bf73('0x1611')});})[_0x3a29f5('0x16df')](function(_0x1dfd5f){const _0x33ca36=_0x3a29f5;_0x2cbebf[_0x33ca36('0x1db9')]({'title':_0x1dfd5f[_0x33ca36('0x11c5')]?_0x33ca36('0x14f7')+_0x1dfd5f[_0x33ca36('0x11c5')]+_0x33ca36('0x16e4')+_0x1dfd5f[_0x33ca36('0x1833')]:_0x33ca36('0x244e'),'msg':_0x1dfd5f[_0x33ca36('0x11c5')]?JSON['stringify'](_0x1dfd5f['data']):_0x1dfd5f[_0x33ca36('0x9b6')]()});})['finally'](function(){const _0x25187f=_0x3a29f5;_0x2521c2[_0x25187f('0x782')]=![];});}function _0x43b691(){const _0x4716ec=_0x2d1bd1;_0x144614[_0x4716ec('0x212a')]();}}const _0x47b2fd=_0x1ed621;_0x82aba[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$mdDialog',_0x4376d8('0x108a'),'api',_0x4376d8('0x2148'),'listsCampaign','Sequence','$q'];function _0x82aba(_0x349cd5,_0x930441,_0x43fcec,_0x15949f,_0x5544b6,_0x523d74,_0x3f7048,_0x528e39){const _0x17f83c=_0x4376d8,_0x58a4cb=this;_0x58a4cb[_0x17f83c('0x19d5')]=[],_0x58a4cb[_0x17f83c('0x532')]=_0x523d74?_0x523d74:[],_0x58a4cb['loading']=![],_0x58a4cb[_0x17f83c('0x136e')]=_0x3a3754,_0x58a4cb[_0x17f83c('0x1f11')]=_0x3cfcb9,_0x58a4cb[_0x17f83c('0x20de')]=_0x5e70c9,_0x58a4cb['isIndeterminate']=_0x325c15,_0x58a4cb[_0x17f83c('0x2da')]=_0x151119,_0x58a4cb[_0x17f83c('0x17ef')]=_0x14be79,_0x58a4cb[_0x17f83c('0x28b3')]=_0x2f4883;function _0x5e70c9(_0x210983,_0x2c954f){const _0x202895=_0x17f83c,_0x445968=_0x2c954f[_0x202895('0x2567')](_0x210983);_0x445968>-0x1?_0x2c954f['splice'](_0x445968,0x1):_0x2c954f['push'](_0x210983);}function _0x3cfcb9(_0x327c5f,_0x5e8ed2){const _0x48e880=_0x17f83c;return _0x5e8ed2[_0x48e880('0x2567')](_0x327c5f)>-0x1;}function _0x325c15(){const _0x8de844=_0x17f83c;return _0x58a4cb[_0x8de844('0x19d5')][_0x8de844('0x1f73')]!==0x0&&_0x58a4cb[_0x8de844('0x19d5')][_0x8de844('0x1f73')]!==_0x58a4cb['items']['length'];}function _0x151119(){const _0x59a11b=_0x17f83c;return _0x58a4cb[_0x59a11b('0x19d5')][_0x59a11b('0x1f73')]===_0x58a4cb[_0x59a11b('0x532')]['length'];}function _0x14be79(){const _0x4b9e7e=_0x17f83c;if(_0x58a4cb[_0x4b9e7e('0x19d5')][_0x4b9e7e('0x1f73')]===_0x58a4cb['items'][_0x4b9e7e('0x1f73')])_0x58a4cb[_0x4b9e7e('0x19d5')]=[];else(_0x58a4cb[_0x4b9e7e('0x19d5')][_0x4b9e7e('0x1f73')]===0x0||_0x58a4cb[_0x4b9e7e('0x19d5')]['length']>0x0)&&(_0x58a4cb[_0x4b9e7e('0x19d5')]=_0x58a4cb[_0x4b9e7e('0x532')][_0x4b9e7e('0x275f')](0x0));}function _0x3a3754(){const _0x3b0ecf=_0x17f83c;_0x930441[_0x3b0ecf('0x212a')]();}function _0x2f4883(){_0x58a4cb['loading']=!![];const _0x2de298=_0x160620();_0x2de298['finally'](function(){const _0x21710a=a0_0xd29e;_0x58a4cb[_0x21710a('0x782')]=![],_0x3a3754();});}function _0x160620(){return _0x528e39(function(_0x3c1ffb){const _0x27ccb9=a0_0xd29e;for(let _0xb0028b=0x0;_0xb0028b<_0x58a4cb[_0x27ccb9('0x19d5')]['length'];_0xb0028b+=0x1){_0x1825df(_0x5544b6['id'],_0x58a4cb[_0x27ccb9('0x19d5')][_0xb0028b]);}_0x547b51(_0x3c1ffb);});}function _0x1825df(_0x1fef3e,_0x450400){const _0x450ae1=_0x17f83c,_0x3ab9bd=_0x450400['id'];_0x3f7048[_0x450ae1('0xb65')](function(){const _0x1f5c71=_0x450ae1;return _0x15949f['campaign'][_0x1f5c71('0x1b63')]({'id':_0x1fef3e,'ids':_0x3ab9bd})['$promise'][_0x1f5c71('0x17e7')](function(){const _0xde7844=_0x1f5c71;return _0x15949f[_0xde7844('0x2395')][_0xde7844('0x147f')]({'id':_0x1fef3e,'ids':_0x3ab9bd,'dialCheckDuplicateType':_0xde7844('0x360')})[_0xde7844('0x1af5')];})[_0x1f5c71('0x17e7')](function(){const _0x31d0db=_0x1f5c71;_0x43fcec[_0x31d0db('0x130d')]({'title':'Reset\x20Succesfull','msg':_0x31d0db('0x371')+_0x450400[_0x31d0db('0x2aa')]+'\x20has\x20been\x20reset'});})['catch'](function(_0xe4af80){const _0x158655=_0x1f5c71;_0x43fcec[_0x158655('0x1db9')]({'title':_0xe4af80[_0x158655('0x11c5')]?_0x158655('0x14f7')+_0xe4af80[_0x158655('0x11c5')]+_0x158655('0x16e4')+_0xe4af80['statusText']:_0x158655('0x967'),'msg':_0xe4af80[_0x158655('0x11c5')]?JSON[_0x158655('0x678')](_0xe4af80[_0x158655('0x1457')]):_0xe4af80[_0x158655('0x9b6')]()});});});}function _0x547b51(_0x2e2ff5){const _0x56fb04=_0x17f83c;_0x3f7048[_0x56fb04('0xb65')](function(){return _0x2e2ff5();});}}const _0x39b64e=_0x82aba,_0x94bac2=_0x4cf2bc['p']+_0x4376d8('0xbb5'),_0x28331f=_0x4cf2bc['p']+_0x4376d8('0x19cd'),_0x41dd9c=_0x4cf2bc['p']+_0x4376d8('0xed3'),_0x9c7932=_0x4cf2bc['p']+'src/js/modules/main/apps/motiondialer/views/ivrCampaigns/edit/resetlist/resetlist.html/resetlist.html';_0x194cba[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting','api',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x2148'),_0x4376d8('0x383')];function _0x194cba(_0x5d602b,_0x1179d3,_0x4566f2,_0x1efa6c,_0x38a17a,_0x2cce0c,_0x2df7f7,_0x35950e,_0x32d064,_0x37dd1b,_0x148614,_0x259b3b){const _0x40ee5a=_0x4376d8,_0x28c261=this;_0x28c261[_0x40ee5a('0x197c')]=_0x37dd1b[_0x40ee5a('0x2831')](),_0x28c261[_0x40ee5a('0x1d11')]=_0x2cce0c,_0x28c261[_0x40ee5a('0x1aeb')]=_0x2df7f7,_0x28c261[_0x40ee5a('0x1572')]=_0x28c261[_0x40ee5a('0x1aeb')][_0x40ee5a('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x28c261[_0x40ee5a('0xaed')]=_0x1179d3[_0x40ee5a('0x14fe')]()+_0x40ee5a('0x14')+_0x1179d3[_0x40ee5a('0x108')](),_0x28c261[_0x40ee5a('0x2148')]=_0x148614||_0x5d602b[_0x40ee5a('0x16fb')][_0x40ee5a('0x2148')]||{},_0x28c261[_0x40ee5a('0x383')]=_0x259b3b&&_0x259b3b[_0x40ee5a('0x335')]==0x1?_0x259b3b[_0x40ee5a('0x2319')][0x0]:null,_0x28c261[_0x40ee5a('0x103e')]=_0x37dd1b[_0x40ee5a('0x17a9')](_0x28c261['userProfileSection']?_0x28c261[_0x40ee5a('0x383')]['crudPermissions']:null),_0x28c261[_0x40ee5a('0x6ee')]={},_0x28c261['selectedTab']=_0x5d602b[_0x40ee5a('0x16fb')][_0x40ee5a('0x1523')]||0x0,_0x28c261[_0x40ee5a('0x1459')]=_0x475046,_0x28c261[_0x40ee5a('0x192f')]=_0x2fe2ed,_0x28c261['blacklistadddialog']=_0x35711e,_0x28c261[_0x40ee5a('0xac4')]=_0x184fb5,_0x28c261[_0x40ee5a('0x2794')]=_0x33f833,_0x28c261['alert']=_0x32d064[_0x40ee5a('0x1178')],_0x28c261[_0x40ee5a('0x13ee')]=_0x12d384,_0x28c261[_0x40ee5a('0x1690')]=_0x713db9,_0x37dd1b[_0x40ee5a('0x1ba2')](_0x40ee5a('0x20bf'))?_0x35950e[_0x40ee5a('0x252a')][_0x40ee5a('0x1c53')]({'fields':_0x40ee5a('0x12d2'),'sort':_0x40ee5a('0x2aa')})[_0x40ee5a('0x1af5')][_0x40ee5a('0x17e7')](function(_0x5a77f8){const _0x1a149f=_0x40ee5a;_0x28c261[_0x1a149f('0x19cb')]=_0x5a77f8[_0x1a149f('0x2319')]||[];})[_0x40ee5a('0x16df')](function(_0x59f607){const _0x43823f=_0x40ee5a;_0x32d064[_0x43823f('0x1db9')]({'title':_0x59f607[_0x43823f('0x11c5')]?'API:'+_0x59f607[_0x43823f('0x11c5')]+_0x43823f('0x16e4')+_0x59f607[_0x43823f('0x1833')]:_0x43823f('0x130a'),'msg':_0x59f607[_0x43823f('0x1457')]?JSON[_0x43823f('0x678')](_0x59f607['data']):_0x59f607['toString']()});}):_0x35950e[_0x40ee5a('0x252a')][_0x40ee5a('0x1c53')]({'fields':_0x40ee5a('0x12d2'),'sort':_0x40ee5a('0x2aa')})[_0x40ee5a('0x1af5')][_0x40ee5a('0x17e7')](function(_0x211d40){const _0x4bc23a=_0x40ee5a;_0x28c261['trunks']=_0x211d40[_0x4bc23a('0x2319')]||[];})[_0x40ee5a('0x17e7')](function(){const _0x2cff9f=_0x40ee5a;return _0x35950e[_0x2cff9f('0x383')]['get']({'userProfileId':_0x28c261[_0x2cff9f('0x197c')][_0x2cff9f('0x1e76')],'sectionId':0x3f3})['$promise'];})[_0x40ee5a('0x17e7')](function(_0x3df320){const _0x4075ef=_0x40ee5a,_0x485f76=_0x3df320&&_0x3df320[_0x4075ef('0x2319')]?_0x3df320[_0x4075ef('0x2319')][0x0]:null;if(!_0x485f76)_0x28c261['trunks']=[];else{if(!_0x485f76['autoAssociation'])return _0x35950e[_0x4075ef('0x78d')][_0x4075ef('0x1c53')]({'sectionId':_0x485f76['id']})['$promise'][_0x4075ef('0x17e7')](function(_0x2ffae2){const _0x21c4ce=_0x4075ef,_0x2629da=_0x49cbdd()[_0x21c4ce('0x787')](_0x2ffae2['rows'],function(_0x48ebb3){const _0x182b70=_0x21c4ce;return _0x49cbdd()[_0x182b70('0xe8e')](_0x28c261[_0x182b70('0x19cb')],{'id':_0x48ebb3[_0x182b70('0x5db')]});});_0x28c261['trunks'][_0x21c4ce('0xccd')](function(_0xc5ce50){const _0x22fcae=_0x21c4ce;!_0x49cbdd()['some'](_0x2629da,['id',_0xc5ce50['id']])&&(_0xc5ce50[_0x22fcae('0xe5c')]=![]),_0x2629da[_0x22fcae('0x269f')](_0xc5ce50);}),_0x28c261[_0x21c4ce('0x19cb')]=_0x2629da;});}})[_0x40ee5a('0x16df')](function(_0x35c338){const _0x1e0b27=_0x40ee5a;_0x32d064[_0x1e0b27('0x1db9')]({'title':_0x35c338['status']?_0x1e0b27('0x14f7')+_0x35c338['status']+_0x1e0b27('0x16e4')+_0x35c338[_0x1e0b27('0x1833')]:_0x1e0b27('0x2825'),'msg':_0x35c338['data']?JSON[_0x1e0b27('0x678')](_0x35c338[_0x1e0b27('0x1457')]):_0x35c338['toString']()});}),_0x37dd1b[_0x40ee5a('0x1ba2')](_0x40ee5a('0x20bf'))?_0x35950e['squareProject'][_0x40ee5a('0x1c53')]({'fields':_0x40ee5a('0x12d2'),'sort':_0x40ee5a('0x2aa')})[_0x40ee5a('0x1af5')][_0x40ee5a('0x17e7')](function(_0x7e801d){const _0x2f85a8=_0x40ee5a;_0x28c261[_0x2f85a8('0x20e0')]=_0x7e801d['rows']||[];})['catch'](function(_0x2bdfc8){const _0x32b77b=_0x40ee5a;_0x32d064[_0x32b77b('0x1db9')]({'title':_0x2bdfc8[_0x32b77b('0x11c5')]?_0x32b77b('0x14f7')+_0x2bdfc8[_0x32b77b('0x11c5')]+'\x20-\x20'+_0x2bdfc8[_0x32b77b('0x1833')]:_0x32b77b('0x13d0'),'msg':_0x2bdfc8[_0x32b77b('0x1457')]?JSON[_0x32b77b('0x678')](_0x2bdfc8[_0x32b77b('0x1457')]):_0x2bdfc8[_0x32b77b('0x9b6')]()});}):_0x35950e[_0x40ee5a('0x1218')][_0x40ee5a('0x1c53')]({'fields':_0x40ee5a('0x12d2'),'sort':'name'})[_0x40ee5a('0x1af5')]['then'](function(_0x44955b){const _0x4f0977=_0x40ee5a;_0x28c261[_0x4f0977('0x20e0')]=_0x44955b['rows']||[];})[_0x40ee5a('0x17e7')](function(){const _0x5864bd=_0x40ee5a;return _0x35950e[_0x5864bd('0x383')]['get']({'userProfileId':_0x28c261[_0x5864bd('0x197c')][_0x5864bd('0x1e76')],'sectionId':0x44f})[_0x5864bd('0x1af5')];})[_0x40ee5a('0x17e7')](function(_0x519a11){const _0x51adeb=_0x40ee5a,_0x58904d=_0x519a11&&_0x519a11[_0x51adeb('0x2319')]?_0x519a11[_0x51adeb('0x2319')][0x0]:null;if(!_0x58904d){const _0x4eeedc=[];let _0x384ddd=null;_0x28c261[_0x51adeb('0x2148')]&&(_0x384ddd=_0x49cbdd()['find'](_0x28c261['projects'],{'id':Number(_0x28c261[_0x51adeb('0x2148')][_0x51adeb('0x981')])}));for(let _0x3f2bab=0x0;_0x3f2bab<_0x28c261[_0x51adeb('0x20e0')]['length'];_0x3f2bab++){_0x384ddd&&_0x28c261['projects'][_0x3f2bab]['id']===_0x384ddd['id']&&(_0x28c261[_0x51adeb('0x20e0')][_0x3f2bab][_0x51adeb('0xe5c')]=![],_0x4eeedc[_0x51adeb('0x269f')](_0x28c261['projects'][_0x3f2bab]));}_0x28c261[_0x51adeb('0x20e0')]=_0x4eeedc;}else{if(!_0x58904d[_0x51adeb('0x9e3')])return _0x35950e[_0x51adeb('0x78d')]['get']({'sectionId':_0x58904d['id']})[_0x51adeb('0x1af5')]['then'](function(_0x21a42f){const _0x245dd6=_0x51adeb,_0x5cb5de=_0x49cbdd()[_0x245dd6('0x787')](_0x21a42f[_0x245dd6('0x2319')],function(_0x4b6e49){const _0x2afc89=_0x245dd6;return _0x49cbdd()['find'](_0x28c261['projects'],{'id':_0x4b6e49[_0x2afc89('0x5db')]});});let _0x10bac4=null;_0x28c261[_0x245dd6('0x2148')]&&(_0x10bac4=_0x49cbdd()['find'](_0x28c261['projects'],{'id':Number(_0x28c261[_0x245dd6('0x2148')]['SquareProjectId'])}));if(_0x10bac4&&!_0x49cbdd()[_0x245dd6('0x26f8')](_0x5cb5de,['id',_0x10bac4['id']])){const _0x3dbf41=_0x49cbdd()[_0x245dd6('0xe8e')](_0x28c261[_0x245dd6('0x20e0')],{'id':_0x10bac4['id']});_0x3dbf41[_0x245dd6('0xe5c')]=![],_0x5cb5de[_0x245dd6('0x269f')](_0x3dbf41);}_0x28c261[_0x245dd6('0x20e0')]=_0x5cb5de;});}})[_0x40ee5a('0x16df')](function(_0x1ef8d4){const _0xa2a760=_0x40ee5a;_0x32d064[_0xa2a760('0x1db9')]({'title':_0x1ef8d4[_0xa2a760('0x11c5')]?_0xa2a760('0x14f7')+_0x1ef8d4[_0xa2a760('0x11c5')]+'\x20-\x20'+_0x1ef8d4[_0xa2a760('0x1833')]:_0xa2a760('0x27b7'),'msg':_0x1ef8d4['data']?JSON[_0xa2a760('0x678')](_0x1ef8d4[_0xa2a760('0x1457')]):_0x1ef8d4[_0xa2a760('0x9b6')]()});}),_0x37dd1b[_0x40ee5a('0x1ba2')](_0x40ee5a('0x20bf'))?_0x35950e[_0x40ee5a('0x231f')][_0x40ee5a('0x1c53')]({'fields':_0x40ee5a('0x12d2'),'sort':_0x40ee5a('0x2aa'),'IntervalId':_0x40ee5a('0x9bb')})[_0x40ee5a('0x1af5')][_0x40ee5a('0x17e7')](function(_0x1106ae){const _0x561419=_0x40ee5a;_0x28c261[_0x561419('0x231f')]=_0x1106ae[_0x561419('0x2319')]||[];})[_0x40ee5a('0x16df')](function(_0x1344cb){const _0xc6940a=_0x40ee5a;_0x32d064[_0xc6940a('0x1db9')]({'title':_0x1344cb[_0xc6940a('0x11c5')]?'API:'+_0x1344cb[_0xc6940a('0x11c5')]+_0xc6940a('0x16e4')+_0x1344cb[_0xc6940a('0x1833')]:_0xc6940a('0xebd'),'msg':_0x1344cb[_0xc6940a('0x1457')]?JSON[_0xc6940a('0x678')](_0x1344cb[_0xc6940a('0x1457')]):_0x1344cb['toString']()});}):_0x35950e['interval'][_0x40ee5a('0x1c53')]({'fields':'id,name','sort':_0x40ee5a('0x2aa'),'IntervalId':_0x40ee5a('0x9bb')})[_0x40ee5a('0x1af5')][_0x40ee5a('0x17e7')](function(_0x451b32){const _0x20d0a5=_0x40ee5a;_0x28c261[_0x20d0a5('0x231f')]=_0x451b32[_0x20d0a5('0x2319')]||[];})[_0x40ee5a('0x17e7')](function(){const _0x487e17=_0x40ee5a;return _0x35950e[_0x487e17('0x383')][_0x487e17('0x1c53')]({'userProfileId':_0x28c261['currentUser'][_0x487e17('0x1e76')],'sectionId':0x3ec})[_0x487e17('0x1af5')];})['then'](function(_0x41ac0a){const _0x3ba721=_0x40ee5a,_0x42f0f8=_0x41ac0a&&_0x41ac0a[_0x3ba721('0x2319')]?_0x41ac0a[_0x3ba721('0x2319')][0x0]:null;if(!_0x42f0f8){const _0x2218e9=[];let _0x4d48bd=null;_0x28c261[_0x3ba721('0x2148')]&&(_0x4d48bd=_0x49cbdd()['find'](_0x28c261[_0x3ba721('0x231f')],{'id':Number(_0x28c261['ivrCampaign'][_0x3ba721('0x24a9')])}));for(let _0x4e6cf3=0x0;_0x4e6cf3<_0x28c261[_0x3ba721('0x231f')]['length'];_0x4e6cf3++){_0x4d48bd&&_0x28c261[_0x3ba721('0x231f')][_0x4e6cf3]['id']===_0x4d48bd['id']&&(_0x28c261[_0x3ba721('0x231f')][_0x4e6cf3][_0x3ba721('0xe5c')]=![],_0x2218e9[_0x3ba721('0x269f')](_0x28c261[_0x3ba721('0x231f')][_0x4e6cf3]));}_0x28c261['interval']=_0x2218e9;}else{if(!_0x42f0f8[_0x3ba721('0x9e3')])return _0x35950e[_0x3ba721('0x78d')]['get']({'sectionId':_0x42f0f8['id']})[_0x3ba721('0x1af5')][_0x3ba721('0x17e7')](function(_0x466054){const _0x3cef25=_0x3ba721,_0x2aca71=_0x49cbdd()[_0x3cef25('0x787')](_0x466054['rows'],function(_0x524edb){const _0x345561=_0x3cef25;return _0x49cbdd()[_0x345561('0xe8e')](_0x28c261[_0x345561('0x231f')],{'id':_0x524edb[_0x345561('0x5db')]});});let _0x173f2d=null;_0x28c261['ivrCampaign']&&(_0x173f2d=_0x49cbdd()[_0x3cef25('0xe8e')](_0x28c261[_0x3cef25('0x231f')],{'id':Number(_0x28c261[_0x3cef25('0x2148')][_0x3cef25('0x24a9')])}));if(_0x173f2d&&!_0x49cbdd()[_0x3cef25('0x26f8')](_0x2aca71,['id',_0x173f2d['id']])){const _0x4a4929=_0x49cbdd()[_0x3cef25('0xe8e')](_0x28c261[_0x3cef25('0x231f')],{'id':_0x173f2d['id']});_0x4a4929[_0x3cef25('0xe5c')]=![],_0x2aca71[_0x3cef25('0x269f')](_0x4a4929);}_0x28c261[_0x3cef25('0x231f')]=_0x2aca71;});}})[_0x40ee5a('0x16df')](function(_0x1c80f9){const _0x125087=_0x40ee5a;_0x32d064[_0x125087('0x1db9')]({'title':_0x1c80f9[_0x125087('0x11c5')]?_0x125087('0x14f7')+_0x1c80f9['status']+_0x125087('0x16e4')+_0x1c80f9['statusText']:_0x125087('0x1f79'),'msg':_0x1c80f9[_0x125087('0x1457')]?JSON['stringify'](_0x1c80f9[_0x125087('0x1457')]):_0x1c80f9[_0x125087('0x9b6')]()});});function _0x475046(_0x37a319,_0x47f715){const _0x52ce96=_0x40ee5a;_0x4566f2[_0x52ce96('0x28e2')]({'controller':_0x52ce96('0x18c3'),'controllerAs':'vm','templateUrl':_0x94bac2,'parent':angular['element'](_0x1efa6c[_0x52ce96('0x13aa')]),'targetEvent':_0x47f715,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x37a319,'ivrCampaigns':_0x28c261[_0x52ce96('0x27b4')]?_0x28c261['ivrCampaigns']['rows']:[],'crudPermissions':_0x28c261[_0x52ce96('0x103e')]}});}function _0x2fe2ed(_0x30b0a1,_0x3e6ad7){const _0x31f39d=_0x40ee5a;_0x4566f2[_0x31f39d('0x28e2')]({'controller':_0x31f39d('0x446'),'controllerAs':'vm','templateUrl':_0x28331f,'parent':angular['element'](_0x1efa6c[_0x31f39d('0x13aa')]),'targetEvent':_0x3e6ad7,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x30b0a1,'ivrCampaigns':_0x28c261['ivrCampaigns']?_0x28c261[_0x31f39d('0x27b4')][_0x31f39d('0x2319')]:[],'crudPermissions':_0x28c261[_0x31f39d('0x103e')]}});}function _0x35711e(_0x105dde,_0x263c2f){const _0x3021ab=_0x40ee5a;_0x4566f2[_0x3021ab('0x28e2')]({'controller':_0x3021ab('0xeb4'),'controllerAs':'vm','templateUrl':_0x41dd9c,'parent':angular[_0x3021ab('0x1ce1')](_0x1efa6c[_0x3021ab('0x13aa')]),'targetEvent':_0x263c2f,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x105dde,'ivrCampaigns':_0x28c261[_0x3021ab('0x27b4')]?_0x28c261[_0x3021ab('0x27b4')][_0x3021ab('0x2319')]:[],'crudPermissions':_0x28c261[_0x3021ab('0x103e')]}});}function _0x3f3ad2(_0x59435f,_0x15dc99){const _0xa531bd=_0x40ee5a,_0x12b161=_0x15dc99['id'];_0x35950e['campaign']['removeLists']({'id':_0x59435f,'ids':_0x12b161})[_0xa531bd('0x1af5')][_0xa531bd('0x17e7')](function(){const _0x2e82da=_0xa531bd;return _0x35950e[_0x2e82da('0x2395')][_0x2e82da('0x147f')]({'id':_0x59435f,'ids':_0x12b161,'dialCheckDuplicateType':_0x2e82da('0x360')})[_0x2e82da('0x1af5')];})[_0xa531bd('0x17e7')](function(){const _0x268818=_0xa531bd;_0x32d064[_0x268818('0x130d')]({'title':'Reset\x20Succesfull','msg':_0x268818('0x371')+_0x15dc99[_0x268818('0x2aa')]+'\x20has\x20been\x20reset'});})[_0xa531bd('0x16df')](function(_0x4f0746){const _0x23a066=_0xa531bd;_0x32d064['error']({'title':_0x4f0746[_0x23a066('0x11c5')]?_0x23a066('0x14f7')+_0x4f0746[_0x23a066('0x11c5')]+'\x20-\x20'+_0x4f0746['statusText']:_0x23a066('0x459'),'msg':_0x4f0746[_0x23a066('0x11c5')]?JSON['stringify'](_0x4f0746[_0x23a066('0x1457')]):_0x4f0746[_0x23a066('0x9b6')]()});});}function _0x184fb5(_0x2982d7,_0x2f4948){const _0x36ccdb=_0x40ee5a;_0x35950e[_0x36ccdb('0x2395')][_0x36ccdb('0x852')]({'id':_0x2982d7['id'],'fields':_0x36ccdb('0x12d2'),'nolimit':!![]})[_0x36ccdb('0x1af5')][_0x36ccdb('0x17e7')](function(_0x281e2f){const _0x3ee8b0=_0x36ccdb;if(_0x49cbdd()[_0x3ee8b0('0x390')](_0x281e2f['rows'])||_0x49cbdd()['isEmpty'](_0x281e2f[_0x3ee8b0('0x2319')]))_0x32d064['info']({'title':_0x3ee8b0('0x247a')});else{if(_0x281e2f['rows'][_0x3ee8b0('0x1f73')]===0x1){const _0x22fc4e=_0x4566f2[_0x3ee8b0('0x1121')]()[_0x3ee8b0('0x24d3')](_0x3ee8b0('0x25fd')+_0x281e2f[_0x3ee8b0('0x2319')][0x0]['name']+'\x20?')[_0x3ee8b0('0x211f')](_0x3ee8b0('0xa53')+_0x281e2f[_0x3ee8b0('0x2319')][0x0][_0x3ee8b0('0x2aa')]+_0x3ee8b0('0x1d23')+'\x20will\x20be\x20reset.')[_0x3ee8b0('0x2095')]('Reset\x20List')[_0x3ee8b0('0x104f')](_0x2f4948)['ok']('OK')[_0x3ee8b0('0x1d47')](_0x3ee8b0('0x28a0'));_0x4566f2[_0x3ee8b0('0x28e2')](_0x22fc4e)[_0x3ee8b0('0x17e7')](function(){const _0x2d451d=_0x3ee8b0;_0x3f3ad2(_0x28c261[_0x2d451d('0x2148')]['id'],_0x281e2f[_0x2d451d('0x2319')][0x0]);});}else _0x4566f2[_0x3ee8b0('0x28e2')]({'controller':_0x3ee8b0('0x479'),'controllerAs':'vm','templateUrl':_0x9c7932,'parent':angular['element'](_0x1efa6c[_0x3ee8b0('0x13aa')]),'targetEvent':_0x2f4948,'clickOutsideToClose':![],'locals':{'ivrCampaign':_0x2982d7,'listsCampaign':_0x281e2f?_0x281e2f['rows']:[]}});}})['catch'](function(_0x2a146f){const _0x3afb61=_0x36ccdb;_0x32d064[_0x3afb61('0x1db9')]({'title':_0x2a146f[_0x3afb61('0x11c5')]?_0x3afb61('0x14f7')+_0x2a146f['status']+'\x20-\x20'+_0x2a146f[_0x3afb61('0x1833')]:_0x3afb61('0x23f1'),'msg':_0x2a146f[_0x3afb61('0x11c5')]?JSON['stringify'](_0x2a146f[_0x3afb61('0x1457')]):_0x2a146f[_0x3afb61('0x9b6')]()});});}function _0x33f833(){const _0x46bd8d=_0x40ee5a;if(_0x37dd1b['hasRole'](_0x46bd8d('0x20bf')))_0x5d602b['go']('app.motiondialer.realtime.ivr_campaigns',{});else return _0x35950e[_0x46bd8d('0x383')][_0x46bd8d('0x1c53')]({'userProfileId':_0x37dd1b[_0x46bd8d('0x2831')]()['userProfileId'],'sectionId':0x5e6})[_0x46bd8d('0x1af5')][_0x46bd8d('0x17e7')](function(_0x4362f2){const _0x225ba1=_0x46bd8d,_0x1756bf=_0x4362f2&&_0x4362f2[_0x225ba1('0x2319')]?_0x4362f2[_0x225ba1('0x2319')][0x0]:null;_0x1756bf&&_0x1756bf[_0x225ba1('0x1cd3')]?_0x5d602b['go'](_0x225ba1('0x1bd7'),{}):_0x32d064[_0x225ba1('0x1178')]({'title':_0x38a17a['instant'](_0x225ba1('0x286e')),'msg':_0x38a17a[_0x225ba1('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x46bd8d('0x16df')](function(_0x40a0b9){const _0x5ee859=_0x46bd8d;_0x32d064[_0x5ee859('0x1db9')]({'title':_0x40a0b9[_0x5ee859('0x11c5')]?_0x5ee859('0x14f7')+_0x40a0b9[_0x5ee859('0x11c5')]+_0x5ee859('0x16e4')+_0x40a0b9[_0x5ee859('0x1833')]:_0x5ee859('0x338'),'msg':_0x40a0b9[_0x5ee859('0x11c5')]?JSON[_0x5ee859('0x678')](_0x40a0b9[_0x5ee859('0x1457')]):_0x40a0b9[_0x5ee859('0x9b6')]()});});}function _0x12d384(){const _0x3c9618=_0x40ee5a;_0x5d602b['go'](_0x3c9618('0xf4e'),{},{'reload':_0x3c9618('0xf4e')});}function _0x713db9(){const _0x4edb84=_0x40ee5a;_0x35950e['campaign'][_0x4edb84('0x27ba')]({'id':_0x28c261[_0x4edb84('0x2148')]['id']},_0x28c261[_0x4edb84('0x2148')])['$promise'][_0x4edb84('0x17e7')](function(){const _0x96f629=_0x4edb84;_0x32d064[_0x96f629('0x130d')]({'title':_0x96f629('0x15b9'),'msg':_0x28c261[_0x96f629('0x2148')][_0x96f629('0x2aa')]?_0x28c261[_0x96f629('0x2148')][_0x96f629('0x2aa')]+_0x96f629('0x12b0'):''});})[_0x4edb84('0x16df')](function(_0x3128e5){const _0x3c9e07=_0x4edb84;_0x32d064[_0x3c9e07('0x1db9')]({'title':_0x3128e5[_0x3c9e07('0x11c5')]?_0x3c9e07('0x14f7')+_0x3128e5[_0x3c9e07('0x11c5')]+_0x3c9e07('0x16e4')+_0x3128e5[_0x3c9e07('0x1833')]:_0x3c9e07('0x2146'),'msg':_0x3128e5[_0x3c9e07('0x1457')]?JSON[_0x3c9e07('0x678')](_0x3128e5[_0x3c9e07('0x1457')]):_0x3128e5[_0x3c9e07('0x9b6')]()});});}}const _0x7df4e=_0x194cba;_0x3f6fb0[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0x198f'),'$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x27b4'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils','toasty',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x3f6fb0(_0x776b6d,_0x99d4c6,_0xf9d190,_0xd323a1,_0x23dcc6,_0xee859d,_0x33f8ce,_0x2721f5,_0x4319f2,_0x45a38c,_0x3d6917,_0x3e87de,_0x38614c,_0x1ab811,_0x3c09b5,_0x25d544,_0x5e6249){const _0x2cfaf1=_0x4376d8,_0x3aeffe=this;_0x3aeffe['license']=_0x25d544,_0x3aeffe[_0x2cfaf1('0x1aeb')]=_0x5e6249,_0x3aeffe[_0x2cfaf1('0x197c')]=_0x3c09b5[_0x2cfaf1('0x2831')](),_0x3aeffe[_0x2cfaf1('0x27b4')]=_0x4319f2||{'count':0x0,'rows':[]},_0x3aeffe[_0x2cfaf1('0xdeb')]=_0x45a38c,_0x3aeffe[_0x2cfaf1('0x383')]=_0x3d6917&&_0x3d6917[_0x2cfaf1('0x335')]==0x1?_0x3d6917[_0x2cfaf1('0x2319')][0x0]:null,_0x3aeffe[_0x2cfaf1('0x103e')]=_0x3c09b5[_0x2cfaf1('0x17a9')](_0x3aeffe['userProfileSection']?_0x3aeffe[_0x2cfaf1('0x383')][_0x2cfaf1('0x103e')]:null),_0x3aeffe[_0x2cfaf1('0x23c3')]=_0x2cfaf1('0x27b4'),_0x3aeffe[_0x2cfaf1('0x26a1')]='',_0x3aeffe[_0x2cfaf1('0x24e1')]=null,_0x3aeffe[_0x2cfaf1('0x1cbe')]=[],_0x3aeffe[_0x2cfaf1('0x826')]={'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':_0x2cfaf1('0xe8'),'sort':_0x2cfaf1('0x1ac6'),'limit':0xa,'page':0x1},_0x3aeffe[_0x2cfaf1('0x209c')]=_0x49cbdd()['keyBy']([{'option':_0x2cfaf1('0x14f4'),'value':_0x2cfaf1('0x1632')},{'option':_0x2cfaf1('0xd60'),'value':_0x2cfaf1('0xc4d')},{'option':_0x2cfaf1('0x12c9'),'value':_0x2cfaf1('0x3ce')}],function(_0x59e0b1){const _0x2671c0=_0x2cfaf1;return _0x49cbdd()['replace'](_0x59e0b1[_0x2671c0('0x175b')],new RegExp('\x27','g'),'');}),_0x3aeffe['arraydialOrderByScheduledAt']=_0x49cbdd()['keyBy']([{'option':_0x2cfaf1('0xbc0'),'value':_0x2cfaf1('0x1c13')},{'option':_0x2cfaf1('0x1173'),'value':_0x2cfaf1('0x1cdc')}],function(_0x37eb96){const _0x3af633=_0x2cfaf1;return _0x49cbdd()[_0x3af633('0x737')](_0x37eb96[_0x3af633('0x175b')],new RegExp('\x27','g'),'');}),_0x3aeffe[_0x2cfaf1('0xcd4')]=_0x4b5f64,_0x3aeffe[_0x2cfaf1('0x1459')]=_0x3b05aa,_0x3aeffe['listadddialog']=_0x39d492,_0x3aeffe[_0x2cfaf1('0x2484')]=_0x221d8a,_0x3aeffe[_0x2cfaf1('0xbf4')]=_0x275d7f,_0x3aeffe[_0x2cfaf1('0xda8')]=_0x29f0fa,_0x3aeffe[_0x2cfaf1('0x130d')]=_0x144d86,_0x3aeffe[_0x2cfaf1('0xc6d')]=_0x31af58,_0x3aeffe[_0x2cfaf1('0x12e3')]=_0x1dc868,_0x3aeffe[_0x2cfaf1('0x2466')]=_0x45a211,_0x3aeffe[_0x2cfaf1('0x706')]=_0x52bf90,_0x3aeffe[_0x2cfaf1('0x1af9')]=_0x15c19c,_0x3aeffe['deselectIvrCampaigns']=_0x28a552,_0x3aeffe[_0x2cfaf1('0x18ee')]=_0x3fb7f6,_0x3c09b5[_0x2cfaf1('0x1ba2')](_0x2cfaf1('0x20bf'))?_0x3e87de[_0x2cfaf1('0x252a')][_0x2cfaf1('0x1c53')]({'fields':_0x2cfaf1('0x12d2'),'sort':'name','table':_0x2cfaf1('0xe34')})[_0x2cfaf1('0x1af5')][_0x2cfaf1('0x17e7')](function(_0x273ca9){const _0x4e49f9=_0x2cfaf1;_0x3aeffe[_0x4e49f9('0x19cb')]=_0x273ca9[_0x4e49f9('0x2319')]||[];})[_0x2cfaf1('0x16df')](function(_0x42282e){const _0x1e33d1=_0x2cfaf1;_0x1ab811[_0x1e33d1('0x1db9')]({'title':_0x42282e[_0x1e33d1('0x11c5')]?_0x1e33d1('0x14f7')+_0x42282e[_0x1e33d1('0x11c5')]+'\x20-\x20'+_0x42282e['statusText']:_0x1e33d1('0x130a'),'msg':_0x42282e[_0x1e33d1('0x1457')]?JSON[_0x1e33d1('0x678')](_0x42282e[_0x1e33d1('0x1457')]):_0x42282e['toString']()});}):_0x3e87de[_0x2cfaf1('0x252a')][_0x2cfaf1('0x1c53')]({'fields':'id,name','sort':_0x2cfaf1('0x2aa'),'table':_0x2cfaf1('0xe34')})[_0x2cfaf1('0x1af5')][_0x2cfaf1('0x17e7')](function(_0x383311){const _0xf624e7=_0x2cfaf1;_0x3aeffe[_0xf624e7('0x19cb')]=_0x383311[_0xf624e7('0x2319')]||[];})[_0x2cfaf1('0x17e7')](function(){const _0x3fb1ba=_0x2cfaf1;return _0x3e87de[_0x3fb1ba('0x383')][_0x3fb1ba('0x1c53')]({'userProfileId':_0x3aeffe[_0x3fb1ba('0x197c')]['userProfileId'],'sectionId':0x3f3})[_0x3fb1ba('0x1af5')];})[_0x2cfaf1('0x17e7')](function(_0x267f31){const _0x4c68b2=_0x2cfaf1,_0x250257=_0x267f31&&_0x267f31[_0x4c68b2('0x2319')]?_0x267f31[_0x4c68b2('0x2319')][0x0]:null;if(!_0x250257)_0x3aeffe[_0x4c68b2('0x19cb')]=[];else{if(!_0x250257['autoAssociation'])return _0x3e87de[_0x4c68b2('0x78d')][_0x4c68b2('0x1c53')]({'sectionId':_0x250257['id']})['$promise']['then'](function(_0x1483a9){const _0x843e85=_0x4c68b2,_0x288174=_0x49cbdd()[_0x843e85('0x787')](_0x1483a9[_0x843e85('0x2319')],function(_0x53e41b){const _0x589414=_0x843e85;return _0x49cbdd()['find'](_0x3aeffe[_0x589414('0x19cb')],{'id':_0x53e41b['resourceId']});});_0x3aeffe[_0x843e85('0x19cb')]['forEach'](function(_0x1b7c8e){const _0x8e83e6=_0x843e85;!_0x49cbdd()['some'](_0x288174,['id',_0x1b7c8e['id']])&&(_0x1b7c8e[_0x8e83e6('0xe5c')]=![]),_0x288174[_0x8e83e6('0x269f')](_0x1b7c8e);}),_0x3aeffe[_0x843e85('0x19cb')]=_0x288174;});}})['catch'](function(_0x239261){const _0x518544=_0x2cfaf1;_0x1ab811[_0x518544('0x1db9')]({'title':_0x239261[_0x518544('0x11c5')]?_0x518544('0x14f7')+_0x239261[_0x518544('0x11c5')]+_0x518544('0x16e4')+_0x239261[_0x518544('0x1833')]:_0x518544('0x2825'),'msg':_0x239261[_0x518544('0x1457')]?JSON[_0x518544('0x678')](_0x239261[_0x518544('0x1457')]):_0x239261['toString']()});}),_0x3c09b5[_0x2cfaf1('0x1ba2')](_0x2cfaf1('0x20bf'))?_0x3e87de[_0x2cfaf1('0x1218')][_0x2cfaf1('0x1c53')]({'fields':_0x2cfaf1('0x12d2'),'sort':_0x2cfaf1('0x2aa')})['$promise'][_0x2cfaf1('0x17e7')](function(_0x157413){const _0x3cb739=_0x2cfaf1;_0x3aeffe[_0x3cb739('0x20e0')]=_0x157413['rows']||[];})[_0x2cfaf1('0x16df')](function(_0x205b82){const _0x270533=_0x2cfaf1;_0x1ab811[_0x270533('0x1db9')]({'title':_0x205b82[_0x270533('0x11c5')]?'API:'+_0x205b82['status']+_0x270533('0x16e4')+_0x205b82[_0x270533('0x1833')]:_0x270533('0x13d0'),'msg':_0x205b82[_0x270533('0x1457')]?JSON[_0x270533('0x678')](_0x205b82[_0x270533('0x1457')]):_0x205b82[_0x270533('0x9b6')]()});}):_0x3e87de[_0x2cfaf1('0x1218')][_0x2cfaf1('0x1c53')]({'fields':_0x2cfaf1('0x12d2'),'sort':'name'})[_0x2cfaf1('0x1af5')]['then'](function(_0x2ca151){const _0x4ffaed=_0x2cfaf1;_0x3aeffe[_0x4ffaed('0x20e0')]=_0x2ca151['rows']||[];})[_0x2cfaf1('0x17e7')](function(){const _0x34d625=_0x2cfaf1;return _0x3e87de[_0x34d625('0x383')]['get']({'userProfileId':_0x3aeffe[_0x34d625('0x197c')]['userProfileId'],'sectionId':0x44f})[_0x34d625('0x1af5')];})[_0x2cfaf1('0x17e7')](function(_0x4578c6){const _0x4e5f41=_0x2cfaf1,_0x2d05fa=_0x4578c6&&_0x4578c6[_0x4e5f41('0x2319')]?_0x4578c6[_0x4e5f41('0x2319')][0x0]:null;if(!_0x2d05fa){const _0x13c3ad=[],_0x104522=[];_0x3aeffe['ivrCampaigns']['rows'][_0x4e5f41('0xccd')](function(_0x3e7a29){const _0x192808=_0x4e5f41,_0x5d4686=_0x49cbdd()[_0x192808('0xe8e')](_0x3aeffe[_0x192808('0x20e0')],{'id':Number(_0x3e7a29['SquareProjectId'])});_0x104522[_0x192808('0x269f')](_0x5d4686);});for(let _0x4ca5a9=0x0;_0x4ca5a9<_0x3aeffe[_0x4e5f41('0x20e0')][_0x4e5f41('0x1f73')];_0x4ca5a9++){const _0x31da9b=_0x49cbdd()[_0x4e5f41('0x26f8')](_0x104522,{'id':_0x3aeffe[_0x4e5f41('0x20e0')][_0x4ca5a9]['id']});_0x31da9b&&(_0x3aeffe[_0x4e5f41('0x20e0')][_0x4ca5a9]['canSelect']=![],_0x13c3ad[_0x4e5f41('0x269f')](_0x3aeffe[_0x4e5f41('0x20e0')][_0x4ca5a9]));}_0x3aeffe['projects']=_0x13c3ad;}else{if(!_0x2d05fa[_0x4e5f41('0x9e3')])return _0x3e87de['userProfileResource'][_0x4e5f41('0x1c53')]({'sectionId':_0x2d05fa['id']})[_0x4e5f41('0x1af5')]['then'](function(_0x238b53){const _0x17f5c5=_0x4e5f41,_0x35f583=_0x49cbdd()[_0x17f5c5('0x787')](_0x238b53[_0x17f5c5('0x2319')],function(_0x425ad4){const _0x5370a3=_0x17f5c5;return _0x49cbdd()[_0x5370a3('0xe8e')](_0x3aeffe[_0x5370a3('0x20e0')],{'id':_0x425ad4[_0x5370a3('0x5db')]});});let _0xe07cfb=null;_0xe07cfb=[],_0x3aeffe[_0x17f5c5('0x27b4')][_0x17f5c5('0x2319')][_0x17f5c5('0xccd')](function(_0x1215d4){const _0x3f61b8=_0x17f5c5,_0x4ff992=_0x49cbdd()['find'](_0x3aeffe[_0x3f61b8('0x20e0')],{'id':Number(_0x1215d4[_0x3f61b8('0x981')])});_0xe07cfb[_0x3f61b8('0x269f')](_0x4ff992);}),!_0x49cbdd()[_0x17f5c5('0x109a')](_0xe07cfb)&&_0xe07cfb[_0x17f5c5('0xccd')](function(_0x30201d){const _0x2dba8f=_0x17f5c5;if(!_0x49cbdd()[_0x2dba8f('0x26f8')](_0x35f583,['id',_0x30201d['id']])){const _0x197f04=_0x49cbdd()['find'](_0x3aeffe[_0x2dba8f('0x20e0')],{'id':_0x30201d['id']});_0x197f04[_0x2dba8f('0xe5c')]=![],_0x35f583[_0x2dba8f('0x269f')](_0x197f04);}}),_0x3aeffe[_0x17f5c5('0x20e0')]=_0x35f583;});}})['catch'](function(_0x431ead){const _0x38e7f9=_0x2cfaf1;_0x1ab811['error']({'title':_0x431ead[_0x38e7f9('0x11c5')]?_0x38e7f9('0x14f7')+_0x431ead['status']+_0x38e7f9('0x16e4')+_0x431ead[_0x38e7f9('0x1833')]:'SYSTEM:GETprojects','msg':_0x431ead[_0x38e7f9('0x1457')]?JSON[_0x38e7f9('0x678')](_0x431ead[_0x38e7f9('0x1457')]):_0x431ead[_0x38e7f9('0x9b6')]()});}),_0x3c09b5[_0x2cfaf1('0x1ba2')](_0x2cfaf1('0x20bf'))?_0x3e87de[_0x2cfaf1('0x231f')][_0x2cfaf1('0x1c53')]({'fields':_0x2cfaf1('0x12d2'),'sort':_0x2cfaf1('0x2aa'),'IntervalId':_0x2cfaf1('0x9bb')})[_0x2cfaf1('0x1af5')][_0x2cfaf1('0x17e7')](function(_0x717c71){const _0x2cb2fd=_0x2cfaf1;_0x3aeffe[_0x2cb2fd('0x231f')]=_0x717c71['rows']||[];})['catch'](function(_0xff966f){const _0x25971d=_0x2cfaf1;_0x1ab811[_0x25971d('0x1db9')]({'title':_0xff966f[_0x25971d('0x11c5')]?_0x25971d('0x14f7')+_0xff966f[_0x25971d('0x11c5')]+'\x20-\x20'+_0xff966f[_0x25971d('0x1833')]:_0x25971d('0xebd'),'msg':_0xff966f[_0x25971d('0x1457')]?JSON[_0x25971d('0x678')](_0xff966f['data']):_0xff966f['toString']()});}):_0x3e87de[_0x2cfaf1('0x231f')][_0x2cfaf1('0x1c53')]({'fields':_0x2cfaf1('0x12d2'),'sort':_0x2cfaf1('0x2aa'),'IntervalId':_0x2cfaf1('0x9bb')})[_0x2cfaf1('0x1af5')][_0x2cfaf1('0x17e7')](function(_0x22e145){const _0x44a561=_0x2cfaf1;_0x3aeffe[_0x44a561('0x231f')]=_0x22e145['rows']||[];})['then'](function(){const _0x1f2f21=_0x2cfaf1;return _0x3e87de[_0x1f2f21('0x383')][_0x1f2f21('0x1c53')]({'userProfileId':_0x3aeffe[_0x1f2f21('0x197c')][_0x1f2f21('0x1e76')],'sectionId':0x3ec})[_0x1f2f21('0x1af5')];})[_0x2cfaf1('0x17e7')](function(_0x2eaabc){const _0x10b0d6=_0x2cfaf1,_0x119d45=_0x2eaabc&&_0x2eaabc[_0x10b0d6('0x2319')]?_0x2eaabc[_0x10b0d6('0x2319')][0x0]:null;if(!_0x119d45){const _0x593650=[];let _0x5d7e69=null;_0x3aeffe[_0x10b0d6('0x2148')]&&(_0x5d7e69=_0x49cbdd()[_0x10b0d6('0xe8e')](_0x3aeffe[_0x10b0d6('0x231f')],{'id':Number(_0x3aeffe['ivrCampaign'][_0x10b0d6('0x24a9')])}));for(let _0x527d72=0x0;_0x527d72<_0x3aeffe[_0x10b0d6('0x231f')][_0x10b0d6('0x1f73')];_0x527d72++){_0x5d7e69&&_0x3aeffe[_0x10b0d6('0x231f')][_0x527d72]['id']===_0x5d7e69['id']&&(_0x3aeffe[_0x10b0d6('0x231f')][_0x527d72][_0x10b0d6('0xe5c')]=![],_0x593650[_0x10b0d6('0x269f')](_0x3aeffe['interval'][_0x527d72]));}_0x3aeffe['interval']=_0x593650;}else{if(!_0x119d45['autoAssociation'])return _0x3e87de[_0x10b0d6('0x78d')][_0x10b0d6('0x1c53')]({'sectionId':_0x119d45['id']})[_0x10b0d6('0x1af5')][_0x10b0d6('0x17e7')](function(_0x4d1cdf){const _0x1512e7=_0x10b0d6,_0x13a2dd=_0x49cbdd()[_0x1512e7('0x787')](_0x4d1cdf[_0x1512e7('0x2319')],function(_0x48f1f2){const _0x50e082=_0x1512e7;return _0x49cbdd()[_0x50e082('0xe8e')](_0x3aeffe[_0x50e082('0x231f')],{'id':_0x48f1f2[_0x50e082('0x5db')]});});let _0x5266fa=null;_0x3aeffe[_0x1512e7('0x2148')]&&(_0x5266fa=_0x49cbdd()['find'](_0x3aeffe['interval'],{'id':Number(_0x3aeffe[_0x1512e7('0x2148')][_0x1512e7('0x24a9')])}));if(_0x5266fa&&!_0x49cbdd()[_0x1512e7('0x26f8')](_0x13a2dd,['id',_0x5266fa['id']])){const _0x13005f=_0x49cbdd()[_0x1512e7('0xe8e')](_0x3aeffe[_0x1512e7('0x231f')],{'id':_0x5266fa['id']});_0x13005f[_0x1512e7('0xe5c')]=![],_0x13a2dd[_0x1512e7('0x269f')](_0x13005f);}_0x3aeffe[_0x1512e7('0x231f')]=_0x13a2dd;});}})[_0x2cfaf1('0x16df')](function(_0x19afaa){const _0x222d11=_0x2cfaf1;_0x1ab811[_0x222d11('0x1db9')]({'title':_0x19afaa[_0x222d11('0x11c5')]?_0x222d11('0x14f7')+_0x19afaa[_0x222d11('0x11c5')]+_0x222d11('0x16e4')+_0x19afaa[_0x222d11('0x1833')]:_0x222d11('0x1f79'),'msg':_0x19afaa['data']?JSON['stringify'](_0x19afaa[_0x222d11('0x1457')]):_0x19afaa[_0x222d11('0x9b6')]()});});function _0x4b5f64(_0x4bb5e3){const _0x159c0f=_0x2cfaf1;_0xf9d190['go']('app.motiondialer.ivrCampaigns.edit',{'id':_0x4bb5e3['id'],'ivrCampaign':_0x4bb5e3,'crudPermissions':_0x3aeffe[_0x159c0f('0x103e')]});}function _0x3b05aa(_0x36c39c,_0x28409f){const _0x1b73a2=_0x2cfaf1;_0x23dcc6[_0x1b73a2('0x28e2')]({'controller':_0x1b73a2('0x18c3'),'controllerAs':'vm','templateUrl':_0x94bac2,'parent':angular['element'](_0xee859d[_0x1b73a2('0x13aa')]),'targetEvent':_0x28409f,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x36c39c,'ivrCampaigns':_0x3aeffe['ivrCampaigns']?_0x3aeffe['ivrCampaigns']['rows']:[],'crudPermissions':_0x3aeffe['crudPermissions']}});}function _0x39d492(_0xfe19b9,_0x56c55e){const _0x153b29=_0x2cfaf1;_0x23dcc6[_0x153b29('0x28e2')]({'controller':'IvrCampaignlistaddController','controllerAs':'vm','templateUrl':_0x28331f,'parent':angular[_0x153b29('0x1ce1')](_0xee859d['body']),'targetEvent':_0x56c55e,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0xfe19b9,'ivrCampaigns':_0x3aeffe[_0x153b29('0x27b4')]?_0x3aeffe[_0x153b29('0x27b4')]['rows']:[],'crudPermissions':_0x3aeffe['crudPermissions']}});}function _0x221d8a(_0x4c3605,_0x549ab1){const _0x36a831=_0x2cfaf1;_0x23dcc6[_0x36a831('0x28e2')]({'controller':_0x36a831('0xeb4'),'controllerAs':'vm','templateUrl':_0x41dd9c,'parent':angular[_0x36a831('0x1ce1')](_0xee859d[_0x36a831('0x13aa')]),'targetEvent':_0x549ab1,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0x4c3605,'ivrCampaigns':_0x3aeffe[_0x36a831('0x27b4')]?_0x3aeffe['ivrCampaigns'][_0x36a831('0x2319')]:[],'crudPermissions':_0x3aeffe[_0x36a831('0x103e')]}});}function _0x275d7f(_0x2ab316,_0x31731a){const _0x32ad01=_0x2cfaf1,_0x230e30=_0x23dcc6[_0x32ad01('0x1121')]()[_0x32ad01('0x24d3')](_0x32ad01('0x5e1')+_0x49cbdd()[_0x32ad01('0x1c98')]('ivrCampaign')+'?')['htmlContent'](_0x32ad01('0xa53')+(_0x2ab316[_0x32ad01('0x2aa')]||_0x32ad01('0x2148'))+''+'\x20will\x20be\x20deleted.')[_0x32ad01('0x2095')]('delete\x20ivrCampaign')['targetEvent'](_0x31731a)['ok']('OK')[_0x32ad01('0x1d47')](_0x32ad01('0x28a0'));_0x23dcc6[_0x32ad01('0x28e2')](_0x230e30)[_0x32ad01('0x17e7')](function(){_0x45a211(_0x2ab316);},function(){const _0x2a7293=_0x32ad01;console[_0x2a7293('0x1d63')](_0x2a7293('0x28a0'));});}function _0x29f0fa(){const _0x526005=_0x2cfaf1;if(_0x3c09b5[_0x526005('0x1ba2')](_0x526005('0x20bf')))_0xf9d190['go']('app.motiondialer.realtime.ivr_campaigns',{});else return _0x3e87de['userProfileSection'][_0x526005('0x1c53')]({'userProfileId':_0x3c09b5['getCurrentUser']()[_0x526005('0x1e76')],'sectionId':0x5e6})[_0x526005('0x1af5')][_0x526005('0x17e7')](function(_0x27af53){const _0x564f58=_0x526005,_0xf2781c=_0x27af53&&_0x27af53[_0x564f58('0x2319')]?_0x27af53['rows'][0x0]:null;_0xf2781c&&_0xf2781c['enabled']?_0xf9d190['go'](_0x564f58('0x1bd7'),{}):_0x1ab811[_0x564f58('0x1178')]({'title':_0x2721f5[_0x564f58('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x2721f5[_0x564f58('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_MESSAGE')});})[_0x526005('0x16df')](function(_0x182033){const _0x154d51=_0x526005;_0x1ab811[_0x154d51('0x1db9')]({'title':_0x182033[_0x154d51('0x11c5')]?'API:'+_0x182033[_0x154d51('0x11c5')]+'\x20-\x20'+_0x182033['statusText']:_0x154d51('0x338'),'msg':_0x182033[_0x154d51('0x11c5')]?JSON[_0x154d51('0x678')](_0x182033[_0x154d51('0x1457')]):_0x182033[_0x154d51('0x9b6')]()});});}let _0xbcd30c=!![],_0x5bdef1=0x1;_0x776b6d[_0x2cfaf1('0x620')](_0x2cfaf1('0x3ed'),function(_0x7a6796,_0x59923f){const _0x297d5d=_0x2cfaf1;_0xbcd30c?_0x33f8ce(function(){_0xbcd30c=![];}):(!_0x59923f&&(_0x5bdef1=_0x3aeffe['query'][_0x297d5d('0x115a')]),_0x7a6796!==_0x59923f&&(_0x3aeffe[_0x297d5d('0x826')][_0x297d5d('0x115a')]=0x1),!_0x7a6796&&(_0x3aeffe[_0x297d5d('0x826')][_0x297d5d('0x115a')]=_0x5bdef1),_0x3aeffe[_0x297d5d('0xc6d')]());});function _0x144d86(_0x2ab1c1){const _0x3997ae=_0x2cfaf1;_0x3aeffe[_0x3997ae('0x27b4')]=_0x2ab1c1||{'count':0x0,'rows':[]};}function _0x31af58(){const _0x27101d=_0x2cfaf1;_0x3aeffe[_0x27101d('0x826')][_0x27101d('0xf19')]=(_0x3aeffe[_0x27101d('0x826')]['page']-0x1)*_0x3aeffe[_0x27101d('0x826')][_0x27101d('0x193b')],_0x3c09b5[_0x27101d('0x1ba2')](_0x27101d('0x20bf'))?_0x3aeffe[_0x27101d('0x1691')]=_0x3e87de[_0x27101d('0x2395')][_0x27101d('0x1c53')](_0x3aeffe[_0x27101d('0x826')],_0x144d86)['$promise']:(_0x3aeffe[_0x27101d('0x826')]['id']=_0x3aeffe[_0x27101d('0xdeb')]['id'],_0x3aeffe[_0x27101d('0x826')][_0x27101d('0x16f8')]=_0x27101d('0x2187'),_0x3aeffe[_0x27101d('0x1691')]=_0x3e87de[_0x27101d('0xdeb')][_0x27101d('0x2447')](_0x3aeffe['query'],_0x144d86)[_0x27101d('0x1af5')]);}function _0x1dc868(_0x4b9604,_0xb92b1c){const _0x18e2d4=_0x2cfaf1;_0x23dcc6[_0x18e2d4('0x28e2')]({'controller':'CreateOrEditIvrCampaignDialogController','controllerAs':'vm','templateUrl':_0x3c0cd7,'parent':angular[_0x18e2d4('0x1ce1')](_0xee859d[_0x18e2d4('0x13aa')]),'targetEvent':_0x4b9604,'clickOutsideToClose':!![],'locals':{'ivrCampaign':_0xb92b1c,'ivrCampaigns':_0x3aeffe[_0x18e2d4('0x27b4')]['rows'],'license':_0x3aeffe[_0x18e2d4('0x1d11')],'setting':_0x3aeffe[_0x18e2d4('0x1aeb')],'crudPermissions':_0x3aeffe[_0x18e2d4('0x103e')]}});}function _0x45a211(_0x37fabe){const _0x389eb9=_0x2cfaf1;_0x3e87de[_0x389eb9('0x2395')][_0x389eb9('0x1da6')]({'id':_0x37fabe['id']})['$promise']['then'](function(){const _0x3bbcb8=_0x389eb9;_0x49cbdd()[_0x3bbcb8('0x5f3')](_0x3aeffe[_0x3bbcb8('0x27b4')]['rows'],{'id':_0x37fabe['id']}),_0x3aeffe[_0x3bbcb8('0x27b4')][_0x3bbcb8('0x335')]-=0x1,!_0x3aeffe['ivrCampaigns'][_0x3bbcb8('0x2319')]['length']&&_0x3aeffe['getIvrCampaigns'](),_0x1ab811['success']({'title':_0x49cbdd()['startCase']('IvrCampaign')+_0x3bbcb8('0x2673'),'msg':_0x37fabe[_0x3bbcb8('0x2aa')]?_0x37fabe['name']+'\x20has\x20been\x20deleted!':''});})[_0x389eb9('0x16df')](function(_0x106349){const _0x779d2b=_0x389eb9;if(_0x106349['data']&&_0x106349[_0x779d2b('0x1457')][_0x779d2b('0x73e')]&&_0x106349[_0x779d2b('0x1457')]['errors'][_0x779d2b('0x1f73')]){_0x3aeffe['errors']=_0x106349[_0x779d2b('0x1457')]['errors']||[{'message':_0x106349[_0x779d2b('0x9b6')](),'type':'SYSTEM:DELETEcampaign'}];for(let _0x39ecd7=0x0;_0x39ecd7<_0x106349[_0x779d2b('0x1457')][_0x779d2b('0x73e')]['length'];_0x39ecd7++){_0x1ab811[_0x779d2b('0x1db9')]({'title':_0x106349['data'][_0x779d2b('0x73e')][_0x39ecd7][_0x779d2b('0x412')],'msg':_0x106349[_0x779d2b('0x1457')][_0x779d2b('0x73e')][_0x39ecd7][_0x779d2b('0x1603')]});}}else _0x1ab811['error']({'title':_0x106349[_0x779d2b('0x11c5')]?_0x779d2b('0x14f7')+_0x106349[_0x779d2b('0x11c5')]+_0x779d2b('0x16e4')+_0x106349['statusText']:_0x779d2b('0x1eb7'),'msg':_0x106349[_0x779d2b('0x1457')]?JSON['stringify'](_0x106349['data']['message']):_0x106349[_0x779d2b('0x1603')]||_0x106349[_0x779d2b('0x9b6')]()});});}function _0x52bf90(){const _0x4ef29e=_0x2cfaf1,_0x14521a=angular[_0x4ef29e('0x14e5')](_0x3aeffe[_0x4ef29e('0x1cbe')]);return _0x3aeffe[_0x4ef29e('0x1cbe')]=[],_0x14521a;}function _0x15c19c(_0x1c8044){const _0x335c6f=_0x2cfaf1,_0x27f723=_0x23dcc6[_0x335c6f('0x1121')]()[_0x335c6f('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20ivrCampaigns?')[_0x335c6f('0x211f')](_0x335c6f('0xa53')+_0x3aeffe[_0x335c6f('0x1cbe')][_0x335c6f('0x1f73')]+_0x335c6f('0x145a')+_0x335c6f('0xe9f'))['ariaLabel'](_0x335c6f('0x76c'))[_0x335c6f('0x104f')](_0x1c8044)['ok']('OK')[_0x335c6f('0x1d47')](_0x335c6f('0x28a0'));_0x23dcc6[_0x335c6f('0x28e2')](_0x27f723)[_0x335c6f('0x17e7')](function(){const _0x2eb61c=_0x335c6f;_0x3aeffe[_0x2eb61c('0x1cbe')][_0x2eb61c('0xccd')](function(_0x165eb3){_0x45a211(_0x165eb3);}),_0x3aeffe['selectedIvrCampaigns']=[];});}function _0x28a552(){const _0x15225f=_0x2cfaf1;_0x3aeffe[_0x15225f('0x1cbe')]=[];}function _0x3fb7f6(){const _0x2bc265=_0x2cfaf1;_0x3aeffe[_0x2bc265('0x1cbe')]=_0x3aeffe[_0x2bc265('0x27b4')]['rows'];}}const _0x3498d2=_0x3f6fb0;_0x56955a['$inject']=[_0x4376d8('0x668'),'$state','$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x2a2'),_0x4376d8('0x25f7'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x56955a(_0x1bd1a5,_0x4ffb07,_0x1d42a7,_0x4a1da4,_0x25232e,_0x449489,_0x1c6893,_0xf1896b,_0x1428b6,_0xef2855,_0x3fe0f7,_0x3df1f8,_0x5c6a1b,_0x1b1f61){const _0x52bf9f=_0x4376d8,_0x517015=this;_0x517015['currentUser']=_0x3fe0f7['getCurrentUser'](),_0x517015[_0x52bf9f('0x73e')]=[],_0x517015[_0x52bf9f('0x1aeb')]=_0x5c6a1b,_0x517015['license']=_0x3df1f8,_0x517015[_0x52bf9f('0x103e')]=_0x1b1f61,_0x517015[_0x52bf9f('0x6ee')]={},_0x517015['passwordPattern']=_0x517015[_0x52bf9f('0x1aeb')]&&_0x517015['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x517015[_0x52bf9f('0x24d3')]='MOTIONDIALER.EDIT_QUEUECAMPAIGN',_0x517015[_0x52bf9f('0x25f7')]=angular[_0x52bf9f('0x14e5')](_0x1428b6),_0x517015[_0x52bf9f('0x2a2')]=_0xf1896b,_0x517015[_0x52bf9f('0x2388')]=![];!_0x517015[_0x52bf9f('0x25f7')]&&(_0x517015[_0x52bf9f('0x25f7')]={'dialActive':!![],'type':'outbound','dialCheckDuplicateType':_0x52bf9f('0x1256'),'dialCutDigit':0x0,'autopause':'no','ringinuse':'no','timeoutrestart':'no','setinterfacevar':'no','setqueuevar':'no','setqueueentryvar':'no','dialOrderByScheduledAt':_0x52bf9f('0x1173'),'dialGlobalInterval':_0x52bf9f('0x1e2d'),'dialAMDInitialSilence':0x9c4,'dialAMDGreeting':0x5dc,'dialAMDAfterGreetingSilence':0x320,'dialAMDTotalAnalysisTime':0x1388,'dialAMDMinWordLength':0x64,'dialAMDBetweenWordsSilence':0x32,'dialAMDMaximumNumberOfWords':0x3,'dialAMDSilenceThreshold':0x100,'dialAMDMaximumWordLength':0x1388,'dialMethod':'progressive','dialPowerLevel':0x1,'dialPredictiveOptimization':_0x52bf9f('0x53f'),'dialPredictiveOptimizationPercentage':0x3,'dialPredictiveInterval':0xa,'dialLimitQueue':0x0,'dialRandomLastDigitCallerIdNumber':0x0,'dialOriginateTimeout':0x1e,'dialQueueOptions':_0x52bf9f('0x106e'),'dialQueueTimeout':0x3,'strategy':_0x52bf9f('0x197d'),'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},_0x517015[_0x52bf9f('0x24d3')]=_0x52bf9f('0x21bf'),_0x517015['newQueueCampaign']=!![]);_0x517015[_0x52bf9f('0x125c')]=_0x267a2f,_0x517015[_0x52bf9f('0x31e')]=_0x2b79a9,_0x517015[_0x52bf9f('0xac2')]=_0x447ced,_0x517015[_0x52bf9f('0x1300')]=_0x29c7f9,_0x517015[_0x52bf9f('0x136e')]=_0x990ff5,_0x3fe0f7['hasRole'](_0x52bf9f('0x20bf'))?_0xef2855[_0x52bf9f('0x252a')][_0x52bf9f('0x1c53')]({'fields':_0x52bf9f('0x12d2'),'sort':'name'})[_0x52bf9f('0x1af5')]['then'](function(_0x3bb28b){_0x517015['trunks']=_0x3bb28b['rows']||[];})[_0x52bf9f('0x16df')](function(_0x1005fe){const _0x14c32c=_0x52bf9f;_0x1c6893[_0x14c32c('0x1db9')]({'title':_0x1005fe[_0x14c32c('0x11c5')]?_0x14c32c('0x14f7')+_0x1005fe[_0x14c32c('0x11c5')]+_0x14c32c('0x16e4')+_0x1005fe[_0x14c32c('0x1833')]:_0x14c32c('0x130a'),'msg':_0x1005fe[_0x14c32c('0x1457')]?JSON[_0x14c32c('0x678')](_0x1005fe[_0x14c32c('0x1457')]):_0x1005fe[_0x14c32c('0x9b6')]()});}):_0xef2855[_0x52bf9f('0x252a')][_0x52bf9f('0x1c53')]({'fields':_0x52bf9f('0x12d2'),'sort':_0x52bf9f('0x2aa')})[_0x52bf9f('0x1af5')][_0x52bf9f('0x17e7')](function(_0x15a721){const _0xd6de1f=_0x52bf9f;_0x517015['trunks']=_0x15a721[_0xd6de1f('0x2319')]||[];})[_0x52bf9f('0x17e7')](function(){const _0x34596d=_0x52bf9f;return _0xef2855[_0x34596d('0x383')][_0x34596d('0x1c53')]({'userProfileId':_0x517015[_0x34596d('0x197c')]['userProfileId'],'sectionId':0x3f3})['$promise'];})[_0x52bf9f('0x17e7')](function(_0x95fdce){const _0x5cb9a2=_0x52bf9f,_0x9aafe7=_0x95fdce&&_0x95fdce['rows']?_0x95fdce[_0x5cb9a2('0x2319')][0x0]:null;if(!_0x9aafe7){const _0x3bc461=[];let _0xb31b0e=null;_0x517015[_0x5cb9a2('0x25f7')]&&(_0xb31b0e=_0x49cbdd()[_0x5cb9a2('0xe8e')](_0x517015[_0x5cb9a2('0x19cb')],{'id':Number(_0x517015[_0x5cb9a2('0x25f7')][_0x5cb9a2('0x129f')])}));for(let _0x23a8e3=0x0;_0x23a8e3<_0x517015['trunks'][_0x5cb9a2('0x1f73')];_0x23a8e3++){_0xb31b0e&&_0x517015[_0x5cb9a2('0x19cb')][_0x23a8e3]['id']===_0xb31b0e['id']&&(_0x517015[_0x5cb9a2('0x19cb')][_0x23a8e3][_0x5cb9a2('0xe5c')]=![],_0x3bc461[_0x5cb9a2('0x269f')](_0x517015['trunks'][_0x23a8e3]));}_0x517015[_0x5cb9a2('0x19cb')]=_0x3bc461;}else{if(!_0x9aafe7['autoAssociation'])return _0xef2855['userProfileResource'][_0x5cb9a2('0x1c53')]({'sectionId':_0x9aafe7['id']})['$promise'][_0x5cb9a2('0x17e7')](function(_0x1436c2){const _0x1b824a=_0x5cb9a2,_0x2d30ff=_0x49cbdd()['map'](_0x1436c2[_0x1b824a('0x2319')],function(_0x174856){const _0x389ef1=_0x1b824a;return _0x49cbdd()['find'](_0x517015['trunks'],{'id':_0x174856[_0x389ef1('0x5db')]});});let _0x1aca84=null;_0x517015[_0x1b824a('0x25f7')]&&(_0x1aca84=_0x49cbdd()[_0x1b824a('0xe8e')](_0x517015[_0x1b824a('0x19cb')],{'id':Number(_0x517015[_0x1b824a('0x25f7')]['TrunkId'])}));if(_0x1aca84&&!_0x49cbdd()[_0x1b824a('0x26f8')](_0x2d30ff,['id',_0x1aca84['id']])){const _0xd2f8c1=_0x49cbdd()['find'](_0x517015[_0x1b824a('0x19cb')],{'id':_0x1aca84['id']});_0xd2f8c1[_0x1b824a('0xe5c')]=![],_0x2d30ff[_0x1b824a('0x269f')](_0xd2f8c1);}_0x517015[_0x1b824a('0x19cb')]=_0x2d30ff;});}})[_0x52bf9f('0x16df')](function(_0x19ff1c){const _0x55d0b3=_0x52bf9f;_0x1c6893[_0x55d0b3('0x1db9')]({'title':_0x19ff1c[_0x55d0b3('0x11c5')]?'API:'+_0x19ff1c[_0x55d0b3('0x11c5')]+_0x55d0b3('0x16e4')+_0x19ff1c[_0x55d0b3('0x1833')]:_0x55d0b3('0x2825'),'msg':_0x19ff1c[_0x55d0b3('0x1457')]?JSON[_0x55d0b3('0x678')](_0x19ff1c[_0x55d0b3('0x1457')]):_0x19ff1c[_0x55d0b3('0x9b6')]()});}),_0x3fe0f7[_0x52bf9f('0x1ba2')](_0x52bf9f('0x20bf'))?_0xef2855[_0x52bf9f('0x231f')][_0x52bf9f('0x1c53')]({'fields':_0x52bf9f('0x12d2'),'sort':_0x52bf9f('0x2aa'),'IntervalId':_0x52bf9f('0x9bb')})['$promise']['then'](function(_0x6b17de){const _0x3989f4=_0x52bf9f;_0x517015[_0x3989f4('0x231f')]=_0x6b17de[_0x3989f4('0x2319')]||[];})[_0x52bf9f('0x16df')](function(_0x100c10){const _0x2e6852=_0x52bf9f;_0x1c6893[_0x2e6852('0x1db9')]({'title':_0x100c10[_0x2e6852('0x11c5')]?_0x2e6852('0x14f7')+_0x100c10[_0x2e6852('0x11c5')]+'\x20-\x20'+_0x100c10[_0x2e6852('0x1833')]:_0x2e6852('0xebd'),'msg':_0x100c10[_0x2e6852('0x1457')]?JSON[_0x2e6852('0x678')](_0x100c10[_0x2e6852('0x1457')]):_0x100c10[_0x2e6852('0x9b6')]()});}):_0xef2855[_0x52bf9f('0x231f')][_0x52bf9f('0x1c53')]({'fields':_0x52bf9f('0x12d2'),'sort':'name','IntervalId':'null'})[_0x52bf9f('0x1af5')][_0x52bf9f('0x17e7')](function(_0x7b4a2){const _0x2b1531=_0x52bf9f;_0x517015['interval']=_0x7b4a2[_0x2b1531('0x2319')]||[];})[_0x52bf9f('0x17e7')](function(){const _0x170a5f=_0x52bf9f;return _0xef2855[_0x170a5f('0x383')]['get']({'userProfileId':_0x517015['currentUser'][_0x170a5f('0x1e76')],'sectionId':0x3ec})[_0x170a5f('0x1af5')];})[_0x52bf9f('0x17e7')](function(_0x4e8be4){const _0x1b3d3d=_0x52bf9f,_0x4639c2=_0x4e8be4&&_0x4e8be4[_0x1b3d3d('0x2319')]?_0x4e8be4[_0x1b3d3d('0x2319')][0x0]:null;if(!_0x4639c2){const _0x418d29=[];let _0x177a69=null;_0x517015[_0x1b3d3d('0x25f7')]&&(_0x177a69=_0x49cbdd()[_0x1b3d3d('0xe8e')](_0x517015[_0x1b3d3d('0x231f')],{'id':Number(_0x517015[_0x1b3d3d('0x25f7')]['IntervalId'])}));for(let _0x4b5fcc=0x0;_0x4b5fcc<_0x517015['interval']['length'];_0x4b5fcc++){_0x177a69&&_0x517015[_0x1b3d3d('0x231f')][_0x4b5fcc]['id']===_0x177a69['id']&&(_0x517015[_0x1b3d3d('0x231f')][_0x4b5fcc][_0x1b3d3d('0xe5c')]=![],_0x418d29[_0x1b3d3d('0x269f')](_0x517015['interval'][_0x4b5fcc]));}_0x517015[_0x1b3d3d('0x231f')]=_0x418d29;}else{if(!_0x4639c2['autoAssociation'])return _0xef2855[_0x1b3d3d('0x78d')]['get']({'sectionId':_0x4639c2['id']})[_0x1b3d3d('0x1af5')]['then'](function(_0x5204a9){const _0xdbad21=_0x1b3d3d,_0x34fe27=_0x49cbdd()[_0xdbad21('0x787')](_0x5204a9['rows'],function(_0x1e8c32){const _0x528073=_0xdbad21;return _0x49cbdd()[_0x528073('0xe8e')](_0x517015[_0x528073('0x231f')],{'id':_0x1e8c32[_0x528073('0x5db')]});});let _0x2bd233=null;_0x517015['queueCampaign']&&(_0x2bd233=_0x49cbdd()[_0xdbad21('0xe8e')](_0x517015[_0xdbad21('0x231f')],{'id':Number(_0x517015[_0xdbad21('0x25f7')][_0xdbad21('0x24a9')])}));if(_0x2bd233&&!_0x49cbdd()[_0xdbad21('0x26f8')](_0x34fe27,['id',_0x2bd233['id']])){const _0x163fb7=_0x49cbdd()[_0xdbad21('0xe8e')](_0x517015[_0xdbad21('0x231f')],{'id':_0x2bd233['id']});_0x163fb7[_0xdbad21('0xe5c')]=![],_0x34fe27[_0xdbad21('0x269f')](_0x163fb7);}_0x517015[_0xdbad21('0x231f')]=_0x34fe27;});}})[_0x52bf9f('0x16df')](function(_0x1d872e){const _0x3c7d36=_0x52bf9f;_0x1c6893['error']({'title':_0x1d872e['status']?_0x3c7d36('0x14f7')+_0x1d872e['status']+_0x3c7d36('0x16e4')+_0x1d872e[_0x3c7d36('0x1833')]:_0x3c7d36('0x1f79'),'msg':_0x1d872e[_0x3c7d36('0x1457')]?JSON[_0x3c7d36('0x678')](_0x1d872e[_0x3c7d36('0x1457')]):_0x1d872e[_0x3c7d36('0x9b6')]()});});function _0x267a2f(){const _0x3f4219=_0x52bf9f;_0x517015[_0x3f4219('0x73e')]=[],_0xef2855[_0x3f4219('0x1243')]['save'](_0x517015[_0x3f4219('0x25f7')])[_0x3f4219('0x1af5')][_0x3f4219('0x17e7')](function(_0x1467fa){const _0x5893ad=_0x3f4219;_0x517015[_0x5893ad('0x2a2')][_0x5893ad('0x1893')](_0x1467fa[_0x5893ad('0x16b2')]()),_0x1c6893['success']({'title':_0x5893ad('0xc2d'),'msg':_0x517015[_0x5893ad('0x25f7')][_0x5893ad('0x2aa')]?_0x517015[_0x5893ad('0x25f7')][_0x5893ad('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x990ff5(_0x1467fa);})[_0x3f4219('0x16df')](function(_0x544641){const _0x3fb714=_0x3f4219;if(_0x544641[_0x3fb714('0x1457')]&&_0x544641[_0x3fb714('0x1457')][_0x3fb714('0x73e')]&&_0x544641['data']['errors']['length']){_0x517015['errors']=_0x544641[_0x3fb714('0x1457')][_0x3fb714('0x73e')]||[{'message':_0x544641[_0x3fb714('0x9b6')](),'type':_0x3fb714('0x1d32')}];for(let _0x21c79c=0x0;_0x21c79c<_0x544641[_0x3fb714('0x1457')][_0x3fb714('0x73e')][_0x3fb714('0x1f73')];_0x21c79c+=0x1){_0x1c6893[_0x3fb714('0x1db9')]({'title':_0x544641[_0x3fb714('0x1457')]['errors'][_0x21c79c]['type'],'msg':_0x544641['data'][_0x3fb714('0x73e')][_0x21c79c][_0x3fb714('0x1603')]});}}else _0x1c6893[_0x3fb714('0x1db9')]({'title':_0x544641[_0x3fb714('0x11c5')]?_0x3fb714('0x14f7')+_0x544641[_0x3fb714('0x11c5')]+_0x3fb714('0x16e4')+_0x544641['statusText']:_0x3fb714('0x1d32'),'msg':_0x544641[_0x3fb714('0x1457')]?JSON['stringify'](_0x544641[_0x3fb714('0x1457')]['message']):_0x544641[_0x3fb714('0x9b6')]()});});}function _0x2b79a9(){const _0x4e1052=_0x52bf9f;_0x517015[_0x4e1052('0x73e')]=[],_0xef2855[_0x4e1052('0x1243')]['update']({'id':_0x517015[_0x4e1052('0x25f7')]['id']},_0x517015['queueCampaign'])[_0x4e1052('0x1af5')][_0x4e1052('0x17e7')](function(_0x5136c1){const _0x479617=_0x4e1052,_0x46864e=_0x49cbdd()[_0x479617('0xe8e')](_0x517015[_0x479617('0x2a2')],{'id':_0x5136c1['id']});_0x46864e&&_0x49cbdd()[_0x479617('0x1ced')](_0x46864e,_0x49cbdd()['pick'](_0x5136c1['toJSON'](),_0x49cbdd()[_0x479617('0x1c0f')](_0x46864e))),_0x1c6893[_0x479617('0x130d')]({'title':'QueueCampaign\x20properly\x20saved!','msg':_0x517015[_0x479617('0x25f7')][_0x479617('0x2aa')]?_0x517015[_0x479617('0x25f7')][_0x479617('0x2aa')]+_0x479617('0x15ca'):''}),_0x990ff5(_0x5136c1);})[_0x4e1052('0x16df')](function(_0x1b8798){const _0x115284=_0x4e1052;if(_0x1b8798[_0x115284('0x1457')]&&_0x1b8798[_0x115284('0x1457')][_0x115284('0x73e')]&&_0x1b8798[_0x115284('0x1457')]['errors']['length']){_0x517015[_0x115284('0x73e')]=_0x1b8798['data'][_0x115284('0x73e')]||[{'message':_0x1b8798[_0x115284('0x9b6')](),'type':'api.voiceQueue.update'}];for(let _0x7bef05=0x0;_0x7bef05<_0x1b8798[_0x115284('0x1457')][_0x115284('0x73e')][_0x115284('0x1f73')];_0x7bef05++){_0x1c6893[_0x115284('0x1db9')]({'title':_0x1b8798['data'][_0x115284('0x73e')][_0x7bef05][_0x115284('0x412')],'msg':_0x1b8798[_0x115284('0x1457')][_0x115284('0x73e')][_0x7bef05][_0x115284('0x1603')]});}}else _0x1c6893['error']({'title':_0x1b8798[_0x115284('0x11c5')]?_0x115284('0x14f7')+_0x1b8798[_0x115284('0x11c5')]+_0x115284('0x16e4')+_0x1b8798['statusText']:_0x115284('0x134f'),'msg':_0x1b8798[_0x115284('0x1457')]?JSON[_0x115284('0x678')](_0x1b8798[_0x115284('0x1457')][_0x115284('0x1603')]):_0x1b8798['toString']()});});}function _0x447ced(_0x20633e){const _0xd40f47=_0x52bf9f;_0x517015[_0xd40f47('0x73e')]=[];const _0x2044f2=_0x4a1da4['confirm']()[_0xd40f47('0x24d3')](_0xd40f47('0x530'))[_0xd40f47('0xd5')](_0xd40f47('0x1fe'))[_0xd40f47('0x2095')](_0xd40f47('0xc26'))['ok']('Delete')[_0xd40f47('0x1d47')](_0xd40f47('0x1b70'))['targetEvent'](_0x20633e);_0x4a1da4[_0xd40f47('0x28e2')](_0x2044f2)['then'](function(){const _0x1239ca=_0xd40f47;_0xef2855[_0x1239ca('0x1243')][_0x1239ca('0x1da6')]({'id':_0x517015[_0x1239ca('0x25f7')]['id']})[_0x1239ca('0x1af5')][_0x1239ca('0x17e7')](function(){const _0x1098a6=_0x1239ca;_0x49cbdd()['remove'](_0x517015[_0x1098a6('0x2a2')],{'id':_0x517015['queueCampaign']['id']}),_0x1c6893[_0x1098a6('0x130d')]({'title':'QueueCampaign\x20properly\x20deleted!','msg':(_0x517015[_0x1098a6('0x25f7')]['name']||_0x1098a6('0x25f7'))+_0x1098a6('0x149f')}),_0x990ff5(_0x517015['queueCampaign']);})[_0x1239ca('0x16df')](function(_0x3d3636){const _0x818c18=_0x1239ca;if(_0x3d3636['data']&&_0x3d3636[_0x818c18('0x1457')][_0x818c18('0x73e')]&&_0x3d3636[_0x818c18('0x1457')]['errors'][_0x818c18('0x1f73')]){_0x517015[_0x818c18('0x73e')]=_0x3d3636[_0x818c18('0x1457')]['errors']||[{'message':_0x3d3636[_0x818c18('0x9b6')](),'type':_0x818c18('0xe11')}];for(let _0x3e64fe=0x0;_0x3e64fe<_0x3d3636[_0x818c18('0x1457')][_0x818c18('0x73e')][_0x818c18('0x1f73')];_0x3e64fe++){_0x1c6893['error']({'title':_0x3d3636[_0x818c18('0x1457')]['errors'][_0x3e64fe][_0x818c18('0x412')],'msg':_0x3d3636[_0x818c18('0x1457')]['errors'][_0x3e64fe]['message']});}}else _0x1c6893[_0x818c18('0x1db9')]({'title':_0x3d3636[_0x818c18('0x11c5')]?_0x818c18('0x14f7')+_0x3d3636[_0x818c18('0x11c5')]+'\x20-\x20'+_0x3d3636[_0x818c18('0x1833')]:_0x818c18('0xe11'),'msg':_0x3d3636['data']?JSON['stringify'](_0x3d3636[_0x818c18('0x1457')]['message']):_0x3d3636[_0x818c18('0x1603')]||_0x3d3636[_0x818c18('0x9b6')]()});});},function(){});}function _0x29c7f9(_0xde6dd0){return _0xde6dd0===null?undefined:new Date(_0xde6dd0);}function _0x990ff5(_0x4e2669){const _0xe43ae4=_0x52bf9f;_0x4a1da4[_0xe43ae4('0x212a')](_0x4e2669);}}const _0x53fec4=_0x56955a;_0x5b4b2b[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x212e'),_0x4376d8('0x25f7'),_0x4376d8('0x2a2'),_0x4376d8('0x20c8'),_0x4376d8('0x28da'),'Auth','crudPermissions'];function _0x5b4b2b(_0x34a18b,_0x3ed405,_0x26523d,_0x278c1f,_0x1aadfd,_0x2778e6,_0x34d6e8,_0x34341f,_0x5bf641,_0x8697fe){const _0x31c9df=_0x4376d8,_0x2aeedc=this;_0x2aeedc[_0x31c9df('0x197c')]=_0x5bf641[_0x31c9df('0x2831')](),_0x2aeedc[_0x31c9df('0x25f7')]=_0x1aadfd,_0x2aeedc[_0x31c9df('0x103e')]=_0x8697fe,_0x2aeedc[_0x31c9df('0x122c')]=0x0,_0x2aeedc[_0x31c9df('0x20c8')]=_0x34d6e8,_0x2aeedc['items']=[],_0x2aeedc[_0x31c9df('0x2722')]=[],_0x2aeedc['selectedItems']=[],_0x2aeedc[_0x31c9df('0x181b')]=[],_0x2aeedc['startingSelectedItems']=[],_0x2aeedc[_0x31c9df('0x25dc')]=![],_0x2aeedc[_0x31c9df('0xdf0')]=_0x37d6ef,_0x2aeedc[_0x31c9df('0x257a')]=_0x386414,_0x2aeedc[_0x31c9df('0x136e')]=_0xb031d6,_0x2aeedc[_0x31c9df('0x26f4')]={'readOnly':!_0x2aeedc[_0x31c9df('0x103e')][_0x31c9df('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x31c9df('0x2aa'),'line1':_0x31c9df('0xea6'),'line2':[_0x31c9df('0x2aa'),_0x31c9df('0xe3e')],'line3':_0x31c9df('0x122c'),'labelAll':_0x34341f['instant'](_0x31c9df('0x1b88')),'labelSelected':_0x34341f[_0x31c9df('0x1acc')](_0x31c9df('0x1739')),'transferCallback':function(_0x3e4107,_0x3ebba0){const _0x41150c=_0x31c9df;_0x3ebba0?_0x3e4107[_0x41150c('0xccd')](function(_0x5dd2a8){const _0x31d673=_0x41150c;_0x5dd2a8[_0x31d673('0x122c')]=undefined;}):_0x3e4107[_0x41150c('0xccd')](function(_0xaca0a1){const _0x2179d5=_0x41150c;_0xaca0a1[_0x2179d5('0x122c')]=_0x2179d5('0x973')+_0x2aeedc['penalty'];});const _0x5f3fd8=_0x49cbdd()['xorWith'](_0x2aeedc[_0x41150c('0x1824')],_0x2aeedc['selectedItems'],function(_0x4ac57a,_0x14f63e){const _0x4e4be3=_0x41150c;return _0x4ac57a['id']===_0x14f63e['id']&&_0x4ac57a[_0x4e4be3('0x122c')]===_0x14f63e[_0x4e4be3('0x122c')];});_0x2aeedc[_0x41150c('0x25dc')]=_0x49cbdd()[_0x41150c('0x109a')](_0x5f3fd8)?![]:!![];}};function _0x37d6ef(){const _0x3ef38d=_0x31c9df;return _0x5bf641[_0x3ef38d('0x1ba2')](_0x3ef38d('0x20bf'))?_0x1cb641()[_0x3ef38d('0x16df')](function(_0x443524){const _0x4571bc=_0x3ef38d;_0x26523d['error']({'title':_0x443524[_0x4571bc('0x11c5')]?_0x4571bc('0x14f7')+_0x443524['status']+_0x4571bc('0x16e4')+_0x443524[_0x4571bc('0x1833')]:_0x4571bc('0x23e0'),'msg':_0x443524[_0x4571bc('0x11c5')]?JSON[_0x4571bc('0x678')](_0x443524[_0x4571bc('0x1457')]):_0x443524[_0x4571bc('0x9b6')]()});}):_0x333997()[_0x3ef38d('0x17e7')](function(_0x14a636){return _0x2aeedc['section']=_0x14a636,_0x1cb641();})[_0x3ef38d('0x16df')](function(_0x51efe6){const _0x55d6f4=_0x3ef38d;_0x26523d['error']({'title':_0x51efe6['status']?_0x55d6f4('0x14f7')+_0x51efe6[_0x55d6f4('0x11c5')]+'\x20-\x20'+_0x51efe6[_0x55d6f4('0x1833')]:_0x55d6f4('0x23e0'),'msg':_0x51efe6[_0x55d6f4('0x11c5')]?JSON[_0x55d6f4('0x678')](_0x51efe6[_0x55d6f4('0x1457')]):_0x51efe6[_0x55d6f4('0x9b6')]()});});}function _0x333997(){return _0x3ed405(function(_0x497e4b,_0x500ba2){const _0x499590=a0_0xd29e;_0x278c1f[_0x499590('0x383')][_0x499590('0x1c53')]({'userProfileId':_0x2aeedc[_0x499590('0x197c')]['userProfileId'],'name':_0x499590('0x2157')})[_0x499590('0x1af5')][_0x499590('0x17e7')](function(_0x2aa67d){const _0x4badab=_0x499590,_0x28c9ba=_0x2aa67d&&_0x2aa67d[_0x4badab('0x2319')]?_0x2aa67d['rows'][0x0]:null;_0x497e4b(_0x28c9ba);})[_0x499590('0x16df')](function(_0x58ebb3){_0x500ba2(_0x58ebb3);});});}function _0x1cb641(){return _0x3ed405(function(_0x28a317,_0x59ee62){const _0xd6a516=a0_0xd29e;return _0x34d727()[_0xd6a516('0x17e7')](function(_0x146c31){const _0x1b44b2=_0xd6a516;return _0x2aeedc['items']=_0x146c31[_0x1b44b2('0x2319')]?_0x146c31[_0x1b44b2('0x2319')]:[],_0x5bf641[_0x1b44b2('0x1ba2')](_0x1b44b2('0x20bf'))?_0x146c31:_0x2aeedc[_0x1b44b2('0x16f8')]?_0x2aeedc[_0x1b44b2('0x16f8')]['autoAssociation']?_0x146c31:_0x3c2702():null;})[_0xd6a516('0x17e7')](function(_0x3b944d){const _0x4e5960=_0xd6a516,_0x45c834=_0x3b944d&&_0x3b944d[_0x4e5960('0x2319')]?_0x3b944d['rows']:[];return _0x2aeedc[_0x4e5960('0x2722')]=_0x49cbdd()[_0x4e5960('0x787')](_0x45c834,function(_0x2ac7c6){const _0x438a36=_0x4e5960;return _0x49cbdd()['find'](_0x2aeedc[_0x438a36('0x532')],{'id':_0x5bf641[_0x438a36('0x1ba2')](_0x438a36('0x20bf'))||_0x2aeedc[_0x438a36('0x16f8')]['autoAssociation']?_0x2ac7c6['id']:_0x2ac7c6[_0x438a36('0x5db')]});}),_0x2aeedc[_0x4e5960('0x181b')]=angular[_0x4e5960('0x14e5')](_0x2aeedc['allowedItems']),_0x2aeedc[_0x4e5960('0x532')]['forEach'](function(_0x134f2b){const _0x35e059=_0x4e5960,_0xec5e0c=_0x49cbdd()[_0x35e059('0xe8e')](_0x2aeedc[_0x35e059('0x2722')],{'id':_0x134f2b['id']});_0x5bf641[_0x35e059('0x1ba2')]('admin')?_0x134f2b[_0x35e059('0xc98')]=!![]:_0x134f2b[_0x35e059('0xc98')]=typeof _0xec5e0c!==_0x35e059('0xfad')?!![]:![];}),_0x1a97c1();})[_0xd6a516('0x17e7')](function(_0x59744c){const _0x1039ec=_0xd6a516,_0x370610=_0x59744c&&_0x59744c['rows']?_0x59744c[_0x1039ec('0x2319')]:[];_0x2aeedc[_0x1039ec('0xc14')]=_0x49cbdd()[_0x1039ec('0x787')](_0x370610,function(_0x4c1d6e){const _0x10a8b7=_0x1039ec,_0x3dda59=_0x49cbdd()['find'](_0x2aeedc[_0x10a8b7('0x532')],{'id':_0x4c1d6e['id']});return _0x3dda59[_0x10a8b7('0x122c')]=_0x4c1d6e[_0x10a8b7('0x35d')]?_0x10a8b7('0x973')+_0x4c1d6e[_0x10a8b7('0x35d')][_0x10a8b7('0x122c')]:'',_0x3dda59[_0x10a8b7('0xe3e')]=typeof _0x4c1d6e[_0x10a8b7('0xe3e')]!==_0x10a8b7('0xfad')?'<'+_0x4c1d6e[_0x10a8b7('0xe3e')]+'>':'',_0x3dda59;}),_0x2aeedc['startingSelectedItems']=angular[_0x1039ec('0x14e5')](_0x2aeedc[_0x1039ec('0xc14')]),_0x2aeedc[_0x1039ec('0x26f4')]['selectedItems']=_0x2aeedc[_0x1039ec('0xc14')],_0x2aeedc['dualMultiselectOptions'][_0x1039ec('0x532')]=_0x49cbdd()[_0x1039ec('0x1ada')](_0x2aeedc[_0x1039ec('0x2722')],_0x2aeedc['dualMultiselectOptions'][_0x1039ec('0xc14')],'id'),_0x28a317();})[_0xd6a516('0x16df')](function(_0x221aa6){_0x59ee62(_0x221aa6);});});}function _0x3c2702(){return _0x3ed405(function(_0x26ff7e,_0x573799){const _0x240711=a0_0xd29e;return _0x278c1f[_0x240711('0x78d')][_0x240711('0x1c53')]({'sectionId':_0x2aeedc[_0x240711('0x16f8')]['id'],'nolimit':!![]})[_0x240711('0x1af5')][_0x240711('0x17e7')](function(_0x257510){_0x26ff7e(_0x257510);})[_0x240711('0x16df')](function(_0x3edf4c){_0x573799(_0x3edf4c);});});}function _0x1a97c1(){return _0x3ed405(function(_0xde9cd5,_0x4d9899){const _0x4b490b=a0_0xd29e;return _0x278c1f[_0x4b490b('0x1243')][_0x4b490b('0x1dac')]({'id':_0x2aeedc[_0x4b490b('0x25f7')]['id'],'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x4b490b('0x684')})[_0x4b490b('0x1af5')][_0x4b490b('0x17e7')](function(_0x391bd7){_0xde9cd5(_0x391bd7);})[_0x4b490b('0x16df')](function(_0x295738){_0x4d9899(_0x295738);});});}function _0x34d727(){return _0x3ed405(function(_0x56a721,_0x5337a8){const _0x37f246=a0_0xd29e;return _0x278c1f['user'][_0x37f246('0x1c53')]({'fields':'id,name,internal,fullname','nolimit':!![],'role':_0x37f246('0x684')})[_0x37f246('0x1af5')][_0x37f246('0x17e7')](function(_0x17b268){_0x56a721(_0x17b268);})[_0x37f246('0x16df')](function(_0x125712){_0x5337a8(_0x125712);});});}function _0xdf4fbf(_0x2a86ed){return _0x3ed405(function(_0x2386ea,_0x597867){const _0x200085=a0_0xd29e;if(_0x49cbdd()[_0x200085('0x109a')](_0x2a86ed))_0x2386ea();else{const _0x6b30ab=[],_0x35b7a3=_0x49cbdd()[_0x200085('0x139f')](_0x2a86ed,_0x200085('0x122c'));for(let _0x574665=0x0;_0x574665'+(_0x4c769c[_0x1fc760('0x2aa')]||_0x4c769c['id']&&_0x49cbdd()[_0x1fc760('0x233c')](_0x1fc760('0xd65'))+_0x4c769c['id']||'hopperFinal')+_0x1fc760('0x1d23')+'\x20will\x20be\x20deleted.')[_0x1fc760('0x2095')](_0x1fc760('0x123'))[_0x1fc760('0x104f')](_0x4ca8b6)['ok']('OK')[_0x1fc760('0x1d47')](_0x1fc760('0x28a0'));_0x50341e[_0x1fc760('0x28e2')](_0x3ffa3c)[_0x1fc760('0x17e7')](function(){_0x3022e0(_0x4c769c);},function(){const _0x306518=_0x1fc760;console[_0x306518('0x1d63')](_0x306518('0x28a0'));});}function _0x4c0d3f(_0x1e0f41){_0x222dd9['queueCampaignHopperFinals']=_0x1e0f41||{'count':0x0,'rows':[]};}function _0x15e9d9(){const _0x23a11f=_0x1cda18;_0x222dd9[_0x23a11f('0x826')][_0x23a11f('0xf19')]=(_0x222dd9[_0x23a11f('0x826')][_0x23a11f('0x115a')]-0x1)*_0x222dd9[_0x23a11f('0x826')]['limit'],_0x222dd9['promise']=_0x181d20[_0x23a11f('0x1243')]['getHopperFinals'](_0x222dd9[_0x23a11f('0x826')],_0x4c0d3f)[_0x23a11f('0x1af5')];}function _0x3022e0(_0x50312a){const _0x20705f=_0x1cda18;_0x181d20[_0x20705f('0x19d')][_0x20705f('0x1da6')]({'id':_0x50312a['id']})[_0x20705f('0x1af5')][_0x20705f('0x17e7')](function(){const _0x158758=_0x20705f;_0x49cbdd()['remove'](_0x222dd9[_0x158758('0x10eb')][_0x158758('0x2319')],{'id':_0x50312a['id']}),_0x222dd9[_0x158758('0x10eb')]['count']-=0x1,!_0x222dd9[_0x158758('0x10eb')][_0x158758('0x2319')][_0x158758('0x1f73')]&&_0x15e9d9(),_0x87748e[_0x158758('0x130d')]({'title':_0x158758('0x78a'),'msg':_0x50312a[_0x158758('0x2aa')]?_0x50312a[_0x158758('0x2aa')]+_0x158758('0x149f'):''});})['catch'](function(_0x320222){const _0x57fcdd=_0x20705f;if(_0x320222[_0x57fcdd('0x1457')]&&_0x320222[_0x57fcdd('0x1457')]['errors']&&_0x320222[_0x57fcdd('0x1457')][_0x57fcdd('0x73e')][_0x57fcdd('0x1f73')]){_0x222dd9[_0x57fcdd('0x73e')]=_0x320222[_0x57fcdd('0x1457')][_0x57fcdd('0x73e')]||[{'message':_0x320222[_0x57fcdd('0x9b6')](),'type':_0x57fcdd('0x21ab')}];for(let _0x31359b=0x0;_0x31359b<_0x320222[_0x57fcdd('0x1457')][_0x57fcdd('0x73e')][_0x57fcdd('0x1f73')];_0x31359b++){_0x87748e[_0x57fcdd('0x1db9')]({'title':_0x320222['data'][_0x57fcdd('0x73e')][_0x31359b][_0x57fcdd('0x412')],'msg':_0x320222[_0x57fcdd('0x1457')][_0x57fcdd('0x73e')][_0x31359b]['message']});}}else _0x87748e[_0x57fcdd('0x1db9')]({'title':_0x320222[_0x57fcdd('0x11c5')]?_0x57fcdd('0x14f7')+_0x320222[_0x57fcdd('0x11c5')]+'\x20-\x20'+_0x320222[_0x57fcdd('0x1833')]:_0x57fcdd('0x21ab'),'msg':_0x320222['data']?JSON[_0x57fcdd('0x678')](_0x320222[_0x57fcdd('0x1457')][_0x57fcdd('0x1603')]):_0x320222[_0x57fcdd('0x1603')]||_0x320222[_0x57fcdd('0x9b6')]()});});}function _0x14ca21(){const _0x4924a5=_0x1cda18,_0x5367f6=angular[_0x4924a5('0x14e5')](_0x222dd9[_0x4924a5('0x17c4')]);return _0x222dd9[_0x4924a5('0x17c4')]=[],_0x5367f6;}function _0x24a10f(_0x44dabe){const _0xfa547b=_0x1cda18,_0x3cbdfd=_0x50341e[_0xfa547b('0x1121')]()[_0xfa547b('0x24d3')](_0xfa547b('0x56e'))[_0xfa547b('0x211f')](''+_0x222dd9[_0xfa547b('0x17c4')][_0xfa547b('0x1f73')]+_0xfa547b('0x145a')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0xfa547b('0x173b'))['targetEvent'](_0x44dabe)['ok']('OK')[_0xfa547b('0x1d47')](_0xfa547b('0x28a0'));_0x50341e[_0xfa547b('0x28e2')](_0x3cbdfd)[_0xfa547b('0x17e7')](function(){const _0x4d0033=_0xfa547b;_0x222dd9[_0x4d0033('0x17c4')][_0x4d0033('0xccd')](function(_0x3811a4){_0x3022e0(_0x3811a4);}),_0x222dd9[_0x4d0033('0x17c4')]=[];});}function _0x4a5c2d(_0x35ddc1){const _0x29353e=_0x1cda18;_0x181d20['cmHopperFinal'][_0x29353e('0x24f5')]({'id':_0x222dd9[_0x29353e('0x826')]['id'],'state':_0x35ddc1})[_0x29353e('0x1af5')][_0x29353e('0x17e7')](function(_0x31f35c){const _0x368042=_0x29353e;_0x49cbdd()[_0x368042('0x390')](_0x31f35c)&&_0x49cbdd()[_0x368042('0x390')](_0x31f35c[0x0])?_0x87748e[_0x368042('0x1178')]({'title':'Restored\x20Contacts','msg':'0'}):_0x87748e[_0x368042('0x1178')]({'title':'Restored\x20Contacts','msg':JSON[_0x368042('0x678')](_0x31f35c[0x0][_0x368042('0x13ba')])});})['catch'](function(_0x4b020a){const _0x5a48d0=_0x29353e;_0x87748e[_0x5a48d0('0x1db9')]({'title':_0x4b020a[_0x5a48d0('0x11c5')]?_0x5a48d0('0x14f7')+_0x4b020a[_0x5a48d0('0x11c5')]+'\x20-\x20'+_0x4b020a[_0x5a48d0('0x1833')]:_0x5a48d0('0x21ab'),'msg':_0x4b020a[_0x5a48d0('0x1457')]?JSON[_0x5a48d0('0x678')](_0x4b020a['data'][_0x5a48d0('0x1603')]):_0x4b020a[_0x5a48d0('0x1603')]||_0x4b020a['toString']()});});}function _0x444949(_0x1585c7){const _0xfa2674=_0x1cda18;_0x181d20[_0xfa2674('0x255c')]['countContactsQueueCampaignHopperFinal']({'id':_0x1585c7})[_0xfa2674('0x1af5')][_0xfa2674('0x17e7')](function(_0x3aab82){const _0x453825=_0xfa2674;_0x49cbdd()['merge'](_0x222dd9[_0x453825('0x2720')],_0x3aab82[0x0]);})[_0xfa2674('0x16df')](function(_0x367dfd){const _0x4ca3a6=_0xfa2674;_0x87748e[_0x4ca3a6('0x1db9')]({'title':_0x367dfd[_0x4ca3a6('0x11c5')]?_0x4ca3a6('0x14f7')+_0x367dfd[_0x4ca3a6('0x11c5')]+_0x4ca3a6('0x16e4')+_0x367dfd[_0x4ca3a6('0x1833')]:_0x4ca3a6('0x21ab'),'msg':_0x367dfd[_0x4ca3a6('0x1457')]?JSON['stringify'](_0x367dfd[_0x4ca3a6('0x1457')][_0x4ca3a6('0x1603')]):_0x367dfd[_0x4ca3a6('0x1603')]||_0x367dfd[_0x4ca3a6('0x9b6')]()});});}function _0x5a594b(_0x45aef5){const _0x1553c5=_0x1cda18,_0x1f13db=_0x50341e[_0x1553c5('0x1121')]()[_0x1553c5('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20restore\x20the\x20selected\x20contacts?')[_0x1553c5('0x211f')](_0x1553c5('0x1c75')+_0x1553c5('0x28bd'))['ariaLabel']('Restore\x20Contacts')[_0x1553c5('0x104f')](_0x45aef5)['ok']('OK')[_0x1553c5('0x1d47')](_0x1553c5('0x28a0'));_0x50341e[_0x1553c5('0x28e2')](_0x1f13db)[_0x1553c5('0x17e7')](function(){const _0x54d9a4=_0x1553c5;_0x222dd9[_0x54d9a4('0x17c4')][_0x54d9a4('0xccd')](function(_0x6d9dda){_0x1875cf(_0x6d9dda);}),_0x222dd9[_0x54d9a4('0x17c4')]=[];});}function _0x49aa2b(_0x28a84a,_0x2524a1){const _0x2e8e69=_0x1cda18,_0x475ada=_0x50341e[_0x2e8e69('0x1121')]()['title'](_0x2e8e69('0x22ed'))[_0x2e8e69('0x211f')](''+_0x2e8e69('0x239b')+_0x2e8e69('0x1d23')+_0x2e8e69('0x28bd'))[_0x2e8e69('0x2095')](_0x2e8e69('0x1d01'))[_0x2e8e69('0x104f')](_0x2524a1)['ok']('OK')['cancel'](_0x2e8e69('0x28a0'));_0x50341e['show'](_0x475ada)[_0x2e8e69('0x17e7')](function(){_0x1875cf(_0x28a84a);},function(){const _0x250d03=_0x2e8e69;console[_0x250d03('0x1d63')]('CANCEL');});}function _0x3b95ef(_0x83f89a){const _0x5bbbbe=_0x1cda18,_0x270f10={};return _0x270f10[_0x5bbbbe('0x2154')]=_0x83f89a[_0x5bbbbe('0x2202')],_0x270f10['scheduledat']=_0x107a13()()['format'](_0x5bbbbe('0x1e17')),_0x270f10[_0x5bbbbe('0x1a7')]=0x0,_0x270f10['countcongestionretry']=0x0,_0x270f10[_0x5bbbbe('0xe85')]=0x0,_0x270f10[_0x5bbbbe('0x23d7')]=0x0,_0x270f10[_0x5bbbbe('0x1e84')]=_0x83f89a[_0x5bbbbe('0x1e84')],_0x270f10[_0x5bbbbe('0x7f8')]=_0x83f89a[_0x5bbbbe('0x7f8')],_0x270f10[_0x5bbbbe('0x5e5')]=_0x83f89a[_0x5bbbbe('0x2094')]?null:_0x83f89a['UserId'],_0x270f10[_0x5bbbbe('0x2803')]=_0x83f89a[_0x5bbbbe('0x2803')],_0x270f10['CampaignId']=_0x83f89a[_0x5bbbbe('0x23b7')],_0x270f10[_0x5bbbbe('0x1a6d')]=_0x83f89a[_0x5bbbbe('0x229')]?0x3:0x2,_0x270f10[_0x5bbbbe('0x229')]=_0x83f89a['recallme']?!![]:![],_0x270f10;}function _0x31d58d(_0x45a9db){const _0x37593a=_0x1cda18,_0x20923e={};return _0x20923e[_0x37593a('0x2202')]=_0x45a9db[_0x37593a('0x2202')],_0x20923e[_0x37593a('0x2400')]=_0x45a9db[_0x37593a('0x2400')],_0x20923e[_0x37593a('0x2809')]=_0x107a13()()[_0x37593a('0x1c0d')](_0x37593a('0x1e17')),_0x20923e['countbusyretry']=_0x45a9db[_0x37593a('0x1a7')],_0x20923e[_0x37593a('0x26ed')]=_0x45a9db[_0x37593a('0x26ed')],_0x20923e[_0x37593a('0xe85')]=_0x45a9db['countnoanswerretry'],_0x20923e['countglobal']=_0x45a9db[_0x37593a('0x23d7')],_0x20923e[_0x37593a('0x1e84')]=_0x45a9db[_0x37593a('0x1e84')],_0x20923e['ListId']=_0x45a9db['ListId'],_0x20923e[_0x37593a('0x5e5')]=_0x1cd879[_0x37593a('0x2831')]()['id'],_0x20923e[_0x37593a('0x2803')]=_0x45a9db[_0x37593a('0x2803')],_0x20923e['CampaignId']=_0x45a9db[_0x37593a('0x23b7')],_0x20923e['editedat']=_0x107a13()()['format'](_0x37593a('0x1e17')),_0x20923e[_0x37593a('0x1c39')]=!![],_0x20923e[_0x37593a('0x1b9a')]=0x19,_0x20923e[_0x37593a('0xd53')]=_0x37593a('0xbbe'),_0x20923e[_0x37593a('0x2395')]=_0x45a9db['campaign'],_0x20923e[_0x37593a('0xac6')]=_0x45a9db['VoiceQueueId']?_0x37593a('0x1bd'):'ivr',_0x20923e;}function _0x1875cf(_0x223f5e){const _0x2f18df=_0x1cda18;_0x181d20[_0x2f18df('0x255c')][_0x2f18df('0x2829')](_0x223f5e)[_0x2f18df('0x1af5')][_0x2f18df('0x17e7')](function(_0x5382cc){const _0x4a10cc=_0x2f18df;_0x87748e[_0x4a10cc('0x1178')]({'title':'The\x20contact\x20is\x20in\x20the\x20hopper','msg':_0x4a10cc('0x1eb4')+_0x5382cc['ContactId']});})[_0x2f18df('0x16df')](function(_0x4048d7){const _0x5115cf=_0x2f18df;_0x4048d7[_0x5115cf('0x1457')]===_0x5115cf('0x423')?_0x181d20[_0x5115cf('0xf6a')][_0x5115cf('0x2439')](_0x3b95ef(_0x223f5e))[_0x5115cf('0x1af5')][_0x5115cf('0x17e7')](function(_0x433186){const _0x321620=_0x5115cf;_0x87748e['info']({'title':_0x321620('0x15e7'),'msg':'Contact\x20ID\x20'+_0x433186[_0x321620('0x1e84')]}),_0x433186[_0x321620('0x1e84')]&&_0x181d20[_0x321620('0x2231')]['save'](_0x31d58d(_0x223f5e));})['catch'](function(_0x27c86a){const _0x187631=_0x5115cf;!_0x49cbdd()['isNil'](_0x27c86a[_0x187631('0x1457')])&&_0x27c86a[_0x187631('0x1457')]['message']===_0x187631('0x954')?_0x87748e[_0x187631('0x1178')]({'title':_0x187631('0x1fa0'),'msg':_0x187631('0x1eb4')+_0x223f5e['ContactId']}):_0x87748e[_0x187631('0x1db9')]({'title':_0x27c86a['status']?_0x187631('0x14f7')+_0x27c86a[_0x187631('0x11c5')]+'\x20-\x20'+_0x27c86a[_0x187631('0x1833')]:_0x187631('0x21ab'),'msg':_0x27c86a[_0x187631('0x1457')]?JSON[_0x187631('0x678')](_0x27c86a[_0x187631('0x1457')][_0x187631('0x1603')]):_0x27c86a[_0x187631('0x1603')]||_0x27c86a[_0x187631('0x9b6')]()});}):_0x87748e[_0x5115cf('0x1db9')]({'title':_0x4048d7[_0x5115cf('0x11c5')]?_0x5115cf('0x14f7')+_0x4048d7[_0x5115cf('0x11c5')]+_0x5115cf('0x16e4')+_0x4048d7['statusText']:'SYSTEM:GETvoiceQueue','msg':_0x4048d7['data']?JSON[_0x5115cf('0x678')](_0x4048d7[_0x5115cf('0x1457')][_0x5115cf('0x1603')]):_0x4048d7[_0x5115cf('0x1603')]||_0x4048d7[_0x5115cf('0x9b6')]()});});}let _0x539793=!![],_0x57887d=0x1;_0x2a373e[_0x1cda18('0x620')](_0x1cda18('0x4c3'),function(_0x273c8b,_0x5c1c33){const _0x4de239=_0x1cda18;_0x539793?_0x16f818(function(){_0x539793=![];}):(!_0x5c1c33&&(_0x57887d=_0x222dd9[_0x4de239('0x826')][_0x4de239('0x115a')]),_0x273c8b!==_0x5c1c33&&(_0x222dd9['query'][_0x4de239('0x115a')]=0x1),!_0x273c8b&&(_0x222dd9['query']['page']=_0x57887d),_0x15e9d9());});}const _0x1394c4=_0x389094;_0x16fc59[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x16fc59(_0x5780dd,_0x112e25,_0x2ed888,_0x4a568b,_0x360e13,_0x5ea559,_0x238b23,_0x292f78,_0x50905c,_0x399039,_0x5d40b4){const _0x30541c=_0x4376d8,_0x21eb18=this;_0x21eb18[_0x30541c('0x197c')]=_0x5d40b4[_0x30541c('0x2831')](),_0x21eb18[_0x30541c('0x25f7')]={},_0x21eb18[_0x30541c('0x1c29')]={'count':0x0,'rows':[]},_0x21eb18[_0x30541c('0x1682')]=[],_0x21eb18['crudPermissions'],_0x21eb18[_0x30541c('0x826')]={'fields':'createdAt,updatedAt,uniqueid,ContactId,calleridnum,calleridname,statedesc,scheduledat,starttime,responsetime,endtime','sort':_0x30541c('0x1bf2'),'limit':0xa,'page':0x1},_0x21eb18[_0x30541c('0x161d')]=_0x18b17d,_0x21eb18[_0x30541c('0x1a20')]=_0x2ac5c8,_0x21eb18[_0x30541c('0x130d')]=_0x25dd4c,_0x21eb18['getQueueCampaignHopperHistories']=_0x505c30,_0x21eb18['exportSelectedQueueCampaignHopperHistories']=_0x4e2f8e,_0x21eb18['deleteQueueCampaignHopperHistory']=_0x31ee58,_0x21eb18[_0x30541c('0x11c2')]=_0x1926d9;function _0x18b17d(_0x2e5c9b,_0x5c2c5f){const _0x33142a=_0x30541c;_0x21eb18[_0x33142a('0x25f7')]=_0x2e5c9b,_0x21eb18['crudPermissions']=typeof _0x5c2c5f!==_0x33142a('0xfad')?_0x5c2c5f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x21eb18[_0x33142a('0x826')][_0x33142a('0x2803')]=_0x21eb18[_0x33142a('0x25f7')]['id'],_0x21eb18['query']['id']=_0x21eb18[_0x33142a('0x25f7')]['id'],_0x505c30();}function _0x2ac5c8(_0x11d26e,_0x4893f6){const _0x5ca06c=_0x30541c,_0x684f61=_0x238b23[_0x5ca06c('0x1121')]()[_0x5ca06c('0x24d3')](_0x5ca06c('0xda4'))['htmlContent'](''+(_0x11d26e[_0x5ca06c('0x2aa')]||_0x11d26e['id']&&_0x49cbdd()['upperFirst'](_0x5ca06c('0x1764'))+_0x11d26e['id']||_0x5ca06c('0x246c'))+_0x5ca06c('0x1d23')+_0x5ca06c('0xe9f'))[_0x5ca06c('0x2095')]('delete\x20hopperHistory')['targetEvent'](_0x4893f6)['ok']('OK')[_0x5ca06c('0x1d47')](_0x5ca06c('0x28a0'));_0x238b23['show'](_0x684f61)['then'](function(){_0x31ee58(_0x11d26e);},function(){const _0x37742c=_0x5ca06c;console[_0x37742c('0x1d63')](_0x37742c('0x28a0'));});}function _0x25dd4c(_0xadf984){const _0x3f03e1=_0x30541c;_0x21eb18[_0x3f03e1('0x1c29')]=_0xadf984||{'count':0x0,'rows':[]};}function _0x505c30(){const _0xc53563=_0x30541c;_0x21eb18[_0xc53563('0x826')][_0xc53563('0xf19')]=(_0x21eb18['query'][_0xc53563('0x115a')]-0x1)*_0x21eb18[_0xc53563('0x826')][_0xc53563('0x193b')],_0x21eb18[_0xc53563('0x1691')]=_0x399039[_0xc53563('0x1243')][_0xc53563('0x200b')](_0x21eb18[_0xc53563('0x826')],_0x25dd4c)['$promise'];}function _0x31ee58(_0x1a6542){const _0x8df6c2=_0x30541c;_0x399039[_0x8df6c2('0x246c')][_0x8df6c2('0x1da6')]({'id':_0x1a6542['id']})['$promise']['then'](function(){const _0x1e59c4=_0x8df6c2;_0x49cbdd()[_0x1e59c4('0x5f3')](_0x21eb18[_0x1e59c4('0x1c29')]['rows'],{'id':_0x1a6542['id']}),_0x21eb18['queueCampaignHopperHistories'][_0x1e59c4('0x335')]-=0x1,!_0x21eb18[_0x1e59c4('0x1c29')]['rows'][_0x1e59c4('0x1f73')]&&_0x505c30(),_0x50905c[_0x1e59c4('0x130d')]({'title':_0x1e59c4('0x1f3c'),'msg':_0x1a6542[_0x1e59c4('0x2aa')]?_0x1a6542[_0x1e59c4('0x2aa')]+_0x1e59c4('0x149f'):''});})[_0x8df6c2('0x16df')](function(_0x47625f){const _0x1fcc04=_0x8df6c2;if(_0x47625f[_0x1fcc04('0x1457')]&&_0x47625f[_0x1fcc04('0x1457')][_0x1fcc04('0x73e')]&&_0x47625f[_0x1fcc04('0x1457')]['errors'][_0x1fcc04('0x1f73')]){_0x21eb18[_0x1fcc04('0x73e')]=_0x47625f['data'][_0x1fcc04('0x73e')]||[{'message':_0x47625f[_0x1fcc04('0x9b6')](),'type':_0x1fcc04('0x21ab')}];for(let _0x3bcde2=0x0;_0x3bcde2<_0x47625f[_0x1fcc04('0x1457')][_0x1fcc04('0x73e')][_0x1fcc04('0x1f73')];_0x3bcde2++){_0x50905c[_0x1fcc04('0x1db9')]({'title':_0x47625f['data'][_0x1fcc04('0x73e')][_0x3bcde2]['type'],'msg':_0x47625f[_0x1fcc04('0x1457')]['errors'][_0x3bcde2][_0x1fcc04('0x1603')]});}}else _0x50905c[_0x1fcc04('0x1db9')]({'title':_0x47625f[_0x1fcc04('0x11c5')]?_0x1fcc04('0x14f7')+_0x47625f[_0x1fcc04('0x11c5')]+_0x1fcc04('0x16e4')+_0x47625f[_0x1fcc04('0x1833')]:'SYSTEM:GETvoiceQueue','msg':_0x47625f['data']?JSON['stringify'](_0x47625f['data'][_0x1fcc04('0x1603')]):_0x47625f[_0x1fcc04('0x1603')]||_0x47625f[_0x1fcc04('0x9b6')]()});});}function _0x4e2f8e(){const _0x166957=_0x30541c,_0x3af740=angular[_0x166957('0x14e5')](_0x21eb18[_0x166957('0x1682')]);return _0x21eb18[_0x166957('0x1682')]=[],_0x3af740;}function _0x1926d9(_0x42ffd8){const _0x1c3a10=_0x30541c,_0x390d03=_0x238b23['confirm']()[_0x1c3a10('0x24d3')](_0x1c3a10('0xf5f'))['htmlContent'](_0x1c3a10('0xa53')+_0x21eb18['selectedQueueCampaignHopperHistories'][_0x1c3a10('0x1f73')]+_0x1c3a10('0x145a')+_0x1c3a10('0xe9f'))[_0x1c3a10('0x2095')](_0x1c3a10('0x1a5e'))[_0x1c3a10('0x104f')](_0x42ffd8)['ok']('OK')[_0x1c3a10('0x1d47')](_0x1c3a10('0x28a0'));_0x238b23['show'](_0x390d03)[_0x1c3a10('0x17e7')](function(){const _0x4f3560=_0x1c3a10;_0x21eb18[_0x4f3560('0x1682')][_0x4f3560('0xccd')](function(_0x2dcafb){_0x31ee58(_0x2dcafb);}),_0x21eb18['selectedQueueCampaignHopperHistories']=[];});}let _0x5f2420=!![],_0x203026=0x1;_0x112e25['$watch'](_0x30541c('0x4c3'),function(_0x29bdfb,_0x30e17e){const _0x938ada=_0x30541c;_0x5f2420?_0x5ea559(function(){_0x5f2420=![];}):(!_0x30e17e&&(_0x203026=_0x21eb18['query']['page']),_0x29bdfb!==_0x30e17e&&(_0x21eb18[_0x938ada('0x826')]['page']=0x1),!_0x29bdfb&&(_0x21eb18['query']['page']=_0x203026),_0x505c30());});}const _0x340592=_0x16fc59;_0x5d6d1f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),'$timeout','$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'Auth'];function _0x5d6d1f(_0xa011f6,_0x36f466,_0x297bf7,_0x10a6f2,_0x49c771,_0x5908a1,_0x2f7075,_0x5c4f74,_0x132a9a,_0x5c2d69,_0x4b6e55){const _0x3d5dfd=_0x4376d8,_0xfa803e=this;_0xfa803e[_0x3d5dfd('0x197c')]=_0x4b6e55[_0x3d5dfd('0x2831')](),_0xfa803e[_0x3d5dfd('0x25f7')]={},_0xfa803e[_0x3d5dfd('0x1e1c')]={'count':0x0,'rows':[]},_0xfa803e[_0x3d5dfd('0x14b4')]=[],_0xfa803e[_0x3d5dfd('0x103e')],_0xfa803e[_0x3d5dfd('0x826')]={'fields':'createdAt,updatedAt,id,ContactId,phone,countcongestionretry,countbusyretry,countnoanswerretry,countnosuchnumberretry,countdropretry,countabandonedretry,countmachineretry,countagentrejectretry,scheduledat,priority,recallme,UserId','sort':_0x3d5dfd('0x1ac6'),'limit':0xa,'page':0x1},_0xfa803e[_0x3d5dfd('0x1a1b')]=_0x49cbdd()['keyBy']([{'option':_0x3d5dfd('0x11ea'),'value':_0x3d5dfd('0x1c3')},{'option':_0x3d5dfd('0xf1e'),'value':_0x3d5dfd('0x3f5')},{'option':'Medium','value':_0x3d5dfd('0x788')},{'option':_0x3d5dfd('0xfd2'),'value':_0x3d5dfd('0x1d26')},{'option':_0x3d5dfd('0x1135'),'value':'\x270\x27'}],function(_0x5e8e09){const _0x2bfb9a=_0x3d5dfd;return _0x49cbdd()[_0x2bfb9a('0x737')](_0x5e8e09['value'],new RegExp('\x27','g'),'');}),_0xfa803e[_0x3d5dfd('0x161d')]=_0x24d9fc,_0xfa803e['deleteConfirm']=_0x536bb1,_0xfa803e['success']=_0x4021b6,_0xfa803e[_0x3d5dfd('0x627')]=_0x4bcc94,_0xfa803e[_0x3d5dfd('0x249f')]=_0x414a12,_0xfa803e[_0x3d5dfd('0x1beb')]=_0x4294f7,_0xfa803e[_0x3d5dfd('0x687')]=_0x292688,_0xfa803e['deleteSelectedQueueCampaignHoppers']=_0x3e0ede,_0x4b6e55[_0x3d5dfd('0x1ba2')](_0x3d5dfd('0x20bf'))?_0x5c2d69[_0x3d5dfd('0x221e')][_0x3d5dfd('0x1c53')]({'fields':'id,name','role':_0x3d5dfd('0x684'),'sort':_0x3d5dfd('0x2aa'),'nolimit':_0x3d5dfd('0xe34')})[_0x3d5dfd('0x1af5')][_0x3d5dfd('0x17e7')](function(_0x4b55c2){const _0x38957d=_0x3d5dfd;_0xfa803e[_0x38957d('0x25ea')]=_0x4b55c2[_0x38957d('0x2319')]||[];})[_0x3d5dfd('0x16df')](function(_0x4a1de8){const _0x4fd41f=_0x3d5dfd;_0x132a9a['error']({'title':_0x4a1de8[_0x4fd41f('0x11c5')]?_0x4fd41f('0x14f7')+_0x4a1de8[_0x4fd41f('0x11c5')]+_0x4fd41f('0x16e4')+_0x4a1de8['statusText']:'SYSTEM:GET_AGENTS','msg':_0x4a1de8[_0x4fd41f('0x1457')]?JSON[_0x4fd41f('0x678')](_0x4a1de8['data']):_0x4a1de8['toString']()});}):_0x5c2d69[_0x3d5dfd('0x221e')][_0x3d5dfd('0x1c53')]({'fields':_0x3d5dfd('0x12d2'),'role':_0x3d5dfd('0x684'),'sort':_0x3d5dfd('0x2aa'),'nolimit':_0x3d5dfd('0xe34')})[_0x3d5dfd('0x1af5')][_0x3d5dfd('0x17e7')](function(_0x49c0f2){const _0x1bdcbf=_0x3d5dfd;_0xfa803e[_0x1bdcbf('0x25ea')]=_0x49c0f2[_0x1bdcbf('0x2319')]||[];})[_0x3d5dfd('0x17e7')](function(){const _0x199bb5=_0x3d5dfd;return _0x5c2d69['userProfileSection']['get']({'userProfileId':_0xfa803e[_0x199bb5('0x197c')][_0x199bb5('0x1e76')],'sectionId':0xca})[_0x199bb5('0x1af5')];})['then'](function(_0x13ea32){const _0x2b84c6=_0x3d5dfd,_0x277983=_0x13ea32&&_0x13ea32[_0x2b84c6('0x2319')]?_0x13ea32[_0x2b84c6('0x2319')][0x0]:null;if(!_0x277983){const _0x3df99c=[];let _0x1ebf95=null;_0xfa803e['queueCampaign']&&(_0x1ebf95=_0x49cbdd()[_0x2b84c6('0xe8e')](_0xfa803e[_0x2b84c6('0x25ea')],{'id':Number(_0xfa803e[_0x2b84c6('0x25f7')][_0x2b84c6('0x5e5')])}));for(let _0x5fff66=0x0;_0x5fff66<_0xfa803e[_0x2b84c6('0x25ea')][_0x2b84c6('0x1f73')];_0x5fff66++){_0x1ebf95&&_0xfa803e['agents'][_0x5fff66]['id']===_0x1ebf95['id']&&(_0xfa803e[_0x2b84c6('0x25ea')][_0x5fff66][_0x2b84c6('0xe5c')]=![],_0x3df99c[_0x2b84c6('0x269f')](_0xfa803e[_0x2b84c6('0x25ea')][_0x5fff66]));}_0xfa803e[_0x2b84c6('0x25ea')]=_0x3df99c;}else{if(!_0x277983[_0x2b84c6('0x9e3')])return _0x5c2d69[_0x2b84c6('0x78d')][_0x2b84c6('0x1c53')]({'sectionId':_0x277983['id']})[_0x2b84c6('0x1af5')][_0x2b84c6('0x17e7')](function(_0xe1dd5d){const _0x27f37a=_0x2b84c6,_0x7d56bc=_0x49cbdd()[_0x27f37a('0x787')](_0xe1dd5d[_0x27f37a('0x2319')],function(_0x22e1ca){const _0x33c190=_0x27f37a;return _0x49cbdd()[_0x33c190('0xe8e')](_0xfa803e[_0x33c190('0x25ea')],{'id':_0x22e1ca['resourceId']});});let _0x470c59=null;_0xfa803e[_0x27f37a('0x25f7')]&&(_0x470c59=_0x49cbdd()[_0x27f37a('0xe8e')](_0xfa803e[_0x27f37a('0x25ea')],{'id':Number(_0xfa803e['queueCampaign'][_0x27f37a('0x5e5')])}));if(_0x470c59&&!_0x49cbdd()[_0x27f37a('0x26f8')](_0x7d56bc,['id',_0x470c59['id']])){const _0x40c4ff=_0x49cbdd()[_0x27f37a('0xe8e')](_0xfa803e[_0x27f37a('0x25ea')],{'id':_0x470c59['id']});_0x40c4ff[_0x27f37a('0xe5c')]=![],_0x7d56bc[_0x27f37a('0x269f')](_0x40c4ff);}_0xfa803e[_0x27f37a('0x25ea')]=_0x7d56bc;});}})[_0x3d5dfd('0x16df')](function(_0x4bd018){const _0x56d762=_0x3d5dfd;_0x132a9a['error']({'title':_0x4bd018[_0x56d762('0x11c5')]?'API:'+_0x4bd018[_0x56d762('0x11c5')]+_0x56d762('0x16e4')+_0x4bd018[_0x56d762('0x1833')]:_0x56d762('0xa37'),'msg':_0x4bd018[_0x56d762('0x1457')]?JSON[_0x56d762('0x678')](_0x4bd018[_0x56d762('0x1457')]):_0x4bd018[_0x56d762('0x9b6')]()});});function _0x24d9fc(_0x4b5db2,_0x344e7b){const _0x516a3e=_0x3d5dfd;_0xfa803e['queueCampaign']=_0x4b5db2,_0xfa803e[_0x516a3e('0x103e')]=typeof _0x344e7b!==_0x516a3e('0xfad')?_0x344e7b:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0xfa803e[_0x516a3e('0x826')][_0x516a3e('0x2803')]=_0xfa803e[_0x516a3e('0x25f7')]['id'],_0xfa803e['query']['id']=_0xfa803e[_0x516a3e('0x25f7')]['id'],_0x4bcc94();}function _0x536bb1(_0x2456de,_0x5e4d30){const _0x4db593=_0x3d5dfd,_0xb60e7f=_0x2f7075[_0x4db593('0x1121')]()[_0x4db593('0x24d3')](_0x4db593('0x158'))[_0x4db593('0x211f')](_0x4db593('0xa53')+(_0x2456de['name']||_0x2456de['id']&&_0x49cbdd()[_0x4db593('0x233c')]('hopper\x20#')+_0x2456de['id']||_0x4db593('0x2774'))+_0x4db593('0x1d23')+_0x4db593('0xe9f'))['ariaLabel'](_0x4db593('0x538'))[_0x4db593('0x104f')](_0x5e4d30)['ok']('OK')[_0x4db593('0x1d47')](_0x4db593('0x28a0'));_0x2f7075['show'](_0xb60e7f)[_0x4db593('0x17e7')](function(){_0x292688(_0x2456de);},function(){const _0x3ef062=_0x4db593;console[_0x3ef062('0x1d63')]('CANCEL');});}function _0x4021b6(_0x2813f9){const _0x1183e3=_0x3d5dfd;_0xfa803e[_0x1183e3('0x1e1c')]=_0x2813f9||{'count':0x0,'rows':[]};}function _0x4bcc94(){const _0x23a8b1=_0x3d5dfd;_0xfa803e['query'][_0x23a8b1('0xf19')]=(_0xfa803e[_0x23a8b1('0x826')][_0x23a8b1('0x115a')]-0x1)*_0xfa803e[_0x23a8b1('0x826')][_0x23a8b1('0x193b')],_0xfa803e['promise']=_0x5c2d69['voiceQueue'][_0x23a8b1('0x172f')](_0xfa803e['query'],_0x4021b6)[_0x23a8b1('0x1af5')];}function _0x414a12(_0x2f3fe1,_0x5aa6ea){const _0x4d3258=_0x3d5dfd;_0x2f7075['show']({'controller':_0x4d3258('0x49f'),'controllerAs':'vm','templateUrl':_0x1e4a8a,'parent':angular[_0x4d3258('0x1ce1')](_0x5c4f74['body']),'targetEvent':_0x2f3fe1,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xfa803e[_0x4d3258('0x25f7')],'hopper':_0x5aa6ea,'hoppers':_0xfa803e[_0x4d3258('0x1e1c')][_0x4d3258('0x2319')],'license':null,'setting':null,'crudPermissions':_0xfa803e['crudPermissions']}});}function _0x292688(_0x3d9006){const _0x4a90f3=_0x3d5dfd;_0x5c2d69[_0x4a90f3('0xf6a')][_0x4a90f3('0x1da6')]({'id':_0x3d9006['id']})[_0x4a90f3('0x1af5')][_0x4a90f3('0x17e7')](function(){const _0x347ea0=_0x4a90f3;_0x49cbdd()['remove'](_0xfa803e['queueCampaignHoppers']['rows'],{'id':_0x3d9006['id']}),_0xfa803e[_0x347ea0('0x1e1c')][_0x347ea0('0x335')]-=0x1,!_0xfa803e['queueCampaignHoppers'][_0x347ea0('0x2319')][_0x347ea0('0x1f73')]&&_0x4bcc94(),_0x132a9a[_0x347ea0('0x130d')]({'title':_0x347ea0('0x1f1d'),'msg':_0x3d9006[_0x347ea0('0x2aa')]?_0x3d9006[_0x347ea0('0x2aa')]+_0x347ea0('0x149f'):''});})['catch'](function(_0x4295a2){const _0x4ed97d=_0x4a90f3;if(_0x4295a2['data']&&_0x4295a2['data'][_0x4ed97d('0x73e')]&&_0x4295a2[_0x4ed97d('0x1457')]['errors'][_0x4ed97d('0x1f73')]){_0xfa803e[_0x4ed97d('0x73e')]=_0x4295a2['data'][_0x4ed97d('0x73e')]||[{'message':_0x4295a2[_0x4ed97d('0x9b6')](),'type':_0x4ed97d('0x21ab')}];for(let _0x1eb7fc=0x0;_0x1eb7fc<_0x4295a2[_0x4ed97d('0x1457')]['errors'][_0x4ed97d('0x1f73')];_0x1eb7fc++){_0x132a9a[_0x4ed97d('0x1db9')]({'title':_0x4295a2[_0x4ed97d('0x1457')][_0x4ed97d('0x73e')][_0x1eb7fc][_0x4ed97d('0x412')],'msg':_0x4295a2[_0x4ed97d('0x1457')][_0x4ed97d('0x73e')][_0x1eb7fc]['message']});}}else _0x132a9a[_0x4ed97d('0x1db9')]({'title':_0x4295a2[_0x4ed97d('0x11c5')]?_0x4ed97d('0x14f7')+_0x4295a2[_0x4ed97d('0x11c5')]+_0x4ed97d('0x16e4')+_0x4295a2[_0x4ed97d('0x1833')]:_0x4ed97d('0x21ab'),'msg':_0x4295a2[_0x4ed97d('0x1457')]?JSON[_0x4ed97d('0x678')](_0x4295a2[_0x4ed97d('0x1457')][_0x4ed97d('0x1603')]):_0x4295a2[_0x4ed97d('0x1603')]||_0x4295a2[_0x4ed97d('0x9b6')]()});});}function _0x4294f7(){const _0x5b8288=_0x3d5dfd,_0xfff3d9=angular[_0x5b8288('0x14e5')](_0xfa803e[_0x5b8288('0x14b4')]);return _0xfa803e[_0x5b8288('0x14b4')]=[],_0xfff3d9;}function _0x3e0ede(_0x187184){const _0x3bda19=_0x3d5dfd,_0x1ceb1c=_0x2f7075[_0x3bda19('0x1121')]()[_0x3bda19('0x24d3')](_0x3bda19('0x1fee'))[_0x3bda19('0x211f')](''+_0xfa803e['selectedQueueCampaignHoppers'][_0x3bda19('0x1f73')]+'\x20selected'+_0x3bda19('0xe9f'))['ariaLabel']('delete\x20hoppers')[_0x3bda19('0x104f')](_0x187184)['ok']('OK')[_0x3bda19('0x1d47')]('CANCEL');_0x2f7075[_0x3bda19('0x28e2')](_0x1ceb1c)[_0x3bda19('0x17e7')](function(){const _0x153b20=_0x3bda19;_0xfa803e[_0x153b20('0x14b4')][_0x153b20('0xccd')](function(_0x3dd8e4){_0x292688(_0x3dd8e4);}),_0xfa803e[_0x153b20('0x14b4')]=[];});}let _0x34cc3b=!![],_0x3e31eb=0x1;_0x36f466['$watch'](_0x3d5dfd('0x4c3'),function(_0x1c55a,_0x49c527){const _0x496397=_0x3d5dfd;_0x34cc3b?_0x5908a1(function(){_0x34cc3b=![];}):(!_0x49c527&&(_0x3e31eb=_0xfa803e[_0x496397('0x826')]['page']),_0x1c55a!==_0x49c527&&(_0xfa803e[_0x496397('0x826')]['page']=0x1),!_0x1c55a&&(_0xfa803e[_0x496397('0x826')][_0x496397('0x115a')]=_0x3e31eb),_0x4bcc94());});}const _0x3090ed=_0x5d6d1f;_0x55d6e3[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0xf70'),'hopper',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x55d6e3(_0x4bc899,_0x2e19c6,_0x94959a,_0xec567c,_0x18f876,_0x44066f,_0x231ff1,_0x1dc1ac,_0x5aae9d,_0x252acf,_0x428077,_0x51627a,_0xd21a2a,_0x5c9c13){const _0x490b56=_0x4376d8,_0x32b5df=this;_0x32b5df[_0x490b56('0x197c')]=_0x428077[_0x490b56('0x2831')](),_0x32b5df['errors']=[],_0x32b5df['setting']=_0xd21a2a,_0x32b5df['license']=_0x51627a,_0x32b5df[_0x490b56('0x103e')]=_0x5c9c13,_0x32b5df['hasModulePermissions']={},_0x32b5df['passwordPattern']=_0x32b5df[_0x490b56('0x1aeb')]&&_0x32b5df[_0x490b56('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x32b5df[_0x490b56('0x24d3')]=_0x490b56('0x1a73'),_0x32b5df[_0x490b56('0x2774')]=angular[_0x490b56('0x14e5')](_0x5aae9d),_0x32b5df[_0x490b56('0xf70')]=_0x1dc1ac,_0x32b5df[_0x490b56('0x96d')]=![];!_0x32b5df[_0x490b56('0x2774')]&&(_0x32b5df[_0x490b56('0x2774')]={},_0x32b5df['title']=_0x490b56('0x2866'),_0x32b5df[_0x490b56('0x96d')]=!![]);_0x2e19c6[_0x490b56('0x16fb')]['id']&&(_0x32b5df[_0x490b56('0x2774')][_0x490b56('0x2803')]=_0x2e19c6[_0x490b56('0x16fb')]['id']);_0x32b5df[_0x490b56('0x1e98')]=_0x4636a6,_0x32b5df[_0x490b56('0xdf2')]=_0x3809a2,_0x32b5df['deleteHopper']=_0x4dc61b,_0x32b5df[_0x490b56('0x1300')]=_0x42e0f6,_0x32b5df[_0x490b56('0x136e')]=_0x5ca501,_0x428077['hasRole']('admin')?_0x252acf[_0x490b56('0x221e')][_0x490b56('0x1c53')]({'fields':_0x490b56('0x12d2'),'role':_0x490b56('0x684'),'sort':_0x490b56('0x2aa'),'nolimit':'true'})[_0x490b56('0x1af5')][_0x490b56('0x17e7')](function(_0x29ae23){const _0x2a3cbf=_0x490b56;_0x32b5df['agents']=_0x29ae23[_0x2a3cbf('0x2319')]||[];})['catch'](function(_0x44168f){const _0x2997ac=_0x490b56;_0x231ff1['error']({'title':_0x44168f[_0x2997ac('0x11c5')]?_0x2997ac('0x14f7')+_0x44168f['status']+_0x2997ac('0x16e4')+_0x44168f['statusText']:_0x2997ac('0x23e0'),'msg':_0x44168f[_0x2997ac('0x1457')]?JSON[_0x2997ac('0x678')](_0x44168f[_0x2997ac('0x1457')]):_0x44168f[_0x2997ac('0x9b6')]()});}):_0x252acf[_0x490b56('0x221e')][_0x490b56('0x1c53')]({'fields':_0x490b56('0x12d2'),'role':'agent','sort':_0x490b56('0x2aa'),'nolimit':_0x490b56('0xe34')})[_0x490b56('0x1af5')][_0x490b56('0x17e7')](function(_0x1e93de){const _0x2910e8=_0x490b56;_0x32b5df['agents']=_0x1e93de[_0x2910e8('0x2319')]||[];})[_0x490b56('0x17e7')](function(){const _0x48003d=_0x490b56;return _0x252acf[_0x48003d('0x383')]['get']({'userProfileId':_0x32b5df[_0x48003d('0x197c')]['userProfileId'],'sectionId':0xca})[_0x48003d('0x1af5')];})[_0x490b56('0x17e7')](function(_0x139bef){const _0x1df454=_0x490b56,_0x172d36=_0x139bef&&_0x139bef[_0x1df454('0x2319')]?_0x139bef['rows'][0x0]:null;if(!_0x172d36){const _0x55e433=[];let _0x36ae66=null;_0x32b5df[_0x1df454('0x2774')]&&(_0x36ae66=_0x49cbdd()[_0x1df454('0xe8e')](_0x32b5df[_0x1df454('0x25ea')],{'id':Number(_0x32b5df['hopper'][_0x1df454('0x5e5')])}));for(let _0x4442a1=0x0;_0x4442a1<_0x32b5df['agents'][_0x1df454('0x1f73')];_0x4442a1++){_0x36ae66&&_0x32b5df[_0x1df454('0x25ea')][_0x4442a1]['id']===_0x36ae66['id']&&(_0x32b5df[_0x1df454('0x25ea')][_0x4442a1]['canSelect']=![],_0x55e433['push'](_0x32b5df[_0x1df454('0x25ea')][_0x4442a1]));}_0x32b5df[_0x1df454('0x25ea')]=_0x55e433;}else{if(!_0x172d36[_0x1df454('0x9e3')])return _0x252acf[_0x1df454('0x78d')][_0x1df454('0x1c53')]({'sectionId':_0x172d36['id']})[_0x1df454('0x1af5')][_0x1df454('0x17e7')](function(_0x4cdd81){const _0x43b115=_0x1df454,_0xfc2474=_0x49cbdd()[_0x43b115('0x787')](_0x4cdd81[_0x43b115('0x2319')],function(_0x1cd27b){const _0x2c8173=_0x43b115;return _0x49cbdd()[_0x2c8173('0xe8e')](_0x32b5df[_0x2c8173('0x25ea')],{'id':_0x1cd27b[_0x2c8173('0x5db')]});});let _0x3c560e=null;_0x32b5df[_0x43b115('0x2774')]&&(_0x3c560e=_0x49cbdd()[_0x43b115('0xe8e')](_0x32b5df[_0x43b115('0x25ea')],{'id':Number(_0x32b5df[_0x43b115('0x2774')][_0x43b115('0x5e5')])}));if(_0x3c560e&&!_0x49cbdd()[_0x43b115('0x26f8')](_0xfc2474,['id',_0x3c560e['id']])){const _0xcd62a4=_0x49cbdd()[_0x43b115('0xe8e')](_0x32b5df['agents'],{'id':_0x3c560e['id']});_0xcd62a4[_0x43b115('0xe5c')]=![],_0xfc2474[_0x43b115('0x269f')](_0xcd62a4);}_0x32b5df['agents']=_0xfc2474;});}})[_0x490b56('0x16df')](function(_0x751bc8){const _0x447ca6=_0x490b56;_0x231ff1['error']({'title':_0x751bc8['status']?_0x447ca6('0x14f7')+_0x751bc8[_0x447ca6('0x11c5')]+_0x447ca6('0x16e4')+_0x751bc8[_0x447ca6('0x1833')]:_0x447ca6('0xa37'),'msg':_0x751bc8[_0x447ca6('0x1457')]?JSON[_0x447ca6('0x678')](_0x751bc8[_0x447ca6('0x1457')]):_0x751bc8[_0x447ca6('0x9b6')]()});});function _0x4636a6(){const _0x599863=_0x490b56;_0x32b5df['errors']=[],_0x252acf[_0x599863('0xf6a')][_0x599863('0x2439')](_0x32b5df[_0x599863('0x2774')])['$promise'][_0x599863('0x17e7')](function(_0x4ff002){const _0x132df0=_0x599863;_0x32b5df[_0x132df0('0xf70')][_0x132df0('0x1893')](_0x4ff002['toJSON']()),_0x231ff1['success']({'title':_0x132df0('0x492'),'msg':_0x32b5df[_0x132df0('0x2774')][_0x132df0('0x2aa')]?_0x32b5df[_0x132df0('0x2774')][_0x132df0('0x2aa')]+_0x132df0('0x15a'):''}),_0x5ca501(_0x4ff002);})['catch'](function(_0x496743){const _0x2d0c38=_0x599863;if(_0x496743[_0x2d0c38('0x1457')]&&_0x496743['data']['errors']&&_0x496743['data'][_0x2d0c38('0x73e')][_0x2d0c38('0x1f73')]){_0x32b5df[_0x2d0c38('0x73e')]=_0x496743[_0x2d0c38('0x1457')][_0x2d0c38('0x73e')]||[{'message':_0x496743[_0x2d0c38('0x9b6')](),'type':_0x2d0c38('0xa6a')}];for(let _0x4d2a4d=0x0;_0x4d2a4d<_0x496743[_0x2d0c38('0x1457')]['errors'][_0x2d0c38('0x1f73')];_0x4d2a4d+=0x1){_0x231ff1[_0x2d0c38('0x1db9')]({'title':_0x496743[_0x2d0c38('0x1457')][_0x2d0c38('0x73e')][_0x4d2a4d][_0x2d0c38('0x412')],'msg':_0x496743[_0x2d0c38('0x1457')]['errors'][_0x4d2a4d][_0x2d0c38('0x1603')]});}}else _0x231ff1['error']({'title':_0x496743[_0x2d0c38('0x11c5')]?_0x2d0c38('0x14f7')+_0x496743['status']+'\x20-\x20'+_0x496743[_0x2d0c38('0x1833')]:'api.cmHopper.save','msg':_0x496743['data']?JSON[_0x2d0c38('0x678')](_0x496743['data'][_0x2d0c38('0x1603')]):_0x496743[_0x2d0c38('0x9b6')]()});});}function _0x3809a2(){const _0x237eff=_0x490b56;_0x32b5df[_0x237eff('0x73e')]=[];let _0x28565c,_0x1c5154,_0x93776f,_0x4f3a1e;_0x32b5df['hopper'][_0x237eff('0x5e5')]=_0x32b5df[_0x237eff('0x2774')][_0x237eff('0x229')]?_0x32b5df[_0x237eff('0x2774')][_0x237eff('0x5e5')]:null,_0x32b5df[_0x237eff('0x2774')][_0x237eff('0x536')]=_0x428077[_0x237eff('0x2831')]()['id'],_0x252acf[_0x237eff('0xf6a')]['get']({'id':_0x32b5df[_0x237eff('0x2774')]['id'],'attributes':[_0x237eff('0x2809')]})[_0x237eff('0x1af5')]['then'](function(_0x396d43){const _0x1e033a=_0x237eff;_0x49cbdd()[_0x1e033a('0x390')](_0x396d43)||_0x49cbdd()['isEmpty'](_0x396d43)?_0x28565c=_0x107a13()()[_0x1e033a('0x1c0d')](_0x1e033a('0x1e17')):_0x28565c=_0x396d43[_0x1e033a('0x2809')];})['finally'](function(){const _0x1916d1=_0x237eff;_0x252acf[_0x1916d1('0xf6a')][_0x1916d1('0x27ba')]({'id':_0x32b5df[_0x1916d1('0x2774')]['id']},_0x49cbdd()[_0x1916d1('0x15c3')](_0x32b5df[_0x1916d1('0x2774')],[_0x1916d1('0x2803'),_0x1916d1('0x23b7'),_0x1916d1('0x1e84'),_0x1916d1('0x7f8')]))[_0x1916d1('0x1af5')][_0x1916d1('0x17e7')](function(_0x6c8421){const _0x26908a=_0x1916d1;_0x1c5154=_0x6c8421,_0x252acf[_0x26908a('0x1d2a')][_0x26908a('0x1c53')]({'id':_0x1c5154[_0x26908a('0x1e84')],'attributes':[_0x26908a('0x1761'),_0x26908a('0x8d6')]})[_0x26908a('0x1af5')]['then'](function(_0x735601){const _0x21b6a2=_0x26908a;!_0x49cbdd()[_0x21b6a2('0x390')](_0x735601)&&!_0x49cbdd()[_0x21b6a2('0x390')](_0x735601[_0x21b6a2('0x1761')])&&(_0x93776f=_0x735601[_0x21b6a2('0x1761')],!_0x49cbdd()[_0x21b6a2('0x390')](_0x735601['lastName'])&&(_0x93776f+='\x20'+_0x735601[_0x21b6a2('0x8d6')]));})[_0x26908a('0x16df')](function(){_0x93776f=undefined;})[_0x26908a('0x74e')](function(){const _0x3d63a7=_0x26908a;_0x252acf[_0x3d63a7('0x1243')][_0x3d63a7('0x1c53')]({'raw':![],'id':_0x1c5154['VoiceQueueId'],'attributes':[_0x3d63a7('0x2aa')]})[_0x3d63a7('0x1af5')]['then'](function(_0x3f522a){const _0x4c7905=_0x3d63a7;_0x4f3a1e=_0x3f522a[_0x4c7905('0x2aa')];})[_0x3d63a7('0x16df')](function(){_0x4f3a1e=undefined;})['finally'](function(){const _0x27b09a=_0x3d63a7;_0x252acf[_0x27b09a('0x2231')][_0x27b09a('0x2439')]({'state':0x18,'statedesc':_0x27b09a('0x2357'),'scheduledat':_0x28565c,'calleridnum':_0x1c5154[_0x27b09a('0x2154')],'calleridname':_0x93776f,'campaigntype':_0x1c5154[_0x27b09a('0x2803')]?_0x27b09a('0x1bd'):_0x27b09a('0xe8'),'campaign':_0x4f3a1e,'editedat':_0x107a13()()[_0x27b09a('0x1c0d')](_0x27b09a('0x1e17')),'edited':!![],'ListId':_0x1c5154[_0x27b09a('0x7f8')],'UserId':_0x428077[_0x27b09a('0x2831')]()['id'],'VoiceQueueId':_0x1c5154[_0x27b09a('0x2803')],'CampaignId':_0x1c5154['CampaignId'],'ContactId':_0x1c5154[_0x27b09a('0x1e84')],'callback':_0x1c5154[_0x27b09a('0x2cf')],'callbackuniqueid':_0x1c5154[_0x27b09a('0x25be')],'countbusyretry':_0x1c5154[_0x27b09a('0x1a7')],'countcongestionretry':_0x1c5154[_0x27b09a('0x26ed')],'countglobal':_0x1c5154['countglobal'],'countnoanswerretry':_0x1c5154[_0x27b09a('0xe85')],'followuptime':_0x1c5154[_0x27b09a('0xac9')],'recallme':_0x1c5154[_0x27b09a('0x229')]});});});const _0x47c328=_0x49cbdd()['find'](_0x32b5df[_0x26908a('0xf70')],{'id':_0x6c8421['id']});_0x47c328&&_0x49cbdd()['merge'](_0x47c328,_0x49cbdd()[_0x26908a('0x230a')](_0x6c8421[_0x26908a('0x16b2')](),_0x49cbdd()[_0x26908a('0x1c0f')](_0x47c328))),_0x231ff1[_0x26908a('0x130d')]({'title':_0x26908a('0x1e82'),'msg':_0x32b5df[_0x26908a('0x2774')][_0x26908a('0x2aa')]?_0x32b5df['hopper'][_0x26908a('0x2aa')]+_0x26908a('0x15ca'):''}),_0x5ca501(_0x6c8421);})['catch'](function(_0x5af76d){const _0x2bd853=_0x1916d1;if(_0x5af76d['data']&&_0x5af76d[_0x2bd853('0x1457')][_0x2bd853('0x73e')]&&_0x5af76d['data'][_0x2bd853('0x73e')][_0x2bd853('0x1f73')]){_0x32b5df[_0x2bd853('0x73e')]=_0x5af76d[_0x2bd853('0x1457')][_0x2bd853('0x73e')]||[{'message':_0x5af76d['toString'](),'type':_0x2bd853('0x22d')}];for(let _0x159dbb=0x0;_0x159dbb<_0x5af76d[_0x2bd853('0x1457')][_0x2bd853('0x73e')][_0x2bd853('0x1f73')];_0x159dbb++){_0x231ff1[_0x2bd853('0x1db9')]({'title':_0x5af76d[_0x2bd853('0x1457')][_0x2bd853('0x73e')][_0x159dbb][_0x2bd853('0x412')],'msg':_0x5af76d[_0x2bd853('0x1457')][_0x2bd853('0x73e')][_0x159dbb][_0x2bd853('0x1603')]});}}else _0x231ff1[_0x2bd853('0x1db9')]({'title':_0x5af76d['status']?_0x2bd853('0x14f7')+_0x5af76d['status']+_0x2bd853('0x16e4')+_0x5af76d['statusText']:_0x2bd853('0x22d'),'msg':_0x5af76d[_0x2bd853('0x1457')]?JSON[_0x2bd853('0x678')](_0x5af76d[_0x2bd853('0x1457')][_0x2bd853('0x1603')]):_0x5af76d['toString']()});});});}function _0x4dc61b(_0x7c24a){const _0x575210=_0x490b56;_0x32b5df[_0x575210('0x73e')]=[];const _0x17d251=_0xec567c[_0x575210('0x1121')]()['title'](_0x575210('0x530'))['content'](_0x575210('0x16c8'))[_0x575210('0x2095')]('Delete\x20Hopper')['ok'](_0x575210('0x304'))[_0x575210('0x1d47')](_0x575210('0x1b70'))[_0x575210('0x104f')](_0x7c24a);_0xec567c[_0x575210('0x28e2')](_0x17d251)['then'](function(){const _0x1dcec8=_0x575210;_0x252acf[_0x1dcec8('0xf6a')]['delete']({'id':_0x32b5df[_0x1dcec8('0x2774')]['id']})['$promise'][_0x1dcec8('0x17e7')](function(){const _0x5776cb=_0x1dcec8;_0x49cbdd()[_0x5776cb('0x5f3')](_0x32b5df[_0x5776cb('0xf70')],{'id':_0x32b5df['hopper']['id']}),_0x231ff1[_0x5776cb('0x130d')]({'title':'Hopper\x20properly\x20deleted!','msg':(_0x32b5df[_0x5776cb('0x2774')][_0x5776cb('0x2aa')]||_0x5776cb('0x2774'))+'\x20has\x20been\x20deleted!'}),_0x5ca501(_0x32b5df[_0x5776cb('0x2774')]);})[_0x1dcec8('0x16df')](function(_0x1b4e0b){const _0x20d99f=_0x1dcec8;if(_0x1b4e0b[_0x20d99f('0x1457')]&&_0x1b4e0b[_0x20d99f('0x1457')][_0x20d99f('0x73e')]&&_0x1b4e0b[_0x20d99f('0x1457')][_0x20d99f('0x73e')][_0x20d99f('0x1f73')]){_0x32b5df[_0x20d99f('0x73e')]=_0x1b4e0b[_0x20d99f('0x1457')][_0x20d99f('0x73e')]||[{'message':_0x1b4e0b['toString'](),'type':_0x20d99f('0x183c')}];for(let _0x1084df=0x0;_0x1084df<_0x1b4e0b[_0x20d99f('0x1457')]['errors'][_0x20d99f('0x1f73')];_0x1084df++){_0x231ff1[_0x20d99f('0x1db9')]({'title':_0x1b4e0b['data'][_0x20d99f('0x73e')][_0x1084df][_0x20d99f('0x412')],'msg':_0x1b4e0b[_0x20d99f('0x1457')][_0x20d99f('0x73e')][_0x1084df][_0x20d99f('0x1603')]});}}else _0x231ff1['error']({'title':_0x1b4e0b[_0x20d99f('0x11c5')]?_0x20d99f('0x14f7')+_0x1b4e0b[_0x20d99f('0x11c5')]+'\x20-\x20'+_0x1b4e0b[_0x20d99f('0x1833')]:_0x20d99f('0x183c'),'msg':_0x1b4e0b['data']?JSON[_0x20d99f('0x678')](_0x1b4e0b['data']['message']):_0x1b4e0b[_0x20d99f('0x1603')]||_0x1b4e0b['toString']()});});},function(){});}function _0x42e0f6(_0x145250){return _0x145250===null?undefined:new Date(_0x145250);}function _0x5ca501(_0x4db62f){const _0x4674d0=_0x490b56;_0xec567c[_0x4674d0('0x212a')](_0x4db62f);}}const _0x31d10f=_0x55d6e3;_0x590be9[_0x4376d8('0x1b9c')]=['api',_0x4376d8('0x108a')];function _0x590be9(_0x495357,_0xdc7a42){const _0xe95110=_0x4376d8,_0x388558=this;_0x388558[_0xe95110('0x25f7')]={},_0x388558[_0xe95110('0x161d')]=_0x174f3c;function _0x174f3c(_0xdc41cf){const _0x5e7f75=_0xe95110;_0x388558['queueCampaign']=_0xdc41cf,_0x495357['cmHopper']['get']({'limit':0x0,'VoiceQueueId':_0xdc41cf['id']})[_0x5e7f75('0x1af5')][_0x5e7f75('0x17e7')](function(_0x28f3a0){const _0xe774dc=_0x5e7f75;return _0x388558[_0xe774dc('0x1d0e')]=_0x28f3a0[_0xe774dc('0x335')]||0x0,_0x495357[_0xe774dc('0xf6a')]['get']({'limit':0x0,'VoiceQueueId':_0xdc41cf['id'],'active':![],'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0})[_0xe774dc('0x1af5')];})[_0x5e7f75('0x17e7')](function(_0x1c633c){const _0x4989b2=_0x5e7f75;return _0x388558[_0x4989b2('0x24cc')]=_0x1c633c[_0x4989b2('0x335')]||0x0,_0x495357[_0x4989b2('0x255c')][_0x4989b2('0x1c53')]({'limit':0x0,'VoiceQueueId':_0xdc41cf['id']})[_0x4989b2('0x1af5')];})[_0x5e7f75('0x17e7')](function(_0x54fdc5){const _0x1ec83e=_0x5e7f75;_0x388558[_0x1ec83e('0x2bc')]=_0x54fdc5['count']||0x0;})[_0x5e7f75('0x16df')](function(_0x356e64){const _0x11b0d0=_0x5e7f75;_0xdc7a42[_0x11b0d0('0x1db9')]({'title':_0x356e64[_0x11b0d0('0x11c5')]?_0x11b0d0('0x14f7')+_0x356e64[_0x11b0d0('0x11c5')]+_0x11b0d0('0x16e4')+_0x356e64['statusText']:_0x11b0d0('0x1435'),'msg':_0x356e64[_0x11b0d0('0x1457')]?JSON[_0x11b0d0('0x678')](_0x356e64[_0x11b0d0('0x1457')]):_0x356e64[_0x11b0d0('0x9b6')]()});});}}const _0x5e79fa=_0x590be9;_0x3befe2['$inject']=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x212e'),_0x4376d8('0x25f7'),_0x4376d8('0x28da'),_0x4376d8('0xef1'),_0x4376d8('0x1885'),'crudPermissions'];function _0x3befe2(_0xb1991d,_0x30bf15,_0x39fe01,_0x3d9311,_0x52bc7d,_0x521f03,_0x45915e,_0x3f75dd,_0x44b17c){const _0xa8f4e7=_0x4376d8,_0x306071=this;_0x306071['currentUser']=_0x3f75dd['getCurrentUser'](),_0x306071[_0xa8f4e7('0x25f7')]=_0x52bc7d,_0x306071[_0xa8f4e7('0x103e')]=_0x44b17c,_0x306071['apiRoute']='voiceQueue',_0x306071[_0xa8f4e7('0x27a0')]='getLists',_0x306071['addApi']=_0xa8f4e7('0x147f'),_0x306071[_0xa8f4e7('0x27c')]=_0xa8f4e7('0x1b63'),_0x306071[_0xa8f4e7('0x532')]=[],_0x306071[_0xa8f4e7('0x2722')]=[],_0x306071[_0xa8f4e7('0xc14')]=[],_0x306071[_0xa8f4e7('0x181b')]=[],_0x306071[_0xa8f4e7('0x1824')]=[],_0x306071[_0xa8f4e7('0x25dc')]=![],_0x306071[_0xa8f4e7('0x782')]=![],_0x306071[_0xa8f4e7('0x26f4')]={'readOnly':!_0x306071['crudPermissions'][_0xa8f4e7('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':![],'orderBy':_0xa8f4e7('0x2aa'),'line1':_0xa8f4e7('0x2aa'),'line2':'','line3':'','labelAll':_0x521f03[_0xa8f4e7('0x1acc')](_0xa8f4e7('0x21a3')),'labelSelected':_0x521f03[_0xa8f4e7('0x1acc')]('MOTIONDIALER.SELECTED_LISTS'),'transferCallback':function(){const _0x546730=_0xa8f4e7,_0x2ae794=_0x49cbdd()[_0x546730('0x137')](_0x306071['startingSelectedItems'],_0x306071[_0x546730('0xc14')],'id');_0x306071[_0x546730('0x25dc')]=_0x49cbdd()[_0x546730('0x109a')](_0x2ae794)?![]:!![];}},_0x306071[_0xa8f4e7('0xdf0')]=_0x526ccc,_0x306071[_0xa8f4e7('0xc8')]=_0x58eca6,_0x306071['closeDialog']=_0xec5a3f;function _0x526ccc(){const _0xf8f515=_0xa8f4e7;return _0x3f75dd[_0xf8f515('0x1ba2')](_0xf8f515('0x20bf'))?_0x34d435()[_0xf8f515('0x16df')](function(_0x3aa12f){const _0x402a45=_0xf8f515;_0x39fe01['error']({'title':_0x3aa12f[_0x402a45('0x11c5')]?_0x402a45('0x14f7')+_0x3aa12f[_0x402a45('0x11c5')]+'\x20-\x20'+_0x3aa12f[_0x402a45('0x1833')]:_0x402a45('0x1040'),'msg':_0x3aa12f['status']?JSON[_0x402a45('0x678')](_0x3aa12f[_0x402a45('0x1457')]):_0x3aa12f[_0x402a45('0x9b6')]()});}):_0x51245c()[_0xf8f515('0x17e7')](function(_0x46f31a){const _0x23c5d2=_0xf8f515;return _0x306071[_0x23c5d2('0x16f8')]=_0x46f31a,_0x34d435();})[_0xf8f515('0x16df')](function(_0x551e72){const _0x9d5a00=_0xf8f515;_0x39fe01[_0x9d5a00('0x1db9')]({'title':_0x551e72[_0x9d5a00('0x11c5')]?_0x9d5a00('0x14f7')+_0x551e72[_0x9d5a00('0x11c5')]+'\x20-\x20'+_0x551e72[_0x9d5a00('0x1833')]:_0x9d5a00('0x1040'),'msg':_0x551e72['status']?JSON[_0x9d5a00('0x678')](_0x551e72[_0x9d5a00('0x1457')]):_0x551e72[_0x9d5a00('0x9b6')]()});});}function _0x51245c(){return _0x30bf15(function(_0x55ed3b,_0x344136){const _0x79687b=a0_0xd29e;_0x3d9311[_0x79687b('0x383')][_0x79687b('0x1c53')]({'userProfileId':_0x306071[_0x79687b('0x197c')][_0x79687b('0x1e76')],'name':_0x79687b('0xeee')})[_0x79687b('0x1af5')][_0x79687b('0x17e7')](function(_0x4bac21){const _0xa6971a=_0x4bac21&&_0x4bac21['rows']?_0x4bac21['rows'][0x0]:null;_0x55ed3b(_0xa6971a);})[_0x79687b('0x16df')](function(_0x642ffe){_0x344136(_0x642ffe);});});}function _0x34d435(){return _0x30bf15(function(_0x342483,_0x4d8931){const _0xe07320=a0_0xd29e;return _0x43a655()[_0xe07320('0x17e7')](function(_0x364ce2){const _0x23fdf4=_0xe07320;return _0x306071[_0x23fdf4('0x532')]=_0x364ce2[_0x23fdf4('0x2319')]?_0x364ce2[_0x23fdf4('0x2319')]:[],_0x3f75dd['hasRole'](_0x23fdf4('0x20bf'))?_0x364ce2:_0x306071[_0x23fdf4('0x16f8')]?_0x306071[_0x23fdf4('0x16f8')][_0x23fdf4('0x9e3')]?_0x364ce2:_0x525a59():null;})[_0xe07320('0x17e7')](function(_0x35440a){const _0x228ba5=_0xe07320,_0x39c07d=_0x35440a&&_0x35440a['rows']?_0x35440a['rows']:[];return _0x306071['allowedItems']=_0x49cbdd()[_0x228ba5('0x787')](_0x39c07d,function(_0x2d64a1){const _0x553a73=_0x228ba5;return _0x49cbdd()['find'](_0x306071[_0x553a73('0x532')],{'id':_0x3f75dd[_0x553a73('0x1ba2')](_0x553a73('0x20bf'))||_0x306071[_0x553a73('0x16f8')]['autoAssociation']?_0x2d64a1['id']:_0x2d64a1['resourceId']});}),_0x306071[_0x228ba5('0x181b')]=angular[_0x228ba5('0x14e5')](_0x306071[_0x228ba5('0x2722')]),_0x306071[_0x228ba5('0x532')][_0x228ba5('0xccd')](function(_0x47efa7){const _0x5b1e68=_0x228ba5,_0x1c74d1=_0x49cbdd()[_0x5b1e68('0xe8e')](_0x306071[_0x5b1e68('0x2722')],{'id':_0x47efa7['id']});_0x306071[_0x5b1e68('0x197c')]['role']==='admin'?_0x47efa7[_0x5b1e68('0xc98')]=!![]:_0x47efa7[_0x5b1e68('0xc98')]=typeof _0x1c74d1!=='undefined'?!![]:![];}),_0x1d256e();})[_0xe07320('0x17e7')](function(_0x485960){const _0x2a9902=_0xe07320,_0x5b180d=_0x485960&&_0x485960[_0x2a9902('0x2319')]?_0x485960[_0x2a9902('0x2319')]:[];_0x306071['selectedItems']=_0x49cbdd()[_0x2a9902('0x787')](_0x5b180d,function(_0x4f5605){const _0x1078ed=_0x2a9902;return _0x49cbdd()['find'](_0x306071[_0x1078ed('0x532')],{'id':_0x4f5605['id']});}),_0x306071['startingSelectedItems']=angular[_0x2a9902('0x14e5')](_0x306071[_0x2a9902('0xc14')]),_0x306071[_0x2a9902('0x26f4')]['selectedItems']=_0x306071[_0x2a9902('0xc14')],_0x306071[_0x2a9902('0x26f4')][_0x2a9902('0x532')]=_0x49cbdd()[_0x2a9902('0x1ada')](_0x306071[_0x2a9902('0x2722')],_0x306071[_0x2a9902('0x26f4')][_0x2a9902('0xc14')],'id'),_0x342483();})[_0xe07320('0x16df')](function(_0x34d8f8){_0x4d8931(_0x34d8f8);});});}function _0x525a59(){return _0x30bf15(function(_0x281397,_0x49664d){const _0x3ce25f=a0_0xd29e;return _0x3d9311[_0x3ce25f('0x78d')][_0x3ce25f('0x1c53')]({'sectionId':_0x306071[_0x3ce25f('0x16f8')]['id'],'nolimit':!![]})['$promise'][_0x3ce25f('0x17e7')](function(_0x791487){_0x281397(_0x791487);})[_0x3ce25f('0x16df')](function(_0x3a2e16){_0x49664d(_0x3a2e16);});});}function _0x1d256e(){return _0x30bf15(function(_0x4a0709,_0x8a3f88){const _0x125164=a0_0xd29e,_0x2a3986=_0x3d9311[_0x306071['apiRoute']];return _0x2a3986[_0x306071['getApi']]({'id':_0x306071[_0x125164('0x25f7')]['id'],'fields':_0x125164('0x12d2'),'nolimit':!![]})[_0x125164('0x1af5')]['then'](function(_0x37bb36){_0x4a0709(_0x37bb36);})[_0x125164('0x16df')](function(_0x97239e){_0x8a3f88(_0x97239e);});});}function _0x43a655(){return _0x30bf15(function(_0x5e88e5,_0x24d298){const _0x49172f=a0_0xd29e;return _0x3d9311['cmList']['get']({'fields':_0x49172f('0x12d2'),'nolimit':!![]})[_0x49172f('0x1af5')][_0x49172f('0x17e7')](function(_0x5e3c14){_0x5e88e5(_0x5e3c14);})[_0x49172f('0x16df')](function(_0x747c11){_0x24d298(_0x747c11);});});}function _0x259fdf(_0x26cbc3){return _0x30bf15(function(_0xdb40bb,_0x4e5d15){const _0x53d623=a0_0xd29e;if(_0x49cbdd()['isEmpty'](_0x26cbc3))_0xdb40bb();else{const _0xd1c9c4=_0x3d9311[_0x306071['apiRoute']];_0xd1c9c4[_0x306071[_0x53d623('0xed')]]({'id':_0x306071[_0x53d623('0x25f7')]['id'],'ids':_0x49cbdd()[_0x53d623('0x787')](_0x26cbc3,'id')})[_0x53d623('0x1af5')]['then'](function(){_0xdb40bb();})['catch'](function(_0x35427f){_0x4e5d15(_0x35427f);});}});}function _0xcb66c4(_0x5644f2){return _0x30bf15(function(_0x3194fe,_0x347418){const _0x40cd49=a0_0xd29e;if(_0x49cbdd()['isEmpty'](_0x5644f2))_0x3194fe();else{const _0x4fa936=_0x3d9311[_0x306071[_0x40cd49('0x714')]];_0x4fa936[_0x306071['removeApi']]({'id':_0x306071[_0x40cd49('0x25f7')]['id'],'ids':_0x49cbdd()[_0x40cd49('0x787')](_0x5644f2,'id')})[_0x40cd49('0x1af5')][_0x40cd49('0x17e7')](function(){_0x3194fe();})['catch'](function(_0x5ae284){_0x347418(_0x5ae284);});}});}function _0x58eca6(){const _0x56d09c=_0xa8f4e7;_0x306071[_0x56d09c('0x782')]=!![];const _0x30f688=_0x49cbdd()['differenceBy'](_0x306071[_0x56d09c('0x1824')],_0x306071[_0x56d09c('0xc14')],'id'),_0x90604a=_0x49cbdd()[_0x56d09c('0x1ada')](_0x306071[_0x56d09c('0xc14')],_0x306071[_0x56d09c('0x1824')],'id');return _0xcb66c4(_0x30f688)['then'](function(){return _0x259fdf(_0x90604a);})[_0x56d09c('0x17e7')](function(){const _0x5cef73=_0x56d09c;_0x306071['pendingChanges']=![],_0x306071[_0x5cef73('0x181b')]=angular[_0x5cef73('0x14e5')](_0x306071[_0x5cef73('0x2722')]),_0x306071[_0x5cef73('0x1824')]=angular['copy'](_0x306071[_0x5cef73('0xc14')]),_0x39fe01[_0x5cef73('0x130d')]({'title':_0x5cef73('0x9d1'),'msg':_0x5cef73('0x1611')});})[_0x56d09c('0x16df')](function(_0x361adb){const _0x18e844=_0x56d09c;_0x39fe01['error']({'title':_0x361adb[_0x18e844('0x11c5')]?_0x18e844('0x14f7')+_0x361adb[_0x18e844('0x11c5')]+_0x18e844('0x16e4')+_0x361adb[_0x18e844('0x1833')]:_0x18e844('0x244e'),'msg':_0x361adb[_0x18e844('0x11c5')]?JSON[_0x18e844('0x678')](_0x361adb['data']):_0x361adb[_0x18e844('0x9b6')]()});})[_0x56d09c('0x74e')](function(){_0x306071['loading']=![];});}function _0xec5a3f(){_0xb1991d['hide']();}}const _0x5af182=_0x3befe2;_0x33f709[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x25f7'),_0x4376d8('0x1fe8'),_0x4376d8('0x1bcc'),'$q'];function _0x33f709(_0x22fbd2,_0x3d8042,_0x5a3907,_0xf19d29,_0x41c312,_0x1d337b,_0x7ddd15,_0x82e13){const _0x488cc4=_0x4376d8,_0x3e8283=this;_0x3e8283[_0x488cc4('0x19d5')]=[],_0x3e8283[_0x488cc4('0x532')]=_0x1d337b?_0x1d337b:[],_0x3e8283['loading']=![],_0x3e8283[_0x488cc4('0x136e')]=_0x5b5cee,_0x3e8283['exists']=_0x5cc970,_0x3e8283['toggle']=_0x3b1306,_0x3e8283[_0x488cc4('0x2037')]=_0x247ab3,_0x3e8283[_0x488cc4('0x2da')]=_0x382c5a,_0x3e8283[_0x488cc4('0x17ef')]=_0x4f4301,_0x3e8283['listSelected']=_0x25bfb1;function _0x3b1306(_0x229d05,_0x393eff){const _0x2f4b10=_0x488cc4,_0x5dc984=_0x393eff[_0x2f4b10('0x2567')](_0x229d05);_0x5dc984>-0x1?_0x393eff[_0x2f4b10('0x2335')](_0x5dc984,0x1):_0x393eff[_0x2f4b10('0x269f')](_0x229d05);}function _0x5cc970(_0xa57676,_0x1cbe31){const _0x43498e=_0x488cc4;return _0x1cbe31[_0x43498e('0x2567')](_0xa57676)>-0x1;}function _0x247ab3(){const _0x135a65=_0x488cc4;return _0x3e8283[_0x135a65('0x19d5')][_0x135a65('0x1f73')]!==0x0&&_0x3e8283['selected']['length']!==_0x3e8283[_0x135a65('0x532')][_0x135a65('0x1f73')];}function _0x382c5a(){const _0x9f47e9=_0x488cc4;return _0x3e8283[_0x9f47e9('0x19d5')]['length']===_0x3e8283[_0x9f47e9('0x532')][_0x9f47e9('0x1f73')];}function _0x4f4301(){const _0x596dff=_0x488cc4;if(_0x3e8283[_0x596dff('0x19d5')][_0x596dff('0x1f73')]===_0x3e8283[_0x596dff('0x532')][_0x596dff('0x1f73')])_0x3e8283['selected']=[];else(_0x3e8283[_0x596dff('0x19d5')][_0x596dff('0x1f73')]===0x0||_0x3e8283[_0x596dff('0x19d5')][_0x596dff('0x1f73')]>0x0)&&(_0x3e8283[_0x596dff('0x19d5')]=_0x3e8283['items'][_0x596dff('0x275f')](0x0));}function _0x5b5cee(){const _0xc77196=_0x488cc4;_0x3d8042[_0xc77196('0x212a')]();}function _0x25bfb1(){const _0xafb7ff=_0x488cc4;_0x3e8283['loading']=!![];const _0x6855b9=_0x2752be();_0x6855b9[_0xafb7ff('0x74e')](function(){const _0x568ff7=_0xafb7ff;_0x3e8283[_0x568ff7('0x782')]=![],_0x5b5cee();});}function _0x2752be(){return _0x82e13(function(_0x529cb3){const _0x4aa33c=a0_0xd29e;for(let _0x3fd544=0x0;_0x3fd544<_0x3e8283[_0x4aa33c('0x19d5')][_0x4aa33c('0x1f73')];_0x3fd544+=0x1){_0xae581f(_0x41c312['id'],_0x3e8283[_0x4aa33c('0x19d5')][_0x3fd544]);}_0xe14dad(_0x529cb3);});}function _0xae581f(_0x3ce733,_0x29a21d){const _0x3625b5=_0x488cc4,_0x33c61c=_0x29a21d['id'];_0x7ddd15[_0x3625b5('0xb65')](function(){const _0x21ae56=_0x3625b5;return _0xf19d29[_0x21ae56('0x1243')][_0x21ae56('0x1b63')]({'id':_0x3ce733,'ids':_0x33c61c})[_0x21ae56('0x1af5')][_0x21ae56('0x17e7')](function(){const _0xd64078=_0x21ae56;return _0xf19d29[_0xd64078('0x1243')][_0xd64078('0x147f')]({'id':_0x3ce733,'ids':_0x33c61c,'dialCheckDuplicateType':'never'})[_0xd64078('0x1af5')];})['then'](function(){const _0x15bf1d=_0x21ae56;_0x5a3907['success']({'title':_0x15bf1d('0x1328'),'msg':_0x15bf1d('0x371')+_0x29a21d[_0x15bf1d('0x2aa')]+'\x20has\x20been\x20reset'});})[_0x21ae56('0x16df')](function(_0x3a224f){const _0x3ab93d=_0x21ae56;_0x5a3907[_0x3ab93d('0x1db9')]({'title':_0x3a224f[_0x3ab93d('0x11c5')]?_0x3ab93d('0x14f7')+_0x3a224f[_0x3ab93d('0x11c5')]+_0x3ab93d('0x16e4')+_0x3a224f[_0x3ab93d('0x1833')]:'SYSTEM:queueCampaign.RESETLIST','msg':_0x3a224f[_0x3ab93d('0x11c5')]?JSON[_0x3ab93d('0x678')](_0x3a224f[_0x3ab93d('0x1457')]):_0x3a224f[_0x3ab93d('0x9b6')]()});});});}function _0xe14dad(_0x769341){const _0x22059e=_0x488cc4;_0x7ddd15[_0x22059e('0xb65')](function(){return _0x769341();});}}const _0x3d8d59=_0x33f709;_0x16bd56['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x25f7'),'$translate',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x16bd56(_0x12ca2c,_0x11e971,_0x46e6fb,_0x2a912c,_0x5cc1d9,_0x27477b,_0x375447,_0x10d234){const _0x20e0bd=_0x4376d8,_0x357817=this;_0x357817['currentUser']=_0x375447['getCurrentUser'](),_0x357817[_0x20e0bd('0x25f7')]=_0x5cc1d9,_0x357817[_0x20e0bd('0x103e')]=_0x10d234,_0x357817[_0x20e0bd('0x122c')]=0x0,_0x357817[_0x20e0bd('0x532')]=[],_0x357817[_0x20e0bd('0x2722')]=[],_0x357817[_0x20e0bd('0xc14')]=[],_0x357817['startingAllowedItems']=[],_0x357817[_0x20e0bd('0x1824')]=[],_0x357817[_0x20e0bd('0x25dc')]=![],_0x357817[_0x20e0bd('0x26f4')]={'readOnly':!_0x357817['crudPermissions']['canEdit'],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x20e0bd('0x2aa'),'line1':_0x20e0bd('0x2aa'),'line2':'','line3':'','labelAll':_0x27477b[_0x20e0bd('0x1acc')](_0x20e0bd('0x2292')),'labelSelected':_0x27477b[_0x20e0bd('0x1acc')](_0x20e0bd('0x1a23')),'transferCallback':function(_0x1fb316,_0x47ef47){const _0x19b2c7=_0x20e0bd;_0x47ef47?_0x1fb316[_0x19b2c7('0xccd')](function(_0x2e2c74){const _0x223d9f=_0x19b2c7;_0x2e2c74[_0x223d9f('0x122c')]=undefined;}):_0x1fb316[_0x19b2c7('0xccd')](function(_0x2c1b70){const _0x2707f1=_0x19b2c7;_0x2c1b70[_0x2707f1('0x122c')]=_0x2707f1('0x973')+_0x357817[_0x2707f1('0x122c')];});const _0x5dbc68=_0x49cbdd()['xorBy'](_0x357817['startingSelectedItems'],_0x357817[_0x19b2c7('0xc14')],'id');_0x357817[_0x19b2c7('0x25dc')]=_0x49cbdd()['isEmpty'](_0x5dbc68)?![]:!![];}},_0x357817[_0x20e0bd('0xdf0')]=_0x3533f4,_0x357817[_0x20e0bd('0x1a8f')]=_0x5e623a,_0x357817[_0x20e0bd('0x136e')]=_0x56e358;function _0x3533f4(){const _0xac5c9a=_0x20e0bd;return _0x375447[_0xac5c9a('0x1ba2')](_0xac5c9a('0x20bf'))?_0x1da05b()['catch'](function(_0x2ec977){const _0x29df57=_0xac5c9a;_0x46e6fb['error']({'title':_0x2ec977[_0x29df57('0x11c5')]?_0x29df57('0x14f7')+_0x2ec977[_0x29df57('0x11c5')]+_0x29df57('0x16e4')+_0x2ec977[_0x29df57('0x1833')]:_0x29df57('0x20cf'),'msg':_0x2ec977[_0x29df57('0x11c5')]?JSON[_0x29df57('0x678')](_0x2ec977['data']):_0x2ec977[_0x29df57('0x9b6')]()});}):_0x54f2dc()[_0xac5c9a('0x17e7')](function(_0x1f9ac2){const _0x4bafb4=_0xac5c9a;return _0x357817[_0x4bafb4('0x16f8')]=_0x1f9ac2,_0x1da05b();})[_0xac5c9a('0x16df')](function(_0x6745a){const _0x3b7327=_0xac5c9a;_0x46e6fb['error']({'title':_0x6745a[_0x3b7327('0x11c5')]?_0x3b7327('0x14f7')+_0x6745a[_0x3b7327('0x11c5')]+_0x3b7327('0x16e4')+_0x6745a[_0x3b7327('0x1833')]:_0x3b7327('0x20cf'),'msg':_0x6745a[_0x3b7327('0x11c5')]?JSON[_0x3b7327('0x678')](_0x6745a[_0x3b7327('0x1457')]):_0x6745a[_0x3b7327('0x9b6')]()});});}function _0x54f2dc(){return _0x11e971(function(_0x4cbc18,_0x57d5a5){const _0x4abbfe=a0_0xd29e;_0x2a912c['userProfileSection'][_0x4abbfe('0x1c53')]({'userProfileId':_0x357817[_0x4abbfe('0x197c')][_0x4abbfe('0x1e76')],'name':_0x4abbfe('0x1cf2')})['$promise'][_0x4abbfe('0x17e7')](function(_0x47d994){const _0x4a5b25=_0x4abbfe,_0x2412a9=_0x47d994&&_0x47d994[_0x4a5b25('0x2319')]?_0x47d994[_0x4a5b25('0x2319')][0x0]:null;_0x4cbc18(_0x2412a9);})[_0x4abbfe('0x16df')](function(_0x4af1f0){_0x57d5a5(_0x4af1f0);});});}function _0x1da05b(){return _0x11e971(function(_0x747e50,_0x587a04){const _0x4b785c=a0_0xd29e;return _0x188d7f()[_0x4b785c('0x17e7')](function(_0x50cfd0){const _0xf2fd0b=_0x4b785c;return _0x357817['items']=_0x50cfd0[_0xf2fd0b('0x2319')]?_0x50cfd0[_0xf2fd0b('0x2319')]:[],_0x375447[_0xf2fd0b('0x1ba2')](_0xf2fd0b('0x20bf'))?_0x50cfd0:_0x357817[_0xf2fd0b('0x16f8')]?_0x357817[_0xf2fd0b('0x16f8')][_0xf2fd0b('0x9e3')]?_0x50cfd0:_0x306dae():null;})[_0x4b785c('0x17e7')](function(_0x2edf9b){const _0x162d65=_0x4b785c,_0x4b8ea5=_0x2edf9b&&_0x2edf9b[_0x162d65('0x2319')]?_0x2edf9b[_0x162d65('0x2319')]:[];return _0x357817[_0x162d65('0x2722')]=_0x49cbdd()[_0x162d65('0x787')](_0x4b8ea5,function(_0x53ce5a){const _0xd33b32=_0x162d65;return _0x49cbdd()[_0xd33b32('0xe8e')](_0x357817[_0xd33b32('0x532')],{'id':_0x375447[_0xd33b32('0x1ba2')](_0xd33b32('0x20bf'))||_0x357817['section'][_0xd33b32('0x9e3')]?_0x53ce5a['id']:_0x53ce5a[_0xd33b32('0x5db')]});}),_0x357817[_0x162d65('0x532')][_0x162d65('0xccd')](function(_0x477192){const _0x40a7e2=_0x162d65,_0x3622b0=_0x49cbdd()[_0x40a7e2('0xe8e')](_0x357817[_0x40a7e2('0x2722')],{'id':_0x477192['id']});_0x375447[_0x40a7e2('0x1ba2')](_0x40a7e2('0x20bf'))?_0x477192[_0x40a7e2('0xc98')]=!![]:_0x477192[_0x40a7e2('0xc98')]=typeof _0x3622b0!==_0x40a7e2('0xfad')?!![]:![];}),_0x42b547();})[_0x4b785c('0x17e7')](function(_0x3ca528){const _0x4b1b9b=_0x4b785c,_0x2374ea=_0x3ca528&&_0x3ca528['rows']?_0x3ca528[_0x4b1b9b('0x2319')]:[];_0x357817[_0x4b1b9b('0xc14')]=_0x49cbdd()['map'](_0x2374ea,function(_0x192b67){const _0x34b79f=_0x4b1b9b;return _0x49cbdd()[_0x34b79f('0xe8e')](_0x357817[_0x34b79f('0x532')],{'id':_0x192b67['id']});}),_0x357817[_0x4b1b9b('0x1824')]=angular[_0x4b1b9b('0x14e5')](_0x357817['selectedItems']),_0x357817[_0x4b1b9b('0x26f4')][_0x4b1b9b('0xc14')]=_0x357817[_0x4b1b9b('0xc14')],_0x357817[_0x4b1b9b('0x26f4')]['items']=_0x49cbdd()[_0x4b1b9b('0x1ada')](_0x357817[_0x4b1b9b('0x2722')],_0x357817[_0x4b1b9b('0x26f4')][_0x4b1b9b('0xc14')],'id'),_0x747e50();})['catch'](function(_0x8df2c){_0x587a04(_0x8df2c);});});}function _0x306dae(){return _0x11e971(function(_0x3f40de,_0x4f9d1a){const _0x49d018=a0_0xd29e;return _0x2a912c['userProfileResource'][_0x49d018('0x1c53')]({'sectionId':_0x357817['section']['id'],'nolimit':!![]})[_0x49d018('0x1af5')]['then'](function(_0x55b428){_0x3f40de(_0x55b428);})[_0x49d018('0x16df')](function(_0x3eb60d){_0x4f9d1a(_0x3eb60d);});});}function _0x42b547(){return _0x11e971(function(_0x285668,_0x312721){const _0x5ea8ba=a0_0xd29e;return _0x2a912c[_0x5ea8ba('0x1243')][_0x5ea8ba('0x141f')]({'id':_0x357817['queueCampaign']['id'],'fields':_0x5ea8ba('0x12d2'),'nolimit':!![]})[_0x5ea8ba('0x1af5')]['then'](function(_0x5efb9d){_0x285668(_0x5efb9d);})[_0x5ea8ba('0x16df')](function(_0x71cf19){_0x312721(_0x71cf19);});});}function _0x188d7f(){return _0x11e971(function(_0x499ead,_0xeba4e8){const _0x270218=a0_0xd29e;return _0x2a912c['team']['get']({'fields':'id,name','nolimit':!![]})['$promise'][_0x270218('0x17e7')](function(_0x341de1){_0x499ead(_0x341de1);})[_0x270218('0x16df')](function(_0x526c7d){_0xeba4e8(_0x526c7d);});});}function _0xf33051(_0x357708){return _0x11e971(function(_0x221a62,_0x2a4a82){const _0x402e2e=a0_0xd29e;if(_0x49cbdd()[_0x402e2e('0x109a')](_0x357708))_0x221a62();else{const _0x5b6130=_0x49cbdd()['map'](_0x357708,function(_0x57d77a){return{'id':_0x57d77a['id'],'penalty':_0x49cbdd()['trim'](_0x57d77a['penalty'],'penalty\x20')};});return _0x2a912c[_0x402e2e('0x1243')][_0x402e2e('0x670')]({'id':_0x357817[_0x402e2e('0x25f7')]['id'],'teams':_0x5b6130})[_0x402e2e('0x1af5')][_0x402e2e('0x17e7')](function(){_0x221a62();})[_0x402e2e('0x16df')](function(_0x34cb95){_0x2a4a82(_0x34cb95);});}});}function _0x2c11ba(_0x490305){return _0x11e971(function(_0x1e507b,_0xbf9e6e){const _0x3f207f=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x490305)?_0x1e507b():_0x2a912c[_0x3f207f('0x1243')]['removeTeams']({'id':_0x357817[_0x3f207f('0x25f7')]['id'],'ids':_0x49cbdd()[_0x3f207f('0x787')](_0x490305,'id')})['$promise'][_0x3f207f('0x17e7')](function(){_0x1e507b();})[_0x3f207f('0x16df')](function(_0x5b9515){_0xbf9e6e(_0x5b9515);});});}function _0x5e623a(){const _0xa742da=_0x20e0bd,_0xa76af0=_0x49cbdd()[_0xa742da('0x1ada')](_0x357817['startingSelectedItems'],_0x357817[_0xa742da('0xc14')],'id'),_0x65592b=_0x49cbdd()['differenceBy'](_0x357817[_0xa742da('0xc14')],_0x357817[_0xa742da('0x1824')],'id');return _0x2c11ba(_0xa76af0)[_0xa742da('0x17e7')](function(){return _0xf33051(_0x65592b);})['then'](function(){const _0x1d6392=_0xa742da;_0x357817[_0x1d6392('0x25dc')]=![],_0x357817['startingAllowedItems']=angular[_0x1d6392('0x14e5')](_0x357817[_0x1d6392('0x2722')]),_0x357817[_0x1d6392('0x1824')]=angular[_0x1d6392('0x14e5')](_0x357817[_0x1d6392('0xc14')]),_0x46e6fb[_0x1d6392('0x130d')]({'title':_0x1d6392('0x9d1'),'msg':_0x1d6392('0x1091')});})[_0xa742da('0x16df')](function(_0x30cf5e){const _0x4999f4=_0xa742da;_0x46e6fb[_0x4999f4('0x1db9')]({'title':_0x30cf5e['status']?'API:'+_0x30cf5e['status']+_0x4999f4('0x16e4')+_0x30cf5e['statusText']:_0x4999f4('0x244e'),'msg':_0x30cf5e[_0x4999f4('0x11c5')]?JSON[_0x4999f4('0x678')](_0x30cf5e[_0x4999f4('0x1457')]):_0x30cf5e['toString']()});});}function _0x56e358(){const _0x1b6854=_0x20e0bd;_0x12ca2c[_0x1b6854('0x212a')]();}}const _0x32febe=_0x16bd56,_0x59e536=_0x4cf2bc['p']+'src/js/modules/main/apps/motiondialer/views/queueCampaigns/edit/clone/clone.html/clone.html',_0xfaa4a=_0x4cf2bc['p']+_0x4376d8('0x2374'),_0x22e253=_0x4cf2bc['p']+_0x4376d8('0xbce'),_0x417f22=_0x4cf2bc['p']+_0x4376d8('0x14df'),_0x123e4c=_0x4cf2bc['p']+_0x4376d8('0x2840');_0x1c461b[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x25f7'),_0x4376d8('0x383')];function _0x1c461b(_0x502670,_0xfa2825,_0x4b070c,_0x47a0ad,_0xdbc309,_0x42182b,_0x48f93d,_0x11dbea,_0xb76516,_0x10d86f,_0x375e4c,_0x1995e9){const _0x4fa1c3=_0x4376d8,_0x359bf3=this;_0x359bf3[_0x4fa1c3('0x197c')]=_0x10d86f[_0x4fa1c3('0x2831')](),_0x359bf3[_0x4fa1c3('0x1d11')]=_0x42182b,_0x359bf3[_0x4fa1c3('0x1aeb')]=_0x48f93d,_0x359bf3[_0x4fa1c3('0x1572')]=_0x359bf3[_0x4fa1c3('0x1aeb')][_0x4fa1c3('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x359bf3[_0x4fa1c3('0xaed')]=_0xfa2825[_0x4fa1c3('0x14fe')]()+'://'+_0xfa2825[_0x4fa1c3('0x108')](),_0x359bf3[_0x4fa1c3('0x25f7')]=_0x375e4c||_0x502670['params']['queueCampaign']||{},_0x359bf3[_0x4fa1c3('0x383')]=_0x1995e9&&_0x1995e9[_0x4fa1c3('0x335')]==0x1?_0x1995e9[_0x4fa1c3('0x2319')][0x0]:null,_0x359bf3[_0x4fa1c3('0x103e')]=_0x10d86f['parseCrudPermissions'](_0x359bf3['userProfileSection']?_0x359bf3['userProfileSection'][_0x4fa1c3('0x103e')]:null),_0x359bf3[_0x4fa1c3('0x6ee')]={},_0x359bf3['selectedTab']=_0x502670[_0x4fa1c3('0x16fb')]['tab']||0x0,_0x359bf3[_0x4fa1c3('0x1459')]=_0x2124aa,_0x359bf3[_0x4fa1c3('0x192f')]=_0x24a50c,_0x359bf3[_0x4fa1c3('0x2484')]=_0x38d690,_0x359bf3[_0x4fa1c3('0x1e34')]=_0x2d8c05,_0x359bf3['agentadddialog']=_0xf75e99,_0x359bf3[_0x4fa1c3('0xac4')]=_0x219307,_0x359bf3[_0x4fa1c3('0x2794')]=_0x162078,_0x359bf3[_0x4fa1c3('0x99f')]=_0xb76516[_0x4fa1c3('0x1178')],_0x359bf3[_0x4fa1c3('0x129a')]=_0x2e89b2,_0x359bf3[_0x4fa1c3('0x31e')]=_0x4ea6ba,_0x10d86f['hasRole'](_0x4fa1c3('0x20bf'))?_0x11dbea['voiceMusicOnHold'][_0x4fa1c3('0x1c53')]({'fields':'id,name','nolimit':_0x4fa1c3('0xe34')})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x447181){const _0x13b440=_0x4fa1c3;_0x359bf3['musiconholds']=_0x447181[_0x13b440('0x2319')]||[];})[_0x4fa1c3('0x16df')](function(_0x3ee0fc){const _0x5e4489=_0x4fa1c3;_0xb76516[_0x5e4489('0x1db9')]({'title':_0x3ee0fc[_0x5e4489('0x11c5')]?_0x5e4489('0x14f7')+_0x3ee0fc['status']+_0x5e4489('0x16e4')+_0x3ee0fc[_0x5e4489('0x1833')]:_0x5e4489('0x22c2'),'msg':_0x3ee0fc['data']?JSON[_0x5e4489('0x678')](_0x3ee0fc[_0x5e4489('0x1457')]):_0x3ee0fc[_0x5e4489('0x9b6')]()});}):_0x11dbea['voiceMusicOnHold'][_0x4fa1c3('0x1c53')]({'fields':_0x4fa1c3('0x12d2'),'nolimit':_0x4fa1c3('0xe34')})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x3fbb6b){const _0x42d946=_0x4fa1c3;_0x359bf3[_0x42d946('0x116c')]=_0x3fbb6b[_0x42d946('0x2319')]||[];})[_0x4fa1c3('0x17e7')](function(){const _0x56a528=_0x4fa1c3;return _0x11dbea[_0x56a528('0x383')][_0x56a528('0x1c53')]({'userProfileId':_0x359bf3[_0x56a528('0x197c')][_0x56a528('0x1e76')],'sectionId':0x197})[_0x56a528('0x1af5')];})[_0x4fa1c3('0x17e7')](function(_0x15a1ed){const _0x1de295=_0x4fa1c3,_0x1174b5=_0x15a1ed&&_0x15a1ed[_0x1de295('0x2319')]?_0x15a1ed[_0x1de295('0x2319')][0x0]:null;if(!_0x1174b5)return _0x11dbea['voiceMusicOnHold']['get']({'fields':_0x1de295('0x12d2'),'nolimit':_0x1de295('0xe34'),'defaultEntry':0x1})[_0x1de295('0x1af5')]['then'](function(_0x2abb61){const _0x184f93=_0x1de295;_0x359bf3[_0x184f93('0x116c')]=_0x2abb61[_0x184f93('0x2319')]||[];});else{if(!_0x1174b5[_0x1de295('0x9e3')])return _0x11dbea[_0x1de295('0x78d')]['get']({'sectionId':_0x1174b5['id']})[_0x1de295('0x1af5')][_0x1de295('0x17e7')](function(_0x261ee1){const _0x420506=_0x1de295,_0x2c238d=_0x49cbdd()[_0x420506('0x787')](_0x261ee1[_0x420506('0x2319')],function(_0x3937bb){const _0x490b21=_0x420506;return _0x49cbdd()[_0x490b21('0xe8e')](_0x359bf3[_0x490b21('0x116c')],{'id':_0x3937bb[_0x490b21('0x5db')]});});let _0x5d5812=null;_0x359bf3[_0x420506('0x25f7')]&&(_0x5d5812=_0x49cbdd()[_0x420506('0xe8e')](_0x359bf3['musiconholds'],{'name':_0x359bf3[_0x420506('0x25f7')][_0x420506('0xb0')]}));if(_0x5d5812&&!_0x49cbdd()[_0x420506('0x26f8')](_0x2c238d,['id',_0x5d5812['id']])){const _0x59d34d=_0x49cbdd()['find'](_0x359bf3['musiconholds'],{'id':_0x5d5812['id']});_0x59d34d[_0x420506('0xe5c')]=![],_0x2c238d[_0x420506('0x269f')](_0x59d34d);}_0x359bf3[_0x420506('0x116c')]=_0x2c238d;});}})[_0x4fa1c3('0x16df')](function(_0x35b398){const _0x2fabd4=_0x4fa1c3;_0xb76516[_0x2fabd4('0x1db9')]({'title':_0x35b398[_0x2fabd4('0x11c5')]?'API:'+_0x35b398[_0x2fabd4('0x11c5')]+_0x2fabd4('0x16e4')+_0x35b398[_0x2fabd4('0x1833')]:'SYSTEM:GETmusiconholds','msg':_0x35b398[_0x2fabd4('0x1457')]?JSON[_0x2fabd4('0x678')](_0x35b398[_0x2fabd4('0x1457')]):_0x35b398['toString']()});}),_0x10d86f[_0x4fa1c3('0x1ba2')](_0x4fa1c3('0x20bf'))?_0x11dbea['trunk']['get']({'fields':'id,name','sort':_0x4fa1c3('0x2aa')})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x493551){const _0x2167bf=_0x4fa1c3;_0x359bf3[_0x2167bf('0x19cb')]=_0x493551[_0x2167bf('0x2319')]||[];})[_0x4fa1c3('0x16df')](function(_0x24c5c3){const _0x54efb6=_0x4fa1c3;_0xb76516[_0x54efb6('0x1db9')]({'title':_0x24c5c3[_0x54efb6('0x11c5')]?_0x54efb6('0x14f7')+_0x24c5c3['status']+_0x54efb6('0x16e4')+_0x24c5c3[_0x54efb6('0x1833')]:_0x54efb6('0x130a'),'msg':_0x24c5c3[_0x54efb6('0x1457')]?JSON['stringify'](_0x24c5c3[_0x54efb6('0x1457')]):_0x24c5c3[_0x54efb6('0x9b6')]()});}):_0x11dbea[_0x4fa1c3('0x252a')]['get']({'fields':_0x4fa1c3('0x12d2'),'sort':_0x4fa1c3('0x2aa')})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x44a110){const _0x1e6d17=_0x4fa1c3;_0x359bf3[_0x1e6d17('0x19cb')]=_0x44a110[_0x1e6d17('0x2319')]||[];})[_0x4fa1c3('0x17e7')](function(){const _0x206828=_0x4fa1c3;return _0x11dbea['userProfileSection'][_0x206828('0x1c53')]({'userProfileId':_0x359bf3[_0x206828('0x197c')][_0x206828('0x1e76')],'sectionId':0x3f3})['$promise'];})['then'](function(_0x35c74d){const _0x517e7e=_0x4fa1c3,_0x38d7ac=_0x35c74d&&_0x35c74d['rows']?_0x35c74d[_0x517e7e('0x2319')][0x0]:null;if(!_0x38d7ac){const _0x21e10c=[];let _0x1d2af0=null;_0x359bf3['queueCampaign']&&(_0x1d2af0=_0x49cbdd()[_0x517e7e('0xe8e')](_0x359bf3[_0x517e7e('0x19cb')],{'id':Number(_0x359bf3['queueCampaign'][_0x517e7e('0x129f')])}));for(let _0x222033=0x0;_0x222033<_0x359bf3[_0x517e7e('0x19cb')][_0x517e7e('0x1f73')];_0x222033++){_0x1d2af0&&_0x359bf3['trunks'][_0x222033]['id']===_0x1d2af0['id']&&(_0x359bf3[_0x517e7e('0x19cb')][_0x222033][_0x517e7e('0xe5c')]=![],_0x21e10c[_0x517e7e('0x269f')](_0x359bf3[_0x517e7e('0x19cb')][_0x222033]));}_0x359bf3['trunks']=_0x21e10c;}else{if(!_0x38d7ac[_0x517e7e('0x9e3')])return _0x11dbea[_0x517e7e('0x78d')][_0x517e7e('0x1c53')]({'sectionId':_0x38d7ac['id']})[_0x517e7e('0x1af5')]['then'](function(_0x17a506){const _0xf2005e=_0x517e7e,_0x52ec12=_0x49cbdd()[_0xf2005e('0x787')](_0x17a506['rows'],function(_0x37fb07){const _0x111145=_0xf2005e;return _0x49cbdd()[_0x111145('0xe8e')](_0x359bf3[_0x111145('0x19cb')],{'id':_0x37fb07[_0x111145('0x5db')]});});let _0x17112a=null;_0x359bf3[_0xf2005e('0x25f7')]&&(_0x17112a=_0x49cbdd()['find'](_0x359bf3[_0xf2005e('0x19cb')],{'id':Number(_0x359bf3[_0xf2005e('0x25f7')][_0xf2005e('0x129f')])}));if(_0x17112a&&!_0x49cbdd()[_0xf2005e('0x26f8')](_0x52ec12,['id',_0x17112a['id']])){const _0x3e4ead=_0x49cbdd()[_0xf2005e('0xe8e')](_0x359bf3['trunks'],{'id':_0x17112a['id']});_0x3e4ead[_0xf2005e('0xe5c')]=![],_0x52ec12['push'](_0x3e4ead);}_0x359bf3['trunks']=_0x52ec12;});}})[_0x4fa1c3('0x16df')](function(_0x5cd6d8){const _0x2e41e0=_0x4fa1c3;_0xb76516['error']({'title':_0x5cd6d8[_0x2e41e0('0x11c5')]?_0x2e41e0('0x14f7')+_0x5cd6d8[_0x2e41e0('0x11c5')]+_0x2e41e0('0x16e4')+_0x5cd6d8[_0x2e41e0('0x1833')]:'SYSTEM:GETtrunks','msg':_0x5cd6d8['data']?JSON[_0x2e41e0('0x678')](_0x5cd6d8[_0x2e41e0('0x1457')]):_0x5cd6d8['toString']()});}),_0x10d86f['hasRole']('admin')?_0x11dbea[_0x4fa1c3('0x1218')][_0x4fa1c3('0x1c53')]({'fields':_0x4fa1c3('0x12d2'),'sort':'name'})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x482f55){const _0x1dc37d=_0x4fa1c3;_0x359bf3[_0x1dc37d('0x20e0')]=_0x482f55[_0x1dc37d('0x2319')]||[];})[_0x4fa1c3('0x16df')](function(_0x4b3690){const _0x12463b=_0x4fa1c3;_0xb76516[_0x12463b('0x1db9')]({'title':_0x4b3690[_0x12463b('0x11c5')]?'API:'+_0x4b3690['status']+'\x20-\x20'+_0x4b3690[_0x12463b('0x1833')]:_0x12463b('0x13d0'),'msg':_0x4b3690[_0x12463b('0x1457')]?JSON[_0x12463b('0x678')](_0x4b3690[_0x12463b('0x1457')]):_0x4b3690['toString']()});}):_0x11dbea[_0x4fa1c3('0x1218')][_0x4fa1c3('0x1c53')]({'fields':'id,name','sort':_0x4fa1c3('0x2aa')})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x3275b0){_0x359bf3['projects']=_0x3275b0['rows']||[];})[_0x4fa1c3('0x17e7')](function(){const _0x8b8b5c=_0x4fa1c3;return _0x11dbea[_0x8b8b5c('0x383')][_0x8b8b5c('0x1c53')]({'userProfileId':_0x359bf3[_0x8b8b5c('0x197c')][_0x8b8b5c('0x1e76')],'sectionId':0x44f})[_0x8b8b5c('0x1af5')];})['then'](function(_0x5754c5){const _0x4d8bc0=_0x4fa1c3,_0x36a684=_0x5754c5&&_0x5754c5[_0x4d8bc0('0x2319')]?_0x5754c5[_0x4d8bc0('0x2319')][0x0]:null;if(!_0x36a684){const _0x14e533=[];let _0x56a6fe=null;_0x359bf3[_0x4d8bc0('0x25f7')]&&(_0x56a6fe=_0x49cbdd()['find'](_0x359bf3[_0x4d8bc0('0x20e0')],{'name':_0x359bf3['queueCampaign'][_0x4d8bc0('0x17dd')]}));for(let _0x189aac=0x0;_0x189aac<_0x359bf3[_0x4d8bc0('0x20e0')][_0x4d8bc0('0x1f73')];_0x189aac++){_0x56a6fe&&_0x359bf3['projects'][_0x189aac]['id']===_0x56a6fe['id']&&(_0x359bf3[_0x4d8bc0('0x20e0')][_0x189aac][_0x4d8bc0('0xe5c')]=![],_0x14e533['push'](_0x359bf3[_0x4d8bc0('0x20e0')][_0x189aac]));}_0x359bf3['projects']=_0x14e533;}else{if(!_0x36a684[_0x4d8bc0('0x9e3')])return _0x11dbea['userProfileResource'][_0x4d8bc0('0x1c53')]({'sectionId':_0x36a684['id']})[_0x4d8bc0('0x1af5')][_0x4d8bc0('0x17e7')](function(_0x30944d){const _0x3b2749=_0x4d8bc0,_0x5175c2=_0x49cbdd()['map'](_0x30944d[_0x3b2749('0x2319')],function(_0x3fd165){const _0xc33f86=_0x3b2749;return _0x49cbdd()['find'](_0x359bf3[_0xc33f86('0x20e0')],{'id':_0x3fd165['resourceId']});});let _0x254231=null;_0x359bf3[_0x3b2749('0x25f7')]&&(_0x254231=_0x49cbdd()['find'](_0x359bf3[_0x3b2749('0x20e0')],{'name':_0x359bf3[_0x3b2749('0x25f7')][_0x3b2749('0x17dd')]}));if(_0x254231&&!_0x49cbdd()[_0x3b2749('0x26f8')](_0x5175c2,['id',_0x254231['id']])){const _0x51f660=_0x49cbdd()['find'](_0x359bf3[_0x3b2749('0x20e0')],{'id':_0x254231['id']});_0x51f660[_0x3b2749('0xe5c')]=![],_0x5175c2['push'](_0x51f660);}_0x359bf3[_0x3b2749('0x20e0')]=_0x5175c2;});}})['catch'](function(_0x28aaa2){const _0x4cdc4a=_0x4fa1c3;_0xb76516[_0x4cdc4a('0x1db9')]({'title':_0x28aaa2[_0x4cdc4a('0x11c5')]?_0x4cdc4a('0x14f7')+_0x28aaa2['status']+_0x4cdc4a('0x16e4')+_0x28aaa2['statusText']:_0x4cdc4a('0x27b7'),'msg':_0x28aaa2[_0x4cdc4a('0x1457')]?JSON[_0x4cdc4a('0x678')](_0x28aaa2[_0x4cdc4a('0x1457')]):_0x28aaa2['toString']()});}),_0x10d86f['hasRole'](_0x4fa1c3('0x20bf'))?_0x11dbea[_0x4fa1c3('0x231f')][_0x4fa1c3('0x1c53')]({'fields':'id,name','sort':'name','IntervalId':'null'})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x146c6c){const _0x5758bc=_0x4fa1c3;_0x359bf3['interval']=_0x146c6c[_0x5758bc('0x2319')]||[];})[_0x4fa1c3('0x16df')](function(_0x106ec5){const _0x2765ba=_0x4fa1c3;_0xb76516[_0x2765ba('0x1db9')]({'title':_0x106ec5['status']?_0x2765ba('0x14f7')+_0x106ec5[_0x2765ba('0x11c5')]+_0x2765ba('0x16e4')+_0x106ec5[_0x2765ba('0x1833')]:_0x2765ba('0xebd'),'msg':_0x106ec5[_0x2765ba('0x1457')]?JSON[_0x2765ba('0x678')](_0x106ec5[_0x2765ba('0x1457')]):_0x106ec5[_0x2765ba('0x9b6')]()});}):_0x11dbea['interval'][_0x4fa1c3('0x1c53')]({'fields':_0x4fa1c3('0x12d2'),'sort':_0x4fa1c3('0x2aa'),'IntervalId':'null'})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x18482d){const _0x1d127c=_0x4fa1c3;_0x359bf3[_0x1d127c('0x231f')]=_0x18482d[_0x1d127c('0x2319')]||[];})[_0x4fa1c3('0x17e7')](function(){const _0x262118=_0x4fa1c3;return _0x11dbea[_0x262118('0x383')]['get']({'userProfileId':_0x359bf3[_0x262118('0x197c')][_0x262118('0x1e76')],'sectionId':0x3ec})[_0x262118('0x1af5')];})[_0x4fa1c3('0x17e7')](function(_0x137fa8){const _0x1fb9e4=_0x4fa1c3,_0x3add26=_0x137fa8&&_0x137fa8['rows']?_0x137fa8[_0x1fb9e4('0x2319')][0x0]:null;if(!_0x3add26){const _0x53a5b5=[];let _0x5a6b5c=null;_0x359bf3[_0x1fb9e4('0x25f7')]&&(_0x5a6b5c=_0x49cbdd()['find'](_0x359bf3['interval'],{'id':Number(_0x359bf3[_0x1fb9e4('0x25f7')][_0x1fb9e4('0x24a9')])}));for(let _0x170d06=0x0;_0x170d06<_0x359bf3[_0x1fb9e4('0x231f')][_0x1fb9e4('0x1f73')];_0x170d06++){_0x5a6b5c&&_0x359bf3[_0x1fb9e4('0x231f')][_0x170d06]['id']===_0x5a6b5c['id']&&(_0x359bf3['interval'][_0x170d06][_0x1fb9e4('0xe5c')]=![],_0x53a5b5[_0x1fb9e4('0x269f')](_0x359bf3['interval'][_0x170d06]));}_0x359bf3[_0x1fb9e4('0x231f')]=_0x53a5b5;}else{if(!_0x3add26['autoAssociation'])return _0x11dbea[_0x1fb9e4('0x78d')][_0x1fb9e4('0x1c53')]({'sectionId':_0x3add26['id']})[_0x1fb9e4('0x1af5')][_0x1fb9e4('0x17e7')](function(_0x2094df){const _0x373785=_0x1fb9e4,_0x3e89a0=_0x49cbdd()[_0x373785('0x787')](_0x2094df[_0x373785('0x2319')],function(_0x793cc6){const _0x2bbb32=_0x373785;return _0x49cbdd()[_0x2bbb32('0xe8e')](_0x359bf3[_0x2bbb32('0x231f')],{'id':_0x793cc6[_0x2bbb32('0x5db')]});});let _0x126f37=null;_0x359bf3[_0x373785('0x25f7')]&&(_0x126f37=_0x49cbdd()[_0x373785('0xe8e')](_0x359bf3[_0x373785('0x231f')],{'id':Number(_0x359bf3[_0x373785('0x25f7')][_0x373785('0x24a9')])}));if(_0x126f37&&!_0x49cbdd()[_0x373785('0x26f8')](_0x3e89a0,['id',_0x126f37['id']])){const _0x13aa1a=_0x49cbdd()[_0x373785('0xe8e')](_0x359bf3[_0x373785('0x231f')],{'id':_0x126f37['id']});_0x13aa1a[_0x373785('0xe5c')]=![],_0x3e89a0[_0x373785('0x269f')](_0x13aa1a);}_0x359bf3[_0x373785('0x231f')]=_0x3e89a0;});}})[_0x4fa1c3('0x16df')](function(_0xb9d36e){const _0x527343=_0x4fa1c3;_0xb76516[_0x527343('0x1db9')]({'title':_0xb9d36e[_0x527343('0x11c5')]?'API:'+_0xb9d36e['status']+_0x527343('0x16e4')+_0xb9d36e[_0x527343('0x1833')]:_0x527343('0x1f79'),'msg':_0xb9d36e[_0x527343('0x1457')]?JSON[_0x527343('0x678')](_0xb9d36e['data']):_0xb9d36e[_0x527343('0x9b6')]()});}),_0x10d86f[_0x4fa1c3('0x1ba2')](_0x4fa1c3('0x20bf'))?_0x11dbea[_0x4fa1c3('0x267a')][_0x4fa1c3('0x1c53')]({'fields':_0x4fa1c3('0x90c'),'sort':_0x4fa1c3('0x2aa'),'nolimit':_0x4fa1c3('0xe34')})['$promise'][_0x4fa1c3('0x17e7')](function(_0x16e84){const _0x357f3f=_0x4fa1c3;_0x359bf3[_0x357f3f('0x1492')]=_0x16e84[_0x357f3f('0x2319')]||[];})['catch'](function(_0xe088bb){const _0x20ac2b=_0x4fa1c3;_0xb76516[_0x20ac2b('0x1db9')]({'title':_0xe088bb[_0x20ac2b('0x11c5')]?_0x20ac2b('0x14f7')+_0xe088bb[_0x20ac2b('0x11c5')]+_0x20ac2b('0x16e4')+_0xe088bb[_0x20ac2b('0x1833')]:'SYSTEM:GET_PAUSES','msg':_0xe088bb[_0x20ac2b('0x1457')]?JSON['stringify'](_0xe088bb['data']):_0xe088bb[_0x20ac2b('0x9b6')]()});}):_0x11dbea[_0x4fa1c3('0x267a')][_0x4fa1c3('0x1c53')]({'fields':_0x4fa1c3('0x90c'),'sort':_0x4fa1c3('0x2aa'),'nolimit':_0x4fa1c3('0xe34')})[_0x4fa1c3('0x1af5')][_0x4fa1c3('0x17e7')](function(_0x32d125){const _0xca00c3=_0x4fa1c3;_0x359bf3[_0xca00c3('0x1492')]=_0x32d125[_0xca00c3('0x2319')]||[];})[_0x4fa1c3('0x17e7')](function(){const _0x19b433=_0x4fa1c3;return _0x11dbea['userProfileSection'][_0x19b433('0x1c53')]({'userProfileId':_0x359bf3['currentUser'][_0x19b433('0x1e76')],'sectionId':0x3ed})['$promise'];})['then'](function(_0x54dced){const _0x46d1d7=_0x4fa1c3,_0x496d30=_0x54dced&&_0x54dced[_0x46d1d7('0x2319')]?_0x54dced[_0x46d1d7('0x2319')][0x0]:null;if(!_0x496d30)_0x359bf3[_0x46d1d7('0x1492')]=[];else{if(!_0x496d30[_0x46d1d7('0x9e3')])return _0x11dbea['userProfileResource']['get']({'sectionId':_0x496d30['id']})['$promise']['then'](function(_0x19472e){const _0x241c3e=_0x46d1d7,_0x286143=_0x49cbdd()[_0x241c3e('0x787')](_0x19472e[_0x241c3e('0x2319')],function(_0x2ae5d4){const _0x53a7b2=_0x241c3e;return _0x49cbdd()['find'](_0x359bf3[_0x53a7b2('0x1492')],{'id':_0x2ae5d4['resourceId']});});_0x359bf3[_0x241c3e('0x1492')][_0x241c3e('0xccd')](function(_0x5ce1df){const _0x316fe8=_0x241c3e;!_0x49cbdd()[_0x316fe8('0x26f8')](_0x286143,['id',_0x5ce1df['id']])&&(_0x5ce1df['canSelect']=![]),_0x286143[_0x316fe8('0x269f')](_0x5ce1df);}),_0x359bf3['pauses']=_0x286143;});}})[_0x4fa1c3('0x16df')](function(_0x513a2d){const _0x260a4b=_0x4fa1c3;_0xb76516[_0x260a4b('0x1db9')]({'title':_0x513a2d['status']?_0x260a4b('0x14f7')+_0x513a2d['status']+_0x260a4b('0x16e4')+_0x513a2d['statusText']:_0x260a4b('0x1fae'),'msg':_0x513a2d['data']?JSON[_0x260a4b('0x678')](_0x513a2d[_0x260a4b('0x1457')]):_0x513a2d['toString']()});});function _0x2124aa(_0x216af8,_0x25fcd5){const _0xb4527=_0x4fa1c3;_0x4b070c[_0xb4527('0x28e2')]({'controller':_0xb4527('0xd3b'),'controllerAs':'vm','templateUrl':_0x59e536,'parent':angular[_0xb4527('0x1ce1')](_0x47a0ad['body']),'targetEvent':_0x25fcd5,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x216af8,'queueCampaigns':_0x359bf3[_0xb4527('0x2a2')]?_0x359bf3[_0xb4527('0x2a2')][_0xb4527('0x2319')]:[],'crudPermissions':_0x359bf3['crudPermissions']}});}function _0x24a50c(_0x4fbfb6,_0x3c0277){const _0x2db438=_0x4fa1c3;_0x4b070c['show']({'controller':'QueueCampaignlistaddController','controllerAs':'vm','templateUrl':_0xfaa4a,'parent':angular[_0x2db438('0x1ce1')](_0x47a0ad[_0x2db438('0x13aa')]),'targetEvent':_0x3c0277,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4fbfb6,'queueCampaigns':_0x359bf3['queueCampaigns']?_0x359bf3[_0x2db438('0x2a2')][_0x2db438('0x2319')]:[],'crudPermissions':_0x359bf3[_0x2db438('0x103e')]}});}function _0x38d690(_0x183641,_0x5de271){const _0x4510d7=_0x4fa1c3;_0x4b070c[_0x4510d7('0x28e2')]({'controller':'QueueCampaignblacklistaddController','controllerAs':'vm','templateUrl':_0x22e253,'parent':angular['element'](_0x47a0ad['body']),'targetEvent':_0x5de271,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x183641,'queueCampaigns':_0x359bf3['queueCampaigns']?_0x359bf3[_0x4510d7('0x2a2')]['rows']:[],'crudPermissions':_0x359bf3[_0x4510d7('0x103e')]}});}function _0x2d8c05(_0x427560,_0x3e4ea7){const _0x208b76=_0x4fa1c3;_0x4b070c[_0x208b76('0x28e2')]({'controller':_0x208b76('0x1c6'),'controllerAs':'vm','templateUrl':_0x417f22,'parent':angular['element'](_0x47a0ad['body']),'targetEvent':_0x3e4ea7,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x427560,'queueCampaigns':_0x359bf3['queueCampaigns']?_0x359bf3['queueCampaigns'][_0x208b76('0x2319')]:[],'crudPermissions':_0x359bf3[_0x208b76('0x103e')]}});}function _0xf75e99(_0xf4765d,_0xff6560){const _0x1c16e9=_0x4fa1c3;_0x4b070c[_0x1c16e9('0x28e2')]({'controller':_0x1c16e9('0x1e4a'),'controllerAs':'vm','templateUrl':_0x326495,'parent':angular[_0x1c16e9('0x1ce1')](_0x47a0ad[_0x1c16e9('0x13aa')]),'targetEvent':_0xff6560,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xf4765d,'queueCampaigns':_0x359bf3[_0x1c16e9('0x2a2')]?_0x359bf3[_0x1c16e9('0x2a2')][_0x1c16e9('0x2319')]:[],'crudPermissions':_0x359bf3[_0x1c16e9('0x103e')],'realtime':![]}});}function _0x294a42(_0x4b0ba6,_0x593085){const _0x48cf67=_0x4fa1c3,_0x58fd82=_0x593085['id'];_0x11dbea['voiceQueue'][_0x48cf67('0x1b63')]({'id':_0x4b0ba6,'ids':_0x58fd82})[_0x48cf67('0x1af5')][_0x48cf67('0x17e7')](function(){const _0x58ceee=_0x48cf67;return _0x11dbea[_0x58ceee('0x1243')][_0x58ceee('0x147f')]({'id':_0x4b0ba6,'ids':_0x58fd82,'dialCheckDuplicateType':_0x58ceee('0x360')})[_0x58ceee('0x1af5')];})[_0x48cf67('0x17e7')](function(){const _0x2b2dc9=_0x48cf67;_0xb76516[_0x2b2dc9('0x130d')]({'title':_0x2b2dc9('0x1328'),'msg':_0x2b2dc9('0x371')+_0x593085[_0x2b2dc9('0x2aa')]+_0x2b2dc9('0x722')});})[_0x48cf67('0x16df')](function(_0xd7f37b){const _0x4f8789=_0x48cf67;_0xb76516['error']({'title':_0xd7f37b[_0x4f8789('0x11c5')]?'API:'+_0xd7f37b['status']+_0x4f8789('0x16e4')+_0xd7f37b[_0x4f8789('0x1833')]:'SYSTEM:queueCampaign.REMOVELIST','msg':_0xd7f37b[_0x4f8789('0x11c5')]?JSON[_0x4f8789('0x678')](_0xd7f37b[_0x4f8789('0x1457')]):_0xd7f37b[_0x4f8789('0x9b6')]()});});}function _0x219307(_0x3d5f04,_0x43d2dd){const _0x485bdf=_0x4fa1c3;_0x11dbea[_0x485bdf('0x1243')][_0x485bdf('0x852')]({'id':_0x3d5f04['id'],'fields':_0x485bdf('0x12d2'),'nolimit':!![]})[_0x485bdf('0x1af5')][_0x485bdf('0x17e7')](function(_0x467aef){const _0x553674=_0x485bdf;if(_0x49cbdd()['isNil'](_0x467aef[_0x553674('0x2319')])||_0x49cbdd()[_0x553674('0x109a')](_0x467aef['rows']))_0xb76516[_0x553674('0x1178')]({'title':_0x553674('0x247a')});else{if(_0x467aef[_0x553674('0x2319')][_0x553674('0x1f73')]===0x1){const _0x581309=_0x4b070c[_0x553674('0x1121')]()[_0x553674('0x24d3')](_0x553674('0x25fd')+_0x467aef['rows'][0x0]['name']+'\x20?')['htmlContent'](_0x553674('0xa53')+_0x467aef[_0x553674('0x2319')][0x0][_0x553674('0x2aa')]+''+_0x553674('0x67c'))[_0x553674('0x2095')](_0x553674('0x212c'))['targetEvent'](_0x43d2dd)['ok']('OK')[_0x553674('0x1d47')](_0x553674('0x28a0'));_0x4b070c[_0x553674('0x28e2')](_0x581309)[_0x553674('0x17e7')](function(){const _0x575369=_0x553674;_0x294a42(_0x359bf3[_0x575369('0x25f7')]['id'],_0x467aef[_0x575369('0x2319')][0x0]);});}else _0x4b070c[_0x553674('0x28e2')]({'controller':_0x553674('0x1bf8'),'controllerAs':'vm','templateUrl':_0x123e4c,'parent':angular['element'](_0x47a0ad[_0x553674('0x13aa')]),'targetEvent':_0x43d2dd,'clickOutsideToClose':![],'locals':{'queueCampaign':_0x3d5f04,'listsCampaign':_0x467aef?_0x467aef[_0x553674('0x2319')]:[]}});}})['catch'](function(_0x120d22){const _0x52e114=_0x485bdf;_0xb76516[_0x52e114('0x1db9')]({'title':_0x120d22[_0x52e114('0x11c5')]?_0x52e114('0x14f7')+_0x120d22[_0x52e114('0x11c5')]+_0x52e114('0x16e4')+_0x120d22[_0x52e114('0x1833')]:_0x52e114('0x23f1'),'msg':_0x120d22[_0x52e114('0x11c5')]?JSON['stringify'](_0x120d22[_0x52e114('0x1457')]):_0x120d22[_0x52e114('0x9b6')]()});});}function _0x162078(){const _0x24bd85=_0x4fa1c3;if(_0x10d86f['hasRole'](_0x24bd85('0x20bf')))_0x502670['go'](_0x24bd85('0x1718'),{});else return _0x11dbea[_0x24bd85('0x383')]['get']({'userProfileId':_0x10d86f[_0x24bd85('0x2831')]()[_0x24bd85('0x1e76')],'sectionId':0x5e6})[_0x24bd85('0x1af5')][_0x24bd85('0x17e7')](function(_0x1f4cde){const _0xf46d25=_0x24bd85,_0x33583d=_0x1f4cde&&_0x1f4cde[_0xf46d25('0x2319')]?_0x1f4cde[_0xf46d25('0x2319')][0x0]:null;_0x33583d&&_0x33583d[_0xf46d25('0x1cd3')]?_0x502670['go'](_0xf46d25('0x1718'),{}):_0xb76516['info']({'title':_0xdbc309[_0xf46d25('0x1acc')](_0xf46d25('0x286e')),'msg':_0xdbc309[_0xf46d25('0x1acc')](_0xf46d25('0x1169'))});})[_0x24bd85('0x16df')](function(_0x5782d7){const _0x3f8c99=_0x24bd85;_0xb76516[_0x3f8c99('0x1db9')]({'title':_0x5782d7[_0x3f8c99('0x11c5')]?_0x3f8c99('0x14f7')+_0x5782d7[_0x3f8c99('0x11c5')]+_0x3f8c99('0x16e4')+_0x5782d7[_0x3f8c99('0x1833')]:_0x3f8c99('0x338'),'msg':_0x5782d7['status']?JSON[_0x3f8c99('0x678')](_0x5782d7['data']):_0x5782d7[_0x3f8c99('0x9b6')]()});});}function _0x2e89b2(){const _0x92daf1=_0x4fa1c3;_0x502670['go'](_0x92daf1('0x1d17'),{},{'reload':_0x92daf1('0x1d17')});}function _0x4ea6ba(){const _0x5e8739=_0x4fa1c3;_0x11dbea[_0x5e8739('0x1243')][_0x5e8739('0x27ba')]({'id':_0x359bf3[_0x5e8739('0x25f7')]['id']},_0x359bf3['queueCampaign'])[_0x5e8739('0x1af5')]['then'](function(){const _0x562b4d=_0x5e8739;_0xb76516[_0x562b4d('0x130d')]({'title':_0x562b4d('0x2393'),'msg':_0x359bf3['queueCampaign']['name']?_0x359bf3['queueCampaign'][_0x562b4d('0x2aa')]+_0x562b4d('0x12b0'):''});})['catch'](function(_0x14db33){const _0x534e94=_0x5e8739;_0xb76516[_0x534e94('0x1db9')]({'title':_0x14db33[_0x534e94('0x11c5')]?'API:'+_0x14db33[_0x534e94('0x11c5')]+_0x534e94('0x16e4')+_0x14db33[_0x534e94('0x1833')]:_0x534e94('0x21ab'),'msg':_0x14db33['data']?JSON[_0x534e94('0x678')](_0x14db33[_0x534e94('0x1457')]):_0x14db33[_0x534e94('0x9b6')]()});});}}const _0x148670=_0x1c461b;_0x1fcfd1[_0x4376d8('0x1b9c')]=['$scope','$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x2a2'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x1fcfd1(_0x441bf3,_0xe53752,_0x23cdfe,_0x4c3657,_0x3626f3,_0x413121,_0x250880,_0x15d48a,_0x56d64f,_0x20d897,_0x57bb9a,_0x544c6d,_0x507761,_0x3f689a,_0x36038e,_0x3fbec8,_0x55d6b7){const _0xf4008b=_0x4376d8,_0x3861cc=this;_0x3861cc[_0xf4008b('0x1d11')]=_0x3fbec8,_0x3861cc[_0xf4008b('0x1aeb')]=_0x55d6b7,_0x3861cc['currentUser']=_0x36038e[_0xf4008b('0x2831')](),_0x3861cc[_0xf4008b('0x2a2')]=_0x56d64f||{'count':0x0,'rows':[]},_0x3861cc[_0xf4008b('0xdeb')]=_0x20d897,_0x3861cc[_0xf4008b('0x383')]=_0x57bb9a&&_0x57bb9a[_0xf4008b('0x335')]==0x1?_0x57bb9a[_0xf4008b('0x2319')][0x0]:null,_0x3861cc[_0xf4008b('0x103e')]=_0x36038e[_0xf4008b('0x17a9')](_0x3861cc[_0xf4008b('0x383')]?_0x3861cc[_0xf4008b('0x383')][_0xf4008b('0x103e')]:null),_0x3861cc[_0xf4008b('0x23c3')]=_0xf4008b('0x2a2'),_0x3861cc[_0xf4008b('0x26a1')]='',_0x3861cc[_0xf4008b('0x24e1')]=null,_0x3861cc[_0xf4008b('0x1a02')]=[],_0x3861cc[_0xf4008b('0x826')]={'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':_0xf4008b('0x1ade'),'sort':_0xf4008b('0x1ac6'),'channel':_0xf4008b('0x1fe1'),'limit':0xa,'page':0x1},_0x3861cc[_0xf4008b('0x209c')]=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':'ALWAYS','value':_0xf4008b('0x1632')},{'option':'NEVER','value':'\x27never\x27'},{'option':_0xf4008b('0x12c9'),'value':'\x27onlyIfOpen\x27'}],function(_0x5111a5){const _0x3690b8=_0xf4008b;return _0x49cbdd()[_0x3690b8('0x737')](_0x5111a5[_0x3690b8('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0x78e')]=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':_0xf4008b('0x8e3'),'value':_0xf4008b('0xc68')},{'option':'No','value':_0xf4008b('0x2471')}],function(_0x3f9cdf){const _0xfa2c82=_0xf4008b;return _0x49cbdd()[_0xfa2c82('0x737')](_0x3f9cdf[_0xfa2c82('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0xf38')]=_0x49cbdd()['keyBy']([{'option':_0xf4008b('0x8e3'),'value':_0xf4008b('0xd7b')},{'option':'No','value':_0xf4008b('0x2471')}],function(_0x32fea0){const _0x49e2ca=_0xf4008b;return _0x49cbdd()[_0x49e2ca('0x737')](_0x32fea0[_0x49e2ca('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc['arraytimeoutrestart']=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':_0xf4008b('0x8e3'),'value':_0xf4008b('0xd7b')},{'option':'No','value':_0xf4008b('0x2471')}],function(_0x37c7ff){const _0x5ec33d=_0xf4008b;return _0x49cbdd()[_0x5ec33d('0x737')](_0x37c7ff[_0x5ec33d('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc['arraymonitor_format']=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':_0xf4008b('0x5c7'),'value':'\x27\x27'},{'option':'wav','value':'\x27wav\x27'},{'option':_0xf4008b('0x1daa'),'value':_0xf4008b('0xf73')},{'option':_0xf4008b('0xbc3'),'value':'\x27gsm\x27'}],function(_0x18abff){return _0x49cbdd()['replace'](_0x18abff['value'],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0x216c')]=_0x49cbdd()['keyBy']([{'option':_0xf4008b('0x8e3'),'value':_0xf4008b('0xd7b')},{'option':'No','value':_0xf4008b('0x2471')}],function(_0x122ee2){const _0x1932b9=_0xf4008b;return _0x49cbdd()[_0x1932b9('0x737')](_0x122ee2[_0x1932b9('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0x1bdc')]=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':'Yes','value':_0xf4008b('0xd7b')},{'option':'No','value':'\x27no\x27'}],function(_0x517848){const _0x18b04f=_0xf4008b;return _0x49cbdd()[_0x18b04f('0x737')](_0x517848[_0x18b04f('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0x19b3')]=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':_0xf4008b('0x8e3'),'value':'\x27yes\x27'},{'option':'No','value':_0xf4008b('0x2471')}],function(_0x4ea937){const _0x143f3a=_0xf4008b;return _0x49cbdd()['replace'](_0x4ea937[_0x143f3a('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc['arraydialOrderByScheduledAt']=_0x49cbdd()['keyBy']([{'option':_0xf4008b('0xbc0'),'value':_0xf4008b('0x1c13')},{'option':_0xf4008b('0x1173'),'value':_0xf4008b('0x1cdc')}],function(_0x20739a){const _0x5dd01b=_0xf4008b;return _0x49cbdd()[_0x5dd01b('0x737')](_0x20739a[_0x5dd01b('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0x21e3')]=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':_0xf4008b('0x167f'),'value':_0xf4008b('0xd86')},{'option':_0xf4008b('0xecd'),'value':_0xf4008b('0x2506')},{'option':_0xf4008b('0x15b8'),'value':'\x27predictive\x27'},{'option':_0xf4008b('0x280b'),'value':_0xf4008b('0x933')},{'option':_0xf4008b('0x2845'),'value':'\x27booked\x27'}],function(_0x133f00){const _0x1e8c35=_0xf4008b;return _0x49cbdd()[_0x1e8c35('0x737')](_0x133f00['value'],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0x634')]=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':_0xf4008b('0xbf'),'value':_0xf4008b('0x22f7')},{'option':_0xf4008b('0x1620'),'value':_0xf4008b('0x1009')}],function(_0x290b82){return _0x49cbdd()['replace'](_0x290b82['value'],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0x245b')]=_0x49cbdd()[_0xf4008b('0x8de')]([{'option':'Round\x20Robin\x20Memory','value':_0xf4008b('0x19b1')},{'option':_0xf4008b('0x13ea'),'value':'\x27roundrobin\x27','ngIf':'vm.queueCampaign.dialMethod\x20===\x20\x27booked\x27'},{'option':'Least\x20Recent','value':_0xf4008b('0x1203'),'ngIf':_0xf4008b('0x13b3')},{'option':_0xf4008b('0x10e0'),'value':_0xf4008b('0x1043'),'ngIf':_0xf4008b('0x13b3')},{'option':_0xf4008b('0x1cbf'),'value':_0xf4008b('0xd29'),'ngIf':_0xf4008b('0x13b3')},{'option':_0xf4008b('0x154'),'value':_0xf4008b('0x15c1'),'ngIf':_0xf4008b('0x13b3')},{'option':_0xf4008b('0x28c6'),'value':_0xf4008b('0x172'),'ngIf':'vm.queueCampaign.dialMethod\x20!==\x20\x27booked\x27'}],function(_0x71ab18){const _0x35f143=_0xf4008b;return _0x49cbdd()[_0x35f143('0x737')](_0x71ab18[_0x35f143('0x175b')],new RegExp('\x27','g'),'');}),_0x3861cc[_0xf4008b('0xcd4')]=_0x49b8f5,_0x3861cc['clonedialog']=_0x82767b,_0x3861cc['listadddialog']=_0x459ed4,_0x3861cc[_0xf4008b('0x2484')]=_0x29ea7e,_0x3861cc[_0xf4008b('0x1e34')]=_0x126f17,_0x3861cc['agentadddialog']=_0x557b9f,_0x3861cc[_0xf4008b('0xbf4')]=_0x4a814d,_0x3861cc['gotorealtimegoto']=_0x56f92a,_0x3861cc['success']=_0x12115c,_0x3861cc[_0xf4008b('0xd74')]=_0xf56b9b,_0x3861cc[_0xf4008b('0xaeb')]=_0x49e3c4,_0x3861cc[_0xf4008b('0xac2')]=_0x9b94ca,_0x3861cc[_0xf4008b('0x425')]=_0x246f3d,_0x3861cc['deleteSelectedQueueCampaigns']=_0x377976,_0x3861cc[_0xf4008b('0x1b10')]=_0x19a158,_0x3861cc[_0xf4008b('0x5c1')]=_0xe9c25d,_0x36038e[_0xf4008b('0x1ba2')](_0xf4008b('0x20bf'))?_0x544c6d[_0xf4008b('0x252a')][_0xf4008b('0x1c53')]({'fields':'id,name','sort':_0xf4008b('0x2aa')})['$promise'][_0xf4008b('0x17e7')](function(_0x4d5025){const _0x590ecb=_0xf4008b;_0x3861cc[_0x590ecb('0x19cb')]=_0x4d5025[_0x590ecb('0x2319')]||[];})[_0xf4008b('0x16df')](function(_0x496943){const _0x2bd521=_0xf4008b;_0x3f689a[_0x2bd521('0x1db9')]({'title':_0x496943['status']?_0x2bd521('0x14f7')+_0x496943[_0x2bd521('0x11c5')]+'\x20-\x20'+_0x496943['statusText']:'SYSTEM:GET_TRUNKS','msg':_0x496943[_0x2bd521('0x1457')]?JSON['stringify'](_0x496943[_0x2bd521('0x1457')]):_0x496943['toString']()});}):_0x544c6d['trunk'][_0xf4008b('0x1c53')]({'fields':_0xf4008b('0x12d2'),'sort':'name'})[_0xf4008b('0x1af5')]['then'](function(_0x454478){const _0x5742e3=_0xf4008b;_0x3861cc[_0x5742e3('0x19cb')]=_0x454478[_0x5742e3('0x2319')]||[];})[_0xf4008b('0x17e7')](function(){const _0x152bfc=_0xf4008b;return _0x544c6d[_0x152bfc('0x383')][_0x152bfc('0x1c53')]({'userProfileId':_0x3861cc[_0x152bfc('0x197c')]['userProfileId'],'sectionId':0x3f3})[_0x152bfc('0x1af5')];})[_0xf4008b('0x17e7')](function(_0x2791d2){const _0x2b6319=_0xf4008b,_0x5dadf3=_0x2791d2&&_0x2791d2[_0x2b6319('0x2319')]?_0x2791d2['rows'][0x0]:null;if(!_0x5dadf3){const _0x4a511c=[],_0x2fe211=[];_0x3861cc[_0x2b6319('0x2a2')][_0x2b6319('0x2319')][_0x2b6319('0xccd')](function(_0x18c069){const _0x48fc6a=_0x2b6319,_0x41253d=_0x49cbdd()[_0x48fc6a('0xe8e')](_0x3861cc[_0x48fc6a('0x19cb')],{'id':Number(_0x18c069[_0x48fc6a('0x129f')])});_0x2fe211[_0x48fc6a('0x269f')](_0x41253d);});for(let _0x45eaa=0x0;_0x45eaa<_0x3861cc[_0x2b6319('0x19cb')][_0x2b6319('0x1f73')];_0x45eaa++){const _0x3595f7=_0x49cbdd()[_0x2b6319('0x26f8')](_0x2fe211,{'id':_0x3861cc[_0x2b6319('0x19cb')][_0x45eaa]['id']});_0x3595f7&&(_0x3861cc['trunks'][_0x45eaa][_0x2b6319('0xe5c')]=![],_0x4a511c['push'](_0x3861cc[_0x2b6319('0x19cb')][_0x45eaa]));}_0x3861cc[_0x2b6319('0x19cb')]=_0x4a511c;}else{if(!_0x5dadf3[_0x2b6319('0x9e3')])return _0x544c6d[_0x2b6319('0x78d')][_0x2b6319('0x1c53')]({'sectionId':_0x5dadf3['id']})['$promise']['then'](function(_0x370b58){const _0x5eef9d=_0x2b6319,_0x59bdd7=_0x49cbdd()[_0x5eef9d('0x787')](_0x370b58['rows'],function(_0x4db3b3){const _0x388055=_0x5eef9d;return _0x49cbdd()['find'](_0x3861cc[_0x388055('0x19cb')],{'id':_0x4db3b3[_0x388055('0x5db')]});});let _0x58d331=null;_0x58d331=[],_0x3861cc[_0x5eef9d('0x2a2')]['rows']['forEach'](function(_0x37a43d){const _0x5d8fbd=_0x5eef9d,_0x185a93=_0x49cbdd()[_0x5d8fbd('0xe8e')](_0x3861cc[_0x5d8fbd('0x19cb')],{'id':Number(_0x37a43d[_0x5d8fbd('0x129f')])});_0x58d331[_0x5d8fbd('0x269f')](_0x185a93);}),!_0x49cbdd()[_0x5eef9d('0x109a')](_0x58d331)&&_0x58d331['forEach'](function(_0xf84aac){const _0xef6f65=_0x5eef9d;if(!_0x49cbdd()[_0xef6f65('0x26f8')](_0x59bdd7,['id',_0xf84aac['id']])){const _0x1bf322=_0x49cbdd()[_0xef6f65('0xe8e')](_0x3861cc[_0xef6f65('0x19cb')],{'id':_0xf84aac['id']});_0x1bf322[_0xef6f65('0xe5c')]=![],_0x59bdd7[_0xef6f65('0x269f')](_0x1bf322);}}),_0x3861cc[_0x5eef9d('0x19cb')]=_0x59bdd7;});}})[_0xf4008b('0x16df')](function(_0x488ae4){const _0x9b5df2=_0xf4008b;_0x3f689a[_0x9b5df2('0x1db9')]({'title':_0x488ae4[_0x9b5df2('0x11c5')]?_0x9b5df2('0x14f7')+_0x488ae4[_0x9b5df2('0x11c5')]+_0x9b5df2('0x16e4')+_0x488ae4[_0x9b5df2('0x1833')]:_0x9b5df2('0x2825'),'msg':_0x488ae4[_0x9b5df2('0x1457')]?JSON['stringify'](_0x488ae4[_0x9b5df2('0x1457')]):_0x488ae4[_0x9b5df2('0x9b6')]()});}),_0x36038e[_0xf4008b('0x1ba2')](_0xf4008b('0x20bf'))?_0x544c6d[_0xf4008b('0x231f')][_0xf4008b('0x1c53')]({'fields':_0xf4008b('0x12d2'),'sort':_0xf4008b('0x2aa'),'IntervalId':_0xf4008b('0x9bb')})[_0xf4008b('0x1af5')]['then'](function(_0x56e2d0){const _0xeba37a=_0xf4008b;_0x3861cc[_0xeba37a('0x231f')]=_0x56e2d0[_0xeba37a('0x2319')]||[];})[_0xf4008b('0x16df')](function(_0xec4c78){const _0x3efef5=_0xf4008b;_0x3f689a[_0x3efef5('0x1db9')]({'title':_0xec4c78[_0x3efef5('0x11c5')]?_0x3efef5('0x14f7')+_0xec4c78[_0x3efef5('0x11c5')]+_0x3efef5('0x16e4')+_0xec4c78[_0x3efef5('0x1833')]:_0x3efef5('0xebd'),'msg':_0xec4c78['data']?JSON[_0x3efef5('0x678')](_0xec4c78[_0x3efef5('0x1457')]):_0xec4c78['toString']()});}):_0x544c6d[_0xf4008b('0x231f')]['get']({'fields':_0xf4008b('0x12d2'),'sort':_0xf4008b('0x2aa'),'IntervalId':_0xf4008b('0x9bb')})[_0xf4008b('0x1af5')][_0xf4008b('0x17e7')](function(_0xcf3211){const _0x169f2b=_0xf4008b;_0x3861cc[_0x169f2b('0x231f')]=_0xcf3211[_0x169f2b('0x2319')]||[];})[_0xf4008b('0x17e7')](function(){const _0x398865=_0xf4008b;return _0x544c6d[_0x398865('0x383')][_0x398865('0x1c53')]({'userProfileId':_0x3861cc['currentUser'][_0x398865('0x1e76')],'sectionId':0x3ec})[_0x398865('0x1af5')];})[_0xf4008b('0x17e7')](function(_0x5dcacf){const _0xeb43f3=_0xf4008b,_0x5e597c=_0x5dcacf&&_0x5dcacf[_0xeb43f3('0x2319')]?_0x5dcacf[_0xeb43f3('0x2319')][0x0]:null;if(!_0x5e597c){const _0x4c972c=[];let _0x55bb23=null;_0x3861cc[_0xeb43f3('0x25f7')]&&(_0x55bb23=_0x49cbdd()['find'](_0x3861cc[_0xeb43f3('0x231f')],{'id':Number(_0x3861cc[_0xeb43f3('0x25f7')][_0xeb43f3('0x24a9')])}));for(let _0x1c31d2=0x0;_0x1c31d2<_0x3861cc[_0xeb43f3('0x231f')][_0xeb43f3('0x1f73')];_0x1c31d2++){_0x55bb23&&_0x3861cc[_0xeb43f3('0x231f')][_0x1c31d2]['id']===_0x55bb23['id']&&(_0x3861cc['interval'][_0x1c31d2]['canSelect']=![],_0x4c972c[_0xeb43f3('0x269f')](_0x3861cc[_0xeb43f3('0x231f')][_0x1c31d2]));}_0x3861cc[_0xeb43f3('0x231f')]=_0x4c972c;}else{if(!_0x5e597c[_0xeb43f3('0x9e3')])return _0x544c6d[_0xeb43f3('0x78d')][_0xeb43f3('0x1c53')]({'sectionId':_0x5e597c['id']})[_0xeb43f3('0x1af5')]['then'](function(_0x1fe22c){const _0x4ecf02=_0xeb43f3,_0x5e70bb=_0x49cbdd()[_0x4ecf02('0x787')](_0x1fe22c['rows'],function(_0x2bed1c){const _0x42fd00=_0x4ecf02;return _0x49cbdd()['find'](_0x3861cc[_0x42fd00('0x231f')],{'id':_0x2bed1c['resourceId']});});let _0x259621=null;_0x3861cc[_0x4ecf02('0x25f7')]&&(_0x259621=_0x49cbdd()[_0x4ecf02('0xe8e')](_0x3861cc[_0x4ecf02('0x231f')],{'id':Number(_0x3861cc[_0x4ecf02('0x25f7')][_0x4ecf02('0x24a9')])}));if(_0x259621&&!_0x49cbdd()[_0x4ecf02('0x26f8')](_0x5e70bb,['id',_0x259621['id']])){const _0x291d14=_0x49cbdd()[_0x4ecf02('0xe8e')](_0x3861cc[_0x4ecf02('0x231f')],{'id':_0x259621['id']});_0x291d14[_0x4ecf02('0xe5c')]=![],_0x5e70bb['push'](_0x291d14);}_0x3861cc[_0x4ecf02('0x231f')]=_0x5e70bb;});}})['catch'](function(_0x540b56){const _0x484908=_0xf4008b;_0x3f689a[_0x484908('0x1db9')]({'title':_0x540b56[_0x484908('0x11c5')]?_0x484908('0x14f7')+_0x540b56[_0x484908('0x11c5')]+_0x484908('0x16e4')+_0x540b56[_0x484908('0x1833')]:_0x484908('0x1f79'),'msg':_0x540b56[_0x484908('0x1457')]?JSON[_0x484908('0x678')](_0x540b56['data']):_0x540b56[_0x484908('0x9b6')]()});});function _0x49b8f5(_0x2f07d2){const _0x35a159=_0xf4008b;_0x23cdfe['go']('app.motiondialer.queueCampaigns.edit',{'id':_0x2f07d2['id'],'queueCampaign':_0x2f07d2,'crudPermissions':_0x3861cc[_0x35a159('0x103e')]});}function _0x82767b(_0x26fa21,_0x1f6aad){const _0x18db5f=_0xf4008b;_0x3626f3[_0x18db5f('0x28e2')]({'controller':_0x18db5f('0xd3b'),'controllerAs':'vm','templateUrl':_0x59e536,'parent':angular[_0x18db5f('0x1ce1')](_0x413121[_0x18db5f('0x13aa')]),'targetEvent':_0x1f6aad,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x26fa21,'queueCampaigns':_0x3861cc['queueCampaigns']?_0x3861cc['queueCampaigns'][_0x18db5f('0x2319')]:[],'crudPermissions':_0x3861cc[_0x18db5f('0x103e')]}});}function _0x459ed4(_0x4c8fd7,_0x54c4e4){const _0x20e5fe=_0xf4008b;_0x3626f3[_0x20e5fe('0x28e2')]({'controller':_0x20e5fe('0x421'),'controllerAs':'vm','templateUrl':_0xfaa4a,'parent':angular[_0x20e5fe('0x1ce1')](_0x413121[_0x20e5fe('0x13aa')]),'targetEvent':_0x54c4e4,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4c8fd7,'queueCampaigns':_0x3861cc[_0x20e5fe('0x2a2')]?_0x3861cc[_0x20e5fe('0x2a2')][_0x20e5fe('0x2319')]:[],'crudPermissions':_0x3861cc[_0x20e5fe('0x103e')]}});}function _0x29ea7e(_0xc01e58,_0xf1ee19){const _0x42ed16=_0xf4008b;_0x3626f3[_0x42ed16('0x28e2')]({'controller':_0x42ed16('0x20da'),'controllerAs':'vm','templateUrl':_0x22e253,'parent':angular[_0x42ed16('0x1ce1')](_0x413121[_0x42ed16('0x13aa')]),'targetEvent':_0xf1ee19,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0xc01e58,'queueCampaigns':_0x3861cc['queueCampaigns']?_0x3861cc[_0x42ed16('0x2a2')][_0x42ed16('0x2319')]:[],'crudPermissions':_0x3861cc['crudPermissions']}});}function _0x126f17(_0x27ff79,_0x3dd684){const _0x571f22=_0xf4008b;_0x3626f3[_0x571f22('0x28e2')]({'controller':_0x571f22('0x1c6'),'controllerAs':'vm','templateUrl':_0x417f22,'parent':angular['element'](_0x413121[_0x571f22('0x13aa')]),'targetEvent':_0x3dd684,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x27ff79,'queueCampaigns':_0x3861cc[_0x571f22('0x2a2')]?_0x3861cc[_0x571f22('0x2a2')][_0x571f22('0x2319')]:[],'crudPermissions':_0x3861cc[_0x571f22('0x103e')]}});}function _0x557b9f(_0x9d2262,_0x4979bf){const _0x7454ed=_0xf4008b;_0x3626f3[_0x7454ed('0x28e2')]({'controller':_0x7454ed('0x1e4a'),'controllerAs':'vm','templateUrl':_0x326495,'parent':angular['element'](_0x413121['body']),'targetEvent':_0x4979bf,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x9d2262,'queueCampaigns':_0x3861cc[_0x7454ed('0x2a2')]?_0x3861cc[_0x7454ed('0x2a2')][_0x7454ed('0x2319')]:[],'crudPermissions':_0x3861cc[_0x7454ed('0x103e')],'realtime':![]}});}function _0x4a814d(_0x3da262,_0x18ac50){const _0x27a43e=_0xf4008b,_0x3a5a1f=_0x3626f3[_0x27a43e('0x1121')]()[_0x27a43e('0x24d3')](_0x27a43e('0x5e1')+_0x49cbdd()[_0x27a43e('0x1c98')](_0x27a43e('0x25f7'))+'?')[_0x27a43e('0x211f')](''+(_0x3da262[_0x27a43e('0x2aa')]||_0x27a43e('0x25f7'))+_0x27a43e('0x1d23')+_0x27a43e('0xe9f'))['ariaLabel'](_0x27a43e('0x251b'))[_0x27a43e('0x104f')](_0x18ac50)['ok']('OK')['cancel'](_0x27a43e('0x28a0'));_0x3626f3[_0x27a43e('0x28e2')](_0x3a5a1f)[_0x27a43e('0x17e7')](function(){_0x9b94ca(_0x3da262);},function(){const _0x49a582=_0x27a43e;console[_0x49a582('0x1d63')](_0x49a582('0x28a0'));});}function _0x56f92a(){const _0x5d3514=_0xf4008b;if(_0x36038e['hasRole'](_0x5d3514('0x20bf')))_0x23cdfe['go'](_0x5d3514('0x1718'),{});else return _0x544c6d['userProfileSection'][_0x5d3514('0x1c53')]({'userProfileId':_0x36038e['getCurrentUser']()['userProfileId'],'sectionId':0x5e6})[_0x5d3514('0x1af5')]['then'](function(_0x3153fe){const _0x5a7ea1=_0x5d3514,_0xb6d795=_0x3153fe&&_0x3153fe[_0x5a7ea1('0x2319')]?_0x3153fe[_0x5a7ea1('0x2319')][0x0]:null;_0xb6d795&&_0xb6d795[_0x5a7ea1('0x1cd3')]?_0x23cdfe['go'](_0x5a7ea1('0x1718'),{}):_0x3f689a[_0x5a7ea1('0x1178')]({'title':_0x15d48a[_0x5a7ea1('0x1acc')]('STAFF.PERMISSIONS_UNAUTHORIZED_REDIRECT_TITLE'),'msg':_0x15d48a[_0x5a7ea1('0x1acc')](_0x5a7ea1('0x1169'))});})[_0x5d3514('0x16df')](function(_0x266484){const _0x4908db=_0x5d3514;_0x3f689a[_0x4908db('0x1db9')]({'title':_0x266484[_0x4908db('0x11c5')]?_0x4908db('0x14f7')+_0x266484[_0x4908db('0x11c5')]+_0x4908db('0x16e4')+_0x266484['statusText']:_0x4908db('0x338'),'msg':_0x266484[_0x4908db('0x11c5')]?JSON[_0x4908db('0x678')](_0x266484[_0x4908db('0x1457')]):_0x266484['toString']()});});}let _0x66dab2=!![],_0x6ce417=0x1;_0x441bf3[_0xf4008b('0x620')]('vm.query.filter',function(_0x287923,_0x56f8ad){const _0x41fd58=_0xf4008b;_0x66dab2?_0x250880(function(){_0x66dab2=![];}):(!_0x56f8ad&&(_0x6ce417=_0x3861cc[_0x41fd58('0x826')][_0x41fd58('0x115a')]),_0x287923!==_0x56f8ad&&(_0x3861cc[_0x41fd58('0x826')][_0x41fd58('0x115a')]=0x1),!_0x287923&&(_0x3861cc[_0x41fd58('0x826')][_0x41fd58('0x115a')]=_0x6ce417),_0x3861cc[_0x41fd58('0xd74')]());});function _0x12115c(_0x4e2b37){const _0x10b2cb=_0xf4008b;_0x3861cc[_0x10b2cb('0x2a2')]=_0x4e2b37||{'count':0x0,'rows':[]};}function _0xf56b9b(){const _0x11eb7a=_0xf4008b;_0x3861cc['query'][_0x11eb7a('0xf19')]=(_0x3861cc['query'][_0x11eb7a('0x115a')]-0x1)*_0x3861cc[_0x11eb7a('0x826')][_0x11eb7a('0x193b')],_0x36038e[_0x11eb7a('0x1ba2')](_0x11eb7a('0x20bf'))?_0x3861cc['promise']=_0x544c6d['voiceQueue'][_0x11eb7a('0x1c53')](_0x3861cc[_0x11eb7a('0x826')],_0x12115c)[_0x11eb7a('0x1af5')]:(_0x3861cc[_0x11eb7a('0x826')]['id']=_0x3861cc[_0x11eb7a('0xdeb')]['id'],_0x3861cc['query']['section']='QueueCampaigns',_0x3861cc[_0x11eb7a('0x1691')]=_0x544c6d['userProfile'][_0x11eb7a('0x2447')](_0x3861cc[_0x11eb7a('0x826')],_0x12115c)[_0x11eb7a('0x1af5')]);}function _0x49e3c4(_0x32a7bb,_0x4b6579){const _0x2748de=_0xf4008b;_0x3626f3[_0x2748de('0x28e2')]({'controller':'CreateOrEditQueueCampaignDialogController','controllerAs':'vm','templateUrl':_0x31b9dc,'parent':angular[_0x2748de('0x1ce1')](_0x413121[_0x2748de('0x13aa')]),'targetEvent':_0x32a7bb,'clickOutsideToClose':!![],'locals':{'queueCampaign':_0x4b6579,'queueCampaigns':_0x3861cc['queueCampaigns']['rows'],'license':_0x3861cc['license'],'setting':_0x3861cc[_0x2748de('0x1aeb')],'crudPermissions':_0x3861cc[_0x2748de('0x103e')]}});}function _0x9b94ca(_0x2ca85f){const _0x3317ee=_0xf4008b;_0x544c6d[_0x3317ee('0x1243')][_0x3317ee('0x1da6')]({'id':_0x2ca85f['id']})['$promise'][_0x3317ee('0x17e7')](function(){const _0x3c7dd6=_0x3317ee;_0x49cbdd()[_0x3c7dd6('0x5f3')](_0x3861cc[_0x3c7dd6('0x2a2')][_0x3c7dd6('0x2319')],{'id':_0x2ca85f['id']}),_0x3861cc[_0x3c7dd6('0x2a2')]['count']-=0x1,!_0x3861cc[_0x3c7dd6('0x2a2')]['rows'][_0x3c7dd6('0x1f73')]&&_0x3861cc[_0x3c7dd6('0xd74')](),_0x3f689a[_0x3c7dd6('0x130d')]({'title':_0x49cbdd()[_0x3c7dd6('0x1c98')]('QueueCampaign')+'\x20deleted!','msg':_0x2ca85f[_0x3c7dd6('0x2aa')]?_0x2ca85f[_0x3c7dd6('0x2aa')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x1a7d2a){const _0x4e134e=_0x3317ee;if(_0x1a7d2a[_0x4e134e('0x1457')]&&_0x1a7d2a[_0x4e134e('0x1457')]['errors']&&_0x1a7d2a[_0x4e134e('0x1457')][_0x4e134e('0x73e')][_0x4e134e('0x1f73')]){_0x3861cc[_0x4e134e('0x73e')]=_0x1a7d2a[_0x4e134e('0x1457')][_0x4e134e('0x73e')]||[{'message':_0x1a7d2a[_0x4e134e('0x9b6')](),'type':_0x4e134e('0x18de')}];for(let _0x1de236=0x0;_0x1de236<_0x1a7d2a['data'][_0x4e134e('0x73e')][_0x4e134e('0x1f73')];_0x1de236++){_0x3f689a[_0x4e134e('0x1db9')]({'title':_0x1a7d2a['data']['errors'][_0x1de236][_0x4e134e('0x412')],'msg':_0x1a7d2a[_0x4e134e('0x1457')]['errors'][_0x1de236][_0x4e134e('0x1603')]});}}else _0x3f689a[_0x4e134e('0x1db9')]({'title':_0x1a7d2a['status']?_0x4e134e('0x14f7')+_0x1a7d2a[_0x4e134e('0x11c5')]+_0x4e134e('0x16e4')+_0x1a7d2a['statusText']:_0x4e134e('0x18de'),'msg':_0x1a7d2a[_0x4e134e('0x1457')]?JSON[_0x4e134e('0x678')](_0x1a7d2a['data'][_0x4e134e('0x1603')]):_0x1a7d2a[_0x4e134e('0x1603')]||_0x1a7d2a[_0x4e134e('0x9b6')]()});});}function _0x246f3d(){const _0x4d93a2=_0xf4008b,_0xe0c558=angular[_0x4d93a2('0x14e5')](_0x3861cc[_0x4d93a2('0x1a02')]);return _0x3861cc[_0x4d93a2('0x1a02')]=[],_0xe0c558;}function _0x377976(_0x3553a4){const _0x1a591c=_0xf4008b,_0x1294d1=_0x3626f3['confirm']()[_0x1a591c('0x24d3')](_0x1a591c('0x1ce2'))[_0x1a591c('0x211f')](_0x1a591c('0xa53')+_0x3861cc[_0x1a591c('0x1a02')]['length']+_0x1a591c('0x145a')+_0x1a591c('0xe9f'))[_0x1a591c('0x2095')](_0x1a591c('0x1b83'))[_0x1a591c('0x104f')](_0x3553a4)['ok']('OK')[_0x1a591c('0x1d47')](_0x1a591c('0x28a0'));_0x3626f3[_0x1a591c('0x28e2')](_0x1294d1)[_0x1a591c('0x17e7')](function(){const _0x40da0a=_0x1a591c;_0x3861cc[_0x40da0a('0x1a02')]['forEach'](function(_0x43395c){_0x9b94ca(_0x43395c);}),_0x3861cc['selectedQueueCampaigns']=[];});}function _0x19a158(){const _0x5c48d4=_0xf4008b;_0x3861cc[_0x5c48d4('0x1a02')]=[];}function _0xe9c25d(){const _0x18dd4a=_0xf4008b;_0x3861cc[_0x18dd4a('0x1a02')]=_0x3861cc[_0x18dd4a('0x2a2')][_0x18dd4a('0x2319')];}}const _0x34934a=_0x1fcfd1;_0x100978[_0x4376d8('0x1b9c')]=['$stateProvider',_0x4376d8('0x21fc')];function _0x100978(_0x48ad5e,_0x548300){const _0x232c32=_0x4376d8;_0x48ad5e[_0x232c32('0x1b9a')](_0x232c32('0x1f13'),{'abstract':!![],'url':_0x232c32('0x2801')})[_0x232c32('0x1b9a')](_0x232c32('0x1d17'),{'url':_0x232c32('0x114'),'views':{'content@app':{'templateUrl':_0x4957d3,'controller':'QueueCampaignsController\x20as\x20vm'}},'resolve':{'queueCampaigns':['apiResolver','Auth',function(_0x4f9e39,_0x54f61b){const _0x1d076a=_0x232c32;return _0x54f61b['hasRole'](_0x1d076a('0x20bf'))?_0x4f9e39[_0x1d076a('0x898')]('voiceQueue@get',{'fields':_0x1d076a('0x1ae2'),'type':'outbound','sort':_0x1d076a('0x1ac6'),'channel':_0x1d076a('0x1fe1'),'limit':0xa,'offset':0x0}):_0x4f9e39[_0x1d076a('0x898')]('userProfile@getResources',{'id':_0x54f61b[_0x1d076a('0x2831')]()['userProfileId'],'section':_0x1d076a('0x1299'),'fields':_0x1d076a('0x1ae2'),'type':_0x1d076a('0x1ade'),'sort':_0x1d076a('0x1ac6'),'channel':'voice','limit':0xa,'offset':0x0});}],'userProfile':[_0x232c32('0x177'),_0x232c32('0x1885'),function(_0x5a9b6a,_0x368da7){const _0x5763cf=_0x232c32;return _0x368da7[_0x5763cf('0x1ba2')]('admin')?null:_0x5a9b6a[_0x5763cf('0x898')](_0x5763cf('0x235d'),{'fields':_0x5763cf('0x8d3'),'id':_0x368da7[_0x5763cf('0x2831')]()[_0x5763cf('0x1e76')]});}],'userProfileSection':['apiResolver',_0x232c32('0x1885'),function(_0x13f685,_0x5b0509){const _0xd559bb=_0x232c32;return _0x5b0509['hasRole'](_0xd559bb('0x20bf'))?null:_0x13f685[_0xd559bb('0x898')](_0xd559bb('0x23e7'),{'fields':_0xd559bb('0x1134'),'userProfileId':_0x5b0509[_0xd559bb('0x2831')]()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':_0x232c32('0xfae')})[_0x232c32('0x1b9a')]('app.motiondialer.queueCampaigns.edit',{'url':_0x232c32('0x2370'),'params':{'queueCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4d81cc,'controller':_0x232c32('0xd69')}},'resolve':{'queueCampaign':[_0x232c32('0x177'),_0x232c32('0x118b'),function(_0x5b824b,_0x44270a){const _0x47a4b6=_0x232c32;return _0x5b824b[_0x47a4b6('0x898')]('voiceQueue@get',{'fields':_0x47a4b6('0x1ae2'),'id':_0x44270a['id']});}],'userProfileSection':['apiResolver',_0x232c32('0x1885'),function(_0x233b19,_0x3a4cf5){const _0x1baf1b=_0x232c32;return _0x233b19[_0x1baf1b('0x898')](_0x1baf1b('0x23e7'),{'fields':_0x1baf1b('0x1134'),'userProfileId':_0x3a4cf5['getCurrentUser']()['userProfileId'],'sectionId':0x5dd});}]},'authenticate':!![],'permissionId':0x5dd,'bodyClass':'motiondialer'})['state'](_0x232c32('0xf4e'),{'url':_0x232c32('0x1da8'),'views':{'content@app':{'templateUrl':_0x36ef4e,'controller':_0x232c32('0x1c4e')}},'resolve':{'ivrCampaigns':['apiResolver','Auth',function(_0x33657c,_0x4c5015){const _0x5f2801=_0x232c32;return _0x4c5015['hasRole'](_0x5f2801('0x20bf'))?_0x33657c[_0x5f2801('0x898')](_0x5f2801('0xba'),{'fields':_0x5f2801('0x1a17'),'type':_0x5f2801('0xe8'),'sort':_0x5f2801('0x1ac6'),'limit':0xa,'offset':0x0}):_0x33657c[_0x5f2801('0x898')](_0x5f2801('0x1164'),{'id':_0x4c5015[_0x5f2801('0x2831')]()['userProfileId'],'section':'IvrCampaigns','fields':_0x5f2801('0x1a17'),'type':'ivr','sort':_0x5f2801('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver',_0x232c32('0x1885'),function(_0x513165,_0x57d807){const _0x402b72=_0x232c32;return _0x57d807[_0x402b72('0x1ba2')](_0x402b72('0x20bf'))?null:_0x513165[_0x402b72('0x898')](_0x402b72('0x235d'),{'fields':_0x402b72('0x8d3'),'id':_0x57d807[_0x402b72('0x2831')]()[_0x402b72('0x1e76')]});}],'userProfileSection':[_0x232c32('0x177'),'Auth',function(_0x5980df,_0x5623f7){const _0x4693a1=_0x232c32;return _0x5623f7[_0x4693a1('0x1ba2')](_0x4693a1('0x20bf'))?null:_0x5980df[_0x4693a1('0x898')](_0x4693a1('0x23e7'),{'fields':_0x4693a1('0x1134'),'userProfileId':_0x5623f7[_0x4693a1('0x2831')]()[_0x4693a1('0x1e76')],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':'motiondialer'})[_0x232c32('0x1b9a')]('app.motiondialer.ivrCampaigns.edit',{'url':_0x232c32('0x2370'),'params':{'ivrCampaign':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x82e73b,'controller':'IvrCampaignController\x20as\x20vm'}},'resolve':{'ivrCampaign':[_0x232c32('0x177'),_0x232c32('0x118b'),function(_0x12a531,_0x2f6638){const _0x553245=_0x232c32;return _0x12a531[_0x553245('0x898')](_0x553245('0xba'),{'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':_0x2f6638['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x45beb3,_0x419cd1){const _0x17f2cd=_0x232c32;return _0x45beb3[_0x17f2cd('0x898')](_0x17f2cd('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x419cd1[_0x17f2cd('0x2831')]()['userProfileId'],'sectionId':0x5de});}]},'authenticate':!![],'permissionId':0x5de,'bodyClass':'motiondialer'}),_0x548300[_0x232c32('0x10b3')](_0x232c32('0x1b4d'));}angular['module'](_0x4376d8('0x1f13'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),'md.data.table',_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),'mwFormUtils',_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),_0x4376d8('0xbe8')])[_0x4376d8('0x1980')](_0x100978)['controller'](_0x4376d8('0x3ea'),_0x5a84f1)[_0x4376d8('0x5ce')](_0x4376d8('0xeb4'),_0x31cc92)[_0x4376d8('0x5ce')](_0x4376d8('0x18c3'),_0x3ce944)['controller'](_0x4376d8('0x470'),_0x441456)[_0x4376d8('0x5ce')](_0x4376d8('0x2191'),_0x117cd9)['controller'](_0x4376d8('0x174d'),_0x75338f)[_0x4376d8('0x5ce')]('IvrCampaignHoppersController',_0x3835e8)['controller'](_0x4376d8('0x1db1'),_0x17c7ef)[_0x4376d8('0x5ce')]('IvrCampaignHopperStatisticsController',_0x41159b)['controller'](_0x4376d8('0x446'),_0x47b2fd)[_0x4376d8('0x5ce')](_0x4376d8('0x479'),_0x39b64e)[_0x4376d8('0x5ce')]('IvrCampaignController',_0x7df4e)[_0x4376d8('0x5ce')](_0x4376d8('0x921'),_0x3498d2)[_0x4376d8('0x5ce')](_0x4376d8('0xe79'),_0x53fec4)['controller'](_0x4376d8('0x1e4a'),_0x4db4e0)[_0x4376d8('0x5ce')](_0x4376d8('0x20da'),_0x3c7566)[_0x4376d8('0x5ce')](_0x4376d8('0xd3b'),_0x1f9d4e)[_0x4376d8('0x5ce')]('QueueCampaignHopperBlacksController',_0x37f152)[_0x4376d8('0x5ce')](_0x4376d8('0x134a'),_0x1394c4)[_0x4376d8('0x5ce')]('QueueCampaignHopperHistoriesController',_0x340592)[_0x4376d8('0x5ce')](_0x4376d8('0xd88'),_0x3090ed)['controller'](_0x4376d8('0x49f'),_0x31d10f)[_0x4376d8('0x5ce')](_0x4376d8('0x14d3'),_0x5e79fa)[_0x4376d8('0x5ce')]('QueueCampaignlistaddController',_0x5af182)['controller']('QueueCampaignresetlistController',_0x3d8d59)[_0x4376d8('0x5ce')]('QueueCampaignteamaddController',_0x32febe)[_0x4376d8('0x5ce')](_0x4376d8('0x1a63'),_0x148670)[_0x4376d8('0x5ce')](_0x4376d8('0x1b09'),_0x34934a);const _0x2a40c7=_0x4cf2bc['p']+'src/js/modules/main/apps/help/views/about/about.html/about.html';_0x51a364[_0x4376d8('0x1b9c')]=[_0x4376d8('0x1178'),_0x4376d8('0x1d11'),_0x4376d8('0x212e')];function _0x1a15ae(_0x616a60){const _0x252b46=_0x4376d8,_0x2fb634=_0x107a13()(_0x616a60);return _0x2fb634[_0x252b46('0xc98')]()?_0x2fb634['format']('lll\x20Z'):'';}function _0x51a364(_0x1fe9ca,_0x48feba,_0x3026fc){const _0x4f5f6d=_0x4376d8,_0x3e7ac5=this;_0x3e7ac5[_0x4f5f6d('0x23c4')]=_0x3026fc[_0x4f5f6d('0x23c4')],_0x3e7ac5[_0x4f5f6d('0x1178')]={..._0x1fe9ca,'buildDate':_0x1a15ae(_0x1fe9ca['buildDate']),'commitDate':_0x1a15ae(_0x1fe9ca['commitDate']),'client':{'name':_0x4f5f6d('0x1d7f'),'version':'3.0.0-alpha','shortHash':'f966519','branch':_0x4f5f6d('0x273a'),'tag':'','committedOn':_0x4f5f6d('0x23bb'),'buildDate':'2020-11-12T14:00:47.581Z'}},_0x3e7ac5[_0x4f5f6d('0x1d11')]=_0x48feba;}const _0x4bc438=_0x51a364;_0x33905a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x33905a(_0x7e8885){const _0x2b4466=_0x4376d8;_0x7e8885[_0x2b4466('0x1b9a')]('app.help.about',{'url':_0x2b4466('0x152c'),'views':{'content@app':{'templateUrl':_0x2a40c7,'controller':'AboutController\x20as\x20vm'}},'resolve':{'info':['apiResolver',function(_0x5800a2){const _0x5d91ba=_0x2b4466;return _0x5800a2[_0x5d91ba('0x898')]('version@get');}]},'authenticate':!![],'permissionId':0x640,'bodyClass':_0x2b4466('0x1bb6')});}angular[_0x4376d8('0x11c4')](_0x4376d8('0x1abf'),[])[_0x4376d8('0x1980')](_0x33905a)[_0x4376d8('0x5ce')](_0x4376d8('0x15a8'),_0x4bc438),_0x17d43f['$inject']=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x17d43f(_0xc5552b,_0x1dbbb6){const _0x163a23=_0x4376d8;_0xc5552b['state']('app.help',{'abstract':!![],'url':_0x163a23('0x1c15')}),_0x1dbbb6[_0x163a23('0x10b3')]('app/main/apps/help');}angular[_0x4376d8('0x11c4')](_0x4376d8('0xae5'),[_0x4376d8('0x14cd'),'ngPassword','md.data.table',_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),'ckeditor',_0x4376d8('0x1187'),'ngAria','ngAnimate',_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),'ngclipboard','angular-cron-jobs','ngEmbed',_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),'angular.filter','app.help.about'])[_0x4376d8('0x1980')](_0x17d43f);const _0x37e768=_0x4cf2bc['p']+_0x4376d8('0x195a'),_0x95cf6d=_0x4cf2bc['p']+_0x4376d8('0x26f5');_0x39c017[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x20e0'),_0x4376d8('0x87c'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),_0x4376d8('0x103e')];function _0x39c017(_0x1e6622,_0x15e83e,_0x21ad89,_0x2edaff,_0x3425f2,_0x50649a,_0x1b7699,_0x29d754,_0x123bb7,_0x1c7aa3,_0x28d9e2,_0x1f0192,_0x9231d2,_0x1d3243){const _0x358b6f=_0x4376d8,_0x5085be=this;_0x5085be[_0x358b6f('0x197c')]=_0x28d9e2['getCurrentUser'](),_0x5085be[_0x358b6f('0x73e')]=[],_0x5085be[_0x358b6f('0x1aeb')]=_0x9231d2,_0x5085be[_0x358b6f('0x1d11')]=_0x1f0192,_0x5085be[_0x358b6f('0x103e')]=_0x1d3243,_0x5085be[_0x358b6f('0x6ee')]={},_0x5085be[_0x358b6f('0x1572')]=_0x5085be['setting']&&_0x5085be['setting'][_0x358b6f('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x5085be[_0x358b6f('0x24d3')]='JSCRIPTY.EDIT_PROJECT',_0x5085be[_0x358b6f('0x87c')]=angular[_0x358b6f('0x14e5')](_0x123bb7),_0x5085be[_0x358b6f('0x20e0')]=_0x29d754,_0x5085be[_0x358b6f('0x11d6')]=![];!_0x5085be[_0x358b6f('0x87c')]&&(_0x5085be[_0x358b6f('0x87c')]={'enableUncompleteSave':!![],'sendUnpauseOnSubmit':!![]},_0x5085be[_0x358b6f('0x24d3')]='JSCRIPTY.NEW_PROJECT',_0x5085be[_0x358b6f('0x11d6')]=!![]);_0x5085be[_0x358b6f('0x3df')]=_0x59716c,_0x5085be[_0x358b6f('0xdcc')]=_0x2dee70,_0x5085be[_0x358b6f('0x1b8')]=_0x563ddf,_0x5085be[_0x358b6f('0x1300')]=_0x21bab1,_0x5085be[_0x358b6f('0x136e')]=_0x3d728b;function _0x59716c(){const _0x776d50=_0x358b6f;_0x5085be['errors']=[],_0x1c7aa3['jscriptyProject'][_0x776d50('0x2439')](_0x5085be[_0x776d50('0x87c')])[_0x776d50('0x1af5')]['then'](function(_0x3381be){const _0x5a50a0=_0x776d50;_0x5085be[_0x5a50a0('0x20e0')][_0x5a50a0('0x1893')](_0x3381be[_0x5a50a0('0x16b2')]()),_0x1b7699[_0x5a50a0('0x130d')]({'title':'Project\x20properly\x20created','msg':_0x5085be[_0x5a50a0('0x87c')]['name']?_0x5085be[_0x5a50a0('0x87c')]['name']+_0x5a50a0('0x15a'):''}),_0x3d728b(_0x3381be);})['catch'](function(_0x2f85ea){const _0x580faa=_0x776d50;if(_0x2f85ea[_0x580faa('0x1457')]&&_0x2f85ea[_0x580faa('0x1457')]['errors']&&_0x2f85ea[_0x580faa('0x1457')]['errors'][_0x580faa('0x1f73')]){_0x5085be['errors']=_0x2f85ea[_0x580faa('0x1457')][_0x580faa('0x73e')]||[{'message':_0x2f85ea[_0x580faa('0x9b6')](),'type':_0x580faa('0x51f')}];for(let _0x52d8a0=0x0;_0x52d8a0<_0x2f85ea['data'][_0x580faa('0x73e')][_0x580faa('0x1f73')];_0x52d8a0+=0x1){_0x1b7699[_0x580faa('0x1db9')]({'title':_0x2f85ea[_0x580faa('0x1457')]['errors'][_0x52d8a0][_0x580faa('0x412')],'msg':_0x2f85ea[_0x580faa('0x1457')][_0x580faa('0x73e')][_0x52d8a0]['message']});}}else _0x1b7699[_0x580faa('0x1db9')]({'title':_0x2f85ea[_0x580faa('0x11c5')]?_0x580faa('0x14f7')+_0x2f85ea[_0x580faa('0x11c5')]+_0x580faa('0x16e4')+_0x2f85ea['statusText']:_0x580faa('0x51f'),'msg':_0x2f85ea[_0x580faa('0x1457')]?JSON[_0x580faa('0x678')](_0x2f85ea[_0x580faa('0x1457')][_0x580faa('0x1603')]):_0x2f85ea[_0x580faa('0x9b6')]()});});}function _0x2dee70(){const _0x29a32e=_0x358b6f;_0x5085be[_0x29a32e('0x73e')]=[],_0x1c7aa3[_0x29a32e('0x12fb')]['update']({'id':_0x5085be[_0x29a32e('0x87c')]['id']},_0x5085be[_0x29a32e('0x87c')])[_0x29a32e('0x1af5')][_0x29a32e('0x17e7')](function(_0xcd3b3d){const _0xafbced=_0x29a32e,_0x167e07=_0x49cbdd()[_0xafbced('0xe8e')](_0x5085be[_0xafbced('0x20e0')],{'id':_0xcd3b3d['id']});_0x167e07&&_0x49cbdd()[_0xafbced('0x1ced')](_0x167e07,_0x49cbdd()[_0xafbced('0x230a')](_0xcd3b3d[_0xafbced('0x16b2')](),_0x49cbdd()[_0xafbced('0x1c0f')](_0x167e07))),_0x1b7699['success']({'title':_0xafbced('0x28cd'),'msg':_0x5085be[_0xafbced('0x87c')]['name']?_0x5085be['project']['name']+'\x20has\x20been\x20saved!':''}),_0x3d728b(_0xcd3b3d);})[_0x29a32e('0x16df')](function(_0x1da8b2){const _0x2a843a=_0x29a32e;if(_0x1da8b2[_0x2a843a('0x1457')]&&_0x1da8b2[_0x2a843a('0x1457')][_0x2a843a('0x73e')]&&_0x1da8b2[_0x2a843a('0x1457')][_0x2a843a('0x73e')][_0x2a843a('0x1f73')]){_0x5085be[_0x2a843a('0x73e')]=_0x1da8b2[_0x2a843a('0x1457')]['errors']||[{'message':_0x1da8b2[_0x2a843a('0x9b6')](),'type':_0x2a843a('0x237c')}];for(let _0xc349ea=0x0;_0xc349ea<_0x1da8b2[_0x2a843a('0x1457')][_0x2a843a('0x73e')]['length'];_0xc349ea++){_0x1b7699[_0x2a843a('0x1db9')]({'title':_0x1da8b2[_0x2a843a('0x1457')][_0x2a843a('0x73e')][_0xc349ea][_0x2a843a('0x412')],'msg':_0x1da8b2['data']['errors'][_0xc349ea][_0x2a843a('0x1603')]});}}else _0x1b7699[_0x2a843a('0x1db9')]({'title':_0x1da8b2[_0x2a843a('0x11c5')]?_0x2a843a('0x14f7')+_0x1da8b2['status']+_0x2a843a('0x16e4')+_0x1da8b2[_0x2a843a('0x1833')]:_0x2a843a('0x237c'),'msg':_0x1da8b2['data']?JSON[_0x2a843a('0x678')](_0x1da8b2[_0x2a843a('0x1457')][_0x2a843a('0x1603')]):_0x1da8b2[_0x2a843a('0x9b6')]()});});}function _0x563ddf(_0x296f60){const _0x59675c=_0x358b6f;_0x5085be['errors']=[];const _0x58da11=_0x2edaff['confirm']()['title'](_0x59675c('0x530'))[_0x59675c('0xd5')](_0x59675c('0x2624'))[_0x59675c('0x2095')](_0x59675c('0x1349'))['ok']('Delete')[_0x59675c('0x1d47')](_0x59675c('0x1b70'))[_0x59675c('0x104f')](_0x296f60);_0x2edaff[_0x59675c('0x28e2')](_0x58da11)['then'](function(){const _0x4bda8a=_0x59675c;_0x1c7aa3[_0x4bda8a('0x12fb')][_0x4bda8a('0x1da6')]({'id':_0x5085be['project']['id']})[_0x4bda8a('0x1af5')][_0x4bda8a('0x17e7')](function(){const _0x5eaff7=_0x4bda8a;_0x49cbdd()[_0x5eaff7('0x5f3')](_0x5085be[_0x5eaff7('0x20e0')],{'id':_0x5085be[_0x5eaff7('0x87c')]['id']}),_0x1b7699[_0x5eaff7('0x130d')]({'title':_0x5eaff7('0x277c'),'msg':(_0x5085be[_0x5eaff7('0x87c')][_0x5eaff7('0x2aa')]||'project')+_0x5eaff7('0x149f')}),_0x3d728b(_0x5085be[_0x5eaff7('0x87c')]);})[_0x4bda8a('0x16df')](function(_0x1dff43){const _0xfd0c8c=_0x4bda8a;if(_0x1dff43[_0xfd0c8c('0x1457')]&&_0x1dff43[_0xfd0c8c('0x1457')][_0xfd0c8c('0x73e')]&&_0x1dff43[_0xfd0c8c('0x1457')]['errors']['length']){_0x5085be[_0xfd0c8c('0x73e')]=_0x1dff43[_0xfd0c8c('0x1457')]['errors']||[{'message':_0x1dff43['toString'](),'type':_0xfd0c8c('0x15da')}];for(let _0x592d06=0x0;_0x592d06<_0x1dff43['data']['errors'][_0xfd0c8c('0x1f73')];_0x592d06++){_0x1b7699['error']({'title':_0x1dff43['data']['errors'][_0x592d06][_0xfd0c8c('0x412')],'msg':_0x1dff43[_0xfd0c8c('0x1457')][_0xfd0c8c('0x73e')][_0x592d06]['message']});}}else _0x1b7699[_0xfd0c8c('0x1db9')]({'title':_0x1dff43['status']?'API:'+_0x1dff43[_0xfd0c8c('0x11c5')]+_0xfd0c8c('0x16e4')+_0x1dff43['statusText']:_0xfd0c8c('0x15da'),'msg':_0x1dff43[_0xfd0c8c('0x1457')]?JSON[_0xfd0c8c('0x678')](_0x1dff43[_0xfd0c8c('0x1457')][_0xfd0c8c('0x1603')]):_0x1dff43['message']||_0x1dff43['toString']()});});},function(){});}function _0x21bab1(_0x353115){return _0x353115===null?undefined:new Date(_0x353115);}function _0x3d728b(_0x43d7fe){const _0x3c71f7=_0x358b6f;_0x2edaff[_0x3c71f7('0x212a')](_0x43d7fe);}}const _0x22af34=_0x39c017;_0x1af06f[_0x4376d8('0x1b9c')]=['$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x198f'),'api',_0x4376d8('0x108a'),_0x4376d8('0x19be')];function _0x1af06f(_0x361e21,_0x437818,_0x92ff6d,_0x2d397d,_0x36a895,_0x54b938){const _0xf4e751=_0x4376d8,_0x43b7a6=this;_0x43b7a6[_0xf4e751('0x87c')]={},_0x43b7a6[_0xf4e751('0x1a1')]=_0x54b938;const _0x50c589=new Date();_0x50c589['setHours'](0x0,0x0,0x0,0x0),_0x43b7a6[_0xf4e751('0x148a')]={'dateStart':new Date(_0x50c589[_0xf4e751('0x226a')](),_0x50c589[_0xf4e751('0x10')](),0x1),'dateEnd':new Date(_0x50c589['getFullYear'](),_0x50c589[_0xf4e751('0x10')]()+0x1,0x0),'selectedTemplate':'TM'},_0x43b7a6['init']=_0x66e45d,_0x43b7a6['getSummary']=_0x9e8d61,_0x43b7a6[_0xf4e751('0x1805')]=_0x367b71;function _0x367b71(){const _0x2a455f=_0xf4e751;return _0x43b7a6[_0x2a455f('0x230')]=![],_0x2d397d[_0x2a455f('0x12fb')][_0x2a455f('0x1805')]({'id':_0x43b7a6['project']['id'],'sort':_0x2a455f('0xaba'),'createdAt':{'$gte':_0x107a13()(_0x43b7a6[_0x2a455f('0x148a')][_0x2a455f('0x24ce')])['add'](0x0,_0x2a455f('0x130b'))['add'](0x0,_0x2a455f('0x1abd'))['add'](0x0,_0x2a455f('0x2415'))[_0x2a455f('0x1376')](0x0,!![])[_0x2a455f('0x1c0d')](),'$lte':_0x107a13()(_0x43b7a6[_0x2a455f('0x148a')][_0x2a455f('0xaf7')])[_0x2a455f('0xd62')](0x17,'hours')['add'](0x3b,_0x2a455f('0x1abd'))['add'](0x3b,_0x2a455f('0x2415'))['utcOffset'](0x0,!![])[_0x2a455f('0x1c0d')]()},'nolimit':!![]})[_0x2a455f('0x1af5')][_0x2a455f('0x17e7')](function(_0xf60d3f){const _0x19a05c=_0x2a455f;if(_0xf60d3f&&_0xf60d3f['rows']&&typeof _0xf60d3f[_0x19a05c('0x335')]!=='undefined'){_0x43b7a6[_0x19a05c('0xa96')]={};for(let _0x58c1dd=0x0,_0x275c8e=_0xf60d3f[_0x19a05c('0x335')];_0x58c1dd<_0x275c8e;_0x58c1dd++){_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0x1bbe')]&&(_0x43b7a6[_0x19a05c('0x230')]=!![],typeof _0x43b7a6['answers'][_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0x1bbe')]]===_0x19a05c('0xfad')&&(_0x43b7a6['answers'][_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd]['questionId']]={'question':_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0x742')],'answers':{},'sum':0x0}),_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0xdfa')]===''&&(_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0xdfa')]=_0x19a05c('0x110c')),_0x43b7a6[_0x19a05c('0xa96')][_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd]['questionId']]['answers'][_0xf60d3f['rows'][_0x58c1dd]['answer']]?_0x43b7a6[_0x19a05c('0xa96')][_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd]['questionId']][_0x19a05c('0xa96')][_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0xdfa')]]+=0x1:_0x43b7a6[_0x19a05c('0xa96')][_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0x1bbe')]]['answers'][_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0xdfa')]]=0x1,_0x43b7a6['answers'][_0xf60d3f[_0x19a05c('0x2319')][_0x58c1dd][_0x19a05c('0x1bbe')]]['sum']+=0x1);}}})[_0x2a455f('0x16df')](function(_0x58fb7d){const _0x50c188=_0x2a455f;_0x36a895[_0x50c188('0x1db9')]({'title':_0x58fb7d['status']?_0x50c188('0x14f7')+_0x58fb7d[_0x50c188('0x11c5')]+_0x50c188('0x16e4')+_0x58fb7d[_0x50c188('0x1833')]:'SYSTEM:GETANSWERS','msg':_0x58fb7d['data']?JSON[_0x50c188('0x678')](_0x58fb7d[_0x50c188('0x1457')]):_0x58fb7d['toString']()});});}function _0x66e45d(_0x7e468e){_0x43b7a6['project']=_0x7e468e,_0x43b7a6['getAnswers']();}function _0x9e8d61(){const _0x52052d=_0xf4e751;return _0x2d397d['jscriptyProject']['getSummary']({'id':_0x43b7a6[_0x52052d('0x87c')]['id'],'startTime':{'$gte':_0x43b7a6[_0x52052d('0x148a')]['dateStart'],'$lte':_0x107a13()(_0x43b7a6['pickerModel'][_0x52052d('0xaf7')])[_0x52052d('0xd62')](0x17,_0x52052d('0x130b'))[_0x52052d('0xd62')](0x3b,_0x52052d('0x1abd'))[_0x52052d('0xd62')](0x3b,_0x52052d('0x2415'))[_0x52052d('0x1c0d')]()},'nolimit':!![]})[_0x52052d('0x1af5')][_0x52052d('0x17e7')](function(_0x2297cc){const _0x271c57=_0x52052d;if(typeof _0x2297cc['length']!=='undefined'){const _0x4b05be=[_0x2297cc[_0x271c57('0x3ca')]],_0x494319=new Blob(_0x4b05be,{'type':_0x2297cc[_0x271c57('0x412')]}),_0x5f01f9=window[_0x271c57('0x2be')][_0x271c57('0x68d')]('a');_0x5f01f9[_0x271c57('0x224')]('href',URL['createObjectURL'](_0x494319)),_0x5f01f9[_0x271c57('0x224')]('download',_0x271c57('0x80a')+_0x43b7a6['project']['id']+_0x271c57('0x24c8')),_0x5f01f9[_0x271c57('0x20d4')]();}else _0x36a895[_0x271c57('0x1178')]({'title':_0x271c57('0x1f26'),'msg':_0x271c57('0x8c')});})[_0x52052d('0x16df')](function(_0x57f028){const _0x4b807=_0x52052d;_0x36a895[_0x4b807('0x1db9')]({'title':_0x57f028[_0x4b807('0x11c5')]?_0x4b807('0x14f7')+_0x57f028[_0x4b807('0x11c5')]+'\x20-\x20'+_0x57f028[_0x4b807('0x1833')]:_0x4b807('0xb8b'),'msg':_0x57f028[_0x4b807('0x1457')]?JSON['stringify'](_0x57f028[_0x4b807('0x1457')]):_0x57f028[_0x4b807('0x9b6')]()});});}}const _0x1ee870=_0x1af06f;;function _0x4f1871(){const _0x111daf=_0x4376d8,_0x31a9b3=this;_0x31a9b3['project']={},_0x31a9b3[_0x111daf('0x24ab')]={'questionTypes':[_0x111daf('0x132f'),_0x111daf('0x6d3'),'radio',_0x111daf('0xc64'),'select',_0x111daf('0x7b8'),_0x111daf('0xbd4'),_0x111daf('0x4ec'),_0x111daf('0x822'),_0x111daf('0x1e50'),'url'],'elementTypes':[_0x111daf('0x742'),_0x111daf('0x22fb')]},_0x31a9b3[_0x111daf('0x161d')]=_0x502234,_0x31a9b3[_0x111daf('0x1eef')]=_0x383196;function _0x383196(_0x55cf11){const _0x2ce350=_0x111daf;if(_0x49cbdd()[_0x2ce350('0x390')](_0x55cf11))return![];try{JSON[_0x2ce350('0x1f0a')](_0x55cf11);}catch(_0x46775b){return![];}return!![];}function _0x502234(_0x34870a){const _0x562d9d=_0x111daf;_0x31a9b3[_0x562d9d('0x87c')]=_0x34870a;if(_0x49cbdd()[_0x562d9d('0x2285')](_0x34870a[_0x562d9d('0x13ef')]))_0x31a9b3[_0x562d9d('0x87c')][_0x562d9d('0x13ef')]=_0x34870a[_0x562d9d('0x13ef')];else _0x31a9b3[_0x562d9d('0x1eef')](_0x34870a[_0x562d9d('0x13ef')])?_0x31a9b3[_0x562d9d('0x87c')][_0x562d9d('0x13ef')]=JSON[_0x562d9d('0x1f0a')](_0x34870a[_0x562d9d('0x13ef')]):_0x31a9b3[_0x562d9d('0x87c')][_0x562d9d('0x13ef')]={};}}const _0x4901b1=_0x4f1871;_0x260af5[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),_0x4376d8('0xc4c'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x87c'),_0x4376d8('0x20e0'),'$translate'];function _0x260af5(_0x20850d,_0x368ff2,_0x11d7e6,_0x25185e,_0x1e143d,_0x3f0557,_0x2ce546){const _0x20f68b=_0x4376d8,_0x356c3b=this;_0x356c3b[_0x20f68b('0x11d6')]=!![],_0x356c3b[_0x20f68b('0x87c')]=angular[_0x20f68b('0x14e5')](_0x1e143d),_0x356c3b[_0x20f68b('0x20e0')]=_0x3f0557,_0x356c3b[_0x20f68b('0x24d3')]=_0x2ce546[_0x20f68b('0x1acc')](_0x20f68b('0x123b'));_0x1e143d&&_0x1e143d[_0x20f68b('0x2aa')]&&(_0x356c3b['title']+=':\x20'+_0x1e143d[_0x20f68b('0x2aa')]);_0x356c3b[_0x20f68b('0x1348')]=_0x1573e4,_0x356c3b['closeDialog']=_0x11a2df;function _0x1573e4(){const _0x524c9e=_0x20f68b;return _0x25185e[_0x524c9e('0x12fb')][_0x524c9e('0x2080')]({'id':_0x1e143d['id']},_0x356c3b['project'])[_0x524c9e('0x1af5')][_0x524c9e('0x17e7')](function(_0x4a5082){const _0x36a7c2=_0x524c9e;_0x356c3b[_0x36a7c2('0x20e0')]['unshift'](_0x4a5082[_0x36a7c2('0x16b2')]()),_0x11d7e6[_0x36a7c2('0x130d')]({'title':_0x36a7c2('0x248c'),'msg':_0x356c3b[_0x36a7c2('0x87c')][_0x36a7c2('0x2aa')]?_0x356c3b[_0x36a7c2('0x87c')][_0x36a7c2('0x2aa')]+_0x36a7c2('0x22c9'):''}),_0x368ff2['go'](_0x36a7c2('0x2271'),{'id':_0x4a5082['id']}),_0x11a2df(_0x4a5082);})[_0x524c9e('0x16df')](function(_0x216020){const _0x10e81c=_0x524c9e;if(_0x216020[_0x10e81c('0x1457')]&&_0x216020[_0x10e81c('0x1457')][_0x10e81c('0x73e')]&&_0x216020[_0x10e81c('0x1457')][_0x10e81c('0x73e')][_0x10e81c('0x1f73')]){_0x356c3b[_0x10e81c('0x73e')]=_0x216020[_0x10e81c('0x1457')][_0x10e81c('0x73e')]||[{'message':_0x216020['toString'](),'type':_0x10e81c('0x1df9')}];for(let _0x79a24e=0x0;_0x79a24e<_0x216020['data'][_0x10e81c('0x73e')][_0x10e81c('0x1f73')];_0x79a24e+=0x1){_0x11d7e6[_0x10e81c('0x1db9')]({'title':_0x216020[_0x10e81c('0x1457')][_0x10e81c('0x73e')][_0x79a24e][_0x10e81c('0x412')],'msg':_0x216020['data'][_0x10e81c('0x73e')][_0x79a24e]['message']});}}else _0x11d7e6[_0x10e81c('0x1db9')]({'title':_0x216020[_0x10e81c('0x11c5')]?_0x10e81c('0x14f7')+_0x216020[_0x10e81c('0x11c5')]+_0x10e81c('0x16e4')+_0x216020[_0x10e81c('0x1833')]:'api.jscriptyProject.clone','msg':_0x216020[_0x10e81c('0x1457')]?JSON[_0x10e81c('0x678')](_0x216020[_0x10e81c('0x1457')]['message']):_0x216020[_0x10e81c('0x9b6')]()});});}function _0x11a2df(_0x430f79){const _0x1a365e=_0x20f68b;_0x20850d[_0x1a365e('0x212a')](_0x430f79);}}const _0x22652b=_0x260af5;_0x1aadb8[_0x4376d8('0x1b9c')]=['$q',_0x4376d8('0x14f6'),_0x4376d8('0x668')];function _0x1aadb8(_0x13856c,_0x26ca68,_0xcf1632){const _0x534ce6=_0x4376d8,_0x334598=this;_0x334598['project']={},_0x334598[_0x534ce6('0x95e')]={},_0x334598[_0x534ce6('0x23e9')]={},_0x334598[_0x534ce6('0x161d')]=_0xcc31c5,_0x334598[_0x534ce6('0x1ec6')]=_0x308bbc,_0x334598[_0x534ce6('0x10a2')]=_0x1932b8;function _0xcc31c5(_0x432c26){const _0x1e0489=_0x534ce6;_0x334598[_0x1e0489('0x87c')]=_0x432c26,_0xcf1632[_0x1e0489('0x207c')]('mwForm.pageEvents.pageCurrentChanged',function(_0x315c03,_0x8da9e1){const _0x320a2a=_0x1e0489;if(_0x8da9e1[_0x320a2a('0x1626')]&&_0x334598[_0x320a2a('0x87c')][_0x320a2a('0x13ef')]&&_0x334598['project']['formData'][_0x320a2a('0x1695')])for(let _0x502011=0x0,_0x4dd855=_0x334598[_0x320a2a('0x87c')][_0x320a2a('0x13ef')]['pages']['length'];_0x502011<_0x4dd855;_0x502011++){if(_0x8da9e1[_0x320a2a('0x1626')][_0x320a2a('0x7b8')]<_0x502011+0x1&&_0x334598[_0x320a2a('0x87c')][_0x320a2a('0x13ef')][_0x320a2a('0x1695')][_0x502011][_0x320a2a('0x174f')])for(let _0x1f74f0=0x0,_0x59db9c=_0x334598[_0x320a2a('0x87c')][_0x320a2a('0x13ef')][_0x320a2a('0x1695')][_0x502011]['elements'][_0x320a2a('0x1f73')];_0x1f74f0<_0x59db9c;_0x1f74f0++){_0x334598['project'][_0x320a2a('0x13ef')][_0x320a2a('0x1695')][_0x502011]['elements'][_0x1f74f0][_0x320a2a('0x412')]===_0x320a2a('0x742')&&_0x334598[_0x320a2a('0x87c')]['formData'][_0x320a2a('0x1695')][_0x502011][_0x320a2a('0x174f')][_0x1f74f0][_0x320a2a('0x742')]&&delete _0x334598['responseData'][_0x334598[_0x320a2a('0x87c')][_0x320a2a('0x13ef')][_0x320a2a('0x1695')][_0x502011]['elements'][_0x1f74f0][_0x320a2a('0x742')]['id']];}}});}function _0x308bbc(_0xb94307){const _0x30b5c7=_0x534ce6,_0x255a1d=_0x13856c[_0x30b5c7('0x113c')](),_0x1d3136=_0x26ca68[_0x30b5c7('0x1121')]()[_0x30b5c7('0x24d3')]('Would\x20you\x20like\x20to\x20save\x20your\x20survey?')[_0x30b5c7('0x18c5')]('')[_0x30b5c7('0x2095')](_0x30b5c7('0x1612'))[_0x30b5c7('0x104f')](_0xb94307)['ok']('SAVE')[_0x30b5c7('0x1d47')](_0x30b5c7('0x28a0'));return _0x26ca68['show'](_0x1d3136)[_0x30b5c7('0x17e7')](function(){const _0x174d0a=_0x30b5c7;_0x255a1d[_0x174d0a('0x898')](!![]);},function(){const _0x33e578=_0x30b5c7;_0x255a1d[_0x33e578('0x1ad1')]();}),_0x255a1d[_0x30b5c7('0x1691')];}function _0x1932b8(){const _0x190f4c=_0x534ce6;_0x334598[_0x190f4c('0x23e9')]['reset']&&_0x334598[_0x190f4c('0x23e9')][_0x190f4c('0x2a9')]();}}const _0x5395db=_0x1aadb8,_0x579d66=_0x4cf2bc['p']+_0x4376d8('0x88b');_0x1cc1b1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$q',_0x4376d8('0x28da'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x1cc1b1(_0x3d748a,_0x140402,_0x8ad1af,_0x3ac3cf,_0x8fcd20,_0x538d46,_0x43e2e7,_0x55ea13,_0x3e7be0,_0x28424b,_0x230338){const _0x38538a=_0x4376d8,_0x2a6d86=this;_0x2a6d86[_0x38538a('0x197c')]=_0x230338[_0x38538a('0x2831')](),_0x2a6d86[_0x38538a('0x87c')]={},_0x2a6d86[_0x38538a('0x1f38')]={'count':0x0,'rows':[]},_0x2a6d86[_0x38538a('0x1d25')]=[],_0x2a6d86[_0x38538a('0x103e')],_0x2a6d86[_0x38538a('0x826')]={'fields':_0x38538a('0xaf4'),'sort':_0x38538a('0xb9f'),'limit':0xa,'page':0x1},_0x2a6d86[_0x38538a('0x161d')]=_0x4dc22b,_0x2a6d86['deleteConfirm']=_0x230fe6,_0x2a6d86[_0x38538a('0x130d')]=_0x16d4b1,_0x2a6d86[_0x38538a('0x15fc')]=_0x3a75ac,_0x2a6d86[_0x38538a('0x1e80')]=_0x451c9d,_0x2a6d86['showQuestionsProjectSession']=_0x1b60a1,_0x2a6d86[_0x38538a('0x2675')]=_0x115ca7,_0x2a6d86[_0x38538a('0x26b7')]=_0x220c13,_0x2a6d86[_0x38538a('0x170c')]=_0x151abf;function _0x4dc22b(_0x418856,_0x334b13){const _0x7fb2a7=_0x38538a;_0x2a6d86[_0x7fb2a7('0x87c')]=_0x418856,_0x2a6d86[_0x7fb2a7('0x103e')]=typeof _0x334b13!==_0x7fb2a7('0xfad')?_0x334b13:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x2a6d86['query']['id']=_0x2a6d86[_0x7fb2a7('0x87c')]['id'],_0x3a75ac();}function _0x230fe6(_0x572eca,_0x58491c){const _0x1dcaef=_0x38538a,_0x387c0a=_0x43e2e7[_0x1dcaef('0x1121')]()[_0x1dcaef('0x24d3')](_0x1dcaef('0x240'))[_0x1dcaef('0x211f')](_0x1dcaef('0xa53')+(_0x572eca[_0x1dcaef('0x2aa')]||_0x572eca['id']&&_0x49cbdd()[_0x1dcaef('0x233c')](_0x1dcaef('0x280d'))+_0x572eca['id']||_0x1dcaef('0xd41'))+_0x1dcaef('0x1d23')+_0x1dcaef('0xe9f'))[_0x1dcaef('0x2095')](_0x1dcaef('0x2189'))[_0x1dcaef('0x104f')](_0x58491c)['ok']('OK')[_0x1dcaef('0x1d47')]('CANCEL');_0x43e2e7[_0x1dcaef('0x28e2')](_0x387c0a)[_0x1dcaef('0x17e7')](function(){_0x220c13(_0x572eca);},function(){const _0x13b074=_0x1dcaef;console[_0x13b074('0x1d63')](_0x13b074('0x28a0'));});}function _0x16d4b1(_0x502ec5){const _0x377774=_0x38538a;_0x2a6d86[_0x377774('0x1f38')]=_0x502ec5||{'count':0x0,'rows':[]};}function _0x3a75ac(){const _0x3ac975=_0x38538a;_0x2a6d86[_0x3ac975('0x826')][_0x3ac975('0xf19')]=(_0x2a6d86['query'][_0x3ac975('0x115a')]-0x1)*_0x2a6d86[_0x3ac975('0x826')]['limit'],_0x2a6d86[_0x3ac975('0x1691')]=_0x28424b['jscriptyProject'][_0x3ac975('0xf4c')](_0x2a6d86[_0x3ac975('0x826')],_0x16d4b1)['$promise'];}function _0x451c9d(_0x23f32b,_0x236d80){const _0x1a58b5=_0x38538a;_0x43e2e7[_0x1a58b5('0x28e2')]({'controller':_0x1a58b5('0xa38'),'controllerAs':'vm','templateUrl':_0x579d66,'parent':angular['element'](_0x55ea13['body']),'targetEvent':_0x23f32b,'clickOutsideToClose':!![],'locals':{'project':_0x2a6d86['project'],'session':_0x236d80,'sessions':_0x2a6d86[_0x1a58b5('0x1f38')][_0x1a58b5('0x2319')],'license':null,'setting':null,'crudPermissions':_0x2a6d86[_0x1a58b5('0x103e')]}});}function _0x1b60a1(_0x20abd6,_0x4a7ddf){const _0x4cf64c=_0x38538a;_0x43e2e7['show']({'controller':_0x4cf64c('0x1cba'),'controllerAs':'vm','templateUrl':_0x579d66,'parent':angular['element'](_0x55ea13[_0x4cf64c('0x13aa')]),'targetEvent':_0x20abd6,'clickOutsideToClose':!![],'resolve':{'questions':[_0x4cf64c('0x177'),function(_0x256bcc){const _0x17a6fe=_0x4cf64c;return _0x256bcc['resolve'](_0x17a6fe('0xa7b'),{'fields':_0x17a6fe('0x23b'),'sort':'id','id':_0x4a7ddf['id']});}]},'locals':{'project':_0x2a6d86['project'],'session':_0x4a7ddf}});}function _0x220c13(_0x368af9){const _0x4a72a5=_0x38538a;_0x28424b['jscriptySessionReport'][_0x4a72a5('0x1da6')]({'id':_0x368af9['id']})[_0x4a72a5('0x1af5')][_0x4a72a5('0x17e7')](function(){const _0x1982e0=_0x4a72a5;_0x49cbdd()['remove'](_0x2a6d86[_0x1982e0('0x1f38')][_0x1982e0('0x2319')],{'id':_0x368af9['id']}),_0x2a6d86['projectSessions'][_0x1982e0('0x335')]-=0x1,!_0x2a6d86[_0x1982e0('0x1f38')]['rows'][_0x1982e0('0x1f73')]&&_0x3a75ac(),_0x3e7be0[_0x1982e0('0x130d')]({'title':'Session\x20deleted!','msg':_0x368af9['name']?_0x368af9[_0x1982e0('0x2aa')]+_0x1982e0('0x149f'):''});})['catch'](function(_0x32b391){const _0x324730=_0x4a72a5;if(_0x32b391[_0x324730('0x1457')]&&_0x32b391[_0x324730('0x1457')][_0x324730('0x73e')]&&_0x32b391['data']['errors']['length']){_0x2a6d86[_0x324730('0x73e')]=_0x32b391[_0x324730('0x1457')][_0x324730('0x73e')]||[{'message':_0x32b391[_0x324730('0x9b6')](),'type':_0x324730('0x8f0')}];for(let _0x39d045=0x0;_0x39d045<_0x32b391[_0x324730('0x1457')][_0x324730('0x73e')][_0x324730('0x1f73')];_0x39d045++){_0x3e7be0[_0x324730('0x1db9')]({'title':_0x32b391[_0x324730('0x1457')][_0x324730('0x73e')][_0x39d045]['type'],'msg':_0x32b391[_0x324730('0x1457')]['errors'][_0x39d045][_0x324730('0x1603')]});}}else _0x3e7be0[_0x324730('0x1db9')]({'title':_0x32b391[_0x324730('0x11c5')]?_0x324730('0x14f7')+_0x32b391['status']+'\x20-\x20'+_0x32b391[_0x324730('0x1833')]:_0x324730('0x8f0'),'msg':_0x32b391[_0x324730('0x1457')]?JSON['stringify'](_0x32b391[_0x324730('0x1457')][_0x324730('0x1603')]):_0x32b391['message']||_0x32b391[_0x324730('0x9b6')]()});});}function _0x115ca7(){const _0x43d344=_0x38538a,_0x475f7f=angular[_0x43d344('0x14e5')](_0x2a6d86[_0x43d344('0x1d25')]);return _0x2a6d86[_0x43d344('0x1d25')]=[],_0x475f7f;}function _0x151abf(_0x400acc){const _0x4ac847=_0x38538a,_0x43fe2f=_0x43e2e7[_0x4ac847('0x1121')]()[_0x4ac847('0x24d3')](_0x4ac847('0x5e7'))[_0x4ac847('0x211f')](_0x4ac847('0xa53')+_0x2a6d86[_0x4ac847('0x1d25')]['length']+_0x4ac847('0x145a')+'\x20will\x20be\x20deleted.')[_0x4ac847('0x2095')](_0x4ac847('0x1d3a'))[_0x4ac847('0x104f')](_0x400acc)['ok']('OK')[_0x4ac847('0x1d47')]('CANCEL');_0x43e2e7[_0x4ac847('0x28e2')](_0x43fe2f)[_0x4ac847('0x17e7')](function(){const _0x313f6d=_0x4ac847;_0x2a6d86[_0x313f6d('0x1d25')]['forEach'](function(_0x4c5c7e){_0x220c13(_0x4c5c7e);}),_0x2a6d86['selectedProjectSessions']=[];});}let _0x2458fb=!![],_0x491116=0x1;_0x140402['$watch'](_0x38538a('0x4c3'),function(_0x368087,_0x2f6f81){const _0x19a540=_0x38538a;_0x2458fb?_0x538d46(function(){_0x2458fb=![];}):(!_0x2f6f81&&(_0x491116=_0x2a6d86[_0x19a540('0x826')][_0x19a540('0x115a')]),_0x368087!==_0x2f6f81&&(_0x2a6d86[_0x19a540('0x826')][_0x19a540('0x115a')]=0x1),!_0x368087&&(_0x2a6d86[_0x19a540('0x826')]['page']=_0x491116),_0x3a75ac());});}const _0x370692=_0x1cc1b1;_0x173def[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0xd41'),'questions',_0x4376d8('0x87c')];function _0x173def(_0x10b9c7,_0x4cb4f1,_0x4201cd,_0x3b3905,_0x37093c,_0x4a5a76,_0x3818e1,_0x5e59e4){const _0x20ea1c=_0x4376d8,_0x1cca5b=this;_0x1cca5b[_0x20ea1c('0x24d3')]=_0x20ea1c('0x6c9'),_0x1cca5b[_0x20ea1c('0xd41')]=_0x4a5a76,_0x1cca5b[_0x20ea1c('0x2597')]=_0x3818e1,_0x1cca5b[_0x20ea1c('0x87c')]=_0x5e59e4;function _0x5185d3(_0x1440cd){const _0x419f2b=_0x20ea1c;_0x3b3905[_0x419f2b('0x212a')](_0x1440cd);}_0x1cca5b[_0x20ea1c('0x136e')]=_0x5185d3;}const _0x327816=_0x173def,_0x2e024f=_0x4cf2bc['p']+_0x4376d8('0x861');_0x1851f9[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting',_0x4376d8('0x212e'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x87c'),_0x4376d8('0x383')];function _0x1851f9(_0x5ee8cd,_0xda4f94,_0x670daf,_0x5ea851,_0x4b3be0,_0xd0c538,_0x1d2304,_0x2325c0,_0x3e4d91,_0x48a9d7,_0x5801c5,_0x384839){const _0x8c9a19=_0x4376d8,_0x54c52c=this;_0x54c52c[_0x8c9a19('0x197c')]=_0x48a9d7[_0x8c9a19('0x2831')](),_0x54c52c['license']=_0xd0c538,_0x54c52c['setting']=_0x1d2304,_0x54c52c['passwordPattern']=_0x54c52c['setting'][_0x8c9a19('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x54c52c[_0x8c9a19('0xaed')]=_0xda4f94[_0x8c9a19('0x14fe')]()+'://'+_0xda4f94[_0x8c9a19('0x108')](),_0x54c52c[_0x8c9a19('0x87c')]=_0x5801c5||_0x5ee8cd[_0x8c9a19('0x16fb')]['project']||{},_0x54c52c['userProfileSection']=_0x384839&&_0x384839[_0x8c9a19('0x335')]==0x1?_0x384839[_0x8c9a19('0x2319')][0x0]:null,_0x54c52c[_0x8c9a19('0x103e')]=_0x48a9d7[_0x8c9a19('0x17a9')](_0x54c52c[_0x8c9a19('0x383')]?_0x54c52c['userProfileSection']['crudPermissions']:null),_0x54c52c['hasModulePermissions']={},_0x54c52c['selectedTab']=_0x5ee8cd[_0x8c9a19('0x16fb')][_0x8c9a19('0x1523')]||0x0,_0x54c52c[_0x8c9a19('0x1459')]=_0x474a85,_0x54c52c[_0x8c9a19('0x99f')]=_0x3e4d91[_0x8c9a19('0x1178')],_0x54c52c[_0x8c9a19('0x27c1')]=_0x217502,_0x54c52c[_0x8c9a19('0xdcc')]=_0x5a6d1b;function _0x474a85(_0x45f1df,_0x1b8284){const _0x24948c=_0x8c9a19;_0x670daf[_0x24948c('0x28e2')]({'controller':_0x24948c('0xad0'),'controllerAs':'vm','templateUrl':_0x2e024f,'parent':angular[_0x24948c('0x1ce1')](_0x5ea851[_0x24948c('0x13aa')]),'targetEvent':_0x1b8284,'clickOutsideToClose':!![],'locals':{'project':_0x45f1df,'projects':_0x54c52c['projects']?_0x54c52c['projects'][_0x24948c('0x2319')]:[],'crudPermissions':_0x54c52c[_0x24948c('0x103e')]}});}function _0x217502(){_0x5ee8cd['go']('app.jscripty.projects',{},{'reload':'app.jscripty.projects'});}function _0x5a6d1b(){const _0x3c4299=_0x8c9a19;_0x2325c0[_0x3c4299('0x12fb')][_0x3c4299('0x27ba')]({'id':_0x54c52c[_0x3c4299('0x87c')]['id']},_0x54c52c[_0x3c4299('0x87c')])[_0x3c4299('0x1af5')][_0x3c4299('0x17e7')](function(){const _0x50f1a0=_0x3c4299;_0x3e4d91[_0x50f1a0('0x130d')]({'title':_0x50f1a0('0x251'),'msg':_0x54c52c['project'][_0x50f1a0('0x2aa')]?_0x54c52c[_0x50f1a0('0x87c')][_0x50f1a0('0x2aa')]+_0x50f1a0('0x12b0'):''});})[_0x3c4299('0x16df')](function(_0x4f1418){const _0x13ee72=_0x3c4299;_0x3e4d91[_0x13ee72('0x1db9')]({'title':_0x4f1418[_0x13ee72('0x11c5')]?_0x13ee72('0x14f7')+_0x4f1418[_0x13ee72('0x11c5')]+_0x13ee72('0x16e4')+_0x4f1418[_0x13ee72('0x1833')]:_0x13ee72('0x8f0'),'msg':_0x4f1418[_0x13ee72('0x1457')]?JSON['stringify'](_0x4f1418[_0x13ee72('0x1457')]):_0x4f1418['toString']()});});}}const _0xaa63ee=_0x1851f9,_0x4d5f63=_0x4cf2bc['p']+_0x4376d8('0x58a');_0x41cb6b['$inject']=[_0x4376d8('0x668'),'$window','$state',_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x20e0'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),'msUtils',_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),_0x4376d8('0x1aeb')];function _0x41cb6b(_0x1f4098,_0x190fed,_0x4cd759,_0x3c838f,_0x34c67a,_0x53cc54,_0x10773a,_0x2f97a5,_0x593b61,_0x247c2f,_0x17931f,_0x449454,_0x251502,_0x511647,_0x1fcc35,_0x2afbc6,_0x2fa0d3){const _0x22159c=_0x4376d8,_0x32a9c3=this;_0x32a9c3[_0x22159c('0x1d11')]=_0x2afbc6,_0x32a9c3[_0x22159c('0x1aeb')]=_0x2fa0d3,_0x32a9c3['currentUser']=_0x1fcc35['getCurrentUser'](),_0x32a9c3['projects']=_0x593b61||{'count':0x0,'rows':[]},_0x32a9c3[_0x22159c('0xdeb')]=_0x247c2f,_0x32a9c3[_0x22159c('0x383')]=_0x17931f&&_0x17931f[_0x22159c('0x335')]==0x1?_0x17931f[_0x22159c('0x2319')][0x0]:null,_0x32a9c3['crudPermissions']=_0x1fcc35[_0x22159c('0x17a9')](_0x32a9c3['userProfileSection']?_0x32a9c3[_0x22159c('0x383')][_0x22159c('0x103e')]:null),_0x32a9c3[_0x22159c('0x23c3')]='projects',_0x32a9c3[_0x22159c('0x26a1')]='',_0x32a9c3[_0x22159c('0x24e1')]=null,_0x32a9c3[_0x22159c('0x1bb9')]=[],_0x32a9c3[_0x22159c('0x826')]={'fields':_0x22159c('0xe4f'),'sort':_0x22159c('0x1ac6'),'limit':0xa,'page':0x1},_0x32a9c3[_0x22159c('0xcd4')]=_0xf956fe,_0x32a9c3[_0x22159c('0x1459')]=_0x4ebb54,_0x32a9c3[_0x22159c('0x18f5')]=_0x58aa71,_0x32a9c3['deleteconfirm']=_0x1c6587,_0x32a9c3[_0x22159c('0x130d')]=_0x342c9f,_0x32a9c3[_0x22159c('0x131b')]=_0x1329df,_0x32a9c3[_0x22159c('0x74c')]=_0x9a9a1e,_0x32a9c3[_0x22159c('0x1b8')]=_0x325233,_0x32a9c3[_0x22159c('0x17c9')]=_0x2593d9,_0x32a9c3['deleteSelectedProjects']=_0x196330,_0x32a9c3['deselectProjects']=_0x1768f5,_0x32a9c3['selectAllProjects']=_0x260a73;function _0xf956fe(_0x2c16cd){const _0x3849c0=_0x22159c;_0x4cd759['go'](_0x3849c0('0x2271'),{'id':_0x2c16cd['id'],'project':_0x2c16cd,'crudPermissions':_0x32a9c3[_0x3849c0('0x103e')]});}function _0x4ebb54(_0x3c7259,_0x997040){const _0xbfe51c=_0x22159c;_0x34c67a[_0xbfe51c('0x28e2')]({'controller':_0xbfe51c('0xad0'),'controllerAs':'vm','templateUrl':_0x2e024f,'parent':angular[_0xbfe51c('0x1ce1')](_0x53cc54[_0xbfe51c('0x13aa')]),'targetEvent':_0x997040,'clickOutsideToClose':!![],'locals':{'project':_0x3c7259,'projects':_0x32a9c3[_0xbfe51c('0x20e0')]?_0x32a9c3[_0xbfe51c('0x20e0')][_0xbfe51c('0x2319')]:[],'crudPermissions':_0x32a9c3[_0xbfe51c('0x103e')]}});}function _0x58aa71(_0xb28208){const _0x14410f=_0x22159c;_0x4cd759['go'](_0x14410f('0x2271'),{'id':_0xb28208['id'],'tab':0x3});}function _0x1c6587(_0x385d43,_0x321760){const _0x2647df=_0x22159c,_0x13af16=_0x34c67a['confirm']()[_0x2647df('0x24d3')](_0x2647df('0x5e1')+_0x49cbdd()[_0x2647df('0x1c98')](_0x2647df('0x87c'))+'?')['htmlContent'](_0x2647df('0xa53')+(_0x385d43[_0x2647df('0x2aa')]||_0x2647df('0x87c'))+_0x2647df('0x1d23')+_0x2647df('0xe9f'))['ariaLabel'](_0x2647df('0x2559'))[_0x2647df('0x104f')](_0x321760)['ok']('OK')[_0x2647df('0x1d47')](_0x2647df('0x28a0'));_0x34c67a[_0x2647df('0x28e2')](_0x13af16)[_0x2647df('0x17e7')](function(){_0x325233(_0x385d43);},function(){const _0x51c3cb=_0x2647df;console[_0x51c3cb('0x1d63')]('CANCEL');});}let _0x107992=!![],_0x2e11a6=0x1;_0x1f4098[_0x22159c('0x620')](_0x22159c('0x3ed'),function(_0x3ccbf3,_0x22ab46){const _0x374ea2=_0x22159c;_0x107992?_0x10773a(function(){_0x107992=![];}):(!_0x22ab46&&(_0x2e11a6=_0x32a9c3['query'][_0x374ea2('0x115a')]),_0x3ccbf3!==_0x22ab46&&(_0x32a9c3[_0x374ea2('0x826')][_0x374ea2('0x115a')]=0x1),!_0x3ccbf3&&(_0x32a9c3[_0x374ea2('0x826')][_0x374ea2('0x115a')]=_0x2e11a6),_0x32a9c3[_0x374ea2('0x131b')]());});function _0x342c9f(_0x11709c){const _0x12fd93=_0x22159c;_0x32a9c3[_0x12fd93('0x20e0')]=_0x11709c||{'count':0x0,'rows':[]};}function _0x1329df(){const _0x14fadf=_0x22159c;_0x32a9c3[_0x14fadf('0x826')][_0x14fadf('0xf19')]=(_0x32a9c3[_0x14fadf('0x826')]['page']-0x1)*_0x32a9c3['query'][_0x14fadf('0x193b')],_0x1fcc35[_0x14fadf('0x1ba2')](_0x14fadf('0x20bf'))?_0x32a9c3['promise']=_0x449454[_0x14fadf('0x12fb')][_0x14fadf('0x1c53')](_0x32a9c3[_0x14fadf('0x826')],_0x342c9f)[_0x14fadf('0x1af5')]:(_0x32a9c3['query']['id']=_0x32a9c3['userProfile']['id'],_0x32a9c3[_0x14fadf('0x826')][_0x14fadf('0x16f8')]=_0x14fadf('0x19f5'),_0x32a9c3[_0x14fadf('0x1691')]=_0x449454[_0x14fadf('0xdeb')][_0x14fadf('0x2447')](_0x32a9c3['query'],_0x342c9f)[_0x14fadf('0x1af5')]);}function _0x9a9a1e(_0x171dea,_0x412936){const _0x1379a3=_0x22159c;_0x34c67a[_0x1379a3('0x28e2')]({'controller':_0x1379a3('0xe3'),'controllerAs':'vm','templateUrl':_0x4d5f63,'parent':angular[_0x1379a3('0x1ce1')](_0x53cc54[_0x1379a3('0x13aa')]),'targetEvent':_0x171dea,'clickOutsideToClose':!![],'locals':{'project':_0x412936,'projects':_0x32a9c3[_0x1379a3('0x20e0')][_0x1379a3('0x2319')],'license':_0x32a9c3[_0x1379a3('0x1d11')],'setting':_0x32a9c3[_0x1379a3('0x1aeb')],'crudPermissions':_0x32a9c3[_0x1379a3('0x103e')]}});}function _0x325233(_0x456020){const _0x167bce=_0x22159c;_0x449454[_0x167bce('0x12fb')][_0x167bce('0x1da6')]({'id':_0x456020['id']})['$promise'][_0x167bce('0x17e7')](function(){const _0x42f3d5=_0x167bce;_0x49cbdd()[_0x42f3d5('0x5f3')](_0x32a9c3['projects'][_0x42f3d5('0x2319')],{'id':_0x456020['id']}),_0x32a9c3[_0x42f3d5('0x20e0')][_0x42f3d5('0x335')]-=0x1,!_0x32a9c3['projects'][_0x42f3d5('0x2319')][_0x42f3d5('0x1f73')]&&_0x32a9c3['getProjects'](),_0x511647[_0x42f3d5('0x130d')]({'title':_0x49cbdd()[_0x42f3d5('0x1c98')](_0x42f3d5('0x2149'))+_0x42f3d5('0x2673'),'msg':_0x456020[_0x42f3d5('0x2aa')]?_0x456020[_0x42f3d5('0x2aa')]+_0x42f3d5('0x149f'):''});})[_0x167bce('0x16df')](function(_0x4feae8){const _0x547672=_0x167bce;if(_0x4feae8[_0x547672('0x1457')]&&_0x4feae8[_0x547672('0x1457')][_0x547672('0x73e')]&&_0x4feae8['data'][_0x547672('0x73e')][_0x547672('0x1f73')]){_0x32a9c3[_0x547672('0x73e')]=_0x4feae8[_0x547672('0x1457')][_0x547672('0x73e')]||[{'message':_0x4feae8[_0x547672('0x9b6')](),'type':'SYSTEM:DELETEjscriptyProject'}];for(let _0x5d5720=0x0;_0x5d5720<_0x4feae8[_0x547672('0x1457')]['errors']['length'];_0x5d5720++){_0x511647[_0x547672('0x1db9')]({'title':_0x4feae8[_0x547672('0x1457')][_0x547672('0x73e')][_0x5d5720]['type'],'msg':_0x4feae8[_0x547672('0x1457')][_0x547672('0x73e')][_0x5d5720][_0x547672('0x1603')]});}}else _0x511647[_0x547672('0x1db9')]({'title':_0x4feae8[_0x547672('0x11c5')]?'API:'+_0x4feae8[_0x547672('0x11c5')]+_0x547672('0x16e4')+_0x4feae8[_0x547672('0x1833')]:_0x547672('0x1821'),'msg':_0x4feae8[_0x547672('0x1457')]?JSON['stringify'](_0x4feae8['data'][_0x547672('0x1603')]):_0x4feae8['message']||_0x4feae8[_0x547672('0x9b6')]()});});}function _0x2593d9(){const _0x53f5cc=_0x22159c,_0x469814=angular[_0x53f5cc('0x14e5')](_0x32a9c3[_0x53f5cc('0x1bb9')]);return _0x32a9c3[_0x53f5cc('0x1bb9')]=[],_0x469814;}function _0x196330(_0x3e14f8){const _0x367e23=_0x22159c,_0x35f081=_0x34c67a[_0x367e23('0x1121')]()['title'](_0x367e23('0x60f'))['htmlContent'](_0x367e23('0xa53')+_0x32a9c3[_0x367e23('0x1bb9')]['length']+_0x367e23('0x145a')+_0x367e23('0xe9f'))[_0x367e23('0x2095')]('delete\x20Projects')[_0x367e23('0x104f')](_0x3e14f8)['ok']('OK')[_0x367e23('0x1d47')](_0x367e23('0x28a0'));_0x34c67a[_0x367e23('0x28e2')](_0x35f081)[_0x367e23('0x17e7')](function(){const _0x1ba6c0=_0x367e23;_0x32a9c3[_0x1ba6c0('0x1bb9')][_0x1ba6c0('0xccd')](function(_0x5ec5ce){_0x325233(_0x5ec5ce);}),_0x32a9c3[_0x1ba6c0('0x1bb9')]=[];});}function _0x1768f5(){const _0x39af85=_0x22159c;_0x32a9c3[_0x39af85('0x1bb9')]=[];}function _0x260a73(){const _0x2df0a6=_0x22159c;_0x32a9c3[_0x2df0a6('0x1bb9')]=_0x32a9c3['projects'][_0x2df0a6('0x2319')];}}const _0x5412f4=_0x41cb6b;_0x34a8f7['$inject']=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x34a8f7(_0x1b52d9,_0x185aca){const _0x37a58e=_0x4376d8;_0x1b52d9[_0x37a58e('0x1b9a')](_0x37a58e('0x15d1'),{'abstract':!![],'url':_0x37a58e('0x1789')})['state'](_0x37a58e('0x1785'),{'url':_0x37a58e('0x1846'),'views':{'content@app':{'templateUrl':_0x37e768,'controller':_0x37a58e('0x1fb8')}},'resolve':{'projects':[_0x37a58e('0x177'),'Auth',function(_0x3326cf,_0x3aaacd){const _0x4cf093=_0x37a58e;return _0x3aaacd[_0x4cf093('0x1ba2')]('admin')?_0x3326cf[_0x4cf093('0x898')](_0x4cf093('0x1311'),{'fields':_0x4cf093('0xe4f'),'sort':_0x4cf093('0x1ac6'),'limit':0xa,'offset':0x0}):_0x3326cf[_0x4cf093('0x898')](_0x4cf093('0x1164'),{'id':_0x3aaacd[_0x4cf093('0x2831')]()[_0x4cf093('0x1e76')],'section':_0x4cf093('0x19f5'),'fields':'createdAt,updatedAt,id,name,enableUncompleteSave,sendUnpauseOnSubmit,description,formData','sort':_0x4cf093('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x37a58e('0x177'),_0x37a58e('0x1885'),function(_0x230ca5,_0x1c3208){const _0x23f827=_0x37a58e;return _0x1c3208[_0x23f827('0x1ba2')]('admin')?null:_0x230ca5[_0x23f827('0x898')](_0x23f827('0x235d'),{'fields':'id,name,crudPermissions','id':_0x1c3208[_0x23f827('0x2831')]()[_0x23f827('0x1e76')]});}],'userProfileSection':[_0x37a58e('0x177'),_0x37a58e('0x1885'),function(_0x3e3d4a,_0x3407aa){const _0x5a3887=_0x37a58e;return _0x3407aa[_0x5a3887('0x1ba2')](_0x5a3887('0x20bf'))?null:_0x3e3d4a[_0x5a3887('0x898')](_0x5a3887('0x23e7'),{'fields':_0x5a3887('0x1134'),'userProfileId':_0x3407aa['getCurrentUser']()['userProfileId'],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x37a58e('0x2343')})[_0x37a58e('0x1b9a')]('app.jscripty.projects.edit',{'url':'/:id?tab','params':{'project':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x95cf6d,'controller':_0x37a58e('0x875')}},'resolve':{'project':[_0x37a58e('0x177'),'$stateParams',function(_0x21ea04,_0x26f543){const _0x16044=_0x37a58e;return _0x21ea04[_0x16044('0x898')](_0x16044('0x1311'),{'fields':_0x16044('0xe4f'),'id':_0x26f543['id']});}],'userProfileSection':[_0x37a58e('0x177'),'Auth',function(_0x57a5e4,_0x1ae688){const _0x1cbbe2=_0x37a58e;return _0x57a5e4[_0x1cbbe2('0x898')](_0x1cbbe2('0x23e7'),{'fields':_0x1cbbe2('0x1134'),'userProfileId':_0x1ae688[_0x1cbbe2('0x2831')]()[_0x1cbbe2('0x1e76')],'sectionId':0x6a5});}]},'authenticate':!![],'permissionId':0x6a5,'bodyClass':_0x37a58e('0x2343')}),_0x185aca[_0x37a58e('0x10b3')]('app/main/apps/jscripty');}angular[_0x4376d8('0x11c4')](_0x4376d8('0x15d1'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),'md.data.table','flow',_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),'mdPickers',_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),'angular-cron-jobs','ngEmbed',_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b')])[_0x4376d8('0x1980')](_0x34a8f7)['controller']('CreateOrEditProjectDialogController',_0x22af34)[_0x4376d8('0x5ce')](_0x4376d8('0x8d5'),_0x1ee870)[_0x4376d8('0x5ce')](_0x4376d8('0x1faa'),_0x4901b1)[_0x4376d8('0x5ce')](_0x4376d8('0xad0'),_0x22652b)[_0x4376d8('0x5ce')](_0x4376d8('0x2ce'),_0x5395db)[_0x4376d8('0x5ce')]('ProjectSessionsController',_0x370692)[_0x4376d8('0x5ce')](_0x4376d8('0x1cba'),_0x327816)['controller']('JscriptyProjectController',_0xaa63ee)[_0x4376d8('0x5ce')](_0x4376d8('0x1f29'),_0x5412f4);const _0xd31c71=_0x4cf2bc['p']+_0x4376d8('0x609'),_0xd93ff1=_0x4cf2bc['p']+_0x4376d8('0xb2c');_0x57bf9f[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),_0x4376d8('0x1391'),'$mdDialog','$q','$translate','toasty',_0x4376d8('0x196d'),_0x4376d8('0x1ec3'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x57bf9f(_0x342aea,_0x442d76,_0x33bdbb,_0x28cc91,_0x4dd3da,_0x305d9a,_0x1db8d5,_0x8ed65b,_0x18191a,_0x2ffb7c,_0x21bcc6,_0x4b9412,_0x54964b,_0x4d98ae){const _0x404435=_0x4376d8,_0x3d4169=this;_0x3d4169[_0x404435('0x197c')]=_0x21bcc6[_0x404435('0x2831')](),_0x3d4169['errors']=[],_0x3d4169[_0x404435('0x1aeb')]=_0x54964b,_0x3d4169['license']=_0x4b9412,_0x3d4169['crudPermissions']=_0x4d98ae,_0x3d4169[_0x404435('0x6ee')]={},_0x3d4169[_0x404435('0x1572')]=_0x3d4169[_0x404435('0x1aeb')]&&_0x3d4169['setting']['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x3d4169['title']='MARKETPLACE.EDIT_PLUGIN',_0x3d4169[_0x404435('0x1ec3')]=angular[_0x404435('0x14e5')](_0x18191a),_0x3d4169['plugins']=_0x8ed65b,_0x3d4169[_0x404435('0x1248')]=![];!_0x3d4169['plugin']&&(_0x3d4169[_0x404435('0x1ec3')]={},_0x3d4169[_0x404435('0x24d3')]=_0x404435('0x1ca3'),_0x3d4169['newPlugin']=!![]);_0x3d4169[_0x404435('0x18d8')]=_0x4284e4,_0x3d4169[_0x404435('0x456')]=_0x39986e,_0x3d4169[_0x404435('0x26f1')]=_0x4e0753,_0x3d4169[_0x404435('0x1300')]=_0x45a55e,_0x3d4169['closeDialog']=_0x1210a8;function _0x4284e4(){const _0x50b122=_0x404435;_0x3d4169[_0x50b122('0x73e')]=[],_0x2ffb7c[_0x50b122('0x1ec3')][_0x50b122('0x2439')](_0x3d4169[_0x50b122('0x1ec3')])[_0x50b122('0x1af5')]['then'](function(_0x10426a){const _0x3a1d6b=_0x50b122;_0x3d4169[_0x3a1d6b('0x196d')][_0x3a1d6b('0x1893')](_0x10426a[_0x3a1d6b('0x16b2')]()),_0x1db8d5[_0x3a1d6b('0x130d')]({'title':_0x3a1d6b('0xff5'),'msg':_0x3d4169[_0x3a1d6b('0x1ec3')][_0x3a1d6b('0x2aa')]?_0x3d4169['plugin'][_0x3a1d6b('0x2aa')]+_0x3a1d6b('0x15a'):''}),_0x1210a8(_0x10426a);})[_0x50b122('0x16df')](function(_0x57de57){const _0x2a52ed=_0x50b122;if(_0x57de57[_0x2a52ed('0x1457')]&&_0x57de57[_0x2a52ed('0x1457')][_0x2a52ed('0x73e')]&&_0x57de57[_0x2a52ed('0x1457')][_0x2a52ed('0x73e')][_0x2a52ed('0x1f73')]){_0x3d4169[_0x2a52ed('0x73e')]=_0x57de57[_0x2a52ed('0x1457')][_0x2a52ed('0x73e')]||[{'message':_0x57de57[_0x2a52ed('0x9b6')](),'type':_0x2a52ed('0x21bb')}];for(let _0x307bf7=0x0;_0x307bf7<_0x57de57[_0x2a52ed('0x1457')][_0x2a52ed('0x73e')][_0x2a52ed('0x1f73')];_0x307bf7+=0x1){_0x1db8d5[_0x2a52ed('0x1db9')]({'title':_0x57de57[_0x2a52ed('0x1457')]['errors'][_0x307bf7][_0x2a52ed('0x412')],'msg':_0x57de57[_0x2a52ed('0x1457')]['errors'][_0x307bf7]['message']});}}else _0x1db8d5['error']({'title':_0x57de57[_0x2a52ed('0x11c5')]?_0x2a52ed('0x14f7')+_0x57de57[_0x2a52ed('0x11c5')]+_0x2a52ed('0x16e4')+_0x57de57['statusText']:_0x2a52ed('0x21bb'),'msg':_0x57de57[_0x2a52ed('0x1457')]?JSON[_0x2a52ed('0x678')](_0x57de57[_0x2a52ed('0x1457')][_0x2a52ed('0x1603')]):_0x57de57[_0x2a52ed('0x9b6')]()});});}function _0x39986e(){const _0x36793f=_0x404435;_0x3d4169[_0x36793f('0x73e')]=[],_0x2ffb7c[_0x36793f('0x1ec3')][_0x36793f('0x27ba')]({'id':_0x3d4169[_0x36793f('0x1ec3')]['id']},_0x3d4169['plugin'])[_0x36793f('0x1af5')][_0x36793f('0x17e7')](function(_0x217036){const _0x507f15=_0x36793f,_0x468c83=_0x49cbdd()[_0x507f15('0xe8e')](_0x3d4169[_0x507f15('0x196d')],{'id':_0x217036['id']});_0x468c83&&_0x49cbdd()[_0x507f15('0x1ced')](_0x468c83,_0x49cbdd()[_0x507f15('0x230a')](_0x217036[_0x507f15('0x16b2')](),_0x49cbdd()[_0x507f15('0x1c0f')](_0x468c83))),_0x1db8d5[_0x507f15('0x130d')]({'title':_0x507f15('0x13fd'),'msg':_0x3d4169[_0x507f15('0x1ec3')][_0x507f15('0x2aa')]?_0x3d4169[_0x507f15('0x1ec3')][_0x507f15('0x2aa')]+'\x20has\x20been\x20saved!':''}),_0x1210a8(_0x217036);})['catch'](function(_0x3239fd){const _0x488c00=_0x36793f;if(_0x3239fd['data']&&_0x3239fd[_0x488c00('0x1457')]['errors']&&_0x3239fd[_0x488c00('0x1457')][_0x488c00('0x73e')][_0x488c00('0x1f73')]){_0x3d4169[_0x488c00('0x73e')]=_0x3239fd['data'][_0x488c00('0x73e')]||[{'message':_0x3239fd[_0x488c00('0x9b6')](),'type':_0x488c00('0x18a4')}];for(let _0x3068f9=0x0;_0x3068f9<_0x3239fd[_0x488c00('0x1457')][_0x488c00('0x73e')][_0x488c00('0x1f73')];_0x3068f9++){_0x1db8d5[_0x488c00('0x1db9')]({'title':_0x3239fd['data']['errors'][_0x3068f9][_0x488c00('0x412')],'msg':_0x3239fd[_0x488c00('0x1457')][_0x488c00('0x73e')][_0x3068f9]['message']});}}else _0x1db8d5['error']({'title':_0x3239fd[_0x488c00('0x11c5')]?_0x488c00('0x14f7')+_0x3239fd[_0x488c00('0x11c5')]+'\x20-\x20'+_0x3239fd[_0x488c00('0x1833')]:_0x488c00('0x18a4'),'msg':_0x3239fd['data']?JSON[_0x488c00('0x678')](_0x3239fd[_0x488c00('0x1457')][_0x488c00('0x1603')]):_0x3239fd[_0x488c00('0x9b6')]()});});}function _0x4e0753(_0xf66526){const _0x2fb23a=_0x404435;_0x3d4169[_0x2fb23a('0x73e')]=[];const _0x35a7d7=_0x28cc91[_0x2fb23a('0x1121')]()[_0x2fb23a('0x24d3')](_0x2fb23a('0x530'))['content']('The\x20plugin\x20will\x20be\x20deleted.')['ariaLabel'](_0x2fb23a('0x1e48'))['ok']('Delete')[_0x2fb23a('0x1d47')](_0x2fb23a('0x1b70'))[_0x2fb23a('0x104f')](_0xf66526);_0x28cc91[_0x2fb23a('0x28e2')](_0x35a7d7)[_0x2fb23a('0x17e7')](function(){const _0x5bfb8d=_0x2fb23a;_0x2ffb7c['plugin']['delete']({'id':_0x3d4169[_0x5bfb8d('0x1ec3')]['id']})[_0x5bfb8d('0x1af5')]['then'](function(){const _0x92c99f=_0x5bfb8d;_0x49cbdd()['remove'](_0x3d4169[_0x92c99f('0x196d')],{'id':_0x3d4169[_0x92c99f('0x1ec3')]['id']}),_0x1db8d5['success']({'title':_0x92c99f('0xcd9'),'msg':(_0x3d4169['plugin']['name']||'plugin')+'\x20has\x20been\x20deleted!'}),_0x1210a8(_0x3d4169[_0x92c99f('0x1ec3')]);})[_0x5bfb8d('0x16df')](function(_0x25b97c){const _0xf7b5fe=_0x5bfb8d;if(_0x25b97c[_0xf7b5fe('0x1457')]&&_0x25b97c[_0xf7b5fe('0x1457')][_0xf7b5fe('0x73e')]&&_0x25b97c[_0xf7b5fe('0x1457')][_0xf7b5fe('0x73e')][_0xf7b5fe('0x1f73')]){_0x3d4169[_0xf7b5fe('0x73e')]=_0x25b97c[_0xf7b5fe('0x1457')][_0xf7b5fe('0x73e')]||[{'message':_0x25b97c[_0xf7b5fe('0x9b6')](),'type':_0xf7b5fe('0x2520')}];for(let _0x2a56bf=0x0;_0x2a56bf<_0x25b97c[_0xf7b5fe('0x1457')][_0xf7b5fe('0x73e')][_0xf7b5fe('0x1f73')];_0x2a56bf++){_0x1db8d5['error']({'title':_0x25b97c[_0xf7b5fe('0x1457')][_0xf7b5fe('0x73e')][_0x2a56bf][_0xf7b5fe('0x412')],'msg':_0x25b97c[_0xf7b5fe('0x1457')][_0xf7b5fe('0x73e')][_0x2a56bf][_0xf7b5fe('0x1603')]});}}else _0x1db8d5[_0xf7b5fe('0x1db9')]({'title':_0x25b97c[_0xf7b5fe('0x11c5')]?_0xf7b5fe('0x14f7')+_0x25b97c[_0xf7b5fe('0x11c5')]+_0xf7b5fe('0x16e4')+_0x25b97c[_0xf7b5fe('0x1833')]:'api.plugin.delete','msg':_0x25b97c['data']?JSON['stringify'](_0x25b97c[_0xf7b5fe('0x1457')][_0xf7b5fe('0x1603')]):_0x25b97c[_0xf7b5fe('0x1603')]||_0x25b97c[_0xf7b5fe('0x9b6')]()});});},function(){});}function _0x45a55e(_0x49e42b){return _0x49e42b===null?undefined:new Date(_0x49e42b);}function _0x1210a8(_0x48e056){const _0x26a05b=_0x404435;_0x28cc91[_0x26a05b('0x212a')](_0x48e056);}}const _0x19d5ef=_0x57bf9f;_0x4ae6f2[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$document',_0x4376d8('0x28da'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'api',_0x4376d8('0x108a'),'Auth','plugin',_0x4376d8('0x383')];function _0x4ae6f2(_0x39263e,_0x3bac9c,_0xac37c6,_0xad3099,_0x18530b,_0x125630,_0x2231bc,_0x959883,_0x37cdaa,_0x4e2a27,_0x67c0ad,_0x2df946){const _0xe75684=_0x4376d8,_0x19d3e4=this;_0x19d3e4[_0xe75684('0x197c')]=_0x4e2a27[_0xe75684('0x2831')](),_0x19d3e4['license']=_0x125630,_0x19d3e4['setting']=_0x2231bc,_0x19d3e4[_0xe75684('0x1572')]=_0x19d3e4[_0xe75684('0x1aeb')][_0xe75684('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x19d3e4['location']=_0x3bac9c[_0xe75684('0x14fe')]()+'://'+_0x3bac9c[_0xe75684('0x108')](),_0x19d3e4[_0xe75684('0x1ec3')]=_0x67c0ad||_0x39263e[_0xe75684('0x16fb')]['plugin']||{},_0x19d3e4[_0xe75684('0x383')]=_0x2df946&&_0x2df946[_0xe75684('0x335')]==0x1?_0x2df946[_0xe75684('0x2319')][0x0]:null,_0x19d3e4[_0xe75684('0x103e')]=_0x4e2a27[_0xe75684('0x17a9')](_0x19d3e4['userProfileSection']?_0x19d3e4[_0xe75684('0x383')][_0xe75684('0x103e')]:null),_0x19d3e4[_0xe75684('0x6ee')]={},_0x19d3e4[_0xe75684('0xde7')]=_0x39263e['params']['tab']||0x0,_0x19d3e4['alert']=_0x37cdaa['info'],_0x19d3e4[_0xe75684('0x75')]=_0x30c93c,_0x19d3e4[_0xe75684('0x456')]=_0x5de854;function _0x30c93c(){const _0x5554ca=_0xe75684;_0x39263e['go'](_0x5554ca('0x1dde'),{},{'reload':'app.marketplace.plugins'});}function _0x5de854(){const _0x5a22e7=_0xe75684;_0x959883[_0x5a22e7('0x1ec3')][_0x5a22e7('0x27ba')]({'id':_0x19d3e4[_0x5a22e7('0x1ec3')]['id']},_0x19d3e4[_0x5a22e7('0x1ec3')])[_0x5a22e7('0x1af5')][_0x5a22e7('0x17e7')](function(){const _0x31e58c=_0x5a22e7;_0x37cdaa[_0x31e58c('0x130d')]({'title':_0x31e58c('0x1d3f'),'msg':_0x19d3e4['plugin'][_0x31e58c('0x2aa')]?_0x19d3e4['plugin'][_0x31e58c('0x2aa')]+_0x31e58c('0x12b0'):''});})[_0x5a22e7('0x16df')](function(_0x24569f){const _0x566885=_0x5a22e7;_0x37cdaa[_0x566885('0x1db9')]({'title':_0x24569f['status']?'API:'+_0x24569f[_0x566885('0x11c5')]+'\x20-\x20'+_0x24569f[_0x566885('0x1833')]:_0x566885('0x6'),'msg':_0x24569f[_0x566885('0x1457')]?JSON[_0x566885('0x678')](_0x24569f['data']):_0x24569f['toString']()});});}}const _0x47c246=_0x4ae6f2,_0x25db60=_0x4cf2bc['p']+'src/js/modules/main/apps/marketplace/views/plugins/create/dialog.html/dialog.html',_0x38f005=_0x4cf2bc['p']+_0x4376d8('0x10ee');_0x51e59['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),'$document',_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x196d'),'userProfile','userProfileSection',_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),'Auth',_0x4376d8('0x1d11'),'setting'];function _0x51e59(_0xe5296b,_0x152475,_0x4aa6fd,_0x562588,_0x54f25a,_0x27c0b8,_0x419c92,_0x1d5190,_0x531b03,_0x1e2a59,_0x35258f,_0x356a3a,_0x3abd5e,_0x555ece,_0x2a6188,_0x5a8a20,_0x12cc04){const _0x5168c3=_0x4376d8,_0x402d7c=this;_0x402d7c[_0x5168c3('0x1d11')]=_0x5a8a20,_0x402d7c[_0x5168c3('0x1aeb')]=_0x12cc04,_0x402d7c[_0x5168c3('0x197c')]=_0x2a6188[_0x5168c3('0x2831')](),_0x402d7c['plugins']=_0x531b03||{'count':0x0,'rows':[]},_0x402d7c['userProfile']=_0x1e2a59,_0x402d7c[_0x5168c3('0x383')]=_0x35258f&&_0x35258f[_0x5168c3('0x335')]==0x1?_0x35258f[_0x5168c3('0x2319')][0x0]:null,_0x402d7c[_0x5168c3('0x103e')]=_0x2a6188['parseCrudPermissions'](_0x402d7c['userProfileSection']?_0x402d7c[_0x5168c3('0x383')][_0x5168c3('0x103e')]:null),_0x402d7c[_0x5168c3('0x23c3')]='plugins',_0x402d7c[_0x5168c3('0x26a1')]='',_0x402d7c[_0x5168c3('0x24e1')]=null,_0x402d7c['selectedPlugins']=[],_0x402d7c['query']={'fields':_0x5168c3('0x1411'),'sort':_0x5168c3('0x2aa'),'limit':0xa,'page':0x1},_0x402d7c[_0x5168c3('0x1a41')]=![],_0x402d7c[_0x5168c3('0x2296')]=_0x49cbdd()['keyBy']([{'option':'Always','value':'\x27always\x27'},{'option':'Admin\x20Only','value':'\x27adminOnly\x27'},{'option':_0x5168c3('0xfdd'),'value':'\x27agentOnly\x27'},{'option':_0x5168c3('0x320'),'value':'\x27never\x27'}],function(_0xd1c903){const _0x1ec271=_0x5168c3;return _0x49cbdd()['replace'](_0xd1c903[_0x1ec271('0x175b')],new RegExp('\x27','g'),'');}),_0x402d7c[_0x5168c3('0x13dd')]=_0x52e600,_0x402d7c[_0x5168c3('0xcd4')]=_0x59e5c4,_0x402d7c['stopplugin']=_0x119d71,_0x402d7c[_0x5168c3('0xefa')]=_0xfd9b05,_0x402d7c[_0x5168c3('0x1818')]=_0x2b05b6,_0x402d7c[_0x5168c3('0x1896')]=_0x4fbb34,_0x402d7c[_0x5168c3('0xbf4')]=_0x4b56d1,_0x402d7c['success']=_0x3fd5b2,_0x402d7c[_0x5168c3('0x24aa')]=_0x324b4a,_0x402d7c['createOrEditPlugin']=_0x1dd4ba,_0x402d7c[_0x5168c3('0x26f1')]=_0x1684a6,_0x402d7c[_0x5168c3('0x18dd')]=_0x271b0f,_0x402d7c[_0x5168c3('0x1c92')]=_0x5c7fd1,_0x402d7c[_0x5168c3('0x12ae')]=_0x4b4adf,_0x402d7c[_0x5168c3('0xcb6')]=_0x32e8ab,_0x402d7c[_0x5168c3('0x1aaf')]=_0x113c5c;function _0x52e600(_0x83f2c1){const _0x160cb3=_0x5168c3;if(_0x83f2c1[_0x160cb3('0x412')]==='script')_0x402d7c[_0x160cb3('0x1a41')]=!![],_0x356a3a[_0x160cb3('0x9a1')]['save']({'name':_0x83f2c1[_0x160cb3('0x1abc')],'script':_0x83f2c1[_0x160cb3('0x1fc9')]+'/'+_0x83f2c1[_0x160cb3('0x1f89')]})[_0x160cb3('0x1af5')]['then'](function(){const _0x518ecd=_0x160cb3;return _0x83f2c1['active']=!![],_0x356a3a[_0x518ecd('0x1ec3')][_0x518ecd('0x27ba')]({'id':_0x83f2c1['id']},_0x83f2c1)[_0x518ecd('0x1af5')];})[_0x160cb3('0x17e7')](function(){const _0x44a2fb=_0x160cb3;_0x402d7c['installing']=![],_0x555ece[_0x44a2fb('0x130d')]({'title':_0x44a2fb('0x1c42'),'msg':_0x83f2c1[_0x44a2fb('0x2aa')]?_0x83f2c1[_0x44a2fb('0x2aa')]+'\x20has\x20been\x20installed!':''});})[_0x160cb3('0x16df')](function(_0x4ff32c){const _0x410496=_0x160cb3;if(_0x4ff32c[_0x410496('0x1457')]&&_0x4ff32c[_0x410496('0x1457')][_0x410496('0x73e')]&&_0x4ff32c[_0x410496('0x1457')][_0x410496('0x73e')][_0x410496('0x1f73')]){_0x402d7c[_0x410496('0x73e')]=_0x4ff32c[_0x410496('0x1457')][_0x410496('0x73e')]||[{'message':_0x4ff32c[_0x410496('0x9b6')](),'type':'api.pm2.save'}];for(let _0x125a18=0x0;_0x125a18<_0x4ff32c[_0x410496('0x1457')][_0x410496('0x73e')][_0x410496('0x1f73')];_0x125a18++){_0x555ece[_0x410496('0x1db9')]({'title':_0x4ff32c[_0x410496('0x1457')][_0x410496('0x73e')][_0x125a18][_0x410496('0x412')],'msg':_0x4ff32c['data'][_0x410496('0x73e')][_0x125a18][_0x410496('0x1603')]});}}else _0x555ece['error']({'title':_0x4ff32c[_0x410496('0x11c5')]?_0x410496('0x14f7')+_0x4ff32c['status']+_0x410496('0x16e4')+_0x4ff32c[_0x410496('0x1833')]:_0x410496('0x1cd7'),'msg':_0x4ff32c['data']?JSON['stringify'](_0x4ff32c[_0x410496('0x1457')][_0x410496('0x1603')]):_0x4ff32c[_0x410496('0x1603')]||_0x4ff32c[_0x410496('0x9b6')]()});});else return _0x83f2c1[_0x160cb3('0x469')]=!![],_0x356a3a[_0x160cb3('0x1ec3')][_0x160cb3('0x27ba')]({'id':_0x83f2c1['id']},_0x83f2c1)['$promise'][_0x160cb3('0x17e7')](function(){const _0xf7435f=_0x160cb3;_0x555ece[_0xf7435f('0x130d')]({'title':_0xf7435f('0x1c42'),'msg':_0x83f2c1[_0xf7435f('0x2aa')]?_0x83f2c1[_0xf7435f('0x2aa')]+'\x20has\x20been\x20installed!':''});})['catch'](function(_0x4b351e){const _0x497664=_0x160cb3;if(_0x4b351e[_0x497664('0x1457')]&&_0x4b351e[_0x497664('0x1457')][_0x497664('0x73e')]&&_0x4b351e[_0x497664('0x1457')][_0x497664('0x73e')]['length']){_0x402d7c['errors']=_0x4b351e[_0x497664('0x1457')][_0x497664('0x73e')]||[{'message':_0x4b351e[_0x497664('0x9b6')](),'type':_0x497664('0x18a4')}];for(let _0x4a9e32=0x0;_0x4a9e32<_0x4b351e[_0x497664('0x1457')]['errors'][_0x497664('0x1f73')];_0x4a9e32++){_0x555ece['error']({'title':_0x4b351e[_0x497664('0x1457')]['errors'][_0x4a9e32][_0x497664('0x412')],'msg':_0x4b351e[_0x497664('0x1457')]['errors'][_0x4a9e32][_0x497664('0x1603')]});}}else _0x555ece[_0x497664('0x1db9')]({'title':_0x4b351e[_0x497664('0x11c5')]?_0x497664('0x14f7')+_0x4b351e['status']+_0x497664('0x16e4')+_0x4b351e['statusText']:'api.plugin.update','msg':_0x4b351e[_0x497664('0x1457')]?JSON[_0x497664('0x678')](_0x4b351e['data'][_0x497664('0x1603')]):_0x4b351e[_0x497664('0x1603')]||_0x4b351e['toString']()});});}function _0x59e5c4(_0x51913d){const _0x3d2db3=_0x5168c3;_0x4aa6fd['go'](_0x3d2db3('0xe70'),{'id':_0x51913d['id'],'plugin':_0x51913d,'crudPermissions':_0x402d7c['crudPermissions']});}function _0x119d71(_0x3e71ff,_0x275cf5){const _0x40c37d=_0x5168c3,_0x37297d=_0x54f25a[_0x40c37d('0x1121')]()['title'](_0x40c37d('0x286a'))[_0x40c37d('0x211f')](_0x40c37d('0xa53')+(_0x3e71ff[_0x40c37d('0x2aa')]||_0x40c37d('0x1ec3'))+''+_0x40c37d('0xffa'))[_0x40c37d('0x2095')](_0x40c37d('0xf07'))[_0x40c37d('0x104f')](_0x275cf5)['ok']('OK')['cancel'](_0x40c37d('0x28a0'));_0x54f25a[_0x40c37d('0x28e2')](_0x37297d)['then'](function(){_0x27d1f4(_0x3e71ff);},function(){const _0x569fe0=_0x40c37d;console['log'](_0x569fe0('0x28a0'));});}function _0x27d1f4(_0x8e7872){const _0x6192db=_0x5168c3;_0x356a3a['pm2'][_0x6192db('0x1c53')]()['$promise']['then'](function(_0x10e6de){const _0x3f2128=_0x6192db;if(!_0x10e6de||!_0x10e6de[_0x3f2128('0x2319')])throw new Error(_0x3f2128('0x354'));const _0x51cd59=_0x49cbdd()[_0x3f2128('0xe8e')](_0x10e6de['rows'],{'name':_0x8e7872[_0x3f2128('0x1abc')]});if(!_0x51cd59)throw new Error(_0x3f2128('0x2ca'));_0x356a3a[_0x3f2128('0x9a1')][_0x3f2128('0x27ba')]({'id':_0x51cd59[_0x3f2128('0xaaf')],'status':_0x3f2128('0x3a4')})[_0x3f2128('0x1af5')][_0x3f2128('0x17e7')](function(){const _0x347a7e=_0x3f2128;_0x555ece[_0x347a7e('0x130d')]({'title':_0x347a7e('0x68e'),'msg':_0x347a7e('0x2413')});});})[_0x6192db('0x16df')](function(_0xa6b981){const _0x58e43d=_0x6192db;if(_0xa6b981[_0x58e43d('0x1457')]&&_0xa6b981['data']['errors']&&_0xa6b981[_0x58e43d('0x1457')]['errors'][_0x58e43d('0x1f73')]){_0x402d7c[_0x58e43d('0x73e')]=_0xa6b981[_0x58e43d('0x1457')][_0x58e43d('0x73e')]||[{'message':_0xa6b981[_0x58e43d('0x9b6')](),'type':_0x58e43d('0x21cf')}];for(let _0x95d95c=0x0;_0x95d95c<_0xa6b981[_0x58e43d('0x1457')][_0x58e43d('0x73e')][_0x58e43d('0x1f73')];_0x95d95c++){_0x555ece[_0x58e43d('0x1db9')]({'title':_0xa6b981[_0x58e43d('0x1457')][_0x58e43d('0x73e')][_0x95d95c][_0x58e43d('0x412')],'msg':_0xa6b981[_0x58e43d('0x1457')][_0x58e43d('0x73e')][_0x95d95c][_0x58e43d('0x1603')]});}}else _0x555ece[_0x58e43d('0x1db9')]({'title':_0xa6b981[_0x58e43d('0x11c5')]?_0x58e43d('0x14f7')+_0xa6b981['status']+_0x58e43d('0x16e4')+_0xa6b981[_0x58e43d('0x1833')]:_0x58e43d('0x21cf'),'msg':_0xa6b981['data']?JSON[_0x58e43d('0x678')](_0xa6b981[_0x58e43d('0x1457')][_0x58e43d('0x1603')]):_0xa6b981[_0x58e43d('0x1603')]||_0xa6b981['toString']()});});}function _0xfd9b05(_0x2417fc,_0x51a65a){const _0x878ba6=_0x5168c3,_0xdf3d4e=_0x54f25a[_0x878ba6('0x1121')]()[_0x878ba6('0x24d3')](_0x878ba6('0x1403'))[_0x878ba6('0x211f')](_0x878ba6('0xa53')+(_0x2417fc[_0x878ba6('0x2aa')]||_0x878ba6('0x1ec3'))+_0x878ba6('0x1d23')+'\x20attached\x20process\x20will\x20be\x20restarted.')[_0x878ba6('0x2095')](_0x878ba6('0x21c5'))['targetEvent'](_0x51a65a)['ok']('OK')[_0x878ba6('0x1d47')](_0x878ba6('0x28a0'));_0x54f25a[_0x878ba6('0x28e2')](_0xdf3d4e)[_0x878ba6('0x17e7')](function(){_0x2f78e3(_0x2417fc);},function(){const _0x800728=_0x878ba6;console[_0x800728('0x1d63')](_0x800728('0x28a0'));});}function _0x2f78e3(_0x2cc11e){const _0x22843a=_0x5168c3;_0x356a3a['pm2'][_0x22843a('0x1c53')]()[_0x22843a('0x1af5')][_0x22843a('0x17e7')](function(_0x8b4e50){const _0x1c67c4=_0x22843a;if(!_0x8b4e50||!_0x8b4e50[_0x1c67c4('0x2319')])throw new Error(_0x1c67c4('0x354'));const _0x1fdf96=_0x49cbdd()[_0x1c67c4('0xe8e')](_0x8b4e50[_0x1c67c4('0x2319')],{'name':_0x2cc11e[_0x1c67c4('0x1abc')]});if(!_0x1fdf96)throw new Error(_0x1c67c4('0x2ca'));_0x356a3a[_0x1c67c4('0x9a1')][_0x1c67c4('0x27ba')]({'id':_0x1fdf96[_0x1c67c4('0xaaf')],'status':_0x1c67c4('0x1872')})[_0x1c67c4('0x1af5')][_0x1c67c4('0x17e7')](function(){const _0x32d2c2=_0x1c67c4;_0x555ece[_0x32d2c2('0x130d')]({'title':_0x32d2c2('0x9af'),'msg':'Attached\x20pm2\x20process\x20successfully\x20restarted'});});})[_0x22843a('0x16df')](function(_0x23b56e){const _0x175da3=_0x22843a;if(_0x23b56e[_0x175da3('0x1457')]&&_0x23b56e[_0x175da3('0x1457')][_0x175da3('0x73e')]&&_0x23b56e[_0x175da3('0x1457')][_0x175da3('0x73e')][_0x175da3('0x1f73')]){_0x402d7c[_0x175da3('0x73e')]=_0x23b56e[_0x175da3('0x1457')][_0x175da3('0x73e')]||[{'message':_0x23b56e[_0x175da3('0x9b6')](),'type':'api.pm2.update'}];for(let _0xd21f5e=0x0;_0xd21f5e<_0x23b56e['data']['errors'][_0x175da3('0x1f73')];_0xd21f5e++){_0x555ece['error']({'title':_0x23b56e[_0x175da3('0x1457')][_0x175da3('0x73e')][_0xd21f5e][_0x175da3('0x412')],'msg':_0x23b56e[_0x175da3('0x1457')][_0x175da3('0x73e')][_0xd21f5e][_0x175da3('0x1603')]});}}else _0x555ece['error']({'title':_0x23b56e[_0x175da3('0x11c5')]?_0x175da3('0x14f7')+_0x23b56e[_0x175da3('0x11c5')]+_0x175da3('0x16e4')+_0x23b56e[_0x175da3('0x1833')]:_0x175da3('0x21cf'),'msg':_0x23b56e['data']?JSON[_0x175da3('0x678')](_0x23b56e[_0x175da3('0x1457')][_0x175da3('0x1603')]):_0x23b56e[_0x175da3('0x1603')]||_0x23b56e[_0x175da3('0x9b6')]()});});}function _0x2b05b6(_0x223d13){const _0x376a7d=_0x5168c3;return _0x356a3a[_0x376a7d('0x1ec3')][_0x376a7d('0x1244')]({'id':_0x223d13['id']})[_0x376a7d('0x1af5')]['then'](function(_0x12221e){const _0x3139d5=_0x376a7d,_0x2a3c28=[_0x12221e[_0x3139d5('0x3ca')]];let _0x1480e2=_0x3139d5('0x1244');const _0x2ca43f=new Blob(_0x2a3c28,{'type':_0x12221e[_0x3139d5('0x412')]});_0x1480e2=_0x223d13[_0x3139d5('0x2aa')][_0x3139d5('0x737')]('\x20','_')[_0x3139d5('0x19b')]()+'.zip';const _0x1149a1=window[_0x3139d5('0x2be')][_0x3139d5('0x68d')]('a');_0x1149a1[_0x3139d5('0x224')](_0x3139d5('0x448'),URL['createObjectURL'](_0x2ca43f)),_0x1149a1[_0x3139d5('0x224')](_0x3139d5('0x1244'),_0x1480e2),document[_0x3139d5('0x13aa')][_0x3139d5('0x128c')](_0x1149a1),_0x1149a1[_0x3139d5('0x20d4')]();})[_0x376a7d('0x16df')](function(_0x570049){const _0x32a69d=_0x376a7d;if(_0x570049[_0x32a69d('0x1457')]&&_0x570049[_0x32a69d('0x1457')][_0x32a69d('0x73e')]&&_0x570049[_0x32a69d('0x1457')][_0x32a69d('0x73e')]['length'])for(let _0x10ff80=0x0;_0x10ff80<_0x570049[_0x32a69d('0x1457')][_0x32a69d('0x73e')][_0x32a69d('0x1f73')];_0x10ff80++){_0x555ece[_0x32a69d('0x1db9')]({'title':_0x570049[_0x32a69d('0x1457')][_0x32a69d('0x73e')][_0x10ff80][_0x32a69d('0x412')],'msg':_0x570049[_0x32a69d('0x1457')]['errors'][_0x10ff80]['message']});}else _0x555ece[_0x32a69d('0x1db9')]({'title':_0x570049[_0x32a69d('0x11c5')]?_0x32a69d('0x14f7')+_0x570049[_0x32a69d('0x11c5')]+_0x32a69d('0x16e4')+_0x570049[_0x32a69d('0x1833')]:_0x32a69d('0x21bb'),'msg':_0x570049['data']?JSON[_0x32a69d('0x678')](_0x570049['data'][_0x32a69d('0x1603')]):_0x570049[_0x32a69d('0x9b6')]()});});}function _0x4fbb34(_0x4652ad,_0xee7cbb){const _0x37d46b=_0x5168c3,_0x46aa83=_0x54f25a['confirm']()['title'](_0x37d46b('0x689'))[_0x37d46b('0x211f')](_0x37d46b('0xa53')+(_0x4652ad['name']||_0x37d46b('0x1ec3'))+_0x37d46b('0x1d23')+_0x37d46b('0xbcd'))[_0x37d46b('0x2095')](_0x37d46b('0x25db'))[_0x37d46b('0x104f')](_0xee7cbb)['ok']('OK')[_0x37d46b('0x1d47')](_0x37d46b('0x28a0'));_0x54f25a[_0x37d46b('0x28e2')](_0x46aa83)['then'](function(){_0x4b3e5b(_0x4652ad);},function(){console['log']('CANCEL');});}function _0x4b3e5b(_0x7fe357){const _0x2202d6=_0x5168c3;return _0x7fe357[_0x2202d6('0x412')]===_0x2202d6('0x10fd')&&_0x356a3a[_0x2202d6('0x9a1')][_0x2202d6('0x1c53')]()[_0x2202d6('0x1af5')]['then'](function(_0x4791e4){const _0x3dddda=_0x2202d6;if(!_0x4791e4||!_0x4791e4[_0x3dddda('0x2319')])throw new Error(_0x3dddda('0x354'));const _0x455ac6=_0x49cbdd()[_0x3dddda('0xe8e')](_0x4791e4[_0x3dddda('0x2319')],{'name':_0x7fe357['scriptName']});if(!_0x455ac6)throw new Error(_0x3dddda('0x2ca'));_0x356a3a[_0x3dddda('0x9a1')][_0x3dddda('0x1da6')]({'id':_0x455ac6[_0x3dddda('0xaaf')],'name':_0x7fe357['scriptName']})[_0x3dddda('0x1af5')];})[_0x2202d6('0x16df')](function(_0x1d1ca8){const _0x59dc9d=_0x2202d6;_0x555ece[_0x59dc9d('0x1db9')]({'title':_0x1d1ca8['status']?'API:'+_0x1d1ca8[_0x59dc9d('0x11c5')]+_0x59dc9d('0x16e4')+_0x1d1ca8[_0x59dc9d('0x1833')]:_0x59dc9d('0x597'),'msg':_0x1d1ca8[_0x59dc9d('0x1457')]?JSON[_0x59dc9d('0x678')](_0x1d1ca8['data'][_0x59dc9d('0x1603')]):_0x1d1ca8[_0x59dc9d('0x1603')]||_0x1d1ca8[_0x59dc9d('0x9b6')]()});}),_0x7fe357[_0x2202d6('0x469')]=![],_0x356a3a[_0x2202d6('0x1ec3')][_0x2202d6('0x27ba')]({'id':_0x7fe357['id']},_0x7fe357)[_0x2202d6('0x1af5')][_0x2202d6('0x17e7')](function(){const _0x225b27=_0x2202d6;_0x555ece[_0x225b27('0x130d')]({'title':_0x225b27('0x303'),'msg':_0x7fe357[_0x225b27('0x2aa')]?_0x7fe357['name']+_0x225b27('0xd8a'):''});})[_0x2202d6('0x16df')](function(_0xb9dea9){const _0x493d23=_0x2202d6;if(_0xb9dea9[_0x493d23('0x1457')]&&_0xb9dea9[_0x493d23('0x1457')][_0x493d23('0x73e')]&&_0xb9dea9['data'][_0x493d23('0x73e')]['length']){_0x402d7c[_0x493d23('0x73e')]=_0xb9dea9[_0x493d23('0x1457')][_0x493d23('0x73e')]||[{'message':_0xb9dea9[_0x493d23('0x9b6')](),'type':_0x493d23('0x18a4')}];for(let _0x3a61ca=0x0;_0x3a61ca<_0xb9dea9[_0x493d23('0x1457')]['errors'][_0x493d23('0x1f73')];_0x3a61ca++){_0x555ece[_0x493d23('0x1db9')]({'title':_0xb9dea9[_0x493d23('0x1457')][_0x493d23('0x73e')][_0x3a61ca][_0x493d23('0x412')],'msg':_0xb9dea9[_0x493d23('0x1457')]['errors'][_0x3a61ca]['message']});}}else _0x555ece[_0x493d23('0x1db9')]({'title':_0xb9dea9[_0x493d23('0x11c5')]?'API:'+_0xb9dea9[_0x493d23('0x11c5')]+_0x493d23('0x16e4')+_0xb9dea9['statusText']:_0x493d23('0x18a4'),'msg':_0xb9dea9[_0x493d23('0x1457')]?JSON[_0x493d23('0x678')](_0xb9dea9[_0x493d23('0x1457')][_0x493d23('0x1603')]):_0xb9dea9['message']||_0xb9dea9[_0x493d23('0x9b6')]()});});}function _0x4b56d1(_0x256d0a,_0x4fad94){const _0x5ef5f7=_0x5168c3,_0x4542a9=_0x54f25a[_0x5ef5f7('0x1121')]()[_0x5ef5f7('0x24d3')](_0x5ef5f7('0x5e1')+_0x49cbdd()[_0x5ef5f7('0x1c98')]('plugin')+'?')[_0x5ef5f7('0x211f')](_0x5ef5f7('0xa53')+(_0x256d0a[_0x5ef5f7('0x2aa')]||'plugin')+_0x5ef5f7('0x1d23')+_0x5ef5f7('0xe9f'))[_0x5ef5f7('0x2095')]('delete\x20plugin')[_0x5ef5f7('0x104f')](_0x4fad94)['ok']('OK')[_0x5ef5f7('0x1d47')]('CANCEL');_0x54f25a[_0x5ef5f7('0x28e2')](_0x4542a9)[_0x5ef5f7('0x17e7')](function(){_0x1684a6(_0x256d0a);},function(){const _0x26ada2=_0x5ef5f7;console[_0x26ada2('0x1d63')]('CANCEL');});}let _0x55bef8=!![],_0x4c4d98=0x1;_0xe5296b[_0x5168c3('0x620')](_0x5168c3('0x3ed'),function(_0x1b3f71,_0x2d4a6c){const _0x3e202f=_0x5168c3;_0x55bef8?_0x419c92(function(){_0x55bef8=![];}):(!_0x2d4a6c&&(_0x4c4d98=_0x402d7c[_0x3e202f('0x826')][_0x3e202f('0x115a')]),_0x1b3f71!==_0x2d4a6c&&(_0x402d7c[_0x3e202f('0x826')][_0x3e202f('0x115a')]=0x1),!_0x1b3f71&&(_0x402d7c[_0x3e202f('0x826')][_0x3e202f('0x115a')]=_0x4c4d98),_0x402d7c[_0x3e202f('0x24aa')]());});function _0x3fd5b2(_0x31cd57){_0x402d7c['plugins']=_0x31cd57||{'count':0x0,'rows':[]};}function _0x324b4a(){const _0x4aaf93=_0x5168c3;_0x402d7c[_0x4aaf93('0x826')][_0x4aaf93('0xf19')]=(_0x402d7c['query'][_0x4aaf93('0x115a')]-0x1)*_0x402d7c[_0x4aaf93('0x826')]['limit'],_0x2a6188[_0x4aaf93('0x1ba2')](_0x4aaf93('0x20bf'))?_0x402d7c[_0x4aaf93('0x1691')]=_0x356a3a[_0x4aaf93('0x1ec3')][_0x4aaf93('0x1c53')](_0x402d7c[_0x4aaf93('0x826')],_0x3fd5b2)[_0x4aaf93('0x1af5')]:(_0x402d7c[_0x4aaf93('0x826')]['id']=_0x402d7c[_0x4aaf93('0xdeb')]['id'],_0x402d7c[_0x4aaf93('0x826')][_0x4aaf93('0x16f8')]='Plugins',_0x402d7c[_0x4aaf93('0x1691')]=_0x356a3a['userProfile'][_0x4aaf93('0x2447')](_0x402d7c[_0x4aaf93('0x826')],_0x3fd5b2)['$promise']);}function _0x1dd4ba(_0x22a457,_0xfab21a){const _0x1aa389=_0x5168c3;_0x54f25a[_0x1aa389('0x28e2')]({'controller':'CreateOrEditPluginDialogController','controllerAs':'vm','templateUrl':_0x25db60,'parent':angular[_0x1aa389('0x1ce1')](_0x27c0b8['body']),'targetEvent':_0x22a457,'clickOutsideToClose':!![],'locals':{'plugin':_0xfab21a,'plugins':_0x402d7c[_0x1aa389('0x196d')][_0x1aa389('0x2319')],'license':_0x402d7c[_0x1aa389('0x1d11')],'setting':_0x402d7c[_0x1aa389('0x1aeb')],'crudPermissions':_0x402d7c[_0x1aa389('0x103e')]}});}function _0x1684a6(_0x5e9475){const _0x9f42a1=_0x5168c3;_0x5e9475[_0x9f42a1('0x469')]&&_0x5e9475[_0x9f42a1('0x412')]==_0x9f42a1('0x10fd')&&_0x356a3a[_0x9f42a1('0x9a1')][_0x9f42a1('0x1c53')]()['$promise']['then'](function(_0x375abd){const _0x565011=_0x9f42a1;if(!_0x375abd||!_0x375abd[_0x565011('0x2319')])return _0x555ece['error']({'title':_0x565011('0x6dc'),'msg':_0x565011('0x354')});const _0x51ae86=_0x49cbdd()[_0x565011('0xe8e')](_0x375abd[_0x565011('0x2319')],{'name':_0x5e9475['scriptName']});if(!_0x51ae86){console[_0x565011('0x1d63')](_0x565011('0x117c'),_0x5e9475['scriptName']);return;}_0x356a3a[_0x565011('0x9a1')][_0x565011('0x1da6')]({'id':_0x51ae86[_0x565011('0xaaf')],'name':_0x5e9475[_0x565011('0x1abc')]})[_0x565011('0x1af5')];})['catch'](function(){const _0x1613c2=_0x9f42a1;return _0x555ece['error']({'title':'PM2\x20process\x20not\x20found!','msg':_0x1613c2('0x217e')});}),_0x356a3a[_0x9f42a1('0x1ec3')]['delete']({'id':_0x5e9475['id']})['$promise'][_0x9f42a1('0x17e7')](function(){const _0x336db5=_0x9f42a1;_0x49cbdd()[_0x336db5('0x5f3')](_0x402d7c['plugins'][_0x336db5('0x2319')],{'id':_0x5e9475['id']}),_0x402d7c['plugins'][_0x336db5('0x335')]-=0x1,!_0x402d7c['plugins'][_0x336db5('0x2319')][_0x336db5('0x1f73')]&&_0x402d7c[_0x336db5('0x24aa')](),_0x555ece[_0x336db5('0x130d')]({'title':_0x49cbdd()[_0x336db5('0x1c98')]('Plugin')+_0x336db5('0x2673'),'msg':_0x5e9475[_0x336db5('0x2aa')]?_0x5e9475[_0x336db5('0x2aa')]+_0x336db5('0x149f'):''});})[_0x9f42a1('0x16df')](function(_0x2f0d70){const _0x4a8cea=_0x9f42a1;if(_0x2f0d70[_0x4a8cea('0x1457')]&&_0x2f0d70[_0x4a8cea('0x1457')][_0x4a8cea('0x73e')]&&_0x2f0d70[_0x4a8cea('0x1457')][_0x4a8cea('0x73e')][_0x4a8cea('0x1f73')]){_0x402d7c[_0x4a8cea('0x73e')]=_0x2f0d70['data']['errors']||[{'message':_0x2f0d70[_0x4a8cea('0x9b6')](),'type':_0x4a8cea('0x880')}];for(let _0x4142e=0x0;_0x4142e<_0x2f0d70[_0x4a8cea('0x1457')][_0x4a8cea('0x73e')]['length'];_0x4142e++){_0x555ece['error']({'title':_0x2f0d70[_0x4a8cea('0x1457')][_0x4a8cea('0x73e')][_0x4142e][_0x4a8cea('0x412')],'msg':_0x2f0d70[_0x4a8cea('0x1457')][_0x4a8cea('0x73e')][_0x4142e][_0x4a8cea('0x1603')]});}}else _0x555ece[_0x4a8cea('0x1db9')]({'title':_0x2f0d70[_0x4a8cea('0x11c5')]?_0x4a8cea('0x14f7')+_0x2f0d70['status']+_0x4a8cea('0x16e4')+_0x2f0d70[_0x4a8cea('0x1833')]:_0x4a8cea('0x880'),'msg':_0x2f0d70['data']?JSON[_0x4a8cea('0x678')](_0x2f0d70[_0x4a8cea('0x1457')][_0x4a8cea('0x1603')]):_0x2f0d70[_0x4a8cea('0x1603')]||_0x2f0d70[_0x4a8cea('0x9b6')]()});});}function _0x271b0f(){const _0x4c7675=_0x5168c3,_0x383141=angular['copy'](_0x402d7c[_0x4c7675('0x19de')]);return _0x402d7c[_0x4c7675('0x19de')]=[],_0x383141;}function _0x5c7fd1(_0x2c61c1){const _0x467f9a=_0x5168c3,_0x376638=_0x54f25a[_0x467f9a('0x1121')]()[_0x467f9a('0x24d3')](_0x467f9a('0x1a24'))[_0x467f9a('0x211f')](''+_0x402d7c[_0x467f9a('0x19de')][_0x467f9a('0x1f73')]+_0x467f9a('0x145a')+'\x20will\x20be\x20deleted.')[_0x467f9a('0x2095')](_0x467f9a('0x98c'))[_0x467f9a('0x104f')](_0x2c61c1)['ok']('OK')[_0x467f9a('0x1d47')](_0x467f9a('0x28a0'));_0x54f25a[_0x467f9a('0x28e2')](_0x376638)[_0x467f9a('0x17e7')](function(){const _0x4f3404=_0x467f9a;_0x402d7c[_0x4f3404('0x19de')]['forEach'](function(_0xa9d0fc){_0x1684a6(_0xa9d0fc);}),_0x402d7c['selectedPlugins']=[];});}function _0x4b4adf(){const _0x45bd02=_0x5168c3;_0x402d7c[_0x45bd02('0x19de')]=[];}function _0x32e8ab(){const _0x4c0e1f=_0x5168c3;_0x402d7c['selectedPlugins']=_0x402d7c[_0x4c0e1f('0x196d')][_0x4c0e1f('0x2319')];}function _0x113c5c(_0x160e12){const _0x5cb659=_0x5168c3;_0x54f25a['show']({'controller':'UploadPluginDialogController','controllerAs':'vm','templateUrl':_0x38f005,'parent':angular[_0x5cb659('0x1ce1')](_0x27c0b8[_0x5cb659('0x13aa')]),'targetEvent':_0x160e12,'clickOutsideToClose':!![],'locals':{'plugins':_0x402d7c[_0x5cb659('0x196d')][_0x5cb659('0x2319')]}});}}const _0x32a425=_0x51e59;_0x1fd67d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x28db'),_0x4376d8('0x14f6'),_0x4376d8('0x108a'),_0x4376d8('0x196d'),_0x4376d8('0x212e'),_0x4376d8('0x1885')];function _0x1fd67d(_0x32b78e,_0x5965c4,_0x1ce007,_0x294f16,_0x183d32,_0x2cefbc){const _0x53f6b3=_0x4376d8,_0x3531af=this,_0x13604e=0x2,_0x5896eb=_0x13604e*0x400*0x400;_0x3531af[_0x53f6b3('0x197c')]=_0x2cefbc[_0x53f6b3('0x2831')](),_0x3531af[_0x53f6b3('0x73e')]=[],_0x3531af['title']=_0x53f6b3('0xfb7'),_0x3531af[_0x53f6b3('0x196d')]=_0x294f16,_0x3531af[_0x53f6b3('0x2690')]=[],_0x3531af[_0x53f6b3('0x63c')]='none',_0x3531af[_0x53f6b3('0x1ec3')]={},_0x3531af['ngFlowOptions']={'maxChunkRetries':0x1,'chunkSize':_0x5896eb,'simultaneousUploads':0x1,'testChunks':![],'progressCallbacksInterval':0x3e8,'allowDuplicateUploads':!![],'target':_0x53f6b3('0x1ea')},_0x3531af[_0x53f6b3('0xbdf')]={'flow':{}},_0x3531af[_0x53f6b3('0x1b74')]=![],_0x3531af[_0x53f6b3('0xb73')]=_0x38aa3c,_0x3531af[_0x53f6b3('0x624')]=_0x25626e,_0x3531af[_0x53f6b3('0x1852')]=_0x37be60,_0x3531af[_0x53f6b3('0x1986')]=_0x2b45c3,_0x3531af['uploadComplete']=_0x38904b,_0x3531af[_0x53f6b3('0x136e')]=_0x1452cf;function _0x38aa3c(_0x2e8e99){const _0x4403ef=_0x53f6b3,_0x1a1446=[_0x4403ef('0x203e')];if(!_0x49cbdd()[_0x4403ef('0x24b0')](_0x1a1446,_0x2e8e99[_0x4403ef('0x11b0')]()))return _0x1ce007[_0x4403ef('0x1db9')]({'title':_0x4403ef('0xf3d')+_0x2e8e99[_0x4403ef('0x11b0')](),'msg':_0x4403ef('0x836')+_0x1a1446['join']()}),![];if(_0x2e8e99['size']>_0x5896eb)return _0x1ce007['error']({'title':_0x4403ef('0x586'),'msg':_0x4403ef('0x349')+_0x13604e+'MB'}),![];return _0x3531af[_0x4403ef('0x1ec3')]={'id':_0x2e8e99[_0x4403ef('0x22b5')],'file':_0x2e8e99},_0x3531af[_0x4403ef('0x2690')][_0x4403ef('0x1893')](_0x3531af[_0x4403ef('0x1ec3')]),!![];}function _0x25626e(){const _0x39e8ef=_0x53f6b3;_0x3531af[_0x39e8ef('0x63c')]=_0x39e8ef('0x22df'),_0x3531af['ngFlow']['flow'][_0x39e8ef('0x1771')][_0x39e8ef('0x10b')]={'X-Requested-With':'XMLHttpRequest','Authorization':_0x39e8ef('0x28e8')+_0x32b78e['get']('motion.token')},_0x3531af['ngFlow']['flow'][_0x39e8ef('0x1771')]['query']={'role':_0x3531af[_0x39e8ef('0x197c')][_0x39e8ef('0x1085')],'userProfileId':_0x3531af[_0x39e8ef('0x197c')][_0x39e8ef('0x1e76')]},_0x3531af[_0x39e8ef('0xbdf')]['flow'][_0x39e8ef('0x624')]();}function _0x37be60(_0x44fc81,_0x6677aa){const _0x5efa44=_0x53f6b3;_0x3531af[_0x5efa44('0x196d')][_0x5efa44('0x1893')](JSON[_0x5efa44('0x1f0a')](_0x6677aa)),angular[_0x5efa44('0xccd')](_0x3531af[_0x5efa44('0x2690')],function(_0x5966eb){const _0x5e81eb=_0x5efa44;if(_0x5966eb['id']===_0x44fc81[_0x5e81eb('0x22b5')]){const _0x3b19fb=new FileReader();_0x3b19fb['readAsDataURL'](_0x5966eb['file'][_0x5e81eb('0xc89')]),_0x3b19fb[_0x5e81eb('0x2a1')]=function(_0x10bbaa){const _0x4aa452=_0x5e81eb;_0x5966eb[_0x4aa452('0x101e')]=_0x10bbaa[_0x4aa452('0x8cf')][_0x4aa452('0x2284')];};}});}function _0x2b45c3(){const _0xe0306a=_0x53f6b3;_0x3531af[_0xe0306a('0xbdf')]['flow']['cancel'](),_0x1ce007[_0xe0306a('0x1db9')]({'title':_0xe0306a('0x982'),'msg':_0xe0306a('0x924')}),_0x3531af[_0xe0306a('0x63c')]=_0xe0306a('0xca1');}function _0x38904b(){const _0x258f9e=_0x53f6b3;_0x3531af['uploadState']!==_0x258f9e('0xca1')&&(_0x3531af[_0x258f9e('0x63c')]='completed',_0x1ce007['success']({'title':_0x258f9e('0x168c'),'msg':_0x3531af[_0x258f9e('0x1ec3')][_0x258f9e('0xc89')][_0x258f9e('0x2aa')]+_0x258f9e('0x1d18')}));}function _0x1452cf(){const _0x59c2bc=_0x53f6b3;_0x5965c4[_0x59c2bc('0x212a')]();}}const _0x2f3d8b=_0x1fd67d;_0x5c9a12[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x5c9a12(_0x42efcb,_0x5a4745){const _0x266aec=_0x4376d8;_0x42efcb[_0x266aec('0x1b9a')](_0x266aec('0x123e'),{'abstract':!![],'url':_0x266aec('0x24f8')})[_0x266aec('0x1b9a')](_0x266aec('0x1dde'),{'url':_0x266aec('0x8bd'),'views':{'content@app':{'templateUrl':_0xd31c71,'controller':_0x266aec('0x1668')}},'resolve':{'plugins':['apiResolver',_0x266aec('0x1885'),function(_0x999b62,_0xc8b4db){const _0x2df573=_0x266aec;return _0xc8b4db[_0x2df573('0x1ba2')]('admin')?_0x999b62[_0x2df573('0x898')](_0x2df573('0x193d'),{'fields':_0x2df573('0x1411'),'sort':_0x2df573('0x2aa'),'limit':0xa,'offset':0x0}):_0x999b62['resolve']('userProfile@getResources',{'id':_0xc8b4db[_0x2df573('0x2831')]()[_0x2df573('0x1e76')],'section':'Plugins','fields':_0x2df573('0x1411'),'sort':_0x2df573('0x2aa'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x266aec('0x177'),_0x266aec('0x1885'),function(_0x425cfd,_0x2ff214){const _0x10cc53=_0x266aec;return _0x2ff214[_0x10cc53('0x1ba2')](_0x10cc53('0x20bf'))?null:_0x425cfd[_0x10cc53('0x898')]('userProfile@get',{'fields':'id,name,crudPermissions','id':_0x2ff214[_0x10cc53('0x2831')]()['userProfileId']});}],'userProfileSection':[_0x266aec('0x177'),_0x266aec('0x1885'),function(_0x5d2fdf,_0x3dbe49){const _0x116c77=_0x266aec;return _0x3dbe49[_0x116c77('0x1ba2')](_0x116c77('0x20bf'))?null:_0x5d2fdf[_0x116c77('0x898')](_0x116c77('0x23e7'),{'fields':_0x116c77('0x1134'),'userProfileId':_0x3dbe49[_0x116c77('0x2831')]()[_0x116c77('0x1e76')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x266aec('0xfb')})[_0x266aec('0x1b9a')](_0x266aec('0xe70'),{'url':_0x266aec('0x2370'),'params':{'plugin':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0xd93ff1,'controller':'MarketplacePluginController\x20as\x20vm'}},'resolve':{'plugin':[_0x266aec('0x177'),_0x266aec('0x118b'),function(_0x17c810,_0x2af5c2){const _0x43685b=_0x266aec;return _0x17c810[_0x43685b('0x898')](_0x43685b('0x193d'),{'fields':_0x43685b('0x1411'),'id':_0x2af5c2['id']});}],'userProfileSection':[_0x266aec('0x177'),'Auth',function(_0x1d61a7,_0x58fc5e){const _0xfce157=_0x266aec;return _0x1d61a7['resolve']('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x58fc5e['getCurrentUser']()[_0xfce157('0x1e76')],'sectionId':0x709});}]},'authenticate':!![],'permissionId':0x709,'bodyClass':_0x266aec('0xfb')}),_0x5a4745[_0x266aec('0x10b3')](_0x266aec('0x25a1'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x123e'),[_0x4376d8('0x14cd'),'ngPassword',_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),'ckeditor','ng-sortable',_0x4376d8('0x9c2'),'ngAnimate',_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),'angular-cron-jobs',_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b')])['config'](_0x5c9a12)[_0x4376d8('0x5ce')](_0x4376d8('0xa8c'),_0x19d5ef)[_0x4376d8('0x5ce')](_0x4376d8('0x813'),_0x47c246)[_0x4376d8('0x5ce')](_0x4376d8('0x17d4'),_0x32a425)['controller'](_0x4376d8('0x26c7'),_0x2f3d8b);const _0x19b598=_0x4cf2bc['p']+_0x4376d8('0x1f4b');_0xf47569['$inject']=['$state',_0x4376d8('0x668'),_0x4376d8('0x92d'),_0x4376d8('0x212e'),_0x4376d8('0x25aa'),_0x4376d8('0x1885')];function _0xf47569(_0x48c50a,_0x3d46ae,_0x29aa8e,_0x2fcc06,_0x5cb001,_0x260e7e){const _0x2137bc=_0x4376d8,_0x126c6d=this;_0x126c6d[_0x2137bc('0x197c')]=_0x260e7e[_0x2137bc('0x2831')](),_0x126c6d[_0x2137bc('0x1ec3')]={},_0x126c6d['getTrustedURL']=_0x1cbdd1,_0x2fcc06[_0x2137bc('0x1ec3')][_0x2137bc('0x1c53')]({'id':_0x48c50a[_0x2137bc('0x16fb')]['id']})[_0x2137bc('0x1af5')][_0x2137bc('0x17e7')](function(_0x2c6db6){const _0x17fc2f=_0x2137bc;if(_0x2c6db6)return _0x126c6d['plugin']=_0x2c6db6,_0x2fcc06[_0x17fc2f('0x1ec3')]['get']({'id':_0x126c6d[_0x17fc2f('0x1ec3')]['id']})[_0x17fc2f('0x1af5')];})[_0x2137bc('0x16df')](function(){const _0xf4e509=_0x2137bc;_0x126c6d[_0xf4e509('0x1ec3')]=undefined;});function _0x1cbdd1(){const _0x29ab6a=_0x2137bc;return _0x29aa8e[_0x29ab6a('0x2104')](_0x126c6d[_0x29ab6a('0x1ec3')][_0x29ab6a('0x207')]);}}const _0x2f2044=_0xf47569;_0x3d79a9[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a')];function _0x3d79a9(_0x35bd2f){const _0x238e56=_0x4376d8;_0x35bd2f[_0x238e56('0x1b9a')]('app.plugins.plugin',{'url':_0x238e56('0xc1e'),'views':{'content@app':{'templateUrl':_0x19b598,'controller':_0x238e56('0x1b0f')}},'resolve':{},'authenticate':!![],'bodyClass':_0x238e56('0x196d')});}angular[_0x4376d8('0x11c4')]('app.plugins.plugin',[])[_0x4376d8('0x1980')](_0x3d79a9)['controller']('PluginController',_0x2f2044),_0x2eac6c[_0x4376d8('0x1b9c')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x2eac6c(_0x464507,_0x47d843){const _0x4c8a2b=_0x4376d8;_0x464507['state']('app.plugins',{'abstract':!![],'url':_0x4c8a2b('0x8bd')}),_0x47d843[_0x4c8a2b('0x10b3')](_0x4c8a2b('0x24fc'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x49e'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),'mdColorPicker','ckeditor',_0x4376d8('0x1187'),_0x4376d8('0x9c2'),_0x4376d8('0x2757'),_0x4376d8('0xf54'),'mwFormBuilder',_0x4376d8('0x1ace'),_0x4376d8('0x199e'),'ngclipboard',_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),'app.plugins.plugin'])[_0x4376d8('0x1980')](_0x2eac6c);const _0x4577f9=_0x4cf2bc['p']+_0x4376d8('0x27d5');_0x332d38['$inject']=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),'$mdDialog','$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x2f0'),_0x4376d8('0x1375'),_0x4376d8('0x212e'),'Auth',_0x4376d8('0x1d11'),'setting',_0x4376d8('0x103e')];function _0x332d38(_0x108177,_0x5ea286,_0x4b8777,_0x4afc91,_0x5cc608,_0x2a9ac1,_0x45cba1,_0x10479a,_0x44a201,_0xd1d4a6,_0x100d61,_0x4ad8f3,_0x5739cd,_0x72e484){const _0x4a19a7=_0x4376d8,_0x521261=this;_0x521261[_0x4a19a7('0x197c')]=_0x100d61['getCurrentUser'](),_0x521261[_0x4a19a7('0x73e')]=[],_0x521261[_0x4a19a7('0x1aeb')]=_0x5739cd,_0x521261[_0x4a19a7('0x1d11')]=_0x4ad8f3,_0x521261[_0x4a19a7('0x103e')]=_0x72e484,_0x521261['hasModulePermissions']={},_0x521261['passwordPattern']=_0x521261[_0x4a19a7('0x1aeb')]&&_0x521261[_0x4a19a7('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x521261['title']=_0x4a19a7('0x2524'),_0x521261[_0x4a19a7('0x1375')]=angular[_0x4a19a7('0x14e5')](_0x44a201),_0x521261[_0x4a19a7('0x2f0')]=_0x10479a,_0x521261['newscreenRecording']=![];!_0x521261[_0x4a19a7('0x1375')]&&(_0x521261['screenRecording']={},_0x521261[_0x4a19a7('0x24d3')]='VIDEO.NEW_SCREENRECORDING',_0x521261[_0x4a19a7('0xf24')]=!![]);_0x521261[_0x4a19a7('0x67d')]=_0x57426f,_0x521261['savescreenRecording']=_0x549b7b,_0x521261['deletescreenRecording']=_0xb97461,_0x521261[_0x4a19a7('0x1300')]=_0x2979e8,_0x521261[_0x4a19a7('0x136e')]=_0x508297,_0xd1d4a6[_0x4a19a7('0x221e')][_0x4a19a7('0x1c53')]({'fields':_0x4a19a7('0x1f7'),'sort':_0x4a19a7('0x2aa'),'nolimit':_0x4a19a7('0xe34')})[_0x4a19a7('0x1af5')][_0x4a19a7('0x17e7')](function(_0x39691d){const _0x38ce31=_0x4a19a7;_0x521261[_0x38ce31('0x12ed')]=_0x39691d[_0x38ce31('0x2319')]||[];})[_0x4a19a7('0x16df')](function(_0xa47b9e){const _0x1803b7=_0x4a19a7;_0x45cba1[_0x1803b7('0x1db9')]({'title':_0xa47b9e['status']?_0x1803b7('0x14f7')+_0xa47b9e[_0x1803b7('0x11c5')]+'\x20-\x20'+_0xa47b9e[_0x1803b7('0x1833')]:_0x1803b7('0x8a9'),'msg':_0xa47b9e[_0x1803b7('0x1457')]?JSON[_0x1803b7('0x678')](_0xa47b9e[_0x1803b7('0x1457')]):_0xa47b9e[_0x1803b7('0x9b6')]()});});function _0x57426f(){const _0x4db3c7=_0x4a19a7;_0x521261['errors']=[],_0xd1d4a6[_0x4db3c7('0x1375')][_0x4db3c7('0x2439')](_0x521261[_0x4db3c7('0x1375')])['$promise'][_0x4db3c7('0x17e7')](function(_0xb5eda5){const _0x4482bf=_0x4db3c7;_0x521261[_0x4482bf('0x2f0')][_0x4482bf('0x1893')](_0xb5eda5[_0x4482bf('0x16b2')]()),_0x45cba1[_0x4482bf('0x130d')]({'title':_0x4482bf('0x2820'),'msg':_0x521261['screenRecording'][_0x4482bf('0x2aa')]?_0x521261[_0x4482bf('0x1375')][_0x4482bf('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x508297(_0xb5eda5);})[_0x4db3c7('0x16df')](function(_0x27a5ad){const _0x367bac=_0x4db3c7;if(_0x27a5ad['data']&&_0x27a5ad[_0x367bac('0x1457')][_0x367bac('0x73e')]&&_0x27a5ad[_0x367bac('0x1457')][_0x367bac('0x73e')][_0x367bac('0x1f73')]){_0x521261[_0x367bac('0x73e')]=_0x27a5ad[_0x367bac('0x1457')]['errors']||[{'message':_0x27a5ad[_0x367bac('0x9b6')](),'type':_0x367bac('0x62c')}];for(let _0x1fcb39=0x0;_0x1fcb39<_0x27a5ad[_0x367bac('0x1457')][_0x367bac('0x73e')][_0x367bac('0x1f73')];_0x1fcb39+=0x1){_0x45cba1[_0x367bac('0x1db9')]({'title':_0x27a5ad[_0x367bac('0x1457')][_0x367bac('0x73e')][_0x1fcb39][_0x367bac('0x412')],'msg':_0x27a5ad[_0x367bac('0x1457')]['errors'][_0x1fcb39][_0x367bac('0x1603')]});}}else _0x45cba1[_0x367bac('0x1db9')]({'title':_0x27a5ad[_0x367bac('0x11c5')]?_0x367bac('0x14f7')+_0x27a5ad[_0x367bac('0x11c5')]+'\x20-\x20'+_0x27a5ad[_0x367bac('0x1833')]:_0x367bac('0x62c'),'msg':_0x27a5ad[_0x367bac('0x1457')]?JSON[_0x367bac('0x678')](_0x27a5ad['data'][_0x367bac('0x1603')]):_0x27a5ad[_0x367bac('0x9b6')]()});});}function _0x549b7b(){const _0xb5b346=_0x4a19a7;_0x521261['errors']=[],_0xd1d4a6['screenRecording'][_0xb5b346('0x27ba')]({'id':_0x521261[_0xb5b346('0x1375')]['id']},_0x521261[_0xb5b346('0x1375')])[_0xb5b346('0x1af5')][_0xb5b346('0x17e7')](function(_0x24b8d0){const _0xbd0d10=_0xb5b346,_0x4183da=_0x49cbdd()[_0xbd0d10('0xe8e')](_0x521261['screenRecordings'],{'id':_0x24b8d0['id']});_0x4183da&&_0x49cbdd()[_0xbd0d10('0x1ced')](_0x4183da,_0x49cbdd()[_0xbd0d10('0x230a')](_0x24b8d0[_0xbd0d10('0x16b2')](),_0x49cbdd()[_0xbd0d10('0x1c0f')](_0x4183da))),_0x45cba1['success']({'title':_0xbd0d10('0x21ca'),'msg':_0x521261['screenRecording'][_0xbd0d10('0x2aa')]?_0x521261[_0xbd0d10('0x1375')][_0xbd0d10('0x2aa')]+_0xbd0d10('0x15ca'):''}),_0x508297(_0x24b8d0);})[_0xb5b346('0x16df')](function(_0x4b42ff){const _0x306a16=_0xb5b346;if(_0x4b42ff[_0x306a16('0x1457')]&&_0x4b42ff['data'][_0x306a16('0x73e')]&&_0x4b42ff['data']['errors'][_0x306a16('0x1f73')]){_0x521261[_0x306a16('0x73e')]=_0x4b42ff['data']['errors']||[{'message':_0x4b42ff[_0x306a16('0x9b6')](),'type':_0x306a16('0x1f9f')}];for(let _0x2807ef=0x0;_0x2807ef<_0x4b42ff[_0x306a16('0x1457')]['errors'][_0x306a16('0x1f73')];_0x2807ef++){_0x45cba1[_0x306a16('0x1db9')]({'title':_0x4b42ff['data'][_0x306a16('0x73e')][_0x2807ef]['type'],'msg':_0x4b42ff['data'][_0x306a16('0x73e')][_0x2807ef]['message']});}}else _0x45cba1[_0x306a16('0x1db9')]({'title':_0x4b42ff[_0x306a16('0x11c5')]?'API:'+_0x4b42ff[_0x306a16('0x11c5')]+'\x20-\x20'+_0x4b42ff['statusText']:'api.screenRecording.update','msg':_0x4b42ff[_0x306a16('0x1457')]?JSON[_0x306a16('0x678')](_0x4b42ff['data'][_0x306a16('0x1603')]):_0x4b42ff[_0x306a16('0x9b6')]()});});}function _0xb97461(_0x738bb9){const _0x31a7fd=_0x4a19a7;_0x521261['errors']=[];const _0x26c6bf=_0x4afc91[_0x31a7fd('0x1121')]()[_0x31a7fd('0x24d3')](_0x31a7fd('0x530'))[_0x31a7fd('0xd5')](_0x31a7fd('0x72e'))[_0x31a7fd('0x2095')](_0x31a7fd('0x137b'))['ok'](_0x31a7fd('0x304'))[_0x31a7fd('0x1d47')](_0x31a7fd('0x1b70'))[_0x31a7fd('0x104f')](_0x738bb9);_0x4afc91[_0x31a7fd('0x28e2')](_0x26c6bf)[_0x31a7fd('0x17e7')](function(){const _0x190bb4=_0x31a7fd;_0xd1d4a6['screenRecording'][_0x190bb4('0x1da6')]({'id':_0x521261[_0x190bb4('0x1375')]['id']})[_0x190bb4('0x1af5')][_0x190bb4('0x17e7')](function(){const _0x5b5d85=_0x190bb4;_0x49cbdd()[_0x5b5d85('0x5f3')](_0x521261['screenRecordings'],{'id':_0x521261[_0x5b5d85('0x1375')]['id']}),_0x45cba1[_0x5b5d85('0x130d')]({'title':_0x5b5d85('0x227'),'msg':(_0x521261[_0x5b5d85('0x1375')][_0x5b5d85('0x2aa')]||_0x5b5d85('0x1375'))+_0x5b5d85('0x149f')}),_0x508297(_0x521261[_0x5b5d85('0x1375')]);})[_0x190bb4('0x16df')](function(_0x320479){const _0x5e90b9=_0x190bb4;if(_0x320479[_0x5e90b9('0x1457')]&&_0x320479[_0x5e90b9('0x1457')][_0x5e90b9('0x73e')]&&_0x320479['data'][_0x5e90b9('0x73e')][_0x5e90b9('0x1f73')]){_0x521261['errors']=_0x320479[_0x5e90b9('0x1457')][_0x5e90b9('0x73e')]||[{'message':_0x320479['toString'](),'type':_0x5e90b9('0x2472')}];for(let _0x26d126=0x0;_0x26d126<_0x320479['data'][_0x5e90b9('0x73e')]['length'];_0x26d126++){_0x45cba1[_0x5e90b9('0x1db9')]({'title':_0x320479['data']['errors'][_0x26d126][_0x5e90b9('0x412')],'msg':_0x320479['data']['errors'][_0x26d126][_0x5e90b9('0x1603')]});}}else _0x45cba1['error']({'title':_0x320479[_0x5e90b9('0x11c5')]?'API:'+_0x320479[_0x5e90b9('0x11c5')]+_0x5e90b9('0x16e4')+_0x320479[_0x5e90b9('0x1833')]:_0x5e90b9('0x2472'),'msg':_0x320479['data']?JSON[_0x5e90b9('0x678')](_0x320479[_0x5e90b9('0x1457')][_0x5e90b9('0x1603')]):_0x320479[_0x5e90b9('0x1603')]||_0x320479[_0x5e90b9('0x9b6')]()});});},function(){});}function _0x2979e8(_0x4676fb){return _0x4676fb===null?undefined:new Date(_0x4676fb);}function _0x508297(_0x24d2f3){const _0x7c4bd5=_0x4a19a7;_0x4afc91[_0x7c4bd5('0x212a')](_0x24d2f3);}}const _0x2f9344=_0x332d38;_0x572f89['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x14f6'),'toasty',_0x4376d8('0x212e'),_0x4376d8('0x1535'),_0x4376d8('0x249a'),_0x4376d8('0x19a4'),_0x4376d8('0xe55'),_0x4376d8('0xdd8'),'$q'];function _0x572f89(_0x8693de,_0x4df811,_0x5f180,_0x156397,_0x2ce0fc,_0x11a0c4,_0x18be4f,_0x4abf4f,_0xe6f449,_0x3c7803){const _0x5f2ad2=_0x4376d8,_0x134f25=this;_0x134f25[_0x5f2ad2('0x782')]=![],_0x134f25[_0x5f2ad2('0x1535')]=Object[_0x5f2ad2('0x1048')]({},_0x2ce0fc),_0x134f25[_0x5f2ad2('0x21ec')]=_0x5f2ad2('0x1375'),_0x134f25[_0x5f2ad2('0x1ce1')]=_0xe6f449,_0x134f25[_0x5f2ad2('0x249a')]=Object[_0x5f2ad2('0x1048')]({},_0x11a0c4),_0x134f25[_0x5f2ad2('0x1fc9')]=_0x4abf4f,_0x134f25[_0x5f2ad2('0x19a4')]=_0x18be4f,_0x134f25[_0x5f2ad2('0x643')]='video',_0x134f25[_0x5f2ad2('0x23ed')]='screenRecording',console[_0x5f2ad2('0x1d63')](_0x5f2ad2('0xaa'),_0x134f25[_0x5f2ad2('0x1fc9')]),console[_0x5f2ad2('0x1d63')](_0x5f2ad2('0xb1b'),_0x134f25[_0x5f2ad2('0x1535')][_0x134f25['path']]),_0x134f25[_0x5f2ad2('0x6b3')]=_0x134f25['recording'][_0x134f25[_0x5f2ad2('0x1fc9')]][_0x5f2ad2('0x2567')]('/')>-0x1?_0x134f25[_0x5f2ad2('0x1535')][_0x134f25['path']][_0x5f2ad2('0xa65')](_0x134f25[_0x5f2ad2('0x1535')][_0x134f25['path']][_0x5f2ad2('0x4ff')]('/')+0x1):_0x134f25[_0x5f2ad2('0x1535')][_0x134f25[_0x5f2ad2('0x1fc9')]][_0x5f2ad2('0x2567')]('\x5c')>-0x1?_0x134f25[_0x5f2ad2('0x1535')][_0x134f25[_0x5f2ad2('0x1fc9')]][_0x5f2ad2('0xa65')](_0x134f25[_0x5f2ad2('0x1535')][_0x134f25[_0x5f2ad2('0x1fc9')]][_0x5f2ad2('0x4ff')]('\x5c')+0x1):_0x134f25[_0x5f2ad2('0x1535')][_0x134f25[_0x5f2ad2('0x1fc9')]],_0x134f25[_0x5f2ad2('0x1c0d')]=![];_0x49cbdd()['isNil'](_0x134f25[_0x5f2ad2('0x1535')]['format'])&&(_0x134f25['recording'][_0x5f2ad2('0x1c0d')]=_0x134f25[_0x5f2ad2('0x6b3')][_0x5f2ad2('0x275f')](_0x134f25['filename'][_0x5f2ad2('0x4ff')]('.')));(_0x134f25['recording'][_0x5f2ad2('0x1c0d')]===_0x5f2ad2('0xc1c')&&_0x134f25['element']===_0x5f2ad2('0x1c86')||_0x134f25['recording'][_0x5f2ad2('0x1c0d')]==='.mp4'&&_0x134f25[_0x5f2ad2('0x1ce1')]===_0x5f2ad2('0x24d1'))&&(_0x134f25[_0x5f2ad2('0x1c0d')]=!![]);_0x134f25[_0x5f2ad2('0x1766')]=!![];_0x134f25[_0x5f2ad2('0x1c0d')]&&_0x684b95();function _0x684b95(){const _0x3d53d0=_0x5f2ad2,_0x9d3471=_0x3c7803['defer']();return _0x156397['screenRecording']['download']({'id':_0x134f25['recording']['id'],'path':String(_0x134f25[_0x3d53d0('0x1fc9')])})[_0x3d53d0('0x1af5')][_0x3d53d0('0x17e7')](function(){const _0x53b4eb=_0x3d53d0;_0x134f25[_0x53b4eb('0x1c0d')]=!![],_0x134f25[_0x53b4eb('0x1766')]=!![],_0x9d3471[_0x53b4eb('0x898')]();})['catch'](function(){const _0x287f45=_0x3d53d0;console[_0x287f45('0x1d63')](_0x287f45('0x1f1')),_0x134f25[_0x287f45('0x1c0d')]=![],_0x134f25['found']=![],_0x9d3471['resolve']();}),_0x9d3471['promise'];}if(!_0x49cbdd()[_0x5f2ad2('0x390')](_0x11a0c4[_0x5f2ad2('0x15fe')])&&_0x11a0c4['properties']){_0x134f25[_0x5f2ad2('0x15fe')]=Object['assign']({},_0x2ce0fc);const _0x4ee8a3=Object['keys'](_0x2ce0fc);_0x4ee8a3['forEach'](function(_0x1c54f9){const _0x521a4c=_0x5f2ad2;String(_0x1c54f9[0x0][_0x521a4c('0x14e2')]())===String(_0x1c54f9[0x0])&&delete _0x134f25['properties'][_0x1c54f9];}),_0x134f25[_0x5f2ad2('0x1843')]={};if(!_0x49cbdd()['isNil'](_0x11a0c4[_0x5f2ad2('0x3c')])&&_0x11a0c4[_0x5f2ad2('0x3c')][_0x5f2ad2('0x1f73')]>0x0){_0x134f25[_0x5f2ad2('0x1843')]=Object[_0x5f2ad2('0x1048')]({},_0x2ce0fc);const _0xf3be8a=_0x11a0c4[_0x5f2ad2('0x3c')],_0x25331d=Object[_0x5f2ad2('0x1c0f')](_0x2ce0fc);let _0x31f6a1=!![];_0x25331d[_0x5f2ad2('0xccd')](function(_0x53da76){const _0x468336=_0x5f2ad2;_0x31f6a1=!![],_0xf3be8a[_0x468336('0xccd')](function(_0x2330e1){String(_0x53da76)===String(_0x2330e1)&&(_0x31f6a1=![]);}),_0x31f6a1&&delete _0x134f25['propertiesDefault'][_0x53da76];}),_0x134f25[_0x5f2ad2('0x15fe')]=_0x134f25[_0x5f2ad2('0x1843')];}if(!_0x49cbdd()[_0x5f2ad2('0x390')](_0x11a0c4[_0x5f2ad2('0x1ca4')])&&_0x11a0c4['extraData']['length']>0x0){_0x134f25[_0x5f2ad2('0xab4')]={};const _0x481815=_0x11a0c4[_0x5f2ad2('0x1ca4')];for(let _0x4a0527=0x0;_0x4a0527<_0x481815[_0x5f2ad2('0x1f73')];_0x4a0527++){const _0x47f9a1=_0x481815[_0x4a0527][_0x5f2ad2('0xa72')],_0x39dfac=_0x481815[_0x4a0527][_0x5f2ad2('0x23ed')];for(let _0x2edb25=0x0;_0x2edb25<_0x47f9a1['length'];_0x2edb25++){_0x134f25['propertiesExtra'][_0x47f9a1[_0x2edb25][_0x5f2ad2('0x132f')]]=_0x2ce0fc[_0x39dfac][_0x47f9a1[_0x2edb25]['key']];}}_0x134f25['properties']=Object[_0x5f2ad2('0x1048')]({},_0x134f25[_0x5f2ad2('0x1843')],_0x134f25['propertiesExtra']);}}_0x134f25[_0x5f2ad2('0x136e')]=_0x234ce7;function _0x234ce7(){const _0x101949=_0x5f2ad2;_0x4df811[_0x101949('0x212a')]();}}const _0x26b3af=_0x572f89,_0x49e418=_0x4cf2bc['p']+_0x4376d8('0x1e1e'),_0x3fa8e1=_0x4cf2bc['p']+_0x4376d8('0x1825');_0x2a36f9[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$timeout',_0x4376d8('0x28da'),_0x4376d8('0x2f0'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),'api',_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x2a36f9(_0x3a6292,_0x21830f,_0x248a53,_0xeffbf6,_0x45490d,_0x11b732,_0x244436,_0x5188a6,_0xc310a7,_0x286e49,_0x3ccfbe,_0xc79402,_0x4dbd2d,_0x40e621,_0x11af86,_0x510529,_0x16d178){const _0x31e2a1=_0x4376d8,_0x143a6e=this;_0x143a6e[_0x31e2a1('0x1d11')]=_0x510529,_0x143a6e[_0x31e2a1('0x1aeb')]=_0x16d178,_0x143a6e[_0x31e2a1('0x197c')]=_0x11af86[_0x31e2a1('0x2831')](),_0x143a6e['screenRecordings']=_0xc310a7||{'count':0x0,'rows':[]},_0x143a6e[_0x31e2a1('0xdeb')]=_0x286e49,_0x143a6e[_0x31e2a1('0x383')]=_0x3ccfbe&&_0x3ccfbe['count']==0x1?_0x3ccfbe[_0x31e2a1('0x2319')][0x0]:null,_0x143a6e[_0x31e2a1('0x103e')]=_0x11af86[_0x31e2a1('0x17a9')](_0x143a6e['userProfileSection']?_0x143a6e[_0x31e2a1('0x383')][_0x31e2a1('0x103e')]:null),_0x143a6e[_0x31e2a1('0x23c3')]='screenRecordings',_0x143a6e['listOrder']='',_0x143a6e[_0x31e2a1('0x24e1')]=null,_0x143a6e['selectedScreenRecordings']=[],_0x143a6e['query']={'fields':'createdAt,updatedAt,id,interactionid,channel,format,value,rating,UserId,duration,startedAt,closedAt','createdAt':_0x31e2a1('0xadb'),'includeAll':_0x31e2a1('0xe34'),'sort':_0x31e2a1('0x1ac6'),'limit':0xa,'page':0x1},_0x143a6e['query'][_0x31e2a1('0x7c9')]=_0x4dbd2d[_0x31e2a1('0x610')](),_0x143a6e[_0x31e2a1('0x137d')]=_0x5a27ab();function _0x5a27ab(){const _0x37130c=_0x31e2a1;return[{'name':_0x37130c('0x1786'),'key':_0x37130c('0x7c9'),'type':_0x37130c('0xbd4'),'label':_0x37130c('0x8b8')}];}_0x143a6e['playrecording']=_0x3dc9ec,_0x143a6e['downloadfile2']=_0x31b811,_0x143a6e[_0x31e2a1('0xbf4')]=_0x195666,_0x143a6e[_0x31e2a1('0x130d')]=_0x1e9ea0,_0x143a6e[_0x31e2a1('0x1094')]=_0x596f36,_0x143a6e[_0x31e2a1('0x8b1')]=_0x1ae18b,_0x143a6e[_0x31e2a1('0x3fc')]=_0x59a3bd,_0x143a6e[_0x31e2a1('0x191d')]=_0x569f8e,_0x143a6e[_0x31e2a1('0x275')]=_0x428e19,_0x143a6e[_0x31e2a1('0x223c')]=_0x213dd9,_0x143a6e[_0x31e2a1('0x2076')]=_0x1739cc,_0x143a6e[_0x31e2a1('0x1ef')]=_0x7d44d9,_0xc79402[_0x31e2a1('0x221e')][_0x31e2a1('0x1c53')]({'fields':_0x31e2a1('0x1f7'),'sort':_0x31e2a1('0x2aa'),'nolimit':_0x31e2a1('0xe34')})['$promise'][_0x31e2a1('0x17e7')](function(_0x571e2d){const _0x3c3307=_0x31e2a1;_0x143a6e['users']=_0x571e2d[_0x3c3307('0x2319')]||[];})[_0x31e2a1('0x16df')](function(_0x433e97){const _0x216de3=_0x31e2a1;_0x40e621[_0x216de3('0x1db9')]({'title':_0x433e97[_0x216de3('0x11c5')]?'API:'+_0x433e97['status']+_0x216de3('0x16e4')+_0x433e97[_0x216de3('0x1833')]:'SYSTEM:GET_USERS','msg':_0x433e97['data']?JSON[_0x216de3('0x678')](_0x433e97[_0x216de3('0x1457')]):_0x433e97['toString']()});});function _0x3dc9ec(_0x7a449b,_0x13e2d3,_0x3d526e,_0xab503c,_0x289068){const _0x41c439=_0x31e2a1,_0x210dea={'upperTitle':![],'lowerTitle':!![],'properties':!![],'propertiesIcon':_0x41c439('0x28e'),'propertiesList':[_0x41c439('0x1c0d'),_0x41c439('0x14a0'),'duration','startedAt',_0x41c439('0x1361'),_0x41c439('0x7c9')],'extraData':[{'model':'User','values':[{'key':_0x41c439('0x2aa'),'text':'agentname'}]}]},_0x2281c1={};_0x2281c1['route']='screenRecording',_0x2281c1[_0x41c439('0x2aa')]=_0x41c439('0x2f0'),_0x2281c1['model']='screenRecording',_0x2281c1[_0x41c439('0x1715')]=_0x41c439('0x1375'),_0xab503c=String(_0xab503c);const _0x5a71dd=String(_0x3d526e);console[_0x41c439('0x1d63')](_0x41c439('0x1590'),String(_0x3d526e)),_0x45490d[_0x41c439('0x28e2')]({'controller':'ScreenRecordingplayController','controllerAs':'vm','templateUrl':_0x3fa8e1,'parent':angular['element'](_0x11b732[_0x41c439('0x13aa')]),'targetEvent':_0x13e2d3,'clickOutsideToClose':!![],'locals':{'recording':_0x7a449b,'recordings':_0x143a6e[_0x41c439('0x2f0')][_0x41c439('0x2319')],'license':_0x143a6e[_0x41c439('0x1d11')],'setting':null,'item':_0x2281c1,'actionOptions':_0x210dea,'label':_0xab503c,'varPath':_0x5a71dd,'elementTag':String(_0x289068)}});}function _0x31b811(_0x52ebb0){const _0x2fa3a6=_0x31e2a1;let _0x4028d4=![];const _0x9afca8=!_0x49cbdd()[_0x2fa3a6('0x390')](_0x52ebb0[_0x2fa3a6('0x1c0d')])?_0x52ebb0[_0x2fa3a6('0x1c0d')]:_0x52ebb0[_0x2fa3a6('0x175b')][_0x2fa3a6('0xa65')](_0x52ebb0['value'][_0x2fa3a6('0x4ff')]('.'));_0x4028d4=_0x9afca8==='.mp4'?!![]:![];const _0x43ad33=_0x52ebb0[_0x2fa3a6('0x175b')][_0x2fa3a6('0x4ff')]('/')>-0x1?_0x52ebb0[_0x2fa3a6('0x175b')]['substring'](_0x52ebb0[_0x2fa3a6('0x175b')][_0x2fa3a6('0x4ff')]('/')+0x1):_0x52ebb0[_0x2fa3a6('0x175b')][_0x2fa3a6('0x4ff')]('\x5c')>-0x1?_0x52ebb0[_0x2fa3a6('0x175b')]['substring'](_0x52ebb0[_0x2fa3a6('0x175b')][_0x2fa3a6('0x4ff')]('\x5c')+0x1):_0x52ebb0['value'];return _0xc79402[_0x2fa3a6('0x1375')]['download']({'id':_0x52ebb0['id']})[_0x2fa3a6('0x1af5')][_0x2fa3a6('0x17e7')](function(_0xec93cb){const _0x49bc18=_0x2fa3a6,_0x5ca6c6=[_0xec93cb[_0x49bc18('0x3ca')]];let _0x5d40a8=_0x49bc18('0x1244');const _0x26677a=new Blob(_0x5ca6c6,{'type':_0xec93cb[_0x49bc18('0x412')]});_0x5d40a8=_0x43ad33;const _0x148ffd=window[_0x49bc18('0x2be')][_0x49bc18('0x68d')]('a');_0x148ffd['setAttribute'](_0x49bc18('0x448'),URL[_0x49bc18('0x28ce')](_0x26677a)),_0x148ffd[_0x49bc18('0x224')](_0x49bc18('0x1244'),_0x5d40a8),document['body'][_0x49bc18('0x128c')](_0x148ffd),_0x148ffd[_0x49bc18('0x20d4')]();})['catch'](function(_0x523d4f){const _0x5bbab9=_0x2fa3a6;if(_0x523d4f[_0x5bbab9('0x1457')]&&_0x523d4f[_0x5bbab9('0x1457')][_0x5bbab9('0x73e')]&&_0x523d4f[_0x5bbab9('0x1457')][_0x5bbab9('0x73e')][_0x5bbab9('0x1f73')])for(let _0x3984cb=0x0;_0x3984cb<_0x523d4f[_0x5bbab9('0x1457')][_0x5bbab9('0x73e')][_0x5bbab9('0x1f73')];_0x3984cb++){_0x40e621['error']({'title':_0x523d4f[_0x5bbab9('0x1457')]['errors'][_0x3984cb][_0x5bbab9('0x412')],'msg':_0x523d4f[_0x5bbab9('0x1457')][_0x5bbab9('0x73e')][_0x3984cb][_0x5bbab9('0x1603')]});}else{if(String(_0x523d4f['status'])===_0x5bbab9('0x1ea8')&&_0x4028d4===![])_0x40e621[_0x5bbab9('0x1178')]({'title':_0x5188a6['instant'](_0x5bbab9('0x90b')),'msg':_0x5188a6[_0x5bbab9('0x1acc')](_0x5bbab9('0x125b'))});else String(_0x523d4f[_0x5bbab9('0x11c5')])===_0x5bbab9('0x1ea8')?_0x40e621[_0x5bbab9('0x1178')]({'title':_0x5188a6[_0x5bbab9('0x1acc')](_0x5bbab9('0x90b')),'msg':_0x5188a6[_0x5bbab9('0x1acc')](_0x5bbab9('0x2450'))}):_0x40e621[_0x5bbab9('0x1db9')]({'title':_0x523d4f[_0x5bbab9('0x11c5')]?_0x5bbab9('0x14f7')+_0x523d4f['status']+_0x5bbab9('0x16e4')+_0x523d4f[_0x5bbab9('0x1833')]:_0x5bbab9('0x62c'),'msg':_0x523d4f[_0x5bbab9('0x1457')]?JSON['stringify'](_0x523d4f[_0x5bbab9('0x1457')][_0x5bbab9('0x1603')]):_0x523d4f['toString']()});}});}function _0x195666(_0x20416b,_0x3b9ef8){const _0x2dc9fd=_0x31e2a1,_0x59de38=_0x45490d[_0x2dc9fd('0x1121')]()[_0x2dc9fd('0x24d3')](_0x2dc9fd('0x5e1')+_0x49cbdd()['startCase'](_0x2dc9fd('0x1375'))+'?')[_0x2dc9fd('0x211f')](_0x2dc9fd('0xa53')+(_0x20416b['name']||'screenRecording')+_0x2dc9fd('0x1d23')+'\x20will\x20be\x20deleted.')['ariaLabel']('delete\x20screenRecording')[_0x2dc9fd('0x104f')](_0x3b9ef8)['ok']('OK')[_0x2dc9fd('0x1d47')](_0x2dc9fd('0x28a0'));_0x45490d[_0x2dc9fd('0x28e2')](_0x59de38)[_0x2dc9fd('0x17e7')](function(){_0x59a3bd(_0x20416b);},function(){const _0x4959bb=_0x2dc9fd;console[_0x4959bb('0x1d63')]('CANCEL');});}let _0x5cd010=!![],_0x39562a=0x1;_0x3a6292['$watch'](_0x31e2a1('0x3ed'),function(_0x18b31e,_0x327366){const _0x21c4f0=_0x31e2a1;_0x5cd010?_0x244436(function(){_0x5cd010=![];}):(!_0x327366&&(_0x39562a=_0x143a6e[_0x21c4f0('0x826')][_0x21c4f0('0x115a')]),_0x18b31e!==_0x327366&&(_0x143a6e['query'][_0x21c4f0('0x115a')]=0x1),!_0x18b31e&&(_0x143a6e['query'][_0x21c4f0('0x115a')]=_0x39562a),_0x143a6e[_0x21c4f0('0x1094')]());});function _0x7d44d9(_0x55dcc5){const _0x590b63=_0x31e2a1,_0x754806=Math['floor'](_0x55dcc5/0x3e8%0x3c),_0x391e42=Math[_0x590b63('0x211e')](_0x55dcc5/(0x3e8*0x3c)%0x3c),_0x4b613e=Math['floor'](_0x55dcc5/(0x3e8*0x3c*0x3c)%0x18),_0x4971e6=_0x4b613e<0xa?'0'+String(_0x4b613e):String(_0x4b613e),_0x2698aa=_0x391e42<0xa?'0'+String(_0x391e42):String(_0x391e42),_0x30b642=_0x754806<0xa?'0'+String(_0x754806):String(_0x754806);return _0x4971e6+':'+_0x2698aa+':'+_0x30b642;}function _0x1e9ea0(_0x573784){const _0xb7df61=_0x31e2a1;_0x143a6e[_0xb7df61('0x2f0')]=_0x573784||{'count':0x0,'rows':[]};}function _0x596f36(){const _0x404c6f=_0x31e2a1;_0x143a6e[_0x404c6f('0x826')]['offset']=(_0x143a6e[_0x404c6f('0x826')][_0x404c6f('0x115a')]-0x1)*_0x143a6e[_0x404c6f('0x826')][_0x404c6f('0x193b')],_0x11af86[_0x404c6f('0x1ba2')](_0x404c6f('0x20bf'))?_0x143a6e[_0x404c6f('0x1691')]=_0xc79402['screenRecording']['get'](_0x143a6e[_0x404c6f('0x826')],_0x1e9ea0)[_0x404c6f('0x1af5')]:(_0x143a6e['query']['id']=_0x143a6e[_0x404c6f('0xdeb')]['id'],_0x143a6e[_0x404c6f('0x826')]['section']=_0x404c6f('0x779'),_0x143a6e[_0x404c6f('0x1691')]=_0xc79402[_0x404c6f('0xdeb')]['getResources'](_0x143a6e[_0x404c6f('0x826')],_0x1e9ea0)[_0x404c6f('0x1af5')]);}function _0x1ae18b(_0x2f8bfc,_0x322ab5){const _0x2c3d66=_0x31e2a1;_0x45490d['show']({'controller':'CreateOrEditscreenRecordingDialogController','controllerAs':'vm','templateUrl':_0x49e418,'parent':angular[_0x2c3d66('0x1ce1')](_0x11b732[_0x2c3d66('0x13aa')]),'targetEvent':_0x2f8bfc,'clickOutsideToClose':!![],'locals':{'screenRecording':_0x322ab5,'screenRecordings':_0x143a6e['screenRecordings'][_0x2c3d66('0x2319')],'license':_0x143a6e['license'],'setting':_0x143a6e[_0x2c3d66('0x1aeb')],'crudPermissions':_0x143a6e[_0x2c3d66('0x103e')]}});}function _0x59a3bd(_0x2f0cc9){const _0x561a78=_0x31e2a1;_0xc79402[_0x561a78('0x1375')][_0x561a78('0x1da6')]({'id':_0x2f0cc9['id']})['$promise'][_0x561a78('0x17e7')](function(){const _0x1eea2e=_0x561a78;_0x49cbdd()[_0x1eea2e('0x5f3')](_0x143a6e[_0x1eea2e('0x2f0')][_0x1eea2e('0x2319')],{'id':_0x2f0cc9['id']}),_0x143a6e[_0x1eea2e('0x2f0')][_0x1eea2e('0x335')]-=0x1,!_0x143a6e[_0x1eea2e('0x2f0')][_0x1eea2e('0x2319')][_0x1eea2e('0x1f73')]&&_0x143a6e[_0x1eea2e('0x1094')](),_0x40e621[_0x1eea2e('0x130d')]({'title':_0x49cbdd()['startCase'](_0x1eea2e('0x1375'))+'\x20deleted!','msg':_0x2f0cc9[_0x1eea2e('0x2aa')]?_0x2f0cc9['name']+'\x20has\x20been\x20deleted!':''});})[_0x561a78('0x16df')](function(_0x25f63e){const _0x3ddf15=_0x561a78;if(_0x25f63e[_0x3ddf15('0x1457')]&&_0x25f63e[_0x3ddf15('0x1457')][_0x3ddf15('0x73e')]&&_0x25f63e[_0x3ddf15('0x1457')][_0x3ddf15('0x73e')]['length']){_0x143a6e[_0x3ddf15('0x73e')]=_0x25f63e[_0x3ddf15('0x1457')][_0x3ddf15('0x73e')]||[{'message':_0x25f63e['toString'](),'type':_0x3ddf15('0x817')}];for(let _0x1cafeb=0x0;_0x1cafeb<_0x25f63e['data']['errors'][_0x3ddf15('0x1f73')];_0x1cafeb++){_0x40e621['error']({'title':_0x25f63e[_0x3ddf15('0x1457')][_0x3ddf15('0x73e')][_0x1cafeb][_0x3ddf15('0x412')],'msg':_0x25f63e[_0x3ddf15('0x1457')][_0x3ddf15('0x73e')][_0x1cafeb][_0x3ddf15('0x1603')]});}}else _0x40e621[_0x3ddf15('0x1db9')]({'title':_0x25f63e[_0x3ddf15('0x11c5')]?_0x3ddf15('0x14f7')+_0x25f63e['status']+'\x20-\x20'+_0x25f63e[_0x3ddf15('0x1833')]:_0x3ddf15('0x817'),'msg':_0x25f63e[_0x3ddf15('0x1457')]?JSON['stringify'](_0x25f63e[_0x3ddf15('0x1457')][_0x3ddf15('0x1603')]):_0x25f63e[_0x3ddf15('0x1603')]||_0x25f63e[_0x3ddf15('0x9b6')]()});});}function _0x569f8e(){const _0x5c76bb=_0x31e2a1,_0x1e7454=angular[_0x5c76bb('0x14e5')](_0x143a6e[_0x5c76bb('0x1ef7')]);return _0x143a6e['selectedScreenRecordings']=[],_0x1e7454;}function _0x428e19(_0x55d394){const _0x2b52f6=_0x31e2a1,_0x34f1e5=_0x45490d[_0x2b52f6('0x1121')]()[_0x2b52f6('0x24d3')](_0x2b52f6('0x1023'))[_0x2b52f6('0x211f')](_0x2b52f6('0xa53')+_0x143a6e[_0x2b52f6('0x1ef7')][_0x2b52f6('0x1f73')]+_0x2b52f6('0x145a')+'\x20will\x20be\x20deleted.')[_0x2b52f6('0x2095')](_0x2b52f6('0x1817'))[_0x2b52f6('0x104f')](_0x55d394)['ok']('OK')[_0x2b52f6('0x1d47')](_0x2b52f6('0x28a0'));_0x45490d['show'](_0x34f1e5)['then'](function(){const _0xf82a59=_0x2b52f6;_0x143a6e[_0xf82a59('0x1ef7')][_0xf82a59('0xccd')](function(_0x188af6){_0x59a3bd(_0x188af6);}),_0x143a6e[_0xf82a59('0x1ef7')]=[];});}function _0x213dd9(){_0x143a6e['selectedScreenRecordings']=[];}function _0x1739cc(){const _0xc3c5c1=_0x31e2a1;_0x143a6e['selectedScreenRecordings']=_0x143a6e[_0xc3c5c1('0x2f0')][_0xc3c5c1('0x2319')];}}const _0x47d5d1=_0x2a36f9;_0x1016e9[_0x4376d8('0x1b9c')]=['$stateProvider',_0x4376d8('0x21fc')];function _0x1016e9(_0x3dad38,_0x253524){const _0x260caf=_0x4376d8;_0x3dad38[_0x260caf('0x1b9a')](_0x260caf('0x22d7'),{'abstract':!![],'url':'/video'})[_0x260caf('0x1b9a')](_0x260caf('0x13c4'),{'url':_0x260caf('0x1867'),'views':{'content@app':{'templateUrl':_0x4577f9,'controller':_0x260caf('0x115c')}},'resolve':{'screenRecordings':[_0x260caf('0x177'),'Auth',_0x260caf('0x1606'),function(_0x3e1240,_0x1e429a,_0x5edf0a){const _0x2ec4f9=_0x260caf;return _0x1e429a[_0x2ec4f9('0x1ba2')]('admin')?_0x3e1240['resolve'](_0x2ec4f9('0x156b'),{'fields':_0x2ec4f9('0x19fb'),'createdAt':_0x5edf0a['firstLastDayMonth'](),'includeAll':_0x2ec4f9('0xe34'),'sort':_0x2ec4f9('0x1ac6'),'limit':0xa,'offset':0x0}):_0x3e1240[_0x2ec4f9('0x898')](_0x2ec4f9('0x1164'),{'id':_0x1e429a[_0x2ec4f9('0x2831')]()['userProfileId'],'section':_0x2ec4f9('0x779'),'fields':_0x2ec4f9('0x19fb'),'createdAt':_0x5edf0a['firstLastDayMonth'](),'includeAll':_0x2ec4f9('0xe34'),'sort':_0x2ec4f9('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':['apiResolver','Auth',function(_0x1844fb,_0x51287e){const _0x53da0c=_0x260caf;return _0x51287e[_0x53da0c('0x1ba2')](_0x53da0c('0x20bf'))?null:_0x1844fb['resolve']('userProfile@get',{'fields':_0x53da0c('0x8d3'),'id':_0x51287e['getCurrentUser']()['userProfileId']});}],'userProfileSection':[_0x260caf('0x177'),_0x260caf('0x1885'),function(_0x53337e,_0x384b55){const _0x16936f=_0x260caf;return _0x384b55[_0x16936f('0x1ba2')](_0x16936f('0x20bf'))?null:_0x53337e[_0x16936f('0x898')](_0x16936f('0x23e7'),{'fields':_0x16936f('0x1134'),'userProfileId':_0x384b55[_0x16936f('0x2831')]()[_0x16936f('0x1e76')],'sectionId':0x7d1});}]},'authenticate':!![],'permissionId':0x7d1,'bodyClass':'video'}),_0x253524[_0x260caf('0x10b3')](_0x260caf('0x11ba'));}angular['module'](_0x4376d8('0x22d7'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),_0x4376d8('0x1187'),_0x4376d8('0x9c2'),'ngAnimate',_0x4376d8('0xf54'),_0x4376d8('0xcfd'),_0x4376d8('0x1ace'),_0x4376d8('0x199e'),_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),_0x4376d8('0x2459'),_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b')])[_0x4376d8('0x1980')](_0x1016e9)['controller'](_0x4376d8('0x1999'),_0x2f9344)[_0x4376d8('0x5ce')](_0x4376d8('0xfc2'),_0x26b3af)[_0x4376d8('0x5ce')](_0x4376d8('0x23a8'),_0x47d5d1);const _0x981463=_0x4cf2bc['p']+_0x4376d8('0x235f'),_0x4f981c=_0x4cf2bc['p']+'src/js/modules/main/apps/whatsapp/views/realtime/agents/view.html/view.html',_0xbe3fdf=_0x4cf2bc['p']+'src/js/modules/main/apps/whatsapp/views/realtime/queues/view.html/view.html';_0x4059de[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$q','$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x54a'),'pauses',_0x4376d8('0x25ea'),'rpcAgents',_0x4376d8('0x212e'),'socket',_0x4376d8('0x108a'),_0x4376d8('0x628'),_0x4376d8('0xdeb'),'userProfileSection',_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'$interval'];function _0x4059de(_0x297426,_0x4d1285,_0x48c54a,_0x12bf7f,_0x2c8952,_0x40e585,_0x4f927c,_0x5687ed,_0x24b082,_0x493069,_0x1cd7de,_0x1ce3cf,_0x653901,_0x2eeb05,_0x199700,_0x25d34b,_0x2df4ff,_0x506e17){const _0x470c62=_0x4376d8,_0x50beac=this,_0xd68dd8=[_0x470c62('0x25b1'),'online',_0x470c62('0x341'),_0x470c62('0x110a'),_0x470c62('0x11ec'),_0x470c62('0x110a'),'internal',_0x470c62('0x15'),_0x470c62('0x2764'),_0x470c62('0x105e'),'mailPause',_0x470c62('0x483'),_0x470c62('0x185b'),'faxPause','voicePause','chatCapacity',_0x470c62('0xe99'),'mailCapacity',_0x470c62('0x16f4'),'whatsappCapacity','faxCapacity','chatCurrentCapacity',_0x470c62('0x1149'),'mailCurrentCapacity',_0x470c62('0x1c68'),'whatsappCurrentCapacity','faxCurrentCapacity',_0x470c62('0x2766'),_0x470c62('0x200c'),_0x470c62('0x9a7'),_0x470c62('0x30'),_0x470c62('0x38d'),'faxStatus',_0x470c62('0x14a5'),_0x470c62('0x587'),_0x470c62('0x18b1'),'mailStatusTime',_0x470c62('0x893'),'whatsappStatusTime',_0x470c62('0xbdb'),_0x470c62('0x1b1d'),'queue','destconnectedlinenum','screenrecording','phoneBarEnableScreenRecordingByAgent',_0x470c62('0xa0d')],_0x5ec989=['chatPause','openchannelPause','mailPause',_0x470c62('0x483'),_0x470c62('0x185b'),_0x470c62('0x1d98'),_0x470c62('0x118a'),_0x470c62('0x1872')];_0x50beac['currentUser']=_0x25d34b[_0x470c62('0x2831')](),_0x50beac[_0x470c62('0x232c')]=[_0x470c62('0x1589'),_0x470c62('0x1166'),'busy',_0x470c62('0xa01'),_0x470c62('0x8d0')],_0x50beac[_0x470c62('0x1492')]=_0x4f927c||{'count':0x0,'rows':[]},_0x50beac[_0x470c62('0x1d11')]=_0x2df4ff,_0x50beac[_0x470c62('0xdeb')]=_0x2eeb05,_0x50beac[_0x470c62('0x383')]=_0x199700&&_0x199700[_0x470c62('0x335')]==0x1?_0x199700['rows'][0x0]:null,_0x50beac['crudPermissions']=_0x25d34b['parseCrudPermissions'](_0x50beac[_0x470c62('0x383')]?_0x50beac[_0x470c62('0x383')]['crudPermissions']:null),_0x50beac[_0x470c62('0x25ea')]=_0x5687ed?_0x49cbdd()['keyBy'](_0x5687ed[_0x470c62('0x2319')]?_0x5687ed[_0x470c62('0x2319')]:[],'id'):{},_0x50beac[_0x470c62('0x1593')]=_0x24b082?_0x49cbdd()[_0x470c62('0x8de')](_0x24b082[_0x470c62('0x2319')]?_0x24b082['rows']:[],'id'):{},_0x50beac[_0x470c62('0x219a')]={},_0x50beac['load']=![],_0x50beac['order']=[],_0x50beac[_0x470c62('0x20a5')]={};for(const _0x46eff6 in _0x50beac[_0x470c62('0x25ea')]){typeof _0x50beac[_0x470c62('0x25ea')][_0x46eff6]!==_0x470c62('0xfad')&&(_0x50beac[_0x470c62('0x25ea')][_0x46eff6][_0x470c62('0x161d')]=!![]);}_0x50beac[_0x470c62('0x826')]={'limit':0xa,'page':0x1,'order':_0x470c62('0xea6'),'globalStatusFilter':'','pauseTypeFilter':''},_0x50beac[_0x470c62('0xff8')]=_0x296d80,_0x50beac[_0x470c62('0x18ba')]=_0x44bab3,_0x50beac[_0x470c62('0x267a')]=_0x5cd2a7,_0x50beac[_0x470c62('0x2040')]=_0x2a201b,_0x50beac[_0x470c62('0x3eb')]=_0xedb042,_0x50beac['getAgentStatus']=_0x47ec26,_0x50beac[_0x470c62('0x21a0')]=_0x5d4868,_0x50beac['isPause']=_0x1326a8,_0x50beac[_0x470c62('0x160d')]=_0x2b4f58,_0x50beac[_0x470c62('0x179b')]=_0x39dd01,_0x50beac[_0x470c62('0xfd5')]=_0x2edb9f,_0x50beac['onUpdate']=_0x188d07,_0x50beac[_0x470c62('0xdf0')]=_0x42295a,_0x50beac[_0x470c62('0x410')]=_0x3bfec9,_0x50beac[_0x470c62('0x1ccb')]=_0x2896a1,_0x50beac[_0x470c62('0x1375')]=_0x38eb3a,_0x1cd7de['on'](_0x470c62('0x21a2'),_0x50beac[_0x470c62('0xfd5')]),_0x1cd7de['on'](_0x470c62('0x284f'),_0x50beac[_0x470c62('0x1fc4')]),_0x1cd7de['on']('user:agentconnect',_0x50beac[_0x470c62('0x410')]),_0x1cd7de['on'](_0x470c62('0x1f1f'),_0x50beac[_0x470c62('0x1ccb')]),_0x42295a();let _0x17a6ab=_0x506e17(function(){const _0x5e53a9=_0x470c62;_0x50beac[_0x5e53a9('0xae2')]&&(_0x50beac[_0x5e53a9('0xae2')]=![],_0x42295a());},0x3e7);function _0x42295a(){const _0x9a00b7=_0x470c62;_0x50beac[_0x9a00b7('0xae2')]=![];const _0x319cd0=_0x4d1285[_0x9a00b7('0x113c')]();_0x50beac[_0x9a00b7('0x1691')]=_0x319cd0['promise'],_0x50beac['filteredAgents']=[],_0x50beac[_0x9a00b7('0x1e36')]=[],_0x49cbdd()[_0x9a00b7('0x1857')](_0x50beac[_0x9a00b7('0x25ea')],function(_0x22819c,_0x51a505){const _0x812fa0=_0x9a00b7;_0x50beac[_0x812fa0('0x1593')][_0x51a505]&&_0x49cbdd()['merge'](_0x22819c,_0x49cbdd()[_0x812fa0('0x230a')](_0x49cbdd()[_0x812fa0('0x15c3')](_0x50beac['rpcAgents'][_0x51a505],_0x5ec989),_0xd68dd8)),_0x5d4868(_0x22819c),_0x22819c[_0x812fa0('0x1872')]?(_0x50beac[_0x812fa0('0x1b79')][_0x812fa0('0x269f')](_0x22819c),_0x50beac[_0x812fa0('0x20a5')][_0x22819c[_0x812fa0('0xe3e')]]=_0x51a505):_0x22819c[_0x812fa0('0x22cb')]=_0x49cbdd()['toNumber'](_0x107a13()()[_0x812fa0('0x1c0d')]('x'));});_0x50beac[_0x9a00b7('0x826')][_0x9a00b7('0x14f9')]&&_0x49cbdd()[_0x9a00b7('0x5f3')](_0x50beac['filteredAgents'],function(_0x23a43c){const _0x2fdd88=_0x9a00b7;return _0x23a43c['globalStatus']!==_0x50beac[_0x2fdd88('0x826')][_0x2fdd88('0x14f9')];});_0x50beac[_0x9a00b7('0x826')][_0x9a00b7('0x44f')]&&_0x49cbdd()[_0x9a00b7('0x5f3')](_0x50beac[_0x9a00b7('0x1b79')],function(_0x42bcc3){const _0x556d32=_0x9a00b7;return _0x42bcc3[_0x556d32('0x11ec')]!==_0x50beac[_0x556d32('0x826')][_0x556d32('0x44f')];});_0x50beac[_0x9a00b7('0x826')]['filter']&&_0x49cbdd()['remove'](_0x50beac[_0x9a00b7('0x1b79')],function(_0x8c782c){const _0x1c06cf=_0x9a00b7;return _0x8c782c[_0x1c06cf('0xea6')][_0x1c06cf('0x19b')]()[_0x1c06cf('0x2567')](_0x50beac[_0x1c06cf('0x826')][_0x1c06cf('0x2483')][_0x1c06cf('0x19b')]())<0x0;});_0x50beac[_0x9a00b7('0x1b79')]=_0x294821(_0x50beac[_0x9a00b7('0x1b79')]);const _0x55ca8f=(_0x50beac[_0x9a00b7('0x826')]['page']-0x1)*_0x50beac[_0x9a00b7('0x826')][_0x9a00b7('0x193b')];_0x50beac[_0x9a00b7('0x219a')]=_0x49cbdd()[_0x9a00b7('0x6c0')](_0x50beac[_0x9a00b7('0x1b79')],_0x55ca8f)[_0x9a00b7('0x275f')](0x0,_0x50beac[_0x9a00b7('0x826')][_0x9a00b7('0x193b')]);for(let _0x1b3166=0x0;_0x1b3166<_0x50beac[_0x9a00b7('0x219a')][_0x9a00b7('0x1f73')];_0x1b3166+=0x1){_0x50beac[_0x9a00b7('0x1e36')]['push'](_0x50beac['paginatedAgents'][_0x1b3166]['id']);}_0x319cd0['resolve'](),_0x50beac[_0x9a00b7('0xae2')]=!![];}function _0x2edb9f(_0x37c3d0){const _0x2ade9e=_0x470c62;_0x50beac[_0x2ade9e('0x25ea')][_0x37c3d0['id']]&&(_0x49cbdd()['merge'](_0x50beac[_0x2ade9e('0x25ea')][_0x37c3d0['id']],_0x49cbdd()[_0x2ade9e('0x230a')](_0x49cbdd()['omit'](_0x37c3d0,_0x5ec989),_0xd68dd8)),_0x49cbdd()[_0x2ade9e('0x1ced')](_0x50beac[_0x2ade9e('0x1593')][_0x37c3d0['id']],_0x49cbdd()['pick'](_0x49cbdd()[_0x2ade9e('0x15c3')](_0x37c3d0,_0x5ec989),_0xd68dd8)),_0x5d4868(_0x50beac['agents'][_0x37c3d0['id']]));}function _0x188d07(_0x58f7fd){const _0x35e400=_0x470c62;_0x50beac['agents'][_0x58f7fd['id']]&&(_0x49cbdd()[_0x35e400('0x1ced')](_0x50beac[_0x35e400('0x25ea')][_0x58f7fd['id']],_0x49cbdd()[_0x35e400('0x230a')](_0x58f7fd,_0xd68dd8)),_0x49cbdd()['merge'](_0x50beac[_0x35e400('0x1593')][_0x58f7fd['id']],_0x49cbdd()[_0x35e400('0x230a')](_0x58f7fd,_0xd68dd8)),_0x58f7fd[_0x35e400('0x110a')]&&(_0x50beac['agents'][_0x58f7fd['id']][_0x35e400('0x22cb')]=_0x58f7fd[_0x35e400('0x110a')],_0x50beac[_0x35e400('0x1593')][_0x58f7fd['id']][_0x35e400('0x22cb')]=_0x58f7fd[_0x35e400('0x110a')]),_0x5d4868(_0x50beac[_0x35e400('0x25ea')][_0x58f7fd['id']]));}function _0x3bfec9(_0x54dd33){const _0x1427b3=_0x470c62;_0x50beac[_0x1427b3('0x25ea')][_0x50beac['agentInternal'][_0x54dd33[_0x1427b3('0x1177')]]]&&(_0x49cbdd()['merge'](_0x50beac[_0x1427b3('0x25ea')][_0x50beac['agentInternal'][_0x54dd33['destaccountcode']]],_0x49cbdd()[_0x1427b3('0x230a')](_0x54dd33,[_0x1427b3('0x1bd'),_0x1427b3('0xce0')])),_0x49cbdd()[_0x1427b3('0x1ced')](_0x50beac[_0x1427b3('0x1593')][_0x50beac['agentInternal'][_0x54dd33[_0x1427b3('0x1177')]]],_0x49cbdd()[_0x1427b3('0x230a')](_0x54dd33,['queue',_0x1427b3('0xce0')])));}function _0x2896a1(_0x2b9d0b){const _0xaf091e=_0x470c62;_0x50beac[_0xaf091e('0x25ea')][_0x50beac[_0xaf091e('0x20a5')][_0x2b9d0b[_0xaf091e('0x1177')]]]&&(_0x50beac[_0xaf091e('0x25ea')][_0x50beac['agentInternal'][_0x2b9d0b['destaccountcode']]]=_0x49cbdd()[_0xaf091e('0x15c3')](_0x50beac[_0xaf091e('0x25ea')][_0x50beac['agentInternal'][_0x2b9d0b['destaccountcode']]],['queue',_0xaf091e('0xce0')]),_0x50beac[_0xaf091e('0x1593')][_0x50beac[_0xaf091e('0x20a5')][_0x2b9d0b[_0xaf091e('0x1177')]]]=_0x49cbdd()['omit'](_0x50beac[_0xaf091e('0x1593')][_0x50beac[_0xaf091e('0x20a5')][_0x2b9d0b[_0xaf091e('0x1177')]]],[_0xaf091e('0x1bd'),_0xaf091e('0xce0')]));}function _0x296d80(_0x470bd6){const _0x8a9e9=_0x470c62;return _0x493069[_0x8a9e9('0x221e')][_0x8a9e9('0xff8')]({'id':_0x470bd6['id'],'device':_0x8a9e9('0x20c8'),'agent_id':_0x470bd6['id'],'agent_name':_0x470bd6['name']})['$promise']['then'](function(){const _0x37bddf=_0x8a9e9;_0x1ce3cf[_0x37bddf('0x130d')]({'title':'Agent\x20logout','msg':_0x470bd6[_0x37bddf('0xea6')]+_0x37bddf('0xe21')}),_0x50beac[_0x37bddf('0x25ea')][_0x470bd6['id']]&&(_0x50beac[_0x37bddf('0x25ea')][_0x470bd6['id']][_0x37bddf('0x1872')]=![]),_0x50beac[_0x37bddf('0x1593')][_0x470bd6['id']]&&(_0x50beac['rpcAgents'][_0x470bd6['id']][_0x37bddf('0x1872')]=![]),_0x42295a();})[_0x8a9e9('0x16df')](function(_0x2e47d8){const _0x40f294=_0x8a9e9;_0x1ce3cf[_0x40f294('0x1db9')]({'title':_0x2e47d8['status']?_0x40f294('0x14f7')+_0x2e47d8[_0x40f294('0x11c5')]+_0x40f294('0x16e4')+_0x2e47d8[_0x40f294('0x1833')]:_0x40f294('0x18ea'),'msg':_0x2e47d8[_0x40f294('0x1457')]?JSON['stringify'](_0x2e47d8['data']['message']):_0x2e47d8[_0x40f294('0x9b6')]()});});}function _0x5cd2a7(_0x5d6c53,_0x1063c3){const _0x1f6efe=_0x470c62;return _0x493069[_0x1f6efe('0x221e')][_0x1f6efe('0x267a')]({'id':_0x5d6c53['id'],'type':_0x1063c3})[_0x1f6efe('0x1af5')]['then'](function(_0x16279b){const _0x1a8cab=_0x1f6efe;_0x50beac[_0x1a8cab('0x25ea')][_0x5d6c53['id']]&&_0x49cbdd()[_0x1a8cab('0x1ced')](_0x50beac[_0x1a8cab('0x25ea')][_0x5d6c53['id']],_0x49cbdd()[_0x1a8cab('0x230a')](_0x16279b,_0xd68dd8)),_0x50beac['rpcAgents'][_0x5d6c53['id']]&&_0x49cbdd()['merge'](_0x50beac[_0x1a8cab('0x1593')][_0x5d6c53['id']],_0x49cbdd()['pick'](_0x16279b,_0xd68dd8)),_0x5d4868(_0x50beac['agents'][_0x5d6c53['id']]);})[_0x1f6efe('0x16df')](function(_0x59b042){const _0x4c991c=_0x1f6efe;_0x1ce3cf[_0x4c991c('0x1db9')]({'title':_0x59b042[_0x4c991c('0x11c5')]?_0x4c991c('0x14f7')+_0x59b042[_0x4c991c('0x11c5')]+_0x4c991c('0x16e4')+_0x59b042[_0x4c991c('0x1833')]:_0x4c991c('0x18ea'),'msg':_0x59b042[_0x4c991c('0x1457')]?JSON[_0x4c991c('0x678')](_0x59b042[_0x4c991c('0x1457')][_0x4c991c('0x1603')]):_0x59b042['toString']()});});}function _0x2a201b(_0x57c7b3){const _0x1d89d2=_0x470c62;return _0x493069['user'][_0x1d89d2('0xc57')]({'id':_0x57c7b3['id']})[_0x1d89d2('0x1af5')][_0x1d89d2('0x17e7')](function(_0x3ab840){const _0xf3e8ac=_0x1d89d2;_0x50beac[_0xf3e8ac('0x25ea')][_0x57c7b3['id']]&&_0x49cbdd()[_0xf3e8ac('0x1ced')](_0x50beac['agents'][_0x57c7b3['id']],_0x49cbdd()[_0xf3e8ac('0x230a')](_0x3ab840,_0xd68dd8)),_0x50beac[_0xf3e8ac('0x1593')][_0x57c7b3['id']]&&_0x49cbdd()['merge'](_0x50beac['rpcAgents'][_0x57c7b3['id']],_0x49cbdd()[_0xf3e8ac('0x230a')](_0x3ab840,_0xd68dd8)),_0x5d4868(_0x50beac[_0xf3e8ac('0x25ea')][_0x57c7b3['id']]);})['catch'](function(_0x21537d){const _0x58bdcf=_0x1d89d2;_0x1ce3cf['error']({'title':_0x21537d['status']?_0x58bdcf('0x14f7')+_0x21537d[_0x58bdcf('0x11c5')]+_0x58bdcf('0x16e4')+_0x21537d[_0x58bdcf('0x1833')]:'api.staff.save','msg':_0x21537d[_0x58bdcf('0x1457')]?JSON['stringify'](_0x21537d[_0x58bdcf('0x1457')][_0x58bdcf('0x1603')]):_0x21537d[_0x58bdcf('0x9b6')]()});});}function _0xedb042(_0x31fab0){const _0x426891=_0x470c62;_0x12bf7f[_0x426891('0x28e2')](_0x12bf7f[_0x426891('0x99f')]()[_0x426891('0x2f4')](!![])[_0x426891('0x24d3')]('Legend')[_0x426891('0x211f')](_0x426891('0xf9f'))['ok']('Ok')[_0x426891('0x104f')](_0x31fab0));}function _0x44bab3(_0x2f08e2,_0x90b525){const _0x30699e=_0x470c62;_0x12bf7f[_0x30699e('0x28e2')]({'controller':_0x30699e('0x25ed'),'controllerAs':'vm','templateUrl':_0x5e8625,'parent':angular['element'](_0x2c8952[_0x30699e('0x13aa')]),'targetEvent':_0x90b525,'clickOutsideToClose':!![],'locals':{'agent':_0x2f08e2,'agents':[],'channel':'whatsapp','direction':_0x30699e('0x1e77'),'crudPermissions':_0x50beac[_0x30699e('0x103e')]}});}function _0x1326a8(_0x18f67){const _0x2b947e=_0x470c62;return _0x18f67===_0x2b947e('0x267a')||_0x18f67===_0x2b947e('0x1998');}function _0x2b4f58(_0x11c1db){const _0x4911c0=_0x470c62;return _0x11c1db===_0x4911c0('0x267a');}function _0x39dd01(_0x2ef2d8){const _0x3d72e1=_0x470c62;return _0x2ef2d8===_0x3d72e1('0x1998');}function _0x268e69(_0x450df1){const _0x178270=_0x470c62;return _0x450df1===_0x178270('0x1ff2')||_0x450df1===_0x178270('0xf10')||_0x450df1==='unavailable'||_0x450df1==='ringing'||_0x49cbdd()['isNil'](_0x450df1);}function _0x47ec26(_0x566bf3,_0x7ec93e){const _0x347d72=_0x470c62;if(_0x7ec93e===_0x347d72('0x1fe1')){if(_0x566bf3[_0x7ec93e+_0x347d72('0x51c')]!==_0x347d72('0x1ff2'))return _0x566bf3[_0x7ec93e+_0x347d72('0x51c')];if(_0x566bf3[_0x7ec93e+_0x347d72('0x5d5')])return _0x566bf3[_0x7ec93e+_0x347d72('0x51c')]=_0x347d72('0x267a'),_0x347d72('0x267a');return'idle';}else{if(_0x566bf3[_0x7ec93e+'Pause'])return _0x566bf3[_0x7ec93e+_0x347d72('0x51c')]='pause','pause';return _0x566bf3[_0x7ec93e+_0x347d72('0x51c')];}}function _0x5d4868(_0x53ae88){const _0x26debf=_0x470c62;let _0x1d1beb=_0x26debf('0xf10');if(_0x49cbdd()[_0x26debf('0x12df')]([_0x47ec26(_0x53ae88,_0x26debf('0x1fe1')),_0x47ec26(_0x53ae88,_0x26debf('0x2219')),_0x47ec26(_0x53ae88,_0x26debf('0xc2')),_0x47ec26(_0x53ae88,_0x26debf('0x1508')),_0x47ec26(_0x53ae88,_0x26debf('0x2cd')),_0x47ec26(_0x53ae88,_0x26debf('0x1d27')),_0x47ec26(_0x53ae88,_0x26debf('0xc23'))],_0x1326a8))_0x1d1beb=_0x26debf('0x267a');else{if(_0x49cbdd()[_0x26debf('0x26f8')]([_0x47ec26(_0x53ae88,'voice'),_0x47ec26(_0x53ae88,_0x26debf('0x2219')),_0x47ec26(_0x53ae88,'mail'),_0x47ec26(_0x53ae88,'openchannel'),_0x47ec26(_0x53ae88,_0x26debf('0x2cd')),_0x47ec26(_0x53ae88,_0x26debf('0x1d27')),_0x47ec26(_0x53ae88,_0x26debf('0xc23'))],_0x1326a8))_0x1d1beb=_0x26debf('0x1998');else _0x49cbdd()['every']([_0x47ec26(_0x53ae88,_0x26debf('0x1fe1')),_0x47ec26(_0x53ae88,_0x26debf('0x2219')),_0x47ec26(_0x53ae88,'mail'),_0x47ec26(_0x53ae88,_0x26debf('0x1508')),_0x47ec26(_0x53ae88,'sms'),_0x47ec26(_0x53ae88,_0x26debf('0x1d27')),_0x47ec26(_0x53ae88,'fax')],_0x268e69)?_0x1d1beb='idle':_0x1d1beb=_0x26debf('0xe88');}_0x53ae88[_0x26debf('0xf45')]!==_0x1d1beb&&(_0x53ae88[_0x26debf('0xf45')]=_0x1d1beb,_0x53ae88['init']?(_0x53ae88[_0x26debf('0x161d')]=![],_0x53ae88[_0x26debf('0x22cb')]=_0x1326a8(_0x1d1beb)?_0x49cbdd()[_0x26debf('0xa33')](_0x107a13()(_0x53ae88[_0x26debf('0x110a')])[_0x26debf('0x1c0d')]('x')):_0x49cbdd()[_0x26debf('0x103b')]([_0x53ae88[_0x26debf('0x1b1d')],_0x53ae88[_0x26debf('0x587')],_0x53ae88[_0x26debf('0x16a4')],_0x53ae88[_0x26debf('0x893')],_0x53ae88['whatsappStatusTime'],_0x53ae88[_0x26debf('0x18b1')],_0x53ae88['faxStatusTime']])):_0x53ae88[_0x26debf('0x22cb')]=_0x49cbdd()[_0x26debf('0xa33')](_0x107a13()()[_0x26debf('0x1c0d')]('x')));}function _0x294821(_0x1c6ea9){const _0x5ae97a=_0x470c62,_0x492d95=_0x49cbdd()['startsWith'](_0x50beac['query'][_0x5ae97a('0x1e36')],'-')?_0x5ae97a('0x187b'):_0x5ae97a('0x161a');return _0x49cbdd()['orderBy'](_0x1c6ea9,[_0x50beac['query'][_0x5ae97a('0x1e36')][_0x5ae97a('0x737')]('-','')],[_0x492d95]);}function _0x535c8d(){const _0x1abf34=_0x470c62;_0x17a6ab&&(_0x506e17[_0x1abf34('0x1d47')](_0x17a6ab),_0x17a6ab=null);}function _0x38eb3a(_0x417142,_0x31a0d8){const _0x314961=_0x470c62;return _0x493069['user'][_0x314961('0x27ba')]({'id':_0x417142['id']},{'screenrecording':_0x31a0d8})[_0x314961('0x1af5')]['catch'](function(_0x539e88){const _0x35e0a8=_0x314961;_0x1ce3cf[_0x35e0a8('0x1db9')]({'title':_0x539e88[_0x35e0a8('0x11c5')]?_0x35e0a8('0x14f7')+_0x539e88[_0x35e0a8('0x11c5')]+_0x35e0a8('0x16e4')+_0x539e88['statusText']:_0x35e0a8('0xad3'),'msg':_0x539e88['data']?JSON[_0x35e0a8('0x678')](_0x539e88[_0x35e0a8('0x1457')][_0x35e0a8('0x1603')]):_0x539e88[_0x35e0a8('0x9b6')]()});});}_0x297426[_0x470c62('0x207c')]('$destroy',function(){const _0x343846=_0x470c62;_0x1cd7de[_0x343846('0x1c65')]('user:save'),_0x1cd7de[_0x343846('0x1c65')]('user:update'),_0x1cd7de['removeAllListeners']('user:agentconnect'),_0x1cd7de['removeAllListeners'](_0x343846('0x1f1f')),_0x535c8d();});}const _0x1b96f0=_0x4059de,_0x3db769=_0x4cf2bc['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/create/dialog.html/dialog.html',_0x249e33=_0x4cf2bc['p']+_0x4376d8('0x2bd');_0x38c0dd[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xef1'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x26ca'),_0x4376d8('0x33a'),_0x4376d8('0x14c4'),_0x4376d8('0x1d90'),_0x4376d8('0x212e'),'socket',_0x4376d8('0x108a'),_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x1885')];function _0x38c0dd(_0x42fe95,_0x5a6324,_0x5a0f05,_0x2aa346,_0xc2889d,_0x177069,_0x5e0fb4,_0x436936,_0x2b9192,_0x365add,_0x461352,_0x29395c,_0x30e769,_0x2b1468){const _0x40b9c5=_0x4376d8,_0x524fad=this,_0x25ac1a=[_0x40b9c5('0x1458'),'available','waiting','talking','pTalking',_0x40b9c5('0x829'),_0x40b9c5('0x1603'),_0x40b9c5('0x10c9'),_0x40b9c5('0xa39'),'Trunk',_0x40b9c5('0x1bb8')];_0x524fad[_0x40b9c5('0x197c')]=_0x2b1468[_0x40b9c5('0x2831')](),_0x524fad[_0x40b9c5('0x335')]=_0x5e0fb4['count']?_0x5e0fb4[_0x40b9c5('0x335')]:0x0,_0x524fad['queues']=_0x5e0fb4?_0x49cbdd()['keyBy'](_0x5e0fb4[_0x40b9c5('0x2319')]?_0x5e0fb4[_0x40b9c5('0x2319')]:[],'id'):{},_0x524fad[_0x40b9c5('0x1d90')]=_0x436936?_0x49cbdd()[_0x40b9c5('0x8de')](_0x436936[_0x40b9c5('0x2319')]?_0x436936['rows']:[],'id'):{},_0x524fad[_0x40b9c5('0xdeb')]=_0x29395c,_0x524fad[_0x40b9c5('0x383')]=_0x30e769&&_0x30e769[_0x40b9c5('0x335')]==0x1?_0x30e769[_0x40b9c5('0x2319')][0x0]:null,_0x524fad[_0x40b9c5('0x103e')]=_0x2b1468[_0x40b9c5('0x17a9')](_0x524fad[_0x40b9c5('0x383')]?_0x524fad[_0x40b9c5('0x383')][_0x40b9c5('0x103e')]:null);_0x2b1468[_0x40b9c5('0x1ba2')](_0x40b9c5('0x20bf'))?_0x524fad[_0x40b9c5('0x826')]={'type':_0x40b9c5('0x1e77'),'sort':_0x40b9c5('0x1ac6'),'limit':0xa,'page':0x1}:_0x524fad[_0x40b9c5('0x826')]={'id':_0x524fad[_0x40b9c5('0x197c')]['id'],'channel':_0x40b9c5('0x1d27'),'type':_0x40b9c5('0x1e77'),'sort':'-updatedAt','limit':0xa,'page':0x1};_0x524fad[_0x40b9c5('0x130d')]=_0x2909b0,_0x524fad[_0x40b9c5('0x1f3b')]=_0x238ce5,_0x524fad[_0x40b9c5('0x1eaa')]=_0x4b295d,_0x524fad['agentAdd']=_0x126813,_0x524fad[_0x40b9c5('0x139c')]=_0x393842,_0x524fad['onSave']=_0x252914,_0x524fad['onSaveMember']=_0x4596f3,_0x524fad[_0x40b9c5('0x110')]=_0xa67c1,_0x524fad[_0x40b9c5('0x14ed')]=_0x39365e,_0x524fad[_0x40b9c5('0x1781')]=_0x3db125,_0x524fad[_0x40b9c5('0x1532')]=_0x316f7f,_0x524fad['$onInit']=_0x350e8c,_0x524fad['order']=[],_0x49cbdd()[_0x40b9c5('0x1857')](_0x524fad[_0x40b9c5('0x14c4')],function(_0xed330){const _0x3bdf6d=_0x40b9c5;_0x524fad[_0x3bdf6d('0x1e36')][_0x3bdf6d('0x269f')](_0xed330['id']);}),_0x365add['on'](_0x40b9c5('0x2652'),_0x524fad[_0x40b9c5('0xfd5')]),_0x365add['on'](_0x40b9c5('0x1c08'),_0x524fad[_0x40b9c5('0x1899')]),_0x365add['on'](_0x40b9c5('0x25f1'),_0x524fad[_0x40b9c5('0x110')]),_0x365add['on'](_0x40b9c5('0x284f'),_0x524fad[_0x40b9c5('0x14ed')]),_0x365add['on']('userVoiceQueue:remove',_0x524fad[_0x40b9c5('0x1532')]),_0x365add['on'](_0x40b9c5('0x1cfb'),_0x524fad['onLogin']);function _0x350e8c(){const _0x10800b=_0x40b9c5,_0x53adbf=[];return _0x49cbdd()['forIn'](_0x524fad['queues'],function(_0x4aad4b,_0x1ab036){const _0xdad16b=a0_0xd29e;_0x4aad4b[_0xdad16b('0x1bb8')]=0x0,_0x4aad4b['loggedInDb']=0x0,_0x524fad[_0xdad16b('0x14c4')][_0x1ab036][_0xdad16b('0x25ea')]={},_0x53adbf[_0xdad16b('0x269f')](_0x2b9192['whatsappQueue']['getMembers']({'id':_0x1ab036})[_0xdad16b('0x1af5')]),_0x524fad['rpcQueues'][_0x1ab036]&&_0x49cbdd()[_0xdad16b('0x1ced')](_0x4aad4b,_0x49cbdd()['pick'](_0x524fad['rpcQueues'][_0x1ab036],_0x25ac1a));}),_0x2aa346[_0x10800b('0x1283')](_0x53adbf)['then'](function(_0x576149){const _0x4f26ea=_0x10800b;for(let _0x4b61b7=0x0;_0x4b61b7<_0x576149[_0x4f26ea('0x1f73')];_0x4b61b7+=0x1){for(let _0x36741c=0x0;_0x36741c<_0x576149[_0x4b61b7][_0x4f26ea('0x2319')][_0x4f26ea('0x1f73')];_0x36741c++){_0x576149[_0x4b61b7][_0x4f26ea('0x2319')][_0x36741c][_0x4f26ea('0x1bb8')]&&_0x524fad[_0x4f26ea('0x14c4')][_0x576149[_0x4b61b7][_0x4f26ea('0x2319')][_0x36741c][_0x4f26ea('0x26ae')]]['paused']++,_0x524fad[_0x4f26ea('0x14c4')][_0x576149[_0x4b61b7]['rows'][_0x36741c][_0x4f26ea('0x26ae')]][_0x4f26ea('0x6c2')]++,_0x524fad[_0x4f26ea('0x14c4')][_0x576149[_0x4b61b7][_0x4f26ea('0x2319')][_0x36741c]['WhatsappQueueId']][_0x4f26ea('0x25ea')][_0x576149[_0x4b61b7][_0x4f26ea('0x2319')][_0x36741c][_0x4f26ea('0x5e5')]]=_0x576149[_0x4b61b7]['rows'][_0x36741c][_0x4f26ea('0x26ae')];}}})[_0x10800b('0x16df')](function(_0x41c05b){const _0x53c5c3=_0x10800b;console[_0x53c5c3('0x1db9')](_0x41c05b);});}function _0x252914(_0x584584){const _0x3f8fa0=_0x40b9c5;_0x524fad['queues'][_0x584584['id']]&&_0x49cbdd()[_0x3f8fa0('0x1ced')](_0x524fad[_0x3f8fa0('0x14c4')][_0x584584['id']],_0x49cbdd()[_0x3f8fa0('0x230a')](_0x584584,_0x25ac1a));}function _0x4596f3(_0x37528b){const _0x516079=_0x40b9c5;_0x524fad[_0x516079('0x14c4')][_0x37528b[_0x516079('0x26ae')]]&&_0x524fad[_0x516079('0x14c4')][_0x37528b[_0x516079('0x26ae')]][_0x516079('0x6c2')]++;}function _0xa67c1(_0x437c3f){const _0x22b565=_0x40b9c5;_0x524fad[_0x22b565('0x14c4')][_0x437c3f[_0x22b565('0x26ae')]]&&_0x524fad['queues'][_0x437c3f['WhatsappQueueId']][_0x22b565('0x6c2')]--;}function _0x39365e(_0x5d8cde){const _0x54802e=_0x40b9c5;console[_0x54802e('0x1d63')](_0x54802e('0x14ed'),_0x5d8cde);if(_0x5d8cde[_0x54802e('0x118a')])_0x49cbdd()[_0x54802e('0x1857')](_0x524fad[_0x54802e('0x14c4')],function(_0x3cbbc6){const _0x228317=_0x54802e;_0x3cbbc6['agents'][_0x5d8cde['id']]&&(_0x3cbbc6[_0x228317('0x1bb8')]+=0x1,console['log'](_0x228317('0x267a')));});else!_0x5d8cde['voicePause']&&_0x49cbdd()[_0x54802e('0x1857')](_0x524fad[_0x54802e('0x14c4')],function(_0xaebc3a){const _0x3b4575=_0x54802e;_0xaebc3a[_0x3b4575('0x25ea')][_0x5d8cde['id']]&&(_0xaebc3a['paused']>0x0&&(_0xaebc3a[_0x3b4575('0x1bb8')]-=0x1,console[_0x3b4575('0x1d63')]('unpause')));});}function _0x3db125(_0x44fd59){const _0x445080=_0x40b9c5;console[_0x445080('0x1d63')](_0x445080('0x1a6b'),_0x44fd59),_0x524fad[_0x445080('0x14c4')][_0x44fd59['WhatsappQueueId']]&&(_0x524fad['queues'][_0x44fd59[_0x445080('0x26ae')]]['loggedInDb']+=0x1,_0x524fad[_0x445080('0x14c4')][_0x44fd59['WhatsappQueueId']]['agents'][_0x44fd59[_0x445080('0x5e5')]]=_0x44fd59[_0x445080('0x26ae')]);}function _0x316f7f(_0x1cb1af){const _0x49bd64=_0x40b9c5;console[_0x49bd64('0x1d63')]('onLogout',_0x1cb1af),_0x524fad['queues'][_0x1cb1af['WhatsappQueueId']]&&_0x524fad['queues'][_0x1cb1af['WhatsappQueueId']]['loggedInDb']>0x0&&(_0x524fad['queues'][_0x1cb1af[_0x49bd64('0x26ae')]][_0x49bd64('0x6c2')]-=0x1,delete _0x524fad[_0x49bd64('0x14c4')][_0x1cb1af[_0x49bd64('0x26ae')]][_0x49bd64('0x25ea')][_0x1cb1af[_0x49bd64('0x5e5')]]);}let _0x26564f=!![],_0x209a2f=0x1;_0x42fe95[_0x40b9c5('0x620')](_0x40b9c5('0x3ed'),function(_0x1e2f2a,_0x2f8015){const _0xf78d41=_0x40b9c5;_0x26564f?_0x5a6324(function(){_0x26564f=![];}):(!_0x2f8015&&(_0x209a2f=_0x524fad[_0xf78d41('0x826')][_0xf78d41('0x115a')]),_0x1e2f2a!==_0x2f8015&&(_0x524fad['query'][_0xf78d41('0x115a')]=0x1),!_0x1e2f2a&&(_0x524fad['query']['page']=_0x209a2f),_0x524fad[_0xf78d41('0x1f3b')]());});function _0x2909b0(_0x12bbdf){const _0x406812=_0x40b9c5;_0x524fad['count']=_0x12bbdf[_0x406812('0x335')],_0x524fad['queues']=_0x12bbdf?_0x49cbdd()[_0x406812('0x8de')](_0x12bbdf[_0x406812('0x2319')]?_0x12bbdf[_0x406812('0x2319')]:[],'id'):{};if(_0x12bbdf['rows']){_0x524fad[_0x406812('0x1e36')]=[];for(let _0x49a768=0x0;_0x49a768<_0x12bbdf[_0x406812('0x2319')]['length'];_0x49a768++){_0x524fad[_0x406812('0x1e36')]['push'](_0x12bbdf['rows'][_0x49a768]['id']);}}_0x350e8c();}function _0x238ce5(){const _0xe12812=_0x40b9c5;_0x524fad[_0xe12812('0x826')]['offset']=(_0x524fad[_0xe12812('0x826')][_0xe12812('0x115a')]-0x1)*_0x524fad['query'][_0xe12812('0x193b')],_0x2b1468[_0xe12812('0x1ba2')]('admin')?_0x524fad[_0xe12812('0x1691')]=_0x2b9192[_0xe12812('0x1e28')][_0xe12812('0x1c53')](_0x524fad[_0xe12812('0x826')],_0x2909b0)['$promise']:(_0x524fad[_0xe12812('0x826')]['id']=_0x524fad[_0xe12812('0xdeb')]['id'],_0x524fad[_0xe12812('0x826')][_0xe12812('0x16f8')]='WhatsappQueues',_0x524fad[_0xe12812('0x1691')]=_0x2b9192[_0xe12812('0xdeb')]['getResources'](_0x524fad[_0xe12812('0x826')],_0x2909b0)[_0xe12812('0x1af5')]);}function _0x4b295d(_0x38dcfd,_0x21a7cd){const _0x500112=_0x40b9c5;_0x5a0f05['show']({'controller':'CreateOrEditWhatsappQueueDialogController','controllerAs':'vm','templateUrl':_0x3db769,'parent':angular[_0x500112('0x1ce1')](_0xc2889d['body']),'targetEvent':_0x38dcfd,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x21a7cd,'whatsappQueues':_0x49cbdd()['values'](_0x524fad[_0x500112('0x14c4')]),'license':null,'setting':null,'crudPermissions':_0x524fad[_0x500112('0x103e')]}});}function _0x126813(_0x23dd41,_0x38cc2a){const _0x1e0c3=_0x40b9c5;_0x5a0f05[_0x1e0c3('0x28e2')]({'controller':_0x1e0c3('0xc40'),'controllerAs':'vm','templateUrl':_0x249e33,'parent':angular[_0x1e0c3('0x1ce1')](_0xc2889d['body']),'targetEvent':_0x23dd41,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x38cc2a,'whatsappQueues':_0x524fad[_0x1e0c3('0x14c4')]?_0x524fad[_0x1e0c3('0x14c4')][_0x1e0c3('0x2319')]:[],'realtime':![],'crudPermissions':_0x524fad[_0x1e0c3('0x103e')]}});}function _0x393842(_0x27871e){const _0x392428=_0x40b9c5;return _0x2b9192['whatsappQueue'][_0x392428('0x27ba')](_0x27871e)[_0x392428('0x1af5')][_0x392428('0x17e7')](function(){const _0x30c04b=_0x392428;_0x461352['success']({'title':'Queue\x20properly\x20updated!','msg':_0x27871e[_0x30c04b('0x2aa')]?_0x27871e[_0x30c04b('0x2aa')]+'\x20has\x20been\x20updated!':''});})[_0x392428('0x16df')](function(_0x1a9794){const _0x32570a=_0x392428;_0x461352[_0x32570a('0x1db9')]({'title':'Error\x20creating\x20queue!','msg':_0x1a9794[_0x32570a('0x1603')]});});}_0x42fe95[_0x40b9c5('0x207c')]('$destroy',function(){const _0x1205d6=_0x40b9c5;_0x365add[_0x1205d6('0x1c65')]('whatsapp_queue:save'),_0x365add['removeAllListeners'](_0x1205d6('0x25f1')),_0x365add[_0x1205d6('0x1c65')](_0x1205d6('0x1c08')),_0x365add[_0x1205d6('0x1c65')](_0x1205d6('0x284f')),_0x365add[_0x1205d6('0x1c65')](_0x1205d6('0x1f34')),_0x365add[_0x1205d6('0x1c65')]('userVoiceQueue:save');});}const _0x20d0d5=_0x38c0dd;function _0x185fe0(){const _0x28af56=_0x4376d8;return{'status':{'registered':_0x28af56('0x9b4'),'unregistered':_0x28af56('0x20ec'),'lagged':_0x28af56('0x20ec'),'reachable':_0x28af56('0x9b4'),'unreachable':_0x28af56('0x20ec'),'unknown':'grey-fg\x20icon-minus-circle'},'state':{'unknown':_0x28af56('0x9d7'),'not_inuse':_0x28af56('0x23ce'),'inuse':_0x28af56('0xbd2'),'busy':_0x28af56('0xf9e'),'invalid':_0x28af56('0x9d7'),'unavailable':_0x28af56('0x9d7'),'ringing':_0x28af56('0x109b'),'ringinuse':_0x28af56('0x109b'),'onhold':'blue-300-fg\x20icon-phone-paused'},'channelStatus':{'ring':'blue-300-fg\x20icon-phone-incoming','up':_0x28af56('0xc21'),'hangup':_0x28af56('0x1147')},'channelStatusOut':{'ring':_0x28af56('0xc0c'),'up':_0x28af56('0xc21'),'hangup':_0x28af56('0x1147')}};}const _0x535bf4=_0x185fe0;_0x1534e1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'socket'];function _0x1534e1(_0x597447,_0x6d3b3b,_0x24cb43){const _0x595453=_0x4376d8,_0x391855=this;_0x24cb43['disconnect'](),_0x24cb43[_0x595453('0x1f81')](),_0x391855[_0x595453('0xde7')]=0x0;switch(_0x6d3b3b[_0x595453('0x1247')]['name']){case _0x595453('0xd34'):_0x391855[_0x595453('0xde7')]=0x0;break;case'app.whatsapp.realtime.queues':_0x391855[_0x595453('0xde7')]=0x1;break;default:_0x391855[_0x595453('0xde7')]=0x0,_0x6d3b3b['go'](_0x595453('0xd34'));}_0x597447['$watch'](_0x595453('0x1bda'),function(_0xf8afe4,_0x32bd0a){const _0x2840e0=_0x595453;if(_0xf8afe4!==_0x32bd0a)switch(_0xf8afe4){case 0x0:_0x6d3b3b['go'](_0x2840e0('0xd34'));break;case 0x1:_0x6d3b3b['go'](_0x2840e0('0x8c6'));break;default:_0x6d3b3b['go'](_0x2840e0('0xd34'));break;}});}const _0xf25dc7=_0x1534e1;_0x4bc5d0['$inject']=['$stateProvider'];function _0x4bc5d0(_0x54b34c){const _0x18205f=_0x4376d8;_0x54b34c['state'](_0x18205f('0xede'),{'url':_0x18205f('0x1dc1'),'views':{'content@app':{'templateUrl':_0x981463,'controller':_0x18205f('0x205d')}},'resolve':{'userProfile':[_0x18205f('0x177'),'Auth',function(_0x5e5bc2,_0x32f477){const _0x2277e0=_0x18205f;return _0x32f477[_0x2277e0('0x1ba2')](_0x2277e0('0x20bf'))?null:_0x5e5bc2[_0x2277e0('0x898')](_0x2277e0('0x235d'),{'fields':'id,name,crudPermissions','id':_0x32f477['getCurrentUser']()[_0x2277e0('0x1e76')]});}],'userProfileSection':['apiResolver',_0x18205f('0x1885'),function(_0x33f091,_0x299376){const _0x3f3c1f=_0x18205f;return _0x299376[_0x3f3c1f('0x1ba2')]('admin')?null:_0x33f091[_0x3f3c1f('0x898')](_0x3f3c1f('0x23e7'),{'fields':_0x3f3c1f('0x1134'),'userProfileId':_0x299376[_0x3f3c1f('0x2831')]()['userProfileId'],'sectionId':0x83e});}]},'authenticate':!![],'permissionId':0x83e})[_0x18205f('0x1b9a')](_0x18205f('0xd34'),{'url':_0x18205f('0x1a85'),'controller':_0x18205f('0xdd3'),'templateUrl':_0x4f981c,'resolve':{'pauses':['apiResolver',function(_0x346769){return _0x346769['resolve']('pause@get',{'nolimit':!![]});}],'agents':[_0x18205f('0x177'),_0x18205f('0x1885'),function(_0x1c96a5,_0x40d7e3){const _0x334127=_0x18205f;return _0x40d7e3['hasRole'](_0x334127('0x20bf'))?_0x1c96a5[_0x334127('0x898')](_0x334127('0x181a'),{'fields':_0x334127('0xb31'),'role':_0x334127('0x684'),'sort':_0x334127('0xea6'),'nolimit':!![]}):_0x1c96a5[_0x334127('0x898')](_0x334127('0x1164'),{'id':_0x40d7e3[_0x334127('0x2831')]()['userProfileId'],'section':_0x334127('0x2157'),'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':_0x334127('0x684'),'sort':_0x334127('0xea6'),'nolimit':!![]});}],'userProfile':[_0x18205f('0x177'),'Auth',function(_0x16eaae,_0x30ceb0){const _0x1bb8ff=_0x18205f;return _0x30ceb0[_0x1bb8ff('0x1ba2')](_0x1bb8ff('0x20bf'))?null:_0x16eaae[_0x1bb8ff('0x898')](_0x1bb8ff('0x235d'),{'fields':_0x1bb8ff('0x8d3'),'id':_0x30ceb0[_0x1bb8ff('0x2831')]()[_0x1bb8ff('0x1e76')]});}],'userProfileSection':[_0x18205f('0x177'),_0x18205f('0x1885'),function(_0x18790b,_0x5f5bce){const _0x219d8e=_0x18205f;return _0x5f5bce[_0x219d8e('0x1ba2')](_0x219d8e('0x20bf'))?null:_0x18790b[_0x219d8e('0x898')](_0x219d8e('0x23e7'),{'fields':_0x219d8e('0x1134'),'userProfileId':_0x5f5bce[_0x219d8e('0x2831')]()['userProfileId'],'sectionId':0xca});}],'rpcAgents':[_0x18205f('0x177'),function(_0x1ddfac){const _0x5273cf=_0x18205f;return _0x1ddfac['resolve'](_0x5273cf('0xb27'));}]},'authenticate':!![],'permissionId':0x83e})[_0x18205f('0x1b9a')](_0x18205f('0x8c6'),{'url':_0x18205f('0x1520'),'controller':'QueuesWhatsappRealtimeController\x20as\x20vm','templateUrl':_0xbe3fdf,'resolve':{'queues':['apiResolver',_0x18205f('0x1885'),function(_0x13b3c2,_0x329d64){const _0x33ccad=_0x18205f;return _0x329d64[_0x33ccad('0x1ba2')]('admin')?_0x13b3c2[_0x33ccad('0x898')](_0x33ccad('0x150a'),{'type':_0x33ccad('0x1e77'),'sort':_0x33ccad('0x1ac6'),'limit':0xa,'offset':0x0}):_0x13b3c2[_0x33ccad('0x898')](_0x33ccad('0x1164'),{'id':_0x329d64[_0x33ccad('0x2831')]()['userProfileId'],'section':_0x33ccad('0x1d85'),'channel':'whatsapp','type':_0x33ccad('0x1e77'),'sort':'-updatedAt','limit':0xa,'page':0x1});}],'userProfile':[_0x18205f('0x177'),_0x18205f('0x1885'),function(_0x14a45b,_0x3f06cb){const _0x312f23=_0x18205f;return _0x3f06cb['hasRole'](_0x312f23('0x20bf'))?null:_0x14a45b[_0x312f23('0x898')](_0x312f23('0x235d'),{'fields':_0x312f23('0x8d3'),'id':_0x3f06cb[_0x312f23('0x2831')]()[_0x312f23('0x1e76')]});}],'userProfileSection':['apiResolver',_0x18205f('0x1885'),function(_0x9dca6f,_0x2c1f57){const _0x1051ae=_0x18205f;return _0x2c1f57[_0x1051ae('0x1ba2')]('admin')?null:_0x9dca6f[_0x1051ae('0x898')](_0x1051ae('0x23e7'),{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x2c1f57['getCurrentUser']()[_0x1051ae('0x1e76')],'sectionId':0x835});}],'rpcQueues':[_0x18205f('0x177'),function(_0x3e6fef){const _0x560c8d=_0x18205f;return _0x3e6fef['resolve'](_0x560c8d('0x468'));}]},'authenticate':!![],'permissionId':0x83e});}angular[_0x4376d8('0x11c4')]('app.whatsapp.realtime',[])[_0x4376d8('0x1980')](_0x4bc5d0)[_0x4376d8('0x5ce')](_0x4376d8('0x1194'),_0x1b96f0)[_0x4376d8('0x5ce')](_0x4376d8('0x26bd'),_0x20d0d5)[_0x4376d8('0x26a6')]('helperClasses',_0x535bf4)[_0x4376d8('0x5ce')]('WhatsappRealtimeController',_0xf25dc7);const _0x16a3e5=_0x4cf2bc['p']+'src/js/modules/main/apps/whatsapp/views/whatsappQueues/whatsappQueues.html/whatsappQueues.html',_0x4a43b9=_0x4cf2bc['p']+_0x4376d8('0xfaf'),_0x23740e=_0x4cf2bc['p']+_0x4376d8('0x282d'),_0x32acb8=_0x4cf2bc['p']+_0x4376d8('0xce3');_0x277a29[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0x58b'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x277a29(_0x178371,_0x364998,_0x4cd28b,_0x5a47ef,_0x62f342,_0x305286,_0x14d1ee,_0x4c72fb,_0xbf0cda,_0x5fe93f,_0x259f24,_0x107dc4,_0x4b36e0,_0x371c7d){const _0x2f3ebd=_0x4376d8,_0x495820=this;_0x495820[_0x2f3ebd('0x197c')]=_0x259f24[_0x2f3ebd('0x2831')](),_0x495820[_0x2f3ebd('0x73e')]=[],_0x495820[_0x2f3ebd('0x1aeb')]=_0x4b36e0,_0x495820['license']=_0x107dc4,_0x495820[_0x2f3ebd('0x103e')]=_0x371c7d,_0x495820[_0x2f3ebd('0x6ee')]={},_0x495820['passwordPattern']=_0x495820['setting']&&_0x495820[_0x2f3ebd('0x1aeb')][_0x2f3ebd('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x495820[_0x2f3ebd('0x24d3')]=_0x2f3ebd('0x2623'),_0x495820['whatsappAccount']=angular[_0x2f3ebd('0x14e5')](_0xbf0cda),_0x495820['whatsappAccounts']=_0x4c72fb,_0x495820['newWhatsappAccount']=![];!_0x495820[_0x2f3ebd('0x254f')]&&(_0x495820[_0x2f3ebd('0x254f')]={'remote':_0x4cd28b[_0x2f3ebd('0x14fe')]()+_0x2f3ebd('0x14')+_0x4cd28b[_0x2f3ebd('0x108')]()+(_0x4cd28b['port']()?':'+_0x4cd28b[_0x2f3ebd('0x2442')]():''),'type':_0x2f3ebd('0xf15'),'notificationSound':!![],'queueTransferTimeout':0x12c,'waitForTheAssignedAgent':0xa,'agentTransferTimeout':0x12c},_0x495820[_0x2f3ebd('0x24d3')]='WHATSAPP.NEW_WHATSAPPACCOUNT',_0x495820[_0x2f3ebd('0x15ae')]=!![]);_0x364998[_0x2f3ebd('0x16fb')]['id']&&(_0x495820[_0x2f3ebd('0x254f')][_0x2f3ebd('0x10d7')]=_0x364998[_0x2f3ebd('0x16fb')]['id']);_0x495820[_0x2f3ebd('0x274')]=_0x1c47a4,_0x495820[_0x2f3ebd('0x1074')]=_0x40db97,_0x495820['deleteWhatsappAccount']=_0x5eace3,_0x495820['getDateFromString']=_0x412ad5,_0x495820['closeDialog']=_0x351f38,_0x259f24[_0x2f3ebd('0x1ba2')](_0x2f3ebd('0x20bf'))?_0x5fe93f['cmList'][_0x2f3ebd('0x1c53')]({'fields':_0x2f3ebd('0x12d2'),'sort':'name'})[_0x2f3ebd('0x1af5')][_0x2f3ebd('0x17e7')](function(_0x5427d8){const _0x4f34cd=_0x2f3ebd;_0x495820[_0x4f34cd('0x2504')]=_0x5427d8['rows']||[];})[_0x2f3ebd('0x16df')](function(_0x1cbb52){const _0x410557=_0x2f3ebd;_0x14d1ee['error']({'title':_0x1cbb52['status']?_0x410557('0x14f7')+_0x1cbb52['status']+'\x20-\x20'+_0x1cbb52[_0x410557('0x1833')]:_0x410557('0x2410'),'msg':_0x1cbb52[_0x410557('0x1457')]?JSON[_0x410557('0x678')](_0x1cbb52[_0x410557('0x1457')]):_0x1cbb52[_0x410557('0x9b6')]()});}):_0x5fe93f[_0x2f3ebd('0x25b')][_0x2f3ebd('0x1c53')]({'fields':_0x2f3ebd('0x12d2'),'sort':_0x2f3ebd('0x2aa')})['$promise']['then'](function(_0x189e9d){const _0x192f00=_0x2f3ebd;_0x495820['lists']=_0x189e9d[_0x192f00('0x2319')]||[];})[_0x2f3ebd('0x17e7')](function(){const _0x959885=_0x2f3ebd;return _0x5fe93f['userProfileSection'][_0x959885('0x1c53')]({'userProfileId':_0x495820[_0x959885('0x197c')][_0x959885('0x1e76')],'sectionId':0x12d})['$promise'];})['then'](function(_0x152f9a){const _0x28e404=_0x2f3ebd,_0x35f52d=_0x152f9a&&_0x152f9a['rows']?_0x152f9a[_0x28e404('0x2319')][0x0]:null;if(!_0x35f52d){const _0x196a5f=[];let _0x20022e=null;_0x495820[_0x28e404('0x254f')]&&(_0x20022e=_0x49cbdd()[_0x28e404('0xe8e')](_0x495820['lists'],{'id':Number(_0x495820['whatsappAccount'][_0x28e404('0x7f8')])}));for(let _0x3c372e=0x0;_0x3c372e<_0x495820['lists'][_0x28e404('0x1f73')];_0x3c372e++){_0x20022e&&_0x495820[_0x28e404('0x2504')][_0x3c372e]['id']===_0x20022e['id']&&(_0x495820[_0x28e404('0x2504')][_0x3c372e][_0x28e404('0xe5c')]=![],_0x196a5f['push'](_0x495820[_0x28e404('0x2504')][_0x3c372e]));}_0x495820[_0x28e404('0x2504')]=_0x196a5f;}else{if(!_0x35f52d[_0x28e404('0x9e3')])return _0x5fe93f[_0x28e404('0x78d')][_0x28e404('0x1c53')]({'sectionId':_0x35f52d['id']})[_0x28e404('0x1af5')][_0x28e404('0x17e7')](function(_0x13b50f){const _0x41abe4=_0x28e404,_0x1f1533=_0x49cbdd()['map'](_0x13b50f[_0x41abe4('0x2319')],function(_0x18f785){const _0x556db0=_0x41abe4;return _0x49cbdd()[_0x556db0('0xe8e')](_0x495820['lists'],{'id':_0x18f785[_0x556db0('0x5db')]});});let _0x31b90d=null;_0x495820[_0x41abe4('0x254f')]&&(_0x31b90d=_0x49cbdd()[_0x41abe4('0xe8e')](_0x495820[_0x41abe4('0x2504')],{'id':Number(_0x495820[_0x41abe4('0x254f')][_0x41abe4('0x7f8')])}));if(_0x31b90d&&!_0x49cbdd()['some'](_0x1f1533,['id',_0x31b90d['id']])){const _0x1c5d94=_0x49cbdd()[_0x41abe4('0xe8e')](_0x495820['lists'],{'id':_0x31b90d['id']});_0x1c5d94['canSelect']=![],_0x1f1533[_0x41abe4('0x269f')](_0x1c5d94);}_0x495820[_0x41abe4('0x2504')]=_0x1f1533;});}})[_0x2f3ebd('0x16df')](function(_0x10f77a){const _0x46c0dc=_0x2f3ebd;_0x14d1ee[_0x46c0dc('0x1db9')]({'title':_0x10f77a[_0x46c0dc('0x11c5')]?_0x46c0dc('0x14f7')+_0x10f77a[_0x46c0dc('0x11c5')]+_0x46c0dc('0x16e4')+_0x10f77a[_0x46c0dc('0x1833')]:_0x46c0dc('0x1630'),'msg':_0x10f77a[_0x46c0dc('0x1457')]?JSON[_0x46c0dc('0x678')](_0x10f77a[_0x46c0dc('0x1457')]):_0x10f77a['toString']()});}),_0x259f24[_0x2f3ebd('0x1ba2')](_0x2f3ebd('0x20bf'))?_0x5fe93f[_0x2f3ebd('0x267a')][_0x2f3ebd('0x1c53')]({'fields':'name,id','sort':'name','nolimit':_0x2f3ebd('0xe34')})['$promise']['then'](function(_0xf1bbd3){const _0x1e4d5a=_0x2f3ebd;_0x495820[_0x1e4d5a('0x1492')]=_0xf1bbd3[_0x1e4d5a('0x2319')]||[];})[_0x2f3ebd('0x16df')](function(_0xa79916){const _0x7b0fc5=_0x2f3ebd;_0x14d1ee[_0x7b0fc5('0x1db9')]({'title':_0xa79916[_0x7b0fc5('0x11c5')]?'API:'+_0xa79916['status']+'\x20-\x20'+_0xa79916[_0x7b0fc5('0x1833')]:_0x7b0fc5('0xe43'),'msg':_0xa79916[_0x7b0fc5('0x1457')]?JSON[_0x7b0fc5('0x678')](_0xa79916[_0x7b0fc5('0x1457')]):_0xa79916[_0x7b0fc5('0x9b6')]()});}):_0x5fe93f[_0x2f3ebd('0x267a')][_0x2f3ebd('0x1c53')]({'fields':_0x2f3ebd('0x90c'),'sort':_0x2f3ebd('0x2aa'),'nolimit':_0x2f3ebd('0xe34')})[_0x2f3ebd('0x1af5')][_0x2f3ebd('0x17e7')](function(_0x13941d){const _0x2957f9=_0x2f3ebd;_0x495820[_0x2957f9('0x1492')]=_0x13941d[_0x2957f9('0x2319')]||[];})[_0x2f3ebd('0x17e7')](function(){const _0x86b538=_0x2f3ebd;return _0x5fe93f[_0x86b538('0x383')][_0x86b538('0x1c53')]({'userProfileId':_0x495820[_0x86b538('0x197c')][_0x86b538('0x1e76')],'sectionId':0x3ed})[_0x86b538('0x1af5')];})[_0x2f3ebd('0x17e7')](function(_0x696538){const _0x4af9aa=_0x2f3ebd,_0x4f7582=_0x696538&&_0x696538['rows']?_0x696538[_0x4af9aa('0x2319')][0x0]:null;if(!_0x4f7582)_0x495820[_0x4af9aa('0x1492')]=[];else{if(!_0x4f7582[_0x4af9aa('0x9e3')])return _0x5fe93f[_0x4af9aa('0x78d')][_0x4af9aa('0x1c53')]({'sectionId':_0x4f7582['id']})[_0x4af9aa('0x1af5')]['then'](function(_0xf398e6){const _0x6bdfa5=_0x4af9aa,_0x2f8a9b=_0x49cbdd()[_0x6bdfa5('0x787')](_0xf398e6['rows'],function(_0x117b56){const _0xabdd4d=_0x6bdfa5;return _0x49cbdd()[_0xabdd4d('0xe8e')](_0x495820[_0xabdd4d('0x1492')],{'id':_0x117b56[_0xabdd4d('0x5db')]});});_0x495820[_0x6bdfa5('0x1492')][_0x6bdfa5('0xccd')](function(_0x422290){const _0x32fdea=_0x6bdfa5;!_0x49cbdd()[_0x32fdea('0x26f8')](_0x2f8a9b,['id',_0x422290['id']])&&(_0x422290[_0x32fdea('0xe5c')]=![]),_0x2f8a9b[_0x32fdea('0x269f')](_0x422290);}),_0x495820[_0x6bdfa5('0x1492')]=_0x2f8a9b;});}})[_0x2f3ebd('0x16df')](function(_0x3ad3c1){const _0x4e376c=_0x2f3ebd;_0x14d1ee['error']({'title':_0x3ad3c1[_0x4e376c('0x11c5')]?'API:'+_0x3ad3c1[_0x4e376c('0x11c5')]+_0x4e376c('0x16e4')+_0x3ad3c1[_0x4e376c('0x1833')]:'SYSTEM:GETpauses','msg':_0x3ad3c1[_0x4e376c('0x1457')]?JSON['stringify'](_0x3ad3c1['data']):_0x3ad3c1['toString']()});});function _0x1c47a4(){const _0x3b44b9=_0x2f3ebd;_0x495820[_0x3b44b9('0x73e')]=[],_0x5fe93f[_0x3b44b9('0x254f')][_0x3b44b9('0x2439')](_0x495820[_0x3b44b9('0x254f')])[_0x3b44b9('0x1af5')][_0x3b44b9('0x17e7')](function(_0x1c133b){const _0x4ff28b=_0x3b44b9;_0x495820[_0x4ff28b('0x58b')]['unshift'](_0x1c133b[_0x4ff28b('0x16b2')]()),_0x14d1ee[_0x4ff28b('0x130d')]({'title':_0x4ff28b('0x534'),'msg':_0x495820['whatsappAccount']['name']?_0x495820[_0x4ff28b('0x254f')][_0x4ff28b('0x2aa')]+_0x4ff28b('0x15a'):''}),_0x351f38(_0x1c133b);})[_0x3b44b9('0x16df')](function(_0x5f320e){const _0x5f2ef3=_0x3b44b9;if(_0x5f320e[_0x5f2ef3('0x1457')]&&_0x5f320e['data']['errors']&&_0x5f320e[_0x5f2ef3('0x1457')][_0x5f2ef3('0x73e')]['length']){_0x495820[_0x5f2ef3('0x73e')]=_0x5f320e[_0x5f2ef3('0x1457')][_0x5f2ef3('0x73e')]||[{'message':_0x5f320e[_0x5f2ef3('0x9b6')](),'type':_0x5f2ef3('0x24f7')}];for(let _0x4720c3=0x0;_0x4720c3<_0x5f320e['data'][_0x5f2ef3('0x73e')]['length'];_0x4720c3+=0x1){_0x14d1ee['error']({'title':_0x5f320e[_0x5f2ef3('0x1457')][_0x5f2ef3('0x73e')][_0x4720c3][_0x5f2ef3('0x412')],'msg':_0x5f320e[_0x5f2ef3('0x1457')]['errors'][_0x4720c3][_0x5f2ef3('0x1603')]});}}else _0x14d1ee[_0x5f2ef3('0x1db9')]({'title':_0x5f320e[_0x5f2ef3('0x11c5')]?_0x5f2ef3('0x14f7')+_0x5f320e['status']+_0x5f2ef3('0x16e4')+_0x5f320e['statusText']:_0x5f2ef3('0x24f7'),'msg':_0x5f320e[_0x5f2ef3('0x1457')]?JSON['stringify'](_0x5f320e[_0x5f2ef3('0x1457')]['message']):_0x5f320e[_0x5f2ef3('0x9b6')]()});});}function _0x40db97(){const _0x43125b=_0x2f3ebd;_0x495820['errors']=[],_0x5fe93f[_0x43125b('0x254f')]['update']({'id':_0x495820[_0x43125b('0x254f')]['id']},_0x495820[_0x43125b('0x254f')])[_0x43125b('0x1af5')]['then'](function(_0x4d16d6){const _0x3cfba3=_0x43125b,_0x1c1197=_0x49cbdd()[_0x3cfba3('0xe8e')](_0x495820[_0x3cfba3('0x58b')],{'id':_0x4d16d6['id']});_0x1c1197&&_0x49cbdd()['merge'](_0x1c1197,_0x49cbdd()[_0x3cfba3('0x230a')](_0x4d16d6[_0x3cfba3('0x16b2')](),_0x49cbdd()[_0x3cfba3('0x1c0f')](_0x1c1197))),_0x14d1ee['success']({'title':_0x3cfba3('0x607'),'msg':_0x495820['whatsappAccount']['name']?_0x495820[_0x3cfba3('0x254f')][_0x3cfba3('0x2aa')]+_0x3cfba3('0x15ca'):''}),_0x351f38(_0x4d16d6);})[_0x43125b('0x16df')](function(_0x7b170c){const _0x23578a=_0x43125b;if(_0x7b170c['data']&&_0x7b170c[_0x23578a('0x1457')]['errors']&&_0x7b170c[_0x23578a('0x1457')][_0x23578a('0x73e')][_0x23578a('0x1f73')]){_0x495820[_0x23578a('0x73e')]=_0x7b170c[_0x23578a('0x1457')]['errors']||[{'message':_0x7b170c[_0x23578a('0x9b6')](),'type':'api.whatsappAccount.update'}];for(let _0x16aee7=0x0;_0x16aee7<_0x7b170c[_0x23578a('0x1457')][_0x23578a('0x73e')][_0x23578a('0x1f73')];_0x16aee7++){_0x14d1ee[_0x23578a('0x1db9')]({'title':_0x7b170c[_0x23578a('0x1457')][_0x23578a('0x73e')][_0x16aee7]['type'],'msg':_0x7b170c['data'][_0x23578a('0x73e')][_0x16aee7][_0x23578a('0x1603')]});}}else _0x14d1ee[_0x23578a('0x1db9')]({'title':_0x7b170c[_0x23578a('0x11c5')]?_0x23578a('0x14f7')+_0x7b170c[_0x23578a('0x11c5')]+_0x23578a('0x16e4')+_0x7b170c[_0x23578a('0x1833')]:_0x23578a('0x2b5'),'msg':_0x7b170c[_0x23578a('0x1457')]?JSON[_0x23578a('0x678')](_0x7b170c[_0x23578a('0x1457')][_0x23578a('0x1603')]):_0x7b170c[_0x23578a('0x9b6')]()});});}function _0x5eace3(_0x5c774a){const _0x50ee65=_0x2f3ebd;_0x495820['errors']=[];const _0x4a7e6a=_0x5a47ef['confirm']()[_0x50ee65('0x24d3')]('Are\x20you\x20sure?')['content'](_0x50ee65('0x4e5'))['ariaLabel'](_0x50ee65('0x2582'))['ok'](_0x50ee65('0x304'))[_0x50ee65('0x1d47')](_0x50ee65('0x1b70'))[_0x50ee65('0x104f')](_0x5c774a);_0x5a47ef[_0x50ee65('0x28e2')](_0x4a7e6a)[_0x50ee65('0x17e7')](function(){const _0x4e0e44=_0x50ee65;_0x5fe93f[_0x4e0e44('0x254f')][_0x4e0e44('0x1da6')]({'id':_0x495820[_0x4e0e44('0x254f')]['id']})[_0x4e0e44('0x1af5')][_0x4e0e44('0x17e7')](function(){const _0x9fc587=_0x4e0e44;_0x49cbdd()[_0x9fc587('0x5f3')](_0x495820['whatsappAccounts'],{'id':_0x495820['whatsappAccount']['id']}),_0x14d1ee[_0x9fc587('0x130d')]({'title':'WhatsappAccount\x20properly\x20deleted!','msg':(_0x495820[_0x9fc587('0x254f')][_0x9fc587('0x2aa')]||_0x9fc587('0x254f'))+_0x9fc587('0x149f')}),_0x351f38(_0x495820[_0x9fc587('0x254f')]);})[_0x4e0e44('0x16df')](function(_0x50e423){const _0x670141=_0x4e0e44;if(_0x50e423[_0x670141('0x1457')]&&_0x50e423[_0x670141('0x1457')]['errors']&&_0x50e423[_0x670141('0x1457')]['errors']['length']){_0x495820['errors']=_0x50e423['data'][_0x670141('0x73e')]||[{'message':_0x50e423[_0x670141('0x9b6')](),'type':_0x670141('0x1e15')}];for(let _0x365eb0=0x0;_0x365eb0<_0x50e423[_0x670141('0x1457')][_0x670141('0x73e')]['length'];_0x365eb0++){_0x14d1ee[_0x670141('0x1db9')]({'title':_0x50e423['data'][_0x670141('0x73e')][_0x365eb0][_0x670141('0x412')],'msg':_0x50e423[_0x670141('0x1457')]['errors'][_0x365eb0][_0x670141('0x1603')]});}}else _0x14d1ee['error']({'title':_0x50e423['status']?_0x670141('0x14f7')+_0x50e423['status']+_0x670141('0x16e4')+_0x50e423['statusText']:_0x670141('0x1e15'),'msg':_0x50e423[_0x670141('0x1457')]?JSON[_0x670141('0x678')](_0x50e423[_0x670141('0x1457')][_0x670141('0x1603')]):_0x50e423['message']||_0x50e423['toString']()});});},function(){});}function _0x412ad5(_0x34552f){return _0x34552f===null?undefined:new Date(_0x34552f);}function _0x351f38(_0x23a7ca){const _0x41d71d=_0x2f3ebd;_0x5a47ef[_0x41d71d('0x212a')](_0x23a7ca);}}const _0x2aa205=_0x277a29,_0x487fb6=_0x4cf2bc['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/agent/dialog.html/dialog.html',_0x46dd18=_0x4cf2bc['p']+_0x4376d8('0xa18'),_0x25e6a3=_0x4cf2bc['p']+_0x4376d8('0x1f9c'),_0x31b6ed=_0x4cf2bc['p']+_0x4376d8('0xaf3'),_0x1c065f=_0x4cf2bc['p']+_0x4376d8('0x10be'),_0x106401=_0x4cf2bc['p']+_0x4376d8('0x1f93'),_0x37b7e1=_0x4cf2bc['p']+_0x4376d8('0x21c6'),_0x283762=_0x4cf2bc['p']+_0x4376d8('0xefb'),_0x2d2287=_0x4cf2bc['p']+_0x4376d8('0x241c'),_0x5b32e0=_0x4cf2bc['p']+'src/js/modules/main/apps/whatsapp/views/whatsappAccounts/edit/apps/queue/dialog.html/dialog.html',_0x547905=_0x4cf2bc['p']+_0x4376d8('0x1ae6'),_0x4184e0=_0x4cf2bc['p']+_0x4376d8('0x20d3');_0x164907[_0x4376d8('0x1b9c')]=[_0x4376d8('0x212e'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x1885')];const _0x35202d={'agent':_0x487fb6,'amazonlex':_0x46dd18,'autoreply':_0x25e6a3,'close':_0x31b6ed,'dialogflow':_0x1c065f,'gotoif':_0x106401,'gotop':_0x37b7e1,'interval':_0x283762,'noop':_0x2d2287,'queue':_0x5b32e0,'system':_0x547905,'tag':_0x4184e0};function _0x164907(_0xa8063a,_0xa3a7f6,_0x1f2664,_0x576c75,_0x4a37ec){const _0x50526f=_0x4376d8,_0x4a5695=this;_0x4a5695[_0x50526f('0x197c')]=_0x4a37ec['getCurrentUser'](),_0x4a5695[_0x50526f('0x254f')]={},_0x4a5695['whatsappAccountApps']={'count':0x0,'rows':[]},_0x4a5695['selectedWhatsappAccountApps']=[],_0x4a5695[_0x50526f('0x103e')],_0x4a5695[_0x50526f('0x826')]={'sort':_0x50526f('0x1a6d')},_0x4a5695[_0x50526f('0x970')]=_0x49cbdd()[_0x50526f('0x1ad1')](_0x49cbdd()[_0x50526f('0x1be3')]([{'app':_0x50526f('0xaea'),'appType':_0x50526f('0x231f'),'types':['always',_0x50526f('0x8fa'),'list'],'fields':[],'isApp':![]},{'app':_0x50526f('0x1e49'),'appType':_0x50526f('0x1e49'),'type':'noop','icon':_0x50526f('0x24a0'),'interval':_0x50526f('0x20c3'),'required':!![],'isApp':!![],'fields':[{'title':'Value','name':_0x50526f('0x175b'),'type':_0x50526f('0x132f'),'param':0x0}]},{'app':_0x50526f('0xca8'),'appType':'system','type':_0x50526f('0xca8'),'icon':'icon-apps','interval':_0x50526f('0x20c3'),'required':!![],'isApp':!![],'extraApi':[{'name':_0x50526f('0xd26'),'field':{'name':'variable','key':_0x50526f('0x2aa')},'route':_0x50526f('0xb0a'),'filters':{'fields':'id,name','sort':'name','nolimit':!![]},'permissions':{'section':0x3f4}}],'fields':[{'title':_0x50526f('0x1d36'),'name':'command','type':_0x50526f('0x132f'),'required':!![],'param':0x0},{'title':_0x50526f('0xd6a'),'name':_0x50526f('0xb0a'),'type':_0x50526f('0x1ecc'),'values':_0x50526f('0xd26'),'value':_0x50526f('0x8e2'),'option':'variable.name','defaultValues':[{'value':'\x27\x27','option':_0x50526f('0x2576')}],'defaultValue':'\x27\x27','param':0x1}]},{'app':'gotop','appType':_0x50526f('0x721'),'type':_0x50526f('0x1fb0'),'icon':_0x50526f('0x24a0'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x50526f('0x182c'),'name':_0x50526f('0x1a6d'),'type':'number','required':!![],'min':0x0,'param':0x0}]},{'app':_0x50526f('0x7a9'),'appType':'gotoif','type':_0x50526f('0x7a9'),'icon':_0x50526f('0x24a0'),'interval':_0x50526f('0x20c3'),'isApp':!![],'fields':[{'title':_0x50526f('0x2380'),'name':_0x50526f('0xa67'),'type':_0x50526f('0x132f'),'required':!![],'param':0x0},{'title':'truepriority','name':'truepriority','type':_0x50526f('0x7b8'),'min':0x1,'required':!![],'param':0x1},{'title':_0x50526f('0xe9d'),'name':_0x50526f('0xe9d'),'type':'number','min':0x1,'required':!![],'param':0x2}]},{'app':_0x50526f('0x1bd'),'appType':_0x50526f('0x1bd'),'foreignKey':'WhatsappQueueId','type':_0x50526f('0x1bd'),'icon':_0x50526f('0x24a0'),'interval':_0x50526f('0x20c3'),'isApp':!![],'extraApi':[{'name':_0x50526f('0x14c4'),'field':{'name':'queue','key':'name'},'route':'whatsappQueue','filters':{'fields':'id,name,type','sort':'name','nolimit':!![]},'permissions':{'section':0x836}}],'fields':[{'title':_0x50526f('0x1eb2'),'name':'queue','type':_0x50526f('0x1ecc'),'values':_0x50526f('0x14c4'),'value':_0x50526f('0x661'),'option':_0x50526f('0x661'),'defaultValue':0x12c,'required':!![],'param':0x0},{'title':'Timeout','name':'timeout','type':'number','max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x12c,'param':0x1}]},{'app':_0x50526f('0x684'),'appType':_0x50526f('0x684'),'type':_0x50526f('0x684'),'foreignKey':_0x50526f('0x5e5'),'icon':_0x50526f('0x24a0'),'interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x50526f('0x25ea'),'field':{'name':_0x50526f('0x684'),'key':_0x50526f('0x2aa')},'route':_0x50526f('0x221e'),'filters':{'fields':_0x50526f('0x12d2'),'sort':_0x50526f('0x2aa'),'nolimit':!![],'role':_0x50526f('0x684')},'permissions':{'section':0xca}}],'fields':[{'title':'Agent','name':_0x50526f('0x684'),'type':'apiselect','values':_0x50526f('0x25ea'),'value':_0x50526f('0x274e'),'option':'agent.name','required':!![],'param':0x0},{'title':_0x50526f('0x1ceb'),'name':'timeout','type':_0x50526f('0x7b8'),'max':0x20c49b,'min':0x0,'required':!![],'defaultValue':0x1e,'param':0x1}]},{'app':_0x50526f('0x96e'),'appType':'autoreply','type':_0x50526f('0x96e'),'icon':'icon-apps','interval':_0x50526f('0x20c3'),'isApp':!![],'fields':[{'title':_0x50526f('0x12a6'),'name':'times','type':_0x50526f('0x2897'),'defaultValue':'1','values':[{'option':'One\x20Time','value':'1'},{'option':_0x50526f('0x768'),'value':'0'}],'required':!![],'param':0x0},{'title':_0x50526f('0xa46'),'name':_0x50526f('0x132f'),'type':_0x50526f('0x6d3'),'required':!![],'param':0x1}]},{'app':_0x50526f('0xbc9'),'appType':'close','type':_0x50526f('0xbc9'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'fields':[{'title':_0x50526f('0x16d'),'name':'disposition','type':'text','required':!![],'param':0x0}]},{'app':_0x50526f('0x1132'),'appType':_0x50526f('0x1132'),'type':_0x50526f('0x1132'),'foreignKey':_0x50526f('0x1686'),'icon':'icon-apps','interval':'*,*,*,*','isApp':!![],'extraApi':[{'name':_0x50526f('0x1522'),'field':{'name':'tag','key':_0x50526f('0x2aa')},'route':_0x50526f('0x1132'),'filters':{'fields':_0x50526f('0x12d2'),'sort':_0x50526f('0x2aa'),'nolimit':!![]},'permissions':{'section':0x3f0}}],'fields':[{'title':_0x50526f('0xe16'),'name':_0x50526f('0x1132'),'type':_0x50526f('0x1ecc'),'values':_0x50526f('0x1522'),'value':_0x50526f('0xf6b'),'option':_0x50526f('0xf6b'),'required':!![],'param':0x0}]},{'app':_0x50526f('0x2526'),'appType':'dialogflow','type':_0x50526f('0x2526'),'icon':_0x50526f('0x24a0'),'interval':_0x50526f('0x20c3'),'isApp':!![],'fields':[{'title':'Key','name':'key','type':'text','required':!![],'param':0x0},{'title':_0x50526f('0x3e1'),'name':_0x50526f('0x3e1'),'type':_0x50526f('0x2897'),'defaultValue':_0x50526f('0x1ac3'),'values':[{'option':_0x50526f('0x6db'),'value':_0x50526f('0x2088')},{'option':_0x50526f('0x14d0'),'value':'\x27en\x27'},{'option':'German','value':_0x50526f('0x20e6')},{'option':_0x50526f('0x2536'),'value':'\x27it\x27'},{'option':_0x50526f('0xf87'),'value':_0x50526f('0x299')},{'option':_0x50526f('0x1a76'),'value':'\x27fr\x27'},{'option':'Indonesian','value':_0x50526f('0xeab')},{'option':_0x50526f('0x1f37'),'value':_0x50526f('0x10d4')},{'option':_0x50526f('0x19a7'),'value':'\x27ko\x27'},{'option':'Dutch','value':_0x50526f('0x923')},{'option':_0x50526f('0x1534'),'value':_0x50526f('0x2471')},{'option':_0x50526f('0x4cd'),'value':_0x50526f('0x5ba')},{'option':_0x50526f('0x22e8'),'value':_0x50526f('0xb54')},{'option':_0x50526f('0x991'),'value':_0x50526f('0x15bd')},{'option':_0x50526f('0x1198'),'value':'\x27sv\x27'},{'option':_0x50526f('0x47d'),'value':_0x50526f('0x2817')},{'option':_0x50526f('0x1f20'),'value':_0x50526f('0x4f5')},{'option':_0x50526f('0x14b1'),'value':_0x50526f('0x88a')},{'option':'Chinese\x20(Hong\x20Kong)','value':_0x50526f('0x317')},{'option':_0x50526f('0x561'),'value':_0x50526f('0x445')}],'required':!![],'param':0x1},{'title':_0x50526f('0x1083'),'name':'welcomemessage','type':'textarea','maxlength':0xff,'required':![],'param':0x2,'help':!![]}]},{'app':_0x50526f('0x22f0'),'appType':_0x50526f('0x22ac'),'type':_0x50526f('0x22ac'),'icon':_0x50526f('0x24a0'),'interval':_0x50526f('0x20c3'),'isApp':!![],'fields':[{'title':_0x50526f('0x27c2'),'name':_0x50526f('0x28ab'),'type':_0x50526f('0x132f'),'required':!![],'param':0x0},{'title':'ClientEmail','name':_0x50526f('0x2814'),'type':_0x50526f('0x132f'),'required':!![],'param':0x1},{'title':_0x50526f('0x2111'),'name':_0x50526f('0x1bc2'),'type':_0x50526f('0x6d3'),'required':!![],'param':0x2},{'title':_0x50526f('0x3e1'),'name':_0x50526f('0x3e1'),'type':_0x50526f('0x2897'),'defaultValue':_0x50526f('0x1ac3'),'values':[{'value':'\x27zh-HK\x27','option':_0x50526f('0x121')},{'value':_0x50526f('0x88a'),'option':'Chinese\x20(Simplified)'},{'value':_0x50526f('0x445'),'option':_0x50526f('0x561')},{'value':_0x50526f('0x2088'),'option':_0x50526f('0x6db')},{'value':'\x27nl\x27','option':_0x50526f('0x28cb')},{'value':_0x50526f('0x1ac3'),'option':_0x50526f('0x14d0')},{'value':'\x27en-AU\x27','option':_0x50526f('0x86e')},{'value':_0x50526f('0x23d6'),'option':_0x50526f('0x2566')},{'value':'\x27en-GB\x27','option':_0x50526f('0x198b')},{'value':'\x27en-IN\x27','option':_0x50526f('0x1b61')},{'value':_0x50526f('0xd76'),'option':'English\x20(US)'},{'value':_0x50526f('0x1930'),'option':_0x50526f('0x1a76')},{'value':'\x27fr-CA\x27','option':_0x50526f('0x2713')},{'value':_0x50526f('0x1e6f'),'option':'\x27France\x20(France)'},{'value':'\x27de\x27','option':'German'},{'value':_0x50526f('0x245'),'option':_0x50526f('0x232b')},{'value':_0x50526f('0xeab'),'option':_0x50526f('0xcc2')},{'value':'\x27it\x27','option':_0x50526f('0x2536')},{'value':_0x50526f('0x10d4'),'option':_0x50526f('0x1f37')},{'value':_0x50526f('0x169e'),'option':'Korean'},{'value':_0x50526f('0x2471'),'option':_0x50526f('0x1534')},{'value':_0x50526f('0x13ff'),'option':_0x50526f('0x1d30')},{'value':'\x27pt-BR\x27','option':_0x50526f('0x592')},{'value':_0x50526f('0x26b0'),'option':_0x50526f('0x94c')},{'value':'\x27ru\x27','option':_0x50526f('0x991')},{'value':_0x50526f('0x299'),'option':_0x50526f('0xf87')},{'value':_0x50526f('0x1075'),'option':_0x50526f('0x1b64')},{'value':_0x50526f('0x1cec'),'option':'Spanish\x20(Spain)'},{'value':_0x50526f('0x23a5'),'option':_0x50526f('0x1198')},{'value':_0x50526f('0x2817'),'option':_0x50526f('0x47d')},{'value':_0x50526f('0x14d5'),'option':_0x50526f('0x14d2')},{'value':_0x50526f('0x4f5'),'option':_0x50526f('0x1f20')}],'required':!![],'param':0x3},{'title':'welcomemessage','name':_0x50526f('0x1083'),'type':'textarea','maxlength':0xff,'param':0x4,'help':!![]}]},{'app':_0x50526f('0x16a9'),'appType':_0x50526f('0x16a9'),'type':_0x50526f('0x16a9'),'icon':_0x50526f('0x24a0'),'interval':'*,*,*,*','isApp':!![],'fields':[{'title':'accesskeyid','name':_0x50526f('0x1452'),'type':_0x50526f('0x132f'),'required':!![],'param':0x0},{'title':_0x50526f('0x1a62'),'name':_0x50526f('0x1a62'),'type':_0x50526f('0x132f'),'required':!![],'param':0x1},{'title':_0x50526f('0x1dcf'),'name':_0x50526f('0x1dcf'),'type':'select','defaultValue':'\x27us-east-1\x27','values':[{'option':'US\x20East\x20(N.\x20Virginia)','value':_0x50526f('0x191f')},{'option':_0x50526f('0x1c81'),'value':_0x50526f('0x1472')},{'option':_0x50526f('0x1296'),'value':_0x50526f('0x24a3')},{'option':'Asia\x20Pacific\x20(Sydney)','value':_0x50526f('0x25e8')}],'required':!![],'param':0x2},{'title':_0x50526f('0x4a'),'name':'botname','type':_0x50526f('0x132f'),'required':!![],'param':0x3},{'title':_0x50526f('0x1083'),'name':_0x50526f('0x1083'),'type':_0x50526f('0x6d3'),'maxlength':0xff,'required':![],'param':0x4,'help':!![]}]}],['app']),{'isApp':![]}),_0x4a5695[_0x50526f('0x134c')]={'group':{'name':_0x50526f('0x2003'),'pull':_0x50526f('0x2080')},'animation':0x64,'sort':![]},_0x4a5695[_0x50526f('0x1683')]={'group':{'name':_0x50526f('0x22e2'),'put':'opt1'},'animation':0x64,'onAdd':function(_0x1865fe){_0x125174(_0x1865fe,_0x1865fe['newIndex']);},'onSort':function(){_0x1b3aeb();}},_0x4a5695[_0x50526f('0x161d')]=_0x38a452,_0x4a5695['deleteConfirm']=_0x549e5a,_0x4a5695[_0x50526f('0x1b46')]=_0x30be88,_0x4a5695[_0x50526f('0x17bf')]=_0x125174,_0x4a5695[_0x50526f('0x1374')]=_0x84d578,_0x4a5695[_0x50526f('0x603')]=_0x2d504f,_0x4a5695[_0x50526f('0x22c8')]=_0x51229b,_0x4a5695[_0x50526f('0x107b')]=_0x1b3aeb,_0x4a5695[_0x50526f('0x1a0d')]=_0x408d22;function _0x38a452(_0x33a187,_0x4be11c){const _0x195e57=_0x50526f;_0x4a5695[_0x195e57('0x254f')]=_0x33a187,_0x4a5695[_0x195e57('0x103e')]=typeof _0x4be11c!=='undefined'?_0x4be11c:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x4a5695[_0x195e57('0x1683')]['disabled']=!_0x4a5695[_0x195e57('0x103e')][_0x195e57('0x1d34')]?!![]:![],_0x4a5695[_0x195e57('0x826')]['id']=_0x33a187['id'],_0x4a5695[_0x195e57('0x826')][_0x195e57('0xb08')]=!![],_0x4a5695[_0x195e57('0x826')][_0x195e57('0x24c6')]=!![],_0x4a5695[_0x195e57('0x1b46')](),_0x4a5695[_0x195e57('0x1a0d')]();}function _0x549e5a(_0x4e7a64,_0x403a41,_0x335928){const _0x58d4c0=_0x50526f,_0x228749=_0xa3a7f6[_0x58d4c0('0x1121')]()[_0x58d4c0('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20application?')[_0x58d4c0('0x211f')](''+_0x4e7a64[_0x58d4c0('0x643')]+_0x58d4c0('0x1d23')+_0x58d4c0('0xe9f'))[_0x58d4c0('0x2095')](_0x58d4c0('0x37b'))[_0x58d4c0('0x104f')](_0x335928)['ok']('OK')[_0x58d4c0('0x1d47')](_0x58d4c0('0x28a0'));_0xa3a7f6[_0x58d4c0('0x28e2')](_0x228749)[_0x58d4c0('0x17e7')](function(){const _0x3cc0a6=_0x58d4c0;_0x4a5695['whatsappAccountApps'][_0x3cc0a6('0x2319')]['splice'](_0x403a41,0x1),_0x1b3aeb();},function(){const _0x1b1147=_0x58d4c0;console[_0x1b1147('0x1d63')](_0x1b1147('0x28a0'));});}function _0x125174(_0x17b15a,_0x2eb08b){const _0x2fd59e=_0x50526f;if(_0x4a5695[_0x2fd59e('0x2448')][_0x2fd59e('0x2319')][_0x2fd59e('0x1f73')]){const _0x56743a=_0x4a5695[_0x2fd59e('0x2448')][_0x2fd59e('0x2319')][_0x2eb08b]?_0x4a5695[_0x2fd59e('0x2448')]['rows'][_0x2eb08b]:_0x4a5695['whatsappAccountApps'][_0x2fd59e('0x2319')][0x0],_0x572fa9=(_0x56743a[_0x2fd59e('0x1c54')]||_0x56743a['app'])[_0x2fd59e('0x19b')]();_0xa3a7f6[_0x2fd59e('0x28e2')]({'controller':_0x2fd59e('0x275e')+_0x572fa9+'DialogController','controllerAs':'vm','templateUrl':_0x35202d[_0x572fa9],'parent':angular[_0x2fd59e('0x1ce1')](_0x1f2664[_0x2fd59e('0x13aa')]),'targetEvent':_0x17b15a,'clickOutsideToClose':!![],'locals':{'whatsappAccountApp':_0x56743a,'whatsappAccount':_0x4a5695[_0x2fd59e('0x254f')],'crudPermissions':_0x4a5695[_0x2fd59e('0x103e')]}})[_0x2fd59e('0x17e7')](function(_0x37591f){const _0x748613=_0x2fd59e;_0x37591f&&(_0x37591f['id']?_0x4a5695[_0x748613('0x2448')][_0x748613('0x2319')][_0x2eb08b]=_0x37591f:_0x4a5695[_0x748613('0x2448')][_0x748613('0x2319')][_0x748613('0x2335')](_0x2eb08b,0x0,_0x37591f),_0x1b3aeb());})[_0x2fd59e('0x16df')](function(_0x1d32a4){const _0x4cd696=_0x2fd59e;_0x1d32a4&&_0x576c75[_0x4cd696('0x1db9')]({'title':_0x1d32a4[_0x4cd696('0x11c5')]?_0x4cd696('0x14f7')+_0x1d32a4[_0x4cd696('0x11c5')]+_0x4cd696('0x16e4')+_0x1d32a4[_0x4cd696('0x1833')]:_0x4cd696('0x2514'),'msg':_0x1d32a4['data']?JSON['stringify'](_0x1d32a4[_0x4cd696('0x1457')]):_0x1d32a4[_0x4cd696('0x9b6')]()});});}}function _0x84d578(_0x5e65cd,_0x1ac7a5){const _0x59bebb=_0x50526f;if(_0x4a5695[_0x59bebb('0x2448')][_0x59bebb('0x2319')][_0x59bebb('0x1f73')]){const _0x421145=_0x4a5695['whatsappAccountApps'][_0x59bebb('0x2319')][_0x1ac7a5]?_0x4a5695[_0x59bebb('0x2448')][_0x59bebb('0x2319')][_0x1ac7a5]:_0x4a5695[_0x59bebb('0x2448')][_0x59bebb('0x2319')][0x0];_0xa3a7f6[_0x59bebb('0x28e2')]({'controller':_0x59bebb('0x1b51'),'controllerAs':'vm','templateUrl':_0x283762,'parent':angular[_0x59bebb('0x1ce1')](_0x1f2664[_0x59bebb('0x13aa')]),'targetEvent':_0x5e65cd,'clickOutsideToClose':!![],'locals':{'interval':{'interval':_0x421145[_0x59bebb('0x231f')],'IntervalId':_0x421145[_0x59bebb('0x24a9')],'application':!![]},'intervals':[],'crudPermissions':_0x4a5695[_0x59bebb('0x103e')]}})['then'](function(_0x561535){const _0x38985d=_0x59bebb;_0x561535&&(_0x421145['interval']=_0x561535[_0x38985d('0x231f')]||_0x38985d('0x20c3'),_0x421145[_0x38985d('0x24a9')]=_0x561535[_0x38985d('0x24a9')]||null,_0x1b3aeb());});}}function _0x1b3aeb(){const _0x3c1a7a=_0x50526f;let _0x2f38d1=0x1,_0x28cf35=[];for(let _0x13b2a3=0x0;_0x13b2a3<_0x4a5695[_0x3c1a7a('0x2448')][_0x3c1a7a('0x2319')][_0x3c1a7a('0x1f73')];_0x13b2a3++){const _0x183ce1=_0x4a5695[_0x3c1a7a('0x2448')][_0x3c1a7a('0x2319')][_0x13b2a3],_0x303ab3=[],_0x91a61=[];_0x183ce1[_0x3c1a7a('0x1be1')]=_0x183ce1['interval']!==_0x3c1a7a('0x20c3')?[_0x183ce1['interval']]:_0x183ce1['IntervalId']?_0x49cbdd()[_0x3c1a7a('0x787')](_0x49cbdd()[_0x3c1a7a('0x2483')](_0x4a5695[_0x3c1a7a('0x1be1')][_0x3c1a7a('0x2319')],{'IntervalId':_0x183ce1[_0x3c1a7a('0x24a9')]}),_0x3c1a7a('0x231f')):[],_0x183ce1[_0x3c1a7a('0x17b3')]=_0x4a5695['whatsappAccount'][_0x3c1a7a('0x17b3')],_0x183ce1[_0x3c1a7a('0xee9')]=_0x4a5695[_0x3c1a7a('0x254f')][_0x3c1a7a('0xee9')],_0x183ce1[_0x3c1a7a('0x412')]&&(_0x183ce1[_0x3c1a7a('0x412')]=_0x183ce1[_0x3c1a7a('0x412')][_0x3c1a7a('0x19b')]()),_0x183ce1[_0x3c1a7a('0x1a6d')]=_0x303ab3[_0x3c1a7a('0x1f73')]?_0x49cbdd()[_0x3c1a7a('0x5e8')](_0x303ab3)[_0x3c1a7a('0x1a6d')]+0x1:_0x2f38d1,_0x2f38d1=(_0x91a61[_0x3c1a7a('0x1f73')]?_0x49cbdd()[_0x3c1a7a('0x5e8')](_0x91a61)[_0x3c1a7a('0x1a6d')]:_0x183ce1[_0x3c1a7a('0x1a6d')])+0x1,_0x28cf35=_0x49cbdd()[_0x3c1a7a('0xe1b')](_0x28cf35,_0x303ab3,[_0x183ce1],_0x91a61);}_0xa8063a[_0x3c1a7a('0x254f')]['addApplications']({'id':_0x4a5695['whatsappAccount']['id']},_0x49cbdd()['sortBy'](_0x28cf35,_0x3c1a7a('0x1a6d')))[_0x3c1a7a('0x1af5')]['then'](function(_0x5c320a){const _0x351a5d=_0x3c1a7a;_0x4a5695['whatsappAccountApps'][_0x351a5d('0x2319')]=_0x5c320a[_0x351a5d('0x2319')];})['catch'](function(_0x4da137){const _0x8c5353=_0x3c1a7a;console[_0x8c5353('0x1db9')](_0x4da137);});}function _0x146637(_0x4c2045){const _0x2a61b7=_0x50526f;_0x4a5695[_0x2a61b7('0x2448')]=_0x4c2045||{'count':0x0,'rows':[]};}function _0x408d22(){const _0x7895a=_0x50526f;return _0xa8063a['interval'][_0x7895a('0x1c53')]({'fields':_0x7895a('0x828')})[_0x7895a('0x1af5')][_0x7895a('0x17e7')](function(_0x14d473){const _0x3067f7=_0x7895a;_0x4a5695[_0x3067f7('0x1be1')]=_0x14d473;})['catch'](function(_0x5c324b){console['error'](_0x5c324b);});}function _0x30be88(){const _0x1d4e9b=_0x50526f;_0x4a5695[_0x1d4e9b('0x1691')]=_0xa8063a[_0x1d4e9b('0x254f')][_0x1d4e9b('0xd3e')](_0x4a5695[_0x1d4e9b('0x826')],_0x146637)['$promise'];}function _0x2d504f(_0x2d7eab){const _0x346545=_0x50526f;_0x49cbdd()[_0x346545('0x5f3')](_0x4a5695[_0x346545('0x2448')][_0x346545('0x2319')],{'id':_0x2d7eab['id']}),_0x1b3aeb(),_0x576c75[_0x346545('0x130d')]({'title':_0x346545('0x22bd'),'msg':_0x2d7eab['app']?_0x2d7eab[_0x346545('0x643')]+_0x346545('0x149f'):''});}function _0x51229b(_0x255a1a){const _0x5cc4a9=_0x50526f,_0x4c50ba=_0xa3a7f6[_0x5cc4a9('0x1121')]()[_0x5cc4a9('0x24d3')](_0x5cc4a9('0x272a'))[_0x5cc4a9('0x211f')](_0x5cc4a9('0xa53')+_0x4a5695['selectedWhatsappAccountApps'][_0x5cc4a9('0x1f73')]+_0x5cc4a9('0x145a')+_0x5cc4a9('0xe9f'))[_0x5cc4a9('0x2095')](_0x5cc4a9('0x362'))['targetEvent'](_0x255a1a)['ok']('OK')['cancel']('CANCEL');_0xa3a7f6[_0x5cc4a9('0x28e2')](_0x4c50ba)[_0x5cc4a9('0x17e7')](function(){const _0x1d6ea1=_0x5cc4a9;_0x4a5695['selectedWhatsappAccountApps'][_0x1d6ea1('0xccd')](function(_0xa3c395){const _0x485dbb=_0x1d6ea1;_0x49cbdd()['remove'](_0x4a5695[_0x485dbb('0x2448')][_0x485dbb('0x2319')],{'id':_0xa3c395['id']});}),_0x4a5695[_0x1d6ea1('0x881')]=[],_0x1b3aeb();});}}const _0x5459b7=_0x164907;_0x427806[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x254f'),_0x4376d8('0x58b'),_0x4376d8('0x20c8'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x427806(_0x5df966,_0x317111,_0x4672d7,_0x10f04a,_0x91f9ef,_0x184167,_0x3c9c7d,_0x1b49b8,_0x34cc80,_0x501c22){const _0x37c50d=_0x4376d8,_0x3070ea=this;_0x3070ea[_0x37c50d('0x197c')]=_0x34cc80['getCurrentUser'](),_0x3070ea['whatsappAccount']=_0x91f9ef,_0x3070ea[_0x37c50d('0x103e')]=_0x501c22,_0x3070ea[_0x37c50d('0x20c8')]=_0x3c9c7d,_0x3070ea[_0x37c50d('0x532')]=[],_0x3070ea[_0x37c50d('0x2722')]=[],_0x3070ea[_0x37c50d('0xc14')]=[],_0x3070ea[_0x37c50d('0x181b')]=[],_0x3070ea[_0x37c50d('0x1824')]=[],_0x3070ea[_0x37c50d('0x25dc')]=![],_0x3070ea[_0x37c50d('0xdf0')]=_0x458689,_0x3070ea[_0x37c50d('0x257a')]=_0x2e6107,_0x3070ea[_0x37c50d('0x136e')]=_0x485e6e,_0x3070ea[_0x37c50d('0x26f4')]={'readOnly':!_0x3070ea[_0x37c50d('0x103e')][_0x37c50d('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x37c50d('0x2aa'),'line1':'fullname','line2':[_0x37c50d('0x2aa'),'internal'],'line3':'','labelAll':_0x1b49b8[_0x37c50d('0x1acc')](_0x37c50d('0x20fa')),'labelSelected':_0x1b49b8[_0x37c50d('0x1acc')](_0x37c50d('0xf6e')),'transferCallback':function(){const _0x4e9efa=_0x37c50d,_0x1a0d97=_0x49cbdd()[_0x4e9efa('0x137')](_0x3070ea[_0x4e9efa('0x1824')],_0x3070ea[_0x4e9efa('0xc14')],'id');_0x3070ea[_0x4e9efa('0x25dc')]=_0x49cbdd()[_0x4e9efa('0x109a')](_0x1a0d97)?![]:!![];}};function _0x458689(){const _0x1907a6=_0x37c50d;return _0x34cc80['hasRole']('admin')?_0x28ed7b()['catch'](function(_0x43e4af){const _0x4a8916=a0_0xd29e;_0x4672d7[_0x4a8916('0x1db9')]({'title':_0x43e4af[_0x4a8916('0x11c5')]?_0x4a8916('0x14f7')+_0x43e4af[_0x4a8916('0x11c5')]+_0x4a8916('0x16e4')+_0x43e4af['statusText']:_0x4a8916('0x23e0'),'msg':_0x43e4af[_0x4a8916('0x11c5')]?JSON[_0x4a8916('0x678')](_0x43e4af[_0x4a8916('0x1457')]):_0x43e4af[_0x4a8916('0x9b6')]()});}):_0x1e026e()[_0x1907a6('0x17e7')](function(_0x36ca9d){const _0x5a46e6=_0x1907a6;return _0x3070ea[_0x5a46e6('0x16f8')]=_0x36ca9d,_0x28ed7b();})[_0x1907a6('0x16df')](function(_0x5bc150){const _0x6d1009=_0x1907a6;_0x4672d7[_0x6d1009('0x1db9')]({'title':_0x5bc150[_0x6d1009('0x11c5')]?_0x6d1009('0x14f7')+_0x5bc150[_0x6d1009('0x11c5')]+_0x6d1009('0x16e4')+_0x5bc150[_0x6d1009('0x1833')]:_0x6d1009('0x23e0'),'msg':_0x5bc150[_0x6d1009('0x11c5')]?JSON[_0x6d1009('0x678')](_0x5bc150[_0x6d1009('0x1457')]):_0x5bc150[_0x6d1009('0x9b6')]()});});}function _0x1e026e(){return _0x317111(function(_0x1046bd,_0x149981){const _0x12431a=a0_0xd29e;_0x10f04a[_0x12431a('0x383')][_0x12431a('0x1c53')]({'userProfileId':_0x3070ea[_0x12431a('0x197c')][_0x12431a('0x1e76')],'name':_0x12431a('0x2157')})['$promise'][_0x12431a('0x17e7')](function(_0xf0ec9){const _0x55961a=_0x12431a,_0x37836d=_0xf0ec9&&_0xf0ec9[_0x55961a('0x2319')]?_0xf0ec9[_0x55961a('0x2319')][0x0]:null;_0x1046bd(_0x37836d);})['catch'](function(_0x23e888){_0x149981(_0x23e888);});});}function _0x28ed7b(){return _0x317111(function(_0x439483,_0x57decd){const _0x5d64f9=a0_0xd29e;return _0x50402e()[_0x5d64f9('0x17e7')](function(_0x5107a7){const _0x3915ac=_0x5d64f9;return _0x3070ea[_0x3915ac('0x532')]=_0x5107a7[_0x3915ac('0x2319')]?_0x5107a7[_0x3915ac('0x2319')]:[],_0x34cc80['hasRole']('admin')?_0x5107a7:_0x3070ea[_0x3915ac('0x16f8')]?_0x3070ea[_0x3915ac('0x16f8')][_0x3915ac('0x9e3')]?_0x5107a7:_0x4ebc2b():null;})[_0x5d64f9('0x17e7')](function(_0x486d16){const _0x33e769=_0x5d64f9,_0x273337=_0x486d16&&_0x486d16[_0x33e769('0x2319')]?_0x486d16[_0x33e769('0x2319')]:[];return _0x3070ea['allowedItems']=_0x49cbdd()['map'](_0x273337,function(_0x2bc4fb){const _0x3cff36=_0x33e769;return _0x49cbdd()[_0x3cff36('0xe8e')](_0x3070ea[_0x3cff36('0x532')],{'id':_0x34cc80[_0x3cff36('0x1ba2')](_0x3cff36('0x20bf'))||_0x3070ea[_0x3cff36('0x16f8')][_0x3cff36('0x9e3')]?_0x2bc4fb['id']:_0x2bc4fb[_0x3cff36('0x5db')]});}),_0x3070ea[_0x33e769('0x181b')]=angular[_0x33e769('0x14e5')](_0x3070ea[_0x33e769('0x2722')]),_0x3070ea[_0x33e769('0x532')][_0x33e769('0xccd')](function(_0x5c6092){const _0x26bdbe=_0x33e769,_0xfaf25f=_0x49cbdd()[_0x26bdbe('0xe8e')](_0x3070ea[_0x26bdbe('0x2722')],{'id':_0x5c6092['id']});_0x34cc80[_0x26bdbe('0x1ba2')](_0x26bdbe('0x20bf'))?_0x5c6092[_0x26bdbe('0xc98')]=!![]:_0x5c6092[_0x26bdbe('0xc98')]=typeof _0xfaf25f!==_0x26bdbe('0xfad')?!![]:![];}),_0x4cc1f7();})[_0x5d64f9('0x17e7')](function(_0x589478){const _0x45b0c0=_0x5d64f9,_0xb2f2cc=_0x589478&&_0x589478['rows']?_0x589478[_0x45b0c0('0x2319')]:[];_0x3070ea[_0x45b0c0('0xc14')]=_0x49cbdd()['map'](_0xb2f2cc,function(_0x52fe2f){const _0x5b7ad5=_0x45b0c0,_0x30c777=_0x49cbdd()[_0x5b7ad5('0xe8e')](_0x3070ea[_0x5b7ad5('0x532')],{'id':_0x52fe2f['id']});return _0x30c777[_0x5b7ad5('0x122c')]=_0x52fe2f['UserWhatsappAccount']?_0x5b7ad5('0x973')+_0x52fe2f[_0x5b7ad5('0x11be')]['penalty']:'',_0x30c777['internal']=typeof _0x52fe2f[_0x5b7ad5('0xe3e')]!==_0x5b7ad5('0xfad')?'<'+_0x52fe2f['internal']+'>':'',_0x30c777;}),_0x3070ea[_0x45b0c0('0x1824')]=angular['copy'](_0x3070ea['selectedItems']),_0x3070ea[_0x45b0c0('0x26f4')][_0x45b0c0('0xc14')]=_0x3070ea[_0x45b0c0('0xc14')],_0x3070ea[_0x45b0c0('0x26f4')][_0x45b0c0('0x532')]=_0x49cbdd()[_0x45b0c0('0x1ada')](_0x3070ea[_0x45b0c0('0x2722')],_0x3070ea[_0x45b0c0('0x26f4')]['selectedItems'],'id'),_0x439483();})[_0x5d64f9('0x16df')](function(_0x3f2921){_0x57decd(_0x3f2921);});});}function _0x4ebc2b(){return _0x317111(function(_0x1fcaeb,_0x572155){const _0x40b158=a0_0xd29e;return _0x10f04a[_0x40b158('0x78d')][_0x40b158('0x1c53')]({'sectionId':_0x3070ea[_0x40b158('0x16f8')]['id'],'nolimit':!![]})[_0x40b158('0x1af5')][_0x40b158('0x17e7')](function(_0x4e0b56){_0x1fcaeb(_0x4e0b56);})[_0x40b158('0x16df')](function(_0x315973){_0x572155(_0x315973);});});}function _0x4cc1f7(){return _0x317111(function(_0x3cb27c,_0xdf1d2c){const _0x3e54ac=a0_0xd29e;return _0x10f04a[_0x3e54ac('0x254f')]['getAgents']({'id':_0x3070ea[_0x3e54ac('0x254f')]['id'],'fields':_0x3e54ac('0x1152'),'nolimit':!![],'role':_0x3e54ac('0x684')})[_0x3e54ac('0x1af5')]['then'](function(_0x805776){_0x3cb27c(_0x805776);})['catch'](function(_0x15e75c){_0xdf1d2c(_0x15e75c);});});}function _0x50402e(){return _0x317111(function(_0x3631fa,_0x53c440){const _0x59e44a=a0_0xd29e;return _0x10f04a[_0x59e44a('0x221e')]['get']({'fields':_0x59e44a('0x1152'),'nolimit':!![],'role':_0x59e44a('0x684')})[_0x59e44a('0x1af5')][_0x59e44a('0x17e7')](function(_0x329925){_0x3631fa(_0x329925);})['catch'](function(_0x53f68c){_0x53c440(_0x53f68c);});});}function _0x41b39c(_0x22650d){return _0x317111(function(_0x3e0b60,_0x3cc42a){const _0x17a723=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x22650d)?_0x3e0b60():_0x10f04a[_0x17a723('0x254f')][_0x17a723('0x1f22')]({'id':_0x3070ea[_0x17a723('0x254f')]['id'],'ids':_0x49cbdd()[_0x17a723('0x787')](_0x22650d,'id')})[_0x17a723('0x1af5')][_0x17a723('0x17e7')](function(){_0x3e0b60();})[_0x17a723('0x16df')](function(_0x56d902){_0x3cc42a(_0x56d902);});});}function _0x20020e(_0x4b0d6a){return _0x317111(function(_0x2575b4,_0x36e06b){const _0x31d4d5=a0_0xd29e;_0x49cbdd()['isEmpty'](_0x4b0d6a)?_0x2575b4():_0x10f04a[_0x31d4d5('0x254f')]['removeAgents']({'id':_0x3070ea[_0x31d4d5('0x254f')]['id'],'ids':_0x49cbdd()[_0x31d4d5('0x787')](_0x4b0d6a,'id')})[_0x31d4d5('0x1af5')][_0x31d4d5('0x17e7')](function(){_0x2575b4();})[_0x31d4d5('0x16df')](function(_0xd62476){_0x36e06b(_0xd62476);});});}function _0x2e6107(){const _0x5b759a=_0x37c50d,_0xf272a6=_0x49cbdd()[_0x5b759a('0x1ada')](_0x3070ea[_0x5b759a('0x1824')],_0x3070ea[_0x5b759a('0xc14')],'id'),_0x4a984=_0x49cbdd()[_0x5b759a('0x1ada')](_0x3070ea[_0x5b759a('0xc14')],_0x3070ea[_0x5b759a('0x1824')],'id');return _0x20020e(_0xf272a6)[_0x5b759a('0x17e7')](function(){return _0x41b39c(_0x4a984);})['then'](function(){const _0x357f5d=_0x5b759a;_0x3070ea[_0x357f5d('0x25dc')]=![],_0x3070ea[_0x357f5d('0x181b')]=angular['copy'](_0x3070ea[_0x357f5d('0x2722')]),_0x3070ea[_0x357f5d('0x1824')]=angular['copy'](_0x3070ea['selectedItems']),_0x4672d7[_0x357f5d('0x130d')]({'title':_0x357f5d('0x9d1'),'msg':_0x357f5d('0x2603')});})['catch'](function(_0x1f1980){const _0x2a475a=_0x5b759a;_0x4672d7[_0x2a475a('0x1db9')]({'title':_0x1f1980[_0x2a475a('0x11c5')]?_0x2a475a('0x14f7')+_0x1f1980[_0x2a475a('0x11c5')]+_0x2a475a('0x16e4')+_0x1f1980[_0x2a475a('0x1833')]:_0x2a475a('0x244e'),'msg':_0x1f1980[_0x2a475a('0x11c5')]?JSON['stringify'](_0x1f1980['data']):_0x1f1980[_0x2a475a('0x9b6')]()});});}function _0x485e6e(){const _0x857872=_0x37c50d;_0x5df966[_0x857872('0x212a')]();}}const _0x1c6249=_0x427806;_0x45412f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x149e'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x45412f(_0x170b8b,_0x406d28,_0x27d6d0,_0xb821cb,_0xb873db,_0x2456db,_0xd4a0ed,_0x86ecce){const _0x1f24dd=_0x4376d8,_0x566d19=this;_0x566d19[_0x1f24dd('0x197c')]=_0xd4a0ed['getCurrentUser'](),_0x566d19[_0x1f24dd('0x73e')]=[],_0x566d19[_0x1f24dd('0x24d3')]='WHATSAPP.EDIT_'+(_0xb821cb['appType']||_0xb821cb['app'])[_0x1f24dd('0x14e2')](),_0x566d19[_0x1f24dd('0x684')]=angular[_0x1f24dd('0x14e5')](_0xb821cb),_0x566d19[_0x1f24dd('0x103e')]=_0x86ecce,_0x566d19[_0x1f24dd('0x6ee')]={};if(_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2077')])switch(_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x1c54')]?_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x1c54')]['toLowerCase']():_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x643')][_0x1f24dd('0x19b')]()){case _0x1f24dd('0x8fa'):break;case'dialogflow':{const _0x251cd8=_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2077')]['split'](',');_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0xdb5')]=_0x251cd8[0x0],_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x3e1')]=_0x251cd8[0x1],_0x566d19[_0x1f24dd('0x684')]['welcomemessage']=_0x251cd8['slice'](0x2,_0x251cd8['length'])[_0x1f24dd('0x1eba')](',');}break;case'dialogflowv2':{const _0x513805=_0x566d19[_0x1f24dd('0x684')]['appdata'][_0x1f24dd('0x2007')](',');_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x28ab')]=_0x513805[0x0],_0x566d19['agent']['clientEmail']=_0x513805[0x1],_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x1bc2')]=_0x513805[0x2],_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x3e1')]=_0x513805[0x3],_0x566d19[_0x1f24dd('0x684')]['welcomemessage']=_0x513805[_0x1f24dd('0x275f')](0x4,_0x513805[_0x1f24dd('0x1f73')])[_0x1f24dd('0x1eba')](',');}break;case _0x1f24dd('0x16a9'):{const _0x94eca6=_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2077')][_0x1f24dd('0x2007')](',');_0x566d19[_0x1f24dd('0x684')]['accesskeyid']=_0x94eca6[0x0],_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x1a62')]=_0x94eca6[0x1],_0x566d19['agent']['lexregion']=_0x94eca6[0x2],_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x4a')]=_0x94eca6[0x3],_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x1083')]=_0x94eca6[_0x1f24dd('0x275f')](0x4,_0x94eca6[_0x1f24dd('0x1f73')])[_0x1f24dd('0x1eba')](',');}break;case _0x1f24dd('0x96e'):{const _0xc5bf6c=_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2077')][_0x1f24dd('0x2007')](',');_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x12a6')]=isNaN(_0xc5bf6c[0x0])?_0xc5bf6c[0x0]:parseInt(_0xc5bf6c[0x0],0xa),_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x132f')]=_0xc5bf6c['slice'](0x1,_0xc5bf6c[_0x1f24dd('0x1f73')])['join'](',');}break;case _0x1f24dd('0x1603'):_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x132f')]=_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2077')];break;case _0x1f24dd('0xf2e'):_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2aa')]=_0x566d19[_0x1f24dd('0x684')]['appdata'][_0x1f24dd('0x2007')]('=')[0x0],_0x566d19[_0x1f24dd('0x684')]['value']=_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2077')][_0x1f24dd('0x2007')]('=')[0x1];break;case _0x1f24dd('0x17c6'):_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x87c')]=_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2077')];break;default:{const _0x265f6a=_0x566d19[_0x1f24dd('0x684')]['appdata'][_0x1f24dd('0x2007')](',');_0x566d19[_0x1f24dd('0x684')]['agent']=_0x49cbdd()['isEmpty'](_0x265f6a[0x0])?_0x265f6a[0x0]:isNaN(_0x265f6a[0x0])?_0x265f6a[0x0]:parseInt(_0x265f6a[0x0],0xa),_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0xd2f')]=_0x49cbdd()[_0x1f24dd('0x109a')](_0x265f6a[0x1])?_0x265f6a[0x1]:isNaN(_0x265f6a[0x1])?_0x265f6a[0x1]:parseInt(_0x265f6a[0x1],0xa);}break;}else _0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0xd2f')]=0x1e;_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x412')]&&_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x412')][_0x1f24dd('0x19b')]()===_0x1f24dd('0x1ade')&&_0x566d19['agent'][_0x1f24dd('0x1c54')][_0x1f24dd('0x19b')]()===_0x1f24dd('0x1711')&&(_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x11d4')]=_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2154')]?_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x2154')]['split']('$')[0x0]:undefined,_0x566d19[_0x1f24dd('0x684')]['callerId']=_0x566d19[_0x1f24dd('0x684')][_0x1f24dd('0x17f4')]?_0x1f24dd('0x1d28')+_0x566d19['agent']['callerID']:undefined);_0x566d19[_0x1f24dd('0x1eb3')]=_0x10d230,_0x566d19['closeDialog']=_0x16cd64,_0xd4a0ed[_0x1f24dd('0x1ba2')](_0x1f24dd('0x20bf'))?_0x2456db[_0x1f24dd('0x221e')][_0x1f24dd('0x1c53')]({'fields':_0x1f24dd('0x12d2'),'sort':_0x1f24dd('0x2aa'),'nolimit':_0x1f24dd('0xe34'),'role':_0x1f24dd('0x684')})['$promise'][_0x1f24dd('0x17e7')](function(_0x503d06){const _0x53481c=_0x1f24dd;_0x566d19[_0x53481c('0x25ea')]=_0x503d06[_0x53481c('0x2319')]||[];})[_0x1f24dd('0x16df')](function(_0x222918){const _0x3a3003=_0x1f24dd;_0x27d6d0[_0x3a3003('0x1db9')]({'title':_0x222918['status']?_0x3a3003('0x14f7')+_0x222918[_0x3a3003('0x11c5')]+'\x20-\x20'+_0x222918[_0x3a3003('0x1833')]:_0x3a3003('0x23e0'),'msg':_0x222918['data']?JSON['stringify'](_0x222918[_0x3a3003('0x1457')]):_0x222918[_0x3a3003('0x9b6')]()});}):_0x2456db[_0x1f24dd('0x221e')][_0x1f24dd('0x1c53')]({'fields':_0x1f24dd('0x12d2'),'sort':_0x1f24dd('0x2aa'),'nolimit':_0x1f24dd('0xe34'),'role':_0x1f24dd('0x684')})[_0x1f24dd('0x1af5')][_0x1f24dd('0x17e7')](function(_0x46127e){const _0x501ee5=_0x1f24dd;_0x566d19[_0x501ee5('0x25ea')]=_0x46127e[_0x501ee5('0x2319')]||[];})['then'](function(){const _0x12cb82=_0x1f24dd;return _0x2456db['userProfileSection'][_0x12cb82('0x1c53')]({'userProfileId':_0x566d19[_0x12cb82('0x197c')]['userProfileId'],'sectionId':0xca})[_0x12cb82('0x1af5')];})[_0x1f24dd('0x17e7')](function(_0x2cd74d){const _0x1b5115=_0x1f24dd,_0x4b45d2=_0x2cd74d&&_0x2cd74d['rows']?_0x2cd74d[_0x1b5115('0x2319')][0x0]:null;if(!_0x4b45d2){const _0x5da679=[];let _0x2050c5=null;_0x566d19[_0x1b5115('0x684')]&&(_0x2050c5=_0x49cbdd()['find'](_0x566d19[_0x1b5115('0x25ea')],{'name':_0x566d19[_0x1b5115('0x684')][_0x1b5115('0x684')]}));for(let _0x30c5b1=0x0;_0x30c5b1<_0x566d19['agents'][_0x1b5115('0x1f73')];_0x30c5b1++){_0x2050c5&&_0x566d19['agents'][_0x30c5b1]['id']===_0x2050c5['id']&&(_0x566d19['agents'][_0x30c5b1][_0x1b5115('0xe5c')]=![],_0x5da679[_0x1b5115('0x269f')](_0x566d19[_0x1b5115('0x25ea')][_0x30c5b1]));}_0x566d19['agents']=_0x5da679;}else{if(!_0x4b45d2[_0x1b5115('0x9e3')])return _0x2456db['userProfileResource'][_0x1b5115('0x1c53')]({'sectionId':_0x4b45d2['id']})['$promise'][_0x1b5115('0x17e7')](function(_0x2fd737){const _0x3e0e5f=_0x1b5115,_0x2e4f41=_0x49cbdd()['map'](_0x2fd737[_0x3e0e5f('0x2319')],function(_0x278899){const _0x3aad15=_0x3e0e5f;return _0x49cbdd()[_0x3aad15('0xe8e')](_0x566d19[_0x3aad15('0x25ea')],{'id':_0x278899[_0x3aad15('0x5db')]});});let _0x4e1498=null;_0x566d19['agent']&&(_0x4e1498=_0x49cbdd()['find'](_0x566d19[_0x3e0e5f('0x25ea')],{'name':_0x566d19[_0x3e0e5f('0x684')]['agent']}));if(_0x4e1498&&!_0x49cbdd()[_0x3e0e5f('0x26f8')](_0x2e4f41,['id',_0x4e1498['id']])){const _0x31208a=_0x49cbdd()['find'](_0x566d19['agents'],{'id':_0x4e1498['id']});_0x31208a[_0x3e0e5f('0xe5c')]=![],_0x2e4f41[_0x3e0e5f('0x269f')](_0x31208a);}_0x566d19['agents']=_0x2e4f41;});}})['catch'](function(_0x362d10){const _0x1bd8f5=_0x1f24dd;_0x27d6d0[_0x1bd8f5('0x1db9')]({'title':_0x362d10[_0x1bd8f5('0x11c5')]?_0x1bd8f5('0x14f7')+_0x362d10['status']+'\x20-\x20'+_0x362d10[_0x1bd8f5('0x1833')]:'SYSTEM:GETagents','msg':_0x362d10[_0x1bd8f5('0x1457')]?JSON[_0x1bd8f5('0x678')](_0x362d10[_0x1bd8f5('0x1457')]):_0x362d10[_0x1bd8f5('0x9b6')]()});});function _0x10d230(){const _0x3f774d=_0x1f24dd;_0x566d19[_0x3f774d('0x73e')]=[];const _0x25d7b6=[];_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x412')]&&_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x412')][_0x3f774d('0x19b')]()===_0x3f774d('0x1ade')&&_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x1c54')]===_0x3f774d('0xbdc')&&(_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x2154')]=_0xb873db[_0x3f774d('0x12af')]?(_0x566d19['agent'][_0x3f774d('0x11d4')]||'')+'${EXTEN:'+_0xb873db[_0x3f774d('0x12af')]+'}':(_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x11d4')]||'')+_0x3f774d('0x150e'),_0xb873db[_0x3f774d('0x287')]!==_0x3f774d('0x7ee')?_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x19')][_0x3f774d('0x2567')](_0x3f774d('0xa22'))<0x0&&(_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x19')]+='U(xcally-mixmonitor-context)'):_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x19')]=_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x19')][_0x3f774d('0x737')](_0x3f774d('0xa22'),''));const _0x566d42=_0x49cbdd()[_0x3f774d('0xe8e')](_0x566d19[_0x3f774d('0x25ea')],{'name':_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x684')]});_0x566d42&&(_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x5e5')]=_0x566d42['id']);if(_0x566d19[_0x3f774d('0x684')]['appType']&&_0x566d19['agent'][_0x3f774d('0x1c54')]===_0x3f774d('0x8fa')){}else switch((_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x643')]||_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x1c54')])[_0x3f774d('0x19b')]()){case'set':_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x2077')]=_0x566d19['agent'][_0x3f774d('0x2aa')]+'='+_0x566d19[_0x3f774d('0x684')][_0x3f774d('0x175b')];break;case _0x3f774d('0x8fa'):break;default:_0x25d7b6[0x0]=_0x566d19[_0x3f774d('0x684')]['agent'],_0x25d7b6[0x1]=_0x566d19[_0x3f774d('0x684')][_0x3f774d('0xd2f')],_0x566d19[_0x3f774d('0x684')]['appdata']=_0x25d7b6[_0x3f774d('0x1eba')](',');}_0x16cd64(_0x566d19['agent']);}function _0x16cd64(_0x31d177){const _0x266957=_0x1f24dd;_0x170b8b[_0x266957('0x212a')](_0x31d177);}}const _0x55db6a=_0x45412f;_0x2bdc8b[_0x4376d8('0x1b9c')]=['$mdDialog','$q','toasty',_0x4376d8('0x149e'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x2bdc8b(_0x5e5f06,_0x549215,_0x126745,_0x1194db,_0x33d7e2,_0x44230d,_0x32cae8,_0x416cc2){const _0x51053e=_0x4376d8,_0x1c93c7=this;_0x1c93c7[_0x51053e('0x197c')]=_0x32cae8[_0x51053e('0x2831')](),_0x1c93c7[_0x51053e('0x73e')]=[],_0x1c93c7[_0x51053e('0x24d3')]='WHATSAPP.EDIT_'+(_0x1194db['appType']||_0x1194db['app'])['toUpperCase'](),_0x1c93c7[_0x51053e('0x16a9')]=angular[_0x51053e('0x14e5')](_0x1194db),_0x1c93c7[_0x51053e('0x103e')]=_0x416cc2,_0x1c93c7[_0x51053e('0x6ee')]={};if(_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2077')])switch(_0x1c93c7['amazonlex'][_0x51053e('0x1c54')]?_0x1c93c7['amazonlex'][_0x51053e('0x1c54')][_0x51053e('0x19b')]():_0x1c93c7['amazonlex'][_0x51053e('0x643')][_0x51053e('0x19b')]()){case _0x51053e('0x8fa'):break;case'dialogflow':{const _0x2ae79a=_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2077')][_0x51053e('0x2007')](',');_0x1c93c7[_0x51053e('0x16a9')]['key']=_0x2ae79a[0x0],_0x1c93c7['amazonlex'][_0x51053e('0x3e1')]=_0x2ae79a[0x1],_0x1c93c7['amazonlex'][_0x51053e('0x1083')]=_0x2ae79a[_0x51053e('0x275f')](0x2,_0x2ae79a['length'])[_0x51053e('0x1eba')](',');}break;case _0x51053e('0x22ac'):{const _0x508998=_0x1c93c7['amazonlex'][_0x51053e('0x2077')][_0x51053e('0x2007')](',');_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x28ab')]=_0x508998[0x0],_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2814')]=_0x508998[0x1],_0x1c93c7[_0x51053e('0x16a9')]['privateKey']=_0x508998[0x2],_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x3e1')]=_0x508998[0x3],_0x1c93c7['amazonlex'][_0x51053e('0x1083')]=_0x508998['slice'](0x4,_0x508998[_0x51053e('0x1f73')])[_0x51053e('0x1eba')](',');}break;case _0x51053e('0x16a9'):{const _0x2d3d6a=_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2077')][_0x51053e('0x2007')](',');_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x1452')]=_0x2d3d6a[0x0],_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x1a62')]=_0x2d3d6a[0x1],_0x1c93c7[_0x51053e('0x16a9')]['lexregion']=_0x2d3d6a[0x2],_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x4a')]=_0x2d3d6a[0x3],_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x1083')]=_0x2d3d6a['slice'](0x4,_0x2d3d6a['length'])['join'](',');}break;case _0x51053e('0x96e'):{const _0x250e18=_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2077')][_0x51053e('0x2007')](',');_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x12a6')]=isNaN(_0x250e18[0x0])?_0x250e18[0x0]:parseInt(_0x250e18[0x0],0xa),_0x1c93c7['amazonlex']['text']=_0x250e18['slice'](0x1,_0x250e18[_0x51053e('0x1f73')])[_0x51053e('0x1eba')](',');}break;case _0x51053e('0x1603'):_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x132f')]=_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2077')];break;case _0x51053e('0xf2e'):_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2aa')]=_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2077')][_0x51053e('0x2007')]('=')[0x0],_0x1c93c7[_0x51053e('0x16a9')]['value']=_0x1c93c7['amazonlex']['appdata'][_0x51053e('0x2007')]('=')[0x1];break;case _0x51053e('0x17c6'):_0x1c93c7['amazonlex']['project']=_0x1c93c7[_0x51053e('0x16a9')]['appdata'];break;default:{const _0x1a27fe=_0x1c93c7['amazonlex'][_0x51053e('0x2077')][_0x51053e('0x2007')](',');_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x1452')]=_0x49cbdd()[_0x51053e('0x109a')](_0x1a27fe[0x0])?_0x1a27fe[0x0]:isNaN(_0x1a27fe[0x0])?_0x1a27fe[0x0]:parseInt(_0x1a27fe[0x0],0xa),_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x1a62')]=_0x49cbdd()[_0x51053e('0x109a')](_0x1a27fe[0x1])?_0x1a27fe[0x1]:isNaN(_0x1a27fe[0x1])?_0x1a27fe[0x1]:parseInt(_0x1a27fe[0x1],0xa),_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x1dcf')]=_0x49cbdd()[_0x51053e('0x109a')](_0x1a27fe[0x2])?_0x1a27fe[0x2]:isNaN(_0x1a27fe[0x2])?_0x1a27fe[0x2]:parseInt(_0x1a27fe[0x2],0xa),_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x4a')]=_0x49cbdd()[_0x51053e('0x109a')](_0x1a27fe[0x3])?_0x1a27fe[0x3]:isNaN(_0x1a27fe[0x3])?_0x1a27fe[0x3]:parseInt(_0x1a27fe[0x3],0xa),_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x1083')]=_0x49cbdd()[_0x51053e('0x109a')](_0x1a27fe[0x4])?_0x1a27fe[0x4]:isNaN(_0x1a27fe[0x4])?_0x1a27fe[0x4]:parseInt(_0x1a27fe[0x4],0xa);}break;}else _0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x1dcf')]=_0x51053e('0xf85');_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x412')]&&_0x1c93c7['amazonlex'][_0x51053e('0x412')][_0x51053e('0x19b')]()===_0x51053e('0x1ade')&&_0x1c93c7['amazonlex'][_0x51053e('0x1c54')][_0x51053e('0x19b')]()==='outbounddial'&&(_0x1c93c7[_0x51053e('0x16a9')]['prefix']=_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2154')]?_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x2154')]['split']('$')[0x0]:undefined,_0x1c93c7['amazonlex']['callerId']=_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x17f4')]?_0x51053e('0x1d28')+_0x1c93c7[_0x51053e('0x16a9')][_0x51053e('0x17f4')]:undefined);_0x1c93c7['saveWhatsappAccountApp']=_0x5d66dc,_0x1c93c7[_0x51053e('0x136e')]=_0x5d766b;function _0x5d66dc(){const _0x1b961c=_0x51053e;_0x1c93c7[_0x1b961c('0x73e')]=[];const _0x3b5781=[];_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x412')]&&_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x412')]['toLowerCase']()===_0x1b961c('0x1ade')&&_0x1c93c7['amazonlex']['appType']==='outboundDial'&&(_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x2154')]=_0x33d7e2[_0x1b961c('0x12af')]?(_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x11d4')]||'')+'${EXTEN:'+_0x33d7e2['cutdigits']+'}':(_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x11d4')]||'')+_0x1b961c('0x150e'),_0x33d7e2[_0x1b961c('0x287')]!==_0x1b961c('0x7ee')?_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x19')][_0x1b961c('0x2567')](_0x1b961c('0xa22'))<0x0&&(_0x1c93c7[_0x1b961c('0x16a9')]['options']+=_0x1b961c('0xa22')):_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x19')]=_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x19')][_0x1b961c('0x737')](_0x1b961c('0xa22'),''));if(_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x1c54')]&&_0x1c93c7['amazonlex']['appType']===_0x1b961c('0x8fa')){}else switch((_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x643')]||_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x1c54')])[_0x1b961c('0x19b')]()){case _0x1b961c('0xf2e'):_0x1c93c7[_0x1b961c('0x16a9')]['appdata']=_0x1c93c7['amazonlex'][_0x1b961c('0x2aa')]+'='+_0x1c93c7['amazonlex']['value'];break;case _0x1b961c('0x8fa'):break;default:_0x3b5781[0x0]=_0x1c93c7['amazonlex'][_0x1b961c('0x1452')],_0x3b5781[0x1]=_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x1a62')],_0x3b5781[0x2]=_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x1dcf')],_0x3b5781[0x3]=_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x4a')],_0x3b5781[0x4]=_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x1083')],_0x1c93c7[_0x1b961c('0x16a9')][_0x1b961c('0x2077')]=_0x3b5781[_0x1b961c('0x1eba')](',');}_0x5d766b(_0x1c93c7['amazonlex']);}function _0x5d766b(_0x7851fa){_0x5e5f06['hide'](_0x7851fa);}}const _0x4f4d33=_0x2bdc8b;_0x11adb3[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x149e'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x11adb3(_0x45064,_0x59827e,_0x326761,_0x2b41cb,_0x311d9c,_0x173d00,_0x1d4e47,_0x542940){const _0x14d752=_0x4376d8,_0xebf540=this;_0xebf540[_0x14d752('0x197c')]=_0x1d4e47['getCurrentUser'](),_0xebf540[_0x14d752('0x73e')]=[],_0xebf540[_0x14d752('0x24d3')]=_0x14d752('0x1bd6')+(_0x2b41cb[_0x14d752('0x1c54')]||_0x2b41cb[_0x14d752('0x643')])['toUpperCase'](),_0xebf540['autoreply']=angular[_0x14d752('0x14e5')](_0x2b41cb),_0xebf540[_0x14d752('0x103e')]=_0x542940,_0xebf540['hasModulePermissions']={};if(_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2077')])switch(_0xebf540['autoreply'][_0x14d752('0x1c54')]?_0xebf540[_0x14d752('0x96e')]['appType'][_0x14d752('0x19b')]():_0xebf540['autoreply']['app'][_0x14d752('0x19b')]()){case'custom':break;case _0x14d752('0x2526'):{const _0x4579f5=_0xebf540['autoreply'][_0x14d752('0x2077')][_0x14d752('0x2007')](',');_0xebf540[_0x14d752('0x96e')][_0x14d752('0xdb5')]=_0x4579f5[0x0],_0xebf540[_0x14d752('0x96e')][_0x14d752('0x3e1')]=_0x4579f5[0x1],_0xebf540[_0x14d752('0x96e')][_0x14d752('0x1083')]=_0x4579f5[_0x14d752('0x275f')](0x2,_0x4579f5[_0x14d752('0x1f73')])[_0x14d752('0x1eba')](',');}break;case'dialogflowv2':{const _0x575bf8=_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2077')][_0x14d752('0x2007')](',');_0xebf540['autoreply'][_0x14d752('0x28ab')]=_0x575bf8[0x0],_0xebf540[_0x14d752('0x96e')]['clientEmail']=_0x575bf8[0x1],_0xebf540[_0x14d752('0x96e')][_0x14d752('0x1bc2')]=_0x575bf8[0x2],_0xebf540['autoreply'][_0x14d752('0x3e1')]=_0x575bf8[0x3],_0xebf540[_0x14d752('0x96e')][_0x14d752('0x1083')]=_0x575bf8[_0x14d752('0x275f')](0x4,_0x575bf8['length'])[_0x14d752('0x1eba')](',');}break;case _0x14d752('0x16a9'):{const _0x1d745e=_0xebf540[_0x14d752('0x96e')]['appdata']['split'](',');_0xebf540[_0x14d752('0x96e')][_0x14d752('0x1452')]=_0x1d745e[0x0],_0xebf540['autoreply'][_0x14d752('0x1a62')]=_0x1d745e[0x1],_0xebf540[_0x14d752('0x96e')][_0x14d752('0x1dcf')]=_0x1d745e[0x2],_0xebf540['autoreply']['botname']=_0x1d745e[0x3],_0xebf540[_0x14d752('0x96e')][_0x14d752('0x1083')]=_0x1d745e[_0x14d752('0x275f')](0x4,_0x1d745e[_0x14d752('0x1f73')])[_0x14d752('0x1eba')](',');}break;case _0x14d752('0x96e'):{const _0x8848e5=_0xebf540[_0x14d752('0x96e')]['appdata'][_0x14d752('0x2007')](',');_0xebf540[_0x14d752('0x96e')][_0x14d752('0x12a6')]=isNaN(_0x8848e5[0x0])?_0x8848e5[0x0]:parseInt(_0x8848e5[0x0],0xa),_0xebf540[_0x14d752('0x96e')][_0x14d752('0x132f')]=_0x8848e5[_0x14d752('0x275f')](0x1,_0x8848e5[_0x14d752('0x1f73')])[_0x14d752('0x1eba')](',');}break;case _0x14d752('0x1603'):_0xebf540[_0x14d752('0x96e')][_0x14d752('0x132f')]=_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2077')];break;case _0x14d752('0xf2e'):_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2aa')]=_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2077')][_0x14d752('0x2007')]('=')[0x0],_0xebf540[_0x14d752('0x96e')][_0x14d752('0x175b')]=_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2077')][_0x14d752('0x2007')]('=')[0x1];break;case _0x14d752('0x17c6'):_0xebf540[_0x14d752('0x96e')][_0x14d752('0x87c')]=_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2077')];break;default:{const _0x4d9078=_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2077')][_0x14d752('0x2007')](',');_0xebf540['autoreply'][_0x14d752('0x12a6')]=_0x49cbdd()[_0x14d752('0x109a')](_0x4d9078[0x0])?_0x4d9078[0x0]:isNaN(_0x4d9078[0x0])?_0x4d9078[0x0]:parseInt(_0x4d9078[0x0],0xa),_0xebf540['autoreply'][_0x14d752('0x132f')]=_0x49cbdd()['isEmpty'](_0x4d9078[0x1])?_0x4d9078[0x1]:isNaN(_0x4d9078[0x1])?_0x4d9078[0x1]:parseInt(_0x4d9078[0x1],0xa);}break;}else _0xebf540[_0x14d752('0x96e')][_0x14d752('0x12a6')]=0x1;_0xebf540[_0x14d752('0x96e')][_0x14d752('0x412')]&&_0xebf540['autoreply'][_0x14d752('0x412')][_0x14d752('0x19b')]()==='outbound'&&_0xebf540[_0x14d752('0x96e')][_0x14d752('0x1c54')]['toLowerCase']()===_0x14d752('0x1711')&&(_0xebf540['autoreply'][_0x14d752('0x11d4')]=_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2154')]?_0xebf540[_0x14d752('0x96e')][_0x14d752('0x2154')][_0x14d752('0x2007')]('$')[0x0]:undefined,_0xebf540['autoreply']['callerId']=_0xebf540[_0x14d752('0x96e')][_0x14d752('0x17f4')]?_0x14d752('0x1d28')+_0xebf540[_0x14d752('0x96e')][_0x14d752('0x17f4')]:undefined);_0xebf540[_0x14d752('0x1eb3')]=_0x2dd1d,_0xebf540[_0x14d752('0x136e')]=_0x3837d8;function _0x2dd1d(){const _0x44e5ae=_0x14d752;_0xebf540[_0x44e5ae('0x73e')]=[];const _0x334d3e=[];_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x412')]&&_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x412')][_0x44e5ae('0x19b')]()===_0x44e5ae('0x1ade')&&_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x1c54')]==='outboundDial'&&(_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x2154')]=_0x311d9c[_0x44e5ae('0x12af')]?(_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x11d4')]||'')+_0x44e5ae('0x2265')+_0x311d9c[_0x44e5ae('0x12af')]+'}':(_0xebf540[_0x44e5ae('0x96e')]['prefix']||'')+_0x44e5ae('0x150e'),_0x311d9c[_0x44e5ae('0x287')]!==_0x44e5ae('0x7ee')?_0xebf540['autoreply']['options']['indexOf'](_0x44e5ae('0xa22'))<0x0&&(_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x19')]+='U(xcally-mixmonitor-context)'):_0xebf540['autoreply'][_0x44e5ae('0x19')]=_0xebf540[_0x44e5ae('0x96e')]['options'][_0x44e5ae('0x737')](_0x44e5ae('0xa22'),''));if(_0xebf540['autoreply'][_0x44e5ae('0x1c54')]&&_0xebf540[_0x44e5ae('0x96e')]['appType']===_0x44e5ae('0x8fa')){}else switch((_0xebf540[_0x44e5ae('0x96e')]['app']||_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x1c54')])['toLowerCase']()){case'set':_0xebf540[_0x44e5ae('0x96e')]['appdata']=_0xebf540['autoreply'][_0x44e5ae('0x2aa')]+'='+_0xebf540[_0x44e5ae('0x96e')]['value'];break;case'custom':break;default:_0x334d3e[0x0]=_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x12a6')],_0x334d3e[0x1]=_0xebf540[_0x44e5ae('0x96e')]['text'],_0xebf540[_0x44e5ae('0x96e')][_0x44e5ae('0x2077')]=_0x334d3e['join'](',');}_0x3837d8(_0xebf540[_0x44e5ae('0x96e')]);}function _0x3837d8(_0x4dfa88){const _0x318092=_0x14d752;_0x45064[_0x318092('0x212a')](_0x4dfa88);}}const _0x32fa96=_0x11adb3;_0x33a096[_0x4376d8('0x1b9c')]=['$mdDialog','$q','toasty','whatsappAccountApp',_0x4376d8('0x254f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x33a096(_0x3168bc,_0x512219,_0x140391,_0x34eff9,_0x257932,_0x1bb13c,_0x32e923,_0x4ded40){const _0x572e44=_0x4376d8,_0xca5b06=this;_0xca5b06['currentUser']=_0x32e923[_0x572e44('0x2831')](),_0xca5b06['errors']=[],_0xca5b06[_0x572e44('0x24d3')]=_0x572e44('0x1bd6')+(_0x34eff9[_0x572e44('0x1c54')]||_0x34eff9[_0x572e44('0x643')])[_0x572e44('0x14e2')](),_0xca5b06[_0x572e44('0xbc9')]=angular[_0x572e44('0x14e5')](_0x34eff9),_0xca5b06['crudPermissions']=_0x4ded40,_0xca5b06[_0x572e44('0x6ee')]={};if(_0xca5b06['close']['appdata'])switch(_0xca5b06['close'][_0x572e44('0x1c54')]?_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x1c54')][_0x572e44('0x19b')]():_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x643')][_0x572e44('0x19b')]()){case _0x572e44('0x8fa'):break;case _0x572e44('0x2526'):{const _0x457228=_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x2077')][_0x572e44('0x2007')](',');_0xca5b06['close'][_0x572e44('0xdb5')]=_0x457228[0x0],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x3e1')]=_0x457228[0x1],_0xca5b06[_0x572e44('0xbc9')]['welcomemessage']=_0x457228[_0x572e44('0x275f')](0x2,_0x457228['length'])[_0x572e44('0x1eba')](',');}break;case _0x572e44('0x22ac'):{const _0x2174a8=_0xca5b06['close']['appdata'][_0x572e44('0x2007')](',');_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x28ab')]=_0x2174a8[0x0],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x2814')]=_0x2174a8[0x1],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x1bc2')]=_0x2174a8[0x2],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x3e1')]=_0x2174a8[0x3],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x1083')]=_0x2174a8[_0x572e44('0x275f')](0x4,_0x2174a8['length'])[_0x572e44('0x1eba')](',');}break;case'amazonlex':{const _0x4a74af=_0xca5b06['close'][_0x572e44('0x2077')][_0x572e44('0x2007')](',');_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x1452')]=_0x4a74af[0x0],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x1a62')]=_0x4a74af[0x1],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x1dcf')]=_0x4a74af[0x2],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x4a')]=_0x4a74af[0x3],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x1083')]=_0x4a74af[_0x572e44('0x275f')](0x4,_0x4a74af[_0x572e44('0x1f73')])[_0x572e44('0x1eba')](',');}break;case'autoreply':{const _0x85890b=_0xca5b06[_0x572e44('0xbc9')]['appdata'][_0x572e44('0x2007')](',');_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x12a6')]=isNaN(_0x85890b[0x0])?_0x85890b[0x0]:parseInt(_0x85890b[0x0],0xa),_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x132f')]=_0x85890b[_0x572e44('0x275f')](0x1,_0x85890b[_0x572e44('0x1f73')])[_0x572e44('0x1eba')](',');}break;case _0x572e44('0x1603'):_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x132f')]=_0xca5b06['close'][_0x572e44('0x2077')];break;case'set':_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x2aa')]=_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x2077')]['split']('=')[0x0],_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x175b')]=_0xca5b06['close'][_0x572e44('0x2077')][_0x572e44('0x2007')]('=')[0x1];break;case'agi':_0xca5b06[_0x572e44('0xbc9')]['project']=_0xca5b06['close'][_0x572e44('0x2077')];break;default:{const _0x2ada73=_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x2077')][_0x572e44('0x2007')](',');_0xca5b06[_0x572e44('0xbc9')]['disposition']=_0x49cbdd()[_0x572e44('0x109a')](_0x2ada73[0x0])?_0x2ada73[0x0]:isNaN(_0x2ada73[0x0])?_0x2ada73[0x0]:parseInt(_0x2ada73[0x0],0xa);}break;}else{}_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x412')]&&_0xca5b06['close']['type'][_0x572e44('0x19b')]()==='outbound'&&_0xca5b06['close'][_0x572e44('0x1c54')]['toLowerCase']()===_0x572e44('0x1711')&&(_0xca5b06[_0x572e44('0xbc9')]['prefix']=_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x2154')]?_0xca5b06['close'][_0x572e44('0x2154')][_0x572e44('0x2007')]('$')[0x0]:undefined,_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x1a8e')]=_0xca5b06[_0x572e44('0xbc9')][_0x572e44('0x17f4')]?'CALLERID(all)='+_0xca5b06[_0x572e44('0xbc9')]['callerID']:undefined);_0xca5b06[_0x572e44('0x1eb3')]=_0x5d0951,_0xca5b06[_0x572e44('0x136e')]=_0x4d487b;function _0x5d0951(){const _0x24e120=_0x572e44;_0xca5b06['errors']=[];const _0x2cf804=[];_0xca5b06[_0x24e120('0xbc9')]['type']&&_0xca5b06[_0x24e120('0xbc9')]['type'][_0x24e120('0x19b')]()===_0x24e120('0x1ade')&&_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x1c54')]===_0x24e120('0xbdc')&&(_0xca5b06['close'][_0x24e120('0x2154')]=_0x257932[_0x24e120('0x12af')]?(_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x11d4')]||'')+_0x24e120('0x2265')+_0x257932[_0x24e120('0x12af')]+'}':(_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x11d4')]||'')+'${EXTEN}',_0x257932[_0x24e120('0x287')]!==_0x24e120('0x7ee')?_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x19')][_0x24e120('0x2567')](_0x24e120('0xa22'))<0x0&&(_0xca5b06['close'][_0x24e120('0x19')]+=_0x24e120('0xa22')):_0xca5b06[_0x24e120('0xbc9')]['options']=_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x19')]['replace']('U(xcally-mixmonitor-context)',''));if(_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x1c54')]&&_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x1c54')]===_0x24e120('0x8fa')){}else switch((_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x643')]||_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x1c54')])[_0x24e120('0x19b')]()){case _0x24e120('0xf2e'):_0xca5b06['close'][_0x24e120('0x2077')]=_0xca5b06['close'][_0x24e120('0x2aa')]+'='+_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x175b')];break;case'custom':break;default:_0x2cf804[0x0]=_0xca5b06[_0x24e120('0xbc9')]['disposition'],_0xca5b06[_0x24e120('0xbc9')][_0x24e120('0x2077')]=_0x2cf804[_0x24e120('0x1eba')](',');}_0x4d487b(_0xca5b06['close']);}function _0x4d487b(_0x508a57){const _0x37b08f=_0x572e44;_0x3168bc[_0x37b08f('0x212a')](_0x508a57);}}const _0x1adba8=_0x33a096;_0x261f79[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x149e'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),'Auth','crudPermissions'];function _0x261f79(_0x2d74e7,_0x3194a0,_0x100c07,_0x3fe707,_0x376d68,_0x436fe6,_0x175d02,_0x1509ae){const _0x53359b=_0x4376d8,_0x437134=this;_0x437134[_0x53359b('0x197c')]=_0x175d02[_0x53359b('0x2831')](),_0x437134[_0x53359b('0x73e')]=[],_0x437134[_0x53359b('0x24d3')]=_0x53359b('0x1bd6')+(_0x3fe707[_0x53359b('0x1c54')]||_0x3fe707[_0x53359b('0x643')])['toUpperCase'](),_0x437134[_0x53359b('0x2526')]=angular[_0x53359b('0x14e5')](_0x3fe707),_0x437134[_0x53359b('0x103e')]=_0x1509ae,_0x437134[_0x53359b('0x6ee')]={};if(_0x437134[_0x53359b('0x2526')]['appdata'])switch(_0x437134[_0x53359b('0x2526')]['appType']?_0x437134[_0x53359b('0x2526')][_0x53359b('0x1c54')][_0x53359b('0x19b')]():_0x437134[_0x53359b('0x2526')][_0x53359b('0x643')][_0x53359b('0x19b')]()){case _0x53359b('0x8fa'):break;case'dialogflow':{const _0x9d5f3f=_0x437134[_0x53359b('0x2526')][_0x53359b('0x2077')][_0x53359b('0x2007')](',');_0x437134[_0x53359b('0x2526')][_0x53359b('0xdb5')]=_0x9d5f3f[0x0],_0x437134[_0x53359b('0x2526')]['language']=_0x9d5f3f[0x1],_0x437134[_0x53359b('0x2526')][_0x53359b('0x1083')]=_0x9d5f3f[_0x53359b('0x275f')](0x2,_0x9d5f3f[_0x53359b('0x1f73')])['join'](',');}break;case _0x53359b('0x22ac'):{const _0x15b490=_0x437134[_0x53359b('0x2526')][_0x53359b('0x2077')][_0x53359b('0x2007')](',');_0x437134['dialogflow'][_0x53359b('0x28ab')]=_0x15b490[0x0],_0x437134[_0x53359b('0x2526')][_0x53359b('0x2814')]=_0x15b490[0x1],_0x437134['dialogflow']['privateKey']=_0x15b490[0x2],_0x437134[_0x53359b('0x2526')]['language']=_0x15b490[0x3],_0x437134[_0x53359b('0x2526')]['welcomemessage']=_0x15b490[_0x53359b('0x275f')](0x4,_0x15b490[_0x53359b('0x1f73')])[_0x53359b('0x1eba')](',');}break;case _0x53359b('0x16a9'):{const _0x53569c=_0x437134['dialogflow'][_0x53359b('0x2077')][_0x53359b('0x2007')](',');_0x437134['dialogflow'][_0x53359b('0x1452')]=_0x53569c[0x0],_0x437134['dialogflow'][_0x53359b('0x1a62')]=_0x53569c[0x1],_0x437134['dialogflow']['lexregion']=_0x53569c[0x2],_0x437134[_0x53359b('0x2526')][_0x53359b('0x4a')]=_0x53569c[0x3],_0x437134['dialogflow'][_0x53359b('0x1083')]=_0x53569c['slice'](0x4,_0x53569c[_0x53359b('0x1f73')])[_0x53359b('0x1eba')](',');}break;case _0x53359b('0x96e'):{const _0xde9742=_0x437134['dialogflow']['appdata']['split'](',');_0x437134[_0x53359b('0x2526')][_0x53359b('0x12a6')]=isNaN(_0xde9742[0x0])?_0xde9742[0x0]:parseInt(_0xde9742[0x0],0xa),_0x437134[_0x53359b('0x2526')][_0x53359b('0x132f')]=_0xde9742[_0x53359b('0x275f')](0x1,_0xde9742[_0x53359b('0x1f73')])[_0x53359b('0x1eba')](',');}break;case _0x53359b('0x1603'):_0x437134[_0x53359b('0x2526')][_0x53359b('0x132f')]=_0x437134[_0x53359b('0x2526')][_0x53359b('0x2077')];break;case'set':_0x437134[_0x53359b('0x2526')][_0x53359b('0x2aa')]=_0x437134['dialogflow'][_0x53359b('0x2077')][_0x53359b('0x2007')]('=')[0x0],_0x437134[_0x53359b('0x2526')]['value']=_0x437134[_0x53359b('0x2526')]['appdata'][_0x53359b('0x2007')]('=')[0x1];break;case _0x53359b('0x17c6'):_0x437134[_0x53359b('0x2526')][_0x53359b('0x87c')]=_0x437134[_0x53359b('0x2526')][_0x53359b('0x2077')];break;default:{const _0x10b6aa=_0x437134[_0x53359b('0x2526')][_0x53359b('0x2077')][_0x53359b('0x2007')](',');_0x437134[_0x53359b('0x2526')][_0x53359b('0xdb5')]=_0x49cbdd()[_0x53359b('0x109a')](_0x10b6aa[0x0])?_0x10b6aa[0x0]:isNaN(_0x10b6aa[0x0])?_0x10b6aa[0x0]:parseInt(_0x10b6aa[0x0],0xa),_0x437134[_0x53359b('0x2526')][_0x53359b('0x3e1')]=_0x49cbdd()['isEmpty'](_0x10b6aa[0x1])?_0x10b6aa[0x1]:isNaN(_0x10b6aa[0x1])?_0x10b6aa[0x1]:parseInt(_0x10b6aa[0x1],0xa),_0x437134[_0x53359b('0x2526')][_0x53359b('0x1083')]=_0x49cbdd()[_0x53359b('0x109a')](_0x10b6aa[0x2])?_0x10b6aa[0x2]:isNaN(_0x10b6aa[0x2])?_0x10b6aa[0x2]:parseInt(_0x10b6aa[0x2],0xa);}break;}else _0x437134['dialogflow'][_0x53359b('0x3e1')]='en';_0x437134[_0x53359b('0x2526')]['type']&&_0x437134[_0x53359b('0x2526')]['type']['toLowerCase']()===_0x53359b('0x1ade')&&_0x437134[_0x53359b('0x2526')][_0x53359b('0x1c54')]['toLowerCase']()==='outbounddial'&&(_0x437134[_0x53359b('0x2526')][_0x53359b('0x11d4')]=_0x437134[_0x53359b('0x2526')]['phone']?_0x437134['dialogflow']['phone'][_0x53359b('0x2007')]('$')[0x0]:undefined,_0x437134[_0x53359b('0x2526')][_0x53359b('0x1a8e')]=_0x437134[_0x53359b('0x2526')][_0x53359b('0x17f4')]?_0x53359b('0x1d28')+_0x437134[_0x53359b('0x2526')][_0x53359b('0x17f4')]:undefined);_0x437134[_0x53359b('0x1eb3')]=_0x1f90b6,_0x437134['closeDialog']=_0x26a870;function _0x1f90b6(){const _0x1c1431=_0x53359b;_0x437134[_0x1c1431('0x73e')]=[];const _0x2875c6=[];_0x437134[_0x1c1431('0x2526')]['type']&&_0x437134['dialogflow'][_0x1c1431('0x412')][_0x1c1431('0x19b')]()===_0x1c1431('0x1ade')&&_0x437134['dialogflow']['appType']===_0x1c1431('0xbdc')&&(_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x2154')]=_0x376d68[_0x1c1431('0x12af')]?(_0x437134[_0x1c1431('0x2526')]['prefix']||'')+_0x1c1431('0x2265')+_0x376d68['cutdigits']+'}':(_0x437134[_0x1c1431('0x2526')]['prefix']||'')+_0x1c1431('0x150e'),_0x376d68[_0x1c1431('0x287')]!==_0x1c1431('0x7ee')?_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x19')][_0x1c1431('0x2567')](_0x1c1431('0xa22'))<0x0&&(_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x19')]+='U(xcally-mixmonitor-context)'):_0x437134['dialogflow'][_0x1c1431('0x19')]=_0x437134[_0x1c1431('0x2526')]['options'][_0x1c1431('0x737')](_0x1c1431('0xa22'),''));if(_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x1c54')]&&_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x1c54')]===_0x1c1431('0x8fa')){}else switch((_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x643')]||_0x437134[_0x1c1431('0x2526')]['appType'])[_0x1c1431('0x19b')]()){case _0x1c1431('0xf2e'):_0x437134['dialogflow']['appdata']=_0x437134['dialogflow'][_0x1c1431('0x2aa')]+'='+_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x175b')];break;case'custom':break;default:_0x2875c6[0x0]=_0x437134[_0x1c1431('0x2526')][_0x1c1431('0xdb5')],_0x2875c6[0x1]=_0x437134['dialogflow'][_0x1c1431('0x3e1')],_0x2875c6[0x2]=_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x1083')],_0x437134[_0x1c1431('0x2526')][_0x1c1431('0x2077')]=_0x2875c6[_0x1c1431('0x1eba')](',');}_0x26a870(_0x437134[_0x1c1431('0x2526')]);}function _0x26a870(_0x2b6d6e){const _0x5d6ea9=_0x53359b;_0x2d74e7[_0x5d6ea9('0x212a')](_0x2b6d6e);}}const _0x37b07b=_0x261f79;_0x4fd660['$inject']=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),'whatsappAccountApp',_0x4376d8('0x254f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x4fd660(_0x4e413a,_0x1d52ab,_0x2ace70,_0x382290,_0x2d50a3,_0x15b3d8,_0x4deb49,_0x10cc54){const _0x45aeb8=_0x4376d8,_0x2a88e0=this;_0x2a88e0['currentUser']=_0x4deb49[_0x45aeb8('0x2831')](),_0x2a88e0[_0x45aeb8('0x73e')]=[],_0x2a88e0[_0x45aeb8('0x24d3')]=_0x45aeb8('0x1bd6')+(_0x382290[_0x45aeb8('0x1c54')]||_0x382290['app'])[_0x45aeb8('0x14e2')](),_0x2a88e0[_0x45aeb8('0x7a9')]=angular[_0x45aeb8('0x14e5')](_0x382290),_0x2a88e0[_0x45aeb8('0x103e')]=_0x10cc54,_0x2a88e0[_0x45aeb8('0x6ee')]={};if(_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2077')])switch(_0x2a88e0['gotoif']['appType']?_0x2a88e0['gotoif'][_0x45aeb8('0x1c54')][_0x45aeb8('0x19b')]():_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x643')]['toLowerCase']()){case _0x45aeb8('0x8fa'):break;case _0x45aeb8('0x2526'):{const _0x43a99b=_0x2a88e0['gotoif'][_0x45aeb8('0x2077')][_0x45aeb8('0x2007')](',');_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0xdb5')]=_0x43a99b[0x0],_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x3e1')]=_0x43a99b[0x1],_0x2a88e0[_0x45aeb8('0x7a9')]['welcomemessage']=_0x43a99b[_0x45aeb8('0x275f')](0x2,_0x43a99b[_0x45aeb8('0x1f73')])[_0x45aeb8('0x1eba')](',');}break;case _0x45aeb8('0x22ac'):{const _0x4d6c1d=_0x2a88e0[_0x45aeb8('0x7a9')]['appdata'][_0x45aeb8('0x2007')](',');_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x28ab')]=_0x4d6c1d[0x0],_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2814')]=_0x4d6c1d[0x1],_0x2a88e0[_0x45aeb8('0x7a9')]['privateKey']=_0x4d6c1d[0x2],_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x3e1')]=_0x4d6c1d[0x3],_0x2a88e0[_0x45aeb8('0x7a9')]['welcomemessage']=_0x4d6c1d[_0x45aeb8('0x275f')](0x4,_0x4d6c1d['length'])[_0x45aeb8('0x1eba')](',');}break;case _0x45aeb8('0x16a9'):{const _0x1406a7=_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2077')]['split'](',');_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x1452')]=_0x1406a7[0x0],_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x1a62')]=_0x1406a7[0x1],_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x1dcf')]=_0x1406a7[0x2],_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x4a')]=_0x1406a7[0x3],_0x2a88e0['gotoif']['welcomemessage']=_0x1406a7['slice'](0x4,_0x1406a7[_0x45aeb8('0x1f73')])['join'](',');}break;case _0x45aeb8('0x96e'):{const _0x28d88e=_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2077')][_0x45aeb8('0x2007')](',');_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x12a6')]=isNaN(_0x28d88e[0x0])?_0x28d88e[0x0]:parseInt(_0x28d88e[0x0],0xa),_0x2a88e0[_0x45aeb8('0x7a9')]['text']=_0x28d88e[_0x45aeb8('0x275f')](0x1,_0x28d88e[_0x45aeb8('0x1f73')])[_0x45aeb8('0x1eba')](',');}break;case _0x45aeb8('0x1603'):_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x132f')]=_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2077')];break;case _0x45aeb8('0xf2e'):_0x2a88e0['gotoif']['name']=_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2077')][_0x45aeb8('0x2007')]('=')[0x0],_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x175b')]=_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2077')][_0x45aeb8('0x2007')]('=')[0x1];break;case _0x45aeb8('0x17c6'):_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x87c')]=_0x2a88e0[_0x45aeb8('0x7a9')]['appdata'];break;default:{const _0x172f68=_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2077')]['split'](',');_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0xa67')]=_0x49cbdd()[_0x45aeb8('0x109a')](_0x172f68[0x0])?_0x172f68[0x0]:isNaN(_0x172f68[0x0])?_0x172f68[0x0]:parseInt(_0x172f68[0x0],0xa),_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0xd8b')]=_0x49cbdd()[_0x45aeb8('0x109a')](_0x172f68[0x1])?_0x172f68[0x1]:isNaN(_0x172f68[0x1])?_0x172f68[0x1]:parseInt(_0x172f68[0x1],0xa),_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0xe9d')]=_0x49cbdd()[_0x45aeb8('0x109a')](_0x172f68[0x2])?_0x172f68[0x2]:isNaN(_0x172f68[0x2])?_0x172f68[0x2]:parseInt(_0x172f68[0x2],0xa);}break;}else{}_0x2a88e0[_0x45aeb8('0x7a9')]['type']&&_0x2a88e0['gotoif'][_0x45aeb8('0x412')][_0x45aeb8('0x19b')]()===_0x45aeb8('0x1ade')&&_0x2a88e0[_0x45aeb8('0x7a9')]['appType'][_0x45aeb8('0x19b')]()==='outbounddial'&&(_0x2a88e0['gotoif']['prefix']=_0x2a88e0['gotoif'][_0x45aeb8('0x2154')]?_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x2154')]['split']('$')[0x0]:undefined,_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x1a8e')]=_0x2a88e0[_0x45aeb8('0x7a9')]['callerID']?_0x45aeb8('0x1d28')+_0x2a88e0[_0x45aeb8('0x7a9')][_0x45aeb8('0x17f4')]:undefined);_0x2a88e0[_0x45aeb8('0x1eb3')]=_0x27fe51,_0x2a88e0['closeDialog']=_0x4bfe4a;function _0x27fe51(){const _0x2d4b8a=_0x45aeb8;_0x2a88e0[_0x2d4b8a('0x73e')]=[];const _0x392050=[];_0x2a88e0['gotoif'][_0x2d4b8a('0x412')]&&_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x412')][_0x2d4b8a('0x19b')]()===_0x2d4b8a('0x1ade')&&_0x2a88e0['gotoif']['appType']===_0x2d4b8a('0xbdc')&&(_0x2a88e0['gotoif'][_0x2d4b8a('0x2154')]=_0x2d50a3['cutdigits']?(_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x11d4')]||'')+'${EXTEN:'+_0x2d50a3[_0x2d4b8a('0x12af')]+'}':(_0x2a88e0['gotoif'][_0x2d4b8a('0x11d4')]||'')+_0x2d4b8a('0x150e'),_0x2d50a3['recordingFormat']!==_0x2d4b8a('0x7ee')?_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x19')]['indexOf'](_0x2d4b8a('0xa22'))<0x0&&(_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x19')]+=_0x2d4b8a('0xa22')):_0x2a88e0['gotoif'][_0x2d4b8a('0x19')]=_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x19')][_0x2d4b8a('0x737')](_0x2d4b8a('0xa22'),''));if(_0x2a88e0['gotoif']['appType']&&_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x1c54')]===_0x2d4b8a('0x8fa')){}else switch((_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x643')]||_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x1c54')])[_0x2d4b8a('0x19b')]()){case _0x2d4b8a('0xf2e'):_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x2077')]=_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x2aa')]+'='+_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x175b')];break;case _0x2d4b8a('0x8fa'):break;default:_0x392050[0x0]=_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0xa67')],_0x392050[0x1]=_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0xd8b')],_0x392050[0x2]=_0x2a88e0[_0x2d4b8a('0x7a9')]['falsepriority'],_0x2a88e0[_0x2d4b8a('0x7a9')][_0x2d4b8a('0x2077')]=_0x392050[_0x2d4b8a('0x1eba')](',');}_0x4bfe4a(_0x2a88e0[_0x2d4b8a('0x7a9')]);}function _0x4bfe4a(_0x5a4013){const _0x588c57=_0x45aeb8;_0x4e413a[_0x588c57('0x212a')](_0x5a4013);}}const _0x3ea457=_0x4fd660;_0x594466[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q',_0x4376d8('0x108a'),_0x4376d8('0x149e'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),'Auth','crudPermissions'];function _0x594466(_0x2bb728,_0x1d63d7,_0x5ad16c,_0x44f5a2,_0x5a42ab,_0x16c866,_0x360191,_0x28e707){const _0x7dd49c=_0x4376d8,_0x299c8a=this;_0x299c8a[_0x7dd49c('0x197c')]=_0x360191[_0x7dd49c('0x2831')](),_0x299c8a['errors']=[],_0x299c8a['title']=_0x7dd49c('0x1bd6')+(_0x44f5a2[_0x7dd49c('0x1c54')]||_0x44f5a2[_0x7dd49c('0x643')])['toUpperCase'](),_0x299c8a['gotop']=angular[_0x7dd49c('0x14e5')](_0x44f5a2),_0x299c8a[_0x7dd49c('0x103e')]=_0x28e707,_0x299c8a[_0x7dd49c('0x6ee')]={};if(_0x299c8a['gotop'][_0x7dd49c('0x2077')])switch(_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x1c54')]?_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x1c54')][_0x7dd49c('0x19b')]():_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x643')][_0x7dd49c('0x19b')]()){case _0x7dd49c('0x8fa'):break;case _0x7dd49c('0x2526'):{const _0x16a1d5=_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2077')][_0x7dd49c('0x2007')](',');_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0xdb5')]=_0x16a1d5[0x0],_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x3e1')]=_0x16a1d5[0x1],_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x1083')]=_0x16a1d5[_0x7dd49c('0x275f')](0x2,_0x16a1d5[_0x7dd49c('0x1f73')])[_0x7dd49c('0x1eba')](',');}break;case _0x7dd49c('0x22ac'):{const _0x438be5=_0x299c8a[_0x7dd49c('0x721')]['appdata']['split'](',');_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x28ab')]=_0x438be5[0x0],_0x299c8a['gotop'][_0x7dd49c('0x2814')]=_0x438be5[0x1],_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x1bc2')]=_0x438be5[0x2],_0x299c8a['gotop']['language']=_0x438be5[0x3],_0x299c8a[_0x7dd49c('0x721')]['welcomemessage']=_0x438be5[_0x7dd49c('0x275f')](0x4,_0x438be5[_0x7dd49c('0x1f73')])[_0x7dd49c('0x1eba')](',');}break;case _0x7dd49c('0x16a9'):{const _0x24e04c=_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2077')][_0x7dd49c('0x2007')](',');_0x299c8a['gotop'][_0x7dd49c('0x1452')]=_0x24e04c[0x0],_0x299c8a['gotop'][_0x7dd49c('0x1a62')]=_0x24e04c[0x1],_0x299c8a['gotop'][_0x7dd49c('0x1dcf')]=_0x24e04c[0x2],_0x299c8a['gotop'][_0x7dd49c('0x4a')]=_0x24e04c[0x3],_0x299c8a[_0x7dd49c('0x721')]['welcomemessage']=_0x24e04c['slice'](0x4,_0x24e04c[_0x7dd49c('0x1f73')])[_0x7dd49c('0x1eba')](',');}break;case _0x7dd49c('0x96e'):{const _0x2164b6=_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2077')]['split'](',');_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x12a6')]=isNaN(_0x2164b6[0x0])?_0x2164b6[0x0]:parseInt(_0x2164b6[0x0],0xa),_0x299c8a['gotop'][_0x7dd49c('0x132f')]=_0x2164b6['slice'](0x1,_0x2164b6[_0x7dd49c('0x1f73')])[_0x7dd49c('0x1eba')](',');}break;case _0x7dd49c('0x1603'):_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x132f')]=_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2077')];break;case _0x7dd49c('0xf2e'):_0x299c8a[_0x7dd49c('0x721')]['name']=_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2077')]['split']('=')[0x0],_0x299c8a[_0x7dd49c('0x721')]['value']=_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2077')][_0x7dd49c('0x2007')]('=')[0x1];break;case _0x7dd49c('0x17c6'):_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x87c')]=_0x299c8a['gotop'][_0x7dd49c('0x2077')];break;default:{const _0x11b866=_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2077')][_0x7dd49c('0x2007')](',');_0x299c8a['gotop']['priority']=_0x49cbdd()[_0x7dd49c('0x109a')](_0x11b866[0x0])?_0x11b866[0x0]:isNaN(_0x11b866[0x0])?_0x11b866[0x0]:parseInt(_0x11b866[0x0],0xa);}break;}else{}_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x412')]&&_0x299c8a['gotop'][_0x7dd49c('0x412')][_0x7dd49c('0x19b')]()==='outbound'&&_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x1c54')][_0x7dd49c('0x19b')]()===_0x7dd49c('0x1711')&&(_0x299c8a['gotop'][_0x7dd49c('0x11d4')]=_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2154')]?_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x2154')][_0x7dd49c('0x2007')]('$')[0x0]:undefined,_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x1a8e')]=_0x299c8a[_0x7dd49c('0x721')]['callerID']?'CALLERID(all)='+_0x299c8a[_0x7dd49c('0x721')][_0x7dd49c('0x17f4')]:undefined);_0x299c8a['saveWhatsappAccountApp']=_0x51237a,_0x299c8a['closeDialog']=_0x5dfaa1;function _0x51237a(){const _0x49ae92=_0x7dd49c;_0x299c8a[_0x49ae92('0x73e')]=[];const _0x1020d6=[];_0x299c8a['gotop'][_0x49ae92('0x412')]&&_0x299c8a['gotop'][_0x49ae92('0x412')][_0x49ae92('0x19b')]()===_0x49ae92('0x1ade')&&_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x1c54')]===_0x49ae92('0xbdc')&&(_0x299c8a[_0x49ae92('0x721')]['phone']=_0x5a42ab[_0x49ae92('0x12af')]?(_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x11d4')]||'')+'${EXTEN:'+_0x5a42ab['cutdigits']+'}':(_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x11d4')]||'')+_0x49ae92('0x150e'),_0x5a42ab[_0x49ae92('0x287')]!=='none'?_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x19')]['indexOf']('U(xcally-mixmonitor-context)')<0x0&&(_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x19')]+='U(xcally-mixmonitor-context)'):_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x19')]=_0x299c8a['gotop'][_0x49ae92('0x19')][_0x49ae92('0x737')](_0x49ae92('0xa22'),''));if(_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x1c54')]&&_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x1c54')]==='custom'){}else switch((_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x643')]||_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x1c54')])['toLowerCase']()){case'set':_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x2077')]=_0x299c8a[_0x49ae92('0x721')]['name']+'='+_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x175b')];break;case _0x49ae92('0x8fa'):break;default:_0x1020d6[0x0]=_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x1a6d')],_0x299c8a[_0x49ae92('0x721')][_0x49ae92('0x2077')]=_0x1020d6['join'](',');}_0x5dfaa1(_0x299c8a[_0x49ae92('0x721')]);}function _0x5dfaa1(_0x5e1455){const _0x1010ea=_0x7dd49c;_0x2bb728[_0x1010ea('0x212a')](_0x5e1455);}}const _0x1a927d=_0x594466;_0x936e5b['$inject']=[_0x4376d8('0xc4c'),_0x4376d8('0x14f6'),_0x4376d8('0x199d'),'IndexFactory',_0x4376d8('0x231f'),_0x4376d8('0x1be1'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x936e5b(_0x64140,_0xc229c8,_0x2fb248,_0x46c082,_0x35f8cc,_0x154ce5,_0x322b18,_0x3b5bc0,_0x28d037,_0x34bb73){const _0x38708a=_0x4376d8,_0x3e43c4=this;_0x3e43c4['currentUser']=_0x28d037[_0x38708a('0x2831')](),_0x3e43c4[_0x38708a('0x73e')]=[],_0x3e43c4[_0x38708a('0x24d3')]=_0x38708a('0x1481'),_0x3e43c4[_0x38708a('0x231f')]=angular[_0x38708a('0x14e5')](_0x35f8cc),_0x3e43c4[_0x38708a('0x1be1')]=_0x154ce5,_0x3e43c4[_0x38708a('0x42d')]=![],_0x3e43c4['types']=[_0x38708a('0x1256'),_0x38708a('0x8fa'),_0x38708a('0x134c')],_0x3e43c4['crudPermissions']=_0x34bb73,_0x3e43c4[_0x38708a('0x9d')]=_0x46c082['getDaysOfWeek'](),_0x3e43c4['monthNumber']=_0x46c082[_0x38708a('0x1743')](),_0x3e43c4['monthName']=_0x46c082[_0x38708a('0x912')](),_0x3e43c4[_0x38708a('0x219f')]=_0x46c082[_0x38708a('0x37c')]();if(!_0x3e43c4['interval'])_0x3e43c4[_0x38708a('0x231f')]={'interval':_0x38708a('0x20c3')},_0x3e43c4['type']=_0x38708a('0x1256'),_0x3e43c4['title']=_0x38708a('0x1917'),_0x3e43c4[_0x38708a('0x42d')]=!![];else{if(_0x3e43c4[_0x38708a('0x231f')][_0x38708a('0x231f')]!=='*,*,*,*'){_0x3e43c4['type']=_0x38708a('0x8fa');const _0x2fb7bc=_0x3e43c4[_0x38708a('0x231f')][_0x38708a('0x231f')]['split'](','),_0x1e71c3=_0x2fb7bc[0x0],_0xea0ec8=_0x2fb7bc[0x1],_0x58d6ea=_0x2fb7bc[0x2],_0x1fad88=_0x2fb7bc[0x3];if(_0x1e71c3!=='*'){const _0x5019f2=_0x1e71c3['split']('-')[0x0],_0x50fbe2=_0x1e71c3[_0x38708a('0x2007')]('-')[0x1];let _0x24675d;_0x24675d=new Date(),_0x24675d[_0x38708a('0x196e')](Number(_0x5019f2[_0x38708a('0x2007')](':')[0x0])),_0x24675d['setMinutes'](Number(_0x5019f2[_0x38708a('0x2007')](':')[0x1])),_0x3e43c4[_0x38708a('0x19bf')]=_0x24675d,_0x24675d=new Date(),_0x24675d[_0x38708a('0x196e')](Number(_0x50fbe2[_0x38708a('0x2007')](':')[0x0])),_0x24675d[_0x38708a('0x57b')](Number(_0x50fbe2[_0x38708a('0x2007')](':')[0x1])),_0x3e43c4[_0x38708a('0x1c12')]=_0x24675d;}_0xea0ec8!=='*'&&(_0x3e43c4[_0x38708a('0x1a98')]=_0xea0ec8['split']('-')[0x0],_0x3e43c4[_0x38708a('0x1627')]=_0xea0ec8['split']('-')[0x1]),_0x58d6ea!=='*'&&(_0x3e43c4[_0x38708a('0x18d1')]=_0x58d6ea[_0x38708a('0x2007')]('-')[0x0],_0x3e43c4['monthDayTo']=_0x58d6ea[_0x38708a('0x2007')]('-')[0x1]),_0x1fad88!=='*'&&(_0x3e43c4[_0x38708a('0x88c')]=_0x1fad88[_0x38708a('0x2007')]('-')[0x0],_0x3e43c4[_0x38708a('0x1f09')]=_0x1fad88['split']('-')[0x1]);}else _0x3e43c4[_0x38708a('0x412')]=_0x38708a('0x1256');}_0x64140[_0x38708a('0x16fb')]['id']&&!_0x3e43c4[_0x38708a('0x231f')]['application']&&(_0x3e43c4[_0x38708a('0x231f')][_0x38708a('0x24a9')]=_0x64140[_0x38708a('0x16fb')]['id']);_0x3e43c4[_0x38708a('0x231f')][_0x38708a('0x24a9')]&&_0x3e43c4['interval'][_0x38708a('0xf84')]&&(_0x3e43c4['type']=_0x38708a('0x134c'));_0x3e43c4['addNewInterval']=_0x598b2d,_0x3e43c4[_0x38708a('0x872')]=_0xd92b24,_0x3e43c4['closeDialog']=_0x47fc09;_0x3e43c4['interval'][_0x38708a('0xf84')]&&(_0x28d037[_0x38708a('0x1ba2')](_0x38708a('0x20bf'))?_0x3b5bc0['interval']['get']({'fields':_0x38708a('0x165a'),'IntervalId':_0x38708a('0x9bb'),'nolimit':!![]})['$promise'][_0x38708a('0x17e7')](function(_0x16adf6){const _0x44459b=_0x38708a;_0x3e43c4[_0x44459b('0x1be1')]=_0x16adf6[_0x44459b('0x2319')]||[];})[_0x38708a('0x16df')](function(_0x1c2bc8){const _0xf0bcee=_0x38708a;_0x322b18[_0xf0bcee('0x1db9')]({'title':_0x1c2bc8[_0xf0bcee('0x11c5')]?_0xf0bcee('0x14f7')+_0x1c2bc8[_0xf0bcee('0x11c5')]+'\x20-\x20'+_0x1c2bc8[_0xf0bcee('0x1833')]:_0xf0bcee('0x87a'),'msg':_0x1c2bc8[_0xf0bcee('0x1457')]?JSON['stringify'](_0x1c2bc8[_0xf0bcee('0x1457')]):_0x1c2bc8[_0xf0bcee('0x9b6')]()});}):_0x3b5bc0[_0x38708a('0x231f')]['get']({'fields':_0x38708a('0x165a'),'IntervalId':_0x38708a('0x9bb'),'nolimit':!![]})['$promise'][_0x38708a('0x17e7')](function(_0x4368f){const _0x766a1d=_0x38708a;_0x3e43c4[_0x766a1d('0x1be1')]=_0x4368f[_0x766a1d('0x2319')]||[];})[_0x38708a('0x17e7')](function(){const _0x32337c=_0x38708a;return _0x3b5bc0['userProfileSection'][_0x32337c('0x1c53')]({'userProfileId':_0x3e43c4[_0x32337c('0x197c')][_0x32337c('0x1e76')],'sectionId':0x3ec})[_0x32337c('0x1af5')];})[_0x38708a('0x17e7')](function(_0xad2910){const _0x52b32d=_0x38708a,_0xd59626=_0xad2910&&_0xad2910[_0x52b32d('0x2319')]?_0xad2910['rows'][0x0]:null;if(!_0xd59626)_0x3e43c4['intervals']=[];else{if(!_0xd59626['autoAssociation'])return _0x3b5bc0[_0x52b32d('0x78d')][_0x52b32d('0x1c53')]({'sectionId':_0xd59626['id']})[_0x52b32d('0x1af5')][_0x52b32d('0x17e7')](function(_0x2cfd8d){const _0x308a19=_0x52b32d,_0x21f7b7=_0x2cfd8d&&_0x2cfd8d[_0x308a19('0x2319')]?_0x2cfd8d[_0x308a19('0x2319')]:[],_0x3084b2=[];let _0x118cb3=null;_0x3e43c4[_0x308a19('0x231f')]&&(_0x118cb3=_0x49cbdd()[_0x308a19('0xe8e')](_0x3e43c4['intervals'],{'name':_0x3e43c4[_0x308a19('0x231f')][_0x308a19('0x24a9')]})),_0x118cb3&&!_0x49cbdd()[_0x308a19('0x26f8')](_0x21f7b7,[_0x308a19('0x5db'),_0x118cb3['id']])&&_0x3e43c4[_0x308a19('0x1be1')]['forEach'](function(_0x14f138){const _0x5aafd6=_0x308a19;_0x14f138['id']===_0x118cb3['id']&&(_0x14f138[_0x5aafd6('0xe5c')]=![],_0x3084b2[_0x5aafd6('0x269f')](_0x14f138));}),_0x3e43c4[_0x308a19('0x1be1')]=_0x3084b2;});}})['catch'](function(_0x2e1fc7){const _0x40f7a8=_0x38708a;_0x322b18[_0x40f7a8('0x1db9')]({'title':_0x2e1fc7[_0x40f7a8('0x11c5')]?_0x40f7a8('0x14f7')+_0x2e1fc7[_0x40f7a8('0x11c5')]+_0x40f7a8('0x16e4')+_0x2e1fc7[_0x40f7a8('0x1833')]:_0x40f7a8('0x87a'),'msg':_0x2e1fc7[_0x40f7a8('0x1457')]?JSON[_0x40f7a8('0x678')](_0x2e1fc7[_0x40f7a8('0x1457')]):_0x2e1fc7['toString']()});}));function _0x287fc0(){const _0x1b91fa=_0x38708a;switch(_0x3e43c4[_0x1b91fa('0x412')]){case _0x1b91fa('0x1256'):case _0x1b91fa('0x134c'):return _0x1b91fa('0x20c3');case _0x1b91fa('0x8fa'):{const _0x343a40=[];if(_0x3e43c4[_0x1b91fa('0x19bf')]!=='*'&&_0x3e43c4[_0x1b91fa('0x19bf')]&&_0x3e43c4['timeRangeTo']){const _0x83a577=(_0x3e43c4['timeRangeFrom']['getHours']()<0xa?'0':'')+_0x3e43c4[_0x1b91fa('0x19bf')][_0x1b91fa('0x13c6')]()+':'+((_0x3e43c4[_0x1b91fa('0x19bf')][_0x1b91fa('0xf42')]()<0xa?'0':'')+_0x3e43c4[_0x1b91fa('0x19bf')][_0x1b91fa('0xf42')]()),_0x2c243f=(_0x3e43c4[_0x1b91fa('0x1c12')]['getHours']()<0xa?'0':'')+_0x3e43c4['timeRangeTo'][_0x1b91fa('0x13c6')]()+':'+((_0x3e43c4[_0x1b91fa('0x1c12')][_0x1b91fa('0xf42')]()<0xa?'0':'')+_0x3e43c4['timeRangeTo'][_0x1b91fa('0xf42')]());_0x343a40[_0x1b91fa('0x269f')](_0x83a577+'-'+_0x2c243f);}else _0x343a40[_0x1b91fa('0x269f')]('*');return _0x3e43c4[_0x1b91fa('0x1a98')]?_0x3e43c4[_0x1b91fa('0x1627')]?_0x343a40[_0x1b91fa('0x269f')](_0x3e43c4[_0x1b91fa('0x1a98')]+'-'+_0x3e43c4[_0x1b91fa('0x1627')]):_0x343a40['push'](_0x3e43c4[_0x1b91fa('0x1a98')]):_0x343a40['push']('*'),_0x3e43c4[_0x1b91fa('0x18d1')]?_0x3e43c4[_0x1b91fa('0x271d')]?_0x343a40[_0x1b91fa('0x269f')](_0x3e43c4[_0x1b91fa('0x18d1')]+'-'+_0x3e43c4[_0x1b91fa('0x271d')]):_0x343a40[_0x1b91fa('0x269f')](_0x3e43c4[_0x1b91fa('0x18d1')]):_0x343a40[_0x1b91fa('0x269f')]('*'),_0x3e43c4['monthFrom']?_0x3e43c4['monthTo']?_0x343a40[_0x1b91fa('0x269f')](_0x3e43c4[_0x1b91fa('0x88c')]+'-'+_0x3e43c4[_0x1b91fa('0x1f09')]):_0x343a40[_0x1b91fa('0x269f')](_0x3e43c4[_0x1b91fa('0x88c')]):_0x343a40['push']('*'),_0x343a40[_0x1b91fa('0x1eba')]();}}}function _0x598b2d(){const _0x1eed26=_0x38708a;_0x3e43c4[_0x1eed26('0x73e')]=[],_0x3e43c4[_0x1eed26('0x231f')][_0x1eed26('0x231f')]=_0x287fc0(),_0x3b5bc0[_0x1eed26('0x231f')][_0x1eed26('0x2439')](_0x3e43c4[_0x1eed26('0x231f')])[_0x1eed26('0x1af5')][_0x1eed26('0x17e7')](function(_0x51db81){const _0x4b9967=_0x1eed26;_0x3e43c4[_0x4b9967('0x1be1')][_0x4b9967('0x269f')](_0x51db81),_0x322b18[_0x4b9967('0x130d')]({'title':_0x4b9967('0x2378'),'msg':_0x3e43c4[_0x4b9967('0x231f')]['name']?_0x3e43c4[_0x4b9967('0x231f')][_0x4b9967('0x2aa')]+_0x4b9967('0x15a'):''}),_0x47fc09();})['catch'](function(_0x1cf4e5){const _0x5b2650=_0x1eed26;console['error'](_0x1cf4e5),_0x3e43c4[_0x5b2650('0x73e')]=_0x1cf4e5[_0x5b2650('0x1457')]['errors']||[{'message':_0x1cf4e5[_0x5b2650('0x9b6')](),'type':_0x5b2650('0x2475')}];});}function _0xd92b24(){const _0x449ddb=_0x38708a;_0x3e43c4[_0x449ddb('0x73e')]=[],_0x3e43c4[_0x449ddb('0x231f')][_0x449ddb('0x231f')]=_0x287fc0(),_0x3e43c4[_0x449ddb('0x231f')][_0x449ddb('0xf84')]?(_0x3e43c4[_0x449ddb('0x412')]!==_0x449ddb('0x134c')&&(_0x3e43c4[_0x449ddb('0x231f')][_0x449ddb('0x24a9')]=null),_0x47fc09(_0x3e43c4[_0x449ddb('0x231f')])):_0x3b5bc0[_0x449ddb('0x231f')][_0x449ddb('0x27ba')]({'id':_0x3e43c4['interval']['id']},_0x3e43c4['interval'])[_0x449ddb('0x1af5')][_0x449ddb('0x17e7')](function(_0x2a1b1f){const _0x196059=_0x449ddb,_0x240de2=_0x49cbdd()[_0x196059('0xe8e')](_0x3e43c4['intervals'],{'id':_0x2a1b1f['id']});_0x240de2&&_0x49cbdd()[_0x196059('0x1ced')](_0x240de2,_0x2a1b1f),_0x322b18[_0x196059('0x130d')]({'title':_0x196059('0x6a9'),'msg':_0x196059('0x2792')}),_0x47fc09();})[_0x449ddb('0x16df')](function(_0x4725d0){const _0x47049a=_0x449ddb;console[_0x47049a('0x1db9')](_0x4725d0),_0x3e43c4[_0x47049a('0x73e')]=_0x4725d0[_0x47049a('0x1457')][_0x47049a('0x73e')]||[{'message':_0x4725d0['toString'](),'type':'api.interval.update'}];});}function _0x47fc09(_0x69eb8a){_0xc229c8['hide'](_0x69eb8a);}}const _0x3e8275=_0x936e5b;_0xf79a9d[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x149e'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0xf79a9d(_0x2306de,_0x28f272,_0xad1b8,_0x354e52,_0x554c6e,_0x38769f,_0x29c507,_0x4065e8){const _0x190385=_0x4376d8,_0xfdddfa=this;_0xfdddfa[_0x190385('0x197c')]=_0x29c507[_0x190385('0x2831')](),_0xfdddfa[_0x190385('0x73e')]=[],_0xfdddfa[_0x190385('0x24d3')]='WHATSAPP.EDIT_'+(_0x354e52[_0x190385('0x1c54')]||_0x354e52['app'])[_0x190385('0x14e2')](),_0xfdddfa[_0x190385('0x1e49')]=angular[_0x190385('0x14e5')](_0x354e52),_0xfdddfa['crudPermissions']=_0x4065e8,_0xfdddfa[_0x190385('0x6ee')]={};if(_0xfdddfa['noop'][_0x190385('0x2077')])switch(_0xfdddfa['noop'][_0x190385('0x1c54')]?_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x1c54')][_0x190385('0x19b')]():_0xfdddfa[_0x190385('0x1e49')]['app'][_0x190385('0x19b')]()){case _0x190385('0x8fa'):break;case _0x190385('0x2526'):{const _0x159991=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2077')]['split'](',');_0xfdddfa[_0x190385('0x1e49')]['key']=_0x159991[0x0],_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x3e1')]=_0x159991[0x1],_0xfdddfa['noop']['welcomemessage']=_0x159991[_0x190385('0x275f')](0x2,_0x159991['length'])[_0x190385('0x1eba')](',');}break;case _0x190385('0x22ac'):{const _0x43828b=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2077')][_0x190385('0x2007')](',');_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x28ab')]=_0x43828b[0x0],_0xfdddfa[_0x190385('0x1e49')]['clientEmail']=_0x43828b[0x1],_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x1bc2')]=_0x43828b[0x2],_0xfdddfa[_0x190385('0x1e49')]['language']=_0x43828b[0x3],_0xfdddfa[_0x190385('0x1e49')]['welcomemessage']=_0x43828b['slice'](0x4,_0x43828b[_0x190385('0x1f73')])[_0x190385('0x1eba')](',');}break;case _0x190385('0x16a9'):{const _0x17af41=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2077')][_0x190385('0x2007')](',');_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x1452')]=_0x17af41[0x0],_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x1a62')]=_0x17af41[0x1],_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x1dcf')]=_0x17af41[0x2],_0xfdddfa['noop'][_0x190385('0x4a')]=_0x17af41[0x3],_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x1083')]=_0x17af41[_0x190385('0x275f')](0x4,_0x17af41['length'])['join'](',');}break;case _0x190385('0x96e'):{const _0x546a33=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2077')]['split'](',');_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x12a6')]=isNaN(_0x546a33[0x0])?_0x546a33[0x0]:parseInt(_0x546a33[0x0],0xa),_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x132f')]=_0x546a33[_0x190385('0x275f')](0x1,_0x546a33['length'])[_0x190385('0x1eba')](',');}break;case _0x190385('0x1603'):_0xfdddfa[_0x190385('0x1e49')]['text']=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2077')];break;case _0x190385('0xf2e'):_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2aa')]=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2077')]['split']('=')[0x0],_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x175b')]=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2077')][_0x190385('0x2007')]('=')[0x1];break;case _0x190385('0x17c6'):_0xfdddfa['noop'][_0x190385('0x87c')]=_0xfdddfa['noop'][_0x190385('0x2077')];break;default:{const _0x42e309=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2077')][_0x190385('0x2007')](',');_0xfdddfa[_0x190385('0x1e49')]['value']=_0x49cbdd()[_0x190385('0x109a')](_0x42e309[0x0])?_0x42e309[0x0]:isNaN(_0x42e309[0x0])?_0x42e309[0x0]:parseInt(_0x42e309[0x0],0xa);}break;}else{}_0xfdddfa[_0x190385('0x1e49')]['type']&&_0xfdddfa['noop'][_0x190385('0x412')]['toLowerCase']()===_0x190385('0x1ade')&&_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x1c54')][_0x190385('0x19b')]()===_0x190385('0x1711')&&(_0xfdddfa[_0x190385('0x1e49')]['prefix']=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2154')]?_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x2154')][_0x190385('0x2007')]('$')[0x0]:undefined,_0xfdddfa[_0x190385('0x1e49')]['callerId']=_0xfdddfa[_0x190385('0x1e49')][_0x190385('0x17f4')]?_0x190385('0x1d28')+_0xfdddfa['noop'][_0x190385('0x17f4')]:undefined);_0xfdddfa[_0x190385('0x1eb3')]=_0x3d9651,_0xfdddfa[_0x190385('0x136e')]=_0x720d96;function _0x3d9651(){const _0x5c6d3d=_0x190385;_0xfdddfa[_0x5c6d3d('0x73e')]=[];const _0x49f6a4=[];_0xfdddfa[_0x5c6d3d('0x1e49')]['type']&&_0xfdddfa[_0x5c6d3d('0x1e49')]['type'][_0x5c6d3d('0x19b')]()===_0x5c6d3d('0x1ade')&&_0xfdddfa[_0x5c6d3d('0x1e49')]['appType']===_0x5c6d3d('0xbdc')&&(_0xfdddfa[_0x5c6d3d('0x1e49')]['phone']=_0x554c6e[_0x5c6d3d('0x12af')]?(_0xfdddfa[_0x5c6d3d('0x1e49')][_0x5c6d3d('0x11d4')]||'')+_0x5c6d3d('0x2265')+_0x554c6e[_0x5c6d3d('0x12af')]+'}':(_0xfdddfa[_0x5c6d3d('0x1e49')]['prefix']||'')+_0x5c6d3d('0x150e'),_0x554c6e[_0x5c6d3d('0x287')]!==_0x5c6d3d('0x7ee')?_0xfdddfa['noop'][_0x5c6d3d('0x19')][_0x5c6d3d('0x2567')]('U(xcally-mixmonitor-context)')<0x0&&(_0xfdddfa['noop'][_0x5c6d3d('0x19')]+='U(xcally-mixmonitor-context)'):_0xfdddfa['noop'][_0x5c6d3d('0x19')]=_0xfdddfa[_0x5c6d3d('0x1e49')][_0x5c6d3d('0x19')][_0x5c6d3d('0x737')](_0x5c6d3d('0xa22'),''));if(_0xfdddfa[_0x5c6d3d('0x1e49')][_0x5c6d3d('0x1c54')]&&_0xfdddfa[_0x5c6d3d('0x1e49')]['appType']==='custom'){}else switch((_0xfdddfa[_0x5c6d3d('0x1e49')][_0x5c6d3d('0x643')]||_0xfdddfa['noop'][_0x5c6d3d('0x1c54')])[_0x5c6d3d('0x19b')]()){case _0x5c6d3d('0xf2e'):_0xfdddfa[_0x5c6d3d('0x1e49')][_0x5c6d3d('0x2077')]=_0xfdddfa['noop']['name']+'='+_0xfdddfa[_0x5c6d3d('0x1e49')][_0x5c6d3d('0x175b')];break;case'custom':break;default:_0x49f6a4[0x0]=_0xfdddfa[_0x5c6d3d('0x1e49')][_0x5c6d3d('0x175b')],_0xfdddfa[_0x5c6d3d('0x1e49')]['appdata']=_0x49f6a4[_0x5c6d3d('0x1eba')](',');}_0x720d96(_0xfdddfa[_0x5c6d3d('0x1e49')]);}function _0x720d96(_0x53ffa4){const _0x195785=_0x190385;_0x2306de[_0x195785('0x212a')](_0x53ffa4);}}const _0x3256a8=_0xf79a9d;_0x4a2b36['$inject']=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x149e'),'whatsappAccount',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x4a2b36(_0x35e519,_0x29bd92,_0x50a848,_0xfb7121,_0x4a51f4,_0x43dbbd,_0x2209b2,_0x9b6ad4){const _0x4e204d=_0x4376d8,_0x555c73=this;_0x555c73['currentUser']=_0x2209b2[_0x4e204d('0x2831')](),_0x555c73['errors']=[],_0x555c73[_0x4e204d('0x24d3')]=_0x4e204d('0x1bd6')+(_0xfb7121[_0x4e204d('0x1c54')]||_0xfb7121[_0x4e204d('0x643')])[_0x4e204d('0x14e2')](),_0x555c73[_0x4e204d('0x1bd')]=angular[_0x4e204d('0x14e5')](_0xfb7121),_0x555c73[_0x4e204d('0x103e')]=_0x9b6ad4,_0x555c73[_0x4e204d('0x6ee')]={};if(_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2077')])switch(_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x1c54')]?_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x1c54')][_0x4e204d('0x19b')]():_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x643')][_0x4e204d('0x19b')]()){case _0x4e204d('0x8fa'):break;case _0x4e204d('0x2526'):{const _0x16e7e5=_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2077')][_0x4e204d('0x2007')](',');_0x555c73[_0x4e204d('0x1bd')]['key']=_0x16e7e5[0x0],_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x3e1')]=_0x16e7e5[0x1],_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x1083')]=_0x16e7e5[_0x4e204d('0x275f')](0x2,_0x16e7e5[_0x4e204d('0x1f73')])[_0x4e204d('0x1eba')](',');}break;case _0x4e204d('0x22ac'):{const _0x3eb65d=_0x555c73['queue']['appdata'][_0x4e204d('0x2007')](',');_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x28ab')]=_0x3eb65d[0x0],_0x555c73['queue'][_0x4e204d('0x2814')]=_0x3eb65d[0x1],_0x555c73['queue'][_0x4e204d('0x1bc2')]=_0x3eb65d[0x2],_0x555c73['queue'][_0x4e204d('0x3e1')]=_0x3eb65d[0x3],_0x555c73[_0x4e204d('0x1bd')]['welcomemessage']=_0x3eb65d['slice'](0x4,_0x3eb65d[_0x4e204d('0x1f73')])['join'](',');}break;case _0x4e204d('0x16a9'):{const _0x5d8fe5=_0x555c73[_0x4e204d('0x1bd')]['appdata'][_0x4e204d('0x2007')](',');_0x555c73[_0x4e204d('0x1bd')]['accesskeyid']=_0x5d8fe5[0x0],_0x555c73['queue'][_0x4e204d('0x1a62')]=_0x5d8fe5[0x1],_0x555c73[_0x4e204d('0x1bd')]['lexregion']=_0x5d8fe5[0x2],_0x555c73['queue'][_0x4e204d('0x4a')]=_0x5d8fe5[0x3],_0x555c73['queue'][_0x4e204d('0x1083')]=_0x5d8fe5['slice'](0x4,_0x5d8fe5[_0x4e204d('0x1f73')])[_0x4e204d('0x1eba')](',');}break;case _0x4e204d('0x96e'):{const _0xd9357=_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2077')][_0x4e204d('0x2007')](',');_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x12a6')]=isNaN(_0xd9357[0x0])?_0xd9357[0x0]:parseInt(_0xd9357[0x0],0xa),_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x132f')]=_0xd9357[_0x4e204d('0x275f')](0x1,_0xd9357[_0x4e204d('0x1f73')])[_0x4e204d('0x1eba')](',');}break;case _0x4e204d('0x1603'):_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x132f')]=_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2077')];break;case'set':_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2aa')]=_0x555c73['queue'][_0x4e204d('0x2077')]['split']('=')[0x0],_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x175b')]=_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2077')][_0x4e204d('0x2007')]('=')[0x1];break;case _0x4e204d('0x17c6'):_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x87c')]=_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2077')];break;default:{const _0x14a517=_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2077')][_0x4e204d('0x2007')](',');_0x555c73[_0x4e204d('0x1bd')]['queue']=_0x49cbdd()[_0x4e204d('0x109a')](_0x14a517[0x0])?_0x14a517[0x0]:isNaN(_0x14a517[0x0])?_0x14a517[0x0]:parseInt(_0x14a517[0x0],0xa),_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0xd2f')]=_0x49cbdd()[_0x4e204d('0x109a')](_0x14a517[0x1])?_0x14a517[0x1]:isNaN(_0x14a517[0x1])?_0x14a517[0x1]:parseInt(_0x14a517[0x1],0xa);}break;}else _0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x1bd')]=0x12c,_0x555c73['queue'][_0x4e204d('0xd2f')]=0x12c;_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x412')]&&_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x412')][_0x4e204d('0x19b')]()===_0x4e204d('0x1ade')&&_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x1c54')][_0x4e204d('0x19b')]()==='outbounddial'&&(_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x11d4')]=_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2154')]?_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x2154')]['split']('$')[0x0]:undefined,_0x555c73['queue'][_0x4e204d('0x1a8e')]=_0x555c73[_0x4e204d('0x1bd')]['callerID']?_0x4e204d('0x1d28')+_0x555c73[_0x4e204d('0x1bd')][_0x4e204d('0x17f4')]:undefined);_0x555c73[_0x4e204d('0x1eb3')]=_0x3a7b0e,_0x555c73[_0x4e204d('0x136e')]=_0x9b56ae,_0x2209b2[_0x4e204d('0x1ba2')](_0x4e204d('0x20bf'))?_0x43dbbd[_0x4e204d('0x1e28')][_0x4e204d('0x1c53')]({'fields':_0x4e204d('0x960'),'sort':_0x4e204d('0x2aa'),'nolimit':_0x4e204d('0xe34')})[_0x4e204d('0x1af5')][_0x4e204d('0x17e7')](function(_0x3a7458){const _0x520e19=_0x4e204d;_0x555c73['queues']=_0x3a7458[_0x520e19('0x2319')]||[];})['catch'](function(_0x89c68b){const _0x144ab0=_0x4e204d;_0x50a848[_0x144ab0('0x1db9')]({'title':_0x89c68b['status']?_0x144ab0('0x14f7')+_0x89c68b[_0x144ab0('0x11c5')]+_0x144ab0('0x16e4')+_0x89c68b[_0x144ab0('0x1833')]:_0x144ab0('0x92a'),'msg':_0x89c68b[_0x144ab0('0x1457')]?JSON[_0x144ab0('0x678')](_0x89c68b['data']):_0x89c68b[_0x144ab0('0x9b6')]()});}):_0x43dbbd['whatsappQueue'][_0x4e204d('0x1c53')]({'fields':_0x4e204d('0x960'),'sort':_0x4e204d('0x2aa'),'nolimit':'true'})[_0x4e204d('0x1af5')]['then'](function(_0x5124dc){const _0x4c190e=_0x4e204d;_0x555c73[_0x4c190e('0x14c4')]=_0x5124dc[_0x4c190e('0x2319')]||[];})[_0x4e204d('0x17e7')](function(){const _0xbdbbd4=_0x4e204d;return _0x43dbbd[_0xbdbbd4('0x383')][_0xbdbbd4('0x1c53')]({'userProfileId':_0x555c73[_0xbdbbd4('0x197c')]['userProfileId'],'sectionId':0x836})[_0xbdbbd4('0x1af5')];})[_0x4e204d('0x17e7')](function(_0x5dbf19){const _0xe02a0c=_0x4e204d,_0x2c0368=_0x5dbf19&&_0x5dbf19[_0xe02a0c('0x2319')]?_0x5dbf19['rows'][0x0]:null;if(!_0x2c0368){const _0x3708d0=[];let _0x1211ee=null;_0x555c73[_0xe02a0c('0x1bd')]&&(_0x1211ee=_0x49cbdd()[_0xe02a0c('0xe8e')](_0x555c73['queues'],{'name':_0x555c73[_0xe02a0c('0x1bd')][_0xe02a0c('0x1bd')]}));for(let _0x5f3172=0x0;_0x5f3172<_0x555c73[_0xe02a0c('0x14c4')]['length'];_0x5f3172++){_0x1211ee&&_0x555c73['queues'][_0x5f3172]['id']===_0x1211ee['id']&&(_0x555c73[_0xe02a0c('0x14c4')][_0x5f3172][_0xe02a0c('0xe5c')]=![],_0x3708d0[_0xe02a0c('0x269f')](_0x555c73['queues'][_0x5f3172]));}_0x555c73[_0xe02a0c('0x14c4')]=_0x3708d0;}else{if(!_0x2c0368['autoAssociation'])return _0x43dbbd[_0xe02a0c('0x78d')]['get']({'sectionId':_0x2c0368['id']})[_0xe02a0c('0x1af5')][_0xe02a0c('0x17e7')](function(_0x43bdd1){const _0x4c81c0=_0xe02a0c,_0x278f96=_0x49cbdd()['map'](_0x43bdd1['rows'],function(_0x1fca18){const _0x5ce346=a0_0xd29e;return _0x49cbdd()[_0x5ce346('0xe8e')](_0x555c73[_0x5ce346('0x14c4')],{'id':_0x1fca18[_0x5ce346('0x5db')]});});let _0x169543=null;_0x555c73[_0x4c81c0('0x1bd')]&&(_0x169543=_0x49cbdd()[_0x4c81c0('0xe8e')](_0x555c73[_0x4c81c0('0x14c4')],{'name':_0x555c73[_0x4c81c0('0x1bd')][_0x4c81c0('0x1bd')]}));if(_0x169543&&!_0x49cbdd()[_0x4c81c0('0x26f8')](_0x278f96,['id',_0x169543['id']])){const _0x119366=_0x49cbdd()[_0x4c81c0('0xe8e')](_0x555c73[_0x4c81c0('0x14c4')],{'id':_0x169543['id']});_0x119366[_0x4c81c0('0xe5c')]=![],_0x278f96[_0x4c81c0('0x269f')](_0x119366);}_0x555c73['queues']=_0x278f96;});}})[_0x4e204d('0x16df')](function(_0x4019b8){const _0x4d1d0e=_0x4e204d;_0x50a848[_0x4d1d0e('0x1db9')]({'title':_0x4019b8[_0x4d1d0e('0x11c5')]?'API:'+_0x4019b8['status']+_0x4d1d0e('0x16e4')+_0x4019b8['statusText']:'SYSTEM:GETqueues','msg':_0x4019b8[_0x4d1d0e('0x1457')]?JSON[_0x4d1d0e('0x678')](_0x4019b8[_0x4d1d0e('0x1457')]):_0x4019b8['toString']()});});function _0x3a7b0e(){const _0x2e1ae8=_0x4e204d;_0x555c73['errors']=[];const _0x26c98d=[];_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x412')]&&_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x412')][_0x2e1ae8('0x19b')]()==='outbound'&&_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x1c54')]===_0x2e1ae8('0xbdc')&&(_0x555c73[_0x2e1ae8('0x1bd')]['phone']=_0x4a51f4['cutdigits']?(_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x11d4')]||'')+_0x2e1ae8('0x2265')+_0x4a51f4['cutdigits']+'}':(_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x11d4')]||'')+_0x2e1ae8('0x150e'),_0x4a51f4[_0x2e1ae8('0x287')]!=='none'?_0x555c73['queue'][_0x2e1ae8('0x19')]['indexOf'](_0x2e1ae8('0xa22'))<0x0&&(_0x555c73['queue']['options']+=_0x2e1ae8('0xa22')):_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x19')]=_0x555c73[_0x2e1ae8('0x1bd')]['options'][_0x2e1ae8('0x737')](_0x2e1ae8('0xa22'),''));const _0x179b46=_0x49cbdd()[_0x2e1ae8('0xe8e')](_0x555c73[_0x2e1ae8('0x14c4')],{'name':_0x555c73['queue'][_0x2e1ae8('0x1bd')]});_0x179b46&&(_0x555c73[_0x2e1ae8('0x1bd')][_0x49cbdd()[_0x2e1ae8('0xb41')](_0x2e1ae8('0x1d27'))+_0x2e1ae8('0x1bf4')]=_0x179b46['id']);if(_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x1c54')]&&_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x1c54')]===_0x2e1ae8('0x8fa')){}else switch((_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x643')]||_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x1c54')])[_0x2e1ae8('0x19b')]()){case'set':_0x555c73['queue'][_0x2e1ae8('0x2077')]=_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x2aa')]+'='+_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x175b')];break;case _0x2e1ae8('0x8fa'):break;default:_0x26c98d[0x0]=_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x1bd')],_0x26c98d[0x1]=_0x555c73['queue'][_0x2e1ae8('0xd2f')],_0x555c73[_0x2e1ae8('0x1bd')][_0x2e1ae8('0x2077')]=_0x26c98d[_0x2e1ae8('0x1eba')](',');}_0x9b56ae(_0x555c73['queue']);}function _0x9b56ae(_0x539e43){_0x35e519['hide'](_0x539e43);}}const _0x22a68b=_0x4a2b36;_0x3d40d8[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty',_0x4376d8('0x149e'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x3d40d8(_0x57f973,_0x4aedb8,_0x43aea4,_0x2c0af1,_0x221afd,_0x2d86b0,_0x334194,_0x61f095){const _0x5da7d0=_0x4376d8,_0x2098c6=this;_0x2098c6['currentUser']=_0x334194[_0x5da7d0('0x2831')](),_0x2098c6['errors']=[],_0x2098c6['title']='WHATSAPP.EDIT_'+(_0x2c0af1[_0x5da7d0('0x1c54')]||_0x2c0af1['app'])[_0x5da7d0('0x14e2')](),_0x2098c6[_0x5da7d0('0xca8')]=angular['copy'](_0x2c0af1),_0x2098c6[_0x5da7d0('0x103e')]=_0x61f095,_0x2098c6[_0x5da7d0('0x6ee')]={};if(_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')])switch(_0x2098c6['system']['appType']?_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x1c54')]['toLowerCase']():_0x2098c6['system'][_0x5da7d0('0x643')][_0x5da7d0('0x19b')]()){case'custom':break;case _0x5da7d0('0x2526'):{const _0x17a37e=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')][_0x5da7d0('0x2007')](',');_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0xdb5')]=_0x17a37e[0x0],_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x3e1')]=_0x17a37e[0x1],_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x1083')]=_0x17a37e[_0x5da7d0('0x275f')](0x2,_0x17a37e[_0x5da7d0('0x1f73')])['join'](',');}break;case'dialogflowv2':{const _0x247ae6=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')][_0x5da7d0('0x2007')](',');_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x28ab')]=_0x247ae6[0x0],_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2814')]=_0x247ae6[0x1],_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x1bc2')]=_0x247ae6[0x2],_0x2098c6[_0x5da7d0('0xca8')]['language']=_0x247ae6[0x3],_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x1083')]=_0x247ae6[_0x5da7d0('0x275f')](0x4,_0x247ae6[_0x5da7d0('0x1f73')])['join'](',');}break;case _0x5da7d0('0x16a9'):{const _0x17d642=_0x2098c6[_0x5da7d0('0xca8')]['appdata']['split'](',');_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x1452')]=_0x17d642[0x0],_0x2098c6[_0x5da7d0('0xca8')]['secretaccesskey']=_0x17d642[0x1],_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x1dcf')]=_0x17d642[0x2],_0x2098c6[_0x5da7d0('0xca8')]['botname']=_0x17d642[0x3],_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x1083')]=_0x17d642[_0x5da7d0('0x275f')](0x4,_0x17d642[_0x5da7d0('0x1f73')])[_0x5da7d0('0x1eba')](',');}break;case _0x5da7d0('0x96e'):{const _0x19faf2=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')][_0x5da7d0('0x2007')](',');_0x2098c6['system'][_0x5da7d0('0x12a6')]=isNaN(_0x19faf2[0x0])?_0x19faf2[0x0]:parseInt(_0x19faf2[0x0],0xa),_0x2098c6['system'][_0x5da7d0('0x132f')]=_0x19faf2[_0x5da7d0('0x275f')](0x1,_0x19faf2[_0x5da7d0('0x1f73')])[_0x5da7d0('0x1eba')](',');}break;case _0x5da7d0('0x1603'):_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x132f')]=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')];break;case _0x5da7d0('0xf2e'):_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2aa')]=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')]['split']('=')[0x0],_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x175b')]=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')][_0x5da7d0('0x2007')]('=')[0x1];break;case _0x5da7d0('0x17c6'):_0x2098c6['system']['project']=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')];break;default:{const _0x9f5603=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x2077')][_0x5da7d0('0x2007')](',');_0x2098c6[_0x5da7d0('0xca8')]['command']=_0x49cbdd()['isEmpty'](_0x9f5603[0x0])?_0x9f5603[0x0]:isNaN(_0x9f5603[0x0])?_0x9f5603[0x0]:parseInt(_0x9f5603[0x0],0xa),_0x2098c6[_0x5da7d0('0xca8')]['variable']=_0x49cbdd()[_0x5da7d0('0x109a')](_0x9f5603[0x1])?_0x9f5603[0x1]:isNaN(_0x9f5603[0x1])?_0x9f5603[0x1]:parseInt(_0x9f5603[0x1],0xa);}break;}else _0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0xb0a')]='';_0x2098c6['system'][_0x5da7d0('0x412')]&&_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x412')][_0x5da7d0('0x19b')]()===_0x5da7d0('0x1ade')&&_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x1c54')][_0x5da7d0('0x19b')]()===_0x5da7d0('0x1711')&&(_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x11d4')]=_0x2098c6['system']['phone']?_0x2098c6[_0x5da7d0('0xca8')]['phone'][_0x5da7d0('0x2007')]('$')[0x0]:undefined,_0x2098c6['system'][_0x5da7d0('0x1a8e')]=_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x17f4')]?_0x5da7d0('0x1d28')+_0x2098c6[_0x5da7d0('0xca8')][_0x5da7d0('0x17f4')]:undefined);_0x2098c6[_0x5da7d0('0x1eb3')]=_0x4d0779,_0x2098c6[_0x5da7d0('0x136e')]=_0x5449ed,_0x334194[_0x5da7d0('0x1ba2')](_0x5da7d0('0x20bf'))?_0x2d86b0[_0x5da7d0('0xb0a')]['get']({'fields':_0x5da7d0('0x12d2'),'sort':_0x5da7d0('0x2aa'),'nolimit':_0x5da7d0('0xe34')})[_0x5da7d0('0x1af5')]['then'](function(_0xb4317){const _0x324618=_0x5da7d0;_0x2098c6[_0x324618('0xd26')]=_0xb4317[_0x324618('0x2319')]||[];})['catch'](function(_0xa3eb4){const _0x45bdfd=_0x5da7d0;_0x43aea4['error']({'title':_0xa3eb4['status']?_0x45bdfd('0x14f7')+_0xa3eb4[_0x45bdfd('0x11c5')]+_0x45bdfd('0x16e4')+_0xa3eb4[_0x45bdfd('0x1833')]:_0x45bdfd('0x1edc'),'msg':_0xa3eb4['data']?JSON[_0x45bdfd('0x678')](_0xa3eb4[_0x45bdfd('0x1457')]):_0xa3eb4[_0x45bdfd('0x9b6')]()});}):_0x2d86b0[_0x5da7d0('0xb0a')]['get']({'fields':_0x5da7d0('0x12d2'),'sort':'name','nolimit':_0x5da7d0('0xe34')})[_0x5da7d0('0x1af5')][_0x5da7d0('0x17e7')](function(_0x1bc20b){const _0x172ccb=_0x5da7d0;_0x2098c6[_0x172ccb('0xd26')]=_0x1bc20b[_0x172ccb('0x2319')]||[];})['then'](function(){const _0x4d1c07=_0x5da7d0;return _0x2d86b0[_0x4d1c07('0x383')][_0x4d1c07('0x1c53')]({'userProfileId':_0x2098c6[_0x4d1c07('0x197c')][_0x4d1c07('0x1e76')],'sectionId':0x3f4})[_0x4d1c07('0x1af5')];})[_0x5da7d0('0x17e7')](function(_0x115fc2){const _0x1f447a=_0x5da7d0,_0x362535=_0x115fc2&&_0x115fc2[_0x1f447a('0x2319')]?_0x115fc2[_0x1f447a('0x2319')][0x0]:null;if(!_0x362535){const _0x3502e8=[];let _0x4d576b=null;_0x2098c6['system']&&(_0x4d576b=_0x49cbdd()[_0x1f447a('0xe8e')](_0x2098c6[_0x1f447a('0xd26')],{'name':_0x2098c6[_0x1f447a('0xca8')][_0x1f447a('0xb0a')]}));for(let _0x28780b=0x0;_0x28780b<_0x2098c6[_0x1f447a('0xd26')]['length'];_0x28780b++){_0x4d576b&&_0x2098c6['variables'][_0x28780b]['id']===_0x4d576b['id']&&(_0x2098c6[_0x1f447a('0xd26')][_0x28780b][_0x1f447a('0xe5c')]=![],_0x3502e8[_0x1f447a('0x269f')](_0x2098c6[_0x1f447a('0xd26')][_0x28780b]));}_0x2098c6[_0x1f447a('0xd26')]=_0x3502e8;}else{if(!_0x362535['autoAssociation'])return _0x2d86b0[_0x1f447a('0x78d')][_0x1f447a('0x1c53')]({'sectionId':_0x362535['id']})[_0x1f447a('0x1af5')][_0x1f447a('0x17e7')](function(_0x4d9355){const _0x5460b8=_0x1f447a,_0xae8f1e=_0x49cbdd()['map'](_0x4d9355[_0x5460b8('0x2319')],function(_0x1b6f4c){const _0x2de184=_0x5460b8;return _0x49cbdd()[_0x2de184('0xe8e')](_0x2098c6[_0x2de184('0xd26')],{'id':_0x1b6f4c[_0x2de184('0x5db')]});});let _0x31c3fe=null;_0x2098c6[_0x5460b8('0xca8')]&&(_0x31c3fe=_0x49cbdd()[_0x5460b8('0xe8e')](_0x2098c6[_0x5460b8('0xd26')],{'name':_0x2098c6[_0x5460b8('0xca8')]['variable']}));if(_0x31c3fe&&!_0x49cbdd()[_0x5460b8('0x26f8')](_0xae8f1e,['id',_0x31c3fe['id']])){const _0x283d78=_0x49cbdd()[_0x5460b8('0xe8e')](_0x2098c6['variables'],{'id':_0x31c3fe['id']});_0x283d78[_0x5460b8('0xe5c')]=![],_0xae8f1e['push'](_0x283d78);}_0x2098c6[_0x5460b8('0xd26')]=_0xae8f1e;});}})[_0x5da7d0('0x16df')](function(_0x5c2341){const _0x5a4bdf=_0x5da7d0;_0x43aea4[_0x5a4bdf('0x1db9')]({'title':_0x5c2341[_0x5a4bdf('0x11c5')]?_0x5a4bdf('0x14f7')+_0x5c2341[_0x5a4bdf('0x11c5')]+_0x5a4bdf('0x16e4')+_0x5c2341[_0x5a4bdf('0x1833')]:'SYSTEM:GETvariables','msg':_0x5c2341[_0x5a4bdf('0x1457')]?JSON[_0x5a4bdf('0x678')](_0x5c2341[_0x5a4bdf('0x1457')]):_0x5c2341[_0x5a4bdf('0x9b6')]()});});function _0x4d0779(){const _0x105976=_0x5da7d0;_0x2098c6[_0x105976('0x73e')]=[];const _0x5af78f=[];_0x2098c6[_0x105976('0xca8')][_0x105976('0x412')]&&_0x2098c6[_0x105976('0xca8')][_0x105976('0x412')][_0x105976('0x19b')]()===_0x105976('0x1ade')&&_0x2098c6[_0x105976('0xca8')][_0x105976('0x1c54')]===_0x105976('0xbdc')&&(_0x2098c6[_0x105976('0xca8')]['phone']=_0x221afd[_0x105976('0x12af')]?(_0x2098c6[_0x105976('0xca8')][_0x105976('0x11d4')]||'')+'${EXTEN:'+_0x221afd[_0x105976('0x12af')]+'}':(_0x2098c6[_0x105976('0xca8')][_0x105976('0x11d4')]||'')+'${EXTEN}',_0x221afd[_0x105976('0x287')]!=='none'?_0x2098c6[_0x105976('0xca8')][_0x105976('0x19')][_0x105976('0x2567')](_0x105976('0xa22'))<0x0&&(_0x2098c6[_0x105976('0xca8')]['options']+=_0x105976('0xa22')):_0x2098c6[_0x105976('0xca8')][_0x105976('0x19')]=_0x2098c6[_0x105976('0xca8')][_0x105976('0x19')]['replace'](_0x105976('0xa22'),''));if(_0x2098c6[_0x105976('0xca8')][_0x105976('0x1c54')]&&_0x2098c6['system'][_0x105976('0x1c54')]==='custom'){}else switch((_0x2098c6[_0x105976('0xca8')][_0x105976('0x643')]||_0x2098c6[_0x105976('0xca8')]['appType'])[_0x105976('0x19b')]()){case _0x105976('0xf2e'):_0x2098c6['system'][_0x105976('0x2077')]=_0x2098c6['system'][_0x105976('0x2aa')]+'='+_0x2098c6['system'][_0x105976('0x175b')];break;case'custom':break;default:_0x5af78f[0x0]=_0x2098c6[_0x105976('0xca8')]['command'],_0x5af78f[0x1]=_0x2098c6[_0x105976('0xca8')]['variable'],_0x2098c6['system'][_0x105976('0x2077')]=_0x5af78f['join'](',');}_0x5449ed(_0x2098c6[_0x105976('0xca8')]);}function _0x5449ed(_0x1cdd0b){const _0x186def=_0x5da7d0;_0x57f973[_0x186def('0x212a')](_0x1cdd0b);}}const _0x72f7b2=_0x3d40d8;_0x10ae79[_0x4376d8('0x1b9c')]=['$mdDialog','$q',_0x4376d8('0x108a'),_0x4376d8('0x149e'),_0x4376d8('0x254f'),_0x4376d8('0x212e'),'Auth','crudPermissions'];function _0x10ae79(_0x48c5c2,_0x22e7c0,_0x7d6d9b,_0x501eb0,_0x5b1d54,_0x226ba3,_0x33294b,_0x5b6711){const _0x14d3d9=_0x4376d8,_0xda6eaf=this;_0xda6eaf[_0x14d3d9('0x197c')]=_0x33294b['getCurrentUser'](),_0xda6eaf['errors']=[],_0xda6eaf[_0x14d3d9('0x24d3')]=_0x14d3d9('0x1bd6')+(_0x501eb0['appType']||_0x501eb0['app'])[_0x14d3d9('0x14e2')](),_0xda6eaf[_0x14d3d9('0x1132')]=angular['copy'](_0x501eb0),_0xda6eaf[_0x14d3d9('0x103e')]=_0x5b6711,_0xda6eaf['hasModulePermissions']={};if(_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2077')])switch(_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x1c54')]?_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x1c54')]['toLowerCase']():_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x643')][_0x14d3d9('0x19b')]()){case'custom':break;case _0x14d3d9('0x2526'):{const _0x27293b=_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2077')][_0x14d3d9('0x2007')](',');_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0xdb5')]=_0x27293b[0x0],_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x3e1')]=_0x27293b[0x1],_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x1083')]=_0x27293b[_0x14d3d9('0x275f')](0x2,_0x27293b[_0x14d3d9('0x1f73')])['join'](',');}break;case _0x14d3d9('0x22ac'):{const _0x4080b7=_0xda6eaf[_0x14d3d9('0x1132')]['appdata'][_0x14d3d9('0x2007')](',');_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x28ab')]=_0x4080b7[0x0],_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2814')]=_0x4080b7[0x1],_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x1bc2')]=_0x4080b7[0x2],_0xda6eaf[_0x14d3d9('0x1132')]['language']=_0x4080b7[0x3],_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x1083')]=_0x4080b7[_0x14d3d9('0x275f')](0x4,_0x4080b7[_0x14d3d9('0x1f73')])[_0x14d3d9('0x1eba')](',');}break;case _0x14d3d9('0x16a9'):{const _0x554b22=_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2077')][_0x14d3d9('0x2007')](',');_0xda6eaf['tag'][_0x14d3d9('0x1452')]=_0x554b22[0x0],_0xda6eaf['tag'][_0x14d3d9('0x1a62')]=_0x554b22[0x1],_0xda6eaf[_0x14d3d9('0x1132')]['lexregion']=_0x554b22[0x2],_0xda6eaf[_0x14d3d9('0x1132')]['botname']=_0x554b22[0x3],_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x1083')]=_0x554b22[_0x14d3d9('0x275f')](0x4,_0x554b22[_0x14d3d9('0x1f73')])[_0x14d3d9('0x1eba')](',');}break;case'autoreply':{const _0x58d74a=_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2077')][_0x14d3d9('0x2007')](',');_0xda6eaf['tag'][_0x14d3d9('0x12a6')]=isNaN(_0x58d74a[0x0])?_0x58d74a[0x0]:parseInt(_0x58d74a[0x0],0xa),_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x132f')]=_0x58d74a[_0x14d3d9('0x275f')](0x1,_0x58d74a[_0x14d3d9('0x1f73')])[_0x14d3d9('0x1eba')](',');}break;case _0x14d3d9('0x1603'):_0xda6eaf[_0x14d3d9('0x1132')]['text']=_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2077')];break;case _0x14d3d9('0xf2e'):_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2aa')]=_0xda6eaf[_0x14d3d9('0x1132')]['appdata'][_0x14d3d9('0x2007')]('=')[0x0],_0xda6eaf['tag'][_0x14d3d9('0x175b')]=_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2077')][_0x14d3d9('0x2007')]('=')[0x1];break;case _0x14d3d9('0x17c6'):_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x87c')]=_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2077')];break;default:{const _0x56177b=_0xda6eaf[_0x14d3d9('0x1132')]['appdata'][_0x14d3d9('0x2007')](',');_0xda6eaf['tag'][_0x14d3d9('0x1132')]=_0x49cbdd()[_0x14d3d9('0x109a')](_0x56177b[0x0])?_0x56177b[0x0]:isNaN(_0x56177b[0x0])?_0x56177b[0x0]:parseInt(_0x56177b[0x0],0xa);}break;}else{}_0xda6eaf['tag'][_0x14d3d9('0x412')]&&_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x412')][_0x14d3d9('0x19b')]()===_0x14d3d9('0x1ade')&&_0xda6eaf['tag'][_0x14d3d9('0x1c54')][_0x14d3d9('0x19b')]()===_0x14d3d9('0x1711')&&(_0xda6eaf['tag'][_0x14d3d9('0x11d4')]=_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2154')]?_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x2154')][_0x14d3d9('0x2007')]('$')[0x0]:undefined,_0xda6eaf[_0x14d3d9('0x1132')]['callerId']=_0xda6eaf[_0x14d3d9('0x1132')][_0x14d3d9('0x17f4')]?_0x14d3d9('0x1d28')+_0xda6eaf[_0x14d3d9('0x1132')]['callerID']:undefined);_0xda6eaf[_0x14d3d9('0x1eb3')]=_0x6018fe,_0xda6eaf[_0x14d3d9('0x136e')]=_0x14c88d,_0x33294b[_0x14d3d9('0x1ba2')](_0x14d3d9('0x20bf'))?_0x226ba3[_0x14d3d9('0x1132')]['get']({'fields':_0x14d3d9('0x12d2'),'sort':_0x14d3d9('0x2aa'),'nolimit':_0x14d3d9('0xe34')})[_0x14d3d9('0x1af5')][_0x14d3d9('0x17e7')](function(_0x285bd5){const _0x236ea8=_0x14d3d9;_0xda6eaf['tags']=_0x285bd5[_0x236ea8('0x2319')]||[];})[_0x14d3d9('0x16df')](function(_0x53d3b1){const _0x3f54d0=_0x14d3d9;_0x7d6d9b[_0x3f54d0('0x1db9')]({'title':_0x53d3b1[_0x3f54d0('0x11c5')]?_0x3f54d0('0x14f7')+_0x53d3b1[_0x3f54d0('0x11c5')]+_0x3f54d0('0x16e4')+_0x53d3b1[_0x3f54d0('0x1833')]:_0x3f54d0('0x14e7'),'msg':_0x53d3b1['data']?JSON[_0x3f54d0('0x678')](_0x53d3b1[_0x3f54d0('0x1457')]):_0x53d3b1[_0x3f54d0('0x9b6')]()});}):_0x226ba3[_0x14d3d9('0x1132')][_0x14d3d9('0x1c53')]({'fields':_0x14d3d9('0x12d2'),'sort':'name','nolimit':_0x14d3d9('0xe34')})[_0x14d3d9('0x1af5')][_0x14d3d9('0x17e7')](function(_0xe0ef20){const _0x48e8d4=_0x14d3d9;_0xda6eaf[_0x48e8d4('0x1522')]=_0xe0ef20[_0x48e8d4('0x2319')]||[];})[_0x14d3d9('0x17e7')](function(){const _0x2746d7=_0x14d3d9;return _0x226ba3[_0x2746d7('0x383')]['get']({'userProfileId':_0xda6eaf[_0x2746d7('0x197c')][_0x2746d7('0x1e76')],'sectionId':0x3f0})[_0x2746d7('0x1af5')];})[_0x14d3d9('0x17e7')](function(_0xde3b5){const _0x5d305f=_0x14d3d9,_0x1f7082=_0xde3b5&&_0xde3b5['rows']?_0xde3b5['rows'][0x0]:null;if(!_0x1f7082){const _0x143d34=[];let _0x570cb7=null;_0xda6eaf['tag']&&(_0x570cb7=_0x49cbdd()['find'](_0xda6eaf[_0x5d305f('0x1522')],{'name':_0xda6eaf['tag'][_0x5d305f('0x1132')]}));for(let _0xd2f4e5=0x0;_0xd2f4e5<_0xda6eaf[_0x5d305f('0x1522')][_0x5d305f('0x1f73')];_0xd2f4e5++){_0x570cb7&&_0xda6eaf[_0x5d305f('0x1522')][_0xd2f4e5]['id']===_0x570cb7['id']&&(_0xda6eaf[_0x5d305f('0x1522')][_0xd2f4e5][_0x5d305f('0xe5c')]=![],_0x143d34[_0x5d305f('0x269f')](_0xda6eaf[_0x5d305f('0x1522')][_0xd2f4e5]));}_0xda6eaf['tags']=_0x143d34;}else{if(!_0x1f7082['autoAssociation'])return _0x226ba3['userProfileResource'][_0x5d305f('0x1c53')]({'sectionId':_0x1f7082['id']})[_0x5d305f('0x1af5')][_0x5d305f('0x17e7')](function(_0x3ed435){const _0x5769ea=_0x5d305f,_0x3627ae=_0x49cbdd()[_0x5769ea('0x787')](_0x3ed435[_0x5769ea('0x2319')],function(_0x54b448){const _0x56daa3=_0x5769ea;return _0x49cbdd()[_0x56daa3('0xe8e')](_0xda6eaf[_0x56daa3('0x1522')],{'id':_0x54b448[_0x56daa3('0x5db')]});});let _0x1015f5=null;_0xda6eaf[_0x5769ea('0x1132')]&&(_0x1015f5=_0x49cbdd()['find'](_0xda6eaf['tags'],{'name':_0xda6eaf[_0x5769ea('0x1132')][_0x5769ea('0x1132')]}));if(_0x1015f5&&!_0x49cbdd()[_0x5769ea('0x26f8')](_0x3627ae,['id',_0x1015f5['id']])){const _0x285070=_0x49cbdd()['find'](_0xda6eaf[_0x5769ea('0x1522')],{'id':_0x1015f5['id']});_0x285070[_0x5769ea('0xe5c')]=![],_0x3627ae[_0x5769ea('0x269f')](_0x285070);}_0xda6eaf['tags']=_0x3627ae;});}})[_0x14d3d9('0x16df')](function(_0x504bda){const _0x4abe89=_0x14d3d9;_0x7d6d9b[_0x4abe89('0x1db9')]({'title':_0x504bda['status']?_0x4abe89('0x14f7')+_0x504bda[_0x4abe89('0x11c5')]+_0x4abe89('0x16e4')+_0x504bda[_0x4abe89('0x1833')]:_0x4abe89('0x1221'),'msg':_0x504bda[_0x4abe89('0x1457')]?JSON[_0x4abe89('0x678')](_0x504bda[_0x4abe89('0x1457')]):_0x504bda[_0x4abe89('0x9b6')]()});});function _0x6018fe(){const _0x1da0f8=_0x14d3d9;_0xda6eaf[_0x1da0f8('0x73e')]=[];const _0x962af1=[];_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x412')]&&_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x412')]['toLowerCase']()==='outbound'&&_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x1c54')]===_0x1da0f8('0xbdc')&&(_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x2154')]=_0x5b1d54[_0x1da0f8('0x12af')]?(_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x11d4')]||'')+_0x1da0f8('0x2265')+_0x5b1d54[_0x1da0f8('0x12af')]+'}':(_0xda6eaf['tag'][_0x1da0f8('0x11d4')]||'')+'${EXTEN}',_0x5b1d54[_0x1da0f8('0x287')]!==_0x1da0f8('0x7ee')?_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x19')][_0x1da0f8('0x2567')](_0x1da0f8('0xa22'))<0x0&&(_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x19')]+=_0x1da0f8('0xa22')):_0xda6eaf['tag'][_0x1da0f8('0x19')]=_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x19')]['replace'](_0x1da0f8('0xa22'),''));const _0x32166b=_0x49cbdd()[_0x1da0f8('0xe8e')](_0xda6eaf[_0x1da0f8('0x1522')],{'name':_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x1132')]});_0x32166b&&(_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x1686')]=_0x32166b['id']);if(_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x1c54')]&&_0xda6eaf['tag']['appType']==='custom'){}else switch((_0xda6eaf['tag'][_0x1da0f8('0x643')]||_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x1c54')])[_0x1da0f8('0x19b')]()){case _0x1da0f8('0xf2e'):_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x2077')]=_0xda6eaf[_0x1da0f8('0x1132')]['name']+'='+_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x175b')];break;case'custom':break;default:_0x962af1[0x0]=_0xda6eaf[_0x1da0f8('0x1132')][_0x1da0f8('0x1132')],_0xda6eaf[_0x1da0f8('0x1132')]['appdata']=_0x962af1[_0x1da0f8('0x1eba')](',');}_0x14c88d(_0xda6eaf[_0x1da0f8('0x1132')]);}function _0x14c88d(_0x2d7ac5){const _0x5d7f33=_0x14d3d9;_0x48c5c2[_0x5d7f33('0x212a')](_0x2d7ac5);}}const _0x309cd4=_0x10ae79;_0x46f348['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x668'),'$state','$q','$translate','$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),_0x4376d8('0x212e'),'Auth'];function _0x46f348(_0xba1042,_0x752f76,_0x399778,_0x4041b7,_0x3f7501,_0x319294,_0x510880,_0x5eb21c,_0x528a3a,_0x172b01,_0x41bdb2){const _0x1b95fe=_0x4376d8,_0x54f3f5=this;_0x54f3f5[_0x1b95fe('0x197c')]=_0x41bdb2[_0x1b95fe('0x2831')](),_0x54f3f5[_0x1b95fe('0x254f')]={},_0x54f3f5[_0x1b95fe('0x2612')]={'count':0x0,'rows':[]},_0x54f3f5[_0x1b95fe('0x8b')]=[],_0x54f3f5[_0x1b95fe('0x103e')],_0x54f3f5[_0x1b95fe('0x826')]={'read':_0x1b95fe('0x9bb'),'closed':_0x1b95fe('0x9bb'),'sort':_0x1b95fe('0x2555'),'includeAll':'true','limit':0xa,'page':0x1},_0x54f3f5[_0x1b95fe('0x161d')]=_0x2231d5,_0x54f3f5[_0x1b95fe('0x1a20')]=_0x55e6c0,_0x54f3f5[_0x1b95fe('0x2643')]=_0x256463,_0x54f3f5[_0x1b95fe('0x130d')]=_0x52e9a3,_0x54f3f5[_0x1b95fe('0x1df0')]=_0x5ab623,_0x54f3f5['spywhatsappInteraction']=_0x3dccb5,_0x54f3f5[_0x1b95fe('0x585')]=_0x14d331,_0x54f3f5[_0x1b95fe('0x1adf')]=_0x54503d,_0x54f3f5[_0x1b95fe('0x57')]=_0x33d26f,_0x54f3f5['deleteSelectedWhatsappAccountInteractions']=_0x5b4937;function _0x2231d5(_0x41af35,_0x16a552){const _0x10cf2f=_0x1b95fe;_0x54f3f5[_0x10cf2f('0x254f')]=_0x41af35,_0x54f3f5['crudPermissions']=typeof _0x16a552!==_0x10cf2f('0xfad')?_0x16a552:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x54f3f5[_0x10cf2f('0x826')][_0x10cf2f('0x10d7')]=_0x54f3f5[_0x10cf2f('0x254f')]['id'],_0x54f3f5['advancedSearch']={'fields':_0xc070cc()},_0x11e273();}function _0x11e273(){const _0x15b88e=_0x1b95fe;return _0x172b01['tag']['get']()[_0x15b88e('0x1af5')][_0x15b88e('0x17e7')](function(_0x36ff85){_0x54f3f5['tags']=_0x36ff85||{'count':0x0,'rows':[]};})[_0x15b88e('0x17e7')](function(){const _0x2e0995=_0x15b88e;_0x54f3f5[_0x2e0995('0x137d')]=_0x31fc38();});}function _0x31fc38(){const _0x21bdbb=_0x1b95fe;return[{'name':'Start\x20Date','key':_0x21bdbb('0x7c9'),'type':'date','label':'DASHBOARDS.SELECT_DATE'},{'name':_0x21bdbb('0xd08'),'key':_0x21bdbb('0xf64'),'type':'select','label':_0x21bdbb('0x1c28'),'customOptions':[{'value':0x0,'translate':_0x21bdbb('0x263')},{'value':0x1,'translate':_0x21bdbb('0x2874')},{'value':null,'translate':_0x21bdbb('0x9cf')}]},{'name':_0x21bdbb('0x51c'),'key':_0x21bdbb('0x2bc'),'type':_0x21bdbb('0x2897'),'label':_0x21bdbb('0x12f2'),'customOptions':[{'value':0x0,'translate':_0x21bdbb('0x1f4f')},{'value':0x1,'translate':_0x21bdbb('0x2322')},{'value':null,'translate':_0x21bdbb('0x9cf')}]},{'name':_0x21bdbb('0x1874'),'key':_0x21bdbb('0x5e5'),'type':_0x21bdbb('0x2897'),'label':'DASHBOARDS.SELECT_AGENT','customOptions':[{'value':_0x21bdbb('0x9bb'),'translate':'DASHBOARDS.NOT_ASSIGNED'},{'value':undefined,'translate':'DASHBOARDS.ALL'}]},{'name':'Tag','key':_0x21bdbb('0x1132'),'type':_0x21bdbb('0x1227'),'label':_0x21bdbb('0x1e4d'),'options':_0x54f3f5['tags'][_0x21bdbb('0x2319')],'placeholder':_0x21bdbb('0x21aa')}];}function _0xc070cc(){const _0x260fc2=_0x1b95fe;return[{'name':'Id','column':'id','type':_0x260fc2('0x7b8')},{'name':'Contact','column':_0x260fc2('0x239b'),'type':'autocomplete','options':{'searchFields':[_0x260fc2('0x1761'),_0x260fc2('0x8d6'),_0x260fc2('0x822')],'route':{'model':'cmContact','action':_0x260fc2('0x1c53'),'params':{'fields':_0x260fc2('0x2030'),'Contact':'@autocomplete','nolimit':!![]}},'extraOperators':[_0x260fc2('0x1ed7')],'excludedOperators':['$ne']}},{'name':_0x260fc2('0x2348'),'column':_0x260fc2('0x2179'),'type':_0x260fc2('0x132f'),'options':{'excludedOperators':[_0x260fc2('0x1767'),_0x260fc2('0xdaa')]}},{'name':_0x260fc2('0x2854'),'column':_0x260fc2('0x139b'),'type':_0x260fc2('0x132f'),'options':{'excludedOperators':[_0x260fc2('0x1767'),'$ne']}},{'name':'Status','column':_0x260fc2('0x2bc'),'type':'select','values':[{'id':0x0,'translate':'DASHBOARDS.OPENED'},{'id':0x1,'translate':_0x260fc2('0x2322')}],'options':{'excludedOperators':[_0x260fc2('0xdaa')]}},{'name':_0x260fc2('0x1874'),'column':_0x260fc2('0x24fd'),'type':_0x260fc2('0x682'),'options':{'table':'i','route':{'model':_0x260fc2('0x221e'),'action':_0x260fc2('0x1c53'),'params':{'role':_0x260fc2('0x684'),'fields':_0x260fc2('0x1f7'),'nolimit':!![]}},'searchFields':[_0x260fc2('0xea6'),'name'],'extraOperators':[_0x260fc2('0x1ed7')],'excludedOperators':[_0x260fc2('0xdaa')]}},{'name':'Tags','column':'Tag','type':_0x260fc2('0x1227'),'options':{'route':{'model':'tag','action':_0x260fc2('0x1c53'),'params':{'nolimit':!![]}},'excludedOperators':['$notIn']}},{'name':_0x260fc2('0x1786'),'column':_0x260fc2('0x7c9'),'type':_0x260fc2('0xbd4'),'options':{'excludedOperators':[_0x260fc2('0xdaa')]}},{'name':_0x260fc2('0xf8b'),'column':_0x260fc2('0x1aad'),'type':_0x260fc2('0x2897'),'values':[{'id':0x1,'translate':'DASHBOARDS.READ'},{'id':0x0,'translate':_0x260fc2('0x263')}],'options':{'excludedOperators':[_0x260fc2('0xdaa')]}}];}function _0x14d331(){const _0xaaeabe=_0x1b95fe;_0x510880['show']({'controller':_0xaaeabe('0x171b'),'controllerAs':'vm','templateUrl':_0xfd2d95,'parent':angular[_0xaaeabe('0x1ce1')](_0x5eb21c[_0xaaeabe('0x13aa')]),'clickOutsideToClose':![],'locals':{'fields':_0x54f3f5[_0xaaeabe('0xfb6')][_0xaaeabe('0x9c9')],'color':undefined,'storagePath':_0xaaeabe('0x1c72')},'fullscreen':!![]})[_0xaaeabe('0x17e7')](function(_0x4f9c30){const _0xe7808f=_0xaaeabe;_0x54f3f5[_0xe7808f('0x826')][_0xe7808f('0xfba')]=_0x4f9c30===![]?undefined:_0x4f9c30;if(_0x54f3f5['query'][_0xe7808f('0xfba')])_0x5ab623();else _0x4f9c30===![]&&_0x5ab623();})[_0xaaeabe('0x16df')](function(_0xced093){const _0x2f6b24=_0xaaeabe;_0x528a3a[_0x2f6b24('0x1db9')]({'title':'ERROR','msg':_0xced093[_0x2f6b24('0x1457')]?JSON['stringify'](_0xced093[_0x2f6b24('0x1457')][_0x2f6b24('0x1603')]):_0xced093[_0x2f6b24('0x9b6')]()});});}function _0x256463(_0x492853,_0x1ef6a7,_0x3d7d64){const _0x59d93f=_0x1b95fe;return _0x172b01[_0x59d93f('0x204')]['download']({'id':_0x492853['id'],'exists':!![],'attachments':_0x3d7d64})[_0x59d93f('0x1af5')][_0x59d93f('0x17e7')](function(_0x22dfd4){const _0x26fe39=_0x59d93f,_0xbac30e=[_0x22dfd4[_0x26fe39('0x3ca')]];let _0x6b696e=_0x26fe39('0x1219')+_0x492853['id'];const _0x329e9=new Blob(_0xbac30e,{'type':_0x22dfd4[_0x26fe39('0x412')]});_0x6b696e=_0x26fe39('0x1f55')+_0x492853['id']+_0x26fe39('0x71b');const _0x16661c=window['document'][_0x26fe39('0x68d')]('a');_0x16661c[_0x26fe39('0x224')](_0x26fe39('0x448'),URL[_0x26fe39('0x28ce')](_0x329e9)),_0x16661c[_0x26fe39('0x224')](_0x26fe39('0x1244'),_0x6b696e),document[_0x26fe39('0x13aa')]['appendChild'](_0x16661c),_0x16661c[_0x26fe39('0x20d4')]();})['catch'](function(_0x60d903){const _0x11cb06=_0x59d93f;if(_0x60d903[_0x11cb06('0x1457')]&&_0x60d903[_0x11cb06('0x1457')][_0x11cb06('0x73e')]&&_0x60d903[_0x11cb06('0x1457')][_0x11cb06('0x73e')][_0x11cb06('0x1f73')])for(let _0x5bbc1f=0x0;_0x5bbc1f<_0x60d903[_0x11cb06('0x1457')][_0x11cb06('0x73e')][_0x11cb06('0x1f73')];_0x5bbc1f+=0x1){_0x528a3a[_0x11cb06('0x1db9')]({'title':_0x60d903[_0x11cb06('0x1457')][_0x11cb06('0x73e')][_0x5bbc1f][_0x11cb06('0x412')],'msg':_0x60d903[_0x11cb06('0x1457')][_0x11cb06('0x73e')][_0x5bbc1f]['message']});}else _0x528a3a[_0x11cb06('0x1db9')]({'title':_0x60d903[_0x11cb06('0x11c5')]?_0x11cb06('0x14f7')+_0x60d903[_0x11cb06('0x11c5')]+_0x11cb06('0x16e4')+_0x60d903[_0x11cb06('0x1833')]:_0x11cb06('0x24f7'),'msg':_0x60d903[_0x11cb06('0x1457')]?JSON['stringify'](_0x60d903[_0x11cb06('0x1457')][_0x11cb06('0x1603')]):_0x60d903[_0x11cb06('0x9b6')]()});});}function _0x55e6c0(_0x1b7de3,_0xe2302){const _0x2c7a74=_0x1b95fe,_0x32105f=_0x510880[_0x2c7a74('0x1121')]()[_0x2c7a74('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20interaction?')['htmlContent'](''+(_0x1b7de3['name']||_0x1b7de3['id']&&_0x49cbdd()['upperFirst'](_0x2c7a74('0xb9a'))+_0x1b7de3['id']||_0x2c7a74('0x1219'))+_0x2c7a74('0x1d23')+'\x20will\x20be\x20deleted.')[_0x2c7a74('0x2095')](_0x2c7a74('0x1b75'))[_0x2c7a74('0x104f')](_0xe2302)['ok']('OK')[_0x2c7a74('0x1d47')]('CANCEL');_0x510880[_0x2c7a74('0x28e2')](_0x32105f)['then'](function(){_0x33d26f(_0x1b7de3);},function(){const _0x101289=_0x2c7a74;console['log'](_0x101289('0x28a0'));});}function _0x52e9a3(_0x1e46f1){const _0x1c2e70=_0x1b95fe;_0x54f3f5[_0x1c2e70('0x2612')]=_0x1e46f1||{'count':0x0,'rows':[]};for(let _0x267877=0x0;_0x267877<_0x54f3f5[_0x1c2e70('0x2612')][_0x1c2e70('0x2319')][_0x1c2e70('0x1f73')];_0x267877+=0x1){const _0x417561=_0x54f3f5[_0x1c2e70('0x2612')]['rows'][_0x267877];_0x31e7cc(_0x417561),_0x417561[_0x1c2e70('0xe49')][_0x1c2e70('0x2aa')]=_0xcf2395(_0x417561);}}function _0x5ab623(){const _0x22aba5=_0x1b95fe;_0x54f3f5[_0x22aba5('0x826')][_0x22aba5('0xf19')]=(_0x54f3f5[_0x22aba5('0x826')][_0x22aba5('0x115a')]-0x1)*_0x54f3f5[_0x22aba5('0x826')][_0x22aba5('0x193b')],_0x54f3f5[_0x22aba5('0x1691')]=_0x172b01[_0x22aba5('0x204')][_0x22aba5('0x1c53')](_0x54f3f5['query'],_0x52e9a3)['$promise'];}function _0x3dccb5(_0x3d9bcf,_0x2ee1f2){const _0x20405b=_0x1b95fe;_0x510880[_0x20405b('0x28e2')]({'controller':_0x20405b('0x13b4'),'controllerAs':'vm','templateUrl':_0x46cd84,'parent':angular[_0x20405b('0x1ce1')](_0x5eb21c['body']),'targetEvent':_0x3d9bcf,'clickOutsideToClose':!![],'onShowing':function(_0x41679e){const _0x34f793=_0x20405b;_0x41679e['vm'][_0x34f793('0x161d')]({'id':0x1,'channel':_0x34f793('0x1d27'),'interaction':_0x2ee1f2,'spy':!![]},_0x752f76[_0x34f793('0x178c')]['vm'][_0x34f793('0x1aeb')]);}});}function _0x33d26f(_0x8cae9f){const _0x2e1751=_0x1b95fe;_0x172b01[_0x2e1751('0x204')][_0x2e1751('0x1da6')]({'id':_0x8cae9f['id']})['$promise'][_0x2e1751('0x17e7')](function(){const _0xe8e35d=_0x2e1751;_0x49cbdd()[_0xe8e35d('0x5f3')](_0x54f3f5[_0xe8e35d('0x2612')]['rows'],{'id':_0x8cae9f['id']}),_0x54f3f5[_0xe8e35d('0x2612')][_0xe8e35d('0x335')]-=0x1,!_0x54f3f5['whatsappAccountInteractions'][_0xe8e35d('0x2319')][_0xe8e35d('0x1f73')]&&_0x5ab623(),_0x528a3a['success']({'title':_0xe8e35d('0xdca'),'msg':_0x8cae9f['name']?_0x8cae9f[_0xe8e35d('0x2aa')]+_0xe8e35d('0x149f'):''});})['catch'](function(_0x383136){const _0x542dd9=_0x2e1751;if(_0x383136[_0x542dd9('0x1457')]&&_0x383136['data'][_0x542dd9('0x73e')]&&_0x383136[_0x542dd9('0x1457')][_0x542dd9('0x73e')][_0x542dd9('0x1f73')]){_0x54f3f5['errors']=_0x383136[_0x542dd9('0x1457')][_0x542dd9('0x73e')]||[{'message':_0x383136[_0x542dd9('0x9b6')](),'type':_0x542dd9('0x18e3')}];for(let _0x1210b1=0x0;_0x1210b1<_0x383136['data']['errors'][_0x542dd9('0x1f73')];_0x1210b1++){_0x528a3a[_0x542dd9('0x1db9')]({'title':_0x383136['data'][_0x542dd9('0x73e')][_0x1210b1][_0x542dd9('0x412')],'msg':_0x383136[_0x542dd9('0x1457')]['errors'][_0x1210b1][_0x542dd9('0x1603')]});}}else _0x528a3a['error']({'title':_0x383136['status']?_0x542dd9('0x14f7')+_0x383136[_0x542dd9('0x11c5')]+'\x20-\x20'+_0x383136[_0x542dd9('0x1833')]:_0x542dd9('0x18e3'),'msg':_0x383136[_0x542dd9('0x1457')]?JSON['stringify'](_0x383136[_0x542dd9('0x1457')][_0x542dd9('0x1603')]):_0x383136[_0x542dd9('0x1603')]||_0x383136[_0x542dd9('0x9b6')]()});});}function _0x54503d(){const _0x2b2958=_0x1b95fe,_0x1af737=angular[_0x2b2958('0x14e5')](_0x54f3f5[_0x2b2958('0x8b')]);return _0x54f3f5[_0x2b2958('0x8b')]=[],_0x1af737;}function _0x5b4937(_0x3167c6){const _0x190d96=_0x1b95fe,_0x4f337f=_0x510880[_0x190d96('0x1121')]()[_0x190d96('0x24d3')](_0x190d96('0x144e'))[_0x190d96('0x211f')](''+_0x54f3f5[_0x190d96('0x8b')]['length']+_0x190d96('0x145a')+_0x190d96('0xe9f'))[_0x190d96('0x2095')](_0x190d96('0x1d21'))['targetEvent'](_0x3167c6)['ok']('OK')[_0x190d96('0x1d47')](_0x190d96('0x28a0'));_0x510880['show'](_0x4f337f)[_0x190d96('0x17e7')](function(){const _0x4cbbc8=_0x190d96;_0x54f3f5[_0x4cbbc8('0x8b')][_0x4cbbc8('0xccd')](function(_0x3b13a5){_0x33d26f(_0x3b13a5);}),_0x54f3f5[_0x4cbbc8('0x8b')]=[];});}function _0x31e7cc(_0x4f5334){const _0x542899=_0x1b95fe;_0x4f5334['Contact']?_0x4f5334[_0x542899('0x192c')]=(_0x4f5334[_0x542899('0x239b')][_0x542899('0x1761')]||'')+'\x20'+(_0x4f5334[_0x542899('0x239b')]['lastName']||''):_0x4f5334[_0x542899('0x192c')]=_0x3f7501[_0x542899('0x1acc')](_0x542899('0x30a'));}function _0xcf2395(_0x5709fa){const _0x33ffe0=_0x1b95fe;if(_0x5709fa['UserId'])return _0x5709fa[_0x33ffe0('0x5e5')]===_0x54f3f5[_0x33ffe0('0x197c')]['id']?_0x3f7501[_0x33ffe0('0x1acc')](_0x33ffe0('0x2422')):_0x5709fa['Owner'][_0x33ffe0('0xea6')]+'\x20<'+_0x5709fa['Owner'][_0x33ffe0('0xe3e')]+'>';return _0x3f7501['instant'](_0x33ffe0('0x154d'));}let _0x35e695=!![],_0xe69902=0x1;_0x752f76[_0x1b95fe('0x620')]('vm_dc.query.filter',function(_0x2fbcc0,_0x4788eb){const _0x3b3506=_0x1b95fe;_0x35e695?_0x319294(function(){_0x35e695=![];}):(!_0x4788eb&&(_0xe69902=_0x54f3f5[_0x3b3506('0x826')][_0x3b3506('0x115a')]),_0x2fbcc0!==_0x4788eb&&(_0x54f3f5['query']['page']=0x1),!_0x2fbcc0&&(_0x54f3f5[_0x3b3506('0x826')][_0x3b3506('0x115a')]=_0xe69902),_0x5ab623());});}const _0x5bdf6e=_0x46f348,_0x587c63=_0x4cf2bc['p']+_0x4376d8('0x1c6c');_0x39c1e9[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x1391'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x28da'),_0x4376d8('0x1d11'),'setting','api',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x254f'),_0x4376d8('0x383')];function _0x39c1e9(_0x20b9af,_0x40e0c4,_0x48313d,_0x2ad683,_0x4cd77d,_0x38f1b7,_0x31b34c,_0x76f6cd,_0x12b195,_0x1cc423,_0x46fd2,_0x51bb07){const _0x3d8d26=_0x4376d8,_0x321905=this;_0x321905['currentUser']=_0x1cc423['getCurrentUser'](),_0x321905[_0x3d8d26('0x1d11')]=_0x38f1b7,_0x321905[_0x3d8d26('0x1aeb')]=_0x31b34c,_0x321905[_0x3d8d26('0x1572')]=_0x321905[_0x3d8d26('0x1aeb')][_0x3d8d26('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x321905[_0x3d8d26('0xaed')]=_0x40e0c4[_0x3d8d26('0x14fe')]()+_0x3d8d26('0x14')+_0x40e0c4[_0x3d8d26('0x108')](),_0x321905[_0x3d8d26('0x254f')]=_0x46fd2||_0x20b9af[_0x3d8d26('0x16fb')]['whatsappAccount']||{},_0x321905[_0x3d8d26('0x383')]=_0x51bb07&&_0x51bb07[_0x3d8d26('0x335')]==0x1?_0x51bb07['rows'][0x0]:null,_0x321905[_0x3d8d26('0x103e')]=_0x1cc423['parseCrudPermissions'](_0x321905[_0x3d8d26('0x383')]?_0x321905['userProfileSection'][_0x3d8d26('0x103e')]:null),_0x321905[_0x3d8d26('0x6ee')]={},_0x321905['selectedTab']=_0x20b9af['params'][_0x3d8d26('0x1523')]||0x0,_0x321905[_0x3d8d26('0x2359')]=_0x16fdd2,_0x321905[_0x3d8d26('0x99f')]=_0x12b195[_0x3d8d26('0x1178')],_0x321905[_0x3d8d26('0x69b')]=_0x491a8c,_0x321905[_0x3d8d26('0x1074')]=_0x47582f,_0x1cc423[_0x3d8d26('0x1ba2')](_0x3d8d26('0x20bf'))?_0x76f6cd[_0x3d8d26('0x25b')]['get']({'fields':'id,name','sort':_0x3d8d26('0x2aa')})[_0x3d8d26('0x1af5')][_0x3d8d26('0x17e7')](function(_0x4c5dff){const _0x447c18=_0x3d8d26;_0x321905[_0x447c18('0x2504')]=_0x4c5dff[_0x447c18('0x2319')]||[];})[_0x3d8d26('0x16df')](function(_0x30d7bd){const _0x10cae2=_0x3d8d26;_0x12b195[_0x10cae2('0x1db9')]({'title':_0x30d7bd[_0x10cae2('0x11c5')]?_0x10cae2('0x14f7')+_0x30d7bd[_0x10cae2('0x11c5')]+'\x20-\x20'+_0x30d7bd[_0x10cae2('0x1833')]:_0x10cae2('0x2410'),'msg':_0x30d7bd[_0x10cae2('0x1457')]?JSON['stringify'](_0x30d7bd[_0x10cae2('0x1457')]):_0x30d7bd['toString']()});}):_0x76f6cd[_0x3d8d26('0x25b')]['get']({'fields':'id,name','sort':_0x3d8d26('0x2aa')})[_0x3d8d26('0x1af5')][_0x3d8d26('0x17e7')](function(_0x339696){const _0x19c206=_0x3d8d26;_0x321905[_0x19c206('0x2504')]=_0x339696['rows']||[];})[_0x3d8d26('0x17e7')](function(){const _0x142b19=_0x3d8d26;return _0x76f6cd[_0x142b19('0x383')][_0x142b19('0x1c53')]({'userProfileId':_0x321905['currentUser']['userProfileId'],'sectionId':0x12d})[_0x142b19('0x1af5')];})['then'](function(_0x517ce4){const _0x2fef4d=_0x3d8d26,_0x75fb8c=_0x517ce4&&_0x517ce4[_0x2fef4d('0x2319')]?_0x517ce4[_0x2fef4d('0x2319')][0x0]:null;if(!_0x75fb8c){const _0xa00880=[];let _0x2e5247=null;_0x321905[_0x2fef4d('0x254f')]&&(_0x2e5247=_0x49cbdd()[_0x2fef4d('0xe8e')](_0x321905[_0x2fef4d('0x2504')],{'id':Number(_0x321905[_0x2fef4d('0x254f')]['ListId'])}));for(let _0xbfadcb=0x0;_0xbfadcb<_0x321905['lists'][_0x2fef4d('0x1f73')];_0xbfadcb++){_0x2e5247&&_0x321905[_0x2fef4d('0x2504')][_0xbfadcb]['id']===_0x2e5247['id']&&(_0x321905[_0x2fef4d('0x2504')][_0xbfadcb][_0x2fef4d('0xe5c')]=![],_0xa00880[_0x2fef4d('0x269f')](_0x321905[_0x2fef4d('0x2504')][_0xbfadcb]));}_0x321905['lists']=_0xa00880;}else{if(!_0x75fb8c[_0x2fef4d('0x9e3')])return _0x76f6cd[_0x2fef4d('0x78d')][_0x2fef4d('0x1c53')]({'sectionId':_0x75fb8c['id']})['$promise'][_0x2fef4d('0x17e7')](function(_0x2ff05f){const _0x5c92ea=_0x2fef4d,_0x4ae52c=_0x49cbdd()[_0x5c92ea('0x787')](_0x2ff05f[_0x5c92ea('0x2319')],function(_0x287f61){const _0xb1eae6=_0x5c92ea;return _0x49cbdd()[_0xb1eae6('0xe8e')](_0x321905[_0xb1eae6('0x2504')],{'id':_0x287f61['resourceId']});});let _0x1db75b=null;_0x321905[_0x5c92ea('0x254f')]&&(_0x1db75b=_0x49cbdd()[_0x5c92ea('0xe8e')](_0x321905[_0x5c92ea('0x2504')],{'id':Number(_0x321905[_0x5c92ea('0x254f')]['ListId'])}));if(_0x1db75b&&!_0x49cbdd()[_0x5c92ea('0x26f8')](_0x4ae52c,['id',_0x1db75b['id']])){const _0x271f78=_0x49cbdd()['find'](_0x321905[_0x5c92ea('0x2504')],{'id':_0x1db75b['id']});_0x271f78['canSelect']=![],_0x4ae52c[_0x5c92ea('0x269f')](_0x271f78);}_0x321905[_0x5c92ea('0x2504')]=_0x4ae52c;});}})['catch'](function(_0x35aec7){const _0x3763cb=_0x3d8d26;_0x12b195[_0x3763cb('0x1db9')]({'title':_0x35aec7[_0x3763cb('0x11c5')]?_0x3763cb('0x14f7')+_0x35aec7[_0x3763cb('0x11c5')]+_0x3763cb('0x16e4')+_0x35aec7[_0x3763cb('0x1833')]:'SYSTEM:GETlists','msg':_0x35aec7[_0x3763cb('0x1457')]?JSON[_0x3763cb('0x678')](_0x35aec7[_0x3763cb('0x1457')]):_0x35aec7[_0x3763cb('0x9b6')]()});}),_0x1cc423[_0x3d8d26('0x1ba2')]('admin')?_0x76f6cd['pause'][_0x3d8d26('0x1c53')]({'fields':_0x3d8d26('0x90c'),'sort':_0x3d8d26('0x2aa'),'nolimit':'true'})[_0x3d8d26('0x1af5')]['then'](function(_0x4a641c){const _0x41b803=_0x3d8d26;_0x321905[_0x41b803('0x1492')]=_0x4a641c[_0x41b803('0x2319')]||[];})['catch'](function(_0x3b6319){const _0x6c44ce=_0x3d8d26;_0x12b195[_0x6c44ce('0x1db9')]({'title':_0x3b6319[_0x6c44ce('0x11c5')]?_0x6c44ce('0x14f7')+_0x3b6319['status']+'\x20-\x20'+_0x3b6319['statusText']:_0x6c44ce('0xe43'),'msg':_0x3b6319['data']?JSON[_0x6c44ce('0x678')](_0x3b6319[_0x6c44ce('0x1457')]):_0x3b6319[_0x6c44ce('0x9b6')]()});}):_0x76f6cd[_0x3d8d26('0x267a')][_0x3d8d26('0x1c53')]({'fields':_0x3d8d26('0x90c'),'sort':_0x3d8d26('0x2aa'),'nolimit':_0x3d8d26('0xe34')})[_0x3d8d26('0x1af5')][_0x3d8d26('0x17e7')](function(_0x2b8807){const _0x26d236=_0x3d8d26;_0x321905[_0x26d236('0x1492')]=_0x2b8807[_0x26d236('0x2319')]||[];})[_0x3d8d26('0x17e7')](function(){const _0x121c08=_0x3d8d26;return _0x76f6cd[_0x121c08('0x383')]['get']({'userProfileId':_0x321905['currentUser']['userProfileId'],'sectionId':0x3ed})[_0x121c08('0x1af5')];})[_0x3d8d26('0x17e7')](function(_0x5cd82c){const _0xecb91b=_0x3d8d26,_0x13b700=_0x5cd82c&&_0x5cd82c[_0xecb91b('0x2319')]?_0x5cd82c[_0xecb91b('0x2319')][0x0]:null;if(!_0x13b700)_0x321905[_0xecb91b('0x1492')]=[];else{if(!_0x13b700[_0xecb91b('0x9e3')])return _0x76f6cd[_0xecb91b('0x78d')][_0xecb91b('0x1c53')]({'sectionId':_0x13b700['id']})['$promise'][_0xecb91b('0x17e7')](function(_0x2ea767){const _0xca0054=_0xecb91b,_0x17c1d0=_0x49cbdd()[_0xca0054('0x787')](_0x2ea767[_0xca0054('0x2319')],function(_0x4878dd){const _0x4b8ba4=_0xca0054;return _0x49cbdd()['find'](_0x321905[_0x4b8ba4('0x1492')],{'id':_0x4878dd['resourceId']});});_0x321905[_0xca0054('0x1492')][_0xca0054('0xccd')](function(_0x60a653){const _0x43cc3c=_0xca0054;!_0x49cbdd()[_0x43cc3c('0x26f8')](_0x17c1d0,['id',_0x60a653['id']])&&(_0x60a653['canSelect']=![]),_0x17c1d0['push'](_0x60a653);}),_0x321905[_0xca0054('0x1492')]=_0x17c1d0;});}})[_0x3d8d26('0x16df')](function(_0x32d74a){const _0x5a383a=_0x3d8d26;_0x12b195[_0x5a383a('0x1db9')]({'title':_0x32d74a[_0x5a383a('0x11c5')]?_0x5a383a('0x14f7')+_0x32d74a[_0x5a383a('0x11c5')]+_0x5a383a('0x16e4')+_0x32d74a[_0x5a383a('0x1833')]:_0x5a383a('0x1fae'),'msg':_0x32d74a[_0x5a383a('0x1457')]?JSON[_0x5a383a('0x678')](_0x32d74a[_0x5a383a('0x1457')]):_0x32d74a['toString']()});});function _0x16fdd2(_0x156a77,_0x3741c3){const _0x43dd02=_0x3d8d26;_0x48313d['show']({'controller':_0x43dd02('0x1275'),'controllerAs':'vm','templateUrl':_0x587c63,'parent':angular['element'](_0x2ad683[_0x43dd02('0x13aa')]),'targetEvent':_0x3741c3,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x156a77,'whatsappAccounts':_0x321905[_0x43dd02('0x58b')]?_0x321905['whatsappAccounts']['rows']:[],'crudPermissions':_0x321905[_0x43dd02('0x103e')],'realtime':![]}});}function _0x491a8c(){const _0x5f0d1a=_0x3d8d26;_0x20b9af['go'](_0x5f0d1a('0xf68'),{},{'reload':'app.whatsapp.whatsappAccounts'});}function _0x47582f(){const _0x15691c=_0x3d8d26;_0x76f6cd[_0x15691c('0x254f')]['update']({'id':_0x321905[_0x15691c('0x254f')]['id']},_0x321905['whatsappAccount'])[_0x15691c('0x1af5')][_0x15691c('0x17e7')](function(){const _0x4cc92f=_0x15691c;_0x12b195[_0x4cc92f('0x130d')]({'title':_0x4cc92f('0x11cd'),'msg':_0x321905[_0x4cc92f('0x254f')][_0x4cc92f('0x2aa')]?_0x321905['whatsappAccount'][_0x4cc92f('0x2aa')]+_0x4cc92f('0x12b0'):''});})[_0x15691c('0x16df')](function(_0x32488a){const _0x1178ea=_0x15691c;_0x12b195[_0x1178ea('0x1db9')]({'title':_0x32488a[_0x1178ea('0x11c5')]?_0x1178ea('0x14f7')+_0x32488a[_0x1178ea('0x11c5')]+_0x1178ea('0x16e4')+_0x32488a['statusText']:'SYSTEM:GETwhatsappAccount','msg':_0x32488a[_0x1178ea('0x1457')]?JSON['stringify'](_0x32488a[_0x1178ea('0x1457')]):_0x32488a[_0x1178ea('0x9b6')]()});});}}const _0x18c95a=_0x39c1e9,_0x32f66c=_0x4cf2bc['p']+_0x4376d8('0x499');_0x2d6e2b['$inject']=[_0x4376d8('0x28db'),_0x4376d8('0x668'),'$state','$q',_0x4376d8('0x28da'),'$timeout',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0x108a'),'api',_0x4376d8('0x1885')];function _0x2d6e2b(_0x3d61f6,_0xaeb9a9,_0x3e30f7,_0x89e6db,_0x42af1d,_0x117664,_0x22dee1,_0x1cfed0,_0x4c07f2,_0x333e97,_0x1c1bbe){const _0x5b4746=_0x4376d8,_0x23d22e=this;_0x23d22e[_0x5b4746('0x197c')]=_0x1c1bbe[_0x5b4746('0x2831')](),_0x23d22e['whatsappAccount']={},_0x23d22e[_0x5b4746('0x1e21')]={'count':0x0,'rows':[]},_0x23d22e['selectedWhatsappAccountWhatsappCannedAnswers']=[],_0x23d22e[_0x5b4746('0x103e')],_0x23d22e[_0x5b4746('0x826')]={'fields':_0x5b4746('0xcfb'),'limit':0xa,'page':0x1},_0x23d22e[_0x5b4746('0x161d')]=_0x5bf861,_0x23d22e[_0x5b4746('0x1a20')]=_0xa057f3,_0x23d22e[_0x5b4746('0x130d')]=_0x13db5e,_0x23d22e['getWhatsappAccountWhatsappCannedAnswers']=_0x3f0bc3,_0x23d22e[_0x5b4746('0x1fc')]=_0x56a23c,_0x23d22e['exportSelectedWhatsappAccountWhatsappCannedAnswers']=_0x2348e7,_0x23d22e['deleteWhatsappAccountWhatsappCannedAnswer']=_0x1f59ee,_0x23d22e[_0x5b4746('0x25b6')]=_0x907d84;function _0x5bf861(_0x419b10,_0x19bcc9){const _0x3cbffe=_0x5b4746;_0x23d22e['whatsappAccount']=_0x419b10,_0x23d22e[_0x3cbffe('0x103e')]=typeof _0x19bcc9!=='undefined'?_0x19bcc9:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x23d22e[_0x3cbffe('0x826')][_0x3cbffe('0x10d7')]=_0x23d22e[_0x3cbffe('0x254f')]['id'],_0x23d22e[_0x3cbffe('0x826')]['id']=_0x23d22e[_0x3cbffe('0x254f')]['id'],_0x3f0bc3();}function _0xa057f3(_0xab0632,_0x51d612){const _0x3c9a7d=_0x5b4746,_0x1b30d5=_0x22dee1[_0x3c9a7d('0x1121')]()[_0x3c9a7d('0x24d3')](_0x3c9a7d('0x2b6'))[_0x3c9a7d('0x211f')](''+(_0xab0632[_0x3c9a7d('0x2aa')]||_0xab0632['id']&&_0x49cbdd()[_0x3c9a7d('0x233c')](_0x3c9a7d('0x7a7'))+_0xab0632['id']||_0x3c9a7d('0x24bd'))+''+_0x3c9a7d('0xe9f'))[_0x3c9a7d('0x2095')](_0x3c9a7d('0x2489'))[_0x3c9a7d('0x104f')](_0x51d612)['ok']('OK')[_0x3c9a7d('0x1d47')]('CANCEL');_0x22dee1['show'](_0x1b30d5)[_0x3c9a7d('0x17e7')](function(){_0x1f59ee(_0xab0632);},function(){const _0x52e8ff=_0x3c9a7d;console[_0x52e8ff('0x1d63')](_0x52e8ff('0x28a0'));});}function _0x13db5e(_0x51d323){_0x23d22e['whatsappAccountWhatsappCannedAnswers']=_0x51d323||{'count':0x0,'rows':[]};}function _0x3f0bc3(){const _0x572127=_0x5b4746;_0x23d22e['query']['offset']=(_0x23d22e[_0x572127('0x826')][_0x572127('0x115a')]-0x1)*_0x23d22e[_0x572127('0x826')]['limit'],_0x23d22e[_0x572127('0x1691')]=_0x333e97['whatsappAccount'][_0x572127('0x1805')](_0x23d22e[_0x572127('0x826')],_0x13db5e)[_0x572127('0x1af5')];}function _0x56a23c(_0x502b03,_0x2120ff){const _0x4e28ac=_0x5b4746;_0x22dee1[_0x4e28ac('0x28e2')]({'controller':'CreateOrEditWhatsappCannedAnswerDialogController','controllerAs':'vm','templateUrl':_0x32f66c,'parent':angular['element'](_0x1cfed0['body']),'targetEvent':_0x502b03,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x23d22e['whatsappAccount'],'whatsappCannedAnswer':_0x2120ff,'whatsappCannedAnswers':_0x23d22e[_0x4e28ac('0x1e21')][_0x4e28ac('0x2319')],'license':null,'setting':null,'crudPermissions':_0x23d22e[_0x4e28ac('0x103e')]}});}function _0x1f59ee(_0x3cb76c){const _0x5dbb2f=_0x5b4746;_0x333e97[_0x5dbb2f('0x2043')][_0x5dbb2f('0x1da6')]({'id':_0x3cb76c['id']})[_0x5dbb2f('0x1af5')][_0x5dbb2f('0x17e7')](function(){const _0x42c04f=_0x5dbb2f;_0x49cbdd()['remove'](_0x23d22e['whatsappAccountWhatsappCannedAnswers'][_0x42c04f('0x2319')],{'id':_0x3cb76c['id']}),_0x23d22e[_0x42c04f('0x1e21')][_0x42c04f('0x335')]-=0x1,!_0x23d22e[_0x42c04f('0x1e21')][_0x42c04f('0x2319')]['length']&&_0x3f0bc3(),_0x4c07f2[_0x42c04f('0x130d')]({'title':'WhatsappCannedAnswer\x20deleted!','msg':_0x3cb76c[_0x42c04f('0x2aa')]?_0x3cb76c[_0x42c04f('0x2aa')]+_0x42c04f('0x149f'):''});})[_0x5dbb2f('0x16df')](function(_0x4744df){const _0x5ba0da=_0x5dbb2f;if(_0x4744df['data']&&_0x4744df[_0x5ba0da('0x1457')][_0x5ba0da('0x73e')]&&_0x4744df[_0x5ba0da('0x1457')][_0x5ba0da('0x73e')][_0x5ba0da('0x1f73')]){_0x23d22e['errors']=_0x4744df['data'][_0x5ba0da('0x73e')]||[{'message':_0x4744df[_0x5ba0da('0x9b6')](),'type':_0x5ba0da('0x18e3')}];for(let _0x82481d=0x0;_0x82481d<_0x4744df[_0x5ba0da('0x1457')]['errors'][_0x5ba0da('0x1f73')];_0x82481d++){_0x4c07f2[_0x5ba0da('0x1db9')]({'title':_0x4744df['data']['errors'][_0x82481d][_0x5ba0da('0x412')],'msg':_0x4744df[_0x5ba0da('0x1457')][_0x5ba0da('0x73e')][_0x82481d][_0x5ba0da('0x1603')]});}}else _0x4c07f2['error']({'title':_0x4744df['status']?_0x5ba0da('0x14f7')+_0x4744df['status']+_0x5ba0da('0x16e4')+_0x4744df[_0x5ba0da('0x1833')]:_0x5ba0da('0x18e3'),'msg':_0x4744df[_0x5ba0da('0x1457')]?JSON[_0x5ba0da('0x678')](_0x4744df[_0x5ba0da('0x1457')]['message']):_0x4744df[_0x5ba0da('0x1603')]||_0x4744df['toString']()});});}function _0x2348e7(){const _0x3fe9ac=_0x5b4746,_0x3c88d8=angular[_0x3fe9ac('0x14e5')](_0x23d22e[_0x3fe9ac('0x28')]);return _0x23d22e[_0x3fe9ac('0x28')]=[],_0x3c88d8;}function _0x907d84(_0x295314){const _0x122788=_0x5b4746,_0x193555=_0x22dee1[_0x122788('0x1121')]()[_0x122788('0x24d3')](_0x122788('0xa82'))[_0x122788('0x211f')](_0x122788('0xa53')+_0x23d22e[_0x122788('0x28')][_0x122788('0x1f73')]+_0x122788('0x145a')+'\x20will\x20be\x20deleted.')['ariaLabel'](_0x122788('0x225f'))[_0x122788('0x104f')](_0x295314)['ok']('OK')['cancel'](_0x122788('0x28a0'));_0x22dee1[_0x122788('0x28e2')](_0x193555)[_0x122788('0x17e7')](function(){const _0x52fc22=_0x122788;_0x23d22e[_0x52fc22('0x28')][_0x52fc22('0xccd')](function(_0x1a41ae){_0x1f59ee(_0x1a41ae);}),_0x23d22e[_0x52fc22('0x28')]=[];});}let _0x4b07b5=!![],_0x477a1d=0x1;_0xaeb9a9[_0x5b4746('0x620')](_0x5b4746('0x4c3'),function(_0x40ae7d,_0x180fd7){const _0x2bb7f2=_0x5b4746;_0x4b07b5?_0x117664(function(){_0x4b07b5=![];}):(!_0x180fd7&&(_0x477a1d=_0x23d22e['query'][_0x2bb7f2('0x115a')]),_0x40ae7d!==_0x180fd7&&(_0x23d22e[_0x2bb7f2('0x826')][_0x2bb7f2('0x115a')]=0x1),!_0x40ae7d&&(_0x23d22e[_0x2bb7f2('0x826')][_0x2bb7f2('0x115a')]=_0x477a1d),_0x3f0bc3());});}const _0xb31dfa=_0x2d6e2b;_0x248bda[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$state',_0x4376d8('0x1391'),_0x4376d8('0x14f6'),'$q',_0x4376d8('0x28da'),_0x4376d8('0x108a'),_0x4376d8('0xb25'),'whatsappCannedAnswer',_0x4376d8('0x212e'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),_0x4376d8('0x1aeb'),'crudPermissions'];function _0x248bda(_0x20cf5f,_0x3c5ea4,_0x9f406f,_0x3c0195,_0x4aada9,_0x464857,_0x53c44b,_0x44f475,_0x586a61,_0x48274f,_0x538864,_0x1ca7ea,_0x24ee68,_0x64fad3){const _0x216e3b=_0x4376d8,_0x4007b9=this;_0x4007b9[_0x216e3b('0x197c')]=_0x538864[_0x216e3b('0x2831')](),_0x4007b9['errors']=[],_0x4007b9[_0x216e3b('0x1aeb')]=_0x24ee68,_0x4007b9['license']=_0x1ca7ea,_0x4007b9['crudPermissions']=_0x64fad3,_0x4007b9[_0x216e3b('0x6ee')]={},_0x4007b9[_0x216e3b('0x1572')]=_0x4007b9[_0x216e3b('0x1aeb')]&&_0x4007b9['setting'][_0x216e3b('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x4007b9['title']='WHATSAPP.EDIT_WHATSAPPCANNEDANSWER',_0x4007b9['whatsappCannedAnswer']=angular[_0x216e3b('0x14e5')](_0x586a61),_0x4007b9[_0x216e3b('0xb25')]=_0x44f475,_0x4007b9[_0x216e3b('0xf92')]=![];!_0x4007b9[_0x216e3b('0x24bd')]&&(_0x4007b9[_0x216e3b('0x24bd')]={},_0x4007b9[_0x216e3b('0x24d3')]=_0x216e3b('0x8bb'),_0x4007b9[_0x216e3b('0xf92')]=!![]);_0x3c5ea4[_0x216e3b('0x16fb')]['id']&&(_0x4007b9[_0x216e3b('0x24bd')][_0x216e3b('0x10d7')]=_0x3c5ea4[_0x216e3b('0x16fb')]['id']);_0x4007b9[_0x216e3b('0xb09')]=_0x5ca666,_0x4007b9[_0x216e3b('0x6a8')]=_0x16468f,_0x4007b9['deleteWhatsappCannedAnswer']=_0xcb25ce,_0x4007b9[_0x216e3b('0x1300')]=_0x43868c,_0x4007b9[_0x216e3b('0x136e')]=_0x57b193;function _0x5ca666(){const _0x2099dc=_0x216e3b;_0x4007b9[_0x2099dc('0x73e')]=[],_0x48274f[_0x2099dc('0x2043')][_0x2099dc('0x2439')](_0x4007b9[_0x2099dc('0x24bd')])[_0x2099dc('0x1af5')][_0x2099dc('0x17e7')](function(_0xcde1a1){const _0xe2ac0a=_0x2099dc;_0x4007b9[_0xe2ac0a('0xb25')]['unshift'](_0xcde1a1[_0xe2ac0a('0x16b2')]()),_0x53c44b[_0xe2ac0a('0x130d')]({'title':_0xe2ac0a('0xe15'),'msg':_0x4007b9[_0xe2ac0a('0x24bd')][_0xe2ac0a('0x2aa')]?_0x4007b9[_0xe2ac0a('0x24bd')][_0xe2ac0a('0x2aa')]+'\x20has\x20been\x20created!':''}),_0x57b193(_0xcde1a1);})['catch'](function(_0x397288){const _0x64568f=_0x2099dc;if(_0x397288['data']&&_0x397288[_0x64568f('0x1457')]['errors']&&_0x397288['data'][_0x64568f('0x73e')]['length']){_0x4007b9[_0x64568f('0x73e')]=_0x397288[_0x64568f('0x1457')][_0x64568f('0x73e')]||[{'message':_0x397288[_0x64568f('0x9b6')](),'type':_0x64568f('0x258e')}];for(let _0x2e19f2=0x0;_0x2e19f2<_0x397288['data']['errors']['length'];_0x2e19f2+=0x1){_0x53c44b[_0x64568f('0x1db9')]({'title':_0x397288[_0x64568f('0x1457')]['errors'][_0x2e19f2][_0x64568f('0x412')],'msg':_0x397288[_0x64568f('0x1457')]['errors'][_0x2e19f2][_0x64568f('0x1603')]});}}else _0x53c44b[_0x64568f('0x1db9')]({'title':_0x397288[_0x64568f('0x11c5')]?'API:'+_0x397288[_0x64568f('0x11c5')]+_0x64568f('0x16e4')+_0x397288[_0x64568f('0x1833')]:'api.cannedAnswer.save','msg':_0x397288[_0x64568f('0x1457')]?JSON[_0x64568f('0x678')](_0x397288[_0x64568f('0x1457')][_0x64568f('0x1603')]):_0x397288[_0x64568f('0x9b6')]()});});}function _0x16468f(){const _0xe6ac0a=_0x216e3b;_0x4007b9['errors']=[],_0x48274f[_0xe6ac0a('0x2043')][_0xe6ac0a('0x27ba')]({'id':_0x4007b9[_0xe6ac0a('0x24bd')]['id']},_0x4007b9[_0xe6ac0a('0x24bd')])[_0xe6ac0a('0x1af5')][_0xe6ac0a('0x17e7')](function(_0x58ca92){const _0x3f4f3d=_0xe6ac0a,_0x450611=_0x49cbdd()[_0x3f4f3d('0xe8e')](_0x4007b9['whatsappCannedAnswers'],{'id':_0x58ca92['id']});_0x450611&&_0x49cbdd()['merge'](_0x450611,_0x49cbdd()[_0x3f4f3d('0x230a')](_0x58ca92[_0x3f4f3d('0x16b2')](),_0x49cbdd()[_0x3f4f3d('0x1c0f')](_0x450611))),_0x53c44b[_0x3f4f3d('0x130d')]({'title':_0x3f4f3d('0x1088'),'msg':_0x4007b9['whatsappCannedAnswer'][_0x3f4f3d('0x2aa')]?_0x4007b9[_0x3f4f3d('0x24bd')][_0x3f4f3d('0x2aa')]+_0x3f4f3d('0x15ca'):''}),_0x57b193(_0x58ca92);})['catch'](function(_0x518622){const _0x31f8e9=_0xe6ac0a;if(_0x518622['data']&&_0x518622['data'][_0x31f8e9('0x73e')]&&_0x518622['data'][_0x31f8e9('0x73e')][_0x31f8e9('0x1f73')]){_0x4007b9[_0x31f8e9('0x73e')]=_0x518622['data'][_0x31f8e9('0x73e')]||[{'message':_0x518622[_0x31f8e9('0x9b6')](),'type':_0x31f8e9('0x1d77')}];for(let _0x32984a=0x0;_0x32984a<_0x518622[_0x31f8e9('0x1457')][_0x31f8e9('0x73e')][_0x31f8e9('0x1f73')];_0x32984a++){_0x53c44b[_0x31f8e9('0x1db9')]({'title':_0x518622[_0x31f8e9('0x1457')][_0x31f8e9('0x73e')][_0x32984a][_0x31f8e9('0x412')],'msg':_0x518622[_0x31f8e9('0x1457')][_0x31f8e9('0x73e')][_0x32984a]['message']});}}else _0x53c44b[_0x31f8e9('0x1db9')]({'title':_0x518622['status']?'API:'+_0x518622['status']+_0x31f8e9('0x16e4')+_0x518622[_0x31f8e9('0x1833')]:'api.cannedAnswer.update','msg':_0x518622[_0x31f8e9('0x1457')]?JSON[_0x31f8e9('0x678')](_0x518622[_0x31f8e9('0x1457')][_0x31f8e9('0x1603')]):_0x518622[_0x31f8e9('0x9b6')]()});});}function _0xcb25ce(_0x1466b8){const _0x522d48=_0x216e3b;_0x4007b9[_0x522d48('0x73e')]=[];const _0x4c5288=_0x3c0195[_0x522d48('0x1121')]()[_0x522d48('0x24d3')](_0x522d48('0x530'))[_0x522d48('0xd5')]('The\x20whatsappCannedAnswer\x20will\x20be\x20deleted.')[_0x522d48('0x2095')](_0x522d48('0x1bed'))['ok']('Delete')['cancel'](_0x522d48('0x1b70'))[_0x522d48('0x104f')](_0x1466b8);_0x3c0195[_0x522d48('0x28e2')](_0x4c5288)[_0x522d48('0x17e7')](function(){const _0x45bc5f=_0x522d48;_0x48274f['cannedAnswer']['delete']({'id':_0x4007b9[_0x45bc5f('0x24bd')]['id']})[_0x45bc5f('0x1af5')][_0x45bc5f('0x17e7')](function(){const _0x37937d=_0x45bc5f;_0x49cbdd()[_0x37937d('0x5f3')](_0x4007b9['whatsappCannedAnswers'],{'id':_0x4007b9[_0x37937d('0x24bd')]['id']}),_0x53c44b[_0x37937d('0x130d')]({'title':'WhatsappCannedAnswer\x20properly\x20deleted!','msg':(_0x4007b9[_0x37937d('0x24bd')][_0x37937d('0x2aa')]||_0x37937d('0x24bd'))+_0x37937d('0x149f')}),_0x57b193(_0x4007b9[_0x37937d('0x24bd')]);})[_0x45bc5f('0x16df')](function(_0x36b4a2){const _0x345fb8=_0x45bc5f;if(_0x36b4a2[_0x345fb8('0x1457')]&&_0x36b4a2[_0x345fb8('0x1457')]['errors']&&_0x36b4a2['data'][_0x345fb8('0x73e')]['length']){_0x4007b9[_0x345fb8('0x73e')]=_0x36b4a2['data'][_0x345fb8('0x73e')]||[{'message':_0x36b4a2[_0x345fb8('0x9b6')](),'type':_0x345fb8('0x26a7')}];for(let _0x2dcf49=0x0;_0x2dcf49<_0x36b4a2['data'][_0x345fb8('0x73e')][_0x345fb8('0x1f73')];_0x2dcf49++){_0x53c44b[_0x345fb8('0x1db9')]({'title':_0x36b4a2['data'][_0x345fb8('0x73e')][_0x2dcf49]['type'],'msg':_0x36b4a2[_0x345fb8('0x1457')]['errors'][_0x2dcf49][_0x345fb8('0x1603')]});}}else _0x53c44b[_0x345fb8('0x1db9')]({'title':_0x36b4a2[_0x345fb8('0x11c5')]?_0x345fb8('0x14f7')+_0x36b4a2[_0x345fb8('0x11c5')]+_0x345fb8('0x16e4')+_0x36b4a2['statusText']:_0x345fb8('0x26a7'),'msg':_0x36b4a2['data']?JSON[_0x345fb8('0x678')](_0x36b4a2[_0x345fb8('0x1457')]['message']):_0x36b4a2[_0x345fb8('0x1603')]||_0x36b4a2[_0x345fb8('0x9b6')]()});});},function(){});}function _0x43868c(_0x414e50){return _0x414e50===null?undefined:new Date(_0x414e50);}function _0x57b193(_0xedff27){const _0x16e3f0=_0x216e3b;_0x3c0195[_0x16e3f0('0x212a')](_0xedff27);}}const _0x472d19=_0x248bda;_0x12fe2f[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),'$window',_0x4376d8('0xc4c'),_0x4376d8('0xf69'),'$mdDialog',_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x212e'),_0x4376d8('0x108a'),'Auth'];function _0x12fe2f(_0x54eeef,_0x271f28,_0x243a57,_0x73378b,_0x38b1bb,_0x1f2764,_0x4feb10,_0x55240a,_0x4d1ce9,_0x576715,_0x22ad44){const _0x57a7bd=_0x4376d8,_0x188316=this;_0x188316[_0x57a7bd('0x197c')]=_0x22ad44[_0x57a7bd('0x2831')](),_0x188316[_0x57a7bd('0x23fe')]={'count':0x0,'rows':[]},_0x188316[_0x57a7bd('0x440')]=[],_0x188316[_0x57a7bd('0x103e')],_0x188316[_0x57a7bd('0x1e26')]={'first':'1st','second':_0x57a7bd('0xf67'),'third':'3rd'},_0x188316[_0x57a7bd('0x826')]={'fields':_0x57a7bd('0x2b9'),'sort':_0x57a7bd('0x1ac6'),'limit':0xa,'page':0x1},_0x188316['init']=_0x5dd09c,_0x188316[_0x57a7bd('0x1a20')]=_0x253aa0,_0x188316[_0x57a7bd('0x130d')]=_0x548ed8,_0x188316['getDispositions']=_0x5b3994,_0x188316[_0x57a7bd('0x1eff')]=_0x4c49fd,_0x188316[_0x57a7bd('0x2802')]=_0x1a64b9,_0x188316[_0x57a7bd('0xa8e')]=_0x4cdd2d,_0x188316[_0x57a7bd('0xc81')]=_0x28037e,_0x188316['deselectDispositions']=_0x3702a6,_0x188316['selectAllDispositions']=_0x35305e;function _0x5dd09c(_0x54356d,_0x3fbf4f){const _0x1774c5=_0x57a7bd;_0x188316[_0x1774c5('0x254f')]=_0x54356d||{},_0x188316['crudPermissions']=typeof _0x3fbf4f!=='undefined'?_0x3fbf4f:{'readOnly':!![],'canEdit':![],'canDelete':![]},_0x188316[_0x1774c5('0x826')][_0x1774c5('0x10d7')]=_0x188316[_0x1774c5('0x254f')]['id'],_0x188316[_0x1774c5('0x826')]['id']=_0x188316[_0x1774c5('0x254f')]['id'],_0x5b3994();}function _0x4c49fd(_0x40903a,_0x1b8d80){const _0x50da6e=_0x57a7bd;_0x38b1bb['show']({'controller':_0x50da6e('0x8e0'),'controllerAs':'vm','templateUrl':_0x27dcbe,'parent':angular['element'](_0x1f2764['body']),'targetEvent':_0x40903a,'clickOutsideToClose':!![],'locals':{'disposition':_0x1b8d80,'dispositions':_0x188316[_0x50da6e('0x23fe')][_0x50da6e('0x2319')],'model':{'id':_0x188316['whatsappAccount']['id'],'field':_0x50da6e('0x10d7')},'license':null,'setting':null,'crudPermissions':_0x188316['crudPermissions']}})[_0x50da6e('0x17e7')](function(_0x369049){if(_0x369049)_0x5b3994();});}function _0x253aa0(_0x4d93a6,_0xc46f7b){const _0x4b67fc=_0x57a7bd,_0x919afa=_0x49cbdd()['some'](_0x188316[_0x4b67fc('0x23fe')][_0x4b67fc('0x2319')],['ParentId',_0x4d93a6['id']]),_0x4a662f=_0x38b1bb[_0x4b67fc('0x1121')]()[_0x4b67fc('0x24d3')](_0x55240a[_0x4b67fc('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITION_DELETE_TITLE'))[_0x4b67fc('0xd5')](_0x55240a['instant'](_0x4b67fc('0x2ab')+(_0x919afa?_0x4b67fc('0xa0a'):_0x4b67fc('0xd6c')),{'name':_0x4d93a6['name']}))[_0x4b67fc('0x2095')](_0x4b67fc('0x1596'))[_0x4b67fc('0x104f')](_0xc46f7b)['ok']('OK')[_0x4b67fc('0x1d47')](_0x55240a[_0x4b67fc('0x1acc')](_0x4b67fc('0x34f')));_0x38b1bb[_0x4b67fc('0x28e2')](_0x4a662f)[_0x4b67fc('0x17e7')](function(){_0x1a64b9(_0x4d93a6);});}function _0x548ed8(_0xf18827){const _0x1f076b=_0x57a7bd;_0x188316[_0x1f076b('0x23fe')]=_0xf18827||{'count':0x0,'rows':[]};}function _0x5b3994(){const _0x1c0750=_0x57a7bd;_0x188316['query'][_0x1c0750('0xf19')]=(_0x188316[_0x1c0750('0x826')][_0x1c0750('0x115a')]-0x1)*_0x188316['query']['limit'],_0x188316[_0x1c0750('0x1691')]=_0x4d1ce9[_0x1c0750('0x254f')][_0x1c0750('0x26c2')](_0x188316[_0x1c0750('0x826')],_0x548ed8)[_0x1c0750('0x1af5')];}function _0x1a64b9(_0x93991a){const _0x1063da=_0x57a7bd;_0x4d1ce9[_0x1063da('0x1f27')]['delete']({'id':_0x93991a['id']})[_0x1063da('0x1af5')]['then'](function(){const _0x227aff=_0x1063da;_0x5b3994(),_0x576715[_0x227aff('0x130d')]({'title':_0x55240a[_0x227aff('0x1acc')](_0x227aff('0x10dc'))});})[_0x1063da('0x16df')](function(_0x482079){const _0x28fa5d=_0x1063da;if(_0x482079[_0x28fa5d('0x1457')]&&_0x482079[_0x28fa5d('0x1457')][_0x28fa5d('0x73e')]&&_0x482079['data'][_0x28fa5d('0x73e')][_0x28fa5d('0x1f73')]){_0x188316['errors']=_0x482079[_0x28fa5d('0x1457')][_0x28fa5d('0x73e')]||[{'message':_0x482079[_0x28fa5d('0x9b6')](),'type':_0x28fa5d('0x104a')}];for(let _0x48d1b9=0x0;_0x48d1b9<_0x482079[_0x28fa5d('0x1457')][_0x28fa5d('0x73e')]['length'];_0x48d1b9++){_0x576715[_0x28fa5d('0x1db9')]({'title':_0x482079['data'][_0x28fa5d('0x73e')][_0x48d1b9][_0x28fa5d('0x412')],'msg':_0x482079[_0x28fa5d('0x1457')][_0x28fa5d('0x73e')][_0x48d1b9][_0x28fa5d('0x1603')]});}}else _0x576715[_0x28fa5d('0x1db9')]({'title':_0x482079[_0x28fa5d('0x11c5')]?'API:'+_0x482079[_0x28fa5d('0x11c5')]+'\x20-\x20'+_0x482079[_0x28fa5d('0x1833')]:_0x28fa5d('0x104a'),'msg':_0x482079[_0x28fa5d('0x1457')]?JSON[_0x28fa5d('0x678')](_0x482079[_0x28fa5d('0x1457')][_0x28fa5d('0x1603')]):_0x482079[_0x28fa5d('0x1603')]||_0x482079['toString']()});});}function _0x4cdd2d(){const _0x8b7b9=_0x57a7bd,_0x24e4e5=angular[_0x8b7b9('0x14e5')](_0x188316[_0x8b7b9('0x440')]);return _0x188316[_0x8b7b9('0x440')]=[],_0x24e4e5;}function _0x28037e(_0x47b7fd){const _0x404911=_0x57a7bd,_0x5e3c90=_0x38b1bb[_0x404911('0x1121')]()[_0x404911('0x24d3')](_0x55240a[_0x404911('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_TITLE'))[_0x404911('0xd5')](_0x55240a[_0x404911('0x1acc')]('TOOLS.NOTIFICATIONS.DISPOSITIONS_DELETE_MESSAGE',{'total':_0x188316['selectedDispositions']['length']}))[_0x404911('0x2095')](_0x404911('0x844'))[_0x404911('0x104f')](_0x47b7fd)['ok']('OK')['cancel'](_0x55240a[_0x404911('0x1acc')]('TOOLS.CANCEL'));_0x38b1bb['show'](_0x5e3c90)[_0x404911('0x17e7')](function(){const _0xc45785=_0x404911;_0x188316[_0xc45785('0x440')][_0xc45785('0xccd')](function(_0x1a2fc8){_0x1a64b9(_0x1a2fc8);}),_0x188316[_0xc45785('0x440')]=[];});}function _0x3702a6(){const _0x619315=_0x57a7bd;_0x188316[_0x619315('0x440')]=[];}function _0x35305e(){const _0x328ffb=_0x57a7bd;_0x188316[_0x328ffb('0x440')]=_0x188316[_0x328ffb('0x23fe')]['rows'];}let _0x5d6818=!![],_0x452174=0x1;_0x54eeef[_0x57a7bd('0x620')]('vm_dc.query.filter',function(_0x5e38f8,_0x26aff4){const _0x86c47d=_0x57a7bd;_0x5d6818?_0x4feb10(function(){_0x5d6818=![];}):(!_0x26aff4&&(_0x452174=_0x188316['query']['page']),_0x5e38f8!==_0x26aff4&&(_0x188316[_0x86c47d('0x826')][_0x86c47d('0x115a')]=0x1),!_0x5e38f8&&(_0x188316[_0x86c47d('0x826')][_0x86c47d('0x115a')]=_0x452174),_0x5b3994());});}const _0xe79c5a=_0x12fe2f,_0x5a5310=_0x4cf2bc['p']+_0x4376d8('0x241b');_0x1d3c36[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),'$mdSidenav',_0x4376d8('0x14f6'),'$document','$timeout',_0x4376d8('0x28da'),'whatsappAccounts',_0x4376d8('0xdeb'),_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),'license',_0x4376d8('0x1aeb')];function _0x1d3c36(_0x2782f1,_0x4cb063,_0x184943,_0x295a5c,_0x3a6ce6,_0x5d867b,_0x201df9,_0x5c2edb,_0x23aba7,_0x14b70a,_0x454f01,_0x1413c3,_0x2e221b,_0x441fb2,_0x323ffa,_0x190d32,_0x131a44){const _0x2e4a09=_0x4376d8,_0x15fd0d=this;_0x15fd0d[_0x2e4a09('0x1d11')]=_0x190d32,_0x15fd0d['setting']=_0x131a44,_0x15fd0d[_0x2e4a09('0x197c')]=_0x323ffa['getCurrentUser'](),_0x15fd0d[_0x2e4a09('0x58b')]=_0x23aba7||{'count':0x0,'rows':[]},_0x15fd0d[_0x2e4a09('0xdeb')]=_0x14b70a,_0x15fd0d[_0x2e4a09('0x383')]=_0x454f01&&_0x454f01['count']==0x1?_0x454f01[_0x2e4a09('0x2319')][0x0]:null,_0x15fd0d[_0x2e4a09('0x103e')]=_0x323ffa[_0x2e4a09('0x17a9')](_0x15fd0d[_0x2e4a09('0x383')]?_0x15fd0d[_0x2e4a09('0x383')][_0x2e4a09('0x103e')]:null),_0x15fd0d[_0x2e4a09('0x23c3')]=_0x2e4a09('0x58b'),_0x15fd0d[_0x2e4a09('0x26a1')]='',_0x15fd0d[_0x2e4a09('0x24e1')]=null,_0x15fd0d[_0x2e4a09('0x2201')]=[],_0x15fd0d[_0x2e4a09('0x826')]={'fields':_0x2e4a09('0x218a'),'sort':'-updatedAt','limit':0xa,'page':0x1},_0x15fd0d[_0x2e4a09('0xc41')]=_0x49cbdd()['keyBy']([{'option':'Twilio','value':'\x27twilio\x27'}],function(_0x267fbe){const _0x2eafca=_0x2e4a09;return _0x49cbdd()[_0x2eafca('0x737')](_0x267fbe[_0x2eafca('0x175b')],new RegExp('\x27','g'),'');}),_0x15fd0d['editstate']=_0x2f4b53,_0x15fd0d[_0x2e4a09('0x1634')]=_0x2f619d,_0x15fd0d[_0x2e4a09('0x2359')]=_0x4f5d70,_0x15fd0d[_0x2e4a09('0xbf4')]=_0x42ac8b,_0x15fd0d[_0x2e4a09('0x130d')]=_0x5e6f20,_0x15fd0d[_0x2e4a09('0x79c')]=_0x26bf45,_0x15fd0d[_0x2e4a09('0x7fa')]=_0x3ce629,_0x15fd0d[_0x2e4a09('0x2641')]=_0x13fa9d,_0x15fd0d[_0x2e4a09('0xd82')]=_0x9c145d,_0x15fd0d['deleteSelectedWhatsappAccounts']=_0x1cf500,_0x15fd0d[_0x2e4a09('0x1bae')]=_0x117a74,_0x15fd0d[_0x2e4a09('0xefd')]=_0x14e6e9,_0x323ffa[_0x2e4a09('0x1ba2')]('admin')?_0x1413c3[_0x2e4a09('0x25b')][_0x2e4a09('0x1c53')]({'fields':_0x2e4a09('0x12d2'),'sort':_0x2e4a09('0x2aa')})[_0x2e4a09('0x1af5')]['then'](function(_0x49ce50){const _0xeb2d58=_0x2e4a09;_0x15fd0d[_0xeb2d58('0x2504')]=_0x49ce50[_0xeb2d58('0x2319')]||[];})[_0x2e4a09('0x16df')](function(_0x237301){const _0x2b66dc=_0x2e4a09;_0x441fb2['error']({'title':_0x237301[_0x2b66dc('0x11c5')]?_0x2b66dc('0x14f7')+_0x237301[_0x2b66dc('0x11c5')]+_0x2b66dc('0x16e4')+_0x237301['statusText']:_0x2b66dc('0x2410'),'msg':_0x237301[_0x2b66dc('0x1457')]?JSON[_0x2b66dc('0x678')](_0x237301['data']):_0x237301['toString']()});}):_0x1413c3[_0x2e4a09('0x25b')][_0x2e4a09('0x1c53')]({'fields':_0x2e4a09('0x12d2'),'sort':_0x2e4a09('0x2aa')})[_0x2e4a09('0x1af5')][_0x2e4a09('0x17e7')](function(_0x36d510){const _0x4cbb92=_0x2e4a09;_0x15fd0d[_0x4cbb92('0x2504')]=_0x36d510['rows']||[];})[_0x2e4a09('0x17e7')](function(){const _0x437415=_0x2e4a09;return _0x1413c3[_0x437415('0x383')]['get']({'userProfileId':_0x15fd0d[_0x437415('0x197c')]['userProfileId'],'sectionId':0x12d})[_0x437415('0x1af5')];})[_0x2e4a09('0x17e7')](function(_0x54036e){const _0xd5aa32=_0x2e4a09,_0x3167c4=_0x54036e&&_0x54036e[_0xd5aa32('0x2319')]?_0x54036e[_0xd5aa32('0x2319')][0x0]:null;if(!_0x3167c4){const _0x11c021=[];let _0x3ac43e=null;_0x15fd0d[_0xd5aa32('0x254f')]&&(_0x3ac43e=_0x49cbdd()[_0xd5aa32('0xe8e')](_0x15fd0d[_0xd5aa32('0x2504')],{'id':Number(_0x15fd0d[_0xd5aa32('0x254f')]['ListId'])}));for(let _0x12a8d9=0x0;_0x12a8d9<_0x15fd0d[_0xd5aa32('0x2504')][_0xd5aa32('0x1f73')];_0x12a8d9++){_0x3ac43e&&_0x15fd0d[_0xd5aa32('0x2504')][_0x12a8d9]['id']===_0x3ac43e['id']&&(_0x15fd0d[_0xd5aa32('0x2504')][_0x12a8d9][_0xd5aa32('0xe5c')]=![],_0x11c021['push'](_0x15fd0d[_0xd5aa32('0x2504')][_0x12a8d9]));}_0x15fd0d[_0xd5aa32('0x2504')]=_0x11c021;}else{if(!_0x3167c4[_0xd5aa32('0x9e3')])return _0x1413c3[_0xd5aa32('0x78d')]['get']({'sectionId':_0x3167c4['id']})[_0xd5aa32('0x1af5')][_0xd5aa32('0x17e7')](function(_0x468b58){const _0x247b78=_0xd5aa32,_0x1cea45=_0x49cbdd()[_0x247b78('0x787')](_0x468b58['rows'],function(_0x4b5009){const _0x167a45=_0x247b78;return _0x49cbdd()[_0x167a45('0xe8e')](_0x15fd0d[_0x167a45('0x2504')],{'id':_0x4b5009[_0x167a45('0x5db')]});});let _0x4c395c=null;_0x15fd0d['whatsappAccount']&&(_0x4c395c=_0x49cbdd()[_0x247b78('0xe8e')](_0x15fd0d['lists'],{'id':Number(_0x15fd0d[_0x247b78('0x254f')][_0x247b78('0x7f8')])}));if(_0x4c395c&&!_0x49cbdd()[_0x247b78('0x26f8')](_0x1cea45,['id',_0x4c395c['id']])){const _0x57d3e9=_0x49cbdd()[_0x247b78('0xe8e')](_0x15fd0d[_0x247b78('0x2504')],{'id':_0x4c395c['id']});_0x57d3e9[_0x247b78('0xe5c')]=![],_0x1cea45[_0x247b78('0x269f')](_0x57d3e9);}_0x15fd0d[_0x247b78('0x2504')]=_0x1cea45;});}})[_0x2e4a09('0x16df')](function(_0x136524){const _0x58462d=_0x2e4a09;_0x441fb2[_0x58462d('0x1db9')]({'title':_0x136524['status']?_0x58462d('0x14f7')+_0x136524[_0x58462d('0x11c5')]+_0x58462d('0x16e4')+_0x136524[_0x58462d('0x1833')]:_0x58462d('0x1630'),'msg':_0x136524[_0x58462d('0x1457')]?JSON[_0x58462d('0x678')](_0x136524[_0x58462d('0x1457')]):_0x136524['toString']()});}),_0x323ffa[_0x2e4a09('0x1ba2')](_0x2e4a09('0x20bf'))?_0x1413c3[_0x2e4a09('0x267a')][_0x2e4a09('0x1c53')]({'fields':_0x2e4a09('0x90c'),'sort':_0x2e4a09('0x2aa'),'nolimit':_0x2e4a09('0xe34')})[_0x2e4a09('0x1af5')][_0x2e4a09('0x17e7')](function(_0x1b1f66){const _0x45f6ef=_0x2e4a09;_0x15fd0d['pauses']=_0x1b1f66[_0x45f6ef('0x2319')]||[];})[_0x2e4a09('0x16df')](function(_0x41f966){const _0x2b7180=_0x2e4a09;_0x441fb2['error']({'title':_0x41f966[_0x2b7180('0x11c5')]?'API:'+_0x41f966['status']+_0x2b7180('0x16e4')+_0x41f966[_0x2b7180('0x1833')]:'SYSTEM:GET_PAUSES','msg':_0x41f966[_0x2b7180('0x1457')]?JSON[_0x2b7180('0x678')](_0x41f966[_0x2b7180('0x1457')]):_0x41f966[_0x2b7180('0x9b6')]()});}):_0x1413c3[_0x2e4a09('0x267a')]['get']({'fields':'name,id','sort':_0x2e4a09('0x2aa'),'nolimit':_0x2e4a09('0xe34')})[_0x2e4a09('0x1af5')][_0x2e4a09('0x17e7')](function(_0x5429e7){const _0x161606=_0x2e4a09;_0x15fd0d[_0x161606('0x1492')]=_0x5429e7[_0x161606('0x2319')]||[];})[_0x2e4a09('0x17e7')](function(){const _0x240180=_0x2e4a09;return _0x1413c3[_0x240180('0x383')]['get']({'userProfileId':_0x15fd0d[_0x240180('0x197c')][_0x240180('0x1e76')],'sectionId':0x3ed})['$promise'];})['then'](function(_0x5eeac6){const _0x34d70e=_0x2e4a09,_0x3c8f62=_0x5eeac6&&_0x5eeac6[_0x34d70e('0x2319')]?_0x5eeac6[_0x34d70e('0x2319')][0x0]:null;if(!_0x3c8f62)_0x15fd0d[_0x34d70e('0x1492')]=[];else{if(!_0x3c8f62['autoAssociation'])return _0x1413c3[_0x34d70e('0x78d')][_0x34d70e('0x1c53')]({'sectionId':_0x3c8f62['id']})[_0x34d70e('0x1af5')][_0x34d70e('0x17e7')](function(_0x1842c9){const _0x4110db=_0x34d70e,_0x1aa79e=_0x49cbdd()[_0x4110db('0x787')](_0x1842c9[_0x4110db('0x2319')],function(_0x440279){const _0x23134d=_0x4110db;return _0x49cbdd()['find'](_0x15fd0d[_0x23134d('0x1492')],{'id':_0x440279[_0x23134d('0x5db')]});});_0x15fd0d['pauses']['forEach'](function(_0x29aeb5){const _0x2df3a1=_0x4110db;!_0x49cbdd()['some'](_0x1aa79e,['id',_0x29aeb5['id']])&&(_0x29aeb5[_0x2df3a1('0xe5c')]=![]),_0x1aa79e[_0x2df3a1('0x269f')](_0x29aeb5);}),_0x15fd0d[_0x4110db('0x1492')]=_0x1aa79e;});}})[_0x2e4a09('0x16df')](function(_0x554656){const _0x2b259b=_0x2e4a09;_0x441fb2[_0x2b259b('0x1db9')]({'title':_0x554656['status']?_0x2b259b('0x14f7')+_0x554656[_0x2b259b('0x11c5')]+_0x2b259b('0x16e4')+_0x554656[_0x2b259b('0x1833')]:_0x2b259b('0x1fae'),'msg':_0x554656[_0x2b259b('0x1457')]?JSON['stringify'](_0x554656['data']):_0x554656[_0x2b259b('0x9b6')]()});});function _0x2f4b53(_0x570366){const _0x5f36c3=_0x2e4a09;_0x184943['go'](_0x5f36c3('0x9a9'),{'id':_0x570366['id'],'whatsappAccount':_0x570366,'crudPermissions':_0x15fd0d[_0x5f36c3('0x103e')]});}function _0x2f619d(_0x49bc0d){const _0x256ae6=_0x2e4a09;_0x184943['go'](_0x256ae6('0x9a9'),{'id':_0x49bc0d['id'],'tab':0x5});}function _0x4f5d70(_0x1f5fee,_0x2f6ac5){const _0x445038=_0x2e4a09;_0x3a6ce6[_0x445038('0x28e2')]({'controller':_0x445038('0x1275'),'controllerAs':'vm','templateUrl':_0x587c63,'parent':angular['element'](_0x5d867b['body']),'targetEvent':_0x2f6ac5,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x1f5fee,'whatsappAccounts':_0x15fd0d['whatsappAccounts']?_0x15fd0d[_0x445038('0x58b')][_0x445038('0x2319')]:[],'crudPermissions':_0x15fd0d[_0x445038('0x103e')],'realtime':![]}});}function _0x42ac8b(_0x457ab1,_0x5def43){const _0x2b58fe=_0x2e4a09,_0x40f2dc=_0x3a6ce6[_0x2b58fe('0x1121')]()['title'](_0x2b58fe('0x5e1')+_0x49cbdd()['startCase'](_0x2b58fe('0x254f'))+'?')[_0x2b58fe('0x211f')](_0x2b58fe('0xa53')+(_0x457ab1['name']||'whatsappAccount')+''+'\x20will\x20be\x20deleted.')[_0x2b58fe('0x2095')](_0x2b58fe('0xec8'))[_0x2b58fe('0x104f')](_0x5def43)['ok']('OK')['cancel'](_0x2b58fe('0x28a0'));_0x3a6ce6[_0x2b58fe('0x28e2')](_0x40f2dc)[_0x2b58fe('0x17e7')](function(){_0x13fa9d(_0x457ab1);},function(){const _0x325abc=_0x2b58fe;console[_0x325abc('0x1d63')]('CANCEL');});}let _0x3acebb=!![],_0x45e105=0x1;_0x2782f1[_0x2e4a09('0x620')]('vm.query.filter',function(_0x5edb38,_0x44be66){const _0x6aa142=_0x2e4a09;_0x3acebb?_0x201df9(function(){_0x3acebb=![];}):(!_0x44be66&&(_0x45e105=_0x15fd0d[_0x6aa142('0x826')]['page']),_0x5edb38!==_0x44be66&&(_0x15fd0d[_0x6aa142('0x826')][_0x6aa142('0x115a')]=0x1),!_0x5edb38&&(_0x15fd0d[_0x6aa142('0x826')][_0x6aa142('0x115a')]=_0x45e105),_0x15fd0d['getWhatsappAccounts']());});function _0x5e6f20(_0x383d0f){const _0x505481=_0x2e4a09;_0x15fd0d[_0x505481('0x58b')]=_0x383d0f||{'count':0x0,'rows':[]};}function _0x26bf45(){const _0x3f9eb5=_0x2e4a09;_0x15fd0d[_0x3f9eb5('0x826')]['offset']=(_0x15fd0d['query'][_0x3f9eb5('0x115a')]-0x1)*_0x15fd0d[_0x3f9eb5('0x826')][_0x3f9eb5('0x193b')],_0x323ffa[_0x3f9eb5('0x1ba2')](_0x3f9eb5('0x20bf'))?_0x15fd0d[_0x3f9eb5('0x1691')]=_0x1413c3['whatsappAccount'][_0x3f9eb5('0x1c53')](_0x15fd0d['query'],_0x5e6f20)[_0x3f9eb5('0x1af5')]:(_0x15fd0d[_0x3f9eb5('0x826')]['id']=_0x15fd0d[_0x3f9eb5('0xdeb')]['id'],_0x15fd0d['query']['section']=_0x3f9eb5('0xd91'),_0x15fd0d[_0x3f9eb5('0x1691')]=_0x1413c3[_0x3f9eb5('0xdeb')][_0x3f9eb5('0x2447')](_0x15fd0d['query'],_0x5e6f20)['$promise']);}function _0x3ce629(_0x26234a,_0x47f31c){const _0x3db04c=_0x2e4a09;_0x3a6ce6[_0x3db04c('0x28e2')]({'controller':_0x3db04c('0x2347'),'controllerAs':'vm','templateUrl':_0x5a5310,'parent':angular[_0x3db04c('0x1ce1')](_0x5d867b[_0x3db04c('0x13aa')]),'targetEvent':_0x26234a,'clickOutsideToClose':!![],'locals':{'whatsappAccount':_0x47f31c,'whatsappAccounts':_0x15fd0d[_0x3db04c('0x58b')][_0x3db04c('0x2319')],'license':_0x15fd0d[_0x3db04c('0x1d11')],'setting':_0x15fd0d['setting'],'crudPermissions':_0x15fd0d['crudPermissions']}});}function _0x13fa9d(_0x40d9a8){const _0x5cc327=_0x2e4a09;_0x1413c3['whatsappAccount']['delete']({'id':_0x40d9a8['id']})[_0x5cc327('0x1af5')][_0x5cc327('0x17e7')](function(){const _0x3fc1a7=_0x5cc327;_0x49cbdd()['remove'](_0x15fd0d[_0x3fc1a7('0x58b')][_0x3fc1a7('0x2319')],{'id':_0x40d9a8['id']}),_0x15fd0d[_0x3fc1a7('0x58b')]['count']-=0x1,!_0x15fd0d[_0x3fc1a7('0x58b')][_0x3fc1a7('0x2319')]['length']&&_0x15fd0d['getWhatsappAccounts'](),_0x441fb2[_0x3fc1a7('0x130d')]({'title':_0x49cbdd()[_0x3fc1a7('0x1c98')](_0x3fc1a7('0x662'))+_0x3fc1a7('0x2673'),'msg':_0x40d9a8[_0x3fc1a7('0x2aa')]?_0x40d9a8[_0x3fc1a7('0x2aa')]+_0x3fc1a7('0x149f'):''});})[_0x5cc327('0x16df')](function(_0x18c8d1){const _0x5ee9e5=_0x5cc327;if(_0x18c8d1[_0x5ee9e5('0x1457')]&&_0x18c8d1[_0x5ee9e5('0x1457')][_0x5ee9e5('0x73e')]&&_0x18c8d1[_0x5ee9e5('0x1457')][_0x5ee9e5('0x73e')]['length']){_0x15fd0d['errors']=_0x18c8d1['data'][_0x5ee9e5('0x73e')]||[{'message':_0x18c8d1['toString'](),'type':_0x5ee9e5('0x2276')}];for(let _0xc5c287=0x0;_0xc5c287<_0x18c8d1[_0x5ee9e5('0x1457')]['errors'][_0x5ee9e5('0x1f73')];_0xc5c287++){_0x441fb2['error']({'title':_0x18c8d1[_0x5ee9e5('0x1457')][_0x5ee9e5('0x73e')][_0xc5c287][_0x5ee9e5('0x412')],'msg':_0x18c8d1[_0x5ee9e5('0x1457')][_0x5ee9e5('0x73e')][_0xc5c287]['message']});}}else _0x441fb2[_0x5ee9e5('0x1db9')]({'title':_0x18c8d1[_0x5ee9e5('0x11c5')]?_0x5ee9e5('0x14f7')+_0x18c8d1[_0x5ee9e5('0x11c5')]+_0x5ee9e5('0x16e4')+_0x18c8d1[_0x5ee9e5('0x1833')]:'SYSTEM:DELETEwhatsappAccount','msg':_0x18c8d1['data']?JSON[_0x5ee9e5('0x678')](_0x18c8d1[_0x5ee9e5('0x1457')]['message']):_0x18c8d1['message']||_0x18c8d1[_0x5ee9e5('0x9b6')]()});});}function _0x9c145d(){const _0x180fef=_0x2e4a09,_0x21d1f9=angular[_0x180fef('0x14e5')](_0x15fd0d['selectedWhatsappAccounts']);return _0x15fd0d[_0x180fef('0x2201')]=[],_0x21d1f9;}function _0x1cf500(_0x374cc3){const _0x401a3f=_0x2e4a09,_0x4c5ae4=_0x3a6ce6['confirm']()[_0x401a3f('0x24d3')]('Are\x20you\x20sure\x20want\x20to\x20delete\x20the\x20selected\x20whatsappAccounts?')[_0x401a3f('0x211f')](_0x401a3f('0xa53')+_0x15fd0d['selectedWhatsappAccounts'][_0x401a3f('0x1f73')]+_0x401a3f('0x145a')+_0x401a3f('0xe9f'))['ariaLabel']('delete\x20WhatsappAccounts')[_0x401a3f('0x104f')](_0x374cc3)['ok']('OK')[_0x401a3f('0x1d47')](_0x401a3f('0x28a0'));_0x3a6ce6['show'](_0x4c5ae4)['then'](function(){const _0x376488=_0x401a3f;_0x15fd0d[_0x376488('0x2201')][_0x376488('0xccd')](function(_0x220b9d){_0x13fa9d(_0x220b9d);}),_0x15fd0d[_0x376488('0x2201')]=[];});}function _0x117a74(){const _0x28548b=_0x2e4a09;_0x15fd0d[_0x28548b('0x2201')]=[];}function _0x14e6e9(){const _0x16a96e=_0x2e4a09;_0x15fd0d[_0x16a96e('0x2201')]=_0x15fd0d[_0x16a96e('0x58b')][_0x16a96e('0x2319')];}}const _0x2d4270=_0x1d3c36;_0x20bc46[_0x4376d8('0x1b9c')]=['$scope',_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),'$q','$translate',_0x4376d8('0x108a'),_0x4376d8('0x1e35'),_0x4376d8('0x1e28'),'api','Auth','license',_0x4376d8('0x1aeb'),'crudPermissions'];function _0x20bc46(_0x3c411b,_0x468cca,_0xb24603,_0x38be38,_0x124797,_0x81e57f,_0x17eb12,_0x48d926,_0x254c17,_0x19f090,_0x4d16b1,_0x2bb78e,_0x2f3d3b,_0x38eed9){const _0x5efa2a=_0x4376d8,_0x2e9b6f=this;_0x2e9b6f[_0x5efa2a('0x197c')]=_0x4d16b1[_0x5efa2a('0x2831')](),_0x2e9b6f[_0x5efa2a('0x73e')]=[],_0x2e9b6f[_0x5efa2a('0x1aeb')]=_0x2f3d3b,_0x2e9b6f[_0x5efa2a('0x1d11')]=_0x2bb78e,_0x2e9b6f['crudPermissions']=_0x38eed9,_0x2e9b6f[_0x5efa2a('0x6ee')]={},_0x2e9b6f['passwordPattern']=_0x2e9b6f[_0x5efa2a('0x1aeb')]&&_0x2e9b6f[_0x5efa2a('0x1aeb')][_0x5efa2a('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2e9b6f[_0x5efa2a('0x24d3')]=_0x5efa2a('0x8c7'),_0x2e9b6f[_0x5efa2a('0x1e28')]=angular[_0x5efa2a('0x14e5')](_0x254c17),_0x2e9b6f[_0x5efa2a('0x1e35')]=_0x48d926,_0x2e9b6f[_0x5efa2a('0x19d2')]=![];!_0x2e9b6f[_0x5efa2a('0x1e28')]&&(_0x2e9b6f[_0x5efa2a('0x1e28')]={'strategy':'beepall','timeout':0xa},_0x2e9b6f[_0x5efa2a('0x24d3')]=_0x5efa2a('0x1092'),_0x2e9b6f[_0x5efa2a('0x19d2')]=!![]);_0x2e9b6f[_0x5efa2a('0x9')]=_0x2f7ef8,_0x2e9b6f[_0x5efa2a('0x12d7')]=_0x73dc06,_0x2e9b6f[_0x5efa2a('0x2544')]=_0x3015fd,_0x2e9b6f[_0x5efa2a('0x1300')]=_0xca89a8,_0x2e9b6f[_0x5efa2a('0x136e')]=_0x3cc1fb;function _0x2f7ef8(){const _0x5cab83=_0x5efa2a;_0x2e9b6f['errors']=[],_0x19f090[_0x5cab83('0x1e28')]['save'](_0x2e9b6f['whatsappQueue'])[_0x5cab83('0x1af5')][_0x5cab83('0x17e7')](function(_0x2ca0f7){const _0x26fb02=_0x5cab83;_0x2e9b6f[_0x26fb02('0x1e35')][_0x26fb02('0x1893')](_0x2ca0f7['toJSON']()),_0x17eb12[_0x26fb02('0x130d')]({'title':_0x26fb02('0x1d71'),'msg':_0x2e9b6f[_0x26fb02('0x1e28')][_0x26fb02('0x2aa')]?_0x2e9b6f[_0x26fb02('0x1e28')]['name']+_0x26fb02('0x15a'):''}),_0x3cc1fb(_0x2ca0f7);})[_0x5cab83('0x16df')](function(_0x210e5d){const _0x262f22=_0x5cab83;if(_0x210e5d[_0x262f22('0x1457')]&&_0x210e5d[_0x262f22('0x1457')][_0x262f22('0x73e')]&&_0x210e5d[_0x262f22('0x1457')][_0x262f22('0x73e')][_0x262f22('0x1f73')]){_0x2e9b6f[_0x262f22('0x73e')]=_0x210e5d[_0x262f22('0x1457')][_0x262f22('0x73e')]||[{'message':_0x210e5d[_0x262f22('0x9b6')](),'type':'api.whatsappQueue.save'}];for(let _0x3011f2=0x0;_0x3011f2<_0x210e5d[_0x262f22('0x1457')][_0x262f22('0x73e')][_0x262f22('0x1f73')];_0x3011f2+=0x1){_0x17eb12['error']({'title':_0x210e5d['data'][_0x262f22('0x73e')][_0x3011f2][_0x262f22('0x412')],'msg':_0x210e5d[_0x262f22('0x1457')][_0x262f22('0x73e')][_0x3011f2]['message']});}}else _0x17eb12[_0x262f22('0x1db9')]({'title':_0x210e5d[_0x262f22('0x11c5')]?'API:'+_0x210e5d['status']+_0x262f22('0x16e4')+_0x210e5d[_0x262f22('0x1833')]:_0x262f22('0x1544'),'msg':_0x210e5d[_0x262f22('0x1457')]?JSON[_0x262f22('0x678')](_0x210e5d[_0x262f22('0x1457')][_0x262f22('0x1603')]):_0x210e5d[_0x262f22('0x9b6')]()});});}function _0x73dc06(){const _0x85a864=_0x5efa2a;_0x2e9b6f[_0x85a864('0x73e')]=[],_0x19f090[_0x85a864('0x1e28')][_0x85a864('0x27ba')]({'id':_0x2e9b6f[_0x85a864('0x1e28')]['id']},_0x2e9b6f[_0x85a864('0x1e28')])[_0x85a864('0x1af5')]['then'](function(_0x5d30b5){const _0x245051=_0x85a864,_0x2f4be8=_0x49cbdd()[_0x245051('0xe8e')](_0x2e9b6f[_0x245051('0x1e35')],{'id':_0x5d30b5['id']});_0x2f4be8&&_0x49cbdd()[_0x245051('0x1ced')](_0x2f4be8,_0x49cbdd()[_0x245051('0x230a')](_0x5d30b5[_0x245051('0x16b2')](),_0x49cbdd()[_0x245051('0x1c0f')](_0x2f4be8))),_0x17eb12[_0x245051('0x130d')]({'title':_0x245051('0x65f'),'msg':_0x2e9b6f[_0x245051('0x1e28')][_0x245051('0x2aa')]?_0x2e9b6f[_0x245051('0x1e28')]['name']+_0x245051('0x15ca'):''}),_0x3cc1fb(_0x5d30b5);})[_0x85a864('0x16df')](function(_0x23a379){const _0x31ac91=_0x85a864;if(_0x23a379['data']&&_0x23a379[_0x31ac91('0x1457')][_0x31ac91('0x73e')]&&_0x23a379[_0x31ac91('0x1457')][_0x31ac91('0x73e')][_0x31ac91('0x1f73')]){_0x2e9b6f['errors']=_0x23a379[_0x31ac91('0x1457')][_0x31ac91('0x73e')]||[{'message':_0x23a379['toString'](),'type':_0x31ac91('0x1b7a')}];for(let _0x1c6b35=0x0;_0x1c6b35<_0x23a379[_0x31ac91('0x1457')][_0x31ac91('0x73e')][_0x31ac91('0x1f73')];_0x1c6b35++){_0x17eb12[_0x31ac91('0x1db9')]({'title':_0x23a379[_0x31ac91('0x1457')][_0x31ac91('0x73e')][_0x1c6b35]['type'],'msg':_0x23a379[_0x31ac91('0x1457')]['errors'][_0x1c6b35][_0x31ac91('0x1603')]});}}else _0x17eb12[_0x31ac91('0x1db9')]({'title':_0x23a379[_0x31ac91('0x11c5')]?_0x31ac91('0x14f7')+_0x23a379['status']+'\x20-\x20'+_0x23a379[_0x31ac91('0x1833')]:_0x31ac91('0x1b7a'),'msg':_0x23a379[_0x31ac91('0x1457')]?JSON['stringify'](_0x23a379[_0x31ac91('0x1457')][_0x31ac91('0x1603')]):_0x23a379[_0x31ac91('0x9b6')]()});});}function _0x3015fd(_0x557af8){const _0x276b18=_0x5efa2a;_0x2e9b6f['errors']=[];const _0x137121=_0x38be38[_0x276b18('0x1121')]()[_0x276b18('0x24d3')](_0x276b18('0x530'))['content'](_0x276b18('0xf02'))[_0x276b18('0x2095')](_0x276b18('0x1fd0'))['ok'](_0x276b18('0x304'))[_0x276b18('0x1d47')](_0x276b18('0x1b70'))[_0x276b18('0x104f')](_0x557af8);_0x38be38[_0x276b18('0x28e2')](_0x137121)[_0x276b18('0x17e7')](function(){const _0xafcb5d=_0x276b18;_0x19f090[_0xafcb5d('0x1e28')]['delete']({'id':_0x2e9b6f[_0xafcb5d('0x1e28')]['id']})['$promise'][_0xafcb5d('0x17e7')](function(){const _0x1cac4f=_0xafcb5d;_0x49cbdd()[_0x1cac4f('0x5f3')](_0x2e9b6f['whatsappQueues'],{'id':_0x2e9b6f[_0x1cac4f('0x1e28')]['id']}),_0x17eb12[_0x1cac4f('0x130d')]({'title':_0x1cac4f('0x1972'),'msg':(_0x2e9b6f[_0x1cac4f('0x1e28')][_0x1cac4f('0x2aa')]||_0x1cac4f('0x1e28'))+_0x1cac4f('0x149f')}),_0x3cc1fb(_0x2e9b6f[_0x1cac4f('0x1e28')]);})['catch'](function(_0x3b0b67){const _0x4711e7=_0xafcb5d;if(_0x3b0b67[_0x4711e7('0x1457')]&&_0x3b0b67[_0x4711e7('0x1457')][_0x4711e7('0x73e')]&&_0x3b0b67[_0x4711e7('0x1457')][_0x4711e7('0x73e')][_0x4711e7('0x1f73')]){_0x2e9b6f[_0x4711e7('0x73e')]=_0x3b0b67['data'][_0x4711e7('0x73e')]||[{'message':_0x3b0b67['toString'](),'type':_0x4711e7('0x1554')}];for(let _0x2b9ca2=0x0;_0x2b9ca2<_0x3b0b67[_0x4711e7('0x1457')][_0x4711e7('0x73e')][_0x4711e7('0x1f73')];_0x2b9ca2++){_0x17eb12[_0x4711e7('0x1db9')]({'title':_0x3b0b67['data']['errors'][_0x2b9ca2]['type'],'msg':_0x3b0b67['data'][_0x4711e7('0x73e')][_0x2b9ca2][_0x4711e7('0x1603')]});}}else _0x17eb12[_0x4711e7('0x1db9')]({'title':_0x3b0b67[_0x4711e7('0x11c5')]?_0x4711e7('0x14f7')+_0x3b0b67[_0x4711e7('0x11c5')]+_0x4711e7('0x16e4')+_0x3b0b67['statusText']:_0x4711e7('0x1554'),'msg':_0x3b0b67[_0x4711e7('0x1457')]?JSON[_0x4711e7('0x678')](_0x3b0b67[_0x4711e7('0x1457')]['message']):_0x3b0b67[_0x4711e7('0x1603')]||_0x3b0b67[_0x4711e7('0x9b6')]()});});},function(){});}function _0xca89a8(_0x597b58){return _0x597b58===null?undefined:new Date(_0x597b58);}function _0x3cc1fb(_0x4f2d8d){const _0x51d56b=_0x5efa2a;_0x38be38[_0x51d56b('0x212a')](_0x4f2d8d);}}const _0x2f2744=_0x20bc46;_0x581cfd[_0x4376d8('0x1b9c')]=[_0x4376d8('0x14f6'),'$q','toasty','api',_0x4376d8('0x1e28'),_0x4376d8('0x1e35'),_0x4376d8('0x20c8'),_0x4376d8('0x28da'),_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x581cfd(_0x2ae75f,_0x40cf86,_0x4f1eee,_0x45098b,_0x2c3b7f,_0x194e8d,_0x3516ab,_0x5dc95c,_0x44657a,_0x35110a){const _0x5dcdf8=_0x4376d8,_0x55e275=this;_0x55e275[_0x5dcdf8('0x197c')]=_0x44657a[_0x5dcdf8('0x2831')](),_0x55e275[_0x5dcdf8('0x1e28')]=_0x2c3b7f,_0x55e275[_0x5dcdf8('0x103e')]=_0x35110a,_0x55e275[_0x5dcdf8('0x20c8')]=_0x3516ab,_0x55e275[_0x5dcdf8('0x532')]=[],_0x55e275[_0x5dcdf8('0x2722')]=[],_0x55e275['selectedItems']=[],_0x55e275[_0x5dcdf8('0x181b')]=[],_0x55e275[_0x5dcdf8('0x1824')]=[],_0x55e275[_0x5dcdf8('0x25dc')]=![],_0x55e275[_0x5dcdf8('0xdf0')]=_0x1e208c,_0x55e275['saveAgents']=_0x17d67d,_0x55e275[_0x5dcdf8('0x136e')]=_0x57750f,_0x55e275[_0x5dcdf8('0x26f4')]={'readOnly':!_0x55e275[_0x5dcdf8('0x103e')][_0x5dcdf8('0x1d34')],'items':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x5dcdf8('0x2aa'),'line1':'fullname','line2':[_0x5dcdf8('0x2aa'),'internal'],'line3':'','labelAll':_0x5dc95c[_0x5dcdf8('0x1acc')](_0x5dcdf8('0x20fa')),'labelSelected':_0x5dc95c[_0x5dcdf8('0x1acc')](_0x5dcdf8('0xf6e')),'transferCallback':function(){const _0x37ae7f=_0x5dcdf8,_0x1b9853=_0x49cbdd()[_0x37ae7f('0x137')](_0x55e275[_0x37ae7f('0x1824')],_0x55e275['selectedItems'],'id');_0x55e275[_0x37ae7f('0x25dc')]=_0x49cbdd()[_0x37ae7f('0x109a')](_0x1b9853)?![]:!![];}};function _0x1e208c(){const _0x2f3a5c=_0x5dcdf8;return _0x44657a['hasRole'](_0x2f3a5c('0x20bf'))?_0x1b801c()[_0x2f3a5c('0x16df')](function(_0x1e0190){const _0x161fad=_0x2f3a5c;_0x4f1eee[_0x161fad('0x1db9')]({'title':_0x1e0190[_0x161fad('0x11c5')]?'API:'+_0x1e0190[_0x161fad('0x11c5')]+_0x161fad('0x16e4')+_0x1e0190['statusText']:_0x161fad('0x23e0'),'msg':_0x1e0190['status']?JSON['stringify'](_0x1e0190['data']):_0x1e0190['toString']()});}):_0x1d92b4()['then'](function(_0x20a492){const _0x346c1b=_0x2f3a5c;return _0x55e275[_0x346c1b('0x16f8')]=_0x20a492,_0x1b801c();})['catch'](function(_0x263d59){const _0x2f60a5=_0x2f3a5c;_0x4f1eee[_0x2f60a5('0x1db9')]({'title':_0x263d59[_0x2f60a5('0x11c5')]?_0x2f60a5('0x14f7')+_0x263d59[_0x2f60a5('0x11c5')]+'\x20-\x20'+_0x263d59['statusText']:'SYSTEM:GET_AGENTS','msg':_0x263d59[_0x2f60a5('0x11c5')]?JSON[_0x2f60a5('0x678')](_0x263d59['data']):_0x263d59[_0x2f60a5('0x9b6')]()});});}function _0x1d92b4(){return _0x40cf86(function(_0x78d277,_0x3c4723){const _0x309610=a0_0xd29e;_0x45098b[_0x309610('0x383')][_0x309610('0x1c53')]({'userProfileId':_0x55e275['currentUser'][_0x309610('0x1e76')],'name':_0x309610('0x2157')})['$promise'][_0x309610('0x17e7')](function(_0x72bc44){const _0x347c5a=_0x309610,_0x1ad8cb=_0x72bc44&&_0x72bc44[_0x347c5a('0x2319')]?_0x72bc44[_0x347c5a('0x2319')][0x0]:null;_0x78d277(_0x1ad8cb);})['catch'](function(_0x13b380){_0x3c4723(_0x13b380);});});}function _0x1b801c(){return _0x40cf86(function(_0x8ce31d,_0x308169){const _0x3264f1=a0_0xd29e;return _0x20cb2f()[_0x3264f1('0x17e7')](function(_0x14a33d){const _0x1e1c2c=_0x3264f1;return _0x55e275['items']=_0x14a33d[_0x1e1c2c('0x2319')]?_0x14a33d['rows']:[],_0x44657a[_0x1e1c2c('0x1ba2')](_0x1e1c2c('0x20bf'))?_0x14a33d:_0x55e275[_0x1e1c2c('0x16f8')]?_0x55e275[_0x1e1c2c('0x16f8')][_0x1e1c2c('0x9e3')]?_0x14a33d:_0x163118():null;})[_0x3264f1('0x17e7')](function(_0xd42e80){const _0x5747f6=_0x3264f1,_0x3cc0ce=_0xd42e80&&_0xd42e80['rows']?_0xd42e80[_0x5747f6('0x2319')]:[];return _0x55e275[_0x5747f6('0x2722')]=_0x49cbdd()['map'](_0x3cc0ce,function(_0x2c91ae){const _0x1710aa=_0x5747f6;return _0x49cbdd()[_0x1710aa('0xe8e')](_0x55e275[_0x1710aa('0x532')],{'id':_0x44657a['hasRole'](_0x1710aa('0x20bf'))||_0x55e275['section'][_0x1710aa('0x9e3')]?_0x2c91ae['id']:_0x2c91ae['resourceId']});}),_0x55e275[_0x5747f6('0x181b')]=angular[_0x5747f6('0x14e5')](_0x55e275['allowedItems']),_0x55e275[_0x5747f6('0x532')][_0x5747f6('0xccd')](function(_0x4a6046){const _0x2bd209=_0x5747f6,_0x38756c=_0x49cbdd()[_0x2bd209('0xe8e')](_0x55e275[_0x2bd209('0x2722')],{'id':_0x4a6046['id']});_0x44657a['hasRole'](_0x2bd209('0x20bf'))?_0x4a6046[_0x2bd209('0xc98')]=!![]:_0x4a6046['isValid']=typeof _0x38756c!=='undefined'?!![]:![];}),_0x4b6393();})['then'](function(_0x273bb5){const _0x176641=_0x3264f1,_0x4d6487=_0x273bb5&&_0x273bb5[_0x176641('0x2319')]?_0x273bb5[_0x176641('0x2319')]:[];_0x55e275[_0x176641('0xc14')]=_0x49cbdd()[_0x176641('0x787')](_0x4d6487,function(_0x1513d7){const _0x2d38d7=_0x176641,_0x4cba45=_0x49cbdd()[_0x2d38d7('0xe8e')](_0x55e275[_0x2d38d7('0x532')],{'id':_0x1513d7['id']});return _0x4cba45[_0x2d38d7('0x122c')]=_0x1513d7[_0x2d38d7('0x12ee')]?_0x2d38d7('0x973')+_0x1513d7[_0x2d38d7('0x12ee')][_0x2d38d7('0x122c')]:'',_0x4cba45[_0x2d38d7('0xe3e')]=typeof _0x1513d7[_0x2d38d7('0xe3e')]!==_0x2d38d7('0xfad')?'<'+_0x1513d7['internal']+'>':'',_0x4cba45;}),_0x55e275['startingSelectedItems']=angular['copy'](_0x55e275[_0x176641('0xc14')]),_0x55e275[_0x176641('0x26f4')][_0x176641('0xc14')]=_0x55e275['selectedItems'],_0x55e275[_0x176641('0x26f4')][_0x176641('0x532')]=_0x49cbdd()[_0x176641('0x1ada')](_0x55e275[_0x176641('0x2722')],_0x55e275[_0x176641('0x26f4')][_0x176641('0xc14')],'id'),_0x8ce31d();})['catch'](function(_0x44394f){_0x308169(_0x44394f);});});}function _0x163118(){return _0x40cf86(function(_0x555aca,_0x45eec3){const _0xd5264b=a0_0xd29e;return _0x45098b[_0xd5264b('0x78d')]['get']({'sectionId':_0x55e275[_0xd5264b('0x16f8')]['id'],'nolimit':!![]})[_0xd5264b('0x1af5')]['then'](function(_0x1e4a6b){_0x555aca(_0x1e4a6b);})[_0xd5264b('0x16df')](function(_0x1ea2c0){_0x45eec3(_0x1ea2c0);});});}function _0x4b6393(){return _0x40cf86(function(_0xf21620,_0x2aaf80){const _0x374d64=a0_0xd29e;return _0x45098b[_0x374d64('0x1e28')][_0x374d64('0x1dac')]({'id':_0x55e275[_0x374d64('0x1e28')]['id'],'fields':_0x374d64('0x1152'),'nolimit':!![],'role':_0x374d64('0x684')})[_0x374d64('0x1af5')][_0x374d64('0x17e7')](function(_0x19233e){_0xf21620(_0x19233e);})[_0x374d64('0x16df')](function(_0x5ef178){_0x2aaf80(_0x5ef178);});});}function _0x20cb2f(){return _0x40cf86(function(_0x188a9a,_0x1edeac){const _0x2f027d=a0_0xd29e;return _0x45098b[_0x2f027d('0x221e')][_0x2f027d('0x1c53')]({'fields':_0x2f027d('0x1152'),'nolimit':!![],'role':_0x2f027d('0x684')})[_0x2f027d('0x1af5')][_0x2f027d('0x17e7')](function(_0x58030a){_0x188a9a(_0x58030a);})['catch'](function(_0x418fa8){_0x1edeac(_0x418fa8);});});}function _0xe0a71e(_0x116f85){return _0x40cf86(function(_0x13a12e,_0x181790){const _0x404253=a0_0xd29e;_0x49cbdd()[_0x404253('0x109a')](_0x116f85)?_0x13a12e():_0x45098b['whatsappQueue'][_0x404253('0x1f22')]({'id':_0x55e275[_0x404253('0x1e28')]['id'],'ids':_0x49cbdd()[_0x404253('0x787')](_0x116f85,'id')})[_0x404253('0x1af5')][_0x404253('0x17e7')](function(){_0x13a12e();})[_0x404253('0x16df')](function(_0x29f85c){_0x181790(_0x29f85c);});});}function _0x3e596c(_0xa7f7db){return _0x40cf86(function(_0x2674af,_0x345aac){const _0x21a640=a0_0xd29e;_0x49cbdd()[_0x21a640('0x109a')](_0xa7f7db)?_0x2674af():_0x45098b[_0x21a640('0x1e28')]['removeAgents']({'id':_0x55e275[_0x21a640('0x1e28')]['id'],'ids':_0x49cbdd()[_0x21a640('0x787')](_0xa7f7db,'id')})[_0x21a640('0x1af5')][_0x21a640('0x17e7')](function(){_0x2674af();})['catch'](function(_0xe06618){_0x345aac(_0xe06618);});});}function _0x17d67d(){const _0x1f213a=_0x5dcdf8,_0x318117=_0x49cbdd()[_0x1f213a('0x1ada')](_0x55e275[_0x1f213a('0x1824')],_0x55e275[_0x1f213a('0xc14')],'id'),_0x8c860e=_0x49cbdd()['differenceBy'](_0x55e275['selectedItems'],_0x55e275[_0x1f213a('0x1824')],'id');return _0x3e596c(_0x318117)[_0x1f213a('0x17e7')](function(){return _0xe0a71e(_0x8c860e);})[_0x1f213a('0x17e7')](function(){const _0x597207=_0x1f213a;_0x55e275['pendingChanges']=![],_0x55e275['startingAllowedItems']=angular['copy'](_0x55e275['allowedItems']),_0x55e275[_0x597207('0x1824')]=angular[_0x597207('0x14e5')](_0x55e275['selectedItems']),_0x4f1eee['success']({'title':_0x597207('0x9d1'),'msg':_0x597207('0x2603')});})[_0x1f213a('0x16df')](function(_0x2e76b1){const _0x27d317=_0x1f213a;_0x4f1eee[_0x27d317('0x1db9')]({'title':_0x2e76b1[_0x27d317('0x11c5')]?'API:'+_0x2e76b1['status']+'\x20-\x20'+_0x2e76b1[_0x27d317('0x1833')]:'SYSTEM:LISTS_ASSOCIATION','msg':_0x2e76b1[_0x27d317('0x11c5')]?JSON[_0x27d317('0x678')](_0x2e76b1[_0x27d317('0x1457')]):_0x2e76b1['toString']()});});}function _0x57750f(){_0x2ae75f['hide']();}}const _0x3f3880=_0x581cfd;_0x37c609[_0x4376d8('0x1b9c')]=['$mdDialog','$q','toasty',_0x4376d8('0x212e'),_0x4376d8('0x1e28'),'$translate',_0x4376d8('0x1885'),_0x4376d8('0x103e')];function _0x37c609(_0x236325,_0x478eb6,_0x528da5,_0xed9a2f,_0x3a0bf9,_0x3338df,_0x1dcb47,_0x296e3a){const _0x1f1bd1=_0x4376d8,_0x4efc53=this;_0x4efc53[_0x1f1bd1('0x197c')]=_0x1dcb47[_0x1f1bd1('0x2831')](),_0x4efc53[_0x1f1bd1('0x1e28')]=_0x3a0bf9,_0x4efc53[_0x1f1bd1('0x103e')]=_0x296e3a,_0x4efc53[_0x1f1bd1('0x532')]=[],_0x4efc53['allowedItems']=[],_0x4efc53['selectedItems']=[],_0x4efc53[_0x1f1bd1('0x181b')]=[],_0x4efc53['startingSelectedItems']=[],_0x4efc53[_0x1f1bd1('0x25dc')]=![],_0x4efc53[_0x1f1bd1('0x26f4')]={'readOnly':!_0x4efc53[_0x1f1bd1('0x103e')][_0x1f1bd1('0x1d34')],'allowedItems':[],'selectedItems':[],'showSelectAndDeselectAll':!![],'orderBy':_0x1f1bd1('0x2aa'),'line1':'name','line2':'','line3':'','labelAll':_0x3338df[_0x1f1bd1('0x1acc')](_0x1f1bd1('0x5ea')),'labelSelected':_0x3338df['instant'](_0x1f1bd1('0x26bc')),'transferCallback':function(){const _0x3a466a=_0x1f1bd1,_0x4cab53=_0x49cbdd()[_0x3a466a('0x137')](_0x4efc53[_0x3a466a('0x1824')],_0x4efc53[_0x3a466a('0xc14')],'id');_0x4efc53[_0x3a466a('0x25dc')]=_0x49cbdd()[_0x3a466a('0x109a')](_0x4cab53)?![]:!![];}},_0x4efc53[_0x1f1bd1('0xdf0')]=_0x54f903,_0x4efc53[_0x1f1bd1('0x1a8f')]=_0x17b8ec,_0x4efc53[_0x1f1bd1('0x136e')]=_0x5de072;function _0x54f903(){const _0x49b47e=_0x1f1bd1;return _0x1dcb47[_0x49b47e('0x1ba2')]('admin')?_0x44e22e()[_0x49b47e('0x16df')](function(_0x699e70){const _0x2400e5=_0x49b47e;_0x528da5['error']({'title':_0x699e70[_0x2400e5('0x11c5')]?'API:'+_0x699e70[_0x2400e5('0x11c5')]+_0x2400e5('0x16e4')+_0x699e70['statusText']:_0x2400e5('0x20cf'),'msg':_0x699e70['status']?JSON[_0x2400e5('0x678')](_0x699e70[_0x2400e5('0x1457')]):_0x699e70[_0x2400e5('0x9b6')]()});}):_0x2cc975()['then'](function(_0x2f7396){return _0x4efc53['section']=_0x2f7396,_0x44e22e();})[_0x49b47e('0x16df')](function(_0x176900){const _0x474158=_0x49b47e;_0x528da5[_0x474158('0x1db9')]({'title':_0x176900[_0x474158('0x11c5')]?_0x474158('0x14f7')+_0x176900['status']+_0x474158('0x16e4')+_0x176900['statusText']:_0x474158('0x20cf'),'msg':_0x176900[_0x474158('0x11c5')]?JSON['stringify'](_0x176900[_0x474158('0x1457')]):_0x176900[_0x474158('0x9b6')]()});});}function _0x2cc975(){return _0x478eb6(function(_0x4ac178,_0x2ead25){const _0xa187bf=a0_0xd29e;_0xed9a2f['userProfileSection'][_0xa187bf('0x1c53')]({'userProfileId':_0x4efc53['currentUser'][_0xa187bf('0x1e76')],'name':_0xa187bf('0x1cf2')})[_0xa187bf('0x1af5')][_0xa187bf('0x17e7')](function(_0x1213eb){const _0x5a72d1=_0xa187bf,_0x131a57=_0x1213eb&&_0x1213eb[_0x5a72d1('0x2319')]?_0x1213eb['rows'][0x0]:null;_0x4ac178(_0x131a57);})[_0xa187bf('0x16df')](function(_0x246c52){_0x2ead25(_0x246c52);});});}function _0x44e22e(){return _0x478eb6(function(_0x405207,_0x43b5e6){const _0x1289ab=a0_0xd29e;return _0x16d0ce()['then'](function(_0x1a7132){const _0x7861a3=a0_0xd29e;return _0x4efc53[_0x7861a3('0x532')]=_0x1a7132['rows']?_0x1a7132[_0x7861a3('0x2319')]:[],_0x1dcb47['hasRole'](_0x7861a3('0x20bf'))?_0x1a7132:_0x4efc53['section']?_0x4efc53[_0x7861a3('0x16f8')]['autoAssociation']?_0x1a7132:_0x2e77d4():null;})[_0x1289ab('0x17e7')](function(_0x1b4ede){const _0x32e88e=_0x1289ab,_0x1c515a=_0x1b4ede&&_0x1b4ede[_0x32e88e('0x2319')]?_0x1b4ede[_0x32e88e('0x2319')]:[];return _0x4efc53[_0x32e88e('0x2722')]=_0x49cbdd()['map'](_0x1c515a,function(_0x6826c0){const _0x7e3d16=_0x32e88e;return _0x49cbdd()[_0x7e3d16('0xe8e')](_0x4efc53[_0x7e3d16('0x532')],{'id':_0x1dcb47[_0x7e3d16('0x1ba2')](_0x7e3d16('0x20bf'))||_0x4efc53[_0x7e3d16('0x16f8')]['autoAssociation']?_0x6826c0['id']:_0x6826c0['resourceId']});}),_0x4efc53['items'][_0x32e88e('0xccd')](function(_0x1a23dd){const _0x1eaf1b=_0x32e88e,_0x5789a1=_0x49cbdd()[_0x1eaf1b('0xe8e')](_0x4efc53[_0x1eaf1b('0x2722')],{'id':_0x1a23dd['id']});_0x1dcb47[_0x1eaf1b('0x1ba2')](_0x1eaf1b('0x20bf'))?_0x1a23dd[_0x1eaf1b('0xc98')]=!![]:_0x1a23dd[_0x1eaf1b('0xc98')]=typeof _0x5789a1!=='undefined'?!![]:![];}),_0x10bd0f();})[_0x1289ab('0x17e7')](function(_0x49aeaa){const _0x14ebdf=_0x1289ab,_0x50eb75=_0x49aeaa&&_0x49aeaa[_0x14ebdf('0x2319')]?_0x49aeaa[_0x14ebdf('0x2319')]:[];_0x4efc53[_0x14ebdf('0xc14')]=_0x49cbdd()[_0x14ebdf('0x787')](_0x50eb75,function(_0x2dc776){const _0x3936c7=_0x14ebdf;return _0x49cbdd()[_0x3936c7('0xe8e')](_0x4efc53[_0x3936c7('0x532')],{'id':_0x2dc776['id']});}),_0x4efc53[_0x14ebdf('0x1824')]=angular[_0x14ebdf('0x14e5')](_0x4efc53[_0x14ebdf('0xc14')]),_0x4efc53[_0x14ebdf('0x26f4')][_0x14ebdf('0xc14')]=_0x4efc53['selectedItems'],_0x4efc53[_0x14ebdf('0x26f4')][_0x14ebdf('0x532')]=_0x49cbdd()[_0x14ebdf('0x1ada')](_0x4efc53[_0x14ebdf('0x2722')],_0x4efc53[_0x14ebdf('0x26f4')][_0x14ebdf('0xc14')],'id'),_0x405207();})['catch'](function(_0x2e5171){_0x43b5e6(_0x2e5171);});});}function _0x2e77d4(){return _0x478eb6(function(_0x2f847e,_0x268a81){const _0x4ec021=a0_0xd29e;return _0xed9a2f['userProfileResource'][_0x4ec021('0x1c53')]({'sectionId':_0x4efc53[_0x4ec021('0x16f8')]['id'],'nolimit':!![]})['$promise'][_0x4ec021('0x17e7')](function(_0x258652){_0x2f847e(_0x258652);})[_0x4ec021('0x16df')](function(_0x42c707){_0x268a81(_0x42c707);});});}function _0x10bd0f(){return _0x478eb6(function(_0x264d37,_0x53c304){const _0x591e04=a0_0xd29e;return _0xed9a2f[_0x591e04('0x1e28')][_0x591e04('0x141f')]({'id':_0x4efc53['whatsappQueue']['id'],'fields':'id,name','nolimit':!![]})[_0x591e04('0x1af5')][_0x591e04('0x17e7')](function(_0x1ce8ac){_0x264d37(_0x1ce8ac);})[_0x591e04('0x16df')](function(_0x51cf8c){_0x53c304(_0x51cf8c);});});}function _0x16d0ce(){return _0x478eb6(function(_0x4db83a,_0x4b82c1){const _0xb533a6=a0_0xd29e;return _0xed9a2f['team'][_0xb533a6('0x1c53')]({'fields':_0xb533a6('0x12d2'),'nolimit':!![]})['$promise']['then'](function(_0x32449f){_0x4db83a(_0x32449f);})[_0xb533a6('0x16df')](function(_0x287cd2){_0x4b82c1(_0x287cd2);});});}function _0x1c472f(_0x4c045f){return _0x478eb6(function(_0x3678f1,_0x606397){const _0x1dbb4a=a0_0xd29e;_0x49cbdd()[_0x1dbb4a('0x109a')](_0x4c045f)?_0x3678f1():_0xed9a2f[_0x1dbb4a('0x1e28')][_0x1dbb4a('0x670')]({'id':_0x4efc53['whatsappQueue']['id'],'ids':_0x49cbdd()[_0x1dbb4a('0x787')](_0x4c045f,'id')})[_0x1dbb4a('0x1af5')][_0x1dbb4a('0x17e7')](function(){_0x3678f1();})[_0x1dbb4a('0x16df')](function(_0x225e23){_0x606397(_0x225e23);});});}function _0x331d41(_0x4d02b9){return _0x478eb6(function(_0x4259ba,_0x4bb5e2){const _0x5573b=a0_0xd29e;_0x49cbdd()[_0x5573b('0x109a')](_0x4d02b9)?_0x4259ba():_0xed9a2f[_0x5573b('0x1e28')]['removeTeams']({'id':_0x4efc53[_0x5573b('0x1e28')]['id'],'ids':_0x49cbdd()[_0x5573b('0x787')](_0x4d02b9,'id')})['$promise'][_0x5573b('0x17e7')](function(){_0x4259ba();})[_0x5573b('0x16df')](function(_0x58f418){_0x4bb5e2(_0x58f418);});});}function _0x17b8ec(){const _0x1c7bfd=_0x1f1bd1,_0x28e745=_0x49cbdd()[_0x1c7bfd('0x1ada')](_0x4efc53[_0x1c7bfd('0x1824')],_0x4efc53[_0x1c7bfd('0xc14')],'id'),_0x4da3c7=_0x49cbdd()[_0x1c7bfd('0x1ada')](_0x4efc53[_0x1c7bfd('0xc14')],_0x4efc53['startingSelectedItems'],'id');return _0x331d41(_0x28e745)['then'](function(){return _0x1c472f(_0x4da3c7);})[_0x1c7bfd('0x17e7')](function(){const _0x2df7bc=_0x1c7bfd;_0x4efc53[_0x2df7bc('0x25dc')]=![],_0x4efc53[_0x2df7bc('0x181b')]=angular[_0x2df7bc('0x14e5')](_0x4efc53[_0x2df7bc('0x2722')]),_0x4efc53[_0x2df7bc('0x1824')]=angular['copy'](_0x4efc53[_0x2df7bc('0xc14')]),_0x528da5['success']({'title':'SUCCESS','msg':'Teams\x20association\x20has\x20been\x20updated!'});})[_0x1c7bfd('0x16df')](function(_0x2a0083){const _0x1931c7=_0x1c7bfd;_0x528da5['error']({'title':_0x2a0083['status']?_0x1931c7('0x14f7')+_0x2a0083['status']+_0x1931c7('0x16e4')+_0x2a0083[_0x1931c7('0x1833')]:_0x1931c7('0x244e'),'msg':_0x2a0083[_0x1931c7('0x11c5')]?JSON['stringify'](_0x2a0083[_0x1931c7('0x1457')]):_0x2a0083[_0x1931c7('0x9b6')]()});});}function _0x5de072(){const _0x18703d=_0x1f1bd1;_0x236325[_0x18703d('0x212a')]();}}const _0x3523bb=_0x37c609,_0xd7797c=_0x4cf2bc['p']+_0x4376d8('0x119c');_0x331b78[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),'$location',_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),'$translate','license',_0x4376d8('0x1aeb'),'api',_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1e28'),'userProfileSection'];function _0x331b78(_0x111aa6,_0x2fefcf,_0x340844,_0x2e736b,_0x5dfaa,_0x3d219d,_0x5e84bc,_0x55e0c6,_0x2e9ef3,_0x13c36d,_0x329554,_0x5c0866){const _0xcd736c=_0x4376d8,_0x2a1769=this;_0x2a1769['currentUser']=_0x13c36d[_0xcd736c('0x2831')](),_0x2a1769['license']=_0x3d219d,_0x2a1769[_0xcd736c('0x1aeb')]=_0x5e84bc,_0x2a1769[_0xcd736c('0x1572')]=_0x2a1769['setting'][_0xcd736c('0x23ea')]?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'',_0x2a1769[_0xcd736c('0xaed')]=_0x2fefcf['protocol']()+'://'+_0x2fefcf[_0xcd736c('0x108')](),_0x2a1769['whatsappQueue']=_0x329554||_0x111aa6[_0xcd736c('0x16fb')][_0xcd736c('0x1e28')]||{},_0x2a1769[_0xcd736c('0x383')]=_0x5c0866&&_0x5c0866[_0xcd736c('0x335')]==0x1?_0x5c0866['rows'][0x0]:null,_0x2a1769['crudPermissions']=_0x13c36d[_0xcd736c('0x17a9')](_0x2a1769['userProfileSection']?_0x2a1769[_0xcd736c('0x383')][_0xcd736c('0x103e')]:null),_0x2a1769[_0xcd736c('0x6ee')]={},_0x2a1769[_0xcd736c('0xde7')]=_0x111aa6['params']['tab']||0x0,_0x2a1769['teamadddialog']=_0x408e7e,_0x2a1769[_0xcd736c('0x2359')]=_0x50b8bb,_0x2a1769[_0xcd736c('0x99f')]=_0x2e9ef3[_0xcd736c('0x1178')],_0x2a1769[_0xcd736c('0xc6b')]=_0xd87b40,_0x2a1769[_0xcd736c('0x12d7')]=_0x105a0e;function _0x408e7e(_0x51c1d2,_0x17b5aa){const _0x1982fe=_0xcd736c;_0x340844[_0x1982fe('0x28e2')]({'controller':_0x1982fe('0x1b30'),'controllerAs':'vm','templateUrl':_0xd7797c,'parent':angular[_0x1982fe('0x1ce1')](_0x2e736b['body']),'targetEvent':_0x17b5aa,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x51c1d2,'whatsappQueues':_0x2a1769[_0x1982fe('0x1e35')]?_0x2a1769['whatsappQueues'][_0x1982fe('0x2319')]:[],'crudPermissions':_0x2a1769[_0x1982fe('0x103e')]}});}function _0x50b8bb(_0x11832e,_0x289ac1){const _0x1ac7b6=_0xcd736c;_0x340844[_0x1ac7b6('0x28e2')]({'controller':_0x1ac7b6('0xc40'),'controllerAs':'vm','templateUrl':_0x249e33,'parent':angular[_0x1ac7b6('0x1ce1')](_0x2e736b[_0x1ac7b6('0x13aa')]),'targetEvent':_0x289ac1,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x11832e,'whatsappQueues':_0x2a1769[_0x1ac7b6('0x1e35')]?_0x2a1769['whatsappQueues']['rows']:[],'crudPermissions':_0x2a1769['crudPermissions'],'realtime':![]}});}function _0xd87b40(){const _0x35c0ca=_0xcd736c;_0x111aa6['go'](_0x35c0ca('0x1125'),{},{'reload':_0x35c0ca('0x1125')});}function _0x105a0e(){const _0x24dd5d=_0xcd736c;_0x55e0c6[_0x24dd5d('0x1e28')][_0x24dd5d('0x27ba')]({'id':_0x2a1769[_0x24dd5d('0x1e28')]['id']},_0x2a1769[_0x24dd5d('0x1e28')])[_0x24dd5d('0x1af5')][_0x24dd5d('0x17e7')](function(){const _0xad06e1=_0x24dd5d;_0x2e9ef3[_0xad06e1('0x130d')]({'title':_0xad06e1('0x2700'),'msg':_0x2a1769[_0xad06e1('0x1e28')][_0xad06e1('0x2aa')]?_0x2a1769[_0xad06e1('0x1e28')]['name']+'\x20has\x20been\x20updated!':''});})['catch'](function(_0x58b3bb){const _0x5eeb01=_0x24dd5d;_0x2e9ef3['error']({'title':_0x58b3bb[_0x5eeb01('0x11c5')]?'API:'+_0x58b3bb['status']+'\x20-\x20'+_0x58b3bb[_0x5eeb01('0x1833')]:_0x5eeb01('0x2245'),'msg':_0x58b3bb['data']?JSON['stringify'](_0x58b3bb[_0x5eeb01('0x1457')]):_0x58b3bb[_0x5eeb01('0x9b6')]()});});}}const _0x333da1=_0x331b78;_0x450651[_0x4376d8('0x1b9c')]=[_0x4376d8('0x668'),_0x4376d8('0x198f'),_0x4376d8('0xc4c'),_0x4376d8('0xf69'),_0x4376d8('0x14f6'),_0x4376d8('0x26ca'),_0x4376d8('0xef1'),_0x4376d8('0x28da'),_0x4376d8('0x1e35'),'userProfile',_0x4376d8('0x383'),_0x4376d8('0x212e'),_0x4376d8('0x1606'),_0x4376d8('0x108a'),_0x4376d8('0x1885'),_0x4376d8('0x1d11'),'setting'];function _0x450651(_0x603fd9,_0x2a9990,_0x515d9e,_0x232284,_0x149a0f,_0x4ddcd8,_0x1f3bc7,_0x5db48b,_0x2f910c,_0x1d3857,_0x5397c6,_0x160624,_0x4c573a,_0x891ea2,_0x5c6b26,_0x56b1ba,_0x583a0f){const _0x2daa84=_0x4376d8,_0x52725a=this;_0x52725a[_0x2daa84('0x1d11')]=_0x56b1ba,_0x52725a[_0x2daa84('0x1aeb')]=_0x583a0f,_0x52725a[_0x2daa84('0x197c')]=_0x5c6b26[_0x2daa84('0x2831')](),_0x52725a['whatsappQueues']=_0x2f910c||{'count':0x0,'rows':[]},_0x52725a[_0x2daa84('0xdeb')]=_0x1d3857,_0x52725a[_0x2daa84('0x383')]=_0x5397c6&&_0x5397c6[_0x2daa84('0x335')]==0x1?_0x5397c6['rows'][0x0]:null,_0x52725a[_0x2daa84('0x103e')]=_0x5c6b26[_0x2daa84('0x17a9')](_0x52725a[_0x2daa84('0x383')]?_0x52725a['userProfileSection'][_0x2daa84('0x103e')]:null),_0x52725a[_0x2daa84('0x23c3')]=_0x2daa84('0x1e35'),_0x52725a[_0x2daa84('0x26a1')]='',_0x52725a['listOrderAsc']=null,_0x52725a[_0x2daa84('0x1ba7')]=[],_0x52725a[_0x2daa84('0x826')]={'fields':_0x2daa84('0x1029'),'sort':_0x2daa84('0x1ac6'),'channel':_0x2daa84('0x1d27'),'limit':0xa,'page':0x1},_0x52725a[_0x2daa84('0x245b')]=_0x49cbdd()[_0x2daa84('0x8de')]([{'option':_0x2daa84('0x1890'),'value':_0x2daa84('0xad6')},{'option':'RR\x20Memory','value':_0x2daa84('0x19b1')}],function(_0x3390ea){return _0x49cbdd()['replace'](_0x3390ea['value'],new RegExp('\x27','g'),'');}),_0x52725a[_0x2daa84('0xcd4')]=_0x569a8c,_0x52725a[_0x2daa84('0x1e34')]=_0x729f3,_0x52725a[_0x2daa84('0x2359')]=_0x40e3d3,_0x52725a['deleteconfirm']=_0x4ccd2f,_0x52725a[_0x2daa84('0xda8')]=_0xe2771f,_0x52725a[_0x2daa84('0x130d')]=_0x159c1a,_0x52725a[_0x2daa84('0x1b99')]=_0xd5be47,_0x52725a[_0x2daa84('0x1eaa')]=_0x246947,_0x52725a[_0x2daa84('0x2544')]=_0xff23a5,_0x52725a[_0x2daa84('0x18f6')]=_0x1b26c2,_0x52725a['deleteSelectedWhatsappQueues']=_0x31933e,_0x52725a[_0x2daa84('0x1737')]=_0x2bdb04,_0x52725a[_0x2daa84('0x309')]=_0x5549d0;function _0x569a8c(_0x2f18f3){const _0x28bfbe=_0x2daa84;_0x515d9e['go'](_0x28bfbe('0x2004'),{'id':_0x2f18f3['id'],'whatsappQueue':_0x2f18f3,'crudPermissions':_0x52725a[_0x28bfbe('0x103e')]});}function _0x729f3(_0x3fd649,_0x124539){const _0x15d3a4=_0x2daa84;_0x149a0f[_0x15d3a4('0x28e2')]({'controller':_0x15d3a4('0x1b30'),'controllerAs':'vm','templateUrl':_0xd7797c,'parent':angular[_0x15d3a4('0x1ce1')](_0x4ddcd8[_0x15d3a4('0x13aa')]),'targetEvent':_0x124539,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x3fd649,'whatsappQueues':_0x52725a[_0x15d3a4('0x1e35')]?_0x52725a['whatsappQueues']['rows']:[],'crudPermissions':_0x52725a[_0x15d3a4('0x103e')]}});}function _0x40e3d3(_0x5ad5f7,_0x4e8a99){const _0x436832=_0x2daa84;_0x149a0f[_0x436832('0x28e2')]({'controller':'WhatsappQueueagentaddController','controllerAs':'vm','templateUrl':_0x249e33,'parent':angular['element'](_0x4ddcd8[_0x436832('0x13aa')]),'targetEvent':_0x4e8a99,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x5ad5f7,'whatsappQueues':_0x52725a[_0x436832('0x1e35')]?_0x52725a[_0x436832('0x1e35')]['rows']:[],'crudPermissions':_0x52725a[_0x436832('0x103e')],'realtime':![]}});}function _0x4ccd2f(_0x549c1a,_0x3c6b0b){const _0x1e796d=_0x2daa84,_0x533509=_0x149a0f[_0x1e796d('0x1121')]()['title'](_0x1e796d('0x5e1')+_0x49cbdd()[_0x1e796d('0x1c98')](_0x1e796d('0x1e28'))+'?')['htmlContent'](''+(_0x549c1a[_0x1e796d('0x2aa')]||_0x1e796d('0x1e28'))+_0x1e796d('0x1d23')+_0x1e796d('0xe9f'))[_0x1e796d('0x2095')](_0x1e796d('0xf95'))[_0x1e796d('0x104f')](_0x3c6b0b)['ok']('OK')[_0x1e796d('0x1d47')](_0x1e796d('0x28a0'));_0x149a0f['show'](_0x533509)[_0x1e796d('0x17e7')](function(){_0xff23a5(_0x549c1a);},function(){const _0x55c80f=_0x1e796d;console[_0x55c80f('0x1d63')](_0x55c80f('0x28a0'));});}function _0xe2771f(){const _0x57a837=_0x2daa84;if(_0x5c6b26['hasRole']('admin'))_0x515d9e['go']('app.whatsapp.realtime.queues',{});else return _0x160624[_0x57a837('0x383')][_0x57a837('0x1c53')]({'userProfileId':_0x5c6b26[_0x57a837('0x2831')]()['userProfileId'],'sectionId':0x83e})[_0x57a837('0x1af5')][_0x57a837('0x17e7')](function(_0x2dd5a1){const _0x2d4ca2=_0x57a837,_0x479f99=_0x2dd5a1&&_0x2dd5a1[_0x2d4ca2('0x2319')]?_0x2dd5a1['rows'][0x0]:null;_0x479f99&&_0x479f99[_0x2d4ca2('0x1cd3')]?_0x515d9e['go']('app.whatsapp.realtime.queues',{}):_0x891ea2[_0x2d4ca2('0x1178')]({'title':_0x5db48b[_0x2d4ca2('0x1acc')](_0x2d4ca2('0x286e')),'msg':_0x5db48b[_0x2d4ca2('0x1acc')](_0x2d4ca2('0x1169'))});})['catch'](function(_0x44e25b){const _0x294c86=_0x57a837;_0x891ea2[_0x294c86('0x1db9')]({'title':_0x44e25b[_0x294c86('0x11c5')]?_0x294c86('0x14f7')+_0x44e25b[_0x294c86('0x11c5')]+_0x294c86('0x16e4')+_0x44e25b[_0x294c86('0x1833')]:_0x294c86('0x338'),'msg':_0x44e25b[_0x294c86('0x11c5')]?JSON['stringify'](_0x44e25b[_0x294c86('0x1457')]):_0x44e25b[_0x294c86('0x9b6')]()});});}let _0xaf5a68=!![],_0xf2afb5=0x1;_0x603fd9[_0x2daa84('0x620')](_0x2daa84('0x3ed'),function(_0x1fead4,_0xc96ab2){const _0xf024a2=_0x2daa84;_0xaf5a68?_0x1f3bc7(function(){_0xaf5a68=![];}):(!_0xc96ab2&&(_0xf2afb5=_0x52725a['query']['page']),_0x1fead4!==_0xc96ab2&&(_0x52725a['query'][_0xf024a2('0x115a')]=0x1),!_0x1fead4&&(_0x52725a['query'][_0xf024a2('0x115a')]=_0xf2afb5),_0x52725a[_0xf024a2('0x1b99')]());});function _0x159c1a(_0xb98473){const _0x27ef81=_0x2daa84;_0x52725a[_0x27ef81('0x1e35')]=_0xb98473||{'count':0x0,'rows':[]};}function _0xd5be47(){const _0x6a3a34=_0x2daa84;_0x52725a['query']['offset']=(_0x52725a[_0x6a3a34('0x826')]['page']-0x1)*_0x52725a[_0x6a3a34('0x826')]['limit'],_0x5c6b26['hasRole']('admin')?_0x52725a[_0x6a3a34('0x1691')]=_0x160624[_0x6a3a34('0x1e28')][_0x6a3a34('0x1c53')](_0x52725a[_0x6a3a34('0x826')],_0x159c1a)[_0x6a3a34('0x1af5')]:(_0x52725a[_0x6a3a34('0x826')]['id']=_0x52725a[_0x6a3a34('0xdeb')]['id'],_0x52725a[_0x6a3a34('0x826')][_0x6a3a34('0x16f8')]=_0x6a3a34('0x1d85'),_0x52725a[_0x6a3a34('0x1691')]=_0x160624[_0x6a3a34('0xdeb')][_0x6a3a34('0x2447')](_0x52725a[_0x6a3a34('0x826')],_0x159c1a)[_0x6a3a34('0x1af5')]);}function _0x246947(_0x3974cf,_0x403340){const _0x18ba80=_0x2daa84;_0x149a0f[_0x18ba80('0x28e2')]({'controller':'CreateOrEditWhatsappQueueDialogController','controllerAs':'vm','templateUrl':_0x3db769,'parent':angular['element'](_0x4ddcd8[_0x18ba80('0x13aa')]),'targetEvent':_0x3974cf,'clickOutsideToClose':!![],'locals':{'whatsappQueue':_0x403340,'whatsappQueues':_0x52725a[_0x18ba80('0x1e35')]['rows'],'license':_0x52725a[_0x18ba80('0x1d11')],'setting':_0x52725a[_0x18ba80('0x1aeb')],'crudPermissions':_0x52725a[_0x18ba80('0x103e')]}});}function _0xff23a5(_0x271ee0){const _0x18bece=_0x2daa84;_0x160624[_0x18bece('0x1e28')]['delete']({'id':_0x271ee0['id']})[_0x18bece('0x1af5')]['then'](function(){const _0x1eb86b=_0x18bece;_0x49cbdd()[_0x1eb86b('0x5f3')](_0x52725a[_0x1eb86b('0x1e35')][_0x1eb86b('0x2319')],{'id':_0x271ee0['id']}),_0x52725a[_0x1eb86b('0x1e35')][_0x1eb86b('0x335')]-=0x1,!_0x52725a[_0x1eb86b('0x1e35')][_0x1eb86b('0x2319')]['length']&&_0x52725a['getWhatsappQueues'](),_0x891ea2[_0x1eb86b('0x130d')]({'title':_0x49cbdd()['startCase'](_0x1eb86b('0xd90'))+_0x1eb86b('0x2673'),'msg':_0x271ee0[_0x1eb86b('0x2aa')]?_0x271ee0[_0x1eb86b('0x2aa')]+'\x20has\x20been\x20deleted!':''});})['catch'](function(_0x5319e6){const _0x24e70a=_0x18bece;if(_0x5319e6[_0x24e70a('0x1457')]&&_0x5319e6[_0x24e70a('0x1457')][_0x24e70a('0x73e')]&&_0x5319e6[_0x24e70a('0x1457')][_0x24e70a('0x73e')]['length']){_0x52725a[_0x24e70a('0x73e')]=_0x5319e6[_0x24e70a('0x1457')]['errors']||[{'message':_0x5319e6[_0x24e70a('0x9b6')](),'type':'SYSTEM:DELETEwhatsappQueue'}];for(let _0x421325=0x0;_0x421325<_0x5319e6[_0x24e70a('0x1457')][_0x24e70a('0x73e')]['length'];_0x421325++){_0x891ea2[_0x24e70a('0x1db9')]({'title':_0x5319e6[_0x24e70a('0x1457')][_0x24e70a('0x73e')][_0x421325][_0x24e70a('0x412')],'msg':_0x5319e6['data'][_0x24e70a('0x73e')][_0x421325][_0x24e70a('0x1603')]});}}else _0x891ea2[_0x24e70a('0x1db9')]({'title':_0x5319e6[_0x24e70a('0x11c5')]?'API:'+_0x5319e6[_0x24e70a('0x11c5')]+'\x20-\x20'+_0x5319e6[_0x24e70a('0x1833')]:_0x24e70a('0x2482'),'msg':_0x5319e6['data']?JSON[_0x24e70a('0x678')](_0x5319e6['data']['message']):_0x5319e6['message']||_0x5319e6[_0x24e70a('0x9b6')]()});});}function _0x1b26c2(){const _0x28e99e=_0x2daa84,_0x12b92c=angular[_0x28e99e('0x14e5')](_0x52725a[_0x28e99e('0x1ba7')]);return _0x52725a[_0x28e99e('0x1ba7')]=[],_0x12b92c;}function _0x31933e(_0x20e792){const _0x4e69b2=_0x2daa84,_0x77a66f=_0x149a0f[_0x4e69b2('0x1121')]()['title'](_0x4e69b2('0x27ad'))[_0x4e69b2('0x211f')](_0x4e69b2('0xa53')+_0x52725a['selectedWhatsappQueues'][_0x4e69b2('0x1f73')]+_0x4e69b2('0x145a')+_0x4e69b2('0xe9f'))[_0x4e69b2('0x2095')](_0x4e69b2('0x28a'))[_0x4e69b2('0x104f')](_0x20e792)['ok']('OK')[_0x4e69b2('0x1d47')]('CANCEL');_0x149a0f[_0x4e69b2('0x28e2')](_0x77a66f)[_0x4e69b2('0x17e7')](function(){const _0x3e5a44=_0x4e69b2;_0x52725a[_0x3e5a44('0x1ba7')][_0x3e5a44('0xccd')](function(_0x18c460){_0xff23a5(_0x18c460);}),_0x52725a['selectedWhatsappQueues']=[];});}function _0x2bdb04(){const _0x4b3ca6=_0x2daa84;_0x52725a[_0x4b3ca6('0x1ba7')]=[];}function _0x5549d0(){const _0x16dcb5=_0x2daa84;_0x52725a['selectedWhatsappQueues']=_0x52725a[_0x16dcb5('0x1e35')]['rows'];}}const _0x2ebb84=_0x450651;_0x456f7d[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x456f7d(_0x2fe82f,_0x39159e){const _0x2147c9=_0x4376d8;_0x2fe82f['state'](_0x2147c9('0x24a'),{'abstract':!![],'url':'/whatsapp'})['state']('app.whatsapp.whatsappQueues',{'url':_0x2147c9('0x1e81'),'views':{'content@app':{'templateUrl':_0x16a3e5,'controller':_0x2147c9('0x1c14')}},'resolve':{'whatsappQueues':['apiResolver','Auth',function(_0x576dc3,_0x4ee39d){const _0x50a425=_0x2147c9;return _0x4ee39d[_0x50a425('0x1ba2')]('admin')?_0x576dc3[_0x50a425('0x898')](_0x50a425('0x150a'),{'fields':_0x50a425('0x1029'),'sort':_0x50a425('0x1ac6'),'channel':_0x50a425('0x1d27'),'limit':0xa,'offset':0x0}):_0x576dc3[_0x50a425('0x898')]('userProfile@getResources',{'id':_0x4ee39d[_0x50a425('0x2831')]()['userProfileId'],'section':'WhatsappQueues','fields':_0x50a425('0x1029'),'sort':'-updatedAt','channel':_0x50a425('0x1d27'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2147c9('0x177'),'Auth',function(_0x2ba775,_0x2e1a86){const _0x4d728f=_0x2147c9;return _0x2e1a86[_0x4d728f('0x1ba2')](_0x4d728f('0x20bf'))?null:_0x2ba775[_0x4d728f('0x898')](_0x4d728f('0x235d'),{'fields':'id,name,crudPermissions','id':_0x2e1a86['getCurrentUser']()[_0x4d728f('0x1e76')]});}],'userProfileSection':[_0x2147c9('0x177'),'Auth',function(_0x39ef5b,_0x46f28b){const _0x165f31=_0x2147c9;return _0x46f28b[_0x165f31('0x1ba2')](_0x165f31('0x20bf'))?null:_0x39ef5b['resolve'](_0x165f31('0x23e7'),{'fields':_0x165f31('0x1134'),'userProfileId':_0x46f28b[_0x165f31('0x2831')]()[_0x165f31('0x1e76')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':_0x2147c9('0x1d27')})[_0x2147c9('0x1b9a')](_0x2147c9('0x2004'),{'url':_0x2147c9('0x2370'),'params':{'whatsappQueue':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x4a43b9,'controller':_0x2147c9('0x2867')}},'resolve':{'whatsappQueue':['apiResolver','$stateParams',function(_0x3cd1a3,_0x5dede6){const _0x5a5a32=_0x2147c9;return _0x3cd1a3[_0x5a5a32('0x898')](_0x5a5a32('0x150a'),{'fields':_0x5a5a32('0x1029'),'id':_0x5dede6['id']});}],'userProfileSection':[_0x2147c9('0x177'),_0x2147c9('0x1885'),function(_0x14610a,_0x54e739){const _0x3f614e=_0x2147c9;return _0x14610a[_0x3f614e('0x898')](_0x3f614e('0x23e7'),{'fields':_0x3f614e('0x1134'),'userProfileId':_0x54e739['getCurrentUser']()[_0x3f614e('0x1e76')],'sectionId':0x835});}]},'authenticate':!![],'permissionId':0x835,'bodyClass':'whatsapp'})[_0x2147c9('0x1b9a')](_0x2147c9('0xf68'),{'url':_0x2147c9('0x25ac'),'views':{'content@app':{'templateUrl':_0x23740e,'controller':_0x2147c9('0x12aa')}},'resolve':{'whatsappAccounts':[_0x2147c9('0x177'),_0x2147c9('0x1885'),function(_0x4741aa,_0x4a520d){const _0x4f5a2c=_0x2147c9;return _0x4a520d[_0x4f5a2c('0x1ba2')]('admin')?_0x4741aa['resolve'](_0x4f5a2c('0xacb'),{'fields':_0x4f5a2c('0x218a'),'sort':_0x4f5a2c('0x1ac6'),'limit':0xa,'offset':0x0}):_0x4741aa['resolve']('userProfile@getResources',{'id':_0x4a520d[_0x4f5a2c('0x2831')]()[_0x4f5a2c('0x1e76')],'section':_0x4f5a2c('0xd91'),'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':_0x4f5a2c('0x1ac6'),'limit':0xa,'offset':0x0});}],'userProfile':[_0x2147c9('0x177'),_0x2147c9('0x1885'),function(_0x27d7b3,_0x12a36f){const _0x4be4dc=_0x2147c9;return _0x12a36f[_0x4be4dc('0x1ba2')](_0x4be4dc('0x20bf'))?null:_0x27d7b3[_0x4be4dc('0x898')](_0x4be4dc('0x235d'),{'fields':_0x4be4dc('0x8d3'),'id':_0x12a36f['getCurrentUser']()[_0x4be4dc('0x1e76')]});}],'userProfileSection':[_0x2147c9('0x177'),_0x2147c9('0x1885'),function(_0x35f6a4,_0x360b2f){const _0x380145=_0x2147c9;return _0x360b2f[_0x380145('0x1ba2')](_0x380145('0x20bf'))?null:_0x35f6a4[_0x380145('0x898')](_0x380145('0x23e7'),{'fields':_0x380145('0x1134'),'userProfileId':_0x360b2f[_0x380145('0x2831')]()[_0x380145('0x1e76')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':_0x2147c9('0x1d27')})[_0x2147c9('0x1b9a')](_0x2147c9('0x9a9'),{'url':_0x2147c9('0x2370'),'params':{'whatsappAccount':undefined,'crudPermissions':undefined},'views':{'content@app':{'templateUrl':_0x32acb8,'controller':'WhatsappAccountController\x20as\x20vm'}},'resolve':{'whatsappAccount':[_0x2147c9('0x177'),'$stateParams',function(_0x49c7cc,_0xf448fc){const _0x7c61b3=_0x2147c9;return _0x49c7cc[_0x7c61b3('0x898')](_0x7c61b3('0xacb'),{'fields':_0x7c61b3('0x218a'),'id':_0xf448fc['id']});}],'userProfileSection':['apiResolver','Auth',function(_0x81ccf,_0x6e3662){const _0x5c9d1a=_0x2147c9;return _0x81ccf[_0x5c9d1a('0x898')]('userProfileSection@get',{'fields':'id,name,enabled,includeAll,autoAssociation,crudPermissions','userProfileId':_0x6e3662[_0x5c9d1a('0x2831')]()[_0x5c9d1a('0x1e76')],'sectionId':0x836});}]},'authenticate':!![],'permissionId':0x836,'bodyClass':'whatsapp'}),_0x39159e[_0x2147c9('0x10b3')](_0x2147c9('0x2443'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x24a'),[_0x4376d8('0x14cd'),_0x4376d8('0x7ba'),_0x4376d8('0x1ae'),_0x4376d8('0x3bb'),_0x4376d8('0x27f9'),_0x4376d8('0x27e2'),'ng-sortable',_0x4376d8('0x9c2'),_0x4376d8('0x2757'),_0x4376d8('0xf54'),_0x4376d8('0xcfd'),'mwFormViewer','mwFormUtils',_0x4376d8('0x1e0d'),_0x4376d8('0x3c4'),_0x4376d8('0x1e63'),'angularMaterialFormBuilder',_0x4376d8('0x272b'),_0x4376d8('0x4c8'),_0x4376d8('0x178b'),_0x4376d8('0xede')])[_0x4376d8('0x1980')](_0x456f7d)['controller'](_0x4376d8('0x2347'),_0x2aa205)[_0x4376d8('0x5ce')](_0x4376d8('0x1434'),_0x5459b7)['controller']('WhatsappAccountagentaddController',_0x1c6249)['controller']('EditWhatsappAccountAppagentDialogController',_0x55db6a)['controller'](_0x4376d8('0x1c3f'),_0x4f4d33)[_0x4376d8('0x5ce')](_0x4376d8('0x2712'),_0x32fa96)[_0x4376d8('0x5ce')](_0x4376d8('0xe31'),_0x1adba8)[_0x4376d8('0x5ce')](_0x4376d8('0xb1'),_0x37b07b)[_0x4376d8('0x5ce')](_0x4376d8('0x1ec4'),_0x3ea457)[_0x4376d8('0x5ce')](_0x4376d8('0x19c0'),_0x1a927d)['controller'](_0x4376d8('0x1b51'),_0x3e8275)[_0x4376d8('0x5ce')](_0x4376d8('0x9ee'),_0x3256a8)[_0x4376d8('0x5ce')]('EditWhatsappAccountAppqueueDialogController',_0x22a68b)['controller'](_0x4376d8('0x11a9'),_0x72f7b2)[_0x4376d8('0x5ce')](_0x4376d8('0x1deb'),_0x309cd4)[_0x4376d8('0x5ce')](_0x4376d8('0x1cdb'),_0x5bdf6e)[_0x4376d8('0x5ce')](_0x4376d8('0xeef'),_0x18c95a)[_0x4376d8('0x5ce')](_0x4376d8('0x403'),_0xb31dfa)[_0x4376d8('0x5ce')](_0x4376d8('0x1946'),_0x472d19)[_0x4376d8('0x5ce')](_0x4376d8('0x16e1'),_0xe79c5a)[_0x4376d8('0x5ce')](_0x4376d8('0x1f8a'),_0x2d4270)[_0x4376d8('0x5ce')](_0x4376d8('0x280e'),_0x2f2744)[_0x4376d8('0x5ce')](_0x4376d8('0xc40'),_0x3f3880)[_0x4376d8('0x5ce')](_0x4376d8('0x1b30'),_0x3523bb)[_0x4376d8('0x5ce')](_0x4376d8('0x4a0'),_0x333da1)[_0x4376d8('0x5ce')](_0x4376d8('0x11c0'),_0x2ebb84);const _0x2d3dc8=_0x4cf2bc['p']+_0x4376d8('0xba5'),_0x1b38ae=_0x4cf2bc['p']+_0x4376d8('0x136c'),_0x5352a6=_0x4cf2bc['p']+_0x4376d8('0x1c4c'),_0x5d4b95=_0x4cf2bc['p']+_0x4376d8('0xba7'),_0x47cea5=_0x4cf2bc['p']+_0x4376d8('0x1d0c'),_0x39988a=_0x4cf2bc['p']+'src/js/modules/core/layouts/vertical-navigation-fullwidth-toolbar.html/vertical-navigation-fullwidth-toolbar.html',_0x5da08b=_0x4cf2bc['p']+_0x4376d8('0x1bdf');_0x37545f[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x198f'),_0x4376d8('0x28db'),_0x4376d8('0xef1'),'api',_0x4376d8('0x1885'),_0x4376d8('0x1aeb')];function _0x37545f(_0x24f972,_0x425eb6,_0x3e26b6,_0x2b9702,_0x3037dd,_0x21ef64,_0x5d46c6){const _0x405880=_0x4376d8,_0x27d38a=this;_0x27d38a[_0x405880('0x2381')]=![],_0x27d38a[_0x405880('0x205b')]=![],_0x27d38a[_0x405880('0x23c4')]=_0x3037dd[_0x405880('0x23c4')];function _0x535859(){const _0xcf9010=_0x405880;if(_0x24f972['params'][_0xcf9010('0x25bd')]&&_0x24f972[_0xcf9010('0x16fb')][_0xcf9010('0x6e')])return _0x21ef64[_0xcf9010('0x361')](),_0x27d38a[_0xcf9010('0x2381')]=!![],_0x3e26b6[_0xcf9010('0x2d8')](_0xcf9010('0xb2a'),_0x24f972['params'][_0xcf9010('0x25bd')]),_0x3037dd[_0xcf9010('0x221e')][_0xcf9010('0x1c53')]({'id':_0x24f972[_0xcf9010('0x16fb')][_0xcf9010('0x6e')]})[_0xcf9010('0x1af5')][_0xcf9010('0x17e7')](function(_0x55cc56){const _0x4cc4fc=_0xcf9010;_0x55cc56&&(_0x21ef64[_0x4cc4fc('0x319')](_0x55cc56),_0x24f972['go'](_0x4cc4fc('0x980')));})[_0xcf9010('0x74e')](function(){const _0x4a7dd8=_0xcf9010;_0x27d38a[_0x4a7dd8('0x2381')]=![];});else _0x21ef64[_0xcf9010('0x214f')]()&&_0x24f972['go'](_0xcf9010('0x980'));_0x27d38a[_0xcf9010('0x205b')]=_0x5d46c6[_0xcf9010('0x205b')];}function _0x57ef07(){const _0xf63b3d=_0x405880;return _0x27d38a[_0xf63b3d('0x2381')]=!![],_0x27d38a[_0xf63b3d('0x1603')]='',_0x21ef64[_0xf63b3d('0x1c45')](_0x27d38a[_0xf63b3d('0x2445')])[_0xf63b3d('0x17e7')](function(){const _0x1bd474=_0xf63b3d;return _0x24f972['go'](_0x1bd474('0x980'));})[_0xf63b3d('0x16df')](function(_0x554c99){const _0xaec41d=_0xf63b3d;_0x27d38a[_0xaec41d('0x1603')]=_0x554c99['data']?_0x554c99[_0xaec41d('0x1457')][_0xaec41d('0x1603')]:_0x554c99[_0xaec41d('0x1603')];})[_0xf63b3d('0x74e')](function(){const _0x4ae960=_0xf63b3d;_0x27d38a[_0x4ae960('0x2381')]=![];});}function _0x1cdb38(_0x5995e0){const _0x34c1d3=_0x405880;_0x27d38a[_0x34c1d3('0x1603')]='',_0x425eb6['location']['href']=_0x21ef64[_0x34c1d3('0x25b4')](_0x5995e0);}_0x27d38a[_0x405880('0x1c45')]=_0x57ef07,_0x27d38a[_0x405880('0x18bd')]=_0x1cdb38,_0x27d38a['onInit']=_0x535859,_0x27d38a[_0x405880('0xdf0')]();}const _0x8b4d77=_0x37545f;_0x1edf66[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x1edf66(_0x8e9ec2,_0x30493b){const _0x5a2d30=_0x4376d8;_0x8e9ec2['state'](_0x5a2d30('0x229b'),{'url':_0x5a2d30('0x1e33'),'views':{'main@':{'templateUrl':_0x1b38ae,'controller':_0x5a2d30('0x1468')},'content@app.login':{'templateUrl':_0x2d3dc8,'controller':_0x5a2d30('0x15cc')}},'bodyClass':_0x5a2d30('0x1c45')}),_0x30493b['addPart'](_0x5a2d30('0x1ca1'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x229b'),[])[_0x4376d8('0x1980')](_0x1edf66)['controller'](_0x4376d8('0x1473'),_0x8b4d77);const _0x4fc5ef=_0x4cf2bc['p']+_0x4376d8('0x73c');_0x3b1403[_0x4376d8('0x1b9c')]=['Auth',_0x4376d8('0x108a'),_0x4376d8('0x28da'),_0x4376d8('0xc4c'),'api'];function _0x3b1403(_0x103525,_0x43a9e4,_0xd8307b,_0x10d58c,_0xbaed83){const _0x23d743=_0x4376d8,_0x1b96bb=this;_0x1b96bb[_0x23d743('0x2445')]={},_0x1b96bb[_0x23d743('0x23c4')]=_0xbaed83[_0x23d743('0x23c4')];function _0x21751b(){const _0x169495=_0x23d743;_0x103525[_0x169495('0x214f')]()&&_0x10d58c['go'](_0x169495('0x980'));}function _0x2efb94(){const _0x270ce3=_0x23d743;return _0xbaed83[_0x270ce3('0x2527')][_0x270ce3('0x2890')](_0x1b96bb[_0x270ce3('0x2445')])['$promise'][_0x270ce3('0x17e7')](function(){const _0xa3fdb=_0x270ce3;_0x43a9e4[_0xa3fdb('0x130d')]({'title':_0xd8307b[_0xa3fdb('0x1acc')](_0xa3fdb('0x16ce')),'msg':_0xd8307b[_0xa3fdb('0x1acc')](_0xa3fdb('0xb22'))});})[_0x270ce3('0x16df')](function(_0x55172d){const _0x5d217b=_0x270ce3;_0x55172d&&_0x43a9e4['error']({'title':_0xd8307b[_0x5d217b('0x1acc')](_0x5d217b('0x8fe')),'msg':_0x55172d[_0x5d217b('0x1457')]?_0x55172d['data'][_0x5d217b('0x1603')]||_0x55172d[_0x5d217b('0x1603')]||_0x55172d:_0x55172d[_0x5d217b('0x1603')]||_0x55172d});});}_0x1b96bb[_0x23d743('0xa55')]=_0x2efb94,_0x1b96bb[_0x23d743('0xdf0')]=_0x21751b;}const _0x461e27=_0x3b1403;_0x5a366c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x5a366c(_0x438472,_0x5955c6){const _0x5ef6e5=_0x4376d8;_0x438472[_0x5ef6e5('0x1b9a')]('app.forgot',{'url':_0x5ef6e5('0x1ae4'),'views':{'main@':{'templateUrl':_0x1b38ae,'controller':'MainController\x20as\x20vm'},'content@app.forgot':{'templateUrl':_0x4fc5ef,'controller':'ForgotPasswordController\x20as\x20vm'}},'bodyClass':'forgot'}),_0x5955c6[_0x5ef6e5('0x10b3')](_0x5ef6e5('0x230b'));}angular[_0x4376d8('0x11c4')](_0x4376d8('0x1f96'),[])[_0x4376d8('0x1980')](_0x5a366c)[_0x4376d8('0x5ce')]('ForgotPasswordController',_0x461e27);const _0x349607=_0x4cf2bc['p']+_0x4376d8('0x1cab');_0x31bfbe['$inject']=[_0x4376d8('0x1885'),_0x4376d8('0x108a'),_0x4376d8('0x28da'),_0x4376d8('0xc4c'),_0x4376d8('0x212e'),_0x4376d8('0x118b')];function _0x31bfbe(_0x1131fd,_0x144909,_0x540936,_0x376d1e,_0x11e5a1,_0x47d8a0){const _0x2360d8=_0x4376d8,_0x1bc5d6=this;_0x1bc5d6[_0x2360d8('0x2445')]={'token':_0x47d8a0[_0x2360d8('0x25bd')]},_0x1bc5d6[_0x2360d8('0x1aeb')]={},_0x1bc5d6[_0x2360d8('0x23c4')]=_0x11e5a1[_0x2360d8('0x23c4')];function _0x99718f(){const _0x14d37a=_0x2360d8;return _0x1131fd['isLoggedIn']()&&_0x376d1e['go'](_0x14d37a('0x980')),_0x11e5a1['setting'][_0x14d37a('0x2677')]({'id':0x1})[_0x14d37a('0x1af5')]['then'](function(_0x2d393d){const _0x9d7988=_0x14d37a;_0x1bc5d6[_0x9d7988('0x1aeb')]=_0x2d393d,_0x1bc5d6[_0x9d7988('0x1572')]=_0x1bc5d6[_0x9d7988('0x1aeb')]['securePassword']?/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/:'';})[_0x14d37a('0x16df')](function(_0x3d321b){const _0x5991d5=_0x14d37a;_0x3d321b&&_0x144909[_0x5991d5('0x1db9')]({'title':_0x5991d5('0x1064'),'msg':_0x3d321b['data']?_0x3d321b[_0x5991d5('0x1457')][_0x5991d5('0x1603')]||_0x3d321b[_0x5991d5('0x1603')]||_0x3d321b:_0x3d321b[_0x5991d5('0x1603')]||_0x3d321b});});}function _0x524369(){const _0x318f47=_0x2360d8;return _0x11e5a1['auth'][_0x318f47('0x2a9')](_0x1bc5d6['form'])[_0x318f47('0x1af5')][_0x318f47('0x17e7')](function(){const _0x3a66a9=_0x318f47;_0x144909[_0x3a66a9('0x130d')]({'title':_0x540936[_0x3a66a9('0x1acc')]('RESETPASSWORD.PASSWORD_RESET'),'msg':_0x540936[_0x3a66a9('0x1acc')](_0x3a66a9('0xbb2'))}),_0x376d1e['go'](_0x3a66a9('0x229b'));})['catch'](function(_0x497c9a){const _0x52e338=_0x318f47;_0x497c9a&&_0x144909[_0x52e338('0x1db9')]({'title':_0x540936[_0x52e338('0x1acc')]('RESETPASSWORD.PASSWORD_RESET_ERROR'),'msg':_0x497c9a['data']?_0x497c9a[_0x52e338('0x1457')][_0x52e338('0x1603')]||_0x497c9a['message']||_0x497c9a:_0x497c9a[_0x52e338('0x1603')]||_0x497c9a});});}_0x1bc5d6[_0x2360d8('0x7f')]=_0x524369,_0x1bc5d6[_0x2360d8('0xdf0')]=_0x99718f;}const _0xc217ba=_0x31bfbe;_0x48d3a7[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x21fc')];function _0x48d3a7(_0x5cf915,_0x84f287){const _0x284b04=_0x4376d8;_0x5cf915['state'](_0x284b04('0x199c'),{'url':'/reset/:token','views':{'main@':{'templateUrl':_0x1b38ae,'controller':'MainController\x20as\x20vm'},'content@app.reset':{'templateUrl':_0x349607,'controller':_0x284b04('0xfe2')}},'bodyClass':'reset'}),_0x84f287[_0x284b04('0x10b3')]('app/reset');}angular[_0x4376d8('0x11c4')](_0x4376d8('0x199c'),[])[_0x4376d8('0x1980')](_0x48d3a7)['controller'](_0x4376d8('0x1a50'),_0xc217ba);const _0x3fa7cc=_0x4cf2bc['p']+_0x4376d8('0x25ad');_0x245670[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0xef1'),'$q',_0x4376d8('0xa61')];function _0x245670(_0x4aae56,_0x3dc504,_0x378a27,_0x58e712){const _0x265b7b=_0x4376d8,_0x4fe084=this;function _0x150b09(_0x44b47a){const _0x2ef165=a0_0xd29e;let _0x5eda06=[];const _0x13a2c6=_0x58e712[_0x2ef165('0x151e')](),_0x4ddc60=_0x378a27[_0x2ef165('0x113c')]();for(let _0x75a39a=0x0;_0x75a39a<_0x13a2c6[_0x2ef165('0x1f73')];_0x75a39a+=0x1){_0x13a2c6[_0x75a39a]['uisref']&&_0x5eda06[_0x2ef165('0x269f')](_0x13a2c6[_0x75a39a]);}return _0x44b47a&&(_0x5eda06=_0x5eda06[_0x2ef165('0x2483')](function(_0x5baba9){const _0x5d3b2e=_0x2ef165;if(_0x5baba9[_0x5d3b2e('0x24d3')]['toLowerCase']()['includes'](_0x44b47a[_0x5d3b2e('0x19b')]()))return!![];})),_0x3dc504(function(){_0x4ddc60['resolve'](_0x5eda06);},0x3e8),_0x4ddc60[_0x2ef165('0x1691')];}function _0x1b1f82(_0xfe4475){const _0x48556f=a0_0xd29e;_0xfe4475['uisref']&&(_0xfe4475[_0x48556f('0x247e')]?_0x4aae56['go'](_0xfe4475[_0x48556f('0x1b9a')],_0xfe4475[_0x48556f('0x247e')]):_0x4aae56['go'](_0xfe4475[_0x48556f('0x1b9a')]));}_0x4fe084[_0x265b7b('0xfba')]=_0x150b09,_0x4fe084[_0x265b7b('0x21d1')]=_0x1b1f82;}const _0x14581d=_0x245670;_0x489b79[_0x4376d8('0x1b9c')]=['$stateProvider','$translatePartialLoaderProvider'];function _0x489b79(_0x30972b,_0x579e33){const _0x2ace17=_0x4376d8;_0x30972b[_0x2ace17('0x1b9a')]('app.errors_error-404',{'url':_0x2ace17('0xd78'),'views':{'main@':{'templateUrl':_0x1b38ae,'controller':'MainController\x20as\x20vm'},'content@app.errors_error-404':{'templateUrl':_0x3fa7cc,'controller':_0x2ace17('0x1717')}},'params':{'status':0x194,'statusText':'','data':{},'config':{}},'bodyClass':_0x2ace17('0x16f3')}),_0x579e33[_0x2ace17('0x10b3')]('app/errors/404');}angular[_0x4376d8('0x11c4')]('app.errors.error-404',[])[_0x4376d8('0x1980')](_0x489b79)[_0x4376d8('0x5ce')]('Error404Controller',_0x14581d);const _0x19ad98=_0x4cf2bc['p']+_0x4376d8('0x1ec7');_0x21fbc9[_0x4376d8('0x1b9c')]=[_0x4376d8('0xc4c'),_0x4376d8('0x19b7')];function _0x21fbc9(_0x4b8b2e,_0x4d5b22){const _0x4ff99c=_0x4376d8,_0xed1e97=this;function _0xb3a34a(){const _0x5dd9e6=a0_0xd29e;_0x4d5b22[_0x5dd9e6('0x162b')](_0x5dd9e6('0x201d'),_0xed1e97[_0x5dd9e6('0x1db9')])['then'](function(_0x339a0c){const _0x4fb86a=_0x5dd9e6;_0xed1e97['send']=!![],_0x339a0c[_0x4fb86a('0x1457')]&&(_0xed1e97[_0x4fb86a('0xe5d')]=_0x339a0c[_0x4fb86a('0x1457')]['id']);},function(){const _0x4c9318=_0x5dd9e6;_0xed1e97[_0x4c9318('0x13b7')]=![];});}_0xed1e97[_0x4ff99c('0xe5d')]='',_0xed1e97[_0x4ff99c('0x13b7')]=![],_0xed1e97[_0x4ff99c('0x1db9')]=_0x4b8b2e[_0x4ff99c('0x16fb')],_0xed1e97[_0x4ff99c('0xdec')]=_0xb3a34a;}const _0x205f94=_0x21fbc9;_0x48fc07[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),'$translatePartialLoaderProvider'];function _0x48fc07(_0x515253,_0x508240){const _0x1b979c=_0x4376d8;_0x515253[_0x1b979c('0x1b9a')](_0x1b979c('0x113f'),{'url':_0x1b979c('0x1d03'),'views':{'main@':{'templateUrl':_0x1b38ae,'controller':_0x1b979c('0x1468')},'content@app.errors_error-500':{'templateUrl':_0x19ad98,'controller':_0x1b979c('0x2254')}},'params':{'status':0x1f4,'statusText':'','data':{},'config':{}},'bodyClass':_0x1b979c('0x1301')}),_0x508240['addPart'](_0x1b979c('0x477'));}angular['module'](_0x4376d8('0x203d'),[])[_0x4376d8('0x1980')](_0x48fc07)['controller'](_0x4376d8('0x2011'),_0x205f94);;angular[_0x4376d8('0x11c4')](_0x4376d8('0x984'),[_0x4376d8('0x2071'),_0x4376d8('0x203d')]),_0xf2639c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x2178')];function _0xf2639c(_0x4a3ba9){const _0x5c1741=_0x4376d8,_0x6a0066={};return _0x6a0066[_0x5c1741('0x23c4')]=!![]?_0x5c1741('0x37a'):0x0,_0x6a0066[_0x5c1741('0x2527')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x27b0'),{},{'local':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x27b0')},'forgot':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xa2f')},'reset':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b3a'),'params':{'token':'@token'}},'user':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8d9'),'params':{'token':'@token'}},'google':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x308')}}),_0x6a0066['jira']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb38')),_0x6a0066[_0x5c1741('0x1207')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'rpc',{},{'startMonitor':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5b0'),'params':{'uniqueid':_0x5c1741('0xc50')}},'stopMonitor':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'rpc/voice/channels/:uniqueid/stopmixmonitor','params':{'uniqueid':_0x5c1741('0xc50')}},'getVoiceChannels':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1fb4')},'getVoiceQueues':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'rpc/voice/queues'},'getChatQueues':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2155')},'getMailQueues':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x942')},'getSmsQueues':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c9a')},'getWhatsappQueues':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c9a')},'getOpenchannelQueues':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x432')},'getFaxQueues':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xcc0')},'getVoiceQueuesPreview':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe47')},'getVoiceQueuesChannels':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2b1')},'getVoiceQueuesChannel':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'rpc/voice/queues/channels/:uniqueid'},'getVoiceQueuesChannelHangup':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x755')},'getVoiceQueuesChannelRedirect':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'rpc/voice/queues/channels/:uniqueid/redirect/:exten'},'getOutbound':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x71a')},'getOutboundChannels':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22cd')},'getAgents':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x6be')},'setAgentCapacity':{'method':'put','url':_0x6a0066['baseUrl']+_0x5c1741('0xc47'),'params':{'id':'@id'}},'getTelephones':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x9e6')},'getTrunks':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x17eb')},'getCampaigns':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1dc0')},'getMailAccounts':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2654')},'getFaxAccounts':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x20')},'getChatQueuesWaitingInteractions':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x123f')},'getMailQueuesWaitingInteractions':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b9')},'getOpenchannelQueuesWaitingInteractions':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xaa2')},'getOpenchannelQueuesIdWaitingInteractions':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x53d')},'getSmsQueuesWaitingInteractions':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1f5d')},'getFaxQueuesWaitingInteractions':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x343')},'getWhatsappQueuesWaitingInteractions':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0xc8a')},'mailQueueNotify':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'rpc/mail/queues/:id/notify','params':{'id':_0x5c1741('0x1f2e')}},'chatQueueNotify':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1ae3'),'params':{'id':'@id'}},'faxQueueNotify':{'method':'post','url':_0x6a0066['baseUrl']+'rpc/fax/queues/:id/notify','params':{'id':_0x5c1741('0x1f2e')}},'smsQueueNotify':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'rpc/sms/queues/:id/notify','params':{'id':'@id'}},'openchannelQueueNotify':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x19f8'),'params':{'id':_0x5c1741('0x1f2e')}},'agentNotify':{'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1efa'),'params':{'id':_0x5c1741('0x1f2e')}}}),_0x6a0066['version']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'version',{},{'fetch':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c7a')},'reset':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc11')},'pull':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x97b')},'restart':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x6ad')},'migrations':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1f76')}}),_0x6a0066['system']=_0x4a3ba9(_0x6a0066['baseUrl']+'system',{},{'killProcess':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'system/process/:pid/kill','params':{'pid':_0x5c1741('0x108e')}}}),_0x6a0066[_0x5c1741('0x9a1')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x1cae'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8'),'isArray':!![]}}),_0x6a0066[_0x5c1741('0x221e')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xfee'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xba6')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x62d'),'params':{'includeAll':_0x5c1741('0xb68')}},'bulkCreate':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xee6'),'isArray':!![]},'addContacts':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/contacts'},'changePassword':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x7c8')},'addQueues':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x23eb')},'removeQueues':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+'users/:id/queues'},'addAvatar':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xa4')},'getAvatar':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xa4')},'getContacts':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x58c')},'getQueues':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x23eb')},'getVoiceQueuesRt':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/queues_rt'},'getGroups':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x7f7')},'getRecordings':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2250')},'getScreenRecordings':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x61')},'getChatInteractions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xab3')},'getOpenchannelInteractions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1cbb')},'getMailInteractions':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x24d7')},'getSmsInteractions':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/sms/interactions'},'getFaxInteractions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb4c')},'getWhatsappInteractions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5c5')},'login':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1dea')},'logout':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x171')},'pause':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x276a')},'unpause':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x31')},'getTeams':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x86d')},'addTeams':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x86d')},'removeTeams':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x86d')},'getLists':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'users/:id/lists'},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x253')},'addChatInteractions':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x23df')},'removeChatInteractions':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+'users/:id/chat_interactions'},'addMailInteractions':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1514')},'removeMailInteractions':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1514')},'addFaxInteractions':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1cc0')},'removeFaxInteractions':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/fax_interactions'},'addSmsInteractions':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1bb5')},'removeSmsInteractions':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1bb5')},'addOpenchannelInteractions':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1a74')},'removeOpenchannelInteractions':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1a74')},'addWhatsappInteractions':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/whatsapp_interactions'},'removeWhatsappInteractions':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8ae')},'getVoicePrefixes':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc79')},'getFaxAccounts':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/fax_accounts'},'addFaxAccounts':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1144')},'removeFaxAccounts':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1144')},'getMailAccounts':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xea9')},'addMailAccounts':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xea9')},'removeMailAccounts':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xea9')},'getOpenchannelAccounts':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x22fe')},'addOpenchannelAccounts':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22fe')},'removeOpenchannelAccounts':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22fe')},'getSmsAccounts':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ef4')},'addSmsAccounts':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/sms_accounts'},'removeSmsAccounts':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1ef4')},'getChatWebsites':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x114b')},'addChatWebsites':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x114b')},'removeChatWebsites':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x114b')},'getWhatsappAccounts':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18ec')},'addWhatsappAccounts':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x18ec')},'removeWhatsappAccounts':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18ec')},'getSquareProjects':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/square_projects'},'addSquareProjects':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xa6e')},'removeSquareProjects':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xa6e')},'getScheduledCalls':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'users/:id/scheduled_calls'},'getApiKey':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x9a3')},'createApiKey':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x9a3')},'removeApiKey':{'isArray':![],'method':'delete','url':_0x6a0066['baseUrl']+_0x5c1741('0x9a3')},'whoami':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1ed5')}}),_0x6a0066[_0x5c1741('0x1122')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1428'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/chanspy/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'voice/chanspy/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0xc76')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x2340'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x25e')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xb4'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x16c2')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'voice/extensions/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/extensions/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x197e'),'params':{'includeAll':_0x5c1741('0xb68')}},'addApplications':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+'voice/extensions/:id/applications'}}),_0x6a0066[_0x5c1741('0xd20')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x2182'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/mohs/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'voice/mohs/:id/clone','params':{'includeAll':'@includeAll'}},'addSound':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/mohs/:id/sounds'},'removeSound':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x19ea')},'getSounds':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/mohs/:id/sounds'}}),_0x6a0066[_0x5c1741('0x1243')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1235'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2737')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc65'),'params':{'includeAll':'@includeAll'}},'getHoppers':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x1fa9')},'getHopperHistories':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x259e')},'getHopperFinals':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc8f')},'getHopperBlacks':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x9b3')},'getTeams':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x221')},'addTeams':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x221')},'removeTeams':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x221')},'addAgents':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x19bd')},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/queues/:id/users'},'getAgents':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x19bd')},'getMembers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x13c')},'getLists':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ea3')},'addLists':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/queues/:id/lists'},'removeLists':{'isArray':!![],'method':'delete','url':_0x6a0066['baseUrl']+_0x5c1741('0x1ea3')},'getBlackLists':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1fa5')},'addBlackLists':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1fa5')},'removeBlackLists':{'isArray':!![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1fa5')}}),_0x6a0066[_0x5c1741('0x5f4')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'voice/recordings/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/recordings/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x23e4'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1657'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x27a7e5,_0x131af3){const _0x33ac7b=_0x5c1741,_0x239be9=_0x131af3();return{'type':_0x239be9[_0x33ac7b('0xb97')],'length':_0x239be9[_0x33ac7b('0x1258')],'buffer':_0x27a7e5};}},'downloads':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x262d')},'runTranscribe':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x28e1')},'downloadTranscribe':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x28e1'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x2d918e,_0x528042){const _0x361a82=_0x5c1741,_0x5a9ec2=_0x528042();return{'type':_0x5a9ec2['content-type'],'length':_0x5a9ec2[_0x361a82('0x1258')],'buffer':_0x2d918e};}}}),_0x6a0066[_0x5c1741('0x1375')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc75'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x51a')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2008'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1cfc'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x3945e1,_0x23f69b){const _0x33c662=_0x5c1741,_0x2cdfea=_0x23f69b();return{'type':_0x2cdfea[_0x33c662('0xb97')],'length':_0x2cdfea[_0x33c662('0x1258')],'buffer':_0x3945e1};}}}),_0x6a0066[_0x5c1741('0x2753')]=_0x4a3ba9(_0x6a0066['baseUrl']+'voice/mails/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1712')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/mails/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'getMessages':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x136')}}),_0x6a0066['voiceMailMessage']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x16d6'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/mails/messages/describe'},'clone':{'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1d9b'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0xc37'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x3607e8,_0x253fcb){const _0x192b23=_0x5c1741,_0x183cff=_0x253fcb();return{'type':_0x183cff[_0x192b23('0xb97')],'length':_0x183cff[_0x192b23('0x1258')],'buffer':_0x3607e8};}}}),_0x6a0066['voiceCallReport']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'voice/calls/reports/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1e13')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xd1'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0xc6f')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2135'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x277d')},'clone':{'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1251'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066['voiceAgentReport']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x48b'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'voice/agents/reports/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x11dd'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x2086')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'voice/queues/reports/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22da')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x9e2'),'params':{'includeAll':_0x5c1741('0xb68')}},'getVoiceQueuesReport':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1bf6')}}),_0x6a0066[_0x5c1741('0x2852')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2cc'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x209d')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xaa4'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x252a')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1080'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1838')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1fd5'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066['voiceTransferReport']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x621'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22dc')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xfab'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x7dc')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'mail/out_servers/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'mail/out_servers/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/out_servers/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x127b')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xafa'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x195')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x140b')},'getDispositions':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/accounts/:id/dispositions'},'removeDispositions':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x140b')},'addAnswer':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'mail/accounts/:id/canned_answers'},'getAnswers':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b9b')},'removeAnswers':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/accounts/:id/canned_answers'},'getImap':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x12a9')},'addImap':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x12a9')},'removeImap':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x12a9')},'getSmtp':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1655')},'addSmtp':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'mail/accounts/:id/out_servers'},'removeSmtp':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/accounts/:id/out_servers'},'addInteraction':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1768')},'getInteractions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1768')},'addApplications':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x871')},'getApplications':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x871')},'getMessages':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/accounts/:id/messages'},'send':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0xdda')},'verifySmtp':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x746')},'addAgents':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/accounts/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1599')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1599')}}),_0x6a0066[_0x5c1741('0x1e8b')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1d42'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xfea')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x708'),'params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'mail/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x747')},'addTeams':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x747')},'removeTeams':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x747')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/queues/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x6a0066['baseUrl']+_0x5c1741('0x10b4')},'getAgents':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x10b4')}}),_0x6a0066['mailSubstatus']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1a69'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'mail/substatuses/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1006'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0xa5')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x7af'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/interactions/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1684'),'params':{'includeAll':'@includeAll'}},'addMessage':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/interactions/:id/messages'},'getMessages':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x243f')},'addTags':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1542')},'removeTags':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+'mail/interactions/:id/tags'},'download':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'mail/interactions/:id/download','responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x24c4ba,_0x315828){const _0x2c044e=_0x5c1741,_0x4330e5=_0x315828();return{'type':_0x4330e5[_0x2c044e('0xb97')],'length':_0x4330e5['content-length'],'buffer':_0x24c4ba};}}}),_0x6a0066[_0x5c1741('0x2839')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x17f2'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xc4e')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x203a'),'params':{'includeAll':_0x5c1741('0xb68')}},'accept':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5fc')},'reject':{'isArray':![],'method':'put','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1e73')},'download':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x10c1'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x57c747,_0x427550){const _0x3f3cb3=_0x5c1741,_0x7c646a=_0x427550();return{'type':_0x7c646a[_0x3f3cb3('0xb97')],'length':_0x7c646a[_0x3f3cb3('0x1258')],'buffer':_0x57c747};}}}),_0x6a0066[_0x5c1741('0x31f')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x222d'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x2787')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'mail/applications/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x6a0066['mailQueueReport']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x21d2'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x7fd')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xe9c'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x40f')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc20'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x887')},'clone':{'method':'post','url':_0x6a0066['baseUrl']+'dashboards/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'addItem':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x188e')},'getItems':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x188e')}}),_0x6a0066['dashboardItem']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'dashboards/items/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xfb0')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'dashboards/items/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x119')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1dd8'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1a5b')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'fax/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x3f8')},'getDispositions':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x3f8')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x3f8')},'addAnswer':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x110b')},'getAnswers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x110b')},'removeAnswers':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'fax/accounts/:id/canned_answers'},'addInteraction':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1977')},'getInteractions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1977')},'addApplications':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x877')},'getApplications':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x877')},'addAccountApplications':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb2d')},'updateAccountApplications':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ff7')},'getMessages':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+'fax/accounts/:id/messages'},'send':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x12ef')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2001')},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'fax/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x2001')}}),_0x6a0066[_0x5c1741('0x1c5e')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x2dc'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x10d0')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xddf'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0xed8')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xea1'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xde1')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1003'),'params':{'includeAll':_0x5c1741('0xb68')}},'addMessage':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'fax/interactions/:id/messages'},'getMessages':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1bc5')},'addTags':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe0d')},'removeTags':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe0d')},'download':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2590'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x208a3b,_0x524204){const _0x1943ed=_0x5c1741,_0x498493=_0x524204();return{'type':_0x498493['content-type'],'length':_0x498493[_0x1943ed('0x1258')],'buffer':_0x208a3b};}}}),_0x6a0066[_0x5c1741('0x22e6')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1151'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x44a')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'fax/messages/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'accept':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc8d')},'reject':{'isArray':![],'method':'put','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x203c')},'download':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8cc'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x42beac,_0x45270e){const _0x52d439=_0x5c1741,_0x53b953=_0x45270e();return{'type':_0x53b953[_0x52d439('0xb97')],'length':_0x53b953[_0x52d439('0x1258')],'buffer':_0x42beac};}}}),_0x6a0066['faxQueue']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x4db'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x28bc')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x27ea'),'params':{'includeAll':_0x5c1741('0xb68')}},'getMembers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x656')},'getTeams':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x44')},'addTeams':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x44')},'removeTeams':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'fax/queues/:id/teams'},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'fax/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x2306')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2306')}}),_0x6a0066[_0x5c1741('0x11f')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2361'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1118')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'fax/reports/queue/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x1060')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x21d9'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc69')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb40'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x25c3')},'getDispositions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x25c3')},'removeDispositions':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x25c3')},'addAnswer':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xb90')},'getAnswers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb90')},'removeAnswers':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb90')},'notify':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x493')},'addApplications':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1aa4')},'getApplications':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1aa4')},'getInteractions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/accounts/:id/interactions'},'send':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2249')},'status':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x177f')},'statusGet':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x177f')},'addAgents':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/accounts/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x24d4')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'sms/accounts/:id/users'}}),_0x6a0066['smsApplication']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'sms/applications/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe98')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'sms/applications/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x17a8')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'sms/interactions/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2d1')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x17e4'),'params':{'includeAll':_0x5c1741('0xb68')}},'addMessage':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1fbb')},'getMessages':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1fbb')},'addTags':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8f8')},'removeTags':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8f8')},'download':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1850'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x36ae80,_0xc242c8){const _0x596c55=_0x5c1741,_0x181191=_0xc242c8();return{'type':_0x181191[_0x596c55('0xb97')],'length':_0x181191[_0x596c55('0x1258')],'buffer':_0x36ae80};}}}),_0x6a0066[_0x5c1741('0x8c2')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x87e'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/messages/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe68'),'params':{'includeAll':_0x5c1741('0xb68')}},'accept':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/messages/:id/accept'},'reject':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe6f')},'status':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/messages/:id/status'}}),_0x6a0066[_0x5c1741('0xdb0')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2289'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x15f6')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/queues/:id/clone','params':{'includeAll':'@includeAll'}},'getMembers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xde3')},'addTeams':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/queues/:id/teams'},'removeTeams':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xde3')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1e11')},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1e11')},'getAgents':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/queues/:id/users'}}),_0x6a0066['openchannelAccount']=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x3a6'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8e5')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x21ae'),'params':{'includeAll':_0x5c1741('0xb68')}},'addDisposition':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'openchannel/accounts/:id/dispositions'},'getDispositions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'openchannel/accounts/:id/dispositions'},'removeDispositions':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b26')},'addAnswer':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x84f')},'getAnswers':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x84f')},'removeAnswers':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x84f')},'notify':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x15aa')},'addApplications':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x7a3')},'getApplications':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x7a3')},'getInteractions':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x4e7')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xc32')},'removeAgents':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+'openchannel/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc32')},'send':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2407')}}),_0x6a0066['openchannelApplication']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x211a'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'openchannel/applications/describe'},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1516'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x21fb')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b95'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1576')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2510'),'params':{'includeAll':_0x5c1741('0xb68')}},'addMessage':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'openchannel/interactions/:id/messages'},'getMessages':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x964')},'addTags':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'openchannel/interactions/:id/tags'},'removeTags':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22b0')},'download':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x101b'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x898d71,_0x296fc5){const _0x1b52a3=_0x5c1741,_0x2ea482=_0x296fc5();return{'type':_0x2ea482[_0x1b52a3('0xb97')],'length':_0x2ea482[_0x1b52a3('0x1258')],'buffer':_0x898d71};}}}),_0x6a0066[_0x5c1741('0x27fe')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8a2'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1f36')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'openchannel/messages/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'accept':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1e6a')},'reject':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2473')}}),_0x6a0066['openchannelQueue']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe25'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'openchannel/queues/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x259f'),'params':{'includeAll':_0x5c1741('0xb68')}},'getMembers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'openchannel/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1f17')},'addTeams':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1f17')},'removeTeams':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1f17')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'openchannel/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1ba4')},'getAgents':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ba4')}}),_0x6a0066['chatWebsite']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xefc'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x17af')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c11'),'params':{'includeAll':'@includeAll'}},'addDisposition':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x18b')},'getDispositions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18b')},'removeDispositions':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18b')},'addAnswer':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1109')},'getAnswers':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1109')},'removeAnswers':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/canned_answers'},'addLogo':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1444')},'addAvatar':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/avatar'},'addCustomerAvatar':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/customer_avatar'},'addSystemAvatar':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/system_avatar'},'getLogo':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1444')},'getAvatar':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/avatar'},'getCustomerAvatar':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/customer_avatar'},'getSystemAvatar':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2239')},'notify':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x4b5')},'offline':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2649')},'addInteraction':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/interactions'},'getInteractions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1dd')},'getSnippet':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1778')},'addApplications':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/applications'},'getApplications':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x147a')},'addProactiveActions':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1ed4')},'getProactiveActions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ed4')},'getFields':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/websites/:id/fields'},'getOfflineMessages':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1710')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xadd')},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xadd')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xadd')}}),_0x6a0066['openchannelQueueReport']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb6d'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2403')},'clone':{'method':'post','url':_0x6a0066['baseUrl']+'openchannel/reports/queue/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x1f0')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18c7'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8f1')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x743'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x1a0')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xf71'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5a8')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1f15'),'params':{'includeAll':'@includeAll'}},'createVidaooSession':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x13d5')},'customUpdate':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2736')},'abandon':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22f3')},'attachmentUpload':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xba0')},'attachmentDownload':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2578')},'close':{'isArray':![],'method':'put','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c22')},'addMessage':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x3fb')},'getMessages':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/interactions/:id/messages'},'getMyMessages':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x326')},'addTags':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x259c')},'removeTags':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x259c')},'download':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x166d'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x33f32a,_0x533d15){const _0x5ed9e4=_0x5c1741,_0x5e10ba=_0x533d15();return{'type':_0x5e10ba[_0x5ed9e4('0xb97')],'length':_0x5e10ba[_0x5ed9e4('0x1258')],'buffer':_0x33f32a};}}}),_0x6a0066[_0x5c1741('0xd47')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x11c9'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/messages/describe'},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/messages/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'accept':{'isArray':![],'method':'put','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x850')},'reject':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1839')}}),_0x6a0066[_0x5c1741('0x4b8')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0xb2f'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1954')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1dab'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066['chatQueue']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xf44'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x281f')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/queues/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'getMembers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x4c0')},'getTeams':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x156d')},'addTeams':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x156d')},'removeTeams':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x156d')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'chat/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x17b9')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x17b9')}}),_0x6a0066[_0x5c1741('0x22d9')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'chat/groups/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ea6')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18c4'),'params':{'includeAll':_0x5c1741('0xb68')}},'getUnread':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22ff')},'addMembers':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x23fb')},'getMembers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x23fb')},'removeMembers':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x23fb')},'addMessage':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1c9e')},'getMessages':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c9e')}}),_0x6a0066[_0x5c1741('0xcae')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x21e5'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x12bb')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1fbc'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x27e')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'cm/companies/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0xb58')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2808'),'params':{'includeAll':_0x5c1741('0xb68')}},'addContacts':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ac9')},'getContacts':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ac9')}}),_0x6a0066['cmContact']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'cm/contacts/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xd27')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x281'),'params':{'includeAll':_0x5c1741('0xb68')}},'merge':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1b07')},'bulkCreate':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1c02')},'getTags':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1f02')},'setTags':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1f02')},'getHoppers':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x14b2')},'getHopperHistories':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0xe73')},'getHopperFinals':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x28ba')},'getJscriptySessions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xab9')},'uploadCsv':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1f75')},'upload':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x614')},'import':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8e')}}),_0x6a0066[_0x5c1741('0xf6a')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1098'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1681')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x123a'),'params':{'includeAll':_0x5c1741('0xb68')}},'getPreview':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xc4a')},'getOpenContacts':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2e3')}}),_0x6a0066[_0x5c1741('0x1359')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x278a'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066['baseUrl']+'cm/hopper_black/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x350'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066['cmHopperFinal']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xd1f'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'cm/hopper_final/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x27f1'),'params':{'includeAll':_0x5c1741('0xb68')}},'countContactsQueueCampaignHopperFinal':{'isArray':!![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'cm/hopper_final/voice/queue/countAttributes/:id'},'countContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x134e')},'moveContactsQueueCampaignHopperFinal':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x171e')},'moveContactsIvrCampaignHopperFinal':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1196')},'checkContactHopper':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xcc7')}}),_0x6a0066[_0x5c1741('0x2231')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'cm/hopper_history/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1d9')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x11fe'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x14c3')]=_0x4a3ba9(_0x6a0066['baseUrl']+'cm/custom_fields/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb82')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x693'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x1928')]=_0x4a3ba9(_0x6a0066['baseUrl']+'actions/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xcad')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x9a4'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066['automation']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x301'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xcc8')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'automations/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'addConditions':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1d00')},'getConditions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'automations/:id/conditions'},'addActions':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x21c4')},'getActions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'automations/:id/actions'}}),_0x6a0066[_0x5c1741('0x2043')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2327'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x26c0')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'canned_answers/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x1f27')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'dispositions/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x2783')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x238e'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0xa67')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x168b'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x9f1')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xdd'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x231f')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x1d37'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+'intervals/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x4a8'),'params':{'includeAll':_0x5c1741('0xb68')}},'addInterval':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'intervals/:id/sub_intervals'},'getIntervals':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xdfb')},'addIntervals':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'intervals/:id/sub_intervals/create_many'}}),_0x6a0066[_0x5c1741('0x267a')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc36'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x189a')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'pauses/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x14c1')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x199a'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x19fe')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'cdr/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x1ae9')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x37f'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'voiceQueuesLog/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe09'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x2651')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ea0'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x38c')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1490'),'params':{'includeAll':_0x5c1741('0xb68')}},'run':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x81f')}}),_0x6a0066[_0x5c1741('0x1f64')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'sounds/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x23ca')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xfed'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x764'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x1999a7,_0x32f844){const _0xe7fe9c=_0x32f844();return{'type':_0xe7fe9c['content-type'],'length':_0xe7fe9c['content-length'],'buffer':_0x1999a7};}},'delete':{'isArray':![],'method':'delete','url':_0x6a0066['baseUrl']+_0x5c1741('0x83c')}}),_0x6a0066[_0x5c1741('0x1132')]=_0x4a3ba9(_0x6a0066['baseUrl']+'tags/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x13a7')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2898'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x2260')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'templates/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22f1')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b73'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066['trigger']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'triggers/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'triggers/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'triggers/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'addAllCondition':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'triggers/:id/all_conditions'},'addAnyCondition':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'triggers/:id/any_conditions'},'getAllConditions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x476')},'getAnyConditions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'triggers/:id/any_conditions'},'addAction':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x20cb')},'getActions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x20cb')}}),_0x6a0066[_0x5c1741('0xb0a')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x160e'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'variables/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x9bd'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x1294')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1d8d'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x25b7')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xd89'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0xdaf')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x253c'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x83b')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5c4'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x18bc')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x32b'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ff4')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c23'),'params':{'includeAll':_0x5c1741('0xb68')}},'preview':{'isArray':!![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x42e')},'run':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xb98')},'query':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'analytics/custom_reports/:id/query'}}),_0x6a0066[_0x5c1741('0x1369')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ad9'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xaf2')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x27b5'),'params':{'includeAll':_0x5c1741('0xb68')}},'preview':{'isArray':!![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1a59')},'run':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b40')},'query':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x236d')}}),_0x6a0066[_0x5c1741('0x841')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'analytics/extracted_reports/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1354')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x11ad'),'params':{'includeAll':_0x5c1741('0xb68')}},'download':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x17e0'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x2649a4,_0x1d1a5){const _0x6956e6=_0x5c1741,_0x108fd4=_0x1d1a5();return{'type':_0x108fd4[_0x6956e6('0xb97')],'length':_0x108fd4['content-length'],'buffer':_0x2649a4};}}}),_0x6a0066[_0x5c1741('0x2103')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'analytics/metrics/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1a65')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xf8d'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x1a36')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x21c7'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x17ac')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x188'),'params':{'includeAll':_0x5c1741('0xb68')}},'bulkCreate':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x104b'),'isArray':!![]},'bulkDestroy':{'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2848'),'isArray':!![]},'addFields':{'isArray':!![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2431')}}),_0x6a0066[_0x5c1741('0x148')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x21e7'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x1f45')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'analytics/tree_reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x1c19')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x257d'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x7d6')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x596'),'params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'integrations/salesforce/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1f18')},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x625')}}),_0x6a0066[_0x5c1741('0x1486')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1d2e'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x11a7')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2405'),'params':{'includeAll':_0x5c1741('0xb68')}},'getFields':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xd94')},'getSubjects':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0xf94')},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/salesforce/configurations/:id/descriptions'}}),_0x6a0066[_0x5c1741('0x85a')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'integrations/salesforce/fields/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/salesforce/fields/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1677'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066['intSugarcrmAccount']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b8e'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1fb7')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/sugarcrm/accounts/:id/clone','params':{'includeAll':'@includeAll'}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8ec')},'addConfiguration':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x8ec')},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x66c')}}),_0x6a0066[_0x5c1741('0xb91')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'integrations/sugarcrm/configurations/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/sugarcrm/configurations/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1769'),'params':{'includeAll':_0x5c1741('0xb68')}},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x203b')},'getSubjects':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xd9')},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'integrations/sugarcrm/configurations/:id/descriptions'}}),_0x6a0066[_0x5c1741('0x41b')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x3f0'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/sugarcrm/fields/describe'},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1e'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x278')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'integrations/desk/accounts/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x900')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/desk/accounts/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/desk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x25')},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x54')}}),_0x6a0066[_0x5c1741('0xd2b')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x26d'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5f2')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x25ba'),'params':{'includeAll':_0x5c1741('0xb68')}},'getFields':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0xb69')},'getSubjects':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'integrations/desk/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1905')},'getTags':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/desk/configurations/:id/tags'},'setTags':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/desk/configurations/:id/tags'}}),_0x6a0066['intDeskField']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22b4'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/desk/fields/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x15de'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x279a')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2512'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/zoho/accounts/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'integrations/zoho/accounts/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'integrations/zoho/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x184c')},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1633')}}),_0x6a0066['intZohoConfiguration']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1a6c'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x131e')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x19a'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1afe')},'getSubjects':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'integrations/zoho/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x12b3')}}),_0x6a0066[_0x5c1741('0x142c')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x136a'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/zoho/fields/describe'},'clone':{'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x2505'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066['intZendeskAccount']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'integrations/zendesk/accounts/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x16b5')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5eb'),'params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/zendesk/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2786')},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1a14')}}),_0x6a0066[_0x5c1741('0x129c')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x127e'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x3ee')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb8f'),'params':{'includeAll':'@includeAll'}},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/zendesk/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x15b')},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/zendesk/configurations/:id/descriptions'},'getTags':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/zendesk/configurations/:id/tags'},'setTags':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1008')}}),_0x6a0066[_0x5c1741('0x1d78')]=_0x4a3ba9(_0x6a0066['baseUrl']+'integrations/zendesk/fields/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1774')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xee3'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x1190')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xbea'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xac3')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c3a'),'params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x28c2')},'addConfiguration':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x28c2')},'getFields':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x11c1')}}),_0x6a0066[_0x5c1741('0x4c')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x14f2'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2683')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x15c6'),'params':{'includeAll':_0x5c1741('0xb68')}},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x24e6')},'getSubjects':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1400')},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x4fc')},'getTags':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2661')},'setTags':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'integrations/freshdesk/configurations/:id/tags'}}),_0x6a0066[_0x5c1741('0xbf2')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x12cc'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/freshdesk/fields/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1943'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x2090')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x122d'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/vtiger/accounts/describe'},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/vtiger/accounts/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x25b2')},'addConfiguration':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x25b2')},'getFields':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1692')}}),_0x6a0066['intVtigerConfiguration']=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0xd3c'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/vtiger/configurations/describe'},'clone':{'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1791'),'params':{'includeAll':_0x5c1741('0xb68')}},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x12e9')},'getSubjects':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x213c')},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x4de')}}),_0x6a0066[_0x5c1741('0xb23')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xf2c'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/vtiger/fields/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xa1'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x18c2')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1acf'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2528')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/servicenow/accounts/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/servicenow/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1891')},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/servicenow/accounts/:id/fields'}}),_0x6a0066['intServicenowConfiguration']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'integrations/servicenow/configurations/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/servicenow/configurations/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/servicenow/configurations/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/servicenow/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1e07')},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/servicenow/configurations/:id/descriptions'}}),_0x6a0066[_0x5c1741('0x129')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x163b'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066['baseUrl']+'integrations/servicenow/fields/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1e0'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066['intDynamics365Account']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x602'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xcc')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xf60'),'params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/dynamics365/accounts/:id/configurations'},'addConfiguration':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/dynamics365/accounts/:id/configurations'},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1964')}}),_0x6a0066[_0x5c1741('0x27a6')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'integrations/dynamics365/configurations/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1b55')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x147b'),'params':{'includeAll':_0x5c1741('0xb68')}},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'integrations/dynamics365/configurations/:id/fields'},'getSubjects':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1df7')},'getDescriptions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2636')}}),_0x6a0066[_0x5c1741('0x1fdb')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'integrations/dynamics365/fields/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1a35')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x2818'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x13e5')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2313'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x14c7')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2053'),'params':{'includeAll':_0x5c1741('0xb68')}},'getConfigurations':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xf3e')},'addConfiguration':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xf3e')},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe29')}}),_0x6a0066[_0x5c1741('0xda9')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'integrations/freshsales/configurations/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1386')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/freshsales/configurations/:id/clone','params':{'includeAll':'@includeAll'}},'getSubjects':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'integrations/freshsales/configurations/:id/subjects'},'getDescriptions':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x223f')},'getFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'integrations/freshsales/configurations/:id/fields'}}),_0x6a0066[_0x5c1741('0x2278')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0xb7'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1cef')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ac'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066['network']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x13f'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x1953')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x13cd'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x8fd')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc1a'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1208')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x27d0'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x214e')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xdfe'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1889')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xd30'),'params':{'includeAll':_0x5c1741('0xb68')}},'getUsers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x2770')}}),_0x6a0066[_0x5c1741('0x2035')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'jscripty/answers/reports/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1a0f')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xbb4'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0xc3a')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'jscripty/questions/reports/:id',{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'jscripty/questions/reports/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'jscripty/questions/reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x1338')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2dd'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'jscripty/sessions/reports/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xa2b'),'params':{'includeAll':_0x5c1741('0xb68')}},'getQuestions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x288')}}),_0x6a0066['smsQueueReport']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1062'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'sms/reports/queue/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'sms/reports/queue/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0xb57')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1cc8'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x114e')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'square/reports/:id/clone','params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x25d7')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'square/details/reports/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x14b0')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1053'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x12fb')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x895'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x79')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'jscripty/projects/:id/clone','params':{'includeAll':'@includeAll'}},'getSessions':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x6b7')},'getAnswers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+'jscripty/projects/:id/answers'},'getSummary':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x16ee'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x39e1a0,_0x34ec9f){const _0x97d81a=_0x5c1741,_0x1b3810=_0x34ec9f();return{'type':_0x1b3810['content-type'],'length':_0x1b3810[_0x97d81a('0x1258')],'buffer':_0x39e1a0};}}}),_0x6a0066['setting']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'settings/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xe87')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x10e2'),'params':{'includeAll':'@includeAll'}},'addLogo':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'settings/:id/logo'},'addLogoLogin':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8f2')},'getLogo':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2414')},'getLogoLogin':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x8f2')},'gdpr':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'settings/:id/gdpr'},'addPreferred':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'settings/:id/preferred'},'getPreferred':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x15b5')},'addFavicon':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x79f')},'getFavicon':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x79f')}}),_0x6a0066[_0x5c1741('0x153c')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x732'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'square/odbc/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'square/odbc/:id/clone','params':{'includeAll':'@includeAll'}},'test':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'square/odbc/:id/test'}}),_0x6a0066['squareProject']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'square/projects/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xb49')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x833'),'params':{'includeAll':_0x5c1741('0xb68')}},'addUsers':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+'square/projects/:id/users'},'removeUsers':{'isArray':![],'method':'delete','url':_0x6a0066['baseUrl']+'square/projects/:id/users'},'getUsers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x234b')}}),_0x6a0066[_0x5c1741('0x3')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x441'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x85c')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x36'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1db3'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x262c98,_0x1df252){const _0x1c06f5=_0x1df252();return{'type':_0x1c06f5['content-type'],'length':_0x1c06f5['content-length'],'buffer':_0x262c98};}}}),_0x6a0066['squareMessage']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'square/messages/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'square/messages/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x221c'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066['team']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'teams/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x821')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x218e'),'params':{'includeAll':'@includeAll'}},'getQueues':{'isArray':!![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1172')},'addQueues':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1172')},'removeQueues':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1172')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1de1')},'removeAgents':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1de1')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1de1')}}),_0x6a0066['license']=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x23d5'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1807')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1d3d'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x2395')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x28a7'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2203')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x23fd'),'params':{'includeAll':_0x5c1741('0xb68')}},'getHoppers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'campaigns/:id/hoppers'},'getHopperHistories':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'campaigns/:id/hopper_histories'},'getHopperFinals':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'campaigns/:id/hopper_finals'},'getHopperBlacks':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1be4')},'getLists':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c1e')},'addLists':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'campaigns/:id/lists'},'removeLists':{'isArray':!![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c1e')},'getBlackLists':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x199f')},'addBlackLists':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x199f')},'removeBlackLists':{'isArray':!![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'campaigns/:id/blacklists'}}),_0x6a0066[_0x5c1741('0x2002')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x267d'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xdde')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1020'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x11f9')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xad2'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x47b')},'clone':{'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x17a4'),'params':{'includeAll':'@includeAll'}},'download':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c34'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x5c5db3,_0x44ed1c){const _0x262e04=_0x5c1741,_0x37b31b=_0x44ed1c();return{'type':_0x37b31b[_0x262e04('0xb97')],'length':_0x37b31b[_0x262e04('0x1258')],'buffer':_0x5c5db3};}}}),_0x6a0066[_0x5c1741('0x1ec3')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x236e'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2f1')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2017'),'params':{'includeAll':_0x5c1741('0xb68')}},'download':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x2240'),'responseType':'arraybuffer','cache':![],'transformResponse':function(_0x3e0cac,_0x55be42){const _0x5b7acc=_0x5c1741,_0x2a482c=_0x55be42();return{'type':_0x2a482c[_0x5b7acc('0xb97')],'length':_0x2a482c[_0x5b7acc('0x1258')],'buffer':_0x3e0cac};}},'upload':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1a99')},'delete':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x236e')},'webhookGet':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x395')},'webhookPost':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x395')}}),_0x6a0066[_0x5c1741('0x1086')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x961'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xd48')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1124'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x12cf')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xa1e'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1f31')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x13fc'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x4cf')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'fax/reports/transfer/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1482')},'clone':{'method':'post','url':_0x6a0066['baseUrl']+'fax/reports/transfer/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x25e6')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2822'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1450')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1260'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x840')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x22d4'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x32a')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x208a'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x25b')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x4e8'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'cm/lists/describe'},'clone':{'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x228f'),'params':{'includeAll':_0x5c1741('0xb68')}},'addDisposition':{'isArray':![],'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xebc')},'getDispositions':{'isArray':![],'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0xebc')},'removeDispositions':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xebc')},'addContacts':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1e38')},'getContacts':{'isArray':!![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'cm/lists/:id/contacts'},'getContactsCsv':{'isArray':![],'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1c47'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x229cf7,_0x3e7f5f){const _0xd98581=_0x5c1741,_0x4e18cd=_0x3e7f5f();return{'type':_0x4e18cd[_0xd98581('0xb97')],'length':_0x4e18cd[_0xd98581('0x1258')],'buffer':_0x229cf7};}},'addCustomField':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ba1')},'getCustomFields':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ba1')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x208c')},'removeAgents':{'isArray':![],'method':'delete','url':_0x6a0066['baseUrl']+_0x5c1741('0x208c')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x208c')}}),_0x6a0066[_0x5c1741('0x92f')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x20a2'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+_0x5c1741('0x16aa')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/prefixes/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'addAgents':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+'voice/prefixes/:id/users'},'removeAgents':{'isArray':![],'method':'delete','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x200d')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'voice/prefixes/:id/users'}}),_0x6a0066[_0x5c1741('0xdeb')]=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0x24d9'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x181')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'userProfiles/:id/clone','params':{'includeAll':'@includeAll'}},'addSections':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xd9c')},'removeSections':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+_0x5c1741('0xd9c')},'getSections':{'isArray':!![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xd9c')},'addResources':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x242c')},'removeResources':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'userProfiles/:id/resources'},'getResources':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'userProfiles/:id/resources'}}),_0x6a0066[_0x5c1741('0x383')]=_0x4a3ba9(_0x6a0066['baseUrl']+'userProfile/sections/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5bd')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1b04'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x78d')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x19c1'),{'id':'@id'},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'userProfile/resources/describe'},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x835'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066[_0x5c1741('0x1e03')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x10fb'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x14d1')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x3fa'),'params':{'includeAll':_0x5c1741('0xb68')}},'sendNotification':{'isArray':![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0xa63')}}),_0x6a0066['whatsappAccount']=_0x4a3ba9(_0x6a0066['baseUrl']+_0x5c1741('0xef'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':'put'},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x165c')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+'whatsapp/accounts/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'addDisposition':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x127c')},'getDispositions':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x127c')},'removeDispositions':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x127c')},'addAnswer':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2e4')},'getAnswers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2e4')},'removeAnswers':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x2e4')},'addAgents':{'isArray':!![],'method':'post','url':_0x6a0066['baseUrl']+_0x5c1741('0x1418')},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/accounts/:id/users'},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1418')},'addApplications':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x124f')},'getApplications':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/accounts/:id/applications'},'notify':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x91a')},'send':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x696')}}),_0x6a0066[_0x5c1741('0x293')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x202'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/applications/describe'},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x209a'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x204')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xc1b'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x5f1')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/interactions/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'addMessage':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1170')},'getMessages':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x1170')},'addTags':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/interactions/:id/tags'},'removeTags':{'isArray':![],'method':'delete','url':_0x6a0066['baseUrl']+_0x5c1741('0x13e0')},'download':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xbad'),'responseType':_0x5c1741('0x263a'),'cache':![],'transformResponse':function(_0x2f81dd,_0x563b71){const _0x2e5958=_0x5c1741,_0x46783d=_0x563b71();return{'type':_0x46783d[_0x2e5958('0xb97')],'length':_0x46783d[_0x2e5958('0x1258')],'buffer':_0x2f81dd};}}}),_0x6a0066[_0x5c1741('0x1fb5')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/messages/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x367')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/messages/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'accept':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x10bd')},'reject':{'isArray':![],'method':_0x5c1741('0x2d8'),'url':_0x6a0066['baseUrl']+'whatsapp/messages/:id/reject'},'status':{'isArray':![],'method':_0x5c1741('0x162b'),'url':_0x6a0066['baseUrl']+_0x5c1741('0x9b1')}}),_0x6a0066[_0x5c1741('0x5cb')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/reports/queue/:id',{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2140')},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1583'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x310')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2703'),{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x2537')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1453'),'params':{'includeAll':_0x5c1741('0xb68')}}}),_0x6a0066[_0x5c1741('0x1e28')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x213a'),{'id':_0x5c1741('0x1f2e')},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':'get','url':_0x6a0066['baseUrl']+'whatsapp/queues/describe'},'clone':{'method':'post','url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/queues/:id/clone','params':{'includeAll':_0x5c1741('0xb68')}},'getMembers':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/queues/:id/members'},'getTeams':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18b5')},'addTeams':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18b5')},'removeTeams':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x18b5')},'addAgents':{'isArray':!![],'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+'whatsapp/queues/:id/users'},'removeAgents':{'isArray':![],'method':_0x5c1741('0x1da6'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb2b')},'getAgents':{'isArray':![],'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0xb2b')}}),_0x6a0066[_0x5c1741('0x2535')]=_0x4a3ba9(_0x6a0066[_0x5c1741('0x23c4')]+'cloudProviders/:id',{'id':'@id'},{'update':{'method':_0x5c1741('0x2d8')},'describe':{'method':_0x5c1741('0x1c53'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x15af')},'clone':{'method':_0x5c1741('0x162b'),'url':_0x6a0066[_0x5c1741('0x23c4')]+_0x5c1741('0x1ee7'),'params':{'includeAll':'@includeAll'}}}),_0x6a0066;}const _0x2e015d=_0xf2639c;_0x57296c[_0x4376d8('0x1b9c')]=[_0x4376d8('0x1794'),'toastyConfigProvider'];function _0x57296c(_0x5b080e,_0x5de1ff){const _0x2289f1=_0x4376d8;_0x5de1ff[_0x2289f1('0xaf1')]({'position':_0x2289f1('0x51'),'sound':![],'html':!![],'theme':'material'}),_0x5b080e[_0x2289f1('0x2304')](_0x2289f1('0x1e6b'),{'urlTemplate':_0x2289f1('0x107f')}),_0x5b080e[_0x2289f1('0x1c6b')]('en'),_0x5b080e['useSanitizeValueStrategy'](null);}const _0x4aa356=_0x57296c;_0x1cb68a[_0x4376d8('0x1b9c')]=[_0x4376d8('0x222a'),'$translate',_0x4376d8('0x28db'),'api',_0x4376d8('0x108a')];function _0x1cb68a(_0x3d8002,_0x413748,_0x2ed8ef,_0x406f62,_0x554ec7){const _0xb76d1=_0x4376d8,_0x17ca60=this;_0x17ca60[_0xb76d1('0x2706')]=_0x3d8002[_0xb76d1('0x2706')],_0x17ca60[_0xb76d1('0x733')]=_0xb76d1('0x2856');const _0x490d76=['ar','fa','he'],_0x560b2c=_0x2ed8ef[_0xb76d1('0x1c53')](_0xb76d1('0x16b8'));_0x560b2c&&(_0x413748[_0xb76d1('0x17ee')](_0x560b2c),_0x490d76['indexOf'](_0x560b2c)>=0x0&&_0x406f62[_0xb76d1('0x1aeb')][_0xb76d1('0x1c53')]({'id':0x1})[_0xb76d1('0x1af5')][_0xb76d1('0x17e7')](function(_0x3e2616){const _0x2ef20d=_0xb76d1;_0x3e2616&&_0x3e2616[_0x2ef20d('0xa52')]&&(_0x17ca60[_0x2ef20d('0x733')]=_0x2ef20d('0x4fa'));})['catch'](function(_0x4b2fe8){const _0x43c098=_0xb76d1;_0x4b2fe8&&_0x554ec7[_0x43c098('0x1db9')]({'title':_0x43c098('0x1064'),'msg':_0x4b2fe8['data']?_0x4b2fe8[_0x43c098('0x1457')][_0x43c098('0x1603')]||_0x4b2fe8[_0x43c098('0x1603')]||_0x4b2fe8:_0x4b2fe8['message']||_0x4b2fe8});}));}const _0x2cf1cb=_0x1cb68a;_0x1a7810['$inject']=[_0x4376d8('0x28da')],_0x57c290[_0x4376d8('0x1b9c')]=[_0x4376d8('0x54a'),'$translate'];function _0x57c290(_0x26389b,_0x3a0b81){return function(_0x2c29d4){const _0x2fe70d=a0_0xd29e,_0x5c5c7b=new Date(),_0x3859f2=new Date(_0x2c29d4);if(_0x3859f2['getDate']()===_0x5c5c7b['getDate']()&&_0x3859f2['getMonth']()===_0x5c5c7b[_0x2fe70d('0x10')]()&&_0x3859f2[_0x2fe70d('0x226a')]()===_0x5c5c7b['getFullYear']())return _0x26389b(_0x2fe70d('0xbd4'))(_0x3859f2['getTime'](),_0x2fe70d('0x1c8'));if(_0x3859f2[_0x2fe70d('0x2745')]()===_0x5c5c7b[_0x2fe70d('0x2745')]()-0x1&&_0x3859f2[_0x2fe70d('0x10')]()===_0x5c5c7b[_0x2fe70d('0x10')]()&&_0x3859f2[_0x2fe70d('0x226a')]()===_0x5c5c7b[_0x2fe70d('0x226a')]())return _0x3a0b81[_0x2fe70d('0x1acc')](_0x2fe70d('0x47a'))+'\x20'+_0x26389b(_0x2fe70d('0xbd4'))(_0x3859f2['getTime'](),_0x2fe70d('0x1c8'));return _0x26389b('date')(_0x3859f2[_0x2fe70d('0x98f')](),_0x2fe70d('0x16e6'));};}function _0x5d1c1b(){return function(_0x2b86f5,_0x24ad28,_0x30c843){const _0x4b93a4={};let _0x132f59=0x0,_0xda758a;for(_0xda758a in _0x2b86f5){_0x132f59>=_0x30c843&&(_0x4b93a4[_0xda758a]=_0x2b86f5[_0xda758a]);if(++_0x132f59===_0x30c843+_0x24ad28)break;}return _0x4b93a4;};}function _0x2ea1db(){const _0x419aff=_0x4376d8,_0x1878f8=[{'value':_0x419aff('0x1b5b')},{'value':_0x419aff('0x1499')},{'value':_0x419aff('0x6f7')},{'value':_0x419aff('0x164a')},{'value':'may'},{'value':'jun'},{'value':_0x419aff('0xd39')},{'value':_0x419aff('0x206e')},{'value':_0x419aff('0x24fa')},{'value':_0x419aff('0x201f')},{'value':_0x419aff('0x13e1')},{'value':_0x419aff('0x1fc7')}],_0x223c30=[{'value':'1'},{'value':'2'},{'value':'3'},{'value':'4'},{'value':'5'},{'value':'6'},{'value':'7'},{'value':'8'},{'value':'9'},{'value':'10'},{'value':'11'},{'value':'12'}],_0x18bd85=[{'value':_0x419aff('0xfca')},{'value':_0x419aff('0xb55')},{'value':_0x419aff('0x13a')},{'value':_0x419aff('0xf3b')},{'value':_0x419aff('0x12ba')},{'value':'sat'},{'value':'sun'}],_0x44d448=[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(){return _0x1878f8;},'getMonthNumber':function(){return _0x223c30;},'getDaysOfWeek':function(){return _0x18bd85;},'getDaysOfMonth':function(){return _0x44d448;}};}function _0x1a7810(_0x171d33){const _0x15430e=_0x4376d8;return{'Today':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x67e')),'Yesterday':_0x171d33[_0x15430e('0x1acc')]('DASHBOARDS.YESTERDAY'),'This\x20Week':_0x171d33[_0x15430e('0x1acc')]('DASHBOARDS.THIS_WEEK'),'Last\x20Week':_0x171d33['instant'](_0x15430e('0x1f56')),'This\x20Month':_0x171d33[_0x15430e('0x1acc')]('DASHBOARDS.THIS_MONTH'),'Last\x20Month':_0x171d33['instant'](_0x15430e('0x368')),'This\x20Year':_0x171d33['instant'](_0x15430e('0x2823')),'Last\x20Year':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x2346')),'January':_0x171d33['instant'](_0x15430e('0x24a1')),'February':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0xa0c')),'March':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x1672')),'April':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x509')),'May':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x232a')),'June':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0xe45')),'July':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0xd98')),'August':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x5d3')),'September':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x21ad')),'October':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x112a')),'November':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x2049')),'December':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x2174')),'Mon':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x1c57')),'Tue':_0x171d33[_0x15430e('0x1acc')]('DASHBOARDS.TUE'),'Wed':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x227a')),'Thu':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x185f')),'Fri':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x2666')),'Sat':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x1bc1')),'Sun':_0x171d33[_0x15430e('0x1acc')](_0x15430e('0x91c'))};}function _0x3e4ecc(){return{'enqueue':function(_0x5788ab){const _0x3b9cd0=a0_0xd29e;this[_0x3b9cd0('0x1757')]=this[_0x3b9cd0('0x1757')]?this['tail'][_0x3b9cd0('0x74e')](_0x5788ab):_0x5788ab();}};}const _0x57ed27=_0x4cf2bc['p']+_0x4376d8('0xff9'),_0x4fd52c=_0x4cf2bc['p']+_0x4376d8('0xe26'),_0x3e6e96=_0x4cf2bc['p']+_0x4376d8('0x1e46'),_0x4d8999=_0x4cf2bc['p']+_0x4376d8('0x699'),_0x4775ff=_0x4cf2bc['p']+_0x4376d8('0x4ba'),_0x3e190d=_0x4cf2bc['p']+_0x4376d8('0x2880'),_0x52754f=_0x4cf2bc['p']+'src/js/modules/quick-panel/quick-panel.html/quick-panel.html';_0x2aded1[_0x4376d8('0x1b9c')]=[_0x4376d8('0x183a'),_0x4376d8('0x1310'),_0x4376d8('0x1aec')];function _0x2aded1(_0x4b78c4,_0x41448d,_0x4521ed){const _0x84fda7=_0x4376d8;_0x4521ed['html5Mode'](!![]),_0x41448d[_0x84fda7('0x95d')](_0x84fda7('0x1128'));let _0x53c0de;angular[_0x84fda7('0x1f12')]([_0x84fda7('0xa25')])[_0x84fda7('0x198c')]([_0x84fda7('0x28db'),function(_0x5e74af){_0x53c0de=_0x5e74af;}]);const _0x1d67aa=_0x53c0de[_0x84fda7('0x1c53')](_0x84fda7('0x1e91'))||_0x84fda7('0x987'),_0x4984ba={'verticalNavigation':{'main':_0x5da08b,'toolbar':_0x57ed27,'navigation':_0x3e6e96,'header':_0x4775ff,'footer':_0x3e190d},'verticalNavigationFullwidthToolbar':{'main':_0x39988a,'toolbar':'','navigation':_0x3e6e96},'verticalNavigationFullwidthToolbar2':{'main':_0x47cea5,'toolbar':'','navigation':_0x4d8999},'horizontalNavigation':{'main':_0x5d4b95,'toolbar':'','navigation':_0x4fd52c},'contentOnly':{'main':_0x1b38ae,'toolbar':'','navigation':''},'contentWithToolbar':{'main':_0x5352a6,'toolbar':'','navigation':''}};_0x4b78c4[_0x84fda7('0x1b9a')](_0x84fda7('0x643'),{'abstract':!![],'views':{'main@':{'templateUrl':_0x4984ba[_0x1d67aa][_0x84fda7('0x2078')],'controller':_0x84fda7('0x1468')},'toolbar@app':{'templateUrl':_0x4984ba[_0x1d67aa][_0x84fda7('0x17a5')],'controller':_0x84fda7('0x7b9')},'navigation@app':{'templateUrl':_0x4984ba[_0x1d67aa][_0x84fda7('0x216')],'controller':_0x84fda7('0x239e')},'quickPanel@app':{'templateUrl':_0x52754f,'controller':_0x84fda7('0x83')},'header@app':{'templateUrl':_0x4984ba[_0x1d67aa][_0x84fda7('0x26e4')],'controller':'HeaderController\x20as\x20vm'},'footer@app':{'templateUrl':_0x4984ba[_0x1d67aa][_0x84fda7('0x1da5')],'controller':_0x84fda7('0x2747')}},'resolve':{'license':[_0x84fda7('0x177'),function(_0x5b1eed){const _0x3f1bcf=_0x84fda7;return _0x5b1eed[_0x3f1bcf('0x898')](_0x3f1bcf('0x1511'));}],'setting':[_0x84fda7('0x177'),function(_0x673df7){const _0x33cee3=_0x84fda7;return _0x673df7['resolve'](_0x33cee3('0x1bfd'),{'id':0x1});}]}});}const _0x321559=_0x2aded1;_0xa74523['$inject']=[_0x4376d8('0x809'),_0x4376d8('0x12f9')];function _0xa74523(_0xdcebee,_0x2d11ec){const _0x1370b5=_0x4376d8;_0xdcebee['onStart']({},_0x2d11ec['showLoadingIndicator']),_0xdcebee[_0x1370b5('0xca7')]({},_0x2d11ec[_0x1370b5('0x1a7d')]);}const _0x51353b=_0xa74523;var _0xb7e1c2=_0x4cf2bc(0x15ef);_0x1b6a30[_0x4376d8('0x1b9c')]=[_0x4376d8('0x655'),_0x4376d8('0x1885')];function _0x1b6a30(_0x1815b5,_0x5cebcb){let _0x3a82de;function _0x3c14f6(){const _0x5b7fbf=a0_0xd29e,_0x3716f0=!![]?window['io']:0x0,_0x2a319b={'query':_0x5b7fbf('0x2793')+_0x5cebcb[_0x5b7fbf('0x2831')]()['id'],'transports':[_0x5b7fbf('0xea0'),_0x5b7fbf('0x9ad')]};_0x3a82de=!![]?_0x3716f0(_0x2a319b):0x0;}return{'connect':_0x3c14f6,'on':function(_0x287e3f,_0xec38e2){_0xec38e2=_0xec38e2||angular['noop'],!_0x3a82de&&_0x3c14f6(),_0x3a82de['on'](_0x287e3f,function(){const _0x29da59=a0_0xd29e,_0x2cdd23=arguments;_0x1815b5[_0x29da59('0x177a')](function(){const _0x16b217=_0x29da59;_0xec38e2[_0x16b217('0x380')](_0x3a82de,_0x2cdd23);});});},'onWithoutApply':function(_0x30800f,_0x221b8d){const _0x1fdb1c=a0_0xd29e;_0x221b8d=_0x221b8d||angular[_0x1fdb1c('0x1e49')],!_0x3a82de&&_0x3c14f6(),_0x3a82de['on'](_0x30800f,function(){const _0x33820a=_0x1fdb1c;_0x221b8d[_0x33820a('0x380')](_0x3a82de,arguments);});},'emit':function(_0x14c025,_0x45c46e,_0x511158){const _0x44865a=a0_0xd29e;_0x511158=_0x511158||angular[_0x44865a('0x1e49')],!_0x3a82de&&_0x3c14f6(),_0x3a82de[_0x44865a('0x1871')](_0x14c025,_0x45c46e,function(){const _0xbaa6a0=_0x44865a,_0x18e81e=arguments;_0x1815b5[_0xbaa6a0('0x177a')](function(){const _0x244d01=_0xbaa6a0;_0x511158[_0x244d01('0x380')](_0x3a82de,_0x18e81e);});});},'removeAllListeners':function(_0x18da28){const _0x552891=a0_0xd29e;!_0x3a82de&&_0x3c14f6(),_0x3a82de[_0x552891('0x1c65')](_0x18da28);},'removeListener':function(_0x1ccba3,_0x4c3cdf){const _0x3239b0=a0_0xd29e;!_0x3a82de&&_0x3c14f6(),_0x3a82de[_0x3239b0('0x1d0b')](_0x1ccba3,_0x4c3cdf);},'disconnect':function(){const _0x106c78=a0_0xd29e;!_0x3a82de&&_0x3c14f6(),_0x3a82de[_0x106c78('0x5b3')]();}};}const _0x55357a=_0x1b6a30;_0x584a2d['$inject']=[_0x4376d8('0x668'),_0x4376d8('0x655'),_0x4376d8('0x28da'),_0x4376d8('0xa61'),_0x4376d8('0x105'),'Auth',_0x4376d8('0x108a'),'license',_0x4376d8('0x212e'),_0x4376d8('0x1aeb')];function _0x584a2d(_0x806980,_0x4711f3,_0x6f432e,_0x58b19e,_0x3ee8e4,_0x1a9716,_0x5ba96e,_0x31cd71,_0x221a53,_0x1c0d1c){const _0x2a3d06=_0x4376d8,_0x5b4eef=this;_0x5ba96e[_0x2a3d06('0xdf')]();function _0x2f286c(){const _0x3ba8df=_0x2a3d06;return _0x1a9716[_0x3ba8df('0x2831')]()&&_0x1a9716[_0x3ba8df('0x1ba2')](_0x3ba8df('0x684'));}_0x5b4eef['isAgent']=_0x2f286c;function _0x24eee0(_0x3643cd,_0x113ad2){const _0x554a05=_0x2a3d06;return{'id':_0x3643cd,'title':_0x113ad2[_0x554a05('0x2aa')]||_0x554a05('0x1055'),'state':_0x554a05('0xc99'),'stateParams':_0x113ad2,'weight':0x2,'hidden':function(){const _0x4a508d=_0x554a05;return _0x1a9716[_0x4a508d('0x1ba2')](_0x4a508d('0x684'))||!_0x1a9716['hasPermission'](_0x3643cd)&&!_0x1a9716[_0x4a508d('0x1ba2')](_0x4a508d('0x20bf'));}};}function _0x33857c(_0x417f76,_0x3ee304){const _0xe4cf55=_0x2a3d06;return{'id':_0x417f76,'title':_0x3ee304[_0xe4cf55('0x2aa')]||'NONAME','state':_0xe4cf55('0x20c4'),'stateParams':_0x3ee304,'weight':0x2,'hidden':function(){const _0x49f15a=_0xe4cf55;return _0x1a9716['hasRole'](_0x49f15a('0x684'))||!_0x1a9716[_0x49f15a('0xf51')](_0x417f76)&&!_0x1a9716[_0x49f15a('0x1ba2')]('admin');}};}function _0x36c679(_0x140624,_0x11fbe4){const _0x305754=_0x2a3d06,_0x2c6d7e={'user':_0x49cbdd()[_0x305754('0x230a')](_0x1a9716[_0x305754('0x2831')](),['id',_0x305754('0x2aa'),_0x305754('0xea6'),_0x305754('0x822'),_0x305754('0x1085'),'internal',_0x305754('0x1869')])};_0x11fbe4['agentUrl']=_0x2b7e10()[_0x305754('0xe05')](_0x11fbe4['agentUrl'],_0x2c6d7e),_0x3ee8e4['saveItem']('apps.home.plugin_'+_0x140624,{'id':_0x140624,'title':_0x11fbe4[_0x305754('0x2aa')],'translate':_0x11fbe4[_0x305754('0x2aa')],'state':_0x305754('0xe4c')+_0x11fbe4['id'],'stateParams':_0x11fbe4,'view':_0x305754('0x1ec3'),'icon':_0x11fbe4[_0x305754('0x25a3')],'weight':0xc,'hidden':function(){return!_0x1a9716['hasPermission'](_0x140624);}});}_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x970'),{'title':_0x2a3d06('0x1f41'),'group':!![],'weight':0x1,'hidden':function(){const _0x4f1dd4=_0x2a3d06;return _0x1a9716[_0x4f1dd4('0x1ba2')](_0x4f1dd4('0x684'));}}),_0x221a53['version'][_0x2a3d06('0x1c53')]()[_0x2a3d06('0x1af5')][_0x2a3d06('0x17e7')](function(_0x27a819){const _0x57fde7=_0x2a3d06;_0x5b4eef['version']=_0x27a819&&_0x27a819[_0x57fde7('0x1247')]?_0x27a819[_0x57fde7('0x1247')]:'UNKNOWN';})[_0x2a3d06('0x16df')](function(){const _0x5dc815=_0x2a3d06;_0x5b4eef[_0x5dc815('0x20eb')]=_0x5dc815('0x1f91');})['finally'](function(){const _0x598723=_0x2a3d06;_0x58b19e[_0x598723('0x1321')](_0x598723('0x20eb'),{'title':_0x598723('0x599')+_0x5b4eef['version'],'group':!![],'weight':0x2,'hidden':function(){const _0x1c8314=_0x598723;return _0x1a9716[_0x1c8314('0x1ba2')](_0x1c8314('0x684'));}});});function _0xdca3(_0x55ce99){const _0x1f04a4=_0x2a3d06;return _0x49cbdd()[_0x1f04a4('0x787')](_0x55ce99['children'],function(_0x2133b2){return _0x2133b2['id'];});}_0x1a9716[_0x2a3d06('0x214f')]()&&(_0x31cd71[_0x2a3d06('0x7f9')]&&_0x5ba96e[_0x2a3d06('0xc86')]({'msg':_0x6f432e[_0x2a3d06('0x1acc')]('DASHBOARDS.LICENSE_EXPIRE_REMAINING_DAYS'),'showClose':!![],'timeout':![]}),_0x221a53[_0x2a3d06('0x40f')][_0x2a3d06('0x1c53')]()[_0x2a3d06('0x1af5')]['then'](function(_0x10e073){const _0xfadc2b=_0x2a3d06;let _0x14c14e=0x0;for(let _0x5dbff3=0x0;_0x5dbff3<_0x10e073[_0xfadc2b('0x2319')]['length'];_0x5dbff3+=0x1){_0x14c14e=0x1869f+_0x10e073['rows'][_0x5dbff3]['id'],_0x58b19e[_0xfadc2b('0x1321')](_0xfadc2b('0x182d')+_0x14c14e,_0x24eee0(_0x14c14e,_0x10e073[_0xfadc2b('0x2319')][_0x5dbff3]));}}),_0x221a53[_0x2a3d06('0x1ec3')][_0x2a3d06('0x1c53')]({'active':!![]})[_0x2a3d06('0x1af5')]['then'](function(_0x424ce7){const _0x19fa46=_0x2a3d06;let _0x1f0d30=0x0;if(_0x424ce7[_0x19fa46('0x335')]){const _0x5e1a7e=_0x49cbdd()[_0x19fa46('0x2483')](_0x424ce7[_0x19fa46('0x2319')],function(_0x414ea1){const _0x25a479=_0x19fa46;return _0x414ea1[_0x25a479('0x874')]!=_0x25a479('0x360')&&_0x414ea1[_0x25a479('0x874')]!=_0x25a479('0x138c');});if(_0x5e1a7e[_0x19fa46('0x1f73')]>0x0){_0x58b19e[_0x19fa46('0x1321')](_0x19fa46('0x2073'),{'id':0x76c,'title':_0x19fa46('0x1d54'),'translate':_0x19fa46('0xbc6'),'icon':_0x19fa46('0x24a0'),'permissions':{'hidden':!![]},'weight':0x11,'hidden':function(){const _0x49af19=_0x19fa46;return _0x1a9716[_0x49af19('0x1ba2')](_0x49af19('0x684'))||!_0x1a9716[_0x49af19('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x49af19('0x1ba2')](_0x49af19('0x20bf'));}});for(let _0x293154=0x0;_0x293154<_0x5e1a7e[_0x19fa46('0x1f73')];_0x293154+=0x1){_0x1f0d30=0x15b38+_0x5e1a7e[_0x293154]['id'],_0x58b19e[_0x19fa46('0x1321')](_0x19fa46('0x3b6')+_0x1f0d30,_0x33857c(_0x1f0d30,_0x5e1a7e[_0x293154]));}_0x58b19e[_0x19fa46('0x1b22')]();}const _0x179c8a=_0x49cbdd()['filter'](_0x424ce7[_0x19fa46('0x2319')],function(_0x11de29){const _0x3bb654=_0x19fa46;return _0x11de29[_0x3bb654('0x874')]!=_0x3bb654('0x360')&&_0x11de29[_0x3bb654('0x874')]!=_0x3bb654('0x1bba');});if(_0x179c8a[_0x19fa46('0x1f73')]>0x0)for(let _0x517127=0x0;_0x517127<_0x179c8a[_0x19fa46('0x1f73')];_0x517127+=0x1){_0x1f0d30=0x15b38+_0x179c8a[_0x517127]['id'],_0x36c679(_0x1f0d30,_0x179c8a[_0x517127]);}}})),_0x31cd71[_0x2a3d06('0x8fa')]&&!_0x1c0d1c[_0x2a3d06('0x1c1a')]&&_0x1c0d1c[_0x2a3d06('0x2295')]&&angular[_0x2a3d06('0x1ce1')](_0x2a3d06('0x184f'))['html'](_0x1c0d1c['pageTitle']),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x12f'),{'id':0x64,'title':'Dashboards','translate':_0x2a3d06('0x6f'),'icon':'icon-tile-four','weight':0x2,'hidden':function(){const _0x5f2dbe=_0x2a3d06;return _0x1a9716['hasRole'](_0x5f2dbe('0x684'))||!_0x1a9716[_0x5f2dbe('0xe63')](_0xdca3(this))&&!_0x1a9716['hasRole'](_0x5f2dbe('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x208b'),{'id':0x65,'title':'General','route':'','translate':'DASHBOARDS.GENERAL','state':_0x2a3d06('0x980'),'weight':0x1,'hidden':function(){const _0x4193fd=_0x2a3d06;return _0x1a9716['hasRole'](_0x4193fd('0x684'))||!_0x1a9716[_0x4193fd('0xf51')](0x65)&&!_0x1a9716[_0x4193fd('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x247b'),{'id':0xc8,'title':_0x2a3d06('0x2560'),'translate':_0x2a3d06('0x1d2d'),'icon':_0x2a3d06('0x14dd'),'weight':0x3,'hidden':function(){const _0x472893=_0x2a3d06;return _0x1a9716['hasRole'](_0x472893('0x684'))||!_0x1a9716[_0x472893('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x472893('0x1ba2')](_0x472893('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x2051'),{'id':0xc9,'title':_0x2a3d06('0x15d4'),'route':_0x2a3d06('0x221e'),'translate':_0x2a3d06('0x629'),'state':_0x2a3d06('0x908'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x1082d3=_0x2a3d06;return _0x1a9716[_0x1082d3('0x1ba2')](_0x1082d3('0x684'))||_0x1a9716['hasRole'](_0x1082d3('0x221e'))||!_0x1a9716[_0x1082d3('0xf51')](0xc9)&&!_0x1a9716['hasRole'](_0x1082d3('0x20bf'));}}),_0x58b19e['saveItem']('apps.staff.agents',{'id':0xca,'title':'Agents','route':_0x2a3d06('0x221e'),'translate':_0x2a3d06('0x1f0c'),'state':'app.staff.agents','weight':0x1,'hidden':function(){const _0x2a779a=_0x2a3d06;return _0x1a9716[_0x2a779a('0x1ba2')](_0x2a779a('0x684'))||!_0x1a9716[_0x2a779a('0xf51')](0xca)&&!_0x1a9716[_0x2a779a('0x1ba2')](_0x2a779a('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xf61'),{'id':0xcb,'title':'Telephones','route':_0x2a3d06('0x221e'),'translate':_0x2a3d06('0x1d58'),'state':_0x2a3d06('0x1689'),'weight':0x1,'hidden':function(){const _0x4032d7=_0x2a3d06;return _0x1a9716[_0x4032d7('0x1ba2')](_0x4032d7('0x684'))||!_0x1a9716[_0x4032d7('0xf51')](0xcb)&&!_0x1a9716[_0x4032d7('0x1ba2')](_0x4032d7('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x20d6'),{'id':0xcc,'title':'Teams','route':_0x2a3d06('0x176'),'translate':_0x2a3d06('0x8aa'),'state':_0x2a3d06('0x6ac'),'weight':0x1,'hidden':function(){const _0x34eb6a=_0x2a3d06;return _0x1a9716[_0x34eb6a('0x1ba2')]('agent')||!_0x1a9716[_0x34eb6a('0xf51')](0xcc)&&!_0x1a9716[_0x34eb6a('0x1ba2')](_0x34eb6a('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x4df'),{'id':0xcd,'title':_0x2a3d06('0x1906'),'route':_0x2a3d06('0xdeb'),'translate':_0x2a3d06('0x1f33'),'state':_0x2a3d06('0x16ca'),'weight':0x1,'permissions':{'hidden':!![]},'hidden':function(){const _0x795f1b=_0x2a3d06;return _0x1a9716[_0x795f1b('0x1ba2')]('agent')||!_0x1a9716[_0x795f1b('0xf51')](0xcd)&&!_0x1a9716[_0x795f1b('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1ff8'),{'id':0x12c,'title':_0x2a3d06('0x1814'),'translate':_0x2a3d06('0xfa8'),'icon':_0x2a3d06('0x181c'),'weight':0x4,'license':'cm','hidden':function(){const _0x516883=_0x2a3d06;return!_0x31cd71['cm']||_0x1a9716[_0x516883('0x1ba2')](_0x516883('0x684'))||!_0x1a9716[_0x516883('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x516883('0x1ba2')](_0x516883('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1285'),{'id':0x12d,'title':'Lists','route':_0x2a3d06('0x25b'),'translate':_0x2a3d06('0x1c5a'),'state':'app.contactmanager.lists','weight':0x2,'hidden':function(){const _0xc58c63=_0x2a3d06;return _0x1a9716[_0xc58c63('0x1ba2')](_0xc58c63('0x684'))||!_0x1a9716['hasPermission'](0x12d)&&!_0x1a9716[_0xc58c63('0x1ba2')](_0xc58c63('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x810'),{'id':0x12e,'title':'Companies','route':_0x2a3d06('0x27e'),'translate':_0x2a3d06('0x2063'),'state':_0x2a3d06('0x1be9'),'weight':0x3,'hidden':function(){const _0x15179d=_0x2a3d06;return _0x1a9716[_0x15179d('0x1ba2')](_0x15179d('0x684'))||!_0x1a9716[_0x15179d('0xf51')](0x12e)&&!_0x1a9716[_0x15179d('0x1ba2')](_0x15179d('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x64'),{'id':0x130,'title':'GlobalCustomFields','route':_0x2a3d06('0x14c3'),'translate':_0x2a3d06('0x618'),'state':_0x2a3d06('0x2496'),'weight':0x4,'permissions':{'association':![]},'hidden':function(){const _0x3ed4f4=_0x2a3d06;return _0x1a9716['hasRole'](_0x3ed4f4('0x684'))||!_0x1a9716[_0x3ed4f4('0xf51')](0x130)&&!_0x1a9716[_0x3ed4f4('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x58d'),{'id':0x12f,'title':'Contacts','route':'','translate':'CONTACTMANAGER.CONTACTS','state':_0x2a3d06('0x6f8'),'weight':0x1,'permissions':{'association':![]},'hidden':function(){const _0x1b8789=_0x2a3d06;return _0x1a9716[_0x1b8789('0x1ba2')](_0x1b8789('0x684'))||!_0x1a9716[_0x1b8789('0xf51')](0x12f)&&!_0x1a9716['hasRole'](_0x1b8789('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0xedd'),{'id':0x190,'title':_0x2a3d06('0x18ef'),'translate':_0x2a3d06('0xc78'),'icon':_0x2a3d06('0x23de'),'weight':0x5,'license':_0x2a3d06('0x1fe1'),'hidden':function(){const _0x44d98f=_0x2a3d06;return!_0x31cd71['voice']||_0x1a9716['hasRole']('agent')||!_0x1a9716[_0x44d98f('0xe63')](_0xdca3(this))&&!_0x1a9716['hasRole'](_0x44d98f('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x528'),{'id':0x191,'title':_0x2a3d06('0x2068'),'route':'voiceQueue','translate':_0x2a3d06('0x96b'),'state':_0x2a3d06('0x13a1'),'weight':0x1,'channel':_0x2a3d06('0x1fe1'),'hidden':function(){const _0x2cdc26=_0x2a3d06;return _0x1a9716[_0x2cdc26('0x1ba2')](_0x2cdc26('0x684'))||!_0x1a9716[_0x2cdc26('0xf51')](0x191)&&!_0x1a9716[_0x2cdc26('0x1ba2')]('admin');}}),_0x58b19e['saveItem'](_0x2a3d06('0xd32'),{'id':0x192,'title':_0x2a3d06('0x1f77'),'route':'voiceExtension','translate':'VOICE.INBOUNDROUTES','state':_0x2a3d06('0x1197'),'weight':0x1,'hidden':function(){const _0x262f2a=_0x2a3d06;return _0x1a9716[_0x262f2a('0x1ba2')](_0x262f2a('0x684'))||!_0x1a9716[_0x262f2a('0xf51')](0x192)&&!_0x1a9716['hasRole']('admin');}}),_0x58b19e['saveItem'](_0x2a3d06('0xfd7'),{'id':0x193,'title':'OutboundRoutes','route':_0x2a3d06('0x16c2'),'translate':_0x2a3d06('0x25d4'),'state':_0x2a3d06('0x289'),'weight':0x1,'hidden':function(){const _0x1366f5=_0x2a3d06;return _0x1a9716[_0x1366f5('0x1ba2')](_0x1366f5('0x684'))||!_0x1a9716['hasPermission'](0x193)&&!_0x1a9716[_0x1366f5('0x1ba2')](_0x1366f5('0x20bf'));}}),_0x58b19e['saveItem']('apps.voice.internalroutes',{'id':0x194,'title':_0x2a3d06('0x1aa8'),'route':_0x2a3d06('0x16c2'),'translate':_0x2a3d06('0x2db'),'state':_0x2a3d06('0x2117'),'weight':0x1,'hidden':function(){const _0x564ca7=_0x2a3d06;return _0x1a9716[_0x564ca7('0x1ba2')]('agent')||!_0x1a9716[_0x564ca7('0xf51')](0x194)&&!_0x1a9716[_0x564ca7('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x52a'),{'id':0x195,'title':'Contexts','route':_0x2a3d06('0xc76'),'translate':'VOICE.CONTEXTS','state':_0x2a3d06('0x2a5'),'weight':0x1,'hidden':function(){const _0xd1ef92=_0x2a3d06;return _0x1a9716['hasRole'](_0xd1ef92('0x684'))||!_0x1a9716[_0xd1ef92('0xf51')](0x195)&&!_0x1a9716['hasRole'](_0xd1ef92('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x85f'),{'id':0x196,'title':_0x2a3d06('0xbc8'),'route':_0x2a3d06('0x2753'),'translate':_0x2a3d06('0x193c'),'state':_0x2a3d06('0xadf'),'weight':0x1,'hidden':function(){const _0x42068f=_0x2a3d06;return _0x1a9716[_0x42068f('0x1ba2')]('agent')||!_0x1a9716[_0x42068f('0xf51')](0x196)&&!_0x1a9716['hasRole']('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1efc'),{'id':0x197,'title':_0x2a3d06('0x14d6'),'route':_0x2a3d06('0xd20'),'translate':'VOICE.MUSICONHOLDS','state':_0x2a3d06('0x401'),'weight':0x1,'hidden':function(){const _0x4ccb4e=_0x2a3d06;return _0x1a9716['hasRole']('agent')||!_0x1a9716[_0x4ccb4e('0xf51')](0x197)&&!_0x1a9716['hasRole']('admin');}}),_0x58b19e['saveItem'](_0x2a3d06('0x6de'),{'id':0x198,'title':'VoiceRecordings','route':_0x2a3d06('0x5f4'),'translate':_0x2a3d06('0x1d9c'),'state':_0x2a3d06('0xfac'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x2d6e5c=_0x2a3d06;return _0x1a9716['hasRole'](_0x2d6e5c('0x684'))||!_0x1a9716['hasPermission'](0x198)&&!_0x1a9716[_0x2d6e5c('0x1ba2')](_0x2d6e5c('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.voice.chanSpies',{'id':0x199,'title':_0x2a3d06('0x39'),'route':_0x2a3d06('0x1122'),'translate':_0x2a3d06('0x762'),'state':'app.voice.chanSpies','weight':0x1,'hidden':function(){const _0x50b6de=_0x2a3d06;return _0x1a9716[_0x50b6de('0x1ba2')]('agent')||!_0x1a9716['hasPermission'](0x199)&&!_0x1a9716[_0x50b6de('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1a2c'),{'id':0x19a,'title':'VoicePrefixes','route':'voicePrefix','translate':_0x2a3d06('0x19c8'),'state':_0x2a3d06('0x1c66'),'weight':0x1,'hidden':function(){const _0x4192b5=_0x2a3d06;return _0x1a9716['hasRole'](_0x4192b5('0x684'))||!_0x1a9716[_0x4192b5('0xf51')](0x19a)&&!_0x1a9716[_0x4192b5('0x1ba2')](_0x4192b5('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.voice.realtime',{'id':0x19b,'title':_0x2a3d06('0x2177'),'route':'','translate':'VOICE.REALTIME','state':'app.voice.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x7c6552=_0x2a3d06;return _0x1a9716[_0x7c6552('0x1ba2')](_0x7c6552('0x684'))||!_0x1a9716[_0x7c6552('0xf51')](0x19b)&&!_0x1a9716['hasRole'](_0x7c6552('0x20bf'));}}),_0x58b19e['saveItem']('apps.chat',{'id':0x1f4,'title':'Chat','translate':'CHAT.CHAT','icon':_0x2a3d06('0x1fff'),'weight':0x6,'license':_0x2a3d06('0x2219'),'hidden':function(){const _0x370fbb=_0x2a3d06;return!_0x31cd71[_0x370fbb('0x2219')]||_0x1a9716[_0x370fbb('0x1ba2')](_0x370fbb('0x684'))||!_0x1a9716[_0x370fbb('0xe63')](_0xdca3(this))&&!_0x1a9716['hasRole'](_0x370fbb('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.chat.chatQueues',{'id':0x1f5,'title':_0x2a3d06('0x272'),'route':_0x2a3d06('0x262e'),'translate':_0x2a3d06('0x1c10'),'state':_0x2a3d06('0x23cf'),'weight':0x1,'channel':_0x2a3d06('0x2219'),'hidden':function(){const _0x32d7ef=_0x2a3d06;return _0x1a9716[_0x32d7ef('0x1ba2')](_0x32d7ef('0x684'))||!_0x1a9716[_0x32d7ef('0xf51')](0x1f5)&&!_0x1a9716[_0x32d7ef('0x1ba2')]('admin');}}),_0x58b19e['saveItem'](_0x2a3d06('0x1195'),{'id':0x1f6,'title':_0x2a3d06('0x14de'),'route':_0x2a3d06('0xdb2'),'translate':'CHAT.CHATWEBSITES','state':_0x2a3d06('0x197a'),'weight':0x1,'channel':'chat','hidden':function(){const _0x49889a=_0x2a3d06;return _0x1a9716[_0x49889a('0x1ba2')](_0x49889a('0x684'))||!_0x1a9716[_0x49889a('0xf51')](0x1f6)&&!_0x1a9716[_0x49889a('0x1ba2')](_0x49889a('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x2486'),{'id':0x1fe,'title':'Realtime','route':'','translate':_0x2a3d06('0x22f5'),'state':_0x2a3d06('0x16c4'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x107a36=_0x2a3d06;return _0x1a9716[_0x107a36('0x1ba2')](_0x107a36('0x684'))||!_0x1a9716[_0x107a36('0xf51')](0x1fe)&&!_0x1a9716['hasRole'](_0x107a36('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1859'),{'id':0x258,'title':_0x2a3d06('0x1225'),'translate':'MAIL.MAIL','icon':_0x2a3d06('0x1f8b'),'weight':0x7,'license':_0x2a3d06('0xc2'),'hidden':function(){const _0x5f63ef=_0x2a3d06;return!_0x31cd71[_0x5f63ef('0xc2')]||_0x1a9716[_0x5f63ef('0x1ba2')](_0x5f63ef('0x684'))||!_0x1a9716[_0x5f63ef('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x5f63ef('0x1ba2')](_0x5f63ef('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x124a'),{'id':0x259,'title':_0x2a3d06('0x294'),'route':'mailQueue','translate':_0x2a3d06('0xa90'),'state':_0x2a3d06('0xdd4'),'weight':0x1,'channel':'mail','hidden':function(){const _0x45d2c6=_0x2a3d06;return _0x1a9716[_0x45d2c6('0x1ba2')](_0x45d2c6('0x684'))||!_0x1a9716[_0x45d2c6('0xf51')](0x259)&&!_0x1a9716['hasRole'](_0x45d2c6('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x19b5'),{'id':0x25a,'title':'MailAccounts','route':_0x2a3d06('0x127b'),'translate':_0x2a3d06('0x873'),'state':'app.mail.mailAccounts','weight':0x1,'channel':_0x2a3d06('0xc2'),'hidden':function(){const _0x3fef82=_0x2a3d06;return _0x1a9716[_0x3fef82('0x1ba2')](_0x3fef82('0x684'))||!_0x1a9716[_0x3fef82('0xf51')](0x25a)&&!_0x1a9716[_0x3fef82('0x1ba2')](_0x3fef82('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1089'),{'id':0x25b,'title':'MailSubstatuses','route':_0x2a3d06('0x66'),'translate':_0x2a3d06('0x11c6'),'state':_0x2a3d06('0xc54'),'weight':0x1,'channel':_0x2a3d06('0xc2'),'permissions':{'association':![]},'hidden':function(){const _0x214c7d=_0x2a3d06;return _0x1a9716[_0x214c7d('0x1ba2')](_0x214c7d('0x684'))||!_0x1a9716[_0x214c7d('0xf51')](0x25b)&&!_0x1a9716[_0x214c7d('0x1ba2')](_0x214c7d('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xa50'),{'id':0x262,'title':_0x2a3d06('0x2177'),'route':'','translate':_0x2a3d06('0x10e8'),'state':_0x2a3d06('0x45'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x3bd841=_0x2a3d06;return _0x1a9716[_0x3bd841('0x1ba2')](_0x3bd841('0x684'))||!_0x1a9716[_0x3bd841('0xf51')](0x262)&&!_0x1a9716[_0x3bd841('0x1ba2')](_0x3bd841('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x261c'),{'id':0x2bc,'title':_0x2a3d06('0x1d2c'),'translate':_0x2a3d06('0x2843'),'icon':_0x2a3d06('0x1469'),'weight':0x8,'license':_0x2a3d06('0x6f3'),'hidden':function(){const _0x34f536=_0x2a3d06;return!_0x31cd71[_0x34f536('0x6f3')]||_0x1a9716[_0x34f536('0x1ba2')](_0x34f536('0x684'))||!_0x1a9716[_0x34f536('0xe63')](_0xdca3(this))&&!_0x1a9716['hasRole'](_0x34f536('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x909'),{'id':0x2bd,'title':_0x2a3d06('0x544'),'route':_0x2a3d06('0xdb0'),'translate':_0x2a3d06('0x2545'),'state':'app.sms.smsQueues','weight':0x1,'channel':_0x2a3d06('0x2cd'),'hidden':function(){const _0x44d97d=_0x2a3d06;return _0x1a9716[_0x44d97d('0x1ba2')](_0x44d97d('0x684'))||!_0x1a9716['hasPermission'](0x2bd)&&!_0x1a9716[_0x44d97d('0x1ba2')](_0x44d97d('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1334'),{'id':0x2be,'title':_0x2a3d06('0x2230'),'route':_0x2a3d06('0x1060'),'translate':'SMS.SMSACCOUNTS','state':_0x2a3d06('0x14e6'),'weight':0x1,'channel':_0x2a3d06('0x2cd'),'hidden':function(){const _0x49d915=_0x2a3d06;return _0x1a9716[_0x49d915('0x1ba2')](_0x49d915('0x684'))||!_0x1a9716[_0x49d915('0xf51')](0x2be)&&!_0x1a9716['hasRole'](_0x49d915('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x2572'),{'id':0x2c6,'title':_0x2a3d06('0x2177'),'route':'','translate':'SMS.REALTIME','state':_0x2a3d06('0x202a'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x50bfb3=_0x2a3d06;return _0x1a9716[_0x50bfb3('0x1ba2')](_0x50bfb3('0x684'))||!_0x1a9716[_0x50bfb3('0xf51')](0x2c6)&&!_0x1a9716[_0x50bfb3('0x1ba2')](_0x50bfb3('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.openchannel',{'id':0x320,'title':_0x2a3d06('0x951'),'translate':_0x2a3d06('0xf5e'),'icon':'icon-google-earth','weight':0x9,'license':_0x2a3d06('0x1508'),'hidden':function(){const _0x215e15=_0x2a3d06;return!_0x31cd71['openchannel']||_0x1a9716[_0x215e15('0x1ba2')](_0x215e15('0x684'))||!_0x1a9716[_0x215e15('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x215e15('0x1ba2')](_0x215e15('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x12ff'),{'id':0x321,'title':_0x2a3d06('0x1dad'),'route':_0x2a3d06('0x891'),'translate':'OPENCHANNEL.OPENCHANNELQUEUES','state':'app.openchannel.openchannelQueues','weight':0x1,'channel':_0x2a3d06('0x1a48'),'hidden':function(){const _0x9012c3=_0x2a3d06;return _0x1a9716[_0x9012c3('0x1ba2')]('agent')||!_0x1a9716[_0x9012c3('0xf51')](0x321)&&!_0x1a9716[_0x9012c3('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1096'),{'id':0x322,'title':_0x2a3d06('0x28cf'),'route':_0x2a3d06('0x152f'),'translate':_0x2a3d06('0x2598'),'state':_0x2a3d06('0x126b'),'weight':0x1,'channel':_0x2a3d06('0x1a48'),'hidden':function(){const _0x3c669a=_0x2a3d06;return _0x1a9716[_0x3c669a('0x1ba2')](_0x3c669a('0x684'))||!_0x1a9716[_0x3c669a('0xf51')](0x322)&&!_0x1a9716[_0x3c669a('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x86'),{'id':0x32a,'title':'Realtime','route':'','translate':_0x2a3d06('0x1f06'),'state':'app.openchannel.realtime','weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x5a95d7=_0x2a3d06;return _0x1a9716['hasRole'](_0x5a95d7('0x684'))||!_0x1a9716[_0x5a95d7('0xf51')](0x32a)&&!_0x1a9716[_0x5a95d7('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1b94'),{'id':0x384,'title':_0x2a3d06('0x366'),'translate':_0x2a3d06('0xa5e'),'icon':_0x2a3d06('0x131c'),'weight':0xa,'license':_0x2a3d06('0xc23'),'hidden':function(){const _0x974092=_0x2a3d06;return!_0x31cd71[_0x974092('0xc23')]||_0x1a9716[_0x974092('0x1ba2')](_0x974092('0x684'))||!_0x1a9716[_0x974092('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x974092('0x1ba2')](_0x974092('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xd14'),{'id':0x385,'title':_0x2a3d06('0x1a10'),'route':_0x2a3d06('0x384'),'translate':_0x2a3d06('0x275d'),'state':_0x2a3d06('0x1222'),'weight':0x1,'channel':_0x2a3d06('0xc23'),'hidden':function(){const _0x44da99=_0x2a3d06;return _0x1a9716['hasRole'](_0x44da99('0x684'))||!_0x1a9716[_0x44da99('0xf51')](0x385)&&!_0x1a9716[_0x44da99('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x26fe'),{'id':0x386,'title':_0x2a3d06('0xeca'),'route':_0x2a3d06('0x119'),'translate':_0x2a3d06('0x1ce9'),'state':_0x2a3d06('0x2525'),'weight':0x1,'channel':_0x2a3d06('0xc23'),'hidden':function(){const _0x36c8e7=_0x2a3d06;return _0x1a9716[_0x36c8e7('0x1ba2')]('agent')||!_0x1a9716[_0x36c8e7('0xf51')](0x386)&&!_0x1a9716[_0x36c8e7('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x13f9'),{'id':0x38e,'title':_0x2a3d06('0x2177'),'route':'','translate':_0x2a3d06('0x12d0'),'state':_0x2a3d06('0x2741'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x5ea882=_0x2a3d06;return _0x1a9716[_0x5ea882('0x1ba2')](_0x5ea882('0x684'))||!_0x1a9716[_0x5ea882('0xf51')](0x38e)&&!_0x1a9716[_0x5ea882('0x1ba2')]('admin');}}),_0x58b19e['saveItem']('apps.tools',{'id':0x3e8,'title':_0x2a3d06('0x1012'),'translate':'TOOLS.TOOLS','icon':_0x2a3d06('0x182f'),'weight':0xf,'hidden':function(){const _0x300111=_0x2a3d06;return _0x1a9716['hasRole'](_0x300111('0x684'))||!_0x1a9716[_0x300111('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x300111('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x8d7'),{'id':0x3e9,'title':_0x2a3d06('0x204f'),'route':_0x2a3d06('0x2043'),'translate':_0x2a3d06('0x279c'),'state':_0x2a3d06('0x146e'),'weight':0x1,'hidden':function(){const _0x4498dd=_0x2a3d06;return _0x1a9716[_0x4498dd('0x1ba2')](_0x4498dd('0x684'))||!_0x1a9716[_0x4498dd('0xf51')](0x3e9)&&!_0x1a9716[_0x4498dd('0x1ba2')](_0x4498dd('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.tools.customDashboards',{'id':0x3eb,'title':_0x2a3d06('0x1a9f'),'route':_0x2a3d06('0x40f'),'translate':_0x2a3d06('0x1317'),'state':_0x2a3d06('0x1dda'),'weight':0x3,'hidden':function(){const _0x7ffb24=_0x2a3d06;return _0x1a9716[_0x7ffb24('0x1ba2')](_0x7ffb24('0x684'))||!_0x1a9716[_0x7ffb24('0xf51')](0x3eb)&&!_0x1a9716[_0x7ffb24('0x1ba2')](_0x7ffb24('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.tools.intervals',{'id':0x3ec,'title':_0x2a3d06('0xf88'),'route':'interval','translate':'TOOLS.INTERVALS','state':'app.tools.intervals','weight':0x4,'hidden':function(){const _0x95c62a=_0x2a3d06;return _0x1a9716[_0x95c62a('0x1ba2')](_0x95c62a('0x684'))||!_0x1a9716[_0x95c62a('0xf51')](0x3ec)&&!_0x1a9716[_0x95c62a('0x1ba2')]('admin');}}),_0x58b19e['saveItem'](_0x2a3d06('0x19dd'),{'id':0x3ed,'title':'Pauses','route':_0x2a3d06('0x267a'),'translate':'TOOLS.PAUSES','state':_0x2a3d06('0x23f0'),'weight':0x5,'hidden':function(){const _0xba7e54=_0x2a3d06;return _0x1a9716[_0xba7e54('0x1ba2')](_0xba7e54('0x684'))||!_0x1a9716[_0xba7e54('0xf51')](0x3ed)&&!_0x1a9716[_0xba7e54('0x1ba2')](_0xba7e54('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x1f7f'),{'id':0x3ee,'title':_0x2a3d06('0x6c8'),'route':_0x2a3d06('0x2651'),'translate':_0x2a3d06('0x191'),'state':_0x2a3d06('0x211d'),'weight':0x6,'hidden':function(){const _0x518977=_0x2a3d06;return _0x1a9716[_0x518977('0x1ba2')](_0x518977('0x684'))||!_0x1a9716[_0x518977('0xf51')](0x3ee)&&!_0x1a9716['hasRole']('admin');}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.tools.sounds',{'id':0x3ef,'title':_0x2a3d06('0x18ff'),'route':_0x2a3d06('0x1f64'),'translate':'TOOLS.SOUNDS','state':_0x2a3d06('0xcb4'),'weight':0x7,'hidden':function(){const _0x2de706=_0x2a3d06;return _0x1a9716['hasRole']('agent')||!_0x1a9716['hasPermission'](0x3ef)&&!_0x1a9716[_0x2de706('0x1ba2')](_0x2de706('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xaa6'),{'id':0x3f0,'title':'Tags','route':_0x2a3d06('0x1132'),'translate':_0x2a3d06('0x2241'),'state':_0x2a3d06('0x2564'),'weight':0x8,'hidden':function(){const _0x540e20=_0x2a3d06;return _0x1a9716[_0x540e20('0x1ba2')](_0x540e20('0x684'))||!_0x1a9716[_0x540e20('0xf51')](0x3f0)&&!_0x1a9716[_0x540e20('0x1ba2')](_0x540e20('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x21e2'),{'id':0x3f1,'title':_0x2a3d06('0x24e9'),'route':_0x2a3d06('0x2260'),'translate':_0x2a3d06('0x1d6d'),'state':_0x2a3d06('0xa5c'),'weight':0x9,'hidden':function(){const _0x77e475=_0x2a3d06;return _0x1a9716[_0x77e475('0x1ba2')](_0x77e475('0x684'))||!_0x1a9716['hasPermission'](0x3f1)&&!_0x1a9716[_0x77e475('0x1ba2')](_0x77e475('0x20bf'));}}),_0x58b19e['saveItem']('apps.tools.trunks',{'id':0x3f3,'title':_0x2a3d06('0x18f1'),'route':'trunk','translate':_0x2a3d06('0x883'),'state':'app.tools.trunks','weight':0xb,'hidden':function(){const _0x10add4=_0x2a3d06;return _0x1a9716[_0x10add4('0x1ba2')](_0x10add4('0x684'))||!_0x1a9716[_0x10add4('0xf51')](0x3f3)&&!_0x1a9716[_0x10add4('0x1ba2')](_0x10add4('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.tools.variables',{'id':0x3f4,'title':'Variables','route':'variable','translate':_0x2a3d06('0x1512'),'state':'app.tools.variables','weight':0xc,'hidden':function(){const _0x293819=_0x2a3d06;return _0x1a9716[_0x293819('0x1ba2')]('agent')||!_0x1a9716[_0x293819('0xf51')](0x3f4)&&!_0x1a9716[_0x293819('0x1ba2')](_0x293819('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.tools.dispositions',{'id':0x3ea,'title':_0x2a3d06('0x1fa7'),'route':'disposition','translate':_0x2a3d06('0xe3b'),'state':_0x2a3d06('0x1cb1'),'weight':0x2,'hidden':function(){const _0x1211db=_0x2a3d06;return _0x1a9716[_0x1211db('0x1ba2')]('agent')||!_0x1a9716[_0x1211db('0xf51')](0x3ea)&&!_0x1a9716[_0x1211db('0x1ba2')](_0x1211db('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.tools.triggers',{'id':0x3f2,'title':_0x2a3d06('0x2019'),'route':'','translate':_0x2a3d06('0x2009'),'state':_0x2a3d06('0x2065'),'weight':0xa,'hidden':function(){const _0x1e396d=_0x2a3d06;return _0x1a9716['hasRole']('agent')||!_0x1a9716['hasPermission'](0x3f2)&&!_0x1a9716['hasRole'](_0x1e396d('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.callysquare',{'id':0x44c,'title':_0x2a3d06('0x1be7'),'translate':_0x2a3d06('0x1eb6'),'icon':_0x2a3d06('0x39e'),'weight':0xd,'license':'voice','hidden':function(){const _0x4aa672=_0x2a3d06;return!_0x31cd71[_0x4aa672('0x1fe1')]||_0x1a9716[_0x4aa672('0x1ba2')](_0x4aa672('0x684'))||!_0x1a9716[_0x4aa672('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x4aa672('0x1ba2')](_0x4aa672('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x2540'),{'id':0x44d,'title':_0x2a3d06('0x16d8'),'route':_0x2a3d06('0x153c'),'translate':_0x2a3d06('0x74b'),'state':_0x2a3d06('0x449'),'weight':0x2,'hidden':function(){const _0x2eaed0=_0x2a3d06;return _0x1a9716[_0x2eaed0('0x1ba2')]('agent')||!_0x1a9716[_0x2eaed0('0xf51')](0x44d)&&!_0x1a9716[_0x2eaed0('0x1ba2')](_0x2eaed0('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x1e3b'),{'id':0x44e,'title':_0x2a3d06('0x2645'),'route':_0x2a3d06('0x3'),'translate':'CALLYSQUARE.SQUARERECORDINGS','state':_0x2a3d06('0x1552'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x46a528=_0x2a3d06;return _0x1a9716['hasRole'](_0x46a528('0x684'))||!_0x1a9716[_0x46a528('0xf51')](0x44e)&&!_0x1a9716['hasRole'](_0x46a528('0x20bf'));}}),_0x58b19e['saveItem']('apps.callysquare.projects',{'id':0x44f,'title':_0x2a3d06('0x19f5'),'route':_0x2a3d06('0x1218'),'translate':_0x2a3d06('0x254b'),'state':'app.callysquare.projects','weight':0x1,'hidden':function(){const _0x5dc4da=_0x2a3d06;return _0x1a9716['hasRole'](_0x5dc4da('0x684'))||!_0x1a9716['hasPermission'](0x44f)&&!_0x1a9716['hasRole'](_0x5dc4da('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x126d'),{'id':0x4b0,'title':_0x2a3d06('0xe76'),'translate':'ANALYTICS.ANALYTICS','icon':_0x2a3d06('0x226f'),'weight':0x10,'hidden':function(){const _0x1cd286=_0x2a3d06;return _0x1a9716[_0x1cd286('0x1ba2')](_0x1cd286('0x684'))||!_0x1a9716[_0x1cd286('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x1cd286('0x1ba2')](_0x1cd286('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x381'),{'id':0x4b1,'title':'Metrics','route':_0x2a3d06('0x2103'),'translate':_0x2a3d06('0xf18'),'state':_0x2a3d06('0x14a6'),'weight':0x3,'hidden':function(){const _0x66ef7f=_0x2a3d06;return _0x1a9716[_0x66ef7f('0x1ba2')](_0x66ef7f('0x684'))||!_0x1a9716[_0x66ef7f('0xf51')](0x4b1)&&!_0x1a9716[_0x66ef7f('0x1ba2')](_0x66ef7f('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xda2'),{'id':0x4b2,'title':_0x2a3d06('0x11b'),'route':_0x2a3d06('0x841'),'translate':_0x2a3d06('0x1738'),'state':'app.analytics.extractedReports','weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x28d447=_0x2a3d06;return _0x1a9716[_0x28d447('0x1ba2')](_0x28d447('0x684'))||!_0x1a9716[_0x28d447('0xf51')](0x4b2)&&!_0x1a9716[_0x28d447('0x1ba2')](_0x28d447('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.analytics.reports',{'id':0x4b3,'title':_0x2a3d06('0xc8c'),'route':'','translate':_0x2a3d06('0x1cdd'),'state':_0x2a3d06('0x23f6'),'weight':0x1,'hidden':function(){const _0x20286b=_0x2a3d06;return _0x1a9716[_0x20286b('0x1ba2')](_0x20286b('0x684'))||!_0x1a9716[_0x20286b('0xf51')](0x4b3)&&!_0x1a9716['hasRole'](_0x20286b('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xef9'),{'id':0x514,'title':'Integrations','translate':_0x2a3d06('0x26cd'),'icon':'icon-heart','weight':0x11,'hidden':function(){const _0x42cd96=_0x2a3d06;return _0x1a9716[_0x42cd96('0x1ba2')](_0x42cd96('0x684'))||!_0x1a9716[_0x42cd96('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x42cd96('0x1ba2')](_0x42cd96('0x20bf'));}}),_0x58b19e['saveItem']('apps.integrations.zendeskAccounts',{'id':0x515,'title':_0x2a3d06('0x5f5'),'route':_0x2a3d06('0x1b8b'),'translate':_0x2a3d06('0x113'),'state':_0x2a3d06('0xab6'),'weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x4bb597=_0x2a3d06;return _0x1a9716['hasRole'](_0x4bb597('0x684'))||!_0x1a9716[_0x4bb597('0xf51')](0x515)&&!_0x1a9716[_0x4bb597('0x1ba2')](_0x4bb597('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x40c'),{'id':0x516,'title':_0x2a3d06('0x1aa0'),'route':_0x2a3d06('0x1c19'),'translate':_0x2a3d06('0x1cac'),'state':_0x2a3d06('0x2719'),'weight':0x2,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x520c6c=_0x2a3d06;return _0x1a9716[_0x520c6c('0x1ba2')]('agent')||!_0x1a9716['hasPermission'](0x516)&&!_0x1a9716[_0x520c6c('0x1ba2')](_0x520c6c('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.integrations.freshdeskAccounts',{'id':0x517,'title':_0x2a3d06('0x1e8e'),'route':'intFreshdeskAccount','translate':'INTEGRATIONS.FRESHDESKACCOUNTS','state':_0x2a3d06('0x23c8'),'weight':0x3,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x554df9=_0x2a3d06;return _0x1a9716[_0x554df9('0x1ba2')]('agent')||!_0x1a9716[_0x554df9('0xf51')](0x517)&&!_0x1a9716[_0x554df9('0x1ba2')](_0x554df9('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xc27'),{'id':0x519,'title':_0x2a3d06('0x148c'),'route':'intSugarcrmAccount','translate':_0x2a3d06('0x175c'),'state':_0x2a3d06('0x1f04'),'weight':0x4,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x271214=_0x2a3d06;return _0x1a9716[_0x271214('0x1ba2')]('agent')||!_0x1a9716[_0x271214('0xf51')](0x519)&&!_0x1a9716[_0x271214('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x189b'),{'id':0x51a,'title':_0x2a3d06('0x26dd'),'route':_0x2a3d06('0x278'),'translate':_0x2a3d06('0xf29'),'state':_0x2a3d06('0x68b'),'weight':0x5,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x3ec025=_0x2a3d06;return _0x1a9716[_0x3ec025('0x1ba2')]('agent')||!_0x1a9716['hasPermission'](0x51a)&&!_0x1a9716[_0x3ec025('0x1ba2')](_0x3ec025('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x7ab'),{'id':0x51b,'title':_0x2a3d06('0xbb1'),'route':_0x2a3d06('0x279a'),'translate':'INTEGRATIONS.ZOHOACCOUNTS','state':_0x2a3d06('0xe4b'),'weight':0x6,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x507250=_0x2a3d06;return _0x1a9716[_0x507250('0x1ba2')]('agent')||!_0x1a9716[_0x507250('0xf51')](0x51b)&&!_0x1a9716[_0x507250('0x1ba2')](_0x507250('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xc02'),{'id':0x51c,'title':_0x2a3d06('0x1763'),'route':_0x2a3d06('0x2090'),'translate':_0x2a3d06('0xff0'),'state':_0x2a3d06('0xb28'),'weight':0x7,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1229ba=_0x2a3d06;return _0x1a9716[_0x1229ba('0x1ba2')](_0x1229ba('0x684'))||!_0x1a9716[_0x1229ba('0xf51')](0x51c)&&!_0x1a9716[_0x1229ba('0x1ba2')](_0x1229ba('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x4b4'),{'id':0x51d,'title':_0x2a3d06('0x2163'),'route':_0x2a3d06('0x399'),'translate':_0x2a3d06('0x2531'),'state':_0x2a3d06('0x14b6'),'weight':0x8,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x106786=_0x2a3d06;return _0x1a9716[_0x106786('0x1ba2')](_0x106786('0x684'))||!_0x1a9716[_0x106786('0xf51')](0x51d)&&!_0x1a9716[_0x106786('0x1ba2')](_0x106786('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.integrations.servicenowAccounts',{'id':0x51e,'title':'ServicenowAccounts','route':_0x2a3d06('0x18c2'),'translate':_0x2a3d06('0x2096'),'state':_0x2a3d06('0x29a'),'weight':0x9,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x4927e7=_0x2a3d06;return _0x1a9716[_0x4927e7('0x1ba2')](_0x4927e7('0x684'))||!_0x1a9716[_0x4927e7('0xf51')](0x51e)&&!_0x1a9716[_0x4927e7('0x1ba2')](_0x4927e7('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x1068'),{'id':0x518,'title':_0x2a3d06('0xe7f'),'route':_0x2a3d06('0x13e5'),'translate':_0x2a3d06('0x1f3e'),'state':_0x2a3d06('0x363'),'weight':0xa,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x320ecc=_0x2a3d06;return _0x1a9716[_0x320ecc('0x1ba2')](_0x320ecc('0x684'))||!_0x1a9716[_0x320ecc('0xf51')](0x518)&&!_0x1a9716['hasRole'](_0x320ecc('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x725'),{'id':0x578,'title':'Settings','translate':'SETTINGS.SETTINGS','icon':_0x2a3d06('0xb06'),'weight':0x14,'permissions':{'hidden':!![]},'hidden':function(){const _0x3216a9=_0x2a3d06;return _0x1a9716[_0x3216a9('0x1ba2')](_0x3216a9('0x684'))||!_0x1a9716[_0x3216a9('0xf51')](0x578)&&!_0x1a9716[_0x3216a9('0x1ba2')](_0x3216a9('0x20bf'))||_0x1a9716['hasRole'](_0x3216a9('0x20bf'))&&!_0x1a9716[_0x3216a9('0x2831')]()[_0x3216a9('0x2833')];}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.settings.generals',{'id':0x579,'title':_0x2a3d06('0x243d'),'route':_0x2a3d06('0x1aeb'),'translate':_0x2a3d06('0xabb'),'state':_0x2a3d06('0x1cc2'),'weight':0x1,'hidden':function(){const _0x2aad32=_0x2a3d06;return _0x1a9716[_0x2aad32('0x1ba2')](_0x2aad32('0x684'))||!_0x1a9716[_0x2aad32('0xf51')](0x578)&&!_0x1a9716[_0x2aad32('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.settings.smtps',{'id':0x57a,'title':'Smtp','route':_0x2a3d06('0x127b'),'translate':'SETTINGS.SMTP','state':_0x2a3d06('0x15c7'),'weight':0x1,'hidden':function(){const _0x19bb71=_0x2a3d06;return _0x1a9716[_0x19bb71('0x1ba2')]('agent')||!_0x1a9716[_0x19bb71('0xf51')](0x578)&&!_0x1a9716[_0x19bb71('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.settings.networks',{'id':0x57b,'title':_0x2a3d06('0x1962'),'route':_0x2a3d06('0x118'),'translate':'SETTINGS.NETWORKS','state':'app.settings.networks','weight':0x1,'hidden':function(){const _0x49c109=_0x2a3d06;return _0x1a9716[_0x49c109('0x1ba2')](_0x49c109('0x684'))||!_0x1a9716[_0x49c109('0xf51')](0x578)&&!_0x1a9716[_0x49c109('0x1ba2')](_0x49c109('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x971'),{'id':0x57f,'title':'Customizations','route':'setting','translate':_0x2a3d06('0x220b'),'state':_0x2a3d06('0x2047'),'weight':0x1,'hidden':function(){const _0x3adaa4=_0x2a3d06;return!_0x31cd71[_0x3adaa4('0x8fa')]||_0x1a9716[_0x3adaa4('0x1ba2')]('agent')||!_0x1a9716[_0x3adaa4('0xf51')](0x578)&&!_0x1a9716[_0x3adaa4('0x1ba2')](_0x3adaa4('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x959'),{'id':0x580,'title':_0x2a3d06('0x161e'),'route':_0x2a3d06('0x2535'),'translate':_0x2a3d06('0xeed'),'state':_0x2a3d06('0x4fb'),'weight':0x1,'hidden':function(){const _0x316ed2=_0x2a3d06;return!_0x31cd71['ai']||_0x1a9716[_0x316ed2('0x1ba2')](_0x316ed2('0x684'))||!_0x1a9716[_0x316ed2('0xf51')](0x578)&&!_0x1a9716['hasRole']('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x104d'),{'id':0x57c,'title':_0x2a3d06('0x67f'),'route':'','translate':_0x2a3d06('0x11d1'),'state':_0x2a3d06('0xad5'),'weight':0x1,'hidden':function(){const _0x3189d3=_0x2a3d06;return!_0x31cd71[_0x3189d3('0x27ba')]||_0x1a9716['hasRole'](_0x3189d3('0x684'))||!_0x1a9716[_0x3189d3('0xf51')](0x578)&&!_0x1a9716[_0x3189d3('0x1ba2')](_0x3189d3('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x1e0c'),{'id':0x57d,'title':_0x2a3d06('0x1d8'),'route':'','translate':'SETTINGS.LICENSE','state':_0x2a3d06('0x2159'),'weight':0x1,'hidden':function(){const _0x4dab9e=_0x2a3d06;return _0x1a9716[_0x4dab9e('0x1ba2')](_0x4dab9e('0x684'))||!_0x1a9716['hasPermission'](0x578)&&!_0x1a9716['hasRole'](_0x4dab9e('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0xeaa'),{'id':0x57e,'title':_0x2a3d06('0x1597'),'route':'','translate':_0x2a3d06('0x901'),'state':'app.settings.system','weight':0x1,'hidden':function(){const _0xf827a2=_0x2a3d06;return _0x1a9716[_0xf827a2('0x1ba2')](_0xf827a2('0x684'))||!_0x1a9716['hasPermission'](0x578)&&!_0x1a9716[_0xf827a2('0x1ba2')](_0xf827a2('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x25fa'),{'id':0x5dc,'title':_0x2a3d06('0x16d9'),'translate':_0x2a3d06('0x285c'),'icon':_0x2a3d06('0xbaf'),'weight':0x5,'license':_0x2a3d06('0x1646'),'hidden':function(){const _0x54983f=_0x2a3d06;return!_0x31cd71[_0x54983f('0x1646')]||_0x1a9716[_0x54983f('0x1ba2')](_0x54983f('0x684'))||!_0x1a9716[_0x54983f('0xe63')](_0xdca3(this))&&!_0x1a9716['hasRole'](_0x54983f('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x2020'),{'id':0x5dd,'title':_0x2a3d06('0x1299'),'route':_0x2a3d06('0x1243'),'translate':_0x2a3d06('0xd9b'),'state':'app.motiondialer.queueCampaigns','weight':0x1,'channel':_0x2a3d06('0x8e7'),'hidden':function(){const _0x20883e=_0x2a3d06;return _0x1a9716['hasRole']('agent')||!_0x1a9716[_0x20883e('0xf51')](0x5dd)&&!_0x1a9716[_0x20883e('0x1ba2')](_0x20883e('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x145f'),{'id':0x5de,'title':_0x2a3d06('0x2187'),'route':_0x2a3d06('0x2395'),'translate':_0x2a3d06('0xe2'),'state':'app.motiondialer.ivrCampaigns','weight':0x1,'hidden':function(){const _0x446067=_0x2a3d06;return _0x1a9716['hasRole'](_0x446067('0x684'))||!_0x1a9716[_0x446067('0xf51')](0x5de)&&!_0x1a9716[_0x446067('0x1ba2')](_0x446067('0x20bf'));}}),_0x58b19e['saveItem'](_0x2a3d06('0x2658'),{'id':0x5e6,'title':_0x2a3d06('0x2177'),'route':'','translate':_0x2a3d06('0x1922'),'state':_0x2a3d06('0xbe8'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x556d50=_0x2a3d06;return _0x1a9716[_0x556d50('0x1ba2')](_0x556d50('0x684'))||!_0x1a9716[_0x556d50('0xf51')](0x5e6)&&!_0x1a9716[_0x556d50('0x1ba2')](_0x556d50('0x20bf'));}}),_0x58b19e['saveItem']('apps.help',{'id':0x640,'title':_0x2a3d06('0x1026'),'translate':_0x2a3d06('0x68a'),'icon':_0x2a3d06('0xfb5'),'weight':0x15,'permissions':{'association':![]},'hidden':function(){const _0x565392=_0x2a3d06;return _0x1a9716[_0x565392('0x1ba2')]('agent')||!_0x1a9716['hasPermission'](0x640)&&!_0x1a9716[_0x565392('0x1ba2')](_0x565392('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.help.about',{'id':0x641,'title':_0x2a3d06('0x22ba'),'route':'','translate':_0x2a3d06('0x55b'),'state':'app.help.about','weight':0x1,'hidden':function(){const _0xfc88e2=_0x2a3d06;return _0x1a9716['hasRole'](_0xfc88e2('0x684'))||!_0x1a9716['hasPermission'](0x640)&&!_0x1a9716[_0xfc88e2('0x1ba2')](_0xfc88e2('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xfe0'),{'id':0x6a4,'title':_0x2a3d06('0x2343'),'translate':_0x2a3d06('0x236c'),'icon':'icon-script','weight':0xe,'license':'jscripty','hidden':function(){const _0x3102d8=_0x2a3d06;return!_0x31cd71[_0x3102d8('0x2343')]||_0x1a9716['hasRole'](_0x3102d8('0x684'))||!_0x1a9716[_0x3102d8('0xe63')](_0xdca3(this))&&!_0x1a9716['hasRole'](_0x3102d8('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x13be'),{'id':0x6a5,'title':_0x2a3d06('0x19f5'),'route':_0x2a3d06('0x12fb'),'translate':'JSCRIPTY.PROJECTS','state':_0x2a3d06('0x1785'),'weight':0x1,'hidden':function(){const _0x328f9c=_0x2a3d06;return _0x1a9716[_0x328f9c('0x1ba2')](_0x328f9c('0x684'))||!_0x1a9716[_0x328f9c('0xf51')](0x6a5)&&!_0x1a9716[_0x328f9c('0x1ba2')](_0x328f9c('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0xd46'),{'id':0x708,'title':_0x2a3d06('0x2118'),'translate':_0x2a3d06('0x1d96'),'icon':'icon-cart','weight':0x12,'hidden':function(){const _0x59301b=_0x2a3d06;return _0x1a9716['hasRole'](_0x59301b('0x684'))||!_0x1a9716[_0x59301b('0xe63')](_0xdca3(this))&&!_0x1a9716[_0x59301b('0x1ba2')](_0x59301b('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x120f'),{'id':0x709,'title':_0x2a3d06('0x1d54'),'route':_0x2a3d06('0x1ec3'),'translate':'MARKETPLACE.PLUGINS','state':_0x2a3d06('0x1dde'),'weight':0x1,'hidden':function(){const _0x584c5e=_0x2a3d06;return _0x1a9716['hasRole'](_0x584c5e('0x684'))||!_0x1a9716['hasPermission'](0x709)&&!_0x1a9716['hasRole'](_0x584c5e('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x2454'),{'id':0x7d0,'title':_0x2a3d06('0xbfc'),'translate':'VIDEO.VIDEO','icon':_0x2a3d06('0x28e'),'weight':0xc,'license':_0x2a3d06('0xf1a'),'hidden':function(){const _0x43abed=_0x2a3d06;return!_0x31cd71[_0x43abed('0xf1a')]||_0x1a9716[_0x43abed('0x1ba2')](_0x43abed('0x684'))||!_0x1a9716[_0x43abed('0xe63')](_0xdca3(this))&&!_0x1a9716['hasRole'](_0x43abed('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.video.screenRecordings',{'id':0x7d1,'title':'ScreenRecordings','route':_0x2a3d06('0x1375'),'translate':_0x2a3d06('0x258c'),'state':'app.video.screenRecordings','weight':0x1,'permissions':{'association':![],'loading':!![]},'hidden':function(){const _0x1911b9=_0x2a3d06;return _0x1a9716['hasRole'](_0x1911b9('0x684'))||!_0x1a9716['hasPermission'](0x7d1)&&!_0x1a9716[_0x1911b9('0x1ba2')](_0x1911b9('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x7e6'),{'id':0x834,'title':_0x2a3d06('0xd7e'),'translate':_0x2a3d06('0x34'),'icon':_0x2a3d06('0x1485'),'weight':0xb,'license':'whatsapp','hidden':function(){const _0x456138=_0x2a3d06;return!_0x31cd71[_0x456138('0x1d27')]||_0x1a9716[_0x456138('0x1ba2')](_0x456138('0x684'))||!_0x1a9716[_0x456138('0xe63')](_0xdca3(this))&&!_0x1a9716['hasRole']('admin');}}),_0x58b19e[_0x2a3d06('0x1321')](_0x2a3d06('0x93d'),{'id':0x835,'title':_0x2a3d06('0x1d85'),'route':'whatsappQueue','translate':_0x2a3d06('0x1cd8'),'state':_0x2a3d06('0x1125'),'weight':0x1,'channel':_0x2a3d06('0x1d27'),'hidden':function(){const _0x49cb36=_0x2a3d06;return _0x1a9716[_0x49cb36('0x1ba2')]('agent')||!_0x1a9716['hasPermission'](0x835)&&!_0x1a9716[_0x49cb36('0x1ba2')](_0x49cb36('0x20bf'));}}),_0x58b19e['saveItem']('apps.whatsapp.whatsappAccounts',{'id':0x836,'title':_0x2a3d06('0xd91'),'route':_0x2a3d06('0x254f'),'translate':_0x2a3d06('0x15e3'),'state':'app.whatsapp.whatsappAccounts','weight':0x1,'channel':'whatsapp','hidden':function(){const _0x1189be=_0x2a3d06;return _0x1a9716[_0x1189be('0x1ba2')](_0x1189be('0x684'))||!_0x1a9716[_0x1189be('0xf51')](0x836)&&!_0x1a9716['hasRole'](_0x1189be('0x20bf'));}}),_0x58b19e[_0x2a3d06('0x1321')]('apps.whatsapp.realtime',{'id':0x83e,'title':_0x2a3d06('0x2177'),'route':'','translate':_0x2a3d06('0x22f6'),'state':_0x2a3d06('0xede'),'weight':0x1,'permissions':{'association':![],'crud':![]},'hidden':function(){const _0x3254ea=_0x2a3d06;return _0x1a9716[_0x3254ea('0x1ba2')]('agent')||!_0x1a9716[_0x3254ea('0xf51')](0x83e)&&!_0x1a9716[_0x3254ea('0x1ba2')]('admin');}}),_0x58b19e[_0x2a3d06('0x1b22')](),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x970'),{'title':_0x2a3d06('0x1f41'),'group':!![],'weight':0x1}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x1b60'),{'id':0x64,'title':_0x2a3d06('0x796'),'translate':'DASHBOARDS.HOME','icon':_0x2a3d06('0x720'),'weight':0x1}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x802'),{'id':0x65,'title':_0x2a3d06('0x53'),'translate':_0x2a3d06('0x2212'),'state':_0x2a3d06('0x40f'),'view':_0x2a3d06('0x40f'),'icon':_0x2a3d06('0xdad'),'iconClass':'cyan-500-fg','weight':0x1,'hidden':function(){return!_0x1a9716['hasPermission'](0x65);}}),_0x3ee8e4[_0x2a3d06('0x1321')]('apps.home.contacts',{'id':0x66,'title':'Contacts','translate':_0x2a3d06('0x12d1'),'state':_0x2a3d06('0x2720'),'view':'contacts','icon':'icon-account-circle','iconClass':_0x2a3d06('0x11e2'),'weight':0x2,'hidden':function(){const _0x3b79b8=_0x2a3d06;return!_0x31cd71['cm']||!_0x1a9716[_0x3b79b8('0xf51')](0x66);}}),_0x3ee8e4['saveItem'](_0x2a3d06('0x282b'),{'id':0x67,'title':_0x2a3d06('0x3c9'),'translate':_0x2a3d06('0x451'),'state':'mycontacts','view':_0x2a3d06('0x22f2'),'icon':_0x2a3d06('0x14dd'),'iconClass':_0x2a3d06('0x11e2'),'weight':0x3,'hidden':function(){const _0x1649d8=_0x2a3d06;return!_0x31cd71['cm']||!_0x1a9716[_0x1649d8('0xf51')](0x67);}}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x237'),{'id':0x71,'title':'Scheduled\x20Calls','translate':_0x2a3d06('0x3f1'),'state':_0x2a3d06('0x258a'),'view':'scheduled','icon':_0x2a3d06('0x1502'),'iconClass':'blue-grey-fg','weight':0x3,'hidden':function(){const _0x174a8d=_0x2a3d06;return!_0x31cd71[_0x174a8d('0x1646')]||!_0x1a9716['hasPermission'](0x71);}}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x49b'),{'id':0x6e,'title':'Voice','translate':'DASHBOARDS.VOICE','state':_0x2a3d06('0x1fe1'),'view':_0x2a3d06('0x1fe1'),'icon':_0x2a3d06('0x23de'),'iconClass':_0x2a3d06('0x63a'),'weight':0x4,'hidden':function(){const _0x4933bf=_0x2a3d06;return!_0x31cd71[_0x4933bf('0x1fe1')]||!_0x1a9716['hasPermission'](0x6e);}}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x287b'),{'id':0x6f,'title':'Abandoned','translate':_0x2a3d06('0x9ce'),'state':_0x2a3d06('0x22b6'),'view':_0x2a3d06('0x22b6'),'icon':_0x2a3d06('0x7aa'),'iconClass':'blue-fg','weight':0x5,'hidden':function(){const _0x4709eb=_0x2a3d06;return!_0x31cd71[_0x4709eb('0x1fe1')]||!_0x1a9716[_0x4709eb('0xf51')](0x6f);}}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x1286'),{'id':0x68,'title':'Recordings','translate':_0x2a3d06('0x22fc'),'state':_0x2a3d06('0x12d3'),'view':_0x2a3d06('0x12d3'),'icon':_0x2a3d06('0x2379'),'iconClass':_0x2a3d06('0x926'),'weight':0x6,'hidden':function(){const _0x2ae269=_0x2a3d06;return!_0x31cd71[_0x2ae269('0x1fe1')]||!_0x1a9716[_0x2ae269('0xf51')](0x68);}}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x1d2'),{'id':0x69,'title':'Chat','translate':'DASHBOARDS.CHAT','state':_0x2a3d06('0x2219'),'view':_0x2a3d06('0x2219'),'icon':'icon-hangouts','iconClass':_0x2a3d06('0x2893'),'weight':0x7,'hidden':function(){const _0x295aee=_0x2a3d06;return!_0x31cd71[_0x295aee('0x2219')]||!_0x1a9716[_0x295aee('0xf51')](0x69);}}),_0x3ee8e4[_0x2a3d06('0x1321')]('apps.home.mail',{'id':0x6a,'title':_0x2a3d06('0x1225'),'translate':_0x2a3d06('0x22e3'),'state':'mail','view':_0x2a3d06('0xc2'),'icon':'icon-email','iconClass':_0x2a3d06('0xd13'),'weight':0x8,'hidden':function(){const _0x48c568=_0x2a3d06;return!_0x31cd71[_0x48c568('0xc2')]||!_0x1a9716['hasPermission'](0x6a);}}),_0x3ee8e4[_0x2a3d06('0x1321')]('apps.home.sms',{'id':0x6b,'title':_0x2a3d06('0x1d2c'),'translate':_0x2a3d06('0x1e41'),'state':'sms','view':_0x2a3d06('0x2cd'),'icon':_0x2a3d06('0x1469'),'iconClass':_0x2a3d06('0x1af2'),'weight':0x9,'hidden':function(){const _0x1ae494=_0x2a3d06;return!_0x31cd71[_0x1ae494('0x6f3')]||!_0x1a9716[_0x1ae494('0xf51')](0x6b);}}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0x22a2'),{'id':0x6c,'title':'Openchannel','translate':_0x2a3d06('0x22b'),'state':_0x2a3d06('0x1508'),'view':'openchannel','icon':_0x2a3d06('0x2584'),'iconClass':'amber-fg','weight':0xa,'hidden':function(){const _0x1d3d07=_0x2a3d06;return!_0x31cd71[_0x1d3d07('0x1508')]||!_0x1a9716[_0x1d3d07('0xf51')](0x6c);}}),_0x3ee8e4[_0x2a3d06('0x1321')](_0x2a3d06('0xa07'),{'id':0x6d,'title':_0x2a3d06('0x366'),'translate':_0x2a3d06('0x2412'),'state':'fax','view':'fax','icon':'icon-deskphone','iconClass':_0x2a3d06('0x173a'),'weight':0xb,'hidden':function(){const _0x133a35=_0x2a3d06;return!_0x31cd71[_0x133a35('0xc23')]||!_0x1a9716[_0x133a35('0xf51')](0x6d);}}),_0x3ee8e4[_0x2a3d06('0x1321')]('apps.home.whatsapp',{'id':0x72,'title':_0x2a3d06('0xd7e'),'translate':_0x2a3d06('0x74'),'state':_0x2a3d06('0x1d27'),'view':_0x2a3d06('0x1d27'),'icon':_0x2a3d06('0x1485'),'iconClass':_0x2a3d06('0x186b'),'weight':0xc,'hidden':function(){const _0x57f538=_0x2a3d06;return!_0x31cd71['whatsapp']||!_0x1a9716[_0x57f538('0xf51')](0x72);}}),_0x806980[_0x2a3d06('0x207c')](_0x2a3d06('0x26a4'),function(_0xaeb57e){const _0x20d34f=_0x2a3d06;_0xaeb57e[_0x20d34f('0x73b')][_0x20d34f('0x2635')]===_0x806980[_0x20d34f('0x2635')]&&_0x4711f3[_0x20d34f('0x2446')](_0x20d34f('0x1826'));});}const _0x1c7ae0=_0x584a2d;;const _0x1cd390=[_0x4376d8('0x192e'),_0x4376d8('0x2376'),_0x4376d8('0xa0b'),_0x4376d8('0x10d8'),'app.toolbar','app.quick-panel',_0x4376d8('0x166b'),_0x4376d8('0x2ff'),_0x4376d8('0xc67'),'app.staff',_0x4376d8('0x1f0d'),_0x4376d8('0x1419'),_0x4376d8('0x2070'),'app.mail','app.sms','app.openchannel',_0x4376d8('0x1c74'),_0x4376d8('0xee7'),_0x4376d8('0x546'),_0x4376d8('0x2771'),_0x4376d8('0x1eb'),_0x4376d8('0xf9a'),_0x4376d8('0x1f13'),'app.help',_0x4376d8('0x15d1'),_0x4376d8('0x123e'),_0x4376d8('0x49e'),_0x4376d8('0x22d7'),_0x4376d8('0x24a'),_0x4376d8('0x229b'),_0x4376d8('0x1f96'),'app.reset',_0x4376d8('0x984')];angular[_0x4376d8('0x11c4')](_0x4376d8('0x4ed'),_0x1cd390)['factory'](_0x4376d8('0x212e'),_0x2e015d)[_0x4376d8('0x1980')](_0x4aa356)[_0x4376d8('0x5ce')](_0x4376d8('0x214'),_0x2cf1cb)['filter'](_0x4376d8('0x129d'),_0x5d1c1b)[_0x4376d8('0x2483')](_0x4376d8('0x2543'),_0x57c290)[_0x4376d8('0x26a6')]('IndexFactory',_0x2ea1db)[_0x4376d8('0x26a6')](_0x4376d8('0x19be'),_0x1a7810)[_0x4376d8('0x26a6')]('Sequence',_0x3e4ecc)[_0x4376d8('0x1980')](_0x321559)[_0x4376d8('0x1a46')](_0x51353b)[_0x4376d8('0x26a6')](_0x4376d8('0x25aa'),_0x55357a)['controller']('MainController',_0x1c7ae0);},0x1a2c:(_0x43458f,_0x2da46a,_0xc17d91)=>{const _0x35dfe6=_0x226888;var _0x3bcc0e={'./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 _0x58160b(_0x477c0e){var _0x4e4ea7=_0x4e581f(_0x477c0e);return _0xc17d91(_0x4e4ea7);}function _0x4e581f(_0x29b374){const _0x2225b4=a0_0xd29e;if(!_0xc17d91['o'](_0x3bcc0e,_0x29b374)){var _0x591aa7=new Error(_0x2225b4('0xf6')+_0x29b374+'\x27');_0x591aa7[_0x2225b4('0xe5d')]=_0x2225b4('0xf1d');throw _0x591aa7;}return _0x3bcc0e[_0x29b374];}_0x58160b['keys']=function _0x1e04cb(){const _0x126ff6=a0_0xd29e;return Object[_0x126ff6('0x1c0f')](_0x3bcc0e);},_0x58160b[_0x35dfe6('0x898')]=_0x4e581f,_0x43458f[_0x35dfe6('0x3e8')]=_0x58160b,_0x58160b['id']=0x1a2c;},0x1666:_0x1f8b1e=>{const _0x29b361=_0x226888;'use strict';_0x1f8b1e[_0x29b361('0x3e8')]=angular;}},0x0,[[0x1efd,0x29a,0x301]]]); \ No newline at end of file diff --git a/public/app/main/apps/callysquare/i18n/ar.json b/public/app/main/apps/callysquare/i18n/ar.json index e0fc95d..75d740d 100644 --- a/public/app/main/apps/callysquare/i18n/ar.json +++ b/public/app/main/apps/callysquare/i18n/ar.json @@ -1,76 +1,122 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "ERRORS": { - "DSN_REQUIRED": "إسم مصدر البيانات المطلوب", - "FIELD_REQUIRED": "الحقل المطلوب", - "NAME_REQUIRED": "الاسم_مطلوب", - "PROJECT_REQUIRED": "المشروع المطلوب", - "URL_REQUIRED": "حقل الزامي" - }, - "HELP": { - "CC": " (john.doe@xcally.com ، jane.miller@xcally.com)يمكنك إضافة عناوين متعددة مفصولة بفواصل على سبيل المثال", - "DSN": " DRIVER = MySQL ؛ الخادم = 127.0.0.1 ؛ UID = xcall ؛ PWD = كلمة المرور ؛ DATABASE = مثال قاعدة البيانات", - "MAILBOX": "صندوق البريد ", - "TO": " (john.doe@xcally.com ، jane.miller@xcally.com)يمكنك إضافة عناوين متعددة مفصولة بفواصل على سبيل المثال", - "BCC": " (john.doe@xcally.com ، jane.miller@xcally.com)يمكنك إضافة عناوين متعددة مفصولة بفواصل على سبيل المثال" - }, + "ACCOUNT_ID": "الرقم التعريفى للحساب", + "ADDUSER_PROJECTS": "إضافة مستخدمين إلى المشروع", "ADD_ODBC": "اضافه ربط شبكى لقاعدة إتصال مفتوحة", - "AWS_TEXT_TYPE": "إدخال نص خاص بخدمه امازون للتخزين السحابى", - "BACK": "العودة إلى الخلف", - "DESCRIPTION": "الوصف", - "DIALOGFLOW": "تدفق البيانات", - "DIALOGFLOW_LANGUAGE": "لغة_تدفق البيانات", - "DSN": "اسم مصدر البينات ", - "FINDBY": "البحث بواسطة", - "LOGIN": "تسجيل الدخول", - "LOGOUT": "الخروج", - "NAME": "اسم", - "ODBC": "الربط الشبكى لقاعدة إتصال مفتوحة", - "PAUSE": "إيقاف مؤقت", - "PAUSE_ID": "الرقم التعريفى الخاص بالإيقاف المؤقت", - "SEARCH_FOR_ANYONE": "البحث عن أى شخص", - "SELECTED": "المحدد", - "SELECT_ALL": "اختر الكل", - "SELECT_NONE": "لم تقم بإختيار شئ", - "SMS_ACCOUNT_ID": "الرقم التعريفى للرسائل النصية القصيرة الخاصه بالحساب", - "TEST_ODBC": "إختبارالربط الشبكى لقاعدةإتصال مفتوحة", - "UNPAUSE": "ايقاف التوقف المؤقت", - "URI": "بروتكول معرف الموارد الموحد", "ADD_PROJECT": "أضف مشروع", + "ADD_VARIABLE": "إضافة متغير", + "AGENTS": "عملاء", "AGI": "بوابة ربط الاستريسيك", + "ALL_USERS": "جميع المستخدمين", "ANSWER": "إجابة", + "APIKEY": "مفتاح API", + "APPID": "الرقم التعريفى للتطبيق", + "APPLICATION": "التنفيذ", + "APPSECRET": "سر التطبيق", + "ARGS": "", + "ATTACHMENT_NAME": "اسم المرفق", + "ATTACHMENT_PATH": "مسار المرفق", + "ATTACHMENT_TYPE": "نوع المرفق", "AUDIO": "سمعي", + "AUDIOENCODING": "ترميز الصوت", + "AWSLEX": "Amazon Lex", + "AWSPOLLY": "خدمه تحويل النص الى عبارات مسموعه وهى أحد الخدمات المقدمه من خلال موقع أمازون", + "AWS_ACCESS_KEY_ID": " الرقم التعريفى للدخول الى خدمة التخزين السحابى ", + "AWS_BOT_NAME": "اسم بوت", + "AWS_LEX_REGION": "منطقة", + "AWS_POLLY_REGION": "المنطقه الخاصه بخدمه تحويل النص إلى عبارات مسموعة", + "AWS_POLLY_VOICE": "الصوت الخاص بخدمه تحويل النص إلى عبارات مسموعة", + "AWS_SECRET_ACCESS_KEY": "المفتاح السري للوصول غلى خدمة التخزين السحابى", + "AWS_TEXT_TYPE": "إدخال نص خاص بخدمه امازون للتخزين السحابى", + "BACK": "العودة إلى الخلف", + "BCC": "نسخه كربونية غير مرئية", "BEEP": "صوت للتنبيه", + "BODY": "الجسم", + "CALLBACK": "معاودة الاتصال مرة أخرى", + "CALLBACK_PRIORITY": "أولوية معاودة الإتصال", "CALLYSQUARE": "برنامج كالى سكوير", + "CC": "نسخة كربونيه", + "CHOOSE_ATTACHMENT": "اختر المرفقات", + "CLOSE": "إغلاق", + "COMMAND": "أمر", + "COMPUTEDVARIABLES": "مسار البرنامج النصي للمتغيرات المحسوبة", + "CONDITION": "شرط", + "CONTEXT": "سياق ", + "COPY": "نسخ", + "COPY_PROJECT": "نسخ المشروع", "CREATED_AT": "أنشئ في", + "CUSTOM_ACTION": "عمل مخصص", + "CUSTOM_ACTION_DATA": "عمل مخصص البيانات", + "CUSTOM_APP": "تطبيق مخصص", "DATABASE": "قاعدة البيانات", + "DELAY": "تأخير ", + "DELETE": "حذف", "DELETE_ODBC": "حذف الربط الشبكى لقاعدةإتصال مفتوحة", "DELETE_PROJECT": "حذف المشروع", + "DELETE_SQUARERECORDING": "حذف مربع التسجيل", + "DESCRIPTION": "الوصف", "DIAL": "يتصل", + "DIALOGFLOW": "تدفق البيانات", + "DIALOGFLOW_LANGUAGE": "لغة_تدفق البيانات", "DIGIT": "رقم", "DIGITS": "أرقام", + "DOWNLOAD_SQUARERECORDING": "تنزيل مربع التسجيل", + "DROP_TO_UPLOAD": "إسحب وقم بالرفع", + "DROP_TO_UPLOAD_MESSAGE": "اسحب الرسائل وقم برفعها", + "DSN": "اسم مصدر البينات ", "EDIT": "تعديل", "EDIT_ODBC": "تعديل الربط الشبكى لقاعدةإتصال مفتوحة", "EDIT_PROJECT": "تعديل المشروع", + "EDIT_SQUARERECORDING": "تحرير مربع التسجيل", + "EDIT_XML": " (تعديل لغه الترميز الموسعه( وهى تنسيق يستند إلى نص يسمح بهيكلة المستندات الإلكترونية ", "END": "إنهاء", + "ERRORS": { + "DSN_REQUIRED": "إسم مصدر البيانات المطلوب", + "FIELD_REQUIRED": "الحقل المطلوب", + "NAME_REQUIRED": "الاسم_مطلوب", + "PROJECT_REQUIRED": "المشروع المطلوب", + "URL_REQUIRED": "حقل الزامي" + }, "ESCAPE_DIGITS": "إخفاء الارقام", "EXTEN": "نطاق", + "EXTENSION": "إمتداد", "EXT_DIAL": "نطاق الاتصال الهاتفى", "FILE": "ملف", + "FILENAME": "اسم الملف", "FILE_ID": "الرقم التعريفى للملف", "FINALLY": "النهاية", + "FINDBY": "البحث بواسطة", "GETDIGITS": "احصل على أرقام", "GETSECRETDIGITS": "احصل على الأرقام السريه", + "GOAL": "هدف", + "GOALNAME": "اسم الهدف", + "GOOGLEASR": " تحويل االعبارات الصوتية المسموعةإلى نص من خلال جوجل", + "GOOGLE_ASR_LANGUAGE": " اللغه الخاصه بنحويل االعبارات الصوتية المسموعةإلى نص من خلال جوجل", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "إدخال النص", "GOOGLE_TTS_LANGUAGE": "اللغه الخاصه بخدمه جوجل فى تحويل النص إلى عبارت صوتيه مسموعه", "GOSUB": "الإنتقال إلى سطر فى مكان آخر فى البرنامج", + "GOTOC": "اذهب إلى", + "GOTOIF": "قاعدةاذهب الى إذا", + "GOTOIFTIME": "قاعدة:\"اذهب الى بالوقت\"\n", + "GO_TO_PROJECTS": "اذهب إلى المشاريع", + "GRAMMAR": "القواعد اللغويه", "HANGUP": "إنهاء المكالمه", + "HEADERS": "الرؤوس", + "HELP": { + "BCC": " (john.doe@xcally.com ، jane.miller@xcally.com)يمكنك إضافة عناوين متعددة مفصولة بفواصل على سبيل المثال", + "CC": " (john.doe@xcally.com ، jane.miller@xcally.com)يمكنك إضافة عناوين متعددة مفصولة بفواصل على سبيل المثال", + "DSN": " DRIVER = MySQL ؛ الخادم = 127.0.0.1 ؛ UID = xcall ؛ PWD = كلمة المرور ؛ DATABASE = مثال قاعدة البيانات", + "MAILBOX": "صندوق البريد ", + "MAX_TEXT_TTS": "الحد الأقصى المسموح به لعدد الأحرف هو 250", + "TO": " (john.doe@xcally.com ، jane.miller@xcally.com)يمكنك إضافة عناوين متعددة مفصولة بفواصل على سبيل المثال" + }, "HIDDENDIGITSNUM": "رقم الخانات المخفية", "HIDDENDIGITSPOS": "مكان الخانات المخفية", "ID": "الرقم التعريفى", + "IMPORT": "استيراد", + "IMPORT_XML": "إستيراد لغه الترميز الموسعه", + "INTERVAL_ID": "رقم الفترة\n", "INTKEY": " (إنتكى ( برنامج تفاعلى لتحديدعينه من خلال مقارنتها بالبيانات المخزنه ", "ISPEECHASR": " تحويل العبارات الصوتية المسموعةإلى نص", "ISPEECHTTS": "تحويل النص الى عبارات صوتيه مسموعه", @@ -78,160 +124,115 @@ "ISPEECH_TTS_LANGUAGE": "اللغه المستخدمه فى تحويل النص إلى عبارت صوتيه مسموعه", "KEY": "مفتاح", "LABEL": "علامه", + "LANGUAGECODE": "رمز اللغة", + "LASTNAME": "الاسم الأخير", + "LIST_ID": "الرقم التعريفى للقائمه", + "LOGIN": "تسجيل الدخول", + "LOGOUT": "الخروج", + "LUMENVOXASR": "برنامج تحويل االعبارات الصوتية المسموعةإلى نص", + "LUMENVOXTTS": "برنامج تحويل النص إلى عبارات صوتيه مسموعة", "MACRO": "تسلسل محفوظ من الاومر ", "MAILBOX": "صندوق بريد", "MATH": "الرياضيات", "MAXDIGIT": "الحد الأقصى للأرقام المطلوبه", "MENU": "القائمه", + "METHOD": "طريقة", "MINDIGIT": "الحد الأدنى للأرقام المطلوبه", "MODEL": "نموذج", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "اسم", + "NDAACTIVITY_TYPE": "نوع النشاط", + "NDAGENERATE_AUDIO": "توليد ملف الصوت", + "NDASSISTANT_URL": "رابط NDASSISTANT", + "NDAUTH_URL": "عنوان NDAUTH Url", + "NEW": "جديد", "NEW_ODBC": " ربط شبكى جديد لقاعدة إتصال مفتوحة", "NEW_PROJECT": "مشروع جديد", + "NEW_VARIABLE": "متغير جديد", + "NOOP": "لا يوجد عمليات\n", "NOTES": "ملاحظات", + "NO_AVAILABLE_INFO": "لا توجد معلومات متاحة", "NUMBER": "رقم", + "ODBC": "الربط الشبكى لقاعدة إتصال مفتوحة", "ODBC_ID": " الرقم التعريفى الخاص بربط الاتصال الشبكى لقاعدة بيانات مفتوحه ", + "OF": "من", + "OPEN": "افتح", + "OPEN_NEW_WINDOW": "فتح نافذة جديدة", + "OPEN_PROJECT": "فتح مشروع", "OPERATION": "التشغيل", "OPTIONS": "خيارات", "OPTS": "نظام تبادل العمليات المتنقل\n", + "OUTPUT": "مدخلات", + "PAGE": "صفحة", + "PASSWORD": "كلمه السر", + "PAUSE": "إيقاف مؤقت", + "PAUSE_ID": "الرقم التعريفى الخاص بالإيقاف المؤقت", + "PERMISSIONADD_PROJECTS": "إضافة مستخدمين إلى المشروع", "PHONE": "هاتف", "PLAYBACK": "إعاده التشغيل", "POSITION": "موضع", + "PRIORITY": "أفضلية", "PROJECT": "مشروع", "PROJECTS": "مشاريع", + "PROJECT_ID": "الرقم التعريفى للمشروع", "QUERY": "إستفسار", "QUEUE": "قائمه الترتيب", "QUEUE_ID": "الرقم التعريفى لقائمه الترتيب", + "RAWBODY": "الجسم", + "RAWHEADERS": "الرؤوس", "RECORD": "سجل", "RECORDINGFORMAT": "نموذج التسجيل", "RESPONSE": "مهلة الاستجابة", + "RESTAPI": "بقية API", "RETRY": "إعاده المحاوله", + "ROWSPERPAGE": "صفوف لكل صفحة", "SAVE": "حفظ", "SAYDIGITS": "للإتصال الصوتى قم بنطق الارقام", "SAYNUMBER": "للإتصال الصوتى قم بنطق الرقم", "SAYPHONETIC": "الحديث التلفوني\n", + "SEARCH_FOR_ANYONE": "البحث عن أى شخص", + "SELECTED": "المحدد", + "SELECTED_USERS": "المستخدمين المختارين", + "SELECT_ALL": "اختر الكل", + "SELECT_NONE": "لم تقم بإختيار شئ", + "SENDFAX": "إرسال فاكس", + "SENDMAIL": "ارسل بريد الكتروني", + "SENDSMS": "أرسل رسالة نصية قصيرة", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", "SET": "المعاملات الالكترونية الآمنه", "SIP_ID": "الرقم المعرفى لبروتوكول قياسي لبدء جلسة عمل تفاعلية تتضمن عناصر متعددة الوسائط", + "SMS_ACCOUNT_ID": "الرقم التعريفى للرسائل النصية القصيرة الخاصه بالحساب", + "SMS_TEXT": "رسالة نصية قصيرة ", "SPEED": "السرعة", "SQUARERECORDINGS": "مربع التسجيل", + "SSMLGENDER": "جنس", "START": "بداية", - "TEXT": "نص", - "TIMEOUT": "إنتهاء الوقت", - "TRUNK_NAME": "اسم البدالة\n", - "TTS": " تحويل النص إلى كلام لإصدار تسجيل صوتى منطوق للنص فى مستند على جهاز الحاسب ", - "UNIQUEID": "معرف فريد", - "URL": "عنونا موقع إلكترونى", - "VARIABLE_ID": "الرقم التعريفى للمتغير", - "VARIABLE_VALUE": "قيمه المتغير", - "VOICEMAIL": "البريد الصوتي", - "ACCOUNT_ID": "الرقم التعريفى للحساب", - "ADD_VARIABLE": "إضافة متغير", - "AGENTS": "عملاء", - "APPLICATION": "التنفيذ", - "ARGS": "", - "BCC": "نسخه كربونية غير مرئية", - "CALLBACK": "معاودة الاتصال مرة أخرى", - "CC": "نسخة كربونيه", - "CLOSE": "إغلاق", - "COMMAND": "أمر", - "CONDITION": "شرط", - "CONTEXT": "سياق ", - "COPY": "نسخ", - "COPY_PROJECT": "نسخ المشروع", - "CUSTOM_APP": "تطبيق مخصص", - "DELAY": "تأخير ", - "DROP_TO_UPLOAD": "إسحب وقم بالرفع", - "DROP_TO_UPLOAD_MESSAGE": "اسحب الرسائل وقم برفعها", - "EDIT_XML": " (تعديل لغه الترميز الموسعه( وهى تنسيق يستند إلى نص يسمح بهيكلة المستندات الإلكترونية ", - "EXTENSION": "إمتداد", - "GOAL": "هدف", - "GOALNAME": "اسم الهدف", - "GOTOC": "اذهب إلى", - "GOTOIF": "قاعدةاذهب الى إذا", - "GOTOIFTIME": "قاعدة:\"اذهب الى بالوقت\"\n", - "GO_TO_PROJECTS": "اذهب إلى المشاريع", - "IMPORT": "استيراد", - "IMPORT_XML": "إستيراد لغه الترميز الموسعه", - "INTERVAL_ID": "رقم الفترة\n", - "LASTNAME": "الاسم الأخير", - "LIST_ID": "الرقم التعريفى للقائمه", - "NEW": "جديد", - "NEW_VARIABLE": "متغير جديد", - "NOOP": "لا يوجد عمليات\n", - "NO_AVAILABLE_INFO": "لا توجد معلومات متاحة", - "OPEN": "افتح", - "OPEN_NEW_WINDOW": "فتح نافذة جديدة", - "OPEN_PROJECT": "فتح مشروع", - "OUTPUT": "مدخلات", - "PRIORITY": "أفضلية", - "PROJECT_ID": "الرقم التعريفى للمشروع", - "SENDMAIL": "ارسل بريد الكتروني", - "SENDSMS": "أرسل رسالة نصية قصيرة", - "SMS_TEXT": "رسالة نصية قصيرة ", "SUBJECT": "موضوع", "SUBPROJECT": "المشروع الفرعي", "SYSTEM": "النظام", "TELEPHONES": "الهواتف", "TEMPLATE_ID": "الرقم التعريفى للنموذج", + "TEST_ODBC": "إختبارالربط الشبكى لقاعدةإتصال مفتوحة", + "TEXT": "نص", + "TILDEASR": "", + "TIMEOUT": "إنتهاء الوقت", "TO": "إلى", + "TRUNK_NAME": "اسم البدالة\n", + "TTS": " تحويل النص إلى كلام لإصدار تسجيل صوتى منطوق للنص فى مستند على جهاز الحاسب ", + "UNIQUEID": "معرف فريد", + "UNPAUSE": "ايقاف التوقف المؤقت", "UPDATE_DESCRIPTION": "تحديث الوصف", "UPDATE_INFO": "تحديث المعلومات", - "USERS": "المستخدمين", - "VSWITCH": "تبديل متغير", - "APPID": "الرقم التعريفى للتطبيق", - "APPSECRET": "سر التطبيق", - "ATTACHMENT_NAME": "اسم المرفق", - "ATTACHMENT_PATH": "مسار المرفق", - "ATTACHMENT_TYPE": "نوع المرفق", - "AWSPOLLY": "خدمه تحويل النص الى عبارات مسموعه وهى أحد الخدمات المقدمه من خلال موقع أمازون", - "AWS_ACCESS_KEY_ID": " الرقم التعريفى للدخول الى خدمة التخزين السحابى ", - "AWS_POLLY_REGION": "المنطقه الخاصه بخدمه تحويل النص إلى عبارات مسموعة", - "AWS_POLLY_VOICE": "الصوت الخاص بخدمه تحويل النص إلى عبارات مسموعة", - "AWS_SECRET_ACCESS_KEY": "المفتاح السري للوصول غلى خدمة التخزين السحابى", - "CALLBACK_PRIORITY": "أولوية معاودة الإتصال", - "CHOOSE_ATTACHMENT": "اختر المرفقات", - "DELETE": "حذف", - "DELETE_SQUARERECORDING": "حذف مربع التسجيل", - "DOWNLOAD_SQUARERECORDING": "تنزيل مربع التسجيل", - "EDIT_SQUARERECORDING": "تحرير مربع التسجيل", - "FILENAME": "اسم الملف", - "GOOGLEASR": " تحويل االعبارات الصوتية المسموعةإلى نص من خلال جوجل", - "GOOGLE_ASR_LANGUAGE": " اللغه الخاصه بنحويل االعبارات الصوتية المسموعةإلى نص من خلال جوجل", - "GRAMMAR": "القواعد اللغويه", - "LUMENVOXASR": "برنامج تحويل االعبارات الصوتية المسموعةإلى نص", - "LUMENVOXTTS": "برنامج تحويل النص إلى عبارات صوتيه مسموعة", - "OF": "من", - "PAGE": "صفحة", - "ROWSPERPAGE": "صفوف لكل صفحة", - "SENDFAX": "إرسال فاكس", - "ADDUSER_PROJECTS": "إضافة مستخدمين إلى المشروع", - "ALL_USERS": "جميع المستخدمين", - "PERMISSIONADD_PROJECTS": "إضافة مستخدمين إلى المشروع", - "SELECTED_USERS": "المستخدمين المختارين", - "TILDEASR": "", - "AWS_BOT_NAME": "اسم بوت", - "AWS_LEX_REGION": "منطقة", - "NDASSISTANT_URL": "رابط NDASSISTANT", - "NDAUTH_URL": "عنوان NDAUTH Url", - "PASSWORD": "كلمه السر", + "URI": "بروتكول معرف الموارد الموحد", + "URL": "عنونا موقع إلكترونى", "USERNAME": "اسم المستخدم", - "NDAGENERATE_AUDIO": "توليد ملف الصوت", - "CUSTOM_ACTION": "عمل مخصص", - "CUSTOM_ACTION_DATA": "عمل مخصص البيانات", - "NDAACTIVITY_TYPE": "نوع النشاط", - "APIKEY": "مفتاح API", - "AUDIOENCODING": "ترميز الصوت", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "رمز اللغة", - "SSMLGENDER": "جنس", - "BODY": "الجسم", - "COMPUTEDVARIABLES": "مسار البرنامج النصي للمتغيرات المحسوبة", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "إدخال النص", - "HEADERS": "الرؤوس", - "METHOD": "طريقة", - "RAWBODY": "الجسم", - "RAWHEADERS": "الرؤوس", - "RESTAPI": "بقية API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "المستخدمين", + "VARIABLE_ID": "الرقم التعريفى للمتغير", + "VARIABLE_VALUE": "قيمه المتغير", + "VOICEMAIL": "البريد الصوتي", + "VSWITCH": "تبديل متغير" } } diff --git a/public/app/main/apps/callysquare/i18n/cs.json b/public/app/main/apps/callysquare/i18n/cs.json index a7132e9..e3a72a3 100644 --- a/public/app/main/apps/callysquare/i18n/cs.json +++ b/public/app/main/apps/callysquare/i18n/cs.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "AWSLEX": "Amazon Lex", - "AWS_LEX_REGION": "Region", - "AWS_BOT_NAME": "Bot name", + "ACCOUNT_ID": "Account", "ADDUSER_PROJECTS": "Add Users to Project", - "PERMISSIONADD_PROJECTS": "Add Users to Project", + "ADD_ODBC": "Add ODBC", + "ADD_PROJECT": "Add Project", + "ADD_VARIABLE": "Add Variable", + "AGENTS": "Agents", + "AGI": "AGI", "ALL_USERS": "All Users", - "SELECTED_USERS": "Selected Users", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Language", + "ANSWER": "Answer", + "APIKEY": "ApiKey", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "App Secret", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Attachment Name", + "ATTACHMENT_PATH": "Attachment Path", + "ATTACHMENT_TYPE": "Attachment Type", + "AUDIO": "Audio", + "AUDIOENCODING": "Audio kódování", + "AWSLEX": "Amazon Lex", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Access Key ID", + "AWS_BOT_NAME": "Bot name", + "AWS_LEX_REGION": "Region", + "AWS_POLLY_REGION": "Region", + "AWS_POLLY_VOICE": "Voice", + "AWS_SECRET_ACCESS_KEY": "Secret Access Key", "AWS_TEXT_TYPE": "Text type", - "PAUSE_ID": "Pause type", - "FINDBY": "Find By", - "LOGIN": "Login", - "PAUSE": "Pause", - "UNPAUSE": "End Pause", - "LOGOUT": "Logout", - "URI": "URI", - "SMS_ACCOUNT_ID": "Account", - "NAME": "Name", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Search", "BACK": "Back", - "SELECTED": "Selected", - "SELECT_ALL": "Select All", - "SELECT_NONE": "Select None", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Tělo", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Priority", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Choose Attachment", + "CLOSE": "Close", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Cesta skriptu vypočtené proměnné", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Copy", + "COPY_PROJECT": "Copy Project", + "CREATED_AT": "Created At", + "CUSTOM_ACTION": "Vlastní akce", + "CUSTOM_ACTION_DATA": "Data vlastních akcí", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "delay [min]", + "DELETE": "Delete", + "DELETE_ODBC": "Delete ODBC", + "DELETE_PROJECT": "Delete Project", + "DELETE_SQUARERECORDING": "Delete Square Recording", "DESCRIPTION": "Description", - "ADD_ODBC": "Add ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Language", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Download Square Recording", + "DROP_TO_UPLOAD": "DROP TO UPLOAD", + "DROP_TO_UPLOAD_MESSAGE": "You can also drop files here to upload. Only XML - Max. 5MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Edit ODBC", + "EDIT_PROJECT": "Edit Project", + "EDIT_SQUARERECORDING": "Edit Square Recording", + "EDIT_XML": "Edit XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Mandatory field", "DSN_REQUIRED": "Mandatory field", - "PROJECT_REQUIRED": "Mandatory field", "FIELD_REQUIRED": "Mandatory field", + "NAME_REQUIRED": "Mandatory field", + "PROJECT_REQUIRED": "Mandatory field", "URL_REQUIRED": "Povinné pole" }, - "EDIT_ODBC": "Edit ODBC", - "DELETE_ODBC": "Delete ODBC", - "SAVE": "Save", - "PROJECTS": "Projects", - "ADD_PROJECT": "Add Project", - "EDIT_PROJECT": "Edit Project", - "DELETE_PROJECT": "Delete Project", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "New ODBC connection", - "SQUARERECORDINGS": "Recordings", - "PROJECT": "Project", - "UNIQUEID": "Unique ID", - "PHONE": "Phone", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "Audio", - "CREATED_AT": "Created At", - "NOTES": "Notes", - "NEW_PROJECT": "New Project", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Filename", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", - "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", - "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", - "MATH": "Math", - "OPERATION": "Operation", - "PLAYBACK": "Playback", - "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", - "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", - "SAYDIGITS": "Say Digits", - "SAYNUMBER": "Say number", - "NUMBER": "Number", - "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "iSpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", + "FINALLY": "Finally", + "FINDBY": "Find By", "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "hidden Digits Position", "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "iSpeech ASR", - "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", - "SMS_TEXT": "Text", - "SENDMAIL": "Send Email", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", - "SUBJECT": "Subject", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Language", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Typ textu", + "GOOGLE_TTS_LANGUAGE": "Language", + "GOSUB": "GoSub", "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", "GOTOIF": "GoToIf", - "CONDITION": "Condition", "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", - "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "delay [min]", - "OPEN_NEW_WINDOW": "Open in a new window", - "OPEN_PROJECT": "Open Project", - "COPY": "Copy", - "OPEN": "Open", - "NEW": "New", - "COPY_PROJECT": "Copy Project", - "NEW_VARIABLE": "New Variable", - "ADD_VARIABLE": "Add Variable", - "UPDATE_DESCRIPTION": "Update Description", - "EDIT_XML": "Edit XML", - "IMPORT_XML": "Import XML", - "IMPORT": "Import", - "DROP_TO_UPLOAD": "DROP TO UPLOAD", - "DROP_TO_UPLOAD_MESSAGE": "You can also drop files here to upload. Only XML - Max. 5MB", - "CLOSE": "Close", - "NO_AVAILABLE_INFO": "No available info", "GO_TO_PROJECTS": "Go to projects", - "UPDATE_INFO": "Update Info", - "AGENTS": "Agents", - "TELEPHONES": "Telephones", - "USERS": "Users", + "GRAMMAR": "Grammar", + "HANGUP": "Hangup", + "HEADERS": "Záhlaví", "HELP": { - "MAILBOX": "mailbox@context", - "DSN": "Example: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", + "BCC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", "CC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)" + "DSN": "Example: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "mailbox@context", + "MAX_TEXT_TTS": "Maximální počet podporovaných znaků je 250", + "TO": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)" }, - "CHOOSE_ATTACHMENT": "Choose Attachment", - "ATTACHMENT_NAME": "Attachment Name", - "ATTACHMENT_TYPE": "Attachment Type", - "ATTACHMENT_PATH": "Attachment Path", - "SENDFAX": "Send Fax", - "DELETE_SQUARERECORDING": "Delete Square Recording", - "DOWNLOAD_SQUARERECORDING": "Download Square Recording", - "FILENAME": "Filename", - "EDIT_SQUARERECORDING": "Edit Square Recording", - "DELETE": "Delete", - "PAGE": "Page", - "ROWSPERPAGE": "Rows per page", - "OF": "of", - "CALLBACK_PRIORITY": "Priority", - "GOOGLE_ASR_LANGUAGE": "Language", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Access Key ID", - "AWS_SECRET_ACCESS_KEY": "Secret Access Key", - "AWS_POLLY_REGION": "Region", - "AWS_POLLY_VOICE": "Voice", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammar", - "TILDEASR": "Tilde ASR", - "APPID": "App ID", - "APPSECRET": "App Secret", - "APIKEY": "ApiKey", - "AUDIOENCODING": "Audio kódování", - "BODY": "Tělo", - "COMPUTEDVARIABLES": "Cesta skriptu vypočtené proměnné", - "CUSTOM_ACTION": "Vlastní akce", - "CUSTOM_ACTION_DATA": "Data vlastních akcí", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Typ textu", - "HEADERS": "Záhlaví", + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "hidden Digits Position", + "ID": "Id", + "IMPORT": "Import", + "IMPORT_XML": "Import XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "iSpeech ASR", + "ISPEECHTTS": "iSpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", "LANGUAGECODE": "Kód jazyka", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Login", + "LOGOUT": "Logout", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", + "MAILBOX": "Mailbox", + "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", "METHOD": "Metoda", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Name", "NDAACTIVITY_TYPE": "Aktivní typ", "NDAGENERATE_AUDIO": "Vygenerujte zvukový soubor", "NDASSISTANT_URL": "NDASSISTANT Url", "NDAUTH_URL": "NDAUTH Url", + "NEW": "New", + "NEW_ODBC": "New ODBC connection", + "NEW_PROJECT": "New Project", + "NEW_VARIABLE": "New Variable", + "NOOP": "NoOp", + "NOTES": "Notes", + "NO_AVAILABLE_INFO": "No available info", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "of", + "OPEN": "Open", + "OPEN_NEW_WINDOW": "Open in a new window", + "OPEN_PROJECT": "Open Project", + "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Page", "PASSWORD": "Heslo", + "PAUSE": "Pause", + "PAUSE_ID": "Pause type", + "PERMISSIONADD_PROJECTS": "Add Users to Project", + "PHONE": "Phone", + "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Project", + "PROJECTS": "Projects", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", "RAWBODY": "Tělo", "RAWHEADERS": "Záhlaví", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", + "RESPONSE": "Response Timeout", "RESTAPI": "Rest API", + "RETRY": "Retries", + "ROWSPERPAGE": "Rows per page", + "SAVE": "Save", + "SAYDIGITS": "Say Digits", + "SAYNUMBER": "Say number", + "SAYPHONETIC": "Say Phonetics", + "SEARCH_FOR_ANYONE": "Search", + "SELECTED": "Selected", + "SELECTED_USERS": "Selected Users", + "SELECT_ALL": "Select All", + "SELECT_NONE": "Select None", + "SENDFAX": "Send Fax", + "SENDMAIL": "Send Email", + "SENDSMS": "Send SMS", "SESTEKASR": "Sestek ASR", "SESTEKNDA": "Sestek NDA", "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Account", + "SMS_TEXT": "Text", + "SPEED": "Speed", + "SQUARERECORDINGS": "Recordings", "SSMLGENDER": "Rod", + "START": "Start", + "SUBJECT": "Subject", + "SUBPROJECT": "Sub Project", + "SYSTEM": "System", + "TELEPHONES": "Telephones", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Test ODBC", + "TEXT": "Text", + "TILDEASR": "Tilde ASR", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Unique ID", + "UNPAUSE": "End Pause", + "UPDATE_DESCRIPTION": "Update Description", + "UPDATE_INFO": "Update Info", + "URI": "URI", + "URL": "URL", "USERNAME": "Uživatelské jméno", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Users", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/da.json b/public/app/main/apps/callysquare/i18n/da.json index 0d120b1..b26b0b4 100644 --- a/public/app/main/apps/callysquare/i18n/da.json +++ b/public/app/main/apps/callysquare/i18n/da.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Tilføj brugere til projektet", + "ADD_ODBC": "Tilføje ODBC", + "ADD_PROJECT": "Tilføj projekt", + "ADD_VARIABLE": "Tilføj variabel", + "AGENTS": "Agenter", + "AGI": "AGI", + "ALL_USERS": "Alle brugere", + "ANSWER": "Answer", + "APIKEY": "ApiKey", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "App Secret", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Vedhæftet fil navn", + "ATTACHMENT_PATH": "Vedhæftet fil sti", + "ATTACHMENT_TYPE": "Tilslutningstypen", + "AUDIO": "Audio", + "AUDIOENCODING": "Lydkodning", "AWSLEX": "Amazon Lex", - "NAME": "Navnet", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Søg efter alle", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Adgangstast ID", + "AWS_BOT_NAME": "Bot navn", + "AWS_LEX_REGION": "Område", + "AWS_POLLY_REGION": "Region", + "AWS_POLLY_VOICE": "Voice", + "AWS_SECRET_ACCESS_KEY": "Secret Adgangsnøgle", + "AWS_TEXT_TYPE": "Teksttype", "BACK": "Tilbage", - "SELECTED": "Valgt", - "SELECT_ALL": "Vælg Alle", - "SELECT_NONE": "Vælg Ingen", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Legeme", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Prioritet", + "CALLYSQUARE": "Tisk Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Vælg redskab", + "CLOSE": "Luk", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Beregnede variabler scriptsti", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Kopi", + "COPY_PROJECT": "Kopier projekt", + "CREATED_AT": "Oprettet på", + "CUSTOM_ACTION": "Brugerdefineret handling", + "CUSTOM_ACTION_DATA": "Brugerdefinerede handlingsdata", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "Slet", + "DELETE_ODBC": "Slette ODBC", + "DELETE_PROJECT": "Slet projekt", + "DELETE_SQUARERECORDING": "Slet Square optagelse", "DESCRIPTION": "Beskrivelse", - "ADD_ODBC": "Tilføje ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Sprog", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Download Square optagelse", + "DROP_TO_UPLOAD": "Slip for upload", + "DROP_TO_UPLOAD_MESSAGE": "Man kan også lægge filer her skal uploades. Kun XML - Max. 5MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Rediger ODBC", + "EDIT_PROJECT": "Rediger projekt", + "EDIT_SQUARERECORDING": "Rediger Square optagelse", + "EDIT_XML": "Rediger XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Navnet er påkrævet", "DSN_REQUIRED": "DSN er påkrævet", - "PROJECT_REQUIRED": "Projektet er påkrævet", "FIELD_REQUIRED": "Feltet er påkrævet", + "NAME_REQUIRED": "Navnet er påkrævet", + "PROJECT_REQUIRED": "Projektet er påkrævet", "URL_REQUIRED": "Obligatorisk felt" }, - "EDIT_ODBC": "Rediger ODBC", - "DELETE_ODBC": "Slette ODBC", - "SAVE": "Gem", - "PROJECTS": "Projekter", - "ADD_PROJECT": "Tilføj projekt", - "EDIT_PROJECT": "Rediger projekt", - "DELETE_PROJECT": "Slet projekt", - "CALLYSQUARE": "Tisk Square", - "ID": "Id", - "NEW_ODBC": "Ny ODBC-forbindelsen.", - "SQUARERECORDINGS": "Pladsen optagelser", - "PROJECT": "Projekt", - "UNIQUEID": "Unikt ID", - "PHONE": "Telefonen", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "Audio", - "CREATED_AT": "Oprettet på", - "NOTES": "Noter", - "NEW_PROJECT": "Nyt projekt", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Filnavn", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Find By", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Sprog", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksttype", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Gå til projekter", + "GRAMMAR": "Grammatik", + "HANGUP": "Hangup", + "HEADERS": "headers", + "HELP": { + "BCC": "Du kan tilføje flere adresser med komma (f.eks. john.doe@xcally.com, Jane.miller@xcally.com)", + "CC": "Du kan tilføje flere adresser med komma (f.eks. john.doe@xcally.com, Jane.miller@xcally.com)", + "DSN": "Eksempel: DRIVER=MySQL Server=127,0.;0,1;UID=installation;PWD=password; DATABASE=motion", + "MAILBOX": "Postkasse@sammenhæng", + "MAX_TEXT_TTS": "Det maksimale antal understøttede tegn er 250", + "TO": "Du kan tilføje flere adresser med komma (f.eks. john.doe@xcally.com, Jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "Importer", + "IMPORT_XML": "Importere XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Sprogkode", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Log på", + "LOGOUT": "Log ud", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Tekst til tale-tale", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Metode", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Navnet", + "NDAACTIVITY_TYPE": "Aktivitetstype", + "NDAGENERATE_AUDIO": "Generer lydfil", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "Ny", + "NEW_ODBC": "Ny ODBC-forbindelsen.", + "NEW_PROJECT": "Nyt projekt", + "NEW_VARIABLE": "Ny variabel", + "NOOP": "NoOp", + "NOTES": "Noter", + "NO_AVAILABLE_INFO": "Der er ingen tilgængelig info", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "Af", + "OPEN": "Åbn", + "OPEN_NEW_WINDOW": "Åbner i et nyt vindue", + "OPEN_PROJECT": "Åbn projekt", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Page", + "PASSWORD": "Adgangskode", + "PAUSE": "Pause", + "PAUSE_ID": "Pause type", + "PERMISSIONADD_PROJECTS": "Tilføj brugere til projektet", + "PHONE": "Telefonen", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Projekt", + "PROJECTS": "Projekter", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "Legeme", + "RAWHEADERS": "headers", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "Rest API", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Rækker pr. side", + "SAVE": "Gem", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Søg efter alle", + "SELECTED": "Valgt", + "SELECTED_USERS": "Udvalgte brugere", + "SELECT_ALL": "Vælg Alle", + "SELECT_NONE": "Vælg Ingen", + "SENDFAX": "Send fax", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Konto", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Pladsen optagelser", + "SSMLGENDER": "Køn", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "Åbner i et nyt vindue", - "OPEN_PROJECT": "Åbn projekt", - "COPY": "Kopi", - "OPEN": "Åbn", - "NEW": "Ny", - "COPY_PROJECT": "Kopier projekt", - "NEW_VARIABLE": "Ny variabel", - "ADD_VARIABLE": "Tilføj variabel", - "UPDATE_DESCRIPTION": "Opdateret Beskrivelse", - "EDIT_XML": "Rediger XML", - "IMPORT_XML": "Importere XML", - "IMPORT": "Importer", - "DROP_TO_UPLOAD": "Slip for upload", - "DROP_TO_UPLOAD_MESSAGE": "Man kan også lægge filer her skal uploades. Kun XML - Max. 5MB", - "CLOSE": "Luk", - "NO_AVAILABLE_INFO": "Der er ingen tilgængelig info", - "GO_TO_PROJECTS": "Gå til projekter", - "UPDATE_INFO": "Opdateret Info", - "AGENTS": "Agenter", + "SYSTEM": "System", "TELEPHONES": "Telefoner", - "USERS": "Brugere", - "HELP": { - "MAILBOX": "Postkasse@sammenhæng", - "DSN": "Eksempel: DRIVER=MySQL Server=127,0.;0,1;UID=installation;PWD=password; DATABASE=motion", - "TO": "Du kan tilføje flere adresser med komma (f.eks. john.doe@xcally.com, Jane.miller@xcally.com)", - "CC": "Du kan tilføje flere adresser med komma (f.eks. john.doe@xcally.com, Jane.miller@xcally.com)", - "BCC": "Du kan tilføje flere adresser med komma (f.eks. john.doe@xcally.com, Jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Vælg redskab", - "ATTACHMENT_NAME": "Vedhæftet fil navn", - "ATTACHMENT_TYPE": "Tilslutningstypen", - "ATTACHMENT_PATH": "Vedhæftet fil sti", - "SENDFAX": "Send fax", - "DELETE_SQUARERECORDING": "Slet Square optagelse", - "DOWNLOAD_SQUARERECORDING": "Download Square optagelse", - "FILENAME": "Filnavn", - "EDIT_SQUARERECORDING": "Rediger Square optagelse", - "DELETE": "Slet", - "PAGE": "Page", - "ROWSPERPAGE": "Rækker pr. side", - "OF": "Af", - "CALLBACK_PRIORITY": "Prioritet", - "GOOGLE_ASR_LANGUAGE": "Sprog", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Adgangstast ID", - "AWS_SECRET_ACCESS_KEY": "Secret Adgangsnøgle", - "AWS_POLLY_REGION": "Region", - "AWS_POLLY_VOICE": "Voice", - "LUMENVOXTTS": "Lumenvox Tekst til tale-tale", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammatik", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Test ODBC", + "TEXT": "Text", "TILDEASR": "Tilde ASR", - "APPID": "App ID", - "APPSECRET": "App Secret", - "SMS_ACCOUNT_ID": "Konto", - "FINDBY": "Find By", - "LOGIN": "Log på", - "LOGOUT": "Log ud", - "PAUSE": "Pause", - "PAUSE_ID": "Pause type", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Unikt ID", "UNPAUSE": "Afslut pause", + "UPDATE_DESCRIPTION": "Opdateret Beskrivelse", + "UPDATE_INFO": "Opdateret Info", "URI": "URI", - "AWS_TEXT_TYPE": "Teksttype", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Sprog", - "ADDUSER_PROJECTS": "Tilføj brugere til projektet", - "ALL_USERS": "Alle brugere", - "PERMISSIONADD_PROJECTS": "Tilføj brugere til projektet", - "SELECTED_USERS": "Udvalgte brugere", - "AWS_BOT_NAME": "Bot navn", - "AWS_LEX_REGION": "Område", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "Adgangskode", + "URL": "URL", "USERNAME": "Brugernavn", - "NDAGENERATE_AUDIO": "Generer lydfil", - "CUSTOM_ACTION": "Brugerdefineret handling", - "CUSTOM_ACTION_DATA": "Brugerdefinerede handlingsdata", - "NDAACTIVITY_TYPE": "Aktivitetstype", - "APIKEY": "ApiKey", - "AUDIOENCODING": "Lydkodning", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Sprogkode", - "SSMLGENDER": "Køn", - "BODY": "Legeme", - "COMPUTEDVARIABLES": "Beregnede variabler scriptsti", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksttype", - "HEADERS": "headers", - "METHOD": "Metode", - "RAWBODY": "Legeme", - "RAWHEADERS": "headers", - "RESTAPI": "Rest API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Brugere", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/de.json b/public/app/main/apps/callysquare/i18n/de.json index cee5c50..6ccdaf5 100644 --- a/public/app/main/apps/callysquare/i18n/de.json +++ b/public/app/main/apps/callysquare/i18n/de.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Benutzer zu dem Projekt hinzufügen", + "ADD_ODBC": "ODBC hinzufügen", + "ADD_PROJECT": "Projekt hinzufügen", + "ADD_VARIABLE": "Variable hinzufügen", + "AGENTS": "Agenten", + "AGI": "AGI", + "ALL_USERS": "Alle Benutzer", + "ANSWER": "Antwort", + "APIKEY": "API-Schlüssel", + "APPID": "App-ID", + "APPLICATION": "Application", + "APPSECRET": "App Geheimnis", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Name des Anhangs", + "ATTACHMENT_PATH": "Anhangspfad", + "ATTACHMENT_TYPE": "Anhangstyp", + "AUDIO": "Audio", + "AUDIOENCODING": "Audio-Codierung", "AWSLEX": "Amazon Lex", - "NAME": "Name", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Suche für Jedermann", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Access Key ID", + "AWS_BOT_NAME": "Botname", + "AWS_LEX_REGION": "Region", + "AWS_POLLY_REGION": "Region", + "AWS_POLLY_VOICE": "Voice", + "AWS_SECRET_ACCESS_KEY": "Secret Access Key", + "AWS_TEXT_TYPE": "Texttyp", "BACK": "Zurück", - "SELECTED": "Ausgewählte", - "SELECT_ALL": "Alle auswählen", - "SELECT_NONE": "Wählen Sie \"Keine\"", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Körper", + "CALLBACK": "Rückruf", + "CALLBACK_PRIORITY": "Priorität", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Anhang wählen", + "CLOSE": "Schließen", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Skriptpfad für berechnete Variablen", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Kopieren", + "COPY_PROJECT": "Projekt kopieren", + "CREATED_AT": "Erstellt am", + "CUSTOM_ACTION": "Benutzerdefinierte Aktion", + "CUSTOM_ACTION_DATA": "Benutzerdefinierte Aktionsdaten", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Datenbank", + "DELAY": "Delay", + "DELETE": "Löschen", + "DELETE_ODBC": "ODBC löschen", + "DELETE_PROJECT": "Projekt löschen", + "DELETE_SQUARERECORDING": "Aufnahme löschen", "DESCRIPTION": "Beschreibung", - "ADD_ODBC": "Hinzufügen von ODBC", + "DIAL": "Wählen", + "DIALOGFLOW": "Dialogfluss", + "DIALOGFLOW_LANGUAGE": "Sprache", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Aufnahme hochladen", + "DROP_TO_UPLOAD": "DROP HOCHLADEN", + "DROP_TO_UPLOAD_MESSAGE": "Sie können auch Dateien hier hochladen. Nur XML-Max. 5 MB", + "DSN": "DSN", + "EDIT": "Bearbeiten", + "EDIT_ODBC": "ODBC bearbeiten", + "EDIT_PROJECT": "Projekt bearbeiten", + "EDIT_SQUARERECORDING": "Aufnahme bearbeiten", + "EDIT_XML": "XML bearbeiten", + "END": "Ende", "ERRORS": { - "NAME_REQUIRED": "Der Name ist erforderlich", - "DSN_REQUIRED": "Die DSN ist erforderlich", - "PROJECT_REQUIRED": "Das Projekt ist erforderlich", - "FIELD_REQUIRED": "Das Feld ist erforderlich.", + "DSN_REQUIRED": "Pflichtfeld", + "FIELD_REQUIRED": "Pflichtfeld", + "NAME_REQUIRED": "Pflichtfeld", + "PROJECT_REQUIRED": "Pflichtfeld", "URL_REQUIRED": "Pflichtfeld" }, - "EDIT_ODBC": "Bearbeiten von ODBC", - "DELETE_ODBC": "Löschen von ODBC", - "SAVE": "Speichern", - "PROJECTS": "Projekte", - "ADD_PROJECT": "Projekt hinzufügen", - "EDIT_PROJECT": "Projekt bearbeiten", - "DELETE_PROJECT": "Projekt löschen", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "Neue ODBC-Verbindung", - "SQUARERECORDINGS": "Quadratische Aufnahmen", - "PROJECT": "Projekt", - "UNIQUEID": "Eindeutige ID", - "PHONE": "Telefon", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Erweiterungen", - "AUDIO": "Audio", - "CREATED_AT": "Erstellt am", - "NOTES": "Hinweise", - "NEW_PROJECT": "Neues Projekt", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", - "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "EXTENSION": "Extension", + "EXT_DIAL": "Wählen extern", + "FILE": "Filename", + "FILENAME": "Dateiname", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", - "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", - "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", - "MATH": "Math", - "OPERATION": "Operation", - "PLAYBACK": "Playback", - "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", - "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", - "SAYDIGITS": "Say Digits", - "SAYNUMBER": "Say number", - "NUMBER": "Number", - "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", + "FINALLY": "Schliesslich", + "FINDBY": "Suchen nach", "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", - "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", - "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", - "SUBJECT": "Subject", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Sprache", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Texttyp", + "GOOGLE_TTS_LANGUAGE": "Google TTS", + "GOSUB": "GoSub", "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", "GOTOIF": "GoToIf", - "CONDITION": "Condition", "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", - "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "In einem neuen Fenster geöffnet", - "OPEN_PROJECT": "Projekt öffnen", - "COPY": "Kopieren", - "OPEN": "Öffnen", - "NEW": "Neue", - "COPY_PROJECT": "Projekt kopieren", - "NEW_VARIABLE": "Neue Variable", - "ADD_VARIABLE": "Variable hinzufügen", - "UPDATE_DESCRIPTION": "Update Beschreibung", - "EDIT_XML": "Bearbeiten von XML-", - "IMPORT_XML": "XML importieren", - "IMPORT": "Importieren", - "DROP_TO_UPLOAD": "DROP HOCHLADEN", - "DROP_TO_UPLOAD_MESSAGE": "Sie können auch Dateien hier hochladen. Nur XML-Max. 5 MB", - "CLOSE": "Schließen", - "NO_AVAILABLE_INFO": "Keine verfügbaren Info", "GO_TO_PROJECTS": "Wechseln zu Projekte", - "UPDATE_INFO": "Update Info", - "AGENTS": "Agenten", - "TELEPHONES": "Telefone", - "USERS": "Benutzer", + "GRAMMAR": "Grammatik", + "HANGUP": "Auflegen", + "HEADERS": "Überschriften", "HELP": { - "MAILBOX": "Mailbox @ Rahmen", - "DSN": "Beispiel: DRIVER=MySQL; SERVER=127.0.0.1; UID=;pwd=xcall Passwort; Datenbank = Motion", - "TO": "Sie können mehrere Adressen mit Kommata (z. b. John.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Sie können mehrere Adressen mit Kommata (z. b. John.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "Sie können mehrere Adressen mit Kommata (z. b. John.doe@xcally.com, jane.miller@xcally.com)" + "BCC": "Sie können mehrere Adressen durch Kommas hinzufügen (z. b. John.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Sie können mehrere Adressen durch Kommas hinzufügen(z. b. John.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "\"Beispiel: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion\",", + "MAILBOX": "\"mailbox@context\"", + "MAX_TEXT_TTS": "Die maximal unterstützte Anzahl von Zeichen beträgt 250", + "TO": "Sie können mehrere Adressen durch Kommas hinzufügen (z. b. John.doe@xcally.com, jane.miller@xcally.com)" }, - "CHOOSE_ATTACHMENT": "Anlage wählen", - "ATTACHMENT_NAME": "Name des Anhangs", - "ATTACHMENT_TYPE": "Anschlusstyp", - "ATTACHMENT_PATH": "Anhang Pfad", - "SENDFAX": "Fax senden", - "DELETE_SQUARERECORDING": "Löschen Quadrat Aufnahme", - "DOWNLOAD_SQUARERECORDING": "Download platz Aufnahme", - "FILENAME": "Dateiname", - "EDIT_SQUARERECORDING": "Platz Aufnahme bearbeiten", - "DELETE": "Löschen", - "PAGE": "Seite", - "ROWSPERPAGE": "Zeilen pro Seite", - "OF": "Von", - "CALLBACK_PRIORITY": "Priorität", - "GOOGLE_ASR_LANGUAGE": "Sprache", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Access Key ID", - "AWS_SECRET_ACCESS_KEY": "Secret Access Key", - "AWS_POLLY_REGION": "Region", - "AWS_POLLY_VOICE": "Voice", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammatik", - "TILDEASR": "Tilde ASR", - "APPID": "App-ID", - "APPSECRET": "App Geheimnis", - "SMS_ACCOUNT_ID": "Konto", - "FINDBY": "Suchen nach", - "LOGIN": "Anmeldung", + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "ID", + "IMPORT": "Importieren", + "IMPORT_XML": "XML importieren", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Sprachcode", + "LASTNAME": "Nachname", + "LIST_ID": "Liste", + "LOGIN": "Einloggen", "LOGOUT": "Ausloggen", - "PAUSE": "Pause", - "PAUSE_ID": "Pausetyp", - "UNPAUSE": "Ende Pause", - "URI": "URI", - "AWS_TEXT_TYPE": "Texttyp", - "DIALOGFLOW": "Dialogfluss", - "DIALOGFLOW_LANGUAGE": "Sprache", - "ADDUSER_PROJECTS": "Fügen Sie dem Projekt Benutzer hinzu", - "ALL_USERS": "Alle Nutzer", - "PERMISSIONADD_PROJECTS": "Fügen Sie dem Projekt Benutzer hinzu", - "SELECTED_USERS": "Ausgewählte Benutzer", - "AWS_BOT_NAME": "Botname", - "AWS_LEX_REGION": "Region", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", + "MAILBOX": "Mailbox", + "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Methode", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Name", + "NDAACTIVITY_TYPE": "Aktivitätsart", + "NDAGENERATE_AUDIO": "Audiodatei generieren", "NDASSISTANT_URL": "NDASSISTANT Url", "NDAUTH_URL": "NDAUTH Url", + "NEW": "Neu", + "NEW_ODBC": "Neue ODBC-Verbindung", + "NEW_PROJECT": "Neues Projekt", + "NEW_VARIABLE": "Neue Variable", + "NOOP": "NoOp", + "NOTES": "Notizen", + "NO_AVAILABLE_INFO": "Keine verfügbaren Info", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Verbindung", + "OF": "Von", + "OPEN": "Öffnen", + "OPEN_NEW_WINDOW": "In einem neuen Fenster öffnen", + "OPEN_PROJECT": "Projekt öffnen", + "OPERATION": "Operation", + "OPTIONS": "Optionen", + "OPTS": "Optionen", + "OUTPUT": "Output", + "PAGE": "Seite", "PASSWORD": "Passwort", - "USERNAME": "Nutzername", - "NDAGENERATE_AUDIO": "Audiodatei generieren", - "CUSTOM_ACTION": "Benutzerdefinierte Aktion", - "CUSTOM_ACTION_DATA": "Benutzerdefinierte Aktionsdaten", - "NDAACTIVITY_TYPE": "Aktivitätsart", - "APIKEY": "API-Schlüssel", - "AUDIOENCODING": "Audio-Codierung", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Sprachcode", - "SSMLGENDER": "Geschlecht", - "BODY": "Körper", - "COMPUTEDVARIABLES": "Skriptpfad für berechnete Variablen", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Texttyp", - "HEADERS": "Überschriften", - "METHOD": "Methode", + "PAUSE": "Pause", + "PAUSE_ID": "Pause ID", + "PERMISSIONADD_PROJECTS": "Benutzer zu dem Projekt hinzufügen", + "PHONE": "Telefon", + "PLAYBACK": "Wiedergabe", + "POSITION": "Position", + "PRIORITY": "Priorität", + "PROJECT": "Projekt", + "PROJECTS": "Projekte", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Warteschlange", + "QUEUE_ID": "Warteschlange ID", "RAWBODY": "Körper", "RAWHEADERS": "Überschriften", + "RECORD": "Aufnahme", + "RECORDINGFORMAT": "Aufnahme Format", + "RESPONSE": "Antwort Timeout", "RESTAPI": "Rest API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "RETRY": "Retries", + "ROWSPERPAGE": "Zeilen pro Seite", + "SAVE": "Speichern", + "SAYDIGITS": "Say Digits", + "SAYNUMBER": "Say number", + "SAYPHONETIC": "Say Phonetics", + "SEARCH_FOR_ANYONE": "Suche", + "SELECTED": "Ausgewählte", + "SELECTED_USERS": "Ausgewählte Benutzer", + "SELECT_ALL": "Alle auswählen", + "SELECT_NONE": "Keine auswählen", + "SENDFAX": "Fax senden", + "SENDMAIL": "Send Mail", + "SENDSMS": "Send SMS", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Konto", + "SMS_TEXT": "Text", + "SPEED": "Speed", + "SQUARERECORDINGS": "Aufnahmen", + "SSMLGENDER": "Geschlecht", + "START": "Start", + "SUBJECT": "Subject", + "SUBPROJECT": "Sub Project", + "SYSTEM": "System", + "TELEPHONES": "Telefone", + "TEMPLATE_ID": "Vorlage", + "TEST_ODBC": "Test ODBC", + "TEXT": "Text", + "TILDEASR": "Tilde ASR", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Eindeutige ID", + "UNPAUSE": "Ende der Pause", + "UPDATE_DESCRIPTION": "Update Beschreibung", + "UPDATE_INFO": "Info aktualisieren", + "URI": "URI", + "URL": "URL", + "USERNAME": "Benutzername", + "USERS": "Benutzer", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/en.json b/public/app/main/apps/callysquare/i18n/en.json index 68ee777..f3a11e6 100644 --- a/public/app/main/apps/callysquare/i18n/en.json +++ b/public/app/main/apps/callysquare/i18n/en.json @@ -1,238 +1,243 @@ { "CALLYSQUARE": { - "CUSTOM_ACTION": "Custom Action", - "CUSTOM_ACTION_DATA": "Custom Action Data", - "NDAACTIVITY_TYPE": "Activity Type", - "NDAGENERATE_AUDIO": "Generate Audio File", - "SESTEKASR": "Sestek ASR", - "NDAUTH_URL": "NDAUTH Url", - "NDASSISTANT_URL": "NDASSISTANT Url", - "USERNAME": "Username", - "PASSWORD": "Password", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "AWS_LEX_REGION": "Region", - "AWS_BOT_NAME": "Bot name", + "ACCOUNT_ID": "Account", "ADDUSER_PROJECTS": "Add Users to Project", - "PERMISSIONADD_PROJECTS": "Add Users to Project", + "ADD_ODBC": "Add ODBC", + "ADD_PROJECT": "Add Project", + "ADD_VARIABLE": "Add Variable", + "AGENTS": "Agents", + "AGI": "AGI", "ALL_USERS": "All Users", - "SELECTED_USERS": "Selected Users", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Language", + "ANSWER": "Answer", + "APIKEY": "ApiKey", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "App Secret", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Attachment Name", + "ATTACHMENT_PATH": "Attachment Path", + "ATTACHMENT_TYPE": "Attachment Type", + "AUDIO": "Audio", + "AUDIOENCODING": "Audio Encoding", + "AWSLEX": "Amazon Lex", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Access Key ID", + "AWS_BOT_NAME": "Bot name", + "AWS_LEX_REGION": "Region", + "AWS_POLLY_REGION": "Region", + "AWS_POLLY_VOICE": "Voice", + "AWS_SECRET_ACCESS_KEY": "Secret Access Key", "AWS_TEXT_TYPE": "Text type", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Text Type", - "PAUSE_ID": "Pause type", - "FINDBY": "Find By", - "LOGIN": "Login", - "PAUSE": "Pause", - "UNPAUSE": "End Pause", - "LOGOUT": "Logout", - "URI": "URI", - "SMS_ACCOUNT_ID": "Account", - "NAME": "Name", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Search", "BACK": "Back", - "SELECTED": "Selected", - "SELECT_ALL": "Select All", - "SELECT_NONE": "Select None", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Body", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Priority", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Choose Attachment", + "CLIENT_EMAIL": "Client Email", + "CLOSE": "Close", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Computed Variables Script Path", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Copy", + "COPY_PROJECT": "Copy Project", + "CREATED_AT": "Created At", + "CUSTOM_ACTION": "Custom Action", + "CUSTOM_ACTION_DATA": "Custom Action Data", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "delay [min]", + "DELETE": "Delete", + "DELETE_ODBC": "Delete ODBC", + "DELETE_PROJECT": "Delete Project", + "DELETE_SQUARERECORDING": "Delete Square Recording", "DESCRIPTION": "Description", - "ADD_ODBC": "Add ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOWV2": "DialogflowV2", + "DIALOGFLOWV2_LANGUAGE": "Language", + "DIALOGFLOWV2_PROJECT_ID": "Project ID", + "DIALOGFLOW_LANGUAGE": "Language", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Download Square Recording", + "DROP_TO_UPLOAD": "DROP TO UPLOAD", + "DROP_TO_UPLOAD_MESSAGE": "You can also drop files here to upload. Only XML - Max. 5MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Edit ODBC", + "EDIT_PROJECT": "Edit Project", + "EDIT_SQUARERECORDING": "Edit Square Recording", + "EDIT_XML": "Edit XML", + "END": "End", "ERRORS": { - "URL_REQUIRED": "Mandatory field", - "NAME_REQUIRED": "Mandatory field", "DSN_REQUIRED": "Mandatory field", + "FIELD_REQUIRED": "Mandatory field", + "NAME_REQUIRED": "Mandatory field", "PROJECT_REQUIRED": "Mandatory field", - "FIELD_REQUIRED": "Mandatory field" + "URL_REQUIRED": "Mandatory field" }, - "EDIT_ODBC": "Edit ODBC", - "DELETE_ODBC": "Delete ODBC", - "SAVE": "Save", - "PROJECTS": "Projects", - "ADD_PROJECT": "Add Project", - "EDIT_PROJECT": "Edit Project", - "DELETE_PROJECT": "Delete Project", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "New ODBC connection", - "SQUARERECORDINGS": "Recordings", - "PROJECT": "Project", - "UNIQUEID": "Unique ID", - "PHONE": "Phone", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "Audio", - "CREATED_AT": "Created At", - "NOTES": "Notes", - "NEW_PROJECT": "New Project", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Filename", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Find By", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Language", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Text Type", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Go to projects", + "GRAMMAR": "Grammar", + "HANGUP": "Hangup", + "HEADERS": "Headers", + "HELP": { + "BCC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Example: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "mailbox@context", + "MAX_TEXT_TTS": "The maximum number of characters supported is 250", + "TO": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "hidden Digits Position", + "ID": "Id", + "IMPORT": "Import", + "IMPORT_XML": "Import XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "iSpeech ASR", + "ISPEECHTTS": "iSpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Language Code", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Login", + "LOGOUT": "Logout", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Method", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Name", + "NDAACTIVITY_TYPE": "Activity Type", + "NDAGENERATE_AUDIO": "Generate Audio File", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "New", + "NEW_ODBC": "New ODBC connection", + "NEW_PROJECT": "New Project", + "NEW_VARIABLE": "New Variable", + "NOOP": "NoOp", + "NOTES": "Notes", + "NO_AVAILABLE_INFO": "No available info", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "of", + "OPEN": "Open", + "OPEN_NEW_WINDOW": "Open in a new window", + "OPEN_PROJECT": "Open Project", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Page", + "PASSWORD": "Password", + "PAUSE": "Pause", + "PAUSE_ID": "Pause type", + "PERMISSIONADD_PROJECTS": "Add Users to Project", + "PHONE": "Phone", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PRIVATE_KEY": "Private Key", + "PROJECT": "Project", + "PROJECTS": "Projects", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "Body", + "RAWHEADERS": "Headers", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "Rest API", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Rows per page", + "SAVE": "Save", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "iSpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "iSpeech ASR", + "SEARCH_FOR_ANYONE": "Search", + "SELECTED": "Selected", + "SELECTED_USERS": "Selected Users", + "SELECT_ALL": "Select All", + "SELECT_NONE": "Select None", + "SENDFAX": "Send Fax", + "SENDMAIL": "Send Email", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Account", "SMS_TEXT": "Text", - "SENDMAIL": "Send Email", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Recordings", + "SSMLGENDER": "Gender", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "delay [min]", - "OPEN_NEW_WINDOW": "Open in a new window", - "OPEN_PROJECT": "Open Project", - "COPY": "Copy", - "OPEN": "Open", - "NEW": "New", - "COPY_PROJECT": "Copy Project", - "NEW_VARIABLE": "New Variable", - "ADD_VARIABLE": "Add Variable", + "SYSTEM": "System", + "TELEPHONES": "Telephones", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Test ODBC", + "TEXT": "Text", + "TILDEASR": "Tilde ASR", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Unique ID", + "UNPAUSE": "End Pause", "UPDATE_DESCRIPTION": "Update Description", - "EDIT_XML": "Edit XML", - "IMPORT_XML": "Import XML", - "IMPORT": "Import", - "DROP_TO_UPLOAD": "DROP TO UPLOAD", - "DROP_TO_UPLOAD_MESSAGE": "You can also drop files here to upload. Only XML - Max. 5MB", - "CLOSE": "Close", - "NO_AVAILABLE_INFO": "No available info", - "GO_TO_PROJECTS": "Go to projects", "UPDATE_INFO": "Update Info", - "AGENTS": "Agents", - "TELEPHONES": "Telephones", + "URI": "URI", + "URL": "URL", + "USERNAME": "Username", "USERS": "Users", - "HELP": { - "MAILBOX": "mailbox@context", - "DSN": "Example: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", - "MAX_TEXT_TTS": "The maximum number of characters supported is 250" - }, - "CHOOSE_ATTACHMENT": "Choose Attachment", - "ATTACHMENT_NAME": "Attachment Name", - "ATTACHMENT_TYPE": "Attachment Type", - "ATTACHMENT_PATH": "Attachment Path", - "SENDFAX": "Send Fax", - "DELETE_SQUARERECORDING": "Delete Square Recording", - "DOWNLOAD_SQUARERECORDING": "Download Square Recording", - "FILENAME": "Filename", - "EDIT_SQUARERECORDING": "Edit Square Recording", - "DELETE": "Delete", - "PAGE": "Page", - "ROWSPERPAGE": "Rows per page", - "OF": "of", - "CALLBACK_PRIORITY": "Priority", - "GOOGLE_ASR_LANGUAGE": "Language", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Access Key ID", - "AWS_SECRET_ACCESS_KEY": "Secret Access Key", - "AWS_POLLY_REGION": "Region", - "AWS_POLLY_VOICE": "Voice", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammar", - "TILDEASR": "Tilde ASR", - "APPID": "App ID", - "APPSECRET": "App Secret", - "RESTAPI": "Rest API", - "METHOD": "Method", - "HEADERS": "Headers", - "BODY": "Body", - "RAWHEADERS": "Headers", - "RAWBODY": "Body", - "COMPUTEDVARIABLES": "Computed Variables Script Path", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "APIKEY": "ApiKey", - "LANGUAGECODE": "Language Code", - "SSMLGENDER": "Gender", - "AUDIOENCODING": "Audio Encoding", - "MRCPSYNTH": "MRCPSynth", - "MRCPRECOG": "MRCPRecog" + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/es.json b/public/app/main/apps/callysquare/i18n/es.json index 9218d9d..3fd2a29 100644 --- a/public/app/main/apps/callysquare/i18n/es.json +++ b/public/app/main/apps/callysquare/i18n/es.json @@ -1,30 +1,15 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "ERRORS": { - "DSN_REQUIRED": "Campo obligatorio", - "FIELD_REQUIRED": "Campo obligatorio", - "NAME_REQUIRED": "Campo obligatorio", - "PROJECT_REQUIRED": "Campo obligatorio", - "URL_REQUIRED": "Campo obligatorio" - }, - "HELP": { - "BCC": "Puede agregar varias direcciones separadas por comas (por ejemplo, john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Puede agregar varias direcciones separadas por comas (por ejemplo, john.doe@xcally.com, jane.miller@xcally.com)", - "DSN": "Ejemplo: DRIVER = MySQL; SERVER = 127.0.0.1; UID = xcall; PWD = contraseña; DATABASE = Motion", - "MAILBOX": "buzón@contexto", - "TO": "Puede agregar varias direcciones separadas por comas (por ejemplo, john.doe@xcally.com, jane.miller@xcally.com)" - }, "ACCOUNT_ID": "Cuenta", + "ADDUSER_PROJECTS": "Añadir usuarios al proyecto", "ADD_ODBC": "Añadir ODBC", "ADD_PROJECT": "Agregar proyecto", "ADD_VARIABLE": "Agregar variable", "AGENTS": "Agentes", "AGI": "AGI", + "ALL_USERS": "Todos los usuarios", "ANSWER": "Responder", + "APIKEY": "Clave API", "APPID": "ID de aplicación", "APPLICATION": "Solicitud", "APPSECRET": "App secreta", @@ -33,14 +18,20 @@ "ATTACHMENT_PATH": "Ruta de archivo adjunto", "ATTACHMENT_TYPE": "Tipo de Adjunto", "AUDIO": "Audio", + "AUDIOENCODING": "Codificación de audio", + "AWSLEX": "Amazon Lex", "AWSPOLLY": "AWS Polly", "AWS_ACCESS_KEY_ID": "Acceso Key ID", + "AWS_BOT_NAME": "Nombre Bot", + "AWS_LEX_REGION": "Región", "AWS_POLLY_REGION": "Región", "AWS_POLLY_VOICE": "Voz", "AWS_SECRET_ACCESS_KEY": "Clave de acceso secreta", + "AWS_TEXT_TYPE": "Tipo de texto", "BACK": "Atrás", "BCC": "BCC", "BEEP": "Bip", + "BODY": "Cuerpo", "CALLBACK": "Callback", "CALLBACK_PRIORITY": "Prioridad", "CALLYSQUARE": "Cally Square", @@ -48,11 +39,14 @@ "CHOOSE_ATTACHMENT": "Elegir Adjunto", "CLOSE": "Cerrar", "COMMAND": "Comando", + "COMPUTEDVARIABLES": "Ruta de guión de variables calculadas", "CONDITION": "Condición", "CONTEXT": "Contexto", "COPY": "Copiar", "COPY_PROJECT": "Copiar proyecto", "CREATED_AT": "Creado en", + "CUSTOM_ACTION": "Acción personalizada", + "CUSTOM_ACTION_DATA": "Datos Personalizados de Acción", "CUSTOM_APP": "Aplicación personalizada", "DATABASE": "Base de datos", "DELAY": "retraso [min]", @@ -62,6 +56,8 @@ "DELETE_SQUARERECORDING": "Eliminar grabación", "DESCRIPTION": "Descripción", "DIAL": "Marcar", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Idioma", "DIGIT": "Max Dígitos", "DIGITS": "Dígitos", "DOWNLOAD_SQUARERECORDING": "Descargar Grabaciones", @@ -74,6 +70,13 @@ "EDIT_SQUARERECORDING": "Editar grabación", "EDIT_XML": "Editar XML", "END": "Fin", + "ERRORS": { + "DSN_REQUIRED": "Campo obligatorio", + "FIELD_REQUIRED": "Campo obligatorio", + "NAME_REQUIRED": "Campo obligatorio", + "PROJECT_REQUIRED": "Campo obligatorio", + "URL_REQUIRED": "Campo obligatorio" + }, "ESCAPE_DIGITS": "Dígitos de escape", "EXTEN": "Exten", "EXTENSION": "Extensión", @@ -89,6 +92,8 @@ "GOALNAME": "Ir-Al-Nombre", "GOOGLEASR": "GoogleASR", "GOOGLE_ASR_LANGUAGE": "Idioma", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tipo de texto", "GOOGLE_TTS_LANGUAGE": "Idioma", "GOSUB": "GoSub", "GOTOC": "GoTo", @@ -97,6 +102,15 @@ "GO_TO_PROJECTS": "Ir a proyectos", "GRAMMAR": "Gramática", "HANGUP": "Colgar", + "HEADERS": "Encabezados", + "HELP": { + "BCC": "Puede agregar varias direcciones separadas por comas (por ejemplo, john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Puede agregar varias direcciones separadas por comas (por ejemplo, john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Ejemplo: DRIVER = MySQL; SERVER = 127.0.0.1; UID = xcall; PWD = contraseña; DATABASE = Motion", + "MAILBOX": "buzón@contexto", + "MAX_TEXT_TTS": "El número máximo de caracteres admitidos es 250", + "TO": "Puede agregar varias direcciones separadas por comas (por ejemplo, john.doe@xcally.com, jane.miller@xcally.com)" + }, "HIDDENDIGITSNUM": "Número de dígitos escondidos", "HIDDENDIGITSPOS": "posición oculta de los dígitos", "ID": "Id", @@ -110,6 +124,7 @@ "ISPEECH_TTS_LANGUAGE": "Idioma", "KEY": "Llave", "LABEL": "Etiqueta", + "LANGUAGECODE": "Código de lenguaje", "LASTNAME": "Apellido", "LIST_ID": "Lista", "LOGIN": "Iniciar sesión", @@ -121,9 +136,16 @@ "MATH": "Mates", "MAXDIGIT": "Dígitos máximos", "MENU": "Menú", + "METHOD": "Método", "MINDIGIT": "Dígitos mínimos", "MODEL": "Modelo", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", "NAME": "Nombre", + "NDAACTIVITY_TYPE": "Tipo de actividad", + "NDAGENERATE_AUDIO": "Generar archivo de audio", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", "NEW": "Nuevo", "NEW_ODBC": "Nueva conexión ODBC", "NEW_PROJECT": "Nuevo proyecto", @@ -143,8 +165,10 @@ "OPTS": "Opciones", "OUTPUT": "Salida", "PAGE": "Página", + "PASSWORD": "Contraseña", "PAUSE": "Pausa", "PAUSE_ID": "Tipo de pausa", + "PERMISSIONADD_PROJECTS": "Añadir usuarios al proyecto", "PHONE": "Teléfono", "PLAYBACK": "Reproducción", "POSITION": "Posición", @@ -155,9 +179,12 @@ "QUERY": "Consulta", "QUEUE": "Cola", "QUEUE_ID": "Cola", + "RAWBODY": "Cuerpo", + "RAWHEADERS": "Encabezados", "RECORD": "Grabar", "RECORDINGFORMAT": "Formato de grabación", "RESPONSE": "Tiempo de Espera", + "RESTAPI": "API de descanso", "RETRY": "Reintentos", "ROWSPERPAGE": "Filas por página", "SAVE": "Guardar", @@ -166,17 +193,22 @@ "SAYPHONETIC": "Decir Fonética", "SEARCH_FOR_ANYONE": "Buscar", "SELECTED": "Seleccionado", + "SELECTED_USERS": "Usuarios seleccionados", "SELECT_ALL": "Seleccionar todo", "SELECT_NONE": "Seleccionar Ninguno", "SENDFAX": "Enviar fax", "SENDMAIL": "Enviar correo electrónico", "SENDSMS": "Enviar SMS", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", "SET": "Establecer", "SIP_ID": "SIP", "SMS_ACCOUNT_ID": "Cuenta", "SMS_TEXT": "Texto", "SPEED": "Velocidad", "SQUARERECORDINGS": "Grabaciones", + "SSMLGENDER": "Género", "START": "Empezar", "SUBJECT": "Sujeto", "SUBPROJECT": "Sub proyecto", @@ -196,42 +228,11 @@ "UPDATE_INFO": "Actualizar información", "URI": "URI", "URL": "URL", + "USERNAME": "Nombre de usuario", "USERS": "Usuarios", "VARIABLE_ID": "Variable", "VARIABLE_VALUE": "Valor", "VOICEMAIL": "Mensaje de voz", - "VSWITCH": "Interruptor variable", - "AWS_TEXT_TYPE": "Tipo de texto", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Idioma", - "ADDUSER_PROJECTS": "Añadir usuarios al proyecto", - "ALL_USERS": "Todos los usuarios", - "PERMISSIONADD_PROJECTS": "Añadir usuarios al proyecto", - "SELECTED_USERS": "Usuarios seleccionados", - "AWS_BOT_NAME": "Nombre Bot", - "AWS_LEX_REGION": "Región", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "Contraseña", - "USERNAME": "Nombre de usuario", - "NDAGENERATE_AUDIO": "Generar archivo de audio", - "CUSTOM_ACTION": "Acción personalizada", - "CUSTOM_ACTION_DATA": "Datos Personalizados de Acción", - "NDAACTIVITY_TYPE": "Tipo de actividad", - "APIKEY": "Clave API", - "AUDIOENCODING": "Codificación de audio", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Código de lenguaje", - "SSMLGENDER": "Género", - "BODY": "Cuerpo", - "COMPUTEDVARIABLES": "Ruta de guión de variables calculadas", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tipo de texto", - "HEADERS": "Encabezados", - "METHOD": "Método", - "RAWBODY": "Cuerpo", - "RAWHEADERS": "Encabezados", - "RESTAPI": "API de descanso", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "VSWITCH": "Interruptor variable" } } diff --git a/public/app/main/apps/callysquare/i18n/et.json b/public/app/main/apps/callysquare/i18n/et.json index 8ba1a3d..b0877b6 100644 --- a/public/app/main/apps/callysquare/i18n/et.json +++ b/public/app/main/apps/callysquare/i18n/et.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "AWSLEX": "Amazon Lex", - "AWS_LEX_REGION": "Region", - "AWS_BOT_NAME": "Bot name", + "ACCOUNT_ID": "Account", "ADDUSER_PROJECTS": "Add Users to Project", - "PERMISSIONADD_PROJECTS": "Add Users to Project", + "ADD_ODBC": "Add ODBC", + "ADD_PROJECT": "Add Project", + "ADD_VARIABLE": "Add Variable", + "AGENTS": "Agents", + "AGI": "AGI", "ALL_USERS": "All Users", - "SELECTED_USERS": "Selected Users", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Language", + "ANSWER": "Answer", + "APIKEY": "ApiKey", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "App Secret", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Attachment Name", + "ATTACHMENT_PATH": "Attachment Path", + "ATTACHMENT_TYPE": "Attachment Type", + "AUDIO": "Audio", + "AUDIOENCODING": "Heli kodeerimine", + "AWSLEX": "Amazon Lex", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Access Key ID", + "AWS_BOT_NAME": "Bot name", + "AWS_LEX_REGION": "Region", + "AWS_POLLY_REGION": "Region", + "AWS_POLLY_VOICE": "Voice", + "AWS_SECRET_ACCESS_KEY": "Secret Access Key", "AWS_TEXT_TYPE": "Text type", - "PAUSE_ID": "Pause type", - "FINDBY": "Find By", - "LOGIN": "Login", - "PAUSE": "Pause", - "UNPAUSE": "End Pause", - "LOGOUT": "Logout", - "URI": "URI", - "SMS_ACCOUNT_ID": "Account", - "NAME": "Name", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Search", "BACK": "Back", - "SELECTED": "Selected", - "SELECT_ALL": "Select All", - "SELECT_NONE": "Select None", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Keha", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Priority", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Choose Attachment", + "CLOSE": "Close", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Arvutatud muutujate skripti tee", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Copy", + "COPY_PROJECT": "Copy Project", + "CREATED_AT": "Created At", + "CUSTOM_ACTION": "Kohandatud toiming", + "CUSTOM_ACTION_DATA": "Kohandatud toimingu andmed", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "delay [min]", + "DELETE": "Delete", + "DELETE_ODBC": "Delete ODBC", + "DELETE_PROJECT": "Delete Project", + "DELETE_SQUARERECORDING": "Delete Square Recording", "DESCRIPTION": "Description", - "ADD_ODBC": "Add ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Language", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Download Square Recording", + "DROP_TO_UPLOAD": "DROP TO UPLOAD", + "DROP_TO_UPLOAD_MESSAGE": "You can also drop files here to upload. Only XML - Max. 5MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Edit ODBC", + "EDIT_PROJECT": "Edit Project", + "EDIT_SQUARERECORDING": "Edit Square Recording", + "EDIT_XML": "Edit XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Mandatory field", "DSN_REQUIRED": "Mandatory field", - "PROJECT_REQUIRED": "Mandatory field", "FIELD_REQUIRED": "Mandatory field", + "NAME_REQUIRED": "Mandatory field", + "PROJECT_REQUIRED": "Mandatory field", "URL_REQUIRED": "Kohustuslik väli" }, - "EDIT_ODBC": "Edit ODBC", - "DELETE_ODBC": "Delete ODBC", - "SAVE": "Save", - "PROJECTS": "Projects", - "ADD_PROJECT": "Add Project", - "EDIT_PROJECT": "Edit Project", - "DELETE_PROJECT": "Delete Project", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "New ODBC connection", - "SQUARERECORDINGS": "Recordings", - "PROJECT": "Project", - "UNIQUEID": "Unique ID", - "PHONE": "Phone", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "Audio", - "CREATED_AT": "Created At", - "NOTES": "Notes", - "NEW_PROJECT": "New Project", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Filename", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", - "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", - "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", - "MATH": "Math", - "OPERATION": "Operation", - "PLAYBACK": "Playback", - "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", - "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", - "SAYDIGITS": "Say Digits", - "SAYNUMBER": "Say number", - "NUMBER": "Number", - "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "iSpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", + "FINALLY": "Finally", + "FINDBY": "Find By", "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "hidden Digits Position", "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "iSpeech ASR", - "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", - "SMS_TEXT": "Text", - "SENDMAIL": "Send Email", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", - "SUBJECT": "Subject", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Language", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksti tüüp", + "GOOGLE_TTS_LANGUAGE": "Language", + "GOSUB": "GoSub", "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", "GOTOIF": "GoToIf", - "CONDITION": "Condition", "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", - "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "delay [min]", - "OPEN_NEW_WINDOW": "Open in a new window", - "OPEN_PROJECT": "Open Project", - "COPY": "Copy", - "OPEN": "Open", - "NEW": "New", - "COPY_PROJECT": "Copy Project", - "NEW_VARIABLE": "New Variable", - "ADD_VARIABLE": "Add Variable", - "UPDATE_DESCRIPTION": "Update Description", - "EDIT_XML": "Edit XML", - "IMPORT_XML": "Import XML", - "IMPORT": "Import", - "DROP_TO_UPLOAD": "DROP TO UPLOAD", - "DROP_TO_UPLOAD_MESSAGE": "You can also drop files here to upload. Only XML - Max. 5MB", - "CLOSE": "Close", - "NO_AVAILABLE_INFO": "No available info", "GO_TO_PROJECTS": "Go to projects", - "UPDATE_INFO": "Update Info", - "AGENTS": "Agents", - "TELEPHONES": "Telephones", - "USERS": "Users", + "GRAMMAR": "Grammar", + "HANGUP": "Hangup", + "HEADERS": "Päised", "HELP": { - "MAILBOX": "mailbox@context", - "DSN": "Example: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", + "BCC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", "CC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)" + "DSN": "Example: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "mailbox@context", + "MAX_TEXT_TTS": "Toetatavate tähemärkide maksimaalne arv on 250", + "TO": "You can add multiple addresses separated by commas (e.g. john.doe@xcally.com, jane.miller@xcally.com)" }, - "CHOOSE_ATTACHMENT": "Choose Attachment", - "ATTACHMENT_NAME": "Attachment Name", - "ATTACHMENT_TYPE": "Attachment Type", - "ATTACHMENT_PATH": "Attachment Path", - "SENDFAX": "Send Fax", - "DELETE_SQUARERECORDING": "Delete Square Recording", - "DOWNLOAD_SQUARERECORDING": "Download Square Recording", - "FILENAME": "Filename", - "EDIT_SQUARERECORDING": "Edit Square Recording", - "DELETE": "Delete", - "PAGE": "Page", - "ROWSPERPAGE": "Rows per page", - "OF": "of", - "CALLBACK_PRIORITY": "Priority", - "GOOGLE_ASR_LANGUAGE": "Language", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Access Key ID", - "AWS_SECRET_ACCESS_KEY": "Secret Access Key", - "AWS_POLLY_REGION": "Region", - "AWS_POLLY_VOICE": "Voice", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammar", - "TILDEASR": "Tilde ASR", - "APPID": "App ID", - "APPSECRET": "App Secret", - "APIKEY": "ApiKey", - "AUDIOENCODING": "Heli kodeerimine", - "BODY": "Keha", - "COMPUTEDVARIABLES": "Arvutatud muutujate skripti tee", - "CUSTOM_ACTION": "Kohandatud toiming", - "CUSTOM_ACTION_DATA": "Kohandatud toimingu andmed", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksti tüüp", - "HEADERS": "Päised", + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "hidden Digits Position", + "ID": "Id", + "IMPORT": "Import", + "IMPORT_XML": "Import XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "iSpeech ASR", + "ISPEECHTTS": "iSpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", "LANGUAGECODE": "Keelekood", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Login", + "LOGOUT": "Logout", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", + "MAILBOX": "Mailbox", + "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", "METHOD": "Meetod", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSünth", + "NAME": "Name", "NDAACTIVITY_TYPE": "Tegevuse tüüp", "NDAGENERATE_AUDIO": "Loo helifail", "NDASSISTANT_URL": "NDASSISTANT URL", "NDAUTH_URL": "NDAUTHi URL", + "NEW": "New", + "NEW_ODBC": "New ODBC connection", + "NEW_PROJECT": "New Project", + "NEW_VARIABLE": "New Variable", + "NOOP": "NoOp", + "NOTES": "Notes", + "NO_AVAILABLE_INFO": "No available info", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "of", + "OPEN": "Open", + "OPEN_NEW_WINDOW": "Open in a new window", + "OPEN_PROJECT": "Open Project", + "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Page", "PASSWORD": "Parool", + "PAUSE": "Pause", + "PAUSE_ID": "Pause type", + "PERMISSIONADD_PROJECTS": "Add Users to Project", + "PHONE": "Phone", + "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Project", + "PROJECTS": "Projects", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", "RAWBODY": "Keha", "RAWHEADERS": "Päised", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", + "RESPONSE": "Response Timeout", "RESTAPI": "Puhkuse API", + "RETRY": "Retries", + "ROWSPERPAGE": "Rows per page", + "SAVE": "Save", + "SAYDIGITS": "Say Digits", + "SAYNUMBER": "Say number", + "SAYPHONETIC": "Say Phonetics", + "SEARCH_FOR_ANYONE": "Search", + "SELECTED": "Selected", + "SELECTED_USERS": "Selected Users", + "SELECT_ALL": "Select All", + "SELECT_NONE": "Select None", + "SENDFAX": "Send Fax", + "SENDMAIL": "Send Email", + "SENDSMS": "Send SMS", "SESTEKASR": "Sestek ASR", "SESTEKNDA": "Sestek NDA", "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Account", + "SMS_TEXT": "Text", + "SPEED": "Speed", + "SQUARERECORDINGS": "Recordings", "SSMLGENDER": "Sugu", + "START": "Start", + "SUBJECT": "Subject", + "SUBPROJECT": "Sub Project", + "SYSTEM": "System", + "TELEPHONES": "Telephones", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Test ODBC", + "TEXT": "Text", + "TILDEASR": "Tilde ASR", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Unique ID", + "UNPAUSE": "End Pause", + "UPDATE_DESCRIPTION": "Update Description", + "UPDATE_INFO": "Update Info", + "URI": "URI", + "URL": "URL", "USERNAME": "Kasutajanimi", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSünth" + "USERS": "Users", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/fa.json b/public/app/main/apps/callysquare/i18n/fa.json index b5445a7..c783838 100644 --- a/public/app/main/apps/callysquare/i18n/fa.json +++ b/public/app/main/apps/callysquare/i18n/fa.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "افزودن کاربران به پروژه", + "ADD_ODBC": "افزودن ODBC", + "ADD_PROJECT": "پروژه اضافه کنید", + "ADD_VARIABLE": "افزودن متغیر", + "AGENTS": "عوامل", + "AGI": "AGI", + "ALL_USERS": "تمام کاربران", + "ANSWER": "Answer", + "APIKEY": "کلید ای پی ای", + "APPID": "با کاربرد شناسه", + "APPLICATION": "Application", + "APPSECRET": "کاربرد، راز", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "نام ضمیمه", + "ATTACHMENT_PATH": "مسیر ضمیمه", + "ATTACHMENT_TYPE": "نوع ضمیمه", + "AUDIO": "های صوتی", + "AUDIOENCODING": "رمزگذاری صوتی", "AWSLEX": "Amazon Lex", - "NAME": "نام", - "ODBC": "ODBC", - "TEST_ODBC": "تست ODBC", - "SEARCH_FOR_ANYONE": "در جستجوی کسی", + "AWSPOLLY": "AWS پولي", + "AWS_ACCESS_KEY_ID": "کلید دسترسی به شناسه", + "AWS_BOT_NAME": "نام بت", + "AWS_LEX_REGION": "منطقه", + "AWS_POLLY_REGION": "منطقه", + "AWS_POLLY_VOICE": "صدا", + "AWS_SECRET_ACCESS_KEY": "برای دسترسی به کلید رمز", + "AWS_TEXT_TYPE": "نوع متن", "BACK": "پشت", - "SELECTED": "انتخاب می شود", - "SELECT_ALL": "همه را انتخاب کنید", - "SELECT_NONE": "هيچ كدام را انتخاب کنید", - "DSN": "عناوين | پل ارتباطی | پيوندها | محصولات", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "بدن", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "اولويت", + "CALLYSQUARE": "ميدان Cally", + "CC": "CC", + "CHOOSE_ATTACHMENT": "ضمیمه را انتخاب کنید", + "CLOSE": "بستن", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "مسیر اسکریپت متغیرهای محاسباتی", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "کپی", + "COPY_PROJECT": "پروژه کپی", + "CREATED_AT": "ایجاد شده در", + "CUSTOM_ACTION": "اقدام سفارشی", + "CUSTOM_ACTION_DATA": "داده های عملی سفارشی", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "حذف", + "DELETE_ODBC": "حذف درایورهای ODBC", + "DELETE_PROJECT": "پروژه حذف می شود", + "DELETE_SQUARERECORDING": "ثبت ميدان را حذف کنید", "DESCRIPTION": "شرح", - "ADD_ODBC": "افزودن ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "زبان", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "ثبت ميدان را بارگیری کنید", + "DROP_TO_UPLOAD": "قطره را بارگذاری", + "DROP_TO_UPLOAD_MESSAGE": "همچنین می توانید فایل های بارگذاری قطره اینجا. تنها - حداکثر بارگیری فایل XML است. 5مگابایت", + "DSN": "عناوين | پل ارتباطی | پيوندها | محصولات", + "EDIT": "Edit", + "EDIT_ODBC": "ویرایش ODBC", + "EDIT_PROJECT": "ویرایش پروژه", + "EDIT_SQUARERECORDING": "ویرایش ثبت مربع", + "EDIT_XML": "بارگیری فایل XML ویرایش", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "نام لازم است.", "DSN_REQUIRED": "عناوين | پل ارتباطی | پيوندها | محصولات، مورد نیاز است.", - "PROJECT_REQUIRED": "پروژه مورد نیاز است.", "FIELD_REQUIRED": "میدان لازم است.", + "NAME_REQUIRED": "نام لازم است.", + "PROJECT_REQUIRED": "پروژه مورد نیاز است.", "URL_REQUIRED": "زمینه اجباری" }, - "EDIT_ODBC": "ویرایش ODBC", - "DELETE_ODBC": "حذف درایورهای ODBC", - "SAVE": "ذخیره", - "PROJECTS": "پروژه ها", - "ADD_PROJECT": "پروژه اضافه کنید", - "EDIT_PROJECT": "ویرایش پروژه", - "DELETE_PROJECT": "پروژه حذف می شود", - "CALLYSQUARE": "ميدان Cally", - "ID": "شناسه", - "NEW_ODBC": "اتصال ODBC جدید", - "SQUARERECORDINGS": "عنوانی مربع", - "PROJECT": "پروژه", - "UNIQUEID": "شناسه منحصر به فرد", - "PHONE": "تلفن همراه", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "های صوتی", - "CREATED_AT": "ایجاد شده در", - "NOTES": "يادداشت ها", - "NEW_PROJECT": "پروژه جدید", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Filename", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "یافتن توسط", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "زبان", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "نوع متن", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "برو به پروژه ها", + "GRAMMAR": "ابتدایی", + "HANGUP": "Hangup", + "HEADERS": "هدرها", + "HELP": { + "BCC": "شما می توانید با استفاده از آدرس های چندگانه (مثلاً Commas John.doe@xcally.com، Jane.miller@xcally.com)", + "CC": "شما می توانید با استفاده از آدرس های چندگانه (مثلاً Commas John.doe@xcally.com، Jane.miller@xcally.com)", + "DSN": "مثال: 31 دسامبر 2012 راننده=MySQL SERVER=127.0.0.1 31 دسامبر 2012 31 دسامبر 2012 xcall UID=PWD=رمز عبور پایگاه داده، حركت=31 دسامبر 2012", + "MAILBOX": "Mailbox@متن", + "MAX_TEXT_TTS": "حداکثر تعداد نویسه های پشتیبانی شده 250 است", + "TO": "شما می توانید با استفاده از آدرس های چندگانه (مثلاً Commas John.doe@xcally.com، Jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "شناسه", + "IMPORT": "واردات", + "IMPORT_XML": "بارگیری فایل XML واردات", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "کد زبان", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "ورود", + "LOGOUT": "خروج", + "LUMENVOXASR": "قيام Lumenvox", + "LUMENVOXTTS": "Lumenvox Text-To-گفتار", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "روش", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "نام", + "NDAACTIVITY_TYPE": "نوع فعالیت", + "NDAGENERATE_AUDIO": "ایجاد فایل صوتی", + "NDASSISTANT_URL": "آدرس دلخواه", + "NDAUTH_URL": "آدرس غیرمستقیم", + "NEW": "تازه", + "NEW_ODBC": "اتصال ODBC جدید", + "NEW_PROJECT": "پروژه جدید", + "NEW_VARIABLE": "متغیر جدید", + "NOOP": "NoOp", + "NOTES": "يادداشت ها", + "NO_AVAILABLE_INFO": "اطلاعات در دسترس نیست", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "از", + "OPEN": "باز", + "OPEN_NEW_WINDOW": "در پنجره جدید باز کنید", + "OPEN_PROJECT": "پروژه را باز کنید", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "صفحه", + "PASSWORD": "کلمه عبور", + "PAUSE": "مکث", + "PAUSE_ID": "نوع مکث", + "PERMISSIONADD_PROJECTS": "افزودن کاربران به پروژه", + "PHONE": "تلفن همراه", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "پروژه", + "PROJECTS": "پروژه ها", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "بدن", + "RAWHEADERS": "هدرها", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "استراحت API", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "رديف در صفحه", + "SAVE": "ذخیره", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "در جستجوی کسی", + "SELECTED": "انتخاب می شود", + "SELECTED_USERS": "کاربران انتخاب شده", + "SELECT_ALL": "همه را انتخاب کنید", + "SELECT_NONE": "هيچ كدام را انتخاب کنید", + "SENDFAX": "ارسال فكس", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "حساب", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "عنوانی مربع", + "SSMLGENDER": "جنسیت", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "در پنجره جدید باز کنید", - "OPEN_PROJECT": "پروژه را باز کنید", - "COPY": "کپی", - "OPEN": "باز", - "NEW": "تازه", - "COPY_PROJECT": "پروژه کپی", - "NEW_VARIABLE": "متغیر جدید", - "ADD_VARIABLE": "افزودن متغیر", - "UPDATE_DESCRIPTION": "شرح بروزرسانی", - "EDIT_XML": "بارگیری فایل XML ویرایش", - "IMPORT_XML": "بارگیری فایل XML واردات", - "IMPORT": "واردات", - "DROP_TO_UPLOAD": "قطره را بارگذاری", - "DROP_TO_UPLOAD_MESSAGE": "همچنین می توانید فایل های بارگذاری قطره اینجا. تنها - حداکثر بارگیری فایل XML است. 5مگابایت", - "CLOSE": "بستن", - "NO_AVAILABLE_INFO": "اطلاعات در دسترس نیست", - "GO_TO_PROJECTS": "برو به پروژه ها", - "UPDATE_INFO": "به روزآوری اطلاعات توریستی", - "AGENTS": "عوامل", + "SYSTEM": "System", "TELEPHONES": "تلفن ها", - "USERS": "کاربران", - "HELP": { - "MAILBOX": "Mailbox@متن", - "DSN": "مثال: 31 دسامبر 2012 راننده=MySQL SERVER=127.0.0.1 31 دسامبر 2012 31 دسامبر 2012 xcall UID=PWD=رمز عبور پایگاه داده، حركت=31 دسامبر 2012", - "TO": "شما می توانید با استفاده از آدرس های چندگانه (مثلاً Commas John.doe@xcally.com، Jane.miller@xcally.com)", - "CC": "شما می توانید با استفاده از آدرس های چندگانه (مثلاً Commas John.doe@xcally.com، Jane.miller@xcally.com)", - "BCC": "شما می توانید با استفاده از آدرس های چندگانه (مثلاً Commas John.doe@xcally.com، Jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "ضمیمه را انتخاب کنید", - "ATTACHMENT_NAME": "نام ضمیمه", - "ATTACHMENT_TYPE": "نوع ضمیمه", - "ATTACHMENT_PATH": "مسیر ضمیمه", - "SENDFAX": "ارسال فكس", - "DELETE_SQUARERECORDING": "ثبت ميدان را حذف کنید", - "DOWNLOAD_SQUARERECORDING": "ثبت ميدان را بارگیری کنید", - "FILENAME": "Filename", - "EDIT_SQUARERECORDING": "ویرایش ثبت مربع", - "DELETE": "حذف", - "PAGE": "صفحه", - "ROWSPERPAGE": "رديف در صفحه", - "OF": "از", - "CALLBACK_PRIORITY": "اولويت", - "GOOGLE_ASR_LANGUAGE": "زبان", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS پولي", - "AWS_ACCESS_KEY_ID": "کلید دسترسی به شناسه", - "AWS_SECRET_ACCESS_KEY": "برای دسترسی به کلید رمز", - "AWS_POLLY_REGION": "منطقه", - "AWS_POLLY_VOICE": "صدا", - "LUMENVOXTTS": "Lumenvox Text-To-گفتار", - "LUMENVOXASR": "قيام Lumenvox", - "GRAMMAR": "ابتدایی", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "تست ODBC", + "TEXT": "Text", "TILDEASR": "قيام Tilde", - "APPID": "با کاربرد شناسه", - "APPSECRET": "کاربرد، راز", - "SMS_ACCOUNT_ID": "حساب", - "FINDBY": "یافتن توسط", - "LOGIN": "ورود", - "LOGOUT": "خروج", - "PAUSE": "مکث", - "PAUSE_ID": "نوع مکث", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "شناسه منحصر به فرد", "UNPAUSE": "مکث پایان", + "UPDATE_DESCRIPTION": "شرح بروزرسانی", + "UPDATE_INFO": "به روزآوری اطلاعات توریستی", "URI": "URI", - "AWS_TEXT_TYPE": "نوع متن", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "زبان", - "ADDUSER_PROJECTS": "افزودن کاربران به پروژه", - "ALL_USERS": "تمام کاربران", - "PERMISSIONADD_PROJECTS": "افزودن کاربران به پروژه", - "SELECTED_USERS": "کاربران انتخاب شده", - "AWS_BOT_NAME": "نام بت", - "AWS_LEX_REGION": "منطقه", - "NDASSISTANT_URL": "آدرس دلخواه", - "NDAUTH_URL": "آدرس غیرمستقیم", - "PASSWORD": "کلمه عبور", + "URL": "URL", "USERNAME": "نام کاربری", - "NDAGENERATE_AUDIO": "ایجاد فایل صوتی", - "CUSTOM_ACTION": "اقدام سفارشی", - "CUSTOM_ACTION_DATA": "داده های عملی سفارشی", - "NDAACTIVITY_TYPE": "نوع فعالیت", - "APIKEY": "کلید ای پی ای", - "AUDIOENCODING": "رمزگذاری صوتی", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "کد زبان", - "SSMLGENDER": "جنسیت", - "BODY": "بدن", - "COMPUTEDVARIABLES": "مسیر اسکریپت متغیرهای محاسباتی", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "نوع متن", - "HEADERS": "هدرها", - "METHOD": "روش", - "RAWBODY": "بدن", - "RAWHEADERS": "هدرها", - "RESTAPI": "استراحت API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "کاربران", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/fi.json b/public/app/main/apps/callysquare/i18n/fi.json index 4aed94c..4ddea17 100644 --- a/public/app/main/apps/callysquare/i18n/fi.json +++ b/public/app/main/apps/callysquare/i18n/fi.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Lisää käyttäjät projektiin", + "ADD_ODBC": "Lisää ODBC", + "ADD_PROJECT": "Lisää projektin", + "ADD_VARIABLE": "Lisää muuttuja", + "AGENTS": "Aineet", + "AGI": "AGI", + "ALL_USERS": "Kaikki käyttäjät", + "ANSWER": "Answer", + "APIKEY": "apikey", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "App salaisuus", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Lisäosa nimi", + "ATTACHMENT_PATH": "Lisäosa polku", + "ATTACHMENT_TYPE": "Liitäntälajiin", + "AUDIO": "Äänen", + "AUDIOENCODING": "Äänikoodaus", "AWSLEX": "Amazon Lex", - "NAME": "Nimi", - "ODBC": "ODBC", - "TEST_ODBC": "Testaa ODBC", - "SEARCH_FOR_ANYONE": "Etsi joku", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Access Key tunnus", + "AWS_BOT_NAME": "Botin nimi", + "AWS_LEX_REGION": "alue", + "AWS_POLLY_REGION": "Alue", + "AWS_POLLY_VOICE": "Ääni", + "AWS_SECRET_ACCESS_KEY": "Salainen access key", + "AWS_TEXT_TYPE": "Tekstityyppi", "BACK": "Takaisin", - "SELECTED": "Valittu", - "SELECT_ALL": "Valitse kaikki", - "SELECT_NONE": "Valitse None (Ei mitään)", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "ruumis", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Prioriteetti", + "CALLYSQUARE": "Hyödynnetä tarpeeksi yrittäjyyskasvatuksen omaisia työtapoja Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Valitse kiinnitys", + "CLOSE": "Sulje", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Laskettujen muuttujien komentosarjan polku", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Kopiointi", + "COPY_PROJECT": "Kopioi projekti", + "CREATED_AT": "Luodaan", + "CUSTOM_ACTION": "Mukautettu toiminto", + "CUSTOM_ACTION_DATA": "Mukautetut toimintatiedot", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "Poista", + "DELETE_ODBC": "Poistaa ODBC-", + "DELETE_PROJECT": "Poista projektin", + "DELETE_SQUARERECORDING": "Poista Square tallennus", "DESCRIPTION": "Kuvaus", - "ADD_ODBC": "Lisää ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Kieli", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Lataa Square tallennus", + "DROP_TO_UPLOAD": "Pudota lataa", + "DROP_TO_UPLOAD_MESSAGE": "Voit pudottaa tiedostoja Tääll㤠voit ladata. Vain XML - Max. 5 Mt", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Muokkaa ODBC", + "EDIT_PROJECT": "Muokkaa projektin", + "EDIT_SQUARERECORDING": "Muokkaa Square tallennus", + "EDIT_XML": "Muokkaa XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Nimi on pakollinen", "DSN_REQUIRED": "DSN ei tarvita", - "PROJECT_REQUIRED": "Projekti on pakollinen", "FIELD_REQUIRED": "Tämä kenttä on pakollinen", + "NAME_REQUIRED": "Nimi on pakollinen", + "PROJECT_REQUIRED": "Projekti on pakollinen", "URL_REQUIRED": "Pakollinen kenttä" }, - "EDIT_ODBC": "Muokkaa ODBC", - "DELETE_ODBC": "Poistaa ODBC-", - "SAVE": "Tallenna", - "PROJECTS": "Projektit", - "ADD_PROJECT": "Lisää projektin", - "EDIT_PROJECT": "Muokkaa projektin", - "DELETE_PROJECT": "Poista projektin", - "CALLYSQUARE": "Hyödynnetä tarpeeksi yrittäjyyskasvatuksen omaisia työtapoja Square", - "ID": "Tunnus", - "NEW_ODBC": "Uusi ODBC-yhteys", - "SQUARERECORDINGS": "Square tallenteet", - "PROJECT": "Projektin", - "UNIQUEID": "Yksilöivä tunnus", - "PHONE": "Puhelin", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Jennus", - "AUDIO": "Äänen", - "CREATED_AT": "Luodaan", - "NOTES": "Huomautukset", - "NEW_PROJECT": "Uusi projekti.", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Tiedostonimi", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Etsi", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Kieli", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tekstin tyyppi", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Siirry rahoittamiseen", + "GRAMMAR": "Kielioppia", + "HANGUP": "Hangup", + "HEADERS": "otsikot", + "HELP": { + "BCC": "Voit lisätä useita osoitteisiin pilkkuja (esim. john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Voit lisätä useita osoitteisiin pilkkuja (esim. john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Esimerkki: kuljettajan=MySQL;SERVER=127,0.0.1;UID=xcall;PWD=salasana;DATABASE=liike", + "MAILBOX": "Postilaatikko@yhteydessä", + "MAX_TEXT_TTS": "Tuettujen merkkien enimmäismäärä on 250", + "TO": "Voit lisätä useita osoitteisiin pilkkuja (esim. john.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Tunnus", + "IMPORT": "Tuonti", + "IMPORT_XML": "Tuo XML-", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Kielikoodi", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Kirjaudu sisään", + "LOGOUT": "Kirjautua ulos", + "LUMENVOXASR": "ASR Lumenvox", + "LUMENVOXTTS": "Lumenvox Text-To puheeksi", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Menetelmä", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Nimi", + "NDAACTIVITY_TYPE": "Toimintotyyppi", + "NDAGENERATE_AUDIO": "Luo äänitiedosto", + "NDASSISTANT_URL": "NDASSISTANT-URL-osoite", + "NDAUTH_URL": "NDAUTH-URL-osoite", + "NEW": "Uusi", + "NEW_ODBC": "Uusi ODBC-yhteys", + "NEW_PROJECT": "Uusi projekti.", + "NEW_VARIABLE": "Uuden muuttujan", + "NOOP": "NoOp", + "NOTES": "Huomautukset", + "NO_AVAILABLE_INFO": "Ei saatavana olevasta lataustehosta", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": ",", + "OPEN": "Avaa", + "OPEN_NEW_WINDOW": "Avaa uuden ikkunan", + "OPEN_PROJECT": "Avaa projekti", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Sivu", + "PASSWORD": "Salasana", + "PAUSE": "Tauko", + "PAUSE_ID": "Pysäytä tyyppi", + "PERMISSIONADD_PROJECTS": "Lisää käyttäjät projektiin", + "PHONE": "Puhelin", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Projektin", + "PROJECTS": "Projektit", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "ruumis", + "RAWHEADERS": "otsikot", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "Rest API", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Riviä sivulle", + "SAVE": "Tallenna", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Etsi joku", + "SELECTED": "Valittu", + "SELECTED_USERS": "Valitut käyttäjät", + "SELECT_ALL": "Valitse kaikki", + "SELECT_NONE": "Valitse None (Ei mitään)", + "SENDFAX": "Faksin lähettäminen", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Tili", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Square tallenteet", + "SSMLGENDER": "sukupuoli", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "Avaa uuden ikkunan", - "OPEN_PROJECT": "Avaa projekti", - "COPY": "Kopiointi", - "OPEN": "Avaa", - "NEW": "Uusi", - "COPY_PROJECT": "Kopioi projekti", - "NEW_VARIABLE": "Uuden muuttujan", - "ADD_VARIABLE": "Lisää muuttuja", - "UPDATE_DESCRIPTION": "Päivitä kuvaus", - "EDIT_XML": "Muokkaa XML", - "IMPORT_XML": "Tuo XML-", - "IMPORT": "Tuonti", - "DROP_TO_UPLOAD": "Pudota lataa", - "DROP_TO_UPLOAD_MESSAGE": "Voit pudottaa tiedostoja Tääll㤠voit ladata. Vain XML - Max. 5 Mt", - "CLOSE": "Sulje", - "NO_AVAILABLE_INFO": "Ei saatavana olevasta lataustehosta", - "GO_TO_PROJECTS": "Siirry rahoittamiseen", - "UPDATE_INFO": "Päivitä tiedot", - "AGENTS": "Aineet", + "SYSTEM": "System", "TELEPHONES": "Puhelimet", - "USERS": "Käyttäjät", - "HELP": { - "MAILBOX": "Postilaatikko@yhteydessä", - "DSN": "Esimerkki: kuljettajan=MySQL;SERVER=127,0.0.1;UID=xcall;PWD=salasana;DATABASE=liike", - "TO": "Voit lisätä useita osoitteisiin pilkkuja (esim. john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Voit lisätä useita osoitteisiin pilkkuja (esim. john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "Voit lisätä useita osoitteisiin pilkkuja (esim. john.doe@xcally.com, jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Valitse kiinnitys", - "ATTACHMENT_NAME": "Lisäosa nimi", - "ATTACHMENT_TYPE": "Liitäntälajiin", - "ATTACHMENT_PATH": "Lisäosa polku", - "SENDFAX": "Faksin lähettäminen", - "DELETE_SQUARERECORDING": "Poista Square tallennus", - "DOWNLOAD_SQUARERECORDING": "Lataa Square tallennus", - "FILENAME": "Tiedostonimi", - "EDIT_SQUARERECORDING": "Muokkaa Square tallennus", - "DELETE": "Poista", - "PAGE": "Sivu", - "ROWSPERPAGE": "Riviä sivulle", - "OF": ",", - "CALLBACK_PRIORITY": "Prioriteetti", - "GOOGLE_ASR_LANGUAGE": "Kieli", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Access Key tunnus", - "AWS_SECRET_ACCESS_KEY": "Salainen access key", - "AWS_POLLY_REGION": "Alue", - "AWS_POLLY_VOICE": "Ääni", - "LUMENVOXTTS": "Lumenvox Text-To puheeksi", - "LUMENVOXASR": "ASR Lumenvox", - "GRAMMAR": "Kielioppia", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Testaa ODBC", + "TEXT": "Text", "TILDEASR": "Aaltoviiva ASR", - "APPID": "App ID", - "APPSECRET": "App salaisuus", - "SMS_ACCOUNT_ID": "Tili", - "FINDBY": "Etsi", - "LOGIN": "Kirjaudu sisään", - "LOGOUT": "Kirjautua ulos", - "PAUSE": "Tauko", - "PAUSE_ID": "Pysäytä tyyppi", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Yksilöivä tunnus", "UNPAUSE": "Lopeta tauko", + "UPDATE_DESCRIPTION": "Päivitä kuvaus", + "UPDATE_INFO": "Päivitä tiedot", "URI": "URI", - "AWS_TEXT_TYPE": "Tekstityyppi", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Kieli", - "ADDUSER_PROJECTS": "Lisää käyttäjät projektiin", - "ALL_USERS": "Kaikki käyttäjät", - "PERMISSIONADD_PROJECTS": "Lisää käyttäjät projektiin", - "SELECTED_USERS": "Valitut käyttäjät", - "AWS_BOT_NAME": "Botin nimi", - "AWS_LEX_REGION": "alue", - "NDASSISTANT_URL": "NDASSISTANT-URL-osoite", - "NDAUTH_URL": "NDAUTH-URL-osoite", - "PASSWORD": "Salasana", + "URL": "URL", "USERNAME": "Käyttäjätunnus", - "NDAGENERATE_AUDIO": "Luo äänitiedosto", - "CUSTOM_ACTION": "Mukautettu toiminto", - "CUSTOM_ACTION_DATA": "Mukautetut toimintatiedot", - "NDAACTIVITY_TYPE": "Toimintotyyppi", - "APIKEY": "apikey", - "AUDIOENCODING": "Äänikoodaus", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Kielikoodi", - "SSMLGENDER": "sukupuoli", - "BODY": "ruumis", - "COMPUTEDVARIABLES": "Laskettujen muuttujien komentosarjan polku", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tekstin tyyppi", - "HEADERS": "otsikot", - "METHOD": "Menetelmä", - "RAWBODY": "ruumis", - "RAWHEADERS": "otsikot", - "RESTAPI": "Rest API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Käyttäjät", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/fr.json b/public/app/main/apps/callysquare/i18n/fr.json index 096ab01..4d87966 100644 --- a/public/app/main/apps/callysquare/i18n/fr.json +++ b/public/app/main/apps/callysquare/i18n/fr.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Ajouter des utilisateurs au projet", + "ADD_ODBC": "ODBC Ajouter", + "ADD_PROJECT": "Ajouter projet", + "ADD_VARIABLE": "Ajouter Variable", + "AGENTS": "Mandataires", + "AGI": "AGI", + "ALL_USERS": "Tous les utilisateurs", + "ANSWER": "Answer", + "APIKEY": "Clé API", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "clé secrète de l'app", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Nom pièce jointe", + "ATTACHMENT_PATH": "Chemin d'accès", + "ATTACHMENT_TYPE": "Type ièce jointe", + "AUDIO": "Audio", + "AUDIOENCODING": "Encodage audio", "AWSLEX": "Amazon Lex", - "NAME": "Nom", - "ODBC": "Etat ODBC", - "TEST_ODBC": "ODBC Test", - "SEARCH_FOR_ANYONE": "Rechercher", + "AWSPOLLY": "Polly AWS", + "AWS_ACCESS_KEY_ID": "ID de clé d'accès", + "AWS_BOT_NAME": "Nom de bot", + "AWS_LEX_REGION": "Région", + "AWS_POLLY_REGION": "Région", + "AWS_POLLY_VOICE": "Voix", + "AWS_SECRET_ACCESS_KEY": "Clé d'accès secrète", + "AWS_TEXT_TYPE": "Type de texte", "BACK": "Retour", - "SELECTED": "Sélectionné", - "SELECT_ALL": "Sélectionnez tout", - "SELECT_NONE": "Déselectionnez tout", - "DSN": "Le DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Corps", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Priorité", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Choisissez la pièce jointe", + "CLOSE": "Fermer", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Chemin de script des variables calculées", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Copier", + "COPY_PROJECT": "Copier le projet", + "CREATED_AT": "Créé le", + "CUSTOM_ACTION": "Action personnalisée", + "CUSTOM_ACTION_DATA": "Données d'action personnalisées", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "Supprimer", + "DELETE_ODBC": "ODBC Supprimer", + "DELETE_PROJECT": "Supprimer projet", + "DELETE_SQUARERECORDING": "Supprimer l'enregistrement", "DESCRIPTION": "Description", - "ADD_ODBC": "ODBC Ajouter", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Dialogflow language", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Télécharger l'enregistrement", + "DROP_TO_UPLOAD": "Déposer pour télécharger", + "DROP_TO_UPLOAD_MESSAGE": "Vous pouvez également déposer des fichiers ici pour les télécharger. Seulement des fichiers XML - Max. 5MB", + "DSN": "Le DSN", + "EDIT": "Editer", + "EDIT_ODBC": "ODBC Modifier", + "EDIT_PROJECT": "Editer projet", + "EDIT_SQUARERECORDING": "Modifier enregistrement", + "EDIT_XML": "Modifier le XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Nom obligatoire", "DSN_REQUIRED": "DSN requis", - "PROJECT_REQUIRED": "Nom du projet requis", "FIELD_REQUIRED": "Champ obligatoire", + "NAME_REQUIRED": "Nom obligatoire", + "PROJECT_REQUIRED": "Nom du projet requis", "URL_REQUIRED": "Champ obligatoire" }, - "EDIT_ODBC": "ODBC Modifier", - "DELETE_ODBC": "ODBC Supprimer", - "SAVE": "Sauvegarder", - "PROJECTS": "Projets", - "ADD_PROJECT": "Ajouter projet", - "EDIT_PROJECT": "Editer projet", - "DELETE_PROJECT": "Supprimer projet", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "Nouvelle connexion ODBC", - "SQUARERECORDINGS": "Enregistrements Cally square", - "PROJECT": "Projet", - "UNIQUEID": "ID unique", - "PHONE": "Téléphone", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Extension", - "AUDIO": "Audio", - "CREATED_AT": "Créé le", - "NOTES": "Note", - "NEW_PROJECT": "Nouveau projet", - "EDIT": "Editer", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue ID", + "FILE": "fichier", + "FILENAME": "Nom du fichier", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Trouver par", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Language", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Type de texte", + "GOOGLE_TTS_LANGUAGE": "Langue", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Rendez-vous à des projets", + "GRAMMAR": "Grammaire", + "HANGUP": "Hangup", + "HEADERS": "En-têtes", + "HELP": { + "BCC": "Vous pouvez ajouter plusieurs adresses par des virgules (p. ex., jane.miller@xcally.com) john.doe@xcally.com", + "CC": "Vous pouvez ajouter plusieurs adresses par des virgules (p. ex., jane.miller@xcally.com) john.doe@xcally.com", + "DSN": "Exemple : DRIVER =MySQL;Server =127.0.0.1;UID =xcall;pwd =mot de passe;Database =motion", + "MAILBOX": "Contexte@boîte aux lettres", + "MAX_TEXT_TTS": "Le nombre maximum de caractères pris en charge est de 250", + "TO": "Vous pouvez ajouter plusieurs adresses par des virgules (p. ex., jane.miller@xcally.com) john.doe@xcally.com" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "Importer", + "IMPORT_XML": "Importer XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "ISPEECH ASR", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Code de langue", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Connexion", + "LOGOUT": "Deconnexion", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox,", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Méthode", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Nom", + "NDAACTIVITY_TYPE": "Type d'activité", + "NDAGENERATE_AUDIO": "Générer un fichier audio", + "NDASSISTANT_URL": "URL NDASSISTANT", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "Nouveau", + "NEW_ODBC": "Nouvelle connexion ODBC", + "NEW_PROJECT": "Nouveau projet", + "NEW_VARIABLE": "Nouvelle variable", + "NOOP": "NoOp", + "NOTES": "Note", + "NO_AVAILABLE_INFO": "Aucune information disponible", + "NUMBER": "Number", + "ODBC": "Etat ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "De", + "OPEN": "Ouvrir", + "OPEN_NEW_WINDOW": "Ouvrir dans une nouvelle fenêtre", + "OPEN_PROJECT": "Projet ouvert", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Page", + "PASSWORD": "Mot de passe", + "PAUSE": "Pause", + "PAUSE_ID": "Type de pause", + "PERMISSIONADD_PROJECTS": "Ajouter des utilisateurs au projet", + "PHONE": "Téléphone", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priorité", + "PROJECT": "Projet", + "PROJECTS": "Projets", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue ID", + "RAWBODY": "Corps", + "RAWHEADERS": "En-têtes", + "RECORD": "Enregistrement", + "RECORDINGFORMAT": "Format d'enregistrement", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "API Rest", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "lignes par page", + "SAVE": "Sauvegarder", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Langue", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Enregistrement", - "FILE": "fichier", - "RECORDINGFORMAT": "Format d'enregistrement", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "ISPEECH ASR", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Rechercher", + "SELECTED": "Sélectionné", + "SELECTED_USERS": "Utilisateurs sélectionnés", + "SELECT_ALL": "Sélectionnez tout", + "SELECT_NONE": "Déselectionnez tout", + "SENDFAX": "Envoyer Fax", + "SENDMAIL": "Send Mail", "SENDSMS": "envoyer SMS", - "ACCOUNT_ID": "Account", - "TO": "À", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Compte", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Enregistrements Cally square", + "SSMLGENDER": "Le sexe", + "START": "Start", "SUBJECT": "Sujet", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priorité", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "Ouvrir dans une nouvelle fenêtre", - "OPEN_PROJECT": "Projet ouvert", - "COPY": "Copier", - "OPEN": "Ouvrir", - "NEW": "Nouveau", - "COPY_PROJECT": "Copier le projet", - "NEW_VARIABLE": "Nouvelle variable", - "ADD_VARIABLE": "Ajouter Variable", - "UPDATE_DESCRIPTION": "Description mise à jour", - "EDIT_XML": "Modifier le XML", - "IMPORT_XML": "Importer XML", - "IMPORT": "Importer", - "DROP_TO_UPLOAD": "Déposer pour télécharger", - "DROP_TO_UPLOAD_MESSAGE": "Vous pouvez également déposer des fichiers ici pour les télécharger. Seulement des fichiers XML - Max. 5MB", - "CLOSE": "Fermer", - "NO_AVAILABLE_INFO": "Aucune information disponible", - "GO_TO_PROJECTS": "Rendez-vous à des projets", - "UPDATE_INFO": "Mise à jour des infos", - "AGENTS": "Mandataires", + "SYSTEM": "System", "TELEPHONES": "Telephones", - "USERS": "Les utilisateurs", - "HELP": { - "MAILBOX": "Contexte@boîte aux lettres", - "DSN": "Exemple : DRIVER =MySQL;Server =127.0.0.1;UID =xcall;pwd =mot de passe;Database =motion", - "TO": "Vous pouvez ajouter plusieurs adresses par des virgules (p. ex., jane.miller@xcally.com) john.doe@xcally.com", - "CC": "Vous pouvez ajouter plusieurs adresses par des virgules (p. ex., jane.miller@xcally.com) john.doe@xcally.com", - "BCC": "Vous pouvez ajouter plusieurs adresses par des virgules (p. ex., jane.miller@xcally.com) john.doe@xcally.com" - }, - "CHOOSE_ATTACHMENT": "Choisissez la pièce jointe", - "ATTACHMENT_NAME": "Nom pièce jointe", - "ATTACHMENT_TYPE": "Type ièce jointe", - "ATTACHMENT_PATH": "Chemin d'accès", - "SENDFAX": "Envoyer Fax", - "DELETE_SQUARERECORDING": "Supprimer l'enregistrement", - "DOWNLOAD_SQUARERECORDING": "Télécharger l'enregistrement", - "FILENAME": "Nom du fichier", - "EDIT_SQUARERECORDING": "Modifier enregistrement", - "DELETE": "Supprimer", - "PAGE": "Page", - "ROWSPERPAGE": "lignes par page", - "OF": "De", - "CALLBACK_PRIORITY": "Priorité", - "GOOGLE_ASR_LANGUAGE": "Language", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "Polly AWS", - "AWS_ACCESS_KEY_ID": "ID de clé d'accès", - "AWS_SECRET_ACCESS_KEY": "Clé d'accès secrète", - "AWS_POLLY_REGION": "Région", - "AWS_POLLY_VOICE": "Voix", - "LUMENVOXTTS": "Lumenvox,", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammaire", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "ODBC Test", + "TEXT": "Text", "TILDEASR": "ASR Tilde", - "APPID": "App ID", - "APPSECRET": "clé secrète de l'app", - "SMS_ACCOUNT_ID": "Compte", - "FINDBY": "Trouver par", - "LOGIN": "Connexion", - "LOGOUT": "Deconnexion", - "PAUSE": "Pause", - "PAUSE_ID": "Type de pause", + "TIMEOUT": "Timeout", + "TO": "À", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "ID unique", "UNPAUSE": "Fin de la Pause", + "UPDATE_DESCRIPTION": "Description mise à jour", + "UPDATE_INFO": "Mise à jour des infos", "URI": "URL", - "AWS_TEXT_TYPE": "Type de texte", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Dialogflow language", - "ADDUSER_PROJECTS": "Ajouter des utilisateurs au projet", - "ALL_USERS": "Tous les utilisateurs", - "PERMISSIONADD_PROJECTS": "Ajouter des utilisateurs au projet", - "SELECTED_USERS": "Utilisateurs sélectionnés", - "AWS_BOT_NAME": "Nom de bot", - "AWS_LEX_REGION": "Région", - "NDASSISTANT_URL": "URL NDASSISTANT", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "Mot de passe", + "URL": "URL", "USERNAME": "Nom d'utilisateur", - "NDAGENERATE_AUDIO": "Générer un fichier audio", - "CUSTOM_ACTION": "Action personnalisée", - "CUSTOM_ACTION_DATA": "Données d'action personnalisées", - "NDAACTIVITY_TYPE": "Type d'activité", - "APIKEY": "Clé API", - "AUDIOENCODING": "Encodage audio", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Code de langue", - "SSMLGENDER": "Le sexe", - "BODY": "Corps", - "COMPUTEDVARIABLES": "Chemin de script des variables calculées", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Type de texte", - "HEADERS": "En-têtes", - "METHOD": "Méthode", - "RAWBODY": "Corps", - "RAWHEADERS": "En-têtes", - "RESTAPI": "API Rest", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Les utilisateurs", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/he.json b/public/app/main/apps/callysquare/i18n/he.json index 62d3504..af1a05f 100644 --- a/public/app/main/apps/callysquare/i18n/he.json +++ b/public/app/main/apps/callysquare/i18n/he.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "AWS_LEX_REGION": "אזור", - "AWS_BOT_NAME": "שם הבוט", + "ACCOUNT_ID": "מזהה חשבון", "ADDUSER_PROJECTS": "הוסף משתמשים לפרויקט", - "PERMISSIONADD_PROJECTS": "הוסף משתמשים לפרויקט", + "ADD_ODBC": "הוסף ODBC", + "ADD_PROJECT": "הוסף פרויקט", + "ADD_VARIABLE": "הוסף משתנה", + "AGENTS": "נציגים", + "AGI": "AGI", "ALL_USERS": "כל המשתמשים", - "SELECTED_USERS": "משתמשים נבחרים", - "DIALOGFLOW": "ערוך פריט Dialogflow", - "DIALOGFLOW_LANGUAGE": "שפה", + "ANSWER": "תשובה", + "APIKEY": "ApiKey", + "APPID": "מזהה יישום", + "APPLICATION": "יישום", + "APPSECRET": "צופן היישום", + "ARGS": "ארגומנטים", + "ATTACHMENT_NAME": "שם הקובץ המצורף", + "ATTACHMENT_PATH": "נתיב הקובץ המצורף", + "ATTACHMENT_TYPE": "סוג הקובץ המצורף", + "AUDIO": "שמע", + "AUDIOENCODING": "קידוד שמע", + "AWSLEX": "Amazon Lex", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "מזהה מפתח גישה", + "AWS_BOT_NAME": "שם הבוט", + "AWS_LEX_REGION": "אזור", + "AWS_POLLY_REGION": "אזור", + "AWS_POLLY_VOICE": "קול", + "AWS_SECRET_ACCESS_KEY": "צופן מפתח הגישה", "AWS_TEXT_TYPE": "סוג טקסט", - "PAUSE_ID": "סוג השהיה", - "FINDBY": "חפש לפי", - "LOGIN": "כניסה", - "PAUSE": "השהה", - "UNPAUSE": "סיים השהיה", - "LOGOUT": "יציאה", - "URI": "URI", - "SMS_ACCOUNT_ID": "חשבון", - "NAME": "שם", - "ODBC": "ODBC", - "TEST_ODBC": "בדוק ODBC", - "SEARCH_FOR_ANYONE": "חיפוש", "BACK": "חזרה", - "SELECTED": "נבחר/ו", - "SELECT_ALL": "בחר הכול", - "SELECT_NONE": "אל תבחר אף פריט", - "DSN": "DSN", + "BCC": "עותק עיוור", + "BEEP": "צפצוף", + "BODY": "גוף", + "CALLBACK": "החזרת שיחה", + "CALLBACK_PRIORITY": "עדיפות", + "CALLYSQUARE": "Cally Square", + "CC": "עותק", + "CHOOSE_ATTACHMENT": "בחר קובץ מצורף", + "CLOSE": "סגור", + "COMMAND": "פקודה", + "COMPUTEDVARIABLES": "נתיבי סקריפט משתנים מחושבים", + "CONDITION": "תנאי", + "CONTEXT": "הקשר", + "COPY": "העתק", + "COPY_PROJECT": "העתק פרויקט", + "CREATED_AT": "נוצר ב-", + "CUSTOM_ACTION": "פעולה מותאמת אישית", + "CUSTOM_ACTION_DATA": "נתוני פעולה מותאמים אישית", + "CUSTOM_APP": "יישום מותאם אישית", + "DATABASE": "מסד נתונים", + "DELAY": "השהיה [דק']", + "DELETE": "מחק", + "DELETE_ODBC": "מחק ODBC", + "DELETE_PROJECT": "מחק פרויקט", + "DELETE_SQUARERECORDING": "מחק הקלטת Square", "DESCRIPTION": "תיאור", - "ADD_ODBC": "הוסף ODBC", + "DIAL": "חייג", + "DIALOGFLOW": "ערוך פריט Dialogflow", + "DIALOGFLOW_LANGUAGE": "שפה", + "DIGIT": "מקסימום ספרות", + "DIGITS": "ספרות", + "DOWNLOAD_SQUARERECORDING": "הורד הקלטת Square", + "DROP_TO_UPLOAD": "גרור כדי להעלות", + "DROP_TO_UPLOAD_MESSAGE": "אפשר גם לגרור קבצים לכאן כדי להעלות אותם. XML בלבד – מקס' 5MB", + "DSN": "DSN", + "EDIT": "ערוך", + "EDIT_ODBC": "ערוך ODBC", + "EDIT_PROJECT": "ערוך פרויקט", + "EDIT_SQUARERECORDING": "ערוך הקלטת Square", + "EDIT_XML": "ערוך XML", + "END": "סיום", "ERRORS": { - "NAME_REQUIRED": " שדה חובה", "DSN_REQUIRED": "שדה חובה", - "PROJECT_REQUIRED": "שדה חובה", "FIELD_REQUIRED": "שדה חובה", + "NAME_REQUIRED": " שדה חובה", + "PROJECT_REQUIRED": "שדה חובה", "URL_REQUIRED": "שדה חובה" }, - "EDIT_ODBC": "ערוך ODBC", - "DELETE_ODBC": "מחק ODBC", - "SAVE": "שמור", - "PROJECTS": "פרויקטים", - "ADD_PROJECT": "הוסף פרויקט", - "EDIT_PROJECT": "ערוך פרויקט", - "DELETE_PROJECT": "מחק פרויקט", - "CALLYSQUARE": "Cally Square", - "ID": "מזהה", - "NEW_ODBC": "חיבור ODBC חדש", - "SQUARERECORDINGS": "הקלטות", - "PROJECT": "פרויקט", - "UNIQUEID": "מזהה ייחודי", - "PHONE": "טלפון", + "ESCAPE_DIGITS": "ספרות ביטול", "EXTEN": "שלוחה", - "AUDIO": "שמע", - "CREATED_AT": "נוצר ב-", - "NOTES": "רשימות", - "NEW_PROJECT": "פרויקט חדש", - "EDIT": "ערוך", - "LABEL": "תווית", - "ANSWER": "תשובה", - "TIMEOUT": "סוף זמן קצוב", - "SIP_ID": "SIP", - "OPTS": "אפשרויות", - "URL": "כתובת URL", - "TRUNK_NAME": "קו ראשי", - "START": "התחלה", - "FINALLY": "סופי", - "END": "סיום", - "HANGUP": "נתק", - "DIAL": "חייג", + "EXTENSION": "שלוחה", "EXT_DIAL": "חיוג חיצוני", - "QUEUE": "תור", - "QUEUE_ID": "תור", + "FILE": "שם קובץ", + "FILENAME": "שם קובץ", "FILE_ID": "שמע", - "AGI": "AGI", - "MACRO": "מאקרו", + "FINALLY": "סופי", + "FINDBY": "חפש לפי", + "GETDIGITS": "קבל ספרות", + "GETSECRETDIGITS": "קבל קוד סודי", + "GOAL": "יעד", + "GOALNAME": "שם יעד", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "שפה", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "סוג טקסט", + "GOOGLE_TTS_LANGUAGE": "שפה", "GOSUB": "GoSub", - "POSITION": "מיקום", - "VOICEMAIL": "הודעה קולית", + "GOTOC": "Goto", + "GOTOIF": "GotoIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "עבור לפרויקטים", + "GRAMMAR": "דקדוק", + "HANGUP": "נתק", + "HEADERS": "כותרות", + "HELP": { + "BCC": "ניתן להוסיף מספר כתובות ולהפריד ביניהן בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "ניתן להוסיף מספר כתובות ולהפריד ביניהן בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "דוגמה: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "mailbox@context", + "MAX_TEXT_TTS": "המספר המרבי של תווים הנתמכים הוא 250", + "TO": "ניתן להוסיף מספר כתובות ולהפריד ביניהן בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "מספר ספרות מוסתרות", + "HIDDENDIGITSPOS": "מיקום ספרות מוסתרות", + "ID": "מזהה", + "IMPORT": "יבא", + "IMPORT_XML": "יבא XML", + "INTERVAL_ID": "מרווח זמן", + "INTKEY": "מפתח עצירה", + "ISPEECHASR": "iSpeech ASR", + "ISPEECHTTS": "טקסט-לדיבור של iSpeech", + "ISPEECH_ASR_LANGUAGE": "שפה", + "ISPEECH_TTS_LANGUAGE": "שפה", + "KEY": "מפתח", + "LABEL": "תווית", + "LANGUAGECODE": "קוד שפה", + "LASTNAME": "שם משפחה", + "LIST_ID": "רשימה", + "LOGIN": "כניסה", + "LOGOUT": "יציאה", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "טקסט-לדיבור של Lumenvox", + "MACRO": "מאקרו", "MAILBOX": "תיבת דואר", - "OPTIONS": "אפשרויות", - "SET": "קבוע", - "VARIABLE_ID": " משתנה", - "VARIABLE_VALUE": "ערך ", "MATH": "מתמטי", + "MAXDIGIT": "מקסימום ספרות", + "MENU": "תפריט", + "METHOD": "שיטה", + "MINDIGIT": "מינימום ספרות", + "MODEL": "סוג", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "שם", + "NDAACTIVITY_TYPE": "סוג הפעילות", + "NDAGENERATE_AUDIO": "צור קובץ שמע", + "NDASSISTANT_URL": "כתובת נסתרת", + "NDAUTH_URL": "כתובת אתר של NDAUTH", + "NEW": "חדש", + "NEW_ODBC": "חיבור ODBC חדש", + "NEW_PROJECT": "פרויקט חדש", + "NEW_VARIABLE": "משתנה חדש", + "NOOP": "Noop", + "NOTES": "רשימות", + "NO_AVAILABLE_INFO": "אין פרטים זמינים", + "NUMBER": "מספר", + "ODBC": "ODBC", + "ODBC_ID": "חיבור ODBC", + "OF": "מתוך", + "OPEN": "פתח", + "OPEN_NEW_WINDOW": "פתח בחלון חדש", + "OPEN_PROJECT": "פתח פרויקט", "OPERATION": "פעולה", + "OPTIONS": "אפשרויות", + "OPTS": "אפשרויות", + "OUTPUT": "פלט", + "PAGE": "דף", + "PASSWORD": "סיסמה", + "PAUSE": "השהה", + "PAUSE_ID": "סוג השהיה", + "PERMISSIONADD_PROJECTS": "הוסף משתמשים לפרויקט", + "PHONE": "טלפון", "PLAYBACK": "השמעה", + "POSITION": "מיקום", + "PRIORITY": "עדיפות", + "PROJECT": "פרויקט", + "PROJECTS": "פרויקטים", + "PROJECT_ID": "פרויקט", + "QUERY": "שאילתה", + "QUEUE": "תור", + "QUEUE_ID": "תור", + "RAWBODY": "גוף", + "RAWHEADERS": "כותרות", + "RECORD": "רשומה", + "RECORDINGFORMAT": "תבנית הקלטה", "RESPONSE": "סוף זמן קצוב לתשובה", - "DIGIT": "מקסימום ספרות", + "RESTAPI": "מנוחת API", "RETRY": "ניסיונות חוזרים", - "DIGITS": "ספרות", - "ESCAPE_DIGITS": "ספרות ביטול", - "MENU": "תפריט", + "ROWSPERPAGE": "שורות בדף", + "SAVE": "שמור", "SAYDIGITS": "אמור ספרות", "SAYNUMBER": "אמור מספר", - "NUMBER": "מספר", "SAYPHONETIC": "אמור קלט פונטי", - "TEXT": "טקסט", - "GOOGLE_TTS_LANGUAGE": "שפה", - "TTS": "טקסט-לדיבור של Google", - "ISPEECHTTS": "טקסט-לדיבור של iSpeech", - "KEY": "מפתח", - "ISPEECH_TTS_LANGUAGE": "שפה", - "SPEED": "מהירות", - "INTKEY": "מפתח עצירה", - "GETDIGITS": "קבל ספרות", - "MINDIGIT": "מינימום ספרות", - "MAXDIGIT": "מקסימום ספרות", - "HIDDENDIGITSNUM": "מספר ספרות מוסתרות", - "HIDDENDIGITSPOS": "מיקום ספרות מוסתרות", - "GETSECRETDIGITS": "קבל קוד סודי", - "RECORD": "רשומה", - "FILE": "שם קובץ", - "RECORDINGFORMAT": "תבנית הקלטה", - "DATABASE": "מסד נתונים", - "ODBC_ID": "חיבור ODBC", - "QUERY": "שאילתה", - "MODEL": "סוג", - "ISPEECH_ASR_LANGUAGE": "שפה", - "BEEP": "צפצוף", - "ISPEECHASR": "iSpeech ASR", + "SEARCH_FOR_ANYONE": "חיפוש", + "SELECTED": "נבחר/ו", + "SELECTED_USERS": "משתמשים נבחרים", + "SELECT_ALL": "בחר הכול", + "SELECT_NONE": "אל תבחר אף פריט", + "SENDFAX": "שלח פקס", + "SENDMAIL": "שלח הודעת דוא\"ל", "SENDSMS": "שלח מסרון ", - "ACCOUNT_ID": "מזהה חשבון", - "TO": "אל", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "קבוע", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "חשבון", "SMS_TEXT": "טקסט", - "SENDMAIL": "שלח הודעת דוא\"ל", - "TEMPLATE_ID": "תבנית", - "CC": "עותק", - "BCC": "עותק עיוור", + "SPEED": "מהירות", + "SQUARERECORDINGS": "הקלטות", + "SSMLGENDER": "מגדר", + "START": "התחלה", "SUBJECT": "נושא", - "GOTOC": "Goto", - "CONTEXT": "הקשר", - "EXTENSION": "שלוחה", - "PRIORITY": "עדיפות", - "GOTOIF": "GotoIf", - "CONDITION": "תנאי", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "מרווח זמן", - "VSWITCH": "בורר משתנים", - "GOAL": "יעד", - "GOALNAME": "שם יעד", - "NOOP": "Noop", - "OUTPUT": "פלט", - "SYSTEM": "מערכת", - "COMMAND": "פקודה", - "ARGS": "ארגומנטים", "SUBPROJECT": "פרויקט משני", - "PROJECT_ID": "פרויקט", - "CUSTOM_APP": "יישום מותאם אישית", - "APPLICATION": "יישום", - "CALLBACK": "החזרת שיחה", - "LASTNAME": "שם משפחה", - "LIST_ID": "רשימה", - "DELAY": "השהיה [דק']", - "OPEN_NEW_WINDOW": "פתח בחלון חדש", - "OPEN_PROJECT": "פתח פרויקט", - "COPY": "העתק", - "OPEN": "פתח", - "NEW": "חדש", - "COPY_PROJECT": "העתק פרויקט", - "NEW_VARIABLE": "משתנה חדש", - "ADD_VARIABLE": "הוסף משתנה", - "UPDATE_DESCRIPTION": "עדכן תיאור", - "EDIT_XML": "ערוך XML", - "IMPORT_XML": "יבא XML", - "IMPORT": "יבא", - "DROP_TO_UPLOAD": "גרור כדי להעלות", - "DROP_TO_UPLOAD_MESSAGE": "אפשר גם לגרור קבצים לכאן כדי להעלות אותם. XML בלבד – מקס' 5MB", - "CLOSE": "סגור", - "NO_AVAILABLE_INFO": "אין פרטים זמינים", - "GO_TO_PROJECTS": "עבור לפרויקטים", - "UPDATE_INFO": "עדכן פרטים", - "AGENTS": "נציגים", + "SYSTEM": "מערכת", "TELEPHONES": "טלפונים", - "USERS": "משתמשים", - "HELP": { - "MAILBOX": "mailbox@context", - "DSN": "דוגמה: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "ניתן להוסיף מספר כתובות ולהפריד ביניהן בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "ניתן להוסיף מספר כתובות ולהפריד ביניהן בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "ניתן להוסיף מספר כתובות ולהפריד ביניהן בפסיקים (לדוגמה, john.doe@xcally.com, jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "בחר קובץ מצורף", - "ATTACHMENT_NAME": "שם הקובץ המצורף", - "ATTACHMENT_TYPE": "סוג הקובץ המצורף", - "ATTACHMENT_PATH": "נתיב הקובץ המצורף", - "SENDFAX": "שלח פקס", - "DELETE_SQUARERECORDING": "מחק הקלטת Square", - "DOWNLOAD_SQUARERECORDING": "הורד הקלטת Square", - "FILENAME": "שם קובץ", - "EDIT_SQUARERECORDING": "ערוך הקלטת Square", - "DELETE": "מחק", - "PAGE": "דף", - "ROWSPERPAGE": "שורות בדף", - "OF": "מתוך", - "CALLBACK_PRIORITY": "עדיפות", - "GOOGLE_ASR_LANGUAGE": "שפה", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "מזהה מפתח גישה", - "AWS_SECRET_ACCESS_KEY": "צופן מפתח הגישה", - "AWS_POLLY_REGION": "אזור", - "AWS_POLLY_VOICE": "קול", - "LUMENVOXTTS": "טקסט-לדיבור של Lumenvox", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "דקדוק", + "TEMPLATE_ID": "תבנית", + "TEST_ODBC": "בדוק ODBC", + "TEXT": "טקסט", "TILDEASR": "Tilde ASR", - "APPID": "מזהה יישום", - "APPSECRET": "צופן היישום", - "NDASSISTANT_URL": "כתובת נסתרת", - "NDAUTH_URL": "כתובת אתר של NDAUTH", - "PASSWORD": "סיסמה", + "TIMEOUT": "סוף זמן קצוב", + "TO": "אל", + "TRUNK_NAME": "קו ראשי", + "TTS": "טקסט-לדיבור של Google", + "UNIQUEID": "מזהה ייחודי", + "UNPAUSE": "סיים השהיה", + "UPDATE_DESCRIPTION": "עדכן תיאור", + "UPDATE_INFO": "עדכן פרטים", + "URI": "URI", + "URL": "כתובת URL", "USERNAME": "שם משתמש", - "NDAGENERATE_AUDIO": "צור קובץ שמע", - "CUSTOM_ACTION": "פעולה מותאמת אישית", - "CUSTOM_ACTION_DATA": "נתוני פעולה מותאמים אישית", - "NDAACTIVITY_TYPE": "סוג הפעילות", - "APIKEY": "ApiKey", - "AUDIOENCODING": "קידוד שמע", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "קוד שפה", - "SSMLGENDER": "מגדר", - "BODY": "גוף", - "COMPUTEDVARIABLES": "נתיבי סקריפט משתנים מחושבים", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "סוג טקסט", - "HEADERS": "כותרות", - "METHOD": "שיטה", - "RAWBODY": "גוף", - "RAWHEADERS": "כותרות", - "RESTAPI": "מנוחת API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "משתמשים", + "VARIABLE_ID": " משתנה", + "VARIABLE_VALUE": "ערך ", + "VOICEMAIL": "הודעה קולית", + "VSWITCH": "בורר משתנים" } } diff --git a/public/app/main/apps/callysquare/i18n/hi.json b/public/app/main/apps/callysquare/i18n/hi.json index d1de582..f884ff1 100644 --- a/public/app/main/apps/callysquare/i18n/hi.json +++ b/public/app/main/apps/callysquare/i18n/hi.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "उपयोगकर्ताओं को प्रोजेक्ट में जोड़ें", + "ADD_ODBC": "ODBC जोड़ें", + "ADD_PROJECT": "परियोजना में जोड़ें", + "ADD_VARIABLE": "परिवर्तनीय जोड़ें", + "AGENTS": "एजेंटों", + "AGI": "AGI", + "ALL_USERS": "सभी उपयोगकर्ताओं", + "ANSWER": "Answer", + "APIKEY": "एपीआई कुंजी", + "APPID": "App World ID", + "APPLICATION": "Application", + "APPSECRET": "App World गुप्त", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "संलग्नक का नाम", + "ATTACHMENT_PATH": "संलग्नक का मार्ग", + "ATTACHMENT_TYPE": "संलग्नक प्रकार", + "AUDIO": "ऑडियो", + "AUDIOENCODING": "ऑडियो एन्कोडिंग", "AWSLEX": "Amazon Lex", - "NAME": "नाम", - "ODBC": "ODBC", - "TEST_ODBC": "टेस्ट ODBC", - "SEARCH_FOR_ANYONE": "किसी भी व्यक्ति की तलाश", + "AWSPOLLY": "कोअधुनातन बल् लेबाज नहीं होता", + "AWS_ACCESS_KEY_ID": "पहुंच कुंजी ID", + "AWS_BOT_NAME": "बॉट नाम", + "AWS_LEX_REGION": "क्षेत्र", + "AWS_POLLY_REGION": "क्षेत्र", + "AWS_POLLY_VOICE": "आवाज", + "AWS_SECRET_ACCESS_KEY": "गुप्त पहुंच कुंजी दबाएं.", + "AWS_TEXT_TYPE": "पाठ्य प्रकार", "BACK": "वापिस", - "SELECTED": "चयनित", - "SELECT_ALL": "सभी का चयन करें", - "SELECT_NONE": "किसी का भी चयन", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "तन", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "प्राथमिकता", + "CALLYSQUARE": "मूल स् वरूप वर्गाकार", + "CC": "CC", + "CHOOSE_ATTACHMENT": "संलग्नक चुनें", + "CLOSE": "निकट", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "कंप्यूटेड वेरिएबल्स स्क्रिप्ट पाथ", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "कॉपी करें", + "COPY_PROJECT": "परियोजना की कॉपी करें", + "CREATED_AT": "सृजित", + "CUSTOM_ACTION": "कस्टम क्रिया", + "CUSTOM_ACTION_DATA": "कस्टम एक्शन डेटा", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "हटाना", + "DELETE_ODBC": "ODBC हटाएं", + "DELETE_PROJECT": "परियोजना को हटाएं", + "DELETE_SQUARERECORDING": "रिकॉर्डिंग वर्गाकार हटाएं", "DESCRIPTION": "वर्णन", - "ADD_ODBC": "ODBC जोड़ें", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "भाषा", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "रिकॉर्डिंग वर्गाकार डाउनलोड करें", + "DROP_TO_UPLOAD": "अपलोड छोड़ें", + "DROP_TO_UPLOAD_MESSAGE": "आप फ़ाइलों को छोडने का भी यहां अपलोड करने के लिए है। केवल XML - अधिकतम. 5 MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "ODBC संपादित करें", + "EDIT_PROJECT": "परियोजना को संपादित करें", + "EDIT_SQUARERECORDING": "रिकॉर्डिंग वर्गाकार संपादित करें", + "EDIT_XML": "XML संपादित करें", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "नाम की आवश्यकता है।", "DSN_REQUIRED": "DSN की आवश्यकता है।", - "PROJECT_REQUIRED": "इस परियोजना की आवश्यकता है।", "FIELD_REQUIRED": "इस क्षेत्र की आवश्यकता है।", + "NAME_REQUIRED": "नाम की आवश्यकता है।", + "PROJECT_REQUIRED": "इस परियोजना की आवश्यकता है।", "URL_REQUIRED": "आवश्यक स्थान" }, - "EDIT_ODBC": "ODBC संपादित करें", - "DELETE_ODBC": "ODBC हटाएं", - "SAVE": "सहेजें", - "PROJECTS": "परियोजनाएं", - "ADD_PROJECT": "परियोजना में जोड़ें", - "EDIT_PROJECT": "परियोजना को संपादित करें", - "DELETE_PROJECT": "परियोजना को हटाएं", - "CALLYSQUARE": "मूल स् वरूप वर्गाकार", - "ID": "Id", - "NEW_ODBC": "नए कनेक् शन ODBC", - "SQUARERECORDINGS": "वर्गाकार जनाक्रोश", - "PROJECT": "परियोजना", - "UNIQUEID": "अद्वितीय ID", - "PHONE": "फ़ोन", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "ऑडियो", - "CREATED_AT": "सृजित", - "NOTES": "करती", - "NEW_PROJECT": "नई परियोजना", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "फ़ाइल नाम", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "द्वारा खोजें", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "की भाषा", + "GOOGLE_CLOUD_TTS": "Google क्लाउड टीटीएस", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "पाठ्य प्रकार", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "परियोजनाओं पर जाएं", + "GRAMMAR": "व्याकरण", + "HANGUP": "Hangup", + "HEADERS": "हेडर", + "HELP": { + "BCC": "आप एकाधिक पते का उपयोग करते हुए जोड़ सकते हैं (उदाहरण के लिए, अल्पविराम john.doe@xcally.com jane.miller@xcally.com)", + "CC": "आप एकाधिक पते का उपयोग करते हुए जोड़ सकते हैं (उदाहरण के लिए, अल्पविराम john.doe@xcally.com jane.miller@xcally.com)", + "DSN": "उदाहरण के लिए: चालक=MySQL वंशवृक्ष सर्वर 0.1.127.0 UID=xcall वंशवृक्ष वंशवृक्ष=लोकनिर्माण=पासवर्ड वंशवृक्ष डाटाबेस=प्रस्ताव", + "MAILBOX": "मेलबॉक्स@वर्ल्ड कप के संदर्भ", + "MAX_TEXT_TTS": "समर्थित वर्णों की अधिकतम संख्या 250 है", + "TO": "आप एकाधिक पते का उपयोग करते हुए जोड़ सकते हैं (उदाहरण के लिए, अल्पविराम john.doe@xcally.com jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "आयात", + "IMPORT_XML": "XML आयात करें", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "भाषा कोड", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "लॉग इन करें", + "LOGOUT": "लोग आउट", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-भाषण", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "तरीका", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "नाम", + "NDAACTIVITY_TYPE": "क्रिया के प्रकार", + "NDAGENERATE_AUDIO": "ऑडियो फ़ाइल जनरेट करें", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "नया", + "NEW_ODBC": "नए कनेक् शन ODBC", + "NEW_PROJECT": "नई परियोजना", + "NEW_VARIABLE": "नई परिवर्तनीय", + "NOOP": "NoOp", + "NOTES": "करती", + "NO_AVAILABLE_INFO": "जानकारी उपलब्ध नहीं", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "की", + "OPEN": "खुला", + "OPEN_NEW_WINDOW": "खुले में एक नया खिडकी", + "OPEN_PROJECT": "खुले परियोजना", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "पृष्ठ", + "PASSWORD": "पारण शब्द", + "PAUSE": "ठहराव", + "PAUSE_ID": "रोकें प्रकार", + "PERMISSIONADD_PROJECTS": "उपयोगकर्ताओं को प्रोजेक्ट में जोड़ें", + "PHONE": "फ़ोन", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "परियोजना", + "PROJECTS": "परियोजनाएं", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "तन", + "RAWHEADERS": "हेडर", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "बाकी एपीआई", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "पंक्तियां प्रति पृष्ठ", + "SAVE": "सहेजें", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "किसी भी व्यक्ति की तलाश", + "SELECTED": "चयनित", + "SELECTED_USERS": "चयनित उपयोगकर्ता", + "SELECT_ALL": "सभी का चयन करें", + "SELECT_NONE": "किसी का भी चयन", + "SENDFAX": "फ़ैक्स भेजें", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "लेखा", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "वर्गाकार जनाक्रोश", + "SSMLGENDER": "लिंग", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "खुले में एक नया खिडकी", - "OPEN_PROJECT": "खुले परियोजना", - "COPY": "कॉपी करें", - "OPEN": "खुला", - "NEW": "नया", - "COPY_PROJECT": "परियोजना की कॉपी करें", - "NEW_VARIABLE": "नई परिवर्तनीय", - "ADD_VARIABLE": "परिवर्तनीय जोड़ें", - "UPDATE_DESCRIPTION": "अद्यतन वर्णन किया।", - "EDIT_XML": "XML संपादित करें", - "IMPORT_XML": "XML आयात करें", - "IMPORT": "आयात", - "DROP_TO_UPLOAD": "अपलोड छोड़ें", - "DROP_TO_UPLOAD_MESSAGE": "आप फ़ाइलों को छोडने का भी यहां अपलोड करने के लिए है। केवल XML - अधिकतम. 5 MB", - "CLOSE": "निकट", - "NO_AVAILABLE_INFO": "जानकारी उपलब्ध नहीं", - "GO_TO_PROJECTS": "परियोजनाओं पर जाएं", - "UPDATE_INFO": "अद्यतन जानकारी", - "AGENTS": "एजेंटों", + "SYSTEM": "System", "TELEPHONES": "टेलीफोन", - "USERS": "प्रयोक्ता", - "HELP": { - "MAILBOX": "मेलबॉक्स@वर्ल्ड कप के संदर्भ", - "DSN": "उदाहरण के लिए: चालक=MySQL वंशवृक्ष सर्वर 0.1.127.0 UID=xcall वंशवृक्ष वंशवृक्ष=लोकनिर्माण=पासवर्ड वंशवृक्ष डाटाबेस=प्रस्ताव", - "TO": "आप एकाधिक पते का उपयोग करते हुए जोड़ सकते हैं (उदाहरण के लिए, अल्पविराम john.doe@xcally.com jane.miller@xcally.com)", - "CC": "आप एकाधिक पते का उपयोग करते हुए जोड़ सकते हैं (उदाहरण के लिए, अल्पविराम john.doe@xcally.com jane.miller@xcally.com)", - "BCC": "आप एकाधिक पते का उपयोग करते हुए जोड़ सकते हैं (उदाहरण के लिए, अल्पविराम john.doe@xcally.com jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "संलग्नक चुनें", - "ATTACHMENT_NAME": "संलग्नक का नाम", - "ATTACHMENT_TYPE": "संलग्नक प्रकार", - "ATTACHMENT_PATH": "संलग्नक का मार्ग", - "SENDFAX": "फ़ैक्स भेजें", - "DELETE_SQUARERECORDING": "रिकॉर्डिंग वर्गाकार हटाएं", - "DOWNLOAD_SQUARERECORDING": "रिकॉर्डिंग वर्गाकार डाउनलोड करें", - "FILENAME": "फ़ाइल नाम", - "EDIT_SQUARERECORDING": "रिकॉर्डिंग वर्गाकार संपादित करें", - "DELETE": "हटाना", - "PAGE": "पृष्ठ", - "ROWSPERPAGE": "पंक्तियां प्रति पृष्ठ", - "OF": "की", - "CALLBACK_PRIORITY": "प्राथमिकता", - "GOOGLE_ASR_LANGUAGE": "की भाषा", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "कोअधुनातन बल् लेबाज नहीं होता", - "AWS_ACCESS_KEY_ID": "पहुंच कुंजी ID", - "AWS_SECRET_ACCESS_KEY": "गुप्त पहुंच कुंजी दबाएं.", - "AWS_POLLY_REGION": "क्षेत्र", - "AWS_POLLY_VOICE": "आवाज", - "LUMENVOXTTS": "Lumenvox Text-To-भाषण", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "व्याकरण", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "टेस्ट ODBC", + "TEXT": "Text", "TILDEASR": "Tilde ASR", - "APPID": "App World ID", - "APPSECRET": "App World गुप्त", - "SMS_ACCOUNT_ID": "लेखा", - "FINDBY": "द्वारा खोजें", - "LOGIN": "लॉग इन करें", - "LOGOUT": "लोग आउट", - "PAUSE": "ठहराव", - "PAUSE_ID": "रोकें प्रकार", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "अद्वितीय ID", "UNPAUSE": "अंत रोकें", + "UPDATE_DESCRIPTION": "अद्यतन वर्णन किया।", + "UPDATE_INFO": "अद्यतन जानकारी", "URI": "यूआरआई", - "AWS_TEXT_TYPE": "पाठ्य प्रकार", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "भाषा", - "ADDUSER_PROJECTS": "उपयोगकर्ताओं को प्रोजेक्ट में जोड़ें", - "ALL_USERS": "सभी उपयोगकर्ताओं", - "PERMISSIONADD_PROJECTS": "उपयोगकर्ताओं को प्रोजेक्ट में जोड़ें", - "SELECTED_USERS": "चयनित उपयोगकर्ता", - "AWS_BOT_NAME": "बॉट नाम", - "AWS_LEX_REGION": "क्षेत्र", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "पारण शब्द", + "URL": "URL", "USERNAME": "उपयोगकर्ता नाम", - "NDAGENERATE_AUDIO": "ऑडियो फ़ाइल जनरेट करें", - "CUSTOM_ACTION": "कस्टम क्रिया", - "CUSTOM_ACTION_DATA": "कस्टम एक्शन डेटा", - "NDAACTIVITY_TYPE": "क्रिया के प्रकार", - "APIKEY": "एपीआई कुंजी", - "AUDIOENCODING": "ऑडियो एन्कोडिंग", - "GOOGLE_CLOUD_TTS": "Google क्लाउड टीटीएस", - "LANGUAGECODE": "भाषा कोड", - "SSMLGENDER": "लिंग", - "BODY": "तन", - "COMPUTEDVARIABLES": "कंप्यूटेड वेरिएबल्स स्क्रिप्ट पाथ", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "पाठ्य प्रकार", - "HEADERS": "हेडर", - "METHOD": "तरीका", - "RAWBODY": "तन", - "RAWHEADERS": "हेडर", - "RESTAPI": "बाकी एपीआई", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "प्रयोक्ता", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/id.json b/public/app/main/apps/callysquare/i18n/id.json index 703629c..f633bfe 100644 --- a/public/app/main/apps/callysquare/i18n/id.json +++ b/public/app/main/apps/callysquare/i18n/id.json @@ -1,59 +1,15 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "ERRORS": { - "DSN_REQUIRED": "Bidang wajib", - "FIELD_REQUIRED": "Bidang wajib", - "NAME_REQUIRED": "Bidang wajib", - "PROJECT_REQUIRED": "Bidang wajib", - "URL_REQUIRED": "Bidang wajib" - }, - "HELP": { - "BCC": "Anda dapat menambahkan beberapa alamat yang dipisahkan oleh koma (mis. John.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Anda dapat menambahkan beberapa alamat yang dipisahkan oleh koma (mis. John.doe@xcally.com, jane.miller@xcally.com)", - "DSN": "Contoh: DRIVER = MySQL; SERVER = 127.0.0.1; UID = xcall; PWD = kata sandi; DATABASE = gerak", - "MAILBOX": "kotak surat @ konteks", - "TO": "Anda dapat menambahkan beberapa alamat yang dipisahkan oleh koma (mis. John.doe@xcally.com, jane.miller@xcally.com)" - }, + "ACCOUNT_ID": "Rekening", + "ADDUSER_PROJECTS": "Tambahkan Pengguna ke Proyek", "ADD_ODBC": "Tambahkan ODBC", "ADD_PROJECT": "Tambahkan Proyek", - "AWS_TEXT_TYPE": "Jenis teks", - "BACK": "Kembali", - "CALLYSQUARE": "Cally Square", - "DELETE_ODBC": "Hapus ODBC", - "DELETE_PROJECT": "Hapus Proyek", - "DESCRIPTION": "Deskripsi", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Bahasa", - "DSN": "DSN", - "EDIT_ODBC": "Edit ODBC", - "EDIT_PROJECT": "Edit Proyek", - "FINDBY": "Temukan Dengan", - "ID": "ID", - "LOGIN": "Masuk", - "LOGOUT": "Keluar", - "NAME": "Nama", - "ODBC": "ODBC", - "PAUSE": "Berhenti sebentar", - "PAUSE_ID": "Jeda jenis", - "PROJECTS": "Proyek", - "SAVE": "Menyimpan", - "SEARCH_FOR_ANYONE": "Pencarian", - "SELECTED": "Terpilih", - "SELECT_ALL": "Pilih Semua", - "SELECT_NONE": "Pilih Tidak Ada", - "SMS_ACCOUNT_ID": "Rekening", - "TEST_ODBC": "Uji ODBC", - "UNPAUSE": "Akhiri Jeda", - "URI": "URI", - "ACCOUNT_ID": "Rekening", "ADD_VARIABLE": "Tambahkan Variabel", "AGENTS": "Agen", "AGI": "AGI", + "ALL_USERS": "Semua pengguna", "ANSWER": "Menjawab", + "APIKEY": "Kunci API", "APPID": "ID Aplikasi", "APPLICATION": "Aplikasi", "APPSECRET": "Rahasia Aplikasi", @@ -62,39 +18,65 @@ "ATTACHMENT_PATH": "Jalur Lampiran", "ATTACHMENT_TYPE": "Jenis Lampiran", "AUDIO": "Audio", + "AUDIOENCODING": "Pengkodean Audio", + "AWSLEX": "Amazon Lex", "AWSPOLLY": "AWS Polly", "AWS_ACCESS_KEY_ID": "Akses ID Kunci", + "AWS_BOT_NAME": "Nama bot", + "AWS_LEX_REGION": "Wilayah", "AWS_POLLY_REGION": "Wilayah", "AWS_POLLY_VOICE": "Suara", "AWS_SECRET_ACCESS_KEY": "Kunci Akses Rahasia", + "AWS_TEXT_TYPE": "Jenis teks", + "BACK": "Kembali", "BCC": "BCC", "BEEP": "Berbunyi", + "BODY": "Tubuh", "CALLBACK": "Callback", "CALLBACK_PRIORITY": "Prioritas", + "CALLYSQUARE": "Cally Square", "CC": "CC", "CHOOSE_ATTACHMENT": "Pilih Lampiran", "CLOSE": "Dekat", "COMMAND": "Perintah", + "COMPUTEDVARIABLES": "Jalur Script Variabel Terkomputasi", "CONDITION": "Kondisi", "CONTEXT": "Konteks", "COPY": "Salinan", "COPY_PROJECT": "Salin Proyek", "CREATED_AT": "Dibuat di", + "CUSTOM_ACTION": "Tindakan Kustom", + "CUSTOM_ACTION_DATA": "Data Tindakan Kustom", "CUSTOM_APP": "Aplikasi Kustom", "DATABASE": "Database", "DELAY": "menunda [mnt]", "DELETE": "Menghapus", + "DELETE_ODBC": "Hapus ODBC", + "DELETE_PROJECT": "Hapus Proyek", "DELETE_SQUARERECORDING": "Hapus Square Recording", + "DESCRIPTION": "Deskripsi", "DIAL": "Hubungi", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Bahasa", "DIGIT": "Max Digits", "DIGITS": "Digit", "DOWNLOAD_SQUARERECORDING": "Unduh Square Recording", "DROP_TO_UPLOAD": "DROP TO UPLOAD", "DROP_TO_UPLOAD_MESSAGE": "Anda juga dapat meletakkan file di sini untuk diunggah. Hanya XML - Maks. 5 MB", + "DSN": "DSN", "EDIT": "Edit", + "EDIT_ODBC": "Edit ODBC", + "EDIT_PROJECT": "Edit Proyek", "EDIT_SQUARERECORDING": "Edit Square Recording", "EDIT_XML": "Edit XML", "END": "Akhir", + "ERRORS": { + "DSN_REQUIRED": "Bidang wajib", + "FIELD_REQUIRED": "Bidang wajib", + "NAME_REQUIRED": "Bidang wajib", + "PROJECT_REQUIRED": "Bidang wajib", + "URL_REQUIRED": "Bidang wajib" + }, "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", "EXTENSION": "Perpanjangan", @@ -103,12 +85,15 @@ "FILENAME": "Nama file", "FILE_ID": "Audio", "FINALLY": "Akhirnya", + "FINDBY": "Temukan Dengan", "GETDIGITS": "Dapatkan Digit", "GETSECRETDIGITS": "Dapatkan Rahasia Digit", "GOAL": "Tujuan", "GOALNAME": "Nama Sasaran", "GOOGLEASR": "GoogleASR", "GOOGLE_ASR_LANGUAGE": "Bahasa", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Jenis teks", "GOOGLE_TTS_LANGUAGE": "Bahasa", "GOSUB": "GoSub", "GOTOC": "Pergi ke", @@ -117,8 +102,18 @@ "GO_TO_PROJECTS": "Pergi ke proyek", "GRAMMAR": "Tatabahasa", "HANGUP": "Tutup Telepon", + "HEADERS": "Tajuk", + "HELP": { + "BCC": "Anda dapat menambahkan beberapa alamat yang dipisahkan oleh koma (mis. John.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Anda dapat menambahkan beberapa alamat yang dipisahkan oleh koma (mis. John.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Contoh: DRIVER = MySQL; SERVER = 127.0.0.1; UID = xcall; PWD = kata sandi; DATABASE = gerak", + "MAILBOX": "kotak surat @ konteks", + "MAX_TEXT_TTS": "Jumlah karakter maksimum yang didukung adalah 250", + "TO": "Anda dapat menambahkan beberapa alamat yang dipisahkan oleh koma (mis. John.doe@xcally.com, jane.miller@xcally.com)" + }, "HIDDENDIGITSNUM": "Nomor Hiddden Digits", "HIDDENDIGITSPOS": "Posisi Digits yang tersembunyi", + "ID": "ID", "IMPORT": "Impor", "IMPORT_XML": "Impor XML", "INTERVAL_ID": "Selang", @@ -129,8 +124,11 @@ "ISPEECH_TTS_LANGUAGE": "Bahasa", "KEY": "Kunci", "LABEL": "Label", + "LANGUAGECODE": "Kode Bahasa", "LASTNAME": "Nama keluarga", "LIST_ID": "Daftar", + "LOGIN": "Masuk", + "LOGOUT": "Keluar", "LUMENVOXASR": "Lumenvox ASR", "LUMENVOXTTS": "Lumenvox Text-To-Speech", "MACRO": "Makro", @@ -138,8 +136,16 @@ "MATH": "Matematika", "MAXDIGIT": "Digit Maksimum", "MENU": "Menu", + "METHOD": "metode", "MINDIGIT": "Digit Minimum", "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Nama", + "NDAACTIVITY_TYPE": "Tipe kegiatan", + "NDAGENERATE_AUDIO": "Hasilkan File Audio", + "NDASSISTANT_URL": "Url NDASSISTANT", + "NDAUTH_URL": "NDAUTH Url", "NEW": "Baru", "NEW_ODBC": "Koneksi ODBC baru", "NEW_PROJECT": "Proyek baru", @@ -148,6 +154,7 @@ "NOTES": "Catatan", "NO_AVAILABLE_INFO": "Tidak ada info", "NUMBER": "Jumlah", + "ODBC": "ODBC", "ODBC_ID": "Koneksi ODBC", "OF": "dari", "OPEN": "Buka", @@ -158,37 +165,57 @@ "OPTS": "Pilihan", "OUTPUT": "Keluaran", "PAGE": "Halaman", + "PASSWORD": "Kata sandi", + "PAUSE": "Berhenti sebentar", + "PAUSE_ID": "Jeda jenis", + "PERMISSIONADD_PROJECTS": "Tambahkan Pengguna ke Proyek", "PHONE": "Telepon", "PLAYBACK": "Putar kembali", "POSITION": "Posisi", "PRIORITY": "Prioritas", "PROJECT": "Proyek", + "PROJECTS": "Proyek", "PROJECT_ID": "Proyek", "QUERY": "Pertanyaan", "QUEUE": "Antre", "QUEUE_ID": "Antre", + "RAWBODY": "Tubuh", + "RAWHEADERS": "Tajuk", "RECORD": "Merekam", "RECORDINGFORMAT": "Format Perekaman", "RESPONSE": "Timeout Response", + "RESTAPI": "API sisanya", "RETRY": "Retries", "ROWSPERPAGE": "Baris per halaman", + "SAVE": "Menyimpan", "SAYDIGITS": "Ucapkan Digit", "SAYNUMBER": "Ucapkan nomor", "SAYPHONETIC": "Katakanlah Phonetics", + "SEARCH_FOR_ANYONE": "Pencarian", + "SELECTED": "Terpilih", + "SELECTED_USERS": "Pengguna yang Dipilih", + "SELECT_ALL": "Pilih Semua", + "SELECT_NONE": "Pilih Tidak Ada", "SENDFAX": "Kirim Faks", "SENDMAIL": "Mengirim email", "SENDSMS": "Kirim SMS", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", "SET": "Set", "SIP_ID": "MENYESAP", + "SMS_ACCOUNT_ID": "Rekening", "SMS_TEXT": "Teks", "SPEED": "Kecepatan", "SQUARERECORDINGS": "Rekaman", + "SSMLGENDER": "Jenis kelamin", "START": "Mulai", "SUBJECT": "Subyek", "SUBPROJECT": "Subproyek", "SYSTEM": "Sistem", "TELEPHONES": "Telepon", "TEMPLATE_ID": "Template", + "TEST_ODBC": "Uji ODBC", "TEXT": "Teks", "TILDEASR": "Tilde ASR", "TIMEOUT": "Waktu habis", @@ -196,42 +223,16 @@ "TRUNK_NAME": "Bagasi", "TTS": "Google Text-To-Speech", "UNIQUEID": "Identitas unik", + "UNPAUSE": "Akhiri Jeda", "UPDATE_DESCRIPTION": "Perbarui Deskripsi", "UPDATE_INFO": "Informasi terbaru", + "URI": "URI", "URL": "URL", + "USERNAME": "Nama pengguna", "USERS": "Pengguna", "VARIABLE_ID": "Variabel", "VARIABLE_VALUE": "Nilai", "VOICEMAIL": "Voicemail", - "VSWITCH": "Saklar Variabel", - "ADDUSER_PROJECTS": "Tambahkan Pengguna ke Proyek", - "ALL_USERS": "Semua pengguna", - "PERMISSIONADD_PROJECTS": "Tambahkan Pengguna ke Proyek", - "SELECTED_USERS": "Pengguna yang Dipilih", - "AWS_BOT_NAME": "Nama bot", - "AWS_LEX_REGION": "Wilayah", - "NDASSISTANT_URL": "Url NDASSISTANT", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "Kata sandi", - "USERNAME": "Nama pengguna", - "NDAGENERATE_AUDIO": "Hasilkan File Audio", - "CUSTOM_ACTION": "Tindakan Kustom", - "CUSTOM_ACTION_DATA": "Data Tindakan Kustom", - "NDAACTIVITY_TYPE": "Tipe kegiatan", - "APIKEY": "Kunci API", - "AUDIOENCODING": "Pengkodean Audio", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Kode Bahasa", - "SSMLGENDER": "Jenis kelamin", - "BODY": "Tubuh", - "COMPUTEDVARIABLES": "Jalur Script Variabel Terkomputasi", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Jenis teks", - "HEADERS": "Tajuk", - "METHOD": "metode", - "RAWBODY": "Tubuh", - "RAWHEADERS": "Tajuk", - "RESTAPI": "API sisanya", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "VSWITCH": "Saklar Variabel" } } diff --git a/public/app/main/apps/callysquare/i18n/it.json b/public/app/main/apps/callysquare/i18n/it.json index ba2d403..b13b65b 100644 --- a/public/app/main/apps/callysquare/i18n/it.json +++ b/public/app/main/apps/callysquare/i18n/it.json @@ -1,238 +1,238 @@ { "CALLYSQUARE": { - "CUSTOM_ACTION": "Custom Action", - "CUSTOM_ACTION_DATA": "Custom Action Data", - "NDAACTIVITY_TYPE": "Tipo di attivita", - "NDAGENERATE_AUDIO": "Genera Audio File", - "SESTEKASR": "Sestek ASR", - "NDAUTH_URL": "NDAUTH Url", - "NDASSISTANT_URL": "NDASSISTANT Url", - "USERNAME": "Username", - "PASSWORD": "Password", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "AWS_LEX_REGION": "Regione", - "AWS_BOT_NAME": "Nome Bot", + "ACCOUNT_ID": "Account", "ADDUSER_PROJECTS": "Aggiungi Utenti a Progetti", - "PERMISSIONADD_PROJECTS": "Aggiungi Utenti a Progetti", + "ADD_ODBC": "Aggiungi ODBC", + "ADD_PROJECT": "Aggiungi Progetto", + "ADD_VARIABLE": "Aggiungi Variabile", + "AGENTS": "Agenti", + "AGI": "AGI", "ALL_USERS": "Tutti gli Utenti", - "SELECTED_USERS": "Utenti selezionati", - "FINDBY": "Trova", - "LOGIN": "Login", - "PAUSE": "Pausa", - "UNPAUSE": "Fine pausa", - "LOGOUT": "Logout", - "URI": "URI", - "SMS_ACCOUNT_ID": "Account", - "NAME": "Nome", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Cerca", + "ANSWER": "Rispondi", + "APIKEY": "ApiKey", + "APPID": "App ID", + "APPLICATION": "Applicazione", + "APPSECRET": "App Secret", + "ARGS": "Argomenti", + "ATTACHMENT_NAME": "Nome Allegato", + "ATTACHMENT_PATH": "Percorso Allegato", + "ATTACHMENT_TYPE": "Tipo Allegato", + "AUDIO": "Audio", + "AUDIOENCODING": "Encoding Audio", + "AWSLEX": "Amazon Lex", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Access Key ID", + "AWS_BOT_NAME": "Nome Bot", + "AWS_LEX_REGION": "Regione", + "AWS_POLLY_REGION": "Regione", + "AWS_POLLY_VOICE": "Voce", + "AWS_SECRET_ACCESS_KEY": "Secret Access Key", + "AWS_TEXT_TYPE": "Tipo di testo", "BACK": "Indietro", - "SELECTED": "Selezionati", - "SELECT_ALL": "Seleziona tutto", - "SELECT_NONE": "Deseleziona tutto", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Body", + "CALLBACK": "Richiama", + "CALLBACK_PRIORITY": "Priorità", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Scegli Allegato", + "CLOSE": "Chiudi", + "COMMAND": "Comando", + "COMPUTEDVARIABLES": "Script di computazione variabili", + "CONDITION": "Condizione", + "CONTEXT": "Contesto", + "COPY": "Copia", + "COPY_PROJECT": "Copia Progetto", + "CREATED_AT": "Creato il", + "CUSTOM_ACTION": "Custom Action", + "CUSTOM_ACTION_DATA": "Custom Action Data", + "CUSTOM_APP": "Applicazione Custom", + "DATABASE": "Database", + "DELAY": "Ritardo", + "DELETE": "Elimina", + "DELETE_ODBC": "Elimina ODBC", + "DELETE_PROJECT": "Cancella Progetto", + "DELETE_SQUARERECORDING": "Elimina Registrazione Square", "DESCRIPTION": "Descrizione", - "ADD_ODBC": "Aggiungi ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "linguaggio", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Scarica Registrazione Square", + "DROP_TO_UPLOAD": "DROP TO UPLOAD", + "DROP_TO_UPLOAD_MESSAGE": "Trascina i file qui per caricarli. Solo XML - Max 5MB", + "DSN": "DSN", + "EDIT": "Modifica", + "EDIT_ODBC": "Modifica ODBC", + "EDIT_PROJECT": "Modifica Progetto", + "EDIT_SQUARERECORDING": "Modifica registrazione", + "EDIT_XML": "Modifica XML", + "END": "End", "ERRORS": { - "URL_REQUIRED": "Campo Obbligatorio", - "NAME_REQUIRED": "Campo Obbligatorio", "DSN_REQUIRED": "Campo Obbligatorio", + "FIELD_REQUIRED": "Campo Obbligatorio", + "NAME_REQUIRED": "Campo Obbligatorio", "PROJECT_REQUIRED": "Campo Obbligatorio", - "FIELD_REQUIRED": "Campo Obbligatorio" + "URL_REQUIRED": "Campo Obbligatorio" }, - "EDIT_ODBC": "Modifica ODBC", - "DELETE_ODBC": "Elimina ODBC", - "SAVE": "Salva", - "PROJECTS": "Progetti", - "ADD_PROJECT": "Aggiungi Progetto", - "EDIT_PROJECT": "Modifica Progetto", - "DELETE_PROJECT": "Cancella Progetto", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "Nuova connessione ODBC", - "SQUARERECORDINGS": "Registrazioni", - "PROJECT": "Progetto", - "UNIQUEID": "ID Univoco", - "PHONE": "Telefono", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Estensione", - "AUDIO": "Audio", - "CREATED_AT": "Creato il", - "NOTES": "Nota", - "NEW_PROJECT": "Nuovo Progetto", - "EDIT": "Modifica", - "LABEL": "Label", - "ANSWER": "Rispondi", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Opzioni", - "URL": "URL", - "TRUNK_NAME": "Nome Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "Chiamata Outbound", - "QUEUE": "Coda", - "QUEUE_ID": "Coda", + "FILE": "Filename", + "FILENAME": "Nome File", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Trova", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Nome Goal", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Lingua", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tipo di testo", + "GOOGLE_TTS_LANGUAGE": "Lingua", "GOSUB": "GoSub", - "POSITION": "Posizione", - "VOICEMAIL": "Casella Vocale", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Vai ai progetti", + "GRAMMAR": "Grammatica", + "HANGUP": "Hangup", + "HEADERS": "Headers", + "HELP": { + "BCC": "E' possibile aggiungere indirizzi multipli usando le virgole (es. john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "E' possibile aggiungere indirizzi multipli usando le virgole (es. john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Esempio:DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "Mailbox@context", + "MAX_TEXT_TTS": "Numero massimo di caratteri supportati è 250", + "TO": "E' possibile aggiungere indirizzi multipli usando le virgole (es. john.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Numero Digits nascosti", + "HIDDENDIGITSPOS": "Posizione Digits nascosti", + "ID": "Id", + "IMPORT": "Importa", + "IMPORT_XML": "Importa XML", + "INTERVAL_ID": "Intervallo", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Lingua", + "ISPEECH_TTS_LANGUAGE": "Lingua", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Codice Lingua", + "LASTNAME": "Cognome", + "LIST_ID": "Lista", + "LOGIN": "Login", + "LOGOUT": "Logout", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Opzioni", - "SET": "Set", - "VARIABLE_ID": "Variabile", - "VARIABLE_VALUE": "Valore", "MATH": "Math", + "MAXDIGIT": "Digits Massimi", + "MENU": "Menu", + "METHOD": "Metodo", + "MINDIGIT": "Digits Minimi", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Nome", + "NDAACTIVITY_TYPE": "Tipo di attivita", + "NDAGENERATE_AUDIO": "Genera Audio File", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "Nuovo", + "NEW_ODBC": "Nuova connessione ODBC", + "NEW_PROJECT": "Nuovo Progetto", + "NEW_VARIABLE": "Nuova Variabile", + "NOOP": "NoOp", + "NOTES": "Nota", + "NO_AVAILABLE_INFO": "Nessuna informazione disponibile", + "NUMBER": "Numero", + "ODBC": "ODBC", + "ODBC_ID": "Connessione ODBC", + "OF": "di", + "OPEN": "Apri", + "OPEN_NEW_WINDOW": "Apri in una nuova finestra", + "OPEN_PROJECT": "Apri Progetto", "OPERATION": "Operazione", + "OPTIONS": "Opzioni", + "OPTS": "Opzioni", + "OUTPUT": "Output", + "PAGE": "Pagina", + "PASSWORD": "Password", + "PAUSE": "Pausa", + "PAUSE_ID": "Metti in pausa il tipo", + "PERMISSIONADD_PROJECTS": "Aggiungi Utenti a Progetti", + "PHONE": "Telefono", "PLAYBACK": "Playback", + "POSITION": "Posizione", + "PRIORITY": "Priorità", + "PROJECT": "Progetto", + "PROJECTS": "Progetti", + "PROJECT_ID": "Progetto", + "QUERY": "Query", + "QUEUE": "Coda", + "QUEUE_ID": "Coda", + "RAWBODY": "Body", + "RAWHEADERS": "Headers", + "RECORD": "Registra", + "RECORDINGFORMAT": "Formato Registrazione", "RESPONSE": "Timeout Risposta", - "DIGIT": "Max Digits", + "RESTAPI": "Rest API", "RETRY": "Tentativi", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Righe per pagina", + "SAVE": "Salva", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Numero", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Testo", - "GOOGLE_TTS_LANGUAGE": "Lingua", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Lingua", - "SPEED": "Velocità", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Digits Minimi", - "MAXDIGIT": "Digits Massimi", - "HIDDENDIGITSNUM": "Numero Digits nascosti", - "HIDDENDIGITSPOS": "Posizione Digits nascosti", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Registra", - "FILE": "Filename", - "RECORDINGFORMAT": "Formato Registrazione", - "DATABASE": "Database", - "ODBC_ID": "Connessione ODBC", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Lingua", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Cerca", + "SELECTED": "Selezionati", + "SELECTED_USERS": "Utenti selezionati", + "SELECT_ALL": "Seleziona tutto", + "SELECT_NONE": "Deseleziona tutto", + "SENDFAX": "Invia Fax", + "SENDMAIL": "Invia Email", "SENDSMS": "Invia SMS", - "ACCOUNT_ID": "Account", - "TO": "A", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Account", "SMS_TEXT": "Testo", - "SENDMAIL": "Invia Email", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Velocità", + "SQUARERECORDINGS": "Registrazioni", + "SSMLGENDER": "Genere", + "START": "Start", "SUBJECT": "Soggetto", - "GOTOC": "GoTo", - "CONTEXT": "Contesto", - "EXTENSION": "Extension", - "PRIORITY": "Priorità", - "GOTOIF": "GoToIf", - "CONDITION": "Condizione", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Intervallo", - "VSWITCH": "Switch su Variabile", - "GOAL": "Goal", - "GOALNAME": "Nome Goal", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Comando", - "ARGS": "Argomenti", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Progetto", - "CUSTOM_APP": "Applicazione Custom", - "APPLICATION": "Applicazione", - "CALLBACK": "Richiama", - "LASTNAME": "Cognome", - "LIST_ID": "Lista", - "DELAY": "Ritardo", - "OPEN_NEW_WINDOW": "Apri in una nuova finestra", - "OPEN_PROJECT": "Apri Progetto", - "COPY": "Copia", - "OPEN": "Apri", - "NEW": "Nuovo", - "COPY_PROJECT": "Copia Progetto", - "NEW_VARIABLE": "Nuova Variabile", - "ADD_VARIABLE": "Aggiungi Variabile", + "SYSTEM": "System", + "TELEPHONES": "Telefoni", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Test ODBC", + "TEXT": "Testo", + "TILDEASR": "Tilde ASR", + "TIMEOUT": "Timeout", + "TO": "A", + "TRUNK_NAME": "Nome Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "ID Univoco", + "UNPAUSE": "Fine pausa", "UPDATE_DESCRIPTION": "Aggiorna Descrizione", - "EDIT_XML": "Modifica XML", - "IMPORT_XML": "Importa XML", - "IMPORT": "Importa", - "DROP_TO_UPLOAD": "DROP TO UPLOAD", - "DROP_TO_UPLOAD_MESSAGE": "Trascina i file qui per caricarli. Solo XML - Max 5MB", - "CLOSE": "Chiudi", - "NO_AVAILABLE_INFO": "Nessuna informazione disponibile", - "GO_TO_PROJECTS": "Vai ai progetti", "UPDATE_INFO": "Aggiorna Info", - "AGENTS": "Agenti", - "TELEPHONES": "Telefoni", + "URI": "URI", + "URL": "URL", + "USERNAME": "Username", "USERS": "Utenti", - "HELP": { - "MAILBOX": "Mailbox@context", - "DSN": "Esempio:DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "E' possibile aggiungere indirizzi multipli usando le virgole (es. john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "E' possibile aggiungere indirizzi multipli usando le virgole (es. john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "E' possibile aggiungere indirizzi multipli usando le virgole (es. john.doe@xcally.com, jane.miller@xcally.com)", - "MAX_TEXT_TTS": "Numero massimo di caratteri supportati è 250" - }, - "CHOOSE_ATTACHMENT": "Scegli Allegato", - "ATTACHMENT_NAME": "Nome Allegato", - "ATTACHMENT_TYPE": "Tipo Allegato", - "ATTACHMENT_PATH": "Percorso Allegato", - "SENDFAX": "Invia Fax", - "DELETE_SQUARERECORDING": "Elimina Registrazione Square", - "DOWNLOAD_SQUARERECORDING": "Scarica Registrazione Square", - "FILENAME": "Nome File", - "EDIT_SQUARERECORDING": "Modifica registrazione", - "DELETE": "Elimina", - "PAGE": "Pagina", - "ROWSPERPAGE": "Righe per pagina", - "OF": "di", - "CALLBACK_PRIORITY": "Priorità", - "GOOGLE_ASR_LANGUAGE": "Lingua", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Access Key ID", - "AWS_SECRET_ACCESS_KEY": "Secret Access Key", - "AWS_POLLY_REGION": "Regione", - "AWS_POLLY_VOICE": "Voce", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammatica", - "TILDEASR": "Tilde ASR", - "APPID": "App ID", - "APPSECRET": "App Secret", - "PAUSE_ID": "Metti in pausa il tipo", - "AWS_TEXT_TYPE": "Tipo di testo", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tipo di testo", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "linguaggio", - "RESTAPI": "Rest API", - "METHOD": "Metodo", - "HEADERS": "Headers", - "BODY": "Body", - "RAWHEADERS": "Headers", - "RAWBODY": "Body", - "COMPUTEDVARIABLES": "Script di computazione variabili", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "APIKEY": "ApiKey", - "LANGUAGECODE": "Codice Lingua", - "SSMLGENDER": "Genere", - "AUDIOENCODING": "Encoding Audio", - "MRCPSYNTH": "MRCPSynth", - "MRCPRECOG": "MRCPRecog" + "VARIABLE_ID": "Variabile", + "VARIABLE_VALUE": "Valore", + "VOICEMAIL": "Casella Vocale", + "VSWITCH": "Switch su Variabile" } } diff --git a/public/app/main/apps/callysquare/i18n/ja.json b/public/app/main/apps/callysquare/i18n/ja.json index 2fb31fd..0588fe4 100644 --- a/public/app/main/apps/callysquare/i18n/ja.json +++ b/public/app/main/apps/callysquare/i18n/ja.json @@ -1,30 +1,15 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "ERRORS": { - "DSN_REQUIRED": "必須フィールド", - "FIELD_REQUIRED": "必須フィールド", - "NAME_REQUIRED": "必須フィールド", - "PROJECT_REQUIRED": "必須フィールド", - "URL_REQUIRED": "必須フィールド" - }, - "HELP": { - "BCC": "コンマで区切って複数の住所を追加することができます(例:john.doe@xcally.com、jane.miller@xcally.com)", - "CC": "コンマで区切って複数の住所を追加することができます(例:john.doe@xcally.com、jane.miller@xcally.com)", - "DSN": "例:DRIVER = MySQL; SERVER = 127.0.0.1; UID = xcall; PWD =パスワード; DATABASE =モーション", - "MAILBOX": "メールボックス@コンテキスト", - "TO": "コンマで区切って複数の住所を追加することができます(例:john.doe@xcally.com、jane.miller@xcally.com)" - }, "ACCOUNT_ID": "アカウント", + "ADDUSER_PROJECTS": "プロジェクトにユーザーを追加する", "ADD_ODBC": "ODBCを追加", "ADD_PROJECT": "プロジェクトを追加", "ADD_VARIABLE": "変数を追加", "AGENTS": "エージェント", "AGI": "AGI", + "ALL_USERS": "全てのユーザー", "ANSWER": "応答", + "APIKEY": "ApiKey", "APPID": "App ID", "APPLICATION": "アプリケーション", "APPSECRET": "Appシークレット", @@ -33,14 +18,20 @@ "ATTACHMENT_PATH": "添付ファイルのパス", "ATTACHMENT_TYPE": "添付ファイルの種類", "AUDIO": "オーディオ", + "AUDIOENCODING": "オーディオエンコーディング", + "AWSLEX": "Amazon Lex", "AWSPOLLY": "AWS Polly", "AWS_ACCESS_KEY_ID": "アクセスキーID", + "AWS_BOT_NAME": "ボット名", + "AWS_LEX_REGION": "領域", "AWS_POLLY_REGION": "地域", "AWS_POLLY_VOICE": "音声", "AWS_SECRET_ACCESS_KEY": "AWSアクセスキー", + "AWS_TEXT_TYPE": "テキストタイプ", "BACK": "戻る", "BCC": "BCC", "BEEP": "ビープ", + "BODY": "体", "CALLBACK": "コールバック", "CALLBACK_PRIORITY": "優先度", "CALLYSQUARE": "Cally Square", @@ -48,11 +39,14 @@ "CHOOSE_ATTACHMENT": "添付ファイルを選択", "CLOSE": "閉じる", "COMMAND": "コマンド", + "COMPUTEDVARIABLES": "計算された変数のスクリプトパス", "CONDITION": "条件", "CONTEXT": "コンテキスト", "COPY": "コピー", "COPY_PROJECT": "プロジェクトをコピー", "CREATED_AT": "作成日時", + "CUSTOM_ACTION": "カスタムアクション", + "CUSTOM_ACTION_DATA": "カスタムアクションデータ", "CUSTOM_APP": "カスタムアプリケーション", "DATABASE": "データベース", "DELAY": "遅延[分]", @@ -62,6 +56,8 @@ "DELETE_SQUARERECORDING": "Square Recordingを削除", "DESCRIPTION": "説明", "DIAL": "ダイヤル", + "DIALOGFLOW": "ダイアログフロー", + "DIALOGFLOW_LANGUAGE": "言語", "DIGIT": "最大桁数", "DIGITS": "桁", "DOWNLOAD_SQUARERECORDING": "Square Recordingをダウンロード", @@ -74,6 +70,13 @@ "EDIT_SQUARERECORDING": "Square Recordingを編集", "EDIT_XML": "XMLを編集", "END": "End", + "ERRORS": { + "DSN_REQUIRED": "必須フィールド", + "FIELD_REQUIRED": "必須フィールド", + "NAME_REQUIRED": "必須フィールド", + "PROJECT_REQUIRED": "必須フィールド", + "URL_REQUIRED": "必須フィールド" + }, "ESCAPE_DIGITS": "エスケープ桁", "EXTEN": "Exten", "EXTENSION": "内線番号", @@ -89,6 +92,8 @@ "GOALNAME": "ゴール名", "GOOGLEASR": "GoogleASR", "GOOGLE_ASR_LANGUAGE": "言語", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "テキストタイプ", "GOOGLE_TTS_LANGUAGE": "言語", "GOSUB": "GoSub", "GOTOC": "GoTo", @@ -97,6 +102,15 @@ "GO_TO_PROJECTS": "プロジェクトに移動する", "GRAMMAR": "文法", "HANGUP": "電話を切る", + "HEADERS": "ヘッダー", + "HELP": { + "BCC": "コンマで区切って複数の住所を追加することができます(例:john.doe@xcally.com、jane.miller@xcally.com)", + "CC": "コンマで区切って複数の住所を追加することができます(例:john.doe@xcally.com、jane.miller@xcally.com)", + "DSN": "例:DRIVER = MySQL; SERVER = 127.0.0.1; UID = xcall; PWD =パスワード; DATABASE =モーション", + "MAILBOX": "メールボックス@コンテキスト", + "MAX_TEXT_TTS": "サポートされる最大文字数は250です", + "TO": "コンマで区切って複数の住所を追加することができます(例:john.doe@xcally.com、jane.miller@xcally.com)" + }, "HIDDENDIGITSNUM": "隠し桁数", "HIDDENDIGITSPOS": "隠し桁ポジション", "ID": "Id", @@ -110,6 +124,7 @@ "ISPEECH_TTS_LANGUAGE": "言語", "KEY": "キー", "LABEL": "ラベル", + "LANGUAGECODE": "言語コード", "LASTNAME": "姓", "LIST_ID": "リスト", "LOGIN": "ログイン", @@ -121,9 +136,16 @@ "MATH": "数学", "MAXDIGIT": "最大桁数", "MENU": "メニュー", + "METHOD": "方法", "MINDIGIT": "最小桁数", "MODEL": "モデル", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", "NAME": "名前", + "NDAACTIVITY_TYPE": "活動タイプ", + "NDAGENERATE_AUDIO": "オーディオファイルを生成する", + "NDASSISTANT_URL": "NDASSISTANT URL", + "NDAUTH_URL": "NDAUTH URL", "NEW": "新規", "NEW_ODBC": "新規ODBC接続", "NEW_PROJECT": "新規プロジェクト", @@ -143,8 +165,10 @@ "OPTS": "オプション", "OUTPUT": "出力", "PAGE": "ページ", + "PASSWORD": "パスワード", "PAUSE": "一時停止", "PAUSE_ID": "ポーズタイプ", + "PERMISSIONADD_PROJECTS": "プロジェクトにユーザーを追加する", "PHONE": "電話番号", "PLAYBACK": "再生", "POSITION": "ポジション", @@ -155,9 +179,12 @@ "QUERY": "クエリ", "QUEUE": "キュー", "QUEUE_ID": "キュー", + "RAWBODY": "体", + "RAWHEADERS": "ヘッダー", "RECORD": "記録", "RECORDINGFORMAT": "録音フォーマット", "RESPONSE": "応答タイムアウト", + "RESTAPI": "Rest API", "RETRY": "再試行", "ROWSPERPAGE": "ページあたりの行数", "SAVE": "保存", @@ -166,17 +193,22 @@ "SAYPHONETIC": "Say Phonetic", "SEARCH_FOR_ANYONE": "検索", "SELECTED": "選択された", + "SELECTED_USERS": "選択したユーザー", "SELECT_ALL": "すべて選択", "SELECT_NONE": "選択解除", "SENDFAX": "Faxを送信", "SENDMAIL": "Eメールを送信", "SENDSMS": "SMSを送信", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", "SET": "セット", "SIP_ID": "SIP", "SMS_ACCOUNT_ID": "アカウント", "SMS_TEXT": "テキスト", "SPEED": "速度", "SQUARERECORDINGS": "録音", + "SSMLGENDER": "性別", "START": "開始", "SUBJECT": "件名", "SUBPROJECT": "サブプロジェクト", @@ -196,42 +228,11 @@ "UPDATE_INFO": "アップデート情報", "URI": "URI", "URL": "URL", + "USERNAME": "ユーザー名", "USERS": "ユーザー", "VARIABLE_ID": "変数", "VARIABLE_VALUE": "値", "VOICEMAIL": "ボイスメール", - "VSWITCH": "変数スイッチ", - "AWS_TEXT_TYPE": "テキストタイプ", - "DIALOGFLOW": "ダイアログフロー", - "DIALOGFLOW_LANGUAGE": "言語", - "ADDUSER_PROJECTS": "プロジェクトにユーザーを追加する", - "ALL_USERS": "全てのユーザー", - "PERMISSIONADD_PROJECTS": "プロジェクトにユーザーを追加する", - "SELECTED_USERS": "選択したユーザー", - "AWS_BOT_NAME": "ボット名", - "AWS_LEX_REGION": "領域", - "NDASSISTANT_URL": "NDASSISTANT URL", - "NDAUTH_URL": "NDAUTH URL", - "PASSWORD": "パスワード", - "USERNAME": "ユーザー名", - "NDAGENERATE_AUDIO": "オーディオファイルを生成する", - "CUSTOM_ACTION": "カスタムアクション", - "CUSTOM_ACTION_DATA": "カスタムアクションデータ", - "NDAACTIVITY_TYPE": "活動タイプ", - "APIKEY": "ApiKey", - "AUDIOENCODING": "オーディオエンコーディング", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "言語コード", - "SSMLGENDER": "性別", - "BODY": "体", - "COMPUTEDVARIABLES": "計算された変数のスクリプトパス", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "テキストタイプ", - "HEADERS": "ヘッダー", - "METHOD": "方法", - "RAWBODY": "体", - "RAWHEADERS": "ヘッダー", - "RESTAPI": "Rest API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "VSWITCH": "変数スイッチ" } } diff --git a/public/app/main/apps/callysquare/i18n/ko.json b/public/app/main/apps/callysquare/i18n/ko.json index 99f6abe..61e1b25 100644 --- a/public/app/main/apps/callysquare/i18n/ko.json +++ b/public/app/main/apps/callysquare/i18n/ko.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "계정 ID", + "ADDUSER_PROJECTS": "프로젝트에 사용자 추가", + "ADD_ODBC": "ODBC 추가", + "ADD_PROJECT": "프로젝트 추가", + "ADD_VARIABLE": "변수 추가", + "AGENTS": "상담원", + "AGI": "AGI", + "ALL_USERS": "모든 사용자들", + "ANSWER": "응답", + "APIKEY": "아피 키", + "APPID": "App ID", + "APPLICATION": "앱", + "APPSECRET": "App 비밀", + "ARGS": "ARGS", + "ATTACHMENT_NAME": "첨부파일 이름", + "ATTACHMENT_PATH": "첨부파일 경로", + "ATTACHMENT_TYPE": "첨부파일 타입", + "AUDIO": "오디오", + "AUDIOENCODING": "오디오 인코딩", "AWSLEX": "Amazon Lex", - "NAME": "이름", - "ODBC": "ODBC", - "TEST_ODBC": "ODBC 테스트", - "SEARCH_FOR_ANYONE": "모두 검색", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "AWS 액세스 키 ID", + "AWS_BOT_NAME": "봇 이름", + "AWS_LEX_REGION": "부위", + "AWS_POLLY_REGION": "AWS Polly 영역", + "AWS_POLLY_VOICE": "AWS Polly 음성", + "AWS_SECRET_ACCESS_KEY": "AWS 비밀 접근 키", + "AWS_TEXT_TYPE": "텍스트 유형", "BACK": "뒤로", - "SELECTED": "선택 완료", - "SELECT_ALL": "전체 선택", - "SELECT_NONE": "선택 안함", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "비프음", + "BODY": "몸", + "CALLBACK": "콜백", + "CALLBACK_PRIORITY": "콜백 우선순위", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "첨부파일 선택", + "CLOSE": "닫기", + "COMMAND": "명령", + "COMPUTEDVARIABLES": "계산 변수 스크립트 경로", + "CONDITION": "조건", + "CONTEXT": "내용", + "COPY": "복사", + "COPY_PROJECT": "프로젝트 복사", + "CREATED_AT": "생성 일시", + "CUSTOM_ACTION": "사용자 지정 작업", + "CUSTOM_ACTION_DATA": "사용자 지정 작업 데이터", + "CUSTOM_APP": "사용자정의 앱", + "DATABASE": "데이터베이스", + "DELAY": "지연", + "DELETE": "삭제", + "DELETE_ODBC": "ODBC 삭제", + "DELETE_PROJECT": "프로젝트 삭제", + "DELETE_SQUARERECORDING": "square 녹취 삭제", "DESCRIPTION": "설명", - "ADD_ODBC": "ODBC 추가", + "DIAL": "다이얼", + "DIALOGFLOW": "대화 흐름", + "DIALOGFLOW_LANGUAGE": "언어", + "DIGIT": "번호", + "DIGITS": "번호", + "DOWNLOAD_SQUARERECORDING": "square 녹취 녹음", + "DROP_TO_UPLOAD": "업로드로 끌어다 놓기", + "DROP_TO_UPLOAD_MESSAGE": "메시지 업로드로 끌어다 놓기", + "DSN": "DSN", + "EDIT": "편집", + "EDIT_ODBC": "ODBC 편집", + "EDIT_PROJECT": "프로젝트 수정", + "EDIT_SQUARERECORDING": "square 녹취 편집", + "EDIT_XML": "XML 수정", + "END": "종료", "ERRORS": { - "NAME_REQUIRED": "이름은 필수입니다.", "DSN_REQUIRED": "DSN은 필수입니다.", - "PROJECT_REQUIRED": "프로젝트는 필수입니다.", "FIELD_REQUIRED": "필드는 필수입니다.", + "NAME_REQUIRED": "이름은 필수입니다.", + "PROJECT_REQUIRED": "프로젝트는 필수입니다.", "URL_REQUIRED": "필수 필드" }, - "EDIT_ODBC": "ODBC 편집", - "DELETE_ODBC": "ODBC 삭제", - "SAVE": "저장", - "PROJECTS": "프로젝트", - "ADD_PROJECT": "프로젝트 추가", - "EDIT_PROJECT": "프로젝트 수정", - "DELETE_PROJECT": "프로젝트 삭제", - "CALLYSQUARE": "Cally Square", - "ID": "ID", - "NEW_ODBC": "새로운 ODBC", - "SQUARERECORDINGS": "Square 녹취", - "PROJECT": "프로젝트", - "UNIQUEID": "고유 ID", - "PHONE": "전화", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "오디오", - "CREATED_AT": "생성 일시", - "NOTES": "노트", - "NEW_PROJECT": "신규 프로젝트", - "EDIT": "편집", - "LABEL": "라벨", - "ANSWER": "응답", - "TIMEOUT": "시간초과", - "SIP_ID": "SIP ID", - "OPTS": "OPTS", - "URL": "URL", - "TRUNK_NAME": "시외전화 이름", - "START": "시작", - "FINALLY": "최종", - "END": "종료", - "HANGUP": "끊음", - "DIAL": "다이얼", + "EXTENSION": "내선 전화", "EXT_DIAL": "EXT_DIAL", - "QUEUE": "상담그룹", - "QUEUE_ID": "상담그룹 ID", + "FILE": "파일", + "FILENAME": "파일 이름", "FILE_ID": "파일 ID", - "AGI": "AGI", - "MACRO": "매크로", + "FINALLY": "최종", + "FINDBY": "찾기", + "GETDIGITS": "번호 얻기", + "GETSECRETDIGITS": "비밀번호 얻기", + "GOAL": "목표", + "GOALNAME": "목표 이름", + "GOOGLEASR": "구글 ASR", + "GOOGLE_ASR_LANGUAGE": "구글 ASR 언거", + "GOOGLE_CLOUD_TTS": "구글 클라우드 TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "텍스트 타입", + "GOOGLE_TTS_LANGUAGE": "Google_TTS_Language", "GOSUB": "GoSub", - "POSITION": "직위", - "VOICEMAIL": "보이스메일", + "GOTOC": "GOTOC", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "프로젝트로 이동", + "GRAMMAR": "문법", + "HANGUP": "끊음", + "HEADERS": "헤더", + "HELP": { + "BCC": "BCC", + "CC": "CC", + "DSN": "DSN", + "MAILBOX": "사서함", + "MAX_TEXT_TTS": "지원되는 최대 문자 수는 250 자입니다.", + "TO": "TO" + }, + "HIDDENDIGITSNUM": "숨겨진 번호", + "HIDDENDIGITSPOS": "숨겨진 번호", + "ID": "ID", + "IMPORT": "가져오기", + "IMPORT_XML": "XML 가져오기", + "INTERVAL_ID": "인터벌", + "INTKEY": "INT 키", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISPEECHTTS", + "ISPEECH_ASR_LANGUAGE": "ISPEECH_ASR 언어", + "ISPEECH_TTS_LANGUAGE": "ISPEECH TTS 언어", + "KEY": "키", + "LABEL": "라벨", + "LANGUAGECODE": "언어 코드", + "LASTNAME": "성", + "LIST_ID": "목록 ID", + "LOGIN": "로그인", + "LOGOUT": "로그아웃", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "매크로", "MAILBOX": "메일박스", - "OPTIONS": "옵션", - "SET": "설정", - "VARIABLE_ID": "변수 ID", - "VARIABLE_VALUE": "변수 값", "MATH": "수학", + "MAXDIGIT": "최대 번호", + "MENU": "메뉴", + "METHOD": "방법", + "MINDIGIT": "최소 번호", + "MODEL": "모델", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "이름", + "NDAACTIVITY_TYPE": "활동 유형", + "NDAGENERATE_AUDIO": "오디오 파일 생성", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "신규", + "NEW_ODBC": "새로운 ODBC", + "NEW_PROJECT": "신규 프로젝트", + "NEW_VARIABLE": "신규 변수", + "NOOP": "NoOp", + "NOTES": "노트", + "NO_AVAILABLE_INFO": "사용가능한 정보 없음", + "NUMBER": "번호", + "ODBC": "ODBC", + "ODBC_ID": "ODBC ID", + "OF": "중", + "OPEN": "열기", + "OPEN_NEW_WINDOW": "새 창에서 열기", + "OPEN_PROJECT": "프로젝트 열기", "OPERATION": "작동", + "OPTIONS": "옵션", + "OPTS": "OPTS", + "OUTPUT": "출력", + "PAGE": "페이지", + "PASSWORD": "암호", + "PAUSE": "일시중지", + "PAUSE_ID": "일시중지 ID", + "PERMISSIONADD_PROJECTS": "프로젝트에 사용자 추가", + "PHONE": "전화", "PLAYBACK": "재생", + "POSITION": "직위", + "PRIORITY": "우선순위", + "PROJECT": "프로젝트", + "PROJECTS": "프로젝트", + "PROJECT_ID": "프로젝트 ID", + "QUERY": "쿼리", + "QUEUE": "상담그룹", + "QUEUE_ID": "상담그룹 ID", + "RAWBODY": "몸", + "RAWHEADERS": "헤더", + "RECORD": "녹취", + "RECORDINGFORMAT": "녹취 포맷", "RESPONSE": "응답", - "DIGIT": "번호", + "RESTAPI": "나머지 API", "RETRY": "재시도", - "DIGITS": "번호", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "메뉴", + "ROWSPERPAGE": "페이지별 행 수", + "SAVE": "저장", "SAYDIGITS": "Say Digits", "SAYNUMBER": "번호를 말하시오", - "NUMBER": "번호", "SAYPHONETIC": "소리를 내시오", - "TEXT": "텍스트", - "GOOGLE_TTS_LANGUAGE": "Google_TTS_Language", - "TTS": "TTS", - "ISPEECHTTS": "ISPEECHTTS", - "KEY": "키", - "ISPEECH_TTS_LANGUAGE": "ISPEECH TTS 언어", - "SPEED": "속도", - "INTKEY": "INT 키", - "GETDIGITS": "번호 얻기", - "MINDIGIT": "최소 번호", - "MAXDIGIT": "최대 번호", - "HIDDENDIGITSNUM": "숨겨진 번호", - "HIDDENDIGITSPOS": "숨겨진 번호", - "GETSECRETDIGITS": "비밀번호 얻기", - "RECORD": "녹취", - "FILE": "파일", - "RECORDINGFORMAT": "녹취 포맷", - "DATABASE": "데이터베이스", - "ODBC_ID": "ODBC ID", - "QUERY": "쿼리", - "MODEL": "모델", - "ISPEECH_ASR_LANGUAGE": "ISPEECH_ASR 언어", - "BEEP": "비프음", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "모두 검색", + "SELECTED": "선택 완료", + "SELECTED_USERS": "선택된 사용자", + "SELECT_ALL": "전체 선택", + "SELECT_NONE": "선택 안함", + "SENDFAX": "팩스 보내기", + "SENDMAIL": "이메일 발송", "SENDSMS": "SMS 전송", - "ACCOUNT_ID": "계정 ID", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "설정", + "SIP_ID": "SIP ID", + "SMS_ACCOUNT_ID": "SMS 계정 ID", "SMS_TEXT": "SMS 텍스트", - "SENDMAIL": "이메일 발송", - "TEMPLATE_ID": "템플릿 ID", - "CC": "CC", - "BCC": "BCC", + "SPEED": "속도", + "SQUARERECORDINGS": "Square 녹취", + "SSMLGENDER": "성별", + "START": "시작", "SUBJECT": "제목", - "GOTOC": "GOTOC", - "CONTEXT": "내용", - "EXTENSION": "내선 전화", - "PRIORITY": "우선순위", - "GOTOIF": "GoToIf", - "CONDITION": "조건", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "인터벌", - "VSWITCH": "변수 전환", - "GOAL": "목표", - "GOALNAME": "목표 이름", - "NOOP": "NoOp", - "OUTPUT": "출력", - "SYSTEM": "시스템", - "COMMAND": "명령", - "ARGS": "ARGS", "SUBPROJECT": "서브 프로젝트", - "PROJECT_ID": "프로젝트 ID", - "CUSTOM_APP": "사용자정의 앱", - "APPLICATION": "앱", - "CALLBACK": "콜백", - "LASTNAME": "성", - "LIST_ID": "목록 ID", - "DELAY": "지연", - "OPEN_NEW_WINDOW": "새 창에서 열기", - "OPEN_PROJECT": "프로젝트 열기", - "COPY": "복사", - "OPEN": "열기", - "NEW": "신규", - "COPY_PROJECT": "프로젝트 복사", - "NEW_VARIABLE": "신규 변수", - "ADD_VARIABLE": "변수 추가", - "UPDATE_DESCRIPTION": "업데이트 설명", - "EDIT_XML": "XML 수정", - "IMPORT_XML": "XML 가져오기", - "IMPORT": "가져오기", - "DROP_TO_UPLOAD": "업로드로 끌어다 놓기", - "DROP_TO_UPLOAD_MESSAGE": "메시지 업로드로 끌어다 놓기", - "CLOSE": "닫기", - "NO_AVAILABLE_INFO": "사용가능한 정보 없음", - "GO_TO_PROJECTS": "프로젝트로 이동", - "UPDATE_INFO": "정보 업데이트", - "AGENTS": "상담원", + "SYSTEM": "시스템", "TELEPHONES": "전화기", - "USERS": "사용자", - "HELP": { - "MAILBOX": "사서함", - "DSN": "DSN", - "TO": "TO", - "CC": "CC", - "BCC": "BCC" - }, - "CHOOSE_ATTACHMENT": "첨부파일 선택", - "ATTACHMENT_NAME": "첨부파일 이름", - "ATTACHMENT_TYPE": "첨부파일 타입", - "ATTACHMENT_PATH": "첨부파일 경로", - "SENDFAX": "팩스 보내기", - "DELETE_SQUARERECORDING": "square 녹취 삭제", - "DOWNLOAD_SQUARERECORDING": "square 녹취 녹음", - "FILENAME": "파일 이름", - "EDIT_SQUARERECORDING": "square 녹취 편집", - "DELETE": "삭제", - "PAGE": "페이지", - "ROWSPERPAGE": "페이지별 행 수", - "OF": "중", - "CALLBACK_PRIORITY": "콜백 우선순위", - "GOOGLE_ASR_LANGUAGE": "구글 ASR 언거", - "GOOGLEASR": "구글 ASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "AWS 액세스 키 ID", - "AWS_SECRET_ACCESS_KEY": "AWS 비밀 접근 키", - "AWS_POLLY_REGION": "AWS Polly 영역", - "AWS_POLLY_VOICE": "AWS Polly 음성", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "문법", + "TEMPLATE_ID": "템플릿 ID", + "TEST_ODBC": "ODBC 테스트", + "TEXT": "텍스트", "TILDEASR": "물결표 ASR", - "APPID": "App ID", - "APPSECRET": "App 비밀", - "SMS_ACCOUNT_ID": "SMS 계정 ID", - "FINDBY": "찾기", - "LOGIN": "로그인", - "LOGOUT": "로그아웃", - "PAUSE": "일시중지", - "PAUSE_ID": "일시중지 ID", + "TIMEOUT": "시간초과", + "TO": "To", + "TRUNK_NAME": "시외전화 이름", + "TTS": "TTS", + "UNIQUEID": "고유 ID", "UNPAUSE": "일시중지 해제", + "UPDATE_DESCRIPTION": "업데이트 설명", + "UPDATE_INFO": "정보 업데이트", "URI": "URI", - "AWS_TEXT_TYPE": "텍스트 유형", - "DIALOGFLOW": "대화 흐름", - "DIALOGFLOW_LANGUAGE": "언어", - "ADDUSER_PROJECTS": "프로젝트에 사용자 추가", - "ALL_USERS": "모든 사용자들", - "PERMISSIONADD_PROJECTS": "프로젝트에 사용자 추가", - "SELECTED_USERS": "선택된 사용자", - "AWS_BOT_NAME": "봇 이름", - "AWS_LEX_REGION": "부위", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "암호", + "URL": "URL", "USERNAME": "사용자 이름", - "NDAGENERATE_AUDIO": "오디오 파일 생성", - "CUSTOM_ACTION": "사용자 지정 작업", - "CUSTOM_ACTION_DATA": "사용자 지정 작업 데이터", - "NDAACTIVITY_TYPE": "활동 유형", - "APIKEY": "아피 키", - "AUDIOENCODING": "오디오 인코딩", - "GOOGLE_CLOUD_TTS": "구글 클라우드 TTS", - "LANGUAGECODE": "언어 코드", - "SSMLGENDER": "성별", - "BODY": "몸", - "COMPUTEDVARIABLES": "계산 변수 스크립트 경로", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "텍스트 타입", - "HEADERS": "헤더", - "METHOD": "방법", - "RAWBODY": "몸", - "RAWHEADERS": "헤더", - "RESTAPI": "나머지 API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "사용자", + "VARIABLE_ID": "변수 ID", + "VARIABLE_VALUE": "변수 값", + "VOICEMAIL": "보이스메일", + "VSWITCH": "변수 전환" } } diff --git a/public/app/main/apps/callysquare/i18n/lt.json b/public/app/main/apps/callysquare/i18n/lt.json index 36d3f2e..c761d4f 100644 --- a/public/app/main/apps/callysquare/i18n/lt.json +++ b/public/app/main/apps/callysquare/i18n/lt.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "CUSTOM_ACTION": "Pasirinktinis veiksmas", - "CUSTOM_ACTION_DATA": "Pasirinktinio veiksmo duomenys", - "NDAACTIVITY_TYPE": "Veiksmo tipas", - "NDAGENERATE_AUDIO": "Generuoti garso failą", - "SESTEKASR": "Sestek ASR", - "NDAUTH_URL": "NDAUTH Url", - "NDASSISTANT_URL": "NDASSISTANT Url", - "USERNAME": "Vartotojo vardas", - "PASSWORD": "Slaptažodis", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "AWS_LEX_REGION": "Regionas", - "AWS_BOT_NAME": "Bot pavadinimas", + "ACCOUNT_ID": "Paskyra", "ADDUSER_PROJECTS": "Pridėti vartotojus prie projekto", - "PERMISSIONADD_PROJECTS": "Pridėti vartotojus prie projekto", + "ADD_ODBC": "Pridėti ODBC", + "ADD_PROJECT": "Pridėti projektą", + "ADD_VARIABLE": "Pridėti kintamąjį", + "AGENTS": "Agentai", + "AGI": "AGI", "ALL_USERS": "Visi vartotojai", - "SELECTED_USERS": "Pasirinkti vartotojai", - "DIALOGFLOW": "Dialogo srautas", - "DIALOGFLOW_LANGUAGE": "Kalba", + "ANSWER": "Atsiliepti", + "APIKEY": "ApiKey", + "APPID": "Programos ID", + "APPLICATION": "Programa", + "APPSECRET": "Programos slėpinys", + "ARGS": "Argumentai", + "ATTACHMENT_NAME": "Priedo pavadinimas", + "ATTACHMENT_PATH": "Priedo maršrutas", + "ATTACHMENT_TYPE": "Priedo tipas", + "AUDIO": "Garsas", + "AUDIOENCODING": "Garso kodavimas", + "AWSLEX": "Amazon Lex", + "AWSPOLLY": "AWS apklausa", + "AWS_ACCESS_KEY_ID": "Prieigos rakto ID", + "AWS_BOT_NAME": "Bot pavadinimas", + "AWS_LEX_REGION": "Regionas", + "AWS_POLLY_REGION": "Regionas", + "AWS_POLLY_VOICE": "Balsas", + "AWS_SECRET_ACCESS_KEY": "Slaptas prieigos raktas", "AWS_TEXT_TYPE": "Teksto tipas", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksto tipas", - "PAUSE_ID": "Pauzės tipas", - "FINDBY": "Rasti pagal", - "LOGIN": "Prisijungti", - "PAUSE": "Pauzė", - "UNPAUSE": "Baigti pauzę", - "LOGOUT": "Atsijungti", - "URI": "URI", - "SMS_ACCOUNT_ID": "Paskyra", - "NAME": "Vardas", - "ODBC": "ODBC", - "TEST_ODBC": "Testuoti ODBC", - "SEARCH_FOR_ANYONE": "Paieška", "BACK": "Atgal", - "SELECTED": "Pasirinkta", - "SELECT_ALL": "Pasirinkti viską", - "SELECT_NONE": "Nieko nepasirinkti", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Pyptelėjimas", + "BODY": "Turinys", + "CALLBACK": "Perskambinti", + "CALLBACK_PRIORITY": "Prioritetas", + "CALLYSQUARE": "IVR programų valgymo įrankis", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Pasirinkite priedą", + "CLOSE": "Uždaryti", + "COMMAND": "Komanda", + "COMPUTEDVARIABLES": "Apdorotų kintamųjų teksto maršrutas", + "CONDITION": "Būsena", + "CONTEXT": "Kontekstas", + "COPY": "Kopijuoti", + "COPY_PROJECT": "Kopijuoti projektą", + "CREATED_AT": "Sukurtas", + "CUSTOM_ACTION": "Pasirinktinis veiksmas", + "CUSTOM_ACTION_DATA": "Pasirinktinio veiksmo duomenys", + "CUSTOM_APP": "Pritaikyta programa", + "DATABASE": "Duomenų bazė", + "DELAY": "Uždelsimas [min]", + "DELETE": "Ištrinti", + "DELETE_ODBC": "Ištrinti ODBC", + "DELETE_PROJECT": "Ištrinti projektą", + "DELETE_SQUARERECORDING": "Ištrinti įrašymo laukelį", "DESCRIPTION": "Aprašymas", - "ADD_ODBC": "Pridėti ODBC", + "DIAL": "Rinkimas", + "DIALOGFLOW": "Dialogo srautas", + "DIALOGFLOW_LANGUAGE": "Kalba", + "DIGIT": "Daugiausia skaitmenų", + "DIGITS": "Skaitmenys", + "DOWNLOAD_SQUARERECORDING": "Atsisiųsti įrašymo laukelį", + "DROP_TO_UPLOAD": "Padėti įkėlimui", + "DROP_TO_UPLOAD_MESSAGE": "Taip pat galite padėti failus čia, kad įkeltumėte. Tik XML - maks. 5MB", + "DSN": "DSN", + "EDIT": "Redaguoti", + "EDIT_ODBC": "Redaguoti ODBC", + "EDIT_PROJECT": "Redaguoti projektą", + "EDIT_SQUARERECORDING": "Redaguoti įrašymo laukelį", + "EDIT_XML": "Redaguoti XML", + "END": "Pabaiga", "ERRORS": { - "URL_REQUIRED": "Privalomas laukas", - "NAME_REQUIRED": "Privalomas laukas", "DSN_REQUIRED": "Privalomas laukas", + "FIELD_REQUIRED": "Privalomas laukas", + "NAME_REQUIRED": "Privalomas laukas", "PROJECT_REQUIRED": "Privalomas laukas", - "FIELD_REQUIRED": "Privalomas laukas" + "URL_REQUIRED": "Privalomas laukas" }, - "EDIT_ODBC": "Redaguoti ODBC", - "DELETE_ODBC": "Ištrinti ODBC", - "SAVE": "Saugoti", - "PROJECTS": "Projektai", - "ADD_PROJECT": "Pridėti projektą", - "EDIT_PROJECT": "Redaguoti projektą", - "DELETE_PROJECT": "Ištrinti projektą", - "CALLYSQUARE": "IVR programų valgymo įrankis", - "ID": "Id", - "NEW_ODBC": "Naujas ODBC sujungimas", - "SQUARERECORDINGS": "Įrašai", - "PROJECT": "Projektas", - "UNIQUEID": "Unikalus ID", - "PHONE": "Telefonas", + "ESCAPE_DIGITS": "Išvengti skaitmenys", "EXTEN": "Prailginti", - "AUDIO": "Garsas", - "CREATED_AT": "Sukurtas", - "NOTES": "Pastabos", - "NEW_PROJECT": "Naujas projektas", - "EDIT": "Redaguoti", - "LABEL": "Žymeklis", - "ANSWER": "Atsiliepti", - "TIMEOUT": "Laikas baigėsi", - "SIP_ID": "SIP", - "OPTS": "Parinktys", - "URL": "URL", - "TRUNK_NAME": "Ryšio kanalas", - "START": "Pradžia", - "FINALLY": "Paskutinis", - "END": "Pabaiga", - "HANGUP": "Atidėti", - "DIAL": "Rinkimas", + "EXTENSION": "Pratęsimas", "EXT_DIAL": "Išorinis rinkiklis", - "QUEUE": "Eilė", - "QUEUE_ID": "Eilė", + "FILE": "Failo pavadinimas", + "FILENAME": "Failo pavadinimas", "FILE_ID": "Garsas", - "AGI": "AGI", - "MACRO": "Makro", + "FINALLY": "Paskutinis", + "FINDBY": "Rasti pagal", + "GETDIGITS": "Gauti skaitmenis", + "GETSECRETDIGITS": "Gauti slaptus skaitmenis", + "GOAL": "Tikslas", + "GOALNAME": "Tikslo pavadinimas", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Kalba", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksto tipas", + "GOOGLE_TTS_LANGUAGE": "Kalba", "GOSUB": "GoSub", - "POSITION": "Padėtis", - "VOICEMAIL": "Balso paštas", + "GOTOC": "Eiti į", + "GOTOIF": "Eiti į jei", + "GOTOIFTIME": "Eiti į jei laikas", + "GO_TO_PROJECTS": "Eiti į projektus", + "GRAMMAR": "Gramatika", + "HANGUP": "Atidėti", + "HEADERS": "Antraštės", + "HELP": { + "BCC": "Galite pridėti kelis adresus, atskirtus kableliais (e.g. john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Galite pridėti kelis adresus, atskirtus kableliais (e.g. john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Pavyzdys: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "pašto dėžutė@kontekstas", + "MAX_TEXT_TTS": "Didžiausias palaikomų simbolių skaičius yra 250", + "TO": "Galite pridėti kelis adresus, atskirtus kableliais (e.g. john.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Paslėptų skaitmenų skaičius", + "HIDDENDIGITSPOS": "Paslėptų skaitmenų padėtis", + "ID": "Id", + "IMPORT": "Importuoti", + "IMPORT_XML": "Importuoti XML", + "INTERVAL_ID": "Intervalas", + "INTKEY": "Nutraukti užrakinimą", + "ISPEECHASR": "iSpeech ASR", + "ISPEECHTTS": "iSpeech tekstas-kalba", + "ISPEECH_ASR_LANGUAGE": "Kalba", + "ISPEECH_TTS_LANGUAGE": "Kalba", + "KEY": "Užrakinti", + "LABEL": "Žymeklis", + "LANGUAGECODE": "Kalbos kodas", + "LASTNAME": "Pavardė", + "LIST_ID": "Sąrašas", + "LOGIN": "Prisijungti", + "LOGOUT": "Atsijungti", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox tekstas-kalba", + "MACRO": "Makro", "MAILBOX": "Pašto dėžutė", - "OPTIONS": "Parinktys", - "SET": "Nustatyti", - "VARIABLE_ID": "Kintamasis", - "VARIABLE_VALUE": "Reikšmė", "MATH": "Matematika", + "MAXDIGIT": "Didžiausi skaitmenys", + "MENU": "Meniu", + "METHOD": "Metodas", + "MINDIGIT": "Mažiausi skaitmenys", + "MODEL": "Modelis", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Vardas", + "NDAACTIVITY_TYPE": "Veiksmo tipas", + "NDAGENERATE_AUDIO": "Generuoti garso failą", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "Naujas", + "NEW_ODBC": "Naujas ODBC sujungimas", + "NEW_PROJECT": "Naujas projektas", + "NEW_VARIABLE": "Naujas kintamasis", + "NOOP": "NoOp", + "NOTES": "Pastabos", + "NO_AVAILABLE_INFO": "Nėra informacijos", + "NUMBER": "Skaičius", + "ODBC": "ODBC", + "ODBC_ID": "ODBC sujungimas", + "OF": "iš", + "OPEN": "Atidaryti", + "OPEN_NEW_WINDOW": "Atidaryti naujame lange", + "OPEN_PROJECT": "Atidaryti projektą", "OPERATION": "Operation", + "OPTIONS": "Parinktys", + "OPTS": "Parinktys", + "OUTPUT": "Išėjimas", + "PAGE": "Puslapis", + "PASSWORD": "Slaptažodis", + "PAUSE": "Pauzė", + "PAUSE_ID": "Pauzės tipas", + "PERMISSIONADD_PROJECTS": "Pridėti vartotojus prie projekto", + "PHONE": "Telefonas", "PLAYBACK": "Atkūrimas", + "POSITION": "Padėtis", + "PRIORITY": "Prioritetas", + "PROJECT": "Projektas", + "PROJECTS": "Projektai", + "PROJECT_ID": "Projektas", + "QUERY": "Užklausa", + "QUEUE": "Eilė", + "QUEUE_ID": "Eilė", + "RAWBODY": "Turinys", + "RAWHEADERS": "Antraštės", + "RECORD": "Įrašas", + "RECORDINGFORMAT": "Įrašymo formatas", "RESPONSE": "Atsakymo laikas", - "DIGIT": "Daugiausia skaitmenų", + "RESTAPI": "Palikti API", "RETRY": "Pakartojimai", - "DIGITS": "Skaitmenys", - "ESCAPE_DIGITS": "Išvengti skaitmenys", - "MENU": "Meniu", + "ROWSPERPAGE": "Eilutės puslapyje", + "SAVE": "Saugoti", "SAYDIGITS": "Pasakyti skaitmenis", "SAYNUMBER": "Pasakyti skaičių", - "NUMBER": "Skaičius", "SAYPHONETIC": "Pasakyti fonetiką", - "TEXT": "Tekstas", - "GOOGLE_TTS_LANGUAGE": "Kalba", - "TTS": "Google tekstas-kalba", - "ISPEECHTTS": "iSpeech tekstas-kalba", - "KEY": "Užrakinti", - "ISPEECH_TTS_LANGUAGE": "Kalba", - "SPEED": "Greitis", - "INTKEY": "Nutraukti užrakinimą", - "GETDIGITS": "Gauti skaitmenis", - "MINDIGIT": "Mažiausi skaitmenys", - "MAXDIGIT": "Didžiausi skaitmenys", - "HIDDENDIGITSNUM": "Paslėptų skaitmenų skaičius", - "HIDDENDIGITSPOS": "Paslėptų skaitmenų padėtis", - "GETSECRETDIGITS": "Gauti slaptus skaitmenis", - "RECORD": "Įrašas", - "FILE": "Failo pavadinimas", - "RECORDINGFORMAT": "Įrašymo formatas", - "DATABASE": "Duomenų bazė", - "ODBC_ID": "ODBC sujungimas", - "QUERY": "Užklausa", - "MODEL": "Modelis", - "ISPEECH_ASR_LANGUAGE": "Kalba", - "BEEP": "Pyptelėjimas", - "ISPEECHASR": "iSpeech ASR", + "SEARCH_FOR_ANYONE": "Paieška", + "SELECTED": "Pasirinkta", + "SELECTED_USERS": "Pasirinkti vartotojai", + "SELECT_ALL": "Pasirinkti viską", + "SELECT_NONE": "Nieko nepasirinkti", + "SENDFAX": "Siųsti faksą", + "SENDMAIL": "Siųsti laišką", "SENDSMS": "Siųsti SMS", - "ACCOUNT_ID": "Paskyra", - "TO": "Į", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Nustatyti", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Paskyra", "SMS_TEXT": "Tekstas", - "SENDMAIL": "Siųsti laišką", - "TEMPLATE_ID": "Šablonas", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Greitis", + "SQUARERECORDINGS": "Įrašai", + "SSMLGENDER": "Lytis", + "START": "Pradžia", "SUBJECT": "Tema", - "GOTOC": "Eiti į", - "CONTEXT": "Kontekstas", - "EXTENSION": "Pratęsimas", - "PRIORITY": "Prioritetas", - "GOTOIF": "Eiti į jei", - "CONDITION": "Būsena", - "GOTOIFTIME": "Eiti į jei laikas", - "INTERVAL_ID": "Intervalas", - "VSWITCH": "Kintamas perjungimas", - "GOAL": "Tikslas", - "GOALNAME": "Tikslo pavadinimas", - "NOOP": "NoOp", - "OUTPUT": "Išėjimas", - "SYSTEM": "Sistema", - "COMMAND": "Komanda", - "ARGS": "Argumentai", "SUBPROJECT": "Sub projektas", - "PROJECT_ID": "Projektas", - "CUSTOM_APP": "Pritaikyta programa", - "APPLICATION": "Programa", - "CALLBACK": "Perskambinti", - "LASTNAME": "Pavardė", - "LIST_ID": "Sąrašas", - "DELAY": "Uždelsimas [min]", - "OPEN_NEW_WINDOW": "Atidaryti naujame lange", - "OPEN_PROJECT": "Atidaryti projektą", - "COPY": "Kopijuoti", - "OPEN": "Atidaryti", - "NEW": "Naujas", - "COPY_PROJECT": "Kopijuoti projektą", - "NEW_VARIABLE": "Naujas kintamasis", - "ADD_VARIABLE": "Pridėti kintamąjį", + "SYSTEM": "Sistema", + "TELEPHONES": "Telefonai", + "TEMPLATE_ID": "Šablonas", + "TEST_ODBC": "Testuoti ODBC", + "TEXT": "Tekstas", + "TILDEASR": "Tilde ASR", + "TIMEOUT": "Laikas baigėsi", + "TO": "Į", + "TRUNK_NAME": "Ryšio kanalas", + "TTS": "Google tekstas-kalba", + "UNIQUEID": "Unikalus ID", + "UNPAUSE": "Baigti pauzę", "UPDATE_DESCRIPTION": "Atnaujinti aprašymą", - "EDIT_XML": "Redaguoti XML", - "IMPORT_XML": "Importuoti XML", - "IMPORT": "Importuoti", - "DROP_TO_UPLOAD": "Padėti įkėlimui", - "DROP_TO_UPLOAD_MESSAGE": "Taip pat galite padėti failus čia, kad įkeltumėte. Tik XML - maks. 5MB", - "CLOSE": "Uždaryti", - "NO_AVAILABLE_INFO": "Nėra informacijos", - "GO_TO_PROJECTS": "Eiti į projektus", "UPDATE_INFO": "Atnaujinti informaciją", - "AGENTS": "Agentai", - "TELEPHONES": "Telefonai", + "URI": "URI", + "URL": "URL", + "USERNAME": "Vartotojo vardas", "USERS": "Vartotojai", - "HELP": { - "MAILBOX": "pašto dėžutė@kontekstas", - "DSN": "Pavyzdys: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "Galite pridėti kelis adresus, atskirtus kableliais (e.g. john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Galite pridėti kelis adresus, atskirtus kableliais (e.g. john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "Galite pridėti kelis adresus, atskirtus kableliais (e.g. john.doe@xcally.com, jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Pasirinkite priedą", - "ATTACHMENT_NAME": "Priedo pavadinimas", - "ATTACHMENT_TYPE": "Priedo tipas", - "ATTACHMENT_PATH": "Priedo maršrutas", - "SENDFAX": "Siųsti faksą", - "DELETE_SQUARERECORDING": "Ištrinti įrašymo laukelį", - "DOWNLOAD_SQUARERECORDING": "Atsisiųsti įrašymo laukelį", - "FILENAME": "Failo pavadinimas", - "EDIT_SQUARERECORDING": "Redaguoti įrašymo laukelį", - "DELETE": "Ištrinti", - "PAGE": "Puslapis", - "ROWSPERPAGE": "Eilutės puslapyje", - "OF": "iš", - "CALLBACK_PRIORITY": "Prioritetas", - "GOOGLE_ASR_LANGUAGE": "Kalba", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS apklausa", - "AWS_ACCESS_KEY_ID": "Prieigos rakto ID", - "AWS_SECRET_ACCESS_KEY": "Slaptas prieigos raktas", - "AWS_POLLY_REGION": "Regionas", - "AWS_POLLY_VOICE": "Balsas", - "LUMENVOXTTS": "Lumenvox tekstas-kalba", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Gramatika", - "TILDEASR": "Tilde ASR", - "APPID": "Programos ID", - "APPSECRET": "Programos slėpinys", - "RESTAPI": "Palikti API", - "METHOD": "Metodas", - "HEADERS": "Antraštės", - "BODY": "Turinys", - "RAWHEADERS": "Antraštės", - "RAWBODY": "Turinys", - "COMPUTEDVARIABLES": "Apdorotų kintamųjų teksto maršrutas", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "APIKEY": "ApiKey", - "LANGUAGECODE": "Kalbos kodas", - "SSMLGENDER": "Lytis", - "AUDIOENCODING": "Garso kodavimas", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "VARIABLE_ID": "Kintamasis", + "VARIABLE_VALUE": "Reikšmė", + "VOICEMAIL": "Balso paštas", + "VSWITCH": "Kintamas perjungimas" } } diff --git a/public/app/main/apps/callysquare/i18n/lv.json b/public/app/main/apps/callysquare/i18n/lv.json index f7f144a..d6948c6 100644 --- a/public/app/main/apps/callysquare/i18n/lv.json +++ b/public/app/main/apps/callysquare/i18n/lv.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Konts", + "ADDUSER_PROJECTS": "Pievienot lietotājus projektam", + "ADD_ODBC": "Pievienot ODBC", + "ADD_PROJECT": "Pievienot projektu", + "ADD_VARIABLE": "Pievienot mainīgo", + "AGENTS": "Aģenti", + "AGI": "AGI", + "ALL_USERS": "Visi lietotāji", + "ANSWER": "Atbilde", + "APIKEY": "ApiKey", + "APPID": "Aplikācijas ID", + "APPLICATION": "Lietojumprogramma", + "APPSECRET": "Aplikācijas parole", + "ARGS": "Argumenti", + "ATTACHMENT_NAME": "Pielikuma nosaukums", + "ATTACHMENT_PATH": "Pielikuma ceļš", + "ATTACHMENT_TYPE": "Pielikuma veids", + "AUDIO": "Audio", + "AUDIOENCODING": "Audio kodēšana", "AWSLEX": "Amazon Lex", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Piekļuves atslēgas ID", + "AWS_BOT_NAME": "Robotprogrammatūras nosaukums", + "AWS_LEX_REGION": "Reģions", + "AWS_POLLY_REGION": "Reģions", + "AWS_POLLY_VOICE": "Balss", + "AWS_SECRET_ACCESS_KEY": "Slēptā piekļuves atslēga", + "AWS_TEXT_TYPE": "Teksta veids", + "BACK": "Atpakaļ", + "BCC": "BCC (diskrētā kopija)", + "BEEP": "Pīkstiens", + "BODY": "Korpuss", + "CALLBACK": "Atzvanīšana", + "CALLBACK_PRIORITY": "Prioritāte", + "CALLYSQUARE": "Cally Square", + "CC": "CC (kopija)", + "CHOOSE_ATTACHMENT": "Izvēlēties pielikumu", + "CLOSE": "Aizvērt", + "COMMAND": "Komanda", + "COMPUTEDVARIABLES": "Datorizēto mainīgo skripta ceļš", + "CONDITION": "Nosacījums", + "CONTEXT": "Konteksts", + "COPY": "Kopēt", + "COPY_PROJECT": "Kopēt projektu", + "CREATED_AT": "Izveidots", + "CUSTOM_ACTION": "Pielāgota darbība", + "CUSTOM_ACTION_DATA": "Pielāgotas darbības dati", + "CUSTOM_APP": "Pielāgota lietojumprogramma", + "DATABASE": "Datu bāze", + "DELAY": "Kavējums (min.)", + "DELETE": "Dzēst", + "DELETE_ODBC": "Dzēst ODBC", + "DELETE_PROJECT": "Dzēst projektu", + "DELETE_SQUARERECORDING": "Dzēst Square ierakstu", + "DESCRIPTION": "Apraksts", + "DIAL": "Zvans", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Valoda", + "DIGIT": "Maks. ciparu skaits", + "DIGITS": "Cipari", + "DOWNLOAD_SQUARERECORDING": "Lejupielādēt Square ierakstu", + "DROP_TO_UPLOAD": "PĀRVELCIET ŠEIT, LAI AUGŠUPIELĀDĒTU", + "DROP_TO_UPLOAD_MESSAGE": "Varat arī pārvilkt datnes šeit, lai tās augšupielādētu. Tikai XML – maks. 5 MB", + "DSN": "DSN", + "EDIT": "Rediģēt", + "EDIT_ODBC": "Rediģēt ODBC", + "EDIT_PROJECT": "Rediģēt projektu", + "EDIT_SQUARERECORDING": "Rediģēt Square ierakstu", + "EDIT_XML": "Rediģēt XML", + "END": "Beigt", "ERRORS": { - "NAME_REQUIRED": "Obligāts lauks", "DSN_REQUIRED": "Obligāts lauks", - "PROJECT_REQUIRED": "Obligāts lauks", "FIELD_REQUIRED": "Obligāts lauks", + "NAME_REQUIRED": "Obligāts lauks", + "PROJECT_REQUIRED": "Obligāts lauks", "URL_REQUIRED": "Obligāts lauks" }, + "ESCAPE_DIGITS": "Izbeigšanas cipari", + "EXTEN": "Exten", + "EXTENSION": "Paplašinājums", + "EXT_DIAL": "Ārējais zvans", + "FILE": "Datnes nosaukums", + "FILENAME": "Datnes nosaukums", + "FILE_ID": "Audio", + "FINALLY": "Visbeidzot", + "FINDBY": "Atrast pēc", + "GETDIGITS": "Iegūt ciparus", + "GETSECRETDIGITS": "Iegūt slepenos ciparus", + "GOAL": "Mērķis", + "GOALNAME": "Mērķa nosaukums", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Valoda", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksta tips", + "GOOGLE_TTS_LANGUAGE": "Valoda", + "GOSUB": "GoSub", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Iet uz projektiem", + "GRAMMAR": "Gramatika", + "HANGUP": "Nolikt klausuli", + "HEADERS": "Galvenes", "HELP": { - "MAILBOX": "mailbox@context", - "DSN": "Piemērs: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "Varat pievienot vairākas adreses, kas ir atdalītas ar komatiem (piemēram, john.doe@xcally.com, jane.miller@xcally.com)", + "BCC": "Varat pievienot vairākas adreses, kas ir atdalītas ar komatiem (piemēram, john.doe@xcally.com, jane.miller@xcally.com)", "CC": "Varat pievienot vairākas adreses, kas ir atdalītas ar komatiem (piemēram, john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "Varat pievienot vairākas adreses, kas ir atdalītas ar komatiem (piemēram, john.doe@xcally.com, jane.miller@xcally.com)" + "DSN": "Piemērs: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "mailbox@context", + "MAX_TEXT_TTS": "Maksimālais atbalstīto rakstzīmju skaits ir 250", + "TO": "Varat pievienot vairākas adreses, kas ir atdalītas ar komatiem (piemēram, john.doe@xcally.com, jane.miller@xcally.com)" }, - "SMS_ACCOUNT_ID": "Konts", - "NAME": "Nosaukums", - "ODBC": "ODBC", - "TEST_ODBC": "Pārbaudīt ODBC", - "SEARCH_FOR_ANYONE": "Meklēt", - "BACK": "Atpakaļ", - "SELECTED": "Atlasīts", - "SELECT_ALL": "Atlasīt visus", - "SELECT_NONE": "Neizvēlēties nevienu", - "DSN": "DSN", - "DESCRIPTION": "Apraksts", - "ADD_ODBC": "Pievienot ODBC", - "EDIT_ODBC": "Rediģēt ODBC", - "DELETE_ODBC": "Dzēst ODBC", - "SAVE": "Saglabāt", - "PROJECTS": "Projekti", - "ADD_PROJECT": "Pievienot projektu", - "EDIT_PROJECT": "Rediģēt projektu", - "DELETE_PROJECT": "Dzēst projektu", - "CALLYSQUARE": "Cally Square", + "HIDDENDIGITSNUM": "Slēpto ciparu skaitlis", + "HIDDENDIGITSPOS": "Slēpto ciparu pozīcija", "ID": "ID", - "NEW_ODBC": "Jauns ODBC savienojums", - "SQUARERECORDINGS": "Ieraksti", - "PROJECT": "Projekts", - "UNIQUEID": "Unikāls ID", - "PHONE": "Tālrunis", - "EXTEN": "Exten", - "AUDIO": "Audio", - "CREATED_AT": "Izveidots", - "NOTES": "Piezīmes", - "NEW_PROJECT": "Jauns projekts", - "EDIT": "Rediģēt", + "IMPORT": "Importēt", + "IMPORT_XML": "Importēt XML", + "INTERVAL_ID": "Intervāls", + "INTKEY": "Pārtraukšanas taustiņš", + "ISPEECHASR": "iSpeech automātiskā runas atpazīšana", + "ISPEECHTTS": "iSpeech teksta pārvēršana runā", + "ISPEECH_ASR_LANGUAGE": "Valoda", + "ISPEECH_TTS_LANGUAGE": "Valoda", + "KEY": "Atslēga", "LABEL": "Etiķete", - "ANSWER": "Atbilde", - "TIMEOUT": "Noildze", - "SIP_ID": "SIP", - "OPTS": "Iespējas", - "URL": "Tīmekļa adrese", - "TRUNK_NAME": "Maģistrāle", - "START": "Sākt", - "FINALLY": "Visbeidzot", - "END": "Beigt", - "HANGUP": "Nolikt klausuli", - "DIAL": "Zvans", - "EXT_DIAL": "Ārējais zvans", - "QUEUE": "Rinda", - "QUEUE_ID": "Rinda", - "FILE_ID": "Audio", - "AGI": "AGI", + "LANGUAGECODE": "Valodas kods", + "LASTNAME": "Uzvārds", + "LIST_ID": "Saraksts", + "LOGIN": "Pieteikšanās", + "LOGOUT": "Atteikšanās", + "LUMENVOXASR": "Lumenvox automātiskā runas atpazīšana", + "LUMENVOXTTS": "Lumenvox teksta pārvēršana runā", "MACRO": "Makro", - "GOSUB": "GoSub", - "POSITION": "Pozīcija", - "VOICEMAIL": "Balss pasts", "MAILBOX": "Pastkaste", - "OPTIONS": "Iespējas", - "SET": "Iestatīt", - "VARIABLE_ID": "Mainīgais", - "VARIABLE_VALUE": "Vērtība", "MATH": "Matemātika", + "MAXDIGIT": "Maksimālie cipari", + "MENU": "Izvēlne", + "METHOD": "Metode", + "MINDIGIT": "Minimālie cipari", + "MODEL": "Modelis", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSsintna", + "NAME": "Nosaukums", + "NDAACTIVITY_TYPE": "Darbības veids", + "NDAGENERATE_AUDIO": "Izveidot audio failu", + "NDASSISTANT_URL": "NDASSISTANT URL", + "NDAUTH_URL": "NDAUTH URL", + "NEW": "Jauns", + "NEW_ODBC": "Jauns ODBC savienojums", + "NEW_PROJECT": "Jauns projekts", + "NEW_VARIABLE": "Jauns mainīgais", + "NOOP": "NoOp", + "NOTES": "Piezīmes", + "NO_AVAILABLE_INFO": "Nav pieejama informācija", + "NUMBER": "Numurs", + "ODBC": "ODBC", + "ODBC_ID": "ODBC savienojums", + "OF": "no", + "OPEN": "Atvērt", + "OPEN_NEW_WINDOW": "Atvērt jaunā logā", + "OPEN_PROJECT": "Atvērt projektu", "OPERATION": "Darbība", + "OPTIONS": "Iespējas", + "OPTS": "Iespējas", + "OUTPUT": "Izvaddati", + "PAGE": "Lappuse", + "PASSWORD": "Parole", + "PAUSE": "Pauze", + "PAUSE_ID": "Pauzes veids", + "PERMISSIONADD_PROJECTS": "Pievienot lietotājus projektam", + "PHONE": "Tālrunis", "PLAYBACK": "Atskaņošana", + "POSITION": "Pozīcija", + "PRIORITY": "Prioritāte", + "PROJECT": "Projekts", + "PROJECTS": "Projekti", + "PROJECT_ID": "Projekts", + "QUERY": "Vaicājums", + "QUEUE": "Rinda", + "QUEUE_ID": "Rinda", + "RAWBODY": "Korpuss", + "RAWHEADERS": "Galvenes", + "RECORD": "Ieraksts", + "RECORDINGFORMAT": "Ieraksta formāts", "RESPONSE": "Atbildes noildze", - "DIGIT": "Maks. ciparu skaits", + "RESTAPI": "Atpūtas API", "RETRY": "Atkārtoti mēģinājumi", - "DIGITS": "Cipari", - "ESCAPE_DIGITS": "Izbeigšanas cipari", - "MENU": "Izvēlne", + "ROWSPERPAGE": "Rindas lappusē", + "SAVE": "Saglabāt", "SAYDIGITS": "Nosaukt ciparus", "SAYNUMBER": "Nosaukt skaitli", - "NUMBER": "Numurs", "SAYPHONETIC": "Izrunāt fonētiski", - "TEXT": "Teksts", - "GOOGLE_TTS_LANGUAGE": "Valoda", - "TTS": "Google teksta pārvēršana runā", - "ISPEECHTTS": "iSpeech teksta pārvēršana runā", - "KEY": "Atslēga", - "ISPEECH_TTS_LANGUAGE": "Valoda", - "SPEED": "Ātrums", - "INTKEY": "Pārtraukšanas taustiņš", - "GETDIGITS": "Iegūt ciparus", - "MINDIGIT": "Minimālie cipari", - "MAXDIGIT": "Maksimālie cipari", - "HIDDENDIGITSNUM": "Slēpto ciparu skaitlis", - "HIDDENDIGITSPOS": "Slēpto ciparu pozīcija", - "GETSECRETDIGITS": "Iegūt slepenos ciparus", - "RECORD": "Ieraksts", - "FILE": "Datnes nosaukums", - "RECORDINGFORMAT": "Ieraksta formāts", - "DATABASE": "Datu bāze", - "ODBC_ID": "ODBC savienojums", - "QUERY": "Vaicājums", - "MODEL": "Modelis", - "ISPEECH_ASR_LANGUAGE": "Valoda", - "BEEP": "Pīkstiens", - "ISPEECHASR": "iSpeech automātiskā runas atpazīšana", + "SEARCH_FOR_ANYONE": "Meklēt", + "SELECTED": "Atlasīts", + "SELECTED_USERS": "Atlasītie lietotāji", + "SELECT_ALL": "Atlasīt visus", + "SELECT_NONE": "Neizvēlēties nevienu", + "SENDFAX": "Sūtīt faksu", + "SENDMAIL": "Sūtīt e-pastu", "SENDSMS": "Sūtīt īsziņu", - "ACCOUNT_ID": "Konts", - "TO": "Uz", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Iestatīt", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Konts", "SMS_TEXT": "Teksts", - "SENDMAIL": "Sūtīt e-pastu", - "TEMPLATE_ID": "Veidne", - "CC": "CC (kopija)", - "BCC": "BCC (diskrētā kopija)", + "SPEED": "Ātrums", + "SQUARERECORDINGS": "Ieraksti", + "SSMLGENDER": "Dzimums", + "START": "Sākt", "SUBJECT": "Temats", - "GOTOC": "GoTo", - "CONTEXT": "Konteksts", - "EXTENSION": "Paplašinājums", - "PRIORITY": "Prioritāte", - "GOTOIF": "GoToIf", - "CONDITION": "Nosacījums", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Intervāls", - "VSWITCH": "Mainīgā nomaiņa", - "GOAL": "Mērķis", - "GOALNAME": "Mērķa nosaukums", - "NOOP": "NoOp", - "OUTPUT": "Izvaddati", - "SYSTEM": "Sistēma", - "COMMAND": "Komanda", - "ARGS": "Argumenti", "SUBPROJECT": "Apakšprojekts", - "PROJECT_ID": "Projekts", - "CUSTOM_APP": "Pielāgota lietojumprogramma", - "APPLICATION": "Lietojumprogramma", - "CALLBACK": "Atzvanīšana", - "LASTNAME": "Uzvārds", - "LIST_ID": "Saraksts", - "DELAY": "Kavējums (min.)", - "OPEN_NEW_WINDOW": "Atvērt jaunā logā", - "OPEN_PROJECT": "Atvērt projektu", - "COPY": "Kopēt", - "OPEN": "Atvērt", - "NEW": "Jauns", - "COPY_PROJECT": "Kopēt projektu", - "NEW_VARIABLE": "Jauns mainīgais", - "ADD_VARIABLE": "Pievienot mainīgo", - "UPDATE_DESCRIPTION": "Atjaunināt aprakstu", - "EDIT_XML": "Rediģēt XML", - "IMPORT_XML": "Importēt XML", - "IMPORT": "Importēt", - "DROP_TO_UPLOAD": "PĀRVELCIET ŠEIT, LAI AUGŠUPIELĀDĒTU", - "DROP_TO_UPLOAD_MESSAGE": "Varat arī pārvilkt datnes šeit, lai tās augšupielādētu. Tikai XML – maks. 5 MB", - "CLOSE": "Aizvērt", - "NO_AVAILABLE_INFO": "Nav pieejama informācija", - "GO_TO_PROJECTS": "Iet uz projektiem", - "UPDATE_INFO": "Atjaunināt informāciju", - "AGENTS": "Aģenti", + "SYSTEM": "Sistēma", "TELEPHONES": "Tālruņi", - "USERS": "Lietotāji", - "CHOOSE_ATTACHMENT": "Izvēlēties pielikumu", - "ATTACHMENT_NAME": "Pielikuma nosaukums", - "ATTACHMENT_TYPE": "Pielikuma veids", - "ATTACHMENT_PATH": "Pielikuma ceļš", - "SENDFAX": "Sūtīt faksu", - "DELETE_SQUARERECORDING": "Dzēst Square ierakstu", - "DOWNLOAD_SQUARERECORDING": "Lejupielādēt Square ierakstu", - "FILENAME": "Datnes nosaukums", - "EDIT_SQUARERECORDING": "Rediģēt Square ierakstu", - "DELETE": "Dzēst", - "PAGE": "Lappuse", - "ROWSPERPAGE": "Rindas lappusē", - "OF": "no", - "CALLBACK_PRIORITY": "Prioritāte", - "GOOGLE_ASR_LANGUAGE": "Valoda", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Piekļuves atslēgas ID", - "AWS_SECRET_ACCESS_KEY": "Slēptā piekļuves atslēga", - "AWS_POLLY_REGION": "Reģions", - "AWS_POLLY_VOICE": "Balss", - "LUMENVOXTTS": "Lumenvox teksta pārvēršana runā", - "LUMENVOXASR": "Lumenvox automātiskā runas atpazīšana", - "GRAMMAR": "Gramatika", + "TEMPLATE_ID": "Veidne", + "TEST_ODBC": "Pārbaudīt ODBC", + "TEXT": "Teksts", "TILDEASR": "Tilde automātiskā runas atpazīšana", - "APPID": "Aplikācijas ID", - "APPSECRET": "Aplikācijas parole", - "FINDBY": "Atrast pēc", - "LOGIN": "Pieteikšanās", - "LOGOUT": "Atteikšanās", - "PAUSE": "Pauze", - "PAUSE_ID": "Pauzes veids", + "TIMEOUT": "Noildze", + "TO": "Uz", + "TRUNK_NAME": "Maģistrāle", + "TTS": "Google teksta pārvēršana runā", + "UNIQUEID": "Unikāls ID", "UNPAUSE": "Pārtraukt pauzi", + "UPDATE_DESCRIPTION": "Atjaunināt aprakstu", + "UPDATE_INFO": "Atjaunināt informāciju", "URI": "URI", - "AWS_TEXT_TYPE": "Teksta veids", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Valoda", - "ADDUSER_PROJECTS": "Pievienot lietotājus projektam", - "ALL_USERS": "Visi lietotāji", - "PERMISSIONADD_PROJECTS": "Pievienot lietotājus projektam", - "SELECTED_USERS": "Atlasītie lietotāji", - "AWS_BOT_NAME": "Robotprogrammatūras nosaukums", - "AWS_LEX_REGION": "Reģions", - "NDASSISTANT_URL": "NDASSISTANT URL", - "NDAUTH_URL": "NDAUTH URL", - "PASSWORD": "Parole", + "URL": "Tīmekļa adrese", "USERNAME": "Lietotājvārds", - "NDAGENERATE_AUDIO": "Izveidot audio failu", - "CUSTOM_ACTION": "Pielāgota darbība", - "CUSTOM_ACTION_DATA": "Pielāgotas darbības dati", - "NDAACTIVITY_TYPE": "Darbības veids", - "APIKEY": "ApiKey", - "AUDIOENCODING": "Audio kodēšana", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Valodas kods", - "SSMLGENDER": "Dzimums", - "BODY": "Korpuss", - "COMPUTEDVARIABLES": "Datorizēto mainīgo skripta ceļš", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksta tips", - "HEADERS": "Galvenes", - "METHOD": "Metode", - "RAWBODY": "Korpuss", - "RAWHEADERS": "Galvenes", - "RESTAPI": "Atpūtas API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSsintna" + "USERS": "Lietotāji", + "VARIABLE_ID": "Mainīgais", + "VARIABLE_VALUE": "Vērtība", + "VOICEMAIL": "Balss pasts", + "VSWITCH": "Mainīgā nomaiņa" } } diff --git a/public/app/main/apps/callysquare/i18n/nl.json b/public/app/main/apps/callysquare/i18n/nl.json index 7e4331a..573803d 100644 --- a/public/app/main/apps/callysquare/i18n/nl.json +++ b/public/app/main/apps/callysquare/i18n/nl.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Gebruikers toevoegen aan project", + "ADD_ODBC": "Voeg ODBC", + "ADD_PROJECT": "Voeg Project", + "ADD_VARIABLE": "Variabele toevoegen", + "AGENTS": "Agenten", + "AGI": "AGI", + "ALL_USERS": "Alle gebruikers", + "ANSWER": "Answer", + "APIKEY": "API sleutel", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "App geheim", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Bijlagenaam", + "ATTACHMENT_PATH": "Attachment pad", + "ATTACHMENT_TYPE": "Type aansluiting", + "AUDIO": "Audio", + "AUDIOENCODING": "Audiocodering", "AWSLEX": "Amazon Lex", - "NAME": "Naam", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Zoeken voor iedereen", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Toegangstoets ID", + "AWS_BOT_NAME": "Botnaam", + "AWS_LEX_REGION": "Regio", + "AWS_POLLY_REGION": "Regio", + "AWS_POLLY_VOICE": "Spraak", + "AWS_SECRET_ACCESS_KEY": "Geheime sleutel", + "AWS_TEXT_TYPE": "Bericht soort", "BACK": "Terug", - "SELECTED": "Geselecteerd", - "SELECT_ALL": "Alles selecteren", - "SELECT_NONE": "Selecteer None (Geen).", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Lichaam", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Prioriteit", + "CALLYSQUARE": "Schrijfsnelheid Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Kies voorzetstuk", + "CLOSE": "Dicht", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Scriptpad voor berekende variabelen", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Kopiëren", + "COPY_PROJECT": "Kopieer Project", + "CREATED_AT": "Gemaakt op", + "CUSTOM_ACTION": "Aangepaste actie", + "CUSTOM_ACTION_DATA": "Aangepaste actiegegevens", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "Verwijderen", + "DELETE_ODBC": "Verwijderen van ODBC", + "DELETE_PROJECT": "Project verwijderen", + "DELETE_SQUARERECORDING": "Wis vierkant opnemen", "DESCRIPTION": "Beschrijving", - "ADD_ODBC": "Voeg ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Taal", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Download vierkante opnemen", + "DROP_TO_UPLOAD": "DROP om te uploaden", + "DROP_TO_UPLOAD_MESSAGE": "U kunt ook bestanden hier neer te uploaden. Alleen XML - Max. 5MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Edit ODBC", + "EDIT_PROJECT": "Edit Project", + "EDIT_SQUARERECORDING": "Edit plein opnemen", + "EDIT_XML": "Edit XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "De naam is verplicht", "DSN_REQUIRED": "Het DSN is vereist", - "PROJECT_REQUIRED": "Het project is vereist", "FIELD_REQUIRED": "Het is een verplicht veld", + "NAME_REQUIRED": "De naam is verplicht", + "PROJECT_REQUIRED": "Het project is vereist", "URL_REQUIRED": "Verplicht veld" }, - "EDIT_ODBC": "Edit ODBC", - "DELETE_ODBC": "Verwijderen van ODBC", - "SAVE": "Opslaan", - "PROJECTS": "Projecten", - "ADD_PROJECT": "Voeg Project", - "EDIT_PROJECT": "Edit Project", - "DELETE_PROJECT": "Project verwijderen", - "CALLYSQUARE": "Schrijfsnelheid Square", - "ID": "Id", - "NEW_ODBC": "Nieuwe ODBC verbinding", - "SQUARERECORDINGS": "Vierkante opnamen", - "PROJECT": "Project", - "UNIQUEID": "Unieke ID", - "PHONE": "Telefoon", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Uitbreiding", - "AUDIO": "Audio", - "CREATED_AT": "Gemaakt op", - "NOTES": "Aantekeningen", - "NEW_PROJECT": "Nieuw project", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Bestandsnaam", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Zoek naar", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Taal", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Bericht soort", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Ga naar projecten", + "GRAMMAR": "Grammatica", + "HANGUP": "Hangup", + "HEADERS": "Kopteksten", + "HELP": { + "BCC": "U kunt meerdere adressen met een komma (bijvoorbeeld John.doe@xcally.com, jane.miller@xcally.com)", + "CC": "U kunt meerdere adressen met een komma (bijvoorbeeld John.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Voorbeeld: DRIVER=MySQL;SERVER=127.0.0.1;uid=xcall;pwd=wachtwoord;DATABASE=motion", + "MAILBOX": "Mailbox@context", + "MAX_TEXT_TTS": "Het maximale aantal ondersteunde tekens is 250", + "TO": "U kunt meerdere adressen met een komma (bijvoorbeeld John.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "Importeren", + "IMPORT_XML": "Import XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Taalcode", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Log in", + "LOGOUT": "Uitloggen", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Methode", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Naam", + "NDAACTIVITY_TYPE": "Soort activiteit", + "NDAGENERATE_AUDIO": "Genereer audiobestand", + "NDASSISTANT_URL": "NDASSISTANT URL", + "NDAUTH_URL": "NDAUTH-URL", + "NEW": "Nieuwe", + "NEW_ODBC": "Nieuwe ODBC verbinding", + "NEW_PROJECT": "Nieuw project", + "NEW_VARIABLE": "Nieuwe variabele", + "NOOP": "NoOp", + "NOTES": "Aantekeningen", + "NO_AVAILABLE_INFO": "Geen beschikbare informatie", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "Van", + "OPEN": "Open", + "OPEN_NEW_WINDOW": "Open in een nieuw venster", + "OPEN_PROJECT": "Project openen", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Pagina", + "PASSWORD": "Wachtwoord", + "PAUSE": "Pauze", + "PAUSE_ID": "Pauzeer type", + "PERMISSIONADD_PROJECTS": "Gebruikers toevoegen aan project", + "PHONE": "Telefoon", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Project", + "PROJECTS": "Projecten", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "Lichaam", + "RAWHEADERS": "Kopteksten", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "Rest API", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Rijen per pagina", + "SAVE": "Opslaan", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Zoeken voor iedereen", + "SELECTED": "Geselecteerd", + "SELECTED_USERS": "Geselecteerde gebruikers", + "SELECT_ALL": "Alles selecteren", + "SELECT_NONE": "Selecteer None (Geen).", + "SENDFAX": "Fax verzenden", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Account", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Vierkante opnamen", + "SSMLGENDER": "Geslacht", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "Open in een nieuw venster", - "OPEN_PROJECT": "Project openen", - "COPY": "Kopiëren", - "OPEN": "Open", - "NEW": "Nieuwe", - "COPY_PROJECT": "Kopieer Project", - "NEW_VARIABLE": "Nieuwe variabele", - "ADD_VARIABLE": "Variabele toevoegen", - "UPDATE_DESCRIPTION": "Beschrijving van update", - "EDIT_XML": "Edit XML", - "IMPORT_XML": "Import XML", - "IMPORT": "Importeren", - "DROP_TO_UPLOAD": "DROP om te uploaden", - "DROP_TO_UPLOAD_MESSAGE": "U kunt ook bestanden hier neer te uploaden. Alleen XML - Max. 5MB", - "CLOSE": "Dicht", - "NO_AVAILABLE_INFO": "Geen beschikbare informatie", - "GO_TO_PROJECTS": "Ga naar projecten", - "UPDATE_INFO": "Gegevens bijwerken", - "AGENTS": "Agenten", + "SYSTEM": "System", "TELEPHONES": "Telefoons", - "USERS": "Gebruikers", - "HELP": { - "MAILBOX": "Mailbox@context", - "DSN": "Voorbeeld: DRIVER=MySQL;SERVER=127.0.0.1;uid=xcall;pwd=wachtwoord;DATABASE=motion", - "TO": "U kunt meerdere adressen met een komma (bijvoorbeeld John.doe@xcally.com, jane.miller@xcally.com)", - "CC": "U kunt meerdere adressen met een komma (bijvoorbeeld John.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "U kunt meerdere adressen met een komma (bijvoorbeeld John.doe@xcally.com, jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Kies voorzetstuk", - "ATTACHMENT_NAME": "Bijlagenaam", - "ATTACHMENT_TYPE": "Type aansluiting", - "ATTACHMENT_PATH": "Attachment pad", - "SENDFAX": "Fax verzenden", - "DELETE_SQUARERECORDING": "Wis vierkant opnemen", - "DOWNLOAD_SQUARERECORDING": "Download vierkante opnemen", - "FILENAME": "Bestandsnaam", - "EDIT_SQUARERECORDING": "Edit plein opnemen", - "DELETE": "Verwijderen", - "PAGE": "Pagina", - "ROWSPERPAGE": "Rijen per pagina", - "OF": "Van", - "CALLBACK_PRIORITY": "Prioriteit", - "GOOGLE_ASR_LANGUAGE": "Taal", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Toegangstoets ID", - "AWS_SECRET_ACCESS_KEY": "Geheime sleutel", - "AWS_POLLY_REGION": "Regio", - "AWS_POLLY_VOICE": "Spraak", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammatica", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Test ODBC", + "TEXT": "Text", "TILDEASR": "Tilde ASR", - "APPID": "App ID", - "APPSECRET": "App geheim", - "SMS_ACCOUNT_ID": "Account", - "FINDBY": "Zoek naar", - "LOGIN": "Log in", - "LOGOUT": "Uitloggen", - "PAUSE": "Pauze", - "PAUSE_ID": "Pauzeer type", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Unieke ID", "UNPAUSE": "Einde pauze", + "UPDATE_DESCRIPTION": "Beschrijving van update", + "UPDATE_INFO": "Gegevens bijwerken", "URI": "URI", - "AWS_TEXT_TYPE": "Bericht soort", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Taal", - "ADDUSER_PROJECTS": "Gebruikers toevoegen aan project", - "ALL_USERS": "Alle gebruikers", - "PERMISSIONADD_PROJECTS": "Gebruikers toevoegen aan project", - "SELECTED_USERS": "Geselecteerde gebruikers", - "AWS_BOT_NAME": "Botnaam", - "AWS_LEX_REGION": "Regio", - "NDASSISTANT_URL": "NDASSISTANT URL", - "NDAUTH_URL": "NDAUTH-URL", - "PASSWORD": "Wachtwoord", + "URL": "URL", "USERNAME": "Gebruikersnaam", - "NDAGENERATE_AUDIO": "Genereer audiobestand", - "CUSTOM_ACTION": "Aangepaste actie", - "CUSTOM_ACTION_DATA": "Aangepaste actiegegevens", - "NDAACTIVITY_TYPE": "Soort activiteit", - "APIKEY": "API sleutel", - "AUDIOENCODING": "Audiocodering", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Taalcode", - "SSMLGENDER": "Geslacht", - "BODY": "Lichaam", - "COMPUTEDVARIABLES": "Scriptpad voor berekende variabelen", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Bericht soort", - "HEADERS": "Kopteksten", - "METHOD": "Methode", - "RAWBODY": "Lichaam", - "RAWHEADERS": "Kopteksten", - "RESTAPI": "Rest API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Gebruikers", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/no.json b/public/app/main/apps/callysquare/i18n/no.json index 49ddc7f..28ea604 100644 --- a/public/app/main/apps/callysquare/i18n/no.json +++ b/public/app/main/apps/callysquare/i18n/no.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Legg til brukere til prosjektet", + "ADD_ODBC": "Legg ODBC", + "ADD_PROJECT": "Legg til prosjekt", + "ADD_VARIABLE": "Legg til variabel", + "AGENTS": "Agenter", + "AGI": "AGI", + "ALL_USERS": "Alle brukere", + "ANSWER": "Answer", + "APIKEY": "apikey", + "APPID": "App-ID", + "APPLICATION": "Application", + "APPSECRET": "App hemmelige", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Vedlegg navn", + "ATTACHMENT_PATH": "Vedlegg bane", + "ATTACHMENT_TYPE": "Tilkoblingstype", + "AUDIO": "Lyd", + "AUDIOENCODING": "Lydkoding", "AWSLEX": "Amazon Lex", - "NAME": "Navn", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Søk etter alle", + "AWSPOLLY": "AWS anett", + "AWS_ACCESS_KEY_ID": "Tilgang nøkkel-ID", + "AWS_BOT_NAME": "Bot navn", + "AWS_LEX_REGION": "Region", + "AWS_POLLY_REGION": "Region", + "AWS_POLLY_VOICE": "Stemme", + "AWS_SECRET_ACCESS_KEY": "Hemmelig tilgang til nøkkelen", + "AWS_TEXT_TYPE": "Teksttype", "BACK": "Tilbake", - "SELECTED": "Valgt", - "SELECT_ALL": "Velg alle", - "SELECT_NONE": "Velg ingen", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Kropp", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Prioritet", + "CALLYSQUARE": "Sportsbil Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Velg vedlegg", + "CLOSE": "Lukk", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Beregnede variabler Skriptsti", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Kopiere", + "COPY_PROJECT": "Kopier prosjekt", + "CREATED_AT": "Opprettet i", + "CUSTOM_ACTION": "Tilpasset handling", + "CUSTOM_ACTION_DATA": "Egendefinerte handlingsdata", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "Slette", + "DELETE_ODBC": "Slette ODBC", + "DELETE_PROJECT": "Slett prosjekt", + "DELETE_SQUARERECORDING": "Slette Square opptak", "DESCRIPTION": "Beskrivelse", - "ADD_ODBC": "Legg ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Språk", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Last ned Square opptak", + "DROP_TO_UPLOAD": "Slippe Å LASTE OPP", + "DROP_TO_UPLOAD_MESSAGE": "Du kan også slippe filer her å laste opp. Bare XML - Maks. 5MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Rediger ODBC", + "EDIT_PROJECT": "Rediger prosjekt", + "EDIT_SQUARERECORDING": "Rediger Square opptak", + "EDIT_XML": "Redigere XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Navnet er nødvendig", "DSN_REQUIRED": "DSN er nødvendig", - "PROJECT_REQUIRED": "Prosjektet er nødvendig", "FIELD_REQUIRED": "Feltet er obligatorisk", + "NAME_REQUIRED": "Navnet er nødvendig", + "PROJECT_REQUIRED": "Prosjektet er nødvendig", "URL_REQUIRED": "Obligatoriske felt" }, - "EDIT_ODBC": "Rediger ODBC", - "DELETE_ODBC": "Slette ODBC", - "SAVE": "Lagre", - "PROJECTS": "Prosjekter", - "ADD_PROJECT": "Legg til prosjekt", - "EDIT_PROJECT": "Rediger prosjekt", - "DELETE_PROJECT": "Slett prosjekt", - "CALLYSQUARE": "Sportsbil Square", - "ID": "Id", - "NEW_ODBC": "Ny ODBC-kobling", - "SQUARERECORDINGS": "Square opptak", - "PROJECT": "Prosjekt", - "UNIQUEID": "Unik ID", - "PHONE": "Telefon", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "Lyd", - "CREATED_AT": "Opprettet i", - "NOTES": "Merknader", - "NEW_PROJECT": "Nytt prosjekt", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Filnavn", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Finn etter", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Språk", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksttype", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Gå til prosjekter", + "GRAMMAR": "Grammatikk", + "HANGUP": "Hangup", + "HEADERS": "overskrifter", + "HELP": { + "BCC": "Du kan legge til flere adresser med komma (f.eks. john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Du kan legge til flere adresser med komma (f.eks. john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Eksempel: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=passord;DATABASE=bevegelse", + "MAILBOX": "Postboksen@kontekst", + "MAX_TEXT_TTS": "Maksimalt antall tegn som støttes er 250", + "TO": "Du kan legge til flere adresser med komma (f.eks. john.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "Importere", + "IMPORT_XML": "Importere XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Språkkode", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Logg Inn", + "LOGOUT": "Logg ut", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-tale", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Metode", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Navn", + "NDAACTIVITY_TYPE": "Aktivitetstype", + "NDAGENERATE_AUDIO": "Generer lydfil", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "Ny", + "NEW_ODBC": "Ny ODBC-kobling", + "NEW_PROJECT": "Nytt prosjekt", + "NEW_VARIABLE": "Ny variabel", + "NOOP": "NoOp", + "NOTES": "Merknader", + "NO_AVAILABLE_INFO": "Ingen tilgjengelig info", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "Av", + "OPEN": "Åpne", + "OPEN_NEW_WINDOW": "Åpne i et nytt vindu", + "OPEN_PROJECT": "Åpne prosjekt", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Siden", + "PASSWORD": "Passord", + "PAUSE": "Pause", + "PAUSE_ID": "Pause type", + "PERMISSIONADD_PROJECTS": "Legg til brukere til prosjektet", + "PHONE": "Telefon", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Prosjekt", + "PROJECTS": "Prosjekter", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "Kropp", + "RAWHEADERS": "overskrifter", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "Rest API", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Linjer per side", + "SAVE": "Lagre", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Søk etter alle", + "SELECTED": "Valgt", + "SELECTED_USERS": "Utvalgte brukere", + "SELECT_ALL": "Velg alle", + "SELECT_NONE": "Velg ingen", + "SENDFAX": "Send faks", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Konto", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Square opptak", + "SSMLGENDER": "Kjønn", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "Åpne i et nytt vindu", - "OPEN_PROJECT": "Åpne prosjekt", - "COPY": "Kopiere", - "OPEN": "Åpne", - "NEW": "Ny", - "COPY_PROJECT": "Kopier prosjekt", - "NEW_VARIABLE": "Ny variabel", - "ADD_VARIABLE": "Legg til variabel", - "UPDATE_DESCRIPTION": "Oppdateringen beskrivelse", - "EDIT_XML": "Redigere XML", - "IMPORT_XML": "Importere XML", - "IMPORT": "Importere", - "DROP_TO_UPLOAD": "Slippe Å LASTE OPP", - "DROP_TO_UPLOAD_MESSAGE": "Du kan også slippe filer her å laste opp. Bare XML - Maks. 5MB", - "CLOSE": "Lukk", - "NO_AVAILABLE_INFO": "Ingen tilgjengelig info", - "GO_TO_PROJECTS": "Gå til prosjekter", - "UPDATE_INFO": "Oppdatere info", - "AGENTS": "Agenter", + "SYSTEM": "System", "TELEPHONES": "Telefoner", - "USERS": "Brukere", - "HELP": { - "MAILBOX": "Postboksen@kontekst", - "DSN": "Eksempel: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=passord;DATABASE=bevegelse", - "TO": "Du kan legge til flere adresser med komma (f.eks. john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Du kan legge til flere adresser med komma (f.eks. john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "Du kan legge til flere adresser med komma (f.eks. john.doe@xcally.com, jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Velg vedlegg", - "ATTACHMENT_NAME": "Vedlegg navn", - "ATTACHMENT_TYPE": "Tilkoblingstype", - "ATTACHMENT_PATH": "Vedlegg bane", - "SENDFAX": "Send faks", - "DELETE_SQUARERECORDING": "Slette Square opptak", - "DOWNLOAD_SQUARERECORDING": "Last ned Square opptak", - "FILENAME": "Filnavn", - "EDIT_SQUARERECORDING": "Rediger Square opptak", - "DELETE": "Slette", - "PAGE": "Siden", - "ROWSPERPAGE": "Linjer per side", - "OF": "Av", - "CALLBACK_PRIORITY": "Prioritet", - "GOOGLE_ASR_LANGUAGE": "Språk", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS anett", - "AWS_ACCESS_KEY_ID": "Tilgang nøkkel-ID", - "AWS_SECRET_ACCESS_KEY": "Hemmelig tilgang til nøkkelen", - "AWS_POLLY_REGION": "Region", - "AWS_POLLY_VOICE": "Stemme", - "LUMENVOXTTS": "Lumenvox Text-To-tale", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammatikk", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Test ODBC", + "TEXT": "Text", "TILDEASR": "Tilde ASR", - "APPID": "App-ID", - "APPSECRET": "App hemmelige", - "SMS_ACCOUNT_ID": "Konto", - "FINDBY": "Finn etter", - "LOGIN": "Logg Inn", - "LOGOUT": "Logg ut", - "PAUSE": "Pause", - "PAUSE_ID": "Pause type", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Unik ID", "UNPAUSE": "Slutt pause", + "UPDATE_DESCRIPTION": "Oppdateringen beskrivelse", + "UPDATE_INFO": "Oppdatere info", "URI": "URI", - "AWS_TEXT_TYPE": "Teksttype", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Språk", - "ADDUSER_PROJECTS": "Legg til brukere til prosjektet", - "ALL_USERS": "Alle brukere", - "PERMISSIONADD_PROJECTS": "Legg til brukere til prosjektet", - "SELECTED_USERS": "Utvalgte brukere", - "AWS_BOT_NAME": "Bot navn", - "AWS_LEX_REGION": "Region", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "Passord", + "URL": "URL", "USERNAME": "Brukernavn", - "NDAGENERATE_AUDIO": "Generer lydfil", - "CUSTOM_ACTION": "Tilpasset handling", - "CUSTOM_ACTION_DATA": "Egendefinerte handlingsdata", - "NDAACTIVITY_TYPE": "Aktivitetstype", - "APIKEY": "apikey", - "AUDIOENCODING": "Lydkoding", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Språkkode", - "SSMLGENDER": "Kjønn", - "BODY": "Kropp", - "COMPUTEDVARIABLES": "Beregnede variabler Skriptsti", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Teksttype", - "HEADERS": "overskrifter", - "METHOD": "Metode", - "RAWBODY": "Kropp", - "RAWHEADERS": "overskrifter", - "RESTAPI": "Rest API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Brukere", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/pl.json b/public/app/main/apps/callysquare/i18n/pl.json index 5bcd126..bcae155 100644 --- a/public/app/main/apps/callysquare/i18n/pl.json +++ b/public/app/main/apps/callysquare/i18n/pl.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Konto", + "ADDUSER_PROJECTS": "Dodaj użytkowników do projektu", + "ADD_ODBC": "Dodj obsługę ODBC", + "ADD_PROJECT": "Dodaj projekt", + "ADD_VARIABLE": "Dodaj zmienne", + "AGENTS": "Agenci", + "AGI": "AGI", + "ALL_USERS": "Wszyscy użytkownicy", + "ANSWER": "Odbierz", + "APIKEY": "Klucz API", + "APPID": "App ID", + "APPLICATION": "Aplikacja", + "APPSECRET": "App Secret", + "ARGS": "Argumenty", + "ATTACHMENT_NAME": "Nazwa załącznika", + "ATTACHMENT_PATH": "Ścieżka załącznika", + "ATTACHMENT_TYPE": "Typ załącznika", + "AUDIO": "Audio", + "AUDIOENCODING": "Kodowanie audio", "AWSLEX": "Amazon Lex", - "NAME": "Nazwa", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Wyszukaj", + "AWSPOLLY": "ASR AWS Polly", + "AWS_ACCESS_KEY_ID": "Access Key ID", + "AWS_BOT_NAME": "Nazwa bota", + "AWS_LEX_REGION": "Region", + "AWS_POLLY_REGION": "Region", + "AWS_POLLY_VOICE": "Głos", + "AWS_SECRET_ACCESS_KEY": "Klucz dostępu", + "AWS_TEXT_TYPE": "Typ tekstu", "BACK": "Powrót", - "SELECTED": "Wybrane", - "SELECT_ALL": "Zaznacz wszystkie", - "SELECT_NONE": "Odznacz wszystkie", - "DSN": "DSN", + "BCC": "Udw", + "BEEP": "Bip", + "BODY": "Ciało", + "CALLBACK": "Oddzwonienie", + "CALLBACK_PRIORITY": "Priorytet", + "CALLYSQUARE": "Cally Square", + "CC": "DW", + "CHOOSE_ATTACHMENT": "Wybierz załącznik", + "CLOSE": "Zamknij", + "COMMAND": "Polecenie", + "COMPUTEDVARIABLES": "Ścieżka skryptu zmiennych obliczonych", + "CONDITION": "Stan", + "CONTEXT": "Kontekst", + "COPY": "Kopiuj", + "COPY_PROJECT": "Kopiowanie projektu", + "CREATED_AT": "Utworzone", + "CUSTOM_ACTION": "Działanie niestandardowe", + "CUSTOM_ACTION_DATA": "Niestandardowe dane akcji", + "CUSTOM_APP": "Aplikacja niestandardowa", + "DATABASE": "Baza danych", + "DELAY": "Opóźnienie [min]", + "DELETE": "Usuń", + "DELETE_ODBC": "Usuń ODBC", + "DELETE_PROJECT": "Usuń projekt", + "DELETE_SQUARERECORDING": "Usuń nagranie", "DESCRIPTION": "Opis", - "ADD_ODBC": "Dodj obsługę ODBC", + "DIAL": "Zadzwoń", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Język", + "DIGIT": "Max cyfr", + "DIGITS": "Cyfry", + "DOWNLOAD_SQUARERECORDING": "Pobierz nagranie", + "DROP_TO_UPLOAD": "UPUŚĆ ABY PRZESŁAĆ", + "DROP_TO_UPLOAD_MESSAGE": "Można też tu upuść pliki do przesłania. Tylko XML - maks. 5MB", + "DSN": "DSN", + "EDIT": "Edytuj", + "EDIT_ODBC": "Edytuj ODBC", + "EDIT_PROJECT": "Edytuj projekt", + "EDIT_SQUARERECORDING": "Edytuj nagrywanie", + "EDIT_XML": "Edycja XML", + "END": "Koniec", "ERRORS": { - "NAME_REQUIRED": "Pole obowiązkowe", "DSN_REQUIRED": "Pole obowiązkowe", - "PROJECT_REQUIRED": "Pole obowiązkowe", "FIELD_REQUIRED": "Pole obowiązkowe", + "NAME_REQUIRED": "Pole obowiązkowe", + "PROJECT_REQUIRED": "Pole obowiązkowe", "URL_REQUIRED": "Pole obowiązkowe" }, - "EDIT_ODBC": "Edytuj ODBC", - "DELETE_ODBC": "Usuń ODBC", - "SAVE": "Zapisz", - "PROJECTS": "Projekty", - "ADD_PROJECT": "Dodaj projekt", - "EDIT_PROJECT": "Edytuj projekt", - "DELETE_PROJECT": "Usuń projekt", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "Nowe połączenie ODBC", - "SQUARERECORDINGS": "Nagrania", - "PROJECT": "Projekt", - "UNIQUEID": "Unikatowy identyfikator", - "PHONE": "Telefon", + "ESCAPE_DIGITS": "Dodatkowe cyfry", "EXTEN": "Exten", - "AUDIO": "Audio", - "CREATED_AT": "Utworzone", - "NOTES": "Uwagi", - "NEW_PROJECT": "Nowy projekt", - "EDIT": "Edytuj", - "LABEL": "Etykieta", - "ANSWER": "Odbierz", - "TIMEOUT": "Limit czasu", - "SIP_ID": "SIP", - "OPTS": "Opcje", - "URL": "URL", - "TRUNK_NAME": "Trakt", - "START": "Start", - "FINALLY": "Wreszcie", - "END": "Koniec", - "HANGUP": "Rozłącz", - "DIAL": "Zadzwoń", + "EXTENSION": "Rozszerzenie", "EXT_DIAL": "Zadzwoń na numer zewnętrzny", - "QUEUE": "Kolejka", - "QUEUE_ID": "Identyfikator kolejki", + "FILE": "Nazwa pliku", + "FILENAME": "Nazwa pliku", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Makro", + "FINALLY": "Wreszcie", + "FINDBY": "Znajdź według", + "GETDIGITS": "Pobierz cyfry", + "GETSECRETDIGITS": "Poznaj sekret cyfry", + "GOAL": "Cel", + "GOALNAME": "Nazwa celu", + "GOOGLEASR": "ASR Google", + "GOOGLE_ASR_LANGUAGE": "Język", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Rodzaj tekstu", + "GOOGLE_TTS_LANGUAGE": "Język", "GOSUB": "GoSub", - "POSITION": "Położenie", - "VOICEMAIL": "Poczta głosowa", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Przejdź do projektów", + "GRAMMAR": "Gramatyka", + "HANGUP": "Rozłącz", + "HEADERS": "Nagłówki", + "HELP": { + "BCC": "Można dodać kilka adresów oddzielonych przecinkiem (np. john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Można dodać kilka adresów oddzielonych przecinkiem (np. john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Przykład: Kierowca=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=hasło;DATABASE=motion", + "MAILBOX": "Skrzynka pocztowa@kontekst", + "MAX_TEXT_TTS": "Maksymalna liczba obsługiwanych znaków to 250", + "TO": "Można dodać kilka adresów oddzielonych przecinkiem (np. john.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden cyfry numeru", + "HIDDENDIGITSPOS": "Ukryte cyfry pozycji", + "ID": "Id", + "IMPORT": "Importowanie", + "IMPORT_XML": "Import XML", + "INTERVAL_ID": "Interwał", + "INTKEY": "Klawisz przerywania", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "Syntezator mowy ISpeech", + "ISPEECH_ASR_LANGUAGE": "Język", + "ISPEECH_TTS_LANGUAGE": "Język", + "KEY": "Klucz", + "LABEL": "Etykieta", + "LANGUAGECODE": "Kod języka", + "LASTNAME": "Nazwisko", + "LIST_ID": "Lista", + "LOGIN": "Zaloguj Się", + "LOGOUT": "Wyloguj", + "LUMENVOXASR": "ASR Lumenvox", + "LUMENVOXTTS": "Syntezator mowy Lumenvox", + "MACRO": "Makro", "MAILBOX": "Skrzynka pocztowa", - "OPTIONS": "Opcje", - "SET": "Ustaw", - "VARIABLE_ID": "Zmienna", - "VARIABLE_VALUE": "Wartość", "MATH": "Math", + "MAXDIGIT": "Maksymalna cyfry", + "MENU": "Menu", + "METHOD": "metoda", + "MINDIGIT": "Minimalna cyfry", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Nazwa", + "NDAACTIVITY_TYPE": "Rodzaj aktywności", + "NDAGENERATE_AUDIO": "Generuj plik audio", + "NDASSISTANT_URL": "Url NDASSISTANT", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "Nowy", + "NEW_ODBC": "Nowe połączenie ODBC", + "NEW_PROJECT": "Nowy projekt", + "NEW_VARIABLE": "Nowa zmienna", + "NOOP": "NoOp", + "NOTES": "Uwagi", + "NO_AVAILABLE_INFO": "Brak danych", + "NUMBER": "Numer", + "ODBC": "ODBC", + "ODBC_ID": "Połączenie ODBC", + "OF": "Z", + "OPEN": "Otwórz", + "OPEN_NEW_WINDOW": "Otwórz nowe okno", + "OPEN_PROJECT": "Otwórz projekt", "OPERATION": "Działanie", + "OPTIONS": "Opcje", + "OPTS": "Opcje", + "OUTPUT": "Wyjście", + "PAGE": "Page", + "PASSWORD": "Hasło", + "PAUSE": "Pauza", + "PAUSE_ID": "Typ pauzy", + "PERMISSIONADD_PROJECTS": "Dodaj użytkowników do projektu", + "PHONE": "Telefon", "PLAYBACK": "Odtwarzanie", + "POSITION": "Położenie", + "PRIORITY": "Priorytet", + "PROJECT": "Projekt", + "PROJECTS": "Projekty", + "PROJECT_ID": "Projekt", + "QUERY": "Zapytanie", + "QUEUE": "Kolejka", + "QUEUE_ID": "Identyfikator kolejki", + "RAWBODY": "Ciało", + "RAWHEADERS": "Nagłówki", + "RECORD": "Rekord", + "RECORDINGFORMAT": "Format nagrywania", "RESPONSE": "Limit czasu oczekiwania na odpowiedź", - "DIGIT": "Max cyfr", + "RESTAPI": "Reszta API", "RETRY": "Liczba ponownych prób", - "DIGITS": "Cyfry", - "ESCAPE_DIGITS": "Dodatkowe cyfry", - "MENU": "Menu", + "ROWSPERPAGE": "Wierszy na stronie", + "SAVE": "Zapisz", "SAYDIGITS": "Wymowa cyfr", "SAYNUMBER": "Wymów numer", - "NUMBER": "Numer", "SAYPHONETIC": "Wymów fonetycznie", - "TEXT": "Tekst", - "GOOGLE_TTS_LANGUAGE": "Język", - "TTS": "Syntezator mowy Google", - "ISPEECHTTS": "Syntezator mowy ISpeech", - "KEY": "Klucz", - "ISPEECH_TTS_LANGUAGE": "Język", - "SPEED": "Prędkość", - "INTKEY": "Klawisz przerywania", - "GETDIGITS": "Pobierz cyfry", - "MINDIGIT": "Minimalna cyfry", - "MAXDIGIT": "Maksymalna cyfry", - "HIDDENDIGITSNUM": "Hiddden cyfry numeru", - "HIDDENDIGITSPOS": "Ukryte cyfry pozycji", - "GETSECRETDIGITS": "Poznaj sekret cyfry", - "RECORD": "Rekord", - "FILE": "Nazwa pliku", - "RECORDINGFORMAT": "Format nagrywania", - "DATABASE": "Baza danych", - "ODBC_ID": "Połączenie ODBC", - "QUERY": "Zapytanie", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Język", - "BEEP": "Bip", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Wyszukaj", + "SELECTED": "Wybrane", + "SELECTED_USERS": "Wybrani użytkownicy", + "SELECT_ALL": "Zaznacz wszystkie", + "SELECT_NONE": "Odznacz wszystkie", + "SENDFAX": "Wyślij faks", + "SENDMAIL": "Wyślij Maila", "SENDSMS": "Wysyłanie wiadomości SMS", - "ACCOUNT_ID": "Konto", - "TO": "Do", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Ustaw", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Konto", "SMS_TEXT": "Tekst", - "SENDMAIL": "Wyślij Maila", - "TEMPLATE_ID": "Szablon", - "CC": "DW", - "BCC": "Udw", + "SPEED": "Prędkość", + "SQUARERECORDINGS": "Nagrania", + "SSMLGENDER": "Płeć", + "START": "Start", "SUBJECT": "Temat", - "GOTOC": "GoTo", - "CONTEXT": "Kontekst", - "EXTENSION": "Rozszerzenie", - "PRIORITY": "Priorytet", - "GOTOIF": "GoToIf", - "CONDITION": "Stan", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interwał", - "VSWITCH": "Przełącznik", - "GOAL": "Cel", - "GOALNAME": "Nazwa celu", - "NOOP": "NoOp", - "OUTPUT": "Wyjście", - "SYSTEM": "System", - "COMMAND": "Polecenie", - "ARGS": "Argumenty", "SUBPROJECT": "Podprojekt", - "PROJECT_ID": "Projekt", - "CUSTOM_APP": "Aplikacja niestandardowa", - "APPLICATION": "Aplikacja", - "CALLBACK": "Oddzwonienie", - "LASTNAME": "Nazwisko", - "LIST_ID": "Lista", - "DELAY": "Opóźnienie [min]", - "OPEN_NEW_WINDOW": "Otwórz nowe okno", - "OPEN_PROJECT": "Otwórz projekt", - "COPY": "Kopiuj", - "OPEN": "Otwórz", - "NEW": "Nowy", - "COPY_PROJECT": "Kopiowanie projektu", - "NEW_VARIABLE": "Nowa zmienna", - "ADD_VARIABLE": "Dodaj zmienne", - "UPDATE_DESCRIPTION": "Aktualizacja opisu", - "EDIT_XML": "Edycja XML", - "IMPORT_XML": "Import XML", - "IMPORT": "Importowanie", - "DROP_TO_UPLOAD": "UPUŚĆ ABY PRZESŁAĆ", - "DROP_TO_UPLOAD_MESSAGE": "Można też tu upuść pliki do przesłania. Tylko XML - maks. 5MB", - "CLOSE": "Zamknij", - "NO_AVAILABLE_INFO": "Brak danych", - "GO_TO_PROJECTS": "Przejdź do projektów", - "UPDATE_INFO": "Aktualizacja danych", - "AGENTS": "Agenci", + "SYSTEM": "System", "TELEPHONES": "Telefony", - "USERS": "Użytkownicy", - "HELP": { - "MAILBOX": "Skrzynka pocztowa@kontekst", - "DSN": "Przykład: Kierowca=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=hasło;DATABASE=motion", - "TO": "Można dodać kilka adresów oddzielonych przecinkiem (np. john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Można dodać kilka adresów oddzielonych przecinkiem (np. john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "Można dodać kilka adresów oddzielonych przecinkiem (np. john.doe@xcally.com, jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Wybierz załącznik", - "ATTACHMENT_NAME": "Nazwa załącznika", - "ATTACHMENT_TYPE": "Typ załącznika", - "ATTACHMENT_PATH": "Ścieżka załącznika", - "SENDFAX": "Wyślij faks", - "DELETE_SQUARERECORDING": "Usuń nagranie", - "DOWNLOAD_SQUARERECORDING": "Pobierz nagranie", - "FILENAME": "Nazwa pliku", - "EDIT_SQUARERECORDING": "Edytuj nagrywanie", - "DELETE": "Usuń", - "PAGE": "Page", - "ROWSPERPAGE": "Wierszy na stronie", - "OF": "Z", - "CALLBACK_PRIORITY": "Priorytet", - "GOOGLE_ASR_LANGUAGE": "Język", - "GOOGLEASR": "ASR Google", - "AWSPOLLY": "ASR AWS Polly", - "AWS_ACCESS_KEY_ID": "Access Key ID", - "AWS_SECRET_ACCESS_KEY": "Klucz dostępu", - "AWS_POLLY_REGION": "Region", - "AWS_POLLY_VOICE": "Głos", - "LUMENVOXTTS": "Syntezator mowy Lumenvox", - "LUMENVOXASR": "ASR Lumenvox", - "GRAMMAR": "Gramatyka", + "TEMPLATE_ID": "Szablon", + "TEST_ODBC": "Test ODBC", + "TEXT": "Tekst", "TILDEASR": "ASR Tilde", - "APPID": "App ID", - "APPSECRET": "App Secret", - "SMS_ACCOUNT_ID": "Konto", - "FINDBY": "Znajdź według", - "LOGIN": "Zaloguj Się", - "LOGOUT": "Wyloguj", - "PAUSE": "Pauza", - "PAUSE_ID": "Typ pauzy", + "TIMEOUT": "Limit czasu", + "TO": "Do", + "TRUNK_NAME": "Trakt", + "TTS": "Syntezator mowy Google", + "UNIQUEID": "Unikatowy identyfikator", "UNPAUSE": "Zakończ pauzę", + "UPDATE_DESCRIPTION": "Aktualizacja opisu", + "UPDATE_INFO": "Aktualizacja danych", "URI": "URI", - "AWS_TEXT_TYPE": "Typ tekstu", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Język", - "ADDUSER_PROJECTS": "Dodaj użytkowników do projektu", - "ALL_USERS": "Wszyscy użytkownicy", - "PERMISSIONADD_PROJECTS": "Dodaj użytkowników do projektu", - "SELECTED_USERS": "Wybrani użytkownicy", - "AWS_BOT_NAME": "Nazwa bota", - "AWS_LEX_REGION": "Region", - "NDASSISTANT_URL": "Url NDASSISTANT", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "Hasło", + "URL": "URL", "USERNAME": "Nazwa Użytkownika", - "NDAGENERATE_AUDIO": "Generuj plik audio", - "CUSTOM_ACTION": "Działanie niestandardowe", - "CUSTOM_ACTION_DATA": "Niestandardowe dane akcji", - "NDAACTIVITY_TYPE": "Rodzaj aktywności", - "APIKEY": "Klucz API", - "AUDIOENCODING": "Kodowanie audio", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Kod języka", - "SSMLGENDER": "Płeć", - "BODY": "Ciało", - "COMPUTEDVARIABLES": "Ścieżka skryptu zmiennych obliczonych", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Rodzaj tekstu", - "HEADERS": "Nagłówki", - "METHOD": "metoda", - "RAWBODY": "Ciało", - "RAWHEADERS": "Nagłówki", - "RESTAPI": "Reszta API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Użytkownicy", + "VARIABLE_ID": "Zmienna", + "VARIABLE_VALUE": "Wartość", + "VOICEMAIL": "Poczta głosowa", + "VSWITCH": "Przełącznik" } } diff --git a/public/app/main/apps/callysquare/i18n/pt-BR.json b/public/app/main/apps/callysquare/i18n/pt-BR.json index 3f6494a..ee67e81 100644 --- a/public/app/main/apps/callysquare/i18n/pt-BR.json +++ b/public/app/main/apps/callysquare/i18n/pt-BR.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", - "AWSLEX": "Amazon Lex", - "AWS_LEX_REGION": "Região", - "AWS_BOT_NAME": "Nome BOT", + "ACCOUNT_ID": "Conta", "ADDUSER_PROJECTS": "Adicionar usuários ao projeto", - "PERMISSIONADD_PROJECTS": "Adicionar usuários ao projeto", + "ADD_ODBC": "Adicionar ODBC", + "ADD_PROJECT": "Adicionar Projeto", + "ADD_VARIABLE": "Adicionar Variável", + "AGENTS": "Agentes", + "AGI": "AGI", "ALL_USERS": "Todos os usuários", - "SELECTED_USERS": "Usuários Selecionados", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Idioma", + "ANSWER": "Responda", + "APIKEY": "Chave API", + "APPID": "ID do aplicativo", + "APPLICATION": "Aplicação", + "APPSECRET": "App Secret", + "ARGS": "Argumentos", + "ATTACHMENT_NAME": "Nome do Anexo", + "ATTACHMENT_PATH": "Caminho de Anexos", + "ATTACHMENT_TYPE": "Tipo de Anexo", + "AUDIO": "Audio", + "AUDIOENCODING": "Codificação de áudio", + "AWSLEX": "Amazon Lex", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Access Key ID", + "AWS_BOT_NAME": "Nome BOT", + "AWS_LEX_REGION": "Região", + "AWS_POLLY_REGION": "Região", + "AWS_POLLY_VOICE": "Voz", + "AWS_SECRET_ACCESS_KEY": "Secret Access Key", "AWS_TEXT_TYPE": "Tipo de texto", - "PAUSE_ID": "Tipo de pausa", - "FINDBY": "Encontrar por", - "LOGIN": "Login", - "PAUSE": "Pausa", - "UNPAUSE": "Fim da Pausa", - "LOGOUT": "Logout", - "URI": "URI", - "SMS_ACCOUNT_ID": "Conta", - "NAME": "Nome", - "ODBC": "ODBC", - "TEST_ODBC": "Teste ODBC", - "SEARCH_FOR_ANYONE": "Procurar", "BACK": "Voltar", - "SELECTED": "Selecionado", - "SELECT_ALL": "Selecionar tudo", - "SELECT_NONE": "Selecione nenhum", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Corpo", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Prioridade", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Escolha o anexo", + "CLOSE": "Fechar", + "COMMAND": "Comando", + "COMPUTEDVARIABLES": "Caminho do script de variáveis computadas", + "CONDITION": "Condição", + "CONTEXT": "Contexto", + "COPY": "Copiar", + "COPY_PROJECT": "Copiar projeto", + "CREATED_AT": "Criado em", + "CUSTOM_ACTION": "Ação Personalizada", + "CUSTOM_ACTION_DATA": "Dados de ação personalizada", + "CUSTOM_APP": "Aplicativo Personalizado", + "DATABASE": "Base de dados", + "DELAY": "delay [min]", + "DELETE": "Excluir", + "DELETE_ODBC": "Deletar ODBC", + "DELETE_PROJECT": "Deletar Projeto", + "DELETE_SQUARERECORDING": "Excluir gravação", "DESCRIPTION": "Descrição", - "ADD_ODBC": "Adicionar ODBC", + "DIAL": "Discar", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Idioma", + "DIGIT": "Max Dígitos", + "DIGITS": "Dígitos", + "DOWNLOAD_SQUARERECORDING": "Download Gravação", + "DROP_TO_UPLOAD": "DROP TO UPLOAD", + "DROP_TO_UPLOAD_MESSAGE": "Você também pode soltar arquivos aqui para fazer o upload. Apenas XML - Máx. 5MB", + "DSN": "DSN", + "EDIT": "Editar", + "EDIT_ODBC": "Editar ODBC", + "EDIT_PROJECT": "Editar Projeto", + "EDIT_SQUARERECORDING": "Editar gravação", + "EDIT_XML": "Editar XML", + "END": "Fim", "ERRORS": { - "NAME_REQUIRED": "Campo obrigatório", "DSN_REQUIRED": "Campo obrigatório", - "PROJECT_REQUIRED": "Campo obrigatório", "FIELD_REQUIRED": "Campo obrigatório", + "NAME_REQUIRED": "Campo obrigatório", + "PROJECT_REQUIRED": "Campo obrigatório", "URL_REQUIRED": "Campo obrigatório" }, - "EDIT_ODBC": "Editar ODBC", - "DELETE_ODBC": "Deletar ODBC", - "SAVE": "Salvar", - "PROJECTS": "Projetos", - "ADD_PROJECT": "Adicionar Projeto", - "EDIT_PROJECT": "Editar Projeto", - "DELETE_PROJECT": "Deletar Projeto", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "Nova conexão ODBC", - "SQUARERECORDINGS": "Gravações", - "PROJECT": "Projeto", - "UNIQUEID": "Unique ID", - "PHONE": "Telefone", + "ESCAPE_DIGITS": "Dígitos de Escape", "EXTEN": "Exten", - "AUDIO": "Audio", - "CREATED_AT": "Criado em", - "NOTES": "Notas", - "NEW_PROJECT": "Novo projeto", - "EDIT": "Editar", - "LABEL": "Label", - "ANSWER": "Responda", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Opções", - "URL": "URL", - "TRUNK_NAME": "Tronco", - "START": "Start", - "FINALLY": "Finalmente", - "END": "Fim", - "HANGUP": "Desligar", - "DIAL": "Discar", + "EXTENSION": "Extensão", "EXT_DIAL": "Discagem Externa", - "QUEUE": "Fila", - "QUEUE_ID": "Fila", + "FILE": "Nome do arquivo", + "FILENAME": "Nome do arquivo", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finalmente", + "FINDBY": "Encontrar por", + "GETDIGITS": "Obter dígitos", + "GETSECRETDIGITS": "Obter dígitos secretos", + "GOAL": "Objetivo", + "GOALNAME": "Nome do objetivo", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Idioma", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tipo de texto", + "GOOGLE_TTS_LANGUAGE": "Idioma", "GOSUB": "GoSub", - "POSITION": "Posição", - "VOICEMAIL": "Correio de voz", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Ir para projetos", + "GRAMMAR": "Gramática", + "HANGUP": "Desligar", + "HEADERS": "Cabeçalhos", + "HELP": { + "BCC": "Você pode adicionar vários endereços separados por vírgulas (por exemplo, john.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Você pode adicionar vários endereços separados por vírgulas (por exemplo, john.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Example: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "mailbox@context", + "MAX_TEXT_TTS": "O número máximo de caracteres suportados é 250", + "TO": "Você pode adicionar vários endereços separados por vírgulas (por exemplo, john.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Número de dígitos ocultos", + "HIDDENDIGITSPOS": "Posição dos Dígitos ocultos", + "ID": "Id", + "IMPORT": "Importar", + "IMPORT_XML": "Importar XML", + "INTERVAL_ID": "Intervalo", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "iSpeech ASR", + "ISPEECHTTS": "iSpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Idioma", + "ISPEECH_TTS_LANGUAGE": "Idioma", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Código do idioma", + "LASTNAME": "Último nome", + "LIST_ID": "Lista", + "LOGIN": "Login", + "LOGOUT": "Logout", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", "MAILBOX": "Caixa de correio", - "OPTIONS": "Opções", - "SET": "Set", - "VARIABLE_ID": "Variável", - "VARIABLE_VALUE": "Valor", "MATH": "Math", + "MAXDIGIT": "Dígitos Máximos", + "MENU": "Menu", + "METHOD": "Método", + "MINDIGIT": "Dígitos Mínimos", + "MODEL": "Modelo", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Nome", + "NDAACTIVITY_TYPE": "Tipo de atividade", + "NDAGENERATE_AUDIO": "Gerar arquivo de áudio", + "NDASSISTANT_URL": "URL NDASSISTANT", + "NDAUTH_URL": "URL do NDAUTH", + "NEW": "Novo", + "NEW_ODBC": "Nova conexão ODBC", + "NEW_PROJECT": "Novo projeto", + "NEW_VARIABLE": "Nova Variável", + "NOOP": "NoOp", + "NOTES": "Notas", + "NO_AVAILABLE_INFO": "Nenhuma informação disponível", + "NUMBER": "Número", + "ODBC": "ODBC", + "ODBC_ID": "Conexão ODBC", + "OF": "do", + "OPEN": "Abrir", + "OPEN_NEW_WINDOW": "Abra em uma nova janela", + "OPEN_PROJECT": "Projeto aberto", "OPERATION": "Operação", + "OPTIONS": "Opções", + "OPTS": "Opções", + "OUTPUT": "Output", + "PAGE": "Página", + "PASSWORD": "Senha", + "PAUSE": "Pausa", + "PAUSE_ID": "Tipo de pausa", + "PERMISSIONADD_PROJECTS": "Adicionar usuários ao projeto", + "PHONE": "Telefone", "PLAYBACK": "Reprodução", + "POSITION": "Posição", + "PRIORITY": "Prioridade", + "PROJECT": "Projeto", + "PROJECTS": "Projetos", + "PROJECT_ID": "Projeto", + "QUERY": "Query", + "QUEUE": "Fila", + "QUEUE_ID": "Fila", + "RAWBODY": "Corpo", + "RAWHEADERS": "Cabeçalhos", + "RECORD": "Gravação", + "RECORDINGFORMAT": "Formato de gravação", "RESPONSE": "Tempo limite de resposta", - "DIGIT": "Max Dígitos", + "RESTAPI": "API Rest", "RETRY": "Repetições", - "DIGITS": "Dígitos", - "ESCAPE_DIGITS": "Dígitos de Escape", - "MENU": "Menu", + "ROWSPERPAGE": "Linhas por página", + "SAVE": "Salvar", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Número", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Texto", - "GOOGLE_TTS_LANGUAGE": "Idioma", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "iSpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Idioma", - "SPEED": "Velocidade", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Obter dígitos", - "MINDIGIT": "Dígitos Mínimos", - "MAXDIGIT": "Dígitos Máximos", - "HIDDENDIGITSNUM": "Número de dígitos ocultos", - "HIDDENDIGITSPOS": "Posição dos Dígitos ocultos", - "GETSECRETDIGITS": "Obter dígitos secretos", - "RECORD": "Gravação", - "FILE": "Nome do arquivo", - "RECORDINGFORMAT": "Formato de gravação", - "DATABASE": "Base de dados", - "ODBC_ID": "Conexão ODBC", - "QUERY": "Query", - "MODEL": "Modelo", - "ISPEECH_ASR_LANGUAGE": "Idioma", - "BEEP": "Beep", - "ISPEECHASR": "iSpeech ASR", + "SEARCH_FOR_ANYONE": "Procurar", + "SELECTED": "Selecionado", + "SELECTED_USERS": "Usuários Selecionados", + "SELECT_ALL": "Selecionar tudo", + "SELECT_NONE": "Selecione nenhum", + "SENDFAX": "Enviar Fax", + "SENDMAIL": "Enviar Email", "SENDSMS": "Enviar SMS", - "ACCOUNT_ID": "Conta", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Conta", "SMS_TEXT": "Texto", - "SENDMAIL": "Enviar Email", - "TEMPLATE_ID": "Modelo", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Velocidade", + "SQUARERECORDINGS": "Gravações", + "SSMLGENDER": "Gênero", + "START": "Start", "SUBJECT": "Assunto", - "GOTOC": "GoTo", - "CONTEXT": "Contexto", - "EXTENSION": "Extensão", - "PRIORITY": "Prioridade", - "GOTOIF": "GoToIf", - "CONDITION": "Condição", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Intervalo", - "VSWITCH": "Variable Switch", - "GOAL": "Objetivo", - "GOALNAME": "Nome do objetivo", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "Sistema", - "COMMAND": "Comando", - "ARGS": "Argumentos", "SUBPROJECT": "Subprojeto", - "PROJECT_ID": "Projeto", - "CUSTOM_APP": "Aplicativo Personalizado", - "APPLICATION": "Aplicação", - "CALLBACK": "Callback", - "LASTNAME": "Último nome", - "LIST_ID": "Lista", - "DELAY": "delay [min]", - "OPEN_NEW_WINDOW": "Abra em uma nova janela", - "OPEN_PROJECT": "Projeto aberto", - "COPY": "Copiar", - "OPEN": "Abrir", - "NEW": "Novo", - "COPY_PROJECT": "Copiar projeto", - "NEW_VARIABLE": "Nova Variável", - "ADD_VARIABLE": "Adicionar Variável", - "UPDATE_DESCRIPTION": "Atualizar descrição", - "EDIT_XML": "Editar XML", - "IMPORT_XML": "Importar XML", - "IMPORT": "Importar", - "DROP_TO_UPLOAD": "DROP TO UPLOAD", - "DROP_TO_UPLOAD_MESSAGE": "Você também pode soltar arquivos aqui para fazer o upload. Apenas XML - Máx. 5MB", - "CLOSE": "Fechar", - "NO_AVAILABLE_INFO": "Nenhuma informação disponível", - "GO_TO_PROJECTS": "Ir para projetos", - "UPDATE_INFO": "Informação de atualização", - "AGENTS": "Agentes", + "SYSTEM": "Sistema", "TELEPHONES": "Telefones", - "USERS": "Usuários", - "HELP": { - "MAILBOX": "mailbox@context", - "DSN": "Example: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "Você pode adicionar vários endereços separados por vírgulas (por exemplo, john.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Você pode adicionar vários endereços separados por vírgulas (por exemplo, john.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "Você pode adicionar vários endereços separados por vírgulas (por exemplo, john.doe@xcally.com, jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Escolha o anexo", - "ATTACHMENT_NAME": "Nome do Anexo", - "ATTACHMENT_TYPE": "Tipo de Anexo", - "ATTACHMENT_PATH": "Caminho de Anexos", - "SENDFAX": "Enviar Fax", - "DELETE_SQUARERECORDING": "Excluir gravação", - "DOWNLOAD_SQUARERECORDING": "Download Gravação", - "FILENAME": "Nome do arquivo", - "EDIT_SQUARERECORDING": "Editar gravação", - "DELETE": "Excluir", - "PAGE": "Página", - "ROWSPERPAGE": "Linhas por página", - "OF": "do", - "CALLBACK_PRIORITY": "Prioridade", - "GOOGLE_ASR_LANGUAGE": "Idioma", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Access Key ID", - "AWS_SECRET_ACCESS_KEY": "Secret Access Key", - "AWS_POLLY_REGION": "Região", - "AWS_POLLY_VOICE": "Voz", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Gramática", + "TEMPLATE_ID": "Modelo", + "TEST_ODBC": "Teste ODBC", + "TEXT": "Texto", "TILDEASR": "Tilde ASR", - "APPID": "ID do aplicativo", - "APPSECRET": "App Secret", - "NDASSISTANT_URL": "URL NDASSISTANT", - "NDAUTH_URL": "URL do NDAUTH", - "PASSWORD": "Senha", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Tronco", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Unique ID", + "UNPAUSE": "Fim da Pausa", + "UPDATE_DESCRIPTION": "Atualizar descrição", + "UPDATE_INFO": "Informação de atualização", + "URI": "URI", + "URL": "URL", "USERNAME": "Nome de usuário", - "NDAGENERATE_AUDIO": "Gerar arquivo de áudio", - "CUSTOM_ACTION": "Ação Personalizada", - "CUSTOM_ACTION_DATA": "Dados de ação personalizada", - "NDAACTIVITY_TYPE": "Tipo de atividade", - "APIKEY": "Chave API", - "AUDIOENCODING": "Codificação de áudio", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Código do idioma", - "SSMLGENDER": "Gênero", - "BODY": "Corpo", - "COMPUTEDVARIABLES": "Caminho do script de variáveis computadas", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tipo de texto", - "HEADERS": "Cabeçalhos", - "METHOD": "Método", - "RAWBODY": "Corpo", - "RAWHEADERS": "Cabeçalhos", - "RESTAPI": "API Rest", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Usuários", + "VARIABLE_ID": "Variável", + "VARIABLE_VALUE": "Valor", + "VOICEMAIL": "Correio de voz", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/pt-PT.json b/public/app/main/apps/callysquare/i18n/pt-PT.json index 24dc683..c7496c9 100644 --- a/public/app/main/apps/callysquare/i18n/pt-PT.json +++ b/public/app/main/apps/callysquare/i18n/pt-PT.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Adicionar usuários ao projeto", + "ADD_ODBC": "Adicionar ODBC", + "ADD_PROJECT": "Adicionar projeto", + "ADD_VARIABLE": "Acrescentar variável", + "AGENTS": "Agentes", + "AGI": "AGI", + "ALL_USERS": "Todos os usuários", + "ANSWER": "Answer", + "APIKEY": "Chave API", + "APPID": "ID App", + "APPLICATION": "Application", + "APPSECRET": "App Secret", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Nome do anexo", + "ATTACHMENT_PATH": "Caminho de anexos", + "ATTACHMENT_TYPE": "Tipo de anexo", + "AUDIO": "Áudio", + "AUDIOENCODING": "Codificação de áudio", "AWSLEX": "Amazon Lex", - "NAME": "Nome", - "ODBC": "ODBC", - "TEST_ODBC": "Teste ODBC", - "SEARCH_FOR_ANYONE": "Pesquisar todos", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "ID da chave de acesso", + "AWS_BOT_NAME": "Nome do bot", + "AWS_LEX_REGION": "Região", + "AWS_POLLY_REGION": "Região", + "AWS_POLLY_VOICE": "Voice", + "AWS_SECRET_ACCESS_KEY": "Chave de Acesso Secreto", + "AWS_TEXT_TYPE": "Tipo de texto", "BACK": "De volta", - "SELECTED": "Selecionada", - "SELECT_ALL": "Selecionar todas", - "SELECT_NONE": "Selecione Nenhum", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Corpo", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Prioridade", + "CALLYSQUARE": "Camente Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Escolha o acessório", + "CLOSE": "Fechar", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Caminho do script de variáveis computadas", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Cópia", + "COPY_PROJECT": "Projecto de cópia", + "CREATED_AT": "Criado em", + "CUSTOM_ACTION": "Ação Personalizada", + "CUSTOM_ACTION_DATA": "Dados de ação personalizada", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "Excluir", + "DELETE_ODBC": "Excluir ODBC", + "DELETE_PROJECT": "Excluir o projeto", + "DELETE_SQUARERECORDING": "Excluir gravação Quadrado", "DESCRIPTION": "Descrição", - "ADD_ODBC": "Adicionar ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Língua", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Download Square a gravação", + "DROP_TO_UPLOAD": "Gota PARA FAZER UPLOAD", + "DROP_TO_UPLOAD_MESSAGE": "Você também pode arrastar arquivos aqui para carregar. Apenas XML - Max. 5 MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Editar ODBC", + "EDIT_PROJECT": "Editar Projecto", + "EDIT_SQUARERECORDING": "Editar a gravação de quadrados", + "EDIT_XML": "Editar XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "O Nome é obrigatório", "DSN_REQUIRED": "O DSN é necessária", - "PROJECT_REQUIRED": "O projeto é necessário", "FIELD_REQUIRED": "O campo é obrigatório", + "NAME_REQUIRED": "O Nome é obrigatório", + "PROJECT_REQUIRED": "O projeto é necessário", "URL_REQUIRED": "Campo obrigatório" }, - "EDIT_ODBC": "Editar ODBC", - "DELETE_ODBC": "Excluir ODBC", - "SAVE": "Salvar", - "PROJECTS": "Projectos", - "ADD_PROJECT": "Adicionar projeto", - "EDIT_PROJECT": "Editar Projecto", - "DELETE_PROJECT": "Excluir o projeto", - "CALLYSQUARE": "Camente Square", - "ID": "Id", - "NEW_ODBC": "Nova conexão ODBC", - "SQUARERECORDINGS": "Praça de gravações", - "PROJECT": "Projecto", - "UNIQUEID": "ID exclusivo", - "PHONE": "Telefone", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "Áudio", - "CREATED_AT": "Criado em", - "NOTES": "Notas", - "NEW_PROJECT": "Novo Projeto", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Nome de arquivo", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Encontrar por", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Idioma", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tipo de texto", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Vá para projectos", + "GRAMMAR": "Gramática", + "HANGUP": "Hangup", + "HEADERS": "Cabeçalhos", + "HELP": { + "BCC": "Você pode adicionar vários endereços com vírgulas (por exemplo, Jane.miller@xcally.com) john.doe@xcally.com", + "CC": "Você pode adicionar vários endereços com vírgulas (por exemplo, Jane.miller@xcally.com) john.doe@xcally.com", + "DSN": "Exemplo: DRIVER=MySQL;servidor=127.0.0.1;UID=xcall;PWD=senha;DATABASE=motion", + "MAILBOX": "Caixa de correio@contexto", + "MAX_TEXT_TTS": "O número máximo de caracteres suportados é 250", + "TO": "Você pode adicionar vários endereços com vírgulas (por exemplo, Jane.miller@xcally.com) john.doe@xcally.com" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "Importação", + "IMPORT_XML": "Importação XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Código do idioma", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Entrar", + "LOGOUT": "Sair", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Método", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Nome", + "NDAACTIVITY_TYPE": "Tipo de atividade", + "NDAGENERATE_AUDIO": "Gerar arquivo de áudio", + "NDASSISTANT_URL": "URL NDASSISTANT", + "NDAUTH_URL": "URL do NDAUTH", + "NEW": "Novo", + "NEW_ODBC": "Nova conexão ODBC", + "NEW_PROJECT": "Novo Projeto", + "NEW_VARIABLE": "Nova Variável", + "NOOP": "NoOp", + "NOTES": "Notas", + "NO_AVAILABLE_INFO": "Sem informações disponíveis", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "De", + "OPEN": "Abra", + "OPEN_NEW_WINDOW": "Abrir em uma nova janela", + "OPEN_PROJECT": "Projeto aberto", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Página", + "PASSWORD": "Senha", + "PAUSE": "Pausa", + "PAUSE_ID": "Tipo de pausa", + "PERMISSIONADD_PROJECTS": "Adicionar usuários ao projeto", + "PHONE": "Telefone", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Projecto", + "PROJECTS": "Projectos", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "Corpo", + "RAWHEADERS": "Cabeçalhos", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "API Rest", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Linhas por página", + "SAVE": "Salvar", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Pesquisar todos", + "SELECTED": "Selecionada", + "SELECTED_USERS": "Usuários Selecionados", + "SELECT_ALL": "Selecionar todas", + "SELECT_NONE": "Selecione Nenhum", + "SENDFAX": "Enviar Fax", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Conta", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Praça de gravações", + "SSMLGENDER": "Gênero", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "Abrir em uma nova janela", - "OPEN_PROJECT": "Projeto aberto", - "COPY": "Cópia", - "OPEN": "Abra", - "NEW": "Novo", - "COPY_PROJECT": "Projecto de cópia", - "NEW_VARIABLE": "Nova Variável", - "ADD_VARIABLE": "Acrescentar variável", - "UPDATE_DESCRIPTION": "A descrição da actualização", - "EDIT_XML": "Editar XML", - "IMPORT_XML": "Importação XML", - "IMPORT": "Importação", - "DROP_TO_UPLOAD": "Gota PARA FAZER UPLOAD", - "DROP_TO_UPLOAD_MESSAGE": "Você também pode arrastar arquivos aqui para carregar. Apenas XML - Max. 5 MB", - "CLOSE": "Fechar", - "NO_AVAILABLE_INFO": "Sem informações disponíveis", - "GO_TO_PROJECTS": "Vá para projectos", - "UPDATE_INFO": "Atualizar Informações", - "AGENTS": "Agentes", + "SYSTEM": "System", "TELEPHONES": "Telefones", - "USERS": "Os usuários", - "HELP": { - "MAILBOX": "Caixa de correio@contexto", - "DSN": "Exemplo: DRIVER=MySQL;servidor=127.0.0.1;UID=xcall;PWD=senha;DATABASE=motion", - "TO": "Você pode adicionar vários endereços com vírgulas (por exemplo, Jane.miller@xcally.com) john.doe@xcally.com", - "CC": "Você pode adicionar vários endereços com vírgulas (por exemplo, Jane.miller@xcally.com) john.doe@xcally.com", - "BCC": "Você pode adicionar vários endereços com vírgulas (por exemplo, Jane.miller@xcally.com) john.doe@xcally.com" - }, - "CHOOSE_ATTACHMENT": "Escolha o acessório", - "ATTACHMENT_NAME": "Nome do anexo", - "ATTACHMENT_TYPE": "Tipo de anexo", - "ATTACHMENT_PATH": "Caminho de anexos", - "SENDFAX": "Enviar Fax", - "DELETE_SQUARERECORDING": "Excluir gravação Quadrado", - "DOWNLOAD_SQUARERECORDING": "Download Square a gravação", - "FILENAME": "Nome de arquivo", - "EDIT_SQUARERECORDING": "Editar a gravação de quadrados", - "DELETE": "Excluir", - "PAGE": "Página", - "ROWSPERPAGE": "Linhas por página", - "OF": "De", - "CALLBACK_PRIORITY": "Prioridade", - "GOOGLE_ASR_LANGUAGE": "Idioma", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "ID da chave de acesso", - "AWS_SECRET_ACCESS_KEY": "Chave de Acesso Secreto", - "AWS_POLLY_REGION": "Região", - "AWS_POLLY_VOICE": "Voice", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Gramática", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Teste ODBC", + "TEXT": "Text", "TILDEASR": "ASR til", - "APPID": "ID App", - "APPSECRET": "App Secret", - "SMS_ACCOUNT_ID": "Conta", - "FINDBY": "Encontrar por", - "LOGIN": "Entrar", - "LOGOUT": "Sair", - "PAUSE": "Pausa", - "PAUSE_ID": "Tipo de pausa", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "ID exclusivo", "UNPAUSE": "Pausa final", + "UPDATE_DESCRIPTION": "A descrição da actualização", + "UPDATE_INFO": "Atualizar Informações", "URI": "URI", - "AWS_TEXT_TYPE": "Tipo de texto", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Língua", - "ADDUSER_PROJECTS": "Adicionar usuários ao projeto", - "ALL_USERS": "Todos os usuários", - "PERMISSIONADD_PROJECTS": "Adicionar usuários ao projeto", - "SELECTED_USERS": "Usuários Selecionados", - "AWS_BOT_NAME": "Nome do bot", - "AWS_LEX_REGION": "Região", - "NDASSISTANT_URL": "URL NDASSISTANT", - "NDAUTH_URL": "URL do NDAUTH", - "PASSWORD": "Senha", + "URL": "URL", "USERNAME": "Nome de usuário", - "NDAGENERATE_AUDIO": "Gerar arquivo de áudio", - "CUSTOM_ACTION": "Ação Personalizada", - "CUSTOM_ACTION_DATA": "Dados de ação personalizada", - "NDAACTIVITY_TYPE": "Tipo de atividade", - "APIKEY": "Chave API", - "AUDIOENCODING": "Codificação de áudio", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Código do idioma", - "SSMLGENDER": "Gênero", - "BODY": "Corpo", - "COMPUTEDVARIABLES": "Caminho do script de variáveis computadas", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Tipo de texto", - "HEADERS": "Cabeçalhos", - "METHOD": "Método", - "RAWBODY": "Corpo", - "RAWHEADERS": "Cabeçalhos", - "RESTAPI": "API Rest", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Os usuários", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/ru.json b/public/app/main/apps/callysquare/i18n/ru.json index 304487f..73f5c2e 100644 --- a/public/app/main/apps/callysquare/i18n/ru.json +++ b/public/app/main/apps/callysquare/i18n/ru.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Добавить пользователей в проект", + "ADD_ODBC": "Добавить ODBC", + "ADD_PROJECT": "Добавить проект", + "ADD_VARIABLE": "Добавить переменную", + "AGENTS": "Операторы", + "AGI": "AGI", + "ALL_USERS": "Все пользователи", + "ANSWER": "Answer", + "APIKEY": "ApiKey", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "App Secret", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Имя вложения", + "ATTACHMENT_PATH": "Вложение путь", + "ATTACHMENT_TYPE": "Тип подключения", + "AUDIO": "Аудио", + "AUDIOENCODING": "Аудио кодирование", "AWSLEX": "Amazon Lex", - "NAME": "Имя", - "ODBC": "ODBC", - "TEST_ODBC": "Проверка ODBC", - "SEARCH_FOR_ANYONE": "Для поиска любого", + "AWSPOLLY": "AWS Полли", + "AWS_ACCESS_KEY_ID": "Ключ доступа ID", + "AWS_BOT_NAME": "Имя бота", + "AWS_LEX_REGION": "Область, край", + "AWS_POLLY_REGION": "Регион", + "AWS_POLLY_VOICE": "Голос", + "AWS_SECRET_ACCESS_KEY": "Секретный ключ доступа", + "AWS_TEXT_TYPE": "Тип текста", "BACK": "Назад", - "SELECTED": "Выбранные", - "SELECT_ALL": "Выбрать все", - "SELECT_NONE": "Выберите пункт None", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "тело", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Приоритет", + "CALLYSQUARE": "Юндкп подкрепить проектную документацию путем систематического квадратных", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Выбрать вложение", + "CLOSE": "Закрыть", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Путь к сценарию вычисляемых переменных", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Копирование", + "COPY_PROJECT": "Копия проекта", + "CREATED_AT": "Созданные в", + "CUSTOM_ACTION": "Custom Action", + "CUSTOM_ACTION_DATA": "Данные пользовательских действий", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "Удалить", + "DELETE_ODBC": "Удалить ODBC", + "DELETE_PROJECT": "Удалить", + "DELETE_SQUARERECORDING": "Удалить запись площади", "DESCRIPTION": "Описание", - "ADD_ODBC": "Добавить ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "язык", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Загрузить квадратных записи", + "DROP_TO_UPLOAD": "Раскрывающийся список ДЛЯ ЗАГРУЗКИ", + "DROP_TO_UPLOAD_MESSAGE": "Также можно перетащить файлы для загрузки здесь. Только XML - Max. 5 МБ", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Редактировать ODBC", + "EDIT_PROJECT": "Редактировать проект", + "EDIT_SQUARERECORDING": "Редактировать запись площади", + "EDIT_XML": "Редактирование XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Это имя требуется", "DSN_REQUIRED": "DSN не требуется", - "PROJECT_REQUIRED": "В рамках этого проекта не требуется", "FIELD_REQUIRED": "Поле является обязательным", + "NAME_REQUIRED": "Это имя требуется", + "PROJECT_REQUIRED": "В рамках этого проекта не требуется", "URL_REQUIRED": "Обязательное поле" }, - "EDIT_ODBC": "Редактировать ODBC", - "DELETE_ODBC": "Удалить ODBC", - "SAVE": "Сохранить", - "PROJECTS": "Проекты", - "ADD_PROJECT": "Добавить проект", - "EDIT_PROJECT": "Редактировать проект", - "DELETE_PROJECT": "Удалить", - "CALLYSQUARE": "Юндкп подкрепить проектную документацию путем систематического квадратных", - "ID": "Id", - "NEW_ODBC": "Новые связи ODBC", - "SQUARERECORDINGS": "Квадратный записей", - "PROJECT": "Проект", - "UNIQUEID": "Уникальный идентификатор", - "PHONE": "Номер телефона", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Удлинительные кабели приобретаются", - "AUDIO": "Аудио", - "CREATED_AT": "Созданные в", - "NOTES": "Примечания", - "NEW_PROJECT": "Новый проект", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Имя файла", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Поиск по", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Язык", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Тип текста", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Перейти к проектам", + "GRAMMAR": "Грамматика", + "HANGUP": "Hangup", + "HEADERS": "Заголовки", + "HELP": { + "BCC": "Вы можете добавить несколько адресов с помощью запятыми (например, John.doe@xcally.com, jane.miller@xcally.com)", + "CC": "Вы можете добавить несколько адресов с помощью запятыми (например, John.doe@xcally.com, jane.miller@xcally.com)", + "DSN": "Пример: DRIVER=MySQL;сервер = 127.0.0.1;uid=xcall;PWD=Пароль;БАЗЫ ДАННЫХ=motion", + "MAILBOX": "Фотогалерея@контексте", + "MAX_TEXT_TTS": "Максимальное поддерживаемое количество символов - 250.", + "TO": "Вы можете добавить несколько адресов с помощью запятыми (например, John.doe@xcally.com, jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "Импорт", + "IMPORT_XML": "Импорт XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Код языка", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Авторизоваться", + "LOGOUT": "Выйти", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox текст-в-речь", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "метод", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Имя", + "NDAACTIVITY_TYPE": "Тип деятельности", + "NDAGENERATE_AUDIO": "Создать аудио файл", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "Ндаут URL", + "NEW": "Новые", + "NEW_ODBC": "Новые связи ODBC", + "NEW_PROJECT": "Новый проект", + "NEW_VARIABLE": "Новой переменной", + "NOOP": "NoOp", + "NOTES": "Примечания", + "NO_AVAILABLE_INFO": "Нет доступной информации", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "В", + "OPEN": "Открыть", + "OPEN_NEW_WINDOW": "Открыть в новом окне", + "OPEN_PROJECT": "Открыть проект", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Страница", + "PASSWORD": "пароль", + "PAUSE": "Пауза", + "PAUSE_ID": "Тип паузы", + "PERMISSIONADD_PROJECTS": "Добавить пользователей в проект", + "PHONE": "Номер телефона", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Проект", + "PROJECTS": "Проекты", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "тело", + "RAWHEADERS": "Заголовки", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "API отдыха", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Строк на странице", + "SAVE": "Сохранить", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Для поиска любого", + "SELECTED": "Выбранные", + "SELECTED_USERS": "Выбранные пользователи", + "SELECT_ALL": "Выбрать все", + "SELECT_NONE": "Выберите пункт None", + "SENDFAX": "Отправка факса", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Счет", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Квадратный записей", + "SSMLGENDER": "Пол", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "Открыть в новом окне", - "OPEN_PROJECT": "Открыть проект", - "COPY": "Копирование", - "OPEN": "Открыть", - "NEW": "Новые", - "COPY_PROJECT": "Копия проекта", - "NEW_VARIABLE": "Новой переменной", - "ADD_VARIABLE": "Добавить переменную", - "UPDATE_DESCRIPTION": "Описание обновления", - "EDIT_XML": "Редактирование XML", - "IMPORT_XML": "Импорт XML", - "IMPORT": "Импорт", - "DROP_TO_UPLOAD": "Раскрывающийся список ДЛЯ ЗАГРУЗКИ", - "DROP_TO_UPLOAD_MESSAGE": "Также можно перетащить файлы для загрузки здесь. Только XML - Max. 5 МБ", - "CLOSE": "Закрыть", - "NO_AVAILABLE_INFO": "Нет доступной информации", - "GO_TO_PROJECTS": "Перейти к проектам", - "UPDATE_INFO": "Обновление информации", - "AGENTS": "Операторы", + "SYSTEM": "System", "TELEPHONES": "Телефоны", - "USERS": "Пользователи", - "HELP": { - "MAILBOX": "Фотогалерея@контексте", - "DSN": "Пример: DRIVER=MySQL;сервер = 127.0.0.1;uid=xcall;PWD=Пароль;БАЗЫ ДАННЫХ=motion", - "TO": "Вы можете добавить несколько адресов с помощью запятыми (например, John.doe@xcally.com, jane.miller@xcally.com)", - "CC": "Вы можете добавить несколько адресов с помощью запятыми (например, John.doe@xcally.com, jane.miller@xcally.com)", - "BCC": "Вы можете добавить несколько адресов с помощью запятыми (например, John.doe@xcally.com, jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Выбрать вложение", - "ATTACHMENT_NAME": "Имя вложения", - "ATTACHMENT_TYPE": "Тип подключения", - "ATTACHMENT_PATH": "Вложение путь", - "SENDFAX": "Отправка факса", - "DELETE_SQUARERECORDING": "Удалить запись площади", - "DOWNLOAD_SQUARERECORDING": "Загрузить квадратных записи", - "FILENAME": "Имя файла", - "EDIT_SQUARERECORDING": "Редактировать запись площади", - "DELETE": "Удалить", - "PAGE": "Страница", - "ROWSPERPAGE": "Строк на странице", - "OF": "В", - "CALLBACK_PRIORITY": "Приоритет", - "GOOGLE_ASR_LANGUAGE": "Язык", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Полли", - "AWS_ACCESS_KEY_ID": "Ключ доступа ID", - "AWS_SECRET_ACCESS_KEY": "Секретный ключ доступа", - "AWS_POLLY_REGION": "Регион", - "AWS_POLLY_VOICE": "Голос", - "LUMENVOXTTS": "Lumenvox текст-в-речь", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Грамматика", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Проверка ODBC", + "TEXT": "Text", "TILDEASR": "Тильда ASR", - "APPID": "App ID", - "APPSECRET": "App Secret", - "SMS_ACCOUNT_ID": "Счет", - "FINDBY": "Поиск по", - "LOGIN": "Авторизоваться", - "LOGOUT": "Выйти", - "PAUSE": "Пауза", - "PAUSE_ID": "Тип паузы", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Уникальный идентификатор", "UNPAUSE": "Конец паузы", + "UPDATE_DESCRIPTION": "Описание обновления", + "UPDATE_INFO": "Обновление информации", "URI": "URI", - "AWS_TEXT_TYPE": "Тип текста", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "язык", - "ADDUSER_PROJECTS": "Добавить пользователей в проект", - "ALL_USERS": "Все пользователи", - "PERMISSIONADD_PROJECTS": "Добавить пользователей в проект", - "SELECTED_USERS": "Выбранные пользователи", - "AWS_BOT_NAME": "Имя бота", - "AWS_LEX_REGION": "Область, край", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "Ндаут URL", - "PASSWORD": "пароль", + "URL": "URL", "USERNAME": "имя пользователя", - "NDAGENERATE_AUDIO": "Создать аудио файл", - "CUSTOM_ACTION": "Custom Action", - "CUSTOM_ACTION_DATA": "Данные пользовательских действий", - "NDAACTIVITY_TYPE": "Тип деятельности", - "APIKEY": "ApiKey", - "AUDIOENCODING": "Аудио кодирование", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Код языка", - "SSMLGENDER": "Пол", - "BODY": "тело", - "COMPUTEDVARIABLES": "Путь к сценарию вычисляемых переменных", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Тип текста", - "HEADERS": "Заголовки", - "METHOD": "метод", - "RAWBODY": "тело", - "RAWHEADERS": "Заголовки", - "RESTAPI": "API отдыха", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Пользователи", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/sv.json b/public/app/main/apps/callysquare/i18n/sv.json index 8ffa655..a8000bf 100644 --- a/public/app/main/apps/callysquare/i18n/sv.json +++ b/public/app/main/apps/callysquare/i18n/sv.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Konto", + "ADDUSER_PROJECTS": "Lägg till användare till projektet", + "ADD_ODBC": "Lägg till ODBC", + "ADD_PROJECT": "Lägg till projekt", + "ADD_VARIABLE": "Skapa variabel", + "AGENTS": "Agenter", + "AGI": "AGI", + "ALL_USERS": "Alla användare", + "ANSWER": "Svar", + "APIKEY": "apikey", + "APPID": "App-ID", + "APPLICATION": "Applikation", + "APPSECRET": "App Secret", + "ARGS": "Argument", + "ATTACHMENT_NAME": "Namn på bilaga", + "ATTACHMENT_PATH": "Sökväg till bilaga", + "ATTACHMENT_TYPE": "Typ av bilaga", + "AUDIO": "Ljud", + "AUDIOENCODING": "Ljudkodning", "AWSLEX": "Amazon Lex", - "NAME": "Namn", - "ODBC": "ODBC", - "TEST_ODBC": "Testa ODBC", - "SEARCH_FOR_ANYONE": "Sök", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "AWS Access Key Id", + "AWS_BOT_NAME": "Bot namn", + "AWS_LEX_REGION": "Område", + "AWS_POLLY_REGION": "Region", + "AWS_POLLY_VOICE": "Röst", + "AWS_SECRET_ACCESS_KEY": "AWS Secret Access Key", + "AWS_TEXT_TYPE": "Text typ", "BACK": "Tillbaka", - "SELECTED": "Vald", - "SELECT_ALL": "Markera alla", - "SELECT_NONE": "Välj ingen", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Kropp", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Prioritet", + "CALLYSQUARE": "Cally Square", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Välj bilaga", + "CLOSE": "Stäng", + "COMMAND": "Kommando", + "COMPUTEDVARIABLES": "Beräknade variabler Skriptväg", + "CONDITION": "Villkor", + "CONTEXT": "Context", + "COPY": "Kopiera", + "COPY_PROJECT": "Kopiera projekt", + "CREATED_AT": "Skapad", + "CUSTOM_ACTION": "Anpassad åtgärd", + "CUSTOM_ACTION_DATA": "Anpassad åtgärdsdata", + "CUSTOM_APP": "Anpassad applikation", + "DATABASE": "Databas", + "DELAY": "Fördröjning", + "DELETE": "Radera", + "DELETE_ODBC": "Radera ODBC", + "DELETE_PROJECT": "Ta bort projekt", + "DELETE_SQUARERECORDING": "Ta bort Cally Square-inspelning", "DESCRIPTION": "Beskrivning", - "ADD_ODBC": "Lägg till ODBC", + "DIAL": "Ring", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Språk", + "DIGIT": "Max antal siffror", + "DIGITS": "Siffror", + "DOWNLOAD_SQUARERECORDING": "Ladda ner Cally Square-inspelning", + "DROP_TO_UPLOAD": "SLÄPP FÖR UPPLADDNING", + "DROP_TO_UPLOAD_MESSAGE": "Du kan också släppa filer här för uppladdning. Endast XML - Max. 5MB", + "DSN": "DSN", + "EDIT": "Editera", + "EDIT_ODBC": "Redigera ODBC", + "EDIT_PROJECT": "Redigera projekt", + "EDIT_SQUARERECORDING": "Redigera Cally Square-inspelning", + "EDIT_XML": "Redigera XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Obligatoriskt fält", "DSN_REQUIRED": "Obligatoriskt fält", - "PROJECT_REQUIRED": "Obligatoriskt fält", "FIELD_REQUIRED": "Obligatoriskt fält", + "NAME_REQUIRED": "Obligatoriskt fält", + "PROJECT_REQUIRED": "Obligatoriskt fält", "URL_REQUIRED": "Obligatoriskt fält" }, - "EDIT_ODBC": "Redigera ODBC", - "DELETE_ODBC": "Radera ODBC", - "SAVE": "Spara", - "PROJECTS": "Projekt", - "ADD_PROJECT": "Lägg till projekt", - "EDIT_PROJECT": "Redigera projekt", - "DELETE_PROJECT": "Ta bort projekt", - "CALLYSQUARE": "Cally Square", - "ID": "Id", - "NEW_ODBC": "Ny ODBC-anslutning", - "SQUARERECORDINGS": "Inspelningar", - "PROJECT": "Projekt", - "UNIQUEID": "Unik ID", - "PHONE": "Telefon", + "ESCAPE_DIGITS": "Knapp för avslut", "EXTEN": "Extension", - "AUDIO": "Ljud", - "CREATED_AT": "Skapad", - "NOTES": "Anteckningar", - "NEW_PROJECT": "Nytt projekt", - "EDIT": "Editera", - "LABEL": "Etikett", - "ANSWER": "Svar", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Alternativ", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Ring", + "EXTENSION": "Anknytning", "EXT_DIAL": "Utgående samtal", - "QUEUE": "Kö", - "QUEUE_ID": "Kö-id", + "FILE": "Filnamn", + "FILENAME": "Filnamn", "FILE_ID": "Fil-id", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "Sök efter", + "GETDIGITS": "Hämta siffror", + "GETSECRETDIGITS": "Hämta dolda siffror", + "GOAL": "Mål", + "GOALNAME": "Målnamn", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Språk", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Texttyp", + "GOOGLE_TTS_LANGUAGE": "Språk", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Röstbrevlåda", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Gå till projekt", + "GRAMMAR": "Grammatik", + "HANGUP": "Hangup", + "HEADERS": "rubriker", + "HELP": { + "BCC": "Du kan lägga till flera adresser separerade med kommatecken (t.ex. john.doe@xcally.com jane.miller@xcally.com)", + "CC": "Du kan lägga till flera adresser separerade med kommatecken (t.ex. john.doe@xcally.com jane.miller@xcally.com)", + "DSN": "Exempel: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", + "MAILBOX": "epost@sammanhang", + "MAX_TEXT_TTS": "Det maximala antalet tecken som stöds är 250", + "TO": "Du kan lägga till flera adresser separerade med kommatecken (t.ex. john.doe@xcally.com jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Antal dolda siffror", + "HIDDENDIGITSPOS": "Position för dolda siffror", + "ID": "Id", + "IMPORT": "Importera", + "IMPORT_XML": "Importera XML", + "INTERVAL_ID": "Intervall", + "INTKEY": "Knapp", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Språk", + "ISPEECH_TTS_LANGUAGE": "Språk", + "KEY": "Nyckel", + "LABEL": "Etikett", + "LANGUAGECODE": "Språkkod", + "LASTNAME": "Efternamn", + "LIST_ID": "Lista", + "LOGIN": "Logga in", + "LOGOUT": "Logga ut", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To-Speech", + "MACRO": "Macro", "MAILBOX": "Emailinkorg", - "OPTIONS": "Inställningar", - "SET": "Set", - "VARIABLE_ID": "Variabel-id", - "VARIABLE_VALUE": "Variabelvärde", "MATH": "Beräkning", + "MAXDIGIT": "Max antal siffor", + "MENU": "Meny", + "METHOD": "Metod", + "MINDIGIT": "Min antal siffror", + "MODEL": "Modell", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Namn", + "NDAACTIVITY_TYPE": "Aktivitetstyp", + "NDAGENERATE_AUDIO": "Generera ljudfil", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH Url", + "NEW": "Nya", + "NEW_ODBC": "Ny ODBC-anslutning", + "NEW_PROJECT": "Nytt projekt", + "NEW_VARIABLE": "Ny variabel", + "NOOP": "NoOp", + "NOTES": "Anteckningar", + "NO_AVAILABLE_INFO": "Ingen tillgänglig info", + "NUMBER": "Nummer", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Anslutning", + "OF": "av", + "OPEN": "Öppna", + "OPEN_NEW_WINDOW": "Öppnas i ett nytt fönster", + "OPEN_PROJECT": "Öppna projekt", "OPERATION": "Operation", + "OPTIONS": "Inställningar", + "OPTS": "Alternativ", + "OUTPUT": "Resultat", + "PAGE": "Sida", + "PASSWORD": "Lösenord", + "PAUSE": "Paus", + "PAUSE_ID": "Paustyp", + "PERMISSIONADD_PROJECTS": "Lägg till rättigheter till användare", + "PHONE": "Telefon", "PLAYBACK": "Ljud", + "POSITION": "Position", + "PRIORITY": "Prioritet", + "PROJECT": "Projekt", + "PROJECTS": "Projekt", + "PROJECT_ID": "Projekt", + "QUERY": "Query", + "QUEUE": "Kö", + "QUEUE_ID": "Kö-id", + "RAWBODY": "Kropp", + "RAWHEADERS": "rubriker", + "RECORD": "Spela in", + "RECORDINGFORMAT": "Inspelningsformat", "RESPONSE": "Timeout", - "DIGIT": "Max antal siffror", + "RESTAPI": "Rest API", "RETRY": "Antal försök", - "DIGITS": "Siffror", - "ESCAPE_DIGITS": "Knapp för avslut", - "MENU": "Meny", + "ROWSPERPAGE": "Rader per sida", + "SAVE": "Spara", "SAYDIGITS": "Säg siffra", "SAYNUMBER": "Säg nummer", - "NUMBER": "Nummer", "SAYPHONETIC": "Tala fonetiskt", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Språk", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Nyckel", - "ISPEECH_TTS_LANGUAGE": "Språk", - "SPEED": "Hastighet", - "INTKEY": "Knapp", - "GETDIGITS": "Hämta siffror", - "MINDIGIT": "Min antal siffror", - "MAXDIGIT": "Max antal siffor", - "HIDDENDIGITSNUM": "Antal dolda siffror", - "HIDDENDIGITSPOS": "Position för dolda siffror", - "GETSECRETDIGITS": "Hämta dolda siffror", - "RECORD": "Spela in", - "FILE": "Filnamn", - "RECORDINGFORMAT": "Inspelningsformat", - "DATABASE": "Databas", - "ODBC_ID": "ODBC Anslutning", - "QUERY": "Query", - "MODEL": "Modell", - "ISPEECH_ASR_LANGUAGE": "Språk", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Sök", + "SELECTED": "Vald", + "SELECTED_USERS": "Valda användare", + "SELECT_ALL": "Markera alla", + "SELECT_NONE": "Välj ingen", + "SENDFAX": "Skicka fax", + "SENDMAIL": "Skicka epost", "SENDSMS": "Skicka SMS", - "ACCOUNT_ID": "Konto", - "TO": "Till", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "Konto", "SMS_TEXT": "Text", - "SENDMAIL": "Skicka epost", - "TEMPLATE_ID": "Mall", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Hastighet", + "SQUARERECORDINGS": "Inspelningar", + "SSMLGENDER": "Kön", + "START": "Start", "SUBJECT": "Ämne", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Anknytning", - "PRIORITY": "Prioritet", - "GOTOIF": "GoToIf", - "CONDITION": "Villkor", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Intervall", - "VSWITCH": "Variabel Switch", - "GOAL": "Mål", - "GOALNAME": "Målnamn", - "NOOP": "NoOp", - "OUTPUT": "Resultat", - "SYSTEM": "System", - "COMMAND": "Kommando", - "ARGS": "Argument", "SUBPROJECT": "Subprojekt", - "PROJECT_ID": "Projekt", - "CUSTOM_APP": "Anpassad applikation", - "APPLICATION": "Applikation", - "CALLBACK": "Callback", - "LASTNAME": "Efternamn", - "LIST_ID": "Lista", - "DELAY": "Fördröjning", - "OPEN_NEW_WINDOW": "Öppnas i ett nytt fönster", - "OPEN_PROJECT": "Öppna projekt", - "COPY": "Kopiera", - "OPEN": "Öppna", - "NEW": "Nya", - "COPY_PROJECT": "Kopiera projekt", - "NEW_VARIABLE": "Ny variabel", - "ADD_VARIABLE": "Skapa variabel", - "UPDATE_DESCRIPTION": "Uppdatera beskrivning", - "EDIT_XML": "Redigera XML", - "IMPORT_XML": "Importera XML", - "IMPORT": "Importera", - "DROP_TO_UPLOAD": "SLÄPP FÖR UPPLADDNING", - "DROP_TO_UPLOAD_MESSAGE": "Du kan också släppa filer här för uppladdning. Endast XML - Max. 5MB", - "CLOSE": "Stäng", - "NO_AVAILABLE_INFO": "Ingen tillgänglig info", - "GO_TO_PROJECTS": "Gå till projekt", - "UPDATE_INFO": "Uppdatera info", - "AGENTS": "Agenter", + "SYSTEM": "System", "TELEPHONES": "Telefoner", - "USERS": "Användare", - "HELP": { - "MAILBOX": "epost@sammanhang", - "DSN": "Exempel: DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=password;DATABASE=motion", - "TO": "Du kan lägga till flera adresser separerade med kommatecken (t.ex. john.doe@xcally.com jane.miller@xcally.com)", - "CC": "Du kan lägga till flera adresser separerade med kommatecken (t.ex. john.doe@xcally.com jane.miller@xcally.com)", - "BCC": "Du kan lägga till flera adresser separerade med kommatecken (t.ex. john.doe@xcally.com jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Välj bilaga", - "ATTACHMENT_NAME": "Namn på bilaga", - "ATTACHMENT_TYPE": "Typ av bilaga", - "ATTACHMENT_PATH": "Sökväg till bilaga", - "SENDFAX": "Skicka fax", - "DELETE_SQUARERECORDING": "Ta bort Cally Square-inspelning", - "DOWNLOAD_SQUARERECORDING": "Ladda ner Cally Square-inspelning", - "FILENAME": "Filnamn", - "EDIT_SQUARERECORDING": "Redigera Cally Square-inspelning", - "DELETE": "Radera", - "PAGE": "Sida", - "ROWSPERPAGE": "Rader per sida", - "OF": "av", - "CALLBACK_PRIORITY": "Prioritet", - "GOOGLE_ASR_LANGUAGE": "Språk", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "AWS Access Key Id", - "AWS_SECRET_ACCESS_KEY": "AWS Secret Access Key", - "AWS_POLLY_REGION": "Region", - "AWS_POLLY_VOICE": "Röst", - "LUMENVOXTTS": "Lumenvox Text-To-Speech", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "Grammatik", + "TEMPLATE_ID": "Mall", + "TEST_ODBC": "Testa ODBC", + "TEXT": "Text", "TILDEASR": "Tilde ASR", - "APPID": "App-ID", - "APPSECRET": "App Secret", - "SMS_ACCOUNT_ID": "Konto", - "FINDBY": "Sök efter", - "LOGIN": "Logga in", - "LOGOUT": "Logga ut", - "PAUSE": "Paus", - "PAUSE_ID": "Paustyp", + "TIMEOUT": "Timeout", + "TO": "Till", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Unik ID", "UNPAUSE": "Slut på paus", + "UPDATE_DESCRIPTION": "Uppdatera beskrivning", + "UPDATE_INFO": "Uppdatera info", "URI": "URI", - "AWS_TEXT_TYPE": "Text typ", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Språk", - "ADDUSER_PROJECTS": "Lägg till användare till projektet", - "ALL_USERS": "Alla användare", - "PERMISSIONADD_PROJECTS": "Lägg till rättigheter till användare", - "SELECTED_USERS": "Valda användare", - "AWS_BOT_NAME": "Bot namn", - "AWS_LEX_REGION": "Område", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "NDAUTH Url", - "PASSWORD": "Lösenord", + "URL": "URL", "USERNAME": "Användarnamn", - "NDAGENERATE_AUDIO": "Generera ljudfil", - "CUSTOM_ACTION": "Anpassad åtgärd", - "CUSTOM_ACTION_DATA": "Anpassad åtgärdsdata", - "NDAACTIVITY_TYPE": "Aktivitetstyp", - "APIKEY": "apikey", - "AUDIOENCODING": "Ljudkodning", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Språkkod", - "SSMLGENDER": "Kön", - "BODY": "Kropp", - "COMPUTEDVARIABLES": "Beräknade variabler Skriptväg", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Texttyp", - "HEADERS": "rubriker", - "METHOD": "Metod", - "RAWBODY": "Kropp", - "RAWHEADERS": "rubriker", - "RESTAPI": "Rest API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Användare", + "VARIABLE_ID": "Variabel-id", + "VARIABLE_VALUE": "Variabelvärde", + "VOICEMAIL": "Röstbrevlåda", + "VSWITCH": "Variabel Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/tr.json b/public/app/main/apps/callysquare/i18n/tr.json index 3db923c..af24a14 100644 --- a/public/app/main/apps/callysquare/i18n/tr.json +++ b/public/app/main/apps/callysquare/i18n/tr.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "Projeye Kullanıcı Ekleme", + "ADD_ODBC": "Add ODBC", + "ADD_PROJECT": "Add Project", + "ADD_VARIABLE": "Add Değişken", + "AGENTS": "Ajanlar", + "AGI": "AGI", + "ALL_USERS": "Tüm kullanıcılar", + "ANSWER": "Answer", + "APIKEY": "ApiKey", + "APPID": "App ID", + "APPLICATION": "Application", + "APPSECRET": "App Gizli", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "Ek Adı", + "ATTACHMENT_PATH": "Bağlantı Yolu", + "ATTACHMENT_TYPE": "Bağlantı Tipi", + "AUDIO": "Ses", + "AUDIOENCODING": "Ses Kodlama", "AWSLEX": "Amazon Lex", - "NAME": "Adı", - "ODBC": "ODBC", - "TEST_ODBC": "Test ODBC", - "SEARCH_FOR_ANYONE": "Arama herkesin", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "Erişim Anahtarı ID", + "AWS_BOT_NAME": "Bot adı", + "AWS_LEX_REGION": "bölge", + "AWS_POLLY_REGION": "Bölge", + "AWS_POLLY_VOICE": "Ses", + "AWS_SECRET_ACCESS_KEY": "Gizli Erişim Tuşu", + "AWS_TEXT_TYPE": "Metin türü", "BACK": "Geri", - "SELECTED": "Seçilen", - "SELECT_ALL": "Tümünü Seç", - "SELECT_NONE": "Hiçbiri", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "Vücut", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "Öncelik", + "CALLYSQUARE": "Kare etkinleştirir", + "CC": "CC", + "CHOOSE_ATTACHMENT": "Ek seçin", + "CLOSE": "Close", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "Hesaplanan Değişkenler Komut Dosyası Yolu", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "Kopyalama", + "COPY_PROJECT": "Kopya Proje", + "CREATED_AT": "Oluşturulmuş", + "CUSTOM_ACTION": "Özel eylem", + "CUSTOM_ACTION_DATA": "Özel İşlem Verileri", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "Sil", + "DELETE_ODBC": "Delete ODBC", + "DELETE_PROJECT": "Proje silin", + "DELETE_SQUARERECORDING": "Delete Kare Kayıt", "DESCRIPTION": "Açıklama", - "ADD_ODBC": "Add ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "Dil", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "Yükleme Kare Kayıt", + "DROP_TO_UPLOAD": "İndirme YÜKLEME", + "DROP_TO_UPLOAD_MESSAGE": "Ayrıca dosyaları buraya yükleyin. Sadece XML - Maks. 5MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "Edit ODBC", + "EDIT_PROJECT": "Edit Project", + "EDIT_SQUARERECORDING": "Edit Kare Kayıt", + "EDIT_XML": "Edit XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "Adı gerekiyor", "DSN_REQUIRED": "DSN gerekli", - "PROJECT_REQUIRED": "Proje gerekiyor.", "FIELD_REQUIRED": "Bu alanı gerekli.", + "NAME_REQUIRED": "Adı gerekiyor", + "PROJECT_REQUIRED": "Proje gerekiyor.", "URL_REQUIRED": "Zorunlu alan" }, - "EDIT_ODBC": "Edit ODBC", - "DELETE_ODBC": "Delete ODBC", - "SAVE": "Kaydet", - "PROJECTS": "Projeler", - "ADD_PROJECT": "Add Project", - "EDIT_PROJECT": "Edit Project", - "DELETE_PROJECT": "Proje silin", - "CALLYSQUARE": "Kare etkinleştirir", - "ID": "Id", - "NEW_ODBC": "Yeni ODBC bağlantısı", - "SQUARERECORDINGS": "Kare Kayıtları", - "PROJECT": "Proje", - "UNIQUEID": "Benzersiz Kimliği", - "PHONE": "Telefon", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Uzatil", - "AUDIO": "Ses", - "CREATED_AT": "Oluşturulmuş", - "NOTES": "Notlar", - "NEW_PROJECT": "Yeni Proje", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "Dosya adı", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "By bul", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "Dil", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Metin Türü", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "Gi̇t projeler", + "GRAMMAR": "Dilbilgisi", + "HANGUP": "Hangup", + "HEADERS": "Başlıkları", + "HELP": { + "BCC": "Eklemek birden fazla adreslerini virgülle (örneğin john.doe@xcally.com, Jane.miller@xcally.com)", + "CC": "Eklemek birden fazla adreslerini virgülle (örneğin john.doe@xcally.com, Jane.miller@xcally.com)", + "DSN": "Örnek: SÜRÜCÜ=MySQL;SERVER=127,0.0,1;UID=xcall;PWD=parola;DATABASE=hareket", + "MAILBOX": "Posta kutusu@içerik", + "MAX_TEXT_TTS": "Desteklenen maksimum karakter sayısı 250'dir", + "TO": "Eklemek birden fazla adreslerini virgülle (örneğin john.doe@xcally.com, Jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "Alma", + "IMPORT_XML": "Import XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "Dil kodu", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "Oturum aç", + "LOGOUT": "Çıkış Yap", + "LUMENVOXASR": "ASR Lumenvox", + "LUMENVOXTTS": "Lumenvox Metin-Ses Dönüşümü İşlevi: Konuşma", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "Yöntem", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPSynth", + "NAME": "Adı", + "NDAACTIVITY_TYPE": "Aktivite türü", + "NDAGENERATE_AUDIO": "Ses Dosyası Oluştur", + "NDASSISTANT_URL": "NDASSISTANT URL'si", + "NDAUTH_URL": "NDAUTH URL'si", + "NEW": "Yeni", + "NEW_ODBC": "Yeni ODBC bağlantısı", + "NEW_PROJECT": "Yeni Proje", + "NEW_VARIABLE": "Yeni Değişken", + "NOOP": "NoOp", + "NOTES": "Notlar", + "NO_AVAILABLE_INFO": "Mevcut bilgisi", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "Ve", + "OPEN": "Açık", + "OPEN_NEW_WINDOW": "Yeni bir pencerede açılıyor", + "OPEN_PROJECT": "Açık Proje", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "Sayfa", + "PASSWORD": "Parola", + "PAUSE": "Duraklat", + "PAUSE_ID": "Duraklatma türü", + "PERMISSIONADD_PROJECTS": "Projeye Kullanıcı Ekleme", + "PHONE": "Telefon", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "Proje", + "PROJECTS": "Projeler", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "Vücut", + "RAWHEADERS": "Başlıkları", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "Dinlenme API'sı", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "Sayfadaki satırları", + "SAVE": "Kaydet", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "Arama herkesin", + "SELECTED": "Seçilen", + "SELECTED_USERS": "Seçilmiş Kullanıcılar", + "SELECT_ALL": "Tümünü Seç", + "SELECT_NONE": "Hiçbiri", + "SENDFAX": "Faks Gönderme", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "hesap", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "Kare Kayıtları", + "SSMLGENDER": "Cinsiyet", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "Yeni bir pencerede açılıyor", - "OPEN_PROJECT": "Açık Proje", - "COPY": "Kopyalama", - "OPEN": "Açık", - "NEW": "Yeni", - "COPY_PROJECT": "Kopya Proje", - "NEW_VARIABLE": "Yeni Değişken", - "ADD_VARIABLE": "Add Değişken", - "UPDATE_DESCRIPTION": "Güncelleme Açıklaması", - "EDIT_XML": "Edit XML", - "IMPORT_XML": "Import XML", - "IMPORT": "Alma", - "DROP_TO_UPLOAD": "İndirme YÜKLEME", - "DROP_TO_UPLOAD_MESSAGE": "Ayrıca dosyaları buraya yükleyin. Sadece XML - Maks. 5MB", - "CLOSE": "Close", - "NO_AVAILABLE_INFO": "Mevcut bilgisi", - "GO_TO_PROJECTS": "Gi̇t projeler", - "UPDATE_INFO": "Güncelleştirme Bilgisi", - "AGENTS": "Ajanlar", + "SYSTEM": "System", "TELEPHONES": "Telefonlar", - "USERS": "Kullanıcılar", - "HELP": { - "MAILBOX": "Posta kutusu@içerik", - "DSN": "Örnek: SÜRÜCÜ=MySQL;SERVER=127,0.0,1;UID=xcall;PWD=parola;DATABASE=hareket", - "TO": "Eklemek birden fazla adreslerini virgülle (örneğin john.doe@xcally.com, Jane.miller@xcally.com)", - "CC": "Eklemek birden fazla adreslerini virgülle (örneğin john.doe@xcally.com, Jane.miller@xcally.com)", - "BCC": "Eklemek birden fazla adreslerini virgülle (örneğin john.doe@xcally.com, Jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "Ek seçin", - "ATTACHMENT_NAME": "Ek Adı", - "ATTACHMENT_TYPE": "Bağlantı Tipi", - "ATTACHMENT_PATH": "Bağlantı Yolu", - "SENDFAX": "Faks Gönderme", - "DELETE_SQUARERECORDING": "Delete Kare Kayıt", - "DOWNLOAD_SQUARERECORDING": "Yükleme Kare Kayıt", - "FILENAME": "Dosya adı", - "EDIT_SQUARERECORDING": "Edit Kare Kayıt", - "DELETE": "Sil", - "PAGE": "Sayfa", - "ROWSPERPAGE": "Sayfadaki satırları", - "OF": "Ve", - "CALLBACK_PRIORITY": "Öncelik", - "GOOGLE_ASR_LANGUAGE": "Dil", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "Erişim Anahtarı ID", - "AWS_SECRET_ACCESS_KEY": "Gizli Erişim Tuşu", - "AWS_POLLY_REGION": "Bölge", - "AWS_POLLY_VOICE": "Ses", - "LUMENVOXTTS": "Lumenvox Metin-Ses Dönüşümü İşlevi: Konuşma", - "LUMENVOXASR": "ASR Lumenvox", - "GRAMMAR": "Dilbilgisi", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "Test ODBC", + "TEXT": "Text", "TILDEASR": "Arama teriminize ASR", - "APPID": "App ID", - "APPSECRET": "App Gizli", - "SMS_ACCOUNT_ID": "hesap", - "FINDBY": "By bul", - "LOGIN": "Oturum aç", - "LOGOUT": "Çıkış Yap", - "PAUSE": "Duraklat", - "PAUSE_ID": "Duraklatma türü", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "Benzersiz Kimliği", "UNPAUSE": "Duraklat Sonu", + "UPDATE_DESCRIPTION": "Güncelleme Açıklaması", + "UPDATE_INFO": "Güncelleştirme Bilgisi", "URI": "URI", - "AWS_TEXT_TYPE": "Metin türü", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "Dil", - "ADDUSER_PROJECTS": "Projeye Kullanıcı Ekleme", - "ALL_USERS": "Tüm kullanıcılar", - "PERMISSIONADD_PROJECTS": "Projeye Kullanıcı Ekleme", - "SELECTED_USERS": "Seçilmiş Kullanıcılar", - "AWS_BOT_NAME": "Bot adı", - "AWS_LEX_REGION": "bölge", - "NDASSISTANT_URL": "NDASSISTANT URL'si", - "NDAUTH_URL": "NDAUTH URL'si", - "PASSWORD": "Parola", + "URL": "URL", "USERNAME": "Kullanıcı adı", - "NDAGENERATE_AUDIO": "Ses Dosyası Oluştur", - "CUSTOM_ACTION": "Özel eylem", - "CUSTOM_ACTION_DATA": "Özel İşlem Verileri", - "NDAACTIVITY_TYPE": "Aktivite türü", - "APIKEY": "ApiKey", - "AUDIOENCODING": "Ses Kodlama", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "Dil kodu", - "SSMLGENDER": "Cinsiyet", - "BODY": "Vücut", - "COMPUTEDVARIABLES": "Hesaplanan Değişkenler Komut Dosyası Yolu", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "Metin Türü", - "HEADERS": "Başlıkları", - "METHOD": "Yöntem", - "RAWBODY": "Vücut", - "RAWHEADERS": "Başlıkları", - "RESTAPI": "Dinlenme API'sı", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPSynth" + "USERS": "Kullanıcılar", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/zh-CN.json b/public/app/main/apps/callysquare/i18n/zh-CN.json index 2b9c914..33f60b6 100644 --- a/public/app/main/apps/callysquare/i18n/zh-CN.json +++ b/public/app/main/apps/callysquare/i18n/zh-CN.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "将用户添加到项目", + "ADD_ODBC": "添加 ODBC", + "ADD_PROJECT": "添加项目", + "ADD_VARIABLE": "添加变量", + "AGENTS": "座席", + "AGI": "AGI", + "ALL_USERS": "所有用户", + "ANSWER": "Answer", + "APIKEY": "ApiKey", + "APPID": "应用标识", + "APPLICATION": "Application", + "APPSECRET": "App 秘密。", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "附件名称", + "ATTACHMENT_PATH": "附件路径", + "ATTACHMENT_TYPE": "附件类型", + "AUDIO": "音频", + "AUDIOENCODING": "音频编码", "AWSLEX": "Amazon Lex", - "NAME": "名称", - "ODBC": "ODBC", - "TEST_ODBC": "测试 ODBC", - "SEARCH_FOR_ANYONE": "搜索任何人", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "访问密钥标识符", + "AWS_BOT_NAME": "机器人的名字", + "AWS_LEX_REGION": "区域", + "AWS_POLLY_REGION": "区域", + "AWS_POLLY_VOICE": "语音", + "AWS_SECRET_ACCESS_KEY": "秘密访问密钥", + "AWS_TEXT_TYPE": "文字类型", "BACK": "返回", - "SELECTED": "选中的", - "SELECT_ALL": "选择所有", - "SELECT_NONE": "选择 “无”", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "身体", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "优先级", + "CALLYSQUARE": "邝美云广场", + "CC": "CC", + "CHOOSE_ATTACHMENT": "选择附件", + "CLOSE": "关闭", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "计算变量脚本路径", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "复制", + "COPY_PROJECT": "复制项目", + "CREATED_AT": "创建在", + "CUSTOM_ACTION": "自定义操作", + "CUSTOM_ACTION_DATA": "自定义操作数据", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "删除", + "DELETE_ODBC": "删除 ODBC", + "DELETE_PROJECT": "删除项目", + "DELETE_SQUARERECORDING": "删除广场录像", "DESCRIPTION": "描述", - "ADD_ODBC": "添加 ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "语言", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "下载广场录像", + "DROP_TO_UPLOAD": "下上传", + "DROP_TO_UPLOAD_MESSAGE": "您也可以将文件在这里上传。 只有 XML -最大。 5MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "编辑 ODBC", + "EDIT_PROJECT": "编辑项目", + "EDIT_SQUARERECORDING": "编辑广场录像", + "EDIT_XML": "编辑 XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "该名称是必需的", "DSN_REQUIRED": "DSN 是必需的", - "PROJECT_REQUIRED": "该项目是必需的", "FIELD_REQUIRED": "该字段为必需字段。", + "NAME_REQUIRED": "该名称是必需的", + "PROJECT_REQUIRED": "该项目是必需的", "URL_REQUIRED": "必填项" }, - "EDIT_ODBC": "编辑 ODBC", - "DELETE_ODBC": "删除 ODBC", - "SAVE": "保存", - "PROJECTS": "项目", - "ADD_PROJECT": "添加项目", - "EDIT_PROJECT": "编辑项目", - "DELETE_PROJECT": "删除项目", - "CALLYSQUARE": "邝美云广场", - "ID": "Id", - "NEW_ODBC": "新的 ODBC 连接", - "SQUARERECORDINGS": "广场的录音", - "PROJECT": "项目", - "UNIQUEID": "独特的 ID", - "PHONE": "电话", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "分机", - "AUDIO": "音频", - "CREATED_AT": "创建在", - "NOTES": "备注", - "NEW_PROJECT": "新项目", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "文件名。", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "查找依据", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "语言。", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "文字类型", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "请转至项目。", + "GRAMMAR": "语法", + "HANGUP": "Hangup", + "HEADERS": "标头", + "HELP": { + "BCC": "您可以添加多个地址时使用逗号分隔(例如, john.doe@xcally.com jane.miller@xcally.com)", + "CC": "您可以添加多个地址时使用逗号分隔(例如, john.doe@xcally.com jane.miller@xcally.com)", + "DSN": "例如: 驱动程序= MySQL; SERVER = 127.0 0.1 文件; UID = xcall; PWD =密码; DATABASE = motion", + "MAILBOX": "邮箱@上下文", + "MAX_TEXT_TTS": "支持的最大字符数为250", + "TO": "您可以添加多个地址时使用逗号分隔(例如, john.doe@xcally.com jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "导入", + "IMPORT_XML": "导入 XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "语言代码", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "登录", + "LOGOUT": "登出", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To 的讲话", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "方法", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPS合成器", + "NAME": "名称", + "NDAACTIVITY_TYPE": "活动类型", + "NDAGENERATE_AUDIO": "生成音频文件", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH网址", + "NEW": "新的", + "NEW_ODBC": "新的 ODBC 连接", + "NEW_PROJECT": "新项目", + "NEW_VARIABLE": "新的变量。", + "NOOP": "NoOp", + "NOTES": "备注", + "NO_AVAILABLE_INFO": "无可用的信息", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "的", + "OPEN": "打开", + "OPEN_NEW_WINDOW": "在新窗口中打开", + "OPEN_PROJECT": "打开项目", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "页面", + "PASSWORD": "密码", + "PAUSE": "暂停", + "PAUSE_ID": "暂停类型", + "PERMISSIONADD_PROJECTS": "将用户添加到项目", + "PHONE": "电话", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "项目", + "PROJECTS": "项目", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "身体", + "RAWHEADERS": "标头", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "REST API", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "每页的行数。", + "SAVE": "保存", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "搜索任何人", + "SELECTED": "选中的", + "SELECTED_USERS": "选定用户", + "SELECT_ALL": "选择所有", + "SELECT_NONE": "选择 “无”", + "SENDFAX": "发送传真", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "帐户", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "广场的录音", + "SSMLGENDER": "性别", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "在新窗口中打开", - "OPEN_PROJECT": "打开项目", - "COPY": "复制", - "OPEN": "打开", - "NEW": "新的", - "COPY_PROJECT": "复制项目", - "NEW_VARIABLE": "新的变量。", - "ADD_VARIABLE": "添加变量", - "UPDATE_DESCRIPTION": "更新说明。", - "EDIT_XML": "编辑 XML", - "IMPORT_XML": "导入 XML", - "IMPORT": "导入", - "DROP_TO_UPLOAD": "下上传", - "DROP_TO_UPLOAD_MESSAGE": "您也可以将文件在这里上传。 只有 XML -最大。 5MB", - "CLOSE": "关闭", - "NO_AVAILABLE_INFO": "无可用的信息", - "GO_TO_PROJECTS": "请转至项目。", - "UPDATE_INFO": "更新信息", - "AGENTS": "座席", + "SYSTEM": "System", "TELEPHONES": "电话", - "USERS": "用户", - "HELP": { - "MAILBOX": "邮箱@上下文", - "DSN": "例如: 驱动程序= MySQL; SERVER = 127.0 0.1 文件; UID = xcall; PWD =密码; DATABASE = motion", - "TO": "您可以添加多个地址时使用逗号分隔(例如, john.doe@xcally.com jane.miller@xcally.com)", - "CC": "您可以添加多个地址时使用逗号分隔(例如, john.doe@xcally.com jane.miller@xcally.com)", - "BCC": "您可以添加多个地址时使用逗号分隔(例如, john.doe@xcally.com jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "选择附件", - "ATTACHMENT_NAME": "附件名称", - "ATTACHMENT_TYPE": "附件类型", - "ATTACHMENT_PATH": "附件路径", - "SENDFAX": "发送传真", - "DELETE_SQUARERECORDING": "删除广场录像", - "DOWNLOAD_SQUARERECORDING": "下载广场录像", - "FILENAME": "文件名。", - "EDIT_SQUARERECORDING": "编辑广场录像", - "DELETE": "删除", - "PAGE": "页面", - "ROWSPERPAGE": "每页的行数。", - "OF": "的", - "CALLBACK_PRIORITY": "优先级", - "GOOGLE_ASR_LANGUAGE": "语言。", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "访问密钥标识符", - "AWS_SECRET_ACCESS_KEY": "秘密访问密钥", - "AWS_POLLY_REGION": "区域", - "AWS_POLLY_VOICE": "语音", - "LUMENVOXTTS": "Lumenvox Text-To 的讲话", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "语法", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "测试 ODBC", + "TEXT": "Text", "TILDEASR": "Tilde ASR", - "APPID": "应用标识", - "APPSECRET": "App 秘密。", - "SMS_ACCOUNT_ID": "帐户", - "FINDBY": "查找依据", - "LOGIN": "登录", - "LOGOUT": "登出", - "PAUSE": "暂停", - "PAUSE_ID": "暂停类型", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "独特的 ID", "UNPAUSE": "结束暂停", + "UPDATE_DESCRIPTION": "更新说明。", + "UPDATE_INFO": "更新信息", "URI": "URI", - "AWS_TEXT_TYPE": "文字类型", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "语言", - "ADDUSER_PROJECTS": "将用户添加到项目", - "ALL_USERS": "所有用户", - "PERMISSIONADD_PROJECTS": "将用户添加到项目", - "SELECTED_USERS": "选定用户", - "AWS_BOT_NAME": "机器人的名字", - "AWS_LEX_REGION": "区域", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "NDAUTH网址", - "PASSWORD": "密码", + "URL": "URL", "USERNAME": "用户名", - "NDAGENERATE_AUDIO": "生成音频文件", - "CUSTOM_ACTION": "自定义操作", - "CUSTOM_ACTION_DATA": "自定义操作数据", - "NDAACTIVITY_TYPE": "活动类型", - "APIKEY": "ApiKey", - "AUDIOENCODING": "音频编码", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "语言代码", - "SSMLGENDER": "性别", - "BODY": "身体", - "COMPUTEDVARIABLES": "计算变量脚本路径", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "文字类型", - "HEADERS": "标头", - "METHOD": "方法", - "RAWBODY": "身体", - "RAWHEADERS": "标头", - "RESTAPI": "REST API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPS合成器" + "USERS": "用户", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/callysquare/i18n/zh-TW.json b/public/app/main/apps/callysquare/i18n/zh-TW.json index b4f7955..488f611 100644 --- a/public/app/main/apps/callysquare/i18n/zh-TW.json +++ b/public/app/main/apps/callysquare/i18n/zh-TW.json @@ -1,237 +1,238 @@ { "CALLYSQUARE": { - "SESTEKASR": "Sestek ASR", - "SESTEKNDA": "Sestek NDA", - "SESTEKTTS": "Sestek TTS", + "ACCOUNT_ID": "Account", + "ADDUSER_PROJECTS": "將用戶添加到項目", + "ADD_ODBC": "新增 ODBC", + "ADD_PROJECT": "新增專案", + "ADD_VARIABLE": "新增變數", + "AGENTS": "值機員", + "AGI": "AGI", + "ALL_USERS": "所有用戶", + "ANSWER": "Answer", + "APIKEY": "ApiKey", + "APPID": "應用程式 ID", + "APPLICATION": "Application", + "APPSECRET": "App 密", + "ARGS": "Arguments", + "ATTACHMENT_NAME": "附件檔名稱", + "ATTACHMENT_PATH": "附件檔路徑", + "ATTACHMENT_TYPE": "附件類型", + "AUDIO": "音效", + "AUDIOENCODING": "音頻編碼", "AWSLEX": "Amazon Lex", - "NAME": "名稱", - "ODBC": "ODBC", - "TEST_ODBC": "測試 ODBC", - "SEARCH_FOR_ANYONE": "搜尋使用者", + "AWSPOLLY": "AWS Polly", + "AWS_ACCESS_KEY_ID": "存取金鑰識別碼", + "AWS_BOT_NAME": "機器人的名字", + "AWS_LEX_REGION": "區域", + "AWS_POLLY_REGION": "區域", + "AWS_POLLY_VOICE": "語音", + "AWS_SECRET_ACCESS_KEY": "祕密訪問鍵", + "AWS_TEXT_TYPE": "文字類型", "BACK": "備份", - "SELECTED": "已選取", - "SELECT_ALL": "全部選取", - "SELECT_NONE": "選取「無」", - "DSN": "DSN", + "BCC": "BCC", + "BEEP": "Beep", + "BODY": "身體", + "CALLBACK": "Callback", + "CALLBACK_PRIORITY": "優先順序", + "CALLYSQUARE": "會自動控制擺正身體姿勢", + "CC": "CC", + "CHOOSE_ATTACHMENT": "選擇配件", + "CLOSE": "關閉", + "COMMAND": "Command", + "COMPUTEDVARIABLES": "計算變量腳本路徑", + "CONDITION": "Condition", + "CONTEXT": "Context", + "COPY": "複製", + "COPY_PROJECT": "複印專案", + "CREATED_AT": "建立在", + "CUSTOM_ACTION": "自定義操作", + "CUSTOM_ACTION_DATA": "自定義操作數據", + "CUSTOM_APP": "Custom Application", + "DATABASE": "Database", + "DELAY": "Delay", + "DELETE": "刪除", + "DELETE_ODBC": "刪除 ODBC", + "DELETE_PROJECT": "刪除專案", + "DELETE_SQUARERECORDING": "刪除方形錄影", "DESCRIPTION": "說明", - "ADD_ODBC": "新增 ODBC", + "DIAL": "Dial", + "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW_LANGUAGE": "語言", + "DIGIT": "Max Digits", + "DIGITS": "Digits", + "DOWNLOAD_SQUARERECORDING": "下載方錄影", + "DROP_TO_UPLOAD": "拉上傳", + "DROP_TO_UPLOAD_MESSAGE": "您也可以在下拉檔案這裡上傳。 只 XML - 最大。 5 MB", + "DSN": "DSN", + "EDIT": "Edit", + "EDIT_ODBC": "編輯 ODBC", + "EDIT_PROJECT": "編輯專案", + "EDIT_SQUARERECORDING": "編輯錄製方塊", + "EDIT_XML": "編輯 XML", + "END": "End", "ERRORS": { - "NAME_REQUIRED": "「名稱」為必填欄位", "DSN_REQUIRED": "DSN 是必填欄位", - "PROJECT_REQUIRED": "該專案是必填欄位", "FIELD_REQUIRED": "此欄位為必填欄位", + "NAME_REQUIRED": "「名稱」為必填欄位", + "PROJECT_REQUIRED": "該專案是必填欄位", "URL_REQUIRED": "必填項" }, - "EDIT_ODBC": "編輯 ODBC", - "DELETE_ODBC": "刪除 ODBC", - "SAVE": "儲存", - "PROJECTS": "專案計畫", - "ADD_PROJECT": "新增專案", - "EDIT_PROJECT": "編輯專案", - "DELETE_PROJECT": "刪除專案", - "CALLYSQUARE": "會自動控制擺正身體姿勢", - "ID": "Id", - "NEW_ODBC": "新增 ODBC 連線", - "SQUARERECORDINGS": "方形錄音", - "PROJECT": "專案", - "UNIQUEID": "獨特的識別碼", - "PHONE": "電話", + "ESCAPE_DIGITS": "Escape Digits", "EXTEN": "Exten", - "AUDIO": "音效", - "CREATED_AT": "建立在", - "NOTES": "注意事項", - "NEW_PROJECT": "新的專案", - "EDIT": "Edit", - "LABEL": "Label", - "ANSWER": "Answer", - "TIMEOUT": "Timeout", - "SIP_ID": "SIP", - "OPTS": "Options", - "URL": "URL", - "TRUNK_NAME": "Trunk", - "START": "Start", - "FINALLY": "Finally", - "END": "End", - "HANGUP": "Hangup", - "DIAL": "Dial", + "EXTENSION": "Extension", "EXT_DIAL": "External Dial", - "QUEUE": "Queue", - "QUEUE_ID": "Queue", + "FILE": "Filename", + "FILENAME": "檔案名稱", "FILE_ID": "Audio", - "AGI": "AGI", - "MACRO": "Macro", + "FINALLY": "Finally", + "FINDBY": "查找依據", + "GETDIGITS": "Get Digits", + "GETSECRETDIGITS": "Get Secret Digits", + "GOAL": "Goal", + "GOALNAME": "Goal Name", + "GOOGLEASR": "GoogleASR", + "GOOGLE_ASR_LANGUAGE": "語言", + "GOOGLE_CLOUD_TTS": "Google Cloud TTS", + "GOOGLE_CLOUD_TTS_TEXT_TYPE": "文字類型", + "GOOGLE_TTS_LANGUAGE": "Language", "GOSUB": "GoSub", - "POSITION": "Position", - "VOICEMAIL": "Voicemail", + "GOTOC": "GoTo", + "GOTOIF": "GoToIf", + "GOTOIFTIME": "GoToIfTime", + "GO_TO_PROJECTS": "移至專案", + "GRAMMAR": "語法", + "HANGUP": "Hangup", + "HEADERS": "標頭", + "HELP": { + "BCC": "您可以將多個地址使用逗號 ( 例如 john.doe@xcally.com 、 jane.miller@xcally.com)", + "CC": "您可以將多個地址使用逗號 ( 例如 john.doe@xcally.com 、 jane.miller@xcally.com)", + "DSN": "例如 : 驅動程式 = MySQL ; 伺服器 = 127.0.0.1 ; UID = xcall ; 密碼 = 密碼 ; 資料庫 = 動作", + "MAILBOX": "信箱與內容", + "MAX_TEXT_TTS": "支持的最大字符數為250", + "TO": "您可以將多個地址使用逗號 ( 例如 john.doe@xcally.com 、 jane.miller@xcally.com)" + }, + "HIDDENDIGITSNUM": "Hiddden Digits Number", + "HIDDENDIGITSPOS": "Hidden Digits Position", + "ID": "Id", + "IMPORT": "匯入", + "IMPORT_XML": "匯入 XML", + "INTERVAL_ID": "Interval", + "INTKEY": "Interrupt Key", + "ISPEECHASR": "ISpeech ASR", + "ISPEECHTTS": "ISpeech Text-To-Speech", + "ISPEECH_ASR_LANGUAGE": "Language", + "ISPEECH_TTS_LANGUAGE": "Language", + "KEY": "Key", + "LABEL": "Label", + "LANGUAGECODE": "語言代碼", + "LASTNAME": "Last Name", + "LIST_ID": "List", + "LOGIN": "登錄", + "LOGOUT": "登出", + "LUMENVOXASR": "Lumenvox ASR", + "LUMENVOXTTS": "Lumenvox Text-To 語音", + "MACRO": "Macro", "MAILBOX": "Mailbox", - "OPTIONS": "Options", - "SET": "Set", - "VARIABLE_ID": "Variable", - "VARIABLE_VALUE": "Value", "MATH": "Math", + "MAXDIGIT": "Maximum Digits", + "MENU": "Menu", + "METHOD": "方法", + "MINDIGIT": "Minimum Digits", + "MODEL": "Model", + "MRCPRECOG": "MRCPRecog", + "MRCPSYNTH": "MRCPS合成器", + "NAME": "名稱", + "NDAACTIVITY_TYPE": "活動類型", + "NDAGENERATE_AUDIO": "生成音頻文件", + "NDASSISTANT_URL": "NDASSISTANT Url", + "NDAUTH_URL": "NDAUTH網址", + "NEW": "新增", + "NEW_ODBC": "新增 ODBC 連線", + "NEW_PROJECT": "新的專案", + "NEW_VARIABLE": "新變數", + "NOOP": "NoOp", + "NOTES": "注意事項", + "NO_AVAILABLE_INFO": "無可用資訊", + "NUMBER": "Number", + "ODBC": "ODBC", + "ODBC_ID": "ODBC Connection", + "OF": "的", + "OPEN": "開啟", + "OPEN_NEW_WINDOW": "在新的視窗中開啟", + "OPEN_PROJECT": "開啟專案", "OPERATION": "Operation", + "OPTIONS": "Options", + "OPTS": "Options", + "OUTPUT": "Output", + "PAGE": "頁面", + "PASSWORD": "密碼", + "PAUSE": "暫停", + "PAUSE_ID": "暫停類型", + "PERMISSIONADD_PROJECTS": "將用戶添加到項目", + "PHONE": "電話", "PLAYBACK": "Playback", + "POSITION": "Position", + "PRIORITY": "Priority", + "PROJECT": "專案", + "PROJECTS": "專案計畫", + "PROJECT_ID": "Project", + "QUERY": "Query", + "QUEUE": "Queue", + "QUEUE_ID": "Queue", + "RAWBODY": "身體", + "RAWHEADERS": "標頭", + "RECORD": "Record", + "RECORDINGFORMAT": "Recording Format", "RESPONSE": "Response Timeout", - "DIGIT": "Max Digits", + "RESTAPI": "REST API", "RETRY": "Retries", - "DIGITS": "Digits", - "ESCAPE_DIGITS": "Escape Digits", - "MENU": "Menu", + "ROWSPERPAGE": "每頁行數", + "SAVE": "儲存", "SAYDIGITS": "Say Digits", "SAYNUMBER": "Say number", - "NUMBER": "Number", "SAYPHONETIC": "Say Phonetics", - "TEXT": "Text", - "GOOGLE_TTS_LANGUAGE": "Language", - "TTS": "Google Text-To-Speech", - "ISPEECHTTS": "ISpeech Text-To-Speech", - "KEY": "Key", - "ISPEECH_TTS_LANGUAGE": "Language", - "SPEED": "Speed", - "INTKEY": "Interrupt Key", - "GETDIGITS": "Get Digits", - "MINDIGIT": "Minimum Digits", - "MAXDIGIT": "Maximum Digits", - "HIDDENDIGITSNUM": "Hiddden Digits Number", - "HIDDENDIGITSPOS": "Hidden Digits Position", - "GETSECRETDIGITS": "Get Secret Digits", - "RECORD": "Record", - "FILE": "Filename", - "RECORDINGFORMAT": "Recording Format", - "DATABASE": "Database", - "ODBC_ID": "ODBC Connection", - "QUERY": "Query", - "MODEL": "Model", - "ISPEECH_ASR_LANGUAGE": "Language", - "BEEP": "Beep", - "ISPEECHASR": "ISpeech ASR", + "SEARCH_FOR_ANYONE": "搜尋使用者", + "SELECTED": "已選取", + "SELECTED_USERS": "選定用戶", + "SELECT_ALL": "全部選取", + "SELECT_NONE": "選取「無」", + "SENDFAX": "傳送傳真", + "SENDMAIL": "Send Mail", "SENDSMS": "Send SMS", - "ACCOUNT_ID": "Account", - "TO": "To", + "SESTEKASR": "Sestek ASR", + "SESTEKNDA": "Sestek NDA", + "SESTEKTTS": "Sestek TTS", + "SET": "Set", + "SIP_ID": "SIP", + "SMS_ACCOUNT_ID": "帳戶", "SMS_TEXT": "Text", - "SENDMAIL": "Send Mail", - "TEMPLATE_ID": "Template", - "CC": "CC", - "BCC": "BCC", + "SPEED": "Speed", + "SQUARERECORDINGS": "方形錄音", + "SSMLGENDER": "性別", + "START": "Start", "SUBJECT": "Subject", - "GOTOC": "GoTo", - "CONTEXT": "Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "GOTOIF": "GoToIf", - "CONDITION": "Condition", - "GOTOIFTIME": "GoToIfTime", - "INTERVAL_ID": "Interval", - "VSWITCH": "Variable Switch", - "GOAL": "Goal", - "GOALNAME": "Goal Name", - "NOOP": "NoOp", - "OUTPUT": "Output", - "SYSTEM": "System", - "COMMAND": "Command", - "ARGS": "Arguments", "SUBPROJECT": "Sub Project", - "PROJECT_ID": "Project", - "CUSTOM_APP": "Custom Application", - "APPLICATION": "Application", - "CALLBACK": "Callback", - "LASTNAME": "Last Name", - "LIST_ID": "List", - "DELAY": "Delay", - "OPEN_NEW_WINDOW": "在新的視窗中開啟", - "OPEN_PROJECT": "開啟專案", - "COPY": "複製", - "OPEN": "開啟", - "NEW": "新增", - "COPY_PROJECT": "複印專案", - "NEW_VARIABLE": "新變數", - "ADD_VARIABLE": "新增變數", - "UPDATE_DESCRIPTION": "更新說明", - "EDIT_XML": "編輯 XML", - "IMPORT_XML": "匯入 XML", - "IMPORT": "匯入", - "DROP_TO_UPLOAD": "拉上傳", - "DROP_TO_UPLOAD_MESSAGE": "您也可以在下拉檔案這裡上傳。 只 XML - 最大。 5 MB", - "CLOSE": "關閉", - "NO_AVAILABLE_INFO": "無可用資訊", - "GO_TO_PROJECTS": "移至專案", - "UPDATE_INFO": "更新資訊", - "AGENTS": "值機員", + "SYSTEM": "System", "TELEPHONES": "電話", - "USERS": "使用者", - "HELP": { - "MAILBOX": "信箱與內容", - "DSN": "例如 : 驅動程式 = MySQL ; 伺服器 = 127.0.0.1 ; UID = xcall ; 密碼 = 密碼 ; 資料庫 = 動作", - "TO": "您可以將多個地址使用逗號 ( 例如 john.doe@xcally.com 、 jane.miller@xcally.com)", - "CC": "您可以將多個地址使用逗號 ( 例如 john.doe@xcally.com 、 jane.miller@xcally.com)", - "BCC": "您可以將多個地址使用逗號 ( 例如 john.doe@xcally.com 、 jane.miller@xcally.com)" - }, - "CHOOSE_ATTACHMENT": "選擇配件", - "ATTACHMENT_NAME": "附件檔名稱", - "ATTACHMENT_TYPE": "附件類型", - "ATTACHMENT_PATH": "附件檔路徑", - "SENDFAX": "傳送傳真", - "DELETE_SQUARERECORDING": "刪除方形錄影", - "DOWNLOAD_SQUARERECORDING": "下載方錄影", - "FILENAME": "檔案名稱", - "EDIT_SQUARERECORDING": "編輯錄製方塊", - "DELETE": "刪除", - "PAGE": "頁面", - "ROWSPERPAGE": "每頁行數", - "OF": "的", - "CALLBACK_PRIORITY": "優先順序", - "GOOGLE_ASR_LANGUAGE": "語言", - "GOOGLEASR": "GoogleASR", - "AWSPOLLY": "AWS Polly", - "AWS_ACCESS_KEY_ID": "存取金鑰識別碼", - "AWS_SECRET_ACCESS_KEY": "祕密訪問鍵", - "AWS_POLLY_REGION": "區域", - "AWS_POLLY_VOICE": "語音", - "LUMENVOXTTS": "Lumenvox Text-To 語音", - "LUMENVOXASR": "Lumenvox ASR", - "GRAMMAR": "語法", + "TEMPLATE_ID": "Template", + "TEST_ODBC": "測試 ODBC", + "TEXT": "Text", "TILDEASR": "Tilde ASR", - "APPID": "應用程式 ID", - "APPSECRET": "App 密", - "SMS_ACCOUNT_ID": "帳戶", - "FINDBY": "查找依據", - "LOGIN": "登錄", - "LOGOUT": "登出", - "PAUSE": "暫停", - "PAUSE_ID": "暫停類型", + "TIMEOUT": "Timeout", + "TO": "To", + "TRUNK_NAME": "Trunk", + "TTS": "Google Text-To-Speech", + "UNIQUEID": "獨特的識別碼", "UNPAUSE": "結束暫停", + "UPDATE_DESCRIPTION": "更新說明", + "UPDATE_INFO": "更新資訊", "URI": "URI", - "AWS_TEXT_TYPE": "文字類型", - "DIALOGFLOW": "Dialogflow", - "DIALOGFLOW_LANGUAGE": "語言", - "ADDUSER_PROJECTS": "將用戶添加到項目", - "ALL_USERS": "所有用戶", - "PERMISSIONADD_PROJECTS": "將用戶添加到項目", - "SELECTED_USERS": "選定用戶", - "AWS_BOT_NAME": "機器人的名字", - "AWS_LEX_REGION": "區域", - "NDASSISTANT_URL": "NDASSISTANT Url", - "NDAUTH_URL": "NDAUTH網址", - "PASSWORD": "密碼", + "URL": "URL", "USERNAME": "用戶名", - "NDAGENERATE_AUDIO": "生成音頻文件", - "CUSTOM_ACTION": "自定義操作", - "CUSTOM_ACTION_DATA": "自定義操作數據", - "NDAACTIVITY_TYPE": "活動類型", - "APIKEY": "ApiKey", - "AUDIOENCODING": "音頻編碼", - "GOOGLE_CLOUD_TTS": "Google Cloud TTS", - "LANGUAGECODE": "語言代碼", - "SSMLGENDER": "性別", - "BODY": "身體", - "COMPUTEDVARIABLES": "計算變量腳本路徑", - "GOOGLE_CLOUD_TTS_TEXT_TYPE": "文字類型", - "HEADERS": "標頭", - "METHOD": "方法", - "RAWBODY": "身體", - "RAWHEADERS": "標頭", - "RESTAPI": "REST API", - "MRCPRECOG": "MRCPRecog", - "MRCPSYNTH": "MRCPS合成器" + "USERS": "使用者", + "VARIABLE_ID": "Variable", + "VARIABLE_VALUE": "Value", + "VOICEMAIL": "Voicemail", + "VSWITCH": "Variable Switch" } } diff --git a/public/app/main/apps/chat/i18n/ar.json b/public/app/main/apps/chat/i18n/ar.json index 056d34e..354e0f7 100644 --- a/public/app/main/apps/chat/i18n/ar.json +++ b/public/app/main/apps/chat/i18n/ar.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "حجم خط الرسالة", "AGENTTRANSFER": "نقل عامل", "AGENTTRANSFERTIMEOUT": "عامل نقل مهلة", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "تحرير Dialogflow", "LANGUAGE": "لغة", "QUEUETRANSFER": "نقل قائمة الانتظار", diff --git a/public/app/main/apps/chat/i18n/cs.json b/public/app/main/apps/chat/i18n/cs.json index c022ec5..fa00001 100644 --- a/public/app/main/apps/chat/i18n/cs.json +++ b/public/app/main/apps/chat/i18n/cs.json @@ -20,7 +20,7 @@ "WELCOMEMESSAGE": "Welcome Message", "LANGUAGE": "Language", "EDIT_DIALOGFLOW": "Edit Dialogflow", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "BACKGROUNDCOLOR": "Background Color", "MESSAGEFONTSIZE": "Message Font Size", "TAG": "Tag", diff --git a/public/app/main/apps/chat/i18n/da.json b/public/app/main/apps/chat/i18n/da.json index d7e4b2c..10fb9d8 100644 --- a/public/app/main/apps/chat/i18n/da.json +++ b/public/app/main/apps/chat/i18n/da.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Besked skrifttype størrelse", "AGENTTRANSFER": "Agent Overførsel", "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Rediger Dialog flow", "LANGUAGE": "Sprog", "QUEUETRANSFER": "Køoverførsel", diff --git a/public/app/main/apps/chat/i18n/de.json b/public/app/main/apps/chat/i18n/de.json index 0a3cd00..4c4e677 100644 --- a/public/app/main/apps/chat/i18n/de.json +++ b/public/app/main/apps/chat/i18n/de.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Größe der Nachricht", "AGENTTRANSFER": "Agent Transfer", "AGENTTRANSFERTIMEOUT": "Zeitüberschreitung für Agententransfer", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Dialogfluss bearbeiten", "LANGUAGE": "Sprache", "QUEUETRANSFER": "Warteschlangenübertragung", diff --git a/public/app/main/apps/chat/i18n/en.json b/public/app/main/apps/chat/i18n/en.json index 0aac586..94ed4f8 100644 --- a/public/app/main/apps/chat/i18n/en.json +++ b/public/app/main/apps/chat/i18n/en.json @@ -1,5 +1,10 @@ { "CHAT": { + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "DIALOGFLOWV2": "Dialogflow V2", + "PRIVATEKEY": "Private Key", + "CLIENTEMAIL": "Client Email", + "PROJECTID": "Project ID", "VIDAOOESCALATION": "Start Video Call", "VIDAOOAPIKEY": "Vidaoo Api Key", "VIDAOOSESSION": "Start Video Call", @@ -25,7 +30,7 @@ "WELCOMEMESSAGE": "Welcome Message", "LANGUAGE": "Language", "EDIT_DIALOGFLOW": "Edit Dialogflow", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "BACKGROUNDCOLOR": "Background Color", "MESSAGEFONTSIZE": "Message Font Size", "TAG": "Tag", @@ -169,6 +174,9 @@ "MANDATORYDISPOSITION": "Mandatory disposition", "MANDATORYDISPOSITIONPAUSEID": "Pause to use if mandatory disposition is enabled", "ERRORS": { + "PROJECTID_REQUIRED": "Mandatory Field", + "CLIENTEMAIL_REQUIRED": "Mandatory Field", + "PRIVATEKEY_REQUIRED": "Mandatory Field", "VIDAOOAPIKEY_REQUIRED": "Mandatory Field", "BOTNAME_REQUIRED": "Mandatory Field", "SECRETACCESSKEY_REQUIRED": "Mandatory Field", diff --git a/public/app/main/apps/chat/i18n/et.json b/public/app/main/apps/chat/i18n/et.json index 9638dbd..b994208 100644 --- a/public/app/main/apps/chat/i18n/et.json +++ b/public/app/main/apps/chat/i18n/et.json @@ -20,7 +20,7 @@ "WELCOMEMESSAGE": "Welcome Message", "LANGUAGE": "Language", "EDIT_DIALOGFLOW": "Edit Dialogflow", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "BACKGROUNDCOLOR": "Background Color", "MESSAGEFONTSIZE": "Message Font Size", "TAG": "Tag", diff --git a/public/app/main/apps/chat/i18n/fa.json b/public/app/main/apps/chat/i18n/fa.json index 774ab5b..0327bea 100644 --- a/public/app/main/apps/chat/i18n/fa.json +++ b/public/app/main/apps/chat/i18n/fa.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "اندازه فونت پیام", "AGENTTRANSFER": "انتقال عامل", "AGENTTRANSFERTIMEOUT": "زمان انتقال عامل", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "ویرایش گفتگو", "LANGUAGE": "زبان", "QUEUETRANSFER": "صف انتقال", diff --git a/public/app/main/apps/chat/i18n/fi.json b/public/app/main/apps/chat/i18n/fi.json index ecd0f89..356518d 100644 --- a/public/app/main/apps/chat/i18n/fi.json +++ b/public/app/main/apps/chat/i18n/fi.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Viestin fonttikoko", "AGENTTRANSFER": "Agent Transfer", "AGENTTRANSFERTIMEOUT": "Agentin siirron aikakatkaisu", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Muokkaa Dialogflow", "LANGUAGE": "Kieli", "QUEUETRANSFER": "Jono siirto", diff --git a/public/app/main/apps/chat/i18n/fr.json b/public/app/main/apps/chat/i18n/fr.json index 5c90ef9..7f12fcb 100644 --- a/public/app/main/apps/chat/i18n/fr.json +++ b/public/app/main/apps/chat/i18n/fr.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Taille de la police du message", "AGENTTRANSFER": "Transfert d'agent", "AGENTTRANSFERTIMEOUT": "Délai de transfert d'agent", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Editer le dialogue", "LANGUAGE": "La langue", "QUEUETRANSFER": "Transfert de file d'attente", diff --git a/public/app/main/apps/chat/i18n/hi.json b/public/app/main/apps/chat/i18n/hi.json index 27125a0..c186262 100644 --- a/public/app/main/apps/chat/i18n/hi.json +++ b/public/app/main/apps/chat/i18n/hi.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "संदेश फ़ॉन्ट का आकार", "AGENTTRANSFER": "एजेंट स्थानांतरण", "AGENTTRANSFERTIMEOUT": "एजेंट स्थानांतरण टाइमआउट", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "संवाद प्रवाह संपादित करें", "LANGUAGE": "भाषा", "QUEUETRANSFER": "कतार स्थानांतरण", diff --git a/public/app/main/apps/chat/i18n/id.json b/public/app/main/apps/chat/i18n/id.json index baf8e7d..6b505f0 100644 --- a/public/app/main/apps/chat/i18n/id.json +++ b/public/app/main/apps/chat/i18n/id.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Ukuran Font Pesan", "AGENTTRANSFER": "Transfer Agen", "AGENTTRANSFERTIMEOUT": "Agen Transfer Timeout", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Edit Dialogflow", "LANGUAGE": "Bahasa", "QUEUETRANSFER": "Transfer Antrean", diff --git a/public/app/main/apps/chat/i18n/it.json b/public/app/main/apps/chat/i18n/it.json index d36236a..30740b0 100644 --- a/public/app/main/apps/chat/i18n/it.json +++ b/public/app/main/apps/chat/i18n/it.json @@ -23,7 +23,7 @@ "WELCOMEMESSAGE": "Messaggio di Benvenuto", "LANGUAGE": "Lingua", "EDIT_DIALOGFLOW": "Modifica Dialogflow", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "BACKGROUNDCOLOR": "Colore di Sfondo", "MESSAGEFONTSIZE": "Dimensione del Font Messaggi", "TAG": "Tag", diff --git a/public/app/main/apps/chat/i18n/lv.json b/public/app/main/apps/chat/i18n/lv.json index cf55ce3..27b0278 100644 --- a/public/app/main/apps/chat/i18n/lv.json +++ b/public/app/main/apps/chat/i18n/lv.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Ziņu fonta lielums", "AGENTTRANSFER": "Aģenta nodošana", "AGENTTRANSFERTIMEOUT": "Aģenta nodošanas noildze", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Rediģēt Dialogflow", "LANGUAGE": "Valoda", "QUEUETRANSFER": "Rindas nodošana", diff --git a/public/app/main/apps/chat/i18n/nl.json b/public/app/main/apps/chat/i18n/nl.json index 20bceb8..32f5a85 100644 --- a/public/app/main/apps/chat/i18n/nl.json +++ b/public/app/main/apps/chat/i18n/nl.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Grootte van berichtlettertype", "AGENTTRANSFER": "Agent Transfer", "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Bewerk Dialogflow", "LANGUAGE": "Taal", "QUEUETRANSFER": "Wachtrijoverdracht", diff --git a/public/app/main/apps/chat/i18n/no.json b/public/app/main/apps/chat/i18n/no.json index e5278f2..4ba2237 100644 --- a/public/app/main/apps/chat/i18n/no.json +++ b/public/app/main/apps/chat/i18n/no.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Melding skriftstørrelse", "AGENTTRANSFER": "Agentoverføring", "AGENTTRANSFERTIMEOUT": "Agent Transfer Timeout", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Rediger Dialogflow", "LANGUAGE": "Språk", "QUEUETRANSFER": "Køoverføring", diff --git a/public/app/main/apps/chat/i18n/pl.json b/public/app/main/apps/chat/i18n/pl.json index 1775e8a..82cf431 100644 --- a/public/app/main/apps/chat/i18n/pl.json +++ b/public/app/main/apps/chat/i18n/pl.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Rozmiar czcionki wiadomości", "AGENTTRANSFER": "Przeniesienie agenta", "AGENTTRANSFERTIMEOUT": "Limit czasu przeniesienia agenta", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Edytuj przepływ dialogowy", "LANGUAGE": "Język", "QUEUETRANSFER": "Transfer kolejki", diff --git a/public/app/main/apps/chat/i18n/pt-BR.json b/public/app/main/apps/chat/i18n/pt-BR.json index bef383c..884fdbc 100644 --- a/public/app/main/apps/chat/i18n/pt-BR.json +++ b/public/app/main/apps/chat/i18n/pt-BR.json @@ -20,7 +20,7 @@ "WELCOMEMESSAGE": "Mensagem de boas-vindas", "LANGUAGE": "Idioma", "EDIT_DIALOGFLOW": "Editar Dialogflow", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "BACKGROUNDCOLOR": "Cor de fundo", "MESSAGEFONTSIZE": "Tamanho da fonte da mensagem", "TAG": "Tag", diff --git a/public/app/main/apps/chat/i18n/pt-PT.json b/public/app/main/apps/chat/i18n/pt-PT.json index 1dea7c0..3573b91 100644 --- a/public/app/main/apps/chat/i18n/pt-PT.json +++ b/public/app/main/apps/chat/i18n/pt-PT.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Tamanho da fonte da mensagem", "AGENTTRANSFER": "Transferência de Agente", "AGENTTRANSFERTIMEOUT": "Tempo limite de transferência do agente", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Editar Dialogflow", "LANGUAGE": "Língua", "QUEUETRANSFER": "Transferência de fila", diff --git a/public/app/main/apps/chat/i18n/ru.json b/public/app/main/apps/chat/i18n/ru.json index d870d7c..2cbb410 100644 --- a/public/app/main/apps/chat/i18n/ru.json +++ b/public/app/main/apps/chat/i18n/ru.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Размер шрифта сообщения", "AGENTTRANSFER": "Передача агента", "AGENTTRANSFERTIMEOUT": "Тайм-аут передачи агента", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Редактировать диалог", "LANGUAGE": "язык", "QUEUETRANSFER": "Передача очереди", diff --git a/public/app/main/apps/chat/i18n/sv.json b/public/app/main/apps/chat/i18n/sv.json index 2e9fdbf..c848306 100644 --- a/public/app/main/apps/chat/i18n/sv.json +++ b/public/app/main/apps/chat/i18n/sv.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Meddelandetextstorlek", "AGENTTRANSFER": "Agentöverföring", "AGENTTRANSFERTIMEOUT": "Timeout för agentöverföring", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Redigera dialogflow", "LANGUAGE": "Språk", "QUEUETRANSFER": "Kööverföring", diff --git a/public/app/main/apps/chat/i18n/tr.json b/public/app/main/apps/chat/i18n/tr.json index fe58b0e..131f113 100644 --- a/public/app/main/apps/chat/i18n/tr.json +++ b/public/app/main/apps/chat/i18n/tr.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "Mesaj Yazı Boyutu", "AGENTTRANSFER": "Ajan Transferi", "AGENTTRANSFERTIMEOUT": "Ajan Transfer Zaman Aşımı", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Dialogflow'u Düzenle", "LANGUAGE": "Dil", "QUEUETRANSFER": "Kuyruk Aktarımı", diff --git a/public/app/main/apps/chat/i18n/zh-CN.json b/public/app/main/apps/chat/i18n/zh-CN.json index f4fed2d..fb7b26d 100644 --- a/public/app/main/apps/chat/i18n/zh-CN.json +++ b/public/app/main/apps/chat/i18n/zh-CN.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "消息字体大小", "AGENTTRANSFER": "代理转移", "AGENTTRANSFERTIMEOUT": "代理转移超时", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "编辑Dialogflow", "LANGUAGE": "语言", "QUEUETRANSFER": "队列转移", diff --git a/public/app/main/apps/chat/i18n/zh-TW.json b/public/app/main/apps/chat/i18n/zh-TW.json index f6de191..f6a6475 100644 --- a/public/app/main/apps/chat/i18n/zh-TW.json +++ b/public/app/main/apps/chat/i18n/zh-TW.json @@ -416,7 +416,7 @@ "MESSAGEFONTSIZE": "消息字體大小", "AGENTTRANSFER": "代理轉移", "AGENTTRANSFERTIMEOUT": "代理轉移超時", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "編輯Dialogflow", "LANGUAGE": "語言", "QUEUETRANSFER": "隊列轉移", diff --git a/public/app/main/apps/dashboards/i18n/ar.json b/public/app/main/apps/dashboards/i18n/ar.json index 57ed718..25915fc 100644 --- a/public/app/main/apps/dashboards/i18n/ar.json +++ b/public/app/main/apps/dashboards/i18n/ar.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "أي واحد تريد استخدامه؟", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "لا يوجد حساب Whatsapp متاح", "SECOND_LEVEL_DISPOSITION": "ترتيب المستوى الثاني", - "THIRD_LEVEL_DISPOSITION": "الترتيب الثالث" + "THIRD_LEVEL_DISPOSITION": "الترتيب الثالث", + "LICENSE_EXPIRE_REMAINING_DAYS": "رخصتك على وشك الانتهاء! الرجاء الاتصال بالمسؤول الخاص بك" } } diff --git a/public/app/main/apps/dashboards/i18n/cs.json b/public/app/main/apps/dashboards/i18n/cs.json index 437ba1e..610cfb1 100644 --- a/public/app/main/apps/dashboards/i18n/cs.json +++ b/public/app/main/apps/dashboards/i18n/cs.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Který z nich chcete použít?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Žádný účet Whatsapp není k dispozici", "SECOND_LEVEL_DISPOSITION": "Dispozice druhé úrovně", - "THIRD_LEVEL_DISPOSITION": "Dispozice třetí úrovně" + "THIRD_LEVEL_DISPOSITION": "Dispozice třetí úrovně", + "LICENSE_EXPIRE_REMAINING_DAYS": "Vaše licence brzy vyprší! Obraťte se na svého správce" } } diff --git a/public/app/main/apps/dashboards/i18n/da.json b/public/app/main/apps/dashboards/i18n/da.json index b6be9a1..f962cb5 100644 --- a/public/app/main/apps/dashboards/i18n/da.json +++ b/public/app/main/apps/dashboards/i18n/da.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Hvilken vil du bruge?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Ingen Whatsapp-konto tilgængelig", "SECOND_LEVEL_DISPOSITION": "Andet niveau disposition", - "THIRD_LEVEL_DISPOSITION": "Tredje niveau disposition" + "THIRD_LEVEL_DISPOSITION": "Tredje niveau disposition", + "LICENSE_EXPIRE_REMAINING_DAYS": "Din licens udløber snart! Kontakt din administrator" } } diff --git a/public/app/main/apps/dashboards/i18n/de.json b/public/app/main/apps/dashboards/i18n/de.json index 654fc05..e688b40 100644 --- a/public/app/main/apps/dashboards/i18n/de.json +++ b/public/app/main/apps/dashboards/i18n/de.json @@ -156,7 +156,7 @@ "INBOUND_ANSWERED_TEXT": "Angenommene Anrufe in der Warteschlange", "ABANDONED_TEXT": "Verlassene Anrufe in der Warteschlange", "DROP_RATE_TEXT": "Rate abgebrochener Anrufe in der Warteschlange", - "TOTAL_OFFERED_TEXT": "Angebotene Interaktionen", + "TOTAL_OFFERED_TEXT": "Gesamtzahl der Interaktionen", "AVG_HOLD_TIME_TEXT": "Durchschnittliche Wartezeit der Interaktionen", "AVG_TALK_TIME_TEXT": "Gesprächszeit der Warteschlangenanrufe", "INBOUND_ANSWER_RATE_TEXT": "Rate angenommener Anrufe in der Warteschlange ", @@ -308,39 +308,39 @@ "VOICE_AVG_TALK_TIME": "Durchschnittliche Gesprächszeit", "VOICE_AVG_TALK_TIME_TEXT": "Gesprächszeit der Anrufe in der Warteschlage", "VOICE_TALKING": "IM GESPRÄCH", - "VOICE_TALKING_TEXT": "Aktive Warteschlangenanrufe", - "VOICE_TOTAL_OFFERED": "TOTAL ANGEBOTEN", - "VOICE_TOTAL_OFFERED_TEXT": "TOTAL QUEUE-ANRUFE", - "VOICE_UNMANAGED": "UNMANAGED", - "VOICE_UNMANAGED_TEXT": "UNBEWERTETE QUEUE-ANRUFE", - "VOICE_WAITING": "WARTEN", - "VOICE_WAITING_TEXT": "WARTEN DER QUEUE-ANRUFE", + "VOICE_TALKING_TEXT": "Aktive Anrufe in der Warteschlange", + "VOICE_TOTAL_OFFERED": "Insgesamt", + "VOICE_TOTAL_OFFERED_TEXT": "Gesamtzahl der Anrufe in der Warteschlange", + "VOICE_UNMANAGED": "Nicht verwaltet", + "VOICE_UNMANAGED_TEXT": "Nicht verwaltete Anrufe in der Warteschlange", + "VOICE_WAITING": "Wartende Anrufe", + "VOICE_WAITING_TEXT": "Wartende Anrufe in der Warteschlange", "DOWNLOAD": "Herunterladen", "SCHEDULED_CALLS": "Geplante Anrufe", - "PRIVATE": "Privatgelände", - "PUBLIC": "Öffentlichkeit", + "PRIVATE": "Privat", + "PUBLIC": "Öffentlich", "PUBLIC_INTERACTION": "Die Interaktion ist öffentlich", - "VISIBILITY": "Sichtweite", - "INTERACTION_CLOSED": "Interaktion ordnungsgemäß geschlossen", - "INTERACTION_CLOSED_DISPOSED": "Wechselwirkung ordnungsgemäß geschlossen und entsorgt", - "INTERACTION_DISPOSED": "Interaktion ordnungsgemäß entsorgt", - "ASSIGNED_TO_OTHERS": "Anderen zugewiesen", - "SELECT_ALL": "Wählen Sie Alle", + "VISIBILITY": "Sichtbarkeit", + "INTERACTION_CLOSED": "Interaktion korrekt geschlossen", + "INTERACTION_CLOSED_DISPOSED": "Interaktion korrekt geschlossen und entsorgt", + "INTERACTION_DISPOSED": "Interaktion korrekt entsorgt", + "ASSIGNED_TO_OTHERS": "An andere zugewiesen", + "SELECT_ALL": "Alle auswählen", "CHAT_INTERACTIONS": "Chat-Interaktionen", "FAX_INTERACTIONS": "Fax-Interaktionen", "ID": "Id", "MAIL_INTERACTIONS": "E-Mail-Interaktionen", - "OPENCHANNEL_INTERACTIONS": "Öffnen Sie Channel-Interaktionen", + "OPENCHANNEL_INTERACTIONS": "Open Channel-Interaktionen", "SMS_INTERACTIONS": "SMS-Interaktionen", "CANCEL": "Stornieren", "DRAFT": "Entwurf", - "DRAFT_SAVE_WARNING_MESSAGE": "Für diese Interaktion ist bereits ein Entwurf gespeichert. Möchten Sie es wirklich überschreiben?", - "DRAFT_SAVE_WARNING_TITLE": "Bestehenden Entwurf überschreiben?", + "DRAFT_SAVE_WARNING_MESSAGE": "Für diese Interaktion ist bereits ein Entwurf gespeichert. Sind Sie sicher, dass Sie ihn überschreiben möchten?", + "DRAFT_SAVE_WARNING_TITLE": "Vorhandenen Entwurf überschreiben?", "OVERWRITE": "Überschreiben", "SAVE_AS_DRAFT": "Als Entwurf speichern", "UNTITLED": "Ohne Titel", "UPDATE_DRAFT": "Entwurf aktualisieren", - "NO_AVAILABLE_INTERACTION": "Keine verfügbare Interaktion", + "NO_AVAILABLE_INTERACTION": "Keine Interaktionen verfügbar", "ACCOUNTINGDOC": "Buchhaltung", "ADD_PRODUCTPRICELIST": "PRODUKT HINZUFÜGEN", "AGENTFULLNAME": "Agent", @@ -352,7 +352,7 @@ "ATTENDACELASTINVOICE": "Letzte Rechnung", "ATTENDACENEXTINVOICE": "Nächste Rechnung", "AUTHORIZED": "AUTORISIERT", - "AUTOINVOICE": "SELBSTRECHNUNG", + "AUTOINVOICE": "SELBSTABRECHNUNG", "AUTOPROFORMA": "SELBST-PROFORMA", "BALANCE": "BALANCE", "BY": "Durch", @@ -364,70 +364,70 @@ "COMPANYEMAIL": "Email", "COMPANYFAX": "Fax", "COMPANYNAME": "Unternehmen", - "COMPANYNATION": "Nation", + "COMPANYNATION": "Staat", "COMPANYPHONE": "Telefon", "COMPANYPOSTALCODE": "Postleitzahl", - "COMPANYSTREET": "Straße / Avenue / Square", - "COMPANYVAT": "Steuernummer / Mehrwertsteuer", + "COMPANYSTREET": "Adresse", + "COMPANYVAT": "Umsatzsteuernummer / VAT", "CREATIONDATE": "Erstellt am", "CREDITINOTENAME": "Name", "CREDITNOTE": "GUTSCHRIFT", "CREDITNOTEDETAILS": "Gutschriftsdetail", "CREDITNOTE_INFO": "Gutschrift", "DELETE_PRODUCT": "Produkt löschen", - "DEPOSIT": "ANZAHLUNG", - "DETAILS": "Einzelheiten", + "DEPOSIT": "Deposit", + "DETAILS": "Details", "DISCOUNT": "Rabatt", "DOSSIER": "Dossier", "DOSSIERID": "Dossier ID", "DOSSIERNAME": "Name des Dossiers", - "DOSSIERNOTES": "Hinweis", + "DOSSIERNOTES": "Notizen", "DOSSIERS": "Dossiers", "DOSSIER_INFO": "Information", - "ENDDATE": "Verfallsdatum", + "ENDDATE": "Ablaufdatum", "FROM": "Von", - "GRAPHINVOICES": "Rechnung Emissionsdiagramm", - "INASSET": "Anlagegut", + "GRAPHINVOICES": "Diagramm der Rechnungsemission", + "INASSET": "Kapital", "INVOICE": "RECHNUNG", "INVOICEDETAILS": "RECHNUNGS-DETAILS", "INVOICEDISCOUNT": "Rabatt", - "INVOICEEMITED": "Problematisch", + "INVOICEEMITED": "Ausgestellt", "INVOICEID": "Rechnung", "INVOICENAME": "Rechnungsname", - "INVOICENOPRODUCTAMOUNT": "Menge", + "INVOICENOPRODUCTAMOUNT": "Betrag", "INVOICENOPRODUCTDESCRIPTION": "Beschreibung auf der Rechnung", - "INVOICENOPRODUCTSAVE": "speichern", + "INVOICENOPRODUCTSAVE": "Speichern", "INVOICENOPRODUCTUPDATE": "Aktualisieren", - "INVOICENOTAXAMOUNT": "MWST", - "INVOICENOTES": "Hinweis", + "INVOICENOTAXAMOUNT": "MwSt", + "INVOICENOTES": "Notizen", "INVOICEPAYED": "Bezahlt", "INVOICES": "RECHNUNGEN", - "INVOICESTATUS": "Zustand", - "INVOICETOTAL": "Gesamt", + "INVOICESTATUS": "Status", + "INVOICETOTAL": "Insgesamt", "INVOICE_INFO": "Rechnung", "MANAGESALES": "Abonnements", - "MOVEASSET": "ANLAGEGUT", - "MOVECREDITNOTE": "AUTO CREDIT HINWEIS", + "MOVEASSET": "Kapital", + "MOVECREDITNOTE": "Selbstgutschrift", "NETPRICE": "Preis", "NEW_COMPANY": "Neu", "NEW_DOSSIER": "Neues Dossier", "NEXTINVOICE": "Nächste Rechnung", - "NOTES": "Hinweis", - "NO_PRODUCTINVOICE_AVAILABLE": "Kein Produkt", + "NOTES": "Notizen", + "NO_PRODUCTINVOICE_AVAILABLE": "Kein Produkt verfügbar", "NO_PRODUCTPRICELIST_AVAILABLE": "Keine Daten verfügbar", "NO_PRODUCTPROFORMA_AVAILABLE": "Keine Daten verfügbar", "NUMBER": "Nummer", - "OPENDATE": "Eröffnungsdatum", + "OPENDATE": "Öffnungsdatum", "ORDER": "Bestellung", "ORDERCLIENTCODE": "Kundennummer", - "ORDERID": "Bestellung", - "ORDERNOTES": "Hinweis", - "ORDERSTATUS": "Zustand", + "ORDERID": "Bestellung ID ", + "ORDERNOTES": "Notizen", + "ORDERSTATUS": "Status", "ORDER_INFO": "Bestellung", "PAIDANDEXPIRED": "Zahlung", "PAYED_AY": "Bezahlt am", "PAYMENT": "Zahlung", - "PAYMENTMETHOD": "Zahlungsmethoden", + "PAYMENTMETHOD": "Zahlungsarten", "PAYMENTS": "ZAHLUNGEN", "PAYMENT_INFO": "Zahlungsinformationen", "PDFCREDITNOTE": "PDF", @@ -437,7 +437,7 @@ "PRICELISTDISCOUNT": "Preisliste Rabatt", "PRICELISTNAME": "Preisliste", "PRICELISTNETPRICE": "Nettopreis", - "PRICESALELISTNETPRICE": "Prezzo listino", + "PRICESALELISTNETPRICE": "Preisliste", "PRODUCTATUNIT": "Einheit", "PRODUCTCODE": "Produktcode", "PRODUCTDESCRIPTION": "Beschreibung", @@ -446,60 +446,60 @@ "PRODUCTINPROFORMA": "Produkte in Proforma", "PRODUCTINQUOTATION": "PRODUKTDETAILS", "PRODUCTNAME": "Produkt", - "PRODUCTNOTE": "Hinweis", + "PRODUCTNOTE": "Notizen", "PRODUCTPRICE": "Preis", "PRODUCTQTY": "Menge", "PRODUCTS": "PRODUKTE", "PRODUCTSUBSCRIPTION": "Dauer", "PRODUCTTAX": "Steuerprozentsatz", - "PRODUCTTYPE": "Art", + "PRODUCTTYPE": "Produktart", "PROFORMA": "PROFORMA", "PROFORMAAUTHORIZED": "Autorisiertes Proforma", - "PROFORMADETAILS": "Einzelheiten", + "PROFORMADETAILS": "Details", "PROFORMAID": "Id Proforma", "PROFORMANAME": "Proformaname", - "PROFORMANOTES": "Hinweis", + "PROFORMANOTES": "Notizen", "PROFORMAS": "PROFORMA", - "PROFORMASTATUS": "Zustand", + "PROFORMASTATUS": "Status", "PROFORMA_INFO": "Proforma", "QUANTITY": "Menge", - "QUOTATION": "ZITAT", + "QUOTATION": "Preisangabe", "QUOTATIONDISCOUNT": "Angebotsrabatt", "QUOTATIONID": "Angebot", "QUOTATIONINVOICEID": "Rechnungs-ID", "QUOTATIONNAME": "Angebotsname", "QUOTATIONNOTES": "Angebotsnotizen", - "QUOTATIONPRODUCTNOTE": "Produkt Hinweis", - "QUOTATIONPRODUCTTYPE": "Art", + "QUOTATIONPRODUCTNOTE": "Produkt Notizen", + "QUOTATIONPRODUCTTYPE": "Typ", "QUOTATIONPROFORMAID": "Proforma ID", "QUOTATIONQTY": "Menge", - "QUOTATIONSTATUS": "Zustand", + "QUOTATIONSTATUS": "Status", "QUOTATIONSUBSCRIPTION": "Dauer", "QUOTATIONTAX": "MwSt", - "QUOTATIONTOTAL": "GESAMT", + "QUOTATIONTOTAL": "Insgesamt", "QUOTATIONTOTALPRICE": "Gesamt netto", - "QUOTATIONTOTALS": "Gesamt", + "QUOTATIONTOTALS": "Insgesamt", "QUOTATIONTOTALTAX": "Gesamtsteuer", "QUOTATIONUNIT": "Einheit", - "QUOTATIONVAT": "MwSt", - "QUOTATION_INFO": "Zitat", + "QUOTATIONVAT": "VAT", + "QUOTATION_INFO": "Preisangabe", "REQUEST": "ANFRAGE", "REQUESTID": "Anfrage", - "REQUESTNAME": "Name anfordern", - "REQUESTNOTES": "Notizen anfordern", + "REQUESTNAME": "Anfrage Name", + "REQUESTNOTES": "Anfrage Notizen", "REQUEST_INFO": "Anfrage", "SELECT_COMPANY": "Firma auswählen", "SELECT_PERIOD": "Bereich auswählen", "SELECT_PERIOD_CREATION": "Erstellungsdatum auswählen", - "SELECT_PERIOD_EXPIRE": "Verfallsdatum auswählen", + "SELECT_PERIOD_EXPIRE": "Ablaufdatum auswählen", "SELECT_PERIOD_START": "Datum auswählen", - "SELECT_PRODUCT": "Ausgewähltes Produkt", - "SELECT_PRODUCTTYPE": "Art auswählen", - "SELECT_WORKFLOW": "Wählen Sie Workflow", - "SELECT_WORKFLOWSTEPS": "Wählen Sie den Workflow-Status", + "SELECT_PRODUCT": "Produkt auswählen", + "SELECT_PRODUCTTYPE": "Produkttyp auswählen", + "SELECT_WORKFLOW": "Arbeitsablauf auswählen", + "SELECT_WORKFLOWSTEPS": "Arbeitsablaufstatus auswählen", "STARTDATE": "Rechnungsdatum", - "STATE": "Zustand", - "STEP": "Schritt", + "STATE": "Status", + "STEP": "Stufe", "SUBSCRIPTIONDETAIL": "Detail", "SUBSCRIPTIONNAME": "Abonnement", "SUBSCRIPTIONS": "KUNDENPLAN", @@ -508,17 +508,17 @@ "TOTALPAYMENTS": "Gesamtzahlungen", "UPDATED_AT": "Geändert am", "UPDATE_PRODUCT": "Produkt aktualisieren", - "WORKFLOW": "Wählen Sie Workflow", + "WORKFLOW": "Wählen Sie einen Arbeitsablauf", "YEARS": "Jahre", - "CUSTOMER_IP": "Ursprungs-IP-Adresse", + "CUSTOMER_IP": "Ursprüngliche IP-Adresse", "CUSTOMER_PORT": "Ursprünglicher TCP-Port", "ADVANCED_SEARCH": "Erweiterte Suche", "AND": "Und", "APPLY": "Anwenden", "CONTAINS": "Enthält", "DISABLED": "Deaktiviert", - "ENABLED": "aktiviert", - "ENDING_DATE": "Ende", + "ENABLED": "Aktiviert", + "ENDING_DATE": "Enddatum", "ENDING_VALUE": "Endwert", "ENDS_WITH": "Endet mit", "EQUALS": "Gleich", @@ -526,23 +526,23 @@ "IS_BETWEEN": "Ist zwischen", "IS_GREATER_THAN": "Ist größer als", "IS_GREATER_THAN_OR_EQUAL_TO": "Ist größer oder gleich", - "IS_LESS_THAN": "Ist weniger als", + "IS_LESS_THAN": "Ist kleiner als", "IS_LESS_THAN_OR_EQUAL_TO": "Ist kleiner oder gleich", "IS_NOT_AMONG": "Ist nicht unter", "IS_NOT_EQUAL": "Ist nicht gleich", - "MEET_ALL_CONDITIONS": "Erfüllen Sie alle Bedingungen", + "MEET_ALL_CONDITIONS": "Alle Bedingungen erfüllen", "MEET_ANY_CONDITIONS": "Mindestens eine Bedingung erfüllen", - "NEW_CONDITION": "neue Bedingung", + "NEW_CONDITION": "Neue Bedingung", "SELECT_FIELD": "Feld auswählen", "SELECT_OPERATOR": "Operator auswählen", - "STARTING_DATE": "Anfangsdatum", + "STARTING_DATE": "Startdatum", "STARTING_VALUE": "Startwert", "STARTS_WITH": "Beginnt mit", "VALUE": "Wert", "VALUES": "Werte", "VALUE_RANGE_CHECK": "Wert muss größer sein als", "CHOOSE": "Wählen", - "DOWNLOAD_WITHOUT_ATTACHMENTS": "Download ohne Anhänge", + "DOWNLOAD_WITHOUT_ATTACHMENTS": "Herunterladen ohne Anhänge", "DOWNLOAD_WITH_ATTACHMENTS": "Mit Anhängen herunterladen", "SELECT_QUEUE": "Wählen Sie eine Warteschlange aus", "VIDAOOSESSION": "Videoanruf starten", @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Welches möchten Sie verwenden?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Kein WhatsApp-Konto verfügbar", "SECOND_LEVEL_DISPOSITION": "Disposition der zweiten Ebene", - "THIRD_LEVEL_DISPOSITION": "Disposition der dritten Ebene" + "THIRD_LEVEL_DISPOSITION": "Disposition der dritten Ebene", + "LICENSE_EXPIRE_REMAINING_DAYS": "Ihre Lizenz läuft bald ab! Bitte wenden Sie sich an Ihren Administrator" } } diff --git a/public/app/main/apps/dashboards/i18n/es.json b/public/app/main/apps/dashboards/i18n/es.json index 535fe1c..60027dd 100644 --- a/public/app/main/apps/dashboards/i18n/es.json +++ b/public/app/main/apps/dashboards/i18n/es.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Cual quieres usar?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "No hay cuenta de Whatsapp disponible", "SECOND_LEVEL_DISPOSITION": "Disposición de segundo nivel", - "THIRD_LEVEL_DISPOSITION": "Disposición de tercer nivel" + "THIRD_LEVEL_DISPOSITION": "Disposición de tercer nivel", + "LICENSE_EXPIRE_REMAINING_DAYS": "¡Su licencia está a punto de caducar! Comuníquese con su administrador" } } diff --git a/public/app/main/apps/dashboards/i18n/et.json b/public/app/main/apps/dashboards/i18n/et.json index dad416b..87772df 100644 --- a/public/app/main/apps/dashboards/i18n/et.json +++ b/public/app/main/apps/dashboards/i18n/et.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Kumba soovite kasutada?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Whatsappi konto pole saadaval", "SECOND_LEVEL_DISPOSITION": "Teise taseme korraldus", - "THIRD_LEVEL_DISPOSITION": "Kolmanda taseme korraldus" + "THIRD_LEVEL_DISPOSITION": "Kolmanda taseme korraldus", + "LICENSE_EXPIRE_REMAINING_DAYS": "Teie litsents on aegumas! Võtke ühendust oma administraatoriga" } } diff --git a/public/app/main/apps/dashboards/i18n/fa.json b/public/app/main/apps/dashboards/i18n/fa.json index 7d9688a..08ad25a 100644 --- a/public/app/main/apps/dashboards/i18n/fa.json +++ b/public/app/main/apps/dashboards/i18n/fa.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "می خواهید از کدام یک استفاده کنید؟", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "حساب Whatsapp در دسترس نیست", "SECOND_LEVEL_DISPOSITION": "دفع سطح دوم", - "THIRD_LEVEL_DISPOSITION": "دفع سطح سوم" + "THIRD_LEVEL_DISPOSITION": "دفع سطح سوم", + "LICENSE_EXPIRE_REMAINING_DAYS": "مجوز شما در شرف انقضا است! لطفاً با سرپرست خود تماس بگیرید" } } diff --git a/public/app/main/apps/dashboards/i18n/fi.json b/public/app/main/apps/dashboards/i18n/fi.json index 62928ec..05c7306 100644 --- a/public/app/main/apps/dashboards/i18n/fi.json +++ b/public/app/main/apps/dashboards/i18n/fi.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Kumpi haluat käyttää?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Ei Whatsapp-tiliä", "SECOND_LEVEL_DISPOSITION": "Toisen tason sijoitus", - "THIRD_LEVEL_DISPOSITION": "Kolmannen tason sijoitus" + "THIRD_LEVEL_DISPOSITION": "Kolmannen tason sijoitus", + "LICENSE_EXPIRE_REMAINING_DAYS": "Lisenssisi on vanhenemassa! Ota yhteyttä järjestelmänvalvojaasi" } } diff --git a/public/app/main/apps/dashboards/i18n/fr.json b/public/app/main/apps/dashboards/i18n/fr.json index 2e863c0..8a861a5 100644 --- a/public/app/main/apps/dashboards/i18n/fr.json +++ b/public/app/main/apps/dashboards/i18n/fr.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Lequel souhaitez-vous utiliser?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Aucun compte Whatsapp disponible", "SECOND_LEVEL_DISPOSITION": "Disposition de deuxième niveau", - "THIRD_LEVEL_DISPOSITION": "Disposition de troisième niveau" + "THIRD_LEVEL_DISPOSITION": "Disposition de troisième niveau", + "LICENSE_EXPIRE_REMAINING_DAYS": "Votre licence est sur le point d'expirer! Veuillez contacter votre administrateur" } } diff --git a/public/app/main/apps/dashboards/i18n/he.json b/public/app/main/apps/dashboards/i18n/he.json index 6be0ffd..2fd39fd 100644 --- a/public/app/main/apps/dashboards/i18n/he.json +++ b/public/app/main/apps/dashboards/i18n/he.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "באיזה מהם אתה רוצה להשתמש?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "אין חשבון Whatsapp זמין", "SECOND_LEVEL_DISPOSITION": "נטייה בדרגה שנייה", - "THIRD_LEVEL_DISPOSITION": "נטייה ברמה השלישית" + "THIRD_LEVEL_DISPOSITION": "נטייה ברמה השלישית", + "LICENSE_EXPIRE_REMAINING_DAYS": "הרישיון שלך עומד לפוג! אנא פנה למנהל המערכת שלך" } } diff --git a/public/app/main/apps/dashboards/i18n/hi.json b/public/app/main/apps/dashboards/i18n/hi.json index 67023ae..30de113 100644 --- a/public/app/main/apps/dashboards/i18n/hi.json +++ b/public/app/main/apps/dashboards/i18n/hi.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "आप किसका उपयोग करना चाहते हैं?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "कोई व्हाट्सएप अकाउंट उपलब्ध नहीं है", "SECOND_LEVEL_DISPOSITION": "दूसरा स्तर विवाद", - "THIRD_LEVEL_DISPOSITION": "तीसरे स्तर का विवाद" + "THIRD_LEVEL_DISPOSITION": "तीसरे स्तर का विवाद", + "LICENSE_EXPIRE_REMAINING_DAYS": "आपका लाइसेंस समाप्त होने वाला है! कृपया अपने व्यवस्थापक से संपर्क करें" } } diff --git a/public/app/main/apps/dashboards/i18n/id.json b/public/app/main/apps/dashboards/i18n/id.json index 8e9e19d..cfba509 100644 --- a/public/app/main/apps/dashboards/i18n/id.json +++ b/public/app/main/apps/dashboards/i18n/id.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Yang mana yang ingin Anda gunakan?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Tidak ada Akun Whatsapp yang tersedia", "SECOND_LEVEL_DISPOSITION": "Disposisi Tingkat Kedua", - "THIRD_LEVEL_DISPOSITION": "Disposisi Tingkat Ketiga" + "THIRD_LEVEL_DISPOSITION": "Disposisi Tingkat Ketiga", + "LICENSE_EXPIRE_REMAINING_DAYS": "Lisensi Anda akan segera kedaluwarsa! Harap hubungi Administrator Anda" } } diff --git a/public/app/main/apps/dashboards/i18n/ja.json b/public/app/main/apps/dashboards/i18n/ja.json index 3af1141..b490e62 100644 --- a/public/app/main/apps/dashboards/i18n/ja.json +++ b/public/app/main/apps/dashboards/i18n/ja.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "どちらを使いたいですか?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "利用可能なWhatsappアカウントがありません", "SECOND_LEVEL_DISPOSITION": "第2レベルの気質", - "THIRD_LEVEL_DISPOSITION": "第3レベルの気質" + "THIRD_LEVEL_DISPOSITION": "第3レベルの気質", + "LICENSE_EXPIRE_REMAINING_DAYS": "ライセンスの有効期限が近づいています。管理者に連絡してください" } } diff --git a/public/app/main/apps/dashboards/i18n/ko.json b/public/app/main/apps/dashboards/i18n/ko.json index f51319c..4cd7820 100644 --- a/public/app/main/apps/dashboards/i18n/ko.json +++ b/public/app/main/apps/dashboards/i18n/ko.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "어느 것을 사용 하시겠습니까?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "사용 가능한 Whatsapp 계정이 없습니다.", "SECOND_LEVEL_DISPOSITION": "두 번째 수준 처리", - "THIRD_LEVEL_DISPOSITION": "3 단계 처리" + "THIRD_LEVEL_DISPOSITION": "3 단계 처리", + "LICENSE_EXPIRE_REMAINING_DAYS": "라이센스가 곧 만료됩니다! 관리자에게 문의하십시오" } } diff --git a/public/app/main/apps/dashboards/i18n/lt.json b/public/app/main/apps/dashboards/i18n/lt.json index 04ae93c..1771d52 100644 --- a/public/app/main/apps/dashboards/i18n/lt.json +++ b/public/app/main/apps/dashboards/i18n/lt.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Kurį iš jų norite naudoti?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nėra „Whatsapp“ paskyros", "SECOND_LEVEL_DISPOSITION": "Antro lygio disponavimas", - "THIRD_LEVEL_DISPOSITION": "Trečiojo lygio disponavimas" + "THIRD_LEVEL_DISPOSITION": "Trečiojo lygio disponavimas", + "LICENSE_EXPIRE_REMAINING_DAYS": "Netrukus baigsis jūsų licencijos galiojimo laikas! Susisiekite su savo administratoriumi" } } diff --git a/public/app/main/apps/dashboards/i18n/lv.json b/public/app/main/apps/dashboards/i18n/lv.json index 8d1a1d8..888168b 100644 --- a/public/app/main/apps/dashboards/i18n/lv.json +++ b/public/app/main/apps/dashboards/i18n/lv.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Kuru jūs vēlaties izmantot?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nav pieejams Whatsapp konts", "SECOND_LEVEL_DISPOSITION": "Otrā līmeņa izvietojums", - "THIRD_LEVEL_DISPOSITION": "Trešā līmeņa izvietojums" + "THIRD_LEVEL_DISPOSITION": "Trešā līmeņa izvietojums", + "LICENSE_EXPIRE_REMAINING_DAYS": "Jūsu licence drīz beigsies! Lūdzu, sazinieties ar savu administratoru" } } diff --git a/public/app/main/apps/dashboards/i18n/nl.json b/public/app/main/apps/dashboards/i18n/nl.json index 94ea34b..00caa3f 100644 --- a/public/app/main/apps/dashboards/i18n/nl.json +++ b/public/app/main/apps/dashboards/i18n/nl.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Welke wil je gebruiken?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Geen Whatsapp-account beschikbaar", "SECOND_LEVEL_DISPOSITION": "Tweede niveau dispositie", - "THIRD_LEVEL_DISPOSITION": "Dispositie op het derde niveau" + "THIRD_LEVEL_DISPOSITION": "Dispositie op het derde niveau", + "LICENSE_EXPIRE_REMAINING_DAYS": "Uw licentie verloopt bijna! Neem contact op met uw beheerder" } } diff --git a/public/app/main/apps/dashboards/i18n/no.json b/public/app/main/apps/dashboards/i18n/no.json index 01b7376..92149c2 100644 --- a/public/app/main/apps/dashboards/i18n/no.json +++ b/public/app/main/apps/dashboards/i18n/no.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Hvilken vil du bruke?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Ingen Whatsapp-konto tilgjengelig", "SECOND_LEVEL_DISPOSITION": "Andre nivå disposisjon", - "THIRD_LEVEL_DISPOSITION": "Tredje nivå disposisjon" + "THIRD_LEVEL_DISPOSITION": "Tredje nivå disposisjon", + "LICENSE_EXPIRE_REMAINING_DAYS": "Lisensen din er i ferd med å utløpe! Kontakt administratoren din" } } diff --git a/public/app/main/apps/dashboards/i18n/pl.json b/public/app/main/apps/dashboards/i18n/pl.json index f0cfbda..ceed506 100644 --- a/public/app/main/apps/dashboards/i18n/pl.json +++ b/public/app/main/apps/dashboards/i18n/pl.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Którego chcesz użyć?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Brak dostępnego konta Whatsapp", "SECOND_LEVEL_DISPOSITION": "Dyspozycja drugiego poziomu", - "THIRD_LEVEL_DISPOSITION": "Dyspozycja trzeciego poziomu" + "THIRD_LEVEL_DISPOSITION": "Dyspozycja trzeciego poziomu", + "LICENSE_EXPIRE_REMAINING_DAYS": "Twoja licencja wkrótce wygaśnie! Skontaktuj się z administratorem" } } diff --git a/public/app/main/apps/dashboards/i18n/pt-BR.json b/public/app/main/apps/dashboards/i18n/pt-BR.json index 4fe17da..306036e 100644 --- a/public/app/main/apps/dashboards/i18n/pt-BR.json +++ b/public/app/main/apps/dashboards/i18n/pt-BR.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Qual você deseja usar?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nenhuma conta Whatsapp disponível", "SECOND_LEVEL_DISPOSITION": "Disposição de Segundo Nível", - "THIRD_LEVEL_DISPOSITION": "Disposição de terceiro nível" + "THIRD_LEVEL_DISPOSITION": "Disposição de terceiro nível", + "LICENSE_EXPIRE_REMAINING_DAYS": "Sua licença está prestes a expirar! Entre em contato com o seu administrador" } } diff --git a/public/app/main/apps/dashboards/i18n/pt-PT.json b/public/app/main/apps/dashboards/i18n/pt-PT.json index c04965b..67f5342 100644 --- a/public/app/main/apps/dashboards/i18n/pt-PT.json +++ b/public/app/main/apps/dashboards/i18n/pt-PT.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Qual você deseja usar?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Nenhuma conta Whatsapp disponível", "SECOND_LEVEL_DISPOSITION": "Disposição de Segundo Nível", - "THIRD_LEVEL_DISPOSITION": "Disposição de terceiro nível" + "THIRD_LEVEL_DISPOSITION": "Disposição de terceiro nível", + "LICENSE_EXPIRE_REMAINING_DAYS": "Sua licença está prestes a expirar! Entre em contato com o seu administrador" } } diff --git a/public/app/main/apps/dashboards/i18n/ru.json b/public/app/main/apps/dashboards/i18n/ru.json index b441b8c..118b95b 100644 --- a/public/app/main/apps/dashboards/i18n/ru.json +++ b/public/app/main/apps/dashboards/i18n/ru.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Какой из них вы хотите использовать?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Нет доступной учетной записи WhatsApp", "SECOND_LEVEL_DISPOSITION": "Расположение второго уровня", - "THIRD_LEVEL_DISPOSITION": "Расположение третьего уровня" + "THIRD_LEVEL_DISPOSITION": "Расположение третьего уровня", + "LICENSE_EXPIRE_REMAINING_DAYS": "Срок действия вашей лицензии истекает! Обратитесь к своему администратору" } } diff --git a/public/app/main/apps/dashboards/i18n/sv.json b/public/app/main/apps/dashboards/i18n/sv.json index b2991a4..14908f3 100644 --- a/public/app/main/apps/dashboards/i18n/sv.json +++ b/public/app/main/apps/dashboards/i18n/sv.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Vilken vill du använda?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Inget Whatsapp-konto tillgängligt", "SECOND_LEVEL_DISPOSITION": "Andra nivån disposition", - "THIRD_LEVEL_DISPOSITION": "Tredje nivåens disposition" + "THIRD_LEVEL_DISPOSITION": "Tredje nivåens disposition", + "LICENSE_EXPIRE_REMAINING_DAYS": "Din licens går ut! Kontakta din administratör" } } diff --git a/public/app/main/apps/dashboards/i18n/tr.json b/public/app/main/apps/dashboards/i18n/tr.json index e96fd34..bc214ce 100644 --- a/public/app/main/apps/dashboards/i18n/tr.json +++ b/public/app/main/apps/dashboards/i18n/tr.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "Hangisini kullanmak istiyorsun?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "Whatsapp Hesabı yok", "SECOND_LEVEL_DISPOSITION": "İkinci Düzey Tasarruf", - "THIRD_LEVEL_DISPOSITION": "Üçüncü Düzey Tasarruf" + "THIRD_LEVEL_DISPOSITION": "Üçüncü Düzey Tasarruf", + "LICENSE_EXPIRE_REMAINING_DAYS": "Lisansınızın süresi dolmak üzere! Lütfen Yöneticinizle iletişime geçin" } } diff --git a/public/app/main/apps/dashboards/i18n/zh-CN.json b/public/app/main/apps/dashboards/i18n/zh-CN.json index 8c7ebbb..e163c67 100644 --- a/public/app/main/apps/dashboards/i18n/zh-CN.json +++ b/public/app/main/apps/dashboards/i18n/zh-CN.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "您要使用哪一个?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "没有可用的Whatsapp帐户", "SECOND_LEVEL_DISPOSITION": "二级处置", - "THIRD_LEVEL_DISPOSITION": "第三级处置" + "THIRD_LEVEL_DISPOSITION": "第三级处置", + "LICENSE_EXPIRE_REMAINING_DAYS": "您的许可证即将到期!请与您的管理员联系" } } diff --git a/public/app/main/apps/dashboards/i18n/zh-TW.json b/public/app/main/apps/dashboards/i18n/zh-TW.json index 0ace47b..04cfa03 100644 --- a/public/app/main/apps/dashboards/i18n/zh-TW.json +++ b/public/app/main/apps/dashboards/i18n/zh-TW.json @@ -556,6 +556,7 @@ "WHICH_ONE_TO_USE": "您要使用哪一個?", "NO_WHATSAPP_ACCOUNTS_AVAILABLE": "沒有可用的Whatsapp帳戶", "SECOND_LEVEL_DISPOSITION": "二級處置", - "THIRD_LEVEL_DISPOSITION": "第三級處置" + "THIRD_LEVEL_DISPOSITION": "第三級處置", + "LICENSE_EXPIRE_REMAINING_DAYS": "您的許可證即將到期!請與您的管理員聯繫" } } diff --git a/public/app/main/apps/fax/i18n/de.json b/public/app/main/apps/fax/i18n/de.json index 8eee60b..2975218 100644 --- a/public/app/main/apps/fax/i18n/de.json +++ b/public/app/main/apps/fax/i18n/de.json @@ -1,6 +1,6 @@ { "FAX": { - "TEAMADD_FAXQUEUE": "Team Fax Warteschlange hinzufügen", + "TEAMADD_FAXQUEUE": "Team zur Faxwarteschlange hinzufügen", "AGENTADD_FAXQUEUE": "Agent Fax Warteschlange hinzufügen", "NAME": "Name", "FAXQUEUES": "Fax Warteschlangen", diff --git a/public/app/main/apps/motiondialer/i18n/ar.json b/public/app/main/apps/motiondialer/i18n/ar.json index c652db9..842c0f9 100644 --- a/public/app/main/apps/motiondialer/i18n/ar.json +++ b/public/app/main/apps/motiondialer/i18n/ar.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "ماكس إعادة المحاولة", "NOSUCHNUMBERRETRYTIME": "إعادة محاولة الوقت [دقيقة]", "TOOLTIP_SCREENRECORDING_OFF": "تسجيل الشاشة المتاحة", - "TOOLTIP_SCREENRECORDING_ON": "تسجيل الشاشة في التقدم" + "TOOLTIP_SCREENRECORDING_ON": "تسجيل الشاشة في التقدم", + "SECOND_LEVEL_DISPOSITION": "ترتيب المستوى الثاني", + "THIRD_LEVEL_DISPOSITION": "الترتيب الثالث" } } diff --git a/public/app/main/apps/motiondialer/i18n/cs.json b/public/app/main/apps/motiondialer/i18n/cs.json index b4ba63f..dc33915 100644 --- a/public/app/main/apps/motiondialer/i18n/cs.json +++ b/public/app/main/apps/motiondialer/i18n/cs.json @@ -684,6 +684,8 @@ "MACHINERETRYTIME": "Čas opakování [min]", "NOSUCHNUMBER": "Žádné takové číslo", "NOSUCHNUMBERMAXRETRY": "Max", - "NOSUCHNUMBERRETRYTIME": "Čas opakování [min]" + "NOSUCHNUMBERRETRYTIME": "Čas opakování [min]", + "SECOND_LEVEL_DISPOSITION": "Dispozice druhé úrovně", + "THIRD_LEVEL_DISPOSITION": "Dispozice třetí úrovně" } } diff --git a/public/app/main/apps/motiondialer/i18n/da.json b/public/app/main/apps/motiondialer/i18n/da.json index 72aa8f2..5db234c 100644 --- a/public/app/main/apps/motiondialer/i18n/da.json +++ b/public/app/main/apps/motiondialer/i18n/da.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Max prøver igen", "NOSUCHNUMBERRETRYTIME": "Forsøgstid [min]", "TOOLTIP_SCREENRECORDING_OFF": "Screen optagelse tilgængelig", - "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår" + "TOOLTIP_SCREENRECORDING_ON": "Skærmoptagelse pågår", + "SECOND_LEVEL_DISPOSITION": "Andet niveau disposition", + "THIRD_LEVEL_DISPOSITION": "Tredje niveau disposition" } } diff --git a/public/app/main/apps/motiondialer/i18n/de.json b/public/app/main/apps/motiondialer/i18n/de.json index ec1351b..b439dd0 100644 --- a/public/app/main/apps/motiondialer/i18n/de.json +++ b/public/app/main/apps/motiondialer/i18n/de.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Max Wiederholungen", "NOSUCHNUMBERRETRYTIME": "Wiederholungszeit [min]", "TOOLTIP_SCREENRECORDING_OFF": "Bildschirmaufnahme verfügbar", - "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft" + "TOOLTIP_SCREENRECORDING_ON": "Bildschirmaufnahme läuft", + "SECOND_LEVEL_DISPOSITION": "Disposition der zweiten Ebene", + "THIRD_LEVEL_DISPOSITION": "Disposition der dritten Ebene" } } diff --git a/public/app/main/apps/motiondialer/i18n/es.json b/public/app/main/apps/motiondialer/i18n/es.json index 17719ad..59d8b1c 100644 --- a/public/app/main/apps/motiondialer/i18n/es.json +++ b/public/app/main/apps/motiondialer/i18n/es.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Intentos máximos", "NOSUCHNUMBERRETRYTIME": "Tiempo de reintento [min]", "TOOLTIP_SCREENRECORDING_OFF": "Grabación de pantalla disponible", - "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso" + "TOOLTIP_SCREENRECORDING_ON": "Grabación de pantalla en progreso", + "SECOND_LEVEL_DISPOSITION": "Disposición de segundo nivel", + "THIRD_LEVEL_DISPOSITION": "Disposición de tercer nivel" } } diff --git a/public/app/main/apps/motiondialer/i18n/et.json b/public/app/main/apps/motiondialer/i18n/et.json index 57d7513..6198686 100644 --- a/public/app/main/apps/motiondialer/i18n/et.json +++ b/public/app/main/apps/motiondialer/i18n/et.json @@ -684,6 +684,8 @@ "MACHINERETRYTIME": "Uuesti proovimise aeg [min]", "NOSUCHNUMBER": "Sellist numbrit pole", "NOSUCHNUMBERMAXRETRY": "Max proovib uuesti", - "NOSUCHNUMBERRETRYTIME": "Uuesti proovimise aeg [min]" + "NOSUCHNUMBERRETRYTIME": "Uuesti proovimise aeg [min]", + "SECOND_LEVEL_DISPOSITION": "Teise taseme korraldus", + "THIRD_LEVEL_DISPOSITION": "Kolmanda taseme korraldus" } } diff --git a/public/app/main/apps/motiondialer/i18n/fa.json b/public/app/main/apps/motiondialer/i18n/fa.json index ada6056..54399c1 100644 --- a/public/app/main/apps/motiondialer/i18n/fa.json +++ b/public/app/main/apps/motiondialer/i18n/fa.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "حداکثر امتحان مجدد", "NOSUCHNUMBERRETRYTIME": "زمان امتحان مجدد [دقیقه]", "TOOLTIP_SCREENRECORDING_OFF": "ضبط صفحه در دسترس است", - "TOOLTIP_SCREENRECORDING_ON": "ضبط صفحه در حال انجام است" + "TOOLTIP_SCREENRECORDING_ON": "ضبط صفحه در حال انجام است", + "SECOND_LEVEL_DISPOSITION": "دفع سطح دوم", + "THIRD_LEVEL_DISPOSITION": "دفع سطح سوم" } } diff --git a/public/app/main/apps/motiondialer/i18n/fi.json b/public/app/main/apps/motiondialer/i18n/fi.json index e0feb5e..b9ca0df 100644 --- a/public/app/main/apps/motiondialer/i18n/fi.json +++ b/public/app/main/apps/motiondialer/i18n/fi.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Enimmäismäärät", "NOSUCHNUMBERRETRYTIME": "Uudelleenyritysaika [min]", "TOOLTIP_SCREENRECORDING_OFF": "Näytön tallennus saatavilla", - "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä" + "TOOLTIP_SCREENRECORDING_ON": "Näytön nauhoitus käynnissä", + "SECOND_LEVEL_DISPOSITION": "Toisen tason sijoitus", + "THIRD_LEVEL_DISPOSITION": "Kolmannen tason sijoitus" } } diff --git a/public/app/main/apps/motiondialer/i18n/fr.json b/public/app/main/apps/motiondialer/i18n/fr.json index 9e7cc60..154e624 100644 --- a/public/app/main/apps/motiondialer/i18n/fr.json +++ b/public/app/main/apps/motiondialer/i18n/fr.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Max tentatives", "NOSUCHNUMBERRETRYTIME": "Temps de nouvelle tentative [min]", "TOOLTIP_SCREENRECORDING_OFF": "Enregistrement d'écran disponible", - "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours" + "TOOLTIP_SCREENRECORDING_ON": "Enregistrement d'écran en cours", + "SECOND_LEVEL_DISPOSITION": "Disposition de deuxième niveau", + "THIRD_LEVEL_DISPOSITION": "Disposition de troisième niveau" } } diff --git a/public/app/main/apps/motiondialer/i18n/he.json b/public/app/main/apps/motiondialer/i18n/he.json index 368b2e2..a66c773 100644 --- a/public/app/main/apps/motiondialer/i18n/he.json +++ b/public/app/main/apps/motiondialer/i18n/he.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "מקסימום נסיונות חוזרים", "NOSUCHNUMBERRETRYTIME": "מרווח זמן עד לניסיון חוזר [דקות]", "TOOLTIP_SCREENRECORDING_OFF": "הקלטת מסך זמינה", - "TOOLTIP_SCREENRECORDING_ON": "הקלטת מסך מתבצעת" + "TOOLTIP_SCREENRECORDING_ON": "הקלטת מסך מתבצעת", + "SECOND_LEVEL_DISPOSITION": "נטייה בדרגה שנייה", + "THIRD_LEVEL_DISPOSITION": "נטייה ברמה השלישית" } } diff --git a/public/app/main/apps/motiondialer/i18n/hi.json b/public/app/main/apps/motiondialer/i18n/hi.json index 1b5119b..644cf08 100644 --- a/public/app/main/apps/motiondialer/i18n/hi.json +++ b/public/app/main/apps/motiondialer/i18n/hi.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "अधिकतम रिटायर", "NOSUCHNUMBERRETRYTIME": "पुनः प्रयास समय [मिनट]", "TOOLTIP_SCREENRECORDING_OFF": "स्क्रीन रिकॉर्डिंग उपलब्ध है", - "TOOLTIP_SCREENRECORDING_ON": "स्क्रीन रिकॉर्डिंग प्रगति पर है" + "TOOLTIP_SCREENRECORDING_ON": "स्क्रीन रिकॉर्डिंग प्रगति पर है", + "SECOND_LEVEL_DISPOSITION": "दूसरा स्तर विवाद", + "THIRD_LEVEL_DISPOSITION": "तीसरे स्तर का विवाद" } } diff --git a/public/app/main/apps/motiondialer/i18n/id.json b/public/app/main/apps/motiondialer/i18n/id.json index e98d025..ea77151 100644 --- a/public/app/main/apps/motiondialer/i18n/id.json +++ b/public/app/main/apps/motiondialer/i18n/id.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Max Retries", "NOSUCHNUMBERRETRYTIME": "Coba Lagi Waktu [mnt]", "TOOLTIP_SCREENRECORDING_OFF": "Rekaman Layar tersedia", - "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung" + "TOOLTIP_SCREENRECORDING_ON": "Perekaman Layar sedang berlangsung", + "SECOND_LEVEL_DISPOSITION": "Disposisi Tingkat Kedua", + "THIRD_LEVEL_DISPOSITION": "Disposisi Tingkat Ketiga" } } diff --git a/public/app/main/apps/motiondialer/i18n/ja.json b/public/app/main/apps/motiondialer/i18n/ja.json index e3cc819..78e856c 100644 --- a/public/app/main/apps/motiondialer/i18n/ja.json +++ b/public/app/main/apps/motiondialer/i18n/ja.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "最大再試行", "NOSUCHNUMBERRETRYTIME": "再試行時間[分]", "TOOLTIP_SCREENRECORDING_OFF": "利用可能なスクリーン録画", - "TOOLTIP_SCREENRECORDING_ON": "スクリーン録画中" + "TOOLTIP_SCREENRECORDING_ON": "スクリーン録画中", + "SECOND_LEVEL_DISPOSITION": "第2レベルの気質", + "THIRD_LEVEL_DISPOSITION": "第3レベルの気質" } } diff --git a/public/app/main/apps/motiondialer/i18n/ko.json b/public/app/main/apps/motiondialer/i18n/ko.json index 2b505fd..5974812 100644 --- a/public/app/main/apps/motiondialer/i18n/ko.json +++ b/public/app/main/apps/motiondialer/i18n/ko.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "최대 재시도", "NOSUCHNUMBERRETRYTIME": "재시도 시간 [분]", "TOOLTIP_SCREENRECORDING_OFF": "스크린 녹화 가능", - "TOOLTIP_SCREENRECORDING_ON": "화면 녹화 중" + "TOOLTIP_SCREENRECORDING_ON": "화면 녹화 중", + "SECOND_LEVEL_DISPOSITION": "두 번째 수준 처리", + "THIRD_LEVEL_DISPOSITION": "3 단계 처리" } } diff --git a/public/app/main/apps/motiondialer/i18n/lt.json b/public/app/main/apps/motiondialer/i18n/lt.json index e591b9f..f201dd6 100644 --- a/public/app/main/apps/motiondialer/i18n/lt.json +++ b/public/app/main/apps/motiondialer/i18n/lt.json @@ -325,365 +325,367 @@ "SECONDSANNOUNCE": "Pasirinkite garsą, apibrėžtą įrankiuose. Numatytasis = 'sekundės'. Neapibrėžtas = jokio pranešimo", "THANKYOUANNOUNCE": "Pasirinkite garsą, apibrėžtą įrankiuose. Numatytasis = 'Ačiū už kantrybę'. Neapibrėžtas = jokio pranešimo", "AFTERCALLWORK": "Jei įjungta, agentui bus nustatyta Pauzė, kai bus baigtas skambutis", - "AUTOPAUSE": "Enables/disables the automatic pause of agents who fail to answer a call. If enabled, it causes the agent to be paused in all queues he belongs to", - "RINGINUSE": "To avoid/allow sending calls to members whose status is In Use", - "TIMEOUTRESTART": "If yes, this resets the timeout for an agent to answer when either a BUSY or CONGESTION status is received from the channel", - "MONITORFORMAT": "Specifies the file format to use when recording. If monitor-format is inactive, calls will not be recorded", - "CONTEXT": "Allows a caller to exit the queue by pressing a single DTMF digit. If a context is specified and the caller enters a number, that digit will attempt to be matched in the context specified, and dialplan execution will continue there", - "SETINTERFACEVARIABLES": "If set to yes, just prior to the caller being connected with a queue agent some variables will be set (for more information see wiki docs:click here)", - "SETQUEUEVARIABLES": "If set to yes, just prior to the caller being connected with a queue agent and leaving the queue, some variables will be set (for more information, see wiki docs:click here)", - "SETQUEUEENTRYVARIABLES": "If set to yes, just prior to the caller being connected with a queue agent some variables will be set (for more information, see wiki docs:click here)", - "RECORDING": "Enable call recording", - "VOICEMAIL_CONTEXT": "The context of the relative extension", - "METHOD": "Outbound dialer method", - "POWERLEVEL": "Number of contacts to call for any available agent", - "PREDICTIVEOPTIMIZATION": "A factor to optimize in the predictive algorithm", - "PREDICTIVEOPTIMIZATIONPERCENTAGE": "Percentage based on the selected predictive optimization factor", - "PREDICTIVEINTERVAL": "Time interval (in minutes) considered by the predictive algorithm to calculate the amount of calls to generate to optimize the result", - "MAXCONCURRENTCALLS": "Maximum number of concurrent calls that will be originated by the outbound dialer for this campaign (0=unlimited)", - "CONCURRENTCALLS": "Maximum number of concurrent calls that will be originated by the outbound dialer for this campaign", - "ORIGINATECALLERIDNAME": "Outgoing Caller Id Name", - "ORIGINATECALLERIDNUMBER": "Outgoing Caller Id Number", - "ORIGINATETIMEOUT": "Time (in seconds) for the outbound call to establish a connection, otherwise the status is set to No Answer ", - "QUEUETIMEOUT": "Time (in seconds) a call will wait in the queue before it is dropped (Min 1 and Max 999)", - "GLOBALMAXRETRY": "Maximum number of times a contact is called before considering it closed", - "CONGESTIONMAXRETRY": "Maximum number of times a contact is called before considering it closed, when the call failed for congestion", - "CONGESTIONRETRYTIME": "Time in minutes before trying to call again a failed contact due to congestion", - "BUSYMAXRETRY": "Maximum number of times a contact is called before considering it closed, when the call failed for busy", - "BUSYRETRYTIME": "Time in minutes before trying to call again a failed contact due to busy", - "NOANSWERMAXRETRY": "Maximum number of times a contact is called before considering it closed, when the call failed for no answer", - "NOANSWERRETRYTIME": "Time in minutes before trying to call again a failed contact due to no answer", - "GLOBALINTERVAL": "Global time interval during which the dialer is allowed to call contacts. We decline responsibility: pay attention when you modify this field, because you may fail to comply with the national Autodialer Laws and Regulations", - "NAME": "Only numbers, letters and specific characters (._) are supported", - "MANDATORYDISPOSITIONPAUSEID": "Pause status to set during mandatory disposition", - "ABANDONEDMAXRETRY": "Maksimalus kontaktui skambučių skaičius prieš laikant jį uždarytu, kai nepavyko atsisakyti skambučio", - "ABANDONEDRETRYTIME": "Laikas minutėmis, kol bandysite dar kartą paskambinti nepavykusiam kontaktui dėl atsisakymo", - "AGENTREJECTMAXRETRY": "Maksimalus kontaktui skambučių skaičius prieš laikant jį uždarytu, kai nepavyko iškviesti agento atmetimo", - "AGENTREJECTRETRYTIME": "Laikas minutėmis prieš bandant dar kartą paskambinti nepavykusiam kontaktui dėl agento atmetimo", - "DROPMAXRETRY": "Maksimalus kontaktui skambučių skaičius prieš laikant jį uždarytu, kai nepavyko iškviesti skambučio", - "DROPRETRYTIME": "Laikas minutėmis, kol vėl bandysite paskambinti nepavykusiam kontaktui dėl kritimo", - "MACHINEMAXRETRY": "Maksimalus kontaktui skambučių skaičius prieš laikant jį uždarytu, kai nepavyko skambinti mašinai", - "MACHINERETRYTIME": "Laikas minutėmis, kol vėl bandysite paskambinti nepavykusiam kontaktui dėl mašinos", - "NOSUCHNUMBERMAXRETRY": "Maksimalus kontaktui skambučių skaičius prieš laikant jį uždarytu, kai skambutis nepavyko dėl tokio numerio", - "NOSUCHNUMBERRETRYTIME": "Laikas minutėmis, kol vėl bandysite paskambinti nepavykusiam kontaktui dėl tokio numerio neturėjimo" + "AUTOPAUSE": "Įjungti / išjungti automatinę pauzę agentų, kurie neatsako į skambutį. Jei įjungta, agentas pristabdomas visose eilėse, kurioms jis priklauso", + "RINGINUSE": "Neleisti/leisti siųsti skambučius nariams, kurių būsena naudojamas", + "TIMEOUTRESTART": "Jei taip, tai iš naujo nustato agento atsakymo laiką, kai iš kanalo gaunama UŽIMTAS arba PERPILDYTAS būsena.", + "MONITORFORMAT": "Nurodo failo formatą, kurį reikia naudoti įrašant. Jei monitoriaus formatas neaktyvus, skambučiai nebus įrašomi", + "CONTEXT": "Leidžia skambintojui išeiti iš eilės paspaudus vieną DTMF skaitmenį. Jei nurodomas kontekstas ir skambinantysis įveda numerį, tą skaitmenį bus bandoma suderinti nurodytame kontekste ir ten bus tęsiamas rinkimo plano vykdymas", + "SETINTERFACEVARIABLES": "Jei nustatyta Taip, prieš skambintojui prisijungiant prie eilės agento, bus nustatyti keli kintamieji (daugiau informacijos ieškokite wiki dokumentuose: spustelėkite čia)", + "SETQUEUEVARIABLES": "Jei nustatyta Taip, prieš skambinančiajam prisijungiant prie eilės agento ir paliekant eilę, bus nustatyti keli kintamieji (daugiau informacijos ieškokite wiki dokumentuose: spustelėkite čia)", + "SETQUEUEENTRYVARIABLES": "Jei nustatyta Taip, prieš skambintojui prisijungiant prie eilės agento, bus nustatyti keli kintamieji (daugiau informacijos ieškokite wiki dokumentuose: spustelėkite čia)", + "RECORDING": "Įjungti skambučių įrašymą", + "VOICEMAIL_CONTEXT": "Atitinkamo pratęsimo kontekstas", + "METHOD": "Siunčiamojo rinkiklio metodas", + "POWERLEVEL": "Kontaktų skaičius, kuriems skambinti dėl bet kurio turimo agento", + "PREDICTIVEOPTIMIZATION": "Veiksnys, optimizuojantis prognozuojamą algoritmą", + "PREDICTIVEOPTIMIZATIONPERCENTAGE": "Procentai pagal pasirinktą prognozuojamo optimizavimo faktorių", + "PREDICTIVEINTERVAL": "Laiko intervalas (minutėmis), kurį apsvarsto prognozavimo algoritmas, kad apskaičiuotų skambučių kiekį, kuriuos reikia generuoti rezultatui optimizuoti", + "MAXCONCURRENTCALLS": "Maksimalus vienu metu atliekamų skambučių skaičius, kuris bus inicijuotas šios kampanijos siunčiamu rinkikliu (0 = neribotas)", + "CONCURRENTCALLS": "Maksimalus vienu metu atliekamų skambučių skaičius, kuris bus inicijuotas šios kampanijos siunčiamu rinkikliu", + "ORIGINATECALLERIDNAME": "Išeinančio skambintojo ID vardas", + "ORIGINATECALLERIDNUMBER": "Išeinančio skambintojo ID numeris", + "ORIGINATETIMEOUT": "Laikas (sekundėmis), išeinančio skambučio ryšiui užmegsti, kitu atveju būsena yra nustatyta kaip Nėra atsakymo", + "QUEUETIMEOUT": "Laikas (sekundėmis), kai skambutis laukia eilėje, kol jis bus atmestas (min. 1 ir maks. 999)", + "GLOBALMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu", + "CONGESTIONMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu, kai skambutis nepavyko dėl perkrovos", + "CONGESTIONRETRYTIME": "Laikas minutėmis, kai bandysite dar kartą paskambinti nepavykusiam kontaktui dėl perkrovos", + "BUSYMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu, kai skambutis nepavyko dėl užimtumo", + "BUSYRETRYTIME": "Laikas minutėmis, kai bandysite dar kartą paskambinti nepavykusiam kontaktui dėl užimtumo", + "NOANSWERMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu, kai skambutis nepavyko dėl nepakelto ragelio", + "NOANSWERRETRYTIME": "Laikas minutėmis, kai bandysite dar kartą paskambinti nepavykusiam kontaktui dėl nepakelto ragelio", + "GLOBALINTERVAL": "Visuotinis laiko intervalas, per kurį rinkėjui leidžiama skambinti kontaktams. Atsisakome atsakomybės: keisdami šią sritį atkreipkite dėmesį, nes galite nesilaikyti nacionalinių Automatinio rinkiklio įstatymų ir reglamentų", + "NAME": "Palaikomi tik skaičiai, raidės ir konkretūs simboliai (._)", + "MANDATORYDISPOSITIONPAUSEID": "Pauzės būseną nustatyti privalomo išdėstymo metu", + "ABANDONEDMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu, kai skambutis nepavyko, nes buvo pamestas", + "ABANDONEDRETRYTIME": "Laikas minutėmis, kai bandysite dar kartą paskambinti nepavykusiam kontaktui, kuris buvo pamestas", + "AGENTREJECTMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu, kai skambutis nepavyko dėl skambinančio agento atmetimo", + "AGENTREJECTRETRYTIME": "Laikas minutėmis, kai bandysite dar kartą paskambinti nepavykusiam kontaktui dėl skambinančio agento atmetimo", + "DROPMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu, kai skambutis nepavyko dėl atmetimo", + "DROPRETRYTIME": "Laikas minutėmis, kai bandysite dar kartą paskambinti nepavykusiam kontaktui dėl atmetimo", + "MACHINEMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu, kai skambutis nepavyko dėl įrenginio", + "MACHINERETRYTIME": "Laikas minutėmis, kai bandysite dar kartą paskambinti nepavykusiam kontaktui dėl įrenginio", + "NOSUCHNUMBERMAXRETRY": "Maksimalus kartų skaičius, kiek kontaktui yra skambinama prieš laikant jį uždarytu, kai skambutis nepavyko, nes nėra tokio numerio", + "NOSUCHNUMBERRETRYTIME": "Laikas minutėmis, kai bandysite dar kartą paskambinti nepavykusiam kontaktui, kai nėra tokio numerio" }, - "MUSICONHOLD": "Music On Hold", - "ANNOUNCETOAGENT": "Announce To Agent", - "ANNOUNCEMENTS": "Announcements", - "ADVANCEDPREVIEW": "Advanced", - "ADVANCED": "Advanced", - "ADVANCE": "Advanced", - "ANNOUNCEFREQUENCY": "Announce Frequency", - "MINANNOUNCEFREQUENCY": "Minimum Announce Frequency", - "PERIODICANNOUNCEFREQUENCY": "Periodic Announce Frequency", - "RANDOMPERIODICANNOUNCE": "Random Periodic Announce", - "ANNOUNCEHOLDTIME": "Announce Hold Time", - "ANNOUNCECALLERPOSITION": "Announce Caller Position", - "ANNOUNCEPOSITIONLIMIT": "Announce Position Limit", - "REPORTHOLDTIMEAGENT": "Report Agent Hold Time", - "PERIODICANNOUNCE": "Periodic Announce", - "HOLDTIMEANNOUNCE": "Hold Time Announce", - "YOUARENEXTANNOUNCE": "'You are next' Announce", - "THEREAREANNOUNCE": "'There are' Announce", - "WAITINGCALLSANNOUNCE": "Waiting Calls Announce", - "ESTIMATEDHOLDTIMEANNOUNCE": "Estimated Hold Time Announce", - "MINUTESANNOUNCE": "Minutes Announce", - "MINUTEANNOUNCE": "Minute Announce", - "SECONDSANNOUNCE": "Seconds Announce", - "THANKYOUANNOUNCE": "'Thank You' Announce", - "AUTOPAUSE": "Auto Pause", - "AFTERCALLWORK": "After Call Work", - "AFTERCALLWORKDURATION": "After Call Work Duration", - "RINGINUSE": "Ring In Use", - "MEMBERDELAY": "Member Delay", - "TIMEOUTRESTART": "Timeout Restart", - "MONITORFORMAT": "Recording Format", - "SETINTERFACEVARIABLES": "Set Interface Variables", - "SETQUEUEVARIABLES": "Set Queue Variables", - "SETQUEUEENTRYVARIABLES": "Set Queue Entry Variables", - "CONTEXT": "Context", - "SAVE": "Save", - "SETTINGS": "Settings", - "INBOUNDROUTES": "Inbound Routes", - "PHONENUMBER": "Phone Number", - "ADD_INBOUNDROUTE": "Add Inbound Route", - "EDIT_INBOUNDROUTE": "Edit Inbound Route", - "DELETE_INBOUNDROUTE": "Delete Inbound Route", - "ACTIONS": "Actions", - "OUTBOUNDROUTES": "Outbound Routes", - "DESTINATIONPATTERN": "Destination Pattern", - "ADD_OUTBOUNDROUTE": "Add Outbound Route", - "EDIT_OUTBOUNDROUTE": "Edit Outbound Route", - "DELETE_OUTBOUNDROUTE": "Delete Outbound Route", - "CUTDIGITS": "Cut Digits", - "RECORDING": "Recording", - "RECORDINGFORMAT": "Recording format", - "INTERNALROUTES": "Internal Routes", - "ADD_INTERNALROUTE": "Add Internal Route", - "EDIT_INTERNALROUTE": "Edit Internal Route", - "DELETE_INTERNALROUTE": "Delete Internal Route", - "CONTEXTS": "Contexts", - "ADD_CONTEXT": "Add Context", - "EDIT_CONTEXT": "Edit Context", - "DELETE_CONTEXT": "Delete Context", - "VOICEMAILS": "Voicemails", - "ADD_VOICEMAIL": "Add Voicemail", - "EDIT_VOICEMAIL": "Edit Voicemail", - "DELETE_VOICEMAIL": "Delete Voicemail", - "FULLNAME": "Full Name", - "EMAIL": "Email", - "MAILBOX": "Mailbox", - "PASSWORD": "Password", - "CONFIRM_PASSWORD": "Confirm Password", - "TIMEZONE": "Timezone", - "ATTACH": "Attach", - "ENVELOPE": "Envelope", - "DELETE": "Delete", - "EMAILBODY": "Email Body", - "EMAILSUBJECT": "Email Subject", - "MAXSECONDS": "Max Seconds", - "MAXMESSAGES": "Max Messages", - "MESSAGES": "Messages", - "SORT": "Sort", - "ADD_MUSICONHOLD": "Add Music On Hold", - "MUSICONHOLDS": "Music On Hold", - "EDIT_MUSICONHOLD": "Edit Music On Hold", - "DELETE_MUSICONHOLD": "Delete Music On Hold", - "DIRECTORY": "Directory", - "AUDIOFILES": "Audio Files", - "RECORDINGS": "Recordings", + "MUSICONHOLD": "Muzika sulaikyta", + "ANNOUNCETOAGENT": "Pranešti agentui", + "ANNOUNCEMENTS": "Pranešimai", + "ADVANCEDPREVIEW": "Išplėstinė", + "ADVANCED": "Išplėstinė", + "ADVANCE": "Išplėstinė", + "ANNOUNCEFREQUENCY": "Pranešimo pakartojimas", + "MINANNOUNCEFREQUENCY": "Minimalus pranešimo pakartojimas", + "PERIODICANNOUNCEFREQUENCY": "Periodiškas pranešimo pakartojimas", + "RANDOMPERIODICANNOUNCE": "Atsitiktinis periodinis pranešimas", + "ANNOUNCEHOLDTIME": "Pranešimo sulaikymo laikas", + "ANNOUNCECALLERPOSITION": "Pranešti skambinančiojo poziciją", + "ANNOUNCEPOSITIONLIMIT": "Pranešti pozicijos limitą", + "REPORTHOLDTIMEAGENT": "Pranešti agento sulaikymo laikas", + "PERIODICANNOUNCE": "Periodiškas pranešimas", + "HOLDTIMEANNOUNCE": "Sulaikymo pranešimas", + "YOUARENEXTANNOUNCE": "'Tu esi kitas' pranešimas", + "THEREAREANNOUNCE": "'Yra' pranešimas", + "WAITINGCALLSANNOUNCE": "Laukiama skambučių pranešimas", + "ESTIMATEDHOLDTIMEANNOUNCE": "Numatomas sulaikymo laiko pranešimas", + "MINUTESANNOUNCE": "Minučių pranešimas", + "MINUTEANNOUNCE": "Minutės pranešimas", + "SECONDSANNOUNCE": "Sekundžių pranešimas", + "THANKYOUANNOUNCE": "'Ačiū' pranešimas", + "AUTOPAUSE": "Automatinė pauzė", + "AFTERCALLWORK": "Po skambučio darbo", + "AFTERCALLWORKDURATION": "Po skambučio darbo trukmė", + "RINGINUSE": "Skambinimas naudojamas", + "MEMBERDELAY": "Nario vėlavimas", + "TIMEOUTRESTART": "Iš naujo paleisti laiką", + "MONITORFORMAT": "Įrašymo formatas", + "SETINTERFACEVARIABLES": "Nustatyti sąsajos kintamuosius", + "SETQUEUEVARIABLES": "Nustatyti eilės kintamuosius", + "SETQUEUEENTRYVARIABLES": "Nustatyti eilės įrašo kintamuosius", + "CONTEXT": "Kontekstas", + "SAVE": "Išsaugoti", + "SETTINGS": "Nustatymai", + "INBOUNDROUTES": "Įeinantys maršrutai", + "PHONENUMBER": "Telefono numeris", + "ADD_INBOUNDROUTE": "Pridėti įeinantį maršrutą", + "EDIT_INBOUNDROUTE": "Redaguoti įeinantį maršrutą", + "DELETE_INBOUNDROUTE": "Ištrinti įeinantį maršrutą", + "ACTIONS": "Veiksmai", + "OUTBOUNDROUTES": "Išeinantys maršrutai", + "DESTINATIONPATTERN": "Paskirties modelis", + "ADD_OUTBOUNDROUTE": "Pridėti išeinantį maršrutą", + "EDIT_OUTBOUNDROUTE": "Redaguoti išeinantį maršrutą", + "DELETE_OUTBOUNDROUTE": "Ištrinti išeinantį maršrutą", + "CUTDIGITS": "Iškirpti skaitmenis", + "RECORDING": "Įrašymas", + "RECORDINGFORMAT": "Įrašymo formatas", + "INTERNALROUTES": "Vidiniai maršrutai", + "ADD_INTERNALROUTE": "Pridėti vidinį maršrutą", + "EDIT_INTERNALROUTE": "Redaguoti vidinį maršrutą", + "DELETE_INTERNALROUTE": "Ištrinti vidinį maršrutą", + "CONTEXTS": "Kontekstai", + "ADD_CONTEXT": "Pridėti kontekstą", + "EDIT_CONTEXT": "Redaguoti kontekstą", + "DELETE_CONTEXT": "Ištrinti kontekstą", + "VOICEMAILS": "Balso pašto pranešimai", + "ADD_VOICEMAIL": "Pridėti balso pašto pranešimą", + "EDIT_VOICEMAIL": "Redaguoti balso pašto pranešimą", + "DELETE_VOICEMAIL": "Ištrinti balso pašto pranešimą", + "FULLNAME": "Vardas ir pavardė", + "EMAIL": "El. paštas", + "MAILBOX": "Pašto dėžutė", + "PASSWORD": "Slaptažodis", + "CONFIRM_PASSWORD": "Patvirtinti slaptažodį", + "TIMEZONE": "Laiko zona", + "ATTACH": "Pridėti", + "ENVELOPE": "Vokas", + "DELETE": "Ištrinti", + "EMAILBODY": "El. laiško turinys", + "EMAILSUBJECT": "El. laiško tema", + "MAXSECONDS": "Maks. sekundžių", + "MAXMESSAGES": "Maks. žinučių", + "MESSAGES": "Žinutės", + "SORT": "Rūšiuoti", + "ADD_MUSICONHOLD": "Pridėti muzikos sulaikymą", + "MUSICONHOLDS": "Muzikos sulaikymas", + "EDIT_MUSICONHOLD": "Redaguoti muzikos sulaikymą", + "DELETE_MUSICONHOLD": "Ištrinti muzikos sulaikymą", + "DIRECTORY": "Katalogas", + "AUDIOFILES": "Garso failai", + "RECORDINGS": "Įrašai", "CHANSPY": "ChanSpy", - "PREFIX": "Prefix", - "OPTIONS": "Options", + "PREFIX": "Prefiksas", + "OPTIONS": "Parinktys", "AUTH": "Auth", - "ADD_CHANSPY": "Add ChanSpy", - "EDIT_CHANSPY": "Edit ChanSpy", - "DELETE_CHANSPY": "Delete ChanSpy", - "AGENTS": "Agents", - "TELEPHONES": "Telephones", - "QUEUES": "Queues", - "QUEUE_CALLS": "Queue Calls", - "QUEUE_PARAMETERS": "Queue Parameters", - "ABANDONED_CALLS": "Abandoned Calls", - "OUTBOUND_CALLS": "Outbound Calls", + "ADD_CHANSPY": "Pridėti ChanSpy", + "EDIT_CHANSPY": "Redaguoti ChanSpy", + "DELETE_CHANSPY": "Ištrinti ChanSpy", + "AGENTS": "Agentai", + "TELEPHONES": "Telefonai", + "QUEUES": "Eilės", + "QUEUE_CALLS": "Eilės skambučiai", + "QUEUE_PARAMETERS": "Eilės parametrai", + "ABANDONED_CALLS": "Pamesti skambučiai", + "OUTBOUND_CALLS": "Išsiųsti skambučiai", "AGI": "AGI", - "DIAL": "Dial", - "INTERNALDIAL": "Internal Dial", - "EXTERNALDIAL": "External Dial", - "RINGGROUP": "Ring Group", - "PLAYBACK": "Playback", - "QUEUE": "Queue", - "SET": "Set", - "VOICEMAIL": "Voicemail", - "GOTO": "GoTo", - "HANGUP": "Hangup", - "CUSTOM": "Custom", - "PROJECT": "Cally-Square Project", - "TECHNOLOGY/RESOURCE": "Technology/Resource", + "DIAL": "Rinkimas", + "INTERNALDIAL": "Vidinis rinkimas", + "EXTERNALDIAL": "Išorinis rinkimas", + "RINGGROUP": "Skambučio grupė", + "PLAYBACK": "Atkūrimas", + "QUEUE": "Eilė", + "SET": "Nustatyti", + "VOICEMAIL": "Balso paštas", + "GOTO": "Eiti į", + "HANGUP": "Atidėti", + "CUSTOM": "Pasirinktinis", + "PROJECT": "Cally-Square projektas", + "TECHNOLOGY/RESOURCE": "Technologijos / šaltiniai", "URL": "URL", - "EDIT_APP": "Edit Application", - "EDIT_INTERVAL": "Edit Interval", - "DELETE_APP": "Delete Application", - "INTERVALS": "Intervals", - "USER": "User", - "TRUNK": "Trunk", - "PHONE": "Phone", - "AUDIO_FILES": "Audio Files", - "ANNOUNCE_OVERRIDES": "Announce Overrides", - "MACRO": "Macro", + "EDIT_APP": "Redaguoti programą", + "EDIT_INTERVAL": "Redaguoti intervalą", + "DELETE_APP": "Ištrinti programą", + "INTERVALS": "Intervalai", + "USER": "Vartotojas", + "TRUNK": "Ryšio kanalas", + "PHONE": "Telefonas", + "AUDIO_FILES": "Garso failai", + "ANNOUNCE_OVERRIDES": "Nekreipti dėmesio į pranešimą", + "MACRO": "Makrokomanda", "GOSUB": "GoSub", - "RULE": "Rule", - "POSITION": "Position", - "ANSWER": "Answer", - "VALUE": "Value", - "MAILBOX@CONTEXT": "Mailbox@Context", - "EXTENSION": "Extension", - "PRIORITY": "Priority", - "HANGUP_CAUSE": "Hangup Cause", - "OUTBOUNDDIAL": "Outbound Dial", - "CALLER_ID": "Caller ID", - "NO_MESSAGE_AVAILABLE": "No messages available", - "NO_SOUND_AVAILABLE": "No sounds available", - "VOICERECORDINGS": "Voice Recordings", + "RULE": "Taisyklė", + "POSITION": "Pozicija", + "ANSWER": "Atsakymas", + "VALUE": "Reikšmė", + "MAILBOX@CONTEXT": "Pašto dėžutė@kontekstas", + "EXTENSION": "Pratęsimas", + "PRIORITY": "Prioritetas", + "HANGUP_CAUSE": "Atidėjimo priežastis", + "OUTBOUNDDIAL": "Išeinantis rinkimas", + "CALLER_ID": "Skambintojo ID", + "NO_MESSAGE_AVAILABLE": "Nėra jokių pranešimų", + "NO_SOUND_AVAILABLE": "Nėra jokių garsų", + "VOICERECORDINGS": "Balso įrašai", "CHANSPIES": "ChanSpy", - "VOICE": "Voice", - "REALTIME": "Realtime", + "VOICE": "Balsas", + "REALTIME": "Realus laikas", "ID": "Id", - "VOICEMAIL_CONTEXT": "Context", - "NO_MOHSOUND_AVAILABLE": "No Music On Hold available", - "FILE": "File", - "ADD_MOHSOUND": "Add Music On Hold sound", - "DOWNLOAD_MOHSOUND": "Download Music On Hold sound", - "DELETE_MOHSOUND": "Delete Music On Hold sound", - "UNIQUEID": "Unique ID", - "AGENT": "Agent", - "TYPE": "Type", - "RATING": "Rating", - "AUDIO": "Audio", - "DATE": "Date", - "NEW_VOICEQUEUE": "New Voice Queue", - "NEW_INBOUNDROUTE": "New Inbound Route", - "NEW_OUTBOUNDROUTE": "New Outbound Route", - "NEW_INTERNALROUTE": "New Internal Route", - "NEW_CONTEXT": "New Context", - "NEW_VOICEMAIL": "New Voicemail", - "NEW_MUSICONHOLD": "New Music On Hold", - "NEW_CHANSPY": "New ChanSpy", - "PENALTY": "Penalty", - "ADD_TEAM_TO_VOICEQUEUE": "Add Team to Voice Queue", - "ADD_AGENT_TO_VOICEQUEUE": "Add Agent to Voice Queue", - "EDIT_DIAL": "Edit Dial", - "EDIT_AGI": "Edit AGI", - "EDIT_INTERNALDIAL": "Edit Internal Dial", - "EDIT_EXTERNALDIAL": "Edit External Dial", - "EDIT_RINGGROUP": "Edit Ring Group", - "EDIT_PLAYBACK": "Edit Playback", - "EDIT_QUEUE": "Edit Queue", - "EDIT_SET": "Edit Set", - "EDIT_GOTO": "Edit GoTo", - "EDIT_HANGUP": "Edit Hangup", - "EDIT_CUSTOM": "Edit Custom", - "DURATION": "Duration", - "RECEIVED_AT": "Received At", - "YES": "Yes", - "NO": "No", - "HANGUPCAUSE_1": "1 = Unallocated number", - "HANGUPCAUSE_16": "16 = Normal call clearing", - "HANGUPCAUSE_17": "17 = User busy", - "HANGUPCAUSE_18": "18 = No user responding (telehone device not connected)", - "HANGUPCAUSE_21": "21 = Call rejected", - "HANGUPCAUSE_22": "22 = Number changed", - "HANGUPCAUSE_27": "27 = Destination out of order", - "HANGUPCAUSE_38": "38 = Network out of order", - "HANGUPCAUSE_41": "41 = Temporary failure", - "RANDOM": "Random", - "ALPHABETICAL": "Alphabetical", - "NO_APPS_AVAILABLE": "No applications available", - "DOWNLOAD_VOICERECORDING": "Download Voice Recording", - "DELETE_VOICERECORDING": "Delete Voice Recording", - "INTERNAL": "Internal", - "PHONE_STATE": "Phone State", - "PHONE_STATUS": "Phone Status", - "REGISTERED": "Registered", - "UNREGISTERED": "Unregistered", - "LAGGED": "Lagged", - "REACHABLE": "Reachable", - "UNREACHABLE": "Unreachable", - "UNKNOWN": "Unknown", - "NOT_INUSE": "Not in use", - "INUSE": "In Use", - "BUSY": "Busy", - "INVALID": "Invalid", - "UNAVAILABLE": "Unavailable", - "RINGING": "Ringing", - "ONHOLD": "On Hold", - "RING": "Ring", - "UP": "Up", - "INFO": "Info", - "TRUNKS": "Trunks", - "REGISTRY": "Registry", - "NO_REGISTRY": "No registry", - "LOGGED_IN": "Logged in (SIP connected)", - "PAUSED": "Paused", - "DISPOSITION": "Disposition", - "WAITING": "Waiting", - "TALKING": "Talking", + "VOICEMAIL_CONTEXT": "Kontekstas", + "NO_MOHSOUND_AVAILABLE": "Nėra sulaikytos muzikos", + "FILE": "Failas", + "ADD_MOHSOUND": "Pridėti muzikos sulaikymo garsą", + "DOWNLOAD_MOHSOUND": "Parsisiųsti muzikos sulaikymo garsą", + "DELETE_MOHSOUND": "Ištrinti muzikos sulaikymo garsą", + "UNIQUEID": "Unikalus ID", + "AGENT": "Agentas", + "TYPE": "Tipas", + "RATING": "Įvertinimas", + "AUDIO": "Garsas", + "DATE": "Data", + "NEW_VOICEQUEUE": "Naujas balso eilė", + "NEW_INBOUNDROUTE": "Naujas įeinantis maršrutas", + "NEW_OUTBOUNDROUTE": "Naujas išeinantis maršrutas", + "NEW_INTERNALROUTE": "Naujas vidinis maršrutas", + "NEW_CONTEXT": "Naujas kontekstas", + "NEW_VOICEMAIL": "Naujas balso paštas", + "NEW_MUSICONHOLD": "Nujas muzikos sulaikymas", + "NEW_CHANSPY": "Naujas ChanSpy", + "PENALTY": "Bauda", + "ADD_TEAM_TO_VOICEQUEUE": "Pridėti komandą prie balso eilės", + "ADD_AGENT_TO_VOICEQUEUE": "Pridėti agentą prie balso eilės", + "EDIT_DIAL": "Redaguoti rinkimą", + "EDIT_AGI": "Redaguoti AGI", + "EDIT_INTERNALDIAL": "Redaguoti vidinį rinkimą", + "EDIT_EXTERNALDIAL": "Redaguoti išorinį rinkimą", + "EDIT_RINGGROUP": "Redaguoti skambučio grupę", + "EDIT_PLAYBACK": "Redaguoti atkūrimą", + "EDIT_QUEUE": "Redaguoti eilę", + "EDIT_SET": "Redaguoti nustatymą", + "EDIT_GOTO": "Redaguoti Eiti į", + "EDIT_HANGUP": "Redaguoti atidėjimą", + "EDIT_CUSTOM": "Redaguoti pasirinkimą", + "DURATION": "Trukmė", + "RECEIVED_AT": "Gauta", + "YES": "Taip", + "NO": "Ne", + "HANGUPCAUSE_1": "1 = Nepaskirstytas numeris", + "HANGUPCAUSE_16": "16 = Įprastas skambučių šalinimas", + "HANGUPCAUSE_17": "17 = Vartotojas užimtas", + "HANGUPCAUSE_18": "18 = vartotojas neatsako (telefono aparatas neprijungtas)", + "HANGUPCAUSE_21": "21 = skambutis atmestas", + "HANGUPCAUSE_22": "22 = numeris pakeistas", + "HANGUPCAUSE_27": "27 = paskirties vieta neveikia", + "HANGUPCAUSE_38": "38 = tinklas neveikia", + "HANGUPCAUSE_41": "41 = laikinas gedimas", + "RANDOM": "Atsitiktinis", + "ALPHABETICAL": "Abėcėlės tvarka", + "NO_APPS_AVAILABLE": "Nėra programų", + "DOWNLOAD_VOICERECORDING": "Parsisiųsti balso įrašą", + "DELETE_VOICERECORDING": "Ištrinti balso įrašą", + "INTERNAL": "Vidinis", + "PHONE_STATE": "Telefono būsena", + "PHONE_STATUS": "Telefono statusas", + "REGISTERED": "Registruotas", + "UNREGISTERED": "Neregistruotas", + "LAGGED": "Atsiliko", + "REACHABLE": "Pasiekiamas", + "UNREACHABLE": "Nepasiekiamas", + "UNKNOWN": "Nežinomas", + "NOT_INUSE": "Nenaudojamas", + "INUSE": "Naudojamas", + "BUSY": "Užimtas", + "INVALID": "Neteisingas", + "UNAVAILABLE": "Nepasiekiamas", + "RINGING": "Skambėjimas", + "ONHOLD": "Sulaikytas", + "RING": "Skambutis", + "UP": "Aukštyn", + "INFO": "Informacija", + "TRUNKS": "Ryšio kanalai", + "REGISTRY": "Registras", + "NO_REGISTRY": "Nėra registro", + "LOGGED_IN": "Prisijungęs (prijungtas SIP)", + "PAUSED": "Pristabdytas", + "DISPOSITION": "Išdėstymas", + "WAITING": "Laukiama", + "TALKING": "Kalbama", "DID": "DID", - "CALLER": "Caller", - "TOTAL": "Total", - "ANSWERED": "Answered", - "ABANDONED": "Abandoned", - "UNMANAGED": "Unmanaged", - "REDIRECT_TO_NUMBER": "Redirect to a number", - "REDIRECT_TO_AGENT": "Redirect to an agent", - "CLOSING": "Closing", - "AVG_HOLD_TIME": "Avg Hold Time", - "AVG_DURATION": "Avg Duration", - "AVG_BILLABLE": "Avg Billable", - "SOURCE": "Source", - "DESTINATION": "Destination", - "REJECTED": "Rejected", - "FAILED": "Failed", - "CALLED": "Called", - "CONNECTED": "Connected", - "NO_RATING": "No rating", - "EDIT_VOICERECORDING": "Edit Voice Recording", - "APPLICATION_NAME": "Application Name", - "ARGUMENTS": "Arguments", - "EDIT_QUEUECAMPAIGN": "Edit Campaign", - "LISTADD_QUEUECAMPAIGN": "Add List", - "BLACKLISTADD_QUEUECAMPAIGN": "Add Blacklist", - "TEAMADD_QUEUECAMPAIGN": "Add Team", - "AGENTADD_QUEUECAMPAIGN": "Add Agent", - "DELETE_QUEUECAMPAIGN": "Delete Campaign", - "DELETE_IVRCAMPAIGN": "Delete Campaign", - "EDIT_IVRCAMPAIGN": "Edit Campaign", - "NEW_IVRCAMPAIGN": "New IVR Campaign", - "ADD_IVRCAMPAIGN": "Add IVR Campaign", - "LISTADD_IVRCAMPAIGN": "Add List", - "BLACKLISTADD_IVRCAMPAIGN": "Add Blacklist", - "ENABLED": "Enabled", - "READY": "Ready", - "PAUSE": "Pause", - "UNPAUSE": "End Pause", - "DEFAULT_PAUSE": "Default Pause", - "AGENTADD_QUEUE": "Add Agent to queue campaign", - "AGENTSADD_QUEUE": "Add Agents to queue campaign", - "ALL_TEAMS": "All Teams", - "SELECTED_TEAMS": "Selected Teams", - "ALL_LISTS": "All Lists", - "SELECTED_LISTS": "Selected Lists", - "ALL_AGENTS": "All Agents", - "SELECTED_AGENTS": "Selected Agents", - "WAITING_FOR_AGENT": "Waiting for Agent", - "TOTAL_OFFERED": "Total Offered", - "RUNNING": "Running", - "TRUNK_IS_NOT_REACHABLE": "Trunk is Not Reachable", - "AGENTS_NOT_LOGGED": "Agent not logged", - "NOT_ACTIVE": "Not Active", - "IS_DISACTIVED": "Deactivated", - "BACKUPTRUNK": "Backup Trunk", - "GLOBALINTERVAL": "Global Interval", - "RESCHEDULED_CONTACTS": "Rescheduled contacts", - "INTERVAL_IS_OVERTIME": "Out of Interval", - "GLOBAL_INTERVAL_IS_OVERTIME": "Out of Interval (Global)", - "INTERVAL_IS_NULL": "Interval is Null", - "TIMEZONE_UNKNOW": "Timezone Unknow", - "INTERVAL_IS_EMPTY": "Interval is Empty", - "TOTAL_MANAGED": "Total Managed", - "OPEN": "Open", - "FRESH": "Fresh", - "CLOSED": "Closed", - "ALWAYS": "Always", - "NEVER": "Never", - "ONLY_IF_OPEN": "Only If Open", - "CHECKDUPLICATE": "Check Duplicate", - "PAGE": "Page", - "ROWSPERPAGE": "Rows per page", - "OF": "of", - "CHAT": "Chat", - "MAIL": "Email", + "CALLER": "Skambintojas", + "TOTAL": "Iš viso", + "ANSWERED": "Atsakytas", + "ABANDONED": "Pamestas", + "UNMANAGED": "Nevaldomas", + "REDIRECT_TO_NUMBER": "Nukreipti į numerį", + "REDIRECT_TO_AGENT": "Nukreipti į agentą", + "CLOSING": "Uždarymas", + "AVG_HOLD_TIME": "Vid. sulaikymo laikas", + "AVG_DURATION": "Vid. trukmė", + "AVG_BILLABLE": "Vid. sąskaita", + "SOURCE": "Šaltinis", + "DESTINATION": "Paskirties vieta", + "REJECTED": "Atmestas", + "FAILED": "Nepavykęs", + "CALLED": "Paskambinta", + "CONNECTED": "Prijungtas", + "NO_RATING": "Nėra įvertinimo", + "EDIT_VOICERECORDING": "Redaguoti balso įrašą", + "APPLICATION_NAME": "Programos pavadinimas", + "ARGUMENTS": "Argumentai", + "EDIT_QUEUECAMPAIGN": "Redaguoti kampaniją", + "LISTADD_QUEUECAMPAIGN": "Pridėti sąrašą", + "BLACKLISTADD_QUEUECAMPAIGN": "Pridėti juodąjį sąrašą", + "TEAMADD_QUEUECAMPAIGN": "Pridėti komandą", + "AGENTADD_QUEUECAMPAIGN": "Pridėti agentą", + "DELETE_QUEUECAMPAIGN": "Ištrinti kampaniją", + "DELETE_IVRCAMPAIGN": "Ištrinti kampaniją", + "EDIT_IVRCAMPAIGN": "Redaguoti kampaniją", + "NEW_IVRCAMPAIGN": "Nauja IVR kampanija", + "ADD_IVRCAMPAIGN": "Pridėti IVR kampanija", + "LISTADD_IVRCAMPAIGN": "Pridėti sąrašą", + "BLACKLISTADD_IVRCAMPAIGN": "Pridėti juodąjį sąrašą", + "ENABLED": "Įjungtas", + "READY": "Paruošta", + "PAUSE": "Pauzė", + "UNPAUSE": "Baigti pauzę", + "DEFAULT_PAUSE": "Numatyta pauzė", + "AGENTADD_QUEUE": "Pridėti agentą prie eilės kampanijos", + "AGENTSADD_QUEUE": "Pridėti agentus prie eilės kampanijos", + "ALL_TEAMS": "Visos komandos", + "SELECTED_TEAMS": "Pasirinktos komandos", + "ALL_LISTS": "Visi sąrašai", + "SELECTED_LISTS": "Pasirinkti sąrašai", + "ALL_AGENTS": "Visi agentai", + "SELECTED_AGENTS": "Pasirinkti agentai", + "WAITING_FOR_AGENT": "Laukiama agento", + "TOTAL_OFFERED": "Iš viso siūloma", + "RUNNING": "Veikiantis", + "TRUNK_IS_NOT_REACHABLE": "Ryšio kanalas nėra pasiekiamas", + "AGENTS_NOT_LOGGED": "Agentas neprisijungęs", + "NOT_ACTIVE": "Neaktyvus", + "IS_DISACTIVED": "Išjungtas", + "BACKUPTRUNK": "Atsarginis ryšio kanalas", + "GLOBALINTERVAL": "Visuotinis intervalas", + "RESCHEDULED_CONTACTS": "Suplanuoti kontaktai", + "INTERVAL_IS_OVERTIME": "Ne per intervalą", + "GLOBAL_INTERVAL_IS_OVERTIME": "Ne per intervalą (visuotinis)", + "INTERVAL_IS_NULL": "Intervalas negaliojantis", + "TIMEZONE_UNKNOW": "Laiko juosta nežinoma", + "INTERVAL_IS_EMPTY": "Intervalas yra tuščias", + "TOTAL_MANAGED": "Iš viso valdoma", + "OPEN": "Atidarytas", + "FRESH": "Naujas", + "CLOSED": "Uždarytas", + "ALWAYS": "Visada", + "NEVER": "Niekada", + "ONLY_IF_OPEN": "Tik jei atidaryta", + "CHECKDUPLICATE": "Patikrinti dublikatą", + "PAGE": "Puslapis", + "ROWSPERPAGE": "Eilutės puslapyje", + "OF": "iš", + "CHAT": "Pokalbis", + "MAIL": "El. paštas", "SMS": "SMS", - "OPENCHANNEL": "Open Channel", - "FAX": "Fax", - "TEAMS_ASSOCIATION": "Teams Association", - "MANDATORYDISPOSITION": "Mandatory disposition", - "MANDATORYDISPOSITIONPAUSEID": "Mandatory disposition pause status", - "TOOLTIP_SCREENRECORDING_ON": "Screen Recording in progress", - "TOOLTIP_SCREENRECORDING_OFF": "Screen Recording available", - "ABANDONEDMAXRETRY": "Maxas bando iš naujo", - "ABANDONEDRETRYTIME": "Pakartotinis laikas [min.]", - "AGENTREJECT": "Agentas atmesti", - "AGENTREJECTMAXRETRY": "Maxas bando iš naujo", - "AGENTREJECTRETRYTIME": "Pakartotinis laikas [min.]", - "DROP": "Lašas", - "DROPMAXRETRY": "Maxas bando iš naujo", - "DROPRETRYTIME": "Pakartotinis laikas [min.]", - "MACHINE": "Mašina", - "MACHINEMAXRETRY": "Maxas bando iš naujo", - "MACHINERETRYTIME": "Pakartotinis laikas [min.]", + "OPENCHANNEL": "Atidaryti kanalą", + "FAX": "Faksas", + "TEAMS_ASSOCIATION": "Komandų asociacija", + "MANDATORYDISPOSITION": "Privalomas išdėstymas", + "MANDATORYDISPOSITIONPAUSEID": "Privalomo išdėstymo pauzės būsena", + "TOOLTIP_SCREENRECORDING_ON": "Vykdomas ekrano įrašymas", + "TOOLTIP_SCREENRECORDING_OFF": "Galimas ekrano įrašymas", + "ABANDONEDMAXRETRY": "Maks. bandymai iš naujo", + "ABANDONEDRETRYTIME": "Pakartojimų laikas [min.]", + "AGENTREJECT": "Agentas atmestas", + "AGENTREJECTMAXRETRY": "Maks. bandymai iš naujo", + "AGENTREJECTRETRYTIME": "Pakartojimų laikas [min.]", + "DROP": "Atmesti", + "DROPMAXRETRY": "Maks. bandymai iš naujo", + "DROPRETRYTIME": "Pakartojimų laikas [min.]", + "MACHINE": "Aparatas", + "MACHINEMAXRETRY": "Maks. bandymai iš naujo", + "MACHINERETRYTIME": "Pakartojimų laikas [min.]", "NOSUCHNUMBER": "Tokio numerio nėra", - "NOSUCHNUMBERMAXRETRY": "Maxas bando iš naujo", - "NOSUCHNUMBERRETRYTIME": "Pakartotinis laikas [min.]" + "NOSUCHNUMBERMAXRETRY": "Maks. bandymai iš naujo", + "NOSUCHNUMBERRETRYTIME": "Pakartojimų laikas [min.]", + "SECOND_LEVEL_DISPOSITION": "Antro lygio disponavimas", + "THIRD_LEVEL_DISPOSITION": "Trečiojo lygio disponavimas" } } diff --git a/public/app/main/apps/motiondialer/i18n/lv.json b/public/app/main/apps/motiondialer/i18n/lv.json index 661c28d..d7e27a9 100644 --- a/public/app/main/apps/motiondialer/i18n/lv.json +++ b/public/app/main/apps/motiondialer/i18n/lv.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Maks. Atkārtojumi", "NOSUCHNUMBERRETRYTIME": "Atkārtota mēģinājuma laiks [min]", "TOOLTIP_SCREENRECORDING_OFF": "Ekrāna ieraksts ir pieejams", - "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrāna ierakstīšana" + "TOOLTIP_SCREENRECORDING_ON": "Notiek ekrāna ierakstīšana", + "SECOND_LEVEL_DISPOSITION": "Otrā līmeņa izvietojums", + "THIRD_LEVEL_DISPOSITION": "Trešā līmeņa izvietojums" } } diff --git a/public/app/main/apps/motiondialer/i18n/nl.json b/public/app/main/apps/motiondialer/i18n/nl.json index 2959fef..8183a69 100644 --- a/public/app/main/apps/motiondialer/i18n/nl.json +++ b/public/app/main/apps/motiondialer/i18n/nl.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Max pogingen", "NOSUCHNUMBERRETRYTIME": "Retry Time [min]", "TOOLTIP_SCREENRECORDING_OFF": "Schermopname beschikbaar", - "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig" + "TOOLTIP_SCREENRECORDING_ON": "Schermopname bezig", + "SECOND_LEVEL_DISPOSITION": "Tweede niveau dispositie", + "THIRD_LEVEL_DISPOSITION": "Dispositie op het derde niveau" } } diff --git a/public/app/main/apps/motiondialer/i18n/no.json b/public/app/main/apps/motiondialer/i18n/no.json index 226d02c..690a6e1 100644 --- a/public/app/main/apps/motiondialer/i18n/no.json +++ b/public/app/main/apps/motiondialer/i18n/no.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Max prøver på nytt", "NOSUCHNUMBERRETRYTIME": "Prøv på nytt [min]", "TOOLTIP_SCREENRECORDING_OFF": "Skjermopptak tilgjengelig", - "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår" + "TOOLTIP_SCREENRECORDING_ON": "Skjermopptak pågår", + "SECOND_LEVEL_DISPOSITION": "Andre nivå disposisjon", + "THIRD_LEVEL_DISPOSITION": "Tredje nivå disposisjon" } } diff --git a/public/app/main/apps/motiondialer/i18n/pl.json b/public/app/main/apps/motiondialer/i18n/pl.json index 62aede4..48442d7 100644 --- a/public/app/main/apps/motiondialer/i18n/pl.json +++ b/public/app/main/apps/motiondialer/i18n/pl.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Maksymalna liczba prób", "NOSUCHNUMBERRETRYTIME": "Czas ponownej próby [min]", "TOOLTIP_SCREENRECORDING_OFF": "Dostępne nagrywanie ekranu", - "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu" + "TOOLTIP_SCREENRECORDING_ON": "Trwa nagrywanie ekranu", + "SECOND_LEVEL_DISPOSITION": "Dyspozycja drugiego poziomu", + "THIRD_LEVEL_DISPOSITION": "Dyspozycja trzeciego poziomu" } } diff --git a/public/app/main/apps/motiondialer/i18n/pt-BR.json b/public/app/main/apps/motiondialer/i18n/pt-BR.json index 5b675ec..838c419 100644 --- a/public/app/main/apps/motiondialer/i18n/pt-BR.json +++ b/public/app/main/apps/motiondialer/i18n/pt-BR.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Tentativas máximas", "NOSUCHNUMBERRETRYTIME": "Tempo de Nova Tentativa [min]", "TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponível", - "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento" + "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento", + "SECOND_LEVEL_DISPOSITION": "Disposição de Segundo Nível", + "THIRD_LEVEL_DISPOSITION": "Disposição de terceiro nível" } } diff --git a/public/app/main/apps/motiondialer/i18n/pt-PT.json b/public/app/main/apps/motiondialer/i18n/pt-PT.json index c2b7910..bda3d28 100644 --- a/public/app/main/apps/motiondialer/i18n/pt-PT.json +++ b/public/app/main/apps/motiondialer/i18n/pt-PT.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Tentativas máximas", "NOSUCHNUMBERRETRYTIME": "Tempo de Nova Tentativa [min]", "TOOLTIP_SCREENRECORDING_OFF": "Gravação de tela disponível", - "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento" + "TOOLTIP_SCREENRECORDING_ON": "Gravação de tela em andamento", + "SECOND_LEVEL_DISPOSITION": "Disposição de Segundo Nível", + "THIRD_LEVEL_DISPOSITION": "Disposição de terceiro nível" } } diff --git a/public/app/main/apps/motiondialer/i18n/ru.json b/public/app/main/apps/motiondialer/i18n/ru.json index 3fea820..f3155bc 100644 --- a/public/app/main/apps/motiondialer/i18n/ru.json +++ b/public/app/main/apps/motiondialer/i18n/ru.json @@ -684,6 +684,8 @@ "MACHINERETRYTIME": "Время повтора [мин]", "NOSUCHNUMBER": "Нет такого числа", "NOSUCHNUMBERMAXRETRY": "Максимальное количество попыток", - "NOSUCHNUMBERRETRYTIME": "Время повтора [мин]" + "NOSUCHNUMBERRETRYTIME": "Время повтора [мин]", + "SECOND_LEVEL_DISPOSITION": "Расположение второго уровня", + "THIRD_LEVEL_DISPOSITION": "Расположение третьего уровня" } } diff --git a/public/app/main/apps/motiondialer/i18n/sv.json b/public/app/main/apps/motiondialer/i18n/sv.json index be90a55..3cd61cf 100644 --- a/public/app/main/apps/motiondialer/i18n/sv.json +++ b/public/app/main/apps/motiondialer/i18n/sv.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Max försöker igen", "NOSUCHNUMBERRETRYTIME": "Försök igen [min]", "TOOLTIP_SCREENRECORDING_OFF": "Skärminspelning tillgänglig", - "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår" + "TOOLTIP_SCREENRECORDING_ON": "Skärminspelning pågår", + "SECOND_LEVEL_DISPOSITION": "Andra nivån disposition", + "THIRD_LEVEL_DISPOSITION": "Tredje nivåens disposition" } } diff --git a/public/app/main/apps/motiondialer/i18n/tr.json b/public/app/main/apps/motiondialer/i18n/tr.json index 4eb2c59..830aa44 100644 --- a/public/app/main/apps/motiondialer/i18n/tr.json +++ b/public/app/main/apps/motiondialer/i18n/tr.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "Maks. Tekrar Deneme", "NOSUCHNUMBERRETRYTIME": "Yeniden Deneme Süresi [dak]", "TOOLTIP_SCREENRECORDING_OFF": "Ekran Kaydı mevcut", - "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor" + "TOOLTIP_SCREENRECORDING_ON": "Ekran Kaydı devam ediyor", + "SECOND_LEVEL_DISPOSITION": "İkinci Düzey Tasarruf", + "THIRD_LEVEL_DISPOSITION": "Üçüncü Düzey Tasarruf" } } diff --git a/public/app/main/apps/motiondialer/i18n/zh-CN.json b/public/app/main/apps/motiondialer/i18n/zh-CN.json index 9bf1bc0..70f477b 100644 --- a/public/app/main/apps/motiondialer/i18n/zh-CN.json +++ b/public/app/main/apps/motiondialer/i18n/zh-CN.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "最大重试次数", "NOSUCHNUMBERRETRYTIME": "重试时间[分钟]", "TOOLTIP_SCREENRECORDING_OFF": "屏幕录像可用", - "TOOLTIP_SCREENRECORDING_ON": "屏幕录制正在进行中" + "TOOLTIP_SCREENRECORDING_ON": "屏幕录制正在进行中", + "SECOND_LEVEL_DISPOSITION": "二级处置", + "THIRD_LEVEL_DISPOSITION": "第三级处置" } } diff --git a/public/app/main/apps/motiondialer/i18n/zh-TW.json b/public/app/main/apps/motiondialer/i18n/zh-TW.json index 12946ee..cf9404c 100644 --- a/public/app/main/apps/motiondialer/i18n/zh-TW.json +++ b/public/app/main/apps/motiondialer/i18n/zh-TW.json @@ -685,6 +685,8 @@ "NOSUCHNUMBERMAXRETRY": "最大重試次數", "NOSUCHNUMBERRETRYTIME": "重試時間[分鐘]", "TOOLTIP_SCREENRECORDING_OFF": "屏幕錄像可用", - "TOOLTIP_SCREENRECORDING_ON": "屏幕錄製正在進行中" + "TOOLTIP_SCREENRECORDING_ON": "屏幕錄製正在進行中", + "SECOND_LEVEL_DISPOSITION": "二級處置", + "THIRD_LEVEL_DISPOSITION": "第三級處置" } } diff --git a/public/app/main/apps/openchannel/i18n/ar.json b/public/app/main/apps/openchannel/i18n/ar.json index 663daf8..cf0502f 100644 --- a/public/app/main/apps/openchannel/i18n/ar.json +++ b/public/app/main/apps/openchannel/i18n/ar.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "رابطة الفرق", "MANDATORYDISPOSITION": "التصرف الإلزامي", "MANDATORYDISPOSITIONPAUSEID": "توقف مؤقتًا للاستخدام إذا تم تمكين التخلص الإلزامي", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "تحرير التكوين Dialogflow", "LANGUAGE": "لغة", "WELCOMEMESSAGE": "أهلا وسهلا", diff --git a/public/app/main/apps/openchannel/i18n/cs.json b/public/app/main/apps/openchannel/i18n/cs.json index bd78bd0..29e59a3 100644 --- a/public/app/main/apps/openchannel/i18n/cs.json +++ b/public/app/main/apps/openchannel/i18n/cs.json @@ -242,7 +242,7 @@ "ACCESSKEYID": "ID přístupového klíče", "AMAZONLEX": "AmazonLex", "BOTNAME": "Název bota", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "DOWNLOAD_WITHOUT_ATTACHMENTS": "Stahujte bez příloh", "DOWNLOAD_WITH_ATTACHMENTS": "Stáhnout s přílohami", "EDIT_AMAZONLEX": "Upravit konfiguraci Lex", diff --git a/public/app/main/apps/openchannel/i18n/da.json b/public/app/main/apps/openchannel/i18n/da.json index 984be59..2cc877c 100644 --- a/public/app/main/apps/openchannel/i18n/da.json +++ b/public/app/main/apps/openchannel/i18n/da.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Holdforening", "MANDATORYDISPOSITION": "Obligatorisk disposition", "MANDATORYDISPOSITIONPAUSEID": "Brug pause, hvis obligatorisk disposition er aktiveret", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Rediger Dialogflow-konfiguration", "LANGUAGE": "Sprog", "WELCOMEMESSAGE": "Velkomstbesked", diff --git a/public/app/main/apps/openchannel/i18n/en.json b/public/app/main/apps/openchannel/i18n/en.json index e76af2a..4aea58a 100644 --- a/public/app/main/apps/openchannel/i18n/en.json +++ b/public/app/main/apps/openchannel/i18n/en.json @@ -1,5 +1,10 @@ { "OPENCHANNEL": { + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "DIALOGFLOWV2": "Dialogflow V2", + "PRIVATEKEY": "Private Key", + "CLIENTEMAIL": "Client Email", + "PROJECTID": "Project ID", "AMAZONLEX": "AmazonLex", "EDIT_AMAZONLEX": "Edit Lex configuration", "ACCESSKEYID": "Access key ID", @@ -7,7 +12,7 @@ "LEXREGION": "Region", "BOTNAME": "Bot name", "WELCOMEMESSAGE": "Welcome message", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Edit Dialogflow configuration", "LANGUAGE": "Language", "LOGIN_TIME": "Login time", @@ -62,6 +67,9 @@ "MANDATORYDISPOSITION": "Mandatory disposition", "MANDATORYDISPOSITIONPAUSEID": "Pause to use if mandatory disposition is enabled", "ERRORS": { + "PROJECTID_REQUIRED": "Mandatory Field", + "CLIENTEMAIL_REQUIRED": "Mandatory Field", + "PRIVATEKEY_REQUIRED": "Mandatory Field", "ACCESSKEYID_REQUIRED": "Access key ID is required", "SECRETACCESSKEY_REQUIRED": "Access key secret is required", "BOTNAME_REQUIRED": "Bot name is required", diff --git a/public/app/main/apps/openchannel/i18n/es.json b/public/app/main/apps/openchannel/i18n/es.json index f618905..9db23ab 100644 --- a/public/app/main/apps/openchannel/i18n/es.json +++ b/public/app/main/apps/openchannel/i18n/es.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Asociación de equipos", "MANDATORYDISPOSITION": "Cierre obligatorio", "MANDATORYDISPOSITIONPAUSEID": "Pausa a usar si el cierre obligatorio está habilitado", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Editar configuración de Dialogflow", "LANGUAGE": "Idioma", "WELCOMEMESSAGE": "Mensaje de bienvenida", diff --git a/public/app/main/apps/openchannel/i18n/fi.json b/public/app/main/apps/openchannel/i18n/fi.json index cb9bba2..2598833 100644 --- a/public/app/main/apps/openchannel/i18n/fi.json +++ b/public/app/main/apps/openchannel/i18n/fi.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Joukkueiden yhdistys", "MANDATORYDISPOSITION": "Pakollinen sijoittaminen", "MANDATORYDISPOSITIONPAUSEID": "Tauko käyttöön, jos pakollinen sijoittaminen on käytössä", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Muokkaa Dialogflow-määrityksiä", "LANGUAGE": "Kieli", "WELCOMEMESSAGE": "Tervetuloa Messsage", diff --git a/public/app/main/apps/openchannel/i18n/fr.json b/public/app/main/apps/openchannel/i18n/fr.json index 5083848..417c941 100644 --- a/public/app/main/apps/openchannel/i18n/fr.json +++ b/public/app/main/apps/openchannel/i18n/fr.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Association des équipes", "MANDATORYDISPOSITION": "Disposition obligatoire", "MANDATORYDISPOSITIONPAUSEID": "Pause à utiliser si la disposition obligatoire est activée", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Modifier la configuration du dialogue", "LANGUAGE": "La langue", "WELCOMEMESSAGE": "Message de bienvenue", diff --git a/public/app/main/apps/openchannel/i18n/hi.json b/public/app/main/apps/openchannel/i18n/hi.json index b0a0ed6..45273ec 100644 --- a/public/app/main/apps/openchannel/i18n/hi.json +++ b/public/app/main/apps/openchannel/i18n/hi.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "टीमों एसोसिएशन", "MANDATORYDISPOSITION": "अनिवार्य स्वभाव", "MANDATORYDISPOSITIONPAUSEID": "यदि अनिवार्य स्वभाव सक्षम है, तो उपयोग करने के लिए रुकें", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "डायलॉगफ़्लो कॉन्फ़िगरेशन संपादित करें", "LANGUAGE": "भाषा: हिन्दी", "WELCOMEMESSAGE": "स्वागत संदेश", diff --git a/public/app/main/apps/openchannel/i18n/id.json b/public/app/main/apps/openchannel/i18n/id.json index 8b8a1c4..277f64e 100644 --- a/public/app/main/apps/openchannel/i18n/id.json +++ b/public/app/main/apps/openchannel/i18n/id.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Asosiasi Tim", "MANDATORYDISPOSITION": "Disposisi wajib", "MANDATORYDISPOSITIONPAUSEID": "Jeda untuk digunakan jika disposisi wajib diaktifkan", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Edit konfigurasi Dialogflow", "LANGUAGE": "Bahasa", "WELCOMEMESSAGE": "Pesan Selamat Datang", diff --git a/public/app/main/apps/openchannel/i18n/it.json b/public/app/main/apps/openchannel/i18n/it.json index c4995ae..5e2d02f 100644 --- a/public/app/main/apps/openchannel/i18n/it.json +++ b/public/app/main/apps/openchannel/i18n/it.json @@ -243,7 +243,7 @@ "MAPKEY": "Map Key", "TEAMS_ASSOCIATION": "Associazione Teams", "MANDATORYDISPOSITIONPAUSEID": "Pausa da utilizzare se è abilitata la disposizione obbligatoria", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Modifica la configurazione di Dialogflow", "LANGUAGE": "Lingua", "WELCOMEMESSAGE": "Messaggio di benvenuto", diff --git a/public/app/main/apps/openchannel/i18n/ja.json b/public/app/main/apps/openchannel/i18n/ja.json index 20fd387..dcba185 100644 --- a/public/app/main/apps/openchannel/i18n/ja.json +++ b/public/app/main/apps/openchannel/i18n/ja.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "チーム協会", "MANDATORYDISPOSITION": "強制処分", "MANDATORYDISPOSITIONPAUSEID": "強制処分が有効になっている場合に使用する一時停止", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Dialogflow構成の編集", "LANGUAGE": "言語", "WELCOMEMESSAGE": "ようこそメッセージ", diff --git a/public/app/main/apps/openchannel/i18n/ko.json b/public/app/main/apps/openchannel/i18n/ko.json index d08c9b3..c76267e 100644 --- a/public/app/main/apps/openchannel/i18n/ko.json +++ b/public/app/main/apps/openchannel/i18n/ko.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "팀 협회", "MANDATORYDISPOSITION": "의무 처분", "MANDATORYDISPOSITIONPAUSEID": "강제 처분이 활성화 된 경우 사용 중지", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Dialogflow 구성 편집", "LANGUAGE": "언어", "WELCOMEMESSAGE": "환영 메세지", diff --git a/public/app/main/apps/openchannel/i18n/nl.json b/public/app/main/apps/openchannel/i18n/nl.json index 30d4c80..4f29f31 100644 --- a/public/app/main/apps/openchannel/i18n/nl.json +++ b/public/app/main/apps/openchannel/i18n/nl.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Teams Association", "MANDATORYDISPOSITION": "Verplichte regeling", "MANDATORYDISPOSITIONPAUSEID": "Pauze om te gebruiken als verplichte dispositie is ingeschakeld", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Configuratie dialoogscherm bewerken", "LANGUAGE": "Taal", "WELCOMEMESSAGE": "Welkomstbericht", diff --git a/public/app/main/apps/openchannel/i18n/no.json b/public/app/main/apps/openchannel/i18n/no.json index 4c12bc5..85dbf37 100644 --- a/public/app/main/apps/openchannel/i18n/no.json +++ b/public/app/main/apps/openchannel/i18n/no.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Lagforening", "MANDATORYDISPOSITION": "Obligatorisk disposisjon", "MANDATORYDISPOSITIONPAUSEID": "Bruk pause hvis obligatorisk disposisjon er aktivert", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Rediger Dialogflow-konfigurasjon", "LANGUAGE": "Språk", "WELCOMEMESSAGE": "Velkomstmelding", diff --git a/public/app/main/apps/openchannel/i18n/pl.json b/public/app/main/apps/openchannel/i18n/pl.json index cb75911..6ed982b 100644 --- a/public/app/main/apps/openchannel/i18n/pl.json +++ b/public/app/main/apps/openchannel/i18n/pl.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Stowarzyszenie zespołów", "MANDATORYDISPOSITION": "Dyspozycja obowiązkowa", "MANDATORYDISPOSITIONPAUSEID": "Wstrzymaj korzystanie, jeśli włączona jest obowiązkowa dyspozycja", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Edytuj konfigurację Dialogflow", "LANGUAGE": "Język", "WELCOMEMESSAGE": "Powitanie Wiadomości", diff --git a/public/app/main/apps/openchannel/i18n/ru.json b/public/app/main/apps/openchannel/i18n/ru.json index 01cef76..38983ad 100644 --- a/public/app/main/apps/openchannel/i18n/ru.json +++ b/public/app/main/apps/openchannel/i18n/ru.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Ассоциация команд", "MANDATORYDISPOSITION": "Обязательное распоряжение", "MANDATORYDISPOSITIONPAUSEID": "Пауза для использования, если включена обязательная утилизация", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Изменить конфигурацию диалога", "LANGUAGE": "язык", "WELCOMEMESSAGE": "Приветственное сообщение", diff --git a/public/app/main/apps/openchannel/i18n/sv.json b/public/app/main/apps/openchannel/i18n/sv.json index a35cac1..105ab6f 100644 --- a/public/app/main/apps/openchannel/i18n/sv.json +++ b/public/app/main/apps/openchannel/i18n/sv.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Team Association", "MANDATORYDISPOSITION": "Obligatorisk disposition", "MANDATORYDISPOSITIONPAUSEID": "Pausa för att använda om obligatorisk disposition är aktiverad", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Redigera Dialogflow-konfiguration", "LANGUAGE": "Språk", "WELCOMEMESSAGE": "Välkomstmeddelande", diff --git a/public/app/main/apps/openchannel/i18n/tr.json b/public/app/main/apps/openchannel/i18n/tr.json index 70ce260..3a94569 100644 --- a/public/app/main/apps/openchannel/i18n/tr.json +++ b/public/app/main/apps/openchannel/i18n/tr.json @@ -242,7 +242,7 @@ "TEAMS_ASSOCIATION": "Takımlar Birliği", "MANDATORYDISPOSITION": "Zorunlu düzenleme", "MANDATORYDISPOSITIONPAUSEID": "Zorunlu bırakma etkinse, kullanımı duraklat", - "DIALOGFLOW": "Dialogflow", + "DIALOGFLOW": "Dialogflow (deprecated)", "EDIT_DIALOGFLOW": "Dialogflow yapılandırmasını düzenle", "LANGUAGE": "Dil", "WELCOMEMESSAGE": "Hoşgeldin Mesajlaşma", diff --git a/public/app/main/apps/sms/i18n/en.json b/public/app/main/apps/sms/i18n/en.json index 5a0ce64..8d34991 100644 --- a/public/app/main/apps/sms/i18n/en.json +++ b/public/app/main/apps/sms/i18n/en.json @@ -1,5 +1,10 @@ { "SMS": { + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "DIALOGFLOWV2": "Dialogflow V2", + "PRIVATEKEY": "Private Key", + "CLIENTEMAIL": "Client Email", + "PROJECTID": "Project ID", "AMAZONLEX": "AmazonLex", "EDIT_AMAZONLEX": "Edit Lex configuration", "ACCESSKEYID": "Access key ID", @@ -74,6 +79,9 @@ "MANDATORYDISPOSITION": "Mandatory disposition", "MANDATORYDISPOSITIONPAUSEID": "Pause to use when mandatory disposition is enabled", "ERRORS": { + "PROJECTID_REQUIRED": "Mandatory Field", + "CLIENTEMAIL_REQUIRED": "Mandatory Field", + "PRIVATEKEY_REQUIRED": "Mandatory Field", "ACCESSKEYID_REQUIRED": "Access key ID is required", "SECRETACCESSKEY_REQUIRED": "Access key secret is required", "BOTNAME_REQUIRED": "Bot name is required", diff --git a/public/app/main/apps/whatsapp/i18n/en.json b/public/app/main/apps/whatsapp/i18n/en.json index 430143a..0920067 100644 --- a/public/app/main/apps/whatsapp/i18n/en.json +++ b/public/app/main/apps/whatsapp/i18n/en.json @@ -1,5 +1,10 @@ { "WHATSAPP": { + "EDIT_DIALOGFLOWV2": "Edit Dialogflow V2", + "DIALOGFLOWV2": "Dialogflow V2", + "PRIVATEKEY": "Private Key", + "CLIENTEMAIL": "Client Email", + "PROJECTID": "Project ID", "ACCESSKEYID": "Access Key ID", "ACCOUNTSID": "Account SID", "ACTIONS": "Actions", @@ -70,6 +75,9 @@ "EDIT_WHATSAPPDISPOSITION": "Edit WhatsApp Disposition", "EDIT_WHATSAPPQUEUE": "Edit WhatsApp Queue", "ERRORS": { + "PROJECTID_REQUIRED": "Mandatory Field", + "CLIENTEMAIL_REQUIRED": "Mandatory Field", + "PRIVATEKEY_REQUIRED": "Mandatory Field", "ACCESSKEYID_REQUIRED": "Mandatory Field", "ACCOUNTSID_REQUIRED": "Mandatory Field", "AGENT_REQUIRED": "Mandatory Field", diff --git a/public/assets/plugins/square/js/EditorUi.js b/public/assets/plugins/square/js/EditorUi.js index 3ad4190..b67724f 100644 --- a/public/assets/plugins/square/js/EditorUi.js +++ b/public/assets/plugins/square/js/EditorUi.js @@ -125,9 +125,9 @@ EditorUi = function(projectDesignController, editor, container) { this.createMultiplicities( graph.multiplicities, - ["database", "ispeechasr", "sendSMS", "sendMail", "sendFax", "googleasr", "lumenvoxasr", "tildeasr", "dialogflow", "awslex", "sesteknda", "sestekasr", "restapi","mrcprecog"], - [[1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1] ,[1, 1]], - [[1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"]] + ["database", "ispeechasr", "sendSMS", "sendMail", "sendFax", "googleasr", "lumenvoxasr", "tildeasr", "dialogflow", "dialogflowV2", "awslex", "sesteknda", "sestekasr", "restapi","mrcprecog"], + [[1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1], [1, 1] ,[1, 1], [1, 1]], + [[1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"], [1, "n"]] ); @@ -498,25 +498,23 @@ EditorUi.prototype.validate = function(a, b) { d += a.value.getAttribute("to") !== "" ? "" : mxResources.get("noRecipientSelected") + "\n"; d += a.value.getAttribute("attachment_path") !== "" ? "" : mxResources.get("noAttachmentSelected") + "\n"; break; - /******************************************** */ case "google_cloud_tts": d = a.value.getAttribute("apiKey") !== "" ? "" : mxResources.get("noApiKeySelected") + "\n"; // d += a.value.getAttribute("text") !== "" ? "" : mxResources.get("noTextSelected") + "\n"; // break; - /******************************************** */ case "tts": d = a.value.getAttribute("text") !== "" ? "" : mxResources.get("noTextSelected") + "\n"; break; case "awspolly": d = a.value.getAttribute("text") !== "" ? "" : mxResources.get("noTextSelected") + "\n"; - d = a.value.getAttribute("aws_access_key_id") !== "" ? "" : mxResources.get("noAccessKeySelected") + "\n"; - d = a.value.getAttribute("aws_secret_access_key") !== "" ? "" : mxResources.get("noSecretAccessKeySelected") + "\n"; + d += a.value.getAttribute("aws_access_key_id") !== "" ? "" : mxResources.get("noAccessKeySelected") + "\n"; + d += a.value.getAttribute("aws_secret_access_key") !== "" ? "" : mxResources.get("noSecretAccessKeySelected") + "\n"; break; case "awslex": d = a.value.getAttribute("aws_bot_name") !== "" ? "" : mxResources.get("noNameSelected") + "\n"; - d = a.value.getAttribute("text") !== "" ? "" : mxResources.get("noTextSelected") + "\n"; - d = a.value.getAttribute("aws_access_key_id") !== "" ? "" : mxResources.get("noAccessKeySelected") + "\n"; - d = a.value.getAttribute("aws_secret_access_key") !== "" ? "" : mxResources.get("noSecretAccessKeySelected") + "\n"; + d += a.value.getAttribute("text") !== "" ? "" : mxResources.get("noTextSelected") + "\n"; + d += a.value.getAttribute("aws_access_key_id") !== "" ? "" : mxResources.get("noAccessKeySelected") + "\n"; + d += a.value.getAttribute("aws_secret_access_key") !== "" ? "" : mxResources.get("noSecretAccessKeySelected") + "\n"; break; case "ispeechtts": d = a.value.getAttribute("text") !== "" ? "" : mxResources.get("noTextSelected") + "\n"; @@ -573,6 +571,18 @@ EditorUi.prototype.validate = function(a, b) { case "mrcprecog": d = a.value.getAttribute("grammar") !== "" ? "" : mxResources.get("noGrammarSelected") + "\n"; break; + case "dialogflow": + d = a.value.getAttribute("key") !== "" ? "" : mxResources.get("noKeySelected") + "\n"; + d += a.value.getAttribute("text") !== "" ? "" : mxResources.get("noTextSelected") + "\n"; + d += a.value.getAttribute("dialogflow_language") !== "" ? "" : mxResources.get("noDialogflowLanguageSelected") + "\n"; + break; + case "dialogflowV2": + d = a.value.getAttribute("dialogflowV2_project_id") !== "" ? "" : mxResources.get("noDialogflowProjectSelected") + "\n"; + d += a.value.getAttribute("client_email") !== "" ? "" : mxResources.get("noClientEmailSelected") + "\n"; + d += a.value.getAttribute("private_key") !== "" ? "" : mxResources.get("noPrivateKeySelected") + "\n"; + d += a.value.getAttribute("dialogflowV2_language") !== "" ? "" : mxResources.get("noDialogflowLanguageSelected") + "\n"; + d += a.value.getAttribute("text") !== "" ? "" : mxResources.get("noTextSelected") + "\n"; + break; } } diff --git a/public/assets/plugins/square/js/Sidebar.js b/public/assets/plugins/square/js/Sidebar.js index a19d70a..2070f2f 100644 --- a/public/assets/plugins/square/js/Sidebar.js +++ b/public/assets/plugins/square/js/Sidebar.js @@ -141,8 +141,8 @@ Sidebar.prototype.init = function () { // 'sendMail'), mxResources.get('sendFax') // ]); this.addImagePalette('integrationServer', mxResources.get('integrationServer'), - dir + '/integration_server/', '_128x128.png', ['database', 'sendMail', 'sendSMS', 'dialogflow', 'awslex', 'sesteknda', 'restapi'], [ - mxResources.get('database'), mxResources.get('sendMail'), mxResources.get('sendSMS'), 'Dialogflow', 'AWSLex', 'SestekNDA', 'RestAPI' + dir + '/integration_server/', '_128x128.png', ['database', 'sendMail', 'sendSMS', 'dialogflow', 'dialogflowV2', 'awslex', 'sesteknda', 'restapi'], [ + mxResources.get('database'), mxResources.get('sendMail'), mxResources.get('sendSMS'), 'Dialogflow', 'DialogflowV2', 'AWSLex', 'SestekNDA', 'RestAPI' ]); this.addImagePalette('callflow', mxResources.get('callflow'), dir + '/callflow/', '_128x128.png', ['gotoc', 'gotoif', 'gotoiftime', 'vswitch'], [ @@ -1349,7 +1349,6 @@ Sidebar.prototype.createVertexTemplate = function (style, width, height, value, variables = ['url', 'method', 'timeout', 'computedVariables', 'rawHeaders', 'rawBody', 'variable_id']; values = ['', 'GET', '5', '', '', '', '']; break; - case 'mrcpsynth': variables = ['text', 'options']; values = ['', '']; @@ -1358,7 +1357,10 @@ Sidebar.prototype.createVertexTemplate = function (style, width, height, value, variables = ['grammar', 'options']; values = ['', '']; break; - + case 'dialogflowV2': + variables = ['dialogflowV2_project_id', 'client_email', 'private_key', 'dialogflowV2_language', 'text']; + values = ['', '', '', 'en', '']; + break; default: variables = []; values = []; diff --git a/public/assets/plugins/square/resources/grapheditor.txt b/public/assets/plugins/square/resources/grapheditor.txt index 950bb24..1d8cbec 100644 --- a/public/assets/plugins/square/resources/grapheditor.txt +++ b/public/assets/plugins/square/resources/grapheditor.txt @@ -1,15 +1,5 @@ -alreadyConnected=Nodes already connected -cancel=Cancel -close=Close -collapse-expand=Collapse/Expand -containsValidationErrors=Contains validation errors -done=Done -doubleClickOrientation=Doubleclick to Change Orientation -error=Error -ok=OK -updatingDocument=Updating Document. Please wait... -updatingSelection=Updating Selection. Please wait... about=About +account_id=Account actualSize=Actual Size add=Add addLayer=Add Layer @@ -17,69 +7,116 @@ addProperty=Add Property addToExistingDrawing=Add to Existing Drawing addWaypoint=Add Waypoint advanced=Advanced +agent_management=Agent Management +agent=Agent +agi=AGI align=Align alignment=Alignment allChangesLost=All changes will be lost! +alreadyConnected=Nodes already connected angle=Angle +announceoverride=Announce Override +answer=Answer +application=Application apply=Apply +args=Arguments arrange=Arrange arrow=Arrow arrows=Arrows +asr=ASR +asr=ASR +attachment_name=Selected Attachment automatic=Automatic autosave=Autosave autosize=Autosize +awslex=AWSLex +awspolly=AWSPolly background=Background backgroundColor=Background Color backgroundImage=Background Image basic=Basic +bcc=Bcc +beep=Beep block=Block blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=Border Color +borderWidth=Borderwidth bottom=Bottom bottomAlign=Bottom Align bottomLeft=Bottom Left bottomRight=Bottom Right +boxnumber=Box Number bulletedList=Bulleted List +call_management=Call Management +callback=Callback +callflow=Callflow +callid=CallID +cancel=Cancel cannotOpenFile=Cannot open file +cc=Cc center=Center change=Change changeOrientation=Change Orientation +choose_attachment=Choose Attachment circle=Circle classic=Classic clearDefaultStyle=Clear Default Style clearWaypoints=Clear Waypoints clipart=Clipart +close=Close +collapse-expand=Collapse/Expand collapse=Collapse collapseExpand=Collapse/Expand collapsible=Collapsible comic=Comic +command=Command +condition=Condition connect=Connect connection=Connection -connectionPoints=Connection points connectionArrows=Connection arrows +connectionPoints=Connection points constrainProportions=Constrain Proportions +containsValidationErrors=Contains validation errors +context=Context copy=Copy copyConnect=Copy on Connect create=Create curved=Curved +custom_app=Custom App custom=Custom cut=Cut dashed=Dashed +data1=Data1 +data2=Data2 +data3=Data3 +data4=Data4 +data5=Data5 +database_id=Database +database=Database decreaseIndent=Decrease Indent default=Default +delay=Delay delete=Delete deleteColumn=Delete Column deleteRow=Delete Row +description_start=Start description +description=Description diagram=Diagram +dial=Internal Dial +dialogflow=Dialogflow +dialogflowV2=DialogflowV2 diamond=Diamond diamondThin=Diamond (thin) +digit=Max Digit +digits=Digits direction=Direction distribute=Distribute divider=Divider documentProperties=Document Properties +done=Done dotted=Dotted +doubleClickOrientation=Doubleclick to Change Orientation drawing=Drawing{1} drawingEmpty=Drawing is empty drawingTooLarge=Drawing is too large @@ -89,24 +126,34 @@ east=East edit=Edit editData=Edit Data editDiagram=Edit Diagram +editFile=Edit XML editImage=Edit Image editLink=Edit Link editStyle=Edit Style editTooltip=Edit Tooltip +end=End enterGroup=Enter Group -enterValue=Enter Value enterName=Enter Name enterPropertyName=Enter Property Name +enterValue=Enter Value entityRelation=Entity Relation +entry=Entry +error=Error +escape_digits=Escape Digits +escape=Escape Digits exitGroup=Exit Group expand=Expand export=Export +ext_dial=External Dial +extension=Extension extras=Extras +file_id=File file=File -fileNotFound=File not found filename=Filename +fileNotFound=File not found fill=Fill fillColor=Fill Color +finally=Finally fitPage=One Page fitPageWidth=Page Width fitTwoPages=Two Pages @@ -115,118 +162,245 @@ flip=Flip flipH=Flip Horizontal flipV=Flip Vertical font=Font -fontFamily=Font Family fontColor=Font Color +fontFamily=Font Family fontSize=Font Size format=Format +formatGif=GIF +formatJpg=JPEG formatPanel=Format Panel formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG -formatXml=XML formatted=Formatted formattedText=Formatted Text +formatXml=XML +frequency=Frequency general=General +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glass global=Global +goal=Goal +goalname=Goal Name +google_cloud_tts=Google Cloud TTS +google_tts_language=Language +googleasr=GoogleASR +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Gradient gradientColor=Color +grammar=Grammar grid=Grid gridSize=Grid Size group=Group guides=Guides +hangup=Hangup heading=Heading height=Height +help_choose_attachment=Format: pdf,tiff or tif +help_delay=Time, in minutes, to wait before calling back the contact help=Help +hidden=Hidden +hiddendigitsnum=Hidden Digits Number +hiddendigitspos=Hidden Digits position hide=Hide hideIt=Hide {1} -hidden=Hidden home=Home horizontal=Horizontal horizontalFlow=Horizontal Flow horizontalTree=Horizontal Tree html=HTML +identifier=Identifier image=Image images=Images import=Import +incomingedge= incoming edge. increaseIndent=Increase Indent insert=Insert -insertColumnBefore=Insert Column Left insertColumnAfter=Insert Column Right +insertColumnBefore=Insert Column Left insertHorizontalRule=Insert Horizontal Rule insertImage=Insert Image insertLink=Insert Link -insertRowBefore=Insert Row Above insertRowAfter=Insert Row Below +insertRowBefore=Insert Row Above +integrationServer=Integration Server +interval_id=Interval +interval=Time Interval +intKey=Interrupt Key +invalidDelay=Invalid Delay value invalidName=Invalid name invalidOrMissingFile=Invalid or missing file +invalidPriority=Invalid Priority value +invalidRetry=Invalid Retry value +invalidSpeed=Invalid Speed value +invalidTimeout=Invalid Timeout value isometric=Isometric +ispeech_asr_language=Language +ispeech_tts_language=Language +ispeechasr=iSpeechASR +ispeechtts=iSpeechTTS italic=Italic -layers=Layers +key=Key +label=Label landscape=Landscape laneColor=Lanecolor +language=Language +layers=Layers layout=Layout left=Left leftAlign=Left Align +leftOperand=Left Operand leftToRight=Left to Right line=Line -link=Link lineend=Line End lineheight=Line Height linestart=Line Start linewidth=Linewidth +link=Link +list_id=List +list=List loading=Loading lockUnlock=Lock/Unlock +login=Login +logout=Logout +lumenvoxasr=LumenvoxASR +lumenvoxtts=LumenvoxTTS +macro=Macro +mailbox=Mailbox manual=Manual +math=Math +maxdigit=Max Digits +maxspeech=Max Speech +menu=Menu middle=Middle +mindigit=Min Digits misc=Misc +missingQuery=The query string is missing +model=Model more=More moreResults=More Results move=Move moveSelectionTo=Move Selection to {1} +mrcprecog=mrcpRecog +mrcpsynth=MRCPSynth +musthave= must have +name=Name navigation=Navigation new=New +noAccountSelected=Account is not specified. +noAppIdInserted=App ID not inserted +noApplicationSelected=Application is not specified. +noApplicationSelected=The Application is not specified +noAppSecretInserted=App Secret not inserted +noAttachmentSelected=No attachment selected +noAudioSelected=Audio file is not specified. +noBoxNumberSelected=Box Name is not specified. +noClientEmailSelected=Client Email is not specified. noColor=No Color +noCommandSelected=Command is not specified. +noConditionSelected=Condition is not specified. +noContextSelected=Context is not specified. +noDatabaseSelected=Database is not specified. +noDialogflowLanguageSelected=Language is not specified. +noDialogflowProjectSelected=Project ID is not specified. +noDigitsSelected=Digits is not specified. +noExtensionSelected=Extension is not specified. noFiles=No files +noFileSelected=File Name is not specified. +noFindBySelected=Find by is not specified. +noFirstNameSelected=First Name is not specified +noGoalSelected=Goal is not specified. +noGrammarSelected=No grammar inserted +noIdentifierSelected=Identifier is not specified. +noIntervalSelected=Interval is not specified. +noKeySelected=Key is not specified. +noListSelected=List is not specified. +noMethodSelected=Method is not specified noMoreResults=No more results none=None +noNumberSelected=Number is not specified. +noop=NoOp +noOperandSelected=Left operand is not specified. +noPasswordSelected=Password is not specified +noPhoneSelected=Phone is not specified +noPrivateKeySelected=Private Key is not specified. +noProjectSelected=SubProject is not specified. +noQueueSelected=Queue Name is not specified. +noRecipientSelected=Recipient is not specified. noResultsFor=No results for '{1}' +noRightOperandSelected=Right operand is not specified. normal=Normal north=North +noTextSelected=Text is not specified. +noTrunkSelected=The Trunk is not specified. +noUrlInserted=Url is not specified +noUrlSelected=Url is not specified +noUsernameSelected=Username is not specified +noVariableSelected=Variable is not specified. +number=Number numberedList=Numbered List +numberOrAll=Insert number or -. +numberOrInvalidOrDefault=Insert x, i or -. +numberOrInvalidOrTimeout=Insert number, i or t (verify white spaces). +numberOrLettersOrAll=Insert numbers, letters or -. +odbc_id=ODBC Connection +ok=OK opacity=Opacity open=Open openArrow=Open Arrow openFile=Open File -openLink=Open Link -openSupported=Supported format is .XML files saved from this software openInNewWindow=Open in New Window openInThisWindow=Open in this Window +openLink=Open Link +openSupported=Supported format is .XML files saved from this software +operation=Operation options=Options +opts=Options organic=Organic orthogonal=Orthogonal +outgoingedge= outgoing edge. outline=Outline +output=Output oval=Oval pages=Pages -pageView=Page View pageScale=Page Scale pageSetup=Page Setup +pageView=Page View panTooltip=Space+Drag to Scroll paperSize=Paper Size paste=Paste pasteHere=Paste Here pattern=Pattern +pause=Pause perimeter=Perimeter +phone=Phone placeholders=Placeholders +playback=Playback plusTooltip=Click to connect and clone (ctrl+click to clone, shift+click to connect). Drag to connect (ctrl+drag to clone). portrait=Portrait position=Position posterPrint=Poster Print preview=Preview print=Print +priority=Priority +project_id=Project +publish=Publish +query=Query +queue_event=Event +queue_id=Queue +queue_variable=Queue from Variable +queue=Queue +queuelog=QueueLog +queuename=Queue Name radialTree=Radial Tree +record=Record +recording=Recording +recordingFormat=Format redo=Redo removeFormat=Clear Formatting removeFromGroup=Remove from Group @@ -235,12 +409,17 @@ removeWaypoint=Remove Waypoint rename=Rename renameIt=Rename {1} replace=Replace -replaceIt={1} already exists. Do you want to replace it? replaceExistingDrawing=Replace existing drawing +replaceIt={1} already exists. Do you want to replace it? reset=Reset resetView=Reset View +response=Response Timeout +restapi=RestAPI +result=Result +retry=Retry right=Right rightAlign=Right Align +rightOperand=Right Operand rightToLeft=Right to Left rotate=Rotate rotateTooltip=Click and drag to rotate, click to turn by 90 degrees @@ -249,6 +428,9 @@ rounded=Rounded save=Save saveAs=Save as saved=Saved +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Scrollbars search=Search searchShapes=Search Shapes @@ -257,6 +439,13 @@ selectEdges=Select Edges selectFont=Select a Font selectNone=Select None selectVertices=Select Vertices +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +sestekasr=SestekASR +sesteknda=SestekNDA +sestektts=SestekTTS +set=Set setAsDefaultStyle=Set as Default Style shadow=Shadow shape=Shape @@ -264,21 +453,36 @@ sharp=Sharp sidebarTooltip=Click to expand. Drag and drop shapes into the diagram. Shift+click to change selection. Alt+click to insert and connect. simple=Simple simpleArrow=Simple Arrow +sip_id=SIP size=Size +sms_account_id=Account +sms_text=Text solid=Solid sourceSpacing=Source Spacing south=South spacing=Spacing +speed=Speed +start=Start +stats=Stats straight=Straight strokeColor=Line Color style=Style +subject=Subject +subproject=SubProject subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=System table=Table targetSpacing=Target Spacing +template_id=Template text=Text textAlignment=Text Alignment textOpacity=Text Opacity +threshold=Threshold +tildeasr=TildeASR +timeout=Timeout (seconds) +to=To toBack=To Back toFront=To Front tooltips=Tooltips @@ -287,227 +491,38 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent +trueOrFalse=Insert true or false. +trunk_name=Trunk +trunk=Trunk +tts=TTS turn=Turn uml=UML underline=Underline undo=Undo ungroup=Ungroup -url=URL +unpause=End pause untitledLayer=Untitled Layer +updatingDocument=Updating Document. Please wait... +updatingSelection=Updating Selection. Please wait... +url=URL +value=Value +variable_id=Variable +variable_value=Variable Value +variable=Variable vertical=Vertical verticalFlow=Vertical Flow verticalTree=Vertical Tree view=View +voicemail=VoiceMail +vswitch=Switch waypoints=Waypoints west=West width=Width wordWrap=Word Wrap writingDirection=Writing Direction +wrongHiddenDigitsnum=Hidden Digits number has to be greater than or equal to 0 +wrongMaxDigit=Max Digit has to be greater than 0 +wrongMinDigit=Min Digit has to be greater than 0 zoom=Zoom zoomIn=Zoom In -zoomOut=Zoom Out -label=Label -timeout=Timeout (seconds) -response=Response Timeout -digit=Max Digit -escape=Escape Digits -retry=Retry -name=Name -value=Value -entry=Entry -start=Start -finally=Finally -end=End -variable=Variable -set=Set -operation=Operation -math=Math -result=Result -call_management=Call Management -answer=Answer -hangup=Hangup -dial=Internal Dial -ext_dial=External Dial -phone=Phone -trunk=Trunk -identifier=Identifier -queue=Queue -voicemail=VoiceMail -boxnumber=Box Number -playback=Playback -menu=Menu -saydigits=SayDigits -digits=Digits -saynumber=SayNumber -number=Number -sayphonetic=SayPhonetic -escape_digits=Escape Digits -tts=TTS -ispeechtts=iSpeechTTS -key=Key -getdigits=GetDigits -mindigit=Min Digits -maxdigit=Max Digits -custom_app=Custom App -language=Language -frequency=Frequency -integrationServer=Integration Server -database=Database -query=Query -asr=ASR -sendSMS=SendSMS -account_id=Account -template_id=Template -to=To -sms_text=Text -sendMail=SendMail -subject=Subject -cc=Cc -threshold=Threshold -maxspeech=Max Speech -grammar=Grammar -ispeechasr=iSpeechASR -model=Model -noop=NoOp -output=Output -system=System -command=Command -application=Application -agi=AGI -args=Arguments -subproject=SubProject -goalname=Goal Name -callflow=Callflow -gotoc=Goto -context=Context -extension=Extension -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Time Interval -leftOperand=Left Operand -condition=Condition -rightOperand=Right Operand -vswitch=Switch -recording=Recording -record=Record -queuename=Queue Name -announceoverride=Announce Override -callid=CallID -agent=Agent -queue_event=Event -data1=Data1 -data2=Data2 -data3=Data3 -data4=Data4 -data5=Data5 -macro=Macro -stats=Stats -queuelog=QueueLog -goal=Goal -callback=Callback -list=List -delay=Delay -list_id=List -opts=Options -queue_id=Queue -file_id=File -variable_id=Variable -gosub=Gosub -project_id=Project -sip_id=SIP -trunk_name=Trunk -variable_value=Variable Value -database_id=Database -interval_id=Interval -description_start=Start description -publish=Publish -ispeech_asr_language=Language -ispeech_tts_language=Language -google_tts_language=Language -queue_variable=Queue from Variable -odbc_id=ODBC Connection -noVariableSelected=Variable is not specified. -noTrunkSelected=The Trunk is not specified. -noAudioSelected=Audio file is not specified. -noOperandSelected=Left operand is not specified. -noDatabaseSelected=Database is not specified. -noExtensionSelected=Extension is not specified. -noCommandSelected=Command is not specified. -noApplicationSelected=Application is not specified. -noRightOperandSelected=Right operand is not specified. -noDigitsSelected=Digits is not specified. -noNumberSelected=Number is not specified. -noRecipientSelected=Recipient is not specified. -noTextSelected=Text is not specified. -noAccountSelected=Account is not specified. -noKeySelected=Key is not specified. -noIdentifierSelected=Identifier is not specified. -noQueueSelected=Queue Name is not specified. -noConditionSelected=Condition is not specified. -noIntervalSelected=Interval is not specified. -noContextSelected=Context is not specified. -noBoxNumberSelected=Box Name is not specified. -noProjectSelected=SubProject is not specified. -noFileSelected=File Name is not specified. -numberOrInvalidOrTimeout=Insert number, i or t (verify white spaces). -numberOrAll=Insert number or -. -numberOrInvalidOrDefault=Insert x, i or -. -trueOrFalse=Insert true or false. -noGoalSelected=Goal is not specified. -noListSelected=List is not specified. -musthave= must have -outgoingedge= outgoing edge. -incomingedge= incoming edge. -mailbox=Mailbox -intKey=Interrupt Key -speed=Speed -wrongMinDigit=Min Digit has to be greater than 0 -wrongMaxDigit=Max Digit has to be greater than 0 -wrongHiddenDigitsnum=Hidden Digits number has to be greater than or equal to 0 -hiddendigitsnum=Hidden Digits Number -hiddendigitspos=Hidden Digits position -getsecretdigits=GetSecretDigits -beep=Beep -description=Description -recordingFormat=Format -bcc=Bcc -invalidTimeout=Invalid Timeout value -invalidRetry=Invalid Retry value -invalidSpeed=Invalid Speed value -missingQuery=The query string is missing -invalidPriority=Invalid Priority value -noApplicationSelected=The Application is not specified -invalidDelay=Invalid Delay value -noAttachmentSelected=No attachment selected -sendFax=SendFax -attachment_name=Selected Attachment -choose_attachment=Choose Attachment -help_choose_attachment=Format: pdf,tiff or tif -help_delay=Time, in minutes, to wait before calling back the contact -noFirstNameSelected=First Name is not specified -noPhoneSelected=Phone is not specified -editFile=Edit XML -priority=Priority -numberOrLettersOrAll=Insert numbers, letters or -. -asr=ASR -lumenvoxtts=LumenvoxTTS -sestektts=SestekTTS -lumenvoxasr=LumenvoxASR -sestekasr=SestekASR -noGrammarSelected=No grammar inserted -noAppIdInserted=App ID not inserted -noAppSecretInserted=App Secret not inserted -sms_account_id=Account -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -noUrlInserted=Url is not specified -noUsernameSelected=Username is not specified -noPasswordSelected=Password is not specified -noUrlSelected=Url is not specified -noMethodSelected=Method is not specified \ No newline at end of file +zoomOut=Zoom Out \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_da.txt b/public/assets/plugins/square/resources/grapheditor_da.txt index 5a323e4..0144818 100644 --- a/public/assets/plugins/square/resources/grapheditor_da.txt +++ b/public/assets/plugins/square/resources/grapheditor_da.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=I forvejen er tilsluttet -cancel=Annuller -close=Luk -collapse-expand=Skjul/vis -containsValidationErrors=Indeholder valideringsfejl -done=Udfaerdiget -doubleClickOrientation=Doubleclick at ændre orienteringen -error=Fejl -ok=OK -updatingDocument=Opdatering af dokument. Vent venligst... -updatingSelection=Opdatering af udvalg. Vent venligst... about=Om +account_id=Konto actualSize=Faktisk størrelse add=Tilføj addLayer=Tilføj lag @@ -24,14 +7,25 @@ addProperty=Tilføj Ejendom addToExistingDrawing=Tilføj til eksisterende tegning addWaypoint=Tilføj Waypoint advanced=Avanceret +agent=Agent +agent_management=Agent Management +agi=AGI align=Juster alignment=Opretning allChangesLost=Alle ændringer går tabt! +alreadyConnected=I forvejen er tilsluttet angle=Vinkel +announceoverride=Annoncere tilsidesætte +answer=Svar +application=Anvendelse apply=Anvendelse +args=Argumenter arrange=Arrangere arrow=Pil arrows=Pile +asr=ASR +asr=ASR +attachment_name=Valgte vedhæftning automatic=Automatisk autosave=Autogem autosize=Autostr. @@ -39,54 +33,86 @@ background=Baggrund backgroundColor=Baggrundsfarve backgroundImage=Baggrundsbillede basic=Grundlæggende +bcc=Bcc +beep=Bip block=Blok blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=Kantfarve +borderWidth=Borderwidth bottom=Nederste bottomAlign=Bunden flugt bottomLeft=Nederst til venstre bottomRight=Nederst til højre +boxnumber=Rubrik bulletedList=Punktopstilling +call_management=Opkaldsstyring +callback=Callback +callflow=Callflow +callid=CallID +cancel=Annuller cannotOpenFile=Kan ikke åbne fil +cc=Kreds center=Center change=Skift changeOrientation=Skift retning +choose_attachment=Vælg redskab circle=Cirkel classic=Classic clearDefaultStyle=Klar standardstil clearWaypoints=Tydelige vejpunkter clipart=Clipart +close=Luk +collapse-expand=Skjul/vis collapse=Kollaps collapseExpand=Skjul/vis collapsible=Sammenfoldelige comic=Tegneserie +command=Kommando +condition=Betingelse connect=Tilslut connection=Tilslutning -connectionPoints=Forbindelsespunkter connectionArrows=Tilslutning pile +connectionPoints=Forbindelsespunkter constrainProportions=Indspænd proportioner +containsValidationErrors=Indeholder valideringsfejl +context=Kontekst copy=Kopi copyConnect=Kopi på Tilslut. create=Opret curved=Kurvede custom=Brugerdefineret +custom_app=Brugerdefineret program cut=Skær dashed=Stiplet +data1=Data1 +data2=Data2 +data3=Data3 +data4=Data4 +data5=Data5 +database=Database +database_id=Database decreaseIndent=Formindsk indrykning default=Standard +delay=Forsinkelse delete=Slet deleteColumn=Slette kolonne deleteRow=Slet række +description=Beskrivelse +description_start=Start beskrivelse diagram=Diagram +dial=Interne opkald diamond=Diamond diamondThin=Diamond (tynd) +digit=Max ciffer +digits=Cifre direction=Retning distribute=Distribuer divider=Rumdeler documentProperties=Dokumentegenskaberne +done=Udfaerdiget dotted=Stiplet +doubleClickOrientation=Doubleclick at ændre orienteringen drawing=Tegning{1} drawingEmpty=Tegningen er tom drawingTooLarge=Tegningen er for stor @@ -96,24 +122,34 @@ east=Øst edit=Rediger editData=Rediger data editDiagram=Rediger diagrammet +editFile=Rediger XML editImage=Rediger billede editLink=Rediger Link editStyle=Edit stil editTooltip=Rediger værktøjstip +end=Slutningen enterGroup=Indtast gruppe -enterValue=Indtast værdi enterName=Indtast navnet enterPropertyName=Indtast navn på ejendom +enterValue=Indtast værdi entityRelation=Entity Relation +entry=Indrejse +error=Fejl +escape=Escape-tegn +escape_digits=Escape-tegn exitGroup=Forlad gruppe expand=Udvid export=Eksporter +ext_dial=Eksterne opkald +extension=Udvidelse extras=Ekstramateriale file=Fil fileNotFound=Filen blev ikke fundet +file_id=Fil filename=Filnavn fill=Fyld fillColor=Farveudfyldning +finally=Endelig fitPage=En side fitPageWidth=Sidebredde fitTwoPages=To sider @@ -122,118 +158,226 @@ flip=Flip flipH=Vend vandret flipV=Flip Vertical font=Font -fontFamily=Font Family fontColor=Font Color +fontFamily=Font Family fontSize=Skriftstørrelse format=Format +formatGif=GIF +formatJpg=JPEG formatPanel=Formatpanelet formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Formateret formattedText=Formaterede tekst +frequency=Frekvens general=Generel +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glas global=Global +goal=Mål +goalname=Mål navn +google_tts_language=Sprog +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Gradient gradientColor=Farve +grammar=Grammatik grid=Grid gridSize=Rastermaal group=Gruppe guides=Guider +hangup=Hangup heading=Overskrift height=Højde help=Hjælp +help_choose_attachment=Format: pdf, tiff eller tif +help_delay=Tid i minutter, der skal gå, før de ringede tilbage til kontakt +hidden=Skjult +hiddendigitsnum=Skjulte tal nummer +hiddendigitspos=Skjulte Tal position hide=Skjul hideIt=Skjul {1} -hidden=Skjult home=Forside horizontal=Vandret horizontalFlow=Vandret Flow horizontalTree=Vandret træ html=HTML +identifier=Id image=Billede images=Billeder import=Importer +incomingedge=Indgående kant. increaseIndent=Forøg indrykning insert=Indsæt -insertColumnBefore=Indsæt kolonne venstre insertColumnAfter=Indsæt Kolonne til højre +insertColumnBefore=Indsæt kolonne venstre insertHorizontalRule=Indsæt vandret regel insertImage=Indsæt billede insertLink=Indsæt Link -insertRowBefore=Indsæt række over insertRowAfter=Indsæt række nedenfor +insertRowBefore=Indsæt række over +intKey=Tasten Afbryd +integrationServer=Integration Server +interval=Tidsinterval +interval_id=Interval +invalidDelay=Ugyldig Forsinkelsesværdi invalidName=Ugyldigt navn invalidOrMissingFile=Ugyldig eller manglende fil +invalidPriority=Ugyldig prioritetsværdi +invalidRetry=Prøv ugyldig værdi +invalidSpeed=Ugyldig hastighedsværdi +invalidTimeout=Ugyldig timeoutværdi isometric=Isometrisk +ispeech_asr_language=Sprog +ispeech_tts_language=Sprog +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Kursiv -layers=Lag +key=Nøgle +label=Etiket landscape=Landskab laneColor=Lanecolor +language=Sprog +layers=Lag layout=Layout left=Venstre leftAlign=Venstrejuster +leftOperand=Venstre Operand leftToRight=Fra venstre mod højre line=Line -link=Link lineend=Linjeafslutning lineheight=Linie højde linestart=Line Start linewidth=Linjebredde +link=Link +list=Listen +list_id=Listen loading=Indlæsning lockUnlock=Lock/Unlock (låsetast +login=Login +logout=Logout +macro=Makro +mailbox=Postkasse manual=Manuel +math=Matematik +maxdigit=Max cifre +maxspeech=Max indlæg +menu=Menu middle=Midt +mindigit=Min cifre misc=Div. +missingQuery=Det er manglende forespørgselsstreng +model=Model more=Mere moreResults=Flere resultater move=Flyt moveSelectionTo=Flytter markering til {1} +musthave=Skal have +name=Navnet navigation=Navigation new=Ny +noAccountSelected=Kontoen er ikke angivet. +noApplicationSelected=Applikationen er ikke angivet +noAttachmentSelected=Ingen vedhæftet fil valgt +noAudioSelected=Lydfilen er ikke angivet. +noBoxNumberSelected=Feltet Navn er ikke angivet. noColor=Ingen farve +noCommandSelected=Kommandoen er ikke angivet. +noConditionSelected=Tilstanden er ikke angivet. +noContextSelected=Konteksten er ikke angivet. +noDatabaseSelected=Databasen er ikke angivet. +noDigitsSelected=Cifrene er ikke angivet. +noExtensionSelected=Udvidelsen er ikke angivet. +noFileSelected=Filnavn er ikke angivet. noFiles=Ingen filer +noFindBySelected=Find by is not specified. +noFirstNameSelected=Første navn er ikke angivet +noGoalSelected=Mål er ikke angivet. +noIdentifierSelected=Id er ikke angivet. +noIntervalSelected=Intervallet er ikke angivet. +noKeySelected=Nøglen er ikke angivet. +noListSelected=Listen er ikke angivet. noMoreResults=Ikke flere resultater -none=Ingen +noNumberSelected=Nummer ikke er angivet. +noOperandSelected=Venstre operand er ikke angivet. +noPhoneSelected=Telefonen er ikke angivet +noProjectSelected=Delprojektet er ikke angivet. +noQueueSelected=Kønavnet ikke er angivet. +noRecipientSelected=Modtageren er ikke angivet. noResultsFor=Ingen resultater for '{1}' +noRightOperandSelected=Højre operand er ikke angivet. +noTextSelected=Teksten er ikke angivet. +noTrunkSelected=Bagagerummet er ikke angivet. +noVariableSelected=Variablen er ikke angivet. +none=Ingen +noop=NoOp normal=Normal north=Nord +number=Antallet +numberOrAll=Indsæt nummer eller -. +numberOrInvalidOrDefault=Sæt x, eller jeg -. +numberOrInvalidOrTimeout=Indsæt nummer, jeg eller t (verify hvide mellemrum). +numberOrLettersOrAll=Indsæt tal, bogstaver eller -. numberedList=Nummereret liste +odbc_id=ODBC-forbindelsen. +ok=OK opacity=Opacitet open=Åbn openArrow=Åben pil openFile=Åbn fil -openLink=Åbn Link -openSupported=Understøttede formater er .XML filer gemt fra denne software openInNewWindow=Åbn i nyt vindue openInThisWindow=Åbent i dette vindue +openLink=Åbn Link +openSupported=Understøttede formater er .XML filer gemt fra denne software +operation=Drift options=Valgmuligheder +opts=Valgmuligheder organic=Organisk orthogonal=Retvinklede +outgoingedge=Udgående kant. outline=Omrids +output=Udgang oval=Oval -pages=Sider -pageView=Sidevisning pageScale=Side skala pageSetup=Sideopsætning +pageView=Sidevisning +pages=Sider panTooltip=Plads træk for at rulle paperSize=Papirstørrelse paste=Indsæt pasteHere=Indsæt her pattern=Mønster +pause=Pause perimeter=Perimeter +phone=Telefonen placeholders=Pladsholdere +playback=Afspilning plusTooltip=Klik på Tilslut og kopier (Ctrl-klik for at klone, trykke på Shift og klikke på Connect). Træk til slut (ctrl-træk for at kopiere). portrait=Portræt position=Position posterPrint=Plakat Print preview=Preview print=Udskriv +priority=Prioritet +project_id=Projekt +publish=Pubblica +query=Forespørgsel +queue=Kø +queue_event=Hændelse +queue_id=Kø +queue_variable=Kø fra variabel +queuelog=QueueLog +queuename=Kønavnet radialTree=Radial Tree +record=Registrer +recording=Optagelse +recordingFormat=Format redo=Redo removeFormat=Ryd formatering removeFromGroup=Fjern fra gruppe @@ -242,12 +386,16 @@ removeWaypoint=Fjern waypoint rename=Omdøb renameIt=Omdøb {1} replace=Udskift -replaceIt={1} findes allerede. Ønsker du at overskrive den? replaceExistingDrawing=Erstat eksisterende tegning +replaceIt={1} findes allerede. Ønsker du at overskrive den? reset=Nulstil resetView=Nulstil visning +response=Svar Timeout +result=Resultat +retry=Prøv igen right=Højre rightAlign=Højrejustere +rightOperand=Højre Operand rightToLeft=Højre til venstre rotate=Drej rotateTooltip=Klik og træk for at rotere, klik og drej den 90 grader @@ -256,6 +404,9 @@ rounded=Afrundet save=Gem saveAs=Gem som saved=Gemt +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Rullepaneler search=Søg searchShapes=Søg profiler @@ -264,6 +415,10 @@ selectEdges=Vælg kanter selectFont=Vælg en skrifttype selectNone=Vælg Ingen selectVertices=Vælg knudepunkter +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=Indstil setAsDefaultStyle=Indstil som standard Style shadow=Skygge shape=Shape @@ -271,21 +426,34 @@ sharp=Sharp sidebarTooltip=Klik for at udvide. Træk og slip figurerne i tegningen. Klik på Skift for at ændre valget. Alt klik på Indsæt og tilslut. simple=Enkel simpleArrow=Enkelt pil +sip_id=SIP size=Størrelse +sms_text=Tekst solid=Solid sourceSpacing=Afstand mellem kilder south=Syd spacing=Linjeafstand +speed=Hastighed +start=Start +stats=Statistik straight=Lige strokeColor=Linjens farve style=Stil +subject=Genstand +subproject=Delprojekt subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=System table=Tabel targetSpacing=Mål afstanden +template_id=Skabelon text=Tekst textAlignment=Tekstopstilling textOpacity=Tekst opacitet +threshold=Tærskel +timeout=Timeout (sekunder) +to=Til toBack=Tilbage til toFront=Til forsiden tooltips=Værktøjstip @@ -294,206 +462,38 @@ topAlign=Top flugt topLeft=Øverst til venstre topRight=Øverst til højre transparent=Gennemsigtig +trueOrFalse=Indsæt sand eller falsk. +trunk=Trunk +trunk_name=Trunk +tts=TTS turn=Drej uml=UML underline=Underline undo=Fortryd ungroup=Opløs -url=URL +unpause=End pause untitledLayer=Untitled lag +updatingDocument=Opdatering af dokument. Vent venligst... +updatingSelection=Opdatering af udvalg. Vent venligst... +url=URL +value=Værdi +variable=Variabel +variable_id=Variabel +variable_value=Variabel værdi vertical=Lodret verticalFlow=Vertikal Flow verticalTree=Lodrette træ view=Se +voicemail=Telefonsvarer +vswitch=Kontakt waypoints=Waypoints west=West width=Bredde wordWrap=Tekstombrydning writingDirection=Skriveretning +wrongHiddenDigitsnum=Skjulte Tal tal skal være større end eller lig med 0 +wrongMaxDigit=Max tal skal være større end 0 +wrongMinDigit=Min ciffer skal være større end 0 zoom=Zoom zoomIn=Zoom ind -zoomOut=Zoom ud -label=Etiket -timeout=Timeout (sekunder) -response=Svar Timeout -digit=Max ciffer -escape=Escape-tegn -retry=Prøv igen -name=Navnet -value=Værdi -entry=Indrejse -start=Start -finally=Endelig -end=Slutningen -variable=Variabel -set=Indstil -operation=Drift -math=Matematik -result=Resultat -call_management=Opkaldsstyring -answer=Svar -hangup=Hangup -dial=Interne opkald -ext_dial=Eksterne opkald -phone=Telefonen -trunk=Trunk -identifier=Id -queue=Kø -voicemail=Telefonsvarer -boxnumber=Rubrik -playback=Afspilning -menu=Menu -saydigits=SayDigits -digits=Cifre -saynumber=SayNumber -number=Antallet -sayphonetic=SayPhonetic -escape_digits=Escape-tegn -tts=TTS -ispeechtts=ISpeechTTS -key=Nøgle -getdigits=GetDigits -mindigit=Min cifre -maxdigit=Max cifre -custom_app=Brugerdefineret program -language=Sprog -frequency=Frekvens -integrationServer=Integration Server -database=Database -query=Forespørgsel -asr=ASR -sendSMS=SendSMS -account_id=Konto -template_id=Skabelon -to=Til -sms_text=Tekst -sendMail=SendMail -subject=Genstand -cc=Kreds -threshold=Tærskel -maxspeech=Max indlæg -grammar=Grammatik -ispeechasr=ISpeechASR -model=Model -noop=NoOp -output=Udgang -system=System -command=Kommando -application=Anvendelse -agi=AGI -args=Argumenter -subproject=Delprojekt -goalname=Mål navn -callflow=Callflow -gotoc=Goto -context=Kontekst -extension=Udvidelse -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Tidsinterval -leftOperand=Venstre Operand -condition=Betingelse -rightOperand=Højre Operand -vswitch=Kontakt -recording=Optagelse -record=Registrer -queuename=Kønavnet -announceoverride=Annoncere tilsidesætte -callid=CallID -agent=Agent -queue_event=Hændelse -data1=Data1 -data2=Data2 -data3=Data3 -data4=Data4 -data5=Data5 -macro=Makro -stats=Statistik -queuelog=QueueLog -goal=Mål -callback=Callback -list=Listen -delay=Forsinkelse -list_id=Listen -opts=Valgmuligheder -queue_id=Kø -file_id=Fil -variable_id=Variabel -gosub=Gosub -project_id=Projekt -sip_id=SIP -trunk_name=Trunk -variable_value=Variabel værdi -database_id=Database -interval_id=Interval -description_start=Start beskrivelse -publish=Pubblica -ispeech_asr_language=Sprog -ispeech_tts_language=Sprog -google_tts_language=Sprog -queue_variable=Kø fra variabel -odbc_id=ODBC-forbindelsen. -noVariableSelected=Variablen er ikke angivet. -noTrunkSelected=Bagagerummet er ikke angivet. -noAudioSelected=Lydfilen er ikke angivet. -noOperandSelected=Venstre operand er ikke angivet. -noDatabaseSelected=Databasen er ikke angivet. -noExtensionSelected=Udvidelsen er ikke angivet. -noCommandSelected=Kommandoen er ikke angivet. -noApplicationSelected=Applikationen er ikke angivet -noRightOperandSelected=Højre operand er ikke angivet. -noDigitsSelected=Cifrene er ikke angivet. -noNumberSelected=Nummer ikke er angivet. -noRecipientSelected=Modtageren er ikke angivet. -noTextSelected=Teksten er ikke angivet. -noAccountSelected=Kontoen er ikke angivet. -noKeySelected=Nøglen er ikke angivet. -noIdentifierSelected=Id er ikke angivet. -noQueueSelected=Kønavnet ikke er angivet. -noConditionSelected=Tilstanden er ikke angivet. -noIntervalSelected=Intervallet er ikke angivet. -noContextSelected=Konteksten er ikke angivet. -noBoxNumberSelected=Feltet Navn er ikke angivet. -noProjectSelected=Delprojektet er ikke angivet. -noFileSelected=Filnavn er ikke angivet. -numberOrInvalidOrTimeout=Indsæt nummer, jeg eller t (verify hvide mellemrum). -numberOrAll=Indsæt nummer eller -. -numberOrInvalidOrDefault=Sæt x, eller jeg -. -trueOrFalse=Indsæt sand eller falsk. -noGoalSelected=Mål er ikke angivet. -noListSelected=Listen er ikke angivet. -musthave=Skal have -outgoingedge=Udgående kant. -incomingedge=Indgående kant. -mailbox=Postkasse -intKey=Tasten Afbryd -speed=Hastighed -wrongMinDigit=Min ciffer skal være større end 0 -wrongMaxDigit=Max tal skal være større end 0 -wrongHiddenDigitsnum=Skjulte Tal tal skal være større end eller lig med 0 -hiddendigitsnum=Skjulte tal nummer -hiddendigitspos=Skjulte Tal position -getsecretdigits=GetSecretDigits -beep=Bip -description=Beskrivelse -recordingFormat=Format -bcc=Bcc -invalidTimeout=Ugyldig timeoutværdi -invalidRetry=Prøv ugyldig værdi -invalidSpeed=Ugyldig hastighedsværdi -missingQuery=Det er manglende forespørgselsstreng -invalidPriority=Ugyldig prioritetsværdi -invalidDelay=Ugyldig Forsinkelsesværdi -noAttachmentSelected=Ingen vedhæftet fil valgt -sendFax=SendFax -attachment_name=Valgte vedhæftning -choose_attachment=Vælg redskab -help_choose_attachment=Format: pdf, tiff eller tif -help_delay=Tid i minutter, der skal gå, før de ringede tilbage til kontakt -noFirstNameSelected=Første navn er ikke angivet -noPhoneSelected=Telefonen er ikke angivet -editFile=Rediger XML -priority=Prioritet -numberOrLettersOrAll=Indsæt tal, bogstaver eller -. -asr=ASR +zoomOut=Zoom ud \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_de.txt b/public/assets/plugins/square/resources/grapheditor_de.txt index 1361da6..9d930d0 100644 --- a/public/assets/plugins/square/resources/grapheditor_de.txt +++ b/public/assets/plugins/square/resources/grapheditor_de.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Knoten bereits verbunden -cancel=Abbrechen -close=Schließen -collapse-expand=Zusammenbruch/Erweitern -containsValidationErrors=Enthält Validierungsfehler -done=Fertig -doubleClickOrientation=Doppelklicken Sie zum Ändern der Ausrichtung -error=Fehler -ok=OK -updatingDocument=Aktualisierung des Dokuments. Bitte warten... -updatingSelection=Aktualisierung Auswahl. Bitte warten... about=Über +account_id=Konto actualSize=Tatsächliche Größe add=Hinzufügen addLayer=Layer hinzufügen @@ -24,14 +7,25 @@ addProperty=Eigenschaft hinzufügen addToExistingDrawing=Zu bestehenden Zeichnung hinzufügen addWaypoint=Wegpunkt hinzufügen advanced=Erweiterte +agent=Agent +agent_management=Agent Management +agi=AGI align=Ausrichten alignment=Ausrichtung allChangesLost=Alle Änderungen gehen verloren! +alreadyConnected=Knoten bereits verbunden angle=Winkel +announceoverride=Verkünden überschreiben +answer=Antwort +application=Anwendung apply=Anwenden +args=Argumente arrange=Ordnen sie arrow=Pfeil arrows=Pfeile +asr=ASR +asr=ASR +attachment_name=Ausgewählte Anlage automatic=Automatische autosave=Autosave autosize=Autosize @@ -39,54 +33,86 @@ background=Hintergrund backgroundColor=Hintergrundfarbe backgroundImage=Hintergrundbild basic=Basic +bcc=Bcc +beep=Signalton block=Block blockquote=Blockquote bold=Fett -borderWidth=Borderwidth borderColor=Rahmenfarbe +borderWidth=Borderwidth bottom=Unten bottomAlign=Unten ausrichten bottomLeft=Unten Links bottomRight=Unten rechts +boxnumber=Das Feld Telefonnummer bulletedList=Liste mit Aufzählungszeichen +call_management=Verwaltung +callback=Rückruf +callflow=Anrufverlauf +callid=CallID +cancel=Abbrechen cannotOpenFile=Datei kann nicht geöffnet werden +cc=Cc center=Zentrum change=Ändern changeOrientation=Ändern Sie die Ausrichtung +choose_attachment=Anlage wählen circle=Kreis classic=Classic clearDefaultStyle=Standard löschen Stil clearWaypoints=Löschen von Wegpunkten clipart=Clipart +close=Schließen +collapse-expand=Zusammenbruch/Erweitern collapse=Zusammenbruch collapseExpand=Zusammenbruch/Erweitern collapsible=Zusammenklappbar comic=Comic +command=Befehl +condition=Zustand connect=Anschließen connection=Verbindung -connectionPoints=Anschlussstellen connectionArrows=Verbindung Pfeile +connectionPoints=Anschlussstellen constrainProportions=Proportionen +containsValidationErrors=Enthält Validierungsfehler +context=Kontext copy=Kopieren copyConnect=Kopieren auf Verbinden create=Erstellen curved=Gekrümmt custom=Benutzerdefinierte +custom_app=Benutzerdefinierte Anwendung cut=Schnitt dashed=Gestrichelt +data1=Daten 1 +data2=Daten 2 +data3=Daten 3 +data4=Daten 4 +data5=Daten 5 +database=Datenbank +database_id=Datenbank decreaseIndent=Einzug verkleinern default=Standard +delay=Verzögerung delete=Löschen deleteColumn=Spalte löschen deleteRow=Zeile löschen +description=Beschreibung +description_start=Start Beschreibung diagram=Diagramm +dial=Interne Wahl diamond=Diamond diamondThin=Diamond (dünn) +digit=Max. Ziffer +digits=Ziffern direction=Richtung distribute=Verteilen divider=Teiler documentProperties=Dokumenteigenschaften +done=Fertig dotted=Gepunktet +doubleClickOrientation=Doppelklicken Sie zum Ändern der Ausrichtung drawing=Zeichnen{1} drawingEmpty=Zeichnung ist leer drawingTooLarge=Die Zeichnung ist zu groß @@ -96,24 +122,34 @@ east=Osten edit=Bearbeiten editData=Daten bearbeiten editDiagram=Diagramm bearbeiten +editFile=Bearbeiten von XML- editImage=Bild bearbeiten editLink=Link bearbeiten editStyle=Stil bearbeiten editTooltip=Bearbeiten Tooltip +end=Ende enterGroup=Gruppe eingeben -enterValue=Wert eingeben enterName=Namen eingeben enterPropertyName=Name der Eigenschaft eingeben +enterValue=Wert eingeben entityRelation=Entity Relation +entry=Eintrag +error=Fehler +escape=Escape Ziffern +escape_digits=Escape Ziffern exitGroup=Gruppe verlassen expand=Erweitern export=Exportieren +ext_dial=Externes Wählen +extension=Erweiterung extras=Extras file=Datei fileNotFound=Datei nicht gefunden +file_id=Datei filename=Dateiname fill=Füllen fillColor=Füllfarbe +finally=Schließlich fitPage=Eine Seite fitPageWidth=Seitenbreite fitTwoPages=Zwei Seiten @@ -122,118 +158,226 @@ flip=Flip flipH=Horizontal spiegeln flipV=Vertikal spiegeln font=Schriftart -fontFamily=Schriftfamilie fontColor=Font Color +fontFamily=Schriftfamilie fontSize=Schriftgröße format=Format +formatGif=GIF +formatJpg=JPEG formatPanel=Format Panel formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Formatiert formattedText=Formatierter Text +frequency=Frequenz general=Allgemein +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glas global=Global +goal=Ziel +goalname=Ziel Name +google_tts_language=Sprache +gosub=Gosub +gotoc=Gehe zu +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Steigung gradientColor=Farbe +grammar=Grammatik grid=Raster gridSize=Gittergröße group=Gruppe guides=Führungen +hangup=Auflegen heading=Überschrift height=Höhe help=Hilfe +help_choose_attachment=Format: PDF-, TIFF- oder tif +help_delay=Zeit in Minuten an, zu warten, bevor der Kontakt anrufen +hidden=Ausgeblendet +hiddendigitsnum=Versteckte Ziffern +hiddendigitspos=Versteckte Ziffern Position hide=Ausblenden hideIt=Ausblenden{1} -hidden=Ausgeblendet home=Home horizontal=Horizontale horizontalFlow=Horizontale Strömung horizontalTree=Horizontale Baum html=HTML +identifier=Bezeichner image=Bild images=Bilder import=Importieren +incomingedge=Eingehende Kante. increaseIndent=Einzug vergrößern insert=Einfügen -insertColumnBefore=Einfügen Spalte links insertColumnAfter=Einfügen Spalte rechts +insertColumnBefore=Einfügen Spalte links insertHorizontalRule=Horizontale Linie einfügen insertImage=Bild einfügen insertLink=Link einfügen -insertRowBefore=Zeile oberhalb einfügen insertRowAfter=Zeile unterhalb einfügen +insertRowBefore=Zeile oberhalb einfügen +intKey=Unterbrechungstaste +integrationServer=Integration Server +interval=Zeitintervall +interval_id=Intervall +invalidDelay=Ungültige Verzögerungszeit invalidName=Ungültiger Name invalidOrMissingFile=Ungültige oder fehlende Datei +invalidPriority=Ungültiger Wert für die Priorität +invalidRetry=Ungültige Wiederholungswert +invalidSpeed=Ungültiger Wert der Drehzahl +invalidTimeout=Ungültiger Wert für die Zeitüberschreitung isometric=Isometrische +ispeech_asr_language=Sprache +ispeech_tts_language=Sprache +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Kursiv -layers=Schichten +key=Schlüssel +label=Etikett landscape=Landschaft laneColor=Lanecolor +language=Sprache +layers=Schichten layout=Layout left=Links leftAlign=Links ausrichten +leftOperand=Linker Operand leftToRight=Von Links nach Rechts line=Zeile -link=Link lineend=Zeilenende lineheight=Zeilenhöhe linestart=Zeile beginnen linewidth=Linienbreite +link=Link +list=Liste +list_id=Liste loading=Laden lockUnlock=Sperren/Entsperren +login=Login +logout=Logout +macro=Makro +mailbox=Mailbox manual=Handbuch +math=Math +maxdigit=Max Ziffern +maxspeech=Max Rede +menu=Menü middle=Mitte +mindigit=Min. Ziffern misc=Misc +missingQuery=Die Abfragezeichenfolge fehlt +model=Modell more=Mehr moreResults=Weitere Ergebnisse move=Verschieben moveSelectionTo=Auswahl von {1} +musthave=Müssen +name=Name navigation=Navigation new=Neue +noAccountSelected=Konto ist nicht angegeben. +noApplicationSelected=Die Anwendung ist nicht angegeben +noAttachmentSelected=Kein Anschluss aktiviert +noAudioSelected=Audio Datei nicht angegeben ist. +noBoxNumberSelected=Feld Name ist nicht angegeben. noColor=Keine Farbe +noCommandSelected=Befehl ist nicht angegeben. +noConditionSelected=Zustand ist nicht angegeben. +noContextSelected=Kontext ist nicht angegeben. +noDatabaseSelected=Datenbank ist nicht angegeben. +noDigitsSelected=Ziffern ist nicht angegeben. +noExtensionSelected=Die Nebenstelle ist nicht angegeben. +noFileSelected=Dateiname nicht angegeben ist. noFiles=Keine Dateien +noFindBySelected=Find by is not specified. +noFirstNameSelected=Der Vorname ist nicht angegeben +noGoalSelected=Ziel ist es, nicht angegeben. +noIdentifierSelected=Kennung ist nicht angegeben. +noIntervalSelected=Intervall ist nicht angegeben. +noKeySelected=Schlüssel ist nicht angegeben. +noListSelected=Liste ist nicht angegeben. noMoreResults=Keine weiteren Ergebnisse -none=Keine +noNumberSelected=Zahl ist nicht angegeben. +noOperandSelected=Linker Operand nicht angegeben ist. +noPhoneSelected=Telefon ist nicht angegeben +noProjectSelected=Teilprojekt ist nicht angegeben. +noQueueSelected=Name der Warteschlange ist nicht angegeben. +noRecipientSelected=Empfänger ist nicht angegeben. noResultsFor=Keine Ergebnisse für '{1}' +noRightOperandSelected=Rechter Operand ist nicht angegeben. +noTextSelected=Der Text ist nicht angegeben. +noTrunkSelected=Der Stamm ist nicht angegeben. +noVariableSelected=Variable ist nicht angegeben. +none=Keine +noop=NoOp normal=Normal north=Norden +number=Anzahl +numberOrAll=Nummer einfügen oder -. +numberOrInvalidOrDefault=Legen Sie x, i oder -. +numberOrInvalidOrTimeout=Nummer einfügen, i oder t (Leerzeichen überprüfen). +numberOrLettersOrAll=Zahlen, Buchstaben oder -. numberedList=Nummerierte Liste +odbc_id=ODBC-Verbindung +ok=OK opacity=Opazität open=Öffnen openArrow=Öffnen Pfeil openFile=Datei öffnen -openLink=Link öffnen -openSupported=Unterstützt das Format ist .XML-Dateien, die von dieser Software gespeichert openInNewWindow=In neuem Fenster öffnen openInThisWindow=In diesem Fenster öffnen +openLink=Link öffnen +openSupported=Unterstützt das Format ist .XML-Dateien, die von dieser Software gespeichert +operation=Betrieb options=Optionen +opts=Optionen organic=Organische orthogonal=Orthogonale +outgoingedge=Ausgehende Kante. outline=Überblick +output=Ausgang oval=Oval -pages=Seiten -pageView=Seite anzeigen pageScale=Seite skalieren pageSetup=Seite einrichten +pageView=Seite anzeigen +pages=Seiten panTooltip=Platz ziehen zu Blättern paperSize=Papierformat paste=Einfügen pasteHere=Einfügen hier pattern=Muster +pause=Pause perimeter=Umfang +phone=Telefon placeholders=Platzhalter +playback=Wiedergabe plusTooltip=Klicken Sie auf Verbinden und Klonen (Strg klicken zu klonen, Klicken mit gedrückter Umschalttaste zu verbinden). Ziehen Sie zu verbinden (Strg ziehen zu klonen). portrait=Porträt position=Position posterPrint=Poster drucken preview=Vorschau print=Drucken +priority=Priorität +project_id=Projekt +publish=Pubblica +query=Abfrage +queue=Warteschlange +queue_event=Veranstaltung +queue_id=Warteschlange +queue_variable=Die Warteschlange, von der Verstellpumpe +queuelog=QueueLog +queuename=Name der Warteschlange radialTree=Radiale Baum +record=Datensatz +recording=Aufnahme +recordingFormat=Format redo=Wiederholen removeFormat=Klare Formatierung removeFromGroup=Aus Gruppe entfernen @@ -242,12 +386,16 @@ removeWaypoint=Wegpunkt entfernen: Entfernen rename=Umbenennen renameIt={1} umbenennen replace=Ersetzen -replaceIt={1} ist bereits vorhanden. Möchten Sie sie ersetzen? replaceExistingDrawing=Vorhandene Zeichnung ersetzen +replaceIt={1} ist bereits vorhanden. Möchten Sie sie ersetzen? reset=Zurücksetzen resetView=Ansicht zurücksetzen +response=Antwort Timeout +result=Ergebnis +retry=Erneut versuchen right=Rechts rightAlign=Rechts ausrichten +rightOperand=Rechter Operand rightToLeft=Rechts nach Links rotate=Drehen rotateTooltip=Klicken und ziehen Sie zum Drehen, klicken Sie auf um 90 Grad zu drehen @@ -256,6 +404,9 @@ rounded=Gerundet save=Speichern saveAs=Speichern als saved=Gespeichert +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Bildlaufleisten search=Suche searchShapes=Suche Formen @@ -264,6 +415,10 @@ selectEdges=Wählen Sie die Kanten selectFont=Wählen Sie eine Schriftart selectNone=Wählen Sie "Keine" selectVertices=Scheitelpunkte auswählen +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=Einstellen setAsDefaultStyle=Als Standard Stil shadow=Schatten shape=Form @@ -271,21 +426,34 @@ sharp=Scharfe sidebarTooltip=Klicken Sie auf Erweitern. Drag und Drop Formen in das Diagramm. Umschalttaste klicken Sie auf Auswahl ändern. Alt Klicken Sie auf Einfügen und schließen. simple=Einfache simpleArrow=Einfache Pfeil +sip_id=SIP size=Größe +sms_text=Text solid=Solide sourceSpacing=Quelle Abstand south=Süden spacing=Abstand +speed=Geschwindigkeit +start=Starten +stats=Stats straight=Gerade strokeColor=Linienfarbe style=Stil +subject=Betreff +subproject=Unterprojekt subscript=Tiefgestellt +successOrFailure=Insert success or failure. superscript=Hochgestellt +system=System table=Tabelle targetSpacing=Ziel Abstand +template_id=Vorlage text=Text textAlignment=Textausrichtung textOpacity=Text Opazität +threshold=Schwellenwert +timeout=Zeitabschaltung (Sekunden) +to=Zu toBack=Zurück toFront=Nach vorne tooltips=Tooltips @@ -294,206 +462,38 @@ topAlign=Oben ausrichten topLeft=Oben Links topRight=Oben rechts transparent=Transparente +trueOrFalse=Legen Sie Wahr oder Falsch. +trunk=Amtsleitung +trunk_name=Amtsleitung +tts=TTS turn=Drehen uml=UML underline=Unterstreichen undo=Rückgängig machen ungroup=Gruppierung aufheben -url=URL +unpause=End pause untitledLayer=Untitled Layer +updatingDocument=Aktualisierung des Dokuments. Bitte warten... +updatingSelection=Aktualisierung Auswahl. Bitte warten... +url=URL +value=Wert +variable=Variable +variable_id=Variable +variable_value=Variabler Wert vertical=Vertikale verticalFlow=Vertikalen Fluss verticalTree=Vertikale Baum view=Anzeigen +voicemail=VoiceMail +vswitch=Schalter waypoints=Wegpunkte west=Westen width=Breite wordWrap=Zeilenumbruch writingDirection=Schreibrichtung +wrongHiddenDigitsnum=Versteckte Ziffern muss größer als oder gleich 0 sein +wrongMaxDigit=Max. Zahl ist größer als 0 sein +wrongMinDigit=Min. Ziffer muss größer als 0 sein zoom=Zoom zoomIn=Bild vergrößern -zoomOut=Verkleinern -label=Etikett -timeout=Zeitabschaltung (Sekunden) -response=Antwort Timeout -digit=Max. Ziffer -escape=Escape Ziffern -retry=Erneut versuchen -name=Name -value=Wert -entry=Eintrag -start=Starten -finally=Schließlich -end=Ende -variable=Variable -set=Einstellen -operation=Betrieb -math=Math -result=Ergebnis -call_management=Verwaltung -answer=Antwort -hangup=Auflegen -dial=Interne Wahl -ext_dial=Externes Wählen -phone=Telefon -trunk=Amtsleitung -identifier=Bezeichner -queue=Warteschlange -voicemail=VoiceMail -boxnumber=Das Feld Telefonnummer -playback=Wiedergabe -menu=Menü -saydigits=SayDigits -digits=Ziffern -saynumber=SayNumber -number=Anzahl -sayphonetic=SayPhonetic -escape_digits=Escape Ziffern -tts=TTS -ispeechtts=ISpeechTTS -key=Schlüssel -getdigits=GetDigits -mindigit=Min. Ziffern -maxdigit=Max Ziffern -custom_app=Benutzerdefinierte Anwendung -language=Sprache -frequency=Frequenz -integrationServer=Integration Server -database=Datenbank -query=Abfrage -asr=ASR -sendSMS=SendSMS -account_id=Konto -template_id=Vorlage -to=Zu -sms_text=Text -sendMail=SendMail -subject=Betreff -cc=Cc -threshold=Schwellenwert -maxspeech=Max Rede -grammar=Grammatik -ispeechasr=ISpeechASR -model=Modell -noop=NoOp -output=Ausgang -system=System -command=Befehl -application=Anwendung -agi=AGI -args=Argumente -subproject=Unterprojekt -goalname=Ziel Name -callflow=Anrufverlauf -gotoc=Gehe zu -context=Kontext -extension=Erweiterung -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Zeitintervall -leftOperand=Linker Operand -condition=Zustand -rightOperand=Rechter Operand -vswitch=Schalter -recording=Aufnahme -record=Datensatz -queuename=Name der Warteschlange -announceoverride=Verkünden überschreiben -callid=CallID -agent=Agent -queue_event=Veranstaltung -data1=Daten 1 -data2=Daten 2 -data3=Daten 3 -data4=Daten 4 -data5=Daten 5 -macro=Makro -stats=Stats -queuelog=QueueLog -goal=Ziel -callback=Rückruf -list=Liste -delay=Verzögerung -list_id=Liste -opts=Optionen -queue_id=Warteschlange -file_id=Datei -variable_id=Variable -gosub=Gosub -project_id=Projekt -sip_id=SIP -trunk_name=Amtsleitung -variable_value=Variabler Wert -database_id=Datenbank -interval_id=Intervall -description_start=Start Beschreibung -publish=Pubblica -ispeech_asr_language=Sprache -ispeech_tts_language=Sprache -google_tts_language=Sprache -queue_variable=Die Warteschlange, von der Verstellpumpe -odbc_id=ODBC-Verbindung -noVariableSelected=Variable ist nicht angegeben. -noTrunkSelected=Der Stamm ist nicht angegeben. -noAudioSelected=Audio Datei nicht angegeben ist. -noOperandSelected=Linker Operand nicht angegeben ist. -noDatabaseSelected=Datenbank ist nicht angegeben. -noExtensionSelected=Die Nebenstelle ist nicht angegeben. -noCommandSelected=Befehl ist nicht angegeben. -noApplicationSelected=Die Anwendung ist nicht angegeben -noRightOperandSelected=Rechter Operand ist nicht angegeben. -noDigitsSelected=Ziffern ist nicht angegeben. -noNumberSelected=Zahl ist nicht angegeben. -noRecipientSelected=Empfänger ist nicht angegeben. -noTextSelected=Der Text ist nicht angegeben. -noAccountSelected=Konto ist nicht angegeben. -noKeySelected=Schlüssel ist nicht angegeben. -noIdentifierSelected=Kennung ist nicht angegeben. -noQueueSelected=Name der Warteschlange ist nicht angegeben. -noConditionSelected=Zustand ist nicht angegeben. -noIntervalSelected=Intervall ist nicht angegeben. -noContextSelected=Kontext ist nicht angegeben. -noBoxNumberSelected=Feld Name ist nicht angegeben. -noProjectSelected=Teilprojekt ist nicht angegeben. -noFileSelected=Dateiname nicht angegeben ist. -numberOrInvalidOrTimeout=Nummer einfügen, i oder t (Leerzeichen überprüfen). -numberOrAll=Nummer einfügen oder -. -numberOrInvalidOrDefault=Legen Sie x, i oder -. -trueOrFalse=Legen Sie Wahr oder Falsch. -noGoalSelected=Ziel ist es, nicht angegeben. -noListSelected=Liste ist nicht angegeben. -musthave=Müssen -outgoingedge=Ausgehende Kante. -incomingedge=Eingehende Kante. -mailbox=Mailbox -intKey=Unterbrechungstaste -speed=Geschwindigkeit -wrongMinDigit=Min. Ziffer muss größer als 0 sein -wrongMaxDigit=Max. Zahl ist größer als 0 sein -wrongHiddenDigitsnum=Versteckte Ziffern muss größer als oder gleich 0 sein -hiddendigitsnum=Versteckte Ziffern -hiddendigitspos=Versteckte Ziffern Position -getsecretdigits=GetSecretDigits -beep=Signalton -description=Beschreibung -recordingFormat=Format -bcc=Bcc -invalidTimeout=Ungültiger Wert für die Zeitüberschreitung -invalidRetry=Ungültige Wiederholungswert -invalidSpeed=Ungültiger Wert der Drehzahl -missingQuery=Die Abfragezeichenfolge fehlt -invalidPriority=Ungültiger Wert für die Priorität -invalidDelay=Ungültige Verzögerungszeit -noAttachmentSelected=Kein Anschluss aktiviert -sendFax=SendFax -attachment_name=Ausgewählte Anlage -choose_attachment=Anlage wählen -help_choose_attachment=Format: PDF-, TIFF- oder tif -help_delay=Zeit in Minuten an, zu warten, bevor der Kontakt anrufen -noFirstNameSelected=Der Vorname ist nicht angegeben -noPhoneSelected=Telefon ist nicht angegeben -editFile=Bearbeiten von XML- -priority=Priorität -numberOrLettersOrAll=Zahlen, Buchstaben oder -. -asr=ASR +zoomOut=Verkleinern \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_es.txt b/public/assets/plugins/square/resources/grapheditor_es.txt index 51750fe..dab4d6d 100644 --- a/public/assets/plugins/square/resources/grapheditor_es.txt +++ b/public/assets/plugins/square/resources/grapheditor_es.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Los nodos ya conectado -cancel=Cancelar -close=Cerrar -collapse-expand=Contraer/Expandir -containsValidationErrors=Contiene errores de validación -done=Hecho -doubleClickOrientation=Para cambiar la orientación de Doubleclick -error=Error -ok=OK -updatingDocument=Actualización del documento. Por favor, espere... -updatingSelection=Actualizar la selección. Por favor, espere... about=Acerca de +account_id=Cuenta actualSize=Tamaño real add=Agregar addLayer=Añadir capa @@ -24,14 +7,25 @@ addProperty=Agregar propiedad addToExistingDrawing=Agregar al dibujo existente addWaypoint=Agregar punto de referencia advanced=Advanced +agent=Agent +agent_management=Agent Management +agi=AGI align=Alinear alignment=Alineación allChangesLost=Todos los cambios se perderán! +alreadyConnected=Los nodos ya conectado angle=Ángulo +announceoverride=Anunciar anular +answer=Respuesta +application=Aplicación apply=Aplicar +args=Argumentos arrange=Organizar arrow=Flecha arrows=Flechas +asr=ASR +asr=ASR +attachment_name=Adjunto seleccionado automatic=Automático autosave=Autoguardar autosize=Autosize @@ -39,54 +33,86 @@ background=Antecedentes backgroundColor=Color de fondo backgroundImage=Imagen de fondo basic=Basic +bcc=Bcc +beep=Bip block=Bloquear blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=Color del borde +borderWidth=Borderwidth bottom=Parte inferior bottomAlign=Alinear en la parte inferior bottomLeft=Parte inferior izquierda bottomRight=Parte inferior derecha +boxnumber=Número de caja bulletedList=Lista con viñetas +call_management=Gestión de llamadas +callback=Callback +callflow=Callflow +callid=CallID +cancel=Cancelar cannotOpenFile=No se puede abrir el archivo +cc=Cc center=Centro change=Cambiar changeOrientation=Cambiar la orientación +choose_attachment=Seleccione adjunto circle=Círculo classic=Classic clearDefaultStyle=Claro Estilo predeterminado clearWaypoints=Borrar Waypoints clipart=Clipart +close=Cerrar +collapse-expand=Contraer/Expandir collapse=Colapso collapseExpand=Contraer/Expandir collapsible=Desmontable comic=Comic +command=Mando +condition=Condición connect=Conectar connection=Conexión -connectionPoints=Los puntos de conexión connectionArrows=Flechas de conexión +connectionPoints=Los puntos de conexión constrainProportions=Restringir las proporciones +containsValidationErrors=Contiene errores de validación +context=Contexto copy=Copiar copyConnect=Copiar en Conectar create=Crear curved=Curvado custom=Custom +custom_app=Aplicación personalizada cut=Cortar dashed=Dashed +data1=Datos1 +data2=Datos2 +data3=Datos3 +data4=Datos 4 +data5=Data5 +database=Base de datos +database_id=Base de datos decreaseIndent=Disminuir sangría default=Default +delay=Retraso delete=Eliminar deleteColumn=Eliminar columna deleteRow=Eliminar fila +description=Descripción +description_start=Descripción Inicio diagram=Diagrama +dial=Marcación interna diamond=Diamond diamondThin=Diamond (delgado) +digit=Dígito máx. +digits=Dígitos direction=Dirección distribute=Distribuir divider=El divisor documentProperties=Propiedades del documento +done=Hecho dotted=Salpicada +doubleClickOrientation=Para cambiar la orientación de Doubleclick drawing=Dibujo{1} drawingEmpty=El dibujo está vacía. drawingTooLarge=El dibujo es demasiado grande @@ -96,24 +122,34 @@ east=Oriente edit=Editar editData=Modificar datos editDiagram=Editar el diagrama +editFile=Editar XML editImage=Editar imagen editLink=Edit Link editStyle=Editar estilo editTooltip=Editar descripción +end=Final enterGroup=Introducir grupo -enterValue=Introduzca el valor enterName=Introduzca el nombre enterPropertyName=Introduzca el nombre de la propiedad +enterValue=Introduzca el valor entityRelation=Relación de entidades +entry=Entrada +error=Error +escape=Dígitos de escape +escape_digits=Dígitos de escape exitGroup=Grupo de salida expand=Ampliar export=Exportar +ext_dial=Marcación externa +extension=Extensión extras=Extras file=Archivo fileNotFound=Archivo no encontrado +file_id=Archivo filename=Filename fill=Llenar fillColor=Color de relleno +finally=Finalmente fitPage=Una página fitPageWidth=El ancho de la página fitTwoPages=Dos páginas @@ -122,118 +158,226 @@ flip=Flip flipH=Voltear horizontalmente flipV=Flip vertical font=Font -fontFamily=Familia de fuente fontColor=Color de fuente +fontFamily=Familia de fuente fontSize=El tamaño de la fuente format=Formato +formatGif=GIF +formatJpg=JPEG formatPanel=Panel de formato formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Formato formattedText=Texto con formato +frequency=Frecuencia general=General +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Cristal global=Global +goal=Objetivo +goalname=Nombre de meta +google_tts_language=Idioma +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Gradiente gradientColor=Color +grammar=Gramática grid=Cuadrícula gridSize=El tamaño de la cuadrícula group=Grupo guides=Guías +hangup=Colgar heading=La partida height=Altura help=Ayuda +help_choose_attachment=Formato: PDF, TIFF o TIF +help_delay=Tiempo, en minutos, que esperar antes de llamar a este contacto +hidden=Oculto +hiddendigitsnum=Número de dígitos oculto +hiddendigitspos=Posición de dígitos oculto hide=Ocultar hideIt=Ocultar {1} -hidden=Oculto home=Home horizontal=Horizontal horizontalFlow=Flujo horizontal horizontalTree=Árbol horizontal html=HTML +identifier=Identificador image=Imagen images=Imágenes import=Importar +incomingedge=Borde de entrada. increaseIndent=Aumentar sangría insert=Insertar -insertColumnBefore=Insertar columna a la izquierda insertColumnAfter=Insertar columna a la derecha +insertColumnBefore=Insertar columna a la izquierda insertHorizontalRule=Insertar la regla horizontal insertImage=Insertar imagen insertLink=Insertar enlace -insertRowBefore=Insertar fila arriba insertRowAfter=Insertar fila debajo +insertRowBefore=Insertar fila arriba +intKey=Tecla de interrupción +integrationServer=Integration Server +interval=Intervalo de tiempo +interval_id=Intervalo +invalidDelay=Valor de retardo no válido invalidName=Nombre no válido. invalidOrMissingFile=Archivo no válido o inexistente +invalidPriority=El valor de la prioridad no válido +invalidRetry=Valor retry no válido +invalidSpeed=El valor de velocidad no válida +invalidTimeout=Valor de tiempo de espera no válido isometric=Isométrica +ispeech_asr_language=Idioma +ispeech_tts_language=Idioma +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Cursiva -layers=Capas +key=Key +label=Etiqueta landscape=Paisaje laneColor=Lanecolor +language=Idioma +layers=Capas layout=Diseño left=Izquierda leftAlign=Alinear a la izquierda +leftOperand=Operando izquierdo leftToRight=De izquierda a derecha line=Línea -link=Link lineend=Final de línea lineheight=Altura de línea linestart=Principio de línea linewidth=Linewidth +link=Link +list=Lista +list_id=Lista loading=Cargando lockUnlock=Bloquear/Desbloquear +login=Login +logout=Logout +macro=Macro +mailbox=Buzón manual=Manual +math=Matemáticas +maxdigit=Máximo de dígitos +maxspeech=Discurso máx. +menu=Menu middle=Oriente +mindigit=Dígitos mín. misc=Misc +missingQuery=Falta la cadena de consulta +model=Modelo more=Más moreResults=Más resultados move=Mover moveSelectionTo=Mover la selección a {1} +musthave=Debe tener +name=Nombre navigation=La navegación new=Nuevo +noAccountSelected=Cuenta no está especificado. +noApplicationSelected=La aplicación no está especificado +noAttachmentSelected=Sin accesorio seleccionado +noAudioSelected=Archivo de Audio no está especificado. +noBoxNumberSelected=No se ha especificado el nombre de la caja. noColor=No hay color +noCommandSelected=No se especificó el comando. +noConditionSelected=El Estado no está especificado. +noContextSelected=Contexto no está especificado. +noDatabaseSelected=Base de datos no está especificado. +noDigitsSelected=Dígitos no especificado. +noExtensionSelected=Extensión no está especificado. +noFileSelected=No se especificó el nombre de archivo. noFiles=No hay archivos +noFindBySelected=Find by is not specified. +noFirstNameSelected=No se ha especificado el nombre de la primera +noGoalSelected=Objetivo no está especificado. +noIdentifierSelected=Identificador no está especificado. +noIntervalSelected=No se especifica intervalo. +noKeySelected=Clave no está especificada. +noListSelected=Lista no está especificado. noMoreResults=No hay más resultados -none=Ninguno +noNumberSelected=El número no es especificado. +noOperandSelected=Operando izquierdo no está especificado. +noPhoneSelected=El teléfono no está especificado +noProjectSelected=Subproyecto no está especificado. +noQueueSelected=No se ha especificado el nombre de la cola. +noRecipientSelected=Destinatario no está especificado. noResultsFor=No hay resultados para '{1}'. +noRightOperandSelected=Operando derecho no está especificado. +noTextSelected=El texto no está especificado. +noTrunkSelected=La cajuela no está especificado. +noVariableSelected=Variable no está especificado. +none=Ninguno +noop=NoOp normal=Normal north=Norte +number=Número +numberOrAll=Insertar número o -. +numberOrInvalidOrDefault=Insertar x, i o -. +numberOrInvalidOrTimeout=Insertar número, i o t (verifique los espacios en blanco). +numberOrLettersOrAll=Insertar números, letras o -. numberedList=Lista numerada +odbc_id=Conexión ODBC. +ok=OK opacity=Opacidad open=Abrir openArrow=Flecha abierta openFile=Abrir el archivo -openLink=Abrir enlace -openSupported=Formato compatible .XML archivos guardados desde este software openInNewWindow=Abrir en nueva ventana openInThisWindow=En esta ventana abierta +openLink=Abrir enlace +openSupported=Formato compatible .XML archivos guardados desde este software +operation=Funcionamiento options=Opciones +opts=Opciones organic=Organic orthogonal=Ortogonal +outgoingedge=Borde saliente. outline=Presentacion +output=Salida oval=Óvalo -pages=Páginas -pageView=Vista de página pageScale=Escala de página pageSetup=Configuración de página +pageView=Vista de página +pages=Páginas panTooltip=Espacio Arrastrar para desplazarse paperSize=Tamaño de papel paste=Pegar pasteHere=Pegue aquí pattern=Patrón +pause=Pause perimeter=Perímetro +phone=Teléfono placeholders=Marcadores +playback=La reproducción plusTooltip=Haga clic en Conectar y el clon (ctrl + clic para clonar, Shift clic para conectarse). Arrastre para conectar (ctrl arrastrar para clonar). portrait=Retrato position=Posición posterPrint=Impresión de Póster preview=Vista previa print=Imprimir +priority=Prioridad +project_id=Proyecto +publish=Pubblica +query=Consulta +queue=Cola +queue_event=Evento +queue_id=Cola +queue_variable=Cola de la Variable +queuelog=QueueLog +queuename=El nombre de cola radialTree=Árbol radial +record=Grabar +recording=Grabación +recordingFormat=Formato redo=Rehacer removeFormat=Borrar formato removeFromGroup=Eliminar del grupo @@ -242,12 +386,16 @@ removeWaypoint=Quitar el punto de referencia rename=Renombrar renameIt=Cambiar el nombre {1} replace=Sustituir -replaceIt={1} ya existe. ¿Desea reemplazarlo? replaceExistingDrawing=Sustituir el dibujo existente +replaceIt={1} ya existe. ¿Desea reemplazarlo? reset=Restablecer resetView=Restablecer vista +response=Tiempo de espera de respuesta +result=Resultado +retry=Reintentar right=Derecho rightAlign=Alinear a la derecha +rightOperand=Operando derecho rightToLeft=Derecha a izquierda rotate=Gire rotateTooltip=Haga clic y arrastre para girar, haga clic en Girar 90 grados @@ -256,6 +404,9 @@ rounded=Redondeado save=Guardar saveAs=Guardar como saved=Guardado +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Barras de desplazamiento search=Buscar searchShapes=Buscar formas @@ -264,6 +415,10 @@ selectEdges=Seleccione bordes selectFont=Seleccione una fuente selectNone=Seleccione Ninguno selectVertices=Seleccionar vértices +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=Establecer setAsDefaultStyle=Establecer como estilo predeterminado shadow=Sombra shape=Forma @@ -271,21 +426,34 @@ sharp=Sharp sidebarTooltip=Haga clic para ampliar. Arrastre y suelte las formas en el diagrama. Pulse Mayús para cambiar la selección. Alt + clic para insertar y conectar. simple=Simple simpleArrow=Flecha simple +sip_id=SIP size=Tamaño +sms_text=Texto solid=Solid sourceSpacing=Espaciado de origen south=Sur spacing=Espaciado +speed=Velocidad +start=Inicio +stats=Stats straight=Recto strokeColor=Color de línea style=Style +subject=Asunto +subproject=Subproyecto subscript=Subíndice +successOrFailure=Insert success or failure. superscript=Superíndice +system=Sistema table=Tabla targetSpacing=Espaciado de destino +template_id=Plantilla text=Texto textAlignment=Alineación de texto textOpacity=Opacidad del texto +threshold=Umbral +timeout=Tiempo de espera (segundos) +to=A toBack=Para volver toFront=Al frente tooltips=Sugerencias @@ -294,206 +462,38 @@ topAlign=Alinear en la parte superior topLeft=Arriba a la izquierda topRight=Arriba a la derecha transparent=Transparente +trueOrFalse=Inserte true o false. +trunk=Tronco +trunk_name=Tronco +tts=TTS turn=Gire uml=UML underline=Underline undo=Deshacer ungroup=Desagrupar -url=URL +unpause=End pause untitledLayer=Untitled capa +updatingDocument=Actualización del documento. Por favor, espere... +updatingSelection=Actualizar la selección. Por favor, espere... +url=URL +value=Valor +variable=Variable +variable_id=Variable +variable_value=Valor variable vertical=Vertical verticalFlow=Flujo vertical verticalTree=Árbol vertical view=Ver +voicemail=VoiceMail +vswitch=Contacto waypoints=Waypoints west=West width=Ancho wordWrap=Word Wrap writingDirection=La dirección de escritura +wrongHiddenDigitsnum=Número de dígitos oculto tiene que ser mayor o igual a 0. +wrongMaxDigit=Dígito Max tiene que ser mayor que 0 +wrongMinDigit=Min dígito tiene que ser mayor que 0 zoom=Zoom zoomIn=Acercar -zoomOut=Zoom Out -label=Etiqueta -timeout=Tiempo de espera (segundos) -response=Tiempo de espera de respuesta -digit=Dígito máx. -escape=Dígitos de escape -retry=Reintentar -name=Nombre -value=Valor -entry=Entrada -start=Inicio -finally=Finalmente -end=Final -variable=Variable -set=Establecer -operation=Funcionamiento -math=Matemáticas -result=Resultado -call_management=Gestión de llamadas -answer=Respuesta -hangup=Colgar -dial=Marcación interna -ext_dial=Marcación externa -phone=Teléfono -trunk=Tronco -identifier=Identificador -queue=Cola -voicemail=VoiceMail -boxnumber=Número de caja -playback=La reproducción -menu=Menu -saydigits=SayDigits -digits=Dígitos -saynumber=SayNumber -number=Número -sayphonetic=SayPhonetic -escape_digits=Dígitos de escape -tts=TTS -ispeechtts=ISpeechTTS -key=Key -getdigits=GetDigits -mindigit=Dígitos mín. -maxdigit=Máximo de dígitos -custom_app=Aplicación personalizada -language=Idioma -frequency=Frecuencia -integrationServer=Integration Server -database=Base de datos -query=Consulta -asr=ASR -sendSMS=SendSMS -account_id=Cuenta -template_id=Plantilla -to=A -sms_text=Texto -sendMail=SendMail -subject=Asunto -cc=Cc -threshold=Umbral -maxspeech=Discurso máx. -grammar=Gramática -ispeechasr=ISpeechASR -model=Modelo -noop=NoOp -output=Salida -system=Sistema -command=Mando -application=Aplicación -agi=AGI -args=Argumentos -subproject=Subproyecto -goalname=Nombre de meta -callflow=Callflow -gotoc=Goto -context=Contexto -extension=Extensión -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Intervalo de tiempo -leftOperand=Operando izquierdo -condition=Condición -rightOperand=Operando derecho -vswitch=Contacto -recording=Grabación -record=Grabar -queuename=El nombre de cola -announceoverride=Anunciar anular -callid=CallID -agent=Agent -queue_event=Evento -data1=Datos1 -data2=Datos2 -data3=Datos3 -data4=Datos 4 -data5=Data5 -macro=Macro -stats=Stats -queuelog=QueueLog -goal=Objetivo -callback=Callback -list=Lista -delay=Retraso -list_id=Lista -opts=Opciones -queue_id=Cola -file_id=Archivo -variable_id=Variable -gosub=Gosub -project_id=Proyecto -sip_id=SIP -trunk_name=Tronco -variable_value=Valor variable -database_id=Base de datos -interval_id=Intervalo -description_start=Descripción Inicio -publish=Pubblica -ispeech_asr_language=Idioma -ispeech_tts_language=Idioma -google_tts_language=Idioma -queue_variable=Cola de la Variable -odbc_id=Conexión ODBC. -noVariableSelected=Variable no está especificado. -noTrunkSelected=La cajuela no está especificado. -noAudioSelected=Archivo de Audio no está especificado. -noOperandSelected=Operando izquierdo no está especificado. -noDatabaseSelected=Base de datos no está especificado. -noExtensionSelected=Extensión no está especificado. -noCommandSelected=No se especificó el comando. -noApplicationSelected=La aplicación no está especificado -noRightOperandSelected=Operando derecho no está especificado. -noDigitsSelected=Dígitos no especificado. -noNumberSelected=El número no es especificado. -noRecipientSelected=Destinatario no está especificado. -noTextSelected=El texto no está especificado. -noAccountSelected=Cuenta no está especificado. -noKeySelected=Clave no está especificada. -noIdentifierSelected=Identificador no está especificado. -noQueueSelected=No se ha especificado el nombre de la cola. -noConditionSelected=El Estado no está especificado. -noIntervalSelected=No se especifica intervalo. -noContextSelected=Contexto no está especificado. -noBoxNumberSelected=No se ha especificado el nombre de la caja. -noProjectSelected=Subproyecto no está especificado. -noFileSelected=No se especificó el nombre de archivo. -numberOrInvalidOrTimeout=Insertar número, i o t (verifique los espacios en blanco). -numberOrAll=Insertar número o -. -numberOrInvalidOrDefault=Insertar x, i o -. -trueOrFalse=Inserte true o false. -noGoalSelected=Objetivo no está especificado. -noListSelected=Lista no está especificado. -musthave=Debe tener -outgoingedge=Borde saliente. -incomingedge=Borde de entrada. -mailbox=Buzón -intKey=Tecla de interrupción -speed=Velocidad -wrongMinDigit=Min dígito tiene que ser mayor que 0 -wrongMaxDigit=Dígito Max tiene que ser mayor que 0 -wrongHiddenDigitsnum=Número de dígitos oculto tiene que ser mayor o igual a 0. -hiddendigitsnum=Número de dígitos oculto -hiddendigitspos=Posición de dígitos oculto -getsecretdigits=GetSecretDigits -beep=Bip -description=Descripción -recordingFormat=Formato -bcc=Bcc -invalidTimeout=Valor de tiempo de espera no válido -invalidRetry=Valor retry no válido -invalidSpeed=El valor de velocidad no válida -missingQuery=Falta la cadena de consulta -invalidPriority=El valor de la prioridad no válido -invalidDelay=Valor de retardo no válido -noAttachmentSelected=Sin accesorio seleccionado -sendFax=SendFax -attachment_name=Adjunto seleccionado -choose_attachment=Seleccione adjunto -help_choose_attachment=Formato: PDF, TIFF o TIF -help_delay=Tiempo, en minutos, que esperar antes de llamar a este contacto -noFirstNameSelected=No se ha especificado el nombre de la primera -noPhoneSelected=El teléfono no está especificado -editFile=Editar XML -priority=Prioridad -numberOrLettersOrAll=Insertar números, letras o -. -asr=ASR +zoomOut=Zoom Out \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_fa.txt b/public/assets/plugins/square/resources/grapheditor_fa.txt index 0de52c3..bef8afd 100644 --- a/public/assets/plugins/square/resources/grapheditor_fa.txt +++ b/public/assets/plugins/square/resources/grapheditor_fa.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=متورم شده متصل شد -cancel=لغو -close=بستن -collapse-expand=فروپاشي/گسترش -containsValidationErrors=تأیید اعتبار حاوی خطا -done=انجام شد -doubleClickOrientation=برای تغییر جهت Doubleclick -error=خطا -ok=OK -updatingDocument=به روزآوری سند. لطفاً صبر کنید... -updatingSelection=به روزآوری انتخاب شد. لطفاً صبر کنید... about=در حدود +account_id=اشتراک actualSize=در اندازه واقعی add=افزودن addLayer=افزودن لایه ای @@ -24,14 +7,25 @@ addProperty=افزودن مال addToExistingDrawing=به تالار های موجود اضافه کنید addWaypoint=نقطه نشانه advanced=پيش رفت. +agent=عامل +agent_management=Agent Management +agi=AGI align=مسئولين مملکتي alignment=ترازبندی allChangesLost=تمام تغییرات را از دست داده باشد! +alreadyConnected=متورم شده متصل شد angle=زاویه گردش +announceoverride=باز دارنده اعلام +answer=پاسخ +application=برنامه کاربردی apply=اجرا می شود +args=دلايل arrange=ترتیب arrow=فلش arrows=تير +asr=ASR +asr=عصر (عج +attachment_name=ضمیمه انتخاب می شود automatic=خودکار autosave=Autosave autosize=Autosize @@ -39,54 +33,86 @@ background=پس زمینه backgroundColor=رنگ زمینه backgroundImage=تصویر پس زمینه basic=پايه +bcc=Bcc +beep=بیپ block=بلوک blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=مرز رنگ +borderWidth=Borderwidth bottom=پایین bottomAlign=مسئولين مملکتي پایین bottomLeft=پایین چپ bottomRight=پایین سمت راست +boxnumber=تعداد جعبه bulletedList=لیست Bulleted +call_management=مدیریت تلفن +callback=Callback +callflow=Callflow +callid=CallID +cancel=لغو cannotOpenFile=قادر به باز کردن فایل +cc=مذكر دچار تغيير center=مرکز change=تغییر changeOrientation=جهت تغییر +choose_attachment=ضمیمه را انتخاب کنید circle=دايره classic=کلاسیک clearDefaultStyle=سبک پیش فرض روشن است clearWaypoints=پاک کردن نقاط نشانه clipart=Clipart +close=بستن +collapse-expand=فروپاشي/گسترش collapse=فروپاشي collapseExpand=فروپاشي/گسترش collapsible=تاشو comic=کمدی +command=فرمان +condition=شرط connect=اتصال connection=اتصال -connectionPoints=نقاط اتصال connectionArrows=تيرهاي اتصال +connectionPoints=نقاط اتصال constrainProportions=ابعاد گذاريد +containsValidationErrors=تأیید اعتبار حاوی خطا +context=متن copy=کپی copyConnect=کپی بر روی اتصال create=ایجاد curved=منحني custom=عرف +custom_app=عرف، کاربرد cut=برش dashed=رشتة +data1=داده ها1 +data2=داده ها2 +data3=داده ها3 +data4=داده ها4 +data5=داده ها5 +database=پایگاه داده +database_id=پایگاه داده decreaseIndent=Indent كاهش يابد . default=پیش فرض +delay=تاخير delete=حذف deleteColumn=حذف ستون deleteRow=حذف ردیف +description=شرح +description_start=شرح شروع diagram=تصاویر +dial=عناوين | پل ارتباطی | پيوندها | محصولات داخلی diamond=الماس diamondThin=الماس (لاغر) +digit=حداکثر رقمی +digits=عدد direction=جهت distribute=توزیع divider=هنگام ارائه یك خودروی جدید documentProperties=مشخصات سند +done=انجام شد dotted=همه جا +doubleClickOrientation=برای تغییر جهت Doubleclick drawing=طراحي{1} drawingEmpty=تالار خالی است. drawingTooLarge=تالار بزرگ است. @@ -96,24 +122,34 @@ east=شرق edit=ویرایش editData=ویرایش داده ها editDiagram=ویرایش تصاویر +editFile=بارگیری فایل XML ویرایش editImage=ویرایش تصویر editLink=ویرایش لینک editStyle=ویرایش سبک editTooltip=ویرایش Tooltip +end=پایان enterGroup=گروه را وارد کنید -enterValue=مقدار را وارد کنید enterName=اسمتان را وارد کنید enterPropertyName=نام ملك را وارد کنید +enterValue=مقدار را وارد کنید entityRelation=رابطه شخصیت +entry=فرم +error=خطا +escape=فرار از عدد +escape_digits=فرار از عدد exitGroup=گروه خروج expand=گسترش export=صادرات +ext_dial=عناوين | پل ارتباطی | پيوندها | محصولات خارجی +extension=پسوند extras=سایر موارد file=فایل fileNotFound=فایل منبع یافت نشد. +file_id=فایل filename=Filename fill=پر كردن fillColor=پر رنگ +finally=سرانجام fitPage=یک صفحه fitPageWidth=عرض صفحه fitTwoPages=دو صفحه @@ -122,118 +158,226 @@ flip=میکس flipH=میکس افقی flipV=میکس عمودی font=فونت -fontFamily=خانواده فونت fontColor=رنگ فونت +fontFamily=خانواده فونت fontSize=اندازه فونت format=قالب بندی +formatGif=GIF +formatJpg=قالب بندی JPEG باشد formatPanel=قالب بندی صفحه نشانگرها formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=قالب بندی JPEG باشد formatSvg=SVG formatXml=بارگیری فایل XML formatted=باید فرمت formattedText=باید فرمت متنی +frequency=فرکانس general=سردار +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=شيشه global=جهانی +goal=هدف +goalname=اسم گل +google_tts_language=زبان +gosub=Gosub +gotoc=هيزن +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=شیب gradientColor=رنگ +grammar=ابتدایی grid=شبکه بندی gridSize=ابعاد شبکه group=گروه guides=گروهی +hangup=Hangup heading=خط مسیر فعلی height=ارتفاع help=کمک کند +help_choose_attachment=فرمت: pdf یا tiff tif, +help_delay=در آن زمان، تا چند دقیقه صبر کنید تا قبل از فراخوانی در تماس با بازگشت +hidden=پنهان +hiddendigitsnum=عدد شماره پنهان +hiddendigitspos=موقعیت پنهان عدد hide=مخفی کردن hideIt=مخفی کردن {1} -hidden=پنهان home=خانه horizontal=افقی horizontalFlow=جریان افقی horizontalTree=درخت افقی html=HTML +identifier=شناسه image=تصویر images=1522 import=واردات +incomingedge=لبه تصحیح می کند. increaseIndent=افزایش Indent insert=خطی -insertColumnBefore=ستون سمت چپ را وارد کنید insertColumnAfter=ستون سمت راست را وارد کنید +insertColumnBefore=ستون سمت چپ را وارد کنید insertHorizontalRule=قانون افقی قرار دهید insertImage=تصویر را وارد کنید insertLink=لینک را وارد کنید -insertRowBefore=ردیف بالا را وارد کنید insertRowAfter=ردیف زیر را وارد کنید +insertRowBefore=ردیف بالا را وارد کنید +intKey=کلید قطع +integrationServer=ادغام سرور +interval=فاصله زماني +interval_id=فاصله +invalidDelay=تاخير مقدار نامعتبر است invalidName=نام نامعتبر است invalidOrMissingFile=یا یک فایل گم شده نامعتبر است +invalidPriority=اولويت مقدار نامعتبر است +invalidRetry=دوباره سعی کنید مقدار نامعتبر است +invalidSpeed=سرعت مقدار نامعتبر است +invalidTimeout=زمان وقفه بر حسب مقدار نامعتبر است isometric=Isometric +ispeech_asr_language=زبان +ispeech_tts_language=زبان +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Italic -layers=لايه +key=استاديار دانشگاه علوم پزشكي گرگان +label=برچسب ها landscape=چشم انداز laneColor=Lanecolor +language=زبان +layers=لايه layout=صفحه آرایی left=سمت چپ leftAlign=مسئولين مملکتي چپ +leftOperand=Operand چپ leftToRight=چپ به راست line=خط -link=لینک lineend=خط پایان lineheight=ارتفاع خط linestart=راه اندازی خط linewidth=Linewidth +link=لینک +list=فهرست +list_id=فهرست loading=بارگیری lockUnlock=قفل/باز کردن قفل +login=Login +logout=Logout +macro=ماکرو +mailbox=Mailbox manual=دفترچه راهنما +math=محاسبات +maxdigit=حداکثر عدد +maxspeech=حداکثر گفتار +menu=منو middle=در وسط +mindigit=حداقل عدد misc=Misc +missingQuery=پرسش زهى گم شده است. +model=مدل more=بیشتر moreResults=نتایج بیشتر move=حرکت کنید moveSelectionTo=انتخاب برای حرکت {1} +musthave=بايد داشته باشد. +name=نام navigation=سیستم كمكی ناوبری new=تازه +noAccountSelected=اشتراک تعیین شده است. +noApplicationSelected=برنامه مشخص نشده است. +noAttachmentSelected=نه انتخاب شده ضمیمه +noAudioSelected=فایل صوتی مشخص نشده است. +noBoxNumberSelected=نام جعبه مشخص نشده است. noColor=نه رنگ +noCommandSelected=فرماندهي مشخص نشده است. +noConditionSelected=شرط تعیین شده است. +noContextSelected=متن مشخص نشده است. +noDatabaseSelected=پایگاه داده تعیین شده است. +noDigitsSelected=رقم تعیین شده است. +noExtensionSelected=پسوند مشخص نشده است. +noFileSelected=نام فایل مشخص شده است. noFiles=نه فایل ها +noFindBySelected=Find by is not specified. +noFirstNameSelected=اسم اول مشخص نيست. +noGoalSelected=هدف تعیین شده است. +noIdentifierSelected=شناسه مشخص نشده است. +noIntervalSelected=فاصله تعیین شده است. +noKeySelected=کلید تعیین شده است. +noListSelected=لیست مشخص نشده است. noMoreResults=نه بیشتر نتایج -none=هیچ +noNumberSelected=شماره تعیین شده است. +noOperandSelected=سمت چپ operand مشخص نشده است. +noPhoneSelected=تلفن همراه مشخص نشده است. +noProjectSelected=SubProject مشخص نشده است. +noQueueSelected=صف اسم است نه تعیین شده است. +noRecipientSelected=دریافت کننده مشخص نشده است. noResultsFor=نه برای نتایج '{۱}. +noRightOperandSelected=درست است که تعیین شده است. operand نيست. +noTextSelected=متن مشخص نشده است. +noTrunkSelected=ساقة آن مشخص نشده است. +noVariableSelected=متغیر تعیین شده است. +none=هیچ +noop=NoOp normal=طبیعی است north=شمال +number=تعداد +numberOrAll=یا - شماره را وارد کنید. +numberOrInvalidOrDefault=X قرار دهید، یا - است. +numberOrInvalidOrTimeout=شماره را وارد کنید، یا تأیید کنید که فاصله های سفید (T). +numberOrLettersOrAll=وارد کردن اعداد، حروف و يا - است. numberedList=فهرست شماره +odbc_id=اتصال ODBC +ok=OK opacity=Opacity open=باز openArrow=فلش را باز کنید openFile=فایل را باز کنید -openLink=این لینک را باز کنید -openSupported=خب معلومه بارگیری فایل XML پشتیبانی فرمت ذخیره فایل ها از این نرم افزار openInNewWindow=در پنجره جدید باز کنید openInThisWindow=در این پنجره را باز کنید +openLink=این لینک را باز کنید +openSupported=خب معلومه بارگیری فایل XML پشتیبانی فرمت ذخیره فایل ها از این نرم افزار +operation=عملیات options=گزینه ها +opts=گزینه ها organic=مواد آلي orthogonal=Orthogonal +outgoingedge=لبه بركنار شده است. outline=نمای کلی +output=خروجی oval=بیضی -pages=صفحه -pageView=مشاهده صفحه pageScale=صفحه ترازو pageSetup=تنظیم صفحه +pageView=مشاهده صفحه +pages=صفحه panTooltip=فضا برای حرکت به کشیدن paperSize=اندازه کاغذ paste=الصاق pasteHere=الصاق اینجا pattern=الگو +pause=Pause perimeter=پیرامون +phone=تلفن همراه placeholders=علامت ها +playback=کیفیت پخش plusTooltip=کلیک کنید تا اتصال و کپی (Ctrl کلیک کنید تا کپی، نوبت به اتصال را کلیک کنید). کشیدن کشیدن متصل کنید (Ctrl را کپی). portrait=تصوير position=موقعیت posterPrint=پوستر چاپ preview=پیش نمایش print=چاپ +priority=اولويت +project_id=پروژه +publish=Pubblica +query=پرس +queue=صف +queue_event=اين رويداد +queue_id=صف +queue_variable=از صف متغیر +queuelog=QueueLog +queuename=نام صف radialTree=درخت شعاعي +record=ثبت +recording=ضبط كننده +recordingFormat=قالب بندی redo=چنين شد کارها را دوباره انجام دهيد . removeFormat=پاک کردن فرمت کردن removeFromGroup=حذف از گروه @@ -242,12 +386,16 @@ removeWaypoint=حذف نقطه نشانه rename=کامپیوترها renameIt={۱} کامپیوترها replace=جایگزین کردن -replaceIt={1 } از قبل وجود دارد. آیا می خواهید جایگزین کنید؟ replaceExistingDrawing=تالار موجود را تعویض کنید +replaceIt={1 } از قبل وجود دارد. آیا می خواهید جایگزین کنید؟ reset=بازنشانی resetView=به نظر بازنشانی کنید +response=پایان زمان پاسخ +result=در نتيجه +retry=دوباره سعی کنید right=درست است rightAlign=مسئولين مملکتي راست +rightOperand=درست Operand rightToLeft=راست به چپ rotate=چرخش rotateTooltip=کشیدن را کلیک کرده و به چرخش و گردش را کلیک کنید تا به 90 درجه @@ -256,6 +404,9 @@ rounded=گرد save=ذخیره saveAs=ذخیره به عنوان saved=ذخیره شد +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Scrollbars search=جستجو searchShapes=جستجو دانی؟ @@ -264,6 +415,10 @@ selectEdges=لبه های انتخاب کنید selectFont=فونت را انتخاب کنید selectNone=هيچ كدام را انتخاب کنید selectVertices=Vertices را انتخاب کنید +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=تنظیم setAsDefaultStyle=تنظیم بعنوان پیش فرض سبک shadow=سايه shape=شکل دهی @@ -271,21 +426,34 @@ sharp=تیز است sidebarTooltip=کلیک کنید تا گسترش يابد. کشیدن و رها کردن به شکل نقشه. تعویض نوبت کار کلیک کنید تا انتخاب شود. Alt کلیک کنید و متصل شود. simple=ساده simpleArrow=فلش ساده +sip_id=نوشيدني size=اندازه +sms_text=متن solid=سفت sourceSpacing=فاصله منبع south=جنوب spacing=فاصله +speed=سرعت +start=شروع +stats=Stats straight=مستقیم strokeColor=رنگ خط style=سبک +subject=موضوع +subproject=SubProject subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=سیستم table=میز targetSpacing=هدف فاصله +template_id=الگوی text=متن textAlignment=متن ترازبندی textOpacity=متن Opacity +threshold=آستانه +timeout=پایان زمان (ثانیه) +to=به toBack=بازگشت به toFront=به جلو tooltips=شروع راهنمایی های ابزار انجام شد @@ -294,206 +462,38 @@ topAlign=مسئولين مملکتي بالا topLeft=بالا چپ topRight=بالا راست transparent=شفاف است +trueOrFalse=درست است یا غلط را وارد کنید. +trunk=تنه +trunk_name=تنه +tts=TTS turn=گردش uml=UML underline=عناوين فونت فارسی مسير فعلی undo=لغو عملکرد ungroup=Ungroup -url=آدرس کامل +unpause=End pause untitledLayer=بدون عنوان لایه ای +updatingDocument=به روزآوری سند. لطفاً صبر کنید... +updatingSelection=به روزآوری انتخاب شد. لطفاً صبر کنید... +url=آدرس کامل +value=مقدار +variable=متغیر +variable_id=متغیر +variable_value=مقدار متغیر vertical=خروج عمودی verticalFlow=جریان عمودی verticalTree=درخت عمودی view=مشاهده +voicemail=پست صوتی +vswitch=سوئیچ waypoints=نقاط نشانه west=در غرب width=عرض wordWrap=كلمه پيچيدن writingDirection=جهت نوشتن +wrongHiddenDigitsnum=مخفی شده است که به تعداد عدد بزرگتر یا مساوی با 0 +wrongMaxDigit=حداکثر رقمی است که به بزرگتر از 0 باشد. +wrongMinDigit=حداقل رقمی که بزرگتر از 0 باشد. zoom=بزرگنمایی zoomIn=در زوم -zoomOut=کوچکنمایی -label=برچسب ها -timeout=پایان زمان (ثانیه) -response=پایان زمان پاسخ -digit=حداکثر رقمی -escape=فرار از عدد -retry=دوباره سعی کنید -name=نام -value=مقدار -entry=فرم -start=شروع -finally=سرانجام -end=پایان -variable=متغیر -set=تنظیم -operation=عملیات -math=محاسبات -result=در نتيجه -call_management=مدیریت تلفن -answer=پاسخ -hangup=Hangup -dial=عناوين | پل ارتباطی | پيوندها | محصولات داخلی -ext_dial=عناوين | پل ارتباطی | پيوندها | محصولات خارجی -phone=تلفن همراه -trunk=تنه -identifier=شناسه -queue=صف -voicemail=پست صوتی -boxnumber=تعداد جعبه -playback=کیفیت پخش -menu=منو -saydigits=SayDigits -digits=عدد -saynumber=SayNumber -number=تعداد -sayphonetic=SayPhonetic -escape_digits=فرار از عدد -tts=TTS -ispeechtts=ISpeechTTS -key=استاديار دانشگاه علوم پزشكي گرگان -getdigits=GetDigits -mindigit=حداقل عدد -maxdigit=حداکثر عدد -custom_app=عرف، کاربرد -language=زبان -frequency=فرکانس -integrationServer=ادغام سرور -database=پایگاه داده -query=پرس -asr=عصر (عج -sendSMS=SendSMS -account_id=اشتراک -template_id=الگوی -to=به -sms_text=متن -sendMail=SendMail -subject=موضوع -cc=مذكر دچار تغيير -threshold=آستانه -maxspeech=حداکثر گفتار -grammar=ابتدایی -ispeechasr=ISpeechASR -model=مدل -noop=NoOp -output=خروجی -system=سیستم -command=فرمان -application=برنامه کاربردی -agi=AGI -args=دلايل -subproject=SubProject -goalname=اسم گل -callflow=Callflow -gotoc=هيزن -context=متن -extension=پسوند -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=فاصله زماني -leftOperand=Operand چپ -condition=شرط -rightOperand=درست Operand -vswitch=سوئیچ -recording=ضبط كننده -record=ثبت -queuename=نام صف -announceoverride=باز دارنده اعلام -callid=CallID -agent=عامل -queue_event=اين رويداد -data1=داده ها1 -data2=داده ها2 -data3=داده ها3 -data4=داده ها4 -data5=داده ها5 -macro=ماکرو -stats=Stats -queuelog=QueueLog -goal=هدف -callback=Callback -list=فهرست -delay=تاخير -list_id=فهرست -opts=گزینه ها -queue_id=صف -file_id=فایل -variable_id=متغیر -gosub=Gosub -project_id=پروژه -sip_id=نوشيدني -trunk_name=تنه -variable_value=مقدار متغیر -database_id=پایگاه داده -interval_id=فاصله -description_start=شرح شروع -publish=Pubblica -ispeech_asr_language=زبان -ispeech_tts_language=زبان -google_tts_language=زبان -queue_variable=از صف متغیر -odbc_id=اتصال ODBC -noVariableSelected=متغیر تعیین شده است. -noTrunkSelected=ساقة آن مشخص نشده است. -noAudioSelected=فایل صوتی مشخص نشده است. -noOperandSelected=سمت چپ operand مشخص نشده است. -noDatabaseSelected=پایگاه داده تعیین شده است. -noExtensionSelected=پسوند مشخص نشده است. -noCommandSelected=فرماندهي مشخص نشده است. -noApplicationSelected=برنامه مشخص نشده است. -noRightOperandSelected=درست است که تعیین شده است. operand نيست. -noDigitsSelected=رقم تعیین شده است. -noNumberSelected=شماره تعیین شده است. -noRecipientSelected=دریافت کننده مشخص نشده است. -noTextSelected=متن مشخص نشده است. -noAccountSelected=اشتراک تعیین شده است. -noKeySelected=کلید تعیین شده است. -noIdentifierSelected=شناسه مشخص نشده است. -noQueueSelected=صف اسم است نه تعیین شده است. -noConditionSelected=شرط تعیین شده است. -noIntervalSelected=فاصله تعیین شده است. -noContextSelected=متن مشخص نشده است. -noBoxNumberSelected=نام جعبه مشخص نشده است. -noProjectSelected=SubProject مشخص نشده است. -noFileSelected=نام فایل مشخص شده است. -numberOrInvalidOrTimeout=شماره را وارد کنید، یا تأیید کنید که فاصله های سفید (T). -numberOrAll=یا - شماره را وارد کنید. -numberOrInvalidOrDefault=X قرار دهید، یا - است. -trueOrFalse=درست است یا غلط را وارد کنید. -noGoalSelected=هدف تعیین شده است. -noListSelected=لیست مشخص نشده است. -musthave=بايد داشته باشد. -outgoingedge=لبه بركنار شده است. -incomingedge=لبه تصحیح می کند. -mailbox=Mailbox -intKey=کلید قطع -speed=سرعت -wrongMinDigit=حداقل رقمی که بزرگتر از 0 باشد. -wrongMaxDigit=حداکثر رقمی است که به بزرگتر از 0 باشد. -wrongHiddenDigitsnum=مخفی شده است که به تعداد عدد بزرگتر یا مساوی با 0 -hiddendigitsnum=عدد شماره پنهان -hiddendigitspos=موقعیت پنهان عدد -getsecretdigits=GetSecretDigits -beep=بیپ -description=شرح -recordingFormat=قالب بندی -bcc=Bcc -invalidTimeout=زمان وقفه بر حسب مقدار نامعتبر است -invalidRetry=دوباره سعی کنید مقدار نامعتبر است -invalidSpeed=سرعت مقدار نامعتبر است -missingQuery=پرسش زهى گم شده است. -invalidPriority=اولويت مقدار نامعتبر است -invalidDelay=تاخير مقدار نامعتبر است -noAttachmentSelected=نه انتخاب شده ضمیمه -sendFax=SendFax -attachment_name=ضمیمه انتخاب می شود -choose_attachment=ضمیمه را انتخاب کنید -help_choose_attachment=فرمت: pdf یا tiff tif, -help_delay=در آن زمان، تا چند دقیقه صبر کنید تا قبل از فراخوانی در تماس با بازگشت -noFirstNameSelected=اسم اول مشخص نيست. -noPhoneSelected=تلفن همراه مشخص نشده است. -editFile=بارگیری فایل XML ویرایش -priority=اولويت -numberOrLettersOrAll=وارد کردن اعداد، حروف و يا - است. -asr=ASR +zoomOut=کوچکنمایی \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_fi.txt b/public/assets/plugins/square/resources/grapheditor_fi.txt index e059016..2eb5e02 100644 --- a/public/assets/plugins/square/resources/grapheditor_fi.txt +++ b/public/assets/plugins/square/resources/grapheditor_fi.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Solmut on jo yhdistetty -cancel=Peruuta -close=Sulje -collapse-expand=Kutista/laajentavat -containsValidationErrors=Sisältää tarkistusvirheiden vuoksi -done=Valmis -doubleClickOrientation=Resurssienhallinnalla voit muuttaa -error=Virhe -ok=OK -updatingDocument=Päivittämällä asiakirja. Odota... -updatingSelection=Päivityksen valinta. Odota... about=Lisätietoja +account_id=Tili actualSize=Todellisessa koossa add=Lisää addLayer=Lisää taso @@ -24,14 +7,25 @@ addProperty=Lisää omaisuutta addToExistingDrawing=Lisää olemassa olevaan piirustukseen addWaypoint=Lisää reittipiste advanced=Tarkennettu +agent=Agent +agent_management=Agent Management +agi=Yhteyttä opastuksen AGI align=Kohdista alignment=Tasaus allChangesLost=Kaikki muutokset menetetään! +alreadyConnected=Solmut on jo yhdistetty angle=Kulma +announceoverride=Ilmoita ohitus +answer=Vastaus +application=Sovellus apply=Levitä +args=Perustelut arrange=Asettele arrow=Nuoli arrows=Nuolet +asr=ASR +asr=ASR +attachment_name=Valittu liite automatic=Automaattinen autosave=Autosave autosize=Autom. @@ -39,54 +33,86 @@ background=Tausta backgroundColor=Taustaväri backgroundImage=Taustakuvaa basic=Perustiedot +bcc=Bcc +beep=Äänimerkki block=Lohko blockquote=Blockquote bold=Lihavoitu -borderWidth=Borderwidth borderColor=Reunuksen väriä +borderWidth=Borderwidth bottom=Pohja bottomAlign=Kohdista alaosan bottomLeft=Alhaalla vasemmalla bottomRight=Alhaalla oikealla +boxnumber=Numero bulletedList=Luettelomerkeillä +call_management=Puhelujen hallinta +callback=Takaisinsoitto +callflow=Callflow +callid=CallID +cancel=Peruuta cannotOpenFile=Tiedostoa ei voi avata +cc=Cc center=Center change=Muuta changeOrientation=Suunnanmuutokseen +choose_attachment=Valitse kiinnitys circle=Ympyrä classic=Classic clearDefaultStyle=Poista oletustyylin clearWaypoints=Poista reittipisteitä clipart=Clipart +close=Sulje +collapse-expand=Kutista/laajentavat collapse=Supista collapseExpand=Kutista/laajentavat collapsible=Kutistettava kohdehakemistopuu comic=Comic +command=Ohjaus +condition=Kunto connect=Liitä connection=Yhteys -connectionPoints=Liitäntäpisteet connectionArrows=Yhteys nuolet +connectionPoints=Liitäntäpisteet constrainProportions=Pakotamme mittasuhteet +containsValidationErrors=Sisältää tarkistusvirheiden vuoksi +context=Yhteydessä copy=Kopiointi copyConnect=Kopioi Connect-palvelusta create=Luo curved=Kaareva custom=Mukautettu +custom_app=Mukautetun App cut=Leikkaa dashed=Totuuden paljastuessa +data1=Data1 +data2=2 +data3=Data3 +data4=Data4 +data5=Kuluveloitus +database=Tietokannasta +database_id=Tietokannasta decreaseIndent=Vähentää sisennystä default=Oletus +delay=Viive delete=Poista deleteColumn=Poistaa deleteRow=Poista rivi +description=Kuvaus +description_start=Aloita kuvaus diagram=Kaavio +dial=Sisäinen valitsin diamond=Diamond diamondThin=Diamond (ohut) +digit=Max merkin +digits=Numeroa direction=Suuntaan distribute=Jaettavat dokumentit divider=Jakajalla documentProperties=Asiakirjan tiedot +done=Valmis dotted=Katkoviivan kohdalta. +doubleClickOrientation=Resurssienhallinnalla voit muuttaa drawing=Piirros{1} drawingEmpty=Piirustus on tyhjä drawingTooLarge=Piirustus on liian suuri @@ -96,24 +122,34 @@ east=Itä edit=Muokkaa editData=Edit Data editDiagram=Muokkaa kaavio +editFile=Muokkaa XML editImage=Kuvan muokkausvaihtoehdot editLink=Muokkaa-linkin. editStyle=Muokkaa tyyli editTooltip=Muokkaa Tooltip +end=Lopussa enterGroup=Syötä ryhmä -enterValue=Anna arvo enterName=Anna nimi enterPropertyName=Anna ominaisuuden nimeä +enterValue=Anna arvo entityRelation=Hankintayksikkö nähden +entry=Merkintä +error=Virhe +escape=Pakene numeroa +escape_digits=Pakene numeroa exitGroup=Poistu ryhmä expand=Laajenna export=Vienti +ext_dial=Ulkoinen valitsin +extension=Laajennus extras=Lisätoiminnot file=Tiedosto fileNotFound=Tiedostoa ei löydy +file_id=Tiedosto filename=Tiedostonimi fill=Täytä fillColor=Täyttöväri +finally=Lopuksi fitPage=Yksi sivu fitPageWidth=Sivun leveys. fitTwoPages=Kaksi sivua @@ -122,118 +158,226 @@ flip=Flip flipH=Käännä vaakasuunnassa flipV=Vertical Flip font=Font -fontFamily=Fonttiperheen fontColor=Font Color +fontFamily=Fonttiperheen fontSize=Font Size format=Muoto +formatGif=GIF +formatJpg=JPEG formatPanel=Paneelin muoto formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Alustettu formattedText=Muotoiltu teksti +frequency=Taajuus general=Yleistä +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Lasi global=Global +goal=Tavoite +goalname=Tavoitteen nimi +google_tts_language=Kieli +gosub=Gosub +gotoc=Siirry tietoturvakeskukseen +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Kaltevalla pinnalla gradientColor=Väri +grammar=Kielioppia grid=Grid gridSize=Ruudukon koko group=Ryhmä guides=Oppaat +hangup=Kirjautumispyynnön heading=Suunta height=Korkeus help=Ohje +help_choose_attachment=Muoto: pdf, tiff- tai tif +help_delay=Minuutteina aika, odota, ennen kuin soitat takaisin yhteyshenkilö +hidden=Piilotettu +hiddendigitsnum=Piilotettu numeroiden lukumäärä +hiddendigitspos=Piilotetut numerot asento hide=Piilota hideIt=Piilota {1} -hidden=Piilotettu home=Etusivu horizontal=Vaakasuuntainen horizontalFlow=Virtaus on vaakatasossa horizontalTree=Horisontaalinen rakenne html=HTML +identifier=Tunnus image=Kuva images=Kuvat import=Tuonti +incomingedge=Saapuvan reunasta. increaseIndent=Lisää luetelmakohdasta insert=Aseta paikalleen -insertColumnBefore=Lisää sarake vasemmalle insertColumnAfter=Aseta oikea sarake +insertColumnBefore=Lisää sarake vasemmalle insertHorizontalRule=Lisätä vaakasuoran sääntö insertImage=Aseta kuva insertLink=Lisää linkki -insertRowBefore=Aseta valitun arvovälin yläpuolista riviä sarakeotsikkoina insertRowAfter=Aseta rivi +insertRowBefore=Aseta valitun arvovälin yläpuolista riviä sarakeotsikkoina +intKey=Keskeytysnäppäintä +integrationServer=Integrointiohjelma +interval=Aikaväli +interval_id=Aikaväli +invalidDelay=Virheellinen virtausviive invalidName=Virheellinen nimi invalidOrMissingFile=Virheellinen tai puuttuva tiedosto +invalidPriority=Virheellinen käyttöastearvo +invalidRetry=Virheellinen arvo uudelleen +invalidSpeed=Väärä nopeus +invalidTimeout=Virheellinen aikakatkaisuarvo isometric=Isometrisestä +ispeech_asr_language=Kieli +ispeech_tts_language=Kieli +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Italic -layers=Tasot +key=Avain +label=Tarra landscape=Vaakasuunnassa laneColor=Lanecolor +language=Kieli +layers=Tasot layout=Asettelu left=Vasen leftAlign=Kohdista vasen +leftOperand=Vasen operaattorille. leftToRight=Vasemmalta oikealle line=Rivi -link=Linkki lineend=Rivin loppuun lineheight=Rivin korkeus linestart=Rivi alkaa linewidth=Linewidth +link=Linkki +list=Luettelo +list_id=Luettelo loading=Lataus lockUnlock=Lukitseminen tai lukituksen poistaminen +login=Login +logout=Logout +macro=Makro +mailbox=Postilaatikkoon manual=Manuaalinen +math=Math +maxdigit=Max numeroa +maxspeech=Max puheen +menu=Valikko middle=Keskellä +mindigit=Min numeroa misc=Lisätiedot +missingQuery=Kysely merkkijono puuttuu +model=Malli more=Lisää moreResults=Lisää tuloksia move=Siirrä moveSelectionTo=Siirtää valintaa {1} +musthave=On oltava +name=Nimi navigation=Navigointi new=Uusi +noAccountSelected=Tiliä ei ole määritetty. +noApplicationSelected=Sovellus ei ole määritetty +noAttachmentSelected=Mitään valittuna +noAudioSelected=Äänitiedostoa ei ole määritetty. +noBoxNumberSelected=Nimeä ei ole määritetty. noColor=Ei väriä +noCommandSelected=Ohjausta ei ole määritetty. +noConditionSelected=Kunto ei ole määritetty. +noContextSelected=Kehyksessä ei ole määritetty. +noDatabaseSelected=Tietokanta ei ole määritetty. +noDigitsSelected=Numeroa ei ole määritetty. +noExtensionSelected=Laajennus ei ole määritetty. +noFileSelected=Tiedoston nimeä ei ole määritetty. noFiles=Mitään tiedostoa +noFindBySelected=Find by is not specified. +noFirstNameSelected=Etunimi ei ole määritetty +noGoalSelected=Tavoitteena ei ole määritetty. +noIdentifierSelected=Tunnus ei ole määritetty. +noIntervalSelected=Aikaväli ei ole määritetty. +noKeySelected=Avainta ei ole määritetty. +noListSelected=Luettelo ei ole määritetty. noMoreResults=Ei lisää tuloksia -none=Mikään +noNumberSelected=Numeroa ei ole määritetty. +noOperandSelected=Vasen operaattori ei ole määritetty. +noPhoneSelected=Puhelinta ei ole määritetty +noProjectSelected=Osaprojektia ei määritetty. +noQueueSelected=Jonon nimeä ei ole määritetty. +noRecipientSelected=Vastaanottaja ei ole määritetty. noResultsFor=Tarjousta ei '{1}' +noRightOperandSelected=Oikeanpuoleisena kohdemuuttujana ei ole määritetty. +noTextSelected=Teksti ei ole määritetty. +noTrunkSelected=Tavaratila ei ole määritetty. +noVariableSelected=Muuttuja ei ole määritetty. +none=Mikään +noop=NoOp normal=Normaali north=Pohj. +number=Numero +numberOrAll=Aseta numero tai -. +numberOrInvalidOrDefault=Aseta x, i tai -. +numberOrInvalidOrTimeout=Aseta numero, i tai t (varmista, että valkoinen välejä). +numberOrLettersOrAll=Lisää numeroita, kirjaimia tai -. numberedList=Numeroidusta luettelosta +odbc_id=ODBC-yhteys +ok=OK opacity=Opasiteetin open=Avaa openArrow=Avaa nuoli openFile=Avaa tiedosto -openLink=Linkin avaaminen -openSupported=Tuettu muoto on .XML-tiedostot tallennettu tämän ohjelmiston openInNewWindow=Avaa uudessa ikkunassa openInThisWindow=Avaa tämä ikkuna +openLink=Linkin avaaminen +openSupported=Tuettu muoto on .XML-tiedostot tallennettu tämän ohjelmiston +operation=Toiminta options=Vaihtoehdot +opts=Vaihtoehdot organic=Orgaaninen orthogonal=Ortogonaalisen piirtäminen +outgoingedge=Lähtevät reunasta. outline=Luo yksityisk. +output=Lähtö oval=Ovaalinmuotoinen käyttölaite -pages=Sivut -pageView=Sivu pageScale=Sivun mittakaava pageSetup=Sivun asetukset +pageView=Sivu +pages=Sivut panTooltip=Tilaa vetää selaaminen paperSize=Paperikoko paste=Liitä pasteHere=Liitä täältä pattern=Kuvio +pause=Pause perimeter=Perimeter +phone=Puhelin placeholders=Paikkamerkit +playback=Toisto plusTooltip=Muodosta yhteys napsauttamalla ja klooni (napsauttamalla ctrl-klooni, siirrä voit muodostaa yhteyden napsauttamalla). Vedä (ctrl vetää klooni). portrait=Muotokuva position=Asento posterPrint=Julisteen preview=Esikatselu print=Tulosta +priority=Prioriteetti +project_id=Projektin +publish=Pubblica +query=Kysely +queue=Jono +queue_event=Tapahtuma +queue_id=Jono +queue_variable=Jono from Variable +queuelog=QueueLog +queuename=Jonon nimi radialTree=Säteittäinen puu +record=Tallennus +recording=Tallennus +recordingFormat=Muoto redo=Redo removeFormat=Poista muotoilu removeFromGroup=Poista ryhmä @@ -242,12 +386,16 @@ removeWaypoint=Poistaa reittipisteen rename=Nimeä renameIt=Rename {1} replace=Vaihda -replaceIt={1} on jo olemassa. Haluatko korvata sen? replaceExistingDrawing=Korvaa olemassa oleva piirros +replaceIt={1} on jo olemassa. Haluatko korvata sen? reset=Kuittaus resetView=Kuvan palautus alkutilaan +response=Vastaus aikakatkaisu +result=Tulos +retry=Yritä uudelleen right=Oikea rightAlign=Oikea kohdistus +rightOperand=Oikeanpuoleisena kohdemuuttujana rightToLeft=Oikealta vasemmalle rotate=Pyöritä rotateTooltip=Kierrä napsauttamalla ja vetämällä, käännä 90 astetta @@ -256,6 +404,9 @@ rounded=Pyöristetty save=Tallenna saveAs=Save as saved=Tallennettu +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Scrollbars search=Haku searchShapes=Etsi muotoja @@ -264,6 +415,10 @@ selectEdges=Valitse reunat selectFont=Valitse fontti selectNone=Valitse None (Ei mitään) selectVertices=Valitse kärjet +sendFax=SendFax +sendMail=Sendmailin toimiessa +sendSMS=SendSMS +set=Aseta setAsDefaultStyle=Aseta oletukseksi tyyli shadow=Shadow shape=Muoto @@ -271,21 +426,34 @@ sharp=Terävä sidebarTooltip=Laajenna. Vedä ja pudota muotoja, kaavion avulla. Siirrä napsauttamalla voit muuttaa valintaa. Alt lisää ja yhdistä. simple=Yksinkertainen simpleArrow=Yksinkertainen nuoli +sip_id=SIP size=Koko +sms_text=Teksti solid=Kiinteät sourceSpacing=Lähde välys south=Etelässä spacing=Välys +speed=Nopeus +start=Käynnistä +stats=Tilastot straight=Suora strokeColor=Viivan väriä style=Tyyli +subject=Aihe +subproject=Osaprojekti subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=Järjestelmä table=Taulukko targetSpacing=Hammaskehän etäisyys +template_id=Malli text=Teksti textAlignment=Tekstin tasaus textOpacity=Teksti opasiteetti +threshold=Kynnys +timeout=Aikakatkaisu (sekunteina) +to=Voit toBack=Takaisin toFront=Eteen tooltips=Työkaluvihjeet @@ -294,206 +462,38 @@ topAlign=Top kohdista topLeft=Ylhäällä vasemmalla topRight=Ylhäällä oikealla transparent=Läpinäkyvä +trueOrFalse=Aseta tosi tai epätosi. +trunk=Trunk +trunk_name=Trunk +tts=TTS turn=Käännä uml=UML underline=Alleviivaus undo=Löysää ungroup=Ryhmittelyn -url=URL +unpause=End pause untitledLayer=Untitled taso +updatingDocument=Päivittämällä asiakirja. Odota... +updatingSelection=Päivityksen valinta. Odota... +url=URL +value=Arvo +variable=Muuttuja +variable_id=Muuttuja +variable_value=Muuttuva arvo vertical=Pystysuora verticalFlow=Vertikaalisen virtauksen verticalTree=Pystysuora puu view=Näkymä +voicemail=Vastaaja +vswitch=Katkaisin waypoints=Reittipisteitä west=West width=Leveys wordWrap=Rivitystä writingDirection=Kirjallisesti suuntaan +wrongHiddenDigitsnum=Piilotettu numeroa numeron on oltava suurempi tai yhtä suuri kuin 0 +wrongMaxDigit=Suurin numero on suurempi kuin 0 +wrongMinDigit=Min numero on suurempi kuin 0 zoom=Zoom zoomIn=Lähennä -zoomOut=Loitonna -label=Tarra -timeout=Aikakatkaisu (sekunteina) -response=Vastaus aikakatkaisu -digit=Max merkin -escape=Pakene numeroa -retry=Yritä uudelleen -name=Nimi -value=Arvo -entry=Merkintä -start=Käynnistä -finally=Lopuksi -end=Lopussa -variable=Muuttuja -set=Aseta -operation=Toiminta -math=Math -result=Tulos -call_management=Puhelujen hallinta -answer=Vastaus -hangup=Kirjautumispyynnön -dial=Sisäinen valitsin -ext_dial=Ulkoinen valitsin -phone=Puhelin -trunk=Trunk -identifier=Tunnus -queue=Jono -voicemail=Vastaaja -boxnumber=Numero -playback=Toisto -menu=Valikko -saydigits=SayDigits -digits=Numeroa -saynumber=SayNumber -number=Numero -sayphonetic=SayPhonetic -escape_digits=Pakene numeroa -tts=TTS -ispeechtts=ISpeechTTS -key=Avain -getdigits=GetDigits -mindigit=Min numeroa -maxdigit=Max numeroa -custom_app=Mukautetun App -language=Kieli -frequency=Taajuus -integrationServer=Integrointiohjelma -database=Tietokannasta -query=Kysely -asr=ASR -sendSMS=SendSMS -account_id=Tili -template_id=Malli -to=Voit -sms_text=Teksti -sendMail=Sendmailin toimiessa -subject=Aihe -cc=Cc -threshold=Kynnys -maxspeech=Max puheen -grammar=Kielioppia -ispeechasr=ISpeechASR -model=Malli -noop=NoOp -output=Lähtö -system=Järjestelmä -command=Ohjaus -application=Sovellus -agi=Yhteyttä opastuksen AGI -args=Perustelut -subproject=Osaprojekti -goalname=Tavoitteen nimi -callflow=Callflow -gotoc=Siirry tietoturvakeskukseen -context=Yhteydessä -extension=Laajennus -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Aikaväli -leftOperand=Vasen operaattorille. -condition=Kunto -rightOperand=Oikeanpuoleisena kohdemuuttujana -vswitch=Katkaisin -recording=Tallennus -record=Tallennus -queuename=Jonon nimi -announceoverride=Ilmoita ohitus -callid=CallID -agent=Agent -queue_event=Tapahtuma -data1=Data1 -data2=2 -data3=Data3 -data4=Data4 -data5=Kuluveloitus -macro=Makro -stats=Tilastot -queuelog=QueueLog -goal=Tavoite -callback=Takaisinsoitto -list=Luettelo -delay=Viive -list_id=Luettelo -opts=Vaihtoehdot -queue_id=Jono -file_id=Tiedosto -variable_id=Muuttuja -gosub=Gosub -project_id=Projektin -sip_id=SIP -trunk_name=Trunk -variable_value=Muuttuva arvo -database_id=Tietokannasta -interval_id=Aikaväli -description_start=Aloita kuvaus -publish=Pubblica -ispeech_asr_language=Kieli -ispeech_tts_language=Kieli -google_tts_language=Kieli -queue_variable=Jono from Variable -odbc_id=ODBC-yhteys -noVariableSelected=Muuttuja ei ole määritetty. -noTrunkSelected=Tavaratila ei ole määritetty. -noAudioSelected=Äänitiedostoa ei ole määritetty. -noOperandSelected=Vasen operaattori ei ole määritetty. -noDatabaseSelected=Tietokanta ei ole määritetty. -noExtensionSelected=Laajennus ei ole määritetty. -noCommandSelected=Ohjausta ei ole määritetty. -noApplicationSelected=Sovellus ei ole määritetty -noRightOperandSelected=Oikeanpuoleisena kohdemuuttujana ei ole määritetty. -noDigitsSelected=Numeroa ei ole määritetty. -noNumberSelected=Numeroa ei ole määritetty. -noRecipientSelected=Vastaanottaja ei ole määritetty. -noTextSelected=Teksti ei ole määritetty. -noAccountSelected=Tiliä ei ole määritetty. -noKeySelected=Avainta ei ole määritetty. -noIdentifierSelected=Tunnus ei ole määritetty. -noQueueSelected=Jonon nimeä ei ole määritetty. -noConditionSelected=Kunto ei ole määritetty. -noIntervalSelected=Aikaväli ei ole määritetty. -noContextSelected=Kehyksessä ei ole määritetty. -noBoxNumberSelected=Nimeä ei ole määritetty. -noProjectSelected=Osaprojektia ei määritetty. -noFileSelected=Tiedoston nimeä ei ole määritetty. -numberOrInvalidOrTimeout=Aseta numero, i tai t (varmista, että valkoinen välejä). -numberOrAll=Aseta numero tai -. -numberOrInvalidOrDefault=Aseta x, i tai -. -trueOrFalse=Aseta tosi tai epätosi. -noGoalSelected=Tavoitteena ei ole määritetty. -noListSelected=Luettelo ei ole määritetty. -musthave=On oltava -outgoingedge=Lähtevät reunasta. -incomingedge=Saapuvan reunasta. -mailbox=Postilaatikkoon -intKey=Keskeytysnäppäintä -speed=Nopeus -wrongMinDigit=Min numero on suurempi kuin 0 -wrongMaxDigit=Suurin numero on suurempi kuin 0 -wrongHiddenDigitsnum=Piilotettu numeroa numeron on oltava suurempi tai yhtä suuri kuin 0 -hiddendigitsnum=Piilotettu numeroiden lukumäärä -hiddendigitspos=Piilotetut numerot asento -getsecretdigits=GetSecretDigits -beep=Äänimerkki -description=Kuvaus -recordingFormat=Muoto -bcc=Bcc -invalidTimeout=Virheellinen aikakatkaisuarvo -invalidRetry=Virheellinen arvo uudelleen -invalidSpeed=Väärä nopeus -missingQuery=Kysely merkkijono puuttuu -invalidPriority=Virheellinen käyttöastearvo -invalidDelay=Virheellinen virtausviive -noAttachmentSelected=Mitään valittuna -sendFax=SendFax -attachment_name=Valittu liite -choose_attachment=Valitse kiinnitys -help_choose_attachment=Muoto: pdf, tiff- tai tif -help_delay=Minuutteina aika, odota, ennen kuin soitat takaisin yhteyshenkilö -noFirstNameSelected=Etunimi ei ole määritetty -noPhoneSelected=Puhelinta ei ole määritetty -editFile=Muokkaa XML -priority=Prioriteetti -numberOrLettersOrAll=Lisää numeroita, kirjaimia tai -. -asr=ASR +zoomOut=Loitonna \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_fr.txt b/public/assets/plugins/square/resources/grapheditor_fr.txt index 0d7f0cf..f2c3f93 100644 --- a/public/assets/plugins/square/resources/grapheditor_fr.txt +++ b/public/assets/plugins/square/resources/grapheditor_fr.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Nodes déjà connecté -cancel=Annuler -close=Fermer -collapse-expand=Réduire/Développer -containsValidationErrors=Contient des erreurs de validation -done=Fait -doubleClickOrientation=Double-clic pour changer d'orientation -error=Error -ok=OK -updatingDocument=Mise à jour du document. Veuillez patienter... -updatingSelection=La mise à jour de la sélection. Veuillez patienter... about=À propos de +account_id=Compte actualSize=Taille réelle add=Ajouter addLayer=Ajouter Couche @@ -24,14 +7,25 @@ addProperty=Propriété ajouter addToExistingDrawing=Ajouter au dessin existant addWaypoint=Ajouter un waypoint advanced=Recherche avancée +agent=Agent +agent_management=Agent Management +agi=Mga align=Aligner alignment=L'alignement allChangesLost=Toutes les modifications seront perdues ! +alreadyConnected=Nodes déjà connecté angle=Angle +announceoverride=Annoncer Annuler +answer=Répondre à +application=Application apply=Appliquer +args=Arguments arrange=Organiser arrow=Arrow arrows=Flèches +asr=ASR +asr=L'ASR +attachment_name=Pièce jointe sélectionnée automatic=Automatic autosave=L'enregistrement automatique autosize=Autosize. @@ -39,54 +33,86 @@ background=Contexte backgroundColor=Couleur d'arrière-plan backgroundImage=Image en arrière-plan basic=Basic +bcc=Cci +beep=Bip block=Block blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=La couleur de la bordure +borderWidth=Borderwidth bottom=Bas bottomAlign=Aligner en bas bottomLeft=En bas à gauche bottomRight=En bas à droite +boxnumber=Numéro de boîte bulletedList=Liste à puces +call_management=Gestion des appels +callback=Le Rapp +callflow=Flux d +callid=CallID +cancel=Annuler cannotOpenFile=Ne peut pas ouvrir le fichier +cc=Cc center=Center change=Modifier changeOrientation=Changer d'orientation +choose_attachment=Choisissez la pièce jointe circle=Circle classic=Classic clearDefaultStyle=Clair Style par défaut clearWaypoints=Waypoints claire clipart=Clipart +close=Fermer +collapse-expand=Réduire/Développer collapse=Effondrement collapseExpand=Réduire/Développer collapsible=Retractable comic=Comic +command=La commande +condition=Condition connect=Se connecter connection=La liaison -connectionPoints=Points de connexion. connectionArrows=Flèches de connexion +connectionPoints=Points de connexion. constrainProportions=Conserver les proportions +containsValidationErrors=Contient des erreurs de validation +context=Contexte copy=Copie copyConnect=Copie sur Connect create=Créer curved=Panneaux custom=Custom +custom_app=Application sur mesure cut=Couper dashed=Néant +data1=Data1 +data2=Data2 +data3=Data3 +data4=Données4 +data5=Data5 +database=Base de données +database_id=Base de données decreaseIndent=Diminuer le retrait default=Valeur par défaut +delay=Délai delete=Supprimer deleteColumn=Supprimer la colonne deleteRow=Supprimer une ligne +description=Description +description_start=Description de début diagram=Schéma électrique +dial=Numérotation interne diamond=Diamond diamondThin=Diamond (léger) +digit=Chiffres max. +digits=Chiffres direction=Direction distribute=Distribuer divider=Divider documentProperties=Les propriétés du document +done=Fait dotted=Parsemé +doubleClickOrientation=Double-clic pour changer d'orientation drawing=Dimensions{1} drawingEmpty=Le dessin est vide drawingTooLarge=Le dessin est trop grand @@ -96,24 +122,34 @@ east=À l'Est edit=Modifier editData=Modifier des données editDiagram=Schéma de montage +editFile=Modifier le XML editImage=Modifier l'image editLink=Lien Modifier editStyle=Modifier le style editTooltip=Éditer Tooltip +end=Fin enterGroup=Groupe entrer -enterValue=Entrer la valeur enterName=Saisissez le nom enterPropertyName=Entrez le nom de la propriété +enterValue=Entrer la valeur entityRelation=Rapport de l'entité +entry=Entrée +error=Error +escape=Chiffres d'échappement +escape_digits=Chiffres d'échappement exitGroup=Groupe de sortie expand=L'expansion export=Exporter +ext_dial=Numérotation externe +extension=Extension extras=Extras file=Dossier fileNotFound=Fichier non trouvé +file_id=Dossier filename=Nom du fichier fill=Remplir fillColor=Couleur de remplissage +finally=Enfin fitPage=Une page fitPageWidth=La largeur de la page fitTwoPages=Deux pages @@ -122,118 +158,226 @@ flip=Flip flipH=Flip Horizontal flipV=Flip Vertical font=Font -fontFamily=Famille de polices fontColor=Font Color +fontFamily=Famille de polices fontSize=La taille de la police format=Présentation +formatGif=GIF +formatJpg=JPEG formatPanel=Panneau de format formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=Le XML formatted=Formaté formattedText=Texte formaté +frequency=Fréquence general=Général +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glass global=Global +goal=Objectif +goalname=Nom de l'objectif +google_tts_language=Language +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Dégradé gradientColor=Color +grammar=Grammaire grid=Grid gridSize=Taille de la grille group=Group guides=Guides +hangup=Raccroché. heading=La position height=Hauteur help=Aider +help_choose_attachment=Format : pdf, tiff ou tif +help_delay=Le temps, en minutes, à attendre avant d'appeler le contact retour +hidden=Hidden +hiddendigitsnum=Nombre de chiffres cachés +hiddendigitspos=Position des chiffres cachés hide=Masquer hideIt=Masquer le {1} -hidden=Hidden home=Accueil horizontal=L'horizontale horizontalFlow=Flux horizontal horizontalTree=Arbre horizontal html=HTML +identifier=Identifier image=Droit images=Images import=Importer +incomingedge=Edge entrants. increaseIndent=Augmenter le retrait insert=Insérer -insertColumnBefore=Insérer colonne vers la gauche insertColumnAfter=Insérer colonne droite +insertColumnBefore=Insérer colonne vers la gauche insertHorizontalRule=Insérer la règle horizontale insertImage=Insertion d'image insertLink=Insérer le lien -insertRowBefore=Insérer la ligne ci-dessus insertRowAfter=Insérer la ligne ci-dessous +insertRowBefore=Insérer la ligne ci-dessus +intKey=Touche d'interruption +integrationServer=Integration Server +interval=L'intervalle de temps +interval_id=Interval +invalidDelay=Valeur de délai non valide invalidName=Nom non valide invalidOrMissingFile=Fichier non valide ou manquant +invalidPriority=La valeur de priorité non valide +invalidRetry=Valeur de tentative non valide +invalidSpeed=Valeur non valide +invalidTimeout=La valeur du délai non valide isometric=La tension isométrique +ispeech_asr_language=Language +ispeech_tts_language=Language +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Italic -layers=Couches +key=Key +label=Label landscape=Paysage laneColor=Lanecolor +language=Language +layers=Couches layout=La mise en page left=La gauche leftAlign=Alignez à gauche +leftOperand=Opérande de gauche leftToRight=De gauche à droite line=Line -link=Link lineend=Fin de ligne lineheight=La hauteur de ligne linestart=Début de ligne linewidth=Épaisstrait +link=Link +list=Liste +list_id=Liste loading=Loading lockUnlock=Verrouiller/Déverrouiller +login=Login +logout=Logout +macro=Macro +mailbox=Boîte aux lettres manual=Manual +math=Math +maxdigit=Chiffres max. +maxspeech=Discours de Max +menu=Menu contextuel middle=Milieu +mindigit=Min Chiffres misc=Misc +missingQuery=La chaîne de requête est manquant +model=Model more=Plus moreResults=Plus de résultats move=Déplacer moveSelectionTo=Déplacer la sélection à {1} +musthave=Doit avoir +name=Nom navigation=La navigation new=Nouveau +noAccountSelected=Compte n'est pas spécifié. +noApplicationSelected=L'application n'est pas spécifié +noAttachmentSelected=Aucun accessoire sélectionné +noAudioSelected=Fichier audio n'est pas spécifié. +noBoxNumberSelected=Le nom de la boîte n'est pas spécifié. noColor=Pas de couleur +noCommandSelected=Commande n'est pas spécifié. +noConditionSelected=Condition n'est pas spécifié. +noContextSelected=Contexte n'est pas spécifié. +noDatabaseSelected=Base de données n'est pas spécifié. +noDigitsSelected=Chiffres n'est pas spécifié. +noExtensionSelected=L'extension n'est pas spécifié. +noFileSelected=Nom de fichier n'est pas spécifié. noFiles=Aucun fichier +noFindBySelected=Find by is not specified. +noFirstNameSelected=Prénom n'est pas spécifié +noGoalSelected=But n'est pas spécifié. +noIdentifierSelected=Identificateur n'est pas spécifié. +noIntervalSelected=Intervalle n'est pas spécifié. +noKeySelected=Clé n'est pas spécifié. +noListSelected=Liste n'est pas spécifié. noMoreResults=Il n'y a plus de résultats -none=Aucun +noNumberSelected=Nombre n'est pas spécifié. +noOperandSelected=Opérande de gauche n'est pas spécifié. +noPhoneSelected=Phone n'est pas spécifié +noProjectSelected=Le projet n'est pas spécifié. +noQueueSelected=Nom de queue n'est pas spécifié. +noRecipientSelected=Bénéficiaire n'est pas spécifié. noResultsFor=Pas de résultats pour '{1}' +noRightOperandSelected=Opérande de droite n'est pas spécifié. +noTextSelected=Le texte n'est pas spécifié. +noTrunkSelected=Le tronc n'est pas spécifié. +noVariableSelected=Variable n'est pas spécifié. +none=Aucun +noop=NoOp normal=La normale north=Au nord +number=Nombre +numberOrAll=Insérer le nombre ou -. +numberOrInvalidOrDefault=Insérer x, i ou -. +numberOrInvalidOrTimeout=Insérer le nombre, i ou t (vérifier les espaces blancs). +numberOrLettersOrAll=Insérer des chiffres, lettres ou -. numberedList=Liste numérotée +odbc_id=Connexion ODBC +ok=OK opacity=L'opacité open=Ouvrir openArrow=Flèche ouverture openFile=Ouvrir le fichier -openLink=Ouvrir le lien -openSupported=Format pris en charge les fichiers .XML est sauvé de ce logiciel openInNewWindow=Ouvrir dans une nouvelle fenêtre openInThisWindow=Dans cette fenêtre ouverte +openLink=Ouvrir le lien +openSupported=Format pris en charge les fichiers .XML est sauvé de ce logiciel +operation=L'opération options=Options +opts=Options organic=Organic orthogonal=Projections orthogonales +outgoingedge=Bord sortant. outline=Contours +output=Output oval=Oval -pages=Pages -pageView=Voir la page pageScale=L'échelle de la page pageSetup=La mise en page +pageView=Voir la page +pages=Pages panTooltip=Faites glisser l'espace pour faire défiler paperSize=Taille de papier paste=Coller pasteHere=Coller ici pattern=Pattern +pause=Pause perimeter=Perimeter +phone=Téléphone placeholders=Espaces réservés +playback=La lecture plusTooltip=Cliquez pour vous connecter et cliquez sur ctrl (clone de clone, Maj-clic pour se connecter). Faites glisser pour se connecter (ctrl-glisser pour clone). portrait=Portrait position=Poste posterPrint=Impression d'affiches preview=Aperçu print=Imprimer +priority=La priorité +project_id=Projet +publish=Pubblica +query=Query +queue=Queue +queue_event=Cas +queue_id=Queue +queue_variable=Queue de variable +queuelog=QueueLog +queuename=Nom de Queue radialTree=Arbre généalogique radiale +record=Notice +recording=L'enregistrement +recordingFormat=Présentation redo=Refaire removeFormat=Mise en forme claire removeFromGroup=Supprimer du groupe @@ -242,12 +386,16 @@ removeWaypoint=Déposer Waypoint rename=Renommer renameIt=Renommer {1} replace=Remplacer -replaceIt={1} existe déjà. Voulez-vous la remplacer ? replaceExistingDrawing=Remplacer les dimensions +replaceIt={1} existe déjà. Voulez-vous la remplacer ? reset=Réinitialiser resetView=Réinitialiser la vue +response=Délai de réponse +result=Résultat +retry=Réessayer right=Droit rightAlign=Aligner à droite +rightOperand=Opérande droit rightToLeft=Droite à gauche rotate=Faire pivoter rotateTooltip=Cliquez et faites glisser pour faire pivoter, cliquez sur pour activer par 90 degrés @@ -256,6 +404,9 @@ rounded=Arrondi save=Sauvegarder saveAs=Enregistrer sous saved=Sauvé +saydigits=Exemple SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Les barres de défilement search=Recherchez searchShapes=Des formes de recherche @@ -264,6 +415,10 @@ selectEdges=Sélectionnez bords selectFont=Sélectionnez une police selectNone=Sélectionnez Aucun selectVertices=Sélectionnez les sommets +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=Set setAsDefaultStyle=Définir comme style par défaut shadow=Ombre shape=Forme @@ -271,21 +426,34 @@ sharp=Sharp sidebarTooltip=Cliquez pour agrandir. Faites glisser et déposez les formes en diagramme. Cliquez sur Shift pour changer la sélection. Alt cliquez pour insérer et connecter. simple=Simple simpleArrow=Flèche simple +sip_id=Le SIP size=Size +sms_text=Text solid=De solides sourceSpacing=Source Spacing south=Au sud spacing=L'espacement +speed=Speed +start=Commencer +stats=Stats straight=Tout droit strokeColor=La couleur de ligne style=Style +subject=Sous réserve +subproject=Sous-projet subscript=Indice +successOrFailure=Insert success or failure. superscript=Superscript +system=System table=Le tableau targetSpacing=Espacement cible +template_id=Template text=Text textAlignment=L'alignement du texte textOpacity=L'opacité du texte +threshold=Threshold +timeout=Délai (secondes) +to=À toBack=Retour à toFront=À l'avant tooltips=Les info-bulles @@ -294,206 +462,38 @@ topAlign=Haut Aligner topLeft=En haut à gauche topRight=Haut à droite transparent=Transparent +trueOrFalse=Insérer vrai ou faux. +trunk=Trunk +trunk_name=Trunk +tts=TTS turn=Tour uml=UML underline=Souligner undo=Annuler ungroup=Ungroup -url=URL +unpause=End pause untitledLayer=Couche sans titre +updatingDocument=Mise à jour du document. Veuillez patienter... +updatingSelection=La mise à jour de la sélection. Veuillez patienter... +url=URL +value=Valeur +variable=Variable +variable_id=Variable +variable_value=Valeur Variable vertical=La verticale verticalFlow=L'écoulement vertical verticalTree=Arbre vertical view=Voir +voicemail=La messagerie vocale +vswitch=Switch waypoints=Waypoints west=À l'Ouest width=Largeur wordWrap=Word Wrap writingDirection=Direction d'écriture +wrongHiddenDigitsnum=Chiffres cachés nombre doit être supérieur ou égal à 0 +wrongMaxDigit=Chiffres max doit être supérieure à 0 +wrongMinDigit=Min chiffres doit être supérieure à 0 zoom=Zoom zoomIn=Zoom In -zoomOut=Zoom Out -label=Label -timeout=Délai (secondes) -response=Délai de réponse -digit=Chiffres max. -escape=Chiffres d'échappement -retry=Réessayer -name=Nom -value=Valeur -entry=Entrée -start=Commencer -finally=Enfin -end=Fin -variable=Variable -set=Set -operation=L'opération -math=Math -result=Résultat -call_management=Gestion des appels -answer=Répondre à -hangup=Raccroché. -dial=Numérotation interne -ext_dial=Numérotation externe -phone=Téléphone -trunk=Trunk -identifier=Identifier -queue=Queue -voicemail=La messagerie vocale -boxnumber=Numéro de boîte -playback=La lecture -menu=Menu contextuel -saydigits=Exemple SayDigits -digits=Chiffres -saynumber=SayNumber -number=Nombre -sayphonetic=SayPhonetic -escape_digits=Chiffres d'échappement -tts=TTS -ispeechtts=ISpeechTTS -key=Key -getdigits=GetDigits -mindigit=Min Chiffres -maxdigit=Chiffres max. -custom_app=Application sur mesure -language=Language -frequency=Fréquence -integrationServer=Integration Server -database=Base de données -query=Query -asr=L'ASR -sendSMS=SendSMS -account_id=Compte -template_id=Template -to=À -sms_text=Text -sendMail=SendMail -subject=Sous réserve -cc=Cc -threshold=Threshold -maxspeech=Discours de Max -grammar=Grammaire -ispeechasr=ISpeechASR -model=Model -noop=NoOp -output=Output -system=System -command=La commande -application=Application -agi=Mga -args=Arguments -subproject=Sous-projet -goalname=Nom de l'objectif -callflow=Flux d -gotoc=Goto -context=Contexte -extension=Extension -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=L'intervalle de temps -leftOperand=Opérande de gauche -condition=Condition -rightOperand=Opérande droit -vswitch=Switch -recording=L'enregistrement -record=Notice -queuename=Nom de Queue -announceoverride=Annoncer Annuler -callid=CallID -agent=Agent -queue_event=Cas -data1=Data1 -data2=Data2 -data3=Data3 -data4=Données4 -data5=Data5 -macro=Macro -stats=Stats -queuelog=QueueLog -goal=Objectif -callback=Le Rapp -list=Liste -delay=Délai -list_id=Liste -opts=Options -queue_id=Queue -file_id=Dossier -variable_id=Variable -gosub=Gosub -project_id=Projet -sip_id=Le SIP -trunk_name=Trunk -variable_value=Valeur Variable -database_id=Base de données -interval_id=Interval -description_start=Description de début -publish=Pubblica -ispeech_asr_language=Language -ispeech_tts_language=Language -google_tts_language=Language -queue_variable=Queue de variable -odbc_id=Connexion ODBC -noVariableSelected=Variable n'est pas spécifié. -noTrunkSelected=Le tronc n'est pas spécifié. -noAudioSelected=Fichier audio n'est pas spécifié. -noOperandSelected=Opérande de gauche n'est pas spécifié. -noDatabaseSelected=Base de données n'est pas spécifié. -noExtensionSelected=L'extension n'est pas spécifié. -noCommandSelected=Commande n'est pas spécifié. -noApplicationSelected=L'application n'est pas spécifié -noRightOperandSelected=Opérande de droite n'est pas spécifié. -noDigitsSelected=Chiffres n'est pas spécifié. -noNumberSelected=Nombre n'est pas spécifié. -noRecipientSelected=Bénéficiaire n'est pas spécifié. -noTextSelected=Le texte n'est pas spécifié. -noAccountSelected=Compte n'est pas spécifié. -noKeySelected=Clé n'est pas spécifié. -noIdentifierSelected=Identificateur n'est pas spécifié. -noQueueSelected=Nom de queue n'est pas spécifié. -noConditionSelected=Condition n'est pas spécifié. -noIntervalSelected=Intervalle n'est pas spécifié. -noContextSelected=Contexte n'est pas spécifié. -noBoxNumberSelected=Le nom de la boîte n'est pas spécifié. -noProjectSelected=Le projet n'est pas spécifié. -noFileSelected=Nom de fichier n'est pas spécifié. -numberOrInvalidOrTimeout=Insérer le nombre, i ou t (vérifier les espaces blancs). -numberOrAll=Insérer le nombre ou -. -numberOrInvalidOrDefault=Insérer x, i ou -. -trueOrFalse=Insérer vrai ou faux. -noGoalSelected=But n'est pas spécifié. -noListSelected=Liste n'est pas spécifié. -musthave=Doit avoir -outgoingedge=Bord sortant. -incomingedge=Edge entrants. -mailbox=Boîte aux lettres -intKey=Touche d'interruption -speed=Speed -wrongMinDigit=Min chiffres doit être supérieure à 0 -wrongMaxDigit=Chiffres max doit être supérieure à 0 -wrongHiddenDigitsnum=Chiffres cachés nombre doit être supérieur ou égal à 0 -hiddendigitsnum=Nombre de chiffres cachés -hiddendigitspos=Position des chiffres cachés -getsecretdigits=GetSecretDigits -beep=Bip -description=Description -recordingFormat=Présentation -bcc=Cci -invalidTimeout=La valeur du délai non valide -invalidRetry=Valeur de tentative non valide -invalidSpeed=Valeur non valide -missingQuery=La chaîne de requête est manquant -invalidPriority=La valeur de priorité non valide -invalidDelay=Valeur de délai non valide -noAttachmentSelected=Aucun accessoire sélectionné -sendFax=SendFax -attachment_name=Pièce jointe sélectionnée -choose_attachment=Choisissez la pièce jointe -help_choose_attachment=Format : pdf, tiff ou tif -help_delay=Le temps, en minutes, à attendre avant d'appeler le contact retour -noFirstNameSelected=Prénom n'est pas spécifié -noPhoneSelected=Phone n'est pas spécifié -editFile=Modifier le XML -priority=La priorité -numberOrLettersOrAll=Insérer des chiffres, lettres ou -. -asr=ASR +zoomOut=Zoom Out \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_hi.txt b/public/assets/plugins/square/resources/grapheditor_hi.txt index 738ba68..424f331 100644 --- a/public/assets/plugins/square/resources/grapheditor_hi.txt +++ b/public/assets/plugins/square/resources/grapheditor_hi.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -lreadyConnected=नोड्स से पहले ही कनेक् -cancel=रद्द करें -close=निकट -collapse-expand=धराशायी/विस्तार -containsValidationErrors=इसमें वैधीकरण त्रुटियां -done=किया -doubleClickOrientation=Doubleclick बदलने के लिए अभिविन्यास -error=त्रुटि -ok=ठीक -updatingDocument=अद्यतन दस्तावेज है। कृपया प्रतीक्षा करें... -updatingSelection=अद्यतन का चयन है। कृपया प्रतीक्षा करें... about=के बारे में +account_id=खाते actualSize=वास्तविक आकार add=जोड़ें addLayer=परत जोड़ें @@ -24,14 +7,24 @@ addProperty=सम्पत्ति पर जोड़ें addToExistingDrawing=विद्यमान वास्तुकला में जोड़ें addWaypoint=मार्ग बिंदु पर जोड़ें advanced=उन्नत +agent=कर्ता +agent_management=Agent Management +agi=AGI align=कनेक्टरों alignment=संलेखन allChangesLost=सभी बदलाव खो जाएंगे! angle=कोण +announceoverride=ओवरराइड की घोषणा +answer=उत्तर +application=अनुप्रयोग apply=लागू करें +args=तर्क arrange=व्यवस्था arrow=तीर arrows=तीर +asr=ASR +asr=ASR +attachment_name=चयनित संलग् नक automatic=स् वचालित autosave=Autosave autosize=Autosize @@ -39,54 +32,86 @@ background=पृष्ठभूमि backgroundColor=पृष्ठभूमि रंग backgroundImage=पृष्ठभूमि की छवि basic=मूल +bcc=गुप्त प्रतिलिपि +beep=आवाज़ करना block=ब्लॉक करें blockquote=Blockquote bold=साहसी -borderWidth=Borderwidth borderColor=सीमा पर रंग +borderWidth=Borderwidth bottom=नीचे bottomAlign=नीचे कनेक्टरों bottomLeft=निचला बायां bottomRight=निचला दायां +boxnumber=बॉक्स संख्या bulletedList=Bulleted सूची +call_management=प्रबंधन को कॉल करें +callback=कॉलबैक +callflow=Callflow +callid=CallID +cancel=रद्द करें cannotOpenFile=फ़ाइल को नहीं खोल सकता +cc=प्रतिलिपि center=केंद्र change=परिवर्तन changeOrientation=परिवर्तन के लिए अभिविन्यास +choose_attachment=संलग्नक चुनें circle=सर्कल classic=मजेदार clearDefaultStyle=डिफ़ॉल्ट रूप से साफ शैली clearWaypoints=Waypoints साफ करें clipart=Clipart +close=निकट +collapse-expand=धराशायी/विस्तार collapse=धराशायी collapseExpand=धराशायी/विस्तार collapsible=Collapsible comic=कार्टून +command=कमांड +condition=दशा connect=कनेक्ट करें connection=कनेक् शन -connectionPoints=कनेक् शन अंक connectionArrows=कनेक् शन तीर +connectionPoints=कनेक् शन अंक constrainProportions=अनुपात पर्याप् तता +containsValidationErrors=इसमें वैधीकरण त्रुटियां +context=संदर्भ copy=कॉपी करें copyConnect=कनेक्ट पर कॉपी करें create=पैदा करना curved=वक्र custom=कस्टम +custom_app=कस्टम App World cut=काट dashed=पानी फिरा +data1=डेटा1 +data2=डेटा2 +data3=डेटा3 +data4=डेटा4 +data5=डेटा5 +database=डाटाबेस +database_id=डाटाबेस decreaseIndent=हाशिया घटाएं default=डिफ़ॉल्ट +delay=विलंब delete=हटाना deleteColumn=स्तंभ हटाएं deleteRow=पंक्ति हटाएं +description=वर्णन +description_start=प्रारंभ में शुमार diagram=डायाग्राम +dial=आंतरिक डायल करें diamond=हीरा diamondThin=हीरा (पतला) +digit=अधिकतम अंक +digits=मापा direction=दिशा distribute=दर्शनार्थियों divider=Divider documentProperties=दस्तावेज़ गुण +done=किया dotted=बेलों +doubleClickOrientation=Doubleclick बदलने के लिए अभिविन्यास drawing=आहरण{1} drawingEmpty=आहरण रिक्त है drawingTooLarge=आहरण बहुत लंबा है @@ -96,24 +121,34 @@ east=पूर्वी edit=संपादित करें editData=डेटा को संपादित करें editDiagram=डायाग्राम संपादित करें +editFile=XML संपादित करें editImage=छवि को संपादित करें editLink=लिंक को संपादित करें editStyle=शैली संपादित करें editTooltip=Tooltip संपादित करें +end=अन्त enterGroup=ग्रुप ए में दर्ज करें -enterValue=मान दर्ज करें enterName=नाम दर्ज करें enterPropertyName=संपत्ति के नाम दर्ज करें +enterValue=मान दर्ज करें entityRelation=एंटिटी संबंध +entry=प्रवेश +error=त्रुटि +escape=Escape अंगुलि +escape_digits=Escape अंगुलि exitGroup=समूह से बाहर निकलें expand=विस्तार export=निर्यात +ext_dial=बाह्य डायल करें +extension=विस्तार extras=Extras file=फाइल fileNotFound=फ़ाइल नहीं मिली +file_id=फाइल filename=फ़ाइल नाम fill=भरें fillColor=रंग भरना +finally=अंतत: fitPage=एक पृष्ठ fitPageWidth=पृष्ठ चौड़ाई fitTwoPages=दो पृष्ठ @@ -122,118 +157,227 @@ flip=आपके द्वारा फ्लिप flipH=आपके द्वारा फ्लिप क्षैतिज flipV=आपके द्वारा फ्लिप वर्टिकल font=फ़ॉन्ट -fontFamily=फ़ॉन्ट परिवार fontColor=फ़ॉन्ट रंग +fontFamily=फ़ॉन्ट परिवार fontSize=फ़ॉन्ट आकार format=स्वरूप +formatGif=कतिपयदेशों +formatJpg=JPEG formatPanel=स्वरूप से संबंधित पैनल । formatPdf=PDF टू गो formatPng=वेप्रत्येक पखवाडे -formatGif=कतिपयदेशों -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=स्वरूपित formattedText=स्वरूपित पाठ +frequency=आवृत्ति general=सामान्य +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=ग्लास global=विश्वव्यापी +goal=गोल +goalname=गोल नाम +google_tts_language=की भाषा +gosub=Gosub +gotoc=जाएँगे| +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=ग्रेडिएन्ट वाला gradientColor=रंग +grammar=व्याकरण grid=ग्रिड gridSize=ग्रिड का आकार group=समूह guides=मार्गदर्शिका +hangup=Hangup heading=पकडएं height=ऊंचाई help=मदद +help_choose_attachment=Pdf टू गो का स्वरूप:, विवाद या .tif +help_delay=उस समय तक प्रतीक्षा करने से पहले संपर्क को वापस बुलाने मिनट में +hidden=छिपा हुआ +hiddendigitsnum=छुपा डिजिट नंबर +hiddendigitspos=छुपा अंकों की स्थिति hide=छुपाएं hideIt={1} को छिपाएं -hidden=छिपा हुआ home=गृह horizontal=अनुप्रस्थ horizontalFlow=क्षैतिज प्रवाह horizontalTree=क्षैतिज वृक्ष html=HTML +identifier=Identifier image=छवि images=छवियां import=आयात +incomingedge=इनकमिंग तीक्ष्णता को खो दिया है। increaseIndent=हाशिया बढ़ाएं insert=सम् मिलित -insertColumnBefore=बाईं तरफ डालें insertColumnAfter=स्तंभ सम्मिलित अधिकार +insertColumnBefore=बाईं तरफ डालें insertHorizontalRule=क्षैतिज शासन लगाएं insertImage=छवि डालें insertLink=लिंक डालें -insertRowBefore=पंक् ति के ऊपर डालें insertRowAfter=नीचे से पंक्ति डालें +insertRowBefore=पंक् ति के ऊपर डालें +intKey=व्यवधान कुंजी दबाएं. +integrationServer=सर्वर एकीकरण +interval=उस समय अन्तराल +interval_id=अन्तराल +invalidDelay=अमान्य विलंब मूल्य invalidName=अमान्य नाम invalidOrMissingFile=फ़ाइल अमान्य या गुम +invalidPriority=अमान्य प्राथमिकता मूल्य +invalidRetry=अमान्य पुनर्प्रयास मूल्य +invalidSpeed=अमान् य गति मूल्य +invalidTimeout=अमान्य टाइमआउट मान isometric=सममितीय +ispeech_asr_language=की भाषा +ispeech_tts_language=की भाषा +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=वे इटैलिक -layers=मुर्गियों +key=कुंजी दबाएं +label=लेबल landscape=लैंडस्केप laneColor=Lanecolor +language=की भाषा +layers=मुर्गियों layout=लेआउट left=छोड़ leftAlign=बाएं कनेक्टरों +leftOperand=बाएं Operand leftToRight=बाएँ ओर से दाएँ line=रेल लाइन -link=कड़ी lineend=रेखा के अंत lineheight=पंक्ति ऊंचाई linestart=रेल लाइन शुरू linewidth=Linewidth +link=कड़ी +list=की सूची +list_id=की सूची loading=लदान lockUnlock=अनलॉक करने के लिए, अवरोध/ +login=Login +logout=Logout +lreadyConnected=नोड्स से पहले ही कनेक् +macro=स्थूल +mailbox=मेलबॉक्स manual=हस्त +math=मुंडक +maxdigit=अधिकतम अंक +maxspeech=अधिकतम भाषण +menu=मेनू middle=मध्य +mindigit=मिन अंगुलि misc=विविध +missingQuery=इस प्रश्न के तार लापता +model=आदर्श more=अधिक moreResults=और अधिक परिणाम move=चाल moveSelectionTo=चयन करने के लिए {1} पर जाएं +musthave=अवश्य +name=नाम navigation=नेविगेशन new=नया +noAccountSelected=खाते निर्दिष्ट नहीं है। +noApplicationSelected=अनुप्रयोग निर्दिष्ट नहीं +noAttachmentSelected=संलग्नक नहीं चुना +noAudioSelected=ऑडियो फ़ाइल निर्दिष्ट नहीं है। +noBoxNumberSelected=बॉक्स नाम निर्दिष्ट नहीं है। noColor=कोई रंग +noCommandSelected=कमान निर्दिष्ट नहीं किया गया. +noConditionSelected=िस्थति यह निर्दिष्ट नहीं किया गया है। +noContextSelected=संदर्भ निर्दिष्ट नहीं किया गया. +noDatabaseSelected=डाटाबेस निर्दिष्ट नहीं किया गया. +noDigitsSelected=मापा नहीं है। +noExtensionSelected=विस्तार नहीं है। +noFileSelected=फ़ाइल नाम निर्दिष्ट नहीं किया गया है। noFiles=कोई फ़ाइल +noFindBySelected=Find by is not specified. +noFirstNameSelected=पहला नाम निर्दिष्ट नहीं है। +noGoalSelected=लक्ष्य यह निर्दिष्ट नहीं किया गया. +noIdentifierSelected=निर्दिष्ट नहीं Identifier +noIntervalSelected=मध्यांतर तक नहीं है। +noKeySelected=कुंजी नहीं है। +noListSelected=सूची में निर्दिष्ट नहीं है। noMoreResults=और अधिक परिणाम नहीं -none=कोई नहीं +noNumberSelected=यह संख्या निर्दिष्ट नहीं किया गया. +noOperandSelected=बाएं operand निर्दिष्ट नहीं किया गया है। +noPhoneSelected=फ़ोन निर्दिष्ट नहीं +noProjectSelected=निर्दिष्ट नहीं SubProject +noQueueSelected=नाम निर्दिष्ट नहीं है कतार +noRecipientSelected=प्राप्तकर्ता निर्दिष्ट नहीं किया गया है। noResultsFor='{1}' के लिए कोई परिणाम +noRightOperandSelected=निर्दिष्ट नहीं operand अधिकार +noTextSelected=पाठ नहीं है। +noTrunkSelected=सूंड का निर्दिष्ट नहीं किया गया है। +noVariableSelected=परिवर्तनीय है निर्दिष्ट नहीं किया गया. +none=कोई नहीं +noop=NoOp normal=सामान्य north=उत्तर +number=की संख्या +numberOrAll=- संख्या या डालें. +numberOrInvalidOrDefault=मॅँ, x डालें या - है। +numberOrInvalidOrTimeout=मेरा नंबर डालें या t) (सफेद रिक्तियां सत्यापित करें +numberOrLettersOrAll=नंबर्स, डालें या - है। numberedList=संख्यांक सूची +odbc_id=ODBC कनेक्शन +ok=ठीक opacity=Opacity open=खुला openArrow=खुले तीर openFile=फ़ाइल को नहीं खोल -openLink=लिंक खोलें -openSupported=XML स्वरूपित समर्थित फ़ाइलों से बचाया जाता है।इस सॉफ़्टवेयर openInNewWindow=खुले में नई खिडकी openInThisWindow=इस विंडो में खोलें +openLink=लिंक खोलें +openSupported=XML स्वरूपित समर्थित फ़ाइलों से बचाया जाता है।इस सॉफ़्टवेयर +operation=प्रचालन options=विकल्प +opts=विकल्प organic=ऑर्गेनिक orthogonal=Orthogonal +outgoingedge=आउटगोइंग तीक्ष्णता को खो दिया है। outline=रूपरेखा +output=उत् पादन में oval=अंडाकार -pages=पृष्ठ -pageView=पृष्ठ दृश्य pageScale=पृष्ठ पर pageSetup=सेटअप पृष्ठ +pageView=पृष्ठ दृश्य +pages=पृष्ठ panTooltip=स्क्रॉल करने के लिए अन्तरिख्र कर्षण paperSize=कागज आकार paste=चिपकाने pasteHere=यहां चिपकाने pattern=ढंग +pause=Pause perimeter=पैरीमीटर +phone=फ़ोन placeholders=प्लेसहोल्डर +playback=प्लेबैक plusTooltip=कनेक् ट करने के लिए क्लिक करें पर क्लिक करें और क्लोन (ctrl कनेक्ट करने के लिए, Shift करें पर क्लिक करें. क्लोन कनेक् ट करने के लिए घसीटकर ctrl क्लोन) (कर्षण portrait=पोर्ट्रेट position=की स्थिति posterPrint=पोस्टर मुद्रित करें preview=पूर्वावलोकन print=प्रिंट +priority=प्राथमिकता +project_id=परियोजना +publish=Pubblica +query=पूछा गया प्रश्न +queue=कतार +queue_event=इवेंट +queue_id=कतार +queue_variable=कतार से परिवर्तनीय +queuelog=QueueLog +queuename=लोकतंत्रमें नाम radialTree=त्रिज् वृक्ष +record=रिकार्ड +recording=रिकॉर्डिंग +recordingFormat=स्वरूप redo=पुनर्लिखित removeFormat=साफ स्वरूपण removeFromGroup=समूह से निकालें @@ -242,12 +386,16 @@ removeWaypoint=दूर मार्ग बिंदु rename=नाम बदलें renameIt={1} का नाम बदलें replace=को बदलने -replaceIt={1} पहले से मौजूद है. क्या आप इसे बदलना चाहते हैं? replaceExistingDrawing=वर्तमान स्थान आहरण +replaceIt={1} पहले से मौजूद है. क्या आप इसे बदलना चाहते हैं? reset=रीसेट करें resetView=राय को रीसेट करें +response=प्रत्युत्तर समयबाह्य +result=परिणाम +retry=पुन: प्रयास करें. right=अधिकार rightAlign=अधिकार कनेक्टरों +rightOperand=अधिकार Operand rightToLeft=अधिकार को रवाना rotate=घुमाएँ rotateTooltip=वैश्यों और पर क्लिक करें पर क्लिक करें. को घुमाने के लिए 90 डिग्री @@ -256,6 +404,9 @@ rounded=लडें save=सहेजें saveAs=इस रूप में सहेजें saved=सहेजा गया +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Scrollbars search=खोज searchShapes=खोज आकारों @@ -264,6 +415,10 @@ selectEdges=किनारों का चयन करें selectFont=फ़ॉन्ट चुनें selectNone=किसी का भी चयन selectVertices=Vertices चुनें +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=सेट करें setAsDefaultStyle=डिफ़ॉल्ट शैली के रूप में सेट करें shadow=छाया shape=आकार @@ -271,21 +426,34 @@ sharp=कन् धे sidebarTooltip=का विस्तार करने के लिए क्लिक करें. वैश्यों और आकार में बीच में ही पढाई छोड देने के लिये हैं। चयन करें पर क्लिक करें. शिफ्ट परिवर्तन कनेक्ट करें पर क्लिक करें और दबाएं. Alt डालना simple=सरल simpleArrow=साधारण तीर +sip_id=कमरंद size=आकार +sms_text=पाठ solid=ठोस sourceSpacing=स्पेसिंग स्रोत south=दक्षिण spacing=निरोधक +speed=गति +start=प्रारंभ +stats=आंकड़े straight=सीधा strokeColor=लाइन का रंग style=शैली +subject=विषय +subproject=SubProject subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=प्रणाली table=तालिका targetSpacing=स्पेसिंग लक्ष्य +template_id=टेम्पलेट text=पाठ textAlignment=पाठ संलेखन textOpacity=पाठ Opacity +threshold=देहलीज +timeout=समयबाह्य (सेकंड) +to=करना toBack=को वापस toFront=के सामने tooltips=Tooltips @@ -294,206 +462,38 @@ topAlign=शीर्ष कनेक्टरों topLeft=शीर्ष topRight=ऊपरी transparent=पारदर्शी +trueOrFalse=डालें सही है या गलत है। +trunk=सूंड +trunk_name=सूंड +tts=TTS turn=मोड़ uml=साधनाप्रधान का परसों निधन हो गया underline=अंडरलाइन undo=बिगाडना ungroup=Ungroup -url=URL +unpause=End pause untitledLayer=अनामांकित परत +updatingDocument=अद्यतन दस्तावेज है। कृपया प्रतीक्षा करें... +updatingSelection=अद्यतन का चयन है। कृपया प्रतीक्षा करें... +url=URL +value=मूल्य +variable=परिवर्तनीय +variable_id=परिवर्तनीय +variable_value=परिवर्तनीय मूल्य vertical=ऊर्ध् वगामी verticalFlow=ऊर्ध् वगामी प्रवाह verticalTree=ऊर्ध् वगामी वृक्ष view=विचार +voicemail=वॉयसमेल +vswitch=स्विच करें waypoints=Waypoints west=पश्चिम width=चौड़ाई wordWrap=वर्ड रैप writingDirection=लेखन दिशा +wrongHiddenDigitsnum=छुपा डिजिट नंबर 0 पर समान या अधिक होना चाहिए। +wrongMaxDigit=अधिकतम अंक है और अधिक से अधिक 0 +wrongMinDigit=मिन अंकीय को अधिक 0 zoom=ज़ूम करें zoomIn=ज़ूम इन करें. -zoomOut=ज़ूम आउट -label=लेबल -timeout=समयबाह्य (सेकंड) -response=प्रत्युत्तर समयबाह्य -digit=अधिकतम अंक -escape=Escape अंगुलि -retry=पुन: प्रयास करें. -name=नाम -value=मूल्य -entry=प्रवेश -start=प्रारंभ -finally=अंतत: -end=अन्त -variable=परिवर्तनीय -set=सेट करें -operation=प्रचालन -math=मुंडक -result=परिणाम -call_management=प्रबंधन को कॉल करें -answer=उत्तर -hangup=Hangup -dial=आंतरिक डायल करें -ext_dial=बाह्य डायल करें -phone=फ़ोन -trunk=सूंड -identifier=Identifier -queue=कतार -voicemail=वॉयसमेल -boxnumber=बॉक्स संख्या -playback=प्लेबैक -menu=मेनू -saydigits=SayDigits -digits=मापा -saynumber=SayNumber -number=की संख्या -sayphonetic=SayPhonetic -escape_digits=Escape अंगुलि -tts=TTS -ispeechtts=ISpeechTTS -key=कुंजी दबाएं -getdigits=GetDigits -mindigit=मिन अंगुलि -maxdigit=अधिकतम अंक -custom_app=कस्टम App World -language=की भाषा -frequency=आवृत्ति -integrationServer=सर्वर एकीकरण -database=डाटाबेस -query=पूछा गया प्रश्न -asr=ASR -sendSMS=SendSMS -account_id=खाते -template_id=टेम्पलेट -to=करना -sms_text=पाठ -sendMail=SendMail -subject=विषय -cc=प्रतिलिपि -threshold=देहलीज -maxspeech=अधिकतम भाषण -grammar=व्याकरण -ispeechasr=ISpeechASR -model=आदर्श -noop=NoOp -output=उत् पादन में -system=प्रणाली -command=कमांड -application=अनुप्रयोग -agi=AGI -args=तर्क -subproject=SubProject -goalname=गोल नाम -callflow=Callflow -gotoc=जाएँगे| -context=संदर्भ -extension=विस्तार -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=उस समय अन्तराल -leftOperand=बाएं Operand -condition=दशा -rightOperand=अधिकार Operand -vswitch=स्विच करें -recording=रिकॉर्डिंग -record=रिकार्ड -queuename=लोकतंत्रमें नाम -announceoverride=ओवरराइड की घोषणा -callid=CallID -agent=कर्ता -queue_event=इवेंट -data1=डेटा1 -data2=डेटा2 -data3=डेटा3 -data4=डेटा4 -data5=डेटा5 -macro=स्थूल -stats=आंकड़े -queuelog=QueueLog -goal=गोल -callback=कॉलबैक -list=की सूची -delay=विलंब -list_id=की सूची -opts=विकल्प -queue_id=कतार -file_id=फाइल -variable_id=परिवर्तनीय -gosub=Gosub -project_id=परियोजना -sip_id=कमरंद -trunk_name=सूंड -variable_value=परिवर्तनीय मूल्य -database_id=डाटाबेस -interval_id=अन्तराल -description_start=प्रारंभ में शुमार -publish=Pubblica -ispeech_asr_language=की भाषा -ispeech_tts_language=की भाषा -google_tts_language=की भाषा -queue_variable=कतार से परिवर्तनीय -odbc_id=ODBC कनेक्शन -noVariableSelected=परिवर्तनीय है निर्दिष्ट नहीं किया गया. -noTrunkSelected=सूंड का निर्दिष्ट नहीं किया गया है। -noAudioSelected=ऑडियो फ़ाइल निर्दिष्ट नहीं है। -noOperandSelected=बाएं operand निर्दिष्ट नहीं किया गया है। -noDatabaseSelected=डाटाबेस निर्दिष्ट नहीं किया गया. -noExtensionSelected=विस्तार नहीं है। -noCommandSelected=कमान निर्दिष्ट नहीं किया गया. -noApplicationSelected=अनुप्रयोग निर्दिष्ट नहीं -noRightOperandSelected=निर्दिष्ट नहीं operand अधिकार -noDigitsSelected=मापा नहीं है। -noNumberSelected=यह संख्या निर्दिष्ट नहीं किया गया. -noRecipientSelected=प्राप्तकर्ता निर्दिष्ट नहीं किया गया है। -noTextSelected=पाठ नहीं है। -noAccountSelected=खाते निर्दिष्ट नहीं है। -noKeySelected=कुंजी नहीं है। -noIdentifierSelected=निर्दिष्ट नहीं Identifier -noQueueSelected=नाम निर्दिष्ट नहीं है कतार -noConditionSelected=िस्थति यह निर्दिष्ट नहीं किया गया है। -noIntervalSelected=मध्यांतर तक नहीं है। -noContextSelected=संदर्भ निर्दिष्ट नहीं किया गया. -noBoxNumberSelected=बॉक्स नाम निर्दिष्ट नहीं है। -noProjectSelected=निर्दिष्ट नहीं SubProject -noFileSelected=फ़ाइल नाम निर्दिष्ट नहीं किया गया है। -numberOrInvalidOrTimeout=मेरा नंबर डालें या t) (सफेद रिक्तियां सत्यापित करें -numberOrAll=- संख्या या डालें. -numberOrInvalidOrDefault=मॅँ, x डालें या - है। -trueOrFalse=डालें सही है या गलत है। -noGoalSelected=लक्ष्य यह निर्दिष्ट नहीं किया गया. -noListSelected=सूची में निर्दिष्ट नहीं है। -musthave=अवश्य -outgoingedge=आउटगोइंग तीक्ष्णता को खो दिया है। -incomingedge=इनकमिंग तीक्ष्णता को खो दिया है। -mailbox=मेलबॉक्स -intKey=व्यवधान कुंजी दबाएं. -speed=गति -wrongMinDigit=मिन अंकीय को अधिक 0 -wrongMaxDigit=अधिकतम अंक है और अधिक से अधिक 0 -wrongHiddenDigitsnum=छुपा डिजिट नंबर 0 पर समान या अधिक होना चाहिए। -hiddendigitsnum=छुपा डिजिट नंबर -hiddendigitspos=छुपा अंकों की स्थिति -getsecretdigits=GetSecretDigits -beep=आवाज़ करना -description=वर्णन -recordingFormat=स्वरूप -bcc=गुप्त प्रतिलिपि -invalidTimeout=अमान्य टाइमआउट मान -invalidRetry=अमान्य पुनर्प्रयास मूल्य -invalidSpeed=अमान् य गति मूल्य -missingQuery=इस प्रश्न के तार लापता -invalidPriority=अमान्य प्राथमिकता मूल्य -invalidDelay=अमान्य विलंब मूल्य -noAttachmentSelected=संलग्नक नहीं चुना -sendFax=SendFax -attachment_name=चयनित संलग् नक -choose_attachment=संलग्नक चुनें -help_choose_attachment=Pdf टू गो का स्वरूप:, विवाद या .tif -help_delay=उस समय तक प्रतीक्षा करने से पहले संपर्क को वापस बुलाने मिनट में -noFirstNameSelected=पहला नाम निर्दिष्ट नहीं है। -noPhoneSelected=फ़ोन निर्दिष्ट नहीं -editFile=XML संपादित करें -priority=प्राथमिकता -numberOrLettersOrAll=नंबर्स, डालें या - है। -asr=ASR +zoomOut=ज़ूम आउट \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_it.txt b/public/assets/plugins/square/resources/grapheditor_it.txt index ee0cc45..dda8cbf 100644 --- a/public/assets/plugins/square/resources/grapheditor_it.txt +++ b/public/assets/plugins/square/resources/grapheditor_it.txt @@ -1,15 +1,5 @@ -alreadyConnected=Già connesso -cancel=Annulla -close=Chiudi -collapse-expand=Comprimi/Espandi -containsValidationErrors=Contiene errori di convalida -done=Fatto -doubleClickOrientation=Doppio clic per modificare l'orientamento -error=Errore -ok=OK -updatingDocument=Documento in aggiornamento. Si prega di attendere... -updatingSelection=Selezione in aggiornamento. Si prega di attendere... about=Circa +account_id=Conto actualSize=Dimensioni effettive add=Aggiungi addLayer=Aggiungi livello @@ -17,14 +7,25 @@ addProperty=Aggiungi proprietà addToExistingDrawing=Aggiungi al disegno esistente addWaypoint=Aggiungi waypoint advanced=Advanced +agent=Agente +agent_management=Gestione Agent +agi=AGI align=Allineare alignment=Allineamento allChangesLost=Tutte le modifiche saranno perse! +alreadyConnected=Già connesso angle=Angolo +announceoverride=Annuncia Override +answer=Risposta +application=Applicazione apply=Applicare +args=Argomenti arrange=Organizzare arrow=Freccia arrows=Frecce +asr=ASR +asr=ASR +attachment_name=Allegato selezionato automatic=Automatico autosave=Salvataggio automatico autosize=Autodimensionamento @@ -32,54 +33,86 @@ background=Sfondo backgroundColor=Colore di sfondo backgroundImage=Immagine di sfondo basic=Basic +bcc=Bcc +beep=Segnale acustico block=Blocco blockquote=Blockquote bold=Bold -borderWidth=Grandezza Bordo borderColor=Colore bordo +borderWidth=Grandezza Bordo bottom=Parte inferiore bottomAlign=Allinea in basso bottomLeft=In basso a sinistra bottomRight=In basso a destra +boxnumber=Casella numero bulletedList=Elenco puntato +call_management=Gestione chiamate +callback=Richiamata +callflow=Flusso chiamate +callid="CallID" +cancel=Annulla cannotOpenFile=Impossibile aprire il file +cc=Cc center=Centro change=Modificare changeOrientation=Modifica orientamento +choose_attachment=Scegliere Allegato circle=Cerchio classic=Classic clearDefaultStyle=Cancella stile predefinito clearWaypoints=Cancellare i waypoint clipart=Clipart +close=Chiudi +collapse-expand=Comprimi/Espandi collapse=Comprimi collapseExpand=Comprimi/Espandi collapsible=Riducibile comic=Fumetto +command=Comando +condition=Condizione connect=Collega connection=Collegamento -connectionPoints=Punti connessione connectionArrows=Frecce collegamento +connectionPoints=Punti connessione constrainProportions=Vincola le proporzioni +containsValidationErrors=Contiene errori di convalida +context=Contesto copy=Copia copyConnect=Copia su Connect create=Crea curved=Curvato custom=Custom +custom_app=App personalizzata cut=Taglia dashed=Tratteggio +data1=Dati1 +data2=Dati2 +data3=Dati3 +data4=Data4 +data5=Dati5 +database=Database +database_id=Database decreaseIndent=Diminuire il rientro default=Impostazione predefinita +delay=Ritardo delete=Elimina deleteColumn=Elimina colonna deleteRow=Elimina riga +description=Descrizione +description_start=Descrizione avvio diagram=Diagramma +dial=Comporre numero interno diamond=Diamond diamondThin=thin diamond +digit=Cifre max +digits=Cifre direction=Direzione distribute=Distribuire divider=Divisore documentProperties=Proprietà del documento +done=Fatto dotted=Punteggiato +doubleClickOrientation=Doppio clic per modificare l'orientamento drawing=Disegno{1} drawingEmpty=Il disegno è vuoto drawingTooLarge=Il disegno è troppo grande @@ -89,24 +122,34 @@ east=Est edit=Modifica editData=Modifica dati editDiagram=Schema di modifica +editFile=Modifica XML editImage=Modifica immagine editLink=Modifica Link editStyle=Modifica stile editTooltip=Modifica descrizione +end=End enterGroup=Inserire Gruppo -enterValue=Immettere il valore enterName=Inserire il nome enterPropertyName=Inserire nome proprietà +enterValue=Immettere il valore entityRelation=Entità rapporto +entry=Entry +error=Errore +escape=Caratteri escape +escape_digits=Caratteri escape exitGroup=Gruppo Uscita expand=Espandi export=Esporta +ext_dial=Comporre numero esterno +extension=Estensione extras=Extra file=File fileNotFound=File non trovato +file_id=File filename=Il nome del file fill=Riempire fillColor=Colore di riempimento +finally=Finally fitPage=Una pagina fitPageWidth=Larghezza pagina fitTwoPages=Due pagine @@ -115,118 +158,231 @@ flip=Flip flipH=Capovolgi orizzontalmente flipV=Flip verticale font=Font -fontFamily=Set caratteri fontColor=Colore Font +fontFamily=Set caratteri fontSize=Dimensioni caratteri format=Formato +formatGif=GIF +formatJpg=JPEG formatPanel=Pannello Formato formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Formattato formattedText=Testo formattato +frequency=Frequenza general=Generale +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glass global=Global +goal=Obiettivo +goalname=Nome obiettivo +google_tts_language=Lingua +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Gradiente gradientColor=Colore +grammar=grammatica grid=Griglia gridSize=Dimensione griglia group=Gruppo guides=Guide +hangup=Riaggancia heading=Rubrica height=Altezza help=Aiuto +help_choose_attachment=Formato: pdf, tiff o tif +help_delay=Tempo di attesa, in minuti, che prima di chiamare nuovamente il contatto +hidden=Nascosto +hiddendigitsnum= Numero di cifre nascoste +hiddendigitspos=Posizione cifre nascoste hide=Nascondi hideIt=Nascondi {1} -hidden=Nascosto home=Home horizontal=Posizione orizzontale horizontalFlow=IFlusso orizzontale horizontalTree=Albero orizzontale html=HTML +identifier=Identificatore image=Immagine images=Immagini import=Importa +incomingedge=Bordo in entrata increaseIndent=Aumentare il rientro insert=Inserire -insertColumnBefore=Inserire la colonna a sinistra insertColumnAfter=Inserisci colonna a destra +insertColumnBefore=Inserire la colonna a sinistra insertHorizontalRule=Inserire righello orizzontale insertImage=Inserire immagine insertLink=Inserire collegamento -insertRowBefore=Inserire riga sopra insertRowAfter=Inserire riga di seguito +insertRowBefore=Inserire riga sopra +intKey=Tasto di interruzione +integrationServer=Integration Server +interval=Intervallo tempo +interval_id=Intervallo +invalidDelay=Non valido invalidName=Nome non valido invalidOrMissingFile=Non valido o file mancanti +invalidPriority=Non valido +invalidRetry=Non valido +invalidSpeed=Non valido +invalidTimeout=Valore timeout non valido isometric=Vista isometrica +ispeech_asr_language=Lingua +ispeech_tts_language=Lingua +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Italic -layers=Strati +key=Tasto +label=Etichetta landscape=Paesaggio laneColor=Lanecolor +language=Lingua +layers=Strati layout=Layout left=A sinistra leftAlign=Allinea a sinistra +leftOperand=Operando a sinistra leftToRight=Da sinistra a destra line=La linea -link=Link lineend=Fine linea lineheight=Altezza riga linestart=Inizio riga linewidth=Larghezza linea +link=Link +list=Elenco +list_id=Elenco loading=Caricamento lockUnlock=Blocca/sblocca +login=Login +logout=Logout +lumenvoxasr=LumenvoxASR +lumenvoxtts=LumenvoxTTS +macro=Macro +mailbox=Cassetta postale manual=Manuale +math=Matematica +maxdigit=Cifre max +maxspeech=maxspeech +menu=Menu middle=Medio +mindigit=Min cifre misc=Misc +missingQuery=Stringa query mancante +model=Modello more=Di più moreResults=Più risultati move=Spostare moveSelectionTo=Sposta la selezione a {1} +musthave=Deve avere +name=Nome navigation=Navigazione new=Nuovo +noAccountSelected=Account non specificato +noAppIdInserted=App ID non inserito +noAppSecretInserted=App Secret non inserito +noApplicationSelected=Applicazione non specificata +noAttachmentSelected=Nessun allegato selezionato +noAudioSelected=File audio non specificato +noBoxNumberSelected=Casella Nome non specificato noColor=Nessun colore +noCommandSelected=Il comando non è specificato +noConditionSelected=Condizione non specificata +noContextSelected=Contesto non specificato +noDatabaseSelected=Database non specificato +noDigitsSelected=Cifre non specificate +noExtensionSelected=Interno non specificato. +noFileSelected=Nome del file non specificato noFiles=Nessun file +noFindBySelected=Trova per non è specificato. +noFirstNameSelected=Nome non specificato +noGoalSelected=Obiettivo non specificato +noGrammarSelected=Grammatica non inserita +noIdentifierSelected=Identificatore non specificato +noIntervalSelected=Intervallo non specificato +noKeySelected=Chiave non specificata +noListSelected=Elenco non specificato noMoreResults=Nessun altro risultato -none=Nessuno +noNumberSelected=Numero non specificato +noOperandSelected=Operando a sinistra non specificato +noPhoneSelected=Telefono non specificato +noProjectSelected=Sottoprogetto non specificato +noQueueSelected=Nome della coda non specificato +noRecipientSelected=Destinatario non specificato noResultsFor=Nessun risultato per '{1}' +noRightOperandSelected=Operando a destra non specificato +noTextSelected=Testo non specificato +noTrunkSelected=Trunk non specificata +noVariableSelected=Variabile non specificata +none=Nessuno +noop=NoOp normal=Normale north=Nord +number=Numero +numberOrAll=Inserire il numero o - +numberOrInvalidOrDefault=Inserire x mi o -. +numberOrInvalidOrTimeout=Inserire numero, i o t (verificare spazi bianchi) +numberOrLettersOrAll=Inserire numeri, lettere o -. numberedList=Elenco numerato +odbc_id=Connessione ODBC +ok=OK opacity=Opacità open=Apri openArrow=Aprire la freccia openFile=Aprire il file -openLink=Apri collegamento -openSupported=Formato supportato è .xml openInNewWindow=Apri in una nuova finestra openInThisWindow=In questa finestra +openLink=Apri collegamento +openSupported=Formato supportato è .xml +operation=Funzionamento options=Opzioni +opts=Opzioni organic=Organic orthogonal=Ortogonale +outgoingedge=Bordo di uscita outline=Contorno +output=Uscita oval=Di forma ovale -pages=Pagine -pageView=Visualizzazione pagina pageScale=Scala di pagina pageSetup=Impostazione pagina +pageView=Visualizzazione pagina +pages=Pagine panTooltip=Trascina per scorrere paperSize=Formato carta paste=Incolla pasteHere=Incolla qui pattern=Pattern +pause=Pausa perimeter=Perimetro +phone=Telefono placeholders=I segnaposto +playback=Playback plusTooltip=Fare clic per collegare e clonare (Ctrl + clic per clonare, MAIUSC clic per collegare). Trascinare per collegare (ctrl trascina al clone) portrait=Ritratto position=Posizione posterPrint=Stampa poster preview=Visualizzare Anteprima print=Stampare +priority=Priorità +project_id=Progetto +publish=Pubblica +query=Query +queue=Coda +queue_event=Evento +queue_id=Coda +queue_variable=Variabile coda +queuelog=QueueLog +queuename=Nome coda radialTree=Struttura radiale +record=Registrare +recording=Registrazione +recordingFormat=Formato redo=Ripeti removeFormat=Cancella formattazione removeFromGroup=Rimuovi dal gruppo @@ -235,12 +391,16 @@ removeWaypoint=Rimuovere Waypoint rename=Rinomina renameIt=Rinomina {1} replace=Sostituire -replaceIt={1} esiste già. Si desidera sostituirlo? replaceExistingDrawing=Sostituire il disegno esistente +replaceIt={1} esiste già. Si desidera sostituirlo? reset=Reimpostare resetView=Vista Reset +response=Timeout risposta +result=Risultato +retry=Riprova right=A destra rightAlign=Allinea a destra +rightOperand=Operando a destra rightToLeft=Da destra a sinistra rotate=Ruotare rotateTooltip=Fai clic e trascina per ruotare, fare clic per ruotare di novanta gradi @@ -249,6 +409,9 @@ rounded=Arrotondato save=Salva saveAs=Salva come saved=Salvato +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Barre di scorrimento search=Ricerca searchShapes=Forme di ricerca @@ -257,6 +420,12 @@ selectEdges=Selezionare Bordi selectFont=Selezionare Font selectNone=Selezionare Nessuno selectVertices=Selezionare vertici +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +sestekasr=SestekASR +sestektts=SestekTTS +set=Imposta setAsDefaultStyle=Imposta come stile di default shadow=Ombra shape=Forma @@ -264,21 +433,35 @@ sharp=Sharp sidebarTooltip=Clic per espandere. Trascinare e rilasciare le forme nel diagramma. Clic su Maiusc per modificare la selezione. Alt + clic per inserire e collegare simple=Semplice simpleArrow=Freccia semplice +sip_id=Protocollo SIP size=Dimensioni +sms_account_id=Account +sms_text=Testo solid=Solido sourceSpacing=Spaziatura di origine south=Sud spacing=Spaziatura +speed=Velocità +start=Start +stats=Statistiche straight=Dritto strokeColor=Colore linea style=Lo stile +subject=Oggetto +subproject=Sottoprogetto subscript=Subscript +successOrFailure=Inserisci success o failure. superscript=Superscript +system=Sistema table=Tabella targetSpacing=Spaziatura destinazione +template_id=Modello text=Testo textAlignment=Allineamento testo textOpacity=Opacità testo +threshold=Valore soglia +timeout=Timeout (secondi) +to=A toBack=A indietro toFront=Parte anteriore tooltips=Descrizioni dei comandi @@ -287,221 +470,38 @@ topAlign=Allinea in alto topLeft=In alto a sinistra topRight=In alto a destra transparent=Trasparente +trueOrFalse=Inserire valore true o false +trunk=trunk +trunk_name=Trunk +tts=TTS turn=Ruota uml=UML underline=Sottolinea undo=Annulla ungroup=Separa -url=URL +unpause=Fine pausa untitledLayer=Layer senza titolo +updatingDocument=Documento in aggiornamento. Si prega di attendere... +updatingSelection=Selezione in aggiornamento. Si prega di attendere... +url=URL +value=Valore +variable=Variabile +variable_id=Variabile +variable_value=Valore variabile vertical=In verticale verticalFlow=Flusso verticale verticalTree=Struttura ad albero verticale view=Visualizza +voicemail=VoiceMail +vswitch=Interruttore waypoints=Waypoint west=West width=Larghezza wordWrap=Word wrap writingDirection=Direzione scrittura +wrongHiddenDigitsnum=Numero di cifre nascoste deve essere maggiore o uguale a 0 +wrongMaxDigit=Cifra massima deve essere maggiore di 0 +wrongMinDigit=Min cifra deve essere maggiore di 0 zoom=Zoom zoomIn=Zoom avanti -zoomOut=Zoom indietro -label=Etichetta -timeout=Timeout (secondi) -response=Timeout risposta -digit=Cifre max -escape=Caratteri escape -retry=Riprova -name=Nome -value=Valore -entry=Entry -start=Start -finally=Finally -end=End -variable=Variabile -set=Imposta -operation=Funzionamento -math=Matematica -result=Risultato -call_management=Gestione chiamate -answer=Risposta -hangup=Riaggancia -dial=Comporre numero interno -ext_dial=Comporre numero esterno -phone=Telefono -trunk=trunk -identifier=Identificatore -queue=Coda -voicemail=VoiceMail -boxnumber=Casella numero -playback=Playback -menu=Menu -saydigits=SayDigits -digits=Cifre -saynumber=SayNumber -number=Numero -sayphonetic=SayPhonetic -escape_digits=Caratteri escape -tts=TTS -ispeechtts=ISpeechTTS -key=Tasto -getdigits=GetDigits -mindigit=Min cifre -maxdigit=Cifre max -custom_app=App personalizzata -language=Lingua -frequency=Frequenza -integrationServer=Integration Server -database=Database -query=Query -asr=ASR -sendSMS=SendSMS -account_id=Conto -template_id=Modello -to=A -sms_text=Testo -sendMail=SendMail -subject=Oggetto -cc=Cc -threshold=Valore soglia -maxspeech=maxspeech -grammar=grammatica -ispeechasr=ISpeechASR -model=Modello -noop=NoOp -output=Uscita -system=Sistema -command=Comando -application=Applicazione -agi=AGI -args=Argomenti -subproject=Sottoprogetto -goalname=Nome obiettivo -callflow=Flusso chiamate -gotoc=Goto -context=Contesto -extension=Estensione -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Intervallo tempo -leftOperand=Operando a sinistra -condition=Condizione -rightOperand=Operando a destra -vswitch=Interruttore -recording=Registrazione -record=Registrare -queuename=Nome coda -announceoverride=Annuncia Override -callid="CallID" -agent=Agente -queue_event=Evento -data1=Dati1 -data2=Dati2 -data3=Dati3 -data4=Data4 -data5=Dati5 -macro=Macro -stats=Statistiche -queuelog=QueueLog -goal=Obiettivo -callback=Richiamata -list=Elenco -delay=Ritardo -list_id=Elenco -opts=Opzioni -queue_id=Coda -file_id=File -variable_id=Variabile -gosub=Gosub -project_id=Progetto -sip_id=Protocollo SIP -trunk_name=Trunk -variable_value=Valore variabile -database_id=Database -interval_id=Intervallo -description_start=Descrizione avvio -publish=Pubblica -ispeech_asr_language=Lingua -ispeech_tts_language=Lingua -google_tts_language=Lingua -queue_variable=Variabile coda -odbc_id=Connessione ODBC -noVariableSelected=Variabile non specificata -noTrunkSelected=Trunk non specificata -noAudioSelected=File audio non specificato -noOperandSelected=Operando a sinistra non specificato -noDatabaseSelected=Database non specificato -noExtensionSelected=Interno non specificato. -noCommandSelected=Il comando non è specificato -noApplicationSelected=Applicazione non specificata -noRightOperandSelected=Operando a destra non specificato -noDigitsSelected=Cifre non specificate -noNumberSelected=Numero non specificato -noRecipientSelected=Destinatario non specificato -noTextSelected=Testo non specificato -noAccountSelected=Account non specificato -noKeySelected=Chiave non specificata -noIdentifierSelected=Identificatore non specificato -noQueueSelected=Nome della coda non specificato -noConditionSelected=Condizione non specificata -noIntervalSelected=Intervallo non specificato -noContextSelected=Contesto non specificato -noBoxNumberSelected=Casella Nome non specificato -noProjectSelected=Sottoprogetto non specificato -noFileSelected=Nome del file non specificato -numberOrInvalidOrTimeout=Inserire numero, i o t (verificare spazi bianchi) -numberOrAll=Inserire il numero o - -numberOrInvalidOrDefault=Inserire x mi o -. -trueOrFalse=Inserire valore true o false -noGoalSelected=Obiettivo non specificato -noListSelected=Elenco non specificato -musthave=Deve avere -outgoingedge=Bordo di uscita -incomingedge=Bordo in entrata -mailbox=Cassetta postale -intKey=Tasto di interruzione -speed=Velocità -wrongMinDigit=Min cifra deve essere maggiore di 0 -wrongMaxDigit=Cifra massima deve essere maggiore di 0 -wrongHiddenDigitsnum=Numero di cifre nascoste deve essere maggiore o uguale a 0 -hiddendigitsnum= Numero di cifre nascoste -hiddendigitspos=Posizione cifre nascoste -getsecretdigits=GetSecretDigits -beep=Segnale acustico -description=Descrizione -recordingFormat=Formato -bcc=Bcc -invalidTimeout=Valore timeout non valido -invalidRetry=Non valido -invalidSpeed=Non valido -missingQuery=Stringa query mancante -invalidPriority=Non valido -invalidDelay=Non valido -noAttachmentSelected=Nessun allegato selezionato -sendFax=SendFax -attachment_name=Allegato selezionato -choose_attachment=Scegliere Allegato -help_choose_attachment=Formato: pdf, tiff o tif -help_delay=Tempo di attesa, in minuti, che prima di chiamare nuovamente il contatto -noFirstNameSelected=Nome non specificato -noPhoneSelected=Telefono non specificato -editFile=Modifica XML -priority=Priorità -numberOrLettersOrAll=Inserire numeri, lettere o -. -asr=ASR -lumenvoxtts=LumenvoxTTS -sestektts=SestekTTS -lumenvoxasr=LumenvoxASR -sestekasr=SestekASR -noGrammarSelected=Grammatica non inserita -noAppIdInserted=App ID non inserito -noAppSecretInserted=App Secret non inserito -sms_account_id=Account -pause=Pausa -unpause=Fine pausa -successOrFailure=Inserisci success o failure. -agent_management=Gestione Agent -noFindBySelected=Trova per non è specificato. -login=Login -logout=Logout \ No newline at end of file +zoomOut=Zoom indietro \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_ja.txt b/public/assets/plugins/square/resources/grapheditor_ja.txt index f077ae3..d2db600 100644 --- a/public/assets/plugins/square/resources/grapheditor_ja.txt +++ b/public/assets/plugins/square/resources/grapheditor_ja.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=ノードがすでに接続されている -cancel=キャンセル -close=閉じる -collapse-expand=収縮 / 展開 -containsValidationErrors=検証エラーが含まれてい -done=完了 -doubleClickOrientation=ダブルクリックして方向を変更します。 -error=エラーが発生しました -ok=OK をクリック -updatingDocument=ドキュメントを更新しています。 しばらくお待ちください ... -updatingSelection=選択範囲を更新しています。 しばらくお待ちください ... about=について +account_id=アカウント actualSize=実際のサイズ add=を追加 addLayer=レイヤを追加します @@ -24,14 +7,25 @@ addProperty=プロパティの追加 addToExistingDrawing=既存の図面を追加するには addWaypoint=ウェイポイントの追加 advanced=高度な +agent=エージェント +agent_management=Agent Management +agi=AGI align=位置合わせ alignment=位置合わせ allChangesLost=すべての変更が失われます。 +alreadyConnected=ノードがすでに接続されている angle=角度 +announceoverride=オーバーライドを発表 +answer=答え +application=アプリケーション apply=適用 +args=引数 arrange=アレンジ arrow=矢印 arrows=矢印 +asr=ASR +asr=ASR +attachment_name=選択された添付ファイル automatic=自動 autosave=自動保存 autosize=Autosize @@ -39,54 +33,86 @@ background=背景 backgroundColor=背景色 backgroundImage=背景イメージ basic=基本的な +bcc=Bcc +beep=ビープ音が発生 block=ブロック blockquote=Blockquote bold=太字 -borderWidth=Borderwidth borderColor=境界線の色 +borderWidth=Borderwidth bottom=下部 bottomAlign=下揃え bottomLeft=下部左 bottomRight=一番下の右 +boxnumber=ボックス番号 bulletedList=箇条書きリスト +call_management=通話の管理 +callback=コールバック +callflow=コールフロー +callid=CallID +cancel=キャンセル cannotOpenFile=ファイルを開くことができません +cc=Cc center=センター change=変更 changeOrientation=方向を変更します。 +choose_attachment=添付ファイルを選択します circle=円 classic=クラシック clearDefaultStyle=デフォルトのスタイルのクリア clearWaypoints=ウェイポイントをクリア clipart=クリップアート +close=閉じる +collapse-expand=収縮 / 展開 collapse=折りたたむ collapseExpand=収縮 / 展開 collapsible=折りたたみ可能な comic=コミック +command=コマンド +condition=状態 connect=接続 connection=接続 -connectionPoints=接続ポイント connectionArrows=接続の矢印 +connectionPoints=接続ポイント constrainProportions=「縦横比を固定 +containsValidationErrors=検証エラーが含まれてい +context=コンテキスト copy=コピー copyConnect=接続のコピー create=作成する curved=曲線 custom=カスタム +custom_app=カスタムアプリケーション cut=カット dashed=点線 +data1=データ 1 +data2=データ 2 +data3=データ 3 +data4=データ 4 +data5=データ 5 +database=データベース +database_id=データベース decreaseIndent=インデントを減らす default=デフォルト +delay=遅延 delete=削除 deleteColumn=列を削除します deleteRow=行を削除します +description=説明 +description_start=[ スタート ] ボタンの説明 diagram=図 +dial=内部ダイヤル diamond=ダイヤモンド diamondThin=ダイヤモンド(シン) +digit=最大の桁 +digits=桁数 direction=方向 distribute=配布 divider=ディバイダ documentProperties=ドキュメントのプロパティ +done=完了 dotted=ドットで区切られた +doubleClickOrientation=ダブルクリックして方向を変更します。 drawing=図面 { 1 } drawingEmpty=図面が空 drawingTooLarge=図面が大きすぎます @@ -96,24 +122,34 @@ east=東 edit=編集 editData=データの編集 editDiagram=図を編集する +editFile=XML を編集して editImage=イメージの編集 editLink=リンクの編集 editStyle=スタイルの編集 editTooltip=編集ツールチップ +end=終了 enterGroup=グループを入力します。 -enterValue=値を入力します。 enterName=名前を入力します。 enterPropertyName=プロパティ名を入力します。 +enterValue=値を入力します。 entityRelation=エンティティ関係 +entry=エントリ +error=エラーが発生しました +escape=エスケープ桁 +escape_digits=エスケープ桁 exitGroup=グループを終了 expand=を展開し export=エクスポート +ext_dial=外部ダイヤル +extension=拡張子 extras=エクストラ file=ファイル fileNotFound=ファイルが見つかりませんでした +file_id=ファイル filename=ファイル名 fill=塗りつぶし fillColor=塗りのカラー +finally=最終的に fitPage=1 つのページ fitPageWidth=ページ幅 fitTwoPages=2 つのページ @@ -122,118 +158,226 @@ flip=反転 flipH=水平方向に反転 flipV=垂直方向に反転 font=フォント -fontFamily=フォントファミリ fontColor=フォントの色 +fontFamily=フォントファミリ fontSize=フォントのサイズ format=フォーマット +formatGif=GIF +formatJpg=JPEG formatPanel=形式パネル formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=書式設定された formattedText=フォーマットされたテキスト +frequency=周波数 general=一般的な +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=ガラス global=グローバル +goal=目標 +goalname=目標の名前 +google_tts_language=言語 +gosub=Gosub +gotoc=後藤 +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=グラデーション gradientColor=カラー +grammar=文法 grid=グリッド gridSize=グリッドサイズ group=グループ guides=ガイド +hangup=切る heading=見出し height=高さ help=ヘルプ +help_choose_attachment=形式: PDF 、 TIFF 、または tif +help_delay=時間を、分単位では、連絡先に電話をする前に待機する +hidden=非表示 +hiddendigitsnum=非表示の桁数 +hiddendigitspos=非表示の桁位置 hide=非表示にする hideIt={ 非表示 1 } -hidden=非表示 home=ホーム horizontal=水平方向の horizontalFlow=水平方向のフロー horizontalTree=水平方向のツリー html=HTML +identifier=の識別子 image=イメージ images=画像 import=インポート +incomingedge=着信の端になります。 increaseIndent=インデントを増やします insert=を挿入します -insertColumnBefore=左に列を挿入 insertColumnAfter=右に列を挿入 +insertColumnBefore=左に列を挿入 insertHorizontalRule=水平方向の罫線を挿入します insertImage=画像を挿入します。 insertLink=リンクの挿入 -insertRowBefore=行を上に挿入 insertRowAfter=下に行を挿入 +insertRowBefore=行を上に挿入 +intKey=割り込みキー +integrationServer=サーバの統合 +interval=時間間隔 +interval_id=間隔 +invalidDelay=無効な間隔の値 invalidName=名前が無効です。 invalidOrMissingFile=無効または欠落しているファイル +invalidPriority=無効な優先度の値 +invalidRetry=無効な再試行値の設定 +invalidSpeed=無効な速度の値 +invalidTimeout=タイムアウト値が無効です。 isometric=アイソメトリック +ispeech_asr_language=言語 +ispeech_tts_language=言語 +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=イタリック体 -layers=レイヤー +key=キー +label=ラベル landscape=横向き laneColor=Lanecolor +language=言語 +layers=レイヤー layout=レイアウト left=左 leftAlign=左揃え +leftOperand=左のオペランド leftToRight=左から右へ line=ライン -link=リンク lineend=行の終わり lineheight=行の高さ linestart=線を開始します。 linewidth=線幅 +link=リンク +list=リスト +list_id=リスト loading=ロード lockUnlock=ロック / ロック解除 +login=Login +logout=Logout +macro=マクロ +mailbox=メールボックス manual=マニュアル +math=数学 +maxdigit=最大桁数 +maxspeech=最大音声 +menu=メニュー middle=中央 +mindigit=最小桁数 misc=その他 +missingQuery=クエリ文字列が見つかりません +model=モデル more=詳細 moreResults=以上の結果を move=移動 moveSelectionTo=選択を { 1 } に移動 +musthave=を持っている必要があり +name=名 navigation=ナビゲーション new=新しい +noAccountSelected=アカウントが指定されていません。 +noApplicationSelected=アプリケーションが指定されていません。 +noAttachmentSelected=添付ファイルが選択されていません +noAudioSelected=オーディオファイルが指定されていません。 +noBoxNumberSelected=[ 名前 ] ボックスに指定されていません。 noColor=カラーはありません +noCommandSelected=コマンドが指定されていません。 +noConditionSelected=条件が指定されていません。 +noContextSelected=コンテキストが指定されていません。 +noDatabaseSelected=データベースが指定されていません。 +noDigitsSelected=桁が指定されていません。 +noExtensionSelected=拡張子が指定されていません。 +noFileSelected=ファイル名が指定されていません。 noFiles=ファイルがありません +noFindBySelected=Find by is not specified. +noFirstNameSelected=最初の名前が指定されていません +noGoalSelected=目標が指定されていません。 +noIdentifierSelected=識別子が指定されていません。 +noIntervalSelected=間隔が指定されていません。 +noKeySelected=キーが指定されていません。 +noListSelected=リストが指定されていません。 noMoreResults=以上の結果はありません -none=なし +noNumberSelected=番号が指定されていません。 +noOperandSelected=左のオペランドが指定されていません。 +noPhoneSelected=電話番号が指定されていません +noProjectSelected=サブプロジェクトが指定されていません。 +noQueueSelected=キュー名が指定されていません。 +noRecipientSelected=受信者が指定されていません。 noResultsFor=「 { 1 } 」の検索結果はありません +noRightOperandSelected=右オペランドが指定されていません。 +noTextSelected=テキストが指定されていません。 +noTrunkSelected=トランクが指定されていません。 +noVariableSelected=変数が指定されていません。 +none=なし +noop=NoOp normal=通常の north=北 +number=番号 +numberOrAll=番号またはを挿入します。 +numberOrInvalidOrDefault=X を挿入するには、 i または - 。 +numberOrInvalidOrTimeout=数には、 i または t を挿入します ( 空白 ) を確認します。 +numberOrLettersOrAll=数字、文字、または - を挿入します。 numberedList=番号付きリスト +odbc_id=ODBC 接続 +ok=OK をクリック opacity=不透明度 open=開く openArrow=開く矢印 openFile=ファイルを開く -openLink=リンクを開く -openSupported=サポートされている形式になっています。このソフトウェアから保存されている XML ファイル openInNewWindow=新しいウィンドウで開く openInThisWindow=このウィンドウで開く +openLink=リンクを開く +openSupported=サポートされている形式になっています。このソフトウェアから保存されている XML ファイル +operation=操作 options=オプション +opts=オプション organic=有機 orthogonal=直交 +outgoingedge=発信の端になります。 outline=概要 +output=出力 oval=楕円形の -pages=ページ -pageView=のページを表示 pageScale=ページの拡大 / 縮小 pageSetup=ページのセットアップ +pageView=のページを表示 +pages=ページ panTooltip=スペースを上下にドラッグし paperSize=用紙サイズ paste=貼り付け pasteHere=ここに貼り付けます pattern=パターン +pause=Pause perimeter=境界 +phone=電話 placeholders=プレースホルダー +playback=再生 plusTooltip=をクリックしてクローン( Ctrl キーを押しながら ] をクリックしてクローンを作成するには、 shift キーを押しながらクリックして接続)に接続します。 をドラッグして接続します ( CTRL キーを押しながらのクローンをドラッグします。 portrait=縦向き position=位置 posterPrint=ポスター印刷 preview=プレビュー print=印刷 +priority=優先順位 +project_id=プロジェクト +publish=Pubblica +query=クエリ +queue=キュー +queue_event=イベント +queue_id=キュー +queue_variable=変数からキューを選択します。 +queuelog=待ち行列 +queuename=キューの名前 radialTree=放射状のツリー +record=レコード +recording=録音 +recordingFormat=フォーマット redo=やり直し removeFormat=書式設定をクリア removeFromGroup=グループから削除 @@ -242,12 +386,16 @@ removeWaypoint=ウェイポイントの削除 rename=名前を変更する renameIt=名前を変更する { 1 } replace=を交換してください -replaceIt={ 1 } はすでに存在しています。 置換しますか ? replaceExistingDrawing=既存の図面を交換してください +replaceIt={ 1 } はすでに存在しています。 置換しますか ? reset=リセット resetView=ビューのリセット +response=応答のタイムアウト +result=結果 +retry=再試行 right=右 rightAlign=右揃え +rightOperand=右オペランド rightToLeft=右から左へ rotate=回転 rotateTooltip=をクリックして回転させるには、をクリックして 90 度をドラッグして、 @@ -256,6 +404,9 @@ rounded=丸みを帯びた save=保存 saveAs=名前を付けて保存 saved=保存された +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=スクロールバー search=検索 searchShapes=検索形状 @@ -264,6 +415,10 @@ selectEdges=エッジを選択します selectFont=フォントを選択します selectNone=「なし」を選択します。 selectVertices=頂点を選択します +sendFax=SendFax +sendMail=SendMail +sendSMS=探し 'SMSCOMPOSER.SENDSMS(); +set=設定されて setAsDefaultStyle=既定のスタイルとして設定 shadow=シャドウ shape=形状 @@ -271,21 +426,34 @@ sharp=シャープ sidebarTooltip=をクリックして展開します。 の図に形状をドラッグ & ドロップします。 Shift キーを押しながらクリックして ' 選択を変更します。 Alt キーを押しながらクリックします挿入して接続します。 simple=単純な simpleArrow=単純な矢印 +sip_id=SIP size=サイズ +sms_text=テキスト solid=ソリッド sourceSpacing=ソースの間隔 south=南 spacing=間隔 +speed=速度 +start=[ スタート ] ボタン +stats=統計情報 straight=ストレート strokeColor=線の色 style=スタイル +subject=件名 +subproject=サブプロジェクト subscript=下付き文字 +successOrFailure=Insert success or failure. superscript=上付き文字 +system=システム table=テーブル targetSpacing=ターゲットの間隔 +template_id=テンプレート text=テキスト textAlignment=テキストの配置 textOpacity=テキストの不透明度 +threshold=しきい値 +timeout=タイムアウト ( 秒 ) +to=を toBack=に戻る toFront=前面へ tooltips=ツールチップ @@ -294,206 +462,38 @@ topAlign=上揃え topLeft=上部左 topRight=上部右 transparent=透明 +trueOrFalse=True を挿入または false に設定します。 +trunk=トランク +trunk_name=トランク +tts=TTS turn=オンにする uml=UML underline=下線を入れ undo=元に戻す ungroup=グループ解除 -url=URL +unpause=End pause untitledLayer=名称未設定のレイヤ +updatingDocument=ドキュメントを更新しています。 しばらくお待ちください ... +updatingSelection=選択範囲を更新しています。 しばらくお待ちください ... +url=URL +value=値 +variable=変数 +variable_id=変数 +variable_value=変数の値 vertical=垂直 verticalFlow=垂直方向のフロー verticalTree=垂直ツリー view=ビュー +voicemail=ボイスメール +vswitch=スイッチ waypoints=ウェイポイント west=西 width=幅 wordWrap=ワードラップ writingDirection=文章の方向 +wrongHiddenDigitsnum=非表示の桁数は 0 以上でなければなりません +wrongMaxDigit=最大の桁が 0 より大きい値を指定してください +wrongMinDigit=最小桁の数字が 0 より大きい値を指定してください zoom=ズーム zoomIn=ズームで -zoomOut=ズームアウト -label=ラベル -timeout=タイムアウト ( 秒 ) -response=応答のタイムアウト -digit=最大の桁 -escape=エスケープ桁 -retry=再試行 -name=名 -value=値 -entry=エントリ -start=[ スタート ] ボタン -finally=最終的に -end=終了 -variable=変数 -set=設定されて -operation=操作 -math=数学 -result=結果 -call_management=通話の管理 -answer=答え -hangup=切る -dial=内部ダイヤル -ext_dial=外部ダイヤル -phone=電話 -trunk=トランク -identifier=の識別子 -queue=キュー -voicemail=ボイスメール -boxnumber=ボックス番号 -playback=再生 -menu=メニュー -saydigits=SayDigits -digits=桁数 -saynumber=SayNumber -number=番号 -sayphonetic=SayPhonetic -escape_digits=エスケープ桁 -tts=TTS -ispeechtts=ISpeechTTS -key=キー -getdigits=GetDigits -mindigit=最小桁数 -maxdigit=最大桁数 -custom_app=カスタムアプリケーション -language=言語 -frequency=周波数 -integrationServer=サーバの統合 -database=データベース -query=クエリ -asr=ASR -sendSMS=探し 'SMSCOMPOSER.SENDSMS(); -account_id=アカウント -template_id=テンプレート -to=を -sms_text=テキスト -sendMail=SendMail -subject=件名 -cc=Cc -threshold=しきい値 -maxspeech=最大音声 -grammar=文法 -ispeechasr=ISpeechASR -model=モデル -noop=NoOp -output=出力 -system=システム -command=コマンド -application=アプリケーション -agi=AGI -args=引数 -subproject=サブプロジェクト -goalname=目標の名前 -callflow=コールフロー -gotoc=後藤 -context=コンテキスト -extension=拡張子 -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=時間間隔 -leftOperand=左のオペランド -condition=状態 -rightOperand=右オペランド -vswitch=スイッチ -recording=録音 -record=レコード -queuename=キューの名前 -announceoverride=オーバーライドを発表 -callid=CallID -agent=エージェント -queue_event=イベント -data1=データ 1 -data2=データ 2 -data3=データ 3 -data4=データ 4 -data5=データ 5 -macro=マクロ -stats=統計情報 -queuelog=待ち行列 -goal=目標 -callback=コールバック -list=リスト -delay=遅延 -list_id=リスト -opts=オプション -queue_id=キュー -file_id=ファイル -variable_id=変数 -gosub=Gosub -project_id=プロジェクト -sip_id=SIP -trunk_name=トランク -variable_value=変数の値 -database_id=データベース -interval_id=間隔 -description_start=[ スタート ] ボタンの説明 -publish=Pubblica -ispeech_asr_language=言語 -ispeech_tts_language=言語 -google_tts_language=言語 -queue_variable=変数からキューを選択します。 -odbc_id=ODBC 接続 -noVariableSelected=変数が指定されていません。 -noTrunkSelected=トランクが指定されていません。 -noAudioSelected=オーディオファイルが指定されていません。 -noOperandSelected=左のオペランドが指定されていません。 -noDatabaseSelected=データベースが指定されていません。 -noExtensionSelected=拡張子が指定されていません。 -noCommandSelected=コマンドが指定されていません。 -noApplicationSelected=アプリケーションが指定されていません。 -noRightOperandSelected=右オペランドが指定されていません。 -noDigitsSelected=桁が指定されていません。 -noNumberSelected=番号が指定されていません。 -noRecipientSelected=受信者が指定されていません。 -noTextSelected=テキストが指定されていません。 -noAccountSelected=アカウントが指定されていません。 -noKeySelected=キーが指定されていません。 -noIdentifierSelected=識別子が指定されていません。 -noQueueSelected=キュー名が指定されていません。 -noConditionSelected=条件が指定されていません。 -noIntervalSelected=間隔が指定されていません。 -noContextSelected=コンテキストが指定されていません。 -noBoxNumberSelected=[ 名前 ] ボックスに指定されていません。 -noProjectSelected=サブプロジェクトが指定されていません。 -noFileSelected=ファイル名が指定されていません。 -numberOrInvalidOrTimeout=数には、 i または t を挿入します ( 空白 ) を確認します。 -numberOrAll=番号またはを挿入します。 -numberOrInvalidOrDefault=X を挿入するには、 i または - 。 -trueOrFalse=True を挿入または false に設定します。 -noGoalSelected=目標が指定されていません。 -noListSelected=リストが指定されていません。 -musthave=を持っている必要があり -outgoingedge=発信の端になります。 -incomingedge=着信の端になります。 -mailbox=メールボックス -intKey=割り込みキー -speed=速度 -wrongMinDigit=最小桁の数字が 0 より大きい値を指定してください -wrongMaxDigit=最大の桁が 0 より大きい値を指定してください -wrongHiddenDigitsnum=非表示の桁数は 0 以上でなければなりません -hiddendigitsnum=非表示の桁数 -hiddendigitspos=非表示の桁位置 -getsecretdigits=GetSecretDigits -beep=ビープ音が発生 -description=説明 -recordingFormat=フォーマット -bcc=Bcc -invalidTimeout=タイムアウト値が無効です。 -invalidRetry=無効な再試行値の設定 -invalidSpeed=無効な速度の値 -missingQuery=クエリ文字列が見つかりません -invalidPriority=無効な優先度の値 -invalidDelay=無効な間隔の値 -noAttachmentSelected=添付ファイルが選択されていません -sendFax=SendFax -attachment_name=選択された添付ファイル -choose_attachment=添付ファイルを選択します -help_choose_attachment=形式: PDF 、 TIFF 、または tif -help_delay=時間を、分単位では、連絡先に電話をする前に待機する -noFirstNameSelected=最初の名前が指定されていません -noPhoneSelected=電話番号が指定されていません -editFile=XML を編集して -priority=優先順位 -numberOrLettersOrAll=数字、文字、または - を挿入します。 -asr=ASR +zoomOut=ズームアウト \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_ko.txt b/public/assets/plugins/square/resources/grapheditor_ko.txt index a9d0fdc..b507fc0 100644 --- a/public/assets/plugins/square/resources/grapheditor_ko.txt +++ b/public/assets/plugins/square/resources/grapheditor_ko.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=노드가 이미 연결되어 있습니다. -cancel=취소 -close=닫기 -collapse-expand=확장/축소 -containsValidationErrors=유효성 검사 오류가 있습니다. -done=완료 -doubleClickOrientation=더블 클릭하여 변경 방향 -error=오류 -ok=확인 -updatingDocument=업데이트 문서에. 잠시 기다려 주십시오 ... -updatingSelection=선택 업데이트. 잠시 기다려 주십시오 ... about=정보 +account_id=계정 actualSize=실제 크기 add=추가 addLayer=계층 추가 @@ -24,14 +7,25 @@ addProperty=속성 추가 addToExistingDrawing=기존 도면을 추가합니다 addWaypoint=웨이포인트 추가 advanced=고급 +agent=상담원 +agent_management=Agent Management +agi=AGI align=정렬 alignment=정렬 allChangesLost=모든 변경 사항이 손실됩니다. +alreadyConnected=노드가 이미 연결되어 있습니다. angle=각도 +announceoverride=오버라이드 발표 +answer=응답 +application=응용 프로그램 apply=적용 +args=인수 arrange=정렬 arrow=화살표 arrows=화살표 +asr=ASR +asr=ASR +attachment_name=선택된 접속 장치 automatic=자동 autosave=자동 저장 기능이 비활성화되었음을 autosize=Autosize @@ -39,54 +33,86 @@ background=배경 backgroundColor=배경 색상 backgroundImage=배경 이미지 basic=기본 +bcc=숨은 참조 +beep=경고음 block=블록 blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=테두리 색 +borderWidth=Borderwidth bottom=하단 bottomAlign=정렬 bottomLeft=왼쪽 하단 bottomRight=오른쪽 하단 +boxnumber=박스 번호 bulletedList=글머리 기호 목록 +call_management=통화 관리 +callback=콜백 +callflow=통화 흐름을 선택하면 +callid=CallID가 +cancel=취소 cannotOpenFile=파일을 열 수 없음 +cc=Cc center=센터 change=변경 changeOrientation=방향 변경 +choose_attachment=첨부 파일 선택 circle=원 classic=클래식 clearDefaultStyle=기본 스타일 지우기 clearWaypoints=웨이포인트 지우기 clipart=클립아트 +close=닫기 +collapse-expand=확장/축소 collapse=축소 collapseExpand=확장/축소 collapsible=접이식 comic=코믹 +command=명령 +condition=조건 connect=연결 connection=연결 -connectionPoints=연결 지점 connectionArrows=연결 화살표 +connectionPoints=연결 지점 constrainProportions=비율을 제한 +containsValidationErrors=유효성 검사 오류가 있습니다. +context=컨텍스트 copy=복사 copyConnect=연결 복사 create=작성 curved=곡선 custom=사용자 정의 +custom_app=사용자 정의 응용 프로그램 cut=잘라내기 dashed=파선 +data1=데이터 1 +data2=데이터 2 +data3=데이터 3 +data4=데이터 4 +data5=데이터 5 +database=데이터베이스 +database_id=데이터베이스 decreaseIndent=내어쓰기 default=기본 +delay=지연 delete=삭제 deleteColumn=열 삭제 deleteRow=행 삭제하기 +description=설명 +description_start=시작 설명 diagram=다이어그램 +dial=내부 전화 diamond=다이아몬드 diamondThin=다이아몬드(씬) +digit=Max 자리 +digits=숫자 direction=방향 distribute=배포 divider=분할 documentProperties=문서 속성 +done=완료 dotted=점점이 +doubleClickOrientation=더블 클릭하여 변경 방향 drawing=그리기 {1 } drawingEmpty=그리기 비어 있습니다. drawingTooLarge=그리기 너무 큽니다. @@ -96,24 +122,34 @@ east=이스트 edit=편집 editData=데이터 편집 editDiagram=편집 다이어그램 +editFile=Xml 파일 편집 editImage=이미지 편집 editLink=편집 링크 editStyle=편집 스타일을 editTooltip=편집 도구 설명 +end=종료 enterGroup=그룹을 입력하십시오 -enterValue=값 입력 enterName=이름 입력 enterPropertyName=속성 이름을 입력하십시오 +enterValue=값 입력 entityRelation=엔티티 관계 +entry=항목 +error=오류 +escape=이스케이프 숫자 +escape_digits=이스케이프 숫자 exitGroup=종료 그룹 expand=확장 export=내보내기 +ext_dial=외부 전화 +extension=내선 번호 extras=엑스트라 file=파일 fileNotFound=파일을 찾을 수 없습니다. +file_id=파일 filename=파일 이름 fill=채우기 fillColor=채우기 색상 +finally=마지막으로 fitPage=한 페이지 fitPageWidth=페이지 폭 fitTwoPages=두 페이지 @@ -122,118 +158,226 @@ flip=플립 flipH=좌우 대칭 flipV=수직 대칭 이동 font=폰트 -fontFamily=글꼴 패밀리 fontColor=글꼴 색상 +fontFamily=글꼴 패밀리 fontSize=글꼴 크기 format=형식 +formatGif=GIF +formatJpg=JPEG formatPanel=포맷 패널 formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=포맷 formattedText=서식이 지정된 텍스트 +frequency=주파수 general=일반 +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=유리 global=글로벌 +goal=목표 +goalname=목표 이름 +google_tts_language=언어 +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=그라데이션 gradientColor=색상 +grammar=문법 grid=그리드 gridSize=눈금 크기 group=그룹 guides=설명서 +hangup=끊기 heading=제목 height=높이 help=도움말 +help_choose_attachment=형식: PDF, TIFF 또는 tif +help_delay=시간(분, 연락 콜 백 전 대기 +hidden=숨겨진 +hiddendigitsnum=숨겨진 자릿수 +hiddendigitspos=숨겨진 자리 위치 hide=숨기기 hideIt=숨기기 {1 } -hidden=숨겨진 home=홈 horizontal=가로 horizontalFlow=가로 흐름 horizontalTree=수평 트리 html=HTML +identifier=식별자 image=이미지 images=이미지 import=가져오기 +incomingedge=들어오는 edge. increaseIndent=들여쓰기 insert=삽입 -insertColumnBefore=열 삽입 왼쪽 insertColumnAfter=오른쪽 열에 삽입 +insertColumnBefore=열 삽입 왼쪽 insertHorizontalRule=Horizontal Rule 삽입 insertImage=이미지 삽입 insertLink=링크 삽입 -insertRowBefore=위에 행 삽입 insertRowAfter=아래에 행 삽입 +insertRowBefore=위에 행 삽입 +intKey=인터럽트 키 +integrationServer=통합 서버 +interval=시간 간격 +interval_id=간격 +invalidDelay=잘못된 지연 값 invalidName=잘못된 이름 invalidOrMissingFile=잘못되거나 누락된 파일 +invalidPriority=잘못된 우선 순위 값 +invalidRetry=잘못된 값을 다시 시도 +invalidSpeed=잘못된 단축 값 +invalidTimeout=올바르지 않은 시간 초과 값 isometric=같은 크기의 +ispeech_asr_language=언어 +ispeech_tts_language=언어 +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Italic -layers=계층 +key=키 +label=레이블 landscape=가로 laneColor=Lanecolor +language=언어 +layers=계층 layout=레이아웃 left=왼쪽 leftAlign=왼쪽 정렬 +leftOperand=왼쪽 피연산자 leftToRight=왼쪽에서 오른쪽 line=회선 -link=링크 lineend=라인 끝 lineheight=행 높이 linestart=라인 시작 linewidth=Linewidth +link=링크 +list=목록 +list_id=목록 loading=로드 lockUnlock=잠금/잠금 해제 +login=Login +logout=Logout +macro=매크로 +mailbox=사서함 manual=수동 +math=수학 +maxdigit=최대 숫자 +maxspeech=Max 연설 +menu=메뉴 middle=중간 +mindigit=Min 숫자 misc=Misc. +missingQuery=쿼리 문자열은 누락 +model=모델 more=자세한 moreResults=추가 결과 move=이동 moveSelectionTo=선택 {1} 이동 +musthave=있어야 합니다. +name=이름 navigation=탐색 new=새로운 +noAccountSelected=계정을 지정하지 않습니다. +noApplicationSelected=응용 프로그램이 지정되지 않음 +noAttachmentSelected=첨부 파일을 선택하지 않았습니다. +noAudioSelected=오디오 파일을 지정하지 않습니다. +noBoxNumberSelected=상자 이름이 지정되어 있지 않습니다. noColor=색상 없음 +noCommandSelected=명령이 지정되지 않았습니다. +noConditionSelected=조건이 지정되지 않았습니다. +noContextSelected=컨텍스트를 지정하지 않습니다. +noDatabaseSelected=데이터베이스를 지정하지 않습니다. +noDigitsSelected=숫자를 지정하지 않습니다. +noExtensionSelected=내선 번호가 지정되지 않았습니다. +noFileSelected=파일 이름이 지정되지 않습니다. noFiles=파일 없음 +noFindBySelected=Find by is not specified. +noFirstNameSelected=먼저 이름이 지정되지 않음 +noGoalSelected=목표가 지정되지 않았습니다. +noIdentifierSelected=Id가 지정되지 않습니다. +noIntervalSelected=간격은 지정되지 않았습니다. +noKeySelected=키가 지정되지 않습니다. +noListSelected=목록이 지정되지 않았습니다. noMoreResults=더이상 결과 -none=없음 +noNumberSelected=번호가 지정되지 않았습니다. +noOperandSelected=왼쪽 피연산자가 지정되지 않았습니다. +noPhoneSelected=전화기가 지정되지 않음 +noProjectSelected=하위 프로젝트를 분석할 수 없습니다. +noQueueSelected=대기열 이름이 지정되어 있지 않습니다. +noRecipientSelected=수신자가 지정되지 않았습니다. noResultsFor='{1}'에 대한 결과가 없습니다. +noRightOperandSelected=오른쪽 피연산자 지정되지 않았습니다. +noTextSelected=텍스트가 지정되지 않았습니다. +noTrunkSelected=Trunk가 지정되지 않습니다. +noVariableSelected=변수가 지정되지 않았습니다. +none=없음 +noop=NoOp normal=정상 north=북 +number=번호 +numberOrAll=번호 또는 끼웁니다. +numberOrInvalidOrDefault=X Insert 나 아니면. +numberOrInvalidOrTimeout=번호, 또는 t 삽입(공백). +numberOrLettersOrAll=숫자나 끼웁니다. numberedList=번호 매기기 목록 +odbc_id=ODBC 연결 +ok=확인 opacity=불투명도 open=열기 openArrow=오픈 화살표 openFile=파일 열기 -openLink=링크 열기 -openSupported=지원되는 형식은 이 소프트웨어에서 저장된 xml 파일 openInNewWindow=새 창에서 열기 openInThisWindow=이 창에서 열기 +openLink=링크 열기 +openSupported=지원되는 형식은 이 소프트웨어에서 저장된 xml 파일 +operation=작동 options=옵션 +opts=옵션 organic=유기농 orthogonal=직교 +outgoingedge=나가는 edge. outline=윤곽선 +output=출력 oval=타원형 -pages=페이지 -pageView=페이지 보기 pageScale=페이지 확장 pageSetup=페이지 설정 +pageView=페이지 보기 +pages=페이지 panTooltip=공간을 이동한 끌어서 놓기 paperSize=용지 크기 paste=붙여넣기 pasteHere=여기에 붙여넣기 pattern=패턴 +pause=Pause perimeter=경계 +phone=전화 placeholders=자리 표시자 +playback=재생 plusTooltip=클릭 복제(Ctrl 클론, Shift를 눌러 연결을 클릭합니다)에 연결합니다. 끌어 연결합니다(ctrl 복제 불가능). portrait=세로 방향 position=위치 posterPrint=포스터 인쇄 preview=미리 보기 print=인쇄 +priority=우선 순위 +project_id=프로젝트 +publish=Pubblica +query=쿼리 +queue=대기열 +queue_event=이벤트 +queue_id=대기열 +queue_variable=변수 FROM 대기열 +queuelog=QueueLog +queuename=대기열 이름 radialTree=방사형 트리 +record=레코드 +recording=녹음 +recordingFormat=형식 redo=다시 실행 removeFormat=서식 지우기 removeFromGroup=그룹에서 제거 @@ -242,12 +386,16 @@ removeWaypoint=웨이포인트 제거 rename=이름 바꾸기 renameIt=이름 바꾸기 {1 } replace=교체 -replaceIt={1} 이미 존재합니다. 바꾸시겠습니까? replaceExistingDrawing=기존 그리기 교체 +replaceIt={1} 이미 존재합니다. 바꾸시겠습니까? reset=재설정 resetView=다시 보기 +response=응답 시간 종료 +result=결과 +retry=재시도 right=오른쪽 rightAlign=오른쪽 정렬 +rightOperand=오른쪽 피연산자 rightToLeft=오른쪽에서 왼쪽으로 rotate=회전 rotateTooltip=클릭하여 90도씩 끄기를 클릭하십시오 끌어서 놓기 @@ -256,6 +404,9 @@ rounded=둥근 save=저장 saveAs=다른 이름으로 저장 saved=저장된 +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=스크롤 막대 search=검색 searchShapes=검색 도형 @@ -264,6 +415,10 @@ selectEdges=Edges를 선택합니다 selectFont=글꼴 선택 selectNone=선택 안 함 selectVertices=꼭지점 선택 +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=설정 setAsDefaultStyle=기본 모양 설정 shadow=그림자 shape=도형 @@ -271,21 +426,34 @@ sharp=샤프 sidebarTooltip=확장 을 클릭합니다. 다이어그램 속으로 도형 드래그 앤 드롭합니다. Shift 키를 누른 상태에서 선택 변경을 클릭합니다. Alt 를 넣고 연결을 클릭합니다. simple=간단한 simpleArrow=단순 화살표 +sip_id=SIP size=크기 +sms_text=텍스트 solid=솔리드 스테이트 드라이브 sourceSpacing=소스 간격 south=남부 spacing=간격 +speed=속도 +start=시작 +stats=통계 straight=직선 strokeColor=선 색상 style=스타일 +subject=제목 +subproject=하위 프로젝트를 subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=시스템 table=테이블 targetSpacing=목표 간격 +template_id=템플릿 text=텍스트 textAlignment=텍스트 맞춤 textOpacity=텍스트 불투명 +threshold=임계값 +timeout=제한 시간(초) +to=클릭하여 toBack=돌아가기 toFront=전면 tooltips=툴팁 @@ -294,206 +462,38 @@ topAlign=위쪽 맞춤 topLeft=왼쪽 상단 topRight=오른쪽 상단 transparent=투명 +trueOrFalse=진정한 삽입 또는 False입니다. +trunk=트렁크 +trunk_name=트렁크 +tts=TTS turn=회전 uml=UML underline=밑줄 undo=실행 취소 ungroup=그룹 해제 -url=URL +unpause=End pause untitledLayer=제목 없음 계층 +updatingDocument=업데이트 문서에. 잠시 기다려 주십시오 ... +updatingSelection=선택 업데이트. 잠시 기다려 주십시오 ... +url=URL +value=값 +variable=변수 +variable_id=변수 +variable_value=변수 값 vertical=수직 verticalFlow=세로 verticalTree=수직 트리 view=보기 +voicemail=음성 메일 +vswitch=스위치 waypoints=웨이포인트 west=서부 width=너비 wordWrap=자동 줄 바꿈 writingDirection=쓰기 방향 +wrongHiddenDigitsnum=숨겨진 숫자를 0이상이어야 합니다. +wrongMaxDigit=Max Digit가 0보다 큰 수 +wrongMinDigit=Min 자리 가 0보다 큰 수 zoom=줌 zoomIn=확대 -zoomOut=축소 -label=레이블 -timeout=제한 시간(초) -response=응답 시간 종료 -digit=Max 자리 -escape=이스케이프 숫자 -retry=재시도 -name=이름 -value=값 -entry=항목 -start=시작 -finally=마지막으로 -end=종료 -variable=변수 -set=설정 -operation=작동 -math=수학 -result=결과 -call_management=통화 관리 -answer=응답 -hangup=끊기 -dial=내부 전화 -ext_dial=외부 전화 -phone=전화 -trunk=트렁크 -identifier=식별자 -queue=대기열 -voicemail=음성 메일 -boxnumber=박스 번호 -playback=재생 -menu=메뉴 -saydigits=SayDigits -digits=숫자 -saynumber=SayNumber -number=번호 -sayphonetic=SayPhonetic -escape_digits=이스케이프 숫자 -tts=TTS -ispeechtts=ISpeechTTS -key=키 -getdigits=GetDigits -mindigit=Min 숫자 -maxdigit=최대 숫자 -custom_app=사용자 정의 응용 프로그램 -language=언어 -frequency=주파수 -integrationServer=통합 서버 -database=데이터베이스 -query=쿼리 -asr=ASR -sendSMS=SendSMS -account_id=계정 -template_id=템플릿 -to=클릭하여 -sms_text=텍스트 -sendMail=SendMail -subject=제목 -cc=Cc -threshold=임계값 -maxspeech=Max 연설 -grammar=문법 -ispeechasr=ISpeechASR -model=모델 -noop=NoOp -output=출력 -system=시스템 -command=명령 -application=응용 프로그램 -agi=AGI -args=인수 -subproject=하위 프로젝트를 -goalname=목표 이름 -callflow=통화 흐름을 선택하면 -gotoc=Goto -context=컨텍스트 -extension=내선 번호 -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=시간 간격 -leftOperand=왼쪽 피연산자 -condition=조건 -rightOperand=오른쪽 피연산자 -vswitch=스위치 -recording=녹음 -record=레코드 -queuename=대기열 이름 -announceoverride=오버라이드 발표 -callid=CallID가 -agent=상담원 -queue_event=이벤트 -data1=데이터 1 -data2=데이터 2 -data3=데이터 3 -data4=데이터 4 -data5=데이터 5 -macro=매크로 -stats=통계 -queuelog=QueueLog -goal=목표 -callback=콜백 -list=목록 -delay=지연 -list_id=목록 -opts=옵션 -queue_id=대기열 -file_id=파일 -variable_id=변수 -gosub=Gosub -project_id=프로젝트 -sip_id=SIP -trunk_name=트렁크 -variable_value=변수 값 -database_id=데이터베이스 -interval_id=간격 -description_start=시작 설명 -publish=Pubblica -ispeech_asr_language=언어 -ispeech_tts_language=언어 -google_tts_language=언어 -queue_variable=변수 FROM 대기열 -odbc_id=ODBC 연결 -noVariableSelected=변수가 지정되지 않았습니다. -noTrunkSelected=Trunk가 지정되지 않습니다. -noAudioSelected=오디오 파일을 지정하지 않습니다. -noOperandSelected=왼쪽 피연산자가 지정되지 않았습니다. -noDatabaseSelected=데이터베이스를 지정하지 않습니다. -noExtensionSelected=내선 번호가 지정되지 않았습니다. -noCommandSelected=명령이 지정되지 않았습니다. -noApplicationSelected=응용 프로그램이 지정되지 않음 -noRightOperandSelected=오른쪽 피연산자 지정되지 않았습니다. -noDigitsSelected=숫자를 지정하지 않습니다. -noNumberSelected=번호가 지정되지 않았습니다. -noRecipientSelected=수신자가 지정되지 않았습니다. -noTextSelected=텍스트가 지정되지 않았습니다. -noAccountSelected=계정을 지정하지 않습니다. -noKeySelected=키가 지정되지 않습니다. -noIdentifierSelected=Id가 지정되지 않습니다. -noQueueSelected=대기열 이름이 지정되어 있지 않습니다. -noConditionSelected=조건이 지정되지 않았습니다. -noIntervalSelected=간격은 지정되지 않았습니다. -noContextSelected=컨텍스트를 지정하지 않습니다. -noBoxNumberSelected=상자 이름이 지정되어 있지 않습니다. -noProjectSelected=하위 프로젝트를 분석할 수 없습니다. -noFileSelected=파일 이름이 지정되지 않습니다. -numberOrInvalidOrTimeout=번호, 또는 t 삽입(공백). -numberOrAll=번호 또는 끼웁니다. -numberOrInvalidOrDefault=X Insert 나 아니면. -trueOrFalse=진정한 삽입 또는 False입니다. -noGoalSelected=목표가 지정되지 않았습니다. -noListSelected=목록이 지정되지 않았습니다. -musthave=있어야 합니다. -outgoingedge=나가는 edge. -incomingedge=들어오는 edge. -mailbox=사서함 -intKey=인터럽트 키 -speed=속도 -wrongMinDigit=Min 자리 가 0보다 큰 수 -wrongMaxDigit=Max Digit가 0보다 큰 수 -wrongHiddenDigitsnum=숨겨진 숫자를 0이상이어야 합니다. -hiddendigitsnum=숨겨진 자릿수 -hiddendigitspos=숨겨진 자리 위치 -getsecretdigits=GetSecretDigits -beep=경고음 -description=설명 -recordingFormat=형식 -bcc=숨은 참조 -invalidTimeout=올바르지 않은 시간 초과 값 -invalidRetry=잘못된 값을 다시 시도 -invalidSpeed=잘못된 단축 값 -missingQuery=쿼리 문자열은 누락 -invalidPriority=잘못된 우선 순위 값 -invalidDelay=잘못된 지연 값 -noAttachmentSelected=첨부 파일을 선택하지 않았습니다. -sendFax=SendFax -attachment_name=선택된 접속 장치 -choose_attachment=첨부 파일 선택 -help_choose_attachment=형식: PDF, TIFF 또는 tif -help_delay=시간(분, 연락 콜 백 전 대기 -noFirstNameSelected=먼저 이름이 지정되지 않음 -noPhoneSelected=전화기가 지정되지 않음 -editFile=Xml 파일 편집 -priority=우선 순위 -numberOrLettersOrAll=숫자나 끼웁니다. -asr=ASR +zoomOut=축소 \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_nl.txt b/public/assets/plugins/square/resources/grapheditor_nl.txt index d908b90..5bd61f5 100644 --- a/public/assets/plugins/square/resources/grapheditor_nl.txt +++ b/public/assets/plugins/square/resources/grapheditor_nl.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Knooppunten al verbonden -cancel=Annuleren -close=Dicht -collapse-expand=Collapse/expand -containsValidationErrors=Bevat validatiefouten -done=Gedaan -doubleClickOrientation=Doubleclick Afdrukstand wijzigen -error=Fout -ok=OK -updatingDocument=Actualisering Document. Even geduld a.u.b... -updatingSelection=Actualisering selectie. Even geduld a.u.b... about=Over +account_id=Account actualSize=Ware grootte add=Toevoegen addLayer=Laag toevoegen @@ -24,14 +7,25 @@ addProperty=Voeg eigendom addToExistingDrawing=Toevoegen aan bestaande tekening addWaypoint=Waypoint toevoegen advanced=Geavanceerd +agent=Agent +agent_management=Agent Management +agi=AGI align=Uitlijnen alignment=Uitlijning allChangesLost=Alle wijzigingen gaan verloren! +alreadyConnected=Knooppunten al verbonden angle=Hoek +announceoverride=Kondig Override +answer=Antwoord +application=Toepassing apply=Toepassing +args=Argumenten arrange=Regelen arrow=Pijl arrows=Pijlen +asr=ASR +asr=ASR +attachment_name=Geselecteerde voorzetstuk automatic=Automatische autosave="Autosave" autosize=Autoamplit @@ -39,54 +33,86 @@ background=Achtergrond backgroundColor=Achtergrondkleur backgroundImage=Achtergrondafbeelding basic=Basic +bcc=Bcc +beep=Pieptoon block=Blok blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=Randkleur +borderWidth=Borderwidth bottom=Onderkant bottomAlign=Onderkant uitlijnen bottomLeft=Linksonder bottomRight=Rechtsonder +boxnumber=Vak bulletedList=Lijst met opsommingstekens +call_management=Oproepbeheer +callback=Terugbellen +callflow=Gespreksstroom +callid=CallID +cancel=Annuleren cannotOpenFile=Kan bestand niet openen +cc=Cc center=Centrum change=Wijzigen changeOrientation=Afdrukstand wijzigen +choose_attachment=Kies voorzetstuk circle=Cirkel classic=Klassiek clearDefaultStyle=Standaard wissen stijl clearWaypoints=Waypoints wissen clipart=Clipart +close=Dicht +collapse-expand=Collapse/expand collapse=Samenvouwen collapseExpand=Collapse/expand collapsible=Inklapbaar comic=Comic +command=Commando +condition=Voorwaarde connect=Sluit connection=Verbinding -connectionPoints=Aansluitpunten connectionArrows=Verbinding pijlen +connectionPoints=Aansluitpunten constrainProportions=Zet verhoudingen +containsValidationErrors=Bevat validatiefouten +context=Kader copy=Kopiëren copyConnect=Kopiëren op aansluiten create=Maken curved=Gebogen custom=Aangepaste +custom_app=Aangepaste toepassingen cut=Snijden dashed=Onderbroken +data1=Gegevens1 +data2=Gegevens2 +data3=Gegevens3 +data4=Gegevens4 +data5=Gegevens5 +database=Database +database_id=Database decreaseIndent=Inspringing verkleinen default=Standaard +delay=Vertraging delete=Verwijderen deleteColumn=Kolom verwijderen deleteRow=Rij verwijderen +description=Beschrijving +description_start=Start beschrijving diagram=Schema +dial=Intern bellen diamond=Diamond diamondThin=Diamond (dun) +digit=Max Digit +digits=Cijfers direction=Richting distribute=Verdelen divider=Verdeler documentProperties=Documenteigenschappen +done=Gedaan dotted=Gestippeld +doubleClickOrientation=Doubleclick Afdrukstand wijzigen drawing=Tekening{1} drawingEmpty=Tekening is leeg drawingTooLarge=Tekening is te groot @@ -96,24 +122,34 @@ east=East edit=Bewerken editData=Gegevens bewerken editDiagram=Schema wijzigen +editFile=Edit XML editImage=Beeld bewerken editLink=Koppeling bewerken editStyle=Edit Style editTooltip=Knopinfo bewerken +end=Einde enterGroup=Groepsnaam -enterValue=Waarde invoeren enterName=Voer de naam in enterPropertyName=Voer naam van eigenschap +enterValue=Waarde invoeren entityRelation=Entiteit relatie +entry=Inwerkingtreding +error=Fout +escape=Escape-tekens +escape_digits=Escape-tekens exitGroup=Groep sluiten expand=Uitvouwen export=Uitvoer +ext_dial=Externe kiestoon +extension=Uitbreiding extras=Extras file=Bestand fileNotFound=Bestand niet gevonden +file_id=Bestand filename=Bestandsnaam fill=Vult fillColor=Vulkleur +finally=Tenslotte fitPage=Één pagina fitPageWidth=Paginabreedte fitTwoPages=Twee pagina's @@ -122,118 +158,226 @@ flip=Flip flipH=Horizontaal spiegelen flipV=Verticaal spiegelen font=Font -fontFamily=Lettertypereeks fontColor=Font Color +fontFamily=Lettertypereeks fontSize=Tekengrootte format=Formaat +formatGif=GIF +formatJpg=JPEG formatPanel=Formaat paneel formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Geformatteerd formattedText=Opgemaakte tekst +frequency=Frequentie general=Algemeen +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glas global=Wereldwijde +goal=Doel +goalname=Doelnaam +google_tts_language=Taal +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Gradiënt gradientColor=Kleur +grammar=Grammatica grid=Raster gridSize=Rastergrootte group=Groep guides=Geleiders +hangup=Ophangen heading=Post height=Hoogte help=Help +help_choose_attachment=Format: PDF, TIFF of tif +help_delay=Tijd in minuten te wachten voordat u belt de contactpersoon +hidden=Verborgen +hiddendigitsnum=Verborgen nummer +hiddendigitspos=Verborgen cijfers positie hide=Verbergen hideIt=Hide {1} -hidden=Verborgen home=Home horizontal=Horizontaal horizontalFlow=Horizontale stroming horizontalTree=Horizontale boom html=HTML +identifier=Identifier image=Beeld images=Afbeeldingen import=Importeren +incomingedge=Inkomende rand. increaseIndent=Inspringing vergroten insert=Steek -insertColumnBefore=Kolom invoegen links insertColumnAfter=Kolom invoegen rechts +insertColumnBefore=Kolom invoegen links insertHorizontalRule=Steek horizontale regel insertImage=Invoegen insertLink=Link invoegen -insertRowBefore=Rij invoegen boven insertRowAfter=Steek de rij hieronder +insertRowBefore=Rij invoegen boven +intKey=Onderbrekingstoets +integrationServer=Integratieserver +interval=Tijdsinterval +interval_id=Interval +invalidDelay=Ongeldige vertragingswaarde invalidName=Ongeldige naam invalidOrMissingFile=Ongeldige of ontbrekende bestand +invalidPriority=Ongeldige Prioriteitswaarde +invalidRetry=Ongeldige Retry waarde +invalidSpeed=Ongeldige waarde +invalidTimeout=Ongeldige time-outwaarde isometric=Isometrisch +ispeech_asr_language=Taal +ispeech_tts_language=Taal +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Cursief -layers=Lagen +key=Sleutel +label=Label landscape=Liggend laneColor=Lanecolor +language=Taal +layers=Lagen layout=Lay-out left=Links leftAlign=Links uitlijnen +leftOperand=Linker Operand leftToRight=Van links naar rechts line=Lijn -link=Link lineend=Regeleinde lineheight=Regelhoogte linestart=Line starten linewidth=De lijnbreedte +link=Link +list=Lijst +list_id=Lijst loading=Laden lockUnlock=Vergrendelen/ontgrendelen +login=Login +logout=Logout +macro=Macro +mailbox=Mailbox manual=Handleiding +math=Math +maxdigit=Max cijfers +maxspeech=Max spraak +menu=Menu middle=Midden +mindigit=Min cijfers misc=Div. +missingQuery=De querystring ontbreekt +model=Model more=Meer moreResults=Meer resultaten move=Verplaatsen moveSelectionTo=Selectie verplaatsen naar {1} +musthave=Moet +name=Naam navigation=Navigatie new=Nieuwe +noAccountSelected=Account is niet gespecificeerd. +noApplicationSelected=De applicatie is niet opgegeven +noAttachmentSelected=Geen voorzetstuk geselecteerd +noAudioSelected=Geluidsbestand wordt niet gespecificeerd. +noBoxNumberSelected=Veldnaam is niet gespecificeerd. noColor=Geen kleur +noCommandSelected=Het commando is niet gespecificeerd. +noConditionSelected=Voorwaarde is niet gespecificeerd. +noContextSelected=Context is niet gespecificeerd. +noDatabaseSelected=Database is niet gespecificeerd. +noDigitsSelected=Cijfers wordt niet gespecificeerd. +noExtensionSelected=Verlenging is niet gespecificeerd. +noFileSelected=Geen bestandsnaam opgegeven. noFiles=Geen bestanden +noFindBySelected=Find by is not specified. +noFirstNameSelected=Voornaam is niet opgegeven +noGoalSelected=Doel is niet gespecificeerd. +noIdentifierSelected=Identificatie is niet gespecificeerd. +noIntervalSelected=Interval is niet gespecificeerd. +noKeySelected=Sleutel niet is opgegeven. +noListSelected=Deze lijst is niet gespecificeerd. noMoreResults=Geen verdere resultaten -none=Geen +noNumberSelected=Nummer is niet gespecificeerd. +noOperandSelected=Linker operand is niet gespecificeerd. +noPhoneSelected=Telefoon is niet opgegeven +noProjectSelected=SubProject is niet gespecificeerd. +noQueueSelected=Wachtrijnaam is niet gespecificeerd. +noRecipientSelected=Ontvanger is niet gespecificeerd. noResultsFor=Geen zoekresultaten voor '{1}' +noRightOperandSelected=Rechter operand is niet gespecificeerd. +noTextSelected=Taal is niet gespecificeerd. +noTrunkSelected=De kofferruimte is niet gespecificeerd. +noVariableSelected=Variabele wordt niet gespecificeerd. +none=Geen +noop=NoOp normal=Normaal north=Noord +number=Nummer +numberOrAll=Insert number of -. +numberOrInvalidOrDefault=Invoegen, i of -. +numberOrInvalidOrTimeout=Insert number, i of t (controleer of de witte spaties). +numberOrLettersOrAll=Steek nummers, letters of -. numberedList=Genummerde lijst +odbc_id=ODBC-verbinding +ok=OK opacity=Opaciteit open=Open openArrow=Open pijl openFile=Bestand openen -openLink=Koppeling openen -openSupported=Ondersteunde indeling .XML-bestanden van deze software openInNewWindow=Openen in nieuw venster openInThisWindow=Open in dit venster +openLink=Koppeling openen +openSupported=Ondersteunde indeling .XML-bestanden van deze software +operation=Werking options=Opties +opts=Opties organic=Organische orthogonal=Orthogonale +outgoingedge=Uitgaande rand. outline=Overzicht +output=Uitgang oval=Ovaal -pages=Pagina's -pageView=Paginaweergave pageScale=Pagina schaal pageSetup=Pagina-instelling +pageView=Paginaweergave +pages=Pagina's panTooltip=Space slepen om te scrollen paperSize=Papierformaat paste=Plakken pasteHere=Plak hier pattern=Patroon +pause=Pause perimeter=Omtrek +phone=Telefoon placeholders=Jokertekens +playback=Afspelen plusTooltip=Klik hier om verbinding en kloon (Ctrl-klik om te klonen, shift click to connect). Sleep te maken (Ctrl verslepen naar kloon). portrait=Staand position=Positie posterPrint=Poster Print preview=Afdrukvoorbeeld print=Afdrukken +priority=Prioriteit +project_id=Project +publish=Pubblica +query=Query +queue=Wachtrij +queue_event=Evenement +queue_id=Wachtrij +queue_variable=Wachtrij van variabele +queuelog=QueueLog +queuename=Wachtrijnaam radialTree=Radiale structuur +record=Opnemen +recording=Opname +recordingFormat=Formaat redo=Redo removeFormat=Duidelijke opmaak removeFromGroup=Verwijderen uit de groep @@ -242,12 +386,16 @@ removeWaypoint=Verwijder waypoint rename=Hernoemen renameIt=De naam {1} replace=Vervang -replaceIt={1} bestaat al. Wilt u het vervangen? replaceExistingDrawing=Vervang bestaande tekening +replaceIt={1} bestaat al. Wilt u het vervangen? reset=Reset resetView=Aanzicht terugzetten +response=Reactie Timeout +result=Resultaat +retry=Probeer het opnieuw right=Rechts rightAlign=Rechts uitlijnen +rightOperand=Rechter Operand rightToLeft=Van rechts naar links rotate=Roteren rotateTooltip=Klik en sleep om te draaien, klikt u met 90 graden @@ -256,6 +404,9 @@ rounded=Afgerond save=Opslaan saveAs=Opslaan als saved=Opgeslagen +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Schuifbalken search=Zoeken searchShapes=Zoeken vormen @@ -264,6 +415,10 @@ selectEdges=Selecteer randen selectFont=Selecteer een lettertype selectNone=Selecteer None (Geen). selectVertices=Selecteer hoekpunten +sendFax=Internet Explorer +sendMail=SendMail +sendSMS=SendSMS +set=Stel setAsDefaultStyle=Instellen als standaard stijl shadow=Schaduw shape=Vorm @@ -271,21 +426,34 @@ sharp=Sharp sidebarTooltip=Klik om te vergroten. Sleep vormen in het schema. Shift klik op om de selectie te wijzigen. Alt-klik invoegen en sluit. simple=Eenvoudig simpleArrow=Eenvoudige pijl +sip_id=SIP size=Grootte +sms_text=Tekst solid=Solide sourceSpacing=Bron spatiëring south=Zuid spacing=Tussenruimte +speed=Snelheid +start=Start +stats=Stats straight=Rechte strokeColor=Lijnkleur style=Stijl +subject=Onderwerp +subproject=SubProject subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=Systeem table=Tabel targetSpacing=Target spatiëring +template_id=Sjabloon text=Tekst textAlignment=Text alignment textOpacity=Tekst opaciteit +threshold=Drempel +timeout=Tijd (seconden) +to=Naar toBack=Om terug toFront=Op voorzijde tooltips=Knopinfo weergeven @@ -294,206 +462,38 @@ topAlign=Top lijn topLeft=Linksboven topRight=Rechtsboven transparent=Transparant +trueOrFalse=Plaats waar of onwaar is. +trunk=Transmissielijn +trunk_name=Transmissielijn +tts=TTS turn=Draai uml=UML underline=Onderstrepen undo=Ongedaan maken ungroup=Degroeperen -url=URL +unpause=End pause untitledLayer=Untitled laag +updatingDocument=Actualisering Document. Even geduld a.u.b... +updatingSelection=Actualisering selectie. Even geduld a.u.b... +url=URL +value=Waarde +variable=Variabele +variable_id=Variabele +variable_value=Variabelewaarde vertical=Verticaal verticalFlow=Verticale stroming verticalTree=Verticale structuur view=Toon +voicemail=VoiceMail +vswitch=Schakelaar waypoints=Waypoints west=West width=Breedte wordWrap=Tekstterugloop writingDirection=Schrijfrichting +wrongHiddenDigitsnum=Verborgen nummer moet groter zijn dan of gelijk aan 0 +wrongMaxDigit=Max cijfer moet groter zijn dan 0 +wrongMinDigit=Min cijfer moet groter zijn dan 0 zoom=Zoom zoomIn=Inzoomen -zoomOut=Uitzoomen -label=Label -timeout=Tijd (seconden) -response=Reactie Timeout -digit=Max Digit -escape=Escape-tekens -retry=Probeer het opnieuw -name=Naam -value=Waarde -entry=Inwerkingtreding -start=Start -finally=Tenslotte -end=Einde -variable=Variabele -set=Stel -operation=Werking -math=Math -result=Resultaat -call_management=Oproepbeheer -answer=Antwoord -hangup=Ophangen -dial=Intern bellen -ext_dial=Externe kiestoon -phone=Telefoon -trunk=Transmissielijn -identifier=Identifier -queue=Wachtrij -voicemail=VoiceMail -boxnumber=Vak -playback=Afspelen -menu=Menu -saydigits=SayDigits -digits=Cijfers -saynumber=SayNumber -number=Nummer -sayphonetic=SayPhonetic -escape_digits=Escape-tekens -tts=TTS -ispeechtts=ISpeechTTS -key=Sleutel -getdigits=GetDigits -mindigit=Min cijfers -maxdigit=Max cijfers -custom_app=Aangepaste toepassingen -language=Taal -frequency=Frequentie -integrationServer=Integratieserver -database=Database -query=Query -asr=ASR -sendSMS=SendSMS -account_id=Account -template_id=Sjabloon -to=Naar -sms_text=Tekst -sendMail=SendMail -subject=Onderwerp -cc=Cc -threshold=Drempel -maxspeech=Max spraak -grammar=Grammatica -ispeechasr=ISpeechASR -model=Model -noop=NoOp -output=Uitgang -system=Systeem -command=Commando -application=Toepassing -agi=AGI -args=Argumenten -subproject=SubProject -goalname=Doelnaam -callflow=Gespreksstroom -gotoc=Goto -context=Kader -extension=Uitbreiding -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Tijdsinterval -leftOperand=Linker Operand -condition=Voorwaarde -rightOperand=Rechter Operand -vswitch=Schakelaar -recording=Opname -record=Opnemen -queuename=Wachtrijnaam -announceoverride=Kondig Override -callid=CallID -agent=Agent -queue_event=Evenement -data1=Gegevens1 -data2=Gegevens2 -data3=Gegevens3 -data4=Gegevens4 -data5=Gegevens5 -macro=Macro -stats=Stats -queuelog=QueueLog -goal=Doel -callback=Terugbellen -list=Lijst -delay=Vertraging -list_id=Lijst -opts=Opties -queue_id=Wachtrij -file_id=Bestand -variable_id=Variabele -gosub=Gosub -project_id=Project -sip_id=SIP -trunk_name=Transmissielijn -variable_value=Variabelewaarde -database_id=Database -interval_id=Interval -description_start=Start beschrijving -publish=Pubblica -ispeech_asr_language=Taal -ispeech_tts_language=Taal -google_tts_language=Taal -queue_variable=Wachtrij van variabele -odbc_id=ODBC-verbinding -noVariableSelected=Variabele wordt niet gespecificeerd. -noTrunkSelected=De kofferruimte is niet gespecificeerd. -noAudioSelected=Geluidsbestand wordt niet gespecificeerd. -noOperandSelected=Linker operand is niet gespecificeerd. -noDatabaseSelected=Database is niet gespecificeerd. -noExtensionSelected=Verlenging is niet gespecificeerd. -noCommandSelected=Het commando is niet gespecificeerd. -noApplicationSelected=De applicatie is niet opgegeven -noRightOperandSelected=Rechter operand is niet gespecificeerd. -noDigitsSelected=Cijfers wordt niet gespecificeerd. -noNumberSelected=Nummer is niet gespecificeerd. -noRecipientSelected=Ontvanger is niet gespecificeerd. -noTextSelected=Taal is niet gespecificeerd. -noAccountSelected=Account is niet gespecificeerd. -noKeySelected=Sleutel niet is opgegeven. -noIdentifierSelected=Identificatie is niet gespecificeerd. -noQueueSelected=Wachtrijnaam is niet gespecificeerd. -noConditionSelected=Voorwaarde is niet gespecificeerd. -noIntervalSelected=Interval is niet gespecificeerd. -noContextSelected=Context is niet gespecificeerd. -noBoxNumberSelected=Veldnaam is niet gespecificeerd. -noProjectSelected=SubProject is niet gespecificeerd. -noFileSelected=Geen bestandsnaam opgegeven. -numberOrInvalidOrTimeout=Insert number, i of t (controleer of de witte spaties). -numberOrAll=Insert number of -. -numberOrInvalidOrDefault=Invoegen, i of -. -trueOrFalse=Plaats waar of onwaar is. -noGoalSelected=Doel is niet gespecificeerd. -noListSelected=Deze lijst is niet gespecificeerd. -musthave=Moet -outgoingedge=Uitgaande rand. -incomingedge=Inkomende rand. -mailbox=Mailbox -intKey=Onderbrekingstoets -speed=Snelheid -wrongMinDigit=Min cijfer moet groter zijn dan 0 -wrongMaxDigit=Max cijfer moet groter zijn dan 0 -wrongHiddenDigitsnum=Verborgen nummer moet groter zijn dan of gelijk aan 0 -hiddendigitsnum=Verborgen nummer -hiddendigitspos=Verborgen cijfers positie -getsecretdigits=GetSecretDigits -beep=Pieptoon -description=Beschrijving -recordingFormat=Formaat -bcc=Bcc -invalidTimeout=Ongeldige time-outwaarde -invalidRetry=Ongeldige Retry waarde -invalidSpeed=Ongeldige waarde -missingQuery=De querystring ontbreekt -invalidPriority=Ongeldige Prioriteitswaarde -invalidDelay=Ongeldige vertragingswaarde -noAttachmentSelected=Geen voorzetstuk geselecteerd -sendFax=Internet Explorer -attachment_name=Geselecteerde voorzetstuk -choose_attachment=Kies voorzetstuk -help_choose_attachment=Format: PDF, TIFF of tif -help_delay=Tijd in minuten te wachten voordat u belt de contactpersoon -noFirstNameSelected=Voornaam is niet opgegeven -noPhoneSelected=Telefoon is niet opgegeven -editFile=Edit XML -priority=Prioriteit -numberOrLettersOrAll=Steek nummers, letters of -. -asr=ASR +zoomOut=Uitzoomen \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_no.txt b/public/assets/plugins/square/resources/grapheditor_no.txt index 6d7183e..6951dd6 100644 --- a/public/assets/plugins/square/resources/grapheditor_no.txt +++ b/public/assets/plugins/square/resources/grapheditor_no.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Noder er allerede koblet til. -cancel=Avbryt -close=Lukk -collapse-expand=Skjule/utvide -containsValidationErrors=Inneholder valideringsfeil -done=Ferdig -doubleClickOrientation=Dobbeltklikk for å endre retning -error=Feil -ok=OK -updatingDocument=Oppdatering av dokumentet. Vennligst vent... -updatingSelection=Oppdatere utvalget. Vennligst vent... about=Om +account_id=Konto actualSize=Faktisk størrelse add=Legg til addLayer=Legg til lag @@ -24,14 +7,25 @@ addProperty=Legg til hotellet addToExistingDrawing=Legg til eksisterende tegning addWaypoint=Legg til veipunkt advanced=Avansert +agent=Agent +agent_management=Agent Management +agi=AGI align=Juster alignment=Justering allChangesLost=Alle endringer vil gå tapt! +alreadyConnected=Noder er allerede koblet til. angle=Vinkel +announceoverride=Annonsere overstyre +answer=Svar +application=Programmet apply=Påfør +args=Argumenter arrange=Ordne arrow=Pil arrows=Piler +asr=ASR +asr=ASR +attachment_name=Valgte vedlegg automatic=Automatisk autosave=Autosave autosize=Autom. @@ -39,54 +33,86 @@ background=Bakgrunn backgroundColor=Bakgrunnsfarge backgroundImage=Bakgrunnsbilde basic=Grunnleggende +bcc=Blindkopi +beep=Pip block=Blokk blockquote=Blockquote bold=Fet -borderWidth=Borderwidth borderColor=Grensen farge +borderWidth=Borderwidth bottom=Bunn bottomAlign=Nederste linje bottomLeft=Nederst til venstre bottomRight=Nederst til høyre +boxnumber=Boks nummer bulletedList=Punktlisten +call_management=Samtalestyring +callback=Tilbakeringing +callflow=Callflow +callid=CallID +cancel=Avbryt cannotOpenFile=Kan ikke åpne fil +cc=Cc center=Center change=Endre changeOrientation=Endre retning +choose_attachment=Velg vedlegg circle=Sirkel classic=Klassisk clearDefaultStyle=Clear standard stil clearWaypoints=Slett veipunkter clipart=Utklippsbilder +close=Lukk +collapse-expand=Skjule/utvide collapse=Skjule collapseExpand=Skjule/utvide collapsible=Sammenleggbare comic=Tegneserien. +command=Kommando +condition=Tilstand connect=Koble til connection=Tilkobling -connectionPoints=Koblingspunkter connectionArrows=Tilkobling piler +connectionPoints=Koblingspunkter constrainProportions=Begrense proporsjoner. +containsValidationErrors=Inneholder valideringsfeil +context=Kontekst copy=Kopiere copyConnect=Kopiere på Connect create=Opprette curved=Kurvet custom=Egendefinert +custom_app=Egendefinert App cut=Kutting dashed=Stiplet +data1=Data1 +data2=Data2 +data3=Data3 +data4=Data4 +data5=Data5 +database=Databasen +database_id=Databasen decreaseIndent=Reduser innrykk default=Standard +delay=Forsinkelse delete=Slette deleteColumn=Slette kolonnen deleteRow=Slett rad +description=Beskrivelse +description_start=Start beskrivelse diagram=Diagram +dial=Intern direkte diamond=Diamond diamondThin=Diamond (tynn) +digit=Maks siffer +digits=Sifre direction=Retning distribute=Distribuere divider=Stråskiller documentProperties=Dokumentegenskaper +done=Ferdig dotted=Prikket +doubleClickOrientation=Dobbeltklikk for å endre retning drawing=Tegningen{1} drawingEmpty=Tegningen er tom drawingTooLarge=Tegningen er for stor @@ -96,24 +122,34 @@ east=Øst edit=Rediger editData=Rediger Data editDiagram=Rediger diagram +editFile=Redigere XML editImage=Redigere bilde editLink=Rediger link editStyle=Redigere Style editTooltip=Rediger verktøytips +end=Slutten enterGroup=Angi gruppe -enterValue=Angi verdi enterName=Angi navn enterPropertyName=Angi hotellet navn +enterValue=Angi verdi entityRelation=Enhet forhold +entry=Registrering +error=Feil +escape=Escape sifre +escape_digits=Escape sifre exitGroup=Exit gruppe expand=Utvid export=Eksport +ext_dial=Ekstern direkte +extension=Forlengelse extras=Ekstrautstyr file=Fil fileNotFound=Fil ikke funnet +file_id=Fil filename=Filnavn fill=Fyll fillColor=Fyll farge +finally=Til slutt fitPage=Én side fitPageWidth=Side bredde fitTwoPages=To sider @@ -122,118 +158,226 @@ flip=Flip flipH=Vend horisontalt flipV=Vend vertikalt font=Font -fontFamily=Skriftfamilie fontColor=Font Color +fontFamily=Skriftfamilie fontSize=Font Size format=Format +formatGif=GIF +formatJpg=JPEG formatPanel=Format-panelet formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG. formatXml=XML formatted=Formatert formattedText=Formatert tekst +frequency=Frekvens general=Generelt +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glass global=Global +goal=Mål +goalname=Målnavn +google_tts_language=Språk +gosub=Gosub +gotoc=Gå til +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Gradient gradientColor=Farge +grammar=Grammatikk grid=Rutenett gridSize=Rasterstørrelse group=Gruppe guides=Veiledninger +hangup=Aktiv heading=Styrekurs height=Høyde help=Hjelp +help_choose_attachment=Format: PDF, TIFF eller tif +help_delay=Tid i minutter å vente før du ringer tilbake til kontakt +hidden=Skjult +hiddendigitsnum=Skjult Siffer nummer +hiddendigitspos=Skjult sifre stilling hide=Skjule hideIt=Skjul {1} -hidden=Skjult home=Hjem horizontal=Horisontal horizontalFlow=Horisontal flyt horizontalTree=Horisontal treet html=HTML +identifier=Iden image=Bilde images=Bilder import=Importere +incomingedge=Innkommende kanten. increaseIndent=Øk innrykk insert=Sett inn -insertColumnBefore=Sett inn kolonnen til venstre insertColumnAfter=Sett inn kolonnen til høyre +insertColumnBefore=Sett inn kolonnen til venstre insertHorizontalRule=Sett inn horisontal regel insertImage=Sett inn bilde. insertLink=Sett inn Link -insertRowBefore=Sett inn rad ovenfor insertRowAfter=Sett inn rad nedenfor +insertRowBefore=Sett inn rad ovenfor +intKey=Avbruddstasten +integrationServer=Integration Server +interval=Tidsintervall +interval_id=Intervall +invalidDelay=Ugyldig Utsettelse verdi invalidName=Ugyldig navn invalidOrMissingFile=Ugyldig eller manglende fil +invalidPriority=Ugyldig verdi prioritet +invalidRetry=Ugyldig verdi på nytt +invalidSpeed=Ugyldig hastighet verdi +invalidTimeout=Ugyldig verdi for tidsavbrudd isometric=Isometrisk +ispeech_asr_language=Språk +ispeech_tts_language=Språk +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Kursiv -layers=Lag +key=Tasten +label=Etikett landscape=Liggende laneColor=Lanecolor +language=Språk +layers=Lag layout=Layout left=Venstre leftAlign=Juster venstre +leftOperand=Venstre Operand leftToRight=Venstre til høyre line=Linje -link=Kobling lineend=Linjeslutt lineheight=Linje høyde linestart=Linje Start linewidth=Linjebredde +link=Kobling +list=Liste +list_id=Liste loading=Laster lockUnlock=Låse / låse opp. +login=Login +logout=Logout +macro=Makro +mailbox=Postboks manual=Manuell +math=Math +maxdigit=Maks. sifre +maxspeech=Maks tale +menu=Menyen middle=Midtre +mindigit=Min sifre misc=Div. +missingQuery=Søkestrengen mangler +model=Modell more=Mer moreResults=Flere resultater move=Flytt moveSelectionTo=Flytt valget til {1} +musthave=Må ha +name=Navn navigation=Navigering new=Ny +noAccountSelected=Kontoen er ikke angitt. +noApplicationSelected=Programmet er ikke angitt +noAttachmentSelected=Ingen vedlegg er valgt +noAudioSelected=Lydfilen er ikke angitt. +noBoxNumberSelected=Hvis navnet ikke er angitt. noColor=Ingen farge +noCommandSelected=Kommandoen er ikke angitt. +noConditionSelected=Tilstanden er ikke angitt. +noContextSelected=Sammenhengen er ikke angitt. +noDatabaseSelected=Databasen er ikke angitt. +noDigitsSelected=Sifrene er ikke angitt. +noExtensionSelected=Linjen er ikke angitt. +noFileSelected=Filnavnet er ikke angitt. noFiles=Ingen filer +noFindBySelected=Find by is not specified. +noFirstNameSelected=Første navn er ikke angitt +noGoalSelected=Målet er ikke angitt. +noIdentifierSelected=Iden er ikke angitt. +noIntervalSelected=Intervallet er ikke angitt. +noKeySelected=Tasten er ikke angitt. +noListSelected=Listen er ikke angitt. noMoreResults=Ingen flere resultater -none=Ingen +noNumberSelected=Nummeret er ikke angitt. +noOperandSelected=Venstre operanden er ikke angitt. +noPhoneSelected=Telefonen er ikke angitt +noProjectSelected=Delprosjektet er ikke angitt. +noQueueSelected=Køen navn er ikke angitt. +noRecipientSelected=Mottakeren er ikke spesifisert. noResultsFor=Ingen resultater for '{1}' +noRightOperandSelected=Høyre operanden er ikke angitt. +noTextSelected=Teksten er ikke angitt. +noTrunkSelected=Bagasjerommet er ikke angitt. +noVariableSelected=Variabelen er ikke angitt. +none=Ingen +noop=NoOp normal=Normal north=Nord +number=Nummer +numberOrAll=Sett inn nummer eller -. +numberOrInvalidOrDefault=Sett x, jeg eller -. +numberOrInvalidOrTimeout=Sett inn nummer, jeg eller t (kontroller hvite mellomrom). +numberOrLettersOrAll=Sett inn tall, bokstaver eller -. numberedList=Nummerert liste +odbc_id=ODBC-kobling +ok=OK opacity=Dekkevne open=Åpne openArrow=Åpne pil openFile=Åpne fil -openLink=Åpne kobling -openSupported=Støttede filformatet er .XML-filer lagret fra denne programvaren openInNewWindow=Åpne i nytt vindu openInThisWindow=Åpne i dette vinduet +openLink=Åpne kobling +openSupported=Støttede filformatet er .XML-filer lagret fra denne programvaren +operation=Drift options=Alternativer +opts=Alternativer organic=Organiske orthogonal=Ortogonale +outgoingedge=Utgående kanten. outline=Omriss +output=Utgang oval=Oval betjeningsenhet -pages=Sider -pageView=Sidevisning pageScale=Siden skala pageSetup=Siden Oppsett +pageView=Sidevisning +pages=Sider panTooltip=Og dra for å bla paperSize=Papirstørrelse paste=Lim inn pasteHere=Lim inn her pattern=Mønster +pause=Pause perimeter=Inng. +phone=Telefon placeholders=Plassholdere +playback=Avspilling plusTooltip=Klikk for å koble til og klone (ctrl-klikk for å klone, shift-Klikk for å koble til). Dra for å koble (ctrl dra for å klone). portrait=Stående position=Stilling posterPrint=Plakat preview=Forhåndsvisning print=Skriv ut +priority=Prioritet +project_id=Prosjekt +publish=Pubblica +query=Spørring +queue=Kø +queue_event=Hendelse +queue_id=Kø +queue_variable=Kø fra variabel +queuelog=QueueLog +queuename=Kønavn radialTree=Radial treet +record=Posten +recording=Opptak +recordingFormat=Format redo=Gjenta removeFormat=Slett formatering removeFromGroup=Fjern fra gruppe @@ -242,12 +386,16 @@ removeWaypoint=Fjern veipunkt rename=Gi nytt navn renameIt=Gi nytt navn til {1} replace=Skift -replaceIt={1} finnes allerede. Vil du erstatte den? replaceExistingDrawing=Erstatt eksisterende tegning +replaceIt={1} finnes allerede. Vil du erstatte den? reset=Tilbakestill resetView=Tilbakestill visning +response=Svar tidsavbrudd +result=Resultat +retry=Prøv på nytt right=Høyre rightAlign=Høyrejuster +rightOperand=Høyre Operand rightToLeft=Høyre til venstre rotate=Drei rotateTooltip=Klikk og dra for å rotere, klikk på for å slå av 90 grader @@ -256,6 +404,9 @@ rounded=Avrundet save=Lagre saveAs=Lagre som saved=Lagret +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Rullefelt search=Søk searchShapes=Søk former @@ -264,6 +415,10 @@ selectEdges=Velg kantene selectFont=Velg en font selectNone=Velg ingen selectVertices=Velg toppunkter +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=Sett setAsDefaultStyle=Angi som standard stil shadow=Skygge shape=Form @@ -271,21 +426,34 @@ sharp=Skarp sidebarTooltip=Klikk for å utvide. Dra og slipp former inn i diagrammet. Shift klikk for å endre valget. Alt-Klikk for å sette inn og koble til. simple=Enkel simpleArrow=Enkel pil +sip_id=SIP size=Størrelse +sms_text=Tekst solid=Solid sourceSpacing=Kilde garnavstand south=Sør spacing=Avstand +speed=Hastighet +start=Start +stats=Statistikk straight=Rett strokeColor=Linje farge style=Stil +subject=Emne +subproject=Delprosjekt subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=Systemet table=Tabell targetSpacing=Mål avstand +template_id=Mal text=Tekst textAlignment=Tekst justering textOpacity=Tekst dekkevne +threshold=Terskel +timeout=Tidsavbrudd (sekunder) +to=Til toBack=Å tilbake toFront=Til forside tooltips=Verktøytips @@ -294,206 +462,38 @@ topAlign=Øverste linje topLeft=Øverst til venstre topRight=Øverst til høyre transparent=Gjennomsiktig +trueOrFalse=Sett inn true eller false. +trunk=Trunk +trunk_name=Trunk +tts=TTS turn=Drei uml=UML underline=Underline undo=Angre ungroup=Avgruppere -url=URL +unpause=End pause untitledLayer=Untitled lag +updatingDocument=Oppdatering av dokumentet. Vennligst vent... +updatingSelection=Oppdatere utvalget. Vennligst vent... +url=URL +value=Verdi +variable=Variabel +variable_id=Variabel +variable_value=Variabel verdi vertical=Vertikal verticalFlow=Vertikal flyt verticalTree=Vertikale treet view=Vise +voicemail=Talebeskjed +vswitch=Bryter waypoints=Veipunkter west=West width=Bredde wordWrap=Tekstbryting. writingDirection=Skriving retning +wrongHiddenDigitsnum=Skjult Siffer nummer må være større enn eller lik 0 +wrongMaxDigit=Maks siffer må være større enn 0. +wrongMinDigit=Min siffer må være større enn 0. zoom=Zoom zoomIn=Zoom inn -zoomOut=Zoom ut -label=Etikett -timeout=Tidsavbrudd (sekunder) -response=Svar tidsavbrudd -digit=Maks siffer -escape=Escape sifre -retry=Prøv på nytt -name=Navn -value=Verdi -entry=Registrering -start=Start -finally=Til slutt -end=Slutten -variable=Variabel -set=Sett -operation=Drift -math=Math -result=Resultat -call_management=Samtalestyring -answer=Svar -hangup=Aktiv -dial=Intern direkte -ext_dial=Ekstern direkte -phone=Telefon -trunk=Trunk -identifier=Iden -queue=Kø -voicemail=Talebeskjed -boxnumber=Boks nummer -playback=Avspilling -menu=Menyen -saydigits=SayDigits -digits=Sifre -saynumber=SayNumber -number=Nummer -sayphonetic=SayPhonetic -escape_digits=Escape sifre -tts=TTS -ispeechtts=ISpeechTTS -key=Tasten -getdigits=GetDigits -mindigit=Min sifre -maxdigit=Maks. sifre -custom_app=Egendefinert App -language=Språk -frequency=Frekvens -integrationServer=Integration Server -database=Databasen -query=Spørring -asr=ASR -sendSMS=SendSMS -account_id=Konto -template_id=Mal -to=Til -sms_text=Tekst -sendMail=SendMail -subject=Emne -cc=Cc -threshold=Terskel -maxspeech=Maks tale -grammar=Grammatikk -ispeechasr=ISpeechASR -model=Modell -noop=NoOp -output=Utgang -system=Systemet -command=Kommando -application=Programmet -agi=AGI -args=Argumenter -subproject=Delprosjekt -goalname=Målnavn -callflow=Callflow -gotoc=Gå til -context=Kontekst -extension=Forlengelse -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Tidsintervall -leftOperand=Venstre Operand -condition=Tilstand -rightOperand=Høyre Operand -vswitch=Bryter -recording=Opptak -record=Posten -queuename=Kønavn -announceoverride=Annonsere overstyre -callid=CallID -agent=Agent -queue_event=Hendelse -data1=Data1 -data2=Data2 -data3=Data3 -data4=Data4 -data5=Data5 -macro=Makro -stats=Statistikk -queuelog=QueueLog -goal=Mål -callback=Tilbakeringing -list=Liste -delay=Forsinkelse -list_id=Liste -opts=Alternativer -queue_id=Kø -file_id=Fil -variable_id=Variabel -gosub=Gosub -project_id=Prosjekt -sip_id=SIP -trunk_name=Trunk -variable_value=Variabel verdi -database_id=Databasen -interval_id=Intervall -description_start=Start beskrivelse -publish=Pubblica -ispeech_asr_language=Språk -ispeech_tts_language=Språk -google_tts_language=Språk -queue_variable=Kø fra variabel -odbc_id=ODBC-kobling -noVariableSelected=Variabelen er ikke angitt. -noTrunkSelected=Bagasjerommet er ikke angitt. -noAudioSelected=Lydfilen er ikke angitt. -noOperandSelected=Venstre operanden er ikke angitt. -noDatabaseSelected=Databasen er ikke angitt. -noExtensionSelected=Linjen er ikke angitt. -noCommandSelected=Kommandoen er ikke angitt. -noApplicationSelected=Programmet er ikke angitt -noRightOperandSelected=Høyre operanden er ikke angitt. -noDigitsSelected=Sifrene er ikke angitt. -noNumberSelected=Nummeret er ikke angitt. -noRecipientSelected=Mottakeren er ikke spesifisert. -noTextSelected=Teksten er ikke angitt. -noAccountSelected=Kontoen er ikke angitt. -noKeySelected=Tasten er ikke angitt. -noIdentifierSelected=Iden er ikke angitt. -noQueueSelected=Køen navn er ikke angitt. -noConditionSelected=Tilstanden er ikke angitt. -noIntervalSelected=Intervallet er ikke angitt. -noContextSelected=Sammenhengen er ikke angitt. -noBoxNumberSelected=Hvis navnet ikke er angitt. -noProjectSelected=Delprosjektet er ikke angitt. -noFileSelected=Filnavnet er ikke angitt. -numberOrInvalidOrTimeout=Sett inn nummer, jeg eller t (kontroller hvite mellomrom). -numberOrAll=Sett inn nummer eller -. -numberOrInvalidOrDefault=Sett x, jeg eller -. -trueOrFalse=Sett inn true eller false. -noGoalSelected=Målet er ikke angitt. -noListSelected=Listen er ikke angitt. -musthave=Må ha -outgoingedge=Utgående kanten. -incomingedge=Innkommende kanten. -mailbox=Postboks -intKey=Avbruddstasten -speed=Hastighet -wrongMinDigit=Min siffer må være større enn 0. -wrongMaxDigit=Maks siffer må være større enn 0. -wrongHiddenDigitsnum=Skjult Siffer nummer må være større enn eller lik 0 -hiddendigitsnum=Skjult Siffer nummer -hiddendigitspos=Skjult sifre stilling -getsecretdigits=GetSecretDigits -beep=Pip -description=Beskrivelse -recordingFormat=Format -bcc=Blindkopi -invalidTimeout=Ugyldig verdi for tidsavbrudd -invalidRetry=Ugyldig verdi på nytt -invalidSpeed=Ugyldig hastighet verdi -missingQuery=Søkestrengen mangler -invalidPriority=Ugyldig verdi prioritet -invalidDelay=Ugyldig Utsettelse verdi -noAttachmentSelected=Ingen vedlegg er valgt -sendFax=SendFax -attachment_name=Valgte vedlegg -choose_attachment=Velg vedlegg -help_choose_attachment=Format: PDF, TIFF eller tif -help_delay=Tid i minutter å vente før du ringer tilbake til kontakt -noFirstNameSelected=Første navn er ikke angitt -noPhoneSelected=Telefonen er ikke angitt -editFile=Redigere XML -priority=Prioritet -numberOrLettersOrAll=Sett inn tall, bokstaver eller -. -asr=ASR +zoomOut=Zoom ut \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_pt-BR.txt b/public/assets/plugins/square/resources/grapheditor_pt-BR.txt index 1cf7d53..df46cb0 100644 --- a/public/assets/plugins/square/resources/grapheditor_pt-BR.txt +++ b/public/assets/plugins/square/resources/grapheditor_pt-BR.txt @@ -1,15 +1,5 @@ -alreadyConnected=Nós já conectados -cancel=Cancelar -close=Fechar -collapse-expand=Recolher/Expandir -containsValidationErrors=Contém erros de validação -done=Done -doubleClickOrientation=Clique duas vezes para alterar a orientação -error=Error -ok=OK -updateDocument=Atualizando documento. Por favor, espere... -updateSelection=Atualizando seleção. Por favor, espere... about=Sobre +account_id=Conta actualSize=Tamanho Real add=Adicionar addLayer=Adicionar camada @@ -17,14 +7,25 @@ addProperty=Adicionar propriedade addToExistingDrawing=Adicionar ao desenho existente addWaypoint=Adicionar Waypoint advanced=Avançado +agent=Agent +agent_management=Gerenciamento de agente +agi=AGI align=Align alignment=Alignment allChangesLost=Todas as alterações serão perdidas! +alreadyConnected=Nós já conectados angle=Angle +announceoverride=Anunciar Substituição +answer=Resposta +application=Application apply=Apply +args=Argumentos arrange=Organizar arrow=Seta arrows=Setas +asr=ASR +asr=ASR +attachment_name=Anexo Selecionado automatic=Automatic autosave=Salvamento automático autosize=Autosize @@ -32,54 +33,86 @@ background=Fundo backgroundColor=Cor de fundo backgroundImage=Imagem de fundo basic=Basic +beep=Beep block=Block blockquote=Blockquote bold=Negrito -borderWidth=Largura da borda borderColor=Cor da borda +borderWidth=Largura da borda bottom=Bottom bottomAlign=Alinhamento inferior bottomLeft=Esquerda inferior bottomRight=Parte inferior direita +boxnumber=Número da caixa bulletedList=Lista com marcadores +call_management=Gerenciamento de chamadas +callback=retorno de chamada +callflow=Callflow +callid=CallID +cancel=Cancelar cannotOpenFile=Não foi possível abrir o arquivo +cc=Cc +cco=Cco center=Center change=Change changeOrientation=Alterar orientação +choose_attachment=Escolha o Anexo circle=Circle classic=Classic clearDefaultStyle=Limpar estilo padrão clearWaypoints=Limpar pontos de passagem clipart=Clipart +close=Fechar +collapse-expand=Recolher/Expandir collapse=Recolher collapseExpand=Recolher/Expandir collapsible=recolhível comic=Comic +command=Command +condition=condição connect=Connect connection=Conexão -connectionPoints=Pontos de conexão connectionArrows=Setas de conexão +connectionPoints=Pontos de conexão constrainProportions=Restringir proporções +containsValidationErrors=Contém erros de validação +context=Contexto copy=Copiar copyConnect=Copiar no Connect create=Criar curved=Curvado custom=Custom +custom_app=Aplicativo personalizado cut=Cortar dashed=Tracejado +data1=Data1 +data2=Data2 +data3=Data3 +data4=Data4 +data5=Data5 +database=Banco de Dados +database_id=Banco de Dados decreaseIndent=Diminuir recuo default=Default +delay=Delay delete=Delete deleteColumn=Excluir coluna deleteRow=Excluir linha +description=Descrição +description_start=Iniciar descrição diagram=Diagram +dial=discagem interna diamante=Diamante diamondThin=Diamante (fino) +digit=Dígito máximo +digits=Digits direction=Direction distribuir=Distribuir divider=Divider documentProperties=Propriedades do documento +done=Done dotted=Pontilhado +doubleClickOrientation=Clique duas vezes para alterar a orientação drawing=Desenho {1} drawingEmpty=O desenho está vazio drawingTooLarge=O desenho é muito grande @@ -89,24 +122,34 @@ east=Lest edit=Editar editData=Editar dados editDiagram=Editar diagrama +editFile=Editar XML editImage=Editar imagem editLink=Editar link editStyle=Editar estilo editTooltip=Editar dica de ferramenta +end=End enterGroup=Entrar no grupo -enterValue=Digite o valor enterName=Digite o nome enterPropertyName=Digite o nome da propriedade +enterValue=Digite o valor entityRelation=Relação de entidade +entry=Entrada +error=Error +escape=Dígitos de escape +escape_digits=Dígitos de escape exitGroup=Grupo de saída expand=Expandir export=Exportar +ext_dial=Discagem externa +extension=Extension extras=Extras file=File fileNotFound=Arquivo não encontrado +file_id=Arquivo filename=Nome do arquivo fill=Fill fillColor=Cor de preenchimento +finally=Finalmente fitPage=Uma página fitPageWidth=Largura da página fitTwoPages=Duas páginas @@ -115,118 +158,237 @@ flip=Flip flipH=Virar na horizontal flipV=Flip Vertical font=Fonte -fontFamily=Família da fonte fontColor=Cor da fonte +fontFamily=Família da fonte fontSize=Tamanho da fonte format=Formato +formatGif=GIF +formatJpg=JPEG formatPanel=Painel de formato formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Formatado formattedText=Texto formatado +frequency=frequência general=Geral +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glass global=Global +goal=meta +goalname=Nome da meta +google_tts_language=Idioma +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Gradiente gradientColor=Color +grammar=gramática grid=Grid gridSize=Tamanho da grade group=Grupo guides=Guias +hangup=Hangup heading=cabeçalho height=Height help=Ajuda +help_choose_attachment=Formato: pdf, tiff ou tif +help_delay=Tempo, em minutos, para aguardar antes de retornar o contato +hidden=Hidden +hiddendigitsnum=Número de dígitos ocultos +hiddendigitspos=Posição dos dígitos ocultos hide=Ocultar hideIt=Ocultar {1} -hidden=Hidden home=Casa horizontal=Horizontal horizontalFlow=Fluxo Horizontal horizontalTree=Árvore Horizontal html=HTML +identifier=Identifier image=Imagem images=Imagens import=Import -raiseIndent=Aumentar recuo +incomingedge=borda de entrada. insert=Insert -insertColumnBefore=Inserir coluna à esquerda insertColumnAfter=Inserir coluna à direita +insertColumnBefore=Inserir coluna à esquerda insertHorizontalRule=Inserir regra horizontal insertImage=Inserir imagem insertLink=Inserir link -insertRowBefore=Inserir linha acima insertRowAfter=Inserir linha abaixo +insertRowBefore=Inserir linha acima +intKey=Chave de interrupção +integrationServer=Servidor de Integração +interval_id=Intervalo +intervalo=intervalo de tempo +invalidDelay=Valor de atraso inválido invalidName=Nome inválido invalidOrMissingFile=Arquivo inválido ou ausente +invalidPriority=Valor de prioridade inválido +invalidRetry=Valor de Nova Tentativa Inválido +invalidSpeed ​​= Valor de velocidade inválido +invalidTimeout=Valor de tempo limite inválido isometric=Isometric +ispeech_asr_language=Idioma +ispeech_tts_language=Idioma +ispeechasr=iSpeechASR +ispeechtts=iSpeechTTS italic=Itálico -layers=Camadas +key=Key +label=Etiqueta landscape=Paisagem laneColor=Lanecolor +language=idioma +layers=Camadas layout=Layout left=Esquerda leftAlign=Alinhamento à esquerda +leftOperand=Operando esquerdo leftToRight=Da esquerda para a direita line=Line -link=Link lineend=Fim da linha lineheight=Altura da linha linestart=Início da linha linewidth=Largura de linha +link=Link +list=Lista +list_id=Lista loading=Carregando lockUnlock=Bloquear / Desbloquear +login=Login +logout=Logout +lumenvoxasr=LumenvoxASR +lumenvoxtts=LumenvoxTTS +macro=Macro +mailbox=caixa de correio manual=Manual +math=Math +maxdigit=Dígitos máximos +maxspeech=Max Speech +menu=Menu middle=Middle +mindigit=dígitos mínimos misc=Misc +missingQuery=Falta a string de consulta +model=Model more=Mais moreResults=Mais resultados move=Move moveSelectionTo=Mover seleção para {1} +musthave=deve ter +name=Name navigation=Navegação new=Novo +noAccountSelected=A conta não está especificada. +noAppIdInserted=ID do aplicativo não inserido +noAppSecretInserted=Segredo do aplicativo não inserido +noApplicationSelected=O aplicativo não está especificado +noApplicationSelected=O aplicativo não está especificado. +noAttachmentSelected=Nenhum anexo selecionado +noAudioSelected=O arquivo de áudio não está especificado. +noBoxNumberSelected=O nome da caixa não está especificado. noColor=Sem cor +noCommandSelected=O comando não está especificado. +noConditionSelected=Condição não especificada. +noContextSelected=O contexto não está especificado. +noDatabaseSelected=Banco de dados não especificado. +noDigitsSelected=Dígitos não está especificado. +noExtensionSelected=A extensão não está especificada. +noFileSelected=Nome do arquivo não está especificado. noFiles=Nenhum arquivo +noFindBySelected=Localizar por não está especificado. +noFirstNameSelected=Nome não especificado +noGoalSelected=Objetivo não especificado. +noGrammarSelected=Nenhuma gramática inserida +noIdentifierSelected=Identificador não especificado. +noIntervalSelected=O intervalo não está especificado. +noKeySelected=Chave não especificada. +noListSelected=Lista não especificada. +noMethodSelected=Método não especificado noMoreResults=Sem mais resultados -none=Nenhum +noNumberSelected=Number não está especificado. +noOperandSelected=O operando esquerdo não está especificado. +noPasswordSelected=Senha não especificada +noPhoneSelected=Telefone não especificado +noProjectSelected=SubProject não está especificado. +noQueueSelected=O nome da fila não está especificado. +noRecipientSelected=O destinatário não está especificado. noResultsFor=Nenhum resultado para '{1}' +noRightOperandSelected=O operando direito não está especificado. +noTextSelected=O texto não está especificado. +noTrunkSelected=O tronco não está especificado. +noUrlInserted=URL não especificado +noUrlSelected=URL não especificado +noUsernameSelected=Nome de usuário não especificado +noVariableSelected=Variável não especificada. +none=Nenhum +noop=NoOp normal=Normal north=Norte +number=Number +numberOrAll=Inserir número ou -. +numberOrInvalidOrDefault=Insira x, i ou -. +numberOrInvalidOrTimeout=Insira o número, i ou t (verifique os espaços em branco). +numberOrLettersOrAll=Inserir números, letras ou -. numberedList=Lista numerada +odbc_id=Conexão ODBC +ok=OK opacity=Opacidade open=Open openArrow=Seta aberta openFile=Abrir arquivo -openLink=Abrir link -openSupported=O formato suportado é os arquivos .XML salvos neste software openInNewWindow=Abrir em uma nova janela openInThisWindow=Abrir nesta janela +openLink=Abrir link +openSupported=O formato suportado é os arquivos .XML salvos neste software +operation=Operação options=Opções +opts=Opções organic=Orgânico orthogonal=Ortogonal +outgoingedge=borda de saída. outline=Outline +output=Saída oval=Oval -pages=Páginas -pageView=Visualização da página pageScale=Escala de página pageSetup=Configuração da página +pageView=Visualização da página +pages=Páginas panTooltip=Espaço+Arraste para rolar paperSize=Tamanho do papel paste=Colar pasteHere=Cole aqui pattern=Pattern +pause=Pause perimeter=perímetro +phone=Phone placeholders=Espaços reservados +playback=Reprodução plusTooltip=Clique para conectar e clonar (ctrl+clique para clonar, shift+clique para conectar). Arraste para conectar (ctrl+arraste para clonar). portrait=Portrait position=Position posterPrint=Impressão de pôster preview=Visualizar print=Imprimir +priority=prioridade +project_id=Projeto +publish=Publish +query=Query +queue=Fila +queue_event=Evento +queue_id=Fila +queue_variable=Fila da variável +queuelog=QueueLog +queuename=Nome da fila radialTree=Árvore radial +raiseIndent=Aumentar recuo +record=Record +recording=Gravação +recordingFormat=Format redo=Refazer removeFormat=Limpar formatação removeFromGroup=Remover do grupo @@ -235,12 +397,16 @@ removeWaypoint=Remover Waypoint rename=Renomear renameIt=Renomear {1} replace=Substituir -replaceIt={1} já existe. Quer substituir? replaceExistingDrawing=Substituir desenho existente +replaceIt={1} já existe. Quer substituir? reset=Reset resetView=Redefinir visualização +response=Tempo limite da resposta +result=resultado +rety=Tente novamente right=Right rightAlign=Alinhar à direita +rightOperand=Operando direito rightToLeft=da direita para a esquerda rotate=Rodar rotateTooltip=Clique e arraste para girar, clique para girar 90 graus @@ -249,6 +415,9 @@ rounded=Arredondado save=Save saveAs=Salvar como saved=Salvo +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Scrollbars search=Pesquisar searchShapes=Formas de pesquisa @@ -257,6 +426,12 @@ selectEdges=Selecionar arestas selectFont=Selecione uma fonte selectNone=Selecionar nenhum selectVertices=Selecionar vértices +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +sestekasr=SestekASR +sestektts=SestekTTS +set=Set setAsDefaultStyle=Definir como estilo padrão shadow=Shadow shape=Forma @@ -264,21 +439,35 @@ sharp=Sharp sidebarTooltip=Clique para expandir. Arraste e solte formas no diagrama. Shift+clique para alterar a seleção. Alt+clique para inserir e conectar. simple=Simple simpleArrow=Seta Simples +sip_id=SIP size=tamanho +sms_account_id=Conta +sms_text=Texto solid=Solid sourceSpacing=Espaçamento de origem south=Sul spacing=espaçamento +speed=velocidade +start=Iniciar +stats=Estatísticas straight=Direto strokeColor=Cor da linha style=Style +subject=Subject +subproject=SubProject subscript=Subscript +successOrFailure=Inserir sucesso ou falha. superscript=Sobrescrito +system=System table=Tabela targetSpacing=Espaçamento de destino +template_id=Modelo text=Text textAlignment=Alinhamento de Texto textOpacity=Opacidade do texto +threshold=Threshold +timeout=Tempo limite (segundos) +to=To toBack=Voltar toFront=Para frente tooltips=Dicas de ferramenta @@ -287,227 +476,38 @@ topAlign=Alinhamento superior topLeft=Superior esquerdo topRight=Superior direito transparent=Transparente +trueOrFalse=Insira verdadeiro ou falso. +trunk=Trunk +trunk_name=Trunk +tts=TTS turn=Turn uml=UML underline=Sublinhado undo=Desfazer ungroup=Desagrupar -url=URL +unpause=Pausa final untitledLayer=Camada sem título +updateDocument=Atualizando documento. Por favor, espere... +updateSelection=Atualizando seleção. Por favor, espere... +url=URL +value=Value +variable=variável +variable_id=Variável +variable_value=Valor variável vertical=Vertical verticalFlow=Fluxo vertical verticalTree=Árvore vertical view=Visualizar +voicemail=VoiceMail +vswitch=Switch waypoints=Waypoints west=Oeste width=Largura wordWrap=Quebra de linha writingDirection=Direção da escrita +wrongHiddenDigitsnum=O número de dígitos ocultos deve ser maior ou igual a 0 +wrongMaxDigit=Dígito máximo deve ser maior que 0 +wrongMinDigit=Dígito mínimo deve ser maior que 0 zoom=Zoom zoomIn=Ampliar -zoomOut=Menos zoom -label=Etiqueta -timeout=Tempo limite (segundos) -response=Tempo limite da resposta -digit=Dígito máximo -escape=Dígitos de escape -rety=Tente novamente -name=Name -value=Value -entry=Entrada -start=Iniciar -finally=Finalmente -end=End -variable=variável -set=Set -operation=Operação -math=Math -result=resultado -call_management=Gerenciamento de chamadas -answer=Resposta -hangup=Hangup -dial=discagem interna -ext_dial=Discagem externa -phone=Phone -trunk=Trunk -identifier=Identifier -queue=Fila -voicemail=VoiceMail -boxnumber=Número da caixa -playback=Reprodução -menu=Menu -saydigits=SayDigits -digits=Digits -saynumber=SayNumber -number=Number -sayphonetic=SayPhonetic -escape_digits=Dígitos de escape -tts=TTS -ispeechtts=iSpeechTTS -key=Key -getdigits=GetDigits -mindigit=dígitos mínimos -maxdigit=Dígitos máximos -custom_app=Aplicativo personalizado -language=idioma -frequency=frequência -integrationServer=Servidor de Integração -database=Banco de Dados -query=Query -asr=ASR -sendSMS=SendSMS -account_id=Conta -template_id=Modelo -to=To -sms_text=Texto -sendMail=SendMail -subject=Subject -cc=Cc -threshold=Threshold -maxspeech=Max Speech -grammar=gramática -ispeechasr=iSpeechASR -model=Model -noop=NoOp -output=Saída -system=System -command=Command -application=Application -agi=AGI -args=Argumentos -subproject=SubProject -goalname=Nome da meta -callflow=Callflow -gotoc=Goto -context=Contexto -extension=Extension -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -intervalo=intervalo de tempo -leftOperand=Operando esquerdo -condition=condição -rightOperand=Operando direito -vswitch=Switch -recording=Gravação -record=Record -queuename=Nome da fila -announceoverride=Anunciar Substituição -callid=CallID -agent=Agent -queue_event=Evento -data1=Data1 -data2=Data2 -data3=Data3 -data4=Data4 -data5=Data5 -macro=Macro -stats=Estatísticas -queuelog=QueueLog -goal=meta -callback=retorno de chamada -list=Lista -delay=Delay -list_id=Lista -opts=Opções -queue_id=Fila -file_id=Arquivo -variable_id=Variável -gosub=Gosub -project_id=Projeto -sip_id=SIP -trunk_name=Trunk -variable_value=Valor variável -database_id=Banco de Dados -interval_id=Intervalo -description_start=Iniciar descrição -publish=Publish -ispeech_asr_language=Idioma -ispeech_tts_language=Idioma -google_tts_language=Idioma -queue_variable=Fila da variável -odbc_id=Conexão ODBC -noVariableSelected=Variável não especificada. -noTrunkSelected=O tronco não está especificado. -noAudioSelected=O arquivo de áudio não está especificado. -noOperandSelected=O operando esquerdo não está especificado. -noDatabaseSelected=Banco de dados não especificado. -noExtensionSelected=A extensão não está especificada. -noCommandSelected=O comando não está especificado. -noApplicationSelected=O aplicativo não está especificado. -noRightOperandSelected=O operando direito não está especificado. -noDigitsSelected=Dígitos não está especificado. -noNumberSelected=Number não está especificado. -noRecipientSelected=O destinatário não está especificado. -noTextSelected=O texto não está especificado. -noAccountSelected=A conta não está especificada. -noKeySelected=Chave não especificada. -noIdentifierSelected=Identificador não especificado. -noQueueSelected=O nome da fila não está especificado. -noConditionSelected=Condição não especificada. -noIntervalSelected=O intervalo não está especificado. -noContextSelected=O contexto não está especificado. -noBoxNumberSelected=O nome da caixa não está especificado. -noProjectSelected=SubProject não está especificado. -noFileSelected=Nome do arquivo não está especificado. -numberOrInvalidOrTimeout=Insira o número, i ou t (verifique os espaços em branco). -numberOrAll=Inserir número ou -. -numberOrInvalidOrDefault=Insira x, i ou -. -trueOrFalse=Insira verdadeiro ou falso. -noGoalSelected=Objetivo não especificado. -noListSelected=Lista não especificada. -musthave=deve ter -outgoingedge=borda de saída. -incomingedge=borda de entrada. -mailbox=caixa de correio -intKey=Chave de interrupção -speed=velocidade -wrongMinDigit=Dígito mínimo deve ser maior que 0 -wrongMaxDigit=Dígito máximo deve ser maior que 0 -wrongHiddenDigitsnum=O número de dígitos ocultos deve ser maior ou igual a 0 -hiddendigitsnum=Número de dígitos ocultos -hiddendigitspos=Posição dos dígitos ocultos -getsecretdigits=GetSecretDigits -beep=Beep -description=Descrição -recordingFormat=Format -cco=Cco -invalidTimeout=Valor de tempo limite inválido -invalidRetry=Valor de Nova Tentativa Inválido -invalidSpeed ​​= Valor de velocidade inválido -missingQuery=Falta a string de consulta -invalidPriority=Valor de prioridade inválido -noApplicationSelected=O aplicativo não está especificado -invalidDelay=Valor de atraso inválido -noAttachmentSelected=Nenhum anexo selecionado -sendFax=SendFax -attachment_name=Anexo Selecionado -choose_attachment=Escolha o Anexo -help_choose_attachment=Formato: pdf, tiff ou tif -help_delay=Tempo, em minutos, para aguardar antes de retornar o contato -noFirstNameSelected=Nome não especificado -noPhoneSelected=Telefone não especificado -editFile=Editar XML -priority=prioridade -numberOrLettersOrAll=Inserir números, letras ou -. -asr=ASR -lumenvoxtts=LumenvoxTTS -sestektts=SestekTTS -lumenvoxasr=LumenvoxASR -sestekasr=SestekASR -noGrammarSelected=Nenhuma gramática inserida -noAppIdInserted=ID do aplicativo não inserido -noAppSecretInserted=Segredo do aplicativo não inserido -sms_account_id=Conta -pause=Pause -unpause=Pausa final -successOrFailure=Inserir sucesso ou falha. -agent_management=Gerenciamento de agente -noFindBySelected=Localizar por não está especificado. -login=Login -logout=Logout -noUrlInserted=URL não especificado -noUsernameSelected=Nome de usuário não especificado -noPasswordSelected=Senha não especificada -noUrlSelected=URL não especificado -noMethodSelected=Método não especificado \ No newline at end of file +zoomOut=Menos zoom \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_pt-PT.txt b/public/assets/plugins/square/resources/grapheditor_pt-PT.txt index e63d976..edd6f09 100644 --- a/public/assets/plugins/square/resources/grapheditor_pt-PT.txt +++ b/public/assets/plugins/square/resources/grapheditor_pt-PT.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Nós já conectado -cancel=Cancelar -close=Fechar -collapse-expand=Recolher/Expandir -containsValidationErrors=Contém erros de validação -done=Feito -doubleClickOrientation=Faça duplo clique para alterar a orientação -error=Erro -ok=OK -updatingDocument=Atualizar o documento. Aguarde... -updatingSelection=Seleção de atualização. Aguarde... about=Sobre +account_id=Conta actualSize=Tamanho real add=Adicionar addLayer=Adicionar Nível @@ -24,14 +7,25 @@ addProperty=Adicionar propriedade addToExistingDrawing=Adicionar ao desenho existente addWaypoint=Adicionar ponto de passagem advanced=Avançado +agent=Agente +agent_management=Agent Management +agi=A AGI align=Alinhe alignment=Alinhamento allChangesLost=Todas as alterações serão perdidas! +alreadyConnected=Nós já conectado angle=Ângulo +announceoverride=Anunciar Override +answer=Resposta +application=Aplicação apply=Aplicar +args=Argumentos arrange=Organizar arrow=Seta arrows=Setas +asr=ASR +asr=ASR +attachment_name=Anexo Selecionado automatic=Automático autosave=Autosave autosize=Tam automát @@ -39,54 +33,86 @@ background=Fundo backgroundColor=Cor de fundo backgroundImage=Imagem de fundo basic=Basic +bcc=Cco +beep=Sinal sonoro block=Bloco blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=Cor da Borda +borderWidth=Borderwidth bottom=Parte Inferior bottomAlign=Alinhar parte inferior bottomLeft=Parte Inferior Esquerda bottomRight=Canto Inferior Direito +boxnumber=Número de caixa bulletedList=Lista com marcadores +call_management=Gerenciamento de Chamadas +callback=Retorno de chamada +callflow=O fluxo de chamadas +callid=CallID +cancel=Cancelar cannotOpenFile=Não é possível abrir o arquivo +cc=Cc center=Centro change=Alterar changeOrientation=Alterar a orientação +choose_attachment=Escolha o acessório circle=Círculo classic=Classic clearDefaultStyle=Claro Estilo Padrão clearWaypoints=Limpar Pontos clipart=Clipart +close=Fechar +collapse-expand=Recolher/Expandir collapse=Colapso collapseExpand=Recolher/Expandir collapsible=Colapsável comic=Banda Desenhada +command=O comando +condition=Estado connect=Ligar connection=Ligação -connectionPoints=Pontos de Ligação connectionArrows=Setas de ligação +connectionPoints=Pontos de Ligação constrainProportions=Restringir proporções +containsValidationErrors=Contém erros de validação +context=Contexto copy=Cópia copyConnect=Copiar em ligar create=Criar curved=Curvo custom=Custom +custom_app=Aplicativo personalizado cut=Cortar dashed=Tracejado +data1=Data1 +data2=Dados2 +data3=Data3 +data4=Dados4 +data5=Dados5 +database=Banco de dados +database_id=Banco de dados decreaseIndent=Diminuir indentação default=Padrão +delay=Demora delete=Excluir deleteColumn=Coluna excluir deleteRow=Excluir Linha +description=Descrição +description_start=Descrição de início diagram=Diagrama +dial=Discagem interna diamond=Diamond diamondThin=Diamond (fina) +digit=Max Dígito +digits=Dígitos direction=Direcção distribute=Distribuir divider=Divisor documentProperties=Propriedades do documento +done=Feito dotted=Tracejado +doubleClickOrientation=Faça duplo clique para alterar a orientação drawing=Desenho{1} drawingEmpty=O desenho está vazio drawingTooLarge=O desenho é demasiado grande @@ -96,24 +122,34 @@ east=Oriente edit=Editar editData=Editar dados editDiagram=Diagrama de Editar +editFile=Editar XML editImage=Editar imagem editLink=Link Editar editStyle=Editar o estilo editTooltip=Editar dica +end=Fim enterGroup=Introduza Grupo -enterValue=Digite um valor enterName=Digite o nome enterPropertyName=Introduza o nome da propriedade +enterValue=Digite um valor entityRelation=Entidade relação +entry=Entrada +error=Erro +escape=Os dígitos de evacuação +escape_digits=Os dígitos de evacuação exitGroup=Grupo de saída expand=Expandir export=Exportação +ext_dial=Discagem externa +extension=Extensão extras=Extras file=Arquivo fileNotFound=Arquivo não encontrado +file_id=Arquivo filename=Nome de arquivo fill=Encher fillColor=Cor do preenchimento +finally=Por último fitPage=Uma Página fitPageWidth=Largura da página fitTwoPages=Duas páginas @@ -122,118 +158,226 @@ flip=Flip flipH=Flip Horizontal flipV=Vertical Flip font=Font -fontFamily=Família de fontes fontColor=Cor da fonte +fontFamily=Família de fontes fontSize=Tamanho da fonte format=Formato +formatGif=GIF +formatJpg=JPEG formatPanel=Painel de formato formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Formatado formattedText=Texto formatado +frequency=Frequência general=Geral +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Vidro global=Global +goal=Objetivo +goalname=Nome da meta +google_tts_language=Idioma +gosub=Gosub +gotoc=Ir para +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Gradiente gradientColor=Cor +grammar=Gramática grid=Grade gridSize=Tamanho da Grade group=Grupo guides=Guias +hangup=Desligar heading=Rubrica height=Altura help=Ajudar +help_choose_attachment=Formato: PDF,tiff ou tif +help_delay=Tempo, em minutos, para aguardar antes de chamar de volta o contato +hidden=Oculto +hiddendigitsnum=Número de dígitos ocultos +hiddendigitspos=Posição Dígitos ocultos hide=Ocultar hideIt=Ocultar {1} -hidden=Oculto home=Home horizontal=Horizontal horizontalFlow=Fluxo Horizontal horizontalTree=Árvore Horizontal html=HTML +identifier=Identificador image=Imagem images=Imagens import=Importação +incomingedge=A borda de entrada. increaseIndent=Aumentar Recuo insert=Insira -insertColumnBefore=Insira a coluna para a esquerda insertColumnAfter=Insira a coluna direita +insertColumnBefore=Insira a coluna para a esquerda insertHorizontalRule=Insira a régua Horizontal insertImage=Inserir Imagem insertLink=Inserir link -insertRowBefore=Inserir linha acima insertRowAfter=Inserir linha abaixo +insertRowBefore=Inserir linha acima +intKey=Tecla de interrupção +integrationServer=Servidor de Integração +interval=Intervalo de tempo +interval_id=Intervalo +invalidDelay=Valor do atraso inválido invalidName=Nome inválido invalidOrMissingFile=Arquivo inválido ou ausente +invalidPriority=Valor de prioridade inválida +invalidRetry=Valor inválido Tente novamente +invalidSpeed=O valor da Velocidade Inválida +invalidTimeout=Valor de tempo limite inválido isometric=Isométrico +ispeech_asr_language=Idioma +ispeech_tts_language=Idioma +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Itálico -layers=Camadas +key=A chave +label=Rótulo landscape=Paisagem laneColor=Lanecolor +language=Idioma +layers=Camadas layout=Layout left=Esquerda leftAlign=Alinhar à esquerda +leftOperand=Operando esquerdo leftToRight=Da esquerda para a direita line=Linha -link=Link lineend=Final de Linha lineheight=Altura da linha linestart=Início de Linha linewidth=Linewidth +link=Link +list=Lista +list_id=Lista loading=Carregamento lockUnlock=Bloquear/desbloquear +login=Login +logout=Logout +macro=Macro +mailbox=Caixa de correio manual=Manual +math=Math +maxdigit=Max Dígitos +maxspeech=Max Fala +menu=Menu middle=Médio +mindigit=Min Dígitos misc=Misc +missingQuery=A cadeia de caracteres da consulta está ausente +model=Modelo more=Mais moreResults=Mais resultados move=Mover moveSelectionTo=Mover a seleção para {1} +musthave=Deve ter +name=Nome navigation=Navegação new=Novo +noAccountSelected=A conta não está especificado. +noApplicationSelected=O aplicativo não está especificado +noAttachmentSelected=Nenhum acessório selecionado +noAudioSelected=Arquivo de áudio não é especificado. +noBoxNumberSelected=Nome da caixa não for especificado. noColor=Sem cor +noCommandSelected=O comando não é especificado. +noConditionSelected=Condição não especificada. +noContextSelected=Contexto não é especificado. +noDatabaseSelected=O banco de dados não for especificado. +noDigitsSelected=Dígitos não for especificado. +noExtensionSelected=Ramal não é especificado. +noFileSelected=Nome de arquivo não for especificado. noFiles=Não há arquivos +noFindBySelected=Find by is not specified. +noFirstNameSelected=O primeiro nome é não especificado +noGoalSelected=Objetivo não é especificado. +noIdentifierSelected=Identificador não é especificado. +noIntervalSelected=Intervalo não é especificado. +noKeySelected=Chave não é especificado. +noListSelected=Lista não é especificado. noMoreResults=Não mais resultados -none=Nenhum +noNumberSelected=Número não é especificado. +noOperandSelected=Operando esquerdo é não especificado. +noPhoneSelected=O telefone não está especificado +noProjectSelected=Subprojeto não é especificado. +noQueueSelected=O nome da fila não é especificado. +noRecipientSelected=O destinatário não é especificado. noResultsFor=Não foram encontrados resultados para '{1}' +noRightOperandSelected=Operando direito não é especificado. +noTextSelected=O texto não é especificado. +noTrunkSelected=O tronco não é especificado. +noVariableSelected=Variável não for especificada. +none=Nenhum +noop=NoOp normal=Normal north=Norte +number=Número +numberOrAll=Insira o número ou -. +numberOrInvalidOrDefault=Insira x, i ou -. +numberOrInvalidOrTimeout=Inserir número, i ou t (verificar espaços em branco). +numberOrLettersOrAll=Insira números, letras ou -. numberedList=Lista numerada +odbc_id=Conexão ODBC +ok=OK opacity=Opacidade open=Abra openArrow=Seta para abrir openFile=Abrir Arquivo -openLink=Abrir link -openSupported=Formato suportado é .arquivos XML salvos a partir deste software openInNewWindow=Abrir em uma nova janela openInThisWindow=Abrir nesta janela +openLink=Abrir link +openSupported=Formato suportado é .arquivos XML salvos a partir deste software +operation=Operação options=Opções +opts=Opções organic=Orgânicos orthogonal=Ortogonal +outgoingedge=Borda de saída. outline=Esboço +output=Saída oval=Oval -pages=Páginas -pageView=Visualizar página pageScale=Escala de página pageSetup=Configuração de página +pageView=Visualizar página +pages=Páginas panTooltip=Espaço arraste para percorrer paperSize=Tamanho do papel paste=Cole pasteHere=Cole aqui pattern=Padrão +pause=Pause perimeter=Perímetro +phone=Telefone placeholders=Espaços reservados +playback=Reprodução plusTooltip=Clique para ligar e o clone (ctrl clique em Clonar, shift-clique para conectar). Arraste para conectar (ctrl arraste para clonar). portrait=Retrato position=Posição posterPrint=Impressão de pôster preview=Visualização print=Imprimir +priority=Prioridade +project_id=Projecto +publish=Pubblica +query=Consulta +queue=Fila +queue_event=Caso +queue_id=Fila +queue_variable=Fila de espera a partir da variável +queuelog=QueueLog +queuename=Nome da fila de impressão radialTree=Árvore Radial +record=Gravar +recording=A gravação +recordingFormat=Formato redo=Refazer removeFormat=Limpar formatação removeFromGroup=Remover do grupo @@ -242,12 +386,16 @@ removeWaypoint=Remova o ponto de passagem rename=Renomear renameIt=Renomear {1} replace=Substituir -replaceIt={1} já existe. Deseja substituí-lo? replaceExistingDrawing=Substituir desenho existente +replaceIt={1} já existe. Deseja substituí-lo? reset=Reset resetView=Reset View +response=Tempo limite de resposta +result=Resultado +retry=Tentar novamente right=Direito rightAlign=Alinhar à direita +rightOperand=Operando direito rightToLeft=Da direita para a esquerda rotate=Gire rotateTooltip=Clique e arraste para rodar, clique para girar por 90 graus @@ -256,6 +404,9 @@ rounded=Arredondada save=Salvar saveAs=Salvar como saved=Salvo +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Barras de Rolamento search=Pesquisar searchShapes=Formas de pesquisa @@ -264,6 +415,10 @@ selectEdges=Selecione bordas selectFont=Selecione uma fonte selectNone=Selecione Nenhum selectVertices=Selecione vértices +sendFax=SendFax +sendMail=A SendMail +sendSMS=SendSMS +set=Definir setAsDefaultStyle=Definir como estilo padrão shadow=Sombra shape=Forma @@ -271,21 +426,34 @@ sharp=Sharp sidebarTooltip=Clique para expandir. Arraste e solte as formas no diagrama. Shift-clique para alterar a selecção. Alt clique para inserir e ligar. simple=Simples simpleArrow=Seta simples +sip_id=SIP size=Tamanho +sms_text=Texto solid=Sólido sourceSpacing=Espaçamento da fonte south=Sul spacing=Espaçamento +speed=Velocidade +start=Início +stats=Stats straight=Em linha reta strokeColor=Cor da linha style=Estilo +subject=Objecto +subproject=Subprojeto subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=Sistema table=Tabela targetSpacing=Espaçamento de alvo +template_id=Modelo text=Texto textAlignment=Alinhamento de Texto textOpacity=Opacidade de texto +threshold=Limiar +timeout=Timeout (segundos) +to=A toBack=Para Trás toFront=Para a Frente tooltips=Dicas de ferramentas @@ -294,206 +462,38 @@ topAlign=Alinhar parte superior topLeft=Canto superior esquerdo topRight=Canto superior direito transparent=Transparente +trueOrFalse=Insira o verdadeiro ou falso. +trunk=Tronco +trunk_name=Tronco +tts=TTS turn=Rodar uml=UML underline=Underline undo=Desapertar ungroup=Desagrupar -url=URL +unpause=End pause untitledLayer=Camada sem título +updatingDocument=Atualizar o documento. Aguarde... +updatingSelection=Seleção de atualização. Aguarde... +url=URL +value=Valor +variable=Variável +variable_id=Variável +variable_value=O valor da variável vertical=Vertical verticalFlow=Fluxo Vertical verticalTree=Árvore Vertical view=Visualizar +voicemail=Correio de voz +vswitch=Interruptor waypoints=Pontos de passagem west=West width=Largura wordWrap=Word Wrap writingDirection=Direção da escrita +wrongHiddenDigitsnum=Número de dígitos oculto tem de ser superior ou igual a 0 +wrongMaxDigit=Max dígitos tem de ser superior a 0 +wrongMinDigit=Min dígitos tem de ser superior a 0 zoom=Zoom zoomIn=O Zoom -zoomOut=Zoom Out -label=Rótulo -timeout=Timeout (segundos) -response=Tempo limite de resposta -digit=Max Dígito -escape=Os dígitos de evacuação -retry=Tentar novamente -name=Nome -value=Valor -entry=Entrada -start=Início -finally=Por último -end=Fim -variable=Variável -set=Definir -operation=Operação -math=Math -result=Resultado -call_management=Gerenciamento de Chamadas -answer=Resposta -hangup=Desligar -dial=Discagem interna -ext_dial=Discagem externa -phone=Telefone -trunk=Tronco -identifier=Identificador -queue=Fila -voicemail=Correio de voz -boxnumber=Número de caixa -playback=Reprodução -menu=Menu -saydigits=SayDigits -digits=Dígitos -saynumber=SayNumber -number=Número -sayphonetic=SayPhonetic -escape_digits=Os dígitos de evacuação -tts=TTS -ispeechtts=ISpeechTTS -key=A chave -getdigits=GetDigits -mindigit=Min Dígitos -maxdigit=Max Dígitos -custom_app=Aplicativo personalizado -language=Idioma -frequency=Frequência -integrationServer=Servidor de Integração -database=Banco de dados -query=Consulta -asr=ASR -sendSMS=SendSMS -account_id=Conta -template_id=Modelo -to=A -sms_text=Texto -sendMail=A SendMail -subject=Objecto -cc=Cc -threshold=Limiar -maxspeech=Max Fala -grammar=Gramática -ispeechasr=ISpeechASR -model=Modelo -noop=NoOp -output=Saída -system=Sistema -command=O comando -application=Aplicação -agi=A AGI -args=Argumentos -subproject=Subprojeto -goalname=Nome da meta -callflow=O fluxo de chamadas -gotoc=Ir para -context=Contexto -extension=Extensão -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Intervalo de tempo -leftOperand=Operando esquerdo -condition=Estado -rightOperand=Operando direito -vswitch=Interruptor -recording=A gravação -record=Gravar -queuename=Nome da fila de impressão -announceoverride=Anunciar Override -callid=CallID -agent=Agente -queue_event=Caso -data1=Data1 -data2=Dados2 -data3=Data3 -data4=Dados4 -data5=Dados5 -macro=Macro -stats=Stats -queuelog=QueueLog -goal=Objetivo -callback=Retorno de chamada -list=Lista -delay=Demora -list_id=Lista -opts=Opções -queue_id=Fila -file_id=Arquivo -variable_id=Variável -gosub=Gosub -project_id=Projecto -sip_id=SIP -trunk_name=Tronco -variable_value=O valor da variável -database_id=Banco de dados -interval_id=Intervalo -description_start=Descrição de início -publish=Pubblica -ispeech_asr_language=Idioma -ispeech_tts_language=Idioma -google_tts_language=Idioma -queue_variable=Fila de espera a partir da variável -odbc_id=Conexão ODBC -noVariableSelected=Variável não for especificada. -noTrunkSelected=O tronco não é especificado. -noAudioSelected=Arquivo de áudio não é especificado. -noOperandSelected=Operando esquerdo é não especificado. -noDatabaseSelected=O banco de dados não for especificado. -noExtensionSelected=Ramal não é especificado. -noCommandSelected=O comando não é especificado. -noApplicationSelected=O aplicativo não está especificado -noRightOperandSelected=Operando direito não é especificado. -noDigitsSelected=Dígitos não for especificado. -noNumberSelected=Número não é especificado. -noRecipientSelected=O destinatário não é especificado. -noTextSelected=O texto não é especificado. -noAccountSelected=A conta não está especificado. -noKeySelected=Chave não é especificado. -noIdentifierSelected=Identificador não é especificado. -noQueueSelected=O nome da fila não é especificado. -noConditionSelected=Condição não especificada. -noIntervalSelected=Intervalo não é especificado. -noContextSelected=Contexto não é especificado. -noBoxNumberSelected=Nome da caixa não for especificado. -noProjectSelected=Subprojeto não é especificado. -noFileSelected=Nome de arquivo não for especificado. -numberOrInvalidOrTimeout=Inserir número, i ou t (verificar espaços em branco). -numberOrAll=Insira o número ou -. -numberOrInvalidOrDefault=Insira x, i ou -. -trueOrFalse=Insira o verdadeiro ou falso. -noGoalSelected=Objetivo não é especificado. -noListSelected=Lista não é especificado. -musthave=Deve ter -outgoingedge=Borda de saída. -incomingedge=A borda de entrada. -mailbox=Caixa de correio -intKey=Tecla de interrupção -speed=Velocidade -wrongMinDigit=Min dígitos tem de ser superior a 0 -wrongMaxDigit=Max dígitos tem de ser superior a 0 -wrongHiddenDigitsnum=Número de dígitos oculto tem de ser superior ou igual a 0 -hiddendigitsnum=Número de dígitos ocultos -hiddendigitspos=Posição Dígitos ocultos -getsecretdigits=GetSecretDigits -beep=Sinal sonoro -description=Descrição -recordingFormat=Formato -bcc=Cco -invalidTimeout=Valor de tempo limite inválido -invalidRetry=Valor inválido Tente novamente -invalidSpeed=O valor da Velocidade Inválida -missingQuery=A cadeia de caracteres da consulta está ausente -invalidPriority=Valor de prioridade inválida -invalidDelay=Valor do atraso inválido -noAttachmentSelected=Nenhum acessório selecionado -sendFax=SendFax -attachment_name=Anexo Selecionado -choose_attachment=Escolha o acessório -help_choose_attachment=Formato: PDF,tiff ou tif -help_delay=Tempo, em minutos, para aguardar antes de chamar de volta o contato -noFirstNameSelected=O primeiro nome é não especificado -noPhoneSelected=O telefone não está especificado -editFile=Editar XML -priority=Prioridade -numberOrLettersOrAll=Insira números, letras ou -. -asr=ASR +zoomOut=Zoom Out \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_ru.txt b/public/assets/plugins/square/resources/grapheditor_ru.txt index 453a8ff..58b936b 100644 --- a/public/assets/plugins/square/resources/grapheditor_ru.txt +++ b/public/assets/plugins/square/resources/grapheditor_ru.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Узлы уже подключен -cancel=Отмена -close=Закрыть -collapse-expand=Свернуть/развернуть -containsValidationErrors=Содержит ошибки проверки -done=Сделано -doubleClickOrientation=Двойной щелчок для изменения ориентации -error=Сообщение об ошибке -ok=OK -updatingDocument=Обновление документа. Пожалуйста подождите... -updatingSelection=Обновление выбора. Пожалуйста подождите... about=О +account_id=Счета actualSize=Фактический размер add=Добавить addLayer=Добавить слой @@ -24,14 +7,25 @@ addProperty=Добавить отель addToExistingDrawing=Добавить в существующий чертеж addWaypoint=Добавить маршрутную точку advanced=Расширенные возможности +agent=Оператор +agent_management=Agent Management +agi=AGI align=Совместите alignment=Выравнивание allChangesLost=Все изменения будут потеряны! +alreadyConnected=Узлы уже подключен angle=Угол обзора +announceoverride=Объявить переопределения +answer=Ответ +application=Приложение apply=Нанесите +args=Аргументы arrange=Договориться о arrow=Стрелка вверх arrows=Стрелки +asr=ASR +asr=ASR +attachment_name=Выбранное вложение automatic=Автоматическая autosave=Функция Autosave autosize=Размер калибровочной полосы @@ -39,54 +33,86 @@ background=Справочная информация backgroundColor=Цвет фона backgroundImage=Фоновое изображение basic=Основные +bcc=Скрытая копия +beep=Звуковой сигнал block=Блок цилиндров blockquote=Blockquote bold=Bold -borderWidth=Borderwidth borderColor=Цвет границы +borderWidth=Borderwidth bottom=В нижней части bottomAlign=Совместите нижнюю часть bottomLeft=Снизу слева bottomRight=Внизу справа +boxnumber=Поле Номер bulletedList=Маркированный список +call_management=Управление вызовами +callback=Обратный вызов +callflow=Callflow +callid=Элемент CALLID содержится +cancel=Отмена cannotOpenFile=Невозможно открыть файл +cc=Cc center=Центр change=Изменить changeOrientation=Измените ориентацию +choose_attachment=Выбрать вложение circle=Круг classic=Классический clearDefaultStyle=Очистить значения по умолчанию стиль clearWaypoints=Удалите маршрутные точки clipart=Отображать клипы +close=Закрыть +collapse-expand=Свернуть/развернуть collapse=Свернуть collapseExpand=Свернуть/развернуть collapsible=Симметричные comic=Comic +command=Команда +condition=Состояние connect=Подсоедините connection=Соединение -connectionPoints=Точки подключения connectionArrows=Соединение стрелок +connectionPoints=Точки подключения constrainProportions=Ограничивают масштабы +containsValidationErrors=Содержит ошибки проверки +context=Контексте copy=Копирование copyConnect=Копирование на подключение create=Создать curved=Изогнутая custom=Пользовательский +custom_app=Пользовательские приложения cut=Вырезать dashed=Пунктирной +data1=Data1 +data2=Data2 +data3=Данные3 +data4=Данных4 +data5=Данные5 +database=Базы данных +database_id=Базы данных decreaseIndent=Уменьшить отступ default=По умолчанию +delay=Задержки delete=Удалить deleteColumn=Удалить колонку deleteRow=Удалить строку +description=Описание +description_start=Описание запуска diagram=Схема +dial=Внутреннего набора diamond=Diamond diamondThin=Diamond (тонкий) +digit=Max цифры +digits=Цифры direction=Направление distribute=Распространять divider=Делитель documentProperties=Свойства документа +done=Сделано dotted=Пунктирной линией +doubleClickOrientation=Двойной щелчок для изменения ориентации drawing=Чертеж{1} drawingEmpty=Чертеж пуст drawingTooLarge=Чертеж - слишком большой @@ -96,24 +122,34 @@ east=Востоке edit=Изменить editData=Изменить данные editDiagram=Изменить схему +editFile=Редактирование XML editImage=Редактирование изображения editLink=Редактировать Ссылку editStyle=Изменить стиль editTooltip=Редактировать подсказки +end=Положить конец enterGroup=Введите группы -enterValue=Введите значение enterName=Введите имя enterPropertyName=Введите имя свойства +enterValue=Введите значение entityRelation=Объект связи +entry=Вступление +error=Сообщение об ошибке +escape=Escape цифр +escape_digits=Escape цифр exitGroup=Выйти из группы expand=Расширить export=Экспорт +ext_dial=Внешний диск набора команд +extension=Добавочный номер extras=Дополнительно file=Файл fileNotFound=Файл не найден +file_id=Файл filename=Имя файла fill=Заполните fillColor=Цвет заливки +finally=И наконец fitPage=На одну страницу fitPageWidth=Ширина страницы fitTwoPages=Две страницы @@ -122,118 +158,226 @@ flip=Flip flipH=Переверните горизонтальный flipV=Вертикальный опрокидывания font=Font -fontFamily=Семейство шрифтов fontColor=Font Color +fontFamily=Семейство шрифтов fontSize=Размер шрифта format=Формат +formatGif=GIF +formatJpg=JPEG formatPanel=Панель Формат formatPdf=В ФОРМАТЕ PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Отформатирован formattedText=Форматированный текст +frequency=Частота general=Генеральной +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Стекло global=Глобальной +goal=Цели +goalname=Имя задачи +google_tts_language=Язык +gosub=For to +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Величина градиента gradientColor=Цвет +grammar=Грамматика grid=Grid gridSize=Размер сетки group=Группа guides=Направляющие +hangup=Отключение heading=Заголовок height=Высота help=Справка +help_choose_attachment=Формат: PDF, TIFF или TIF +help_delay=Время в минутах, подождите, прежде чем звонить в задней части контакта +hidden=Скрытые +hiddendigitsnum=Скрытые цифры номера +hiddendigitspos=Скрытые цифры положение hide=Скрыть hideIt=Скрыть {1} -hidden=Скрытые home=Home horizontal=В горизонтальном положении horizontalFlow=Горизонтальный поток horizontalTree=В системном дереве в горизонтальном положении html=HTML +identifier=Идентификатор image=Изображение images=Изображения import=Импорт +incomingedge=Входящие края. increaseIndent=Увеличить отступ insert=Вставьте -insertColumnBefore=Вставьте слева на рулевой колонке insertColumnAfter=Вставьте справа на рулевой колонке +insertColumnBefore=Вставьте слева на рулевой колонке insertHorizontalRule=Вставьте горизонтальной линейки insertImage=Вставить изображение insertLink=Вставить ссылку -insertRowBefore=Вставить строки выше insertRowAfter=Вставить строки ниже +insertRowBefore=Вставить строки выше +intKey=Ключ прерываний +integrationServer=Integration Server +interval=Интервал времени +interval_id=Пробег до очередной замены масла +invalidDelay=Недопустимое значение задержки invalidName=Неверное имя invalidOrMissingFile=Недопустимый или отсутствующий файл +invalidPriority=Недопустимое значение приоритета +invalidRetry=Неверное значение количества повторных попыток +invalidSpeed=Неверное значение частоты вращения коленчатого вала +invalidTimeout=Неверное значение тайм-аута isometric=Изометрическая проекция +ispeech_asr_language=Язык +ispeech_tts_language=Язык +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Italic -layers=Слои +key=Ключ зажигания +label=Обозначение landscape=Пейзаж laneColor=Lanecolor +language=Язык +layers=Слои layout=Компоновка left=Влево leftAlign=Выравнивание по левому краю +leftOperand=Левый операнд leftToRight=Слева направо line=Линия -link=Связь lineend=Конец строки lineheight=Высота строки linestart=Пуск линии linewidth=Линия уширяется +link=Связь +list=Список +list_id=Список loading=Загрузка lockUnlock=Блокировка и разблокировка +login=Login +logout=Logout +macro=Макрос +mailbox=Почтовый ящик manual=Руководство по эксплуатации +math=Math +maxdigit=Max цифр +maxspeech=Max речи +menu=Меню middle=На Ближнем +mindigit=Мин цифры misc=Misc +missingQuery=Строка запроса отсутствует +model=Модель more=Более moreResults=Больше результатов move=Переместить moveSelectionTo=Переместить выбор на {1} +musthave=Должны иметь +name=Имя navigation=Система навигации new=Новые +noAccountSelected=Учетная запись не указан. +noApplicationSelected=Приложение не указан +noAttachmentSelected=Нет выбранного навесного оборудования +noAudioSelected=Звуковой файл не указан. +noBoxNumberSelected=Поле Имя не указано. noColor=Отсутствует цвет +noCommandSelected=Команда не указан. +noConditionSelected=Состояние не указан. +noContextSelected=Контексте не указан. +noDatabaseSelected=База данных не указан. +noDigitsSelected=Цифры не указан. +noExtensionSelected=Добавочный номер не указан. +noFileSelected=Имя файла не указан. noFiles=Нет файлов +noFindBySelected=Find by is not specified. +noFirstNameSelected=Имя не указано +noGoalSelected=Цель - не указан. +noIdentifierSelected=Идентификатор не указан. +noIntervalSelected=Интервал не указан. +noKeySelected=Ключ не указан. +noListSelected=Список не указан. noMoreResults=Нет больше результатов -none=При этом никто не голосовал +noNumberSelected=Номер не указан. +noOperandSelected=Левый операнд не указан. +noPhoneSelected=Номер телефона не указан +noProjectSelected=Подпроект не указан. +noQueueSelected=Имя очереди не указан. +noRecipientSelected=Получатель не указан. noResultsFor=Нет результатов для '{1}' +noRightOperandSelected=Правый операнд не указан. +noTextSelected=Текст не указан. +noTrunkSelected=Сл не указан. +noVariableSelected=Переменная не указан. +none=При этом никто не голосовал +noop=NoOp normal=Обычный north=Северной +number=Номер +numberOrAll=Вставьте номер или -. +numberOrInvalidOrDefault=Вставьте x, i или -. +numberOrInvalidOrTimeout=Вставьте номер, i или t (проверка белого пробелы). +numberOrLettersOrAll=Вставьте цифры, буквы или -. numberedList=Нумерованный список +odbc_id=Соединение ODBC +ok=OK opacity=Непрозрачность open=Открыть openArrow=Стрелки открыть openFile=Открыть файл -openLink=Открыть ссылку -openSupported=Поддерживает формат .XML сохраняются файлы из данного программного обеспечения openInNewWindow=Открыть в новом окне openInThisWindow=Откройте в этом окне +openLink=Открыть ссылку +openSupported=Поддерживает формат .XML сохраняются файлы из данного программного обеспечения +operation=Операция options=Варианты +opts=Варианты organic=Органических orthogonal=Ортогональный +outgoingedge=Исходящие края. outline=Наброски бюджета +output=Выход oval=Овальной формы -pages=Страниц -pageView=Просмотр страниц pageScale=Масштаб страницы pageSetup=Настройка параметров страницы +pageView=Просмотр страниц +pages=Страниц panTooltip=Перетащите пространства для прокрутки paperSize=Размер бумаги paste=Вставить pasteHere=Вставить сюда pattern=Шаблон +pause=Pause perimeter=По периметру +phone=Номер телефона placeholders=Симуляторы +playback=Воспроизведение plusTooltip=Щелкните для подключения и клонирования (нажмите Ctrl для клонирования, shift щелкните для подключения). Перетащите для подключения (ctrl перетащите для клонирования). portrait=Книжная ориентация position=Положение posterPrint=Печать плакатов preview=Предварительный просмотр print=Печать +priority=Первоочередное внимание +project_id=Проект +publish=Pubblica +query=Запрос +queue=Очереди +queue_event=События +queue_id=Очереди +queue_variable=Очереди от переменной +queuelog=QueueLog +queuename=Имя очереди radialTree=Радиальный дерево +record=Запись +recording=Запись +recordingFormat=Формат redo=Повторить removeFormat=Удалить форматирование removeFromGroup=Удалить из группы @@ -242,12 +386,16 @@ removeWaypoint=Снимите маршрутной точки rename=Переименовать renameIt=Переименовать {1} replace=Замените -replaceIt={1} уже существует. Хотите ли вы его заменить? replaceExistingDrawing=Заменить существующий чертеж +replaceIt={1} уже существует. Хотите ли вы его заменить? reset=Сброс resetView=Reset View +response=Тайм-аут ответа +result=В результате +retry=Повторите попытку right=Право rightAlign=Выравнивание по правому краю +rightOperand=Правый операнд rightToLeft=Справа налево rotate=Вращайте дисковый манипулятор rotateTooltip=Щелкните и перетащите с помощью мыши для поворота, нажмите для поворота на 90 градусов @@ -256,6 +404,9 @@ rounded=Скругленные save=Сохранить saveAs=Сохранить как saved=Сохраненные +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Линейки прокрутки search=Поиск searchShapes=Поиск формы @@ -264,6 +415,10 @@ selectEdges=Выберите кромок selectFont=Выберите шрифт selectNone=Выберите пункт None selectVertices=Выберите вершин +sendFax=Клиентская часть (можно использовать +sendMail=SendMail +sendSMS=SendSMS +set=Установить setAsDefaultStyle=Установить как стиль по умолчанию shadow=Тень shape=Форма @@ -271,21 +426,34 @@ sharp=Острые sidebarTooltip=Нажмите , чтобы развернуть. Перетащите фигур в схеме. Нажмите кнопку переключения для изменения выбора. Нажмите кнопку Alt для вставки и подключить. simple=Простой simpleArrow=Простой стрелкой +sip_id=SIP size=Размер +sms_text=Текст solid=Твердые sourceSpacing=Источник ширины междурядий south=Южной spacing=Ширина междурядья +speed=Скорость +start=Пуск +stats=Статистика straight=В положении для движения по прямой strokeColor=Цвет линии style=Стиль +subject=При условии +subproject=Подпроекта subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=Системы table=Таблица targetSpacing=Целевой показатель ширины междурядий +template_id=Шаблон text=Текст textAlignment=Выравнивание текста textOpacity=Текст непрозрачность +threshold=Пороговое значение +timeout=Превышение лимита времени (сек) +to=Для toBack=На задней панели toFront=К ПЕРЕДНЕЙ ЧАСТИ tooltips=Всплывающие подсказки @@ -294,206 +462,38 @@ topAlign=Top Align topLeft=Сверху слева topRight=Сверху справа transparent=Прозрачный +trueOrFalse=Вставьте true или false. +trunk=Сл +trunk_name=Сл +tts=TTS turn=Повернуть uml=UML underline=Подчеркнуть undo=Ослабьте затяжку ungroup=Рагруппировать -url=URL +unpause=End pause untitledLayer=Untitled слой +updatingDocument=Обновление документа. Пожалуйста подождите... +updatingSelection=Обновление выбора. Пожалуйста подождите... +url=URL +value=Значение +variable=Переменная +variable_id=Переменная +variable_value=Значение переменной vertical=Вертикальная verticalFlow=Вертикальный поток verticalTree=В системном дереве по вертикали view=Просмотр +voicemail=Голосовая почта +vswitch=Переключатель waypoints=Маршрутные точки west=Западный width=Ширина wordWrap=Word Wrap writingDirection=Направление письма +wrongHiddenDigitsnum=Скрытые цифры номера должно быть больше или равно 0 +wrongMaxDigit=Max цифра должна быть больше 0 +wrongMinDigit=Мин цифра должна быть больше 0 zoom=Зум-объективом zoomIn=Зум в -zoomOut=Масштаб изображения -label=Обозначение -timeout=Превышение лимита времени (сек) -response=Тайм-аут ответа -digit=Max цифры -escape=Escape цифр -retry=Повторите попытку -name=Имя -value=Значение -entry=Вступление -start=Пуск -finally=И наконец -end=Положить конец -variable=Переменная -set=Установить -operation=Операция -math=Math -result=В результате -call_management=Управление вызовами -answer=Ответ -hangup=Отключение -dial=Внутреннего набора -ext_dial=Внешний диск набора команд -phone=Номер телефона -trunk=Сл -identifier=Идентификатор -queue=Очереди -voicemail=Голосовая почта -boxnumber=Поле Номер -playback=Воспроизведение -menu=Меню -saydigits=SayDigits -digits=Цифры -saynumber=SayNumber -number=Номер -sayphonetic=SayPhonetic -escape_digits=Escape цифр -tts=TTS -ispeechtts=ISpeechTTS -key=Ключ зажигания -getdigits=GetDigits -mindigit=Мин цифры -maxdigit=Max цифр -custom_app=Пользовательские приложения -language=Язык -frequency=Частота -integrationServer=Integration Server -database=Базы данных -query=Запрос -asr=ASR -sendSMS=SendSMS -account_id=Счета -template_id=Шаблон -to=Для -sms_text=Текст -sendMail=SendMail -subject=При условии -cc=Cc -threshold=Пороговое значение -maxspeech=Max речи -grammar=Грамматика -ispeechasr=ISpeechASR -model=Модель -noop=NoOp -output=Выход -system=Системы -command=Команда -application=Приложение -agi=AGI -args=Аргументы -subproject=Подпроекта -goalname=Имя задачи -callflow=Callflow -gotoc=Goto -context=Контексте -extension=Добавочный номер -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Интервал времени -leftOperand=Левый операнд -condition=Состояние -rightOperand=Правый операнд -vswitch=Переключатель -recording=Запись -record=Запись -queuename=Имя очереди -announceoverride=Объявить переопределения -callid=Элемент CALLID содержится -agent=Оператор -queue_event=События -data1=Data1 -data2=Data2 -data3=Данные3 -data4=Данных4 -data5=Данные5 -macro=Макрос -stats=Статистика -queuelog=QueueLog -goal=Цели -callback=Обратный вызов -list=Список -delay=Задержки -list_id=Список -opts=Варианты -queue_id=Очереди -file_id=Файл -variable_id=Переменная -gosub=For to -project_id=Проект -sip_id=SIP -trunk_name=Сл -variable_value=Значение переменной -database_id=Базы данных -interval_id=Пробег до очередной замены масла -description_start=Описание запуска -publish=Pubblica -ispeech_asr_language=Язык -ispeech_tts_language=Язык -google_tts_language=Язык -queue_variable=Очереди от переменной -odbc_id=Соединение ODBC -noVariableSelected=Переменная не указан. -noTrunkSelected=Сл не указан. -noAudioSelected=Звуковой файл не указан. -noOperandSelected=Левый операнд не указан. -noDatabaseSelected=База данных не указан. -noExtensionSelected=Добавочный номер не указан. -noCommandSelected=Команда не указан. -noApplicationSelected=Приложение не указан -noRightOperandSelected=Правый операнд не указан. -noDigitsSelected=Цифры не указан. -noNumberSelected=Номер не указан. -noRecipientSelected=Получатель не указан. -noTextSelected=Текст не указан. -noAccountSelected=Учетная запись не указан. -noKeySelected=Ключ не указан. -noIdentifierSelected=Идентификатор не указан. -noQueueSelected=Имя очереди не указан. -noConditionSelected=Состояние не указан. -noIntervalSelected=Интервал не указан. -noContextSelected=Контексте не указан. -noBoxNumberSelected=Поле Имя не указано. -noProjectSelected=Подпроект не указан. -noFileSelected=Имя файла не указан. -numberOrInvalidOrTimeout=Вставьте номер, i или t (проверка белого пробелы). -numberOrAll=Вставьте номер или -. -numberOrInvalidOrDefault=Вставьте x, i или -. -trueOrFalse=Вставьте true или false. -noGoalSelected=Цель - не указан. -noListSelected=Список не указан. -musthave=Должны иметь -outgoingedge=Исходящие края. -incomingedge=Входящие края. -mailbox=Почтовый ящик -intKey=Ключ прерываний -speed=Скорость -wrongMinDigit=Мин цифра должна быть больше 0 -wrongMaxDigit=Max цифра должна быть больше 0 -wrongHiddenDigitsnum=Скрытые цифры номера должно быть больше или равно 0 -hiddendigitsnum=Скрытые цифры номера -hiddendigitspos=Скрытые цифры положение -getsecretdigits=GetSecretDigits -beep=Звуковой сигнал -description=Описание -recordingFormat=Формат -bcc=Скрытая копия -invalidTimeout=Неверное значение тайм-аута -invalidRetry=Неверное значение количества повторных попыток -invalidSpeed=Неверное значение частоты вращения коленчатого вала -missingQuery=Строка запроса отсутствует -invalidPriority=Недопустимое значение приоритета -invalidDelay=Недопустимое значение задержки -noAttachmentSelected=Нет выбранного навесного оборудования -sendFax=Клиентская часть (можно использовать -attachment_name=Выбранное вложение -choose_attachment=Выбрать вложение -help_choose_attachment=Формат: PDF, TIFF или TIF -help_delay=Время в минутах, подождите, прежде чем звонить в задней части контакта -noFirstNameSelected=Имя не указано -noPhoneSelected=Номер телефона не указан -editFile=Редактирование XML -priority=Первоочередное внимание -numberOrLettersOrAll=Вставьте цифры, буквы или -. -asr=ASR +zoomOut=Масштаб изображения \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_sv.txt b/public/assets/plugins/square/resources/grapheditor_sv.txt index 84a1d69..faa8ace 100644 --- a/public/assets/plugins/square/resources/grapheditor_sv.txt +++ b/public/assets/plugins/square/resources/grapheditor_sv.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Noder redan ansluten -cancel=Avbryt -close=Stäng -collapse-expand=Kollapsa/expandera -containsValidationErrors=Innehåller valideringsfel -done=Utfärdat -doubleClickOrientation=Dubbelklicka för att ändra orientering -error=Fel -ok=OK -updatingDocument=Uppdatera dokumentet. Vänligen vänta ... -updatingSelection=Uppdatering av urval. Vänligen vänta ... about=Om +account_id=Konto actualSize=Verklig storlek add=Lägg till addLayer=Lägg till lager @@ -24,14 +7,25 @@ addProperty=Lägg till egenskap addToExistingDrawing=Lägg till befintlig ritning addWaypoint=Lägg till waypoint advanced=Avancerade +agent=Agent +agent_management=Agent Management +agi=AGI align=Rikta in alignment=Justering allChangesLost=Alla ändringar kommer att förloras! +alreadyConnected=Noder redan ansluten angle=Vinkel +announceoverride=Meddela åsidosätta +answer=Svar +application=Tillämpning apply=Tillämpa +args=Argument arrange=Ordna arrow=Pilen arrows=Pilar +asr=ASR +asr=ASR +attachment_name=Utvalda tillbehör automatic=Automatisk autosave=Autosave autosize=Autostlk @@ -39,54 +33,86 @@ background=Bakgrund backgroundColor=Bakgrundsfärg backgroundImage=Bakgrundsbild basic=Grundläggande +bcc=Dold kopia +beep=Ljudsignal block=Blockera blockquote=Blockquote bold=Fetstil -borderWidth=Borderwidth borderColor=Kantfärg +borderWidth=Borderwidth bottom=Botten bottomAlign=Nedre rikta bottomLeft=Längst ned till vänster bottomRight=Nedre högra +boxnumber=Nummer bulletedList=Bulleted förteckningen +call_management=Samtalshantering +callback=Återuppringning +callflow=Callflow +callid=CallID +cancel=Avbryt cannotOpenFile=Kan inte öppna fil +cc=Krets center=Center change=Ändra changeOrientation=Ändra orientering +choose_attachment=Välj tillbehör circle=Cirkel classic=Klassiska clearDefaultStyle=Rensa standardinställningar clearWaypoints=Klart waypoints clipart=Clipart +close=Stäng +collapse-expand=Kollapsa/expandera collapse=Komprimera collapseExpand=Kollapsa/expandera collapsible=Hopfällbara comic=Komisk +command=Kommando +condition=Skick connect=Anslut connection=Anslutning -connectionPoints=Anslutningspunkter connectionArrows=Anslutning pilar +connectionPoints=Anslutningspunkter constrainProportions=Tvinga proportioner +containsValidationErrors=Innehåller valideringsfel +context=Bakgrund copy=Kopiera copyConnect=Kopia på Anslut create=Skapa curved=Böjd custom=Anpassad +custom_app=Anpassad applikation cut=Skär dashed=Streckad +data1=Data1 +data2=Data2 +data3=Data3 +data4=Data4 +data5=Data5 +database=Databas +database_id=Databas decreaseIndent=Minska indrag default=Standard +delay=Fördröjning delete=Ta bort deleteColumn=Radera kolumn deleteRow=Radera rad +description=Beskrivning +description_start=Start beskrivning diagram=Kopplingsschema +dial=Inre ring diamond=Diamond diamondThin=Diamond (tunna) +digit=Max siffra +digits=Siffror direction=Riktning distribute=Fördela divider=Avdelare documentProperties=Dokumentegenskaper +done=Utfärdat dotted=Streckad +doubleClickOrientation=Dubbelklicka för att ändra orientering drawing=Ritning{1} drawingEmpty=Ritningen är tom drawingTooLarge=Ritningen är för stor @@ -96,24 +122,34 @@ east=Mellanöstern edit=Redigera editData=Redigera data editDiagram=Redigera diagram +editFile=Redigera XML editImage=Redigera bild editLink=Redigera länk editStyle=Redigera stil editTooltip=Redigera Tooltip +end=Slutet enterGroup=Ange grupp -enterValue=Ange värde enterName=Ange namn enterPropertyName=Ange verksamhetens namn +enterValue=Ange värde entityRelation=Enhet förhållande +entry=Inmatning +error=Fel +escape=Escape-tecken +escape_digits=Escape-tecken exitGroup=Stäng grupp expand=Expandera export=Exportera +ext_dial=Yttre ring +extension=Förlängning extras=Extrafunktioner file=Fil fileNotFound=Filen hittades inte +file_id=Fil filename=Filnamn fill=Fyll fillColor=Fyll färg +finally=Slutligen fitPage=En sida fitPageWidth=Sidbredd fitTwoPages=Två sidor @@ -122,118 +158,226 @@ flip=Vänd flipH=Bläddrar horisontellt flipV=Bläddrar vertikalt font=Font -fontFamily=Teckensnittsfamilj fontColor=Font Color +fontFamily=Teckensnittsfamilj fontSize=Teckenstorlek format=Format +formatGif=GIF +formatJpg=JPEG formatPanel=Formatet på instrumentpanelen formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Formaterad formattedText=Formaterad text +frequency=Frekvens general=Allmänt +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Glas global=Global +goal=Mål +goalname=Målnamn +google_tts_language=Språk +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Lutning gradientColor=Färg +grammar=Grammatik grid=Rutnät gridSize=Rutnätets storlek group=Grupp guides=Guider +hangup=Lägg på heading=Rubrik height=Höjd help=Hjälp +help_choose_attachment=Format: pdf, tiff eller tif +help_delay=Tid i minuter att vänta innan du ringer tillbaka kontakt +hidden=Dolt +hiddendigitsnum=Dolda siffrorna nummer +hiddendigitspos=Dolda siffrorna läge hide=Dölj hideIt=Dölj {1} -hidden=Dolt home=Hem horizontal=Horisontell horizontalFlow=Horisontellt flöde horizontalTree=Horisontellt träd html=HTML +identifier=Id image=Bild images=Bilder import=Importera +incomingedge=Inkommande kant. increaseIndent=Öka indrag insert=Infoga -insertColumnBefore=Infoga kolumn till vänster insertColumnAfter=Infoga kolumn till höger +insertColumnBefore=Infoga kolumn till vänster insertHorizontalRule=Infoga horisontell regel insertImage=Infoga bild insertLink=Infoga länk -insertRowBefore=Infoga rad ovanför insertRowAfter=Infoga rad nedanför +insertRowBefore=Infoga rad ovanför +intKey=Avbrottstangenten +integrationServer=Integration Server +interval=Tidsintervall +interval_id=Intervall +invalidDelay=Ogiltigt värde för fördröjning invalidName=Ogiltigt namn invalidOrMissingFile=Ogiltig eller saknad fil +invalidPriority=Ogiltig prioriteringsvärde +invalidRetry=Ogiltig återförsöksvärdet +invalidSpeed=Ogiltigt värde +invalidTimeout=Ogiltigt timeoutvärde isometric=Isometrisk +ispeech_asr_language=Språk +ispeech_tts_language=Språk +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Kursiv stil -layers=Lager +key=Nyckel +label=Etikett landscape=Liggande laneColor=Lanecolor +language=Språk +layers=Lager layout=Layout left=Vänster leftAlign=Vänster justera +leftOperand=Vänstra operanden leftToRight=Vänster till höger line=Linje -link=Länk lineend=Radslut lineheight=Radavstånd linestart=Radstart linewidth=Linjebredd +link=Länk +list=Lista +list_id=Lista loading=Lastning lockUnlock=Lås/lås upp +login=Login +logout=Logout +macro=Makro +mailbox=Brevlåda manual=Manuell +math=Matte +maxdigit=Max. siffror +maxspeech=Max inlägg +menu=Meny middle=Mitten +mindigit=Min siffror misc=Div. +missingQuery=Frågesträngen saknas +model=Modell more=Mer moreResults=Fler resultat move=Flytta moveSelectionTo=Flytta markeringen till {1} +musthave=Måste ha +name=Namn navigation=Navigation new=Nya +noAccountSelected=Kontot är inte angivet. +noApplicationSelected=Programmet är inte angiven +noAttachmentSelected=Inga tillbehör har valts +noAudioSelected=Ljudfilen är inte angivet. +noBoxNumberSelected=Rutan namn anges inte. noColor=Ingen färg +noCommandSelected=Kommandot är inte angivet. +noConditionSelected=Villkoret är inte angivet. +noContextSelected=Ramen är inte angivet. +noDatabaseSelected=Databasen är inte angivet. +noDigitsSelected=Siffrorna är inte angivet. +noExtensionSelected=Anknytningen är inte angivet. +noFileSelected=Filnamnet är inte angivet. noFiles=Inga filer +noFindBySelected=Find by is not specified. +noFirstNameSelected=Förnamn är inte angiven +noGoalSelected=Målet är inte angivet. +noIdentifierSelected=Identifieraren är inte angivet. +noIntervalSelected=Intervallet är inte angivet. +noKeySelected=Nyckeln är inte angivet. +noListSelected=Listan är inte angivet. noMoreResults=Inga fler resultat -none=Ingen +noNumberSelected=Numret är inte angivet. +noOperandSelected=Vänstra operanden anges inte. +noPhoneSelected=Telefonen är inte angiven +noProjectSelected=Delprojektet är inte angivet. +noQueueSelected=Könamnet är inte angivet. +noRecipientSelected=Mottagaren är inte angivet. noResultsFor=Inga resultat för '{1}' +noRightOperandSelected=Höger operanden anges inte. +noTextSelected=Texten är inte angivet. +noTrunkSelected=Bagageutrymmet är inte angivet. +noVariableSelected=Variabeln är inte angivet. +none=Ingen +noop=NoOp normal=Normal north=Norr +number=Nummer +numberOrAll=För in nummer eller -. +numberOrInvalidOrDefault=Sätt x, jag eller -. +numberOrInvalidOrTimeout=Infoga nummer, jag eller t (kontrollera vita utrymmen). +numberOrLettersOrAll=Sätt in siffror, bokstäver eller -. numberedList=Numrerad lista +odbc_id=ODBC-anslutning +ok=OK opacity=Opacitet open=Öppna openArrow=Öppna pilen openFile=Öppna fil -openLink=Öppna länk -openSupported=Stödde format är .XML-filar som räddas alltifrån denna mjukvara openInNewWindow=Öppna i nytt fönster openInThisWindow=Öppna detta fönster +openLink=Öppna länk +openSupported=Stödde format är .XML-filar som räddas alltifrån denna mjukvara +operation=Drift options=Alternativ +opts=Alternativ organic=Ekologiska orthogonal=Rätvinkliga +outgoingedge=Utgående kant. outline=Kontur +output=Utgång oval=Oval manöverpanel -pages=Sidor -pageView=Sidvy pageScale=Sidan skala pageSetup=Utskriftsformat +pageView=Sidvy +pages=Sidor panTooltip=Plats dra för att bläddra paperSize=Pappersstorlek paste=Klistra in pasteHere=Klistra in här pattern=Mönster +pause=Pause perimeter=Omkrets +phone=Telefon placeholders=Platshållare +playback=Uppspelning plusTooltip=Klicka på Anslut och klon (Ctrl-klicka för att klona, skift klicka här för att ansluta). Dra för att ansluta (ctrl dra till klon). portrait=Stående position=Läge posterPrint=Affisch för utskrift preview=Förhandsgranska print=Skriv ut +priority=Prioritet +project_id=Projektet +publish=Pubblica +query=Fråga +queue=Kö +queue_event=Händelse +queue_id=Kö +queue_variable=Kön variabel +queuelog=QueueLog +queuename=Könamn radialTree=Radiella träd +record=Spela in +recording=Inspelning +recordingFormat=Format redo=Redo removeFormat=Rensa formatering removeFromGroup=Ta bort från grupp @@ -242,12 +386,16 @@ removeWaypoint=Ta bort waypoint rename=Namn renameIt=Byta namn på {1} replace=Byt -replaceIt={1} finns redan. Vill du ersätta det? replaceExistingDrawing=Byt ut befintlig ritning +replaceIt={1} finns redan. Vill du ersätta det? reset=Återställ resetView=Återställ vy +response=Svarstimeout +result=Resultat +retry=Försök igen right=Höger rightAlign=Högerjustera +rightOperand=Höger Operand rightToLeft=Höger till vänster rotate=Rotera rotateTooltip=Klicka och dra för att rotera, klicka på för att stänga av 90 grader @@ -256,6 +404,9 @@ rounded=Rundad save=Spara saveAs=Spara som saved=Sparad +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Rullningslister search=Sök searchShapes=Sökningformar @@ -264,6 +415,10 @@ selectEdges=Välj kanter selectFont=Välj ett teckensnitt selectNone=Välj ingen selectVertices=Välj hörn +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=Ställ setAsDefaultStyle=Som standard Style shadow=Shadow shape=Formen @@ -271,21 +426,34 @@ sharp=Skarp sidebarTooltip=Klicka för att expandera. Dra och släpp formar in i bilden. Skift klicka för att ändra val. Alt-klicka för att infoga och anslut. simple=Enkel simpleArrow=Enkel pil +sip_id=SIP size=Storlek +sms_text=Text solid=Fast sourceSpacing=Källspridning south=Söder spacing=Radavstånd +speed=Hastighet +start=Starta +stats=Statistik straight=Rakt strokeColor=Linjefärg style=Stil +subject=Föremål +subproject=Delprojekt subscript=Subscript +successOrFailure=Insert success or failure. superscript=Upphöjd +system=Systemet table=Tabell targetSpacing=Mål avstånd +template_id=Mall text=Text textAlignment=Textinriktning textOpacity=Text opacitet +threshold=Tröskel +timeout=Timeout för passivitet (sekunder) +to=Till toBack=Till baksida toFront=Till framsida tooltips=Verktygstips @@ -294,206 +462,38 @@ topAlign=Top passa topLeft=Övre vänstra topRight=Övre högra transparent=Genomskinlig +trueOrFalse=Sätt sant eller falskt. +trunk=Segmentgrupp +trunk_name=Segmentgrupp +tts=TTS turn=Vrid uml=UML underline=Betona undo=Ångra ungroup=Avgruppera -url=URL +unpause=End pause untitledLayer=Untitled lager +updatingDocument=Uppdatera dokumentet. Vänligen vänta ... +updatingSelection=Uppdatering av urval. Vänligen vänta ... +url=URL +value=Värde +variable=Variabel +variable_id=Variabel +variable_value=Variabelt värde vertical=Vertikal verticalFlow=Vertikalt flöde verticalTree=Vertikalt träd view=Visa +voicemail=Röstmeddelande +vswitch=Strömbrytare waypoints=Waypoints west=West width=Bredd wordWrap=Radbrytning writingDirection=Författa riktning +wrongHiddenDigitsnum=Dolda siffror som måste vara större än eller lika med 0 +wrongMaxDigit=Max siffran måste vara större än 0 +wrongMinDigit=Min siffra måste vara större än 0 zoom=Zoom zoomIn=Zooma in -zoomOut=Zooma ut -label=Etikett -timeout=Timeout för passivitet (sekunder) -response=Svarstimeout -digit=Max siffra -escape=Escape-tecken -retry=Försök igen -name=Namn -value=Värde -entry=Inmatning -start=Starta -finally=Slutligen -end=Slutet -variable=Variabel -set=Ställ -operation=Drift -math=Matte -result=Resultat -call_management=Samtalshantering -answer=Svar -hangup=Lägg på -dial=Inre ring -ext_dial=Yttre ring -phone=Telefon -trunk=Segmentgrupp -identifier=Id -queue=Kö -voicemail=Röstmeddelande -boxnumber=Nummer -playback=Uppspelning -menu=Meny -saydigits=SayDigits -digits=Siffror -saynumber=SayNumber -number=Nummer -sayphonetic=SayPhonetic -escape_digits=Escape-tecken -tts=TTS -ispeechtts=ISpeechTTS -key=Nyckel -getdigits=GetDigits -mindigit=Min siffror -maxdigit=Max. siffror -custom_app=Anpassad applikation -language=Språk -frequency=Frekvens -integrationServer=Integration Server -database=Databas -query=Fråga -asr=ASR -sendSMS=SendSMS -account_id=Konto -template_id=Mall -to=Till -sms_text=Text -sendMail=SendMail -subject=Föremål -cc=Krets -threshold=Tröskel -maxspeech=Max inlägg -grammar=Grammatik -ispeechasr=ISpeechASR -model=Modell -noop=NoOp -output=Utgång -system=Systemet -command=Kommando -application=Tillämpning -agi=AGI -args=Argument -subproject=Delprojekt -goalname=Målnamn -callflow=Callflow -gotoc=Goto -context=Bakgrund -extension=Förlängning -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Tidsintervall -leftOperand=Vänstra operanden -condition=Skick -rightOperand=Höger Operand -vswitch=Strömbrytare -recording=Inspelning -record=Spela in -queuename=Könamn -announceoverride=Meddela åsidosätta -callid=CallID -agent=Agent -queue_event=Händelse -data1=Data1 -data2=Data2 -data3=Data3 -data4=Data4 -data5=Data5 -macro=Makro -stats=Statistik -queuelog=QueueLog -goal=Mål -callback=Återuppringning -list=Lista -delay=Fördröjning -list_id=Lista -opts=Alternativ -queue_id=Kö -file_id=Fil -variable_id=Variabel -gosub=Gosub -project_id=Projektet -sip_id=SIP -trunk_name=Segmentgrupp -variable_value=Variabelt värde -database_id=Databas -interval_id=Intervall -description_start=Start beskrivning -publish=Pubblica -ispeech_asr_language=Språk -ispeech_tts_language=Språk -google_tts_language=Språk -queue_variable=Kön variabel -odbc_id=ODBC-anslutning -noVariableSelected=Variabeln är inte angivet. -noTrunkSelected=Bagageutrymmet är inte angivet. -noAudioSelected=Ljudfilen är inte angivet. -noOperandSelected=Vänstra operanden anges inte. -noDatabaseSelected=Databasen är inte angivet. -noExtensionSelected=Anknytningen är inte angivet. -noCommandSelected=Kommandot är inte angivet. -noApplicationSelected=Programmet är inte angiven -noRightOperandSelected=Höger operanden anges inte. -noDigitsSelected=Siffrorna är inte angivet. -noNumberSelected=Numret är inte angivet. -noRecipientSelected=Mottagaren är inte angivet. -noTextSelected=Texten är inte angivet. -noAccountSelected=Kontot är inte angivet. -noKeySelected=Nyckeln är inte angivet. -noIdentifierSelected=Identifieraren är inte angivet. -noQueueSelected=Könamnet är inte angivet. -noConditionSelected=Villkoret är inte angivet. -noIntervalSelected=Intervallet är inte angivet. -noContextSelected=Ramen är inte angivet. -noBoxNumberSelected=Rutan namn anges inte. -noProjectSelected=Delprojektet är inte angivet. -noFileSelected=Filnamnet är inte angivet. -numberOrInvalidOrTimeout=Infoga nummer, jag eller t (kontrollera vita utrymmen). -numberOrAll=För in nummer eller -. -numberOrInvalidOrDefault=Sätt x, jag eller -. -trueOrFalse=Sätt sant eller falskt. -noGoalSelected=Målet är inte angivet. -noListSelected=Listan är inte angivet. -musthave=Måste ha -outgoingedge=Utgående kant. -incomingedge=Inkommande kant. -mailbox=Brevlåda -intKey=Avbrottstangenten -speed=Hastighet -wrongMinDigit=Min siffra måste vara större än 0 -wrongMaxDigit=Max siffran måste vara större än 0 -wrongHiddenDigitsnum=Dolda siffror som måste vara större än eller lika med 0 -hiddendigitsnum=Dolda siffrorna nummer -hiddendigitspos=Dolda siffrorna läge -getsecretdigits=GetSecretDigits -beep=Ljudsignal -description=Beskrivning -recordingFormat=Format -bcc=Dold kopia -invalidTimeout=Ogiltigt timeoutvärde -invalidRetry=Ogiltig återförsöksvärdet -invalidSpeed=Ogiltigt värde -missingQuery=Frågesträngen saknas -invalidPriority=Ogiltig prioriteringsvärde -invalidDelay=Ogiltigt värde för fördröjning -noAttachmentSelected=Inga tillbehör har valts -sendFax=SendFax -attachment_name=Utvalda tillbehör -choose_attachment=Välj tillbehör -help_choose_attachment=Format: pdf, tiff eller tif -help_delay=Tid i minuter att vänta innan du ringer tillbaka kontakt -noFirstNameSelected=Förnamn är inte angiven -noPhoneSelected=Telefonen är inte angiven -editFile=Redigera XML -priority=Prioritet -numberOrLettersOrAll=Sätt in siffror, bokstäver eller -. -asr=ASR +zoomOut=Zooma ut \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_tr.txt b/public/assets/plugins/square/resources/grapheditor_tr.txt index 6bc2ee8..44b3d12 100644 --- a/public/assets/plugins/square/resources/grapheditor_tr.txt +++ b/public/assets/plugins/square/resources/grapheditor_tr.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=Düğüm zaten bağlı -cancel=İptal -close=Close -collapse-expand=Çöküş/Genişlet -containsValidationErrors=Doğrulama içerir hata -done=Bitti -doubleClickOrientation=Seçiminizin Değiştirmek Yönü -error=Hata -ok=Tamam -updatingDocument=Belgenin güncellenmesi. Lütfen bekleyin... -updatingSelection=Güncelleme Seçimi. Lütfen bekleyin... about=Yaklaşık +account_id=Hesap actualSize=Gerçek Boyutu add=Ekle addLayer=Add Katman @@ -24,14 +7,25 @@ addProperty=Ekleme Özelliği addToExistingDrawing=Add Mevcut Çizim addWaypoint=Rota Noktası Ekle advanced=Gelişmiş +agent=Ajan +agent_management=Agent Management +agi=AGI align=Hizalayın alignment=Hizalama allChangesLost=Tüm değişiklikler silinecek! +alreadyConnected=Düğüm zaten bağlı angle=Açı +announceoverride=Geçersiz ilan +answer=Cevap +application=Uygulama apply=Uygula +args=Argümanlar arrange=Düzenleyin arrow=Ok arrows=Oklar +asr=ASR +asr=ASR +attachment_name=Seçilen Bağlantı automatic=Otomatik autosave=Autosave ( autosize=Autosize @@ -39,54 +33,86 @@ background=Arka plan backgroundColor=Arka Plan Rengi backgroundImage=Arka Plan Görüntüsü basic=Temel +bcc=Gizli +beep=Sesli uyarı block=Bloğu blockquote=Blockquote bold=Kalın -borderWidth=Borderwidth borderColor=Sınır Rengi +borderWidth=Borderwidth bottom=Alt bottomAlign=Alt Hizalayın bottomLeft=Sol alt bottomRight=Sağ alt +boxnumber=Kutu Numarası bulletedList=Madde işaretli liste +call_management=Çağrı Yönetimi +callback=Arama +callflow=Callflow +callid=CallID +cancel=İptal cannotOpenFile=Dosya açılamıyor +cc=Cc center=Orta change=Değiştirme changeOrientation=Değiştirme Yönü +choose_attachment=Ek seçin circle=Daire classic=Klasik clearDefaultStyle=Net Varsayılan Stil clearWaypoints=Rota siliniz clipart=Küçük resimler +close=Close +collapse-expand=Çöküş/Genişlet collapse=Çöktü collapseExpand=Çöküş/Genişlet collapsible=Katlanabilir comic=Çizgi roman +command=Komut +condition=Durumunu connect=Bağlayın connection=Bağlantı -connectionPoints=Bağlantı noktaları connectionArrows=Bağlantı okları +connectionPoints=Bağlantı noktaları constrainProportions=Aksatma Oranları +containsValidationErrors=Doğrulama içerir hata +context=Içerik copy=Kopyalama copyConnect=Kopyalama Bağlayın create=Create curved=Kıvrımlı custom=Özel +custom_app=Özel App cut=Kesilmiş dashed=Kesikli +data1=Data1 +data2=Data2 +data3=Data3 +data4=Veri4 +data5=Veri5 +database=Veritabanı +database_id=Veritabanı decreaseIndent=Girintiyi Azalt default=Varsayılan +delay=Gecikme delete=Sil deleteColumn=Sütun Sil deleteRow=Satır silme +description=Açıklama +description_start=Başlangıç açıklama diagram=Şeması +dial=Dahili Arama diamond=Elmas diamondThin=Diamond (ince). +digit=Maksimum Sayı +digits=Basamak direction=Yön distribute=Dağıtmak divider=Bölücü documentProperties=Belge Özellikleri +done=Bitti dotted=Kesik +doubleClickOrientation=Seçiminizin Değiştirmek Yönü drawing=Çizim{1} drawingEmpty=Çizim boş drawingTooLarge=Resim çok büyük. @@ -96,24 +122,34 @@ east=Doğu edit=Düzenle editData=Veri Düzenle editDiagram=Edit Şeması +editFile=Edit XML editImage=Resim düzenle editLink=Edit Link editStyle=Edit Style editTooltip=Düzenle Araç ipucu +end=Son enterGroup=Giriş Grubu -enterValue=Değeri girin enterName=Adı girin enterPropertyName=Enter Özellik Adı +enterValue=Değeri girin entityRelation=Taraf Konumunu +entry=Giriş +error=Hata +escape=Escape Rakam +escape_digits=Escape Rakam exitGroup=Çıkış Grubu expand=Genişlet export=Ihracat +ext_dial=Harici Arama +extension=Uzatma extras=Ekstralar file=Dosya fileNotFound=Dosya bulunamadı. +file_id=Dosya filename=Dosya adı fill=Doldurma fillColor=Dolum Renk +finally=Son olarak fitPage=Bir Sayfa fitPageWidth=Sayfa Genişliği fitTwoPages=İki Sayfa @@ -122,118 +158,226 @@ flip=Çevirme flipH=Flip Yatay flipV=Flip Dikey font=Yazı Tipi -fontFamily=Yazı Tipi Ailesi fontColor=Yazı tipi rengi +fontFamily=Yazı Tipi Ailesi fontSize=Yazı Tipi Boyutu format=Biçimi +formatGif=GIF +formatJpg=JPEG formatPanel=Format Tablosu formatPdf=PDF formatPng=PNG -formatGif=GIF -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=Biçimlendirilmiş formattedText=Biçimlendirilmiş Metin +frequency=Frekans general=Genel +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=Cam global=Küresel +goal=Amacı +goalname=Hedef Adı +google_tts_language=Dil +gosub=Gosub +gotoc=Git +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=Eğim gradientColor=Renk +grammar=Dilbilgisi grid=Izgara gridSize=Izgara Boyutu group=Grup guides=Kılavuzları +hangup=Bağlantıyı Kes heading=Yön height=Yükseklik help=Yardım +help_choose_attachment=Format: pdf,tiff ya da tif +help_delay=Saat, dakika, bekleyin önce tekrar temas +hidden=Gizli +hiddendigitsnum=Gizli Basamak Numarası +hiddendigitspos=Gizli Rakam konumu hide=Gizle hideIt=Hide {1} -hidden=Gizli home=Ev horizontal=Yatay horizontalFlow=Yatay Akış horizontalTree=Yatay Ağaç html=HTML +identifier=Tanımlayıcı image=Görüntü images=Görüntüler import=Alma +incomingedge=Gelen kenar. increaseIndent=Girintiyi Artır insert=Ek -insertColumnBefore=Ek Kolon Sol insertColumnAfter=Ek Kolon Sağ +insertColumnBefore=Ek Kolon Sol insertHorizontalRule=Ek Yatay Kural insertImage=Resim insertLink=Link Ekle -insertRowBefore=Ek Sıra Üzeri insertRowAfter=Ek Sıra Altında +insertRowBefore=Ek Sıra Üzeri +intKey=Kesme Anahtarı +integrationServer=Entegrasyon Sunucusu +interval=Zaman Aralığı +interval_id=Aralığı +invalidDelay=Geçersiz bir gecikme değeri invalidName=Geçersiz ad invalidOrMissingFile=Geçersiz veya eksik dosya +invalidPriority=Geçersiz bir Öncelik değeri +invalidRetry=Geçersiz Yeniden değer +invalidSpeed=Geçersiz değer +invalidTimeout=Geçersiz Zaman Aşımı değeri isometric=İzometrik +ispeech_asr_language=Dil +ispeech_tts_language=Dil +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=Italic -layers=Katmanlı +key=Anahtar +label=Etiket landscape=Yatay laneColor=Lanecolor +language=Dil +layers=Katmanlı layout=Düzen left=Sol leftAlign=Sol Hizalayın +leftOperand=Sol işlenenine atanamıyor leftToRight=Sol - Sağ line=Hat -link=Link lineend=Hat Sonu lineheight=Satır Yüksekliği linestart=Hat Başlat linewidth=Linewidth +link=Link +list=Listesi +list_id=Listesi loading=Yükleme lockUnlock=Kilitleme / Kilit Açma +login=Login +logout=Logout +macro=Makro +mailbox=Posta Kutusu manual=Manuel +math=Matematik +maxdigit=Max Rakam +maxspeech=Maksimum Konuşma +menu=Menü middle=Orta +mindigit=Min Rakam misc=Diğer +missingQuery=Query string eksik +model=Model more=Daha fazla moreResults=Daha Fazla Sonuç move=Hareket moveSelectionTo=Hareket Seçim {1} +musthave=Gerekir. +name=Adı navigation=Seyir sistemi new=Yeni +noAccountSelected=Hesap belirtilmiş. +noApplicationSelected=Uygulama belirtilen +noAttachmentSelected=Ek yok seçili +noAudioSelected=Ses dosyası belirtilmemiş. +noBoxNumberSelected=Kutu Adı belirtilmemiştir. noColor=Renk yok. +noCommandSelected=Komut belirtilmiş. +noConditionSelected=Durumu belirtilmemiş. +noContextSelected=İçerik olarak belirtilmemiştir. +noDatabaseSelected=Veritabanı olarak belirtilmemiştir. +noDigitsSelected=Rakam olarak belirtilmemiştir. +noExtensionSelected=Uzatma. +noFileSelected=Dosya adı belirtilmemiş. noFiles=Dosya yok +noFindBySelected=Find by is not specified. +noFirstNameSelected=İlk adı belirtilmemiş +noGoalSelected=Hedef belirtilmedi. +noIdentifierSelected=Tanımlayıcı olarak belirtilmemiştir. +noIntervalSelected=Aralığı belirtilmemiş. +noKeySelected=Anahtar mevcut değil. +noListSelected=Listede belirtilmiş. noMoreResults=Daha fazla sonuç -none=Yok +noNumberSelected=Numarası belirtilmemiş. +noOperandSelected=Sol işlenenine atanamıyor. +noPhoneSelected=Telefon tanımlı değil +noProjectSelected=SubProject belirtilmemiştir. +noQueueSelected=Kuyruğu Adı belirtilmemiştir. +noRecipientSelected=Alıcı belirtilmemiş. noResultsFor=Sonuç yok '{1}' +noRightOperandSelected=Sağ işlenenine atanamıyor. +noTextSelected=Metin. +noTrunkSelected=Santral belirtilmemiştir. +noVariableSelected=Değişken olarak belirtilmemiştir. +none=Yok +noop=NoOp normal=Normal north=Kuzey +number=Numarası +numberOrAll=Ek numarası veya -. +numberOrInvalidOrDefault=Ek x, i veya -. +numberOrInvalidOrTimeout=Insert number, i veya t (doğrulayın beyaz boşluk). +numberOrLettersOrAll=Ek sayı, harf veya -. numberedList=Numaralanmış liste +odbc_id=ODBC bağlantısı +ok=Tamam opacity=Yoğunluğu open=Açık openArrow=Açık Ok openFile=Dosya aç -openLink=Açık Link -openSupported=Desteklenen format .XML dosyalarını kaydettiğiniz bu yazılım openInNewWindow=Yeni Pencerede Aç openInThisWindow=Açık, bu pencere +openLink=Açık Link +openSupported=Desteklenen format .XML dosyalarını kaydettiğiniz bu yazılım +operation=Çalışması options=Seçenekleri +opts=Seçenekleri organic=Organik orthogonal=Ortogonal +outgoingedge=Giden kenar. outline=Çerçeve +output=Çıkış oval=Oval -pages=Sayfaları -pageView=Sayfa Görünümü pageScale=Sayfa Ölçeği pageSetup=Page Setup +pageView=Sayfa Görünümü +pages=Sayfaları panTooltip=Alan Sürükleyin Kaydırma paperSize=Kağıt Boyutu paste=Yapıştır pasteHere=Buraya yapıştırın pattern=Patern +pause=Pause perimeter=Çevre +phone=Telefon placeholders=Yer Tutucular +playback=Oynatma plusTooltip=Bağlanmak için tıklatın ve kopyala (ctrl için kopyala, değiştirme bağlanmak için tıklatın). Sürükleyerek (ctrl sürükle kopyalamak için). portrait=Portre position=Konum posterPrint=Poster Yazdırma preview=Önizleme print=Baskı +priority=Öncelik +project_id=Proje +publish=Pubblica +query=Sorgu +queue=Kuyruk +queue_event=Olay +queue_id=Kuyruk +queue_variable=Kuyruk, Değişken +queuelog=QueueLog +queuename=Kuyruğu Adı radialTree=Radyal Ağacı +record=Kayıt +recording=Kayıt +recordingFormat=Biçimi redo=Yinele removeFormat=Net Biçimlendirme removeFromGroup=Gruptan Kaldır @@ -242,12 +386,16 @@ removeWaypoint=Rota sökün rename=Yeniden Adlandır renameIt=Yeniden Adlandır {1} replace=Sigortayı değiştiriniz -replaceIt={1} zaten mevcut. Değiştirmek istiyor musunuz? replaceExistingDrawing=Varolan çizim +replaceIt={1} zaten mevcut. Değiştirmek istiyor musunuz? reset=Sıfırlama resetView=Görünümü Sıfırla +response=Yanıt Süresi +result=Sonuç +retry=Yeniden dene right=Sağ rightAlign=Sağ Hizalayın +rightOperand=Sağ Belgeleri rightToLeft=Sağ - Sol rotate=Döndürmek rotateTooltip=Döndürmek için tıklatın ve sürükleyin, 90 derece @@ -256,6 +404,9 @@ rounded=Yuvarlak save=Kaydet saveAs=Kaydet saved=Kaydedilen +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=Kaydırma çubukları search=Arama searchShapes=Arama Şekilleri @@ -264,6 +415,10 @@ selectEdges=Kenarları seçin selectFont=Select a Font selectNone=Hiçbiri selectVertices=Vertices seçeneğini seçin +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=Set setAsDefaultStyle=Varsayılan olarak Stil shadow=Gölge shape=Şekil @@ -271,21 +426,34 @@ sharp=Keskin sidebarTooltip=Genişletmek için tıklayın. Sürükle ve bırak şekiller, şeması. Vites değiştirmek için tıklatın. Alt için takın ve bağlayın. simple=Basit simpleArrow=Basit Ok +sip_id=SIP size=Boyut +sms_text=Metin solid=Katı sourceSpacing=Kaynak Aralığı south=Güney spacing=Aralığı +speed=Hız +start=Başlangıç +stats=İstatistikleri straight=Düz strokeColor=Çizgi Rengi style=Tarzına +subject=Konu +subproject=SubProject subscript=Subscript +successOrFailure=Insert success or failure. superscript=Superscript +system=Sistem table=Masa targetSpacing=Hedef Aralığı +template_id=Şablon text=Metin textAlignment=Metin Hizalama textOpacity=Metin yoğunluğu +threshold=Eşiği +timeout=Zaman Aşımı (saniye) +to=- toBack=Geri toFront=Ön tooltips=Araç ipuçları @@ -294,206 +462,38 @@ topAlign=Üst Hizalayın topLeft=Sol Üst topRight=Sağ Üst transparent=Şeffaf +trueOrFalse=Insert doğru veya yanlış. +trunk=Santral +trunk_name=Santral +tts=TTS turn=Dönüş uml=UML underline=Altı çizili undo=Geri Al ungroup=Ungroup -url=URL +unpause=End pause untitledLayer=İsimsiz Katman +updatingDocument=Belgenin güncellenmesi. Lütfen bekleyin... +updatingSelection=Güncelleme Seçimi. Lütfen bekleyin... +url=URL +value=Değer +variable=Değişken +variable_id=Değişken +variable_value=Değişken Değeri vertical=Dikey verticalFlow=Dikey Akış verticalTree=Dikey Ağacı view=Görünüm +voicemail=Sesli posta +vswitch=Kontaktörü waypoints=Rota Noktaları west=Batı width=Genişlik wordWrap=Sözcük Kaydırma writingDirection=Yazma Yönü +wrongHiddenDigitsnum=Gizli Rakam sayısı, 0'dan büyük veya eşit +wrongMaxDigit=Max Rakam, büyük 0 +wrongMinDigit=Dakika basamağı, daha fazla 0 zoom=Zoom zoomIn=Yakınlaştırma -zoomOut=Zoom Out -label=Etiket -timeout=Zaman Aşımı (saniye) -response=Yanıt Süresi -digit=Maksimum Sayı -escape=Escape Rakam -retry=Yeniden dene -name=Adı -value=Değer -entry=Giriş -start=Başlangıç -finally=Son olarak -end=Son -variable=Değişken -set=Set -operation=Çalışması -math=Matematik -result=Sonuç -call_management=Çağrı Yönetimi -answer=Cevap -hangup=Bağlantıyı Kes -dial=Dahili Arama -ext_dial=Harici Arama -phone=Telefon -trunk=Santral -identifier=Tanımlayıcı -queue=Kuyruk -voicemail=Sesli posta -boxnumber=Kutu Numarası -playback=Oynatma -menu=Menü -saydigits=SayDigits -digits=Basamak -saynumber=SayNumber -number=Numarası -sayphonetic=SayPhonetic -escape_digits=Escape Rakam -tts=TTS -ispeechtts=ISpeechTTS -key=Anahtar -getdigits=GetDigits -mindigit=Min Rakam -maxdigit=Max Rakam -custom_app=Özel App -language=Dil -frequency=Frekans -integrationServer=Entegrasyon Sunucusu -database=Veritabanı -query=Sorgu -asr=ASR -sendSMS=SendSMS -account_id=Hesap -template_id=Şablon -to=- -sms_text=Metin -sendMail=SendMail -subject=Konu -cc=Cc -threshold=Eşiği -maxspeech=Maksimum Konuşma -grammar=Dilbilgisi -ispeechasr=ISpeechASR -model=Model -noop=NoOp -output=Çıkış -system=Sistem -command=Komut -application=Uygulama -agi=AGI -args=Argümanlar -subproject=SubProject -goalname=Hedef Adı -callflow=Callflow -gotoc=Git -context=Içerik -extension=Uzatma -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=Zaman Aralığı -leftOperand=Sol işlenenine atanamıyor -condition=Durumunu -rightOperand=Sağ Belgeleri -vswitch=Kontaktörü -recording=Kayıt -record=Kayıt -queuename=Kuyruğu Adı -announceoverride=Geçersiz ilan -callid=CallID -agent=Ajan -queue_event=Olay -data1=Data1 -data2=Data2 -data3=Data3 -data4=Veri4 -data5=Veri5 -macro=Makro -stats=İstatistikleri -queuelog=QueueLog -goal=Amacı -callback=Arama -list=Listesi -delay=Gecikme -list_id=Listesi -opts=Seçenekleri -queue_id=Kuyruk -file_id=Dosya -variable_id=Değişken -gosub=Gosub -project_id=Proje -sip_id=SIP -trunk_name=Santral -variable_value=Değişken Değeri -database_id=Veritabanı -interval_id=Aralığı -description_start=Başlangıç açıklama -publish=Pubblica -ispeech_asr_language=Dil -ispeech_tts_language=Dil -google_tts_language=Dil -queue_variable=Kuyruk, Değişken -odbc_id=ODBC bağlantısı -noVariableSelected=Değişken olarak belirtilmemiştir. -noTrunkSelected=Santral belirtilmemiştir. -noAudioSelected=Ses dosyası belirtilmemiş. -noOperandSelected=Sol işlenenine atanamıyor. -noDatabaseSelected=Veritabanı olarak belirtilmemiştir. -noExtensionSelected=Uzatma. -noCommandSelected=Komut belirtilmiş. -noApplicationSelected=Uygulama belirtilen -noRightOperandSelected=Sağ işlenenine atanamıyor. -noDigitsSelected=Rakam olarak belirtilmemiştir. -noNumberSelected=Numarası belirtilmemiş. -noRecipientSelected=Alıcı belirtilmemiş. -noTextSelected=Metin. -noAccountSelected=Hesap belirtilmiş. -noKeySelected=Anahtar mevcut değil. -noIdentifierSelected=Tanımlayıcı olarak belirtilmemiştir. -noQueueSelected=Kuyruğu Adı belirtilmemiştir. -noConditionSelected=Durumu belirtilmemiş. -noIntervalSelected=Aralığı belirtilmemiş. -noContextSelected=İçerik olarak belirtilmemiştir. -noBoxNumberSelected=Kutu Adı belirtilmemiştir. -noProjectSelected=SubProject belirtilmemiştir. -noFileSelected=Dosya adı belirtilmemiş. -numberOrInvalidOrTimeout=Insert number, i veya t (doğrulayın beyaz boşluk). -numberOrAll=Ek numarası veya -. -numberOrInvalidOrDefault=Ek x, i veya -. -trueOrFalse=Insert doğru veya yanlış. -noGoalSelected=Hedef belirtilmedi. -noListSelected=Listede belirtilmiş. -musthave=Gerekir. -outgoingedge=Giden kenar. -incomingedge=Gelen kenar. -mailbox=Posta Kutusu -intKey=Kesme Anahtarı -speed=Hız -wrongMinDigit=Dakika basamağı, daha fazla 0 -wrongMaxDigit=Max Rakam, büyük 0 -wrongHiddenDigitsnum=Gizli Rakam sayısı, 0'dan büyük veya eşit -hiddendigitsnum=Gizli Basamak Numarası -hiddendigitspos=Gizli Rakam konumu -getsecretdigits=GetSecretDigits -beep=Sesli uyarı -description=Açıklama -recordingFormat=Biçimi -bcc=Gizli -invalidTimeout=Geçersiz Zaman Aşımı değeri -invalidRetry=Geçersiz Yeniden değer -invalidSpeed=Geçersiz değer -missingQuery=Query string eksik -invalidPriority=Geçersiz bir Öncelik değeri -invalidDelay=Geçersiz bir gecikme değeri -noAttachmentSelected=Ek yok seçili -sendFax=SendFax -attachment_name=Seçilen Bağlantı -choose_attachment=Ek seçin -help_choose_attachment=Format: pdf,tiff ya da tif -help_delay=Saat, dakika, bekleyin önce tekrar temas -noFirstNameSelected=İlk adı belirtilmemiş -noPhoneSelected=Telefon tanımlı değil -editFile=Edit XML -priority=Öncelik -numberOrLettersOrAll=Ek sayı, harf veya -. -asr=ASR +zoomOut=Zoom Out \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_zh-CN.txt b/public/assets/plugins/square/resources/grapheditor_zh-CN.txt index a0aae91..98df538 100644 --- a/public/assets/plugins/square/resources/grapheditor_zh-CN.txt +++ b/public/assets/plugins/square/resources/grapheditor_zh-CN.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=节点已经连接 -cancel=取消 -close=关闭 -collapse-expand=折叠/展开 -containsValidationErrors=包含验证错误 -done=完成 -doubleClickOrientation=双击以更改方向 -error=错误 -ok=“确定” 按钮 -updatingDocument=更新的文档。 请稍候... -updatingSelection=更新的选项。 请稍候... about=关于 +account_id=帐户 actualSize=实际大小 add=添加 addLayer=添加图层 @@ -24,14 +7,25 @@ addProperty=添加属性 addToExistingDrawing=添加到现有的绘图 addWaypoint=添加航点 advanced=高级 +agent=座席 +agent_management=Agent Management +agi=阿希 align=对齐 alignment=对齐 allChangesLost=所有更改都将会丢失! +alreadyConnected=节点已经连接 angle=角度 +announceoverride=宣布覆盖 +answer=答 +application=应用程序 apply=应用 +args=参数 arrange=安排 arrow=箭头 arrows=箭头 +asr=ASR +asr=ASR +attachment_name=所选附件 automatic=自动 autosave=自动保存功能。 autosize=自动调整大小 @@ -39,54 +33,86 @@ background=背景资料 backgroundColor=背景颜色 backgroundImage=背景图像 basic=基本的 +bcc=密件抄送 +beep=蜂鸣音 block=阻止 blockquote=尚未创建 bold=粗体 -borderWidth=Borderwidth borderColor=边框颜色。 +borderWidth=Borderwidth bottom=底部 bottomAlign=底部对齐 bottomLeft=底部左侧 bottomRight=右下角 +boxnumber=箱号 bulletedList=项目符号列表。 +call_management=呼叫管理 +callback=回叫。 +callflow=调用流 +callid=CallID +cancel=取消 cannotOpenFile=无法打开文件 +cc=抄送 center=中心 change=更改 changeOrientation=更改方向 +choose_attachment=选择附件 circle=圆 classic=经典 clearDefaultStyle=明确的默认样式。 clearWaypoints=明确的航点 clipart=剪贴画。 +close=关闭 +collapse-expand=折叠/展开 collapse=崩溃 collapseExpand=折叠/展开 collapsible=可折叠 comic=漫画 +command=命令 +condition=条件 connect=连接 connection=连接 -connectionPoints=连接点 connectionArrows=连接的箭头。 +connectionPoints=连接点 constrainProportions=保持比例 +containsValidationErrors=包含验证错误 +context=上下文 copy=复制 copyConnect=上复制连接 create=创建 curved=曲线 custom=自定义 +custom_app=自定义应用程序 cut=切割 dashed=虚线 +data1=数据1 +data2=数据2 +data3=数据3 +data4=数据4 +data5=数据5 +database=数据库 +database_id=数据库 decreaseIndent=减少缩进 default=默认值 +delay=延迟时间 delete=删除 deleteColumn=删除列 deleteRow=删除的行 +description=描述 +description_start=开始说明。 diagram=图 +dial=内部拨号 diamond=钻石 diamondThin=钻石(瘦) +digit=最大位数 +digits=数字 direction=方向的 distribute=分发 divider=分禾器尖 documentProperties="文档属性"中。 +done=完成 dotted=带点 +doubleClickOrientation=双击以更改方向 drawing=图{1} drawingEmpty=图为空 drawingTooLarge=图太大 @@ -96,24 +122,34 @@ east=东 edit=编辑 editData=编辑数据。 editDiagram=编辑图表 +editFile=编辑 XML editImage=编辑图像 editLink=编辑链接。 editStyle=编辑样式 editTooltip=编辑工具提示 +end=结束 enterGroup=输入组 -enterValue=输入值。 enterName=请输入名称。 enterPropertyName=输入属性的名称 +enterValue=输入值。 entityRelation=实体的关系 +entry=条目 +error=错误 +escape=逃出数字 +escape_digits=逃出数字 exitGroup=退出组 expand=展开 export=导出 +ext_dial=外拨 +extension=扩展 extras=附加服务 file=文件 fileNotFound=未找到文件 +file_id=文件 filename=文件名。 fill=加油 fillColor=填充颜色 +finally=最后 fitPage=一页 fitPageWidth=页面宽度 fitTwoPages=两个页面 @@ -122,118 +158,226 @@ flip=翻转 flipH=水平翻转 flipV=垂直翻转 font=字体 -fontFamily=字体系列 fontColor=字体颜色。 +fontFamily=字体系列 fontSize=字体大小 format=格式 +formatGif=GIF。 +formatJpg=JPEG formatPanel=格式化板 formatPdf=PDF formatPng=PNG -formatGif=GIF。 -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=格式化 formattedText=格式化文本。 +frequency=频率 general=总的 +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=玻璃 global=全球 +goal=目标 +goalname=目标名称 +google_tts_language=语言 +gosub=Gosub +gotoc=Goto +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=梯度 gradientColor=彩色 +grammar=语法错误 grid=网格 gridSize=网格大小 group=本集团 guides=指南 +hangup=挂断 heading=标题 height=高度 help=帮助 +help_choose_attachment=格式: pdf、tiff 或 tif +help_delay=时间, 以分钟为单位, 之前的等待回叫联系 +hidden=隐藏 +hiddendigitsnum=隐藏的数字编号 +hiddendigitspos=隐藏的数字的位置。 hide=隐藏 hideIt=隐藏{1} -hidden=隐藏 home=主页 horizontal=水平 horizontalFlow=水平流 horizontalTree=水平树 html=HTML +identifier=标识符 image=映像 images=图像 import=导入 +incomingedge=传入的边缘。 increaseIndent=增加缩进 insert=插入 -insertColumnBefore=插入列左 insertColumnAfter=插入列的右侧 +insertColumnBefore=插入列左 insertHorizontalRule=插入水平线 insertImage=插入图像 insertLink=插入链接 -insertRowBefore=插入上面的行 insertRowAfter=插入下面的行 +insertRowBefore=插入上面的行 +intKey=“中断” 按键 +integrationServer=整合服务器 +interval=时间间隔 +interval_id=时间间隔 +invalidDelay=无效的延迟值。 invalidName=无效的名称。 invalidOrMissingFile=无效或丢失的文件。 +invalidPriority=无效的优先级值。 +invalidRetry=重试值无效 +invalidSpeed=无效的速度值。 +invalidTimeout=无效的超时值。 isometric=正等轴测图 +ispeech_asr_language=语言 +ispeech_tts_language=语言 +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=斜体 -layers=图层 +key=密钥 +label=标签 landscape=横向 laneColor=Lanecolor +language=语言 +layers=图层 layout=布局 left=左 leftAlign=左对齐 +leftOperand=左边的操作数 leftToRight=从左到右 line=行 -link=链接。 lineend=线的端点 lineheight=行高 linestart=行开始 linewidth=Linewidth +link=链接。 +list=列表 +list_id=列表 loading=正在加载 lockUnlock=锁定和解锁/ +login=Login +logout=Logout +macro=宏 +mailbox=邮箱 manual=手动 +math=数学 +maxdigit=最大位数 +maxspeech=最大语音 +menu=菜单 middle=中东 +mindigit=最小位数 misc=Misc +missingQuery=查询字符串是缺失 +model=型号 more=更多 moreResults=更多的结果。 move=移动 moveSelectionTo=将选择移动至{1} +musthave=必须有 +name=名称 navigation=导航 new=新的 +noAccountSelected=帐户未被指定。 +noApplicationSelected=应用程序未指定 +noAttachmentSelected=没有选定的附件 +noAudioSelected=音频文件中未指定。 +noBoxNumberSelected="框中的名称是不被指明。 noColor=无颜色 +noCommandSelected=命令不指定。 +noConditionSelected=未指定条件。 +noContextSelected=没有指定环境。 +noDatabaseSelected=数据库未被指定。 +noDigitsSelected=位未被指定。 +noExtensionSelected=扩展未指定的。 +noFileSelected=未指定文件名。 noFiles=没有任何文件。 +noFindBySelected=Find by is not specified. +noFirstNameSelected=第一名是未指定 +noGoalSelected=目标是没有指定。 +noIdentifierSelected=标识符未被指定。 +noIntervalSelected=时间间隔内未指定。 +noKeySelected=未指定键。 +noListSelected=列表中没有规定。 noMoreResults=没有更多的结果。 -none=无 +noNumberSelected=号码是没有指定。 +noOperandSelected=左边的操作数是没有指定。 +noPhoneSelected=电话未指定 +noProjectSelected=子项目未被指定。 +noQueueSelected=队列名称是未指定。 +noRecipientSelected=收件人未指定。 noResultsFor=没有结果的 “{1}” +noRightOperandSelected=右操作数不指定。 +noTextSelected=文本没有规定。 +noTrunkSelected=中继线未指定。 +noVariableSelected=变量未被指定。 +none=无 +noop=NoOp normal=正常的 north=北 +number=号码 +numberOrAll=插入编号或-。 +numberOrInvalidOrDefault=插入 x、i 或-。 +numberOrInvalidOrTimeout=插入号码、i 或 t(空格)。 +numberOrLettersOrAll=插入数字、字母或-。 numberedList=编号的列表。 +odbc_id=ODBC 连接 +ok=“确定” 按钮 opacity=不透明度 open=打开 openArrow=打开箭头 openFile=打开文件 -openLink=打开链接。 -openSupported=支持的格式为. XML 文件中保存的此软件。 openInNewWindow=在新窗口中打开”。 openInThisWindow=打开此窗口。 +openLink=打开链接。 +openSupported=支持的格式为. XML 文件中保存的此软件。 +operation=操作 options=选项。 +opts=选项。 organic=有机 orthogonal=正交结构 +outgoingedge=传出的边。 outline=大纲 +output=输出 oval=椭圆形 -pages=页面 -pageView=页面视图 pageScale=页面显示比例 pageSetup=页面设置 +pageView=页面视图 +pages=页面 panTooltip=空间拖动滚动 paperSize=纸张大小 paste=粘贴 pasteHere=在此处粘贴 pattern=模式 +pause=Pause perimeter=周边环境 +phone=电话 placeholders=占位符。 +playback=播放 plusTooltip=单击以连接和克隆(按住 ctrl 键单击要克隆的, 按住 shift 键并单击要连接)。 将其拖动到连接(按住 ctrl 键拖动来克隆)。 portrait=纵向 position=位置 posterPrint=海报打印 preview=预览 print=打印 +priority=优先级 +project_id=项目 +publish=1983 年至 1984 年 +query=查询 +queue=队列 +queue_event=事件 +queue_id=队列 +queue_variable=从队列中的变量 +queuelog=队列 +queuename=队列的名称。 radialTree=放射状的树 +record=记录 +recording=录制 +recordingFormat=格式 redo=重做 removeFormat=清除格式 removeFromGroup=从组中删除 @@ -242,12 +386,16 @@ removeWaypoint=删除道路点。 rename=重命名 renameIt=重命名为{1} replace=更换 -replaceIt={1}已存在。 您要替换它吗? replaceExistingDrawing=替换现有的绘图 +replaceIt={1}已存在。 您要替换它吗? reset=重置 resetView=重置视图 +response=响应超时 +result=结果。 +retry=重试 right=右键 rightAlign=右对齐 +rightOperand=右操作数 rightToLeft=从右到左 rotate=旋转 rotateTooltip=单击并拖动以旋转, 然后单击要打开的 90 度 @@ -256,6 +404,9 @@ rounded=圆角 save=保存 saveAs=另存为 saved=已保存的 +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=滚动条 search=搜索 searchShapes=搜索形状。 @@ -264,6 +415,10 @@ selectEdges=选择边缘 selectFont=选择一种字体。 selectNone=选择 “无” selectVertices=选择顶点 +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=设置 setAsDefaultStyle=设置为默认样式。 shadow=阴影 shape=形状 @@ -271,21 +426,34 @@ sharp=Sharp sidebarTooltip=单击以展开。 拖放形状的图标。 按住 Shift 键并单击要更改的选项。 Alt 单击以插入并连接。 simple=简单 simpleArrow=简单的箭头 +sip_id=SIP size=大小 +sms_text=文本 solid=固体 sourceSpacing=源间距 south=南 spacing=间距 +speed=速度 +start=开始 +stats=统计数据 straight=直通 strokeColor=线的颜色 style=样式 +subject=主题 +subproject=子项目 subscript=下标 +successOrFailure=Insert success or failure. superscript=上标 +system=系统 table=表 targetSpacing=目标间距 +template_id=模板。 text=文本 textAlignment=文本对齐 textOpacity=文本的不透明度 +threshold=阈值 +timeout=超时(秒) +to=到 toBack=备 toFront=到前面 tooltips=“工具提示”。 @@ -294,206 +462,38 @@ topAlign=顶部对齐 topLeft=左上角的 topRight=右上方 transparent=透明 +trueOrFalse=插入 “真” 或 “假”。 +trunk=中继线 +trunk_name=中继线 +tts=TTS turn=关闭 uml=UML underline=强调 undo=撤消 ungroup=取消分组 -url=URL。 +unpause=End pause untitledLayer=未命名层 +updatingDocument=更新的文档。 请稍候... +updatingSelection=更新的选项。 请稍候... +url=URL。 +value=值 +variable=变量 +variable_id=变量 +variable_value=变量值。 vertical=垂直市场 verticalFlow=垂直流 verticalTree=垂直的树 view=查看 +voicemail=语音邮件 +vswitch=开关 waypoints=航点 west=西 width=宽度 wordWrap=自动换行 writingDirection=书写方向 +wrongHiddenDigitsnum=隐藏的数字必须大于或等于 0 +wrongMaxDigit=最大位数必须大于 0 +wrongMinDigit=最小位数必须大于 0 zoom=缩放比例 zoomIn=缩放图像 -zoomOut=放大 -label=标签 -timeout=超时(秒) -response=响应超时 -digit=最大位数 -escape=逃出数字 -retry=重试 -name=名称 -value=值 -entry=条目 -start=开始 -finally=最后 -end=结束 -variable=变量 -set=设置 -operation=操作 -math=数学 -result=结果。 -call_management=呼叫管理 -answer=答 -hangup=挂断 -dial=内部拨号 -ext_dial=外拨 -phone=电话 -trunk=中继线 -identifier=标识符 -queue=队列 -voicemail=语音邮件 -boxnumber=箱号 -playback=播放 -menu=菜单 -saydigits=SayDigits -digits=数字 -saynumber=SayNumber -number=号码 -sayphonetic=SayPhonetic -escape_digits=逃出数字 -tts=TTS -ispeechtts=ISpeechTTS -key=密钥 -getdigits=GetDigits -mindigit=最小位数 -maxdigit=最大位数 -custom_app=自定义应用程序 -language=语言 -frequency=频率 -integrationServer=整合服务器 -database=数据库 -query=查询 -asr=ASR -sendSMS=SendSMS -account_id=帐户 -template_id=模板。 -to=到 -sms_text=文本 -sendMail=SendMail -subject=主题 -cc=抄送 -threshold=阈值 -maxspeech=最大语音 -grammar=语法错误 -ispeechasr=ISpeechASR -model=型号 -noop=NoOp -output=输出 -system=系统 -command=命令 -application=应用程序 -agi=阿希 -args=参数 -subproject=子项目 -goalname=目标名称 -callflow=调用流 -gotoc=Goto -context=上下文 -extension=扩展 -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=时间间隔 -leftOperand=左边的操作数 -condition=条件 -rightOperand=右操作数 -vswitch=开关 -recording=录制 -record=记录 -queuename=队列的名称。 -announceoverride=宣布覆盖 -callid=CallID -agent=座席 -queue_event=事件 -data1=数据1 -data2=数据2 -data3=数据3 -data4=数据4 -data5=数据5 -macro=宏 -stats=统计数据 -queuelog=队列 -goal=目标 -callback=回叫。 -list=列表 -delay=延迟时间 -list_id=列表 -opts=选项。 -queue_id=队列 -file_id=文件 -variable_id=变量 -gosub=Gosub -project_id=项目 -sip_id=SIP -trunk_name=中继线 -variable_value=变量值。 -database_id=数据库 -interval_id=时间间隔 -description_start=开始说明。 -publish=1983 年至 1984 年 -ispeech_asr_language=语言 -ispeech_tts_language=语言 -google_tts_language=语言 -queue_variable=从队列中的变量 -odbc_id=ODBC 连接 -noVariableSelected=变量未被指定。 -noTrunkSelected=中继线未指定。 -noAudioSelected=音频文件中未指定。 -noOperandSelected=左边的操作数是没有指定。 -noDatabaseSelected=数据库未被指定。 -noExtensionSelected=扩展未指定的。 -noCommandSelected=命令不指定。 -noApplicationSelected=应用程序未指定 -noRightOperandSelected=右操作数不指定。 -noDigitsSelected=位未被指定。 -noNumberSelected=号码是没有指定。 -noRecipientSelected=收件人未指定。 -noTextSelected=文本没有规定。 -noAccountSelected=帐户未被指定。 -noKeySelected=未指定键。 -noIdentifierSelected=标识符未被指定。 -noQueueSelected=队列名称是未指定。 -noConditionSelected=未指定条件。 -noIntervalSelected=时间间隔内未指定。 -noContextSelected=没有指定环境。 -noBoxNumberSelected="框中的名称是不被指明。 -noProjectSelected=子项目未被指定。 -noFileSelected=未指定文件名。 -numberOrInvalidOrTimeout=插入号码、i 或 t(空格)。 -numberOrAll=插入编号或-。 -numberOrInvalidOrDefault=插入 x、i 或-。 -trueOrFalse=插入 “真” 或 “假”。 -noGoalSelected=目标是没有指定。 -noListSelected=列表中没有规定。 -musthave=必须有 -outgoingedge=传出的边。 -incomingedge=传入的边缘。 -mailbox=邮箱 -intKey=“中断” 按键 -speed=速度 -wrongMinDigit=最小位数必须大于 0 -wrongMaxDigit=最大位数必须大于 0 -wrongHiddenDigitsnum=隐藏的数字必须大于或等于 0 -hiddendigitsnum=隐藏的数字编号 -hiddendigitspos=隐藏的数字的位置。 -getsecretdigits=GetSecretDigits -beep=蜂鸣音 -description=描述 -recordingFormat=格式 -bcc=密件抄送 -invalidTimeout=无效的超时值。 -invalidRetry=重试值无效 -invalidSpeed=无效的速度值。 -missingQuery=查询字符串是缺失 -invalidPriority=无效的优先级值。 -invalidDelay=无效的延迟值。 -noAttachmentSelected=没有选定的附件 -sendFax=SendFax -attachment_name=所选附件 -choose_attachment=选择附件 -help_choose_attachment=格式: pdf、tiff 或 tif -help_delay=时间, 以分钟为单位, 之前的等待回叫联系 -noFirstNameSelected=第一名是未指定 -noPhoneSelected=电话未指定 -editFile=编辑 XML -priority=优先级 -numberOrLettersOrAll=插入数字、字母或-。 -asr=ASR +zoomOut=放大 \ No newline at end of file diff --git a/public/assets/plugins/square/resources/grapheditor_zh-TW.txt b/public/assets/plugins/square/resources/grapheditor_zh-TW.txt index 712ada8..d0715ac 100644 --- a/public/assets/plugins/square/resources/grapheditor_zh-TW.txt +++ b/public/assets/plugins/square/resources/grapheditor_zh-TW.txt @@ -1,22 +1,5 @@ -pause=Pause -unpause=End pause -successOrFailure=Insert success or failure. -agent_management=Agent Management -noFindBySelected=Find by is not specified. -login=Login -logout=Logout -alreadyConnected=節點已連線 -cancel=取消 -close=關閉 -collapse-expand=收合 / 展開 -containsValidationErrors=包含驗證錯誤 -done=已完成 -doubleClickOrientation=雙點選可變更列印方向 -error=錯誤 -ok=OK ( 確定 ) -updatingDocument=更新文件。 請稍候 ... -updatingSelection=更新選項。 請稍候 ... about=關於 +account_id=帳號 actualSize=實際大小 add=新增 addLayer=新增圖層 @@ -24,14 +7,25 @@ addProperty=新增內容 addToExistingDrawing=新增至現有繪圖 addWaypoint=新增航點 advanced=進階 +agent=值機員 +agent_management=Agent Management +agi=AGI align=對齊 alignment=校準 allChangesLost=所有的變更都會遺失 ! +alreadyConnected=節點已連線 angle=角度 +announceoverride=宣佈會覆寫 +answer=接聽來電 +application=應用程式 apply=套用 +args=引數 arrange=排列 arrow=方向 arrows=箭頭 +asr=ASR +asr=ASR +attachment_name=選取的附件 automatic=自動 autosave=自動儲存 autosize=自動調整 @@ -39,54 +33,86 @@ background=背景 backgroundColor=背景色彩 backgroundImage=背景影像 basic=基本 +bcc=密件副本 +beep=嗶嗶聲 block=方塊 blockquote=Blockquote bold=粗體 -borderWidth=Borderwidth borderColor=邊界顏色 +borderWidth=Borderwidth bottom=底部 bottomAlign=底部對齊 bottomLeft=左下方 bottomRight=右 +boxnumber=方塊編號 bulletedList=項目符號清單 +call_management=通話管理 +callback=回撥 +callflow=Callflow +callid=CallID +cancel=取消 cannotOpenFile=無法開啟檔案 +cc=副本抄送 center=中央監視站 change=變更 changeOrientation=變更列印方向 +choose_attachment=選擇配件 circle=圓 classic=傳統 clearDefaultStyle=清除預設樣式 clearWaypoints=清除航點 clipart=美工圖案 +close=關閉 +collapse-expand=收合 / 展開 collapse=收合 collapseExpand=收合 / 展開 collapsible=可摺疊 comic=漫畫 +command=”命令 +condition=狀況 connect=連線 connection=連線 -connectionPoints=連接點 connectionArrows=連線箭頭 +connectionPoints=連接點 constrainProportions=限制比例 +containsValidationErrors=包含驗證錯誤 +context=內容 copy=複製 copyConnect=複製連線 create=建立 curved=弧型 custom=自訂 +custom_app=自訂應用程式 cut=裁切 dashed=虛線 +data1=資料 1 +data2=資料 2 +data3=資料 3 +data4=資料 4 +data5=資料每週 5 天 +database=資料庫 +database_id=資料庫 decreaseIndent=減少縮排 default=預設值 +delay=延遲 delete=刪除 deleteColumn=刪除欄 deleteRow=刪除列 +description=說明 +description_start=開始說明 diagram=圖表 +dial=內部撥出 diamond=鑽石 diamondThin=鑽石 ( 超薄 ) +digit=最大位數 +digits=數字 direction=方向 distribute=發佈 divider=分配器 documentProperties=文件內容 +done=已完成 dotted=點 +doubleClickOrientation=雙點選可變更列印方向 drawing=繪圖 {1} drawingEmpty=圖為空 drawingTooLarge=圖太大 @@ -96,24 +122,34 @@ east=亞洲、中東 edit=編輯 editData=編輯資料 editDiagram=編輯圖示 +editFile=編輯 XML editImage=編輯影像 editLink=編輯連結 editStyle=編輯樣式 editTooltip=編輯工具提示 +end=結束 enterGroup=輸入群組 -enterValue=輸入值 enterName=輸入名稱 enterPropertyName=輸入內容名稱 +enterValue=輸入值 entityRelation=實體關係 +entry=入門 +error=錯誤 +escape=按下 Esc 鍵數字 +escape_digits=按下 Esc 鍵數字 exitGroup=離開群組 expand=展開 export=匯出 +ext_dial=外接式撥號 +extension=分機號碼 extras=額外功能 file=檔案 fileNotFound=找不到檔案 +file_id=檔案 filename=檔案名稱 fill=填裝 fillColor=填滿色彩 +finally=最後 fitPage=第一頁 fitPageWidth=頁面寬度 fitTwoPages=兩個頁面 @@ -122,118 +158,226 @@ flip=水平翻轉 flipH=水平翻轉 flipV=垂直翻轉 font=字型 -fontFamily=字型系列 fontColor=字型色彩 +fontFamily=字型系列 fontSize=字型大小 format=格式化 +formatGif=GIF 檔案 +formatJpg=JPEG formatPanel=格式化面板 formatPdf=PDF formatPng=PNG -formatGif=GIF 檔案 -formatJpg=JPEG formatSvg=SVG formatXml=XML formatted=格式化 formattedText=格式化文字 +frequency=頻率 general=通用 +getdigits=GetDigits +getsecretdigits=GetSecretDigits glass=玻璃 global=全球 +goal=目標 +goalname=目標名稱 +google_tts_language=語言 +gosub=Gosub +gotoc=「跳到斷線」 +gotoif=GotoIf +gotoifmultitime=GotoIfMultiTime +gotoiftime=GotoIfTime gradient=梯度 gradientColor=彩色 +grammar=文法錯誤 grid=網格 gridSize=網格大小 group=群組 guides=指南 +hangup=掛斷 heading=標題 height=高度 help=協助 +help_choose_attachment=格式 : PDF 、 TIFF 或 tif +help_delay=時間 ( 以分鐘為單位 ) 請稍候再撥備的連絡人 +hidden=隱藏 +hiddendigitsnum=隱藏數字編號 +hiddendigitspos=隱藏數字位置 hide=隱藏 hideIt=隱藏 { 1 } -hidden=隱藏 home=首頁 horizontal=水平 horizontalFlow=水平流 horizontalTree=水平樹狀結構 html=HTML +identifier=識別碼 image=影像 images=影像 import=匯入 +incomingedge=收邊。 increaseIndent=增加縮排 insert=插入 -insertColumnBefore=插入欄位左側 insertColumnAfter=將欄位用滑鼠右鍵 +insertColumnBefore=插入欄位左側 insertHorizontalRule=插入水平規則 insertImage=插入影像 insertLink=插入鏈結 -insertRowBefore=插入上方列 insertRowAfter=插入下方列 +insertRowBefore=插入上方列 +intKey=岔斷金鑰 +integrationServer=整合伺服器 +interval=時間間隔 +interval_id=時間間隔 +invalidDelay=無效的延遲值 invalidName=無效的名稱 invalidOrMissingFile=無效或遺失的檔案 +invalidPriority=無效的優先順序值 +invalidRetry=無效的「重試」值 +invalidSpeed=無效的速度值 +invalidTimeout=無效的逾時的值 isometric=等角視圖 +ispeech_asr_language=語言 +ispeech_tts_language=語言 +ispeechasr=ISpeechASR +ispeechtts=ISpeechTTS italic=斜體 -layers=層級 +key=金鑰 +label=標籤 landscape=橫向顯示 laneColor=Lanecolor +language=語言 +layers=層級 layout=版面配置 left=左 leftAlign=左側對齊 +leftOperand=左運算元 leftToRight=由左至右 line=線路 -link=連結 lineend=行結束 lineheight=行高度 linestart=行開始 linewidth=Linewidth +link=連結 +list=清單 +list_id=清單 loading=正在載入 lockUnlock=鎖定 / 解除鎖定 +login=Login +logout=Logout +macro=巨集 +mailbox=信箱 manual=手動 +math=數學 +maxdigit=最大位數 +maxspeech=最大通話 +menu=功能表 middle=中間名 +mindigit=分鐘數字 misc=雜項 +missingQuery=查詢字串就會遺失 +model=型號 more=更多資訊 moreResults=更多的成果 move=移動 moveSelectionTo=將選項移至 { 1 } +musthave=必須有 +name=名稱 navigation=導覽 new=新增 +noAccountSelected=帳戶未指定。 +noApplicationSelected=應用程式沒有指定 +noAttachmentSelected=沒有附件已選取 +noAudioSelected=音效檔案未指定。 +noBoxNumberSelected=方塊名稱為未指定。 noColor=無色彩 +noCommandSelected=指令是未指定。 +noConditionSelected=狀況未指定。 +noContextSelected=內容是未指定。 +noDatabaseSelected=資料庫中沒有指定。 +noDigitsSelected=數字是未指定。 +noExtensionSelected=名為未指定。 +noFileSelected=檔案名稱為未指定。 noFiles=沒有檔案 +noFindBySelected=Find by is not specified. +noFirstNameSelected=名字沒有指定 +noGoalSelected=目標是為未指定。 +noIdentifierSelected=識別碼為未指定。 +noIntervalSelected=間隔為未指定。 +noKeySelected=主要是未指定。 +noListSelected=清單中沒有指定。 noMoreResults=沒有更多的成果 -none=「無」 +noNumberSelected=號碼為未指定。 +noOperandSelected=左運算元為未指定。 +noPhoneSelected=電話未指定 +noProjectSelected=SubProject 未指定。 +noQueueSelected=佇列名稱是未指定。 +noRecipientSelected=收件者為未指定。 noResultsFor=沒有結果的 '{1}' +noRightOperandSelected=右運算元為未指定。 +noTextSelected=文字是未指定。 +noTrunkSelected=主幹是未指定。 +noVariableSelected=變數是未指定。 +none=「無」 +noop=無操作 normal=正常 north=北美 +number=號碼 +numberOrAll=插入電話號碼或 - 。 +numberOrInvalidOrDefault=插入 x 、 i 或是 - 。 +numberOrInvalidOrTimeout=插入電話號碼、或 t ( 驗證白色空格 ) 。 +numberOrLettersOrAll=插入數字、字母或是 - 。 numberedList=編號清單 +odbc_id=ODBC 連線 +ok=OK ( 確定 ) opacity=不透明度 open=開啟 openArrow=開啟方向 openFile=開啟檔案 -openLink=開啟連結 -openSupported=支援的格式是 . XML 檔案儲存於此軟體 openInNewWindow=在新視窗中開啟 openInThisWindow=開啟此視窗 +openLink=開啟連結 +openSupported=支援的格式是 . XML 檔案儲存於此軟體 +operation=操作 options=選項 +opts=選項 organic=有機 orthogonal=正交橫斷面 +outgoingedge=外緣。 outline=大綱 +output=輸出 oval=橢圓形 -pages=網頁 -pageView=頁面檢視 pageScale=頁面縮放比例 pageSetup=頁面設定 +pageView=頁面檢視 +pages=網頁 panTooltip=空間拖曳可捲動 paperSize=紙張大小 paste=貼上 pasteHere=在這裡貼上 pattern=模式 +pause=Pause perimeter=周邊 +phone=電話 placeholders=預留位置 +playback=播放留言 plusTooltip=按一下「連線與複製 ( ctrl 鍵按一下要複製、按住 shift 鍵按一下「連線」。 拖曳的方式來連線 ( ctrl 拖曳的方式來複製 ) 。 portrait=縱向模式 position=位置 posterPrint=海報列印 preview=預覽列印 print=列印 +priority=優先順序 +project_id=專案 +publish=Pubblica +query=查詢 +queue=佇列 +queue_event=事件 +queue_id=佇列 +queue_variable=佇列從變數 +queuelog=QueueLog +queuename=佇列名稱 radialTree=徑向樹狀結構 +record=記錄 +recording=錄影 +recordingFormat=格式化 redo=取消復原 removeFormat=清除格式 removeFromGroup=從群組中移除 @@ -242,12 +386,16 @@ removeWaypoint=移除航點 rename=重新命名 renameIt=重新命名為 { 1 } replace=更換 -replaceIt={ 1 } 已存在。 您要取代它嗎 ? replaceExistingDrawing=取代現有繪圖 +replaceIt={ 1 } 已存在。 您要取代它嗎 ? reset=重設 resetView=重設檢視 +response=回應逾時 +result=結果 +retry=再試一次 right=以滑鼠右鍵 rightAlign=右側對齊 +rightOperand=右運算元 rightToLeft=從右到左 rotate=旋轉 rotateTooltip=按一下並拖曳可旋轉 , 按一下以開啟 90 度 @@ -256,6 +404,9 @@ rounded=四捨五入 save=儲存 saveAs=「另存新檔」 saved=已儲存 +saydigits=SayDigits +saynumber=SayNumber +sayphonetic=SayPhonetic scrollbars=捲軸 search=搜尋 searchShapes=搜尋形狀 @@ -264,6 +415,10 @@ selectEdges=選擇邊緣 selectFont=選取字型 selectNone=選取「無」 selectVertices=選取之多邊形 +sendFax=SendFax +sendMail=SendMail +sendSMS=SendSMS +set=設定 setAsDefaultStyle=設定為預設樣式 shadow=陰影複製 shape=形狀 @@ -271,21 +426,34 @@ sharp=清晰 sidebarTooltip=按一下以展開。 拖放式形狀的圖示。 按住 Shift 鍵按一下要變更選擇。 Alt + 按一下要插入和連線。 simple=簡單 simpleArrow=簡單方向 +sip_id=SIP size=大小 +sms_text=文字 solid=固態硬碟 sourceSpacing=來源間距 south=南 spacing=間距 +speed=速度 +start=開始 +stats=統計資料 straight=直接起腳跳投 strokeColor=線的顏色 style=樣式 +subject=主旨 +subproject=SubProject subscript=下標 +successOrFailure=Insert success or failure. superscript=上標 +system=系統 table=資料表 targetSpacing=目標間距 +template_id=範本 text=文字 textAlignment=文字對齊 textOpacity=文字不透明度 +threshold=臨界值 +timeout=逾時 ( 秒 ) +to=至 toBack=備 toFront=到最上層 tooltips=工具提示 @@ -294,206 +462,38 @@ topAlign=頂端對齊 topLeft=左 topRight=上以滑鼠右鍵 transparent=透明 +trueOrFalse=插入 True 或 False 。 +trunk=中繼線 +trunk_name=中繼線 +tts=TTS turn=開啟電源 uml=UML underline=底線 undo=復原 ungroup=取消群組 -url=URL +unpause=End pause untitledLayer=無標題層級 +updatingDocument=更新文件。 請稍候 ... +updatingSelection=更新選項。 請稍候 ... +url=URL +value=值 +variable=變數 +variable_id=變數 +variable_value=變數值 vertical=垂直 verticalFlow=垂直流量 verticalTree=垂直樹狀結構 view=檢視 +voicemail=語音信箱 +vswitch=切換器 waypoints=航點 west=西 width=寬度 wordWrap=自動換行 writingDirection=書寫方向 +wrongHiddenDigitsnum=隱藏數字號碼必須大於或等於 0 +wrongMaxDigit=最大位數必須大於 0 +wrongMinDigit=最小位數必須大於 0 zoom=縮放 zoomIn=放大 -zoomOut=縮小 -label=標籤 -timeout=逾時 ( 秒 ) -response=回應逾時 -digit=最大位數 -escape=按下 Esc 鍵數字 -retry=再試一次 -name=名稱 -value=值 -entry=入門 -start=開始 -finally=最後 -end=結束 -variable=變數 -set=設定 -operation=操作 -math=數學 -result=結果 -call_management=通話管理 -answer=接聽來電 -hangup=掛斷 -dial=內部撥出 -ext_dial=外接式撥號 -phone=電話 -trunk=中繼線 -identifier=識別碼 -queue=佇列 -voicemail=語音信箱 -boxnumber=方塊編號 -playback=播放留言 -menu=功能表 -saydigits=SayDigits -digits=數字 -saynumber=SayNumber -number=號碼 -sayphonetic=SayPhonetic -escape_digits=按下 Esc 鍵數字 -tts=TTS -ispeechtts=ISpeechTTS -key=金鑰 -getdigits=GetDigits -mindigit=分鐘數字 -maxdigit=最大位數 -custom_app=自訂應用程式 -language=語言 -frequency=頻率 -integrationServer=整合伺服器 -database=資料庫 -query=查詢 -asr=ASR -sendSMS=SendSMS -account_id=帳號 -template_id=範本 -to=至 -sms_text=文字 -sendMail=SendMail -subject=主旨 -cc=副本抄送 -threshold=臨界值 -maxspeech=最大通話 -grammar=文法錯誤 -ispeechasr=ISpeechASR -model=型號 -noop=無操作 -output=輸出 -system=系統 -command=”命令 -application=應用程式 -agi=AGI -args=引數 -subproject=SubProject -goalname=目標名稱 -callflow=Callflow -gotoc=「跳到斷線」 -context=內容 -extension=分機號碼 -gotoif=GotoIf -gotoiftime=GotoIfTime -gotoifmultitime=GotoIfMultiTime -interval=時間間隔 -leftOperand=左運算元 -condition=狀況 -rightOperand=右運算元 -vswitch=切換器 -recording=錄影 -record=記錄 -queuename=佇列名稱 -announceoverride=宣佈會覆寫 -callid=CallID -agent=值機員 -queue_event=事件 -data1=資料 1 -data2=資料 2 -data3=資料 3 -data4=資料 4 -data5=資料每週 5 天 -macro=巨集 -stats=統計資料 -queuelog=QueueLog -goal=目標 -callback=回撥 -list=清單 -delay=延遲 -list_id=清單 -opts=選項 -queue_id=佇列 -file_id=檔案 -variable_id=變數 -gosub=Gosub -project_id=專案 -sip_id=SIP -trunk_name=中繼線 -variable_value=變數值 -database_id=資料庫 -interval_id=時間間隔 -description_start=開始說明 -publish=Pubblica -ispeech_asr_language=語言 -ispeech_tts_language=語言 -google_tts_language=語言 -queue_variable=佇列從變數 -odbc_id=ODBC 連線 -noVariableSelected=變數是未指定。 -noTrunkSelected=主幹是未指定。 -noAudioSelected=音效檔案未指定。 -noOperandSelected=左運算元為未指定。 -noDatabaseSelected=資料庫中沒有指定。 -noExtensionSelected=名為未指定。 -noCommandSelected=指令是未指定。 -noApplicationSelected=應用程式沒有指定 -noRightOperandSelected=右運算元為未指定。 -noDigitsSelected=數字是未指定。 -noNumberSelected=號碼為未指定。 -noRecipientSelected=收件者為未指定。 -noTextSelected=文字是未指定。 -noAccountSelected=帳戶未指定。 -noKeySelected=主要是未指定。 -noIdentifierSelected=識別碼為未指定。 -noQueueSelected=佇列名稱是未指定。 -noConditionSelected=狀況未指定。 -noIntervalSelected=間隔為未指定。 -noContextSelected=內容是未指定。 -noBoxNumberSelected=方塊名稱為未指定。 -noProjectSelected=SubProject 未指定。 -noFileSelected=檔案名稱為未指定。 -numberOrInvalidOrTimeout=插入電話號碼、或 t ( 驗證白色空格 ) 。 -numberOrAll=插入電話號碼或 - 。 -numberOrInvalidOrDefault=插入 x 、 i 或是 - 。 -trueOrFalse=插入 True 或 False 。 -noGoalSelected=目標是為未指定。 -noListSelected=清單中沒有指定。 -musthave=必須有 -outgoingedge=外緣。 -incomingedge=收邊。 -mailbox=信箱 -intKey=岔斷金鑰 -speed=速度 -wrongMinDigit=最小位數必須大於 0 -wrongMaxDigit=最大位數必須大於 0 -wrongHiddenDigitsnum=隱藏數字號碼必須大於或等於 0 -hiddendigitsnum=隱藏數字編號 -hiddendigitspos=隱藏數字位置 -getsecretdigits=GetSecretDigits -beep=嗶嗶聲 -description=說明 -recordingFormat=格式化 -bcc=密件副本 -invalidTimeout=無效的逾時的值 -invalidRetry=無效的「重試」值 -invalidSpeed=無效的速度值 -missingQuery=查詢字串就會遺失 -invalidPriority=無效的優先順序值 -invalidDelay=無效的延遲值 -noAttachmentSelected=沒有附件已選取 -sendFax=SendFax -attachment_name=選取的附件 -choose_attachment=選擇配件 -help_choose_attachment=格式 : PDF 、 TIFF 或 tif -help_delay=時間 ( 以分鐘為單位 ) 請稍候再撥備的連絡人 -noFirstNameSelected=名字沒有指定 -noPhoneSelected=電話未指定 -editFile=編輯 XML -priority=優先順序 -numberOrLettersOrAll=插入數字、字母或是 - 。 -asr=ASR +zoomOut=縮小 \ No newline at end of file diff --git a/public/index.html b/public/index.html index 7f0b947..bb85fcc 100644 --- a/public/index.html +++ b/public/index.html @@ -1,7 +1,7 @@ -xCALLY Motion
\ No newline at end of file +
\ No newline at end of file diff --git a/public/runtime-472ac7a6568b98562237.js b/public/runtime-472ac7a6568b98562237.js index 93a6d95..4f03031 100644 --- a/public/runtime-472ac7a6568b98562237.js +++ b/public/runtime-472ac7a6568b98562237.js @@ -1 +1 @@ -var a1_0x2c41=["length","shift","webpackChunkmotion_client","return this","paths","amdD","splice","apply","slice","defineProperty","hasOwnProperty","nmd","loaded","object","push","children","define cannot be used indirect"];!function(r,a){!function(a){for(;--a;)r.push(r.shift())}(++a)}(a1_0x2c41,461);var a1_0x44ac=function(r,a){return a1_0x2c41[r-=0]};(()=>{"use strict";var r,a,e,t={},n={};function o(r){var a=a1_0x44ac;if(n[r])return n[r].exports;var e=n[r]={id:r,loaded:!1,exports:{}};return t[r].call(e.exports,e,e.exports,o),e[a("0xa")]=!0,e.exports}o.m=t,o[(e=a1_0x44ac)("0x3")]=function(){throw new Error(e("0xe"))},o.n=r=>{var a=r&&r.__esModule?()=>r.default:()=>r;return o.d(a,{a}),a},o.d=(r,a)=>{var e=a1_0x44ac;for(var t in a)o.o(a,t)&&!o.o(r,t)&&Object[e("0x7")](r,t,{enumerable:!0,get:a[t]})},o.g=function(){var r=a1_0x44ac;if("object"==typeof globalThis)return globalThis;try{return this||new Function(r("0x1"))()}catch(a){if(typeof window===r("0xb"))return window}}(),a=a1_0x44ac,o.o=(r,e)=>Object.prototype[a("0x8")].call(r,e),o[(r=a1_0x44ac)("0x9")]=a=>{var e=r;return a[e("0x2")]=[],a[e("0xd")]||(a.children=[]),a},o.p="/",(()=>{var r=a1_0x44ac,a={666:0},e=[],t=()=>{};function n(){for(var r,t=a1_0x44ac,n=0;n{}),r}o.x=()=>{var r=a1_0x44ac;o.x=()=>{},c=c[r("0x6")]();for(var a=0;a{for(var n,x,c=a1_0x44ac,[f,u,s,l]=r,p=0,d=[];p{"use strict";var r,e,n,t={},x={};function a(r){var e=a1_0x2542;if(x[r])return x[r].exports;var n=x[r]={id:r,loaded:!1,exports:{}};return t[r][e("0x0")](n[e("0xb")],n,n.exports,a),n[e("0x6")]=!0,n[e("0xb")]}a.m=t,a[(n=a1_0x2542)("0x1")]=function(){throw new Error(n("0x3"))},a.n=r=>{var e=a1_0x2542,n=r&&r[e("0xe")]?()=>r[e("0xa")]:()=>r;return a.d(n,{a:n}),n},a.d=(r,e)=>{for(var n in e)a.o(e,n)&&!a.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:e[n]})},a.g=function(){var r=a1_0x2542;if(typeof globalThis===r("0x5"))return globalThis;try{return this||new Function("return this")()}catch(e){if(typeof window===r("0x5"))return window}}(),e=a1_0x2542,a.o=(r,n)=>Object[e("0x4")].hasOwnProperty[e("0x0")](r,n),a[(r=a1_0x2542)("0x2")]=e=>{var n=r;return e.paths=[],e[n("0x7")]||(e[n("0x7")]=[]),e},a.p="/",(()=>{var r=a1_0x2542,e={666:0},n=[],t=()=>{};function x(){for(var r,t=a1_0x2542,x=0;x{}),r}a.x=()=>{var r=a1_0x2542;a.x=()=>{},i=i[r("0x10")]();for(var e=0;e{for(var x,o,i=a1_0x2542,[u,c,s,l]=r,d=0,h=[];d{"use strict";var e={913:()=>{try{self["workbox:core:5.1.4"]&&_()}catch(e){}},977:()=>{try{self["workbox:precaching:5.1.4"]&&_()}catch(e){}}},t={};function n(s){if(t[s])return t[s].exports;var a=t[s]={exports:{}};return e[s](a,a.exports,n),a.exports}(()=>{n(913);const e=(e,...t)=>{let n=e;return t.length>0&&(n+=" :: "+JSON.stringify(t)),n};class t extends Error{constructor(t,n){super(e(t,n)),this.name=t,this.details=n}}const s=new Set;const a={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},c=e=>[a.prefix,e,a.suffix].filter((e=>e&&e.length>0)).join("-"),r=e=>e||c(a.precache);const o=(e,t)=>e.filter((e=>t in e)),i=async({request:e,mode:t,plugins:n=[]})=>{const s=o(n,"cacheKeyWillBeUsed");let a=e;for(const e of s)a=await e.cacheKeyWillBeUsed.call(e,{mode:t,request:a}),"string"==typeof a&&(a=new Request(a));return a},l=async({cacheName:e,request:t,event:n,matchOptions:s,plugins:a=[]})=>{const c=await self.caches.open(e),r=await i({plugins:a,request:t,mode:"read"});let o=await c.match(r,s);for(const t of a)if("cachedResponseWillBeUsed"in t){const a=t.cachedResponseWillBeUsed;o=await a.call(t,{cacheName:e,event:n,matchOptions:s,cachedResponse:o,request:r})}return o},h=async({cacheName:e,request:n,response:a,event:c,plugins:r=[],matchOptions:h})=>{const u=await i({plugins:r,request:n,mode:"write"});if(!a)throw new t("cache-put-with-no-response",{url:(d=u.url,new URL(String(d),location.href).href.replace(new RegExp("^"+location.origin),""))});var d;const f=await(async({request:e,response:t,event:n,plugins:s=[]})=>{let a=t,c=!1;for(const t of s)if("cacheWillUpdate"in t){c=!0;const s=t.cacheWillUpdate;if(a=await s.call(t,{request:e,response:a,event:n}),!a)break}return c||(a=a&&200===a.status?a:void 0),a||null})({event:c,plugins:r,response:a,request:u});if(!f)return void 0;const p=await self.caches.open(e),y=o(r,"cacheDidUpdate"),w=y.length>0?await l({cacheName:e,matchOptions:h,request:u}):null;try{await p.put(u,f)}catch(e){throw"QuotaExceededError"===e.name&&await async function(){for(const e of s)await e()}(),e}for(const t of y)await t.cacheDidUpdate.call(t,{cacheName:e,event:c,oldResponse:w,newResponse:f,request:u})};let u;class d{constructor(e,t,{onupgradeneeded:n,onversionchange:s}={}){this._db=null,this._name=e,this._version=t,this._onupgradeneeded=n,this._onversionchange=s||(()=>this.close())}get db(){return this._db}async open(){if(!this._db)return this._db=await new Promise(((e,t)=>{let n=!1;setTimeout((()=>{n=!0,t(new Error("The open request was blocked and timed out"))}),this.OPEN_TIMEOUT);const s=indexedDB.open(this._name,this._version);s.onerror=()=>t(s.error),s.onupgradeneeded=e=>{n?(s.transaction.abort(),s.result.close()):"function"==typeof this._onupgradeneeded&&this._onupgradeneeded(e)},s.onsuccess=()=>{const t=s.result;n?t.close():(t.onversionchange=this._onversionchange.bind(this),e(t))}})),this}async getKey(e,t){return(await this.getAllKeys(e,t,1))[0]}async getAll(e,t,n){return await this.getAllMatching(e,{query:t,count:n})}async getAllKeys(e,t,n){return(await this.getAllMatching(e,{query:t,count:n,includeKeys:!0})).map((e=>e.key))}async getAllMatching(e,{index:t,query:n=null,direction:s="next",count:a,includeKeys:c=!1}={}){return await this.transaction([e],"readonly",((r,o)=>{const i=r.objectStore(e),l=t?i.index(t):i,h=[],u=l.openCursor(n,s);u.onsuccess=()=>{const e=u.result;e?(h.push(c?e:e.value),a&&h.length>=a?o(h):e.continue()):o(h)}}))}async transaction(e,t,n){return await this.open(),await new Promise(((s,a)=>{const c=this._db.transaction(e,t);c.onabort=()=>a(c.error),c.oncomplete=()=>s(),n(c,(e=>s(e)))}))}async _call(e,t,n,...s){return await this.transaction([t],n,((n,a)=>{const c=n.objectStore(t),r=c[e].apply(c,s);r.onsuccess=()=>a(r.result)}))}close(){this._db&&(this._db.close(),this._db=null)}}d.prototype.OPEN_TIMEOUT=2e3;const f={readonly:["get","count","getKey","getAll","getAllKeys"],readwrite:["add","put","clear","delete"]};for(const[e,t]of Object.entries(f))for(const n of t)n in IDBObjectStore.prototype&&(d.prototype[n]=async function(t,...s){return await this._call(n,t,e,...s)});const p=async({request:e,fetchOptions:n,event:s,plugins:a=[]})=>{if("string"==typeof e&&(e=new Request(e)),s instanceof FetchEvent&&s.preloadResponse){const e=await s.preloadResponse;if(e)return e}const c=o(a,"fetchDidFail"),r=c.length>0?e.clone():null;try{for(const t of a)if("requestWillFetch"in t){const n=t.requestWillFetch,a=e.clone();e=await n.call(t,{request:a,event:s})}}catch(e){throw new t("plugin-error-request-will-fetch",{thrownError:e})}const i=e.clone();try{let t;t="navigate"===e.mode?await fetch(e):await fetch(e,n);for(const e of a)"fetchDidSucceed"in e&&(t=await e.fetchDidSucceed.call(e,{event:s,request:i,response:t}));return t}catch(e){0;for(const t of c)await t.fetchDidFail.call(t,{error:e,event:s,originalRequest:r.clone(),request:i.clone()});throw e}};async function y(e,t){const n=e.clone(),s={headers:new Headers(n.headers),status:n.status,statusText:n.statusText},a=t?t(s):s,c=function(){if(void 0===u){const e=new Response("");if("body"in e)try{new Response(e.body),u=!0}catch(e){u=!1}u=!1}return u}()?n.body:await n.blob();return new Response(c,a)}n(977);const w=[],g={get:()=>w,add(e){w.push(...e)}};function m(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:n,url:s}=e;if(!s)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!n){const e=new URL(s,location.href);return{cacheKey:e.href,url:e.href}}const a=new URL(s,location.href),c=new URL(s,location.href);return a.searchParams.set("__WB_REVISION__",n),{cacheKey:a.href,url:c.href}}class _{constructor(e){this._cacheName=r(e),this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map}addToCacheList(e){const n=[];for(const s of e){"string"==typeof s?n.push(s):s&&void 0===s.revision&&n.push(s.url);const{cacheKey:e,url:a}=m(s),c="string"!=typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!=typeof s&&s.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==s.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,s.integrity)}if(this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,c),n.length>0){const e=`Workbox is precaching URLs without revision info: ${n.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}async install({event:e,plugins:t}={}){const n=[],s=[],a=await self.caches.open(this._cacheName),c=await a.keys(),r=new Set(c.map((e=>e.url)));for(const[e,t]of this._urlsToCacheKeys)r.has(t)?s.push(e):n.push({cacheKey:t,url:e});const o=n.map((({cacheKey:n,url:s})=>{const a=this._cacheKeysToIntegrities.get(n),c=this._urlsToCacheModes.get(s);return this._addURLToCache({cacheKey:n,cacheMode:c,event:e,integrity:a,plugins:t,url:s})}));await Promise.all(o);return{updatedURLs:n.map((e=>e.url)),notUpdatedURLs:s}}async activate(){const e=await self.caches.open(this._cacheName),t=await e.keys(),n=new Set(this._urlsToCacheKeys.values()),s=[];for(const a of t)n.has(a.url)||(await e.delete(a),s.push(a.url));return{deletedURLs:s}}async _addURLToCache({cacheKey:e,url:n,cacheMode:s,event:a,plugins:c,integrity:r}){const o=new Request(n,{integrity:r,cache:s,credentials:"same-origin"});let i,l=await p({event:a,plugins:c,request:o});for(const e of c||[])"cacheWillUpdate"in e&&(i=e);if(!(i?await i.cacheWillUpdate({event:a,request:o,response:l}):l.status<400))throw new t("bad-precaching-response",{url:n,status:l.status});l.redirected&&(l=await y(l)),await h({event:a,plugins:c,response:l,request:e===n?o:new Request(e),cacheName:this._cacheName,matchOptions:{ignoreSearch:!0}})}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}async matchPrecache(e){const t=e instanceof Request?e.url:e,n=this.getCacheKeyForURL(t);if(n){return(await self.caches.open(this._cacheName)).match(n)}}createHandler(e=!0){return async({request:n})=>{try{const e=await this.matchPrecache(n);if(e)return e;throw new t("missing-precache-entry",{cacheName:this._cacheName,url:n instanceof Request?n.url:n})}catch(t){if(e)return fetch(n);throw t}}}createHandlerBoundToURL(e,n=!0){if(!this.getCacheKeyForURL(e))throw new t("non-precached-url",{url:e});const s=this.createHandler(n),a=new Request(e);return()=>s({request:a})}}let v;const R=()=>(v||(v=new _),v);const U=(e,t)=>{const n=R().getURLsToCacheKeys();for(const s of function*(e,{ignoreURLParametersMatching:t,directoryIndex:n,cleanURLs:s,urlManipulation:a}={}){const c=new URL(e,location.href);c.hash="",yield c.href;const r=function(e,t=[]){for(const n of[...e.searchParams.keys()])t.some((e=>e.test(n)))&&e.searchParams.delete(n);return e}(c,t);if(yield r.href,n&&r.pathname.endsWith("/")){const e=new URL(r.href);e.pathname+=n,yield e.href}if(s){const e=new URL(r.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:c});for(const t of e)yield t.href}}(e,t)){const e=n.get(s);if(e)return e}};let L=!1;function q(e){L||((({ignoreURLParametersMatching:e=[/^utm_/],directoryIndex:t="index.html",cleanURLs:n=!0,urlManipulation:s}={})=>{const a=r();self.addEventListener("fetch",(c=>{const r=U(c.request.url,{cleanURLs:n,directoryIndex:t,ignoreURLParametersMatching:e,urlManipulation:s});if(!r)return;let o=self.caches.open(a).then((e=>e.match(r))).then((e=>e||fetch(r)));c.respondWith(o)}))})(e),L=!0)}const K=e=>{const t=R(),n=g.get();e.waitUntil(t.install({event:e,plugins:n}).catch((e=>{throw e})))},T=e=>{const t=R();e.waitUntil(t.activate())};self.addEventListener("install",(()=>self.skipWaiting())),self.addEventListener("activate",(()=>self.clients.claim()));const b=self;var x,C;b.addEventListener("notificationclick",(function(e){const t=e.notification,n=e.action;switch(n){case"accept":case"reject":t.close(),e.waitUntil(b.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((function(e){for(let s=0;s0&&(self.addEventListener("install",K),self.addEventListener("activate",T))}(x),q(C)})()})(); +(()=>{"use strict";var e={913:()=>{try{self["workbox:core:6.0.0-alpha.2"]&&_()}catch(e){}},977:()=>{try{self["workbox:precaching:6.0.0-alpha.2"]&&_()}catch(e){}},80:()=>{try{self["workbox:routing:6.0.0-alpha.2"]&&_()}catch(e){}},873:()=>{try{self["workbox:strategies:6.0.0-alpha.2"]&&_()}catch(e){}}},t={};function s(n){if(t[n])return t[n].exports;var a=t[n]={exports:{}};return e[n](a,a.exports,s),a.exports}(()=>{s(913);const e=(e,...t)=>{let s=e;return t.length>0&&(s+=" :: "+JSON.stringify(t)),s};class t extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}const n=new Set;const a={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},r=e=>[a.prefix,e,a.suffix].filter((e=>e&&e.length>0)).join("-"),i=e=>e||r(a.precache),o=e=>e||r(a.runtime);function c(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}let h;class l{constructor(e,t,{onupgradeneeded:s,onversionchange:n}={}){this._db=null,this._name=e,this._version=t,this._onupgradeneeded=s,this._onversionchange=n||(()=>this.close())}get db(){return this._db}async open(){if(!this._db)return this._db=await new Promise(((e,t)=>{let s=!1;setTimeout((()=>{s=!0,t(new Error("The open request was blocked and timed out"))}),this.OPEN_TIMEOUT);const n=indexedDB.open(this._name,this._version);n.onerror=()=>t(n.error),n.onupgradeneeded=e=>{s?(n.transaction.abort(),n.result.close()):"function"==typeof this._onupgradeneeded&&this._onupgradeneeded(e)},n.onsuccess=()=>{const t=n.result;s?t.close():(t.onversionchange=this._onversionchange.bind(this),e(t))}})),this}async getKey(e,t){return(await this.getAllKeys(e,t,1))[0]}async getAll(e,t,s){return await this.getAllMatching(e,{query:t,count:s})}async getAllKeys(e,t,s){return(await this.getAllMatching(e,{query:t,count:s,includeKeys:!0})).map((e=>e.key))}async getAllMatching(e,{index:t,query:s=null,direction:n="next",count:a,includeKeys:r=!1}={}){return await this.transaction([e],"readonly",((i,o)=>{const c=i.objectStore(e),h=t?c.index(t):c,l=[],u=h.openCursor(s,n);u.onsuccess=()=>{const e=u.result;e?(l.push(r?e:e.value),a&&l.length>=a?o(l):e.continue()):o(l)}}))}async transaction(e,t,s){return await this.open(),await new Promise(((n,a)=>{const r=this._db.transaction(e,t);r.onabort=()=>a(r.error),r.oncomplete=()=>n(),s(r,(e=>n(e)))}))}async _call(e,t,s,...n){return await this.transaction([t],s,((s,a)=>{const r=s.objectStore(t),i=r[e].apply(r,n);i.onsuccess=()=>a(i.result)}))}close(){this._db&&(this._db.close(),this._db=null)}}l.prototype.OPEN_TIMEOUT=2e3;const u={readonly:["get","count","getKey","getAll","getAllKeys"],readwrite:["add","put","clear","delete"]};for(const[e,t]of Object.entries(u))for(const s of t)s in IDBObjectStore.prototype&&(l.prototype[s]=async function(t,...n){return await this._call(s,t,e,...n)});class d{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}function f(e,t){const s=t();return e.waitUntil(s),s}async function p(e,s){let n=null;if(e.url){n=new URL(e.url).origin}if(n!==self.location.origin)throw new t("cross-origin-copy-response",{origin:n});const a=e.clone(),r={headers:new Headers(a.headers),status:a.status,statusText:a.statusText},i=s?s(r):r,o=function(){if(void 0===h){const e=new Response("");if("body"in e)try{new Response(e.body),h=!0}catch(e){h=!1}h=!1}return h}()?a.body:await a.blob();return new Response(o,i)}s(977);function y(e){if(!e)throw new t("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:s,url:n}=e;if(!n)throw new t("add-to-cache-list-unexpected-type",{entry:e});if(!s){const e=new URL(n,location.href);return{cacheKey:e.href,url:e.href}}const a=new URL(n,location.href),r=new URL(n,location.href);return a.searchParams.set("__WB_REVISION__",s),{cacheKey:a.href,url:r.href}}class w{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class g{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=t&&t.cacheKey||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s):e},this._precacheController=e}}s(873);function _(e){return"string"==typeof e?new Request(e):e}class m{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new d,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}fetch(e){return this.waitUntil((async()=>{const{event:s}=this;let n=_(e);if("navigate"===n.mode&&s instanceof FetchEvent&&s.preloadResponse){const e=await s.preloadResponse;if(e)return e}const a=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))n=await e({request:n.clone(),event:s})}catch(e){throw new t("plugin-error-request-will-fetch",{thrownError:e})}const r=n.clone();try{let e;e=await fetch(n,"navigate"===n.mode?void 0:this._strategy.fetchOptions);for(const t of this.iterateCallbacks("fetchDidSucceed"))e=await t({event:s,request:r,response:e});return e}catch(e){throw a&&await this.runCallbacks("fetchDidFail",{error:e,event:s,originalRequest:a.clone(),request:r.clone()}),e}})())}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}cacheMatch(e){return this.waitUntil((async()=>{const t=_(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i={...a,cacheName:n};s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s})())}async cachePut(e,s){const a=_(e);var r;await(r=0,new Promise((e=>setTimeout(e,r))));const i=await this.getCacheKey(a,"write");if(!s)throw new t("cache-put-with-no-response",{url:(o=i.url,new URL(String(o),location.href).href.replace(new RegExp("^"+location.origin),""))});var o;const h=await this._ensureResponseSafeToCache(s);if(!h)return void 0;const{cacheName:l,matchOptions:u}=this._strategy,d=await self.caches.open(l),f=this.hasCallback("cacheDidUpdate"),p=f?await async function(e,t,s,n){const a=c(t.url,s);if(t.url===a)return e.match(t,n);const r={...n,ignoreSearch:!0},i=await e.keys(t,r);for(const t of i)if(a===c(t.url,s))return e.match(t,n)}(d,i.clone(),["__WB_REVISION__"],u):null;try{await d.put(i,f?h.clone():h)}catch(e){throw"QuotaExceededError"===e.name&&await async function(){for(const e of n)await e()}(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:l,oldResponse:p,newResponse:h.clone(),request:i,event:this.event})}async getCacheKey(e,t){if(!this._cacheKeys[t]){let s=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))s=_(await e({mode:t,request:s,event:this.event,params:this.params}));this._cacheKeys[t]=s}return this._cacheKeys[t]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a={...n,state:s};return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve()}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}const v={cacheWillUpdate:async({response:e})=>e.redirected?await p(e):e};class R extends class{constructor(e={}){this.cacheName=o(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new m(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,s,n){await e.runCallbacks("handlerWillStart",{event:n,request:s});let a=void 0;try{if(a=await this._handle(s,e),!a||"error"===a.type)throw new t("no-response",{url:s.url})}catch(t){for(const r of e.iterateCallbacks("handlerDidError"))if(a=await r({error:t,event:n,request:s}),a)break;if(!a)throw t}for(const t of e.iterateCallbacks("handlerWillRespond"))a=await t({event:n,request:s,response:a});return a}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){r=e}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}{constructor(e={}){e.cacheName=i(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push(v)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,s){let n;if(!this._fallbackToNetwork)throw new t("missing-precache-entry",{cacheName:this.cacheName,url:e.url});return n=await s.fetch(e),n}async _handleInstall(e,s){const n=await s.fetchAndCachePut(e);let a=Boolean(n);if(n&&n.status>=400&&!this._usesCustomCacheableResponseLogic()&&(a=!1),!a)throw new t("bad-precaching-response",{url:e.url,status:n.status});return n}_usesCustomCacheableResponseLogic(){return this.plugins.some((e=>e.cacheWillUpdate&&e!==v))}}class b{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new R({cacheName:i(e),plugins:[...t,new g({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const s=[];for(const n of e){"string"==typeof n?s.push(n):n&&void 0===n.revision&&s.push(n.url);const{cacheKey:e,url:a}=y(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new t("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!=typeof n&&n.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==n.integrity)throw new t("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,n.integrity)}if(this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,r),s.length>0){const e=`Workbox is precaching URLs without revision info: ${s.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return f(e,(async()=>{const t=new w;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return f(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const s=this.getCacheKeyForURL(e);if(!s)throw new t("non-precached-url",{url:e});return t=>(t.request=new Request(e),t.params={cacheKey:s,...t.params},this.strategy.handle(t))}}let C;const U=()=>(C||(C=new b),C);s(80);const L=e=>e&&"object"==typeof e?e:{handle:e};class q{constructor(e,t,s="GET"){this.handler=L(t),this.match=e,this.method=s}}class k extends q{constructor(e,t,s){super((({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)}),t,s)}}class K{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}return c instanceof Promise&&this._catchHandler&&(c=c.catch((n=>this._catchHandler.handle({url:s,request:e,event:t})))),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(i)&&0===i.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,L(e))}setCatchHandler(e){this._catchHandler=L(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new t("unregister-route-but-not-found-with-method",{method:e.method});const s=this._routes.get(e.method).indexOf(e);if(!(s>-1))throw new t("unregister-route-route-not-registered");this._routes.get(e.method).splice(s,1)}}let T;class x extends q{constructor(e,t){super((({request:s})=>{const n=e.getURLsToCacheKeys();for(const e of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(e);if(t)return{cacheKey:t}}}),e.strategy)}}function M(e){const s=U();!function(e,s,n){let a;if("string"==typeof e){const t=new URL(e,location.href);a=new q((({url:e})=>e.href===t.href),s,n)}else if(e instanceof RegExp)a=new k(e,s,n);else if("function"==typeof e)a=new q(e,s,n);else{if(!(e instanceof q))throw new t("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=e}(T||(T=new K,T.addFetchListener(),T.addCacheListener()),T).registerRoute(a)}(new x(s,e))}const N=self;var E,A;N.skipWaiting(),self.addEventListener("activate",(()=>self.clients.claim())),N.addEventListener("notificationclick",(function(e){const t=e.notification,s=e.action;switch(s){case"accept":case"reject":t.close(),e.waitUntil(N.clients.matchAll({includeUncontrolled:!0,type:"window"}).then((function(e){for(let n=0;n @@ -189,7 +189,7 @@ name="{{attribute.name}}" ng-model="attribute.value" ng-switch-when-separator="|" - ng-switch-when="query|sms_text|condition|text|custom_action_data|headers|body|rawHeaders|rawBody" + ng-switch-when="query|sms_text|condition|text|custom_action_data|headers|body|rawHeaders|rawBody|private_key" ng-required="attribute.required" ng-disabled="!vm.crudPermissions.canEdit" > diff --git a/server/api/action/action.attributes.js b/server/api/action/action.attributes.js index d30bdc9..f57a9f8 100644 --- a/server/api/action/action.attributes.js +++ b/server/api/action/action.attributes.js @@ -1 +1 @@ -const a0_0x39c8=['contactManager','STRING','sequelize','bot','exports','motionbar[NULL,NULL,WinAppArguments]','urlForward','action','TEXT','jscripty','script','Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script','integration[AccountId],\x20motionbar[TemplateId,URL,WinAppPath],\x20urlForward[URL]','integration'];(function(_0x2eb790,_0x39c8b0){const _0x3d46b3=function(_0x3006c1){while(--_0x3006c1){_0x2eb790['push'](_0x2eb790['shift']());}};_0x3d46b3(++_0x39c8b0);}(a0_0x39c8,0x142));const a0_0x3d46=function(_0x2eb790,_0x39c8b0){_0x2eb790=_0x2eb790-0x0;let _0x3d46b3=a0_0x39c8[_0x2eb790];return _0x3d46b3;};const _0x3d247a=a0_0x3d46;'use strict';const Sequelize=require(_0x3d247a('0x2'));module[_0x3d247a('0x4')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x3810ff=_0x3d247a;return this['getDataValue'](_0x3810ff('0x7'));}},'action':{'type':Sequelize[_0x3d247a('0x1')],'allowNull':![],'validate':{'isIn':{'args':[[_0x3d247a('0x0'),_0x3d247a('0xd'),'motionbar',_0x3d247a('0x9'),_0x3d247a('0x6'),'browser',_0x3d247a('0x3'),_0x3d247a('0xa')]],'msg':'Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script'}},'comment':_0x3d247a('0xb')},'data1':{'type':Sequelize[_0x3d247a('0x1')](0x1000),'comment':'contactManager[ListId],\x20integration[intName(zendesk)],\x20motionbar[Popup(0),URL(1),WinApp(2)],\x20urlForward[GET,POST],\x20browser[TemplateId(0),URL(1)]'},'data2':{'type':Sequelize[_0x3d247a('0x1')](0x1000),'comment':_0x3d247a('0xc')},'data3':{'type':Sequelize[_0x3d247a('0x1')](0x1000),'comment':_0x3d247a('0x5')},'data4':{'type':Sequelize[_0x3d247a('0x1')](0x1000)},'data5':{'type':Sequelize[_0x3d247a('0x1')](0x1000)},'data6':{'type':Sequelize['STRING']},'data7':{'type':Sequelize[_0x3d247a('0x8')]}}; \ No newline at end of file +const a0_0x502d=['script','action','Allowed\x20values:\x20contactManager,\x20integration,\x20motionbar,\x20jscripty,\x20urlForward,\x20browser,\x20bot,\x20script','contactManager','sequelize','motionbar','getDataValue','contactManager[ListId],\x20integration[intName(zendesk)],\x20motionbar[Popup(0),URL(1),WinApp(2)],\x20urlForward[GET,POST],\x20browser[TemplateId(0),URL(1)]','jscripty','motionbar[NULL,NULL,WinAppArguments]','STRING','exports','TEXT','bot','urlForward'];(function(_0xc22631,_0x502d14){const _0x1cf694=function(_0x36d9f3){while(--_0x36d9f3){_0xc22631['push'](_0xc22631['shift']());}};_0x1cf694(++_0x502d14);}(a0_0x502d,0x66));const a0_0x1cf6=function(_0xc22631,_0x502d14){_0xc22631=_0xc22631-0x0;let _0x1cf694=a0_0x502d[_0xc22631];return _0x1cf694;};const _0x3c7cc6=a0_0x1cf6;'use strict';const Sequelize=require(_0x3c7cc6('0x7'));module[_0x3c7cc6('0xe')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x443d1e=_0x3c7cc6;return this[_0x443d1e('0x9')](_0x443d1e('0x4'));}},'action':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'isIn':{'args':[[_0x3c7cc6('0x6'),'integration',_0x3c7cc6('0x8'),_0x3c7cc6('0xb'),_0x3c7cc6('0x2'),'browser',_0x3c7cc6('0x1'),_0x3c7cc6('0x3')]],'msg':_0x3c7cc6('0x5')}},'comment':_0x3c7cc6('0x5')},'data1':{'type':Sequelize[_0x3c7cc6('0xd')](0x1000),'comment':_0x3c7cc6('0xa')},'data2':{'type':Sequelize[_0x3c7cc6('0xd')](0x1000),'comment':'integration[AccountId],\x20motionbar[TemplateId,URL,WinAppPath],\x20urlForward[URL]'},'data3':{'type':Sequelize['STRING'](0x1000),'comment':_0x3c7cc6('0xc')},'data4':{'type':Sequelize[_0x3c7cc6('0xd')](0x1000)},'data5':{'type':Sequelize[_0x3c7cc6('0xd')](0x1000)},'data6':{'type':Sequelize[_0x3c7cc6('0xd')]},'data7':{'type':Sequelize[_0x3c7cc6('0x0')]}}; \ No newline at end of file diff --git a/server/api/action/action.controller.js b/server/api/action/action.controller.js index 46cdd80..9754ad1 100644 --- a/server/api/action/action.controller.js +++ b/server/api/action/action.controller.js @@ -1 +1 @@ -const a1_0x53c1=['update','sendStatus','Action','json','name','catch','params','stack','body','send','destroy','status','end','then','error','api'];(function(_0x2f2e06,_0x53c108){const _0x28dc4f=function(_0x232fbb){while(--_0x232fbb){_0x2f2e06['push'](_0x2f2e06['shift']());}};_0x28dc4f(++_0x53c108);}(a1_0x53c1,0xb6));const a1_0x28dc=function(_0x2f2e06,_0x53c108){_0x2f2e06=_0x2f2e06-0x0;let _0x28dc4f=a1_0x53c1[_0x2f2e06];return _0x28dc4f;};const _0x342b35=a1_0x28dc;'use strict';const logger=require('../../config/logger')(_0x342b35('0x9')),db=require('../../mysqldb')['db'];function respondWithResult(_0x232fbb,_0x468087){return _0x468087=_0x468087||0xc8,function(_0xb743f8){const _0x2c570b=a1_0x28dc;if(_0xb743f8)return _0x232fbb[_0x2c570b('0x5')](_0x468087)[_0x2c570b('0xd')](_0xb743f8);};}function saveUpdates(_0x50dfa3){return function(_0xe2ed){if(_0xe2ed)return _0xe2ed['update'](_0x50dfa3)['then'](function(_0xb5a6b2){return _0xb5a6b2;});return null;};}function removeEntity(_0x17a088){return function(_0x392b94){const _0x3da199=a1_0x28dc;if(_0x392b94)return _0x392b94[_0x3da199('0x4')]()[_0x3da199('0x7')](function(){const _0x16f6fe=_0x3da199;_0x17a088[_0x16f6fe('0x5')](0xcc)[_0x16f6fe('0x6')]();});};}function handleEntityNotFound(_0x4c00b0){return function(_0x120325){const _0x35728b=a1_0x28dc;return!_0x120325&&_0x4c00b0[_0x35728b('0xb')](0x194),_0x120325;};}function handleError(_0xb162cb,_0xeaf07){return _0xeaf07=_0xeaf07||0x1f4,function(_0x289440){const _0x13d3ab=a1_0x28dc;logger[_0x13d3ab('0x8')](_0x289440[_0x13d3ab('0x1')]),_0x289440['name']&&delete _0x289440[_0x13d3ab('0xe')],_0xb162cb[_0x13d3ab('0x5')](_0xeaf07)[_0x13d3ab('0x3')](_0x289440);};}exports[_0x342b35('0xa')]=function(_0x1c90a1,_0x448f2e){const _0x3ac334=_0x342b35;return _0x1c90a1[_0x3ac334('0x2')]['id']&&delete _0x1c90a1[_0x3ac334('0x2')]['id'],db['Action']['findOne']({'where':{'id':_0x1c90a1['params']['id']}})[_0x3ac334('0x7')](handleEntityNotFound(_0x448f2e))[_0x3ac334('0x7')](saveUpdates(_0x1c90a1[_0x3ac334('0x2')]))[_0x3ac334('0x7')](respondWithResult(_0x448f2e,null))['catch'](handleError(_0x448f2e,null));},exports[_0x342b35('0x4')]=function(_0x1c9e4f,_0x27f747){const _0x3e8f33=_0x342b35;return db[_0x3e8f33('0xc')]['findOne']({'where':{'id':_0x1c9e4f[_0x3e8f33('0x0')]['id']}})['then'](handleEntityNotFound(_0x27f747))['then'](removeEntity(_0x27f747))[_0x3e8f33('0xf')](handleError(_0x27f747,null));}; \ No newline at end of file +const a1_0x7e26=['params','status','json','end','destroy','sendStatus','send','update','Action','../../config/logger','findOne','then','catch','stack','api','body','name','../../mysqldb','error'];(function(_0x2ae9a4,_0x7e2654){const _0x3ac83e=function(_0x258956){while(--_0x258956){_0x2ae9a4['push'](_0x2ae9a4['shift']());}};_0x3ac83e(++_0x7e2654);}(a1_0x7e26,0xb6));const a1_0x3ac8=function(_0x2ae9a4,_0x7e2654){_0x2ae9a4=_0x2ae9a4-0x0;let _0x3ac83e=a1_0x7e26[_0x2ae9a4];return _0x3ac83e;};const _0x4b8e08=a1_0x3ac8;'use strict';const logger=require(_0x4b8e08('0x11'))(_0x4b8e08('0x3')),db=require(_0x4b8e08('0x6'))['db'];function respondWithResult(_0x258956,_0x1c82f0){return _0x1c82f0=_0x1c82f0||0xc8,function(_0x269686){const _0x56a23e=a1_0x3ac8;if(_0x269686)return _0x258956[_0x56a23e('0x9')](_0x1c82f0)[_0x56a23e('0xa')](_0x269686);};}function saveUpdates(_0x3b0a04){return function(_0x1d51e6){const _0x3ab373=a1_0x3ac8;if(_0x1d51e6)return _0x1d51e6[_0x3ab373('0xf')](_0x3b0a04)[_0x3ab373('0x0')](function(_0x4ddac2){return _0x4ddac2;});return null;};}function removeEntity(_0x53d776){return function(_0x432e8e){const _0x45585e=a1_0x3ac8;if(_0x432e8e)return _0x432e8e[_0x45585e('0xc')]()[_0x45585e('0x0')](function(){const _0x2f5fa0=_0x45585e;_0x53d776[_0x2f5fa0('0x9')](0xcc)[_0x2f5fa0('0xb')]();});};}function handleEntityNotFound(_0x4dfc43){return function(_0x394712){const _0x9954eb=a1_0x3ac8;return!_0x394712&&_0x4dfc43[_0x9954eb('0xd')](0x194),_0x394712;};}function handleError(_0x44e353,_0x53cfa8){return _0x53cfa8=_0x53cfa8||0x1f4,function(_0x1fab7e){const _0x3f3f74=a1_0x3ac8;logger[_0x3f3f74('0x7')](_0x1fab7e[_0x3f3f74('0x2')]),_0x1fab7e[_0x3f3f74('0x5')]&&delete _0x1fab7e[_0x3f3f74('0x5')],_0x44e353[_0x3f3f74('0x9')](_0x53cfa8)[_0x3f3f74('0xe')](_0x1fab7e);};}exports[_0x4b8e08('0xf')]=function(_0x1cc7a8,_0x1606df){const _0x387de5=_0x4b8e08;return _0x1cc7a8[_0x387de5('0x4')]['id']&&delete _0x1cc7a8[_0x387de5('0x4')]['id'],db['Action'][_0x387de5('0x12')]({'where':{'id':_0x1cc7a8[_0x387de5('0x8')]['id']}})[_0x387de5('0x0')](handleEntityNotFound(_0x1606df))[_0x387de5('0x0')](saveUpdates(_0x1cc7a8[_0x387de5('0x4')]))[_0x387de5('0x0')](respondWithResult(_0x1606df,null))[_0x387de5('0x1')](handleError(_0x1606df,null));},exports[_0x4b8e08('0xc')]=function(_0x16a32d,_0x2a5964){const _0x298a4f=_0x4b8e08;return db[_0x298a4f('0x10')][_0x298a4f('0x12')]({'where':{'id':_0x16a32d[_0x298a4f('0x8')]['id']}})[_0x298a4f('0x0')](handleEntityNotFound(_0x2a5964))['then'](removeEntity(_0x2a5964))[_0x298a4f('0x1')](handleError(_0x2a5964,null));}; \ No newline at end of file diff --git a/server/api/action/action.model.js b/server/api/action/action.model.js index f2b4efa..c63b502 100644 --- a/server/api/action/action.model.js +++ b/server/api/action/action.model.js @@ -1 +1 @@ -const a2_0x111a=['define','./action.attributes','tools_actions','Action'];(function(_0x4b9044,_0x111a7f){const _0x2b5186=function(_0x498731){while(--_0x498731){_0x4b9044['push'](_0x4b9044['shift']());}};_0x2b5186(++_0x111a7f);}(a2_0x111a,0x1b7));const a2_0x2b51=function(_0x4b9044,_0x111a7f){_0x4b9044=_0x4b9044-0x0;let _0x2b5186=a2_0x111a[_0x4b9044];return _0x2b5186;};const _0x6741c9=a2_0x2b51;'use strict';const attributes=require(_0x6741c9('0x2'));module['exports']=function(_0x498731){const _0x93a2ed=_0x6741c9,_0xe3f08e=_0x498731[_0x93a2ed('0x1')](_0x93a2ed('0x0'),attributes,{'tableName':_0x93a2ed('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xe3f08e;}; \ No newline at end of file +const a2_0x3b2e=['./action.attributes','define','exports','tools_actions','Action'];(function(_0x86c82e,_0x3b2ed4){const _0x488340=function(_0x4d4053){while(--_0x4d4053){_0x86c82e['push'](_0x86c82e['shift']());}};_0x488340(++_0x3b2ed4);}(a2_0x3b2e,0x1a8));const a2_0x4883=function(_0x86c82e,_0x3b2ed4){_0x86c82e=_0x86c82e-0x0;let _0x488340=a2_0x3b2e[_0x86c82e];return _0x488340;};const _0x4f3630=a2_0x4883;'use strict';const attributes=require(_0x4f3630('0x1'));module[_0x4f3630('0x3')]=function(_0x4d4053){const _0x4c0748=_0x4f3630,_0x362e6b=_0x4d4053[_0x4c0748('0x2')](_0x4c0748('0x0'),attributes,{'tableName':_0x4c0748('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x362e6b;}; \ No newline at end of file diff --git a/server/api/action/index.js b/server/api/action/index.js index 2c9275c..32a89f3 100644 --- a/server/api/action/index.js +++ b/server/api/action/index.js @@ -1 +1 @@ -const a3_0xd67c=['./action.controller','isAuthenticated','put','Router','delete','destroy','/:id','../../components/auth/service','update','express'];(function(_0x4a12c8,_0xd67ce7){const _0x33fce8=function(_0xe1682c){while(--_0xe1682c){_0x4a12c8['push'](_0x4a12c8['shift']());}};_0x33fce8(++_0xd67ce7);}(a3_0xd67c,0x1f0));const a3_0x33fc=function(_0x4a12c8,_0xd67ce7){_0x4a12c8=_0x4a12c8-0x0;let _0x33fce8=a3_0xd67c[_0x4a12c8];return _0x33fce8;};const _0x69e96d=a3_0x33fc;'use strict';const express=require(_0x69e96d('0x3')),router=express[_0x69e96d('0x7')](),auth=require(_0x69e96d('0x1')),controller=require(_0x69e96d('0x4'));router[_0x69e96d('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x69e96d('0x2')]),router[_0x69e96d('0x8')](_0x69e96d('0x0'),auth[_0x69e96d('0x5')](),controller[_0x69e96d('0x9')]),module['exports']=router; \ No newline at end of file +const a3_0x1ff7=['destroy','put','update','/:id','isAuthenticated','Router','../../components/auth/service','exports'];(function(_0x2388ad,_0x1ff7f3){const _0x287955=function(_0x562afa){while(--_0x562afa){_0x2388ad['push'](_0x2388ad['shift']());}};_0x287955(++_0x1ff7f3);}(a3_0x1ff7,0x93));const a3_0x2879=function(_0x2388ad,_0x1ff7f3){_0x2388ad=_0x2388ad-0x0;let _0x287955=a3_0x1ff7[_0x2388ad];return _0x287955;};const _0x440ab4=a3_0x2879;'use strict';const express=require('express'),router=express[_0x440ab4('0x2')](),auth=require(_0x440ab4('0x3')),controller=require('./action.controller');router[_0x440ab4('0x6')](_0x440ab4('0x0'),auth[_0x440ab4('0x1')](),controller[_0x440ab4('0x7')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x440ab4('0x5')]),module[_0x440ab4('0x4')]=router; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.attributes.js b/server/api/analyticCustomReport/analyticCustomReport.attributes.js index 90a4977..6920835 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.attributes.js +++ b/server/api/analyticCustomReport/analyticCustomReport.attributes.js @@ -1 +1 @@ -const a4_0x38ab=['STRING','sequelize','exports','TEXT'];(function(_0x5b990d,_0x38aba8){const _0x52c120=function(_0x1d5f53){while(--_0x1d5f53){_0x5b990d['push'](_0x5b990d['shift']());}};_0x52c120(++_0x38aba8);}(a4_0x38ab,0x1a8));const a4_0x52c1=function(_0x5b990d,_0x38aba8){_0x5b990d=_0x5b990d-0x0;let _0x52c120=a4_0x38ab[_0x5b990d];return _0x52c120;};const _0x516010=a4_0x52c1;'use strict';const Sequelize=require(_0x516010('0x1'));module[_0x516010('0x2')]={'name':{'type':Sequelize[_0x516010('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0x516010('0x0')]},'parent':{'type':Sequelize[_0x516010('0x0')]},'table':{'type':Sequelize[_0x516010('0x0')]},'conditions':{'type':Sequelize[_0x516010('0x3')]},'joins':{'type':Sequelize['TEXT']}}; \ No newline at end of file +const a4_0x48cd=['sequelize','STRING','exports','TEXT'];(function(_0x576ec7,_0x48cd58){const _0x44ba4a=function(_0xa24714){while(--_0xa24714){_0x576ec7['push'](_0x576ec7['shift']());}};_0x44ba4a(++_0x48cd58);}(a4_0x48cd,0x1a9));const a4_0x44ba=function(_0x576ec7,_0x48cd58){_0x576ec7=_0x576ec7-0x0;let _0x44ba4a=a4_0x48cd[_0x576ec7];return _0x44ba4a;};const _0x2aa22c=a4_0x44ba;'use strict';const Sequelize=require(_0x2aa22c('0x3'));module[_0x2aa22c('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x2aa22c('0x0')]},'parent':{'type':Sequelize[_0x2aa22c('0x0')]},'table':{'type':Sequelize[_0x2aa22c('0x0')]},'conditions':{'type':Sequelize[_0x2aa22c('0x2')]},'joins':{'type':Sequelize['TEXT']}}; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.controller.js b/server/api/analyticCustomReport/analyticCustomReport.controller.js index e26e2eb..010cecc 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.controller.js +++ b/server/api/analyticCustomReport/analyticCustomReport.controller.js @@ -1 +1 @@ -const a5_0x6854=['keys','includeAll','field','metric','orderBy','sequelize','error','MIN(%s)','foreignTable','model','merge','foreignKey','child_process','left_join','.createdAt\x20BETWEEN\x20?\x20AND\x20?','IS\x20NOT\x20EMPTY','index','HOUR(%s)','toString','Run\x20Query:','%s.%s\x20=\x20%s.%s','DESC','order','update','../../components/parsers/qs','../../files/reports','output','MetricId','AnalyticMetric','intersection','%s-%s.%s','AVG(%s)','create','debug','util','key','UserProfileResource','info','joins','api','operator','user','IS\x20NULL','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','table','parentKey','DATE(%s)','endDate','cross_join','SUM(%s)','Reports','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','from','clone','type','then','select','AnalyticExtractedReport','cdr','where','end','filters','UNIX_TIMESTAMP(%s)','csv','fullPath','autoAssociation','attributes','include','randomstring','offset','preview','squel','map','web','Limited\x20Query:','role','filter','right_join','keyBy','fields','undefined','params','options','custom','run','show','sendStatus','fieldName','function','findAll','rules','countTable','limit','findOne','runReport','groupBy','Content-Range','sort','count','body','rows','COUNT(%s)','format','join','stack','AnalyticCustomReport','destroy','.calldate\x20BETWEEN\x20?\x20AND\x20?','get','status','like','catch','value','group','fork','SEC_TO_TIME(%s)','../../mysqldb','GROUP_CONCAT(%s)','ROUND(%s)','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','QueryTypes','lodash','startDate','Unable\x20to\x20retrieve\x20the\x20current\x20user','getFields','includes','userProfileId','MAX(%s)','parse','name','UserProfileSection','SELECT','replace','COUNT(DISTINCT\x20%s)','dbH','VIRTUAL','IS\x20NOT\x20NULL','length','CustomReports','alias','IS\x20EMPTY','savename','query','Please\x20insert\x20at\x20least\x20one\x20field','condition','conditions'];(function(_0x1be7db,_0x6854ad){const _0x4eb9d0=function(_0x1db553){while(--_0x1db553){_0x1be7db['push'](_0x1be7db['shift']());}};_0x4eb9d0(++_0x6854ad);}(a5_0x6854,0xf8));const a5_0x4eb9=function(_0x1be7db,_0x6854ad){_0x1be7db=_0x1be7db-0x0;let _0x4eb9d0=a5_0x6854[_0x1be7db];return _0x4eb9d0;};const _0x290121=a5_0x4eb9;'use strict';const util=require(_0x290121('0x4e')),path=require('path'),_=require(_0x290121('0x13')),squel=require(_0x290121('0x73')),qs=require(_0x290121('0x44')),logger=require('../../config/logger')(_0x290121('0x53')),db=require('../../mysqldb')['db'],dbH=require(_0x290121('0xe'))[_0x290121('0x20')],{Op,ValidationErrorItem,QueryTypes}=require(_0x290121('0x31'));function respondWithResult(_0x1db553,_0x1e79c7){return _0x1e79c7=_0x1e79c7||0xc8,function(_0x653ff){const _0x3e262f=a5_0x4eb9;if(_0x653ff)return _0x1db553[_0x3e262f('0x7')](_0x1e79c7)['json'](_0x653ff);};}function respondWithFilteredResult(_0x28a08a,_0x4769ae){return function(_0xd468dc){const _0x375d56=a5_0x4eb9;if(_0xd468dc){const _0x2b4230=_0xd468dc[_0x375d56('0x8e')],_0x315115=_0x4769ae[_0x375d56('0x71')];let _0x299686=_0x4769ae[_0x375d56('0x71')]+_0x4769ae['limit'],_0x103f13;return _0x299686>=_0x2b4230?(_0x299686=_0x2b4230,_0x103f13=0xc8):_0x103f13=0xce,_0x28a08a[_0x375d56('0x7')](_0x103f13),_0x28a08a['set'](_0x375d56('0x8c'),_0x315115+'-'+_0x299686+'/'+_0x2b4230)['json'](_0xd468dc);}return null;};}function saveUpdates(_0x5c9cf0){return function(_0x575e52){if(_0x575e52)return _0x575e52['update'](_0x5c9cf0)['then'](function(_0x25a151){return _0x25a151;});return null;};}function removeEntity(_0x58841b){return function(_0x2319ce){const _0x397759=a5_0x4eb9;if(_0x2319ce)return _0x2319ce[_0x397759('0x4')]()[_0x397759('0x63')](function(){const _0x10f929=_0x397759,_0x5cefa9=_0x2319ce[_0x10f929('0x6')]({'plain':!![]}),_0x239b26=_0x10f929('0x24');return db['UserProfileResource'][_0x10f929('0x4')]({'where':{'type':_0x239b26,'resourceId':_0x5cefa9['id']}})[_0x10f929('0x63')](function(){return _0x2319ce;});})['then'](function(){const _0xb7a68c=_0x397759;_0x58841b[_0xb7a68c('0x7')](0xcc)[_0xb7a68c('0x68')]();});};}function handleEntityNotFound(_0x2e385f){return function(_0x18f041){const _0x37902c=a5_0x4eb9;return!_0x18f041&&_0x2e385f[_0x37902c('0x82')](0x194),_0x18f041;};}function handleError(_0x2f96f5,_0x27e490){return _0x27e490=_0x27e490||0x1f4,function(_0x57c68f){const _0x226992=a5_0x4eb9;logger['error'](_0x57c68f[_0x226992('0x2')]),_0x57c68f[_0x226992('0x1b')]&&delete _0x57c68f[_0x226992('0x1b')],_0x2f96f5[_0x226992('0x7')](_0x27e490)['send'](_0x57c68f);};}exports[_0x290121('0x3c')]=function(_0x11107e,_0x317ed6){const _0xc1a5e5=_0x290121;let _0x35417e={};const _0x44dc9b={},_0x20f805={'count':0x0,'rows':[]},_0x42a384=_[_0xc1a5e5('0x74')](db[_0xc1a5e5('0x3')]['rawAttributes'],function(_0x117c92){const _0xbc837a=_0xc1a5e5;return{'name':_0x117c92[_0xbc837a('0x83')],'type':_0x117c92[_0xbc837a('0x62')][_0xbc837a('0x4f')]};});_0x44dc9b[_0xc1a5e5('0x35')]=_[_0xc1a5e5('0x74')](_0x42a384,_0xc1a5e5('0x1b')),_0x44dc9b[_0xc1a5e5('0x28')]=_[_0xc1a5e5('0x2c')](_0x11107e['query']),_0x44dc9b[_0xc1a5e5('0x69')]=_[_0xc1a5e5('0x49')](_0x44dc9b['model'],_0x44dc9b[_0xc1a5e5('0x28')]),_0x35417e[_0xc1a5e5('0x6e')]=_[_0xc1a5e5('0x49')](_0x44dc9b[_0xc1a5e5('0x35')],qs[_0xc1a5e5('0x7b')](_0x11107e[_0xc1a5e5('0x28')]['fields'])),_0x35417e[_0xc1a5e5('0x6e')]=_0x35417e[_0xc1a5e5('0x6e')][_0xc1a5e5('0x23')]?_0x35417e[_0xc1a5e5('0x6e')]:_0x44dc9b[_0xc1a5e5('0x35')];typeof _0x11107e[_0xc1a5e5('0x28')]['nolimit']===_0xc1a5e5('0x7c')&&(_0x35417e['limit']=qs[_0xc1a5e5('0x88')](_0x11107e['query']['limit']),_0x35417e[_0xc1a5e5('0x71')]=qs[_0xc1a5e5('0x71')](_0x11107e['query'][_0xc1a5e5('0x71')]));_0x35417e[_0xc1a5e5('0x42')]=qs[_0xc1a5e5('0x8d')](_0x11107e[_0xc1a5e5('0x28')][_0xc1a5e5('0x8d')]),_0x35417e[_0xc1a5e5('0x67')]=qs['filters'](_['pick'](_0x11107e['query'],_0x44dc9b[_0xc1a5e5('0x69')]),_0x42a384);_0x11107e[_0xc1a5e5('0x28')][_0xc1a5e5('0x78')]&&(_0x35417e[_0xc1a5e5('0x67')]=_['merge'](_0x35417e[_0xc1a5e5('0x67')],{[Op['or']]:_[_0xc1a5e5('0x74')](_0x42a384,function(_0x2a9d75){const _0x1d3429=_0xc1a5e5;if(_0x2a9d75['type']!==_0x1d3429('0x21')){const _0x48c33b={};return _0x48c33b[_0x2a9d75[_0x1d3429('0x1b')]]={[Op[_0x1d3429('0x8')]]:'%'+_0x11107e['query'][_0x1d3429('0x78')]+'%'},_0x48c33b;}})}));_0x35417e=_[_0xc1a5e5('0x36')]({},_0x35417e,_0x11107e[_0xc1a5e5('0x7e')]);const _0x1dbc9e={'where':_0x35417e['where']};return db[_0xc1a5e5('0x3')][_0xc1a5e5('0x8e')](_0x1dbc9e)['then'](function(_0x4dcc2c){const _0x400735=_0xc1a5e5;return _0x20f805[_0x400735('0x8e')]=_0x4dcc2c,_0x11107e['query'][_0x400735('0x2d')]&&(_0x35417e['include']=[{'all':!![]}]),db[_0x400735('0x3')][_0x400735('0x85')](_0x35417e);})[_0xc1a5e5('0x63')](function(_0x287809){const _0x5d6111=_0xc1a5e5;return _0x20f805[_0x5d6111('0x90')]=_0x287809,_0x20f805;})['then'](respondWithFilteredResult(_0x317ed6,_0x35417e))['catch'](handleError(_0x317ed6,null));},exports[_0x290121('0x81')]=function(_0x284a36,_0x308351){const _0x3debbf=_0x290121;let _0x4004fe={'raw':![],'where':{'id':_0x284a36[_0x3debbf('0x7d')]['id']}};const _0x35c006={};return _0x35c006[_0x3debbf('0x35')]=_[_0x3debbf('0x2c')](db[_0x3debbf('0x3')]['rawAttributes']),_0x35c006[_0x3debbf('0x28')]=_['keys'](_0x284a36[_0x3debbf('0x28')]),_0x35c006[_0x3debbf('0x69')]=_['intersection'](_0x35c006[_0x3debbf('0x35')],_0x35c006[_0x3debbf('0x28')]),_0x4004fe[_0x3debbf('0x6e')]=_[_0x3debbf('0x49')](_0x35c006[_0x3debbf('0x35')],qs['fields'](_0x284a36[_0x3debbf('0x28')][_0x3debbf('0x7b')])),_0x4004fe[_0x3debbf('0x6e')]=_0x4004fe[_0x3debbf('0x6e')][_0x3debbf('0x23')]?_0x4004fe[_0x3debbf('0x6e')]:_0x35c006[_0x3debbf('0x35')],_0x284a36[_0x3debbf('0x28')][_0x3debbf('0x2d')]&&(_0x4004fe[_0x3debbf('0x6f')]=[{'all':!![]}]),_0x4004fe=_[_0x3debbf('0x36')]({},_0x4004fe,_0x284a36[_0x3debbf('0x7e')]),db['AnalyticCustomReport'][_0x3debbf('0x89')](_0x4004fe)[_0x3debbf('0x63')](handleEntityNotFound(_0x308351,null))[_0x3debbf('0x63')](respondWithResult(_0x308351,null))[_0x3debbf('0x9')](handleError(_0x308351,null));},exports[_0x290121('0x4c')]=function(_0x1aea68,_0x5aee3b){const _0x31a8ca=_0x290121;return db[_0x31a8ca('0x3')][_0x31a8ca('0x4c')](_0x1aea68[_0x31a8ca('0x8f')],{})['then'](function(_0x490d5){const _0x5be0d9=_0x31a8ca,_0x492fda=_0x1aea68[_0x5be0d9('0x55')][_0x5be0d9('0x6')]({'plain':!![]});if(!_0x492fda)throw new Error(_0x5be0d9('0x15'));if(_0x492fda[_0x5be0d9('0x77')]===_0x5be0d9('0x55')){const _0x5c7ce4=_0x490d5['get']({'plain':!![]}),_0xfaccf7=_0x5be0d9('0x5e');return db[_0x5be0d9('0x1c')][_0x5be0d9('0x89')]({'where':{'name':_0xfaccf7,'userProfileId':_0x492fda[_0x5be0d9('0x18')]},'raw':!![]})[_0x5be0d9('0x63')](function(_0x44e0f4){const _0x291258=_0x5be0d9;return _0x44e0f4&&_0x44e0f4[_0x291258('0x6d')]===0x0?db[_0x291258('0x50')][_0x291258('0x4c')]({'name':_0x5c7ce4[_0x291258('0x1b')],'resourceId':_0x5c7ce4['id'],'type':_0x291258('0x24'),'sectionId':_0x44e0f4['id']},{})[_0x291258('0x63')](function(){return _0x490d5;}):_0x490d5;})[_0x5be0d9('0x9')](function(_0x83b7cd){const _0x158c46=_0x5be0d9;logger[_0x158c46('0x32')](_0x158c46('0x11'),_0x83b7cd);throw _0x83b7cd;});}return _0x490d5;})['then'](respondWithResult(_0x5aee3b,0xc9))[_0x31a8ca('0x9')](handleError(_0x5aee3b,null));},exports[_0x290121('0x43')]=function(_0x492720,_0x280d71){const _0xe2372a=_0x290121;return _0x492720[_0xe2372a('0x8f')]['id']&&delete _0x492720['body']['id'],db[_0xe2372a('0x3')][_0xe2372a('0x89')]({'where':{'id':_0x492720[_0xe2372a('0x7d')]['id']}})[_0xe2372a('0x63')](handleEntityNotFound(_0x280d71,null))['then'](saveUpdates(_0x492720[_0xe2372a('0x8f')],null))[_0xe2372a('0x63')](respondWithResult(_0x280d71,null))[_0xe2372a('0x9')](handleError(_0x280d71,null));},exports[_0x290121('0x4')]=function(_0xc994fa,_0xadadf){const _0x3b9276=_0x290121;return db[_0x3b9276('0x3')]['findOne']({'where':{'id':_0xc994fa['params']['id']}})['then'](handleEntityNotFound(_0xadadf,null))[_0x3b9276('0x63')](removeEntity(_0xadadf,null))['catch'](handleError(_0xadadf,null));},exports[_0x290121('0x72')]=function(_0x4b1e02,_0x4c16d4){const _0x40b66=_0x290121,_0x21ec3e=0xa,_0x2d991f=[_0x40b66('0x1'),_0x40b66('0x39'),_0x40b66('0x79'),_0x40b66('0x5c')],_0x15dda7={'SUM':_0x40b66('0x5d'),'COUNT':_0x40b66('0x91'),'COUNT\x20DISTINCT':_0x40b66('0x1f'),'MAX':_0x40b66('0x19'),'MIN':_0x40b66('0x33'),'AVG':'AVG(%s)','GROUP_CONCAT':_0x40b66('0xf'),'GROUP_CONCAT\x20ASC':_0x40b66('0x57'),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0xb9d59d={'SEC_TO_TIME':_0x40b66('0xd'),'DATE':'DATE(%s)','HOUR':'HOUR(%s)','ROUND':_0x40b66('0x10'),'UNIX_TIMESTAMP':_0x40b66('0x6a')},_0x5e1091=function(_0x1450d0){const _0x313c89=_0x40b66;return!_[_0x313c89('0x17')](['IS\x20NULL',_0x313c89('0x22'),'IS\x20EMPTY',_0x313c89('0x3b')],_0x1450d0);},_0x41eb0e=function(_0x101db7){const _0x5ae323=_0x40b66;if(!_0x101db7||!_0x101db7[_0x5ae323('0x86')][_0x5ae323('0x23')])return'';let _0x21965c='(';for(let _0x474420=0x0;_0x474420<_0x101db7[_0x5ae323('0x86')][_0x5ae323('0x23')];_0x474420+=0x1){_0x474420>0x0&&(_0x21965c+='\x20'+_0x101db7[_0x5ae323('0x54')]+'\x20'),_0x21965c+=_0x101db7['rules'][_0x474420][_0x5ae323('0xb')]?_0x41eb0e(_0x101db7[_0x5ae323('0x86')][_0x474420]['group']):_0x101db7[_0x5ae323('0x86')][_0x474420][_0x5ae323('0x2e')]+'\x20'+_0x101db7[_0x5ae323('0x86')][_0x474420]['condition']+(_0x5e1091(_0x101db7['rules'][_0x474420][_0x5ae323('0x2a')])?'\x20'+_0x101db7[_0x5ae323('0x86')][_0x474420][_0x5ae323('0xa')]:'');}return _0x21965c+')';};let _0x21dac8={'where':{'id':_0x4b1e02[_0x40b66('0x7d')]['id']}},_0x309f7c,_0x52cd5f,_0x5cf06a;return _0x21dac8=_[_0x40b66('0x36')]({},_0x21dac8,_0x4b1e02[_0x40b66('0x7e')]),db[_0x40b66('0x3')][_0x40b66('0x89')](_0x21dac8)['then'](function(_0x4ca605){const _0x2e8512=_0x40b66;if(_0x4ca605)return _0x309f7c=_0x4ca605,_0x4ca605[_0x2e8512('0x16')]();return null;})['then'](function(_0x137b22){const _0x4a918d=_0x40b66;if(_0x137b22){if(!_0x137b22['length'])throw new ValidationErrorItem(_0x4a918d('0x29'),0x193);return _0x52cd5f=_0x137b22,db[_0x4a918d('0x48')]['findAll']({'raw':!![]});}return null;})[_0x40b66('0x63')](function(_0x3d2faa){const _0x278d63=_0x40b66;if(_0x3d2faa){_0x5cf06a=_[_0x278d63('0x7a')](_0x3d2faa,'id');let _0x1c1be5;const _0x43d8ac=squel['select']();_0x43d8ac[_0x278d63('0x60')](_0x309f7c[_0x278d63('0x58')]);for(let _0x48b486=0x0;_0x48b486<_0x52cd5f[_0x278d63('0x23')];_0x48b486+=0x1){_0x1c1be5=_0x52cd5f[_0x48b486][_0x278d63('0x47')]?_0x5cf06a[_0x52cd5f[_0x48b486][_0x278d63('0x47')]]['metric']:_0x52cd5f[_0x48b486][_0x278d63('0x2e')],_0x1c1be5=_0x52cd5f[_0x48b486][_0x278d63('0x84')]?_['replace'](_0x15dda7[_0x52cd5f[_0x48b486][_0x278d63('0x84')]],'%s',_0x1c1be5):_0x1c1be5,_0x1c1be5=_0x52cd5f[_0x48b486][_0x278d63('0x0')]?_['replace'](_0xb9d59d[_0x52cd5f[_0x48b486][_0x278d63('0x0')]],'%s',_0x1c1be5):_0x1c1be5,_0x52cd5f[_0x48b486][_0x278d63('0x8b')]&&_0x43d8ac['group'](_0x1c1be5),_0x52cd5f[_0x48b486]['orderBy']&&_0x43d8ac[_0x278d63('0x42')](_0x1c1be5,_0x52cd5f[_0x48b486][_0x278d63('0x30')]==='DESC'?![]:!![]),_0x43d8ac['field'](_0x1c1be5,_0x52cd5f[_0x48b486][_0x278d63('0x25')]||_0x1c1be5);}if(_0x309f7c[_0x278d63('0x52')]){_0x309f7c[_0x278d63('0x52')]=JSON[_0x278d63('0x1a')](_0x309f7c['joins']);for(let _0x505bf8=0x0;_0x505bf8<_0x309f7c[_0x278d63('0x52')]['length'];_0x505bf8+=0x1){_0x309f7c[_0x278d63('0x52')][_0x505bf8][_0x278d63('0x62')]&&_[_0x278d63('0x17')](_0x2d991f,_0x309f7c[_0x278d63('0x52')][_0x505bf8][_0x278d63('0x62')])&&_0x309f7c['joins'][_0x505bf8][_0x278d63('0x59')]&&_0x309f7c[_0x278d63('0x52')][_0x505bf8][_0x278d63('0x34')]&&_0x309f7c[_0x278d63('0x52')][_0x505bf8][_0x278d63('0x37')]&&_0x43d8ac[_0x309f7c[_0x278d63('0x52')][_0x505bf8]['type']](_0x309f7c[_0x278d63('0x52')][_0x505bf8][_0x278d63('0x34')],null,util[_0x278d63('0x0')](_0x278d63('0x40'),_0x309f7c[_0x278d63('0x58')],_0x309f7c[_0x278d63('0x52')][_0x505bf8][_0x278d63('0x59')],_0x309f7c[_0x278d63('0x52')][_0x505bf8]['foreignTable'],_0x309f7c[_0x278d63('0x52')][_0x505bf8][_0x278d63('0x37')]));}}return _0x309f7c[_0x278d63('0x2b')]&&(_0x309f7c[_0x278d63('0x2b')]=JSON[_0x278d63('0x1a')](_0x309f7c[_0x278d63('0x2b')]),_0x43d8ac[_0x278d63('0x67')](_0x41eb0e(_0x309f7c[_0x278d63('0x2b')][_0x278d63('0xb')]))),_0x43d8ac[_0x278d63('0x88')](_0x21ec3e),_0x43d8ac[_0x278d63('0x71')](0x0),logger[_0x278d63('0x4d')](_0x278d63('0x76'),_0x43d8ac[_0x278d63('0x3e')]()),db[_0x278d63('0x31')][_0x278d63('0x28')](_0x43d8ac[_0x278d63('0x3e')](),{'type':QueryTypes[_0x278d63('0x1d')]});}})[_0x40b66('0x63')](respondWithResult(_0x4c16d4,null))[_0x40b66('0x9')](handleError(_0x4c16d4,null));};function runReport(_0x238c50,_0xae24f7,_0x82df99){const _0x544ea8=_0x290121,_0x50d0b4=_0xae24f7[_0x544ea8('0x1b')],_0x1fb0e9=0xa,_0x2d10b1=['join',_0x544ea8('0x39'),_0x544ea8('0x79'),_0x544ea8('0x5c')],_0x22116b={'SUM':_0x544ea8('0x5d'),'COUNT':_0x544ea8('0x91'),'COUNT\x20DISTINCT':_0x544ea8('0x1f'),'MAX':_0x544ea8('0x19'),'MIN':_0x544ea8('0x33'),'AVG':_0x544ea8('0x4b'),'GROUP_CONCAT':_0x544ea8('0xf'),'GROUP_CONCAT\x20ASC':_0x544ea8('0x57'),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x4cf9e2={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':'DATE(%s)','HOUR':_0x544ea8('0x3d'),'ROUND':_0x544ea8('0x10'),'UNIX_TIMESTAMP':_0x544ea8('0x6a')},_0x13e445=function(_0x163451){const _0x374358=_0x544ea8;return!_[_0x374358('0x17')]([_0x374358('0x56'),'IS\x20NOT\x20NULL',_0x374358('0x26'),_0x374358('0x3b')],_0x163451);},_0x42fd0b=function(_0x446a51){const _0x27a6e7=_0x544ea8;if(!_0x446a51||!_0x446a51['rules']['length'])return'';let _0x50c06e='(';for(let _0x3ca351=0x0;_0x3ca351<_0x446a51[_0x27a6e7('0x86')][_0x27a6e7('0x23')];_0x3ca351+=0x1){_0x3ca351>0x0&&(_0x50c06e+='\x20'+_0x446a51['operator']+'\x20'),_0x50c06e+=_0x446a51['rules'][_0x3ca351][_0x27a6e7('0xb')]?_0x42fd0b(_0x446a51[_0x27a6e7('0x86')][_0x3ca351][_0x27a6e7('0xb')]):_0x446a51['rules'][_0x3ca351][_0x27a6e7('0x2e')]+'\x20'+_0x446a51[_0x27a6e7('0x86')][_0x3ca351][_0x27a6e7('0x2a')]+(_0x13e445(_0x446a51[_0x27a6e7('0x86')][_0x3ca351][_0x27a6e7('0x2a')])?'\x20'+_0x446a51[_0x27a6e7('0x86')][_0x3ca351][_0x27a6e7('0xa')]:'');}return _0x50c06e+')';};let _0x417177={'where':{'id':_0x238c50['id']}},_0xaab4f3,_0x55702c,_0x38b6a1,_0x4b58e0,_0x3f08d3;return _0x417177=_[_0x544ea8('0x36')]({},_0x417177,_0x82df99),db[_0x544ea8('0x3')][_0x544ea8('0x89')](_0x417177)[_0x544ea8('0x63')](function(_0x57c4e2){if(_0x57c4e2)return _0xaab4f3=_0x57c4e2,_0x57c4e2['getFields']();return null;})[_0x544ea8('0x63')](function(_0x2d60c1){const _0xed187=_0x544ea8;if(_0x2d60c1){if(!_0x2d60c1[_0xed187('0x23')])throw new ValidationErrorItem(_0xed187('0x29'),0x193);return _0x55702c=_0x2d60c1,db['AnalyticMetric'][_0xed187('0x85')]({'raw':!![]});}return null;})[_0x544ea8('0x63')](function(_0x10f669){const _0x33ce25=_0x544ea8;if(_0x10f669){_0x38b6a1=_['keyBy'](_0x10f669,'id');let _0x5e4612;const _0x3d23d3=squel[_0x33ce25('0x64')]();_0x3d23d3[_0x33ce25('0x60')](_0xaab4f3['table']);for(let _0x2826f8=0x0;_0x2826f8<_0x55702c['length'];_0x2826f8+=0x1){_0x5e4612=_0x55702c[_0x2826f8]['MetricId']?_0x38b6a1[_0x55702c[_0x2826f8][_0x33ce25('0x47')]][_0x33ce25('0x2f')]:_0x55702c[_0x2826f8][_0x33ce25('0x2e')],_0x5e4612=_0x55702c[_0x2826f8][_0x33ce25('0x84')]?_['replace'](_0x22116b[_0x55702c[_0x2826f8]['function']],'%s',_0x5e4612):_0x5e4612,_0x5e4612=_0x55702c[_0x2826f8][_0x33ce25('0x0')]?_[_0x33ce25('0x1e')](_0x4cf9e2[_0x55702c[_0x2826f8][_0x33ce25('0x0')]],'%s',_0x5e4612):_0x5e4612,_0x55702c[_0x2826f8][_0x33ce25('0x8b')]&&_0x3d23d3[_0x33ce25('0xb')](_0x5e4612),_0x55702c[_0x2826f8][_0x33ce25('0x30')]&&_0x3d23d3['order'](_0x5e4612,_0x55702c[_0x2826f8][_0x33ce25('0x30')]===_0x33ce25('0x41')?![]:!![]),_0x3d23d3[_0x33ce25('0x2e')](_0x5e4612,_0x55702c[_0x2826f8][_0x33ce25('0x25')]||_0x5e4612);}if(_0xaab4f3[_0x33ce25('0x52')]){_0xaab4f3[_0x33ce25('0x52')]=JSON['parse'](_0xaab4f3['joins']);for(let _0xb287dd=0x0;_0xb287dd<_0xaab4f3['joins'][_0x33ce25('0x23')];_0xb287dd+=0x1){_0xaab4f3['joins'][_0xb287dd]['type']&&_['includes'](_0x2d10b1,_0xaab4f3[_0x33ce25('0x52')][_0xb287dd][_0x33ce25('0x62')])&&_0xaab4f3['joins'][_0xb287dd]['parentKey']&&_0xaab4f3['joins'][_0xb287dd][_0x33ce25('0x34')]&&_0xaab4f3[_0x33ce25('0x52')][_0xb287dd][_0x33ce25('0x37')]&&_0x3d23d3[_0xaab4f3[_0x33ce25('0x52')][_0xb287dd][_0x33ce25('0x62')]](_0xaab4f3[_0x33ce25('0x52')][_0xb287dd][_0x33ce25('0x34')],null,util[_0x33ce25('0x0')](_0x33ce25('0x40'),_0xaab4f3[_0x33ce25('0x58')],_0xaab4f3[_0x33ce25('0x52')][_0xb287dd][_0x33ce25('0x59')],_0xaab4f3[_0x33ce25('0x52')][_0xb287dd][_0x33ce25('0x34')],_0xaab4f3[_0x33ce25('0x52')][_0xb287dd]['foreignKey']));}}return _0xaab4f3[_0x33ce25('0x2b')]&&(_0xaab4f3[_0x33ce25('0x2b')]=JSON[_0x33ce25('0x1a')](_0xaab4f3[_0x33ce25('0x2b')]),_0x3d23d3[_0x33ce25('0x67')](_0x42fd0b(_0xaab4f3[_0x33ce25('0x2b')][_0x33ce25('0xb')]))),_0x3f08d3=_0x3d23d3['clone'](),_0x3d23d3['limit'](_0x1fb0e9),_0x3d23d3[_0x33ce25('0x71')](0x0),logger['debug']('Limited\x20Query:',_0x3d23d3['toString']()),db['sequelize'][_0x33ce25('0x28')](_0x3d23d3['toString'](),{'type':QueryTypes[_0x33ce25('0x1d')]});}})[_0x544ea8('0x63')](function(_0x3cf0b9){const _0x15ba6d=_0x544ea8;if(!_0x3cf0b9[_0x15ba6d('0x23')])throw new ValidationErrorItem('No\x20available\x20data',0xcc);if(_0xae24f7[_0x15ba6d('0x46')]===_0x15ba6d('0x75'))return null;const _0x2c60a9=_['merge'](_0xae24f7,{'name':_0xae24f7[_0x15ba6d('0x6c')]||_0xae24f7['name']||_0xaab4f3[_0x15ba6d('0x1b')],'basename':_0x50d0b4,'savename':util[_0x15ba6d('0x0')](_0x15ba6d('0x4a'),_0xae24f7[_0x15ba6d('0x1b')]||_0xaab4f3[_0x15ba6d('0x1b')],require(_0x15ba6d('0x70'))['generate'](0x4),_0xae24f7[_0x15ba6d('0x46')]||_0x15ba6d('0x6b')),'reportId':_0xaab4f3['id'],'reportType':_0x15ba6d('0x7f')});return db[_0x15ba6d('0x65')][_0x15ba6d('0x4c')](_0x2c60a9,{'raw':!![]});})['then'](function(_0x3dde48){const _0x29a854=_0x544ea8;_0xaab4f3['table']===_0x29a854('0x66')?_0x3f08d3[_0x29a854('0x67')](_0xaab4f3[_0x29a854('0x58')]+_0x29a854('0x5'),_0xae24f7[_0x29a854('0x14')],_0xae24f7['endDate']):_0x3f08d3[_0x29a854('0x67')](_0xaab4f3[_0x29a854('0x58')]+_0x29a854('0x3a'),_0xae24f7['startDate'],_0xae24f7[_0x29a854('0x5b')]);if(_0x3dde48)return logger[_0x29a854('0x51')](_0x29a854('0x3f'),_0x3f08d3[_0x29a854('0x3e')]()),require(_0x29a854('0x38'))[_0x29a854('0xc')](path[_0x29a854('0x1')](__dirname,'../../components/export/',_0x3dde48[_0x29a854('0x46')]),[_0x3dde48['id'],_0x3f08d3['toString'](),path[_0x29a854('0x1')](__dirname,_0x29a854('0x45'),_0x3dde48[_0x29a854('0x27')]),_0x50d0b4]),_0x3dde48;else{const _0x2fb3c0=squel[_0x29a854('0x64')]();return _0x2fb3c0[_0x29a854('0x60')]('('+_0x3f08d3[_0x29a854('0x3e')]()+')',_0x29a854('0x87')),_0x2fb3c0[_0x29a854('0x2e')]('COUNT(*)','count'),_0x3f08d3['limit'](_0xae24f7[_0x29a854('0x88')]||_0x1fb0e9),_0x3f08d3[_0x29a854('0x71')](_0xae24f7['offset']||0x0),dbH[_0x29a854('0x31')]['query'](_0x2fb3c0[_0x29a854('0x3e')](),{'type':dbH[_0x29a854('0x31')][_0x29a854('0x12')]['SELECT']})[_0x29a854('0x63')](function(_0x2353b7){const _0x5b2f21=_0x29a854;return!_0x2353b7[_0x5b2f21('0x23')]?_0x4b58e0=0x0:_0x4b58e0=_0x2353b7[0x0][_0x5b2f21('0x8e')]||0x0,dbH[_0x5b2f21('0x31')][_0x5b2f21('0x28')](_0x3f08d3[_0x5b2f21('0x3e')](),{'type':dbH[_0x5b2f21('0x31')][_0x5b2f21('0x12')][_0x5b2f21('0x1d')]});})[_0x29a854('0x63')](function(_0x10673a){return{'rows':_0x10673a||[],'count':_0x4b58e0};});}});}exports[_0x290121('0x80')]=function(_0x4d91e6,_0x4efc48){const _0x58324d=_0x290121;return runReport(_0x4d91e6[_0x58324d('0x7d')],_0x4d91e6[_0x58324d('0x28')],_0x4d91e6[_0x58324d('0x7e')])[_0x58324d('0x63')](respondWithResult(_0x4efc48,null))[_0x58324d('0x9')](handleError(_0x4efc48,null));},exports[_0x290121('0x8a')]=runReport,exports[_0x290121('0x28')]=function(_0x252b6e,_0x4ec2d4){const _0x1f44a3=_0x290121,_0x3288bd=0xa,_0x9697b3=['join',_0x1f44a3('0x39'),_0x1f44a3('0x79'),_0x1f44a3('0x5c')],_0x6c88db={'SUM':_0x1f44a3('0x5d'),'COUNT':_0x1f44a3('0x91'),'COUNT\x20DISTINCT':_0x1f44a3('0x1f'),'MAX':_0x1f44a3('0x19'),'MIN':_0x1f44a3('0x33'),'AVG':_0x1f44a3('0x4b'),'GROUP_CONCAT':_0x1f44a3('0xf'),'GROUP_CONCAT\x20ASC':_0x1f44a3('0x57'),'GROUP_CONCAT\x20DESC':_0x1f44a3('0x5f')},_0x1a6f96={'SEC_TO_TIME':_0x1f44a3('0xd'),'DATE':_0x1f44a3('0x5a'),'HOUR':'HOUR(%s)','ROUND':_0x1f44a3('0x10'),'UNIX_TIMESTAMP':_0x1f44a3('0x6a')},_0x24b485=function(_0x5de11f){const _0xde8046=_0x1f44a3;return!_[_0xde8046('0x17')]([_0xde8046('0x56'),_0xde8046('0x22'),_0xde8046('0x26'),_0xde8046('0x3b')],_0x5de11f);},_0xbaf686=function(_0x134e41){const _0x462f38=_0x1f44a3;if(!_0x134e41||!_0x134e41[_0x462f38('0x86')][_0x462f38('0x23')])return'';let _0x28a32a='(';for(let _0x2b8e1f=0x0;_0x2b8e1f<_0x134e41['rules'][_0x462f38('0x23')];_0x2b8e1f+=0x1){_0x2b8e1f>0x0&&(_0x28a32a+='\x20'+_0x134e41['operator']+'\x20'),_0x28a32a+=_0x134e41['rules'][_0x2b8e1f][_0x462f38('0xb')]?_0xbaf686(_0x134e41[_0x462f38('0x86')][_0x2b8e1f]['group']):_0x134e41[_0x462f38('0x86')][_0x2b8e1f]['field']+'\x20'+_0x134e41[_0x462f38('0x86')][_0x2b8e1f][_0x462f38('0x2a')]+(_0x24b485(_0x134e41['rules'][_0x2b8e1f][_0x462f38('0x2a')])?'\x20'+_0x134e41[_0x462f38('0x86')][_0x2b8e1f][_0x462f38('0xa')]:'');}return _0x28a32a+')';};let _0x11ca48={'where':{'id':_0x252b6e[_0x1f44a3('0x7d')]['id']}},_0x58abb2,_0x3b7786,_0x2b4109,_0x1e8bef;return _0x11ca48=_['merge']({},_0x11ca48,_0x252b6e['options']),db[_0x1f44a3('0x3')]['findOne'](_0x11ca48)[_0x1f44a3('0x63')](function(_0x1b6027){const _0x52df02=_0x1f44a3;if(_0x1b6027)return _0x58abb2=_0x1b6027,_0x1b6027[_0x52df02('0x16')]();return null;})[_0x1f44a3('0x63')](function(_0x3c6649){const _0x970f35=_0x1f44a3;if(_0x3c6649){if(!_0x3c6649[_0x970f35('0x23')])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x3b7786=_0x3c6649,db['AnalyticMetric'][_0x970f35('0x85')]({'raw':!![]});}return null;})[_0x1f44a3('0x63')](function(_0x1eda18){const _0x5eb7e1=_0x1f44a3;if(_0x1eda18){_0x2b4109=_['keyBy'](_0x1eda18,'id');let _0x5f2057;const _0x9ccc46=squel[_0x5eb7e1('0x64')]();_0x9ccc46['from'](_0x58abb2['table']);for(let _0x3010e5=0x0;_0x3010e5<_0x3b7786[_0x5eb7e1('0x23')];_0x3010e5+=0x1){_0x5f2057=_0x3b7786[_0x3010e5][_0x5eb7e1('0x47')]?_0x2b4109[_0x3b7786[_0x3010e5][_0x5eb7e1('0x47')]][_0x5eb7e1('0x2f')]:_0x3b7786[_0x3010e5][_0x5eb7e1('0x2e')],_0x5f2057=_0x3b7786[_0x3010e5]['function']?_[_0x5eb7e1('0x1e')](_0x6c88db[_0x3b7786[_0x3010e5]['function']],'%s',_0x5f2057):_0x5f2057,_0x5f2057=_0x3b7786[_0x3010e5][_0x5eb7e1('0x0')]?_['replace'](_0x1a6f96[_0x3b7786[_0x3010e5][_0x5eb7e1('0x0')]],'%s',_0x5f2057):_0x5f2057,_0x3b7786[_0x3010e5][_0x5eb7e1('0x8b')]&&_0x9ccc46[_0x5eb7e1('0xb')](_0x5f2057),_0x3b7786[_0x3010e5][_0x5eb7e1('0x30')]&&_0x9ccc46[_0x5eb7e1('0x42')](_0x5f2057,_0x3b7786[_0x3010e5][_0x5eb7e1('0x30')]===_0x5eb7e1('0x41')?![]:!![]),_0x9ccc46[_0x5eb7e1('0x2e')](_0x5f2057,_0x3b7786[_0x3010e5][_0x5eb7e1('0x25')]||_0x5f2057);}if(_0x58abb2[_0x5eb7e1('0x52')]){_0x58abb2['joins']=JSON[_0x5eb7e1('0x1a')](_0x58abb2[_0x5eb7e1('0x52')]);for(let _0x3cc752=0x0;_0x3cc752<_0x58abb2['joins'][_0x5eb7e1('0x23')];_0x3cc752+=0x1){_0x58abb2[_0x5eb7e1('0x52')][_0x3cc752]['type']&&_['includes'](_0x9697b3,_0x58abb2[_0x5eb7e1('0x52')][_0x3cc752]['type'])&&_0x58abb2[_0x5eb7e1('0x52')][_0x3cc752][_0x5eb7e1('0x59')]&&_0x58abb2[_0x5eb7e1('0x52')][_0x3cc752]['foreignTable']&&_0x58abb2['joins'][_0x3cc752][_0x5eb7e1('0x37')]&&_0x9ccc46[_0x58abb2['joins'][_0x3cc752][_0x5eb7e1('0x62')]](_0x58abb2[_0x5eb7e1('0x52')][_0x3cc752]['foreignTable'],null,util[_0x5eb7e1('0x0')]('%s.%s\x20=\x20%s.%s',_0x58abb2['table'],_0x58abb2[_0x5eb7e1('0x52')][_0x3cc752][_0x5eb7e1('0x59')],_0x58abb2[_0x5eb7e1('0x52')][_0x3cc752]['foreignTable'],_0x58abb2[_0x5eb7e1('0x52')][_0x3cc752][_0x5eb7e1('0x37')]));}}return _0x58abb2[_0x5eb7e1('0x2b')]&&(_0x58abb2[_0x5eb7e1('0x2b')]=JSON[_0x5eb7e1('0x1a')](_0x58abb2[_0x5eb7e1('0x2b')]),_0x9ccc46[_0x5eb7e1('0x67')](_0xbaf686(_0x58abb2['conditions'][_0x5eb7e1('0xb')]))),_0x1e8bef=_0x9ccc46[_0x5eb7e1('0x61')](),_0x9ccc46['limit'](_0x3288bd),_0x9ccc46[_0x5eb7e1('0x71')](0x0),logger['debug']('Limited\x20Query:',_0x9ccc46[_0x5eb7e1('0x3e')]()),db['sequelize']['query'](_0x9ccc46[_0x5eb7e1('0x3e')](),{'type':QueryTypes[_0x5eb7e1('0x1d')]});}})[_0x1f44a3('0x63')](function(){return{'sql':_0x1e8bef['toString']()};})['then'](respondWithResult(_0x4ec2d4,null))[_0x1f44a3('0x9')](handleError(_0x4ec2d4,null));}; \ No newline at end of file +const a5_0x3a7f=['merge','create','offset','savename','findOne','CustomReports','end','Limited\x20Query:','foreignTable','options','COUNT(*)','fields','query','order','keys','getFields','../../config/logger','path','IS\x20NOT\x20EMPTY','function','clone','stack','join','fullPath','map','web','filters','joins','Unable\x20to\x20retrieve\x20the\x20current\x20user','findAll','includeAll','custom','UNIX_TIMESTAMP(%s)','length','countTable','where','rows','startDate','toString','AnalyticMetric','params','AnalyticExtractedReport','field','groupBy','Please\x20insert\x20at\x20least\x20one\x20field','api','body','../../files/reports','MetricId','include','sequelize','send','endDate','AVG(%s)','ROUND(%s)','COUNT(%s)','catch','HOUR(%s)','.calldate\x20BETWEEN\x20?\x20AND\x20?','intersection','Reports','status','autoAssociation','AnalyticCustomReport','SELECT','then','../../mysqldb','squel','foreignKey','filter','group','../../components/export/','runReport','IS\x20NOT\x20NULL','IS\x20EMPTY','fieldName','alias','keyBy','attributes','MAX(%s)','lodash','from','model','DATE(%s)','fork','replace','error','userProfileId','count','child_process','COUNT(DISTINCT\x20%s)','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','SUM(%s)','left_join','sendStatus','DESC','debug','MIN(%s)','parentKey','info','generate','IS\x20NULL','get','Run\x20Query:','select','right_join','Content-Range','destroy','UserProfileResource','pick','%s-%s.%s','metric','.createdAt\x20BETWEEN\x20?\x20AND\x20?','format','condition','table','run','like','set','No\x20available\x20data','sort','GROUP_CONCAT(%s)','includes','nolimit','randomstring','dbH','cdr','SEC_TO_TIME(%s)','show','user','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','type','operator','output','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','conditions','cross_join','%s.%s\x20=\x20%s.%s','parse','UserProfileSection','index','name','limit','rules','orderBy','QueryTypes','value'];(function(_0x3b3c25,_0x3a7fc6){const _0x2de8ff=function(_0x4b124d){while(--_0x4b124d){_0x3b3c25['push'](_0x3b3c25['shift']());}};_0x2de8ff(++_0x3a7fc6);}(a5_0x3a7f,0x165));const a5_0x2de8=function(_0x3b3c25,_0x3a7fc6){_0x3b3c25=_0x3b3c25-0x0;let _0x2de8ff=a5_0x3a7f[_0x3b3c25];return _0x2de8ff;};const _0x398131=a5_0x2de8;'use strict';const util=require('util'),path=require(_0x398131('0x65')),_=require(_0x398131('0x11')),squel=require(_0x398131('0x4')),qs=require('../../components/parsers/qs'),logger=require(_0x398131('0x64'))(_0x398131('0x81')),db=require(_0x398131('0x3'))['db'],dbH=require(_0x398131('0x3'))[_0x398131('0x3e')],{Op,ValidationErrorItem,QueryTypes}=require(_0x398131('0x86'));function respondWithResult(_0x4b124d,_0x118e32){return _0x118e32=_0x118e32||0xc8,function(_0x57855b){const _0x32d38a=a5_0x2de8;if(_0x57855b)return _0x4b124d[_0x32d38a('0x91')](_0x118e32)['json'](_0x57855b);};}function respondWithFilteredResult(_0x1701c9,_0x4500fd){return function(_0x1b436f){const _0x30ecb2=a5_0x2de8;if(_0x1b436f){const _0x1c0202=_0x1b436f['count'],_0x3730b1=_0x4500fd['offset'];let _0x48952e=_0x4500fd[_0x30ecb2('0x56')]+_0x4500fd['limit'],_0x128499;return _0x48952e>=_0x1c0202?(_0x48952e=_0x1c0202,_0x128499=0xc8):_0x128499=0xce,_0x1701c9[_0x30ecb2('0x91')](_0x128499),_0x1701c9[_0x30ecb2('0x37')](_0x30ecb2('0x2b'),_0x3730b1+'-'+_0x48952e+'/'+_0x1c0202)['json'](_0x1b436f);}return null;};}function saveUpdates(_0x420d6c){return function(_0x346521){const _0x10c2cb=a5_0x2de8;if(_0x346521)return _0x346521['update'](_0x420d6c)[_0x10c2cb('0x2')](function(_0x1c5ccb){return _0x1c5ccb;});return null;};}function removeEntity(_0x5999b0){return function(_0x3a03e6){const _0x4c0854=a5_0x2de8;if(_0x3a03e6)return _0x3a03e6[_0x4c0854('0x2c')]()[_0x4c0854('0x2')](function(){const _0x11c45a=_0x4c0854,_0x47e136=_0x3a03e6[_0x11c45a('0x27')]({'plain':!![]}),_0x3ef04c=_0x11c45a('0x59');return db[_0x11c45a('0x2d')][_0x11c45a('0x2c')]({'where':{'type':_0x3ef04c,'resourceId':_0x47e136['id']}})['then'](function(){return _0x3a03e6;});})[_0x4c0854('0x2')](function(){const _0x5d4653=_0x4c0854;_0x5999b0['status'](0xcc)[_0x5d4653('0x5a')]();});};}function handleEntityNotFound(_0x2bee79){return function(_0x51499e){const _0xec19f7=a5_0x2de8;return!_0x51499e&&_0x2bee79[_0xec19f7('0x1f')](0x194),_0x51499e;};}function handleError(_0x302986,_0x1ee2a2){return _0x1ee2a2=_0x1ee2a2||0x1f4,function(_0x1d6723){const _0x4de988=a5_0x2de8;logger[_0x4de988('0x17')](_0x1d6723[_0x4de988('0x69')]),_0x1d6723[_0x4de988('0x4e')]&&delete _0x1d6723['name'],_0x302986[_0x4de988('0x91')](_0x1ee2a2)[_0x4de988('0x87')](_0x1d6723);};}exports[_0x398131('0x4d')]=function(_0x43ca11,_0x42b2e4){const _0x3bc14c=_0x398131;let _0x434a39={};const _0x424542={},_0x4a7c69={'count':0x0,'rows':[]},_0x1d93f4=_['map'](db[_0x3bc14c('0x0')]['rawAttributes'],function(_0x4c2164){const _0xa1866d=_0x3bc14c;return{'name':_0x4c2164[_0xa1866d('0xc')],'type':_0x4c2164[_0xa1866d('0x44')]['key']};});_0x424542[_0x3bc14c('0x13')]=_[_0x3bc14c('0x6c')](_0x1d93f4,_0x3bc14c('0x4e')),_0x424542[_0x3bc14c('0x60')]=_[_0x3bc14c('0x62')](_0x43ca11[_0x3bc14c('0x60')]),_0x424542['filters']=_[_0x3bc14c('0x8f')](_0x424542['model'],_0x424542[_0x3bc14c('0x60')]),_0x434a39[_0x3bc14c('0xf')]=_[_0x3bc14c('0x8f')](_0x424542['model'],qs[_0x3bc14c('0x5f')](_0x43ca11[_0x3bc14c('0x60')][_0x3bc14c('0x5f')])),_0x434a39[_0x3bc14c('0xf')]=_0x434a39['attributes']['length']?_0x434a39[_0x3bc14c('0xf')]:_0x424542[_0x3bc14c('0x13')];typeof _0x43ca11[_0x3bc14c('0x60')][_0x3bc14c('0x3c')]==='undefined'&&(_0x434a39[_0x3bc14c('0x4f')]=qs['limit'](_0x43ca11[_0x3bc14c('0x60')]['limit']),_0x434a39[_0x3bc14c('0x56')]=qs[_0x3bc14c('0x56')](_0x43ca11[_0x3bc14c('0x60')]['offset']));_0x434a39['order']=qs[_0x3bc14c('0x39')](_0x43ca11[_0x3bc14c('0x60')]['sort']),_0x434a39[_0x3bc14c('0x77')]=qs['filters'](_[_0x3bc14c('0x2e')](_0x43ca11[_0x3bc14c('0x60')],_0x424542[_0x3bc14c('0x6e')]),_0x1d93f4);_0x43ca11['query'][_0x3bc14c('0x6')]&&(_0x434a39['where']=_[_0x3bc14c('0x54')](_0x434a39[_0x3bc14c('0x77')],{[Op['or']]:_[_0x3bc14c('0x6c')](_0x1d93f4,function(_0x40e8a2){const _0x16b3b6=_0x3bc14c;if(_0x40e8a2[_0x16b3b6('0x44')]!=='VIRTUAL'){const _0x3d0877={};return _0x3d0877[_0x40e8a2['name']]={[Op[_0x16b3b6('0x36')]]:'%'+_0x43ca11[_0x16b3b6('0x60')][_0x16b3b6('0x6')]+'%'},_0x3d0877;}})}));_0x434a39=_['merge']({},_0x434a39,_0x43ca11['options']);const _0x572882={'where':_0x434a39['where']};return db[_0x3bc14c('0x0')]['count'](_0x572882)[_0x3bc14c('0x2')](function(_0x224635){const _0x324c34=_0x3bc14c;return _0x4a7c69[_0x324c34('0x19')]=_0x224635,_0x43ca11[_0x324c34('0x60')]['includeAll']&&(_0x434a39[_0x324c34('0x85')]=[{'all':!![]}]),db[_0x324c34('0x0')][_0x324c34('0x71')](_0x434a39);})[_0x3bc14c('0x2')](function(_0x43ad92){const _0x3d665c=_0x3bc14c;return _0x4a7c69[_0x3d665c('0x78')]=_0x43ad92,_0x4a7c69;})[_0x3bc14c('0x2')](respondWithFilteredResult(_0x42b2e4,_0x434a39))[_0x3bc14c('0x8c')](handleError(_0x42b2e4,null));},exports[_0x398131('0x41')]=function(_0x201d94,_0x442410){const _0x31c092=_0x398131;let _0x1ef71e={'raw':![],'where':{'id':_0x201d94[_0x31c092('0x7c')]['id']}};const _0x4cb57b={};return _0x4cb57b['model']=_['keys'](db[_0x31c092('0x0')]['rawAttributes']),_0x4cb57b[_0x31c092('0x60')]=_[_0x31c092('0x62')](_0x201d94['query']),_0x4cb57b[_0x31c092('0x6e')]=_['intersection'](_0x4cb57b['model'],_0x4cb57b[_0x31c092('0x60')]),_0x1ef71e['attributes']=_[_0x31c092('0x8f')](_0x4cb57b[_0x31c092('0x13')],qs['fields'](_0x201d94[_0x31c092('0x60')][_0x31c092('0x5f')])),_0x1ef71e[_0x31c092('0xf')]=_0x1ef71e[_0x31c092('0xf')][_0x31c092('0x75')]?_0x1ef71e['attributes']:_0x4cb57b[_0x31c092('0x13')],_0x201d94[_0x31c092('0x60')][_0x31c092('0x72')]&&(_0x1ef71e[_0x31c092('0x85')]=[{'all':!![]}]),_0x1ef71e=_['merge']({},_0x1ef71e,_0x201d94[_0x31c092('0x5d')]),db['AnalyticCustomReport']['findOne'](_0x1ef71e)['then'](handleEntityNotFound(_0x442410,null))['then'](respondWithResult(_0x442410,null))['catch'](handleError(_0x442410,null));},exports[_0x398131('0x55')]=function(_0x39998a,_0x1713c2){const _0x1c488e=_0x398131;return db['AnalyticCustomReport'][_0x1c488e('0x55')](_0x39998a['body'],{})[_0x1c488e('0x2')](function(_0x257516){const _0x1c2aee=_0x1c488e,_0x319f12=_0x39998a[_0x1c2aee('0x42')]['get']({'plain':!![]});if(!_0x319f12)throw new Error(_0x1c2aee('0x70'));if(_0x319f12['role']===_0x1c2aee('0x42')){const _0x3f9577=_0x257516['get']({'plain':!![]}),_0x2756a8=_0x1c2aee('0x90');return db[_0x1c2aee('0x4c')][_0x1c2aee('0x58')]({'where':{'name':_0x2756a8,'userProfileId':_0x319f12[_0x1c2aee('0x18')]},'raw':!![]})[_0x1c2aee('0x2')](function(_0x33bf7b){const _0x327391=_0x1c2aee;return _0x33bf7b&&_0x33bf7b[_0x327391('0x92')]===0x0?db[_0x327391('0x2d')][_0x327391('0x55')]({'name':_0x3f9577[_0x327391('0x4e')],'resourceId':_0x3f9577['id'],'type':_0x327391('0x59'),'sectionId':_0x33bf7b['id']},{})[_0x327391('0x2')](function(){return _0x257516;}):_0x257516;})[_0x1c2aee('0x8c')](function(_0x42e446){const _0x288ff8=_0x1c2aee;logger['error'](_0x288ff8('0x1c'),_0x42e446);throw _0x42e446;});}return _0x257516;})[_0x1c488e('0x2')](respondWithResult(_0x1713c2,0xc9))[_0x1c488e('0x8c')](handleError(_0x1713c2,null));},exports['update']=function(_0x1c5e60,_0x4ed32d){const _0x1f8904=_0x398131;return _0x1c5e60['body']['id']&&delete _0x1c5e60[_0x1f8904('0x82')]['id'],db[_0x1f8904('0x0')][_0x1f8904('0x58')]({'where':{'id':_0x1c5e60[_0x1f8904('0x7c')]['id']}})[_0x1f8904('0x2')](handleEntityNotFound(_0x4ed32d,null))[_0x1f8904('0x2')](saveUpdates(_0x1c5e60[_0x1f8904('0x82')],null))[_0x1f8904('0x2')](respondWithResult(_0x4ed32d,null))[_0x1f8904('0x8c')](handleError(_0x4ed32d,null));},exports[_0x398131('0x2c')]=function(_0x48e368,_0x4dc664){const _0x251dea=_0x398131;return db[_0x251dea('0x0')][_0x251dea('0x58')]({'where':{'id':_0x48e368[_0x251dea('0x7c')]['id']}})['then'](handleEntityNotFound(_0x4dc664,null))[_0x251dea('0x2')](removeEntity(_0x4dc664,null))[_0x251dea('0x8c')](handleError(_0x4dc664,null));},exports['preview']=function(_0x551086,_0x2d2ae6){const _0x1206cf=_0x398131,_0x261866=0xa,_0x65891d=['join',_0x1206cf('0x1e'),_0x1206cf('0x2a'),_0x1206cf('0x49')],_0x27c8af={'SUM':_0x1206cf('0x1d'),'COUNT':'COUNT(%s)','COUNT\x20DISTINCT':_0x1206cf('0x1b'),'MAX':_0x1206cf('0x10'),'MIN':'MIN(%s)','AVG':_0x1206cf('0x89'),'GROUP_CONCAT':_0x1206cf('0x3a'),'GROUP_CONCAT\x20ASC':_0x1206cf('0x43'),'GROUP_CONCAT\x20DESC':_0x1206cf('0x47')},_0x38a99d={'SEC_TO_TIME':_0x1206cf('0x40'),'DATE':_0x1206cf('0x14'),'HOUR':'HOUR(%s)','ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x1206cf('0x74')},_0x21bc4c=function(_0x5e0960){const _0x48b850=_0x1206cf;return!_['includes'](['IS\x20NULL',_0x48b850('0xa'),_0x48b850('0xb'),_0x48b850('0x66')],_0x5e0960);},_0x3f1751=function(_0x328fbc){const _0x1bfdc7=_0x1206cf;if(!_0x328fbc||!_0x328fbc[_0x1bfdc7('0x50')][_0x1bfdc7('0x75')])return'';let _0x4bf9c6='(';for(let _0x4c5da1=0x0;_0x4c5da1<_0x328fbc[_0x1bfdc7('0x50')][_0x1bfdc7('0x75')];_0x4c5da1+=0x1){_0x4c5da1>0x0&&(_0x4bf9c6+='\x20'+_0x328fbc[_0x1bfdc7('0x45')]+'\x20'),_0x4bf9c6+=_0x328fbc[_0x1bfdc7('0x50')][_0x4c5da1][_0x1bfdc7('0x7')]?_0x3f1751(_0x328fbc['rules'][_0x4c5da1][_0x1bfdc7('0x7')]):_0x328fbc[_0x1bfdc7('0x50')][_0x4c5da1][_0x1bfdc7('0x7e')]+'\x20'+_0x328fbc[_0x1bfdc7('0x50')][_0x4c5da1][_0x1bfdc7('0x33')]+(_0x21bc4c(_0x328fbc[_0x1bfdc7('0x50')][_0x4c5da1][_0x1bfdc7('0x33')])?'\x20'+_0x328fbc['rules'][_0x4c5da1][_0x1bfdc7('0x53')]:'');}return _0x4bf9c6+')';};let _0x5b005e={'where':{'id':_0x551086[_0x1206cf('0x7c')]['id']}},_0x266391,_0x2d8eb7,_0x1dfee2;return _0x5b005e=_['merge']({},_0x5b005e,_0x551086[_0x1206cf('0x5d')]),db['AnalyticCustomReport'][_0x1206cf('0x58')](_0x5b005e)['then'](function(_0x256183){const _0x1cdb1a=_0x1206cf;if(_0x256183)return _0x266391=_0x256183,_0x256183[_0x1cdb1a('0x63')]();return null;})[_0x1206cf('0x2')](function(_0x71aebd){const _0x2dded3=_0x1206cf;if(_0x71aebd){if(!_0x71aebd['length'])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x2d8eb7=_0x71aebd,db[_0x2dded3('0x7b')][_0x2dded3('0x71')]({'raw':!![]});}return null;})[_0x1206cf('0x2')](function(_0x27f9a4){const _0xe36e65=_0x1206cf;if(_0x27f9a4){_0x1dfee2=_[_0xe36e65('0xe')](_0x27f9a4,'id');let _0x43051c;const _0x23c10b=squel[_0xe36e65('0x29')]();_0x23c10b[_0xe36e65('0x12')](_0x266391[_0xe36e65('0x34')]);for(let _0x10f9e9=0x0;_0x10f9e9<_0x2d8eb7[_0xe36e65('0x75')];_0x10f9e9+=0x1){_0x43051c=_0x2d8eb7[_0x10f9e9][_0xe36e65('0x84')]?_0x1dfee2[_0x2d8eb7[_0x10f9e9][_0xe36e65('0x84')]][_0xe36e65('0x30')]:_0x2d8eb7[_0x10f9e9]['field'],_0x43051c=_0x2d8eb7[_0x10f9e9][_0xe36e65('0x67')]?_[_0xe36e65('0x16')](_0x27c8af[_0x2d8eb7[_0x10f9e9]['function']],'%s',_0x43051c):_0x43051c,_0x43051c=_0x2d8eb7[_0x10f9e9][_0xe36e65('0x32')]?_[_0xe36e65('0x16')](_0x38a99d[_0x2d8eb7[_0x10f9e9][_0xe36e65('0x32')]],'%s',_0x43051c):_0x43051c,_0x2d8eb7[_0x10f9e9][_0xe36e65('0x7f')]&&_0x23c10b[_0xe36e65('0x7')](_0x43051c),_0x2d8eb7[_0x10f9e9][_0xe36e65('0x51')]&&_0x23c10b[_0xe36e65('0x61')](_0x43051c,_0x2d8eb7[_0x10f9e9][_0xe36e65('0x51')]===_0xe36e65('0x20')?![]:!![]),_0x23c10b[_0xe36e65('0x7e')](_0x43051c,_0x2d8eb7[_0x10f9e9][_0xe36e65('0xd')]||_0x43051c);}if(_0x266391['joins']){_0x266391[_0xe36e65('0x6f')]=JSON['parse'](_0x266391[_0xe36e65('0x6f')]);for(let _0x4f6ad1=0x0;_0x4f6ad1<_0x266391['joins'][_0xe36e65('0x75')];_0x4f6ad1+=0x1){_0x266391[_0xe36e65('0x6f')][_0x4f6ad1][_0xe36e65('0x44')]&&_[_0xe36e65('0x3b')](_0x65891d,_0x266391[_0xe36e65('0x6f')][_0x4f6ad1][_0xe36e65('0x44')])&&_0x266391['joins'][_0x4f6ad1][_0xe36e65('0x23')]&&_0x266391[_0xe36e65('0x6f')][_0x4f6ad1][_0xe36e65('0x5c')]&&_0x266391[_0xe36e65('0x6f')][_0x4f6ad1][_0xe36e65('0x5')]&&_0x23c10b[_0x266391['joins'][_0x4f6ad1][_0xe36e65('0x44')]](_0x266391[_0xe36e65('0x6f')][_0x4f6ad1][_0xe36e65('0x5c')],null,util[_0xe36e65('0x32')]('%s.%s\x20=\x20%s.%s',_0x266391[_0xe36e65('0x34')],_0x266391[_0xe36e65('0x6f')][_0x4f6ad1]['parentKey'],_0x266391['joins'][_0x4f6ad1][_0xe36e65('0x5c')],_0x266391[_0xe36e65('0x6f')][_0x4f6ad1][_0xe36e65('0x5')]));}}return _0x266391['conditions']&&(_0x266391[_0xe36e65('0x48')]=JSON[_0xe36e65('0x4b')](_0x266391['conditions']),_0x23c10b[_0xe36e65('0x77')](_0x3f1751(_0x266391[_0xe36e65('0x48')][_0xe36e65('0x7')]))),_0x23c10b[_0xe36e65('0x4f')](_0x261866),_0x23c10b['offset'](0x0),logger[_0xe36e65('0x21')](_0xe36e65('0x5b'),_0x23c10b[_0xe36e65('0x7a')]()),db[_0xe36e65('0x86')][_0xe36e65('0x60')](_0x23c10b[_0xe36e65('0x7a')](),{'type':QueryTypes['SELECT']});}})[_0x1206cf('0x2')](respondWithResult(_0x2d2ae6,null))[_0x1206cf('0x8c')](handleError(_0x2d2ae6,null));};function runReport(_0x40cc30,_0x29bcae,_0x42f7bc){const _0x4899fb=_0x398131,_0x56c4ac=_0x29bcae['name'],_0x25c479=0xa,_0x40bb7f=[_0x4899fb('0x6a'),_0x4899fb('0x1e'),_0x4899fb('0x2a'),_0x4899fb('0x49')],_0x42960d={'SUM':_0x4899fb('0x1d'),'COUNT':_0x4899fb('0x8b'),'COUNT\x20DISTINCT':_0x4899fb('0x1b'),'MAX':_0x4899fb('0x10'),'MIN':_0x4899fb('0x22'),'AVG':_0x4899fb('0x89'),'GROUP_CONCAT':_0x4899fb('0x3a'),'GROUP_CONCAT\x20ASC':_0x4899fb('0x43'),'GROUP_CONCAT\x20DESC':_0x4899fb('0x47')},_0x860d44={'SEC_TO_TIME':_0x4899fb('0x40'),'DATE':_0x4899fb('0x14'),'HOUR':'HOUR(%s)','ROUND':'ROUND(%s)','UNIX_TIMESTAMP':_0x4899fb('0x74')},_0x4e08d3=function(_0x165b01){const _0x47bf0b=_0x4899fb;return!_[_0x47bf0b('0x3b')]([_0x47bf0b('0x26'),_0x47bf0b('0xa'),'IS\x20EMPTY','IS\x20NOT\x20EMPTY'],_0x165b01);},_0x10aaa7=function(_0xb7ef8){const _0x6d15f=_0x4899fb;if(!_0xb7ef8||!_0xb7ef8[_0x6d15f('0x50')][_0x6d15f('0x75')])return'';let _0x46db47='(';for(let _0x562e43=0x0;_0x562e43<_0xb7ef8[_0x6d15f('0x50')][_0x6d15f('0x75')];_0x562e43+=0x1){_0x562e43>0x0&&(_0x46db47+='\x20'+_0xb7ef8[_0x6d15f('0x45')]+'\x20'),_0x46db47+=_0xb7ef8[_0x6d15f('0x50')][_0x562e43]['group']?_0x10aaa7(_0xb7ef8[_0x6d15f('0x50')][_0x562e43][_0x6d15f('0x7')]):_0xb7ef8[_0x6d15f('0x50')][_0x562e43][_0x6d15f('0x7e')]+'\x20'+_0xb7ef8[_0x6d15f('0x50')][_0x562e43][_0x6d15f('0x33')]+(_0x4e08d3(_0xb7ef8[_0x6d15f('0x50')][_0x562e43][_0x6d15f('0x33')])?'\x20'+_0xb7ef8[_0x6d15f('0x50')][_0x562e43]['value']:'');}return _0x46db47+')';};let _0x1fc5e3={'where':{'id':_0x40cc30['id']}},_0x1084d5,_0x6f808c,_0x481d4e,_0x2e822b,_0x437f19;return _0x1fc5e3=_[_0x4899fb('0x54')]({},_0x1fc5e3,_0x42f7bc),db['AnalyticCustomReport'][_0x4899fb('0x58')](_0x1fc5e3)[_0x4899fb('0x2')](function(_0x11f2f4){const _0x2e1e08=_0x4899fb;if(_0x11f2f4)return _0x1084d5=_0x11f2f4,_0x11f2f4[_0x2e1e08('0x63')]();return null;})[_0x4899fb('0x2')](function(_0xb43480){const _0x2ad8a8=_0x4899fb;if(_0xb43480){if(!_0xb43480[_0x2ad8a8('0x75')])throw new ValidationErrorItem(_0x2ad8a8('0x80'),0x193);return _0x6f808c=_0xb43480,db[_0x2ad8a8('0x7b')][_0x2ad8a8('0x71')]({'raw':!![]});}return null;})['then'](function(_0x21eaff){const _0x3a8fdb=_0x4899fb;if(_0x21eaff){_0x481d4e=_['keyBy'](_0x21eaff,'id');let _0x3b2ca3;const _0x2dc6c7=squel[_0x3a8fdb('0x29')]();_0x2dc6c7[_0x3a8fdb('0x12')](_0x1084d5['table']);for(let _0x2e584b=0x0;_0x2e584b<_0x6f808c[_0x3a8fdb('0x75')];_0x2e584b+=0x1){_0x3b2ca3=_0x6f808c[_0x2e584b][_0x3a8fdb('0x84')]?_0x481d4e[_0x6f808c[_0x2e584b]['MetricId']][_0x3a8fdb('0x30')]:_0x6f808c[_0x2e584b][_0x3a8fdb('0x7e')],_0x3b2ca3=_0x6f808c[_0x2e584b][_0x3a8fdb('0x67')]?_[_0x3a8fdb('0x16')](_0x42960d[_0x6f808c[_0x2e584b][_0x3a8fdb('0x67')]],'%s',_0x3b2ca3):_0x3b2ca3,_0x3b2ca3=_0x6f808c[_0x2e584b]['format']?_[_0x3a8fdb('0x16')](_0x860d44[_0x6f808c[_0x2e584b][_0x3a8fdb('0x32')]],'%s',_0x3b2ca3):_0x3b2ca3,_0x6f808c[_0x2e584b][_0x3a8fdb('0x7f')]&&_0x2dc6c7['group'](_0x3b2ca3),_0x6f808c[_0x2e584b][_0x3a8fdb('0x51')]&&_0x2dc6c7[_0x3a8fdb('0x61')](_0x3b2ca3,_0x6f808c[_0x2e584b]['orderBy']===_0x3a8fdb('0x20')?![]:!![]),_0x2dc6c7[_0x3a8fdb('0x7e')](_0x3b2ca3,_0x6f808c[_0x2e584b][_0x3a8fdb('0xd')]||_0x3b2ca3);}if(_0x1084d5[_0x3a8fdb('0x6f')]){_0x1084d5[_0x3a8fdb('0x6f')]=JSON[_0x3a8fdb('0x4b')](_0x1084d5[_0x3a8fdb('0x6f')]);for(let _0x35cd3b=0x0;_0x35cd3b<_0x1084d5['joins'][_0x3a8fdb('0x75')];_0x35cd3b+=0x1){_0x1084d5[_0x3a8fdb('0x6f')][_0x35cd3b][_0x3a8fdb('0x44')]&&_[_0x3a8fdb('0x3b')](_0x40bb7f,_0x1084d5[_0x3a8fdb('0x6f')][_0x35cd3b][_0x3a8fdb('0x44')])&&_0x1084d5[_0x3a8fdb('0x6f')][_0x35cd3b]['parentKey']&&_0x1084d5[_0x3a8fdb('0x6f')][_0x35cd3b][_0x3a8fdb('0x5c')]&&_0x1084d5['joins'][_0x35cd3b][_0x3a8fdb('0x5')]&&_0x2dc6c7[_0x1084d5['joins'][_0x35cd3b][_0x3a8fdb('0x44')]](_0x1084d5['joins'][_0x35cd3b]['foreignTable'],null,util[_0x3a8fdb('0x32')](_0x3a8fdb('0x4a'),_0x1084d5[_0x3a8fdb('0x34')],_0x1084d5['joins'][_0x35cd3b][_0x3a8fdb('0x23')],_0x1084d5[_0x3a8fdb('0x6f')][_0x35cd3b][_0x3a8fdb('0x5c')],_0x1084d5[_0x3a8fdb('0x6f')][_0x35cd3b][_0x3a8fdb('0x5')]));}}return _0x1084d5[_0x3a8fdb('0x48')]&&(_0x1084d5[_0x3a8fdb('0x48')]=JSON[_0x3a8fdb('0x4b')](_0x1084d5[_0x3a8fdb('0x48')]),_0x2dc6c7[_0x3a8fdb('0x77')](_0x10aaa7(_0x1084d5[_0x3a8fdb('0x48')][_0x3a8fdb('0x7')]))),_0x437f19=_0x2dc6c7[_0x3a8fdb('0x68')](),_0x2dc6c7[_0x3a8fdb('0x4f')](_0x25c479),_0x2dc6c7[_0x3a8fdb('0x56')](0x0),logger[_0x3a8fdb('0x21')](_0x3a8fdb('0x5b'),_0x2dc6c7['toString']()),db['sequelize'][_0x3a8fdb('0x60')](_0x2dc6c7[_0x3a8fdb('0x7a')](),{'type':QueryTypes['SELECT']});}})[_0x4899fb('0x2')](function(_0x138ba8){const _0x153e5a=_0x4899fb;if(!_0x138ba8[_0x153e5a('0x75')])throw new ValidationErrorItem(_0x153e5a('0x38'),0xcc);if(_0x29bcae[_0x153e5a('0x46')]===_0x153e5a('0x6d'))return null;const _0x4873f1=_[_0x153e5a('0x54')](_0x29bcae,{'name':_0x29bcae[_0x153e5a('0x6b')]||_0x29bcae[_0x153e5a('0x4e')]||_0x1084d5[_0x153e5a('0x4e')],'basename':_0x56c4ac,'savename':util['format'](_0x153e5a('0x2f'),_0x29bcae[_0x153e5a('0x4e')]||_0x1084d5[_0x153e5a('0x4e')],require(_0x153e5a('0x3d'))[_0x153e5a('0x25')](0x4),_0x29bcae['output']||'csv'),'reportId':_0x1084d5['id'],'reportType':_0x153e5a('0x73')});return db[_0x153e5a('0x7d')][_0x153e5a('0x55')](_0x4873f1,{'raw':!![]});})['then'](function(_0x4f4be1){const _0x4b0888=_0x4899fb;_0x1084d5[_0x4b0888('0x34')]===_0x4b0888('0x3f')?_0x437f19[_0x4b0888('0x77')](_0x1084d5['table']+_0x4b0888('0x8e'),_0x29bcae[_0x4b0888('0x79')],_0x29bcae[_0x4b0888('0x88')]):_0x437f19[_0x4b0888('0x77')](_0x1084d5[_0x4b0888('0x34')]+_0x4b0888('0x31'),_0x29bcae[_0x4b0888('0x79')],_0x29bcae[_0x4b0888('0x88')]);if(_0x4f4be1)return logger[_0x4b0888('0x24')](_0x4b0888('0x28'),_0x437f19[_0x4b0888('0x7a')]()),require(_0x4b0888('0x1a'))[_0x4b0888('0x15')](path['join'](__dirname,_0x4b0888('0x8'),_0x4f4be1[_0x4b0888('0x46')]),[_0x4f4be1['id'],_0x437f19[_0x4b0888('0x7a')](),path[_0x4b0888('0x6a')](__dirname,_0x4b0888('0x83'),_0x4f4be1[_0x4b0888('0x57')]),_0x56c4ac]),_0x4f4be1;else{const _0x37aaec=squel[_0x4b0888('0x29')]();return _0x37aaec[_0x4b0888('0x12')]('('+_0x437f19['toString']()+')',_0x4b0888('0x76')),_0x37aaec[_0x4b0888('0x7e')](_0x4b0888('0x5e'),_0x4b0888('0x19')),_0x437f19[_0x4b0888('0x4f')](_0x29bcae['limit']||_0x25c479),_0x437f19[_0x4b0888('0x56')](_0x29bcae[_0x4b0888('0x56')]||0x0),dbH[_0x4b0888('0x86')][_0x4b0888('0x60')](_0x37aaec['toString'](),{'type':dbH[_0x4b0888('0x86')][_0x4b0888('0x52')][_0x4b0888('0x1')]})[_0x4b0888('0x2')](function(_0x57c474){const _0x79a83b=_0x4b0888;return!_0x57c474['length']?_0x2e822b=0x0:_0x2e822b=_0x57c474[0x0][_0x79a83b('0x19')]||0x0,dbH[_0x79a83b('0x86')][_0x79a83b('0x60')](_0x437f19[_0x79a83b('0x7a')](),{'type':dbH[_0x79a83b('0x86')][_0x79a83b('0x52')][_0x79a83b('0x1')]});})[_0x4b0888('0x2')](function(_0x3627c7){return{'rows':_0x3627c7||[],'count':_0x2e822b};});}});}exports[_0x398131('0x35')]=function(_0x403438,_0x37f545){const _0x5c5bd2=_0x398131;return runReport(_0x403438[_0x5c5bd2('0x7c')],_0x403438[_0x5c5bd2('0x60')],_0x403438[_0x5c5bd2('0x5d')])[_0x5c5bd2('0x2')](respondWithResult(_0x37f545,null))[_0x5c5bd2('0x8c')](handleError(_0x37f545,null));},exports[_0x398131('0x9')]=runReport,exports['query']=function(_0x2564d1,_0x4ae095){const _0x502168=_0x398131,_0xb43b7a=0xa,_0x194ffb=[_0x502168('0x6a'),_0x502168('0x1e'),_0x502168('0x2a'),'cross_join'],_0x4ccbed={'SUM':'SUM(%s)','COUNT':'COUNT(%s)','COUNT\x20DISTINCT':_0x502168('0x1b'),'MAX':'MAX(%s)','MIN':_0x502168('0x22'),'AVG':_0x502168('0x89'),'GROUP_CONCAT':_0x502168('0x3a'),'GROUP_CONCAT\x20ASC':_0x502168('0x43'),'GROUP_CONCAT\x20DESC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)'},_0x530803={'SEC_TO_TIME':_0x502168('0x40'),'DATE':'DATE(%s)','HOUR':_0x502168('0x8d'),'ROUND':_0x502168('0x8a'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0xe95398=function(_0x1901f5){const _0x5ee77b=_0x502168;return!_[_0x5ee77b('0x3b')]([_0x5ee77b('0x26'),_0x5ee77b('0xa'),_0x5ee77b('0xb'),'IS\x20NOT\x20EMPTY'],_0x1901f5);},_0x555ac5=function(_0x2b2c53){const _0x36d3a5=_0x502168;if(!_0x2b2c53||!_0x2b2c53[_0x36d3a5('0x50')][_0x36d3a5('0x75')])return'';let _0x33df2b='(';for(let _0x608de1=0x0;_0x608de1<_0x2b2c53[_0x36d3a5('0x50')][_0x36d3a5('0x75')];_0x608de1+=0x1){_0x608de1>0x0&&(_0x33df2b+='\x20'+_0x2b2c53[_0x36d3a5('0x45')]+'\x20'),_0x33df2b+=_0x2b2c53[_0x36d3a5('0x50')][_0x608de1][_0x36d3a5('0x7')]?_0x555ac5(_0x2b2c53[_0x36d3a5('0x50')][_0x608de1][_0x36d3a5('0x7')]):_0x2b2c53[_0x36d3a5('0x50')][_0x608de1][_0x36d3a5('0x7e')]+'\x20'+_0x2b2c53[_0x36d3a5('0x50')][_0x608de1][_0x36d3a5('0x33')]+(_0xe95398(_0x2b2c53['rules'][_0x608de1][_0x36d3a5('0x33')])?'\x20'+_0x2b2c53[_0x36d3a5('0x50')][_0x608de1][_0x36d3a5('0x53')]:'');}return _0x33df2b+')';};let _0xa7f69b={'where':{'id':_0x2564d1[_0x502168('0x7c')]['id']}},_0x4afa24,_0x40df34,_0x37ab3c,_0x474f4e;return _0xa7f69b=_[_0x502168('0x54')]({},_0xa7f69b,_0x2564d1['options']),db['AnalyticCustomReport'][_0x502168('0x58')](_0xa7f69b)[_0x502168('0x2')](function(_0x660f3b){if(_0x660f3b)return _0x4afa24=_0x660f3b,_0x660f3b['getFields']();return null;})['then'](function(_0x1a848c){const _0x39a7a0=_0x502168;if(_0x1a848c){if(!_0x1a848c[_0x39a7a0('0x75')])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x40df34=_0x1a848c,db[_0x39a7a0('0x7b')][_0x39a7a0('0x71')]({'raw':!![]});}return null;})['then'](function(_0x36fefd){const _0x3bee23=_0x502168;if(_0x36fefd){_0x37ab3c=_['keyBy'](_0x36fefd,'id');let _0x43e5de;const _0x20a9b1=squel[_0x3bee23('0x29')]();_0x20a9b1['from'](_0x4afa24[_0x3bee23('0x34')]);for(let _0x483bbf=0x0;_0x483bbf<_0x40df34['length'];_0x483bbf+=0x1){_0x43e5de=_0x40df34[_0x483bbf][_0x3bee23('0x84')]?_0x37ab3c[_0x40df34[_0x483bbf]['MetricId']][_0x3bee23('0x30')]:_0x40df34[_0x483bbf][_0x3bee23('0x7e')],_0x43e5de=_0x40df34[_0x483bbf][_0x3bee23('0x67')]?_[_0x3bee23('0x16')](_0x4ccbed[_0x40df34[_0x483bbf][_0x3bee23('0x67')]],'%s',_0x43e5de):_0x43e5de,_0x43e5de=_0x40df34[_0x483bbf][_0x3bee23('0x32')]?_[_0x3bee23('0x16')](_0x530803[_0x40df34[_0x483bbf][_0x3bee23('0x32')]],'%s',_0x43e5de):_0x43e5de,_0x40df34[_0x483bbf][_0x3bee23('0x7f')]&&_0x20a9b1[_0x3bee23('0x7')](_0x43e5de),_0x40df34[_0x483bbf][_0x3bee23('0x51')]&&_0x20a9b1[_0x3bee23('0x61')](_0x43e5de,_0x40df34[_0x483bbf]['orderBy']==='DESC'?![]:!![]),_0x20a9b1[_0x3bee23('0x7e')](_0x43e5de,_0x40df34[_0x483bbf]['alias']||_0x43e5de);}if(_0x4afa24[_0x3bee23('0x6f')]){_0x4afa24[_0x3bee23('0x6f')]=JSON['parse'](_0x4afa24[_0x3bee23('0x6f')]);for(let _0x197837=0x0;_0x197837<_0x4afa24[_0x3bee23('0x6f')][_0x3bee23('0x75')];_0x197837+=0x1){_0x4afa24[_0x3bee23('0x6f')][_0x197837][_0x3bee23('0x44')]&&_[_0x3bee23('0x3b')](_0x194ffb,_0x4afa24[_0x3bee23('0x6f')][_0x197837][_0x3bee23('0x44')])&&_0x4afa24[_0x3bee23('0x6f')][_0x197837][_0x3bee23('0x23')]&&_0x4afa24[_0x3bee23('0x6f')][_0x197837]['foreignTable']&&_0x4afa24[_0x3bee23('0x6f')][_0x197837][_0x3bee23('0x5')]&&_0x20a9b1[_0x4afa24[_0x3bee23('0x6f')][_0x197837][_0x3bee23('0x44')]](_0x4afa24['joins'][_0x197837][_0x3bee23('0x5c')],null,util[_0x3bee23('0x32')](_0x3bee23('0x4a'),_0x4afa24['table'],_0x4afa24[_0x3bee23('0x6f')][_0x197837][_0x3bee23('0x23')],_0x4afa24[_0x3bee23('0x6f')][_0x197837][_0x3bee23('0x5c')],_0x4afa24[_0x3bee23('0x6f')][_0x197837][_0x3bee23('0x5')]));}}return _0x4afa24[_0x3bee23('0x48')]&&(_0x4afa24[_0x3bee23('0x48')]=JSON[_0x3bee23('0x4b')](_0x4afa24[_0x3bee23('0x48')]),_0x20a9b1['where'](_0x555ac5(_0x4afa24[_0x3bee23('0x48')][_0x3bee23('0x7')]))),_0x474f4e=_0x20a9b1['clone'](),_0x20a9b1[_0x3bee23('0x4f')](_0xb43b7a),_0x20a9b1['offset'](0x0),logger[_0x3bee23('0x21')](_0x3bee23('0x5b'),_0x20a9b1[_0x3bee23('0x7a')]()),db[_0x3bee23('0x86')][_0x3bee23('0x60')](_0x20a9b1['toString'](),{'type':QueryTypes[_0x3bee23('0x1')]});}})['then'](function(){const _0x42fd3b=_0x502168;return{'sql':_0x474f4e[_0x42fd3b('0x7a')]()};})[_0x502168('0x2')](respondWithResult(_0x4ae095,null))[_0x502168('0x8c')](handleError(_0x4ae095,null));}; \ No newline at end of file diff --git a/server/api/analyticCustomReport/analyticCustomReport.model.js b/server/api/analyticCustomReport/analyticCustomReport.model.js index 5e7e255..c54b8ab 100644 --- a/server/api/analyticCustomReport/analyticCustomReport.model.js +++ b/server/api/analyticCustomReport/analyticCustomReport.model.js @@ -1 +1 @@ -const a6_0x590b=['define','AnalyticCustomReport','./analyticCustomReport.attributes','exports'];(function(_0x2bd4e8,_0x590b84){const _0x4f134a=function(_0x1c8cd6){while(--_0x1c8cd6){_0x2bd4e8['push'](_0x2bd4e8['shift']());}};_0x4f134a(++_0x590b84);}(a6_0x590b,0x16f));const a6_0x4f13=function(_0x2bd4e8,_0x590b84){_0x2bd4e8=_0x2bd4e8-0x0;let _0x4f134a=a6_0x590b[_0x2bd4e8];return _0x4f134a;};const _0x3df473=a6_0x4f13;'use strict';const attributes=require(_0x3df473('0x3'));module[_0x3df473('0x0')]=function(_0x1c8cd6){const _0x483723=_0x3df473,_0x80567a=_0x1c8cd6[_0x483723('0x1')](_0x483723('0x2'),attributes,{'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]});return _0x80567a;}; \ No newline at end of file +const a6_0x1e64=['define','AnalyticCustomReport','./analyticCustomReport.attributes'];(function(_0x1c4874,_0x1e6473){const _0x2f04dc=function(_0x53463e){while(--_0x53463e){_0x1c4874['push'](_0x1c4874['shift']());}};_0x2f04dc(++_0x1e6473);}(a6_0x1e64,0x119));const a6_0x2f04=function(_0x1c4874,_0x1e6473){_0x1c4874=_0x1c4874-0x0;let _0x2f04dc=a6_0x1e64[_0x1c4874];return _0x2f04dc;};const _0xf7e3e4=a6_0x2f04;'use strict';const attributes=require(_0xf7e3e4('0x0'));module['exports']=function(_0x53463e){const _0x10f705=_0xf7e3e4,_0x3aeb39=_0x53463e[_0x10f705('0x1')](_0x10f705('0x2'),attributes,{'tableName':'analytics_custom_reports','paranoid':!![],'indexes':[],'timestamps':!![]});return _0x3aeb39;}; \ No newline at end of file diff --git a/server/api/analyticCustomReport/index.js b/server/api/analyticCustomReport/index.js index cc42e8e..7a2182b 100644 --- a/server/api/analyticCustomReport/index.js +++ b/server/api/analyticCustomReport/index.js @@ -1 +1 @@ -const a7_0x4d05=['put','delete','update','isAuthenticated','post','/:id/query','run','/:id/run','/:id/preview','get','index','./analyticCustomReport.controller','express','Router','show','/:id'];(function(_0x272514,_0x4d0581){const _0x3fcd17=function(_0x1f36f5){while(--_0x1f36f5){_0x272514['push'](_0x272514['shift']());}};_0x3fcd17(++_0x4d0581);}(a7_0x4d05,0xef));const a7_0x3fcd=function(_0x272514,_0x4d0581){_0x272514=_0x272514-0x0;let _0x3fcd17=a7_0x4d05[_0x272514];return _0x3fcd17;};const _0xa91d27=a7_0x3fcd;'use strict';const express=require(_0xa91d27('0xd')),router=express[_0xa91d27('0xe')](),auth=require('../../components/auth/service'),controller=require(_0xa91d27('0xc'));router['get']('/',auth['isAuthenticated'](),controller[_0xa91d27('0xb')]),router[_0xa91d27('0xa')](_0xa91d27('0x0'),auth[_0xa91d27('0x4')](),controller[_0xa91d27('0xf')]),router[_0xa91d27('0xa')](_0xa91d27('0x9'),auth[_0xa91d27('0x4')](),controller['preview']),router[_0xa91d27('0xa')](_0xa91d27('0x8'),auth[_0xa91d27('0x4')](),controller[_0xa91d27('0x7')]),router[_0xa91d27('0xa')](_0xa91d27('0x6'),auth['isAuthenticated'](),controller['query']),router[_0xa91d27('0x5')]('/',auth[_0xa91d27('0x4')](),controller['create']),router[_0xa91d27('0x1')](_0xa91d27('0x0'),auth[_0xa91d27('0x4')](),controller[_0xa91d27('0x3')]),router[_0xa91d27('0x2')]('/:id',auth[_0xa91d27('0x4')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a7_0x2d14=['query','../../components/auth/service','./analyticCustomReport.controller','/:id','delete','exports','index','express','get','Router','isAuthenticated','create','post','destroy','update'];(function(_0x40177b,_0x2d1479){const _0x3fe782=function(_0x448b88){while(--_0x448b88){_0x40177b['push'](_0x40177b['shift']());}};_0x3fe782(++_0x2d1479);}(a7_0x2d14,0xa8));const a7_0x3fe7=function(_0x40177b,_0x2d1479){_0x40177b=_0x40177b-0x0;let _0x3fe782=a7_0x2d14[_0x40177b];return _0x3fe782;};const _0x1b267a=a7_0x3fe7;'use strict';const express=require(_0x1b267a('0x4')),router=express[_0x1b267a('0x6')](),auth=require(_0x1b267a('0xd')),controller=require(_0x1b267a('0xe'));router[_0x1b267a('0x5')]('/',auth['isAuthenticated'](),controller[_0x1b267a('0x3')]),router[_0x1b267a('0x5')](_0x1b267a('0x0'),auth[_0x1b267a('0x7')](),controller['show']),router[_0x1b267a('0x5')]('/:id/preview',auth[_0x1b267a('0x7')](),controller['preview']),router[_0x1b267a('0x5')]('/:id/run',auth[_0x1b267a('0x7')](),controller['run']),router[_0x1b267a('0x5')]('/:id/query',auth[_0x1b267a('0x7')](),controller[_0x1b267a('0xc')]),router[_0x1b267a('0x9')]('/',auth[_0x1b267a('0x7')](),controller[_0x1b267a('0x8')]),router['put'](_0x1b267a('0x0'),auth['isAuthenticated'](),controller[_0x1b267a('0xb')]),router[_0x1b267a('0x1')](_0x1b267a('0x0'),auth[_0x1b267a('0x7')](),controller[_0x1b267a('0xa')]),module[_0x1b267a('0x2')]=router; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js index 9cd19d0..d5c03cb 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.attributes.js @@ -1 +1 @@ -const a8_0x1c80=['exports','TEXT','STRING'];(function(_0x14a7c4,_0x1c80e6){const _0xe82a65=function(_0x544b91){while(--_0x544b91){_0x14a7c4['push'](_0x14a7c4['shift']());}};_0xe82a65(++_0x1c80e6);}(a8_0x1c80,0xcd));const a8_0xe82a=function(_0x14a7c4,_0x1c80e6){_0x14a7c4=_0x14a7c4-0x0;let _0xe82a65=a8_0x1c80[_0x14a7c4];return _0xe82a65;};const _0x5af076=a8_0xe82a;'use strict';const Sequelize=require('sequelize');module[_0x5af076('0x2')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x5af076('0x1')]},'parent':{'type':Sequelize[_0x5af076('0x1')]},'table':{'type':Sequelize[_0x5af076('0x1')]},'conditions':{'type':Sequelize['TEXT']},'joins':{'type':Sequelize[_0x5af076('0x0')]}}; \ No newline at end of file +const a8_0x4a51=['exports','STRING','TEXT','sequelize'];(function(_0x5a0331,_0x4a5126){const _0xee0a0d=function(_0x114408){while(--_0x114408){_0x5a0331['push'](_0x5a0331['shift']());}};_0xee0a0d(++_0x4a5126);}(a8_0x4a51,0x77));const a8_0xee0a=function(_0x5a0331,_0x4a5126){_0x5a0331=_0x5a0331-0x0;let _0xee0a0d=a8_0x4a51[_0x5a0331];return _0xee0a0d;};const _0x31cf11=a8_0xee0a;'use strict';const Sequelize=require(_0x31cf11('0x0'));module[_0x31cf11('0x1')]={'name':{'type':Sequelize[_0x31cf11('0x2')],'allowNull':![]},'description':{'type':Sequelize[_0x31cf11('0x2')]},'parent':{'type':Sequelize[_0x31cf11('0x2')]},'table':{'type':Sequelize[_0x31cf11('0x2')]},'conditions':{'type':Sequelize[_0x31cf11('0x3')]},'joins':{'type':Sequelize[_0x31cf11('0x3')]}}; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js index 6db9801..2d0fb6c 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.controller.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.controller.js @@ -1 +1 @@ -const a9_0x228b=['../../components/parsers/qs','alias','AVG(%s)','orderBy','IS\x20NOT\x20EMPTY','SELECT','%s.%s\x20=\x20%s.%s','MetricId','replace','AnalyticMetric','Unable\x20to\x20retrieve\x20the\x20current\x20user','getFields','limit','type','length','parse','fields','status','IS\x20NOT\x20NULL','fork','AnalyticDefaultReport','fullPath','findAll','SUM(%s)','error','key','create','Content-Range','join','Please\x20insert\x20at\x20least\x20one\x20field','select','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','attributes','endDate','conditions','%s-%s.%s','sequelize','options','includes','AnalyticExtractedReport','squel','intersection','GROUP_CONCAT(%s)','No\x20available\x20data','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','savename','params','model','generate','keys','query','where','foreignTable','like','rawAttributes','name','autoAssociation','left_join','child_process','DefaultReports','UserProfileSection','stack','userProfileId','cdr','rules','debug','destroy','UserProfileResource','output','../../config/logger','VIRTUAL','Run\x20Query:','catch','fieldName','merge','value','offset','get','table','../../components/export/','COUNT(%s)','function','sendStatus','UNIX_TIMESTAMP(%s)','ROUND(%s)','then','user','web','COUNT(*)','findOne','IS\x20NULL','metric','parentKey','sort','map','groupBy','right_join','end','startDate','count','HOUR(%s)','from','order','json','operator','filters','path','send','update','util','info','group','index','MIN(%s)','QueryTypes','cross_join','toString','clone','filter','condition','dbH','field','COUNT(DISTINCT\x20%s)','IS\x20EMPTY','joins','Reports','body','MAX(%s)','../../mysqldb','foreignKey','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','format','keyBy','api','undefined','Limited\x20Query:','rows','DESC','.createdAt\x20BETWEEN\x20?\x20AND\x20?','lodash','csv'];(function(_0x3448ed,_0x228b6b){const _0xf5b497=function(_0x138795){while(--_0x138795){_0x3448ed['push'](_0x3448ed['shift']());}};_0xf5b497(++_0x228b6b);}(a9_0x228b,0xb5));const a9_0xf5b4=function(_0x3448ed,_0x228b6b){_0x3448ed=_0x3448ed-0x0;let _0xf5b497=a9_0x228b[_0x3448ed];return _0xf5b497;};const _0x1e1892=a9_0xf5b4;'use strict';const util=require(_0x1e1892('0x45')),path=require(_0x1e1892('0x42')),_=require(_0x1e1892('0x63')),squel=require(_0x1e1892('0x0')),qs=require(_0x1e1892('0x65')),logger=require(_0x1e1892('0x1d'))(_0x1e1892('0x5d')),db=require(_0x1e1892('0x58'))['db'],dbH=require(_0x1e1892('0x58'))[_0x1e1892('0x50')],{Op,ValidationErrorItem,QueryTypes}=require('sequelize');function respondWithResult(_0x138795,_0x3b26fa){return _0x3b26fa=_0x3b26fa||0xc8,function(_0x4e99ef){const _0x50780a=a9_0xf5b4;if(_0x4e99ef)return _0x138795[_0x50780a('0x76')](_0x3b26fa)[_0x50780a('0x3f')](_0x4e99ef);};}function respondWithFilteredResult(_0x213765,_0x3cb28d){return function(_0x218316){const _0x4c4eca=a9_0xf5b4;if(_0x218316){const _0x2f2460=_0x218316['count'],_0x2fb236=_0x3cb28d[_0x4c4eca('0x24')];let _0x52e88b=_0x3cb28d[_0x4c4eca('0x24')]+_0x3cb28d[_0x4c4eca('0x71')],_0x3a95f3;return _0x52e88b>=_0x2f2460?(_0x52e88b=_0x2f2460,_0x3a95f3=0xc8):_0x3a95f3=0xce,_0x213765[_0x4c4eca('0x76')](_0x3a95f3),_0x213765['set'](_0x4c4eca('0x80'),_0x2fb236+'-'+_0x52e88b+'/'+_0x2f2460)[_0x4c4eca('0x3f')](_0x218316);}return null;};}function saveUpdates(_0x4830d4){return function(_0xcd57cc){const _0x3c9fa9=a9_0xf5b4;if(_0xcd57cc)return _0xcd57cc[_0x3c9fa9('0x44')](_0x4830d4)['then'](function(_0x13655e){return _0x13655e;});return null;};}function removeEntity(_0x2a40d7){return function(_0x485dcc){const _0x116bbd=a9_0xf5b4;if(_0x485dcc)return _0x485dcc[_0x116bbd('0x1a')]()['then'](function(){const _0x38f88a=_0x116bbd,_0xfa0033=_0x485dcc[_0x38f88a('0x25')]({'plain':!![]}),_0x5e7e8d=_0x38f88a('0x13');return db[_0x38f88a('0x1b')][_0x38f88a('0x1a')]({'where':{'type':_0x5e7e8d,'resourceId':_0xfa0033['id']}})[_0x38f88a('0x2d')](function(){return _0x485dcc;});})[_0x116bbd('0x2d')](function(){const _0x3765ae=_0x116bbd;_0x2a40d7[_0x3765ae('0x76')](0xcc)[_0x3765ae('0x39')]();});};}function handleEntityNotFound(_0xb4137c){return function(_0x3fa923){const _0x2524ae=a9_0xf5b4;return!_0x3fa923&&_0xb4137c[_0x2524ae('0x2a')](0x194),_0x3fa923;};}function handleError(_0x2b0c9d,_0x3a4f0a){return _0x3a4f0a=_0x3a4f0a||0x1f4,function(_0x242164){const _0x5eaad9=a9_0xf5b4;logger[_0x5eaad9('0x7d')](_0x242164[_0x5eaad9('0x15')]),_0x242164[_0x5eaad9('0xf')]&&delete _0x242164[_0x5eaad9('0xf')],_0x2b0c9d[_0x5eaad9('0x76')](_0x3a4f0a)[_0x5eaad9('0x43')](_0x242164);};}exports[_0x1e1892('0x48')]=function(_0x27deb2,_0x1f93f4){const _0xab0b41=_0x1e1892;let _0x21b0f3={};const _0x1f08eb={},_0x2e29de={'count':0x0,'rows':[]},_0x56aa2d=_['map'](db[_0xab0b41('0x79')]['rawAttributes'],function(_0x53640a){const _0xeb3371=_0xab0b41;return{'name':_0x53640a[_0xeb3371('0x21')],'type':_0x53640a[_0xeb3371('0x72')][_0xeb3371('0x7e')]};});_0x1f08eb['model']=_[_0xab0b41('0x36')](_0x56aa2d,'name'),_0x1f08eb[_0xab0b41('0xa')]=_['keys'](_0x27deb2[_0xab0b41('0xa')]),_0x1f08eb[_0xab0b41('0x41')]=_['intersection'](_0x1f08eb[_0xab0b41('0x7')],_0x1f08eb[_0xab0b41('0xa')]),_0x21b0f3['attributes']=_[_0xab0b41('0x1')](_0x1f08eb[_0xab0b41('0x7')],qs[_0xab0b41('0x75')](_0x27deb2['query'][_0xab0b41('0x75')])),_0x21b0f3[_0xab0b41('0x85')]=_0x21b0f3[_0xab0b41('0x85')]['length']?_0x21b0f3['attributes']:_0x1f08eb[_0xab0b41('0x7')];typeof _0x27deb2[_0xab0b41('0xa')]['nolimit']===_0xab0b41('0x5e')&&(_0x21b0f3[_0xab0b41('0x71')]=qs[_0xab0b41('0x71')](_0x27deb2[_0xab0b41('0xa')][_0xab0b41('0x71')]),_0x21b0f3[_0xab0b41('0x24')]=qs[_0xab0b41('0x24')](_0x27deb2['query'][_0xab0b41('0x24')]));_0x21b0f3['order']=qs[_0xab0b41('0x35')](_0x27deb2[_0xab0b41('0xa')][_0xab0b41('0x35')]),_0x21b0f3[_0xab0b41('0xb')]=qs[_0xab0b41('0x41')](_['pick'](_0x27deb2['query'],_0x1f08eb[_0xab0b41('0x41')]),_0x56aa2d);_0x27deb2[_0xab0b41('0xa')][_0xab0b41('0x4e')]&&(_0x21b0f3[_0xab0b41('0xb')]=_[_0xab0b41('0x22')](_0x21b0f3[_0xab0b41('0xb')],{[Op['or']]:_[_0xab0b41('0x36')](_0x56aa2d,function(_0x3a8f90){const _0x113023=_0xab0b41;if(_0x3a8f90[_0x113023('0x72')]!==_0x113023('0x1e')){const _0x4ddf02={};return _0x4ddf02[_0x3a8f90['name']]={[Op[_0x113023('0xd')]]:'%'+_0x27deb2[_0x113023('0xa')]['filter']+'%'},_0x4ddf02;}})}));_0x21b0f3=_[_0xab0b41('0x22')]({},_0x21b0f3,_0x27deb2['options']);const _0x2320bd={'where':_0x21b0f3[_0xab0b41('0xb')]};return db['AnalyticDefaultReport'][_0xab0b41('0x3b')](_0x2320bd)[_0xab0b41('0x2d')](function(_0x5c9c26){const _0xf99266=_0xab0b41;return _0x2e29de[_0xf99266('0x3b')]=_0x5c9c26,_0x27deb2[_0xf99266('0xa')]['includeAll']&&(_0x21b0f3['include']=[{'all':!![]}]),db[_0xf99266('0x79')][_0xf99266('0x7b')](_0x21b0f3);})[_0xab0b41('0x2d')](function(_0x51e852){const _0x4ad5e9=_0xab0b41;return _0x2e29de[_0x4ad5e9('0x60')]=_0x51e852,_0x2e29de;})['then'](respondWithFilteredResult(_0x1f93f4,_0x21b0f3))[_0xab0b41('0x20')](handleError(_0x1f93f4,null));},exports['show']=function(_0x1a1b82,_0x225067){const _0x2a53a8=_0x1e1892;let _0x5e8d1c={'raw':!![],'where':{'id':_0x1a1b82[_0x2a53a8('0x6')]['id']}};const _0x5edd55={};return _0x5edd55[_0x2a53a8('0x7')]=_[_0x2a53a8('0x9')](db['AnalyticDefaultReport'][_0x2a53a8('0xe')]),_0x5edd55[_0x2a53a8('0xa')]=_['keys'](_0x1a1b82[_0x2a53a8('0xa')]),_0x5edd55[_0x2a53a8('0x41')]=_[_0x2a53a8('0x1')](_0x5edd55[_0x2a53a8('0x7')],_0x5edd55['query']),_0x5e8d1c[_0x2a53a8('0x85')]=_[_0x2a53a8('0x1')](_0x5edd55[_0x2a53a8('0x7')],qs[_0x2a53a8('0x75')](_0x1a1b82[_0x2a53a8('0xa')][_0x2a53a8('0x75')])),_0x5e8d1c[_0x2a53a8('0x85')]=_0x5e8d1c[_0x2a53a8('0x85')][_0x2a53a8('0x73')]?_0x5e8d1c[_0x2a53a8('0x85')]:_0x5edd55[_0x2a53a8('0x7')],_0x1a1b82[_0x2a53a8('0xa')]['includeAll']&&(_0x5e8d1c['include']=[{'all':!![]}]),_0x5e8d1c=_['merge']({},_0x5e8d1c,_0x1a1b82['options']),db[_0x2a53a8('0x79')][_0x2a53a8('0x31')](_0x5e8d1c)['then'](handleEntityNotFound(_0x225067,null))[_0x2a53a8('0x2d')](respondWithResult(_0x225067,null))[_0x2a53a8('0x20')](handleError(_0x225067,null));},exports[_0x1e1892('0x7f')]=function(_0x3f6e47,_0x1efa28){const _0x512e4b=_0x1e1892;return db[_0x512e4b('0x79')][_0x512e4b('0x7f')](_0x3f6e47[_0x512e4b('0x56')],{})[_0x512e4b('0x2d')](function(_0x5aad01){const _0x16867c=_0x512e4b,_0x4d917c=_0x3f6e47[_0x16867c('0x2e')]['get']({'plain':!![]});if(!_0x4d917c)throw new Error(_0x16867c('0x6f'));if(_0x4d917c['role']===_0x16867c('0x2e')){const _0x29d970=_0x5aad01[_0x16867c('0x25')]({'plain':!![]}),_0x2a3a6b=_0x16867c('0x55');return db[_0x16867c('0x14')][_0x16867c('0x31')]({'where':{'name':_0x2a3a6b,'userProfileId':_0x4d917c[_0x16867c('0x16')]},'raw':!![]})[_0x16867c('0x2d')](function(_0x20be1b){const _0x6a3478=_0x16867c;return _0x20be1b&&_0x20be1b[_0x6a3478('0x10')]===0x0?db[_0x6a3478('0x1b')][_0x6a3478('0x7f')]({'name':_0x29d970[_0x6a3478('0xf')],'resourceId':_0x29d970['id'],'type':_0x6a3478('0x13'),'sectionId':_0x20be1b['id']},{})[_0x6a3478('0x2d')](function(){return _0x5aad01;}):_0x5aad01;})[_0x16867c('0x20')](function(_0xd98700){const _0x2b8a26=_0x16867c;logger[_0x2b8a26('0x7d')](_0x2b8a26('0x5a'),_0xd98700);throw _0xd98700;});}return _0x5aad01;})[_0x512e4b('0x2d')](respondWithResult(_0x1efa28,0xc9))[_0x512e4b('0x20')](handleError(_0x1efa28,null));},exports[_0x1e1892('0x44')]=function(_0x5e14d3,_0x5a9acf){const _0x47c113=_0x1e1892;return _0x5e14d3['body']['id']&&delete _0x5e14d3[_0x47c113('0x56')]['id'],db[_0x47c113('0x79')][_0x47c113('0x31')]({'where':{'id':_0x5e14d3['params']['id']}})[_0x47c113('0x2d')](handleEntityNotFound(_0x5a9acf,null))['then'](saveUpdates(_0x5e14d3[_0x47c113('0x56')],null))[_0x47c113('0x2d')](respondWithResult(_0x5a9acf,null))[_0x47c113('0x20')](handleError(_0x5a9acf,null));},exports[_0x1e1892('0x1a')]=function(_0x576233,_0x5b8067){const _0x19bc4d=_0x1e1892;return db[_0x19bc4d('0x79')][_0x19bc4d('0x31')]({'where':{'id':_0x576233[_0x19bc4d('0x6')]['id']}})[_0x19bc4d('0x2d')](handleEntityNotFound(_0x5b8067,null))['then'](removeEntity(_0x5b8067,null))[_0x19bc4d('0x20')](handleError(_0x5b8067,null));},exports['preview']=function(_0x256c97,_0x2ada6d){const _0x1cdba5=_0x1e1892,_0x479086=0xa,_0x251b1a=['join',_0x1cdba5('0x11'),_0x1cdba5('0x38'),_0x1cdba5('0x4b')],_0x21513e={'SUM':_0x1cdba5('0x7c'),'COUNT':_0x1cdba5('0x28'),'COUNT\x20DISTINCT':_0x1cdba5('0x52'),'MAX':_0x1cdba5('0x57'),'MIN':_0x1cdba5('0x49'),'AVG':_0x1cdba5('0x67'),'GROUP_CONCAT':_0x1cdba5('0x2'),'GROUP_CONCAT\x20ASC':_0x1cdba5('0x84'),'GROUP_CONCAT\x20DESC':_0x1cdba5('0x4')},_0x48bc1f={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':'DATE(%s)','HOUR':_0x1cdba5('0x3c'),'ROUND':_0x1cdba5('0x2c'),'UNIX_TIMESTAMP':_0x1cdba5('0x2b')},_0x427915=function(_0x123b75){const _0x16a6c8=_0x1cdba5;return!_[_0x16a6c8('0x8b')]([_0x16a6c8('0x32'),_0x16a6c8('0x77'),_0x16a6c8('0x53'),_0x16a6c8('0x69')],_0x123b75);},_0x152080=function(_0x4bcdd5){const _0x4e8f29=_0x1cdba5;if(!_0x4bcdd5||!_0x4bcdd5[_0x4e8f29('0x18')][_0x4e8f29('0x73')])return'';let _0x436f33='(';for(let _0x49c869=0x0;_0x49c869<_0x4bcdd5['rules'][_0x4e8f29('0x73')];_0x49c869+=0x1){_0x49c869>0x0&&(_0x436f33+='\x20'+_0x4bcdd5[_0x4e8f29('0x40')]+'\x20'),_0x436f33+=_0x4bcdd5['rules'][_0x49c869][_0x4e8f29('0x47')]?_0x152080(_0x4bcdd5['rules'][_0x49c869][_0x4e8f29('0x47')]):_0x4bcdd5[_0x4e8f29('0x18')][_0x49c869][_0x4e8f29('0x51')]+'\x20'+_0x4bcdd5[_0x4e8f29('0x18')][_0x49c869][_0x4e8f29('0x4f')]+(_0x427915(_0x4bcdd5['rules'][_0x49c869][_0x4e8f29('0x4f')])?'\x20'+_0x4bcdd5[_0x4e8f29('0x18')][_0x49c869][_0x4e8f29('0x23')]:'');}return _0x436f33+')';};let _0x5eabed={'where':{'id':_0x256c97['params']['id']}},_0x98cab1,_0x1044fe,_0x2c7485;return _0x5eabed=_['merge']({},_0x5eabed,_0x256c97['options']),db[_0x1cdba5('0x79')][_0x1cdba5('0x31')](_0x5eabed)[_0x1cdba5('0x2d')](function(_0x3d9959){const _0x28c635=_0x1cdba5;if(_0x3d9959)return _0x98cab1=_0x3d9959,_0x3d9959[_0x28c635('0x70')]();return null;})[_0x1cdba5('0x2d')](function(_0x246f6f){const _0x417222=_0x1cdba5;if(_0x246f6f){if(!_0x246f6f[_0x417222('0x73')])throw new ValidationErrorItem(_0x417222('0x82'),0x193);return _0x1044fe=_0x246f6f,db[_0x417222('0x6e')]['findAll']({'raw':!![]});}return null;})[_0x1cdba5('0x2d')](function(_0x2a019d){const _0x50c4bd=_0x1cdba5;if(_0x2a019d){_0x2c7485=_[_0x50c4bd('0x5c')](_0x2a019d,'id');let _0x435159;const _0x168e5f=squel[_0x50c4bd('0x83')]();_0x168e5f[_0x50c4bd('0x3d')](_0x98cab1['table']);for(let _0x33d261=0x0;_0x33d261<_0x1044fe[_0x50c4bd('0x73')];_0x33d261+=0x1){_0x435159=_0x1044fe[_0x33d261]['MetricId']?_0x2c7485[_0x1044fe[_0x33d261][_0x50c4bd('0x6c')]][_0x50c4bd('0x33')]:_0x1044fe[_0x33d261][_0x50c4bd('0x51')],_0x435159=_0x1044fe[_0x33d261][_0x50c4bd('0x29')]?_[_0x50c4bd('0x6d')](_0x21513e[_0x1044fe[_0x33d261][_0x50c4bd('0x29')]],'%s',_0x435159):_0x435159,_0x435159=_0x1044fe[_0x33d261]['format']?_[_0x50c4bd('0x6d')](_0x48bc1f[_0x1044fe[_0x33d261][_0x50c4bd('0x5b')]],'%s',_0x435159):_0x435159,_0x1044fe[_0x33d261][_0x50c4bd('0x37')]&&_0x168e5f[_0x50c4bd('0x47')](_0x435159),_0x1044fe[_0x33d261][_0x50c4bd('0x68')]&&_0x168e5f[_0x50c4bd('0x3e')](_0x435159,_0x1044fe[_0x33d261][_0x50c4bd('0x68')]==='DESC'?![]:!![]),_0x168e5f[_0x50c4bd('0x51')](_0x435159,_0x1044fe[_0x33d261]['alias']||_0x435159);}if(_0x98cab1[_0x50c4bd('0x54')]){_0x98cab1[_0x50c4bd('0x54')]=JSON[_0x50c4bd('0x74')](_0x98cab1['joins']);for(let _0x51c663=0x0;_0x51c663<_0x98cab1['joins'][_0x50c4bd('0x73')];_0x51c663+=0x1){_0x98cab1[_0x50c4bd('0x54')][_0x51c663][_0x50c4bd('0x72')]&&_[_0x50c4bd('0x8b')](_0x251b1a,_0x98cab1[_0x50c4bd('0x54')][_0x51c663]['type'])&&_0x98cab1[_0x50c4bd('0x54')][_0x51c663][_0x50c4bd('0x34')]&&_0x98cab1['joins'][_0x51c663]['foreignTable']&&_0x98cab1['joins'][_0x51c663][_0x50c4bd('0x59')]&&_0x168e5f[_0x98cab1[_0x50c4bd('0x54')][_0x51c663]['type']](_0x98cab1[_0x50c4bd('0x54')][_0x51c663][_0x50c4bd('0xc')],null,util[_0x50c4bd('0x5b')](_0x50c4bd('0x6b'),_0x98cab1[_0x50c4bd('0x26')],_0x98cab1[_0x50c4bd('0x54')][_0x51c663]['parentKey'],_0x98cab1[_0x50c4bd('0x54')][_0x51c663][_0x50c4bd('0xc')],_0x98cab1[_0x50c4bd('0x54')][_0x51c663][_0x50c4bd('0x59')]));}}return _0x98cab1[_0x50c4bd('0x87')]&&(_0x98cab1[_0x50c4bd('0x87')]=JSON[_0x50c4bd('0x74')](_0x98cab1['conditions']),_0x168e5f['where'](_0x152080(_0x98cab1['conditions'][_0x50c4bd('0x47')]))),_0x168e5f[_0x50c4bd('0x71')](_0x479086),_0x168e5f[_0x50c4bd('0x24')](0x0),logger[_0x50c4bd('0x19')](_0x50c4bd('0x5f'),_0x168e5f[_0x50c4bd('0x4c')]()),db[_0x50c4bd('0x89')][_0x50c4bd('0xa')](_0x168e5f[_0x50c4bd('0x4c')](),{'type':QueryTypes[_0x50c4bd('0x6a')]});}})[_0x1cdba5('0x2d')](respondWithResult(_0x2ada6d,null))[_0x1cdba5('0x20')](handleError(_0x2ada6d,null));};function runReport(_0x4fcc22,_0x340929,_0x21cb3c){const _0x53cb1e=_0x1e1892,_0xb2b438=_0x340929[_0x53cb1e('0xf')],_0x4ff77b=0xa,_0x548d4a=[_0x53cb1e('0x81'),_0x53cb1e('0x11'),'right_join',_0x53cb1e('0x4b')],_0xba7599={'SUM':'SUM(%s)','COUNT':_0x53cb1e('0x28'),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x53cb1e('0x57'),'MIN':_0x53cb1e('0x49'),'AVG':_0x53cb1e('0x67'),'GROUP_CONCAT':_0x53cb1e('0x2'),'GROUP_CONCAT\x20ASC':_0x53cb1e('0x84'),'GROUP_CONCAT\x20DESC':_0x53cb1e('0x4')},_0x1285d8={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':'DATE(%s)','HOUR':_0x53cb1e('0x3c'),'ROUND':_0x53cb1e('0x2c'),'UNIX_TIMESTAMP':'UNIX_TIMESTAMP(%s)'},_0x2cc648=function(_0x1e4433){const _0x35d2d9=_0x53cb1e;return!_[_0x35d2d9('0x8b')](['IS\x20NULL',_0x35d2d9('0x77'),_0x35d2d9('0x53'),_0x35d2d9('0x69')],_0x1e4433);},_0xad9a1=function(_0x1f7522){const _0x7d1803=_0x53cb1e;if(!_0x1f7522||!_0x1f7522[_0x7d1803('0x18')][_0x7d1803('0x73')])return'';let _0x2b2a7b='(';for(let _0x35d587=0x0;_0x35d587<_0x1f7522[_0x7d1803('0x18')]['length'];_0x35d587+=0x1){_0x35d587>0x0&&(_0x2b2a7b+='\x20'+_0x1f7522['operator']+'\x20'),_0x2b2a7b+=_0x1f7522['rules'][_0x35d587][_0x7d1803('0x47')]?_0xad9a1(_0x1f7522[_0x7d1803('0x18')][_0x35d587][_0x7d1803('0x47')]):_0x1f7522['rules'][_0x35d587][_0x7d1803('0x51')]+'\x20'+_0x1f7522[_0x7d1803('0x18')][_0x35d587]['condition']+(_0x2cc648(_0x1f7522[_0x7d1803('0x18')][_0x35d587][_0x7d1803('0x4f')])?'\x20'+_0x1f7522[_0x7d1803('0x18')][_0x35d587][_0x7d1803('0x23')]:'');}return _0x2b2a7b+')';};let _0x3147f8={'where':{'id':_0x4fcc22['id']}},_0x513800,_0x350369,_0x2df799,_0x23ac36,_0x5a6c46;return _0x3147f8=_[_0x53cb1e('0x22')]({},_0x3147f8,_0x21cb3c),db['AnalyticDefaultReport'][_0x53cb1e('0x31')](_0x3147f8)[_0x53cb1e('0x2d')](function(_0x53aa3a){const _0x178286=_0x53cb1e;if(_0x53aa3a)return _0x513800=_0x53aa3a,_0x53aa3a[_0x178286('0x70')]();return null;})[_0x53cb1e('0x2d')](function(_0x5266ff){const _0x1feb1a=_0x53cb1e;if(_0x5266ff){if(!_0x5266ff[_0x1feb1a('0x73')])throw new ValidationErrorItem(_0x1feb1a('0x82'),0x193);return _0x350369=_0x5266ff,db[_0x1feb1a('0x6e')][_0x1feb1a('0x7b')]({'raw':!![]});}return null;})[_0x53cb1e('0x2d')](function(_0x699c37){const _0x774085=_0x53cb1e;if(_0x699c37){_0x2df799=_[_0x774085('0x5c')](_0x699c37,'id');let _0x473364;const _0x41fb77=squel[_0x774085('0x83')]();_0x41fb77[_0x774085('0x3d')](_0x513800['table']);for(let _0x1e59e1=0x0;_0x1e59e1<_0x350369[_0x774085('0x73')];_0x1e59e1+=0x1){_0x473364=_0x350369[_0x1e59e1][_0x774085('0x6c')]?_0x2df799[_0x350369[_0x1e59e1][_0x774085('0x6c')]]['metric']:_0x350369[_0x1e59e1]['field'],_0x473364=_0x350369[_0x1e59e1][_0x774085('0x29')]?_[_0x774085('0x6d')](_0xba7599[_0x350369[_0x1e59e1]['function']],'%s',_0x473364):_0x473364,_0x473364=_0x350369[_0x1e59e1][_0x774085('0x5b')]?_[_0x774085('0x6d')](_0x1285d8[_0x350369[_0x1e59e1]['format']],'%s',_0x473364):_0x473364,_0x350369[_0x1e59e1]['groupBy']&&_0x41fb77['group'](_0x473364),_0x350369[_0x1e59e1]['orderBy']&&_0x41fb77[_0x774085('0x3e')](_0x473364,_0x350369[_0x1e59e1][_0x774085('0x68')]===_0x774085('0x61')?![]:!![]),_0x41fb77[_0x774085('0x51')](_0x473364,_0x350369[_0x1e59e1][_0x774085('0x66')]||_0x473364);}if(_0x513800[_0x774085('0x54')]){_0x513800[_0x774085('0x54')]=JSON[_0x774085('0x74')](_0x513800[_0x774085('0x54')]);for(let _0x1fb6e4=0x0;_0x1fb6e4<_0x513800[_0x774085('0x54')][_0x774085('0x73')];_0x1fb6e4+=0x1){_0x513800['joins'][_0x1fb6e4][_0x774085('0x72')]&&_[_0x774085('0x8b')](_0x548d4a,_0x513800[_0x774085('0x54')][_0x1fb6e4]['type'])&&_0x513800[_0x774085('0x54')][_0x1fb6e4][_0x774085('0x34')]&&_0x513800['joins'][_0x1fb6e4][_0x774085('0xc')]&&_0x513800[_0x774085('0x54')][_0x1fb6e4][_0x774085('0x59')]&&_0x41fb77[_0x513800[_0x774085('0x54')][_0x1fb6e4][_0x774085('0x72')]](_0x513800[_0x774085('0x54')][_0x1fb6e4]['foreignTable'],null,util[_0x774085('0x5b')](_0x774085('0x6b'),_0x513800['table'],_0x513800['joins'][_0x1fb6e4][_0x774085('0x34')],_0x513800['joins'][_0x1fb6e4][_0x774085('0xc')],_0x513800[_0x774085('0x54')][_0x1fb6e4][_0x774085('0x59')]));}}return _0x513800[_0x774085('0x87')]&&(_0x513800[_0x774085('0x87')]=JSON[_0x774085('0x74')](_0x513800[_0x774085('0x87')]),_0x41fb77[_0x774085('0xb')](_0xad9a1(_0x513800['conditions'][_0x774085('0x47')]))),_0x5a6c46=_0x41fb77[_0x774085('0x4d')](),_0x41fb77[_0x774085('0x71')](_0x4ff77b),_0x41fb77[_0x774085('0x24')](0x0),logger[_0x774085('0x19')]('Limited\x20Query:',_0x41fb77[_0x774085('0x4c')]()),db[_0x774085('0x89')][_0x774085('0xa')](_0x41fb77[_0x774085('0x4c')](),{'type':QueryTypes[_0x774085('0x6a')]});}})[_0x53cb1e('0x2d')](function(_0x4972b4){const _0x4c3f7c=_0x53cb1e;if(!_0x4972b4['length'])throw new ValidationErrorItem(_0x4c3f7c('0x3'),0xcc);if(_0x340929['output']===_0x4c3f7c('0x2f'))return null;const _0x86cf12=_[_0x4c3f7c('0x22')](_0x340929,{'name':_0x340929[_0x4c3f7c('0x7a')]||_0x340929['name']||_0x513800[_0x4c3f7c('0xf')],'basename':_0xb2b438,'savename':util[_0x4c3f7c('0x5b')](_0x4c3f7c('0x88'),_0x340929['name']||_0x513800[_0x4c3f7c('0xf')],require('randomstring')[_0x4c3f7c('0x8')](0x4),_0x340929[_0x4c3f7c('0x1c')]||_0x4c3f7c('0x64')),'reportId':_0x513800['id'],'reportType':'default'});return db[_0x4c3f7c('0x8c')][_0x4c3f7c('0x7f')](_0x86cf12,{'raw':!![]});})[_0x53cb1e('0x2d')](function(_0x23233a){const _0x433c27=_0x53cb1e;_0x513800[_0x433c27('0x26')]===_0x433c27('0x17')?_0x5a6c46[_0x433c27('0xb')](_0x513800[_0x433c27('0x26')]+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0x340929[_0x433c27('0x3a')],_0x340929[_0x433c27('0x86')]):_0x5a6c46[_0x433c27('0xb')](_0x513800['table']+_0x433c27('0x62'),_0x340929[_0x433c27('0x3a')],_0x340929[_0x433c27('0x86')]);if(_0x23233a)return logger[_0x433c27('0x46')](_0x433c27('0x1f'),_0x5a6c46[_0x433c27('0x4c')]()),require(_0x433c27('0x12'))[_0x433c27('0x78')](path[_0x433c27('0x81')](__dirname,_0x433c27('0x27'),_0x23233a['output']),[_0x23233a['id'],_0x5a6c46[_0x433c27('0x4c')](),path[_0x433c27('0x81')](__dirname,'../../files/reports',_0x23233a[_0x433c27('0x5')]),_0xb2b438]),_0x23233a;else{const _0x10865f=squel[_0x433c27('0x83')]();return _0x10865f[_0x433c27('0x3d')]('('+_0x5a6c46['toString']()+')','countTable'),_0x10865f[_0x433c27('0x51')](_0x433c27('0x30'),_0x433c27('0x3b')),_0x5a6c46[_0x433c27('0x71')](_0x340929['limit']||_0x4ff77b),_0x5a6c46[_0x433c27('0x24')](_0x340929[_0x433c27('0x24')]||0x0),dbH['sequelize'][_0x433c27('0xa')](_0x10865f[_0x433c27('0x4c')](),{'type':dbH[_0x433c27('0x89')][_0x433c27('0x4a')][_0x433c27('0x6a')]})[_0x433c27('0x2d')](function(_0x44fb92){const _0x355fc9=_0x433c27;return!_0x44fb92[_0x355fc9('0x73')]?_0x23ac36=0x0:_0x23ac36=_0x44fb92[0x0]['count']||0x0,dbH['sequelize'][_0x355fc9('0xa')](_0x5a6c46[_0x355fc9('0x4c')](),{'type':dbH[_0x355fc9('0x89')][_0x355fc9('0x4a')]['SELECT']});})['then'](function(_0x1a3997){return{'rows':_0x1a3997||[],'count':_0x23ac36};});}});}exports['run']=function(_0xe11252,_0x3beb03){const _0x3cd009=_0x1e1892;return runReport(_0xe11252['params'],_0xe11252[_0x3cd009('0xa')],_0xe11252[_0x3cd009('0x8a')])[_0x3cd009('0x2d')](respondWithResult(_0x3beb03,null))[_0x3cd009('0x20')](handleError(_0x3beb03,null));},exports['runReport']=runReport,exports[_0x1e1892('0xa')]=function(_0x372141,_0x298aa1){const _0x4759f2=_0x1e1892,_0x1f8aa2=0xa,_0x23a81f=[_0x4759f2('0x81'),_0x4759f2('0x11'),_0x4759f2('0x38'),_0x4759f2('0x4b')],_0x342713={'SUM':_0x4759f2('0x7c'),'COUNT':'COUNT(%s)','COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x4759f2('0x57'),'MIN':_0x4759f2('0x49'),'AVG':_0x4759f2('0x67'),'GROUP_CONCAT':_0x4759f2('0x2'),'GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x4759f2('0x4')},_0x339bd9={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':'DATE(%s)','HOUR':_0x4759f2('0x3c'),'ROUND':_0x4759f2('0x2c'),'UNIX_TIMESTAMP':_0x4759f2('0x2b')},_0x1670e0=function(_0x3a1ada){const _0x23c5e2=_0x4759f2;return!_[_0x23c5e2('0x8b')](['IS\x20NULL',_0x23c5e2('0x77'),_0x23c5e2('0x53'),_0x23c5e2('0x69')],_0x3a1ada);},_0x16886b=function(_0x53ae6b){const _0x100f14=_0x4759f2;if(!_0x53ae6b||!_0x53ae6b[_0x100f14('0x18')]['length'])return'';let _0x434a65='(';for(let _0x260728=0x0;_0x260728<_0x53ae6b[_0x100f14('0x18')][_0x100f14('0x73')];_0x260728+=0x1){_0x260728>0x0&&(_0x434a65+='\x20'+_0x53ae6b['operator']+'\x20'),_0x434a65+=_0x53ae6b[_0x100f14('0x18')][_0x260728]['group']?_0x16886b(_0x53ae6b[_0x100f14('0x18')][_0x260728]['group']):_0x53ae6b[_0x100f14('0x18')][_0x260728][_0x100f14('0x51')]+'\x20'+_0x53ae6b['rules'][_0x260728][_0x100f14('0x4f')]+(_0x1670e0(_0x53ae6b[_0x100f14('0x18')][_0x260728][_0x100f14('0x4f')])?'\x20'+_0x53ae6b[_0x100f14('0x18')][_0x260728][_0x100f14('0x23')]:'');}return _0x434a65+')';};let _0x327a84={'where':{'id':_0x372141[_0x4759f2('0x6')]['id']}},_0x12d5f1,_0x4228e0,_0xd8fb0a,_0x4ae2f1;return _0x327a84=_[_0x4759f2('0x22')]({},_0x327a84,_0x372141[_0x4759f2('0x8a')]),db[_0x4759f2('0x79')]['findOne'](_0x327a84)[_0x4759f2('0x2d')](function(_0x4df878){const _0x101797=_0x4759f2;if(_0x4df878)return _0x12d5f1=_0x4df878,_0x4df878[_0x101797('0x70')]();return null;})[_0x4759f2('0x2d')](function(_0x1a5da4){const _0x22072d=_0x4759f2;if(_0x1a5da4){if(!_0x1a5da4[_0x22072d('0x73')])throw new ValidationErrorItem(_0x22072d('0x82'),0x193);return _0x4228e0=_0x1a5da4,db[_0x22072d('0x6e')][_0x22072d('0x7b')]({'raw':!![]});}return null;})[_0x4759f2('0x2d')](function(_0x21b78d){const _0x4e5219=_0x4759f2;if(_0x21b78d){_0xd8fb0a=_[_0x4e5219('0x5c')](_0x21b78d,'id');let _0x237aa1;const _0x434419=squel['select']();_0x434419[_0x4e5219('0x3d')](_0x12d5f1['table']);for(let _0x3075f6=0x0;_0x3075f6<_0x4228e0[_0x4e5219('0x73')];_0x3075f6+=0x1){_0x237aa1=_0x4228e0[_0x3075f6]['MetricId']?_0xd8fb0a[_0x4228e0[_0x3075f6][_0x4e5219('0x6c')]][_0x4e5219('0x33')]:_0x4228e0[_0x3075f6][_0x4e5219('0x51')],_0x237aa1=_0x4228e0[_0x3075f6][_0x4e5219('0x29')]?_[_0x4e5219('0x6d')](_0x342713[_0x4228e0[_0x3075f6][_0x4e5219('0x29')]],'%s',_0x237aa1):_0x237aa1,_0x237aa1=_0x4228e0[_0x3075f6][_0x4e5219('0x5b')]?_[_0x4e5219('0x6d')](_0x339bd9[_0x4228e0[_0x3075f6][_0x4e5219('0x5b')]],'%s',_0x237aa1):_0x237aa1,_0x4228e0[_0x3075f6][_0x4e5219('0x37')]&&_0x434419[_0x4e5219('0x47')](_0x237aa1),_0x4228e0[_0x3075f6][_0x4e5219('0x68')]&&_0x434419['order'](_0x237aa1,_0x4228e0[_0x3075f6]['orderBy']===_0x4e5219('0x61')?![]:!![]),_0x434419[_0x4e5219('0x51')](_0x237aa1,_0x4228e0[_0x3075f6]['alias']||_0x237aa1);}if(_0x12d5f1[_0x4e5219('0x54')]){_0x12d5f1[_0x4e5219('0x54')]=JSON[_0x4e5219('0x74')](_0x12d5f1[_0x4e5219('0x54')]);for(let _0x1f5182=0x0;_0x1f5182<_0x12d5f1[_0x4e5219('0x54')][_0x4e5219('0x73')];_0x1f5182+=0x1){_0x12d5f1[_0x4e5219('0x54')][_0x1f5182][_0x4e5219('0x72')]&&_[_0x4e5219('0x8b')](_0x23a81f,_0x12d5f1['joins'][_0x1f5182][_0x4e5219('0x72')])&&_0x12d5f1['joins'][_0x1f5182][_0x4e5219('0x34')]&&_0x12d5f1[_0x4e5219('0x54')][_0x1f5182][_0x4e5219('0xc')]&&_0x12d5f1[_0x4e5219('0x54')][_0x1f5182][_0x4e5219('0x59')]&&_0x434419[_0x12d5f1[_0x4e5219('0x54')][_0x1f5182][_0x4e5219('0x72')]](_0x12d5f1[_0x4e5219('0x54')][_0x1f5182][_0x4e5219('0xc')],null,util['format'](_0x4e5219('0x6b'),_0x12d5f1[_0x4e5219('0x26')],_0x12d5f1['joins'][_0x1f5182][_0x4e5219('0x34')],_0x12d5f1[_0x4e5219('0x54')][_0x1f5182][_0x4e5219('0xc')],_0x12d5f1[_0x4e5219('0x54')][_0x1f5182][_0x4e5219('0x59')]));}}return _0x12d5f1[_0x4e5219('0x87')]&&(_0x12d5f1[_0x4e5219('0x87')]=JSON[_0x4e5219('0x74')](_0x12d5f1[_0x4e5219('0x87')]),_0x434419['where'](_0x16886b(_0x12d5f1[_0x4e5219('0x87')]['group']))),_0x4ae2f1=_0x434419[_0x4e5219('0x4d')](),_0x434419[_0x4e5219('0x71')](_0x1f8aa2),_0x434419[_0x4e5219('0x24')](0x0),logger[_0x4e5219('0x19')]('Limited\x20Query:',_0x434419[_0x4e5219('0x4c')]()),db[_0x4e5219('0x89')]['query'](_0x434419[_0x4e5219('0x4c')](),{'type':QueryTypes['SELECT']});}})[_0x4759f2('0x2d')](function(){const _0x3febb3=_0x4759f2;return{'sql':_0x4ae2f1[_0x3febb3('0x4c')]()};})[_0x4759f2('0x2d')](respondWithResult(_0x298aa1,null))[_0x4759f2('0x20')](handleError(_0x298aa1,null));}; \ No newline at end of file +const a9_0x29c2=['joins','catch','ROUND(%s)','userProfileId','foreignTable','keyBy','includeAll','fork','HOUR(%s)','stack','../../components/export/','select','filters','util','replace','undefined','include','SELECT','operator','preview','body','end','startDate','update','info','function','AnalyticDefaultReport','DATE(%s)','COUNT(*)','sequelize','endDate','create','Please\x20insert\x20at\x20least\x20one\x20field','condition','show','model','limit','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Limited\x20Query:','metric','attributes','SEC_TO_TIME(%s)','.createdAt\x20BETWEEN\x20?\x20AND\x20?','then','MIN(%s)','keys','right_join','includes','COUNT(%s)','randomstring','../../config/logger','orderBy','toString','lodash','fullPath','csv','count','IS\x20EMPTY','get','format','parentKey','group','options','COUNT(DISTINCT\x20%s)','findAll','groupBy','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','../../components/parsers/qs','merge','alias','status','map','dbH','conditions','destroy','clone','../../mysqldb','countTable','IS\x20NOT\x20EMPTY','UNIX_TIMESTAMP(%s)','findOne','IS\x20NOT\x20NULL','fields','GROUP_CONCAT(%s)','UserProfileSection','role','MetricId','filter','generate','Content-Range','params','GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20DESC)','IS\x20NULL','name','pick','order','AnalyticMetric','DESC','runReport','foreignKey','key','fieldName','type','from','sort','AVG(%s)','DefaultReports','AnalyticExtractedReport','../../files/reports','rules','value','table','debug','child_process','sendStatus','like','output','nolimit','SUM(%s)','rawAttributes','field','squel','set','default','%s.%s\x20=\x20%s.%s','cross_join','join','intersection','error','getFields','QueryTypes','index','MAX(%s)','parse','left_join','where','json','user','UserProfileResource','query','length','Unable\x20to\x20retrieve\x20the\x20current\x20user','offset'];(function(_0x2b9487,_0x29c25e){const _0x194a2c=function(_0x2b8d94){while(--_0x2b8d94){_0x2b9487['push'](_0x2b9487['shift']());}};_0x194a2c(++_0x29c25e);}(a9_0x29c2,0xf8));const a9_0x194a=function(_0x2b9487,_0x29c25e){_0x2b9487=_0x2b9487-0x0;let _0x194a2c=a9_0x29c2[_0x2b9487];return _0x194a2c;};const _0x5ebedc=a9_0x194a;'use strict';const util=require(_0x5ebedc('0x33')),path=require('path'),_=require(_0x5ebedc('0x5b')),squel=require(_0x5ebedc('0x10')),qs=require(_0x5ebedc('0x69')),logger=require(_0x5ebedc('0x58'))('api'),db=require(_0x5ebedc('0x72'))['db'],dbH=require(_0x5ebedc('0x72'))[_0x5ebedc('0x6e')],{Op,ValidationErrorItem,QueryTypes}=require(_0x5ebedc('0x43'));function respondWithResult(_0x2b8d94,_0xaed44e){return _0xaed44e=_0xaed44e||0xc8,function(_0x280126){const _0x3dc7af=a9_0x194a;if(_0x280126)return _0x2b8d94[_0x3dc7af('0x6c')](_0xaed44e)[_0x3dc7af('0x1f')](_0x280126);};}function respondWithFilteredResult(_0x16b713,_0x1ed7e0){return function(_0x5dac99){const _0x44ea92=a9_0x194a;if(_0x5dac99){const _0x28fb46=_0x5dac99[_0x44ea92('0x5e')],_0x46173f=_0x1ed7e0['offset'];let _0xd51537=_0x1ed7e0[_0x44ea92('0x25')]+_0x1ed7e0[_0x44ea92('0x4a')],_0x21d79e;return _0xd51537>=_0x28fb46?(_0xd51537=_0x28fb46,_0x21d79e=0xc8):_0x21d79e=0xce,_0x16b713[_0x44ea92('0x6c')](_0x21d79e),_0x16b713[_0x44ea92('0x11')](_0x44ea92('0x7f'),_0x46173f+'-'+_0xd51537+'/'+_0x28fb46)[_0x44ea92('0x1f')](_0x5dac99);}return null;};}function saveUpdates(_0x4bfffd){return function(_0x42c874){const _0x3c0fd8=a9_0x194a;if(_0x42c874)return _0x42c874[_0x3c0fd8('0x3d')](_0x4bfffd)[_0x3c0fd8('0x51')](function(_0x3bd331){return _0x3bd331;});return null;};}function removeEntity(_0x8dcee6){return function(_0x264fed){const _0x41beae=a9_0x194a;if(_0x264fed)return _0x264fed['destroy']()[_0x41beae('0x51')](function(){const _0x3b60a7=_0x41beae,_0x2b10c2=_0x264fed[_0x3b60a7('0x60')]({'plain':!![]}),_0x41d6be='DefaultReports';return db[_0x3b60a7('0x21')][_0x3b60a7('0x70')]({'where':{'type':_0x41d6be,'resourceId':_0x2b10c2['id']}})[_0x3b60a7('0x51')](function(){return _0x264fed;});})[_0x41beae('0x51')](function(){const _0x5a6f1a=_0x41beae;_0x8dcee6['status'](0xcc)[_0x5a6f1a('0x3b')]();});};}function handleEntityNotFound(_0x4912c3){return function(_0x2809cf){const _0x2566a3=a9_0x194a;return!_0x2809cf&&_0x4912c3[_0x2566a3('0x9')](0x194),_0x2809cf;};}function handleError(_0x152f7e,_0x56591f){return _0x56591f=_0x56591f||0x1f4,function(_0x423468){const _0x2779ae=a9_0x194a;logger['error'](_0x423468[_0x2779ae('0x2f')]),_0x423468[_0x2779ae('0x83')]&&delete _0x423468['name'],_0x152f7e['status'](_0x56591f)['send'](_0x423468);};}exports[_0x5ebedc('0x1a')]=function(_0x1df63a,_0x1935b5){const _0x136372=_0x5ebedc;let _0x53f1ee={};const _0x5dacef={},_0x272f78={'count':0x0,'rows':[]},_0x53d1bc=_['map'](db[_0x136372('0x40')]['rawAttributes'],function(_0x26d512){const _0xd64ac8=_0x136372;return{'name':_0x26d512[_0xd64ac8('0x8b')],'type':_0x26d512[_0xd64ac8('0x8c')][_0xd64ac8('0x8a')]};});_0x5dacef['model']=_[_0x136372('0x6d')](_0x53d1bc,_0x136372('0x83')),_0x5dacef[_0x136372('0x22')]=_[_0x136372('0x53')](_0x1df63a['query']),_0x5dacef['filters']=_[_0x136372('0x16')](_0x5dacef[_0x136372('0x49')],_0x5dacef[_0x136372('0x22')]),_0x53f1ee['attributes']=_[_0x136372('0x16')](_0x5dacef[_0x136372('0x49')],qs[_0x136372('0x78')](_0x1df63a['query']['fields'])),_0x53f1ee[_0x136372('0x4e')]=_0x53f1ee[_0x136372('0x4e')][_0x136372('0x23')]?_0x53f1ee[_0x136372('0x4e')]:_0x5dacef[_0x136372('0x49')];typeof _0x1df63a[_0x136372('0x22')][_0x136372('0xc')]===_0x136372('0x35')&&(_0x53f1ee[_0x136372('0x4a')]=qs[_0x136372('0x4a')](_0x1df63a[_0x136372('0x22')]['limit']),_0x53f1ee[_0x136372('0x25')]=qs[_0x136372('0x25')](_0x1df63a['query']['offset']));_0x53f1ee[_0x136372('0x85')]=qs[_0x136372('0x8e')](_0x1df63a[_0x136372('0x22')][_0x136372('0x8e')]),_0x53f1ee[_0x136372('0x1e')]=qs[_0x136372('0x32')](_[_0x136372('0x84')](_0x1df63a['query'],_0x5dacef['filters']),_0x53d1bc);_0x1df63a[_0x136372('0x22')][_0x136372('0x7d')]&&(_0x53f1ee[_0x136372('0x1e')]=_[_0x136372('0x6a')](_0x53f1ee[_0x136372('0x1e')],{[Op['or']]:_[_0x136372('0x6d')](_0x53d1bc,function(_0x199fa4){const _0xf659=_0x136372;if(_0x199fa4[_0xf659('0x8c')]!=='VIRTUAL'){const _0x4c85d7={};return _0x4c85d7[_0x199fa4['name']]={[Op[_0xf659('0xa')]]:'%'+_0x1df63a['query'][_0xf659('0x7d')]+'%'},_0x4c85d7;}})}));_0x53f1ee=_[_0x136372('0x6a')]({},_0x53f1ee,_0x1df63a['options']);const _0x168f72={'where':_0x53f1ee['where']};return db[_0x136372('0x40')][_0x136372('0x5e')](_0x168f72)[_0x136372('0x51')](function(_0x5943e8){const _0x3d0fc0=_0x136372;return _0x272f78[_0x3d0fc0('0x5e')]=_0x5943e8,_0x1df63a[_0x3d0fc0('0x22')][_0x3d0fc0('0x2c')]&&(_0x53f1ee[_0x3d0fc0('0x36')]=[{'all':!![]}]),db['AnalyticDefaultReport'][_0x3d0fc0('0x66')](_0x53f1ee);})['then'](function(_0x3741a1){return _0x272f78['rows']=_0x3741a1,_0x272f78;})[_0x136372('0x51')](respondWithFilteredResult(_0x1935b5,_0x53f1ee))['catch'](handleError(_0x1935b5,null));},exports[_0x5ebedc('0x48')]=function(_0x1c1d48,_0x5ae98e){const _0x15c81a=_0x5ebedc;let _0x3d767e={'raw':!![],'where':{'id':_0x1c1d48['params']['id']}};const _0x5d9484={};return _0x5d9484[_0x15c81a('0x49')]=_[_0x15c81a('0x53')](db[_0x15c81a('0x40')][_0x15c81a('0xe')]),_0x5d9484[_0x15c81a('0x22')]=_['keys'](_0x1c1d48[_0x15c81a('0x22')]),_0x5d9484[_0x15c81a('0x32')]=_[_0x15c81a('0x16')](_0x5d9484[_0x15c81a('0x49')],_0x5d9484[_0x15c81a('0x22')]),_0x3d767e[_0x15c81a('0x4e')]=_[_0x15c81a('0x16')](_0x5d9484[_0x15c81a('0x49')],qs[_0x15c81a('0x78')](_0x1c1d48[_0x15c81a('0x22')]['fields'])),_0x3d767e[_0x15c81a('0x4e')]=_0x3d767e[_0x15c81a('0x4e')][_0x15c81a('0x23')]?_0x3d767e[_0x15c81a('0x4e')]:_0x5d9484[_0x15c81a('0x49')],_0x1c1d48['query']['includeAll']&&(_0x3d767e[_0x15c81a('0x36')]=[{'all':!![]}]),_0x3d767e=_[_0x15c81a('0x6a')]({},_0x3d767e,_0x1c1d48[_0x15c81a('0x64')]),db[_0x15c81a('0x40')][_0x15c81a('0x76')](_0x3d767e)['then'](handleEntityNotFound(_0x5ae98e,null))[_0x15c81a('0x51')](respondWithResult(_0x5ae98e,null))['catch'](handleError(_0x5ae98e,null));},exports[_0x5ebedc('0x45')]=function(_0x273e34,_0xab9d29){const _0x3deb83=_0x5ebedc;return db['AnalyticDefaultReport'][_0x3deb83('0x45')](_0x273e34['body'],{})['then'](function(_0x4eb4de){const _0x3c59a0=_0x3deb83,_0x5b93d1=_0x273e34[_0x3c59a0('0x20')][_0x3c59a0('0x60')]({'plain':!![]});if(!_0x5b93d1)throw new Error(_0x3c59a0('0x24'));if(_0x5b93d1[_0x3c59a0('0x7b')]===_0x3c59a0('0x20')){const _0x350569=_0x4eb4de[_0x3c59a0('0x60')]({'plain':!![]}),_0x543fbd='Reports';return db[_0x3c59a0('0x7a')][_0x3c59a0('0x76')]({'where':{'name':_0x543fbd,'userProfileId':_0x5b93d1[_0x3c59a0('0x29')]},'raw':!![]})[_0x3c59a0('0x51')](function(_0x5d84da){const _0x5181d6=_0x3c59a0;return _0x5d84da&&_0x5d84da['autoAssociation']===0x0?db[_0x5181d6('0x21')]['create']({'name':_0x350569[_0x5181d6('0x83')],'resourceId':_0x350569['id'],'type':_0x5181d6('0x1'),'sectionId':_0x5d84da['id']},{})[_0x5181d6('0x51')](function(){return _0x4eb4de;}):_0x4eb4de;})[_0x3c59a0('0x27')](function(_0x775d32){const _0x34493e=_0x3c59a0;logger[_0x34493e('0x17')](_0x34493e('0x4b'),_0x775d32);throw _0x775d32;});}return _0x4eb4de;})['then'](respondWithResult(_0xab9d29,0xc9))['catch'](handleError(_0xab9d29,null));},exports[_0x5ebedc('0x3d')]=function(_0x3bd106,_0x356c1e){const _0x5c12cd=_0x5ebedc;return _0x3bd106[_0x5c12cd('0x3a')]['id']&&delete _0x3bd106[_0x5c12cd('0x3a')]['id'],db['AnalyticDefaultReport'][_0x5c12cd('0x76')]({'where':{'id':_0x3bd106[_0x5c12cd('0x80')]['id']}})['then'](handleEntityNotFound(_0x356c1e,null))[_0x5c12cd('0x51')](saveUpdates(_0x3bd106['body'],null))[_0x5c12cd('0x51')](respondWithResult(_0x356c1e,null))[_0x5c12cd('0x27')](handleError(_0x356c1e,null));},exports[_0x5ebedc('0x70')]=function(_0x84557c,_0x5a24b1){const _0x434ee0=_0x5ebedc;return db['AnalyticDefaultReport']['findOne']({'where':{'id':_0x84557c[_0x434ee0('0x80')]['id']}})['then'](handleEntityNotFound(_0x5a24b1,null))['then'](removeEntity(_0x5a24b1,null))[_0x434ee0('0x27')](handleError(_0x5a24b1,null));},exports[_0x5ebedc('0x39')]=function(_0x4e089a,_0x5eee15){const _0x1729b0=_0x5ebedc,_0x1879b4=0xa,_0x5622b7=[_0x1729b0('0x15'),'left_join',_0x1729b0('0x54'),_0x1729b0('0x14')],_0x594638={'SUM':'SUM(%s)','COUNT':_0x1729b0('0x56'),'COUNT\x20DISTINCT':_0x1729b0('0x65'),'MAX':_0x1729b0('0x1b'),'MIN':_0x1729b0('0x52'),'AVG':_0x1729b0('0x0'),'GROUP_CONCAT':_0x1729b0('0x79'),'GROUP_CONCAT\x20ASC':_0x1729b0('0x68'),'GROUP_CONCAT\x20DESC':_0x1729b0('0x81')},_0x2fb1f3={'SEC_TO_TIME':'SEC_TO_TIME(%s)','DATE':'DATE(%s)','HOUR':'HOUR(%s)','ROUND':_0x1729b0('0x28'),'UNIX_TIMESTAMP':_0x1729b0('0x75')},_0x440d66=function(_0x326dd4){const _0x438d10=_0x1729b0;return!_[_0x438d10('0x55')](['IS\x20NULL',_0x438d10('0x77'),_0x438d10('0x5f'),_0x438d10('0x74')],_0x326dd4);},_0x381db8=function(_0x3ad975){const _0x3f1ea2=_0x1729b0;if(!_0x3ad975||!_0x3ad975['rules']['length'])return'';let _0x3f8336='(';for(let _0x390437=0x0;_0x390437<_0x3ad975[_0x3f1ea2('0x4')]['length'];_0x390437+=0x1){_0x390437>0x0&&(_0x3f8336+='\x20'+_0x3ad975[_0x3f1ea2('0x38')]+'\x20'),_0x3f8336+=_0x3ad975[_0x3f1ea2('0x4')][_0x390437][_0x3f1ea2('0x63')]?_0x381db8(_0x3ad975[_0x3f1ea2('0x4')][_0x390437]['group']):_0x3ad975[_0x3f1ea2('0x4')][_0x390437][_0x3f1ea2('0xf')]+'\x20'+_0x3ad975[_0x3f1ea2('0x4')][_0x390437][_0x3f1ea2('0x47')]+(_0x440d66(_0x3ad975[_0x3f1ea2('0x4')][_0x390437]['condition'])?'\x20'+_0x3ad975[_0x3f1ea2('0x4')][_0x390437][_0x3f1ea2('0x5')]:'');}return _0x3f8336+')';};let _0x4ab19b={'where':{'id':_0x4e089a['params']['id']}},_0x4fb13b,_0x115b99,_0xf5e49e;return _0x4ab19b=_[_0x1729b0('0x6a')]({},_0x4ab19b,_0x4e089a[_0x1729b0('0x64')]),db[_0x1729b0('0x40')]['findOne'](_0x4ab19b)[_0x1729b0('0x51')](function(_0x58ee9d){const _0x280377=_0x1729b0;if(_0x58ee9d)return _0x4fb13b=_0x58ee9d,_0x58ee9d[_0x280377('0x18')]();return null;})[_0x1729b0('0x51')](function(_0x51c1c8){const _0x3876f3=_0x1729b0;if(_0x51c1c8){if(!_0x51c1c8[_0x3876f3('0x23')])throw new ValidationErrorItem(_0x3876f3('0x46'),0x193);return _0x115b99=_0x51c1c8,db[_0x3876f3('0x86')][_0x3876f3('0x66')]({'raw':!![]});}return null;})[_0x1729b0('0x51')](function(_0x46109a){const _0xce0c5e=_0x1729b0;if(_0x46109a){_0xf5e49e=_[_0xce0c5e('0x2b')](_0x46109a,'id');let _0x1897b2;const _0x2a26b3=squel[_0xce0c5e('0x31')]();_0x2a26b3[_0xce0c5e('0x8d')](_0x4fb13b[_0xce0c5e('0x6')]);for(let _0x24eb83=0x0;_0x24eb83<_0x115b99[_0xce0c5e('0x23')];_0x24eb83+=0x1){_0x1897b2=_0x115b99[_0x24eb83][_0xce0c5e('0x7c')]?_0xf5e49e[_0x115b99[_0x24eb83][_0xce0c5e('0x7c')]][_0xce0c5e('0x4d')]:_0x115b99[_0x24eb83][_0xce0c5e('0xf')],_0x1897b2=_0x115b99[_0x24eb83][_0xce0c5e('0x3f')]?_[_0xce0c5e('0x34')](_0x594638[_0x115b99[_0x24eb83]['function']],'%s',_0x1897b2):_0x1897b2,_0x1897b2=_0x115b99[_0x24eb83][_0xce0c5e('0x61')]?_[_0xce0c5e('0x34')](_0x2fb1f3[_0x115b99[_0x24eb83]['format']],'%s',_0x1897b2):_0x1897b2,_0x115b99[_0x24eb83][_0xce0c5e('0x67')]&&_0x2a26b3[_0xce0c5e('0x63')](_0x1897b2),_0x115b99[_0x24eb83][_0xce0c5e('0x59')]&&_0x2a26b3[_0xce0c5e('0x85')](_0x1897b2,_0x115b99[_0x24eb83][_0xce0c5e('0x59')]==='DESC'?![]:!![]),_0x2a26b3[_0xce0c5e('0xf')](_0x1897b2,_0x115b99[_0x24eb83][_0xce0c5e('0x6b')]||_0x1897b2);}if(_0x4fb13b['joins']){_0x4fb13b['joins']=JSON[_0xce0c5e('0x1c')](_0x4fb13b[_0xce0c5e('0x26')]);for(let _0x292554=0x0;_0x292554<_0x4fb13b[_0xce0c5e('0x26')][_0xce0c5e('0x23')];_0x292554+=0x1){_0x4fb13b['joins'][_0x292554][_0xce0c5e('0x8c')]&&_['includes'](_0x5622b7,_0x4fb13b[_0xce0c5e('0x26')][_0x292554][_0xce0c5e('0x8c')])&&_0x4fb13b['joins'][_0x292554][_0xce0c5e('0x62')]&&_0x4fb13b[_0xce0c5e('0x26')][_0x292554]['foreignTable']&&_0x4fb13b[_0xce0c5e('0x26')][_0x292554][_0xce0c5e('0x89')]&&_0x2a26b3[_0x4fb13b[_0xce0c5e('0x26')][_0x292554][_0xce0c5e('0x8c')]](_0x4fb13b[_0xce0c5e('0x26')][_0x292554][_0xce0c5e('0x2a')],null,util[_0xce0c5e('0x61')](_0xce0c5e('0x13'),_0x4fb13b['table'],_0x4fb13b[_0xce0c5e('0x26')][_0x292554]['parentKey'],_0x4fb13b[_0xce0c5e('0x26')][_0x292554]['foreignTable'],_0x4fb13b[_0xce0c5e('0x26')][_0x292554][_0xce0c5e('0x89')]));}}return _0x4fb13b[_0xce0c5e('0x6f')]&&(_0x4fb13b[_0xce0c5e('0x6f')]=JSON[_0xce0c5e('0x1c')](_0x4fb13b[_0xce0c5e('0x6f')]),_0x2a26b3[_0xce0c5e('0x1e')](_0x381db8(_0x4fb13b[_0xce0c5e('0x6f')][_0xce0c5e('0x63')]))),_0x2a26b3[_0xce0c5e('0x4a')](_0x1879b4),_0x2a26b3[_0xce0c5e('0x25')](0x0),logger[_0xce0c5e('0x7')](_0xce0c5e('0x4c'),_0x2a26b3['toString']()),db['sequelize'][_0xce0c5e('0x22')](_0x2a26b3[_0xce0c5e('0x5a')](),{'type':QueryTypes[_0xce0c5e('0x37')]});}})['then'](respondWithResult(_0x5eee15,null))['catch'](handleError(_0x5eee15,null));};function runReport(_0x370c9b,_0x31105f,_0x4f5f3c){const _0x5e87c1=_0x5ebedc,_0x4fd36d=_0x31105f[_0x5e87c1('0x83')],_0x427afa=0xa,_0x115172=[_0x5e87c1('0x15'),_0x5e87c1('0x1d'),'right_join','cross_join'],_0x23ad1c={'SUM':'SUM(%s)','COUNT':_0x5e87c1('0x56'),'COUNT\x20DISTINCT':'COUNT(DISTINCT\x20%s)','MAX':_0x5e87c1('0x1b'),'MIN':_0x5e87c1('0x52'),'AVG':_0x5e87c1('0x0'),'GROUP_CONCAT':_0x5e87c1('0x79'),'GROUP_CONCAT\x20ASC':_0x5e87c1('0x68'),'GROUP_CONCAT\x20DESC':_0x5e87c1('0x81')},_0x101691={'SEC_TO_TIME':_0x5e87c1('0x4f'),'DATE':_0x5e87c1('0x41'),'HOUR':_0x5e87c1('0x2e'),'ROUND':_0x5e87c1('0x28'),'UNIX_TIMESTAMP':_0x5e87c1('0x75')},_0x5d0238=function(_0x3fd95c){const _0x1fe8b1=_0x5e87c1;return!_[_0x1fe8b1('0x55')](['IS\x20NULL',_0x1fe8b1('0x77'),_0x1fe8b1('0x5f'),_0x1fe8b1('0x74')],_0x3fd95c);},_0x3c99af=function(_0x36927d){const _0x17e508=_0x5e87c1;if(!_0x36927d||!_0x36927d['rules'][_0x17e508('0x23')])return'';let _0x484b3a='(';for(let _0x26f137=0x0;_0x26f137<_0x36927d[_0x17e508('0x4')][_0x17e508('0x23')];_0x26f137+=0x1){_0x26f137>0x0&&(_0x484b3a+='\x20'+_0x36927d[_0x17e508('0x38')]+'\x20'),_0x484b3a+=_0x36927d[_0x17e508('0x4')][_0x26f137][_0x17e508('0x63')]?_0x3c99af(_0x36927d['rules'][_0x26f137][_0x17e508('0x63')]):_0x36927d[_0x17e508('0x4')][_0x26f137][_0x17e508('0xf')]+'\x20'+_0x36927d[_0x17e508('0x4')][_0x26f137]['condition']+(_0x5d0238(_0x36927d['rules'][_0x26f137][_0x17e508('0x47')])?'\x20'+_0x36927d[_0x17e508('0x4')][_0x26f137][_0x17e508('0x5')]:'');}return _0x484b3a+')';};let _0x5c4285={'where':{'id':_0x370c9b['id']}},_0x24ec37,_0x37c8e5,_0xcf876a,_0x2bc4cd,_0x398205;return _0x5c4285=_[_0x5e87c1('0x6a')]({},_0x5c4285,_0x4f5f3c),db[_0x5e87c1('0x40')][_0x5e87c1('0x76')](_0x5c4285)[_0x5e87c1('0x51')](function(_0x282fe0){if(_0x282fe0)return _0x24ec37=_0x282fe0,_0x282fe0['getFields']();return null;})[_0x5e87c1('0x51')](function(_0x281f9e){const _0x50e085=_0x5e87c1;if(_0x281f9e){if(!_0x281f9e['length'])throw new ValidationErrorItem('Please\x20insert\x20at\x20least\x20one\x20field',0x193);return _0x37c8e5=_0x281f9e,db[_0x50e085('0x86')][_0x50e085('0x66')]({'raw':!![]});}return null;})[_0x5e87c1('0x51')](function(_0x383520){const _0x20c0c6=_0x5e87c1;if(_0x383520){_0xcf876a=_[_0x20c0c6('0x2b')](_0x383520,'id');let _0x23a490;const _0x52eac5=squel[_0x20c0c6('0x31')]();_0x52eac5[_0x20c0c6('0x8d')](_0x24ec37['table']);for(let _0x27f7d3=0x0;_0x27f7d3<_0x37c8e5[_0x20c0c6('0x23')];_0x27f7d3+=0x1){_0x23a490=_0x37c8e5[_0x27f7d3][_0x20c0c6('0x7c')]?_0xcf876a[_0x37c8e5[_0x27f7d3][_0x20c0c6('0x7c')]][_0x20c0c6('0x4d')]:_0x37c8e5[_0x27f7d3][_0x20c0c6('0xf')],_0x23a490=_0x37c8e5[_0x27f7d3]['function']?_[_0x20c0c6('0x34')](_0x23ad1c[_0x37c8e5[_0x27f7d3][_0x20c0c6('0x3f')]],'%s',_0x23a490):_0x23a490,_0x23a490=_0x37c8e5[_0x27f7d3]['format']?_[_0x20c0c6('0x34')](_0x101691[_0x37c8e5[_0x27f7d3]['format']],'%s',_0x23a490):_0x23a490,_0x37c8e5[_0x27f7d3][_0x20c0c6('0x67')]&&_0x52eac5[_0x20c0c6('0x63')](_0x23a490),_0x37c8e5[_0x27f7d3][_0x20c0c6('0x59')]&&_0x52eac5['order'](_0x23a490,_0x37c8e5[_0x27f7d3][_0x20c0c6('0x59')]===_0x20c0c6('0x87')?![]:!![]),_0x52eac5[_0x20c0c6('0xf')](_0x23a490,_0x37c8e5[_0x27f7d3][_0x20c0c6('0x6b')]||_0x23a490);}if(_0x24ec37[_0x20c0c6('0x26')]){_0x24ec37[_0x20c0c6('0x26')]=JSON['parse'](_0x24ec37[_0x20c0c6('0x26')]);for(let _0x529255=0x0;_0x529255<_0x24ec37[_0x20c0c6('0x26')][_0x20c0c6('0x23')];_0x529255+=0x1){_0x24ec37[_0x20c0c6('0x26')][_0x529255][_0x20c0c6('0x8c')]&&_[_0x20c0c6('0x55')](_0x115172,_0x24ec37['joins'][_0x529255]['type'])&&_0x24ec37[_0x20c0c6('0x26')][_0x529255][_0x20c0c6('0x62')]&&_0x24ec37[_0x20c0c6('0x26')][_0x529255]['foreignTable']&&_0x24ec37[_0x20c0c6('0x26')][_0x529255]['foreignKey']&&_0x52eac5[_0x24ec37[_0x20c0c6('0x26')][_0x529255]['type']](_0x24ec37[_0x20c0c6('0x26')][_0x529255][_0x20c0c6('0x2a')],null,util[_0x20c0c6('0x61')](_0x20c0c6('0x13'),_0x24ec37[_0x20c0c6('0x6')],_0x24ec37[_0x20c0c6('0x26')][_0x529255][_0x20c0c6('0x62')],_0x24ec37['joins'][_0x529255]['foreignTable'],_0x24ec37[_0x20c0c6('0x26')][_0x529255]['foreignKey']));}}return _0x24ec37[_0x20c0c6('0x6f')]&&(_0x24ec37[_0x20c0c6('0x6f')]=JSON[_0x20c0c6('0x1c')](_0x24ec37[_0x20c0c6('0x6f')]),_0x52eac5[_0x20c0c6('0x1e')](_0x3c99af(_0x24ec37[_0x20c0c6('0x6f')][_0x20c0c6('0x63')]))),_0x398205=_0x52eac5[_0x20c0c6('0x71')](),_0x52eac5[_0x20c0c6('0x4a')](_0x427afa),_0x52eac5[_0x20c0c6('0x25')](0x0),logger['debug']('Limited\x20Query:',_0x52eac5['toString']()),db[_0x20c0c6('0x43')][_0x20c0c6('0x22')](_0x52eac5[_0x20c0c6('0x5a')](),{'type':QueryTypes[_0x20c0c6('0x37')]});}})[_0x5e87c1('0x51')](function(_0x326684){const _0x287b4d=_0x5e87c1;if(!_0x326684[_0x287b4d('0x23')])throw new ValidationErrorItem('No\x20available\x20data',0xcc);if(_0x31105f[_0x287b4d('0xb')]==='web')return null;const _0x4d4461=_['merge'](_0x31105f,{'name':_0x31105f[_0x287b4d('0x5c')]||_0x31105f[_0x287b4d('0x83')]||_0x24ec37[_0x287b4d('0x83')],'basename':_0x4fd36d,'savename':util[_0x287b4d('0x61')]('%s-%s.%s',_0x31105f[_0x287b4d('0x83')]||_0x24ec37[_0x287b4d('0x83')],require(_0x287b4d('0x57'))[_0x287b4d('0x7e')](0x4),_0x31105f[_0x287b4d('0xb')]||_0x287b4d('0x5d')),'reportId':_0x24ec37['id'],'reportType':_0x287b4d('0x12')});return db[_0x287b4d('0x2')]['create'](_0x4d4461,{'raw':!![]});})[_0x5e87c1('0x51')](function(_0x29f005){const _0x1b12e5=_0x5e87c1;_0x24ec37[_0x1b12e5('0x6')]==='cdr'?_0x398205[_0x1b12e5('0x1e')](_0x24ec37[_0x1b12e5('0x6')]+'.calldate\x20BETWEEN\x20?\x20AND\x20?',_0x31105f[_0x1b12e5('0x3c')],_0x31105f[_0x1b12e5('0x44')]):_0x398205['where'](_0x24ec37[_0x1b12e5('0x6')]+_0x1b12e5('0x50'),_0x31105f[_0x1b12e5('0x3c')],_0x31105f[_0x1b12e5('0x44')]);if(_0x29f005)return logger[_0x1b12e5('0x3e')]('Run\x20Query:',_0x398205[_0x1b12e5('0x5a')]()),require(_0x1b12e5('0x8'))[_0x1b12e5('0x2d')](path[_0x1b12e5('0x15')](__dirname,_0x1b12e5('0x30'),_0x29f005[_0x1b12e5('0xb')]),[_0x29f005['id'],_0x398205['toString'](),path['join'](__dirname,_0x1b12e5('0x3'),_0x29f005['savename']),_0x4fd36d]),_0x29f005;else{const _0x1a191b=squel[_0x1b12e5('0x31')]();return _0x1a191b['from']('('+_0x398205[_0x1b12e5('0x5a')]()+')',_0x1b12e5('0x73')),_0x1a191b['field'](_0x1b12e5('0x42'),'count'),_0x398205['limit'](_0x31105f[_0x1b12e5('0x4a')]||_0x427afa),_0x398205['offset'](_0x31105f[_0x1b12e5('0x25')]||0x0),dbH[_0x1b12e5('0x43')]['query'](_0x1a191b[_0x1b12e5('0x5a')](),{'type':dbH[_0x1b12e5('0x43')]['QueryTypes'][_0x1b12e5('0x37')]})[_0x1b12e5('0x51')](function(_0x1e157c){const _0x3cdd9e=_0x1b12e5;return!_0x1e157c[_0x3cdd9e('0x23')]?_0x2bc4cd=0x0:_0x2bc4cd=_0x1e157c[0x0][_0x3cdd9e('0x5e')]||0x0,dbH[_0x3cdd9e('0x43')]['query'](_0x398205[_0x3cdd9e('0x5a')](),{'type':dbH['sequelize'][_0x3cdd9e('0x19')][_0x3cdd9e('0x37')]});})[_0x1b12e5('0x51')](function(_0x1d49ab){return{'rows':_0x1d49ab||[],'count':_0x2bc4cd};});}});}exports['run']=function(_0x28f98d,_0x333b54){const _0xfacfb8=_0x5ebedc;return runReport(_0x28f98d['params'],_0x28f98d['query'],_0x28f98d[_0xfacfb8('0x64')])[_0xfacfb8('0x51')](respondWithResult(_0x333b54,null))[_0xfacfb8('0x27')](handleError(_0x333b54,null));},exports[_0x5ebedc('0x88')]=runReport,exports['query']=function(_0x39ed23,_0x230577){const _0x3aad04=_0x5ebedc,_0x594118=0xa,_0x656cc5=['join','left_join',_0x3aad04('0x54'),'cross_join'],_0x1e8151={'SUM':_0x3aad04('0xd'),'COUNT':_0x3aad04('0x56'),'COUNT\x20DISTINCT':_0x3aad04('0x65'),'MAX':'MAX(%s)','MIN':_0x3aad04('0x52'),'AVG':_0x3aad04('0x0'),'GROUP_CONCAT':'GROUP_CONCAT(%s)','GROUP_CONCAT\x20ASC':'GROUP_CONCAT(%s\x20ORDER\x20BY\x20%s\x20ASC)','GROUP_CONCAT\x20DESC':_0x3aad04('0x81')},_0x1c4b84={'SEC_TO_TIME':_0x3aad04('0x4f'),'DATE':_0x3aad04('0x41'),'HOUR':_0x3aad04('0x2e'),'ROUND':_0x3aad04('0x28'),'UNIX_TIMESTAMP':_0x3aad04('0x75')},_0x2aed5c=function(_0x3a269c){const _0x1786a2=_0x3aad04;return!_['includes']([_0x1786a2('0x82'),'IS\x20NOT\x20NULL',_0x1786a2('0x5f'),'IS\x20NOT\x20EMPTY'],_0x3a269c);},_0x7a3b76=function(_0xb0acb2){const _0x285dcd=_0x3aad04;if(!_0xb0acb2||!_0xb0acb2['rules'][_0x285dcd('0x23')])return'';let _0x440206='(';for(let _0x3a7e98=0x0;_0x3a7e98<_0xb0acb2[_0x285dcd('0x4')][_0x285dcd('0x23')];_0x3a7e98+=0x1){_0x3a7e98>0x0&&(_0x440206+='\x20'+_0xb0acb2[_0x285dcd('0x38')]+'\x20'),_0x440206+=_0xb0acb2[_0x285dcd('0x4')][_0x3a7e98][_0x285dcd('0x63')]?_0x7a3b76(_0xb0acb2['rules'][_0x3a7e98][_0x285dcd('0x63')]):_0xb0acb2['rules'][_0x3a7e98][_0x285dcd('0xf')]+'\x20'+_0xb0acb2[_0x285dcd('0x4')][_0x3a7e98][_0x285dcd('0x47')]+(_0x2aed5c(_0xb0acb2[_0x285dcd('0x4')][_0x3a7e98][_0x285dcd('0x47')])?'\x20'+_0xb0acb2[_0x285dcd('0x4')][_0x3a7e98][_0x285dcd('0x5')]:'');}return _0x440206+')';};let _0x5c0490={'where':{'id':_0x39ed23['params']['id']}},_0x3c3eb3,_0x3867b4,_0x298217,_0x2d4f02;return _0x5c0490=_[_0x3aad04('0x6a')]({},_0x5c0490,_0x39ed23[_0x3aad04('0x64')]),db[_0x3aad04('0x40')][_0x3aad04('0x76')](_0x5c0490)[_0x3aad04('0x51')](function(_0x476e9b){if(_0x476e9b)return _0x3c3eb3=_0x476e9b,_0x476e9b['getFields']();return null;})[_0x3aad04('0x51')](function(_0x451b13){const _0xd16f2d=_0x3aad04;if(_0x451b13){if(!_0x451b13[_0xd16f2d('0x23')])throw new ValidationErrorItem(_0xd16f2d('0x46'),0x193);return _0x3867b4=_0x451b13,db[_0xd16f2d('0x86')][_0xd16f2d('0x66')]({'raw':!![]});}return null;})[_0x3aad04('0x51')](function(_0x16a3fd){const _0x2008d9=_0x3aad04;if(_0x16a3fd){_0x298217=_[_0x2008d9('0x2b')](_0x16a3fd,'id');let _0x4ab9a2;const _0x4ef5d7=squel[_0x2008d9('0x31')]();_0x4ef5d7['from'](_0x3c3eb3[_0x2008d9('0x6')]);for(let _0x38b2b2=0x0;_0x38b2b2<_0x3867b4['length'];_0x38b2b2+=0x1){_0x4ab9a2=_0x3867b4[_0x38b2b2][_0x2008d9('0x7c')]?_0x298217[_0x3867b4[_0x38b2b2][_0x2008d9('0x7c')]][_0x2008d9('0x4d')]:_0x3867b4[_0x38b2b2][_0x2008d9('0xf')],_0x4ab9a2=_0x3867b4[_0x38b2b2][_0x2008d9('0x3f')]?_[_0x2008d9('0x34')](_0x1e8151[_0x3867b4[_0x38b2b2][_0x2008d9('0x3f')]],'%s',_0x4ab9a2):_0x4ab9a2,_0x4ab9a2=_0x3867b4[_0x38b2b2][_0x2008d9('0x61')]?_[_0x2008d9('0x34')](_0x1c4b84[_0x3867b4[_0x38b2b2][_0x2008d9('0x61')]],'%s',_0x4ab9a2):_0x4ab9a2,_0x3867b4[_0x38b2b2][_0x2008d9('0x67')]&&_0x4ef5d7[_0x2008d9('0x63')](_0x4ab9a2),_0x3867b4[_0x38b2b2][_0x2008d9('0x59')]&&_0x4ef5d7[_0x2008d9('0x85')](_0x4ab9a2,_0x3867b4[_0x38b2b2][_0x2008d9('0x59')]===_0x2008d9('0x87')?![]:!![]),_0x4ef5d7[_0x2008d9('0xf')](_0x4ab9a2,_0x3867b4[_0x38b2b2][_0x2008d9('0x6b')]||_0x4ab9a2);}if(_0x3c3eb3['joins']){_0x3c3eb3[_0x2008d9('0x26')]=JSON[_0x2008d9('0x1c')](_0x3c3eb3[_0x2008d9('0x26')]);for(let _0x44c96c=0x0;_0x44c96c<_0x3c3eb3[_0x2008d9('0x26')]['length'];_0x44c96c+=0x1){_0x3c3eb3[_0x2008d9('0x26')][_0x44c96c][_0x2008d9('0x8c')]&&_[_0x2008d9('0x55')](_0x656cc5,_0x3c3eb3[_0x2008d9('0x26')][_0x44c96c]['type'])&&_0x3c3eb3['joins'][_0x44c96c][_0x2008d9('0x62')]&&_0x3c3eb3[_0x2008d9('0x26')][_0x44c96c]['foreignTable']&&_0x3c3eb3['joins'][_0x44c96c][_0x2008d9('0x89')]&&_0x4ef5d7[_0x3c3eb3[_0x2008d9('0x26')][_0x44c96c][_0x2008d9('0x8c')]](_0x3c3eb3[_0x2008d9('0x26')][_0x44c96c][_0x2008d9('0x2a')],null,util[_0x2008d9('0x61')](_0x2008d9('0x13'),_0x3c3eb3['table'],_0x3c3eb3[_0x2008d9('0x26')][_0x44c96c][_0x2008d9('0x62')],_0x3c3eb3[_0x2008d9('0x26')][_0x44c96c][_0x2008d9('0x2a')],_0x3c3eb3[_0x2008d9('0x26')][_0x44c96c][_0x2008d9('0x89')]));}}return _0x3c3eb3[_0x2008d9('0x6f')]&&(_0x3c3eb3['conditions']=JSON[_0x2008d9('0x1c')](_0x3c3eb3[_0x2008d9('0x6f')]),_0x4ef5d7['where'](_0x7a3b76(_0x3c3eb3[_0x2008d9('0x6f')]['group']))),_0x2d4f02=_0x4ef5d7[_0x2008d9('0x71')](),_0x4ef5d7[_0x2008d9('0x4a')](_0x594118),_0x4ef5d7[_0x2008d9('0x25')](0x0),logger[_0x2008d9('0x7')]('Limited\x20Query:',_0x4ef5d7[_0x2008d9('0x5a')]()),db['sequelize']['query'](_0x4ef5d7[_0x2008d9('0x5a')](),{'type':QueryTypes[_0x2008d9('0x37')]});}})[_0x3aad04('0x51')](function(){const _0x409242=_0x3aad04;return{'sql':_0x2d4f02[_0x409242('0x5a')]()};})['then'](respondWithResult(_0x230577,null))['catch'](handleError(_0x230577,null));}; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/analyticDefaultReport.model.js b/server/api/analyticDefaultReport/analyticDefaultReport.model.js index 6056d8b..8e9439c 100644 --- a/server/api/analyticDefaultReport/analyticDefaultReport.model.js +++ b/server/api/analyticDefaultReport/analyticDefaultReport.model.js @@ -1 +1 @@ -const a10_0x57b1=['define','AnalyticDefaultReport','analytics_default_reports'];(function(_0x3d5033,_0x57b1f0){const _0x1651a3=function(_0x1e816e){while(--_0x1e816e){_0x3d5033['push'](_0x3d5033['shift']());}};_0x1651a3(++_0x57b1f0);}(a10_0x57b1,0x12d));const a10_0x1651=function(_0x3d5033,_0x57b1f0){_0x3d5033=_0x3d5033-0x0;let _0x1651a3=a10_0x57b1[_0x3d5033];return _0x1651a3;};'use strict';const attributes=require('./analyticDefaultReport.attributes');module['exports']=function(_0x1e816e){const _0x5845ee=a10_0x1651,_0x9d546f=_0x1e816e[_0x5845ee('0x2')](_0x5845ee('0x0'),attributes,{'tableName':_0x5845ee('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x9d546f;}; \ No newline at end of file +const a10_0x46a4=['./analyticDefaultReport.attributes','AnalyticDefaultReport','exports','define'];(function(_0x1e62d1,_0x46a403){const _0xa6f9e9=function(_0x4a9dca){while(--_0x4a9dca){_0x1e62d1['push'](_0x1e62d1['shift']());}};_0xa6f9e9(++_0x46a403);}(a10_0x46a4,0x180));const a10_0xa6f9=function(_0x1e62d1,_0x46a403){_0x1e62d1=_0x1e62d1-0x0;let _0xa6f9e9=a10_0x46a4[_0x1e62d1];return _0xa6f9e9;};const _0x2f0709=a10_0xa6f9;'use strict';const attributes=require(_0x2f0709('0x0'));module[_0x2f0709('0x2')]=function(_0x4a9dca){const _0x49dae0=_0x2f0709,_0x4ae0bf=_0x4a9dca[_0x49dae0('0x3')](_0x49dae0('0x1'),attributes,{'tableName':'analytics_default_reports','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4ae0bf;}; \ No newline at end of file diff --git a/server/api/analyticDefaultReport/index.js b/server/api/analyticDefaultReport/index.js index 4ff743c..646aa31 100644 --- a/server/api/analyticDefaultReport/index.js +++ b/server/api/analyticDefaultReport/index.js @@ -1 +1 @@ -const a11_0x2311=['/:id/run','/:id/preview','query','update','exports','/:id/query','../../components/auth/service','destroy','/:id','run','isAuthenticated','get','delete','create','preview','post'];(function(_0xb3718b,_0x2311a0){const _0x2aefcf=function(_0x5841bf){while(--_0x5841bf){_0xb3718b['push'](_0xb3718b['shift']());}};_0x2aefcf(++_0x2311a0);}(a11_0x2311,0x134));const a11_0x2aef=function(_0xb3718b,_0x2311a0){_0xb3718b=_0xb3718b-0x0;let _0x2aefcf=a11_0x2311[_0xb3718b];return _0x2aefcf;};const _0x4653c8=a11_0x2aef;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x4653c8('0x2')),controller=require('./analyticDefaultReport.controller');router[_0x4653c8('0x7')]('/',auth[_0x4653c8('0x6')](),controller['index']),router['get'](_0x4653c8('0x4'),auth[_0x4653c8('0x6')](),controller['show']),router[_0x4653c8('0x7')](_0x4653c8('0xd'),auth[_0x4653c8('0x6')](),controller[_0x4653c8('0xa')]),router[_0x4653c8('0x7')](_0x4653c8('0xc'),auth[_0x4653c8('0x6')](),controller[_0x4653c8('0x5')]),router['get'](_0x4653c8('0x1'),auth['isAuthenticated'](),controller[_0x4653c8('0xe')]),router[_0x4653c8('0xb')]('/',auth[_0x4653c8('0x6')](),controller[_0x4653c8('0x9')]),router['put'](_0x4653c8('0x4'),auth[_0x4653c8('0x6')](),controller[_0x4653c8('0xf')]),router[_0x4653c8('0x8')](_0x4653c8('0x4'),auth[_0x4653c8('0x6')](),controller[_0x4653c8('0x3')]),module[_0x4653c8('0x0')]=router; \ No newline at end of file +const a11_0xcca8=['isAuthenticated','/:id/preview','../../components/auth/service','get','/:id/query','index','./analyticDefaultReport.controller','show','/:id','destroy','Router','create','preview','express','/:id/run','query','update','post'];(function(_0x1ba9e2,_0xcca862){const _0x43a6ef=function(_0x1cb256){while(--_0x1cb256){_0x1ba9e2['push'](_0x1ba9e2['shift']());}};_0x43a6ef(++_0xcca862);}(a11_0xcca8,0x1b4));const a11_0x43a6=function(_0x1ba9e2,_0xcca862){_0x1ba9e2=_0x1ba9e2-0x0;let _0x43a6ef=a11_0xcca8[_0x1ba9e2];return _0x43a6ef;};const _0x164afa=a11_0x43a6;'use strict';const express=require(_0x164afa('0x9')),router=express[_0x164afa('0x6')](),auth=require(_0x164afa('0x10')),controller=require(_0x164afa('0x2'));router[_0x164afa('0x11')]('/',auth['isAuthenticated'](),controller[_0x164afa('0x1')]),router['get']('/:id',auth[_0x164afa('0xe')](),controller[_0x164afa('0x3')]),router[_0x164afa('0x11')](_0x164afa('0xf'),auth[_0x164afa('0xe')](),controller[_0x164afa('0x8')]),router['get'](_0x164afa('0xa'),auth[_0x164afa('0xe')](),controller['run']),router[_0x164afa('0x11')](_0x164afa('0x0'),auth[_0x164afa('0xe')](),controller[_0x164afa('0xb')]),router[_0x164afa('0xd')]('/',auth[_0x164afa('0xe')](),controller[_0x164afa('0x7')]),router['put'](_0x164afa('0x4'),auth[_0x164afa('0xe')](),controller[_0x164afa('0xc')]),router['delete'](_0x164afa('0x4'),auth['isAuthenticated'](),controller[_0x164afa('0x5')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js index 5845156..e4a6c83 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.attributes.js @@ -1 +1 @@ -const a12_0x13bd=['ENUM','csv','manual','UNSIGNED','DATE','INTEGER','STRING','scheduled','sequelize','exports','Loading'];(function(_0x2eec51,_0x13bd2c){const _0x4ff17e=function(_0x6647c8){while(--_0x6647c8){_0x2eec51['push'](_0x2eec51['shift']());}};_0x4ff17e(++_0x13bd2c);}(a12_0x13bd,0x163));const a12_0x4ff1=function(_0x2eec51,_0x13bd2c){_0x2eec51=_0x2eec51-0x0;let _0x4ff17e=a12_0x13bd[_0x2eec51];return _0x4ff17e;};const _0x463a49=a12_0x4ff1;'use strict';const Sequelize=require(_0x463a49('0x5'));module[_0x463a49('0x6')]={'name':{'type':Sequelize[_0x463a49('0x3')],'allowNull':![]},'basename':{'type':Sequelize[_0x463a49('0x3')],'allowNull':![]},'output':{'type':Sequelize[_0x463a49('0x8')]('csv','pdf','xlsx'),'allowNull':![],'defaultValue':_0x463a49('0x9')},'savename':{'type':Sequelize['STRING'],'allowNull':![]},'startDate':{'type':Sequelize[_0x463a49('0x1')]},'endDate':{'type':Sequelize['DATE']},'status':{'type':Sequelize['STRING'],'defaultValue':_0x463a49('0x7')},'type':{'type':Sequelize[_0x463a49('0x8')](_0x463a49('0xa'),_0x463a49('0x4')),'allowNull':![],'defaultValue':_0x463a49('0xa')},'reportId':{'type':Sequelize[_0x463a49('0x2')](0xb)[_0x463a49('0x0')]},'reportType':{'type':Sequelize[_0x463a49('0x3')]}}; \ No newline at end of file +const a12_0x3fa5=['ENUM','DATE','STRING','manual','csv','scheduled','xlsx','INTEGER','Loading','UNSIGNED','exports'];(function(_0x392fa1,_0x3fa55e){const _0x282432=function(_0x4af9a5){while(--_0x4af9a5){_0x392fa1['push'](_0x392fa1['shift']());}};_0x282432(++_0x3fa55e);}(a12_0x3fa5,0x10b));const a12_0x2824=function(_0x392fa1,_0x3fa55e){_0x392fa1=_0x392fa1-0x0;let _0x282432=a12_0x3fa5[_0x392fa1];return _0x282432;};const _0x316894=a12_0x2824;'use strict';const Sequelize=require('sequelize');module[_0x316894('0x7')]={'name':{'type':Sequelize[_0x316894('0xa')],'allowNull':![]},'basename':{'type':Sequelize[_0x316894('0xa')],'allowNull':![]},'output':{'type':Sequelize[_0x316894('0x8')](_0x316894('0x1'),'pdf',_0x316894('0x3')),'allowNull':![],'defaultValue':_0x316894('0x1')},'savename':{'type':Sequelize[_0x316894('0xa')],'allowNull':![]},'startDate':{'type':Sequelize[_0x316894('0x9')]},'endDate':{'type':Sequelize[_0x316894('0x9')]},'status':{'type':Sequelize['STRING'],'defaultValue':_0x316894('0x5')},'type':{'type':Sequelize['ENUM'](_0x316894('0x0'),_0x316894('0x2')),'allowNull':![],'defaultValue':'manual'},'reportId':{'type':Sequelize[_0x316894('0x4')](0xb)[_0x316894('0x6')]},'reportType':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js index 6bec390..0ca75d1 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.controller.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.controller.js @@ -1 +1 @@ -const a13_0x19de=['then','status','limit','keys','lodash','AnalyticExtractedReport','offset','Unable\x20to\x20retrieve\x20the\x20current\x20user','sort','attributes','update','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','length','basename','exists','files/reports','catch','count','query','../../config/logger','join','Content-Range','stack','params','user','filter','send','merge','error','includeAll','json','fieldName','fields','../../mysqldb','autoAssociation','rows','rawAttributes','include','set','filters','end','findAll','name','intersection','../../components/parsers/qs','like','destroy','savename','output','role','key','type','options','Report\x20not\x20found\x20or\x20empty','show','format','map','VIRTUAL','toLowerCase','undefined','root','get','where','create','UserProfileResource','findOne','download','util','sendStatus','%s.%s','ExtractedReports','pick','model','body'];(function(_0x890268,_0x19de35){const _0x5c47f0=function(_0x585ef5){while(--_0x585ef5){_0x890268['push'](_0x890268['shift']());}};_0x5c47f0(++_0x19de35);}(a13_0x19de,0x160));const a13_0x5c47=function(_0x890268,_0x19de35){_0x890268=_0x890268-0x0;let _0x5c47f0=a13_0x19de[_0x890268];return _0x5c47f0;};const _0x4ed14f=a13_0x5c47;'use strict';const util=require(_0x4ed14f('0xb')),path=require('path'),fs=require('fs'),_=require(_0x4ed14f('0x16')),qs=require(_0x4ed14f('0x3e')),logger=require(_0x4ed14f('0x25'))('api'),config=require('../../config/environment'),db=require(_0x4ed14f('0x33'))['db'],{Op,ValidationError}=require('sequelize');function respondWithResult(_0x585ef5,_0x407541){return _0x407541=_0x407541||0xc8,function(_0xc9d419){const _0x4af774=a13_0x5c47;if(_0xc9d419)return _0x585ef5['status'](_0x407541)[_0x4af774('0x30')](_0xc9d419);};}function respondWithFilteredResult(_0x39754e,_0x2b7f99){return function(_0x107cac){const _0x578675=a13_0x5c47;if(_0x107cac){const _0x32adc9=_0x107cac['count'],_0x413223=_0x2b7f99['offset'];let _0x56ff7c=_0x2b7f99[_0x578675('0x18')]+_0x2b7f99[_0x578675('0x14')],_0x365ce3;return _0x56ff7c>=_0x32adc9?(_0x56ff7c=_0x32adc9,_0x365ce3=0xc8):_0x365ce3=0xce,_0x39754e[_0x578675('0x13')](_0x365ce3),_0x39754e[_0x578675('0x38')](_0x578675('0x27'),_0x413223+'-'+_0x56ff7c+'/'+_0x32adc9)[_0x578675('0x30')](_0x107cac);}return null;};}function saveUpdates(_0x387dc1){return function(_0x15215f){const _0x583fc5=a13_0x5c47;if(_0x15215f)return _0x15215f[_0x583fc5('0x1c')](_0x387dc1)[_0x583fc5('0x12')](function(_0x47e043){return _0x47e043;});return null;};}function removeEntity(_0x310c8f){return function(_0x16a19b){const _0x143325=a13_0x5c47;if(_0x16a19b)return _0x16a19b[_0x143325('0x40')]()[_0x143325('0x12')](function(){const _0x1c92c5=_0x143325,_0x4f1207=_0x16a19b[_0x1c92c5('0x5')]({'plain':!![]}),_0x98892c=_0x1c92c5('0xe');return db[_0x1c92c5('0x8')][_0x1c92c5('0x40')]({'where':{'type':_0x98892c,'resourceId':_0x4f1207['id']}})[_0x1c92c5('0x12')](function(){return _0x16a19b;});})[_0x143325('0x12')](function(){const _0x2c19bb=_0x143325;_0x310c8f[_0x2c19bb('0x13')](0xcc)[_0x2c19bb('0x3a')]();});};}function handleEntityNotFound(_0xb7aa50){return function(_0x4fde18){const _0x12a841=a13_0x5c47;return!_0x4fde18&&_0xb7aa50[_0x12a841('0xc')](0x194),_0x4fde18;};}function handleError(_0x1a3124,_0x3ae7ea){return _0x3ae7ea=_0x3ae7ea||0x1f4,function(_0x24487c){const _0x15bd19=a13_0x5c47;logger[_0x15bd19('0x2e')](_0x24487c[_0x15bd19('0x28')]),_0x24487c['name']&&delete _0x24487c['name'],_0x1a3124[_0x15bd19('0x13')](_0x3ae7ea)[_0x15bd19('0x2c')](_0x24487c);};}exports['index']=function(_0xcd5ca3,_0x1369b8){const _0x423acb=_0x4ed14f;let _0x42d3c9={};const _0x5d459c={},_0x49d543={'count':0x0,'rows':[]},_0x313866=_[_0x423acb('0x0')](db['AnalyticExtractedReport'][_0x423acb('0x36')],function(_0x89f5ca){const _0x2f7fe7=_0x423acb;return{'name':_0x89f5ca[_0x2f7fe7('0x31')],'type':_0x89f5ca[_0x2f7fe7('0x45')][_0x2f7fe7('0x44')]};});_0x5d459c['model']=_[_0x423acb('0x0')](_0x313866,_0x423acb('0x3c')),_0x5d459c[_0x423acb('0x24')]=_[_0x423acb('0x15')](_0xcd5ca3[_0x423acb('0x24')]),_0x5d459c[_0x423acb('0x39')]=_[_0x423acb('0x3d')](_0x5d459c[_0x423acb('0x10')],_0x5d459c[_0x423acb('0x24')]),_0x42d3c9[_0x423acb('0x1b')]=_[_0x423acb('0x3d')](_0x5d459c[_0x423acb('0x10')],qs[_0x423acb('0x32')](_0xcd5ca3[_0x423acb('0x24')][_0x423acb('0x32')])),_0x42d3c9[_0x423acb('0x1b')]=_0x42d3c9[_0x423acb('0x1b')][_0x423acb('0x1e')]?_0x42d3c9[_0x423acb('0x1b')]:_0x5d459c[_0x423acb('0x10')];typeof _0xcd5ca3[_0x423acb('0x24')]['nolimit']===_0x423acb('0x3')&&(_0x42d3c9[_0x423acb('0x14')]=qs[_0x423acb('0x14')](_0xcd5ca3[_0x423acb('0x24')][_0x423acb('0x14')]),_0x42d3c9[_0x423acb('0x18')]=qs['offset'](_0xcd5ca3[_0x423acb('0x24')]['offset']));_0x42d3c9['order']=qs[_0x423acb('0x1a')](_0xcd5ca3[_0x423acb('0x24')][_0x423acb('0x1a')]),_0x42d3c9[_0x423acb('0x6')]=qs[_0x423acb('0x39')](_[_0x423acb('0xf')](_0xcd5ca3[_0x423acb('0x24')],_0x5d459c[_0x423acb('0x39')]),_0x313866);_0xcd5ca3[_0x423acb('0x24')][_0x423acb('0x2b')]&&(_0x42d3c9[_0x423acb('0x6')]=_[_0x423acb('0x2d')](_0x42d3c9[_0x423acb('0x6')],{[Op['or']]:_[_0x423acb('0x0')](_0x313866,function(_0x321d33){const _0x3e20db=_0x423acb;if(_0x321d33[_0x3e20db('0x45')]!==_0x3e20db('0x1')){const _0xe047dc={};return _0xe047dc[_0x321d33[_0x3e20db('0x3c')]]={[Op[_0x3e20db('0x3f')]]:'%'+_0xcd5ca3[_0x3e20db('0x24')][_0x3e20db('0x2b')]+'%'},_0xe047dc;}})}));_0x42d3c9=_[_0x423acb('0x2d')]({},_0x42d3c9,_0xcd5ca3['options']);const _0x11e6c1={'where':_0x42d3c9['where']};return db[_0x423acb('0x17')][_0x423acb('0x23')](_0x11e6c1)[_0x423acb('0x12')](function(_0x59801b){const _0x5c6ddc=_0x423acb;return _0x49d543[_0x5c6ddc('0x23')]=_0x59801b,_0xcd5ca3[_0x5c6ddc('0x24')][_0x5c6ddc('0x2f')]&&(_0x42d3c9[_0x5c6ddc('0x37')]=[{'all':!![]}]),db[_0x5c6ddc('0x17')][_0x5c6ddc('0x3b')](_0x42d3c9);})[_0x423acb('0x12')](function(_0x7a11){const _0x50e8d8=_0x423acb;return _0x49d543[_0x50e8d8('0x35')]=_0x7a11,_0x49d543;})[_0x423acb('0x12')](respondWithFilteredResult(_0x1369b8,_0x42d3c9))[_0x423acb('0x22')](handleError(_0x1369b8,null));},exports[_0x4ed14f('0x48')]=function(_0x246241,_0x242970){const _0xc3caeb=_0x4ed14f;let _0x4048bd={'raw':!![],'where':{'id':_0x246241[_0xc3caeb('0x29')]['id']}};const _0xd36dfc={};return _0xd36dfc['model']=_[_0xc3caeb('0x15')](db[_0xc3caeb('0x17')]['rawAttributes']),_0xd36dfc[_0xc3caeb('0x24')]=_[_0xc3caeb('0x15')](_0x246241[_0xc3caeb('0x24')]),_0xd36dfc[_0xc3caeb('0x39')]=_['intersection'](_0xd36dfc[_0xc3caeb('0x10')],_0xd36dfc[_0xc3caeb('0x24')]),_0x4048bd[_0xc3caeb('0x1b')]=_[_0xc3caeb('0x3d')](_0xd36dfc[_0xc3caeb('0x10')],qs[_0xc3caeb('0x32')](_0x246241[_0xc3caeb('0x24')][_0xc3caeb('0x32')])),_0x4048bd[_0xc3caeb('0x1b')]=_0x4048bd[_0xc3caeb('0x1b')][_0xc3caeb('0x1e')]?_0x4048bd[_0xc3caeb('0x1b')]:_0xd36dfc[_0xc3caeb('0x10')],_0x246241['query']['includeAll']&&(_0x4048bd['include']=[{'all':!![]}]),_0x4048bd=_[_0xc3caeb('0x2d')]({},_0x4048bd,_0x246241[_0xc3caeb('0x46')]),db['AnalyticExtractedReport']['findOne'](_0x4048bd)[_0xc3caeb('0x12')](handleEntityNotFound(_0x242970,null))['then'](respondWithResult(_0x242970,null))[_0xc3caeb('0x22')](handleError(_0x242970,null));},exports[_0x4ed14f('0x7')]=function(_0xa3b08b,_0x327d76){const _0x16b638=_0x4ed14f;return db['AnalyticExtractedReport']['create'](_0xa3b08b[_0x16b638('0x11')],{})[_0x16b638('0x12')](function(_0x1c1668){const _0x213e34=_0x16b638,_0x244a5e=_0xa3b08b[_0x213e34('0x2a')][_0x213e34('0x5')]({'plain':!![]});if(!_0x244a5e)throw new Error(_0x213e34('0x19'));if(_0x244a5e[_0x213e34('0x43')]===_0x213e34('0x2a')){const _0x5a7203=_0x1c1668['get']({'plain':!![]}),_0x1c05a7=_0x213e34('0xe');return db['UserProfileSection'][_0x213e34('0x9')]({'where':{'name':_0x1c05a7,'userProfileId':_0x244a5e['userProfileId']},'raw':!![]})[_0x213e34('0x12')](function(_0x7400ec){const _0x198288=_0x213e34;return _0x7400ec&&_0x7400ec[_0x198288('0x34')]===0x0?db[_0x198288('0x8')][_0x198288('0x7')]({'name':_0x5a7203[_0x198288('0x3c')],'resourceId':_0x5a7203['id'],'type':_0x7400ec['name'],'sectionId':_0x7400ec['id']},{})['then'](function(){return _0x1c1668;}):_0x1c1668;})['catch'](function(_0x47205b){const _0x4fab7d=_0x213e34;logger[_0x4fab7d('0x2e')](_0x4fab7d('0x1d'),_0x47205b);throw _0x47205b;});}return _0x1c1668;})['then'](respondWithResult(_0x327d76,0xc9))[_0x16b638('0x22')](handleError(_0x327d76,null));},exports[_0x4ed14f('0x1c')]=function(_0x246ee2,_0x295247){const _0x141c04=_0x4ed14f;return _0x246ee2['body']['id']&&delete _0x246ee2[_0x141c04('0x11')]['id'],db[_0x141c04('0x17')][_0x141c04('0x9')]({'where':{'id':_0x246ee2[_0x141c04('0x29')]['id']}})[_0x141c04('0x12')](handleEntityNotFound(_0x295247,null))[_0x141c04('0x12')](saveUpdates(_0x246ee2[_0x141c04('0x11')],null))['then'](respondWithResult(_0x295247,null))[_0x141c04('0x22')](handleError(_0x295247,null));},exports['destroy']=function(_0x47e2f6,_0x10b7f8){const _0xf7bc6f=_0x4ed14f;return db['AnalyticExtractedReport']['findOne']({'where':{'id':_0x47e2f6[_0xf7bc6f('0x29')]['id']}})['then'](handleEntityNotFound(_0x10b7f8,null))['then'](removeEntity(_0x10b7f8,null))['catch'](handleError(_0x10b7f8,null));},exports[_0x4ed14f('0xa')]=function(_0x8b1fdc,_0x2dcb3d){const _0x131167=_0x4ed14f;return db[_0x131167('0x17')][_0x131167('0x9')]({'where':{'id':_0x8b1fdc[_0x131167('0x29')]['id']},'attributes':[_0x131167('0x3c'),_0x131167('0x1f'),_0x131167('0x41'),_0x131167('0x42')],'raw':!![]})[_0x131167('0x12')](handleEntityNotFound(_0x2dcb3d,null))[_0x131167('0x12')](function(_0x504099){const _0x3b60c2=_0x131167;if(_0x504099){if(!fs['existsSync'](path[_0x3b60c2('0x26')](config['root'],'files/reports',_0x504099[_0x3b60c2('0x41')])))throw new ValidationError(_0x3b60c2('0x47'));if(_0x8b1fdc['query'][_0x3b60c2('0x20')])return _0x2dcb3d[_0x3b60c2('0xc')](0xc8);return _0x2dcb3d[_0x3b60c2('0xa')](path['join'](config[_0x3b60c2('0x4')],_0x3b60c2('0x21'),_0x504099[_0x3b60c2('0x41')]),util[_0x3b60c2('0x49')](_0x3b60c2('0xd'),_0x504099['basename']||_0x504099[_0x3b60c2('0x3c')],_0x504099['output'][_0x3b60c2('0x2')]()));}})[_0x131167('0x22')](handleError(_0x2dcb3d,null));}; \ No newline at end of file +const a13_0x4514=['merge','like','nolimit','toLowerCase','status','path','then','keys','files/reports','destroy','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','basename','output','user','VIRTUAL','findOne','length','get','limit','type','intersection','role','query','existsSync','api','attributes','set','where','rows','filters','json','create','ExtractedReports','order','../../components/parsers/qs','catch','send','show','options','fieldName','format','sequelize','update','map','rawAttributes','userProfileId','AnalyticExtractedReport','name','Unable\x20to\x20retrieve\x20the\x20current\x20user','model','sort','params','UserProfileResource','../../config/environment','../../mysqldb','findAll','root','include','%s.%s','body','savename','includeAll','download','join','fields','end','../../config/logger','count','offset','stack','error'];(function(_0x40c6a1,_0x451433){const _0x1b6590=function(_0x20c8b5){while(--_0x20c8b5){_0x40c6a1['push'](_0x40c6a1['shift']());}};_0x1b6590(++_0x451433);}(a13_0x4514,0x16f));const a13_0x1b65=function(_0x40c6a1,_0x451433){_0x40c6a1=_0x40c6a1-0x0;let _0x1b6590=a13_0x4514[_0x40c6a1];return _0x1b6590;};const _0x1196a1=a13_0x1b65;'use strict';const util=require('util'),path=require(_0x1196a1('0x40')),fs=require('fs'),_=require('lodash'),qs=require(_0x1196a1('0x16')),logger=require(_0x1196a1('0x36'))(_0x1196a1('0xc')),config=require(_0x1196a1('0x29')),db=require(_0x1196a1('0x2a'))['db'],{Op,ValidationError}=require(_0x1196a1('0x1d'));function respondWithResult(_0x20c8b5,_0x4a944d){return _0x4a944d=_0x4a944d||0xc8,function(_0x294f0f){const _0x10ee26=a13_0x1b65;if(_0x294f0f)return _0x20c8b5[_0x10ee26('0x3f')](_0x4a944d)['json'](_0x294f0f);};}function respondWithFilteredResult(_0x2657cf,_0x5ec060){return function(_0x2dc8e4){const _0x389f62=a13_0x1b65;if(_0x2dc8e4){const _0x53a72a=_0x2dc8e4[_0x389f62('0x37')],_0x107b1f=_0x5ec060['offset'];let _0x11484f=_0x5ec060[_0x389f62('0x38')]+_0x5ec060[_0x389f62('0x6')],_0x19ea3d;return _0x11484f>=_0x53a72a?(_0x11484f=_0x53a72a,_0x19ea3d=0xc8):_0x19ea3d=0xce,_0x2657cf[_0x389f62('0x3f')](_0x19ea3d),_0x2657cf[_0x389f62('0xe')]('Content-Range',_0x107b1f+'-'+_0x11484f+'/'+_0x53a72a)[_0x389f62('0x12')](_0x2dc8e4);}return null;};}function saveUpdates(_0x3e5ed7){return function(_0x17d9e5){const _0x456bf4=a13_0x1b65;if(_0x17d9e5)return _0x17d9e5[_0x456bf4('0x1e')](_0x3e5ed7)['then'](function(_0x46652d){return _0x46652d;});return null;};}function removeEntity(_0x500094){return function(_0x54ebfd){const _0x29be31=a13_0x1b65;if(_0x54ebfd)return _0x54ebfd['destroy']()[_0x29be31('0x41')](function(){const _0x4990bd=_0x29be31,_0x49859d=_0x54ebfd[_0x4990bd('0x5')]({'plain':!![]}),_0x2ff559='ExtractedReports';return db[_0x4990bd('0x28')][_0x4990bd('0x44')]({'where':{'type':_0x2ff559,'resourceId':_0x49859d['id']}})['then'](function(){return _0x54ebfd;});})[_0x29be31('0x41')](function(){const _0x4b318c=_0x29be31;_0x500094[_0x4b318c('0x3f')](0xcc)[_0x4b318c('0x35')]();});};}function handleEntityNotFound(_0x19d635){return function(_0x1d0fa8){return!_0x1d0fa8&&_0x19d635['sendStatus'](0x194),_0x1d0fa8;};}function handleError(_0x328a4d,_0x542b29){return _0x542b29=_0x542b29||0x1f4,function(_0x52dd0e){const _0x3d5d11=a13_0x1b65;logger[_0x3d5d11('0x3a')](_0x52dd0e[_0x3d5d11('0x39')]),_0x52dd0e[_0x3d5d11('0x23')]&&delete _0x52dd0e[_0x3d5d11('0x23')],_0x328a4d[_0x3d5d11('0x3f')](_0x542b29)[_0x3d5d11('0x18')](_0x52dd0e);};}exports['index']=function(_0x23e4a9,_0x2f02c1){const _0x40fb06=_0x1196a1;let _0x13f913={};const _0x476e88={},_0x152e23={'count':0x0,'rows':[]},_0x3e44c1=_[_0x40fb06('0x1f')](db['AnalyticExtractedReport']['rawAttributes'],function(_0x3b22dc){const _0x5d4408=_0x40fb06;return{'name':_0x3b22dc[_0x5d4408('0x1b')],'type':_0x3b22dc['type']['key']};});_0x476e88[_0x40fb06('0x25')]=_[_0x40fb06('0x1f')](_0x3e44c1,_0x40fb06('0x23')),_0x476e88['query']=_[_0x40fb06('0x42')](_0x23e4a9[_0x40fb06('0xa')]),_0x476e88[_0x40fb06('0x11')]=_[_0x40fb06('0x8')](_0x476e88[_0x40fb06('0x25')],_0x476e88[_0x40fb06('0xa')]),_0x13f913[_0x40fb06('0xd')]=_[_0x40fb06('0x8')](_0x476e88[_0x40fb06('0x25')],qs[_0x40fb06('0x34')](_0x23e4a9[_0x40fb06('0xa')][_0x40fb06('0x34')])),_0x13f913[_0x40fb06('0xd')]=_0x13f913['attributes'][_0x40fb06('0x4')]?_0x13f913[_0x40fb06('0xd')]:_0x476e88['model'];typeof _0x23e4a9['query'][_0x40fb06('0x3d')]==='undefined'&&(_0x13f913[_0x40fb06('0x6')]=qs['limit'](_0x23e4a9[_0x40fb06('0xa')][_0x40fb06('0x6')]),_0x13f913[_0x40fb06('0x38')]=qs['offset'](_0x23e4a9[_0x40fb06('0xa')][_0x40fb06('0x38')]));_0x13f913[_0x40fb06('0x15')]=qs['sort'](_0x23e4a9['query'][_0x40fb06('0x26')]),_0x13f913[_0x40fb06('0xf')]=qs[_0x40fb06('0x11')](_['pick'](_0x23e4a9[_0x40fb06('0xa')],_0x476e88[_0x40fb06('0x11')]),_0x3e44c1);_0x23e4a9[_0x40fb06('0xa')]['filter']&&(_0x13f913[_0x40fb06('0xf')]=_[_0x40fb06('0x3b')](_0x13f913[_0x40fb06('0xf')],{[Op['or']]:_[_0x40fb06('0x1f')](_0x3e44c1,function(_0x5be223){const _0x89f08c=_0x40fb06;if(_0x5be223[_0x89f08c('0x7')]!==_0x89f08c('0x2')){const _0xbd8c1e={};return _0xbd8c1e[_0x5be223[_0x89f08c('0x23')]]={[Op[_0x89f08c('0x3c')]]:'%'+_0x23e4a9[_0x89f08c('0xa')]['filter']+'%'},_0xbd8c1e;}})}));_0x13f913=_['merge']({},_0x13f913,_0x23e4a9[_0x40fb06('0x1a')]);const _0x1a90cb={'where':_0x13f913[_0x40fb06('0xf')]};return db[_0x40fb06('0x22')][_0x40fb06('0x37')](_0x1a90cb)[_0x40fb06('0x41')](function(_0x3c0f4f){const _0x1ea3e7=_0x40fb06;return _0x152e23[_0x1ea3e7('0x37')]=_0x3c0f4f,_0x23e4a9['query'][_0x1ea3e7('0x31')]&&(_0x13f913[_0x1ea3e7('0x2d')]=[{'all':!![]}]),db[_0x1ea3e7('0x22')][_0x1ea3e7('0x2b')](_0x13f913);})[_0x40fb06('0x41')](function(_0x4348d3){const _0x1db6e1=_0x40fb06;return _0x152e23[_0x1db6e1('0x10')]=_0x4348d3,_0x152e23;})[_0x40fb06('0x41')](respondWithFilteredResult(_0x2f02c1,_0x13f913))['catch'](handleError(_0x2f02c1,null));},exports[_0x1196a1('0x19')]=function(_0x2aac46,_0x2982b9){const _0x4ee5c2=_0x1196a1;let _0x30b70c={'raw':!![],'where':{'id':_0x2aac46[_0x4ee5c2('0x27')]['id']}};const _0x19dab5={};return _0x19dab5['model']=_[_0x4ee5c2('0x42')](db['AnalyticExtractedReport'][_0x4ee5c2('0x20')]),_0x19dab5[_0x4ee5c2('0xa')]=_['keys'](_0x2aac46[_0x4ee5c2('0xa')]),_0x19dab5[_0x4ee5c2('0x11')]=_['intersection'](_0x19dab5[_0x4ee5c2('0x25')],_0x19dab5['query']),_0x30b70c['attributes']=_[_0x4ee5c2('0x8')](_0x19dab5[_0x4ee5c2('0x25')],qs[_0x4ee5c2('0x34')](_0x2aac46[_0x4ee5c2('0xa')][_0x4ee5c2('0x34')])),_0x30b70c['attributes']=_0x30b70c[_0x4ee5c2('0xd')][_0x4ee5c2('0x4')]?_0x30b70c[_0x4ee5c2('0xd')]:_0x19dab5['model'],_0x2aac46[_0x4ee5c2('0xa')][_0x4ee5c2('0x31')]&&(_0x30b70c[_0x4ee5c2('0x2d')]=[{'all':!![]}]),_0x30b70c=_[_0x4ee5c2('0x3b')]({},_0x30b70c,_0x2aac46[_0x4ee5c2('0x1a')]),db['AnalyticExtractedReport'][_0x4ee5c2('0x3')](_0x30b70c)[_0x4ee5c2('0x41')](handleEntityNotFound(_0x2982b9,null))[_0x4ee5c2('0x41')](respondWithResult(_0x2982b9,null))[_0x4ee5c2('0x17')](handleError(_0x2982b9,null));},exports[_0x1196a1('0x13')]=function(_0x27430e,_0x5f4252){const _0x4dbe00=_0x1196a1;return db['AnalyticExtractedReport'][_0x4dbe00('0x13')](_0x27430e['body'],{})[_0x4dbe00('0x41')](function(_0x1b6729){const _0x380acc=_0x4dbe00,_0x31c9f8=_0x27430e[_0x380acc('0x1')]['get']({'plain':!![]});if(!_0x31c9f8)throw new Error(_0x380acc('0x24'));if(_0x31c9f8[_0x380acc('0x9')]===_0x380acc('0x1')){const _0x1540d8=_0x1b6729[_0x380acc('0x5')]({'plain':!![]}),_0x5549c0=_0x380acc('0x14');return db['UserProfileSection'][_0x380acc('0x3')]({'where':{'name':_0x5549c0,'userProfileId':_0x31c9f8[_0x380acc('0x21')]},'raw':!![]})[_0x380acc('0x41')](function(_0x16bedf){const _0x14d26b=_0x380acc;return _0x16bedf&&_0x16bedf['autoAssociation']===0x0?db[_0x14d26b('0x28')]['create']({'name':_0x1540d8[_0x14d26b('0x23')],'resourceId':_0x1540d8['id'],'type':_0x16bedf[_0x14d26b('0x23')],'sectionId':_0x16bedf['id']},{})[_0x14d26b('0x41')](function(){return _0x1b6729;}):_0x1b6729;})['catch'](function(_0x230499){const _0x457568=_0x380acc;logger[_0x457568('0x3a')](_0x457568('0x45'),_0x230499);throw _0x230499;});}return _0x1b6729;})[_0x4dbe00('0x41')](respondWithResult(_0x5f4252,0xc9))['catch'](handleError(_0x5f4252,null));},exports[_0x1196a1('0x1e')]=function(_0x33d75c,_0x92cb12){const _0xb861d7=_0x1196a1;return _0x33d75c[_0xb861d7('0x2f')]['id']&&delete _0x33d75c[_0xb861d7('0x2f')]['id'],db['AnalyticExtractedReport']['findOne']({'where':{'id':_0x33d75c['params']['id']}})[_0xb861d7('0x41')](handleEntityNotFound(_0x92cb12,null))[_0xb861d7('0x41')](saveUpdates(_0x33d75c[_0xb861d7('0x2f')],null))[_0xb861d7('0x41')](respondWithResult(_0x92cb12,null))[_0xb861d7('0x17')](handleError(_0x92cb12,null));},exports[_0x1196a1('0x44')]=function(_0x1540d4,_0x32dfa1){const _0x35592c=_0x1196a1;return db[_0x35592c('0x22')][_0x35592c('0x3')]({'where':{'id':_0x1540d4['params']['id']}})[_0x35592c('0x41')](handleEntityNotFound(_0x32dfa1,null))[_0x35592c('0x41')](removeEntity(_0x32dfa1,null))['catch'](handleError(_0x32dfa1,null));},exports[_0x1196a1('0x32')]=function(_0x22e1aa,_0x1cad15){const _0xd63496=_0x1196a1;return db[_0xd63496('0x22')][_0xd63496('0x3')]({'where':{'id':_0x22e1aa[_0xd63496('0x27')]['id']},'attributes':['name',_0xd63496('0x46'),_0xd63496('0x30'),'output'],'raw':!![]})[_0xd63496('0x41')](handleEntityNotFound(_0x1cad15,null))[_0xd63496('0x41')](function(_0x101da0){const _0x38fb5b=_0xd63496;if(_0x101da0){if(!fs[_0x38fb5b('0xb')](path[_0x38fb5b('0x33')](config['root'],_0x38fb5b('0x43'),_0x101da0[_0x38fb5b('0x30')])))throw new ValidationError('Report\x20not\x20found\x20or\x20empty');if(_0x22e1aa['query']['exists'])return _0x1cad15['sendStatus'](0xc8);return _0x1cad15['download'](path[_0x38fb5b('0x33')](config[_0x38fb5b('0x2c')],_0x38fb5b('0x43'),_0x101da0[_0x38fb5b('0x30')]),util[_0x38fb5b('0x1c')](_0x38fb5b('0x2e'),_0x101da0[_0x38fb5b('0x46')]||_0x101da0[_0x38fb5b('0x23')],_0x101da0[_0x38fb5b('0x0')][_0x38fb5b('0x3e')]()));}})[_0xd63496('0x17')](handleError(_0x1cad15,null));}; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/analyticExtractedReport.model.js b/server/api/analyticExtractedReport/analyticExtractedReport.model.js index fee85c3..8a1ade8 100644 --- a/server/api/analyticExtractedReport/analyticExtractedReport.model.js +++ b/server/api/analyticExtractedReport/analyticExtractedReport.model.js @@ -1 +1 @@ -const a14_0x7ed4=['AnalyticExtractedReport','define','./analyticExtractedReport.attributes','exports'];(function(_0xe99701,_0x7ed40a){const _0x466ba3=function(_0x4c110a){while(--_0x4c110a){_0xe99701['push'](_0xe99701['shift']());}};_0x466ba3(++_0x7ed40a);}(a14_0x7ed4,0x1c7));const a14_0x466b=function(_0xe99701,_0x7ed40a){_0xe99701=_0xe99701-0x0;let _0x466ba3=a14_0x7ed4[_0xe99701];return _0x466ba3;};const _0x1a55f1=a14_0x466b;'use strict';const attributes=require(_0x1a55f1('0x3'));module[_0x1a55f1('0x0')]=function(_0x4c110a){const _0x2bc09a=_0x1a55f1,_0x590b6c=_0x4c110a[_0x2bc09a('0x2')](_0x2bc09a('0x1'),attributes,{'tableName':'analytics_extracted_reports','paranoid':![],'indexes':[],'timestamps':!![]});return _0x590b6c;}; \ No newline at end of file +const a14_0x122c=['exports','analytics_extracted_reports','./analyticExtractedReport.attributes','define','AnalyticExtractedReport'];(function(_0x56acb3,_0x122c2a){const _0x5b9b90=function(_0x282614){while(--_0x282614){_0x56acb3['push'](_0x56acb3['shift']());}};_0x5b9b90(++_0x122c2a);}(a14_0x122c,0x160));const a14_0x5b9b=function(_0x56acb3,_0x122c2a){_0x56acb3=_0x56acb3-0x0;let _0x5b9b90=a14_0x122c[_0x56acb3];return _0x5b9b90;};const _0x3fd30d=a14_0x5b9b;'use strict';const attributes=require(_0x3fd30d('0x0'));module[_0x3fd30d('0x3')]=function(_0x282614){const _0x561639=_0x3fd30d,_0x33c557=_0x282614[_0x561639('0x1')](_0x561639('0x2'),attributes,{'tableName':_0x561639('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x33c557;}; \ No newline at end of file diff --git a/server/api/analyticExtractedReport/index.js b/server/api/analyticExtractedReport/index.js index c46e594..065ffe7 100644 --- a/server/api/analyticExtractedReport/index.js +++ b/server/api/analyticExtractedReport/index.js @@ -1 +1 @@ -const a15_0x2983=['/:id','put','exports','show','destroy','get','create','Router','delete','express','download','isAuthenticated','index'];(function(_0x6d716a,_0x298356){const _0x44a41d=function(_0x36fb16){while(--_0x36fb16){_0x6d716a['push'](_0x6d716a['shift']());}};_0x44a41d(++_0x298356);}(a15_0x2983,0x72));const a15_0x44a4=function(_0x6d716a,_0x298356){_0x6d716a=_0x6d716a-0x0;let _0x44a41d=a15_0x2983[_0x6d716a];return _0x44a41d;};const _0x556140=a15_0x44a4;'use strict';const express=require(_0x556140('0xc')),router=express[_0x556140('0xa')](),auth=require('../../components/auth/service'),controller=require('./analyticExtractedReport.controller');router[_0x556140('0x8')]('/',auth[_0x556140('0x1')](),controller[_0x556140('0x2')]),router[_0x556140('0x8')](_0x556140('0x3'),auth[_0x556140('0x1')](),controller[_0x556140('0x6')]),router[_0x556140('0x8')]('/:id/download',auth[_0x556140('0x1')](),controller[_0x556140('0x0')]),router['post']('/',auth[_0x556140('0x1')](),controller[_0x556140('0x9')]),router[_0x556140('0x4')]('/:id',auth[_0x556140('0x1')](),controller['update']),router[_0x556140('0xb')](_0x556140('0x3'),auth['isAuthenticated'](),controller[_0x556140('0x7')]),module[_0x556140('0x5')]=router; \ No newline at end of file +const a15_0xde10=['exports','isAuthenticated','update','post','/:id','destroy','create','delete','index','../../components/auth/service','express','get','/:id/download','put','Router'];(function(_0x53d892,_0xde1088){const _0xe0fbeb=function(_0x30f1a4){while(--_0x30f1a4){_0x53d892['push'](_0x53d892['shift']());}};_0xe0fbeb(++_0xde1088);}(a15_0xde10,0x12d));const a15_0xe0fb=function(_0x53d892,_0xde1088){_0x53d892=_0x53d892-0x0;let _0xe0fbeb=a15_0xde10[_0x53d892];return _0xe0fbeb;};const _0x2fcda5=a15_0xe0fb;'use strict';const express=require(_0x2fcda5('0x9')),router=express[_0x2fcda5('0xd')](),auth=require(_0x2fcda5('0x8')),controller=require('./analyticExtractedReport.controller');router[_0x2fcda5('0xa')]('/',auth['isAuthenticated'](),controller[_0x2fcda5('0x7')]),router[_0x2fcda5('0xa')](_0x2fcda5('0x3'),auth[_0x2fcda5('0x0')](),controller['show']),router[_0x2fcda5('0xa')](_0x2fcda5('0xb'),auth[_0x2fcda5('0x0')](),controller['download']),router[_0x2fcda5('0x2')]('/',auth[_0x2fcda5('0x0')](),controller[_0x2fcda5('0x5')]),router[_0x2fcda5('0xc')](_0x2fcda5('0x3'),auth['isAuthenticated'](),controller[_0x2fcda5('0x1')]),router[_0x2fcda5('0x6')](_0x2fcda5('0x3'),auth[_0x2fcda5('0x0')](),controller[_0x2fcda5('0x4')]),module[_0x2fcda5('0xe')]=router; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.attributes.js b/server/api/analyticFieldReport/analyticFieldReport.attributes.js index cc90250..398703c 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.attributes.js +++ b/server/api/analyticFieldReport/analyticFieldReport.attributes.js @@ -1 +1 @@ -const a16_0x34a0=['sequelize','STRING','exports','BOOLEAN'];(function(_0x115af4,_0x34a0e9){const _0x178b41=function(_0x248766){while(--_0x248766){_0x115af4['push'](_0x115af4['shift']());}};_0x178b41(++_0x34a0e9);}(a16_0x34a0,0xc7));const a16_0x178b=function(_0x115af4,_0x34a0e9){_0x115af4=_0x115af4-0x0;let _0x178b41=a16_0x34a0[_0x115af4];return _0x178b41;};const _0x233e5b=a16_0x178b;'use strict';const Sequelize=require(_0x233e5b('0x1'));module[_0x233e5b('0x3')]={'field':{'type':Sequelize['TEXT']},'alias':{'type':Sequelize[_0x233e5b('0x2')]},'function':{'type':Sequelize[_0x233e5b('0x2')]},'format':{'type':Sequelize[_0x233e5b('0x2')]},'groupBy':{'type':Sequelize[_0x233e5b('0x0')],'defaultValue':![]},'orderBy':{'type':Sequelize[_0x233e5b('0x2')]},'custom':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +const a16_0xc057=['sequelize','STRING','TEXT','BOOLEAN','exports'];(function(_0x41d2aa,_0xc0577c){const _0x2466fe=function(_0x8df30d){while(--_0x8df30d){_0x41d2aa['push'](_0x41d2aa['shift']());}};_0x2466fe(++_0xc0577c);}(a16_0xc057,0x1b6));const a16_0x2466=function(_0x41d2aa,_0xc0577c){_0x41d2aa=_0x41d2aa-0x0;let _0x2466fe=a16_0xc057[_0x41d2aa];return _0x2466fe;};const _0x50151d=a16_0x2466;'use strict';const Sequelize=require(_0x50151d('0x2'));module[_0x50151d('0x1')]={'field':{'type':Sequelize[_0x50151d('0x4')]},'alias':{'type':Sequelize[_0x50151d('0x3')]},'function':{'type':Sequelize[_0x50151d('0x3')]},'format':{'type':Sequelize[_0x50151d('0x3')]},'groupBy':{'type':Sequelize[_0x50151d('0x0')],'defaultValue':![]},'orderBy':{'type':Sequelize['STRING']},'custom':{'type':Sequelize[_0x50151d('0x0')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.controller.js b/server/api/analyticFieldReport/analyticFieldReport.controller.js index 87fe8de..732af3c 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.controller.js +++ b/server/api/analyticFieldReport/analyticFieldReport.controller.js @@ -1 +1 @@ -const a17_0x5e6a=['filters','VIRTUAL','status','include','includeAll','pick','bulkCreate','order','../../mysqldb','catch','then','update','query','lodash','type','sequelize','count','set','fieldName','rows','findAll','attributes','findOne','keys','map','model','error','rawAttributes','destroy','index','ids','show','merge','bulkDestroy','sort','undefined','offset','key','nolimit','length','body','json','name','AnalyticCustomReport','AnalyticFieldReport','filter','fields','where','params','intersection','limit','CustomReportId','addFields','create'];(function(_0x353383,_0x5e6a16){const _0x4b326c=function(_0x3f82b9){while(--_0x3f82b9){_0x353383['push'](_0x353383['shift']());}};_0x4b326c(++_0x5e6a16);}(a17_0x5e6a,0x18d));const a17_0x4b32=function(_0x353383,_0x5e6a16){_0x353383=_0x353383-0x0;let _0x4b326c=a17_0x5e6a[_0x353383];return _0x4b326c;};const _0x1ba531=a17_0x4b32;'use strict';const _=require(_0x1ba531('0x30')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x1ba531('0x2b'))['db'],{Op}=require(_0x1ba531('0x32'));function respondWithResult(_0x3f82b9,_0x4b6fee){return _0x4b6fee=_0x4b6fee||0xc8,function(_0x334437){const _0x245406=a17_0x4b32;if(_0x334437)return _0x3f82b9['status'](_0x4b6fee)[_0x245406('0x16')](_0x334437);};}function respondWithFilteredResult(_0x5330b8,_0xce2e28){return function(_0x14ffaf){const _0xe614f5=a17_0x4b32;if(_0x14ffaf){const _0x47d3fe=_0x14ffaf[_0xe614f5('0x33')],_0x1dbb88=_0xce2e28[_0xe614f5('0x11')];let _0x568fed=_0xce2e28['offset']+_0xce2e28[_0xe614f5('0x1f')],_0x2567d1;return _0x568fed>=_0x47d3fe?(_0x568fed=_0x47d3fe,_0x2567d1=0xc8):_0x2567d1=0xce,_0x5330b8[_0xe614f5('0x25')](_0x2567d1),_0x5330b8[_0xe614f5('0x34')]('Content-Range',_0x1dbb88+'-'+_0x568fed+'/'+_0x47d3fe)['json'](_0x14ffaf);}return null;};}function saveUpdates(_0x7f8c3a){return function(_0xb21918){const _0x1686d0=a17_0x4b32;if(_0xb21918)return _0xb21918[_0x1686d0('0x2e')](_0x7f8c3a)[_0x1686d0('0x2d')](function(_0x55ca2d){return _0x55ca2d;});return null;};}function removeEntity(_0x94d156){return function(_0xdad1a5){const _0x521b6a=a17_0x4b32;if(_0xdad1a5)return _0xdad1a5[_0x521b6a('0x9')]()[_0x521b6a('0x2d')](function(){_0x94d156['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x4fa9d9){return function(_0x2745c7){return!_0x2745c7&&_0x4fa9d9['sendStatus'](0x194),_0x2745c7;};}function handleError(_0x28c8b0,_0x202962){return _0x202962=_0x202962||0x1f4,function(_0x3a4104){const _0x8d643c=a17_0x4b32;logger[_0x8d643c('0x7')](_0x3a4104['stack']),_0x3a4104[_0x8d643c('0x17')]&&delete _0x3a4104[_0x8d643c('0x17')],_0x28c8b0[_0x8d643c('0x25')](_0x202962)['send'](_0x3a4104);};}exports[_0x1ba531('0xa')]=function(_0x5e4088,_0x48282e){const _0x4cb9f5=_0x1ba531;let _0x1c533a={};const _0x220fa8={},_0x4f9692={'count':0x0,'rows':[]},_0x11f69f=_['map'](db[_0x4cb9f5('0x19')][_0x4cb9f5('0x8')],function(_0x576f6d){const _0xdd7b4c=_0x4cb9f5;return{'name':_0x576f6d[_0xdd7b4c('0x35')],'type':_0x576f6d[_0xdd7b4c('0x31')][_0xdd7b4c('0x12')]};});_0x220fa8[_0x4cb9f5('0x6')]=_[_0x4cb9f5('0x5')](_0x11f69f,'name'),_0x220fa8[_0x4cb9f5('0x2f')]=_[_0x4cb9f5('0x4')](_0x5e4088[_0x4cb9f5('0x2f')]),_0x220fa8[_0x4cb9f5('0x23')]=_[_0x4cb9f5('0x1e')](_0x220fa8[_0x4cb9f5('0x6')],_0x220fa8['query']),_0x1c533a[_0x4cb9f5('0x2')]=_[_0x4cb9f5('0x1e')](_0x220fa8[_0x4cb9f5('0x6')],qs[_0x4cb9f5('0x1b')](_0x5e4088[_0x4cb9f5('0x2f')][_0x4cb9f5('0x1b')])),_0x1c533a[_0x4cb9f5('0x2')]=_0x1c533a[_0x4cb9f5('0x2')][_0x4cb9f5('0x14')]?_0x1c533a['attributes']:_0x220fa8[_0x4cb9f5('0x6')];typeof _0x5e4088['query'][_0x4cb9f5('0x13')]===_0x4cb9f5('0x10')&&(_0x1c533a['limit']=qs['limit'](_0x5e4088[_0x4cb9f5('0x2f')][_0x4cb9f5('0x1f')]),_0x1c533a['offset']=qs[_0x4cb9f5('0x11')](_0x5e4088[_0x4cb9f5('0x2f')][_0x4cb9f5('0x11')]));_0x1c533a[_0x4cb9f5('0x2a')]=qs[_0x4cb9f5('0xf')](_0x5e4088[_0x4cb9f5('0x2f')][_0x4cb9f5('0xf')]),_0x1c533a[_0x4cb9f5('0x1c')]=qs[_0x4cb9f5('0x23')](_[_0x4cb9f5('0x28')](_0x5e4088[_0x4cb9f5('0x2f')],_0x220fa8[_0x4cb9f5('0x23')]),_0x11f69f);_0x5e4088[_0x4cb9f5('0x2f')]['filter']&&(_0x1c533a['where']=_[_0x4cb9f5('0xd')](_0x1c533a['where'],{[Op['or']]:_['map'](_0x11f69f,function(_0x28f6ec){const _0x5ce4cc=_0x4cb9f5;if(_0x28f6ec[_0x5ce4cc('0x31')]!==_0x5ce4cc('0x24')){const _0x2ea676={};return _0x2ea676[_0x28f6ec['name']]={[Op['like']]:'%'+_0x5e4088['query'][_0x5ce4cc('0x1a')]+'%'},_0x2ea676;}})}));_0x1c533a=_[_0x4cb9f5('0xd')]({},_0x1c533a,_0x5e4088['options']);const _0x54332c={'where':_0x1c533a[_0x4cb9f5('0x1c')]};return db['AnalyticFieldReport'][_0x4cb9f5('0x33')](_0x54332c)[_0x4cb9f5('0x2d')](function(_0x29ebcc){const _0x52185f=_0x4cb9f5;return _0x4f9692[_0x52185f('0x33')]=_0x29ebcc,_0x5e4088[_0x52185f('0x2f')][_0x52185f('0x27')]&&(_0x1c533a[_0x52185f('0x26')]=[{'all':!![]}]),db[_0x52185f('0x19')]['findAll'](_0x1c533a);})[_0x4cb9f5('0x2d')](function(_0x1b143d){const _0x2b30cd=_0x4cb9f5;return _0x4f9692[_0x2b30cd('0x0')]=_0x1b143d,_0x4f9692;})[_0x4cb9f5('0x2d')](respondWithFilteredResult(_0x48282e,_0x1c533a))[_0x4cb9f5('0x2c')](handleError(_0x48282e,null));},exports[_0x1ba531('0xc')]=function(_0x31b7ad,_0x54523e){const _0x5370d9=_0x1ba531;let _0x1037cd={'raw':![],'where':{'id':_0x31b7ad[_0x5370d9('0x1d')]['id']}};const _0x5eb56a={};return _0x5eb56a['model']=_['keys'](db[_0x5370d9('0x19')][_0x5370d9('0x8')]),_0x5eb56a[_0x5370d9('0x2f')]=_[_0x5370d9('0x4')](_0x31b7ad[_0x5370d9('0x2f')]),_0x5eb56a[_0x5370d9('0x23')]=_[_0x5370d9('0x1e')](_0x5eb56a[_0x5370d9('0x6')],_0x5eb56a['query']),_0x1037cd[_0x5370d9('0x2')]=_[_0x5370d9('0x1e')](_0x5eb56a[_0x5370d9('0x6')],qs['fields'](_0x31b7ad['query']['fields'])),_0x1037cd[_0x5370d9('0x2')]=_0x1037cd['attributes'][_0x5370d9('0x14')]?_0x1037cd[_0x5370d9('0x2')]:_0x5eb56a[_0x5370d9('0x6')],_0x31b7ad[_0x5370d9('0x2f')][_0x5370d9('0x27')]&&(_0x1037cd['include']=[{'all':!![]}]),_0x1037cd=_[_0x5370d9('0xd')]({},_0x1037cd,_0x31b7ad['options']),db['AnalyticFieldReport'][_0x5370d9('0x3')](_0x1037cd)[_0x5370d9('0x2d')](handleEntityNotFound(_0x54523e,null))[_0x5370d9('0x2d')](respondWithResult(_0x54523e,null))[_0x5370d9('0x2c')](handleError(_0x54523e,null));},exports[_0x1ba531('0x22')]=function(_0x27c637,_0x10a24c){const _0x8466de=_0x1ba531;return db[_0x8466de('0x19')][_0x8466de('0x22')](_0x27c637[_0x8466de('0x15')],{})['then'](respondWithResult(_0x10a24c,0xc9))[_0x8466de('0x2c')](handleError(_0x10a24c,null));},exports[_0x1ba531('0x29')]=function(_0x1684c0,_0x18edec){const _0x4a9d53=_0x1ba531;return db[_0x4a9d53('0x19')]['bulkCreate'](_0x1684c0['body'],{'raw':![],'individualHooks':!![]})['then'](respondWithResult(_0x18edec,0xc9))[_0x4a9d53('0x2c')](handleError(_0x18edec,null));},exports['update']=function(_0x1d21a0,_0x42305f){const _0x407e7d=_0x1ba531;return _0x1d21a0[_0x407e7d('0x15')]['id']&&delete _0x1d21a0[_0x407e7d('0x15')]['id'],db[_0x407e7d('0x19')][_0x407e7d('0x3')]({'where':{'id':_0x1d21a0[_0x407e7d('0x1d')]['id']}})[_0x407e7d('0x2d')](handleEntityNotFound(_0x42305f,null))[_0x407e7d('0x2d')](saveUpdates(_0x1d21a0[_0x407e7d('0x15')],null))[_0x407e7d('0x2d')](respondWithResult(_0x42305f,null))['catch'](handleError(_0x42305f,null));},exports[_0x1ba531('0x9')]=function(_0x218703,_0x39b04a){const _0x4b8791=_0x1ba531;return db['AnalyticFieldReport'][_0x4b8791('0x3')]({'where':{'id':_0x218703['params']['id']}})['then'](handleEntityNotFound(_0x39b04a,null))[_0x4b8791('0x2d')](removeEntity(_0x39b04a,null))[_0x4b8791('0x2c')](handleError(_0x39b04a,null));},exports[_0x1ba531('0xe')]=function(_0x1d87ff,_0x58e4cb){const _0x1b26bc=_0x1ba531;return db['AnalyticFieldReport']['destroy']({'where':{'id':_0x1d87ff[_0x1b26bc('0x2f')][_0x1b26bc('0xb')]||[]},'raw':![],'individualHooks':!![]})[_0x1b26bc('0x2d')](respondWithResult(_0x58e4cb,0xcc))['catch'](handleError(_0x58e4cb,null));},exports[_0x1ba531('0x21')]=function(_0x5427f2,_0x1e7a3f){const _0x71d6eb=_0x1ba531;return db[_0x71d6eb('0x18')][_0x71d6eb('0x3')]({'where':{'id':_0x5427f2['params']['id']}})['then'](handleEntityNotFound(_0x1e7a3f,null))[_0x71d6eb('0x2d')](function(_0x320bd4){const _0x4f4370=_0x71d6eb;if(_0x320bd4)return db[_0x4f4370('0x32')]['transaction'](function(_0x689c8a){const _0x2818f6=_0x4f4370;return db[_0x2818f6('0x19')][_0x2818f6('0x9')]({'where':{'CustomReportId':_0x5427f2[_0x2818f6('0x1d')]['id']},'transaction':_0x689c8a})[_0x2818f6('0x2d')](function(){const _0x6aa4e8=_0x2818f6,_0xa68845=_[_0x6aa4e8('0x5')](_0x5427f2[_0x6aa4e8('0x15')],function(_0x56f75c){const _0x2a1b5f=_0x6aa4e8;return delete _0x56f75c['id'],_0x56f75c[_0x2a1b5f('0x20')]=_0x5427f2['params']['id'],_0x56f75c;});return db[_0x6aa4e8('0x19')][_0x6aa4e8('0x29')](_0xa68845,{'transaction':_0x689c8a});});})[_0x4f4370('0x2d')](function(){const _0x2664de=_0x4f4370;return db['AnalyticFieldReport'][_0x2664de('0x1')]({'where':{'CustomReportId':_0x5427f2[_0x2664de('0x1d')]['id']}});});})[_0x71d6eb('0x2d')](respondWithResult(_0x1e7a3f,null))[_0x71d6eb('0x2c')](handleError(_0x1e7a3f,null));}; \ No newline at end of file +const a17_0xf1f2=['filter','model','../../components/parsers/qs','fieldName','count','query','rawAttributes','send','body','VIRTUAL','status','key','intersection','catch','set','order','update','keys','length','limit','destroy','sequelize','options','addFields','bulkCreate','type','sort','../../mysqldb','filters','then','../../config/logger','attributes','sendStatus','like','stack','pick','Content-Range','findOne','json','include','includeAll','api','end','bulkDestroy','params','merge','offset','fields','name','CustomReportId','AnalyticFieldReport','where','map'];(function(_0x38338c,_0xf1f291){const _0x2fc356=function(_0x3dbe53){while(--_0x3dbe53){_0x38338c['push'](_0x38338c['shift']());}};_0x2fc356(++_0xf1f291);}(a17_0xf1f2,0x133));const a17_0x2fc3=function(_0x38338c,_0xf1f291){_0x38338c=_0x38338c-0x0;let _0x2fc356=a17_0xf1f2[_0x38338c];return _0x2fc356;};const _0x28e34f=a17_0x2fc3;'use strict';const _=require('lodash'),qs=require(_0x28e34f('0xd')),logger=require(_0x28e34f('0x29'))(_0x28e34f('0x34')),db=require(_0x28e34f('0x26'))['db'],{Op}=require(_0x28e34f('0x20'));function respondWithResult(_0x3dbe53,_0x4cad24){return _0x4cad24=_0x4cad24||0xc8,function(_0x2fa77f){const _0x250097=a17_0x2fc3;if(_0x2fa77f)return _0x3dbe53[_0x250097('0x15')](_0x4cad24)[_0x250097('0x31')](_0x2fa77f);};}function respondWithFilteredResult(_0x7ad8f4,_0x29e624){return function(_0x1d4799){const _0x1673d6=a17_0x2fc3;if(_0x1d4799){const _0x47f955=_0x1d4799['count'],_0x2f99bd=_0x29e624[_0x1673d6('0x4')];let _0x19e4a9=_0x29e624['offset']+_0x29e624[_0x1673d6('0x1e')],_0x167c69;return _0x19e4a9>=_0x47f955?(_0x19e4a9=_0x47f955,_0x167c69=0xc8):_0x167c69=0xce,_0x7ad8f4['status'](_0x167c69),_0x7ad8f4[_0x1673d6('0x19')](_0x1673d6('0x2f'),_0x2f99bd+'-'+_0x19e4a9+'/'+_0x47f955)[_0x1673d6('0x31')](_0x1d4799);}return null;};}function saveUpdates(_0x4f6f84){return function(_0x47c143){const _0x363a3e=a17_0x2fc3;if(_0x47c143)return _0x47c143['update'](_0x4f6f84)[_0x363a3e('0x28')](function(_0x4335d2){return _0x4335d2;});return null;};}function removeEntity(_0x51e7f0){return function(_0x11030d){const _0x4f3220=a17_0x2fc3;if(_0x11030d)return _0x11030d[_0x4f3220('0x1f')]()[_0x4f3220('0x28')](function(){const _0x3de6d6=_0x4f3220;_0x51e7f0[_0x3de6d6('0x15')](0xcc)[_0x3de6d6('0x0')]();});};}function handleEntityNotFound(_0x2f12a3){return function(_0x202add){const _0x452d47=a17_0x2fc3;return!_0x202add&&_0x2f12a3[_0x452d47('0x2b')](0x194),_0x202add;};}function handleError(_0x2238d8,_0x5b7be1){return _0x5b7be1=_0x5b7be1||0x1f4,function(_0x4913e5){const _0x42dafd=a17_0x2fc3;logger['error'](_0x4913e5[_0x42dafd('0x2d')]),_0x4913e5[_0x42dafd('0x6')]&&delete _0x4913e5['name'],_0x2238d8[_0x42dafd('0x15')](_0x5b7be1)[_0x42dafd('0x12')](_0x4913e5);};}exports['index']=function(_0x7a2933,_0x37ccb4){const _0x5389a0=_0x28e34f;let _0x40bca0={};const _0xd46748={},_0x3078fa={'count':0x0,'rows':[]},_0x53260b=_[_0x5389a0('0xa')](db[_0x5389a0('0x8')]['rawAttributes'],function(_0x5b2fa7){const _0x12c3f0=_0x5389a0;return{'name':_0x5b2fa7[_0x12c3f0('0xe')],'type':_0x5b2fa7['type'][_0x12c3f0('0x16')]};});_0xd46748['model']=_[_0x5389a0('0xa')](_0x53260b,_0x5389a0('0x6')),_0xd46748[_0x5389a0('0x10')]=_[_0x5389a0('0x1c')](_0x7a2933[_0x5389a0('0x10')]),_0xd46748[_0x5389a0('0x27')]=_[_0x5389a0('0x17')](_0xd46748[_0x5389a0('0xc')],_0xd46748['query']),_0x40bca0[_0x5389a0('0x2a')]=_[_0x5389a0('0x17')](_0xd46748[_0x5389a0('0xc')],qs[_0x5389a0('0x5')](_0x7a2933[_0x5389a0('0x10')][_0x5389a0('0x5')])),_0x40bca0[_0x5389a0('0x2a')]=_0x40bca0[_0x5389a0('0x2a')][_0x5389a0('0x1d')]?_0x40bca0['attributes']:_0xd46748[_0x5389a0('0xc')];typeof _0x7a2933['query']['nolimit']==='undefined'&&(_0x40bca0['limit']=qs['limit'](_0x7a2933[_0x5389a0('0x10')][_0x5389a0('0x1e')]),_0x40bca0[_0x5389a0('0x4')]=qs['offset'](_0x7a2933[_0x5389a0('0x10')][_0x5389a0('0x4')]));_0x40bca0[_0x5389a0('0x1a')]=qs[_0x5389a0('0x25')](_0x7a2933[_0x5389a0('0x10')][_0x5389a0('0x25')]),_0x40bca0[_0x5389a0('0x9')]=qs[_0x5389a0('0x27')](_[_0x5389a0('0x2e')](_0x7a2933[_0x5389a0('0x10')],_0xd46748['filters']),_0x53260b);_0x7a2933['query'][_0x5389a0('0xb')]&&(_0x40bca0[_0x5389a0('0x9')]=_[_0x5389a0('0x3')](_0x40bca0[_0x5389a0('0x9')],{[Op['or']]:_[_0x5389a0('0xa')](_0x53260b,function(_0x5ccec4){const _0x3e3db0=_0x5389a0;if(_0x5ccec4[_0x3e3db0('0x24')]!==_0x3e3db0('0x14')){const _0x4e7453={};return _0x4e7453[_0x5ccec4['name']]={[Op[_0x3e3db0('0x2c')]]:'%'+_0x7a2933['query'][_0x3e3db0('0xb')]+'%'},_0x4e7453;}})}));_0x40bca0=_[_0x5389a0('0x3')]({},_0x40bca0,_0x7a2933['options']);const _0x4b9844={'where':_0x40bca0[_0x5389a0('0x9')]};return db['AnalyticFieldReport'][_0x5389a0('0xf')](_0x4b9844)['then'](function(_0x585959){const _0x2d0bce=_0x5389a0;return _0x3078fa[_0x2d0bce('0xf')]=_0x585959,_0x7a2933[_0x2d0bce('0x10')][_0x2d0bce('0x33')]&&(_0x40bca0['include']=[{'all':!![]}]),db[_0x2d0bce('0x8')]['findAll'](_0x40bca0);})[_0x5389a0('0x28')](function(_0x28284f){return _0x3078fa['rows']=_0x28284f,_0x3078fa;})[_0x5389a0('0x28')](respondWithFilteredResult(_0x37ccb4,_0x40bca0))[_0x5389a0('0x18')](handleError(_0x37ccb4,null));},exports['show']=function(_0x2f6460,_0x2f0ef3){const _0x5418df=_0x28e34f;let _0x53e097={'raw':![],'where':{'id':_0x2f6460[_0x5418df('0x2')]['id']}};const _0x5f3074={};return _0x5f3074[_0x5418df('0xc')]=_[_0x5418df('0x1c')](db['AnalyticFieldReport'][_0x5418df('0x11')]),_0x5f3074[_0x5418df('0x10')]=_[_0x5418df('0x1c')](_0x2f6460[_0x5418df('0x10')]),_0x5f3074[_0x5418df('0x27')]=_[_0x5418df('0x17')](_0x5f3074[_0x5418df('0xc')],_0x5f3074[_0x5418df('0x10')]),_0x53e097[_0x5418df('0x2a')]=_['intersection'](_0x5f3074[_0x5418df('0xc')],qs[_0x5418df('0x5')](_0x2f6460[_0x5418df('0x10')][_0x5418df('0x5')])),_0x53e097[_0x5418df('0x2a')]=_0x53e097[_0x5418df('0x2a')]['length']?_0x53e097[_0x5418df('0x2a')]:_0x5f3074[_0x5418df('0xc')],_0x2f6460['query'][_0x5418df('0x33')]&&(_0x53e097[_0x5418df('0x32')]=[{'all':!![]}]),_0x53e097=_['merge']({},_0x53e097,_0x2f6460[_0x5418df('0x21')]),db['AnalyticFieldReport']['findOne'](_0x53e097)['then'](handleEntityNotFound(_0x2f0ef3,null))[_0x5418df('0x28')](respondWithResult(_0x2f0ef3,null))[_0x5418df('0x18')](handleError(_0x2f0ef3,null));},exports['create']=function(_0x1e7bae,_0x33e8e1){const _0x3a255=_0x28e34f;return db['AnalyticFieldReport']['create'](_0x1e7bae[_0x3a255('0x13')],{})[_0x3a255('0x28')](respondWithResult(_0x33e8e1,0xc9))['catch'](handleError(_0x33e8e1,null));},exports['bulkCreate']=function(_0x223335,_0x4a0650){const _0x580d83=_0x28e34f;return db[_0x580d83('0x8')][_0x580d83('0x23')](_0x223335[_0x580d83('0x13')],{'raw':![],'individualHooks':!![]})['then'](respondWithResult(_0x4a0650,0xc9))['catch'](handleError(_0x4a0650,null));},exports[_0x28e34f('0x1b')]=function(_0x51cfe5,_0x32853b){const _0x172d51=_0x28e34f;return _0x51cfe5[_0x172d51('0x13')]['id']&&delete _0x51cfe5[_0x172d51('0x13')]['id'],db[_0x172d51('0x8')]['findOne']({'where':{'id':_0x51cfe5['params']['id']}})['then'](handleEntityNotFound(_0x32853b,null))[_0x172d51('0x28')](saveUpdates(_0x51cfe5[_0x172d51('0x13')],null))[_0x172d51('0x28')](respondWithResult(_0x32853b,null))[_0x172d51('0x18')](handleError(_0x32853b,null));},exports[_0x28e34f('0x1f')]=function(_0x2dd914,_0x48c262){const _0x2c0057=_0x28e34f;return db[_0x2c0057('0x8')]['findOne']({'where':{'id':_0x2dd914[_0x2c0057('0x2')]['id']}})['then'](handleEntityNotFound(_0x48c262,null))[_0x2c0057('0x28')](removeEntity(_0x48c262,null))[_0x2c0057('0x18')](handleError(_0x48c262,null));},exports[_0x28e34f('0x1')]=function(_0x1ae22e,_0x36fcbc){const _0x55b5ba=_0x28e34f;return db[_0x55b5ba('0x8')]['destroy']({'where':{'id':_0x1ae22e['query']['ids']||[]},'raw':![],'individualHooks':!![]})[_0x55b5ba('0x28')](respondWithResult(_0x36fcbc,0xcc))[_0x55b5ba('0x18')](handleError(_0x36fcbc,null));},exports[_0x28e34f('0x22')]=function(_0x3a97c6,_0x118083){const _0x12f446=_0x28e34f;return db['AnalyticCustomReport'][_0x12f446('0x30')]({'where':{'id':_0x3a97c6[_0x12f446('0x2')]['id']}})[_0x12f446('0x28')](handleEntityNotFound(_0x118083,null))[_0x12f446('0x28')](function(_0x2815a8){const _0x282a3b=_0x12f446;if(_0x2815a8)return db[_0x282a3b('0x20')]['transaction'](function(_0x2a72b1){const _0x54eebc=_0x282a3b;return db[_0x54eebc('0x8')][_0x54eebc('0x1f')]({'where':{'CustomReportId':_0x3a97c6[_0x54eebc('0x2')]['id']},'transaction':_0x2a72b1})[_0x54eebc('0x28')](function(){const _0x245d98=_0x54eebc,_0xa10a38=_[_0x245d98('0xa')](_0x3a97c6[_0x245d98('0x13')],function(_0xc822ca){const _0x573bfd=_0x245d98;return delete _0xc822ca['id'],_0xc822ca[_0x573bfd('0x7')]=_0x3a97c6[_0x573bfd('0x2')]['id'],_0xc822ca;});return db[_0x245d98('0x8')]['bulkCreate'](_0xa10a38,{'transaction':_0x2a72b1});});})[_0x282a3b('0x28')](function(){const _0x112479=_0x282a3b;return db[_0x112479('0x8')]['findAll']({'where':{'CustomReportId':_0x3a97c6[_0x112479('0x2')]['id']}});});})[_0x12f446('0x28')](respondWithResult(_0x118083,null))['catch'](handleError(_0x118083,null));}; \ No newline at end of file diff --git a/server/api/analyticFieldReport/analyticFieldReport.model.js b/server/api/analyticFieldReport/analyticFieldReport.model.js index d69f23f..4270199 100644 --- a/server/api/analyticFieldReport/analyticFieldReport.model.js +++ b/server/api/analyticFieldReport/analyticFieldReport.model.js @@ -1 +1 @@ -const a18_0x3e95=['exports','define'];(function(_0x5e47e4,_0x3e9518){const _0x3e5996=function(_0x380771){while(--_0x380771){_0x5e47e4['push'](_0x5e47e4['shift']());}};_0x3e5996(++_0x3e9518);}(a18_0x3e95,0xa9));const a18_0x3e59=function(_0x5e47e4,_0x3e9518){_0x5e47e4=_0x5e47e4-0x0;let _0x3e5996=a18_0x3e95[_0x5e47e4];return _0x3e5996;};const _0x4d495f=a18_0x3e59;'use strict';const attributes=require('./analyticFieldReport.attributes');module[_0x4d495f('0x1')]=function(_0x380771){const _0x113e85=_0x4d495f,_0x4271bb=_0x380771[_0x113e85('0x0')]('AnalyticFieldReport',attributes,{'tableName':'analytics_report_fields','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4271bb;}; \ No newline at end of file +const a18_0x4994=['./analyticFieldReport.attributes','define','exports'];(function(_0x3b8b94,_0x4994d4){const _0x34eef7=function(_0x1794bf){while(--_0x1794bf){_0x3b8b94['push'](_0x3b8b94['shift']());}};_0x34eef7(++_0x4994d4);}(a18_0x4994,0xbb));const a18_0x34ee=function(_0x3b8b94,_0x4994d4){_0x3b8b94=_0x3b8b94-0x0;let _0x34eef7=a18_0x4994[_0x3b8b94];return _0x34eef7;};const _0x379450=a18_0x34ee;'use strict';const attributes=require(_0x379450('0x2'));module[_0x379450('0x1')]=function(_0x1794bf){const _0x22e2d0=_0x379450,_0x565b7a=_0x1794bf[_0x22e2d0('0x0')]('AnalyticFieldReport',attributes,{'tableName':'analytics_report_fields','paranoid':![],'indexes':[],'timestamps':!![]});return _0x565b7a;}; \ No newline at end of file diff --git a/server/api/analyticFieldReport/index.js b/server/api/analyticFieldReport/index.js index bae1ce1..78cb17b 100644 --- a/server/api/analyticFieldReport/index.js +++ b/server/api/analyticFieldReport/index.js @@ -1 +1 @@ -const a19_0x2879=['delete','/:id/create_many','bulkDestroy','bulkCreate','/destroy_many','/create_many','./analyticFieldReport.controller','get','create','exports','index','post','express','addFields','isAuthenticated','/:id','../../components/auth/service','show'];(function(_0x4222df,_0x287911){const _0x1039f3=function(_0x3ccfd0){while(--_0x3ccfd0){_0x4222df['push'](_0x4222df['shift']());}};_0x1039f3(++_0x287911);}(a19_0x2879,0xe9));const a19_0x1039=function(_0x4222df,_0x287911){_0x4222df=_0x4222df-0x0;let _0x1039f3=a19_0x2879[_0x4222df];return _0x1039f3;};const _0x5a9b9a=a19_0x1039;'use strict';const express=require(_0x5a9b9a('0xd')),router=express['Router'](),auth=require(_0x5a9b9a('0x11')),controller=require(_0x5a9b9a('0x7'));router[_0x5a9b9a('0x8')]('/',auth[_0x5a9b9a('0xf')](),controller[_0x5a9b9a('0xb')]),router[_0x5a9b9a('0x8')](_0x5a9b9a('0x10'),auth[_0x5a9b9a('0xf')](),controller[_0x5a9b9a('0x0')]),router[_0x5a9b9a('0xc')]('/',auth['isAuthenticated'](),controller[_0x5a9b9a('0x9')]),router[_0x5a9b9a('0xc')](_0x5a9b9a('0x6'),auth[_0x5a9b9a('0xf')](),controller[_0x5a9b9a('0x4')]),router[_0x5a9b9a('0xc')](_0x5a9b9a('0x2'),auth[_0x5a9b9a('0xf')](),controller[_0x5a9b9a('0xe')]),router['put'](_0x5a9b9a('0x10'),auth['isAuthenticated'](),controller['update']),router[_0x5a9b9a('0x1')](_0x5a9b9a('0x5'),auth[_0x5a9b9a('0xf')](),controller[_0x5a9b9a('0x3')]),router['delete'](_0x5a9b9a('0x10'),auth[_0x5a9b9a('0xf')](),controller['destroy']),module[_0x5a9b9a('0xa')]=router; \ No newline at end of file +const a19_0x26b8=['destroy','show','index','/:id','isAuthenticated','../../components/auth/service','Router','bulkDestroy','post','delete','express','/:id/create_many','/destroy_many','/create_many','update','put','get','addFields'];(function(_0x4be76d,_0x26b87e){const _0x494a01=function(_0x1bc28f){while(--_0x1bc28f){_0x4be76d['push'](_0x4be76d['shift']());}};_0x494a01(++_0x26b87e);}(a19_0x26b8,0x17e));const a19_0x494a=function(_0x4be76d,_0x26b87e){_0x4be76d=_0x4be76d-0x0;let _0x494a01=a19_0x26b8[_0x4be76d];return _0x494a01;};const _0x3220c0=a19_0x494a;'use strict';const express=require(_0x3220c0('0x6')),router=express[_0x3220c0('0x2')](),auth=require(_0x3220c0('0x1')),controller=require('./analyticFieldReport.controller');router[_0x3220c0('0xc')]('/',auth['isAuthenticated'](),controller[_0x3220c0('0x10')]),router[_0x3220c0('0xc')](_0x3220c0('0x11'),auth[_0x3220c0('0x0')](),controller[_0x3220c0('0xf')]),router[_0x3220c0('0x4')]('/',auth[_0x3220c0('0x0')](),controller['create']),router['post'](_0x3220c0('0x9'),auth[_0x3220c0('0x0')](),controller['bulkCreate']),router[_0x3220c0('0x4')](_0x3220c0('0x7'),auth[_0x3220c0('0x0')](),controller[_0x3220c0('0xd')]),router[_0x3220c0('0xb')](_0x3220c0('0x11'),auth[_0x3220c0('0x0')](),controller[_0x3220c0('0xa')]),router[_0x3220c0('0x5')](_0x3220c0('0x8'),auth[_0x3220c0('0x0')](),controller[_0x3220c0('0x3')]),router[_0x3220c0('0x5')]('/:id',auth[_0x3220c0('0x0')](),controller[_0x3220c0('0xe')]),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 ba991cd..3bae451 100644 --- a/server/api/analyticMetric/analyticMetric.attributes.js +++ b/server/api/analyticMetric/analyticMetric.attributes.js @@ -1 +1 @@ -const a20_0x5214=['sequelize','STRING','TEXT','exports'];(function(_0x402d49,_0x52141e){const _0x1ddb51=function(_0x2daabf){while(--_0x2daabf){_0x402d49['push'](_0x402d49['shift']());}};_0x1ddb51(++_0x52141e);}(a20_0x5214,0x17d));const a20_0x1ddb=function(_0x402d49,_0x52141e){_0x402d49=_0x402d49-0x0;let _0x1ddb51=a20_0x5214[_0x402d49];return _0x1ddb51;};const _0x1d01bd=a20_0x1ddb;'use strict';const Sequelize=require(_0x1d01bd('0x3'));module[_0x1d01bd('0x2')]={'name':{'type':Sequelize[_0x1d01bd('0x0')],'allowNull':![],'unique':'name'},'table':{'type':Sequelize[_0x1d01bd('0x0')]},'metric':{'type':Sequelize[_0x1d01bd('0x1')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a20_0x5354=['exports','name','TEXT','sequelize','STRING'];(function(_0x295f3a,_0x53542c){const _0x25e067=function(_0x1fc80b){while(--_0x1fc80b){_0x295f3a['push'](_0x295f3a['shift']());}};_0x25e067(++_0x53542c);}(a20_0x5354,0x1d7));const a20_0x25e0=function(_0x295f3a,_0x53542c){_0x295f3a=_0x295f3a-0x0;let _0x25e067=a20_0x5354[_0x295f3a];return _0x25e067;};const _0x3ef271=a20_0x25e0;'use strict';const Sequelize=require(_0x3ef271('0x2'));module[_0x3ef271('0x4')]={'name':{'type':Sequelize[_0x3ef271('0x3')],'allowNull':![],'unique':_0x3ef271('0x0')},'table':{'type':Sequelize[_0x3ef271('0x3')]},'metric':{'type':Sequelize[_0x3ef271('0x1')]},'description':{'type':Sequelize[_0x3ef271('0x3')]}}; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.controller.js b/server/api/analyticMetric/analyticMetric.controller.js index d6c116f..57f181c 100644 --- a/server/api/analyticMetric/analyticMetric.controller.js +++ b/server/api/analyticMetric/analyticMetric.controller.js @@ -1 +1 @@ -const a21_0x47a1=['name','fieldName','where','include','order','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','includeAll','count','status','keys','length','json','body','sendStatus','type','findOne','merge','findAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','offset','params','stack','UserProfileSection','sort','intersection','Metrics','sequelize','rawAttributes','filters','rows','userProfileId','AnalyticMetric','../../mysqldb','catch','Content-Range','error','UserProfileResource','lodash','model','query','undefined','create','autoAssociation','limit','map','pick','index','nolimit','like','VIRTUAL','api','end','get','then','user','fields','attributes','filter'];(function(_0x16e5de,_0x47a154){const _0x1826fc=function(_0x2e00f4){while(--_0x2e00f4){_0x16e5de['push'](_0x16e5de['shift']());}};_0x1826fc(++_0x47a154);}(a21_0x47a1,0xcf));const a21_0x1826=function(_0x16e5de,_0x47a154){_0x16e5de=_0x16e5de-0x0;let _0x1826fc=a21_0x47a1[_0x16e5de];return _0x1826fc;};const _0x481bbf=a21_0x1826;'use strict';const _=require(_0x481bbf('0x4')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x481bbf('0x11')),db=require(_0x481bbf('0x39'))['db'],{Op}=require(_0x481bbf('0x33'));function respondWithResult(_0x2e00f4,_0x2a8ffa){return _0x2a8ffa=_0x2a8ffa||0xc8,function(_0xd91e18){const _0xbc4a90=a21_0x1826;if(_0xd91e18)return _0x2e00f4[_0xbc4a90('0x21')](_0x2a8ffa)[_0xbc4a90('0x24')](_0xd91e18);};}function respondWithFilteredResult(_0x429b1d,_0x471116){return function(_0x2b851d){const _0x38dfd0=a21_0x1826;if(_0x2b851d){const _0x35c7f6=_0x2b851d['count'],_0x3cd04f=_0x471116[_0x38dfd0('0x2c')];let _0x402673=_0x471116['offset']+_0x471116[_0x38dfd0('0xa')],_0x40c1c2;return _0x402673>=_0x35c7f6?(_0x402673=_0x35c7f6,_0x40c1c2=0xc8):_0x40c1c2=0xce,_0x429b1d['status'](_0x40c1c2),_0x429b1d['set'](_0x38dfd0('0x1'),_0x3cd04f+'-'+_0x402673+'/'+_0x35c7f6)[_0x38dfd0('0x24')](_0x2b851d);}return null;};}function saveUpdates(_0xc286af){return function(_0x255296){if(_0x255296)return _0x255296['update'](_0xc286af)['then'](function(_0x51ca10){return _0x51ca10;});return null;};}function removeEntity(_0x14f5a6){return function(_0x363cbc){const _0x58f946=a21_0x1826;if(_0x363cbc)return _0x363cbc['destroy']()['then'](function(){const _0x5f474f=a21_0x1826,_0x4ad964=_0x363cbc[_0x5f474f('0x13')]({'plain':!![]}),_0x3cdf6e=_0x5f474f('0x32');return db['UserProfileResource']['destroy']({'where':{'type':_0x3cdf6e,'resourceId':_0x4ad964['id']}})[_0x5f474f('0x14')](function(){return _0x363cbc;});})[_0x58f946('0x14')](function(){const _0x47af7e=_0x58f946;_0x14f5a6[_0x47af7e('0x21')](0xcc)[_0x47af7e('0x12')]();});};}function handleEntityNotFound(_0x32032e){return function(_0x345448){const _0x5e52d9=a21_0x1826;return!_0x345448&&_0x32032e[_0x5e52d9('0x26')](0x194),_0x345448;};}function handleError(_0x4e0d4d,_0x1123cc){return _0x1123cc=_0x1123cc||0x1f4,function(_0x1bc89e){const _0x497f88=a21_0x1826;logger[_0x497f88('0x2')](_0x1bc89e[_0x497f88('0x2e')]),_0x1bc89e[_0x497f88('0x19')]&&delete _0x1bc89e[_0x497f88('0x19')],_0x4e0d4d[_0x497f88('0x21')](_0x1123cc)['send'](_0x1bc89e);};}exports[_0x481bbf('0xd')]=function(_0x1ed2f1,_0x59b97d){const _0x4c4d08=_0x481bbf;let _0x17c746={};const _0x1f6dd7={},_0x5b3a45={'count':0x0,'rows':[]},_0x3e2af4=_[_0x4c4d08('0xb')](db['AnalyticMetric'][_0x4c4d08('0x34')],function(_0x31c3bb){const _0x221161=_0x4c4d08;return{'name':_0x31c3bb[_0x221161('0x1a')],'type':_0x31c3bb[_0x221161('0x27')]['key']};});_0x1f6dd7[_0x4c4d08('0x5')]=_['map'](_0x3e2af4,_0x4c4d08('0x19')),_0x1f6dd7['query']=_[_0x4c4d08('0x22')](_0x1ed2f1['query']),_0x1f6dd7[_0x4c4d08('0x35')]=_[_0x4c4d08('0x31')](_0x1f6dd7[_0x4c4d08('0x5')],_0x1f6dd7[_0x4c4d08('0x6')]),_0x17c746['attributes']=_['intersection'](_0x1f6dd7['model'],qs[_0x4c4d08('0x16')](_0x1ed2f1[_0x4c4d08('0x6')][_0x4c4d08('0x16')])),_0x17c746['attributes']=_0x17c746['attributes']['length']?_0x17c746[_0x4c4d08('0x17')]:_0x1f6dd7[_0x4c4d08('0x5')];typeof _0x1ed2f1[_0x4c4d08('0x6')][_0x4c4d08('0xe')]===_0x4c4d08('0x7')&&(_0x17c746[_0x4c4d08('0xa')]=qs[_0x4c4d08('0xa')](_0x1ed2f1['query'][_0x4c4d08('0xa')]),_0x17c746[_0x4c4d08('0x2c')]=qs['offset'](_0x1ed2f1[_0x4c4d08('0x6')][_0x4c4d08('0x2c')]));_0x17c746[_0x4c4d08('0x1d')]=qs[_0x4c4d08('0x30')](_0x1ed2f1[_0x4c4d08('0x6')][_0x4c4d08('0x30')]),_0x17c746['where']=qs['filters'](_[_0x4c4d08('0xc')](_0x1ed2f1[_0x4c4d08('0x6')],_0x1f6dd7[_0x4c4d08('0x35')]),_0x3e2af4);_0x1ed2f1[_0x4c4d08('0x6')][_0x4c4d08('0x18')]&&(_0x17c746[_0x4c4d08('0x1b')]=_[_0x4c4d08('0x29')](_0x17c746[_0x4c4d08('0x1b')],{[Op['or']]:_[_0x4c4d08('0xb')](_0x3e2af4,function(_0x99ba7a){const _0x453118=_0x4c4d08;if(_0x99ba7a[_0x453118('0x27')]!==_0x453118('0x10')){const _0xb75109={};return _0xb75109[_0x99ba7a[_0x453118('0x19')]]={[Op[_0x453118('0xf')]]:'%'+_0x1ed2f1[_0x453118('0x6')][_0x453118('0x18')]+'%'},_0xb75109;}})}));_0x17c746=_[_0x4c4d08('0x29')]({},_0x17c746,_0x1ed2f1['options']);const _0x402244={'where':_0x17c746[_0x4c4d08('0x1b')]};return db[_0x4c4d08('0x38')]['count'](_0x402244)[_0x4c4d08('0x14')](function(_0x267795){const _0x51e971=_0x4c4d08;return _0x5b3a45[_0x51e971('0x20')]=_0x267795,_0x1ed2f1[_0x51e971('0x6')][_0x51e971('0x1f')]&&(_0x17c746[_0x51e971('0x1c')]=[{'all':!![]}]),db[_0x51e971('0x38')][_0x51e971('0x2a')](_0x17c746);})[_0x4c4d08('0x14')](function(_0x6b0697){const _0x372a9d=_0x4c4d08;return _0x5b3a45[_0x372a9d('0x36')]=_0x6b0697,_0x5b3a45;})[_0x4c4d08('0x14')](respondWithFilteredResult(_0x59b97d,_0x17c746))['catch'](handleError(_0x59b97d,null));},exports['show']=function(_0x1b7eae,_0x22c8ba){const _0x570dee=_0x481bbf;let _0x25ac2d={'raw':!![],'where':{'id':_0x1b7eae[_0x570dee('0x2d')]['id']}};const _0x387439={};return _0x387439[_0x570dee('0x5')]=_['keys'](db[_0x570dee('0x38')][_0x570dee('0x34')]),_0x387439[_0x570dee('0x6')]=_[_0x570dee('0x22')](_0x1b7eae[_0x570dee('0x6')]),_0x387439[_0x570dee('0x35')]=_[_0x570dee('0x31')](_0x387439['model'],_0x387439[_0x570dee('0x6')]),_0x25ac2d[_0x570dee('0x17')]=_[_0x570dee('0x31')](_0x387439[_0x570dee('0x5')],qs['fields'](_0x1b7eae[_0x570dee('0x6')][_0x570dee('0x16')])),_0x25ac2d[_0x570dee('0x17')]=_0x25ac2d[_0x570dee('0x17')][_0x570dee('0x23')]?_0x25ac2d['attributes']:_0x387439['model'],_0x1b7eae[_0x570dee('0x6')][_0x570dee('0x1f')]&&(_0x25ac2d['include']=[{'all':!![]}]),_0x25ac2d=_['merge']({},_0x25ac2d,_0x1b7eae['options']),db[_0x570dee('0x38')][_0x570dee('0x28')](_0x25ac2d)[_0x570dee('0x14')](handleEntityNotFound(_0x22c8ba,null))[_0x570dee('0x14')](respondWithResult(_0x22c8ba,null))[_0x570dee('0x0')](handleError(_0x22c8ba,null));},exports[_0x481bbf('0x8')]=function(_0x2e6adc,_0x63f549){const _0x417c4c=_0x481bbf;return db[_0x417c4c('0x38')][_0x417c4c('0x8')](_0x2e6adc['body'],{})[_0x417c4c('0x14')](function(_0x4ac074){const _0x3fa579=_0x417c4c,_0x414aaf=_0x2e6adc['user']['get']({'plain':!![]});if(!_0x414aaf)throw new Error(_0x3fa579('0x2b'));if(_0x414aaf['role']===_0x3fa579('0x15')){const _0x41d2d5=_0x4ac074[_0x3fa579('0x13')]({'plain':!![]}),_0x2929ec=_0x3fa579('0x32');return db[_0x3fa579('0x2f')]['findOne']({'where':{'name':_0x2929ec,'userProfileId':_0x414aaf[_0x3fa579('0x37')]},'raw':!![]})[_0x3fa579('0x14')](function(_0x1be95e){const _0x1fc396=_0x3fa579;return _0x1be95e&&_0x1be95e[_0x1fc396('0x9')]===0x0?db[_0x1fc396('0x3')]['create']({'name':_0x41d2d5['name'],'resourceId':_0x41d2d5['id'],'type':_0x1be95e[_0x1fc396('0x19')],'sectionId':_0x1be95e['id']},{})[_0x1fc396('0x14')](function(){return _0x4ac074;}):_0x4ac074;})['catch'](function(_0x30845b){const _0x117133=_0x3fa579;logger[_0x117133('0x2')](_0x117133('0x1e'),_0x30845b);throw _0x30845b;});}return _0x4ac074;})[_0x417c4c('0x14')](respondWithResult(_0x63f549,0xc9))[_0x417c4c('0x0')](handleError(_0x63f549,null));},exports['update']=function(_0x4bd3e4,_0x4e88b3){const _0xcdf60c=_0x481bbf;return _0x4bd3e4[_0xcdf60c('0x25')]['id']&&delete _0x4bd3e4[_0xcdf60c('0x25')]['id'],db[_0xcdf60c('0x38')]['findOne']({'where':{'id':_0x4bd3e4['params']['id']}})[_0xcdf60c('0x14')](handleEntityNotFound(_0x4e88b3,null))[_0xcdf60c('0x14')](saveUpdates(_0x4bd3e4[_0xcdf60c('0x25')],null))[_0xcdf60c('0x14')](respondWithResult(_0x4e88b3,null))[_0xcdf60c('0x0')](handleError(_0x4e88b3,null));},exports['destroy']=function(_0x1feb21,_0x4d576a){const _0x1818fb=_0x481bbf;return db[_0x1818fb('0x38')][_0x1818fb('0x28')]({'where':{'id':_0x1feb21[_0x1818fb('0x2d')]['id']}})[_0x1818fb('0x14')](handleEntityNotFound(_0x4d576a,null))[_0x1818fb('0x14')](removeEntity(_0x4d576a,null))['catch'](handleError(_0x4d576a,null));}; \ No newline at end of file +const a21_0x172b=['merge','get','filter','query','filters','body','where','catch','lodash','findAll','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','length','rawAttributes','name','nolimit','status','show','type','create','userProfileId','options','keys','intersection','attributes','map','destroy','includeAll','error','user','count','../../config/logger','include','sendStatus','AnalyticMetric','fields','order','Content-Range','findOne','then','pick','end','UserProfileSection','role','offset','send','params','undefined','sequelize','VIRTUAL','json','../../mysqldb','limit','UserProfileResource','Unable\x20to\x20retrieve\x20the\x20current\x20user','rows','sort','stack','api','../../components/parsers/qs','key','model','autoAssociation','index','fieldName'];(function(_0x257958,_0x172b43){const _0x10bb65=function(_0x53cbd6){while(--_0x53cbd6){_0x257958['push'](_0x257958['shift']());}};_0x10bb65(++_0x172b43);}(a21_0x172b,0x18a));const a21_0x10bb=function(_0x257958,_0x172b43){_0x257958=_0x257958-0x0;let _0x10bb65=a21_0x172b[_0x257958];return _0x10bb65;};const _0x4e10d1=a21_0x10bb;'use strict';const _=require(_0x4e10d1('0x3e')),qs=require(_0x4e10d1('0x30')),logger=require(_0x4e10d1('0x14'))(_0x4e10d1('0x2f')),db=require(_0x4e10d1('0x28'))['db'],{Op}=require(_0x4e10d1('0x25'));function respondWithResult(_0x53cbd6,_0x2b2393){return _0x2b2393=_0x2b2393||0xc8,function(_0x2c7855){const _0x39ad53=a21_0x10bb;if(_0x2c7855)return _0x53cbd6['status'](_0x2b2393)[_0x39ad53('0x27')](_0x2c7855);};}function respondWithFilteredResult(_0x2c47fe,_0x52f00a){return function(_0x542ef3){const _0x1de507=a21_0x10bb;if(_0x542ef3){const _0x5d28b1=_0x542ef3[_0x1de507('0x13')],_0x1c925b=_0x52f00a[_0x1de507('0x21')];let _0x31d8b5=_0x52f00a[_0x1de507('0x21')]+_0x52f00a[_0x1de507('0x29')],_0x56f05e;return _0x31d8b5>=_0x5d28b1?(_0x31d8b5=_0x5d28b1,_0x56f05e=0xc8):_0x56f05e=0xce,_0x2c47fe[_0x1de507('0x5')](_0x56f05e),_0x2c47fe['set'](_0x1de507('0x1a'),_0x1c925b+'-'+_0x31d8b5+'/'+_0x5d28b1)[_0x1de507('0x27')](_0x542ef3);}return null;};}function saveUpdates(_0x4d8c69){return function(_0x5272b7){const _0x2750aa=a21_0x10bb;if(_0x5272b7)return _0x5272b7['update'](_0x4d8c69)[_0x2750aa('0x1c')](function(_0x5aa697){return _0x5aa697;});return null;};}function removeEntity(_0x2e547d){return function(_0x131a4e){const _0x1cbd41=a21_0x10bb;if(_0x131a4e)return _0x131a4e[_0x1cbd41('0xf')]()['then'](function(){const _0x3857ba=_0x1cbd41,_0x4f2a01=_0x131a4e['get']({'plain':!![]}),_0x1451b0='Metrics';return db[_0x3857ba('0x2a')][_0x3857ba('0xf')]({'where':{'type':_0x1451b0,'resourceId':_0x4f2a01['id']}})[_0x3857ba('0x1c')](function(){return _0x131a4e;});})[_0x1cbd41('0x1c')](function(){const _0x4ac94a=_0x1cbd41;_0x2e547d['status'](0xcc)[_0x4ac94a('0x1e')]();});};}function handleEntityNotFound(_0x11c586){return function(_0x5035f6){const _0x35cf59=a21_0x10bb;return!_0x5035f6&&_0x11c586[_0x35cf59('0x16')](0x194),_0x5035f6;};}function handleError(_0x44e665,_0x165bf1){return _0x165bf1=_0x165bf1||0x1f4,function(_0xfe5665){const _0x21f330=a21_0x10bb;logger[_0x21f330('0x11')](_0xfe5665[_0x21f330('0x2e')]),_0xfe5665['name']&&delete _0xfe5665[_0x21f330('0x3')],_0x44e665[_0x21f330('0x5')](_0x165bf1)[_0x21f330('0x22')](_0xfe5665);};}exports[_0x4e10d1('0x34')]=function(_0x37523e,_0xfed739){const _0x59a325=_0x4e10d1;let _0x2693dc={};const _0x581569={},_0x3c5f87={'count':0x0,'rows':[]},_0x51dc76=_['map'](db['AnalyticMetric'][_0x59a325('0x2')],function(_0x477186){const _0x4ad058=_0x59a325;return{'name':_0x477186[_0x4ad058('0x35')],'type':_0x477186[_0x4ad058('0x7')][_0x4ad058('0x31')]};});_0x581569[_0x59a325('0x32')]=_[_0x59a325('0xe')](_0x51dc76,_0x59a325('0x3')),_0x581569[_0x59a325('0x39')]=_[_0x59a325('0xb')](_0x37523e[_0x59a325('0x39')]),_0x581569[_0x59a325('0x3a')]=_[_0x59a325('0xc')](_0x581569[_0x59a325('0x32')],_0x581569[_0x59a325('0x39')]),_0x2693dc['attributes']=_[_0x59a325('0xc')](_0x581569[_0x59a325('0x32')],qs[_0x59a325('0x18')](_0x37523e[_0x59a325('0x39')][_0x59a325('0x18')])),_0x2693dc['attributes']=_0x2693dc[_0x59a325('0xd')][_0x59a325('0x1')]?_0x2693dc[_0x59a325('0xd')]:_0x581569['model'];typeof _0x37523e['query'][_0x59a325('0x4')]===_0x59a325('0x24')&&(_0x2693dc['limit']=qs[_0x59a325('0x29')](_0x37523e[_0x59a325('0x39')][_0x59a325('0x29')]),_0x2693dc[_0x59a325('0x21')]=qs[_0x59a325('0x21')](_0x37523e[_0x59a325('0x39')][_0x59a325('0x21')]));_0x2693dc[_0x59a325('0x19')]=qs[_0x59a325('0x2d')](_0x37523e['query'][_0x59a325('0x2d')]),_0x2693dc[_0x59a325('0x3c')]=qs[_0x59a325('0x3a')](_[_0x59a325('0x1d')](_0x37523e[_0x59a325('0x39')],_0x581569['filters']),_0x51dc76);_0x37523e[_0x59a325('0x39')]['filter']&&(_0x2693dc[_0x59a325('0x3c')]=_[_0x59a325('0x36')](_0x2693dc[_0x59a325('0x3c')],{[Op['or']]:_[_0x59a325('0xe')](_0x51dc76,function(_0xd45558){const _0x3358e2=_0x59a325;if(_0xd45558[_0x3358e2('0x7')]!==_0x3358e2('0x26')){const _0x1774f1={};return _0x1774f1[_0xd45558[_0x3358e2('0x3')]]={[Op['like']]:'%'+_0x37523e[_0x3358e2('0x39')][_0x3358e2('0x38')]+'%'},_0x1774f1;}})}));_0x2693dc=_[_0x59a325('0x36')]({},_0x2693dc,_0x37523e[_0x59a325('0xa')]);const _0x10e76e={'where':_0x2693dc[_0x59a325('0x3c')]};return db[_0x59a325('0x17')]['count'](_0x10e76e)[_0x59a325('0x1c')](function(_0x1ace09){const _0x21d8b4=_0x59a325;return _0x3c5f87[_0x21d8b4('0x13')]=_0x1ace09,_0x37523e[_0x21d8b4('0x39')][_0x21d8b4('0x10')]&&(_0x2693dc[_0x21d8b4('0x15')]=[{'all':!![]}]),db[_0x21d8b4('0x17')][_0x21d8b4('0x3f')](_0x2693dc);})[_0x59a325('0x1c')](function(_0x234e59){const _0x30b330=_0x59a325;return _0x3c5f87[_0x30b330('0x2c')]=_0x234e59,_0x3c5f87;})[_0x59a325('0x1c')](respondWithFilteredResult(_0xfed739,_0x2693dc))[_0x59a325('0x3d')](handleError(_0xfed739,null));},exports[_0x4e10d1('0x6')]=function(_0x13c60f,_0x55af37){const _0x3e3bb2=_0x4e10d1;let _0x2a603a={'raw':!![],'where':{'id':_0x13c60f[_0x3e3bb2('0x23')]['id']}};const _0x562086={};return _0x562086[_0x3e3bb2('0x32')]=_[_0x3e3bb2('0xb')](db[_0x3e3bb2('0x17')][_0x3e3bb2('0x2')]),_0x562086[_0x3e3bb2('0x39')]=_[_0x3e3bb2('0xb')](_0x13c60f['query']),_0x562086[_0x3e3bb2('0x3a')]=_[_0x3e3bb2('0xc')](_0x562086[_0x3e3bb2('0x32')],_0x562086[_0x3e3bb2('0x39')]),_0x2a603a[_0x3e3bb2('0xd')]=_[_0x3e3bb2('0xc')](_0x562086['model'],qs['fields'](_0x13c60f[_0x3e3bb2('0x39')]['fields'])),_0x2a603a[_0x3e3bb2('0xd')]=_0x2a603a['attributes']['length']?_0x2a603a[_0x3e3bb2('0xd')]:_0x562086[_0x3e3bb2('0x32')],_0x13c60f[_0x3e3bb2('0x39')][_0x3e3bb2('0x10')]&&(_0x2a603a[_0x3e3bb2('0x15')]=[{'all':!![]}]),_0x2a603a=_[_0x3e3bb2('0x36')]({},_0x2a603a,_0x13c60f['options']),db[_0x3e3bb2('0x17')]['findOne'](_0x2a603a)[_0x3e3bb2('0x1c')](handleEntityNotFound(_0x55af37,null))['then'](respondWithResult(_0x55af37,null))[_0x3e3bb2('0x3d')](handleError(_0x55af37,null));},exports[_0x4e10d1('0x8')]=function(_0x3882dc,_0x12cbca){const _0x2bb9c0=_0x4e10d1;return db[_0x2bb9c0('0x17')]['create'](_0x3882dc['body'],{})[_0x2bb9c0('0x1c')](function(_0x173381){const _0x2ce5b1=_0x2bb9c0,_0x29ac9c=_0x3882dc[_0x2ce5b1('0x12')][_0x2ce5b1('0x37')]({'plain':!![]});if(!_0x29ac9c)throw new Error(_0x2ce5b1('0x2b'));if(_0x29ac9c[_0x2ce5b1('0x20')]===_0x2ce5b1('0x12')){const _0x451406=_0x173381[_0x2ce5b1('0x37')]({'plain':!![]}),_0x59c6cf='Metrics';return db[_0x2ce5b1('0x1f')]['findOne']({'where':{'name':_0x59c6cf,'userProfileId':_0x29ac9c[_0x2ce5b1('0x9')]},'raw':!![]})[_0x2ce5b1('0x1c')](function(_0x2b3822){const _0x10ddd1=_0x2ce5b1;return _0x2b3822&&_0x2b3822[_0x10ddd1('0x33')]===0x0?db['UserProfileResource'][_0x10ddd1('0x8')]({'name':_0x451406[_0x10ddd1('0x3')],'resourceId':_0x451406['id'],'type':_0x2b3822['name'],'sectionId':_0x2b3822['id']},{})[_0x10ddd1('0x1c')](function(){return _0x173381;}):_0x173381;})[_0x2ce5b1('0x3d')](function(_0x68eb72){const _0x43ae27=_0x2ce5b1;logger['error'](_0x43ae27('0x0'),_0x68eb72);throw _0x68eb72;});}return _0x173381;})[_0x2bb9c0('0x1c')](respondWithResult(_0x12cbca,0xc9))[_0x2bb9c0('0x3d')](handleError(_0x12cbca,null));},exports['update']=function(_0x1f52f6,_0x5bd951){const _0x2a225a=_0x4e10d1;return _0x1f52f6[_0x2a225a('0x3b')]['id']&&delete _0x1f52f6[_0x2a225a('0x3b')]['id'],db[_0x2a225a('0x17')][_0x2a225a('0x1b')]({'where':{'id':_0x1f52f6[_0x2a225a('0x23')]['id']}})[_0x2a225a('0x1c')](handleEntityNotFound(_0x5bd951,null))[_0x2a225a('0x1c')](saveUpdates(_0x1f52f6[_0x2a225a('0x3b')],null))[_0x2a225a('0x1c')](respondWithResult(_0x5bd951,null))[_0x2a225a('0x3d')](handleError(_0x5bd951,null));},exports[_0x4e10d1('0xf')]=function(_0x4bf8b9,_0x66643d){const _0x16635f=_0x4e10d1;return db['AnalyticMetric']['findOne']({'where':{'id':_0x4bf8b9['params']['id']}})['then'](handleEntityNotFound(_0x66643d,null))[_0x16635f('0x1c')](removeEntity(_0x66643d,null))[_0x16635f('0x3d')](handleError(_0x66643d,null));}; \ No newline at end of file diff --git a/server/api/analyticMetric/analyticMetric.model.js b/server/api/analyticMetric/analyticMetric.model.js index cd8eb64..8e9b9ea 100644 --- a/server/api/analyticMetric/analyticMetric.model.js +++ b/server/api/analyticMetric/analyticMetric.model.js @@ -1 +1 @@ -const a22_0xd847=['analytics_metrics','AnalyticMetric','./analyticMetric.attributes','define'];(function(_0x5dc597,_0xd847cd){const _0x379a69=function(_0x1279db){while(--_0x1279db){_0x5dc597['push'](_0x5dc597['shift']());}};_0x379a69(++_0xd847cd);}(a22_0xd847,0xb0));const a22_0x379a=function(_0x5dc597,_0xd847cd){_0x5dc597=_0x5dc597-0x0;let _0x379a69=a22_0xd847[_0x5dc597];return _0x379a69;};const _0x1cd4c9=a22_0x379a;'use strict';const attributes=require(_0x1cd4c9('0x2'));module['exports']=function(_0x1279db){const _0x4cea08=_0x1cd4c9,_0x45c7cf=_0x1279db[_0x4cea08('0x3')](_0x4cea08('0x1'),attributes,{'tableName':_0x4cea08('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x45c7cf;}; \ No newline at end of file +const a22_0x2240=['analytics_metrics','AnalyticMetric','./analyticMetric.attributes','define'];(function(_0x17d457,_0x2240cf){const _0x5bd856=function(_0x545034){while(--_0x545034){_0x17d457['push'](_0x17d457['shift']());}};_0x5bd856(++_0x2240cf);}(a22_0x2240,0x1a8));const a22_0x5bd8=function(_0x17d457,_0x2240cf){_0x17d457=_0x17d457-0x0;let _0x5bd856=a22_0x2240[_0x17d457];return _0x5bd856;};const _0x2ff8d3=a22_0x5bd8;'use strict';const attributes=require(_0x2ff8d3('0x2'));module['exports']=function(_0x545034){const _0x4e052e=_0x2ff8d3,_0x334e77=_0x545034[_0x4e052e('0x3')](_0x4e052e('0x1'),attributes,{'tableName':_0x4e052e('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x334e77;}; \ No newline at end of file diff --git a/server/api/analyticMetric/index.js b/server/api/analyticMetric/index.js index 6ae4db9..4bfb14b 100644 --- a/server/api/analyticMetric/index.js +++ b/server/api/analyticMetric/index.js @@ -1 +1 @@ -const a23_0x1566=['express','isAuthenticated','delete','update','get','put','destroy','../../components/auth/service','./analyticMetric.controller','index','exports','show','/:id'];(function(_0x2a7274,_0x156679){const _0x4766b8=function(_0x2e4c38){while(--_0x2e4c38){_0x2a7274['push'](_0x2a7274['shift']());}};_0x4766b8(++_0x156679);}(a23_0x1566,0x9d));const a23_0x4766=function(_0x2a7274,_0x156679){_0x2a7274=_0x2a7274-0x0;let _0x4766b8=a23_0x1566[_0x2a7274];return _0x4766b8;};const _0x21b2ec=a23_0x4766;'use strict';const express=require(_0x21b2ec('0xc')),router=express['Router'](),auth=require(_0x21b2ec('0x6')),controller=require(_0x21b2ec('0x7'));router[_0x21b2ec('0x3')]('/',auth[_0x21b2ec('0x0')](),controller[_0x21b2ec('0x8')]),router[_0x21b2ec('0x3')](_0x21b2ec('0xb'),auth['isAuthenticated'](),controller[_0x21b2ec('0xa')]),router['post']('/',auth[_0x21b2ec('0x0')](),controller['create']),router[_0x21b2ec('0x4')](_0x21b2ec('0xb'),auth[_0x21b2ec('0x0')](),controller[_0x21b2ec('0x2')]),router[_0x21b2ec('0x1')]('/:id',auth['isAuthenticated'](),controller[_0x21b2ec('0x5')]),module[_0x21b2ec('0x9')]=router; \ No newline at end of file +const a23_0x174e=['get','create','show','./analyticMetric.controller','delete','post','Router','update','isAuthenticated','express','put','index','/:id'];(function(_0x4d5079,_0x174e17){const _0x2fb3c4=function(_0x12e391){while(--_0x12e391){_0x4d5079['push'](_0x4d5079['shift']());}};_0x2fb3c4(++_0x174e17);}(a23_0x174e,0x1a5));const a23_0x2fb3=function(_0x4d5079,_0x174e17){_0x4d5079=_0x4d5079-0x0;let _0x2fb3c4=a23_0x174e[_0x4d5079];return _0x2fb3c4;};const _0x2d53ca=a23_0x2fb3;'use strict';const express=require(_0x2d53ca('0x4')),router=express[_0x2d53ca('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x2d53ca('0xb'));router[_0x2d53ca('0x8')]('/',auth[_0x2d53ca('0x3')](),controller[_0x2d53ca('0x6')]),router['get'](_0x2d53ca('0x7'),auth[_0x2d53ca('0x3')](),controller[_0x2d53ca('0xa')]),router[_0x2d53ca('0x0')]('/',auth[_0x2d53ca('0x3')](),controller[_0x2d53ca('0x9')]),router[_0x2d53ca('0x5')](_0x2d53ca('0x7'),auth[_0x2d53ca('0x3')](),controller[_0x2d53ca('0x2')]),router[_0x2d53ca('0xc')](_0x2d53ca('0x7'),auth[_0x2d53ca('0x3')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.attributes.js b/server/api/analyticTreeReport/analyticTreeReport.attributes.js index 5dd8fa2..1bc7710 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.attributes.js +++ b/server/api/analyticTreeReport/analyticTreeReport.attributes.js @@ -1 +1 @@ -const a24_0x5628=['TEXT','exports','sequelize'];(function(_0x496598,_0x562820){const _0x369fd9=function(_0x261220){while(--_0x261220){_0x496598['push'](_0x496598['shift']());}};_0x369fd9(++_0x562820);}(a24_0x5628,0xa1));const a24_0x369f=function(_0x496598,_0x562820){_0x496598=_0x496598-0x0;let _0x369fd9=a24_0x5628[_0x496598];return _0x369fd9;};const _0x30a0c5=a24_0x369f;'use strict';const Sequelize=require(_0x30a0c5('0x0'));module[_0x30a0c5('0x2')]={'tree':{'type':Sequelize[_0x30a0c5('0x1')],'allowNull':![]}}; \ No newline at end of file +const a24_0x499c=['exports','TEXT','sequelize'];(function(_0x2067d2,_0x499c80){const _0x44801d=function(_0x3a69aa){while(--_0x3a69aa){_0x2067d2['push'](_0x2067d2['shift']());}};_0x44801d(++_0x499c80);}(a24_0x499c,0x14d));const a24_0x4480=function(_0x2067d2,_0x499c80){_0x2067d2=_0x2067d2-0x0;let _0x44801d=a24_0x499c[_0x2067d2];return _0x44801d;};const _0x59d81f=a24_0x4480;'use strict';const Sequelize=require(_0x59d81f('0x2'));module[_0x59d81f('0x0')]={'tree':{'type':Sequelize[_0x59d81f('0x1')],'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.controller.js b/server/api/analyticTreeReport/analyticTreeReport.controller.js index 95693ab..2cc88ab 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.controller.js +++ b/server/api/analyticTreeReport/analyticTreeReport.controller.js @@ -1 +1 @@ -const a25_0x2d83=['attributes','Content-Range','model','destroy','index','includeAll','../../config/logger','create','filter','type','filters','sequelize','key','then','pick','AnalyticTreeReport','VIRTUAL','send','nolimit','update','findOne','options','merge','offset','undefined','status','include','intersection','limit','stack','findAll','sendStatus','sort','catch','body','order','count','query','fields','params','map','name','keys','where','../../components/parsers/qs','length'];(function(_0x351d8b,_0x2d8310){const _0xbeb3bf=function(_0x9ccd36){while(--_0x9ccd36){_0x351d8b['push'](_0x351d8b['shift']());}};_0xbeb3bf(++_0x2d8310);}(a25_0x2d83,0x1ae));const a25_0xbeb3=function(_0x351d8b,_0x2d8310){_0x351d8b=_0x351d8b-0x0;let _0xbeb3bf=a25_0x2d83[_0x351d8b];return _0xbeb3bf;};const _0x562230=a25_0xbeb3;'use strict';const _=require('lodash'),qs=require(_0x562230('0x1c')),logger=require(_0x562230('0x24'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x562230('0x29'));function respondWithResult(_0x9ccd36,_0x17fc97){return _0x17fc97=_0x17fc97||0xc8,function(_0x12bee7){const _0x1de3dd=a25_0xbeb3;if(_0x12bee7)return _0x9ccd36[_0x1de3dd('0x9')](_0x17fc97)['json'](_0x12bee7);};}function respondWithFilteredResult(_0x2a2b5f,_0x52d514){return function(_0x46a3bb){const _0x294ca2=a25_0xbeb3;if(_0x46a3bb){const _0x52d111=_0x46a3bb[_0x294ca2('0x14')],_0x4cef89=_0x52d514['offset'];let _0x48cf2f=_0x52d514[_0x294ca2('0x7')]+_0x52d514[_0x294ca2('0xc')],_0x621757;return _0x48cf2f>=_0x52d111?(_0x48cf2f=_0x52d111,_0x621757=0xc8):_0x621757=0xce,_0x2a2b5f[_0x294ca2('0x9')](_0x621757),_0x2a2b5f['set'](_0x294ca2('0x1f'),_0x4cef89+'-'+_0x48cf2f+'/'+_0x52d111)['json'](_0x46a3bb);}return null;};}function saveUpdates(_0x34a66e){return function(_0xe172b4){const _0x3623fe=a25_0xbeb3;if(_0xe172b4)return _0xe172b4[_0x3623fe('0x3')](_0x34a66e)[_0x3623fe('0x2b')](function(_0x36416d){return _0x36416d;});return null;};}function removeEntity(_0x2c9caf){return function(_0x854cb){const _0x442b67=a25_0xbeb3;if(_0x854cb)return _0x854cb['destroy']()[_0x442b67('0x2b')](function(){_0x2c9caf['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x17f85c){return function(_0x1e1407){const _0x48261a=a25_0xbeb3;return!_0x1e1407&&_0x17f85c[_0x48261a('0xf')](0x194),_0x1e1407;};}function handleError(_0x2b24fb,_0x4a1060){return _0x4a1060=_0x4a1060||0x1f4,function(_0x453fce){const _0x1c4489=a25_0xbeb3;logger['error'](_0x453fce[_0x1c4489('0xd')]),_0x453fce[_0x1c4489('0x19')]&&delete _0x453fce[_0x1c4489('0x19')],_0x2b24fb[_0x1c4489('0x9')](_0x4a1060)[_0x1c4489('0x1')](_0x453fce);};}exports[_0x562230('0x22')]=function(_0x59448f,_0x3f92b3){const _0x1aea29=_0x562230;let _0x43bc35={};const _0x350310={},_0x180c60={'count':0x0,'rows':[]},_0x26acf9=_[_0x1aea29('0x18')](db[_0x1aea29('0x2d')]['rawAttributes'],function(_0x63013d){const _0x292c0f=_0x1aea29;return{'name':_0x63013d['fieldName'],'type':_0x63013d[_0x292c0f('0x27')][_0x292c0f('0x2a')]};});_0x350310[_0x1aea29('0x20')]=_[_0x1aea29('0x18')](_0x26acf9,'name'),_0x350310[_0x1aea29('0x15')]=_[_0x1aea29('0x1a')](_0x59448f['query']),_0x350310['filters']=_[_0x1aea29('0xb')](_0x350310[_0x1aea29('0x20')],_0x350310['query']),_0x43bc35[_0x1aea29('0x1e')]=_[_0x1aea29('0xb')](_0x350310[_0x1aea29('0x20')],qs[_0x1aea29('0x16')](_0x59448f[_0x1aea29('0x15')]['fields'])),_0x43bc35[_0x1aea29('0x1e')]=_0x43bc35[_0x1aea29('0x1e')][_0x1aea29('0x1d')]?_0x43bc35[_0x1aea29('0x1e')]:_0x350310[_0x1aea29('0x20')];typeof _0x59448f[_0x1aea29('0x15')][_0x1aea29('0x2')]===_0x1aea29('0x8')&&(_0x43bc35[_0x1aea29('0xc')]=qs[_0x1aea29('0xc')](_0x59448f[_0x1aea29('0x15')][_0x1aea29('0xc')]),_0x43bc35[_0x1aea29('0x7')]=qs[_0x1aea29('0x7')](_0x59448f[_0x1aea29('0x15')]['offset']));_0x43bc35[_0x1aea29('0x13')]=qs['sort'](_0x59448f[_0x1aea29('0x15')][_0x1aea29('0x10')]),_0x43bc35['where']=qs[_0x1aea29('0x28')](_[_0x1aea29('0x2c')](_0x59448f[_0x1aea29('0x15')],_0x350310[_0x1aea29('0x28')]),_0x26acf9);_0x59448f[_0x1aea29('0x15')][_0x1aea29('0x26')]&&(_0x43bc35[_0x1aea29('0x1b')]=_[_0x1aea29('0x6')](_0x43bc35[_0x1aea29('0x1b')],{[Op['or']]:_[_0x1aea29('0x18')](_0x26acf9,function(_0x5f2691){const _0x32aee5=_0x1aea29;if(_0x5f2691[_0x32aee5('0x27')]!==_0x32aee5('0x0')){const _0x192262={};return _0x192262[_0x5f2691[_0x32aee5('0x19')]]={[Op['like']]:'%'+_0x59448f[_0x32aee5('0x15')][_0x32aee5('0x26')]+'%'},_0x192262;}})}));_0x43bc35=_[_0x1aea29('0x6')]({},_0x43bc35,_0x59448f[_0x1aea29('0x5')]);const _0x28bd8a={'where':_0x43bc35[_0x1aea29('0x1b')]};return db[_0x1aea29('0x2d')][_0x1aea29('0x14')](_0x28bd8a)[_0x1aea29('0x2b')](function(_0x809a1a){const _0x46535b=_0x1aea29;return _0x180c60[_0x46535b('0x14')]=_0x809a1a,_0x59448f[_0x46535b('0x15')][_0x46535b('0x23')]&&(_0x43bc35[_0x46535b('0xa')]=[{'all':!![]}]),db[_0x46535b('0x2d')][_0x46535b('0xe')](_0x43bc35);})[_0x1aea29('0x2b')](function(_0x5e221d){return _0x180c60['rows']=_0x5e221d,_0x180c60;})[_0x1aea29('0x2b')](respondWithFilteredResult(_0x3f92b3,_0x43bc35))[_0x1aea29('0x11')](handleError(_0x3f92b3,null));},exports['show']=function(_0x409bde,_0x147315){const _0x1ccb59=_0x562230;let _0x1b0697={'raw':!![],'where':{'id':_0x409bde[_0x1ccb59('0x17')]['id']}};const _0x48ca14={};return _0x48ca14[_0x1ccb59('0x20')]=_['keys'](db['AnalyticTreeReport']['rawAttributes']),_0x48ca14[_0x1ccb59('0x15')]=_['keys'](_0x409bde[_0x1ccb59('0x15')]),_0x48ca14[_0x1ccb59('0x28')]=_[_0x1ccb59('0xb')](_0x48ca14[_0x1ccb59('0x20')],_0x48ca14['query']),_0x1b0697[_0x1ccb59('0x1e')]=_[_0x1ccb59('0xb')](_0x48ca14['model'],qs['fields'](_0x409bde[_0x1ccb59('0x15')][_0x1ccb59('0x16')])),_0x1b0697['attributes']=_0x1b0697[_0x1ccb59('0x1e')][_0x1ccb59('0x1d')]?_0x1b0697['attributes']:_0x48ca14[_0x1ccb59('0x20')],_0x409bde[_0x1ccb59('0x15')][_0x1ccb59('0x23')]&&(_0x1b0697[_0x1ccb59('0xa')]=[{'all':!![]}]),_0x1b0697=_['merge']({},_0x1b0697,_0x409bde[_0x1ccb59('0x5')]),db[_0x1ccb59('0x2d')][_0x1ccb59('0x4')](_0x1b0697)[_0x1ccb59('0x2b')](handleEntityNotFound(_0x147315,null))[_0x1ccb59('0x2b')](respondWithResult(_0x147315,null))[_0x1ccb59('0x11')](handleError(_0x147315,null));},exports[_0x562230('0x25')]=function(_0x288fcb,_0x1abba4){const _0x4d52aa=_0x562230;return db[_0x4d52aa('0x2d')][_0x4d52aa('0x25')](_0x288fcb[_0x4d52aa('0x12')],{})[_0x4d52aa('0x2b')](respondWithResult(_0x1abba4,0xc9))[_0x4d52aa('0x11')](handleError(_0x1abba4,null));},exports[_0x562230('0x3')]=function(_0x33bf7b,_0x1b058b){const _0x1066e0=_0x562230;return _0x33bf7b[_0x1066e0('0x12')]['id']&&delete _0x33bf7b[_0x1066e0('0x12')]['id'],db['AnalyticTreeReport'][_0x1066e0('0x4')]({'where':{'id':_0x33bf7b['params']['id']}})['then'](handleEntityNotFound(_0x1b058b,null))['then'](saveUpdates(_0x33bf7b[_0x1066e0('0x12')],null))['then'](respondWithResult(_0x1b058b,null))[_0x1066e0('0x11')](handleError(_0x1b058b,null));},exports[_0x562230('0x21')]=function(_0x130f3d,_0x2513f3){const _0x253e54=_0x562230;return db[_0x253e54('0x2d')][_0x253e54('0x4')]({'where':{'id':_0x130f3d[_0x253e54('0x17')]['id']}})[_0x253e54('0x2b')](handleEntityNotFound(_0x2513f3,null))[_0x253e54('0x2b')](removeEntity(_0x2513f3,null))['catch'](handleError(_0x2513f3,null));}; \ No newline at end of file +const a25_0x4121=['error','options','destroy','include','params','type','../../mysqldb','model','Content-Range','length','like','filters','set','json','sequelize','attributes','../../components/parsers/qs','rawAttributes','filter','sort','status','merge','fields','map','AnalyticTreeReport','findOne','query','end','catch','intersection','offset','key','then','count','VIRTUAL','lodash','body','undefined','send','where','create','includeAll','order','name','limit','keys','update','sendStatus','stack'];(function(_0x658b86,_0x412113){const _0x414133=function(_0x13bf3b){while(--_0x13bf3b){_0x658b86['push'](_0x658b86['shift']());}};_0x414133(++_0x412113);}(a25_0x4121,0x160));const a25_0x4141=function(_0x658b86,_0x412113){_0x658b86=_0x658b86-0x0;let _0x414133=a25_0x4121[_0x658b86];return _0x414133;};const _0x5cb3a6=a25_0x4141;'use strict';const _=require(_0x5cb3a6('0x1a')),qs=require(_0x5cb3a6('0x7')),logger=require('../../config/logger')('api'),db=require(_0x5cb3a6('0x2e'))['db'],{Op}=require(_0x5cb3a6('0x5'));function respondWithResult(_0x13bf3b,_0x2e5866){return _0x2e5866=_0x2e5866||0xc8,function(_0x8b3094){const _0x5113a0=a25_0x4141;if(_0x8b3094)return _0x13bf3b[_0x5113a0('0xb')](_0x2e5866)[_0x5113a0('0x4')](_0x8b3094);};}function respondWithFilteredResult(_0x1c3149,_0x26780f){return function(_0x271a2b){const _0x51e830=a25_0x4141;if(_0x271a2b){const _0x36c143=_0x271a2b['count'],_0xed2149=_0x26780f[_0x51e830('0x15')];let _0x25d5f4=_0x26780f[_0x51e830('0x15')]+_0x26780f[_0x51e830('0x23')],_0x58b036;return _0x25d5f4>=_0x36c143?(_0x25d5f4=_0x36c143,_0x58b036=0xc8):_0x58b036=0xce,_0x1c3149['status'](_0x58b036),_0x1c3149[_0x51e830('0x3')](_0x51e830('0x30'),_0xed2149+'-'+_0x25d5f4+'/'+_0x36c143)[_0x51e830('0x4')](_0x271a2b);}return null;};}function saveUpdates(_0x42033d){return function(_0x86c099){const _0x4f7f7d=a25_0x4141;if(_0x86c099)return _0x86c099[_0x4f7f7d('0x25')](_0x42033d)['then'](function(_0x3f058f){return _0x3f058f;});return null;};}function removeEntity(_0x9b9f15){return function(_0xe12414){const _0x1f0af2=a25_0x4141;if(_0xe12414)return _0xe12414[_0x1f0af2('0x2a')]()[_0x1f0af2('0x17')](function(){const _0x48ac06=_0x1f0af2;_0x9b9f15[_0x48ac06('0xb')](0xcc)[_0x48ac06('0x12')]();});};}function handleEntityNotFound(_0x2fe75a){return function(_0x504c6){const _0x1293c7=a25_0x4141;return!_0x504c6&&_0x2fe75a[_0x1293c7('0x26')](0x194),_0x504c6;};}function handleError(_0x2703ec,_0x3288c1){return _0x3288c1=_0x3288c1||0x1f4,function(_0xa11104){const _0x229f73=a25_0x4141;logger[_0x229f73('0x28')](_0xa11104[_0x229f73('0x27')]),_0xa11104['name']&&delete _0xa11104['name'],_0x2703ec['status'](_0x3288c1)[_0x229f73('0x1d')](_0xa11104);};}exports['index']=function(_0x2ec87d,_0x892fc5){const _0x5773a8=_0x5cb3a6;let _0x122aa2={};const _0x2576ae={},_0x1cdc6e={'count':0x0,'rows':[]},_0x40e1a4=_['map'](db[_0x5773a8('0xf')]['rawAttributes'],function(_0x15d433){const _0x48b539=_0x5773a8;return{'name':_0x15d433['fieldName'],'type':_0x15d433[_0x48b539('0x2d')][_0x48b539('0x16')]};});_0x2576ae[_0x5773a8('0x2f')]=_[_0x5773a8('0xe')](_0x40e1a4,_0x5773a8('0x22')),_0x2576ae[_0x5773a8('0x11')]=_[_0x5773a8('0x24')](_0x2ec87d['query']),_0x2576ae['filters']=_[_0x5773a8('0x14')](_0x2576ae['model'],_0x2576ae['query']),_0x122aa2[_0x5773a8('0x6')]=_[_0x5773a8('0x14')](_0x2576ae[_0x5773a8('0x2f')],qs[_0x5773a8('0xd')](_0x2ec87d[_0x5773a8('0x11')][_0x5773a8('0xd')])),_0x122aa2[_0x5773a8('0x6')]=_0x122aa2[_0x5773a8('0x6')][_0x5773a8('0x0')]?_0x122aa2['attributes']:_0x2576ae['model'];typeof _0x2ec87d[_0x5773a8('0x11')]['nolimit']===_0x5773a8('0x1c')&&(_0x122aa2[_0x5773a8('0x23')]=qs[_0x5773a8('0x23')](_0x2ec87d['query'][_0x5773a8('0x23')]),_0x122aa2[_0x5773a8('0x15')]=qs[_0x5773a8('0x15')](_0x2ec87d[_0x5773a8('0x11')]['offset']));_0x122aa2[_0x5773a8('0x21')]=qs['sort'](_0x2ec87d[_0x5773a8('0x11')][_0x5773a8('0xa')]),_0x122aa2['where']=qs[_0x5773a8('0x2')](_['pick'](_0x2ec87d[_0x5773a8('0x11')],_0x2576ae[_0x5773a8('0x2')]),_0x40e1a4);_0x2ec87d[_0x5773a8('0x11')][_0x5773a8('0x9')]&&(_0x122aa2[_0x5773a8('0x1e')]=_[_0x5773a8('0xc')](_0x122aa2[_0x5773a8('0x1e')],{[Op['or']]:_[_0x5773a8('0xe')](_0x40e1a4,function(_0x404a2a){const _0xa038a9=_0x5773a8;if(_0x404a2a['type']!==_0xa038a9('0x19')){const _0x1fb8ff={};return _0x1fb8ff[_0x404a2a[_0xa038a9('0x22')]]={[Op[_0xa038a9('0x1')]]:'%'+_0x2ec87d[_0xa038a9('0x11')][_0xa038a9('0x9')]+'%'},_0x1fb8ff;}})}));_0x122aa2=_[_0x5773a8('0xc')]({},_0x122aa2,_0x2ec87d[_0x5773a8('0x29')]);const _0x27a20e={'where':_0x122aa2[_0x5773a8('0x1e')]};return db[_0x5773a8('0xf')]['count'](_0x27a20e)['then'](function(_0x503d72){const _0x2f5f7b=_0x5773a8;return _0x1cdc6e[_0x2f5f7b('0x18')]=_0x503d72,_0x2ec87d[_0x2f5f7b('0x11')][_0x2f5f7b('0x20')]&&(_0x122aa2[_0x2f5f7b('0x2b')]=[{'all':!![]}]),db[_0x2f5f7b('0xf')]['findAll'](_0x122aa2);})['then'](function(_0x479f1f){return _0x1cdc6e['rows']=_0x479f1f,_0x1cdc6e;})[_0x5773a8('0x17')](respondWithFilteredResult(_0x892fc5,_0x122aa2))['catch'](handleError(_0x892fc5,null));},exports['show']=function(_0x5d479a,_0x3bd315){const _0x5c87f6=_0x5cb3a6;let _0x3a6229={'raw':!![],'where':{'id':_0x5d479a[_0x5c87f6('0x2c')]['id']}};const _0x455724={};return _0x455724[_0x5c87f6('0x2f')]=_[_0x5c87f6('0x24')](db['AnalyticTreeReport'][_0x5c87f6('0x8')]),_0x455724[_0x5c87f6('0x11')]=_[_0x5c87f6('0x24')](_0x5d479a[_0x5c87f6('0x11')]),_0x455724[_0x5c87f6('0x2')]=_[_0x5c87f6('0x14')](_0x455724[_0x5c87f6('0x2f')],_0x455724[_0x5c87f6('0x11')]),_0x3a6229['attributes']=_[_0x5c87f6('0x14')](_0x455724['model'],qs['fields'](_0x5d479a[_0x5c87f6('0x11')][_0x5c87f6('0xd')])),_0x3a6229[_0x5c87f6('0x6')]=_0x3a6229[_0x5c87f6('0x6')][_0x5c87f6('0x0')]?_0x3a6229[_0x5c87f6('0x6')]:_0x455724[_0x5c87f6('0x2f')],_0x5d479a['query'][_0x5c87f6('0x20')]&&(_0x3a6229[_0x5c87f6('0x2b')]=[{'all':!![]}]),_0x3a6229=_['merge']({},_0x3a6229,_0x5d479a[_0x5c87f6('0x29')]),db['AnalyticTreeReport'][_0x5c87f6('0x10')](_0x3a6229)[_0x5c87f6('0x17')](handleEntityNotFound(_0x3bd315,null))[_0x5c87f6('0x17')](respondWithResult(_0x3bd315,null))[_0x5c87f6('0x13')](handleError(_0x3bd315,null));},exports[_0x5cb3a6('0x1f')]=function(_0x5c0fba,_0x68e7b5){const _0x3efe88=_0x5cb3a6;return db[_0x3efe88('0xf')][_0x3efe88('0x1f')](_0x5c0fba['body'],{})[_0x3efe88('0x17')](respondWithResult(_0x68e7b5,0xc9))['catch'](handleError(_0x68e7b5,null));},exports['update']=function(_0x1b518f,_0x10c7e0){const _0xa8d407=_0x5cb3a6;return _0x1b518f[_0xa8d407('0x1b')]['id']&&delete _0x1b518f[_0xa8d407('0x1b')]['id'],db['AnalyticTreeReport'][_0xa8d407('0x10')]({'where':{'id':_0x1b518f[_0xa8d407('0x2c')]['id']}})[_0xa8d407('0x17')](handleEntityNotFound(_0x10c7e0,null))[_0xa8d407('0x17')](saveUpdates(_0x1b518f[_0xa8d407('0x1b')],null))[_0xa8d407('0x17')](respondWithResult(_0x10c7e0,null))[_0xa8d407('0x13')](handleError(_0x10c7e0,null));},exports[_0x5cb3a6('0x2a')]=function(_0x5e3053,_0x2a061b){const _0x46950d=_0x5cb3a6;return db[_0x46950d('0xf')][_0x46950d('0x10')]({'where':{'id':_0x5e3053[_0x46950d('0x2c')]['id']}})[_0x46950d('0x17')](handleEntityNotFound(_0x2a061b,null))[_0x46950d('0x17')](removeEntity(_0x2a061b,null))['catch'](handleError(_0x2a061b,null));}; \ No newline at end of file diff --git a/server/api/analyticTreeReport/analyticTreeReport.model.js b/server/api/analyticTreeReport/analyticTreeReport.model.js index f2bc94e..c75793a 100644 --- a/server/api/analyticTreeReport/analyticTreeReport.model.js +++ b/server/api/analyticTreeReport/analyticTreeReport.model.js @@ -1 +1 @@ -const a26_0x5f2b=['define','AnalyticTreeReport','analytics_report_trees','./analyticTreeReport.attributes'];(function(_0x347565,_0x5f2b98){const _0x27b208=function(_0x3a1d17){while(--_0x3a1d17){_0x347565['push'](_0x347565['shift']());}};_0x27b208(++_0x5f2b98);}(a26_0x5f2b,0x173));const a26_0x27b2=function(_0x347565,_0x5f2b98){_0x347565=_0x347565-0x0;let _0x27b208=a26_0x5f2b[_0x347565];return _0x27b208;};const _0x4bec17=a26_0x27b2;'use strict';const attributes=require(_0x4bec17('0x0'));module['exports']=function(_0x3a1d17){const _0x1d6f3e=_0x4bec17,_0x4edfdd=_0x3a1d17[_0x1d6f3e('0x1')](_0x1d6f3e('0x2'),attributes,{'tableName':_0x1d6f3e('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4edfdd;}; \ No newline at end of file +const a26_0x5b86=['define','./analyticTreeReport.attributes'];(function(_0x9c783d,_0x5b8673){const _0x2764f8=function(_0x4aebfd){while(--_0x4aebfd){_0x9c783d['push'](_0x9c783d['shift']());}};_0x2764f8(++_0x5b8673);}(a26_0x5b86,0x14d));const a26_0x2764=function(_0x9c783d,_0x5b8673){_0x9c783d=_0x9c783d-0x0;let _0x2764f8=a26_0x5b86[_0x9c783d];return _0x2764f8;};const _0x4d7922=a26_0x2764;'use strict';const attributes=require(_0x4d7922('0x0'));module['exports']=function(_0x4aebfd){const _0x32517a=_0x4d7922,_0x4bb7e4=_0x4aebfd[_0x32517a('0x1')]('AnalyticTreeReport',attributes,{'tableName':'analytics_report_trees','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4bb7e4;}; \ No newline at end of file diff --git a/server/api/analyticTreeReport/index.js b/server/api/analyticTreeReport/index.js index 9cd42cd..e8c3aee 100644 --- a/server/api/analyticTreeReport/index.js +++ b/server/api/analyticTreeReport/index.js @@ -1 +1 @@ -const a27_0x209b=['index','/:id','post','destroy','./analyticTreeReport.controller','get','create','delete','put','Router','update','isAuthenticated'];(function(_0x121e97,_0x209b1c){const _0x55e602=function(_0x47b939){while(--_0x47b939){_0x121e97['push'](_0x121e97['shift']());}};_0x55e602(++_0x209b1c);}(a27_0x209b,0x1e1));const a27_0x55e6=function(_0x121e97,_0x209b1c){_0x121e97=_0x121e97-0x0;let _0x55e602=a27_0x209b[_0x121e97];return _0x55e602;};const _0x38b61b=a27_0x55e6;'use strict';const express=require('express'),router=express[_0x38b61b('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x38b61b('0x3'));router['get']('/',auth[_0x38b61b('0xa')](),controller[_0x38b61b('0xb')]),router[_0x38b61b('0x4')](_0x38b61b('0x0'),auth[_0x38b61b('0xa')](),controller['show']),router[_0x38b61b('0x1')]('/',auth[_0x38b61b('0xa')](),controller[_0x38b61b('0x5')]),router[_0x38b61b('0x7')](_0x38b61b('0x0'),auth[_0x38b61b('0xa')](),controller[_0x38b61b('0x9')]),router[_0x38b61b('0x6')](_0x38b61b('0x0'),auth[_0x38b61b('0xa')](),controller[_0x38b61b('0x2')]),module['exports']=router; \ No newline at end of file +const a27_0x46f2=['Router','exports','get','./analyticTreeReport.controller','express','index','/:id','destroy','post','isAuthenticated','delete','show','update','../../components/auth/service'];(function(_0x323074,_0x46f2c2){const _0x35fcc9=function(_0x21ebae){while(--_0x21ebae){_0x323074['push'](_0x323074['shift']());}};_0x35fcc9(++_0x46f2c2);}(a27_0x46f2,0x1bc));const a27_0x35fc=function(_0x323074,_0x46f2c2){_0x323074=_0x323074-0x0;let _0x35fcc9=a27_0x46f2[_0x323074];return _0x35fcc9;};const _0x5be42e=a27_0x35fc;'use strict';const express=require(_0x5be42e('0x8')),router=express[_0x5be42e('0x4')](),auth=require(_0x5be42e('0x3')),controller=require(_0x5be42e('0x7'));router[_0x5be42e('0x6')]('/',auth['isAuthenticated'](),controller[_0x5be42e('0x9')]),router['get'](_0x5be42e('0xa'),auth[_0x5be42e('0xd')](),controller[_0x5be42e('0x1')]),router[_0x5be42e('0xc')]('/',auth['isAuthenticated'](),controller['create']),router['put'](_0x5be42e('0xa'),auth[_0x5be42e('0xd')](),controller[_0x5be42e('0x2')]),router[_0x5be42e('0x0')]('/:id',auth[_0x5be42e('0xd')](),controller[_0x5be42e('0xb')]),module[_0x5be42e('0x5')]=router; \ No newline at end of file diff --git a/server/api/attachment/attachment.attributes.js b/server/api/attachment/attachment.attributes.js index 42cfd18..e484f15 100644 --- a/server/api/attachment/attachment.attributes.js +++ b/server/api/attachment/attachment.attributes.js @@ -1 +1 @@ -const a28_0x232f=['STRING'];(function(_0x3bcd46,_0x232f20){const _0x4208ea=function(_0x4d268e){while(--_0x4d268e){_0x3bcd46['push'](_0x3bcd46['shift']());}};_0x4208ea(++_0x232f20);}(a28_0x232f,0x144));const a28_0x4208=function(_0x3bcd46,_0x232f20){_0x3bcd46=_0x3bcd46-0x0;let _0x4208ea=a28_0x232f[_0x3bcd46];return _0x4208ea;};const _0x3057f8=a28_0x4208;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x3057f8('0x0')]},'basename':{'type':Sequelize[_0x3057f8('0x0')]},'type':{'type':Sequelize[_0x3057f8('0x0')]}}; \ No newline at end of file +const a28_0x15c2=['sequelize','exports','STRING'];(function(_0x136310,_0x15c2a7){const _0x45b228=function(_0x251075){while(--_0x251075){_0x136310['push'](_0x136310['shift']());}};_0x45b228(++_0x15c2a7);}(a28_0x15c2,0xce));const a28_0x45b2=function(_0x136310,_0x15c2a7){_0x136310=_0x136310-0x0;let _0x45b228=a28_0x15c2[_0x136310];return _0x45b228;};const _0x10d2bb=a28_0x45b2;'use strict';const Sequelize=require(_0x10d2bb('0x1'));module[_0x10d2bb('0x2')]={'name':{'type':Sequelize[_0x10d2bb('0x0')]},'basename':{'type':Sequelize[_0x10d2bb('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 983cbf9..8114df3 100644 --- a/server/api/attachment/attachment.controller.js +++ b/server/api/attachment/attachment.controller.js @@ -1 +1 @@ -const a29_0x401d=['clone','join','intersection','length','Attachment','omit','options','offset','sendStatus','body','files/attachments/','nolimit','findOne','model','filters','end','filter','limit','originalname','rows','updatedAt','sort','destroy','merge','../../config/environment','where','update','api','status','params','get','includeAll','error','show','type','map','query','../../components/parsers/qs','catch','lodash','basename','create','findAll','file','pick','Content-Range','rawAttributes','index','key','name','count','like','json','order','include','fields','then','fieldName','keys','attributes','VIRTUAL','createdAt'];(function(_0xa79b28,_0x401dc6){const _0x5088f9=function(_0x221b81){while(--_0x221b81){_0xa79b28['push'](_0xa79b28['shift']());}};_0x5088f9(++_0x401dc6);}(a29_0x401d,0x1d2));const a29_0x5088=function(_0xa79b28,_0x401dc6){_0xa79b28=_0xa79b28-0x0;let _0x5088f9=a29_0x401d[_0xa79b28];return _0x5088f9;};const _0x1717d6=a29_0x5088;'use strict';const path=require('path'),_=require(_0x1717d6('0x7')),qs=require(_0x1717d6('0x5')),logger=require('../../config/logger')(_0x1717d6('0x39')),config=require(_0x1717d6('0x36')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x221b81,_0x32e37d){return _0x32e37d=_0x32e37d||0xc8,function(_0x2b5b6a){const _0x1a24ac=a29_0x5088;if(_0x2b5b6a)return _0x221b81[_0x1a24ac('0x3a')](_0x32e37d)[_0x1a24ac('0x14')](_0x2b5b6a);};}function respondWithFilteredResult(_0x3e88d1,_0x4ec98d){return function(_0x54c2d4){const _0x44ab7d=a29_0x5088;if(_0x54c2d4){const _0x4db5aa=_0x54c2d4['count'],_0x1de4cb=_0x4ec98d[_0x44ab7d('0x25')];let _0x57d5d9=_0x4ec98d[_0x44ab7d('0x25')]+_0x4ec98d['limit'],_0x27353f;return _0x57d5d9>=_0x4db5aa?(_0x57d5d9=_0x4db5aa,_0x27353f=0xc8):_0x27353f=0xce,_0x3e88d1[_0x44ab7d('0x3a')](_0x27353f),_0x3e88d1['set'](_0x44ab7d('0xd'),_0x1de4cb+'-'+_0x57d5d9+'/'+_0x4db5aa)[_0x44ab7d('0x14')](_0x54c2d4);}return null;};}function saveUpdates(_0x144baf){return function(_0x4487ac){const _0x560e2d=a29_0x5088;if(_0x4487ac)return _0x4487ac[_0x560e2d('0x38')](_0x144baf)[_0x560e2d('0x18')](function(_0x775773){return _0x775773;});return null;};}function removeEntity(_0x1ed0bf){return function(_0x5e8faf){const _0x10620b=a29_0x5088;if(_0x5e8faf)return _0x5e8faf[_0x10620b('0x34')]()[_0x10620b('0x18')](function(){const _0x47e7e3=_0x10620b;_0x1ed0bf[_0x47e7e3('0x3a')](0xcc)[_0x47e7e3('0x2d')]();});};}function handleEntityNotFound(_0xc64400){return function(_0x441931){const _0x44863c=a29_0x5088;return!_0x441931&&_0xc64400[_0x44863c('0x26')](0x194),_0x441931;};}function handleError(_0x50fafa,_0x159d97){return _0x159d97=_0x159d97||0x1f4,function(_0x460900){const _0x53bb51=a29_0x5088;logger[_0x53bb51('0x0')](_0x460900['stack']),_0x460900[_0x53bb51('0x11')]&&delete _0x460900[_0x53bb51('0x11')],_0x50fafa[_0x53bb51('0x3a')](_0x159d97)['send'](_0x460900);};}exports[_0x1717d6('0xf')]=function(_0x3e0c16,_0x4f5a04){const _0x34d2df=_0x1717d6;let _0x1a8100={};const _0x26cc7c={},_0x2283a0={'count':0x0,'rows':[]},_0x5a09bc=_[_0x34d2df('0x3')](db['Attachment'][_0x34d2df('0xe')],function(_0x2d0175){const _0x57587d=_0x34d2df;return{'name':_0x2d0175[_0x57587d('0x19')],'type':_0x2d0175[_0x57587d('0x2')][_0x57587d('0x10')]};});_0x26cc7c[_0x34d2df('0x2b')]=_[_0x34d2df('0x3')](_0x5a09bc,'name'),_0x26cc7c[_0x34d2df('0x4')]=_[_0x34d2df('0x1a')](_0x3e0c16['query']),_0x26cc7c[_0x34d2df('0x2c')]=_['intersection'](_0x26cc7c[_0x34d2df('0x2b')],_0x26cc7c[_0x34d2df('0x4')]),_0x1a8100[_0x34d2df('0x1b')]=_['intersection'](_0x26cc7c['model'],qs[_0x34d2df('0x17')](_0x3e0c16[_0x34d2df('0x4')][_0x34d2df('0x17')])),_0x1a8100[_0x34d2df('0x1b')]=_0x1a8100[_0x34d2df('0x1b')][_0x34d2df('0x21')]?_0x1a8100[_0x34d2df('0x1b')]:_0x26cc7c['model'];typeof _0x3e0c16[_0x34d2df('0x4')][_0x34d2df('0x29')]==='undefined'&&(_0x1a8100[_0x34d2df('0x2f')]=qs[_0x34d2df('0x2f')](_0x3e0c16[_0x34d2df('0x4')][_0x34d2df('0x2f')]),_0x1a8100[_0x34d2df('0x25')]=qs[_0x34d2df('0x25')](_0x3e0c16[_0x34d2df('0x4')][_0x34d2df('0x25')]));_0x1a8100[_0x34d2df('0x15')]=qs[_0x34d2df('0x33')](_0x3e0c16['query'][_0x34d2df('0x33')]),_0x1a8100[_0x34d2df('0x37')]=qs['filters'](_[_0x34d2df('0xc')](_0x3e0c16[_0x34d2df('0x4')],_0x26cc7c[_0x34d2df('0x2c')]),_0x5a09bc);_0x3e0c16[_0x34d2df('0x4')]['filter']&&(_0x1a8100[_0x34d2df('0x37')]=_[_0x34d2df('0x35')](_0x1a8100[_0x34d2df('0x37')],{[Op['or']]:_['map'](_0x5a09bc,function(_0x22ea06){const _0x31d515=_0x34d2df;if(_0x22ea06[_0x31d515('0x2')]!==_0x31d515('0x1c')){const _0x128043={};return _0x128043[_0x22ea06[_0x31d515('0x11')]]={[Op[_0x31d515('0x13')]]:'%'+_0x3e0c16[_0x31d515('0x4')][_0x31d515('0x2e')]+'%'},_0x128043;}})}));_0x1a8100=_[_0x34d2df('0x35')]({},_0x1a8100,_0x3e0c16[_0x34d2df('0x24')]);const _0x4ce509={'where':_0x1a8100[_0x34d2df('0x37')]};return db[_0x34d2df('0x22')][_0x34d2df('0x12')](_0x4ce509)['then'](function(_0x532838){const _0x56b588=_0x34d2df;return _0x2283a0[_0x56b588('0x12')]=_0x532838,_0x3e0c16[_0x56b588('0x4')]['includeAll']&&(_0x1a8100[_0x56b588('0x16')]=[{'all':!![]}]),db['Attachment'][_0x56b588('0xa')](_0x1a8100);})['then'](function(_0x4f78f5){const _0x1d3159=_0x34d2df;return _0x2283a0[_0x1d3159('0x31')]=_0x4f78f5,_0x2283a0;})[_0x34d2df('0x18')](respondWithFilteredResult(_0x4f5a04,_0x1a8100))[_0x34d2df('0x6')](handleError(_0x4f5a04,null));},exports[_0x1717d6('0x1')]=function(_0x102eb9,_0x36c018){const _0x3c5f86=_0x1717d6;let _0x2d48ab={'raw':!![],'where':{'id':_0x102eb9[_0x3c5f86('0x3b')]['id']}};const _0xa2e090={};return _0xa2e090['model']=_[_0x3c5f86('0x1a')](db[_0x3c5f86('0x22')][_0x3c5f86('0xe')]),_0xa2e090[_0x3c5f86('0x4')]=_[_0x3c5f86('0x1a')](_0x102eb9[_0x3c5f86('0x4')]),_0xa2e090[_0x3c5f86('0x2c')]=_[_0x3c5f86('0x20')](_0xa2e090[_0x3c5f86('0x2b')],_0xa2e090[_0x3c5f86('0x4')]),_0x2d48ab[_0x3c5f86('0x1b')]=_[_0x3c5f86('0x20')](_0xa2e090[_0x3c5f86('0x2b')],qs[_0x3c5f86('0x17')](_0x102eb9['query'][_0x3c5f86('0x17')])),_0x2d48ab[_0x3c5f86('0x1b')]=_0x2d48ab[_0x3c5f86('0x1b')][_0x3c5f86('0x21')]?_0x2d48ab['attributes']:_0xa2e090['model'],_0x102eb9[_0x3c5f86('0x4')]['includeAll']&&(_0x2d48ab['include']=[{'all':!![]}]),_0x2d48ab=_['merge']({},_0x2d48ab,_0x102eb9[_0x3c5f86('0x24')]),db['Attachment'][_0x3c5f86('0x2a')](_0x2d48ab)[_0x3c5f86('0x18')](handleEntityNotFound(_0x36c018,null))[_0x3c5f86('0x18')](respondWithResult(_0x36c018,null))[_0x3c5f86('0x6')](handleError(_0x36c018,null));},exports[_0x1717d6('0x1e')]=function(_0x3d95d6,_0x39aa33){const _0x2d886a=_0x1717d6;let _0x289c15={'where':{'id':_0x3d95d6[_0x2d886a('0x3b')]['id']}};const _0x5c3801={};return _0x5c3801[_0x2d886a('0x2b')]=_[_0x2d886a('0x1a')](db[_0x2d886a('0x22')][_0x2d886a('0xe')]),_0x289c15['attributes']=_[_0x2d886a('0x20')](_0x5c3801[_0x2d886a('0x2b')],qs[_0x2d886a('0x17')](_0x3d95d6[_0x2d886a('0x4')]['fields'])),_0x289c15[_0x2d886a('0x1b')]=_0x289c15[_0x2d886a('0x1b')][_0x2d886a('0x21')]?_0x289c15[_0x2d886a('0x1b')]:_0x5c3801[_0x2d886a('0x2b')],_0x3d95d6[_0x2d886a('0x4')]['includeAll']&&(_0x289c15[_0x2d886a('0x16')]=[{'all':!![]}]),_0x289c15=_[_0x2d886a('0x35')]({},_0x289c15,_0x3d95d6['options']),db['Attachment'][_0x2d886a('0x2a')](_0x289c15)[_0x2d886a('0x18')](handleEntityNotFound(_0x39aa33,null))[_0x2d886a('0x18')](function(_0x22a348){const _0x315823=_0x2d886a;if(_0x22a348){let _0x12fb79=_0x22a348[_0x315823('0x3c')]({'plain':!![]});return _0x12fb79=qs[_0x315823('0x23')](_0x12fb79,['id','createdAt','updatedAt']),_0x3d95d6['body']=_[_0x315823('0x23')](_0x3d95d6['body'],['id',_0x315823('0x1d'),_0x315823('0x32')]),db[_0x315823('0x22')][_0x315823('0x9')](_[_0x315823('0x35')](_0x12fb79,_0x3d95d6[_0x315823('0x27')]),{'include':_0x3d95d6['query'][_0x315823('0x3d')]?[{'all':!![]}]:undefined});}})['then'](respondWithResult(_0x39aa33,0xc9))[_0x2d886a('0x6')](handleError(_0x39aa33,null));},exports[_0x1717d6('0x38')]=function(_0x503fc7,_0x782d78){const _0x4c2530=_0x1717d6;return _0x503fc7[_0x4c2530('0x27')]['id']&&delete _0x503fc7[_0x4c2530('0x27')]['id'],db[_0x4c2530('0x22')][_0x4c2530('0x2a')]({'where':{'id':_0x503fc7[_0x4c2530('0x3b')]['id']}})[_0x4c2530('0x18')](handleEntityNotFound(_0x782d78,null))[_0x4c2530('0x18')](saveUpdates(_0x503fc7[_0x4c2530('0x27')],null))[_0x4c2530('0x18')](respondWithResult(_0x782d78,null))[_0x4c2530('0x6')](handleError(_0x782d78,null));},exports[_0x1717d6('0x34')]=function(_0x1101ac,_0x1edfdf){const _0xf8b95d=_0x1717d6;return db[_0xf8b95d('0x22')][_0xf8b95d('0x2a')]({'where':{'id':_0x1101ac['params']['id']}})[_0xf8b95d('0x18')](handleEntityNotFound(_0x1edfdf,null))[_0xf8b95d('0x18')](removeEntity(_0x1edfdf,null))['catch'](handleError(_0x1edfdf,null));},exports['create']=function(_0x4e583c,_0x179a17){const _0x31a2de=_0x1717d6;return _0x4e583c[_0x31a2de('0x27')][_0x31a2de('0x11')]=_0x4e583c[_0x31a2de('0xb')][_0x31a2de('0x30')],_0x4e583c[_0x31a2de('0x27')][_0x31a2de('0x8')]=_0x4e583c[_0x31a2de('0xb')]['filename'],_0x4e583c[_0x31a2de('0x27')][_0x31a2de('0x2')]=_0x4e583c[_0x31a2de('0xb')]['mimetype'],db[_0x31a2de('0x22')][_0x31a2de('0x9')](_0x4e583c[_0x31a2de('0x27')])[_0x31a2de('0x18')](respondWithResult(_0x179a17,0xc9))[_0x31a2de('0x6')](handleError(_0x179a17,null));},exports['download']=function(_0x51722b,_0x399fc2){const _0x1d1c3a=_0x1717d6;return db[_0x1d1c3a('0x22')][_0x1d1c3a('0x2a')]({'where':{'id':_0x51722b[_0x1d1c3a('0x3b')]['id']},'raw':!![]})[_0x1d1c3a('0x18')](handleEntityNotFound(_0x399fc2,null))[_0x1d1c3a('0x18')](function(_0x6f038e){const _0x2fdfde=_0x1d1c3a;if(_0x6f038e)return _0x399fc2['download'](path[_0x2fdfde('0x1f')](config['root'],_0x2fdfde('0x28'),_0x6f038e[_0x2fdfde('0x8')]));})[_0x1d1c3a('0x6')](handleError(_0x399fc2,null));}; \ No newline at end of file +const a29_0xee51=['index','end','map','model','originalname','mimetype','filters','Content-Range','file','offset','status','root','name','clone','update','catch','omit','pick','limit','sequelize','attributes','keys','key','query','params','body','fields','like','set','count','where','get','VIRTUAL','rows','lodash','Attachment','fieldName','create','stack','createdAt','destroy','updatedAt','intersection','send','length','rawAttributes','download','order','../../config/logger','sort','join','show','includeAll','path','include','options','json','merge','then','error','type','filter','filename','nolimit','findOne'];(function(_0x216ae,_0xee5174){const _0x45f6ee=function(_0x513e1e){while(--_0x513e1e){_0x216ae['push'](_0x216ae['shift']());}};_0x45f6ee(++_0xee5174);}(a29_0xee51,0x1e0));const a29_0x45f6=function(_0x216ae,_0xee5174){_0x216ae=_0x216ae-0x0;let _0x45f6ee=a29_0xee51[_0x216ae];return _0x45f6ee;};const _0x724b52=a29_0x45f6;'use strict';const path=require(_0x724b52('0x1c')),_=require(_0x724b52('0x9')),qs=require('../../components/parsers/qs'),logger=require(_0x724b52('0x17'))('api'),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require(_0x724b52('0x3b'));function respondWithResult(_0x513e1e,_0x4cfe4f){return _0x4cfe4f=_0x4cfe4f||0xc8,function(_0x26fe4e){const _0x4879d6=a29_0x45f6;if(_0x26fe4e)return _0x513e1e[_0x4879d6('0x32')](_0x4cfe4f)[_0x4879d6('0x1f')](_0x26fe4e);};}function respondWithFilteredResult(_0x4042fd,_0x35d978){return function(_0x5923eb){const _0x4e030f=a29_0x45f6;if(_0x5923eb){const _0x490688=_0x5923eb[_0x4e030f('0x4')],_0x22df7f=_0x35d978[_0x4e030f('0x31')];let _0x33ed60=_0x35d978['offset']+_0x35d978[_0x4e030f('0x3a')],_0x413e9d;return _0x33ed60>=_0x490688?(_0x33ed60=_0x490688,_0x413e9d=0xc8):_0x413e9d=0xce,_0x4042fd[_0x4e030f('0x32')](_0x413e9d),_0x4042fd[_0x4e030f('0x3')](_0x4e030f('0x2f'),_0x22df7f+'-'+_0x33ed60+'/'+_0x490688)[_0x4e030f('0x1f')](_0x5923eb);}return null;};}function saveUpdates(_0x4addca){return function(_0x119ef2){const _0x490bfc=a29_0x45f6;if(_0x119ef2)return _0x119ef2[_0x490bfc('0x36')](_0x4addca)[_0x490bfc('0x21')](function(_0x5d2863){return _0x5d2863;});return null;};}function removeEntity(_0x5eeee9){return function(_0xefb9a4){const _0x9322f3=a29_0x45f6;if(_0xefb9a4)return _0xefb9a4[_0x9322f3('0xf')]()[_0x9322f3('0x21')](function(){const _0x57a606=_0x9322f3;_0x5eeee9[_0x57a606('0x32')](0xcc)[_0x57a606('0x29')]();});};}function handleEntityNotFound(_0x4ea16f){return function(_0x3f16a5){return!_0x3f16a5&&_0x4ea16f['sendStatus'](0x194),_0x3f16a5;};}function handleError(_0x1e499c,_0x2236e2){return _0x2236e2=_0x2236e2||0x1f4,function(_0x3cbd11){const _0x10357e=a29_0x45f6;logger[_0x10357e('0x22')](_0x3cbd11[_0x10357e('0xd')]),_0x3cbd11['name']&&delete _0x3cbd11[_0x10357e('0x34')],_0x1e499c[_0x10357e('0x32')](_0x2236e2)[_0x10357e('0x12')](_0x3cbd11);};}exports[_0x724b52('0x28')]=function(_0x11cb08,_0x171b40){const _0x353d73=_0x724b52;let _0x333f9f={};const _0x598749={},_0x3bfd8f={'count':0x0,'rows':[]},_0x135bd7=_['map'](db['Attachment'][_0x353d73('0x14')],function(_0x1de42a){const _0x12dbde=_0x353d73;return{'name':_0x1de42a[_0x12dbde('0xb')],'type':_0x1de42a['type'][_0x12dbde('0x3e')]};});_0x598749[_0x353d73('0x2b')]=_[_0x353d73('0x2a')](_0x135bd7,_0x353d73('0x34')),_0x598749['query']=_[_0x353d73('0x3d')](_0x11cb08[_0x353d73('0x3f')]),_0x598749[_0x353d73('0x2e')]=_[_0x353d73('0x11')](_0x598749[_0x353d73('0x2b')],_0x598749[_0x353d73('0x3f')]),_0x333f9f[_0x353d73('0x3c')]=_[_0x353d73('0x11')](_0x598749[_0x353d73('0x2b')],qs['fields'](_0x11cb08[_0x353d73('0x3f')][_0x353d73('0x1')])),_0x333f9f[_0x353d73('0x3c')]=_0x333f9f['attributes'][_0x353d73('0x13')]?_0x333f9f['attributes']:_0x598749[_0x353d73('0x2b')];typeof _0x11cb08[_0x353d73('0x3f')][_0x353d73('0x26')]==='undefined'&&(_0x333f9f[_0x353d73('0x3a')]=qs['limit'](_0x11cb08['query'][_0x353d73('0x3a')]),_0x333f9f[_0x353d73('0x31')]=qs['offset'](_0x11cb08['query'][_0x353d73('0x31')]));_0x333f9f[_0x353d73('0x16')]=qs[_0x353d73('0x18')](_0x11cb08[_0x353d73('0x3f')][_0x353d73('0x18')]),_0x333f9f[_0x353d73('0x5')]=qs[_0x353d73('0x2e')](_[_0x353d73('0x39')](_0x11cb08['query'],_0x598749[_0x353d73('0x2e')]),_0x135bd7);_0x11cb08[_0x353d73('0x3f')][_0x353d73('0x24')]&&(_0x333f9f[_0x353d73('0x5')]=_[_0x353d73('0x20')](_0x333f9f[_0x353d73('0x5')],{[Op['or']]:_[_0x353d73('0x2a')](_0x135bd7,function(_0x312fbb){const _0x32a306=_0x353d73;if(_0x312fbb['type']!==_0x32a306('0x7')){const _0x2f12dd={};return _0x2f12dd[_0x312fbb[_0x32a306('0x34')]]={[Op[_0x32a306('0x2')]]:'%'+_0x11cb08['query']['filter']+'%'},_0x2f12dd;}})}));_0x333f9f=_['merge']({},_0x333f9f,_0x11cb08['options']);const _0x17f6e1={'where':_0x333f9f[_0x353d73('0x5')]};return db['Attachment']['count'](_0x17f6e1)[_0x353d73('0x21')](function(_0x2d0045){const _0x650f62=_0x353d73;return _0x3bfd8f[_0x650f62('0x4')]=_0x2d0045,_0x11cb08[_0x650f62('0x3f')][_0x650f62('0x1b')]&&(_0x333f9f['include']=[{'all':!![]}]),db[_0x650f62('0xa')]['findAll'](_0x333f9f);})[_0x353d73('0x21')](function(_0x46e023){const _0x992bee=_0x353d73;return _0x3bfd8f[_0x992bee('0x8')]=_0x46e023,_0x3bfd8f;})[_0x353d73('0x21')](respondWithFilteredResult(_0x171b40,_0x333f9f))['catch'](handleError(_0x171b40,null));},exports[_0x724b52('0x1a')]=function(_0x466abf,_0x5c1b3a){const _0x4beb7c=_0x724b52;let _0x470bb9={'raw':!![],'where':{'id':_0x466abf['params']['id']}};const _0x538f56={};return _0x538f56['model']=_[_0x4beb7c('0x3d')](db['Attachment']['rawAttributes']),_0x538f56[_0x4beb7c('0x3f')]=_[_0x4beb7c('0x3d')](_0x466abf[_0x4beb7c('0x3f')]),_0x538f56[_0x4beb7c('0x2e')]=_[_0x4beb7c('0x11')](_0x538f56[_0x4beb7c('0x2b')],_0x538f56['query']),_0x470bb9[_0x4beb7c('0x3c')]=_['intersection'](_0x538f56[_0x4beb7c('0x2b')],qs[_0x4beb7c('0x1')](_0x466abf[_0x4beb7c('0x3f')][_0x4beb7c('0x1')])),_0x470bb9[_0x4beb7c('0x3c')]=_0x470bb9[_0x4beb7c('0x3c')][_0x4beb7c('0x13')]?_0x470bb9[_0x4beb7c('0x3c')]:_0x538f56[_0x4beb7c('0x2b')],_0x466abf[_0x4beb7c('0x3f')][_0x4beb7c('0x1b')]&&(_0x470bb9[_0x4beb7c('0x1d')]=[{'all':!![]}]),_0x470bb9=_[_0x4beb7c('0x20')]({},_0x470bb9,_0x466abf[_0x4beb7c('0x1e')]),db[_0x4beb7c('0xa')][_0x4beb7c('0x27')](_0x470bb9)[_0x4beb7c('0x21')](handleEntityNotFound(_0x5c1b3a,null))['then'](respondWithResult(_0x5c1b3a,null))['catch'](handleError(_0x5c1b3a,null));},exports[_0x724b52('0x35')]=function(_0x3c02b4,_0x2cffbb){const _0x515d01=_0x724b52;let _0x2eb4d0={'where':{'id':_0x3c02b4[_0x515d01('0x40')]['id']}};const _0xe7962c={};return _0xe7962c[_0x515d01('0x2b')]=_[_0x515d01('0x3d')](db[_0x515d01('0xa')][_0x515d01('0x14')]),_0x2eb4d0[_0x515d01('0x3c')]=_[_0x515d01('0x11')](_0xe7962c[_0x515d01('0x2b')],qs[_0x515d01('0x1')](_0x3c02b4[_0x515d01('0x3f')][_0x515d01('0x1')])),_0x2eb4d0['attributes']=_0x2eb4d0[_0x515d01('0x3c')]['length']?_0x2eb4d0[_0x515d01('0x3c')]:_0xe7962c['model'],_0x3c02b4[_0x515d01('0x3f')][_0x515d01('0x1b')]&&(_0x2eb4d0[_0x515d01('0x1d')]=[{'all':!![]}]),_0x2eb4d0=_[_0x515d01('0x20')]({},_0x2eb4d0,_0x3c02b4[_0x515d01('0x1e')]),db[_0x515d01('0xa')][_0x515d01('0x27')](_0x2eb4d0)[_0x515d01('0x21')](handleEntityNotFound(_0x2cffbb,null))['then'](function(_0x4d02db){const _0x183c04=_0x515d01;if(_0x4d02db){let _0x4c61a0=_0x4d02db[_0x183c04('0x6')]({'plain':!![]});return _0x4c61a0=qs['omit'](_0x4c61a0,['id',_0x183c04('0xe'),_0x183c04('0x10')]),_0x3c02b4['body']=_[_0x183c04('0x38')](_0x3c02b4['body'],['id',_0x183c04('0xe'),_0x183c04('0x10')]),db['Attachment'][_0x183c04('0xc')](_[_0x183c04('0x20')](_0x4c61a0,_0x3c02b4['body']),{'include':_0x3c02b4[_0x183c04('0x3f')][_0x183c04('0x1b')]?[{'all':!![]}]:undefined});}})[_0x515d01('0x21')](respondWithResult(_0x2cffbb,0xc9))[_0x515d01('0x37')](handleError(_0x2cffbb,null));},exports[_0x724b52('0x36')]=function(_0x4f99ed,_0x64a2a6){const _0x1afd05=_0x724b52;return _0x4f99ed[_0x1afd05('0x0')]['id']&&delete _0x4f99ed[_0x1afd05('0x0')]['id'],db['Attachment'][_0x1afd05('0x27')]({'where':{'id':_0x4f99ed[_0x1afd05('0x40')]['id']}})[_0x1afd05('0x21')](handleEntityNotFound(_0x64a2a6,null))[_0x1afd05('0x21')](saveUpdates(_0x4f99ed[_0x1afd05('0x0')],null))[_0x1afd05('0x21')](respondWithResult(_0x64a2a6,null))[_0x1afd05('0x37')](handleError(_0x64a2a6,null));},exports[_0x724b52('0xf')]=function(_0x2299f5,_0x56933b){const _0x1f4918=_0x724b52;return db[_0x1f4918('0xa')][_0x1f4918('0x27')]({'where':{'id':_0x2299f5['params']['id']}})[_0x1f4918('0x21')](handleEntityNotFound(_0x56933b,null))[_0x1f4918('0x21')](removeEntity(_0x56933b,null))[_0x1f4918('0x37')](handleError(_0x56933b,null));},exports[_0x724b52('0xc')]=function(_0x1bef9c,_0x21b374){const _0x9c3e1d=_0x724b52;return _0x1bef9c['body']['name']=_0x1bef9c[_0x9c3e1d('0x30')][_0x9c3e1d('0x2c')],_0x1bef9c[_0x9c3e1d('0x0')]['basename']=_0x1bef9c['file'][_0x9c3e1d('0x25')],_0x1bef9c[_0x9c3e1d('0x0')][_0x9c3e1d('0x23')]=_0x1bef9c[_0x9c3e1d('0x30')][_0x9c3e1d('0x2d')],db[_0x9c3e1d('0xa')][_0x9c3e1d('0xc')](_0x1bef9c[_0x9c3e1d('0x0')])[_0x9c3e1d('0x21')](respondWithResult(_0x21b374,0xc9))[_0x9c3e1d('0x37')](handleError(_0x21b374,null));},exports['download']=function(_0x5ed2e5,_0x1df871){const _0x82d4fd=_0x724b52;return db[_0x82d4fd('0xa')][_0x82d4fd('0x27')]({'where':{'id':_0x5ed2e5[_0x82d4fd('0x40')]['id']},'raw':!![]})[_0x82d4fd('0x21')](handleEntityNotFound(_0x1df871,null))[_0x82d4fd('0x21')](function(_0x158409){const _0x4d574e=_0x82d4fd;if(_0x158409)return _0x1df871[_0x4d574e('0x15')](path[_0x4d574e('0x19')](config[_0x4d574e('0x33')],'files/attachments/',_0x158409['basename']));})[_0x82d4fd('0x37')](handleError(_0x1df871,null));}; \ No newline at end of file diff --git a/server/api/attachment/attachment.model.js b/server/api/attachment/attachment.model.js index d327e54..6351a00 100644 --- a/server/api/attachment/attachment.model.js +++ b/server/api/attachment/attachment.model.js @@ -1 +1 @@ -const a30_0x16ea=['define','exports','Attachment','attachments'];(function(_0x124f0f,_0x16ea9b){const _0x101350=function(_0x4a3a0d){while(--_0x4a3a0d){_0x124f0f['push'](_0x124f0f['shift']());}};_0x101350(++_0x16ea9b);}(a30_0x16ea,0xa6));const a30_0x1013=function(_0x124f0f,_0x16ea9b){_0x124f0f=_0x124f0f-0x0;let _0x101350=a30_0x16ea[_0x124f0f];return _0x101350;};const _0x2aa0e1=a30_0x1013;'use strict';const attributes=require('./attachment.attributes');module[_0x2aa0e1('0x3')]=function(_0x4a3a0d){const _0x30040a=_0x2aa0e1,_0x2d2add=_0x4a3a0d[_0x30040a('0x2')](_0x30040a('0x0'),attributes,{'tableName':_0x30040a('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2d2add;}; \ No newline at end of file +const a30_0x559b=['define','attachments','./attachment.attributes','exports','Attachment'];(function(_0xfc874,_0x559bc0){const _0x2b8a8c=function(_0x159c1a){while(--_0x159c1a){_0xfc874['push'](_0xfc874['shift']());}};_0x2b8a8c(++_0x559bc0);}(a30_0x559b,0x12f));const a30_0x2b8a=function(_0xfc874,_0x559bc0){_0xfc874=_0xfc874-0x0;let _0x2b8a8c=a30_0x559b[_0xfc874];return _0x2b8a8c;};const _0x920cbb=a30_0x2b8a;'use strict';const attributes=require(_0x920cbb('0x4'));module[_0x920cbb('0x0')]=function(_0x159c1a){const _0x201caf=_0x920cbb,_0x23bde6=_0x159c1a[_0x201caf('0x2')](_0x201caf('0x1'),attributes,{'tableName':_0x201caf('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x23bde6;}; \ No newline at end of file diff --git a/server/api/attachment/attachment.rpc.js b/server/api/attachment/attachment.rpc.js index 017741c..e2a60f0 100644 --- a/server/api/attachment/attachment.rpc.js +++ b/server/api/attachment/attachment.rpc.js @@ -1 +1 @@ -const a31_0x4dc9=['stringify','message','catch','rpc','options','info','../../config/logger','body','then','CreateAttachment','error','debug'];(function(_0x4b84a0,_0x4dc9d6){const _0x214c71=function(_0x503e2a){while(--_0x503e2a){_0x4b84a0['push'](_0x4b84a0['shift']());}};_0x214c71(++_0x4dc9d6);}(a31_0x4dc9,0x15f));const a31_0x214c=function(_0x4b84a0,_0x4dc9d6){_0x4b84a0=_0x4b84a0-0x0;let _0x214c71=a31_0x4dc9[_0x4b84a0];return _0x214c71;};const _0x25a584=a31_0x214c;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x25a584('0x3'))(_0x25a584('0x0'));exports[_0x25a584('0x6')]=function(_0x503e2a){const _0x1f7fbf=this;return new Promise(function(_0x35be5d,_0x3cca40){const _0x367bce=a31_0x214c;return db['Attachment']['create'](_0x503e2a[_0x367bce('0x4')],{'raw':_0x503e2a[_0x367bce('0x1')]?_0x503e2a['options']['raw']===undefined?!![]:![]:!![]})[_0x367bce('0x5')](function(_0xd9a8a4){const _0x46ed3d=_0x367bce;logger[_0x46ed3d('0x2')](_0x46ed3d('0x6'),_0x503e2a),logger[_0x46ed3d('0x8')](_0x46ed3d('0x6'),_0x503e2a,JSON[_0x46ed3d('0x9')](_0xd9a8a4)),_0x35be5d(_0xd9a8a4);})[_0x367bce('0xb')](function(_0x4a3ecf){const _0x1a43f1=_0x367bce;logger[_0x1a43f1('0x7')](_0x1a43f1('0x6'),_0x4a3ecf[_0x1a43f1('0xa')],_0x503e2a),_0x3cca40(_0x1f7fbf[_0x1a43f1('0x7')](0x1f4,_0x4a3ecf['message']));});});}; \ No newline at end of file +const a31_0x2dde=['stringify','info','CreateAttachment','raw','../../mysqldb','../../config/logger','message','body','debug','options','create','rpc'];(function(_0x281a9f,_0x2dde4f){const _0x3d287b=function(_0x192deb){while(--_0x192deb){_0x281a9f['push'](_0x281a9f['shift']());}};_0x3d287b(++_0x2dde4f);}(a31_0x2dde,0x69));const a31_0x3d28=function(_0x281a9f,_0x2dde4f){_0x281a9f=_0x281a9f-0x0;let _0x3d287b=a31_0x2dde[_0x281a9f];return _0x3d287b;};const _0x398ea4=a31_0x3d28;'use strict';const db=require(_0x398ea4('0x7'))['db'],logger=require(_0x398ea4('0x8'))(_0x398ea4('0x2'));exports[_0x398ea4('0x5')]=function(_0x192deb){const _0x2b7756=this;return new Promise(function(_0x5695b6,_0x3788a1){const _0x4b1155=a31_0x3d28;return db['Attachment'][_0x4b1155('0x1')](_0x192deb[_0x4b1155('0xa')],{'raw':_0x192deb[_0x4b1155('0x0')]?_0x192deb['options'][_0x4b1155('0x6')]===undefined?!![]:![]:!![]})['then'](function(_0x120105){const _0x2ceb19=_0x4b1155;logger[_0x2ceb19('0x4')](_0x2ceb19('0x5'),_0x192deb),logger[_0x2ceb19('0xb')](_0x2ceb19('0x5'),_0x192deb,JSON[_0x2ceb19('0x3')](_0x120105)),_0x5695b6(_0x120105);})['catch'](function(_0x5dd2b4){const _0x1bf7fd=_0x4b1155;logger['error'](_0x1bf7fd('0x5'),_0x5dd2b4[_0x1bf7fd('0x9')],_0x192deb),_0x3788a1(_0x2b7756['error'](0x1f4,_0x5dd2b4[_0x1bf7fd('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/attachment/index.js b/server/api/attachment/index.js index 89d3d82..b488a00 100644 --- a/server/api/attachment/index.js +++ b/server/api/attachment/index.js @@ -1 +1 @@ -const a32_0x2f31=['delete','download','path','multer','destroy','root','update','./attachment.controller','create','now','util','show','/:id/clone','files/attachments/','%s-%s','isAuthenticated','put','get','diskStorage','single','express','/:id','post','format','exports','replace','/:id/download','index','clone','join'];(function(_0x545a37,_0x2f31d0){const _0x4d25f1=function(_0x229b33){while(--_0x229b33){_0x545a37['push'](_0x545a37['shift']());}};_0x4d25f1(++_0x2f31d0);}(a32_0x2f31,0x102));const a32_0x4d25=function(_0x545a37,_0x2f31d0){_0x545a37=_0x545a37-0x0;let _0x4d25f1=a32_0x2f31[_0x545a37];return _0x4d25f1;};const _0x443bdb=a32_0x4d25;'use strict';const multer=require(_0x443bdb('0xf')),util=require(_0x443bdb('0x16')),path=require(_0x443bdb('0xe')),express=require(_0x443bdb('0x2')),router=express['Router'](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require(_0x443bdb('0x13'));router[_0x443bdb('0x1d')]('/',auth[_0x443bdb('0x1b')](),controller[_0x443bdb('0x9')]),router[_0x443bdb('0x1d')](_0x443bdb('0x3'),auth[_0x443bdb('0x1b')](),controller[_0x443bdb('0x17')]),router['get'](_0x443bdb('0x8'),auth['isAuthenticated'](),controller[_0x443bdb('0xd')]),router[_0x443bdb('0x4')](_0x443bdb('0x18'),auth[_0x443bdb('0x1b')](),controller[_0x443bdb('0xa')]);const upload=multer({'storage':multer[_0x443bdb('0x0')]({'destination':function(_0x229b33,_0x4175e4,_0x347b0d){const _0x23241a=_0x443bdb;_0x347b0d(null,path[_0x23241a('0xb')](config[_0x23241a('0x11')],_0x23241a('0x19')));},'filename':function(_0x22db21,_0x5df27a,_0x56aca1){const _0x82d2d=_0x443bdb;_0x56aca1(null,util[_0x82d2d('0x5')](_0x82d2d('0x1a'),Date[_0x82d2d('0x15')](),_0x5df27a['originalname'][_0x82d2d('0x7')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x443bdb('0x4')]('/',upload[_0x443bdb('0x1')]('file'),controller[_0x443bdb('0x14')]),router[_0x443bdb('0x1c')](_0x443bdb('0x3'),auth[_0x443bdb('0x1b')](),controller[_0x443bdb('0x12')]),router[_0x443bdb('0xc')](_0x443bdb('0x3'),auth[_0x443bdb('0x1b')](),controller[_0x443bdb('0x10')]),module[_0x443bdb('0x6')]=router; \ No newline at end of file +const a32_0x5d24=['download','express','destroy','../../config/environment','originalname','index','clone','util','isAuthenticated','exports','delete','show','%s-%s','replace','/:id/download','multer','path','now','single','format','get','/:id','files/attachments/','create'];(function(_0x3d5d1e,_0x5d2422){const _0x349e09=function(_0x4808dd){while(--_0x4808dd){_0x3d5d1e['push'](_0x3d5d1e['shift']());}};_0x349e09(++_0x5d2422);}(a32_0x5d24,0x7d));const a32_0x349e=function(_0x3d5d1e,_0x5d2422){_0x3d5d1e=_0x3d5d1e-0x0;let _0x349e09=a32_0x5d24[_0x3d5d1e];return _0x349e09;};const _0x196c47=a32_0x349e;'use strict';const multer=require(_0x196c47('0xa')),util=require(_0x196c47('0x2')),path=require(_0x196c47('0xb')),express=require(_0x196c47('0x14')),router=express['Router'](),auth=require('../../components/auth/service'),config=require(_0x196c47('0x16')),controller=require('./attachment.controller');router[_0x196c47('0xf')]('/',auth['isAuthenticated'](),controller[_0x196c47('0x0')]),router[_0x196c47('0xf')](_0x196c47('0x10'),auth[_0x196c47('0x3')](),controller[_0x196c47('0x6')]),router['get'](_0x196c47('0x9'),auth[_0x196c47('0x3')](),controller[_0x196c47('0x13')]),router['post']('/:id/clone',auth['isAuthenticated'](),controller[_0x196c47('0x1')]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x4808dd,_0x4b3c89,_0x5bf233){const _0x2255a4=_0x196c47;_0x5bf233(null,path['join'](config['root'],_0x2255a4('0x11')));},'filename':function(_0x1d0c47,_0x305630,_0x154e5b){const _0x1564fe=_0x196c47;_0x154e5b(null,util[_0x1564fe('0xe')](_0x1564fe('0x7'),Date[_0x1564fe('0xc')](),_0x305630[_0x1564fe('0x17')][_0x1564fe('0x8')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router['post']('/',upload[_0x196c47('0xd')]('file'),controller[_0x196c47('0x12')]),router['put'](_0x196c47('0x10'),auth['isAuthenticated'](),controller['update']),router[_0x196c47('0x5')](_0x196c47('0x10'),auth[_0x196c47('0x3')](),controller[_0x196c47('0x15')]),module[_0x196c47('0x4')]=router; \ No newline at end of file diff --git a/server/api/authGoogle/authGoogle.controller.js b/server/api/authGoogle/authGoogle.controller.js index c98135e..6e56ea7 100644 --- a/server/api/authGoogle/authGoogle.controller.js +++ b/server/api/authGoogle/authGoogle.controller.js @@ -1 +1 @@ -const a33_0x2c6c=['clientID','../../config/utils','login','emails','passport','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','blockedAt','allowedLoginAttempts','../../config/environment','secret','findOne','Strategy','value','Use','clearBlockUser','passport-google-oauth20','then','blockDuration','lodash','use','agent','/login','getLicense','moment','authenticate','admin','../../mysqldb','profile','google','catch','minutes','blocked','callback','add','Setting','user'];(function(_0x43fe3b,_0x2c6c49){const _0x1bb221=function(_0x587975){while(--_0x587975){_0x43fe3b['push'](_0x43fe3b['shift']());}};_0x1bb221(++_0x2c6c49);}(a33_0x2c6c,0x11a));const a33_0x1bb2=function(_0x43fe3b,_0x2c6c49){_0x43fe3b=_0x43fe3b-0x0;let _0x1bb221=a33_0x2c6c[_0x43fe3b];return _0x1bb221;};const _0x3be1a0=a33_0x1bb2;'use strict';const _=require(_0x3be1a0('0x18')),passport=require(_0x3be1a0('0xa')),GoogleStrategy=require(_0x3be1a0('0x15'))[_0x3be1a0('0x11')],moment=require(_0x3be1a0('0x1d')),db=require(_0x3be1a0('0x20'))['db'],config=require(_0x3be1a0('0xe')),utils=require(_0x3be1a0('0x7')),{Op}=require('sequelize');exports[_0x3be1a0('0x8')]=passport['authenticate'](_0x3be1a0('0x22'),{'failureRedirect':_0x3be1a0('0x1b'),'scope':[_0x3be1a0('0x21'),'email'],'session':![]}),exports[_0x3be1a0('0x2')]=passport[_0x3be1a0('0x1e')](_0x3be1a0('0x22'),{'failureRedirect':_0x3be1a0('0x1b'),'session':![]}),passport[_0x3be1a0('0x19')](new GoogleStrategy({'clientID':config['google']?config[_0x3be1a0('0x22')][_0x3be1a0('0x6')]:'id','clientSecret':config[_0x3be1a0('0x22')]?config[_0x3be1a0('0x22')]['clientSecret']:_0x3be1a0('0xf'),'callbackURL':config[_0x3be1a0('0x22')]?config['google']['callbackURL']:''},function(_0x587975,_0x35f10b,_0x5ef0ba,_0x2e41e0){const _0x30e175=_0x3be1a0;let _0x5ed855,_0x11bc1a;return db[_0x30e175('0x4')][_0x30e175('0x10')]({'where':{'id':0x1},'attributes':[_0x30e175('0xd'),_0x30e175('0x17')],'raw':!![]})[_0x30e175('0x16')](function(_0x1bbcf3){const _0x458beb=_0x30e175;return _0x5ed855=_0x1bbcf3,db[_0x458beb('0x13')][_0x458beb('0x10')]({'where':{'email':_['map'](_0x5ef0ba[_0x458beb('0x9')],_0x458beb('0x12')),'role':{[Op['or']]:[_0x458beb('0x1f'),_0x458beb('0x5'),_0x458beb('0x1a')]}}});})[_0x30e175('0x16')](function(_0x318dfd){const _0x2e4a6e=_0x30e175;_0x11bc1a=_0x318dfd;if(_0x11bc1a){if(_0x11bc1a['disabled'])return _0x2e41e0('Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.');else return _0x5ed855[_0x2e4a6e('0x17')]>0x0?_0x11bc1a[_0x2e4a6e('0x1')]?moment(_0x11bc1a[_0x2e4a6e('0xc')])[_0x2e4a6e('0x3')](_0x5ed855[_0x2e4a6e('0x17')],_0x2e4a6e('0x0'))>moment()?_0x2e41e0(_0x2e4a6e('0xb')):utils[_0x2e4a6e('0x14')](_0x11bc1a,0x0,![],null)['then'](function(){const _0x7a465d=_0x2e4a6e;return utils[_0x7a465d('0x1c')](_0x11bc1a);})['then'](function(){return _0x2e41e0(null,_0x11bc1a);}):utils[_0x2e4a6e('0x1c')](_0x11bc1a)[_0x2e4a6e('0x16')](function(){return _0x2e41e0(null,_0x11bc1a);}):utils['getLicense'](_0x11bc1a)[_0x2e4a6e('0x16')](function(){return _0x2e41e0(null,_0x11bc1a);});}return _0x2e41e0(_0x2e4a6e('0xb'));})[_0x30e175('0x23')](function(_0x229824){_0x2e41e0(_0x229824);});})); \ No newline at end of file +const a33_0x398d=['Use','disabled','clearBlockUser','authenticate','findOne','secret','login','sequelize','then','clientID','admin','callbackURL','profile','value','email','minutes','../../mysqldb','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','catch','user','callback','moment','passport-google-oauth20','/login','clientSecret','../../config/utils','getLicense','blockedAt','allowedLoginAttempts','lodash','blockDuration','google','use','Setting','Strategy'];(function(_0x4df1e6,_0x398d12){const _0x248c51=function(_0x3da950){while(--_0x3da950){_0x4df1e6['push'](_0x4df1e6['shift']());}};_0x248c51(++_0x398d12);}(a33_0x398d,0x98));const a33_0x248c=function(_0x4df1e6,_0x398d12){_0x4df1e6=_0x4df1e6-0x0;let _0x248c51=a33_0x398d[_0x4df1e6];return _0x248c51;};const _0x506ece=a33_0x248c;'use strict';const _=require(_0x506ece('0x11')),passport=require('passport'),GoogleStrategy=require(_0x506ece('0xa'))[_0x506ece('0x16')],moment=require(_0x506ece('0x9')),db=require(_0x506ece('0x4'))['db'],config=require('../../config/environment'),utils=require(_0x506ece('0xd')),{Op}=require(_0x506ece('0x1e'));exports[_0x506ece('0x1d')]=passport[_0x506ece('0x1a')](_0x506ece('0x13'),{'failureRedirect':_0x506ece('0xb'),'scope':[_0x506ece('0x0'),_0x506ece('0x2')],'session':![]}),exports[_0x506ece('0x8')]=passport['authenticate'](_0x506ece('0x13'),{'failureRedirect':_0x506ece('0xb'),'session':![]}),passport[_0x506ece('0x14')](new GoogleStrategy({'clientID':config[_0x506ece('0x13')]?config[_0x506ece('0x13')][_0x506ece('0x20')]:'id','clientSecret':config[_0x506ece('0x13')]?config[_0x506ece('0x13')][_0x506ece('0xc')]:_0x506ece('0x1c'),'callbackURL':config[_0x506ece('0x13')]?config['google'][_0x506ece('0x22')]:''},function(_0x3da950,_0x51382d,_0x5d15ac,_0x470af5){const _0x52736f=_0x506ece;let _0x369558,_0x234b8d;return db[_0x52736f('0x15')][_0x52736f('0x1b')]({'where':{'id':0x1},'attributes':[_0x52736f('0x10'),'blockDuration'],'raw':!![]})['then'](function(_0x9a3cb4){const _0x2119a4=_0x52736f;return _0x369558=_0x9a3cb4,db[_0x2119a4('0x17')][_0x2119a4('0x1b')]({'where':{'email':_['map'](_0x5d15ac['emails'],_0x2119a4('0x1')),'role':{[Op['or']]:[_0x2119a4('0x21'),_0x2119a4('0x7'),'agent']}}});})[_0x52736f('0x1f')](function(_0x57f58a){const _0xc1f986=_0x52736f;_0x234b8d=_0x57f58a;if(_0x234b8d){if(_0x234b8d[_0xc1f986('0x18')])return _0x470af5(_0xc1f986('0x5'));else return _0x369558[_0xc1f986('0x12')]>0x0?_0x234b8d['blocked']?moment(_0x234b8d[_0xc1f986('0xf')])['add'](_0x369558[_0xc1f986('0x12')],_0xc1f986('0x3'))>moment()?_0x470af5(_0xc1f986('0x5')):utils[_0xc1f986('0x19')](_0x234b8d,0x0,![],null)[_0xc1f986('0x1f')](function(){const _0x64dd2e=_0xc1f986;return utils[_0x64dd2e('0xe')](_0x234b8d);})[_0xc1f986('0x1f')](function(){return _0x470af5(null,_0x234b8d);}):utils['getLicense'](_0x234b8d)[_0xc1f986('0x1f')](function(){return _0x470af5(null,_0x234b8d);}):utils[_0xc1f986('0xe')](_0x234b8d)[_0xc1f986('0x1f')](function(){return _0x470af5(null,_0x234b8d);});}return _0x470af5(_0xc1f986('0x5'));})[_0x52736f('0x6')](function(_0x5cdc35){_0x470af5(_0x5cdc35);});})); \ No newline at end of file diff --git a/server/api/authGoogle/index.js b/server/api/authGoogle/index.js index 199da35..21ef06c 100644 --- a/server/api/authGoogle/index.js +++ b/server/api/authGoogle/index.js @@ -1 +1 @@ -const a34_0x49e8=['../user/user.controller.js','login','/callback','setTokenCookie','./authGoogle.controller','express','get','exports','callback'];(function(_0x52b6ab,_0x49e8c6){const _0x454d29=function(_0x25784){while(--_0x25784){_0x52b6ab['push'](_0x52b6ab['shift']());}};_0x454d29(++_0x49e8c6);}(a34_0x49e8,0x144));const a34_0x454d=function(_0x52b6ab,_0x49e8c6){_0x52b6ab=_0x52b6ab-0x0;let _0x454d29=a34_0x49e8[_0x52b6ab];return _0x454d29;};const _0x111105=a34_0x454d;'use strict';const express=require(_0x111105('0x5')),router=express['Router'](),controller=require(_0x111105('0x4')),userController=require(_0x111105('0x0')),authService=require('../../components/auth/service');router[_0x111105('0x6')]('/',controller[_0x111105('0x1')]),router[_0x111105('0x6')](_0x111105('0x2'),controller[_0x111105('0x8')],authService['isMiddleware'],userController[_0x111105('0x1')],authService[_0x111105('0x3')]),module[_0x111105('0x7')]=router; \ No newline at end of file +const a34_0x41ac=['../../components/auth/service','login','exports','/callback','callback','setTokenCookie','isMiddleware','get','express'];(function(_0x1b153d,_0x41ac33){const _0x1d9abd=function(_0x3a23e2){while(--_0x3a23e2){_0x1b153d['push'](_0x1b153d['shift']());}};_0x1d9abd(++_0x41ac33);}(a34_0x41ac,0x6f));const a34_0x1d9a=function(_0x1b153d,_0x41ac33){_0x1b153d=_0x1b153d-0x0;let _0x1d9abd=a34_0x41ac[_0x1b153d];return _0x1d9abd;};const _0x4921d7=a34_0x1d9a;'use strict';const express=require(_0x4921d7('0x5')),router=express['Router'](),controller=require('./authGoogle.controller'),userController=require('../user/user.controller.js'),authService=require(_0x4921d7('0x6'));router['get']('/',controller[_0x4921d7('0x7')]),router[_0x4921d7('0x4')](_0x4921d7('0x0'),controller[_0x4921d7('0x1')],authService[_0x4921d7('0x3')],userController[_0x4921d7('0x7')],authService[_0x4921d7('0x2')]),module[_0x4921d7('0x8')]=router; \ No newline at end of file diff --git a/server/api/authLocal/authLocal.controller.js b/server/api/authLocal/authLocal.controller.js index 3732449..e32089d 100644 --- a/server/api/authLocal/authLocal.controller.js +++ b/server/api/authLocal/authLocal.controller.js @@ -1 +1 @@ -const a35_0x83b6=['Email\x20parameter\x20is\x20missing','stringify','xCally\x20Motion\x20Password\x20Reset','passwordHistoryLimit','email','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','findOne','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','blockDuration','Use','auth','signToken','randomstring','blockedAt','reset','forgot','status','getLicense','catch','host','Smtp','blocked','disabled','use','validatePasswordHistory','send','name','json','moment','loginAttempts','Setting','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','role','MailServerOut','http','previousPasswords','token','resetPasswordExpires','authentication','then','lodash','secure','Password\x20reset!','If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a','authenticate','save','resetPasswordToken','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','body','Something\x20went\x20wrong,\x20please\x20try\x20again.','local','sequelize','password','User','trim','clearBlockUser','request','headers','jayson/promise','now','generate','admin','user','util','validatePasswordPattern','../../mysqldb','toLowerCase','/reset/','agent','pass','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','../../components/auth/service','http://','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','securePassword','params','allowedLoginAttempts','message','error','merge','MailAccount','SendMail','add','service','port'];(function(_0x17c8c3,_0x83b63){const _0xf8ebbb=function(_0xb5b642){while(--_0xb5b642){_0x17c8c3['push'](_0x17c8c3['shift']());}};_0xf8ebbb(++_0x83b63);}(a35_0x83b6,0x1c3));const a35_0xf8eb=function(_0x17c8c3,_0x83b63){_0x17c8c3=_0x17c8c3-0x0;let _0xf8ebbb=a35_0x83b6[_0x17c8c3];return _0xf8ebbb;};const _0x3bfed0=a35_0xf8eb;'use strict';const util=require(_0x3bfed0('0x25')),passport=require('passport'),LocalStrategy=require('passport-local')['Strategy'],jayson=require(_0x3bfed0('0x20')),_=require(_0x3bfed0('0xe')),rs=require(_0x3bfed0('0x47')),moment=require(_0x3bfed0('0x2')),db=require(_0x3bfed0('0x27'))['db'],{Op}=require(_0x3bfed0('0x19')),authService=require(_0x3bfed0('0x2d')),utils=require('../../config/utils'),client=jayson['client'][_0x3bfed0('0x8')]({'port':0x232b});function localAuthenticate(_0xb5b642,_0x3201d9,_0x178df3,_0x3c974c){const _0x31a140=_0x3bfed0;let _0x161d1f,_0x395a77;return db[_0x31a140('0x4')]['findOne']({'where':{'id':0x1},'attributes':[_0x31a140('0x32'),_0x31a140('0x43')],'raw':!![]})[_0x31a140('0xd')](function(_0x273711){const _0x2ae664=_0x31a140;return _0x161d1f=_0x273711,_0xb5b642[_0x2ae664('0x41')]({'attributes':['id',_0x2ae664('0x0'),_0x2ae664('0x1a'),'salt',_0x2ae664('0x6'),_0x2ae664('0x51'),_0x2ae664('0x50'),_0x2ae664('0x48'),_0x2ae664('0x3')],'where':{'name':_0x3201d9,'role':{[Op['or']]:[_0x2ae664('0x23'),_0x2ae664('0x24'),_0x2ae664('0x2a')]}}});})[_0x31a140('0xd')](function(_0x401012){const _0x1f44ba=_0x31a140;if(!_0x401012||_0x401012&&_0x401012[_0x1f44ba('0x0')]!==_0x3201d9)throw new Error(_0x1f44ba('0x40'));else return _0x395a77=_0x401012,_0x395a77;})[_0x31a140('0xd')](function(){const _0x2c6b68=_0x31a140;_0x395a77[_0x2c6b68('0x12')](_0x178df3,function(_0xf193ee,_0x617fe9){const _0x3626b6=_0x2c6b68,_0xdff61a=_0x395a77[_0x3626b6('0x3')]+0x1;if(_0xf193ee)return _0x3c974c(_0xf193ee);else{if(!_0x617fe9){if(_0x395a77[_0x3626b6('0x51')])return _0x3c974c(null,![],{'message':_0x3626b6('0x40')});else return _0x161d1f['allowedLoginAttempts']>0x0?_0x395a77[_0x3626b6('0x50')]?_0x161d1f[_0x3626b6('0x43')]>0x0?moment(_0x395a77[_0x3626b6('0x48')])[_0x3626b6('0x38')](_0x161d1f[_0x3626b6('0x43')],'minutes')>moment()?_0x3c974c(null,![],{'message':_0x3626b6('0x40')}):utils[_0x3626b6('0x1d')](_0x395a77,_0xdff61a,![],null)[_0x3626b6('0xd')](function(){const _0x5c4d03=_0x3626b6;return _0x3c974c(null,![],{'message':_0x5c4d03('0x40')});}):_0x3c974c(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):_0xdff61a>=_0x161d1f[_0x3626b6('0x32')]?utils[_0x3626b6('0x1d')](_0x395a77,0x0,!![],moment())[_0x3626b6('0xd')](function(){return _0x3c974c(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});}):utils[_0x3626b6('0x1d')](_0x395a77,_0xdff61a,![],null)[_0x3626b6('0xd')](function(){const _0x34b041=_0x3626b6;return _0x3c974c(null,![],{'message':_0x34b041('0x40')});}):_0x3c974c(null,![],{'message':_0x3626b6('0x40')});}else{if(_0x395a77[_0x3626b6('0x51')])return _0x3c974c(null,![],{'message':_0x3626b6('0x40')});else return _0x161d1f[_0x3626b6('0x32')]>0x0?_0x395a77['blocked']?_0x161d1f[_0x3626b6('0x43')]>0x0?moment(_0x395a77[_0x3626b6('0x48')])[_0x3626b6('0x38')](_0x161d1f[_0x3626b6('0x43')],'minutes')>moment()?_0x3c974c(null,![],{'message':_0x3626b6('0x40')}):utils[_0x3626b6('0x1d')](_0x395a77,0x0,![],null)['then'](function(){const _0x4d9e91=_0x3626b6;return utils[_0x4d9e91('0x4c')](_0x395a77);})[_0x3626b6('0xd')](function(){return _0x3c974c(null,_0x395a77);}):_0x3c974c(null,![],{'message':_0x3626b6('0x40')}):utils['clearBlockUser'](_0x395a77,0x0,![],null)[_0x3626b6('0xd')](function(){const _0x460c0f=_0x3626b6;return utils[_0x460c0f('0x4c')](_0x395a77);})[_0x3626b6('0xd')](function(){return _0x3c974c(null,_0x395a77);})['catch'](function(_0x46a383){return _0x3c974c(null,![],_0x46a383);}):_0x395a77[_0x3626b6('0x50')]?_0x3c974c(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'}):utils[_0x3626b6('0x4c')](_0x395a77)[_0x3626b6('0xd')](function(){return _0x3c974c(null,_0x395a77);});}}});})[_0x31a140('0x4d')](function(_0xd43c6c){return _0x3c974c(null,![],_0xd43c6c);});}function sendServiceMail(_0x2602e4){const _0x295b57=_0x3bfed0;return db[_0x295b57('0x36')]['findOne']({'where':{'service':!![]},'attributes':['id','name','email'],'include':[{'model':db[_0x295b57('0x7')],'as':_0x295b57('0x4f')}]})['then'](function(_0x28fd4b){const _0x1085c5=_0x295b57;if(!_0x28fd4b)throw new Error(_0x1085c5('0x2c'));const _0xf6e0f0={'tls':{'rejectUnauthorized':![]}};_0x28fd4b[_0x1085c5('0x4f')][_0x1085c5('0x39')]?_0xf6e0f0['service']=_0x28fd4b[_0x1085c5('0x4f')][_0x1085c5('0x39')]:(_0xf6e0f0[_0x1085c5('0x4e')]=_0x28fd4b[_0x1085c5('0x4f')][_0x1085c5('0x4e')],_0xf6e0f0[_0x1085c5('0x3a')]=_0x28fd4b[_0x1085c5('0x4f')][_0x1085c5('0x3a')],_0xf6e0f0[_0x1085c5('0xf')]=_0x28fd4b[_0x1085c5('0x4f')][_0x1085c5('0xf')]);_0x28fd4b[_0x1085c5('0x4f')][_0x1085c5('0xc')]&&(_0xf6e0f0[_0x1085c5('0x45')]={'user':_0x28fd4b[_0x1085c5('0x4f')]['user'],'pass':_0x28fd4b['Smtp'][_0x1085c5('0x2b')]});const _0x225edd={'account':_0xf6e0f0,'message':_[_0x1085c5('0x35')]({'from':util['format']('\x22%s\x22\x20<%s>',_0x28fd4b['name'],_0x28fd4b[_0x1085c5('0x3f')]||_0x28fd4b[_0x1085c5('0x4f')]['user'])},_0x2602e4)};return client[_0x1085c5('0x1e')](_0x1085c5('0x37'),_0x225edd);})[_0x295b57('0xd')](function(_0x5b135e){const _0x9736a8=_0x295b57;if(_0x5b135e[_0x9736a8('0x34')])throw new Error(util['format']('SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!',_0x5b135e['error'][_0x9736a8('0x33')]||JSON[_0x9736a8('0x3c')](_0x5b135e['error'])));return!![];});}function handleError(_0x5ed819,_0x53032c,_0x14caf7){const _0x350ca1=_0x3bfed0;return _0x5ed819['status'](_0x53032c||0x1f4)[_0x350ca1('0x54')]({'message':_0x14caf7?_0x14caf7[_0x350ca1('0x33')]||_0x14caf7:''});}exports['login']=function(_0xa5ca6f,_0x1816c6,_0x2d61bb){const _0x526b44=_0x3bfed0;passport[_0x526b44('0x12')](_0x526b44('0x18'),function(_0x394acf,_0x39ce37,_0x429059){const _0x4c2aba=_0x526b44,_0x57f507=_0x394acf||_0x429059;if(_0x57f507)return handleError(_0x1816c6,0x191,_0x57f507);if(!_0x39ce37)return handleError(_0x1816c6,0x194,{'message':_0x4c2aba('0x17')});else{const _0x4b1127={'payload':{'id':_0x39ce37['id'],'role':_0x39ce37[_0x4c2aba('0x6')]},'options':{'expiresIn':0x15180}};return authService[_0x4c2aba('0x46')](_0x4b1127)[_0x4c2aba('0xd')](function(_0x118eb6){const _0x4c430d=_0x4c2aba;_0x1816c6[_0x4c430d('0x1')]({'id':_0x39ce37['id'],'token':_0x118eb6,'statusCall':'','isAlreadyLogged':_0x39ce37['online']});});}})(_0xa5ca6f,_0x1816c6,_0x2d61bb);},exports[_0x3bfed0('0x4a')]=function(_0x27acf4,_0x32a72f){const _0x31734a=_0x3bfed0;if(!_0x27acf4['body'][_0x31734a('0x3f')])return handleError(_0x32a72f,0x1f4,{'message':_0x31734a('0x3b')});const _0x28aa3d=rs[_0x31734a('0x22')]();_0x27acf4['body']['email']=_0x27acf4[_0x31734a('0x16')]['email'][_0x31734a('0x1c')]()[_0x31734a('0x28')]();let _0x4937dd;return db[_0x31734a('0x4')][_0x31734a('0x41')]({'where':{'id':0x1},'attributes':[_0x31734a('0x32'),'blockDuration'],'raw':!![]})['then'](function(_0x1a2ed3){const _0x12985b=_0x31734a;return _0x4937dd=_0x1a2ed3,db[_0x12985b('0x44')][_0x12985b('0x41')]({'where':{'email':_0x27acf4[_0x12985b('0x16')]['email']}});})[_0x31734a('0xd')](function(_0x39f578){const _0x3528b2=_0x31734a;if(!_0x39f578)throw new Error('This\x20email\x20is\x20not\x20registered.');if(_0x39f578[_0x3528b2('0x51')])throw new Error(_0x3528b2('0x15'));if(_0x39f578['blocked']){if(moment(_0x39f578['blockedAt'])[_0x3528b2('0x38')](_0x4937dd[_0x3528b2('0x43')],'minutes')>moment())throw new Error(_0x3528b2('0x2f'));else _0x39f578[_0x3528b2('0x50')]=![],_0x39f578['blockedAt']=null;}return _0x39f578['resetPasswordToken']=_0x28aa3d,_0x39f578[_0x3528b2('0xb')]=Date['now']()+0x36ee80,_0x39f578[_0x3528b2('0x13')]();})[_0x31734a('0xd')](function(){const _0x2f2f90=_0x31734a;return sendServiceMail({'to':_0x27acf4[_0x2f2f90('0x16')][_0x2f2f90('0x3f')],'subject':_0x2f2f90('0x3d'),'text':'You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a'+_0x2f2f90('0x42')+_0x2f2f90('0x2e')+_0x27acf4[_0x2f2f90('0x1f')]['host']+_0x2f2f90('0x29')+_0x28aa3d+'\x0a\x0a'+_0x2f2f90('0x11')});})['then'](function(){const _0x93fca7=_0x31734a;_0x32a72f[_0x93fca7('0x4b')](0xc8)[_0x93fca7('0x54')]({'message':'Reset\x20Email\x20sent!'});})[_0x31734a('0x4d')](function(_0x46041c){return handleError(_0x32a72f,0x1f4,_0x46041c);});},exports[_0x3bfed0('0x49')]=function(_0x214a2a,_0x2aec3d){const _0x42ffc6=_0x3bfed0;return db[_0x42ffc6('0x1b')][_0x42ffc6('0x41')]({'where':{'resetPasswordToken':_0x214a2a[_0x42ffc6('0x31')][_0x42ffc6('0xa')],'resetPasswordExpires':{[Op['gt']]:Date[_0x42ffc6('0x21')]()}}})['then'](function(_0x48fa3a){const _0x88d33c=_0x42ffc6;if(!_0x48fa3a)throw new Error(_0x88d33c('0x5'));return db[_0x88d33c('0x4')][_0x88d33c('0x41')]({'attributes':['id',_0x88d33c('0x30'),'enforcePasswordHistory','passwordHistoryLimit']})[_0x88d33c('0xd')](function(_0x294d61){const _0x327f87=_0x88d33c;if(_0x294d61[_0x327f87('0x30')])authService[_0x327f87('0x26')](_0x214a2a[_0x327f87('0x16')][_0x327f87('0x1a')]);if(!_0x294d61['enforcePasswordHistory']||!_0x48fa3a[_0x327f87('0x9')])return _0x48fa3a;return authService[_0x327f87('0x53')](_0x214a2a['body']['password'],_0x48fa3a['previousPasswords'],_0x294d61[_0x327f87('0x3e')]),_0x48fa3a;})[_0x88d33c('0xd')](function(){const _0x11a274=_0x88d33c;return _0x48fa3a[_0x11a274('0x1a')]=_0x214a2a[_0x11a274('0x16')]['password'],_0x48fa3a[_0x11a274('0x14')]=null,_0x48fa3a['resetPasswordExpires']=null,_0x48fa3a[_0x11a274('0x13')]();});})[_0x42ffc6('0xd')](function(){const _0xf81f10=_0x42ffc6;_0x2aec3d[_0xf81f10('0x4b')](0xc8)[_0xf81f10('0x54')]({'message':_0xf81f10('0x10')});})['catch'](function(_0x4ab75e){return handleError(_0x2aec3d,0x1f4,_0x4ab75e);});},passport[_0x3bfed0('0x52')](new LocalStrategy({'usernameField':_0x3bfed0('0x0'),'passwordField':_0x3bfed0('0x1a')},function(_0x4da996,_0x9d2c46,_0x12d685){const _0x20048b=_0x3bfed0;return localAuthenticate(db[_0x20048b('0x1b')],_0x4da996,_0x9d2c46,_0x12d685);})); \ No newline at end of file +const a35_0x17f8=['http','Strategy','authenticate','status','role','port','toLowerCase','securePassword','online','then','clearBlockUser','MailServerOut','Unable\x20to\x20find\x20a\x20configured\x20SMTP\x20service!','passwordHistoryLimit','service','../../components/auth/service','body','message','util','Password\x20reset\x20token\x20is\x20invalid\x20or\x20has\x20expired.','http://','allowedLoginAttempts','local','format','Something\x20went\x20wrong,\x20please\x20try\x20again.','send','reset','moment','Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.','randomstring','name','client','blockedAt','If\x20you\x20did\x20not\x20request\x20this,\x20please\x20ignore\x20this\x20email\x20and\x20your\x20password\x20will\x20remain\x20unchanged.\x0a','email','password','save','host','agent','validatePasswordPattern','generate','now','loginAttempts','Setting','admin','sequelize','blocked','headers','request','\x22%s\x22\x20<%s>','/reset/','Smtp','add','login','You\x20are\x20receiving\x20this\x20because\x20you\x20(or\x20someone\x20else)\x20have\x20requested\x20the\x20reset\x20of\x20the\x20password\x20for\x20your\x20account.\x0a\x0a','auth','disabled','json','enforcePasswordHistory','merge','pass','forgot','MailAccount','Please\x20click\x20on\x20the\x20following\x20link,\x20or\x20paste\x20this\x20into\x20your\x20browser\x20to\x20complete\x20the\x20process:\x0a\x0a','passport','blockDuration','user','signToken','The\x20user\x20is\x20disabled.\x20Please\x20contact\x20the\x20administrator.','The\x20user\x20is\x20blocked.\x20Please\x20contact\x20the\x20administrator.','error','User','params','Password\x20reset!','catch','Reset\x20Email\x20sent!','Use','minutes','findOne','validatePasswordHistory'];(function(_0x3c9ccd,_0x17f840){const _0x407d72=function(_0x5759e4){while(--_0x5759e4){_0x3c9ccd['push'](_0x3c9ccd['shift']());}};_0x407d72(++_0x17f840);}(a35_0x17f8,0x1e6));const a35_0x407d=function(_0x3c9ccd,_0x17f840){_0x3c9ccd=_0x3c9ccd-0x0;let _0x407d72=a35_0x17f8[_0x3c9ccd];return _0x407d72;};const _0x306d0b=a35_0x407d;'use strict';const util=require(_0x306d0b('0xc')),passport=require(_0x306d0b('0x3a')),LocalStrategy=require('passport-local')[_0x306d0b('0x4b')],jayson=require('jayson/promise'),_=require('lodash'),rs=require(_0x306d0b('0x17')),moment=require(_0x306d0b('0x15')),db=require('../../mysqldb')['db'],{Op}=require(_0x306d0b('0x27')),authService=require(_0x306d0b('0x9')),utils=require('../../config/utils'),client=jayson[_0x306d0b('0x19')][_0x306d0b('0x4a')]({'port':0x232b});function localAuthenticate(_0x5759e4,_0xbd1924,_0x53f6c8,_0x32529c){const _0x194910=_0x306d0b;let _0x4e590d,_0x26640e;return db[_0x194910('0x25')][_0x194910('0x48')]({'where':{'id':0x1},'attributes':['allowedLoginAttempts',_0x194910('0x3b')],'raw':!![]})['then'](function(_0x279fa7){const _0x14a8c2=_0x194910;return _0x4e590d=_0x279fa7,_0x5759e4[_0x14a8c2('0x48')]({'attributes':['id',_0x14a8c2('0x18'),'password','salt',_0x14a8c2('0x4e'),_0x14a8c2('0x32'),_0x14a8c2('0x28'),'blockedAt',_0x14a8c2('0x24')],'where':{'name':_0xbd1924,'role':{[Op['or']]:[_0x14a8c2('0x26'),_0x14a8c2('0x3c'),_0x14a8c2('0x20')]}}});})[_0x194910('0x3')](function(_0x4763fe){const _0xd121a4=_0x194910;if(!_0x4763fe||_0x4763fe&&_0x4763fe[_0xd121a4('0x18')]!==_0xbd1924)throw new Error(_0xd121a4('0x16'));else return _0x26640e=_0x4763fe,_0x26640e;})[_0x194910('0x3')](function(){const _0x3a21d2=_0x194910;_0x26640e[_0x3a21d2('0x4c')](_0x53f6c8,function(_0x5920bf,_0x1427e1){const _0x163909=_0x3a21d2,_0x3ecf20=_0x26640e[_0x163909('0x24')]+0x1;if(_0x5920bf)return _0x32529c(_0x5920bf);else{if(!_0x1427e1){if(_0x26640e[_0x163909('0x32')])return _0x32529c(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});else return _0x4e590d[_0x163909('0xf')]>0x0?_0x26640e['blocked']?_0x4e590d[_0x163909('0x3b')]>0x0?moment(_0x26640e['blockedAt'])[_0x163909('0x2e')](_0x4e590d['blockDuration'],_0x163909('0x47'))>moment()?_0x32529c(null,![],{'message':_0x163909('0x16')}):utils[_0x163909('0x4')](_0x26640e,_0x3ecf20,![],null)['then'](function(){const _0x3ca4f3=_0x163909;return _0x32529c(null,![],{'message':_0x3ca4f3('0x16')});}):_0x32529c(null,![],{'message':_0x163909('0x16')}):_0x3ecf20>=_0x4e590d[_0x163909('0xf')]?utils[_0x163909('0x4')](_0x26640e,0x0,!![],moment())['then'](function(){const _0xce7206=_0x163909;return _0x32529c(null,![],{'message':_0xce7206('0x16')});}):utils[_0x163909('0x4')](_0x26640e,_0x3ecf20,![],null)[_0x163909('0x3')](function(){const _0x57b24e=_0x163909;return _0x32529c(null,![],{'message':_0x57b24e('0x16')});}):_0x32529c(null,![],{'message':_0x163909('0x16')});}else{if(_0x26640e[_0x163909('0x32')])return _0x32529c(null,![],{'message':'Incorrect\x20username\x20and/or\x20password.\x20Please\x20retry\x20again\x20or\x20contact\x20the\x20administrator.'});else return _0x4e590d['allowedLoginAttempts']>0x0?_0x26640e['blocked']?_0x4e590d[_0x163909('0x3b')]>0x0?moment(_0x26640e[_0x163909('0x1a')])[_0x163909('0x2e')](_0x4e590d[_0x163909('0x3b')],_0x163909('0x47'))>moment()?_0x32529c(null,![],{'message':_0x163909('0x16')}):utils['clearBlockUser'](_0x26640e,0x0,![],null)['then'](function(){return utils['getLicense'](_0x26640e);})[_0x163909('0x3')](function(){return _0x32529c(null,_0x26640e);}):_0x32529c(null,![],{'message':_0x163909('0x16')}):utils['clearBlockUser'](_0x26640e,0x0,![],null)['then'](function(){return utils['getLicense'](_0x26640e);})[_0x163909('0x3')](function(){return _0x32529c(null,_0x26640e);})[_0x163909('0x44')](function(_0x30f9b9){return _0x32529c(null,![],_0x30f9b9);}):_0x26640e[_0x163909('0x28')]?_0x32529c(null,![],{'message':_0x163909('0x16')}):utils['getLicense'](_0x26640e)[_0x163909('0x3')](function(){return _0x32529c(null,_0x26640e);});}}});})[_0x194910('0x44')](function(_0x3cb6aa){return _0x32529c(null,![],_0x3cb6aa);});}function sendServiceMail(_0xd67eaf){const _0x8324ee=_0x306d0b;return db[_0x8324ee('0x38')][_0x8324ee('0x48')]({'where':{'service':!![]},'attributes':['id','name','email'],'include':[{'model':db[_0x8324ee('0x5')],'as':_0x8324ee('0x2d')}]})[_0x8324ee('0x3')](function(_0x8bc544){const _0x56fa02=_0x8324ee;if(!_0x8bc544)throw new Error(_0x56fa02('0x6'));const _0x34ae81={'tls':{'rejectUnauthorized':![]}};_0x8bc544['Smtp'][_0x56fa02('0x8')]?_0x34ae81['service']=_0x8bc544[_0x56fa02('0x2d')]['service']:(_0x34ae81['host']=_0x8bc544[_0x56fa02('0x2d')][_0x56fa02('0x1f')],_0x34ae81['port']=_0x8bc544[_0x56fa02('0x2d')][_0x56fa02('0x4f')],_0x34ae81['secure']=_0x8bc544[_0x56fa02('0x2d')]['secure']);_0x8bc544[_0x56fa02('0x2d')]['authentication']&&(_0x34ae81[_0x56fa02('0x31')]={'user':_0x8bc544[_0x56fa02('0x2d')][_0x56fa02('0x3c')],'pass':_0x8bc544[_0x56fa02('0x2d')][_0x56fa02('0x36')]});const _0x17a645={'account':_0x34ae81,'message':_[_0x56fa02('0x35')]({'from':util[_0x56fa02('0x11')](_0x56fa02('0x2b'),_0x8bc544['name'],_0x8bc544[_0x56fa02('0x1c')]||_0x8bc544['Smtp'][_0x56fa02('0x3c')])},_0xd67eaf)};return client[_0x56fa02('0x2a')]('SendMail',_0x17a645);})[_0x8324ee('0x3')](function(_0x5ecc4a){const _0x3b1576=_0x8324ee;if(_0x5ecc4a[_0x3b1576('0x40')])throw new Error(util[_0x3b1576('0x11')]('SendMail\x20error:\x20%s.\x20Please\x20contact\x20your\x20Administrator!',_0x5ecc4a[_0x3b1576('0x40')]['message']||JSON['stringify'](_0x5ecc4a['error'])));return!![];});}function handleError(_0x4d63d2,_0x127bb4,_0x13e64d){const _0x2072ca=_0x306d0b;return _0x4d63d2[_0x2072ca('0x4d')](_0x127bb4||0x1f4)[_0x2072ca('0x13')]({'message':_0x13e64d?_0x13e64d[_0x2072ca('0xb')]||_0x13e64d:''});}exports[_0x306d0b('0x2f')]=function(_0x528aed,_0x5c1e03,_0x13c43b){const _0x5b9503=_0x306d0b;passport['authenticate'](_0x5b9503('0x10'),function(_0x503364,_0x5444bb,_0x549dac){const _0xd0be81=_0x5b9503,_0x4c24ca=_0x503364||_0x549dac;if(_0x4c24ca)return handleError(_0x5c1e03,0x191,_0x4c24ca);if(!_0x5444bb)return handleError(_0x5c1e03,0x194,{'message':_0xd0be81('0x12')});else{const _0x473c32={'payload':{'id':_0x5444bb['id'],'role':_0x5444bb[_0xd0be81('0x4e')]},'options':{'expiresIn':0x15180}};return authService[_0xd0be81('0x3d')](_0x473c32)[_0xd0be81('0x3')](function(_0x38e14c){const _0x3ac5e8=_0xd0be81;_0x5c1e03[_0x3ac5e8('0x33')]({'id':_0x5444bb['id'],'token':_0x38e14c,'statusCall':'','isAlreadyLogged':_0x5444bb[_0x3ac5e8('0x2')]});});}})(_0x528aed,_0x5c1e03,_0x13c43b);},exports[_0x306d0b('0x37')]=function(_0x392bc6,_0xc5308a){const _0x12dde7=_0x306d0b;if(!_0x392bc6[_0x12dde7('0xa')][_0x12dde7('0x1c')])return handleError(_0xc5308a,0x1f4,{'message':'Email\x20parameter\x20is\x20missing'});const _0x40c20f=rs[_0x12dde7('0x22')]();_0x392bc6['body'][_0x12dde7('0x1c')]=_0x392bc6[_0x12dde7('0xa')][_0x12dde7('0x1c')]['trim']()[_0x12dde7('0x0')]();let _0x4e7fc3;return db[_0x12dde7('0x25')][_0x12dde7('0x48')]({'where':{'id':0x1},'attributes':[_0x12dde7('0xf'),_0x12dde7('0x3b')],'raw':!![]})[_0x12dde7('0x3')](function(_0x3c651d){const _0x49fb8c=_0x12dde7;return _0x4e7fc3=_0x3c651d,db[_0x49fb8c('0x46')][_0x49fb8c('0x48')]({'where':{'email':_0x392bc6[_0x49fb8c('0xa')][_0x49fb8c('0x1c')]}});})[_0x12dde7('0x3')](function(_0x1c89bb){const _0x3ddbdf=_0x12dde7;if(!_0x1c89bb)throw new Error('This\x20email\x20is\x20not\x20registered.');if(_0x1c89bb[_0x3ddbdf('0x32')])throw new Error(_0x3ddbdf('0x3e'));if(_0x1c89bb[_0x3ddbdf('0x28')]){if(moment(_0x1c89bb[_0x3ddbdf('0x1a')])[_0x3ddbdf('0x2e')](_0x4e7fc3[_0x3ddbdf('0x3b')],'minutes')>moment())throw new Error(_0x3ddbdf('0x3f'));else _0x1c89bb[_0x3ddbdf('0x28')]=![],_0x1c89bb[_0x3ddbdf('0x1a')]=null;}return _0x1c89bb['resetPasswordToken']=_0x40c20f,_0x1c89bb['resetPasswordExpires']=Date['now']()+0x36ee80,_0x1c89bb[_0x3ddbdf('0x1e')]();})['then'](function(){const _0x7a958d=_0x12dde7;return sendServiceMail({'to':_0x392bc6['body'][_0x7a958d('0x1c')],'subject':'xCally\x20Motion\x20Password\x20Reset','text':_0x7a958d('0x30')+_0x7a958d('0x39')+_0x7a958d('0xe')+_0x392bc6[_0x7a958d('0x29')][_0x7a958d('0x1f')]+_0x7a958d('0x2c')+_0x40c20f+'\x0a\x0a'+_0x7a958d('0x1b')});})[_0x12dde7('0x3')](function(){const _0x5ee68f=_0x12dde7;_0xc5308a['status'](0xc8)[_0x5ee68f('0x13')]({'message':_0x5ee68f('0x45')});})[_0x12dde7('0x44')](function(_0x46ecce){return handleError(_0xc5308a,0x1f4,_0x46ecce);});},exports[_0x306d0b('0x14')]=function(_0x542dde,_0x2bfbe1){const _0x2ad526=_0x306d0b;return db[_0x2ad526('0x41')][_0x2ad526('0x48')]({'where':{'resetPasswordToken':_0x542dde[_0x2ad526('0x42')]['token'],'resetPasswordExpires':{[Op['gt']]:Date[_0x2ad526('0x23')]()}}})[_0x2ad526('0x3')](function(_0x2ac391){const _0x4d2d90=_0x2ad526;if(!_0x2ac391)throw new Error(_0x4d2d90('0xd'));return db[_0x4d2d90('0x25')][_0x4d2d90('0x48')]({'attributes':['id',_0x4d2d90('0x1'),'enforcePasswordHistory','passwordHistoryLimit']})[_0x4d2d90('0x3')](function(_0x440c10){const _0xe49100=_0x4d2d90;if(_0x440c10[_0xe49100('0x1')])authService[_0xe49100('0x21')](_0x542dde[_0xe49100('0xa')][_0xe49100('0x1d')]);if(!_0x440c10[_0xe49100('0x34')]||!_0x2ac391['previousPasswords'])return _0x2ac391;return authService[_0xe49100('0x49')](_0x542dde['body'][_0xe49100('0x1d')],_0x2ac391['previousPasswords'],_0x440c10[_0xe49100('0x7')]),_0x2ac391;})[_0x4d2d90('0x3')](function(){const _0xfc7634=_0x4d2d90;return _0x2ac391[_0xfc7634('0x1d')]=_0x542dde['body']['password'],_0x2ac391['resetPasswordToken']=null,_0x2ac391['resetPasswordExpires']=null,_0x2ac391[_0xfc7634('0x1e')]();});})['then'](function(){const _0x514ac5=_0x2ad526;_0x2bfbe1['status'](0xc8)[_0x514ac5('0x13')]({'message':_0x514ac5('0x43')});})[_0x2ad526('0x44')](function(_0x25b936){return handleError(_0x2bfbe1,0x1f4,_0x25b936);});},passport['use'](new LocalStrategy({'usernameField':_0x306d0b('0x18'),'passwordField':_0x306d0b('0x1d')},function(_0x23b360,_0x5f1b7b,_0x41be25){const _0x37ed85=_0x306d0b;return localAuthenticate(db[_0x37ed85('0x41')],_0x23b360,_0x5f1b7b,_0x41be25);})); \ No newline at end of file diff --git a/server/api/authLocal/index.js b/server/api/authLocal/index.js index a676f01..85f0108 100644 --- a/server/api/authLocal/index.js +++ b/server/api/authLocal/index.js @@ -1 +1 @@ -const a36_0x3a88=['Router','login','exports','/reset/:token','post','reset','forgot','express','./authLocal.controller','/forgot'];(function(_0x3b309f,_0x3a88a1){const _0x42ee9d=function(_0x2cb9fd){while(--_0x2cb9fd){_0x3b309f['push'](_0x3b309f['shift']());}};_0x42ee9d(++_0x3a88a1);}(a36_0x3a88,0x107));const a36_0x42ee=function(_0x3b309f,_0x3a88a1){_0x3b309f=_0x3b309f-0x0;let _0x42ee9d=a36_0x3a88[_0x3b309f];return _0x42ee9d;};const _0x59af3d=a36_0x42ee;'use strict';const express=require(_0x59af3d('0x4')),router=express[_0x59af3d('0x7')](),controller=require(_0x59af3d('0x5'));router[_0x59af3d('0x1')]('/',controller[_0x59af3d('0x8')]),router[_0x59af3d('0x1')](_0x59af3d('0x6'),controller[_0x59af3d('0x3')]),router[_0x59af3d('0x1')](_0x59af3d('0x0'),controller[_0x59af3d('0x2')]),module[_0x59af3d('0x9')]=router; \ No newline at end of file +const a36_0x57e5=['Router','./authLocal.controller','exports','post','reset'];(function(_0x18a32d,_0x57e5ef){const _0x80f8b0=function(_0x4ac531){while(--_0x4ac531){_0x18a32d['push'](_0x18a32d['shift']());}};_0x80f8b0(++_0x57e5ef);}(a36_0x57e5,0xd8));const a36_0x80f8=function(_0x18a32d,_0x57e5ef){_0x18a32d=_0x18a32d-0x0;let _0x80f8b0=a36_0x57e5[_0x18a32d];return _0x80f8b0;};const _0x387d50=a36_0x80f8;'use strict';const express=require('express'),router=express[_0x387d50('0x4')](),controller=require(_0x387d50('0x0'));router[_0x387d50('0x2')]('/',controller['login']),router[_0x387d50('0x2')]('/forgot',controller['forgot']),router[_0x387d50('0x2')]('/reset/:token',controller[_0x387d50('0x3')]),module[_0x387d50('0x1')]=router; \ No newline at end of file diff --git a/server/api/automation/automation.attributes.js b/server/api/automation/automation.attributes.js index 1763fea..0cbbe73 100644 --- a/server/api/automation/automation.attributes.js +++ b/server/api/automation/automation.attributes.js @@ -1 +1 @@ -const a37_0x567e=['STRING','INTEGER','BOOLEAN'];(function(_0xdb28e2,_0x567ed6){const _0x25cf66=function(_0x4a3d3d){while(--_0x4a3d3d){_0xdb28e2['push'](_0xdb28e2['shift']());}};_0x25cf66(++_0x567ed6);}(a37_0x567e,0x185));const a37_0x25cf=function(_0xdb28e2,_0x567ed6){_0xdb28e2=_0xdb28e2-0x0;let _0x25cf66=a37_0x567e[_0xdb28e2];return _0x25cf66;};const _0x3d5211=a37_0x25cf;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'channel':{'type':Sequelize[_0x3d5211('0x1')]},'description':{'type':Sequelize[_0x3d5211('0x1')]},'status':{'type':Sequelize[_0x3d5211('0x0')],'defaultValue':![]},'timeout':{'type':Sequelize[_0x3d5211('0x2')],'defaultValue':0xa}}; \ No newline at end of file +const a37_0x21fd=['INTEGER','STRING','BOOLEAN','sequelize'];(function(_0x2a126c,_0x21fd7f){const _0x3bdb73=function(_0x33169f){while(--_0x33169f){_0x2a126c['push'](_0x2a126c['shift']());}};_0x3bdb73(++_0x21fd7f);}(a37_0x21fd,0xb2));const a37_0x3bdb=function(_0x2a126c,_0x21fd7f){_0x2a126c=_0x2a126c-0x0;let _0x3bdb73=a37_0x21fd[_0x2a126c];return _0x3bdb73;};const _0x56fbd4=a37_0x3bdb;'use strict';const Sequelize=require(_0x56fbd4('0x1'));module['exports']={'name':{'type':Sequelize[_0x56fbd4('0x3')],'allowNull':![]},'channel':{'type':Sequelize[_0x56fbd4('0x3')]},'description':{'type':Sequelize[_0x56fbd4('0x3')]},'status':{'type':Sequelize[_0x56fbd4('0x0')],'defaultValue':![]},'timeout':{'type':Sequelize[_0x56fbd4('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 e4c0830..dbad9a3 100644 --- a/server/api/automation/automation.controller.js +++ b/server/api/automation/automation.controller.js @@ -1 +1 @@ -const a38_0x2b14=['ids','send','findOne','../../mysqldb','map','fields','rawAttributes','nolimit','limit','options','includeAll','update','status','count','api','params','sendStatus','end','Automation','length','stack','fieldName','show','Condition','filter','offset','keys','Content-Range','omit','type','undefined','filters','../../components/parsers/qs','pick','create','VIRTUAL','set','where','then','../../config/logger','error','getActions','addConditions','getConditions','key','sort','Action','query','rows','destroy','order','body','sequelize','attributes','like','catch','model','name','json','intersection','merge'];(function(_0x4576c6,_0x2b147b){const _0x5b291f=function(_0x53fc7b){while(--_0x53fc7b){_0x4576c6['push'](_0x4576c6['shift']());}};_0x5b291f(++_0x2b147b);}(a38_0x2b14,0x12d));const a38_0x5b29=function(_0x4576c6,_0x2b147b){_0x4576c6=_0x4576c6-0x0;let _0x5b291f=a38_0x2b14[_0x4576c6];return _0x5b291f;};const _0x516680=a38_0x5b29;'use strict';const _=require('lodash'),qs=require(_0x516680('0x24')),logger=require(_0x516680('0x2b'))(_0x516680('0x12')),db=require(_0x516680('0x7'))['db'],{Op}=require(_0x516680('0x38'));function respondWithResult(_0x53fc7b,_0x48b4ce){return _0x48b4ce=_0x48b4ce||0xc8,function(_0x57f95e){const _0x38d946=a38_0x5b29;if(_0x57f95e)return _0x53fc7b[_0x38d946('0x10')](_0x48b4ce)[_0x38d946('0x1')](_0x57f95e);};}function respondWithFilteredResult(_0xd3bc1b,_0x4077b7){return function(_0x9ece9b){const _0x1fcaac=a38_0x5b29;if(_0x9ece9b){const _0x206efc=_0x9ece9b[_0x1fcaac('0x11')],_0x117ca2=_0x4077b7[_0x1fcaac('0x1d')];let _0x557be2=_0x4077b7[_0x1fcaac('0x1d')]+_0x4077b7['limit'],_0x4cb733;return _0x557be2>=_0x206efc?(_0x557be2=_0x206efc,_0x4cb733=0xc8):_0x4cb733=0xce,_0xd3bc1b[_0x1fcaac('0x10')](_0x4cb733),_0xd3bc1b[_0x1fcaac('0x28')](_0x1fcaac('0x1f'),_0x117ca2+'-'+_0x557be2+'/'+_0x206efc)[_0x1fcaac('0x1')](_0x9ece9b);}return null;};}function saveUpdates(_0xa896f5){return function(_0x159850){const _0x254dfd=a38_0x5b29;if(_0x159850)return _0x159850['update'](_0xa896f5)[_0x254dfd('0x2a')](function(_0x69e1cb){return _0x69e1cb;});return null;};}function removeEntity(_0x50a9ea){return function(_0x76c7f7){const _0xa40b94=a38_0x5b29;if(_0x76c7f7)return _0x76c7f7['destroy']()[_0xa40b94('0x2a')](function(){const _0xc5ccd2=_0xa40b94;_0x50a9ea['status'](0xcc)[_0xc5ccd2('0x15')]();});};}function handleEntityNotFound(_0x266b8c){return function(_0x331d12){const _0x4ab791=a38_0x5b29;return!_0x331d12&&_0x266b8c[_0x4ab791('0x14')](0x194),_0x331d12;};}function handleError(_0x541559,_0x3c3bdf){return _0x3c3bdf=_0x3c3bdf||0x1f4,function(_0x75b8bf){const _0x83a5c5=a38_0x5b29;logger[_0x83a5c5('0x2c')](_0x75b8bf[_0x83a5c5('0x18')]),_0x75b8bf[_0x83a5c5('0x0')]&&delete _0x75b8bf[_0x83a5c5('0x0')],_0x541559[_0x83a5c5('0x10')](_0x3c3bdf)[_0x83a5c5('0x5')](_0x75b8bf);};}exports['index']=function(_0x1e8cc3,_0x5706c0){const _0x1b7075=_0x516680;let _0x4a2ecc={};const _0xe15cfa={},_0x441e1b={'count':0x0,'rows':[]},_0x46e8a5=_[_0x1b7075('0x8')](db['Automation'][_0x1b7075('0xa')],function(_0x3dac0f){const _0x4e5871=_0x1b7075;return{'name':_0x3dac0f[_0x4e5871('0x19')],'type':_0x3dac0f[_0x4e5871('0x21')][_0x4e5871('0x30')]};});_0xe15cfa[_0x1b7075('0x3c')]=_[_0x1b7075('0x8')](_0x46e8a5,_0x1b7075('0x0')),_0xe15cfa['query']=_['keys'](_0x1e8cc3['query']),_0xe15cfa[_0x1b7075('0x23')]=_['intersection'](_0xe15cfa[_0x1b7075('0x3c')],_0xe15cfa['query']),_0x4a2ecc[_0x1b7075('0x39')]=_[_0x1b7075('0x2')](_0xe15cfa[_0x1b7075('0x3c')],qs[_0x1b7075('0x9')](_0x1e8cc3['query'][_0x1b7075('0x9')])),_0x4a2ecc[_0x1b7075('0x39')]=_0x4a2ecc['attributes']['length']?_0x4a2ecc[_0x1b7075('0x39')]:_0xe15cfa['model'];typeof _0x1e8cc3['query'][_0x1b7075('0xb')]==='undefined'&&(_0x4a2ecc[_0x1b7075('0xc')]=qs[_0x1b7075('0xc')](_0x1e8cc3[_0x1b7075('0x33')][_0x1b7075('0xc')]),_0x4a2ecc[_0x1b7075('0x1d')]=qs[_0x1b7075('0x1d')](_0x1e8cc3[_0x1b7075('0x33')][_0x1b7075('0x1d')]));_0x4a2ecc['order']=qs[_0x1b7075('0x31')](_0x1e8cc3[_0x1b7075('0x33')][_0x1b7075('0x31')]),_0x4a2ecc[_0x1b7075('0x29')]=qs['filters'](_['pick'](_0x1e8cc3['query'],_0xe15cfa['filters']),_0x46e8a5);_0x1e8cc3[_0x1b7075('0x33')]['filter']&&(_0x4a2ecc[_0x1b7075('0x29')]=_[_0x1b7075('0x3')](_0x4a2ecc[_0x1b7075('0x29')],{[Op['or']]:_[_0x1b7075('0x8')](_0x46e8a5,function(_0x19953a){const _0x379795=_0x1b7075;if(_0x19953a[_0x379795('0x21')]!==_0x379795('0x27')){const _0x4acb64={};return _0x4acb64[_0x19953a[_0x379795('0x0')]]={[Op['like']]:'%'+_0x1e8cc3[_0x379795('0x33')][_0x379795('0x1c')]+'%'},_0x4acb64;}})}));_0x4a2ecc=_[_0x1b7075('0x3')]({},_0x4a2ecc,_0x1e8cc3[_0x1b7075('0xd')]);const _0x3a367f={'where':_0x4a2ecc[_0x1b7075('0x29')]};return db[_0x1b7075('0x16')][_0x1b7075('0x11')](_0x3a367f)[_0x1b7075('0x2a')](function(_0x38a4c1){const _0x4917e7=_0x1b7075;return _0x441e1b[_0x4917e7('0x11')]=_0x38a4c1,_0x1e8cc3[_0x4917e7('0x33')][_0x4917e7('0xe')]&&(_0x4a2ecc['include']=[{'all':!![]}]),db[_0x4917e7('0x16')]['findAll'](_0x4a2ecc);})['then'](function(_0x1d574e){const _0x5d880e=_0x1b7075;return _0x441e1b[_0x5d880e('0x34')]=_0x1d574e,_0x441e1b;})['then'](respondWithFilteredResult(_0x5706c0,_0x4a2ecc))['catch'](handleError(_0x5706c0,null));},exports[_0x516680('0x1a')]=function(_0xa9a746,_0x3c1e47){const _0x4d08ae=_0x516680;let _0xda1299={'raw':![],'where':{'id':_0xa9a746[_0x4d08ae('0x13')]['id']}};const _0x3f26c3={};return _0x3f26c3[_0x4d08ae('0x3c')]=_[_0x4d08ae('0x1e')](db['Automation'][_0x4d08ae('0xa')]),_0x3f26c3[_0x4d08ae('0x33')]=_[_0x4d08ae('0x1e')](_0xa9a746['query']),_0x3f26c3[_0x4d08ae('0x23')]=_[_0x4d08ae('0x2')](_0x3f26c3[_0x4d08ae('0x3c')],_0x3f26c3[_0x4d08ae('0x33')]),_0xda1299[_0x4d08ae('0x39')]=_[_0x4d08ae('0x2')](_0x3f26c3[_0x4d08ae('0x3c')],qs['fields'](_0xa9a746[_0x4d08ae('0x33')]['fields'])),_0xda1299['attributes']=_0xda1299[_0x4d08ae('0x39')][_0x4d08ae('0x17')]?_0xda1299['attributes']:_0x3f26c3['model'],_0xa9a746[_0x4d08ae('0x33')][_0x4d08ae('0xe')]&&(_0xda1299['include']=[{'all':!![]}]),_0xda1299=_[_0x4d08ae('0x3')]({},_0xda1299,_0xa9a746['options']),db[_0x4d08ae('0x16')]['findOne'](_0xda1299)['then'](handleEntityNotFound(_0x3c1e47,null))[_0x4d08ae('0x2a')](respondWithResult(_0x3c1e47,null))['catch'](handleError(_0x3c1e47,null));},exports[_0x516680('0x26')]=function(_0x245bd9,_0xfee0ae){const _0x45103b=_0x516680;return db[_0x45103b('0x16')][_0x45103b('0x26')](_0x245bd9['body'],{})[_0x45103b('0x2a')](respondWithResult(_0xfee0ae,0xc9))['catch'](handleError(_0xfee0ae,null));},exports[_0x516680('0xf')]=function(_0x5e66cd,_0x7b565b){const _0x4a6e38=_0x516680;return _0x5e66cd['body']['id']&&delete _0x5e66cd[_0x4a6e38('0x37')]['id'],db[_0x4a6e38('0x16')]['findOne']({'where':{'id':_0x5e66cd['params']['id']}})[_0x4a6e38('0x2a')](handleEntityNotFound(_0x7b565b,null))[_0x4a6e38('0x2a')](saveUpdates(_0x5e66cd['body'],null))['then'](respondWithResult(_0x7b565b,null))[_0x4a6e38('0x3b')](handleError(_0x7b565b,null));},exports[_0x516680('0x35')]=function(_0x3a22b2,_0xc2b9ae){const _0x4eb2ae=_0x516680;return db[_0x4eb2ae('0x16')][_0x4eb2ae('0x6')]({'where':{'id':_0x3a22b2[_0x4eb2ae('0x13')]['id']}})[_0x4eb2ae('0x2a')](handleEntityNotFound(_0xc2b9ae,null))['then'](removeEntity(_0xc2b9ae,null))[_0x4eb2ae('0x3b')](handleError(_0xc2b9ae,null));},exports[_0x516680('0x2e')]=function(_0x514339,_0x158849){const _0x5c55b2=_0x516680;return db[_0x5c55b2('0x1b')][_0x5c55b2('0x6')]({'where':{'id':_0x514339[_0x5c55b2('0x13')]['id']}})[_0x5c55b2('0x2a')](function(_0xa175aa){const _0x525912=_0x5c55b2;if(_0xa175aa)return _0xa175aa[_0x525912('0x2e')](_0x514339[_0x525912('0x37')][_0x525912('0x4')],{'through':_[_0x525912('0x20')](_0x514339['body'],[_0x525912('0x4'),'id'])});})[_0x5c55b2('0x2a')](respondWithResult(_0x158849,null))['catch'](handleError(_0x158849,null));},exports[_0x516680('0x2f')]=function(_0x124930,_0x904765){const _0x598dd2=_0x516680;let _0x4fb5c7={};const _0x40df38={};let _0x4df1df,_0x45c2de;return db[_0x598dd2('0x16')][_0x598dd2('0x6')]({'where':{'id':_0x124930[_0x598dd2('0x13')]['id']}})['then'](handleEntityNotFound(_0x904765,null))['then'](function(_0x4597a5){const _0x4cfd3d=_0x598dd2;if(_0x4597a5)return _0x4df1df=_0x4597a5,_0x40df38[_0x4cfd3d('0x3c')]=_[_0x4cfd3d('0x1e')](db[_0x4cfd3d('0x1b')][_0x4cfd3d('0xa')]),_0x40df38[_0x4cfd3d('0x33')]=_[_0x4cfd3d('0x1e')](_0x124930[_0x4cfd3d('0x33')]),_0x40df38[_0x4cfd3d('0x23')]=_['intersection'](_0x40df38[_0x4cfd3d('0x3c')],_0x40df38[_0x4cfd3d('0x33')]),_0x4fb5c7[_0x4cfd3d('0x39')]=_['intersection'](_0x40df38[_0x4cfd3d('0x3c')],qs['fields'](_0x124930[_0x4cfd3d('0x33')]['fields'])),_0x4fb5c7[_0x4cfd3d('0x39')]=_0x4fb5c7[_0x4cfd3d('0x39')]['length']?_0x4fb5c7[_0x4cfd3d('0x39')]:_0x40df38[_0x4cfd3d('0x3c')],_0x4fb5c7[_0x4cfd3d('0x36')]=qs[_0x4cfd3d('0x31')](_0x124930['query'][_0x4cfd3d('0x31')]),_0x4fb5c7['where']=qs[_0x4cfd3d('0x23')](_[_0x4cfd3d('0x25')](_0x124930[_0x4cfd3d('0x33')],_0x40df38[_0x4cfd3d('0x23')])),_0x124930[_0x4cfd3d('0x33')][_0x4cfd3d('0x1c')]&&(_0x4fb5c7[_0x4cfd3d('0x29')]=_[_0x4cfd3d('0x3')](_0x4fb5c7['where'],{[Op['or']]:_[_0x4cfd3d('0x8')](_0x4fb5c7[_0x4cfd3d('0x39')],function(_0xb76f62){const _0x2ea40f=_0x4cfd3d,_0x2df9a4={};return _0x2df9a4[_0xb76f62]={[Op[_0x2ea40f('0x3a')]]:'%'+_0x124930[_0x2ea40f('0x33')][_0x2ea40f('0x1c')]+'%'},_0x2df9a4;})})),_0x4fb5c7=_[_0x4cfd3d('0x3')]({},_0x4fb5c7,_0x124930[_0x4cfd3d('0xd')]),_0x4df1df[_0x4cfd3d('0x2f')](_0x4fb5c7);})['then'](function(_0x173f2a){const _0x1f5e4f=_0x598dd2;if(_0x173f2a)return _0x45c2de=_0x173f2a[_0x1f5e4f('0x17')],typeof _0x124930['query'][_0x1f5e4f('0xb')]===_0x1f5e4f('0x22')&&(_0x4fb5c7[_0x1f5e4f('0xc')]=qs[_0x1f5e4f('0xc')](_0x124930[_0x1f5e4f('0x33')][_0x1f5e4f('0xc')]),_0x4fb5c7[_0x1f5e4f('0x1d')]=qs[_0x1f5e4f('0x1d')](_0x124930['query'][_0x1f5e4f('0x1d')])),_0x4df1df[_0x1f5e4f('0x2f')](_0x4fb5c7);})['then'](function(_0x304079){if(_0x304079)return _0x304079?{'count':_0x45c2de,'rows':_0x304079}:null;})[_0x598dd2('0x2a')](respondWithResult(_0x904765,null))[_0x598dd2('0x3b')](handleError(_0x904765,null));},exports['addActions']=function(_0x272908,_0x7aafbc){const _0xb9f137=_0x516680;return db[_0xb9f137('0x32')]['findOne']({'where':{'id':_0x272908[_0xb9f137('0x13')]['id']}})['then'](function(_0x3d64e2){const _0x396755=_0xb9f137;if(_0x3d64e2)return _0x3d64e2['addActions'](_0x272908['body'][_0x396755('0x4')],{'through':_['omit'](_0x272908['body'],['ids','id'])});})[_0xb9f137('0x2a')](respondWithResult(_0x7aafbc,null))[_0xb9f137('0x3b')](handleError(_0x7aafbc,null));},exports[_0x516680('0x2d')]=function(_0x4c1efa,_0x331f1e){const _0x31da4d=_0x516680;let _0xb57a79={};const _0x59b3d0={};let _0x89aef5,_0x49a765;return db[_0x31da4d('0x16')]['findOne']({'where':{'id':_0x4c1efa[_0x31da4d('0x13')]['id']}})[_0x31da4d('0x2a')](handleEntityNotFound(_0x331f1e,null))[_0x31da4d('0x2a')](function(_0x38d146){const _0x4d6640=_0x31da4d;if(_0x38d146)return _0x89aef5=_0x38d146,_0x59b3d0[_0x4d6640('0x3c')]=_[_0x4d6640('0x1e')](db[_0x4d6640('0x32')][_0x4d6640('0xa')]),_0x59b3d0[_0x4d6640('0x33')]=_['keys'](_0x4c1efa[_0x4d6640('0x33')]),_0x59b3d0[_0x4d6640('0x23')]=_[_0x4d6640('0x2')](_0x59b3d0[_0x4d6640('0x3c')],_0x59b3d0['query']),_0xb57a79[_0x4d6640('0x39')]=_['intersection'](_0x59b3d0[_0x4d6640('0x3c')],qs[_0x4d6640('0x9')](_0x4c1efa['query'][_0x4d6640('0x9')])),_0xb57a79['attributes']=_0xb57a79['attributes']['length']?_0xb57a79[_0x4d6640('0x39')]:_0x59b3d0[_0x4d6640('0x3c')],_0xb57a79['order']=qs['sort'](_0x4c1efa[_0x4d6640('0x33')]['sort']),_0xb57a79[_0x4d6640('0x29')]=qs['filters'](_[_0x4d6640('0x25')](_0x4c1efa[_0x4d6640('0x33')],_0x59b3d0[_0x4d6640('0x23')])),_0x4c1efa['query']['filter']&&(_0xb57a79[_0x4d6640('0x29')]=_[_0x4d6640('0x3')](_0xb57a79['where'],{[Op['or']]:_[_0x4d6640('0x8')](_0xb57a79[_0x4d6640('0x39')],function(_0xe07cd3){const _0x11a848=_0x4d6640,_0x5be14a={};return _0x5be14a[_0xe07cd3]={[Op[_0x11a848('0x3a')]]:'%'+_0x4c1efa['query']['filter']+'%'},_0x5be14a;})})),_0xb57a79=_[_0x4d6640('0x3')]({},_0xb57a79,_0x4c1efa['options']),_0x89aef5[_0x4d6640('0x2d')](_0xb57a79);})['then'](function(_0x696294){const _0x13fd6c=_0x31da4d;if(_0x696294)return _0x49a765=_0x696294['length'],typeof _0x4c1efa['query'][_0x13fd6c('0xb')]==='undefined'&&(_0xb57a79[_0x13fd6c('0xc')]=qs[_0x13fd6c('0xc')](_0x4c1efa[_0x13fd6c('0x33')][_0x13fd6c('0xc')]),_0xb57a79[_0x13fd6c('0x1d')]=qs[_0x13fd6c('0x1d')](_0x4c1efa[_0x13fd6c('0x33')]['offset'])),_0x89aef5['getActions'](_0xb57a79);})[_0x31da4d('0x2a')](function(_0x7e01dc){if(_0x7e01dc)return _0x7e01dc?{'count':_0x49a765,'rows':_0x7e01dc}:null;})[_0x31da4d('0x2a')](respondWithResult(_0x331f1e,null))[_0x31da4d('0x3b')](handleError(_0x331f1e,null));}; \ No newline at end of file +const a38_0x28e1=['ids','findOne','destroy','count','sort','then','end','map','index','sequelize','../../mysqldb','options','limit','json','Action','getActions','getConditions','api','catch','sendStatus','order','nolimit','status','error','attributes','findAll','params','fields','offset','show','undefined','length','merge','where','query','key','rawAttributes','Condition','set','include','body','like','filter','addActions','update','lodash','Automation','../../config/logger','intersection','create','model','keys','omit','name','VIRTUAL','pick','type','stack','filters'];(function(_0x389bfc,_0x28e143){const _0x3a8edf=function(_0x5f390a){while(--_0x5f390a){_0x389bfc['push'](_0x389bfc['shift']());}};_0x3a8edf(++_0x28e143);}(a38_0x28e1,0x17f));const a38_0x3a8e=function(_0x389bfc,_0x28e143){_0x389bfc=_0x389bfc-0x0;let _0x3a8edf=a38_0x28e1[_0x389bfc];return _0x3a8edf;};const _0x205254=a38_0x3a8e;'use strict';const _=require(_0x205254('0x10')),qs=require('../../components/parsers/qs'),logger=require(_0x205254('0x12'))(_0x205254('0x2f')),db=require(_0x205254('0x28'))['db'],{Op}=require(_0x205254('0x27'));function respondWithResult(_0x5f390a,_0x589314){return _0x589314=_0x589314||0xc8,function(_0x1e24af){const _0x279095=a38_0x3a8e;if(_0x1e24af)return _0x5f390a[_0x279095('0x34')](_0x589314)[_0x279095('0x2b')](_0x1e24af);};}function respondWithFilteredResult(_0x596e6c,_0x53a896){return function(_0x338ae0){const _0x3c4148=a38_0x3a8e;if(_0x338ae0){const _0x1024c2=_0x338ae0[_0x3c4148('0x21')],_0x512431=_0x53a896[_0x3c4148('0x3a')];let _0x10e257=_0x53a896['offset']+_0x53a896['limit'],_0x588d6b;return _0x10e257>=_0x1024c2?(_0x10e257=_0x1024c2,_0x588d6b=0xc8):_0x588d6b=0xce,_0x596e6c['status'](_0x588d6b),_0x596e6c[_0x3c4148('0x9')]('Content-Range',_0x512431+'-'+_0x10e257+'/'+_0x1024c2)[_0x3c4148('0x2b')](_0x338ae0);}return null;};}function saveUpdates(_0x39aa65){return function(_0x3e4f09){const _0x5a7622=a38_0x3a8e;if(_0x3e4f09)return _0x3e4f09[_0x5a7622('0xf')](_0x39aa65)['then'](function(_0x52e80c){return _0x52e80c;});return null;};}function removeEntity(_0x16073f){return function(_0x5e4cc9){const _0x5d2dcf=a38_0x3a8e;if(_0x5e4cc9)return _0x5e4cc9[_0x5d2dcf('0x20')]()['then'](function(){const _0x304cb0=_0x5d2dcf;_0x16073f[_0x304cb0('0x34')](0xcc)[_0x304cb0('0x24')]();});};}function handleEntityNotFound(_0x33c621){return function(_0x1e1efa){const _0x37cbec=a38_0x3a8e;return!_0x1e1efa&&_0x33c621[_0x37cbec('0x31')](0x194),_0x1e1efa;};}function handleError(_0x3453a9,_0x3b8a17){return _0x3b8a17=_0x3b8a17||0x1f4,function(_0xf5be24){const _0x4a2460=a38_0x3a8e;logger[_0x4a2460('0x35')](_0xf5be24[_0x4a2460('0x1c')]),_0xf5be24[_0x4a2460('0x18')]&&delete _0xf5be24[_0x4a2460('0x18')],_0x3453a9[_0x4a2460('0x34')](_0x3b8a17)['send'](_0xf5be24);};}exports[_0x205254('0x26')]=function(_0x15a1ed,_0x407dd5){const _0x210d6b=_0x205254;let _0x519413={};const _0x3c3a32={},_0x55b617={'count':0x0,'rows':[]},_0x4412e3=_[_0x210d6b('0x25')](db[_0x210d6b('0x11')]['rawAttributes'],function(_0x3e5426){const _0x1a7e34=_0x210d6b;return{'name':_0x3e5426['fieldName'],'type':_0x3e5426[_0x1a7e34('0x1b')][_0x1a7e34('0x6')]};});_0x3c3a32[_0x210d6b('0x15')]=_[_0x210d6b('0x25')](_0x4412e3,_0x210d6b('0x18')),_0x3c3a32[_0x210d6b('0x5')]=_[_0x210d6b('0x16')](_0x15a1ed[_0x210d6b('0x5')]),_0x3c3a32[_0x210d6b('0x1d')]=_[_0x210d6b('0x13')](_0x3c3a32[_0x210d6b('0x15')],_0x3c3a32[_0x210d6b('0x5')]),_0x519413['attributes']=_['intersection'](_0x3c3a32[_0x210d6b('0x15')],qs[_0x210d6b('0x39')](_0x15a1ed[_0x210d6b('0x5')]['fields'])),_0x519413['attributes']=_0x519413[_0x210d6b('0x36')]['length']?_0x519413[_0x210d6b('0x36')]:_0x3c3a32['model'];typeof _0x15a1ed[_0x210d6b('0x5')]['nolimit']===_0x210d6b('0x1')&&(_0x519413[_0x210d6b('0x2a')]=qs[_0x210d6b('0x2a')](_0x15a1ed[_0x210d6b('0x5')][_0x210d6b('0x2a')]),_0x519413[_0x210d6b('0x3a')]=qs[_0x210d6b('0x3a')](_0x15a1ed[_0x210d6b('0x5')][_0x210d6b('0x3a')]));_0x519413[_0x210d6b('0x32')]=qs[_0x210d6b('0x22')](_0x15a1ed[_0x210d6b('0x5')][_0x210d6b('0x22')]),_0x519413['where']=qs[_0x210d6b('0x1d')](_[_0x210d6b('0x1a')](_0x15a1ed[_0x210d6b('0x5')],_0x3c3a32[_0x210d6b('0x1d')]),_0x4412e3);_0x15a1ed[_0x210d6b('0x5')][_0x210d6b('0xd')]&&(_0x519413[_0x210d6b('0x4')]=_[_0x210d6b('0x3')](_0x519413[_0x210d6b('0x4')],{[Op['or']]:_[_0x210d6b('0x25')](_0x4412e3,function(_0x4b91e4){const _0x3f37c2=_0x210d6b;if(_0x4b91e4['type']!==_0x3f37c2('0x19')){const _0x55e18c={};return _0x55e18c[_0x4b91e4[_0x3f37c2('0x18')]]={[Op[_0x3f37c2('0xc')]]:'%'+_0x15a1ed[_0x3f37c2('0x5')][_0x3f37c2('0xd')]+'%'},_0x55e18c;}})}));_0x519413=_['merge']({},_0x519413,_0x15a1ed[_0x210d6b('0x29')]);const _0x1818f1={'where':_0x519413[_0x210d6b('0x4')]};return db[_0x210d6b('0x11')][_0x210d6b('0x21')](_0x1818f1)[_0x210d6b('0x23')](function(_0x2c54ac){const _0xfeb9a3=_0x210d6b;return _0x55b617[_0xfeb9a3('0x21')]=_0x2c54ac,_0x15a1ed['query']['includeAll']&&(_0x519413[_0xfeb9a3('0xa')]=[{'all':!![]}]),db[_0xfeb9a3('0x11')][_0xfeb9a3('0x37')](_0x519413);})['then'](function(_0x2a5ba9){return _0x55b617['rows']=_0x2a5ba9,_0x55b617;})[_0x210d6b('0x23')](respondWithFilteredResult(_0x407dd5,_0x519413))[_0x210d6b('0x30')](handleError(_0x407dd5,null));},exports[_0x205254('0x0')]=function(_0x348bb2,_0x390d87){const _0x2a16e5=_0x205254;let _0x5a833d={'raw':![],'where':{'id':_0x348bb2[_0x2a16e5('0x38')]['id']}};const _0x2153f2={};return _0x2153f2[_0x2a16e5('0x15')]=_[_0x2a16e5('0x16')](db[_0x2a16e5('0x11')][_0x2a16e5('0x7')]),_0x2153f2['query']=_[_0x2a16e5('0x16')](_0x348bb2[_0x2a16e5('0x5')]),_0x2153f2[_0x2a16e5('0x1d')]=_['intersection'](_0x2153f2[_0x2a16e5('0x15')],_0x2153f2[_0x2a16e5('0x5')]),_0x5a833d[_0x2a16e5('0x36')]=_[_0x2a16e5('0x13')](_0x2153f2[_0x2a16e5('0x15')],qs[_0x2a16e5('0x39')](_0x348bb2['query'][_0x2a16e5('0x39')])),_0x5a833d['attributes']=_0x5a833d['attributes']['length']?_0x5a833d[_0x2a16e5('0x36')]:_0x2153f2[_0x2a16e5('0x15')],_0x348bb2[_0x2a16e5('0x5')]['includeAll']&&(_0x5a833d[_0x2a16e5('0xa')]=[{'all':!![]}]),_0x5a833d=_[_0x2a16e5('0x3')]({},_0x5a833d,_0x348bb2[_0x2a16e5('0x29')]),db[_0x2a16e5('0x11')][_0x2a16e5('0x1f')](_0x5a833d)['then'](handleEntityNotFound(_0x390d87,null))[_0x2a16e5('0x23')](respondWithResult(_0x390d87,null))['catch'](handleError(_0x390d87,null));},exports[_0x205254('0x14')]=function(_0x231f93,_0x53922a){const _0x2540e1=_0x205254;return db['Automation'][_0x2540e1('0x14')](_0x231f93['body'],{})['then'](respondWithResult(_0x53922a,0xc9))[_0x2540e1('0x30')](handleError(_0x53922a,null));},exports[_0x205254('0xf')]=function(_0x2b3357,_0x1731d1){const _0x3a705b=_0x205254;return _0x2b3357[_0x3a705b('0xb')]['id']&&delete _0x2b3357[_0x3a705b('0xb')]['id'],db[_0x3a705b('0x11')][_0x3a705b('0x1f')]({'where':{'id':_0x2b3357[_0x3a705b('0x38')]['id']}})[_0x3a705b('0x23')](handleEntityNotFound(_0x1731d1,null))[_0x3a705b('0x23')](saveUpdates(_0x2b3357['body'],null))[_0x3a705b('0x23')](respondWithResult(_0x1731d1,null))[_0x3a705b('0x30')](handleError(_0x1731d1,null));},exports[_0x205254('0x20')]=function(_0x408be2,_0x4eca9d){const _0x369333=_0x205254;return db[_0x369333('0x11')][_0x369333('0x1f')]({'where':{'id':_0x408be2[_0x369333('0x38')]['id']}})[_0x369333('0x23')](handleEntityNotFound(_0x4eca9d,null))[_0x369333('0x23')](removeEntity(_0x4eca9d,null))[_0x369333('0x30')](handleError(_0x4eca9d,null));},exports['addConditions']=function(_0x199e46,_0x446311){const _0x1ab3e5=_0x205254;return db[_0x1ab3e5('0x8')][_0x1ab3e5('0x1f')]({'where':{'id':_0x199e46[_0x1ab3e5('0x38')]['id']}})[_0x1ab3e5('0x23')](function(_0x17bd46){const _0x5f185d=_0x1ab3e5;if(_0x17bd46)return _0x17bd46['addConditions'](_0x199e46['body'][_0x5f185d('0x1e')],{'through':_[_0x5f185d('0x17')](_0x199e46['body'],[_0x5f185d('0x1e'),'id'])});})[_0x1ab3e5('0x23')](respondWithResult(_0x446311,null))[_0x1ab3e5('0x30')](handleError(_0x446311,null));},exports[_0x205254('0x2e')]=function(_0x2c7699,_0x5445ea){const _0x1d5a35=_0x205254;let _0x2ac4ee={};const _0x42ed08={};let _0x47de42,_0x441059;return db[_0x1d5a35('0x11')][_0x1d5a35('0x1f')]({'where':{'id':_0x2c7699[_0x1d5a35('0x38')]['id']}})[_0x1d5a35('0x23')](handleEntityNotFound(_0x5445ea,null))['then'](function(_0xd6d5ef){const _0x205978=_0x1d5a35;if(_0xd6d5ef)return _0x47de42=_0xd6d5ef,_0x42ed08[_0x205978('0x15')]=_[_0x205978('0x16')](db[_0x205978('0x8')][_0x205978('0x7')]),_0x42ed08[_0x205978('0x5')]=_[_0x205978('0x16')](_0x2c7699[_0x205978('0x5')]),_0x42ed08[_0x205978('0x1d')]=_['intersection'](_0x42ed08[_0x205978('0x15')],_0x42ed08['query']),_0x2ac4ee[_0x205978('0x36')]=_[_0x205978('0x13')](_0x42ed08[_0x205978('0x15')],qs[_0x205978('0x39')](_0x2c7699[_0x205978('0x5')]['fields'])),_0x2ac4ee[_0x205978('0x36')]=_0x2ac4ee['attributes'][_0x205978('0x2')]?_0x2ac4ee['attributes']:_0x42ed08[_0x205978('0x15')],_0x2ac4ee[_0x205978('0x32')]=qs[_0x205978('0x22')](_0x2c7699[_0x205978('0x5')]['sort']),_0x2ac4ee['where']=qs[_0x205978('0x1d')](_['pick'](_0x2c7699[_0x205978('0x5')],_0x42ed08['filters'])),_0x2c7699[_0x205978('0x5')][_0x205978('0xd')]&&(_0x2ac4ee[_0x205978('0x4')]=_[_0x205978('0x3')](_0x2ac4ee[_0x205978('0x4')],{[Op['or']]:_[_0x205978('0x25')](_0x2ac4ee[_0x205978('0x36')],function(_0x48a678){const _0x54d820=_0x205978,_0x43d917={};return _0x43d917[_0x48a678]={[Op[_0x54d820('0xc')]]:'%'+_0x2c7699[_0x54d820('0x5')][_0x54d820('0xd')]+'%'},_0x43d917;})})),_0x2ac4ee=_[_0x205978('0x3')]({},_0x2ac4ee,_0x2c7699['options']),_0x47de42[_0x205978('0x2e')](_0x2ac4ee);})[_0x1d5a35('0x23')](function(_0x1f244e){const _0x48dae8=_0x1d5a35;if(_0x1f244e)return _0x441059=_0x1f244e[_0x48dae8('0x2')],typeof _0x2c7699['query'][_0x48dae8('0x33')]==='undefined'&&(_0x2ac4ee['limit']=qs[_0x48dae8('0x2a')](_0x2c7699[_0x48dae8('0x5')][_0x48dae8('0x2a')]),_0x2ac4ee[_0x48dae8('0x3a')]=qs[_0x48dae8('0x3a')](_0x2c7699[_0x48dae8('0x5')][_0x48dae8('0x3a')])),_0x47de42[_0x48dae8('0x2e')](_0x2ac4ee);})[_0x1d5a35('0x23')](function(_0x2dada2){if(_0x2dada2)return _0x2dada2?{'count':_0x441059,'rows':_0x2dada2}:null;})['then'](respondWithResult(_0x5445ea,null))[_0x1d5a35('0x30')](handleError(_0x5445ea,null));},exports['addActions']=function(_0x3d5819,_0x443626){const _0x5ab088=_0x205254;return db['Action'][_0x5ab088('0x1f')]({'where':{'id':_0x3d5819[_0x5ab088('0x38')]['id']}})[_0x5ab088('0x23')](function(_0x175b91){const _0x1a1c39=_0x5ab088;if(_0x175b91)return _0x175b91[_0x1a1c39('0xe')](_0x3d5819['body'][_0x1a1c39('0x1e')],{'through':_[_0x1a1c39('0x17')](_0x3d5819[_0x1a1c39('0xb')],[_0x1a1c39('0x1e'),'id'])});})['then'](respondWithResult(_0x443626,null))[_0x5ab088('0x30')](handleError(_0x443626,null));},exports['getActions']=function(_0x4c1b66,_0x5ee6a2){const _0x17c193=_0x205254;let _0x489375={};const _0x1290b2={};let _0x496687,_0x763462;return db[_0x17c193('0x11')][_0x17c193('0x1f')]({'where':{'id':_0x4c1b66[_0x17c193('0x38')]['id']}})['then'](handleEntityNotFound(_0x5ee6a2,null))[_0x17c193('0x23')](function(_0x5f35cf){const _0xdaeb74=_0x17c193;if(_0x5f35cf)return _0x496687=_0x5f35cf,_0x1290b2[_0xdaeb74('0x15')]=_[_0xdaeb74('0x16')](db[_0xdaeb74('0x2c')][_0xdaeb74('0x7')]),_0x1290b2[_0xdaeb74('0x5')]=_[_0xdaeb74('0x16')](_0x4c1b66[_0xdaeb74('0x5')]),_0x1290b2[_0xdaeb74('0x1d')]=_[_0xdaeb74('0x13')](_0x1290b2['model'],_0x1290b2[_0xdaeb74('0x5')]),_0x489375[_0xdaeb74('0x36')]=_[_0xdaeb74('0x13')](_0x1290b2['model'],qs[_0xdaeb74('0x39')](_0x4c1b66[_0xdaeb74('0x5')][_0xdaeb74('0x39')])),_0x489375['attributes']=_0x489375['attributes'][_0xdaeb74('0x2')]?_0x489375['attributes']:_0x1290b2[_0xdaeb74('0x15')],_0x489375[_0xdaeb74('0x32')]=qs[_0xdaeb74('0x22')](_0x4c1b66[_0xdaeb74('0x5')][_0xdaeb74('0x22')]),_0x489375[_0xdaeb74('0x4')]=qs[_0xdaeb74('0x1d')](_['pick'](_0x4c1b66[_0xdaeb74('0x5')],_0x1290b2[_0xdaeb74('0x1d')])),_0x4c1b66[_0xdaeb74('0x5')]['filter']&&(_0x489375[_0xdaeb74('0x4')]=_[_0xdaeb74('0x3')](_0x489375['where'],{[Op['or']]:_['map'](_0x489375['attributes'],function(_0x43ce08){const _0x493907=_0xdaeb74,_0x37c4f2={};return _0x37c4f2[_0x43ce08]={[Op['like']]:'%'+_0x4c1b66[_0x493907('0x5')][_0x493907('0xd')]+'%'},_0x37c4f2;})})),_0x489375=_[_0xdaeb74('0x3')]({},_0x489375,_0x4c1b66['options']),_0x496687[_0xdaeb74('0x2d')](_0x489375);})[_0x17c193('0x23')](function(_0x19a549){const _0x5d7d8b=_0x17c193;if(_0x19a549)return _0x763462=_0x19a549[_0x5d7d8b('0x2')],typeof _0x4c1b66[_0x5d7d8b('0x5')][_0x5d7d8b('0x33')]==='undefined'&&(_0x489375[_0x5d7d8b('0x2a')]=qs[_0x5d7d8b('0x2a')](_0x4c1b66['query'][_0x5d7d8b('0x2a')]),_0x489375[_0x5d7d8b('0x3a')]=qs[_0x5d7d8b('0x3a')](_0x4c1b66[_0x5d7d8b('0x5')][_0x5d7d8b('0x3a')])),_0x496687[_0x5d7d8b('0x2d')](_0x489375);})['then'](function(_0x5a9fe3){if(_0x5a9fe3)return _0x5a9fe3?{'count':_0x763462,'rows':_0x5a9fe3}:null;})['then'](respondWithResult(_0x5ee6a2,null))[_0x17c193('0x30')](handleError(_0x5ee6a2,null));}; \ No newline at end of file diff --git a/server/api/automation/automation.model.js b/server/api/automation/automation.model.js index 3bf9816..2af393d 100644 --- a/server/api/automation/automation.model.js +++ b/server/api/automation/automation.model.js @@ -1 +1 @@ -const a39_0x1bd8=['tools_automations'];(function(_0x1ca8cf,_0x1bd80c){const _0xbae20e=function(_0x36ff50){while(--_0x36ff50){_0x1ca8cf['push'](_0x1ca8cf['shift']());}};_0xbae20e(++_0x1bd80c);}(a39_0x1bd8,0x1cf));const a39_0xbae2=function(_0x1ca8cf,_0x1bd80c){_0x1ca8cf=_0x1ca8cf-0x0;let _0xbae20e=a39_0x1bd8[_0x1ca8cf];return _0xbae20e;};'use strict';const attributes=require('./automation.attributes');module['exports']=function(_0x36ff50){const _0x17da35=a39_0xbae2,_0x56c0b5=_0x36ff50['define']('Automation',attributes,{'tableName':_0x17da35('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x56c0b5;}; \ No newline at end of file +const a39_0x4d25=['tools_automations','Automation','exports','define'];(function(_0x482e6d,_0x4d25f1){const _0x456f73=function(_0x4203e3){while(--_0x4203e3){_0x482e6d['push'](_0x482e6d['shift']());}};_0x456f73(++_0x4d25f1);}(a39_0x4d25,0x169));const a39_0x456f=function(_0x482e6d,_0x4d25f1){_0x482e6d=_0x482e6d-0x0;let _0x456f73=a39_0x4d25[_0x482e6d];return _0x456f73;};const _0x2fa614=a39_0x456f;'use strict';const attributes=require('./automation.attributes');module[_0x2fa614('0x1')]=function(_0x4203e3){const _0x3055d5=_0x2fa614,_0x39f064=_0x4203e3[_0x3055d5('0x2')](_0x3055d5('0x0'),attributes,{'tableName':_0x3055d5('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x39f064;}; \ No newline at end of file diff --git a/server/api/automation/index.js b/server/api/automation/index.js index 1231223..4f4a75d 100644 --- a/server/api/automation/index.js +++ b/server/api/automation/index.js @@ -1 +1 @@ -const a40_0x9483=['update','./automation.controller','/:id/actions','destroy','delete','/:id/conditions','isAuthenticated','getActions','post','/:id','show','getConditions','Router','put','get','addActions','../../components/auth/service','index','create','addConditions'];(function(_0x4f11f0,_0x94833d){const _0x113464=function(_0x5cb7f0){while(--_0x5cb7f0){_0x4f11f0['push'](_0x4f11f0['shift']());}};_0x113464(++_0x94833d);}(a40_0x9483,0x110));const a40_0x1134=function(_0x4f11f0,_0x94833d){_0x4f11f0=_0x4f11f0-0x0;let _0x113464=a40_0x9483[_0x4f11f0];return _0x113464;};const _0xa0293a=a40_0x1134;'use strict';const express=require('express'),router=express[_0xa0293a('0x0')](),auth=require(_0xa0293a('0x4')),controller=require(_0xa0293a('0x9'));router[_0xa0293a('0x2')]('/',auth[_0xa0293a('0xe')](),controller[_0xa0293a('0x5')]),router['get'](_0xa0293a('0x11'),auth[_0xa0293a('0xe')](),controller[_0xa0293a('0x12')]),router[_0xa0293a('0x2')]('/:id/conditions',auth[_0xa0293a('0xe')](),controller[_0xa0293a('0x13')]),router[_0xa0293a('0x2')](_0xa0293a('0xa'),auth['isAuthenticated'](),controller[_0xa0293a('0xf')]),router['post']('/',auth[_0xa0293a('0xe')](),controller[_0xa0293a('0x6')]),router[_0xa0293a('0x10')](_0xa0293a('0xd'),auth[_0xa0293a('0xe')](),controller[_0xa0293a('0x7')]),router[_0xa0293a('0x10')](_0xa0293a('0xa'),auth[_0xa0293a('0xe')](),controller[_0xa0293a('0x3')]),router[_0xa0293a('0x1')]('/:id',auth['isAuthenticated'](),controller[_0xa0293a('0x8')]),router[_0xa0293a('0xc')](_0xa0293a('0x11'),auth['isAuthenticated'](),controller[_0xa0293a('0xb')]),module['exports']=router; \ No newline at end of file +const a40_0x214a=['Router','put','isAuthenticated','express','index','/:id','post','destroy','show','/:id/conditions','addConditions','get','addActions','/:id/actions','delete','../../components/auth/service','update','exports'];(function(_0x1f5010,_0x214aac){const _0xe9d535=function(_0x1d01ad){while(--_0x1d01ad){_0x1f5010['push'](_0x1f5010['shift']());}};_0xe9d535(++_0x214aac);}(a40_0x214a,0xc0));const a40_0xe9d5=function(_0x1f5010,_0x214aac){_0x1f5010=_0x1f5010-0x0;let _0xe9d535=a40_0x214a[_0x1f5010];return _0xe9d535;};const _0xe8e852=a40_0xe9d5;'use strict';const express=require(_0xe8e852('0x9')),router=express[_0xe8e852('0x6')](),auth=require(_0xe8e852('0x3')),controller=require('./automation.controller');router['get']('/',auth[_0xe8e852('0x8')](),controller[_0xe8e852('0xa')]),router[_0xe8e852('0x11')]('/:id',auth[_0xe8e852('0x8')](),controller[_0xe8e852('0xe')]),router[_0xe8e852('0x11')](_0xe8e852('0xf'),auth[_0xe8e852('0x8')](),controller['getConditions']),router[_0xe8e852('0x11')](_0xe8e852('0x1'),auth[_0xe8e852('0x8')](),controller['getActions']),router[_0xe8e852('0xc')]('/',auth[_0xe8e852('0x8')](),controller['create']),router[_0xe8e852('0xc')](_0xe8e852('0xf'),auth['isAuthenticated'](),controller[_0xe8e852('0x10')]),router[_0xe8e852('0xc')](_0xe8e852('0x1'),auth[_0xe8e852('0x8')](),controller[_0xe8e852('0x0')]),router[_0xe8e852('0x7')]('/:id',auth[_0xe8e852('0x8')](),controller[_0xe8e852('0x4')]),router[_0xe8e852('0x2')](_0xe8e852('0xb'),auth[_0xe8e852('0x8')](),controller[_0xe8e852('0xd')]),module[_0xe8e852('0x5')]=router; \ No newline at end of file diff --git a/server/api/campaign/campaign.attributes.js b/server/api/campaign/campaign.attributes.js index 3149ed6..99e549d 100644 --- a/server/api/campaign/campaign.attributes.js +++ b/server/api/campaign/campaign.attributes.js @@ -1 +1 @@ -const a41_0x1184=['NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Active/Disactive\x20AMD','BOOLEAN','#AMD\x20After\x20Greeting\x20Silence','#Congestion\x20Retry\x20(min:1,\x20max:999)','#Abandoned\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Maximum\x20Word\x20Length','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Between\x20Words\x20Silence','STRING','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Busy\x20Retry\x20(min:1,\x20max:999)','07:00-22:00,*,*,*','always','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','onlyIfOpen','ivr','ASC','#AMD\x20Total\x20Analysis\x20Time','ENUM','never','DESC','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','sequelize','name','#AMD\x20Maximum\x20Number\x20Of\x20Words','#AMD\x20Greeting','#AMD\x20Initial\x20Silence','INTEGER','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','Active/Disactive\x20Campaign','Max\x20200\x20calls.','UNSIGNED','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Drop\x20Retry\x20(min:1,\x20max:999)','Cut\x20Digit\x20(min:1,\x20max:15)'];(function(_0x111111,_0x1184d1){const _0x462fd4=function(_0x11a9ed){while(--_0x11a9ed){_0x111111['push'](_0x111111['shift']());}};_0x462fd4(++_0x1184d1);}(a41_0x1184,0xa4));const a41_0x462f=function(_0x111111,_0x1184d1){_0x111111=_0x111111-0x0;let _0x462fd4=a41_0x1184[_0x111111];return _0x462fd4;};const _0xb2d2b9=a41_0x462f;'use strict';const Sequelize=require(_0xb2d2b9('0x15'));module['exports']={'name':{'type':Sequelize[_0xb2d2b9('0x5')],'unique':_0xb2d2b9('0x16'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize[_0xb2d2b9('0x10')]('ivr'),'allowNull':![],'defaultValue':_0xb2d2b9('0xd')},'description':{'type':Sequelize[_0xb2d2b9('0x5')]},'active':{'type':Sequelize[_0xb2d2b9('0x26')],'defaultValue':0x0,'comment':_0xb2d2b9('0x1e')},'limitCalls':{'type':Sequelize['INTEGER'](0x4)[_0xb2d2b9('0x20')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0xb2d2b9('0x1f')},'dialOriginateCallerIdName':{'type':Sequelize['STRING']},'dialOriginateCallerIdNumber':{'type':Sequelize['STRING']},'dialOriginateTimeout':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb2d2b9('0x1b')},'dialCongestionMaxRetry':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb2d2b9('0x0')},'dialCongestionRetryFrequency':{'type':Sequelize[_0xb2d2b9('0x1a')](0x5)[_0xb2d2b9('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xb2d2b9('0x21')},'dialBusyMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0xb2d2b9('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb2d2b9('0x8')},'dialBusyRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0xb2d2b9('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialNoAnswerMaxRetry':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'defaultValue':0x3,'comment':_0xb2d2b9('0x14')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0xb2d2b9('0x1a')](0x5)[_0xb2d2b9('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xb2d2b9('0x24')},'dialGlobalMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0xb2d2b9('0x3')},'dialTimezone':{'type':Sequelize[_0xb2d2b9('0x5')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize['STRING'],'defaultValue':_0xb2d2b9('0x9')},'dialCheckDuplicateType':{'type':Sequelize['ENUM'](_0xb2d2b9('0xa'),_0xb2d2b9('0x11'),_0xb2d2b9('0xc')),'defaultValue':_0xb2d2b9('0xa')},'dialAMDActive':{'type':Sequelize[_0xb2d2b9('0x26')],'defaultValue':0x0,'comment':_0xb2d2b9('0x25')},'dialAMDInitialSilence':{'type':Sequelize[_0xb2d2b9('0x1a')](0x9)[_0xb2d2b9('0x20')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0xb2d2b9('0x19')},'dialAMDGreeting':{'type':Sequelize[_0xb2d2b9('0x1a')](0x9)['UNSIGNED'],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0xb2d2b9('0x18')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0xb2d2b9('0x1a')](0x9)[_0xb2d2b9('0x20')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0xb2d2b9('0x27')},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)[_0xb2d2b9('0x20')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0xb2d2b9('0xf')},'dialAMDMinWordLength':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':Sequelize['INTEGER'](0x9)[_0xb2d2b9('0x20')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0xb2d2b9('0x4')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0xb2d2b9('0x1a')](0x9)[_0xb2d2b9('0x20')],'defaultValue':0x3,'validate':{'min':0x0},'comment':_0xb2d2b9('0x17')},'dialAMDSilenceThreshold':{'type':Sequelize['INTEGER'](0x5)[_0xb2d2b9('0x20')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xb2d2b9('0xb')},'dialAMDMaximumWordLength':{'type':Sequelize[_0xb2d2b9('0x1a')](0x9)[_0xb2d2b9('0x20')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0xb2d2b9('0x2')},'dialOrderByScheduledAt':{'type':Sequelize['ENUM'](_0xb2d2b9('0x12'),_0xb2d2b9('0xe')),'defaultValue':_0xb2d2b9('0x12')},'dialPrefix':{'type':Sequelize[_0xb2d2b9('0x5')],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0xb2d2b9('0x6')},'dialCutDigit':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0xb2d2b9('0x23')},'dialNoSuchNumberMaxRetry':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb2d2b9('0x1d')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0xb2d2b9('0x1a')](0x5)[_0xb2d2b9('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialDropMaxRetry':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb2d2b9('0x22')},'dialDropRetryFrequency':{'type':Sequelize[_0xb2d2b9('0x1a')](0x5)[_0xb2d2b9('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xb2d2b9('0x13')},'dialAbandonedMaxRetry':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb2d2b9('0x1')},'dialAbandonedRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0xb2d2b9('0x20')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialMachineMaxRetry':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Machine\x20Retry\x20(min:1,\x20max:999)'},'dialMachineRetryFrequency':{'type':Sequelize['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xb2d2b9('0x1c')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0xb2d2b9('0x1a')](0x3)[_0xb2d2b9('0x20')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#AgentReject\x20Retry\x20(min:1,\x20max:999)'},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0xb2d2b9('0x1a')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0xb2d2b9('0x7')}}; \ No newline at end of file +const a41_0x5216=['name','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','Max\x20200\x20calls.','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20Greeting','INTEGER','#Busy\x20Retry\x20(min:1,\x20max:999)','Active/Disactive\x20AMD','STRING','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Min\x20Word\x20Length','ENUM','#Abandoned\x20Retry\x20(min:1,\x20max:999)','onlyIfOpen','sequelize','DESC','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AgentReject\x20Retry\x20(min:1,\x20max:999)','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','never','BOOLEAN','ivr','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','exports','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Drop\x20Retry\x20(min:1,\x20max:999)','Cut\x20Digit\x20(min:1,\x20max:15)','#AMD\x20Total\x20Analysis\x20Time','UNSIGNED','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#Machine\x20Retry\x20(min:1,\x20max:999)','ASC','Active/Disactive\x20Campaign','#AMD\x20After\x20Greeting\x20Silence','always'];(function(_0x203749,_0x5216b7){const _0x4bdfd4=function(_0x37cc74){while(--_0x37cc74){_0x203749['push'](_0x203749['shift']());}};_0x4bdfd4(++_0x5216b7);}(a41_0x5216,0x106));const a41_0x4bdf=function(_0x203749,_0x5216b7){_0x203749=_0x203749-0x0;let _0x4bdfd4=a41_0x5216[_0x203749];return _0x4bdfd4;};const _0x4e694c=a41_0x4bdf;'use strict';const Sequelize=require(_0x4e694c('0xd'));module[_0x4e694c('0x16')]={'name':{'type':Sequelize[_0x4e694c('0x6')],'unique':_0x4e694c('0x22'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'type':{'type':Sequelize['ENUM'](_0x4e694c('0x14')),'allowNull':![],'defaultValue':'ivr'},'description':{'type':Sequelize[_0x4e694c('0x6')]},'active':{'type':Sequelize[_0x4e694c('0x13')],'defaultValue':0x0,'comment':_0x4e694c('0x1f')},'limitCalls':{'type':Sequelize[_0x4e694c('0x3')](0x4)[_0x4e694c('0x1b')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0xc8},'comment':_0x4e694c('0x0')},'dialOriginateCallerIdName':{'type':Sequelize[_0x4e694c('0x6')]},'dialOriginateCallerIdNumber':{'type':Sequelize['STRING']},'dialOriginateTimeout':{'type':Sequelize['INTEGER'](0x3)[_0x4e694c('0x1b')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x4e694c('0x7')},'dialCongestionMaxRetry':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Congestion\x20Retry\x20(min:1,\x20max:999)'},'dialCongestionRetryFrequency':{'type':Sequelize[_0x4e694c('0x3')](0x5)[_0x4e694c('0x1b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x4e694c('0x17')},'dialBusyMaxRetry':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x4e694c('0x4')},'dialBusyRetryFrequency':{'type':Sequelize[_0x4e694c('0x3')](0x5)[_0x4e694c('0x1b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x4e694c('0xf')},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'defaultValue':0x3,'comment':'#NoAnswer\x20Retry\x20(min:1,\x20max:999)'},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x4e694c('0x3')](0x5)[_0x4e694c('0x1b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x4e694c('0x1')},'dialGlobalMaxRetry':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':'#Global\x20Max\x20Retry\x20(min:1,\x20max:999)'},'dialTimezone':{'type':Sequelize[_0x4e694c('0x6')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x4e694c('0x6')],'defaultValue':'07:00-22:00,*,*,*'},'dialCheckDuplicateType':{'type':Sequelize[_0x4e694c('0xa')](_0x4e694c('0x21'),_0x4e694c('0x12'),_0x4e694c('0xc')),'defaultValue':_0x4e694c('0x21')},'dialAMDActive':{'type':Sequelize[_0x4e694c('0x13')],'defaultValue':0x0,'comment':_0x4e694c('0x5')},'dialAMDInitialSilence':{'type':Sequelize[_0x4e694c('0x3')](0x9)['UNSIGNED'],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0x4e694c('0x3')](0x9)[_0x4e694c('0x1b')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x4e694c('0x2')},'dialAMDAfterGreetingSilence':{'type':Sequelize['INTEGER'](0x9)[_0x4e694c('0x1b')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x4e694c('0x20')},'dialAMDTotalAnalysisTime':{'type':Sequelize[_0x4e694c('0x3')](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x4e694c('0x1a')},'dialAMDMinWordLength':{'type':Sequelize[_0x4e694c('0x3')](0x9)['UNSIGNED'],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x4e694c('0x9')},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x4e694c('0x3')](0x9)['UNSIGNED'],'defaultValue':0x32,'validate':{'min':0x0},'comment':'#AMD\x20Between\x20Words\x20Silence'},'dialAMDMaximumNumberOfWords':{'type':Sequelize['INTEGER'](0x9)[_0x4e694c('0x1b')],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize[_0x4e694c('0x3')](0x5)[_0x4e694c('0x1b')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x4e694c('0x24')},'dialAMDMaximumWordLength':{'type':Sequelize[_0x4e694c('0x3')](0x9)[_0x4e694c('0x1b')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Word\x20Length'},'dialOrderByScheduledAt':{'type':Sequelize[_0x4e694c('0xa')]('DESC',_0x4e694c('0x1e')),'defaultValue':_0x4e694c('0xe')},'dialPrefix':{'type':Sequelize[_0x4e694c('0x6')],'defaultValue':null},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x4e694c('0x15')},'dialCutDigit':{'type':Sequelize['INTEGER'](0x3)[_0x4e694c('0x1b')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x4e694c('0x19')},'dialNoSuchNumberMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x4e694c('0x1b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x4e694c('0x8')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x4e694c('0x3')](0x5)[_0x4e694c('0x1b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x4e694c('0x1c')},'dialDropMaxRetry':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x4e694c('0x18')},'dialDropRetryFrequency':{'type':Sequelize[_0x4e694c('0x3')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':'Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)'},'dialAbandonedMaxRetry':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x4e694c('0xb')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x4e694c('0x3')](0x5)[_0x4e694c('0x1b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x4e694c('0x11')},'dialMachineMaxRetry':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x4e694c('0x1d')},'dialMachineRetryFrequency':{'type':Sequelize[_0x4e694c('0x3')](0x5)[_0x4e694c('0x1b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x4e694c('0x23')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x4e694c('0x3')](0x3)[_0x4e694c('0x1b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x4e694c('0x10')},'dialAgentRejectRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x4e694c('0x1b')],'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 80e1a4e..335b469 100644 --- a/server/api/campaign/campaign.controller.js +++ b/server/api/campaign/campaign.controller.js @@ -1 +1 @@ -const a42_0x5c76=['findAll','CmList','offset','catch','name','scheduledAt','push','cm_hopper_final','type','getLists','UserProfileResource','count','deletedAt\x20IS\x20NULL','intersection','nolimit','IvrCampaigns','role','query','findOne','always','ids','getHopperHistories','json','phone\x20IS\x20NOT\x20NULL','cm_hopper_black','addLists','body','insert','stack','cm_contacts','fromQuery','CmHopper','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','CmListId','getHoppers','include','end','get','fields','UserProfileSection','select','CmHopperHistory','userProfileId','CampaignId\x20=\x20?','ListId','error','order','destroy','createdAt','filter','phone','getHopperFinals','user','CmHopperFinal','getHopperBlacks','CampaignId','attributes','undefined','clone','options','lodash','where','Content-Range','phone\x20NOT\x20IN\x20(?)','model','sendStatus','includeAll','like','merge','cm_hopper','sequelize','status','into','../../components/parsers/qs','NOW()','set','index','CmHopperBlack','onlyIfOpen','omit','length','create','update','ContactId','../../mysqldb','ListId\x20=\x20?','from','squel','Unable\x20to\x20retrieve\x20the\x20current\x20user','params','removeLists','autoAssociation','removeBlackLists','map','keys','key','toString','VIRTUAL','limit','sort','filters','COALESCE(phone,\x27\x27)','then','dialCheckDuplicateType','send','../../config/logger','rawAttributes','Campaign','fieldName','updatedAt','rows','all','pick','COALESCE(calleridnum,\x27\x27)','field'];(function(_0x4bb3f3,_0x5c7646){const _0x16dbf9=function(_0x29f9e5){while(--_0x29f9e5){_0x4bb3f3['push'](_0x4bb3f3['shift']());}};_0x16dbf9(++_0x5c7646);}(a42_0x5c76,0x1c6));const a42_0x16db=function(_0x4bb3f3,_0x5c7646){_0x4bb3f3=_0x4bb3f3-0x0;let _0x16dbf9=a42_0x5c76[_0x4bb3f3];return _0x16dbf9;};const _0x35aaea=a42_0x16db;'use strict';const _=require(_0x35aaea('0x42')),squel=require(_0x35aaea('0x5d')),qs=require(_0x35aaea('0x4f')),logger=require(_0x35aaea('0x6f'))('api'),db=require(_0x35aaea('0x5a'))['db'],{Op}=require('sequelize');function respondWithStatusCode(_0x29f9e5,_0x58e9bc){return _0x58e9bc=_0x58e9bc||0xcc,function(_0x148e5d){const _0x2142e3=a42_0x16db;if(_0x148e5d)return _0x29f9e5[_0x2142e3('0x47')](_0x58e9bc);return _0x29f9e5[_0x2142e3('0x4d')](_0x58e9bc)[_0x2142e3('0x2a')]();};}function respondWithResult(_0x27c7d2,_0xaf29be){return _0xaf29be=_0xaf29be||0xc8,function(_0x21b614){const _0xf9ca19=a42_0x16db;if(_0x21b614)return _0x27c7d2[_0xf9ca19('0x4d')](_0xaf29be)['json'](_0x21b614);};}function respondWithFilteredResult(_0x471e0e,_0x616e01){return function(_0x372da0){const _0xacda04=a42_0x16db;if(_0x372da0){const _0x18d5b8=_0x372da0['count'],_0x1de2dc=_0x616e01[_0xacda04('0x8')];let _0x39825f=_0x616e01[_0xacda04('0x8')]+_0x616e01[_0xacda04('0x68')],_0xae1eac;return _0x39825f>=_0x18d5b8?(_0x39825f=_0x18d5b8,_0xae1eac=0xc8):_0xae1eac=0xce,_0x471e0e[_0xacda04('0x4d')](_0xae1eac),_0x471e0e[_0xacda04('0x51')](_0xacda04('0x44'),_0x1de2dc+'-'+_0x39825f+'/'+_0x18d5b8)[_0xacda04('0x1c')](_0x372da0);}return null;};}function saveUpdates(_0x18fab7){return function(_0x599092){const _0x46aa33=a42_0x16db;if(_0x599092)return _0x599092[_0x46aa33('0x58')](_0x18fab7)[_0x46aa33('0x6c')](function(_0x3350fa){return _0x3350fa;});return null;};}function removeEntity(_0x486128){return function(_0xdd1cea){const _0x686ca2=a42_0x16db;if(_0xdd1cea)return _0xdd1cea[_0x686ca2('0x35')]()['then'](function(){const _0x300e89=_0x686ca2,_0x410513=_0xdd1cea[_0x300e89('0x2b')]({'plain':!![]}),_0x14b42b=_0x300e89('0x15');return db[_0x300e89('0x10')][_0x300e89('0x35')]({'where':{'type':_0x14b42b,'resourceId':_0x410513['id']}})[_0x300e89('0x6c')](function(){return _0xdd1cea;});})['then'](function(){const _0x155896=_0x686ca2;_0x486128[_0x155896('0x4d')](0xcc)['end']();});};}function handleEntityNotFound(_0x1bdb76){return function(_0x37e5ea){const _0x10d0a2=a42_0x16db;return!_0x37e5ea&&_0x1bdb76[_0x10d0a2('0x47')](0x194),_0x37e5ea;};}function handleError(_0x555b0c,_0x51a95d){return _0x51a95d=_0x51a95d||0x1f4,function(_0x3dbe24){const _0x49970d=a42_0x16db;logger[_0x49970d('0x33')](_0x3dbe24[_0x49970d('0x22')]),_0x3dbe24['name']&&delete _0x3dbe24[_0x49970d('0xa')],_0x555b0c[_0x49970d('0x4d')](_0x51a95d)[_0x49970d('0x6e')](_0x3dbe24);};}exports[_0x35aaea('0x52')]=function(_0x411099,_0x124f73){const _0x276493=_0x35aaea;let _0x3ce506={};const _0x515725={},_0x458277={'count':0x0,'rows':[]},_0x266722=_['map'](db[_0x276493('0x71')][_0x276493('0x70')],function(_0x438c35){const _0x1bf061=_0x276493;return{'name':_0x438c35[_0x1bf061('0x72')],'type':_0x438c35[_0x1bf061('0xe')][_0x1bf061('0x65')]};});_0x515725[_0x276493('0x46')]=_[_0x276493('0x63')](_0x266722,_0x276493('0xa')),_0x515725[_0x276493('0x17')]=_[_0x276493('0x64')](_0x411099[_0x276493('0x17')]),_0x515725[_0x276493('0x6a')]=_[_0x276493('0x13')](_0x515725[_0x276493('0x46')],_0x515725[_0x276493('0x17')]),_0x3ce506[_0x276493('0x3e')]=_[_0x276493('0x13')](_0x515725[_0x276493('0x46')],qs[_0x276493('0x2c')](_0x411099[_0x276493('0x17')][_0x276493('0x2c')])),_0x3ce506['attributes']=_0x3ce506[_0x276493('0x3e')]['length']?_0x3ce506[_0x276493('0x3e')]:_0x515725[_0x276493('0x46')];typeof _0x411099[_0x276493('0x17')][_0x276493('0x14')]===_0x276493('0x3f')&&(_0x3ce506[_0x276493('0x68')]=qs[_0x276493('0x68')](_0x411099[_0x276493('0x17')][_0x276493('0x68')]),_0x3ce506[_0x276493('0x8')]=qs['offset'](_0x411099['query'][_0x276493('0x8')]));_0x3ce506[_0x276493('0x34')]=qs[_0x276493('0x69')](_0x411099['query'][_0x276493('0x69')]),_0x3ce506[_0x276493('0x43')]=qs[_0x276493('0x6a')](_[_0x276493('0x3')](_0x411099[_0x276493('0x17')],_0x515725[_0x276493('0x6a')]),_0x266722);_0x411099[_0x276493('0x17')][_0x276493('0x37')]&&(_0x3ce506[_0x276493('0x43')]=_[_0x276493('0x4a')](_0x3ce506[_0x276493('0x43')],{[Op['or']]:_['map'](_0x266722,function(_0x5effb1){const _0x6cf5ee=_0x276493;if(_0x5effb1['type']!==_0x6cf5ee('0x67')){const _0xc8f830={};return _0xc8f830[_0x5effb1['name']]={[Op[_0x6cf5ee('0x49')]]:'%'+_0x411099[_0x6cf5ee('0x17')]['filter']+'%'},_0xc8f830;}})}));_0x3ce506=_[_0x276493('0x4a')]({},_0x3ce506,_0x411099[_0x276493('0x41')]);const _0x1d8db6={'where':_0x3ce506[_0x276493('0x43')]};return db[_0x276493('0x71')]['count'](_0x1d8db6)[_0x276493('0x6c')](function(_0x2aaad4){const _0x17ac3f=_0x276493;return _0x458277[_0x17ac3f('0x11')]=_0x2aaad4,_0x411099[_0x17ac3f('0x17')][_0x17ac3f('0x48')]&&(_0x3ce506['include']=[{'all':!![]}]),db[_0x17ac3f('0x71')][_0x17ac3f('0x6')](_0x3ce506);})[_0x276493('0x6c')](function(_0x37a576){const _0x3c6b2b=_0x276493;return _0x458277[_0x3c6b2b('0x1')]=_0x37a576,_0x458277;})['then'](respondWithFilteredResult(_0x124f73,_0x3ce506))[_0x276493('0x9')](handleError(_0x124f73,null));},exports['show']=function(_0x27af23,_0x1d4da1){const _0x58892e=_0x35aaea;let _0x2605c5={'raw':![],'where':{'id':_0x27af23['params']['id']}};const _0x53a218={};return _0x53a218[_0x58892e('0x46')]=_[_0x58892e('0x64')](db['Campaign'][_0x58892e('0x70')]),_0x53a218[_0x58892e('0x17')]=_[_0x58892e('0x64')](_0x27af23[_0x58892e('0x17')]),_0x53a218['filters']=_['intersection'](_0x53a218[_0x58892e('0x46')],_0x53a218[_0x58892e('0x17')]),_0x2605c5['attributes']=_[_0x58892e('0x13')](_0x53a218[_0x58892e('0x46')],qs[_0x58892e('0x2c')](_0x27af23[_0x58892e('0x17')][_0x58892e('0x2c')])),_0x2605c5[_0x58892e('0x3e')]=_0x2605c5[_0x58892e('0x3e')][_0x58892e('0x56')]?_0x2605c5['attributes']:_0x53a218[_0x58892e('0x46')],_0x27af23[_0x58892e('0x17')][_0x58892e('0x48')]&&(_0x2605c5[_0x58892e('0x29')]=[{'all':!![]}]),_0x2605c5=_[_0x58892e('0x4a')]({},_0x2605c5,_0x27af23[_0x58892e('0x41')]),db[_0x58892e('0x71')]['findOne'](_0x2605c5)['then'](handleEntityNotFound(_0x1d4da1,null))[_0x58892e('0x6c')](respondWithResult(_0x1d4da1,null))[_0x58892e('0x9')](handleError(_0x1d4da1,null));},exports['create']=function(_0x36850b,_0x4ffb69){const _0x5be7af=_0x35aaea;return db[_0x5be7af('0x71')][_0x5be7af('0x57')](_0x36850b[_0x5be7af('0x20')],{})[_0x5be7af('0x6c')](function(_0x2f4a2a){const _0x4e6a8b=_0x5be7af,_0x55edec=_0x36850b['user'][_0x4e6a8b('0x2b')]({'plain':!![]});if(!_0x55edec)throw new Error(_0x4e6a8b('0x5e'));if(_0x55edec[_0x4e6a8b('0x16')]===_0x4e6a8b('0x3a')){const _0x571c6f=_0x2f4a2a[_0x4e6a8b('0x2b')]({'plain':!![]}),_0x2724e2=_0x4e6a8b('0x15');return db[_0x4e6a8b('0x2d')][_0x4e6a8b('0x18')]({'where':{'name':_0x2724e2,'userProfileId':_0x55edec[_0x4e6a8b('0x30')]},'raw':!![]})['then'](function(_0x5687e2){const _0x261671=_0x4e6a8b;return _0x5687e2&&_0x5687e2[_0x261671('0x61')]===0x0?db[_0x261671('0x10')][_0x261671('0x57')]({'name':_0x571c6f[_0x261671('0xa')],'resourceId':_0x571c6f['id'],'type':_0x5687e2['name'],'sectionId':_0x5687e2['id']},{})[_0x261671('0x6c')](function(){return _0x2f4a2a;}):_0x2f4a2a;})[_0x4e6a8b('0x9')](function(_0x4da0e8){const _0x2daddb=_0x4e6a8b;logger[_0x2daddb('0x33')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4da0e8);throw _0x4da0e8;});}return _0x2f4a2a;})[_0x5be7af('0x6c')](respondWithResult(_0x4ffb69,0xc9))[_0x5be7af('0x9')](handleError(_0x4ffb69,null));},exports[_0x35aaea('0x40')]=function(_0xf51285,_0x1279ec){const _0x5993eb=_0x35aaea;let _0x3379d1={'where':{'id':_0xf51285[_0x5993eb('0x5f')]['id']}};const _0x269e72={};return _0x269e72[_0x5993eb('0x46')]=_['keys'](db[_0x5993eb('0x71')][_0x5993eb('0x70')]),_0x3379d1[_0x5993eb('0x3e')]=_[_0x5993eb('0x13')](_0x269e72[_0x5993eb('0x46')],qs[_0x5993eb('0x2c')](_0xf51285[_0x5993eb('0x17')][_0x5993eb('0x2c')])),_0x3379d1['attributes']=_0x3379d1['attributes'][_0x5993eb('0x56')]?_0x3379d1['attributes']:_0x269e72[_0x5993eb('0x46')],_0xf51285['query'][_0x5993eb('0x48')]&&(_0x3379d1['include']=[{'all':!![]}]),_0x3379d1=_[_0x5993eb('0x4a')]({},_0x3379d1,_0xf51285['options']),db[_0x5993eb('0x71')][_0x5993eb('0x18')](_0x3379d1)['then'](handleEntityNotFound(_0x1279ec,null))['then'](function(_0x477254){const _0xd376e3=_0x5993eb;if(_0x477254){let _0x4e1f29=_0x477254[_0xd376e3('0x2b')]({'plain':!![]});return _0x4e1f29=qs[_0xd376e3('0x55')](_0x4e1f29,['id',_0xd376e3('0x36'),_0xd376e3('0x0')]),_0xf51285['body']=_['omit'](_0xf51285[_0xd376e3('0x20')],['id',_0xd376e3('0x36'),_0xd376e3('0x0')]),db[_0xd376e3('0x71')][_0xd376e3('0x57')](_[_0xd376e3('0x4a')](_0x4e1f29,_0xf51285[_0xd376e3('0x20')]),{'include':_0xf51285['query'][_0xd376e3('0x48')]?[{'all':!![]}]:undefined})[_0xd376e3('0x6c')](function(_0xcbcae7){const _0x4e0d9f=_0xd376e3,_0x1c91b3=_0xf51285[_0x4e0d9f('0x3a')][_0x4e0d9f('0x2b')]({'plain':!![]});if(!_0x1c91b3)throw new Error(_0x4e0d9f('0x5e'));if(_0x1c91b3[_0x4e0d9f('0x16')]===_0x4e0d9f('0x3a')){const _0x5ad722=_0xcbcae7['get']({'plain':!![]}),_0x338e44=_0x4e0d9f('0x15');return db[_0x4e0d9f('0x2d')][_0x4e0d9f('0x18')]({'where':{'name':_0x338e44,'userProfileId':_0x1c91b3[_0x4e0d9f('0x30')]},'raw':!![]})['then'](function(_0x50312e){const _0x5145fb=_0x4e0d9f;return _0x50312e&&_0x50312e[_0x5145fb('0x61')]===0x0?db[_0x5145fb('0x10')][_0x5145fb('0x57')]({'name':_0x5ad722['name'],'resourceId':_0x5ad722['id'],'type':_0x50312e[_0x5145fb('0xa')],'sectionId':_0x50312e['id']},{})['then'](function(){return _0xcbcae7;}):_0xcbcae7;})[_0x4e0d9f('0x9')](function(_0x176d6d){const _0x1b08c3=_0x4e0d9f;logger[_0x1b08c3('0x33')](_0x1b08c3('0x26'),_0x176d6d);throw _0x176d6d;});}return _0xcbcae7;});}})[_0x5993eb('0x6c')](respondWithResult(_0x1279ec,0xc9))[_0x5993eb('0x9')](handleError(_0x1279ec,null));},exports[_0x35aaea('0x58')]=function(_0x3c1af3,_0x134583){const _0x3b75ec=_0x35aaea;return _0x3c1af3[_0x3b75ec('0x20')]['id']&&delete _0x3c1af3[_0x3b75ec('0x20')]['id'],db['Campaign'][_0x3b75ec('0x18')]({'where':{'id':_0x3c1af3['params']['id']}})['then'](handleEntityNotFound(_0x134583,null))[_0x3b75ec('0x6c')](saveUpdates(_0x3c1af3[_0x3b75ec('0x20')],null))[_0x3b75ec('0x6c')](respondWithResult(_0x134583,null))[_0x3b75ec('0x9')](handleError(_0x134583,null));},exports[_0x35aaea('0x35')]=function(_0x4c1511,_0x320d1c){const _0x559921=_0x35aaea;return db[_0x559921('0x71')]['findOne']({'where':{'id':_0x4c1511[_0x559921('0x5f')]['id']}})[_0x559921('0x6c')](handleEntityNotFound(_0x320d1c,null))[_0x559921('0x6c')](removeEntity(_0x320d1c,null))[_0x559921('0x9')](handleError(_0x320d1c,null));},exports[_0x35aaea('0x28')]=function(_0x13bcd8,_0x3977c3){const _0x1c09bb=_0x35aaea;let _0x44c1fb={'raw':!![],'where':{}};const _0x1ab75a={},_0x13cf5d={'count':0x0,'rows':[]};return db[_0x1c09bb('0x71')][_0x1c09bb('0x18')]({'where':{'id':_0x13bcd8[_0x1c09bb('0x5f')]['id']}})[_0x1c09bb('0x6c')](handleEntityNotFound(_0x3977c3,null))[_0x1c09bb('0x6c')](function(_0x5ce8b5){const _0x3108ce=_0x1c09bb;if(_0x5ce8b5)return _0x1ab75a[_0x3108ce('0x46')]=_[_0x3108ce('0x64')](db[_0x3108ce('0x25')][_0x3108ce('0x70')]),_0x1ab75a[_0x3108ce('0x17')]=_[_0x3108ce('0x64')](_0x13bcd8[_0x3108ce('0x17')]),_0x1ab75a[_0x3108ce('0x6a')]=_['intersection'](_0x1ab75a[_0x3108ce('0x46')],_0x1ab75a[_0x3108ce('0x17')]),_0x44c1fb['attributes']=_[_0x3108ce('0x13')](_0x1ab75a[_0x3108ce('0x46')],qs[_0x3108ce('0x2c')](_0x13bcd8[_0x3108ce('0x17')]['fields'])),_0x44c1fb[_0x3108ce('0x3e')]=_0x44c1fb[_0x3108ce('0x3e')][_0x3108ce('0x56')]?_0x44c1fb[_0x3108ce('0x3e')]:_0x1ab75a[_0x3108ce('0x46')],typeof _0x13bcd8['query'][_0x3108ce('0x14')]==='undefined'&&(_0x44c1fb[_0x3108ce('0x68')]=qs[_0x3108ce('0x68')](_0x13bcd8['query']['limit']),_0x44c1fb[_0x3108ce('0x8')]=qs[_0x3108ce('0x8')](_0x13bcd8[_0x3108ce('0x17')]['offset'])),_0x44c1fb[_0x3108ce('0x34')]=qs[_0x3108ce('0x69')](_0x13bcd8[_0x3108ce('0x17')][_0x3108ce('0x69')]),_0x44c1fb[_0x3108ce('0x43')]=qs[_0x3108ce('0x6a')](_[_0x3108ce('0x3')](_0x13bcd8[_0x3108ce('0x17')],_0x1ab75a[_0x3108ce('0x6a')])),_0x44c1fb[_0x3108ce('0x43')][_0x3108ce('0x3d')]=_0x5ce8b5['id'],_0x13bcd8['query'][_0x3108ce('0x37')]&&(_0x44c1fb[_0x3108ce('0x43')]=_[_0x3108ce('0x4a')](_0x44c1fb[_0x3108ce('0x43')],{[Op['or']]:_[_0x3108ce('0x63')](_0x44c1fb['attributes'],function(_0x252453){const _0x21b6fa=_0x3108ce,_0x49ae3f={};return _0x49ae3f[_0x252453]={[Op[_0x21b6fa('0x49')]]:'%'+_0x13bcd8[_0x21b6fa('0x17')]['filter']+'%'},_0x49ae3f;})})),_0x44c1fb=_[_0x3108ce('0x4a')]({},_0x44c1fb,_0x13bcd8[_0x3108ce('0x41')]),db[_0x3108ce('0x25')][_0x3108ce('0x11')]({'where':_0x44c1fb[_0x3108ce('0x43')]})['then'](function(_0x590016){const _0x48c5f5=_0x3108ce;return _0x13cf5d[_0x48c5f5('0x11')]=_0x590016,_0x13bcd8[_0x48c5f5('0x17')]['includeAll']&&(_0x44c1fb[_0x48c5f5('0x29')]=[{'all':!![]}]),db[_0x48c5f5('0x25')][_0x48c5f5('0x6')](_0x44c1fb);})['then'](function(_0x2428b4){const _0x31a7ba=_0x3108ce;return _0x13cf5d[_0x31a7ba('0x1')]=_0x2428b4,_0x13cf5d;});})[_0x1c09bb('0x6c')](respondWithFilteredResult(_0x3977c3,_0x44c1fb))[_0x1c09bb('0x9')](handleError(_0x3977c3,null));},exports[_0x35aaea('0x1b')]=function(_0x52e0bf,_0x43c22a){const _0x28abc7=_0x35aaea;let _0x335778={'raw':!![],'where':{}};const _0x3a6210={},_0x2ac73e={'count':0x0,'rows':[]};return db[_0x28abc7('0x71')][_0x28abc7('0x18')]({'where':{'id':_0x52e0bf['params']['id']}})[_0x28abc7('0x6c')](handleEntityNotFound(_0x43c22a,null))[_0x28abc7('0x6c')](function(_0x44030a){const _0x5e5815=_0x28abc7;if(_0x44030a)return _0x3a6210[_0x5e5815('0x46')]=_[_0x5e5815('0x64')](db['CmHopperHistory'][_0x5e5815('0x70')]),_0x3a6210[_0x5e5815('0x17')]=_[_0x5e5815('0x64')](_0x52e0bf[_0x5e5815('0x17')]),_0x3a6210['filters']=_[_0x5e5815('0x13')](_0x3a6210[_0x5e5815('0x46')],_0x3a6210[_0x5e5815('0x17')]),_0x335778[_0x5e5815('0x3e')]=_[_0x5e5815('0x13')](_0x3a6210['model'],qs[_0x5e5815('0x2c')](_0x52e0bf[_0x5e5815('0x17')][_0x5e5815('0x2c')])),_0x335778[_0x5e5815('0x3e')]=_0x335778['attributes'][_0x5e5815('0x56')]?_0x335778[_0x5e5815('0x3e')]:_0x3a6210[_0x5e5815('0x46')],typeof _0x52e0bf['query'][_0x5e5815('0x14')]===_0x5e5815('0x3f')&&(_0x335778[_0x5e5815('0x68')]=qs['limit'](_0x52e0bf[_0x5e5815('0x17')][_0x5e5815('0x68')]),_0x335778[_0x5e5815('0x8')]=qs[_0x5e5815('0x8')](_0x52e0bf[_0x5e5815('0x17')]['offset'])),_0x335778['order']=qs[_0x5e5815('0x69')](_0x52e0bf['query'][_0x5e5815('0x69')]),_0x335778[_0x5e5815('0x43')]=qs[_0x5e5815('0x6a')](_[_0x5e5815('0x3')](_0x52e0bf[_0x5e5815('0x17')],_0x3a6210[_0x5e5815('0x6a')])),_0x335778[_0x5e5815('0x43')]['CampaignId']=_0x44030a['id'],_0x52e0bf[_0x5e5815('0x17')][_0x5e5815('0x37')]&&(_0x335778[_0x5e5815('0x43')]=_[_0x5e5815('0x4a')](_0x335778[_0x5e5815('0x43')],{[Op['or']]:_[_0x5e5815('0x63')](_0x335778['attributes'],function(_0x1701d6){const _0x4bbbb2=_0x5e5815,_0x2482c2={};return _0x2482c2[_0x1701d6]={[Op['like']]:'%'+_0x52e0bf['query'][_0x4bbbb2('0x37')]+'%'},_0x2482c2;})})),_0x335778=_[_0x5e5815('0x4a')]({},_0x335778,_0x52e0bf[_0x5e5815('0x41')]),db[_0x5e5815('0x2f')]['count']({'where':_0x335778['where']})[_0x5e5815('0x6c')](function(_0x139b4f){const _0x56fe24=_0x5e5815;return _0x2ac73e[_0x56fe24('0x11')]=_0x139b4f,_0x52e0bf['query'][_0x56fe24('0x48')]&&(_0x335778[_0x56fe24('0x29')]=[{'all':!![]}]),db['CmHopperHistory']['findAll'](_0x335778);})[_0x5e5815('0x6c')](function(_0x20a867){const _0x3aa596=_0x5e5815;return _0x2ac73e[_0x3aa596('0x1')]=_0x20a867,_0x2ac73e;});})[_0x28abc7('0x6c')](respondWithFilteredResult(_0x43c22a,_0x335778))[_0x28abc7('0x9')](handleError(_0x43c22a,null));},exports[_0x35aaea('0x39')]=function(_0x148f3b,_0x339ad9){const _0x32b441=_0x35aaea;let _0x576fbd={'raw':!![],'where':{}};const _0x2fb490={},_0x7caa51={'count':0x0,'rows':[]};return db[_0x32b441('0x71')][_0x32b441('0x18')]({'where':{'id':_0x148f3b[_0x32b441('0x5f')]['id']}})[_0x32b441('0x6c')](handleEntityNotFound(_0x339ad9,null))['then'](function(_0x10e5da){const _0x45aed4=_0x32b441;if(_0x10e5da)return _0x2fb490[_0x45aed4('0x46')]=_[_0x45aed4('0x64')](db[_0x45aed4('0x3b')][_0x45aed4('0x70')]),_0x2fb490[_0x45aed4('0x17')]=_['keys'](_0x148f3b[_0x45aed4('0x17')]),_0x2fb490['filters']=_[_0x45aed4('0x13')](_0x2fb490[_0x45aed4('0x46')],_0x2fb490[_0x45aed4('0x17')]),_0x576fbd['attributes']=_[_0x45aed4('0x13')](_0x2fb490[_0x45aed4('0x46')],qs[_0x45aed4('0x2c')](_0x148f3b[_0x45aed4('0x17')][_0x45aed4('0x2c')])),_0x576fbd[_0x45aed4('0x3e')]=_0x576fbd['attributes'][_0x45aed4('0x56')]?_0x576fbd[_0x45aed4('0x3e')]:_0x2fb490['model'],typeof _0x148f3b[_0x45aed4('0x17')][_0x45aed4('0x14')]===_0x45aed4('0x3f')&&(_0x576fbd['limit']=qs['limit'](_0x148f3b['query'][_0x45aed4('0x68')]),_0x576fbd[_0x45aed4('0x8')]=qs[_0x45aed4('0x8')](_0x148f3b[_0x45aed4('0x17')]['offset'])),_0x576fbd['order']=qs[_0x45aed4('0x69')](_0x148f3b[_0x45aed4('0x17')]['sort']),_0x576fbd[_0x45aed4('0x43')]=qs[_0x45aed4('0x6a')](_[_0x45aed4('0x3')](_0x148f3b['query'],_0x2fb490[_0x45aed4('0x6a')])),_0x576fbd['where'][_0x45aed4('0x3d')]=_0x10e5da['id'],_0x148f3b[_0x45aed4('0x17')][_0x45aed4('0x37')]&&(_0x576fbd['where']=_['merge'](_0x576fbd[_0x45aed4('0x43')],{[Op['or']]:_[_0x45aed4('0x63')](_0x576fbd[_0x45aed4('0x3e')],function(_0x29ffd1){const _0x251608=_0x45aed4,_0x30d6f3={};return _0x30d6f3[_0x29ffd1]={[Op[_0x251608('0x49')]]:'%'+_0x148f3b[_0x251608('0x17')][_0x251608('0x37')]+'%'},_0x30d6f3;})})),_0x576fbd=_[_0x45aed4('0x4a')]({},_0x576fbd,_0x148f3b[_0x45aed4('0x41')]),db[_0x45aed4('0x3b')][_0x45aed4('0x11')]({'where':_0x576fbd[_0x45aed4('0x43')]})[_0x45aed4('0x6c')](function(_0x39888e){const _0x1dac4e=_0x45aed4;return _0x7caa51['count']=_0x39888e,_0x148f3b[_0x1dac4e('0x17')][_0x1dac4e('0x48')]&&(_0x576fbd[_0x1dac4e('0x29')]=[{'all':!![]}]),db['CmHopperFinal'][_0x1dac4e('0x6')](_0x576fbd);})['then'](function(_0x4c3c6f){const _0x1304a9=_0x45aed4;return _0x7caa51[_0x1304a9('0x1')]=_0x4c3c6f,_0x7caa51;});})[_0x32b441('0x6c')](respondWithFilteredResult(_0x339ad9,_0x576fbd))[_0x32b441('0x9')](handleError(_0x339ad9,null));},exports[_0x35aaea('0x3c')]=function(_0x19b54d,_0x2d91ff){const _0xeb9e47=_0x35aaea;let _0x1bafda={'raw':!![],'where':{}};const _0x11b8f0={},_0x282b5e={'count':0x0,'rows':[]};return db['Campaign'][_0xeb9e47('0x18')]({'where':{'id':_0x19b54d[_0xeb9e47('0x5f')]['id']}})[_0xeb9e47('0x6c')](handleEntityNotFound(_0x2d91ff,null))[_0xeb9e47('0x6c')](function(_0xf907f){const _0x369bdd=_0xeb9e47;if(_0xf907f)return _0x11b8f0[_0x369bdd('0x46')]=_[_0x369bdd('0x64')](db[_0x369bdd('0x53')]['rawAttributes']),_0x11b8f0[_0x369bdd('0x17')]=_[_0x369bdd('0x64')](_0x19b54d['query']),_0x11b8f0[_0x369bdd('0x6a')]=_[_0x369bdd('0x13')](_0x11b8f0[_0x369bdd('0x46')],_0x11b8f0[_0x369bdd('0x17')]),_0x1bafda[_0x369bdd('0x3e')]=_[_0x369bdd('0x13')](_0x11b8f0[_0x369bdd('0x46')],qs['fields'](_0x19b54d[_0x369bdd('0x17')][_0x369bdd('0x2c')])),_0x1bafda[_0x369bdd('0x3e')]=_0x1bafda[_0x369bdd('0x3e')][_0x369bdd('0x56')]?_0x1bafda[_0x369bdd('0x3e')]:_0x11b8f0['model'],typeof _0x19b54d[_0x369bdd('0x17')][_0x369bdd('0x14')]===_0x369bdd('0x3f')&&(_0x1bafda[_0x369bdd('0x68')]=qs[_0x369bdd('0x68')](_0x19b54d[_0x369bdd('0x17')]['limit']),_0x1bafda[_0x369bdd('0x8')]=qs[_0x369bdd('0x8')](_0x19b54d['query'][_0x369bdd('0x8')])),_0x1bafda[_0x369bdd('0x34')]=qs[_0x369bdd('0x69')](_0x19b54d[_0x369bdd('0x17')]['sort']),_0x1bafda[_0x369bdd('0x43')]=qs['filters'](_[_0x369bdd('0x3')](_0x19b54d[_0x369bdd('0x17')],_0x11b8f0[_0x369bdd('0x6a')])),_0x1bafda['where'][_0x369bdd('0x3d')]=_0xf907f['id'],_0x19b54d[_0x369bdd('0x17')][_0x369bdd('0x37')]&&(_0x1bafda[_0x369bdd('0x43')]=_[_0x369bdd('0x4a')](_0x1bafda[_0x369bdd('0x43')],{[Op['or']]:_['map'](_0x1bafda[_0x369bdd('0x3e')],function(_0x5ad8b6){const _0x3568ab=_0x369bdd,_0x24dd79={};return _0x24dd79[_0x5ad8b6]={[Op[_0x3568ab('0x49')]]:'%'+_0x19b54d[_0x3568ab('0x17')]['filter']+'%'},_0x24dd79;})})),_0x1bafda=_['merge']({},_0x1bafda,_0x19b54d[_0x369bdd('0x41')]),db[_0x369bdd('0x53')][_0x369bdd('0x11')]({'where':_0x1bafda[_0x369bdd('0x43')]})[_0x369bdd('0x6c')](function(_0x5d16b2){const _0x329710=_0x369bdd;return _0x282b5e[_0x329710('0x11')]=_0x5d16b2,_0x19b54d[_0x329710('0x17')][_0x329710('0x48')]&&(_0x1bafda['include']=[{'all':!![]}]),db['CmHopperBlack'][_0x329710('0x6')](_0x1bafda);})['then'](function(_0x3ed63c){const _0x1d3762=_0x369bdd;return _0x282b5e[_0x1d3762('0x1')]=_0x3ed63c,_0x282b5e;});})[_0xeb9e47('0x6c')](respondWithFilteredResult(_0x2d91ff,_0x1bafda))[_0xeb9e47('0x9')](handleError(_0x2d91ff,null));},exports[_0x35aaea('0xf')]=function(_0x4154d6,_0x1913c7){const _0x396883=_0x35aaea;let _0x24ff62={};const _0x48ab4a={};let _0x5582e6,_0x170718;return db['Campaign'][_0x396883('0x18')]({'where':{'id':_0x4154d6[_0x396883('0x5f')]['id']}})['then'](handleEntityNotFound(_0x1913c7,null))[_0x396883('0x6c')](function(_0x312aa5){const _0x477e7c=_0x396883;if(_0x312aa5)return _0x5582e6=_0x312aa5,_0x48ab4a[_0x477e7c('0x46')]=_[_0x477e7c('0x64')](db[_0x477e7c('0x7')][_0x477e7c('0x70')]),_0x48ab4a[_0x477e7c('0x17')]=_[_0x477e7c('0x64')](_0x4154d6[_0x477e7c('0x17')]),_0x48ab4a[_0x477e7c('0x6a')]=_[_0x477e7c('0x13')](_0x48ab4a['model'],_0x48ab4a[_0x477e7c('0x17')]),_0x24ff62[_0x477e7c('0x3e')]=_[_0x477e7c('0x13')](_0x48ab4a[_0x477e7c('0x46')],qs['fields'](_0x4154d6[_0x477e7c('0x17')]['fields'])),_0x24ff62['attributes']=_0x24ff62[_0x477e7c('0x3e')][_0x477e7c('0x56')]?_0x24ff62[_0x477e7c('0x3e')]:_0x48ab4a[_0x477e7c('0x46')],_0x24ff62['order']=qs[_0x477e7c('0x69')](_0x4154d6[_0x477e7c('0x17')][_0x477e7c('0x69')]),_0x24ff62[_0x477e7c('0x43')]=qs['filters'](_[_0x477e7c('0x3')](_0x4154d6['query'],_0x48ab4a[_0x477e7c('0x6a')])),_0x4154d6['query']['filter']&&(_0x24ff62[_0x477e7c('0x43')]=_[_0x477e7c('0x4a')](_0x24ff62[_0x477e7c('0x43')],{[Op['or']]:_[_0x477e7c('0x63')](_0x24ff62[_0x477e7c('0x3e')],function(_0x5a6b15){const _0x38e573=_0x477e7c,_0x5ac59a={};return _0x5ac59a[_0x5a6b15]={[Op[_0x38e573('0x49')]]:'%'+_0x4154d6[_0x38e573('0x17')]['filter']+'%'},_0x5ac59a;})})),_0x24ff62=_['merge']({},_0x24ff62,_0x4154d6[_0x477e7c('0x41')]),_0x5582e6[_0x477e7c('0xf')](_0x24ff62);})[_0x396883('0x6c')](function(_0x58279b){const _0x2a093f=_0x396883;if(_0x58279b)return _0x170718=_0x58279b[_0x2a093f('0x56')],typeof _0x4154d6[_0x2a093f('0x17')][_0x2a093f('0x14')]===_0x2a093f('0x3f')&&(_0x24ff62[_0x2a093f('0x68')]=qs[_0x2a093f('0x68')](_0x4154d6[_0x2a093f('0x17')][_0x2a093f('0x68')]),_0x24ff62[_0x2a093f('0x8')]=qs[_0x2a093f('0x8')](_0x4154d6[_0x2a093f('0x17')][_0x2a093f('0x8')])),_0x5582e6[_0x2a093f('0xf')](_0x24ff62);})['then'](function(_0x501a61){if(_0x501a61)return _0x501a61?{'count':_0x170718,'rows':_0x501a61}:null;})[_0x396883('0x6c')](respondWithResult(_0x1913c7,null))[_0x396883('0x9')](handleError(_0x1913c7,null));},exports[_0x35aaea('0x1f')]=function(_0x8e33d9,_0x19d03b){const _0x3a4915=_0x35aaea;let _0x582de2,_0x2f4b02;return db[_0x3a4915('0x71')][_0x3a4915('0x18')]({'where':{'id':_0x8e33d9[_0x3a4915('0x5f')]['id']}})[_0x3a4915('0x6c')](handleEntityNotFound(_0x19d03b,null))['then'](function(_0x4653a2){const _0x165fc8=_0x3a4915;if(_0x4653a2)return _0x2f4b02=_0x4653a2,_0x4653a2[_0x165fc8('0x1f')](_0x8e33d9['body'][_0x165fc8('0x1a')],{'through':_[_0x165fc8('0x55')](_0x8e33d9[_0x165fc8('0x20')],[_0x165fc8('0x1a'),'id'])});return null;})['then'](function(_0x43c2a8){const _0x4a6a5e=_0x3a4915;let _0x48cf1e;_0x582de2=_0x43c2a8||[];const _0x480f34=[];if(_0x43c2a8){for(let _0x35681f=0x0;_0x35681f<_0x43c2a8['length'];_0x35681f+=0x1){const _0x5a87da=_0x43c2a8[_0x35681f][_0x4a6a5e('0x2b')]({'plain':!![]});_0x2f4b02['dialCheckDuplicateType']=_0x8e33d9[_0x4a6a5e('0x20')][_0x4a6a5e('0x6d')]?_0x8e33d9[_0x4a6a5e('0x20')][_0x4a6a5e('0x6d')]:_0x2f4b02['dialCheckDuplicateType'];switch(_0x2f4b02['dialCheckDuplicateType']){case _0x4a6a5e('0x19'):_0x48cf1e=squel[_0x4a6a5e('0x21')]()[_0x4a6a5e('0x4e')](_0x4a6a5e('0x4b'))[_0x4a6a5e('0x24')]([_0x4a6a5e('0x38'),_0x4a6a5e('0xb'),_0x4a6a5e('0x59'),_0x4a6a5e('0x32'),_0x4a6a5e('0x3d'),_0x4a6a5e('0x36'),_0x4a6a5e('0x0')],squel['select']()[_0x4a6a5e('0x5')]('phone',_0x4a6a5e('0x38'))[_0x4a6a5e('0x5')]('NOW()','scheduledAt')[_0x4a6a5e('0x5')]('id',_0x4a6a5e('0x59'))[_0x4a6a5e('0x5')](_0x5a87da['CmListId'][_0x4a6a5e('0x66')](),_0x4a6a5e('0x32'))[_0x4a6a5e('0x5')](_0x8e33d9['params']['id'][_0x4a6a5e('0x66')](),_0x4a6a5e('0x3d'))['field']('NOW()',_0x4a6a5e('0x36'))[_0x4a6a5e('0x5')](_0x4a6a5e('0x50'),'updatedAt')[_0x4a6a5e('0x5c')]('cm_contacts')[_0x4a6a5e('0x43')](_0x4a6a5e('0x12'))[_0x4a6a5e('0x43')](_0x4a6a5e('0x5b'),_0x5a87da[_0x4a6a5e('0x27')]['toString']())[_0x4a6a5e('0x43')](_0x4a6a5e('0x1d'))[_0x4a6a5e('0x43')]('phone\x20NOT\x20IN\x20(?)',squel[_0x4a6a5e('0x2e')]()[_0x4a6a5e('0x5')](_0x4a6a5e('0x4'))['from'](_0x4a6a5e('0xd'))[_0x4a6a5e('0x43')](_0x4a6a5e('0x31'),_0x8e33d9[_0x4a6a5e('0x5f')]['id']['toString']()))[_0x4a6a5e('0x43')](_0x4a6a5e('0x45'),squel[_0x4a6a5e('0x2e')]()[_0x4a6a5e('0x5')]('COALESCE(phone,\x27\x27)')[_0x4a6a5e('0x5c')]('cm_hopper')[_0x4a6a5e('0x43')](_0x4a6a5e('0x31'),_0x8e33d9[_0x4a6a5e('0x5f')]['id'][_0x4a6a5e('0x66')]())))['toString']();break;case _0x4a6a5e('0x54'):_0x48cf1e=squel[_0x4a6a5e('0x21')]()[_0x4a6a5e('0x4e')](_0x4a6a5e('0x4b'))[_0x4a6a5e('0x24')]([_0x4a6a5e('0x38'),_0x4a6a5e('0xb'),'ContactId','ListId',_0x4a6a5e('0x3d'),_0x4a6a5e('0x36'),_0x4a6a5e('0x0')],squel[_0x4a6a5e('0x2e')]()[_0x4a6a5e('0x5')]('phone',_0x4a6a5e('0x38'))[_0x4a6a5e('0x5')]('NOW()','scheduledAt')[_0x4a6a5e('0x5')]('id','ContactId')[_0x4a6a5e('0x5')](_0x5a87da[_0x4a6a5e('0x27')]['toString'](),_0x4a6a5e('0x32'))[_0x4a6a5e('0x5')](_0x8e33d9[_0x4a6a5e('0x5f')]['id'][_0x4a6a5e('0x66')](),_0x4a6a5e('0x3d'))[_0x4a6a5e('0x5')](_0x4a6a5e('0x50'),_0x4a6a5e('0x36'))[_0x4a6a5e('0x5')]('NOW()',_0x4a6a5e('0x0'))['from']('cm_contacts')['where'](_0x4a6a5e('0x12'))[_0x4a6a5e('0x43')]('ListId\x20=\x20?',_0x5a87da['CmListId'][_0x4a6a5e('0x66')]())[_0x4a6a5e('0x43')](_0x4a6a5e('0x1d'))[_0x4a6a5e('0x43')](_0x4a6a5e('0x45'),squel['select']()[_0x4a6a5e('0x5')](_0x4a6a5e('0x6b'))[_0x4a6a5e('0x5c')](_0x4a6a5e('0x4b'))['where'](_0x4a6a5e('0x31'),_0x8e33d9['params']['id'][_0x4a6a5e('0x66')]())))['toString']();break;default:_0x48cf1e=squel[_0x4a6a5e('0x21')]()[_0x4a6a5e('0x4e')](_0x4a6a5e('0x4b'))[_0x4a6a5e('0x24')]([_0x4a6a5e('0x38'),_0x4a6a5e('0xb'),_0x4a6a5e('0x59'),_0x4a6a5e('0x32'),_0x4a6a5e('0x3d'),_0x4a6a5e('0x36'),_0x4a6a5e('0x0')],squel[_0x4a6a5e('0x2e')]()['field']('phone',_0x4a6a5e('0x38'))['field'](_0x4a6a5e('0x50'),_0x4a6a5e('0xb'))[_0x4a6a5e('0x5')]('id',_0x4a6a5e('0x59'))[_0x4a6a5e('0x5')](_0x5a87da[_0x4a6a5e('0x27')][_0x4a6a5e('0x66')](),_0x4a6a5e('0x32'))['field'](_0x8e33d9[_0x4a6a5e('0x5f')]['id'][_0x4a6a5e('0x66')](),_0x4a6a5e('0x3d'))[_0x4a6a5e('0x5')]('NOW()','createdAt')[_0x4a6a5e('0x5')]('NOW()',_0x4a6a5e('0x0'))[_0x4a6a5e('0x5c')](_0x4a6a5e('0x23'))[_0x4a6a5e('0x43')](_0x4a6a5e('0x12'))[_0x4a6a5e('0x43')](_0x4a6a5e('0x5b'),_0x5a87da[_0x4a6a5e('0x27')][_0x4a6a5e('0x66')]())[_0x4a6a5e('0x43')]('phone\x20IS\x20NOT\x20NULL'))['toString']();}_0x480f34[_0x4a6a5e('0xc')](db[_0x4a6a5e('0x4c')][_0x4a6a5e('0x17')](_0x48cf1e));}return Promise[_0x4a6a5e('0x2')](_0x480f34);}})[_0x3a4915('0x6c')](function(){return _0x582de2;})[_0x3a4915('0x6c')](respondWithResult(_0x19d03b,null))[_0x3a4915('0x9')](handleError(_0x19d03b,null));},exports[_0x35aaea('0x60')]=function(_0x19acc2,_0x4fc88a){const _0x274b33=_0x35aaea;return db[_0x274b33('0x71')]['findOne']({'where':{'id':_0x19acc2[_0x274b33('0x5f')]['id']}})[_0x274b33('0x6c')](handleEntityNotFound(_0x4fc88a,null))[_0x274b33('0x6c')](function(_0x51b371){const _0x70fb5=_0x274b33;if(_0x51b371)return _0x51b371[_0x70fb5('0x60')](_0x19acc2['query'][_0x70fb5('0x1a')]);})[_0x274b33('0x6c')](function(_0x5a4f06){const _0x45f3e0=_0x274b33;if(_0x5a4f06)return db['CmHopper']['destroy']({'where':{'ListId':_0x19acc2[_0x45f3e0('0x17')][_0x45f3e0('0x1a')],'CampaignId':_0x19acc2['params']['id']}})[_0x45f3e0('0x6c')](function(){return _0x5a4f06;});})['then'](respondWithStatusCode(_0x4fc88a,null))['catch'](handleError(_0x4fc88a,null));},exports['getBlackLists']=function(_0x35e0dd,_0x1a9610){const _0x2d40a3=_0x35aaea;let _0x13583f={'raw':!![],'where':{}};const _0x442fc1={},_0x4b0761={'count':0x0,'rows':[]};return db['Campaign'][_0x2d40a3('0x18')]({'where':{'id':_0x35e0dd[_0x2d40a3('0x5f')]['id']}})[_0x2d40a3('0x6c')](handleEntityNotFound(_0x1a9610,null))[_0x2d40a3('0x6c')](function(_0x18b22b){const _0xd689a9=_0x2d40a3;if(_0x18b22b)return _0x442fc1[_0xd689a9('0x46')]=_[_0xd689a9('0x64')](db['CmList'][_0xd689a9('0x70')]),_0x442fc1[_0xd689a9('0x17')]=_[_0xd689a9('0x64')](_0x35e0dd[_0xd689a9('0x17')]),_0x442fc1['filters']=_['intersection'](_0x442fc1[_0xd689a9('0x46')],_0x442fc1['query']),_0x13583f['attributes']=_[_0xd689a9('0x13')](_0x442fc1[_0xd689a9('0x46')],qs[_0xd689a9('0x2c')](_0x35e0dd['query']['fields'])),_0x13583f[_0xd689a9('0x3e')]=_0x13583f[_0xd689a9('0x3e')]['length']?_0x13583f[_0xd689a9('0x3e')]:_0x442fc1[_0xd689a9('0x46')],typeof _0x35e0dd['query'][_0xd689a9('0x14')]===_0xd689a9('0x3f')&&(_0x13583f[_0xd689a9('0x68')]=qs[_0xd689a9('0x68')](_0x35e0dd[_0xd689a9('0x17')][_0xd689a9('0x68')]),_0x13583f[_0xd689a9('0x8')]=qs[_0xd689a9('0x8')](_0x35e0dd['query'][_0xd689a9('0x8')])),_0x13583f[_0xd689a9('0x34')]=qs['sort'](_0x35e0dd[_0xd689a9('0x17')][_0xd689a9('0x69')]),_0x13583f[_0xd689a9('0x43')]=qs[_0xd689a9('0x6a')](_[_0xd689a9('0x3')](_0x35e0dd['query'],_0x442fc1[_0xd689a9('0x6a')])),_0x13583f[_0xd689a9('0x43')]['CampaignId']=_0x18b22b['id'],_0x35e0dd[_0xd689a9('0x17')][_0xd689a9('0x37')]&&(_0x13583f['where']=_[_0xd689a9('0x4a')](_0x13583f[_0xd689a9('0x43')],{[Op['or']]:_[_0xd689a9('0x63')](_0x13583f[_0xd689a9('0x3e')],function(_0x1d841a){const _0x24df77=_0xd689a9,_0x304217={};return _0x304217[_0x1d841a]={[Op[_0x24df77('0x49')]]:'%'+_0x35e0dd[_0x24df77('0x17')][_0x24df77('0x37')]+'%'},_0x304217;})})),_0x13583f=_[_0xd689a9('0x4a')]({},_0x13583f,_0x35e0dd[_0xd689a9('0x41')]),db['CmList'][_0xd689a9('0x11')]({'where':_0x13583f[_0xd689a9('0x43')]})[_0xd689a9('0x6c')](function(_0x5bd776){const _0x5c84a3=_0xd689a9;return _0x4b0761['count']=_0x5bd776,_0x35e0dd[_0x5c84a3('0x17')][_0x5c84a3('0x48')]&&(_0x13583f[_0x5c84a3('0x29')]=[{'all':!![]}]),db['CmList'][_0x5c84a3('0x6')](_0x13583f);})[_0xd689a9('0x6c')](function(_0x5295f1){return _0x4b0761['rows']=_0x5295f1,_0x4b0761;});})[_0x2d40a3('0x6c')](respondWithFilteredResult(_0x1a9610,_0x13583f))['catch'](handleError(_0x1a9610,null));},exports['addBlackLists']=function(_0x3eeb62,_0x450ed2){const _0x234b0b=_0x35aaea;let _0x49a76c;return db[_0x234b0b('0x71')][_0x234b0b('0x18')]({'where':{'id':_0x3eeb62[_0x234b0b('0x5f')]['id']}})[_0x234b0b('0x6c')](handleEntityNotFound(_0x450ed2,null))[_0x234b0b('0x6c')](function(_0xdd6a07){const _0x9b405=_0x234b0b;if(_0xdd6a07)return _0xdd6a07['addBlackLists'](_0x3eeb62[_0x9b405('0x20')][_0x9b405('0x1a')],{'through':_['omit'](_0x3eeb62[_0x9b405('0x20')],[_0x9b405('0x1a'),'id'])});return null;})[_0x234b0b('0x6c')](function(_0x2b2ee0){const _0x5a5b7d=_0x234b0b;let _0x5e7105;_0x49a76c=_0x2b2ee0||[];const _0x1cc512=[];if(_0x2b2ee0){for(let _0x439255=0x0;_0x439255<_0x2b2ee0[_0x5a5b7d('0x56')];_0x439255+=0x1){const _0x5cd7af=_0x2b2ee0[_0x439255][_0x5a5b7d('0x2b')]({'plain':!![]});_0x5e7105=squel[_0x5a5b7d('0x21')]()[_0x5a5b7d('0x4e')](_0x5a5b7d('0x1e'))[_0x5a5b7d('0x24')]([_0x5a5b7d('0x38'),_0x5a5b7d('0x59'),'ListId',_0x5a5b7d('0x3d'),_0x5a5b7d('0x36'),_0x5a5b7d('0x0')],squel[_0x5a5b7d('0x2e')]()[_0x5a5b7d('0x5')]('phone','phone')[_0x5a5b7d('0x5')]('id',_0x5a5b7d('0x59'))[_0x5a5b7d('0x5')](_0x5cd7af[_0x5a5b7d('0x27')][_0x5a5b7d('0x66')](),_0x5a5b7d('0x32'))['field'](_0x3eeb62[_0x5a5b7d('0x5f')]['id']['toString'](),_0x5a5b7d('0x3d'))[_0x5a5b7d('0x5')](_0x5a5b7d('0x50'),_0x5a5b7d('0x36'))[_0x5a5b7d('0x5')](_0x5a5b7d('0x50'),'updatedAt')[_0x5a5b7d('0x5c')](_0x5a5b7d('0x23'))[_0x5a5b7d('0x43')](_0x5a5b7d('0x12'))['where']('ListId\x20=\x20?',_0x5cd7af[_0x5a5b7d('0x27')][_0x5a5b7d('0x66')]())['where']('phone\x20IS\x20NOT\x20NULL'))['toString'](),_0x1cc512[_0x5a5b7d('0xc')](db[_0x5a5b7d('0x4c')][_0x5a5b7d('0x17')](_0x5e7105));}return Promise[_0x5a5b7d('0x2')](_0x1cc512);}})['then'](function(){return _0x49a76c;})[_0x234b0b('0x6c')](respondWithResult(_0x450ed2,null))[_0x234b0b('0x9')](handleError(_0x450ed2,null));},exports['removeBlackLists']=function(_0x2bf082,_0x3628ac){const _0x559adc=_0x35aaea;return db[_0x559adc('0x71')]['findOne']({'where':{'id':_0x2bf082[_0x559adc('0x5f')]['id']}})[_0x559adc('0x6c')](handleEntityNotFound(_0x3628ac,null))[_0x559adc('0x6c')](function(_0x3714b9){const _0x3cb678=_0x559adc;if(_0x3714b9)return _0x3714b9[_0x3cb678('0x62')](_0x2bf082[_0x3cb678('0x17')][_0x3cb678('0x1a')]);})[_0x559adc('0x6c')](function(_0x1116a4){const _0x574986=_0x559adc;if(_0x1116a4)return db[_0x574986('0x53')][_0x574986('0x35')]({'where':{'ListId':_0x2bf082[_0x574986('0x17')]['ids'],'CampaignId':_0x2bf082[_0x574986('0x5f')]['id']}})['then'](function(){return _0x1116a4;});})[_0x559adc('0x6c')](respondWithStatusCode(_0x3628ac,null))[_0x559adc('0x9')](handleError(_0x3628ac,null));}; \ No newline at end of file +const a42_0x9313=['IvrCampaigns','merge','user','createdAt','UserProfileSection','CmList','updatedAt','CampaignId','CmListId','ListId','length','nolimit','error','addLists','phone\x20NOT\x20IN\x20(?)','update','COALESCE(phone,\x27\x27)','params','map','../../config/logger','select','removeLists','findAll','NOW()','rows','order','squel','CmHopperBlack','Campaign','ids','getHoppers','onlyIfOpen','CampaignId\x20=\x20?','phone\x20IS\x20NOT\x20NULL','Unable\x20to\x20retrieve\x20the\x20current\x20user','clone','attributes','limit','all','offset','ContactId','then','pick','keys','filters','rawAttributes','name','insert','destroy','api','sequelize','options','catch','filter','fields','Content-Range','phone','intersection','sort','show','undefined','getBlackLists','VIRTUAL','include','findOne','type','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','like','send','status','count','scheduledAt','userProfileId','sendStatus','query','../../mysqldb','toString','cm_hopper_final','getHopperHistories','CmHopperFinal','deletedAt\x20IS\x20NULL','addBlackLists','model','json','cm_hopper','ListId\x20=\x20?','into','fromQuery','COALESCE(calleridnum,\x27\x27)','get','where','autoAssociation','CmHopperHistory','CmHopper','role','field','end','cm_contacts','removeBlackLists','includeAll','omit','create','push','from','key','UserProfileResource','stack','body','dialCheckDuplicateType','getLists'];(function(_0x2dde9d,_0x931346){const _0x2af319=function(_0x3da520){while(--_0x3da520){_0x2dde9d['push'](_0x2dde9d['shift']());}};_0x2af319(++_0x931346);}(a42_0x9313,0x137));const a42_0x2af3=function(_0x2dde9d,_0x931346){_0x2dde9d=_0x2dde9d-0x0;let _0x2af319=a42_0x9313[_0x2dde9d];return _0x2af319;};const _0x3c4100=a42_0x2af3;'use strict';const _=require('lodash'),squel=require(_0x3c4100('0x2d')),qs=require('../../components/parsers/qs'),logger=require(_0x3c4100('0x26'))(_0x3c4100('0x44')),db=require(_0x3c4100('0x5e'))['db'],{Op}=require(_0x3c4100('0x45'));function respondWithStatusCode(_0x3da520,_0x324db6){return _0x324db6=_0x324db6||0xcc,function(_0x31cbd0){const _0x543ea5=a42_0x2af3;if(_0x31cbd0)return _0x3da520[_0x543ea5('0x5c')](_0x324db6);return _0x3da520[_0x543ea5('0x58')](_0x324db6)[_0x543ea5('0x5')]();};}function respondWithResult(_0xf8822b,_0x40076b){return _0x40076b=_0x40076b||0xc8,function(_0x3bc627){const _0x58fbc9=a42_0x2af3;if(_0x3bc627)return _0xf8822b[_0x58fbc9('0x58')](_0x40076b)[_0x58fbc9('0x66')](_0x3bc627);};}function respondWithFilteredResult(_0x1a651c,_0x26e5d2){return function(_0x520a2d){const _0x46b24e=a42_0x2af3;if(_0x520a2d){const _0x234c7c=_0x520a2d[_0x46b24e('0x59')],_0x44c96c=_0x26e5d2[_0x46b24e('0x3a')];let _0x2054c0=_0x26e5d2['offset']+_0x26e5d2[_0x46b24e('0x38')],_0x2db9c9;return _0x2054c0>=_0x234c7c?(_0x2054c0=_0x234c7c,_0x2db9c9=0xc8):_0x2db9c9=0xce,_0x1a651c[_0x46b24e('0x58')](_0x2db9c9),_0x1a651c['set'](_0x46b24e('0x4a'),_0x44c96c+'-'+_0x2054c0+'/'+_0x234c7c)['json'](_0x520a2d);}return null;};}function saveUpdates(_0x3ca3a5){return function(_0x11e90f){const _0x4b5cc0=a42_0x2af3;if(_0x11e90f)return _0x11e90f[_0x4b5cc0('0x22')](_0x3ca3a5)[_0x4b5cc0('0x3c')](function(_0x440f97){return _0x440f97;});return null;};}function removeEntity(_0xf54c4f){return function(_0x2222c7){const _0x5ebbbe=a42_0x2af3;if(_0x2222c7)return _0x2222c7[_0x5ebbbe('0x43')]()[_0x5ebbbe('0x3c')](function(){const _0x4b216d=_0x5ebbbe,_0x214bb4=_0x2222c7['get']({'plain':!![]}),_0x328011=_0x4b216d('0x13');return db[_0x4b216d('0xe')]['destroy']({'where':{'type':_0x328011,'resourceId':_0x214bb4['id']}})[_0x4b216d('0x3c')](function(){return _0x2222c7;});})[_0x5ebbbe('0x3c')](function(){const _0x309ea3=_0x5ebbbe;_0xf54c4f[_0x309ea3('0x58')](0xcc)[_0x309ea3('0x5')]();});};}function handleEntityNotFound(_0x574e91){return function(_0x21f4a0){return!_0x21f4a0&&_0x574e91['sendStatus'](0x194),_0x21f4a0;};}function handleError(_0x2207ed,_0x1dcad9){return _0x1dcad9=_0x1dcad9||0x1f4,function(_0x45454b){const _0x34dd69=a42_0x2af3;logger[_0x34dd69('0x1f')](_0x45454b[_0x34dd69('0xf')]),_0x45454b['name']&&delete _0x45454b[_0x34dd69('0x41')],_0x2207ed[_0x34dd69('0x58')](_0x1dcad9)[_0x34dd69('0x57')](_0x45454b);};}exports['index']=function(_0x929235,_0x5d0ca1){const _0x1c4f6c=_0x3c4100;let _0x60121b={};const _0x3c5c09={},_0xa53b13={'count':0x0,'rows':[]},_0x2e8676=_['map'](db[_0x1c4f6c('0x2f')][_0x1c4f6c('0x40')],function(_0x5bf461){const _0x216723=_0x1c4f6c;return{'name':_0x5bf461['fieldName'],'type':_0x5bf461[_0x216723('0x54')][_0x216723('0xd')]};});_0x3c5c09[_0x1c4f6c('0x65')]=_[_0x1c4f6c('0x25')](_0x2e8676,_0x1c4f6c('0x41')),_0x3c5c09[_0x1c4f6c('0x5d')]=_[_0x1c4f6c('0x3e')](_0x929235['query']),_0x3c5c09[_0x1c4f6c('0x3f')]=_[_0x1c4f6c('0x4c')](_0x3c5c09[_0x1c4f6c('0x65')],_0x3c5c09['query']),_0x60121b[_0x1c4f6c('0x37')]=_[_0x1c4f6c('0x4c')](_0x3c5c09[_0x1c4f6c('0x65')],qs['fields'](_0x929235[_0x1c4f6c('0x5d')][_0x1c4f6c('0x49')])),_0x60121b[_0x1c4f6c('0x37')]=_0x60121b[_0x1c4f6c('0x37')][_0x1c4f6c('0x1d')]?_0x60121b[_0x1c4f6c('0x37')]:_0x3c5c09[_0x1c4f6c('0x65')];typeof _0x929235[_0x1c4f6c('0x5d')][_0x1c4f6c('0x1e')]===_0x1c4f6c('0x4f')&&(_0x60121b[_0x1c4f6c('0x38')]=qs['limit'](_0x929235[_0x1c4f6c('0x5d')][_0x1c4f6c('0x38')]),_0x60121b[_0x1c4f6c('0x3a')]=qs[_0x1c4f6c('0x3a')](_0x929235[_0x1c4f6c('0x5d')][_0x1c4f6c('0x3a')]));_0x60121b['order']=qs[_0x1c4f6c('0x4d')](_0x929235['query'][_0x1c4f6c('0x4d')]),_0x60121b[_0x1c4f6c('0x6d')]=qs[_0x1c4f6c('0x3f')](_[_0x1c4f6c('0x3d')](_0x929235[_0x1c4f6c('0x5d')],_0x3c5c09[_0x1c4f6c('0x3f')]),_0x2e8676);_0x929235[_0x1c4f6c('0x5d')][_0x1c4f6c('0x48')]&&(_0x60121b[_0x1c4f6c('0x6d')]=_[_0x1c4f6c('0x14')](_0x60121b[_0x1c4f6c('0x6d')],{[Op['or']]:_['map'](_0x2e8676,function(_0x290318){const _0x3cdbfa=_0x1c4f6c;if(_0x290318[_0x3cdbfa('0x54')]!==_0x3cdbfa('0x51')){const _0x1f7297={};return _0x1f7297[_0x290318[_0x3cdbfa('0x41')]]={[Op[_0x3cdbfa('0x56')]]:'%'+_0x929235[_0x3cdbfa('0x5d')][_0x3cdbfa('0x48')]+'%'},_0x1f7297;}})}));_0x60121b=_[_0x1c4f6c('0x14')]({},_0x60121b,_0x929235['options']);const _0x18dbf2={'where':_0x60121b[_0x1c4f6c('0x6d')]};return db[_0x1c4f6c('0x2f')][_0x1c4f6c('0x59')](_0x18dbf2)['then'](function(_0x306ffa){const _0x558487=_0x1c4f6c;return _0xa53b13[_0x558487('0x59')]=_0x306ffa,_0x929235['query'][_0x558487('0x8')]&&(_0x60121b[_0x558487('0x52')]=[{'all':!![]}]),db[_0x558487('0x2f')]['findAll'](_0x60121b);})['then'](function(_0x226a30){const _0x28364d=_0x1c4f6c;return _0xa53b13[_0x28364d('0x2b')]=_0x226a30,_0xa53b13;})[_0x1c4f6c('0x3c')](respondWithFilteredResult(_0x5d0ca1,_0x60121b))[_0x1c4f6c('0x47')](handleError(_0x5d0ca1,null));},exports[_0x3c4100('0x4e')]=function(_0x12d435,_0x23760a){const _0x3a6904=_0x3c4100;let _0x596d9e={'raw':![],'where':{'id':_0x12d435[_0x3a6904('0x24')]['id']}};const _0x227793={};return _0x227793[_0x3a6904('0x65')]=_[_0x3a6904('0x3e')](db['Campaign'][_0x3a6904('0x40')]),_0x227793[_0x3a6904('0x5d')]=_[_0x3a6904('0x3e')](_0x12d435[_0x3a6904('0x5d')]),_0x227793[_0x3a6904('0x3f')]=_[_0x3a6904('0x4c')](_0x227793[_0x3a6904('0x65')],_0x227793[_0x3a6904('0x5d')]),_0x596d9e['attributes']=_['intersection'](_0x227793[_0x3a6904('0x65')],qs[_0x3a6904('0x49')](_0x12d435['query']['fields'])),_0x596d9e[_0x3a6904('0x37')]=_0x596d9e[_0x3a6904('0x37')][_0x3a6904('0x1d')]?_0x596d9e[_0x3a6904('0x37')]:_0x227793['model'],_0x12d435['query'][_0x3a6904('0x8')]&&(_0x596d9e['include']=[{'all':!![]}]),_0x596d9e=_[_0x3a6904('0x14')]({},_0x596d9e,_0x12d435[_0x3a6904('0x46')]),db['Campaign'][_0x3a6904('0x53')](_0x596d9e)[_0x3a6904('0x3c')](handleEntityNotFound(_0x23760a,null))[_0x3a6904('0x3c')](respondWithResult(_0x23760a,null))[_0x3a6904('0x47')](handleError(_0x23760a,null));},exports[_0x3c4100('0xa')]=function(_0x339fa5,_0x296c8f){const _0x4b0e78=_0x3c4100;return db[_0x4b0e78('0x2f')][_0x4b0e78('0xa')](_0x339fa5[_0x4b0e78('0x10')],{})[_0x4b0e78('0x3c')](function(_0xa30105){const _0x356c38=_0x4b0e78,_0x5ac422=_0x339fa5[_0x356c38('0x15')][_0x356c38('0x6c')]({'plain':!![]});if(!_0x5ac422)throw new Error(_0x356c38('0x35'));if(_0x5ac422[_0x356c38('0x3')]===_0x356c38('0x15')){const _0x5c0659=_0xa30105[_0x356c38('0x6c')]({'plain':!![]}),_0xe297c9=_0x356c38('0x13');return db[_0x356c38('0x17')][_0x356c38('0x53')]({'where':{'name':_0xe297c9,'userProfileId':_0x5ac422['userProfileId']},'raw':!![]})[_0x356c38('0x3c')](function(_0x1437fc){const _0x1265d2=_0x356c38;return _0x1437fc&&_0x1437fc[_0x1265d2('0x0')]===0x0?db[_0x1265d2('0xe')][_0x1265d2('0xa')]({'name':_0x5c0659[_0x1265d2('0x41')],'resourceId':_0x5c0659['id'],'type':_0x1437fc[_0x1265d2('0x41')],'sectionId':_0x1437fc['id']},{})['then'](function(){return _0xa30105;}):_0xa30105;})[_0x356c38('0x47')](function(_0x20b08f){const _0x3f0533=_0x356c38;logger['error'](_0x3f0533('0x55'),_0x20b08f);throw _0x20b08f;});}return _0xa30105;})[_0x4b0e78('0x3c')](respondWithResult(_0x296c8f,0xc9))[_0x4b0e78('0x47')](handleError(_0x296c8f,null));},exports[_0x3c4100('0x36')]=function(_0x34b4a1,_0x43ba80){const _0x57de7d=_0x3c4100;let _0x5731c5={'where':{'id':_0x34b4a1[_0x57de7d('0x24')]['id']}};const _0x104f66={};return _0x104f66['model']=_['keys'](db[_0x57de7d('0x2f')][_0x57de7d('0x40')]),_0x5731c5[_0x57de7d('0x37')]=_['intersection'](_0x104f66['model'],qs[_0x57de7d('0x49')](_0x34b4a1[_0x57de7d('0x5d')][_0x57de7d('0x49')])),_0x5731c5[_0x57de7d('0x37')]=_0x5731c5[_0x57de7d('0x37')][_0x57de7d('0x1d')]?_0x5731c5[_0x57de7d('0x37')]:_0x104f66['model'],_0x34b4a1[_0x57de7d('0x5d')][_0x57de7d('0x8')]&&(_0x5731c5['include']=[{'all':!![]}]),_0x5731c5=_[_0x57de7d('0x14')]({},_0x5731c5,_0x34b4a1[_0x57de7d('0x46')]),db['Campaign'][_0x57de7d('0x53')](_0x5731c5)[_0x57de7d('0x3c')](handleEntityNotFound(_0x43ba80,null))[_0x57de7d('0x3c')](function(_0x5a045a){const _0x3b1a14=_0x57de7d;if(_0x5a045a){let _0x3abf9d=_0x5a045a[_0x3b1a14('0x6c')]({'plain':!![]});return _0x3abf9d=qs[_0x3b1a14('0x9')](_0x3abf9d,['id',_0x3b1a14('0x16'),_0x3b1a14('0x19')]),_0x34b4a1[_0x3b1a14('0x10')]=_[_0x3b1a14('0x9')](_0x34b4a1[_0x3b1a14('0x10')],['id',_0x3b1a14('0x16'),_0x3b1a14('0x19')]),db[_0x3b1a14('0x2f')][_0x3b1a14('0xa')](_[_0x3b1a14('0x14')](_0x3abf9d,_0x34b4a1['body']),{'include':_0x34b4a1['query'][_0x3b1a14('0x8')]?[{'all':!![]}]:undefined})[_0x3b1a14('0x3c')](function(_0xebbdb4){const _0x29a16b=_0x3b1a14,_0x57c0e6=_0x34b4a1[_0x29a16b('0x15')][_0x29a16b('0x6c')]({'plain':!![]});if(!_0x57c0e6)throw new Error(_0x29a16b('0x35'));if(_0x57c0e6[_0x29a16b('0x3')]===_0x29a16b('0x15')){const _0x2b72a3=_0xebbdb4[_0x29a16b('0x6c')]({'plain':!![]}),_0x212055=_0x29a16b('0x13');return db[_0x29a16b('0x17')]['findOne']({'where':{'name':_0x212055,'userProfileId':_0x57c0e6[_0x29a16b('0x5b')]},'raw':!![]})['then'](function(_0x4c7f52){const _0x45e270=_0x29a16b;return _0x4c7f52&&_0x4c7f52[_0x45e270('0x0')]===0x0?db[_0x45e270('0xe')][_0x45e270('0xa')]({'name':_0x2b72a3[_0x45e270('0x41')],'resourceId':_0x2b72a3['id'],'type':_0x4c7f52[_0x45e270('0x41')],'sectionId':_0x4c7f52['id']},{})[_0x45e270('0x3c')](function(){return _0xebbdb4;}):_0xebbdb4;})[_0x29a16b('0x47')](function(_0xafef19){const _0x29ef16=_0x29a16b;logger[_0x29ef16('0x1f')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xafef19);throw _0xafef19;});}return _0xebbdb4;});}})[_0x57de7d('0x3c')](respondWithResult(_0x43ba80,0xc9))['catch'](handleError(_0x43ba80,null));},exports[_0x3c4100('0x22')]=function(_0x1b4146,_0x50d76b){const _0x31e232=_0x3c4100;return _0x1b4146[_0x31e232('0x10')]['id']&&delete _0x1b4146[_0x31e232('0x10')]['id'],db[_0x31e232('0x2f')][_0x31e232('0x53')]({'where':{'id':_0x1b4146['params']['id']}})['then'](handleEntityNotFound(_0x50d76b,null))[_0x31e232('0x3c')](saveUpdates(_0x1b4146[_0x31e232('0x10')],null))[_0x31e232('0x3c')](respondWithResult(_0x50d76b,null))[_0x31e232('0x47')](handleError(_0x50d76b,null));},exports['destroy']=function(_0x52e580,_0x3c8f73){const _0x38b4b2=_0x3c4100;return db[_0x38b4b2('0x2f')][_0x38b4b2('0x53')]({'where':{'id':_0x52e580[_0x38b4b2('0x24')]['id']}})[_0x38b4b2('0x3c')](handleEntityNotFound(_0x3c8f73,null))[_0x38b4b2('0x3c')](removeEntity(_0x3c8f73,null))['catch'](handleError(_0x3c8f73,null));},exports[_0x3c4100('0x31')]=function(_0x1027f8,_0x1a534c){const _0x41878f=_0x3c4100;let _0x43a7e6={'raw':!![],'where':{}};const _0x4af5d0={},_0x286d9={'count':0x0,'rows':[]};return db[_0x41878f('0x2f')][_0x41878f('0x53')]({'where':{'id':_0x1027f8[_0x41878f('0x24')]['id']}})[_0x41878f('0x3c')](handleEntityNotFound(_0x1a534c,null))[_0x41878f('0x3c')](function(_0xfbb615){const _0x797245=_0x41878f;if(_0xfbb615)return _0x4af5d0[_0x797245('0x65')]=_[_0x797245('0x3e')](db[_0x797245('0x2')][_0x797245('0x40')]),_0x4af5d0[_0x797245('0x5d')]=_[_0x797245('0x3e')](_0x1027f8[_0x797245('0x5d')]),_0x4af5d0['filters']=_[_0x797245('0x4c')](_0x4af5d0[_0x797245('0x65')],_0x4af5d0[_0x797245('0x5d')]),_0x43a7e6[_0x797245('0x37')]=_[_0x797245('0x4c')](_0x4af5d0[_0x797245('0x65')],qs[_0x797245('0x49')](_0x1027f8[_0x797245('0x5d')][_0x797245('0x49')])),_0x43a7e6[_0x797245('0x37')]=_0x43a7e6[_0x797245('0x37')]['length']?_0x43a7e6['attributes']:_0x4af5d0[_0x797245('0x65')],typeof _0x1027f8[_0x797245('0x5d')]['nolimit']==='undefined'&&(_0x43a7e6[_0x797245('0x38')]=qs['limit'](_0x1027f8[_0x797245('0x5d')][_0x797245('0x38')]),_0x43a7e6[_0x797245('0x3a')]=qs[_0x797245('0x3a')](_0x1027f8[_0x797245('0x5d')]['offset'])),_0x43a7e6['order']=qs[_0x797245('0x4d')](_0x1027f8[_0x797245('0x5d')][_0x797245('0x4d')]),_0x43a7e6[_0x797245('0x6d')]=qs[_0x797245('0x3f')](_[_0x797245('0x3d')](_0x1027f8[_0x797245('0x5d')],_0x4af5d0['filters'])),_0x43a7e6[_0x797245('0x6d')][_0x797245('0x1a')]=_0xfbb615['id'],_0x1027f8['query'][_0x797245('0x48')]&&(_0x43a7e6[_0x797245('0x6d')]=_[_0x797245('0x14')](_0x43a7e6[_0x797245('0x6d')],{[Op['or']]:_['map'](_0x43a7e6['attributes'],function(_0x2f2122){const _0x9128c6=_0x797245,_0x50415e={};return _0x50415e[_0x2f2122]={[Op[_0x9128c6('0x56')]]:'%'+_0x1027f8['query'][_0x9128c6('0x48')]+'%'},_0x50415e;})})),_0x43a7e6=_[_0x797245('0x14')]({},_0x43a7e6,_0x1027f8[_0x797245('0x46')]),db['CmHopper'][_0x797245('0x59')]({'where':_0x43a7e6[_0x797245('0x6d')]})[_0x797245('0x3c')](function(_0x217ccd){const _0x436a22=_0x797245;return _0x286d9[_0x436a22('0x59')]=_0x217ccd,_0x1027f8['query'][_0x436a22('0x8')]&&(_0x43a7e6[_0x436a22('0x52')]=[{'all':!![]}]),db['CmHopper'][_0x436a22('0x29')](_0x43a7e6);})[_0x797245('0x3c')](function(_0x3bafee){const _0x4d26b7=_0x797245;return _0x286d9[_0x4d26b7('0x2b')]=_0x3bafee,_0x286d9;});})[_0x41878f('0x3c')](respondWithFilteredResult(_0x1a534c,_0x43a7e6))[_0x41878f('0x47')](handleError(_0x1a534c,null));},exports[_0x3c4100('0x61')]=function(_0x39c181,_0x1e16ae){const _0x111390=_0x3c4100;let _0x210b38={'raw':!![],'where':{}};const _0x53be72={},_0x297068={'count':0x0,'rows':[]};return db[_0x111390('0x2f')]['findOne']({'where':{'id':_0x39c181[_0x111390('0x24')]['id']}})['then'](handleEntityNotFound(_0x1e16ae,null))[_0x111390('0x3c')](function(_0x1130ba){const _0x6aeebd=_0x111390;if(_0x1130ba)return _0x53be72['model']=_['keys'](db[_0x6aeebd('0x1')][_0x6aeebd('0x40')]),_0x53be72[_0x6aeebd('0x5d')]=_[_0x6aeebd('0x3e')](_0x39c181[_0x6aeebd('0x5d')]),_0x53be72[_0x6aeebd('0x3f')]=_[_0x6aeebd('0x4c')](_0x53be72[_0x6aeebd('0x65')],_0x53be72[_0x6aeebd('0x5d')]),_0x210b38['attributes']=_[_0x6aeebd('0x4c')](_0x53be72[_0x6aeebd('0x65')],qs[_0x6aeebd('0x49')](_0x39c181[_0x6aeebd('0x5d')][_0x6aeebd('0x49')])),_0x210b38['attributes']=_0x210b38[_0x6aeebd('0x37')]['length']?_0x210b38[_0x6aeebd('0x37')]:_0x53be72[_0x6aeebd('0x65')],typeof _0x39c181[_0x6aeebd('0x5d')][_0x6aeebd('0x1e')]===_0x6aeebd('0x4f')&&(_0x210b38[_0x6aeebd('0x38')]=qs[_0x6aeebd('0x38')](_0x39c181[_0x6aeebd('0x5d')]['limit']),_0x210b38[_0x6aeebd('0x3a')]=qs[_0x6aeebd('0x3a')](_0x39c181['query'][_0x6aeebd('0x3a')])),_0x210b38[_0x6aeebd('0x2c')]=qs[_0x6aeebd('0x4d')](_0x39c181[_0x6aeebd('0x5d')][_0x6aeebd('0x4d')]),_0x210b38[_0x6aeebd('0x6d')]=qs[_0x6aeebd('0x3f')](_[_0x6aeebd('0x3d')](_0x39c181['query'],_0x53be72['filters'])),_0x210b38[_0x6aeebd('0x6d')]['CampaignId']=_0x1130ba['id'],_0x39c181[_0x6aeebd('0x5d')]['filter']&&(_0x210b38[_0x6aeebd('0x6d')]=_['merge'](_0x210b38[_0x6aeebd('0x6d')],{[Op['or']]:_['map'](_0x210b38['attributes'],function(_0x2f05eb){const _0x4a9d8c=_0x6aeebd,_0x6e24ce={};return _0x6e24ce[_0x2f05eb]={[Op[_0x4a9d8c('0x56')]]:'%'+_0x39c181[_0x4a9d8c('0x5d')][_0x4a9d8c('0x48')]+'%'},_0x6e24ce;})})),_0x210b38=_[_0x6aeebd('0x14')]({},_0x210b38,_0x39c181[_0x6aeebd('0x46')]),db[_0x6aeebd('0x1')]['count']({'where':_0x210b38[_0x6aeebd('0x6d')]})['then'](function(_0x410f45){const _0x328bc3=_0x6aeebd;return _0x297068[_0x328bc3('0x59')]=_0x410f45,_0x39c181[_0x328bc3('0x5d')][_0x328bc3('0x8')]&&(_0x210b38[_0x328bc3('0x52')]=[{'all':!![]}]),db[_0x328bc3('0x1')][_0x328bc3('0x29')](_0x210b38);})['then'](function(_0x25d3f2){const _0x5245c3=_0x6aeebd;return _0x297068[_0x5245c3('0x2b')]=_0x25d3f2,_0x297068;});})[_0x111390('0x3c')](respondWithFilteredResult(_0x1e16ae,_0x210b38))[_0x111390('0x47')](handleError(_0x1e16ae,null));},exports['getHopperFinals']=function(_0x3446f7,_0x253c16){const _0x10a4e2=_0x3c4100;let _0x1203f2={'raw':!![],'where':{}};const _0x4e8b8b={},_0x17df6e={'count':0x0,'rows':[]};return db[_0x10a4e2('0x2f')]['findOne']({'where':{'id':_0x3446f7[_0x10a4e2('0x24')]['id']}})[_0x10a4e2('0x3c')](handleEntityNotFound(_0x253c16,null))[_0x10a4e2('0x3c')](function(_0x10cb75){const _0xa68bb8=_0x10a4e2;if(_0x10cb75)return _0x4e8b8b[_0xa68bb8('0x65')]=_[_0xa68bb8('0x3e')](db['CmHopperFinal'][_0xa68bb8('0x40')]),_0x4e8b8b[_0xa68bb8('0x5d')]=_[_0xa68bb8('0x3e')](_0x3446f7[_0xa68bb8('0x5d')]),_0x4e8b8b[_0xa68bb8('0x3f')]=_[_0xa68bb8('0x4c')](_0x4e8b8b[_0xa68bb8('0x65')],_0x4e8b8b[_0xa68bb8('0x5d')]),_0x1203f2[_0xa68bb8('0x37')]=_['intersection'](_0x4e8b8b[_0xa68bb8('0x65')],qs[_0xa68bb8('0x49')](_0x3446f7[_0xa68bb8('0x5d')][_0xa68bb8('0x49')])),_0x1203f2[_0xa68bb8('0x37')]=_0x1203f2[_0xa68bb8('0x37')][_0xa68bb8('0x1d')]?_0x1203f2[_0xa68bb8('0x37')]:_0x4e8b8b['model'],typeof _0x3446f7['query'][_0xa68bb8('0x1e')]==='undefined'&&(_0x1203f2[_0xa68bb8('0x38')]=qs['limit'](_0x3446f7[_0xa68bb8('0x5d')][_0xa68bb8('0x38')]),_0x1203f2[_0xa68bb8('0x3a')]=qs[_0xa68bb8('0x3a')](_0x3446f7[_0xa68bb8('0x5d')]['offset'])),_0x1203f2[_0xa68bb8('0x2c')]=qs[_0xa68bb8('0x4d')](_0x3446f7['query']['sort']),_0x1203f2[_0xa68bb8('0x6d')]=qs[_0xa68bb8('0x3f')](_[_0xa68bb8('0x3d')](_0x3446f7[_0xa68bb8('0x5d')],_0x4e8b8b[_0xa68bb8('0x3f')])),_0x1203f2['where'][_0xa68bb8('0x1a')]=_0x10cb75['id'],_0x3446f7[_0xa68bb8('0x5d')][_0xa68bb8('0x48')]&&(_0x1203f2[_0xa68bb8('0x6d')]=_[_0xa68bb8('0x14')](_0x1203f2['where'],{[Op['or']]:_[_0xa68bb8('0x25')](_0x1203f2[_0xa68bb8('0x37')],function(_0x4f7488){const _0x231122=_0xa68bb8,_0x1a365f={};return _0x1a365f[_0x4f7488]={[Op[_0x231122('0x56')]]:'%'+_0x3446f7[_0x231122('0x5d')][_0x231122('0x48')]+'%'},_0x1a365f;})})),_0x1203f2=_[_0xa68bb8('0x14')]({},_0x1203f2,_0x3446f7[_0xa68bb8('0x46')]),db[_0xa68bb8('0x62')][_0xa68bb8('0x59')]({'where':_0x1203f2[_0xa68bb8('0x6d')]})[_0xa68bb8('0x3c')](function(_0x366c13){const _0x54b74f=_0xa68bb8;return _0x17df6e[_0x54b74f('0x59')]=_0x366c13,_0x3446f7[_0x54b74f('0x5d')][_0x54b74f('0x8')]&&(_0x1203f2[_0x54b74f('0x52')]=[{'all':!![]}]),db[_0x54b74f('0x62')][_0x54b74f('0x29')](_0x1203f2);})['then'](function(_0x3e1bd9){const _0x2d1749=_0xa68bb8;return _0x17df6e[_0x2d1749('0x2b')]=_0x3e1bd9,_0x17df6e;});})[_0x10a4e2('0x3c')](respondWithFilteredResult(_0x253c16,_0x1203f2))[_0x10a4e2('0x47')](handleError(_0x253c16,null));},exports['getHopperBlacks']=function(_0x54969c,_0x4a7d48){const _0xeaf368=_0x3c4100;let _0x446e16={'raw':!![],'where':{}};const _0x137ce7={},_0x4abb49={'count':0x0,'rows':[]};return db[_0xeaf368('0x2f')][_0xeaf368('0x53')]({'where':{'id':_0x54969c['params']['id']}})[_0xeaf368('0x3c')](handleEntityNotFound(_0x4a7d48,null))['then'](function(_0x50dd8f){const _0x2fd694=_0xeaf368;if(_0x50dd8f)return _0x137ce7[_0x2fd694('0x65')]=_[_0x2fd694('0x3e')](db['CmHopperBlack'][_0x2fd694('0x40')]),_0x137ce7[_0x2fd694('0x5d')]=_[_0x2fd694('0x3e')](_0x54969c[_0x2fd694('0x5d')]),_0x137ce7[_0x2fd694('0x3f')]=_[_0x2fd694('0x4c')](_0x137ce7[_0x2fd694('0x65')],_0x137ce7[_0x2fd694('0x5d')]),_0x446e16[_0x2fd694('0x37')]=_['intersection'](_0x137ce7[_0x2fd694('0x65')],qs['fields'](_0x54969c[_0x2fd694('0x5d')][_0x2fd694('0x49')])),_0x446e16[_0x2fd694('0x37')]=_0x446e16[_0x2fd694('0x37')]['length']?_0x446e16[_0x2fd694('0x37')]:_0x137ce7[_0x2fd694('0x65')],typeof _0x54969c[_0x2fd694('0x5d')][_0x2fd694('0x1e')]==='undefined'&&(_0x446e16[_0x2fd694('0x38')]=qs['limit'](_0x54969c[_0x2fd694('0x5d')]['limit']),_0x446e16['offset']=qs[_0x2fd694('0x3a')](_0x54969c['query'][_0x2fd694('0x3a')])),_0x446e16[_0x2fd694('0x2c')]=qs['sort'](_0x54969c['query'][_0x2fd694('0x4d')]),_0x446e16[_0x2fd694('0x6d')]=qs[_0x2fd694('0x3f')](_['pick'](_0x54969c[_0x2fd694('0x5d')],_0x137ce7[_0x2fd694('0x3f')])),_0x446e16[_0x2fd694('0x6d')][_0x2fd694('0x1a')]=_0x50dd8f['id'],_0x54969c[_0x2fd694('0x5d')][_0x2fd694('0x48')]&&(_0x446e16[_0x2fd694('0x6d')]=_[_0x2fd694('0x14')](_0x446e16[_0x2fd694('0x6d')],{[Op['or']]:_[_0x2fd694('0x25')](_0x446e16['attributes'],function(_0x5a71b8){const _0x5a6137=_0x2fd694,_0x5b8cbc={};return _0x5b8cbc[_0x5a71b8]={[Op[_0x5a6137('0x56')]]:'%'+_0x54969c[_0x5a6137('0x5d')][_0x5a6137('0x48')]+'%'},_0x5b8cbc;})})),_0x446e16=_[_0x2fd694('0x14')]({},_0x446e16,_0x54969c[_0x2fd694('0x46')]),db[_0x2fd694('0x2e')][_0x2fd694('0x59')]({'where':_0x446e16[_0x2fd694('0x6d')]})[_0x2fd694('0x3c')](function(_0x414440){const _0x5716b1=_0x2fd694;return _0x4abb49['count']=_0x414440,_0x54969c[_0x5716b1('0x5d')][_0x5716b1('0x8')]&&(_0x446e16['include']=[{'all':!![]}]),db[_0x5716b1('0x2e')]['findAll'](_0x446e16);})[_0x2fd694('0x3c')](function(_0xfda9e){return _0x4abb49['rows']=_0xfda9e,_0x4abb49;});})['then'](respondWithFilteredResult(_0x4a7d48,_0x446e16))[_0xeaf368('0x47')](handleError(_0x4a7d48,null));},exports['getLists']=function(_0xd0c087,_0x5be238){const _0x147411=_0x3c4100;let _0x1a74ed={};const _0x93630a={};let _0x3a1efe,_0x35127f;return db[_0x147411('0x2f')][_0x147411('0x53')]({'where':{'id':_0xd0c087[_0x147411('0x24')]['id']}})[_0x147411('0x3c')](handleEntityNotFound(_0x5be238,null))['then'](function(_0x17176d){const _0x256211=_0x147411;if(_0x17176d)return _0x3a1efe=_0x17176d,_0x93630a[_0x256211('0x65')]=_[_0x256211('0x3e')](db[_0x256211('0x18')][_0x256211('0x40')]),_0x93630a[_0x256211('0x5d')]=_[_0x256211('0x3e')](_0xd0c087[_0x256211('0x5d')]),_0x93630a['filters']=_[_0x256211('0x4c')](_0x93630a[_0x256211('0x65')],_0x93630a[_0x256211('0x5d')]),_0x1a74ed[_0x256211('0x37')]=_['intersection'](_0x93630a[_0x256211('0x65')],qs[_0x256211('0x49')](_0xd0c087[_0x256211('0x5d')][_0x256211('0x49')])),_0x1a74ed[_0x256211('0x37')]=_0x1a74ed['attributes'][_0x256211('0x1d')]?_0x1a74ed[_0x256211('0x37')]:_0x93630a[_0x256211('0x65')],_0x1a74ed[_0x256211('0x2c')]=qs[_0x256211('0x4d')](_0xd0c087[_0x256211('0x5d')]['sort']),_0x1a74ed[_0x256211('0x6d')]=qs[_0x256211('0x3f')](_[_0x256211('0x3d')](_0xd0c087[_0x256211('0x5d')],_0x93630a[_0x256211('0x3f')])),_0xd0c087[_0x256211('0x5d')]['filter']&&(_0x1a74ed['where']=_[_0x256211('0x14')](_0x1a74ed[_0x256211('0x6d')],{[Op['or']]:_[_0x256211('0x25')](_0x1a74ed['attributes'],function(_0x39c0dd){const _0x290dfe=_0x256211,_0x5cee22={};return _0x5cee22[_0x39c0dd]={[Op[_0x290dfe('0x56')]]:'%'+_0xd0c087[_0x290dfe('0x5d')][_0x290dfe('0x48')]+'%'},_0x5cee22;})})),_0x1a74ed=_[_0x256211('0x14')]({},_0x1a74ed,_0xd0c087['options']),_0x3a1efe[_0x256211('0x12')](_0x1a74ed);})[_0x147411('0x3c')](function(_0x55a2d8){const _0x4c608b=_0x147411;if(_0x55a2d8)return _0x35127f=_0x55a2d8['length'],typeof _0xd0c087['query'][_0x4c608b('0x1e')]==='undefined'&&(_0x1a74ed[_0x4c608b('0x38')]=qs[_0x4c608b('0x38')](_0xd0c087[_0x4c608b('0x5d')]['limit']),_0x1a74ed[_0x4c608b('0x3a')]=qs[_0x4c608b('0x3a')](_0xd0c087[_0x4c608b('0x5d')][_0x4c608b('0x3a')])),_0x3a1efe[_0x4c608b('0x12')](_0x1a74ed);})[_0x147411('0x3c')](function(_0x243989){if(_0x243989)return _0x243989?{'count':_0x35127f,'rows':_0x243989}:null;})['then'](respondWithResult(_0x5be238,null))['catch'](handleError(_0x5be238,null));},exports[_0x3c4100('0x20')]=function(_0x576946,_0x4ab9ee){const _0x9cd76c=_0x3c4100;let _0x38663d,_0x4dcacb;return db[_0x9cd76c('0x2f')]['findOne']({'where':{'id':_0x576946[_0x9cd76c('0x24')]['id']}})['then'](handleEntityNotFound(_0x4ab9ee,null))[_0x9cd76c('0x3c')](function(_0x28b8e1){const _0x57c5db=_0x9cd76c;if(_0x28b8e1)return _0x4dcacb=_0x28b8e1,_0x28b8e1[_0x57c5db('0x20')](_0x576946[_0x57c5db('0x10')]['ids'],{'through':_['omit'](_0x576946[_0x57c5db('0x10')],[_0x57c5db('0x30'),'id'])});return null;})[_0x9cd76c('0x3c')](function(_0x16a305){const _0x34170b=_0x9cd76c;let _0x1752ab;_0x38663d=_0x16a305||[];const _0x454ad4=[];if(_0x16a305){for(let _0x8b6491=0x0;_0x8b6491<_0x16a305['length'];_0x8b6491+=0x1){const _0x466c2d=_0x16a305[_0x8b6491][_0x34170b('0x6c')]({'plain':!![]});_0x4dcacb[_0x34170b('0x11')]=_0x576946[_0x34170b('0x10')][_0x34170b('0x11')]?_0x576946['body'][_0x34170b('0x11')]:_0x4dcacb[_0x34170b('0x11')];switch(_0x4dcacb[_0x34170b('0x11')]){case'always':_0x1752ab=squel['insert']()[_0x34170b('0x69')](_0x34170b('0x67'))[_0x34170b('0x6a')]([_0x34170b('0x4b'),_0x34170b('0x5a'),_0x34170b('0x3b'),'ListId','CampaignId',_0x34170b('0x16'),'updatedAt'],squel[_0x34170b('0x27')]()['field'](_0x34170b('0x4b'),'phone')['field']('NOW()','scheduledAt')[_0x34170b('0x4')]('id','ContactId')[_0x34170b('0x4')](_0x466c2d[_0x34170b('0x1b')][_0x34170b('0x5f')](),_0x34170b('0x1c'))[_0x34170b('0x4')](_0x576946[_0x34170b('0x24')]['id'][_0x34170b('0x5f')](),_0x34170b('0x1a'))['field']('NOW()',_0x34170b('0x16'))[_0x34170b('0x4')](_0x34170b('0x2a'),_0x34170b('0x19'))['from'](_0x34170b('0x6'))['where']('deletedAt\x20IS\x20NULL')[_0x34170b('0x6d')]('ListId\x20=\x20?',_0x466c2d[_0x34170b('0x1b')][_0x34170b('0x5f')]())[_0x34170b('0x6d')](_0x34170b('0x34'))[_0x34170b('0x6d')](_0x34170b('0x21'),squel['select']()[_0x34170b('0x4')](_0x34170b('0x6b'))['from'](_0x34170b('0x60'))[_0x34170b('0x6d')](_0x34170b('0x33'),_0x576946[_0x34170b('0x24')]['id'][_0x34170b('0x5f')]()))[_0x34170b('0x6d')]('phone\x20NOT\x20IN\x20(?)',squel[_0x34170b('0x27')]()[_0x34170b('0x4')]('COALESCE(phone,\x27\x27)')['from']('cm_hopper')[_0x34170b('0x6d')]('CampaignId\x20=\x20?',_0x576946[_0x34170b('0x24')]['id']['toString']())))[_0x34170b('0x5f')]();break;case _0x34170b('0x32'):_0x1752ab=squel['insert']()[_0x34170b('0x69')](_0x34170b('0x67'))[_0x34170b('0x6a')]([_0x34170b('0x4b'),_0x34170b('0x5a'),_0x34170b('0x3b'),'ListId',_0x34170b('0x1a'),_0x34170b('0x16'),_0x34170b('0x19')],squel['select']()[_0x34170b('0x4')]('phone','phone')[_0x34170b('0x4')](_0x34170b('0x2a'),_0x34170b('0x5a'))['field']('id',_0x34170b('0x3b'))[_0x34170b('0x4')](_0x466c2d[_0x34170b('0x1b')][_0x34170b('0x5f')](),'ListId')[_0x34170b('0x4')](_0x576946[_0x34170b('0x24')]['id'][_0x34170b('0x5f')](),_0x34170b('0x1a'))[_0x34170b('0x4')](_0x34170b('0x2a'),'createdAt')['field'](_0x34170b('0x2a'),_0x34170b('0x19'))['from']('cm_contacts')[_0x34170b('0x6d')](_0x34170b('0x63'))[_0x34170b('0x6d')](_0x34170b('0x68'),_0x466c2d['CmListId'][_0x34170b('0x5f')]())[_0x34170b('0x6d')](_0x34170b('0x34'))[_0x34170b('0x6d')]('phone\x20NOT\x20IN\x20(?)',squel[_0x34170b('0x27')]()[_0x34170b('0x4')](_0x34170b('0x23'))['from'](_0x34170b('0x67'))[_0x34170b('0x6d')]('CampaignId\x20=\x20?',_0x576946[_0x34170b('0x24')]['id']['toString']())))[_0x34170b('0x5f')]();break;default:_0x1752ab=squel[_0x34170b('0x42')]()['into'](_0x34170b('0x67'))[_0x34170b('0x6a')]([_0x34170b('0x4b'),_0x34170b('0x5a'),_0x34170b('0x3b'),_0x34170b('0x1c'),_0x34170b('0x1a'),_0x34170b('0x16'),_0x34170b('0x19')],squel[_0x34170b('0x27')]()[_0x34170b('0x4')]('phone','phone')[_0x34170b('0x4')]('NOW()',_0x34170b('0x5a'))[_0x34170b('0x4')]('id',_0x34170b('0x3b'))[_0x34170b('0x4')](_0x466c2d[_0x34170b('0x1b')]['toString'](),_0x34170b('0x1c'))[_0x34170b('0x4')](_0x576946['params']['id']['toString'](),'CampaignId')[_0x34170b('0x4')](_0x34170b('0x2a'),_0x34170b('0x16'))['field'](_0x34170b('0x2a'),_0x34170b('0x19'))[_0x34170b('0xc')](_0x34170b('0x6'))[_0x34170b('0x6d')](_0x34170b('0x63'))['where'](_0x34170b('0x68'),_0x466c2d[_0x34170b('0x1b')][_0x34170b('0x5f')]())[_0x34170b('0x6d')](_0x34170b('0x34')))[_0x34170b('0x5f')]();}_0x454ad4[_0x34170b('0xb')](db[_0x34170b('0x45')][_0x34170b('0x5d')](_0x1752ab));}return Promise[_0x34170b('0x39')](_0x454ad4);}})[_0x9cd76c('0x3c')](function(){return _0x38663d;})[_0x9cd76c('0x3c')](respondWithResult(_0x4ab9ee,null))['catch'](handleError(_0x4ab9ee,null));},exports['removeLists']=function(_0x381fe4,_0x1a83b6){const _0x47bade=_0x3c4100;return db[_0x47bade('0x2f')]['findOne']({'where':{'id':_0x381fe4[_0x47bade('0x24')]['id']}})[_0x47bade('0x3c')](handleEntityNotFound(_0x1a83b6,null))[_0x47bade('0x3c')](function(_0x325817){const _0x1776a6=_0x47bade;if(_0x325817)return _0x325817[_0x1776a6('0x28')](_0x381fe4['query'][_0x1776a6('0x30')]);})[_0x47bade('0x3c')](function(_0x5707e7){const _0x29eadb=_0x47bade;if(_0x5707e7)return db[_0x29eadb('0x2')][_0x29eadb('0x43')]({'where':{'ListId':_0x381fe4['query'][_0x29eadb('0x30')],'CampaignId':_0x381fe4[_0x29eadb('0x24')]['id']}})[_0x29eadb('0x3c')](function(){return _0x5707e7;});})[_0x47bade('0x3c')](respondWithStatusCode(_0x1a83b6,null))[_0x47bade('0x47')](handleError(_0x1a83b6,null));},exports[_0x3c4100('0x50')]=function(_0x52598b,_0x1f7fc6){const _0x4f60b=_0x3c4100;let _0x686490={'raw':!![],'where':{}};const _0x23d357={},_0x1c252e={'count':0x0,'rows':[]};return db[_0x4f60b('0x2f')][_0x4f60b('0x53')]({'where':{'id':_0x52598b['params']['id']}})[_0x4f60b('0x3c')](handleEntityNotFound(_0x1f7fc6,null))[_0x4f60b('0x3c')](function(_0x565a0a){const _0x303a3b=_0x4f60b;if(_0x565a0a)return _0x23d357['model']=_[_0x303a3b('0x3e')](db[_0x303a3b('0x18')][_0x303a3b('0x40')]),_0x23d357[_0x303a3b('0x5d')]=_[_0x303a3b('0x3e')](_0x52598b[_0x303a3b('0x5d')]),_0x23d357['filters']=_['intersection'](_0x23d357[_0x303a3b('0x65')],_0x23d357[_0x303a3b('0x5d')]),_0x686490['attributes']=_[_0x303a3b('0x4c')](_0x23d357[_0x303a3b('0x65')],qs['fields'](_0x52598b[_0x303a3b('0x5d')]['fields'])),_0x686490[_0x303a3b('0x37')]=_0x686490[_0x303a3b('0x37')][_0x303a3b('0x1d')]?_0x686490['attributes']:_0x23d357[_0x303a3b('0x65')],typeof _0x52598b[_0x303a3b('0x5d')]['nolimit']==='undefined'&&(_0x686490[_0x303a3b('0x38')]=qs[_0x303a3b('0x38')](_0x52598b['query']['limit']),_0x686490[_0x303a3b('0x3a')]=qs[_0x303a3b('0x3a')](_0x52598b[_0x303a3b('0x5d')][_0x303a3b('0x3a')])),_0x686490[_0x303a3b('0x2c')]=qs[_0x303a3b('0x4d')](_0x52598b['query'][_0x303a3b('0x4d')]),_0x686490[_0x303a3b('0x6d')]=qs[_0x303a3b('0x3f')](_[_0x303a3b('0x3d')](_0x52598b[_0x303a3b('0x5d')],_0x23d357[_0x303a3b('0x3f')])),_0x686490[_0x303a3b('0x6d')]['CampaignId']=_0x565a0a['id'],_0x52598b['query']['filter']&&(_0x686490['where']=_[_0x303a3b('0x14')](_0x686490[_0x303a3b('0x6d')],{[Op['or']]:_[_0x303a3b('0x25')](_0x686490[_0x303a3b('0x37')],function(_0x58933f){const _0x5d6222={};return _0x5d6222[_0x58933f]={[Op['like']]:'%'+_0x52598b['query']['filter']+'%'},_0x5d6222;})})),_0x686490=_[_0x303a3b('0x14')]({},_0x686490,_0x52598b[_0x303a3b('0x46')]),db['CmList'][_0x303a3b('0x59')]({'where':_0x686490[_0x303a3b('0x6d')]})[_0x303a3b('0x3c')](function(_0x196f02){const _0x476274=_0x303a3b;return _0x1c252e[_0x476274('0x59')]=_0x196f02,_0x52598b[_0x476274('0x5d')][_0x476274('0x8')]&&(_0x686490[_0x476274('0x52')]=[{'all':!![]}]),db[_0x476274('0x18')]['findAll'](_0x686490);})['then'](function(_0x5b7a43){const _0x382c47=_0x303a3b;return _0x1c252e[_0x382c47('0x2b')]=_0x5b7a43,_0x1c252e;});})[_0x4f60b('0x3c')](respondWithFilteredResult(_0x1f7fc6,_0x686490))[_0x4f60b('0x47')](handleError(_0x1f7fc6,null));},exports[_0x3c4100('0x64')]=function(_0x53dee5,_0x57516f){const _0x339e66=_0x3c4100;let _0x26c64b;return db[_0x339e66('0x2f')][_0x339e66('0x53')]({'where':{'id':_0x53dee5[_0x339e66('0x24')]['id']}})[_0x339e66('0x3c')](handleEntityNotFound(_0x57516f,null))[_0x339e66('0x3c')](function(_0x12adbb){const _0x27ed49=_0x339e66;if(_0x12adbb)return _0x12adbb[_0x27ed49('0x64')](_0x53dee5['body']['ids'],{'through':_[_0x27ed49('0x9')](_0x53dee5['body'],[_0x27ed49('0x30'),'id'])});return null;})[_0x339e66('0x3c')](function(_0x156223){const _0xf2f72d=_0x339e66;let _0x3e16c2;_0x26c64b=_0x156223||[];const _0x58d1c8=[];if(_0x156223){for(let _0x3702e9=0x0;_0x3702e9<_0x156223['length'];_0x3702e9+=0x1){const _0x5c96a6=_0x156223[_0x3702e9][_0xf2f72d('0x6c')]({'plain':!![]});_0x3e16c2=squel['insert']()['into']('cm_hopper_black')[_0xf2f72d('0x6a')]([_0xf2f72d('0x4b'),_0xf2f72d('0x3b'),_0xf2f72d('0x1c'),_0xf2f72d('0x1a'),_0xf2f72d('0x16'),_0xf2f72d('0x19')],squel[_0xf2f72d('0x27')]()[_0xf2f72d('0x4')](_0xf2f72d('0x4b'),'phone')[_0xf2f72d('0x4')]('id','ContactId')['field'](_0x5c96a6[_0xf2f72d('0x1b')][_0xf2f72d('0x5f')](),'ListId')[_0xf2f72d('0x4')](_0x53dee5[_0xf2f72d('0x24')]['id'][_0xf2f72d('0x5f')](),_0xf2f72d('0x1a'))['field'](_0xf2f72d('0x2a'),'createdAt')[_0xf2f72d('0x4')](_0xf2f72d('0x2a'),_0xf2f72d('0x19'))['from']('cm_contacts')[_0xf2f72d('0x6d')]('deletedAt\x20IS\x20NULL')[_0xf2f72d('0x6d')](_0xf2f72d('0x68'),_0x5c96a6[_0xf2f72d('0x1b')]['toString']())['where'](_0xf2f72d('0x34')))[_0xf2f72d('0x5f')](),_0x58d1c8[_0xf2f72d('0xb')](db[_0xf2f72d('0x45')][_0xf2f72d('0x5d')](_0x3e16c2));}return Promise['all'](_0x58d1c8);}})[_0x339e66('0x3c')](function(){return _0x26c64b;})[_0x339e66('0x3c')](respondWithResult(_0x57516f,null))[_0x339e66('0x47')](handleError(_0x57516f,null));},exports[_0x3c4100('0x7')]=function(_0x31efba,_0x175286){const _0x5613c7=_0x3c4100;return db[_0x5613c7('0x2f')]['findOne']({'where':{'id':_0x31efba[_0x5613c7('0x24')]['id']}})['then'](handleEntityNotFound(_0x175286,null))[_0x5613c7('0x3c')](function(_0x3818f8){const _0x49aca1=_0x5613c7;if(_0x3818f8)return _0x3818f8[_0x49aca1('0x7')](_0x31efba[_0x49aca1('0x5d')][_0x49aca1('0x30')]);})['then'](function(_0x35e42b){const _0xfffdfc=_0x5613c7;if(_0x35e42b)return db[_0xfffdfc('0x2e')]['destroy']({'where':{'ListId':_0x31efba['query'][_0xfffdfc('0x30')],'CampaignId':_0x31efba[_0xfffdfc('0x24')]['id']}})[_0xfffdfc('0x3c')](function(){return _0x35e42b;});})[_0x5613c7('0x3c')](respondWithStatusCode(_0x175286,null))[_0x5613c7('0x47')](handleError(_0x175286,null));}; \ No newline at end of file diff --git a/server/api/campaign/campaign.model.js b/server/api/campaign/campaign.model.js index db4b197..ae61a02 100644 --- a/server/api/campaign/campaign.model.js +++ b/server/api/campaign/campaign.model.js @@ -1 +1 @@ -const a43_0x210e=['exports','campaigns','Campaign','./campaign.attributes'];(function(_0x493454,_0x210e7b){const _0x38f577=function(_0x55ed1a){while(--_0x55ed1a){_0x493454['push'](_0x493454['shift']());}};_0x38f577(++_0x210e7b);}(a43_0x210e,0xd3));const a43_0x38f5=function(_0x493454,_0x210e7b){_0x493454=_0x493454-0x0;let _0x38f577=a43_0x210e[_0x493454];return _0x38f577;};const _0x5e1f11=a43_0x38f5;'use strict';const attributes=require(_0x5e1f11('0x0'));module[_0x5e1f11('0x1')]=function(_0x55ed1a){const _0x11121c=_0x5e1f11,_0x1518be=_0x55ed1a['define'](_0x11121c('0x3'),attributes,{'tableName':_0x11121c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1518be;}; \ No newline at end of file +const a43_0x40a8=['./campaign.attributes','campaigns','Campaign','define'];(function(_0x26e54a,_0x40a81d){const _0x2109e5=function(_0x4bbd01){while(--_0x4bbd01){_0x26e54a['push'](_0x26e54a['shift']());}};_0x2109e5(++_0x40a81d);}(a43_0x40a8,0x1da));const a43_0x2109=function(_0x26e54a,_0x40a81d){_0x26e54a=_0x26e54a-0x0;let _0x2109e5=a43_0x40a8[_0x26e54a];return _0x2109e5;};const _0x1e5843=a43_0x2109;'use strict';const attributes=require(_0x1e5843('0x2'));module['exports']=function(_0x4bbd01){const _0x5ac5b5=_0x1e5843,_0x481663=_0x4bbd01[_0x5ac5b5('0x1')](_0x5ac5b5('0x0'),attributes,{'tableName':_0x5ac5b5('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x481663;}; \ No newline at end of file diff --git a/server/api/campaign/campaign.rpc.js b/server/api/campaign/campaign.rpc.js index 0dd382d..ec7978d 100644 --- a/server/api/campaign/campaign.rpc.js +++ b/server/api/campaign/campaign.rpc.js @@ -1 +1 @@ -const a44_0xb6c6=['message','../../mysqldb','findAll','rpc','GetCampaign','include','limit','error','map','info','where','raw','../../config/logger','model','attributes','stringify','options'];(function(_0x58cdc6,_0xb6c656){const _0x251adb=function(_0x18f4b6){while(--_0x18f4b6){_0x58cdc6['push'](_0x58cdc6['shift']());}};_0x251adb(++_0xb6c656);}(a44_0xb6c6,0xc1));const a44_0x251a=function(_0x58cdc6,_0xb6c656){_0x58cdc6=_0x58cdc6-0x0;let _0x251adb=a44_0xb6c6[_0x58cdc6];return _0x251adb;};const _0x3cf3d3=a44_0x251a;'use strict';const _=require('lodash'),db=require(_0x3cf3d3('0xc'))['db'],logger=require(_0x3cf3d3('0x6'))(_0x3cf3d3('0xe'));exports[_0x3cf3d3('0xf')]=function(_0x18f4b6){const _0x4d5842=this;return new Promise(function(_0x2895d2,_0x4ed4e1){const _0x30ba23=a44_0x251a;return db['Campaign'][_0x30ba23('0xd')]({'raw':_0x18f4b6[_0x30ba23('0xa')]?_0x18f4b6['options'][_0x30ba23('0x5')]===undefined?!![]:![]:!![],'where':_0x18f4b6[_0x30ba23('0xa')]?_0x18f4b6['options'][_0x30ba23('0x4')]||null:null,'attributes':_0x18f4b6[_0x30ba23('0xa')]?_0x18f4b6[_0x30ba23('0xa')][_0x30ba23('0x8')]||null:null,'limit':_0x18f4b6[_0x30ba23('0xa')]?_0x18f4b6[_0x30ba23('0xa')][_0x30ba23('0x0')]||null:null,'include':_0x18f4b6[_0x30ba23('0xa')]?_0x18f4b6[_0x30ba23('0xa')][_0x30ba23('0x10')]?_['map'](_0x18f4b6[_0x30ba23('0xa')][_0x30ba23('0x10')],function(_0x142b7f){const _0x9045cc=_0x30ba23;return{'model':db[_0x142b7f[_0x9045cc('0x7')]],'as':_0x142b7f['as'],'attributes':_0x142b7f['attributes'],'include':_0x142b7f[_0x9045cc('0x10')]?_[_0x9045cc('0x2')](_0x142b7f[_0x9045cc('0x10')],function(_0x3b9142){const _0x18438e=_0x9045cc;return{'model':db[_0x3b9142[_0x18438e('0x7')]],'as':_0x3b9142['as'],'attributes':_0x3b9142[_0x18438e('0x8')],'include':_0x3b9142[_0x18438e('0x10')]?_[_0x18438e('0x2')](_0x3b9142[_0x18438e('0x10')],function(_0x5070aa){const _0x34b765=_0x18438e;return{'model':db[_0x5070aa['model']],'as':_0x5070aa['as'],'attributes':_0x5070aa[_0x34b765('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x43fbac){const _0x1b2690=_0x30ba23;logger[_0x1b2690('0x3')]('GetCampaign',_0x18f4b6),logger['debug'](_0x1b2690('0xf'),_0x18f4b6,JSON[_0x1b2690('0x9')](_0x43fbac)),_0x2895d2(_0x43fbac);})['catch'](function(_0x3243f7){const _0x1cf767=_0x30ba23;logger[_0x1cf767('0x1')](_0x1cf767('0xf'),_0x3243f7[_0x1cf767('0xb')],_0x18f4b6),_0x4ed4e1(_0x4d5842[_0x1cf767('0x1')](0x1f4,_0x3243f7[_0x1cf767('0xb')]));});});}; \ No newline at end of file +const a44_0x1bb4=['findAll','where','../../config/logger','lodash','include','error','map','debug','limit','GetCampaign','attributes','options','model','raw','message','then','stringify'];(function(_0x5171e9,_0x1bb4d0){const _0x5d112e=function(_0x5e089e){while(--_0x5e089e){_0x5171e9['push'](_0x5171e9['shift']());}};_0x5d112e(++_0x1bb4d0);}(a44_0x1bb4,0xa0));const a44_0x5d11=function(_0x5171e9,_0x1bb4d0){_0x5171e9=_0x5171e9-0x0;let _0x5d112e=a44_0x1bb4[_0x5171e9];return _0x5d112e;};const _0x11e3de=a44_0x5d11;'use strict';const _=require(_0x11e3de('0xd')),db=require('../../mysqldb')['db'],logger=require(_0x11e3de('0xc'))('rpc');exports[_0x11e3de('0x2')]=function(_0x5e089e){const _0x29860d=this;return new Promise(function(_0x461c55,_0x43b8c9){const _0x479904=a44_0x5d11;return db['Campaign'][_0x479904('0xa')]({'raw':_0x5e089e[_0x479904('0x4')]?_0x5e089e[_0x479904('0x4')][_0x479904('0x6')]===undefined?!![]:![]:!![],'where':_0x5e089e['options']?_0x5e089e[_0x479904('0x4')][_0x479904('0xb')]||null:null,'attributes':_0x5e089e[_0x479904('0x4')]?_0x5e089e[_0x479904('0x4')][_0x479904('0x3')]||null:null,'limit':_0x5e089e['options']?_0x5e089e[_0x479904('0x4')][_0x479904('0x1')]||null:null,'include':_0x5e089e[_0x479904('0x4')]?_0x5e089e[_0x479904('0x4')][_0x479904('0xe')]?_['map'](_0x5e089e['options'][_0x479904('0xe')],function(_0x18740c){const _0x1f5d61=_0x479904;return{'model':db[_0x18740c[_0x1f5d61('0x5')]],'as':_0x18740c['as'],'attributes':_0x18740c['attributes'],'include':_0x18740c[_0x1f5d61('0xe')]?_[_0x1f5d61('0x10')](_0x18740c[_0x1f5d61('0xe')],function(_0x1877c5){const _0x558e82=_0x1f5d61;return{'model':db[_0x1877c5[_0x558e82('0x5')]],'as':_0x1877c5['as'],'attributes':_0x1877c5[_0x558e82('0x3')],'include':_0x1877c5[_0x558e82('0xe')]?_['map'](_0x1877c5[_0x558e82('0xe')],function(_0x7bdcf5){const _0x3d5b5b=_0x558e82;return{'model':db[_0x7bdcf5['model']],'as':_0x7bdcf5['as'],'attributes':_0x7bdcf5[_0x3d5b5b('0x3')]};}):[]};}):[]};}):[]:[]})[_0x479904('0x8')](function(_0x51ac5e){const _0x3488ff=_0x479904;logger['info'](_0x3488ff('0x2'),_0x5e089e),logger[_0x3488ff('0x0')]('GetCampaign',_0x5e089e,JSON[_0x3488ff('0x9')](_0x51ac5e)),_0x461c55(_0x51ac5e);})['catch'](function(_0x3e3f99){const _0x569dec=_0x479904;logger[_0x569dec('0xf')](_0x569dec('0x2'),_0x3e3f99['message'],_0x5e089e),_0x43b8c9(_0x29860d[_0x569dec('0xf')](0x1f4,_0x3e3f99[_0x569dec('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/campaign/index.js b/server/api/campaign/index.js index 0ea3d1b..121b845 100644 --- a/server/api/campaign/index.js +++ b/server/api/campaign/index.js @@ -1 +1 @@ -const a45_0x5347=['/:id','exports','get','removeLists','../../components/auth/service','getHopperFinals','show','removeBlackLists','create','getHopperHistories','isAuthenticated','index','destroy','getHopperBlacks','update','/:id/lists','getHoppers','put','clone','/:id/hoppers','/:id/hopper_black','delete','post','/:id/blacklists','Router','/:id/clone','addBlackLists','./campaign.controller','express'];(function(_0x197ccb,_0x53478f){const _0x2c819a=function(_0x20db7a){while(--_0x20db7a){_0x197ccb['push'](_0x197ccb['shift']());}};_0x2c819a(++_0x53478f);}(a45_0x5347,0xf9));const a45_0x2c81=function(_0x197ccb,_0x53478f){_0x197ccb=_0x197ccb-0x0;let _0x2c819a=a45_0x5347[_0x197ccb];return _0x2c819a;};const _0x5e651f=a45_0x2c81;'use strict';const express=require(_0x5e651f('0xb')),router=express[_0x5e651f('0x7')](),auth=require(_0x5e651f('0x10')),controller=require(_0x5e651f('0xa'));router[_0x5e651f('0xe')]('/',auth['isAuthenticated'](),controller[_0x5e651f('0x17')]),router[_0x5e651f('0xe')](_0x5e651f('0xc'),auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x12')]),router[_0x5e651f('0xe')](_0x5e651f('0x2'),auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x1c')]),router[_0x5e651f('0xe')]('/:id/hopper_histories',auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x15')]),router[_0x5e651f('0xe')]('/:id/hopper_finals',auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x11')]),router[_0x5e651f('0xe')](_0x5e651f('0x3'),auth['isAuthenticated'](),controller[_0x5e651f('0x19')]),router[_0x5e651f('0xe')](_0x5e651f('0x1b'),auth[_0x5e651f('0x16')](),controller['getLists']),router[_0x5e651f('0xe')](_0x5e651f('0x6'),auth[_0x5e651f('0x16')](),controller['getBlackLists']),router[_0x5e651f('0x5')]('/',auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x14')]),router[_0x5e651f('0x5')](_0x5e651f('0x8'),auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x1')]),router[_0x5e651f('0x5')](_0x5e651f('0x1b'),auth['isAuthenticated'](),controller['addLists']),router['post']('/:id/blacklists',auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x9')]),router[_0x5e651f('0x0')](_0x5e651f('0xc'),auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x1a')]),router[_0x5e651f('0x4')](_0x5e651f('0xc'),auth['isAuthenticated'](),controller[_0x5e651f('0x18')]),router[_0x5e651f('0x4')](_0x5e651f('0x1b'),auth[_0x5e651f('0x16')](),controller[_0x5e651f('0xf')]),router[_0x5e651f('0x4')]('/:id/blacklists',auth[_0x5e651f('0x16')](),controller[_0x5e651f('0x13')]),module[_0x5e651f('0xd')]=router; \ No newline at end of file +const a45_0x43de=['getBlackLists','/:id/clone','getLists','removeBlackLists','get','getHopperHistories','post','create','put','../../components/auth/service','exports','/:id/blacklists','getHopperBlacks','isAuthenticated','getHopperFinals','clone','./campaign.controller','addBlackLists','/:id/hopper_histories','removeLists','destroy','/:id','addLists','Router','update','index','delete','express'];(function(_0x48c56b,_0x43de90){const _0x1d1650=function(_0x2908ca){while(--_0x2908ca){_0x48c56b['push'](_0x48c56b['shift']());}};_0x1d1650(++_0x43de90);}(a45_0x43de,0x12d));const a45_0x1d16=function(_0x48c56b,_0x43de90){_0x48c56b=_0x48c56b-0x0;let _0x1d1650=a45_0x43de[_0x48c56b];return _0x1d1650;};const _0x441596=a45_0x1d16;'use strict';const express=require(_0x441596('0x6')),router=express[_0x441596('0x2')](),auth=require(_0x441596('0x10')),controller=require(_0x441596('0x17'));router[_0x441596('0xb')]('/',auth[_0x441596('0x14')](),controller[_0x441596('0x4')]),router[_0x441596('0xb')](_0x441596('0x0'),auth[_0x441596('0x14')](),controller['show']),router['get']('/:id/hoppers',auth[_0x441596('0x14')](),controller['getHoppers']),router['get'](_0x441596('0x19'),auth[_0x441596('0x14')](),controller[_0x441596('0xc')]),router['get']('/:id/hopper_finals',auth['isAuthenticated'](),controller[_0x441596('0x15')]),router['get']('/:id/hopper_black',auth[_0x441596('0x14')](),controller[_0x441596('0x13')]),router[_0x441596('0xb')]('/:id/lists',auth[_0x441596('0x14')](),controller[_0x441596('0x9')]),router[_0x441596('0xb')](_0x441596('0x12'),auth[_0x441596('0x14')](),controller[_0x441596('0x7')]),router[_0x441596('0xd')]('/',auth[_0x441596('0x14')](),controller[_0x441596('0xe')]),router[_0x441596('0xd')](_0x441596('0x8'),auth[_0x441596('0x14')](),controller[_0x441596('0x16')]),router[_0x441596('0xd')]('/:id/lists',auth['isAuthenticated'](),controller[_0x441596('0x1')]),router[_0x441596('0xd')]('/:id/blacklists',auth['isAuthenticated'](),controller[_0x441596('0x18')]),router[_0x441596('0xf')](_0x441596('0x0'),auth[_0x441596('0x14')](),controller[_0x441596('0x3')]),router[_0x441596('0x5')](_0x441596('0x0'),auth[_0x441596('0x14')](),controller[_0x441596('0x1b')]),router[_0x441596('0x5')]('/:id/lists',auth['isAuthenticated'](),controller[_0x441596('0x1a')]),router[_0x441596('0x5')](_0x441596('0x12'),auth['isAuthenticated'](),controller[_0x441596('0xa')]),module[_0x441596('0x11')]=router; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.attributes.js b/server/api/cannedAnswer/cannedAnswer.attributes.js index d0dcc0c..27fff79 100644 --- a/server/api/cannedAnswer/cannedAnswer.attributes.js +++ b/server/api/cannedAnswer/cannedAnswer.attributes.js @@ -1 +1 @@ -const a46_0x209c=['sequelize','key','TEXT','STRING','exports'];(function(_0x155313,_0x209ce1){const _0x53cbf3=function(_0x1cb3f7){while(--_0x1cb3f7){_0x155313['push'](_0x155313['shift']());}};_0x53cbf3(++_0x209ce1);}(a46_0x209c,0x70));const a46_0x53cb=function(_0x155313,_0x209ce1){_0x155313=_0x155313-0x0;let _0x53cbf3=a46_0x209c[_0x155313];return _0x53cbf3;};const _0x46c005=a46_0x53cb;'use strict';const Sequelize=require(_0x46c005('0x3'));module[_0x46c005('0x2')]={'key':{'type':Sequelize[_0x46c005('0x1')],'allowNull':![]},'value':{'type':Sequelize[_0x46c005('0x0')],'allowNull':![]},'description':{'type':Sequelize[_0x46c005('0x1')]},'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x26e973=_0x46c005;return this['getDataValue'](_0x26e973('0x4'));}}}; \ No newline at end of file +const a46_0x14a3=['sequelize','VIRTUAL','STRING','key'];(function(_0x5edd52,_0x14a32b){const _0x12739c=function(_0x2d868d){while(--_0x2d868d){_0x5edd52['push'](_0x5edd52['shift']());}};_0x12739c(++_0x14a32b);}(a46_0x14a3,0x88));const a46_0x1273=function(_0x5edd52,_0x14a32b){_0x5edd52=_0x5edd52-0x0;let _0x12739c=a46_0x14a3[_0x5edd52];return _0x12739c;};const _0x5f0689=a46_0x1273;'use strict';const Sequelize=require(_0x5f0689('0x0'));module['exports']={'key':{'type':Sequelize['STRING'],'allowNull':![]},'value':{'type':Sequelize['TEXT'],'allowNull':![]},'description':{'type':Sequelize[_0x5f0689('0x2')]},'name':{'type':Sequelize[_0x5f0689('0x1')],'get':function(){const _0x3ceb8c=_0x5f0689;return this['getDataValue'](_0x3ceb8c('0x3'));}}}; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.controller.js b/server/api/cannedAnswer/cannedAnswer.controller.js index dede33c..45a48d5 100644 --- a/server/api/cannedAnswer/cannedAnswer.controller.js +++ b/server/api/cannedAnswer/cannedAnswer.controller.js @@ -1 +1 @@ -const a47_0x2613=['count','json','create','OpenchannelAccountId','CannedAnswer','options','get','sequelize','undefined','length','type','user','../../config/logger','merge','destroy','body','order','fields','offset','map','rawAttributes','keys','name','model','sort','where','findAll','params','fieldName','Content-Range','filter','nolimit','status','MailAccountId','findOne','limit','filters','../../components/parsers/qs','autoAssociation','includeAll','send','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','The\x20inserted\x20key\x20already\x20exists.','then','error','userProfileId','catch','sendStatus','intersection','set','attributes','../../mysqldb','stack','CannedAnswers','VIRTUAL','ChatWebsiteId','SmsAccountId','query','update'];(function(_0x5e54e2,_0x2613d1){const _0x563be3=function(_0x131888){while(--_0x131888){_0x5e54e2['push'](_0x5e54e2['shift']());}};_0x563be3(++_0x2613d1);}(a47_0x2613,0x17b));const a47_0x563b=function(_0x5e54e2,_0x2613d1){_0x5e54e2=_0x5e54e2-0x0;let _0x563be3=a47_0x2613[_0x5e54e2];return _0x563be3;};const _0x292173=a47_0x563b;'use strict';const _=require('lodash'),qs=require(_0x292173('0xc')),logger=require(_0x292173('0x2e'))('api'),db=require(_0x292173('0x1a'))['db'],{Op,ValidationError}=require(_0x292173('0x29'));function respondWithResult(_0x131888,_0x2c8aae){return _0x2c8aae=_0x2c8aae||0xc8,function(_0x18790c){const _0x20ce17=a47_0x563b;if(_0x18790c)return _0x131888['status'](_0x2c8aae)[_0x20ce17('0x23')](_0x18790c);};}function respondWithFilteredResult(_0x291340,_0x3c9354){return function(_0x1adca5){const _0x1f489b=a47_0x563b;if(_0x1adca5){const _0x224f7c=_0x1adca5[_0x1f489b('0x22')],_0x420bec=_0x3c9354[_0x1f489b('0x34')];let _0x500a6f=_0x3c9354['offset']+_0x3c9354[_0x1f489b('0xa')],_0x5e3b1c;return _0x500a6f>=_0x224f7c?(_0x500a6f=_0x224f7c,_0x5e3b1c=0xc8):_0x5e3b1c=0xce,_0x291340[_0x1f489b('0x7')](_0x5e3b1c),_0x291340[_0x1f489b('0x18')](_0x1f489b('0x4'),_0x420bec+'-'+_0x500a6f+'/'+_0x224f7c)[_0x1f489b('0x23')](_0x1adca5);}return null;};}function saveUpdates(_0x123d26){return function(_0x5a1180){const _0x3004f8=a47_0x563b;if(_0x5a1180)return _0x5a1180[_0x3004f8('0x21')](_0x123d26)[_0x3004f8('0x12')](function(_0x13c10f){return _0x13c10f;});return null;};}function removeEntity(_0x750188){return function(_0xd13f4c){const _0x346803=a47_0x563b;if(_0xd13f4c)return _0xd13f4c['destroy']()[_0x346803('0x12')](function(){const _0x594337=_0x346803,_0x51bdb9=_0xd13f4c[_0x594337('0x28')]({'plain':!![]}),_0x59948f='CannedAnswers';return db['UserProfileResource'][_0x594337('0x30')]({'where':{'type':_0x59948f,'resourceId':_0x51bdb9['id']}})[_0x594337('0x12')](function(){return _0xd13f4c;});})['then'](function(){const _0x10d08e=_0x346803;_0x750188[_0x10d08e('0x7')](0xcc)['end']();});};}function handleEntityNotFound(_0x315f45){return function(_0x39552f){const _0x134f34=a47_0x563b;return!_0x39552f&&_0x315f45[_0x134f34('0x16')](0x194),_0x39552f;};}function handleError(_0x2bfde3,_0x437d59){return _0x437d59=_0x437d59||0x1f4,function(_0x718016){const _0x24a634=a47_0x563b;logger[_0x24a634('0x13')](_0x718016[_0x24a634('0x1b')]),_0x718016['name']&&delete _0x718016[_0x24a634('0x38')],_0x2bfde3[_0x24a634('0x7')](_0x437d59)[_0x24a634('0xf')](_0x718016);};}exports['index']=function(_0x76c4a2,_0x13a38c){const _0x2955cc=_0x292173;let _0x16cef2={};const _0x5b17dc={},_0x4acb36={'count':0x0,'rows':[]},_0xe8b4d6=_['map'](db['CannedAnswer']['rawAttributes'],function(_0x5ae76b){const _0x266ff5=a47_0x563b;return{'name':_0x5ae76b[_0x266ff5('0x3')],'type':_0x5ae76b[_0x266ff5('0x2c')]['key']};});_0x5b17dc[_0x2955cc('0x39')]=_[_0x2955cc('0x35')](_0xe8b4d6,_0x2955cc('0x38')),_0x5b17dc[_0x2955cc('0x20')]=_[_0x2955cc('0x37')](_0x76c4a2[_0x2955cc('0x20')]),_0x5b17dc['filters']=_['intersection'](_0x5b17dc['model'],_0x5b17dc[_0x2955cc('0x20')]),_0x16cef2['attributes']=_[_0x2955cc('0x17')](_0x5b17dc[_0x2955cc('0x39')],qs[_0x2955cc('0x33')](_0x76c4a2['query'][_0x2955cc('0x33')])),_0x16cef2['attributes']=_0x16cef2[_0x2955cc('0x19')][_0x2955cc('0x2b')]?_0x16cef2[_0x2955cc('0x19')]:_0x5b17dc['model'];typeof _0x76c4a2[_0x2955cc('0x20')][_0x2955cc('0x6')]===_0x2955cc('0x2a')&&(_0x16cef2[_0x2955cc('0xa')]=qs[_0x2955cc('0xa')](_0x76c4a2['query'][_0x2955cc('0xa')]),_0x16cef2['offset']=qs[_0x2955cc('0x34')](_0x76c4a2[_0x2955cc('0x20')]['offset']));_0x16cef2[_0x2955cc('0x32')]=qs[_0x2955cc('0x3a')](_0x76c4a2[_0x2955cc('0x20')][_0x2955cc('0x3a')]),_0x16cef2[_0x2955cc('0x0')]=qs[_0x2955cc('0xb')](_['pick'](_0x76c4a2[_0x2955cc('0x20')],_0x5b17dc[_0x2955cc('0xb')]),_0xe8b4d6);_0x76c4a2[_0x2955cc('0x20')]['filter']&&(_0x16cef2[_0x2955cc('0x0')]=_[_0x2955cc('0x2f')](_0x16cef2['where'],{[Op['or']]:_[_0x2955cc('0x35')](_0xe8b4d6,function(_0x27f8fb){const _0x4d9e3e=_0x2955cc;if(_0x27f8fb[_0x4d9e3e('0x2c')]!==_0x4d9e3e('0x1d')){const _0x64c163={};return _0x64c163[_0x27f8fb[_0x4d9e3e('0x38')]]={[Op['like']]:'%'+_0x76c4a2[_0x4d9e3e('0x20')][_0x4d9e3e('0x5')]+'%'},_0x64c163;}})}));_0x16cef2=_[_0x2955cc('0x2f')]({},_0x16cef2,_0x76c4a2['options']);const _0x5a7c29={'where':_0x16cef2[_0x2955cc('0x0')]};return db[_0x2955cc('0x26')][_0x2955cc('0x22')](_0x5a7c29)[_0x2955cc('0x12')](function(_0x4da50e){const _0x262510=_0x2955cc;return _0x4acb36[_0x262510('0x22')]=_0x4da50e,_0x76c4a2[_0x262510('0x20')][_0x262510('0xe')]&&(_0x16cef2['include']=[{'all':!![]}]),db[_0x262510('0x26')][_0x262510('0x1')](_0x16cef2);})[_0x2955cc('0x12')](function(_0x521a28){return _0x4acb36['rows']=_0x521a28,_0x4acb36;})[_0x2955cc('0x12')](respondWithFilteredResult(_0x13a38c,_0x16cef2))[_0x2955cc('0x15')](handleError(_0x13a38c,null));},exports['show']=function(_0x5540a7,_0x18bf32){const _0x3c157a=_0x292173;let _0x53e821={'raw':!![],'where':{'id':_0x5540a7[_0x3c157a('0x2')]['id']}};const _0x505fb2={};return _0x505fb2['model']=_[_0x3c157a('0x37')](db[_0x3c157a('0x26')][_0x3c157a('0x36')]),_0x505fb2[_0x3c157a('0x20')]=_['keys'](_0x5540a7['query']),_0x505fb2[_0x3c157a('0xb')]=_[_0x3c157a('0x17')](_0x505fb2['model'],_0x505fb2[_0x3c157a('0x20')]),_0x53e821[_0x3c157a('0x19')]=_[_0x3c157a('0x17')](_0x505fb2[_0x3c157a('0x39')],qs['fields'](_0x5540a7[_0x3c157a('0x20')]['fields'])),_0x53e821[_0x3c157a('0x19')]=_0x53e821[_0x3c157a('0x19')][_0x3c157a('0x2b')]?_0x53e821[_0x3c157a('0x19')]:_0x505fb2[_0x3c157a('0x39')],_0x5540a7[_0x3c157a('0x20')][_0x3c157a('0xe')]&&(_0x53e821['include']=[{'all':!![]}]),_0x53e821=_[_0x3c157a('0x2f')]({},_0x53e821,_0x5540a7[_0x3c157a('0x27')]),db['CannedAnswer'][_0x3c157a('0x9')](_0x53e821)['then'](handleEntityNotFound(_0x18bf32,null))[_0x3c157a('0x12')](respondWithResult(_0x18bf32,null))[_0x3c157a('0x15')](handleError(_0x18bf32,null));},exports[_0x292173('0x21')]=function(_0x2af1e6,_0x17b89a){const _0xc78de8=_0x292173;return _0x2af1e6[_0xc78de8('0x31')]['id']&&delete _0x2af1e6['body']['id'],db['CannedAnswer']['findOne']({'where':{'id':_0x2af1e6[_0xc78de8('0x2')]['id']}})[_0xc78de8('0x12')](handleEntityNotFound(_0x17b89a,null))['then'](saveUpdates(_0x2af1e6[_0xc78de8('0x31')],null))['then'](respondWithResult(_0x17b89a,null))[_0xc78de8('0x15')](handleError(_0x17b89a,null));},exports['destroy']=function(_0x4f3ae3,_0x1375e2){const _0x129c98=_0x292173;return db[_0x129c98('0x26')]['findOne']({'where':{'id':_0x4f3ae3['params']['id']}})['then'](handleEntityNotFound(_0x1375e2,null))['then'](removeEntity(_0x1375e2,null))['catch'](handleError(_0x1375e2,null));},exports[_0x292173('0x24')]=function(_0x1a1504,_0x2c2fc2){const _0x4cd663=_0x292173,_0x5d7b6b={'key':_0x1a1504[_0x4cd663('0x31')]['key']};if(_0x1a1504[_0x4cd663('0x31')][_0x4cd663('0x8')])_0x5d7b6b[_0x4cd663('0x8')]=_0x1a1504[_0x4cd663('0x31')][_0x4cd663('0x8')];else{if(_0x1a1504[_0x4cd663('0x31')][_0x4cd663('0x1f')])_0x5d7b6b[_0x4cd663('0x1f')]=_0x1a1504[_0x4cd663('0x31')][_0x4cd663('0x1f')];else{if(_0x1a1504[_0x4cd663('0x31')]['OpenchannelAccountId'])_0x5d7b6b[_0x4cd663('0x25')]=_0x1a1504[_0x4cd663('0x31')][_0x4cd663('0x25')];else _0x1a1504[_0x4cd663('0x31')][_0x4cd663('0x1e')]&&(_0x5d7b6b[_0x4cd663('0x1e')]=_0x1a1504[_0x4cd663('0x31')][_0x4cd663('0x1e')]);}}return db[_0x4cd663('0x26')][_0x4cd663('0x9')]({'where':_0x5d7b6b})['then'](function(_0x9106b4){const _0x761ed5=_0x4cd663;if(_0x9106b4)throw new ValidationError(_0x761ed5('0x11'));return db[_0x761ed5('0x26')][_0x761ed5('0x24')](_0x1a1504[_0x761ed5('0x31')]);})['then'](function(_0xa247a5){const _0x1a2fb8=_0x4cd663,_0x45cb55=_0x1a1504[_0x1a2fb8('0x2d')]['get']({'plain':!![]});if(!_0x45cb55)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x45cb55['role']===_0x1a2fb8('0x2d')){const _0x46f2a3=_0xa247a5[_0x1a2fb8('0x28')]({'plain':!![]});return db['UserProfileSection'][_0x1a2fb8('0x9')]({'where':{'name':_0x1a2fb8('0x1c'),'userProfileId':_0x45cb55[_0x1a2fb8('0x14')]},'raw':!![]})[_0x1a2fb8('0x12')](function(_0x1297f2){const _0x6ed25b=_0x1a2fb8;return _0x1297f2&&_0x1297f2[_0x6ed25b('0xd')]===0x0?db['UserProfileResource'][_0x6ed25b('0x24')]({'name':_0x46f2a3[_0x6ed25b('0x38')],'resourceId':_0x46f2a3['id'],'type':_0x1297f2['name'],'sectionId':_0x1297f2['id']},{})[_0x6ed25b('0x12')](function(){return _0xa247a5;}):_0xa247a5;})[_0x1a2fb8('0x15')](function(_0x5d93b3){const _0x34f823=_0x1a2fb8;logger[_0x34f823('0x13')](_0x34f823('0x10'),_0x5d93b3);throw _0x5d93b3;});}return _0xa247a5;})[_0x4cd663('0x12')](respondWithResult(_0x2c2fc2,0xc9))[_0x4cd663('0x15')](handleError(_0x2c2fc2,null));}; \ No newline at end of file +const a47_0xb83a=['lodash','SmsAccountId','like','query','catch','limit','../../mysqldb','get','UserProfileResource','includeAll','attributes','VIRTUAL','type','options','length','count','pick','stack','keys','findAll','OpenchannelAccountId','undefined','set','user','role','CannedAnswer','MailAccountId','Content-Range','show','../../components/parsers/qs','UserProfileSection','fields','json','name','filters','merge','CannedAnswers','destroy','sort','status','sequelize','map','ChatWebsiteId','api','body','model','Unable\x20to\x20retrieve\x20the\x20current\x20user','create','order','rawAttributes','include','where','../../config/logger','error','offset','intersection','filter','send','findOne','then','autoAssociation','end','nolimit','params'];(function(_0x5b34c0,_0xb83adf){const _0x555366=function(_0x28e484){while(--_0x28e484){_0x5b34c0['push'](_0x5b34c0['shift']());}};_0x555366(++_0xb83adf);}(a47_0xb83a,0x93));const a47_0x5553=function(_0x5b34c0,_0xb83adf){_0x5b34c0=_0x5b34c0-0x0;let _0x555366=a47_0xb83a[_0x5b34c0];return _0x555366;};const _0x1fb9f4=a47_0x5553;'use strict';const _=require(_0x1fb9f4('0x2d')),qs=require(_0x1fb9f4('0xa')),logger=require(_0x1fb9f4('0x21'))(_0x1fb9f4('0x18')),db=require(_0x1fb9f4('0x33'))['db'],{Op,ValidationError}=require(_0x1fb9f4('0x15'));function respondWithResult(_0x28e484,_0x58ea1e){return _0x58ea1e=_0x58ea1e||0xc8,function(_0x746257){const _0x35df76=a47_0x5553;if(_0x746257)return _0x28e484[_0x35df76('0x14')](_0x58ea1e)[_0x35df76('0xd')](_0x746257);};}function respondWithFilteredResult(_0xdf8c6b,_0x15b605){return function(_0x1670f7){const _0x118df6=a47_0x5553;if(_0x1670f7){const _0x361118=_0x1670f7[_0x118df6('0x3c')],_0x1b2f0b=_0x15b605[_0x118df6('0x23')];let _0x493513=_0x15b605[_0x118df6('0x23')]+_0x15b605[_0x118df6('0x32')],_0x2af152;return _0x493513>=_0x361118?(_0x493513=_0x361118,_0x2af152=0xc8):_0x2af152=0xce,_0xdf8c6b[_0x118df6('0x14')](_0x2af152),_0xdf8c6b[_0x118df6('0x3')](_0x118df6('0x8'),_0x1b2f0b+'-'+_0x493513+'/'+_0x361118)[_0x118df6('0xd')](_0x1670f7);}return null;};}function saveUpdates(_0x2c3798){return function(_0x3613b7){const _0x2e41ea=a47_0x5553;if(_0x3613b7)return _0x3613b7['update'](_0x2c3798)[_0x2e41ea('0x28')](function(_0x402b1f){return _0x402b1f;});return null;};}function removeEntity(_0x5f46ad){return function(_0x127e5e){const _0x589965=a47_0x5553;if(_0x127e5e)return _0x127e5e[_0x589965('0x12')]()[_0x589965('0x28')](function(){const _0x474a12=_0x589965,_0x215b0d=_0x127e5e[_0x474a12('0x34')]({'plain':!![]}),_0x275cab=_0x474a12('0x11');return db[_0x474a12('0x35')][_0x474a12('0x12')]({'where':{'type':_0x275cab,'resourceId':_0x215b0d['id']}})['then'](function(){return _0x127e5e;});})[_0x589965('0x28')](function(){const _0x1c21b6=_0x589965;_0x5f46ad[_0x1c21b6('0x14')](0xcc)[_0x1c21b6('0x2a')]();});};}function handleEntityNotFound(_0x2bc8d0){return function(_0x4d3e01){return!_0x4d3e01&&_0x2bc8d0['sendStatus'](0x194),_0x4d3e01;};}function handleError(_0x5db265,_0x3be8cf){return _0x3be8cf=_0x3be8cf||0x1f4,function(_0x558c93){const _0x43ecd9=a47_0x5553;logger[_0x43ecd9('0x22')](_0x558c93[_0x43ecd9('0x3e')]),_0x558c93[_0x43ecd9('0xe')]&&delete _0x558c93[_0x43ecd9('0xe')],_0x5db265[_0x43ecd9('0x14')](_0x3be8cf)[_0x43ecd9('0x26')](_0x558c93);};}exports['index']=function(_0x5be238,_0x3eb494){const _0xc9fb26=_0x1fb9f4;let _0x53ca44={};const _0x4135cc={},_0x2cc2b3={'count':0x0,'rows':[]},_0x5d9a71=_['map'](db['CannedAnswer'][_0xc9fb26('0x1e')],function(_0x3dcdb9){const _0x38da03=_0xc9fb26;return{'name':_0x3dcdb9['fieldName'],'type':_0x3dcdb9[_0x38da03('0x39')]['key']};});_0x4135cc['model']=_[_0xc9fb26('0x16')](_0x5d9a71,_0xc9fb26('0xe')),_0x4135cc['query']=_[_0xc9fb26('0x3f')](_0x5be238[_0xc9fb26('0x30')]),_0x4135cc[_0xc9fb26('0xf')]=_[_0xc9fb26('0x24')](_0x4135cc['model'],_0x4135cc['query']),_0x53ca44[_0xc9fb26('0x37')]=_[_0xc9fb26('0x24')](_0x4135cc[_0xc9fb26('0x1a')],qs[_0xc9fb26('0xc')](_0x5be238['query'][_0xc9fb26('0xc')])),_0x53ca44['attributes']=_0x53ca44[_0xc9fb26('0x37')][_0xc9fb26('0x3b')]?_0x53ca44[_0xc9fb26('0x37')]:_0x4135cc['model'];typeof _0x5be238[_0xc9fb26('0x30')][_0xc9fb26('0x2b')]===_0xc9fb26('0x2')&&(_0x53ca44[_0xc9fb26('0x32')]=qs[_0xc9fb26('0x32')](_0x5be238[_0xc9fb26('0x30')][_0xc9fb26('0x32')]),_0x53ca44[_0xc9fb26('0x23')]=qs['offset'](_0x5be238['query'][_0xc9fb26('0x23')]));_0x53ca44[_0xc9fb26('0x1d')]=qs[_0xc9fb26('0x13')](_0x5be238[_0xc9fb26('0x30')]['sort']),_0x53ca44[_0xc9fb26('0x20')]=qs[_0xc9fb26('0xf')](_[_0xc9fb26('0x3d')](_0x5be238[_0xc9fb26('0x30')],_0x4135cc['filters']),_0x5d9a71);_0x5be238[_0xc9fb26('0x30')][_0xc9fb26('0x25')]&&(_0x53ca44[_0xc9fb26('0x20')]=_[_0xc9fb26('0x10')](_0x53ca44[_0xc9fb26('0x20')],{[Op['or']]:_[_0xc9fb26('0x16')](_0x5d9a71,function(_0x4a4f1d){const _0x334455=_0xc9fb26;if(_0x4a4f1d[_0x334455('0x39')]!==_0x334455('0x38')){const _0x37577e={};return _0x37577e[_0x4a4f1d[_0x334455('0xe')]]={[Op[_0x334455('0x2f')]]:'%'+_0x5be238[_0x334455('0x30')]['filter']+'%'},_0x37577e;}})}));_0x53ca44=_[_0xc9fb26('0x10')]({},_0x53ca44,_0x5be238[_0xc9fb26('0x3a')]);const _0x2c27e3={'where':_0x53ca44[_0xc9fb26('0x20')]};return db['CannedAnswer']['count'](_0x2c27e3)['then'](function(_0x4bc04b){const _0x1f1c5b=_0xc9fb26;return _0x2cc2b3[_0x1f1c5b('0x3c')]=_0x4bc04b,_0x5be238['query'][_0x1f1c5b('0x36')]&&(_0x53ca44[_0x1f1c5b('0x1f')]=[{'all':!![]}]),db[_0x1f1c5b('0x6')][_0x1f1c5b('0x0')](_0x53ca44);})['then'](function(_0x314b4a){return _0x2cc2b3['rows']=_0x314b4a,_0x2cc2b3;})['then'](respondWithFilteredResult(_0x3eb494,_0x53ca44))[_0xc9fb26('0x31')](handleError(_0x3eb494,null));},exports[_0x1fb9f4('0x9')]=function(_0x4483ed,_0x4c7c54){const _0x29018b=_0x1fb9f4;let _0x4fe663={'raw':!![],'where':{'id':_0x4483ed[_0x29018b('0x2c')]['id']}};const _0x4271b9={};return _0x4271b9[_0x29018b('0x1a')]=_['keys'](db[_0x29018b('0x6')][_0x29018b('0x1e')]),_0x4271b9[_0x29018b('0x30')]=_[_0x29018b('0x3f')](_0x4483ed[_0x29018b('0x30')]),_0x4271b9[_0x29018b('0xf')]=_[_0x29018b('0x24')](_0x4271b9[_0x29018b('0x1a')],_0x4271b9[_0x29018b('0x30')]),_0x4fe663[_0x29018b('0x37')]=_[_0x29018b('0x24')](_0x4271b9[_0x29018b('0x1a')],qs[_0x29018b('0xc')](_0x4483ed[_0x29018b('0x30')]['fields'])),_0x4fe663[_0x29018b('0x37')]=_0x4fe663[_0x29018b('0x37')][_0x29018b('0x3b')]?_0x4fe663[_0x29018b('0x37')]:_0x4271b9[_0x29018b('0x1a')],_0x4483ed[_0x29018b('0x30')][_0x29018b('0x36')]&&(_0x4fe663[_0x29018b('0x1f')]=[{'all':!![]}]),_0x4fe663=_[_0x29018b('0x10')]({},_0x4fe663,_0x4483ed[_0x29018b('0x3a')]),db[_0x29018b('0x6')]['findOne'](_0x4fe663)[_0x29018b('0x28')](handleEntityNotFound(_0x4c7c54,null))[_0x29018b('0x28')](respondWithResult(_0x4c7c54,null))[_0x29018b('0x31')](handleError(_0x4c7c54,null));},exports['update']=function(_0x5c3c7b,_0x2a7c07){const _0x4edb9c=_0x1fb9f4;return _0x5c3c7b[_0x4edb9c('0x19')]['id']&&delete _0x5c3c7b[_0x4edb9c('0x19')]['id'],db[_0x4edb9c('0x6')]['findOne']({'where':{'id':_0x5c3c7b[_0x4edb9c('0x2c')]['id']}})[_0x4edb9c('0x28')](handleEntityNotFound(_0x2a7c07,null))[_0x4edb9c('0x28')](saveUpdates(_0x5c3c7b['body'],null))[_0x4edb9c('0x28')](respondWithResult(_0x2a7c07,null))['catch'](handleError(_0x2a7c07,null));},exports[_0x1fb9f4('0x12')]=function(_0x1cdb03,_0x2fd931){const _0x4a9b0b=_0x1fb9f4;return db[_0x4a9b0b('0x6')]['findOne']({'where':{'id':_0x1cdb03[_0x4a9b0b('0x2c')]['id']}})[_0x4a9b0b('0x28')](handleEntityNotFound(_0x2fd931,null))[_0x4a9b0b('0x28')](removeEntity(_0x2fd931,null))[_0x4a9b0b('0x31')](handleError(_0x2fd931,null));},exports['create']=function(_0x459f0e,_0x5b91a4){const _0xbd21e0=_0x1fb9f4,_0x154a80={'key':_0x459f0e[_0xbd21e0('0x19')]['key']};if(_0x459f0e[_0xbd21e0('0x19')][_0xbd21e0('0x7')])_0x154a80[_0xbd21e0('0x7')]=_0x459f0e[_0xbd21e0('0x19')][_0xbd21e0('0x7')];else{if(_0x459f0e[_0xbd21e0('0x19')][_0xbd21e0('0x2e')])_0x154a80[_0xbd21e0('0x2e')]=_0x459f0e[_0xbd21e0('0x19')][_0xbd21e0('0x2e')];else{if(_0x459f0e[_0xbd21e0('0x19')][_0xbd21e0('0x1')])_0x154a80[_0xbd21e0('0x1')]=_0x459f0e[_0xbd21e0('0x19')][_0xbd21e0('0x1')];else _0x459f0e[_0xbd21e0('0x19')][_0xbd21e0('0x17')]&&(_0x154a80[_0xbd21e0('0x17')]=_0x459f0e['body'][_0xbd21e0('0x17')]);}}return db[_0xbd21e0('0x6')]['findOne']({'where':_0x154a80})[_0xbd21e0('0x28')](function(_0x400b2f){const _0xb62bea=_0xbd21e0;if(_0x400b2f)throw new ValidationError('The\x20inserted\x20key\x20already\x20exists.');return db[_0xb62bea('0x6')][_0xb62bea('0x1c')](_0x459f0e['body']);})[_0xbd21e0('0x28')](function(_0x524b93){const _0x2ac11b=_0xbd21e0,_0x181cc6=_0x459f0e[_0x2ac11b('0x4')]['get']({'plain':!![]});if(!_0x181cc6)throw new Error(_0x2ac11b('0x1b'));if(_0x181cc6[_0x2ac11b('0x5')]==='user'){const _0x5d1df2=_0x524b93[_0x2ac11b('0x34')]({'plain':!![]});return db[_0x2ac11b('0xb')][_0x2ac11b('0x27')]({'where':{'name':'CannedAnswers','userProfileId':_0x181cc6['userProfileId']},'raw':!![]})[_0x2ac11b('0x28')](function(_0x2f645e){const _0x87b168=_0x2ac11b;return _0x2f645e&&_0x2f645e[_0x87b168('0x29')]===0x0?db[_0x87b168('0x35')][_0x87b168('0x1c')]({'name':_0x5d1df2['name'],'resourceId':_0x5d1df2['id'],'type':_0x2f645e[_0x87b168('0xe')],'sectionId':_0x2f645e['id']},{})[_0x87b168('0x28')](function(){return _0x524b93;}):_0x524b93;})[_0x2ac11b('0x31')](function(_0x239e19){const _0x457cec=_0x2ac11b;logger[_0x457cec('0x22')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x239e19);throw _0x239e19;});}return _0x524b93;})[_0xbd21e0('0x28')](respondWithResult(_0x5b91a4,0xc9))[_0xbd21e0('0x31')](handleError(_0x5b91a4,null));}; \ No newline at end of file diff --git a/server/api/cannedAnswer/cannedAnswer.model.js b/server/api/cannedAnswer/cannedAnswer.model.js index 386f731..40c2d32 100644 --- a/server/api/cannedAnswer/cannedAnswer.model.js +++ b/server/api/cannedAnswer/cannedAnswer.model.js @@ -1 +1 @@ -const a48_0x3090=['exports','./cannedAnswer.attributes','utf8mb4_unicode_ci','CannedAnswer','tools_canned_answers'];(function(_0x147e9d,_0x30900d){const _0x3ebb9e=function(_0x13721d){while(--_0x13721d){_0x147e9d['push'](_0x147e9d['shift']());}};_0x3ebb9e(++_0x30900d);}(a48_0x3090,0x1ab));const a48_0x3ebb=function(_0x147e9d,_0x30900d){_0x147e9d=_0x147e9d-0x0;let _0x3ebb9e=a48_0x3090[_0x147e9d];return _0x3ebb9e;};const _0x10d188=a48_0x3ebb;'use strict';const attributes=require(_0x10d188('0x4'));module[_0x10d188('0x3')]=function(_0x13721d){const _0x3fa456=_0x10d188,_0xa68d90=_0x13721d['define'](_0x3fa456('0x1'),attributes,{'tableName':_0x3fa456('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x3fa456('0x0')});return _0xa68d90;}; \ No newline at end of file +const a48_0x5d3d=['define','./cannedAnswer.attributes','tools_canned_answers','CannedAnswer','utf8mb4_unicode_ci','utf8mb4','exports'];(function(_0x322e8d,_0x5d3ddd){const _0x4fc22f=function(_0x2c2809){while(--_0x2c2809){_0x322e8d['push'](_0x322e8d['shift']());}};_0x4fc22f(++_0x5d3ddd);}(a48_0x5d3d,0xae));const a48_0x4fc2=function(_0x322e8d,_0x5d3ddd){_0x322e8d=_0x322e8d-0x0;let _0x4fc22f=a48_0x5d3d[_0x322e8d];return _0x4fc22f;};const _0x2661af=a48_0x4fc2;'use strict';const attributes=require(_0x2661af('0x2'));module[_0x2661af('0x0')]=function(_0x2c2809){const _0x58c06e=_0x2661af,_0x4f8842=_0x2c2809[_0x58c06e('0x1')](_0x58c06e('0x4'),attributes,{'tableName':_0x58c06e('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x58c06e('0x6'),'collate':_0x58c06e('0x5')});return _0x4f8842;}; \ No newline at end of file diff --git a/server/api/cannedAnswer/index.js b/server/api/cannedAnswer/index.js index 8ca0dda..4ae21e6 100644 --- a/server/api/cannedAnswer/index.js +++ b/server/api/cannedAnswer/index.js @@ -1 +1 @@ -const a49_0x5519=['delete','./cannedAnswer.controller','show','isAuthenticated','get','post','/:id','../../components/auth/service','update','destroy','express'];(function(_0x418b21,_0x551953){const _0x44f062=function(_0x2344ff){while(--_0x2344ff){_0x418b21['push'](_0x418b21['shift']());}};_0x44f062(++_0x551953);}(a49_0x5519,0x129));const a49_0x44f0=function(_0x418b21,_0x551953){_0x418b21=_0x418b21-0x0;let _0x44f062=a49_0x5519[_0x418b21];return _0x44f062;};const _0x399d51=a49_0x44f0;'use strict';const express=require(_0x399d51('0xa')),router=express['Router'](),auth=require(_0x399d51('0x7')),controller=require(_0x399d51('0x1'));router[_0x399d51('0x4')]('/',auth[_0x399d51('0x3')](),controller['index']),router[_0x399d51('0x4')](_0x399d51('0x6'),auth[_0x399d51('0x3')](),controller[_0x399d51('0x2')]),router[_0x399d51('0x5')]('/',auth['isAuthenticated'](),controller['create']),router['put'](_0x399d51('0x6'),auth[_0x399d51('0x3')](),controller[_0x399d51('0x8')]),router[_0x399d51('0x0')](_0x399d51('0x6'),auth[_0x399d51('0x3')](),controller[_0x399d51('0x9')]),module['exports']=router; \ No newline at end of file +const a49_0x2d0e=['show','delete','./cannedAnswer.controller','isAuthenticated','express','get','/:id','destroy','Router','post','put'];(function(_0x1202c0,_0x2d0e7d){const _0x1d9899=function(_0x3ae953){while(--_0x3ae953){_0x1202c0['push'](_0x1202c0['shift']());}};_0x1d9899(++_0x2d0e7d);}(a49_0x2d0e,0x69));const a49_0x1d98=function(_0x1202c0,_0x2d0e7d){_0x1202c0=_0x1202c0-0x0;let _0x1d9899=a49_0x2d0e[_0x1202c0];return _0x1d9899;};const _0x4bd323=a49_0x1d98;'use strict';const express=require(_0x4bd323('0x9')),router=express[_0x4bd323('0x2')](),auth=require('../../components/auth/service'),controller=require(_0x4bd323('0x7'));router[_0x4bd323('0xa')]('/',auth[_0x4bd323('0x8')](),controller['index']),router[_0x4bd323('0xa')]('/:id',auth[_0x4bd323('0x8')](),controller[_0x4bd323('0x5')]),router[_0x4bd323('0x3')]('/',auth[_0x4bd323('0x8')](),controller['create']),router[_0x4bd323('0x4')](_0x4bd323('0x0'),auth[_0x4bd323('0x8')](),controller['update']),router[_0x4bd323('0x6')](_0x4bd323('0x0'),auth['isAuthenticated'](),controller[_0x4bd323('0x1')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/cdr/cdr.attributes.js b/server/api/cdr/cdr.attributes.js index 95f0dcc..11f33e8 100644 --- a/server/api/cdr/cdr.attributes.js +++ b/server/api/cdr/cdr.attributes.js @@ -1 +1 @@ -const a50_0x35c9=['STRING','1970-01-01\x2000:00:01','INTEGER','sequelize'];(function(_0x3e8c96,_0x35c943){const _0x33a86a=function(_0x22401d){while(--_0x22401d){_0x3e8c96['push'](_0x3e8c96['shift']());}};_0x33a86a(++_0x35c943);}(a50_0x35c9,0x6f));const a50_0x33a8=function(_0x3e8c96,_0x35c943){_0x3e8c96=_0x3e8c96-0x0;let _0x33a86a=a50_0x35c9[_0x3e8c96];return _0x33a86a;};const _0x3b57e6=a50_0x33a8;'use strict';const Sequelize=require(_0x3b57e6('0x0'));module['exports']={'calldate':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':_0x3b57e6('0x2')},'clid':{'type':Sequelize['STRING']},'src':{'type':Sequelize[_0x3b57e6('0x1')]},'dst':{'type':Sequelize[_0x3b57e6('0x1')]},'dcontext':{'type':Sequelize[_0x3b57e6('0x1')]},'channel':{'type':Sequelize[_0x3b57e6('0x1')]},'dstchannel':{'type':Sequelize['STRING']},'lastapp':{'type':Sequelize[_0x3b57e6('0x1')]},'lastdata':{'type':Sequelize['STRING']},'duration':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize[_0x3b57e6('0x3')],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x3b57e6('0x1')]},'amaflags':{'type':Sequelize[_0x3b57e6('0x3')],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize['STRING']},'userfield':{'type':Sequelize[_0x3b57e6('0x1')]},'uniqueid':{'type':Sequelize[_0x3b57e6('0x1')]},'linkedid':{'type':Sequelize[_0x3b57e6('0x1')]},'sequence':{'type':Sequelize[_0x3b57e6('0x1')]},'peeraccount':{'type':Sequelize[_0x3b57e6('0x1')]},'type':{'type':Sequelize['STRING']},'tag':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a50_0x2e40=['INTEGER','exports','STRING','DATE'];(function(_0x864b4a,_0x2e4071){const _0x243371=function(_0x48afab){while(--_0x48afab){_0x864b4a['push'](_0x864b4a['shift']());}};_0x243371(++_0x2e4071);}(a50_0x2e40,0xb7));const a50_0x2433=function(_0x864b4a,_0x2e4071){_0x864b4a=_0x864b4a-0x0;let _0x243371=a50_0x2e40[_0x864b4a];return _0x243371;};const _0x2562e9=a50_0x2433;'use strict';const Sequelize=require('sequelize');module[_0x2562e9('0x2')]={'calldate':{'type':Sequelize[_0x2562e9('0x0')],'allowNull':![],'defaultValue':'1970-01-01\x2000:00:01'},'clid':{'type':Sequelize[_0x2562e9('0x3')]},'src':{'type':Sequelize['STRING']},'dst':{'type':Sequelize[_0x2562e9('0x3')]},'dcontext':{'type':Sequelize[_0x2562e9('0x3')]},'channel':{'type':Sequelize[_0x2562e9('0x3')]},'dstchannel':{'type':Sequelize[_0x2562e9('0x3')]},'lastapp':{'type':Sequelize[_0x2562e9('0x3')]},'lastdata':{'type':Sequelize['STRING']},'duration':{'type':Sequelize[_0x2562e9('0x1')],'allowNull':![],'defaultValue':0x0},'billsec':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x2562e9('0x3')]},'amaflags':{'type':Sequelize[_0x2562e9('0x1')],'allowNull':![],'defaultValue':0x0},'accountcode':{'type':Sequelize[_0x2562e9('0x3')]},'userfield':{'type':Sequelize[_0x2562e9('0x3')]},'uniqueid':{'type':Sequelize[_0x2562e9('0x3')]},'linkedid':{'type':Sequelize['STRING']},'sequence':{'type':Sequelize[_0x2562e9('0x3')]},'peeraccount':{'type':Sequelize[_0x2562e9('0x3')]},'type':{'type':Sequelize[_0x2562e9('0x3')]},'tag':{'type':Sequelize[_0x2562e9('0x3')]}}; \ No newline at end of file diff --git a/server/api/cdr/cdr.controller.js b/server/api/cdr/cdr.controller.js index a37b864..0df81fb 100644 --- a/server/api/cdr/cdr.controller.js +++ b/server/api/cdr/cdr.controller.js @@ -1 +1 @@ -const a51_0x3e7b=['includeAll','params','sendStatus','length','api','where','count','show','intersection','map','filters','key','sort','Cdr','json','../../mysqldb','catch','type','end','offset','../../components/parsers/qs','filter','describe','name','include','stack','status','rows','merge','../../config/logger','model','error','like','index','undefined','body','Content-Range','findAll','rawAttributes','send','VIRTUAL','destroy','keys','findOne','query','update','fields','attributes','options','then','limit'];(function(_0xe9aa1c,_0x3e7b07){const _0x5d6aee=function(_0x38d11a){while(--_0x38d11a){_0xe9aa1c['push'](_0xe9aa1c['shift']());}};_0x5d6aee(++_0x3e7b07);}(a51_0x3e7b,0xfa));const a51_0x5d6a=function(_0xe9aa1c,_0x3e7b07){_0xe9aa1c=_0xe9aa1c-0x0;let _0x5d6aee=a51_0x3e7b[_0xe9aa1c];return _0x5d6aee;};const _0x1d6bdb=a51_0x5d6a;'use strict';const _=require('lodash'),qs=require(_0x1d6bdb('0x19')),logger=require(_0x1d6bdb('0x22'))(_0x1d6bdb('0x9')),db=require(_0x1d6bdb('0x14'))['db'],{Op}=require('sequelize');function respondWithResult(_0x38d11a,_0x23202b){return _0x23202b=_0x23202b||0xc8,function(_0x2e23a7){const _0x1fee5f=a51_0x5d6a;if(_0x2e23a7)return _0x38d11a['status'](_0x23202b)[_0x1fee5f('0x13')](_0x2e23a7);};}function respondWithFilteredResult(_0x1f7f0c,_0x5294e8){return function(_0x1dbe66){const _0x226b90=a51_0x5d6a;if(_0x1dbe66){const _0x4f9acb=_0x1dbe66[_0x226b90('0xb')],_0x528c9f=_0x5294e8[_0x226b90('0x18')];let _0x10e1a1=_0x5294e8[_0x226b90('0x18')]+_0x5294e8[_0x226b90('0x4')],_0x5ea89d;return _0x10e1a1>=_0x4f9acb?(_0x10e1a1=_0x4f9acb,_0x5ea89d=0xc8):_0x5ea89d=0xce,_0x1f7f0c[_0x226b90('0x1f')](_0x5ea89d),_0x1f7f0c['set'](_0x226b90('0x29'),_0x528c9f+'-'+_0x10e1a1+'/'+_0x4f9acb)['json'](_0x1dbe66);}return null;};}function saveUpdates(_0x48b1e7){return function(_0x6111f6){const _0xfca03a=a51_0x5d6a;if(_0x6111f6)return _0x6111f6[_0xfca03a('0x32')](_0x48b1e7)[_0xfca03a('0x3')](function(_0x1013b2){return _0x1013b2;});return null;};}function removeEntity(_0xebe5b3){return function(_0x149d28){const _0x30fc7e=a51_0x5d6a;if(_0x149d28)return _0x149d28[_0x30fc7e('0x2e')]()[_0x30fc7e('0x3')](function(){const _0x5e7eaf=_0x30fc7e;_0xebe5b3['status'](0xcc)[_0x5e7eaf('0x17')]();});};}function handleEntityNotFound(_0x320010){return function(_0x266799){const _0xa0379b=a51_0x5d6a;return!_0x266799&&_0x320010[_0xa0379b('0x7')](0x194),_0x266799;};}function handleError(_0x256458,_0xc397d4){return _0xc397d4=_0xc397d4||0x1f4,function(_0x319ecf){const _0x3e0cde=a51_0x5d6a;logger[_0x3e0cde('0x24')](_0x319ecf[_0x3e0cde('0x1e')]),_0x319ecf[_0x3e0cde('0x1c')]&&delete _0x319ecf[_0x3e0cde('0x1c')],_0x256458[_0x3e0cde('0x1f')](_0xc397d4)[_0x3e0cde('0x2c')](_0x319ecf);};}exports[_0x1d6bdb('0x26')]=function(_0x54d3ec,_0x40b1d9){const _0x4f37f9=_0x1d6bdb;let _0x48a39d={};const _0x422f94={},_0x5e9bae={'count':0x0,'rows':[]},_0x5c0aa5=_['map'](db[_0x4f37f9('0x12')][_0x4f37f9('0x2b')],function(_0x23f65c){const _0x7f974b=_0x4f37f9;return{'name':_0x23f65c['fieldName'],'type':_0x23f65c['type'][_0x7f974b('0x10')]};});_0x422f94[_0x4f37f9('0x23')]=_[_0x4f37f9('0xe')](_0x5c0aa5,_0x4f37f9('0x1c')),_0x422f94[_0x4f37f9('0x31')]=_[_0x4f37f9('0x2f')](_0x54d3ec['query']),_0x422f94[_0x4f37f9('0xf')]=_[_0x4f37f9('0xd')](_0x422f94[_0x4f37f9('0x23')],_0x422f94['query']),_0x48a39d[_0x4f37f9('0x1')]=_[_0x4f37f9('0xd')](_0x422f94[_0x4f37f9('0x23')],qs[_0x4f37f9('0x0')](_0x54d3ec[_0x4f37f9('0x31')]['fields'])),_0x48a39d[_0x4f37f9('0x1')]=_0x48a39d[_0x4f37f9('0x1')][_0x4f37f9('0x8')]?_0x48a39d[_0x4f37f9('0x1')]:_0x422f94[_0x4f37f9('0x23')];typeof _0x54d3ec[_0x4f37f9('0x31')]['nolimit']===_0x4f37f9('0x27')&&(_0x48a39d['limit']=qs[_0x4f37f9('0x4')](_0x54d3ec['query'][_0x4f37f9('0x4')]),_0x48a39d[_0x4f37f9('0x18')]=qs[_0x4f37f9('0x18')](_0x54d3ec['query'][_0x4f37f9('0x18')]));_0x48a39d['order']=qs[_0x4f37f9('0x11')](_0x54d3ec['query'][_0x4f37f9('0x11')]),_0x48a39d[_0x4f37f9('0xa')]=qs[_0x4f37f9('0xf')](_['pick'](_0x54d3ec['query'],_0x422f94[_0x4f37f9('0xf')]),_0x5c0aa5);_0x54d3ec['query'][_0x4f37f9('0x1a')]&&(_0x48a39d[_0x4f37f9('0xa')]=_[_0x4f37f9('0x21')](_0x48a39d[_0x4f37f9('0xa')],{[Op['or']]:_['map'](_0x5c0aa5,function(_0x13920c){const _0xd964a8=_0x4f37f9;if(_0x13920c[_0xd964a8('0x16')]!==_0xd964a8('0x2d')){const _0x4674f6={};return _0x4674f6[_0x13920c['name']]={[Op[_0xd964a8('0x25')]]:'%'+_0x54d3ec['query'][_0xd964a8('0x1a')]+'%'},_0x4674f6;}})}));_0x48a39d=_[_0x4f37f9('0x21')]({},_0x48a39d,_0x54d3ec[_0x4f37f9('0x2')]);const _0xbeb51c={'where':_0x48a39d[_0x4f37f9('0xa')]};return db[_0x4f37f9('0x12')]['count'](_0xbeb51c)[_0x4f37f9('0x3')](function(_0x3d2ca1){const _0x489e2b=_0x4f37f9;return _0x5e9bae[_0x489e2b('0xb')]=_0x3d2ca1,_0x54d3ec['query'][_0x489e2b('0x5')]&&(_0x48a39d['include']=[{'all':!![]}]),db[_0x489e2b('0x12')][_0x489e2b('0x2a')](_0x48a39d);})[_0x4f37f9('0x3')](function(_0x21027b){const _0x319be1=_0x4f37f9;return _0x5e9bae[_0x319be1('0x20')]=_0x21027b,_0x5e9bae;})[_0x4f37f9('0x3')](respondWithFilteredResult(_0x40b1d9,_0x48a39d))['catch'](handleError(_0x40b1d9,null));},exports[_0x1d6bdb('0xc')]=function(_0x4499dc,_0x5b754c){const _0x31fafe=_0x1d6bdb;let _0x62aab3={'raw':!![],'where':{'id':_0x4499dc[_0x31fafe('0x6')]['id']}};const _0x40ae25={};return _0x40ae25[_0x31fafe('0x23')]=_[_0x31fafe('0x2f')](db['Cdr']['rawAttributes']),_0x40ae25[_0x31fafe('0x31')]=_['keys'](_0x4499dc[_0x31fafe('0x31')]),_0x40ae25[_0x31fafe('0xf')]=_[_0x31fafe('0xd')](_0x40ae25[_0x31fafe('0x23')],_0x40ae25[_0x31fafe('0x31')]),_0x62aab3[_0x31fafe('0x1')]=_['intersection'](_0x40ae25[_0x31fafe('0x23')],qs[_0x31fafe('0x0')](_0x4499dc[_0x31fafe('0x31')][_0x31fafe('0x0')])),_0x62aab3['attributes']=_0x62aab3[_0x31fafe('0x1')][_0x31fafe('0x8')]?_0x62aab3[_0x31fafe('0x1')]:_0x40ae25['model'],_0x4499dc[_0x31fafe('0x31')][_0x31fafe('0x5')]&&(_0x62aab3[_0x31fafe('0x1d')]=[{'all':!![]}]),_0x62aab3=_[_0x31fafe('0x21')]({},_0x62aab3,_0x4499dc[_0x31fafe('0x2')]),db['Cdr'][_0x31fafe('0x30')](_0x62aab3)[_0x31fafe('0x3')](handleEntityNotFound(_0x5b754c,null))['then'](respondWithResult(_0x5b754c,null))['catch'](handleError(_0x5b754c,null));},exports['create']=function(_0xbf6076,_0x320530){const _0x5c07ae=_0x1d6bdb;return db[_0x5c07ae('0x12')]['create'](_0xbf6076['body'],{})['then'](respondWithResult(_0x320530,0xc9))[_0x5c07ae('0x15')](handleError(_0x320530,null));},exports[_0x1d6bdb('0x32')]=function(_0x4dbd62,_0x21a42b){const _0x537f5a=_0x1d6bdb;return _0x4dbd62[_0x537f5a('0x28')]['id']&&delete _0x4dbd62['body']['id'],db['Cdr'][_0x537f5a('0x30')]({'where':{'id':_0x4dbd62[_0x537f5a('0x6')]['id']}})[_0x537f5a('0x3')](handleEntityNotFound(_0x21a42b,null))[_0x537f5a('0x3')](saveUpdates(_0x4dbd62[_0x537f5a('0x28')],null))[_0x537f5a('0x3')](respondWithResult(_0x21a42b,null))[_0x537f5a('0x15')](handleError(_0x21a42b,null));},exports[_0x1d6bdb('0x2e')]=function(_0x51d53f,_0x4b10dd){const _0x1dbb84=_0x1d6bdb;return db[_0x1dbb84('0x12')][_0x1dbb84('0x30')]({'where':{'id':_0x51d53f['params']['id']}})[_0x1dbb84('0x3')](handleEntityNotFound(_0x4b10dd,null))[_0x1dbb84('0x3')](removeEntity(_0x4b10dd,null))['catch'](handleError(_0x4b10dd,null));},exports[_0x1d6bdb('0x1b')]=function(_0x3c0e6e,_0x102a3e){const _0x4d1fe3=_0x1d6bdb;return db[_0x4d1fe3('0x12')]['describe']()[_0x4d1fe3('0x3')](respondWithResult(_0x102a3e,null))[_0x4d1fe3('0x15')](handleError(_0x102a3e,null));}; \ No newline at end of file +const a51_0x2cc7=['../../mysqldb','merge','json','name','rows','status','body','offset','pick','fields','findOne','filters','limit','stack','Content-Range','attributes','show','findAll','then','api','VIRTUAL','catch','options','keys','update','count','model','params','send','include','type','rawAttributes','sort','includeAll','query','../../components/parsers/qs','destroy','key','set','create','end','undefined','filter','../../config/logger','describe','order','Cdr','map','where','intersection','nolimit','length','sequelize'];(function(_0x62724c,_0x2cc753){const _0x132236=function(_0x2b4537){while(--_0x2b4537){_0x62724c['push'](_0x62724c['shift']());}};_0x132236(++_0x2cc753);}(a51_0x2cc7,0x141));const a51_0x1322=function(_0x62724c,_0x2cc753){_0x62724c=_0x62724c-0x0;let _0x132236=a51_0x2cc7[_0x62724c];return _0x132236;};const _0x588500=a51_0x1322;'use strict';const _=require('lodash'),qs=require(_0x588500('0x20')),logger=require(_0x588500('0x28'))(_0x588500('0x10')),db=require(_0x588500('0x32'))['db'],{Op}=require(_0x588500('0x31'));function respondWithResult(_0x2b4537,_0x372468){return _0x372468=_0x372468||0xc8,function(_0x362772){const _0x6a7fb=a51_0x1322;if(_0x362772)return _0x2b4537[_0x6a7fb('0x2')](_0x372468)[_0x6a7fb('0x34')](_0x362772);};}function respondWithFilteredResult(_0x148487,_0x252051){return function(_0x5dd59b){const _0x321db9=a51_0x1322;if(_0x5dd59b){const _0x78b94b=_0x5dd59b['count'],_0x4fbcd6=_0x252051[_0x321db9('0x4')];let _0x8e13eb=_0x252051[_0x321db9('0x4')]+_0x252051[_0x321db9('0x9')],_0x10dfed;return _0x8e13eb>=_0x78b94b?(_0x8e13eb=_0x78b94b,_0x10dfed=0xc8):_0x10dfed=0xce,_0x148487['status'](_0x10dfed),_0x148487[_0x321db9('0x23')](_0x321db9('0xb'),_0x4fbcd6+'-'+_0x8e13eb+'/'+_0x78b94b)['json'](_0x5dd59b);}return null;};}function saveUpdates(_0x34057f){return function(_0x2741ce){if(_0x2741ce)return _0x2741ce['update'](_0x34057f)['then'](function(_0x19530b){return _0x19530b;});return null;};}function removeEntity(_0x2ff8fc){return function(_0x3c72cd){const _0x311950=a51_0x1322;if(_0x3c72cd)return _0x3c72cd[_0x311950('0x21')]()[_0x311950('0xf')](function(){const _0x5b6d20=_0x311950;_0x2ff8fc['status'](0xcc)[_0x5b6d20('0x25')]();});};}function handleEntityNotFound(_0x4e1a91){return function(_0x1ef8a1){return!_0x1ef8a1&&_0x4e1a91['sendStatus'](0x194),_0x1ef8a1;};}function handleError(_0x9467f5,_0x45622d){return _0x45622d=_0x45622d||0x1f4,function(_0x2b2663){const _0x5b5752=a51_0x1322;logger['error'](_0x2b2663[_0x5b5752('0xa')]),_0x2b2663['name']&&delete _0x2b2663['name'],_0x9467f5[_0x5b5752('0x2')](_0x45622d)[_0x5b5752('0x19')](_0x2b2663);};}exports['index']=function(_0x1381a3,_0x4df1ea){const _0x12392f=_0x588500;let _0x1193d5={};const _0x5ade38={},_0x3dd10b={'count':0x0,'rows':[]},_0x42be58=_[_0x12392f('0x2c')](db['Cdr']['rawAttributes'],function(_0x4a5b9b){const _0x276ee5=_0x12392f;return{'name':_0x4a5b9b['fieldName'],'type':_0x4a5b9b[_0x276ee5('0x1b')][_0x276ee5('0x22')]};});_0x5ade38[_0x12392f('0x17')]=_['map'](_0x42be58,'name'),_0x5ade38[_0x12392f('0x1f')]=_['keys'](_0x1381a3['query']),_0x5ade38[_0x12392f('0x8')]=_[_0x12392f('0x2e')](_0x5ade38[_0x12392f('0x17')],_0x5ade38[_0x12392f('0x1f')]),_0x1193d5[_0x12392f('0xc')]=_[_0x12392f('0x2e')](_0x5ade38['model'],qs['fields'](_0x1381a3[_0x12392f('0x1f')]['fields'])),_0x1193d5[_0x12392f('0xc')]=_0x1193d5[_0x12392f('0xc')][_0x12392f('0x30')]?_0x1193d5[_0x12392f('0xc')]:_0x5ade38[_0x12392f('0x17')];typeof _0x1381a3[_0x12392f('0x1f')][_0x12392f('0x2f')]===_0x12392f('0x26')&&(_0x1193d5['limit']=qs[_0x12392f('0x9')](_0x1381a3['query'][_0x12392f('0x9')]),_0x1193d5[_0x12392f('0x4')]=qs[_0x12392f('0x4')](_0x1381a3[_0x12392f('0x1f')][_0x12392f('0x4')]));_0x1193d5[_0x12392f('0x2a')]=qs[_0x12392f('0x1d')](_0x1381a3[_0x12392f('0x1f')][_0x12392f('0x1d')]),_0x1193d5['where']=qs[_0x12392f('0x8')](_[_0x12392f('0x5')](_0x1381a3['query'],_0x5ade38[_0x12392f('0x8')]),_0x42be58);_0x1381a3[_0x12392f('0x1f')][_0x12392f('0x27')]&&(_0x1193d5['where']=_[_0x12392f('0x33')](_0x1193d5[_0x12392f('0x2d')],{[Op['or']]:_[_0x12392f('0x2c')](_0x42be58,function(_0xcba61f){const _0x1f4af0=_0x12392f;if(_0xcba61f[_0x1f4af0('0x1b')]!==_0x1f4af0('0x11')){const _0x27d83a={};return _0x27d83a[_0xcba61f[_0x1f4af0('0x0')]]={[Op['like']]:'%'+_0x1381a3[_0x1f4af0('0x1f')][_0x1f4af0('0x27')]+'%'},_0x27d83a;}})}));_0x1193d5=_['merge']({},_0x1193d5,_0x1381a3[_0x12392f('0x13')]);const _0x5477aa={'where':_0x1193d5['where']};return db[_0x12392f('0x2b')][_0x12392f('0x16')](_0x5477aa)['then'](function(_0x83da68){const _0x1e6cb3=_0x12392f;return _0x3dd10b[_0x1e6cb3('0x16')]=_0x83da68,_0x1381a3[_0x1e6cb3('0x1f')][_0x1e6cb3('0x1e')]&&(_0x1193d5[_0x1e6cb3('0x1a')]=[{'all':!![]}]),db[_0x1e6cb3('0x2b')][_0x1e6cb3('0xe')](_0x1193d5);})[_0x12392f('0xf')](function(_0x4dc0ce){const _0x21ba23=_0x12392f;return _0x3dd10b[_0x21ba23('0x1')]=_0x4dc0ce,_0x3dd10b;})[_0x12392f('0xf')](respondWithFilteredResult(_0x4df1ea,_0x1193d5))[_0x12392f('0x12')](handleError(_0x4df1ea,null));},exports[_0x588500('0xd')]=function(_0x4612ef,_0x37fa61){const _0xd29109=_0x588500;let _0x3dfa6d={'raw':!![],'where':{'id':_0x4612ef[_0xd29109('0x18')]['id']}};const _0x208f59={};return _0x208f59[_0xd29109('0x17')]=_[_0xd29109('0x14')](db['Cdr'][_0xd29109('0x1c')]),_0x208f59[_0xd29109('0x1f')]=_[_0xd29109('0x14')](_0x4612ef[_0xd29109('0x1f')]),_0x208f59['filters']=_[_0xd29109('0x2e')](_0x208f59[_0xd29109('0x17')],_0x208f59['query']),_0x3dfa6d[_0xd29109('0xc')]=_[_0xd29109('0x2e')](_0x208f59['model'],qs[_0xd29109('0x6')](_0x4612ef[_0xd29109('0x1f')][_0xd29109('0x6')])),_0x3dfa6d['attributes']=_0x3dfa6d[_0xd29109('0xc')]['length']?_0x3dfa6d[_0xd29109('0xc')]:_0x208f59[_0xd29109('0x17')],_0x4612ef[_0xd29109('0x1f')][_0xd29109('0x1e')]&&(_0x3dfa6d[_0xd29109('0x1a')]=[{'all':!![]}]),_0x3dfa6d=_[_0xd29109('0x33')]({},_0x3dfa6d,_0x4612ef[_0xd29109('0x13')]),db['Cdr'][_0xd29109('0x7')](_0x3dfa6d)[_0xd29109('0xf')](handleEntityNotFound(_0x37fa61,null))['then'](respondWithResult(_0x37fa61,null))[_0xd29109('0x12')](handleError(_0x37fa61,null));},exports[_0x588500('0x24')]=function(_0x37c10d,_0x32dbd7){const _0xfa1e45=_0x588500;return db[_0xfa1e45('0x2b')]['create'](_0x37c10d['body'],{})[_0xfa1e45('0xf')](respondWithResult(_0x32dbd7,0xc9))[_0xfa1e45('0x12')](handleError(_0x32dbd7,null));},exports[_0x588500('0x15')]=function(_0x37231d,_0x53b55c){const _0x1876d3=_0x588500;return _0x37231d[_0x1876d3('0x3')]['id']&&delete _0x37231d['body']['id'],db[_0x1876d3('0x2b')][_0x1876d3('0x7')]({'where':{'id':_0x37231d[_0x1876d3('0x18')]['id']}})[_0x1876d3('0xf')](handleEntityNotFound(_0x53b55c,null))[_0x1876d3('0xf')](saveUpdates(_0x37231d['body'],null))[_0x1876d3('0xf')](respondWithResult(_0x53b55c,null))[_0x1876d3('0x12')](handleError(_0x53b55c,null));},exports[_0x588500('0x21')]=function(_0x4b67b0,_0x2e2212){const _0x435514=_0x588500;return db['Cdr']['findOne']({'where':{'id':_0x4b67b0['params']['id']}})[_0x435514('0xf')](handleEntityNotFound(_0x2e2212,null))[_0x435514('0xf')](removeEntity(_0x2e2212,null))[_0x435514('0x12')](handleError(_0x2e2212,null));},exports['describe']=function(_0x3b60d0,_0x1d696d){const _0x1222a5=_0x588500;return db['Cdr'][_0x1222a5('0x29')]()['then'](respondWithResult(_0x1d696d,null))[_0x1222a5('0x12')](handleError(_0x1d696d,null));}; \ No newline at end of file diff --git a/server/api/cdr/cdr.model.js b/server/api/cdr/cdr.model.js index 087d771..e1b4d80 100644 --- a/server/api/cdr/cdr.model.js +++ b/server/api/cdr/cdr.model.js @@ -1 +1 @@ -const a52_0x42dd=['cdr','disposition','./cdr.attributes','uniqueid','exports','define','Cdr','dst','accountcode','calldate','src'];(function(_0x1e94d0,_0x42ddad){const _0x3db551=function(_0x5b78bb){while(--_0x5b78bb){_0x1e94d0['push'](_0x1e94d0['shift']());}};_0x3db551(++_0x42ddad);}(a52_0x42dd,0x1bc));const a52_0x3db5=function(_0x1e94d0,_0x42ddad){_0x1e94d0=_0x1e94d0-0x0;let _0x3db551=a52_0x42dd[_0x1e94d0];return _0x3db551;};const _0x32b93b=a52_0x3db5;'use strict';const attributes=require(_0x32b93b('0x9'));module[_0x32b93b('0x0')]=function(_0x5b78bb){const _0x350d63=_0x32b93b,_0x2363c5=_0x5b78bb[_0x350d63('0x1')](_0x350d63('0x2'),attributes,{'tableName':_0x350d63('0x7'),'paranoid':![],'indexes':[{'name':'accountcode','fields':[_0x350d63('0x4')]},{'name':_0x350d63('0x5'),'fields':[_0x350d63('0x5')]},{'name':_0x350d63('0x8'),'fields':['disposition']},{'name':_0x350d63('0x3'),'fields':[_0x350d63('0x3')]},{'name':_0x350d63('0x6'),'fields':['src']},{'name':_0x350d63('0xa'),'fields':[_0x350d63('0xa')]}],'timestamps':![]});return _0x2363c5;}; \ No newline at end of file +const a52_0x4b2f=['src','accountcode','dst','uniqueid','calldate','cdr','disposition','Cdr','./cdr.attributes'];(function(_0x55276f,_0x4b2f07){const _0xde1f4e=function(_0x2c3548){while(--_0x2c3548){_0x55276f['push'](_0x55276f['shift']());}};_0xde1f4e(++_0x4b2f07);}(a52_0x4b2f,0x75));const a52_0xde1f=function(_0x55276f,_0x4b2f07){_0x55276f=_0x55276f-0x0;let _0xde1f4e=a52_0x4b2f[_0x55276f];return _0xde1f4e;};const _0x14d963=a52_0xde1f;'use strict';const attributes=require(_0x14d963('0x8'));module['exports']=function(_0x2c3548){const _0xcb73de=_0x14d963,_0x4eec0e=_0x2c3548['define'](_0xcb73de('0x7'),attributes,{'tableName':_0xcb73de('0x5'),'paranoid':![],'indexes':[{'name':_0xcb73de('0x1'),'fields':[_0xcb73de('0x1')]},{'name':_0xcb73de('0x4'),'fields':[_0xcb73de('0x4')]},{'name':_0xcb73de('0x6'),'fields':[_0xcb73de('0x6')]},{'name':_0xcb73de('0x2'),'fields':[_0xcb73de('0x2')]},{'name':'src','fields':[_0xcb73de('0x0')]},{'name':_0xcb73de('0x3'),'fields':[_0xcb73de('0x3')]}],'timestamps':![]});return _0x4eec0e;}; \ No newline at end of file diff --git a/server/api/cdr/index.js b/server/api/cdr/index.js index 0c51b92..96777e0 100644 --- a/server/api/cdr/index.js +++ b/server/api/cdr/index.js @@ -1 +1 @@ -const a53_0x7edb=['create','index','describe','destroy','update','post','delete','isAuthenticated','./cdr.controller','/describe','../../components/auth/service','exports','/:id','express','get'];(function(_0x1ada5c,_0x7edb44){const _0x486e1a=function(_0x41b09f){while(--_0x41b09f){_0x1ada5c['push'](_0x1ada5c['shift']());}};_0x486e1a(++_0x7edb44);}(a53_0x7edb,0xe4));const a53_0x486e=function(_0x1ada5c,_0x7edb44){_0x1ada5c=_0x1ada5c-0x0;let _0x486e1a=a53_0x7edb[_0x1ada5c];return _0x486e1a;};const _0x4e8717=a53_0x486e;'use strict';const express=require(_0x4e8717('0xa')),router=express['Router'](),auth=require(_0x4e8717('0x7')),controller=require(_0x4e8717('0x5'));router[_0x4e8717('0xb')]('/',auth[_0x4e8717('0x4')](),controller[_0x4e8717('0xd')]),router[_0x4e8717('0xb')](_0x4e8717('0x6'),auth[_0x4e8717('0x4')](),controller[_0x4e8717('0xe')]),router[_0x4e8717('0xb')]('/:id',auth[_0x4e8717('0x4')](),controller['show']),router[_0x4e8717('0x2')]('/',auth[_0x4e8717('0x4')](),controller[_0x4e8717('0xc')]),router['put'](_0x4e8717('0x9'),auth[_0x4e8717('0x4')](),controller[_0x4e8717('0x1')]),router[_0x4e8717('0x3')]('/:id',auth[_0x4e8717('0x4')](),controller[_0x4e8717('0x0')]),module[_0x4e8717('0x8')]=router; \ No newline at end of file +const a53_0x36c6=['Router','post','/describe','update','delete','./cdr.controller','get','isAuthenticated','exports','../../components/auth/service','destroy','/:id','index','create','describe'];(function(_0x48b79e,_0x36c60a){const _0x160a94=function(_0x499773){while(--_0x499773){_0x48b79e['push'](_0x48b79e['shift']());}};_0x160a94(++_0x36c60a);}(a53_0x36c6,0x1ae));const a53_0x160a=function(_0x48b79e,_0x36c60a){_0x48b79e=_0x48b79e-0x0;let _0x160a94=a53_0x36c6[_0x48b79e];return _0x160a94;};const _0x38ee57=a53_0x160a;'use strict';const express=require('express'),router=express[_0x38ee57('0x5')](),auth=require(_0x38ee57('0xe')),controller=require(_0x38ee57('0xa'));router[_0x38ee57('0xb')]('/',auth[_0x38ee57('0xc')](),controller[_0x38ee57('0x2')]),router[_0x38ee57('0xb')](_0x38ee57('0x7'),auth[_0x38ee57('0xc')](),controller[_0x38ee57('0x4')]),router[_0x38ee57('0xb')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x38ee57('0x6')]('/',auth[_0x38ee57('0xc')](),controller[_0x38ee57('0x3')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x38ee57('0x8')]),router[_0x38ee57('0x9')](_0x38ee57('0x1'),auth['isAuthenticated'](),controller[_0x38ee57('0x0')]),module[_0x38ee57('0xd')]=router; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.attributes.js b/server/api/chatApplication/chatApplication.attributes.js index 447a67c..c618ef7 100644 --- a/server/api/chatApplication/chatApplication.attributes.js +++ b/server/api/chatApplication/chatApplication.attributes.js @@ -1 +1 @@ -const a54_0x967a=['STRING','TEXT','INTEGER','noop','exports'];(function(_0x10839c,_0x967a31){const _0x3c282d=function(_0x57753b){while(--_0x57753b){_0x10839c['push'](_0x10839c['shift']());}};_0x3c282d(++_0x967a31);}(a54_0x967a,0x1c9));const a54_0x3c28=function(_0x10839c,_0x967a31){_0x10839c=_0x10839c-0x0;let _0x3c282d=a54_0x967a[_0x10839c];return _0x3c282d;};const _0x16dfa5=a54_0x3c28;'use strict';const Sequelize=require('sequelize');module[_0x16dfa5('0x2')]={'priority':{'type':Sequelize[_0x16dfa5('0x0')],'allowNull':![]},'app':{'type':Sequelize[_0x16dfa5('0x3')],'allowNull':![],'defaultValue':_0x16dfa5('0x1')},'appdata':{'type':Sequelize[_0x16dfa5('0x4')]()},'description':{'type':Sequelize[_0x16dfa5('0x3')]},'interval':{'type':Sequelize[_0x16dfa5('0x3')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +const a54_0x1e68=['TEXT','noop','sequelize','exports','STRING'];(function(_0x3b0500,_0x1e6841){const _0x3c406c=function(_0x41ab28){while(--_0x41ab28){_0x3b0500['push'](_0x3b0500['shift']());}};_0x3c406c(++_0x1e6841);}(a54_0x1e68,0xee));const a54_0x3c40=function(_0x3b0500,_0x1e6841){_0x3b0500=_0x3b0500-0x0;let _0x3c406c=a54_0x1e68[_0x3b0500];return _0x3c406c;};const _0x3ca2bc=a54_0x3c40;'use strict';const Sequelize=require(_0x3ca2bc('0x4'));module[_0x3ca2bc('0x0')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize[_0x3ca2bc('0x1')],'allowNull':![],'defaultValue':_0x3ca2bc('0x3')},'appdata':{'type':Sequelize[_0x3ca2bc('0x2')]()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x3ca2bc('0x1')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.controller.js b/server/api/chatApplication/chatApplication.controller.js index 335ce9a..9becddc 100644 --- a/server/api/chatApplication/chatApplication.controller.js +++ b/server/api/chatApplication/chatApplication.controller.js @@ -1 +1 @@ -const a55_0xa659=['attributes','../../mysqldb','query','catch','merge','length','model','../../components/parsers/qs','filters','findOne','name','show','params','rawAttributes','end','include','includeAll','fields','json','error','status','ChatApplication','keys','then','intersection','options','destroy','update','body'];(function(_0x52cfa2,_0xa659df){const _0x1251b0=function(_0x542640){while(--_0x542640){_0x52cfa2['push'](_0x52cfa2['shift']());}};_0x1251b0(++_0xa659df);}(a55_0xa659,0x190));const a55_0x1251=function(_0x52cfa2,_0xa659df){_0x52cfa2=_0x52cfa2-0x0;let _0x1251b0=a55_0xa659[_0x52cfa2];return _0x1251b0;};const _0x220904=a55_0x1251;'use strict';const _=require('lodash'),qs=require(_0x220904('0xd')),logger=require('../../config/logger')('api'),db=require(_0x220904('0x7'))['db'];function respondWithResult(_0x542640,_0x5529de){return _0x5529de=_0x5529de||0xc8,function(_0x5d15dc){const _0x3e8dda=a55_0x1251;if(_0x5d15dc)return _0x542640[_0x3e8dda('0x1a')](_0x5529de)[_0x3e8dda('0x18')](_0x5d15dc);};}function saveUpdates(_0x1c2951){return function(_0x56594a){const _0x1df9df=a55_0x1251;if(_0x56594a)return _0x56594a[_0x1df9df('0x4')](_0x1c2951)[_0x1df9df('0x0')](function(_0x46abab){return _0x46abab;});return null;};}function removeEntity(_0x1feabf){return function(_0x18c28b){const _0x24fb79=a55_0x1251;if(_0x18c28b)return _0x18c28b[_0x24fb79('0x3')]()['then'](function(){const _0x3bfd36=_0x24fb79;_0x1feabf[_0x3bfd36('0x1a')](0xcc)[_0x3bfd36('0x14')]();});};}function handleEntityNotFound(_0x4f1661){return function(_0x3c9e02){return!_0x3c9e02&&_0x4f1661['sendStatus'](0x194),_0x3c9e02;};}function handleError(_0x571e77,_0x42d6b0){return _0x42d6b0=_0x42d6b0||0x1f4,function(_0xdd5052){const _0x4e8f34=a55_0x1251;logger[_0x4e8f34('0x19')](_0xdd5052['stack']),_0xdd5052[_0x4e8f34('0x10')]&&delete _0xdd5052[_0x4e8f34('0x10')],_0x571e77['status'](_0x42d6b0)['send'](_0xdd5052);};}exports[_0x220904('0x11')]=function(_0x3acf9c,_0x1f9cac){const _0x18360f=_0x220904;let _0x2cd0e={'raw':!![],'where':{'id':_0x3acf9c[_0x18360f('0x12')]['id']}};const _0x407cd7={};return _0x407cd7[_0x18360f('0xc')]=_[_0x18360f('0x1c')](db['ChatApplication'][_0x18360f('0x13')]),_0x407cd7[_0x18360f('0x8')]=_[_0x18360f('0x1c')](_0x3acf9c[_0x18360f('0x8')]),_0x407cd7[_0x18360f('0xe')]=_['intersection'](_0x407cd7[_0x18360f('0xc')],_0x407cd7['query']),_0x2cd0e[_0x18360f('0x6')]=_[_0x18360f('0x1')](_0x407cd7[_0x18360f('0xc')],qs[_0x18360f('0x17')](_0x3acf9c[_0x18360f('0x8')]['fields'])),_0x2cd0e[_0x18360f('0x6')]=_0x2cd0e[_0x18360f('0x6')][_0x18360f('0xb')]?_0x2cd0e['attributes']:_0x407cd7['model'],_0x3acf9c[_0x18360f('0x8')][_0x18360f('0x16')]&&(_0x2cd0e[_0x18360f('0x15')]=[{'all':!![]}]),_0x2cd0e=_[_0x18360f('0xa')]({},_0x2cd0e,_0x3acf9c[_0x18360f('0x2')]),db[_0x18360f('0x1b')][_0x18360f('0xf')](_0x2cd0e)[_0x18360f('0x0')](handleEntityNotFound(_0x1f9cac,null))[_0x18360f('0x0')](respondWithResult(_0x1f9cac,null))[_0x18360f('0x9')](handleError(_0x1f9cac,null));},exports[_0x220904('0x4')]=function(_0x974b19,_0x4136ca){const _0xb4b06e=_0x220904;return _0x974b19[_0xb4b06e('0x5')]['id']&&delete _0x974b19[_0xb4b06e('0x5')]['id'],db[_0xb4b06e('0x1b')]['findOne']({'where':{'id':_0x974b19[_0xb4b06e('0x12')]['id']}})[_0xb4b06e('0x0')](handleEntityNotFound(_0x4136ca,null))[_0xb4b06e('0x0')](saveUpdates(_0x974b19[_0xb4b06e('0x5')],null))[_0xb4b06e('0x0')](respondWithResult(_0x4136ca,null))[_0xb4b06e('0x9')](handleError(_0x4136ca,null));},exports[_0x220904('0x3')]=function(_0x5843c4,_0x48acbf){const _0x3a2e82=_0x220904;return db[_0x3a2e82('0x1b')][_0x3a2e82('0xf')]({'where':{'id':_0x5843c4[_0x3a2e82('0x12')]['id']}})[_0x3a2e82('0x0')](handleEntityNotFound(_0x48acbf,null))[_0x3a2e82('0x0')](removeEntity(_0x48acbf,null))[_0x3a2e82('0x9')](handleError(_0x48acbf,null));}; \ No newline at end of file +const a55_0x24f2=['includeAll','keys','sendStatus','fields','then','include','model','options','params','destroy','intersection','findOne','name','attributes','show','../../mysqldb','status','update','filters','end','../../components/parsers/qs','lodash','error','body','ChatApplication','query','json','stack','catch'];(function(_0xa0c489,_0x24f2a9){const _0xfc5150=function(_0x11c764){while(--_0x11c764){_0xa0c489['push'](_0xa0c489['shift']());}};_0xfc5150(++_0x24f2a9);}(a55_0x24f2,0x1ab));const a55_0xfc51=function(_0xa0c489,_0x24f2a9){_0xa0c489=_0xa0c489-0x0;let _0xfc5150=a55_0x24f2[_0xa0c489];return _0xfc5150;};const _0x1b8c65=a55_0xfc51;'use strict';const _=require(_0x1b8c65('0x0')),qs=require(_0x1b8c65('0x1c')),logger=require('../../config/logger')('api'),db=require(_0x1b8c65('0x17'))['db'];function respondWithResult(_0x11c764,_0x10acad){return _0x10acad=_0x10acad||0xc8,function(_0x6b848f){const _0x445778=a55_0xfc51;if(_0x6b848f)return _0x11c764['status'](_0x10acad)[_0x445778('0x5')](_0x6b848f);};}function saveUpdates(_0x2390f2){return function(_0x4f8d28){const _0x99a2c8=a55_0xfc51;if(_0x4f8d28)return _0x4f8d28[_0x99a2c8('0x19')](_0x2390f2)[_0x99a2c8('0xc')](function(_0xf45a5f){return _0xf45a5f;});return null;};}function removeEntity(_0x206328){return function(_0x433031){const _0x394d9f=a55_0xfc51;if(_0x433031)return _0x433031[_0x394d9f('0x11')]()[_0x394d9f('0xc')](function(){const _0x5e2643=_0x394d9f;_0x206328['status'](0xcc)[_0x5e2643('0x1b')]();});};}function handleEntityNotFound(_0x121d50){return function(_0x3b099d){const _0x2254f7=a55_0xfc51;return!_0x3b099d&&_0x121d50[_0x2254f7('0xa')](0x194),_0x3b099d;};}function handleError(_0x9a4097,_0x2f7a6b){return _0x2f7a6b=_0x2f7a6b||0x1f4,function(_0x585793){const _0x368c82=a55_0xfc51;logger[_0x368c82('0x1')](_0x585793[_0x368c82('0x6')]),_0x585793[_0x368c82('0x14')]&&delete _0x585793[_0x368c82('0x14')],_0x9a4097[_0x368c82('0x18')](_0x2f7a6b)['send'](_0x585793);};}exports[_0x1b8c65('0x16')]=function(_0x34cb8d,_0x3df183){const _0x7d8caa=_0x1b8c65;let _0x1fe8a6={'raw':!![],'where':{'id':_0x34cb8d[_0x7d8caa('0x10')]['id']}};const _0x430a04={};return _0x430a04[_0x7d8caa('0xe')]=_[_0x7d8caa('0x9')](db[_0x7d8caa('0x3')]['rawAttributes']),_0x430a04[_0x7d8caa('0x4')]=_[_0x7d8caa('0x9')](_0x34cb8d['query']),_0x430a04[_0x7d8caa('0x1a')]=_[_0x7d8caa('0x12')](_0x430a04[_0x7d8caa('0xe')],_0x430a04[_0x7d8caa('0x4')]),_0x1fe8a6[_0x7d8caa('0x15')]=_['intersection'](_0x430a04[_0x7d8caa('0xe')],qs['fields'](_0x34cb8d[_0x7d8caa('0x4')][_0x7d8caa('0xb')])),_0x1fe8a6[_0x7d8caa('0x15')]=_0x1fe8a6['attributes']['length']?_0x1fe8a6[_0x7d8caa('0x15')]:_0x430a04[_0x7d8caa('0xe')],_0x34cb8d['query'][_0x7d8caa('0x8')]&&(_0x1fe8a6[_0x7d8caa('0xd')]=[{'all':!![]}]),_0x1fe8a6=_['merge']({},_0x1fe8a6,_0x34cb8d[_0x7d8caa('0xf')]),db['ChatApplication'][_0x7d8caa('0x13')](_0x1fe8a6)['then'](handleEntityNotFound(_0x3df183,null))['then'](respondWithResult(_0x3df183,null))[_0x7d8caa('0x7')](handleError(_0x3df183,null));},exports[_0x1b8c65('0x19')]=function(_0x2af4c0,_0x13407c){const _0x4fdd11=_0x1b8c65;return _0x2af4c0[_0x4fdd11('0x2')]['id']&&delete _0x2af4c0[_0x4fdd11('0x2')]['id'],db[_0x4fdd11('0x3')][_0x4fdd11('0x13')]({'where':{'id':_0x2af4c0['params']['id']}})[_0x4fdd11('0xc')](handleEntityNotFound(_0x13407c,null))[_0x4fdd11('0xc')](saveUpdates(_0x2af4c0[_0x4fdd11('0x2')],null))[_0x4fdd11('0xc')](respondWithResult(_0x13407c,null))['catch'](handleError(_0x13407c,null));},exports[_0x1b8c65('0x11')]=function(_0x3625b1,_0x5ec20b){const _0x4c03c6=_0x1b8c65;return db[_0x4c03c6('0x3')][_0x4c03c6('0x13')]({'where':{'id':_0x3625b1[_0x4c03c6('0x10')]['id']}})[_0x4c03c6('0xc')](handleEntityNotFound(_0x5ec20b,null))[_0x4c03c6('0xc')](removeEntity(_0x5ec20b,null))['catch'](handleError(_0x5ec20b,null));}; \ No newline at end of file diff --git a/server/api/chatApplication/chatApplication.model.js b/server/api/chatApplication/chatApplication.model.js index 1a75f21..79ccfbf 100644 --- a/server/api/chatApplication/chatApplication.model.js +++ b/server/api/chatApplication/chatApplication.model.js @@ -1 +1 @@ -const a56_0x4c11=['utf8mb4_unicode_ci','ChatApplication','./chatApplication.attributes','utf8mb4','chat_applications'];(function(_0x58ef09,_0x4c115f){const _0x164976=function(_0x364484){while(--_0x364484){_0x58ef09['push'](_0x58ef09['shift']());}};_0x164976(++_0x4c115f);}(a56_0x4c11,0x92));const a56_0x1649=function(_0x58ef09,_0x4c115f){_0x58ef09=_0x58ef09-0x0;let _0x164976=a56_0x4c11[_0x58ef09];return _0x164976;};const _0x37e941=a56_0x1649;'use strict';const attributes=require(_0x37e941('0x1'));module['exports']=function(_0x364484){const _0x27aa00=_0x37e941,_0x1f3c9d=_0x364484['define'](_0x27aa00('0x0'),attributes,{'tableName':_0x27aa00('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x27aa00('0x2'),'collate':_0x27aa00('0x4')});return _0x1f3c9d;}; \ No newline at end of file +const a56_0x2de7=['define','chat_applications','./chatApplication.attributes','exports','ChatApplication'];(function(_0x3d2e69,_0x2de7e0){const _0x3c03c2=function(_0x519f39){while(--_0x519f39){_0x3d2e69['push'](_0x3d2e69['shift']());}};_0x3c03c2(++_0x2de7e0);}(a56_0x2de7,0x1c6));const a56_0x3c03=function(_0x3d2e69,_0x2de7e0){_0x3d2e69=_0x3d2e69-0x0;let _0x3c03c2=a56_0x2de7[_0x3d2e69];return _0x3c03c2;};const _0x3c8761=a56_0x3c03;'use strict';const attributes=require(_0x3c8761('0x3'));module[_0x3c8761('0x4')]=function(_0x519f39){const _0x1a967a=_0x3c8761,_0x6d9482=_0x519f39[_0x1a967a('0x1')](_0x1a967a('0x0'),attributes,{'tableName':_0x1a967a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x6d9482;}; \ No newline at end of file diff --git a/server/api/chatApplication/index.js b/server/api/chatApplication/index.js index 0ccff21..6d4ab7c 100644 --- a/server/api/chatApplication/index.js +++ b/server/api/chatApplication/index.js @@ -1 +1 @@ -const a57_0x2f37=['exports','update','destroy','show','get','isAuthenticated','put','Router','../../components/auth/service','/:id'];(function(_0x3b88d2,_0x2f379b){const _0x481d01=function(_0x51935c){while(--_0x51935c){_0x3b88d2['push'](_0x3b88d2['shift']());}};_0x481d01(++_0x2f379b);}(a57_0x2f37,0xdf));const a57_0x481d=function(_0x3b88d2,_0x2f379b){_0x3b88d2=_0x3b88d2-0x0;let _0x481d01=a57_0x2f37[_0x3b88d2];return _0x481d01;};const _0x3570a0=a57_0x481d;'use strict';const express=require('express'),router=express[_0x3570a0('0x4')](),auth=require(_0x3570a0('0x5')),controller=require('./chatApplication.controller');router[_0x3570a0('0x1')](_0x3570a0('0x6'),auth[_0x3570a0('0x2')](),controller[_0x3570a0('0x0')]),router[_0x3570a0('0x3')](_0x3570a0('0x6'),auth['isAuthenticated'](),controller[_0x3570a0('0x8')]),router['delete'](_0x3570a0('0x6'),auth[_0x3570a0('0x2')](),controller[_0x3570a0('0x9')]),module[_0x3570a0('0x7')]=router; \ No newline at end of file +const a57_0x27fc=['get','update','isAuthenticated','../../components/auth/service','express','Router','/:id','exports','show'];(function(_0x6e27d6,_0x27fc15){const _0x239b43=function(_0x15f637){while(--_0x15f637){_0x6e27d6['push'](_0x6e27d6['shift']());}};_0x239b43(++_0x27fc15);}(a57_0x27fc,0xff));const a57_0x239b=function(_0x6e27d6,_0x27fc15){_0x6e27d6=_0x6e27d6-0x0;let _0x239b43=a57_0x27fc[_0x6e27d6];return _0x239b43;};const _0x58c7ac=a57_0x239b;'use strict';const express=require(_0x58c7ac('0x1')),router=express[_0x58c7ac('0x2')](),auth=require(_0x58c7ac('0x0')),controller=require('./chatApplication.controller');router[_0x58c7ac('0x6')](_0x58c7ac('0x3'),auth['isAuthenticated'](),controller[_0x58c7ac('0x5')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x58c7ac('0x7')]),router['delete'](_0x58c7ac('0x3'),auth[_0x58c7ac('0x8')](),controller['destroy']),module[_0x58c7ac('0x4')]=router; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.attributes.js b/server/api/chatGroup/chatGroup.attributes.js index e6afae7..4e27af4 100644 --- a/server/api/chatGroup/chatGroup.attributes.js +++ b/server/api/chatGroup/chatGroup.attributes.js @@ -1 +1 @@ -const a58_0xcfb7=['exports','BOOLEAN','sequelize','STRING'];(function(_0x15c306,_0xcfb764){const _0x28b7c3=function(_0x116d41){while(--_0x116d41){_0x15c306['push'](_0x15c306['shift']());}};_0x28b7c3(++_0xcfb764);}(a58_0xcfb7,0x176));const a58_0x28b7=function(_0x15c306,_0xcfb764){_0x15c306=_0x15c306-0x0;let _0x28b7c3=a58_0xcfb7[_0x15c306];return _0x28b7c3;};const _0x5607c9=a58_0x28b7;'use strict';const Sequelize=require(_0x5607c9('0x0'));module[_0x5607c9('0x2')]={'name':{'type':Sequelize[_0x5607c9('0x1')],'allowNull':![]},'description':{'type':Sequelize['STRING']},'write':{'type':Sequelize[_0x5607c9('0x3')],'defaultValue':!![]}}; \ No newline at end of file +const a58_0x15ed=['sequelize','exports','BOOLEAN'];(function(_0x3ed5a0,_0x15edec){const _0x54affb=function(_0x3ca96b){while(--_0x3ca96b){_0x3ed5a0['push'](_0x3ed5a0['shift']());}};_0x54affb(++_0x15edec);}(a58_0x15ed,0x1a8));const a58_0x54af=function(_0x3ed5a0,_0x15edec){_0x3ed5a0=_0x3ed5a0-0x0;let _0x54affb=a58_0x15ed[_0x3ed5a0];return _0x54affb;};const _0x4305d2=a58_0x54af;'use strict';const Sequelize=require(_0x4305d2('0x2'));module[_0x4305d2('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize['STRING']},'write':{'type':Sequelize[_0x4305d2('0x1')],'defaultValue':!![]}}; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.controller.js b/server/api/chatGroup/chatGroup.controller.js index 232dadc..f9cbb65 100644 --- a/server/api/chatGroup/chatGroup.controller.js +++ b/server/api/chatGroup/chatGroup.controller.js @@ -1 +1 @@ -const a59_0x1bb8=['merge','getMessages','sendStatus','$gte','index','addMembers','send','catch','../../components/parsers/qs','name','api','offset','end','rawAttributes','ChatGroupId','show','YYYY-MM-DD\x20HH:mm:ss','type','include','addMessage','length','update','params','fields','intersection','findAll','gte','set','stack','undefined','sort','getMembers','model','removeMembers','status','filter','getUnread','count','where','limit','order','omit','ChatInternalMessage','format','like','destroy','pick','./chatGroup.socket','then','VIRTUAL','key','filters','includeAll','error','moment','body','options','json','rows','findOne','../../rediscache','ChatGroup','query','attributes','split','describe','create','lodash','Content-Range','fieldName','map','nolimit','ids','keys','sequelize'];(function(_0x8b376,_0x1bb8d5){const _0x4e915b=function(_0x400ba8){while(--_0x400ba8){_0x8b376['push'](_0x8b376['shift']());}};_0x4e915b(++_0x1bb8d5);}(a59_0x1bb8,0x118));const a59_0x4e91=function(_0x8b376,_0x1bb8d5){_0x8b376=_0x8b376-0x0;let _0x4e915b=a59_0x1bb8[_0x8b376];return _0x4e915b;};const _0x399180=a59_0x4e91;'use strict';const moment=require(_0x399180('0x4a')),_=require(_0x399180('0xc')),{getSocket}=require(_0x399180('0x5')),qs=require(_0x399180('0x1c')),logger=require('../../config/logger')(_0x399180('0x1e')),db=require('../../mysqldb')['db'],{Op}=require(_0x399180('0x13')),socket=getSocket();require(_0x399180('0x43'))['register'](socket);function respondWithStatusCode(_0x400ba8,_0x528f56){return _0x528f56=_0x528f56||0xcc,function(_0x75f3eb){const _0x15d860=a59_0x4e91;if(_0x75f3eb)return _0x400ba8[_0x15d860('0x16')](_0x528f56);return _0x400ba8[_0x15d860('0x36')](_0x528f56)[_0x15d860('0x20')]();};}function respondWithResult(_0x635bf5,_0x504d12){return _0x504d12=_0x504d12||0xc8,function(_0x40e6ac){const _0x5c33ab=a59_0x4e91;if(_0x40e6ac)return _0x635bf5[_0x5c33ab('0x36')](_0x504d12)[_0x5c33ab('0x2')](_0x40e6ac);};}function respondWithFilteredResult(_0x1fcd83,_0x5ce9b6){return function(_0x173a63){const _0x490309=a59_0x4e91;if(_0x173a63){const _0x2b0b59=_0x173a63[_0x490309('0x39')],_0x5d17e7=_0x5ce9b6[_0x490309('0x1f')];let _0x50f280=_0x5ce9b6[_0x490309('0x1f')]+_0x5ce9b6[_0x490309('0x3b')],_0x2a284b;return _0x50f280>=_0x2b0b59?(_0x50f280=_0x2b0b59,_0x2a284b=0xc8):_0x2a284b=0xce,_0x1fcd83[_0x490309('0x36')](_0x2a284b),_0x1fcd83[_0x490309('0x2f')](_0x490309('0xd'),_0x5d17e7+'-'+_0x50f280+'/'+_0x2b0b59)['json'](_0x173a63);}return null;};}function saveUpdates(_0x286130){return function(_0x372d9c){const _0x16bce3=a59_0x4e91;if(_0x372d9c)return _0x372d9c[_0x16bce3('0x29')](_0x286130)[_0x16bce3('0x44')](function(_0x12b48b){return _0x12b48b;});return null;};}function removeEntity(_0x56c722){return function(_0x5f5d6f){const _0x24180c=a59_0x4e91;if(_0x5f5d6f)return _0x5f5d6f[_0x24180c('0x41')]()[_0x24180c('0x44')](function(){const _0x1a1139=_0x24180c;_0x56c722[_0x1a1139('0x36')](0xcc)[_0x1a1139('0x20')]();});};}function handleEntityNotFound(_0x35f61a){return function(_0x4c1ac0){const _0x1a31be=a59_0x4e91;return!_0x4c1ac0&&_0x35f61a[_0x1a31be('0x16')](0x194),_0x4c1ac0;};}function handleError(_0x506117,_0x5f3368){return _0x5f3368=_0x5f3368||0x1f4,function(_0x342ef0){const _0x345eae=a59_0x4e91;logger[_0x345eae('0x49')](_0x342ef0[_0x345eae('0x30')]),_0x342ef0[_0x345eae('0x1d')]&&delete _0x342ef0[_0x345eae('0x1d')],_0x506117[_0x345eae('0x36')](_0x5f3368)[_0x345eae('0x1a')](_0x342ef0);};}exports[_0x399180('0x18')]=function(_0x202ee3,_0x50a52d){const _0x470207=_0x399180;let _0x1a932e={};const _0x503dfb={},_0x288471={'count':0x0,'rows':[]},_0x2e12df=_[_0x470207('0xf')](db[_0x470207('0x6')][_0x470207('0x21')],function(_0x3ebede){const _0x2eb71d=_0x470207;return{'name':_0x3ebede[_0x2eb71d('0xe')],'type':_0x3ebede[_0x2eb71d('0x25')][_0x2eb71d('0x46')]};});_0x503dfb[_0x470207('0x34')]=_['map'](_0x2e12df,_0x470207('0x1d')),_0x503dfb[_0x470207('0x7')]=_[_0x470207('0x12')](_0x202ee3[_0x470207('0x7')]),_0x503dfb[_0x470207('0x47')]=_[_0x470207('0x2c')](_0x503dfb[_0x470207('0x34')],_0x503dfb['query']),_0x1a932e[_0x470207('0x8')]=_['intersection'](_0x503dfb['model'],qs[_0x470207('0x2b')](_0x202ee3[_0x470207('0x7')][_0x470207('0x2b')])),_0x1a932e['attributes']=_0x1a932e['attributes']['length']?_0x1a932e[_0x470207('0x8')]:_0x503dfb[_0x470207('0x34')];typeof _0x202ee3[_0x470207('0x7')][_0x470207('0x10')]===_0x470207('0x31')&&(_0x1a932e[_0x470207('0x3b')]=qs[_0x470207('0x3b')](_0x202ee3['query'][_0x470207('0x3b')]),_0x1a932e['offset']=qs['offset'](_0x202ee3[_0x470207('0x7')][_0x470207('0x1f')]));_0x1a932e[_0x470207('0x3c')]=qs[_0x470207('0x32')](_0x202ee3[_0x470207('0x7')][_0x470207('0x32')]),_0x1a932e[_0x470207('0x3a')]=qs[_0x470207('0x47')](_[_0x470207('0x42')](_0x202ee3[_0x470207('0x7')],_0x503dfb[_0x470207('0x47')]),_0x2e12df);_0x202ee3['query']['filter']&&(_0x1a932e[_0x470207('0x3a')]=_[_0x470207('0x14')](_0x1a932e['where'],{[Op['or']]:_[_0x470207('0xf')](_0x2e12df,function(_0x6c95a5){const _0x1811ba=_0x470207;if(_0x6c95a5[_0x1811ba('0x25')]!==_0x1811ba('0x45')){const _0x30705d={};return _0x30705d[_0x6c95a5[_0x1811ba('0x1d')]]={[Op[_0x1811ba('0x40')]]:'%'+_0x202ee3[_0x1811ba('0x7')][_0x1811ba('0x37')]+'%'},_0x30705d;}})}));_0x1a932e=_[_0x470207('0x14')]({},_0x1a932e,_0x202ee3[_0x470207('0x1')]);const _0x1a90da={'where':_0x1a932e[_0x470207('0x3a')]};return db[_0x470207('0x6')][_0x470207('0x39')](_0x1a90da)['then'](function(_0x1daf2f){const _0x1d4fef=_0x470207;return _0x288471[_0x1d4fef('0x39')]=_0x1daf2f,_0x202ee3['query'][_0x1d4fef('0x48')]&&(_0x1a932e[_0x1d4fef('0x26')]=[{'all':!![]}]),db[_0x1d4fef('0x6')][_0x1d4fef('0x2d')](_0x1a932e);})[_0x470207('0x44')](function(_0x375b14){const _0x2a0ff4=_0x470207;return _0x288471[_0x2a0ff4('0x3')]=_0x375b14,_0x288471;})[_0x470207('0x44')](respondWithFilteredResult(_0x50a52d,_0x1a932e))['catch'](handleError(_0x50a52d,null));},exports[_0x399180('0x23')]=function(_0x3c39da,_0x4050aa){const _0x3cdfc1=_0x399180;let _0x1074eb={'raw':!![],'where':{'id':_0x3c39da[_0x3cdfc1('0x2a')]['id']}};const _0x23c39e={};return _0x23c39e[_0x3cdfc1('0x34')]=_[_0x3cdfc1('0x12')](db[_0x3cdfc1('0x6')]['rawAttributes']),_0x23c39e[_0x3cdfc1('0x7')]=_[_0x3cdfc1('0x12')](_0x3c39da[_0x3cdfc1('0x7')]),_0x23c39e['filters']=_['intersection'](_0x23c39e[_0x3cdfc1('0x34')],_0x23c39e[_0x3cdfc1('0x7')]),_0x1074eb[_0x3cdfc1('0x8')]=_[_0x3cdfc1('0x2c')](_0x23c39e[_0x3cdfc1('0x34')],qs[_0x3cdfc1('0x2b')](_0x3c39da['query']['fields'])),_0x1074eb['attributes']=_0x1074eb[_0x3cdfc1('0x8')][_0x3cdfc1('0x28')]?_0x1074eb[_0x3cdfc1('0x8')]:_0x23c39e[_0x3cdfc1('0x34')],_0x3c39da['query'][_0x3cdfc1('0x48')]&&(_0x1074eb[_0x3cdfc1('0x26')]=[{'all':!![]}]),_0x1074eb=_[_0x3cdfc1('0x14')]({},_0x1074eb,_0x3c39da[_0x3cdfc1('0x1')]),db[_0x3cdfc1('0x6')][_0x3cdfc1('0x4')](_0x1074eb)[_0x3cdfc1('0x44')](handleEntityNotFound(_0x4050aa,null))[_0x3cdfc1('0x44')](respondWithResult(_0x4050aa,null))['catch'](handleError(_0x4050aa,null));},exports[_0x399180('0xb')]=function(_0x2504a2,_0x40e7f6){const _0x24809d=_0x399180;return db['ChatGroup'][_0x24809d('0xb')](_0x2504a2[_0x24809d('0x0')],{})[_0x24809d('0x44')](respondWithResult(_0x40e7f6,0xc9))[_0x24809d('0x1b')](handleError(_0x40e7f6,null));},exports[_0x399180('0x29')]=function(_0x41f5c3,_0x28cc59){const _0x2bb1bd=_0x399180;return _0x41f5c3[_0x2bb1bd('0x0')]['id']&&delete _0x41f5c3[_0x2bb1bd('0x0')]['id'],db['ChatGroup'][_0x2bb1bd('0x4')]({'where':{'id':_0x41f5c3[_0x2bb1bd('0x2a')]['id']}})[_0x2bb1bd('0x44')](handleEntityNotFound(_0x28cc59,null))[_0x2bb1bd('0x44')](saveUpdates(_0x41f5c3[_0x2bb1bd('0x0')],null))[_0x2bb1bd('0x44')](respondWithResult(_0x28cc59,null))[_0x2bb1bd('0x1b')](handleError(_0x28cc59,null));},exports['destroy']=function(_0x183cbf,_0x4db6e1){const _0x514176=_0x399180;return db[_0x514176('0x6')][_0x514176('0x4')]({'where':{'id':_0x183cbf[_0x514176('0x2a')]['id']}})[_0x514176('0x44')](handleEntityNotFound(_0x4db6e1,null))[_0x514176('0x44')](removeEntity(_0x4db6e1,null))['catch'](handleError(_0x4db6e1,null));},exports[_0x399180('0xa')]=function(_0x36e78f,_0x4f160d){const _0xb816f5=_0x399180;return db['ChatGroup'][_0xb816f5('0xa')]()[_0xb816f5('0x44')](respondWithResult(_0x4f160d,null))[_0xb816f5('0x1b')](handleError(_0x4f160d,null));},exports[_0x399180('0x38')]=function(_0x507fd0,_0x40f7fc){const _0x19dc44=_0x399180;return db[_0x19dc44('0x3e')][_0x19dc44('0x39')]({'where':{'ChatGroupId':_0x507fd0[_0x19dc44('0x2a')]['id'],'ToId':_0x507fd0['user']['id'],'read':![]}})['then'](function(_0x3b9f67){const _0x2def62=_0x19dc44;return{'id':_['toInteger'](_0x507fd0[_0x2def62('0x2a')]['id']),'count':_0x3b9f67};})[_0x19dc44('0x44')](respondWithResult(_0x40f7fc,null))[_0x19dc44('0x1b')](handleError(_0x40f7fc,null));},exports[_0x399180('0x19')]=function(_0x2ba952,_0x38c9eb){const _0x19f2d9=_0x399180;return db[_0x19f2d9('0x6')][_0x19f2d9('0x4')]({'where':{'id':_0x2ba952[_0x19f2d9('0x2a')]['id']}})[_0x19f2d9('0x44')](function(_0x3b7acb){const _0x171037=_0x19f2d9;if(_0x3b7acb)return _0x3b7acb['addMembers'](_0x2ba952[_0x171037('0x0')][_0x171037('0x11')],{'through':_[_0x171037('0x3d')](_0x2ba952[_0x171037('0x0')],[_0x171037('0x11'),'id'])});})[_0x19f2d9('0x44')](respondWithResult(_0x38c9eb,null))[_0x19f2d9('0x1b')](handleError(_0x38c9eb,null));},exports[_0x399180('0x33')]=function(_0x43a60a,_0x5d5f76){const _0x177a6a=_0x399180;let _0x4d8416={};const _0x112dfb={};let _0x1c6cbc,_0x22bd4f;return db[_0x177a6a('0x6')][_0x177a6a('0x4')]({'where':{'id':_0x43a60a[_0x177a6a('0x2a')]['id']}})['then'](handleEntityNotFound(_0x5d5f76,null))[_0x177a6a('0x44')](function(_0x5c7c41){const _0x378ecc=_0x177a6a;if(_0x5c7c41)return _0x1c6cbc=_0x5c7c41,_0x112dfb[_0x378ecc('0x34')]=_[_0x378ecc('0x12')](db['User'][_0x378ecc('0x21')]),_0x112dfb[_0x378ecc('0x7')]=_[_0x378ecc('0x12')](_0x43a60a[_0x378ecc('0x7')]),_0x112dfb[_0x378ecc('0x47')]=_[_0x378ecc('0x2c')](_0x112dfb[_0x378ecc('0x34')],_0x112dfb[_0x378ecc('0x7')]),_0x4d8416[_0x378ecc('0x8')]=_[_0x378ecc('0x2c')](_0x112dfb[_0x378ecc('0x34')],qs[_0x378ecc('0x2b')](_0x43a60a[_0x378ecc('0x7')][_0x378ecc('0x2b')])),_0x4d8416['attributes']=_0x4d8416[_0x378ecc('0x8')][_0x378ecc('0x28')]?_0x4d8416[_0x378ecc('0x8')]:_0x112dfb[_0x378ecc('0x34')],_0x4d8416[_0x378ecc('0x3c')]=qs[_0x378ecc('0x32')](_0x43a60a[_0x378ecc('0x7')][_0x378ecc('0x32')]),_0x4d8416['where']=qs[_0x378ecc('0x47')](_[_0x378ecc('0x42')](_0x43a60a[_0x378ecc('0x7')],_0x112dfb[_0x378ecc('0x47')])),_0x43a60a[_0x378ecc('0x7')][_0x378ecc('0x37')]&&(_0x4d8416['where']=_['merge'](_0x4d8416['where'],{[Op['or']]:_[_0x378ecc('0xf')](_0x4d8416[_0x378ecc('0x8')],function(_0x1f0706){const _0x57354e=_0x378ecc,_0x25ed27={};return _0x25ed27[_0x1f0706]={[Op[_0x57354e('0x40')]]:'%'+_0x43a60a[_0x57354e('0x7')]['filter']+'%'},_0x25ed27;})})),_0x4d8416=_[_0x378ecc('0x14')]({},_0x4d8416,_0x43a60a[_0x378ecc('0x1')]),_0x1c6cbc['getMembers'](_0x4d8416);})[_0x177a6a('0x44')](function(_0x2b0d1a){const _0x3fe0a1=_0x177a6a;if(_0x2b0d1a)return _0x22bd4f=_0x2b0d1a[_0x3fe0a1('0x28')],typeof _0x43a60a['query']['nolimit']===_0x3fe0a1('0x31')&&(_0x4d8416[_0x3fe0a1('0x3b')]=qs[_0x3fe0a1('0x3b')](_0x43a60a[_0x3fe0a1('0x7')][_0x3fe0a1('0x3b')]),_0x4d8416[_0x3fe0a1('0x1f')]=qs[_0x3fe0a1('0x1f')](_0x43a60a['query'][_0x3fe0a1('0x1f')])),_0x1c6cbc[_0x3fe0a1('0x33')](_0x4d8416);})[_0x177a6a('0x44')](function(_0x124c6c){if(_0x124c6c)return _0x124c6c?{'count':_0x22bd4f,'rows':_0x124c6c}:null;})[_0x177a6a('0x44')](respondWithResult(_0x5d5f76,null))['catch'](handleError(_0x5d5f76,null));},exports[_0x399180('0x35')]=function(_0x30c8e8,_0x7b938f){const _0x372582=_0x399180;return db[_0x372582('0x6')][_0x372582('0x4')]({'where':{'id':_0x30c8e8[_0x372582('0x2a')]['id']}})['then'](handleEntityNotFound(_0x7b938f,null))[_0x372582('0x44')](function(_0x270df3){const _0x36915f=_0x372582;if(_0x270df3)return _0x270df3[_0x36915f('0x35')](_0x30c8e8[_0x36915f('0x7')][_0x36915f('0x11')]);})[_0x372582('0x44')](respondWithStatusCode(_0x7b938f,null))[_0x372582('0x1b')](handleError(_0x7b938f,null));},exports[_0x399180('0x27')]=function(_0x1084bc,_0x19c1ef){const _0x2a825b=_0x399180;return _0x1084bc['body']['id']&&delete _0x1084bc['body']['id'],db['ChatGroup'][_0x2a825b('0x4')]({'where':{'id':_0x1084bc[_0x2a825b('0x2a')]['id']}})[_0x2a825b('0x44')](handleEntityNotFound(_0x19c1ef,null))[_0x2a825b('0x44')](function(_0xda2d72){const _0x588281=_0x2a825b;if(_0xda2d72)return _0x1084bc[_0x588281('0x0')][_0x588281('0x22')]=_0xda2d72['id'],db['ChatInternalMessage'][_0x588281('0xb')](_0x1084bc['body']);})[_0x2a825b('0x44')](respondWithResult(_0x19c1ef,null))[_0x2a825b('0x1b')](handleError(_0x19c1ef,null));},exports['getMessages']=function(_0x9a1214,_0x165d05){const _0x4f1da6=_0x399180;let _0xa8e4ff={};const _0x51022f={};let _0x35956c,_0xe5b3e1;return db[_0x4f1da6('0x6')][_0x4f1da6('0x4')]({'where':{'id':_0x9a1214[_0x4f1da6('0x2a')]['id']}})[_0x4f1da6('0x44')](handleEntityNotFound(_0x165d05,null))[_0x4f1da6('0x44')](function(_0x251ff0){const _0x323fe3=_0x4f1da6;if(_0x251ff0){_0x35956c=_0x251ff0,_0x51022f[_0x323fe3('0x34')]=_[_0x323fe3('0x12')](db[_0x323fe3('0x3e')][_0x323fe3('0x21')]),_0x51022f[_0x323fe3('0x7')]=_['keys'](_0x9a1214['query']),_0x51022f[_0x323fe3('0x47')]=_[_0x323fe3('0x2c')](_0x51022f[_0x323fe3('0x34')],_0x51022f[_0x323fe3('0x7')]),_0xa8e4ff[_0x323fe3('0x8')]=_[_0x323fe3('0x2c')](_0x51022f['model'],qs['fields'](_0x9a1214[_0x323fe3('0x7')][_0x323fe3('0x2b')])),_0xa8e4ff[_0x323fe3('0x8')]=_0xa8e4ff[_0x323fe3('0x8')]['length']?_0xa8e4ff[_0x323fe3('0x8')]:_0x51022f[_0x323fe3('0x34')],_0xa8e4ff[_0x323fe3('0x3c')]=qs[_0x323fe3('0x32')](_0x9a1214[_0x323fe3('0x7')][_0x323fe3('0x32')]),_0xa8e4ff[_0x323fe3('0x3a')]=qs['filters'](_['pick'](_0x9a1214[_0x323fe3('0x7')],_0x51022f[_0x323fe3('0x47')]));_0x9a1214[_0x323fe3('0x7')]['filter']&&(_0xa8e4ff[_0x323fe3('0x3a')]=_[_0x323fe3('0x14')](_0xa8e4ff['where'],{[Op['or']]:_['map'](_0xa8e4ff[_0x323fe3('0x8')],function(_0x4ed95c){const _0x52d4fe=_0x323fe3,_0xa1ab93={};return _0xa1ab93[_0x4ed95c]={[Op[_0x52d4fe('0x40')]]:'%'+_0x9a1214[_0x52d4fe('0x7')][_0x52d4fe('0x37')]+'%'},_0xa1ab93;})}));if(_0x9a1214[_0x323fe3('0x7')][_0x323fe3('0x17')]){const _0x81602d=_0x9a1214[_0x323fe3('0x7')][_0x323fe3('0x17')][_0x323fe3('0x9')](','),_0xb846eb={};_0xb846eb[_0x81602d[0x0]]={[Op[_0x323fe3('0x2e')]]:moment(_0x81602d[0x1])[_0x323fe3('0x3f')](_0x323fe3('0x24'))},_0xa8e4ff[_0x323fe3('0x3a')]=_['merge'](_0xa8e4ff[_0x323fe3('0x3a')],_0xb846eb);}return _0xa8e4ff=_['merge']({},_0xa8e4ff,_0x9a1214[_0x323fe3('0x1')]),_0x35956c[_0x323fe3('0x15')](_0xa8e4ff);}})[_0x4f1da6('0x44')](function(_0x5e85ba){const _0x512e4c=_0x4f1da6;if(_0x5e85ba)return _0xe5b3e1=_0x5e85ba[_0x512e4c('0x28')],typeof _0x9a1214[_0x512e4c('0x7')][_0x512e4c('0x10')]===_0x512e4c('0x31')&&(_0xa8e4ff[_0x512e4c('0x3b')]=qs[_0x512e4c('0x3b')](_0x9a1214['query'][_0x512e4c('0x3b')]),_0xa8e4ff[_0x512e4c('0x1f')]=qs[_0x512e4c('0x1f')](_0x9a1214['query'][_0x512e4c('0x1f')])),_0x35956c['getMessages'](_0xa8e4ff);})[_0x4f1da6('0x44')](function(_0x4c3dc5){if(_0x4c3dc5)return _0x4c3dc5?{'count':_0xe5b3e1,'rows':_0x4c3dc5}:null;})['then'](respondWithResult(_0x165d05,null))[_0x4f1da6('0x1b')](handleError(_0x165d05,null));}; \ No newline at end of file +const a59_0x4ae1=['end','destroy','gte','pick','name','findAll','query','user','key','status','like','params','nolimit','then','fields','send','getUnread','findOne','removeMembers','update','getMessages','limit','User','filter','includeAll','index','count','error','order','ChatGroup','getMembers','stack','intersection','type','map','describe','api','set','moment','filters','merge','ChatGroupId','fieldName','attributes','../../config/logger','toInteger','../../rediscache','where','ids','rows','show','options','register','json','addMembers','length','undefined','Content-Range','ChatInternalMessage','sort','$gte','include','catch','./chatGroup.socket','model','format','body','create','lodash','sendStatus','keys','rawAttributes','offset'];(function(_0x346c98,_0x4ae188){const _0x354abc=function(_0x907d76){while(--_0x907d76){_0x346c98['push'](_0x346c98['shift']());}};_0x354abc(++_0x4ae188);}(a59_0x4ae1,0x6e));const a59_0x354a=function(_0x346c98,_0x4ae188){_0x346c98=_0x346c98-0x0;let _0x354abc=a59_0x4ae1[_0x346c98];return _0x354abc;};const _0xcdc0ed=a59_0x354a;'use strict';const moment=require(_0xcdc0ed('0x1')),_=require(_0xcdc0ed('0x1f')),{getSocket}=require(_0xcdc0ed('0x9')),qs=require('../../components/parsers/qs'),logger=require(_0xcdc0ed('0x7'))(_0xcdc0ed('0x48')),db=require('../../mysqldb')['db'],{Op}=require('sequelize'),socket=getSocket();require(_0xcdc0ed('0x1a'))[_0xcdc0ed('0xf')](socket);function respondWithStatusCode(_0x907d76,_0x43fce6){return _0x43fce6=_0x43fce6||0xcc,function(_0x362e90){const _0x2a8acf=a59_0x354a;if(_0x362e90)return _0x907d76[_0x2a8acf('0x20')](_0x43fce6);return _0x907d76[_0x2a8acf('0x2d')](_0x43fce6)[_0x2a8acf('0x24')]();};}function respondWithResult(_0x2204bf,_0x4855c2){return _0x4855c2=_0x4855c2||0xc8,function(_0x44e3a8){const _0x42f38c=a59_0x354a;if(_0x44e3a8)return _0x2204bf[_0x42f38c('0x2d')](_0x4855c2)[_0x42f38c('0x10')](_0x44e3a8);};}function respondWithFilteredResult(_0x14e68f,_0x9366a1){return function(_0x41dee2){const _0x3e8356=a59_0x354a;if(_0x41dee2){const _0x22aaed=_0x41dee2[_0x3e8356('0x3e')],_0x467e4c=_0x9366a1[_0x3e8356('0x23')];let _0x4e2c08=_0x9366a1[_0x3e8356('0x23')]+_0x9366a1[_0x3e8356('0x39')],_0x276774;return _0x4e2c08>=_0x22aaed?(_0x4e2c08=_0x22aaed,_0x276774=0xc8):_0x276774=0xce,_0x14e68f['status'](_0x276774),_0x14e68f[_0x3e8356('0x0')](_0x3e8356('0x14'),_0x467e4c+'-'+_0x4e2c08+'/'+_0x22aaed)[_0x3e8356('0x10')](_0x41dee2);}return null;};}function saveUpdates(_0x2189bb){return function(_0x29603a){if(_0x29603a)return _0x29603a['update'](_0x2189bb)['then'](function(_0x4d7899){return _0x4d7899;});return null;};}function removeEntity(_0x457142){return function(_0x14040d){const _0x4eb2b7=a59_0x354a;if(_0x14040d)return _0x14040d[_0x4eb2b7('0x25')]()[_0x4eb2b7('0x31')](function(){const _0x2d5d36=_0x4eb2b7;_0x457142['status'](0xcc)[_0x2d5d36('0x24')]();});};}function handleEntityNotFound(_0x1ca33b){return function(_0x30aed3){const _0x3b2af5=a59_0x354a;return!_0x30aed3&&_0x1ca33b[_0x3b2af5('0x20')](0x194),_0x30aed3;};}function handleError(_0x434f14,_0x3f2d4a){return _0x3f2d4a=_0x3f2d4a||0x1f4,function(_0x451573){const _0x4ad268=a59_0x354a;logger[_0x4ad268('0x3f')](_0x451573[_0x4ad268('0x43')]),_0x451573[_0x4ad268('0x28')]&&delete _0x451573[_0x4ad268('0x28')],_0x434f14[_0x4ad268('0x2d')](_0x3f2d4a)[_0x4ad268('0x33')](_0x451573);};}exports[_0xcdc0ed('0x3d')]=function(_0x15e463,_0x497fe9){const _0x289fc7=_0xcdc0ed;let _0x1ff55e={};const _0x386934={},_0x271298={'count':0x0,'rows':[]},_0xa3db05=_['map'](db[_0x289fc7('0x41')][_0x289fc7('0x22')],function(_0x216c66){const _0x120b10=_0x289fc7;return{'name':_0x216c66[_0x120b10('0x5')],'type':_0x216c66[_0x120b10('0x45')][_0x120b10('0x2c')]};});_0x386934[_0x289fc7('0x1b')]=_[_0x289fc7('0x46')](_0xa3db05,_0x289fc7('0x28')),_0x386934['query']=_['keys'](_0x15e463[_0x289fc7('0x2a')]),_0x386934[_0x289fc7('0x2')]=_['intersection'](_0x386934[_0x289fc7('0x1b')],_0x386934[_0x289fc7('0x2a')]),_0x1ff55e[_0x289fc7('0x6')]=_['intersection'](_0x386934[_0x289fc7('0x1b')],qs[_0x289fc7('0x32')](_0x15e463[_0x289fc7('0x2a')]['fields'])),_0x1ff55e[_0x289fc7('0x6')]=_0x1ff55e[_0x289fc7('0x6')]['length']?_0x1ff55e[_0x289fc7('0x6')]:_0x386934[_0x289fc7('0x1b')];typeof _0x15e463[_0x289fc7('0x2a')][_0x289fc7('0x30')]===_0x289fc7('0x13')&&(_0x1ff55e['limit']=qs['limit'](_0x15e463[_0x289fc7('0x2a')][_0x289fc7('0x39')]),_0x1ff55e[_0x289fc7('0x23')]=qs[_0x289fc7('0x23')](_0x15e463[_0x289fc7('0x2a')][_0x289fc7('0x23')]));_0x1ff55e['order']=qs[_0x289fc7('0x16')](_0x15e463['query'][_0x289fc7('0x16')]),_0x1ff55e[_0x289fc7('0xa')]=qs[_0x289fc7('0x2')](_['pick'](_0x15e463[_0x289fc7('0x2a')],_0x386934['filters']),_0xa3db05);_0x15e463['query']['filter']&&(_0x1ff55e[_0x289fc7('0xa')]=_[_0x289fc7('0x3')](_0x1ff55e['where'],{[Op['or']]:_[_0x289fc7('0x46')](_0xa3db05,function(_0x1d691a){const _0x3784b8=_0x289fc7;if(_0x1d691a[_0x3784b8('0x45')]!=='VIRTUAL'){const _0x42244c={};return _0x42244c[_0x1d691a[_0x3784b8('0x28')]]={[Op[_0x3784b8('0x2e')]]:'%'+_0x15e463[_0x3784b8('0x2a')][_0x3784b8('0x3b')]+'%'},_0x42244c;}})}));_0x1ff55e=_['merge']({},_0x1ff55e,_0x15e463[_0x289fc7('0xe')]);const _0xf66944={'where':_0x1ff55e[_0x289fc7('0xa')]};return db['ChatGroup'][_0x289fc7('0x3e')](_0xf66944)[_0x289fc7('0x31')](function(_0x419167){const _0x213412=_0x289fc7;return _0x271298['count']=_0x419167,_0x15e463[_0x213412('0x2a')][_0x213412('0x3c')]&&(_0x1ff55e[_0x213412('0x18')]=[{'all':!![]}]),db['ChatGroup'][_0x213412('0x29')](_0x1ff55e);})[_0x289fc7('0x31')](function(_0x335590){const _0x392ed4=_0x289fc7;return _0x271298[_0x392ed4('0xc')]=_0x335590,_0x271298;})[_0x289fc7('0x31')](respondWithFilteredResult(_0x497fe9,_0x1ff55e))[_0x289fc7('0x19')](handleError(_0x497fe9,null));},exports[_0xcdc0ed('0xd')]=function(_0x196c45,_0x3ae5fb){const _0x121c04=_0xcdc0ed;let _0x4f2f33={'raw':!![],'where':{'id':_0x196c45[_0x121c04('0x2f')]['id']}};const _0x310550={};return _0x310550['model']=_[_0x121c04('0x21')](db[_0x121c04('0x41')][_0x121c04('0x22')]),_0x310550[_0x121c04('0x2a')]=_[_0x121c04('0x21')](_0x196c45[_0x121c04('0x2a')]),_0x310550[_0x121c04('0x2')]=_[_0x121c04('0x44')](_0x310550[_0x121c04('0x1b')],_0x310550['query']),_0x4f2f33['attributes']=_[_0x121c04('0x44')](_0x310550[_0x121c04('0x1b')],qs['fields'](_0x196c45[_0x121c04('0x2a')][_0x121c04('0x32')])),_0x4f2f33['attributes']=_0x4f2f33['attributes'][_0x121c04('0x12')]?_0x4f2f33[_0x121c04('0x6')]:_0x310550['model'],_0x196c45['query'][_0x121c04('0x3c')]&&(_0x4f2f33[_0x121c04('0x18')]=[{'all':!![]}]),_0x4f2f33=_[_0x121c04('0x3')]({},_0x4f2f33,_0x196c45[_0x121c04('0xe')]),db[_0x121c04('0x41')][_0x121c04('0x35')](_0x4f2f33)[_0x121c04('0x31')](handleEntityNotFound(_0x3ae5fb,null))['then'](respondWithResult(_0x3ae5fb,null))['catch'](handleError(_0x3ae5fb,null));},exports[_0xcdc0ed('0x1e')]=function(_0x268e0c,_0x15f3ea){const _0x290c4e=_0xcdc0ed;return db[_0x290c4e('0x41')][_0x290c4e('0x1e')](_0x268e0c['body'],{})[_0x290c4e('0x31')](respondWithResult(_0x15f3ea,0xc9))[_0x290c4e('0x19')](handleError(_0x15f3ea,null));},exports[_0xcdc0ed('0x37')]=function(_0x4b8028,_0x3b438e){const _0x3ad7b5=_0xcdc0ed;return _0x4b8028[_0x3ad7b5('0x1d')]['id']&&delete _0x4b8028[_0x3ad7b5('0x1d')]['id'],db[_0x3ad7b5('0x41')][_0x3ad7b5('0x35')]({'where':{'id':_0x4b8028['params']['id']}})[_0x3ad7b5('0x31')](handleEntityNotFound(_0x3b438e,null))['then'](saveUpdates(_0x4b8028[_0x3ad7b5('0x1d')],null))[_0x3ad7b5('0x31')](respondWithResult(_0x3b438e,null))[_0x3ad7b5('0x19')](handleError(_0x3b438e,null));},exports[_0xcdc0ed('0x25')]=function(_0x86bbcd,_0xc39c2e){const _0xc64dcb=_0xcdc0ed;return db['ChatGroup'][_0xc64dcb('0x35')]({'where':{'id':_0x86bbcd[_0xc64dcb('0x2f')]['id']}})[_0xc64dcb('0x31')](handleEntityNotFound(_0xc39c2e,null))[_0xc64dcb('0x31')](removeEntity(_0xc39c2e,null))['catch'](handleError(_0xc39c2e,null));},exports[_0xcdc0ed('0x47')]=function(_0x279f18,_0x355d1d){const _0x489351=_0xcdc0ed;return db[_0x489351('0x41')][_0x489351('0x47')]()['then'](respondWithResult(_0x355d1d,null))[_0x489351('0x19')](handleError(_0x355d1d,null));},exports[_0xcdc0ed('0x34')]=function(_0x269f14,_0x30f683){const _0x1984da=_0xcdc0ed;return db[_0x1984da('0x15')][_0x1984da('0x3e')]({'where':{'ChatGroupId':_0x269f14[_0x1984da('0x2f')]['id'],'ToId':_0x269f14[_0x1984da('0x2b')]['id'],'read':![]}})[_0x1984da('0x31')](function(_0x3d2ee7){const _0x13afc4=_0x1984da;return{'id':_[_0x13afc4('0x8')](_0x269f14[_0x13afc4('0x2f')]['id']),'count':_0x3d2ee7};})['then'](respondWithResult(_0x30f683,null))[_0x1984da('0x19')](handleError(_0x30f683,null));},exports[_0xcdc0ed('0x11')]=function(_0x1e1f95,_0x5a8c1a){const _0x30916e=_0xcdc0ed;return db[_0x30916e('0x41')]['findOne']({'where':{'id':_0x1e1f95['params']['id']}})[_0x30916e('0x31')](function(_0x455324){const _0x14b000=_0x30916e;if(_0x455324)return _0x455324[_0x14b000('0x11')](_0x1e1f95[_0x14b000('0x1d')]['ids'],{'through':_['omit'](_0x1e1f95[_0x14b000('0x1d')],[_0x14b000('0xb'),'id'])});})[_0x30916e('0x31')](respondWithResult(_0x5a8c1a,null))['catch'](handleError(_0x5a8c1a,null));},exports[_0xcdc0ed('0x42')]=function(_0x25ff25,_0x5862c7){const _0x2846cb=_0xcdc0ed;let _0x872f76={};const _0x25516b={};let _0x4b453d,_0x4695a6;return db[_0x2846cb('0x41')][_0x2846cb('0x35')]({'where':{'id':_0x25ff25[_0x2846cb('0x2f')]['id']}})['then'](handleEntityNotFound(_0x5862c7,null))[_0x2846cb('0x31')](function(_0x322821){const _0x50300a=_0x2846cb;if(_0x322821)return _0x4b453d=_0x322821,_0x25516b[_0x50300a('0x1b')]=_[_0x50300a('0x21')](db[_0x50300a('0x3a')][_0x50300a('0x22')]),_0x25516b['query']=_[_0x50300a('0x21')](_0x25ff25[_0x50300a('0x2a')]),_0x25516b[_0x50300a('0x2')]=_[_0x50300a('0x44')](_0x25516b[_0x50300a('0x1b')],_0x25516b['query']),_0x872f76[_0x50300a('0x6')]=_[_0x50300a('0x44')](_0x25516b[_0x50300a('0x1b')],qs['fields'](_0x25ff25[_0x50300a('0x2a')][_0x50300a('0x32')])),_0x872f76['attributes']=_0x872f76['attributes'][_0x50300a('0x12')]?_0x872f76[_0x50300a('0x6')]:_0x25516b['model'],_0x872f76[_0x50300a('0x40')]=qs['sort'](_0x25ff25[_0x50300a('0x2a')][_0x50300a('0x16')]),_0x872f76[_0x50300a('0xa')]=qs[_0x50300a('0x2')](_[_0x50300a('0x27')](_0x25ff25['query'],_0x25516b[_0x50300a('0x2')])),_0x25ff25[_0x50300a('0x2a')][_0x50300a('0x3b')]&&(_0x872f76[_0x50300a('0xa')]=_[_0x50300a('0x3')](_0x872f76[_0x50300a('0xa')],{[Op['or']]:_[_0x50300a('0x46')](_0x872f76[_0x50300a('0x6')],function(_0x3123f4){const _0x514b08=_0x50300a,_0x386613={};return _0x386613[_0x3123f4]={[Op['like']]:'%'+_0x25ff25[_0x514b08('0x2a')]['filter']+'%'},_0x386613;})})),_0x872f76=_[_0x50300a('0x3')]({},_0x872f76,_0x25ff25[_0x50300a('0xe')]),_0x4b453d[_0x50300a('0x42')](_0x872f76);})[_0x2846cb('0x31')](function(_0x5c8959){const _0x212818=_0x2846cb;if(_0x5c8959)return _0x4695a6=_0x5c8959[_0x212818('0x12')],typeof _0x25ff25['query'][_0x212818('0x30')]===_0x212818('0x13')&&(_0x872f76['limit']=qs[_0x212818('0x39')](_0x25ff25[_0x212818('0x2a')][_0x212818('0x39')]),_0x872f76['offset']=qs['offset'](_0x25ff25[_0x212818('0x2a')]['offset'])),_0x4b453d[_0x212818('0x42')](_0x872f76);})[_0x2846cb('0x31')](function(_0x3952ad){if(_0x3952ad)return _0x3952ad?{'count':_0x4695a6,'rows':_0x3952ad}:null;})[_0x2846cb('0x31')](respondWithResult(_0x5862c7,null))[_0x2846cb('0x19')](handleError(_0x5862c7,null));},exports[_0xcdc0ed('0x36')]=function(_0x1ba19a,_0xd1305e){const _0x51f506=_0xcdc0ed;return db[_0x51f506('0x41')]['findOne']({'where':{'id':_0x1ba19a['params']['id']}})[_0x51f506('0x31')](handleEntityNotFound(_0xd1305e,null))[_0x51f506('0x31')](function(_0x111f16){const _0x72bfc2=_0x51f506;if(_0x111f16)return _0x111f16[_0x72bfc2('0x36')](_0x1ba19a[_0x72bfc2('0x2a')][_0x72bfc2('0xb')]);})[_0x51f506('0x31')](respondWithStatusCode(_0xd1305e,null))['catch'](handleError(_0xd1305e,null));},exports['addMessage']=function(_0x250f29,_0x506792){const _0x3647a6=_0xcdc0ed;return _0x250f29[_0x3647a6('0x1d')]['id']&&delete _0x250f29[_0x3647a6('0x1d')]['id'],db[_0x3647a6('0x41')]['findOne']({'where':{'id':_0x250f29[_0x3647a6('0x2f')]['id']}})['then'](handleEntityNotFound(_0x506792,null))[_0x3647a6('0x31')](function(_0x595a87){const _0x65d61a=_0x3647a6;if(_0x595a87)return _0x250f29[_0x65d61a('0x1d')][_0x65d61a('0x4')]=_0x595a87['id'],db[_0x65d61a('0x15')]['create'](_0x250f29[_0x65d61a('0x1d')]);})[_0x3647a6('0x31')](respondWithResult(_0x506792,null))[_0x3647a6('0x19')](handleError(_0x506792,null));},exports['getMessages']=function(_0x101a7e,_0x494b32){const _0x41d3f4=_0xcdc0ed;let _0x12605a={};const _0x1ade8a={};let _0xc73691,_0x56cb66;return db[_0x41d3f4('0x41')][_0x41d3f4('0x35')]({'where':{'id':_0x101a7e['params']['id']}})[_0x41d3f4('0x31')](handleEntityNotFound(_0x494b32,null))[_0x41d3f4('0x31')](function(_0x9ffe0f){const _0x39ddee=_0x41d3f4;if(_0x9ffe0f){_0xc73691=_0x9ffe0f,_0x1ade8a['model']=_[_0x39ddee('0x21')](db[_0x39ddee('0x15')][_0x39ddee('0x22')]),_0x1ade8a[_0x39ddee('0x2a')]=_['keys'](_0x101a7e[_0x39ddee('0x2a')]),_0x1ade8a['filters']=_[_0x39ddee('0x44')](_0x1ade8a[_0x39ddee('0x1b')],_0x1ade8a[_0x39ddee('0x2a')]),_0x12605a['attributes']=_['intersection'](_0x1ade8a['model'],qs[_0x39ddee('0x32')](_0x101a7e[_0x39ddee('0x2a')][_0x39ddee('0x32')])),_0x12605a['attributes']=_0x12605a['attributes'][_0x39ddee('0x12')]?_0x12605a[_0x39ddee('0x6')]:_0x1ade8a[_0x39ddee('0x1b')],_0x12605a[_0x39ddee('0x40')]=qs['sort'](_0x101a7e[_0x39ddee('0x2a')]['sort']),_0x12605a[_0x39ddee('0xa')]=qs[_0x39ddee('0x2')](_[_0x39ddee('0x27')](_0x101a7e[_0x39ddee('0x2a')],_0x1ade8a[_0x39ddee('0x2')]));_0x101a7e['query'][_0x39ddee('0x3b')]&&(_0x12605a[_0x39ddee('0xa')]=_[_0x39ddee('0x3')](_0x12605a['where'],{[Op['or']]:_[_0x39ddee('0x46')](_0x12605a[_0x39ddee('0x6')],function(_0x534de6){const _0x3afc01=_0x39ddee,_0x358b58={};return _0x358b58[_0x534de6]={[Op[_0x3afc01('0x2e')]]:'%'+_0x101a7e['query'][_0x3afc01('0x3b')]+'%'},_0x358b58;})}));if(_0x101a7e['query'][_0x39ddee('0x17')]){const _0x2002a6=_0x101a7e[_0x39ddee('0x2a')][_0x39ddee('0x17')]['split'](','),_0xa96d4e={};_0xa96d4e[_0x2002a6[0x0]]={[Op[_0x39ddee('0x26')]]:moment(_0x2002a6[0x1])[_0x39ddee('0x1c')]('YYYY-MM-DD\x20HH:mm:ss')},_0x12605a[_0x39ddee('0xa')]=_['merge'](_0x12605a[_0x39ddee('0xa')],_0xa96d4e);}return _0x12605a=_['merge']({},_0x12605a,_0x101a7e[_0x39ddee('0xe')]),_0xc73691[_0x39ddee('0x38')](_0x12605a);}})['then'](function(_0x475495){const _0x56c1bf=_0x41d3f4;if(_0x475495)return _0x56cb66=_0x475495['length'],typeof _0x101a7e['query'][_0x56c1bf('0x30')]===_0x56c1bf('0x13')&&(_0x12605a[_0x56c1bf('0x39')]=qs[_0x56c1bf('0x39')](_0x101a7e['query'][_0x56c1bf('0x39')]),_0x12605a['offset']=qs['offset'](_0x101a7e[_0x56c1bf('0x2a')][_0x56c1bf('0x23')])),_0xc73691['getMessages'](_0x12605a);})[_0x41d3f4('0x31')](function(_0x13bfb3){if(_0x13bfb3)return _0x13bfb3?{'count':_0x56cb66,'rows':_0x13bfb3}:null;})[_0x41d3f4('0x31')](respondWithResult(_0x494b32,null))['catch'](handleError(_0x494b32,null));}; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.events.js b/server/api/chatGroup/chatGroup.events.js index 27f756f..621d27a 100644 --- a/server/api/chatGroup/chatGroup.events.js +++ b/server/api/chatGroup/chatGroup.events.js @@ -1 +1 @@ -const a60_0x5f47=['setMaxListeners','undefined','emit','ChatGroup','events','addHook','remove','save','../../mysqldb','update'];(function(_0x56c6e6,_0x5f47b3){const _0x146f57=function(_0x51c62e){while(--_0x51c62e){_0x56c6e6['push'](_0x56c6e6['shift']());}};_0x146f57(++_0x5f47b3);}(a60_0x5f47,0xb7));const a60_0x146f=function(_0x56c6e6,_0x5f47b3){_0x56c6e6=_0x56c6e6-0x0;let _0x146f57=a60_0x5f47[_0x56c6e6];return _0x146f57;};const _0x366f1c=a60_0x146f;'use strict';const EventEmitter=require(_0x366f1c('0x1')),ChatGroup=require(_0x366f1c('0x5'))['db'][_0x366f1c('0x0')],ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0x366f1c('0x7')](0x0);const events={'afterCreate':_0x366f1c('0x4'),'afterUpdate':_0x366f1c('0x6'),'afterDestroy':_0x366f1c('0x3')};function emitEvent(_0x51c62e){return function(_0x2364a1){const _0xd6e196=a60_0x146f;ChatGroupEvents[_0xd6e196('0x9')](_0x51c62e+':'+_0x2364a1['id'],_0x2364a1),ChatGroupEvents['emit'](_0x51c62e,_0x2364a1);};}for(const e in events){if(typeof events[e]!==_0x366f1c('0x8')){const event=events[e];ChatGroup[_0x366f1c('0x2')](e,emitEvent(event));}}module['exports']=ChatGroupEvents; \ No newline at end of file +const a60_0x4a82=['setMaxListeners','../../mysqldb','remove','undefined','addHook','events','emit'];(function(_0x1bb74a,_0x4a82a1){const _0x238fc1=function(_0x57a4cb){while(--_0x57a4cb){_0x1bb74a['push'](_0x1bb74a['shift']());}};_0x238fc1(++_0x4a82a1);}(a60_0x4a82,0x175));const a60_0x238f=function(_0x1bb74a,_0x4a82a1){_0x1bb74a=_0x1bb74a-0x0;let _0x238fc1=a60_0x4a82[_0x1bb74a];return _0x238fc1;};const _0x528eb5=a60_0x238f;'use strict';const EventEmitter=require(_0x528eb5('0x3')),ChatGroup=require(_0x528eb5('0x6'))['db']['ChatGroup'],ChatGroupEvents=new EventEmitter();ChatGroupEvents[_0x528eb5('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x528eb5('0x0')};function emitEvent(_0x57a4cb){return function(_0x1151c7){const _0xbb82f6=a60_0x238f;ChatGroupEvents['emit'](_0x57a4cb+':'+_0x1151c7['id'],_0x1151c7),ChatGroupEvents[_0xbb82f6('0x4')](_0x57a4cb,_0x1151c7);};}for(const e in events){if(typeof events[e]!==_0x528eb5('0x1')){const event=events[e];ChatGroup[_0x528eb5('0x2')](e,emitEvent(event));}}module['exports']=ChatGroupEvents; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.model.js b/server/api/chatGroup/chatGroup.model.js index 021a45a..de88a50 100644 --- a/server/api/chatGroup/chatGroup.model.js +++ b/server/api/chatGroup/chatGroup.model.js @@ -1 +1 @@ -const a61_0x4f7b=['define','./chatGroup.attributes','exports','ChatGroup'];(function(_0x59d8b9,_0x4f7bd5){const _0x5896be=function(_0x37f3f6){while(--_0x37f3f6){_0x59d8b9['push'](_0x59d8b9['shift']());}};_0x5896be(++_0x4f7bd5);}(a61_0x4f7b,0x1e4));const a61_0x5896=function(_0x59d8b9,_0x4f7bd5){_0x59d8b9=_0x59d8b9-0x0;let _0x5896be=a61_0x4f7b[_0x59d8b9];return _0x5896be;};const _0x39ead8=a61_0x5896;'use strict';const attributes=require(_0x39ead8('0x1'));module[_0x39ead8('0x2')]=function(_0x37f3f6){const _0x352794=_0x39ead8,_0xba2885=_0x37f3f6[_0x352794('0x0')](_0x352794('0x3'),attributes,{'tableName':'chat_groups','paranoid':![],'indexes':[],'timestamps':!![]});return _0xba2885;}; \ No newline at end of file +const a61_0x5e57=['./chatGroup.attributes','chat_groups','define','exports','ChatGroup'];(function(_0xfa57e4,_0x5e5753){const _0x4f9a1b=function(_0x565d97){while(--_0x565d97){_0xfa57e4['push'](_0xfa57e4['shift']());}};_0x4f9a1b(++_0x5e5753);}(a61_0x5e57,0xe1));const a61_0x4f9a=function(_0xfa57e4,_0x5e5753){_0xfa57e4=_0xfa57e4-0x0;let _0x4f9a1b=a61_0x5e57[_0xfa57e4];return _0x4f9a1b;};const _0x2d2fd7=a61_0x4f9a;'use strict';const attributes=require(_0x2d2fd7('0x0'));module[_0x2d2fd7('0x3')]=function(_0x565d97){const _0x16f402=_0x2d2fd7,_0x183030=_0x565d97[_0x16f402('0x2')](_0x16f402('0x4'),attributes,{'tableName':_0x16f402('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x183030;}; \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.rpc.js b/server/api/chatGroup/chatGroup.rpc.js index 66c8c9d..7d5d530 100644 --- a/server/api/chatGroup/chatGroup.rpc.js +++ b/server/api/chatGroup/chatGroup.rpc.js @@ -1 +1 @@ -const a62_0x2ab7=['register','../../rediscache','./chatGroup.socket'];(function(_0x2a0214,_0x2ab71f){const _0x3241d6=function(_0x126417){while(--_0x126417){_0x2a0214['push'](_0x2a0214['shift']());}};_0x3241d6(++_0x2ab71f);}(a62_0x2ab7,0xd5));const a62_0x3241=function(_0x2a0214,_0x2ab71f){_0x2a0214=_0x2a0214-0x0;let _0x3241d6=a62_0x2ab7[_0x2a0214];return _0x3241d6;};const _0x46a33e=a62_0x3241;'use strict';const {getSocket}=require(_0x46a33e('0x1')),socket=getSocket();require(_0x46a33e('0x2'))[_0x46a33e('0x0')](socket); \ No newline at end of file +const a62_0x12ea=['register','../../rediscache'];(function(_0x32f37c,_0x12ea87){const _0x30ae8c=function(_0x15ef44){while(--_0x15ef44){_0x32f37c['push'](_0x32f37c['shift']());}};_0x30ae8c(++_0x12ea87);}(a62_0x12ea,0x74));const a62_0x30ae=function(_0x32f37c,_0x12ea87){_0x32f37c=_0x32f37c-0x0;let _0x30ae8c=a62_0x12ea[_0x32f37c];return _0x30ae8c;};const _0xaebaa6=a62_0x30ae;'use strict';const {getSocket}=require(_0xaebaa6('0x1')),socket=getSocket();require('./chatGroup.socket')[_0xaebaa6('0x0')](socket); \ No newline at end of file diff --git a/server/api/chatGroup/chatGroup.socket.js b/server/api/chatGroup/chatGroup.socket.js index c5e163b..b5f341b 100644 --- a/server/api/chatGroup/chatGroup.socket.js +++ b/server/api/chatGroup/chatGroup.socket.js @@ -1 +1 @@ -const a63_0x8d5e=['save','update','register','length','chatGroup:'];(function(_0xf17dbd,_0x8d5eaa){const _0x21c380=function(_0x540ae7){while(--_0x540ae7){_0xf17dbd['push'](_0xf17dbd['shift']());}};_0x21c380(++_0x8d5eaa);}(a63_0x8d5e,0x78));const a63_0x21c3=function(_0xf17dbd,_0x8d5eaa){_0xf17dbd=_0xf17dbd-0x0;let _0x21c380=a63_0x8d5e[_0xf17dbd];return _0x21c380;};const _0x1773f6=a63_0x21c3;'use strict';const ChatGroupEvents=require('./chatGroup.events'),events=[_0x1773f6('0x0'),'remove',_0x1773f6('0x1')];function createListener(_0x540ae7,_0x29d17e){return function(_0x3409ec){_0x29d17e['emit'](_0x540ae7,_0x3409ec);};}exports[_0x1773f6('0x2')]=function(_0x266eff){const _0x3326a3=_0x1773f6;for(let _0xa8dc61=0x0,_0x4033a6=events[_0x3326a3('0x3')];_0xa8dc61<_0x4033a6;_0xa8dc61++){const _0x23d683=events[_0xa8dc61],_0x381176=createListener(_0x3326a3('0x4')+_0x23d683,_0x266eff);ChatGroupEvents['on'](_0x23d683,_0x381176);}}; \ No newline at end of file +const a63_0x2d6d=['chatGroup:','register','save','./chatGroup.events','length'];(function(_0x2b7da0,_0x2d6d34){const _0x42d5cf=function(_0x3f0b1d){while(--_0x3f0b1d){_0x2b7da0['push'](_0x2b7da0['shift']());}};_0x42d5cf(++_0x2d6d34);}(a63_0x2d6d,0x115));const a63_0x42d5=function(_0x2b7da0,_0x2d6d34){_0x2b7da0=_0x2b7da0-0x0;let _0x42d5cf=a63_0x2d6d[_0x2b7da0];return _0x42d5cf;};const _0x5bd85a=a63_0x42d5;'use strict';const ChatGroupEvents=require(_0x5bd85a('0x1')),events=[_0x5bd85a('0x0'),'remove','update'];function createListener(_0x3f0b1d,_0x39df23){return function(_0x386e3a){_0x39df23['emit'](_0x3f0b1d,_0x386e3a);};}exports[_0x5bd85a('0x4')]=function(_0x24f926){const _0x109c03=_0x5bd85a;for(let _0x3efc3d=0x0,_0x2151ef=events[_0x109c03('0x2')];_0x3efc3d<_0x2151ef;_0x3efc3d++){const _0x54590a=events[_0x3efc3d],_0x44a708=createListener(_0x109c03('0x3')+_0x54590a,_0x24f926);ChatGroupEvents['on'](_0x54590a,_0x44a708);}}; \ No newline at end of file diff --git a/server/api/chatGroup/index.js b/server/api/chatGroup/index.js index a2b078e..c0610bb 100644 --- a/server/api/chatGroup/index.js +++ b/server/api/chatGroup/index.js @@ -1 +1 @@ -const a64_0x5cef=['index','post','/describe','delete','Router','describe','get','getMembers','getUnread','destroy','update','exports','put','/:id/messages','addMembers','isAuthenticated','express','/:id/members','create','addMessage','./chatGroup.controller','getMessages','/:id','../../components/auth/service','removeMembers'];(function(_0x19b1dd,_0x5cef42){const _0x131480=function(_0x5ba98){while(--_0x5ba98){_0x19b1dd['push'](_0x19b1dd['shift']());}};_0x131480(++_0x5cef42);}(a64_0x5cef,0x173));const a64_0x1314=function(_0x19b1dd,_0x5cef42){_0x19b1dd=_0x19b1dd-0x0;let _0x131480=a64_0x5cef[_0x19b1dd];return _0x131480;};const _0x23f033=a64_0x1314;'use strict';const express=require(_0x23f033('0x14')),router=express[_0x23f033('0x8')](),auth=require(_0x23f033('0x2')),controller=require(_0x23f033('0x18'));router[_0x23f033('0xa')]('/',auth['isAuthenticated'](),controller[_0x23f033('0x4')]),router[_0x23f033('0xa')](_0x23f033('0x6'),auth[_0x23f033('0x13')](),controller[_0x23f033('0x9')]),router[_0x23f033('0xa')]('/:id',auth[_0x23f033('0x13')](),controller['show']),router['get']('/:id/unread',auth[_0x23f033('0x13')](),controller[_0x23f033('0xc')]),router['get'](_0x23f033('0x15'),auth[_0x23f033('0x13')](),controller[_0x23f033('0xb')]),router[_0x23f033('0xa')]('/:id/messages',auth[_0x23f033('0x13')](),controller[_0x23f033('0x0')]),router[_0x23f033('0x5')]('/',auth[_0x23f033('0x13')](),controller[_0x23f033('0x16')]),router[_0x23f033('0x5')](_0x23f033('0x15'),auth[_0x23f033('0x13')](),controller[_0x23f033('0x12')]),router[_0x23f033('0x5')](_0x23f033('0x11'),auth[_0x23f033('0x13')](),controller[_0x23f033('0x17')]),router[_0x23f033('0x10')](_0x23f033('0x1'),auth[_0x23f033('0x13')](),controller[_0x23f033('0xe')]),router[_0x23f033('0x7')]('/:id',auth[_0x23f033('0x13')](),controller[_0x23f033('0xd')]),router[_0x23f033('0x7')](_0x23f033('0x15'),auth[_0x23f033('0x13')](),controller[_0x23f033('0x3')]),module[_0x23f033('0xf')]=router; \ No newline at end of file +const a64_0x323c=['create','get','exports','update','/:id','put','../../components/auth/service','delete','./chatGroup.controller','/:id/messages','isAuthenticated','/:id/members','index','getUnread','addMembers','express','post','describe','/:id/unread','Router','removeMembers'];(function(_0x253d0c,_0x323c67){const _0x333050=function(_0x1838d1){while(--_0x1838d1){_0x253d0c['push'](_0x253d0c['shift']());}};_0x333050(++_0x323c67);}(a64_0x323c,0x12d));const a64_0x3330=function(_0x253d0c,_0x323c67){_0x253d0c=_0x253d0c-0x0;let _0x333050=a64_0x323c[_0x253d0c];return _0x333050;};const _0x3f5f31=a64_0x3330;'use strict';const express=require(_0x3f5f31('0x8')),router=express[_0x3f5f31('0xc')](),auth=require(_0x3f5f31('0x14')),controller=require(_0x3f5f31('0x1'));router[_0x3f5f31('0xf')]('/',auth[_0x3f5f31('0x3')](),controller[_0x3f5f31('0x5')]),router[_0x3f5f31('0xf')]('/describe',auth[_0x3f5f31('0x3')](),controller[_0x3f5f31('0xa')]),router[_0x3f5f31('0xf')](_0x3f5f31('0x12'),auth[_0x3f5f31('0x3')](),controller['show']),router[_0x3f5f31('0xf')](_0x3f5f31('0xb'),auth[_0x3f5f31('0x3')](),controller[_0x3f5f31('0x6')]),router[_0x3f5f31('0xf')]('/:id/members',auth['isAuthenticated'](),controller['getMembers']),router[_0x3f5f31('0xf')](_0x3f5f31('0x2'),auth['isAuthenticated'](),controller['getMessages']),router[_0x3f5f31('0x9')]('/',auth[_0x3f5f31('0x3')](),controller[_0x3f5f31('0xe')]),router[_0x3f5f31('0x9')](_0x3f5f31('0x4'),auth[_0x3f5f31('0x3')](),controller[_0x3f5f31('0x7')]),router[_0x3f5f31('0x9')](_0x3f5f31('0x2'),auth[_0x3f5f31('0x3')](),controller['addMessage']),router[_0x3f5f31('0x13')](_0x3f5f31('0x12'),auth[_0x3f5f31('0x3')](),controller[_0x3f5f31('0x11')]),router[_0x3f5f31('0x0')]('/:id',auth[_0x3f5f31('0x3')](),controller['destroy']),router[_0x3f5f31('0x0')](_0x3f5f31('0x4'),auth[_0x3f5f31('0x3')](),controller[_0x3f5f31('0xd')]),module[_0x3f5f31('0x10')]=router; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.attributes.js b/server/api/chatInteraction/chatInteraction.attributes.js index 996154f..738d0de 100644 --- a/server/api/chatInteraction/chatInteraction.attributes.js +++ b/server/api/chatInteraction/chatInteraction.attributes.js @@ -1 +1 @@ -const a65_0x3c74=['out','sequelize','TEXT','DATE','long','STRING','ENUM','star','exports'];(function(_0x2a16aa,_0x3c7439){const _0x1e5fc7=function(_0x2f6b64){while(--_0x2f6b64){_0x2a16aa['push'](_0x2a16aa['shift']());}};_0x1e5fc7(++_0x3c7439);}(a65_0x3c74,0x15c));const a65_0x1e5f=function(_0x2a16aa,_0x3c7439){_0x2a16aa=_0x2a16aa-0x0;let _0x1e5fc7=a65_0x3c74[_0x2a16aa];return _0x1e5fc7;};const _0x2b412b=a65_0x1e5f;'use strict';const Sequelize=require(_0x2b412b('0x4'));module[_0x2b412b('0x2')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'ratingValue':{'type':Sequelize['INTEGER']},'ratingType':{'type':Sequelize[_0x2b412b('0x0')]('star','thumb'),'defaultValue':_0x2b412b('0x1')},'ratingMessage':{'type':Sequelize[_0x2b412b('0x5')]},'pathTranscript':{'type':Sequelize[_0x2b412b('0x5')]},'mailTranscript':{'type':Sequelize['STRING'],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x2b412b('0x8')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize['STRING']},'browserName':{'type':Sequelize['STRING']},'browserVersion':{'type':Sequelize[_0x2b412b('0x8')]},'osName':{'type':Sequelize[_0x2b412b('0x8')]},'osVersion':{'type':Sequelize['STRING']},'deviceModel':{'type':Sequelize[_0x2b412b('0x8')]},'deviceVendor':{'type':Sequelize[_0x2b412b('0x8')]},'deviceType':{'type':Sequelize[_0x2b412b('0x8')]},'referer':{'type':Sequelize['TEXT']},'customerIp':{'type':Sequelize[_0x2b412b('0x8')]},'formData':{'type':Sequelize[_0x2b412b('0x5')](_0x2b412b('0x7'))},'read1stAt':{'type':Sequelize[_0x2b412b('0x6')]},'lastMsgAt':{'type':Sequelize[_0x2b412b('0x6')]},'lastMsgDirection':{'type':Sequelize[_0x2b412b('0x0')]('in',_0x2b412b('0x3')),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize[_0x2b412b('0x8')]},'customerPort':{'type':Sequelize[_0x2b412b('0x8')]},'vidaooSessionId':{'type':Sequelize['TEXT']}}; \ No newline at end of file +const a65_0x5792=['DATE','exports','ENUM','star','INTEGER','long','STRING','BOOLEAN','sequelize','TEXT','out'];(function(_0x4e42e1,_0x579258){const _0x3ab27e=function(_0x17aee1){while(--_0x17aee1){_0x4e42e1['push'](_0x4e42e1['shift']());}};_0x3ab27e(++_0x579258);}(a65_0x5792,0xe9));const a65_0x3ab2=function(_0x4e42e1,_0x579258){_0x4e42e1=_0x4e42e1-0x0;let _0x3ab27e=a65_0x5792[_0x4e42e1];return _0x3ab27e;};const _0x5b84cc=a65_0x3ab2;'use strict';const Sequelize=require(_0x5b84cc('0x6'));module[_0x5b84cc('0xa')]={'closed':{'type':Sequelize[_0x5b84cc('0x5')],'defaultValue':![]},'ratingValue':{'type':Sequelize[_0x5b84cc('0x2')]},'ratingType':{'type':Sequelize[_0x5b84cc('0x0')](_0x5b84cc('0x1'),'thumb'),'defaultValue':_0x5b84cc('0x1')},'ratingMessage':{'type':Sequelize['TEXT']},'pathTranscript':{'type':Sequelize[_0x5b84cc('0x7')]},'mailTranscript':{'type':Sequelize[_0x5b84cc('0x4')],'validate':{'isEmail':!![]}},'closedAt':{'type':Sequelize[_0x5b84cc('0x9')]},'disposition':{'type':Sequelize[_0x5b84cc('0x4')]},'secondDisposition':{'type':Sequelize[_0x5b84cc('0x4')]},'thirdDisposition':{'type':Sequelize[_0x5b84cc('0x4')]},'note':{'type':Sequelize[_0x5b84cc('0x4')]},'browserName':{'type':Sequelize[_0x5b84cc('0x4')]},'browserVersion':{'type':Sequelize[_0x5b84cc('0x4')]},'osName':{'type':Sequelize[_0x5b84cc('0x4')]},'osVersion':{'type':Sequelize[_0x5b84cc('0x4')]},'deviceModel':{'type':Sequelize[_0x5b84cc('0x4')]},'deviceVendor':{'type':Sequelize[_0x5b84cc('0x4')]},'deviceType':{'type':Sequelize['STRING']},'referer':{'type':Sequelize['TEXT']},'customerIp':{'type':Sequelize[_0x5b84cc('0x4')]},'formData':{'type':Sequelize[_0x5b84cc('0x7')](_0x5b84cc('0x3'))},'read1stAt':{'type':Sequelize[_0x5b84cc('0x9')]},'lastMsgAt':{'type':Sequelize[_0x5b84cc('0x9')]},'lastMsgDirection':{'type':Sequelize[_0x5b84cc('0x0')]('in',_0x5b84cc('0x8')),'defaultValue':'in','allowNull':![]},'closeReason':{'type':Sequelize[_0x5b84cc('0x4')]},'customerPort':{'type':Sequelize['STRING']},'vidaooSessionId':{'type':Sequelize[_0x5b84cc('0x7')]}}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.controller.js b/server/api/chatInteraction/chatInteraction.controller.js index e1ba2fe..01b3e89 100644 --- a/server/api/chatInteraction/chatInteraction.controller.js +++ b/server/api/chatInteraction/chatInteraction.controller.js @@ -1 +1 @@ -const a66_0x355c=['createReadStream','filename','Contact.lastName','offset','debug','Account.mandatoryDisposition','Contact.fax','tail','a.id\x20=\x20i.ChatWebsiteId','params','createVidaooSession','color','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','createWriteStream','customUpdate','group','split','u.fullname','chat_websites','out','set','disposition','root','sequelize','basename','unreadMessages','client','../../config/environment','ChatMessage','user_has_chat_interactions','fields','attachments','pass','existsSync','sort','map','ui.ChatInteractionId','YYYY-MM-DD\x20HH:mm:ss','toString','AbandonInteraction','compact','ContactId','search','value','../../mysqldb','c.email','pick','../../config/logger','pathTranscript','c.fax','`unreadMessages`\x20=\x200','website_alias','service','email','alias','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','auth','referer','Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a','u.id','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','message','.pdf','limit','Contact.firstName','vidaooEscalation','Tag','isEmpty','c.firstName','Error\x20in\x20Vidaoo\x20configuration','fullname','html-pdf','rows','journey','transcript-','tools_tags','customer','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','direction','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','removeTags','SendMail','json','host','%s\x20#%d','update','ids','\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','includeAll','union','%s%d','type','ejs','resolve','closed','ChatInteraction,\x20%s,\x20%s,\x20%s','https://api-vidaoo.xcally.com/api/v1/sessions','chat_messages','order','files/attachments/','abandon','\x20=\x20?','jayson/promise','then','where','entity\x20not\x20found','a.key','like','Attachment','close','push','intersection','mimetype','rawAttributes','options','originalname','count','length','`\x20=\x200','gte','abandonInteraction,\x20%s,\x20%s,\x20%s','u.id\x20=\x20ui.UserId','authentication','port','include','undefined','info','operator','forEach','user','moment','User','ChatInteraction','unix','getFullTextValue','$gte','filter','i.id','all','createdAt','buildExpression','status','MM/DD/YYYY\x20HH:mm:ss','catch','unlinkSync','file','Owner.internal','parse','browserName','customerPort','getMessages','server','attachmentUpload','describe','YYYY-MM-DD','files','log','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','../../components/parsers/advancedSearch','osName','body','TagIds','Contact','name','error','mkdirSync','./chatInteraction.socket','downloadInteraction.html','o.internal','fieldName','ChatWebsite','request\x20sent','keys','Unauthorized','find','Tags','follow','UserId','pipe','../../components/parsers/qs','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','c.mobile','Unable\x20to\x20create\x20Vidaoo\x20session','Mail\x20Transcript','download','start','tag','filters','get','Owner','from','merge','secure','Contact.email','../../rediscache','getMyMessages','sqlOperator','agentAlias','err','mailTranscript','expr','c.lastName','Users','findOne','Chat','text','query','field','replace','MotionCWB:','i.ChatWebsiteId\x20IN\x20?','code','toFile','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','create','attachmentDownload','Owner.fullname','findAll','ChatInteractionId','i.id\x20LIKE\x20?','attributes','getChatWebsites','left_join','Messages','cm_contacts','now','addMessage','chat_interactions','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','Account','renderFile','join','read','parseSearch','Content-Range','appendFileSync','key','agent_fullname','omit','request','model','http','rimraf','send','N.A.','i.ChatWebsiteId\x20IS\x20NULL','some','o.id\x20=\x20i.UserId','having','sendStatus','me.ChatInteractionId\x20=\x20i.id','register','util','conditions','`unreadMessages`\x20>\x200','api','null','nolimit','Interaction\x20already\x20assigned','it.ChatInteractionId\x20=\x20i.id','destroy','users','format','end','squel','CmContact','keyBy','secret','MailAccount','vidaooApiKey','t.id\x20=\x20it.TagId','views','zip-dir','lastName','Smtp','System','ChatInteraction,\x20%s,\x20%s','ChatWebsiteId','request-promise-native','GROUP_CONCAT(DISTINCT\x20t.id)','POST','transcript-%d-%s.zip','closedAt','agent_alias','show','DESC','a.mandatoryDisposition','select'];(function(_0x36bda9,_0x355cce){const _0x1c361c=function(_0x48a664){while(--_0x48a664){_0x36bda9['push'](_0x36bda9['shift']());}};_0x1c361c(++_0x355cce);}(a66_0x355c,0x140));const a66_0x1c36=function(_0x36bda9,_0x355cce){_0x36bda9=_0x36bda9-0x0;let _0x1c361c=a66_0x355c[_0x36bda9];return _0x1c361c;};const _0x2016b3=a66_0x1c36;'use strict';const pdf=require(_0x2016b3('0x27')),rimraf=require(_0x2016b3('0xd2')),zipdir=require(_0x2016b3('0xf0')),rp=require(_0x2016b3('0xf6')),moment=require(_0x2016b3('0x62')),util=require(_0x2016b3('0xdc')),path=require('path'),ejs=require(_0x2016b3('0x3c')),fs=require('fs'),_=require('lodash'),squel=require(_0x2016b3('0xe8')),{getSocket}=require(_0x2016b3('0xa2')),qs=require(_0x2016b3('0x93')),as=require(_0x2016b3('0x7e')),logger=require(_0x2016b3('0xf'))(_0x2016b3('0xdf')),config=require(_0x2016b3('0x11b')),db=require(_0x2016b3('0xc'))['db'],{Op,ValidationError,QueryTypes}=require(_0x2016b3('0x117')),socket=getSocket();require(_0x2016b3('0x86'))[_0x2016b3('0xdb')](socket);const jayson=require(_0x2016b3('0x46')),client=jayson['client'][_0x2016b3('0xd1')]({'port':0x232b}),client9004=jayson[_0x2016b3('0x11a')][_0x2016b3('0xd1')]({'port':0x232c});function respondWithRpcPromise(_0x48a664,_0x41a09a,_0x5f4a1d,_0x3b7fdf){return new Promise(function(_0x248f3b,_0x4b46c7){const _0x1e85c4=a66_0x1c36,_0x384f32=_0x3b7fdf||client;return _0x384f32[_0x1e85c4('0xcf')](_0x48a664,_0x5f4a1d)[_0x1e85c4('0x47')](function(_0xd7921f){const _0x4f63f7=_0x1e85c4;logger[_0x4f63f7('0x5e')]('ChatInteraction,\x20%s,\x20%s',_0x41a09a,'request\x20sent'),logger[_0x4f63f7('0x104')](_0x4f63f7('0x3f'),_0x41a09a,'request\x20sent',JSON['stringify'](_0xd7921f));if(_0xd7921f[_0x4f63f7('0x84')]){if(_0xd7921f['error'][_0x4f63f7('0xb3')]===0x1f4)return logger['error'](_0x4f63f7('0xf4'),_0x41a09a,_0xd7921f[_0x4f63f7('0x84')]['message']),_0x4b46c7(_0xd7921f[_0x4f63f7('0x84')][_0x4f63f7('0x1d')]);return logger[_0x4f63f7('0x84')](_0x4f63f7('0xf4'),_0x41a09a,_0xd7921f[_0x4f63f7('0x84')][_0x4f63f7('0x1d')]),_0x248f3b(_0xd7921f[_0x4f63f7('0x84')][_0x4f63f7('0x1d')]);}else logger[_0x4f63f7('0x5e')](_0x4f63f7('0xf4'),_0x41a09a,_0x4f63f7('0x8b')),_0x248f3b(_0xd7921f['result'][_0x4f63f7('0x1d')]);})['catch'](function(_0x3d6a92){const _0xd20dc3=_0x1e85c4;logger[_0xd20dc3('0x84')](_0xd20dc3('0xf4'),_0x41a09a,_0x3d6a92),_0x4b46c7(_0x3d6a92);});});}function respondWithStatusCode(_0x403c78,_0x3a6f9a){return _0x3a6f9a=_0x3a6f9a||0xcc,function(_0x46af17){const _0x326b0c=a66_0x1c36;if(_0x46af17)return _0x403c78[_0x326b0c('0xd9')](_0x3a6f9a);return _0x403c78[_0x326b0c('0x6d')](_0x3a6f9a)[_0x326b0c('0xe7')]();};}function respondWithResult(_0x399a93,_0x4a24ec){return _0x4a24ec=_0x4a24ec||0xc8,function(_0x58a5eb){const _0x5687fc=a66_0x1c36;if(_0x58a5eb)return _0x399a93[_0x5687fc('0x6d')](_0x4a24ec)[_0x5687fc('0x32')](_0x58a5eb);};}function respondWithFilteredResult(_0x345a14,_0x32508d){return function(_0x2e7bbb){const _0x26a620=a66_0x1c36;if(_0x2e7bbb){const _0xe24d41=_0x2e7bbb[_0x26a620('0x54')],_0x492eb7=_0x32508d[_0x26a620('0x103')];let _0x175b24=_0x32508d[_0x26a620('0x103')]+_0x32508d['limit'],_0x4198a5;return _0x175b24>=_0xe24d41?(_0x175b24=_0xe24d41,_0x4198a5=0xc8):_0x4198a5=0xce,_0x345a14[_0x26a620('0x6d')](_0x4198a5),_0x345a14[_0x26a620('0x114')](_0x26a620('0xca'),_0x492eb7+'-'+_0x175b24+'/'+_0xe24d41)['json'](_0x2e7bbb);}return null;};}function saveUpdates(_0x19180b){return function(_0x48f60f){const _0x4c07f9=a66_0x1c36;if(_0x48f60f)return _0x48f60f['update'](_0x19180b)[_0x4c07f9('0x47')](function(_0x69e97f){return _0x69e97f;});return null;};}function removeEntity(_0x12402e){return function(_0x33c88a){const _0x49e0af=a66_0x1c36;if(_0x33c88a)return _0x33c88a[_0x49e0af('0xe4')]()['then'](function(){const _0x254d57=_0x49e0af;_0x12402e[_0x254d57('0x6d')](0xcc)['end']();});};}function handleEntityNotFound(_0x169934){return function(_0x367d44){const _0x438ab3=a66_0x1c36;return!_0x367d44&&_0x169934[_0x438ab3('0xd9')](0x194),_0x367d44;};}function handleError(_0x4cbefb,_0x27caaf){return _0x27caaf=_0x27caaf||0x1f4,function(_0xa7b566){const _0x186c25=a66_0x1c36;logger[_0x186c25('0x84')](_0xa7b566['stack']),_0xa7b566[_0x186c25('0x83')]&&delete _0xa7b566[_0x186c25('0x83')],_0x4cbefb['status'](_0x27caaf)[_0x186c25('0xd3')](_0xa7b566);};}function getInteractionUsers(_0x522c8f,_0x324de0){return new Promise(function(_0x24fad5,_0x12b2ff){const _0x36b1b3=a66_0x1c36;try{_0x324de0[_0x522c8f['id']]&&(_0x522c8f[_0x36b1b3('0xaa')]=_[_0x36b1b3('0x3')](_0x324de0[_0x522c8f['id']],function(_0x243359){const _0x4945a0=_0x36b1b3;return{'id':_0x243359['id'],'fullname':_0x243359[_0x4945a0('0x26')]};}));}catch(_0x222e78){_0x12b2ff(_0x222e78);}_0x24fad5(_0x522c8f);});}function getInteractionTags(_0x24b3b6,_0xb3abcc){return new Promise(function(_0x409a20,_0x5eb401){const _0x4f793a=a66_0x1c36;try{_0x24b3b6[_0x4f793a('0x81')]&&(_0x24b3b6[_0x4f793a('0x8f')]=[],_0x24b3b6['TagIds'][_0x4f793a('0x110')](',')[_0x4f793a('0x60')](function(_0x3b4963){const _0xc77747=_0x4f793a;_0x24b3b6[_0xc77747('0x8f')][_0xc77747('0x4e')](_0xb3abcc[_0x3b4963]);})),delete _0x24b3b6[_0x4f793a('0x81')];}catch(_0x5e422d){_0x5eb401(_0x5e422d);}_0x409a20(_0x24b3b6);});}function updateChatInteraction(_0x437188,_0x4ef1b6,_0x2d38e6){return new Promise(function(_0x53ce8c,_0x183a2c){const _0x5389b1=a66_0x1c36;return getInteractionUsers(_0x437188,_0x2d38e6)[_0x5389b1('0x47')](function(_0xafc53c){return getInteractionTags(_0xafc53c,_0x4ef1b6);})[_0x5389b1('0x47')](function(_0x12c00e){_0x53ce8c(_0x12c00e);})['catch'](function(_0xca1d00){_0x183a2c(_0xca1d00);});});}exports['index']=function(_0x4a804c,_0x377f62){const _0x2e0d2e=_0x2016b3,_0x11af53={},_0x13a5d1={},_0x457c47={'count':0x0,'rows':[]},_0x4e71fb=_[_0x2e0d2e('0x3')](db[_0x2e0d2e('0x64')]['rawAttributes'],function(_0x19a223){const _0xcc6381=_0x2e0d2e;return{'name':_0x19a223[_0xcc6381('0x89')],'type':_0x19a223[_0xcc6381('0x3b')][_0xcc6381('0xcc')]};});_0x13a5d1[_0x2e0d2e('0xd0')]=_[_0x2e0d2e('0x3')](_0x4e71fb,_0x2e0d2e('0x83')),_0x13a5d1[_0x2e0d2e('0xae')]=_[_0x2e0d2e('0x8c')](_0x4a804c[_0x2e0d2e('0xae')]),_0x13a5d1[_0x2e0d2e('0x9b')]=_[_0x2e0d2e('0x4f')](_0x13a5d1[_0x2e0d2e('0xd0')],_0x13a5d1['query']),_0x11af53['attributes']=_[_0x2e0d2e('0x4f')](_0x13a5d1[_0x2e0d2e('0xd0')],qs[_0x2e0d2e('0x11e')](_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0x11e')])),_0x11af53['attributes']=_0x11af53[_0x2e0d2e('0xbc')][_0x2e0d2e('0x55')]?_0x11af53['attributes']:_0x13a5d1[_0x2e0d2e('0xd0')];typeof _0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0xe1')]===_0x2e0d2e('0x5d')&&(_0x11af53[_0x2e0d2e('0x1f')]=qs[_0x2e0d2e('0x1f')](_0x4a804c['query'][_0x2e0d2e('0x1f')]),_0x11af53[_0x2e0d2e('0x103')]=qs['offset'](_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0x103')]));_0x11af53[_0x2e0d2e('0x42')]=qs[_0x2e0d2e('0x2')](_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0x2')]),_0x11af53[_0x2e0d2e('0x48')]=qs[_0x2e0d2e('0x9b')](_['pick'](_0x4a804c['query'],_0x13a5d1[_0x2e0d2e('0x9b')]),_0x4e71fb);let _0x2561f4=[];const _0x3158e8=squel[_0x2e0d2e('0xff')]()[_0x2e0d2e('0xaf')]('id')[_0x2e0d2e('0xaf')](_0x2e0d2e('0x83'))[_0x2e0d2e('0xaf')](_0x2e0d2e('0x10b'))['from']('tools_tags'),_0x8e24da=squel[_0x2e0d2e('0xff')]()[_0x2e0d2e('0xaf')](_0x2e0d2e('0x1b'))[_0x2e0d2e('0xaf')](_0x2e0d2e('0x111'))[_0x2e0d2e('0xaf')](_0x2e0d2e('0x4'))[_0x2e0d2e('0x9e')](_0x2e0d2e('0x11d'),'ui')[_0x2e0d2e('0xbe')](_0x2e0d2e('0xe5'),'u',_0x2e0d2e('0x59')),_0x579e78=squel['select']()[_0x2e0d2e('0x9e')](_0x2e0d2e('0xc3'),'i')[_0x2e0d2e('0xbe')](_0x2e0d2e('0xc0'),'c',_0x2e0d2e('0x2f'))[_0x2e0d2e('0xbe')](_0x2e0d2e('0xe5'),'o',_0x2e0d2e('0xd7'))[_0x2e0d2e('0xbe')](_0x2e0d2e('0x112'),'a',_0x2e0d2e('0x108'))[_0x2e0d2e('0xbe')](_0x2e0d2e('0x41'),'me',_0x2e0d2e('0xda'))['left_join']('chat_interaction_has_tags','it',_0x2e0d2e('0xe3'))['left_join'](_0x2e0d2e('0x2b'),'t',_0x2e0d2e('0xee')),_0x4770ab=squel[_0x2e0d2e('0xa8')]();let _0x250c49=[];const _0x40061d=squel[_0x2e0d2e('0xa8')]();let _0x3a1caa;if(_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0xa')]){_0x3a1caa=as[_0x2e0d2e('0xc9')](_0x4a804c[_0x2e0d2e('0xae')]['search']);const _0x3c75a2=_0x3a1caa[_0x2e0d2e('0xa4')];for(let _0x2b73c8=0x0;_0x2b73c8<_0x3a1caa['conditions'][_0x2e0d2e('0x55')];_0x2b73c8++){const _0x2fff5b=_0x3a1caa[_0x2e0d2e('0xdd')][_0x2b73c8],_0x39d481='i';let _0x444da6,_0x338d32=_['find'](_0x4e71fb,[_0x2e0d2e('0x83'),_0x2fff5b[_0x2e0d2e('0xaf')]]);if(!_0x338d32)switch(_0x2fff5b[_0x2e0d2e('0xaf')]){case'unreadMessages':_0x2fff5b['value']==0x1?_0x579e78[_0x2e0d2e('0xd8')]('`'+_0x2fff5b[_0x2e0d2e('0xaf')]+_0x2e0d2e('0x56')):_0x579e78[_0x2e0d2e('0xd8')]('`'+_0x2fff5b[_0x2e0d2e('0xaf')]+'`\x20>\x200');break;case _0x2e0d2e('0x82'):if(_0x2fff5b['operator']==='$substring'){if(_0x2fff5b[_0x2e0d2e('0xb')][_0x2e0d2e('0x110')]('\x20')['length']>0x1)_0x4770ab[_0x3c75a2](_0x2e0d2e('0x10c'),qs[_0x2e0d2e('0x66')](_0x2fff5b[_0x2e0d2e('0xb')]),null);else{const _0x45c2b4='%'+_0x2fff5b[_0x2e0d2e('0xb')]+'%';_0x4770ab[_0x3c75a2](_0x2e0d2e('0xb5'),_0x45c2b4,_0x45c2b4,_0x45c2b4);}}else _0x338d32=_['find'](_0x4e71fb,[_0x2e0d2e('0x83'),_0x2e0d2e('0x9')]),_0x2fff5b[_0x2e0d2e('0xaf')]=_0x2e0d2e('0x9'),_0x444da6=as['buildExpression'](_0x39d481,_0x338d32['type'],_0x2fff5b),_0x4770ab[_0x3c75a2](_0x444da6[_0x2e0d2e('0xad')],_0x444da6[_0x2e0d2e('0xb')][_0x2e0d2e('0x99')],_0x444da6[_0x2e0d2e('0xb')][_0x2e0d2e('0xe7')]);break;case _0x2e0d2e('0x22'):{const _0x53c0fb=_0x2fff5b['value'][_0x2e0d2e('0x110')](',')['map'](function(_0x5698cc){return Number(_0x5698cc);});_0x53c0fb['forEach'](function(_0x98f5c9){_0x40061d['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x98f5c9+',%');}),_0x250c49=_[_0x2e0d2e('0x39')](_0x250c49,_0x53c0fb);}break;case _0x2e0d2e('0x63'):_0x2fff5b[_0x2e0d2e('0x5f')]==='$substring'?_0x4770ab[_0x3c75a2](_0x2e0d2e('0x94'),'%'+_0x2fff5b[_0x2e0d2e('0xb')]+'%',null):(_0x338d32=_[_0x2e0d2e('0x8e')](_0x4e71fb,[_0x2e0d2e('0x83'),_0x2e0d2e('0x91')]),_0x2fff5b['field']=_0x2e0d2e('0x91'),_0x444da6=as[_0x2e0d2e('0x6c')](_0x39d481,_0x338d32[_0x2e0d2e('0x3b')],_0x2fff5b),_0x4770ab[_0x3c75a2](_0x444da6['text'],_0x444da6[_0x2e0d2e('0xb')]['start'],_0x444da6[_0x2e0d2e('0xb')][_0x2e0d2e('0xe7')]));break;case'body':_0x444da6=as[_0x2e0d2e('0x6c')]('me',null,_0x2fff5b),_0x4770ab[_0x3c75a2](_0x444da6[_0x2e0d2e('0xad')],_0x444da6['value'][_0x2e0d2e('0x99')],_0x444da6[_0x2e0d2e('0xb')][_0x2e0d2e('0xe7')]);break;}else _0x444da6=as[_0x2e0d2e('0x6c')](_0x39d481,_0x338d32[_0x2e0d2e('0x3b')],_0x2fff5b),_0x4770ab[_0x3c75a2](_0x444da6['text'],_0x444da6[_0x2e0d2e('0xb')][_0x2e0d2e('0x99')],_0x444da6[_0x2e0d2e('0xb')]['end']);}}else{const _0x212376=_(_0x4a804c[_0x2e0d2e('0xae')])[_0x2e0d2e('0x8c')]()[_0x2e0d2e('0x3')](function(_0x21da8b){const _0x443fee=_0x2e0d2e;return _[_0x443fee('0xd6')](_0x4e71fb,[_0x443fee('0x83'),_0x21da8b])?_0x21da8b:undefined;})[_0x2e0d2e('0x8')]()[_0x2e0d2e('0xb')]();!_[_0x2e0d2e('0x23')](_0x212376)&&_0x212376[_0x2e0d2e('0x60')](function(_0x4d05c9){const _0x171169=_0x2e0d2e;if(_0x4d05c9==='ChatWebsiteId')_0x579e78[_0x171169('0x48')](_0x171169('0xb2'),[]['concat'](_0x4a804c[_0x171169('0xae')][_0x4d05c9]));else{if(_0x4d05c9==='createdAt'){const _0x5558d3=JSON[_0x171169('0x73')](_0x4a804c[_0x171169('0xae')][_0x4d05c9])[_0x171169('0x67')],_0x3a45d6=JSON[_0x171169('0x73')](_0x4a804c[_0x171169('0xae')][_0x4d05c9])['$lte'];_0x579e78['where'](_0x171169('0xc4'),_0x5558d3,_0x3a45d6);}else _0x4a804c[_0x171169('0xae')][_0x4d05c9]===_0x171169('0xe0')?_0x579e78[_0x171169('0x48')]('i.'+_0x4d05c9+'\x20IS\x20NULL'):_0x579e78['where']('i.'+_0x4d05c9+_0x171169('0x45'),_0x4a804c[_0x171169('0xae')][_0x4d05c9]);}});_0x4a804c[_0x2e0d2e('0xae')]['read']&&(_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0xc8')]==0x1?_0x579e78[_0x2e0d2e('0xd8')](_0x2e0d2e('0x12')):_0x579e78[_0x2e0d2e('0xd8')](_0x2e0d2e('0xde')));_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0x9a')]&&(_0x250c49=_['isArray'](_0x4a804c['query'][_0x2e0d2e('0x9a')])?_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0x9a')]:new Array(_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0x9a')]),_0x250c49[_0x2e0d2e('0x60')](function(_0x51a7){const _0x4deeff=_0x2e0d2e;_0x40061d['or'](_0x4deeff('0x7d'),'%,'+_0x51a7+',%');}));if(_0x4a804c['query'][_0x2e0d2e('0x68')]){const _0x288aa8=_0x4a804c[_0x2e0d2e('0xae')][_0x2e0d2e('0x68')]['replace']('\x5c','\x5c\x5c')[_0x2e0d2e('0xb0')]('\x27\x27','\x27\x27\x27\x27');qs['isNumeric'](_0x288aa8)?_0x4770ab['or'](_0x2e0d2e('0xbb'),_0x288aa8+'%'):_0x4770ab['or'](_0x2e0d2e('0x17'),qs['getFullTextValue'](_0x288aa8))['or'](_0x2e0d2e('0x1c'),_0x288aa8+'%');}}_0x579e78[_0x2e0d2e('0x48')](_0x4770ab),_0x579e78[_0x2e0d2e('0x10f')](_0x2e0d2e('0x69'));let _0x26b781={'type':QueryTypes['SELECT'],'raw':!![]};const _0x50a713=_0x579e78['clone']();_0x50a713['field'](_0x2e0d2e('0x69')),_0x50a713[_0x2e0d2e('0xaf')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x11af53['order']&&_0x11af53[_0x2e0d2e('0x42')][_0x2e0d2e('0x60')](function(_0x3c2740){const _0x453190=_0x2e0d2e;_0x579e78['order']('i.'+_0x3c2740[0x0],_0x3c2740[0x1]===_0x453190('0xfd')?![]:!![]);}),!_[_0x2e0d2e('0x23')](_0x250c49)&&(_0x579e78[_0x2e0d2e('0xd8')](_0x40061d),_0x50a713[_0x2e0d2e('0x48')]('t.id\x20IN\x20?',_0x250c49)),Promise[_0x2e0d2e('0x3d')]()[_0x2e0d2e('0x47')](function(){const _0x2d2f9c=_0x2e0d2e;if(!_0x3a1caa){if(_0x4a804c[_0x2d2f9c('0xae')][_0x2d2f9c('0xf5')]||_0x4a804c[_0x2d2f9c('0xae')][_0x2d2f9c('0x29')])return;_0x50a713[_0x2d2f9c('0x48')]('i.ChatWebsiteId\x20IS\x20NOT\x20NULL'),_0x579e78[_0x2d2f9c('0x48')](_0x2d2f9c('0x2d'));return;}return _0x4a804c[_0x2d2f9c('0x61')][_0x2d2f9c('0xbd')]({'attributes':['id'],'raw':!![]})[_0x2d2f9c('0x47')](function(_0x29e04e){const _0x571f85=_0x2d2f9c;_[_0x571f85('0x23')](_0x29e04e)?(_0x50a713[_0x571f85('0x48')](_0x571f85('0xd5')),_0x579e78[_0x571f85('0x48')](_0x571f85('0xd5'))):(_0x50a713[_0x571f85('0x48')](_0x571f85('0xb2'),_[_0x571f85('0x3')](_0x29e04e,'id')),_0x579e78[_0x571f85('0x48')](_0x571f85('0xb2'),_['map'](_0x29e04e,'id')));});})[_0x2e0d2e('0x47')](function(){const _0x2fa09d=_0x2e0d2e;db[_0x2fa09d('0x117')][_0x2fa09d('0xae')](_0x50a713['toString'](),_0x26b781)[_0x2fa09d('0x47')](function(_0x479afb){const _0x591bb4=_0x2fa09d;_0x457c47[_0x591bb4('0x54')]=_0x479afb[_0x591bb4('0x55')];if(_0x457c47[_0x591bb4('0x54')]===0x0)return[];return db[_0x591bb4('0x117')][_0x591bb4('0xae')](_0x3158e8['toString'](),_0x26b781)[_0x591bb4('0x47')](function(_0x9f7b9){const _0x1e1ca7=_0x591bb4;_0x2561f4=_[_0x1e1ca7('0xea')](_0x9f7b9,'id'),_0x26b781=_['merge'](_0x26b781,{'model':db[_0x1e1ca7('0x64')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x4a804c[_0x1e1ca7('0xae')]['fields']?_0x11af53[_0x1e1ca7('0xbc')][_0x1e1ca7('0x60')](function(_0x461078){const _0x351715=_0x1e1ca7;_0x579e78[_0x351715('0xaf')]('i.'+_0x461078);}):(_0x579e78['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x1e1ca7('0x119')),_0x579e78[_0x1e1ca7('0xaf')](_0x1e1ca7('0x4a'),'Account.key'),_0x579e78[_0x1e1ca7('0xaf')](_0x1e1ca7('0xfe'),_0x1e1ca7('0x105')),_0x579e78['field']('i.*'),_0x579e78[_0x1e1ca7('0xaf')](_0x1e1ca7('0x24'),_0x1e1ca7('0x20')),_0x579e78[_0x1e1ca7('0xaf')](_0x1e1ca7('0xa9'),_0x1e1ca7('0x102')),_0x579e78[_0x1e1ca7('0xaf')](_0x1e1ca7('0xd'),_0x1e1ca7('0xa1')),_0x579e78[_0x1e1ca7('0xaf')]('c.phone','Contact.phone'),_0x579e78[_0x1e1ca7('0xaf')](_0x1e1ca7('0x95'),'Contact.mobile'),_0x579e78['field'](_0x1e1ca7('0x11'),_0x1e1ca7('0x106')),_0x579e78[_0x1e1ca7('0xaf')]('o.fullname',_0x1e1ca7('0xb8')),_0x579e78[_0x1e1ca7('0xaf')](_0x1e1ca7('0x88'),_0x1e1ca7('0x72')),_0x579e78[_0x1e1ca7('0xaf')](_0x1e1ca7('0xf7'),_0x1e1ca7('0x81')));if(_0x11af53[_0x1e1ca7('0x1f')])_0x579e78['limit'](_0x11af53[_0x1e1ca7('0x1f')]);if(_0x11af53['offset'])_0x579e78['offset'](_0x11af53[_0x1e1ca7('0x103')]);return db[_0x1e1ca7('0x117')][_0x1e1ca7('0xae')](_0x579e78[_0x1e1ca7('0x6')](),_0x26b781);})[_0x591bb4('0x47')](function(_0x2f869a){const _0x40f841=_0x591bb4;return _0x8e24da[_0x40f841('0x48')]('ui.ChatInteractionId\x20IN\x20?',_[_0x40f841('0x3')](_0x2f869a,'id')),db['sequelize'][_0x40f841('0xae')](_0x8e24da[_0x40f841('0x6')](),_0x26b781)[_0x40f841('0x47')](function(_0x41ea0e){const _0x39b2df=_0x40f841,_0x7dff32=_['groupBy'](_0x41ea0e,_0x39b2df('0xba')),_0x485789=[];return _0x2f869a[_0x39b2df('0x60')](function(_0x37051e){const _0x5e5e02=_0x39b2df;_0x485789[_0x5e5e02('0x4e')](updateChatInteraction(_0x37051e,_0x2561f4,_0x7dff32));}),Promise[_0x39b2df('0x6a')](_0x485789);});});})[_0x2fa09d('0x47')](function(_0x4b822b){const _0xed4afe=_0x2fa09d;return _0x457c47[_0xed4afe('0x28')]=_0x4b822b,_0x457c47;})['then'](respondWithFilteredResult(_0x377f62,_0x11af53));})[_0x2e0d2e('0x6f')](handleError(_0x377f62,null));},exports[_0x2016b3('0xfc')]=function(_0x3ec885,_0x22f382){const _0x205e1a=_0x2016b3;let _0x9ca186={'raw':![],'where':{'id':_0x3ec885[_0x205e1a('0x109')]['id']}};const _0x2872ab={};return _0x2872ab['model']=_[_0x205e1a('0x8c')](db[_0x205e1a('0x64')][_0x205e1a('0x51')]),_0x2872ab['query']=_[_0x205e1a('0x8c')](_0x3ec885[_0x205e1a('0xae')]),_0x2872ab['filters']=_['intersection'](_0x2872ab[_0x205e1a('0xd0')],_0x2872ab[_0x205e1a('0xae')]),_0x9ca186[_0x205e1a('0xbc')]=_[_0x205e1a('0x4f')](_0x2872ab[_0x205e1a('0xd0')],qs['fields'](_0x3ec885[_0x205e1a('0xae')][_0x205e1a('0x11e')])),_0x9ca186[_0x205e1a('0xbc')]=_0x9ca186['attributes']['length']?_0x9ca186['attributes']:_0x2872ab[_0x205e1a('0xd0')],_0x3ec885['query'][_0x205e1a('0x38')]&&(_0x9ca186[_0x205e1a('0x5c')]=[{'all':!![]}]),_0x9ca186=_[_0x205e1a('0x9f')]({},_0x9ca186,_0x3ec885[_0x205e1a('0x52')]),db[_0x205e1a('0x64')][_0x205e1a('0xab')](_0x9ca186)['then'](handleEntityNotFound(_0x22f382,null))[_0x205e1a('0x47')](respondWithResult(_0x22f382,null))[_0x205e1a('0x6f')](handleError(_0x22f382,null));},exports['create']=function(_0x39acd7,_0x31e53c){const _0x20dec3=_0x2016b3;return db[_0x20dec3('0x64')][_0x20dec3('0xb6')](_0x39acd7['body'],{})[_0x20dec3('0x47')](respondWithResult(_0x31e53c,0xc9))['catch'](handleError(_0x31e53c,null));},exports['update']=function(_0x5368e8,_0x5345c7){const _0x1d4615=_0x2016b3;return _0x5368e8[_0x1d4615('0x80')]['id']&&delete _0x5368e8[_0x1d4615('0x80')]['id'],db[_0x1d4615('0x64')][_0x1d4615('0xab')]({'where':{'id':_0x5368e8['params']['id']}})['then'](handleEntityNotFound(_0x5345c7,null))[_0x1d4615('0x47')](saveUpdates(_0x5368e8[_0x1d4615('0x80')],null))[_0x1d4615('0x47')](respondWithResult(_0x5345c7,null))['catch'](handleError(_0x5345c7,null));},exports['destroy']=function(_0x4ff4b3,_0x316814){const _0x3a3e72=_0x2016b3;return db[_0x3a3e72('0x64')]['findOne']({'where':{'id':_0x4ff4b3[_0x3a3e72('0x109')]['id']}})[_0x3a3e72('0x47')](handleEntityNotFound(_0x316814,null))['then'](removeEntity(_0x316814,null))[_0x3a3e72('0x6f')](handleError(_0x316814,null));},exports[_0x2016b3('0x79')]=function(_0x5ce10,_0xfbda14){const _0x497f20=_0x2016b3;return db[_0x497f20('0x64')][_0x497f20('0x79')]()['then'](respondWithResult(_0xfbda14,null))[_0x497f20('0x6f')](handleError(_0xfbda14,null));},exports[_0x2016b3('0x10a')]=function(_0x4da8b0,_0x4925a3){const _0x17c165=_0x2016b3,_0x2221b3=_0x4da8b0[_0x17c165('0x109')]['id'];let _0x317f5f,_0x141ee7,_0x3e3981;return db['ChatInteraction']['findOne']({'where':{'id':_0x2221b3}})[_0x17c165('0x47')](function(_0x1e83c0){const _0x3e7ce3=_0x17c165;return _0x317f5f=_0x1e83c0,db[_0x3e7ce3('0x8a')][_0x3e7ce3('0xab')]({'where':{'id':_0x1e83c0[_0x3e7ce3('0xf5')]},'attributes':['id','vidaooApiKey',_0x3e7ce3('0x21')],'raw':!![]});})[_0x17c165('0x47')](function(_0x3dbd13){const _0x59fb99=_0x17c165;if(_0x3dbd13&&_0x3dbd13['vidaooApiKey']&&_0x3dbd13['vidaooEscalation']){_0x141ee7=_0x3dbd13;const _0x4228c2={'rejectUnauthorized':![],'method':_0x59fb99('0xf8'),'uri':_0x59fb99('0x40'),'headers':{'X-APIKEY':_0x3dbd13[_0x59fb99('0xed')]},'body':{'name':_0x59fb99('0xb1')+_0x2221b3},'redirect':_0x59fb99('0x90'),'json':!![]};return rp(_0x4228c2);}else throw new ValidationError(_0x59fb99('0x25'));})[_0x17c165('0x47')](function(_0x30cbfb){const _0x47f685=_0x17c165;_0x3e3981=_0x30cbfb;if(_0x3e3981['id']){const _0x341e9e={'body':_0x3e3981['join_url'],'ChatWebsiteId':_0x141ee7['id'],'ChatInteractionId':_0x317f5f['id'],'direction':'out','UserId':_0x4da8b0[_0x47f685('0x61')]['id']};return db['ChatMessage'][_0x47f685('0xb6')](_0x341e9e,{});}else throw new ValidationError(_0x47f685('0x96'));})[_0x17c165('0x47')](function(){const _0x3d06c7=_0x17c165;return _0x317f5f[_0x3d06c7('0x35')]({'vidaooSessionId':_0x3e3981['id']});})['then'](respondWithResult(_0x4925a3,null))[_0x17c165('0x6f')](handleError(_0x4925a3,null));},exports[_0x2016b3('0x10e')]=function(_0x3af086,_0x5b44cd){const _0x7e5b7=_0x2016b3;return _0x3af086[_0x7e5b7('0x80')]['id']&&delete _0x3af086[_0x7e5b7('0x80')]['id'],db[_0x7e5b7('0x64')][_0x7e5b7('0xab')]({'where':{'id':_0x3af086['params']['id']}})[_0x7e5b7('0x47')](handleEntityNotFound(_0x5b44cd,null))[_0x7e5b7('0x47')](saveUpdates(_0x3af086[_0x7e5b7('0x80')],null))['then'](respondWithResult(_0x5b44cd,null))[_0x7e5b7('0x6f')](handleError(_0x5b44cd,null));},exports[_0x2016b3('0x44')]=function(_0x160c0b,_0x330813){const _0x4de8ea=_0x2016b3;return _0x160c0b[_0x4de8ea('0x80')]['id']&&delete _0x160c0b['body']['id'],db[_0x4de8ea('0x64')]['findOne']({'where':{'id':_0x160c0b['params']['id']}})[_0x4de8ea('0x47')](function(_0xcca853){const _0x709be8=_0x4de8ea;if(!_0xcca853)logger['error'](_0x709be8('0x58'),'abandon',0x194,_0x709be8('0x49')),_0x330813[_0x709be8('0xd9')](0x194);else{if(_0xcca853[_0x709be8('0x91')])throw new ValidationError(_0x709be8('0xe2'));}return _0xcca853;})[_0x4de8ea('0x47')](function(_0x455471){const _0x262d9d=_0x4de8ea;if(_0x455471)return _0x455471[_0x262d9d('0x35')]({'closed':_0x160c0b['body'][_0x262d9d('0x3e')],'disposition':_0x160c0b[_0x262d9d('0x80')][_0x262d9d('0x115')]})[_0x262d9d('0x47')](function(_0x2c1a85){return _0x2c1a85;});})[_0x4de8ea('0x47')](function(){const _0x57a2d0=_0x4de8ea;return respondWithRpcPromise(_0x57a2d0('0x7'),'abandon',_0x160c0b[_0x57a2d0('0x80')],client9004);})[_0x4de8ea('0x47')](respondWithResult(_0x330813,null))[_0x4de8ea('0x6f')](handleError(_0x330813,null));},exports[_0x2016b3('0x78')]=function(_0x3a364e,_0x3454fe){const _0x2e37ad=_0x2016b3;return _0x3a364e[_0x2e37ad('0x80')][_0x2e37ad('0x83')]=_0x3a364e[_0x2e37ad('0x71')][_0x2e37ad('0x53')],_0x3a364e['body']['basename']=_0x3a364e['file'][_0x2e37ad('0x101')],_0x3a364e['body']['type']=_0x3a364e['file'][_0x2e37ad('0x50')],db[_0x2e37ad('0x4c')][_0x2e37ad('0xb6')](_0x3a364e[_0x2e37ad('0x80')])['then'](respondWithResult(_0x3454fe,0xc9))[_0x2e37ad('0x6f')](handleError(_0x3454fe,null));},exports[_0x2016b3('0xb7')]=function(_0x719a26,_0x4b1d30){const _0x3bbc85=_0x2016b3;return db[_0x3bbc85('0x64')][_0x3bbc85('0xab')]({'where':{'id':_0x719a26[_0x3bbc85('0x109')]['id']},'raw':!![]})[_0x3bbc85('0x47')](handleEntityNotFound(_0x4b1d30,null))[_0x3bbc85('0x47')](function(_0x1ad018){const _0x8e486a=_0x3bbc85;if(_0x1ad018){if(_0x1ad018[_0x8e486a('0x3e')])return _0x4b1d30[_0x8e486a('0x6d')](0x193)[_0x8e486a('0x32')]({'status':0x193,'message':_0x8e486a('0x8d')});return db[_0x8e486a('0x4c')][_0x8e486a('0xab')]({'where':{'id':_0x719a26[_0x8e486a('0xae')]['attachId']},'raw':!![]})['then'](handleEntityNotFound(_0x4b1d30,null));}})[_0x3bbc85('0x47')](function(_0x597910){const _0x1ef701=_0x3bbc85;if(_0x597910)return _0x4b1d30['download'](path[_0x1ef701('0xc7')](config[_0x1ef701('0x116')],_0x1ef701('0x43'),_0x597910[_0x1ef701('0x118')]));})[_0x3bbc85('0x6f')](handleError(_0x4b1d30,null));},exports[_0x2016b3('0x4d')]=function(_0x55b4b5,_0x95b52e){const _0x47d2cc=_0x2016b3;let _0x137159=null,_0x5eb85b=null,_0x36caee=null;return _0x55b4b5[_0x47d2cc('0x80')]['id']&&delete _0x55b4b5[_0x47d2cc('0x80')]['id'],_0x55b4b5['body'][_0x47d2cc('0xa7')]&&(_0x36caee=path[_0x47d2cc('0xc7')](config[_0x47d2cc('0x116')],'server/files/chat/upload/',util[_0x47d2cc('0xe6')]('transcript-%s.txt',Date[_0x47d2cc('0xc1')]())),_0x55b4b5[_0x47d2cc('0x80')][_0x47d2cc('0x10')]=_0x36caee),db['ChatInteraction'][_0x47d2cc('0xab')]({'where':{'id':_0x55b4b5[_0x47d2cc('0x109')]['id']},'include':[{'model':db[_0x47d2cc('0x11c')],'as':_0x47d2cc('0xbf'),'include':[{'model':db[_0x47d2cc('0x63')],'as':_0x47d2cc('0x63')}]}]})['then'](handleEntityNotFound(_0x95b52e,null))[_0x47d2cc('0x47')](saveUpdates(_0x55b4b5[_0x47d2cc('0x80')],null))[_0x47d2cc('0x47')](function(_0x2e5a83){const _0x1c1c13=_0x47d2cc;if(_0x2e5a83)return _0x137159=_0x2e5a83,db['ChatWebsite']['findOne']({'where':{'id':_0x137159[_0x1c1c13('0xf5')]}});})[_0x47d2cc('0x47')](function(_0x4b892e){const _0x41a2bb=_0x47d2cc;if(_0x4b892e)return _0x5eb85b=_0x4b892e,db[_0x41a2bb('0xe9')][_0x41a2bb('0xab')]({'where':{'id':_0x137159['ContactId']}});})[_0x47d2cc('0x47')](function(_0x13314d){const _0x1a12e8=_0x47d2cc;if(_0x13314d){if(_0x36caee){let _0x3ad6a2=null;for(let _0x27826a=0x1;_0x27826a<_0x137159[_0x1a12e8('0xbf')][_0x1a12e8('0x55')];++_0x27826a){_0x3ad6a2=_0x137159[_0x1a12e8('0xbf')][_0x27826a];let _0x58082e=_0x3ad6a2[_0x1a12e8('0x91')]?util[_0x1a12e8('0xe6')](_0x1a12e8('0x3a'),_0x5eb85b[_0x1a12e8('0xa5')],_0x3ad6a2[_0x1a12e8('0x91')]):_0x1a12e8('0xf3');const _0x4b95e1=_0x55b4b5['body'][_0x1a12e8('0x2c')]||util[_0x1a12e8('0xe6')]('%s%d','Visitor',_0x3ad6a2[_0x1a12e8('0x9')]);switch(_0x5eb85b['agentIdentifier']){case _0x1a12e8('0x13'):_0x58082e=_0x3ad6a2[_0x1a12e8('0x91')]?util[_0x1a12e8('0xe6')](_0x1a12e8('0x3a'),_0x5eb85b[_0x1a12e8('0xa5')],_0x3ad6a2[_0x1a12e8('0x91')]):_0x1a12e8('0xf3');break;case _0x1a12e8('0xfb'):_0x58082e=_0x3ad6a2[_0x1a12e8('0x91')]?_0x3ad6a2['User'][_0x1a12e8('0x16')]||_0x3ad6a2[_0x1a12e8('0x63')][_0x1a12e8('0x26')]:'System';break;case _0x1a12e8('0xcd'):_0x58082e=_0x3ad6a2[_0x1a12e8('0x91')]?_0x3ad6a2[_0x1a12e8('0x63')][_0x1a12e8('0x26')]:_0x1a12e8('0xf3');break;default:_0x58082e=_0x3ad6a2[_0x1a12e8('0x91')]?util[_0x1a12e8('0xe6')]('%s%d',_0x5eb85b['agentAlias'],_0x3ad6a2['UserId']):_0x1a12e8('0xf3');}const _0x4423ac=util[_0x1a12e8('0xe6')]('[%s]\x20%s:\x20%s\x0a',moment(_0x3ad6a2[_0x1a12e8('0x6b')])[_0x1a12e8('0xe6')](_0x1a12e8('0x6e')),_0x3ad6a2[_0x1a12e8('0x2e')]==='in'?_0x4b95e1:_0x58082e,_0x3ad6a2[_0x1a12e8('0x80')]);!_0x3ad6a2[_0x1a12e8('0xeb')]&&fs[_0x1a12e8('0xcb')](_0x36caee,_0x4423ac);}return db[_0x1a12e8('0xec')][_0x1a12e8('0xab')]({'where':{'service':!![]},'include':[{'model':db['MailServerOut'],'as':_0x1a12e8('0xf2'),'raw':!![]}]});}}})['then'](function(_0x3cb55f){const _0x453d97=_0x47d2cc;if(_0x3cb55f&&_0x3cb55f[_0x453d97('0xf2')]&&_0x55b4b5[_0x453d97('0x80')]){const _0x1ecea9={'tls':{'rejectUnauthorized':![]}};return _0x3cb55f[_0x453d97('0xf2')][_0x453d97('0x14')]?_0x1ecea9[_0x453d97('0x14')]=_0x3cb55f[_0x453d97('0xf2')][_0x453d97('0x14')]:(_0x1ecea9[_0x453d97('0x33')]=_0x3cb55f[_0x453d97('0xf2')][_0x453d97('0x33')],_0x1ecea9[_0x453d97('0x5b')]=_0x3cb55f[_0x453d97('0xf2')][_0x453d97('0x5b')],_0x1ecea9['secure']=_0x3cb55f['Smtp'][_0x453d97('0xa0')]),_0x3cb55f[_0x453d97('0xf2')][_0x453d97('0x5a')]&&(_0x1ecea9[_0x453d97('0x18')]={'user':_0x3cb55f[_0x453d97('0xf2')][_0x453d97('0x61')],'pass':_0x3cb55f[_0x453d97('0xf2')][_0x453d97('0x0')]}),respondWithRpcPromise(_0x453d97('0x31'),'sendMail',{'account':_0x1ecea9,'message':{'from':util[_0x453d97('0xe6')]('\x22%s\x22\x20<%s>',_0x3cb55f[_0x453d97('0x83')],_0x3cb55f[_0x453d97('0x15')]||_0x3cb55f[_0x453d97('0xf2')][_0x453d97('0x61')]),'to':_0x55b4b5['body'][_0x453d97('0xa7')],'subject':_0x453d97('0x97'),'text':util[_0x453d97('0xe6')](_0x453d97('0x1a'),_0x55b4b5[_0x453d97('0x80')]['mailTranscript']),'attachments':[{'path':_0x36caee}]}})[_0x453d97('0x47')](function(){return _0x137159;})[_0x453d97('0x6f')](function(_0xa8bcdd){const _0x3d2501=_0x453d97;console[_0x3d2501('0x84')](_0xa8bcdd);});}else return _0x137159;})['then'](respondWithStatusCode(_0x95b52e,0xc8))[_0x47d2cc('0x6f')](handleError(_0x95b52e,null));},exports[_0x2016b3('0xc2')]=function(_0x4d287a,_0x34a63c){const _0x3cc5a0=_0x2016b3;return db[_0x3cc5a0('0x11c')][_0x3cc5a0('0xab')]({'where':{'id':_0x4d287a[_0x3cc5a0('0x109')]['id']}})[_0x3cc5a0('0x47')](function(_0x423a4a){const _0x145378=_0x3cc5a0;if(_0x423a4a)return _0x423a4a[_0x145378('0xc2')](_0x4d287a['body'][_0x145378('0x36')],{'through':_[_0x145378('0xce')](_0x4d287a[_0x145378('0x80')],[_0x145378('0x36'),'id'])});})[_0x3cc5a0('0x47')](respondWithResult(_0x34a63c,null))[_0x3cc5a0('0x6f')](handleError(_0x34a63c,null));},exports[_0x2016b3('0x76')]=function(_0x2c117d,_0x522516){const _0x273a15=_0x2016b3;let _0x3fd44f={'raw':![],'where':{}};const _0x4ae3dd={},_0x526043={'count':0x0,'rows':[]};return db[_0x273a15('0x64')][_0x273a15('0xab')]({'where':{'id':_0x2c117d['params']['id']}})[_0x273a15('0x47')](handleEntityNotFound(_0x522516,null))[_0x273a15('0x47')](function(_0x223d17){const _0x1b2524=_0x273a15;if(_0x223d17){_0x4ae3dd[_0x1b2524('0xd0')]=_['keys'](db[_0x1b2524('0x11c')][_0x1b2524('0x51')]),_0x4ae3dd[_0x1b2524('0xae')]=_[_0x1b2524('0x8c')](_0x2c117d[_0x1b2524('0xae')]),_0x4ae3dd[_0x1b2524('0x9b')]=_[_0x1b2524('0x4f')](_0x4ae3dd[_0x1b2524('0xd0')],_0x4ae3dd[_0x1b2524('0xae')]),_0x3fd44f['attributes']=_['intersection'](_0x4ae3dd[_0x1b2524('0xd0')],qs[_0x1b2524('0x11e')](_0x2c117d[_0x1b2524('0xae')][_0x1b2524('0x11e')])),_0x3fd44f['attributes']=_0x3fd44f[_0x1b2524('0xbc')]['length']?_0x3fd44f[_0x1b2524('0xbc')]:_0x4ae3dd[_0x1b2524('0xd0')];typeof _0x2c117d[_0x1b2524('0xae')][_0x1b2524('0xe1')]===_0x1b2524('0x5d')&&(_0x3fd44f[_0x1b2524('0x1f')]=qs[_0x1b2524('0x1f')](_0x2c117d[_0x1b2524('0xae')][_0x1b2524('0x1f')]),_0x3fd44f[_0x1b2524('0x103')]=qs['offset'](_0x2c117d[_0x1b2524('0xae')][_0x1b2524('0x103')]));_0x3fd44f[_0x1b2524('0x42')]=qs[_0x1b2524('0x2')](_0x2c117d[_0x1b2524('0xae')][_0x1b2524('0x2')]),_0x3fd44f[_0x1b2524('0x48')]=qs[_0x1b2524('0x9b')](_['pick'](_0x2c117d[_0x1b2524('0xae')],_0x4ae3dd['filters'])),_0x3fd44f[_0x1b2524('0x48')][_0x1b2524('0xba')]=_0x223d17['id'];_0x2c117d[_0x1b2524('0xae')][_0x1b2524('0x68')]&&(_0x3fd44f['where']=_['merge'](_0x3fd44f[_0x1b2524('0x48')],{[Op['or']]:_[_0x1b2524('0x3')](_0x3fd44f[_0x1b2524('0xbc')],function(_0x71e433){const _0x29664b=_0x1b2524,_0x337eb7={};return _0x337eb7[_0x71e433]={[Op[_0x29664b('0x4b')]]:'%'+_0x2c117d[_0x29664b('0xae')]['filter']+'%'},_0x337eb7;})}));if(_0x2c117d[_0x1b2524('0xae')][_0x1b2524('0x67')]){const _0x244ea6=_0x2c117d[_0x1b2524('0xae')][_0x1b2524('0x67')][_0x1b2524('0x110')](','),_0x2d7e51={};_0x2d7e51[_0x244ea6[0x0]]={[Op[_0x1b2524('0x57')]]:moment(_0x244ea6[0x1])[_0x1b2524('0xe6')]('YYYY-MM-DD\x20HH:mm:ss')},_0x3fd44f[_0x1b2524('0x48')]=_[_0x1b2524('0x9f')](_0x3fd44f['where'],_0x2d7e51);}return _0x3fd44f=_[_0x1b2524('0x9f')]({},_0x3fd44f,_0x2c117d['options']),db[_0x1b2524('0x11c')][_0x1b2524('0x54')]({'where':_0x3fd44f['where']})['then'](function(_0x121777){const _0x593578=_0x1b2524;return _0x526043[_0x593578('0x54')]=_0x121777,_0x2c117d[_0x593578('0xae')][_0x593578('0x38')]&&(_0x3fd44f[_0x593578('0x5c')]=[{'all':!![]}]),db[_0x593578('0x11c')][_0x593578('0xb9')](_0x3fd44f);})[_0x1b2524('0x47')](function(_0x55e281){const _0x26ed05=_0x1b2524;return _0x526043[_0x26ed05('0x28')]=_0x55e281,_0x526043;});}})['then'](respondWithFilteredResult(_0x522516,_0x3fd44f))[_0x273a15('0x6f')](handleError(_0x522516,null));},exports[_0x2016b3('0xa3')]=function(_0x44e842,_0x557b0a){const _0x228b11=_0x2016b3;let _0x2e5543={'where':{}};const _0x41a3d7={},_0x3a4639={'count':0x0,'rows':[]};return db['ChatInteraction']['findOne']({'where':{'id':_0x44e842['params']['id']}})[_0x228b11('0x47')](handleEntityNotFound(_0x557b0a,null))[_0x228b11('0x47')](function(_0x1843c0){const _0x562548=_0x228b11;if(_0x1843c0)return _0x41a3d7[_0x562548('0xd0')]=_['keys'](db[_0x562548('0x11c')][_0x562548('0x51')]),_0x41a3d7[_0x562548('0xae')]=_[_0x562548('0x8c')](_0x44e842[_0x562548('0xae')]),_0x41a3d7[_0x562548('0x9b')]=_[_0x562548('0x4f')](_0x41a3d7[_0x562548('0xd0')],_0x41a3d7['query']),_0x2e5543[_0x562548('0xbc')]=_[_0x562548('0x4f')](_0x41a3d7['model'],qs[_0x562548('0x11e')](_0x44e842['query'][_0x562548('0x11e')])),_0x2e5543[_0x562548('0xbc')]=_0x2e5543['attributes'][_0x562548('0x55')]?_0x2e5543['attributes']:_0x41a3d7[_0x562548('0xd0')],typeof _0x44e842[_0x562548('0xae')][_0x562548('0xe1')]===_0x562548('0x5d')&&(_0x2e5543[_0x562548('0x1f')]=qs[_0x562548('0x1f')](_0x44e842[_0x562548('0xae')][_0x562548('0x1f')]),_0x2e5543[_0x562548('0x103')]=qs[_0x562548('0x103')](_0x44e842[_0x562548('0xae')]['offset'])),_0x2e5543[_0x562548('0x42')]=qs[_0x562548('0x2')](_0x44e842['query'][_0x562548('0x2')]),_0x2e5543[_0x562548('0x48')]=qs['filters'](_[_0x562548('0xe')](_0x44e842[_0x562548('0xae')],_0x41a3d7[_0x562548('0x9b')])),_0x2e5543['where'][_0x562548('0xba')]=_0x1843c0['id'],_0x44e842[_0x562548('0xae')][_0x562548('0x68')]&&(_0x2e5543[_0x562548('0x48')]=_[_0x562548('0x9f')](_0x2e5543[_0x562548('0x48')],{[Op['or']]:_['map'](_0x2e5543['attributes'],function(_0x1601d6){const _0x2c1213=_0x562548,_0x22cb3a={};return _0x22cb3a[_0x1601d6]={[Op['like']]:'%'+_0x44e842[_0x2c1213('0xae')][_0x2c1213('0x68')]+'%'},_0x22cb3a;})})),_0x2e5543['where'][_0x562548('0xeb')]=![],_0x44e842[_0x562548('0xae')]['id']&&(_0x2e5543['where']['id']={[Op['gt']]:_0x44e842[_0x562548('0xae')]['id']}),_0x2e5543=_[_0x562548('0x9f')]({},_0x2e5543,_0x44e842[_0x562548('0x52')]),db['ChatMessage']['count']({'where':_0x2e5543[_0x562548('0x48')]})['then'](function(_0x3e64f1){const _0x20baa2=_0x562548;return _0x3a4639[_0x20baa2('0x54')]=_0x3e64f1,_0x2e5543['include']=[],_0x44e842[_0x20baa2('0xae')]['includeAgent']&&_0x2e5543[_0x20baa2('0x5c')][_0x20baa2('0x4e')]({'model':db['User'],'as':_0x20baa2('0x63'),'attributes':['id',_0x20baa2('0x26'),_0x20baa2('0x16')]}),_0x44e842['query'][_0x20baa2('0x38')]&&(_0x2e5543[_0x20baa2('0x5c')]=[{'all':!![]}]),db[_0x20baa2('0x11c')][_0x20baa2('0xb9')](_0x2e5543);})[_0x562548('0x47')](function(_0x236b0e){const _0x125668=_0x562548;return _0x3a4639[_0x125668('0x28')]=_0x236b0e,_0x3a4639;});})[_0x228b11('0x47')](respondWithFilteredResult(_0x557b0a,_0x2e5543))[_0x228b11('0x6f')](handleError(_0x557b0a,null));},exports['addTags']=function(_0xb3a815,_0x2b0f1a){const _0x3978cf=_0x2016b3;return db['ChatInteraction'][_0x3978cf('0xab')]({'where':{'id':_0xb3a815[_0x3978cf('0x109')]['id']}})[_0x3978cf('0x47')](function(_0x10deb6){const _0x137dfd=_0x3978cf;if(_0x10deb6)return _0x10deb6['setTags'](_0xb3a815[_0x137dfd('0x80')][_0x137dfd('0x36')],{'through':_[_0x137dfd('0xce')](_0xb3a815[_0x137dfd('0x80')],[_0x137dfd('0x36'),'id'])})[_0x137dfd('0x47')](function(){const _0x1e82b0=_0x137dfd;return db[_0x1e82b0('0x22')][_0x1e82b0('0xb9')]({'attributes':['id',_0x1e82b0('0x83'),_0x1e82b0('0x10b')],'where':{'id':_0xb3a815['body']['ids']}});})[_0x137dfd('0x47')](function(_0x5b5af3){const _0xc4dc0e=_0x137dfd;return socket['emit']('chatInteractionTags:save',{'id':Number(_0xb3a815[_0xc4dc0e('0x109')]['id']),'tags':_0x5b5af3||[]}),{'id':Number(_0xb3a815['params']['id']),'tags':_0x5b5af3||[]};});})['then'](respondWithResult(_0x2b0f1a,null))[_0x3978cf('0x6f')](handleError(_0x2b0f1a,null));},exports[_0x2016b3('0x30')]=function(_0x3aa8c3,_0x21259c){const _0x53b4b6=_0x2016b3;return db[_0x53b4b6('0x64')][_0x53b4b6('0xab')]({'where':{'id':_0x3aa8c3['params']['id']}})['then'](handleEntityNotFound(_0x21259c,null))[_0x53b4b6('0x47')](function(_0x3c1899){const _0x5590fd=_0x53b4b6;if(_0x3c1899)return _0x3c1899['removeTags'](_0x3aa8c3[_0x5590fd('0xae')][_0x5590fd('0x36')]);})[_0x53b4b6('0x47')](respondWithStatusCode(_0x21259c,null))[_0x53b4b6('0x6f')](handleError(_0x21259c,null));},exports[_0x2016b3('0x98')]=function(_0x29c975,_0x505cfc){const _0x5cf8a3=_0x2016b3,_0x12c3c1=moment()[_0x5cf8a3('0x65')]()[_0x5cf8a3('0x6')](),_0xb66473=path[_0x5cf8a3('0xc7')](config[_0x5cf8a3('0x116')],_0x5cf8a3('0x7b'),'tmp'),_0x298b9a=path[_0x5cf8a3('0xc7')](config['root'],_0x5cf8a3('0x77'),'files','attachments'),_0x3920c4=path[_0x5cf8a3('0xc7')](_0xb66473,_0x12c3c1),_0x1cd47c=util[_0x5cf8a3('0xe6')](_0x5cf8a3('0xf9'),_0x29c975[_0x5cf8a3('0x109')]['id'],_0x12c3c1),_0x56d9e1=path['join'](_0xb66473,_0x1cd47c),_0x35a811=[];_0x35a811['push']({'model':db['User'],'as':'User','attributes':['id',_0x5cf8a3('0x26')],'raw':!![]}),_0x35a811[_0x5cf8a3('0x4e')]({'model':db[_0x5cf8a3('0xe9')],'as':_0x5cf8a3('0x82'),'attributes':['id','firstName',_0x5cf8a3('0xf1')],'raw':!![]});_0x29c975['query'][_0x5cf8a3('0x11f')]&&_0x35a811[_0x5cf8a3('0x4e')]({'model':db[_0x5cf8a3('0x4c')],'as':'Attachment','raw':!![]});const _0x57c0c1=[{'model':db[_0x5cf8a3('0x11c')],'as':_0x5cf8a3('0xbf'),'attributes':['id',_0x5cf8a3('0x80'),'createdAt',_0x5cf8a3('0x2e'),_0x5cf8a3('0xeb'),'read'],'include':_0x35a811}];return _0x57c0c1[_0x5cf8a3('0x4e')]({'model':db['ChatWebsite'],'as':_0x5cf8a3('0xc5'),'attributes':['id',_0x5cf8a3('0x83')]}),_0x57c0c1[_0x5cf8a3('0x4e')]({'model':db['User'],'as':_0x5cf8a3('0x9d'),'attributes':['id',_0x5cf8a3('0x26')]}),db[_0x5cf8a3('0x64')]['findOne']({'where':{'id':_0x29c975['params']['id']},'include':_0x57c0c1})[_0x5cf8a3('0x47')](handleEntityNotFound(_0x505cfc,null))['then'](function(_0x272133){const _0x5d4e9d=_0x5cf8a3;if(_0x272133){const _0x1ba3c4=_0x272133[_0x5d4e9d('0x9c')]({'plain':!![]});fs[_0x5d4e9d('0x85')](_0x3920c4);const _0x5e0b15={'format':'A4','border':'10px','header':{'height':'40px','contents':{'first':_0x5d4e9d('0x37')}},'footer':{'height':'30px','contents':{'default':util[_0x5d4e9d('0xe6')]('\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{{page}}/{{pages}}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20%s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',util['format'](_0x5d4e9d('0x34'),_0x5d4e9d('0xac'),_0x1ba3c4['id']),moment()['format'](_0x5d4e9d('0x7a'))[_0x5d4e9d('0x6')]())}}},_0x4d12fa={'channel':_0x5d4e9d('0xac'),'account':_0x1ba3c4[_0x5d4e9d('0xc5')][_0x5d4e9d('0x83')],'agent':_0x1ba3c4[_0x5d4e9d('0x9d')]?_0x1ba3c4['Owner']['fullname']:_0x5d4e9d('0xd4'),'createdAt':moment(_0x1ba3c4[_0x5d4e9d('0x6b')])['format']('YYYY-MM-DD\x20HH:mm:ss')['toString'](),'closedAt':_0x1ba3c4[_0x5d4e9d('0x3e')]?moment(_0x1ba3c4[_0x5d4e9d('0xfa')])[_0x5d4e9d('0xe6')](_0x5d4e9d('0x5'))[_0x5d4e9d('0x6')]():'','disposition':_0x1ba3c4[_0x5d4e9d('0x115')],'chatInfo':{'browser':_0x1ba3c4[_0x5d4e9d('0x74')],'os':_0x1ba3c4[_0x5d4e9d('0x7f')],'referer':_0x1ba3c4[_0x5d4e9d('0x19')],'customerIp':_0x1ba3c4['customerIp'],'customerPort':_0x1ba3c4['customerPort']?_0x1ba3c4[_0x5d4e9d('0x75')]:'N.A.'},'messages':_(_0x1ba3c4[_0x5d4e9d('0xbf')])[_0x5d4e9d('0x107')]()[_0x5d4e9d('0x68')]({'secret':![]})['map'](function(_0x152cce){const _0x483b82=_0x5d4e9d;if(_0x152cce['Attachment']){const _0x5be2f9=path['join'](_0x298b9a,_0x152cce[_0x483b82('0x4c')][_0x483b82('0x118')]);fs[_0x483b82('0x1')](_0x5be2f9)&&fs[_0x483b82('0x100')](_0x5be2f9)[_0x483b82('0x92')](fs[_0x483b82('0x10d')](path[_0x483b82('0xc7')](_0x3920c4,_0x152cce[_0x483b82('0x4c')][_0x483b82('0x118')])));}return{'date':moment(_0x152cce[_0x483b82('0x6b')])[_0x483b82('0xe6')](_0x483b82('0x5'))[_0x483b82('0x6')](),'sender':_0x152cce[_0x483b82('0x2e')]===_0x483b82('0x113')?_0x152cce[_0x483b82('0x63')]?_0x152cce['User']['fullname']:'System':_0x152cce[_0x483b82('0x82')]['firstName']+(_0x152cce[_0x483b82('0x82')][_0x483b82('0xf1')]?'\x20'+_0x152cce[_0x483b82('0x82')][_0x483b82('0xf1')]:''),'body':_0x152cce[_0x483b82('0x4c')]?_0x152cce[_0x483b82('0x4c')][_0x483b82('0x118')]:_0x152cce[_0x483b82('0x80')],'direction':_0x152cce[_0x483b82('0x2e')]===_0x483b82('0x113')?'A':'C','secret':_0x152cce[_0x483b82('0xeb')],'read':_0x152cce['read'],'attachment':_0x152cce[_0x483b82('0x4c')]};})['value']()};return ejs[_0x5d4e9d('0xc6')](path[_0x5d4e9d('0xc7')](config['root'],_0x5d4e9d('0x77'),_0x5d4e9d('0xef'),_0x5d4e9d('0x87')),{'interaction':_0x4d12fa})[_0x5d4e9d('0x47')](function(_0x53ab61){return new Promise(function(_0x427f4f,_0x502632){const _0x3d65ba=a66_0x1c36;pdf[_0x3d65ba('0xb6')](_0x53ab61,_0x5e0b15)[_0x3d65ba('0xb4')](path[_0x3d65ba('0xc7')](_0x3920c4,_0x3d65ba('0x2a')+_0x1ba3c4['id']+'-'+_0x12c3c1+_0x3d65ba('0x1e')),function(_0x4bf295,_0x414054){if(_0x4bf295)return _0x502632(_0x4bf295);_0x427f4f(_0x414054);});});})[_0x5d4e9d('0x47')](function(){const _0x204394=_0x5d4e9d;return new Promise(function(_0x26f100,_0x13efe1){zipdir(_0x3920c4,{'saveTo':_0x56d9e1},function(_0x452a6c,_0x327d7e){if(_0x452a6c)return _0x13efe1(_0x452a6c);return _0x26f100(_0x327d7e);});})['then'](function(){return new Promise(function(_0x52f51c,_0x968953){rimraf(_0x3920c4,function(_0x5da3c0){if(_0x5da3c0)_0x968953(_0x5da3c0);return _0x52f51c();});});})[_0x204394('0x47')](function(){const _0xb9a7f5=_0x204394;return _0x505cfc[_0xb9a7f5('0x98')](_0x56d9e1,_0x1cd47c,function(_0x464ab6){const _0x39834c=_0xb9a7f5;_0x464ab6?console[_0x39834c('0x7c')](_0x39834c('0xa6'),_0x464ab6):fs[_0x39834c('0x70')](_0x56d9e1);});});});}else return _0x505cfc['sendStatus'](0xc8);})[_0x5cf8a3('0x6f')](handleError(_0x505cfc,null));}; \ No newline at end of file +const a66_0x17df=['where','Contact.lastName','filter','emit','sqlOperator','toFile','attributes','\x20IS\x20NULL','c.email','chatInteractionTags:save','keys','t.id\x20IN\x20?','agentAlias','abandon','Smtp','cm_contacts','mailTranscript','secret','Unable\x20to\x20create\x20Vidaoo\x20session','disposition','chat_interaction_has_tags','a.mandatoryDisposition','operator','count','error','key','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','createReadStream','log','$gte','alias','getMyMessages','o.id\x20=\x20i.UserId','files/attachments/','../../config/logger','close','[%s]\x20%s:\x20%s\x0a','AbandonInteraction','i.ChatWebsiteId\x20IS\x20NOT\x20NULL','download','gte','then','fieldName','groupBy','ChatWebsiteId','message','entity\x20not\x20found','push','chat_interactions','o.fullname','ContactId','agentIdentifier','vidaooApiKey','Contact.phone','join_url','http','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','closedAt','port','$substring','Hi\x20%s,\x20attached\x20you\x20can\x20find\x20your\x20transcript\x20file.\x20\x0a\x0aRegards.\x20\x0a\x0a','read','30px','text','params','createVidaooSession','createdAt','parseSearch','fullname','isNumeric','debug','tag','auth','compact','toString','filename','ChatMessage','chat_messages','pick','i.id','$lte','from','c.phone','format','secure','parse','select','attachmentUpload','rawAttributes','attachments','customerPort','attachmentDownload','mkdirSync','user_has_chat_interactions','Error\x20in\x20Vidaoo\x20configuration','find','describe','Messages','field','DESC','i.ChatWebsiteId\x20IS\x20NULL','c.mobile','like','getChatWebsites','osName','null','Tag','u.fullname','ids','SendMail','squel','downloadInteraction.html','path','status','originalname','sort','getFullTextValue','api','website_alias','forEach','send','order','type','undefined','map','./chatInteraction.socket','agent_alias','i.*','u.id\x20=\x20ui.UserId','model','Attachment','\x27\x27\x27\x27','`unreadMessages`\x20=\x200','replace','lastName','name','POST','a.key','Tags','unreadMessages','../../components/parsers/advancedSearch','length','createWriteStream','omit','server/files/chat/upload/','out','root','CmContact','buildExpression','intersection','https://api-vidaoo.xcally.com/api/v1/sessions','views','customer','service','Owner','user','agent_fullname','User','i.ChatWebsiteId\x20IN\x20?','transcript-%d-%s.zip','json','destroy','request\x20sent','some','existsSync','merge','TagIds','includeAgent','ChatInteraction','show','offset','%s%d','../../rediscache','ChatInteractionId','tools_tags','unlinkSync','isEmpty','Chat','Account','util','catch','setTags','closed','Account.key','isArray','follow','expr','create','10px','body','customUpdate','host','Mail\x20Transcript','limit','nolimit','rows','addTags','request','unix','Users','sequelize','fields','a.id\x20=\x20i.ChatWebsiteId','getMessages','Interaction\x20already\x20assigned','transcript-','attachId','sendStatus','html-pdf','it.ChatInteractionId\x20=\x20i.id','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','transcript-%s.txt','UserId','color','pathTranscript','tmp','sendMail','\x22%s\x22\x20<%s>','include','MailAccount','Contact','YYYY-MM-DD','findOne','stringify','having','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','file','basename','journey','includeAll','Contact.email','request-promise-native','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','authentication','ejs','users','server','Account.mandatoryDisposition','chat_websites','.pdf','value','YYYY-MM-DD\x20HH:mm:ss','start','findAll','end','removeTags','Unauthorized','filters','`\x20=\x200','`\x20>\x200','../../config/environment','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','join','c.lastName','resolve','customerIp','info','`unreadMessages`\x20>\x200','now','appendFileSync','options','set','query','index','MM/DD/YYYY\x20HH:mm:ss','union','N.A.','SELECT','update','System','email','abandonInteraction,\x20%s,\x20%s,\x20%s','vidaooEscalation','direction','browserName','all','files','tail','o.internal','client','mimetype','split','ChatInteraction,\x20%s,\x20%s','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','left_join','get'];(function(_0x132b6d,_0x17df87){const _0x1516dd=function(_0x2bb5b0){while(--_0x2bb5b0){_0x132b6d['push'](_0x132b6d['shift']());}};_0x1516dd(++_0x17df87);}(a66_0x17df,0x1d6));const a66_0x1516=function(_0x132b6d,_0x17df87){_0x132b6d=_0x132b6d-0x0;let _0x1516dd=a66_0x17df[_0x132b6d];return _0x1516dd;};const _0x2e43b2=a66_0x1516;'use strict';const pdf=require(_0x2e43b2('0x18')),rimraf=require('rimraf'),zipdir=require('zip-dir'),rp=require(_0x2e43b2('0x2f')),moment=require('moment'),util=require(_0x2e43b2('0x119')),path=require(_0x2e43b2('0xd6')),ejs=require(_0x2e43b2('0x32')),fs=require('fs'),_=require('lodash'),squel=require(_0x2e43b2('0xd4')),{getSocket}=require(_0x2e43b2('0x112')),qs=require('../../components/parsers/qs'),as=require(_0x2e43b2('0xf2')),logger=require(_0x2e43b2('0x88'))(_0x2e43b2('0xdb')),config=require(_0x2e43b2('0x42')),db=require('../../mysqldb')['db'],{Op,ValidationError,QueryTypes}=require(_0x2e43b2('0x10')),socket=getSocket();require(_0x2e43b2('0xe3'))['register'](socket);const jayson=require('jayson/promise'),client=jayson[_0x2e43b2('0x5f')]['http']({'port':0x232b}),client9004=jayson[_0x2e43b2('0x5f')][_0x2e43b2('0x9d')]({'port':0x232c});function respondWithRpcPromise(_0x2bb5b0,_0x335fb7,_0x36df7f,_0x1bda9b){return new Promise(function(_0x38dc20,_0x58c643){const _0x3318b4=a66_0x1516,_0x5bcd8e=_0x1bda9b||client;return _0x5bcd8e[_0x3318b4('0xd')](_0x2bb5b0,_0x36df7f)[_0x3318b4('0x8f')](function(_0x188c4c){const _0x3ed578=_0x3318b4;logger[_0x3ed578('0x48')](_0x3ed578('0x62'),_0x335fb7,_0x3ed578('0x108')),logger[_0x3ed578('0xac')]('ChatInteraction,\x20%s,\x20%s,\x20%s',_0x335fb7,_0x3ed578('0x108'),JSON[_0x3ed578('0x27')](_0x188c4c));if(_0x188c4c[_0x3ed578('0x7e')]){if(_0x188c4c['error']['code']===0x1f4)return logger['error'](_0x3ed578('0x62'),_0x335fb7,_0x188c4c['error'][_0x3ed578('0x93')]),_0x58c643(_0x188c4c[_0x3ed578('0x7e')][_0x3ed578('0x93')]);return logger[_0x3ed578('0x7e')](_0x3ed578('0x62'),_0x335fb7,_0x188c4c[_0x3ed578('0x7e')][_0x3ed578('0x93')]),_0x38dc20(_0x188c4c[_0x3ed578('0x7e')][_0x3ed578('0x93')]);}else logger[_0x3ed578('0x48')](_0x3ed578('0x62'),_0x335fb7,_0x3ed578('0x108')),_0x38dc20(_0x188c4c['result'][_0x3ed578('0x93')]);})[_0x3318b4('0x11a')](function(_0xc99ddc){const _0x271c78=_0x3318b4;logger[_0x271c78('0x7e')](_0x271c78('0x62'),_0x335fb7,_0xc99ddc),_0x58c643(_0xc99ddc);});});}function respondWithStatusCode(_0x2493f3,_0x4221c7){return _0x4221c7=_0x4221c7||0xcc,function(_0x2c81af){const _0x1c8fb7=a66_0x1516;if(_0x2c81af)return _0x2493f3[_0x1c8fb7('0x17')](_0x4221c7);return _0x2493f3[_0x1c8fb7('0xd7')](_0x4221c7)[_0x1c8fb7('0x3c')]();};}function respondWithResult(_0x584ada,_0x2c66e7){return _0x2c66e7=_0x2c66e7||0xc8,function(_0x36c425){const _0x3afe07=a66_0x1516;if(_0x36c425)return _0x584ada['status'](_0x2c66e7)[_0x3afe07('0x106')](_0x36c425);};}function respondWithFilteredResult(_0x260d0b,_0x164f73){return function(_0x372d5a){const _0x37d9a2=a66_0x1516;if(_0x372d5a){const _0x561561=_0x372d5a['count'],_0x3fe2a2=_0x164f73[_0x37d9a2('0x110')];let _0x48608e=_0x164f73[_0x37d9a2('0x110')]+_0x164f73[_0x37d9a2('0x9')],_0x15316f;return _0x48608e>=_0x561561?(_0x48608e=_0x561561,_0x15316f=0xc8):_0x15316f=0xce,_0x260d0b[_0x37d9a2('0xd7')](_0x15316f),_0x260d0b[_0x37d9a2('0x4d')]('Content-Range',_0x3fe2a2+'-'+_0x48608e+'/'+_0x561561)[_0x37d9a2('0x106')](_0x372d5a);}return null;};}function saveUpdates(_0x17b0f2){return function(_0x3cb024){const _0x2ce987=a66_0x1516;if(_0x3cb024)return _0x3cb024[_0x2ce987('0x54')](_0x17b0f2)['then'](function(_0x126654){return _0x126654;});return null;};}function removeEntity(_0x2f126f){return function(_0x41082c){const _0x173e1c=a66_0x1516;if(_0x41082c)return _0x41082c['destroy']()[_0x173e1c('0x8f')](function(){const _0x536c86=_0x173e1c;_0x2f126f[_0x536c86('0xd7')](0xcc)[_0x536c86('0x3c')]();});};}function handleEntityNotFound(_0x1e70a6){return function(_0xb859dc){return!_0xb859dc&&_0x1e70a6['sendStatus'](0x194),_0xb859dc;};}function handleError(_0x5c9746,_0x2a8180){return _0x2a8180=_0x2a8180||0x1f4,function(_0x2497e3){const _0x34543a=a66_0x1516;logger['error'](_0x2497e3['stack']),_0x2497e3[_0x34543a('0xed')]&&delete _0x2497e3[_0x34543a('0xed')],_0x5c9746[_0x34543a('0xd7')](_0x2a8180)[_0x34543a('0xde')](_0x2497e3);};}function getInteractionUsers(_0x5692e4,_0x23bd29){return new Promise(function(_0x24bd5b,_0x4d20c6){const _0x3af0b5=a66_0x1516;try{_0x23bd29[_0x5692e4['id']]&&(_0x5692e4[_0x3af0b5('0xf')]=_[_0x3af0b5('0xe2')](_0x23bd29[_0x5692e4['id']],function(_0x1f26c5){return{'id':_0x1f26c5['id'],'fullname':_0x1f26c5['fullname']};}));}catch(_0x1c0949){_0x4d20c6(_0x1c0949);}_0x24bd5b(_0x5692e4);});}function getInteractionTags(_0x2e672,_0x28db76){return new Promise(function(_0x41cdec,_0x222178){const _0x15d8dd=a66_0x1516;try{_0x2e672[_0x15d8dd('0x10c')]&&(_0x2e672[_0x15d8dd('0xf0')]=[],_0x2e672[_0x15d8dd('0x10c')][_0x15d8dd('0x61')](',')['forEach'](function(_0xb81274){const _0x474b6b=_0x15d8dd;_0x2e672['Tags'][_0x474b6b('0x95')](_0x28db76[_0xb81274]);})),delete _0x2e672[_0x15d8dd('0x10c')];}catch(_0x45cf19){_0x222178(_0x45cf19);}_0x41cdec(_0x2e672);});}function updateChatInteraction(_0x26b5e3,_0x20c6c9,_0x43f627){return new Promise(function(_0x3869e9,_0x5e58ba){const _0x3b7fe9=a66_0x1516;return getInteractionUsers(_0x26b5e3,_0x43f627)[_0x3b7fe9('0x8f')](function(_0x467dec){return getInteractionTags(_0x467dec,_0x20c6c9);})[_0x3b7fe9('0x8f')](function(_0xfa65d2){_0x3869e9(_0xfa65d2);})[_0x3b7fe9('0x11a')](function(_0x1d4563){_0x5e58ba(_0x1d4563);});});}exports[_0x2e43b2('0x4f')]=function(_0xb84a1a,_0x1d9701){const _0x462e18=_0x2e43b2,_0x5ba799={},_0x3bdc02={},_0x2c5b3c={'count':0x0,'rows':[]},_0x5c1c90=_[_0x462e18('0xe2')](db[_0x462e18('0x10e')][_0x462e18('0xbe')],function(_0x4d0f26){const _0x27cdc8=_0x462e18;return{'name':_0x4d0f26[_0x27cdc8('0x90')],'type':_0x4d0f26[_0x27cdc8('0xe0')][_0x27cdc8('0x7f')]};});_0x3bdc02[_0x462e18('0xe7')]=_[_0x462e18('0xe2')](_0x5c1c90,_0x462e18('0xed')),_0x3bdc02[_0x462e18('0x4e')]=_[_0x462e18('0x70')](_0xb84a1a[_0x462e18('0x4e')]),_0x3bdc02[_0x462e18('0x3f')]=_[_0x462e18('0xfb')](_0x3bdc02[_0x462e18('0xe7')],_0x3bdc02[_0x462e18('0x4e')]),_0x5ba799[_0x462e18('0x6c')]=_[_0x462e18('0xfb')](_0x3bdc02[_0x462e18('0xe7')],qs[_0x462e18('0x11')](_0xb84a1a[_0x462e18('0x4e')][_0x462e18('0x11')])),_0x5ba799[_0x462e18('0x6c')]=_0x5ba799[_0x462e18('0x6c')][_0x462e18('0xf3')]?_0x5ba799[_0x462e18('0x6c')]:_0x3bdc02[_0x462e18('0xe7')];typeof _0xb84a1a[_0x462e18('0x4e')]['nolimit']===_0x462e18('0xe1')&&(_0x5ba799[_0x462e18('0x9')]=qs['limit'](_0xb84a1a[_0x462e18('0x4e')][_0x462e18('0x9')]),_0x5ba799[_0x462e18('0x110')]=qs[_0x462e18('0x110')](_0xb84a1a[_0x462e18('0x4e')][_0x462e18('0x110')]));_0x5ba799['order']=qs[_0x462e18('0xd9')](_0xb84a1a['query'][_0x462e18('0xd9')]),_0x5ba799[_0x462e18('0x66')]=qs[_0x462e18('0x3f')](_[_0x462e18('0xb4')](_0xb84a1a[_0x462e18('0x4e')],_0x3bdc02['filters']),_0x5c1c90);let _0x49a070=[];const _0x18599b=squel[_0x462e18('0xbc')]()[_0x462e18('0xc8')]('id')['field'](_0x462e18('0xed'))[_0x462e18('0xc8')](_0x462e18('0x1d'))[_0x462e18('0xb7')](_0x462e18('0x114')),_0xe4af8c=squel[_0x462e18('0xbc')]()[_0x462e18('0xc8')]('u.id')[_0x462e18('0xc8')](_0x462e18('0xd1'))['field']('ui.ChatInteractionId')[_0x462e18('0xb7')](_0x462e18('0xc3'),'ui')['left_join'](_0x462e18('0x33'),'u',_0x462e18('0xe6')),_0x272b5e=squel[_0x462e18('0xbc')]()[_0x462e18('0xb7')](_0x462e18('0x96'),'i')[_0x462e18('0x64')](_0x462e18('0x75'),'c',_0x462e18('0x43'))[_0x462e18('0x64')](_0x462e18('0x33'),'o',_0x462e18('0x86'))[_0x462e18('0x64')](_0x462e18('0x36'),'a',_0x462e18('0x12'))['left_join'](_0x462e18('0xb3'),'me','me.ChatInteractionId\x20=\x20i.id')[_0x462e18('0x64')](_0x462e18('0x7a'),'it',_0x462e18('0x19'))[_0x462e18('0x64')](_0x462e18('0x114'),'t','t.id\x20=\x20it.TagId'),_0x11f62e=squel['expr']();let _0x5c0cf3=[];const _0x366a67=squel[_0x462e18('0x2')]();let _0x398142;if(_0xb84a1a[_0x462e18('0x4e')]['search']){_0x398142=as[_0x462e18('0xa9')](_0xb84a1a['query']['search']);const _0x3f39a7=_0x398142[_0x462e18('0x6a')];for(let _0x94498c=0x0;_0x94498c<_0x398142['conditions'][_0x462e18('0xf3')];_0x94498c++){const _0x2c5b60=_0x398142['conditions'][_0x94498c],_0x3113d4='i';let _0x7cc19f,_0x57a6c3=_[_0x462e18('0xc5')](_0x5c1c90,[_0x462e18('0xed'),_0x2c5b60[_0x462e18('0xc8')]]);if(!_0x57a6c3)switch(_0x2c5b60[_0x462e18('0xc8')]){case _0x462e18('0xf1'):_0x2c5b60[_0x462e18('0x38')]==0x1?_0x272b5e[_0x462e18('0x28')]('`'+_0x2c5b60[_0x462e18('0xc8')]+_0x462e18('0x40')):_0x272b5e[_0x462e18('0x28')]('`'+_0x2c5b60[_0x462e18('0xc8')]+_0x462e18('0x41'));break;case _0x462e18('0x24'):if(_0x2c5b60[_0x462e18('0x7c')]==='$substring'){if(_0x2c5b60[_0x462e18('0x38')][_0x462e18('0x61')]('\x20')[_0x462e18('0xf3')]>0x1)_0x11f62e[_0x3f39a7](_0x462e18('0x80'),qs[_0x462e18('0xda')](_0x2c5b60[_0x462e18('0x38')]),null);else{const _0x5b887d='%'+_0x2c5b60[_0x462e18('0x38')]+'%';_0x11f62e[_0x3f39a7]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x5b887d,_0x5b887d,_0x5b887d);}}else _0x57a6c3=_[_0x462e18('0xc5')](_0x5c1c90,[_0x462e18('0xed'),'ContactId']),_0x2c5b60['field']=_0x462e18('0x98'),_0x7cc19f=as['buildExpression'](_0x3113d4,_0x57a6c3[_0x462e18('0xe0')],_0x2c5b60),_0x11f62e[_0x3f39a7](_0x7cc19f[_0x462e18('0xa5')],_0x7cc19f[_0x462e18('0x38')][_0x462e18('0x3a')],_0x7cc19f['value'][_0x462e18('0x3c')]);break;case _0x462e18('0xd0'):{const _0x58d802=_0x2c5b60[_0x462e18('0x38')]['split'](',')['map'](function(_0x5186b5){return Number(_0x5186b5);});_0x58d802[_0x462e18('0xdd')](function(_0x21b63b){const _0x45dae2=_0x462e18;_0x366a67['or'](_0x45dae2('0x63'),'%,'+_0x21b63b+',%');}),_0x5c0cf3=_[_0x462e18('0x51')](_0x5c0cf3,_0x58d802);}break;case _0x462e18('0x103'):_0x2c5b60['operator']===_0x462e18('0xa1')?_0x11f62e[_0x3f39a7](_0x462e18('0x9e'),'%'+_0x2c5b60[_0x462e18('0x38')]+'%',null):(_0x57a6c3=_[_0x462e18('0xc5')](_0x5c1c90,[_0x462e18('0xed'),_0x462e18('0x1c')]),_0x2c5b60['field']='UserId',_0x7cc19f=as[_0x462e18('0xfa')](_0x3113d4,_0x57a6c3[_0x462e18('0xe0')],_0x2c5b60),_0x11f62e[_0x3f39a7](_0x7cc19f[_0x462e18('0xa5')],_0x7cc19f['value'][_0x462e18('0x3a')],_0x7cc19f['value'][_0x462e18('0x3c')]));break;case _0x462e18('0x5'):_0x7cc19f=as['buildExpression']('me',null,_0x2c5b60),_0x11f62e[_0x3f39a7](_0x7cc19f[_0x462e18('0xa5')],_0x7cc19f[_0x462e18('0x38')]['start'],_0x7cc19f['value'][_0x462e18('0x3c')]);break;}else _0x7cc19f=as[_0x462e18('0xfa')](_0x3113d4,_0x57a6c3[_0x462e18('0xe0')],_0x2c5b60),_0x11f62e[_0x3f39a7](_0x7cc19f[_0x462e18('0xa5')],_0x7cc19f[_0x462e18('0x38')][_0x462e18('0x3a')],_0x7cc19f['value'][_0x462e18('0x3c')]);}}else{const _0x432eb3=_(_0xb84a1a[_0x462e18('0x4e')])[_0x462e18('0x70')]()[_0x462e18('0xe2')](function(_0x4ba25a){const _0x41ae6a=_0x462e18;return _[_0x41ae6a('0x109')](_0x5c1c90,[_0x41ae6a('0xed'),_0x4ba25a])?_0x4ba25a:undefined;})[_0x462e18('0xaf')]()[_0x462e18('0x38')]();!_['isEmpty'](_0x432eb3)&&_0x432eb3[_0x462e18('0xdd')](function(_0x4b6e4){const _0x440827=_0x462e18;if(_0x4b6e4==='ChatWebsiteId')_0x272b5e[_0x440827('0x66')]('i.ChatWebsiteId\x20IN\x20?',[]['concat'](_0xb84a1a[_0x440827('0x4e')][_0x4b6e4]));else{if(_0x4b6e4===_0x440827('0xa8')){const _0x21d110=JSON[_0x440827('0xbb')](_0xb84a1a[_0x440827('0x4e')][_0x4b6e4])[_0x440827('0x83')],_0x59e567=JSON[_0x440827('0xbb')](_0xb84a1a[_0x440827('0x4e')][_0x4b6e4])[_0x440827('0xb6')];_0x272b5e[_0x440827('0x66')](_0x440827('0x29'),_0x21d110,_0x59e567);}else _0xb84a1a['query'][_0x4b6e4]===_0x440827('0xcf')?_0x272b5e[_0x440827('0x66')]('i.'+_0x4b6e4+_0x440827('0x6d')):_0x272b5e[_0x440827('0x66')]('i.'+_0x4b6e4+'\x20=\x20?',_0xb84a1a[_0x440827('0x4e')][_0x4b6e4]);}});_0xb84a1a['query']['read']&&(_0xb84a1a[_0x462e18('0x4e')][_0x462e18('0xa3')]==0x1?_0x272b5e[_0x462e18('0x28')](_0x462e18('0xea')):_0x272b5e['having'](_0x462e18('0x49')));_0xb84a1a[_0x462e18('0x4e')][_0x462e18('0xad')]&&(_0x5c0cf3=_[_0x462e18('0x0')](_0xb84a1a[_0x462e18('0x4e')]['tag'])?_0xb84a1a[_0x462e18('0x4e')][_0x462e18('0xad')]:new Array(_0xb84a1a['query'][_0x462e18('0xad')]),_0x5c0cf3[_0x462e18('0xdd')](function(_0x3f6ed3){const _0xaa4cec=_0x462e18;_0x366a67['or'](_0xaa4cec('0x63'),'%,'+_0x3f6ed3+',%');}));if(_0xb84a1a[_0x462e18('0x4e')]['filter']){const _0x2a2794=_0xb84a1a['query']['filter'][_0x462e18('0xeb')]('\x5c','\x5c\x5c')[_0x462e18('0xeb')]('\x27\x27',_0x462e18('0xe9'));qs[_0x462e18('0xab')](_0x2a2794)?_0x11f62e['or']('i.id\x20LIKE\x20?',_0x2a2794+'%'):_0x11f62e['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x462e18('0xda')](_0x2a2794))['or'](_0x462e18('0x1a'),_0x2a2794+'%');}}_0x272b5e[_0x462e18('0x66')](_0x11f62e),_0x272b5e['group'](_0x462e18('0xb5'));let _0x1dd63b={'type':QueryTypes[_0x462e18('0x53')],'raw':!![]};const _0x9895eb=_0x272b5e['clone']();_0x9895eb['field'](_0x462e18('0xb5')),_0x9895eb['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x462e18('0xf1')),_0x5ba799[_0x462e18('0xdf')]&&_0x5ba799[_0x462e18('0xdf')][_0x462e18('0xdd')](function(_0x2387e5){const _0x4ad62d=_0x462e18;_0x272b5e['order']('i.'+_0x2387e5[0x0],_0x2387e5[0x1]===_0x4ad62d('0xc9')?![]:!![]);}),!_[_0x462e18('0x116')](_0x5c0cf3)&&(_0x272b5e[_0x462e18('0x28')](_0x366a67),_0x9895eb[_0x462e18('0x66')](_0x462e18('0x71'),_0x5c0cf3)),Promise[_0x462e18('0x46')]()[_0x462e18('0x8f')](function(){const _0x2d81ca=_0x462e18;if(!_0x398142){if(_0xb84a1a[_0x2d81ca('0x4e')][_0x2d81ca('0x92')]||_0xb84a1a['query'][_0x2d81ca('0x2c')])return;_0x9895eb[_0x2d81ca('0x66')](_0x2d81ca('0x8c')),_0x272b5e[_0x2d81ca('0x66')](_0x2d81ca('0x8c'));return;}return _0xb84a1a[_0x2d81ca('0x101')][_0x2d81ca('0xcd')]({'attributes':['id'],'raw':!![]})[_0x2d81ca('0x8f')](function(_0x104f23){const _0x32caf9=_0x2d81ca;_[_0x32caf9('0x116')](_0x104f23)?(_0x9895eb[_0x32caf9('0x66')]('i.ChatWebsiteId\x20IS\x20NULL'),_0x272b5e['where'](_0x32caf9('0xca'))):(_0x9895eb[_0x32caf9('0x66')](_0x32caf9('0x104'),_[_0x32caf9('0xe2')](_0x104f23,'id')),_0x272b5e['where'](_0x32caf9('0x104'),_['map'](_0x104f23,'id')));});})[_0x462e18('0x8f')](function(){const _0xedd339=_0x462e18;db[_0xedd339('0x10')][_0xedd339('0x4e')](_0x9895eb['toString'](),_0x1dd63b)[_0xedd339('0x8f')](function(_0x375865){const _0x4b3eb9=_0xedd339;_0x2c5b3c['count']=_0x375865['length'];if(_0x2c5b3c[_0x4b3eb9('0x7d')]===0x0)return[];return db['sequelize'][_0x4b3eb9('0x4e')](_0x18599b[_0x4b3eb9('0xb0')](),_0x1dd63b)[_0x4b3eb9('0x8f')](function(_0x7766ca){const _0x3ad30c=_0x4b3eb9;_0x49a070=_['keyBy'](_0x7766ca,'id'),_0x1dd63b=_[_0x3ad30c('0x10b')](_0x1dd63b,{'model':db[_0x3ad30c('0x10e')],'mapToModel':!![],'raw':!![],'nest':!![]});_0xb84a1a[_0x3ad30c('0x4e')][_0x3ad30c('0x11')]?_0x5ba799[_0x3ad30c('0x6c')][_0x3ad30c('0xdd')](function(_0x54bb4a){const _0x537b5e=_0x3ad30c;_0x272b5e[_0x537b5e('0xc8')]('i.'+_0x54bb4a);}):(_0x272b5e[_0x3ad30c('0xc8')](_0x3ad30c('0x30'),_0x3ad30c('0xf1')),_0x272b5e[_0x3ad30c('0xc8')](_0x3ad30c('0xef'),_0x3ad30c('0x11d')),_0x272b5e[_0x3ad30c('0xc8')](_0x3ad30c('0x7b'),_0x3ad30c('0x35')),_0x272b5e['field'](_0x3ad30c('0xe5')),_0x272b5e[_0x3ad30c('0xc8')]('c.firstName','Contact.firstName'),_0x272b5e['field'](_0x3ad30c('0x45'),_0x3ad30c('0x67')),_0x272b5e[_0x3ad30c('0xc8')](_0x3ad30c('0x6e'),_0x3ad30c('0x2e')),_0x272b5e[_0x3ad30c('0xc8')](_0x3ad30c('0xb8'),_0x3ad30c('0x9b')),_0x272b5e[_0x3ad30c('0xc8')](_0x3ad30c('0xcb'),'Contact.mobile'),_0x272b5e['field']('c.fax','Contact.fax'),_0x272b5e['field'](_0x3ad30c('0x97'),'Owner.fullname'),_0x272b5e[_0x3ad30c('0xc8')](_0x3ad30c('0x5e'),'Owner.internal'),_0x272b5e[_0x3ad30c('0xc8')]('GROUP_CONCAT(DISTINCT\x20t.id)',_0x3ad30c('0x10c')));if(_0x5ba799['limit'])_0x272b5e[_0x3ad30c('0x9')](_0x5ba799[_0x3ad30c('0x9')]);if(_0x5ba799[_0x3ad30c('0x110')])_0x272b5e[_0x3ad30c('0x110')](_0x5ba799[_0x3ad30c('0x110')]);return db[_0x3ad30c('0x10')][_0x3ad30c('0x4e')](_0x272b5e[_0x3ad30c('0xb0')](),_0x1dd63b);})['then'](function(_0x15003c){const _0x57ec4c=_0x4b3eb9;return _0xe4af8c[_0x57ec4c('0x66')]('ui.ChatInteractionId\x20IN\x20?',_['map'](_0x15003c,'id')),db[_0x57ec4c('0x10')][_0x57ec4c('0x4e')](_0xe4af8c[_0x57ec4c('0xb0')](),_0x1dd63b)[_0x57ec4c('0x8f')](function(_0x3c9c6d){const _0x1e0a39=_0x57ec4c,_0x1c8c18=_[_0x1e0a39('0x91')](_0x3c9c6d,_0x1e0a39('0x113')),_0x5ccddf=[];return _0x15003c['forEach'](function(_0x7e1b42){_0x5ccddf['push'](updateChatInteraction(_0x7e1b42,_0x49a070,_0x1c8c18));}),Promise[_0x1e0a39('0x5b')](_0x5ccddf);});});})[_0xedd339('0x8f')](function(_0x2e95e7){const _0x4c2252=_0xedd339;return _0x2c5b3c[_0x4c2252('0xb')]=_0x2e95e7,_0x2c5b3c;})[_0xedd339('0x8f')](respondWithFilteredResult(_0x1d9701,_0x5ba799));})['catch'](handleError(_0x1d9701,null));},exports[_0x2e43b2('0x10f')]=function(_0x569913,_0x454305){const _0x22c3b5=_0x2e43b2;let _0x4985ea={'raw':![],'where':{'id':_0x569913[_0x22c3b5('0xa6')]['id']}};const _0x103a85={};return _0x103a85[_0x22c3b5('0xe7')]=_[_0x22c3b5('0x70')](db[_0x22c3b5('0x10e')][_0x22c3b5('0xbe')]),_0x103a85['query']=_[_0x22c3b5('0x70')](_0x569913['query']),_0x103a85[_0x22c3b5('0x3f')]=_[_0x22c3b5('0xfb')](_0x103a85[_0x22c3b5('0xe7')],_0x103a85[_0x22c3b5('0x4e')]),_0x4985ea['attributes']=_[_0x22c3b5('0xfb')](_0x103a85[_0x22c3b5('0xe7')],qs[_0x22c3b5('0x11')](_0x569913[_0x22c3b5('0x4e')][_0x22c3b5('0x11')])),_0x4985ea[_0x22c3b5('0x6c')]=_0x4985ea[_0x22c3b5('0x6c')][_0x22c3b5('0xf3')]?_0x4985ea['attributes']:_0x103a85[_0x22c3b5('0xe7')],_0x569913[_0x22c3b5('0x4e')][_0x22c3b5('0x2d')]&&(_0x4985ea[_0x22c3b5('0x22')]=[{'all':!![]}]),_0x4985ea=_[_0x22c3b5('0x10b')]({},_0x4985ea,_0x569913[_0x22c3b5('0x4c')]),db[_0x22c3b5('0x10e')]['findOne'](_0x4985ea)[_0x22c3b5('0x8f')](handleEntityNotFound(_0x454305,null))[_0x22c3b5('0x8f')](respondWithResult(_0x454305,null))[_0x22c3b5('0x11a')](handleError(_0x454305,null));},exports['create']=function(_0x1e6afb,_0x4b733b){const _0xb2118c=_0x2e43b2;return db[_0xb2118c('0x10e')][_0xb2118c('0x3')](_0x1e6afb[_0xb2118c('0x5')],{})[_0xb2118c('0x8f')](respondWithResult(_0x4b733b,0xc9))[_0xb2118c('0x11a')](handleError(_0x4b733b,null));},exports['update']=function(_0x551f06,_0x4d1439){const _0x513e83=_0x2e43b2;return _0x551f06[_0x513e83('0x5')]['id']&&delete _0x551f06['body']['id'],db[_0x513e83('0x10e')][_0x513e83('0x26')]({'where':{'id':_0x551f06[_0x513e83('0xa6')]['id']}})['then'](handleEntityNotFound(_0x4d1439,null))[_0x513e83('0x8f')](saveUpdates(_0x551f06[_0x513e83('0x5')],null))[_0x513e83('0x8f')](respondWithResult(_0x4d1439,null))[_0x513e83('0x11a')](handleError(_0x4d1439,null));},exports[_0x2e43b2('0x107')]=function(_0x29d4ef,_0x297eac){const _0x1f395c=_0x2e43b2;return db[_0x1f395c('0x10e')][_0x1f395c('0x26')]({'where':{'id':_0x29d4ef[_0x1f395c('0xa6')]['id']}})[_0x1f395c('0x8f')](handleEntityNotFound(_0x297eac,null))['then'](removeEntity(_0x297eac,null))[_0x1f395c('0x11a')](handleError(_0x297eac,null));},exports['describe']=function(_0x10cd6c,_0x184660){const _0x38fbfc=_0x2e43b2;return db[_0x38fbfc('0x10e')][_0x38fbfc('0xc6')]()[_0x38fbfc('0x8f')](respondWithResult(_0x184660,null))[_0x38fbfc('0x11a')](handleError(_0x184660,null));},exports[_0x2e43b2('0xa7')]=function(_0x2e328f,_0x14f06e){const _0x7a6567=_0x2e43b2,_0x5924da=_0x2e328f[_0x7a6567('0xa6')]['id'];let _0x243b29,_0x35d4c1,_0x3da793;return db['ChatInteraction'][_0x7a6567('0x26')]({'where':{'id':_0x5924da}})[_0x7a6567('0x8f')](function(_0x2d1a16){const _0x58289a=_0x7a6567;return _0x243b29=_0x2d1a16,db['ChatWebsite'][_0x58289a('0x26')]({'where':{'id':_0x2d1a16[_0x58289a('0x92')]},'attributes':['id',_0x58289a('0x9a'),_0x58289a('0x58')],'raw':!![]});})[_0x7a6567('0x8f')](function(_0x5b7c04){const _0x36df4e=_0x7a6567;if(_0x5b7c04&&_0x5b7c04[_0x36df4e('0x9a')]&&_0x5b7c04['vidaooEscalation']){_0x35d4c1=_0x5b7c04;const _0x465b1a={'rejectUnauthorized':![],'method':_0x36df4e('0xee'),'uri':_0x36df4e('0xfc'),'headers':{'X-APIKEY':_0x5b7c04[_0x36df4e('0x9a')]},'body':{'name':'MotionCWB:'+_0x5924da},'redirect':_0x36df4e('0x1'),'json':!![]};return rp(_0x465b1a);}else throw new ValidationError(_0x36df4e('0xc4'));})['then'](function(_0x14d8a3){const _0xfb81b2=_0x7a6567;_0x3da793=_0x14d8a3;if(_0x3da793['id']){const _0x58ea62={'body':_0x3da793[_0xfb81b2('0x9c')],'ChatWebsiteId':_0x35d4c1['id'],'ChatInteractionId':_0x243b29['id'],'direction':_0xfb81b2('0xf7'),'UserId':_0x2e328f[_0xfb81b2('0x101')]['id']};return db[_0xfb81b2('0xb2')][_0xfb81b2('0x3')](_0x58ea62,{});}else throw new ValidationError(_0xfb81b2('0x78'));})['then'](function(){return _0x243b29['update']({'vidaooSessionId':_0x3da793['id']});})[_0x7a6567('0x8f')](respondWithResult(_0x14f06e,null))[_0x7a6567('0x11a')](handleError(_0x14f06e,null));},exports[_0x2e43b2('0x6')]=function(_0x37014a,_0xbf797d){const _0x43997c=_0x2e43b2;return _0x37014a[_0x43997c('0x5')]['id']&&delete _0x37014a[_0x43997c('0x5')]['id'],db['ChatInteraction']['findOne']({'where':{'id':_0x37014a[_0x43997c('0xa6')]['id']}})['then'](handleEntityNotFound(_0xbf797d,null))[_0x43997c('0x8f')](saveUpdates(_0x37014a['body'],null))[_0x43997c('0x8f')](respondWithResult(_0xbf797d,null))[_0x43997c('0x11a')](handleError(_0xbf797d,null));},exports[_0x2e43b2('0x73')]=function(_0x289062,_0x4d56a0){const _0x4081ab=_0x2e43b2;return _0x289062['body']['id']&&delete _0x289062[_0x4081ab('0x5')]['id'],db[_0x4081ab('0x10e')][_0x4081ab('0x26')]({'where':{'id':_0x289062[_0x4081ab('0xa6')]['id']}})['then'](function(_0x47148d){const _0x436c1f=_0x4081ab;if(!_0x47148d)logger[_0x436c1f('0x7e')](_0x436c1f('0x57'),_0x436c1f('0x73'),0x194,_0x436c1f('0x94')),_0x4d56a0['sendStatus'](0x194);else{if(_0x47148d[_0x436c1f('0x1c')])throw new ValidationError(_0x436c1f('0x14'));}return _0x47148d;})[_0x4081ab('0x8f')](function(_0x1d7003){const _0x426bf0=_0x4081ab;if(_0x1d7003)return _0x1d7003[_0x426bf0('0x54')]({'closed':_0x289062[_0x426bf0('0x5')][_0x426bf0('0x11c')],'disposition':_0x289062[_0x426bf0('0x5')][_0x426bf0('0x79')]})[_0x426bf0('0x8f')](function(_0x57ce55){return _0x57ce55;});})['then'](function(){const _0x2117b4=_0x4081ab;return respondWithRpcPromise(_0x2117b4('0x8b'),'abandon',_0x289062[_0x2117b4('0x5')],client9004);})['then'](respondWithResult(_0x4d56a0,null))[_0x4081ab('0x11a')](handleError(_0x4d56a0,null));},exports[_0x2e43b2('0xbd')]=function(_0x1e13bc,_0xc8a06a){const _0x4cc900=_0x2e43b2;return _0x1e13bc[_0x4cc900('0x5')][_0x4cc900('0xed')]=_0x1e13bc['file'][_0x4cc900('0xd8')],_0x1e13bc[_0x4cc900('0x5')][_0x4cc900('0x2b')]=_0x1e13bc[_0x4cc900('0x2a')][_0x4cc900('0xb1')],_0x1e13bc[_0x4cc900('0x5')][_0x4cc900('0xe0')]=_0x1e13bc[_0x4cc900('0x2a')][_0x4cc900('0x60')],db['Attachment'][_0x4cc900('0x3')](_0x1e13bc[_0x4cc900('0x5')])[_0x4cc900('0x8f')](respondWithResult(_0xc8a06a,0xc9))[_0x4cc900('0x11a')](handleError(_0xc8a06a,null));},exports[_0x2e43b2('0xc1')]=function(_0x4a299e,_0xec311){const _0x21c5bf=_0x2e43b2;return db[_0x21c5bf('0x10e')][_0x21c5bf('0x26')]({'where':{'id':_0x4a299e['params']['id']},'raw':!![]})[_0x21c5bf('0x8f')](handleEntityNotFound(_0xec311,null))[_0x21c5bf('0x8f')](function(_0x1f6a1e){const _0x3a48e1=_0x21c5bf;if(_0x1f6a1e){if(_0x1f6a1e[_0x3a48e1('0x11c')])return _0xec311[_0x3a48e1('0xd7')](0x193)[_0x3a48e1('0x106')]({'status':0x193,'message':_0x3a48e1('0x3e')});return db[_0x3a48e1('0xe8')][_0x3a48e1('0x26')]({'where':{'id':_0x4a299e[_0x3a48e1('0x4e')][_0x3a48e1('0x16')]},'raw':!![]})['then'](handleEntityNotFound(_0xec311,null));}})[_0x21c5bf('0x8f')](function(_0x5ca443){const _0x157d12=_0x21c5bf;if(_0x5ca443)return _0xec311['download'](path[_0x157d12('0x44')](config[_0x157d12('0xf8')],_0x157d12('0x87'),_0x5ca443['basename']));})[_0x21c5bf('0x11a')](handleError(_0xec311,null));},exports[_0x2e43b2('0x89')]=function(_0x2b8815,_0x3f0d36){const _0x5938dc=_0x2e43b2;let _0x468e37=null,_0x2115a7=null,_0x40af0e=null;return _0x2b8815['body']['id']&&delete _0x2b8815[_0x5938dc('0x5')]['id'],_0x2b8815['body'][_0x5938dc('0x76')]&&(_0x40af0e=path[_0x5938dc('0x44')](config[_0x5938dc('0xf8')],_0x5938dc('0xf6'),util[_0x5938dc('0xb9')](_0x5938dc('0x1b'),Date[_0x5938dc('0x4a')]())),_0x2b8815['body'][_0x5938dc('0x1e')]=_0x40af0e),db[_0x5938dc('0x10e')][_0x5938dc('0x26')]({'where':{'id':_0x2b8815[_0x5938dc('0xa6')]['id']},'include':[{'model':db[_0x5938dc('0xb2')],'as':_0x5938dc('0xc7'),'include':[{'model':db['User'],'as':_0x5938dc('0x103')}]}]})[_0x5938dc('0x8f')](handleEntityNotFound(_0x3f0d36,null))[_0x5938dc('0x8f')](saveUpdates(_0x2b8815[_0x5938dc('0x5')],null))[_0x5938dc('0x8f')](function(_0x346c60){const _0x1f8704=_0x5938dc;if(_0x346c60)return _0x468e37=_0x346c60,db['ChatWebsite'][_0x1f8704('0x26')]({'where':{'id':_0x468e37[_0x1f8704('0x92')]}});})['then'](function(_0x45b519){const _0x2e2a9c=_0x5938dc;if(_0x45b519)return _0x2115a7=_0x45b519,db[_0x2e2a9c('0xf9')]['findOne']({'where':{'id':_0x468e37[_0x2e2a9c('0x98')]}});})[_0x5938dc('0x8f')](function(_0x4d02de){const _0xcff117=_0x5938dc;if(_0x4d02de){if(_0x40af0e){let _0x2efc7f=null;for(let _0x5bd8e2=0x1;_0x5bd8e2<_0x468e37[_0xcff117('0xc7')]['length'];++_0x5bd8e2){_0x2efc7f=_0x468e37[_0xcff117('0xc7')][_0x5bd8e2];let _0x2575df=_0x2efc7f['UserId']?util[_0xcff117('0xb9')]('%s%d',_0x2115a7[_0xcff117('0x72')],_0x2efc7f[_0xcff117('0x1c')]):_0xcff117('0x55');const _0x4abdbc=_0x2b8815[_0xcff117('0x5')][_0xcff117('0xfe')]||util['format'](_0xcff117('0x111'),'Visitor',_0x2efc7f[_0xcff117('0x98')]);switch(_0x2115a7[_0xcff117('0x99')]){case _0xcff117('0xdc'):_0x2575df=_0x2efc7f['UserId']?util['format'](_0xcff117('0x111'),_0x2115a7[_0xcff117('0x72')],_0x2efc7f['UserId']):_0xcff117('0x55');break;case _0xcff117('0xe4'):_0x2575df=_0x2efc7f[_0xcff117('0x1c')]?_0x2efc7f[_0xcff117('0x103')][_0xcff117('0x84')]||_0x2efc7f[_0xcff117('0x103')][_0xcff117('0xaa')]:'System';break;case _0xcff117('0x102'):_0x2575df=_0x2efc7f['UserId']?_0x2efc7f[_0xcff117('0x103')][_0xcff117('0xaa')]:_0xcff117('0x55');break;default:_0x2575df=_0x2efc7f[_0xcff117('0x1c')]?util[_0xcff117('0xb9')](_0xcff117('0x111'),_0x2115a7[_0xcff117('0x72')],_0x2efc7f[_0xcff117('0x1c')]):_0xcff117('0x55');}const _0x14fbb6=util['format'](_0xcff117('0x8a'),moment(_0x2efc7f[_0xcff117('0xa8')])[_0xcff117('0xb9')](_0xcff117('0x50')),_0x2efc7f[_0xcff117('0x59')]==='in'?_0x4abdbc:_0x2575df,_0x2efc7f['body']);!_0x2efc7f['secret']&&fs[_0xcff117('0x4b')](_0x40af0e,_0x14fbb6);}return db[_0xcff117('0x23')][_0xcff117('0x26')]({'where':{'service':!![]},'include':[{'model':db['MailServerOut'],'as':_0xcff117('0x74'),'raw':!![]}]});}}})[_0x5938dc('0x8f')](function(_0x5798b9){const _0x3efaff=_0x5938dc;if(_0x5798b9&&_0x5798b9[_0x3efaff('0x74')]&&_0x2b8815[_0x3efaff('0x5')]){const _0x1833fb={'tls':{'rejectUnauthorized':![]}};return _0x5798b9[_0x3efaff('0x74')][_0x3efaff('0xff')]?_0x1833fb[_0x3efaff('0xff')]=_0x5798b9[_0x3efaff('0x74')][_0x3efaff('0xff')]:(_0x1833fb[_0x3efaff('0x7')]=_0x5798b9[_0x3efaff('0x74')]['host'],_0x1833fb[_0x3efaff('0xa0')]=_0x5798b9['Smtp'][_0x3efaff('0xa0')],_0x1833fb[_0x3efaff('0xba')]=_0x5798b9[_0x3efaff('0x74')][_0x3efaff('0xba')]),_0x5798b9['Smtp'][_0x3efaff('0x31')]&&(_0x1833fb[_0x3efaff('0xae')]={'user':_0x5798b9[_0x3efaff('0x74')][_0x3efaff('0x101')],'pass':_0x5798b9[_0x3efaff('0x74')]['pass']}),respondWithRpcPromise(_0x3efaff('0xd3'),_0x3efaff('0x20'),{'account':_0x1833fb,'message':{'from':util[_0x3efaff('0xb9')](_0x3efaff('0x21'),_0x5798b9[_0x3efaff('0xed')],_0x5798b9[_0x3efaff('0x56')]||_0x5798b9[_0x3efaff('0x74')][_0x3efaff('0x101')]),'to':_0x2b8815[_0x3efaff('0x5')][_0x3efaff('0x76')],'subject':_0x3efaff('0x8'),'text':util[_0x3efaff('0xb9')](_0x3efaff('0xa2'),_0x2b8815[_0x3efaff('0x5')]['mailTranscript']),'attachments':[{'path':_0x40af0e}]}})[_0x3efaff('0x8f')](function(){return _0x468e37;})[_0x3efaff('0x11a')](function(_0x4c050d){const _0x3b7b92=_0x3efaff;console[_0x3b7b92('0x7e')](_0x4c050d);});}else return _0x468e37;})[_0x5938dc('0x8f')](respondWithStatusCode(_0x3f0d36,0xc8))[_0x5938dc('0x11a')](handleError(_0x3f0d36,null));},exports['addMessage']=function(_0x2f9ae9,_0x4cf999){const _0x38c40b=_0x2e43b2;return db[_0x38c40b('0xb2')][_0x38c40b('0x26')]({'where':{'id':_0x2f9ae9[_0x38c40b('0xa6')]['id']}})[_0x38c40b('0x8f')](function(_0x2edbff){const _0x215273=_0x38c40b;if(_0x2edbff)return _0x2edbff['addMessage'](_0x2f9ae9['body']['ids'],{'through':_[_0x215273('0xf5')](_0x2f9ae9[_0x215273('0x5')],['ids','id'])});})[_0x38c40b('0x8f')](respondWithResult(_0x4cf999,null))[_0x38c40b('0x11a')](handleError(_0x4cf999,null));},exports[_0x2e43b2('0x13')]=function(_0x24589d,_0x2deaef){const _0x1eab70=_0x2e43b2;let _0xf12897={'raw':![],'where':{}};const _0x16d0ce={},_0x59d47a={'count':0x0,'rows':[]};return db['ChatInteraction'][_0x1eab70('0x26')]({'where':{'id':_0x24589d[_0x1eab70('0xa6')]['id']}})[_0x1eab70('0x8f')](handleEntityNotFound(_0x2deaef,null))[_0x1eab70('0x8f')](function(_0x33fd0e){const _0x5a44cd=_0x1eab70;if(_0x33fd0e){_0x16d0ce[_0x5a44cd('0xe7')]=_[_0x5a44cd('0x70')](db['ChatMessage'][_0x5a44cd('0xbe')]),_0x16d0ce[_0x5a44cd('0x4e')]=_[_0x5a44cd('0x70')](_0x24589d[_0x5a44cd('0x4e')]),_0x16d0ce[_0x5a44cd('0x3f')]=_[_0x5a44cd('0xfb')](_0x16d0ce['model'],_0x16d0ce['query']),_0xf12897[_0x5a44cd('0x6c')]=_[_0x5a44cd('0xfb')](_0x16d0ce[_0x5a44cd('0xe7')],qs[_0x5a44cd('0x11')](_0x24589d[_0x5a44cd('0x4e')][_0x5a44cd('0x11')])),_0xf12897[_0x5a44cd('0x6c')]=_0xf12897[_0x5a44cd('0x6c')][_0x5a44cd('0xf3')]?_0xf12897['attributes']:_0x16d0ce[_0x5a44cd('0xe7')];typeof _0x24589d[_0x5a44cd('0x4e')][_0x5a44cd('0xa')]===_0x5a44cd('0xe1')&&(_0xf12897[_0x5a44cd('0x9')]=qs[_0x5a44cd('0x9')](_0x24589d[_0x5a44cd('0x4e')][_0x5a44cd('0x9')]),_0xf12897[_0x5a44cd('0x110')]=qs[_0x5a44cd('0x110')](_0x24589d['query'][_0x5a44cd('0x110')]));_0xf12897['order']=qs['sort'](_0x24589d[_0x5a44cd('0x4e')]['sort']),_0xf12897[_0x5a44cd('0x66')]=qs[_0x5a44cd('0x3f')](_[_0x5a44cd('0xb4')](_0x24589d[_0x5a44cd('0x4e')],_0x16d0ce['filters'])),_0xf12897['where'][_0x5a44cd('0x113')]=_0x33fd0e['id'];_0x24589d[_0x5a44cd('0x4e')]['filter']&&(_0xf12897['where']=_[_0x5a44cd('0x10b')](_0xf12897[_0x5a44cd('0x66')],{[Op['or']]:_[_0x5a44cd('0xe2')](_0xf12897['attributes'],function(_0xb973c0){const _0x3d40ad=_0x5a44cd,_0x2f080f={};return _0x2f080f[_0xb973c0]={[Op[_0x3d40ad('0xcc')]]:'%'+_0x24589d[_0x3d40ad('0x4e')]['filter']+'%'},_0x2f080f;})}));if(_0x24589d[_0x5a44cd('0x4e')]['$gte']){const _0xe4f389=_0x24589d[_0x5a44cd('0x4e')][_0x5a44cd('0x83')]['split'](','),_0x22c941={};_0x22c941[_0xe4f389[0x0]]={[Op[_0x5a44cd('0x8e')]]:moment(_0xe4f389[0x1])[_0x5a44cd('0xb9')](_0x5a44cd('0x39'))},_0xf12897[_0x5a44cd('0x66')]=_[_0x5a44cd('0x10b')](_0xf12897['where'],_0x22c941);}return _0xf12897=_['merge']({},_0xf12897,_0x24589d['options']),db['ChatMessage'][_0x5a44cd('0x7d')]({'where':_0xf12897[_0x5a44cd('0x66')]})[_0x5a44cd('0x8f')](function(_0x33fc6a){const _0x4db962=_0x5a44cd;return _0x59d47a[_0x4db962('0x7d')]=_0x33fc6a,_0x24589d[_0x4db962('0x4e')][_0x4db962('0x2d')]&&(_0xf12897[_0x4db962('0x22')]=[{'all':!![]}]),db[_0x4db962('0xb2')][_0x4db962('0x3b')](_0xf12897);})[_0x5a44cd('0x8f')](function(_0xf414b){return _0x59d47a['rows']=_0xf414b,_0x59d47a;});}})[_0x1eab70('0x8f')](respondWithFilteredResult(_0x2deaef,_0xf12897))[_0x1eab70('0x11a')](handleError(_0x2deaef,null));},exports[_0x2e43b2('0x85')]=function(_0x562b4b,_0x50d793){const _0x439a7f=_0x2e43b2;let _0x1279ef={'where':{}};const _0x24c949={},_0x69cafb={'count':0x0,'rows':[]};return db['ChatInteraction'][_0x439a7f('0x26')]({'where':{'id':_0x562b4b[_0x439a7f('0xa6')]['id']}})['then'](handleEntityNotFound(_0x50d793,null))[_0x439a7f('0x8f')](function(_0x32ace0){const _0x4b5652=_0x439a7f;if(_0x32ace0)return _0x24c949['model']=_[_0x4b5652('0x70')](db[_0x4b5652('0xb2')]['rawAttributes']),_0x24c949[_0x4b5652('0x4e')]=_[_0x4b5652('0x70')](_0x562b4b[_0x4b5652('0x4e')]),_0x24c949[_0x4b5652('0x3f')]=_[_0x4b5652('0xfb')](_0x24c949[_0x4b5652('0xe7')],_0x24c949[_0x4b5652('0x4e')]),_0x1279ef[_0x4b5652('0x6c')]=_[_0x4b5652('0xfb')](_0x24c949[_0x4b5652('0xe7')],qs[_0x4b5652('0x11')](_0x562b4b[_0x4b5652('0x4e')][_0x4b5652('0x11')])),_0x1279ef[_0x4b5652('0x6c')]=_0x1279ef[_0x4b5652('0x6c')][_0x4b5652('0xf3')]?_0x1279ef[_0x4b5652('0x6c')]:_0x24c949[_0x4b5652('0xe7')],typeof _0x562b4b['query']['nolimit']===_0x4b5652('0xe1')&&(_0x1279ef[_0x4b5652('0x9')]=qs[_0x4b5652('0x9')](_0x562b4b[_0x4b5652('0x4e')][_0x4b5652('0x9')]),_0x1279ef['offset']=qs[_0x4b5652('0x110')](_0x562b4b[_0x4b5652('0x4e')][_0x4b5652('0x110')])),_0x1279ef[_0x4b5652('0xdf')]=qs[_0x4b5652('0xd9')](_0x562b4b[_0x4b5652('0x4e')][_0x4b5652('0xd9')]),_0x1279ef[_0x4b5652('0x66')]=qs['filters'](_['pick'](_0x562b4b[_0x4b5652('0x4e')],_0x24c949[_0x4b5652('0x3f')])),_0x1279ef['where'][_0x4b5652('0x113')]=_0x32ace0['id'],_0x562b4b[_0x4b5652('0x4e')][_0x4b5652('0x68')]&&(_0x1279ef[_0x4b5652('0x66')]=_[_0x4b5652('0x10b')](_0x1279ef[_0x4b5652('0x66')],{[Op['or']]:_['map'](_0x1279ef[_0x4b5652('0x6c')],function(_0x71d64d){const _0x47f8b0=_0x4b5652,_0x58f789={};return _0x58f789[_0x71d64d]={[Op[_0x47f8b0('0xcc')]]:'%'+_0x562b4b[_0x47f8b0('0x4e')][_0x47f8b0('0x68')]+'%'},_0x58f789;})})),_0x1279ef['where']['secret']=![],_0x562b4b['query']['id']&&(_0x1279ef[_0x4b5652('0x66')]['id']={[Op['gt']]:_0x562b4b[_0x4b5652('0x4e')]['id']}),_0x1279ef=_[_0x4b5652('0x10b')]({},_0x1279ef,_0x562b4b[_0x4b5652('0x4c')]),db[_0x4b5652('0xb2')][_0x4b5652('0x7d')]({'where':_0x1279ef[_0x4b5652('0x66')]})[_0x4b5652('0x8f')](function(_0x3851e0){const _0x205443=_0x4b5652;return _0x69cafb[_0x205443('0x7d')]=_0x3851e0,_0x1279ef['include']=[],_0x562b4b[_0x205443('0x4e')][_0x205443('0x10d')]&&_0x1279ef['include'][_0x205443('0x95')]({'model':db['User'],'as':_0x205443('0x103'),'attributes':['id',_0x205443('0xaa'),_0x205443('0x84')]}),_0x562b4b[_0x205443('0x4e')]['includeAll']&&(_0x1279ef['include']=[{'all':!![]}]),db[_0x205443('0xb2')][_0x205443('0x3b')](_0x1279ef);})[_0x4b5652('0x8f')](function(_0x345535){const _0x2eb5d0=_0x4b5652;return _0x69cafb[_0x2eb5d0('0xb')]=_0x345535,_0x69cafb;});})[_0x439a7f('0x8f')](respondWithFilteredResult(_0x50d793,_0x1279ef))[_0x439a7f('0x11a')](handleError(_0x50d793,null));},exports[_0x2e43b2('0xc')]=function(_0x307ffc,_0x1f1a99){const _0xe8eccc=_0x2e43b2;return db[_0xe8eccc('0x10e')][_0xe8eccc('0x26')]({'where':{'id':_0x307ffc[_0xe8eccc('0xa6')]['id']}})[_0xe8eccc('0x8f')](function(_0x214d1d){const _0x7d5c75=_0xe8eccc;if(_0x214d1d)return _0x214d1d[_0x7d5c75('0x11b')](_0x307ffc[_0x7d5c75('0x5')][_0x7d5c75('0xd2')],{'through':_['omit'](_0x307ffc[_0x7d5c75('0x5')],[_0x7d5c75('0xd2'),'id'])})[_0x7d5c75('0x8f')](function(){const _0x1e43d2=_0x7d5c75;return db[_0x1e43d2('0xd0')][_0x1e43d2('0x3b')]({'attributes':['id',_0x1e43d2('0xed'),'color'],'where':{'id':_0x307ffc['body'][_0x1e43d2('0xd2')]}});})[_0x7d5c75('0x8f')](function(_0x1c01ec){const _0x5354fa=_0x7d5c75;return socket[_0x5354fa('0x69')](_0x5354fa('0x6f'),{'id':Number(_0x307ffc[_0x5354fa('0xa6')]['id']),'tags':_0x1c01ec||[]}),{'id':Number(_0x307ffc[_0x5354fa('0xa6')]['id']),'tags':_0x1c01ec||[]};});})[_0xe8eccc('0x8f')](respondWithResult(_0x1f1a99,null))[_0xe8eccc('0x11a')](handleError(_0x1f1a99,null));},exports['removeTags']=function(_0x44d424,_0x157d7f){const _0x3bd085=_0x2e43b2;return db['ChatInteraction'][_0x3bd085('0x26')]({'where':{'id':_0x44d424[_0x3bd085('0xa6')]['id']}})[_0x3bd085('0x8f')](handleEntityNotFound(_0x157d7f,null))[_0x3bd085('0x8f')](function(_0xf8ea1f){const _0xba5b43=_0x3bd085;if(_0xf8ea1f)return _0xf8ea1f[_0xba5b43('0x3d')](_0x44d424[_0xba5b43('0x4e')][_0xba5b43('0xd2')]);})[_0x3bd085('0x8f')](respondWithStatusCode(_0x157d7f,null))[_0x3bd085('0x11a')](handleError(_0x157d7f,null));},exports[_0x2e43b2('0x8d')]=function(_0xb4eb71,_0x5735dd){const _0x50b7c4=_0x2e43b2,_0x5375b6=moment()[_0x50b7c4('0xe')]()[_0x50b7c4('0xb0')](),_0x1fa977=path['join'](config[_0x50b7c4('0xf8')],_0x50b7c4('0x5c'),_0x50b7c4('0x1f')),_0x183179=path[_0x50b7c4('0x44')](config[_0x50b7c4('0xf8')],_0x50b7c4('0x34'),_0x50b7c4('0x5c'),'attachments'),_0x52646d=path['join'](_0x1fa977,_0x5375b6),_0x39ed4e=util['format'](_0x50b7c4('0x105'),_0xb4eb71[_0x50b7c4('0xa6')]['id'],_0x5375b6),_0x340c6e=path[_0x50b7c4('0x44')](_0x1fa977,_0x39ed4e),_0x517283=[];_0x517283[_0x50b7c4('0x95')]({'model':db[_0x50b7c4('0x103')],'as':_0x50b7c4('0x103'),'attributes':['id',_0x50b7c4('0xaa')],'raw':!![]}),_0x517283['push']({'model':db[_0x50b7c4('0xf9')],'as':_0x50b7c4('0x24'),'attributes':['id','firstName',_0x50b7c4('0xec')],'raw':!![]});_0xb4eb71[_0x50b7c4('0x4e')][_0x50b7c4('0xbf')]&&_0x517283['push']({'model':db[_0x50b7c4('0xe8')],'as':_0x50b7c4('0xe8'),'raw':!![]});const _0x59d99b=[{'model':db[_0x50b7c4('0xb2')],'as':'Messages','attributes':['id',_0x50b7c4('0x5'),_0x50b7c4('0xa8'),_0x50b7c4('0x59'),'secret',_0x50b7c4('0xa3')],'include':_0x517283}];return _0x59d99b[_0x50b7c4('0x95')]({'model':db['ChatWebsite'],'as':_0x50b7c4('0x118'),'attributes':['id',_0x50b7c4('0xed')]}),_0x59d99b[_0x50b7c4('0x95')]({'model':db[_0x50b7c4('0x103')],'as':_0x50b7c4('0x100'),'attributes':['id',_0x50b7c4('0xaa')]}),db[_0x50b7c4('0x10e')][_0x50b7c4('0x26')]({'where':{'id':_0xb4eb71[_0x50b7c4('0xa6')]['id']},'include':_0x59d99b})[_0x50b7c4('0x8f')](handleEntityNotFound(_0x5735dd,null))[_0x50b7c4('0x8f')](function(_0x409d89){const _0x4847a5=_0x50b7c4;if(_0x409d89){const _0x1bfdd0=_0x409d89[_0x4847a5('0x65')]({'plain':!![]});fs[_0x4847a5('0xc2')](_0x52646d);const _0x187c53={'format':'A4','border':_0x4847a5('0x4'),'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':_0x4847a5('0xa4'),'contents':{'default':util[_0x4847a5('0xb9')]('\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[_0x4847a5('0xb9')]('%s\x20#%d','Chat',_0x1bfdd0['id']),moment()['format'](_0x4847a5('0x25'))[_0x4847a5('0xb0')]())}}},_0x5bd796={'channel':_0x4847a5('0x117'),'account':_0x1bfdd0['Account']['name'],'agent':_0x1bfdd0[_0x4847a5('0x100')]?_0x1bfdd0['Owner']['fullname']:_0x4847a5('0x52'),'createdAt':moment(_0x1bfdd0[_0x4847a5('0xa8')])[_0x4847a5('0xb9')](_0x4847a5('0x39'))[_0x4847a5('0xb0')](),'closedAt':_0x1bfdd0[_0x4847a5('0x11c')]?moment(_0x1bfdd0[_0x4847a5('0x9f')])[_0x4847a5('0xb9')](_0x4847a5('0x39'))[_0x4847a5('0xb0')]():'','disposition':_0x1bfdd0['disposition'],'chatInfo':{'browser':_0x1bfdd0[_0x4847a5('0x5a')],'os':_0x1bfdd0[_0x4847a5('0xce')],'referer':_0x1bfdd0['referer'],'customerIp':_0x1bfdd0[_0x4847a5('0x47')],'customerPort':_0x1bfdd0[_0x4847a5('0xc0')]?_0x1bfdd0[_0x4847a5('0xc0')]:'N.A.'},'messages':_(_0x1bfdd0[_0x4847a5('0xc7')])[_0x4847a5('0x5d')]()[_0x4847a5('0x68')]({'secret':![]})[_0x4847a5('0xe2')](function(_0x34931c){const _0x244f7e=_0x4847a5;if(_0x34931c[_0x244f7e('0xe8')]){const _0x243fa6=path['join'](_0x183179,_0x34931c[_0x244f7e('0xe8')]['basename']);fs[_0x244f7e('0x10a')](_0x243fa6)&&fs[_0x244f7e('0x81')](_0x243fa6)['pipe'](fs[_0x244f7e('0xf4')](path[_0x244f7e('0x44')](_0x52646d,_0x34931c[_0x244f7e('0xe8')][_0x244f7e('0x2b')])));}return{'date':moment(_0x34931c[_0x244f7e('0xa8')])['format']('YYYY-MM-DD\x20HH:mm:ss')['toString'](),'sender':_0x34931c[_0x244f7e('0x59')]===_0x244f7e('0xf7')?_0x34931c[_0x244f7e('0x103')]?_0x34931c[_0x244f7e('0x103')]['fullname']:_0x244f7e('0x55'):_0x34931c[_0x244f7e('0x24')]['firstName']+(_0x34931c['Contact']['lastName']?'\x20'+_0x34931c[_0x244f7e('0x24')]['lastName']:''),'body':_0x34931c[_0x244f7e('0xe8')]?_0x34931c['Attachment']['basename']:_0x34931c[_0x244f7e('0x5')],'direction':_0x34931c[_0x244f7e('0x59')]===_0x244f7e('0xf7')?'A':'C','secret':_0x34931c[_0x244f7e('0x77')],'read':_0x34931c[_0x244f7e('0xa3')],'attachment':_0x34931c[_0x244f7e('0xe8')]};})[_0x4847a5('0x38')]()};return ejs['renderFile'](path[_0x4847a5('0x44')](config[_0x4847a5('0xf8')],'server',_0x4847a5('0xfd'),_0x4847a5('0xd5')),{'interaction':_0x5bd796})[_0x4847a5('0x8f')](function(_0x34f005){return new Promise(function(_0x56be4c,_0x2095b2){const _0x1af2c6=a66_0x1516;pdf[_0x1af2c6('0x3')](_0x34f005,_0x187c53)[_0x1af2c6('0x6b')](path[_0x1af2c6('0x44')](_0x52646d,_0x1af2c6('0x15')+_0x1bfdd0['id']+'-'+_0x5375b6+_0x1af2c6('0x37')),function(_0x157b2b,_0xcb9966){if(_0x157b2b)return _0x2095b2(_0x157b2b);_0x56be4c(_0xcb9966);});});})['then'](function(){const _0x59eae2=_0x4847a5;return new Promise(function(_0x335acf,_0x11cf02){zipdir(_0x52646d,{'saveTo':_0x340c6e},function(_0x5496bc,_0x3bc827){if(_0x5496bc)return _0x11cf02(_0x5496bc);return _0x335acf(_0x3bc827);});})['then'](function(){return new Promise(function(_0x463776,_0x2396ff){rimraf(_0x52646d,function(_0x495d4f){if(_0x495d4f)_0x2396ff(_0x495d4f);return _0x463776();});});})[_0x59eae2('0x8f')](function(){return _0x5735dd['download'](_0x340c6e,_0x39ed4e,function(_0x3220d9){const _0x28021f=a66_0x1516;_0x3220d9?console[_0x28021f('0x82')]('err',_0x3220d9):fs[_0x28021f('0x115')](_0x340c6e);});});});}else return _0x5735dd[_0x4847a5('0x17')](0xc8);})[_0x50b7c4('0x11a')](handleError(_0x5735dd,null));}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.events.js b/server/api/chatInteraction/chatInteraction.events.js index 19ffde0..869c014 100644 --- a/server/api/chatInteraction/chatInteraction.events.js +++ b/server/api/chatInteraction/chatInteraction.events.js @@ -1 +1 @@ -const a67_0x5c5a=['findAll','emit','setDataValue','ChatMessage','map','getUsers','update','addHook','catch','setMaxListeners','remove','events','../../mysqldb','ChatInteraction','undefined','save','then'];(function(_0x51cf5f,_0x5c5ae5){const _0x3eadec=function(_0x5d465a){while(--_0x5d465a){_0x51cf5f['push'](_0x51cf5f['shift']());}};_0x3eadec(++_0x5c5ae5);}(a67_0x5c5a,0x15a));const a67_0x3ead=function(_0x51cf5f,_0x5c5ae5){_0x51cf5f=_0x51cf5f-0x0;let _0x3eadec=a67_0x5c5a[_0x51cf5f];return _0x3eadec;};const _0x87f1a6=a67_0x3ead;'use strict';const EventEmitter=require(_0x87f1a6('0x5')),ChatInteraction=require(_0x87f1a6('0x6'))['db'][_0x87f1a6('0x7')],ChatMessage=require('../../mysqldb')['db'][_0x87f1a6('0xe')],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[_0x87f1a6('0x3')](0x0);const events={'afterCreate':_0x87f1a6('0x9'),'afterUpdate':_0x87f1a6('0x0'),'afterDestroy':_0x87f1a6('0x4')};function emitEvent(_0x5d465a){return function(_0x244638){const _0x4177c8=a67_0x3ead;_0x244638[_0x4177c8('0x10')]({'attributes':['id'],'raw':!![]})[_0x4177c8('0xa')](function(_0xd0c830){const _0x47db10=_0x4177c8;return _0x244638[_0x47db10('0xd')]('Users',_0xd0c830[_0x47db10('0xf')](function(_0xbc380b){return{'id':_0xbc380b['id']};})),ChatMessage[_0x47db10('0xb')]({'where':{'ChatInteractionId':_0x244638['id'],'direction':'in','read':![]},'raw':!![]});})[_0x4177c8('0xa')](function(_0x30b6ef){const _0x2fa65d=_0x4177c8;_0x244638[_0x2fa65d('0xd')]('unreadMessages',_0x30b6ef['length']),ChatInteractionEvents[_0x2fa65d('0xc')](_0x5d465a+':'+_0x244638['id'],_0x244638),ChatInteractionEvents['emit'](_0x5d465a,_0x244638);})[_0x4177c8('0x2')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x87f1a6('0x8')){const event=events[e];ChatInteraction[_0x87f1a6('0x1')](e,emitEvent(event));}}module['exports']=ChatInteractionEvents; \ No newline at end of file +const a67_0x42dc=['remove','events','catch','then','map','emit','addHook','length','findAll','setDataValue','setMaxListeners','getUsers','ChatMessage','update','ChatInteraction','unreadMessages'];(function(_0x255d2b,_0x42dc11){const _0x3bdc6c=function(_0x4ce042){while(--_0x4ce042){_0x255d2b['push'](_0x255d2b['shift']());}};_0x3bdc6c(++_0x42dc11);}(a67_0x42dc,0x17b));const a67_0x3bdc=function(_0x255d2b,_0x42dc11){_0x255d2b=_0x255d2b-0x0;let _0x3bdc6c=a67_0x42dc[_0x255d2b];return _0x3bdc6c;};const _0x29547b=a67_0x3bdc;'use strict';const EventEmitter=require(_0x29547b('0x6')),ChatInteraction=require('../../mysqldb')['db'][_0x29547b('0x3')],ChatMessage=require('../../mysqldb')['db'][_0x29547b('0x1')],ChatInteractionEvents=new EventEmitter();ChatInteractionEvents[_0x29547b('0xf')](0x0);const events={'afterCreate':'save','afterUpdate':_0x29547b('0x2'),'afterDestroy':_0x29547b('0x5')};function emitEvent(_0x4ce042){return function(_0x77aa6d){const _0x25fc68=a67_0x3bdc;_0x77aa6d[_0x25fc68('0x0')]({'attributes':['id'],'raw':!![]})['then'](function(_0x277cd3){const _0xb6e60d=_0x25fc68;return _0x77aa6d['setDataValue']('Users',_0x277cd3[_0xb6e60d('0x9')](function(_0x13b7bf){return{'id':_0x13b7bf['id']};})),ChatMessage[_0xb6e60d('0xd')]({'where':{'ChatInteractionId':_0x77aa6d['id'],'direction':'in','read':![]},'raw':!![]});})[_0x25fc68('0x8')](function(_0x10351e){const _0x185eaf=_0x25fc68;_0x77aa6d[_0x185eaf('0xe')](_0x185eaf('0x4'),_0x10351e[_0x185eaf('0xc')]),ChatInteractionEvents[_0x185eaf('0xa')](_0x4ce042+':'+_0x77aa6d['id'],_0x77aa6d),ChatInteractionEvents[_0x185eaf('0xa')](_0x4ce042,_0x77aa6d);})[_0x25fc68('0x7')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];ChatInteraction[_0x29547b('0xb')](e,emitEvent(event));}}module['exports']=ChatInteractionEvents; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.model.js b/server/api/chatInteraction/chatInteraction.model.js index 92905eb..5f61798 100644 --- a/server/api/chatInteraction/chatInteraction.model.js +++ b/server/api/chatInteraction/chatInteraction.model.js @@ -1 +1 @@ -const a68_0x20e9=['utf8mb4_unicode_ci','utf8mb4','moment','format','closedAt','exports','ChatInteraction'];(function(_0x2bd352,_0x20e9c0){const _0x3b53d6=function(_0x250611){while(--_0x250611){_0x2bd352['push'](_0x2bd352['shift']());}};_0x3b53d6(++_0x20e9c0);}(a68_0x20e9,0x19e));const a68_0x3b53=function(_0x2bd352,_0x20e9c0){_0x2bd352=_0x2bd352-0x0;let _0x3b53d6=a68_0x20e9[_0x2bd352];return _0x3b53d6;};const _0x38b145=a68_0x3b53;'use strict';const moment=require(_0x38b145('0x1')),attributes=require('./chatInteraction.attributes');module[_0x38b145('0x4')]=function(_0x250611){const _0x2bdc0a=_0x38b145,_0x52acf2=_0x250611['define'](_0x2bdc0a('0x5'),attributes,{'tableName':'chat_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x286ad5){const _0x32bed2=_0x2bdc0a;_0x286ad5['changed']('closed')&&(_0x286ad5[_0x32bed2('0x3')]=moment()[_0x32bed2('0x2')]('YYYY-MM-DD\x20HH:mm:ss'));}},'charset':_0x2bdc0a('0x0'),'collate':_0x2bdc0a('0x6')});return _0x52acf2;}; \ No newline at end of file +const a68_0x3efc=['exports','closedAt','chat_interactions','define','format','changed','utf8mb4','ChatInteraction','closed','moment'];(function(_0x4cc7ef,_0x3efc87){const _0x24af17=function(_0x2fc5cb){while(--_0x2fc5cb){_0x4cc7ef['push'](_0x4cc7ef['shift']());}};_0x24af17(++_0x3efc87);}(a68_0x3efc,0xbe));const a68_0x24af=function(_0x4cc7ef,_0x3efc87){_0x4cc7ef=_0x4cc7ef-0x0;let _0x24af17=a68_0x3efc[_0x4cc7ef];return _0x24af17;};const _0x99273e=a68_0x24af;'use strict';const moment=require(_0x99273e('0x9')),attributes=require('./chatInteraction.attributes');module[_0x99273e('0x0')]=function(_0x2fc5cb){const _0xe4dfd6=_0x99273e,_0x291aea=_0x2fc5cb[_0xe4dfd6('0x3')](_0xe4dfd6('0x7'),attributes,{'tableName':_0xe4dfd6('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x5a7177){const _0x3ccbc8=_0xe4dfd6;_0x5a7177[_0x3ccbc8('0x5')](_0x3ccbc8('0x8'))&&(_0x5a7177[_0x3ccbc8('0x1')]=moment()[_0x3ccbc8('0x4')]('YYYY-MM-DD\x20HH:mm:ss'));}},'charset':_0xe4dfd6('0x6'),'collate':'utf8mb4_unicode_ci'});return _0x291aea;}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.rpc.js b/server/api/chatInteraction/chatInteraction.rpc.js index 2f439bf..decf828 100644 --- a/server/api/chatInteraction/chatInteraction.rpc.js +++ b/server/api/chatInteraction/chatInteraction.rpc.js @@ -1 +1 @@ -const a69_0x1f75=['error','where','body','ChatInteraction','raw','addTags','debug','UpdateChatInteraction','omit','options','limit','attributes','findOne','ids','../../rediscache','register','catch','then','rpc','stringify','AddTagsToChatInteraction','message','../../mysqldb','lodash','info','../../config/logger'];(function(_0xdb3846,_0x1f7560){const _0x5e95e7=function(_0x3f834c){while(--_0x3f834c){_0xdb3846['push'](_0xdb3846['shift']());}};_0x5e95e7(++_0x1f7560);}(a69_0x1f75,0xe6));const a69_0x5e95=function(_0xdb3846,_0x1f7560){_0xdb3846=_0xdb3846-0x0;let _0x5e95e7=a69_0x1f75[_0xdb3846];return _0x5e95e7;};const _0x4324b0=a69_0x5e95;'use strict';const _=require(_0x4324b0('0x1')),db=require(_0x4324b0('0x0'))['db'],logger=require(_0x4324b0('0x3'))(_0x4324b0('0x16')),{getSocket}=require(_0x4324b0('0x12')),socket=getSocket();require('./chatInteraction.socket')[_0x4324b0('0x13')](socket),exports[_0x4324b0('0xb')]=function(_0x3f834c){const _0x2e8791=this;return new Promise(function(_0x2e5b73,_0x22565c){const _0x19f072=a69_0x5e95;return db[_0x19f072('0x7')]['update'](_0x3f834c[_0x19f072('0x6')],{'raw':_0x3f834c['options']?_0x3f834c[_0x19f072('0xd')][_0x19f072('0x8')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f834c[_0x19f072('0xd')]?_0x3f834c[_0x19f072('0xd')][_0x19f072('0x5')]||null:null,'attributes':_0x3f834c[_0x19f072('0xd')]?_0x3f834c[_0x19f072('0xd')][_0x19f072('0xf')]||null:null,'limit':_0x3f834c[_0x19f072('0xd')]?_0x3f834c[_0x19f072('0xd')][_0x19f072('0xe')]||null:null})[_0x19f072('0x15')](function(_0x5cb799){const _0x1b75d9=_0x19f072;logger[_0x1b75d9('0x2')](_0x1b75d9('0xb'),_0x3f834c),logger[_0x1b75d9('0xa')](_0x1b75d9('0xb'),_0x3f834c,JSON['stringify'](_0x5cb799)),_0x2e5b73(_0x5cb799);})['catch'](function(_0x13e049){const _0xc55466=_0x19f072;logger[_0xc55466('0x4')]('UpdateChatInteraction',_0x13e049[_0xc55466('0x19')],_0x3f834c),_0x22565c(_0x2e8791['error'](0x1f4,_0x13e049[_0xc55466('0x19')]));});});},exports[_0x4324b0('0x18')]=function(_0x1238af){const _0x522e97=this;return new Promise(function(_0x56a126,_0x1d18c6){const _0x5cce4d=a69_0x5e95;return db[_0x5cce4d('0x7')][_0x5cce4d('0x10')]({'where':_0x1238af[_0x5cce4d('0xd')]?_0x1238af[_0x5cce4d('0xd')]['where']||null:null})[_0x5cce4d('0x15')](function(_0x3367f0){const _0x52db86=_0x5cce4d;if(_0x3367f0)return _0x3367f0[_0x52db86('0x9')](_0x1238af[_0x52db86('0x6')][_0x52db86('0x11')],{'through':_[_0x52db86('0xc')](_0x1238af[_0x52db86('0x6')],[_0x52db86('0x11'),'id'])});})[_0x5cce4d('0x15')](function([_0x2e4cdb]){const _0x3785b9=_0x5cce4d;logger[_0x3785b9('0x2')]('AddTags',_0x1238af),logger[_0x3785b9('0xa')]('AddTags',_0x1238af,JSON[_0x3785b9('0x17')](_0x2e4cdb)),_0x56a126(_0x2e4cdb);})[_0x5cce4d('0x14')](function(_0x39d8df){const _0x259eeb=_0x5cce4d;logger[_0x259eeb('0x4')]('AddTags',_0x39d8df['message'],_0x1238af),_0x1d18c6(_0x522e97['error'](0x1f4,_0x39d8df[_0x259eeb('0x19')]));});});}; \ No newline at end of file +const a69_0x9711=['findOne','info','raw','./chatInteraction.socket','AddTags','AddTagsToChatInteraction','../../rediscache','omit','then','body','UpdateChatInteraction','debug','ids','../../mysqldb','register','stringify','error','ChatInteraction','where','update','catch','limit','options','addTags','attributes','../../config/logger','message'];(function(_0x47a585,_0x9711c3){const _0x300a50=function(_0x59edc1){while(--_0x59edc1){_0x47a585['push'](_0x47a585['shift']());}};_0x300a50(++_0x9711c3);}(a69_0x9711,0x96));const a69_0x300a=function(_0x47a585,_0x9711c3){_0x47a585=_0x47a585-0x0;let _0x300a50=a69_0x9711[_0x47a585];return _0x300a50;};const _0x293a21=a69_0x300a;'use strict';const _=require('lodash'),db=require(_0x293a21('0x19'))['db'],logger=require(_0x293a21('0xa'))('rpc'),{getSocket}=require(_0x293a21('0x12')),socket=getSocket();require(_0x293a21('0xf'))[_0x293a21('0x1a')](socket),exports[_0x293a21('0x16')]=function(_0x59edc1){const _0x14f575=this;return new Promise(function(_0x2d1862,_0x59daf3){const _0xa80291=a69_0x300a;return db[_0xa80291('0x2')][_0xa80291('0x4')](_0x59edc1[_0xa80291('0x15')],{'raw':_0x59edc1[_0xa80291('0x7')]?_0x59edc1[_0xa80291('0x7')][_0xa80291('0xe')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x59edc1[_0xa80291('0x7')]?_0x59edc1[_0xa80291('0x7')][_0xa80291('0x3')]||null:null,'attributes':_0x59edc1['options']?_0x59edc1[_0xa80291('0x7')][_0xa80291('0x9')]||null:null,'limit':_0x59edc1[_0xa80291('0x7')]?_0x59edc1[_0xa80291('0x7')][_0xa80291('0x6')]||null:null})[_0xa80291('0x14')](function(_0x4dd5b6){const _0xdc4c90=_0xa80291;logger['info'](_0xdc4c90('0x16'),_0x59edc1),logger[_0xdc4c90('0x17')](_0xdc4c90('0x16'),_0x59edc1,JSON[_0xdc4c90('0x0')](_0x4dd5b6)),_0x2d1862(_0x4dd5b6);})[_0xa80291('0x5')](function(_0x265f0a){const _0x311a29=_0xa80291;logger[_0x311a29('0x1')](_0x311a29('0x16'),_0x265f0a['message'],_0x59edc1),_0x59daf3(_0x14f575[_0x311a29('0x1')](0x1f4,_0x265f0a[_0x311a29('0xb')]));});});},exports[_0x293a21('0x11')]=function(_0x357a32){const _0x463010=this;return new Promise(function(_0x5eec47,_0x1edae9){const _0x12ed78=a69_0x300a;return db[_0x12ed78('0x2')][_0x12ed78('0xc')]({'where':_0x357a32['options']?_0x357a32['options']['where']||null:null})['then'](function(_0x4b2050){const _0x39e086=_0x12ed78;if(_0x4b2050)return _0x4b2050[_0x39e086('0x8')](_0x357a32['body'][_0x39e086('0x18')],{'through':_[_0x39e086('0x13')](_0x357a32[_0x39e086('0x15')],[_0x39e086('0x18'),'id'])});})[_0x12ed78('0x14')](function([_0x180195]){const _0x3473d2=_0x12ed78;logger[_0x3473d2('0xd')]('AddTags',_0x357a32),logger['debug'](_0x3473d2('0x10'),_0x357a32,JSON['stringify'](_0x180195)),_0x5eec47(_0x180195);})[_0x12ed78('0x5')](function(_0x397dc2){const _0x86ef01=_0x12ed78;logger[_0x86ef01('0x1')](_0x86ef01('0x10'),_0x397dc2['message'],_0x357a32),_0x1edae9(_0x463010['error'](0x1f4,_0x397dc2[_0x86ef01('0xb')]));});});}; \ No newline at end of file diff --git a/server/api/chatInteraction/chatInteraction.socket.js b/server/api/chatInteraction/chatInteraction.socket.js index c397915..649115c 100644 --- a/server/api/chatInteraction/chatInteraction.socket.js +++ b/server/api/chatInteraction/chatInteraction.socket.js @@ -1 +1 @@ -const a70_0x59b0=['emit','remove','save','register','length','chatInteraction:','update','./chatInteraction.events'];(function(_0x1ca686,_0x59b081){const _0xb1d10a=function(_0x3e66af){while(--_0x3e66af){_0x1ca686['push'](_0x1ca686['shift']());}};_0xb1d10a(++_0x59b081);}(a70_0x59b0,0x12d));const a70_0xb1d1=function(_0x1ca686,_0x59b081){_0x1ca686=_0x1ca686-0x0;let _0xb1d10a=a70_0x59b0[_0x1ca686];return _0xb1d10a;};const _0x87123e=a70_0xb1d1;'use strict';const ChatInteractionEvents=require(_0x87123e('0x2')),events=[_0x87123e('0x5'),_0x87123e('0x4'),_0x87123e('0x1')];function createListener(_0x3e66af,_0x1c6e29){return function(_0x3deebe){const _0x3a8283=a70_0xb1d1;_0x1c6e29[_0x3a8283('0x3')](_0x3e66af,_0x3deebe);};}exports[_0x87123e('0x6')]=function(_0x225315){const _0x46dfd5=_0x87123e;for(let _0x21dad3=0x0,_0x449d41=events[_0x46dfd5('0x7')];_0x21dad3<_0x449d41;_0x21dad3++){const _0x423e53=events[_0x21dad3],_0x531188=createListener(_0x46dfd5('0x0')+_0x423e53,_0x225315);ChatInteractionEvents['on'](_0x423e53,_0x531188);}}; \ No newline at end of file +const a70_0x3b17=['register','chatInteraction:','remove','./chatInteraction.events','update','save'];(function(_0x161222,_0x3b1756){const _0x27cf1a=function(_0x3f7480){while(--_0x3f7480){_0x161222['push'](_0x161222['shift']());}};_0x27cf1a(++_0x3b1756);}(a70_0x3b17,0x1c9));const a70_0x27cf=function(_0x161222,_0x3b1756){_0x161222=_0x161222-0x0;let _0x27cf1a=a70_0x3b17[_0x161222];return _0x27cf1a;};const _0x4a92df=a70_0x27cf;'use strict';const ChatInteractionEvents=require(_0x4a92df('0x2')),events=[_0x4a92df('0x4'),_0x4a92df('0x1'),_0x4a92df('0x3')];function createListener(_0x3f7480,_0x483c0c){return function(_0x12be2c){_0x483c0c['emit'](_0x3f7480,_0x12be2c);};}exports[_0x4a92df('0x5')]=function(_0x1bacc8){const _0x4cf10a=_0x4a92df;for(let _0x51a5fe=0x0,_0x8d5bc9=events['length'];_0x51a5fe<_0x8d5bc9;_0x51a5fe++){const _0x41c684=events[_0x51a5fe],_0x2d49d9=createListener(_0x4cf10a('0x0')+_0x41c684,_0x1bacc8);ChatInteractionEvents['on'](_0x41c684,_0x2d49d9);}}; \ No newline at end of file diff --git a/server/api/chatInteraction/index.js b/server/api/chatInteraction/index.js index aff247f..d6f6c17 100644 --- a/server/api/chatInteraction/index.js +++ b/server/api/chatInteraction/index.js @@ -1 +1 @@ -const a71_0x42d4=['tracked','isAuthenticated','./chatInteraction.controller','replace','/:id/messages','delete','addTags','getMessages','join','put','/:id/close','Router','close','download','now','/describe','chatinteraction:destroy','createVidaooSession','show','single','getMyMessages','chatinteraction:update','update','../../components/interaction/service','/:id/abandon','customUpdate','/:id','isChatInteractionAuthorized','format','diskStorage','abandon','/:id/my_messages','/:id/attachment_upload','destroy','get','index','../../config/environment','create','/:id/tags','file','attachmentDownload','%s-%s','/:id/custom_update','util','post','exports','files/attachments/','originalname','chat','../../components/auth/service','chatinteraction:addtags','/:id/download','removeTags'];(function(_0x332494,_0x42d4af){const _0x12d505=function(_0xdc1b5d){while(--_0xdc1b5d){_0x332494['push'](_0x332494['shift']());}};_0x12d505(++_0x42d4af);}(a71_0x42d4,0xcf));const a71_0x12d5=function(_0x332494,_0x42d4af){_0x332494=_0x332494-0x0;let _0x12d505=a71_0x42d4[_0x332494];return _0x12d505;};const _0x11220d=a71_0x12d5;'use strict';const multer=require('multer'),util=require(_0x11220d('0x30')),path=require('path'),express=require('express'),router=express[_0x11220d('0x10')](),auth=require(_0x11220d('0x1')),interaction=require(_0x11220d('0x1c')),config=require(_0x11220d('0x29')),controller=require(_0x11220d('0x7'));router[_0x11220d('0x27')]('/',auth[_0x11220d('0x6')](),controller[_0x11220d('0x28')]),router['get'](_0x11220d('0x14'),auth[_0x11220d('0x6')](),controller['describe']),router[_0x11220d('0x27')](_0x11220d('0x1f'),auth['isChatInteractionAuthorized'](),controller[_0x11220d('0x17')]),router[_0x11220d('0x27')]('/:id/attachment_download',auth[_0x11220d('0x20')](),controller[_0x11220d('0x2d')]),router['get'](_0x11220d('0x9'),auth[_0x11220d('0x6')](),controller[_0x11220d('0xc')]),router['get'](_0x11220d('0x24'),auth[_0x11220d('0x20')](),controller[_0x11220d('0x19')]),router[_0x11220d('0x27')](_0x11220d('0x3'),auth[_0x11220d('0x6')](),controller[_0x11220d('0x12')]),router[_0x11220d('0x31')]('/',auth['isAuthenticated'](),controller[_0x11220d('0x2a')]),router[_0x11220d('0x31')]('/:id/vidaoo',auth[_0x11220d('0x6')](),controller[_0x11220d('0x16')]);const upload=multer({'storage':multer[_0x11220d('0x22')]({'destination':function(_0xdc1b5d,_0x106627,_0x401232){const _0x1bf432=_0x11220d;_0x401232(null,path[_0x1bf432('0xd')](config['root'],_0x1bf432('0x33')));},'filename':function(_0x45deb8,_0x227827,_0xb15b9){const _0x520247=_0x11220d;_0xb15b9(null,util[_0x520247('0x21')](_0x520247('0x2e'),Date[_0x520247('0x13')](),_0x227827[_0x520247('0x34')][_0x520247('0x8')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x11220d('0x31')](_0x11220d('0x25'),upload[_0x11220d('0x18')](_0x11220d('0x2c')),controller['attachmentUpload']),router[_0x11220d('0x31')](_0x11220d('0x9'),auth['isChatInteractionAuthorized'](),controller['addMessage']),router[_0x11220d('0x31')](_0x11220d('0x2b'),auth[_0x11220d('0x6')](),interaction[_0x11220d('0x5')](_0x11220d('0x0'),_0x11220d('0x2')),controller[_0x11220d('0xb')]),router['put'](_0x11220d('0x1f'),auth[_0x11220d('0x6')](),interaction['tracked'](_0x11220d('0x0'),_0x11220d('0x1a')),controller[_0x11220d('0x1b')]),router[_0x11220d('0xe')](_0x11220d('0x2f'),controller[_0x11220d('0x1e')]),router[_0x11220d('0xe')](_0x11220d('0x1d'),auth[_0x11220d('0x20')](),controller[_0x11220d('0x23')]),router['put'](_0x11220d('0xf'),controller[_0x11220d('0x11')]),router[_0x11220d('0xa')](_0x11220d('0x1f'),auth[_0x11220d('0x6')](),interaction[_0x11220d('0x5')](_0x11220d('0x0'),_0x11220d('0x15')),controller[_0x11220d('0x26')]),router['delete']('/:id/tags',auth[_0x11220d('0x6')](),controller[_0x11220d('0x4')]),module[_0x11220d('0x32')]=router; \ No newline at end of file +const a71_0x95bb=['chatinteraction:addtags','Router','get','root','path','now','../../components/interaction/service','/:id/download','/:id/abandon','files/attachments/','/:id/custom_update','delete','abandon','/:id/messages','chat','put','addTags','express','tracked','/:id/tags','../../config/environment','createVidaooSession','/:id/my_messages','util','/:id/vidaoo','replace','originalname','chatinteraction:update','/:id/attachment_download','format','isChatInteractionAuthorized','close','describe','/:id/close','attachmentDownload','/:id','customUpdate','removeTags','post','addMessage','diskStorage','../../components/auth/service','exports','/:id/attachment_upload','show','isAuthenticated','chatinteraction:destroy','index'];(function(_0x3096da,_0x95bb7d){const _0xc76858=function(_0x1b6c8e){while(--_0x1b6c8e){_0x3096da['push'](_0x3096da['shift']());}};_0xc76858(++_0x95bb7d);}(a71_0x95bb,0x119));const a71_0xc768=function(_0x3096da,_0x95bb7d){_0x3096da=_0x3096da-0x0;let _0xc76858=a71_0x95bb[_0x3096da];return _0xc76858;};const _0x4b2a5f=a71_0xc768;'use strict';const multer=require('multer'),util=require(_0x4b2a5f('0x1e')),path=require(_0x4b2a5f('0xb')),express=require(_0x4b2a5f('0x18')),router=express[_0x4b2a5f('0x8')](),auth=require(_0x4b2a5f('0x0')),interaction=require(_0x4b2a5f('0xd')),config=require(_0x4b2a5f('0x1b')),controller=require('./chatInteraction.controller');router[_0x4b2a5f('0x9')]('/',auth[_0x4b2a5f('0x4')](),controller[_0x4b2a5f('0x6')]),router[_0x4b2a5f('0x9')]('/describe',auth[_0x4b2a5f('0x4')](),controller[_0x4b2a5f('0x27')]),router[_0x4b2a5f('0x9')](_0x4b2a5f('0x2a'),auth[_0x4b2a5f('0x25')](),controller[_0x4b2a5f('0x3')]),router[_0x4b2a5f('0x9')](_0x4b2a5f('0x23'),auth[_0x4b2a5f('0x25')](),controller[_0x4b2a5f('0x29')]),router['get'](_0x4b2a5f('0x14'),auth[_0x4b2a5f('0x4')](),controller['getMessages']),router[_0x4b2a5f('0x9')](_0x4b2a5f('0x1d'),auth['isChatInteractionAuthorized'](),controller['getMyMessages']),router['get'](_0x4b2a5f('0xe'),auth[_0x4b2a5f('0x4')](),controller['download']),router[_0x4b2a5f('0x2d')]('/',auth[_0x4b2a5f('0x4')](),controller['create']),router[_0x4b2a5f('0x2d')](_0x4b2a5f('0x1f'),auth[_0x4b2a5f('0x4')](),controller[_0x4b2a5f('0x1c')]);const upload=multer({'storage':multer[_0x4b2a5f('0x2f')]({'destination':function(_0x1b6c8e,_0x475327,_0x481971){const _0x1b8901=_0x4b2a5f;_0x481971(null,path['join'](config[_0x1b8901('0xa')],_0x1b8901('0x10')));},'filename':function(_0x1acee5,_0x5a5931,_0x701a35){const _0x341fb1=_0x4b2a5f;_0x701a35(null,util[_0x341fb1('0x24')]('%s-%s',Date[_0x341fb1('0xc')](),_0x5a5931[_0x341fb1('0x21')][_0x341fb1('0x20')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-')));}})});router[_0x4b2a5f('0x2d')](_0x4b2a5f('0x2'),upload['single']('file'),controller['attachmentUpload']),router[_0x4b2a5f('0x2d')](_0x4b2a5f('0x14'),auth['isChatInteractionAuthorized'](),controller[_0x4b2a5f('0x2e')]),router[_0x4b2a5f('0x2d')](_0x4b2a5f('0x1a'),auth[_0x4b2a5f('0x4')](),interaction[_0x4b2a5f('0x19')](_0x4b2a5f('0x15'),_0x4b2a5f('0x7')),controller[_0x4b2a5f('0x17')]),router[_0x4b2a5f('0x16')](_0x4b2a5f('0x2a'),auth[_0x4b2a5f('0x4')](),interaction[_0x4b2a5f('0x19')](_0x4b2a5f('0x15'),_0x4b2a5f('0x22')),controller['update']),router['put'](_0x4b2a5f('0x11'),controller[_0x4b2a5f('0x2b')]),router[_0x4b2a5f('0x16')](_0x4b2a5f('0xf'),auth[_0x4b2a5f('0x25')](),controller[_0x4b2a5f('0x13')]),router[_0x4b2a5f('0x16')](_0x4b2a5f('0x28'),controller[_0x4b2a5f('0x26')]),router[_0x4b2a5f('0x12')](_0x4b2a5f('0x2a'),auth[_0x4b2a5f('0x4')](),interaction['tracked'](_0x4b2a5f('0x15'),_0x4b2a5f('0x5')),controller['destroy']),router[_0x4b2a5f('0x12')](_0x4b2a5f('0x1a'),auth[_0x4b2a5f('0x4')](),controller[_0x4b2a5f('0x2c')]),module[_0x4b2a5f('0x1')]=router; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.attributes.js b/server/api/chatInternalMessage/chatInternalMessage.attributes.js index 0d849ac..456bac1 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.attributes.js +++ b/server/api/chatInternalMessage/chatInternalMessage.attributes.js @@ -1 +1 @@ -const a72_0x5e9f=['exports','medium','TEXT','sequelize','INTEGER','BOOLEAN'];(function(_0x53a162,_0x5e9ff4){const _0x3fb3a0=function(_0x22f349){while(--_0x22f349){_0x53a162['push'](_0x53a162['shift']());}};_0x3fb3a0(++_0x5e9ff4);}(a72_0x5e9f,0x124));const a72_0x3fb3=function(_0x53a162,_0x5e9ff4){_0x53a162=_0x53a162-0x0;let _0x3fb3a0=a72_0x5e9f[_0x53a162];return _0x3fb3a0;};const _0x5d8158=a72_0x3fb3;'use strict';const Sequelize=require(_0x5d8158('0x5'));module[_0x5d8158('0x2')]={'body':{'type':Sequelize[_0x5d8158('0x4')](_0x5d8158('0x3')),'allowNull':![]},'read':{'type':Sequelize[_0x5d8158('0x1')],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize[_0x5d8158('0x0')]}}; \ No newline at end of file +const a72_0x47fc=['TEXT','exports','BOOLEAN','medium','sequelize'];(function(_0x5227db,_0x47fc68){const _0x25fc5a=function(_0x3ad3e7){while(--_0x3ad3e7){_0x5227db['push'](_0x5227db['shift']());}};_0x25fc5a(++_0x47fc68);}(a72_0x47fc,0x113));const a72_0x25fc=function(_0x5227db,_0x47fc68){_0x5227db=_0x5227db-0x0;let _0x25fc5a=a72_0x47fc[_0x5227db];return _0x25fc5a;};const _0x3eda2b=a72_0x25fc;'use strict';const Sequelize=require(_0x3eda2b('0x4'));module[_0x3eda2b('0x1')]={'body':{'type':Sequelize[_0x3eda2b('0x0')](_0x3eda2b('0x3')),'allowNull':![]},'read':{'type':Sequelize[_0x3eda2b('0x2')],'defaultValue':![]},'ChatInternalMessageId':{'type':Sequelize['INTEGER']}}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.controller.js b/server/api/chatInternalMessage/chatInternalMessage.controller.js index 95b643f..d16cca4 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.controller.js +++ b/server/api/chatInternalMessage/chatInternalMessage.controller.js @@ -1 +1 @@ -const a73_0x2fa6=['index','sequelize','showWebBar','userProfileId','model','ChatInternalMessage','../../mysqldb','key','catch','end','error','lodash','User','status','query','include','fieldName','findAll','online','filter','fullname','limit','sendStatus','params','map','allowmessenger','lastLoginAt','autoAssociation','role','sort','agent','body','user','findOne','Agents','nolimit','UserProfileResource','../../components/parsers/qs','merge','lastMessage','show','messages','length','like','destroy','../../config/logger','rows','json','keys','Content-Range','attributes','lastMessageAt','format','type','undefined','options','userpic','order','where','set','filters','name','resourceId','fields','rawAttributes','offset','count','intersection','register','UserProfileSection','send','get','then','ToId','admin','push','includeAll','describe','moment','getUsers','api','find'];(function(_0x6efc77,_0x2fa6d5){const _0x496a90=function(_0x16f43d){while(--_0x16f43d){_0x6efc77['push'](_0x6efc77['shift']());}};_0x496a90(++_0x2fa6d5);}(a73_0x2fa6,0x1ee));const a73_0x496a=function(_0x6efc77,_0x2fa6d5){_0x6efc77=_0x6efc77-0x0;let _0x496a90=a73_0x2fa6[_0x6efc77];return _0x496a90;};const _0x2ff9c4=a73_0x496a;'use strict';const moment=require(_0x2ff9c4('0x4c')),_=require(_0x2ff9c4('0x9')),qs=require(_0x2ff9c4('0x23')),logger=require(_0x2ff9c4('0x2b'))(_0x2ff9c4('0x4e')),{getSocket}=require('../../rediscache'),db=require(_0x2ff9c4('0x4'))['db'],{Op}=require(_0x2ff9c4('0x51')),socket=getSocket();require('./chatInternalMessage.socket')[_0x2ff9c4('0x42')](socket);function respondWithResult(_0x16f43d,_0x4bc9f5){return _0x4bc9f5=_0x4bc9f5||0xc8,function(_0x51dc31){const _0x324547=a73_0x496a;if(_0x51dc31)return _0x16f43d[_0x324547('0xb')](_0x4bc9f5)['json'](_0x51dc31);};}function respondWithFilteredResult(_0x2db650,_0x22ca28){return function(_0x10b403){const _0x2854d5=a73_0x496a;if(_0x10b403){const _0x38d10b=_0x10b403[_0x2854d5('0x40')],_0x48afad=_0x22ca28[_0x2854d5('0x3f')];let _0x11a231=_0x22ca28['offset']+_0x22ca28['limit'],_0x3b0729;return _0x11a231>=_0x38d10b?(_0x11a231=_0x38d10b,_0x3b0729=0xc8):_0x3b0729=0xce,_0x2db650[_0x2854d5('0xb')](_0x3b0729),_0x2db650[_0x2854d5('0x39')](_0x2854d5('0x2f'),_0x48afad+'-'+_0x11a231+'/'+_0x38d10b)[_0x2854d5('0x2d')](_0x10b403);}return null;};}function saveUpdates(_0x598055){return function(_0x21c3dc){const _0x40fda1=a73_0x496a;if(_0x21c3dc)return _0x21c3dc['update'](_0x598055)[_0x40fda1('0x46')](function(_0x54c125){return _0x54c125;});return null;};}function removeEntity(_0x1b28c8){return function(_0x32f4ae){const _0xffa191=a73_0x496a;if(_0x32f4ae)return _0x32f4ae[_0xffa191('0x2a')]()[_0xffa191('0x46')](function(){const _0x1f2575=_0xffa191;_0x1b28c8[_0x1f2575('0xb')](0xcc)[_0x1f2575('0x7')]();});};}function handleEntityNotFound(_0x11e5bc){return function(_0x5e6415){const _0x3b6b84=a73_0x496a;return!_0x5e6415&&_0x11e5bc[_0x3b6b84('0x14')](0x194),_0x5e6415;};}function handleError(_0x565602,_0x1d09d2){return _0x1d09d2=_0x1d09d2||0x1f4,function(_0x3e5b14){const _0x38ccea=a73_0x496a;logger[_0x38ccea('0x8')](_0x3e5b14['stack']),_0x3e5b14['name']&&delete _0x3e5b14[_0x38ccea('0x3b')],_0x565602[_0x38ccea('0xb')](_0x1d09d2)[_0x38ccea('0x44')](_0x3e5b14);};}exports[_0x2ff9c4('0x50')]=function(_0x11b7a4,_0x42dbcb){const _0x2bc855=_0x2ff9c4;let _0x15c093={};const _0x5a9a74={},_0x1eb8b4={'count':0x0,'rows':[]},_0x49649c=_[_0x2bc855('0x16')](db[_0x2bc855('0x3')]['rawAttributes'],function(_0x3ca96c){const _0x52a10b=_0x2bc855;return{'name':_0x3ca96c[_0x52a10b('0xe')],'type':_0x3ca96c[_0x52a10b('0x33')][_0x52a10b('0x5')]};});_0x5a9a74[_0x2bc855('0x2')]=_[_0x2bc855('0x16')](_0x49649c,_0x2bc855('0x3b')),_0x5a9a74[_0x2bc855('0xc')]=_['keys'](_0x11b7a4['query']),_0x5a9a74[_0x2bc855('0x3a')]=_[_0x2bc855('0x41')](_0x5a9a74[_0x2bc855('0x2')],_0x5a9a74['query']),_0x15c093['attributes']=_[_0x2bc855('0x41')](_0x5a9a74['model'],qs[_0x2bc855('0x3d')](_0x11b7a4[_0x2bc855('0xc')][_0x2bc855('0x3d')])),_0x15c093[_0x2bc855('0x30')]=_0x15c093[_0x2bc855('0x30')][_0x2bc855('0x28')]?_0x15c093[_0x2bc855('0x30')]:_0x5a9a74[_0x2bc855('0x2')];typeof _0x11b7a4['query'][_0x2bc855('0x21')]===_0x2bc855('0x34')&&(_0x15c093[_0x2bc855('0x13')]=qs[_0x2bc855('0x13')](_0x11b7a4[_0x2bc855('0xc')]['limit']),_0x15c093[_0x2bc855('0x3f')]=qs['offset'](_0x11b7a4['query']['offset']));_0x15c093[_0x2bc855('0x37')]=qs['sort'](_0x11b7a4[_0x2bc855('0xc')][_0x2bc855('0x1b')]),_0x15c093[_0x2bc855('0x38')]=qs[_0x2bc855('0x3a')](_['pick'](_0x11b7a4['query'],_0x5a9a74[_0x2bc855('0x3a')]),_0x49649c);_0x11b7a4['query'][_0x2bc855('0x11')]&&(_0x15c093[_0x2bc855('0x38')]=_[_0x2bc855('0x24')](_0x15c093['where'],{[Op['or']]:_[_0x2bc855('0x16')](_0x49649c,function(_0x570b27){const _0x3f2729=_0x2bc855;if(_0x570b27[_0x3f2729('0x33')]!=='VIRTUAL'){const _0x4d4627={};return _0x4d4627[_0x570b27[_0x3f2729('0x3b')]]={[Op[_0x3f2729('0x29')]]:'%'+_0x11b7a4[_0x3f2729('0xc')][_0x3f2729('0x11')]+'%'},_0x4d4627;}})}));_0x15c093=_[_0x2bc855('0x24')]({},_0x15c093,_0x11b7a4[_0x2bc855('0x35')]);const _0x54353c={'where':_0x15c093[_0x2bc855('0x38')]};return db[_0x2bc855('0x3')][_0x2bc855('0x40')](_0x54353c)['then'](function(_0x183b4c){const _0x4456eb=_0x2bc855;return _0x1eb8b4[_0x4456eb('0x40')]=_0x183b4c,_0x11b7a4[_0x4456eb('0xc')][_0x4456eb('0x4a')]&&(_0x15c093[_0x4456eb('0xd')]=[{'all':!![]}]),db['ChatInternalMessage'][_0x4456eb('0xf')](_0x15c093);})['then'](function(_0x43bddd){const _0x4edb16=_0x2bc855;return _0x1eb8b4[_0x4edb16('0x2c')]=_0x43bddd,_0x1eb8b4;})['then'](respondWithFilteredResult(_0x42dbcb,_0x15c093))[_0x2bc855('0x6')](handleError(_0x42dbcb,null));},exports[_0x2ff9c4('0x26')]=function(_0x1240e2,_0x12977b){const _0x111cff=_0x2ff9c4;let _0x15deeb={'raw':!![],'where':{'id':_0x1240e2[_0x111cff('0x15')]['id']}};const _0x20c651={};return _0x20c651['model']=_[_0x111cff('0x2e')](db['ChatInternalMessage'][_0x111cff('0x3e')]),_0x20c651['query']=_[_0x111cff('0x2e')](_0x1240e2[_0x111cff('0xc')]),_0x20c651[_0x111cff('0x3a')]=_[_0x111cff('0x41')](_0x20c651[_0x111cff('0x2')],_0x20c651[_0x111cff('0xc')]),_0x15deeb[_0x111cff('0x30')]=_['intersection'](_0x20c651[_0x111cff('0x2')],qs['fields'](_0x1240e2[_0x111cff('0xc')][_0x111cff('0x3d')])),_0x15deeb[_0x111cff('0x30')]=_0x15deeb['attributes']['length']?_0x15deeb[_0x111cff('0x30')]:_0x20c651[_0x111cff('0x2')],_0x1240e2[_0x111cff('0xc')][_0x111cff('0x4a')]&&(_0x15deeb[_0x111cff('0xd')]=[{'all':!![]}]),_0x15deeb=_['merge']({},_0x15deeb,_0x1240e2[_0x111cff('0x35')]),db[_0x111cff('0x3')][_0x111cff('0x1f')](_0x15deeb)[_0x111cff('0x46')](handleEntityNotFound(_0x12977b,null))[_0x111cff('0x46')](respondWithResult(_0x12977b,null))[_0x111cff('0x6')](handleError(_0x12977b,null));},exports['create']=function(_0x5cd713,_0x3841cd){const _0x57cebd=_0x2ff9c4;return db[_0x57cebd('0x3')]['create'](_0x5cd713[_0x57cebd('0x1d')],{})[_0x57cebd('0x46')](respondWithResult(_0x3841cd,0xc9))[_0x57cebd('0x6')](handleError(_0x3841cd,null));},exports['update']=function(_0x14329c,_0x2a4d45){const _0x5e85d6=_0x2ff9c4;return _0x14329c['body']['id']&&delete _0x14329c[_0x5e85d6('0x1d')]['id'],db[_0x5e85d6('0x3')][_0x5e85d6('0x1f')]({'where':{'id':_0x14329c['params']['id']}})[_0x5e85d6('0x46')](handleEntityNotFound(_0x2a4d45,null))[_0x5e85d6('0x46')](saveUpdates(_0x14329c[_0x5e85d6('0x1d')],null))[_0x5e85d6('0x46')](respondWithResult(_0x2a4d45,null))[_0x5e85d6('0x6')](handleError(_0x2a4d45,null));},exports[_0x2ff9c4('0x2a')]=function(_0x12f799,_0x11df7b){const _0x4c0a04=_0x2ff9c4;return db[_0x4c0a04('0x3')][_0x4c0a04('0x1f')]({'where':{'id':_0x12f799['params']['id']}})[_0x4c0a04('0x46')](handleEntityNotFound(_0x11df7b,null))[_0x4c0a04('0x46')](removeEntity(_0x11df7b,null))[_0x4c0a04('0x6')](handleError(_0x11df7b,null));},exports[_0x2ff9c4('0x4b')]=function(_0x28db2b,_0x57670e){const _0x64d5e9=_0x2ff9c4;return db['ChatInternalMessage'][_0x64d5e9('0x4b')]()[_0x64d5e9('0x46')](respondWithResult(_0x57670e,null))['catch'](handleError(_0x57670e,null));};function wrapUser(_0x367466){return function(_0x1666e2){const _0x501003=a73_0x496a,_0x55936a=_0x367466['get']({'plain':!![]});return _0x55936a[_0x501003('0x27')]=[],_0x1666e2?(_0x55936a[_0x501003('0x31')]=_0x1666e2['createdAt'],_0x55936a[_0x501003('0x25')]=_0x1666e2):(_0x55936a[_0x501003('0x31')]=moment(0x0)[_0x501003('0x32')]('YYYY-MM-DD\x20HH:mm:ss'),_0x55936a[_0x501003('0x25')]={}),_0x55936a;};}exports[_0x2ff9c4('0x4d')]=function(_0x30df2e,_0xfae184){const _0x4257e1=_0x2ff9c4;let _0x2ab432=[];return db[_0x4257e1('0xa')][_0x4257e1('0xf')]({'where':{'role':[_0x4257e1('0x1c'),_0x4257e1('0x48'),_0x4257e1('0x1e')]},'attributes':['id',_0x4257e1('0x12'),_0x4257e1('0x3b'),_0x4257e1('0x1a'),_0x4257e1('0x36'),'internal',_0x4257e1('0x10'),_0x4257e1('0x18'),_0x4257e1('0x17'),_0x4257e1('0x0')],'order':qs[_0x4257e1('0x1b')]('-online'),'include':[{'model':db['VoiceQueue'],'as':'VoiceQueues','attributes':['id',_0x4257e1('0x3b'),_0x4257e1('0x33')],'through':{'attributes':[]}}]})[_0x4257e1('0x46')](function(_0xd1d894){const _0x2ff98e=_0x4257e1;if(_0xd1d894){const _0x272529=_0x30df2e[_0x2ff98e('0x1e')][_0x2ff98e('0x45')]({'plain':!![]});if(!_0x272529)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');return _0x272529[_0x2ff98e('0x1a')]===_0x2ff98e('0x1e')?db[_0x2ff98e('0x43')]['findOne']({'where':{'name':_0x2ff98e('0x20'),'userProfileId':_0x272529[_0x2ff98e('0x1')]},'raw':!![]})[_0x2ff98e('0x46')](function(_0xa6dec3){const _0x161c41=_0x2ff98e;if(_0xa6dec3)return _0xa6dec3[_0x161c41('0x19')]===0x0?db[_0x161c41('0x22')][_0x161c41('0xf')]({'where':{'sectionId':_0xa6dec3['id']},'raw':!![]})[_0x161c41('0x46')](function(_0x349105){const _0x343e24=_0x161c41;let _0xc59cb9=[];if(_['isEmpty'](_0x349105))return _0xc59cb9=_[_0x343e24('0x11')](_0xd1d894,function(_0x4ea39e){const _0x35d812=_0x343e24;if(_0x4ea39e[_0x35d812('0x1a')]!==_0x35d812('0x1c'))return _0x4ea39e;}),_0xc59cb9;else{for(let _0x260498=0x0;_0x260498<_0xd1d894['length'];_0x260498++){const _0x52fa02=_0xd1d894[_0x260498];if(_0x52fa02[_0x343e24('0x1a')]===_0x343e24('0x1c')){const _0x23671e=_[_0x343e24('0x4f')](_0x349105,function(_0x28a051){const _0x26789e=_0x343e24;return _0x28a051[_0x26789e('0x3c')]===_0x52fa02['id'];});if(_0x23671e)_0xc59cb9['push'](_0x52fa02);}else _0xc59cb9[_0x343e24('0x49')](_0x52fa02);}return _0xc59cb9;}}):_0xd1d894;else{const _0x4e73c2=_['filter'](_0xd1d894,function(_0x5a9893){const _0x16b48f=_0x161c41;if(_0x5a9893[_0x16b48f('0x1a')]!==_0x16b48f('0x1c'))return _0x5a9893;});return _0x4e73c2;}}):_0xd1d894;}})['then'](function(_0xb997f4){const _0x10aeaa=_0x4257e1,_0x25f68f=[];if(_0xb997f4){_0x2ab432=_0xb997f4;for(let _0x11112c=0x0;_0x11112c<_0xb997f4['length'];_0x11112c+=0x1){_0x2ab432[_0x11112c][_0x10aeaa('0x27')]=[],_0x25f68f[_0x10aeaa('0x49')](db[_0x10aeaa('0x3')][_0x10aeaa('0x1f')]({'where':{'FromId':[_0x30df2e['user']['id'],_0xb997f4[_0x11112c]['id']],'ToId':[_0x30df2e[_0x10aeaa('0x1e')]['id'],_0xb997f4[_0x11112c]['id']],'ChatGroupId':null},'attributes':['id','createdAt','FromId',_0x10aeaa('0x47'),'read',_0x10aeaa('0x1d')],'order':qs['sort']('-createdAt'),'limit':0x1,'offset':0x0,'raw':!![]})['then'](wrapUser(_0xb997f4[_0x11112c])));}return Promise['all'](_0x25f68f);}return[];})['then'](function(_0x2918a4){const _0x30c4e8=_0x4257e1;return{'rows':_0x2918a4,'count':_0x2918a4[_0x30c4e8('0x28')]};})['then'](respondWithResult(_0xfae184,null))[_0x4257e1('0x6')](handleError(_0xfae184,null));}; \ No newline at end of file +const a73_0xa135=['resourceId','messages','name','userProfileId','../../config/logger','nolimit','lastLoginAt','show','VoiceQueues','getUsers','status','catch','sequelize','create','ToId','format','lodash','set','UserProfileResource','offset','type','role','moment','fullname','ChatInternalMessage','api','../../rediscache','update','filters','YYYY-MM-DD\x20HH:mm:ss','order','params','send','merge','UserProfileSection','rawAttributes','User','register','VoiceQueue','filter','all','./chatInternalMessage.socket','lastMessage','count','model','where','../../mysqldb','-createdAt','map','findAll','body','end','length','showWebBar','lastMessageAt','get','error','admin','limit','include','json','-online','fieldName','sort','rows','Agents','findOne','query','fields','undefined','createdAt','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../components/parsers/qs','find','online','attributes','includeAll','user','stack','keys','then','key','agent','destroy','intersection','read'];(function(_0x3f6c8f,_0xa13529){const _0x54c985=function(_0x24fe99){while(--_0x24fe99){_0x3f6c8f['push'](_0x3f6c8f['shift']());}};_0x54c985(++_0xa13529);}(a73_0xa135,0x6e));const a73_0x54c9=function(_0x3f6c8f,_0xa13529){_0x3f6c8f=_0x3f6c8f-0x0;let _0x54c985=a73_0xa135[_0x3f6c8f];return _0x54c985;};const _0x5d255e=a73_0x54c9;'use strict';const moment=require(_0x5d255e('0x54')),_=require(_0x5d255e('0x4e')),qs=require(_0x5d255e('0x30')),logger=require(_0x5d255e('0x42'))(_0x5d255e('0x1')),{getSocket}=require(_0x5d255e('0x2')),db=require(_0x5d255e('0x16'))['db'],{Op}=require(_0x5d255e('0x4a')),socket=getSocket();require(_0x5d255e('0x11'))[_0x5d255e('0xd')](socket);function respondWithResult(_0x24fe99,_0x13cebc){return _0x13cebc=_0x13cebc||0xc8,function(_0x46921c){const _0x288108=a73_0x54c9;if(_0x46921c)return _0x24fe99[_0x288108('0x48')](_0x13cebc)[_0x288108('0x24')](_0x46921c);};}function respondWithFilteredResult(_0x45e2cf,_0x343c30){return function(_0x425963){const _0xc9fd21=a73_0x54c9;if(_0x425963){const _0x1246be=_0x425963[_0xc9fd21('0x13')],_0x15a7bd=_0x343c30['offset'];let _0x56d0e1=_0x343c30[_0xc9fd21('0x51')]+_0x343c30[_0xc9fd21('0x22')],_0x3dc121;return _0x56d0e1>=_0x1246be?(_0x56d0e1=_0x1246be,_0x3dc121=0xc8):_0x3dc121=0xce,_0x45e2cf[_0xc9fd21('0x48')](_0x3dc121),_0x45e2cf[_0xc9fd21('0x4f')]('Content-Range',_0x15a7bd+'-'+_0x56d0e1+'/'+_0x1246be)[_0xc9fd21('0x24')](_0x425963);}return null;};}function saveUpdates(_0x4b9e65){return function(_0x27f3de){if(_0x27f3de)return _0x27f3de['update'](_0x4b9e65)['then'](function(_0x132b77){return _0x132b77;});return null;};}function removeEntity(_0x5ee5f5){return function(_0xd49bc){const _0x27920d=a73_0x54c9;if(_0xd49bc)return _0xd49bc[_0x27920d('0x3b')]()['then'](function(){const _0x215ad6=_0x27920d;_0x5ee5f5[_0x215ad6('0x48')](0xcc)[_0x215ad6('0x1b')]();});};}function handleEntityNotFound(_0x5c93d0){return function(_0x3dabde){return!_0x3dabde&&_0x5c93d0['sendStatus'](0x194),_0x3dabde;};}function handleError(_0x2cffbb,_0x68352d){return _0x68352d=_0x68352d||0x1f4,function(_0x14a0eb){const _0x23868d=a73_0x54c9;logger[_0x23868d('0x20')](_0x14a0eb[_0x23868d('0x36')]),_0x14a0eb[_0x23868d('0x40')]&&delete _0x14a0eb[_0x23868d('0x40')],_0x2cffbb[_0x23868d('0x48')](_0x68352d)[_0x23868d('0x8')](_0x14a0eb);};}exports['index']=function(_0x4ccc9a,_0x4c5223){const _0x257b48=_0x5d255e;let _0x110fd1={};const _0x17769c={},_0x449e41={'count':0x0,'rows':[]},_0x5072ef=_[_0x257b48('0x18')](db['ChatInternalMessage'][_0x257b48('0xb')],function(_0x2f3b60){const _0x48e31d=_0x257b48;return{'name':_0x2f3b60[_0x48e31d('0x26')],'type':_0x2f3b60[_0x48e31d('0x52')][_0x48e31d('0x39')]};});_0x17769c['model']=_[_0x257b48('0x18')](_0x5072ef,_0x257b48('0x40')),_0x17769c[_0x257b48('0x2b')]=_[_0x257b48('0x37')](_0x4ccc9a[_0x257b48('0x2b')]),_0x17769c[_0x257b48('0x4')]=_[_0x257b48('0x3c')](_0x17769c[_0x257b48('0x14')],_0x17769c['query']),_0x110fd1[_0x257b48('0x33')]=_['intersection'](_0x17769c['model'],qs['fields'](_0x4ccc9a[_0x257b48('0x2b')][_0x257b48('0x2c')])),_0x110fd1['attributes']=_0x110fd1['attributes'][_0x257b48('0x1c')]?_0x110fd1['attributes']:_0x17769c[_0x257b48('0x14')];typeof _0x4ccc9a[_0x257b48('0x2b')][_0x257b48('0x43')]===_0x257b48('0x2d')&&(_0x110fd1['limit']=qs['limit'](_0x4ccc9a['query']['limit']),_0x110fd1[_0x257b48('0x51')]=qs['offset'](_0x4ccc9a[_0x257b48('0x2b')]['offset']));_0x110fd1[_0x257b48('0x6')]=qs[_0x257b48('0x27')](_0x4ccc9a[_0x257b48('0x2b')][_0x257b48('0x27')]),_0x110fd1['where']=qs['filters'](_['pick'](_0x4ccc9a['query'],_0x17769c[_0x257b48('0x4')]),_0x5072ef);_0x4ccc9a[_0x257b48('0x2b')][_0x257b48('0xf')]&&(_0x110fd1['where']=_[_0x257b48('0x9')](_0x110fd1[_0x257b48('0x15')],{[Op['or']]:_[_0x257b48('0x18')](_0x5072ef,function(_0x362889){const _0x373c4c=_0x257b48;if(_0x362889['type']!=='VIRTUAL'){const _0x1a8472={};return _0x1a8472[_0x362889[_0x373c4c('0x40')]]={[Op['like']]:'%'+_0x4ccc9a[_0x373c4c('0x2b')][_0x373c4c('0xf')]+'%'},_0x1a8472;}})}));_0x110fd1=_[_0x257b48('0x9')]({},_0x110fd1,_0x4ccc9a['options']);const _0x358bda={'where':_0x110fd1[_0x257b48('0x15')]};return db['ChatInternalMessage'][_0x257b48('0x13')](_0x358bda)['then'](function(_0x11856a){const _0x30d830=_0x257b48;return _0x449e41['count']=_0x11856a,_0x4ccc9a['query'][_0x30d830('0x34')]&&(_0x110fd1[_0x30d830('0x23')]=[{'all':!![]}]),db['ChatInternalMessage'][_0x30d830('0x19')](_0x110fd1);})['then'](function(_0x375130){const _0x48ba96=_0x257b48;return _0x449e41[_0x48ba96('0x28')]=_0x375130,_0x449e41;})[_0x257b48('0x38')](respondWithFilteredResult(_0x4c5223,_0x110fd1))[_0x257b48('0x49')](handleError(_0x4c5223,null));},exports[_0x5d255e('0x45')]=function(_0x2a8c70,_0x47b6b6){const _0x50370d=_0x5d255e;let _0x2df360={'raw':!![],'where':{'id':_0x2a8c70[_0x50370d('0x7')]['id']}};const _0x373147={};return _0x373147[_0x50370d('0x14')]=_[_0x50370d('0x37')](db[_0x50370d('0x0')][_0x50370d('0xb')]),_0x373147[_0x50370d('0x2b')]=_[_0x50370d('0x37')](_0x2a8c70['query']),_0x373147[_0x50370d('0x4')]=_[_0x50370d('0x3c')](_0x373147[_0x50370d('0x14')],_0x373147[_0x50370d('0x2b')]),_0x2df360['attributes']=_['intersection'](_0x373147['model'],qs[_0x50370d('0x2c')](_0x2a8c70[_0x50370d('0x2b')][_0x50370d('0x2c')])),_0x2df360[_0x50370d('0x33')]=_0x2df360[_0x50370d('0x33')][_0x50370d('0x1c')]?_0x2df360['attributes']:_0x373147['model'],_0x2a8c70[_0x50370d('0x2b')][_0x50370d('0x34')]&&(_0x2df360[_0x50370d('0x23')]=[{'all':!![]}]),_0x2df360=_[_0x50370d('0x9')]({},_0x2df360,_0x2a8c70['options']),db['ChatInternalMessage']['findOne'](_0x2df360)[_0x50370d('0x38')](handleEntityNotFound(_0x47b6b6,null))[_0x50370d('0x38')](respondWithResult(_0x47b6b6,null))[_0x50370d('0x49')](handleError(_0x47b6b6,null));},exports[_0x5d255e('0x4b')]=function(_0x45c0ef,_0x21ec74){const _0x284c10=_0x5d255e;return db['ChatInternalMessage'][_0x284c10('0x4b')](_0x45c0ef[_0x284c10('0x1a')],{})[_0x284c10('0x38')](respondWithResult(_0x21ec74,0xc9))[_0x284c10('0x49')](handleError(_0x21ec74,null));},exports[_0x5d255e('0x3')]=function(_0x44e94e,_0x952f39){const _0x1c4c65=_0x5d255e;return _0x44e94e[_0x1c4c65('0x1a')]['id']&&delete _0x44e94e[_0x1c4c65('0x1a')]['id'],db['ChatInternalMessage']['findOne']({'where':{'id':_0x44e94e['params']['id']}})[_0x1c4c65('0x38')](handleEntityNotFound(_0x952f39,null))[_0x1c4c65('0x38')](saveUpdates(_0x44e94e[_0x1c4c65('0x1a')],null))[_0x1c4c65('0x38')](respondWithResult(_0x952f39,null))[_0x1c4c65('0x49')](handleError(_0x952f39,null));},exports['destroy']=function(_0xfd5734,_0x286af7){const _0x41c0b5=_0x5d255e;return db[_0x41c0b5('0x0')]['findOne']({'where':{'id':_0xfd5734[_0x41c0b5('0x7')]['id']}})[_0x41c0b5('0x38')](handleEntityNotFound(_0x286af7,null))[_0x41c0b5('0x38')](removeEntity(_0x286af7,null))[_0x41c0b5('0x49')](handleError(_0x286af7,null));},exports['describe']=function(_0x34f349,_0x746b05){const _0x4d60f0=_0x5d255e;return db['ChatInternalMessage']['describe']()['then'](respondWithResult(_0x746b05,null))[_0x4d60f0('0x49')](handleError(_0x746b05,null));};function wrapUser(_0x67dca5){return function(_0xe3d19e){const _0x3db5d9=a73_0x54c9,_0x438252=_0x67dca5[_0x3db5d9('0x1f')]({'plain':!![]});return _0x438252['messages']=[],_0xe3d19e?(_0x438252['lastMessageAt']=_0xe3d19e[_0x3db5d9('0x2e')],_0x438252[_0x3db5d9('0x12')]=_0xe3d19e):(_0x438252[_0x3db5d9('0x1e')]=moment(0x0)[_0x3db5d9('0x4d')](_0x3db5d9('0x5')),_0x438252['lastMessage']={}),_0x438252;};}exports[_0x5d255e('0x47')]=function(_0x323c31,_0x2cf913){const _0x2b7a99=_0x5d255e;let _0x100672=[];return db[_0x2b7a99('0xc')][_0x2b7a99('0x19')]({'where':{'role':[_0x2b7a99('0x3a'),_0x2b7a99('0x21'),_0x2b7a99('0x35')]},'attributes':['id',_0x2b7a99('0x55'),'name',_0x2b7a99('0x53'),'userpic','internal',_0x2b7a99('0x32'),_0x2b7a99('0x44'),'allowmessenger',_0x2b7a99('0x1d')],'order':qs[_0x2b7a99('0x27')](_0x2b7a99('0x25')),'include':[{'model':db[_0x2b7a99('0xe')],'as':_0x2b7a99('0x46'),'attributes':['id',_0x2b7a99('0x40'),'type'],'through':{'attributes':[]}}]})['then'](function(_0x4ff26c){const _0x4bd1ca=_0x2b7a99;if(_0x4ff26c){const _0x3489dc=_0x323c31[_0x4bd1ca('0x35')][_0x4bd1ca('0x1f')]({'plain':!![]});if(!_0x3489dc)throw new Error(_0x4bd1ca('0x2f'));return _0x3489dc[_0x4bd1ca('0x53')]===_0x4bd1ca('0x35')?db[_0x4bd1ca('0xa')][_0x4bd1ca('0x2a')]({'where':{'name':_0x4bd1ca('0x29'),'userProfileId':_0x3489dc[_0x4bd1ca('0x41')]},'raw':!![]})[_0x4bd1ca('0x38')](function(_0x1f9654){const _0xd0a21d=_0x4bd1ca;if(_0x1f9654)return _0x1f9654['autoAssociation']===0x0?db[_0xd0a21d('0x50')]['findAll']({'where':{'sectionId':_0x1f9654['id']},'raw':!![]})[_0xd0a21d('0x38')](function(_0x40d790){const _0x18dad0=_0xd0a21d;let _0x3bdba6=[];if(_['isEmpty'](_0x40d790))return _0x3bdba6=_['filter'](_0x4ff26c,function(_0x2700e9){const _0x2037fc=a73_0x54c9;if(_0x2700e9['role']!==_0x2037fc('0x3a'))return _0x2700e9;}),_0x3bdba6;else{for(let _0x249347=0x0;_0x249347<_0x4ff26c[_0x18dad0('0x1c')];_0x249347++){const _0x5cc8ac=_0x4ff26c[_0x249347];if(_0x5cc8ac['role']===_0x18dad0('0x3a')){const _0x504367=_[_0x18dad0('0x31')](_0x40d790,function(_0x13b676){const _0x34e2fb=_0x18dad0;return _0x13b676[_0x34e2fb('0x3e')]===_0x5cc8ac['id'];});if(_0x504367)_0x3bdba6['push'](_0x5cc8ac);}else _0x3bdba6['push'](_0x5cc8ac);}return _0x3bdba6;}}):_0x4ff26c;else{const _0x2cd26a=_[_0xd0a21d('0xf')](_0x4ff26c,function(_0x35628d){const _0x4c0043=_0xd0a21d;if(_0x35628d[_0x4c0043('0x53')]!=='agent')return _0x35628d;});return _0x2cd26a;}}):_0x4ff26c;}})['then'](function(_0x16e193){const _0x42be25=_0x2b7a99,_0x3a130f=[];if(_0x16e193){_0x100672=_0x16e193;for(let _0x19a8f4=0x0;_0x19a8f4<_0x16e193[_0x42be25('0x1c')];_0x19a8f4+=0x1){_0x100672[_0x19a8f4][_0x42be25('0x3f')]=[],_0x3a130f['push'](db[_0x42be25('0x0')][_0x42be25('0x2a')]({'where':{'FromId':[_0x323c31[_0x42be25('0x35')]['id'],_0x16e193[_0x19a8f4]['id']],'ToId':[_0x323c31[_0x42be25('0x35')]['id'],_0x16e193[_0x19a8f4]['id']],'ChatGroupId':null},'attributes':['id',_0x42be25('0x2e'),'FromId',_0x42be25('0x4c'),_0x42be25('0x3d'),_0x42be25('0x1a')],'order':qs[_0x42be25('0x27')](_0x42be25('0x17')),'limit':0x1,'offset':0x0,'raw':!![]})[_0x42be25('0x38')](wrapUser(_0x16e193[_0x19a8f4])));}return Promise[_0x42be25('0x10')](_0x3a130f);}return[];})[_0x2b7a99('0x38')](function(_0x4cdb0e){const _0x1a72ec=_0x2b7a99;return{'rows':_0x4cdb0e,'count':_0x4cdb0e[_0x1a72ec('0x1c')]};})[_0x2b7a99('0x38')](respondWithResult(_0x2cf913,null))[_0x2b7a99('0x49')](handleError(_0x2cf913,null));}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.events.js b/server/api/chatInternalMessage/chatInternalMessage.events.js index f089010..93e8754 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.events.js +++ b/server/api/chatInternalMessage/chatInternalMessage.events.js @@ -1 +1 @@ -const a74_0x2d60=['remove','emit','addHook','setMaxListeners','ChatInternalMessage','update','save','undefined','../../mysqldb'];(function(_0x426781,_0x2d602d){const _0x17e8c9=function(_0x58d212){while(--_0x58d212){_0x426781['push'](_0x426781['shift']());}};_0x17e8c9(++_0x2d602d);}(a74_0x2d60,0x12c));const a74_0x17e8=function(_0x426781,_0x2d602d){_0x426781=_0x426781-0x0;let _0x17e8c9=a74_0x2d60[_0x426781];return _0x17e8c9;};const _0x419270=a74_0x17e8;'use strict';const EventEmitter=require('events'),ChatInternalMessage=require(_0x419270('0x5'))['db'][_0x419270('0x1')],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0x419270('0x0')](0x0);const events={'afterCreate':_0x419270('0x3'),'afterUpdate':_0x419270('0x2'),'afterDestroy':_0x419270('0x6')};function emitEvent(_0x58d212){return function(_0x439872){const _0x2c2a01=a74_0x17e8;ChatInternalMessageEvents[_0x2c2a01('0x7')](_0x58d212+':'+_0x439872['id'],_0x439872),ChatInternalMessageEvents['emit'](_0x58d212,_0x439872);};}for(const e in events){if(typeof events[e]!==_0x419270('0x4')){const event=events[e];ChatInternalMessage[_0x419270('0x8')](e,emitEvent(event));}}module['exports']=ChatInternalMessageEvents; \ No newline at end of file +const a74_0x4f4d=['ChatInternalMessage','setMaxListeners','remove','events','addHook','undefined','save','../../mysqldb','update','emit'];(function(_0x2158e2,_0x4f4dc1){const _0x3987d3=function(_0x14f055){while(--_0x14f055){_0x2158e2['push'](_0x2158e2['shift']());}};_0x3987d3(++_0x4f4dc1);}(a74_0x4f4d,0x134));const a74_0x3987=function(_0x2158e2,_0x4f4dc1){_0x2158e2=_0x2158e2-0x0;let _0x3987d3=a74_0x4f4d[_0x2158e2];return _0x3987d3;};const _0x467898=a74_0x3987;'use strict';const EventEmitter=require(_0x467898('0x5')),ChatInternalMessage=require(_0x467898('0x9'))['db'][_0x467898('0x2')],ChatInternalMessageEvents=new EventEmitter();ChatInternalMessageEvents[_0x467898('0x3')](0x0);const events={'afterCreate':_0x467898('0x8'),'afterUpdate':_0x467898('0x0'),'afterDestroy':_0x467898('0x4')};function emitEvent(_0x14f055){return function(_0x2644dc){const _0x3fae85=a74_0x3987;ChatInternalMessageEvents['emit'](_0x14f055+':'+_0x2644dc['id'],_0x2644dc),ChatInternalMessageEvents[_0x3fae85('0x1')](_0x14f055,_0x2644dc);};}for(const e in events){if(typeof events[e]!==_0x467898('0x7')){const event=events[e];ChatInternalMessage[_0x467898('0x6')](e,emitEvent(event));}}module['exports']=ChatInternalMessageEvents; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.model.js b/server/api/chatInternalMessage/chatInternalMessage.model.js index b1dca68..9084940 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.model.js +++ b/server/api/chatInternalMessage/chatInternalMessage.model.js @@ -1 +1 @@ -const a75_0x19c3=['utf8mb4_unicode_ci','./chatInternalMessage.attributes','define','chat_internal_messages'];(function(_0x5eb132,_0x19c38b){const _0x49271d=function(_0x986e0e){while(--_0x986e0e){_0x5eb132['push'](_0x5eb132['shift']());}};_0x49271d(++_0x19c38b);}(a75_0x19c3,0xb0));const a75_0x4927=function(_0x5eb132,_0x19c38b){_0x5eb132=_0x5eb132-0x0;let _0x49271d=a75_0x19c3[_0x5eb132];return _0x49271d;};const _0x3081b3=a75_0x4927;'use strict';const attributes=require(_0x3081b3('0x1'));module['exports']=function(_0x986e0e){const _0x8d1f7c=_0x3081b3,_0x29990b=_0x986e0e[_0x8d1f7c('0x2')]('ChatInternalMessage',attributes,{'tableName':_0x8d1f7c('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x8d1f7c('0x0')});return _0x29990b;}; \ No newline at end of file +const a75_0x1549=['utf8mb4_unicode_ci','chat_internal_messages','utf8mb4','ChatInternalMessage','define'];(function(_0x37f28c,_0x154931){const _0xc4134e=function(_0x36a9b1){while(--_0x36a9b1){_0x37f28c['push'](_0x37f28c['shift']());}};_0xc4134e(++_0x154931);}(a75_0x1549,0x1de));const a75_0xc413=function(_0x37f28c,_0x154931){_0x37f28c=_0x37f28c-0x0;let _0xc4134e=a75_0x1549[_0x37f28c];return _0xc4134e;};'use strict';const attributes=require('./chatInternalMessage.attributes');module['exports']=function(_0x36a9b1){const _0x3f7b90=a75_0xc413,_0x326794=_0x36a9b1[_0x3f7b90('0x1')](_0x3f7b90('0x0'),attributes,{'tableName':_0x3f7b90('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3f7b90('0x4'),'collate':_0x3f7b90('0x2')});return _0x326794;}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.rpc.js b/server/api/chatInternalMessage/chatInternalMessage.rpc.js index 921e53b..6be44fc 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.rpc.js +++ b/server/api/chatInternalMessage/chatInternalMessage.rpc.js @@ -1 +1 @@ -const a76_0x635c=['./chatInternalMessage.socket','register','../../rediscache'];(function(_0x413da8,_0x635ca6){const _0x381237=function(_0x29f7a4){while(--_0x29f7a4){_0x413da8['push'](_0x413da8['shift']());}};_0x381237(++_0x635ca6);}(a76_0x635c,0x13e));const a76_0x3812=function(_0x413da8,_0x635ca6){_0x413da8=_0x413da8-0x0;let _0x381237=a76_0x635c[_0x413da8];return _0x381237;};const _0x53dedb=a76_0x3812;'use strict';const {getSocket}=require(_0x53dedb('0x2')),socket=getSocket();require(_0x53dedb('0x0'))[_0x53dedb('0x1')](socket); \ No newline at end of file +const a76_0x14a8=['./chatInternalMessage.socket','../../rediscache'];(function(_0x28cc5a,_0x14a8fe){const _0xd12126=function(_0x3faeab){while(--_0x3faeab){_0x28cc5a['push'](_0x28cc5a['shift']());}};_0xd12126(++_0x14a8fe);}(a76_0x14a8,0x1ae));const a76_0xd121=function(_0x28cc5a,_0x14a8fe){_0x28cc5a=_0x28cc5a-0x0;let _0xd12126=a76_0x14a8[_0x28cc5a];return _0xd12126;};const _0x5b060a=a76_0xd121;'use strict';const {getSocket}=require(_0x5b060a('0x1')),socket=getSocket();require(_0x5b060a('0x0'))['register'](socket); \ No newline at end of file diff --git a/server/api/chatInternalMessage/chatInternalMessage.socket.js b/server/api/chatInternalMessage/chatInternalMessage.socket.js index cb6063e..c3fc5d2 100644 --- a/server/api/chatInternalMessage/chatInternalMessage.socket.js +++ b/server/api/chatInternalMessage/chatInternalMessage.socket.js @@ -1 +1 @@ -const a77_0x5698=['emit','length','remove','update','save','chatInternalMessage:','./chatInternalMessage.events'];(function(_0xf315f5,_0x56981c){const _0x2fa172=function(_0x284dd6){while(--_0x284dd6){_0xf315f5['push'](_0xf315f5['shift']());}};_0x2fa172(++_0x56981c);}(a77_0x5698,0x17d));const a77_0x2fa1=function(_0xf315f5,_0x56981c){_0xf315f5=_0xf315f5-0x0;let _0x2fa172=a77_0x5698[_0xf315f5];return _0x2fa172;};const _0x42d415=a77_0x2fa1;'use strict';const ChatInternalMessageEvents=require(_0x42d415('0x3')),events=[_0x42d415('0x1'),_0x42d415('0x6'),_0x42d415('0x0')];function createListener(_0x284dd6,_0x33182b){return function(_0xfd5f8d){const _0x3d2085=a77_0x2fa1;_0x33182b[_0x3d2085('0x4')](_0x284dd6,_0xfd5f8d);};}exports['register']=function(_0x2a8df9){const _0x58e162=_0x42d415;for(let _0x5dafe6=0x0,_0x1bf375=events[_0x58e162('0x5')];_0x5dafe6<_0x1bf375;_0x5dafe6++){const _0x966764=events[_0x5dafe6],_0x31db63=createListener(_0x58e162('0x2')+_0x966764,_0x2a8df9);ChatInternalMessageEvents['on'](_0x966764,_0x31db63);}}; \ No newline at end of file +const a77_0x7b7e=['remove','./chatInternalMessage.events','emit','length','chatInternalMessage:','register','save','update'];(function(_0x316510,_0x7b7e16){const _0x166bd7=function(_0x474632){while(--_0x474632){_0x316510['push'](_0x316510['shift']());}};_0x166bd7(++_0x7b7e16);}(a77_0x7b7e,0xab));const a77_0x166b=function(_0x316510,_0x7b7e16){_0x316510=_0x316510-0x0;let _0x166bd7=a77_0x7b7e[_0x316510];return _0x166bd7;};const _0x3dce36=a77_0x166b;'use strict';const ChatInternalMessageEvents=require(_0x3dce36('0x6')),events=[_0x3dce36('0x3'),_0x3dce36('0x5'),_0x3dce36('0x4')];function createListener(_0x474632,_0x1b9bf1){return function(_0x234ebe){const _0x2e07e7=a77_0x166b;_0x1b9bf1[_0x2e07e7('0x7')](_0x474632,_0x234ebe);};}exports[_0x3dce36('0x2')]=function(_0x3134bb){const _0x5f1589=_0x3dce36;for(let _0x5a704f=0x0,_0x160693=events[_0x5f1589('0x0')];_0x5a704f<_0x160693;_0x5a704f++){const _0x48af0a=events[_0x5a704f],_0x245f51=createListener(_0x5f1589('0x1')+_0x48af0a,_0x3134bb);ChatInternalMessageEvents['on'](_0x48af0a,_0x245f51);}}; \ No newline at end of file diff --git a/server/api/chatInternalMessage/index.js b/server/api/chatInternalMessage/index.js index 065e22b..b6a371c 100644 --- a/server/api/chatInternalMessage/index.js +++ b/server/api/chatInternalMessage/index.js @@ -1 +1 @@ -const a78_0x183f=['create','describe','isAuthenticated','./chatInternalMessage.controller','getUsers','post','/describe','/:id','update','show','Router','get','destroy','/users','index','express','delete','put'];(function(_0x28fac2,_0x183f00){const _0x57c54e=function(_0x19e714){while(--_0x19e714){_0x28fac2['push'](_0x28fac2['shift']());}};_0x57c54e(++_0x183f00);}(a78_0x183f,0x137));const a78_0x57c5=function(_0x28fac2,_0x183f00){_0x28fac2=_0x28fac2-0x0;let _0x57c54e=a78_0x183f[_0x28fac2];return _0x57c54e;};const _0x20dd8e=a78_0x57c5;'use strict';const express=require(_0x20dd8e('0xa')),router=express[_0x20dd8e('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x20dd8e('0x10'));router[_0x20dd8e('0x6')]('/',auth[_0x20dd8e('0xf')](),controller[_0x20dd8e('0x9')]),router[_0x20dd8e('0x6')](_0x20dd8e('0x1'),auth[_0x20dd8e('0xf')](),controller[_0x20dd8e('0xe')]),router[_0x20dd8e('0x6')](_0x20dd8e('0x8'),auth[_0x20dd8e('0xf')](),controller[_0x20dd8e('0x11')]),router[_0x20dd8e('0x6')](_0x20dd8e('0x2'),auth['isAuthenticated'](),controller[_0x20dd8e('0x4')]),router[_0x20dd8e('0x0')]('/',auth[_0x20dd8e('0xf')](),controller[_0x20dd8e('0xd')]),router[_0x20dd8e('0xc')](_0x20dd8e('0x2'),controller[_0x20dd8e('0x3')]),router[_0x20dd8e('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x20dd8e('0x7')]),module['exports']=router; \ No newline at end of file +const a78_0x3c86=['express','./chatInternalMessage.controller','index','describe','put','create','get','getUsers','../../components/auth/service','exports','/users','post','/:id','update','/describe','isAuthenticated'];(function(_0x8f4156,_0x3c861d){const _0x270066=function(_0x42d569){while(--_0x42d569){_0x8f4156['push'](_0x8f4156['shift']());}};_0x270066(++_0x3c861d);}(a78_0x3c86,0x1d6));const a78_0x2700=function(_0x8f4156,_0x3c861d){_0x8f4156=_0x8f4156-0x0;let _0x270066=a78_0x3c86[_0x8f4156];return _0x270066;};const _0x2c5708=a78_0x2700;'use strict';const express=require(_0x2c5708('0xa')),router=express['Router'](),auth=require(_0x2c5708('0x2')),controller=require(_0x2c5708('0xb'));router[_0x2c5708('0x0')]('/',auth[_0x2c5708('0x9')](),controller[_0x2c5708('0xc')]),router[_0x2c5708('0x0')](_0x2c5708('0x8'),auth[_0x2c5708('0x9')](),controller[_0x2c5708('0xd')]),router[_0x2c5708('0x0')](_0x2c5708('0x4'),auth[_0x2c5708('0x9')](),controller[_0x2c5708('0x1')]),router[_0x2c5708('0x0')](_0x2c5708('0x6'),auth[_0x2c5708('0x9')](),controller['show']),router[_0x2c5708('0x5')]('/',auth[_0x2c5708('0x9')](),controller[_0x2c5708('0xf')]),router[_0x2c5708('0xe')](_0x2c5708('0x6'),controller[_0x2c5708('0x7')]),router['delete'](_0x2c5708('0x6'),auth[_0x2c5708('0x9')](),controller['destroy']),module[_0x2c5708('0x3')]=router; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.attributes.js b/server/api/chatMessage/chatMessage.attributes.js index 842c48b..c1131b3 100644 --- a/server/api/chatMessage/chatMessage.attributes.js +++ b/server/api/chatMessage/chatMessage.attributes.js @@ -1 +1 @@ -const a79_0x3852=['exports','sequelize','TEXT','out','ENUM','BOOLEAN','medium'];(function(_0x367330,_0x3852f4){const _0x218e97=function(_0x2fa1bc){while(--_0x2fa1bc){_0x367330['push'](_0x367330['shift']());}};_0x218e97(++_0x3852f4);}(a79_0x3852,0x14d));const a79_0x218e=function(_0x367330,_0x3852f4){_0x367330=_0x367330-0x0;let _0x218e97=a79_0x3852[_0x367330];return _0x218e97;};const _0x5ce683=a79_0x218e;'use strict';const Sequelize=require(_0x5ce683('0x4'));module[_0x5ce683('0x3')]={'body':{'type':Sequelize[_0x5ce683('0x5')](_0x5ce683('0x2')),'allowNull':![]},'read':{'type':Sequelize[_0x5ce683('0x1')],'defaultValue':![]},'secret':{'type':Sequelize[_0x5ce683('0x1')],'defaultValue':![]},'direction':{'type':Sequelize[_0x5ce683('0x0')]('in',_0x5ce683('0x6')),'defaultValue':_0x5ce683('0x6'),'allowNull':![]},'readAt':{'type':Sequelize['DATE']}}; \ No newline at end of file +const a79_0x11a9=['out','medium','DATE','BOOLEAN','exports','STRING','ENUM','sequelize','TEXT'];(function(_0x1f3ea6,_0x11a98a){const _0x3f077f=function(_0x213861){while(--_0x213861){_0x1f3ea6['push'](_0x1f3ea6['shift']());}};_0x3f077f(++_0x11a98a);}(a79_0x11a9,0x149));const a79_0x3f07=function(_0x1f3ea6,_0x11a98a){_0x1f3ea6=_0x1f3ea6-0x0;let _0x3f077f=a79_0x11a9[_0x1f3ea6];return _0x3f077f;};const _0x4b31f9=a79_0x3f07;'use strict';const Sequelize=require(_0x4b31f9('0x2'));module[_0x4b31f9('0x8')]={'body':{'type':Sequelize[_0x4b31f9('0x3')](_0x4b31f9('0x5')),'allowNull':![]},'read':{'type':Sequelize[_0x4b31f9('0x7')],'defaultValue':![]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x4b31f9('0x1')]('in',_0x4b31f9('0x4')),'defaultValue':_0x4b31f9('0x4'),'allowNull':![]},'readAt':{'type':Sequelize[_0x4b31f9('0x6')]},'providerName':{'type':Sequelize[_0x4b31f9('0x0')]},'providerResponse':{'type':Sequelize[_0x4b31f9('0x3')]}}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.controller.js b/server/api/chatMessage/chatMessage.controller.js index be5b738..66d049a 100644 --- a/server/api/chatMessage/chatMessage.controller.js +++ b/server/api/chatMessage/chatMessage.controller.js @@ -1 +1 @@ -const a80_0x2340=['register','info','VIRTUAL','fields','limit','UserId','ChatInteraction','acceptMessage','query','accept','keys','create','format','filter','read','../../mysqldb','RejectMessage','reject','interaction','rows','interface','update','acceptmessage','ChatMessage','moment','merge','sendStatus','channel','index','catch','findOne','sequelize','Content-Range','nolimit','status','then','api','ChatInteractionId','includeAll','set','role','include','show','offset','type','map','AcceptMessage','request\x20sent','body','key','stack','destroy','like','YYYY-MM-DD\x20HH:mm:ss','debug','count','send','options','findAll','length','stringify','../../config/logger','null','json','ChatMessage,\x20%s,\x20%s','EventManager','readAt','intersection','lodash','fieldName','error','http','./chatMessage.socket','describe','attributes','parse','SIP/%s','[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','where','get','rejectMessage','chat','params','end','message','model','event','filters','client','Contact','user','name','sort','isNil'];(function(_0x2c549c,_0x23409a){const _0x5531fe=function(_0xee4457){while(--_0xee4457){_0x2c549c['push'](_0x2c549c['shift']());}};_0x5531fe(++_0x23409a);}(a80_0x2340,0x107));const a80_0x5531=function(_0x2c549c,_0x23409a){_0x2c549c=_0x2c549c-0x0;let _0x5531fe=a80_0x2340[_0x2c549c];return _0x5531fe;};const _0x1600ee=a80_0x5531;'use strict';const moment=require(_0x1600ee('0x2b')),util=require('util'),_=require(_0x1600ee('0x57')),qs=require('../../components/parsers/qs'),logger=require(_0x1600ee('0x50'))(_0x1600ee('0x37')),{getSocket}=require('../../rediscache'),db=require(_0x1600ee('0x22'))['db'],{Op}=require(_0x1600ee('0x32')),interaction_log=require(_0x1600ee('0x50'))('chat-interactions'),socket=getSocket();require(_0x1600ee('0x5b'))[_0x1600ee('0x13')](socket);const jayson=require('jayson/promise'),client=jayson[_0x1600ee('0xd')]['http']({'port':0x232c}),client9002=jayson[_0x1600ee('0xd')][_0x1600ee('0x5a')]({'port':0x232a});function respondWithRpcPromise(_0xee4457,_0xa74e9a,_0x23d0ba,_0x4db57c){return new Promise(function(_0x20cde4,_0x4bc7d3){const _0x19738a=a80_0x5531,_0x2a7596=_0x4db57c||client;return _0x2a7596['request'](_0xee4457,_0x23d0ba)[_0x19738a('0x36')](function(_0x289b80){const _0x3df58f=_0x19738a;logger[_0x3df58f('0x14')](_0x3df58f('0x53'),_0xa74e9a,'request\x20sent'),logger[_0x3df58f('0x49')]('ChatMessage,\x20%s,\x20%s,\x20%s',_0xa74e9a,_0x3df58f('0x42'),JSON[_0x3df58f('0x4f')](_0x289b80));if(_0x289b80['error']){if(_0x289b80[_0x3df58f('0x59')]['code']===0x1f4)return logger[_0x3df58f('0x59')]('ChatMessage,\x20%s,\x20%s',_0xa74e9a,_0x289b80[_0x3df58f('0x59')][_0x3df58f('0x9')]),_0x4bc7d3(_0x289b80[_0x3df58f('0x59')][_0x3df58f('0x9')]);return logger[_0x3df58f('0x59')](_0x3df58f('0x53'),_0xa74e9a,_0x289b80[_0x3df58f('0x59')]['message']),_0x20cde4(_0x289b80[_0x3df58f('0x59')][_0x3df58f('0x9')]);}else logger['info']('ChatMessage,\x20%s,\x20%s',_0xa74e9a,_0x3df58f('0x42')),_0x20cde4(_0x289b80['result'][_0x3df58f('0x9')]);})[_0x19738a('0x30')](function(_0x3b1b04){const _0x3aa95e=_0x19738a;logger['error'](_0x3aa95e('0x53'),_0xa74e9a,_0x3b1b04),_0x4bc7d3(_0x3b1b04);});});}function respondWithResult(_0x3502a7,_0x61d6b6){return _0x61d6b6=_0x61d6b6||0xc8,function(_0x43d89a){const _0x35c0ff=a80_0x5531;if(_0x43d89a)return _0x3502a7[_0x35c0ff('0x35')](_0x61d6b6)[_0x35c0ff('0x52')](_0x43d89a);};}function respondWithFilteredResult(_0x3ebd9f,_0x35e99e){return function(_0x44b961){const _0x4490fb=a80_0x5531;if(_0x44b961){const _0x2e438d=_0x44b961['count'],_0x33a69c=_0x35e99e[_0x4490fb('0x3e')];let _0x10c68c=_0x35e99e[_0x4490fb('0x3e')]+_0x35e99e[_0x4490fb('0x17')],_0xc38fd;return _0x10c68c>=_0x2e438d?(_0x10c68c=_0x2e438d,_0xc38fd=0xc8):_0xc38fd=0xce,_0x3ebd9f[_0x4490fb('0x35')](_0xc38fd),_0x3ebd9f[_0x4490fb('0x3a')](_0x4490fb('0x33'),_0x33a69c+'-'+_0x10c68c+'/'+_0x2e438d)[_0x4490fb('0x52')](_0x44b961);}return null;};}function saveUpdates(_0x165d68){return function(_0x3e5e87){const _0x78f31a=a80_0x5531;if(_0x3e5e87)return _0x3e5e87[_0x78f31a('0x28')](_0x165d68)['then'](function(_0x550dac){return _0x550dac;});return null;};}function removeEntity(_0x55585f){return function(_0x146446){const _0x31ae10=a80_0x5531;if(_0x146446)return _0x146446['destroy']()[_0x31ae10('0x36')](function(){const _0x3cf20f=_0x31ae10;_0x55585f[_0x3cf20f('0x35')](0xcc)[_0x3cf20f('0x8')]();});};}function handleEntityNotFound(_0x1fb8a2){return function(_0x3b7e0a){const _0x4d6798=a80_0x5531;return!_0x3b7e0a&&_0x1fb8a2[_0x4d6798('0x2d')](0x194),_0x3b7e0a;};}function handleError(_0x514744,_0x589999){return _0x589999=_0x589999||0x1f4,function(_0x11445a){const _0x1416e7=a80_0x5531;logger[_0x1416e7('0x59')](_0x11445a[_0x1416e7('0x45')]),_0x11445a[_0x1416e7('0x10')]&&delete _0x11445a['name'],_0x514744[_0x1416e7('0x35')](_0x589999)[_0x1416e7('0x4b')](_0x11445a);};}exports[_0x1600ee('0x2f')]=function(_0x35a910,_0x3a12d3){const _0x2aef78=_0x1600ee;let _0x5547c8={};const _0x2a9178={},_0x12c09b={'count':0x0,'rows':[]},_0x5ee1a6=_[_0x2aef78('0x40')](db[_0x2aef78('0x2a')]['rawAttributes'],function(_0xcd13a5){const _0x2521d5=_0x2aef78;return{'name':_0xcd13a5[_0x2521d5('0x58')],'type':_0xcd13a5['type'][_0x2521d5('0x44')]};});_0x2a9178[_0x2aef78('0xa')]=_[_0x2aef78('0x40')](_0x5ee1a6,'name'),_0x2a9178[_0x2aef78('0x1b')]=_[_0x2aef78('0x1d')](_0x35a910[_0x2aef78('0x1b')]),_0x2a9178[_0x2aef78('0xc')]=_['intersection'](_0x2a9178[_0x2aef78('0xa')],_0x2a9178[_0x2aef78('0x1b')]),_0x5547c8[_0x2aef78('0x5d')]=_[_0x2aef78('0x56')](_0x2a9178[_0x2aef78('0xa')],qs[_0x2aef78('0x16')](_0x35a910[_0x2aef78('0x1b')][_0x2aef78('0x16')])),_0x5547c8[_0x2aef78('0x5d')]=_0x5547c8['attributes'][_0x2aef78('0x4e')]?_0x5547c8[_0x2aef78('0x5d')]:_0x2a9178['model'];typeof _0x35a910[_0x2aef78('0x1b')][_0x2aef78('0x34')]==='undefined'&&(_0x5547c8[_0x2aef78('0x17')]=qs[_0x2aef78('0x17')](_0x35a910[_0x2aef78('0x1b')]['limit']),_0x5547c8[_0x2aef78('0x3e')]=qs[_0x2aef78('0x3e')](_0x35a910[_0x2aef78('0x1b')][_0x2aef78('0x3e')]));_0x5547c8['order']=qs[_0x2aef78('0x11')](_0x35a910[_0x2aef78('0x1b')][_0x2aef78('0x11')]),_0x5547c8[_0x2aef78('0x3')]=qs['filters'](_['pick'](_0x35a910[_0x2aef78('0x1b')],_0x2a9178['filters']),_0x5ee1a6);_0x35a910['query'][_0x2aef78('0x20')]&&(_0x5547c8['where']=_['merge'](_0x5547c8[_0x2aef78('0x3')],{[Op['or']]:_[_0x2aef78('0x40')](_0x5ee1a6,function(_0x209e08){const _0x3a4b00=_0x2aef78;if(_0x209e08[_0x3a4b00('0x3f')]!==_0x3a4b00('0x15')){const _0x344c2d={};return _0x344c2d[_0x209e08[_0x3a4b00('0x10')]]={[Op[_0x3a4b00('0x47')]]:'%'+_0x35a910[_0x3a4b00('0x1b')][_0x3a4b00('0x20')]+'%'},_0x344c2d;}})}));_0x5547c8=_[_0x2aef78('0x2c')]({},_0x5547c8,_0x35a910[_0x2aef78('0x4c')]);const _0xc1e500={'where':_0x5547c8['where']};return db[_0x2aef78('0x2a')][_0x2aef78('0x4a')](_0xc1e500)['then'](function(_0x279400){const _0x138760=_0x2aef78;return _0x12c09b[_0x138760('0x4a')]=_0x279400,_0x35a910[_0x138760('0x1b')][_0x138760('0x39')]&&(_0x5547c8[_0x138760('0x3c')]=[{'all':!![]}]),db[_0x138760('0x2a')][_0x138760('0x4d')](_0x5547c8);})['then'](function(_0x26377c){const _0x15ae8e=_0x2aef78;return _0x12c09b[_0x15ae8e('0x26')]=_0x26377c,_0x12c09b;})[_0x2aef78('0x36')](respondWithFilteredResult(_0x3a12d3,_0x5547c8))[_0x2aef78('0x30')](handleError(_0x3a12d3,null));},exports[_0x1600ee('0x3d')]=function(_0x437805,_0x226465){const _0x4435e2=_0x1600ee;let _0x1fd00b={'raw':!![],'where':{'id':_0x437805['params']['id']}};const _0xa2624f={};return _0xa2624f['model']=_[_0x4435e2('0x1d')](db[_0x4435e2('0x2a')]['rawAttributes']),_0xa2624f[_0x4435e2('0x1b')]=_['keys'](_0x437805[_0x4435e2('0x1b')]),_0xa2624f['filters']=_[_0x4435e2('0x56')](_0xa2624f['model'],_0xa2624f[_0x4435e2('0x1b')]),_0x1fd00b[_0x4435e2('0x5d')]=_['intersection'](_0xa2624f[_0x4435e2('0xa')],qs['fields'](_0x437805[_0x4435e2('0x1b')][_0x4435e2('0x16')])),_0x1fd00b[_0x4435e2('0x5d')]=_0x1fd00b[_0x4435e2('0x5d')]['length']?_0x1fd00b[_0x4435e2('0x5d')]:_0xa2624f[_0x4435e2('0xa')],_0x437805[_0x4435e2('0x1b')][_0x4435e2('0x39')]&&(_0x1fd00b['include']=[{'all':!![]}]),_0x1fd00b=_[_0x4435e2('0x2c')]({},_0x1fd00b,_0x437805[_0x4435e2('0x4c')]),db[_0x4435e2('0x2a')][_0x4435e2('0x31')](_0x1fd00b)[_0x4435e2('0x36')](handleEntityNotFound(_0x226465,null))[_0x4435e2('0x36')](respondWithResult(_0x226465,null))[_0x4435e2('0x30')](handleError(_0x226465,null));},exports[_0x1600ee('0x1e')]=function(_0x1e5bf5,_0x5adc1a){const _0x38de71=_0x1600ee;return db[_0x38de71('0x2a')]['create'](_0x1e5bf5[_0x38de71('0x43')],{})['then'](respondWithResult(_0x5adc1a,0xc9))['catch'](handleError(_0x5adc1a,null));},exports[_0x1600ee('0x28')]=function(_0x210f84,_0x14e937){const _0x2fc16a=_0x1600ee;return _0x210f84[_0x2fc16a('0x43')]['id']&&delete _0x210f84[_0x2fc16a('0x43')]['id'],db['ChatMessage'][_0x2fc16a('0x31')]({'where':{'id':_0x210f84[_0x2fc16a('0x7')]['id']}})[_0x2fc16a('0x36')](handleEntityNotFound(_0x14e937,null))['then'](saveUpdates(_0x210f84[_0x2fc16a('0x43')],null))[_0x2fc16a('0x36')](respondWithResult(_0x14e937,null))['catch'](handleError(_0x14e937,null));},exports[_0x1600ee('0x46')]=function(_0x35045f,_0x221c2e){const _0x599630=_0x1600ee;return db[_0x599630('0x2a')]['findOne']({'where':{'id':_0x35045f[_0x599630('0x7')]['id']}})[_0x599630('0x36')](handleEntityNotFound(_0x221c2e,null))[_0x599630('0x36')](removeEntity(_0x221c2e,null))[_0x599630('0x30')](handleError(_0x221c2e,null));},exports['describe']=function(_0x217bb1,_0x170771){const _0x1bdc5a=_0x1600ee;return db[_0x1bdc5a('0x2a')][_0x1bdc5a('0x5c')]()[_0x1bdc5a('0x36')](respondWithResult(_0x170771,null))[_0x1bdc5a('0x30')](handleError(_0x170771,null));},exports['accept']=function(_0x4b7942,_0x1a8dae){const _0x2f2ffc=_0x1600ee,_0xf2eb2b={'channel':_0x2f2ffc('0x6')};return _0x4b7942[_0x2f2ffc('0x43')]['id']&&delete _0x4b7942[_0x2f2ffc('0x43')]['id'],_0x4b7942[_0x2f2ffc('0x43')][_0x2f2ffc('0x21')]=!![],_0x4b7942[_0x2f2ffc('0x43')][_0x2f2ffc('0x55')]=moment()['format'](_0x2f2ffc('0x48')),_0x4b7942[_0x2f2ffc('0x43')][_0x2f2ffc('0x18')]=_0x4b7942['body'][_0x2f2ffc('0x18')]||_0x4b7942[_0x2f2ffc('0xf')]['id'],db[_0x2f2ffc('0x2a')][_0x2f2ffc('0x31')]({'where':{'id':_0x4b7942[_0x2f2ffc('0x7')]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':_0x2f2ffc('0xe')}]})[_0x2f2ffc('0x36')](handleEntityNotFound(_0x1a8dae,null))['then'](saveUpdates(_0x4b7942['body'],null))[_0x2f2ffc('0x36')](function(_0x10fb4a){const _0x370492=_0x2f2ffc;if(_0x10fb4a)return _0xf2eb2b['message']=_0x10fb4a[_0x370492('0x4')]({'plain':!![]}),db['ChatInteraction'][_0x370492('0x31')]({'where':{'id':_0x10fb4a[_0x370492('0x38')]}});return null;})[_0x2f2ffc('0x36')](handleEntityNotFound(_0x1a8dae,null))[_0x2f2ffc('0x36')](function(_0x5069f2){const _0x36eac1=_0x2f2ffc;if(_0x5069f2)return _0x5069f2[_0x36eac1('0x28')]({'UserId':_0x4b7942['body'][_0x36eac1('0x18')],'read1stAt':_[_0x36eac1('0x12')](_0x5069f2['read1stAt'])?moment()[_0x36eac1('0x1f')](_0x36eac1('0x48')):undefined});return null;})['then'](function(_0x4ffcf4){const _0x591cf2=_0x2f2ffc;if(_0x4ffcf4)return _0xf2eb2b[_0x591cf2('0x25')]=_0x4ffcf4[_0x591cf2('0x4')]({'plain':!![]}),interaction_log[_0x591cf2('0x14')](_0x591cf2('0x2'),_0x4b7942['user']['id'],_0x4b7942[_0x591cf2('0xf')]['name'],_0x4b7942['user'][_0x591cf2('0x3b')],_0xf2eb2b['interaction']['id'],_0x4b7942['body']?JSON[_0x591cf2('0x4f')](_0x4b7942[_0x591cf2('0x43')]):'null'),respondWithRpcPromise(_0x591cf2('0x41'),_0x591cf2('0x1a'),_0xf2eb2b);return null;})['then'](function(_0x2b8e09){const _0x4f1061=_0x2f2ffc;if(_0x2b8e09){if(_0x4b7942[_0x4f1061('0x43')]['manual'])return _0xf2eb2b[_0x4f1061('0x9')][_0x4f1061('0x27')]=util[_0x4f1061('0x1f')](_0x4f1061('0x1'),_0x4b7942[_0x4f1061('0xf')][_0x4f1061('0x10')]),_0xf2eb2b['message'][_0x4f1061('0x2e')]=_0xf2eb2b[_0x4f1061('0x2e')],_0xf2eb2b[_0x4f1061('0x9')][_0x4f1061('0xb')]=_0x4f1061('0x1c'),respondWithRpcPromise(_0x4f1061('0x54'),_0x4f1061('0x54'),{'event':_0x4f1061('0x29'),'message':_[_0x4f1061('0x2c')](_0xf2eb2b[_0x4f1061('0x9')],JSON[_0x4f1061('0x0')](_0xf2eb2b[_0x4f1061('0x25')]['formData']))},client9002)[_0x4f1061('0x36')](function(){return _0xf2eb2b;});return _0xf2eb2b;}return null;})[_0x2f2ffc('0x36')](respondWithResult(_0x1a8dae,null))[_0x2f2ffc('0x30')](handleError(_0x1a8dae,null));},exports[_0x1600ee('0x24')]=function(_0x11ab40,_0xaef7d6){const _0x5df70b=_0x1600ee,_0xe81d5c={'agent':{},'channel':_0x5df70b('0x6')};return _0x11ab40[_0x5df70b('0x43')]['id']&&delete _0x11ab40[_0x5df70b('0x43')]['id'],_0x11ab40[_0x5df70b('0x43')][_0x5df70b('0x18')]=_0x11ab40[_0x5df70b('0x43')][_0x5df70b('0x18')]||_0x11ab40[_0x5df70b('0xf')]['id'],_0xe81d5c['agent']['id']=_0x11ab40[_0x5df70b('0x43')][_0x5df70b('0x18')],db[_0x5df70b('0x2a')][_0x5df70b('0x31')]({'where':{'id':_0x11ab40[_0x5df70b('0x7')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0xaef7d6,null))[_0x5df70b('0x36')](function(_0x52e600){const _0x5d8d82=_0x5df70b;if(_0x52e600)return _0xe81d5c['message']=_0x52e600[_0x5d8d82('0x4')]({'plain':!![]}),db[_0x5d8d82('0x19')][_0x5d8d82('0x31')]({'where':{'id':_0x52e600[_0x5d8d82('0x38')]}});return null;})[_0x5df70b('0x36')](handleEntityNotFound(_0xaef7d6,null))[_0x5df70b('0x36')](function(_0x29eccb){const _0x544a32=_0x5df70b;if(_0x29eccb)return _0xe81d5c[_0x544a32('0x25')]=_0x29eccb['get']({'plain':!![]}),interaction_log[_0x544a32('0x14')]('[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x11ab40[_0x544a32('0xf')]['id'],_0x11ab40[_0x544a32('0xf')][_0x544a32('0x10')],_0x11ab40['user'][_0x544a32('0x3b')],_0xe81d5c[_0x544a32('0x25')]['id'],_0x11ab40[_0x544a32('0x43')]?JSON[_0x544a32('0x4f')](_0x11ab40[_0x544a32('0x43')]):_0x544a32('0x51')),respondWithRpcPromise(_0x544a32('0x23'),_0x544a32('0x5'),_0xe81d5c);return null;})[_0x5df70b('0x36')](function(_0x597b5c){const _0x4a37ce=_0x5df70b;if(_0x597b5c)return _0x597b5c['message'][_0x4a37ce('0x27')]=util[_0x4a37ce('0x1f')](_0x4a37ce('0x1'),_0x11ab40['user'][_0x4a37ce('0x10')]),_0x597b5c[_0x4a37ce('0x9')][_0x4a37ce('0x2e')]=_0xe81d5c[_0x4a37ce('0x2e')],_0x597b5c[_0x4a37ce('0x9')][_0x4a37ce('0xb')]='reject',respondWithRpcPromise('EventManager',_0x4a37ce('0x54'),{'event':'rejectmessage','message':_0x597b5c[_0x4a37ce('0x9')]},client9002),_0xe81d5c;return null;})[_0x5df70b('0x36')](respondWithResult(_0xaef7d6,null))[_0x5df70b('0x30')](handleError(_0xaef7d6,null));}; \ No newline at end of file +const a80_0x144f=['acceptmessage','intersection','query','../../config/logger','reject','UserId','limit','count','client','lodash','RejectMessage','util','debug','create','sendStatus','get','catch','agent','parse','index','ChatInteractionId','format','ChatInteraction','message','user','Content-Range','keys','role','model','type','rejectmessage','../../rediscache','rejectMessage','where','update','interaction','code','VIRTUAL','filters','ChatMessage,\x20%s,\x20%s','SIP/%s','map','merge','../../mysqldb','include','EventManager','body','rawAttributes','info','CmContact','name','nolimit','[CHATMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','interface','../../components/parsers/qs','chat','then','sequelize','register','channel','json','request\x20sent','includeAll','stack','ChatMessage','order','options','sort','AcceptMessage','[CHATMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','error','offset','key','end','filter','accept','params','result','null','./chatMessage.socket','findAll','YYYY-MM-DD\x20HH:mm:ss','status','request','undefined','read1stAt','attributes','stringify','findOne','show','length','fields','event'];(function(_0x41b237,_0x144f1d){const _0x2d6f79=function(_0x27a29c){while(--_0x27a29c){_0x41b237['push'](_0x41b237['shift']());}};_0x2d6f79(++_0x144f1d);}(a80_0x144f,0x131));const a80_0x2d6f=function(_0x41b237,_0x144f1d){_0x41b237=_0x41b237-0x0;let _0x2d6f79=a80_0x144f[_0x41b237];return _0x2d6f79;};const _0x5a70b2=a80_0x2d6f;'use strict';const moment=require('moment'),util=require(_0x5a70b2('0x4e')),_=require(_0x5a70b2('0x4c')),qs=require(_0x5a70b2('0x1c')),logger=require(_0x5a70b2('0x46'))('api'),{getSocket}=require(_0x5a70b2('0x5')),db=require(_0x5a70b2('0x11'))['db'],{Op}=require(_0x5a70b2('0x1f')),interaction_log=require('../../config/logger')('chat-interactions'),socket=getSocket();require(_0x5a70b2('0x35'))[_0x5a70b2('0x20')](socket);const jayson=require('jayson/promise'),client=jayson['client']['http']({'port':0x232c}),client9002=jayson[_0x5a70b2('0x4b')]['http']({'port':0x232a});function respondWithRpcPromise(_0x27a29c,_0x588fc1,_0x1fbcfb,_0x3b75f1){return new Promise(function(_0x5a3792,_0x37334a){const _0x1eaa1d=a80_0x2d6f,_0xee5b10=_0x3b75f1||client;return _0xee5b10[_0x1eaa1d('0x39')](_0x27a29c,_0x1fbcfb)['then'](function(_0x4d8eba){const _0x4cd98c=_0x1eaa1d;logger['info'](_0x4cd98c('0xd'),_0x588fc1,_0x4cd98c('0x23')),logger[_0x4cd98c('0x4f')]('ChatMessage,\x20%s,\x20%s,\x20%s',_0x588fc1,_0x4cd98c('0x23'),JSON['stringify'](_0x4d8eba));if(_0x4d8eba['error']){if(_0x4d8eba['error'][_0x4cd98c('0xa')]===0x1f4)return logger[_0x4cd98c('0x2c')]('ChatMessage,\x20%s,\x20%s',_0x588fc1,_0x4d8eba[_0x4cd98c('0x2c')][_0x4cd98c('0x5a')]),_0x37334a(_0x4d8eba[_0x4cd98c('0x2c')][_0x4cd98c('0x5a')]);return logger['error'](_0x4cd98c('0xd'),_0x588fc1,_0x4d8eba['error']['message']),_0x5a3792(_0x4d8eba['error']['message']);}else logger[_0x4cd98c('0x16')]('ChatMessage,\x20%s,\x20%s',_0x588fc1,_0x4cd98c('0x23')),_0x5a3792(_0x4d8eba[_0x4cd98c('0x33')][_0x4cd98c('0x5a')]);})['catch'](function(_0x3ddaf9){const _0x1d6950=_0x1eaa1d;logger[_0x1d6950('0x2c')](_0x1d6950('0xd'),_0x588fc1,_0x3ddaf9),_0x37334a(_0x3ddaf9);});});}function respondWithResult(_0x2a4a97,_0x1db640){return _0x1db640=_0x1db640||0xc8,function(_0x5ecc15){const _0x5dcf0b=a80_0x2d6f;if(_0x5ecc15)return _0x2a4a97[_0x5dcf0b('0x38')](_0x1db640)[_0x5dcf0b('0x22')](_0x5ecc15);};}function respondWithFilteredResult(_0x59907d,_0x4c46e2){return function(_0x3bdcf8){const _0x2eabed=a80_0x2d6f;if(_0x3bdcf8){const _0x4e0f74=_0x3bdcf8[_0x2eabed('0x4a')],_0x28f6e5=_0x4c46e2[_0x2eabed('0x2d')];let _0x11a3a7=_0x4c46e2['offset']+_0x4c46e2[_0x2eabed('0x49')],_0x1f98be;return _0x11a3a7>=_0x4e0f74?(_0x11a3a7=_0x4e0f74,_0x1f98be=0xc8):_0x1f98be=0xce,_0x59907d['status'](_0x1f98be),_0x59907d['set'](_0x2eabed('0x5c'),_0x28f6e5+'-'+_0x11a3a7+'/'+_0x4e0f74)[_0x2eabed('0x22')](_0x3bdcf8);}return null;};}function saveUpdates(_0x3162be){return function(_0x2f3e44){const _0x15d85a=a80_0x2d6f;if(_0x2f3e44)return _0x2f3e44[_0x15d85a('0x8')](_0x3162be)[_0x15d85a('0x1e')](function(_0x4727cf){return _0x4727cf;});return null;};}function removeEntity(_0x2c0aa4){return function(_0x30a39c){const _0x492ba5=a80_0x2d6f;if(_0x30a39c)return _0x30a39c['destroy']()[_0x492ba5('0x1e')](function(){const _0x5af92f=_0x492ba5;_0x2c0aa4[_0x5af92f('0x38')](0xcc)[_0x5af92f('0x2f')]();});};}function handleEntityNotFound(_0x50f00a){return function(_0x2a12ca){const _0xd49489=a80_0x2d6f;return!_0x2a12ca&&_0x50f00a[_0xd49489('0x51')](0x194),_0x2a12ca;};}function handleError(_0x19b450,_0x3b1c5b){return _0x3b1c5b=_0x3b1c5b||0x1f4,function(_0x342666){const _0x4cff62=a80_0x2d6f;logger[_0x4cff62('0x2c')](_0x342666[_0x4cff62('0x25')]),_0x342666[_0x4cff62('0x18')]&&delete _0x342666['name'],_0x19b450[_0x4cff62('0x38')](_0x3b1c5b)['send'](_0x342666);};}exports[_0x5a70b2('0x56')]=function(_0xe84e85,_0x28bfd8){const _0x42e67f=_0x5a70b2;let _0x208049={};const _0x4c6cde={},_0x52e5d1={'count':0x0,'rows':[]},_0x3d04a=_[_0x42e67f('0xf')](db[_0x42e67f('0x26')][_0x42e67f('0x15')],function(_0x56c653){const _0x18bab1=_0x42e67f;return{'name':_0x56c653['fieldName'],'type':_0x56c653[_0x18bab1('0x3')][_0x18bab1('0x2e')]};});_0x4c6cde[_0x42e67f('0x2')]=_[_0x42e67f('0xf')](_0x3d04a,_0x42e67f('0x18')),_0x4c6cde[_0x42e67f('0x45')]=_[_0x42e67f('0x0')](_0xe84e85[_0x42e67f('0x45')]),_0x4c6cde[_0x42e67f('0xc')]=_[_0x42e67f('0x44')](_0x4c6cde['model'],_0x4c6cde['query']),_0x208049['attributes']=_[_0x42e67f('0x44')](_0x4c6cde[_0x42e67f('0x2')],qs[_0x42e67f('0x41')](_0xe84e85[_0x42e67f('0x45')]['fields'])),_0x208049[_0x42e67f('0x3c')]=_0x208049[_0x42e67f('0x3c')]['length']?_0x208049[_0x42e67f('0x3c')]:_0x4c6cde[_0x42e67f('0x2')];typeof _0xe84e85[_0x42e67f('0x45')][_0x42e67f('0x19')]===_0x42e67f('0x3a')&&(_0x208049['limit']=qs[_0x42e67f('0x49')](_0xe84e85[_0x42e67f('0x45')][_0x42e67f('0x49')]),_0x208049[_0x42e67f('0x2d')]=qs[_0x42e67f('0x2d')](_0xe84e85['query'][_0x42e67f('0x2d')]));_0x208049[_0x42e67f('0x27')]=qs[_0x42e67f('0x29')](_0xe84e85[_0x42e67f('0x45')][_0x42e67f('0x29')]),_0x208049[_0x42e67f('0x7')]=qs[_0x42e67f('0xc')](_['pick'](_0xe84e85['query'],_0x4c6cde['filters']),_0x3d04a);_0xe84e85[_0x42e67f('0x45')][_0x42e67f('0x30')]&&(_0x208049['where']=_[_0x42e67f('0x10')](_0x208049[_0x42e67f('0x7')],{[Op['or']]:_[_0x42e67f('0xf')](_0x3d04a,function(_0x38515d){const _0x3e1c1e=_0x42e67f;if(_0x38515d[_0x3e1c1e('0x3')]!==_0x3e1c1e('0xb')){const _0x425954={};return _0x425954[_0x38515d[_0x3e1c1e('0x18')]]={[Op['like']]:'%'+_0xe84e85[_0x3e1c1e('0x45')][_0x3e1c1e('0x30')]+'%'},_0x425954;}})}));_0x208049=_[_0x42e67f('0x10')]({},_0x208049,_0xe84e85['options']);const _0x4d8d88={'where':_0x208049[_0x42e67f('0x7')]};return db[_0x42e67f('0x26')][_0x42e67f('0x4a')](_0x4d8d88)[_0x42e67f('0x1e')](function(_0x1d2742){const _0x4e04c8=_0x42e67f;return _0x52e5d1[_0x4e04c8('0x4a')]=_0x1d2742,_0xe84e85[_0x4e04c8('0x45')][_0x4e04c8('0x24')]&&(_0x208049[_0x4e04c8('0x12')]=[{'all':!![]}]),db[_0x4e04c8('0x26')][_0x4e04c8('0x36')](_0x208049);})[_0x42e67f('0x1e')](function(_0x1eb92e){return _0x52e5d1['rows']=_0x1eb92e,_0x52e5d1;})[_0x42e67f('0x1e')](respondWithFilteredResult(_0x28bfd8,_0x208049))['catch'](handleError(_0x28bfd8,null));},exports[_0x5a70b2('0x3f')]=function(_0x3020d8,_0x30f54e){const _0x35f330=_0x5a70b2;let _0x31edbf={'raw':!![],'where':{'id':_0x3020d8[_0x35f330('0x32')]['id']}};const _0x50dc48={};return _0x50dc48[_0x35f330('0x2')]=_[_0x35f330('0x0')](db['ChatMessage']['rawAttributes']),_0x50dc48['query']=_[_0x35f330('0x0')](_0x3020d8[_0x35f330('0x45')]),_0x50dc48['filters']=_[_0x35f330('0x44')](_0x50dc48[_0x35f330('0x2')],_0x50dc48['query']),_0x31edbf[_0x35f330('0x3c')]=_[_0x35f330('0x44')](_0x50dc48[_0x35f330('0x2')],qs[_0x35f330('0x41')](_0x3020d8[_0x35f330('0x45')]['fields'])),_0x31edbf[_0x35f330('0x3c')]=_0x31edbf[_0x35f330('0x3c')][_0x35f330('0x40')]?_0x31edbf[_0x35f330('0x3c')]:_0x50dc48['model'],_0x3020d8[_0x35f330('0x45')][_0x35f330('0x24')]&&(_0x31edbf[_0x35f330('0x12')]=[{'all':!![]}]),_0x31edbf=_[_0x35f330('0x10')]({},_0x31edbf,_0x3020d8[_0x35f330('0x28')]),db['ChatMessage'][_0x35f330('0x3e')](_0x31edbf)['then'](handleEntityNotFound(_0x30f54e,null))[_0x35f330('0x1e')](respondWithResult(_0x30f54e,null))[_0x35f330('0x53')](handleError(_0x30f54e,null));},exports[_0x5a70b2('0x50')]=function(_0xf561ce,_0x2c0f71){const _0x147d27=_0x5a70b2;return db[_0x147d27('0x26')]['create'](_0xf561ce[_0x147d27('0x14')],{})[_0x147d27('0x1e')](respondWithResult(_0x2c0f71,0xc9))[_0x147d27('0x53')](handleError(_0x2c0f71,null));},exports[_0x5a70b2('0x8')]=function(_0x2c642a,_0x3b5384){const _0xe71e0b=_0x5a70b2;return _0x2c642a[_0xe71e0b('0x14')]['id']&&delete _0x2c642a['body']['id'],db[_0xe71e0b('0x26')][_0xe71e0b('0x3e')]({'where':{'id':_0x2c642a['params']['id']}})[_0xe71e0b('0x1e')](handleEntityNotFound(_0x3b5384,null))[_0xe71e0b('0x1e')](saveUpdates(_0x2c642a[_0xe71e0b('0x14')],null))['then'](respondWithResult(_0x3b5384,null))[_0xe71e0b('0x53')](handleError(_0x3b5384,null));},exports['destroy']=function(_0x22790c,_0x493c60){const _0x1a09a1=_0x5a70b2;return db[_0x1a09a1('0x26')][_0x1a09a1('0x3e')]({'where':{'id':_0x22790c['params']['id']}})[_0x1a09a1('0x1e')](handleEntityNotFound(_0x493c60,null))['then'](removeEntity(_0x493c60,null))[_0x1a09a1('0x53')](handleError(_0x493c60,null));},exports['describe']=function(_0x30d302,_0x2faf63){const _0x2c3098=_0x5a70b2;return db[_0x2c3098('0x26')]['describe']()['then'](respondWithResult(_0x2faf63,null))[_0x2c3098('0x53')](handleError(_0x2faf63,null));},exports[_0x5a70b2('0x31')]=function(_0x543fb7,_0x49ba3b){const _0x5ac6f8=_0x5a70b2,_0x12af62={'channel':_0x5ac6f8('0x1d')};return _0x543fb7[_0x5ac6f8('0x14')]['id']&&delete _0x543fb7[_0x5ac6f8('0x14')]['id'],_0x543fb7[_0x5ac6f8('0x14')]['read']=!![],_0x543fb7[_0x5ac6f8('0x14')]['readAt']=moment()[_0x5ac6f8('0x58')](_0x5ac6f8('0x37')),_0x543fb7[_0x5ac6f8('0x14')][_0x5ac6f8('0x48')]=_0x543fb7[_0x5ac6f8('0x14')]['UserId']||_0x543fb7[_0x5ac6f8('0x5b')]['id'],db['ChatMessage'][_0x5ac6f8('0x3e')]({'where':{'id':_0x543fb7['params']['id'],'UserId':null},'include':[{'model':db[_0x5ac6f8('0x17')],'as':'Contact'}]})[_0x5ac6f8('0x1e')](handleEntityNotFound(_0x49ba3b,null))[_0x5ac6f8('0x1e')](saveUpdates(_0x543fb7[_0x5ac6f8('0x14')],null))[_0x5ac6f8('0x1e')](function(_0x1b01fa){const _0x4c09c5=_0x5ac6f8;if(_0x1b01fa)return _0x12af62[_0x4c09c5('0x5a')]=_0x1b01fa[_0x4c09c5('0x52')]({'plain':!![]}),db['ChatInteraction']['findOne']({'where':{'id':_0x1b01fa[_0x4c09c5('0x57')]}});return null;})[_0x5ac6f8('0x1e')](handleEntityNotFound(_0x49ba3b,null))['then'](function(_0x3ed084){const _0x4f90ab=_0x5ac6f8;if(_0x3ed084)return _0x3ed084[_0x4f90ab('0x8')]({'UserId':_0x543fb7['body'][_0x4f90ab('0x48')],'read1stAt':_['isNil'](_0x3ed084[_0x4f90ab('0x3b')])?moment()['format'](_0x4f90ab('0x37')):undefined});return null;})['then'](function(_0x8a0da3){const _0xd656c7=_0x5ac6f8;if(_0x8a0da3)return _0x12af62[_0xd656c7('0x9')]=_0x8a0da3[_0xd656c7('0x52')]({'plain':!![]}),interaction_log[_0xd656c7('0x16')](_0xd656c7('0x2b'),_0x543fb7[_0xd656c7('0x5b')]['id'],_0x543fb7[_0xd656c7('0x5b')]['name'],_0x543fb7[_0xd656c7('0x5b')][_0xd656c7('0x1')],_0x12af62[_0xd656c7('0x9')]['id'],_0x543fb7['body']?JSON[_0xd656c7('0x3d')](_0x543fb7['body']):'null'),respondWithRpcPromise(_0xd656c7('0x2a'),'acceptMessage',_0x12af62);return null;})[_0x5ac6f8('0x1e')](function(_0x50a384){const _0x4c7d7c=_0x5ac6f8;if(_0x50a384){if(_0x543fb7[_0x4c7d7c('0x14')]['manual'])return _0x12af62[_0x4c7d7c('0x5a')][_0x4c7d7c('0x1b')]=util[_0x4c7d7c('0x58')](_0x4c7d7c('0xe'),_0x543fb7[_0x4c7d7c('0x5b')][_0x4c7d7c('0x18')]),_0x12af62['message']['channel']=_0x12af62[_0x4c7d7c('0x21')],_0x12af62[_0x4c7d7c('0x5a')]['event']=_0x4c7d7c('0x31'),respondWithRpcPromise(_0x4c7d7c('0x13'),_0x4c7d7c('0x13'),{'event':_0x4c7d7c('0x43'),'message':_[_0x4c7d7c('0x10')](_0x12af62[_0x4c7d7c('0x5a')],JSON[_0x4c7d7c('0x55')](_0x12af62[_0x4c7d7c('0x9')]['formData']))},client9002)[_0x4c7d7c('0x1e')](function(){return _0x12af62;});return _0x12af62;}return null;})['then'](respondWithResult(_0x49ba3b,null))[_0x5ac6f8('0x53')](handleError(_0x49ba3b,null));},exports[_0x5a70b2('0x47')]=function(_0x43f5b4,_0x4c1232){const _0x4bae7f=_0x5a70b2,_0xb990e2={'agent':{},'channel':'chat'};return _0x43f5b4[_0x4bae7f('0x14')]['id']&&delete _0x43f5b4[_0x4bae7f('0x14')]['id'],_0x43f5b4[_0x4bae7f('0x14')]['UserId']=_0x43f5b4[_0x4bae7f('0x14')]['UserId']||_0x43f5b4[_0x4bae7f('0x5b')]['id'],_0xb990e2[_0x4bae7f('0x54')]['id']=_0x43f5b4[_0x4bae7f('0x14')][_0x4bae7f('0x48')],db[_0x4bae7f('0x26')]['findOne']({'where':{'id':_0x43f5b4[_0x4bae7f('0x32')]['id'],'UserId':null}})[_0x4bae7f('0x1e')](handleEntityNotFound(_0x4c1232,null))[_0x4bae7f('0x1e')](function(_0x3e61f1){const _0x5e4d0f=_0x4bae7f;if(_0x3e61f1)return _0xb990e2['message']=_0x3e61f1['get']({'plain':!![]}),db[_0x5e4d0f('0x59')][_0x5e4d0f('0x3e')]({'where':{'id':_0x3e61f1[_0x5e4d0f('0x57')]}});return null;})['then'](handleEntityNotFound(_0x4c1232,null))[_0x4bae7f('0x1e')](function(_0x410ddd){const _0x1e6a3f=_0x4bae7f;if(_0x410ddd)return _0xb990e2[_0x1e6a3f('0x9')]=_0x410ddd['get']({'plain':!![]}),interaction_log['info'](_0x1e6a3f('0x1a'),_0x43f5b4[_0x1e6a3f('0x5b')]['id'],_0x43f5b4[_0x1e6a3f('0x5b')][_0x1e6a3f('0x18')],_0x43f5b4[_0x1e6a3f('0x5b')]['role'],_0xb990e2[_0x1e6a3f('0x9')]['id'],_0x43f5b4[_0x1e6a3f('0x14')]?JSON[_0x1e6a3f('0x3d')](_0x43f5b4[_0x1e6a3f('0x14')]):_0x1e6a3f('0x34')),respondWithRpcPromise(_0x1e6a3f('0x4d'),_0x1e6a3f('0x6'),_0xb990e2);return null;})['then'](function(_0x2066c8){const _0x516afb=_0x4bae7f;if(_0x2066c8)return _0x2066c8[_0x516afb('0x5a')][_0x516afb('0x1b')]=util[_0x516afb('0x58')](_0x516afb('0xe'),_0x43f5b4[_0x516afb('0x5b')][_0x516afb('0x18')]),_0x2066c8[_0x516afb('0x5a')][_0x516afb('0x21')]=_0xb990e2[_0x516afb('0x21')],_0x2066c8['message'][_0x516afb('0x42')]='reject',respondWithRpcPromise('EventManager',_0x516afb('0x13'),{'event':_0x516afb('0x4'),'message':_0x2066c8[_0x516afb('0x5a')]},client9002),_0xb990e2;return null;})[_0x4bae7f('0x1e')](respondWithResult(_0x4c1232,null))[_0x4bae7f('0x53')](handleError(_0x4c1232,null));}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.events.js b/server/api/chatMessage/chatMessage.events.js index 22e2c7f..22a1797 100644 --- a/server/api/chatMessage/chatMessage.events.js +++ b/server/api/chatMessage/chatMessage.events.js @@ -1 +1 @@ -const a81_0x4ab8=['setMaxListeners','remove','emit','ChatMessage','exports','../../mysqldb','events','save','undefined'];(function(_0x2b0e0d,_0x4ab880){const _0x15e4e4=function(_0x33c47e){while(--_0x33c47e){_0x2b0e0d['push'](_0x2b0e0d['shift']());}};_0x15e4e4(++_0x4ab880);}(a81_0x4ab8,0x1d5));const a81_0x15e4=function(_0x2b0e0d,_0x4ab880){_0x2b0e0d=_0x2b0e0d-0x0;let _0x15e4e4=a81_0x4ab8[_0x2b0e0d];return _0x15e4e4;};const _0x5137e9=a81_0x15e4;'use strict';const EventEmitter=require(_0x5137e9('0x5')),ChatMessage=require(_0x5137e9('0x4'))['db'][_0x5137e9('0x2')],ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x5137e9('0x8')](0x0);const events={'afterCreate':_0x5137e9('0x6'),'afterUpdate':'update','afterDestroy':_0x5137e9('0x0')};function emitEvent(_0x33c47e){return function(_0x149e7a){const _0x206d7f=a81_0x15e4;ChatMessageEvents['emit'](_0x33c47e+':'+_0x149e7a['id'],_0x149e7a),ChatMessageEvents[_0x206d7f('0x1')](_0x33c47e,_0x149e7a);};}for(const e in events){if(typeof events[e]!==_0x5137e9('0x7')){const event=events[e];ChatMessage['addHook'](e,emitEvent(event));}}module[_0x5137e9('0x3')]=ChatMessageEvents; \ No newline at end of file +const a81_0x6945=['emit','ChatMessage','setMaxListeners','remove','undefined','update','addHook','exports','save'];(function(_0xa64a48,_0x6945a6){const _0x5c6681=function(_0x19b6f2){while(--_0x19b6f2){_0xa64a48['push'](_0xa64a48['shift']());}};_0x5c6681(++_0x6945a6);}(a81_0x6945,0x85));const a81_0x5c66=function(_0xa64a48,_0x6945a6){_0xa64a48=_0xa64a48-0x0;let _0x5c6681=a81_0x6945[_0xa64a48];return _0x5c6681;};const _0x1293b9=a81_0x5c66;'use strict';const EventEmitter=require('events'),ChatMessage=require('../../mysqldb')['db'][_0x1293b9('0x3')],ChatMessageEvents=new EventEmitter();ChatMessageEvents[_0x1293b9('0x4')](0x0);const events={'afterCreate':_0x1293b9('0x1'),'afterUpdate':_0x1293b9('0x7'),'afterDestroy':_0x1293b9('0x5')};function emitEvent(_0x19b6f2){return function(_0xdddb43){const _0x117716=a81_0x5c66;ChatMessageEvents[_0x117716('0x2')](_0x19b6f2+':'+_0xdddb43['id'],_0xdddb43),ChatMessageEvents[_0x117716('0x2')](_0x19b6f2,_0xdddb43);};}for(const e in events){if(typeof events[e]!==_0x1293b9('0x6')){const event=events[e];ChatMessage[_0x1293b9('0x8')](e,emitEvent(event));}}module[_0x1293b9('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 7a49e9c..ec9b1b1 100644 --- a/server/api/chatMessage/chatMessage.model.js +++ b/server/api/chatMessage/chatMessage.model.js @@ -1 +1 @@ -const a82_0x171e=['isNil','chat_messages','utf8mb4','FULLTEXT','fti_chat_messages','ChatInteractionId','update','UserId','toLowerCase','secret','models','out','lodash','define','catch','then','exports','utf8mb4_unicode_ci','get','findOne','error','body','ChatMessage','direction','./chatMessage.attributes'];(function(_0x4f3012,_0x171e43){const _0x56f72b=function(_0x42d155){while(--_0x42d155){_0x4f3012['push'](_0x4f3012['shift']());}};_0x56f72b(++_0x171e43);}(a82_0x171e,0x120));const a82_0x56f7=function(_0x4f3012,_0x171e43){_0x4f3012=_0x4f3012-0x0;let _0x56f72b=a82_0x171e[_0x4f3012];return _0x56f72b;};const _0x160c12=a82_0x56f7;'use strict';const _=require(_0x160c12('0x18')),attributes=require(_0x160c12('0xb'));module[_0x160c12('0x3')]=function(_0x42d155){const _0x452095=_0x160c12,_0x3b5642=_0x42d155[_0x452095('0x16')],_0x39bb21=_0x42d155[_0x452095('0x0')](_0x452095('0x9'),attributes,{'tableName':_0x452095('0xd'),'paranoid':![],'indexes':[{'name':_0x452095('0x10'),'fields':[_0x452095('0x8')],'type':_0x452095('0xf')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x27a42b){const _0xd0ab1e=_0x452095,_0x16aa26=_0x27a42b[_0xd0ab1e('0x5')]({'plain':!![]});(_0x16aa26[_0xd0ab1e('0xa')]['toLowerCase']()==='in'||_0x16aa26['direction']['toLowerCase']()===_0xd0ab1e('0x17')&&!_0x16aa26[_0xd0ab1e('0x15')]&&!_[_0xd0ab1e('0xc')](_0x16aa26[_0xd0ab1e('0x13')]))&&_0x3b5642['ChatInteraction'][_0xd0ab1e('0x6')]({'where':{'id':_0x16aa26[_0xd0ab1e('0x11')]}})[_0xd0ab1e('0x2')](function(_0x2a3f02){const _0x366966=_0xd0ab1e;_0x2a3f02&&_0x2a3f02[_0x366966('0x12')]({'lastMsgAt':_0x16aa26['createdAt'],'lastMsgDirection':_0x16aa26['direction'][_0x366966('0x14')]()});})[_0xd0ab1e('0x1')](function(_0x4023e5){const _0x11976d=_0xd0ab1e;console[_0x11976d('0x7')](_0x4023e5);});}},'charset':_0x452095('0xe'),'collate':_0x452095('0x4')});return _0x39bb21;}; \ No newline at end of file +const a82_0x11ab=['get','ChatMessage','exports','utf8mb4_unicode_ci','error','lodash','secret','toLowerCase','isNil','update','ChatInteraction','catch','then','findOne','createdAt','out','models','./chatMessage.attributes','define','direction'];(function(_0x6dc9bb,_0x11abb3){const _0x64b421=function(_0x4749c9){while(--_0x4749c9){_0x6dc9bb['push'](_0x6dc9bb['shift']());}};_0x64b421(++_0x11abb3);}(a82_0x11ab,0x153));const a82_0x64b4=function(_0x6dc9bb,_0x11abb3){_0x6dc9bb=_0x6dc9bb-0x0;let _0x64b421=a82_0x11ab[_0x6dc9bb];return _0x64b421;};const _0x5f32b6=a82_0x64b4;'use strict';const _=require(_0x5f32b6('0x6')),attributes=require(_0x5f32b6('0x12'));module[_0x5f32b6('0x3')]=function(_0x4749c9){const _0x210227=_0x5f32b6,_0x890cd8=_0x4749c9[_0x210227('0x11')],_0x12091e=_0x4749c9[_0x210227('0x13')](_0x210227('0x2'),attributes,{'tableName':'chat_messages','paranoid':![],'indexes':[{'name':'fti_chat_messages','fields':['body'],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x1411c9){const _0x27797a=_0x210227,_0x4710df=_0x1411c9[_0x27797a('0x1')]({'plain':!![]});(_0x4710df[_0x27797a('0x0')][_0x27797a('0x8')]()==='in'||_0x4710df['direction']['toLowerCase']()===_0x27797a('0x10')&&!_0x4710df[_0x27797a('0x7')]&&!_[_0x27797a('0x9')](_0x4710df['UserId']))&&_0x890cd8[_0x27797a('0xb')][_0x27797a('0xe')]({'where':{'id':_0x4710df['ChatInteractionId']}})[_0x27797a('0xd')](function(_0x4e2292){const _0x2c2061=_0x27797a;_0x4e2292&&_0x4e2292[_0x2c2061('0xa')]({'lastMsgAt':_0x4710df[_0x2c2061('0xf')],'lastMsgDirection':_0x4710df[_0x2c2061('0x0')][_0x2c2061('0x8')]()});})[_0x27797a('0xc')](function(_0x54be77){const _0x2ea0de=_0x27797a;console[_0x2ea0de('0x5')](_0x54be77);});}},'charset':'utf8mb4','collate':_0x210227('0x4')});return _0x12091e;}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.rpc.js b/server/api/chatMessage/chatMessage.rpc.js index 0f858cf..e7b51dc 100644 --- a/server/api/chatMessage/chatMessage.rpc.js +++ b/server/api/chatMessage/chatMessage.rpc.js @@ -1 +1 @@ -const a83_0x4119=['rpc','debug','./chatMessage.socket','catch','options','stringify','../../mysqldb','../../rediscache','create','CreateChatMessage','../../config/logger','body','raw','error'];(function(_0x460702,_0x411997){const _0x48a98b=function(_0x262b1b){while(--_0x262b1b){_0x460702['push'](_0x460702['shift']());}};_0x48a98b(++_0x411997);}(a83_0x4119,0x173));const a83_0x48a9=function(_0x460702,_0x411997){_0x460702=_0x460702-0x0;let _0x48a98b=a83_0x4119[_0x460702];return _0x48a98b;};const _0x57d6c8=a83_0x48a9;'use strict';const db=require(_0x57d6c8('0xd'))['db'],logger=require(_0x57d6c8('0x3'))(_0x57d6c8('0x7')),{getSocket}=require(_0x57d6c8('0x0')),socket=getSocket();require(_0x57d6c8('0x9'))['register'](socket),exports[_0x57d6c8('0x2')]=function(_0x262b1b){const _0x41d6f7=this;return new Promise(function(_0x101611,_0x3af238){const _0x4226d8=a83_0x48a9;return db['ChatMessage'][_0x4226d8('0x1')](_0x262b1b[_0x4226d8('0x4')],{'raw':_0x262b1b[_0x4226d8('0xb')]?_0x262b1b[_0x4226d8('0xb')][_0x4226d8('0x5')]===undefined?!![]:![]:!![]})['then'](function(_0x241c8e){const _0x143612=_0x4226d8;logger['info'](_0x143612('0x2'),_0x262b1b),logger[_0x143612('0x8')](_0x143612('0x2'),_0x262b1b,JSON[_0x143612('0xc')](_0x241c8e)),_0x101611(_0x241c8e);})[_0x4226d8('0xa')](function(_0x23632e){const _0x3d2e21=_0x4226d8;logger[_0x3d2e21('0x6')](_0x3d2e21('0x2'),_0x23632e['message'],_0x262b1b),_0x3af238(_0x41d6f7[_0x3d2e21('0x6')](0x1f4,_0x23632e['message']));});});}; \ No newline at end of file +const a83_0x17c8=['CreateChatMessage','ChatMessage','info','message','body','debug','rpc','./chatMessage.socket','create','error','../../mysqldb','options','catch','stringify','register','../../config/logger'];(function(_0x4fc45b,_0x17c831){const _0x1c19fa=function(_0x49daa6){while(--_0x49daa6){_0x4fc45b['push'](_0x4fc45b['shift']());}};_0x1c19fa(++_0x17c831);}(a83_0x17c8,0x1f1));const a83_0x1c19=function(_0x4fc45b,_0x17c831){_0x4fc45b=_0x4fc45b-0x0;let _0x1c19fa=a83_0x17c8[_0x4fc45b];return _0x1c19fa;};const _0x14b685=a83_0x1c19;'use strict';const db=require(_0x14b685('0x9'))['db'],logger=require(_0x14b685('0xe'))(_0x14b685('0x5')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x14b685('0x6'))[_0x14b685('0xd')](socket),exports['CreateChatMessage']=function(_0x49daa6){const _0x530cf6=this;return new Promise(function(_0x623bb5,_0x224b39){const _0x37bf05=a83_0x1c19;return db[_0x37bf05('0x0')][_0x37bf05('0x7')](_0x49daa6[_0x37bf05('0x3')],{'raw':_0x49daa6[_0x37bf05('0xa')]?_0x49daa6['options']['raw']===undefined?!![]:![]:!![]})['then'](function(_0x4753a3){const _0xc6e8fd=_0x37bf05;logger[_0xc6e8fd('0x1')](_0xc6e8fd('0xf'),_0x49daa6),logger[_0xc6e8fd('0x4')](_0xc6e8fd('0xf'),_0x49daa6,JSON[_0xc6e8fd('0xc')](_0x4753a3)),_0x623bb5(_0x4753a3);})[_0x37bf05('0xb')](function(_0x1235db){const _0x55937e=_0x37bf05;logger[_0x55937e('0x8')](_0x55937e('0xf'),_0x1235db['message'],_0x49daa6),_0x224b39(_0x530cf6[_0x55937e('0x8')](0x1f4,_0x1235db[_0x55937e('0x2')]));});});}; \ No newline at end of file diff --git a/server/api/chatMessage/chatMessage.socket.js b/server/api/chatMessage/chatMessage.socket.js index cb40fb2..5d7657b 100644 --- a/server/api/chatMessage/chatMessage.socket.js +++ b/server/api/chatMessage/chatMessage.socket.js @@ -1 +1 @@ -const a84_0x2716=['emit','register','./chatMessage.events','update','length','save'];(function(_0x5c74b0,_0x2716ef){const _0x1d7847=function(_0x1584ba){while(--_0x1584ba){_0x5c74b0['push'](_0x5c74b0['shift']());}};_0x1d7847(++_0x2716ef);}(a84_0x2716,0x8c));const a84_0x1d78=function(_0x5c74b0,_0x2716ef){_0x5c74b0=_0x5c74b0-0x0;let _0x1d7847=a84_0x2716[_0x5c74b0];return _0x1d7847;};const _0x40adff=a84_0x1d78;'use strict';const ChatMessageEvents=require(_0x40adff('0x0')),events=[_0x40adff('0x3'),'remove',_0x40adff('0x1')];function createListener(_0x1584ba,_0x5d4c71){return function(_0x13fa44){const _0x26f196=a84_0x1d78;_0x5d4c71[_0x26f196('0x4')](_0x1584ba,_0x13fa44);};}exports[_0x40adff('0x5')]=function(_0x35161b){const _0x425495=_0x40adff;for(let _0x2ba733=0x0,_0x4200f2=events[_0x425495('0x2')];_0x2ba733<_0x4200f2;_0x2ba733++){const _0x5634aa=events[_0x2ba733],_0x247cbe=createListener('chatMessage:'+_0x5634aa,_0x35161b);ChatMessageEvents['on'](_0x5634aa,_0x247cbe);}}; \ No newline at end of file +const a84_0x2340=['update','emit','register','./chatMessage.events','remove','length','chatMessage:','save'];(function(_0x5d3b6f,_0x23407d){const _0x28225c=function(_0x2e3447){while(--_0x2e3447){_0x5d3b6f['push'](_0x5d3b6f['shift']());}};_0x28225c(++_0x23407d);}(a84_0x2340,0x163));const a84_0x2822=function(_0x5d3b6f,_0x23407d){_0x5d3b6f=_0x5d3b6f-0x0;let _0x28225c=a84_0x2340[_0x5d3b6f];return _0x28225c;};const _0x29d2a4=a84_0x2822;'use strict';const ChatMessageEvents=require(_0x29d2a4('0x0')),events=[_0x29d2a4('0x4'),_0x29d2a4('0x1'),_0x29d2a4('0x5')];function createListener(_0x2e3447,_0x329ba0){return function(_0x581885){const _0x304a27=a84_0x2822;_0x329ba0[_0x304a27('0x6')](_0x2e3447,_0x581885);};}exports[_0x29d2a4('0x7')]=function(_0x3d42b4){const _0x2dea73=_0x29d2a4;for(let _0x8854ff=0x0,_0x2957a2=events[_0x2dea73('0x2')];_0x8854ff<_0x2957a2;_0x8854ff++){const _0x12a9ea=events[_0x8854ff],_0x171931=createListener(_0x2dea73('0x3')+_0x12a9ea,_0x3d42b4);ChatMessageEvents['on'](_0x12a9ea,_0x171931);}}; \ No newline at end of file diff --git a/server/api/chatMessage/index.js b/server/api/chatMessage/index.js index 965f0ff..db94d5a 100644 --- a/server/api/chatMessage/index.js +++ b/server/api/chatMessage/index.js @@ -1 +1 @@ -const a85_0x3057=['exports','/:id/accept','chatmessage:create','../../components/interaction/service','describe','/:id','express','../../components/auth/service','/describe','index','/:id/reject','reject','get','show','isAuthenticated','create','accept','post','destroy','Router','tracked','put'];(function(_0x186065,_0x305751){const _0x1dee8c=function(_0xbb2eeb){while(--_0xbb2eeb){_0x186065['push'](_0x186065['shift']());}};_0x1dee8c(++_0x305751);}(a85_0x3057,0x1bd));const a85_0x1dee=function(_0x186065,_0x305751){_0x186065=_0x186065-0x0;let _0x1dee8c=a85_0x3057[_0x186065];return _0x1dee8c;};const _0x4d45ce=a85_0x1dee;'use strict';const express=require(_0x4d45ce('0x1')),router=express[_0x4d45ce('0xe')](),auth=require(_0x4d45ce('0x2')),interaction=require(_0x4d45ce('0x14')),controller=require('./chatMessage.controller');router['get']('/',auth[_0x4d45ce('0x9')](),controller[_0x4d45ce('0x4')]),router[_0x4d45ce('0x7')](_0x4d45ce('0x3'),auth[_0x4d45ce('0x9')](),controller[_0x4d45ce('0x15')]),router[_0x4d45ce('0x7')](_0x4d45ce('0x0'),auth['isAuthenticated'](),controller[_0x4d45ce('0x8')]),router[_0x4d45ce('0xc')]('/',auth[_0x4d45ce('0x9')](),interaction[_0x4d45ce('0xf')]('chat',_0x4d45ce('0x13')),controller[_0x4d45ce('0xa')]),router[_0x4d45ce('0x10')](_0x4d45ce('0x0'),controller['update']),router[_0x4d45ce('0x10')](_0x4d45ce('0x12'),auth['isAuthenticated'](),controller[_0x4d45ce('0xb')]),router['put'](_0x4d45ce('0x5'),auth[_0x4d45ce('0x9')](),controller[_0x4d45ce('0x6')]),router['delete'](_0x4d45ce('0x0'),auth['isAuthenticated'](),controller[_0x4d45ce('0xd')]),module[_0x4d45ce('0x11')]=router; \ No newline at end of file +const a85_0x5bbb=['/describe','exports','show','put','/:id/reject','update','destroy','tracked','../../components/interaction/service','delete','reject','isAuthenticated','post','chatmessage:create','describe','accept','/:id','express','chat','get'];(function(_0x545f33,_0x5bbb9e){const _0x42f35a=function(_0x2fb552){while(--_0x2fb552){_0x545f33['push'](_0x545f33['shift']());}};_0x42f35a(++_0x5bbb9e);}(a85_0x5bbb,0xdb));const a85_0x42f3=function(_0x545f33,_0x5bbb9e){_0x545f33=_0x545f33-0x0;let _0x42f35a=a85_0x5bbb[_0x545f33];return _0x42f35a;};const _0x140337=a85_0x42f3;'use strict';const express=require(_0x140337('0x12')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require(_0x140337('0x9')),controller=require('./chatMessage.controller');router[_0x140337('0x0')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x140337('0x1'),auth[_0x140337('0xc')](),controller[_0x140337('0xf')]),router['get'](_0x140337('0x11'),auth[_0x140337('0xc')](),controller[_0x140337('0x3')]),router[_0x140337('0xd')]('/',auth[_0x140337('0xc')](),interaction[_0x140337('0x8')](_0x140337('0x13'),_0x140337('0xe')),controller['create']),router[_0x140337('0x4')]('/:id',controller[_0x140337('0x6')]),router['put']('/:id/accept',auth[_0x140337('0xc')](),controller[_0x140337('0x10')]),router[_0x140337('0x4')](_0x140337('0x5'),auth[_0x140337('0xc')](),controller[_0x140337('0xb')]),router[_0x140337('0xa')](_0x140337('0x11'),auth[_0x140337('0xc')](),controller[_0x140337('0x7')]),module[_0x140337('0x2')]=router; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js index bf5a380..2f0055e 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.attributes.js @@ -1 +1 @@ -const a86_0x1a17=['sequelize','medium'];(function(_0x2507fe,_0x1a17c0){const _0x1e99d3=function(_0x212b0c){while(--_0x212b0c){_0x2507fe['push'](_0x2507fe['shift']());}};_0x1e99d3(++_0x1a17c0);}(a86_0x1a17,0xf9));const a86_0x1e99=function(_0x2507fe,_0x1a17c0){_0x2507fe=_0x2507fe-0x0;let _0x1e99d3=a86_0x1a17[_0x2507fe];return _0x1e99d3;};const _0x126d91=a86_0x1e99;'use strict';const Sequelize=require(_0x126d91('0x1'));module['exports']={'body':{'type':Sequelize['TEXT'](_0x126d91('0x0')),'allowNull':![]}}; \ No newline at end of file +const a86_0x373e=['sequelize','TEXT','medium'];(function(_0x484fb2,_0x373efe){const _0x3ad3b0=function(_0x812238){while(--_0x812238){_0x484fb2['push'](_0x484fb2['shift']());}};_0x3ad3b0(++_0x373efe);}(a86_0x373e,0x72));const a86_0x3ad3=function(_0x484fb2,_0x373efe){_0x484fb2=_0x484fb2-0x0;let _0x3ad3b0=a86_0x373e[_0x484fb2];return _0x3ad3b0;};const _0x174fc6=a86_0x3ad3;'use strict';const Sequelize=require(_0x174fc6('0x0'));module['exports']={'body':{'type':Sequelize[_0x174fc6('0x1')](_0x174fc6('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 9f04860..0192fe2 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.controller.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.controller.js @@ -1 +1 @@ -const a87_0x55df=['attributes','findOne','send','length','destroy','undefined','nolimit','order','ChatOfflineMessage','stack','../../config/logger','name','status','index','then','end','rawAttributes','Content-Range','like','limit','catch','VIRTUAL','keys','filter','set','error','../../mysqldb','body','offset','sort','api','pick','merge','type','includeAll','sequelize','model','filters','where','lodash','rows','sendStatus','create','query','map','update','json','params','count','include','fieldName','intersection','fields','options'];(function(_0x462843,_0x55df2a){const _0x531ab0=function(_0x26f301){while(--_0x26f301){_0x462843['push'](_0x462843['shift']());}};_0x531ab0(++_0x55df2a);}(a87_0x55df,0x195));const a87_0x531a=function(_0x462843,_0x55df2a){_0x462843=_0x462843-0x0;let _0x531ab0=a87_0x55df[_0x462843];return _0x531ab0;};const _0x2a4d54=a87_0x531a;'use strict';const _=require(_0x2a4d54('0xc')),qs=require('../../components/parsers/qs'),logger=require(_0x2a4d54('0x25'))(_0x2a4d54('0x3')),db=require(_0x2a4d54('0x35'))['db'],{Op}=require(_0x2a4d54('0x8'));function respondWithResult(_0x26f301,_0x39c442){return _0x39c442=_0x39c442||0xc8,function(_0x5bb287){const _0x8547eb=a87_0x531a;if(_0x5bb287)return _0x26f301[_0x8547eb('0x27')](_0x39c442)[_0x8547eb('0x13')](_0x5bb287);};}function respondWithFilteredResult(_0xe5a6ff,_0x580d8b){return function(_0x17324b){const _0x40708d=a87_0x531a;if(_0x17324b){const _0x131414=_0x17324b['count'],_0x164073=_0x580d8b[_0x40708d('0x1')];let _0x6b44f0=_0x580d8b[_0x40708d('0x1')]+_0x580d8b[_0x40708d('0x2e')],_0x349879;return _0x6b44f0>=_0x131414?(_0x6b44f0=_0x131414,_0x349879=0xc8):_0x349879=0xce,_0xe5a6ff[_0x40708d('0x27')](_0x349879),_0xe5a6ff[_0x40708d('0x33')](_0x40708d('0x2c'),_0x164073+'-'+_0x6b44f0+'/'+_0x131414)['json'](_0x17324b);}return null;};}function saveUpdates(_0x3ba8bc){return function(_0x187967){const _0x4de301=a87_0x531a;if(_0x187967)return _0x187967[_0x4de301('0x12')](_0x3ba8bc)[_0x4de301('0x29')](function(_0x528ffc){return _0x528ffc;});return null;};}function removeEntity(_0x1c2578){return function(_0x466fbd){const _0x5a89d7=a87_0x531a;if(_0x466fbd)return _0x466fbd[_0x5a89d7('0x1f')]()[_0x5a89d7('0x29')](function(){const _0x494602=_0x5a89d7;_0x1c2578['status'](0xcc)[_0x494602('0x2a')]();});};}function handleEntityNotFound(_0x263877){return function(_0x456fbc){const _0x5c9cdc=a87_0x531a;return!_0x456fbc&&_0x263877[_0x5c9cdc('0xe')](0x194),_0x456fbc;};}function handleError(_0xaf70da,_0x1a3a65){return _0x1a3a65=_0x1a3a65||0x1f4,function(_0x415e37){const _0x44cf79=a87_0x531a;logger[_0x44cf79('0x34')](_0x415e37[_0x44cf79('0x24')]),_0x415e37[_0x44cf79('0x26')]&&delete _0x415e37[_0x44cf79('0x26')],_0xaf70da['status'](_0x1a3a65)[_0x44cf79('0x1d')](_0x415e37);};}exports[_0x2a4d54('0x28')]=function(_0x5827d2,_0x2825ac){const _0x2ed219=_0x2a4d54;let _0x4e5c36={};const _0x31129f={},_0x5140d3={'count':0x0,'rows':[]},_0xdf3b6e=_[_0x2ed219('0x11')](db[_0x2ed219('0x23')][_0x2ed219('0x2b')],function(_0x2af5b7){const _0x381fe3=_0x2ed219;return{'name':_0x2af5b7[_0x381fe3('0x17')],'type':_0x2af5b7[_0x381fe3('0x6')]['key']};});_0x31129f[_0x2ed219('0x9')]=_[_0x2ed219('0x11')](_0xdf3b6e,_0x2ed219('0x26')),_0x31129f['query']=_['keys'](_0x5827d2['query']),_0x31129f['filters']=_[_0x2ed219('0x18')](_0x31129f[_0x2ed219('0x9')],_0x31129f[_0x2ed219('0x10')]),_0x4e5c36[_0x2ed219('0x1b')]=_[_0x2ed219('0x18')](_0x31129f[_0x2ed219('0x9')],qs['fields'](_0x5827d2[_0x2ed219('0x10')][_0x2ed219('0x19')])),_0x4e5c36[_0x2ed219('0x1b')]=_0x4e5c36[_0x2ed219('0x1b')][_0x2ed219('0x1e')]?_0x4e5c36['attributes']:_0x31129f[_0x2ed219('0x9')];typeof _0x5827d2[_0x2ed219('0x10')][_0x2ed219('0x21')]===_0x2ed219('0x20')&&(_0x4e5c36[_0x2ed219('0x2e')]=qs['limit'](_0x5827d2['query'][_0x2ed219('0x2e')]),_0x4e5c36[_0x2ed219('0x1')]=qs[_0x2ed219('0x1')](_0x5827d2[_0x2ed219('0x10')]['offset']));_0x4e5c36[_0x2ed219('0x22')]=qs[_0x2ed219('0x2')](_0x5827d2[_0x2ed219('0x10')][_0x2ed219('0x2')]),_0x4e5c36['where']=qs[_0x2ed219('0xa')](_[_0x2ed219('0x4')](_0x5827d2[_0x2ed219('0x10')],_0x31129f['filters']),_0xdf3b6e);_0x5827d2[_0x2ed219('0x10')][_0x2ed219('0x32')]&&(_0x4e5c36[_0x2ed219('0xb')]=_[_0x2ed219('0x5')](_0x4e5c36[_0x2ed219('0xb')],{[Op['or']]:_[_0x2ed219('0x11')](_0xdf3b6e,function(_0x3439ef){const _0x4de4cc=_0x2ed219;if(_0x3439ef[_0x4de4cc('0x6')]!==_0x4de4cc('0x30')){const _0x2baed4={};return _0x2baed4[_0x3439ef['name']]={[Op[_0x4de4cc('0x2d')]]:'%'+_0x5827d2[_0x4de4cc('0x10')]['filter']+'%'},_0x2baed4;}})}));_0x4e5c36=_['merge']({},_0x4e5c36,_0x5827d2[_0x2ed219('0x1a')]);const _0xc54447={'where':_0x4e5c36[_0x2ed219('0xb')]};return db[_0x2ed219('0x23')]['count'](_0xc54447)[_0x2ed219('0x29')](function(_0x62644e){const _0x2e12da=_0x2ed219;return _0x5140d3[_0x2e12da('0x15')]=_0x62644e,_0x5827d2[_0x2e12da('0x10')][_0x2e12da('0x7')]&&(_0x4e5c36[_0x2e12da('0x16')]=[{'all':!![]}]),db[_0x2e12da('0x23')]['findAll'](_0x4e5c36);})['then'](function(_0x4b45a6){const _0x4e8883=_0x2ed219;return _0x5140d3[_0x4e8883('0xd')]=_0x4b45a6,_0x5140d3;})['then'](respondWithFilteredResult(_0x2825ac,_0x4e5c36))[_0x2ed219('0x2f')](handleError(_0x2825ac,null));},exports['show']=function(_0x37a887,_0x1a4223){const _0x273d81=_0x2a4d54;let _0x29d958={'raw':!![],'where':{'id':_0x37a887['params']['id']}};const _0x2651c1={};return _0x2651c1['model']=_[_0x273d81('0x31')](db['ChatOfflineMessage'][_0x273d81('0x2b')]),_0x2651c1[_0x273d81('0x10')]=_['keys'](_0x37a887['query']),_0x2651c1[_0x273d81('0xa')]=_['intersection'](_0x2651c1['model'],_0x2651c1['query']),_0x29d958[_0x273d81('0x1b')]=_[_0x273d81('0x18')](_0x2651c1[_0x273d81('0x9')],qs[_0x273d81('0x19')](_0x37a887[_0x273d81('0x10')][_0x273d81('0x19')])),_0x29d958[_0x273d81('0x1b')]=_0x29d958[_0x273d81('0x1b')][_0x273d81('0x1e')]?_0x29d958[_0x273d81('0x1b')]:_0x2651c1[_0x273d81('0x9')],_0x37a887[_0x273d81('0x10')][_0x273d81('0x7')]&&(_0x29d958[_0x273d81('0x16')]=[{'all':!![]}]),_0x29d958=_[_0x273d81('0x5')]({},_0x29d958,_0x37a887[_0x273d81('0x1a')]),db[_0x273d81('0x23')][_0x273d81('0x1c')](_0x29d958)[_0x273d81('0x29')](handleEntityNotFound(_0x1a4223,null))[_0x273d81('0x29')](respondWithResult(_0x1a4223,null))[_0x273d81('0x2f')](handleError(_0x1a4223,null));},exports[_0x2a4d54('0xf')]=function(_0x30eed6,_0x5cdf65){const _0x1b2d92=_0x2a4d54;return db[_0x1b2d92('0x23')]['create'](_0x30eed6[_0x1b2d92('0x0')],{})[_0x1b2d92('0x29')](respondWithResult(_0x5cdf65,0xc9))[_0x1b2d92('0x2f')](handleError(_0x5cdf65,null));},exports[_0x2a4d54('0x12')]=function(_0x1569cf,_0x30cc36){const _0x5e77d6=_0x2a4d54;return _0x1569cf[_0x5e77d6('0x0')]['id']&&delete _0x1569cf['body']['id'],db[_0x5e77d6('0x23')][_0x5e77d6('0x1c')]({'where':{'id':_0x1569cf['params']['id']}})[_0x5e77d6('0x29')](handleEntityNotFound(_0x30cc36,null))['then'](saveUpdates(_0x1569cf[_0x5e77d6('0x0')],null))[_0x5e77d6('0x29')](respondWithResult(_0x30cc36,null))[_0x5e77d6('0x2f')](handleError(_0x30cc36,null));},exports[_0x2a4d54('0x1f')]=function(_0x3ec823,_0x372ce8){const _0x116b3a=_0x2a4d54;return db[_0x116b3a('0x23')]['findOne']({'where':{'id':_0x3ec823[_0x116b3a('0x14')]['id']}})['then'](handleEntityNotFound(_0x372ce8,null))['then'](removeEntity(_0x372ce8,null))[_0x116b3a('0x2f')](handleError(_0x372ce8,null));},exports['describe']=function(_0xc71ca8,_0x137622){const _0x21f322=_0x2a4d54;return db[_0x21f322('0x23')]['describe']()[_0x21f322('0x29')](respondWithResult(_0x137622,null))[_0x21f322('0x2f')](handleError(_0x137622,null));}; \ No newline at end of file +const a87_0x515d=['ChatOfflineMessage','error','nolimit','includeAll','json','type','create','name','where','fieldName','set','destroy','offset','catch','describe','intersection','sort','keys','index','include','undefined','../../components/parsers/qs','options','show','pick','../../mysqldb','merge','fields','findOne','findAll','map','then','attributes','body','model','filters','update','stack','VIRTUAL','end','rawAttributes','query','length','status','sendStatus','api','params','like','lodash','count','limit','../../config/logger','key'];(function(_0x331363,_0x515d3e){const _0x5e88f9=function(_0x5bae7c){while(--_0x5bae7c){_0x331363['push'](_0x331363['shift']());}};_0x5e88f9(++_0x515d3e);}(a87_0x515d,0x16a));const a87_0x5e88=function(_0x331363,_0x515d3e){_0x331363=_0x331363-0x0;let _0x5e88f9=a87_0x515d[_0x331363];return _0x5e88f9;};const _0x3e8c77=a87_0x5e88;'use strict';const _=require(_0x3e8c77('0x4')),qs=require(_0x3e8c77('0x1e')),logger=require(_0x3e8c77('0x7'))(_0x3e8c77('0x1')),db=require(_0x3e8c77('0x22'))['db'],{Op}=require('sequelize');function respondWithResult(_0x5bae7c,_0x597898){return _0x597898=_0x597898||0xc8,function(_0x1e4074){const _0x4e4040=a87_0x5e88;if(_0x1e4074)return _0x5bae7c['status'](_0x597898)[_0x4e4040('0xd')](_0x1e4074);};}function respondWithFilteredResult(_0x3eb940,_0x4620b6){return function(_0x3be941){const _0x3ffb49=a87_0x5e88;if(_0x3be941){const _0x289340=_0x3be941[_0x3ffb49('0x5')],_0x38be91=_0x4620b6[_0x3ffb49('0x15')];let _0x137175=_0x4620b6[_0x3ffb49('0x15')]+_0x4620b6[_0x3ffb49('0x6')],_0x387639;return _0x137175>=_0x289340?(_0x137175=_0x289340,_0x387639=0xc8):_0x387639=0xce,_0x3eb940[_0x3ffb49('0x34')](_0x387639),_0x3eb940[_0x3ffb49('0x13')]('Content-Range',_0x38be91+'-'+_0x137175+'/'+_0x289340)[_0x3ffb49('0xd')](_0x3be941);}return null;};}function saveUpdates(_0xc6c728){return function(_0x1fbf08){const _0x5a39d8=a87_0x5e88;if(_0x1fbf08)return _0x1fbf08[_0x5a39d8('0x2d')](_0xc6c728)[_0x5a39d8('0x28')](function(_0x4272e8){return _0x4272e8;});return null;};}function removeEntity(_0x53db7c){return function(_0x46f4a7){const _0x2d94be=a87_0x5e88;if(_0x46f4a7)return _0x46f4a7[_0x2d94be('0x14')]()[_0x2d94be('0x28')](function(){const _0x349331=_0x2d94be;_0x53db7c['status'](0xcc)[_0x349331('0x30')]();});};}function handleEntityNotFound(_0x5caf54){return function(_0x263184){const _0x2248e5=a87_0x5e88;return!_0x263184&&_0x5caf54[_0x2248e5('0x0')](0x194),_0x263184;};}function handleError(_0x55b300,_0x4e46f8){return _0x4e46f8=_0x4e46f8||0x1f4,function(_0x7f2bee){const _0x52f6dd=a87_0x5e88;logger[_0x52f6dd('0xa')](_0x7f2bee[_0x52f6dd('0x2e')]),_0x7f2bee[_0x52f6dd('0x10')]&&delete _0x7f2bee[_0x52f6dd('0x10')],_0x55b300[_0x52f6dd('0x34')](_0x4e46f8)['send'](_0x7f2bee);};}exports[_0x3e8c77('0x1b')]=function(_0x2a07c5,_0x11c079){const _0x32e660=_0x3e8c77;let _0x48011a={};const _0x50f9cf={},_0x1e9090={'count':0x0,'rows':[]},_0x5716ce=_[_0x32e660('0x27')](db['ChatOfflineMessage'][_0x32e660('0x31')],function(_0x5793ef){const _0x3da85f=_0x32e660;return{'name':_0x5793ef[_0x3da85f('0x12')],'type':_0x5793ef[_0x3da85f('0xe')][_0x3da85f('0x8')]};});_0x50f9cf['model']=_[_0x32e660('0x27')](_0x5716ce,_0x32e660('0x10')),_0x50f9cf['query']=_[_0x32e660('0x1a')](_0x2a07c5[_0x32e660('0x32')]),_0x50f9cf['filters']=_['intersection'](_0x50f9cf['model'],_0x50f9cf[_0x32e660('0x32')]),_0x48011a['attributes']=_[_0x32e660('0x18')](_0x50f9cf['model'],qs[_0x32e660('0x24')](_0x2a07c5['query'][_0x32e660('0x24')])),_0x48011a['attributes']=_0x48011a[_0x32e660('0x29')][_0x32e660('0x33')]?_0x48011a['attributes']:_0x50f9cf[_0x32e660('0x2b')];typeof _0x2a07c5[_0x32e660('0x32')][_0x32e660('0xb')]===_0x32e660('0x1d')&&(_0x48011a[_0x32e660('0x6')]=qs[_0x32e660('0x6')](_0x2a07c5[_0x32e660('0x32')][_0x32e660('0x6')]),_0x48011a['offset']=qs[_0x32e660('0x15')](_0x2a07c5['query']['offset']));_0x48011a['order']=qs[_0x32e660('0x19')](_0x2a07c5[_0x32e660('0x32')]['sort']),_0x48011a[_0x32e660('0x11')]=qs['filters'](_[_0x32e660('0x21')](_0x2a07c5['query'],_0x50f9cf[_0x32e660('0x2c')]),_0x5716ce);_0x2a07c5[_0x32e660('0x32')]['filter']&&(_0x48011a['where']=_[_0x32e660('0x23')](_0x48011a[_0x32e660('0x11')],{[Op['or']]:_[_0x32e660('0x27')](_0x5716ce,function(_0x3f56fc){const _0x23bd88=_0x32e660;if(_0x3f56fc[_0x23bd88('0xe')]!==_0x23bd88('0x2f')){const _0x252986={};return _0x252986[_0x3f56fc[_0x23bd88('0x10')]]={[Op[_0x23bd88('0x3')]]:'%'+_0x2a07c5[_0x23bd88('0x32')]['filter']+'%'},_0x252986;}})}));_0x48011a=_[_0x32e660('0x23')]({},_0x48011a,_0x2a07c5[_0x32e660('0x1f')]);const _0x44a076={'where':_0x48011a[_0x32e660('0x11')]};return db[_0x32e660('0x9')]['count'](_0x44a076)['then'](function(_0x591c07){const _0x13a692=_0x32e660;return _0x1e9090[_0x13a692('0x5')]=_0x591c07,_0x2a07c5['query'][_0x13a692('0xc')]&&(_0x48011a[_0x13a692('0x1c')]=[{'all':!![]}]),db[_0x13a692('0x9')][_0x13a692('0x26')](_0x48011a);})['then'](function(_0x203353){return _0x1e9090['rows']=_0x203353,_0x1e9090;})[_0x32e660('0x28')](respondWithFilteredResult(_0x11c079,_0x48011a))['catch'](handleError(_0x11c079,null));},exports[_0x3e8c77('0x20')]=function(_0x4dde8f,_0x54083f){const _0x35cf29=_0x3e8c77;let _0x577ec3={'raw':!![],'where':{'id':_0x4dde8f[_0x35cf29('0x2')]['id']}};const _0x1ae025={};return _0x1ae025['model']=_['keys'](db[_0x35cf29('0x9')][_0x35cf29('0x31')]),_0x1ae025['query']=_[_0x35cf29('0x1a')](_0x4dde8f[_0x35cf29('0x32')]),_0x1ae025['filters']=_[_0x35cf29('0x18')](_0x1ae025[_0x35cf29('0x2b')],_0x1ae025[_0x35cf29('0x32')]),_0x577ec3[_0x35cf29('0x29')]=_[_0x35cf29('0x18')](_0x1ae025[_0x35cf29('0x2b')],qs['fields'](_0x4dde8f['query'][_0x35cf29('0x24')])),_0x577ec3[_0x35cf29('0x29')]=_0x577ec3['attributes'][_0x35cf29('0x33')]?_0x577ec3[_0x35cf29('0x29')]:_0x1ae025[_0x35cf29('0x2b')],_0x4dde8f[_0x35cf29('0x32')][_0x35cf29('0xc')]&&(_0x577ec3[_0x35cf29('0x1c')]=[{'all':!![]}]),_0x577ec3=_[_0x35cf29('0x23')]({},_0x577ec3,_0x4dde8f[_0x35cf29('0x1f')]),db[_0x35cf29('0x9')][_0x35cf29('0x25')](_0x577ec3)[_0x35cf29('0x28')](handleEntityNotFound(_0x54083f,null))[_0x35cf29('0x28')](respondWithResult(_0x54083f,null))[_0x35cf29('0x16')](handleError(_0x54083f,null));},exports[_0x3e8c77('0xf')]=function(_0x3b05e7,_0x620cf2){const _0x30bdf0=_0x3e8c77;return db[_0x30bdf0('0x9')][_0x30bdf0('0xf')](_0x3b05e7[_0x30bdf0('0x2a')],{})['then'](respondWithResult(_0x620cf2,0xc9))[_0x30bdf0('0x16')](handleError(_0x620cf2,null));},exports[_0x3e8c77('0x2d')]=function(_0x309320,_0x595079){const _0x508797=_0x3e8c77;return _0x309320[_0x508797('0x2a')]['id']&&delete _0x309320[_0x508797('0x2a')]['id'],db[_0x508797('0x9')][_0x508797('0x25')]({'where':{'id':_0x309320['params']['id']}})[_0x508797('0x28')](handleEntityNotFound(_0x595079,null))[_0x508797('0x28')](saveUpdates(_0x309320['body'],null))[_0x508797('0x28')](respondWithResult(_0x595079,null))[_0x508797('0x16')](handleError(_0x595079,null));},exports[_0x3e8c77('0x14')]=function(_0x55f312,_0x25b171){const _0x329947=_0x3e8c77;return db[_0x329947('0x9')][_0x329947('0x25')]({'where':{'id':_0x55f312['params']['id']}})['then'](handleEntityNotFound(_0x25b171,null))[_0x329947('0x28')](removeEntity(_0x25b171,null))[_0x329947('0x16')](handleError(_0x25b171,null));},exports[_0x3e8c77('0x17')]=function(_0x3b1be0,_0x5a88a7){const _0x883fd4=_0x3e8c77;return db[_0x883fd4('0x9')]['describe']()['then'](respondWithResult(_0x5a88a7,null))[_0x883fd4('0x16')](handleError(_0x5a88a7,null));}; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/chatOfflineMessage.model.js b/server/api/chatOfflineMessage/chatOfflineMessage.model.js index 6eb50ed..264cee2 100644 --- a/server/api/chatOfflineMessage/chatOfflineMessage.model.js +++ b/server/api/chatOfflineMessage/chatOfflineMessage.model.js @@ -1 +1 @@ -const a88_0x2b93=['utf8mb4_unicode_ci','chat_offline_messages','utf8mb4','./chatOfflineMessage.attributes','ChatOfflineMessage','define'];(function(_0x331694,_0x2b9383){const _0x2928bb=function(_0x5b9214){while(--_0x5b9214){_0x331694['push'](_0x331694['shift']());}};_0x2928bb(++_0x2b9383);}(a88_0x2b93,0x70));const a88_0x2928=function(_0x331694,_0x2b9383){_0x331694=_0x331694-0x0;let _0x2928bb=a88_0x2b93[_0x331694];return _0x2928bb;};const _0x192495=a88_0x2928;'use strict';const attributes=require(_0x192495('0x5'));module['exports']=function(_0x5b9214){const _0x3ebbd3=_0x192495,_0x3271ed=_0x5b9214[_0x3ebbd3('0x1')](_0x3ebbd3('0x0'),attributes,{'tableName':_0x3ebbd3('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x3ebbd3('0x4'),'collate':_0x3ebbd3('0x2')});return _0x3271ed;}; \ No newline at end of file +const a88_0x4d47=['utf8mb4','./chatOfflineMessage.attributes','ChatOfflineMessage','define','exports'];(function(_0x2e04b1,_0x4d4739){const _0x4d3dd7=function(_0x49a114){while(--_0x49a114){_0x2e04b1['push'](_0x2e04b1['shift']());}};_0x4d3dd7(++_0x4d4739);}(a88_0x4d47,0x85));const a88_0x4d3d=function(_0x2e04b1,_0x4d4739){_0x2e04b1=_0x2e04b1-0x0;let _0x4d3dd7=a88_0x4d47[_0x2e04b1];return _0x4d3dd7;};const _0x139f36=a88_0x4d3d;'use strict';const attributes=require(_0x139f36('0x3'));module[_0x139f36('0x1')]=function(_0x49a114){const _0x41ac74=_0x139f36,_0x1a84aa=_0x49a114[_0x41ac74('0x0')](_0x41ac74('0x4'),attributes,{'tableName':'chat_offline_messages','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x41ac74('0x2'),'collate':'utf8mb4_unicode_ci'});return _0x1a84aa;}; \ No newline at end of file diff --git a/server/api/chatOfflineMessage/index.js b/server/api/chatOfflineMessage/index.js index 98ac626..3bff6fa 100644 --- a/server/api/chatOfflineMessage/index.js +++ b/server/api/chatOfflineMessage/index.js @@ -1 +1 @@ -const a89_0xb86d=['express','get','show','put','describe','exports','index','isAuthenticated','./chatOfflineMessage.controller','update','destroy','/:id','../../components/auth/service','create','post'];(function(_0x5e3ad8,_0xb86d41){const _0x490b47=function(_0x55ff4a){while(--_0x55ff4a){_0x5e3ad8['push'](_0x5e3ad8['shift']());}};_0x490b47(++_0xb86d41);}(a89_0xb86d,0x1a6));const a89_0x490b=function(_0x5e3ad8,_0xb86d41){_0x5e3ad8=_0x5e3ad8-0x0;let _0x490b47=a89_0xb86d[_0x5e3ad8];return _0x490b47;};const _0x3e9f51=a89_0x490b;'use strict';const express=require(_0x3e9f51('0xd')),router=express['Router'](),auth=require(_0x3e9f51('0xa')),controller=require(_0x3e9f51('0x6'));router[_0x3e9f51('0xe')]('/',auth['isAuthenticated'](),controller[_0x3e9f51('0x4')]),router['get']('/describe',auth[_0x3e9f51('0x5')](),controller[_0x3e9f51('0x2')]),router[_0x3e9f51('0xe')](_0x3e9f51('0x9'),auth[_0x3e9f51('0x5')](),controller[_0x3e9f51('0x0')]),router[_0x3e9f51('0xc')]('/',auth[_0x3e9f51('0x5')](),controller[_0x3e9f51('0xb')]),router[_0x3e9f51('0x1')](_0x3e9f51('0x9'),auth[_0x3e9f51('0x5')](),controller[_0x3e9f51('0x7')]),router['delete'](_0x3e9f51('0x9'),auth[_0x3e9f51('0x5')](),controller[_0x3e9f51('0x8')]),module[_0x3e9f51('0x3')]=router; \ No newline at end of file +const a89_0x3c9c=['./chatOfflineMessage.controller','update','../../components/auth/service','create','delete','/:id','get','isAuthenticated','index','destroy','show','/describe','exports'];(function(_0x22d3e5,_0x3c9c6b){const _0x38cb82=function(_0x5b5c63){while(--_0x5b5c63){_0x22d3e5['push'](_0x22d3e5['shift']());}};_0x38cb82(++_0x3c9c6b);}(a89_0x3c9c,0x6a));const a89_0x38cb=function(_0x22d3e5,_0x3c9c6b){_0x22d3e5=_0x22d3e5-0x0;let _0x38cb82=a89_0x3c9c[_0x22d3e5];return _0x38cb82;};const _0x31f617=a89_0x38cb;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x31f617('0x0')),controller=require(_0x31f617('0xb'));router[_0x31f617('0x4')]('/',auth[_0x31f617('0x5')](),controller[_0x31f617('0x6')]),router[_0x31f617('0x4')](_0x31f617('0x9'),auth['isAuthenticated'](),controller['describe']),router['get'](_0x31f617('0x3'),auth[_0x31f617('0x5')](),controller[_0x31f617('0x8')]),router['post']('/',auth[_0x31f617('0x5')](),controller[_0x31f617('0x1')]),router['put'](_0x31f617('0x3'),auth[_0x31f617('0x5')](),controller[_0x31f617('0xc')]),router[_0x31f617('0x2')](_0x31f617('0x3'),auth['isAuthenticated'](),controller[_0x31f617('0x7')]),module[_0x31f617('0xa')]=router; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.attributes.js b/server/api/chatProactiveAction/chatProactiveAction.attributes.js index 0f83663..f945921 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.attributes.js +++ b/server/api/chatProactiveAction/chatProactiveAction.attributes.js @@ -1 +1 @@ -const a90_0x3751=['INTEGER','timeout','STRING','ENUM','exports','sequelize','mouseOver'];(function(_0x531f4e,_0x375182){const _0x10e6a8=function(_0x2c94c9){while(--_0x2c94c9){_0x531f4e['push'](_0x531f4e['shift']());}};_0x10e6a8(++_0x375182);}(a90_0x3751,0x98));const a90_0x10e6=function(_0x531f4e,_0x375182){_0x531f4e=_0x531f4e-0x0;let _0x10e6a8=a90_0x3751[_0x531f4e];return _0x10e6a8;};const _0x2ec01b=a90_0x10e6;'use strict';const Sequelize=require(_0x2ec01b('0x0'));module[_0x2ec01b('0x6')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0x2ec01b('0x5')](_0x2ec01b('0x1'),_0x2ec01b('0x3')),'defaultValue':_0x2ec01b('0x1')},'selector':{'type':Sequelize[_0x2ec01b('0x4')]},'timeout':{'type':Sequelize[_0x2ec01b('0x2')]}}; \ No newline at end of file +const a90_0xa8da=['exports','STRING','timeout','mouseOver','INTEGER','sequelize'];(function(_0x631705,_0xa8da70){const _0x3714a1=function(_0xca43c4){while(--_0xca43c4){_0x631705['push'](_0x631705['shift']());}};_0x3714a1(++_0xa8da70);}(a90_0xa8da,0x167));const a90_0x3714=function(_0x631705,_0xa8da70){_0x631705=_0x631705-0x0;let _0x3714a1=a90_0xa8da[_0x631705];return _0x3714a1;};const _0x681ee8=a90_0x3714;'use strict';const Sequelize=require(_0x681ee8('0x0'));module[_0x681ee8('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x681ee8('0x4'),_0x681ee8('0x3')),'defaultValue':'mouseOver'},'selector':{'type':Sequelize[_0x681ee8('0x2')]},'timeout':{'type':Sequelize[_0x681ee8('0x5')]}}; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.controller.js b/server/api/chatProactiveAction/chatProactiveAction.controller.js index d7be57e..04c446c 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.controller.js +++ b/server/api/chatProactiveAction/chatProactiveAction.controller.js @@ -1 +1 @@ -const a91_0x4487=['destroy','query','then','status','keys','findOne','rawAttributes','send','lodash','attributes','intersection','sendStatus','error','merge','options','filters','api','catch','create','body','include','../../components/parsers/qs','model','../../mysqldb','update','includeAll','stack','fields','show','length','ChatProactiveAction','params','name'];(function(_0x574767,_0x4487f2){const _0x4ef814=function(_0x2b139d){while(--_0x2b139d){_0x574767['push'](_0x574767['shift']());}};_0x4ef814(++_0x4487f2);}(a91_0x4487,0xf6));const a91_0x4ef8=function(_0x574767,_0x4487f2){_0x574767=_0x574767-0x0;let _0x4ef814=a91_0x4487[_0x574767];return _0x4ef814;};const _0x4fceed=a91_0x4ef8;'use strict';const _=require(_0x4fceed('0x1a')),qs=require(_0x4fceed('0x6')),logger=require('../../config/logger')(_0x4fceed('0x1')),db=require(_0x4fceed('0x8'))['db'];function respondWithResult(_0x2b139d,_0x45c2fc){return _0x45c2fc=_0x45c2fc||0xc8,function(_0x23c45d){const _0x3cbc83=a91_0x4ef8;if(_0x23c45d)return _0x2b139d[_0x3cbc83('0x15')](_0x45c2fc)['json'](_0x23c45d);};}function saveUpdates(_0x3eb1d9){return function(_0x18a03a){const _0x3f2b09=a91_0x4ef8;if(_0x18a03a)return _0x18a03a[_0x3f2b09('0x9')](_0x3eb1d9)[_0x3f2b09('0x14')](function(_0x176e26){return _0x176e26;});return null;};}function removeEntity(_0x4e7028){return function(_0x20dc4d){const _0x2ebeb9=a91_0x4ef8;if(_0x20dc4d)return _0x20dc4d['destroy']()[_0x2ebeb9('0x14')](function(){const _0x20e40b=_0x2ebeb9;_0x4e7028[_0x20e40b('0x15')](0xcc)['end']();});};}function handleEntityNotFound(_0xdccdef){return function(_0x4ce021){const _0x2acf5b=a91_0x4ef8;return!_0x4ce021&&_0xdccdef[_0x2acf5b('0x1d')](0x194),_0x4ce021;};}function handleError(_0xbc79e7,_0x4af73b){return _0x4af73b=_0x4af73b||0x1f4,function(_0x1e03d0){const _0x28c1d3=a91_0x4ef8;logger[_0x28c1d3('0x1e')](_0x1e03d0[_0x28c1d3('0xb')]),_0x1e03d0[_0x28c1d3('0x11')]&&delete _0x1e03d0[_0x28c1d3('0x11')],_0xbc79e7['status'](_0x4af73b)[_0x28c1d3('0x19')](_0x1e03d0);};}exports[_0x4fceed('0xd')]=function(_0x3c69da,_0x3078ba){const _0x358010=_0x4fceed;let _0x50b3c3={'raw':!![],'where':{'id':_0x3c69da[_0x358010('0x10')]['id']}};const _0x16180f={};return _0x16180f[_0x358010('0x7')]=_['keys'](db[_0x358010('0xf')][_0x358010('0x18')]),_0x16180f[_0x358010('0x13')]=_[_0x358010('0x16')](_0x3c69da[_0x358010('0x13')]),_0x16180f[_0x358010('0x0')]=_[_0x358010('0x1c')](_0x16180f[_0x358010('0x7')],_0x16180f[_0x358010('0x13')]),_0x50b3c3['attributes']=_[_0x358010('0x1c')](_0x16180f['model'],qs['fields'](_0x3c69da[_0x358010('0x13')][_0x358010('0xc')])),_0x50b3c3[_0x358010('0x1b')]=_0x50b3c3[_0x358010('0x1b')][_0x358010('0xe')]?_0x50b3c3[_0x358010('0x1b')]:_0x16180f['model'],_0x3c69da['query'][_0x358010('0xa')]&&(_0x50b3c3[_0x358010('0x5')]=[{'all':!![]}]),_0x50b3c3=_[_0x358010('0x1f')]({},_0x50b3c3,_0x3c69da[_0x358010('0x20')]),db[_0x358010('0xf')]['findOne'](_0x50b3c3)[_0x358010('0x14')](handleEntityNotFound(_0x3078ba,null))[_0x358010('0x14')](respondWithResult(_0x3078ba,null))[_0x358010('0x2')](handleError(_0x3078ba,null));},exports[_0x4fceed('0x3')]=function(_0x4bbf23,_0x19f1b4){const _0x565c7d=_0x4fceed;return db[_0x565c7d('0xf')]['create'](_0x4bbf23[_0x565c7d('0x4')],{})[_0x565c7d('0x14')](respondWithResult(_0x19f1b4,0xc9))[_0x565c7d('0x2')](handleError(_0x19f1b4,null));},exports[_0x4fceed('0x9')]=function(_0x11f90e,_0x1cab63){const _0x3c4943=_0x4fceed;return _0x11f90e[_0x3c4943('0x4')]['id']&&delete _0x11f90e['body']['id'],db[_0x3c4943('0xf')][_0x3c4943('0x17')]({'where':{'id':_0x11f90e[_0x3c4943('0x10')]['id']}})[_0x3c4943('0x14')](handleEntityNotFound(_0x1cab63,null))[_0x3c4943('0x14')](saveUpdates(_0x11f90e[_0x3c4943('0x4')],null))['then'](respondWithResult(_0x1cab63,null))['catch'](handleError(_0x1cab63,null));},exports[_0x4fceed('0x12')]=function(_0x17ed6d,_0x2aea40){const _0x584b6c=_0x4fceed;return db[_0x584b6c('0xf')][_0x584b6c('0x17')]({'where':{'id':_0x17ed6d[_0x584b6c('0x10')]['id']}})[_0x584b6c('0x14')](handleEntityNotFound(_0x2aea40,null))[_0x584b6c('0x14')](removeEntity(_0x2aea40,null))[_0x584b6c('0x2')](handleError(_0x2aea40,null));}; \ No newline at end of file +const a91_0x2bda=['fields','body','api','json','findOne','merge','update','end','keys','destroy','includeAll','attributes','then','query','include','stack','model','send','params','ChatProactiveAction','options','catch','../../config/logger','filters','../../components/parsers/qs','sendStatus','../../mysqldb','intersection','status','length'];(function(_0x54f70e,_0x2bda8c){const _0x55249e=function(_0x3d35a4){while(--_0x3d35a4){_0x54f70e['push'](_0x54f70e['shift']());}};_0x55249e(++_0x2bda8c);}(a91_0x2bda,0x180));const a91_0x5524=function(_0x54f70e,_0x2bda8c){_0x54f70e=_0x54f70e-0x0;let _0x55249e=a91_0x2bda[_0x54f70e];return _0x55249e;};const _0x4577b6=a91_0x5524;'use strict';const _=require('lodash'),qs=require(_0x4577b6('0x0')),logger=require(_0x4577b6('0x1c'))(_0x4577b6('0x8')),db=require(_0x4577b6('0x2'))['db'];function respondWithResult(_0x3d35a4,_0x273fa4){return _0x273fa4=_0x273fa4||0xc8,function(_0x46a06d){const _0x45c17b=a91_0x5524;if(_0x46a06d)return _0x3d35a4[_0x45c17b('0x4')](_0x273fa4)[_0x45c17b('0x9')](_0x46a06d);};}function saveUpdates(_0x2d61fb){return function(_0x5a6f6e){if(_0x5a6f6e)return _0x5a6f6e['update'](_0x2d61fb)['then'](function(_0x359e8c){return _0x359e8c;});return null;};}function removeEntity(_0x30a04b){return function(_0x5d7621){const _0x1e164f=a91_0x5524;if(_0x5d7621)return _0x5d7621[_0x1e164f('0xf')]()['then'](function(){const _0x1b4132=_0x1e164f;_0x30a04b['status'](0xcc)[_0x1b4132('0xd')]();});};}function handleEntityNotFound(_0x2bfd35){return function(_0x4a5343){const _0x4c29b9=a91_0x5524;return!_0x4a5343&&_0x2bfd35[_0x4c29b9('0x1')](0x194),_0x4a5343;};}function handleError(_0x58df8f,_0xb54201){return _0xb54201=_0xb54201||0x1f4,function(_0x4ca084){const _0x3fcea1=a91_0x5524;logger['error'](_0x4ca084[_0x3fcea1('0x15')]),_0x4ca084['name']&&delete _0x4ca084['name'],_0x58df8f['status'](_0xb54201)[_0x3fcea1('0x17')](_0x4ca084);};}exports['show']=function(_0x4967af,_0x3b2fae){const _0x251c6e=_0x4577b6;let _0x4b014a={'raw':!![],'where':{'id':_0x4967af[_0x251c6e('0x18')]['id']}};const _0x231af7={};return _0x231af7[_0x251c6e('0x16')]=_[_0x251c6e('0xe')](db[_0x251c6e('0x19')]['rawAttributes']),_0x231af7[_0x251c6e('0x13')]=_[_0x251c6e('0xe')](_0x4967af[_0x251c6e('0x13')]),_0x231af7[_0x251c6e('0x1d')]=_[_0x251c6e('0x3')](_0x231af7['model'],_0x231af7[_0x251c6e('0x13')]),_0x4b014a[_0x251c6e('0x11')]=_[_0x251c6e('0x3')](_0x231af7[_0x251c6e('0x16')],qs[_0x251c6e('0x6')](_0x4967af[_0x251c6e('0x13')]['fields'])),_0x4b014a[_0x251c6e('0x11')]=_0x4b014a[_0x251c6e('0x11')][_0x251c6e('0x5')]?_0x4b014a[_0x251c6e('0x11')]:_0x231af7[_0x251c6e('0x16')],_0x4967af[_0x251c6e('0x13')][_0x251c6e('0x10')]&&(_0x4b014a[_0x251c6e('0x14')]=[{'all':!![]}]),_0x4b014a=_[_0x251c6e('0xb')]({},_0x4b014a,_0x4967af[_0x251c6e('0x1a')]),db['ChatProactiveAction'][_0x251c6e('0xa')](_0x4b014a)[_0x251c6e('0x12')](handleEntityNotFound(_0x3b2fae,null))[_0x251c6e('0x12')](respondWithResult(_0x3b2fae,null))[_0x251c6e('0x1b')](handleError(_0x3b2fae,null));},exports['create']=function(_0x1544da,_0x369681){const _0x5d731e=_0x4577b6;return db[_0x5d731e('0x19')]['create'](_0x1544da[_0x5d731e('0x7')],{})[_0x5d731e('0x12')](respondWithResult(_0x369681,0xc9))[_0x5d731e('0x1b')](handleError(_0x369681,null));},exports[_0x4577b6('0xc')]=function(_0x51b481,_0x19b6f5){const _0x3bf9f9=_0x4577b6;return _0x51b481[_0x3bf9f9('0x7')]['id']&&delete _0x51b481['body']['id'],db[_0x3bf9f9('0x19')][_0x3bf9f9('0xa')]({'where':{'id':_0x51b481[_0x3bf9f9('0x18')]['id']}})[_0x3bf9f9('0x12')](handleEntityNotFound(_0x19b6f5,null))[_0x3bf9f9('0x12')](saveUpdates(_0x51b481['body'],null))['then'](respondWithResult(_0x19b6f5,null))[_0x3bf9f9('0x1b')](handleError(_0x19b6f5,null));},exports[_0x4577b6('0xf')]=function(_0x1a8425,_0x36c3f6){const _0x47161f=_0x4577b6;return db[_0x47161f('0x19')][_0x47161f('0xa')]({'where':{'id':_0x1a8425['params']['id']}})[_0x47161f('0x12')](handleEntityNotFound(_0x36c3f6,null))[_0x47161f('0x12')](removeEntity(_0x36c3f6,null))['catch'](handleError(_0x36c3f6,null));}; \ No newline at end of file diff --git a/server/api/chatProactiveAction/chatProactiveAction.model.js b/server/api/chatProactiveAction/chatProactiveAction.model.js index 98e0232..47b3cbb 100644 --- a/server/api/chatProactiveAction/chatProactiveAction.model.js +++ b/server/api/chatProactiveAction/chatProactiveAction.model.js @@ -1 +1 @@ -const a92_0x58d4=['define','./chatProactiveAction.attributes','ChatProactiveAction'];(function(_0x3e0d0b,_0x58d4fc){const _0x478d00=function(_0x358821){while(--_0x358821){_0x3e0d0b['push'](_0x3e0d0b['shift']());}};_0x478d00(++_0x58d4fc);}(a92_0x58d4,0xd8));const a92_0x478d=function(_0x3e0d0b,_0x58d4fc){_0x3e0d0b=_0x3e0d0b-0x0;let _0x478d00=a92_0x58d4[_0x3e0d0b];return _0x478d00;};const _0x2a437f=a92_0x478d;'use strict';const attributes=require(_0x2a437f('0x1'));module['exports']=function(_0x358821){const _0x1ce4dc=_0x2a437f,_0x2162a2=_0x358821[_0x1ce4dc('0x0')](_0x1ce4dc('0x2'),attributes,{'tableName':'chat_proactive_actions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2162a2;}; \ No newline at end of file +const a92_0xfb1b=['exports','define','chat_proactive_actions','./chatProactiveAction.attributes'];(function(_0x27c1c3,_0xfb1b14){const _0x10c409=function(_0x5ef120){while(--_0x5ef120){_0x27c1c3['push'](_0x27c1c3['shift']());}};_0x10c409(++_0xfb1b14);}(a92_0xfb1b,0x118));const a92_0x10c4=function(_0x27c1c3,_0xfb1b14){_0x27c1c3=_0x27c1c3-0x0;let _0x10c409=a92_0xfb1b[_0x27c1c3];return _0x10c409;};const _0x549e0d=a92_0x10c4;'use strict';const attributes=require(_0x549e0d('0x3'));module[_0x549e0d('0x0')]=function(_0x5ef120){const _0x13bf64=_0x549e0d,_0x2154ba=_0x5ef120[_0x13bf64('0x1')]('ChatProactiveAction',attributes,{'tableName':_0x13bf64('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2154ba;}; \ No newline at end of file diff --git a/server/api/chatProactiveAction/index.js b/server/api/chatProactiveAction/index.js index 38ce0e9..729ad29 100644 --- a/server/api/chatProactiveAction/index.js +++ b/server/api/chatProactiveAction/index.js @@ -1 +1 @@ -const a93_0x593b=['exports','../../components/auth/service','put','isAuthenticated','show','/:id','create','update'];(function(_0x409be3,_0x593b92){const _0x439375=function(_0x5e6b70){while(--_0x5e6b70){_0x409be3['push'](_0x409be3['shift']());}};_0x439375(++_0x593b92);}(a93_0x593b,0x106));const a93_0x4393=function(_0x409be3,_0x593b92){_0x409be3=_0x409be3-0x0;let _0x439375=a93_0x593b[_0x409be3];return _0x439375;};const _0xfc1868=a93_0x4393;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0xfc1868('0x3')),controller=require('./chatProactiveAction.controller');router['get'](_0xfc1868('0x7'),auth[_0xfc1868('0x5')](),controller[_0xfc1868('0x6')]),router['post']('/',auth['isAuthenticated'](),controller[_0xfc1868('0x0')]),router[_0xfc1868('0x4')](_0xfc1868('0x7'),auth[_0xfc1868('0x5')](),controller[_0xfc1868('0x1')]),router['delete']('/:id',auth[_0xfc1868('0x5')](),controller['destroy']),module[_0xfc1868('0x2')]=router; \ No newline at end of file +const a93_0x3ecb=['express','isAuthenticated','get','../../components/auth/service','destroy','/:id','delete','Router','create','show','./chatProactiveAction.controller'];(function(_0x48c625,_0x3ecb53){const _0x2d763e=function(_0x419cb2){while(--_0x419cb2){_0x48c625['push'](_0x48c625['shift']());}};_0x2d763e(++_0x3ecb53);}(a93_0x3ecb,0x143));const a93_0x2d76=function(_0x48c625,_0x3ecb53){_0x48c625=_0x48c625-0x0;let _0x2d763e=a93_0x3ecb[_0x48c625];return _0x2d763e;};const _0x2bc22e=a93_0x2d76;'use strict';const express=require(_0x2bc22e('0x7')),router=express[_0x2bc22e('0x3')](),auth=require(_0x2bc22e('0xa')),controller=require(_0x2bc22e('0x6'));router[_0x2bc22e('0x9')]('/:id',auth[_0x2bc22e('0x8')](),controller[_0x2bc22e('0x5')]),router['post']('/',auth[_0x2bc22e('0x8')](),controller[_0x2bc22e('0x4')]),router['put'](_0x2bc22e('0x1'),auth[_0x2bc22e('0x8')](),controller['update']),router[_0x2bc22e('0x2')]('/:id',auth[_0x2bc22e('0x8')](),controller[_0x2bc22e('0x0')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.attributes.js b/server/api/chatQueue/chatQueue.attributes.js index 7716043..14c4ea8 100644 --- a/server/api/chatQueue/chatQueue.attributes.js +++ b/server/api/chatQueue/chatQueue.attributes.js @@ -1 +1 @@ -const a94_0x4d33=['ENUM','STRING','beepall','sequelize','name','INTEGER'];(function(_0x5e919b,_0x4d33e1){const _0x2c7ce8=function(_0x41927a){while(--_0x41927a){_0x5e919b['push'](_0x5e919b['shift']());}};_0x2c7ce8(++_0x4d33e1);}(a94_0x4d33,0x1cb));const a94_0x2c7c=function(_0x5e919b,_0x4d33e1){_0x5e919b=_0x5e919b-0x0;let _0x2c7ce8=a94_0x4d33[_0x5e919b];return _0x2c7ce8;};const _0xf3918c=a94_0x2c7c;'use strict';const Sequelize=require(_0xf3918c('0x0'));module['exports']={'name':{'type':Sequelize[_0xf3918c('0x4')],'unique':_0xf3918c('0x1'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0xf3918c('0x4')]},'timeout':{'type':Sequelize[_0xf3918c('0x2')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0xf3918c('0x3')]('rrmemory',_0xf3918c('0x5'),'roundrobin')}}; \ No newline at end of file +const a94_0x41b1=['INTEGER','STRING','rrmemory','roundrobin','exports','sequelize','name','ENUM'];(function(_0x11853b,_0x41b1b3){const _0x244df4=function(_0x9c02fb){while(--_0x9c02fb){_0x11853b['push'](_0x11853b['shift']());}};_0x244df4(++_0x41b1b3);}(a94_0x41b1,0x1d2));const a94_0x244d=function(_0x11853b,_0x41b1b3){_0x11853b=_0x11853b-0x0;let _0x244df4=a94_0x41b1[_0x11853b];return _0x244df4;};const _0x1530b2=a94_0x244d;'use strict';const Sequelize=require(_0x1530b2('0x3'));module[_0x1530b2('0x2')]={'name':{'type':Sequelize[_0x1530b2('0x7')],'unique':_0x1530b2('0x4'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x1530b2('0x7')]},'timeout':{'type':Sequelize[_0x1530b2('0x6')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x1530b2('0x5')](_0x1530b2('0x0'),'beepall',_0x1530b2('0x1'))}}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.controller.js b/server/api/chatQueue/chatQueue.controller.js index 6ae340c..c56aec5 100644 --- a/server/api/chatQueue/chatQueue.controller.js +++ b/server/api/chatQueue/chatQueue.controller.js @@ -1 +1 @@ -const a95_0xf4a6=['agent','Team','Agents','chatPause','emit','util','every','keys','createdAt','push','nolimit','flatMap','rawAttributes','include','UserProfileSection','VIRTUAL','stack','voicePause','user_has_teams','isArray','union','query','error','fieldName','SIP','order','format','team_has_chat_queues','ids','type','name','index','includes','removeTeams','count','ChatQueueId','map','describe','sendStatus','all','UserId','show','undefined','destroy','create','model','%s/%s','body','status','UserProfileResource','update','TeamId','omit','findAll','./chatQueue.socket','user','set','User','sequelize','value','compact','UserChatQueue','toString','tq.TeamId','key','from','fields','userChatQueue:remove','filter','ut.TeamId\x20=\x20tq.TeamId','where','includeAll','send','get','isEmpty','select','end','removeAgents','ut.UserId\x20=\x20?','sort','join','../../config/logger','updatedAt','clone','options','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','params','intersection','then','filters','findOrCreate','findOne','userChatQueue:save','role','getAgents','pick','ChatQueues','transaction','ChatQueueId\x20=\x20?','getTeams','attributes','merge','length','offset','ChatQueue','forEach','rows','catch','../../rediscache','Content-Range','SELECT','json','limit','addTeams','lodash','like','addAgents'];(function(_0x1fc778,_0xf4a6cf){const _0x1c158e=function(_0x2a3ea3){while(--_0x2a3ea3){_0x1fc778['push'](_0x1fc778['shift']());}};_0x1c158e(++_0xf4a6cf);}(a95_0xf4a6,0x131));const a95_0x1c15=function(_0x1fc778,_0xf4a6cf){_0x1fc778=_0x1fc778-0x0;let _0x1c158e=a95_0xf4a6[_0x1fc778];return _0x1c158e;};const _0x1b0f9a=a95_0x1c15;'use strict';const util=require(_0x1b0f9a('0x33')),_=require(_0x1b0f9a('0x2b')),squel=require('squel'),qs=require('../../components/parsers/qs'),logger=require(_0x1b0f9a('0xa'))('api'),{getSocket}=require(_0x1b0f9a('0x25')),db=require('../../mysqldb')['db'],{Op,QueryTypes}=require('sequelize'),socket=getSocket();require(_0x1b0f9a('0x64'))['register'](socket);function respondWithStatusCode(_0x2a3ea3,_0x5d9165){return _0x5d9165=_0x5d9165||0xcc,function(_0x34a47f){const _0x49fe79=a95_0x1c15;if(_0x34a47f)return _0x2a3ea3[_0x49fe79('0x54')](_0x5d9165);return _0x2a3ea3[_0x49fe79('0x5e')](_0x5d9165)[_0x49fe79('0x5')]();};}function respondWithResult(_0x58cc73,_0x454975){return _0x454975=_0x454975||0xc8,function(_0x3bbd1b){const _0x464c73=a95_0x1c15;if(_0x3bbd1b)return _0x58cc73[_0x464c73('0x5e')](_0x454975)[_0x464c73('0x28')](_0x3bbd1b);};}function respondWithFilteredResult(_0x5b4e79,_0x51f3dd){return function(_0x5b762f){const _0x4a3e60=a95_0x1c15;if(_0x5b762f){const _0x13113a=_0x5b762f[_0x4a3e60('0x50')],_0x289b50=_0x51f3dd[_0x4a3e60('0x20')];let _0x4b839f=_0x51f3dd[_0x4a3e60('0x20')]+_0x51f3dd[_0x4a3e60('0x29')],_0x1a9d21;return _0x4b839f>=_0x13113a?(_0x4b839f=_0x13113a,_0x1a9d21=0xc8):_0x1a9d21=0xce,_0x5b4e79[_0x4a3e60('0x5e')](_0x1a9d21),_0x5b4e79[_0x4a3e60('0x66')](_0x4a3e60('0x26'),_0x289b50+'-'+_0x4b839f+'/'+_0x13113a)['json'](_0x5b762f);}return null;};}function saveUpdates(_0x37dc10){return function(_0x36cd31){const _0x1dc4e2=a95_0x1c15;if(_0x36cd31)return _0x36cd31[_0x1dc4e2('0x60')](_0x37dc10)[_0x1dc4e2('0x11')](function(_0x4dce0b){return _0x4dce0b;});return null;};}function removeEntity(_0x1f065e){return function(_0xfa51ba){const _0xa72b38=a95_0x1c15;if(_0xfa51ba)return _0xfa51ba[_0xa72b38('0x59')]()[_0xa72b38('0x11')](function(){const _0x3fb994=_0xa72b38,_0x166f67=_0xfa51ba[_0x3fb994('0x2')]({'plain':!![]}),_0x2b7842='ChatQueues';return db[_0x3fb994('0x5f')][_0x3fb994('0x59')]({'where':{'type':_0x2b7842,'resourceId':_0x166f67['id']}})['then'](function(){return _0xfa51ba;});})['then'](function(){const _0x3ca5ae=_0xa72b38;_0x1f065e['status'](0xcc)[_0x3ca5ae('0x5')]();});};}function handleEntityNotFound(_0x774509){return function(_0x2f0d59){const _0x3e7fa5=a95_0x1c15;return!_0x2f0d59&&_0x774509[_0x3e7fa5('0x54')](0x194),_0x2f0d59;};}function handleError(_0x719b6e,_0x2f0b4b){return _0x2f0b4b=_0x2f0b4b||0x1f4,function(_0x5351a9){const _0xc50887=a95_0x1c15;logger['error'](_0x5351a9[_0xc50887('0x3e')]),_0x5351a9[_0xc50887('0x4c')]&&delete _0x5351a9[_0xc50887('0x4c')],_0x719b6e[_0xc50887('0x5e')](_0x2f0b4b)[_0xc50887('0x1')](_0x5351a9);};}exports[_0x1b0f9a('0x4d')]=function(_0x3f5706,_0x5f237d){const _0x1d8ae9=_0x1b0f9a;let _0x183dd7={};const _0x4aee1c={},_0x28bb59={'count':0x0,'rows':[]},_0x2b366b=_[_0x1d8ae9('0x52')](db['ChatQueue'][_0x1d8ae9('0x3a')],function(_0x557e5c){const _0x3d4110=_0x1d8ae9;return{'name':_0x557e5c[_0x3d4110('0x45')],'type':_0x557e5c['type'][_0x3d4110('0x6e')]};});_0x4aee1c[_0x1d8ae9('0x5b')]=_[_0x1d8ae9('0x52')](_0x2b366b,_0x1d8ae9('0x4c')),_0x4aee1c['query']=_[_0x1d8ae9('0x35')](_0x3f5706[_0x1d8ae9('0x43')]),_0x4aee1c[_0x1d8ae9('0x12')]=_[_0x1d8ae9('0x10')](_0x4aee1c[_0x1d8ae9('0x5b')],_0x4aee1c[_0x1d8ae9('0x43')]),_0x183dd7[_0x1d8ae9('0x1d')]=_['intersection'](_0x4aee1c['model'],qs[_0x1d8ae9('0x70')](_0x3f5706[_0x1d8ae9('0x43')][_0x1d8ae9('0x70')])),_0x183dd7[_0x1d8ae9('0x1d')]=_0x183dd7[_0x1d8ae9('0x1d')]['length']?_0x183dd7['attributes']:_0x4aee1c['model'];typeof _0x3f5706[_0x1d8ae9('0x43')][_0x1d8ae9('0x38')]===_0x1d8ae9('0x58')&&(_0x183dd7['limit']=qs[_0x1d8ae9('0x29')](_0x3f5706[_0x1d8ae9('0x43')]['limit']),_0x183dd7['offset']=qs[_0x1d8ae9('0x20')](_0x3f5706[_0x1d8ae9('0x43')]['offset']));_0x183dd7[_0x1d8ae9('0x47')]=qs[_0x1d8ae9('0x8')](_0x3f5706[_0x1d8ae9('0x43')]['sort']),_0x183dd7[_0x1d8ae9('0x74')]=qs[_0x1d8ae9('0x12')](_[_0x1d8ae9('0x18')](_0x3f5706[_0x1d8ae9('0x43')],_0x4aee1c[_0x1d8ae9('0x12')]),_0x2b366b);_0x3f5706['query'][_0x1d8ae9('0x72')]&&(_0x183dd7[_0x1d8ae9('0x74')]=_[_0x1d8ae9('0x1e')](_0x183dd7[_0x1d8ae9('0x74')],{[Op['or']]:_[_0x1d8ae9('0x52')](_0x2b366b,function(_0x4c97e9){const _0x1634a3=_0x1d8ae9;if(_0x4c97e9[_0x1634a3('0x4b')]!==_0x1634a3('0x3d')){const _0x228627={};return _0x228627[_0x4c97e9[_0x1634a3('0x4c')]]={[Op[_0x1634a3('0x2c')]]:'%'+_0x3f5706[_0x1634a3('0x43')][_0x1634a3('0x72')]+'%'},_0x228627;}})}));_0x183dd7=_[_0x1d8ae9('0x1e')]({},_0x183dd7,_0x3f5706[_0x1d8ae9('0xd')]);const _0x18655d={'where':_0x183dd7[_0x1d8ae9('0x74')]};return db[_0x1d8ae9('0x21')][_0x1d8ae9('0x50')](_0x18655d)[_0x1d8ae9('0x11')](function(_0x4175c1){const _0x36aa60=_0x1d8ae9;return _0x28bb59['count']=_0x4175c1,_0x3f5706[_0x36aa60('0x43')]['includeAll']&&(_0x183dd7['include']=[{'all':!![]}]),db['ChatQueue'][_0x36aa60('0x63')](_0x183dd7);})[_0x1d8ae9('0x11')](function(_0xb3a827){return _0x28bb59['rows']=_0xb3a827,_0x28bb59;})['then'](respondWithFilteredResult(_0x5f237d,_0x183dd7))[_0x1d8ae9('0x24')](handleError(_0x5f237d,null));},exports[_0x1b0f9a('0x57')]=function(_0x2d1a59,_0x3008aa){const _0x21e93e=_0x1b0f9a;let _0x1170c4={'raw':!![],'where':{'id':_0x2d1a59[_0x21e93e('0xf')]['id']}};const _0x4c901a={};return _0x4c901a['model']=_[_0x21e93e('0x35')](db[_0x21e93e('0x21')][_0x21e93e('0x3a')]),_0x4c901a[_0x21e93e('0x43')]=_[_0x21e93e('0x35')](_0x2d1a59[_0x21e93e('0x43')]),_0x4c901a[_0x21e93e('0x12')]=_[_0x21e93e('0x10')](_0x4c901a[_0x21e93e('0x5b')],_0x4c901a[_0x21e93e('0x43')]),_0x1170c4['attributes']=_['intersection'](_0x4c901a[_0x21e93e('0x5b')],qs[_0x21e93e('0x70')](_0x2d1a59[_0x21e93e('0x43')]['fields'])),_0x1170c4['attributes']=_0x1170c4[_0x21e93e('0x1d')][_0x21e93e('0x1f')]?_0x1170c4[_0x21e93e('0x1d')]:_0x4c901a[_0x21e93e('0x5b')],_0x2d1a59[_0x21e93e('0x43')][_0x21e93e('0x0')]&&(_0x1170c4[_0x21e93e('0x3b')]=[{'all':!![]}]),_0x1170c4=_[_0x21e93e('0x1e')]({},_0x1170c4,_0x2d1a59[_0x21e93e('0xd')]),db[_0x21e93e('0x21')][_0x21e93e('0x14')](_0x1170c4)[_0x21e93e('0x11')](handleEntityNotFound(_0x3008aa,null))[_0x21e93e('0x11')](respondWithResult(_0x3008aa,null))[_0x21e93e('0x24')](handleError(_0x3008aa,null));},exports[_0x1b0f9a('0x5a')]=function(_0x3dd58a,_0x26f22d){const _0x2c6995=_0x1b0f9a;return db[_0x2c6995('0x21')][_0x2c6995('0x5a')](_0x3dd58a['body'],{})[_0x2c6995('0x11')](function(_0x12ca58){const _0xc1ea2f=_0x2c6995,_0x46244e=_0x3dd58a[_0xc1ea2f('0x65')][_0xc1ea2f('0x2')]({'plain':!![]});if(!_0x46244e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x46244e[_0xc1ea2f('0x16')]==='user'){const _0x5680f4=_0x12ca58[_0xc1ea2f('0x2')]({'plain':!![]}),_0x5cb739=_0xc1ea2f('0x19');return db[_0xc1ea2f('0x3c')]['findOne']({'where':{'name':_0x5cb739,'userProfileId':_0x46244e['userProfileId']},'raw':!![]})[_0xc1ea2f('0x11')](function(_0x11333a){const _0x59f4e8=_0xc1ea2f;return _0x11333a&&_0x11333a['autoAssociation']===0x0?db['UserProfileResource'][_0x59f4e8('0x5a')]({'name':_0x5680f4[_0x59f4e8('0x4c')],'resourceId':_0x5680f4['id'],'type':_0x11333a[_0x59f4e8('0x4c')],'sectionId':_0x11333a['id']},{})[_0x59f4e8('0x11')](function(){return _0x12ca58;}):_0x12ca58;})[_0xc1ea2f('0x24')](function(_0x5ec1a3){const _0x3cc2d=_0xc1ea2f;logger[_0x3cc2d('0x44')](_0x3cc2d('0xe'),_0x5ec1a3);throw _0x5ec1a3;});}return _0x12ca58;})['then'](respondWithResult(_0x26f22d,0xc9))['catch'](handleError(_0x26f22d,null));},exports['update']=function(_0x3c5bf0,_0x2bf7a5){const _0x48948e=_0x1b0f9a;return _0x3c5bf0['body']['id']&&delete _0x3c5bf0[_0x48948e('0x5d')]['id'],db[_0x48948e('0x21')][_0x48948e('0x14')]({'where':{'id':_0x3c5bf0['params']['id']}})[_0x48948e('0x11')](handleEntityNotFound(_0x2bf7a5,null))[_0x48948e('0x11')](saveUpdates(_0x3c5bf0[_0x48948e('0x5d')],null))[_0x48948e('0x11')](respondWithResult(_0x2bf7a5,null))[_0x48948e('0x24')](handleError(_0x2bf7a5,null));},exports[_0x1b0f9a('0x59')]=function(_0x1310b2,_0x115636){const _0x12a76=_0x1b0f9a;return db[_0x12a76('0x21')][_0x12a76('0x14')]({'where':{'id':_0x1310b2['params']['id']}})[_0x12a76('0x11')](handleEntityNotFound(_0x115636,null))[_0x12a76('0x11')](removeEntity(_0x115636,null))['catch'](handleError(_0x115636,null));},exports[_0x1b0f9a('0x53')]=function(_0x38af6f,_0xa10e2a){const _0x57cbf1=_0x1b0f9a;return db[_0x57cbf1('0x21')]['describe']()['then'](respondWithResult(_0xa10e2a,null))[_0x57cbf1('0x24')](handleError(_0xa10e2a,null));},exports['getMembers']=function(_0x23cca5,_0x3d1ca1){const _0x5415b5=_0x1b0f9a;let _0x55cff9={'raw':!![],'where':{}};const _0x28987a={};let _0x29bc1e;return db['ChatQueue'][_0x5415b5('0x14')]({'where':{'id':_0x23cca5[_0x5415b5('0xf')]['id']}})[_0x5415b5('0x11')](handleEntityNotFound(_0x3d1ca1,null))['then'](function(_0x32120d){const _0x3e5b2f=_0x5415b5;if(_0x32120d)return _0x29bc1e=_0x32120d[_0x3e5b2f('0x2')]({'plain':!![]}),_0x28987a[_0x3e5b2f('0x5b')]=_[_0x3e5b2f('0x35')](db['UserChatQueue'][_0x3e5b2f('0x3a')]),_0x28987a[_0x3e5b2f('0x43')]=_[_0x3e5b2f('0x35')](_0x23cca5['query']),_0x28987a['filters']=_[_0x3e5b2f('0x10')](_0x28987a[_0x3e5b2f('0x5b')],_0x28987a['query']),_0x55cff9[_0x3e5b2f('0x1d')]=_[_0x3e5b2f('0x10')](_0x28987a[_0x3e5b2f('0x5b')],qs[_0x3e5b2f('0x70')](_0x23cca5['query'][_0x3e5b2f('0x70')])),_0x55cff9[_0x3e5b2f('0x1d')]=_0x55cff9[_0x3e5b2f('0x1d')]['length']?_0x55cff9[_0x3e5b2f('0x1d')]:_0x28987a[_0x3e5b2f('0x5b')],typeof _0x23cca5['query'][_0x3e5b2f('0x38')]==='undefined'&&(_0x55cff9['limit']=qs['limit'](_0x23cca5[_0x3e5b2f('0x43')][_0x3e5b2f('0x29')]),_0x55cff9[_0x3e5b2f('0x20')]=qs['offset'](_0x23cca5[_0x3e5b2f('0x43')][_0x3e5b2f('0x20')])),_0x55cff9[_0x3e5b2f('0x47')]=qs[_0x3e5b2f('0x8')](_0x23cca5['query'][_0x3e5b2f('0x8')]),_0x55cff9['where']=qs[_0x3e5b2f('0x12')](_[_0x3e5b2f('0x18')](_0x23cca5[_0x3e5b2f('0x43')],_0x28987a[_0x3e5b2f('0x12')])),_0x55cff9[_0x3e5b2f('0x74')][_0x3e5b2f('0x51')]=_0x32120d['id'],_0x23cca5[_0x3e5b2f('0x43')][_0x3e5b2f('0x72')]&&(_0x55cff9[_0x3e5b2f('0x74')]=_['merge'](_0x55cff9[_0x3e5b2f('0x74')],{[Op['or']]:_[_0x3e5b2f('0x52')](_0x55cff9[_0x3e5b2f('0x1d')],function(_0x3353da){const _0x1d8820=_0x3e5b2f,_0x43d1c8={};return _0x43d1c8[_0x3353da]={[Op[_0x1d8820('0x2c')]]:'%'+_0x23cca5[_0x1d8820('0x43')][_0x1d8820('0x72')]+'%'},_0x43d1c8;})})),_0x55cff9=_['merge']({},_0x55cff9,_0x23cca5[_0x3e5b2f('0xd')]),db[_0x3e5b2f('0x6b')][_0x3e5b2f('0x63')](_0x55cff9);})['then'](function(_0x102542){const _0x4760ac=_0x5415b5;if(_0x102542)return db[_0x4760ac('0x67')]['findAndCountAll']({'where':{'id':_['map'](_0x102542,_0x4760ac('0x56')),'role':_0x4760ac('0x2e')},'attributes':['id',_0x4760ac('0x4c'),_0x4760ac('0x31'),_0x4760ac('0xb'),_0x4760ac('0x36')]});})[_0x5415b5('0x11')](function(_0xdd01ea){const _0x23c53d=_0x5415b5;return _0xdd01ea?{'count':_0xdd01ea[_0x23c53d('0x50')],'rows':_[_0x23c53d('0x52')](_0xdd01ea[_0x23c53d('0x23')],function(_0x3dd971){const _0x1bf7b1=_0x23c53d;return{'membername':_0x3dd971['name'],'UserId':_0x3dd971['id'],'queue_name':_0x29bc1e[_0x1bf7b1('0x4c')],'ChatQueueId':_0x29bc1e['id'],'interface':util[_0x1bf7b1('0x48')](_0x1bf7b1('0x5c'),_0x1bf7b1('0x46'),_0x3dd971[_0x1bf7b1('0x4c')]),'penalty':0x0,'paused':_0x3dd971[_0x1bf7b1('0x31')],'createdAt':_0x3dd971[_0x1bf7b1('0x36')],'updatedAt':_0x3dd971[_0x1bf7b1('0xb')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x3d1ca1,_0x55cff9))[_0x5415b5('0x24')](handleError(_0x3d1ca1,null));},exports[_0x1b0f9a('0x1c')]=function(_0x3a6815,_0x385ae3){const _0xa2bbaf=_0x1b0f9a;let _0x4e614e={};const _0x43d671={};let _0x26b0e7,_0x34cb16;return db[_0xa2bbaf('0x21')]['findOne']({'where':{'id':_0x3a6815[_0xa2bbaf('0xf')]['id']}})[_0xa2bbaf('0x11')](handleEntityNotFound(_0x385ae3,null))['then'](function(_0x136730){const _0x4f35ef=_0xa2bbaf;if(_0x136730)return _0x26b0e7=_0x136730,_0x43d671['model']=_[_0x4f35ef('0x35')](db[_0x4f35ef('0x2f')][_0x4f35ef('0x3a')]),_0x43d671[_0x4f35ef('0x43')]=_[_0x4f35ef('0x35')](_0x3a6815[_0x4f35ef('0x43')]),_0x43d671['filters']=_[_0x4f35ef('0x10')](_0x43d671[_0x4f35ef('0x5b')],_0x43d671['query']),_0x4e614e[_0x4f35ef('0x1d')]=_[_0x4f35ef('0x10')](_0x43d671['model'],qs[_0x4f35ef('0x70')](_0x3a6815['query'][_0x4f35ef('0x70')])),_0x4e614e['attributes']=_0x4e614e[_0x4f35ef('0x1d')]['length']?_0x4e614e[_0x4f35ef('0x1d')]:_0x43d671[_0x4f35ef('0x5b')],_0x4e614e['order']=qs[_0x4f35ef('0x8')](_0x3a6815['query'][_0x4f35ef('0x8')]),_0x4e614e[_0x4f35ef('0x74')]=qs[_0x4f35ef('0x12')](_[_0x4f35ef('0x18')](_0x3a6815[_0x4f35ef('0x43')],_0x43d671[_0x4f35ef('0x12')])),_0x3a6815[_0x4f35ef('0x43')][_0x4f35ef('0x72')]&&(_0x4e614e[_0x4f35ef('0x74')]=_[_0x4f35ef('0x1e')](_0x4e614e[_0x4f35ef('0x74')],{[Op['or']]:_[_0x4f35ef('0x52')](_0x4e614e[_0x4f35ef('0x1d')],function(_0x538888){const _0x49f1fe=_0x4f35ef,_0x33f4b2={};return _0x33f4b2[_0x538888]={[Op[_0x49f1fe('0x2c')]]:'%'+_0x3a6815[_0x49f1fe('0x43')][_0x49f1fe('0x72')]+'%'},_0x33f4b2;})})),_0x4e614e=_[_0x4f35ef('0x1e')]({},_0x4e614e,_0x3a6815['options']),_0x26b0e7[_0x4f35ef('0x1c')](_0x4e614e);})[_0xa2bbaf('0x11')](function(_0x59c30a){const _0x32aeda=_0xa2bbaf;if(_0x59c30a)return _0x34cb16=_0x59c30a[_0x32aeda('0x1f')],typeof _0x3a6815[_0x32aeda('0x43')][_0x32aeda('0x38')]===_0x32aeda('0x58')&&(_0x4e614e['limit']=qs[_0x32aeda('0x29')](_0x3a6815[_0x32aeda('0x43')]['limit']),_0x4e614e[_0x32aeda('0x20')]=qs['offset'](_0x3a6815[_0x32aeda('0x43')][_0x32aeda('0x20')])),_0x26b0e7['getTeams'](_0x4e614e);})[_0xa2bbaf('0x11')](function(_0xf99b1d){if(_0xf99b1d)return _0xf99b1d?{'count':_0x34cb16,'rows':_0xf99b1d}:null;})[_0xa2bbaf('0x11')](respondWithResult(_0x385ae3,null))['catch'](handleError(_0x385ae3,null));},exports[_0x1b0f9a('0x2a')]=function(_0x2dd758,_0x565784){const _0x2da52f=_0x1b0f9a,_0x27aabd=_0x2dd758[_0x2da52f('0x5d')][_0x2da52f('0x4a')];return db['Team'][_0x2da52f('0x63')]({'where':{'id':_0x27aabd},'attributes':['id'],'include':[{'model':db[_0x2da52f('0x67')],'as':_0x2da52f('0x30'),'attributes':['id',_0x2da52f('0x4c'),'online',_0x2da52f('0x3f'),'interface'],'raw':!![]}]})[_0x2da52f('0x11')](function(_0x310c7e){const _0x37cc89=_0x2da52f;if(_0x310c7e){const _0x1fef64=_[_0x37cc89('0x39')](_0x310c7e,function(_0x419920){const _0x2a3f95=_0x37cc89,_0x35c226=_0x419920[_0x2a3f95('0x2')]({'plain':!![]});return _0x35c226[_0x2a3f95('0x30')];});return db['ChatQueue'][_0x37cc89('0x14')]({'where':{'id':_0x2dd758['params']['id']}})[_0x37cc89('0x11')](function(_0xddafce){const _0x24a4d0=_0x37cc89;return db[_0x24a4d0('0x68')][_0x24a4d0('0x1a')](function(_0x2da5bd){const _0x11642a=_0x24a4d0;return _0xddafce[_0x11642a('0x2a')](_0x27aabd,{'transaction':_0x2da5bd})[_0x11642a('0x11')](function(){return Promise['each'](_0x1fef64,function(_0x5471df){const _0x15a2b0=a95_0x1c15;return db['UserChatQueue'][_0x15a2b0('0x13')]({'where':{'UserId':_0x5471df['id'],'ChatQueueId':_0x2dd758[_0x15a2b0('0xf')]['id']},'transaction':_0x2da5bd});});})[_0x11642a('0x11')](function(){const _0x33d694=_0x11642a;_0x1fef64[_0x33d694('0x22')](function(_0x493106){const _0x439538=_0x33d694;socket['emit'](_0x439538('0x15'),{'UserId':_0x493106['id'],'ChatQueueId':_0xddafce['id']});});});});});}})[_0x2da52f('0x11')](respondWithStatusCode(_0x565784,null))[_0x2da52f('0x24')](handleError(_0x565784,null));},exports[_0x1b0f9a('0x4f')]=function(_0x237dbe,_0x228d22){const _0xdec1f=_0x1b0f9a;return db['Team'][_0xdec1f('0x63')]({'where':{'id':_0x237dbe['query'][_0xdec1f('0x4a')]},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0xdec1f('0x11')](handleEntityNotFound(_0x228d22,null))[_0xdec1f('0x11')](function(_0x51948c){const _0x52a4c4=_0xdec1f,_0x19182c=_['map'](_0x51948c,'id');let _0x159ff1=[];const _0x3078ca=[],_0x15bfcf=squel[_0x52a4c4('0x4')]();_0x15bfcf['field'](_0x52a4c4('0x6d'))[_0x52a4c4('0x6f')](_0x52a4c4('0x49'),'tq')[_0x52a4c4('0x9')](_0x52a4c4('0x40'),'ut',_0x52a4c4('0x73'))['where'](_0x52a4c4('0x1b'),_0x237dbe[_0x52a4c4('0xf')]['id']);for(let _0x33f701=0x0;_0x33f701<_0x51948c[_0x52a4c4('0x1f')];_0x33f701+=0x1){const _0x44982d=_0x51948c[_0x33f701];for(let _0x190fd5=0x0;_0x190fd5<_0x44982d['Agents'][_0x52a4c4('0x1f')];_0x190fd5+=0x1){const _0x594eac=_0x44982d[_0x52a4c4('0x30')][_0x190fd5],_0x1301fe=_0x15bfcf[_0x52a4c4('0xc')]();_0x1301fe[_0x52a4c4('0x74')](_0x52a4c4('0x7'),_0x594eac['id']),_0x3078ca[_0x52a4c4('0x37')](db[_0x52a4c4('0x68')][_0x52a4c4('0x43')](_0x1301fe[_0x52a4c4('0x6c')](),{'type':QueryTypes[_0x52a4c4('0x27')]})[_0x52a4c4('0x11')](function(_0x4f2a40){const _0x4f6ddb=_0x52a4c4;if(_0x4f2a40[_0x4f6ddb('0x1f')]===0x1)return _0x594eac['id'];else{const _0x508afd=_[_0x4f6ddb('0x34')](_[_0x4f6ddb('0x52')](_0x4f2a40,_0x4f6ddb('0x61')),function(_0x116f4b){const _0xab3aff=_0x4f6ddb;return _[_0xab3aff('0x4e')](_0x19182c,_0x116f4b);});if(_0x508afd)return _0x594eac['id'];}}));}}return Promise[_0x52a4c4('0x55')](_0x3078ca)['then'](function(_0x377e27){const _0x337d14=_0x52a4c4;return _0x159ff1=_(_0x159ff1)[_0x337d14('0x42')](_0x377e27)[_0x337d14('0x6a')]()[_0x337d14('0x69')](),db[_0x337d14('0x21')][_0x337d14('0x14')]({'where':{'id':_0x237dbe['params']['id']}})[_0x337d14('0x11')](function(_0xc60cb2){const _0xcbe2fa=_0x337d14;return db[_0xcbe2fa('0x68')][_0xcbe2fa('0x1a')](function(_0x63f878){const _0x1a298c=_0xcbe2fa;return _0xc60cb2[_0x1a298c('0x4f')](_0x237dbe['query'][_0x1a298c('0x4a')],{'transaction':_0x63f878})['then'](function(){const _0x3d575a=_0x1a298c;if(!_[_0x3d575a('0x3')](_0x159ff1))return _0xc60cb2[_0x3d575a('0x6')](_0x159ff1,{'transaction':_0x63f878});})[_0x1a298c('0x11')](function(){_0x159ff1['forEach'](function(_0x5a71f4){const _0x297d17=a95_0x1c15;socket['emit'](_0x297d17('0x71'),{'UserId':_0x5a71f4,'ChatQueueId':_0xc60cb2['id']});});});});});});})['then'](respondWithStatusCode(_0x228d22,null))[_0xdec1f('0x24')](handleError(_0x228d22,null));},exports[_0x1b0f9a('0x2d')]=function(_0x31cb06,_0x4603f2){const _0x3d783f=_0x1b0f9a;return db[_0x3d783f('0x21')]['findOne']({'where':{'id':_0x31cb06[_0x3d783f('0xf')]['id']}})[_0x3d783f('0x11')](function(_0x2d9d80){const _0xead6bd=_0x3d783f;if(_0x2d9d80)return _0x2d9d80[_0xead6bd('0x2d')](_0x31cb06['body'][_0xead6bd('0x4a')],{'through':_[_0xead6bd('0x62')](_0x31cb06[_0xead6bd('0x5d')],[_0xead6bd('0x4a'),'id'])})['then'](function(_0x716139){const _0x1e4822=_0xead6bd;for(let _0x1d8258=0x0;_0x1d8258<_0x31cb06[_0x1e4822('0x5d')][_0x1e4822('0x4a')][_0x1e4822('0x1f')];_0x1d8258+=0x1){socket[_0x1e4822('0x32')](_0x1e4822('0x15'),{'UserId':_0x31cb06['body'][_0x1e4822('0x4a')][_0x1d8258],'ChatQueueId':_0x31cb06[_0x1e4822('0xf')]['id']});}return _0x716139;});})['then'](respondWithResult(_0x4603f2,null))[_0x3d783f('0x24')](handleError(_0x4603f2,null));},exports['removeAgents']=function(_0xc5e243,_0x48733d){const _0x2008a1=_0x1b0f9a;return db['ChatQueue'][_0x2008a1('0x14')]({'where':{'id':_0xc5e243[_0x2008a1('0xf')]['id']}})[_0x2008a1('0x11')](handleEntityNotFound(_0x48733d,null))[_0x2008a1('0x11')](function(_0x13b968){const _0xb0cf38=_0x2008a1;if(_0x13b968)return _0x13b968[_0xb0cf38('0x6')](_0xc5e243[_0xb0cf38('0x43')][_0xb0cf38('0x4a')])[_0xb0cf38('0x11')](function(){const _0x3be0ce=_0xb0cf38;if(_[_0x3be0ce('0x41')](_0xc5e243[_0x3be0ce('0x43')]['ids']))for(let _0x540d75=0x0;_0x540d75<_0xc5e243[_0x3be0ce('0x43')][_0x3be0ce('0x4a')][_0x3be0ce('0x1f')];_0x540d75+=0x1){socket[_0x3be0ce('0x32')](_0x3be0ce('0x71'),{'UserId':Number(_0xc5e243[_0x3be0ce('0x43')][_0x3be0ce('0x4a')][_0x540d75]),'ChatQueueId':Number(_0xc5e243['params']['id'])});}else socket[_0x3be0ce('0x32')](_0x3be0ce('0x71'),{'UserId':Number(_0xc5e243[_0x3be0ce('0x43')][_0x3be0ce('0x4a')]),'ChatQueueId':Number(_0xc5e243[_0x3be0ce('0xf')]['id'])});});})[_0x2008a1('0x11')](respondWithStatusCode(_0x48733d,null))[_0x2008a1('0x24')](handleError(_0x48733d,null));},exports[_0x1b0f9a('0x17')]=function(_0xfe2c43,_0x5dc21f){const _0x545658=_0x1b0f9a;let _0x1924c2={};const _0x52a91b={};let _0x54df83,_0x4ef88d;return db[_0x545658('0x21')][_0x545658('0x14')]({'where':{'id':_0xfe2c43['params']['id']}})[_0x545658('0x11')](handleEntityNotFound(_0x5dc21f,null))[_0x545658('0x11')](function(_0x548326){const _0x23e9ac=_0x545658;if(_0x548326)return _0x54df83=_0x548326,_0x52a91b['model']=_['keys'](db[_0x23e9ac('0x67')][_0x23e9ac('0x3a')]),_0x52a91b[_0x23e9ac('0x43')]=_['keys'](_0xfe2c43[_0x23e9ac('0x43')]),_0x52a91b[_0x23e9ac('0x12')]=_['intersection'](_0x52a91b['model'],_0x52a91b[_0x23e9ac('0x43')]),_0x1924c2[_0x23e9ac('0x1d')]=_[_0x23e9ac('0x10')](_0x52a91b[_0x23e9ac('0x5b')],qs[_0x23e9ac('0x70')](_0xfe2c43[_0x23e9ac('0x43')][_0x23e9ac('0x70')])),_0x1924c2['attributes']=_0x1924c2[_0x23e9ac('0x1d')][_0x23e9ac('0x1f')]?_0x1924c2['attributes']:_0x52a91b[_0x23e9ac('0x5b')],_0x1924c2[_0x23e9ac('0x47')]=qs[_0x23e9ac('0x8')](_0xfe2c43[_0x23e9ac('0x43')][_0x23e9ac('0x8')]),_0x1924c2[_0x23e9ac('0x74')]=qs[_0x23e9ac('0x12')](_[_0x23e9ac('0x18')](_0xfe2c43[_0x23e9ac('0x43')],_0x52a91b['filters'])),_0xfe2c43[_0x23e9ac('0x43')]['filter']&&(_0x1924c2[_0x23e9ac('0x74')]=_[_0x23e9ac('0x1e')](_0x1924c2['where'],{[Op['or']]:_['map'](_0x1924c2[_0x23e9ac('0x1d')],function(_0x2dc8da){const _0x5bc8f4=_0x23e9ac,_0x386d76={};return _0x386d76[_0x2dc8da]={[Op[_0x5bc8f4('0x2c')]]:'%'+_0xfe2c43[_0x5bc8f4('0x43')][_0x5bc8f4('0x72')]+'%'},_0x386d76;})})),_0x1924c2=_[_0x23e9ac('0x1e')]({},_0x1924c2,_0xfe2c43['options']),_0x54df83['getAgents'](_0x1924c2);})[_0x545658('0x11')](function(_0x4d85c5){const _0x30aaa6=_0x545658;if(_0x4d85c5)return _0x4ef88d=_0x4d85c5[_0x30aaa6('0x1f')],typeof _0xfe2c43[_0x30aaa6('0x43')][_0x30aaa6('0x38')]==='undefined'&&(_0x1924c2[_0x30aaa6('0x29')]=qs[_0x30aaa6('0x29')](_0xfe2c43[_0x30aaa6('0x43')][_0x30aaa6('0x29')]),_0x1924c2[_0x30aaa6('0x20')]=qs['offset'](_0xfe2c43[_0x30aaa6('0x43')]['offset'])),_0x54df83[_0x30aaa6('0x17')](_0x1924c2);})[_0x545658('0x11')](function(_0x16967d){if(_0x16967d)return _0x16967d?{'count':_0x4ef88d,'rows':_0x16967d}:null;})[_0x545658('0x11')](respondWithResult(_0x5dc21f,null))[_0x545658('0x24')](handleError(_0x5dc21f,null));}; \ No newline at end of file +const a95_0x1337=['intersection','describe','select','order','options','fieldName','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','update','transaction','includes','addAgents','all','../../rediscache','create','format','../../config/logger','interface','findOrCreate','user','forEach','role','emit','UserProfileResource','set','length','voicePause','rows','userChatQueue:remove','createdAt','merge','push','removeTeams','offset','type','tq.TeamId','UserProfileSection','Unable\x20to\x20retrieve\x20the\x20current\x20user','stack','undefined','Agents','ut.TeamId\x20=\x20tq.TeamId','isEmpty','userProfileId','every','model','json','omit','params','./chatQueue.socket','Team','SELECT','getTeams','flatMap','includeAll','agent','findOne','end','clone','get','then','ids','pick','User','VIRTUAL','TeamId','count','status','team_has_chat_queues','where','ChatQueueId','sequelize','limit','sendStatus','getAgents','field','map','name','api','../../mysqldb','findAndCountAll','lodash','like','query','sort','from','filters','join','removeAgents','value','union','error','filter','getMembers','body','addTeams','squel','compact','send','catch','keys','Content-Range','ChatQueues','updatedAt','ChatQueue','attributes','show','destroy','UserChatQueue','autoAssociation','nolimit','include','fields','findAll','each','chatPause','rawAttributes'];(function(_0x4de4a2,_0x133783){const _0x4d85fc=function(_0x486e85){while(--_0x486e85){_0x4de4a2['push'](_0x4de4a2['shift']());}};_0x4d85fc(++_0x133783);}(a95_0x1337,0xd6));const a95_0x4d85=function(_0x4de4a2,_0x133783){_0x4de4a2=_0x4de4a2-0x0;let _0x4d85fc=a95_0x1337[_0x4de4a2];return _0x4d85fc;};const _0x259bfe=a95_0x4d85;'use strict';const util=require('util'),_=require(_0x259bfe('0x62')),squel=require(_0x259bfe('0x71')),qs=require('../../components/parsers/qs'),logger=require(_0x259bfe('0x21'))(_0x259bfe('0x5f')),{getSocket}=require(_0x259bfe('0x1e')),db=require(_0x259bfe('0x60'))['db'],{Op,QueryTypes}=require(_0x259bfe('0x58')),socket=getSocket();require(_0x259bfe('0x42'))['register'](socket);function respondWithStatusCode(_0x486e85,_0x11fc18){return _0x11fc18=_0x11fc18||0xcc,function(_0x6101e7){const _0x27da50=a95_0x4d85;if(_0x6101e7)return _0x486e85['sendStatus'](_0x11fc18);return _0x486e85['status'](_0x11fc18)[_0x27da50('0x4a')]();};}function respondWithResult(_0x54294c,_0x5a1570){return _0x5a1570=_0x5a1570||0xc8,function(_0x36c37c){const _0x38e62a=a95_0x4d85;if(_0x36c37c)return _0x54294c[_0x38e62a('0x54')](_0x5a1570)['json'](_0x36c37c);};}function respondWithFilteredResult(_0x35c512,_0x2367a8){return function(_0x44e7ec){const _0x4ea335=a95_0x4d85;if(_0x44e7ec){const _0x35bf3e=_0x44e7ec[_0x4ea335('0x53')],_0x404be0=_0x2367a8[_0x4ea335('0x32')];let _0x12dbfd=_0x2367a8[_0x4ea335('0x32')]+_0x2367a8['limit'],_0x211de6;return _0x12dbfd>=_0x35bf3e?(_0x12dbfd=_0x35bf3e,_0x211de6=0xc8):_0x211de6=0xce,_0x35c512[_0x4ea335('0x54')](_0x211de6),_0x35c512[_0x4ea335('0x29')](_0x4ea335('0x2'),_0x404be0+'-'+_0x12dbfd+'/'+_0x35bf3e)[_0x4ea335('0x3f')](_0x44e7ec);}return null;};}function saveUpdates(_0x261b0e){return function(_0xbafdde){const _0x31b039=a95_0x4d85;if(_0xbafdde)return _0xbafdde[_0x31b039('0x19')](_0x261b0e)['then'](function(_0x3dda05){return _0x3dda05;});return null;};}function removeEntity(_0x48b642){return function(_0x1a04fd){const _0x42c83e=a95_0x4d85;if(_0x1a04fd)return _0x1a04fd[_0x42c83e('0x8')]()[_0x42c83e('0x4d')](function(){const _0x256deb=_0x42c83e,_0x116562=_0x1a04fd[_0x256deb('0x4c')]({'plain':!![]}),_0x1f7de4=_0x256deb('0x3');return db[_0x256deb('0x28')]['destroy']({'where':{'type':_0x1f7de4,'resourceId':_0x116562['id']}})[_0x256deb('0x4d')](function(){return _0x1a04fd;});})[_0x42c83e('0x4d')](function(){_0x48b642['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x38f17f){return function(_0x3d3624){const _0x975ede=a95_0x4d85;return!_0x3d3624&&_0x38f17f[_0x975ede('0x5a')](0x194),_0x3d3624;};}function handleError(_0x32e591,_0x374bb7){return _0x374bb7=_0x374bb7||0x1f4,function(_0x159b15){const _0x20c242=a95_0x4d85;logger[_0x20c242('0x6c')](_0x159b15[_0x20c242('0x37')]),_0x159b15[_0x20c242('0x5e')]&&delete _0x159b15[_0x20c242('0x5e')],_0x32e591[_0x20c242('0x54')](_0x374bb7)[_0x20c242('0x73')](_0x159b15);};}exports['index']=function(_0x1749ac,_0x5c13b4){const _0x424040=_0x259bfe;let _0x329f4a={};const _0x43f0e2={},_0x57ae00={'count':0x0,'rows':[]},_0x58e5bb=_[_0x424040('0x5d')](db[_0x424040('0x5')]['rawAttributes'],function(_0x13f658){const _0x1ef09f=_0x424040;return{'name':_0x13f658[_0x1ef09f('0x17')],'type':_0x13f658[_0x1ef09f('0x33')]['key']};});_0x43f0e2[_0x424040('0x3e')]=_[_0x424040('0x5d')](_0x58e5bb,_0x424040('0x5e')),_0x43f0e2[_0x424040('0x64')]=_['keys'](_0x1749ac[_0x424040('0x64')]),_0x43f0e2['filters']=_[_0x424040('0x12')](_0x43f0e2['model'],_0x43f0e2['query']),_0x329f4a[_0x424040('0x6')]=_[_0x424040('0x12')](_0x43f0e2[_0x424040('0x3e')],qs['fields'](_0x1749ac['query']['fields'])),_0x329f4a[_0x424040('0x6')]=_0x329f4a[_0x424040('0x6')][_0x424040('0x2a')]?_0x329f4a[_0x424040('0x6')]:_0x43f0e2[_0x424040('0x3e')];typeof _0x1749ac[_0x424040('0x64')][_0x424040('0xb')]==='undefined'&&(_0x329f4a['limit']=qs[_0x424040('0x59')](_0x1749ac[_0x424040('0x64')][_0x424040('0x59')]),_0x329f4a[_0x424040('0x32')]=qs[_0x424040('0x32')](_0x1749ac[_0x424040('0x64')][_0x424040('0x32')]));_0x329f4a['order']=qs[_0x424040('0x65')](_0x1749ac[_0x424040('0x64')]['sort']),_0x329f4a[_0x424040('0x56')]=qs[_0x424040('0x67')](_[_0x424040('0x4f')](_0x1749ac['query'],_0x43f0e2['filters']),_0x58e5bb);_0x1749ac[_0x424040('0x64')][_0x424040('0x6d')]&&(_0x329f4a[_0x424040('0x56')]=_['merge'](_0x329f4a[_0x424040('0x56')],{[Op['or']]:_[_0x424040('0x5d')](_0x58e5bb,function(_0x99ab19){const _0x172264=_0x424040;if(_0x99ab19['type']!==_0x172264('0x51')){const _0xb8ed96={};return _0xb8ed96[_0x99ab19[_0x172264('0x5e')]]={[Op[_0x172264('0x63')]]:'%'+_0x1749ac[_0x172264('0x64')][_0x172264('0x6d')]+'%'},_0xb8ed96;}})}));_0x329f4a=_[_0x424040('0x2f')]({},_0x329f4a,_0x1749ac[_0x424040('0x16')]);const _0x3fd70a={'where':_0x329f4a['where']};return db[_0x424040('0x5')][_0x424040('0x53')](_0x3fd70a)['then'](function(_0xc2cf2a){const _0x580b56=_0x424040;return _0x57ae00[_0x580b56('0x53')]=_0xc2cf2a,_0x1749ac[_0x580b56('0x64')][_0x580b56('0x47')]&&(_0x329f4a['include']=[{'all':!![]}]),db[_0x580b56('0x5')]['findAll'](_0x329f4a);})[_0x424040('0x4d')](function(_0x3efc9b){return _0x57ae00['rows']=_0x3efc9b,_0x57ae00;})[_0x424040('0x4d')](respondWithFilteredResult(_0x5c13b4,_0x329f4a))[_0x424040('0x0')](handleError(_0x5c13b4,null));},exports[_0x259bfe('0x7')]=function(_0x5e479a,_0x37ecb6){const _0x1182d8=_0x259bfe;let _0x82ccf1={'raw':!![],'where':{'id':_0x5e479a[_0x1182d8('0x41')]['id']}};const _0x375c69={};return _0x375c69[_0x1182d8('0x3e')]=_[_0x1182d8('0x1')](db[_0x1182d8('0x5')][_0x1182d8('0x11')]),_0x375c69[_0x1182d8('0x64')]=_[_0x1182d8('0x1')](_0x5e479a['query']),_0x375c69['filters']=_[_0x1182d8('0x12')](_0x375c69[_0x1182d8('0x3e')],_0x375c69[_0x1182d8('0x64')]),_0x82ccf1['attributes']=_['intersection'](_0x375c69[_0x1182d8('0x3e')],qs['fields'](_0x5e479a['query'][_0x1182d8('0xd')])),_0x82ccf1[_0x1182d8('0x6')]=_0x82ccf1[_0x1182d8('0x6')][_0x1182d8('0x2a')]?_0x82ccf1[_0x1182d8('0x6')]:_0x375c69['model'],_0x5e479a[_0x1182d8('0x64')][_0x1182d8('0x47')]&&(_0x82ccf1[_0x1182d8('0xc')]=[{'all':!![]}]),_0x82ccf1=_[_0x1182d8('0x2f')]({},_0x82ccf1,_0x5e479a[_0x1182d8('0x16')]),db[_0x1182d8('0x5')][_0x1182d8('0x49')](_0x82ccf1)[_0x1182d8('0x4d')](handleEntityNotFound(_0x37ecb6,null))['then'](respondWithResult(_0x37ecb6,null))['catch'](handleError(_0x37ecb6,null));},exports[_0x259bfe('0x1f')]=function(_0x5cdb39,_0x17dc67){const _0x3f4752=_0x259bfe;return db[_0x3f4752('0x5')][_0x3f4752('0x1f')](_0x5cdb39[_0x3f4752('0x6f')],{})[_0x3f4752('0x4d')](function(_0x2ffc59){const _0x4ce6bb=_0x3f4752,_0x42fcca=_0x5cdb39[_0x4ce6bb('0x24')][_0x4ce6bb('0x4c')]({'plain':!![]});if(!_0x42fcca)throw new Error(_0x4ce6bb('0x36'));if(_0x42fcca[_0x4ce6bb('0x26')]==='user'){const _0xfc73d7=_0x2ffc59['get']({'plain':!![]}),_0x2b4981='ChatQueues';return db[_0x4ce6bb('0x35')]['findOne']({'where':{'name':_0x2b4981,'userProfileId':_0x42fcca[_0x4ce6bb('0x3c')]},'raw':!![]})[_0x4ce6bb('0x4d')](function(_0x4836bd){const _0x640533=_0x4ce6bb;return _0x4836bd&&_0x4836bd[_0x640533('0xa')]===0x0?db[_0x640533('0x28')][_0x640533('0x1f')]({'name':_0xfc73d7[_0x640533('0x5e')],'resourceId':_0xfc73d7['id'],'type':_0x4836bd[_0x640533('0x5e')],'sectionId':_0x4836bd['id']},{})[_0x640533('0x4d')](function(){return _0x2ffc59;}):_0x2ffc59;})[_0x4ce6bb('0x0')](function(_0x47ad36){const _0x71e7d1=_0x4ce6bb;logger[_0x71e7d1('0x6c')](_0x71e7d1('0x18'),_0x47ad36);throw _0x47ad36;});}return _0x2ffc59;})[_0x3f4752('0x4d')](respondWithResult(_0x17dc67,0xc9))[_0x3f4752('0x0')](handleError(_0x17dc67,null));},exports[_0x259bfe('0x19')]=function(_0x5aacc7,_0x4d7212){const _0x1eb0c6=_0x259bfe;return _0x5aacc7[_0x1eb0c6('0x6f')]['id']&&delete _0x5aacc7[_0x1eb0c6('0x6f')]['id'],db[_0x1eb0c6('0x5')][_0x1eb0c6('0x49')]({'where':{'id':_0x5aacc7[_0x1eb0c6('0x41')]['id']}})[_0x1eb0c6('0x4d')](handleEntityNotFound(_0x4d7212,null))['then'](saveUpdates(_0x5aacc7[_0x1eb0c6('0x6f')],null))[_0x1eb0c6('0x4d')](respondWithResult(_0x4d7212,null))[_0x1eb0c6('0x0')](handleError(_0x4d7212,null));},exports[_0x259bfe('0x8')]=function(_0x1f7b49,_0x43975b){const _0x3665f9=_0x259bfe;return db[_0x3665f9('0x5')][_0x3665f9('0x49')]({'where':{'id':_0x1f7b49[_0x3665f9('0x41')]['id']}})[_0x3665f9('0x4d')](handleEntityNotFound(_0x43975b,null))['then'](removeEntity(_0x43975b,null))['catch'](handleError(_0x43975b,null));},exports[_0x259bfe('0x13')]=function(_0x26d235,_0x3eb862){const _0xb15e2a=_0x259bfe;return db[_0xb15e2a('0x5')][_0xb15e2a('0x13')]()[_0xb15e2a('0x4d')](respondWithResult(_0x3eb862,null))['catch'](handleError(_0x3eb862,null));},exports[_0x259bfe('0x6e')]=function(_0x466879,_0x35f9e3){const _0x1d517c=_0x259bfe;let _0x43586e={'raw':!![],'where':{}};const _0x5aac72={};let _0x84e6f4;return db[_0x1d517c('0x5')]['findOne']({'where':{'id':_0x466879[_0x1d517c('0x41')]['id']}})['then'](handleEntityNotFound(_0x35f9e3,null))['then'](function(_0xd3127f){const _0x514ef5=_0x1d517c;if(_0xd3127f)return _0x84e6f4=_0xd3127f['get']({'plain':!![]}),_0x5aac72['model']=_[_0x514ef5('0x1')](db[_0x514ef5('0x9')][_0x514ef5('0x11')]),_0x5aac72['query']=_['keys'](_0x466879[_0x514ef5('0x64')]),_0x5aac72['filters']=_['intersection'](_0x5aac72[_0x514ef5('0x3e')],_0x5aac72[_0x514ef5('0x64')]),_0x43586e[_0x514ef5('0x6')]=_[_0x514ef5('0x12')](_0x5aac72[_0x514ef5('0x3e')],qs['fields'](_0x466879['query'][_0x514ef5('0xd')])),_0x43586e[_0x514ef5('0x6')]=_0x43586e['attributes'][_0x514ef5('0x2a')]?_0x43586e[_0x514ef5('0x6')]:_0x5aac72[_0x514ef5('0x3e')],typeof _0x466879[_0x514ef5('0x64')][_0x514ef5('0xb')]===_0x514ef5('0x38')&&(_0x43586e[_0x514ef5('0x59')]=qs[_0x514ef5('0x59')](_0x466879[_0x514ef5('0x64')][_0x514ef5('0x59')]),_0x43586e[_0x514ef5('0x32')]=qs[_0x514ef5('0x32')](_0x466879[_0x514ef5('0x64')][_0x514ef5('0x32')])),_0x43586e['order']=qs[_0x514ef5('0x65')](_0x466879['query'][_0x514ef5('0x65')]),_0x43586e['where']=qs[_0x514ef5('0x67')](_['pick'](_0x466879[_0x514ef5('0x64')],_0x5aac72['filters'])),_0x43586e[_0x514ef5('0x56')][_0x514ef5('0x57')]=_0xd3127f['id'],_0x466879['query'][_0x514ef5('0x6d')]&&(_0x43586e[_0x514ef5('0x56')]=_[_0x514ef5('0x2f')](_0x43586e[_0x514ef5('0x56')],{[Op['or']]:_[_0x514ef5('0x5d')](_0x43586e[_0x514ef5('0x6')],function(_0x3b1db6){const _0x538c6a=_0x514ef5,_0x533380={};return _0x533380[_0x3b1db6]={[Op[_0x538c6a('0x63')]]:'%'+_0x466879[_0x538c6a('0x64')][_0x538c6a('0x6d')]+'%'},_0x533380;})})),_0x43586e=_['merge']({},_0x43586e,_0x466879[_0x514ef5('0x16')]),db['UserChatQueue'][_0x514ef5('0xe')](_0x43586e);})['then'](function(_0x55f493){const _0x1e3e02=_0x1d517c;if(_0x55f493)return db[_0x1e3e02('0x50')][_0x1e3e02('0x61')]({'where':{'id':_['map'](_0x55f493,'UserId'),'role':_0x1e3e02('0x48')},'attributes':['id',_0x1e3e02('0x5e'),_0x1e3e02('0x10'),'updatedAt','createdAt']});})[_0x1d517c('0x4d')](function(_0x1433eb){const _0x16d130=_0x1d517c;return _0x1433eb?{'count':_0x1433eb[_0x16d130('0x53')],'rows':_[_0x16d130('0x5d')](_0x1433eb[_0x16d130('0x2c')],function(_0x424d37){const _0x571c20=_0x16d130;return{'membername':_0x424d37[_0x571c20('0x5e')],'UserId':_0x424d37['id'],'queue_name':_0x84e6f4[_0x571c20('0x5e')],'ChatQueueId':_0x84e6f4['id'],'interface':util[_0x571c20('0x20')]('%s/%s','SIP',_0x424d37['name']),'penalty':0x0,'paused':_0x424d37['chatPause'],'createdAt':_0x424d37[_0x571c20('0x2e')],'updatedAt':_0x424d37[_0x571c20('0x4')]};})}:{'count':0x0,'rows':[]};})[_0x1d517c('0x4d')](respondWithFilteredResult(_0x35f9e3,_0x43586e))['catch'](handleError(_0x35f9e3,null));},exports[_0x259bfe('0x45')]=function(_0x582cbd,_0x2a5767){const _0x52bbf0=_0x259bfe;let _0x48de86={};const _0x27e1d7={};let _0x46ea2e,_0x2b6a94;return db[_0x52bbf0('0x5')][_0x52bbf0('0x49')]({'where':{'id':_0x582cbd[_0x52bbf0('0x41')]['id']}})[_0x52bbf0('0x4d')](handleEntityNotFound(_0x2a5767,null))['then'](function(_0x8ee809){const _0xf7fb99=_0x52bbf0;if(_0x8ee809)return _0x46ea2e=_0x8ee809,_0x27e1d7[_0xf7fb99('0x3e')]=_[_0xf7fb99('0x1')](db[_0xf7fb99('0x43')][_0xf7fb99('0x11')]),_0x27e1d7[_0xf7fb99('0x64')]=_[_0xf7fb99('0x1')](_0x582cbd['query']),_0x27e1d7[_0xf7fb99('0x67')]=_[_0xf7fb99('0x12')](_0x27e1d7[_0xf7fb99('0x3e')],_0x27e1d7[_0xf7fb99('0x64')]),_0x48de86[_0xf7fb99('0x6')]=_[_0xf7fb99('0x12')](_0x27e1d7[_0xf7fb99('0x3e')],qs[_0xf7fb99('0xd')](_0x582cbd['query']['fields'])),_0x48de86[_0xf7fb99('0x6')]=_0x48de86['attributes'][_0xf7fb99('0x2a')]?_0x48de86[_0xf7fb99('0x6')]:_0x27e1d7[_0xf7fb99('0x3e')],_0x48de86['order']=qs[_0xf7fb99('0x65')](_0x582cbd[_0xf7fb99('0x64')]['sort']),_0x48de86[_0xf7fb99('0x56')]=qs[_0xf7fb99('0x67')](_[_0xf7fb99('0x4f')](_0x582cbd[_0xf7fb99('0x64')],_0x27e1d7[_0xf7fb99('0x67')])),_0x582cbd[_0xf7fb99('0x64')][_0xf7fb99('0x6d')]&&(_0x48de86[_0xf7fb99('0x56')]=_[_0xf7fb99('0x2f')](_0x48de86[_0xf7fb99('0x56')],{[Op['or']]:_[_0xf7fb99('0x5d')](_0x48de86['attributes'],function(_0x18a398){const _0x24d2ec=_0xf7fb99,_0xe1ef81={};return _0xe1ef81[_0x18a398]={[Op[_0x24d2ec('0x63')]]:'%'+_0x582cbd['query']['filter']+'%'},_0xe1ef81;})})),_0x48de86=_[_0xf7fb99('0x2f')]({},_0x48de86,_0x582cbd[_0xf7fb99('0x16')]),_0x46ea2e[_0xf7fb99('0x45')](_0x48de86);})[_0x52bbf0('0x4d')](function(_0x2531c9){const _0x4789d5=_0x52bbf0;if(_0x2531c9)return _0x2b6a94=_0x2531c9[_0x4789d5('0x2a')],typeof _0x582cbd[_0x4789d5('0x64')][_0x4789d5('0xb')]===_0x4789d5('0x38')&&(_0x48de86[_0x4789d5('0x59')]=qs[_0x4789d5('0x59')](_0x582cbd[_0x4789d5('0x64')][_0x4789d5('0x59')]),_0x48de86[_0x4789d5('0x32')]=qs[_0x4789d5('0x32')](_0x582cbd[_0x4789d5('0x64')][_0x4789d5('0x32')])),_0x46ea2e[_0x4789d5('0x45')](_0x48de86);})['then'](function(_0x565b87){if(_0x565b87)return _0x565b87?{'count':_0x2b6a94,'rows':_0x565b87}:null;})[_0x52bbf0('0x4d')](respondWithResult(_0x2a5767,null))[_0x52bbf0('0x0')](handleError(_0x2a5767,null));},exports['addTeams']=function(_0x4cb103,_0x50c7a0){const _0x18d58f=_0x259bfe,_0x2aab14=_0x4cb103[_0x18d58f('0x6f')][_0x18d58f('0x4e')];return db[_0x18d58f('0x43')][_0x18d58f('0xe')]({'where':{'id':_0x2aab14},'attributes':['id'],'include':[{'model':db['User'],'as':_0x18d58f('0x39'),'attributes':['id',_0x18d58f('0x5e'),'online',_0x18d58f('0x2b'),_0x18d58f('0x22')],'raw':!![]}]})[_0x18d58f('0x4d')](function(_0x21d685){const _0x3d9f74=_0x18d58f;if(_0x21d685){const _0x96279a=_[_0x3d9f74('0x46')](_0x21d685,function(_0x4f9a83){const _0x40f293=_0x3d9f74,_0x388014=_0x4f9a83['get']({'plain':!![]});return _0x388014[_0x40f293('0x39')];});return db[_0x3d9f74('0x5')][_0x3d9f74('0x49')]({'where':{'id':_0x4cb103[_0x3d9f74('0x41')]['id']}})['then'](function(_0x413921){const _0x20039b=_0x3d9f74;return db[_0x20039b('0x58')][_0x20039b('0x1a')](function(_0x4d3dfa){const _0x87c774=_0x20039b;return _0x413921[_0x87c774('0x70')](_0x2aab14,{'transaction':_0x4d3dfa})[_0x87c774('0x4d')](function(){const _0x2ae2cf=_0x87c774;return Promise[_0x2ae2cf('0xf')](_0x96279a,function(_0x1536f4){const _0x10dfcc=_0x2ae2cf;return db['UserChatQueue'][_0x10dfcc('0x23')]({'where':{'UserId':_0x1536f4['id'],'ChatQueueId':_0x4cb103[_0x10dfcc('0x41')]['id']},'transaction':_0x4d3dfa});});})[_0x87c774('0x4d')](function(){_0x96279a['forEach'](function(_0x5a7ffb){const _0x4f67f8=a95_0x4d85;socket[_0x4f67f8('0x27')]('userChatQueue:save',{'UserId':_0x5a7ffb['id'],'ChatQueueId':_0x413921['id']});});});});});}})['then'](respondWithStatusCode(_0x50c7a0,null))[_0x18d58f('0x0')](handleError(_0x50c7a0,null));},exports[_0x259bfe('0x31')]=function(_0x8f2bed,_0x19febc){const _0x16080e=_0x259bfe;return db['Team']['findAll']({'where':{'id':_0x8f2bed[_0x16080e('0x64')][_0x16080e('0x4e')]},'attributes':['id'],'include':[{'model':db[_0x16080e('0x50')],'as':_0x16080e('0x39'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x19febc,null))['then'](function(_0x30c81e){const _0x22f561=_0x16080e,_0x583ddf=_[_0x22f561('0x5d')](_0x30c81e,'id');let _0xebb769=[];const _0x25cfdb=[],_0x5bf95f=squel[_0x22f561('0x14')]();_0x5bf95f[_0x22f561('0x5c')](_0x22f561('0x34'))[_0x22f561('0x66')](_0x22f561('0x55'),'tq')[_0x22f561('0x68')]('user_has_teams','ut',_0x22f561('0x3a'))[_0x22f561('0x56')]('ChatQueueId\x20=\x20?',_0x8f2bed[_0x22f561('0x41')]['id']);for(let _0x4b4abd=0x0;_0x4b4abd<_0x30c81e[_0x22f561('0x2a')];_0x4b4abd+=0x1){const _0x57d59f=_0x30c81e[_0x4b4abd];for(let _0xbdb1c3=0x0;_0xbdb1c3<_0x57d59f['Agents'][_0x22f561('0x2a')];_0xbdb1c3+=0x1){const _0x2179a0=_0x57d59f[_0x22f561('0x39')][_0xbdb1c3],_0x291d58=_0x5bf95f[_0x22f561('0x4b')]();_0x291d58[_0x22f561('0x56')]('ut.UserId\x20=\x20?',_0x2179a0['id']),_0x25cfdb[_0x22f561('0x30')](db[_0x22f561('0x58')][_0x22f561('0x64')](_0x291d58['toString'](),{'type':QueryTypes[_0x22f561('0x44')]})[_0x22f561('0x4d')](function(_0x5cfa62){const _0x4d17db=_0x22f561;if(_0x5cfa62[_0x4d17db('0x2a')]===0x1)return _0x2179a0['id'];else{const _0x42b614=_[_0x4d17db('0x3d')](_['map'](_0x5cfa62,_0x4d17db('0x52')),function(_0x2e0b37){const _0x1fc22b=_0x4d17db;return _[_0x1fc22b('0x1b')](_0x583ddf,_0x2e0b37);});if(_0x42b614)return _0x2179a0['id'];}}));}}return Promise[_0x22f561('0x1d')](_0x25cfdb)[_0x22f561('0x4d')](function(_0x54dc7d){const _0x88bd33=_0x22f561;return _0xebb769=_(_0xebb769)[_0x88bd33('0x6b')](_0x54dc7d)[_0x88bd33('0x72')]()[_0x88bd33('0x6a')](),db[_0x88bd33('0x5')][_0x88bd33('0x49')]({'where':{'id':_0x8f2bed[_0x88bd33('0x41')]['id']}})[_0x88bd33('0x4d')](function(_0x199bf6){const _0x2ec91b=_0x88bd33;return db['sequelize'][_0x2ec91b('0x1a')](function(_0x4d60d3){const _0x45ca30=_0x2ec91b;return _0x199bf6[_0x45ca30('0x31')](_0x8f2bed['query'][_0x45ca30('0x4e')],{'transaction':_0x4d60d3})[_0x45ca30('0x4d')](function(){const _0x5d5f75=_0x45ca30;if(!_[_0x5d5f75('0x3b')](_0xebb769))return _0x199bf6[_0x5d5f75('0x69')](_0xebb769,{'transaction':_0x4d60d3});})[_0x45ca30('0x4d')](function(){const _0x512532=_0x45ca30;_0xebb769[_0x512532('0x25')](function(_0x563bc0){const _0x1aba3d=_0x512532;socket[_0x1aba3d('0x27')]('userChatQueue:remove',{'UserId':_0x563bc0,'ChatQueueId':_0x199bf6['id']});});});});});});})[_0x16080e('0x4d')](respondWithStatusCode(_0x19febc,null))[_0x16080e('0x0')](handleError(_0x19febc,null));},exports[_0x259bfe('0x1c')]=function(_0x4cfeeb,_0x33a012){const _0x1c3a19=_0x259bfe;return db['ChatQueue']['findOne']({'where':{'id':_0x4cfeeb[_0x1c3a19('0x41')]['id']}})['then'](function(_0x2bb455){const _0x397f85=_0x1c3a19;if(_0x2bb455)return _0x2bb455[_0x397f85('0x1c')](_0x4cfeeb[_0x397f85('0x6f')][_0x397f85('0x4e')],{'through':_[_0x397f85('0x40')](_0x4cfeeb[_0x397f85('0x6f')],[_0x397f85('0x4e'),'id'])})[_0x397f85('0x4d')](function(_0x38bf29){const _0x3cb015=_0x397f85;for(let _0x2661d6=0x0;_0x2661d6<_0x4cfeeb[_0x3cb015('0x6f')]['ids']['length'];_0x2661d6+=0x1){socket[_0x3cb015('0x27')]('userChatQueue:save',{'UserId':_0x4cfeeb[_0x3cb015('0x6f')][_0x3cb015('0x4e')][_0x2661d6],'ChatQueueId':_0x4cfeeb[_0x3cb015('0x41')]['id']});}return _0x38bf29;});})[_0x1c3a19('0x4d')](respondWithResult(_0x33a012,null))[_0x1c3a19('0x0')](handleError(_0x33a012,null));},exports['removeAgents']=function(_0x566ec1,_0x3ecf01){const _0x72524d=_0x259bfe;return db['ChatQueue'][_0x72524d('0x49')]({'where':{'id':_0x566ec1[_0x72524d('0x41')]['id']}})['then'](handleEntityNotFound(_0x3ecf01,null))[_0x72524d('0x4d')](function(_0x230478){const _0x1b765e=_0x72524d;if(_0x230478)return _0x230478[_0x1b765e('0x69')](_0x566ec1['query'][_0x1b765e('0x4e')])[_0x1b765e('0x4d')](function(){const _0xf84e18=_0x1b765e;if(_['isArray'](_0x566ec1[_0xf84e18('0x64')]['ids']))for(let _0x23ed0e=0x0;_0x23ed0e<_0x566ec1[_0xf84e18('0x64')][_0xf84e18('0x4e')][_0xf84e18('0x2a')];_0x23ed0e+=0x1){socket[_0xf84e18('0x27')]('userChatQueue:remove',{'UserId':Number(_0x566ec1[_0xf84e18('0x64')][_0xf84e18('0x4e')][_0x23ed0e]),'ChatQueueId':Number(_0x566ec1[_0xf84e18('0x41')]['id'])});}else socket[_0xf84e18('0x27')](_0xf84e18('0x2d'),{'UserId':Number(_0x566ec1[_0xf84e18('0x64')][_0xf84e18('0x4e')]),'ChatQueueId':Number(_0x566ec1[_0xf84e18('0x41')]['id'])});});})['then'](respondWithStatusCode(_0x3ecf01,null))['catch'](handleError(_0x3ecf01,null));},exports['getAgents']=function(_0x44c51e,_0x301740){const _0x3f95d8=_0x259bfe;let _0x3df6c3={};const _0x3224b1={};let _0x43ae68,_0xbbf2f2;return db[_0x3f95d8('0x5')][_0x3f95d8('0x49')]({'where':{'id':_0x44c51e[_0x3f95d8('0x41')]['id']}})[_0x3f95d8('0x4d')](handleEntityNotFound(_0x301740,null))[_0x3f95d8('0x4d')](function(_0x26d20a){const _0x4dfac9=_0x3f95d8;if(_0x26d20a)return _0x43ae68=_0x26d20a,_0x3224b1['model']=_[_0x4dfac9('0x1')](db[_0x4dfac9('0x50')]['rawAttributes']),_0x3224b1[_0x4dfac9('0x64')]=_['keys'](_0x44c51e[_0x4dfac9('0x64')]),_0x3224b1[_0x4dfac9('0x67')]=_[_0x4dfac9('0x12')](_0x3224b1[_0x4dfac9('0x3e')],_0x3224b1[_0x4dfac9('0x64')]),_0x3df6c3[_0x4dfac9('0x6')]=_['intersection'](_0x3224b1[_0x4dfac9('0x3e')],qs['fields'](_0x44c51e[_0x4dfac9('0x64')][_0x4dfac9('0xd')])),_0x3df6c3[_0x4dfac9('0x6')]=_0x3df6c3['attributes'][_0x4dfac9('0x2a')]?_0x3df6c3[_0x4dfac9('0x6')]:_0x3224b1[_0x4dfac9('0x3e')],_0x3df6c3[_0x4dfac9('0x15')]=qs['sort'](_0x44c51e[_0x4dfac9('0x64')]['sort']),_0x3df6c3[_0x4dfac9('0x56')]=qs[_0x4dfac9('0x67')](_[_0x4dfac9('0x4f')](_0x44c51e[_0x4dfac9('0x64')],_0x3224b1['filters'])),_0x44c51e[_0x4dfac9('0x64')][_0x4dfac9('0x6d')]&&(_0x3df6c3[_0x4dfac9('0x56')]=_[_0x4dfac9('0x2f')](_0x3df6c3[_0x4dfac9('0x56')],{[Op['or']]:_['map'](_0x3df6c3[_0x4dfac9('0x6')],function(_0x53c135){const _0x40211a=_0x4dfac9,_0x49bd89={};return _0x49bd89[_0x53c135]={[Op['like']]:'%'+_0x44c51e[_0x40211a('0x64')][_0x40211a('0x6d')]+'%'},_0x49bd89;})})),_0x3df6c3=_['merge']({},_0x3df6c3,_0x44c51e['options']),_0x43ae68['getAgents'](_0x3df6c3);})['then'](function(_0x392e20){const _0x2a227d=_0x3f95d8;if(_0x392e20)return _0xbbf2f2=_0x392e20[_0x2a227d('0x2a')],typeof _0x44c51e['query'][_0x2a227d('0xb')]===_0x2a227d('0x38')&&(_0x3df6c3[_0x2a227d('0x59')]=qs[_0x2a227d('0x59')](_0x44c51e[_0x2a227d('0x64')][_0x2a227d('0x59')]),_0x3df6c3[_0x2a227d('0x32')]=qs[_0x2a227d('0x32')](_0x44c51e[_0x2a227d('0x64')][_0x2a227d('0x32')])),_0x43ae68[_0x2a227d('0x5b')](_0x3df6c3);})[_0x3f95d8('0x4d')](function(_0x32e0d7){if(_0x32e0d7)return _0x32e0d7?{'count':_0xbbf2f2,'rows':_0x32e0d7}:null;})[_0x3f95d8('0x4d')](respondWithResult(_0x301740,null))[_0x3f95d8('0x0')](handleError(_0x301740,null));}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.events.js b/server/api/chatQueue/chatQueue.events.js index 95c4eb2..3f15471 100644 --- a/server/api/chatQueue/chatQueue.events.js +++ b/server/api/chatQueue/chatQueue.events.js @@ -1 +1 @@ -const a96_0x1df0=['setMaxListeners','emit','exports','events','undefined','../../mysqldb','update','addHook','remove'];(function(_0x59d16b,_0x1df02e){const _0x465aff=function(_0x52d321){while(--_0x52d321){_0x59d16b['push'](_0x59d16b['shift']());}};_0x465aff(++_0x1df02e);}(a96_0x1df0,0x150));const a96_0x465a=function(_0x59d16b,_0x1df02e){_0x59d16b=_0x59d16b-0x0;let _0x465aff=a96_0x1df0[_0x59d16b];return _0x465aff;};const _0x563f17=a96_0x465a;'use strict';const EventEmitter=require(_0x563f17('0x0')),ChatQueue=require(_0x563f17('0x2'))['db']['ChatQueue'],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x563f17('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':_0x563f17('0x3'),'afterDestroy':_0x563f17('0x5')};function emitEvent(_0x52d321){return function(_0x27d435){const _0xbfc86f=a96_0x465a;ChatQueueEvents[_0xbfc86f('0x7')](_0x52d321+':'+_0x27d435['id'],_0x27d435),ChatQueueEvents[_0xbfc86f('0x7')](_0x52d321,_0x27d435);};}for(const e in events){if(typeof events[e]!==_0x563f17('0x1')){const event=events[e];ChatQueue[_0x563f17('0x4')](e,emitEvent(event));}}module[_0x563f17('0x8')]=ChatQueueEvents; \ No newline at end of file +const a96_0x5669=['setMaxListeners','exports','emit','ChatQueue','remove','save','update','undefined'];(function(_0x1fee47,_0x56699a){const _0x407b77=function(_0x13b823){while(--_0x13b823){_0x1fee47['push'](_0x1fee47['shift']());}};_0x407b77(++_0x56699a);}(a96_0x5669,0x133));const a96_0x407b=function(_0x1fee47,_0x56699a){_0x1fee47=_0x1fee47-0x0;let _0x407b77=a96_0x5669[_0x1fee47];return _0x407b77;};const _0x3fea79=a96_0x407b;'use strict';const EventEmitter=require('events'),ChatQueue=require('../../mysqldb')['db'][_0x3fea79('0x0')],ChatQueueEvents=new EventEmitter();ChatQueueEvents[_0x3fea79('0x5')](0x0);const events={'afterCreate':_0x3fea79('0x2'),'afterUpdate':_0x3fea79('0x3'),'afterDestroy':_0x3fea79('0x1')};function emitEvent(_0x13b823){return function(_0x248058){const _0x2110a4=a96_0x407b;ChatQueueEvents[_0x2110a4('0x7')](_0x13b823+':'+_0x248058['id'],_0x248058),ChatQueueEvents[_0x2110a4('0x7')](_0x13b823,_0x248058);};}for(const e in events){if(typeof events[e]!==_0x3fea79('0x4')){const event=events[e];ChatQueue['addHook'](e,emitEvent(event));}}module[_0x3fea79('0x6')]=ChatQueueEvents; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.model.js b/server/api/chatQueue/chatQueue.model.js index d97965c..7dfd56b 100644 --- a/server/api/chatQueue/chatQueue.model.js +++ b/server/api/chatQueue/chatQueue.model.js @@ -1 +1 @@ -const a97_0x1bc0=['define','ChatQueue','exports'];(function(_0x4d7538,_0x1bc043){const _0x4be06e=function(_0x4046f3){while(--_0x4046f3){_0x4d7538['push'](_0x4d7538['shift']());}};_0x4be06e(++_0x1bc043);}(a97_0x1bc0,0x1e6));const a97_0x4be0=function(_0x4d7538,_0x1bc043){_0x4d7538=_0x4d7538-0x0;let _0x4be06e=a97_0x1bc0[_0x4d7538];return _0x4be06e;};const _0x2bce97=a97_0x4be0;'use strict';const attributes=require('./chatQueue.attributes');module[_0x2bce97('0x2')]=function(_0x4046f3){const _0x415e8b=_0x2bce97,_0x1b555e=_0x4046f3[_0x415e8b('0x0')](_0x415e8b('0x1'),attributes,{'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1b555e;}; \ No newline at end of file +const a97_0x4cf4=['exports','ChatQueue'];(function(_0x148271,_0x4cf45c){const _0x2c1e88=function(_0x1db0dd){while(--_0x1db0dd){_0x148271['push'](_0x148271['shift']());}};_0x2c1e88(++_0x4cf45c);}(a97_0x4cf4,0x1c2));const a97_0x2c1e=function(_0x148271,_0x4cf45c){_0x148271=_0x148271-0x0;let _0x2c1e88=a97_0x4cf4[_0x148271];return _0x2c1e88;};const _0x4d3476=a97_0x2c1e;'use strict';const attributes=require('./chatQueue.attributes');module[_0x4d3476('0x0')]=function(_0x1db0dd){const _0x2e05ff=_0x4d3476,_0x1d9e51=_0x1db0dd['define'](_0x2e05ff('0x1'),attributes,{'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d9e51;}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.rpc.js b/server/api/chatQueue/chatQueue.rpc.js index 055d3c8..bda2744 100644 --- a/server/api/chatQueue/chatQueue.rpc.js +++ b/server/api/chatQueue/chatQueue.rpc.js @@ -1 +1 @@ -const a98_0x591e=['map','stringify','info','catch','GetChatQueue','findAll','ShowChatQueue','where','../../mysqldb','error','rpc','ChatQueue','attributes','findOne','message','then','options','model','../../rediscache','include','raw'];(function(_0x17e0ff,_0x591ebe){const _0x505540=function(_0x58e33d){while(--_0x58e33d){_0x17e0ff['push'](_0x17e0ff['shift']());}};_0x505540(++_0x591ebe);}(a98_0x591e,0x1f0));const a98_0x5055=function(_0x17e0ff,_0x591ebe){_0x17e0ff=_0x17e0ff-0x0;let _0x505540=a98_0x591e[_0x17e0ff];return _0x505540;};const _0x23418e=a98_0x5055;'use strict';const _=require('lodash'),db=require(_0x23418e('0x10'))['db'],logger=require('../../config/logger')(_0x23418e('0x12')),{getSocket}=require(_0x23418e('0x5')),socket=getSocket();require('./chatQueue.socket')['register'](socket),exports[_0x23418e('0xc')]=function(_0x58e33d){const _0x19db40=this;return new Promise(function(_0x3f59d8,_0x56f7b6){const _0x489faa=a98_0x5055;return db[_0x489faa('0x13')][_0x489faa('0xd')]({'raw':_0x58e33d[_0x489faa('0x3')]?_0x58e33d[_0x489faa('0x3')][_0x489faa('0x7')]===undefined?!![]:![]:!![],'where':_0x58e33d[_0x489faa('0x3')]?_0x58e33d['options']['where']||null:null,'attributes':_0x58e33d[_0x489faa('0x3')]?_0x58e33d['options']['attributes']||null:null,'limit':_0x58e33d['options']?_0x58e33d[_0x489faa('0x3')]['limit']||null:null,'include':_0x58e33d[_0x489faa('0x3')]?_0x58e33d[_0x489faa('0x3')]['include']?_['map'](_0x58e33d['options'][_0x489faa('0x6')],function(_0x2878a2){const _0x1b3d32=_0x489faa;return{'model':db[_0x2878a2['model']],'as':_0x2878a2['as'],'attributes':_0x2878a2[_0x1b3d32('0x14')],'include':_0x2878a2[_0x1b3d32('0x6')]?_[_0x1b3d32('0x8')](_0x2878a2[_0x1b3d32('0x6')],function(_0x28a313){const _0x2694c8=_0x1b3d32;return{'model':db[_0x28a313['model']],'as':_0x28a313['as'],'attributes':_0x28a313[_0x2694c8('0x14')],'include':_0x28a313[_0x2694c8('0x6')]?_[_0x2694c8('0x8')](_0x28a313['include'],function(_0x36e905){const _0x11dbba=_0x2694c8;return{'model':db[_0x36e905['model']],'as':_0x36e905['as'],'attributes':_0x36e905[_0x11dbba('0x14')]};}):[]};}):[]};}):[]:[]})[_0x489faa('0x2')](function(_0x2b85c0){const _0x3f8ea3=_0x489faa;logger[_0x3f8ea3('0xa')](_0x3f8ea3('0xc'),_0x58e33d),logger['debug'](_0x3f8ea3('0xc'),_0x58e33d,JSON['stringify'](_0x2b85c0)),_0x3f59d8(_0x2b85c0);})[_0x489faa('0xb')](function(_0x4367b8){const _0x57a4ae=_0x489faa;logger['error']('GetChatQueue',_0x4367b8[_0x57a4ae('0x1')],_0x58e33d),_0x56f7b6(_0x19db40[_0x57a4ae('0x11')](0x1f4,_0x4367b8['message']));});});},exports['ShowChatQueue']=function(_0x5a7fff){const _0x1078e8=this;return new Promise(function(_0x3581f3,_0x321d8a){const _0x50f463=a98_0x5055;return db[_0x50f463('0x13')][_0x50f463('0x0')]({'raw':_0x5a7fff[_0x50f463('0x3')]?_0x5a7fff[_0x50f463('0x3')][_0x50f463('0x7')]===undefined?!![]:![]:!![],'where':_0x5a7fff['options']?_0x5a7fff['options'][_0x50f463('0xf')]||null:null,'attributes':_0x5a7fff[_0x50f463('0x3')]?_0x5a7fff[_0x50f463('0x3')][_0x50f463('0x14')]||null:null,'include':_0x5a7fff['options']?_0x5a7fff[_0x50f463('0x3')][_0x50f463('0x6')]?_['map'](_0x5a7fff['options'][_0x50f463('0x6')],function(_0x40aa9d){const _0x373b7d=_0x50f463;return{'model':db[_0x40aa9d['model']],'as':_0x40aa9d['as'],'attributes':_0x40aa9d['attributes'],'include':_0x40aa9d[_0x373b7d('0x6')]?_[_0x373b7d('0x8')](_0x40aa9d[_0x373b7d('0x6')],function(_0x515ec0){const _0x637350=_0x373b7d;return{'model':db[_0x515ec0[_0x637350('0x4')]],'as':_0x515ec0['as'],'attributes':_0x515ec0['attributes'],'include':_0x515ec0[_0x637350('0x6')]?_[_0x637350('0x8')](_0x515ec0[_0x637350('0x6')],function(_0xbc0d6f){const _0x2e3c6b=_0x637350;return{'model':db[_0xbc0d6f[_0x2e3c6b('0x4')]],'as':_0xbc0d6f['as'],'attributes':_0xbc0d6f[_0x2e3c6b('0x14')]};}):[]};}):[]};}):[]:[]})[_0x50f463('0x2')](function(_0x2ea674){const _0x5d2ea7=_0x50f463;logger['info']('ShowChatQueue',_0x5a7fff),logger['debug'](_0x5d2ea7('0xe'),_0x5a7fff,JSON[_0x5d2ea7('0x9')](_0x2ea674)),_0x3581f3(_0x2ea674);})['catch'](function(_0x21fc50){const _0x5a8387=_0x50f463;logger['error'](_0x5a8387('0xe'),_0x21fc50[_0x5a8387('0x1')],_0x5a7fff),_0x321d8a(_0x1078e8[_0x5a8387('0x11')](0x1f4,_0x21fc50['message']));});});}; \ No newline at end of file +const a98_0x55aa=['findOne','findAll','catch','ShowChatQueue','map','then','message','model','stringify','options','include','attributes','../../mysqldb','raw','limit','rpc','ChatQueue','../../rediscache','GetChatQueue','lodash','error','debug','info','../../config/logger','register'];(function(_0x33024e,_0x55aa8a){const _0x300fec=function(_0x2f928e){while(--_0x2f928e){_0x33024e['push'](_0x33024e['shift']());}};_0x300fec(++_0x55aa8a);}(a98_0x55aa,0xb4));const a98_0x300f=function(_0x33024e,_0x55aa8a){_0x33024e=_0x33024e-0x0;let _0x300fec=a98_0x55aa[_0x33024e];return _0x300fec;};const _0x5c5ecd=a98_0x300f;'use strict';const _=require(_0x5c5ecd('0xe')),db=require(_0x5c5ecd('0x7'))['db'],logger=require(_0x5c5ecd('0x12'))(_0x5c5ecd('0xa')),{getSocket}=require(_0x5c5ecd('0xc')),socket=getSocket();require('./chatQueue.socket')[_0x5c5ecd('0x13')](socket),exports[_0x5c5ecd('0xd')]=function(_0x2f928e){const _0x2e8524=this;return new Promise(function(_0x2d2a6d,_0x506827){const _0x23ee6a=a98_0x300f;return db[_0x23ee6a('0xb')][_0x23ee6a('0x15')]({'raw':_0x2f928e[_0x23ee6a('0x4')]?_0x2f928e[_0x23ee6a('0x4')][_0x23ee6a('0x8')]===undefined?!![]:![]:!![],'where':_0x2f928e[_0x23ee6a('0x4')]?_0x2f928e[_0x23ee6a('0x4')]['where']||null:null,'attributes':_0x2f928e[_0x23ee6a('0x4')]?_0x2f928e['options'][_0x23ee6a('0x6')]||null:null,'limit':_0x2f928e[_0x23ee6a('0x4')]?_0x2f928e['options'][_0x23ee6a('0x9')]||null:null,'include':_0x2f928e[_0x23ee6a('0x4')]?_0x2f928e[_0x23ee6a('0x4')][_0x23ee6a('0x5')]?_['map'](_0x2f928e[_0x23ee6a('0x4')][_0x23ee6a('0x5')],function(_0x500e25){const _0x25df86=_0x23ee6a;return{'model':db[_0x500e25[_0x25df86('0x2')]],'as':_0x500e25['as'],'attributes':_0x500e25['attributes'],'include':_0x500e25[_0x25df86('0x5')]?_[_0x25df86('0x18')](_0x500e25[_0x25df86('0x5')],function(_0x1960a8){const _0x4f77ee=_0x25df86;return{'model':db[_0x1960a8[_0x4f77ee('0x2')]],'as':_0x1960a8['as'],'attributes':_0x1960a8[_0x4f77ee('0x6')],'include':_0x1960a8[_0x4f77ee('0x5')]?_['map'](_0x1960a8[_0x4f77ee('0x5')],function(_0x38a09f){const _0x6be389=_0x4f77ee;return{'model':db[_0x38a09f[_0x6be389('0x2')]],'as':_0x38a09f['as'],'attributes':_0x38a09f[_0x6be389('0x6')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1b8429){const _0x19a6f8=_0x23ee6a;logger[_0x19a6f8('0x11')](_0x19a6f8('0xd'),_0x2f928e),logger[_0x19a6f8('0x10')]('GetChatQueue',_0x2f928e,JSON[_0x19a6f8('0x3')](_0x1b8429)),_0x2d2a6d(_0x1b8429);})[_0x23ee6a('0x16')](function(_0xc3740){const _0x6991d4=_0x23ee6a;logger[_0x6991d4('0xf')](_0x6991d4('0xd'),_0xc3740[_0x6991d4('0x1')],_0x2f928e),_0x506827(_0x2e8524['error'](0x1f4,_0xc3740['message']));});});},exports['ShowChatQueue']=function(_0x3bb20e){const _0x3fdf0d=this;return new Promise(function(_0x3a4a27,_0x4ab09d){const _0x596e51=a98_0x300f;return db[_0x596e51('0xb')][_0x596e51('0x14')]({'raw':_0x3bb20e[_0x596e51('0x4')]?_0x3bb20e[_0x596e51('0x4')][_0x596e51('0x8')]===undefined?!![]:![]:!![],'where':_0x3bb20e[_0x596e51('0x4')]?_0x3bb20e[_0x596e51('0x4')]['where']||null:null,'attributes':_0x3bb20e[_0x596e51('0x4')]?_0x3bb20e[_0x596e51('0x4')][_0x596e51('0x6')]||null:null,'include':_0x3bb20e[_0x596e51('0x4')]?_0x3bb20e['options'][_0x596e51('0x5')]?_['map'](_0x3bb20e[_0x596e51('0x4')][_0x596e51('0x5')],function(_0x43bcfe){const _0x3862e2=_0x596e51;return{'model':db[_0x43bcfe['model']],'as':_0x43bcfe['as'],'attributes':_0x43bcfe[_0x3862e2('0x6')],'include':_0x43bcfe[_0x3862e2('0x5')]?_[_0x3862e2('0x18')](_0x43bcfe[_0x3862e2('0x5')],function(_0x7d370c){const _0x56a4b4=_0x3862e2;return{'model':db[_0x7d370c['model']],'as':_0x7d370c['as'],'attributes':_0x7d370c[_0x56a4b4('0x6')],'include':_0x7d370c['include']?_['map'](_0x7d370c[_0x56a4b4('0x5')],function(_0x5854ab){const _0x53432e=_0x56a4b4;return{'model':db[_0x5854ab['model']],'as':_0x5854ab['as'],'attributes':_0x5854ab[_0x53432e('0x6')]};}):[]};}):[]};}):[]:[]})[_0x596e51('0x0')](function(_0x58696f){const _0x56e1d0=_0x596e51;logger[_0x56e1d0('0x11')](_0x56e1d0('0x17'),_0x3bb20e),logger['debug']('ShowChatQueue',_0x3bb20e,JSON[_0x56e1d0('0x3')](_0x58696f)),_0x3a4a27(_0x58696f);})[_0x596e51('0x16')](function(_0x2d0f8c){const _0x1d30ce=_0x596e51;logger[_0x1d30ce('0xf')]('ShowChatQueue',_0x2d0f8c[_0x1d30ce('0x1')],_0x3bb20e),_0x4ab09d(_0x3fdf0d[_0x1d30ce('0xf')](0x1f4,_0x2d0f8c[_0x1d30ce('0x1')]));});});}; \ No newline at end of file diff --git a/server/api/chatQueue/chatQueue.socket.js b/server/api/chatQueue/chatQueue.socket.js index b7f4a01..eafa48d 100644 --- a/server/api/chatQueue/chatQueue.socket.js +++ b/server/api/chatQueue/chatQueue.socket.js @@ -1 +1 @@ -const a99_0x27cc=['chatQueue:','length','remove','register','emit','./chatQueue.events','update'];(function(_0x36a387,_0x27cc50){const _0x4af820=function(_0x277e3a){while(--_0x277e3a){_0x36a387['push'](_0x36a387['shift']());}};_0x4af820(++_0x27cc50);}(a99_0x27cc,0x109));const a99_0x4af8=function(_0x36a387,_0x27cc50){_0x36a387=_0x36a387-0x0;let _0x4af820=a99_0x27cc[_0x36a387];return _0x4af820;};const _0x16898f=a99_0x4af8;'use strict';const ChatQueueEvents=require(_0x16898f('0x6')),events=['save',_0x16898f('0x3'),_0x16898f('0x0')];function createListener(_0x277e3a,_0x47b6d3){return function(_0x293d7a){const _0x59798a=a99_0x4af8;_0x47b6d3[_0x59798a('0x5')](_0x277e3a,_0x293d7a);};}exports[_0x16898f('0x4')]=function(_0x17301c){const _0x83326b=_0x16898f;for(let _0x4401ae=0x0,_0x3b4783=events[_0x83326b('0x2')];_0x4401ae<_0x3b4783;_0x4401ae++){const _0x10ed53=events[_0x4401ae],_0x3e3325=createListener(_0x83326b('0x1')+_0x10ed53,_0x17301c);ChatQueueEvents['on'](_0x10ed53,_0x3e3325);}}; \ No newline at end of file +const a99_0x267f=['chatQueue:','remove','length','emit','register'];(function(_0xe988c5,_0x267f0d){const _0x4ab1ac=function(_0x5a86b6){while(--_0x5a86b6){_0xe988c5['push'](_0xe988c5['shift']());}};_0x4ab1ac(++_0x267f0d);}(a99_0x267f,0x152));const a99_0x4ab1=function(_0xe988c5,_0x267f0d){_0xe988c5=_0xe988c5-0x0;let _0x4ab1ac=a99_0x267f[_0xe988c5];return _0x4ab1ac;};const _0x8acd7=a99_0x4ab1;'use strict';const ChatQueueEvents=require('./chatQueue.events'),events=['save',_0x8acd7('0x3'),'update'];function createListener(_0x5a86b6,_0x15fa5a){return function(_0x41e307){const _0x5f0d70=a99_0x4ab1;_0x15fa5a[_0x5f0d70('0x0')](_0x5a86b6,_0x41e307);};}exports[_0x8acd7('0x1')]=function(_0x3564d0){const _0x3324cd=_0x8acd7;for(let _0x4aa372=0x0,_0x9501f7=events[_0x3324cd('0x4')];_0x4aa372<_0x9501f7;_0x4aa372++){const _0x1c47bc=events[_0x4aa372],_0x5e0b12=createListener(_0x3324cd('0x2')+_0x1c47bc,_0x3564d0);ChatQueueEvents['on'](_0x1c47bc,_0x5e0b12);}}; \ No newline at end of file diff --git a/server/api/chatQueue/index.js b/server/api/chatQueue/index.js index c5e4d8b..c3714c3 100644 --- a/server/api/chatQueue/index.js +++ b/server/api/chatQueue/index.js @@ -1 +1 @@ -const a100_0x38fd=['exports','/:id/users','/describe','describe','get','/:id','getAgents','/:id/members','delete','/:id/teams','update','../../components/auth/service','post','isAuthenticated','addAgents','create','removeAgents','express','show','getMembers','removeTeams','put'];(function(_0x224334,_0x38fdc6){const _0x5af3c7=function(_0x2bdbd2){while(--_0x2bdbd2){_0x224334['push'](_0x224334['shift']());}};_0x5af3c7(++_0x38fdc6);}(a100_0x38fd,0x10f));const a100_0x5af3=function(_0x224334,_0x38fdc6){_0x224334=_0x224334-0x0;let _0x5af3c7=a100_0x38fd[_0x224334];return _0x5af3c7;};const _0x46a4cb=a100_0x5af3;'use strict';const express=require(_0x46a4cb('0xa')),router=express['Router'](),auth=require(_0x46a4cb('0x4')),controller=require('./chatQueue.controller');router['get']('/',auth['isAuthenticated'](),controller['index']),router[_0x46a4cb('0x13')](_0x46a4cb('0x11'),auth[_0x46a4cb('0x6')](),controller[_0x46a4cb('0x12')]),router['get'](_0x46a4cb('0x14'),auth[_0x46a4cb('0x6')](),controller[_0x46a4cb('0xb')]),router[_0x46a4cb('0x13')](_0x46a4cb('0x0'),auth[_0x46a4cb('0x6')](),controller[_0x46a4cb('0xc')]),router[_0x46a4cb('0x13')](_0x46a4cb('0x2'),auth[_0x46a4cb('0x6')](),controller['getTeams']),router[_0x46a4cb('0x13')]('/:id/users',auth['isAuthenticated'](),controller[_0x46a4cb('0x15')]),router[_0x46a4cb('0x5')]('/',auth[_0x46a4cb('0x6')](),controller[_0x46a4cb('0x8')]),router[_0x46a4cb('0x5')]('/:id/teams',auth[_0x46a4cb('0x6')](),controller['addTeams']),router[_0x46a4cb('0x5')](_0x46a4cb('0x10'),auth[_0x46a4cb('0x6')](),controller[_0x46a4cb('0x7')]),router[_0x46a4cb('0xe')]('/:id',auth[_0x46a4cb('0x6')](),controller[_0x46a4cb('0x3')]),router[_0x46a4cb('0x1')](_0x46a4cb('0x14'),auth[_0x46a4cb('0x6')](),controller['destroy']),router[_0x46a4cb('0x1')](_0x46a4cb('0x2'),auth['isAuthenticated'](),controller[_0x46a4cb('0xd')]),router[_0x46a4cb('0x1')]('/:id/users',auth[_0x46a4cb('0x6')](),controller[_0x46a4cb('0x9')]),module[_0x46a4cb('0xf')]=router; \ No newline at end of file +const a100_0x4b83=['delete','getAgents','/:id/teams','/:id','Router','/:id/members','removeTeams','get','express','update','/:id/users','/describe','isAuthenticated','removeAgents','exports','destroy','create','addTeams','addAgents','describe','index','post','getTeams'];(function(_0x4de136,_0x4b83ff){const _0xcba249=function(_0x1894c6){while(--_0x1894c6){_0x4de136['push'](_0x4de136['shift']());}};_0xcba249(++_0x4b83ff);}(a100_0x4b83,0x13f));const a100_0xcba2=function(_0x4de136,_0x4b83ff){_0x4de136=_0x4de136-0x0;let _0xcba249=a100_0x4b83[_0x4de136];return _0xcba249;};const _0x2f43ac=a100_0xcba2;'use strict';const express=require(_0x2f43ac('0xb')),router=express[_0x2f43ac('0x7')](),auth=require('../../components/auth/service'),controller=require('./chatQueue.controller');router['get']('/',auth[_0x2f43ac('0xf')](),controller[_0x2f43ac('0x0')]),router[_0x2f43ac('0xa')](_0x2f43ac('0xe'),auth['isAuthenticated'](),controller[_0x2f43ac('0x16')]),router[_0x2f43ac('0xa')](_0x2f43ac('0x6'),auth[_0x2f43ac('0xf')](),controller['show']),router[_0x2f43ac('0xa')](_0x2f43ac('0x8'),auth['isAuthenticated'](),controller['getMembers']),router['get'](_0x2f43ac('0x5'),auth[_0x2f43ac('0xf')](),controller[_0x2f43ac('0x2')]),router[_0x2f43ac('0xa')](_0x2f43ac('0xd'),auth['isAuthenticated'](),controller[_0x2f43ac('0x4')]),router['post']('/',auth[_0x2f43ac('0xf')](),controller[_0x2f43ac('0x13')]),router[_0x2f43ac('0x1')](_0x2f43ac('0x5'),auth[_0x2f43ac('0xf')](),controller[_0x2f43ac('0x14')]),router[_0x2f43ac('0x1')]('/:id/users',auth[_0x2f43ac('0xf')](),controller[_0x2f43ac('0x15')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x2f43ac('0xc')]),router[_0x2f43ac('0x3')](_0x2f43ac('0x6'),auth[_0x2f43ac('0xf')](),controller[_0x2f43ac('0x12')]),router[_0x2f43ac('0x3')](_0x2f43ac('0x5'),auth[_0x2f43ac('0xf')](),controller[_0x2f43ac('0x9')]),router[_0x2f43ac('0x3')](_0x2f43ac('0xd'),auth['isAuthenticated'](),controller[_0x2f43ac('0x10')]),module[_0x2f43ac('0x11')]=router; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.attributes.js b/server/api/chatQueueReport/chatQueueReport.attributes.js index 2ed4e35..c488a61 100644 --- a/server/api/chatQueueReport/chatQueueReport.attributes.js +++ b/server/api/chatQueueReport/chatQueueReport.attributes.js @@ -1 +1 @@ -const a101_0x3dd2=['sequelize','exports','DATE','STRING'];(function(_0x1daebb,_0x3dd28e){const _0x259ce2=function(_0x2a5e29){while(--_0x2a5e29){_0x1daebb['push'](_0x1daebb['shift']());}};_0x259ce2(++_0x3dd28e);}(a101_0x3dd2,0xc2));const a101_0x259c=function(_0x1daebb,_0x3dd28e){_0x1daebb=_0x1daebb-0x0;let _0x259ce2=a101_0x3dd2[_0x1daebb];return _0x259ce2;};const _0x20d3cd=a101_0x259c;'use strict';const Sequelize=require(_0x20d3cd('0x2'));module[_0x20d3cd('0x3')]={'uniqueid':{'type':Sequelize[_0x20d3cd('0x1')],'allowNull':![]},'from':{'type':Sequelize[_0x20d3cd('0x1')]},'joinAt':{'type':Sequelize[_0x20d3cd('0x0')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x20d3cd('0x0')]},'exitAt':{'type':Sequelize[_0x20d3cd('0x0')]},'reason':{'type':Sequelize[_0x20d3cd('0x1')]}}; \ No newline at end of file +const a101_0x3411=['DATE','STRING'];(function(_0x353095,_0x3411a0){const _0x165c3f=function(_0x4880f1){while(--_0x4880f1){_0x353095['push'](_0x353095['shift']());}};_0x165c3f(++_0x3411a0);}(a101_0x3411,0x12b));const a101_0x165c=function(_0x353095,_0x3411a0){_0x353095=_0x353095-0x0;let _0x165c3f=a101_0x3411[_0x353095];return _0x165c3f;};const _0xc55e3=a101_0x165c;'use strict';const Sequelize=require('sequelize');module['exports']={'uniqueid':{'type':Sequelize[_0xc55e3('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0xc55e3('0x0')]},'joinAt':{'type':Sequelize[_0xc55e3('0x1')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0xc55e3('0x1')]},'exitAt':{'type':Sequelize[_0xc55e3('0x1')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.controller.js b/server/api/chatQueueReport/chatQueueReport.controller.js index 84928e3..72f6ad5 100644 --- a/server/api/chatQueueReport/chatQueueReport.controller.js +++ b/server/api/chatQueueReport/chatQueueReport.controller.js @@ -1 +1 @@ -const a102_0x232a=['count','VIRTUAL','Content-Range','api','offset','then','model','include','includeAll','type','where','set','findOne','merge','../../config/logger','limit','name','order','index','undefined','describe','../../components/parsers/qs','filter','intersection','body','rawAttributes','params','sendStatus','send','map','create','fields','filters','attributes','nolimit','length','rows','ChatQueueReport','destroy','sequelize','status','keys','catch','options','pick','json','findAll','query'];(function(_0x5e65c7,_0x232a88){const _0x39ce2c=function(_0x342d36){while(--_0x342d36){_0x5e65c7['push'](_0x5e65c7['shift']());}};_0x39ce2c(++_0x232a88);}(a102_0x232a,0x111));const a102_0x39ce=function(_0x5e65c7,_0x232a88){_0x5e65c7=_0x5e65c7-0x0;let _0x39ce2c=a102_0x232a[_0x5e65c7];return _0x39ce2c;};const _0x465b91=a102_0x39ce;'use strict';const _=require('lodash'),qs=require(_0x465b91('0x24')),logger=require(_0x465b91('0x1d'))(_0x465b91('0x12')),db=require('../../mysqldb')['db'],{Op}=require(_0x465b91('0x6'));function respondWithResult(_0x342d36,_0xf36abd){return _0xf36abd=_0xf36abd||0xc8,function(_0x1d175b){const _0xc84b9a=a102_0x39ce;if(_0x1d175b)return _0x342d36[_0xc84b9a('0x7')](_0xf36abd)[_0xc84b9a('0xc')](_0x1d175b);};}function respondWithFilteredResult(_0x509841,_0x1fc18e){return function(_0x17ef2b){const _0x32cd31=a102_0x39ce;if(_0x17ef2b){const _0x2a7506=_0x17ef2b[_0x32cd31('0xf')],_0x9ec922=_0x1fc18e[_0x32cd31('0x13')];let _0x4ad0af=_0x1fc18e[_0x32cd31('0x13')]+_0x1fc18e[_0x32cd31('0x1e')],_0x5164d2;return _0x4ad0af>=_0x2a7506?(_0x4ad0af=_0x2a7506,_0x5164d2=0xc8):_0x5164d2=0xce,_0x509841['status'](_0x5164d2),_0x509841[_0x32cd31('0x1a')](_0x32cd31('0x11'),_0x9ec922+'-'+_0x4ad0af+'/'+_0x2a7506)['json'](_0x17ef2b);}return null;};}function saveUpdates(_0x2205c0){return function(_0x185472){if(_0x185472)return _0x185472['update'](_0x2205c0)['then'](function(_0x3b1a75){return _0x3b1a75;});return null;};}function removeEntity(_0x1888da){return function(_0x4adb4d){const _0x1d7770=a102_0x39ce;if(_0x4adb4d)return _0x4adb4d[_0x1d7770('0x5')]()['then'](function(){const _0x23bce2=_0x1d7770;_0x1888da[_0x23bce2('0x7')](0xcc)['end']();});};}function handleEntityNotFound(_0x550c3d){return function(_0x54426f){const _0x2d2b9a=a102_0x39ce;return!_0x54426f&&_0x550c3d[_0x2d2b9a('0x2a')](0x194),_0x54426f;};}function handleError(_0x2b414b,_0x2af645){return _0x2af645=_0x2af645||0x1f4,function(_0x1a0f06){const _0x2b8aea=a102_0x39ce;logger['error'](_0x1a0f06['stack']),_0x1a0f06[_0x2b8aea('0x1f')]&&delete _0x1a0f06['name'],_0x2b414b[_0x2b8aea('0x7')](_0x2af645)[_0x2b8aea('0x2b')](_0x1a0f06);};}exports[_0x465b91('0x21')]=function(_0x1406f4,_0x537a92){const _0x4f1f04=_0x465b91;let _0x4d9c21={};const _0x486c3f={},_0x2f1e59={'count':0x0,'rows':[]},_0x33c64a=_['map'](db[_0x4f1f04('0x4')][_0x4f1f04('0x28')],function(_0x41f1bf){const _0x466023=_0x4f1f04;return{'name':_0x41f1bf['fieldName'],'type':_0x41f1bf[_0x466023('0x18')]['key']};});_0x486c3f[_0x4f1f04('0x15')]=_[_0x4f1f04('0x2c')](_0x33c64a,'name'),_0x486c3f[_0x4f1f04('0xe')]=_[_0x4f1f04('0x8')](_0x1406f4[_0x4f1f04('0xe')]),_0x486c3f[_0x4f1f04('0x2f')]=_[_0x4f1f04('0x26')](_0x486c3f[_0x4f1f04('0x15')],_0x486c3f[_0x4f1f04('0xe')]),_0x4d9c21[_0x4f1f04('0x0')]=_[_0x4f1f04('0x26')](_0x486c3f['model'],qs[_0x4f1f04('0x2e')](_0x1406f4['query'][_0x4f1f04('0x2e')])),_0x4d9c21[_0x4f1f04('0x0')]=_0x4d9c21['attributes'][_0x4f1f04('0x2')]?_0x4d9c21[_0x4f1f04('0x0')]:_0x486c3f['model'];typeof _0x1406f4[_0x4f1f04('0xe')][_0x4f1f04('0x1')]===_0x4f1f04('0x22')&&(_0x4d9c21[_0x4f1f04('0x1e')]=qs[_0x4f1f04('0x1e')](_0x1406f4[_0x4f1f04('0xe')][_0x4f1f04('0x1e')]),_0x4d9c21['offset']=qs[_0x4f1f04('0x13')](_0x1406f4[_0x4f1f04('0xe')]['offset']));_0x4d9c21[_0x4f1f04('0x20')]=qs['sort'](_0x1406f4[_0x4f1f04('0xe')]['sort']),_0x4d9c21[_0x4f1f04('0x19')]=qs[_0x4f1f04('0x2f')](_[_0x4f1f04('0xb')](_0x1406f4[_0x4f1f04('0xe')],_0x486c3f['filters']),_0x33c64a);_0x1406f4[_0x4f1f04('0xe')][_0x4f1f04('0x25')]&&(_0x4d9c21[_0x4f1f04('0x19')]=_[_0x4f1f04('0x1c')](_0x4d9c21['where'],{[Op['or']]:_[_0x4f1f04('0x2c')](_0x33c64a,function(_0x4d6abd){const _0x1704c8=_0x4f1f04;if(_0x4d6abd[_0x1704c8('0x18')]!==_0x1704c8('0x10')){const _0x4d5705={};return _0x4d5705[_0x4d6abd[_0x1704c8('0x1f')]]={[Op['like']]:'%'+_0x1406f4[_0x1704c8('0xe')]['filter']+'%'},_0x4d5705;}})}));_0x4d9c21=_[_0x4f1f04('0x1c')]({},_0x4d9c21,_0x1406f4[_0x4f1f04('0xa')]);const _0xe12a91={'where':_0x4d9c21['where']};return db['ChatQueueReport']['count'](_0xe12a91)[_0x4f1f04('0x14')](function(_0x5d6145){const _0x5596a0=_0x4f1f04;return _0x2f1e59[_0x5596a0('0xf')]=_0x5d6145,_0x1406f4[_0x5596a0('0xe')][_0x5596a0('0x17')]&&(_0x4d9c21[_0x5596a0('0x16')]=[{'all':!![]}]),db[_0x5596a0('0x4')][_0x5596a0('0xd')](_0x4d9c21);})['then'](function(_0x220245){const _0x2c7e09=_0x4f1f04;return _0x2f1e59[_0x2c7e09('0x3')]=_0x220245,_0x2f1e59;})[_0x4f1f04('0x14')](respondWithFilteredResult(_0x537a92,_0x4d9c21))[_0x4f1f04('0x9')](handleError(_0x537a92,null));},exports['show']=function(_0x50b9f9,_0x1fe319){const _0x5e422a=_0x465b91;let _0xade5f3={'raw':!![],'where':{'id':_0x50b9f9[_0x5e422a('0x29')]['id']}};const _0xb8f196={};return _0xb8f196[_0x5e422a('0x15')]=_['keys'](db[_0x5e422a('0x4')][_0x5e422a('0x28')]),_0xb8f196[_0x5e422a('0xe')]=_['keys'](_0x50b9f9[_0x5e422a('0xe')]),_0xb8f196[_0x5e422a('0x2f')]=_['intersection'](_0xb8f196['model'],_0xb8f196[_0x5e422a('0xe')]),_0xade5f3[_0x5e422a('0x0')]=_[_0x5e422a('0x26')](_0xb8f196[_0x5e422a('0x15')],qs[_0x5e422a('0x2e')](_0x50b9f9[_0x5e422a('0xe')][_0x5e422a('0x2e')])),_0xade5f3[_0x5e422a('0x0')]=_0xade5f3[_0x5e422a('0x0')]['length']?_0xade5f3[_0x5e422a('0x0')]:_0xb8f196[_0x5e422a('0x15')],_0x50b9f9['query'][_0x5e422a('0x17')]&&(_0xade5f3[_0x5e422a('0x16')]=[{'all':!![]}]),_0xade5f3=_['merge']({},_0xade5f3,_0x50b9f9[_0x5e422a('0xa')]),db[_0x5e422a('0x4')][_0x5e422a('0x1b')](_0xade5f3)[_0x5e422a('0x14')](handleEntityNotFound(_0x1fe319,null))[_0x5e422a('0x14')](respondWithResult(_0x1fe319,null))[_0x5e422a('0x9')](handleError(_0x1fe319,null));},exports['create']=function(_0x32e932,_0x2a7465){const _0x73705b=_0x465b91;return db[_0x73705b('0x4')][_0x73705b('0x2d')](_0x32e932[_0x73705b('0x27')],{})[_0x73705b('0x14')](respondWithResult(_0x2a7465,0xc9))[_0x73705b('0x9')](handleError(_0x2a7465,null));},exports['update']=function(_0x236172,_0x44d8bf){const _0x27be37=_0x465b91;return _0x236172[_0x27be37('0x27')]['id']&&delete _0x236172[_0x27be37('0x27')]['id'],db[_0x27be37('0x4')][_0x27be37('0x1b')]({'where':{'id':_0x236172['params']['id']}})[_0x27be37('0x14')](handleEntityNotFound(_0x44d8bf,null))[_0x27be37('0x14')](saveUpdates(_0x236172[_0x27be37('0x27')],null))['then'](respondWithResult(_0x44d8bf,null))[_0x27be37('0x9')](handleError(_0x44d8bf,null));},exports[_0x465b91('0x5')]=function(_0x39ae91,_0x43c2b2){const _0x25030e=_0x465b91;return db[_0x25030e('0x4')][_0x25030e('0x1b')]({'where':{'id':_0x39ae91[_0x25030e('0x29')]['id']}})['then'](handleEntityNotFound(_0x43c2b2,null))[_0x25030e('0x14')](removeEntity(_0x43c2b2,null))[_0x25030e('0x9')](handleError(_0x43c2b2,null));},exports['describe']=function(_0x5b2e9b,_0x9271da){const _0x1e5ada=_0x465b91;return db[_0x1e5ada('0x4')][_0x1e5ada('0x23')]()[_0x1e5ada('0x14')](respondWithResult(_0x9271da,null))[_0x1e5ada('0x9')](handleError(_0x9271da,null));}; \ No newline at end of file +const a102_0x4787=['../../components/parsers/qs','model','Content-Range','fieldName','ChatQueueReport','filters','includeAll','catch','create','findOne','error','options','body','length','merge','sort','lodash','name','key','params','where','like','order','undefined','update','count','map','fields','../../config/logger','rawAttributes','include','then','nolimit','filter','stack','offset','destroy','keys','pick','query','describe','set','type','VIRTUAL','attributes','api','rows','intersection','json','status','index','limit'];(function(_0x38bd64,_0x478775){const _0x48831e=function(_0x481518){while(--_0x481518){_0x38bd64['push'](_0x38bd64['shift']());}};_0x48831e(++_0x478775);}(a102_0x4787,0x135));const a102_0x4883=function(_0x38bd64,_0x478775){_0x38bd64=_0x38bd64-0x0;let _0x48831e=a102_0x4787[_0x38bd64];return _0x48831e;};const _0x5dd12b=a102_0x4883;'use strict';const _=require(_0x5dd12b('0x13')),qs=require(_0x5dd12b('0x3')),logger=require(_0x5dd12b('0x1f'))(_0x5dd12b('0x30')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x481518,_0x393bd3){return _0x393bd3=_0x393bd3||0xc8,function(_0x3585d4){const _0x516ed2=a102_0x4883;if(_0x3585d4)return _0x481518[_0x516ed2('0x0')](_0x393bd3)['json'](_0x3585d4);};}function respondWithFilteredResult(_0x2078a3,_0x588c06){return function(_0x545036){const _0x663d3a=a102_0x4883;if(_0x545036){const _0x484e99=_0x545036['count'],_0x424693=_0x588c06[_0x663d3a('0x26')];let _0x14e1d0=_0x588c06[_0x663d3a('0x26')]+_0x588c06[_0x663d3a('0x2')],_0x6815aa;return _0x14e1d0>=_0x484e99?(_0x14e1d0=_0x484e99,_0x6815aa=0xc8):_0x6815aa=0xce,_0x2078a3[_0x663d3a('0x0')](_0x6815aa),_0x2078a3[_0x663d3a('0x2c')](_0x663d3a('0x5'),_0x424693+'-'+_0x14e1d0+'/'+_0x484e99)[_0x663d3a('0x33')](_0x545036);}return null;};}function saveUpdates(_0x254d1c){return function(_0x5f0351){const _0x41ef6f=a102_0x4883;if(_0x5f0351)return _0x5f0351[_0x41ef6f('0x1b')](_0x254d1c)[_0x41ef6f('0x22')](function(_0x563780){return _0x563780;});return null;};}function removeEntity(_0x4f744c){return function(_0x479e80){const _0x24ba91=a102_0x4883;if(_0x479e80)return _0x479e80[_0x24ba91('0x27')]()[_0x24ba91('0x22')](function(){const _0xbc9240=_0x24ba91;_0x4f744c[_0xbc9240('0x0')](0xcc)['end']();});};}function handleEntityNotFound(_0x4e7797){return function(_0x5d3bdd){return!_0x5d3bdd&&_0x4e7797['sendStatus'](0x194),_0x5d3bdd;};}function handleError(_0x1909df,_0x210b7a){return _0x210b7a=_0x210b7a||0x1f4,function(_0xe73901){const _0x58d2a2=a102_0x4883;logger[_0x58d2a2('0xd')](_0xe73901[_0x58d2a2('0x25')]),_0xe73901['name']&&delete _0xe73901[_0x58d2a2('0x14')],_0x1909df[_0x58d2a2('0x0')](_0x210b7a)['send'](_0xe73901);};}exports[_0x5dd12b('0x1')]=function(_0x862da7,_0x23b257){const _0x295fb9=_0x5dd12b;let _0x476e96={};const _0x30ff6e={},_0x4dc029={'count':0x0,'rows':[]},_0xd0bd29=_[_0x295fb9('0x1d')](db[_0x295fb9('0x7')][_0x295fb9('0x20')],function(_0x4cac8c){const _0x5f5617=_0x295fb9;return{'name':_0x4cac8c[_0x5f5617('0x6')],'type':_0x4cac8c[_0x5f5617('0x2d')][_0x5f5617('0x15')]};});_0x30ff6e[_0x295fb9('0x4')]=_[_0x295fb9('0x1d')](_0xd0bd29,'name'),_0x30ff6e[_0x295fb9('0x2a')]=_[_0x295fb9('0x28')](_0x862da7[_0x295fb9('0x2a')]),_0x30ff6e[_0x295fb9('0x8')]=_[_0x295fb9('0x32')](_0x30ff6e[_0x295fb9('0x4')],_0x30ff6e['query']),_0x476e96[_0x295fb9('0x2f')]=_['intersection'](_0x30ff6e[_0x295fb9('0x4')],qs['fields'](_0x862da7['query'][_0x295fb9('0x1e')])),_0x476e96[_0x295fb9('0x2f')]=_0x476e96[_0x295fb9('0x2f')][_0x295fb9('0x10')]?_0x476e96['attributes']:_0x30ff6e[_0x295fb9('0x4')];typeof _0x862da7[_0x295fb9('0x2a')][_0x295fb9('0x23')]===_0x295fb9('0x1a')&&(_0x476e96['limit']=qs[_0x295fb9('0x2')](_0x862da7['query']['limit']),_0x476e96['offset']=qs['offset'](_0x862da7[_0x295fb9('0x2a')][_0x295fb9('0x26')]));_0x476e96[_0x295fb9('0x19')]=qs[_0x295fb9('0x12')](_0x862da7[_0x295fb9('0x2a')][_0x295fb9('0x12')]),_0x476e96['where']=qs[_0x295fb9('0x8')](_[_0x295fb9('0x29')](_0x862da7[_0x295fb9('0x2a')],_0x30ff6e[_0x295fb9('0x8')]),_0xd0bd29);_0x862da7[_0x295fb9('0x2a')][_0x295fb9('0x24')]&&(_0x476e96['where']=_[_0x295fb9('0x11')](_0x476e96[_0x295fb9('0x17')],{[Op['or']]:_[_0x295fb9('0x1d')](_0xd0bd29,function(_0x33bf01){const _0x3a5e9d=_0x295fb9;if(_0x33bf01[_0x3a5e9d('0x2d')]!==_0x3a5e9d('0x2e')){const _0x41fac4={};return _0x41fac4[_0x33bf01[_0x3a5e9d('0x14')]]={[Op[_0x3a5e9d('0x18')]]:'%'+_0x862da7[_0x3a5e9d('0x2a')][_0x3a5e9d('0x24')]+'%'},_0x41fac4;}})}));_0x476e96=_[_0x295fb9('0x11')]({},_0x476e96,_0x862da7[_0x295fb9('0xe')]);const _0x3e4af8={'where':_0x476e96[_0x295fb9('0x17')]};return db[_0x295fb9('0x7')][_0x295fb9('0x1c')](_0x3e4af8)['then'](function(_0x284677){const _0x1d4b87=_0x295fb9;return _0x4dc029[_0x1d4b87('0x1c')]=_0x284677,_0x862da7[_0x1d4b87('0x2a')][_0x1d4b87('0x9')]&&(_0x476e96[_0x1d4b87('0x21')]=[{'all':!![]}]),db[_0x1d4b87('0x7')]['findAll'](_0x476e96);})['then'](function(_0x448292){const _0x5c80e5=_0x295fb9;return _0x4dc029[_0x5c80e5('0x31')]=_0x448292,_0x4dc029;})[_0x295fb9('0x22')](respondWithFilteredResult(_0x23b257,_0x476e96))[_0x295fb9('0xa')](handleError(_0x23b257,null));},exports['show']=function(_0x1fbba8,_0x1439a3){const _0x472799=_0x5dd12b;let _0x1c1d92={'raw':!![],'where':{'id':_0x1fbba8[_0x472799('0x16')]['id']}};const _0x43841c={};return _0x43841c[_0x472799('0x4')]=_['keys'](db[_0x472799('0x7')][_0x472799('0x20')]),_0x43841c[_0x472799('0x2a')]=_[_0x472799('0x28')](_0x1fbba8[_0x472799('0x2a')]),_0x43841c['filters']=_[_0x472799('0x32')](_0x43841c[_0x472799('0x4')],_0x43841c[_0x472799('0x2a')]),_0x1c1d92[_0x472799('0x2f')]=_[_0x472799('0x32')](_0x43841c[_0x472799('0x4')],qs[_0x472799('0x1e')](_0x1fbba8[_0x472799('0x2a')][_0x472799('0x1e')])),_0x1c1d92[_0x472799('0x2f')]=_0x1c1d92[_0x472799('0x2f')][_0x472799('0x10')]?_0x1c1d92[_0x472799('0x2f')]:_0x43841c[_0x472799('0x4')],_0x1fbba8['query']['includeAll']&&(_0x1c1d92[_0x472799('0x21')]=[{'all':!![]}]),_0x1c1d92=_[_0x472799('0x11')]({},_0x1c1d92,_0x1fbba8['options']),db[_0x472799('0x7')][_0x472799('0xc')](_0x1c1d92)[_0x472799('0x22')](handleEntityNotFound(_0x1439a3,null))['then'](respondWithResult(_0x1439a3,null))[_0x472799('0xa')](handleError(_0x1439a3,null));},exports[_0x5dd12b('0xb')]=function(_0x5c6eb5,_0x217d5e){const _0x1411ac=_0x5dd12b;return db['ChatQueueReport'][_0x1411ac('0xb')](_0x5c6eb5[_0x1411ac('0xf')],{})[_0x1411ac('0x22')](respondWithResult(_0x217d5e,0xc9))[_0x1411ac('0xa')](handleError(_0x217d5e,null));},exports[_0x5dd12b('0x1b')]=function(_0x23623e,_0x2d66f5){const _0x2a4aaf=_0x5dd12b;return _0x23623e[_0x2a4aaf('0xf')]['id']&&delete _0x23623e[_0x2a4aaf('0xf')]['id'],db[_0x2a4aaf('0x7')][_0x2a4aaf('0xc')]({'where':{'id':_0x23623e[_0x2a4aaf('0x16')]['id']}})[_0x2a4aaf('0x22')](handleEntityNotFound(_0x2d66f5,null))['then'](saveUpdates(_0x23623e[_0x2a4aaf('0xf')],null))[_0x2a4aaf('0x22')](respondWithResult(_0x2d66f5,null))[_0x2a4aaf('0xa')](handleError(_0x2d66f5,null));},exports[_0x5dd12b('0x27')]=function(_0x4f7451,_0x1edeb7){const _0x383684=_0x5dd12b;return db[_0x383684('0x7')][_0x383684('0xc')]({'where':{'id':_0x4f7451[_0x383684('0x16')]['id']}})[_0x383684('0x22')](handleEntityNotFound(_0x1edeb7,null))[_0x383684('0x22')](removeEntity(_0x1edeb7,null))[_0x383684('0xa')](handleError(_0x1edeb7,null));},exports[_0x5dd12b('0x2b')]=function(_0x41ec1b,_0x230450){const _0xddb4d3=_0x5dd12b;return db[_0xddb4d3('0x7')][_0xddb4d3('0x2b')]()[_0xddb4d3('0x22')](respondWithResult(_0x230450,null))[_0xddb4d3('0xa')](handleError(_0x230450,null));}; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.model.js b/server/api/chatQueueReport/chatQueueReport.model.js index a10748c..8f3ecc4 100644 --- a/server/api/chatQueueReport/chatQueueReport.model.js +++ b/server/api/chatQueueReport/chatQueueReport.model.js @@ -1 +1 @@ -const a103_0x1c62=['ChatQueueReport','./chatQueueReport.attributes','exports','define','report_chat_queue'];(function(_0x5b5f98,_0x1c62af){const _0x478187=function(_0x39d9ee){while(--_0x39d9ee){_0x5b5f98['push'](_0x5b5f98['shift']());}};_0x478187(++_0x1c62af);}(a103_0x1c62,0x1cc));const a103_0x4781=function(_0x5b5f98,_0x1c62af){_0x5b5f98=_0x5b5f98-0x0;let _0x478187=a103_0x1c62[_0x5b5f98];return _0x478187;};const _0x42a850=a103_0x4781;'use strict';const attributes=require(_0x42a850('0x1'));module[_0x42a850('0x2')]=function(_0x39d9ee){const _0x18c73c=_0x42a850,_0x232c44=_0x39d9ee[_0x18c73c('0x3')](_0x18c73c('0x0'),attributes,{'tableName':_0x18c73c('0x4'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0x232c44;}; \ No newline at end of file +const a103_0x54a7=['ChatQueueReport','report_chat_queue','define','./chatQueueReport.attributes','uniqueid'];(function(_0x298c0b,_0x54a7cc){const _0x17e538=function(_0x1bf42a){while(--_0x1bf42a){_0x298c0b['push'](_0x298c0b['shift']());}};_0x17e538(++_0x54a7cc);}(a103_0x54a7,0x76));const a103_0x17e5=function(_0x298c0b,_0x54a7cc){_0x298c0b=_0x298c0b-0x0;let _0x17e538=a103_0x54a7[_0x298c0b];return _0x17e538;};const _0x4de87a=a103_0x17e5;'use strict';const attributes=require(_0x4de87a('0x0'));module['exports']=function(_0x1bf42a){const _0x1e1ff2=_0x4de87a,_0xb44d73=_0x1bf42a[_0x1e1ff2('0x4')](_0x1e1ff2('0x2'),attributes,{'tableName':_0x1e1ff2('0x3'),'paranoid':![],'indexes':[{'name':_0x1e1ff2('0x1'),'fields':[_0x1e1ff2('0x1')]}],'timestamps':!![]});return _0xb44d73;}; \ No newline at end of file diff --git a/server/api/chatQueueReport/chatQueueReport.rpc.js b/server/api/chatQueueReport/chatQueueReport.rpc.js index 6e5f9e1..fa5dfba 100644 --- a/server/api/chatQueueReport/chatQueueReport.rpc.js +++ b/server/api/chatQueueReport/chatQueueReport.rpc.js @@ -1 +1 @@ -const a104_0x1627=['ChatQueueReport','UpdateChatQueueReport','limit','../../config/logger','attributes','then','rpc','message','stringify','debug','error','update','where','../../mysqldb','raw','create','CreateChatQueueReport','catch','options','info','body'];(function(_0xc38427,_0x16276b){const _0x3efef6=function(_0x45fcca){while(--_0x45fcca){_0xc38427['push'](_0xc38427['shift']());}};_0x3efef6(++_0x16276b);}(a104_0x1627,0x14e));const a104_0x3efe=function(_0xc38427,_0x16276b){_0xc38427=_0xc38427-0x0;let _0x3efef6=a104_0x1627[_0xc38427];return _0x3efef6;};const _0x333dbc=a104_0x3efe;'use strict';const db=require(_0x333dbc('0xf'))['db'],logger=require(_0x333dbc('0x5'))(_0x333dbc('0x8'));exports[_0x333dbc('0x12')]=function(_0x45fcca){const _0x321129=this;return new Promise(function(_0x1eca9d,_0x4f4c01){const _0x2c43b2=a104_0x3efe;return db[_0x2c43b2('0x2')][_0x2c43b2('0x11')](_0x45fcca[_0x2c43b2('0x1')],{'raw':_0x45fcca[_0x2c43b2('0x14')]?_0x45fcca[_0x2c43b2('0x14')][_0x2c43b2('0x10')]===undefined?!![]:![]:!![]})[_0x2c43b2('0x7')](function(_0x48c32d){const _0x5c8f22=_0x2c43b2;logger[_0x5c8f22('0x0')](_0x5c8f22('0x12'),_0x45fcca),logger['debug'](_0x5c8f22('0x12'),_0x45fcca,JSON[_0x5c8f22('0xa')](_0x48c32d)),_0x1eca9d(_0x48c32d);})[_0x2c43b2('0x13')](function(_0x28d25){const _0x43564c=_0x2c43b2;logger[_0x43564c('0xc')]('CreateChatQueueReport',_0x28d25['message'],_0x45fcca),_0x4f4c01(_0x321129[_0x43564c('0xc')](0x1f4,_0x28d25['message']));});});},exports[_0x333dbc('0x3')]=function(_0x14c877){const _0x5887c0=this;return new Promise(function(_0xf5d31b,_0x3c9e39){const _0x8dd3c9=a104_0x3efe;return db['ChatQueueReport'][_0x8dd3c9('0xd')](_0x14c877['body'],{'raw':_0x14c877[_0x8dd3c9('0x14')]?_0x14c877[_0x8dd3c9('0x14')][_0x8dd3c9('0x10')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x14c877[_0x8dd3c9('0x14')]?_0x14c877['options'][_0x8dd3c9('0xe')]||null:null,'attributes':_0x14c877[_0x8dd3c9('0x14')]?_0x14c877[_0x8dd3c9('0x14')][_0x8dd3c9('0x6')]||null:null,'limit':_0x14c877[_0x8dd3c9('0x14')]?_0x14c877[_0x8dd3c9('0x14')][_0x8dd3c9('0x4')]||null:null})[_0x8dd3c9('0x7')](function(_0x574b21){const _0xb997b=_0x8dd3c9;logger[_0xb997b('0x0')]('UpdateChatQueueReport',_0x14c877),logger[_0xb997b('0xb')](_0xb997b('0x3'),_0x14c877,JSON['stringify'](_0x574b21)),_0xf5d31b(_0x574b21);})[_0x8dd3c9('0x13')](function(_0x190f53){const _0x5b3921=_0x8dd3c9;logger[_0x5b3921('0xc')](_0x5b3921('0x3'),_0x190f53[_0x5b3921('0x9')],_0x14c877),_0x3c9e39(_0x5887c0[_0x5b3921('0xc')](0x1f4,_0x190f53[_0x5b3921('0x9')]));});});}; \ No newline at end of file +const a104_0x2218=['rpc','CreateChatQueueReport','error','debug','message','options','body','info','update','catch','ChatQueueReport','where','raw','../../config/logger','then','../../mysqldb','stringify','limit','attributes','UpdateChatQueueReport'];(function(_0x36363e,_0x221894){const _0x47b392=function(_0x400146){while(--_0x400146){_0x36363e['push'](_0x36363e['shift']());}};_0x47b392(++_0x221894);}(a104_0x2218,0x1d0));const a104_0x47b3=function(_0x36363e,_0x221894){_0x36363e=_0x36363e-0x0;let _0x47b392=a104_0x2218[_0x36363e];return _0x47b392;};const _0x479ac2=a104_0x47b3;'use strict';const db=require(_0x479ac2('0xb'))['db'],logger=require(_0x479ac2('0x9'))(_0x479ac2('0x10'));exports[_0x479ac2('0x11')]=function(_0x400146){const _0x69c4e3=this;return new Promise(function(_0x5d2632,_0x187fa7){const _0xee3e77=a104_0x47b3;return db['ChatQueueReport']['create'](_0x400146[_0xee3e77('0x2')],{'raw':_0x400146['options']?_0x400146['options'][_0xee3e77('0x8')]===undefined?!![]:![]:!![]})[_0xee3e77('0xa')](function(_0x403a44){const _0x2f5057=_0xee3e77;logger['info'](_0x2f5057('0x11'),_0x400146),logger[_0x2f5057('0x13')](_0x2f5057('0x11'),_0x400146,JSON[_0x2f5057('0xc')](_0x403a44)),_0x5d2632(_0x403a44);})[_0xee3e77('0x5')](function(_0x5e04fc){const _0x175155=_0xee3e77;logger['error'](_0x175155('0x11'),_0x5e04fc[_0x175155('0x0')],_0x400146),_0x187fa7(_0x69c4e3['error'](0x1f4,_0x5e04fc[_0x175155('0x0')]));});});},exports[_0x479ac2('0xf')]=function(_0x3614c3){const _0x40cf63=this;return new Promise(function(_0x5a10a9,_0x4364aa){const _0x43ffe5=a104_0x47b3;return db[_0x43ffe5('0x6')][_0x43ffe5('0x4')](_0x3614c3[_0x43ffe5('0x2')],{'raw':_0x3614c3['options']?_0x3614c3[_0x43ffe5('0x1')][_0x43ffe5('0x8')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3614c3['options']?_0x3614c3[_0x43ffe5('0x1')][_0x43ffe5('0x7')]||null:null,'attributes':_0x3614c3[_0x43ffe5('0x1')]?_0x3614c3[_0x43ffe5('0x1')][_0x43ffe5('0xe')]||null:null,'limit':_0x3614c3[_0x43ffe5('0x1')]?_0x3614c3[_0x43ffe5('0x1')][_0x43ffe5('0xd')]||null:null})[_0x43ffe5('0xa')](function(_0x165d95){const _0x55a0aa=_0x43ffe5;logger[_0x55a0aa('0x3')](_0x55a0aa('0xf'),_0x3614c3),logger[_0x55a0aa('0x13')](_0x55a0aa('0xf'),_0x3614c3,JSON['stringify'](_0x165d95)),_0x5a10a9(_0x165d95);})['catch'](function(_0x205dc4){const _0x163730=_0x43ffe5;logger[_0x163730('0x12')]('UpdateChatQueueReport',_0x205dc4[_0x163730('0x0')],_0x3614c3),_0x4364aa(_0x40cf63[_0x163730('0x12')](0x1f4,_0x205dc4[_0x163730('0x0')]));});});}; \ No newline at end of file diff --git a/server/api/chatQueueReport/index.js b/server/api/chatQueueReport/index.js index 54e7dfd..ac4cf52 100644 --- a/server/api/chatQueueReport/index.js +++ b/server/api/chatQueueReport/index.js @@ -1 +1 @@ -const a105_0x2bbf=['get','Router','../../components/auth/service','isAuthenticated','/:id','express','post','update','show','index','destroy','exports'];(function(_0x1765dc,_0x2bbf99){const _0x4232be=function(_0x3af996){while(--_0x3af996){_0x1765dc['push'](_0x1765dc['shift']());}};_0x4232be(++_0x2bbf99);}(a105_0x2bbf,0xd6));const a105_0x4232=function(_0x1765dc,_0x2bbf99){_0x1765dc=_0x1765dc-0x0;let _0x4232be=a105_0x2bbf[_0x1765dc];return _0x4232be;};const _0x254751=a105_0x4232;'use strict';const express=require(_0x254751('0x7')),router=express[_0x254751('0x3')](),auth=require(_0x254751('0x4')),controller=require('./chatQueueReport.controller');router[_0x254751('0x2')]('/',auth[_0x254751('0x5')](),controller[_0x254751('0xb')]),router[_0x254751('0x2')]('/describe',auth[_0x254751('0x5')](),controller['describe']),router['get'](_0x254751('0x6'),auth[_0x254751('0x5')](),controller[_0x254751('0xa')]),router[_0x254751('0x8')]('/',auth['isAuthenticated'](),controller['create']),router['put'](_0x254751('0x6'),auth['isAuthenticated'](),controller[_0x254751('0x9')]),router['delete'](_0x254751('0x6'),auth['isAuthenticated'](),controller[_0x254751('0x0')]),module[_0x254751('0x1')]=router; \ No newline at end of file +const a105_0x2c5a=['./chatQueueReport.controller','exports','get','create','express','describe','Router','/:id','index','isAuthenticated','update','show','/describe','destroy','put','delete'];(function(_0x12b611,_0x2c5a9c){const _0x47d9fd=function(_0x11ac67){while(--_0x11ac67){_0x12b611['push'](_0x12b611['shift']());}};_0x47d9fd(++_0x2c5a9c);}(a105_0x2c5a,0x195));const a105_0x47d9=function(_0x12b611,_0x2c5a9c){_0x12b611=_0x12b611-0x0;let _0x47d9fd=a105_0x2c5a[_0x12b611];return _0x47d9fd;};const _0x1d5695=a105_0x47d9;'use strict';const express=require(_0x1d5695('0xf')),router=express[_0x1d5695('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x1d5695('0xb'));router[_0x1d5695('0xd')]('/',auth[_0x1d5695('0x4')](),controller[_0x1d5695('0x3')]),router[_0x1d5695('0xd')](_0x1d5695('0x7'),auth['isAuthenticated'](),controller[_0x1d5695('0x0')]),router[_0x1d5695('0xd')]('/:id',auth[_0x1d5695('0x4')](),controller[_0x1d5695('0x6')]),router['post']('/',auth[_0x1d5695('0x4')](),controller[_0x1d5695('0xe')]),router[_0x1d5695('0x9')](_0x1d5695('0x2'),auth[_0x1d5695('0x4')](),controller[_0x1d5695('0x5')]),router[_0x1d5695('0xa')]('/:id',auth[_0x1d5695('0x4')](),controller[_0x1d5695('0x8')]),module[_0x1d5695('0xc')]=router; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.attributes.js b/server/api/chatTransferReport/chatTransferReport.attributes.js index 76ad450..14bc142 100644 --- a/server/api/chatTransferReport/chatTransferReport.attributes.js +++ b/server/api/chatTransferReport/chatTransferReport.attributes.js @@ -1 +1 @@ -const a106_0x5013=['STRING','DATE','exports','account','NOW','sequelize','queue','agent'];(function(_0x454176,_0x5013b4){const _0x44852b=function(_0x39308f){while(--_0x39308f){_0x454176['push'](_0x454176['shift']());}};_0x44852b(++_0x5013b4);}(a106_0x5013,0x102));const a106_0x4485=function(_0x454176,_0x5013b4){_0x454176=_0x454176-0x0;let _0x44852b=a106_0x5013[_0x454176];return _0x44852b;};const _0x58b31d=a106_0x4485;'use strict';const Sequelize=require(_0x58b31d('0x3'));module[_0x58b31d('0x0')]={'uniqueid':{'type':Sequelize[_0x58b31d('0x6')],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x58b31d('0x1'),_0x58b31d('0x5'),'queue'),'allowNull':![],'defaultValue':_0x58b31d('0x4')},'transferredAt':{'type':Sequelize[_0x58b31d('0x7')],'allowNull':![],'defaultValue':Sequelize[_0x58b31d('0x2')]}}; \ No newline at end of file +const a106_0x5922=['account','DATE','exports','ENUM','STRING','queue','sequelize'];(function(_0x558044,_0x5922ee){const _0x2f2db0=function(_0x84d0c4){while(--_0x84d0c4){_0x558044['push'](_0x558044['shift']());}};_0x2f2db0(++_0x5922ee);}(a106_0x5922,0xcf));const a106_0x2f2d=function(_0x558044,_0x5922ee){_0x558044=_0x558044-0x0;let _0x2f2db0=a106_0x5922[_0x558044];return _0x2f2db0;};const _0x11b64b=a106_0x2f2d;'use strict';const Sequelize=require(_0x11b64b('0x2'));module[_0x11b64b('0x5')]={'uniqueid':{'type':Sequelize[_0x11b64b('0x0')],'allowNull':![]},'type':{'type':Sequelize[_0x11b64b('0x6')](_0x11b64b('0x3'),'agent',_0x11b64b('0x1')),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize[_0x11b64b('0x4')],'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 7514070..143f829 100644 --- a/server/api/chatTransferReport/chatTransferReport.controller.js +++ b/server/api/chatTransferReport/chatTransferReport.controller.js @@ -1 +1 @@ -const a107_0x20bf=['index','../../mysqldb','params','options','../../config/logger','catch','length','sort','attributes','query','map','json','include','send','lodash','describe','Content-Range','VIRTUAL','order','offset','merge','error','filters','then','type','nolimit','show','findAll','body','rawAttributes','model','fields','ChatTransferReport','stack','api','where','name','end','filter','includeAll','destroy','status','count','update','intersection','findOne','sequelize','limit','undefined'];(function(_0x23f87e,_0x20bfb0){const _0x20f221=function(_0x23c03a){while(--_0x23c03a){_0x23f87e['push'](_0x23f87e['shift']());}};_0x20f221(++_0x20bfb0);}(a107_0x20bf,0xd5));const a107_0x20f2=function(_0x23f87e,_0x20bfb0){_0x23f87e=_0x23f87e-0x0;let _0x20f221=a107_0x20bf[_0x23f87e];return _0x20f221;};const _0x4c5081=a107_0x20f2;'use strict';const _=require(_0x4c5081('0x2e')),qs=require('../../components/parsers/qs'),logger=require(_0x4c5081('0x24'))(_0x4c5081('0x11')),db=require(_0x4c5081('0x21'))['db'],{Op}=require(_0x4c5081('0x1d'));function respondWithResult(_0x23c03a,_0x584176){return _0x584176=_0x584176||0xc8,function(_0xc278a0){const _0x635ca9=a107_0x20f2;if(_0xc278a0)return _0x23c03a['status'](_0x584176)[_0x635ca9('0x2b')](_0xc278a0);};}function respondWithFilteredResult(_0x118bc0,_0x315e39){return function(_0x4cfb52){const _0x88f512=a107_0x20f2;if(_0x4cfb52){const _0x2279cf=_0x4cfb52[_0x88f512('0x19')],_0x2bb1a4=_0x315e39['offset'];let _0x176edb=_0x315e39[_0x88f512('0x2')]+_0x315e39['limit'],_0x5616ef;return _0x176edb>=_0x2279cf?(_0x176edb=_0x2279cf,_0x5616ef=0xc8):_0x5616ef=0xce,_0x118bc0[_0x88f512('0x18')](_0x5616ef),_0x118bc0['set'](_0x88f512('0x30'),_0x2bb1a4+'-'+_0x176edb+'/'+_0x2279cf)[_0x88f512('0x2b')](_0x4cfb52);}return null;};}function saveUpdates(_0x1ca0dd){return function(_0x2c1576){const _0x4ed15a=a107_0x20f2;if(_0x2c1576)return _0x2c1576[_0x4ed15a('0x1a')](_0x1ca0dd)[_0x4ed15a('0x6')](function(_0x498ebf){return _0x498ebf;});return null;};}function removeEntity(_0x3a12d7){return function(_0x170c09){const _0x149965=a107_0x20f2;if(_0x170c09)return _0x170c09[_0x149965('0x17')]()[_0x149965('0x6')](function(){const _0x15e909=_0x149965;_0x3a12d7[_0x15e909('0x18')](0xcc)[_0x15e909('0x14')]();});};}function handleEntityNotFound(_0xaef3d3){return function(_0x2ee68a){return!_0x2ee68a&&_0xaef3d3['sendStatus'](0x194),_0x2ee68a;};}function handleError(_0x118379,_0x2c6b92){return _0x2c6b92=_0x2c6b92||0x1f4,function(_0x5b8933){const _0x20c5b4=a107_0x20f2;logger[_0x20c5b4('0x4')](_0x5b8933[_0x20c5b4('0x10')]),_0x5b8933[_0x20c5b4('0x13')]&&delete _0x5b8933[_0x20c5b4('0x13')],_0x118379[_0x20c5b4('0x18')](_0x2c6b92)[_0x20c5b4('0x2d')](_0x5b8933);};}exports[_0x4c5081('0x20')]=function(_0x36097c,_0x5e09ce){const _0x3362b5=_0x4c5081;let _0x508385={};const _0x3b8948={},_0x1a15dd={'count':0x0,'rows':[]},_0xea88d4=_[_0x3362b5('0x2a')](db[_0x3362b5('0xf')]['rawAttributes'],function(_0x1517a2){const _0x19e158=_0x3362b5;return{'name':_0x1517a2['fieldName'],'type':_0x1517a2[_0x19e158('0x7')]['key']};});_0x3b8948['model']=_['map'](_0xea88d4,_0x3362b5('0x13')),_0x3b8948[_0x3362b5('0x29')]=_['keys'](_0x36097c[_0x3362b5('0x29')]),_0x3b8948[_0x3362b5('0x5')]=_[_0x3362b5('0x1b')](_0x3b8948[_0x3362b5('0xd')],_0x3b8948[_0x3362b5('0x29')]),_0x508385[_0x3362b5('0x28')]=_[_0x3362b5('0x1b')](_0x3b8948[_0x3362b5('0xd')],qs[_0x3362b5('0xe')](_0x36097c[_0x3362b5('0x29')][_0x3362b5('0xe')])),_0x508385[_0x3362b5('0x28')]=_0x508385[_0x3362b5('0x28')][_0x3362b5('0x26')]?_0x508385['attributes']:_0x3b8948['model'];typeof _0x36097c['query'][_0x3362b5('0x8')]===_0x3362b5('0x1f')&&(_0x508385['limit']=qs[_0x3362b5('0x1e')](_0x36097c[_0x3362b5('0x29')][_0x3362b5('0x1e')]),_0x508385[_0x3362b5('0x2')]=qs[_0x3362b5('0x2')](_0x36097c[_0x3362b5('0x29')][_0x3362b5('0x2')]));_0x508385[_0x3362b5('0x1')]=qs[_0x3362b5('0x27')](_0x36097c[_0x3362b5('0x29')][_0x3362b5('0x27')]),_0x508385[_0x3362b5('0x12')]=qs['filters'](_['pick'](_0x36097c[_0x3362b5('0x29')],_0x3b8948['filters']),_0xea88d4);_0x36097c[_0x3362b5('0x29')][_0x3362b5('0x15')]&&(_0x508385[_0x3362b5('0x12')]=_[_0x3362b5('0x3')](_0x508385['where'],{[Op['or']]:_[_0x3362b5('0x2a')](_0xea88d4,function(_0x222a9f){const _0x390ba9=_0x3362b5;if(_0x222a9f['type']!==_0x390ba9('0x0')){const _0x168186={};return _0x168186[_0x222a9f['name']]={[Op['like']]:'%'+_0x36097c[_0x390ba9('0x29')][_0x390ba9('0x15')]+'%'},_0x168186;}})}));_0x508385=_[_0x3362b5('0x3')]({},_0x508385,_0x36097c[_0x3362b5('0x23')]);const _0x2a7721={'where':_0x508385[_0x3362b5('0x12')]};return db[_0x3362b5('0xf')][_0x3362b5('0x19')](_0x2a7721)[_0x3362b5('0x6')](function(_0xad1c25){const _0x393cf5=_0x3362b5;return _0x1a15dd[_0x393cf5('0x19')]=_0xad1c25,_0x36097c[_0x393cf5('0x29')]['includeAll']&&(_0x508385[_0x393cf5('0x2c')]=[{'all':!![]}]),db[_0x393cf5('0xf')][_0x393cf5('0xa')](_0x508385);})[_0x3362b5('0x6')](function(_0x289235){return _0x1a15dd['rows']=_0x289235,_0x1a15dd;})['then'](respondWithFilteredResult(_0x5e09ce,_0x508385))[_0x3362b5('0x25')](handleError(_0x5e09ce,null));},exports[_0x4c5081('0x9')]=function(_0x2addef,_0x12aa17){const _0x145be4=_0x4c5081;let _0x46a6dc={'raw':!![],'where':{'id':_0x2addef[_0x145be4('0x22')]['id']}};const _0x549750={};return _0x549750[_0x145be4('0xd')]=_['keys'](db[_0x145be4('0xf')][_0x145be4('0xc')]),_0x549750['query']=_['keys'](_0x2addef[_0x145be4('0x29')]),_0x549750[_0x145be4('0x5')]=_[_0x145be4('0x1b')](_0x549750[_0x145be4('0xd')],_0x549750['query']),_0x46a6dc[_0x145be4('0x28')]=_[_0x145be4('0x1b')](_0x549750[_0x145be4('0xd')],qs[_0x145be4('0xe')](_0x2addef['query'][_0x145be4('0xe')])),_0x46a6dc[_0x145be4('0x28')]=_0x46a6dc[_0x145be4('0x28')]['length']?_0x46a6dc[_0x145be4('0x28')]:_0x549750[_0x145be4('0xd')],_0x2addef[_0x145be4('0x29')][_0x145be4('0x16')]&&(_0x46a6dc[_0x145be4('0x2c')]=[{'all':!![]}]),_0x46a6dc=_[_0x145be4('0x3')]({},_0x46a6dc,_0x2addef[_0x145be4('0x23')]),db[_0x145be4('0xf')]['findOne'](_0x46a6dc)[_0x145be4('0x6')](handleEntityNotFound(_0x12aa17,null))[_0x145be4('0x6')](respondWithResult(_0x12aa17,null))[_0x145be4('0x25')](handleError(_0x12aa17,null));},exports['create']=function(_0x253afb,_0x24e892){const _0x1331ff=_0x4c5081;return db[_0x1331ff('0xf')]['create'](_0x253afb[_0x1331ff('0xb')],{})['then'](respondWithResult(_0x24e892,0xc9))[_0x1331ff('0x25')](handleError(_0x24e892,null));},exports['update']=function(_0x2caf34,_0x26d910){const _0x1a6288=_0x4c5081;return _0x2caf34[_0x1a6288('0xb')]['id']&&delete _0x2caf34[_0x1a6288('0xb')]['id'],db[_0x1a6288('0xf')][_0x1a6288('0x1c')]({'where':{'id':_0x2caf34[_0x1a6288('0x22')]['id']}})[_0x1a6288('0x6')](handleEntityNotFound(_0x26d910,null))[_0x1a6288('0x6')](saveUpdates(_0x2caf34[_0x1a6288('0xb')],null))[_0x1a6288('0x6')](respondWithResult(_0x26d910,null))[_0x1a6288('0x25')](handleError(_0x26d910,null));},exports['destroy']=function(_0x3fe87c,_0x5e3398){const _0x3cadd4=_0x4c5081;return db['ChatTransferReport'][_0x3cadd4('0x1c')]({'where':{'id':_0x3fe87c[_0x3cadd4('0x22')]['id']}})[_0x3cadd4('0x6')](handleEntityNotFound(_0x5e3398,null))[_0x3cadd4('0x6')](removeEntity(_0x5e3398,null))[_0x3cadd4('0x25')](handleError(_0x5e3398,null));},exports[_0x4c5081('0x2f')]=function(_0x532043,_0x45f10c){const _0x2a777e=_0x4c5081;return db[_0x2a777e('0xf')][_0x2a777e('0x2f')]()[_0x2a777e('0x6')](respondWithResult(_0x45f10c,null))[_0x2a777e('0x25')](handleError(_0x45f10c,null));}; \ No newline at end of file +const a107_0x5998=['create','../../config/logger','fields','index','VIRTUAL','describe','error','sendStatus','lodash','order','body','limit','keys','Content-Range','includeAll','options','length','type','update','like','destroy','ChatTransferReport','sort','../../components/parsers/qs','rows','params','model','undefined','attributes','show','set','filters','name','api','pick','rawAttributes','count','offset','then','end','include','findOne','query','map','fieldName','findAll','status','send','stack','nolimit','intersection','catch','where','filter','merge','sequelize'];(function(_0x4cc9e8,_0x599887){const _0x385318=function(_0x39467e){while(--_0x39467e){_0x4cc9e8['push'](_0x4cc9e8['shift']());}};_0x385318(++_0x599887);}(a107_0x5998,0x1f1));const a107_0x3853=function(_0x4cc9e8,_0x599887){_0x4cc9e8=_0x4cc9e8-0x0;let _0x385318=a107_0x5998[_0x4cc9e8];return _0x385318;};const _0x40c955=a107_0x3853;'use strict';const _=require(_0x40c955('0xf')),qs=require(_0x40c955('0x1e')),logger=require(_0x40c955('0x8'))(_0x40c955('0x28')),db=require('../../mysqldb')['db'],{Op}=require(_0x40c955('0x6'));function respondWithResult(_0x39467e,_0x27ddb9){return _0x27ddb9=_0x27ddb9||0xc8,function(_0x218ea5){const _0x19b1e2=a107_0x3853;if(_0x218ea5)return _0x39467e[_0x19b1e2('0x35')](_0x27ddb9)['json'](_0x218ea5);};}function respondWithFilteredResult(_0x3da6e2,_0x25cf41){return function(_0x561419){const _0x256f53=a107_0x3853;if(_0x561419){const _0x280889=_0x561419[_0x256f53('0x2b')],_0x497677=_0x25cf41[_0x256f53('0x2c')];let _0x30dead=_0x25cf41[_0x256f53('0x2c')]+_0x25cf41['limit'],_0x23a93b;return _0x30dead>=_0x280889?(_0x30dead=_0x280889,_0x23a93b=0xc8):_0x23a93b=0xce,_0x3da6e2[_0x256f53('0x35')](_0x23a93b),_0x3da6e2[_0x256f53('0x25')](_0x256f53('0x14'),_0x497677+'-'+_0x30dead+'/'+_0x280889)['json'](_0x561419);}return null;};}function saveUpdates(_0x1687ac){return function(_0x365268){const _0xf115ab=a107_0x3853;if(_0x365268)return _0x365268[_0xf115ab('0x19')](_0x1687ac)[_0xf115ab('0x2d')](function(_0xd9c05f){return _0xd9c05f;});return null;};}function removeEntity(_0x22c0c9){return function(_0x4469c8){const _0x4149a9=a107_0x3853;if(_0x4469c8)return _0x4469c8['destroy']()[_0x4149a9('0x2d')](function(){const _0x2d0295=_0x4149a9;_0x22c0c9[_0x2d0295('0x35')](0xcc)[_0x2d0295('0x2e')]();});};}function handleEntityNotFound(_0x2c32e4){return function(_0x2f332f){const _0x1ca431=a107_0x3853;return!_0x2f332f&&_0x2c32e4[_0x1ca431('0xe')](0x194),_0x2f332f;};}function handleError(_0xb524eb,_0x309f04){return _0x309f04=_0x309f04||0x1f4,function(_0x4bfdea){const _0x242bdc=a107_0x3853;logger[_0x242bdc('0xd')](_0x4bfdea[_0x242bdc('0x37')]),_0x4bfdea[_0x242bdc('0x27')]&&delete _0x4bfdea[_0x242bdc('0x27')],_0xb524eb[_0x242bdc('0x35')](_0x309f04)[_0x242bdc('0x36')](_0x4bfdea);};}exports[_0x40c955('0xa')]=function(_0x49cb81,_0x707554){const _0x2e4fd1=_0x40c955;let _0x5a8e00={};const _0x2d1bf8={},_0x2f3dc2={'count':0x0,'rows':[]},_0x367564=_[_0x2e4fd1('0x32')](db[_0x2e4fd1('0x1c')][_0x2e4fd1('0x2a')],function(_0x4e4bfb){const _0x3dfdfc=_0x2e4fd1;return{'name':_0x4e4bfb[_0x3dfdfc('0x33')],'type':_0x4e4bfb[_0x3dfdfc('0x18')]['key']};});_0x2d1bf8['model']=_['map'](_0x367564,_0x2e4fd1('0x27')),_0x2d1bf8[_0x2e4fd1('0x31')]=_[_0x2e4fd1('0x13')](_0x49cb81[_0x2e4fd1('0x31')]),_0x2d1bf8['filters']=_['intersection'](_0x2d1bf8[_0x2e4fd1('0x21')],_0x2d1bf8[_0x2e4fd1('0x31')]),_0x5a8e00[_0x2e4fd1('0x23')]=_[_0x2e4fd1('0x1')](_0x2d1bf8[_0x2e4fd1('0x21')],qs[_0x2e4fd1('0x9')](_0x49cb81[_0x2e4fd1('0x31')][_0x2e4fd1('0x9')])),_0x5a8e00[_0x2e4fd1('0x23')]=_0x5a8e00['attributes'][_0x2e4fd1('0x17')]?_0x5a8e00[_0x2e4fd1('0x23')]:_0x2d1bf8[_0x2e4fd1('0x21')];typeof _0x49cb81[_0x2e4fd1('0x31')][_0x2e4fd1('0x0')]===_0x2e4fd1('0x22')&&(_0x5a8e00[_0x2e4fd1('0x12')]=qs['limit'](_0x49cb81[_0x2e4fd1('0x31')][_0x2e4fd1('0x12')]),_0x5a8e00[_0x2e4fd1('0x2c')]=qs[_0x2e4fd1('0x2c')](_0x49cb81[_0x2e4fd1('0x31')][_0x2e4fd1('0x2c')]));_0x5a8e00[_0x2e4fd1('0x10')]=qs[_0x2e4fd1('0x1d')](_0x49cb81['query'][_0x2e4fd1('0x1d')]),_0x5a8e00[_0x2e4fd1('0x3')]=qs[_0x2e4fd1('0x26')](_[_0x2e4fd1('0x29')](_0x49cb81[_0x2e4fd1('0x31')],_0x2d1bf8[_0x2e4fd1('0x26')]),_0x367564);_0x49cb81[_0x2e4fd1('0x31')][_0x2e4fd1('0x4')]&&(_0x5a8e00[_0x2e4fd1('0x3')]=_[_0x2e4fd1('0x5')](_0x5a8e00[_0x2e4fd1('0x3')],{[Op['or']]:_[_0x2e4fd1('0x32')](_0x367564,function(_0xe00d21){const _0x423cc6=_0x2e4fd1;if(_0xe00d21['type']!==_0x423cc6('0xb')){const _0x73026d={};return _0x73026d[_0xe00d21[_0x423cc6('0x27')]]={[Op[_0x423cc6('0x1a')]]:'%'+_0x49cb81['query']['filter']+'%'},_0x73026d;}})}));_0x5a8e00=_[_0x2e4fd1('0x5')]({},_0x5a8e00,_0x49cb81[_0x2e4fd1('0x16')]);const _0x2409bf={'where':_0x5a8e00['where']};return db[_0x2e4fd1('0x1c')][_0x2e4fd1('0x2b')](_0x2409bf)[_0x2e4fd1('0x2d')](function(_0x49ae3d){const _0x1492a9=_0x2e4fd1;return _0x2f3dc2[_0x1492a9('0x2b')]=_0x49ae3d,_0x49cb81[_0x1492a9('0x31')][_0x1492a9('0x15')]&&(_0x5a8e00[_0x1492a9('0x2f')]=[{'all':!![]}]),db['ChatTransferReport'][_0x1492a9('0x34')](_0x5a8e00);})[_0x2e4fd1('0x2d')](function(_0x41c378){const _0x3db421=_0x2e4fd1;return _0x2f3dc2[_0x3db421('0x1f')]=_0x41c378,_0x2f3dc2;})[_0x2e4fd1('0x2d')](respondWithFilteredResult(_0x707554,_0x5a8e00))[_0x2e4fd1('0x2')](handleError(_0x707554,null));},exports[_0x40c955('0x24')]=function(_0x8cc359,_0x4fb160){const _0x518468=_0x40c955;let _0x63b5b1={'raw':!![],'where':{'id':_0x8cc359[_0x518468('0x20')]['id']}};const _0x12b533={};return _0x12b533['model']=_['keys'](db[_0x518468('0x1c')]['rawAttributes']),_0x12b533[_0x518468('0x31')]=_[_0x518468('0x13')](_0x8cc359['query']),_0x12b533[_0x518468('0x26')]=_[_0x518468('0x1')](_0x12b533[_0x518468('0x21')],_0x12b533[_0x518468('0x31')]),_0x63b5b1[_0x518468('0x23')]=_[_0x518468('0x1')](_0x12b533['model'],qs[_0x518468('0x9')](_0x8cc359['query']['fields'])),_0x63b5b1[_0x518468('0x23')]=_0x63b5b1[_0x518468('0x23')][_0x518468('0x17')]?_0x63b5b1[_0x518468('0x23')]:_0x12b533[_0x518468('0x21')],_0x8cc359[_0x518468('0x31')]['includeAll']&&(_0x63b5b1[_0x518468('0x2f')]=[{'all':!![]}]),_0x63b5b1=_[_0x518468('0x5')]({},_0x63b5b1,_0x8cc359[_0x518468('0x16')]),db['ChatTransferReport'][_0x518468('0x30')](_0x63b5b1)['then'](handleEntityNotFound(_0x4fb160,null))[_0x518468('0x2d')](respondWithResult(_0x4fb160,null))[_0x518468('0x2')](handleError(_0x4fb160,null));},exports['create']=function(_0x4d623f,_0x4581d7){const _0xa410ed=_0x40c955;return db[_0xa410ed('0x1c')][_0xa410ed('0x7')](_0x4d623f['body'],{})[_0xa410ed('0x2d')](respondWithResult(_0x4581d7,0xc9))[_0xa410ed('0x2')](handleError(_0x4581d7,null));},exports[_0x40c955('0x19')]=function(_0x4ae3d1,_0x2de88e){const _0x31c926=_0x40c955;return _0x4ae3d1['body']['id']&&delete _0x4ae3d1['body']['id'],db[_0x31c926('0x1c')]['findOne']({'where':{'id':_0x4ae3d1['params']['id']}})['then'](handleEntityNotFound(_0x2de88e,null))['then'](saveUpdates(_0x4ae3d1[_0x31c926('0x11')],null))[_0x31c926('0x2d')](respondWithResult(_0x2de88e,null))[_0x31c926('0x2')](handleError(_0x2de88e,null));},exports[_0x40c955('0x1b')]=function(_0x4d1fab,_0x548276){const _0x3c92e5=_0x40c955;return db[_0x3c92e5('0x1c')]['findOne']({'where':{'id':_0x4d1fab[_0x3c92e5('0x20')]['id']}})[_0x3c92e5('0x2d')](handleEntityNotFound(_0x548276,null))['then'](removeEntity(_0x548276,null))[_0x3c92e5('0x2')](handleError(_0x548276,null));},exports['describe']=function(_0x5ec3d4,_0x41969e){const _0xcbaf5e=_0x40c955;return db[_0xcbaf5e('0x1c')][_0xcbaf5e('0xc')]()[_0xcbaf5e('0x2d')](respondWithResult(_0x41969e,null))[_0xcbaf5e('0x2')](handleError(_0x41969e,null));}; \ No newline at end of file diff --git a/server/api/chatTransferReport/chatTransferReport.model.js b/server/api/chatTransferReport/chatTransferReport.model.js index 8565c73..90456c9 100644 --- a/server/api/chatTransferReport/chatTransferReport.model.js +++ b/server/api/chatTransferReport/chatTransferReport.model.js @@ -1 +1 @@ -const a108_0x43ce=['ChatTransferReport','define','uniqueid','./chatTransferReport.attributes'];(function(_0x31a18f,_0x43cee3){const _0x47bc8b=function(_0x14d737){while(--_0x14d737){_0x31a18f['push'](_0x31a18f['shift']());}};_0x47bc8b(++_0x43cee3);}(a108_0x43ce,0x19e));const a108_0x47bc=function(_0x31a18f,_0x43cee3){_0x31a18f=_0x31a18f-0x0;let _0x47bc8b=a108_0x43ce[_0x31a18f];return _0x47bc8b;};const _0x96a010=a108_0x47bc;'use strict';const attributes=require(_0x96a010('0x1'));module['exports']=function(_0x14d737){const _0x5cdcc5=_0x96a010,_0x223e03=_0x14d737[_0x5cdcc5('0x3')](_0x5cdcc5('0x2'),attributes,{'tableName':'report_chat_transfer','paranoid':![],'indexes':[{'name':_0x5cdcc5('0x0'),'fields':[_0x5cdcc5('0x0')]}],'timestamps':!![]});return _0x223e03;}; \ No newline at end of file +const a108_0x315e=['exports','ChatTransferReport','uniqueid'];(function(_0xae5ee3,_0x315e97){const _0x23d35f=function(_0x5495c0){while(--_0x5495c0){_0xae5ee3['push'](_0xae5ee3['shift']());}};_0x23d35f(++_0x315e97);}(a108_0x315e,0x97));const a108_0x23d3=function(_0xae5ee3,_0x315e97){_0xae5ee3=_0xae5ee3-0x0;let _0x23d35f=a108_0x315e[_0xae5ee3];return _0x23d35f;};const _0x2e1195=a108_0x23d3;'use strict';const attributes=require('./chatTransferReport.attributes');module[_0x2e1195('0x2')]=function(_0x5495c0){const _0x5a935f=_0x2e1195,_0x3eac37=_0x5495c0['define'](_0x5a935f('0x0'),attributes,{'tableName':'report_chat_transfer','paranoid':![],'indexes':[{'name':_0x5a935f('0x1'),'fields':[_0x5a935f('0x1')]}],'timestamps':!![]});return _0x3eac37;}; \ No newline at end of file diff --git a/server/api/chatTransferReport/index.js b/server/api/chatTransferReport/index.js index c9f55a4..6c0fc08 100644 --- a/server/api/chatTransferReport/index.js +++ b/server/api/chatTransferReport/index.js @@ -1 +1 @@ -const a109_0x28bc=['../../components/auth/service','destroy','./chatTransferReport.controller','/:id','delete','get','isAuthenticated','express','describe','Router','create','put'];(function(_0x20c46a,_0x28bcb0){const _0x2f86bb=function(_0x2641c9){while(--_0x2641c9){_0x20c46a['push'](_0x20c46a['shift']());}};_0x2f86bb(++_0x28bcb0);}(a109_0x28bc,0xea));const a109_0x2f86=function(_0x20c46a,_0x28bcb0){_0x20c46a=_0x20c46a-0x0;let _0x2f86bb=a109_0x28bc[_0x20c46a];return _0x2f86bb;};const _0x59b164=a109_0x2f86;'use strict';const express=require(_0x59b164('0x1')),router=express[_0x59b164('0x3')](),auth=require(_0x59b164('0x6')),controller=require(_0x59b164('0x8'));router[_0x59b164('0xb')]('/',auth['isAuthenticated'](),controller['index']),router['get']('/describe',auth[_0x59b164('0x0')](),controller[_0x59b164('0x2')]),router[_0x59b164('0xb')](_0x59b164('0x9'),auth['isAuthenticated'](),controller['show']),router['post']('/',auth['isAuthenticated'](),controller[_0x59b164('0x4')]),router[_0x59b164('0x5')](_0x59b164('0x9'),auth[_0x59b164('0x0')](),controller['update']),router[_0x59b164('0xa')](_0x59b164('0x9'),auth[_0x59b164('0x0')](),controller[_0x59b164('0x7')]),module['exports']=router; \ No newline at end of file +const a109_0x2340=['delete','describe','get','../../components/auth/service','update','/:id','create','Router','/describe','isAuthenticated','post','show'];(function(_0x1178a5,_0x234037){const _0x1cd16d=function(_0x56536b){while(--_0x56536b){_0x1178a5['push'](_0x1178a5['shift']());}};_0x1cd16d(++_0x234037);}(a109_0x2340,0x1df));const a109_0x1cd1=function(_0x1178a5,_0x234037){_0x1178a5=_0x1178a5-0x0;let _0x1cd16d=a109_0x2340[_0x1178a5];return _0x1cd16d;};const _0x4bbf46=a109_0x1cd1;'use strict';const express=require('express'),router=express[_0x4bbf46('0x8')](),auth=require(_0x4bbf46('0x4')),controller=require('./chatTransferReport.controller');router[_0x4bbf46('0x3')]('/',auth[_0x4bbf46('0xa')](),controller['index']),router[_0x4bbf46('0x3')](_0x4bbf46('0x9'),auth[_0x4bbf46('0xa')](),controller[_0x4bbf46('0x2')]),router['get']('/:id',auth[_0x4bbf46('0xa')](),controller[_0x4bbf46('0x0')]),router[_0x4bbf46('0xb')]('/',auth[_0x4bbf46('0xa')](),controller[_0x4bbf46('0x7')]),router['put']('/:id',auth[_0x4bbf46('0xa')](),controller[_0x4bbf46('0x5')]),router[_0x4bbf46('0x1')](_0x4bbf46('0x6'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.attributes.js b/server/api/chatWebsite/chatWebsite.attributes.js index 363e366..e6e269b 100644 --- a/server/api/chatWebsite/chatWebsite.attributes.js +++ b/server/api/chatWebsite/chatWebsite.attributes.js @@ -1 +1 @@ -const a110_0x1a3e=['Feedback','Powered\x20by\x20xCALLY','Contact\x20us','textarea','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Thanks\x20you\x20for\x20your\x20time!','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','ENUM','System','squared','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','Note','exports','Comments','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','thumb','stringify','mandatoryDispositionPauseId','setDataValue','Skip','parse','onlineForm','STRING','name','Form\x20properly\x20submitted','getDataValue','sequelize','BOOLEAN','star','website_alias','rounded','#ffffff','Chat','INTEGER','Your\x20request\x20has\x20not\x20been\x20processed.','Agent','randomstring','#011F6A','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','Send','offlineForm','generate','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','input','TEXT','New\x20offline\x20message\x20from\x20websiteName','email'];(function(_0x286632,_0x1a3ee3){const _0x3afb95=function(_0x40c257){while(--_0x40c257){_0x286632['push'](_0x286632['shift']());}};_0x3afb95(++_0x1a3ee3);}(a110_0x1a3e,0x90));const a110_0x3afb=function(_0x286632,_0x1a3ee3){_0x286632=_0x286632-0x0;let _0x3afb95=a110_0x1a3e[_0x286632];return _0x3afb95;};const _0xad4c89=a110_0x3afb;'use strict';const Sequelize=require(_0xad4c89('0x17')),rs=require(_0xad4c89('0x21'));module[_0xad4c89('0x9')]={'name':{'type':Sequelize[_0xad4c89('0x13')],'allowNull':![]},'address':{'type':Sequelize[_0xad4c89('0x13')],'allowNull':![],'unique':'address'},'description':{'type':Sequelize[_0xad4c89('0x13')]},'mapKey':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x2b')},'mapKeyOffline':{'type':Sequelize['STRING'],'defaultValue':_0xad4c89('0x2b')},'key':{'type':Sequelize[_0xad4c89('0x13')],'allowNull':![]},'agentAlias':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x20')},'customerAlias':{'type':Sequelize['STRING'],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0xad4c89('0x13')],'allowNull':![],'defaultValue':_0xad4c89('0x22'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize[_0xad4c89('0x13')],'allowNull':![],'defaultValue':_0xad4c89('0x1c'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xf},'remote':{'type':Sequelize[_0xad4c89('0x13')]},'animation':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':!![]},'header_shape':{'type':Sequelize['ENUM'](_0xad4c89('0x1b'),_0xad4c89('0x6')),'defaultValue':'rounded'},'header_online':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':'We\x20are\x20here!'},'start_chat_button':{'type':Sequelize['STRING'],'defaultValue':_0xad4c89('0x1d')},'offline_chat_button':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x24')},'header_offline':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x2e')},'download_transcript':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0xad4c89('0x1e')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x2d')},'defaultWhiteLabel':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0xad4c89('0x29')]},'closingQuestion':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x1')},'formSubmitSuccessMessage':{'type':Sequelize['STRING'],'defaultValue':_0xad4c89('0x15')},'formSubmitFailureMessage':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':'Form\x20submission\x20error'},'noteTitle':{'type':Sequelize['STRING'],'defaultValue':_0xad4c89('0x8')},'placeholderMessage':{'type':Sequelize['STRING'],'defaultValue':'Type\x20a\x20message'},'closingMessage':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x2')},'closingMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0xad4c89('0x24')},'skipMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0xad4c89('0x10')},'conditionAgreement':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x2c')},'ratingType':{'type':Sequelize[_0xad4c89('0x4')](_0xad4c89('0x19'),_0xad4c89('0xc')),'defaultValue':_0xad4c89('0x19')},'ratingStarsNumber':{'type':Sequelize[_0xad4c89('0x1e')],'defaultValue':0x5},'onlineForm':{'type':Sequelize[_0xad4c89('0x29')],'defaultValue':function(){const _0x334119=_0xad4c89;return JSON[_0x334119('0xd')]({'items':[{'type':_0x334119('0x28'),'variable':null,'config':{'placeholder':'name','type':'text','required':!![]},'props':{'title':_0x334119('0x14'),'helpText':''}},{'type':'input','props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0x334119('0x2b'),'type':_0x334119('0x2b')},'variable':null}],'fromKey':0x1});},'get':function(){const _0x2f1324=_0xad4c89;return this['getDataValue'](_0x2f1324('0x12'))?JSON['parse'](this[_0x2f1324('0x16')](_0x2f1324('0x12'))):{};},'set':function(_0x40c257){const _0x2df75e=_0xad4c89;return this[_0x2df75e('0xf')](_0x2df75e('0x12'),JSON[_0x2df75e('0xd')](_0x40c257));}},'offlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x5e7018=_0xad4c89;return JSON[_0x5e7018('0xd')]({'items':[{'type':_0x5e7018('0x28'),'props':{'title':_0x5e7018('0x2b'),'helpText':''},'config':{'required':!![],'placeholder':'email','type':_0x5e7018('0x2b')},'variable':null},{'type':_0x5e7018('0x0'),'config':{'placeholder':_0x5e7018('0xa')},'props':{'title':'Comments','helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){const _0x769991=_0xad4c89;return this[_0x769991('0x16')](_0x769991('0x25'))?JSON[_0x769991('0x11')](this[_0x769991('0x16')](_0x769991('0x25'))):{};},'set':function(_0x164e29){const _0xd029b3=_0xad4c89;return this[_0xd029b3('0xf')](_0xd029b3('0x25'),JSON[_0xd029b3('0xd')](_0x164e29));}},'token':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':function(){const _0x5ebd14=_0xad4c89;return rs[_0x5ebd14('0x26')]();}},'autoclose':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize[_0xad4c89('0x13')]},'forwardOffline':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize['STRING']},'waitingTitle':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x3')},'waitingMessage':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0xb')},'offlineMessageSubject':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x2a')},'offlineMessageBody':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':'You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:'},'enableUnmanagedNote':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x1f')},'skipUnmanaged':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x10')},'sendUnmanaged':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x24')},'enableCustomerAttachment':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'agentAvatar':{'type':Sequelize[_0xad4c89('0x29')]},'showAgentAvatar':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'timezone':{'type':Sequelize[_0xad4c89('0x13')]},'notificationTemplate':{'type':Sequelize[_0xad4c89('0x29')],'defaultValue':function(){const _0x46203c=_0xad4c89;return _0x46203c('0x7');}},'notificationSound':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize['STRING'],'defaultValue':_0xad4c89('0x1a')},'waitForTheAssignedAgent':{'type':Sequelize[_0xad4c89('0x1e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':'bottom_right'},'verticalAlignment':{'type':Sequelize[_0xad4c89('0x1e')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize['STRING'],'defaultValue':'alternate'},'defaultTitle':{'type':Sequelize[_0xad4c89('0x13')]},'customerAvatar':{'type':Sequelize[_0xad4c89('0x29')]},'showCustomerAvatar':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'messageFontSize':{'type':Sequelize['INTEGER'],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0xad4c89('0x13')],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0xad4c89('0x1e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0xad4c89('0x1e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':_0xad4c89('0x5')},'systemAvatar':{'type':Sequelize[_0xad4c89('0x29')]},'mandatoryDispositionPauseId':{'type':Sequelize['INTEGER'],'comment':_0xad4c89('0x27')},'mandatoryDisposition':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![],'comment':_0xad4c89('0x23'),'set':function(_0x41a173){const _0x297f51=_0xad4c89;if(!_0x41a173)this[_0x297f51('0xf')](_0x297f51('0xe'),null);this[_0x297f51('0xf')]('mandatoryDisposition',_0x41a173);}},'vidaooEscalation':{'type':Sequelize[_0xad4c89('0x18')],'defaultValue':![]},'vidaooApiKey':{'type':Sequelize[_0xad4c89('0x13')],'defaultValue':![]}}; \ No newline at end of file +const a110_0x4e45=['Thanks\x20you\x20for\x20your\x20time!','Form\x20properly\x20submitted','BOOLEAN','bottom_right','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','ENUM','Form\x20submission\x20error','text','onlineForm','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','alternate','Type\x20a\x20message','getDataValue','Powered\x20by\x20xCALLY','#011F6A','sequelize','Comments','Note','TEXT','Skip','Agent','Send','name','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','squared','address','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','We\x20are\x20here!','INTEGER','star','mandatoryDisposition','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','rounded','Contact\x20us','Chat','#ffffff','Your\x20request\x20has\x20not\x20been\x20processed.','randomstring','STRING','offlineForm','Feedback','email','parse','setDataValue','generate','stringify','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','input','New\x20offline\x20message\x20from\x20websiteName'];(function(_0x496f6c,_0x4e45ae){const _0x5601d2=function(_0x551b30){while(--_0x551b30){_0x496f6c['push'](_0x496f6c['shift']());}};_0x5601d2(++_0x4e45ae);}(a110_0x4e45,0x12b));const a110_0x5601=function(_0x496f6c,_0x4e45ae){_0x496f6c=_0x496f6c-0x0;let _0x5601d2=a110_0x4e45[_0x496f6c];return _0x5601d2;};const _0x1a897c=a110_0x5601;'use strict';const Sequelize=require(_0x1a897c('0xa')),rs=require(_0x1a897c('0x20'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![]},'address':{'type':Sequelize[_0x1a897c('0x21')],'allowNull':![],'unique':_0x1a897c('0x14')},'description':{'type':Sequelize[_0x1a897c('0x21')]},'mapKey':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x24')},'mapKeyOffline':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':'email'},'key':{'type':Sequelize[_0x1a897c('0x21')],'allowNull':![]},'agentAlias':{'type':Sequelize['STRING'],'defaultValue':_0x1a897c('0xf')},'customerAlias':{'type':Sequelize['STRING'],'defaultValue':'Me'},'color':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}},'color_button':{'type':Sequelize[_0x1a897c('0x21')],'allowNull':![],'defaultValue':_0x1a897c('0x9'),'validate':{'notEmpty':!![]}},'textColor':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x1a897c('0x1e'),'validate':{'notEmpty':!![]}},'fontSize':{'type':Sequelize[_0x1a897c('0x17')],'defaultValue':0xf},'remote':{'type':Sequelize[_0x1a897c('0x21')]},'animation':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':!![]},'header_shape':{'type':Sequelize[_0x1a897c('0x0')](_0x1a897c('0x1b'),_0x1a897c('0x13')),'defaultValue':_0x1a897c('0x1b')},'header_online':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x16')},'start_chat_button':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x1d')},'offline_chat_button':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x10')},'header_offline':{'type':Sequelize['STRING'],'defaultValue':_0x1a897c('0x1c')},'download_transcript':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':!![]},'timeout':{'type':Sequelize[_0x1a897c('0x17')],'defaultValue':0x0},'whiteLabel':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x8')},'defaultWhiteLabel':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'sitepic':{'type':Sequelize[_0x1a897c('0xd')]},'closingQuestion':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x1a')},'formSubmitSuccessMessage':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x2d')},'formSubmitFailureMessage':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x1')},'noteTitle':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0xc')},'placeholderMessage':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x6')},'closingMessage':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x2c')},'closingMessageButton':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':'Send'},'skipMessageButton':{'type':Sequelize['STRING'],'defaultValue':_0x1a897c('0xe')},'conditionAgreement':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'enableRating':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'enableFeedback':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'enableSendButton':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'feedbackTitle':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x23')},'ratingType':{'type':Sequelize['ENUM'](_0x1a897c('0x18'),'thumb'),'defaultValue':_0x1a897c('0x18')},'ratingStarsNumber':{'type':Sequelize[_0x1a897c('0x17')],'defaultValue':0x5},'onlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x48dbae=_0x1a897c;return JSON[_0x48dbae('0x28')]({'items':[{'type':_0x48dbae('0x2a'),'variable':null,'config':{'placeholder':_0x48dbae('0x11'),'type':_0x48dbae('0x2'),'required':!![]},'props':{'title':_0x48dbae('0x11'),'helpText':''}},{'type':_0x48dbae('0x2a'),'props':{'title':'email','helpText':''},'config':{'required':!![],'placeholder':_0x48dbae('0x24'),'type':_0x48dbae('0x24')},'variable':null}],'fromKey':0x1});},'get':function(){const _0x3b25a7=_0x1a897c;return this[_0x3b25a7('0x7')](_0x3b25a7('0x3'))?JSON[_0x3b25a7('0x25')](this[_0x3b25a7('0x7')](_0x3b25a7('0x3'))):{};},'set':function(_0x551b30){const _0x516df0=_0x1a897c;return this['setDataValue'](_0x516df0('0x3'),JSON[_0x516df0('0x28')](_0x551b30));}},'offlineForm':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x4dabee=_0x1a897c;return JSON[_0x4dabee('0x28')]({'items':[{'type':_0x4dabee('0x2a'),'props':{'title':_0x4dabee('0x24'),'helpText':''},'config':{'required':!![],'placeholder':_0x4dabee('0x24'),'type':_0x4dabee('0x24')},'variable':null},{'type':'textarea','config':{'placeholder':_0x4dabee('0xb')},'props':{'title':_0x4dabee('0xb'),'helpText':'Leave\x20your\x20comments'}}],'fromKey':0x0});},'get':function(){const _0x18bf50=_0x1a897c;return this[_0x18bf50('0x7')](_0x18bf50('0x22'))?JSON['parse'](this['getDataValue'](_0x18bf50('0x22'))):{};},'set':function(_0x47f835){const _0x5446e6=_0x1a897c;return this[_0x5446e6('0x26')](_0x5446e6('0x22'),JSON[_0x5446e6('0x28')](_0x47f835));}},'token':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':function(){const _0xf74ee4=_0x1a897c;return rs[_0xf74ee4('0x27')]();}},'autoclose':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':!![]},'enableCustomerWriting':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'forwardTranscript':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'forwardTranscriptMessage':{'type':Sequelize['STRING']},'forwardOffline':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'forwardOfflineAddress':{'type':Sequelize[_0x1a897c('0x21')]},'waitingTitle':{'type':Sequelize['STRING'],'defaultValue':_0x1a897c('0x4')},'waitingMessage':{'type':Sequelize['STRING'],'defaultValue':'Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.'},'offlineMessageSubject':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x2b')},'offlineMessageBody':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x12')},'enableUnmanagedNote':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':!![]},'unmanagedMessage':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x1f')},'skipUnmanaged':{'type':Sequelize['STRING'],'defaultValue':_0x1a897c('0xe')},'sendUnmanaged':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x10')},'enableCustomerAttachment':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'enableCustomerCheckmarks':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'agentAvatar':{'type':Sequelize['TEXT']},'showAgentAvatar':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'timezone':{'type':Sequelize[_0x1a897c('0x21')]},'notificationTemplate':{'type':Sequelize[_0x1a897c('0xd')],'defaultValue':function(){const _0x56124b=_0x1a897c;return _0x56124b('0x15');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'hideWhenOffline':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'agentIdentifier':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':'website_alias'},'waitForTheAssignedAgent':{'type':Sequelize[_0x1a897c('0x17')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'alignment':{'type':Sequelize['STRING'],'defaultValue':_0x1a897c('0x2f')},'verticalAlignment':{'type':Sequelize[_0x1a897c('0x17')],'defaultValue':0x1e},'messagesAlignment':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':_0x1a897c('0x5')},'defaultTitle':{'type':Sequelize[_0x1a897c('0x21')]},'customerAvatar':{'type':Sequelize[_0x1a897c('0xd')]},'showCustomerAvatar':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'messageFontSize':{'type':Sequelize[_0x1a897c('0x17')],'defaultValue':0xc},'backgroundColor':{'type':Sequelize[_0x1a897c('0x21')],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}},'queueTransfer':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x1a897c('0x17')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'systemAlias':{'type':Sequelize[_0x1a897c('0x21')],'defaultValue':'System'},'systemAvatar':{'type':Sequelize['TEXT']},'mandatoryDispositionPauseId':{'type':Sequelize[_0x1a897c('0x17')],'comment':_0x1a897c('0x29')},'mandatoryDisposition':{'type':Sequelize[_0x1a897c('0x2e')],'defaultValue':![],'comment':_0x1a897c('0x30'),'set':function(_0x330953){const _0x176602=_0x1a897c;if(!_0x330953)this[_0x176602('0x26')]('mandatoryDispositionPauseId',null);this[_0x176602('0x26')](_0x176602('0x19'),_0x330953);}},'vidaooEscalation':{'type':Sequelize[_0x1a897c('0x2e')],'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 64406e9..9a5592f 100644 --- a/server/api/chatWebsite/chatWebsite.controller.js +++ b/server/api/chatWebsite/chatWebsite.controller.js @@ -1 +1 @@ -const a111_0x41c6=['message','getProactiveActions','x-forwarded-for','client','mapKey','unshift','show','removeAgents','getApplications','fromKey','textColor','split','getAnswers','x-real-ip','UserId','UserProfileSection','referer','destroy','CmList','addApplications','account','virtual','attributes','addProactiveActions','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','ListId','replace','createdAt','where','removeDispositions','No\x20timezone','map','from\x20is\x20mandatory','CmContact','messageId','mapKeyOffline','info','connection','rawAttributes','../../rediscache','findAll','filters','offlineForm','addCustomerAvatar','server/files/images/avatars/system_avatar.png','cf-connecting-ip','ChatMessage','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','contact','filename','lastName','ChatWebsiteId','../../config/logger','UserProfileResource','addAnswer','key','service','catch','addAvatar','threadId','forwardOfflineAddress','User','version','first','timezone','app','secure','indexOf','files/chat/iframe.js','Smtp','Disposition','request\x20sent','api','user-agent-parser','transaction','type','%s\x20%s\x20%s','getLicense','query','close','getResult','addInteraction','json','server/files/images/logos/','fields','file','includeAll','chatProactiveAction','like','online','customerAvatar','sitepic','getCustomerAvatar','user','difference','unmanaged','format','keys','../../config/license/util','x-real-port','*,*,*,*','remote','root','created','externalUrl','omit','then','send','MailAccount','pick','items','removeAnswers','systemAvatar','Interval','status','server/files/images/avatars/','tag','emit','pass','limit','%s\x20%s','ChatInteraction','sendStatus','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','name','auth','list','isNil','sendMail','getAvatar','describe','some','forcedOwnership','includes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','user-agent','unknown','asc','email','get','AttachmentId','browser','../../mysqldb','../../components/parsers/qs','License','ChatWebsite','merge','userProfileId','rows','options','updatedAt','internal','notify','count','getSnippet','ChatOfflineMessage','toPairs','params','./chatWebsite.socket','priority','ids','defaults','addSystemAvatar','device','filter','querystring','CompanyId','ChatWebsite,\x20%s,\x20%s','undefined','addLogo','all','orderBy','body','ChatWebsites','findAndCountAll','from','request','findOne','userChatWebsite:remove','MailServerOut','no\x20available\x20attributes','ChatApplication','List','render','bulkCreate','Command','intersection','sequelize','Contacts','findOrCreate','showCustomerAvatar','vendor','error','Applications','offset','EventManager','offlineMessageBody','existsSync','waitForTheAssignedAgent','stringify','OFFLINE','ContactId','autoAssociation','update','server/files/images/avatars/customer_avatar.png','agentAvatar','debug','download','verticalAlignment','ONLINE','getDispositions','order','CannedAnswer','end','isArray','join','model','sort','offlineMessageSubject','false','nolimit','custom','remoteAddress','Tags','Unable\x20to\x20retrieve\x20the\x20current\x20user','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','Intervals','push','customerIp','utf8','register','Contact','iftime\x20%s','agent','interval','path','color','\x22%s\x22\x20<%s>','http','length','iftime\x20%s,%s','applications','role','inspect','interaction','host','include','port','Pause','getAgents','startRouting','headers','readFileSync','create','addDisposition'];(function(_0x4fcf88,_0x41c6b3){const _0x4663ac=function(_0x3bdf2a){while(--_0x3bdf2a){_0x4fcf88['push'](_0x4fcf88['shift']());}};_0x4663ac(++_0x41c6b3);}(a111_0x41c6,0x1c8));const a111_0x4663=function(_0x4fcf88,_0x41c6b3){_0x4fcf88=_0x4fcf88-0x0;let _0x4663ac=a111_0x41c6[_0x4fcf88];return _0x4663ac;};const _0x5c4612=a111_0x4663;'use strict';const Mustache=require('mustache'),util=require('util'),path=require(_0x5c4612('0x22')),ejs=require('ejs'),fs=require('fs'),_=require('lodash'),querystring=require(_0x5c4612('0xdb')),qs=require(_0x5c4612('0xc5')),logger=require(_0x5c4612('0x6a'))(_0x5c4612('0x7e')),config=require('../../config/environment'),db=require(_0x5c4612('0xc4'))['db'],{Op,ValidationError}=require(_0x5c4612('0xf1')),{getSocket}=require(_0x5c4612('0x5d')),socket=getSocket();require(_0x5c4612('0xd4'))[_0x5c4612('0x1d')](socket);const jayson=require('jayson/promise'),client=jayson[_0x5c4612('0x39')][_0x5c4612('0x25')]({'port':0x232c}),client9002=jayson['client'][_0x5c4612('0x25')]({'port':0x232a}),client9003=jayson[_0x5c4612('0x39')][_0x5c4612('0x25')]({'port':0x232b});function respondWithRpcPromise(_0x3bdf2a,_0x2e3ee8,_0x2c05af,_0x35eacd){return new Promise(function(_0x5b1b26,_0xc28936){const _0x106714=a111_0x4663,_0x3507aa=_0x35eacd||client;return _0x3507aa[_0x106714('0xe6')](_0x3bdf2a,_0x2c05af)[_0x106714('0xa0')](function(_0x1fe4c4){const _0x34a929=_0x106714;logger[_0x34a929('0x5a')]('ChatWebsite,\x20%s,\x20%s',_0x2e3ee8,_0x34a929('0x7d')),logger[_0x34a929('0x5')]('ChatWebsite,\x20%s,\x20%s,\x20%s',_0x2e3ee8,_0x34a929('0x7d'),JSON[_0x34a929('0xfd')](_0x1fe4c4));if(_0x1fe4c4[_0x34a929('0xf6')]){if(_0x1fe4c4[_0x34a929('0xf6')]['code']===0x1f4)return logger[_0x34a929('0xf6')](_0x34a929('0xdd'),_0x2e3ee8,_0x1fe4c4[_0x34a929('0xf6')][_0x34a929('0x36')]),_0xc28936(_0x1fe4c4[_0x34a929('0xf6')]['message']);return logger[_0x34a929('0xf6')](_0x34a929('0xdd'),_0x2e3ee8,_0x1fe4c4[_0x34a929('0xf6')][_0x34a929('0x36')]),_0x5b1b26(_0x1fe4c4['error'][_0x34a929('0x36')]);}else logger[_0x34a929('0x5a')](_0x34a929('0xdd'),_0x2e3ee8,_0x34a929('0x7d')),_0x5b1b26(_0x1fe4c4['result'][_0x34a929('0x36')]);})['catch'](function(_0x3e2a83){const _0x4cd71b=_0x106714;logger[_0x4cd71b('0xf6')](_0x4cd71b('0xdd'),_0x2e3ee8,_0x3e2a83),_0xc28936(_0x3e2a83);});});}function respondWithStatusCode(_0x185c99,_0x37b8fd){return _0x37b8fd=_0x37b8fd||0xcc,function(_0x3ac4f6){const _0x477ef6=a111_0x4663;if(_0x3ac4f6)return _0x185c99[_0x477ef6('0xb0')](_0x37b8fd);return _0x185c99[_0x477ef6('0xa8')](_0x37b8fd)[_0x477ef6('0xc')]();};}function respondWithResult(_0x229a74,_0x47698f){return _0x47698f=_0x47698f||0xc8,function(_0x50cf97){const _0x377e4d=a111_0x4663;if(_0x50cf97)return _0x229a74[_0x377e4d('0xa8')](_0x47698f)[_0x377e4d('0x88')](_0x50cf97);};}function respondWithFilteredResult(_0x49224f,_0x5812b9){return function(_0x3c9d04){const _0x230d81=a111_0x4663;if(_0x3c9d04){const _0x26873d=_0x3c9d04['count'],_0x4d7534=_0x5812b9['offset'];let _0x509187=_0x5812b9['offset']+_0x5812b9[_0x230d81('0xad')],_0x281e18;return _0x509187>=_0x26873d?(_0x509187=_0x26873d,_0x281e18=0xc8):_0x281e18=0xce,_0x49224f[_0x230d81('0xa8')](_0x281e18),_0x49224f['set']('Content-Range',_0x4d7534+'-'+_0x509187+'/'+_0x26873d)['json'](_0x3c9d04);}return null;};}function saveUpdates(_0x27a302){return function(_0x2e7ec3){const _0x3ee267=a111_0x4663;if(_0x2e7ec3)return _0x2e7ec3[_0x3ee267('0x2')](_0x27a302)[_0x3ee267('0xa0')](function(_0x2e112d){return _0x2e112d;});return null;};}function removeEntity(_0x92633b){return function(_0x4bec5a){const _0x3c986e=a111_0x4663;if(_0x4bec5a)return _0x4bec5a['destroy']()[_0x3c986e('0xa0')](function(){const _0x77d434=_0x3c986e,_0x183961=_0x4bec5a[_0x77d434('0xc1')]({'plain':!![]}),_0x336717=_0x77d434('0xe3');return db[_0x77d434('0x6b')][_0x77d434('0x47')]({'where':{'type':_0x336717,'resourceId':_0x183961['id']}})[_0x77d434('0xa0')](function(){return _0x4bec5a;});})[_0x3c986e('0xa0')](function(){const _0x1bb346=_0x3c986e;_0x92633b['status'](0xcc)[_0x1bb346('0xc')]();});};}function handleEntityNotFound(_0xe7432c){return function(_0x4f7d52){return!_0x4f7d52&&_0xe7432c['sendStatus'](0x194),_0x4f7d52;};}function handleError(_0xcc61f1,_0x2ab636){return _0x2ab636=_0x2ab636||0x1f4,function(_0x203f82){const _0x694462=a111_0x4663;logger[_0x694462('0xf6')](_0x203f82['stack']),_0x203f82[_0x694462('0xb2')]&&delete _0x203f82['name'],_0xcc61f1[_0x694462('0xa8')](_0x2ab636)[_0x694462('0xa1')](_0x203f82);};}exports['index']=function(_0x186f13,_0x4058c2){const _0xdb5faa=_0x5c4612;let _0x38a48d={'include':[{'model':db[_0xdb5faa('0x2f')],'as':'mandatoryDispositionPause'}]};const _0x35cf3a={},_0x490901={'count':0x0,'rows':[]},_0x3f0af5=_['map'](db[_0xdb5faa('0xc7')][_0xdb5faa('0x5c')],function(_0x2b55fb){const _0x5e223b=_0xdb5faa;return{'name':_0x2b55fb['fieldName'],'type':_0x2b55fb[_0x5e223b('0x81')][_0x5e223b('0x6d')]};});_0x35cf3a['model']=_[_0xdb5faa('0x55')](_0x3f0af5,_0xdb5faa('0xb2')),_0x35cf3a['query']=_[_0xdb5faa('0x97')](_0x186f13[_0xdb5faa('0x84')]),_0x35cf3a[_0xdb5faa('0x5f')]=_['intersection'](_0x35cf3a[_0xdb5faa('0xf')],_0x35cf3a['query']),_0x38a48d[_0xdb5faa('0x4c')]=_[_0xdb5faa('0xf0')](_0x35cf3a['model'],qs[_0xdb5faa('0x8a')](_0x186f13[_0xdb5faa('0x84')][_0xdb5faa('0x8a')])),_0x38a48d['attributes']=_0x38a48d['attributes'][_0xdb5faa('0x26')]?_0x38a48d['attributes']:_0x35cf3a['model'];typeof _0x186f13[_0xdb5faa('0x84')][_0xdb5faa('0x13')]===_0xdb5faa('0xde')&&(_0x38a48d[_0xdb5faa('0xad')]=qs[_0xdb5faa('0xad')](_0x186f13[_0xdb5faa('0x84')][_0xdb5faa('0xad')]),_0x38a48d['offset']=qs[_0xdb5faa('0xf8')](_0x186f13[_0xdb5faa('0x84')]['offset']));_0x38a48d[_0xdb5faa('0xa')]=qs[_0xdb5faa('0x10')](_0x186f13[_0xdb5faa('0x84')]['sort']),_0x38a48d[_0xdb5faa('0x52')]=qs[_0xdb5faa('0x5f')](_[_0xdb5faa('0xa3')](_0x186f13[_0xdb5faa('0x84')],_0x35cf3a[_0xdb5faa('0x5f')]),_0x3f0af5);_0x186f13[_0xdb5faa('0x84')][_0xdb5faa('0xda')]&&(_0x38a48d[_0xdb5faa('0x52')]=_['merge'](_0x38a48d[_0xdb5faa('0x52')],{[Op['or']]:_['map'](_0x3f0af5,function(_0x3c83e3){const _0x480591=_0xdb5faa;if(_0x3c83e3[_0x480591('0x81')]!=='VIRTUAL'){const _0x1ce6a0={};return _0x1ce6a0[_0x3c83e3[_0x480591('0xb2')]]={[Op['like']]:'%'+_0x186f13[_0x480591('0x84')]['filter']+'%'},_0x1ce6a0;}})}));_0x38a48d=_[_0xdb5faa('0xc8')]({},_0x38a48d,_0x186f13[_0xdb5faa('0xcb')]);const _0x375fb2={'where':_0x38a48d[_0xdb5faa('0x52')]};return db[_0xdb5faa('0xc7')][_0xdb5faa('0xcf')](_0x375fb2)['then'](function(_0x4f2771){const _0x366500=_0xdb5faa;return _0x490901[_0x366500('0xcf')]=_0x4f2771,_0x186f13[_0x366500('0x84')][_0x366500('0x8c')]&&(_0x38a48d[_0x366500('0x2d')]=[{'all':!![]}]),db[_0x366500('0xc7')][_0x366500('0x5e')](_0x38a48d);})[_0xdb5faa('0xa0')](function(_0x1befa9){const _0x1aa619=_0xdb5faa;return _0x490901[_0x1aa619('0xca')]=_0x1befa9,_0x490901;})[_0xdb5faa('0xa0')](respondWithFilteredResult(_0x4058c2,_0x38a48d))[_0xdb5faa('0x6f')](handleError(_0x4058c2,null));},exports[_0x5c4612('0x3c')]=function(_0x17d71f,_0x4a2d97){const _0x414e93=_0x5c4612;let _0x205fe5={'raw':![],'where':{'id':_0x17d71f['params']['id']},'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x450c5b={};return _0x450c5b[_0x414e93('0xf')]=_['keys'](db[_0x414e93('0xc7')][_0x414e93('0x5c')]),_0x450c5b[_0x414e93('0x84')]=_[_0x414e93('0x97')](_0x17d71f['query']),_0x450c5b[_0x414e93('0x5f')]=_[_0x414e93('0xf0')](_0x450c5b['model'],_0x450c5b[_0x414e93('0x84')]),_0x205fe5[_0x414e93('0x4c')]=_[_0x414e93('0xf0')](_0x450c5b['model'],qs[_0x414e93('0x8a')](_0x17d71f[_0x414e93('0x84')]['fields'])),_0x205fe5[_0x414e93('0x4c')]=_0x205fe5[_0x414e93('0x4c')]['length']?_0x205fe5[_0x414e93('0x4c')]:_0x450c5b[_0x414e93('0xf')],_0x17d71f[_0x414e93('0x84')][_0x414e93('0x8c')]&&(_0x205fe5[_0x414e93('0x2d')]=[{'all':!![]}]),_0x205fe5=_[_0x414e93('0xc8')]({},_0x205fe5,_0x17d71f[_0x414e93('0xcb')]),db[_0x414e93('0xc7')][_0x414e93('0xe7')](_0x205fe5)[_0x414e93('0xa0')](handleEntityNotFound(_0x4a2d97,null))[_0x414e93('0xa0')](respondWithResult(_0x4a2d97,null))[_0x414e93('0x6f')](handleError(_0x4a2d97,null));},exports[_0x5c4612('0x34')]=function(_0x4e614f,_0x1b41bd){const _0x539224=_0x5c4612;return db[_0x539224('0xc7')]['create'](_0x4e614f[_0x539224('0xe2')],{})[_0x539224('0xa0')](function(_0x28c097){const _0x5ede61=_0x539224,_0x1c533d=_0x4e614f['user'][_0x5ede61('0xc1')]({'plain':!![]});if(!_0x1c533d)throw new Error(_0x5ede61('0x17'));if(_0x1c533d[_0x5ede61('0x29')]===_0x5ede61('0x93')){const _0xa2b516=_0x28c097[_0x5ede61('0xc1')]({'plain':!![]}),_0x34cb4e=_0x5ede61('0xe3');return db[_0x5ede61('0x45')][_0x5ede61('0xe7')]({'where':{'name':_0x34cb4e,'userProfileId':_0x1c533d[_0x5ede61('0xc9')]},'raw':!![]})['then'](function(_0x437083){const _0x1b82b0=_0x5ede61;return _0x437083&&_0x437083[_0x1b82b0('0x1')]===0x0?db['UserProfileResource'][_0x1b82b0('0x34')]({'name':_0xa2b516['name'],'resourceId':_0xa2b516['id'],'type':_0x437083[_0x1b82b0('0xb2')],'sectionId':_0x437083['id']},{})[_0x1b82b0('0xa0')](function(){return _0x28c097;}):_0x28c097;})[_0x5ede61('0x6f')](function(_0x952641){const _0x4c4cfe=_0x5ede61;logger['error'](_0x4c4cfe('0xbc'),_0x952641);throw _0x952641;});}return _0x28c097;})[_0x539224('0xa0')](respondWithResult(_0x1b41bd,0xc9))['catch'](handleError(_0x1b41bd,null));},exports[_0x5c4612('0x2')]=function(_0x306d74,_0x370e51){const _0x5a835e=_0x5c4612;return _0x306d74['body']['id']&&delete _0x306d74[_0x5a835e('0xe2')]['id'],db[_0x5a835e('0xc7')][_0x5a835e('0xe7')]({'where':{'id':_0x306d74[_0x5a835e('0xd3')]['id']},'include':[{'model':db[_0x5a835e('0x2f')],'as':'mandatoryDispositionPause'}]})['then'](handleEntityNotFound(_0x370e51,null))[_0x5a835e('0xa0')](saveUpdates(_0x306d74[_0x5a835e('0xe2')],null))['then'](respondWithResult(_0x370e51,null))[_0x5a835e('0x6f')](handleError(_0x370e51,null));},exports[_0x5c4612('0x47')]=function(_0x34f226,_0x50aba0){const _0x390062=_0x5c4612;return db[_0x390062('0xc7')]['findOne']({'where':{'id':_0x34f226[_0x390062('0xd3')]['id']}})[_0x390062('0xa0')](handleEntityNotFound(_0x50aba0,null))[_0x390062('0xa0')](removeEntity(_0x50aba0,null))[_0x390062('0x6f')](handleError(_0x50aba0,null));},exports['describe']=function(_0x216cc9,_0x366bce){const _0x50c6b5=_0x5c4612;return db['ChatWebsite'][_0x50c6b5('0xb8')]()[_0x50c6b5('0xa0')](respondWithResult(_0x366bce,null))[_0x50c6b5('0x6f')](handleError(_0x366bce,null));},exports[_0x5c4612('0x35')]=function(_0x3b6a29,_0x233ba3){const _0x1e5c83=_0x5c4612;return _0x3b6a29[_0x1e5c83('0xe2')]['id']&&delete _0x3b6a29[_0x1e5c83('0xe2')]['id'],db[_0x1e5c83('0xc7')][_0x1e5c83('0xe7')]({'where':{'id':_0x3b6a29[_0x1e5c83('0xd3')]['id']}})[_0x1e5c83('0xa0')](handleEntityNotFound(_0x233ba3,null))[_0x1e5c83('0xa0')](function(_0x51e97c){const _0x8ab5ca=_0x1e5c83;if(_0x51e97c)return _0x3b6a29[_0x8ab5ca('0xe2')][_0x8ab5ca('0x69')]=_0x51e97c['id'],db['Disposition']['create'](_0x3b6a29[_0x8ab5ca('0xe2')]);})[_0x1e5c83('0xa0')](respondWithResult(_0x233ba3,null))[_0x1e5c83('0x6f')](handleError(_0x233ba3,null));},exports[_0x5c4612('0x9')]=function(_0x2212a9,_0x198420){const _0x700e85=_0x5c4612;let _0x2f2ecd={'raw':![],'where':{}};const _0x18fa3a={},_0x55ba08={'count':0x0,'rows':[]};return db[_0x700e85('0xc7')][_0x700e85('0xe7')]({'where':{'id':_0x2212a9[_0x700e85('0xd3')]['id']}})[_0x700e85('0xa0')](handleEntityNotFound(_0x198420,null))[_0x700e85('0xa0')](function(_0x1ba103){const _0x6d71e3=_0x700e85;if(_0x1ba103)return _0x18fa3a[_0x6d71e3('0xf')]=_[_0x6d71e3('0x97')](db[_0x6d71e3('0x7c')][_0x6d71e3('0x5c')]),_0x18fa3a['query']=_['keys'](_0x2212a9[_0x6d71e3('0x84')]),_0x18fa3a[_0x6d71e3('0x5f')]=_['intersection'](_0x18fa3a[_0x6d71e3('0xf')],_0x18fa3a[_0x6d71e3('0x84')]),_0x2f2ecd[_0x6d71e3('0x4c')]=_[_0x6d71e3('0xf0')](_0x18fa3a[_0x6d71e3('0xf')],qs[_0x6d71e3('0x8a')](_0x2212a9['query'][_0x6d71e3('0x8a')])),_0x2f2ecd[_0x6d71e3('0x4c')]=_0x2f2ecd[_0x6d71e3('0x4c')][_0x6d71e3('0x26')]?_0x2f2ecd['attributes']:_0x18fa3a[_0x6d71e3('0xf')],typeof _0x2212a9[_0x6d71e3('0x84')][_0x6d71e3('0x13')]===_0x6d71e3('0xde')&&(_0x2f2ecd[_0x6d71e3('0xad')]=qs[_0x6d71e3('0xad')](_0x2212a9[_0x6d71e3('0x84')][_0x6d71e3('0xad')]),_0x2f2ecd['offset']=qs[_0x6d71e3('0xf8')](_0x2212a9[_0x6d71e3('0x84')][_0x6d71e3('0xf8')])),_0x2f2ecd[_0x6d71e3('0xa')]=qs['sort'](_0x2212a9[_0x6d71e3('0x84')][_0x6d71e3('0x10')]),_0x2f2ecd['where']=qs[_0x6d71e3('0x5f')](_[_0x6d71e3('0xa3')](_0x2212a9[_0x6d71e3('0x84')],_0x18fa3a['filters'])),_0x2f2ecd[_0x6d71e3('0x52')][_0x6d71e3('0x69')]=_0x1ba103['id'],_0x2212a9['query'][_0x6d71e3('0xda')]&&(_0x2f2ecd[_0x6d71e3('0x52')]=_[_0x6d71e3('0xc8')](_0x2f2ecd[_0x6d71e3('0x52')],{[Op['or']]:_[_0x6d71e3('0x55')](_0x2f2ecd[_0x6d71e3('0x4c')],function(_0x247455){const _0x2c9c91=_0x6d71e3,_0x172654={};return _0x172654[_0x247455]={[Op[_0x2c9c91('0x8e')]]:'%'+_0x2212a9['query'][_0x2c9c91('0xda')]+'%'},_0x172654;})})),_0x2f2ecd=_[_0x6d71e3('0xc8')]({},_0x2f2ecd,_0x2212a9['options']),db[_0x6d71e3('0x7c')][_0x6d71e3('0xcf')]({'where':_0x2f2ecd['where']})['then'](function(_0x4ed2ac){const _0x4ae7aa=_0x6d71e3;return _0x55ba08[_0x4ae7aa('0xcf')]=_0x4ed2ac,_0x2212a9['query'][_0x4ae7aa('0x8c')]&&(_0x2f2ecd[_0x4ae7aa('0x2d')]=[{'all':!![]}]),db[_0x4ae7aa('0x7c')][_0x4ae7aa('0x5e')](_0x2f2ecd);})[_0x6d71e3('0xa0')](function(_0x94ea11){return _0x55ba08['rows']=_0x94ea11,_0x55ba08;});})['then'](respondWithFilteredResult(_0x198420,_0x2f2ecd))[_0x700e85('0x6f')](handleError(_0x198420,null));},exports[_0x5c4612('0x53')]=function(_0x5d09f6,_0x30a02a){const _0x232378=_0x5c4612;return db['ChatWebsite'][_0x232378('0xe7')]({'where':{'id':_0x5d09f6[_0x232378('0xd3')]['id']}})[_0x232378('0xa0')](handleEntityNotFound(_0x30a02a,null))[_0x232378('0xa0')](function(_0x1e4a77){const _0x24d140=_0x232378;if(_0x1e4a77)return _0x1e4a77[_0x24d140('0x53')](_0x5d09f6[_0x24d140('0x84')][_0x24d140('0xd6')]);})[_0x232378('0xa0')](respondWithStatusCode(_0x30a02a,null))['catch'](handleError(_0x30a02a,null));},exports[_0x5c4612('0x6c')]=function(_0x20b6ad,_0x492234){const _0x26d488=_0x5c4612;return _0x20b6ad[_0x26d488('0xe2')]['id']&&delete _0x20b6ad[_0x26d488('0xe2')]['id'],db[_0x26d488('0xc7')][_0x26d488('0xe7')]({'where':{'id':_0x20b6ad['params']['id']}})[_0x26d488('0xa0')](handleEntityNotFound(_0x492234,null))[_0x26d488('0xa0')](function(_0x3e21ad){const _0x416735=_0x26d488;if(_0x3e21ad)return _0x20b6ad[_0x416735('0xe2')][_0x416735('0x69')]=_0x3e21ad['id'],db[_0x416735('0xb')]['create'](_0x20b6ad[_0x416735('0xe2')]);})[_0x26d488('0xa0')](respondWithResult(_0x492234,null))[_0x26d488('0x6f')](handleError(_0x492234,null));},exports[_0x5c4612('0x42')]=function(_0xe21a75,_0x2acf4b){const _0x1334cc=_0x5c4612;let _0x1a45b7={'raw':![],'where':{}};const _0x4ab6b1={},_0x14948f={'count':0x0,'rows':[]};return db[_0x1334cc('0xc7')][_0x1334cc('0xe7')]({'where':{'id':_0xe21a75[_0x1334cc('0xd3')]['id']}})[_0x1334cc('0xa0')](handleEntityNotFound(_0x2acf4b,null))[_0x1334cc('0xa0')](function(_0x3f86b5){const _0x4f76ae=_0x1334cc;if(_0x3f86b5)return _0x4ab6b1[_0x4f76ae('0xf')]=_[_0x4f76ae('0x97')](db[_0x4f76ae('0xb')][_0x4f76ae('0x5c')]),_0x4ab6b1[_0x4f76ae('0x84')]=_[_0x4f76ae('0x97')](_0xe21a75[_0x4f76ae('0x84')]),_0x4ab6b1[_0x4f76ae('0x5f')]=_[_0x4f76ae('0xf0')](_0x4ab6b1[_0x4f76ae('0xf')],_0x4ab6b1[_0x4f76ae('0x84')]),_0x1a45b7['attributes']=_['intersection'](_0x4ab6b1[_0x4f76ae('0xf')],qs[_0x4f76ae('0x8a')](_0xe21a75[_0x4f76ae('0x84')]['fields'])),_0x1a45b7['attributes']=_0x1a45b7['attributes']['length']?_0x1a45b7[_0x4f76ae('0x4c')]:_0x4ab6b1['model'],typeof _0xe21a75['query'][_0x4f76ae('0x13')]==='undefined'&&(_0x1a45b7[_0x4f76ae('0xad')]=qs[_0x4f76ae('0xad')](_0xe21a75[_0x4f76ae('0x84')][_0x4f76ae('0xad')]),_0x1a45b7['offset']=qs[_0x4f76ae('0xf8')](_0xe21a75['query'][_0x4f76ae('0xf8')])),_0x1a45b7[_0x4f76ae('0xa')]=qs[_0x4f76ae('0x10')](_0xe21a75[_0x4f76ae('0x84')]['sort']),_0x1a45b7[_0x4f76ae('0x52')]=qs['filters'](_['pick'](_0xe21a75[_0x4f76ae('0x84')],_0x4ab6b1[_0x4f76ae('0x5f')])),_0x1a45b7[_0x4f76ae('0x52')]['ChatWebsiteId']=_0x3f86b5['id'],_0xe21a75[_0x4f76ae('0x84')]['filter']&&(_0x1a45b7[_0x4f76ae('0x52')]=_[_0x4f76ae('0xc8')](_0x1a45b7[_0x4f76ae('0x52')],{[Op['or']]:_[_0x4f76ae('0x55')](_0x1a45b7[_0x4f76ae('0x4c')],function(_0x180b07){const _0x759f=_0x4f76ae,_0x5594a5={};return _0x5594a5[_0x180b07]={[Op['like']]:'%'+_0xe21a75[_0x759f('0x84')][_0x759f('0xda')]+'%'},_0x5594a5;})})),_0x1a45b7=_['merge']({},_0x1a45b7,_0xe21a75[_0x4f76ae('0xcb')]),db['CannedAnswer']['count']({'where':_0x1a45b7['where']})[_0x4f76ae('0xa0')](function(_0x73b5f0){const _0x4b91b5=_0x4f76ae;return _0x14948f['count']=_0x73b5f0,_0xe21a75[_0x4b91b5('0x84')][_0x4b91b5('0x8c')]&&(_0x1a45b7[_0x4b91b5('0x2d')]=[{'all':!![]}]),db['CannedAnswer']['findAll'](_0x1a45b7);})[_0x4f76ae('0xa0')](function(_0x238300){const _0x245afd=_0x4f76ae;return _0x14948f[_0x245afd('0xca')]=_0x238300,_0x14948f;});})[_0x1334cc('0xa0')](respondWithFilteredResult(_0x2acf4b,_0x1a45b7))[_0x1334cc('0x6f')](handleError(_0x2acf4b,null));},exports[_0x5c4612('0xa5')]=function(_0x387722,_0x5191cf){const _0x2298dc=_0x5c4612;return db['ChatWebsite']['findOne']({'where':{'id':_0x387722['params']['id']}})[_0x2298dc('0xa0')](handleEntityNotFound(_0x5191cf,null))[_0x2298dc('0xa0')](function(_0x3b63bd){const _0x2503f5=_0x2298dc;if(_0x3b63bd)return _0x3b63bd[_0x2503f5('0xa5')](_0x387722[_0x2503f5('0x84')][_0x2503f5('0xd6')]);})[_0x2298dc('0xa0')](respondWithStatusCode(_0x5191cf,null))[_0x2298dc('0x6f')](handleError(_0x5191cf,null));},exports[_0x5c4612('0xdf')]=function(_0x597ab1,_0xb09a1c){const _0x46262d=_0x5c4612;return _0x597ab1['body'][_0x46262d('0x91')]=_0x597ab1[_0x46262d('0x8b')]['filename'],db[_0x46262d('0xc7')]['findOne']({'where':{'id':_0x597ab1[_0x46262d('0xd3')]['id']}})[_0x46262d('0xa0')](handleEntityNotFound(_0xb09a1c,null))[_0x46262d('0xa0')](saveUpdates(_0x597ab1[_0x46262d('0xe2')],null))['then'](respondWithResult(_0xb09a1c,null))[_0x46262d('0x6f')](handleError(_0xb09a1c,null));},exports[_0x5c4612('0x70')]=function(_0x4e94da,_0xbd5155){const _0x49fb40=_0x5c4612;return _0x4e94da[_0x49fb40('0xe2')]['agentAvatar']=_0x4e94da[_0x49fb40('0x8b')][_0x49fb40('0x67')],db[_0x49fb40('0xc7')]['findOne']({'where':{'id':_0x4e94da[_0x49fb40('0xd3')]['id']}})[_0x49fb40('0xa0')](handleEntityNotFound(_0xbd5155,null))[_0x49fb40('0xa0')](saveUpdates(_0x4e94da['body'],null))['then'](respondWithResult(_0xbd5155,null))[_0x49fb40('0x6f')](handleError(_0xbd5155,null));},exports[_0x5c4612('0x61')]=function(_0x1d28ee,_0x3ec291){const _0x32a310=_0x5c4612;return _0x1d28ee[_0x32a310('0xe2')][_0x32a310('0x90')]=_0x1d28ee[_0x32a310('0x8b')][_0x32a310('0x67')],db['ChatWebsite'][_0x32a310('0xe7')]({'where':{'id':_0x1d28ee[_0x32a310('0xd3')]['id']}})[_0x32a310('0xa0')](handleEntityNotFound(_0x3ec291,null))[_0x32a310('0xa0')](saveUpdates(_0x1d28ee[_0x32a310('0xe2')],null))[_0x32a310('0xa0')](respondWithResult(_0x3ec291,null))[_0x32a310('0x6f')](handleError(_0x3ec291,null));},exports[_0x5c4612('0xd8')]=function(_0x2b831f,_0x549daf){const _0x523245=_0x5c4612;return _0x2b831f['body'][_0x523245('0xa6')]=_0x2b831f[_0x523245('0x8b')][_0x523245('0x67')],db[_0x523245('0xc7')][_0x523245('0xe7')]({'where':{'id':_0x2b831f['params']['id']}})['then'](handleEntityNotFound(_0x549daf,null))[_0x523245('0xa0')](saveUpdates(_0x2b831f[_0x523245('0xe2')],null))[_0x523245('0xa0')](respondWithResult(_0x549daf,null))[_0x523245('0x6f')](handleError(_0x549daf,null));},exports['getLogo']=function(_0x53e236,_0x1dabb0){const _0x55dcbd=_0x5c4612;let _0x5b32eb=path[_0x55dcbd('0xe')](config[_0x55dcbd('0x9c')],'server/files/images/logos/default_logo.svg');const _0x18cd07={'where':{'id':_0x53e236[_0x55dcbd('0xd3')]['id']},'attributes':['id',_0x55dcbd('0x91')],'raw':!![]};let _0x3fe005=![];return require(_0x55dcbd('0x98'))[_0x55dcbd('0x83')]()[_0x55dcbd('0xa0')](function(_0x3db77d){const _0x54c9c2=_0x55dcbd;_0x3db77d&&(_0x3fe005=_0x3db77d[_0x54c9c2('0x14')]);})[_0x55dcbd('0xa0')](function(){const _0x4533c0=_0x55dcbd;return db['ChatWebsite'][_0x4533c0('0xe7')](_0x18cd07);})['then'](handleEntityNotFound(_0x1dabb0,null))[_0x55dcbd('0xa0')](function(_0x11ddd8){const _0xe95d5d=_0x55dcbd;if(_0x11ddd8)return!_['isNil'](_0x11ddd8[_0xe95d5d('0x91')])&&(fs[_0xe95d5d('0xfb')](path[_0xe95d5d('0xe')](config[_0xe95d5d('0x9c')],'server/files/images/logos/',_0x11ddd8[_0xe95d5d('0x91')]))&&_0x3fe005&&(_0x5b32eb=path[_0xe95d5d('0xe')](config[_0xe95d5d('0x9c')],_0xe95d5d('0x89'),_0x11ddd8[_0xe95d5d('0x91')]))),_0x1dabb0['download'](_0x5b32eb);})[_0x55dcbd('0x6f')](handleError(_0x1dabb0,null));},exports[_0x5c4612('0xb7')]=function(_0x58289c,_0x3e3831){const _0x9710b6=_0x5c4612;let _0x430282=path[_0x9710b6('0xe')](config[_0x9710b6('0x9c')],'server/files/images/avatars/default_avatar.png');const _0x3d6ea5={'where':{'id':_0x58289c[_0x9710b6('0xd3')]['id']},'attributes':['id',_0x9710b6('0x4')],'raw':!![]};return db['ChatWebsite'][_0x9710b6('0xe7')](_0x3d6ea5)[_0x9710b6('0xa0')](handleEntityNotFound(_0x3e3831,null))[_0x9710b6('0xa0')](function(_0x2aab5a){const _0x58cb99=_0x9710b6;if(_0x2aab5a)return!_['isNil'](_0x2aab5a[_0x58cb99('0x4')])&&(fs[_0x58cb99('0xfb')](path[_0x58cb99('0xe')](config[_0x58cb99('0x9c')],_0x58cb99('0xa9'),_0x2aab5a[_0x58cb99('0x4')]))&&(_0x430282=path['join'](config['root'],_0x58cb99('0xa9'),_0x2aab5a['agentAvatar']))),_0x3e3831[_0x58cb99('0x6')](_0x430282);})[_0x9710b6('0x6f')](handleError(_0x3e3831,null));},exports[_0x5c4612('0x92')]=function(_0x5d8b76,_0x2fa5d5){const _0x105d8d=_0x5c4612;let _0x62e92e=path['join'](config[_0x105d8d('0x9c')],_0x105d8d('0x3'));const _0x209d3d={'where':{'id':_0x5d8b76[_0x105d8d('0xd3')]['id']},'attributes':['id',_0x105d8d('0x90'),_0x105d8d('0xf4')],'raw':!![]};return db[_0x105d8d('0xc7')][_0x105d8d('0xe7')](_0x209d3d)[_0x105d8d('0xa0')](handleEntityNotFound(_0x2fa5d5,null))['then'](function(_0x332988){const _0x47b1ae=_0x105d8d;if(_0x332988)return!_[_0x47b1ae('0xb5')](_0x332988[_0x47b1ae('0x90')])&&(fs[_0x47b1ae('0xfb')](path[_0x47b1ae('0xe')](config['root'],_0x47b1ae('0xa9'),_0x332988['customerAvatar']))&&_0x332988[_0x47b1ae('0xf4')]&&(_0x62e92e=path[_0x47b1ae('0xe')](config['root'],_0x47b1ae('0xa9'),_0x332988[_0x47b1ae('0x90')]))),_0x2fa5d5[_0x47b1ae('0x6')](_0x62e92e);})['catch'](handleError(_0x2fa5d5,null));},exports['getSystemAvatar']=function(_0x11a36b,_0x5e8c9a){const _0xd639c8=_0x5c4612;let _0x57634f=path[_0xd639c8('0xe')](config[_0xd639c8('0x9c')],_0xd639c8('0x62'));const _0x14c473={'where':{'id':_0x11a36b[_0xd639c8('0xd3')]['id']},'attributes':['id',_0xd639c8('0xa6')],'raw':!![]};return db['ChatWebsite'][_0xd639c8('0xe7')](_0x14c473)['then'](handleEntityNotFound(_0x5e8c9a,null))[_0xd639c8('0xa0')](function(_0x838db2){const _0xbe6397=_0xd639c8;if(_0x838db2)return!_[_0xbe6397('0xb5')](_0x838db2[_0xbe6397('0xa6')])&&(fs[_0xbe6397('0xfb')](path[_0xbe6397('0xe')](config[_0xbe6397('0x9c')],_0xbe6397('0xa9'),_0x838db2[_0xbe6397('0xa6')]))&&(_0x57634f=path['join'](config[_0xbe6397('0x9c')],'server/files/images/avatars/',_0x838db2[_0xbe6397('0xa6')]))),_0x5e8c9a[_0xbe6397('0x6')](_0x57634f);})['catch'](handleError(_0x5e8c9a,null));},exports[_0x5c4612('0xce')]=function(_0x4f05db,_0x2b49ce){const _0x2b9b49=_0x5c4612,_0xf3022c=require(_0x2b9b49('0x7f')),_0x328b90=new _0xf3022c(),_0x38be5f=_0x328b90['setUA'](_0x4f05db['headers'][_0x2b9b49('0xbd')])[_0x2b9b49('0x86')](),_0x2e8c96={'body':_0x4f05db['body'],'channel':'chat'};let _0x5bd4d7=[],_0x24d24f=[];const _0x1850fa={};let _0x181262=![];return db[_0x2b9b49('0x57')]['describe']()[_0x2b9b49('0xa0')](function(_0x2662a6){const _0x5913c4=_0x2b9b49;if(!_0x2662a6)throw new ValidationError(_0x5913c4('0xea'));_0x5bd4d7=_[_0x5913c4('0x94')](_[_0x5913c4('0x97')](_0x2662a6),['createdAt','updatedAt']),_0x24d24f=_[_0x5913c4('0x94')](_[_0x5913c4('0x97')](_0x2662a6),[_0x5913c4('0x51'),_0x5913c4('0xcc'),_0x5913c4('0xdc'),'ListId']);_0x4f05db[_0x5913c4('0xe2')]['id']&&delete _0x4f05db[_0x5913c4('0xe2')]['id'];if(_[_0x5913c4('0xb5')](_0x4f05db['body'][_0x5913c4('0xe5')]))throw new ValidationError(_0x5913c4('0x56'));if(_[_0x5913c4('0xb5')](_0x4f05db['body'][_0x5913c4('0xe2')])||_0x4f05db[_0x5913c4('0xe2')][_0x5913c4('0xe2')]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x5913c4('0xb5')](_0x4f05db[_0x5913c4('0xe2')][_0x5913c4('0x3a')]))throw new ValidationError('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x24d24f);if(!_[_0x5913c4('0xbb')](_0x24d24f,_0x4f05db[_0x5913c4('0xe2')]['mapKey']))throw new ValidationError(_0x5913c4('0x4e')+_0x24d24f);_0x1850fa[_0x4f05db[_0x5913c4('0xe2')][_0x5913c4('0x3a')]]=_0x4f05db[_0x5913c4('0xe2')][_0x5913c4('0xe5')];})['then'](function(){const _0x3f1cc4=_0x2b9b49;return db[_0x3f1cc4('0xc7')][_0x3f1cc4('0xe7')]({'where':{'id':_0x4f05db['params']['id']},'include':[{'model':db[_0x3f1cc4('0x48')],'as':_0x3f1cc4('0xec'),'include':[{'model':db[_0x3f1cc4('0x57')],'as':_0x3f1cc4('0xf2'),'where':_0x1850fa,'limit':0x1,'order':[[_0x3f1cc4('0xcc'),'DESC']]}]},{'model':db['ChatApplication'],'as':_0x3f1cc4('0xf7')}]});})[_0x2b9b49('0xa0')](handleEntityNotFound(_0x2b49ce,null))[_0x2b9b49('0xa0')](function(_0x485846){const _0x1bd92e=_0x2b9b49;if(_0x485846&&_0x485846[_0x1bd92e('0xec')]){_0x2e8c96[_0x1bd92e('0x4a')]=_0x485846,_0x2e8c96['applications']=_0x485846[_0x1bd92e('0xf7')],_0x2e8c96[_0x1bd92e('0xb4')]=_0x485846[_0x1bd92e('0xec')],_0x2e8c96[_0x1bd92e('0x28')]=_[_0x1bd92e('0xe1')](_0x2e8c96[_0x1bd92e('0x28')],[_0x1bd92e('0xd5')],[_0x1bd92e('0xbf')]);_0x2e8c96[_0x1bd92e('0x4a')][_0x1bd92e('0xf7')]&&delete _0x2e8c96[_0x1bd92e('0x4a')][_0x1bd92e('0xf7')];if(_0x2e8c96['account']['List']&&_0x2e8c96['account']['List'][_0x1bd92e('0xf2')]['length'])return _0x2e8c96[_0x1bd92e('0x4a')][_0x1bd92e('0xec')][_0x1bd92e('0xf2')][0x0];const _0x24a63e=_[_0x1bd92e('0xd7')](_0x4f05db[_0x1bd92e('0xe2')],{'firstName':_0x4f05db[_0x1bd92e('0xe2')]['from'],'ListId':_0x485846[_0x1bd92e('0x4f')]});return _0x24a63e[_0x4f05db['body']['mapKey']]=_0x4f05db['body'][_0x1bd92e('0xe5')],db[_0x1bd92e('0x57')][_0x1bd92e('0x34')](_0x24a63e,{'fields':_0x5bd4d7,'raw':!![]});}})[_0x2b9b49('0xa0')](handleEntityNotFound(_0x2b49ce,null))[_0x2b9b49('0xa0')](function(_0x50ffd0){const _0x55fc5e=_0x2b9b49;_0x2e8c96['contact']=_0x50ffd0;let _0x4c9632=_0x4f05db[_0x55fc5e('0xe2')][_0x55fc5e('0x1b')];if(_0x4f05db[_0x55fc5e('0x32')]['cf-connecting-ip'])_0x4c9632=_0x4f05db['headers'][_0x55fc5e('0x63')];else _0x4f05db[_0x55fc5e('0x32')][_0x55fc5e('0x38')]&&(_0x4c9632=_[_0x55fc5e('0x75')](_0x4f05db[_0x55fc5e('0x32')][_0x55fc5e('0x38')][_0x55fc5e('0x41')](',')));if(_0x50ffd0){const _0x47ef60={'ContactId':_0x50ffd0['id'],'ChatWebsiteId':_0x4f05db[_0x55fc5e('0xd3')]['id'],'from':(_0x50ffd0['firstName']||'')+'\x20'+(_0x50ffd0[_0x55fc5e('0x68')]||''),'customerIp':_0x4c9632,'customerPort':_0x4f05db[_0x55fc5e('0x32')]['x-real-port']?_0x4f05db[_0x55fc5e('0x32')][_0x55fc5e('0x99')]:null,'referer':_0x4f05db[_0x55fc5e('0xe2')][_0x55fc5e('0x46')],'browserName':_0x38be5f['browser'][_0x55fc5e('0xb2')]&&_0x38be5f['browser'][_0x55fc5e('0x74')]?util[_0x55fc5e('0x96')](_0x55fc5e('0xae'),_0x38be5f[_0x55fc5e('0xc3')][_0x55fc5e('0xb2')],_0x38be5f[_0x55fc5e('0xc3')]['version']):_0x55fc5e('0xbe'),'browserVersion':_0x38be5f[_0x55fc5e('0xc3')]['version']||_0x55fc5e('0xbe'),'osName':util[_0x55fc5e('0x96')]('%s\x20%s',_0x38be5f['os']['name'],_0x38be5f['os'][_0x55fc5e('0x74')]),'osVersion':_0x38be5f['os'][_0x55fc5e('0x74')],'deviceModel':_0x38be5f[_0x55fc5e('0xd9')][_0x55fc5e('0xf')]&&_0x38be5f['device'][_0x55fc5e('0xf5')]?util[_0x55fc5e('0x96')](_0x55fc5e('0x82'),_0x38be5f['device'][_0x55fc5e('0xf')],_0x38be5f[_0x55fc5e('0xd9')][_0x55fc5e('0xf5')],_0x38be5f['device'][_0x55fc5e('0x81')]):null,'deviceVendor':_0x38be5f['device'][_0x55fc5e('0xf5')],'deviceType':_0x38be5f['device'][_0x55fc5e('0x81')],'formData':JSON[_0x55fc5e('0xfd')](_0x4f05db[_0x55fc5e('0xe2')])},_0x4473af={'ChatWebsiteId':_0x4f05db[_0x55fc5e('0xd3')]['id'],'closed':![]};if(_0x4f05db['body']['threadId'])return _0x4473af[_0x55fc5e('0x71')]=_0x4f05db[_0x55fc5e('0xe2')]['threadId'],db['ChatInteraction'][_0x55fc5e('0xe7')]({'where':_0x4473af})[_0x55fc5e('0xa0')](function(_0x134764){const _0x1497d6=_0x55fc5e;if(_0x134764)return[_0x134764,![]];return _0x47ef60[_0x1497d6('0x71')]=_0x4f05db[_0x1497d6('0xe2')][_0x1497d6('0x71')],_0x47ef60[_0x1497d6('0x9e')]=_0x4f05db[_0x1497d6('0xe2')][_0x1497d6('0x9e')],db[_0x1497d6('0xaf')][_0x1497d6('0x34')](_0x47ef60)[_0x1497d6('0xa0')](function(_0x3f9115){return[_0x3f9115,!![]];});});_0x4473af[_0x55fc5e('0x0')]=_0x50ffd0['id'];if(_0x4f05db[_0x55fc5e('0xe2')]['interaction']&&_0x4f05db[_0x55fc5e('0xe2')]['interaction']['id'])return _0x4473af['id']=_0x4f05db[_0x55fc5e('0xe2')][_0x55fc5e('0x2b')]['id'],db[_0x55fc5e('0xaf')]['findOne']({'where':_0x4473af})['then'](function(_0x652421){const _0x37d2f1=_0x55fc5e;if(_0x652421)return[_0x652421,![]];return db[_0x37d2f1('0xaf')][_0x37d2f1('0x34')](_0x47ef60)[_0x37d2f1('0xa0')](function(_0xdc7001){return[_0xdc7001,!![]];});});return db[_0x55fc5e('0xaf')]['create'](_0x47ef60)[_0x55fc5e('0xa0')](function(_0x58a04e){return[_0x58a04e,!![]];});}})[_0x2b9b49('0xa0')](function([_0x37919a,_0x5dab4b]){const _0x12d301=_0x2b9b49;if(_0x37919a){_0x181262=_0x5dab4b;if(!_0x5dab4b){const _0x7aaefe={'from':(_0x2e8c96[_0x12d301('0x66')]['firstName']||'')+'\x20'+(_0x2e8c96[_0x12d301('0x66')]['lastName']||'')};return _0x4f05db[_0x12d301('0xe2')][_0x12d301('0x71')]&&_0x4f05db['body'][_0x12d301('0x58')]&&_0x4f05db[_0x12d301('0xe2')][_0x12d301('0x71')]!=_0x4f05db[_0x12d301('0xe2')]['messageId']&&(_0x7aaefe['threadId']=_0x4f05db[_0x12d301('0xe2')][_0x12d301('0x58')]),_0x37919a[_0x12d301('0x2')](_0x7aaefe);}else return _0x37919a;}})['then'](function(_0xab3339){const _0x2b34a6=_0x2b9b49;return _0x2e8c96['interaction']=_0xab3339[_0x2b34a6('0xc1')]({'plain':!![]}),_0x2e8c96[_0x2b34a6('0x2b')][_0x2b34a6('0x9d')]=_0x181262,_0x2e8c96[_0x2b34a6('0x2b')]['created']&&(_0x2e8c96[_0x2b34a6('0x4a')]['autoclose']&&_0x2e8c96['applications'][_0x2b34a6('0x1a')]({'id':0x0,'priority':_0x2e8c96[_0x2b34a6('0x28')][_0x2b34a6('0x26')]+0x1,'app':_0x2b34a6('0x85'),'appdata':_0x2b34a6('0x95'),'interval':_0x2b34a6('0x9a')})),db[_0x2b34a6('0x64')]['create']({'body':_0x4f05db[_0x2b34a6('0xe2')]['body'],'ChatWebsiteId':_0x4f05db[_0x2b34a6('0xd3')]['id'],'ChatInteractionId':_0xab3339['id'],'direction':'in','ContactId':_0x2e8c96[_0x2b34a6('0x66')]['id'],'AttachmentId':_0x4f05db[_0x2b34a6('0xe2')][_0x2b34a6('0xc2')]});})[_0x2b9b49('0xa0')](function(_0x5ff300){const _0x285e94=_0x2b9b49;_0x2e8c96['message']=_0x5ff300;if(_0x2e8c96['interaction'][_0x285e94('0x44')])return db[_0x285e94('0x73')][_0x285e94('0xe7')]({'attributes':['id',_0x285e94('0xb2')],'where':{'id':_0x2e8c96[_0x285e94('0x2b')][_0x285e94('0x44')]}})['then'](function(_0x1aef5b){const _0xfbb09d=_0x285e94;return _0x1aef5b&&(_0x2e8c96[_0xfbb09d('0x28')][_0xfbb09d('0x3b')]({'id':0x0,'priority':0x0,'app':_0xfbb09d('0x20'),'appdata':_0x1aef5b[_0xfbb09d('0xb2')]+','+(_0x2e8c96[_0xfbb09d('0x4a')][_0xfbb09d('0xfc')]||0xa),'interval':'*,*,*,*'}),_0x2e8c96[_0xfbb09d('0xba')]=!![]),respondWithRpcPromise('Start',_0xfbb09d('0x31'),_0x2e8c96);});return respondWithRpcPromise('Start',_0x285e94('0x31'),_0x2e8c96);})[_0x2b9b49('0xa0')](function(_0x25d32d){const _0x210696=_0x2b9b49;return respondWithRpcPromise(_0x210696('0xf9'),_0x210696('0xf9'),{'event':'notify','message':_0x25d32d},client9002),_0x25d32d;})['then'](respondWithResult(_0x2b49ce,null))[_0x2b9b49('0x6f')](handleError(_0x2b49ce,null));},exports['offline']=function(_0x31200b,_0x12af14){const _0x152ec7=_0x5c4612;let _0xc688cd,_0x5603fc,_0x106236=[];const _0x2916f5={};return db[_0x152ec7('0x57')][_0x152ec7('0xb8')]()['then'](function(_0x4c3a9a){const _0x4f0db0=_0x152ec7;if(!_0x4c3a9a)throw new ValidationError(_0x4f0db0('0xea'));_0x106236=_['difference'](_['keys'](_0x4c3a9a),[_0x4f0db0('0x51'),_0x4f0db0('0xcc'),_0x4f0db0('0xdc'),_0x4f0db0('0x4f')]);_0x31200b[_0x4f0db0('0xe2')]['id']&&delete _0x31200b[_0x4f0db0('0xe2')]['id'];if(_['isNil'](_0x31200b[_0x4f0db0('0xe2')][_0x4f0db0('0xe5')]))throw _0x12af14['status'](0x1f4)[_0x4f0db0('0xa1')](new ValidationError(_0x4f0db0('0x56')));if(_['isNil'](_0x31200b[_0x4f0db0('0xe2')]['body'])||_0x31200b['body'][_0x4f0db0('0xe2')]==='')throw _0x12af14[_0x4f0db0('0xa8')](0x1f4)[_0x4f0db0('0xa1')](new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty'));if(_[_0x4f0db0('0xb5')](_0x31200b[_0x4f0db0('0xe2')][_0x4f0db0('0x59')]))throw _0x12af14[_0x4f0db0('0xa8')](0x1f4)['send'](new ValidationError(_0x4f0db0('0xb1')+_0x106236));if(!_[_0x4f0db0('0xbb')](_0x106236,_0x31200b[_0x4f0db0('0xe2')][_0x4f0db0('0x59')]))throw _0x12af14[_0x4f0db0('0xa8')](0x1f4)[_0x4f0db0('0xa1')](new ValidationError(_0x4f0db0('0x18')+_0x106236));_0x2916f5[_0x31200b[_0x4f0db0('0xe2')]['mapKeyOffline']]=_0x31200b['body'][_0x4f0db0('0xe5')];})[_0x152ec7('0xa0')](function(){const _0x35446b=_0x152ec7;return db['ChatWebsite'][_0x35446b('0xe7')]({'where':{'id':_0x31200b[_0x35446b('0xd3')]['id']},'include':[{'model':db[_0x35446b('0x48')],'as':_0x35446b('0xec')}]});})['then'](handleEntityNotFound(_0x12af14,null))[_0x152ec7('0xa0')](function(_0x1359ea){const _0x1e5d05=_0x152ec7;if(_0x1359ea&&_0x1359ea[_0x1e5d05('0xec')]){_0x5603fc=_0x1359ea;const _0xf4b44b=_[_0x1e5d05('0xd7')](_0x31200b[_0x1e5d05('0xe2')],{'firstName':_0x31200b['body']['from'],'phone':_0x31200b['body'][_0x1e5d05('0xe5')],'ListId':_0x1359ea[_0x1e5d05('0x4f')]});return _0xf4b44b[_0x31200b['body']['mapKeyOffline']]=_0x31200b[_0x1e5d05('0xe2')][_0x1e5d05('0xe5')],db[_0x1e5d05('0x57')][_0x1e5d05('0xf3')]({'where':_0x2916f5,'defaults':_0xf4b44b});}})['then'](function([_0x4ab7a7]){const _0xdfc70e=_0x152ec7;if(_0x4ab7a7){const _0x22fc27=fs[_0xdfc70e('0x33')](path[_0xdfc70e('0xe')](config['root'],'server/files/templates/chatOfflineMessage.ejs'),'utf8'),_0x54bfd4=ejs[_0xdfc70e('0xed')](_0x22fc27,{'body':_[_0xdfc70e('0xd2')](_0x31200b['body'][_0xdfc70e('0xe2')]),'bodyTitle':_0x5603fc[_0xdfc70e('0xfa')]});return db['ChatOfflineMessage'][_0xdfc70e('0x34')]({'body':_0x54bfd4,'ContactId':_0x4ab7a7['id'],'ChatWebsiteId':_0x5603fc['id']});}})[_0x152ec7('0xa0')](function(_0x3d52db){const _0x445c0d=_0x152ec7;if(_0x3d52db)return _0xc688cd=_0x3d52db,db[_0x445c0d('0xa2')][_0x445c0d('0xe7')]({'where':{'service':!![]},'include':[{'model':db[_0x445c0d('0xe9')],'as':_0x445c0d('0x7b'),'raw':!![]}]});})[_0x152ec7('0xa0')](function(_0x58915a){const _0x275491=_0x152ec7;if(_0x58915a&&_0x58915a['Smtp']&&_0x5603fc[_0x275491('0x72')]){const _0x57bd6c={'tls':{'rejectUnauthorized':![]}};return _0x58915a[_0x275491('0x7b')][_0x275491('0x6e')]?_0x57bd6c[_0x275491('0x6e')]=_0x58915a['Smtp'][_0x275491('0x6e')]:(_0x57bd6c[_0x275491('0x2c')]=_0x58915a[_0x275491('0x7b')][_0x275491('0x2c')],_0x57bd6c['port']=_0x58915a[_0x275491('0x7b')][_0x275491('0x2e')],_0x57bd6c[_0x275491('0x78')]=_0x58915a[_0x275491('0x7b')][_0x275491('0x78')]),_0x58915a[_0x275491('0x7b')]['authentication']&&(_0x57bd6c[_0x275491('0xb3')]={'user':_0x58915a[_0x275491('0x7b')][_0x275491('0x93')],'pass':_0x58915a[_0x275491('0x7b')][_0x275491('0xac')]}),respondWithRpcPromise('SendMail',_0x275491('0xb6'),{'account':_0x57bd6c,'message':{'from':util[_0x275491('0x96')](_0x275491('0x24'),_0x58915a[_0x275491('0xb2')],_0x58915a[_0x275491('0xc0')]||_0x58915a[_0x275491('0x7b')][_0x275491('0x93')]),'to':_0x5603fc[_0x275491('0x72')],'subject':_0x5603fc[_0x275491('0x11')],'text':_0xc688cd['body']}},client9003)[_0x275491('0xa0')](function(){return _0xc688cd;})[_0x275491('0x6f')](function(_0x3689fd){const _0x3874ee=_0x275491;console[_0x3874ee('0xf6')](_0x3689fd);});}})[_0x152ec7('0xa0')](function(){if(_0xc688cd)return _0xc688cd;})[_0x152ec7('0xa0')](respondWithResult(_0x12af14,null))[_0x152ec7('0x6f')](handleError(_0x12af14,null));},exports[_0x5c4612('0x87')]=function(_0x2f4736,_0x4594ee){const _0x4734a8=_0x5c4612;return db[_0x4734a8('0xaf')][_0x4734a8('0xe7')]({'where':{'id':_0x2f4736[_0x4734a8('0xd3')]['id']}})[_0x4734a8('0xa0')](function(_0x2ce364){const _0xc76568=_0x4734a8;if(_0x2ce364)return _0x2ce364['addInteraction'](_0x2f4736[_0xc76568('0xe2')]['ids'],{'through':_[_0xc76568('0x9f')](_0x2f4736['body'],[_0xc76568('0xd6'),'id'])});})[_0x4734a8('0xa0')](respondWithResult(_0x4594ee,null))[_0x4734a8('0x6f')](handleError(_0x4594ee,null));},exports['getInteractions']=function(_0x1e5c07,_0x38deb4){const _0x284b8a=_0x5c4612;let _0x4d07ab={'raw':![],'where':{}};const _0x3e58f4={},_0x3115ea={'count':0x0,'rows':[]};return db['ChatWebsite']['findOne']({'where':{'id':_0x1e5c07[_0x284b8a('0xd3')]['id']}})['then'](handleEntityNotFound(_0x38deb4,null))[_0x284b8a('0xa0')](function(_0x5b55a6){const _0x33343b=_0x284b8a;if(_0x5b55a6)return _0x3e58f4[_0x33343b('0xf')]=_[_0x33343b('0x97')](db['ChatInteraction'][_0x33343b('0x5c')]),_0x3e58f4[_0x33343b('0x84')]=_[_0x33343b('0x97')](_0x1e5c07['query']),_0x3e58f4['filters']=_[_0x33343b('0xf0')](_0x3e58f4[_0x33343b('0xf')],_0x3e58f4[_0x33343b('0x84')]),_0x4d07ab[_0x33343b('0x4c')]=_[_0x33343b('0xf0')](_0x3e58f4[_0x33343b('0xf')],qs['fields'](_0x1e5c07['query'][_0x33343b('0x8a')])),_0x4d07ab[_0x33343b('0x4c')]=_0x4d07ab[_0x33343b('0x4c')][_0x33343b('0x26')]?_0x4d07ab[_0x33343b('0x4c')]:_0x3e58f4[_0x33343b('0xf')],typeof _0x1e5c07[_0x33343b('0x84')][_0x33343b('0x13')]===_0x33343b('0xde')&&(_0x4d07ab[_0x33343b('0xad')]=qs[_0x33343b('0xad')](_0x1e5c07[_0x33343b('0x84')][_0x33343b('0xad')]),_0x4d07ab['offset']=qs[_0x33343b('0xf8')](_0x1e5c07['query']['offset'])),_0x4d07ab[_0x33343b('0xa')]=qs[_0x33343b('0x10')](_0x1e5c07[_0x33343b('0x84')][_0x33343b('0x10')]),_0x4d07ab[_0x33343b('0x52')]=qs[_0x33343b('0x5f')](_[_0x33343b('0xa3')](_0x1e5c07[_0x33343b('0x84')],_0x3e58f4[_0x33343b('0x5f')])),_0x4d07ab[_0x33343b('0x52')][_0x33343b('0x69')]=_0x5b55a6['id'],_0x1e5c07[_0x33343b('0x84')][_0x33343b('0xda')]&&(_0x4d07ab[_0x33343b('0x52')]=_[_0x33343b('0xc8')](_0x4d07ab['where'],{[Op['or']]:_[_0x33343b('0x55')](_0x4d07ab[_0x33343b('0x4c')],function(_0x135356){const _0x2a10af=_0x33343b,_0x11bc04={};return _0x11bc04[_0x135356]={[Op[_0x2a10af('0x8e')]]:'%'+_0x1e5c07['query'][_0x2a10af('0xda')]+'%'},_0x11bc04;})})),_0x4d07ab=_[_0x33343b('0xc8')]({},_0x4d07ab,_0x1e5c07[_0x33343b('0xcb')]),db[_0x33343b('0xaf')]['count']({'where':_0x4d07ab['where']})[_0x33343b('0xa0')](function(_0x2bcc76){const _0x3e70e5=_0x33343b;return _0x3115ea[_0x3e70e5('0xcf')]=_0x2bcc76,_0x1e5c07[_0x3e70e5('0x84')][_0x3e70e5('0x8c')]&&(_0x4d07ab[_0x3e70e5('0x2d')]=[{'model':db['CmContact'],'as':_0x3e70e5('0x1e'),'required':![]},{'model':db[_0x3e70e5('0x73')],'as':'Owner','attributes':[_0x3e70e5('0xb2'),'fullname',_0x3e70e5('0xcd')],'required':![]},{'model':db['Tag'],'as':_0x3e70e5('0x16'),'attributes':['id',_0x3e70e5('0xb2'),_0x3e70e5('0x23')],'where':_0x1e5c07[_0x3e70e5('0x84')][_0x3e70e5('0xaa')]?{'id':_0x1e5c07['query'][_0x3e70e5('0xaa')]}:undefined,'required':_0x1e5c07[_0x3e70e5('0x84')][_0x3e70e5('0xaa')]?!![]:![]}]),db[_0x3e70e5('0xaf')][_0x3e70e5('0x5e')](_0x4d07ab);})['then'](function(_0x80863a){const _0x151299=_0x33343b;return _0x3115ea[_0x151299('0xca')]=_0x80863a,_0x3115ea;});})[_0x284b8a('0xa0')](respondWithFilteredResult(_0x38deb4,_0x4d07ab))['catch'](handleError(_0x38deb4,null));};function iftimePromise(_0x11bd27,_0x10e24e){const _0x2db74b=_0x5c4612;return respondWithRpcPromise(_0x2db74b('0xef'),_0x2db74b('0xd0'),{'command':_0x10e24e[_0x2db74b('0x76')]?util[_0x2db74b('0x96')](_0x2db74b('0x27'),_0x11bd27[_0x2db74b('0x21')],_0x10e24e[_0x2db74b('0x76')]):util[_0x2db74b('0x96')](_0x2db74b('0x1f'),_0x11bd27[_0x2db74b('0x21')])},client9002)[_0x2db74b('0xa0')](function(_0x307284){const _0x4ccbf5=_0x2db74b,_0x5ef67f=_0x307284&&_0x307284[_0x4ccbf5('0x79')]('true')>=0x0?!![]:![];return logger[_0x4ccbf5('0x5a')]('[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)',_0x10e24e['id'],_0x11bd27['id'],_0x11bd27[_0x4ccbf5('0x21')],_0x5ef67f?_0x4ccbf5('0x8'):_0x4ccbf5('0xfe'),_0x10e24e[_0x4ccbf5('0x76')]?_0x10e24e[_0x4ccbf5('0x76')]:'No\x20timezone'),_0x5ef67f;})[_0x2db74b('0x6f')](function(_0x5432d8){const _0x460e75=_0x2db74b;return logger[_0x460e75('0xf6')](_0x460e75('0x65'),_0x10e24e['id'],_0x11bd27['id'],_0x11bd27[_0x460e75('0x21')],util[_0x460e75('0x2a')](_0x5432d8,{'showHidden':![],'depth':null}),_0x10e24e[_0x460e75('0x76')]?_0x10e24e[_0x460e75('0x76')]:_0x460e75('0x54')),![];});}exports[_0x5c4612('0xd0')]=function(_0x34f0e4,_0x1bc008){const _0x2407e2=_0x5c4612;let _0x17d79f=0x0,_0x42a0ce=0x0,_0x433d54=![],_0x4e509c,_0x4bb1cb;return db[_0x2407e2('0xc7')][_0x2407e2('0xe7')]({'where':{'id':_0x34f0e4[_0x2407e2('0xd3')]['id']},'include':[{'model':db['Interval'],'as':_0x2407e2('0xa7'),'include':[{'model':db['Interval'],'as':_0x2407e2('0x19'),'attributes':['id',_0x2407e2('0x21')],'raw':!![]}]}]})[_0x2407e2('0xa0')](handleEntityNotFound(_0x1bc008,null))[_0x2407e2('0xa0')](function(_0x78803c){const _0x2f1342=_0x2407e2;if(_0x78803c)return _0x4e509c=_0x78803c,_0x78803c[_0x2f1342('0x37')]({'raw':!![]});})[_0x2407e2('0xa0')](function(_0x52b50d){return _0x4e509c&&(_0x52b50d&&(_0x4bb1cb=_0x52b50d)),require('../../config/license/util')['getLicense']();})[_0x2407e2('0xa0')](function(_0x52bb8f){const _0x536299=_0x2407e2;_0x52bb8f&&(_0x42a0ce=_0x52bb8f[_0x536299('0x4b')],_0x433d54=_0x52bb8f[_0x536299('0x14')]);})['then'](function(){const _0x3b3801=_0x2407e2;return db['ChatInteraction'][_0x3b3801('0xcf')]({'where':{'closed':![]}});})[_0x2407e2('0xa0')](function(_0x849b0d){const _0x1af557=_0x2407e2;_0x17d79f=_0x849b0d;if(_0x42a0ce&&_0x849b0d>_0x42a0ce)return db[_0x1af557('0xc6')]['findOne']({'where':{'id':0x1}})['then'](function(_0x419b6e){_0x419b6e&&_0x419b6e['increment']('chatLicenseExceeded');});})[_0x2407e2('0xa0')](function(){const _0x50c0ad=_0x2407e2;if(_0x4e509c['Interval']&&_0x4e509c['Interval'][_0x50c0ad('0x19')]){const _0x95005d=[];for(let _0x1d6577=0x0;_0x1d6577<_0x4e509c[_0x50c0ad('0xa7')]['Intervals'][_0x50c0ad('0x26')];_0x1d6577++){const _0x41931a=_0x4e509c[_0x50c0ad('0xa7')]['Intervals'][_0x1d6577][_0x50c0ad('0xc1')]({'plain':!![]});_0x95005d[_0x50c0ad('0x1a')](iftimePromise(_0x41931a,_0x4e509c));}return Promise[_0x50c0ad('0xe0')](_0x95005d)['then'](function(_0x4f4535){const _0x1e7f6d=_0x50c0ad;return _[_0x1e7f6d('0xb9')](_0x4f4535);});}else return!![];})['then'](function(_0x4b8779){const _0xe0baa2=_0x2407e2,_0x441c31=_0x34f0e4[_0xe0baa2('0x77')][_0xe0baa2('0xc1')]('chatVersion'),_0x2ab547=fs[_0xe0baa2('0x33')](path[_0xe0baa2('0xe')](config[_0xe0baa2('0x9c')],_0xe0baa2('0x7a')),_0xe0baa2('0x1c')),_0x553ca7={'chatVersion':_0x441c31,'remote':_0x4e509c[_0xe0baa2('0x9b')],'query':querystring['stringify'](_[_0xe0baa2('0xc8')](_0x4e509c[_0xe0baa2('0xc1')]({'plain':!![]}),{'customerIp':_0x34f0e4[_0xe0baa2('0x32')][_0xe0baa2('0x38')]||_0x34f0e4['headers'][_0xe0baa2('0x43')]||_0x34f0e4[_0xe0baa2('0x5b')][_0xe0baa2('0x15')]||_0x34f0e4['ip'],'referer':_0x34f0e4[_0xe0baa2('0x32')][_0xe0baa2('0x46')],'openedInteractions':_0x17d79f,'maxInteractions':_0x42a0ce,'virtual':_0x433d54[_0xe0baa2('0x4b')],'online':_0x4b8779,'custom':_0x433d54}))[_0xe0baa2('0x50')](/'/g,'\x5c\x27')};_0x1bc008[_0xe0baa2('0xa1')](ejs['render'](Mustache['render'](_0x2ab547,_0x553ca7),{'proactiveActions':_0x4bb1cb,'alignment':_0x4e509c['alignment'],'verticalAlignment':_0x4e509c[_0xe0baa2('0x7')],'div_color':_0x4e509c[_0xe0baa2('0x23')],'text_color':_0x4e509c[_0xe0baa2('0x40')]}));})[_0x2407e2('0x6f')](handleError(_0x1bc008,null));},exports[_0x5c4612('0x49')]=function(_0x132a5e,_0x2b1a01){const _0x7371e8=_0x5c4612;return db[_0x7371e8('0xc7')]['findOne']({'where':{'id':_0x132a5e[_0x7371e8('0xd3')]['id']}})[_0x7371e8('0xa0')](handleEntityNotFound(_0x2b1a01,null))['then'](function(_0x3d7197){const _0x308c32=_0x7371e8;if(_0x3d7197)return db[_0x308c32('0xf1')][_0x308c32('0x80')](function(_0x15f42f){const _0x53645a=_0x308c32;return db[_0x53645a('0xeb')]['destroy']({'where':{'ChatWebsiteId':_0x132a5e[_0x53645a('0xd3')]['id']},'transaction':_0x15f42f})[_0x53645a('0xa0')](function(){const _0x5f3611=_0x53645a,_0x4a6735=_['map'](_0x132a5e[_0x5f3611('0xe2')],function(_0x1b436b){const _0x3ca0e8=_0x5f3611;return _0x1b436b[_0x3ca0e8('0x69')]=_0x132a5e[_0x3ca0e8('0xd3')]['id'],_0x1b436b;});return db[_0x5f3611('0xeb')][_0x5f3611('0xee')](_0x4a6735,{'transaction':_0x15f42f});});})[_0x308c32('0xa0')](function(){const _0x24a187=_0x308c32;return db[_0x24a187('0xeb')][_0x24a187('0xe4')]({'where':{'ChatWebsiteId':_0x132a5e[_0x24a187('0xd3')]['id']},'order':'priority'});});})[_0x7371e8('0xa0')](respondWithResult(_0x2b1a01,null))[_0x7371e8('0x6f')](handleError(_0x2b1a01,null));},exports[_0x5c4612('0x3e')]=function(_0x5b592c,_0x4de38f){const _0x2fc5c0=_0x5c4612;let _0x1513ba={};const _0x4a57d9={};let _0x648d9f,_0x3ba9a8;return db['ChatWebsite'][_0x2fc5c0('0xe7')]({'where':{'id':_0x5b592c['params']['id']}})[_0x2fc5c0('0xa0')](handleEntityNotFound(_0x4de38f,null))['then'](function(_0x4693a1){const _0xfa39b6=_0x2fc5c0;if(_0x4693a1)return _0x648d9f=_0x4693a1,_0x4a57d9[_0xfa39b6('0xf')]=_[_0xfa39b6('0x97')](db[_0xfa39b6('0xeb')][_0xfa39b6('0x5c')]),_0x4a57d9['query']=_['keys'](_0x5b592c['query']),_0x4a57d9[_0xfa39b6('0x5f')]=_[_0xfa39b6('0xf0')](_0x4a57d9[_0xfa39b6('0xf')],_0x4a57d9[_0xfa39b6('0x84')]),_0x1513ba[_0xfa39b6('0x4c')]=_[_0xfa39b6('0xf0')](_0x4a57d9[_0xfa39b6('0xf')],qs[_0xfa39b6('0x8a')](_0x5b592c['query']['fields'])),_0x1513ba[_0xfa39b6('0x4c')]=_0x1513ba[_0xfa39b6('0x4c')][_0xfa39b6('0x26')]?_0x1513ba[_0xfa39b6('0x4c')]:_0x4a57d9[_0xfa39b6('0xf')],_0x1513ba[_0xfa39b6('0xa')]=qs['sort'](_0x5b592c['query'][_0xfa39b6('0x10')]),_0x1513ba[_0xfa39b6('0x52')]=qs['filters'](_[_0xfa39b6('0xa3')](_0x5b592c[_0xfa39b6('0x84')],_0x4a57d9[_0xfa39b6('0x5f')])),_0x5b592c[_0xfa39b6('0x84')][_0xfa39b6('0xda')]&&(_0x1513ba[_0xfa39b6('0x52')]=_[_0xfa39b6('0xc8')](_0x1513ba[_0xfa39b6('0x52')],{[Op['or']]:_[_0xfa39b6('0x55')](_0x1513ba[_0xfa39b6('0x4c')],function(_0x31f54c){const _0x524a41=_0xfa39b6,_0x1a7194={};return _0x1a7194[_0x31f54c]={[Op[_0x524a41('0x8e')]]:'%'+_0x5b592c['query'][_0x524a41('0xda')]+'%'},_0x1a7194;})})),_0x1513ba=_[_0xfa39b6('0xc8')]({},_0x1513ba,_0x5b592c['options']),_0x648d9f[_0xfa39b6('0x3e')](_0x1513ba);})[_0x2fc5c0('0xa0')](function(_0x1a01ff){const _0x1319ef=_0x2fc5c0;if(_0x1a01ff)return _0x3ba9a8=_0x1a01ff[_0x1319ef('0x26')],typeof _0x5b592c['query'][_0x1319ef('0x13')]===_0x1319ef('0xde')&&(_0x1513ba['limit']=qs[_0x1319ef('0xad')](_0x5b592c[_0x1319ef('0x84')][_0x1319ef('0xad')]),_0x1513ba[_0x1319ef('0xf8')]=qs[_0x1319ef('0xf8')](_0x5b592c[_0x1319ef('0x84')]['offset'])),_0x648d9f[_0x1319ef('0x3e')](_0x1513ba);})[_0x2fc5c0('0xa0')](function(_0x39a2cb){if(_0x39a2cb)return _0x39a2cb?{'count':_0x3ba9a8,'rows':_0x39a2cb}:null;})['then'](respondWithResult(_0x4de38f,null))['catch'](handleError(_0x4de38f,null));},exports[_0x5c4612('0x4d')]=function(_0xe01790,_0x4511b3){const _0x19eed3=_0x5c4612;return db[_0x19eed3('0x8d')]['findOne']({'where':{'id':_0xe01790[_0x19eed3('0xd3')]['id']}})[_0x19eed3('0xa0')](function(_0x2188f1){const _0x50ddf5=_0x19eed3;if(_0x2188f1)return _0x2188f1[_0x50ddf5('0x4d')](_0xe01790[_0x50ddf5('0xe2')][_0x50ddf5('0xd6')],{'through':_[_0x50ddf5('0x9f')](_0xe01790[_0x50ddf5('0xe2')],[_0x50ddf5('0xd6'),'id'])});})[_0x19eed3('0xa0')](respondWithResult(_0x4511b3,null))['catch'](handleError(_0x4511b3,null));},exports[_0x5c4612('0x37')]=function(_0x633dbb,_0xe67fbe){const _0x3070ef=_0x5c4612;let _0x57a6e1={};const _0x5a00d3={};let _0x418a05,_0x3a0ead;return db[_0x3070ef('0xc7')][_0x3070ef('0xe7')]({'where':{'id':_0x633dbb[_0x3070ef('0xd3')]['id']}})[_0x3070ef('0xa0')](handleEntityNotFound(_0xe67fbe,null))[_0x3070ef('0xa0')](function(_0xf4a0e6){const _0x3dfff0=_0x3070ef;if(_0xf4a0e6)return _0x418a05=_0xf4a0e6,_0x5a00d3[_0x3dfff0('0xf')]=_['keys'](db['ChatProactiveAction'][_0x3dfff0('0x5c')]),_0x5a00d3[_0x3dfff0('0x84')]=_[_0x3dfff0('0x97')](_0x633dbb[_0x3dfff0('0x84')]),_0x5a00d3[_0x3dfff0('0x5f')]=_['intersection'](_0x5a00d3['model'],_0x5a00d3[_0x3dfff0('0x84')]),_0x57a6e1['attributes']=_[_0x3dfff0('0xf0')](_0x5a00d3[_0x3dfff0('0xf')],qs[_0x3dfff0('0x8a')](_0x633dbb['query'][_0x3dfff0('0x8a')])),_0x57a6e1[_0x3dfff0('0x4c')]=_0x57a6e1[_0x3dfff0('0x4c')][_0x3dfff0('0x26')]?_0x57a6e1['attributes']:_0x5a00d3[_0x3dfff0('0xf')],_0x57a6e1[_0x3dfff0('0xa')]=qs[_0x3dfff0('0x10')](_0x633dbb[_0x3dfff0('0x84')][_0x3dfff0('0x10')]),_0x57a6e1[_0x3dfff0('0x52')]=qs['filters'](_[_0x3dfff0('0xa3')](_0x633dbb[_0x3dfff0('0x84')],_0x5a00d3[_0x3dfff0('0x5f')])),_0x633dbb[_0x3dfff0('0x84')][_0x3dfff0('0xda')]&&(_0x57a6e1['where']=_['merge'](_0x57a6e1[_0x3dfff0('0x52')],{[Op['or']]:_[_0x3dfff0('0x55')](_0x57a6e1[_0x3dfff0('0x4c')],function(_0xc90644){const _0x2eef0b=_0x3dfff0,_0x4fb881={};return _0x4fb881[_0xc90644]={[Op[_0x2eef0b('0x8e')]]:'%'+_0x633dbb[_0x2eef0b('0x84')][_0x2eef0b('0xda')]+'%'},_0x4fb881;})})),_0x57a6e1=_[_0x3dfff0('0xc8')]({},_0x57a6e1,_0x633dbb['options']),_0x418a05[_0x3dfff0('0x37')](_0x57a6e1);})[_0x3070ef('0xa0')](function(_0x454477){const _0x11472a=_0x3070ef;if(_0x454477)return _0x3a0ead=_0x454477[_0x11472a('0x26')],typeof _0x633dbb[_0x11472a('0x84')]['nolimit']==='undefined'&&(_0x57a6e1['limit']=qs[_0x11472a('0xad')](_0x633dbb[_0x11472a('0x84')]['limit']),_0x57a6e1[_0x11472a('0xf8')]=qs['offset'](_0x633dbb[_0x11472a('0x84')][_0x11472a('0xf8')])),_0x418a05[_0x11472a('0x37')](_0x57a6e1);})[_0x3070ef('0xa0')](function(_0x4a860c){if(_0x4a860c)return _0x4a860c?{'count':_0x3a0ead,'rows':_0x4a860c}:null;})[_0x3070ef('0xa0')](respondWithResult(_0xe67fbe,null))['catch'](handleError(_0xe67fbe,null));},exports['getFields']=function(_0x3fa253,_0x260cb2){const _0x5d4cfd=_0x5c4612,_0x4383d4=_0x3fa253[_0x5d4cfd('0x84')][_0x5d4cfd('0x8f')]===_0x5d4cfd('0x12')?_0x5d4cfd('0x60'):'onlineForm';return db[_0x5d4cfd('0xc7')]['findOne']({'attributes':['id',_0x4383d4],'where':{'id':_0x3fa253[_0x5d4cfd('0xd3')]['id']}})[_0x5d4cfd('0xa0')](handleEntityNotFound(_0x260cb2,null))[_0x5d4cfd('0xa0')](function(_0x542ec8){const _0x4c47c9=_0x5d4cfd;if(_0x542ec8){const _0x13f358=_0x542ec8[_0x4383d4],_0x4fb823=_0x13f358&&_0x13f358[_0x4c47c9('0xa4')]?_0x13f358[_0x4c47c9('0xa4')]:[];_0x260cb2[_0x4c47c9('0xa1')]({'fromKey':_[_0x4c47c9('0xb5')](_0x13f358[_0x4c47c9('0x3f')])?undefined:_0x13f358[_0x4c47c9('0x3f')],'count':_0x4fb823[_0x4c47c9('0x26')],'rows':_0x4fb823});}})[_0x5d4cfd('0x6f')](handleError(_0x260cb2,null));},exports['getOfflineMessages']=function(_0x36ba2a,_0x27b21b){const _0x407a01=_0x5c4612;let _0xbef116={'raw':![],'where':{}};const _0x271b07={},_0x1bb994={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x407a01('0xe7')]({'where':{'id':_0x36ba2a['params']['id']}})[_0x407a01('0xa0')](handleEntityNotFound(_0x27b21b,null))[_0x407a01('0xa0')](function(_0x3020b9){const _0x4ede04=_0x407a01;if(_0x3020b9)return _0x271b07[_0x4ede04('0xf')]=_['keys'](db['ChatOfflineMessage'][_0x4ede04('0x5c')]),_0x271b07[_0x4ede04('0x84')]=_[_0x4ede04('0x97')](_0x36ba2a['query']),_0x271b07[_0x4ede04('0x5f')]=_['intersection'](_0x271b07[_0x4ede04('0xf')],_0x271b07[_0x4ede04('0x84')]),_0xbef116['attributes']=_[_0x4ede04('0xf0')](_0x271b07[_0x4ede04('0xf')],qs[_0x4ede04('0x8a')](_0x36ba2a[_0x4ede04('0x84')][_0x4ede04('0x8a')])),_0xbef116[_0x4ede04('0x4c')]=_0xbef116['attributes']['length']?_0xbef116[_0x4ede04('0x4c')]:_0x271b07[_0x4ede04('0xf')],typeof _0x36ba2a[_0x4ede04('0x84')][_0x4ede04('0x13')]===_0x4ede04('0xde')&&(_0xbef116[_0x4ede04('0xad')]=qs[_0x4ede04('0xad')](_0x36ba2a['query'][_0x4ede04('0xad')]),_0xbef116['offset']=qs['offset'](_0x36ba2a[_0x4ede04('0x84')][_0x4ede04('0xf8')])),_0xbef116[_0x4ede04('0xa')]=qs['sort'](_0x36ba2a[_0x4ede04('0x84')][_0x4ede04('0x10')]),_0xbef116['where']=qs[_0x4ede04('0x5f')](_[_0x4ede04('0xa3')](_0x36ba2a[_0x4ede04('0x84')],_0x271b07[_0x4ede04('0x5f')])),_0xbef116['where'][_0x4ede04('0x69')]=_0x3020b9['id'],_0x36ba2a[_0x4ede04('0x84')][_0x4ede04('0xda')]&&(_0xbef116[_0x4ede04('0x52')]=_[_0x4ede04('0xc8')](_0xbef116['where'],{[Op['or']]:_[_0x4ede04('0x55')](_0xbef116['attributes'],function(_0x3589b9){const _0x1c9c67=_0x4ede04,_0x1d7ad2={};return _0x1d7ad2[_0x3589b9]={[Op[_0x1c9c67('0x8e')]]:'%'+_0x36ba2a[_0x1c9c67('0x84')]['filter']+'%'},_0x1d7ad2;})})),_0xbef116=_[_0x4ede04('0xc8')]({},_0xbef116,_0x36ba2a['options']),db[_0x4ede04('0xd1')][_0x4ede04('0xcf')]({'where':_0xbef116['where']})[_0x4ede04('0xa0')](function(_0x5ca7f8){const _0x2c1ca3=_0x4ede04;return _0x1bb994[_0x2c1ca3('0xcf')]=_0x5ca7f8,_0x36ba2a[_0x2c1ca3('0x84')][_0x2c1ca3('0x8c')]?_0xbef116[_0x2c1ca3('0x2d')]=[{'all':!![]}]:_0xbef116[_0x2c1ca3('0x2d')]=[{'model':db[_0x2c1ca3('0x57')],'as':_0x2c1ca3('0x1e'),'required':![]}],db['ChatOfflineMessage'][_0x2c1ca3('0x5e')](_0xbef116);})[_0x4ede04('0xa0')](function(_0x4a1ef8){return _0x1bb994['rows']=_0x4a1ef8,_0x1bb994;});})[_0x407a01('0xa0')](respondWithFilteredResult(_0x27b21b,_0xbef116))[_0x407a01('0x6f')](handleError(_0x27b21b,null));},exports['addAgents']=function(_0x374d31,_0x46270f){const _0x53e5f4=_0x5c4612;return db[_0x53e5f4('0xc7')][_0x53e5f4('0xe7')]({'where':{'id':_0x374d31['params']['id']}})[_0x53e5f4('0xa0')](function(_0x162beb){const _0x18750e=_0x53e5f4;if(_0x162beb)return _0x162beb['addAgents'](_0x374d31[_0x18750e('0xe2')][_0x18750e('0xd6')],{'through':_[_0x18750e('0x9f')](_0x374d31[_0x18750e('0xe2')],[_0x18750e('0xd6'),'id'])})['then'](function(_0x2dd775){const _0x2c16fb=_0x18750e;for(let _0x3e7690=0x0;_0x3e7690<_0x374d31['body'][_0x2c16fb('0xd6')][_0x2c16fb('0x26')];_0x3e7690+=0x1){socket['emit']('userChatWebsite:save',{'UserId':_0x374d31[_0x2c16fb('0xe2')][_0x2c16fb('0xd6')][_0x3e7690],'ChatWebsiteId':_0x374d31[_0x2c16fb('0xd3')]['id']});}return _0x2dd775;});})[_0x53e5f4('0xa0')](respondWithResult(_0x46270f,null))[_0x53e5f4('0x6f')](handleError(_0x46270f,null));},exports[_0x5c4612('0x3d')]=function(_0x203255,_0x12ee59){const _0x458ddc=_0x5c4612;return db[_0x458ddc('0xc7')][_0x458ddc('0xe7')]({'where':{'id':_0x203255[_0x458ddc('0xd3')]['id']}})[_0x458ddc('0xa0')](handleEntityNotFound(_0x12ee59,null))[_0x458ddc('0xa0')](function(_0x2147ff){const _0x31ca50=_0x458ddc;if(_0x2147ff)return _0x2147ff[_0x31ca50('0x3d')](_0x203255[_0x31ca50('0x84')][_0x31ca50('0xd6')])['then'](function(){const _0x4ab05f=_0x31ca50;if(_[_0x4ab05f('0xd')](_0x203255['query'][_0x4ab05f('0xd6')]))for(let _0xf6ceb3=0x0;_0xf6ceb3<_0x203255[_0x4ab05f('0x84')]['ids'][_0x4ab05f('0x26')];_0xf6ceb3+=0x1){socket[_0x4ab05f('0xab')](_0x4ab05f('0xe8'),{'UserId':Number(_0x203255[_0x4ab05f('0x84')][_0x4ab05f('0xd6')][_0xf6ceb3]),'ChatWebsiteId':Number(_0x203255[_0x4ab05f('0xd3')]['id'])});}else socket['emit'](_0x4ab05f('0xe8'),{'UserId':Number(_0x203255[_0x4ab05f('0x84')]['ids']),'ChatWebsiteId':Number(_0x203255[_0x4ab05f('0xd3')]['id'])});});})[_0x458ddc('0xa0')](respondWithStatusCode(_0x12ee59,null))[_0x458ddc('0x6f')](handleError(_0x12ee59,null));},exports['getAgents']=function(_0x38cbf2,_0x5c56fd){const _0x23c2a5=_0x5c4612;let _0xa62382={};const _0x213daf={};let _0x2558ac,_0x4601f8;return db[_0x23c2a5('0xc7')][_0x23c2a5('0xe7')]({'where':{'id':_0x38cbf2[_0x23c2a5('0xd3')]['id']}})['then'](handleEntityNotFound(_0x5c56fd,null))[_0x23c2a5('0xa0')](function(_0x3a67f1){const _0x468548=_0x23c2a5;if(_0x3a67f1)return _0x2558ac=_0x3a67f1,_0x213daf['model']=_[_0x468548('0x97')](db[_0x468548('0x73')]['rawAttributes']),_0x213daf['query']=_[_0x468548('0x97')](_0x38cbf2[_0x468548('0x84')]),_0x213daf['filters']=_['intersection'](_0x213daf['model'],_0x213daf[_0x468548('0x84')]),_0xa62382['attributes']=_[_0x468548('0xf0')](_0x213daf[_0x468548('0xf')],qs[_0x468548('0x8a')](_0x38cbf2['query'][_0x468548('0x8a')])),_0xa62382[_0x468548('0x4c')]=_0xa62382['attributes']['length']?_0xa62382[_0x468548('0x4c')]:_0x213daf[_0x468548('0xf')],_0xa62382[_0x468548('0xa')]=qs[_0x468548('0x10')](_0x38cbf2[_0x468548('0x84')][_0x468548('0x10')]),_0xa62382['where']=qs[_0x468548('0x5f')](_[_0x468548('0xa3')](_0x38cbf2[_0x468548('0x84')],_0x213daf[_0x468548('0x5f')])),_0x38cbf2['query'][_0x468548('0xda')]&&(_0xa62382[_0x468548('0x52')]=_['merge'](_0xa62382[_0x468548('0x52')],{[Op['or']]:_[_0x468548('0x55')](_0xa62382[_0x468548('0x4c')],function(_0x22034b){const _0x5e37dc=_0x468548,_0x196ce8={};return _0x196ce8[_0x22034b]={[Op[_0x5e37dc('0x8e')]]:'%'+_0x38cbf2[_0x5e37dc('0x84')][_0x5e37dc('0xda')]+'%'},_0x196ce8;})})),_0xa62382=_[_0x468548('0xc8')]({},_0xa62382,_0x38cbf2[_0x468548('0xcb')]),_0x2558ac[_0x468548('0x30')](_0xa62382);})['then'](function(_0x51849c){const _0x49753b=_0x23c2a5;if(_0x51849c)return _0x4601f8=_0x51849c[_0x49753b('0x26')],typeof _0x38cbf2[_0x49753b('0x84')][_0x49753b('0x13')]===_0x49753b('0xde')&&(_0xa62382[_0x49753b('0xad')]=qs['limit'](_0x38cbf2[_0x49753b('0x84')][_0x49753b('0xad')]),_0xa62382['offset']=qs[_0x49753b('0xf8')](_0x38cbf2[_0x49753b('0x84')]['offset'])),_0x2558ac[_0x49753b('0x30')](_0xa62382);})['then'](function(_0x4cc47e){if(_0x4cc47e)return _0x4cc47e?{'count':_0x4601f8,'rows':_0x4cc47e}:null;})[_0x23c2a5('0xa0')](respondWithResult(_0x5c56fd,null))['catch'](handleError(_0x5c56fd,null));}; \ No newline at end of file +const a111_0x28b2=['request','bulkCreate','connection','customerAvatar','cf-connecting-ip','AttachmentId','agentAvatar','port','addProactiveActions','addAgents','isArray','util','render','asc','OFFLINE','request\x20sent','systemAvatar','status','replace','fullname','toPairs','utf8','customerIp','index','../../components/parsers/qs','alignment','List','filename','model','remote','sitepic','No\x20timezone','autoclose','includes','query','../../config/license/util','getResult','account','ChatWebsiteId','intersection','like','showCustomerAvatar','result','map','x-real-ip','setUA','getApplications','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','offlineForm','debug','getAnswers','push','include','then','merge','vendor','Start','getSnippet','mustache','role','first','name','attributes','getCustomerAvatar','Applications','message','userChatWebsite:save','agent','UserProfileResource','end','join','findAndCountAll','pick','readFileSync','Contact','true','file','secure','removeDispositions','addDisposition','findOrCreate','body','../../config/environment','notify','where','json','type','send','set','Command','stack','headers','rows','device','user','unknown','service','ChatInteraction','difference','nolimit','custom','items','from','addAnswer','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','catch','ids','offlineMessageBody','addCustomerAvatar','ChatWebsites','options','onlineForm','CmList','offset','mapKeyOffline\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','VIRTUAL','UserId','omit','chatLicenseExceeded','getLicense','CmContact','ListId','mandatoryDispositionPause','key','CannedAnswer','email','License','ONLINE','update','EventManager','DESC','Owner','getLogo','path','destroy','*,*,*,*','register','Interval','server/files/images/avatars/system_avatar.png','emit','interval','list','%s\x20%s','getProactiveActions','error','created','rawAttributes','addInteraction','mapKeyOffline\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','server/files/images/logos/','offlineMessageSubject','Content-Range','getAgents','existsSync','host','getOfflineMessages','fields','Tags','transaction','x-forwarded-for','offline','sendStatus','Pause','body\x20is\x20mandatory\x20and\x20not\x20empty','iftime\x20%s','includeAll','stringify','findOne','order','Smtp','filters','[%s][INTERVAL][%s]\x20%s\x20%s\x20(%s)','user-agent-parser','addLogo','version','server/files/images/avatars/default_avatar.png','api','forcedOwnership','externalUrl','undefined','chat','lastName','orderBy','./chatWebsite.socket','autoAssociation','get','sort','ChatApplication','updatedAt','ChatWebsite,\x20%s,\x20%s','Tag','browser','isNil','length','ChatMessage','params','info','getInteractions','fromKey','threadId','User','waitForTheAssignedAgent','SendMail','limit','timezone','some','applications','addAvatar','CompanyId','describe','chatProactiveAction','create','mapKeyOffline','ChatOfflineMessage','../../mysqldb','pass','server/files/images/logos/default_logo.svg','interaction','Intervals','show','removeAgents','color','createdAt','http','auth','userChatWebsite:remove','x-real-port','inspect','sequelize','client','keys','ChatWebsite','app','from\x20is\x20mandatory','no\x20available\x20attributes','findAll','online','forwardOfflineAddress','code','filter','server/files/templates/chatOfflineMessage.ejs','Disposition','firstName','mapKey','count','server/files/images/avatars/','tag','messageId','close','removeAnswers','startRouting','download','ContactId','format','defaults','files/chat/iframe.js','priority','fieldName','\x22%s\x22\x20<%s>','root','Contacts','contact','virtual'];(function(_0x3aa6d3,_0x28b2b0){const _0x306b34=function(_0x4dad45){while(--_0x4dad45){_0x3aa6d3['push'](_0x3aa6d3['shift']());}};_0x306b34(++_0x28b2b0);}(a111_0x28b2,0xbb));const a111_0x306b=function(_0x3aa6d3,_0x28b2b0){_0x3aa6d3=_0x3aa6d3-0x0;let _0x306b34=a111_0x28b2[_0x3aa6d3];return _0x306b34;};const _0x5a3283=a111_0x306b;'use strict';const Mustache=require(_0x5a3283('0x86')),util=require(_0x5a3283('0x57')),path=require(_0x5a3283('0xd1')),ejs=require('ejs'),fs=require('fs'),_=require('lodash'),querystring=require('querystring'),qs=require(_0x5a3283('0x64')),logger=require('../../config/logger')(_0x5a3283('0xfc')),config=require(_0x5a3283('0x9e')),db=require(_0x5a3283('0x1b'))['db'],{Op,ValidationError}=require(_0x5a3283('0x29')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x5a3283('0x103'))[_0x5a3283('0xd4')](socket);const jayson=require('jayson/promise'),client=jayson[_0x5a3283('0x2a')][_0x5a3283('0x24')]({'port':0x232c}),client9002=jayson[_0x5a3283('0x2a')][_0x5a3283('0x24')]({'port':0x232a}),client9003=jayson[_0x5a3283('0x2a')][_0x5a3283('0x24')]({'port':0x232b});function respondWithRpcPromise(_0x4dad45,_0x540207,_0x51ab15,_0x3ddb4e){return new Promise(function(_0x5533a9,_0x2ad934){const _0x3b546c=a111_0x306b,_0x3c7c41=_0x3ddb4e||client;return _0x3c7c41[_0x3b546c('0x4c')](_0x4dad45,_0x51ab15)[_0x3b546c('0x81')](function(_0x18af41){const _0x4e3bab=_0x3b546c;logger['info'](_0x4e3bab('0x2'),_0x540207,_0x4e3bab('0x5b')),logger[_0x4e3bab('0x7d')]('ChatWebsite,\x20%s,\x20%s,\x20%s',_0x540207,_0x4e3bab('0x5b'),JSON[_0x4e3bab('0xf2')](_0x18af41));if(_0x18af41[_0x4e3bab('0xdc')]){if(_0x18af41['error'][_0x4e3bab('0x33')]===0x1f4)return logger[_0x4e3bab('0xdc')](_0x4e3bab('0x2'),_0x540207,_0x18af41[_0x4e3bab('0xdc')][_0x4e3bab('0x8d')]),_0x2ad934(_0x18af41[_0x4e3bab('0xdc')][_0x4e3bab('0x8d')]);return logger['error'](_0x4e3bab('0x2'),_0x540207,_0x18af41[_0x4e3bab('0xdc')][_0x4e3bab('0x8d')]),_0x5533a9(_0x18af41['error'][_0x4e3bab('0x8d')]);}else logger[_0x4e3bab('0x9')](_0x4e3bab('0x2'),_0x540207,_0x4e3bab('0x5b')),_0x5533a9(_0x18af41[_0x4e3bab('0x76')][_0x4e3bab('0x8d')]);})['catch'](function(_0x5a5e45){const _0x5504df=_0x3b546c;logger['error'](_0x5504df('0x2'),_0x540207,_0x5a5e45),_0x2ad934(_0x5a5e45);});});}function respondWithStatusCode(_0x4cd773,_0x53c331){return _0x53c331=_0x53c331||0xcc,function(_0x39ae7a){const _0x4fa83c=a111_0x306b;if(_0x39ae7a)return _0x4cd773[_0x4fa83c('0xed')](_0x53c331);return _0x4cd773['status'](_0x53c331)[_0x4fa83c('0x91')]();};}function respondWithResult(_0x38542e,_0x35d613){return _0x35d613=_0x35d613||0xc8,function(_0x322cb1){const _0x263c3c=a111_0x306b;if(_0x322cb1)return _0x38542e['status'](_0x35d613)[_0x263c3c('0xa1')](_0x322cb1);};}function respondWithFilteredResult(_0x1e5d88,_0x54a08e){return function(_0x1a58eb){const _0x57fd84=a111_0x306b;if(_0x1a58eb){const _0x3fa105=_0x1a58eb[_0x57fd84('0x39')],_0x4d9802=_0x54a08e[_0x57fd84('0xbd')];let _0x551a1e=_0x54a08e['offset']+_0x54a08e[_0x57fd84('0x10')],_0x455f7f;return _0x551a1e>=_0x3fa105?(_0x551a1e=_0x3fa105,_0x455f7f=0xc8):_0x455f7f=0xce,_0x1e5d88[_0x57fd84('0x5d')](_0x455f7f),_0x1e5d88[_0x57fd84('0xa4')](_0x57fd84('0xe3'),_0x4d9802+'-'+_0x551a1e+'/'+_0x3fa105)[_0x57fd84('0xa1')](_0x1a58eb);}return null;};}function saveUpdates(_0x5a7c91){return function(_0x24eefd){const _0x5dd4e6=a111_0x306b;if(_0x24eefd)return _0x24eefd[_0x5dd4e6('0xcc')](_0x5a7c91)[_0x5dd4e6('0x81')](function(_0x51482a){return _0x51482a;});return null;};}function removeEntity(_0x4baca3){return function(_0x4e1669){const _0x36df99=a111_0x306b;if(_0x4e1669)return _0x4e1669[_0x36df99('0xd2')]()['then'](function(){const _0x3e8deb=_0x36df99,_0x119e75=_0x4e1669[_0x3e8deb('0x105')]({'plain':!![]}),_0x2deb38=_0x3e8deb('0xb9');return db[_0x3e8deb('0x90')][_0x3e8deb('0xd2')]({'where':{'type':_0x2deb38,'resourceId':_0x119e75['id']}})[_0x3e8deb('0x81')](function(){return _0x4e1669;});})[_0x36df99('0x81')](function(){const _0x3a4b52=_0x36df99;_0x4baca3[_0x3a4b52('0x5d')](0xcc)[_0x3a4b52('0x91')]();});};}function handleEntityNotFound(_0x3177df){return function(_0x5e8a27){return!_0x5e8a27&&_0x3177df['sendStatus'](0x194),_0x5e8a27;};}function handleError(_0x596ab0,_0x13060c){return _0x13060c=_0x13060c||0x1f4,function(_0xd48c27){const _0x19fee4=a111_0x306b;logger[_0x19fee4('0xdc')](_0xd48c27[_0x19fee4('0xa6')]),_0xd48c27[_0x19fee4('0x89')]&&delete _0xd48c27[_0x19fee4('0x89')],_0x596ab0[_0x19fee4('0x5d')](_0x13060c)[_0x19fee4('0xa3')](_0xd48c27);};}exports[_0x5a3283('0x63')]=function(_0x1e6cf1,_0x4ae124){const _0x215851=_0x5a3283;let _0x52a08a={'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x365f53={},_0x36c82e={'count':0x0,'rows':[]},_0x1ca7eb=_['map'](db[_0x215851('0x2c')][_0x215851('0xde')],function(_0x785da8){const _0x385871=_0x215851;return{'name':_0x785da8[_0x385871('0x46')],'type':_0x785da8[_0x385871('0xa2')][_0x385871('0xc7')]};});_0x365f53[_0x215851('0x68')]=_[_0x215851('0x77')](_0x1ca7eb,_0x215851('0x89')),_0x365f53[_0x215851('0x6e')]=_[_0x215851('0x2b')](_0x1e6cf1[_0x215851('0x6e')]),_0x365f53[_0x215851('0xf6')]=_[_0x215851('0x73')](_0x365f53['model'],_0x365f53[_0x215851('0x6e')]),_0x52a08a[_0x215851('0x8a')]=_[_0x215851('0x73')](_0x365f53[_0x215851('0x68')],qs[_0x215851('0xe8')](_0x1e6cf1['query'][_0x215851('0xe8')])),_0x52a08a[_0x215851('0x8a')]=_0x52a08a[_0x215851('0x8a')]['length']?_0x52a08a[_0x215851('0x8a')]:_0x365f53[_0x215851('0x68')];typeof _0x1e6cf1[_0x215851('0x6e')][_0x215851('0xaf')]==='undefined'&&(_0x52a08a[_0x215851('0x10')]=qs['limit'](_0x1e6cf1[_0x215851('0x6e')][_0x215851('0x10')]),_0x52a08a[_0x215851('0xbd')]=qs[_0x215851('0xbd')](_0x1e6cf1[_0x215851('0x6e')][_0x215851('0xbd')]));_0x52a08a[_0x215851('0xf4')]=qs['sort'](_0x1e6cf1['query'][_0x215851('0x106')]),_0x52a08a[_0x215851('0xa0')]=qs[_0x215851('0xf6')](_[_0x215851('0x94')](_0x1e6cf1[_0x215851('0x6e')],_0x365f53[_0x215851('0xf6')]),_0x1ca7eb);_0x1e6cf1[_0x215851('0x6e')]['filter']&&(_0x52a08a['where']=_[_0x215851('0x82')](_0x52a08a[_0x215851('0xa0')],{[Op['or']]:_[_0x215851('0x77')](_0x1ca7eb,function(_0x428106){const _0x4d7d31=_0x215851;if(_0x428106['type']!==_0x4d7d31('0xbf')){const _0x54314d={};return _0x54314d[_0x428106[_0x4d7d31('0x89')]]={[Op[_0x4d7d31('0x74')]]:'%'+_0x1e6cf1[_0x4d7d31('0x6e')][_0x4d7d31('0x34')]+'%'},_0x54314d;}})}));_0x52a08a=_[_0x215851('0x82')]({},_0x52a08a,_0x1e6cf1[_0x215851('0xba')]);const _0x5b2d87={'where':_0x52a08a['where']};return db[_0x215851('0x2c')][_0x215851('0x39')](_0x5b2d87)['then'](function(_0xf3ead3){const _0x22ab3c=_0x215851;return _0x36c82e['count']=_0xf3ead3,_0x1e6cf1[_0x22ab3c('0x6e')]['includeAll']&&(_0x52a08a[_0x22ab3c('0x80')]=[{'all':!![]}]),db[_0x22ab3c('0x2c')][_0x22ab3c('0x30')](_0x52a08a);})[_0x215851('0x81')](function(_0x2a5778){const _0x3fe2b7=_0x215851;return _0x36c82e[_0x3fe2b7('0xa8')]=_0x2a5778,_0x36c82e;})[_0x215851('0x81')](respondWithFilteredResult(_0x4ae124,_0x52a08a))['catch'](handleError(_0x4ae124,null));},exports[_0x5a3283('0x20')]=function(_0x2d88e5,_0x54e918){const _0x48469f=_0x5a3283;let _0x42566e={'raw':![],'where':{'id':_0x2d88e5[_0x48469f('0x8')]['id']},'include':[{'model':db[_0x48469f('0xee')],'as':_0x48469f('0xc6')}]};const _0x4a416a={};return _0x4a416a['model']=_[_0x48469f('0x2b')](db['ChatWebsite'][_0x48469f('0xde')]),_0x4a416a[_0x48469f('0x6e')]=_['keys'](_0x2d88e5['query']),_0x4a416a['filters']=_['intersection'](_0x4a416a[_0x48469f('0x68')],_0x4a416a[_0x48469f('0x6e')]),_0x42566e[_0x48469f('0x8a')]=_[_0x48469f('0x73')](_0x4a416a['model'],qs['fields'](_0x2d88e5[_0x48469f('0x6e')][_0x48469f('0xe8')])),_0x42566e[_0x48469f('0x8a')]=_0x42566e[_0x48469f('0x8a')]['length']?_0x42566e[_0x48469f('0x8a')]:_0x4a416a[_0x48469f('0x68')],_0x2d88e5[_0x48469f('0x6e')][_0x48469f('0xf1')]&&(_0x42566e[_0x48469f('0x80')]=[{'all':!![]}]),_0x42566e=_[_0x48469f('0x82')]({},_0x42566e,_0x2d88e5[_0x48469f('0xba')]),db[_0x48469f('0x2c')][_0x48469f('0xf3')](_0x42566e)['then'](handleEntityNotFound(_0x54e918,null))[_0x48469f('0x81')](respondWithResult(_0x54e918,null))[_0x48469f('0xb5')](handleError(_0x54e918,null));},exports[_0x5a3283('0x18')]=function(_0x378a8d,_0x9b4152){const _0x5095cf=_0x5a3283;return db['ChatWebsite'][_0x5095cf('0x18')](_0x378a8d[_0x5095cf('0x9d')],{})[_0x5095cf('0x81')](function(_0xd36343){const _0x2cb525=_0x5095cf,_0x33cffa=_0x378a8d[_0x2cb525('0xaa')]['get']({'plain':!![]});if(!_0x33cffa)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x33cffa[_0x2cb525('0x87')]===_0x2cb525('0xaa')){const _0xf4d272=_0xd36343[_0x2cb525('0x105')]({'plain':!![]}),_0x4b8f28=_0x2cb525('0xb9');return db['UserProfileSection'][_0x2cb525('0xf3')]({'where':{'name':_0x4b8f28,'userProfileId':_0x33cffa['userProfileId']},'raw':!![]})[_0x2cb525('0x81')](function(_0x1a5fba){const _0x5d2aee=_0x2cb525;return _0x1a5fba&&_0x1a5fba[_0x5d2aee('0x104')]===0x0?db[_0x5d2aee('0x90')][_0x5d2aee('0x18')]({'name':_0xf4d272['name'],'resourceId':_0xf4d272['id'],'type':_0x1a5fba[_0x5d2aee('0x89')],'sectionId':_0x1a5fba['id']},{})[_0x5d2aee('0x81')](function(){return _0xd36343;}):_0xd36343;})[_0x2cb525('0xb5')](function(_0x2eb3c6){const _0x14c5f8=_0x2cb525;logger[_0x14c5f8('0xdc')](_0x14c5f8('0xb4'),_0x2eb3c6);throw _0x2eb3c6;});}return _0xd36343;})[_0x5095cf('0x81')](respondWithResult(_0x9b4152,0xc9))['catch'](handleError(_0x9b4152,null));},exports[_0x5a3283('0xcc')]=function(_0xb61a1b,_0x25aac9){const _0x2926de=_0x5a3283;return _0xb61a1b['body']['id']&&delete _0xb61a1b['body']['id'],db['ChatWebsite'][_0x2926de('0xf3')]({'where':{'id':_0xb61a1b[_0x2926de('0x8')]['id']},'include':[{'model':db[_0x2926de('0xee')],'as':_0x2926de('0xc6')}]})[_0x2926de('0x81')](handleEntityNotFound(_0x25aac9,null))[_0x2926de('0x81')](saveUpdates(_0xb61a1b[_0x2926de('0x9d')],null))[_0x2926de('0x81')](respondWithResult(_0x25aac9,null))[_0x2926de('0xb5')](handleError(_0x25aac9,null));},exports['destroy']=function(_0x1adc7c,_0x84a544){const _0x490f0e=_0x5a3283;return db[_0x490f0e('0x2c')][_0x490f0e('0xf3')]({'where':{'id':_0x1adc7c[_0x490f0e('0x8')]['id']}})[_0x490f0e('0x81')](handleEntityNotFound(_0x84a544,null))[_0x490f0e('0x81')](removeEntity(_0x84a544,null))['catch'](handleError(_0x84a544,null));},exports[_0x5a3283('0x16')]=function(_0x486dc7,_0x51bd11){const _0x119cd0=_0x5a3283;return db[_0x119cd0('0x2c')][_0x119cd0('0x16')]()['then'](respondWithResult(_0x51bd11,null))[_0x119cd0('0xb5')](handleError(_0x51bd11,null));},exports[_0x5a3283('0x9b')]=function(_0x342db9,_0x5e6435){const _0x397176=_0x5a3283;return _0x342db9[_0x397176('0x9d')]['id']&&delete _0x342db9[_0x397176('0x9d')]['id'],db[_0x397176('0x2c')][_0x397176('0xf3')]({'where':{'id':_0x342db9[_0x397176('0x8')]['id']}})[_0x397176('0x81')](handleEntityNotFound(_0x5e6435,null))[_0x397176('0x81')](function(_0x2bee66){const _0x40c525=_0x397176;if(_0x2bee66)return _0x342db9['body'][_0x40c525('0x72')]=_0x2bee66['id'],db[_0x40c525('0x36')][_0x40c525('0x18')](_0x342db9[_0x40c525('0x9d')]);})[_0x397176('0x81')](respondWithResult(_0x5e6435,null))[_0x397176('0xb5')](handleError(_0x5e6435,null));},exports['getDispositions']=function(_0x116200,_0x5d5674){const _0x557446=_0x5a3283;let _0x395c9d={'raw':![],'where':{}};const _0x4cf8f6={},_0x222c14={'count':0x0,'rows':[]};return db[_0x557446('0x2c')][_0x557446('0xf3')]({'where':{'id':_0x116200[_0x557446('0x8')]['id']}})[_0x557446('0x81')](handleEntityNotFound(_0x5d5674,null))[_0x557446('0x81')](function(_0x4b452b){const _0x3c6ddc=_0x557446;if(_0x4b452b)return _0x4cf8f6[_0x3c6ddc('0x68')]=_[_0x3c6ddc('0x2b')](db['Disposition'][_0x3c6ddc('0xde')]),_0x4cf8f6[_0x3c6ddc('0x6e')]=_[_0x3c6ddc('0x2b')](_0x116200[_0x3c6ddc('0x6e')]),_0x4cf8f6['filters']=_[_0x3c6ddc('0x73')](_0x4cf8f6[_0x3c6ddc('0x68')],_0x4cf8f6[_0x3c6ddc('0x6e')]),_0x395c9d[_0x3c6ddc('0x8a')]=_['intersection'](_0x4cf8f6[_0x3c6ddc('0x68')],qs[_0x3c6ddc('0xe8')](_0x116200[_0x3c6ddc('0x6e')][_0x3c6ddc('0xe8')])),_0x395c9d[_0x3c6ddc('0x8a')]=_0x395c9d[_0x3c6ddc('0x8a')][_0x3c6ddc('0x6')]?_0x395c9d[_0x3c6ddc('0x8a')]:_0x4cf8f6[_0x3c6ddc('0x68')],typeof _0x116200[_0x3c6ddc('0x6e')][_0x3c6ddc('0xaf')]===_0x3c6ddc('0xff')&&(_0x395c9d[_0x3c6ddc('0x10')]=qs[_0x3c6ddc('0x10')](_0x116200[_0x3c6ddc('0x6e')]['limit']),_0x395c9d[_0x3c6ddc('0xbd')]=qs[_0x3c6ddc('0xbd')](_0x116200[_0x3c6ddc('0x6e')][_0x3c6ddc('0xbd')])),_0x395c9d[_0x3c6ddc('0xf4')]=qs[_0x3c6ddc('0x106')](_0x116200[_0x3c6ddc('0x6e')][_0x3c6ddc('0x106')]),_0x395c9d[_0x3c6ddc('0xa0')]=qs['filters'](_[_0x3c6ddc('0x94')](_0x116200[_0x3c6ddc('0x6e')],_0x4cf8f6['filters'])),_0x395c9d['where']['ChatWebsiteId']=_0x4b452b['id'],_0x116200['query'][_0x3c6ddc('0x34')]&&(_0x395c9d[_0x3c6ddc('0xa0')]=_[_0x3c6ddc('0x82')](_0x395c9d[_0x3c6ddc('0xa0')],{[Op['or']]:_[_0x3c6ddc('0x77')](_0x395c9d[_0x3c6ddc('0x8a')],function(_0x53faaa){const _0x188e3f=_0x3c6ddc,_0x56a6cf={};return _0x56a6cf[_0x53faaa]={[Op[_0x188e3f('0x74')]]:'%'+_0x116200['query']['filter']+'%'},_0x56a6cf;})})),_0x395c9d=_[_0x3c6ddc('0x82')]({},_0x395c9d,_0x116200[_0x3c6ddc('0xba')]),db[_0x3c6ddc('0x36')][_0x3c6ddc('0x39')]({'where':_0x395c9d[_0x3c6ddc('0xa0')]})['then'](function(_0x10a2ee){const _0x481b41=_0x3c6ddc;return _0x222c14[_0x481b41('0x39')]=_0x10a2ee,_0x116200[_0x481b41('0x6e')][_0x481b41('0xf1')]&&(_0x395c9d[_0x481b41('0x80')]=[{'all':!![]}]),db[_0x481b41('0x36')]['findAll'](_0x395c9d);})[_0x3c6ddc('0x81')](function(_0x3ba640){const _0x5af318=_0x3c6ddc;return _0x222c14[_0x5af318('0xa8')]=_0x3ba640,_0x222c14;});})[_0x557446('0x81')](respondWithFilteredResult(_0x5d5674,_0x395c9d))[_0x557446('0xb5')](handleError(_0x5d5674,null));},exports[_0x5a3283('0x9a')]=function(_0x1f60c9,_0x22b316){const _0x3c1f04=_0x5a3283;return db['ChatWebsite'][_0x3c1f04('0xf3')]({'where':{'id':_0x1f60c9[_0x3c1f04('0x8')]['id']}})[_0x3c1f04('0x81')](handleEntityNotFound(_0x22b316,null))['then'](function(_0x134188){const _0x595811=_0x3c1f04;if(_0x134188)return _0x134188[_0x595811('0x9a')](_0x1f60c9[_0x595811('0x6e')][_0x595811('0xb6')]);})['then'](respondWithStatusCode(_0x22b316,null))[_0x3c1f04('0xb5')](handleError(_0x22b316,null));},exports[_0x5a3283('0xb3')]=function(_0x3720a5,_0x1ec7ad){const _0x1020d3=_0x5a3283;return _0x3720a5[_0x1020d3('0x9d')]['id']&&delete _0x3720a5['body']['id'],db['ChatWebsite'][_0x1020d3('0xf3')]({'where':{'id':_0x3720a5[_0x1020d3('0x8')]['id']}})[_0x1020d3('0x81')](handleEntityNotFound(_0x1ec7ad,null))[_0x1020d3('0x81')](function(_0x23719b){const _0x233484=_0x1020d3;if(_0x23719b)return _0x3720a5[_0x233484('0x9d')][_0x233484('0x72')]=_0x23719b['id'],db[_0x233484('0xc8')][_0x233484('0x18')](_0x3720a5['body']);})[_0x1020d3('0x81')](respondWithResult(_0x1ec7ad,null))[_0x1020d3('0xb5')](handleError(_0x1ec7ad,null));},exports[_0x5a3283('0x7e')]=function(_0x24422e,_0x566472){const _0x9849bf=_0x5a3283;let _0x2f701d={'raw':![],'where':{}};const _0x2718f8={},_0x3f3cad={'count':0x0,'rows':[]};return db[_0x9849bf('0x2c')][_0x9849bf('0xf3')]({'where':{'id':_0x24422e[_0x9849bf('0x8')]['id']}})[_0x9849bf('0x81')](handleEntityNotFound(_0x566472,null))[_0x9849bf('0x81')](function(_0xd73ed5){const _0x469dd7=_0x9849bf;if(_0xd73ed5)return _0x2718f8[_0x469dd7('0x68')]=_[_0x469dd7('0x2b')](db['CannedAnswer'][_0x469dd7('0xde')]),_0x2718f8[_0x469dd7('0x6e')]=_[_0x469dd7('0x2b')](_0x24422e['query']),_0x2718f8[_0x469dd7('0xf6')]=_[_0x469dd7('0x73')](_0x2718f8[_0x469dd7('0x68')],_0x2718f8['query']),_0x2f701d['attributes']=_['intersection'](_0x2718f8[_0x469dd7('0x68')],qs[_0x469dd7('0xe8')](_0x24422e[_0x469dd7('0x6e')][_0x469dd7('0xe8')])),_0x2f701d[_0x469dd7('0x8a')]=_0x2f701d[_0x469dd7('0x8a')][_0x469dd7('0x6')]?_0x2f701d[_0x469dd7('0x8a')]:_0x2718f8[_0x469dd7('0x68')],typeof _0x24422e[_0x469dd7('0x6e')][_0x469dd7('0xaf')]===_0x469dd7('0xff')&&(_0x2f701d[_0x469dd7('0x10')]=qs[_0x469dd7('0x10')](_0x24422e[_0x469dd7('0x6e')][_0x469dd7('0x10')]),_0x2f701d[_0x469dd7('0xbd')]=qs[_0x469dd7('0xbd')](_0x24422e[_0x469dd7('0x6e')][_0x469dd7('0xbd')])),_0x2f701d[_0x469dd7('0xf4')]=qs[_0x469dd7('0x106')](_0x24422e[_0x469dd7('0x6e')][_0x469dd7('0x106')]),_0x2f701d[_0x469dd7('0xa0')]=qs['filters'](_[_0x469dd7('0x94')](_0x24422e[_0x469dd7('0x6e')],_0x2718f8['filters'])),_0x2f701d[_0x469dd7('0xa0')][_0x469dd7('0x72')]=_0xd73ed5['id'],_0x24422e['query']['filter']&&(_0x2f701d[_0x469dd7('0xa0')]=_['merge'](_0x2f701d[_0x469dd7('0xa0')],{[Op['or']]:_[_0x469dd7('0x77')](_0x2f701d['attributes'],function(_0x22442d){const _0x35caa7=_0x469dd7,_0x3e2d58={};return _0x3e2d58[_0x22442d]={[Op[_0x35caa7('0x74')]]:'%'+_0x24422e['query'][_0x35caa7('0x34')]+'%'},_0x3e2d58;})})),_0x2f701d=_[_0x469dd7('0x82')]({},_0x2f701d,_0x24422e[_0x469dd7('0xba')]),db[_0x469dd7('0xc8')]['count']({'where':_0x2f701d[_0x469dd7('0xa0')]})['then'](function(_0x1c5ed5){const _0x51bb6d=_0x469dd7;return _0x3f3cad[_0x51bb6d('0x39')]=_0x1c5ed5,_0x24422e[_0x51bb6d('0x6e')][_0x51bb6d('0xf1')]&&(_0x2f701d['include']=[{'all':!![]}]),db['CannedAnswer'][_0x51bb6d('0x30')](_0x2f701d);})[_0x469dd7('0x81')](function(_0x4cd5de){const _0x233906=_0x469dd7;return _0x3f3cad[_0x233906('0xa8')]=_0x4cd5de,_0x3f3cad;});})['then'](respondWithFilteredResult(_0x566472,_0x2f701d))[_0x9849bf('0xb5')](handleError(_0x566472,null));},exports[_0x5a3283('0x3e')]=function(_0xa3cfe5,_0x34163c){const _0x27944e=_0x5a3283;return db[_0x27944e('0x2c')][_0x27944e('0xf3')]({'where':{'id':_0xa3cfe5[_0x27944e('0x8')]['id']}})[_0x27944e('0x81')](handleEntityNotFound(_0x34163c,null))[_0x27944e('0x81')](function(_0x372cf3){const _0x45ba04=_0x27944e;if(_0x372cf3)return _0x372cf3['removeAnswers'](_0xa3cfe5[_0x45ba04('0x6e')][_0x45ba04('0xb6')]);})['then'](respondWithStatusCode(_0x34163c,null))[_0x27944e('0xb5')](handleError(_0x34163c,null));},exports[_0x5a3283('0xf9')]=function(_0x49da0c,_0x3c690e){const _0x1c6c6b=_0x5a3283;return _0x49da0c[_0x1c6c6b('0x9d')]['sitepic']=_0x49da0c['file'][_0x1c6c6b('0x67')],db[_0x1c6c6b('0x2c')][_0x1c6c6b('0xf3')]({'where':{'id':_0x49da0c['params']['id']}})[_0x1c6c6b('0x81')](handleEntityNotFound(_0x3c690e,null))[_0x1c6c6b('0x81')](saveUpdates(_0x49da0c[_0x1c6c6b('0x9d')],null))[_0x1c6c6b('0x81')](respondWithResult(_0x3c690e,null))['catch'](handleError(_0x3c690e,null));},exports[_0x5a3283('0x14')]=function(_0x273474,_0x3821c8){const _0x133c5c=_0x5a3283;return _0x273474[_0x133c5c('0x9d')]['agentAvatar']=_0x273474[_0x133c5c('0x98')]['filename'],db[_0x133c5c('0x2c')]['findOne']({'where':{'id':_0x273474[_0x133c5c('0x8')]['id']}})[_0x133c5c('0x81')](handleEntityNotFound(_0x3821c8,null))['then'](saveUpdates(_0x273474[_0x133c5c('0x9d')],null))[_0x133c5c('0x81')](respondWithResult(_0x3821c8,null))['catch'](handleError(_0x3821c8,null));},exports[_0x5a3283('0xb8')]=function(_0x25f89b,_0xa5cc0f){const _0x12a1c9=_0x5a3283;return _0x25f89b[_0x12a1c9('0x9d')][_0x12a1c9('0x4f')]=_0x25f89b['file'][_0x12a1c9('0x67')],db['ChatWebsite'][_0x12a1c9('0xf3')]({'where':{'id':_0x25f89b[_0x12a1c9('0x8')]['id']}})[_0x12a1c9('0x81')](handleEntityNotFound(_0xa5cc0f,null))[_0x12a1c9('0x81')](saveUpdates(_0x25f89b[_0x12a1c9('0x9d')],null))[_0x12a1c9('0x81')](respondWithResult(_0xa5cc0f,null))[_0x12a1c9('0xb5')](handleError(_0xa5cc0f,null));},exports['addSystemAvatar']=function(_0x250b9c,_0x498068){const _0x563faa=_0x5a3283;return _0x250b9c[_0x563faa('0x9d')]['systemAvatar']=_0x250b9c[_0x563faa('0x98')][_0x563faa('0x67')],db[_0x563faa('0x2c')][_0x563faa('0xf3')]({'where':{'id':_0x250b9c[_0x563faa('0x8')]['id']}})[_0x563faa('0x81')](handleEntityNotFound(_0x498068,null))[_0x563faa('0x81')](saveUpdates(_0x250b9c['body'],null))[_0x563faa('0x81')](respondWithResult(_0x498068,null))[_0x563faa('0xb5')](handleError(_0x498068,null));},exports[_0x5a3283('0xd0')]=function(_0x103735,_0x7c802d){const _0x42d7b6=_0x5a3283;let _0xb7641=path[_0x42d7b6('0x92')](config[_0x42d7b6('0x48')],_0x42d7b6('0x1d'));const _0x50bebc={'where':{'id':_0x103735[_0x42d7b6('0x8')]['id']},'attributes':['id',_0x42d7b6('0x6a')],'raw':!![]};let _0x19c324=![];return require(_0x42d7b6('0x6f'))[_0x42d7b6('0xc3')]()[_0x42d7b6('0x81')](function(_0x5b9348){const _0x2822fa=_0x42d7b6;_0x5b9348&&(_0x19c324=_0x5b9348[_0x2822fa('0xb0')]);})[_0x42d7b6('0x81')](function(){return db['ChatWebsite']['findOne'](_0x50bebc);})[_0x42d7b6('0x81')](handleEntityNotFound(_0x7c802d,null))[_0x42d7b6('0x81')](function(_0x104551){const _0x5b3e69=_0x42d7b6;if(_0x104551)return!_[_0x5b3e69('0x5')](_0x104551[_0x5b3e69('0x6a')])&&(fs['existsSync'](path[_0x5b3e69('0x92')](config['root'],_0x5b3e69('0xe1'),_0x104551['sitepic']))&&_0x19c324&&(_0xb7641=path[_0x5b3e69('0x92')](config[_0x5b3e69('0x48')],_0x5b3e69('0xe1'),_0x104551['sitepic']))),_0x7c802d[_0x5b3e69('0x40')](_0xb7641);})[_0x42d7b6('0xb5')](handleError(_0x7c802d,null));},exports['getAvatar']=function(_0x33a845,_0x11868b){const _0x1bad35=_0x5a3283;let _0x2abff8=path[_0x1bad35('0x92')](config['root'],_0x1bad35('0xfb'));const _0x405b86={'where':{'id':_0x33a845[_0x1bad35('0x8')]['id']},'attributes':['id',_0x1bad35('0x52')],'raw':!![]};return db[_0x1bad35('0x2c')][_0x1bad35('0xf3')](_0x405b86)['then'](handleEntityNotFound(_0x11868b,null))[_0x1bad35('0x81')](function(_0x2b2b71){const _0x5510af=_0x1bad35;if(_0x2b2b71)return!_['isNil'](_0x2b2b71[_0x5510af('0x52')])&&(fs['existsSync'](path[_0x5510af('0x92')](config[_0x5510af('0x48')],_0x5510af('0x3a'),_0x2b2b71[_0x5510af('0x52')]))&&(_0x2abff8=path['join'](config[_0x5510af('0x48')],_0x5510af('0x3a'),_0x2b2b71[_0x5510af('0x52')]))),_0x11868b['download'](_0x2abff8);})['catch'](handleError(_0x11868b,null));},exports[_0x5a3283('0x8b')]=function(_0x1a156c,_0x114689){const _0x824963=_0x5a3283;let _0x521e6f=path[_0x824963('0x92')](config[_0x824963('0x48')],'server/files/images/avatars/customer_avatar.png');const _0x27e0ff={'where':{'id':_0x1a156c[_0x824963('0x8')]['id']},'attributes':['id',_0x824963('0x4f'),_0x824963('0x75')],'raw':!![]};return db['ChatWebsite'][_0x824963('0xf3')](_0x27e0ff)[_0x824963('0x81')](handleEntityNotFound(_0x114689,null))[_0x824963('0x81')](function(_0xf63132){const _0x305ba9=_0x824963;if(_0xf63132)return!_['isNil'](_0xf63132[_0x305ba9('0x4f')])&&(fs[_0x305ba9('0xe5')](path[_0x305ba9('0x92')](config['root'],_0x305ba9('0x3a'),_0xf63132['customerAvatar']))&&_0xf63132[_0x305ba9('0x75')]&&(_0x521e6f=path[_0x305ba9('0x92')](config[_0x305ba9('0x48')],'server/files/images/avatars/',_0xf63132[_0x305ba9('0x4f')]))),_0x114689[_0x305ba9('0x40')](_0x521e6f);})[_0x824963('0xb5')](handleError(_0x114689,null));},exports['getSystemAvatar']=function(_0x48c07c,_0x1f6f2f){const _0x49c272=_0x5a3283;let _0x28492f=path['join'](config[_0x49c272('0x48')],_0x49c272('0xd6'));const _0x54bd34={'where':{'id':_0x48c07c[_0x49c272('0x8')]['id']},'attributes':['id',_0x49c272('0x5c')],'raw':!![]};return db[_0x49c272('0x2c')][_0x49c272('0xf3')](_0x54bd34)[_0x49c272('0x81')](handleEntityNotFound(_0x1f6f2f,null))['then'](function(_0x18c1af){const _0x5a9ae3=_0x49c272;if(_0x18c1af)return!_['isNil'](_0x18c1af[_0x5a9ae3('0x5c')])&&(fs[_0x5a9ae3('0xe5')](path[_0x5a9ae3('0x92')](config['root'],_0x5a9ae3('0x3a'),_0x18c1af['systemAvatar']))&&(_0x28492f=path['join'](config[_0x5a9ae3('0x48')],_0x5a9ae3('0x3a'),_0x18c1af[_0x5a9ae3('0x5c')]))),_0x1f6f2f[_0x5a9ae3('0x40')](_0x28492f);})['catch'](handleError(_0x1f6f2f,null));},exports[_0x5a3283('0x9f')]=function(_0x25a3b9,_0x790ec0){const _0x2a37f0=_0x5a3283,_0x174d28=require(_0x2a37f0('0xf8')),_0x25b315=new _0x174d28(),_0x3bf17c=_0x25b315[_0x2a37f0('0x79')](_0x25a3b9[_0x2a37f0('0xa7')]['user-agent'])[_0x2a37f0('0x70')](),_0x59c602={'body':_0x25a3b9[_0x2a37f0('0x9d')],'channel':_0x2a37f0('0x100')};let _0x377814=[],_0x1dfce3=[];const _0x15f666={};let _0x592bc5=![];return db[_0x2a37f0('0xc4')][_0x2a37f0('0x16')]()['then'](function(_0x4071b3){const _0x30fb5a=_0x2a37f0;if(!_0x4071b3)throw new ValidationError(_0x30fb5a('0x2f'));_0x377814=_[_0x30fb5a('0xae')](_[_0x30fb5a('0x2b')](_0x4071b3),[_0x30fb5a('0x23'),_0x30fb5a('0x1')]),_0x1dfce3=_[_0x30fb5a('0xae')](_[_0x30fb5a('0x2b')](_0x4071b3),[_0x30fb5a('0x23'),'updatedAt',_0x30fb5a('0x15'),_0x30fb5a('0xc5')]);_0x25a3b9[_0x30fb5a('0x9d')]['id']&&delete _0x25a3b9[_0x30fb5a('0x9d')]['id'];if(_[_0x30fb5a('0x5')](_0x25a3b9['body'][_0x30fb5a('0xb2')]))throw new ValidationError(_0x30fb5a('0x2e'));if(_[_0x30fb5a('0x5')](_0x25a3b9[_0x30fb5a('0x9d')][_0x30fb5a('0x9d')])||_0x25a3b9[_0x30fb5a('0x9d')]['body']==='')throw new ValidationError(_0x30fb5a('0xef'));if(_['isNil'](_0x25a3b9[_0x30fb5a('0x9d')][_0x30fb5a('0x38')]))throw new ValidationError('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x1dfce3);if(!_['includes'](_0x1dfce3,_0x25a3b9[_0x30fb5a('0x9d')]['mapKey']))throw new ValidationError(_0x30fb5a('0x7b')+_0x1dfce3);_0x15f666[_0x25a3b9[_0x30fb5a('0x9d')]['mapKey']]=_0x25a3b9[_0x30fb5a('0x9d')]['from'];})[_0x2a37f0('0x81')](function(){const _0x551823=_0x2a37f0;return db[_0x551823('0x2c')]['findOne']({'where':{'id':_0x25a3b9[_0x551823('0x8')]['id']},'include':[{'model':db[_0x551823('0xbc')],'as':'List','include':[{'model':db[_0x551823('0xc4')],'as':_0x551823('0x49'),'where':_0x15f666,'limit':0x1,'order':[['updatedAt',_0x551823('0xce')]]}]},{'model':db[_0x551823('0x0')],'as':_0x551823('0x8c')}]});})[_0x2a37f0('0x81')](handleEntityNotFound(_0x790ec0,null))[_0x2a37f0('0x81')](function(_0x101c47){const _0x1859a7=_0x2a37f0;if(_0x101c47&&_0x101c47[_0x1859a7('0x66')]){_0x59c602[_0x1859a7('0x71')]=_0x101c47,_0x59c602['applications']=_0x101c47[_0x1859a7('0x8c')],_0x59c602[_0x1859a7('0xd9')]=_0x101c47[_0x1859a7('0x66')],_0x59c602['applications']=_[_0x1859a7('0x102')](_0x59c602[_0x1859a7('0x13')],['priority'],[_0x1859a7('0x59')]);_0x59c602[_0x1859a7('0x71')][_0x1859a7('0x8c')]&&delete _0x59c602[_0x1859a7('0x71')]['Applications'];if(_0x59c602['account'][_0x1859a7('0x66')]&&_0x59c602[_0x1859a7('0x71')]['List'][_0x1859a7('0x49')]['length'])return _0x59c602[_0x1859a7('0x71')]['List'][_0x1859a7('0x49')][0x0];const _0xdfa10b=_['defaults'](_0x25a3b9[_0x1859a7('0x9d')],{'firstName':_0x25a3b9[_0x1859a7('0x9d')][_0x1859a7('0xb2')],'ListId':_0x101c47[_0x1859a7('0xc5')]});return _0xdfa10b[_0x25a3b9[_0x1859a7('0x9d')][_0x1859a7('0x38')]]=_0x25a3b9[_0x1859a7('0x9d')][_0x1859a7('0xb2')],db[_0x1859a7('0xc4')][_0x1859a7('0x18')](_0xdfa10b,{'fields':_0x377814,'raw':!![]});}})['then'](handleEntityNotFound(_0x790ec0,null))[_0x2a37f0('0x81')](function(_0x1c5d30){const _0x29cbbc=_0x2a37f0;_0x59c602[_0x29cbbc('0x4a')]=_0x1c5d30;let _0x51316f=_0x25a3b9['body'][_0x29cbbc('0x62')];if(_0x25a3b9[_0x29cbbc('0xa7')][_0x29cbbc('0x50')])_0x51316f=_0x25a3b9[_0x29cbbc('0xa7')]['cf-connecting-ip'];else _0x25a3b9[_0x29cbbc('0xa7')][_0x29cbbc('0xeb')]&&(_0x51316f=_[_0x29cbbc('0x88')](_0x25a3b9['headers'][_0x29cbbc('0xeb')]['split'](',')));if(_0x1c5d30){const _0x1a7711={'ContactId':_0x1c5d30['id'],'ChatWebsiteId':_0x25a3b9['params']['id'],'from':(_0x1c5d30[_0x29cbbc('0x37')]||'')+'\x20'+(_0x1c5d30[_0x29cbbc('0x101')]||''),'customerIp':_0x51316f,'customerPort':_0x25a3b9[_0x29cbbc('0xa7')][_0x29cbbc('0x27')]?_0x25a3b9[_0x29cbbc('0xa7')][_0x29cbbc('0x27')]:null,'referer':_0x25a3b9['body']['referer'],'browserName':_0x3bf17c[_0x29cbbc('0x4')][_0x29cbbc('0x89')]&&_0x3bf17c[_0x29cbbc('0x4')][_0x29cbbc('0xfa')]?util[_0x29cbbc('0x42')](_0x29cbbc('0xda'),_0x3bf17c[_0x29cbbc('0x4')][_0x29cbbc('0x89')],_0x3bf17c[_0x29cbbc('0x4')][_0x29cbbc('0xfa')]):_0x29cbbc('0xab'),'browserVersion':_0x3bf17c[_0x29cbbc('0x4')][_0x29cbbc('0xfa')]||_0x29cbbc('0xab'),'osName':util[_0x29cbbc('0x42')]('%s\x20%s',_0x3bf17c['os'][_0x29cbbc('0x89')],_0x3bf17c['os'][_0x29cbbc('0xfa')]),'osVersion':_0x3bf17c['os'][_0x29cbbc('0xfa')],'deviceModel':_0x3bf17c[_0x29cbbc('0xa9')][_0x29cbbc('0x68')]&&_0x3bf17c[_0x29cbbc('0xa9')][_0x29cbbc('0x83')]?util['format']('%s\x20%s\x20%s',_0x3bf17c[_0x29cbbc('0xa9')]['model'],_0x3bf17c[_0x29cbbc('0xa9')][_0x29cbbc('0x83')],_0x3bf17c[_0x29cbbc('0xa9')]['type']):null,'deviceVendor':_0x3bf17c['device'][_0x29cbbc('0x83')],'deviceType':_0x3bf17c[_0x29cbbc('0xa9')][_0x29cbbc('0xa2')],'formData':JSON[_0x29cbbc('0xf2')](_0x25a3b9[_0x29cbbc('0x9d')])},_0x55de90={'ChatWebsiteId':_0x25a3b9[_0x29cbbc('0x8')]['id'],'closed':![]};if(_0x25a3b9['body']['threadId'])return _0x55de90[_0x29cbbc('0xc')]=_0x25a3b9[_0x29cbbc('0x9d')][_0x29cbbc('0xc')],db[_0x29cbbc('0xad')][_0x29cbbc('0xf3')]({'where':_0x55de90})[_0x29cbbc('0x81')](function(_0x3af3ca){const _0x1f87ff=_0x29cbbc;if(_0x3af3ca)return[_0x3af3ca,![]];return _0x1a7711[_0x1f87ff('0xc')]=_0x25a3b9[_0x1f87ff('0x9d')][_0x1f87ff('0xc')],_0x1a7711[_0x1f87ff('0xfe')]=_0x25a3b9[_0x1f87ff('0x9d')]['externalUrl'],db['ChatInteraction']['create'](_0x1a7711)[_0x1f87ff('0x81')](function(_0x33bee8){return[_0x33bee8,!![]];});});_0x55de90[_0x29cbbc('0x41')]=_0x1c5d30['id'];if(_0x25a3b9['body'][_0x29cbbc('0x1e')]&&_0x25a3b9['body'][_0x29cbbc('0x1e')]['id'])return _0x55de90['id']=_0x25a3b9[_0x29cbbc('0x9d')][_0x29cbbc('0x1e')]['id'],db['ChatInteraction'][_0x29cbbc('0xf3')]({'where':_0x55de90})['then'](function(_0x1d7f3b){const _0x3cc3ff=_0x29cbbc;if(_0x1d7f3b)return[_0x1d7f3b,![]];return db[_0x3cc3ff('0xad')][_0x3cc3ff('0x18')](_0x1a7711)[_0x3cc3ff('0x81')](function(_0x2b2902){return[_0x2b2902,!![]];});});return db['ChatInteraction']['create'](_0x1a7711)[_0x29cbbc('0x81')](function(_0x424a6f){return[_0x424a6f,!![]];});}})[_0x2a37f0('0x81')](function([_0xfc91f3,_0x380f5b]){const _0x21a354=_0x2a37f0;if(_0xfc91f3){_0x592bc5=_0x380f5b;if(!_0x380f5b){const _0x525bda={'from':(_0x59c602[_0x21a354('0x4a')][_0x21a354('0x37')]||'')+'\x20'+(_0x59c602[_0x21a354('0x4a')][_0x21a354('0x101')]||'')};return _0x25a3b9[_0x21a354('0x9d')][_0x21a354('0xc')]&&_0x25a3b9[_0x21a354('0x9d')][_0x21a354('0x3c')]&&_0x25a3b9[_0x21a354('0x9d')][_0x21a354('0xc')]!=_0x25a3b9[_0x21a354('0x9d')][_0x21a354('0x3c')]&&(_0x525bda['threadId']=_0x25a3b9['body'][_0x21a354('0x3c')]),_0xfc91f3[_0x21a354('0xcc')](_0x525bda);}else return _0xfc91f3;}})['then'](function(_0x52dbeb){const _0x5a4edc=_0x2a37f0;return _0x59c602['interaction']=_0x52dbeb[_0x5a4edc('0x105')]({'plain':!![]}),_0x59c602['interaction'][_0x5a4edc('0xdd')]=_0x592bc5,_0x59c602['interaction'][_0x5a4edc('0xdd')]&&(_0x59c602[_0x5a4edc('0x71')][_0x5a4edc('0x6c')]&&_0x59c602[_0x5a4edc('0x13')]['push']({'id':0x0,'priority':_0x59c602[_0x5a4edc('0x13')][_0x5a4edc('0x6')]+0x1,'app':_0x5a4edc('0x3d'),'appdata':'unmanaged','interval':'*,*,*,*'})),db[_0x5a4edc('0x7')][_0x5a4edc('0x18')]({'body':_0x25a3b9[_0x5a4edc('0x9d')][_0x5a4edc('0x9d')],'ChatWebsiteId':_0x25a3b9[_0x5a4edc('0x8')]['id'],'ChatInteractionId':_0x52dbeb['id'],'direction':'in','ContactId':_0x59c602['contact']['id'],'AttachmentId':_0x25a3b9[_0x5a4edc('0x9d')][_0x5a4edc('0x51')]});})[_0x2a37f0('0x81')](function(_0x1f90dd){const _0x216dfe=_0x2a37f0;_0x59c602[_0x216dfe('0x8d')]=_0x1f90dd;if(_0x59c602[_0x216dfe('0x1e')][_0x216dfe('0xc0')])return db[_0x216dfe('0xd')][_0x216dfe('0xf3')]({'attributes':['id',_0x216dfe('0x89')],'where':{'id':_0x59c602[_0x216dfe('0x1e')]['UserId']}})['then'](function(_0x27911f){const _0x3d292d=_0x216dfe;return _0x27911f&&(_0x59c602[_0x3d292d('0x13')]['unshift']({'id':0x0,'priority':0x0,'app':_0x3d292d('0x8f'),'appdata':_0x27911f[_0x3d292d('0x89')]+','+(_0x59c602['account'][_0x3d292d('0xe')]||0xa),'interval':_0x3d292d('0xd3')}),_0x59c602[_0x3d292d('0xfd')]=!![]),respondWithRpcPromise(_0x3d292d('0x84'),_0x3d292d('0x3f'),_0x59c602);});return respondWithRpcPromise(_0x216dfe('0x84'),'startRouting',_0x59c602);})['then'](function(_0x1980a2){const _0x5e3f4c=_0x2a37f0;return respondWithRpcPromise(_0x5e3f4c('0xcd'),_0x5e3f4c('0xcd'),{'event':_0x5e3f4c('0x9f'),'message':_0x1980a2},client9002),_0x1980a2;})[_0x2a37f0('0x81')](respondWithResult(_0x790ec0,null))[_0x2a37f0('0xb5')](handleError(_0x790ec0,null));},exports[_0x5a3283('0xec')]=function(_0x7dead7,_0x3c0bfb){const _0x84bdaf=_0x5a3283;let _0x5cfbf9,_0x123fb3,_0x2081f7=[];const _0x161d8d={};return db['CmContact'][_0x84bdaf('0x16')]()[_0x84bdaf('0x81')](function(_0x45e9b8){const _0x18776a=_0x84bdaf;if(!_0x45e9b8)throw new ValidationError('no\x20available\x20attributes');_0x2081f7=_[_0x18776a('0xae')](_[_0x18776a('0x2b')](_0x45e9b8),[_0x18776a('0x23'),_0x18776a('0x1'),_0x18776a('0x15'),_0x18776a('0xc5')]);_0x7dead7[_0x18776a('0x9d')]['id']&&delete _0x7dead7[_0x18776a('0x9d')]['id'];if(_[_0x18776a('0x5')](_0x7dead7[_0x18776a('0x9d')][_0x18776a('0xb2')]))throw _0x3c0bfb[_0x18776a('0x5d')](0x1f4)[_0x18776a('0xa3')](new ValidationError('from\x20is\x20mandatory'));if(_[_0x18776a('0x5')](_0x7dead7[_0x18776a('0x9d')]['body'])||_0x7dead7['body'][_0x18776a('0x9d')]==='')throw _0x3c0bfb['status'](0x1f4)[_0x18776a('0xa3')](new ValidationError(_0x18776a('0xef')));if(_['isNil'](_0x7dead7[_0x18776a('0x9d')][_0x18776a('0x19')]))throw _0x3c0bfb[_0x18776a('0x5d')](0x1f4)['send'](new ValidationError(_0x18776a('0xe0')+_0x2081f7));if(!_[_0x18776a('0x6d')](_0x2081f7,_0x7dead7[_0x18776a('0x9d')][_0x18776a('0x19')]))throw _0x3c0bfb[_0x18776a('0x5d')](0x1f4)[_0x18776a('0xa3')](new ValidationError(_0x18776a('0xbe')+_0x2081f7));_0x161d8d[_0x7dead7['body'][_0x18776a('0x19')]]=_0x7dead7['body'][_0x18776a('0xb2')];})[_0x84bdaf('0x81')](function(){const _0x105cee=_0x84bdaf;return db[_0x105cee('0x2c')][_0x105cee('0xf3')]({'where':{'id':_0x7dead7[_0x105cee('0x8')]['id']},'include':[{'model':db[_0x105cee('0xbc')],'as':_0x105cee('0x66')}]});})[_0x84bdaf('0x81')](handleEntityNotFound(_0x3c0bfb,null))[_0x84bdaf('0x81')](function(_0x272383){const _0x4969a1=_0x84bdaf;if(_0x272383&&_0x272383['List']){_0x123fb3=_0x272383;const _0x28d167=_[_0x4969a1('0x43')](_0x7dead7[_0x4969a1('0x9d')],{'firstName':_0x7dead7[_0x4969a1('0x9d')]['from'],'phone':_0x7dead7['body'][_0x4969a1('0xb2')],'ListId':_0x272383[_0x4969a1('0xc5')]});return _0x28d167[_0x7dead7[_0x4969a1('0x9d')][_0x4969a1('0x19')]]=_0x7dead7[_0x4969a1('0x9d')][_0x4969a1('0xb2')],db['CmContact'][_0x4969a1('0x9c')]({'where':_0x161d8d,'defaults':_0x28d167});}})[_0x84bdaf('0x81')](function([_0x133c6b]){const _0x2054b7=_0x84bdaf;if(_0x133c6b){const _0x50aad6=fs[_0x2054b7('0x95')](path[_0x2054b7('0x92')](config['root'],_0x2054b7('0x35')),_0x2054b7('0x61')),_0x5210d5=ejs[_0x2054b7('0x58')](_0x50aad6,{'body':_[_0x2054b7('0x60')](_0x7dead7[_0x2054b7('0x9d')]['body']),'bodyTitle':_0x123fb3[_0x2054b7('0xb7')]});return db[_0x2054b7('0x1a')][_0x2054b7('0x18')]({'body':_0x5210d5,'ContactId':_0x133c6b['id'],'ChatWebsiteId':_0x123fb3['id']});}})['then'](function(_0x3e2001){const _0x27ca31=_0x84bdaf;if(_0x3e2001)return _0x5cfbf9=_0x3e2001,db['MailAccount'][_0x27ca31('0xf3')]({'where':{'service':!![]},'include':[{'model':db['MailServerOut'],'as':'Smtp','raw':!![]}]});})[_0x84bdaf('0x81')](function(_0x1318a7){const _0x34a5e6=_0x84bdaf;if(_0x1318a7&&_0x1318a7[_0x34a5e6('0xf5')]&&_0x123fb3[_0x34a5e6('0x32')]){const _0x5f573f={'tls':{'rejectUnauthorized':![]}};return _0x1318a7[_0x34a5e6('0xf5')][_0x34a5e6('0xac')]?_0x5f573f[_0x34a5e6('0xac')]=_0x1318a7[_0x34a5e6('0xf5')][_0x34a5e6('0xac')]:(_0x5f573f[_0x34a5e6('0xe6')]=_0x1318a7[_0x34a5e6('0xf5')][_0x34a5e6('0xe6')],_0x5f573f['port']=_0x1318a7[_0x34a5e6('0xf5')][_0x34a5e6('0x53')],_0x5f573f['secure']=_0x1318a7[_0x34a5e6('0xf5')][_0x34a5e6('0x99')]),_0x1318a7[_0x34a5e6('0xf5')]['authentication']&&(_0x5f573f[_0x34a5e6('0x25')]={'user':_0x1318a7[_0x34a5e6('0xf5')][_0x34a5e6('0xaa')],'pass':_0x1318a7[_0x34a5e6('0xf5')][_0x34a5e6('0x1c')]}),respondWithRpcPromise(_0x34a5e6('0xf'),'sendMail',{'account':_0x5f573f,'message':{'from':util[_0x34a5e6('0x42')](_0x34a5e6('0x47'),_0x1318a7['name'],_0x1318a7[_0x34a5e6('0xc9')]||_0x1318a7[_0x34a5e6('0xf5')][_0x34a5e6('0xaa')]),'to':_0x123fb3['forwardOfflineAddress'],'subject':_0x123fb3[_0x34a5e6('0xe2')],'text':_0x5cfbf9['body']}},client9003)[_0x34a5e6('0x81')](function(){return _0x5cfbf9;})[_0x34a5e6('0xb5')](function(_0xbe3001){console['error'](_0xbe3001);});}})[_0x84bdaf('0x81')](function(){if(_0x5cfbf9)return _0x5cfbf9;})[_0x84bdaf('0x81')](respondWithResult(_0x3c0bfb,null))[_0x84bdaf('0xb5')](handleError(_0x3c0bfb,null));},exports['addInteraction']=function(_0x486a82,_0x51a603){const _0x3a0320=_0x5a3283;return db[_0x3a0320('0xad')][_0x3a0320('0xf3')]({'where':{'id':_0x486a82['params']['id']}})['then'](function(_0x2656b0){const _0x586ba4=_0x3a0320;if(_0x2656b0)return _0x2656b0[_0x586ba4('0xdf')](_0x486a82[_0x586ba4('0x9d')]['ids'],{'through':_[_0x586ba4('0xc1')](_0x486a82[_0x586ba4('0x9d')],[_0x586ba4('0xb6'),'id'])});})[_0x3a0320('0x81')](respondWithResult(_0x51a603,null))['catch'](handleError(_0x51a603,null));},exports[_0x5a3283('0xa')]=function(_0x545cfa,_0x8d9b92){const _0x62b696=_0x5a3283;let _0x504118={'raw':![],'where':{}};const _0x224fd4={},_0x4210be={'count':0x0,'rows':[]};return db[_0x62b696('0x2c')]['findOne']({'where':{'id':_0x545cfa[_0x62b696('0x8')]['id']}})['then'](handleEntityNotFound(_0x8d9b92,null))[_0x62b696('0x81')](function(_0x1fb70d){const _0x1b9fd9=_0x62b696;if(_0x1fb70d)return _0x224fd4['model']=_[_0x1b9fd9('0x2b')](db[_0x1b9fd9('0xad')][_0x1b9fd9('0xde')]),_0x224fd4['query']=_['keys'](_0x545cfa[_0x1b9fd9('0x6e')]),_0x224fd4[_0x1b9fd9('0xf6')]=_[_0x1b9fd9('0x73')](_0x224fd4[_0x1b9fd9('0x68')],_0x224fd4['query']),_0x504118[_0x1b9fd9('0x8a')]=_[_0x1b9fd9('0x73')](_0x224fd4[_0x1b9fd9('0x68')],qs[_0x1b9fd9('0xe8')](_0x545cfa['query']['fields'])),_0x504118[_0x1b9fd9('0x8a')]=_0x504118[_0x1b9fd9('0x8a')][_0x1b9fd9('0x6')]?_0x504118['attributes']:_0x224fd4[_0x1b9fd9('0x68')],typeof _0x545cfa[_0x1b9fd9('0x6e')]['nolimit']==='undefined'&&(_0x504118[_0x1b9fd9('0x10')]=qs[_0x1b9fd9('0x10')](_0x545cfa[_0x1b9fd9('0x6e')]['limit']),_0x504118[_0x1b9fd9('0xbd')]=qs[_0x1b9fd9('0xbd')](_0x545cfa[_0x1b9fd9('0x6e')][_0x1b9fd9('0xbd')])),_0x504118['order']=qs['sort'](_0x545cfa['query'][_0x1b9fd9('0x106')]),_0x504118['where']=qs[_0x1b9fd9('0xf6')](_[_0x1b9fd9('0x94')](_0x545cfa['query'],_0x224fd4['filters'])),_0x504118[_0x1b9fd9('0xa0')][_0x1b9fd9('0x72')]=_0x1fb70d['id'],_0x545cfa[_0x1b9fd9('0x6e')][_0x1b9fd9('0x34')]&&(_0x504118[_0x1b9fd9('0xa0')]=_[_0x1b9fd9('0x82')](_0x504118[_0x1b9fd9('0xa0')],{[Op['or']]:_[_0x1b9fd9('0x77')](_0x504118[_0x1b9fd9('0x8a')],function(_0x3b14f1){const _0x3ff4d1=_0x1b9fd9,_0x3b1395={};return _0x3b1395[_0x3b14f1]={[Op[_0x3ff4d1('0x74')]]:'%'+_0x545cfa[_0x3ff4d1('0x6e')][_0x3ff4d1('0x34')]+'%'},_0x3b1395;})})),_0x504118=_['merge']({},_0x504118,_0x545cfa[_0x1b9fd9('0xba')]),db[_0x1b9fd9('0xad')][_0x1b9fd9('0x39')]({'where':_0x504118[_0x1b9fd9('0xa0')]})[_0x1b9fd9('0x81')](function(_0x555293){const _0x5f5065=_0x1b9fd9;return _0x4210be[_0x5f5065('0x39')]=_0x555293,_0x545cfa['query'][_0x5f5065('0xf1')]&&(_0x504118[_0x5f5065('0x80')]=[{'model':db[_0x5f5065('0xc4')],'as':'Contact','required':![]},{'model':db[_0x5f5065('0xd')],'as':_0x5f5065('0xcf'),'attributes':[_0x5f5065('0x89'),_0x5f5065('0x5f'),'internal'],'required':![]},{'model':db[_0x5f5065('0x3')],'as':_0x5f5065('0xe9'),'attributes':['id',_0x5f5065('0x89'),_0x5f5065('0x22')],'where':_0x545cfa['query'][_0x5f5065('0x3b')]?{'id':_0x545cfa[_0x5f5065('0x6e')][_0x5f5065('0x3b')]}:undefined,'required':_0x545cfa[_0x5f5065('0x6e')][_0x5f5065('0x3b')]?!![]:![]}]),db[_0x5f5065('0xad')]['findAll'](_0x504118);})[_0x1b9fd9('0x81')](function(_0x20c855){return _0x4210be['rows']=_0x20c855,_0x4210be;});})[_0x62b696('0x81')](respondWithFilteredResult(_0x8d9b92,_0x504118))[_0x62b696('0xb5')](handleError(_0x8d9b92,null));};function iftimePromise(_0x1981c1,_0x311283){const _0x4bb113=_0x5a3283;return respondWithRpcPromise(_0x4bb113('0xa5'),_0x4bb113('0x85'),{'command':_0x311283[_0x4bb113('0x11')]?util[_0x4bb113('0x42')]('iftime\x20%s,%s',_0x1981c1[_0x4bb113('0xd8')],_0x311283[_0x4bb113('0x11')]):util['format'](_0x4bb113('0xf0'),_0x1981c1[_0x4bb113('0xd8')])},client9002)[_0x4bb113('0x81')](function(_0x590663){const _0x3af0f3=_0x4bb113,_0x3bef5e=_0x590663&&_0x590663['indexOf'](_0x3af0f3('0x97'))>=0x0?!![]:![];return logger[_0x3af0f3('0x9')](_0x3af0f3('0xf7'),_0x311283['id'],_0x1981c1['id'],_0x1981c1[_0x3af0f3('0xd8')],_0x3bef5e?_0x3af0f3('0xcb'):_0x3af0f3('0x5a'),_0x311283[_0x3af0f3('0x11')]?_0x311283[_0x3af0f3('0x11')]:_0x3af0f3('0x6b')),_0x3bef5e;})[_0x4bb113('0xb5')](function(_0x52dab3){const _0x4c1003=_0x4bb113;return logger[_0x4c1003('0xdc')](_0x4c1003('0xf7'),_0x311283['id'],_0x1981c1['id'],_0x1981c1[_0x4c1003('0xd8')],util[_0x4c1003('0x28')](_0x52dab3,{'showHidden':![],'depth':null}),_0x311283[_0x4c1003('0x11')]?_0x311283[_0x4c1003('0x11')]:_0x4c1003('0x6b')),![];});}exports[_0x5a3283('0x85')]=function(_0x159ced,_0x2b0a76){const _0x49723f=_0x5a3283;let _0x2955d1=0x0,_0x2c005a=0x0,_0x313d9e=![],_0x186d58,_0x4eddbd;return db['ChatWebsite'][_0x49723f('0xf3')]({'where':{'id':_0x159ced['params']['id']},'include':[{'model':db['Interval'],'as':_0x49723f('0xd5'),'include':[{'model':db[_0x49723f('0xd5')],'as':_0x49723f('0x1f'),'attributes':['id',_0x49723f('0xd8')],'raw':!![]}]}]})[_0x49723f('0x81')](handleEntityNotFound(_0x2b0a76,null))[_0x49723f('0x81')](function(_0x53794b){if(_0x53794b)return _0x186d58=_0x53794b,_0x53794b['getProactiveActions']({'raw':!![]});})[_0x49723f('0x81')](function(_0x2106d5){const _0x4cea7b=_0x49723f;return _0x186d58&&(_0x2106d5&&(_0x4eddbd=_0x2106d5)),require('../../config/license/util')[_0x4cea7b('0xc3')]();})[_0x49723f('0x81')](function(_0x44465f){const _0x481863=_0x49723f;_0x44465f&&(_0x2c005a=_0x44465f['virtual'],_0x313d9e=_0x44465f[_0x481863('0xb0')]);})[_0x49723f('0x81')](function(){const _0x4a61d0=_0x49723f;return db[_0x4a61d0('0xad')][_0x4a61d0('0x39')]({'where':{'closed':![]}});})[_0x49723f('0x81')](function(_0x527a56){const _0x371359=_0x49723f;_0x2955d1=_0x527a56;if(_0x2c005a&&_0x527a56>_0x2c005a)return db[_0x371359('0xca')][_0x371359('0xf3')]({'where':{'id':0x1}})[_0x371359('0x81')](function(_0x1c142e){const _0xa0f567=_0x371359;_0x1c142e&&_0x1c142e['increment'](_0xa0f567('0xc2'));});})['then'](function(){const _0x553e52=_0x49723f;if(_0x186d58[_0x553e52('0xd5')]&&_0x186d58[_0x553e52('0xd5')]['Intervals']){const _0x45f56b=[];for(let _0x5d54f4=0x0;_0x5d54f4<_0x186d58[_0x553e52('0xd5')][_0x553e52('0x1f')]['length'];_0x5d54f4++){const _0x4fdf30=_0x186d58[_0x553e52('0xd5')][_0x553e52('0x1f')][_0x5d54f4]['get']({'plain':!![]});_0x45f56b[_0x553e52('0x7f')](iftimePromise(_0x4fdf30,_0x186d58));}return Promise['all'](_0x45f56b)[_0x553e52('0x81')](function(_0x51144a){const _0x2073a7=_0x553e52;return _[_0x2073a7('0x12')](_0x51144a);});}else return!![];})[_0x49723f('0x81')](function(_0x17aa2a){const _0x59da17=_0x49723f,_0x3d9a7d=_0x159ced[_0x59da17('0x2d')][_0x59da17('0x105')]('chatVersion'),_0x2db846=fs[_0x59da17('0x95')](path[_0x59da17('0x92')](config['root'],_0x59da17('0x44')),_0x59da17('0x61')),_0x1a7271={'chatVersion':_0x3d9a7d,'remote':_0x186d58[_0x59da17('0x69')],'query':querystring[_0x59da17('0xf2')](_[_0x59da17('0x82')](_0x186d58[_0x59da17('0x105')]({'plain':!![]}),{'customerIp':_0x159ced[_0x59da17('0xa7')]['x-forwarded-for']||_0x159ced['headers'][_0x59da17('0x78')]||_0x159ced[_0x59da17('0x4e')]['remoteAddress']||_0x159ced['ip'],'referer':_0x159ced['headers']['referer'],'openedInteractions':_0x2955d1,'maxInteractions':_0x2c005a,'virtual':_0x313d9e[_0x59da17('0x4b')],'online':_0x17aa2a,'custom':_0x313d9e}))[_0x59da17('0x5e')](/'/g,'\x5c\x27')};_0x2b0a76[_0x59da17('0xa3')](ejs[_0x59da17('0x58')](Mustache[_0x59da17('0x58')](_0x2db846,_0x1a7271),{'proactiveActions':_0x4eddbd,'alignment':_0x186d58[_0x59da17('0x65')],'verticalAlignment':_0x186d58['verticalAlignment'],'div_color':_0x186d58[_0x59da17('0x22')],'text_color':_0x186d58['textColor']}));})[_0x49723f('0xb5')](handleError(_0x2b0a76,null));},exports['addApplications']=function(_0x5237c1,_0x165436){const _0x512d89=_0x5a3283;return db[_0x512d89('0x2c')][_0x512d89('0xf3')]({'where':{'id':_0x5237c1['params']['id']}})[_0x512d89('0x81')](handleEntityNotFound(_0x165436,null))['then'](function(_0x4b17ba){const _0x506b45=_0x512d89;if(_0x4b17ba)return db['sequelize'][_0x506b45('0xea')](function(_0x17001a){const _0x372d3b=_0x506b45;return db['ChatApplication'][_0x372d3b('0xd2')]({'where':{'ChatWebsiteId':_0x5237c1[_0x372d3b('0x8')]['id']},'transaction':_0x17001a})[_0x372d3b('0x81')](function(){const _0x104df4=_0x372d3b,_0x4fff14=_[_0x104df4('0x77')](_0x5237c1[_0x104df4('0x9d')],function(_0x1ec6b2){const _0x2ce539=_0x104df4;return _0x1ec6b2['ChatWebsiteId']=_0x5237c1[_0x2ce539('0x8')]['id'],_0x1ec6b2;});return db['ChatApplication'][_0x104df4('0x4d')](_0x4fff14,{'transaction':_0x17001a});});})[_0x506b45('0x81')](function(){const _0x40cab4=_0x506b45;return db[_0x40cab4('0x0')][_0x40cab4('0x93')]({'where':{'ChatWebsiteId':_0x5237c1[_0x40cab4('0x8')]['id']},'order':_0x40cab4('0x45')});});})[_0x512d89('0x81')](respondWithResult(_0x165436,null))['catch'](handleError(_0x165436,null));},exports['getApplications']=function(_0x30ba48,_0x37344a){const _0x12218a=_0x5a3283;let _0x26233c={};const _0x58601f={};let _0x2f5de7,_0x5747fb;return db['ChatWebsite'][_0x12218a('0xf3')]({'where':{'id':_0x30ba48[_0x12218a('0x8')]['id']}})[_0x12218a('0x81')](handleEntityNotFound(_0x37344a,null))['then'](function(_0x44e8c8){const _0x2f38b7=_0x12218a;if(_0x44e8c8)return _0x2f5de7=_0x44e8c8,_0x58601f[_0x2f38b7('0x68')]=_['keys'](db[_0x2f38b7('0x0')][_0x2f38b7('0xde')]),_0x58601f[_0x2f38b7('0x6e')]=_['keys'](_0x30ba48['query']),_0x58601f['filters']=_[_0x2f38b7('0x73')](_0x58601f[_0x2f38b7('0x68')],_0x58601f[_0x2f38b7('0x6e')]),_0x26233c['attributes']=_[_0x2f38b7('0x73')](_0x58601f['model'],qs[_0x2f38b7('0xe8')](_0x30ba48['query']['fields'])),_0x26233c[_0x2f38b7('0x8a')]=_0x26233c[_0x2f38b7('0x8a')][_0x2f38b7('0x6')]?_0x26233c[_0x2f38b7('0x8a')]:_0x58601f[_0x2f38b7('0x68')],_0x26233c[_0x2f38b7('0xf4')]=qs['sort'](_0x30ba48[_0x2f38b7('0x6e')][_0x2f38b7('0x106')]),_0x26233c[_0x2f38b7('0xa0')]=qs[_0x2f38b7('0xf6')](_[_0x2f38b7('0x94')](_0x30ba48[_0x2f38b7('0x6e')],_0x58601f[_0x2f38b7('0xf6')])),_0x30ba48[_0x2f38b7('0x6e')][_0x2f38b7('0x34')]&&(_0x26233c[_0x2f38b7('0xa0')]=_[_0x2f38b7('0x82')](_0x26233c[_0x2f38b7('0xa0')],{[Op['or']]:_['map'](_0x26233c[_0x2f38b7('0x8a')],function(_0x168eea){const _0x45f384=_0x2f38b7,_0x362fce={};return _0x362fce[_0x168eea]={[Op[_0x45f384('0x74')]]:'%'+_0x30ba48[_0x45f384('0x6e')][_0x45f384('0x34')]+'%'},_0x362fce;})})),_0x26233c=_[_0x2f38b7('0x82')]({},_0x26233c,_0x30ba48[_0x2f38b7('0xba')]),_0x2f5de7[_0x2f38b7('0x7a')](_0x26233c);})[_0x12218a('0x81')](function(_0xf6d9c4){const _0x2cb197=_0x12218a;if(_0xf6d9c4)return _0x5747fb=_0xf6d9c4['length'],typeof _0x30ba48[_0x2cb197('0x6e')]['nolimit']===_0x2cb197('0xff')&&(_0x26233c[_0x2cb197('0x10')]=qs[_0x2cb197('0x10')](_0x30ba48[_0x2cb197('0x6e')][_0x2cb197('0x10')]),_0x26233c[_0x2cb197('0xbd')]=qs[_0x2cb197('0xbd')](_0x30ba48[_0x2cb197('0x6e')][_0x2cb197('0xbd')])),_0x2f5de7['getApplications'](_0x26233c);})[_0x12218a('0x81')](function(_0x38d06d){if(_0x38d06d)return _0x38d06d?{'count':_0x5747fb,'rows':_0x38d06d}:null;})[_0x12218a('0x81')](respondWithResult(_0x37344a,null))[_0x12218a('0xb5')](handleError(_0x37344a,null));},exports[_0x5a3283('0x54')]=function(_0x23ccd8,_0x442868){const _0x2ea596=_0x5a3283;return db[_0x2ea596('0x17')]['findOne']({'where':{'id':_0x23ccd8[_0x2ea596('0x8')]['id']}})[_0x2ea596('0x81')](function(_0x44f8e2){const _0x2edcda=_0x2ea596;if(_0x44f8e2)return _0x44f8e2[_0x2edcda('0x54')](_0x23ccd8[_0x2edcda('0x9d')]['ids'],{'through':_[_0x2edcda('0xc1')](_0x23ccd8['body'],[_0x2edcda('0xb6'),'id'])});})[_0x2ea596('0x81')](respondWithResult(_0x442868,null))['catch'](handleError(_0x442868,null));},exports[_0x5a3283('0xdb')]=function(_0x4cd3b3,_0x12318a){const _0x150b31=_0x5a3283;let _0x2d8900={};const _0x48d837={};let _0x119454,_0x28945e;return db['ChatWebsite']['findOne']({'where':{'id':_0x4cd3b3[_0x150b31('0x8')]['id']}})['then'](handleEntityNotFound(_0x12318a,null))[_0x150b31('0x81')](function(_0xf0f809){const _0x311643=_0x150b31;if(_0xf0f809)return _0x119454=_0xf0f809,_0x48d837[_0x311643('0x68')]=_[_0x311643('0x2b')](db['ChatProactiveAction'][_0x311643('0xde')]),_0x48d837[_0x311643('0x6e')]=_[_0x311643('0x2b')](_0x4cd3b3['query']),_0x48d837[_0x311643('0xf6')]=_[_0x311643('0x73')](_0x48d837['model'],_0x48d837[_0x311643('0x6e')]),_0x2d8900[_0x311643('0x8a')]=_[_0x311643('0x73')](_0x48d837['model'],qs[_0x311643('0xe8')](_0x4cd3b3['query']['fields'])),_0x2d8900[_0x311643('0x8a')]=_0x2d8900[_0x311643('0x8a')][_0x311643('0x6')]?_0x2d8900[_0x311643('0x8a')]:_0x48d837[_0x311643('0x68')],_0x2d8900[_0x311643('0xf4')]=qs[_0x311643('0x106')](_0x4cd3b3[_0x311643('0x6e')]['sort']),_0x2d8900['where']=qs[_0x311643('0xf6')](_['pick'](_0x4cd3b3['query'],_0x48d837[_0x311643('0xf6')])),_0x4cd3b3[_0x311643('0x6e')]['filter']&&(_0x2d8900[_0x311643('0xa0')]=_['merge'](_0x2d8900[_0x311643('0xa0')],{[Op['or']]:_[_0x311643('0x77')](_0x2d8900[_0x311643('0x8a')],function(_0x1faa7a){const _0x341298=_0x311643,_0x17e4df={};return _0x17e4df[_0x1faa7a]={[Op[_0x341298('0x74')]]:'%'+_0x4cd3b3[_0x341298('0x6e')][_0x341298('0x34')]+'%'},_0x17e4df;})})),_0x2d8900=_[_0x311643('0x82')]({},_0x2d8900,_0x4cd3b3[_0x311643('0xba')]),_0x119454['getProactiveActions'](_0x2d8900);})[_0x150b31('0x81')](function(_0x54e71f){const _0x3699a8=_0x150b31;if(_0x54e71f)return _0x28945e=_0x54e71f[_0x3699a8('0x6')],typeof _0x4cd3b3[_0x3699a8('0x6e')][_0x3699a8('0xaf')]===_0x3699a8('0xff')&&(_0x2d8900[_0x3699a8('0x10')]=qs[_0x3699a8('0x10')](_0x4cd3b3[_0x3699a8('0x6e')][_0x3699a8('0x10')]),_0x2d8900[_0x3699a8('0xbd')]=qs[_0x3699a8('0xbd')](_0x4cd3b3[_0x3699a8('0x6e')][_0x3699a8('0xbd')])),_0x119454[_0x3699a8('0xdb')](_0x2d8900);})[_0x150b31('0x81')](function(_0xe5e5d4){if(_0xe5e5d4)return _0xe5e5d4?{'count':_0x28945e,'rows':_0xe5e5d4}:null;})[_0x150b31('0x81')](respondWithResult(_0x12318a,null))['catch'](handleError(_0x12318a,null));},exports['getFields']=function(_0x347f4d,_0x415185){const _0x3e3b22=_0x5a3283,_0x119180=_0x347f4d[_0x3e3b22('0x6e')][_0x3e3b22('0x31')]==='false'?_0x3e3b22('0x7c'):_0x3e3b22('0xbb');return db[_0x3e3b22('0x2c')][_0x3e3b22('0xf3')]({'attributes':['id',_0x119180],'where':{'id':_0x347f4d[_0x3e3b22('0x8')]['id']}})[_0x3e3b22('0x81')](handleEntityNotFound(_0x415185,null))[_0x3e3b22('0x81')](function(_0x2902f0){const _0x7fd2dd=_0x3e3b22;if(_0x2902f0){const _0x2877d4=_0x2902f0[_0x119180],_0x568c17=_0x2877d4&&_0x2877d4[_0x7fd2dd('0xb1')]?_0x2877d4[_0x7fd2dd('0xb1')]:[];_0x415185[_0x7fd2dd('0xa3')]({'fromKey':_[_0x7fd2dd('0x5')](_0x2877d4[_0x7fd2dd('0xb')])?undefined:_0x2877d4[_0x7fd2dd('0xb')],'count':_0x568c17[_0x7fd2dd('0x6')],'rows':_0x568c17});}})[_0x3e3b22('0xb5')](handleError(_0x415185,null));},exports[_0x5a3283('0xe7')]=function(_0x2b8a19,_0x54a608){const _0x385d5d=_0x5a3283;let _0x486436={'raw':![],'where':{}};const _0x14a692={},_0x373e65={'count':0x0,'rows':[]};return db['ChatWebsite'][_0x385d5d('0xf3')]({'where':{'id':_0x2b8a19['params']['id']}})[_0x385d5d('0x81')](handleEntityNotFound(_0x54a608,null))[_0x385d5d('0x81')](function(_0x4742d8){const _0xbd0ada=_0x385d5d;if(_0x4742d8)return _0x14a692['model']=_[_0xbd0ada('0x2b')](db[_0xbd0ada('0x1a')][_0xbd0ada('0xde')]),_0x14a692['query']=_[_0xbd0ada('0x2b')](_0x2b8a19[_0xbd0ada('0x6e')]),_0x14a692[_0xbd0ada('0xf6')]=_[_0xbd0ada('0x73')](_0x14a692['model'],_0x14a692[_0xbd0ada('0x6e')]),_0x486436[_0xbd0ada('0x8a')]=_[_0xbd0ada('0x73')](_0x14a692[_0xbd0ada('0x68')],qs[_0xbd0ada('0xe8')](_0x2b8a19[_0xbd0ada('0x6e')]['fields'])),_0x486436[_0xbd0ada('0x8a')]=_0x486436[_0xbd0ada('0x8a')][_0xbd0ada('0x6')]?_0x486436[_0xbd0ada('0x8a')]:_0x14a692['model'],typeof _0x2b8a19[_0xbd0ada('0x6e')][_0xbd0ada('0xaf')]===_0xbd0ada('0xff')&&(_0x486436[_0xbd0ada('0x10')]=qs[_0xbd0ada('0x10')](_0x2b8a19['query'][_0xbd0ada('0x10')]),_0x486436['offset']=qs[_0xbd0ada('0xbd')](_0x2b8a19[_0xbd0ada('0x6e')][_0xbd0ada('0xbd')])),_0x486436[_0xbd0ada('0xf4')]=qs[_0xbd0ada('0x106')](_0x2b8a19['query'][_0xbd0ada('0x106')]),_0x486436['where']=qs['filters'](_['pick'](_0x2b8a19[_0xbd0ada('0x6e')],_0x14a692[_0xbd0ada('0xf6')])),_0x486436[_0xbd0ada('0xa0')][_0xbd0ada('0x72')]=_0x4742d8['id'],_0x2b8a19[_0xbd0ada('0x6e')][_0xbd0ada('0x34')]&&(_0x486436[_0xbd0ada('0xa0')]=_[_0xbd0ada('0x82')](_0x486436[_0xbd0ada('0xa0')],{[Op['or']]:_[_0xbd0ada('0x77')](_0x486436[_0xbd0ada('0x8a')],function(_0x1e6b3c){const _0x5f3640=_0xbd0ada,_0x776813={};return _0x776813[_0x1e6b3c]={[Op['like']]:'%'+_0x2b8a19['query'][_0x5f3640('0x34')]+'%'},_0x776813;})})),_0x486436=_[_0xbd0ada('0x82')]({},_0x486436,_0x2b8a19[_0xbd0ada('0xba')]),db['ChatOfflineMessage'][_0xbd0ada('0x39')]({'where':_0x486436['where']})[_0xbd0ada('0x81')](function(_0x1baa1d){const _0x4f75d7=_0xbd0ada;return _0x373e65[_0x4f75d7('0x39')]=_0x1baa1d,_0x2b8a19[_0x4f75d7('0x6e')][_0x4f75d7('0xf1')]?_0x486436[_0x4f75d7('0x80')]=[{'all':!![]}]:_0x486436['include']=[{'model':db[_0x4f75d7('0xc4')],'as':_0x4f75d7('0x96'),'required':![]}],db[_0x4f75d7('0x1a')][_0x4f75d7('0x30')](_0x486436);})[_0xbd0ada('0x81')](function(_0x13a4d3){const _0x379446=_0xbd0ada;return _0x373e65[_0x379446('0xa8')]=_0x13a4d3,_0x373e65;});})[_0x385d5d('0x81')](respondWithFilteredResult(_0x54a608,_0x486436))['catch'](handleError(_0x54a608,null));},exports[_0x5a3283('0x55')]=function(_0x197f93,_0x218ba2){const _0x2ae448=_0x5a3283;return db[_0x2ae448('0x2c')][_0x2ae448('0xf3')]({'where':{'id':_0x197f93[_0x2ae448('0x8')]['id']}})['then'](function(_0x4dac91){const _0x22801b=_0x2ae448;if(_0x4dac91)return _0x4dac91[_0x22801b('0x55')](_0x197f93['body'][_0x22801b('0xb6')],{'through':_[_0x22801b('0xc1')](_0x197f93[_0x22801b('0x9d')],[_0x22801b('0xb6'),'id'])})[_0x22801b('0x81')](function(_0x39cca8){const _0x561cb9=_0x22801b;for(let _0xd08a7d=0x0;_0xd08a7d<_0x197f93['body'][_0x561cb9('0xb6')]['length'];_0xd08a7d+=0x1){socket[_0x561cb9('0xd7')](_0x561cb9('0x8e'),{'UserId':_0x197f93['body'][_0x561cb9('0xb6')][_0xd08a7d],'ChatWebsiteId':_0x197f93['params']['id']});}return _0x39cca8;});})['then'](respondWithResult(_0x218ba2,null))['catch'](handleError(_0x218ba2,null));},exports[_0x5a3283('0x21')]=function(_0x9b71cf,_0x3fb4cb){const _0x610813=_0x5a3283;return db[_0x610813('0x2c')][_0x610813('0xf3')]({'where':{'id':_0x9b71cf[_0x610813('0x8')]['id']}})[_0x610813('0x81')](handleEntityNotFound(_0x3fb4cb,null))[_0x610813('0x81')](function(_0x282167){const _0x8eeb4d=_0x610813;if(_0x282167)return _0x282167[_0x8eeb4d('0x21')](_0x9b71cf['query'][_0x8eeb4d('0xb6')])['then'](function(){const _0x45bb7e=_0x8eeb4d;if(_[_0x45bb7e('0x56')](_0x9b71cf[_0x45bb7e('0x6e')][_0x45bb7e('0xb6')]))for(let _0x4356b3=0x0;_0x4356b3<_0x9b71cf[_0x45bb7e('0x6e')][_0x45bb7e('0xb6')]['length'];_0x4356b3+=0x1){socket[_0x45bb7e('0xd7')](_0x45bb7e('0x26'),{'UserId':Number(_0x9b71cf['query'][_0x45bb7e('0xb6')][_0x4356b3]),'ChatWebsiteId':Number(_0x9b71cf[_0x45bb7e('0x8')]['id'])});}else socket['emit']('userChatWebsite:remove',{'UserId':Number(_0x9b71cf[_0x45bb7e('0x6e')][_0x45bb7e('0xb6')]),'ChatWebsiteId':Number(_0x9b71cf[_0x45bb7e('0x8')]['id'])});});})['then'](respondWithStatusCode(_0x3fb4cb,null))[_0x610813('0xb5')](handleError(_0x3fb4cb,null));},exports[_0x5a3283('0xe4')]=function(_0x5199b8,_0x594ffd){const _0x2c1ac5=_0x5a3283;let _0x42dcca={};const _0x3535f5={};let _0x2deac2,_0x5aced9;return db[_0x2c1ac5('0x2c')]['findOne']({'where':{'id':_0x5199b8[_0x2c1ac5('0x8')]['id']}})[_0x2c1ac5('0x81')](handleEntityNotFound(_0x594ffd,null))[_0x2c1ac5('0x81')](function(_0x4e022b){const _0x4f18a7=_0x2c1ac5;if(_0x4e022b)return _0x2deac2=_0x4e022b,_0x3535f5[_0x4f18a7('0x68')]=_[_0x4f18a7('0x2b')](db[_0x4f18a7('0xd')][_0x4f18a7('0xde')]),_0x3535f5[_0x4f18a7('0x6e')]=_[_0x4f18a7('0x2b')](_0x5199b8[_0x4f18a7('0x6e')]),_0x3535f5[_0x4f18a7('0xf6')]=_[_0x4f18a7('0x73')](_0x3535f5[_0x4f18a7('0x68')],_0x3535f5[_0x4f18a7('0x6e')]),_0x42dcca[_0x4f18a7('0x8a')]=_[_0x4f18a7('0x73')](_0x3535f5[_0x4f18a7('0x68')],qs[_0x4f18a7('0xe8')](_0x5199b8[_0x4f18a7('0x6e')][_0x4f18a7('0xe8')])),_0x42dcca[_0x4f18a7('0x8a')]=_0x42dcca[_0x4f18a7('0x8a')]['length']?_0x42dcca[_0x4f18a7('0x8a')]:_0x3535f5['model'],_0x42dcca[_0x4f18a7('0xf4')]=qs['sort'](_0x5199b8[_0x4f18a7('0x6e')][_0x4f18a7('0x106')]),_0x42dcca[_0x4f18a7('0xa0')]=qs[_0x4f18a7('0xf6')](_[_0x4f18a7('0x94')](_0x5199b8[_0x4f18a7('0x6e')],_0x3535f5['filters'])),_0x5199b8[_0x4f18a7('0x6e')][_0x4f18a7('0x34')]&&(_0x42dcca[_0x4f18a7('0xa0')]=_[_0x4f18a7('0x82')](_0x42dcca[_0x4f18a7('0xa0')],{[Op['or']]:_[_0x4f18a7('0x77')](_0x42dcca[_0x4f18a7('0x8a')],function(_0x3bf1a3){const _0x5978d4=_0x4f18a7,_0xf0d76a={};return _0xf0d76a[_0x3bf1a3]={[Op[_0x5978d4('0x74')]]:'%'+_0x5199b8['query'][_0x5978d4('0x34')]+'%'},_0xf0d76a;})})),_0x42dcca=_[_0x4f18a7('0x82')]({},_0x42dcca,_0x5199b8['options']),_0x2deac2[_0x4f18a7('0xe4')](_0x42dcca);})['then'](function(_0x21c5cd){const _0x3dad8f=_0x2c1ac5;if(_0x21c5cd)return _0x5aced9=_0x21c5cd[_0x3dad8f('0x6')],typeof _0x5199b8['query'][_0x3dad8f('0xaf')]===_0x3dad8f('0xff')&&(_0x42dcca[_0x3dad8f('0x10')]=qs[_0x3dad8f('0x10')](_0x5199b8[_0x3dad8f('0x6e')][_0x3dad8f('0x10')]),_0x42dcca[_0x3dad8f('0xbd')]=qs[_0x3dad8f('0xbd')](_0x5199b8[_0x3dad8f('0x6e')]['offset'])),_0x2deac2[_0x3dad8f('0xe4')](_0x42dcca);})[_0x2c1ac5('0x81')](function(_0x64c493){if(_0x64c493)return _0x64c493?{'count':_0x5aced9,'rows':_0x64c493}:null;})[_0x2c1ac5('0x81')](respondWithResult(_0x594ffd,null))['catch'](handleError(_0x594ffd,null));}; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.events.js b/server/api/chatWebsite/chatWebsite.events.js index eca616d..0cd4e97 100644 --- a/server/api/chatWebsite/chatWebsite.events.js +++ b/server/api/chatWebsite/chatWebsite.events.js @@ -1 +1 @@ -const a112_0x5b39=['remove','../../mysqldb','emit','undefined','setMaxListeners','events','addHook','save','exports'];(function(_0x4a2421,_0x5b39f8){const _0x3b59ef=function(_0x326e84){while(--_0x326e84){_0x4a2421['push'](_0x4a2421['shift']());}};_0x3b59ef(++_0x5b39f8);}(a112_0x5b39,0x147));const a112_0x3b59=function(_0x4a2421,_0x5b39f8){_0x4a2421=_0x4a2421-0x0;let _0x3b59ef=a112_0x5b39[_0x4a2421];return _0x3b59ef;};const _0x491b05=a112_0x3b59;'use strict';const EventEmitter=require(_0x491b05('0x2')),ChatWebsite=require(_0x491b05('0x7'))['db']['ChatWebsite'],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x491b05('0x1')](0x0);const events={'afterCreate':_0x491b05('0x4'),'afterUpdate':'update','afterDestroy':_0x491b05('0x6')};function emitEvent(_0x326e84){return function(_0x44332f){const _0x195b82=a112_0x3b59;ChatWebsiteEvents[_0x195b82('0x8')](_0x326e84+':'+_0x44332f['id'],_0x44332f),ChatWebsiteEvents[_0x195b82('0x8')](_0x326e84,_0x44332f);};}for(const e in events){if(typeof events[e]!==_0x491b05('0x0')){const event=events[e];ChatWebsite[_0x491b05('0x3')](e,emitEvent(event));}}module[_0x491b05('0x5')]=ChatWebsiteEvents; \ No newline at end of file +const a112_0x5025=['undefined','ChatWebsite','update','save','remove','events','addHook','setMaxListeners'];(function(_0x556187,_0x502541){const _0x3b19df=function(_0xa734e0){while(--_0xa734e0){_0x556187['push'](_0x556187['shift']());}};_0x3b19df(++_0x502541);}(a112_0x5025,0x101));const a112_0x3b19=function(_0x556187,_0x502541){_0x556187=_0x556187-0x0;let _0x3b19df=a112_0x5025[_0x556187];return _0x3b19df;};const _0x1dc5ee=a112_0x3b19;'use strict';const EventEmitter=require(_0x1dc5ee('0x4')),ChatWebsite=require('../../mysqldb')['db'][_0x1dc5ee('0x0')],ChatWebsiteEvents=new EventEmitter();ChatWebsiteEvents[_0x1dc5ee('0x6')](0x0);const events={'afterCreate':_0x1dc5ee('0x2'),'afterUpdate':_0x1dc5ee('0x1'),'afterDestroy':_0x1dc5ee('0x3')};function emitEvent(_0xa734e0){return function(_0x51ef45){ChatWebsiteEvents['emit'](_0xa734e0+':'+_0x51ef45['id'],_0x51ef45),ChatWebsiteEvents['emit'](_0xa734e0,_0x51ef45);};}for(const e in events){if(typeof events[e]!==_0x1dc5ee('0x7')){const event=events[e];ChatWebsite[_0x1dc5ee('0x5')](e,emitEvent(event));}}module['exports']=ChatWebsiteEvents; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.model.js b/server/api/chatWebsite/chatWebsite.model.js index d9dbc60..2496863 100644 --- a/server/api/chatWebsite/chatWebsite.model.js +++ b/server/api/chatWebsite/chatWebsite.model.js @@ -1 +1 @@ -const a113_0x1e11=['./chatWebsite.attributes','ChatWebsite','exports','chat_websites','define'];(function(_0x26740d,_0x1e11b5){const _0x27bb0a=function(_0x4bbc45){while(--_0x4bbc45){_0x26740d['push'](_0x26740d['shift']());}};_0x27bb0a(++_0x1e11b5);}(a113_0x1e11,0x172));const a113_0x27bb=function(_0x26740d,_0x1e11b5){_0x26740d=_0x26740d-0x0;let _0x27bb0a=a113_0x1e11[_0x26740d];return _0x27bb0a;};const _0x4ff92f=a113_0x27bb;'use strict';const attributes=require(_0x4ff92f('0x0'));module[_0x4ff92f('0x2')]=function(_0x4bbc45){const _0x5b6e95=_0x4ff92f,_0x3c528c=_0x4bbc45[_0x5b6e95('0x4')](_0x5b6e95('0x1'),attributes,{'tableName':_0x5b6e95('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3c528c;}; \ No newline at end of file +const a113_0x1e79=['ChatWebsite','exports','define','./chatWebsite.attributes'];(function(_0x48dc22,_0x1e792f){const _0x2dfff4=function(_0x5c236e){while(--_0x5c236e){_0x48dc22['push'](_0x48dc22['shift']());}};_0x2dfff4(++_0x1e792f);}(a113_0x1e79,0xff));const a113_0x2dff=function(_0x48dc22,_0x1e792f){_0x48dc22=_0x48dc22-0x0;let _0x2dfff4=a113_0x1e79[_0x48dc22];return _0x2dfff4;};const _0x123b4e=a113_0x2dff;'use strict';const attributes=require(_0x123b4e('0x0'));module[_0x123b4e('0x2')]=function(_0x5c236e){const _0x41cc81=_0x123b4e,_0x1d90b6=_0x5c236e[_0x41cc81('0x3')](_0x41cc81('0x1'),attributes,{'tableName':'chat_websites','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d90b6;}; \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.rpc.js b/server/api/chatWebsite/chatWebsite.rpc.js index 24ac110..6785ac8 100644 --- a/server/api/chatWebsite/chatWebsite.rpc.js +++ b/server/api/chatWebsite/chatWebsite.rpc.js @@ -1 +1 @@ -const a114_0x9273=['register','./chatWebsite.socket','../../rediscache'];(function(_0x172e3f,_0x92735d){const _0x765e7f=function(_0x24a452){while(--_0x24a452){_0x172e3f['push'](_0x172e3f['shift']());}};_0x765e7f(++_0x92735d);}(a114_0x9273,0x117));const a114_0x765e=function(_0x172e3f,_0x92735d){_0x172e3f=_0x172e3f-0x0;let _0x765e7f=a114_0x9273[_0x172e3f];return _0x765e7f;};const _0x5ae85a=a114_0x765e;'use strict';const {getSocket}=require(_0x5ae85a('0x2')),socket=getSocket();require(_0x5ae85a('0x1'))[_0x5ae85a('0x0')](socket); \ No newline at end of file +const a114_0x347f=['../../rediscache','register'];(function(_0x3a4cbf,_0x347f15){const _0x170756=function(_0x23f277){while(--_0x23f277){_0x3a4cbf['push'](_0x3a4cbf['shift']());}};_0x170756(++_0x347f15);}(a114_0x347f,0x1f0));const a114_0x1707=function(_0x3a4cbf,_0x347f15){_0x3a4cbf=_0x3a4cbf-0x0;let _0x170756=a114_0x347f[_0x3a4cbf];return _0x170756;};const _0x405c66=a114_0x1707;'use strict';const {getSocket}=require(_0x405c66('0x0')),socket=getSocket();require('./chatWebsite.socket')[_0x405c66('0x1')](socket); \ No newline at end of file diff --git a/server/api/chatWebsite/chatWebsite.socket.js b/server/api/chatWebsite/chatWebsite.socket.js index 4ea4fee..6de684d 100644 --- a/server/api/chatWebsite/chatWebsite.socket.js +++ b/server/api/chatWebsite/chatWebsite.socket.js @@ -1 +1 @@ -const a115_0x3e10=['remove','emit','./chatWebsite.events','update','save','chatWebsite:'];(function(_0x495db7,_0x3e108d){const _0x59e4b5=function(_0x463dc1){while(--_0x463dc1){_0x495db7['push'](_0x495db7['shift']());}};_0x59e4b5(++_0x3e108d);}(a115_0x3e10,0x1bd));const a115_0x59e4=function(_0x495db7,_0x3e108d){_0x495db7=_0x495db7-0x0;let _0x59e4b5=a115_0x3e10[_0x495db7];return _0x59e4b5;};const _0x4ed5e7=a115_0x59e4;'use strict';const ChatWebsiteEvents=require(_0x4ed5e7('0x1')),events=[_0x4ed5e7('0x3'),_0x4ed5e7('0x5'),_0x4ed5e7('0x2')];function createListener(_0x463dc1,_0x224b29){return function(_0x12ec69){const _0x5826c7=a115_0x59e4;_0x224b29[_0x5826c7('0x0')](_0x463dc1,_0x12ec69);};}exports['register']=function(_0x56a53a){const _0x52fdb9=_0x4ed5e7;for(let _0x357593=0x0,_0x2c1167=events['length'];_0x357593<_0x2c1167;_0x357593++){const _0x2b1fe8=events[_0x357593],_0x222a7c=createListener(_0x52fdb9('0x4')+_0x2b1fe8,_0x56a53a);ChatWebsiteEvents['on'](_0x2b1fe8,_0x222a7c);}}; \ No newline at end of file +const a115_0x2619=['./chatWebsite.events','save','register','chatWebsite:','length','remove'];(function(_0x22f635,_0x261998){const _0x129120=function(_0x3c51a4){while(--_0x3c51a4){_0x22f635['push'](_0x22f635['shift']());}};_0x129120(++_0x261998);}(a115_0x2619,0x16f));const a115_0x1291=function(_0x22f635,_0x261998){_0x22f635=_0x22f635-0x0;let _0x129120=a115_0x2619[_0x22f635];return _0x129120;};const _0x43da1f=a115_0x1291;'use strict';const ChatWebsiteEvents=require(_0x43da1f('0x5')),events=[_0x43da1f('0x0'),_0x43da1f('0x4'),'update'];function createListener(_0x3c51a4,_0x3852f){return function(_0x4ee52b){_0x3852f['emit'](_0x3c51a4,_0x4ee52b);};}exports[_0x43da1f('0x1')]=function(_0x962b81){const _0x629013=_0x43da1f;for(let _0x2dba92=0x0,_0x11db6c=events[_0x629013('0x3')];_0x2dba92<_0x11db6c;_0x2dba92++){const _0x1f755f=events[_0x2dba92],_0x112a77=createListener(_0x629013('0x2')+_0x1f755f,_0x962b81);ChatWebsiteEvents['on'](_0x1f755f,_0x112a77);}}; \ No newline at end of file diff --git a/server/api/chatWebsite/index.js b/server/api/chatWebsite/index.js index 0466dbf..ab53d3d 100644 --- a/server/api/chatWebsite/index.js +++ b/server/api/chatWebsite/index.js @@ -1 +1 @@ -const a116_0x1065=['describe','/:id/users','/:id/snippet','delete','addCustomerAvatar','../../config/environment','avatars','addDisposition','getDispositions','getSnippet','getProactiveActions','removeAgents','offline','single','/:id/proactive_actions','get','util','destroy','multer','Router','/:id/avatar','/:id','/:id/applications','addApplications','logos','./chatWebsite.controller','/describe','../../components/auth/service','isAuthenticated','addAvatar','express','addProactiveActions','/:id/interactions','getApplications','getOfflineMessages','/:id/canned_answers','show','addAnswer','getFields','/:id/offline_messages','addLogo','/:id/notify','/:id/system_avatar','update','getLogo','file','post','index','getAvatar','/:id/dispositions','removeDispositions','getSystemAvatar','files/images/','exports','format','/:id/logo','getAgents','getCustomerAvatar'];(function(_0x28d8ab,_0x1065b4){const _0x1ff066=function(_0x23577c){while(--_0x23577c){_0x28d8ab['push'](_0x28d8ab['shift']());}};_0x1ff066(++_0x1065b4);}(a116_0x1065,0x1a8));const a116_0x1ff0=function(_0x28d8ab,_0x1065b4){_0x28d8ab=_0x28d8ab-0x0;let _0x1ff066=a116_0x1065[_0x28d8ab];return _0x1ff066;};const _0x5986e4=a116_0x1ff0;'use strict';const multer=require(_0x5986e4('0x0')),util=require(_0x5986e4('0x38')),path=require('path'),express=require(_0x5986e4('0xc')),router=express[_0x5986e4('0x1')](),auth=require(_0x5986e4('0x9')),config=require(_0x5986e4('0x2d')),controller=require(_0x5986e4('0x7')),upload=_0x23577c=>multer({'storage':multer['diskStorage']({'destination':function(_0x373d11,_0x371171,_0x3a92f3){const _0x3a6061=_0x5986e4;_0x3a92f3(null,path['join'](config['root'],_0x3a6061('0x22'),_0x23577c));},'filename':function(_0x21d0d9,_0x4642e6,_0x38bb85){const _0x5a1a57=_0x5986e4;_0x38bb85(null,util[_0x5a1a57('0x24')]('%s-%s',Date['now'](),_0x4642e6['originalname']));}})});router[_0x5986e4('0x37')]('/',auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x1d')]),router[_0x5986e4('0x37')](_0x5986e4('0x8'),auth['isAuthenticated'](),controller[_0x5986e4('0x28')]),router[_0x5986e4('0x37')](_0x5986e4('0x3'),auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x12')]),router['get'](_0x5986e4('0x1f'),auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x30')]),router[_0x5986e4('0x37')]('/:id/canned_answers',auth[_0x5986e4('0xa')](),controller['getAnswers']),router[_0x5986e4('0x37')](_0x5986e4('0x25'),controller[_0x5986e4('0x1a')]),router[_0x5986e4('0x37')](_0x5986e4('0x2'),controller[_0x5986e4('0x1e')]),router[_0x5986e4('0x37')]('/:id/customer_avatar',controller[_0x5986e4('0x27')]),router[_0x5986e4('0x37')](_0x5986e4('0x18'),controller[_0x5986e4('0x21')]),router['get'](_0x5986e4('0xe'),auth[_0x5986e4('0xa')](),controller['getInteractions']),router[_0x5986e4('0x37')](_0x5986e4('0x2a'),controller[_0x5986e4('0x31')]),router[_0x5986e4('0x37')](_0x5986e4('0x4'),auth['isAuthenticated'](),controller[_0x5986e4('0xf')]),router[_0x5986e4('0x37')](_0x5986e4('0x36'),auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x32')]),router[_0x5986e4('0x37')]('/:id/fields',controller[_0x5986e4('0x14')]),router[_0x5986e4('0x37')](_0x5986e4('0x15'),auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x10')]),router[_0x5986e4('0x37')](_0x5986e4('0x29'),auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x26')]),router[_0x5986e4('0x1c')]('/',auth[_0x5986e4('0xa')](),controller['create']),router[_0x5986e4('0x1c')]('/:id/dispositions',auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x2f')]),router[_0x5986e4('0x1c')]('/:id/canned_answers',auth['isAuthenticated'](),controller[_0x5986e4('0x13')]),router[_0x5986e4('0x1c')]('/:id/logo',upload(_0x5986e4('0x6'))[_0x5986e4('0x35')]('file'),controller[_0x5986e4('0x16')]),router[_0x5986e4('0x1c')](_0x5986e4('0x2'),upload(_0x5986e4('0x2e'))['single'](_0x5986e4('0x1b')),controller[_0x5986e4('0xb')]),router[_0x5986e4('0x1c')]('/:id/customer_avatar',upload(_0x5986e4('0x2e'))['single'](_0x5986e4('0x1b')),controller[_0x5986e4('0x2c')]),router['post'](_0x5986e4('0x18'),upload(_0x5986e4('0x2e'))[_0x5986e4('0x35')](_0x5986e4('0x1b')),controller['addSystemAvatar']),router['post'](_0x5986e4('0x17'),controller['notify']),router[_0x5986e4('0x1c')]('/:id/offline',controller[_0x5986e4('0x34')]),router[_0x5986e4('0x1c')](_0x5986e4('0xe'),auth['isAuthenticated'](),controller['addInteraction']),router[_0x5986e4('0x1c')](_0x5986e4('0x4'),auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x5')]),router['post'](_0x5986e4('0x36'),auth['isAuthenticated'](),controller[_0x5986e4('0xd')]),router[_0x5986e4('0x1c')](_0x5986e4('0x29'),auth['isAuthenticated'](),controller['addAgents']),router['put'](_0x5986e4('0x3'),auth['isAuthenticated'](),controller[_0x5986e4('0x19')]),router[_0x5986e4('0x2b')](_0x5986e4('0x3'),auth['isAuthenticated'](),controller[_0x5986e4('0x39')]),router[_0x5986e4('0x2b')](_0x5986e4('0x1f'),auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x20')]),router[_0x5986e4('0x2b')](_0x5986e4('0x11'),auth[_0x5986e4('0xa')](),controller['removeAnswers']),router[_0x5986e4('0x2b')](_0x5986e4('0x29'),auth[_0x5986e4('0xa')](),controller[_0x5986e4('0x33')]),module[_0x5986e4('0x23')]=router; \ No newline at end of file +const a116_0x5052=['exports','post','addLogo','removeAnswers','/:id/proactive_actions','/:id/interactions','get','notify','join','%s-%s','isAuthenticated','addInteraction','avatars','getInteractions','getDispositions','/:id/dispositions','removeAgents','Router','getOfflineMessages','describe','getAnswers','delete','util','getApplications','addProactiveActions','/describe','getAgents','addCustomerAvatar','diskStorage','/:id/customer_avatar','/:id/offline','/:id/applications','index','single','addSystemAvatar','/:id','addAvatar','getLogo','getProactiveActions','path','files/images/','../../components/auth/service','addDisposition','addApplications','/:id/offline_messages','/:id/fields','/:id/snippet','./chatWebsite.controller','removeDispositions','/:id/system_avatar','root','getAvatar','show','file','offline','/:id/users','/:id/canned_answers','../../config/environment','now','format','/:id/avatar','/:id/logo','getFields','express','addAgents'];(function(_0xb1121d,_0x505268){const _0x187d90=function(_0xc28348){while(--_0xc28348){_0xb1121d['push'](_0xb1121d['shift']());}};_0x187d90(++_0x505268);}(a116_0x5052,0x81));const a116_0x187d=function(_0xb1121d,_0x505268){_0xb1121d=_0xb1121d-0x0;let _0x187d90=a116_0x5052[_0xb1121d];return _0x187d90;};const _0x1e1391=a116_0x187d;'use strict';const multer=require('multer'),util=require(_0x1e1391('0x17')),path=require(_0x1e1391('0x28')),express=require(_0x1e1391('0x40')),router=express[_0x1e1391('0x12')](),auth=require(_0x1e1391('0x2a')),config=require(_0x1e1391('0x3a')),controller=require(_0x1e1391('0x30')),upload=_0xc28348=>multer({'storage':multer[_0x1e1391('0x1d')]({'destination':function(_0x5431bf,_0x256f60,_0x22d326){const _0x30c794=_0x1e1391;_0x22d326(null,path[_0x30c794('0x9')](config[_0x30c794('0x33')],_0x30c794('0x29'),_0xc28348));},'filename':function(_0x54e119,_0x3a47c2,_0x4e43ec){const _0xe1a06c=_0x1e1391;_0x4e43ec(null,util[_0xe1a06c('0x3c')](_0xe1a06c('0xa'),Date[_0xe1a06c('0x3b')](),_0x3a47c2['originalname']));}})});router[_0x1e1391('0x7')]('/',auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x21')]),router['get'](_0x1e1391('0x1a'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x14')]),router[_0x1e1391('0x7')]('/:id',auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x35')]),router['get'](_0x1e1391('0x10'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0xf')]),router['get'](_0x1e1391('0x39'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x15')]),router[_0x1e1391('0x7')](_0x1e1391('0x3e'),controller[_0x1e1391('0x26')]),router[_0x1e1391('0x7')](_0x1e1391('0x3d'),controller[_0x1e1391('0x34')]),router[_0x1e1391('0x7')](_0x1e1391('0x1e'),controller['getCustomerAvatar']),router['get'](_0x1e1391('0x32'),controller['getSystemAvatar']),router[_0x1e1391('0x7')](_0x1e1391('0x6'),auth['isAuthenticated'](),controller[_0x1e1391('0xe')]),router[_0x1e1391('0x7')](_0x1e1391('0x2f'),controller['getSnippet']),router['get'](_0x1e1391('0x20'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x18')]),router[_0x1e1391('0x7')](_0x1e1391('0x5'),auth['isAuthenticated'](),controller[_0x1e1391('0x27')]),router[_0x1e1391('0x7')](_0x1e1391('0x2e'),controller[_0x1e1391('0x3f')]),router['get'](_0x1e1391('0x2d'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x13')]),router[_0x1e1391('0x7')]('/:id/users',auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x1b')]),router[_0x1e1391('0x2')]('/',auth[_0x1e1391('0xb')](),controller['create']),router['post'](_0x1e1391('0x10'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x2b')]),router[_0x1e1391('0x2')](_0x1e1391('0x39'),auth[_0x1e1391('0xb')](),controller['addAnswer']),router['post'](_0x1e1391('0x3e'),upload('logos')[_0x1e1391('0x22')](_0x1e1391('0x36')),controller[_0x1e1391('0x3')]),router[_0x1e1391('0x2')](_0x1e1391('0x3d'),upload('avatars')[_0x1e1391('0x22')](_0x1e1391('0x36')),controller[_0x1e1391('0x25')]),router[_0x1e1391('0x2')](_0x1e1391('0x1e'),upload(_0x1e1391('0xd'))['single'](_0x1e1391('0x36')),controller[_0x1e1391('0x1c')]),router[_0x1e1391('0x2')](_0x1e1391('0x32'),upload('avatars')[_0x1e1391('0x22')](_0x1e1391('0x36')),controller[_0x1e1391('0x23')]),router[_0x1e1391('0x2')]('/:id/notify',controller[_0x1e1391('0x8')]),router['post'](_0x1e1391('0x1f'),controller[_0x1e1391('0x37')]),router[_0x1e1391('0x2')](_0x1e1391('0x6'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0xc')]),router['post'](_0x1e1391('0x20'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x2c')]),router[_0x1e1391('0x2')](_0x1e1391('0x5'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x19')]),router[_0x1e1391('0x2')](_0x1e1391('0x38'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x0')]),router['put']('/:id',auth[_0x1e1391('0xb')](),controller['update']),router[_0x1e1391('0x16')](_0x1e1391('0x24'),auth['isAuthenticated'](),controller['destroy']),router['delete']('/:id/dispositions',auth['isAuthenticated'](),controller[_0x1e1391('0x31')]),router[_0x1e1391('0x16')](_0x1e1391('0x39'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x4')]),router['delete'](_0x1e1391('0x38'),auth[_0x1e1391('0xb')](),controller[_0x1e1391('0x11')]),module[_0x1e1391('0x1')]=router; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.attributes.js b/server/api/cloudProvider/cloudProvider.attributes.js index 4a43c10..ba5aaca 100644 --- a/server/api/cloudProvider/cloudProvider.attributes.js +++ b/server/api/cloudProvider/cloudProvider.attributes.js @@ -1 +1 @@ -const a117_0x5819=['exports','AmazonAWS','STRING','sequelize','Google','ENUM'];(function(_0x5d1335,_0x581939){const _0x485113=function(_0x7856b5){while(--_0x7856b5){_0x5d1335['push'](_0x5d1335['shift']());}};_0x485113(++_0x581939);}(a117_0x5819,0x11c));const a117_0x4851=function(_0x5d1335,_0x581939){_0x5d1335=_0x5d1335-0x0;let _0x485113=a117_0x5819[_0x5d1335];return _0x485113;};const _0x3d835a=a117_0x4851;'use strict';const Sequelize=require(_0x3d835a('0x1'));module[_0x3d835a('0x4')]={'name':{'type':Sequelize[_0x3d835a('0x0')],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':Sequelize[_0x3d835a('0x3')](_0x3d835a('0x5'),_0x3d835a('0x2')),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':Sequelize[_0x3d835a('0x0')]},'data2':{'type':Sequelize[_0x3d835a('0x0')]}}; \ No newline at end of file +const a117_0x3a76=['STRING','ENUM','Google','exports','AmazonAWS','sequelize'];(function(_0x305e4d,_0x3a7636){const _0x35384c=function(_0x2819f5){while(--_0x2819f5){_0x305e4d['push'](_0x305e4d['shift']());}};_0x35384c(++_0x3a7636);}(a117_0x3a76,0xc7));const a117_0x3538=function(_0x305e4d,_0x3a7636){_0x305e4d=_0x305e4d-0x0;let _0x35384c=a117_0x3a76[_0x305e4d];return _0x35384c;};const _0x5e92cb=a117_0x3538;'use strict';const Sequelize=require(_0x5e92cb('0x4'));module[_0x5e92cb('0x2')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'validate':{'notEmpty':!![]}},'service':{'type':Sequelize[_0x5e92cb('0x0')](_0x5e92cb('0x3'),_0x5e92cb('0x1')),'allowNull':![],'validate':{'notEmpty':!![]}},'data1':{'type':Sequelize[_0x5e92cb('0x5')]},'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 fbca120..b1c3f65 100644 --- a/server/api/cloudProvider/cloudProvider.controller.js +++ b/server/api/cloudProvider/cloudProvider.controller.js @@ -1 +1 @@ -const a118_0x287b=['sendStatus','limit','../../components/parsers/qs','offset','attributes','lodash','findOne','pick','end','json','includeAll','destroy','update','sort','undefined','body','include','merge','length','nolimit','filters','show','model','fields','fieldName','key','catch','api','query','../../config/logger','keys','options','map','filter','../../mysqldb','intersection','order','sequelize','type','CloudProvider','count','rawAttributes','index','status','name','then','set','error','params','where','send'];(function(_0x5af549,_0x287bbc){const _0x492be2=function(_0x3c882d){while(--_0x3c882d){_0x5af549['push'](_0x5af549['shift']());}};_0x492be2(++_0x287bbc);}(a118_0x287b,0x15c));const a118_0x492b=function(_0x5af549,_0x287bbc){_0x5af549=_0x5af549-0x0;let _0x492be2=a118_0x287b[_0x5af549];return _0x492be2;};const _0x4e5278=a118_0x492b;'use strict';const _=require(_0x4e5278('0xe')),qs=require(_0x4e5278('0xb')),logger=require(_0x4e5278('0x26'))(_0x4e5278('0x24')),db=require(_0x4e5278('0x2b'))['db'],{Op}=require(_0x4e5278('0x2e'));function respondWithResult(_0x3c882d,_0x542654){return _0x542654=_0x542654||0xc8,function(_0xcff8a0){const _0x123edd=a118_0x492b;if(_0xcff8a0)return _0x3c882d[_0x123edd('0x1')](_0x542654)[_0x123edd('0x12')](_0xcff8a0);};}function respondWithFilteredResult(_0xc9e7ee,_0x25143d){return function(_0x493ffb){const _0x2de7a9=a118_0x492b;if(_0x493ffb){const _0x35179c=_0x493ffb[_0x2de7a9('0x31')],_0x1bcca4=_0x25143d[_0x2de7a9('0xc')];let _0x47bcec=_0x25143d[_0x2de7a9('0xc')]+_0x25143d['limit'],_0x145e17;return _0x47bcec>=_0x35179c?(_0x47bcec=_0x35179c,_0x145e17=0xc8):_0x145e17=0xce,_0xc9e7ee[_0x2de7a9('0x1')](_0x145e17),_0xc9e7ee[_0x2de7a9('0x4')]('Content-Range',_0x1bcca4+'-'+_0x47bcec+'/'+_0x35179c)[_0x2de7a9('0x12')](_0x493ffb);}return null;};}function saveUpdates(_0x407f2d){return function(_0x11ac96){const _0x1a199b=a118_0x492b;if(_0x11ac96)return _0x11ac96[_0x1a199b('0x15')](_0x407f2d)[_0x1a199b('0x3')](function(_0x1fe618){return _0x1fe618;});return null;};}function removeEntity(_0x1e5a74){return function(_0x1e07d7){const _0x43bc76=a118_0x492b;if(_0x1e07d7)return _0x1e07d7[_0x43bc76('0x14')]()[_0x43bc76('0x3')](function(){const _0x572bb8=_0x43bc76;_0x1e5a74['status'](0xcc)[_0x572bb8('0x11')]();});};}function handleEntityNotFound(_0x11de3b){return function(_0x1ec9a8){const _0x2300fe=a118_0x492b;return!_0x1ec9a8&&_0x11de3b[_0x2300fe('0x9')](0x194),_0x1ec9a8;};}function handleError(_0x1cbc75,_0xf21449){return _0xf21449=_0xf21449||0x1f4,function(_0x2229ed){const _0x5c1be8=a118_0x492b;logger[_0x5c1be8('0x5')](_0x2229ed['stack']),_0x2229ed[_0x5c1be8('0x2')]&&delete _0x2229ed[_0x5c1be8('0x2')],_0x1cbc75[_0x5c1be8('0x1')](_0xf21449)[_0x5c1be8('0x8')](_0x2229ed);};}exports[_0x4e5278('0x0')]=function(_0x189a7c,_0x1e968a){const _0x4a6a25=_0x4e5278;let _0x21a9b7={};const _0x596836={},_0x30ce06={'count':0x0,'rows':[]},_0x314cd4=_['map'](db[_0x4a6a25('0x30')][_0x4a6a25('0x32')],function(_0x61f935){const _0x2b6e62=_0x4a6a25;return{'name':_0x61f935[_0x2b6e62('0x21')],'type':_0x61f935[_0x2b6e62('0x2f')][_0x2b6e62('0x22')]};});_0x596836[_0x4a6a25('0x1f')]=_[_0x4a6a25('0x29')](_0x314cd4,_0x4a6a25('0x2')),_0x596836[_0x4a6a25('0x25')]=_[_0x4a6a25('0x27')](_0x189a7c[_0x4a6a25('0x25')]),_0x596836[_0x4a6a25('0x1d')]=_[_0x4a6a25('0x2c')](_0x596836[_0x4a6a25('0x1f')],_0x596836[_0x4a6a25('0x25')]),_0x21a9b7['attributes']=_[_0x4a6a25('0x2c')](_0x596836[_0x4a6a25('0x1f')],qs[_0x4a6a25('0x20')](_0x189a7c['query'][_0x4a6a25('0x20')])),_0x21a9b7[_0x4a6a25('0xd')]=_0x21a9b7[_0x4a6a25('0xd')][_0x4a6a25('0x1b')]?_0x21a9b7[_0x4a6a25('0xd')]:_0x596836[_0x4a6a25('0x1f')];typeof _0x189a7c[_0x4a6a25('0x25')][_0x4a6a25('0x1c')]===_0x4a6a25('0x17')&&(_0x21a9b7[_0x4a6a25('0xa')]=qs[_0x4a6a25('0xa')](_0x189a7c[_0x4a6a25('0x25')][_0x4a6a25('0xa')]),_0x21a9b7[_0x4a6a25('0xc')]=qs['offset'](_0x189a7c['query']['offset']));_0x21a9b7[_0x4a6a25('0x2d')]=qs[_0x4a6a25('0x16')](_0x189a7c[_0x4a6a25('0x25')][_0x4a6a25('0x16')]),_0x21a9b7[_0x4a6a25('0x7')]=qs[_0x4a6a25('0x1d')](_[_0x4a6a25('0x10')](_0x189a7c[_0x4a6a25('0x25')],_0x596836[_0x4a6a25('0x1d')]),_0x314cd4);_0x189a7c['query'][_0x4a6a25('0x2a')]&&(_0x21a9b7['where']=_['merge'](_0x21a9b7['where'],{[Op['or']]:_[_0x4a6a25('0x29')](_0x314cd4,function(_0x1ed337){const _0x1560e4=_0x4a6a25;if(_0x1ed337[_0x1560e4('0x2f')]!=='VIRTUAL'){const _0x296154={};return _0x296154[_0x1ed337[_0x1560e4('0x2')]]={[Op['like']]:'%'+_0x189a7c[_0x1560e4('0x25')][_0x1560e4('0x2a')]+'%'},_0x296154;}})}));_0x21a9b7=_[_0x4a6a25('0x1a')]({},_0x21a9b7,_0x189a7c[_0x4a6a25('0x28')]);const _0x5d69e6={'where':_0x21a9b7[_0x4a6a25('0x7')]};return db[_0x4a6a25('0x30')][_0x4a6a25('0x31')](_0x5d69e6)[_0x4a6a25('0x3')](function(_0x15c21b){const _0x58d584=_0x4a6a25;return _0x30ce06[_0x58d584('0x31')]=_0x15c21b,_0x189a7c[_0x58d584('0x25')][_0x58d584('0x13')]&&(_0x21a9b7['include']=[{'all':!![]}]),db[_0x58d584('0x30')]['findAll'](_0x21a9b7);})[_0x4a6a25('0x3')](function(_0x54c013){return _0x30ce06['rows']=_0x54c013,_0x30ce06;})['then'](respondWithFilteredResult(_0x1e968a,_0x21a9b7))[_0x4a6a25('0x23')](handleError(_0x1e968a,null));},exports[_0x4e5278('0x1e')]=function(_0x3bbbad,_0x2082d8){const _0x40a35e=_0x4e5278;let _0x366854={'raw':!![],'where':{'id':_0x3bbbad[_0x40a35e('0x6')]['id']}};const _0x590a7d={};return _0x590a7d[_0x40a35e('0x1f')]=_[_0x40a35e('0x27')](db[_0x40a35e('0x30')][_0x40a35e('0x32')]),_0x590a7d[_0x40a35e('0x25')]=_[_0x40a35e('0x27')](_0x3bbbad[_0x40a35e('0x25')]),_0x590a7d[_0x40a35e('0x1d')]=_[_0x40a35e('0x2c')](_0x590a7d[_0x40a35e('0x1f')],_0x590a7d['query']),_0x366854[_0x40a35e('0xd')]=_[_0x40a35e('0x2c')](_0x590a7d[_0x40a35e('0x1f')],qs[_0x40a35e('0x20')](_0x3bbbad[_0x40a35e('0x25')]['fields'])),_0x366854[_0x40a35e('0xd')]=_0x366854[_0x40a35e('0xd')][_0x40a35e('0x1b')]?_0x366854[_0x40a35e('0xd')]:_0x590a7d[_0x40a35e('0x1f')],_0x3bbbad[_0x40a35e('0x25')][_0x40a35e('0x13')]&&(_0x366854[_0x40a35e('0x19')]=[{'all':!![]}]),_0x366854=_['merge']({},_0x366854,_0x3bbbad['options']),db[_0x40a35e('0x30')]['findOne'](_0x366854)['then'](handleEntityNotFound(_0x2082d8,null))['then'](respondWithResult(_0x2082d8,null))[_0x40a35e('0x23')](handleError(_0x2082d8,null));},exports['create']=function(_0x3adfcc,_0x19359e){const _0x53163a=_0x4e5278;return db[_0x53163a('0x30')]['create'](_0x3adfcc['body'],{})[_0x53163a('0x3')](respondWithResult(_0x19359e,0xc9))[_0x53163a('0x23')](handleError(_0x19359e,null));},exports[_0x4e5278('0x15')]=function(_0x4ef00c,_0x19213d){const _0x247c02=_0x4e5278;return _0x4ef00c[_0x247c02('0x18')]['id']&&delete _0x4ef00c[_0x247c02('0x18')]['id'],db['CloudProvider'][_0x247c02('0xf')]({'where':{'id':_0x4ef00c[_0x247c02('0x6')]['id']}})[_0x247c02('0x3')](handleEntityNotFound(_0x19213d,null))[_0x247c02('0x3')](saveUpdates(_0x4ef00c[_0x247c02('0x18')],null))[_0x247c02('0x3')](respondWithResult(_0x19213d,null))[_0x247c02('0x23')](handleError(_0x19213d,null));},exports[_0x4e5278('0x14')]=function(_0x552247,_0x249cda){const _0x4ac3fc=_0x4e5278;return db[_0x4ac3fc('0x30')][_0x4ac3fc('0xf')]({'where':{'id':_0x552247[_0x4ac3fc('0x6')]['id']}})[_0x4ac3fc('0x3')](handleEntityNotFound(_0x249cda,null))[_0x4ac3fc('0x3')](removeEntity(_0x249cda,null))['catch'](handleError(_0x249cda,null));}; \ No newline at end of file +const a118_0x54fd=['json','offset','findOne','fieldName','end','keys','set','name','../../components/parsers/qs','filter','type','then','merge','params','nolimit','destroy','sendStatus','key','lodash','query','stack','catch','body','VIRTUAL','model','length','status','api','options','limit','CloudProvider','count','sort','map','filters','undefined','where','index','error','send','rows','order','../../config/logger','include','attributes','../../mysqldb','findAll','rawAttributes','like','intersection','create','update','includeAll','fields'];(function(_0x2aeefa,_0x54fd79){const _0x1dfc0b=function(_0x38f173){while(--_0x38f173){_0x2aeefa['push'](_0x2aeefa['shift']());}};_0x1dfc0b(++_0x54fd79);}(a118_0x54fd,0x1d5));const a118_0x1dfc=function(_0x2aeefa,_0x54fd79){_0x2aeefa=_0x2aeefa-0x0;let _0x1dfc0b=a118_0x54fd[_0x2aeefa];return _0x1dfc0b;};const _0xbc169d=a118_0x1dfc;'use strict';const _=require(_0xbc169d('0x23')),qs=require(_0xbc169d('0x19')),logger=require(_0xbc169d('0x5'))(_0xbc169d('0x2c')),db=require(_0xbc169d('0x8'))['db'],{Op}=require('sequelize');function respondWithResult(_0x38f173,_0x5c6047){return _0x5c6047=_0x5c6047||0xc8,function(_0x319da4){const _0x3a34cd=a118_0x1dfc;if(_0x319da4)return _0x38f173['status'](_0x5c6047)[_0x3a34cd('0x11')](_0x319da4);};}function respondWithFilteredResult(_0xb5678b,_0x55bba0){return function(_0x3f6917){const _0x5c44e7=a118_0x1dfc;if(_0x3f6917){const _0x12dc5b=_0x3f6917[_0x5c44e7('0x30')],_0x3b862a=_0x55bba0[_0x5c44e7('0x12')];let _0x2ab196=_0x55bba0[_0x5c44e7('0x12')]+_0x55bba0[_0x5c44e7('0x2e')],_0x595edb;return _0x2ab196>=_0x12dc5b?(_0x2ab196=_0x12dc5b,_0x595edb=0xc8):_0x595edb=0xce,_0xb5678b['status'](_0x595edb),_0xb5678b[_0x5c44e7('0x17')]('Content-Range',_0x3b862a+'-'+_0x2ab196+'/'+_0x12dc5b)[_0x5c44e7('0x11')](_0x3f6917);}return null;};}function saveUpdates(_0x3a8d23){return function(_0x513e79){const _0x4a17ef=a118_0x1dfc;if(_0x513e79)return _0x513e79[_0x4a17ef('0xe')](_0x3a8d23)[_0x4a17ef('0x1c')](function(_0x50a3ef){return _0x50a3ef;});return null;};}function removeEntity(_0x41aa8e){return function(_0xbeca3b){const _0xc70dc0=a118_0x1dfc;if(_0xbeca3b)return _0xbeca3b[_0xc70dc0('0x20')]()['then'](function(){const _0x1787c2=_0xc70dc0;_0x41aa8e[_0x1787c2('0x2b')](0xcc)[_0x1787c2('0x15')]();});};}function handleEntityNotFound(_0x335806){return function(_0x73d899){const _0x3176e2=a118_0x1dfc;return!_0x73d899&&_0x335806[_0x3176e2('0x21')](0x194),_0x73d899;};}function handleError(_0x584944,_0x29e513){return _0x29e513=_0x29e513||0x1f4,function(_0x252407){const _0x1a93c6=a118_0x1dfc;logger[_0x1a93c6('0x1')](_0x252407[_0x1a93c6('0x25')]),_0x252407[_0x1a93c6('0x18')]&&delete _0x252407[_0x1a93c6('0x18')],_0x584944[_0x1a93c6('0x2b')](_0x29e513)[_0x1a93c6('0x2')](_0x252407);};}exports[_0xbc169d('0x0')]=function(_0x13871e,_0x187c3a){const _0x406621=_0xbc169d;let _0xa53654={};const _0x64abcf={},_0xfb20cf={'count':0x0,'rows':[]},_0x2f2801=_[_0x406621('0x32')](db[_0x406621('0x2f')][_0x406621('0xa')],function(_0x47180f){const _0x173e68=_0x406621;return{'name':_0x47180f[_0x173e68('0x14')],'type':_0x47180f[_0x173e68('0x1b')][_0x173e68('0x22')]};});_0x64abcf[_0x406621('0x29')]=_[_0x406621('0x32')](_0x2f2801,_0x406621('0x18')),_0x64abcf[_0x406621('0x24')]=_[_0x406621('0x16')](_0x13871e[_0x406621('0x24')]),_0x64abcf[_0x406621('0x33')]=_[_0x406621('0xc')](_0x64abcf[_0x406621('0x29')],_0x64abcf['query']),_0xa53654['attributes']=_['intersection'](_0x64abcf[_0x406621('0x29')],qs[_0x406621('0x10')](_0x13871e[_0x406621('0x24')][_0x406621('0x10')])),_0xa53654['attributes']=_0xa53654[_0x406621('0x7')]['length']?_0xa53654[_0x406621('0x7')]:_0x64abcf[_0x406621('0x29')];typeof _0x13871e['query'][_0x406621('0x1f')]===_0x406621('0x34')&&(_0xa53654[_0x406621('0x2e')]=qs[_0x406621('0x2e')](_0x13871e['query']['limit']),_0xa53654[_0x406621('0x12')]=qs[_0x406621('0x12')](_0x13871e['query']['offset']));_0xa53654[_0x406621('0x4')]=qs[_0x406621('0x31')](_0x13871e[_0x406621('0x24')][_0x406621('0x31')]),_0xa53654['where']=qs['filters'](_['pick'](_0x13871e[_0x406621('0x24')],_0x64abcf[_0x406621('0x33')]),_0x2f2801);_0x13871e['query'][_0x406621('0x1a')]&&(_0xa53654[_0x406621('0x35')]=_[_0x406621('0x1d')](_0xa53654['where'],{[Op['or']]:_[_0x406621('0x32')](_0x2f2801,function(_0x551a77){const _0x53e75e=_0x406621;if(_0x551a77[_0x53e75e('0x1b')]!==_0x53e75e('0x28')){const _0x110ee5={};return _0x110ee5[_0x551a77[_0x53e75e('0x18')]]={[Op[_0x53e75e('0xb')]]:'%'+_0x13871e[_0x53e75e('0x24')][_0x53e75e('0x1a')]+'%'},_0x110ee5;}})}));_0xa53654=_[_0x406621('0x1d')]({},_0xa53654,_0x13871e[_0x406621('0x2d')]);const _0x46c60d={'where':_0xa53654[_0x406621('0x35')]};return db[_0x406621('0x2f')][_0x406621('0x30')](_0x46c60d)['then'](function(_0x25cd13){const _0x25ac61=_0x406621;return _0xfb20cf[_0x25ac61('0x30')]=_0x25cd13,_0x13871e[_0x25ac61('0x24')][_0x25ac61('0xf')]&&(_0xa53654['include']=[{'all':!![]}]),db[_0x25ac61('0x2f')][_0x25ac61('0x9')](_0xa53654);})[_0x406621('0x1c')](function(_0x1bcc0c){const _0x467203=_0x406621;return _0xfb20cf[_0x467203('0x3')]=_0x1bcc0c,_0xfb20cf;})[_0x406621('0x1c')](respondWithFilteredResult(_0x187c3a,_0xa53654))[_0x406621('0x26')](handleError(_0x187c3a,null));},exports['show']=function(_0x3f391c,_0xd98d67){const _0x26ed15=_0xbc169d;let _0x66f9a={'raw':!![],'where':{'id':_0x3f391c[_0x26ed15('0x1e')]['id']}};const _0x19c9da={};return _0x19c9da['model']=_[_0x26ed15('0x16')](db['CloudProvider']['rawAttributes']),_0x19c9da[_0x26ed15('0x24')]=_[_0x26ed15('0x16')](_0x3f391c[_0x26ed15('0x24')]),_0x19c9da['filters']=_[_0x26ed15('0xc')](_0x19c9da[_0x26ed15('0x29')],_0x19c9da[_0x26ed15('0x24')]),_0x66f9a['attributes']=_[_0x26ed15('0xc')](_0x19c9da['model'],qs['fields'](_0x3f391c[_0x26ed15('0x24')][_0x26ed15('0x10')])),_0x66f9a['attributes']=_0x66f9a[_0x26ed15('0x7')][_0x26ed15('0x2a')]?_0x66f9a['attributes']:_0x19c9da[_0x26ed15('0x29')],_0x3f391c[_0x26ed15('0x24')]['includeAll']&&(_0x66f9a[_0x26ed15('0x6')]=[{'all':!![]}]),_0x66f9a=_[_0x26ed15('0x1d')]({},_0x66f9a,_0x3f391c[_0x26ed15('0x2d')]),db[_0x26ed15('0x2f')]['findOne'](_0x66f9a)['then'](handleEntityNotFound(_0xd98d67,null))['then'](respondWithResult(_0xd98d67,null))[_0x26ed15('0x26')](handleError(_0xd98d67,null));},exports[_0xbc169d('0xd')]=function(_0x3a6e6f,_0x181c88){const _0x55924a=_0xbc169d;return db[_0x55924a('0x2f')][_0x55924a('0xd')](_0x3a6e6f[_0x55924a('0x27')],{})[_0x55924a('0x1c')](respondWithResult(_0x181c88,0xc9))['catch'](handleError(_0x181c88,null));},exports[_0xbc169d('0xe')]=function(_0xfdfad7,_0x2c7e2d){const _0x365944=_0xbc169d;return _0xfdfad7['body']['id']&&delete _0xfdfad7[_0x365944('0x27')]['id'],db[_0x365944('0x2f')][_0x365944('0x13')]({'where':{'id':_0xfdfad7[_0x365944('0x1e')]['id']}})[_0x365944('0x1c')](handleEntityNotFound(_0x2c7e2d,null))[_0x365944('0x1c')](saveUpdates(_0xfdfad7[_0x365944('0x27')],null))[_0x365944('0x1c')](respondWithResult(_0x2c7e2d,null))['catch'](handleError(_0x2c7e2d,null));},exports[_0xbc169d('0x20')]=function(_0x18cc33,_0xc59639){const _0x38a457=_0xbc169d;return db[_0x38a457('0x2f')][_0x38a457('0x13')]({'where':{'id':_0x18cc33[_0x38a457('0x1e')]['id']}})[_0x38a457('0x1c')](handleEntityNotFound(_0xc59639,null))[_0x38a457('0x1c')](removeEntity(_0xc59639,null))[_0x38a457('0x26')](handleError(_0xc59639,null));}; \ No newline at end of file diff --git a/server/api/cloudProvider/cloudProvider.model.js b/server/api/cloudProvider/cloudProvider.model.js index 79dc199..6d905c8 100644 --- a/server/api/cloudProvider/cloudProvider.model.js +++ b/server/api/cloudProvider/cloudProvider.model.js @@ -1 +1 @@ -const a119_0x3fea=['./cloudProvider.attributes','cloud_providers','define','exports','CloudProvider'];(function(_0x4c422c,_0x3fea02){const _0x2bc671=function(_0x4198bc){while(--_0x4198bc){_0x4c422c['push'](_0x4c422c['shift']());}};_0x2bc671(++_0x3fea02);}(a119_0x3fea,0xa4));const a119_0x2bc6=function(_0x4c422c,_0x3fea02){_0x4c422c=_0x4c422c-0x0;let _0x2bc671=a119_0x3fea[_0x4c422c];return _0x2bc671;};const _0xf3b44e=a119_0x2bc6;'use strict';const attributes=require(_0xf3b44e('0x1'));module[_0xf3b44e('0x4')]=function(_0x4198bc){const _0x5c7577=_0xf3b44e,_0x5b254c=_0x4198bc[_0x5c7577('0x3')](_0x5c7577('0x0'),attributes,{'tableName':_0x5c7577('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5b254c;}; \ No newline at end of file +const a119_0x524c=['exports','./cloudProvider.attributes','define','cloud_providers','CloudProvider'];(function(_0x3fdfbd,_0x524c78){const _0x162939=function(_0x4e3b30){while(--_0x4e3b30){_0x3fdfbd['push'](_0x3fdfbd['shift']());}};_0x162939(++_0x524c78);}(a119_0x524c,0xad));const a119_0x1629=function(_0x3fdfbd,_0x524c78){_0x3fdfbd=_0x3fdfbd-0x0;let _0x162939=a119_0x524c[_0x3fdfbd];return _0x162939;};const _0x576b47=a119_0x1629;'use strict';const attributes=require(_0x576b47('0x3'));module[_0x576b47('0x2')]=function(_0x4e3b30){const _0x32bd5d=_0x576b47,_0x2812fc=_0x4e3b30[_0x32bd5d('0x4')](_0x32bd5d('0x1'),attributes,{'tableName':_0x32bd5d('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2812fc;}; \ No newline at end of file diff --git a/server/api/cloudProvider/index.js b/server/api/cloudProvider/index.js index a6093c8..8d47259 100644 --- a/server/api/cloudProvider/index.js +++ b/server/api/cloudProvider/index.js @@ -1 +1 @@ -const a120_0x4fa6=['isAuthenticated','../../components/auth/service','destroy','get','./cloudProvider.controller','index','Router','show','exports','/:id','express','post','update'];(function(_0x1aaaee,_0x4fa69d){const _0x11ed02=function(_0x264cd7){while(--_0x264cd7){_0x1aaaee['push'](_0x1aaaee['shift']());}};_0x11ed02(++_0x4fa69d);}(a120_0x4fa6,0x10f));const a120_0x11ed=function(_0x1aaaee,_0x4fa69d){_0x1aaaee=_0x1aaaee-0x0;let _0x11ed02=a120_0x4fa6[_0x1aaaee];return _0x11ed02;};const _0x1a2f80=a120_0x11ed;'use strict';const express=require(_0x1a2f80('0xc')),router=express[_0x1a2f80('0x8')](),auth=require(_0x1a2f80('0x3')),controller=require(_0x1a2f80('0x6'));router['get']('/',auth[_0x1a2f80('0x2')](),controller[_0x1a2f80('0x7')]),router[_0x1a2f80('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x1a2f80('0x9')]),router[_0x1a2f80('0x0')]('/',auth[_0x1a2f80('0x2')](),controller['create']),router['put'](_0x1a2f80('0xb'),auth[_0x1a2f80('0x2')](),controller[_0x1a2f80('0x1')]),router['delete'](_0x1a2f80('0xb'),auth[_0x1a2f80('0x2')](),controller[_0x1a2f80('0x4')]),module[_0x1a2f80('0xa')]=router; \ No newline at end of file +const a120_0x41a7=['isAuthenticated','post','create','/:id','destroy','./cloudProvider.controller','get','delete','index','Router'];(function(_0x5df0bc,_0x41a7fd){const _0x3d2992=function(_0x5ac489){while(--_0x5ac489){_0x5df0bc['push'](_0x5df0bc['shift']());}};_0x3d2992(++_0x41a7fd);}(a120_0x41a7,0x1a7));const a120_0x3d29=function(_0x5df0bc,_0x41a7fd){_0x5df0bc=_0x5df0bc-0x0;let _0x3d2992=a120_0x41a7[_0x5df0bc];return _0x3d2992;};const _0x4fb17c=a120_0x3d29;'use strict';const express=require('express'),router=express[_0x4fb17c('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x4fb17c('0x2'));router[_0x4fb17c('0x3')]('/',auth[_0x4fb17c('0x7')](),controller[_0x4fb17c('0x5')]),router[_0x4fb17c('0x3')]('/:id',auth[_0x4fb17c('0x7')](),controller['show']),router[_0x4fb17c('0x8')]('/',auth[_0x4fb17c('0x7')](),controller[_0x4fb17c('0x9')]),router['put']('/:id',auth[_0x4fb17c('0x7')](),controller['update']),router[_0x4fb17c('0x4')](_0x4fb17c('0x0'),auth[_0x4fb17c('0x7')](),controller[_0x4fb17c('0x1')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.attributes.js b/server/api/cmCompany/cmCompany.attributes.js index 54c00eb..6241c37 100644 --- a/server/api/cmCompany/cmCompany.attributes.js +++ b/server/api/cmCompany/cmCompany.attributes.js @@ -1 +1 @@ -const a121_0x7df9=['exports','STRING','sequelize'];(function(_0x489951,_0x7df9a4){const _0xc4a007=function(_0x969f94){while(--_0x969f94){_0x489951['push'](_0x489951['shift']());}};_0xc4a007(++_0x7df9a4);}(a121_0x7df9,0x192));const a121_0xc4a0=function(_0x489951,_0x7df9a4){_0x489951=_0x489951-0x0;let _0xc4a007=a121_0x7df9[_0x489951];return _0xc4a007;};const _0x1b84fb=a121_0xc4a0;'use strict';const Sequelize=require(_0x1b84fb('0x2'));module[_0x1b84fb('0x0')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize[_0x1b84fb('0x1')]},'companyId':{'type':Sequelize['STRING']},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize['STRING']},'fax':{'type':Sequelize[_0x1b84fb('0x1')]},'type':{'type':Sequelize[_0x1b84fb('0x1')]},'street':{'type':Sequelize[_0x1b84fb('0x1')]},'postalCode':{'type':Sequelize[_0x1b84fb('0x1')]},'city':{'type':Sequelize[_0x1b84fb('0x1')]},'country':{'type':Sequelize['STRING']},'email':{'type':Sequelize[_0x1b84fb('0x1')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x1b84fb('0x1')]},'sStreet':{'type':Sequelize[_0x1b84fb('0x1')]},'sPostalCode':{'type':Sequelize[_0x1b84fb('0x1')]},'sCity':{'type':Sequelize[_0x1b84fb('0x1')]},'sCountry':{'type':Sequelize[_0x1b84fb('0x1')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a121_0x12b2=['exports','sequelize','STRING'];(function(_0x18eead,_0x12b265){const _0x45a6b5=function(_0x38d96d){while(--_0x38d96d){_0x18eead['push'](_0x18eead['shift']());}};_0x45a6b5(++_0x12b265);}(a121_0x12b2,0x1aa));const a121_0x45a6=function(_0x18eead,_0x12b265){_0x18eead=_0x18eead-0x0;let _0x45a6b5=a121_0x12b2[_0x18eead];return _0x45a6b5;};const _0x450920=a121_0x45a6;'use strict';const Sequelize=require(_0x450920('0x1'));module[_0x450920('0x0')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'vat':{'type':Sequelize['STRING']},'companyId':{'type':Sequelize['STRING']},'website':{'type':Sequelize['STRING']},'phone':{'type':Sequelize[_0x450920('0x2')]},'fax':{'type':Sequelize[_0x450920('0x2')]},'type':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x450920('0x2')]},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0x450920('0x2')]},'email':{'type':Sequelize[_0x450920('0x2')],'validate':{'isEmail':!![]}},'emailDomain':{'type':Sequelize[_0x450920('0x2')]},'sStreet':{'type':Sequelize[_0x450920('0x2')]},'sPostalCode':{'type':Sequelize[_0x450920('0x2')]},'sCity':{'type':Sequelize[_0x450920('0x2')]},'sCountry':{'type':Sequelize[_0x450920('0x2')]},'description':{'type':Sequelize[_0x450920('0x2')]}}; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.controller.js b/server/api/cmCompany/cmCompany.controller.js index c31ae84..2682435 100644 --- a/server/api/cmCompany/cmCompany.controller.js +++ b/server/api/cmCompany/cmCompany.controller.js @@ -1 +1 @@ -const a122_0x6cce=['body','rows','lodash','model','query','include','length','options','role','map','offset','rawAttributes','update','../../mysqldb','includeAll','pick','catch','omit','attributes','fields','findAll','limit','get','destroy','userProfileId','filters','getContacts','merge','end','nolimit','sort','ids','stack','UserProfileResource','then','addContacts','name','set','keys','findOne','order','Companies','CmContact','intersection','params','sendStatus','describe','undefined','sequelize','filter','error','status','autoAssociation','../../components/parsers/qs','user','like','create','index','json','CmCompany','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','count','where'];(function(_0x8bca86,_0x6cce9e){const _0x588631=function(_0x299a64){while(--_0x299a64){_0x8bca86['push'](_0x8bca86['shift']());}};_0x588631(++_0x6cce9e);}(a122_0x6cce,0x189));const a122_0x5886=function(_0x8bca86,_0x6cce9e){_0x8bca86=_0x8bca86-0x0;let _0x588631=a122_0x6cce[_0x8bca86];return _0x588631;};const _0x508f6c=a122_0x5886;'use strict';const _=require(_0x508f6c('0x32')),qs=require(_0x508f6c('0x26')),logger=require('../../config/logger')('api'),db=require(_0x508f6c('0x3d'))['db'],{Op}=require(_0x508f6c('0x21'));function respondWithResult(_0x299a64,_0xc62a35){return _0xc62a35=_0xc62a35||0xc8,function(_0x56cf48){const _0x1dd4b7=a122_0x5886;if(_0x56cf48)return _0x299a64[_0x1dd4b7('0x24')](_0xc62a35)['json'](_0x56cf48);};}function respondWithFilteredResult(_0x5e2ecb,_0x47dc61){return function(_0x317c82){const _0x344827=a122_0x5886;if(_0x317c82){const _0x22afbe=_0x317c82[_0x344827('0x2e')],_0x19c65e=_0x47dc61[_0x344827('0x3a')];let _0x4f0e52=_0x47dc61[_0x344827('0x3a')]+_0x47dc61[_0x344827('0x6')],_0x323f6f;return _0x4f0e52>=_0x22afbe?(_0x4f0e52=_0x22afbe,_0x323f6f=0xc8):_0x323f6f=0xce,_0x5e2ecb[_0x344827('0x24')](_0x323f6f),_0x5e2ecb[_0x344827('0x16')]('Content-Range',_0x19c65e+'-'+_0x4f0e52+'/'+_0x22afbe)[_0x344827('0x2b')](_0x317c82);}return null;};}function saveUpdates(_0x5af1cb){return function(_0x61f0a6){const _0x4477d6=a122_0x5886;if(_0x61f0a6)return _0x61f0a6[_0x4477d6('0x3c')](_0x5af1cb)[_0x4477d6('0x13')](function(_0x5851d8){return _0x5851d8;});return null;};}function removeEntity(_0x41bf78){return function(_0x3c59c0){const _0x4e3260=a122_0x5886;if(_0x3c59c0)return _0x3c59c0[_0x4e3260('0x8')]()['then'](function(){const _0x126a3c=_0x4e3260,_0x567396=_0x3c59c0[_0x126a3c('0x7')]({'plain':!![]}),_0x57b1ac=_0x126a3c('0x1a');return db[_0x126a3c('0x12')]['destroy']({'where':{'type':_0x57b1ac,'resourceId':_0x567396['id']}})[_0x126a3c('0x13')](function(){return _0x3c59c0;});})[_0x4e3260('0x13')](function(){const _0x1d4e53=_0x4e3260;_0x41bf78['status'](0xcc)[_0x1d4e53('0xd')]();});};}function handleEntityNotFound(_0x273e8f){return function(_0x544f83){const _0x70c4d4=a122_0x5886;return!_0x544f83&&_0x273e8f[_0x70c4d4('0x1e')](0x194),_0x544f83;};}function handleError(_0x5d81f5,_0x5f4796){return _0x5f4796=_0x5f4796||0x1f4,function(_0xb143ee){const _0x4edce0=a122_0x5886;logger[_0x4edce0('0x23')](_0xb143ee[_0x4edce0('0x11')]),_0xb143ee[_0x4edce0('0x15')]&&delete _0xb143ee[_0x4edce0('0x15')],_0x5d81f5[_0x4edce0('0x24')](_0x5f4796)['send'](_0xb143ee);};}exports[_0x508f6c('0x2a')]=function(_0x26f409,_0x28d593){const _0x5d22e2=_0x508f6c;let _0x22fb46={};const _0x317f5d={},_0x4e88cd={'count':0x0,'rows':[]};return db[_0x5d22e2('0x2c')][_0x5d22e2('0x1f')]()[_0x5d22e2('0x13')](function(_0x5659e4){const _0x3b705b=_0x5d22e2;_0x317f5d[_0x3b705b('0x33')]=_['keys'](_0x5659e4),_0x317f5d[_0x3b705b('0x34')]=_[_0x3b705b('0x17')](_0x26f409['query']),_0x317f5d[_0x3b705b('0xa')]=_[_0x3b705b('0x1c')](_0x317f5d[_0x3b705b('0x33')],_0x317f5d[_0x3b705b('0x34')]),_0x22fb46[_0x3b705b('0x3')]=_[_0x3b705b('0x1c')](_0x317f5d[_0x3b705b('0x33')],qs['fields'](_0x26f409[_0x3b705b('0x34')][_0x3b705b('0x4')])),_0x22fb46[_0x3b705b('0x3')]=_0x22fb46['attributes'][_0x3b705b('0x36')]?_0x22fb46[_0x3b705b('0x3')]:_0x317f5d['model'];typeof _0x26f409[_0x3b705b('0x34')][_0x3b705b('0xe')]===_0x3b705b('0x20')&&(_0x22fb46[_0x3b705b('0x6')]=qs['limit'](_0x26f409[_0x3b705b('0x34')][_0x3b705b('0x6')]),_0x22fb46[_0x3b705b('0x3a')]=qs['offset'](_0x26f409[_0x3b705b('0x34')][_0x3b705b('0x3a')]));_0x22fb46[_0x3b705b('0x19')]=qs[_0x3b705b('0xf')](_0x26f409[_0x3b705b('0x34')][_0x3b705b('0xf')]),_0x22fb46[_0x3b705b('0x2f')]=qs[_0x3b705b('0xa')](_[_0x3b705b('0x0')](_0x26f409['query'],_0x317f5d['filters']),_0x5659e4);_0x26f409[_0x3b705b('0x34')][_0x3b705b('0x22')]&&(_0x22fb46[_0x3b705b('0x2f')]=_[_0x3b705b('0xc')](_0x22fb46['where'],{[Op['or']]:_[_0x3b705b('0x39')](_0x22fb46[_0x3b705b('0x3')],function(_0x4f7795){const _0x31235d=_0x3b705b,_0x3a6df8={};return _0x3a6df8[_0x4f7795]={[Op[_0x31235d('0x28')]]:'%'+_0x26f409[_0x31235d('0x34')]['filter']+'%'},_0x3a6df8;})}));_0x22fb46=_[_0x3b705b('0xc')]({},_0x22fb46,_0x26f409[_0x3b705b('0x37')]);const _0x3438c0={'where':_0x22fb46[_0x3b705b('0x2f')]};return db[_0x3b705b('0x2c')][_0x3b705b('0x2e')](_0x3438c0)['then'](function(_0x920406){const _0x8c97d7=_0x3b705b;return _0x4e88cd[_0x8c97d7('0x2e')]=_0x920406,_0x26f409[_0x8c97d7('0x34')][_0x8c97d7('0x3e')]&&(_0x22fb46[_0x8c97d7('0x35')]=[{'all':!![]}]),db['CmCompany'][_0x8c97d7('0x5')](_0x22fb46);})[_0x3b705b('0x13')](function(_0x70631b){const _0x1a27ff=_0x3b705b;return _0x4e88cd[_0x1a27ff('0x31')]=_0x70631b,_0x4e88cd;})[_0x3b705b('0x13')](respondWithFilteredResult(_0x28d593,_0x22fb46))['catch'](handleError(_0x28d593,null));})[_0x5d22e2('0x1')](handleError(_0x28d593,null));},exports['show']=function(_0x5a14cc,_0x41c04d){const _0x3655e0=_0x508f6c;let _0x5b6abe={'raw':![],'where':{'id':_0x5a14cc[_0x3655e0('0x1d')]['id']}};const _0x5cb4e4={};return _0x5cb4e4['model']=_[_0x3655e0('0x17')](db[_0x3655e0('0x2c')][_0x3655e0('0x3b')]),_0x5cb4e4[_0x3655e0('0x34')]=_[_0x3655e0('0x17')](_0x5a14cc[_0x3655e0('0x34')]),_0x5cb4e4[_0x3655e0('0xa')]=_['intersection'](_0x5cb4e4[_0x3655e0('0x33')],_0x5cb4e4['query']),_0x5b6abe[_0x3655e0('0x3')]=_['intersection'](_0x5cb4e4['model'],qs[_0x3655e0('0x4')](_0x5a14cc['query']['fields'])),_0x5b6abe['attributes']=_0x5b6abe[_0x3655e0('0x3')][_0x3655e0('0x36')]?_0x5b6abe[_0x3655e0('0x3')]:_0x5cb4e4['model'],_0x5a14cc[_0x3655e0('0x34')]['includeAll']&&(_0x5b6abe[_0x3655e0('0x35')]=[{'all':!![]}]),_0x5b6abe=_['merge']({},_0x5b6abe,_0x5a14cc[_0x3655e0('0x37')]),db[_0x3655e0('0x2c')][_0x3655e0('0x18')](_0x5b6abe)['then'](handleEntityNotFound(_0x41c04d,null))[_0x3655e0('0x13')](respondWithResult(_0x41c04d,null))[_0x3655e0('0x1')](handleError(_0x41c04d,null));},exports[_0x508f6c('0x29')]=function(_0x382b97,_0x225443){const _0x47e4c5=_0x508f6c;return db[_0x47e4c5('0x2c')][_0x47e4c5('0x29')](_0x382b97['body'],{})[_0x47e4c5('0x13')](function(_0x161d72){const _0xc08fa7=_0x47e4c5,_0x27f647=_0x382b97[_0xc08fa7('0x27')][_0xc08fa7('0x7')]({'plain':!![]});if(!_0x27f647)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x27f647[_0xc08fa7('0x38')]===_0xc08fa7('0x27')){const _0x1328a9=_0x161d72[_0xc08fa7('0x7')]({'plain':!![]}),_0x33c69c=_0xc08fa7('0x1a');return db['UserProfileSection']['findOne']({'where':{'name':_0x33c69c,'userProfileId':_0x27f647[_0xc08fa7('0x9')]},'raw':!![]})['then'](function(_0x33778a){const _0x59392d=_0xc08fa7;return _0x33778a&&_0x33778a[_0x59392d('0x25')]===0x0?db[_0x59392d('0x12')]['create']({'name':_0x1328a9[_0x59392d('0x15')],'resourceId':_0x1328a9['id'],'type':_0x33778a[_0x59392d('0x15')],'sectionId':_0x33778a['id']},{})['then'](function(){return _0x161d72;}):_0x161d72;})['catch'](function(_0x2dc676){const _0x5a87ca=_0xc08fa7;logger[_0x5a87ca('0x23')](_0x5a87ca('0x2d'),_0x2dc676);throw _0x2dc676;});}return _0x161d72;})[_0x47e4c5('0x13')](respondWithResult(_0x225443,0xc9))[_0x47e4c5('0x1')](handleError(_0x225443,null));},exports[_0x508f6c('0x3c')]=function(_0x4ed142,_0x94b624){const _0x101e1b=_0x508f6c;return _0x4ed142[_0x101e1b('0x30')]['id']&&delete _0x4ed142[_0x101e1b('0x30')]['id'],db['CmCompany']['findOne']({'where':{'id':_0x4ed142[_0x101e1b('0x1d')]['id']}})['then'](handleEntityNotFound(_0x94b624,null))['then'](saveUpdates(_0x4ed142[_0x101e1b('0x30')],null))['then'](respondWithResult(_0x94b624,null))['catch'](handleError(_0x94b624,null));},exports[_0x508f6c('0x8')]=function(_0x3ecfc9,_0x2a25a0){const _0x38ddbc=_0x508f6c;return db[_0x38ddbc('0x2c')]['findOne']({'where':{'id':_0x3ecfc9['params']['id']}})[_0x38ddbc('0x13')](handleEntityNotFound(_0x2a25a0,null))[_0x38ddbc('0x13')](removeEntity(_0x2a25a0,null))[_0x38ddbc('0x1')](handleError(_0x2a25a0,null));},exports[_0x508f6c('0x1f')]=function(_0x1fab4d,_0x3d690e){const _0x52b300=_0x508f6c;return db[_0x52b300('0x2c')][_0x52b300('0x1f')]()[_0x52b300('0x13')](respondWithResult(_0x3d690e,null))[_0x52b300('0x1')](handleError(_0x3d690e,null));},exports[_0x508f6c('0x14')]=function(_0x5d253f,_0x275b48){const _0x5e8d8b=_0x508f6c;return db['CmContact'][_0x5e8d8b('0x18')]({'where':{'id':_0x5d253f[_0x5e8d8b('0x1d')]['id']}})[_0x5e8d8b('0x13')](function(_0x31b101){const _0x4c3f74=_0x5e8d8b;if(_0x31b101)return _0x31b101['addContacts'](_0x5d253f[_0x4c3f74('0x30')]['ids'],{'through':_[_0x4c3f74('0x2')](_0x5d253f['body'],[_0x4c3f74('0x10'),'id'])});})[_0x5e8d8b('0x13')](respondWithResult(_0x275b48,null))[_0x5e8d8b('0x1')](handleError(_0x275b48,null));},exports[_0x508f6c('0xb')]=function(_0x526387,_0x209a3d){const _0x463406=_0x508f6c;let _0x37e58c={};const _0x41c547={};let _0x9ab854,_0x147686;return db[_0x463406('0x2c')][_0x463406('0x18')]({'where':{'id':_0x526387['params']['id']}})[_0x463406('0x13')](handleEntityNotFound(_0x209a3d,null))['then'](function(_0x2ab03d){const _0x128d92=_0x463406;if(_0x2ab03d)return _0x9ab854=_0x2ab03d,_0x41c547['model']=_[_0x128d92('0x17')](db[_0x128d92('0x1b')]['rawAttributes']),_0x41c547[_0x128d92('0x34')]=_[_0x128d92('0x17')](_0x526387[_0x128d92('0x34')]),_0x41c547[_0x128d92('0xa')]=_[_0x128d92('0x1c')](_0x41c547['model'],_0x41c547[_0x128d92('0x34')]),_0x37e58c['attributes']=_[_0x128d92('0x1c')](_0x41c547[_0x128d92('0x33')],qs[_0x128d92('0x4')](_0x526387[_0x128d92('0x34')][_0x128d92('0x4')])),_0x37e58c[_0x128d92('0x3')]=_0x37e58c['attributes'][_0x128d92('0x36')]?_0x37e58c[_0x128d92('0x3')]:_0x41c547[_0x128d92('0x33')],_0x37e58c[_0x128d92('0x19')]=qs[_0x128d92('0xf')](_0x526387['query'][_0x128d92('0xf')]),_0x37e58c[_0x128d92('0x2f')]=qs['filters'](_[_0x128d92('0x0')](_0x526387[_0x128d92('0x34')],_0x41c547[_0x128d92('0xa')])),_0x526387[_0x128d92('0x34')]['filter']&&(_0x37e58c[_0x128d92('0x2f')]=_[_0x128d92('0xc')](_0x37e58c[_0x128d92('0x2f')],{[Op['or']]:_[_0x128d92('0x39')](_0x37e58c[_0x128d92('0x3')],function(_0x5d732b){const _0x22cc7c=_0x128d92,_0xbe45fb={};return _0xbe45fb[_0x5d732b]={[Op[_0x22cc7c('0x28')]]:'%'+_0x526387['query']['filter']+'%'},_0xbe45fb;})})),_0x37e58c=_['merge']({},_0x37e58c,_0x526387[_0x128d92('0x37')]),_0x9ab854[_0x128d92('0xb')](_0x37e58c);})[_0x463406('0x13')](function(_0x2c4aa1){const _0x3f9057=_0x463406;if(_0x2c4aa1)return _0x147686=_0x2c4aa1[_0x3f9057('0x36')],typeof _0x526387[_0x3f9057('0x34')][_0x3f9057('0xe')]===_0x3f9057('0x20')&&(_0x37e58c[_0x3f9057('0x6')]=qs[_0x3f9057('0x6')](_0x526387[_0x3f9057('0x34')][_0x3f9057('0x6')]),_0x37e58c[_0x3f9057('0x3a')]=qs[_0x3f9057('0x3a')](_0x526387['query']['offset'])),_0x9ab854[_0x3f9057('0xb')](_0x37e58c);})[_0x463406('0x13')](function(_0x346f2e){if(_0x346f2e)return _0x346f2e?{'count':_0x147686,'rows':_0x346f2e}:null;})[_0x463406('0x13')](respondWithResult(_0x209a3d,null))[_0x463406('0x1')](handleError(_0x209a3d,null));}; \ No newline at end of file +const a122_0x3d96=['userProfileId','fields','findAll','describe','CmContact','pick','query','count','includeAll','show','CmCompany','sequelize','then','intersection','../../config/logger','catch','end','map','../../components/parsers/qs','undefined','offset','getContacts','params','user','model','rows','update','Companies','include','where','addContacts','findOne','keys','lodash','api','set','autoAssociation','order','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','filters','index','merge','like','Content-Range','sort','attributes','sendStatus','destroy','json','UserProfileSection','name','limit','create','nolimit','body','UserProfileResource','filter','length','ids','rawAttributes','role','options','status','error'];(function(_0xee6443,_0x3d9609){const _0x49da98=function(_0x30f97b){while(--_0x30f97b){_0xee6443['push'](_0xee6443['shift']());}};_0x49da98(++_0x3d9609);}(a122_0x3d96,0x1cb));const a122_0x49da=function(_0xee6443,_0x3d9609){_0xee6443=_0xee6443-0x0;let _0x49da98=a122_0x3d96[_0xee6443];return _0x49da98;};const _0x4a63e7=a122_0x49da;'use strict';const _=require(_0x4a63e7('0x1d')),qs=require(_0x4a63e7('0xe')),logger=require(_0x4a63e7('0xa'))(_0x4a63e7('0x1e')),db=require('../../mysqldb')['db'],{Op}=require(_0x4a63e7('0x7'));function respondWithResult(_0x30f97b,_0x2f69fd){return _0x2f69fd=_0x2f69fd||0xc8,function(_0x3e311a){const _0x4f268d=a122_0x49da;if(_0x3e311a)return _0x30f97b[_0x4f268d('0x3b')](_0x2f69fd)[_0x4f268d('0x2d')](_0x3e311a);};}function respondWithFilteredResult(_0x22b25d,_0x1b20d0){return function(_0x15f7cc){const _0x464a3e=a122_0x49da;if(_0x15f7cc){const _0x497ad1=_0x15f7cc[_0x464a3e('0x3')],_0x5887f8=_0x1b20d0[_0x464a3e('0x10')];let _0x38ca68=_0x1b20d0['offset']+_0x1b20d0[_0x464a3e('0x30')],_0x7eafbc;return _0x38ca68>=_0x497ad1?(_0x38ca68=_0x497ad1,_0x7eafbc=0xc8):_0x7eafbc=0xce,_0x22b25d['status'](_0x7eafbc),_0x22b25d[_0x464a3e('0x1f')](_0x464a3e('0x28'),_0x5887f8+'-'+_0x38ca68+'/'+_0x497ad1)[_0x464a3e('0x2d')](_0x15f7cc);}return null;};}function saveUpdates(_0x58bb9f){return function(_0x18d575){const _0x6a46ac=a122_0x49da;if(_0x18d575)return _0x18d575[_0x6a46ac('0x16')](_0x58bb9f)[_0x6a46ac('0x8')](function(_0x4b87d9){return _0x4b87d9;});return null;};}function removeEntity(_0x18f21b){return function(_0x4cd9ce){const _0x621e91=a122_0x49da;if(_0x4cd9ce)return _0x4cd9ce[_0x621e91('0x2c')]()[_0x621e91('0x8')](function(){const _0x472f79=_0x621e91,_0x3b0b41=_0x4cd9ce[_0x472f79('0x22')]({'plain':!![]}),_0x35ef6b='Companies';return db['UserProfileResource'][_0x472f79('0x2c')]({'where':{'type':_0x35ef6b,'resourceId':_0x3b0b41['id']}})[_0x472f79('0x8')](function(){return _0x4cd9ce;});})[_0x621e91('0x8')](function(){const _0x409950=_0x621e91;_0x18f21b['status'](0xcc)[_0x409950('0xc')]();});};}function handleEntityNotFound(_0x1fb13b){return function(_0x375672){const _0x2fb7c5=a122_0x49da;return!_0x375672&&_0x1fb13b[_0x2fb7c5('0x2b')](0x194),_0x375672;};}function handleError(_0x101235,_0x528729){return _0x528729=_0x528729||0x1f4,function(_0x161501){const _0xacf145=a122_0x49da;logger[_0xacf145('0x3c')](_0x161501['stack']),_0x161501['name']&&delete _0x161501[_0xacf145('0x2f')],_0x101235[_0xacf145('0x3b')](_0x528729)['send'](_0x161501);};}exports[_0x4a63e7('0x25')]=function(_0x147827,_0x514095){const _0x563b56=_0x4a63e7;let _0x21479b={};const _0x476dd7={},_0x10d8a6={'count':0x0,'rows':[]};return db[_0x563b56('0x6')][_0x563b56('0x40')]()[_0x563b56('0x8')](function(_0x2ed2ce){const _0x129136=_0x563b56;_0x476dd7[_0x129136('0x14')]=_[_0x129136('0x1c')](_0x2ed2ce),_0x476dd7[_0x129136('0x2')]=_[_0x129136('0x1c')](_0x147827[_0x129136('0x2')]),_0x476dd7[_0x129136('0x24')]=_[_0x129136('0x9')](_0x476dd7[_0x129136('0x14')],_0x476dd7['query']),_0x21479b['attributes']=_['intersection'](_0x476dd7['model'],qs[_0x129136('0x3e')](_0x147827[_0x129136('0x2')][_0x129136('0x3e')])),_0x21479b['attributes']=_0x21479b[_0x129136('0x2a')][_0x129136('0x36')]?_0x21479b['attributes']:_0x476dd7[_0x129136('0x14')];typeof _0x147827[_0x129136('0x2')][_0x129136('0x32')]===_0x129136('0xf')&&(_0x21479b[_0x129136('0x30')]=qs[_0x129136('0x30')](_0x147827[_0x129136('0x2')][_0x129136('0x30')]),_0x21479b['offset']=qs[_0x129136('0x10')](_0x147827['query'][_0x129136('0x10')]));_0x21479b[_0x129136('0x21')]=qs['sort'](_0x147827[_0x129136('0x2')][_0x129136('0x29')]),_0x21479b['where']=qs[_0x129136('0x24')](_[_0x129136('0x1')](_0x147827[_0x129136('0x2')],_0x476dd7[_0x129136('0x24')]),_0x2ed2ce);_0x147827[_0x129136('0x2')]['filter']&&(_0x21479b['where']=_['merge'](_0x21479b['where'],{[Op['or']]:_[_0x129136('0xd')](_0x21479b['attributes'],function(_0x119733){const _0x192e02=_0x129136,_0x245c99={};return _0x245c99[_0x119733]={[Op[_0x192e02('0x27')]]:'%'+_0x147827[_0x192e02('0x2')]['filter']+'%'},_0x245c99;})}));_0x21479b=_['merge']({},_0x21479b,_0x147827[_0x129136('0x3a')]);const _0x302b52={'where':_0x21479b[_0x129136('0x19')]};return db[_0x129136('0x6')][_0x129136('0x3')](_0x302b52)[_0x129136('0x8')](function(_0x534f33){const _0x518b7e=_0x129136;return _0x10d8a6[_0x518b7e('0x3')]=_0x534f33,_0x147827[_0x518b7e('0x2')][_0x518b7e('0x4')]&&(_0x21479b[_0x518b7e('0x18')]=[{'all':!![]}]),db[_0x518b7e('0x6')][_0x518b7e('0x3f')](_0x21479b);})[_0x129136('0x8')](function(_0x4a4d13){const _0x10dbc5=_0x129136;return _0x10d8a6[_0x10dbc5('0x15')]=_0x4a4d13,_0x10d8a6;})[_0x129136('0x8')](respondWithFilteredResult(_0x514095,_0x21479b))[_0x129136('0xb')](handleError(_0x514095,null));})['catch'](handleError(_0x514095,null));},exports[_0x4a63e7('0x5')]=function(_0x454253,_0x18069a){const _0x4944de=_0x4a63e7;let _0x54e95c={'raw':![],'where':{'id':_0x454253['params']['id']}};const _0x18baf5={};return _0x18baf5[_0x4944de('0x14')]=_[_0x4944de('0x1c')](db[_0x4944de('0x6')][_0x4944de('0x38')]),_0x18baf5[_0x4944de('0x2')]=_['keys'](_0x454253[_0x4944de('0x2')]),_0x18baf5[_0x4944de('0x24')]=_[_0x4944de('0x9')](_0x18baf5[_0x4944de('0x14')],_0x18baf5['query']),_0x54e95c[_0x4944de('0x2a')]=_[_0x4944de('0x9')](_0x18baf5[_0x4944de('0x14')],qs[_0x4944de('0x3e')](_0x454253['query']['fields'])),_0x54e95c['attributes']=_0x54e95c[_0x4944de('0x2a')][_0x4944de('0x36')]?_0x54e95c[_0x4944de('0x2a')]:_0x18baf5[_0x4944de('0x14')],_0x454253[_0x4944de('0x2')]['includeAll']&&(_0x54e95c[_0x4944de('0x18')]=[{'all':!![]}]),_0x54e95c=_[_0x4944de('0x26')]({},_0x54e95c,_0x454253[_0x4944de('0x3a')]),db[_0x4944de('0x6')][_0x4944de('0x1b')](_0x54e95c)[_0x4944de('0x8')](handleEntityNotFound(_0x18069a,null))['then'](respondWithResult(_0x18069a,null))[_0x4944de('0xb')](handleError(_0x18069a,null));},exports[_0x4a63e7('0x31')]=function(_0x58b09a,_0x1807b8){const _0x251120=_0x4a63e7;return db['CmCompany']['create'](_0x58b09a[_0x251120('0x33')],{})[_0x251120('0x8')](function(_0xca4c21){const _0x486c0b=_0x251120,_0x4c9ab6=_0x58b09a['user'][_0x486c0b('0x22')]({'plain':!![]});if(!_0x4c9ab6)throw new Error(_0x486c0b('0x23'));if(_0x4c9ab6[_0x486c0b('0x39')]===_0x486c0b('0x13')){const _0x48404e=_0xca4c21[_0x486c0b('0x22')]({'plain':!![]}),_0x45f460=_0x486c0b('0x17');return db[_0x486c0b('0x2e')][_0x486c0b('0x1b')]({'where':{'name':_0x45f460,'userProfileId':_0x4c9ab6[_0x486c0b('0x3d')]},'raw':!![]})[_0x486c0b('0x8')](function(_0x1e0290){const _0x5927d3=_0x486c0b;return _0x1e0290&&_0x1e0290[_0x5927d3('0x20')]===0x0?db[_0x5927d3('0x34')]['create']({'name':_0x48404e[_0x5927d3('0x2f')],'resourceId':_0x48404e['id'],'type':_0x1e0290[_0x5927d3('0x2f')],'sectionId':_0x1e0290['id']},{})['then'](function(){return _0xca4c21;}):_0xca4c21;})[_0x486c0b('0xb')](function(_0x4d6e17){const _0x2bc72c=_0x486c0b;logger[_0x2bc72c('0x3c')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4d6e17);throw _0x4d6e17;});}return _0xca4c21;})[_0x251120('0x8')](respondWithResult(_0x1807b8,0xc9))['catch'](handleError(_0x1807b8,null));},exports[_0x4a63e7('0x16')]=function(_0x3dcbfd,_0x34c031){const _0x4df1f3=_0x4a63e7;return _0x3dcbfd[_0x4df1f3('0x33')]['id']&&delete _0x3dcbfd[_0x4df1f3('0x33')]['id'],db[_0x4df1f3('0x6')][_0x4df1f3('0x1b')]({'where':{'id':_0x3dcbfd[_0x4df1f3('0x12')]['id']}})['then'](handleEntityNotFound(_0x34c031,null))['then'](saveUpdates(_0x3dcbfd[_0x4df1f3('0x33')],null))[_0x4df1f3('0x8')](respondWithResult(_0x34c031,null))[_0x4df1f3('0xb')](handleError(_0x34c031,null));},exports[_0x4a63e7('0x2c')]=function(_0x4a1b42,_0x236d35){const _0x4ef4c3=_0x4a63e7;return db[_0x4ef4c3('0x6')][_0x4ef4c3('0x1b')]({'where':{'id':_0x4a1b42[_0x4ef4c3('0x12')]['id']}})['then'](handleEntityNotFound(_0x236d35,null))[_0x4ef4c3('0x8')](removeEntity(_0x236d35,null))[_0x4ef4c3('0xb')](handleError(_0x236d35,null));},exports[_0x4a63e7('0x40')]=function(_0xdb5d6f,_0x2d3b98){const _0x52f68a=_0x4a63e7;return db[_0x52f68a('0x6')][_0x52f68a('0x40')]()[_0x52f68a('0x8')](respondWithResult(_0x2d3b98,null))[_0x52f68a('0xb')](handleError(_0x2d3b98,null));},exports[_0x4a63e7('0x1a')]=function(_0x1677b7,_0x3d694a){const _0x27bdea=_0x4a63e7;return db[_0x27bdea('0x0')][_0x27bdea('0x1b')]({'where':{'id':_0x1677b7[_0x27bdea('0x12')]['id']}})[_0x27bdea('0x8')](function(_0x52245a){const _0x2865f9=_0x27bdea;if(_0x52245a)return _0x52245a[_0x2865f9('0x1a')](_0x1677b7['body'][_0x2865f9('0x37')],{'through':_['omit'](_0x1677b7[_0x2865f9('0x33')],['ids','id'])});})[_0x27bdea('0x8')](respondWithResult(_0x3d694a,null))[_0x27bdea('0xb')](handleError(_0x3d694a,null));},exports[_0x4a63e7('0x11')]=function(_0xd011b0,_0x5edb8b){const _0x5af78e=_0x4a63e7;let _0x201619={};const _0x223a27={};let _0x182779,_0x84de97;return db[_0x5af78e('0x6')][_0x5af78e('0x1b')]({'where':{'id':_0xd011b0[_0x5af78e('0x12')]['id']}})[_0x5af78e('0x8')](handleEntityNotFound(_0x5edb8b,null))['then'](function(_0x37f858){const _0x589044=_0x5af78e;if(_0x37f858)return _0x182779=_0x37f858,_0x223a27['model']=_[_0x589044('0x1c')](db[_0x589044('0x0')]['rawAttributes']),_0x223a27[_0x589044('0x2')]=_[_0x589044('0x1c')](_0xd011b0[_0x589044('0x2')]),_0x223a27[_0x589044('0x24')]=_['intersection'](_0x223a27[_0x589044('0x14')],_0x223a27[_0x589044('0x2')]),_0x201619[_0x589044('0x2a')]=_[_0x589044('0x9')](_0x223a27[_0x589044('0x14')],qs[_0x589044('0x3e')](_0xd011b0[_0x589044('0x2')][_0x589044('0x3e')])),_0x201619[_0x589044('0x2a')]=_0x201619[_0x589044('0x2a')][_0x589044('0x36')]?_0x201619[_0x589044('0x2a')]:_0x223a27[_0x589044('0x14')],_0x201619['order']=qs['sort'](_0xd011b0[_0x589044('0x2')][_0x589044('0x29')]),_0x201619['where']=qs['filters'](_[_0x589044('0x1')](_0xd011b0['query'],_0x223a27['filters'])),_0xd011b0['query'][_0x589044('0x35')]&&(_0x201619[_0x589044('0x19')]=_[_0x589044('0x26')](_0x201619[_0x589044('0x19')],{[Op['or']]:_['map'](_0x201619[_0x589044('0x2a')],function(_0x43ca91){const _0x1db51a=_0x589044,_0x16e8e0={};return _0x16e8e0[_0x43ca91]={[Op[_0x1db51a('0x27')]]:'%'+_0xd011b0['query'][_0x1db51a('0x35')]+'%'},_0x16e8e0;})})),_0x201619=_[_0x589044('0x26')]({},_0x201619,_0xd011b0['options']),_0x182779['getContacts'](_0x201619);})[_0x5af78e('0x8')](function(_0x179f75){const _0x25e810=_0x5af78e;if(_0x179f75)return _0x84de97=_0x179f75[_0x25e810('0x36')],typeof _0xd011b0[_0x25e810('0x2')]['nolimit']===_0x25e810('0xf')&&(_0x201619[_0x25e810('0x30')]=qs[_0x25e810('0x30')](_0xd011b0[_0x25e810('0x2')][_0x25e810('0x30')]),_0x201619[_0x25e810('0x10')]=qs[_0x25e810('0x10')](_0xd011b0['query'][_0x25e810('0x10')])),_0x182779[_0x25e810('0x11')](_0x201619);})[_0x5af78e('0x8')](function(_0x3c9417){if(_0x3c9417)return _0x3c9417?{'count':_0x84de97,'rows':_0x3c9417}:null;})[_0x5af78e('0x8')](respondWithResult(_0x5edb8b,null))[_0x5af78e('0xb')](handleError(_0x5edb8b,null));}; \ No newline at end of file diff --git a/server/api/cmCompany/cmCompany.model.js b/server/api/cmCompany/cmCompany.model.js index 5ff74e4..32d7669 100644 --- a/server/api/cmCompany/cmCompany.model.js +++ b/server/api/cmCompany/cmCompany.model.js @@ -1 +1 @@ -const a123_0x593e=['CmCompany','exports','cm_companies'];(function(_0x11292e,_0x593ecb){const _0x2f3e04=function(_0x468a1a){while(--_0x468a1a){_0x11292e['push'](_0x11292e['shift']());}};_0x2f3e04(++_0x593ecb);}(a123_0x593e,0x129));const a123_0x2f3e=function(_0x11292e,_0x593ecb){_0x11292e=_0x11292e-0x0;let _0x2f3e04=a123_0x593e[_0x11292e];return _0x2f3e04;};const _0x42f101=a123_0x2f3e;'use strict';const attributes=require('./cmCompany.attributes');module[_0x42f101('0x1')]=function(_0x468a1a){const _0x2afcb7=_0x42f101,_0x329157=_0x468a1a['define'](_0x2afcb7('0x0'),attributes,{'tableName':_0x2afcb7('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x329157;}; \ No newline at end of file +const a123_0x271e=['CmCompany','define','./cmCompany.attributes','exports'];(function(_0x21ddc9,_0x271ede){const _0x333797=function(_0x232b21){while(--_0x232b21){_0x21ddc9['push'](_0x21ddc9['shift']());}};_0x333797(++_0x271ede);}(a123_0x271e,0xc4));const a123_0x3337=function(_0x21ddc9,_0x271ede){_0x21ddc9=_0x21ddc9-0x0;let _0x333797=a123_0x271e[_0x21ddc9];return _0x333797;};const _0xde3e21=a123_0x3337;'use strict';const attributes=require(_0xde3e21('0x2'));module[_0xde3e21('0x3')]=function(_0x232b21){const _0x4635e3=_0xde3e21,_0x210d9c=_0x232b21[_0x4635e3('0x1')](_0x4635e3('0x0'),attributes,{'tableName':'cm_companies','paranoid':![],'indexes':[],'timestamps':!![]});return _0x210d9c;}; \ No newline at end of file diff --git a/server/api/cmCompany/index.js b/server/api/cmCompany/index.js index 2143320..c9fa6a8 100644 --- a/server/api/cmCompany/index.js +++ b/server/api/cmCompany/index.js @@ -1 +1 @@ -const a124_0x1fc9=['../../components/auth/service','Router','index','/:id','post','delete','exports','destroy','create','addContacts','express','put','isAuthenticated','get','describe','update','show','/:id/contacts','./cmCompany.controller'];(function(_0x3de876,_0x1fc943){const _0x30ef66=function(_0x2ae168){while(--_0x2ae168){_0x3de876['push'](_0x3de876['shift']());}};_0x30ef66(++_0x1fc943);}(a124_0x1fc9,0x93));const a124_0x30ef=function(_0x3de876,_0x1fc943){_0x3de876=_0x3de876-0x0;let _0x30ef66=a124_0x1fc9[_0x3de876];return _0x30ef66;};const _0x3e6adf=a124_0x30ef;'use strict';const express=require(_0x3e6adf('0xf')),router=express[_0x3e6adf('0x6')](),auth=require(_0x3e6adf('0x5')),controller=require(_0x3e6adf('0x4'));router[_0x3e6adf('0x12')]('/',auth['isAuthenticated'](),controller[_0x3e6adf('0x7')]),router['get']('/describe',auth[_0x3e6adf('0x11')](),controller[_0x3e6adf('0x0')]),router[_0x3e6adf('0x12')](_0x3e6adf('0x8'),auth[_0x3e6adf('0x11')](),controller[_0x3e6adf('0x2')]),router[_0x3e6adf('0x12')](_0x3e6adf('0x3'),auth[_0x3e6adf('0x11')](),controller['getContacts']),router[_0x3e6adf('0x9')]('/',auth[_0x3e6adf('0x11')](),controller[_0x3e6adf('0xd')]),router['post'](_0x3e6adf('0x3'),auth[_0x3e6adf('0x11')](),controller[_0x3e6adf('0xe')]),router[_0x3e6adf('0x10')](_0x3e6adf('0x8'),auth[_0x3e6adf('0x11')](),controller[_0x3e6adf('0x1')]),router[_0x3e6adf('0xa')](_0x3e6adf('0x8'),auth[_0x3e6adf('0x11')](),controller[_0x3e6adf('0xc')]),module[_0x3e6adf('0xb')]=router; \ No newline at end of file +const a124_0x2a13=['./cmCompany.controller','exports','isAuthenticated','create','post','addContacts','destroy','/:id','delete','../../components/auth/service','get','express','/describe','/:id/contacts'];(function(_0x57756b,_0x2a1305){const _0x189435=function(_0x38b520){while(--_0x38b520){_0x57756b['push'](_0x57756b['shift']());}};_0x189435(++_0x2a1305);}(a124_0x2a13,0x1e3));const a124_0x1894=function(_0x57756b,_0x2a1305){_0x57756b=_0x57756b-0x0;let _0x189435=a124_0x2a13[_0x57756b];return _0x189435;};const _0x3986ef=a124_0x1894;'use strict';const express=require(_0x3986ef('0x4')),router=express['Router'](),auth=require(_0x3986ef('0x2')),controller=require(_0x3986ef('0x7'));router[_0x3986ef('0x3')]('/',auth[_0x3986ef('0x9')](),controller['index']),router[_0x3986ef('0x3')](_0x3986ef('0x5'),auth[_0x3986ef('0x9')](),controller['describe']),router['get'](_0x3986ef('0x0'),auth['isAuthenticated'](),controller['show']),router[_0x3986ef('0x3')](_0x3986ef('0x6'),auth['isAuthenticated'](),controller['getContacts']),router[_0x3986ef('0xb')]('/',auth['isAuthenticated'](),controller[_0x3986ef('0xa')]),router[_0x3986ef('0xb')](_0x3986ef('0x6'),auth[_0x3986ef('0x9')](),controller[_0x3986ef('0xc')]),router['put'](_0x3986ef('0x0'),auth['isAuthenticated'](),controller['update']),router[_0x3986ef('0x1')]('/:id',auth[_0x3986ef('0x9')](),controller[_0x3986ef('0xd')]),module[_0x3986ef('0x8')]=router; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.attributes.js b/server/api/cmContact/cmContact.attributes.js index 4313247..4cbe03d 100644 --- a/server/api/cmContact/cmContact.attributes.js +++ b/server/api/cmContact/cmContact.attributes.js @@ -1 +1 @@ -const a125_0x16ff=['TEXT','sequelize','exports','STRING','NOW','DATE','INTEGER'];(function(_0x26c57a,_0x16ff2f){const _0x4a5ab3=function(_0xfb4562){while(--_0xfb4562){_0x26c57a['push'](_0x26c57a['shift']());}};_0x4a5ab3(++_0x16ff2f);}(a125_0x16ff,0xff));const a125_0x4a5a=function(_0x26c57a,_0x16ff2f){_0x26c57a=_0x26c57a-0x0;let _0x4a5ab3=a125_0x16ff[_0x26c57a];return _0x4a5ab3;};const _0x425de3=a125_0x4a5a;'use strict';const Sequelize=require(_0x425de3('0x5'));module[_0x425de3('0x6')]={'firstName':{'type':Sequelize[_0x425de3('0x0')],'allowNull':![]},'lastName':{'type':Sequelize[_0x425de3('0x0')]},'street':{'type':Sequelize[_0x425de3('0x0')]},'postalCode':{'type':Sequelize['STRING']},'city':{'type':Sequelize[_0x425de3('0x0')]},'country':{'type':Sequelize[_0x425de3('0x0')]},'dateOfBirth':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x425de3('0x4')]},'phone':{'type':Sequelize['STRING']},'mobile':{'type':Sequelize['STRING']},'fax':{'type':Sequelize[_0x425de3('0x0')]},'email':{'type':Sequelize[_0x425de3('0x0')]},'url':{'type':Sequelize[_0x425de3('0x0')]},'facebook':{'type':Sequelize[_0x425de3('0x0')]},'fb_data':{'type':Sequelize[_0x425de3('0x0')]},'twitter':{'type':Sequelize[_0x425de3('0x0')]},'skype':{'type':Sequelize[_0x425de3('0x0')]},'teams':{'type':Sequelize[_0x425de3('0x0')]},'viber':{'type':Sequelize['STRING']},'line':{'type':Sequelize[_0x425de3('0x0')]},'wechat':{'type':Sequelize['STRING']},'telegram':{'type':Sequelize[_0x425de3('0x0')]},'UserId':{'type':Sequelize['INTEGER']},'priority':{'type':Sequelize[_0x425de3('0x3')](0x2)['UNSIGNED'],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0x425de3('0x2')],'defaultValue':Sequelize[_0x425de3('0x1')]}}; \ No newline at end of file +const a125_0x170c=['TEXT','INTEGER','sequelize','exports','DATE','UNSIGNED','STRING'];(function(_0x1651b8,_0x170c29){const _0x4b3386=function(_0x120bc5){while(--_0x120bc5){_0x1651b8['push'](_0x1651b8['shift']());}};_0x4b3386(++_0x170c29);}(a125_0x170c,0x1dd));const a125_0x4b33=function(_0x1651b8,_0x170c29){_0x1651b8=_0x1651b8-0x0;let _0x4b3386=a125_0x170c[_0x1651b8];return _0x4b3386;};const _0x4a928d=a125_0x4b33;'use strict';const Sequelize=require(_0x4a928d('0x1'));module[_0x4a928d('0x2')]={'firstName':{'type':Sequelize[_0x4a928d('0x5')],'allowNull':![]},'lastName':{'type':Sequelize['STRING']},'street':{'type':Sequelize[_0x4a928d('0x5')]},'postalCode':{'type':Sequelize[_0x4a928d('0x5')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize['STRING']},'dateOfBirth':{'type':Sequelize[_0x4a928d('0x5')]},'description':{'type':Sequelize[_0x4a928d('0x6')]},'phone':{'type':Sequelize[_0x4a928d('0x5')]},'mobile':{'type':Sequelize[_0x4a928d('0x5')]},'fax':{'type':Sequelize[_0x4a928d('0x5')]},'email':{'type':Sequelize[_0x4a928d('0x5')]},'url':{'type':Sequelize[_0x4a928d('0x5')]},'facebook':{'type':Sequelize[_0x4a928d('0x5')]},'fb_data':{'type':Sequelize['STRING']},'twitter':{'type':Sequelize['STRING']},'skype':{'type':Sequelize[_0x4a928d('0x5')]},'teams':{'type':Sequelize[_0x4a928d('0x5')]},'viber':{'type':Sequelize['STRING']},'line':{'type':Sequelize[_0x4a928d('0x5')]},'wechat':{'type':Sequelize[_0x4a928d('0x5')]},'telegram':{'type':Sequelize[_0x4a928d('0x5')]},'UserId':{'type':Sequelize['INTEGER']},'priority':{'type':Sequelize[_0x4a928d('0x0')](0x2)[_0x4a928d('0x4')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'scheduledat':{'type':Sequelize[_0x4a928d('0x3')],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file diff --git a/server/api/cmContact/cmContact.controller.js b/server/api/cmContact/cmContact.controller.js index 7147f49..1b26573 100644 --- a/server/api/cmContact/cmContact.controller.js +++ b/server/api/cmContact/cmContact.controller.js @@ -1 +1 @@ -const a126_0x18bd=['$and','c.ListId\x20IN\x20?','findOne','GROUP_CONCAT(DISTINCT\x20t.id)','some','ListId','c.firstName\x20LIKE\x20?','SmsInteraction','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','rows','FaxQueueReport','Unable\x20to\x20synchronize\x20socket,\x20no\x20timestamp\x20passed','c.email','api','set','trimStart','util','setTags','c.id','stringify','c.ListId\x20IS\x20NULL','sort','CmContact','binding_values','from','[CmContact][merge]\x20to\x20%s\x20from\x20%s','../../rediscache','../../components/parsers/qs','rawAttributes','join','union','Tag','setFields','includeAll','cf_','startsWith','cm_contact_has_tags','CmHopperFinal','register','squel','Contact','No\x20association\x20values\x20specified!','ChatMessage','No\x20ListId\x20specified','values','pick','tools_tags','start','attributes','No\x20association\x20keys\x20specified!','root','then','user','Incorrect\x20binding\x20parameters\x20passed!','status','SmsMessage','color','find','meta','get','select','all','keyBy','[CmContact][merge][destroy][CmHopperBlack],\x20%s','filters','ChatOfflineMessage','error\x20child\x20process','cm_user_has_contacts','pid','c.mobile\x20LIKE\x20?','type','cf_%d','getHopperHistories','and','create','options','../../mysqldb','OpenchannelQueueReport','undefined','MailInteraction','castTo','concat','tag','length','lodash','resolve','CmHopperHistory','ReportAgentPreview','destroy','VoiceCallReport','path','cm_contacts','import','firstName','end','toParam','../../config/logger','getJscriptySessions','upload','findAll','split','c.lastName\x20LIKE\x20?','OpenchannelMessage','SmsQueueReport','search','order','custom','binding_keys','findOrCreate','c.deletedAt\x20IS\x20NULL','merge','tags','bulkCreate','fieldType','getLists','json','dateOfBirth','query','\x27\x27\x27\x27','displayName','../../config/environment','SELECT','parse','binding','expr','child_process','c.phone\x20LIKE\x20?','conditions','uc.CmContactId\x20=\x20c.id','../../components/import/cm/csv2','group','phone','sendStatus','CONCAT_WS(\x27\x20\x27,\x20c.firstName,\x20c.lastName,\x20c.email)\x20LIKE\x20?','getFullTextValue','isNumeric','isEmpty','getHopperFinals','No\x20firstName\x20column\x20specified','update','like','limit','ids','intersection','c.deletedAt','FaxMessage','each','left_join','keys','model','c.fax','fields','FaxInteraction','User','sqlOperator','buildExpression','parseSearch','table','include','duplicates','c.email\x20LIKE\x20?','c.ListId','offset','catch','pickBy','createReadStream','t.id\x20=\x20ct.TagId','isArray','CompanyId','0777','columnName','getTags','CmHopper','exit','value','describe','nolimit','error','having','uc.UserId\x20=\x20?','No\x20phone\x20column\x20specified','Content-Range','field','map','t.id\x20IN\x20?','stack','File\x20uploaded\x20correctly!','isEmail','sequelize','ChatQueueReport','[CmContact][merge][destroy][CmHopper],\x20%s','c.mobile','CmCustomField','info','c.firstName','file','send','count','text','push','replace','name','params','socket_timestamp','filter','CmHopperBlack','where','./cmContact.socket','ContactId','toString','format','TagIds','QueryTypes','MailMessage','Sequelize','fork','omit','body','forEach','Tags','clone','JscriptySessionReport'];(function(_0x48c131,_0x18bd59){const _0x5218ae=function(_0x4172f1){while(--_0x4172f1){_0x48c131['push'](_0x48c131['shift']());}};_0x5218ae(++_0x18bd59);}(a126_0x18bd,0xbc));const a126_0x5218=function(_0x48c131,_0x18bd59){_0x48c131=_0x48c131-0x0;let _0x5218ae=a126_0x18bd[_0x48c131];return _0x5218ae;};const _0x1d459f=a126_0x5218;'use strict';const util=require(_0x1d459f('0x32')),path=require(_0x1d459f('0x7c')),fs=require('fs'),_=require(_0x1d459f('0x76')),squel=require(_0x1d459f('0x49')),Papa=require('papaparse'),{getSocket}=require(_0x1d459f('0x3c')),socket=getSocket(),qs=require(_0x1d459f('0x3d')),as=require('../../components/parsers/advancedSearch'),logger=require(_0x1d459f('0x82'))(_0x1d459f('0x2f')),config=require(_0x1d459f('0x9a')),db=require(_0x1d459f('0x6e'))['db'],{Op}=require(_0x1d459f('0x0'));require(_0x1d459f('0x13'))[_0x1d459f('0x48')](socket);function respondWithResult(_0x4172f1,_0x6168fb){return _0x6168fb=_0x6168fb||0xc8,function(_0x1600ba){const _0x37c166=a126_0x5218;if(_0x1600ba)return _0x4172f1[_0x37c166('0x58')](_0x6168fb)[_0x37c166('0x95')](_0x1600ba);};}function respondWithFilteredResult(_0x368bf8,_0x23f08b){return function(_0x5c1896){const _0x25031f=a126_0x5218;if(_0x5c1896){const _0x2d333b=_0x5c1896[_0x25031f('0x9')],_0x42bdf3=_0x23f08b[_0x25031f('0xc4')];let _0x4e3307=_0x23f08b[_0x25031f('0xc4')]+_0x23f08b[_0x25031f('0xaf')],_0x1f9f3b;return _0x4e3307>=_0x2d333b?(_0x4e3307=_0x2d333b,_0x1f9f3b=0xc8):_0x1f9f3b=0xce,_0x368bf8[_0x25031f('0x58')](_0x1f9f3b),_0x368bf8[_0x25031f('0x30')](_0x25031f('0xd7'),_0x42bdf3+'-'+_0x4e3307+'/'+_0x2d333b)[_0x25031f('0x95')](_0x5c1896);}return null;};}function saveUpdates(_0x10e726){return function(_0x181cd8){const _0x231c15=a126_0x5218;if(_0x181cd8)return _0x181cd8['update'](_0x10e726)[_0x231c15('0x55')](function(_0x4fbbdf){return _0x4fbbdf;});return null;};}function removeEntity(_0x37e016){return function(_0x4c3661){const _0x2a8cbf=a126_0x5218;if(_0x4c3661)return _0x4c3661[_0x2a8cbf('0x7a')]()[_0x2a8cbf('0x55')](function(){const _0x5244af=_0x2a8cbf;_0x37e016[_0x5244af('0x58')](0xcc)[_0x5244af('0x80')]();});};}function handleEntityNotFound(_0x4653b2){return function(_0x1e5b79){const _0x4b152=a126_0x5218;return!_0x1e5b79&&_0x4653b2[_0x4b152('0xa6')](0x194),_0x1e5b79;};}function handleError(_0x183241,_0x2229b3){return _0x2229b3=_0x2229b3||0x1f4,function(_0x286558){const _0x3128aa=a126_0x5218;logger[_0x3128aa('0xd3')](_0x286558[_0x3128aa('0xdb')]),_0x286558[_0x3128aa('0xd')]&&delete _0x286558[_0x3128aa('0xd')],_0x183241[_0x3128aa('0x58')](_0x2229b3)['send'](_0x286558);};}exports['index']=function(_0x377b72,_0x258b01){const _0x21af00=_0x1d459f,_0x39d7df={},_0x30138f={},_0x21f4bb={'count':0x0,'rows':[]};return db['CmContact'][_0x21af00('0xd1')]()['then'](function(_0xed49ab){const _0x57e578=_0x21af00,_0x26df61=[];for(let _0x3ae1a1=0x0;_0x3ae1a10x1)_0x38aaf6['or']('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x5bf5be('0xa8')](_0x3ca0a2),null);else{if(qs[_0x5bf5be('0xa9')](_0x3ca0a2))_0x38aaf6['or']('c.id\x20LIKE\x20?',_0x3ca0a2+'%'),_0x38aaf6['or'](_0x5bf5be('0xa0'),_0x3ca0a2+'%'),_0x38aaf6['or'](_0x5bf5be('0x67'),_0x3ca0a2+'%'),_0x38aaf6['or']('c.fax\x20LIKE\x20?',_0x3ca0a2+'%');else qs[_0x5bf5be('0xdd')](_0x3ca0a2)?_0x38aaf6['or'](_0x5bf5be('0xc2'),_0x3ca0a2+'%'):(_0x38aaf6['or'](_0x5bf5be('0x28'),'%'+_0x3ca0a2+'%'),_0x38aaf6['or'](_0x5bf5be('0x87'),'%'+_0x3ca0a2+'%'),_0x38aaf6['or'](_0x5bf5be('0xc2'),'%'+_0x3ca0a2+'%'));}}}_0x580033[_0x5bf5be('0x12')](_0x38aaf6),_0x580033[_0x5bf5be('0xa4')]('c.id');let _0xd55b2c={'type':db[_0x5bf5be('0x1a')][_0x5bf5be('0x18')][_0x5bf5be('0x9b')],'raw':!![]};const _0x3a8b4d=_0x580033[_0x5bf5be('0x20')]()[_0x5bf5be('0xd8')]('c.id');_0x39d7df['order']&&_0x39d7df[_0x5bf5be('0x8b')][_0x5bf5be('0x1e')](function(_0x5ca2f4){const _0x5630fc=_0x5bf5be;_0x580033[_0x5630fc('0x8b')]('c.'+_0x5ca2f4[0x0],_0x5ca2f4[0x1]==='DESC'?![]:!![]);}),!_[_0x5bf5be('0xaa')](_0x288eae)&&(_0x580033[_0x5bf5be('0xd4')](_0x51ce33),_0x3a8b4d[_0x5bf5be('0x12')](_0x5bf5be('0xda'),_0x288eae)),Promise[_0x5bf5be('0x77')]()[_0x5bf5be('0x55')](function(){const _0x51bf53=_0x5bf5be;if(_0x543bd9&&!_[_0x51bf53('0x26')](_0x543bd9[_0x51bf53('0xa1')],['field',_0x51bf53('0xbb')]))return _0x377b72[_0x51bf53('0x56')][_0x51bf53('0x94')]({'attributes':['id'],'raw':!![]})[_0x51bf53('0x55')](function(_0x5689e1){const _0x2e0a96=_0x51bf53;_[_0x2e0a96('0xaa')](_0x5689e1)?(_0x3a8b4d['where'](_0x2e0a96('0x36')),_0x580033[_0x2e0a96('0x12')](_0x2e0a96('0x36'))):(_0x3a8b4d[_0x2e0a96('0x12')](_0x2e0a96('0x23'),_[_0x2e0a96('0xd9')](_0x5689e1,'id')),_0x580033['where'](_0x2e0a96('0x23'),_[_0x2e0a96('0xd9')](_0x5689e1,'id')));});else return;})[_0x5bf5be('0x55')](function(){const _0x102db6=_0x5bf5be;db[_0x102db6('0x0')]['query'](_0x3a8b4d[_0x102db6('0x15')](),_0xd55b2c)[_0x102db6('0x55')](function(_0x574cf6){const _0x4f1b5c=_0x102db6;_0x21f4bb[_0x4f1b5c('0x9')]=_0x574cf6['length'];if(_0x21f4bb['count']===0x0)return[];return db['sequelize']['query'](_0x908aca[_0x4f1b5c('0x15')](),_0xd55b2c);})['then'](function(_0x2399b8){const _0x24f805=_0x102db6;_0xce8e57=_[_0x24f805('0x60')](_0x2399b8,'id'),_0xd55b2c=_['merge'](_0xd55b2c,{'model':db[_0x24f805('0x38')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x377b72[_0x24f805('0x97')][_0x24f805('0xb9')]?_0x39d7df[_0x24f805('0x52')][_0x24f805('0x1e')](function(_0x224fb7){const _0x5722fd=_0x24f805;_0x580033[_0x5722fd('0xd8')]('c.'+_0x224fb7);}):(_0x580033[_0x24f805('0xd8')](_0x24f805('0x34')),_0x580033[_0x24f805('0xd8')](_0x24f805('0x6')),_0x580033[_0x24f805('0xd8')]('c.lastName'),_0x580033[_0x24f805('0xd8')]('c.phone'),_0x580033['field'](_0x24f805('0x3')),_0x580033[_0x24f805('0xd8')](_0x24f805('0xb8')),_0x580033[_0x24f805('0xd8')](_0x24f805('0x2e')),_0x580033[_0x24f805('0xd8')](_0x24f805('0xc3')),_0x580033[_0x24f805('0xd8')](_0x24f805('0xb2')),_0x580033[_0x24f805('0xd8')](_0x24f805('0x25'),_0x24f805('0x17')));if(_0x39d7df[_0x24f805('0xaf')])_0x580033[_0x24f805('0xaf')](_0x39d7df[_0x24f805('0xaf')]);if(_0x39d7df[_0x24f805('0xc4')])_0x580033[_0x24f805('0xc4')](_0x39d7df[_0x24f805('0xc4')]);return db['sequelize'][_0x24f805('0x97')](_0x580033[_0x24f805('0x15')](),_0xd55b2c);})[_0x102db6('0x55')](function(_0x1c8653){const _0xecbac4=_0x102db6;return _0x1c8653[_0xecbac4('0x1e')](function(_0x30e067){const _0x89fb16=_0xecbac4;_0x30e067[_0x89fb16('0x17')]&&(_0x30e067[_0x89fb16('0x1f')]=[],_0x30e067[_0x89fb16('0x17')]['split'](',')[_0x89fb16('0x1e')](function(_0x3818b2){const _0x214e27=_0x89fb16;_0x30e067[_0x214e27('0x1f')][_0x214e27('0xb')](_0xce8e57[_0x3818b2]);})),delete _0x30e067[_0x89fb16('0x17')];}),_0x21f4bb[_0xecbac4('0x2b')]=_0x1c8653,_0x21f4bb;})[_0x102db6('0x55')](respondWithFilteredResult(_0x258b01,_0x39d7df));});})[_0x21af00('0xc5')](handleError(_0x258b01,null));},exports['destroy']=function(_0x284004,_0x52f882){const _0x1c316b=_0x1d459f;return db[_0x1c316b('0x38')][_0x1c316b('0x24')]({'where':{'id':_0x284004[_0x1c316b('0xe')]['id']}})[_0x1c316b('0x55')](handleEntityNotFound(_0x52f882,null))[_0x1c316b('0x55')](removeEntity(_0x52f882,null))['catch'](handleError(_0x52f882,null));},exports['describe']=function(_0x219dab,_0x3ef148){const _0x1df2fb=_0x1d459f;return db['CmContact']['describe']()[_0x1df2fb('0x55')](function(_0x1c7c5e){const _0x2ba05a=_0x1df2fb;delete _0x1c7c5e['tags'];for(let _0xa7c86f=0x0;_0xa7c86f=_0xa34a31?(_0x3e3bd5=_0xa34a31,_0x37ec70=0xc8):_0x37ec70=0xce,_0x47e89b[_0x300ee9('0x66')](_0x37ec70),_0x47e89b['set'](_0x300ee9('0x1d'),_0x103fe8+'-'+_0x3e3bd5+'/'+_0xa34a31)[_0x300ee9('0xbf')](_0x1a552e);}return null;};}function saveUpdates(_0x7313d3){return function(_0x5d9e53){const _0x473569=a126_0x573c;if(_0x5d9e53)return _0x5d9e53['update'](_0x7313d3)[_0x473569('0x9f')](function(_0x219de9){return _0x219de9;});return null;};}function removeEntity(_0x134083){return function(_0xce2f8b){const _0x5d95bf=a126_0x573c;if(_0xce2f8b)return _0xce2f8b[_0x5d95bf('0x4a')]()[_0x5d95bf('0x9f')](function(){_0x134083['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x56c5b2){return function(_0x8a64e1){return!_0x8a64e1&&_0x56c5b2['sendStatus'](0x194),_0x8a64e1;};}function handleError(_0x54e91c,_0x2d37bd){return _0x2d37bd=_0x2d37bd||0x1f4,function(_0xdf81b9){const _0x80d8e=a126_0x573c;logger[_0x80d8e('0x26')](_0xdf81b9[_0x80d8e('0x58')]),_0xdf81b9['name']&&delete _0xdf81b9[_0x80d8e('0x29')],_0x54e91c['status'](_0x2d37bd)[_0x80d8e('0x28')](_0xdf81b9);};}exports[_0x2e377b('0x77')]=function(_0x2af640,_0x371e66){const _0x5b34fb=_0x2e377b,_0x311fee={},_0x2b7f72={},_0x3274a1={'count':0x0,'rows':[]};return db['CmContact']['describe']()[_0x5b34fb('0x9f')](function(_0xf42ef7){const _0x1d1f93=_0x5b34fb,_0x8fcfeb=[];for(let _0x4422c4=0x0;_0x4422c40x1)_0xa387c1['or'](_0x93042b('0x51'),qs[_0x93042b('0x2c')](_0x57b930),null);else{if(qs[_0x93042b('0x6b')](_0x57b930))_0xa387c1['or'](_0x93042b('0xc5'),_0x57b930+'%'),_0xa387c1['or'](_0x93042b('0xd3'),_0x57b930+'%'),_0xa387c1['or'](_0x93042b('0xc8'),_0x57b930+'%'),_0xa387c1['or'](_0x93042b('0xd5'),_0x57b930+'%');else qs[_0x93042b('0x30')](_0x57b930)?_0xa387c1['or'](_0x93042b('0x43'),_0x57b930+'%'):(_0xa387c1['or']('c.firstName\x20LIKE\x20?','%'+_0x57b930+'%'),_0xa387c1['or'](_0x93042b('0x44'),'%'+_0x57b930+'%'),_0xa387c1['or'](_0x93042b('0x43'),'%'+_0x57b930+'%'));}}}_0x1cdc8a[_0x93042b('0x4')](_0xa387c1),_0x1cdc8a[_0x93042b('0x97')](_0x93042b('0xba'));let _0x50fd88={'type':db[_0x93042b('0xb1')][_0x93042b('0xb9')][_0x93042b('0x93')],'raw':!![]};const _0x548eb9=_0x1cdc8a[_0x93042b('0xb')]()[_0x93042b('0xd1')](_0x93042b('0xba'));_0x311fee[_0x93042b('0x5d')]&&_0x311fee[_0x93042b('0x5d')][_0x93042b('0xb8')](function(_0x4a4d05){const _0x46f34e=_0x93042b;_0x1cdc8a[_0x46f34e('0x5d')]('c.'+_0x4a4d05[0x0],_0x4a4d05[0x1]===_0x46f34e('0x9a')?![]:!![]);}),!_[_0x93042b('0xe')](_0x449609)&&(_0x1cdc8a[_0x93042b('0x22')](_0x5e22c1),_0x548eb9['where']('t.id\x20IN\x20?',_0x449609)),Promise[_0x93042b('0x8')]()[_0x93042b('0x9f')](function(){const _0x2e7086=_0x93042b;if(_0x4f54ee&&!_[_0x2e7086('0x7a')](_0x4f54ee[_0x2e7086('0x32')],['field',_0x2e7086('0x2a')]))return _0x2af640['user'][_0x2e7086('0x42')]({'attributes':['id'],'raw':!![]})[_0x2e7086('0x9f')](function(_0x50df81){const _0x497b17=_0x2e7086;_['isEmpty'](_0x50df81)?(_0x548eb9[_0x497b17('0x4')](_0x497b17('0x92')),_0x1cdc8a[_0x497b17('0x4')](_0x497b17('0x92'))):(_0x548eb9[_0x497b17('0x4')](_0x497b17('0x2e'),_['map'](_0x50df81,'id')),_0x1cdc8a[_0x497b17('0x4')]('c.ListId\x20IN\x20?',_[_0x497b17('0x81')](_0x50df81,'id')));});else return;})['then'](function(){const _0x161023=_0x93042b;db[_0x161023('0x37')][_0x161023('0xf')](_0x548eb9[_0x161023('0xd2')](),_0x50fd88)['then'](function(_0x2f6e6a){const _0x20298a=_0x161023;_0x3274a1[_0x20298a('0x1b')]=_0x2f6e6a[_0x20298a('0x8b')];if(_0x3274a1[_0x20298a('0x1b')]===0x0)return[];return db[_0x20298a('0x37')][_0x20298a('0xf')](_0x29f939['toString'](),_0x50fd88);})[_0x161023('0x9f')](function(_0x502185){const _0x2d2cf7=_0x161023;_0x4f027e=_[_0x2d2cf7('0xaa')](_0x502185,'id'),_0x50fd88=_[_0x2d2cf7('0xbb')](_0x50fd88,{'model':db[_0x2d2cf7('0xc1')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x2af640[_0x2d2cf7('0xf')][_0x2d2cf7('0x80')]?_0x311fee[_0x2d2cf7('0x20')][_0x2d2cf7('0xb8')](function(_0xf5ecb2){_0x1cdc8a['field']('c.'+_0xf5ecb2);}):(_0x1cdc8a[_0x2d2cf7('0xd1')]('c.id'),_0x1cdc8a[_0x2d2cf7('0xd1')]('c.firstName'),_0x1cdc8a[_0x2d2cf7('0xd1')](_0x2d2cf7('0x3b')),_0x1cdc8a[_0x2d2cf7('0xd1')]('c.phone'),_0x1cdc8a['field']('c.mobile'),_0x1cdc8a[_0x2d2cf7('0xd1')]('c.fax'),_0x1cdc8a[_0x2d2cf7('0xd1')](_0x2d2cf7('0x18')),_0x1cdc8a['field'](_0x2d2cf7('0x5')),_0x1cdc8a['field'](_0x2d2cf7('0xa4')),_0x1cdc8a[_0x2d2cf7('0xd1')](_0x2d2cf7('0x33'),'TagIds'));if(_0x311fee[_0x2d2cf7('0xc')])_0x1cdc8a['limit'](_0x311fee[_0x2d2cf7('0xc')]);if(_0x311fee[_0x2d2cf7('0x53')])_0x1cdc8a[_0x2d2cf7('0x53')](_0x311fee['offset']);return db['sequelize']['query'](_0x1cdc8a['toString'](),_0x50fd88);})[_0x161023('0x9f')](function(_0x27a532){const _0x817753=_0x161023;return _0x27a532['forEach'](function(_0x2596a9){const _0x4e16bc=a126_0x573c;_0x2596a9[_0x4e16bc('0x69')]&&(_0x2596a9[_0x4e16bc('0x87')]=[],_0x2596a9[_0x4e16bc('0x69')]['split'](',')[_0x4e16bc('0xb8')](function(_0x28d408){const _0x15d9ae=_0x4e16bc;_0x2596a9[_0x15d9ae('0x87')][_0x15d9ae('0xae')](_0x4f027e[_0x28d408]);})),delete _0x2596a9[_0x4e16bc('0x69')];}),_0x3274a1[_0x817753('0x8c')]=_0x27a532,_0x3274a1;})[_0x161023('0x9f')](respondWithFilteredResult(_0x371e66,_0x311fee));});})[_0x5b34fb('0xbe')](handleError(_0x371e66,null));},exports[_0x2e377b('0x4a')]=function(_0x1243d7,_0x1c13b1){const _0x3783b1=_0x2e377b;return db[_0x3783b1('0xc1')][_0x3783b1('0xab')]({'where':{'id':_0x1243d7[_0x3783b1('0x6')]['id']}})[_0x3783b1('0x9f')](handleEntityNotFound(_0x1c13b1,null))[_0x3783b1('0x9f')](removeEntity(_0x1c13b1,null))[_0x3783b1('0xbe')](handleError(_0x1c13b1,null));},exports[_0x2e377b('0x2d')]=function(_0x52506e,_0x1792f7){const _0x5654dd=_0x2e377b;return db[_0x5654dd('0xc1')]['describe']()['then'](function(_0x3a094c){const _0x58d809=_0x5654dd;delete _0x3a094c['tags'];for(let _0x2a035e=0x0;_0x2a035e{}\s\\|]/g,'-'),_0x1af1aa(null,util[_0x3e0039('0x2d')](_0x3e0039('0x3'),path[_0x3e0039('0xe')](_0x412fac[_0x3e0039('0x11')],path[_0x3e0039('0x13')](_0x412fac[_0x3e0039('0x11')])),Date[_0x3e0039('0x2e')](),path[_0x3e0039('0x13')](_0x412fac[_0x3e0039('0x11')])));}})});router[_0x3ac972('0x18')]('/',auth[_0x3ac972('0x5')](),controller['index']),router[_0x3ac972('0x18')](_0x3ac972('0x22'),auth['isAuthenticated'](),controller[_0x3ac972('0x8')]),router['get'](_0x3ac972('0x14'),auth[_0x3ac972('0x5')](),controller[_0x3ac972('0x1c')]),router[_0x3ac972('0x18')](_0x3ac972('0x1a'),auth[_0x3ac972('0x5')](),controller[_0x3ac972('0x12')]),router[_0x3ac972('0x18')]('/:id/hoppers',auth[_0x3ac972('0x5')](),controller[_0x3ac972('0xf')]),router[_0x3ac972('0x18')](_0x3ac972('0xb'),auth[_0x3ac972('0x5')](),controller['getHopperHistories']),router[_0x3ac972('0x18')](_0x3ac972('0x2b'),auth[_0x3ac972('0x5')](),controller[_0x3ac972('0x21')]),router['get'](_0x3ac972('0x15'),auth['isAuthenticated'](),controller[_0x3ac972('0x6')]),router[_0x3ac972('0x2a')](_0x3ac972('0x28'),auth[_0x3ac972('0x5')](),controller[_0x3ac972('0x19')]),router[_0x3ac972('0x2a')]('/',auth['isAuthenticated'](),controller[_0x3ac972('0x16')]),router[_0x3ac972('0x2a')](_0x3ac972('0x29'),auth['isAuthenticated'](),controller['bulkCreate']),router['post']('/:id/tags',auth[_0x3ac972('0x5')](),controller[_0x3ac972('0x0')]),router[_0x3ac972('0x2a')](_0x3ac972('0x4'),upload[_0x3ac972('0x25')](_0x3ac972('0xc')),controller['uploadCsv']),router[_0x3ac972('0x2a')](_0x3ac972('0x1f'),upload[_0x3ac972('0x25')](_0x3ac972('0xc')),controller[_0x3ac972('0x23')]),router[_0x3ac972('0x2a')](_0x3ac972('0xd'),auth[_0x3ac972('0x5')](),controller[_0x3ac972('0x2c')]),router[_0x3ac972('0x20')](_0x3ac972('0x14'),auth[_0x3ac972('0x5')](),controller[_0x3ac972('0x26')]),router[_0x3ac972('0x24')]('/:id',auth['isAuthenticated'](),controller[_0x3ac972('0x1b')]),module['exports']=router; \ No newline at end of file +const a131_0x2f19=['/:id','import','root','../../components/auth/service','%s-%s%s','/upload/:id','join','bulkCreate','merge','put','util','/describe','/upload','uploadCsv','now','update','create','delete','./cmContact.controller','express','get','getHoppers','describe','/:id/tags','/:id/hoppers','show','/create_many','post','../../config/environment','/merge','originalname','Router','file','isAuthenticated','upload','/:id/hopper_finals','index','single','/:id/hopper_histories','/csv','extname','format','diskStorage','exports','path'];(function(_0x3d33a6,_0x2f1981){const _0x5a86b9=function(_0x571cc6){while(--_0x571cc6){_0x3d33a6['push'](_0x3d33a6['shift']());}};_0x5a86b9(++_0x2f1981);}(a131_0x2f19,0xbf));const a131_0x5a86=function(_0x3d33a6,_0x2f1981){_0x3d33a6=_0x3d33a6-0x0;let _0x5a86b9=a131_0x2f19[_0x3d33a6];return _0x5a86b9;};const _0x3a9eec=a131_0x5a86;'use strict';const multer=require('multer'),util=require(_0x3a9eec('0x2c')),path=require(_0x3a9eec('0x21')),express=require(_0x3a9eec('0x8')),router=express[_0x3a9eec('0x14')](),auth=require(_0x3a9eec('0x25')),config=require(_0x3a9eec('0x11')),controller=require(_0x3a9eec('0x7')),upload=multer({'storage':multer[_0x3a9eec('0x1f')]({'destination':function(_0x571cc6,_0x29b727,_0x595856){const _0x5cedac=_0x3a9eec;_0x595856(null,path[_0x5cedac('0x28')](config[_0x5cedac('0x24')],'files/tmp'));},'filename':function(_0x104f5b,_0x248f77,_0x121ad3){const _0x523cfe=_0x3a9eec;_0x248f77[_0x523cfe('0x13')]=_0x248f77[_0x523cfe('0x13')]['replace'](/[+@&-/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x121ad3(null,util[_0x523cfe('0x1e')](_0x523cfe('0x26'),path['basename'](_0x248f77[_0x523cfe('0x13')],path[_0x523cfe('0x1d')](_0x248f77['originalname'])),Date[_0x523cfe('0x3')](),path['extname'](_0x248f77[_0x523cfe('0x13')])));}})});router['get']('/',auth[_0x3a9eec('0x16')](),controller[_0x3a9eec('0x19')]),router[_0x3a9eec('0x9')](_0x3a9eec('0x0'),auth[_0x3a9eec('0x16')](),controller[_0x3a9eec('0xb')]),router[_0x3a9eec('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x3a9eec('0xe')]),router[_0x3a9eec('0x9')]('/:id/tags',auth[_0x3a9eec('0x16')](),controller['getTags']),router[_0x3a9eec('0x9')](_0x3a9eec('0xd'),auth[_0x3a9eec('0x16')](),controller[_0x3a9eec('0xa')]),router[_0x3a9eec('0x9')](_0x3a9eec('0x1b'),auth[_0x3a9eec('0x16')](),controller['getHopperHistories']),router[_0x3a9eec('0x9')](_0x3a9eec('0x18'),auth[_0x3a9eec('0x16')](),controller['getHopperFinals']),router['get']('/:id/jscripty_sessions',auth['isAuthenticated'](),controller['getJscriptySessions']),router[_0x3a9eec('0x10')](_0x3a9eec('0x12'),auth['isAuthenticated'](),controller[_0x3a9eec('0x2a')]),router[_0x3a9eec('0x10')]('/',auth[_0x3a9eec('0x16')](),controller[_0x3a9eec('0x5')]),router[_0x3a9eec('0x10')](_0x3a9eec('0xf'),auth[_0x3a9eec('0x16')](),controller[_0x3a9eec('0x29')]),router[_0x3a9eec('0x10')](_0x3a9eec('0xc'),auth[_0x3a9eec('0x16')](),controller['setTags']),router['post'](_0x3a9eec('0x1c'),upload[_0x3a9eec('0x1a')](_0x3a9eec('0x15')),controller[_0x3a9eec('0x2')]),router[_0x3a9eec('0x10')](_0x3a9eec('0x1'),upload[_0x3a9eec('0x1a')](_0x3a9eec('0x15')),controller[_0x3a9eec('0x17')]),router[_0x3a9eec('0x10')](_0x3a9eec('0x27'),auth[_0x3a9eec('0x16')](),controller[_0x3a9eec('0x23')]),router[_0x3a9eec('0x2b')](_0x3a9eec('0x22'),auth[_0x3a9eec('0x16')](),controller[_0x3a9eec('0x4')]),router[_0x3a9eec('0x6')](_0x3a9eec('0x22'),auth[_0x3a9eec('0x16')](),controller['destroy']),module[_0x3a9eec('0x20')]=router; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.attributes.js b/server/api/cmCustomField/cmCustomField.attributes.js index 1c71895..67cf3b5 100644 --- a/server/api/cmCustomField/cmCustomField.attributes.js +++ b/server/api/cmCustomField/cmCustomField.attributes.js @@ -1 +1 @@ -const a132_0x5895=['TEXT','isArray','getDataValue','stringify','VIRTUAL','STRING','select','exports','BOOLEAN','long','ENUM','type','parse','values','setDataValue','voice','alias'];(function(_0x10ad97,_0x5895e2){const _0x7439f8=function(_0x1ea97f){while(--_0x1ea97f){_0x10ad97['push'](_0x10ad97['shift']());}};_0x7439f8(++_0x5895e2);}(a132_0x5895,0x18a));const a132_0x7439=function(_0x10ad97,_0x5895e2){_0x10ad97=_0x10ad97-0x0;let _0x7439f8=a132_0x5895[_0x10ad97];return _0x7439f8;};const _0x206151=a132_0x7439;'use strict';const Sequelize=require('sequelize');module[_0x206151('0x4')]={'name':{'type':Sequelize[_0x206151('0x1')],'get':function(){const _0x498176=_0x206151;return this[_0x498176('0x10')](_0x498176('0xd'));}},'alias':{'type':Sequelize[_0x206151('0x2')],'allowNull':![],'set':function(_0x1ea97f){const _0x53fb0e=_0x206151;this['setDataValue'](_0x53fb0e('0xd'),_0x1ea97f?_0x1ea97f:this[_0x53fb0e('0x10')]('name'));}},'type':{'type':Sequelize[_0x206151('0x2')],'allowNull':![]},'values':{'type':Sequelize[_0x206151('0xe')](_0x206151('0x6')),'get':function(){const _0x8b3203=_0x206151;return this[_0x8b3203('0x10')](_0x8b3203('0x8'))===_0x8b3203('0x3')?JSON[_0x8b3203('0x9')](this[_0x8b3203('0x10')](_0x8b3203('0xa'))):this[_0x8b3203('0x10')](_0x8b3203('0xa'));},'set':function(_0x924466){const _0x51ff81=_0x206151;Array[_0x51ff81('0xf')](_0x924466)?this[_0x51ff81('0xb')]('values',JSON[_0x51ff81('0x0')](_0x924466)):this[_0x51ff81('0xb')]('values',_0x924466);}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x206151('0x5')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x206151('0x7')](_0x206151('0xc'))}}; \ No newline at end of file +const a132_0x27f0=['STRING','getDataValue','BOOLEAN','type','stringify','voice','exports','setDataValue','isArray','alias','ENUM','select','sequelize','long','values','TEXT','name'];(function(_0x28bb41,_0x27f02c){const _0x29fcee=function(_0x8f6ff4){while(--_0x8f6ff4){_0x28bb41['push'](_0x28bb41['shift']());}};_0x29fcee(++_0x27f02c);}(a132_0x27f0,0x74));const a132_0x29fc=function(_0x28bb41,_0x27f02c){_0x28bb41=_0x28bb41-0x0;let _0x29fcee=a132_0x27f0[_0x28bb41];return _0x29fcee;};const _0x203f5d=a132_0x29fc;'use strict';const Sequelize=require(_0x203f5d('0xf'));module[_0x203f5d('0x9')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x2a5637=_0x203f5d;return this['getDataValue'](_0x2a5637('0xc'));}},'alias':{'type':Sequelize[_0x203f5d('0x3')],'allowNull':![],'set':function(_0x8f6ff4){const _0x5e2384=_0x203f5d;this['setDataValue'](_0x5e2384('0xc'),_0x8f6ff4?_0x8f6ff4:this[_0x5e2384('0x4')](_0x5e2384('0x2')));}},'type':{'type':Sequelize[_0x203f5d('0x3')],'allowNull':![]},'values':{'type':Sequelize[_0x203f5d('0x1')](_0x203f5d('0x10')),'get':function(){const _0x18085c=_0x203f5d;return this['getDataValue'](_0x18085c('0x6'))===_0x18085c('0xe')?JSON['parse'](this[_0x18085c('0x4')](_0x18085c('0x0'))):this['getDataValue']('values');},'set':function(_0x3f2a05){const _0x15308b=_0x203f5d;Array[_0x15308b('0xb')](_0x3f2a05)?this[_0x15308b('0xa')](_0x15308b('0x0'),JSON[_0x15308b('0x7')](_0x3f2a05)):this[_0x15308b('0xa')]('values',_0x3f2a05);}},'required':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'clickToAction':{'type':Sequelize[_0x203f5d('0x5')],'defaultValue':![]},'actionType':{'type':Sequelize[_0x203f5d('0xd')](_0x203f5d('0x8'))}}; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.controller.js b/server/api/cmCustomField/cmCustomField.controller.js index 5febac6..9d80da1 100644 --- a/server/api/cmCustomField/cmCustomField.controller.js +++ b/server/api/cmCustomField/cmCustomField.controller.js @@ -1 +1 @@ -const a133_0xf9f6=['attributes','update','query','util','VIRTUAL','fields','key','body','error','defaultValue','BOOLEAN','offset','limit','catch','intersection','filter','format','destroy','TEXT','../../config/logger','end','status','includeAll','api','count','cf_%d','type','include','queryInterface','rawAttributes','findAll','json','index','lodash','../../components/parsers/qs','undefined','where','CmCustomField','create','length','findOne','order','cm_contacts','stack','merge','nolimit','params','map','text','then','sort','number','options','switch','Sequelize','rows','sendStatus','fieldName','keys','sequelize','model','filters','transaction','name'];(function(_0x3d9076,_0xf9f639){const _0xde5d2b=function(_0x1cceb8){while(--_0x1cceb8){_0x3d9076['push'](_0x3d9076['shift']());}};_0xde5d2b(++_0xf9f639);}(a133_0xf9f6,0x16a));const a133_0xde5d=function(_0x3d9076,_0xf9f639){_0x3d9076=_0x3d9076-0x0;let _0xde5d2b=a133_0xf9f6[_0x3d9076];return _0xde5d2b;};const _0x3cf7c4=a133_0xde5d;'use strict';const util=require(_0x3cf7c4('0x19')),_=require(_0x3cf7c4('0x37')),qs=require(_0x3cf7c4('0x38')),logger=require(_0x3cf7c4('0x29'))(_0x3cf7c4('0x2d')),db=require('../../mysqldb')['db'],{Op}=require(_0x3cf7c4('0x11'));function respondWithResult(_0x1cceb8,_0x374bb3){return _0x374bb3=_0x374bb3||0xc8,function(_0x445fc7){const _0x957064=a133_0xde5d;if(_0x445fc7)return _0x1cceb8[_0x957064('0x2b')](_0x374bb3)[_0x957064('0x35')](_0x445fc7);};}function respondWithFilteredResult(_0x120259,_0x5955b6){return function(_0x3a270d){const _0x26a8b4=a133_0xde5d;if(_0x3a270d){const _0x4ffcf4=_0x3a270d[_0x26a8b4('0x2e')],_0x5ab9ba=_0x5955b6[_0x26a8b4('0x21')];let _0x1496ea=_0x5955b6[_0x26a8b4('0x21')]+_0x5955b6[_0x26a8b4('0x22')],_0x2f1f86;return _0x1496ea>=_0x4ffcf4?(_0x1496ea=_0x4ffcf4,_0x2f1f86=0xc8):_0x2f1f86=0xce,_0x120259['status'](_0x2f1f86),_0x120259['set']('Content-Range',_0x5ab9ba+'-'+_0x1496ea+'/'+_0x4ffcf4)['json'](_0x3a270d);}return null;};}function saveUpdates(_0x47989b){return function(_0x2ca606){const _0x2c9484=a133_0xde5d;if(_0x2ca606)return _0x2ca606['update'](_0x47989b)[_0x2c9484('0x7')](function(_0x1a55fd){return _0x1a55fd;});return null;};}function removeEntity(_0x45e9f5){return function(_0x18bb43){if(_0x18bb43)return _0x18bb43['destroy']()['then'](function(){const _0x23cf84=a133_0xde5d;_0x45e9f5[_0x23cf84('0x2b')](0xcc)[_0x23cf84('0x2a')]();});};}function handleEntityNotFound(_0x1e77a1){return function(_0x33e7df){const _0x1fa06d=a133_0xde5d;return!_0x33e7df&&_0x1e77a1[_0x1fa06d('0xe')](0x194),_0x33e7df;};}function handleError(_0x2eda32,_0x2243ac){return _0x2243ac=_0x2243ac||0x1f4,function(_0x34cb5b){const _0x4ec455=a133_0xde5d;logger[_0x4ec455('0x1e')](_0x34cb5b[_0x4ec455('0x1')]),_0x34cb5b[_0x4ec455('0x15')]&&delete _0x34cb5b['name'],_0x2eda32[_0x4ec455('0x2b')](_0x2243ac)['send'](_0x34cb5b);};}exports[_0x3cf7c4('0x36')]=function(_0x48e3ac,_0x43af3f){const _0x3ccdec=_0x3cf7c4;let _0x105bd5={};const _0x4047db={},_0x310f5b={'count':0x0,'rows':[]},_0x49a324=_[_0x3ccdec('0x5')](db[_0x3ccdec('0x3b')]['rawAttributes'],function(_0x779b79){const _0x2ba57f=_0x3ccdec;return{'name':_0x779b79[_0x2ba57f('0xf')],'type':_0x779b79[_0x2ba57f('0x30')][_0x2ba57f('0x1c')]};});_0x4047db[_0x3ccdec('0x12')]=_['differenceBy'](_[_0x3ccdec('0x5')](_0x49a324,'name'),[_0x3ccdec('0x15')]),_0x4047db['query']=_[_0x3ccdec('0x10')](_0x48e3ac[_0x3ccdec('0x18')]),_0x4047db['filters']=_['intersection'](_0x4047db[_0x3ccdec('0x12')],_0x4047db[_0x3ccdec('0x18')]),_0x105bd5['attributes']=_['intersection'](_0x4047db[_0x3ccdec('0x12')],qs[_0x3ccdec('0x1b')](_0x48e3ac[_0x3ccdec('0x18')][_0x3ccdec('0x1b')])),_0x105bd5['attributes']=_0x105bd5[_0x3ccdec('0x16')][_0x3ccdec('0x3d')]?_0x105bd5[_0x3ccdec('0x16')]:_0x4047db['model'];typeof _0x48e3ac[_0x3ccdec('0x18')][_0x3ccdec('0x3')]===_0x3ccdec('0x39')&&(_0x105bd5[_0x3ccdec('0x22')]=qs[_0x3ccdec('0x22')](_0x48e3ac[_0x3ccdec('0x18')][_0x3ccdec('0x22')]),_0x105bd5[_0x3ccdec('0x21')]=qs[_0x3ccdec('0x21')](_0x48e3ac[_0x3ccdec('0x18')][_0x3ccdec('0x21')]));_0x105bd5[_0x3ccdec('0x3f')]=qs['sort'](_0x48e3ac[_0x3ccdec('0x18')][_0x3ccdec('0x8')]),_0x105bd5[_0x3ccdec('0x3a')]=qs['filters'](_['pick'](_0x48e3ac[_0x3ccdec('0x18')],_0x4047db[_0x3ccdec('0x13')]),_0x49a324);_0x48e3ac[_0x3ccdec('0x18')][_0x3ccdec('0x25')]&&(_0x105bd5[_0x3ccdec('0x3a')]=_['merge'](_0x105bd5[_0x3ccdec('0x3a')],{[Op['or']]:_[_0x3ccdec('0x5')](_0x49a324,function(_0x305b09){const _0x1fa2e8=_0x3ccdec;if(_0x305b09[_0x1fa2e8('0x30')]!==_0x1fa2e8('0x1a')){const _0x5b9c0c={};return _0x5b9c0c[_0x305b09[_0x1fa2e8('0x15')]]={[Op['like']]:'%'+_0x48e3ac[_0x1fa2e8('0x18')]['filter']+'%'},_0x5b9c0c;}})}));_0x105bd5=_[_0x3ccdec('0x2')]({},_0x105bd5,_0x48e3ac[_0x3ccdec('0xa')]);const _0x202a82={'where':_0x105bd5['where']};return db[_0x3ccdec('0x3b')]['count'](_0x202a82)[_0x3ccdec('0x7')](function(_0xeead10){const _0x16c62d=_0x3ccdec;return _0x310f5b[_0x16c62d('0x2e')]=_0xeead10,_0x48e3ac[_0x16c62d('0x18')]['includeAll']&&(_0x105bd5['include']=[{'all':!![]}]),db[_0x16c62d('0x3b')][_0x16c62d('0x34')](_0x105bd5);})['then'](function(_0x1efc58){const _0x26ffdd=_0x3ccdec;return _0x310f5b[_0x26ffdd('0xd')]=_0x1efc58,_0x310f5b;})[_0x3ccdec('0x7')](respondWithFilteredResult(_0x43af3f,_0x105bd5))[_0x3ccdec('0x23')](handleError(_0x43af3f,null));},exports['show']=function(_0x23f68e,_0x24c393){const _0x7b8f47=_0x3cf7c4;let _0x1b420c={'raw':!![],'where':{'id':_0x23f68e[_0x7b8f47('0x4')]['id']}};const _0x27147f={};return _0x27147f[_0x7b8f47('0x12')]=_[_0x7b8f47('0x10')](db[_0x7b8f47('0x3b')][_0x7b8f47('0x33')]),_0x27147f['query']=_[_0x7b8f47('0x10')](_0x23f68e[_0x7b8f47('0x18')]),_0x27147f[_0x7b8f47('0x13')]=_[_0x7b8f47('0x24')](_0x27147f[_0x7b8f47('0x12')],_0x27147f[_0x7b8f47('0x18')]),_0x1b420c[_0x7b8f47('0x16')]=_[_0x7b8f47('0x24')](_0x27147f[_0x7b8f47('0x12')],qs[_0x7b8f47('0x1b')](_0x23f68e[_0x7b8f47('0x18')][_0x7b8f47('0x1b')])),_0x1b420c[_0x7b8f47('0x16')]=_0x1b420c['attributes'][_0x7b8f47('0x3d')]?_0x1b420c[_0x7b8f47('0x16')]:_0x27147f[_0x7b8f47('0x12')],_0x23f68e['query'][_0x7b8f47('0x2c')]&&(_0x1b420c[_0x7b8f47('0x31')]=[{'all':!![]}]),_0x1b420c=_[_0x7b8f47('0x2')]({},_0x1b420c,_0x23f68e[_0x7b8f47('0xa')]),db[_0x7b8f47('0x3b')][_0x7b8f47('0x3e')](_0x1b420c)[_0x7b8f47('0x7')](handleEntityNotFound(_0x24c393,null))['then'](respondWithResult(_0x24c393,null))[_0x7b8f47('0x23')](handleError(_0x24c393,null));},exports[_0x3cf7c4('0x17')]=function(_0x597cc6,_0x5814b4){const _0x1f4f16=_0x3cf7c4;return _0x597cc6['body']['id']&&delete _0x597cc6[_0x1f4f16('0x1d')]['id'],db[_0x1f4f16('0x3b')][_0x1f4f16('0x3e')]({'where':{'id':_0x597cc6[_0x1f4f16('0x4')]['id']}})['then'](handleEntityNotFound(_0x5814b4,null))[_0x1f4f16('0x7')](saveUpdates(_0x597cc6[_0x1f4f16('0x1d')],null))['then'](respondWithResult(_0x5814b4,null))[_0x1f4f16('0x23')](handleError(_0x5814b4,null));},exports[_0x3cf7c4('0x27')]=function(_0x22a590,_0x3c5dae){const _0x77259c=_0x3cf7c4;return db[_0x77259c('0x3b')][_0x77259c('0x3e')]({'where':{'id':_0x22a590['params']['id']}})[_0x77259c('0x7')](handleEntityNotFound(_0x3c5dae,null))[_0x77259c('0x7')](removeEntity(_0x3c5dae,null))['catch'](handleError(_0x3c5dae,null));},exports[_0x3cf7c4('0x3c')]=function(_0x5bef15,_0x3ded0c){const _0x195882=_0x3cf7c4;let _0x460ce6;return db[_0x195882('0x11')][_0x195882('0x14')](function(_0xeba403){const _0x40086b=_0x195882;return db[_0x40086b('0x3b')][_0x40086b('0x3c')](_0x5bef15[_0x40086b('0x1d')],{'transaction':_0xeba403})[_0x40086b('0x7')](function(_0x4acac0){const _0x14297d=_0x40086b;_0x460ce6=_0x4acac0;const _0xf32b31={'type':db['Sequelize'][_0x14297d('0x28')],'transaction':_0xeba403};switch(_0x5bef15['body'][_0x14297d('0x30')]){case _0x14297d('0x6'):_0xf32b31[_0x14297d('0x30')]=db[_0x14297d('0xc')][_0x14297d('0x28')];break;case _0x14297d('0x9'):_0xf32b31[_0x14297d('0x30')]=db['Sequelize']['INTEGER'];break;case _0x14297d('0xb'):_0xf32b31[_0x14297d('0x30')]=db[_0x14297d('0xc')][_0x14297d('0x20')],_0xf32b31[_0x14297d('0x1f')]=![];break;default:}return db[_0x14297d('0x11')][_0x14297d('0x32')]['addColumn'](_0x14297d('0x0'),util[_0x14297d('0x26')](_0x14297d('0x2f'),_0x460ce6['id']),_0xf32b31);})[_0x40086b('0x7')](function(){return _0x460ce6;});})[_0x195882('0x7')](respondWithResult(_0x3ded0c,0xc9))[_0x195882('0x23')](handleError(_0x3ded0c,null));}; \ No newline at end of file +const a133_0x4369=['like','model','format','fields','differenceBy','includeAll','stack','query','findOne','TEXT','then','where','sort','json','count','util','length','../../config/logger','Content-Range','nolimit','status','send','../../mysqldb','key','queryInterface','fieldName','filter','findAll','undefined','rows','params','pick','options','destroy','update','defaultValue','transaction','error','name','addColumn','api','limit','CmCustomField','sequelize','switch','attributes','merge','INTEGER','create','catch','rawAttributes','map','keys','show','Sequelize','body','end','intersection','number','type','order','include','filters','offset'];(function(_0x418aed,_0x43699b){const _0x2e634b=function(_0x39ae05){while(--_0x39ae05){_0x418aed['push'](_0x418aed['shift']());}};_0x2e634b(++_0x43699b);}(a133_0x4369,0x16d));const a133_0x2e63=function(_0x418aed,_0x43699b){_0x418aed=_0x418aed-0x0;let _0x2e634b=a133_0x4369[_0x418aed];return _0x2e634b;};const _0x1c6453=a133_0x2e63;'use strict';const util=require(_0x1c6453('0x22')),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x1c6453('0x24'))(_0x1c6453('0x3b')),db=require(_0x1c6453('0x29'))['db'],{Op}=require('sequelize');function respondWithResult(_0x39ae05,_0x32efab){return _0x32efab=_0x32efab||0xc8,function(_0x498ffe){const _0x2f8e25=a133_0x2e63;if(_0x498ffe)return _0x39ae05[_0x2f8e25('0x27')](_0x32efab)[_0x2f8e25('0x20')](_0x498ffe);};}function respondWithFilteredResult(_0xe41d09,_0x12a53d){return function(_0x465903){const _0x5a9fab=a133_0x2e63;if(_0x465903){const _0x4dbf35=_0x465903['count'],_0x542102=_0x12a53d[_0x5a9fab('0x12')];let _0xabdff1=_0x12a53d[_0x5a9fab('0x12')]+_0x12a53d['limit'],_0x27772d;return _0xabdff1>=_0x4dbf35?(_0xabdff1=_0x4dbf35,_0x27772d=0xc8):_0x27772d=0xce,_0xe41d09['status'](_0x27772d),_0xe41d09['set'](_0x5a9fab('0x25'),_0x542102+'-'+_0xabdff1+'/'+_0x4dbf35)[_0x5a9fab('0x20')](_0x465903);}return null;};}function saveUpdates(_0x4529b3){return function(_0x352658){const _0x52ac51=a133_0x2e63;if(_0x352658)return _0x352658[_0x52ac51('0x35')](_0x4529b3)[_0x52ac51('0x1d')](function(_0x1d8d24){return _0x1d8d24;});return null;};}function removeEntity(_0x53b72f){return function(_0x21c943){const _0x278225=a133_0x2e63;if(_0x21c943)return _0x21c943[_0x278225('0x34')]()['then'](function(){const _0x164142=_0x278225;_0x53b72f[_0x164142('0x27')](0xcc)[_0x164142('0xb')]();});};}function handleEntityNotFound(_0x2f4c05){return function(_0x152931){return!_0x152931&&_0x2f4c05['sendStatus'](0x194),_0x152931;};}function handleError(_0x251725,_0x184233){return _0x184233=_0x184233||0x1f4,function(_0x22ae16){const _0x4bcfb0=a133_0x2e63;logger[_0x4bcfb0('0x38')](_0x22ae16[_0x4bcfb0('0x19')]),_0x22ae16[_0x4bcfb0('0x39')]&&delete _0x22ae16['name'],_0x251725['status'](_0x184233)[_0x4bcfb0('0x28')](_0x22ae16);};}exports['index']=function(_0x1c4c90,_0x435df7){const _0x2f668f=_0x1c6453;let _0x4db05c={};const _0x299746={},_0x138396={'count':0x0,'rows':[]},_0x2ac2fa=_[_0x2f668f('0x6')](db[_0x2f668f('0x3d')][_0x2f668f('0x5')],function(_0x27fb3b){const _0x4eff5d=_0x2f668f;return{'name':_0x27fb3b[_0x4eff5d('0x2c')],'type':_0x27fb3b[_0x4eff5d('0xe')][_0x4eff5d('0x2a')]};});_0x299746[_0x2f668f('0x14')]=_[_0x2f668f('0x17')](_[_0x2f668f('0x6')](_0x2ac2fa,_0x2f668f('0x39')),['name']),_0x299746['query']=_[_0x2f668f('0x7')](_0x1c4c90[_0x2f668f('0x1a')]),_0x299746['filters']=_[_0x2f668f('0xc')](_0x299746[_0x2f668f('0x14')],_0x299746['query']),_0x4db05c[_0x2f668f('0x0')]=_[_0x2f668f('0xc')](_0x299746[_0x2f668f('0x14')],qs[_0x2f668f('0x16')](_0x1c4c90[_0x2f668f('0x1a')][_0x2f668f('0x16')])),_0x4db05c[_0x2f668f('0x0')]=_0x4db05c['attributes'][_0x2f668f('0x23')]?_0x4db05c[_0x2f668f('0x0')]:_0x299746[_0x2f668f('0x14')];typeof _0x1c4c90[_0x2f668f('0x1a')][_0x2f668f('0x26')]===_0x2f668f('0x2f')&&(_0x4db05c[_0x2f668f('0x3c')]=qs['limit'](_0x1c4c90['query'][_0x2f668f('0x3c')]),_0x4db05c[_0x2f668f('0x12')]=qs[_0x2f668f('0x12')](_0x1c4c90[_0x2f668f('0x1a')][_0x2f668f('0x12')]));_0x4db05c[_0x2f668f('0xf')]=qs[_0x2f668f('0x1f')](_0x1c4c90['query'][_0x2f668f('0x1f')]),_0x4db05c[_0x2f668f('0x1e')]=qs[_0x2f668f('0x11')](_[_0x2f668f('0x32')](_0x1c4c90[_0x2f668f('0x1a')],_0x299746[_0x2f668f('0x11')]),_0x2ac2fa);_0x1c4c90[_0x2f668f('0x1a')][_0x2f668f('0x2d')]&&(_0x4db05c['where']=_['merge'](_0x4db05c[_0x2f668f('0x1e')],{[Op['or']]:_[_0x2f668f('0x6')](_0x2ac2fa,function(_0x5b5e4a){const _0x1f9634=_0x2f668f;if(_0x5b5e4a[_0x1f9634('0xe')]!=='VIRTUAL'){const _0x7aad1b={};return _0x7aad1b[_0x5b5e4a['name']]={[Op[_0x1f9634('0x13')]]:'%'+_0x1c4c90[_0x1f9634('0x1a')]['filter']+'%'},_0x7aad1b;}})}));_0x4db05c=_[_0x2f668f('0x1')]({},_0x4db05c,_0x1c4c90[_0x2f668f('0x33')]);const _0x7d9fc0={'where':_0x4db05c['where']};return db[_0x2f668f('0x3d')][_0x2f668f('0x21')](_0x7d9fc0)[_0x2f668f('0x1d')](function(_0x47b784){const _0x35d65b=_0x2f668f;return _0x138396['count']=_0x47b784,_0x1c4c90[_0x35d65b('0x1a')][_0x35d65b('0x18')]&&(_0x4db05c[_0x35d65b('0x10')]=[{'all':!![]}]),db['CmCustomField'][_0x35d65b('0x2e')](_0x4db05c);})[_0x2f668f('0x1d')](function(_0x4157d8){const _0x39e77f=_0x2f668f;return _0x138396[_0x39e77f('0x30')]=_0x4157d8,_0x138396;})['then'](respondWithFilteredResult(_0x435df7,_0x4db05c))[_0x2f668f('0x4')](handleError(_0x435df7,null));},exports[_0x1c6453('0x8')]=function(_0x26de2a,_0x1f620e){const _0x4defb6=_0x1c6453;let _0x30bdc2={'raw':!![],'where':{'id':_0x26de2a['params']['id']}};const _0x7b6bf1={};return _0x7b6bf1[_0x4defb6('0x14')]=_[_0x4defb6('0x7')](db[_0x4defb6('0x3d')][_0x4defb6('0x5')]),_0x7b6bf1['query']=_['keys'](_0x26de2a['query']),_0x7b6bf1[_0x4defb6('0x11')]=_[_0x4defb6('0xc')](_0x7b6bf1['model'],_0x7b6bf1['query']),_0x30bdc2[_0x4defb6('0x0')]=_[_0x4defb6('0xc')](_0x7b6bf1[_0x4defb6('0x14')],qs['fields'](_0x26de2a[_0x4defb6('0x1a')]['fields'])),_0x30bdc2[_0x4defb6('0x0')]=_0x30bdc2['attributes'][_0x4defb6('0x23')]?_0x30bdc2[_0x4defb6('0x0')]:_0x7b6bf1[_0x4defb6('0x14')],_0x26de2a[_0x4defb6('0x1a')][_0x4defb6('0x18')]&&(_0x30bdc2['include']=[{'all':!![]}]),_0x30bdc2=_[_0x4defb6('0x1')]({},_0x30bdc2,_0x26de2a[_0x4defb6('0x33')]),db[_0x4defb6('0x3d')][_0x4defb6('0x1b')](_0x30bdc2)[_0x4defb6('0x1d')](handleEntityNotFound(_0x1f620e,null))[_0x4defb6('0x1d')](respondWithResult(_0x1f620e,null))[_0x4defb6('0x4')](handleError(_0x1f620e,null));},exports[_0x1c6453('0x35')]=function(_0x4fe3ab,_0x1d9b31){const _0x352ca8=_0x1c6453;return _0x4fe3ab[_0x352ca8('0xa')]['id']&&delete _0x4fe3ab[_0x352ca8('0xa')]['id'],db[_0x352ca8('0x3d')][_0x352ca8('0x1b')]({'where':{'id':_0x4fe3ab[_0x352ca8('0x31')]['id']}})[_0x352ca8('0x1d')](handleEntityNotFound(_0x1d9b31,null))[_0x352ca8('0x1d')](saveUpdates(_0x4fe3ab[_0x352ca8('0xa')],null))['then'](respondWithResult(_0x1d9b31,null))[_0x352ca8('0x4')](handleError(_0x1d9b31,null));},exports['destroy']=function(_0x2ac8df,_0x493339){const _0x487f3d=_0x1c6453;return db[_0x487f3d('0x3d')][_0x487f3d('0x1b')]({'where':{'id':_0x2ac8df[_0x487f3d('0x31')]['id']}})[_0x487f3d('0x1d')](handleEntityNotFound(_0x493339,null))[_0x487f3d('0x1d')](removeEntity(_0x493339,null))[_0x487f3d('0x4')](handleError(_0x493339,null));},exports['create']=function(_0x3dac78,_0x4a6194){const _0x438924=_0x1c6453;let _0x12e70c;return db[_0x438924('0x3e')][_0x438924('0x37')](function(_0x16e453){const _0x4c3533=_0x438924;return db[_0x4c3533('0x3d')][_0x4c3533('0x3')](_0x3dac78[_0x4c3533('0xa')],{'transaction':_0x16e453})[_0x4c3533('0x1d')](function(_0x1c863c){const _0x31de7d=_0x4c3533;_0x12e70c=_0x1c863c;const _0x4ffabd={'type':db[_0x31de7d('0x9')][_0x31de7d('0x1c')],'transaction':_0x16e453};switch(_0x3dac78['body'][_0x31de7d('0xe')]){case'text':_0x4ffabd[_0x31de7d('0xe')]=db[_0x31de7d('0x9')][_0x31de7d('0x1c')];break;case _0x31de7d('0xd'):_0x4ffabd[_0x31de7d('0xe')]=db['Sequelize'][_0x31de7d('0x2')];break;case _0x31de7d('0x3f'):_0x4ffabd[_0x31de7d('0xe')]=db[_0x31de7d('0x9')]['BOOLEAN'],_0x4ffabd[_0x31de7d('0x36')]=![];break;default:}return db[_0x31de7d('0x3e')][_0x31de7d('0x2b')][_0x31de7d('0x3a')]('cm_contacts',util[_0x31de7d('0x15')]('cf_%d',_0x12e70c['id']),_0x4ffabd);})[_0x4c3533('0x1d')](function(){return _0x12e70c;});})[_0x438924('0x1d')](respondWithResult(_0x4a6194,0xc9))[_0x438924('0x4')](handleError(_0x4a6194,null));}; \ No newline at end of file diff --git a/server/api/cmCustomField/cmCustomField.model.js b/server/api/cmCustomField/cmCustomField.model.js index f9ad277..e556810 100644 --- a/server/api/cmCustomField/cmCustomField.model.js +++ b/server/api/cmCustomField/cmCustomField.model.js @@ -1 +1 @@ -const a134_0x2b08=['cm_custom_fields','define','./cmCustomField.attributes','CmCustomField','exports'];(function(_0x2567a9,_0x2b087a){const _0x1fd45c=function(_0x196ce5){while(--_0x196ce5){_0x2567a9['push'](_0x2567a9['shift']());}};_0x1fd45c(++_0x2b087a);}(a134_0x2b08,0xc0));const a134_0x1fd4=function(_0x2567a9,_0x2b087a){_0x2567a9=_0x2567a9-0x0;let _0x1fd45c=a134_0x2b08[_0x2567a9];return _0x1fd45c;};const _0x3824e6=a134_0x1fd4;'use strict';const attributes=require(_0x3824e6('0x0'));module[_0x3824e6('0x2')]=function(_0x196ce5){const _0xf6b152=_0x3824e6,_0xc4b7d=_0x196ce5[_0xf6b152('0x4')](_0xf6b152('0x1'),attributes,{'tableName':_0xf6b152('0x3'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0xc4b7d;}; \ No newline at end of file +const a134_0x2fe4=['cm_custom_fields','define','CmCustomField','exports'];(function(_0x361d1e,_0x2fe47d){const _0x444195=function(_0x59f78a){while(--_0x59f78a){_0x361d1e['push'](_0x361d1e['shift']());}};_0x444195(++_0x2fe47d);}(a134_0x2fe4,0x1a9));const a134_0x4441=function(_0x361d1e,_0x2fe47d){_0x361d1e=_0x361d1e-0x0;let _0x444195=a134_0x2fe4[_0x361d1e];return _0x444195;};const _0x3ba156=a134_0x4441;'use strict';const attributes=require('./cmCustomField.attributes');module[_0x3ba156('0x2')]=function(_0x59f78a){const _0x5eb3f6=_0x3ba156,_0xe84a64=_0x59f78a[_0x5eb3f6('0x0')](_0x5eb3f6('0x1'),attributes,{'tableName':_0x5eb3f6('0x3'),'paranoid':!![],'indexes':[],'timestamps':!![]});return _0xe84a64;}; \ No newline at end of file diff --git a/server/api/cmCustomField/index.js b/server/api/cmCustomField/index.js index d742cec..5226942 100644 --- a/server/api/cmCustomField/index.js +++ b/server/api/cmCustomField/index.js @@ -1 +1 @@ -const a135_0x3592=['update','destroy','put','/:id','./cmCustomField.controller','isAuthenticated','delete','Router','index','post','../../components/auth/service','show','express'];(function(_0x561afc,_0x35929f){const _0x21606e=function(_0x257ffa){while(--_0x257ffa){_0x561afc['push'](_0x561afc['shift']());}};_0x21606e(++_0x35929f);}(a135_0x3592,0x87));const a135_0x2160=function(_0x561afc,_0x35929f){_0x561afc=_0x561afc-0x0;let _0x21606e=a135_0x3592[_0x561afc];return _0x21606e;};const _0x2774b7=a135_0x2160;'use strict';const express=require(_0x2774b7('0x7')),router=express[_0x2774b7('0x2')](),auth=require(_0x2774b7('0x5')),controller=require(_0x2774b7('0xc'));router['get']('/',auth[_0x2774b7('0x0')](),controller[_0x2774b7('0x3')]),router['get'](_0x2774b7('0xb'),auth['isAuthenticated'](),controller[_0x2774b7('0x6')]),router[_0x2774b7('0x4')]('/',auth[_0x2774b7('0x0')](),controller['create']),router[_0x2774b7('0xa')]('/:id',auth[_0x2774b7('0x0')](),controller[_0x2774b7('0x8')]),router[_0x2774b7('0x1')](_0x2774b7('0xb'),auth['isAuthenticated'](),controller[_0x2774b7('0x9')]),module['exports']=router; \ No newline at end of file +const a135_0x58c1=['delete','post','exports','../../components/auth/service','show','index','/:id','update','create','destroy','get','Router','isAuthenticated'];(function(_0x2ec1ff,_0x58c17f){const _0xba80d3=function(_0x514117){while(--_0x514117){_0x2ec1ff['push'](_0x2ec1ff['shift']());}};_0xba80d3(++_0x58c17f);}(a135_0x58c1,0x95));const a135_0xba80=function(_0x2ec1ff,_0x58c17f){_0x2ec1ff=_0x2ec1ff-0x0;let _0xba80d3=a135_0x58c1[_0x2ec1ff];return _0xba80d3;};const _0x9f5ab7=a135_0xba80;'use strict';const express=require('express'),router=express[_0x9f5ab7('0x5')](),auth=require(_0x9f5ab7('0xa')),controller=require('./cmCustomField.controller');router[_0x9f5ab7('0x4')]('/',auth['isAuthenticated'](),controller[_0x9f5ab7('0xc')]),router[_0x9f5ab7('0x4')](_0x9f5ab7('0x0'),auth[_0x9f5ab7('0x6')](),controller[_0x9f5ab7('0xb')]),router[_0x9f5ab7('0x8')]('/',auth[_0x9f5ab7('0x6')](),controller[_0x9f5ab7('0x2')]),router['put'](_0x9f5ab7('0x0'),auth[_0x9f5ab7('0x6')](),controller[_0x9f5ab7('0x1')]),router[_0x9f5ab7('0x7')](_0x9f5ab7('0x0'),auth[_0x9f5ab7('0x6')](),controller[_0x9f5ab7('0x3')]),module[_0x9f5ab7('0x9')]=router; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.attributes.js b/server/api/cmHopper/cmHopper.attributes.js index d9e4a1d..744a585 100644 --- a/server/api/cmHopper/cmHopper.attributes.js +++ b/server/api/cmHopper/cmHopper.attributes.js @@ -1 +1 @@ -const a136_0x2721=['INTEGER','BOOLEAN','YYYY-MM-DD\x20HH:mm:ss','moment','STRING','DATE','contactListQueue','UNSIGNED','sequelize','format'];(function(_0x308797,_0x2721ef){const _0x2f62eb=function(_0x23338a){while(--_0x23338a){_0x308797['push'](_0x308797['shift']());}};_0x2f62eb(++_0x2721ef);}(a136_0x2721,0x138));const a136_0x2f62=function(_0x308797,_0x2721ef){_0x308797=_0x308797-0x0;let _0x2f62eb=a136_0x2721[_0x308797];return _0x2f62eb;};const _0x3473cf=a136_0x2f62;'use strict';const moment=require(_0x3473cf('0x1')),Sequelize=require(_0x3473cf('0x6'));module['exports']={'phone':{'type':Sequelize[_0x3473cf('0x2')],'allowNull':![]},'active':{'type':Sequelize[_0x3473cf('0x9')],'defaultValue':![]},'scheduledat':{'type':Sequelize[_0x3473cf('0x3')],'defaultValue':moment()[_0x3473cf('0x7')](_0x3473cf('0x0'))},'countbusyretry':{'type':Sequelize[_0x3473cf('0x8')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x3473cf('0x8')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x3473cf('0x8')],'defaultValue':0x0},'callback':{'type':Sequelize[_0x3473cf('0x9')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x3473cf('0x2')],'defaultValue':null},'callbackat':{'type':Sequelize['DATE']},'priority':{'type':Sequelize[_0x3473cf('0x8')](0x2)[_0x3473cf('0x5')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize[_0x3473cf('0x9')],'defaultValue':![]},'ContactId':{'type':Sequelize[_0x3473cf('0x8')],'unique':_0x3473cf('0x4')},'ListId':{'type':Sequelize[_0x3473cf('0x8')],'unique':_0x3473cf('0x4')},'UserId':{'type':Sequelize[_0x3473cf('0x8')]},'VoiceQueueId':{'type':Sequelize[_0x3473cf('0x8')],'unique':_0x3473cf('0x4')},'CampaignId':{'type':Sequelize[_0x3473cf('0x8')]},'countnosuchnumberretry':{'type':Sequelize[_0x3473cf('0x8')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x3473cf('0x8')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x3473cf('0x8')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x3473cf('0x8')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x3473cf('0x8')],'defaultValue':0x0}}; \ No newline at end of file +const a136_0x5099=['STRING','exports','INTEGER','contactListQueue','moment','format','sequelize','DATE','UNSIGNED','BOOLEAN'];(function(_0x507fd3,_0x50998f){const _0x158740=function(_0x39d365){while(--_0x39d365){_0x507fd3['push'](_0x507fd3['shift']());}};_0x158740(++_0x50998f);}(a136_0x5099,0x9b));const a136_0x1587=function(_0x507fd3,_0x50998f){_0x507fd3=_0x507fd3-0x0;let _0x158740=a136_0x5099[_0x507fd3];return _0x158740;};const _0x497fc4=a136_0x1587;'use strict';const moment=require(_0x497fc4('0x9')),Sequelize=require(_0x497fc4('0x1'));module[_0x497fc4('0x6')]={'phone':{'type':Sequelize['STRING'],'allowNull':![]},'active':{'type':Sequelize[_0x497fc4('0x4')],'defaultValue':![]},'scheduledat':{'type':Sequelize[_0x497fc4('0x2')],'defaultValue':moment()[_0x497fc4('0x0')]('YYYY-MM-DD\x20HH:mm:ss')},'countbusyretry':{'type':Sequelize[_0x497fc4('0x7')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x497fc4('0x7')],'defaultValue':0x0},'callback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x497fc4('0x5')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x497fc4('0x2')]},'priority':{'type':Sequelize['INTEGER'](0x2)[_0x497fc4('0x3')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}},'recallme':{'type':Sequelize[_0x497fc4('0x4')],'defaultValue':![]},'ContactId':{'type':Sequelize[_0x497fc4('0x7')],'unique':_0x497fc4('0x8')},'ListId':{'type':Sequelize[_0x497fc4('0x7')],'unique':_0x497fc4('0x8')},'UserId':{'type':Sequelize[_0x497fc4('0x7')]},'VoiceQueueId':{'type':Sequelize[_0x497fc4('0x7')],'unique':_0x497fc4('0x8')},'CampaignId':{'type':Sequelize['INTEGER']},'countnosuchnumberretry':{'type':Sequelize[_0x497fc4('0x7')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x497fc4('0x7')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x497fc4('0x7')],'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 1e2363f..3018941 100644 --- a/server/api/cmHopper/cmHopper.controller.js +++ b/server/api/cmHopper/cmHopper.controller.js @@ -1 +1 @@ -const a137_0x55f2=['$overlap','CmHopperFinal','limit','body','api','finally','$or','params','CmContact','key','destroy','lte','json','filters','query','firstName','undefined','model','$in','../../mysqldb','dialActive','pick','outbound','getVoiceQueues','sendStatus','$gte','hopperIds','CmHopper,\x20%s,\x20%s,\x20%s','$ne','rawAttributes','$not','length','fieldName','$contained','then','$like','moment','omit','Content-Range','update','calleridname','create','List','includeAll','CmHopper','filter','$eq','intersection','$iLike','send','COALESCE(CmHopper.UserId,\x200)\x20DESC','isNumber','$lt','Company','$notIn','ASC','COALESCE(CmHopper.UserId,\x200)\x20ASC','index','queue','order','type','priority','preview','sequelize','LOCK','fields','attributes','scheduledat','$notLike','show','end','catch','CmList','keys','isEmpty','lodash','YYYY-MM-DD\x20HH:mm:ss','findOne','lastName','nolimit','$notBetween','CampaignId','campaigntype','ContactId','Contact','DESC','getOpenContacts','offset','count','VoiceQueueId','scheduledAt','status','name','format','concat','options','deleted','campaign','VIRTUAL','sort','direction','describe','rows','membername','dialOrderByScheduledAt','VoiceQueue','../../config/logger','merge','user','map','isNil','calleridnum','error','where','UserId'];(function(_0x37f726,_0x55f28a){const _0x403481=function(_0x289e17){while(--_0x289e17){_0x37f726['push'](_0x37f726['shift']());}};_0x403481(++_0x55f28a);}(a137_0x55f2,0x193));const a137_0x4034=function(_0x37f726,_0x55f28a){_0x37f726=_0x37f726-0x0;let _0x403481=a137_0x55f2[_0x37f726];return _0x403481;};const _0x46e3a7=a137_0x4034;'use strict';const moment=require(_0x46e3a7('0x5d')),_=require(_0x46e3a7('0x11')),qs=require('../../components/parsers/qs'),logger=require(_0x46e3a7('0x30'))(_0x46e3a7('0x3d')),db=require(_0x46e3a7('0x4c'))['db'],{Op,literal}=require(_0x46e3a7('0x5'));function respondWithResult(_0x289e17,_0x3523a3){return _0x3523a3=_0x3523a3||0xc8,function(_0x9226c){const _0x5466e6=a137_0x4034;if(_0x9226c)return _0x289e17['status'](_0x3523a3)[_0x5466e6('0x45')](_0x9226c);};}function respondWithFilteredResult(_0x5c8bfd,_0x1c65e9){return function(_0x4bf10b){const _0x3d6a07=a137_0x4034;if(_0x4bf10b){const _0x52bb5d=_0x4bf10b[_0x3d6a07('0x1e')],_0xdbac1e=_0x1c65e9[_0x3d6a07('0x1d')];let _0xc7cc61=_0x1c65e9[_0x3d6a07('0x1d')]+_0x1c65e9[_0x3d6a07('0x3b')],_0x209643;return _0xc7cc61>=_0x52bb5d?(_0xc7cc61=_0x52bb5d,_0x209643=0xc8):_0x209643=0xce,_0x5c8bfd[_0x3d6a07('0x21')](_0x209643),_0x5c8bfd['set'](_0x3d6a07('0x5f'),_0xdbac1e+'-'+_0xc7cc61+'/'+_0x52bb5d)[_0x3d6a07('0x45')](_0x4bf10b);}return null;};}function saveUpdates(_0x53a7cd){return function(_0x4f4de2){const _0x345032=a137_0x4034;if(_0x4f4de2)return _0x4f4de2[_0x345032('0x60')](_0x53a7cd)[_0x345032('0x5b')](function(_0x4107d1){return _0x4107d1;});return null;};}function handleEntityNotFound(_0x4d9d4f){return function(_0x400680){const _0x4f2149=a137_0x4034;return!_0x400680&&_0x4d9d4f[_0x4f2149('0x51')](0x194),_0x400680;};}function handleError(_0x19c30d,_0x3849c3){return _0x3849c3=_0x3849c3||0x1f4,function(_0x43332f){const _0x2e12a7=a137_0x4034;logger['error'](_0x43332f['stack']),_0x43332f['name']&&delete _0x43332f['name'],_0x19c30d['status'](_0x3849c3)[_0x2e12a7('0x6a')](_0x43332f);};}exports[_0x46e3a7('0x72')]=function(_0x533f36,_0x58bee6){const _0x429936=_0x46e3a7;let _0x17e004={};const _0x243177={},_0x56fd8e={'count':0x0,'rows':[]},_0xbf13fc=_[_0x429936('0x33')](db[_0x429936('0x65')][_0x429936('0x56')],function(_0x568fdc){const _0x54b2df=_0x429936;return{'name':_0x568fdc[_0x54b2df('0x59')],'type':_0x568fdc[_0x54b2df('0x2')][_0x54b2df('0x42')]};});_0x243177[_0x429936('0x4a')]=_[_0x429936('0x33')](_0xbf13fc,_0x429936('0x22')),_0x243177[_0x429936('0x47')]=_[_0x429936('0xf')](_0x533f36[_0x429936('0x47')]),_0x243177[_0x429936('0x46')]=_[_0x429936('0x68')](_0x243177[_0x429936('0x4a')],_0x243177[_0x429936('0x47')]),_0x243177[_0x429936('0x46')]=_[_0x429936('0x24')](_0x243177[_0x429936('0x46')],['$and',_0x429936('0x3f'),'$gt',_0x429936('0x52'),_0x429936('0x6d'),'$lte',_0x429936('0x55'),_0x429936('0x67'),_0x429936('0x57'),'$between',_0x429936('0x16'),_0x429936('0x4b'),_0x429936('0x6f'),_0x429936('0x5c'),_0x429936('0xa'),_0x429936('0x69'),'$notILike','$like',_0x429936('0x39'),'$contains',_0x429936('0x5a'),'$any']),_0x17e004[_0x429936('0x8')]=_['intersection'](_0x243177[_0x429936('0x4a')],qs[_0x429936('0x7')](_0x533f36[_0x429936('0x47')][_0x429936('0x7')])),_0x17e004[_0x429936('0x8')]=_0x17e004[_0x429936('0x8')][_0x429936('0x58')]?_0x17e004[_0x429936('0x8')]:_0x243177[_0x429936('0x4a')];typeof _0x533f36[_0x429936('0x47')][_0x429936('0x15')]===_0x429936('0x49')&&(_0x17e004[_0x429936('0x3b')]=qs[_0x429936('0x3b')](_0x533f36[_0x429936('0x47')][_0x429936('0x3b')]),_0x17e004['offset']=qs['offset'](_0x533f36[_0x429936('0x47')]['offset']));_0x17e004[_0x429936('0x1')]=qs[_0x429936('0x29')](_0x533f36[_0x429936('0x47')][_0x429936('0x29')]),_0x17e004[_0x429936('0x37')]=qs['filters'](_[_0x429936('0x4e')](_0x533f36[_0x429936('0x47')],_0x243177[_0x429936('0x46')]),_0xbf13fc);_0x533f36[_0x429936('0x47')]['filter']&&(_0x17e004['where']=_[_0x429936('0x31')](_0x17e004[_0x429936('0x37')],{[Op['or']]:_[_0x429936('0x33')](_0xbf13fc,function(_0x4479e2){const _0x3f538b=_0x429936;if(_0x4479e2['type']!==_0x3f538b('0x28')){const _0xa7544b={};return _0xa7544b[_0x4479e2[_0x3f538b('0x22')]]={[Op['like']]:'%'+_0x533f36[_0x3f538b('0x47')][_0x3f538b('0x66')]+'%'},_0xa7544b;}})}));_0x17e004=_['merge']({},_0x17e004,_0x533f36[_0x429936('0x25')]);const _0x52735e={'where':_0x17e004[_0x429936('0x37')]};return db[_0x429936('0x65')][_0x429936('0x1e')](_0x52735e)[_0x429936('0x5b')](function(_0x11ac01){const _0x39547f=_0x429936;return _0x56fd8e[_0x39547f('0x1e')]=_0x11ac01,_0x533f36[_0x39547f('0x47')][_0x39547f('0x64')]&&(_0x17e004['include']=[{'all':!![]}]),db[_0x39547f('0x65')]['findAll'](_0x17e004);})['then'](function(_0x34b017){const _0x21e520=_0x429936;return _0x56fd8e[_0x21e520('0x2c')]=_0x34b017,_0x56fd8e;})[_0x429936('0x5b')](respondWithFilteredResult(_0x58bee6,_0x17e004))[_0x429936('0xd')](handleError(_0x58bee6,null));},exports[_0x46e3a7('0xb')]=function(_0x3b7051,_0xc152eb){const _0xac3fe4=_0x46e3a7;let _0x45efae={'raw':!![],'where':{'id':_0x3b7051[_0xac3fe4('0x40')]['id']}};const _0x343622={};return _0x343622['model']=_[_0xac3fe4('0xf')](db['CmHopper'][_0xac3fe4('0x56')]),_0x343622[_0xac3fe4('0x47')]=_[_0xac3fe4('0xf')](_0x3b7051[_0xac3fe4('0x47')]),_0x343622[_0xac3fe4('0x46')]=_[_0xac3fe4('0x68')](_0x343622[_0xac3fe4('0x4a')],_0x343622[_0xac3fe4('0x47')]),_0x45efae[_0xac3fe4('0x8')]=_[_0xac3fe4('0x68')](_0x343622[_0xac3fe4('0x4a')],qs[_0xac3fe4('0x7')](_0x3b7051['query'][_0xac3fe4('0x7')])),_0x45efae[_0xac3fe4('0x8')]=_0x45efae[_0xac3fe4('0x8')][_0xac3fe4('0x58')]?_0x45efae[_0xac3fe4('0x8')]:_0x343622[_0xac3fe4('0x4a')],_0x3b7051['query'][_0xac3fe4('0x64')]&&(_0x45efae['include']=[{'all':!![]}]),_0x45efae=_['merge']({},_0x45efae,_0x3b7051['options']),db[_0xac3fe4('0x65')][_0xac3fe4('0x13')](_0x45efae)['then'](handleEntityNotFound(_0xc152eb,null))['then'](respondWithResult(_0xc152eb,null))['catch'](handleError(_0xc152eb,null));},exports[_0x46e3a7('0x62')]=function(_0x5c9a76,_0x28eaac){const _0x35a089=_0x46e3a7;return db[_0x35a089('0x65')]['create'](_0x5c9a76['body'],{})['then'](respondWithResult(_0x28eaac,0xc9))[_0x35a089('0xd')](handleError(_0x28eaac,null));},exports[_0x46e3a7('0x60')]=function(_0x83932,_0x472458){const _0x2490a9=_0x46e3a7;return _0x83932[_0x2490a9('0x3c')]['id']&&delete _0x83932[_0x2490a9('0x3c')]['id'],db[_0x2490a9('0x65')][_0x2490a9('0x13')]({'where':{'id':_0x83932[_0x2490a9('0x40')]['id']}})['then'](handleEntityNotFound(_0x472458,null))[_0x2490a9('0x5b')](saveUpdates(_0x83932['body'],null))['then'](respondWithResult(_0x472458,null))[_0x2490a9('0xd')](handleError(_0x472458,null));},exports['describe']=function(_0x29a13d,_0x5ae84c){const _0x2b9817=_0x46e3a7;return db[_0x2b9817('0x65')][_0x2b9817('0x2b')]()['then'](respondWithResult(_0x5ae84c,null))['catch'](handleError(_0x5ae84c,null));},exports[_0x46e3a7('0x43')]=function(_0x26bd9d,_0x538861){const _0xa91004=_0x46e3a7;let _0x25ff70;return db[_0xa91004('0x65')][_0xa91004('0x13')]({'where':{'id':_0x26bd9d[_0xa91004('0x40')]['id']}})['then'](handleEntityNotFound(_0x538861,null))[_0xa91004('0x5b')](function(_0x4148bc){const _0x7501ec=_0xa91004;if(_0x4148bc)return _0x4148bc[_0x7501ec('0x43')]()[_0x7501ec('0x5b')](function(_0x4a5e54){return _0x4a5e54;});})[_0xa91004('0x5b')](function(_0x19555a){const _0x15ab1a=_0xa91004;_0x25ff70=_0x19555a;if(_0x19555a){if(_0x19555a[_0x15ab1a('0x1f')]||_0x19555a[_0x15ab1a('0x17')])return db[_0x19555a['VoiceQueueId']?_0x15ab1a('0x2f'):'Campaign'][_0x15ab1a('0x13')]({'where':{'id':_0x19555a[_0x15ab1a('0x1f')]?_0x19555a[_0x15ab1a('0x1f')]:_0x19555a[_0x15ab1a('0x17')]},'attributes':['id',_0x15ab1a('0x22')],'raw':!![]});}})[_0xa91004('0x5b')](function(_0xaa832e){const _0x5c34ef=_0xa91004,_0x28d73a={};if(_0xaa832e)return _[_0x5c34ef('0x31')](_0x28d73a,_[_0x5c34ef('0x5e')](_0x25ff70['dataValues'],['createdAt','updatedAt','id'])),_0x28d73a['state']=0x15,_0x28d73a['statedesc']='deleted',_0x28d73a[_0x5c34ef('0x27')]=_0xaa832e[_0x5c34ef('0x22')],_0x28d73a[_0x5c34ef('0x2d')]=_0x26bd9d[_0x5c34ef('0x32')][_0x5c34ef('0x22')],_0x28d73a[_0x5c34ef('0x38')]=_0x26bd9d[_0x5c34ef('0x32')]['id'],_0x28d73a[_0x5c34ef('0x26')]=!![],_0x28d73a['deletedat']=moment()[_0x5c34ef('0x23')](_0x5c34ef('0x12')),_0x28d73a[_0x5c34ef('0x35')]=_0x25ff70['phone'],_0x28d73a[_0x5c34ef('0x18')]=_0x25ff70[_0x5c34ef('0x1f')]?_0x5c34ef('0x0'):'ivr',db['CmContac'][_0x5c34ef('0x13')]({'where':{'id':_0x28d73a[_0x5c34ef('0x19')]},'attributes':[_0x5c34ef('0x48'),_0x5c34ef('0x14')]})[_0x5c34ef('0x5b')](function(_0x42e0c9){const _0x4627d4=_0x5c34ef;!_[_0x4627d4('0x34')](_0x538861)&&!_[_0x4627d4('0x34')](_0x42e0c9['firstName'])&&(_0x28d73a[_0x4627d4('0x61')]=_0x42e0c9['firstName'],!_[_0x4627d4('0x34')](_0x42e0c9[_0x4627d4('0x14')])&&(_0x28d73a[_0x4627d4('0x61')]+='\x20'+_0x42e0c9[_0x4627d4('0x14')]));})[_0x5c34ef('0x3e')](function(){const _0x71c5c0=_0x5c34ef;return db[_0x71c5c0('0x3a')][_0x71c5c0('0x62')](_0x28d73a);});})[_0xa91004('0x5b')](function(){const _0x8aa88e=_0xa91004;return _0x538861[_0x8aa88e('0x21')](0xcc)[_0x8aa88e('0xc')]();})[_0xa91004('0xd')](handleError(_0x538861,null));},exports['getPreview']=function(_0x3f2ec7,_0x1e3eda){const _0x1a2f25=_0x46e3a7;let _0x4fbd9a=[];return db[_0x1a2f25('0x41')]['describe']()['then'](function(_0x1925bd){const _0x5cb65e=_0x1a2f25;return _0x4fbd9a=_[_0x5cb65e('0xf')](_0x1925bd),_0x3f2ec7[_0x5cb65e('0x32')][_0x5cb65e('0x50')]({'where':{'type':_0x5cb65e('0x4f'),'dialActive':!![],'dialMethod':_0x5cb65e('0x4')},'attributes':['id',_0x5cb65e('0x2e')],'raw':!![]});})[_0x1a2f25('0x5b')](function(_0x44fd47){const _0x2bfbd1=_0x1a2f25;if(_0x44fd47&&_0x44fd47[_0x2bfbd1('0x58')])return db[_0x2bfbd1('0x5')]['transaction'](function(_0x104514){const _0x32e0fb=_0x2bfbd1,_0x52e2e5={'active':![],'recallme':![],'scheduledAt':{[Op[_0x32e0fb('0x44')]]:moment()[_0x32e0fb('0x23')](_0x32e0fb('0x12'))},'VoiceQueueId':{[Op['in']]:_[_0x32e0fb('0x33')](_0x44fd47,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x3f2ec7[_0x32e0fb('0x32')]['id']}]};let _0x277d9a=[];return _0x3f2ec7[_0x32e0fb('0x3c')][_0x32e0fb('0x2a')]&&_0x3f2ec7[_0x32e0fb('0x3c')][_0x32e0fb('0x2a')]==='prev'?(!_[_0x32e0fb('0x10')](_0x3f2ec7[_0x32e0fb('0x3c')][_0x32e0fb('0x53')])&&(_0x52e2e5['id']={'$in':_0x3f2ec7[_0x32e0fb('0x3c')]['hopperIds']}),_0x277d9a=[[_0x32e0fb('0x3'),_0x32e0fb('0x70')],[_0x32e0fb('0x20'),_0x44fd47[0x0][_0x32e0fb('0x2e')]===_0x32e0fb('0x70')?'DESC':'ASC'],literal(_0x32e0fb('0x71')),['id',_0x32e0fb('0x1b')]]):(!_[_0x32e0fb('0x10')](_0x3f2ec7[_0x32e0fb('0x3c')][_0x32e0fb('0x53')])&&(_0x52e2e5['id']={'$notIn':_0x3f2ec7['body']['hopperIds']}),_0x277d9a=[[_0x32e0fb('0x3'),_0x32e0fb('0x1b')],[_0x32e0fb('0x20'),_0x44fd47[0x0][_0x32e0fb('0x2e')]],literal(_0x32e0fb('0x6b')),['id',_0x32e0fb('0x70')]]),db[_0x32e0fb('0x65')][_0x32e0fb('0x13')]({'attributes':['id',_0x32e0fb('0x9')],'where':_0x52e2e5,'order':_0x277d9a,'transaction':_0x104514,'lock':_0x104514[_0x32e0fb('0x6')]['UPDATE'],'include':[{'model':db[_0x32e0fb('0x41')],'as':_0x32e0fb('0x1a'),'attributes':_0x4fbd9a,'include':[{'model':db['CmCompany'],'as':_0x32e0fb('0x6e'),'attributes':['id',_0x32e0fb('0x22')]}]},{'model':db[_0x32e0fb('0xe')],'as':_0x32e0fb('0x63'),'attributes':['id','name']},{'model':db[_0x32e0fb('0x2f')],'as':'Queue','attributes':['id','name',_0x32e0fb('0x4d')]}]})[_0x32e0fb('0x5b')](function(_0xbc572a){const _0x1962a7=_0x32e0fb;if(_0xbc572a)return _0xbc572a[_0x1962a7('0x60')]({'UserId':_0x3f2ec7[_0x1962a7('0x32')]['id']},{'transaction':_0x104514});});});})[_0x1a2f25('0x5b')](handleEntityNotFound(_0x1e3eda,null))[_0x1a2f25('0x5b')](respondWithResult(_0x1e3eda,null))[_0x1a2f25('0xd')](handleError(_0x1e3eda,null));},exports['getOpenContacts']=function(_0x39dca0,_0x38dd86){const _0x1a03c1=_0x46e3a7;return _0x39dca0[_0x1a03c1('0x32')][_0x1a03c1('0x50')]({'where':{'type':_0x1a03c1('0x4f'),'dialActive':!![],'dialMethod':_0x1a03c1('0x4')},'attributes':['id'],'raw':!![]})[_0x1a03c1('0x5b')](function(_0x2b46de){const _0x43262a=_0x1a03c1;if(_0x2b46de&&_0x2b46de[_0x43262a('0x58')])return db['CmHopper'][_0x43262a('0x1e')]({'where':{'active':![],'recallme':![],'scheduledAt':{[Op[_0x43262a('0x44')]]:moment()['format']('YYYY-MM-DD\x20HH:mm:ss')},'VoiceQueueId':{[Op['in']]:_['map'](_0x2b46de,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x39dca0[_0x43262a('0x32')]['id']}]}});return 0x0;})[_0x1a03c1('0x5b')](function(_0x550c4c){const _0x3ab64f=_0x1a03c1;if(!_[_0x3ab64f('0x34')](_0x550c4c)&&_[_0x3ab64f('0x6c')](_0x550c4c))return _0x38dd86[_0x3ab64f('0x21')](0xc8)[_0x3ab64f('0x45')]({'contacts':_0x550c4c});else logger[_0x3ab64f('0x36')](_0x3ab64f('0x54'),_0x3ab64f('0x1c'),0x194,'entity\x20not\x20found'),_0x38dd86[_0x3ab64f('0x51')](0x194);})['catch'](handleError(_0x38dd86,null));}; \ No newline at end of file +const a137_0x5cd3=['../../mysqldb','findAll','show','includeAll','$overlap','scheduledAt','UPDATE','filters','outbound','deleted','isEmpty','direction','$and','omit','calleridnum','priority','length','key','isNil','ContactId','undefined','rawAttributes','$notLike','query','isNumber','offset','prev','YYYY-MM-DD\x20HH:mm:ss','json','$ne','lastName','$not','findOne','preview','Content-Range','type','then','create','lte','$notBetween','getVoiceQueues','CmList','nolimit','VoiceQueueId','DESC','ivr','campaign','index','fieldName','Campaign','LOCK','merge','$like','intersection','moment','dialActive','hopperIds','params','$iLike','state','sendStatus','model','dataValues','getOpenContacts','map','error','filter','count','where','sequelize','VoiceQueue','../../config/logger','updatedAt','campaigntype','like','pick','stack','CmHopper','transaction','$in','name','statedesc','format','set','$gte','dialOrderByScheduledAt','destroy','calleridname','CmContac','phone','send','options','status','$notILike','catch','body','include','COALESCE(CmHopper.UserId,\x200)\x20DESC','CampaignId','CmCompany','$between','ASC','$lt','concat','createdAt','update','firstName','getPreview','describe','order','keys','rows','attributes','user','CmContact','sort','limit','$notIn','CmHopperFinal','$gt','Contact','fields','$lte','Company'];(function(_0x2f10b0,_0x5cd399){const _0x196af8=function(_0x1a9ea9){while(--_0x1a9ea9){_0x2f10b0['push'](_0x2f10b0['shift']());}};_0x196af8(++_0x5cd399);}(a137_0x5cd3,0xff));const a137_0x196a=function(_0x2f10b0,_0x5cd399){_0x2f10b0=_0x2f10b0-0x0;let _0x196af8=a137_0x5cd3[_0x2f10b0];return _0x196af8;};const _0x277f9a=a137_0x196a;'use strict';const moment=require(_0x277f9a('0x2f')),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x277f9a('0x40'))('api'),db=require(_0x277f9a('0x75'))['db'],{Op,literal}=require(_0x277f9a('0x3e'));function respondWithResult(_0x1a9ea9,_0x4a510e){return _0x4a510e=_0x4a510e||0xc8,function(_0x227413){const _0x59e35f=a137_0x196a;if(_0x227413)return _0x1a9ea9['status'](_0x4a510e)[_0x59e35f('0x15')](_0x227413);};}function respondWithFilteredResult(_0x23ef6a,_0x58b99d){return function(_0x5487a4){const _0xd22e7c=a137_0x196a;if(_0x5487a4){const _0x360be8=_0x5487a4[_0xd22e7c('0x3c')],_0x47f545=_0x58b99d['offset'];let _0x3899cb=_0x58b99d[_0xd22e7c('0x12')]+_0x58b99d[_0xd22e7c('0x6d')],_0x47d99e;return _0x3899cb>=_0x360be8?(_0x3899cb=_0x360be8,_0x47d99e=0xc8):_0x47d99e=0xce,_0x23ef6a[_0xd22e7c('0x55')](_0x47d99e),_0x23ef6a[_0xd22e7c('0x4c')](_0xd22e7c('0x1b'),_0x47f545+'-'+_0x3899cb+'/'+_0x360be8)[_0xd22e7c('0x15')](_0x5487a4);}return null;};}function saveUpdates(_0x5c079c){return function(_0x5c5e79){const _0x5bc690=a137_0x196a;if(_0x5c5e79)return _0x5c5e79[_0x5bc690('0x62')](_0x5c079c)[_0x5bc690('0x1d')](function(_0x2f17a7){return _0x2f17a7;});return null;};}function handleEntityNotFound(_0x31a56c){return function(_0x274259){const _0x4f6032=a137_0x196a;return!_0x274259&&_0x31a56c[_0x4f6032('0x35')](0x194),_0x274259;};}function handleError(_0x5b6805,_0x4fc4a5){return _0x4fc4a5=_0x4fc4a5||0x1f4,function(_0x1c40a0){const _0x4f5fb6=a137_0x196a;logger[_0x4f5fb6('0x3a')](_0x1c40a0[_0x4f5fb6('0x45')]),_0x1c40a0[_0x4f5fb6('0x49')]&&delete _0x1c40a0['name'],_0x5b6805[_0x4f5fb6('0x55')](_0x4fc4a5)[_0x4f5fb6('0x53')](_0x1c40a0);};}exports[_0x277f9a('0x28')]=function(_0x2b81cd,_0x5814c9){const _0x5ab02b=_0x277f9a;let _0x459dac={};const _0x4f2aa5={},_0xeca1a5={'count':0x0,'rows':[]},_0x48beb9=_[_0x5ab02b('0x39')](db[_0x5ab02b('0x46')][_0x5ab02b('0xe')],function(_0x418e1d){const _0x4dc91f=_0x5ab02b;return{'name':_0x418e1d[_0x4dc91f('0x29')],'type':_0x418e1d['type'][_0x4dc91f('0xa')]};});_0x4f2aa5[_0x5ab02b('0x36')]=_['map'](_0x48beb9,_0x5ab02b('0x49')),_0x4f2aa5['query']=_[_0x5ab02b('0x67')](_0x2b81cd[_0x5ab02b('0x10')]),_0x4f2aa5[_0x5ab02b('0x0')]=_['intersection'](_0x4f2aa5[_0x5ab02b('0x36')],_0x4f2aa5[_0x5ab02b('0x10')]),_0x4f2aa5[_0x5ab02b('0x0')]=_[_0x5ab02b('0x60')](_0x4f2aa5[_0x5ab02b('0x0')],[_0x5ab02b('0x5'),'$or',_0x5ab02b('0x70'),_0x5ab02b('0x4d'),_0x5ab02b('0x5f'),_0x5ab02b('0x73'),_0x5ab02b('0x16'),'$eq',_0x5ab02b('0x18'),_0x5ab02b('0x5d'),_0x5ab02b('0x20'),_0x5ab02b('0x48'),_0x5ab02b('0x6e'),'$like',_0x5ab02b('0xf'),_0x5ab02b('0x33'),_0x5ab02b('0x56'),_0x5ab02b('0x2d'),_0x5ab02b('0x79'),'$contains','$contained','$any']),_0x459dac['attributes']=_[_0x5ab02b('0x2e')](_0x4f2aa5['model'],qs['fields'](_0x2b81cd[_0x5ab02b('0x10')][_0x5ab02b('0x72')])),_0x459dac[_0x5ab02b('0x69')]=_0x459dac[_0x5ab02b('0x69')][_0x5ab02b('0x9')]?_0x459dac[_0x5ab02b('0x69')]:_0x4f2aa5[_0x5ab02b('0x36')];typeof _0x2b81cd[_0x5ab02b('0x10')][_0x5ab02b('0x23')]===_0x5ab02b('0xd')&&(_0x459dac['limit']=qs['limit'](_0x2b81cd['query']['limit']),_0x459dac[_0x5ab02b('0x12')]=qs[_0x5ab02b('0x12')](_0x2b81cd[_0x5ab02b('0x10')][_0x5ab02b('0x12')]));_0x459dac[_0x5ab02b('0x66')]=qs[_0x5ab02b('0x6c')](_0x2b81cd[_0x5ab02b('0x10')]['sort']),_0x459dac[_0x5ab02b('0x3d')]=qs['filters'](_[_0x5ab02b('0x44')](_0x2b81cd[_0x5ab02b('0x10')],_0x4f2aa5['filters']),_0x48beb9);_0x2b81cd['query'][_0x5ab02b('0x3b')]&&(_0x459dac[_0x5ab02b('0x3d')]=_[_0x5ab02b('0x2c')](_0x459dac[_0x5ab02b('0x3d')],{[Op['or']]:_[_0x5ab02b('0x39')](_0x48beb9,function(_0x42b6f5){const _0x305111=_0x5ab02b;if(_0x42b6f5[_0x305111('0x1c')]!=='VIRTUAL'){const _0x195817={};return _0x195817[_0x42b6f5[_0x305111('0x49')]]={[Op[_0x305111('0x43')]]:'%'+_0x2b81cd['query']['filter']+'%'},_0x195817;}})}));_0x459dac=_[_0x5ab02b('0x2c')]({},_0x459dac,_0x2b81cd['options']);const _0x39f1f9={'where':_0x459dac['where']};return db[_0x5ab02b('0x46')][_0x5ab02b('0x3c')](_0x39f1f9)['then'](function(_0x20abee){const _0x48d04f=_0x5ab02b;return _0xeca1a5['count']=_0x20abee,_0x2b81cd[_0x48d04f('0x10')]['includeAll']&&(_0x459dac[_0x48d04f('0x59')]=[{'all':!![]}]),db[_0x48d04f('0x46')][_0x48d04f('0x76')](_0x459dac);})[_0x5ab02b('0x1d')](function(_0x46d5ba){const _0x25b3c4=_0x5ab02b;return _0xeca1a5[_0x25b3c4('0x68')]=_0x46d5ba,_0xeca1a5;})[_0x5ab02b('0x1d')](respondWithFilteredResult(_0x5814c9,_0x459dac))[_0x5ab02b('0x57')](handleError(_0x5814c9,null));},exports[_0x277f9a('0x77')]=function(_0x33db59,_0xd7cc64){const _0xe8baea=_0x277f9a;let _0x1a7aeb={'raw':!![],'where':{'id':_0x33db59[_0xe8baea('0x32')]['id']}};const _0x2f251e={};return _0x2f251e['model']=_[_0xe8baea('0x67')](db[_0xe8baea('0x46')][_0xe8baea('0xe')]),_0x2f251e['query']=_[_0xe8baea('0x67')](_0x33db59[_0xe8baea('0x10')]),_0x2f251e[_0xe8baea('0x0')]=_['intersection'](_0x2f251e[_0xe8baea('0x36')],_0x2f251e[_0xe8baea('0x10')]),_0x1a7aeb[_0xe8baea('0x69')]=_[_0xe8baea('0x2e')](_0x2f251e[_0xe8baea('0x36')],qs[_0xe8baea('0x72')](_0x33db59['query']['fields'])),_0x1a7aeb['attributes']=_0x1a7aeb[_0xe8baea('0x69')][_0xe8baea('0x9')]?_0x1a7aeb[_0xe8baea('0x69')]:_0x2f251e[_0xe8baea('0x36')],_0x33db59[_0xe8baea('0x10')][_0xe8baea('0x78')]&&(_0x1a7aeb[_0xe8baea('0x59')]=[{'all':!![]}]),_0x1a7aeb=_[_0xe8baea('0x2c')]({},_0x1a7aeb,_0x33db59[_0xe8baea('0x54')]),db['CmHopper'][_0xe8baea('0x19')](_0x1a7aeb)['then'](handleEntityNotFound(_0xd7cc64,null))[_0xe8baea('0x1d')](respondWithResult(_0xd7cc64,null))['catch'](handleError(_0xd7cc64,null));},exports[_0x277f9a('0x1e')]=function(_0x12a8ee,_0xad4e2e){const _0x3da4ef=_0x277f9a;return db[_0x3da4ef('0x46')]['create'](_0x12a8ee[_0x3da4ef('0x58')],{})[_0x3da4ef('0x1d')](respondWithResult(_0xad4e2e,0xc9))[_0x3da4ef('0x57')](handleError(_0xad4e2e,null));},exports[_0x277f9a('0x62')]=function(_0x235ca4,_0xec4199){const _0x5a5444=_0x277f9a;return _0x235ca4[_0x5a5444('0x58')]['id']&&delete _0x235ca4[_0x5a5444('0x58')]['id'],db[_0x5a5444('0x46')][_0x5a5444('0x19')]({'where':{'id':_0x235ca4[_0x5a5444('0x32')]['id']}})['then'](handleEntityNotFound(_0xec4199,null))[_0x5a5444('0x1d')](saveUpdates(_0x235ca4[_0x5a5444('0x58')],null))[_0x5a5444('0x1d')](respondWithResult(_0xec4199,null))[_0x5a5444('0x57')](handleError(_0xec4199,null));},exports['describe']=function(_0x1adb18,_0x295d37){const _0x1b66a3=_0x277f9a;return db[_0x1b66a3('0x46')][_0x1b66a3('0x65')]()[_0x1b66a3('0x1d')](respondWithResult(_0x295d37,null))[_0x1b66a3('0x57')](handleError(_0x295d37,null));},exports['destroy']=function(_0x52b959,_0x13de81){const _0x2d0500=_0x277f9a;let _0x364d20;return db[_0x2d0500('0x46')][_0x2d0500('0x19')]({'where':{'id':_0x52b959['params']['id']}})[_0x2d0500('0x1d')](handleEntityNotFound(_0x13de81,null))[_0x2d0500('0x1d')](function(_0x58b3fd){const _0x1f476a=_0x2d0500;if(_0x58b3fd)return _0x58b3fd[_0x1f476a('0x4f')]()[_0x1f476a('0x1d')](function(_0xc1e45f){return _0xc1e45f;});})[_0x2d0500('0x1d')](function(_0x311253){const _0x548a17=_0x2d0500;_0x364d20=_0x311253;if(_0x311253){if(_0x311253[_0x548a17('0x24')]||_0x311253[_0x548a17('0x5b')])return db[_0x311253[_0x548a17('0x24')]?_0x548a17('0x3f'):_0x548a17('0x2a')][_0x548a17('0x19')]({'where':{'id':_0x311253[_0x548a17('0x24')]?_0x311253[_0x548a17('0x24')]:_0x311253[_0x548a17('0x5b')]},'attributes':['id',_0x548a17('0x49')],'raw':!![]});}})[_0x2d0500('0x1d')](function(_0x2d84fd){const _0x5b9c54=_0x2d0500,_0x302d0c={};if(_0x2d84fd)return _[_0x5b9c54('0x2c')](_0x302d0c,_[_0x5b9c54('0x6')](_0x364d20[_0x5b9c54('0x37')],[_0x5b9c54('0x61'),_0x5b9c54('0x41'),'id'])),_0x302d0c[_0x5b9c54('0x34')]=0x15,_0x302d0c[_0x5b9c54('0x4a')]=_0x5b9c54('0x2'),_0x302d0c[_0x5b9c54('0x27')]=_0x2d84fd[_0x5b9c54('0x49')],_0x302d0c['membername']=_0x52b959[_0x5b9c54('0x6a')][_0x5b9c54('0x49')],_0x302d0c['UserId']=_0x52b959[_0x5b9c54('0x6a')]['id'],_0x302d0c[_0x5b9c54('0x2')]=!![],_0x302d0c['deletedat']=moment()[_0x5b9c54('0x4b')]('YYYY-MM-DD\x20HH:mm:ss'),_0x302d0c[_0x5b9c54('0x7')]=_0x364d20[_0x5b9c54('0x52')],_0x302d0c[_0x5b9c54('0x42')]=_0x364d20[_0x5b9c54('0x24')]?'queue':_0x5b9c54('0x26'),db[_0x5b9c54('0x51')][_0x5b9c54('0x19')]({'where':{'id':_0x302d0c[_0x5b9c54('0xc')]},'attributes':[_0x5b9c54('0x63'),'lastName']})[_0x5b9c54('0x1d')](function(_0x37ac6f){const _0x1c382f=_0x5b9c54;!_['isNil'](_0x13de81)&&!_[_0x1c382f('0xb')](_0x37ac6f[_0x1c382f('0x63')])&&(_0x302d0c['calleridname']=_0x37ac6f[_0x1c382f('0x63')],!_[_0x1c382f('0xb')](_0x37ac6f['lastName'])&&(_0x302d0c[_0x1c382f('0x50')]+='\x20'+_0x37ac6f[_0x1c382f('0x17')]));})['finally'](function(){const _0x560322=_0x5b9c54;return db[_0x560322('0x6f')]['create'](_0x302d0c);});})[_0x2d0500('0x1d')](function(){const _0x5e3928=_0x2d0500;return _0x13de81[_0x5e3928('0x55')](0xcc)['end']();})['catch'](handleError(_0x13de81,null));},exports[_0x277f9a('0x64')]=function(_0x4f2b52,_0x492e5f){const _0xa77007=_0x277f9a;let _0x24a6f1=[];return db['CmContact']['describe']()[_0xa77007('0x1d')](function(_0x3bc03a){const _0x2019d9=_0xa77007;return _0x24a6f1=_[_0x2019d9('0x67')](_0x3bc03a),_0x4f2b52[_0x2019d9('0x6a')][_0x2019d9('0x21')]({'where':{'type':_0x2019d9('0x1'),'dialActive':!![],'dialMethod':'preview'},'attributes':['id',_0x2019d9('0x4e')],'raw':!![]});})[_0xa77007('0x1d')](function(_0x9d15cd){const _0x20a333=_0xa77007;if(_0x9d15cd&&_0x9d15cd[_0x20a333('0x9')])return db['sequelize'][_0x20a333('0x47')](function(_0x144245){const _0x56974d=_0x20a333,_0x9fbb45={'active':![],'recallme':![],'scheduledAt':{[Op[_0x56974d('0x1f')]]:moment()[_0x56974d('0x4b')]('YYYY-MM-DD\x20HH:mm:ss')},'VoiceQueueId':{[Op['in']]:_[_0x56974d('0x39')](_0x9d15cd,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x4f2b52[_0x56974d('0x6a')]['id']}]};let _0x27e939=[];return _0x4f2b52['body'][_0x56974d('0x4')]&&_0x4f2b52[_0x56974d('0x58')][_0x56974d('0x4')]===_0x56974d('0x13')?(!_['isEmpty'](_0x4f2b52[_0x56974d('0x58')][_0x56974d('0x31')])&&(_0x9fbb45['id']={'$in':_0x4f2b52['body'][_0x56974d('0x31')]}),_0x27e939=[['priority',_0x56974d('0x5e')],[_0x56974d('0x7a'),_0x9d15cd[0x0][_0x56974d('0x4e')]===_0x56974d('0x5e')?'DESC':_0x56974d('0x5e')],literal('COALESCE(CmHopper.UserId,\x200)\x20ASC'),['id',_0x56974d('0x25')]]):(!_[_0x56974d('0x3')](_0x4f2b52[_0x56974d('0x58')]['hopperIds'])&&(_0x9fbb45['id']={'$notIn':_0x4f2b52[_0x56974d('0x58')][_0x56974d('0x31')]}),_0x27e939=[[_0x56974d('0x8'),'DESC'],['scheduledAt',_0x9d15cd[0x0][_0x56974d('0x4e')]],literal(_0x56974d('0x5a')),['id','ASC']]),db['CmHopper']['findOne']({'attributes':['id','scheduledat'],'where':_0x9fbb45,'order':_0x27e939,'transaction':_0x144245,'lock':_0x144245[_0x56974d('0x2b')][_0x56974d('0x7b')],'include':[{'model':db[_0x56974d('0x6b')],'as':_0x56974d('0x71'),'attributes':_0x24a6f1,'include':[{'model':db[_0x56974d('0x5c')],'as':_0x56974d('0x74'),'attributes':['id',_0x56974d('0x49')]}]},{'model':db[_0x56974d('0x22')],'as':'List','attributes':['id',_0x56974d('0x49')]},{'model':db[_0x56974d('0x3f')],'as':'Queue','attributes':['id','name',_0x56974d('0x30')]}]})[_0x56974d('0x1d')](function(_0x12c285){const _0x3b6954=_0x56974d;if(_0x12c285)return _0x12c285[_0x3b6954('0x62')]({'UserId':_0x4f2b52['user']['id']},{'transaction':_0x144245});});});})[_0xa77007('0x1d')](handleEntityNotFound(_0x492e5f,null))[_0xa77007('0x1d')](respondWithResult(_0x492e5f,null))['catch'](handleError(_0x492e5f,null));},exports[_0x277f9a('0x38')]=function(_0x478412,_0x358468){const _0x202414=_0x277f9a;return _0x478412['user']['getVoiceQueues']({'where':{'type':_0x202414('0x1'),'dialActive':!![],'dialMethod':_0x202414('0x1a')},'attributes':['id'],'raw':!![]})[_0x202414('0x1d')](function(_0xcf03ce){const _0x7b7d10=_0x202414;if(_0xcf03ce&&_0xcf03ce[_0x7b7d10('0x9')])return db[_0x7b7d10('0x46')][_0x7b7d10('0x3c')]({'where':{'active':![],'recallme':![],'scheduledAt':{[Op[_0x7b7d10('0x1f')]]:moment()[_0x7b7d10('0x4b')](_0x7b7d10('0x14'))},'VoiceQueueId':{[Op['in']]:_[_0x7b7d10('0x39')](_0xcf03ce,'id')},[Op['or']]:[{'UserId':null},{'UserId':_0x478412[_0x7b7d10('0x6a')]['id']}]}});return 0x0;})[_0x202414('0x1d')](function(_0x3316d9){const _0x4e4a4a=_0x202414;if(!_[_0x4e4a4a('0xb')](_0x3316d9)&&_[_0x4e4a4a('0x11')](_0x3316d9))return _0x358468[_0x4e4a4a('0x55')](0xc8)[_0x4e4a4a('0x15')]({'contacts':_0x3316d9});else logger[_0x4e4a4a('0x3a')]('CmHopper,\x20%s,\x20%s,\x20%s','getOpenContacts',0x194,'entity\x20not\x20found'),_0x358468[_0x4e4a4a('0x35')](0x194);})[_0x202414('0x57')](handleError(_0x358468,null));}; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.model.js b/server/api/cmHopper/cmHopper.model.js index fda6685..d5f150b 100644 --- a/server/api/cmHopper/cmHopper.model.js +++ b/server/api/cmHopper/cmHopper.model.js @@ -1 +1 @@ -const a138_0x1265=['./cmHopper.attributes','CmHopper','priority','scheduledat','define','phone'];(function(_0x2b3509,_0x12659c){const _0x42f976=function(_0x13e547){while(--_0x13e547){_0x2b3509['push'](_0x2b3509['shift']());}};_0x42f976(++_0x12659c);}(a138_0x1265,0x12f));const a138_0x42f9=function(_0x2b3509,_0x12659c){_0x2b3509=_0x2b3509-0x0;let _0x42f976=a138_0x1265[_0x2b3509];return _0x42f976;};const _0x5c8e0c=a138_0x42f9;'use strict';const attributes=require(_0x5c8e0c('0x3'));module['exports']=function(_0x13e547){const _0x198506=_0x5c8e0c,_0x2cfbd0=_0x13e547[_0x198506('0x1')](_0x198506('0x4'),attributes,{'tableName':'cm_hopper','paranoid':![],'indexes':[{'name':_0x198506('0x0'),'fields':['scheduledat']},{'name':_0x198506('0x2'),'fields':['phone']},{'name':_0x198506('0x5'),'fields':[_0x198506('0x5')]}],'timestamps':!![]});return _0x2cfbd0;}; \ No newline at end of file +const a138_0x1529=['scheduledat','./cmHopper.attributes','CmHopper','phone','priority','exports','cm_hopper'];(function(_0x4dae3c,_0x15293e){const _0x22d761=function(_0x3a9aa7){while(--_0x3a9aa7){_0x4dae3c['push'](_0x4dae3c['shift']());}};_0x22d761(++_0x15293e);}(a138_0x1529,0x10d));const a138_0x22d7=function(_0x4dae3c,_0x15293e){_0x4dae3c=_0x4dae3c-0x0;let _0x22d761=a138_0x1529[_0x4dae3c];return _0x22d761;};const _0x2b1ba5=a138_0x22d7;'use strict';const attributes=require(_0x2b1ba5('0x5'));module[_0x2b1ba5('0x2')]=function(_0x3a9aa7){const _0x4f0262=_0x2b1ba5,_0x23a053=_0x3a9aa7['define'](_0x4f0262('0x6'),attributes,{'tableName':_0x4f0262('0x3'),'paranoid':![],'indexes':[{'name':_0x4f0262('0x4'),'fields':[_0x4f0262('0x4')]},{'name':_0x4f0262('0x0'),'fields':['phone']},{'name':_0x4f0262('0x1'),'fields':['priority']}],'timestamps':!![]});return _0x23a053;}; \ No newline at end of file diff --git a/server/api/cmHopper/cmHopper.rpc.js b/server/api/cmHopper/cmHopper.rpc.js index 8700a35..a75a137 100644 --- a/server/api/cmHopper/cmHopper.rpc.js +++ b/server/api/cmHopper/cmHopper.rpc.js @@ -1 +1 @@ -const a139_0x415b=['map','sequelize','moment','CreateCmHopper','info','options','util','format','UpdateCmHopper','all','../../mysqldb','name','YYYY-MM-DD\x20HH:mm:ss','limit','include','body','GetCmHopper','message','transaction','raw','push','then','CountReScheduled','CmHopper','catch','\x20,\x201,\x20null','COUNT','contactsRescheduled','MoveContactManagedDialer','UserId','LOCK','Contact','CmHopperFinal','`scheduledat`\x20>=\x20','DestroyCmHopper','CmContact','findAll','attributes','order','\x22%s\x22','where','debug','GetContactDialer','includes','create','findOne','model','rpc','stringify','update','GetContactRecallMe','error','length','ShowCmHopper','keys','describe','UPDATE','destroy'];(function(_0x2e5859,_0x415bb6){const _0x51fcbc=function(_0x46f5f0){while(--_0x46f5f0){_0x2e5859['push'](_0x2e5859['shift']());}};_0x51fcbc(++_0x415bb6);}(a139_0x415b,0x8b));const a139_0x51fc=function(_0x2e5859,_0x415bb6){_0x2e5859=_0x2e5859-0x0;let _0x51fcbc=a139_0x415b[_0x2e5859];return _0x51fcbc;};const _0x35df97=a139_0x51fc;'use strict';const _=require('lodash'),util=require(_0x35df97('0x29')),moment=require(_0x35df97('0x25')),db=require(_0x35df97('0x2d'))['db'],logger=require('../../config/logger')(_0x35df97('0x18')),{literal,fn}=require(_0x35df97('0x24'));exports['GetCmHopper']=function(_0x46f5f0){const _0x17b0b7=this;return new Promise(function(_0x1a7259,_0x303cdd){const _0xeccb54=a139_0x51fc;return db['CmHopper'][_0xeccb54('0xd')]({'raw':_0x46f5f0[_0xeccb54('0x28')]?_0x46f5f0[_0xeccb54('0x28')][_0xeccb54('0x36')]===undefined?!![]:![]:!![],'where':_0x46f5f0[_0xeccb54('0x28')]?_0x46f5f0['options'][_0xeccb54('0x11')]||null:null,'attributes':_0x46f5f0[_0xeccb54('0x28')]?_0x46f5f0[_0xeccb54('0x28')]['attributes']||null:null,'limit':_0x46f5f0[_0xeccb54('0x28')]?_0x46f5f0['options'][_0xeccb54('0x30')]||null:null,'include':_0x46f5f0[_0xeccb54('0x28')]?_0x46f5f0[_0xeccb54('0x28')][_0xeccb54('0x31')]?_[_0xeccb54('0x23')](_0x46f5f0[_0xeccb54('0x28')][_0xeccb54('0x31')],function(_0x3348d6){const _0x5c2f16=_0xeccb54;return{'model':db[_0x3348d6[_0x5c2f16('0x17')]],'as':_0x3348d6['as'],'attributes':_0x3348d6[_0x5c2f16('0xe')],'include':_0x3348d6['include']?_[_0x5c2f16('0x23')](_0x3348d6[_0x5c2f16('0x31')],function(_0x1daef7){const _0x17f910=_0x5c2f16;return{'model':db[_0x1daef7[_0x17f910('0x17')]],'as':_0x1daef7['as'],'attributes':_0x1daef7[_0x17f910('0xe')],'include':_0x1daef7[_0x17f910('0x31')]?_[_0x17f910('0x23')](_0x1daef7[_0x17f910('0x31')],function(_0x44192f){return{'model':db[_0x44192f['model']],'as':_0x44192f['as'],'attributes':_0x44192f['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x102f25){const _0x40cef8=_0xeccb54;logger[_0x40cef8('0x27')](_0x40cef8('0x33'),_0x46f5f0),logger[_0x40cef8('0x12')](_0x40cef8('0x33'),_0x46f5f0,JSON[_0x40cef8('0x19')](_0x102f25)),_0x1a7259(_0x102f25);})[_0xeccb54('0x1')](function(_0x2c02bc){const _0x2956b0=_0xeccb54;logger['error']('GetCmHopper',_0x2c02bc[_0x2956b0('0x34')],_0x46f5f0),_0x303cdd(_0x17b0b7[_0x2956b0('0x1c')](0x1f4,_0x2c02bc[_0x2956b0('0x34')]));});});},exports['ShowCmHopper']=function(_0x10a2c6){const _0x3691b5=this;return new Promise(function(_0x57919f,_0x2e1703){const _0xfd6481=a139_0x51fc;return db['CmHopper'][_0xfd6481('0x16')]({'raw':_0x10a2c6['options']?_0x10a2c6[_0xfd6481('0x28')][_0xfd6481('0x36')]===undefined?!![]:![]:!![],'where':_0x10a2c6[_0xfd6481('0x28')]?_0x10a2c6[_0xfd6481('0x28')][_0xfd6481('0x11')]||null:null,'attributes':_0x10a2c6['options']?_0x10a2c6['options'][_0xfd6481('0xe')]||null:null,'include':_0x10a2c6[_0xfd6481('0x28')]?_0x10a2c6['options']['include']?_[_0xfd6481('0x23')](_0x10a2c6[_0xfd6481('0x28')][_0xfd6481('0x31')],function(_0xcadc5f){const _0x31f1bc=_0xfd6481;return{'model':db[_0xcadc5f[_0x31f1bc('0x17')]],'as':_0xcadc5f['as'],'attributes':_0xcadc5f[_0x31f1bc('0xe')],'include':_0xcadc5f[_0x31f1bc('0x31')]?_['map'](_0xcadc5f['include'],function(_0x226f73){const _0x195b3a=_0x31f1bc;return{'model':db[_0x226f73[_0x195b3a('0x17')]],'as':_0x226f73['as'],'attributes':_0x226f73[_0x195b3a('0xe')],'include':_0x226f73['include']?_[_0x195b3a('0x23')](_0x226f73[_0x195b3a('0x31')],function(_0x4b1b88){const _0x281bdd=_0x195b3a;return{'model':db[_0x4b1b88['model']],'as':_0x4b1b88['as'],'attributes':_0x4b1b88[_0x281bdd('0xe')]};}):[]};}):[]};}):[]:[]})[_0xfd6481('0x38')](function(_0x492aec){const _0x3ce61f=_0xfd6481;logger[_0x3ce61f('0x27')](_0x3ce61f('0x1e'),_0x10a2c6),logger['debug'](_0x3ce61f('0x1e'),_0x10a2c6,JSON[_0x3ce61f('0x19')](_0x492aec)),_0x57919f(_0x492aec);})[_0xfd6481('0x1')](function(_0x1def2c){const _0x37cfa8=_0xfd6481;logger[_0x37cfa8('0x1c')](_0x37cfa8('0x1e'),_0x1def2c[_0x37cfa8('0x34')],_0x10a2c6),_0x2e1703(_0x3691b5[_0x37cfa8('0x1c')](0x1f4,_0x1def2c[_0x37cfa8('0x34')]));});});},exports['CreateCmHopper']=function(_0x52899e){const _0x54bd39=this;return new Promise(function(_0x2db760,_0xb64714){const _0x57b007=a139_0x51fc;return db[_0x57b007('0x0')][_0x57b007('0x15')](_0x52899e[_0x57b007('0x32')],{'raw':_0x52899e['options']?_0x52899e['options']['raw']===undefined?!![]:![]:!![]})['then'](function(_0x242886){const _0x4baed4=_0x57b007;logger[_0x4baed4('0x27')](_0x4baed4('0x26'),_0x52899e),logger['debug']('CreateCmHopper',_0x52899e,JSON[_0x4baed4('0x19')](_0x242886)),_0x2db760(_0x242886);})['catch'](function(_0x3c3b7f){const _0x10e5c7=_0x57b007;logger['error'](_0x10e5c7('0x26'),_0x3c3b7f[_0x10e5c7('0x34')],_0x52899e),_0xb64714(_0x54bd39[_0x10e5c7('0x1c')](0x1f4,_0x3c3b7f[_0x10e5c7('0x34')]));});});},exports[_0x35df97('0x2b')]=function(_0x46525b){const _0x5e3669=this;return new Promise(function(_0x2b266e,_0x1d80a5){const _0x1d91ea=a139_0x51fc;return db[_0x1d91ea('0x0')][_0x1d91ea('0x1a')](_0x46525b[_0x1d91ea('0x32')],{'raw':_0x46525b[_0x1d91ea('0x28')]?_0x46525b['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x46525b[_0x1d91ea('0x28')]?_0x46525b['options']['where']||null:null,'attributes':_0x46525b[_0x1d91ea('0x28')]?_0x46525b[_0x1d91ea('0x28')][_0x1d91ea('0xe')]||null:null,'limit':_0x46525b['options']?_0x46525b[_0x1d91ea('0x28')]['limit']||null:null})['then'](function(_0x165a99){const _0x257c33=_0x1d91ea;logger[_0x257c33('0x27')]('UpdateCmHopper',_0x46525b),logger[_0x257c33('0x12')](_0x257c33('0x2b'),_0x46525b,JSON[_0x257c33('0x19')](_0x165a99)),_0x2b266e(_0x165a99);})[_0x1d91ea('0x1')](function(_0x26a762){const _0x311ae9=_0x1d91ea;logger[_0x311ae9('0x1c')](_0x311ae9('0x2b'),_0x26a762['message'],_0x46525b),_0x1d80a5(_0x5e3669['error'](0x1f4,_0x26a762[_0x311ae9('0x34')]));});});},exports['DestroyCmHopper']=function(_0x316af4){const _0x2d4878=this;return new Promise(function(_0x2ffbce,_0x1cd6d8){const _0x5a068a=a139_0x51fc;return db[_0x5a068a('0x0')][_0x5a068a('0x22')]({'where':_0x316af4['options']?_0x316af4[_0x5a068a('0x28')][_0x5a068a('0x11')]||null:null})[_0x5a068a('0x38')](function(_0x3b3075){const _0x51540e=_0x5a068a;logger['info'](_0x51540e('0xb'),_0x316af4),logger[_0x51540e('0x12')]('DestroyCmHopper',_0x316af4,JSON['stringify'](_0x3b3075)),_0x2ffbce(_0x3b3075);})[_0x5a068a('0x1')](function(_0x57efb1){const _0xe330e0=_0x5a068a;logger['error'](_0xe330e0('0xb'),_0x57efb1[_0xe330e0('0x34')],_0x316af4),_0x1cd6d8(_0x2d4878['error'](0x1f4,_0x57efb1[_0xe330e0('0x34')]));});});},exports[_0x35df97('0x13')]=function(_0x245c89){const _0xed04a3=this;return new Promise(function(_0x362db3,_0x39a503){const _0x48b99e=a139_0x51fc;return db[_0x48b99e('0xc')]['describe']()['then'](function(_0x46ed9d){const _0x2adb18=_0x48b99e;return db[_0x2adb18('0x24')][_0x2adb18('0x35')](function(_0x1f36e8){const _0x5958c5=_0x2adb18;return db['CmHopper'][_0x5958c5('0xd')]({'where':_0x245c89[_0x5958c5('0x28')]?_0x245c89['options']['where']||null:null,'attributes':_0x245c89['options']?_0x245c89[_0x5958c5('0x28')][_0x5958c5('0xe')]||null:null,'limit':_0x245c89[_0x5958c5('0x28')]?_0x245c89[_0x5958c5('0x28')][_0x5958c5('0x30')]||null:null,'order':_0x245c89[_0x5958c5('0x28')]?_0x245c89[_0x5958c5('0x28')]['order']||null:null,'transaction':_0x1f36e8,'lock':_0x1f36e8[_0x5958c5('0x7')][_0x5958c5('0x21')],'include':[{'model':db[_0x5958c5('0xc')],'as':'Contact','attributes':_[_0x5958c5('0x1f')](_0x46ed9d)},{'model':db['User'],'as':'Agent','attributes':['id',_0x5958c5('0x2e'),'voicePause']}]})[_0x5958c5('0x38')](function(_0x112748){const _0x395e7b=_0x5958c5,_0x1052f2=[],_0x215eed=[];for(let _0x40d2e9=0x0;_0x40d2e9<_0x112748[_0x395e7b('0x1d')];_0x40d2e9+=0x1){!_0x215eed[_0x395e7b('0x14')](_0x112748[_0x40d2e9]['UserId'])&&(_0x215eed['push'](_0x112748[_0x40d2e9][_0x395e7b('0x6')]),_0x1052f2[_0x395e7b('0x37')](_0x112748[_0x40d2e9][_0x395e7b('0x1a')](_0x245c89[_0x395e7b('0x32')],{'transaction':_0x1f36e8})));}return Promise['all'](_0x1052f2);});})[_0x2adb18('0x38')](function(_0x116815){const _0x38a6f2=_0x2adb18;logger[_0x38a6f2('0x27')](_0x38a6f2('0x13'),_0x245c89),logger[_0x38a6f2('0x12')](_0x38a6f2('0x13'),_0x245c89,JSON[_0x38a6f2('0x19')](_0x116815)),_0x362db3(_0x116815);})['catch'](function(_0x2a1a06){const _0x1ba535=_0x2adb18;logger[_0x1ba535('0x1c')](_0x1ba535('0x13'),_0x2a1a06[_0x1ba535('0x34')],_0x245c89),_0x39a503(_0xed04a3[_0x1ba535('0x1c')](0x1f4,_0x2a1a06[_0x1ba535('0x34')]));});});});},exports['MoveContactManagedDialer']=function(_0x5b48d9){const _0x43f19b=this;return new Promise(function(_0x1e6970,_0x41bb38){const _0x4636cc=a139_0x51fc;return db[_0x4636cc('0x24')][_0x4636cc('0x35')](function(_0x26f521){const _0x4edc21=_0x4636cc;return db[_0x4edc21('0x9')][_0x4edc21('0x15')](_0x5b48d9['body'],{'raw':_0x5b48d9[_0x4edc21('0x28')]?_0x5b48d9['options'][_0x4edc21('0x36')]===undefined?!![]:![]:!![],'transaction':_0x26f521})[_0x4edc21('0x38')](function(){const _0x5a6840=_0x4edc21;return db['CmHopper'][_0x5a6840('0x22')]({'where':_0x5b48d9['options']?_0x5b48d9[_0x5a6840('0x28')]['where']||null:null,'transaction':_0x26f521});});})[_0x4636cc('0x38')](function(_0x36fda7){const _0xc5d7b3=_0x4636cc;logger[_0xc5d7b3('0x27')]('MoveContactManagedDialer',_0x5b48d9),logger[_0xc5d7b3('0x12')](_0xc5d7b3('0x5'),_0x5b48d9,JSON[_0xc5d7b3('0x19')](_0x36fda7)),_0x1e6970(_0x36fda7);})['catch'](function(_0x27f3ff){const _0x2febfc=_0x4636cc;logger[_0x2febfc('0x1c')](_0x2febfc('0x5'),_0x27f3ff[_0x2febfc('0x34')],_0x5b48d9),_0x41bb38(_0x43f19b[_0x2febfc('0x1c')](0x1f4,_0x27f3ff['message']));});});},exports[_0x35df97('0x39')]=function(_0x356a58){const _0x18d27e=this;return new Promise(function(_0x42aeec,_0x3cc295){const _0x4a97a1=a139_0x51fc;return db[_0x4a97a1('0x0')]['findAll']({'raw':_0x356a58['options']?_0x356a58[_0x4a97a1('0x28')][_0x4a97a1('0x36')]===undefined?!![]:![]:!![],'where':_0x356a58[_0x4a97a1('0x28')]?_0x356a58[_0x4a97a1('0x28')]['where']||null:null,'attributes':[[fn(_0x4a97a1('0x3'),fn('IF',literal(_0x4a97a1('0xa')+util['format'](_0x4a97a1('0x10'),moment()[_0x4a97a1('0x2a')](_0x4a97a1('0x2f')))+_0x4a97a1('0x2')))),_0x4a97a1('0x4')]]})['then'](function(_0x36e20b){const _0x28beb7=_0x4a97a1;logger[_0x28beb7('0x27')](_0x28beb7('0x39'),_0x356a58),logger[_0x28beb7('0x12')](_0x28beb7('0x39'),_0x356a58,JSON[_0x28beb7('0x19')](_0x36e20b)),_0x42aeec(_0x36e20b);})['catch'](function(_0x4d3591){const _0x5d6556=_0x4a97a1;logger[_0x5d6556('0x1c')](_0x5d6556('0x39'),_0x4d3591[_0x5d6556('0x34')],_0x356a58),_0x3cc295(_0x18d27e[_0x5d6556('0x1c')](0x1f4,_0x4d3591[_0x5d6556('0x34')]));});});},exports['GetContactRecallMe']=function(_0x190b32){const _0x170123=this;return new Promise(function(_0x2d7cfb,_0x267235){const _0xa6f614=a139_0x51fc;return db[_0xa6f614('0xc')]['describe']()[_0xa6f614('0x38')](function(){const _0x2e522e=_0xa6f614;return db[_0x2e522e('0x24')][_0x2e522e('0x35')](function(_0x53200a){const _0x9777b=_0x2e522e;return db[_0x9777b('0x0')]['findAll']({'where':_0x190b32[_0x9777b('0x28')]?_0x190b32[_0x9777b('0x28')][_0x9777b('0x11')]||null:null,'attributes':_0x190b32[_0x9777b('0x28')]?_0x190b32[_0x9777b('0x28')][_0x9777b('0xe')]||null:null,'limit':0x1,'order':_0x190b32['options']?_0x190b32['options'][_0x9777b('0xf')]||null:null,'group':db[_0x9777b('0x0')]['UserId'],'transaction':_0x53200a,'lock':_0x53200a[_0x9777b('0x7')][_0x9777b('0x21')],'include':_0x190b32[_0x9777b('0x28')]?_0x190b32['options'][_0x9777b('0x31')]?_[_0x9777b('0x23')](_0x190b32[_0x9777b('0x28')][_0x9777b('0x31')],function(_0x4698fd){const _0x411f4c=_0x9777b;return{'model':db[_0x4698fd[_0x411f4c('0x17')]],'as':_0x4698fd['as'],'attributes':_0x4698fd['attributes'],'include':_0x4698fd[_0x411f4c('0x31')]?_[_0x411f4c('0x23')](_0x4698fd[_0x411f4c('0x31')],function(_0x34d8fc){const _0x258df2=_0x411f4c;return{'model':db[_0x34d8fc[_0x258df2('0x17')]],'as':_0x34d8fc['as'],'attributes':_0x34d8fc[_0x258df2('0xe')],'include':_0x34d8fc[_0x258df2('0x31')]?_['map'](_0x34d8fc[_0x258df2('0x31')],function(_0x3bc70f){return{'model':db[_0x3bc70f['model']],'as':_0x3bc70f['as'],'attributes':_0x3bc70f['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2ff62b){const _0x1a312f=_0x9777b,_0x17f7d2=[];for(let _0x5efe0a=0x0;_0x5efe0a<_0x2ff62b['length'];_0x5efe0a+=0x1){_0x17f7d2[_0x1a312f('0x37')](_0x2ff62b[_0x5efe0a][_0x1a312f('0x1a')](_0x190b32[_0x1a312f('0x32')],{'transaction':_0x53200a}));}return Promise[_0x1a312f('0x2c')](_0x17f7d2);});})[_0x2e522e('0x38')](function(_0x185462){const _0x8df934=_0x2e522e;logger['info'](_0x8df934('0x1b'),_0x190b32),logger[_0x8df934('0x12')](_0x8df934('0x1b'),_0x190b32,JSON['stringify'](_0x185462)),_0x2d7cfb(_0x185462);})[_0x2e522e('0x1')](function(_0x243d51){const _0x1eb5da=_0x2e522e;logger[_0x1eb5da('0x1c')](_0x1eb5da('0x1b'),_0x243d51['message'],_0x190b32),_0x267235(_0x170123[_0x1eb5da('0x1c')](0x1f4,_0x243d51['message']));});});});},exports['GetCmHopperPreview']=function(_0xce7971){const _0x4713a5=this;return new Promise(function(_0x48a8ce,_0x16be5b){const _0x584089=a139_0x51fc;db[_0x584089('0xc')][_0x584089('0x20')]()[_0x584089('0x38')](function(_0x416c83){const _0x278bb6=_0x584089;return db[_0x278bb6('0x0')][_0x278bb6('0xd')]({'raw':_0xce7971['options']?_0xce7971[_0x278bb6('0x28')][_0x278bb6('0x36')]===undefined?!![]:![]:!![],'where':_0xce7971[_0x278bb6('0x28')]?_0xce7971[_0x278bb6('0x28')]['where']||null:null,'attributes':_0xce7971[_0x278bb6('0x28')]?_0xce7971['options']['attributes']||null:null,'limit':_0xce7971[_0x278bb6('0x28')]?_0xce7971[_0x278bb6('0x28')][_0x278bb6('0x30')]||null:null,'include':_0xce7971['options']?_0xce7971[_0x278bb6('0x28')][_0x278bb6('0x31')]?_['map'](_0xce7971[_0x278bb6('0x28')][_0x278bb6('0x31')],function(_0x368ad5){const _0x5e1edd=_0x278bb6;return{'model':db[_0x368ad5[_0x5e1edd('0x17')]],'as':_0x368ad5['as'],'attributes':_0x368ad5['as']===_0x5e1edd('0x8')?_[_0x5e1edd('0x1f')](_0x416c83):_0x368ad5['attributes'],'include':_0x368ad5['include']?_['map'](_0x368ad5[_0x5e1edd('0x31')],function(_0x2be3f8){const _0x328813=_0x5e1edd;return{'model':db[_0x2be3f8[_0x328813('0x17')]],'as':_0x2be3f8['as'],'attributes':_0x2be3f8[_0x328813('0xe')],'include':_0x2be3f8['include']?_[_0x328813('0x23')](_0x2be3f8['include'],function(_0x37a14b){const _0x5070db=_0x328813;return{'model':db[_0x37a14b[_0x5070db('0x17')]],'as':_0x37a14b['as'],'attributes':_0x37a14b[_0x5070db('0xe')]};}):[]};}):[]};}):[]:[]})[_0x278bb6('0x38')](function(_0x4c9a3e){const _0x4916b2=_0x278bb6;logger[_0x4916b2('0x27')](_0x4916b2('0x33'),_0xce7971),logger[_0x4916b2('0x12')](_0x4916b2('0x33'),_0xce7971,JSON['stringify'](_0x4c9a3e)),_0x48a8ce(_0x4c9a3e);})['catch'](function(_0xaafc3e){const _0x2e8e43=_0x278bb6;logger[_0x2e8e43('0x1c')](_0x2e8e43('0x33'),_0xaafc3e[_0x2e8e43('0x34')],_0xce7971),_0x16be5b(_0x4713a5[_0x2e8e43('0x1c')](0x1f4,_0xaafc3e[_0x2e8e43('0x34')]));});});});}; \ No newline at end of file +const a139_0x37af=['model','keys','`scheduledat`\x20>=\x20','CountReScheduled','voicePause','body','User','contactsRescheduled','Agent','format','../../config/logger','GetCmHopper','debug','message','info','all','describe','GetContactRecallMe','ShowCmHopper','UserId','\x22%s\x22','COUNT','where','sequelize','then','push','CreateCmHopper','map','DestroyCmHopper','limit','\x20,\x201,\x20null','length','raw','order','destroy','transaction','rpc','attributes','UPDATE','findAll','catch','../../mysqldb','MoveContactManagedDialer','LOCK','update','Contact','GetCmHopperPreview','moment','include','CmHopper','GetContactDialer','lodash','create','stringify','options','UpdateCmHopper','error','CmContact'];(function(_0x19c577,_0x37afd6){const _0x50cb2c=function(_0xd7d35e){while(--_0xd7d35e){_0x19c577['push'](_0x19c577['shift']());}};_0x50cb2c(++_0x37afd6);}(a139_0x37af,0xca));const a139_0x50cb=function(_0x19c577,_0x37afd6){_0x19c577=_0x19c577-0x0;let _0x50cb2c=a139_0x37af[_0x19c577];return _0x50cb2c;};const _0x54df5c=a139_0x50cb;'use strict';const _=require(_0x54df5c('0x17')),util=require('util'),moment=require(_0x54df5c('0x13')),db=require(_0x54df5c('0xd'))['db'],logger=require(_0x54df5c('0x28'))(_0x54df5c('0x8')),{literal,fn}=require('sequelize');exports[_0x54df5c('0x29')]=function(_0xd7d35e){const _0x1273d0=this;return new Promise(function(_0x32a1eb,_0x3faab3){const _0x3cd2c2=a139_0x50cb;return db[_0x3cd2c2('0x15')]['findAll']({'raw':_0xd7d35e[_0x3cd2c2('0x1a')]?_0xd7d35e[_0x3cd2c2('0x1a')][_0x3cd2c2('0x4')]===undefined?!![]:![]:!![],'where':_0xd7d35e[_0x3cd2c2('0x1a')]?_0xd7d35e[_0x3cd2c2('0x1a')][_0x3cd2c2('0x34')]||null:null,'attributes':_0xd7d35e[_0x3cd2c2('0x1a')]?_0xd7d35e[_0x3cd2c2('0x1a')][_0x3cd2c2('0x9')]||null:null,'limit':_0xd7d35e[_0x3cd2c2('0x1a')]?_0xd7d35e[_0x3cd2c2('0x1a')][_0x3cd2c2('0x1')]||null:null,'include':_0xd7d35e[_0x3cd2c2('0x1a')]?_0xd7d35e[_0x3cd2c2('0x1a')]['include']?_[_0x3cd2c2('0x39')](_0xd7d35e[_0x3cd2c2('0x1a')][_0x3cd2c2('0x14')],function(_0x1a2d0a){const _0x182cc7=_0x3cd2c2;return{'model':db[_0x1a2d0a['model']],'as':_0x1a2d0a['as'],'attributes':_0x1a2d0a[_0x182cc7('0x9')],'include':_0x1a2d0a[_0x182cc7('0x14')]?_[_0x182cc7('0x39')](_0x1a2d0a[_0x182cc7('0x14')],function(_0x12529a){const _0x17fb6e=_0x182cc7;return{'model':db[_0x12529a[_0x17fb6e('0x1e')]],'as':_0x12529a['as'],'attributes':_0x12529a['attributes'],'include':_0x12529a[_0x17fb6e('0x14')]?_[_0x17fb6e('0x39')](_0x12529a['include'],function(_0x2219e2){const _0x4c6385=_0x17fb6e;return{'model':db[_0x2219e2['model']],'as':_0x2219e2['as'],'attributes':_0x2219e2[_0x4c6385('0x9')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x253d9f){const _0x1858cd=_0x3cd2c2;logger[_0x1858cd('0x2c')]('GetCmHopper',_0xd7d35e),logger['debug'](_0x1858cd('0x29'),_0xd7d35e,JSON[_0x1858cd('0x19')](_0x253d9f)),_0x32a1eb(_0x253d9f);})[_0x3cd2c2('0xc')](function(_0x5590a2){const _0x383a09=_0x3cd2c2;logger[_0x383a09('0x1c')](_0x383a09('0x29'),_0x5590a2[_0x383a09('0x2b')],_0xd7d35e),_0x3faab3(_0x1273d0[_0x383a09('0x1c')](0x1f4,_0x5590a2['message']));});});},exports[_0x54df5c('0x30')]=function(_0x2055fd){const _0x2fa2c2=this;return new Promise(function(_0x303d17,_0x2a43b8){const _0x40cabb=a139_0x50cb;return db[_0x40cabb('0x15')]['findOne']({'raw':_0x2055fd[_0x40cabb('0x1a')]?_0x2055fd['options'][_0x40cabb('0x4')]===undefined?!![]:![]:!![],'where':_0x2055fd[_0x40cabb('0x1a')]?_0x2055fd['options'][_0x40cabb('0x34')]||null:null,'attributes':_0x2055fd[_0x40cabb('0x1a')]?_0x2055fd[_0x40cabb('0x1a')][_0x40cabb('0x9')]||null:null,'include':_0x2055fd['options']?_0x2055fd[_0x40cabb('0x1a')]['include']?_['map'](_0x2055fd[_0x40cabb('0x1a')]['include'],function(_0x13e948){const _0x2d2c61=_0x40cabb;return{'model':db[_0x13e948['model']],'as':_0x13e948['as'],'attributes':_0x13e948[_0x2d2c61('0x9')],'include':_0x13e948['include']?_[_0x2d2c61('0x39')](_0x13e948[_0x2d2c61('0x14')],function(_0x2376c7){const _0x6ae308=_0x2d2c61;return{'model':db[_0x2376c7[_0x6ae308('0x1e')]],'as':_0x2376c7['as'],'attributes':_0x2376c7[_0x6ae308('0x9')],'include':_0x2376c7[_0x6ae308('0x14')]?_[_0x6ae308('0x39')](_0x2376c7[_0x6ae308('0x14')],function(_0x2187bf){const _0x542c9e=_0x6ae308;return{'model':db[_0x2187bf['model']],'as':_0x2187bf['as'],'attributes':_0x2187bf[_0x542c9e('0x9')]};}):[]};}):[]};}):[]:[]})[_0x40cabb('0x36')](function(_0xd1c080){const _0x27ef78=_0x40cabb;logger[_0x27ef78('0x2c')](_0x27ef78('0x30'),_0x2055fd),logger[_0x27ef78('0x2a')](_0x27ef78('0x30'),_0x2055fd,JSON[_0x27ef78('0x19')](_0xd1c080)),_0x303d17(_0xd1c080);})[_0x40cabb('0xc')](function(_0x438186){const _0x26176d=_0x40cabb;logger['error'](_0x26176d('0x30'),_0x438186[_0x26176d('0x2b')],_0x2055fd),_0x2a43b8(_0x2fa2c2['error'](0x1f4,_0x438186[_0x26176d('0x2b')]));});});},exports[_0x54df5c('0x38')]=function(_0x1fb404){const _0x1b6b1b=this;return new Promise(function(_0x38d3c7,_0x4e743d){const _0xe3a892=a139_0x50cb;return db[_0xe3a892('0x15')][_0xe3a892('0x18')](_0x1fb404['body'],{'raw':_0x1fb404[_0xe3a892('0x1a')]?_0x1fb404[_0xe3a892('0x1a')][_0xe3a892('0x4')]===undefined?!![]:![]:!![]})['then'](function(_0x5010e3){const _0x4a7590=_0xe3a892;logger[_0x4a7590('0x2c')]('CreateCmHopper',_0x1fb404),logger[_0x4a7590('0x2a')]('CreateCmHopper',_0x1fb404,JSON[_0x4a7590('0x19')](_0x5010e3)),_0x38d3c7(_0x5010e3);})[_0xe3a892('0xc')](function(_0x1e920d){const _0x5b144f=_0xe3a892;logger['error']('CreateCmHopper',_0x1e920d['message'],_0x1fb404),_0x4e743d(_0x1b6b1b[_0x5b144f('0x1c')](0x1f4,_0x1e920d[_0x5b144f('0x2b')]));});});},exports[_0x54df5c('0x1b')]=function(_0x512a8b){const _0x5c1208=this;return new Promise(function(_0x47de01,_0x213380){const _0x93ed1c=a139_0x50cb;return db['CmHopper'][_0x93ed1c('0x10')](_0x512a8b[_0x93ed1c('0x23')],{'raw':_0x512a8b[_0x93ed1c('0x1a')]?_0x512a8b[_0x93ed1c('0x1a')][_0x93ed1c('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x512a8b[_0x93ed1c('0x1a')]?_0x512a8b[_0x93ed1c('0x1a')][_0x93ed1c('0x34')]||null:null,'attributes':_0x512a8b[_0x93ed1c('0x1a')]?_0x512a8b['options'][_0x93ed1c('0x9')]||null:null,'limit':_0x512a8b[_0x93ed1c('0x1a')]?_0x512a8b[_0x93ed1c('0x1a')][_0x93ed1c('0x1')]||null:null})[_0x93ed1c('0x36')](function(_0x4af74b){const _0x3524fc=_0x93ed1c;logger['info'](_0x3524fc('0x1b'),_0x512a8b),logger[_0x3524fc('0x2a')](_0x3524fc('0x1b'),_0x512a8b,JSON['stringify'](_0x4af74b)),_0x47de01(_0x4af74b);})[_0x93ed1c('0xc')](function(_0x57da7c){const _0x389e55=_0x93ed1c;logger[_0x389e55('0x1c')](_0x389e55('0x1b'),_0x57da7c[_0x389e55('0x2b')],_0x512a8b),_0x213380(_0x5c1208[_0x389e55('0x1c')](0x1f4,_0x57da7c['message']));});});},exports[_0x54df5c('0x0')]=function(_0x37c1f4){const _0x1a4f42=this;return new Promise(function(_0x335660,_0x5352b3){const _0x1e6385=a139_0x50cb;return db['CmHopper'][_0x1e6385('0x6')]({'where':_0x37c1f4[_0x1e6385('0x1a')]?_0x37c1f4['options'][_0x1e6385('0x34')]||null:null})[_0x1e6385('0x36')](function(_0x35020e){const _0x364e1b=_0x1e6385;logger[_0x364e1b('0x2c')](_0x364e1b('0x0'),_0x37c1f4),logger[_0x364e1b('0x2a')](_0x364e1b('0x0'),_0x37c1f4,JSON[_0x364e1b('0x19')](_0x35020e)),_0x335660(_0x35020e);})[_0x1e6385('0xc')](function(_0x194057){const _0x1cfefa=_0x1e6385;logger['error'](_0x1cfefa('0x0'),_0x194057[_0x1cfefa('0x2b')],_0x37c1f4),_0x5352b3(_0x1a4f42[_0x1cfefa('0x1c')](0x1f4,_0x194057[_0x1cfefa('0x2b')]));});});},exports['GetContactDialer']=function(_0x94c980){const _0x93f795=this;return new Promise(function(_0x35309f,_0x529363){const _0x37d700=a139_0x50cb;return db[_0x37d700('0x1d')][_0x37d700('0x2e')]()['then'](function(_0x3a80c2){const _0x4f5364=_0x37d700;return db[_0x4f5364('0x35')][_0x4f5364('0x7')](function(_0x3a55f6){const _0xf77c05=_0x4f5364;return db[_0xf77c05('0x15')][_0xf77c05('0xb')]({'where':_0x94c980[_0xf77c05('0x1a')]?_0x94c980[_0xf77c05('0x1a')][_0xf77c05('0x34')]||null:null,'attributes':_0x94c980[_0xf77c05('0x1a')]?_0x94c980[_0xf77c05('0x1a')][_0xf77c05('0x9')]||null:null,'limit':_0x94c980[_0xf77c05('0x1a')]?_0x94c980[_0xf77c05('0x1a')][_0xf77c05('0x1')]||null:null,'order':_0x94c980[_0xf77c05('0x1a')]?_0x94c980['options'][_0xf77c05('0x5')]||null:null,'transaction':_0x3a55f6,'lock':_0x3a55f6[_0xf77c05('0xf')][_0xf77c05('0xa')],'include':[{'model':db['CmContact'],'as':_0xf77c05('0x11'),'attributes':_[_0xf77c05('0x1f')](_0x3a80c2)},{'model':db[_0xf77c05('0x24')],'as':_0xf77c05('0x26'),'attributes':['id','name',_0xf77c05('0x22')]}]})['then'](function(_0x193eac){const _0x413d4b=_0xf77c05,_0x4e8bb7=[],_0x4ff6ec=[];for(let _0x189352=0x0;_0x189352<_0x193eac[_0x413d4b('0x3')];_0x189352+=0x1){!_0x4ff6ec['includes'](_0x193eac[_0x189352][_0x413d4b('0x31')])&&(_0x4ff6ec[_0x413d4b('0x37')](_0x193eac[_0x189352][_0x413d4b('0x31')]),_0x4e8bb7[_0x413d4b('0x37')](_0x193eac[_0x189352][_0x413d4b('0x10')](_0x94c980['body'],{'transaction':_0x3a55f6})));}return Promise[_0x413d4b('0x2d')](_0x4e8bb7);});})[_0x4f5364('0x36')](function(_0x4482f2){const _0x12eccd=_0x4f5364;logger[_0x12eccd('0x2c')](_0x12eccd('0x16'),_0x94c980),logger[_0x12eccd('0x2a')](_0x12eccd('0x16'),_0x94c980,JSON[_0x12eccd('0x19')](_0x4482f2)),_0x35309f(_0x4482f2);})[_0x4f5364('0xc')](function(_0x10649e){const _0x490c71=_0x4f5364;logger[_0x490c71('0x1c')](_0x490c71('0x16'),_0x10649e[_0x490c71('0x2b')],_0x94c980),_0x529363(_0x93f795['error'](0x1f4,_0x10649e[_0x490c71('0x2b')]));});});});},exports[_0x54df5c('0xe')]=function(_0x542e2b){const _0x372286=this;return new Promise(function(_0x3edc92,_0x2c94bd){const _0x3a93f9=a139_0x50cb;return db[_0x3a93f9('0x35')][_0x3a93f9('0x7')](function(_0x138baf){const _0x1a2592=_0x3a93f9;return db['CmHopperFinal'][_0x1a2592('0x18')](_0x542e2b['body'],{'raw':_0x542e2b['options']?_0x542e2b[_0x1a2592('0x1a')]['raw']===undefined?!![]:![]:!![],'transaction':_0x138baf})[_0x1a2592('0x36')](function(){const _0x5e5280=_0x1a2592;return db[_0x5e5280('0x15')]['destroy']({'where':_0x542e2b['options']?_0x542e2b[_0x5e5280('0x1a')][_0x5e5280('0x34')]||null:null,'transaction':_0x138baf});});})['then'](function(_0x3571b7){const _0x88b00f=_0x3a93f9;logger[_0x88b00f('0x2c')](_0x88b00f('0xe'),_0x542e2b),logger[_0x88b00f('0x2a')](_0x88b00f('0xe'),_0x542e2b,JSON[_0x88b00f('0x19')](_0x3571b7)),_0x3edc92(_0x3571b7);})[_0x3a93f9('0xc')](function(_0xa37f11){const _0x1ccc1f=_0x3a93f9;logger[_0x1ccc1f('0x1c')](_0x1ccc1f('0xe'),_0xa37f11[_0x1ccc1f('0x2b')],_0x542e2b),_0x2c94bd(_0x372286[_0x1ccc1f('0x1c')](0x1f4,_0xa37f11[_0x1ccc1f('0x2b')]));});});},exports[_0x54df5c('0x21')]=function(_0x3d8de3){const _0xcf438b=this;return new Promise(function(_0x4b4908,_0x300178){const _0x40f1ad=a139_0x50cb;return db['CmHopper'][_0x40f1ad('0xb')]({'raw':_0x3d8de3[_0x40f1ad('0x1a')]?_0x3d8de3[_0x40f1ad('0x1a')]['raw']===undefined?!![]:![]:!![],'where':_0x3d8de3['options']?_0x3d8de3[_0x40f1ad('0x1a')][_0x40f1ad('0x34')]||null:null,'attributes':[[fn(_0x40f1ad('0x33'),fn('IF',literal(_0x40f1ad('0x20')+util[_0x40f1ad('0x27')](_0x40f1ad('0x32'),moment()[_0x40f1ad('0x27')]('YYYY-MM-DD\x20HH:mm:ss'))+_0x40f1ad('0x2')))),_0x40f1ad('0x25')]]})[_0x40f1ad('0x36')](function(_0x4075b1){const _0x3b3efb=_0x40f1ad;logger[_0x3b3efb('0x2c')]('CountReScheduled',_0x3d8de3),logger['debug'](_0x3b3efb('0x21'),_0x3d8de3,JSON[_0x3b3efb('0x19')](_0x4075b1)),_0x4b4908(_0x4075b1);})['catch'](function(_0x49c54d){const _0x3ada76=_0x40f1ad;logger['error'](_0x3ada76('0x21'),_0x49c54d['message'],_0x3d8de3),_0x300178(_0xcf438b[_0x3ada76('0x1c')](0x1f4,_0x49c54d[_0x3ada76('0x2b')]));});});},exports['GetContactRecallMe']=function(_0x5b42b0){const _0x1243b7=this;return new Promise(function(_0x54709d,_0x4c4784){const _0x5b211a=a139_0x50cb;return db[_0x5b211a('0x1d')][_0x5b211a('0x2e')]()['then'](function(){const _0x31e8d3=_0x5b211a;return db[_0x31e8d3('0x35')][_0x31e8d3('0x7')](function(_0x5b5d21){const _0x3f65f9=_0x31e8d3;return db['CmHopper'][_0x3f65f9('0xb')]({'where':_0x5b42b0[_0x3f65f9('0x1a')]?_0x5b42b0[_0x3f65f9('0x1a')][_0x3f65f9('0x34')]||null:null,'attributes':_0x5b42b0['options']?_0x5b42b0['options']['attributes']||null:null,'limit':0x1,'order':_0x5b42b0[_0x3f65f9('0x1a')]?_0x5b42b0[_0x3f65f9('0x1a')][_0x3f65f9('0x5')]||null:null,'group':db[_0x3f65f9('0x15')][_0x3f65f9('0x31')],'transaction':_0x5b5d21,'lock':_0x5b5d21['LOCK'][_0x3f65f9('0xa')],'include':_0x5b42b0['options']?_0x5b42b0[_0x3f65f9('0x1a')][_0x3f65f9('0x14')]?_[_0x3f65f9('0x39')](_0x5b42b0['options']['include'],function(_0x4cfb05){const _0x5627b5=_0x3f65f9;return{'model':db[_0x4cfb05['model']],'as':_0x4cfb05['as'],'attributes':_0x4cfb05[_0x5627b5('0x9')],'include':_0x4cfb05[_0x5627b5('0x14')]?_[_0x5627b5('0x39')](_0x4cfb05['include'],function(_0x4688a6){const _0xcad9b7=_0x5627b5;return{'model':db[_0x4688a6[_0xcad9b7('0x1e')]],'as':_0x4688a6['as'],'attributes':_0x4688a6[_0xcad9b7('0x9')],'include':_0x4688a6[_0xcad9b7('0x14')]?_[_0xcad9b7('0x39')](_0x4688a6[_0xcad9b7('0x14')],function(_0x242878){const _0xd800ba=_0xcad9b7;return{'model':db[_0x242878['model']],'as':_0x242878['as'],'attributes':_0x242878[_0xd800ba('0x9')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x8f0583){const _0x2147ac=_0x3f65f9,_0x380d30=[];for(let _0x4e3c0c=0x0;_0x4e3c0c<_0x8f0583[_0x2147ac('0x3')];_0x4e3c0c+=0x1){_0x380d30['push'](_0x8f0583[_0x4e3c0c][_0x2147ac('0x10')](_0x5b42b0[_0x2147ac('0x23')],{'transaction':_0x5b5d21}));}return Promise['all'](_0x380d30);});})[_0x31e8d3('0x36')](function(_0x51172f){const _0x44ac6e=_0x31e8d3;logger[_0x44ac6e('0x2c')]('GetContactRecallMe',_0x5b42b0),logger[_0x44ac6e('0x2a')](_0x44ac6e('0x2f'),_0x5b42b0,JSON[_0x44ac6e('0x19')](_0x51172f)),_0x54709d(_0x51172f);})['catch'](function(_0x13891a){const _0x3ae28a=_0x31e8d3;logger[_0x3ae28a('0x1c')](_0x3ae28a('0x2f'),_0x13891a[_0x3ae28a('0x2b')],_0x5b42b0),_0x4c4784(_0x1243b7[_0x3ae28a('0x1c')](0x1f4,_0x13891a[_0x3ae28a('0x2b')]));});});});},exports[_0x54df5c('0x12')]=function(_0x1b0248){const _0x2507bc=this;return new Promise(function(_0x2492bd,_0x3412b7){const _0x12ae04=a139_0x50cb;db[_0x12ae04('0x1d')]['describe']()[_0x12ae04('0x36')](function(_0x14a05c){const _0x4655fe=_0x12ae04;return db[_0x4655fe('0x15')]['findAll']({'raw':_0x1b0248[_0x4655fe('0x1a')]?_0x1b0248[_0x4655fe('0x1a')][_0x4655fe('0x4')]===undefined?!![]:![]:!![],'where':_0x1b0248[_0x4655fe('0x1a')]?_0x1b0248['options'][_0x4655fe('0x34')]||null:null,'attributes':_0x1b0248[_0x4655fe('0x1a')]?_0x1b0248[_0x4655fe('0x1a')]['attributes']||null:null,'limit':_0x1b0248['options']?_0x1b0248[_0x4655fe('0x1a')][_0x4655fe('0x1')]||null:null,'include':_0x1b0248[_0x4655fe('0x1a')]?_0x1b0248[_0x4655fe('0x1a')][_0x4655fe('0x14')]?_[_0x4655fe('0x39')](_0x1b0248[_0x4655fe('0x1a')]['include'],function(_0x5d45ff){const _0x3b10c3=_0x4655fe;return{'model':db[_0x5d45ff[_0x3b10c3('0x1e')]],'as':_0x5d45ff['as'],'attributes':_0x5d45ff['as']==='Contact'?_[_0x3b10c3('0x1f')](_0x14a05c):_0x5d45ff[_0x3b10c3('0x9')],'include':_0x5d45ff['include']?_[_0x3b10c3('0x39')](_0x5d45ff[_0x3b10c3('0x14')],function(_0x2519a0){const _0x3c7c55=_0x3b10c3;return{'model':db[_0x2519a0['model']],'as':_0x2519a0['as'],'attributes':_0x2519a0[_0x3c7c55('0x9')],'include':_0x2519a0[_0x3c7c55('0x14')]?_[_0x3c7c55('0x39')](_0x2519a0['include'],function(_0x521f14){const _0x430a12=_0x3c7c55;return{'model':db[_0x521f14[_0x430a12('0x1e')]],'as':_0x521f14['as'],'attributes':_0x521f14[_0x430a12('0x9')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1de5b6){const _0x26eeba=_0x4655fe;logger[_0x26eeba('0x2c')](_0x26eeba('0x29'),_0x1b0248),logger['debug'](_0x26eeba('0x29'),_0x1b0248,JSON[_0x26eeba('0x19')](_0x1de5b6)),_0x2492bd(_0x1de5b6);})['catch'](function(_0x537a93){const _0x41b06e=_0x4655fe;logger['error'](_0x41b06e('0x29'),_0x537a93[_0x41b06e('0x2b')],_0x1b0248),_0x3412b7(_0x2507bc[_0x41b06e('0x1c')](0x1f4,_0x537a93[_0x41b06e('0x2b')]));});});});}; \ No newline at end of file diff --git a/server/api/cmHopper/index.js b/server/api/cmHopper/index.js index f1c2d79..afb14af 100644 --- a/server/api/cmHopper/index.js +++ b/server/api/cmHopper/index.js @@ -1 +1 @@ -const a140_0x38de=['getPreview','post','exports','/:id','delete','show','/describe','/preview','destroy','../../components/auth/service','/opencontacts','get','index','isAuthenticated','describe','Router','create','getOpenContacts','put'];(function(_0x124bf7,_0x38dee8){const _0x447ffb=function(_0x4eeee8){while(--_0x4eeee8){_0x124bf7['push'](_0x124bf7['shift']());}};_0x447ffb(++_0x38dee8);}(a140_0x38de,0x74));const a140_0x447f=function(_0x124bf7,_0x38dee8){_0x124bf7=_0x124bf7-0x0;let _0x447ffb=a140_0x38de[_0x124bf7];return _0x447ffb;};const _0x3233c5=a140_0x447f;'use strict';const express=require('express'),router=express[_0x3233c5('0xd')](),auth=require(_0x3233c5('0x7')),controller=require('./cmHopper.controller');router[_0x3233c5('0x9')]('/',auth['isAuthenticated'](),controller[_0x3233c5('0xa')]),router['get'](_0x3233c5('0x4'),auth[_0x3233c5('0xb')](),controller[_0x3233c5('0xc')]),router[_0x3233c5('0x9')](_0x3233c5('0x8'),auth['isAuthenticated'](),controller[_0x3233c5('0xf')]),router['get'](_0x3233c5('0x1'),auth['isAuthenticated'](),controller[_0x3233c5('0x3')]),router[_0x3233c5('0x12')]('/',auth[_0x3233c5('0xb')](),controller[_0x3233c5('0xe')]),router[_0x3233c5('0x12')](_0x3233c5('0x5'),auth[_0x3233c5('0xb')](),controller[_0x3233c5('0x11')]),router[_0x3233c5('0x10')](_0x3233c5('0x1'),auth['isAuthenticated'](),controller['update']),router[_0x3233c5('0x2')](_0x3233c5('0x1'),auth['isAuthenticated'](),controller[_0x3233c5('0x6')]),module[_0x3233c5('0x0')]=router; \ No newline at end of file +const a140_0x3aac=['./cmHopper.controller','show','../../components/auth/service','describe','create','get','put','express','post','Router','getOpenContacts','exports','/preview','getPreview','/:id','update','/opencontacts','destroy','isAuthenticated'];(function(_0x45199d,_0x3aac36){const _0x22a416=function(_0x1e01ef){while(--_0x1e01ef){_0x45199d['push'](_0x45199d['shift']());}};_0x22a416(++_0x3aac36);}(a140_0x3aac,0x1f3));const a140_0x22a4=function(_0x45199d,_0x3aac36){_0x45199d=_0x45199d-0x0;let _0x22a416=a140_0x3aac[_0x45199d];return _0x22a416;};const _0x3814a4=a140_0x22a4;'use strict';const express=require(_0x3814a4('0x2')),router=express[_0x3814a4('0x4')](),auth=require(_0x3814a4('0x10')),controller=require(_0x3814a4('0xe'));router['get']('/',auth[_0x3814a4('0xd')](),controller['index']),router['get']('/describe',auth[_0x3814a4('0xd')](),controller[_0x3814a4('0x11')]),router[_0x3814a4('0x0')](_0x3814a4('0xb'),auth[_0x3814a4('0xd')](),controller[_0x3814a4('0x5')]),router[_0x3814a4('0x0')](_0x3814a4('0x9'),auth[_0x3814a4('0xd')](),controller[_0x3814a4('0xf')]),router['post']('/',auth['isAuthenticated'](),controller[_0x3814a4('0x12')]),router[_0x3814a4('0x3')](_0x3814a4('0x7'),auth[_0x3814a4('0xd')](),controller[_0x3814a4('0x8')]),router[_0x3814a4('0x1')](_0x3814a4('0x9'),auth[_0x3814a4('0xd')](),controller[_0x3814a4('0xa')]),router['delete'](_0x3814a4('0x9'),auth[_0x3814a4('0xd')](),controller[_0x3814a4('0xc')]),module[_0x3814a4('0x6')]=router; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.attributes.js b/server/api/cmHopperBlack/cmHopperBlack.attributes.js index 4e028a2..4be99d9 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.attributes.js +++ b/server/api/cmHopperBlack/cmHopperBlack.attributes.js @@ -1 +1 @@ -const a141_0x48bf=['sequelize','exports','INTEGER','STRING','contactListQueue'];(function(_0x454fe5,_0x48bf0c){const _0x8f0cc3=function(_0x17ee71){while(--_0x17ee71){_0x454fe5['push'](_0x454fe5['shift']());}};_0x8f0cc3(++_0x48bf0c);}(a141_0x48bf,0x90));const a141_0x8f0c=function(_0x454fe5,_0x48bf0c){_0x454fe5=_0x454fe5-0x0;let _0x8f0cc3=a141_0x48bf[_0x454fe5];return _0x8f0cc3;};const _0x4659ba=a141_0x8f0c;'use strict';const Sequelize=require(_0x4659ba('0x1'));module[_0x4659ba('0x2')]={'phone':{'type':Sequelize[_0x4659ba('0x4')],'allowNull':![]},'ContactId':{'type':Sequelize[_0x4659ba('0x3')],'unique':_0x4659ba('0x0')},'ListId':{'type':Sequelize[_0x4659ba('0x3')],'unique':_0x4659ba('0x0')},'VoiceQueueId':{'type':Sequelize[_0x4659ba('0x3')],'unique':_0x4659ba('0x0')}}; \ No newline at end of file +const a141_0x5d9b=['exports','contactListQueue','INTEGER'];(function(_0x49b800,_0x5d9b5b){const _0x302abc=function(_0x50a81a){while(--_0x50a81a){_0x49b800['push'](_0x49b800['shift']());}};_0x302abc(++_0x5d9b5b);}(a141_0x5d9b,0x10d));const a141_0x302a=function(_0x49b800,_0x5d9b5b){_0x49b800=_0x49b800-0x0;let _0x302abc=a141_0x5d9b[_0x49b800];return _0x302abc;};const _0x1a8e76=a141_0x302a;'use strict';const Sequelize=require('sequelize');module[_0x1a8e76('0x1')]={'phone':{'type':Sequelize['STRING'],'allowNull':![]},'ContactId':{'type':Sequelize['INTEGER'],'unique':'contactListQueue'},'ListId':{'type':Sequelize[_0x1a8e76('0x0')],'unique':_0x1a8e76('0x2')},'VoiceQueueId':{'type':Sequelize[_0x1a8e76('0x0')],'unique':_0x1a8e76('0x2')}}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.controller.js b/server/api/cmHopperBlack/cmHopperBlack.controller.js index 2a2c455..8442916 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.controller.js +++ b/server/api/cmHopperBlack/cmHopperBlack.controller.js @@ -1 +1 @@ -const a142_0xb677=['intersection','error','offset','lodash','attributes','end','name','query','json','params','type','map','set','filter','stack','pick','status','findOne','keys','nolimit','like','order','describe','body','send','VIRTUAL','destroy','then','../../config/logger','rawAttributes','CmHopperBlack','Content-Range','fields','catch','key','show','api','limit','includeAll','options','filters','count','sort','../../mysqldb','length','merge','model','findAll','include','where'];(function(_0x188144,_0xb6775){const _0x29ee82=function(_0x508ab9){while(--_0x508ab9){_0x188144['push'](_0x188144['shift']());}};_0x29ee82(++_0xb6775);}(a142_0xb677,0x1d7));const a142_0x29ee=function(_0x188144,_0xb6775){_0x188144=_0x188144-0x0;let _0x29ee82=a142_0xb677[_0x188144];return _0x29ee82;};const _0x21cc16=a142_0x29ee;'use strict';const _=require(_0x21cc16('0x20')),qs=require('../../components/parsers/qs'),logger=require(_0x21cc16('0x7'))(_0x21cc16('0xf')),db=require(_0x21cc16('0x16'))['db'],{Op}=require('sequelize');function respondWithResult(_0x508ab9,_0x9c6de4){return _0x9c6de4=_0x9c6de4||0xc8,function(_0x776a62){const _0x78e5a2=a142_0x29ee;if(_0x776a62)return _0x508ab9['status'](_0x9c6de4)[_0x78e5a2('0x25')](_0x776a62);};}function respondWithFilteredResult(_0x2c9629,_0x181482){return function(_0x573777){const _0x178dab=a142_0x29ee;if(_0x573777){const _0x27f427=_0x573777[_0x178dab('0x14')],_0x4ac5f7=_0x181482[_0x178dab('0x1f')];let _0x45c14a=_0x181482['offset']+_0x181482[_0x178dab('0x10')],_0x2d23d0;return _0x45c14a>=_0x27f427?(_0x45c14a=_0x27f427,_0x2d23d0=0xc8):_0x2d23d0=0xce,_0x2c9629[_0x178dab('0x2d')](_0x2d23d0),_0x2c9629[_0x178dab('0x29')](_0x178dab('0xa'),_0x4ac5f7+'-'+_0x45c14a+'/'+_0x27f427)[_0x178dab('0x25')](_0x573777);}return null;};}function saveUpdates(_0x5eea69){return function(_0x2d9f70){if(_0x2d9f70)return _0x2d9f70['update'](_0x5eea69)['then'](function(_0x32ab27){return _0x32ab27;});return null;};}function removeEntity(_0x10b45f){return function(_0x22b85e){const _0x302162=a142_0x29ee;if(_0x22b85e)return _0x22b85e[_0x302162('0x5')]()[_0x302162('0x6')](function(){const _0x31283d=_0x302162;_0x10b45f[_0x31283d('0x2d')](0xcc)[_0x31283d('0x22')]();});};}function handleEntityNotFound(_0x2b38c2){return function(_0x22430d){return!_0x22430d&&_0x2b38c2['sendStatus'](0x194),_0x22430d;};}function handleError(_0x4896ed,_0x17ba88){return _0x17ba88=_0x17ba88||0x1f4,function(_0xdfa271){const _0x3e4832=a142_0x29ee;logger[_0x3e4832('0x1e')](_0xdfa271[_0x3e4832('0x2b')]),_0xdfa271[_0x3e4832('0x23')]&&delete _0xdfa271[_0x3e4832('0x23')],_0x4896ed['status'](_0x17ba88)[_0x3e4832('0x3')](_0xdfa271);};}exports['index']=function(_0x1f2871,_0x42d29b){const _0x1a7c76=_0x21cc16;let _0x5997fb={};const _0x344093={},_0x42f385={'count':0x0,'rows':[]},_0x350e23=_[_0x1a7c76('0x28')](db[_0x1a7c76('0x9')]['rawAttributes'],function(_0x404bd5){const _0x19afd5=_0x1a7c76;return{'name':_0x404bd5['fieldName'],'type':_0x404bd5[_0x19afd5('0x27')][_0x19afd5('0xd')]};});_0x344093[_0x1a7c76('0x19')]=_[_0x1a7c76('0x28')](_0x350e23,'name'),_0x344093['query']=_[_0x1a7c76('0x2f')](_0x1f2871[_0x1a7c76('0x24')]),_0x344093[_0x1a7c76('0x13')]=_[_0x1a7c76('0x1d')](_0x344093[_0x1a7c76('0x19')],_0x344093[_0x1a7c76('0x24')]),_0x5997fb['attributes']=_[_0x1a7c76('0x1d')](_0x344093[_0x1a7c76('0x19')],qs['fields'](_0x1f2871[_0x1a7c76('0x24')][_0x1a7c76('0xb')])),_0x5997fb['attributes']=_0x5997fb[_0x1a7c76('0x21')][_0x1a7c76('0x17')]?_0x5997fb['attributes']:_0x344093[_0x1a7c76('0x19')];typeof _0x1f2871[_0x1a7c76('0x24')][_0x1a7c76('0x30')]==='undefined'&&(_0x5997fb[_0x1a7c76('0x10')]=qs['limit'](_0x1f2871[_0x1a7c76('0x24')][_0x1a7c76('0x10')]),_0x5997fb['offset']=qs[_0x1a7c76('0x1f')](_0x1f2871[_0x1a7c76('0x24')][_0x1a7c76('0x1f')]));_0x5997fb[_0x1a7c76('0x0')]=qs[_0x1a7c76('0x15')](_0x1f2871[_0x1a7c76('0x24')][_0x1a7c76('0x15')]),_0x5997fb[_0x1a7c76('0x1c')]=qs['filters'](_[_0x1a7c76('0x2c')](_0x1f2871[_0x1a7c76('0x24')],_0x344093['filters']),_0x350e23);_0x1f2871[_0x1a7c76('0x24')][_0x1a7c76('0x2a')]&&(_0x5997fb[_0x1a7c76('0x1c')]=_[_0x1a7c76('0x18')](_0x5997fb[_0x1a7c76('0x1c')],{[Op['or']]:_[_0x1a7c76('0x28')](_0x350e23,function(_0x32a301){const _0x5bfe08=_0x1a7c76;if(_0x32a301['type']!==_0x5bfe08('0x4')){const _0x2389e3={};return _0x2389e3[_0x32a301[_0x5bfe08('0x23')]]={[Op[_0x5bfe08('0x31')]]:'%'+_0x1f2871['query'][_0x5bfe08('0x2a')]+'%'},_0x2389e3;}})}));_0x5997fb=_[_0x1a7c76('0x18')]({},_0x5997fb,_0x1f2871[_0x1a7c76('0x12')]);const _0xa053d5={'where':_0x5997fb[_0x1a7c76('0x1c')]};return db[_0x1a7c76('0x9')][_0x1a7c76('0x14')](_0xa053d5)['then'](function(_0x380fc9){const _0xe59ad6=_0x1a7c76;return _0x42f385[_0xe59ad6('0x14')]=_0x380fc9,_0x1f2871[_0xe59ad6('0x24')]['includeAll']&&(_0x5997fb[_0xe59ad6('0x1b')]=[{'all':!![]}]),db[_0xe59ad6('0x9')][_0xe59ad6('0x1a')](_0x5997fb);})[_0x1a7c76('0x6')](function(_0x91324c){return _0x42f385['rows']=_0x91324c,_0x42f385;})['then'](respondWithFilteredResult(_0x42d29b,_0x5997fb))['catch'](handleError(_0x42d29b,null));},exports[_0x21cc16('0xe')]=function(_0x165b8c,_0x4736cf){const _0x263c68=_0x21cc16;let _0x22b887={'raw':!![],'where':{'id':_0x165b8c[_0x263c68('0x26')]['id']}};const _0x1070c9={};return _0x1070c9[_0x263c68('0x19')]=_[_0x263c68('0x2f')](db['CmHopperBlack'][_0x263c68('0x8')]),_0x1070c9['query']=_[_0x263c68('0x2f')](_0x165b8c[_0x263c68('0x24')]),_0x1070c9['filters']=_[_0x263c68('0x1d')](_0x1070c9[_0x263c68('0x19')],_0x1070c9['query']),_0x22b887[_0x263c68('0x21')]=_[_0x263c68('0x1d')](_0x1070c9[_0x263c68('0x19')],qs[_0x263c68('0xb')](_0x165b8c['query']['fields'])),_0x22b887[_0x263c68('0x21')]=_0x22b887[_0x263c68('0x21')][_0x263c68('0x17')]?_0x22b887['attributes']:_0x1070c9['model'],_0x165b8c[_0x263c68('0x24')][_0x263c68('0x11')]&&(_0x22b887[_0x263c68('0x1b')]=[{'all':!![]}]),_0x22b887=_[_0x263c68('0x18')]({},_0x22b887,_0x165b8c[_0x263c68('0x12')]),db['CmHopperBlack'][_0x263c68('0x2e')](_0x22b887)[_0x263c68('0x6')](handleEntityNotFound(_0x4736cf,null))[_0x263c68('0x6')](respondWithResult(_0x4736cf,null))['catch'](handleError(_0x4736cf,null));},exports['update']=function(_0x5a1a6b,_0x37c436){const _0x32dcf7=_0x21cc16;return _0x5a1a6b[_0x32dcf7('0x2')]['id']&&delete _0x5a1a6b[_0x32dcf7('0x2')]['id'],db['CmHopperBlack'][_0x32dcf7('0x2e')]({'where':{'id':_0x5a1a6b[_0x32dcf7('0x26')]['id']}})[_0x32dcf7('0x6')](handleEntityNotFound(_0x37c436,null))[_0x32dcf7('0x6')](saveUpdates(_0x5a1a6b[_0x32dcf7('0x2')],null))[_0x32dcf7('0x6')](respondWithResult(_0x37c436,null))['catch'](handleError(_0x37c436,null));},exports[_0x21cc16('0x5')]=function(_0xb1578c,_0x5ded7c){const _0x2cf751=_0x21cc16;return db[_0x2cf751('0x9')][_0x2cf751('0x2e')]({'where':{'id':_0xb1578c[_0x2cf751('0x26')]['id']}})[_0x2cf751('0x6')](handleEntityNotFound(_0x5ded7c,null))['then'](removeEntity(_0x5ded7c,null))[_0x2cf751('0xc')](handleError(_0x5ded7c,null));},exports[_0x21cc16('0x1')]=function(_0x5f0e6c,_0x4289d1){const _0x5154a5=_0x21cc16;return db[_0x5154a5('0x9')]['describe']()[_0x5154a5('0x6')](respondWithResult(_0x4289d1,null))[_0x5154a5('0xc')](handleError(_0x4289d1,null));}; \ No newline at end of file +const a142_0x62e9=['type','filter','count','update','includeAll','model','fields','catch','sequelize','../../components/parsers/qs','order','fieldName','offset','intersection','map','status','include','error','name','stack','filters','merge','show','destroy','rows','params','length','limit','../../config/logger','findAll','end','sendStatus','where','CmHopperBlack','key','set','keys','sort','like','api','findOne','body','rawAttributes','../../mysqldb','json','then','describe','pick','attributes','query'];(function(_0x48428c,_0x62e9ed){const _0xec4802=function(_0x2d8fbb){while(--_0x2d8fbb){_0x48428c['push'](_0x48428c['shift']());}};_0xec4802(++_0x62e9ed);}(a142_0x62e9,0x191));const a142_0xec48=function(_0x48428c,_0x62e9ed){_0x48428c=_0x48428c-0x0;let _0xec4802=a142_0x62e9[_0x48428c];return _0xec4802;};const _0x1ca727=a142_0xec48;'use strict';const _=require('lodash'),qs=require(_0x1ca727('0x8')),logger=require(_0x1ca727('0x1b'))(_0x1ca727('0x26')),db=require(_0x1ca727('0x2a'))['db'],{Op}=require(_0x1ca727('0x7'));function respondWithResult(_0x2d8fbb,_0x63903e){return _0x63903e=_0x63903e||0xc8,function(_0x212b90){const _0x470b3b=a142_0xec48;if(_0x212b90)return _0x2d8fbb[_0x470b3b('0xe')](_0x63903e)[_0x470b3b('0x2b')](_0x212b90);};}function respondWithFilteredResult(_0x160805,_0x33c2ba){return function(_0x173120){const _0x15ab26=a142_0xec48;if(_0x173120){const _0x55d884=_0x173120[_0x15ab26('0x1')],_0x451a1e=_0x33c2ba[_0x15ab26('0xb')];let _0x27ba7a=_0x33c2ba['offset']+_0x33c2ba['limit'],_0x3a3161;return _0x27ba7a>=_0x55d884?(_0x27ba7a=_0x55d884,_0x3a3161=0xc8):_0x3a3161=0xce,_0x160805['status'](_0x3a3161),_0x160805[_0x15ab26('0x22')]('Content-Range',_0x451a1e+'-'+_0x27ba7a+'/'+_0x55d884)[_0x15ab26('0x2b')](_0x173120);}return null;};}function saveUpdates(_0x4b97c4){return function(_0x289bc8){const _0x716931=a142_0xec48;if(_0x289bc8)return _0x289bc8[_0x716931('0x2')](_0x4b97c4)['then'](function(_0x362220){return _0x362220;});return null;};}function removeEntity(_0x582c8a){return function(_0x5787ea){const _0x156091=a142_0xec48;if(_0x5787ea)return _0x5787ea['destroy']()[_0x156091('0x2c')](function(){const _0x7ccd0b=_0x156091;_0x582c8a[_0x7ccd0b('0xe')](0xcc)[_0x7ccd0b('0x1d')]();});};}function handleEntityNotFound(_0x539497){return function(_0x2098ff){const _0x2c45cd=a142_0xec48;return!_0x2098ff&&_0x539497[_0x2c45cd('0x1e')](0x194),_0x2098ff;};}function handleError(_0x45ec5e,_0x26c75b){return _0x26c75b=_0x26c75b||0x1f4,function(_0x57b220){const _0x57eb30=a142_0xec48;logger[_0x57eb30('0x10')](_0x57b220[_0x57eb30('0x12')]),_0x57b220[_0x57eb30('0x11')]&&delete _0x57b220[_0x57eb30('0x11')],_0x45ec5e['status'](_0x26c75b)['send'](_0x57b220);};}exports['index']=function(_0x55cf75,_0xab773d){const _0x180b4f=_0x1ca727;let _0x4bf7a9={};const _0x5cdf1b={},_0x4da97e={'count':0x0,'rows':[]},_0x47c482=_['map'](db[_0x180b4f('0x20')][_0x180b4f('0x29')],function(_0x1c0d65){const _0x3ef53d=_0x180b4f;return{'name':_0x1c0d65[_0x3ef53d('0xa')],'type':_0x1c0d65[_0x3ef53d('0x31')][_0x3ef53d('0x21')]};});_0x5cdf1b[_0x180b4f('0x4')]=_[_0x180b4f('0xd')](_0x47c482,_0x180b4f('0x11')),_0x5cdf1b[_0x180b4f('0x30')]=_[_0x180b4f('0x23')](_0x55cf75[_0x180b4f('0x30')]),_0x5cdf1b[_0x180b4f('0x13')]=_[_0x180b4f('0xc')](_0x5cdf1b['model'],_0x5cdf1b['query']),_0x4bf7a9[_0x180b4f('0x2f')]=_[_0x180b4f('0xc')](_0x5cdf1b['model'],qs[_0x180b4f('0x5')](_0x55cf75[_0x180b4f('0x30')]['fields'])),_0x4bf7a9[_0x180b4f('0x2f')]=_0x4bf7a9[_0x180b4f('0x2f')][_0x180b4f('0x19')]?_0x4bf7a9[_0x180b4f('0x2f')]:_0x5cdf1b[_0x180b4f('0x4')];typeof _0x55cf75[_0x180b4f('0x30')]['nolimit']==='undefined'&&(_0x4bf7a9['limit']=qs[_0x180b4f('0x1a')](_0x55cf75[_0x180b4f('0x30')][_0x180b4f('0x1a')]),_0x4bf7a9[_0x180b4f('0xb')]=qs[_0x180b4f('0xb')](_0x55cf75[_0x180b4f('0x30')]['offset']));_0x4bf7a9[_0x180b4f('0x9')]=qs[_0x180b4f('0x24')](_0x55cf75['query'][_0x180b4f('0x24')]),_0x4bf7a9[_0x180b4f('0x1f')]=qs[_0x180b4f('0x13')](_[_0x180b4f('0x2e')](_0x55cf75[_0x180b4f('0x30')],_0x5cdf1b[_0x180b4f('0x13')]),_0x47c482);_0x55cf75[_0x180b4f('0x30')]['filter']&&(_0x4bf7a9['where']=_[_0x180b4f('0x14')](_0x4bf7a9[_0x180b4f('0x1f')],{[Op['or']]:_[_0x180b4f('0xd')](_0x47c482,function(_0x31400b){const _0x44cef1=_0x180b4f;if(_0x31400b[_0x44cef1('0x31')]!=='VIRTUAL'){const _0x4b39b9={};return _0x4b39b9[_0x31400b['name']]={[Op[_0x44cef1('0x25')]]:'%'+_0x55cf75[_0x44cef1('0x30')][_0x44cef1('0x0')]+'%'},_0x4b39b9;}})}));_0x4bf7a9=_[_0x180b4f('0x14')]({},_0x4bf7a9,_0x55cf75['options']);const _0x566fdb={'where':_0x4bf7a9[_0x180b4f('0x1f')]};return db[_0x180b4f('0x20')][_0x180b4f('0x1')](_0x566fdb)[_0x180b4f('0x2c')](function(_0x319ca5){const _0x9fefa5=_0x180b4f;return _0x4da97e[_0x9fefa5('0x1')]=_0x319ca5,_0x55cf75[_0x9fefa5('0x30')][_0x9fefa5('0x3')]&&(_0x4bf7a9[_0x9fefa5('0xf')]=[{'all':!![]}]),db['CmHopperBlack'][_0x9fefa5('0x1c')](_0x4bf7a9);})['then'](function(_0x12c13c){const _0x11f515=_0x180b4f;return _0x4da97e[_0x11f515('0x17')]=_0x12c13c,_0x4da97e;})[_0x180b4f('0x2c')](respondWithFilteredResult(_0xab773d,_0x4bf7a9))[_0x180b4f('0x6')](handleError(_0xab773d,null));},exports[_0x1ca727('0x15')]=function(_0x3b4acb,_0x708b7f){const _0x35c33e=_0x1ca727;let _0x397be5={'raw':!![],'where':{'id':_0x3b4acb[_0x35c33e('0x18')]['id']}};const _0x3b96ec={};return _0x3b96ec[_0x35c33e('0x4')]=_['keys'](db['CmHopperBlack'][_0x35c33e('0x29')]),_0x3b96ec[_0x35c33e('0x30')]=_[_0x35c33e('0x23')](_0x3b4acb[_0x35c33e('0x30')]),_0x3b96ec[_0x35c33e('0x13')]=_[_0x35c33e('0xc')](_0x3b96ec[_0x35c33e('0x4')],_0x3b96ec['query']),_0x397be5[_0x35c33e('0x2f')]=_[_0x35c33e('0xc')](_0x3b96ec[_0x35c33e('0x4')],qs[_0x35c33e('0x5')](_0x3b4acb[_0x35c33e('0x30')][_0x35c33e('0x5')])),_0x397be5[_0x35c33e('0x2f')]=_0x397be5[_0x35c33e('0x2f')]['length']?_0x397be5[_0x35c33e('0x2f')]:_0x3b96ec[_0x35c33e('0x4')],_0x3b4acb[_0x35c33e('0x30')]['includeAll']&&(_0x397be5[_0x35c33e('0xf')]=[{'all':!![]}]),_0x397be5=_[_0x35c33e('0x14')]({},_0x397be5,_0x3b4acb['options']),db[_0x35c33e('0x20')][_0x35c33e('0x27')](_0x397be5)[_0x35c33e('0x2c')](handleEntityNotFound(_0x708b7f,null))[_0x35c33e('0x2c')](respondWithResult(_0x708b7f,null))[_0x35c33e('0x6')](handleError(_0x708b7f,null));},exports[_0x1ca727('0x2')]=function(_0x1c835d,_0x22bd4a){const _0xee6230=_0x1ca727;return _0x1c835d[_0xee6230('0x28')]['id']&&delete _0x1c835d[_0xee6230('0x28')]['id'],db[_0xee6230('0x20')][_0xee6230('0x27')]({'where':{'id':_0x1c835d[_0xee6230('0x18')]['id']}})[_0xee6230('0x2c')](handleEntityNotFound(_0x22bd4a,null))[_0xee6230('0x2c')](saveUpdates(_0x1c835d[_0xee6230('0x28')],null))[_0xee6230('0x2c')](respondWithResult(_0x22bd4a,null))['catch'](handleError(_0x22bd4a,null));},exports[_0x1ca727('0x16')]=function(_0x17c4c2,_0x297a66){const _0x51b4f2=_0x1ca727;return db[_0x51b4f2('0x20')]['findOne']({'where':{'id':_0x17c4c2['params']['id']}})[_0x51b4f2('0x2c')](handleEntityNotFound(_0x297a66,null))[_0x51b4f2('0x2c')](removeEntity(_0x297a66,null))['catch'](handleError(_0x297a66,null));},exports['describe']=function(_0x4bd3c5,_0x355277){const _0x3be499=_0x1ca727;return db[_0x3be499('0x20')][_0x3be499('0x2d')]()[_0x3be499('0x2c')](respondWithResult(_0x355277,null))[_0x3be499('0x6')](handleError(_0x355277,null));}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.model.js b/server/api/cmHopperBlack/cmHopperBlack.model.js index 8807781..47849e5 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.model.js +++ b/server/api/cmHopperBlack/cmHopperBlack.model.js @@ -1 +1 @@ -const a143_0x4df9=['CmHopperBlack','./cmHopperBlack.attributes','cm_hopper_black'];(function(_0x3e99c2,_0x4df903){const _0x18959e=function(_0x3d1dd9){while(--_0x3d1dd9){_0x3e99c2['push'](_0x3e99c2['shift']());}};_0x18959e(++_0x4df903);}(a143_0x4df9,0x147));const a143_0x1895=function(_0x3e99c2,_0x4df903){_0x3e99c2=_0x3e99c2-0x0;let _0x18959e=a143_0x4df9[_0x3e99c2];return _0x18959e;};const _0x1dcb38=a143_0x1895;'use strict';const attributes=require(_0x1dcb38('0x1'));module['exports']=function(_0x3d1dd9){const _0x58beae=_0x1dcb38,_0x3133c3=_0x3d1dd9['define'](_0x58beae('0x0'),attributes,{'tableName':_0x58beae('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3133c3;}; \ No newline at end of file +const a143_0x54d0=['exports','define','./cmHopperBlack.attributes','CmHopperBlack'];(function(_0x3a0ebd,_0x54d084){const _0x41ee63=function(_0x322fcd){while(--_0x322fcd){_0x3a0ebd['push'](_0x3a0ebd['shift']());}};_0x41ee63(++_0x54d084);}(a143_0x54d0,0x1b9));const a143_0x41ee=function(_0x3a0ebd,_0x54d084){_0x3a0ebd=_0x3a0ebd-0x0;let _0x41ee63=a143_0x54d0[_0x3a0ebd];return _0x41ee63;};const _0x2c13a9=a143_0x41ee;'use strict';const attributes=require(_0x2c13a9('0x1'));module[_0x2c13a9('0x3')]=function(_0x322fcd){const _0x11a986=_0x2c13a9,_0x9eae43=_0x322fcd[_0x11a986('0x0')](_0x11a986('0x2'),attributes,{'tableName':'cm_hopper_black','paranoid':![],'indexes':[],'timestamps':!![]});return _0x9eae43;}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/cmHopperBlack.rpc.js b/server/api/cmHopperBlack/cmHopperBlack.rpc.js index a2a5d8a..331d577 100644 --- a/server/api/cmHopperBlack/cmHopperBlack.rpc.js +++ b/server/api/cmHopperBlack/cmHopperBlack.rpc.js @@ -1 +1 @@ -const a144_0xb64a=['info','lodash','map','catch','findAll','stringify','debug','UpdateCmHopperBlack','options','CmHopperBlack','message','DestroyCmHopperBlack','include','update','body','error','destroy','model','limit','../../config/logger','rpc','../../mysqldb','GetCmHopperBlack','attributes','where','raw'];(function(_0xe29c13,_0xb64aaf){const _0x15cce0=function(_0x2fb5c9){while(--_0x2fb5c9){_0xe29c13['push'](_0xe29c13['shift']());}};_0x15cce0(++_0xb64aaf);}(a144_0xb64a,0x15a));const a144_0x15cc=function(_0xe29c13,_0xb64aaf){_0xe29c13=_0xe29c13-0x0;let _0x15cce0=a144_0xb64a[_0xe29c13];return _0x15cce0;};const _0x25a62e=a144_0x15cc;'use strict';const _=require(_0x25a62e('0x13')),db=require(_0x25a62e('0xd'))['db'],logger=require(_0x25a62e('0xb'))(_0x25a62e('0xc'));exports['GetCmHopperBlack']=function(_0x2fb5c9){const _0x3bc78e=this;return new Promise(function(_0x1a1e6e,_0x2a7dd9){const _0x2f30aa=a144_0x15cc;return db[_0x2f30aa('0x1')][_0x2f30aa('0x16')]({'raw':_0x2fb5c9[_0x2f30aa('0x0')]?_0x2fb5c9[_0x2f30aa('0x0')][_0x2f30aa('0x11')]===undefined?!![]:![]:!![],'where':_0x2fb5c9[_0x2f30aa('0x0')]?_0x2fb5c9[_0x2f30aa('0x0')]['where']||null:null,'attributes':_0x2fb5c9[_0x2f30aa('0x0')]?_0x2fb5c9[_0x2f30aa('0x0')][_0x2f30aa('0xf')]||null:null,'limit':_0x2fb5c9['options']?_0x2fb5c9[_0x2f30aa('0x0')][_0x2f30aa('0xa')]||null:null,'include':_0x2fb5c9[_0x2f30aa('0x0')]?_0x2fb5c9[_0x2f30aa('0x0')][_0x2f30aa('0x4')]?_['map'](_0x2fb5c9[_0x2f30aa('0x0')]['include'],function(_0x60ad0e){const _0x3a121e=_0x2f30aa;return{'model':db[_0x60ad0e[_0x3a121e('0x9')]],'as':_0x60ad0e['as'],'attributes':_0x60ad0e['attributes'],'include':_0x60ad0e[_0x3a121e('0x4')]?_[_0x3a121e('0x14')](_0x60ad0e['include'],function(_0x2f6c17){const _0x4a9ab6=_0x3a121e;return{'model':db[_0x2f6c17['model']],'as':_0x2f6c17['as'],'attributes':_0x2f6c17[_0x4a9ab6('0xf')],'include':_0x2f6c17['include']?_[_0x4a9ab6('0x14')](_0x2f6c17[_0x4a9ab6('0x4')],function(_0x49a942){const _0x4d8f23=_0x4a9ab6;return{'model':db[_0x49a942[_0x4d8f23('0x9')]],'as':_0x49a942['as'],'attributes':_0x49a942[_0x4d8f23('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2bfbba){const _0x1e5d24=_0x2f30aa;logger[_0x1e5d24('0x12')]('GetCmHopperBlack',_0x2fb5c9),logger[_0x1e5d24('0x18')](_0x1e5d24('0xe'),_0x2fb5c9,JSON[_0x1e5d24('0x17')](_0x2bfbba)),_0x1a1e6e(_0x2bfbba);})[_0x2f30aa('0x15')](function(_0x370c03){const _0x14af03=_0x2f30aa;logger['error']('GetCmHopperBlack',_0x370c03['message'],_0x2fb5c9),_0x2a7dd9(_0x3bc78e[_0x14af03('0x7')](0x1f4,_0x370c03[_0x14af03('0x2')]));});});},exports[_0x25a62e('0x19')]=function(_0x8d458e){const _0x1b8ce6=this;return new Promise(function(_0x599ba1,_0x4a65df){const _0x206725=a144_0x15cc;return db[_0x206725('0x1')][_0x206725('0x5')](_0x8d458e[_0x206725('0x6')],{'raw':_0x8d458e['options']?_0x8d458e['options'][_0x206725('0x11')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x8d458e[_0x206725('0x0')]?_0x8d458e['options'][_0x206725('0x10')]||null:null,'attributes':_0x8d458e[_0x206725('0x0')]?_0x8d458e[_0x206725('0x0')][_0x206725('0xf')]||null:null,'limit':_0x8d458e[_0x206725('0x0')]?_0x8d458e[_0x206725('0x0')][_0x206725('0xa')]||null:null})['then'](function(_0x497641){const _0x4bc4f5=_0x206725;logger[_0x4bc4f5('0x12')]('UpdateCmHopperBlack',_0x8d458e),logger[_0x4bc4f5('0x18')](_0x4bc4f5('0x19'),_0x8d458e,JSON['stringify'](_0x497641)),_0x599ba1(_0x497641);})[_0x206725('0x15')](function(_0x160291){const _0x1c339a=_0x206725;logger['error'](_0x1c339a('0x19'),_0x160291[_0x1c339a('0x2')],_0x8d458e),_0x4a65df(_0x1b8ce6[_0x1c339a('0x7')](0x1f4,_0x160291[_0x1c339a('0x2')]));});});},exports[_0x25a62e('0x3')]=function(_0xb93aa9){const _0x1decd2=this;return new Promise(function(_0x11d0d3,_0x853971){const _0x401c4b=a144_0x15cc;return db[_0x401c4b('0x1')][_0x401c4b('0x8')]({'where':_0xb93aa9[_0x401c4b('0x0')]?_0xb93aa9[_0x401c4b('0x0')][_0x401c4b('0x10')]||null:null})['then'](function(_0x1d250d){const _0x199157=_0x401c4b;logger[_0x199157('0x12')]('DestroyCmHopperBlack',_0xb93aa9),logger['debug'](_0x199157('0x3'),_0xb93aa9,JSON[_0x199157('0x17')](_0x1d250d)),_0x11d0d3(_0x1d250d);})[_0x401c4b('0x15')](function(_0x4bff22){const _0x4cad48=_0x401c4b;logger[_0x4cad48('0x7')](_0x4cad48('0x3'),_0x4bff22[_0x4cad48('0x2')],_0xb93aa9),_0x853971(_0x1decd2[_0x4cad48('0x7')](0x1f4,_0x4bff22[_0x4cad48('0x2')]));});});}; \ No newline at end of file +const a144_0x44fc=['error','DestroyCmHopperBlack','stringify','info','raw','catch','GetCmHopperBlack','rpc','destroy','where','UpdateCmHopperBlack','body','attributes','then','model','include','map','../../mysqldb','../../config/logger','debug','limit','lodash','options','findAll','message','CmHopperBlack'];(function(_0x5adf4a,_0x44fcfa){const _0x1a486c=function(_0x5cdca0){while(--_0x5cdca0){_0x5adf4a['push'](_0x5adf4a['shift']());}};_0x1a486c(++_0x44fcfa);}(a144_0x44fc,0x1cf));const a144_0x1a48=function(_0x5adf4a,_0x44fcfa){_0x5adf4a=_0x5adf4a-0x0;let _0x1a486c=a144_0x44fc[_0x5adf4a];return _0x1a486c;};const _0x236343=a144_0x1a48;'use strict';const _=require(_0x236343('0x0')),db=require(_0x236343('0x16'))['db'],logger=require(_0x236343('0x17'))(_0x236343('0xc'));exports[_0x236343('0xb')]=function(_0x5cdca0){const _0x4a5e78=this;return new Promise(function(_0x284350,_0xbd99e9){const _0x133d55=a144_0x1a48;return db[_0x133d55('0x4')][_0x133d55('0x2')]({'raw':_0x5cdca0[_0x133d55('0x1')]?_0x5cdca0['options']['raw']===undefined?!![]:![]:!![],'where':_0x5cdca0[_0x133d55('0x1')]?_0x5cdca0['options'][_0x133d55('0xe')]||null:null,'attributes':_0x5cdca0[_0x133d55('0x1')]?_0x5cdca0[_0x133d55('0x1')][_0x133d55('0x11')]||null:null,'limit':_0x5cdca0[_0x133d55('0x1')]?_0x5cdca0[_0x133d55('0x1')][_0x133d55('0x19')]||null:null,'include':_0x5cdca0[_0x133d55('0x1')]?_0x5cdca0[_0x133d55('0x1')]['include']?_['map'](_0x5cdca0[_0x133d55('0x1')][_0x133d55('0x14')],function(_0x3e5866){const _0x13aea4=_0x133d55;return{'model':db[_0x3e5866['model']],'as':_0x3e5866['as'],'attributes':_0x3e5866[_0x13aea4('0x11')],'include':_0x3e5866[_0x13aea4('0x14')]?_['map'](_0x3e5866[_0x13aea4('0x14')],function(_0x2bf2bc){const _0x4ad064=_0x13aea4;return{'model':db[_0x2bf2bc[_0x4ad064('0x13')]],'as':_0x2bf2bc['as'],'attributes':_0x2bf2bc['attributes'],'include':_0x2bf2bc[_0x4ad064('0x14')]?_[_0x4ad064('0x15')](_0x2bf2bc[_0x4ad064('0x14')],function(_0x4dc976){const _0x15a99e=_0x4ad064;return{'model':db[_0x4dc976['model']],'as':_0x4dc976['as'],'attributes':_0x4dc976[_0x15a99e('0x11')]};}):[]};}):[]};}):[]:[]})[_0x133d55('0x12')](function(_0x3c37c3){const _0x2a7dd6=_0x133d55;logger[_0x2a7dd6('0x8')]('GetCmHopperBlack',_0x5cdca0),logger[_0x2a7dd6('0x18')](_0x2a7dd6('0xb'),_0x5cdca0,JSON[_0x2a7dd6('0x7')](_0x3c37c3)),_0x284350(_0x3c37c3);})[_0x133d55('0xa')](function(_0x286dfb){const _0xb926ea=_0x133d55;logger[_0xb926ea('0x5')](_0xb926ea('0xb'),_0x286dfb[_0xb926ea('0x3')],_0x5cdca0),_0xbd99e9(_0x4a5e78['error'](0x1f4,_0x286dfb['message']));});});},exports[_0x236343('0xf')]=function(_0x431161){const _0x5fa219=this;return new Promise(function(_0x250fab,_0x48284b){const _0x11f273=a144_0x1a48;return db[_0x11f273('0x4')]['update'](_0x431161[_0x11f273('0x10')],{'raw':_0x431161[_0x11f273('0x1')]?_0x431161[_0x11f273('0x1')][_0x11f273('0x9')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x431161[_0x11f273('0x1')]?_0x431161[_0x11f273('0x1')][_0x11f273('0xe')]||null:null,'attributes':_0x431161[_0x11f273('0x1')]?_0x431161[_0x11f273('0x1')]['attributes']||null:null,'limit':_0x431161[_0x11f273('0x1')]?_0x431161[_0x11f273('0x1')][_0x11f273('0x19')]||null:null})['then'](function(_0xdc57c4){const _0x497dcb=_0x11f273;logger[_0x497dcb('0x8')](_0x497dcb('0xf'),_0x431161),logger['debug'](_0x497dcb('0xf'),_0x431161,JSON['stringify'](_0xdc57c4)),_0x250fab(_0xdc57c4);})[_0x11f273('0xa')](function(_0xbb6cdb){const _0x3ca3e6=_0x11f273;logger[_0x3ca3e6('0x5')](_0x3ca3e6('0xf'),_0xbb6cdb[_0x3ca3e6('0x3')],_0x431161),_0x48284b(_0x5fa219[_0x3ca3e6('0x5')](0x1f4,_0xbb6cdb[_0x3ca3e6('0x3')]));});});},exports['DestroyCmHopperBlack']=function(_0x50c4e9){const _0x12b136=this;return new Promise(function(_0x5b9725,_0x25adb5){const _0x17dd83=a144_0x1a48;return db[_0x17dd83('0x4')][_0x17dd83('0xd')]({'where':_0x50c4e9[_0x17dd83('0x1')]?_0x50c4e9[_0x17dd83('0x1')][_0x17dd83('0xe')]||null:null})[_0x17dd83('0x12')](function(_0x1c0fa4){const _0x303c0e=_0x17dd83;logger[_0x303c0e('0x8')]('DestroyCmHopperBlack',_0x50c4e9),logger['debug'](_0x303c0e('0x6'),_0x50c4e9,JSON[_0x303c0e('0x7')](_0x1c0fa4)),_0x5b9725(_0x1c0fa4);})[_0x17dd83('0xa')](function(_0x5312c3){const _0xc16d84=_0x17dd83;logger[_0xc16d84('0x5')](_0xc16d84('0x6'),_0x5312c3['message'],_0x50c4e9),_0x25adb5(_0x12b136[_0xc16d84('0x5')](0x1f4,_0x5312c3[_0xc16d84('0x3')]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperBlack/index.js b/server/api/cmHopperBlack/index.js index 3584c28..57b576e 100644 --- a/server/api/cmHopperBlack/index.js +++ b/server/api/cmHopperBlack/index.js @@ -1 +1 @@ -const a145_0x560d=['update','destroy','/describe','index','/:id','describe','exports','get','show','isAuthenticated','delete','./cmHopperBlack.controller'];(function(_0x6f0b79,_0x560dc6){const _0x356f92=function(_0x533d67){while(--_0x533d67){_0x6f0b79['push'](_0x6f0b79['shift']());}};_0x356f92(++_0x560dc6);}(a145_0x560d,0x1bd));const a145_0x356f=function(_0x6f0b79,_0x560dc6){_0x6f0b79=_0x6f0b79-0x0;let _0x356f92=a145_0x560d[_0x6f0b79];return _0x356f92;};const _0x45aa75=a145_0x356f;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x45aa75('0xa'));router[_0x45aa75('0x6')]('/',auth[_0x45aa75('0x8')](),controller[_0x45aa75('0x2')]),router[_0x45aa75('0x6')](_0x45aa75('0x1'),auth[_0x45aa75('0x8')](),controller[_0x45aa75('0x4')]),router[_0x45aa75('0x6')](_0x45aa75('0x3'),auth[_0x45aa75('0x8')](),controller[_0x45aa75('0x7')]),router['put']('/:id',auth[_0x45aa75('0x8')](),controller[_0x45aa75('0xb')]),router[_0x45aa75('0x9')](_0x45aa75('0x3'),auth['isAuthenticated'](),controller[_0x45aa75('0x0')]),module[_0x45aa75('0x5')]=router; \ No newline at end of file +const a145_0x5e07=['isAuthenticated','/:id','Router','index','/describe','describe','put','get','../../components/auth/service','delete','exports'];(function(_0x32c9bf,_0x5e0785){const _0x5f1f37=function(_0x59a607){while(--_0x59a607){_0x32c9bf['push'](_0x32c9bf['shift']());}};_0x5f1f37(++_0x5e0785);}(a145_0x5e07,0xe3));const a145_0x5f1f=function(_0x32c9bf,_0x5e0785){_0x32c9bf=_0x32c9bf-0x0;let _0x5f1f37=a145_0x5e07[_0x32c9bf];return _0x5f1f37;};const _0x2e40ec=a145_0x5f1f;'use strict';const express=require('express'),router=express[_0x2e40ec('0x6')](),auth=require(_0x2e40ec('0x1')),controller=require('./cmHopperBlack.controller');router[_0x2e40ec('0x0')]('/',auth[_0x2e40ec('0x4')](),controller[_0x2e40ec('0x7')]),router['get'](_0x2e40ec('0x8'),auth[_0x2e40ec('0x4')](),controller[_0x2e40ec('0x9')]),router[_0x2e40ec('0x0')](_0x2e40ec('0x5'),auth[_0x2e40ec('0x4')](),controller['show']),router[_0x2e40ec('0xa')](_0x2e40ec('0x5'),auth[_0x2e40ec('0x4')](),controller['update']),router[_0x2e40ec('0x2')]('/:id',auth[_0x2e40ec('0x4')](),controller['destroy']),module[_0x2e40ec('0x3')]=router; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.attributes.js b/server/api/cmHopperFinal/cmHopperFinal.attributes.js index 790fee5..0a20aec 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.attributes.js +++ b/server/api/cmHopperFinal/cmHopperFinal.attributes.js @@ -1 +1 @@ -const a146_0x2bd1=['DATE','BOOLEAN','diff','STRING','getDataValue','moment','followuptime','endtime','setDataValue','INTEGER','dispositionat','sequelize','exports'];(function(_0x2bd7ac,_0x2bd18d){const _0x249b06=function(_0x13ceee){while(--_0x13ceee){_0x2bd7ac['push'](_0x2bd7ac['shift']());}};_0x249b06(++_0x2bd18d);}(a146_0x2bd1,0x108));const a146_0x249b=function(_0x2bd7ac,_0x2bd18d){_0x2bd7ac=_0x2bd7ac-0x0;let _0x249b06=a146_0x2bd1[_0x2bd7ac];return _0x249b06;};const _0x2efadd=a146_0x249b;'use strict';const Sequelize=require(_0x2efadd('0x7')),moment=require(_0x2efadd('0x1'));module[_0x2efadd('0x8')]={'state':{'type':Sequelize[_0x2efadd('0x5')](0x2)},'statedesc':{'type':Sequelize['STRING']},'scheduledat':{'type':Sequelize[_0x2efadd('0x9')]},'countbusyretry':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countglobal':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0x2efadd('0xc')]},'originatecalleridnum':{'type':Sequelize[_0x2efadd('0xc')]},'originatecalleridname':{'type':Sequelize[_0x2efadd('0xc')]},'calleridnum':{'type':Sequelize[_0x2efadd('0xc')]},'calleridname':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize[_0x2efadd('0x9')]},'responsetime':{'type':Sequelize[_0x2efadd('0x9')]},'answertime':{'type':Sequelize[_0x2efadd('0x9')]},'droptime':{'type':Sequelize[_0x2efadd('0x9')]},'endtime':{'type':Sequelize[_0x2efadd('0x9')]},'ringtime':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x2efadd('0xc')]},'campaign':{'type':Sequelize[_0x2efadd('0xc')]},'campaigntype':{'type':Sequelize[_0x2efadd('0xc')]},'membername':{'type':Sequelize[_0x2efadd('0xc')]},'reason':{'type':Sequelize[_0x2efadd('0xc')]},'disposition':{'type':Sequelize[_0x2efadd('0xc')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize['STRING']},'dispositionat':{'type':Sequelize[_0x2efadd('0x9')],'set':function(_0x13ceee){const _0x54bc59=_0x2efadd,_0x2aa4fb=this[_0x54bc59('0x0')](_0x54bc59('0x3'));return _0x2aa4fb&&_0x13ceee&&this[_0x54bc59('0x4')](_0x54bc59('0x2'),moment(_0x13ceee)[_0x54bc59('0xb')](moment(_0x2aa4fb),'seconds')),this['setDataValue'](_0x54bc59('0x6'),_0x13ceee);}},'amd':{'type':Sequelize[_0x2efadd('0xa')],'defaultValue':![]},'fax':{'type':Sequelize[_0x2efadd('0xa')],'defaultValue':![]},'blacklist':{'type':Sequelize[_0x2efadd('0xa')],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0x2efadd('0xa')],'defaultValue':![]},'rescheduledat':{'type':Sequelize[_0x2efadd('0x9')]},'callback':{'type':Sequelize[_0x2efadd('0xa')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x2efadd('0xc')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x2efadd('0x9')]},'deleted':{'type':Sequelize['STRING'],'defaultValue':null},'deletedat':{'type':Sequelize['DATE']},'recallme':{'type':Sequelize[_0x2efadd('0xa')],'defaultValue':![]},'agiafterat':{'type':Sequelize[_0x2efadd('0x9')]},'countnosuchnumberretry':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x2efadd('0x5')],'defaultValue':0x0}}; \ No newline at end of file +const a146_0x2e90=['seconds','DATE','sequelize','followuptime','exports','moment','setDataValue','endtime','dispositionat','STRING','BOOLEAN','getDataValue','INTEGER'];(function(_0x39eff1,_0x2e9085){const _0x54c74e=function(_0x2406a3){while(--_0x2406a3){_0x39eff1['push'](_0x39eff1['shift']());}};_0x54c74e(++_0x2e9085);}(a146_0x2e90,0x1be));const a146_0x54c7=function(_0x39eff1,_0x2e9085){_0x39eff1=_0x39eff1-0x0;let _0x54c74e=a146_0x2e90[_0x39eff1];return _0x54c74e;};const _0x3cbaaf=a146_0x54c7;'use strict';const Sequelize=require(_0x3cbaaf('0xb')),moment=require(_0x3cbaaf('0x1'));module[_0x3cbaaf('0x0')]={'state':{'type':Sequelize[_0x3cbaaf('0x8')](0x2)},'statedesc':{'type':Sequelize[_0x3cbaaf('0x5')]},'scheduledat':{'type':Sequelize[_0x3cbaaf('0xa')]},'countbusyretry':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'uniqueid':{'type':Sequelize['STRING']},'originatecalleridnum':{'type':Sequelize[_0x3cbaaf('0x5')]},'originatecalleridname':{'type':Sequelize[_0x3cbaaf('0x5')]},'calleridnum':{'type':Sequelize[_0x3cbaaf('0x5')]},'calleridname':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize[_0x3cbaaf('0xa')]},'responsetime':{'type':Sequelize[_0x3cbaaf('0xa')]},'answertime':{'type':Sequelize[_0x3cbaaf('0xa')]},'droptime':{'type':Sequelize[_0x3cbaaf('0xa')]},'endtime':{'type':Sequelize[_0x3cbaaf('0xa')]},'ringtime':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'talktime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x3cbaaf('0x5')]},'campaign':{'type':Sequelize[_0x3cbaaf('0x5')]},'campaigntype':{'type':Sequelize[_0x3cbaaf('0x5')]},'membername':{'type':Sequelize[_0x3cbaaf('0x5')]},'reason':{'type':Sequelize[_0x3cbaaf('0x5')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x3cbaaf('0x5')]},'dispositionat':{'type':Sequelize['DATE'],'set':function(_0x2406a3){const _0x93431d=_0x3cbaaf,_0x511091=this[_0x93431d('0x7')](_0x93431d('0x3'));return _0x511091&&_0x2406a3&&this['setDataValue'](_0x93431d('0xc'),moment(_0x2406a3)['diff'](moment(_0x511091),_0x93431d('0x9'))),this[_0x93431d('0x2')](_0x93431d('0x4'),_0x2406a3);}},'amd':{'type':Sequelize[_0x3cbaaf('0x6')],'defaultValue':![]},'fax':{'type':Sequelize[_0x3cbaaf('0x6')],'defaultValue':![]},'blacklist':{'type':Sequelize[_0x3cbaaf('0x6')],'defaultValue':![]},'rescheduled':{'type':Sequelize[_0x3cbaaf('0x6')],'defaultValue':![]},'rescheduledat':{'type':Sequelize[_0x3cbaaf('0xa')]},'callback':{'type':Sequelize[_0x3cbaaf('0x6')],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize['STRING'],'defaultValue':null},'callbackat':{'type':Sequelize[_0x3cbaaf('0xa')]},'deleted':{'type':Sequelize[_0x3cbaaf('0x5')],'defaultValue':null},'deletedat':{'type':Sequelize[_0x3cbaaf('0xa')]},'recallme':{'type':Sequelize[_0x3cbaaf('0x6')],'defaultValue':![]},'agiafterat':{'type':Sequelize[_0x3cbaaf('0xa')]},'countnosuchnumberretry':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x3cbaaf('0x8')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize['INTEGER'],'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 9830095..791b8d1 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.controller.js +++ b/server/api/cmHopperFinal/cmHopperFinal.controller.js @@ -1 +1 @@ -const a147_0xbf41=['NOW()','cm_hopper','rows','sendStatus','CampaignId','api','sequelize','Campaign','merge','findOne','then','intersection','offset','ListId','COUNT','scheduledAt','insert','ANY_VALUE(calleridnum)','../../components/parsers/qs','noAnswerContacts','`state`\x20=\x200,\x201,\x20null','updatedAt','update','where','ANY_VALUE(CampaignId)','status','VoiceQueueId','fields','CmHopper','`state`\x20=\x2019,\x201,\x20null','set','ContactId','ANY_VALUE(ListId)','attributes','rawAttributes','params','sort','checkContactHopper','findAll','limit','phone','uniqueid','state','name','abandonedContacts','fromQuery','../../config/logger','`state`\x20=\x2022,\x201,\x20null','countContactsIvrCampaignHopperFinal','`state`\x20=\x203,\x201,\x20null','CmHopperFinal','map','field','include','moveContactsQueueCampaignHopperFinal','nolimit','length','calleridnum\x20NOT\x20IN\x20(?)','busyContacts','noSuchContacts','calleridnum\x20IS\x20NOT\x20NULL','state\x20=\x20?','VIRTUAL','`state`\x20=\x2010\x20,\x201,\x20null','into','pick','fieldName','createdAt','cm_hopper_final','from','state\x20=\x204','countContactsQueueCampaignHopperFinal','answeringMachine','`state`\x20=\x205,\x201,\x20null','group','congestionContacts','`state`\x20=\x208,\x201,\x20null','json','error','CampaignId\x20=\x20?','ANY_VALUE(ContactId)','`state`\x20=\x2011\x20,\x201,\x20null','filters','select','model','options','catch','body','key','toString','count','includeAll','query','lodash','VoiceQueue','filter','squel','reCallContacts','calleridnum','undefined','like','../../mysqldb','keys'];(function(_0x4d9878,_0xbf41){const _0x2354f2=function(_0x98cf9c){while(--_0x98cf9c){_0x4d9878['push'](_0x4d9878['shift']());}};_0x2354f2(++_0xbf41);}(a147_0xbf41,0x9d));const a147_0x2354=function(_0x4d9878,_0xbf41){_0x4d9878=_0x4d9878-0x0;let _0x2354f2=a147_0xbf41[_0x4d9878];return _0x2354f2;};const _0x767683=a147_0x2354;'use strict';const _=require(_0x767683('0x27')),squel=require(_0x767683('0x2a')),qs=require(_0x767683('0x43')),logger=require(_0x767683('0x5f'))(_0x767683('0x36')),db=require(_0x767683('0x2f'))['db'],{Op,fn,literal}=require(_0x767683('0x37'));function respondWithResult(_0x98cf9c,_0x459f0f){return _0x459f0f=_0x459f0f||0xc8,function(_0x10d55a){const _0x3458de=a147_0x2354;if(_0x10d55a)return _0x98cf9c[_0x3458de('0x4a')](_0x459f0f)[_0x3458de('0x17')](_0x10d55a);};}function respondWithFilteredResult(_0xced00e,_0x5e505a){return function(_0x41bf7e){const _0x47ea96=a147_0x2354;if(_0x41bf7e){const _0x4784dd=_0x41bf7e[_0x47ea96('0x24')],_0x3eee5d=_0x5e505a[_0x47ea96('0x3d')];let _0x445331=_0x5e505a[_0x47ea96('0x3d')]+_0x5e505a[_0x47ea96('0x58')],_0x20c009;return _0x445331>=_0x4784dd?(_0x445331=_0x4784dd,_0x20c009=0xc8):_0x20c009=0xce,_0xced00e[_0x47ea96('0x4a')](_0x20c009),_0xced00e[_0x47ea96('0x4f')]('Content-Range',_0x3eee5d+'-'+_0x445331+'/'+_0x4784dd)[_0x47ea96('0x17')](_0x41bf7e);}return null;};}function saveUpdates(_0xdcb2d6){return function(_0x26fd7b){const _0x3503dd=a147_0x2354;if(_0x26fd7b)return _0x26fd7b['update'](_0xdcb2d6)[_0x3503dd('0x3b')](function(_0x456dba){return _0x456dba;});return null;};}function handleEntityNotFound(_0x48751c){return function(_0x9b386f){const _0x391de5=a147_0x2354;return!_0x9b386f&&_0x48751c[_0x391de5('0x34')](0x194),_0x9b386f;};}function handleError(_0x4f02ae,_0x11572e){return _0x11572e=_0x11572e||0x1f4,function(_0x3e5f5e){const _0x4b6bab=a147_0x2354;logger[_0x4b6bab('0x18')](_0x3e5f5e['stack']),_0x3e5f5e[_0x4b6bab('0x5c')]&&delete _0x3e5f5e[_0x4b6bab('0x5c')],_0x4f02ae[_0x4b6bab('0x4a')](_0x11572e)['send'](_0x3e5f5e);};}exports['index']=function(_0x49323a,_0x58a63a){const _0x2a19af=_0x767683;let _0x174fea={};const _0x8dab64={},_0x19a907={'count':0x0,'rows':[]},_0x41b898=_['map'](db['CmHopperFinal'][_0x2a19af('0x53')],function(_0x44344c){const _0xa548ba=_0x2a19af;return{'name':_0x44344c[_0xa548ba('0xc')],'type':_0x44344c['type'][_0xa548ba('0x22')]};});_0x8dab64[_0x2a19af('0x1e')]=_[_0x2a19af('0x64')](_0x41b898,'name'),_0x8dab64[_0x2a19af('0x26')]=_['keys'](_0x49323a[_0x2a19af('0x26')]),_0x8dab64['filters']=_['intersection'](_0x8dab64[_0x2a19af('0x1e')],_0x8dab64[_0x2a19af('0x26')]),_0x174fea[_0x2a19af('0x52')]=_[_0x2a19af('0x3c')](_0x8dab64[_0x2a19af('0x1e')],qs[_0x2a19af('0x4c')](_0x49323a[_0x2a19af('0x26')][_0x2a19af('0x4c')])),_0x174fea['attributes']=_0x174fea['attributes'][_0x2a19af('0x2')]?_0x174fea[_0x2a19af('0x52')]:_0x8dab64[_0x2a19af('0x1e')];typeof _0x49323a[_0x2a19af('0x26')][_0x2a19af('0x1')]===_0x2a19af('0x2d')&&(_0x174fea[_0x2a19af('0x58')]=qs[_0x2a19af('0x58')](_0x49323a['query'][_0x2a19af('0x58')]),_0x174fea['offset']=qs['offset'](_0x49323a[_0x2a19af('0x26')][_0x2a19af('0x3d')]));_0x174fea['order']=qs[_0x2a19af('0x55')](_0x49323a[_0x2a19af('0x26')][_0x2a19af('0x55')]),_0x174fea[_0x2a19af('0x48')]=qs['filters'](_[_0x2a19af('0xb')](_0x49323a[_0x2a19af('0x26')],_0x8dab64[_0x2a19af('0x1c')]),_0x41b898);_0x49323a[_0x2a19af('0x26')][_0x2a19af('0x29')]&&(_0x174fea[_0x2a19af('0x48')]=_[_0x2a19af('0x39')](_0x174fea[_0x2a19af('0x48')],{[Op['or']]:_['map'](_0x41b898,function(_0x1f05b6){const _0x1628c8=_0x2a19af;if(_0x1f05b6['type']!==_0x1628c8('0x8')){const _0x2aa1c3={};return _0x2aa1c3[_0x1f05b6[_0x1628c8('0x5c')]]={[Op[_0x1628c8('0x2e')]]:'%'+_0x49323a[_0x1628c8('0x26')]['filter']+'%'},_0x2aa1c3;}})}));_0x174fea=_['merge']({},_0x174fea,_0x49323a[_0x2a19af('0x1f')]);const _0x2e8883={'where':_0x174fea[_0x2a19af('0x48')]};return db['CmHopperFinal']['count'](_0x2e8883)[_0x2a19af('0x3b')](function(_0x3fbdaa){const _0x2800c7=_0x2a19af;return _0x19a907[_0x2800c7('0x24')]=_0x3fbdaa,_0x49323a[_0x2800c7('0x26')]['includeAll']&&(_0x174fea[_0x2800c7('0x66')]=[{'all':!![]}]),db['CmHopperFinal'][_0x2800c7('0x57')](_0x174fea);})[_0x2a19af('0x3b')](function(_0x298557){const _0x67e781=_0x2a19af;return _0x19a907[_0x67e781('0x33')]=_0x298557,_0x19a907;})['then'](respondWithFilteredResult(_0x58a63a,_0x174fea))['catch'](handleError(_0x58a63a,null));},exports['show']=function(_0x435b74,_0x24af8a){const _0x1f7b24=_0x767683;let _0x104600={'raw':!![],'where':{'id':_0x435b74['params']['id']}};const _0x4ed2bd={};return _0x4ed2bd[_0x1f7b24('0x1e')]=_[_0x1f7b24('0x30')](db[_0x1f7b24('0x63')][_0x1f7b24('0x53')]),_0x4ed2bd[_0x1f7b24('0x26')]=_['keys'](_0x435b74[_0x1f7b24('0x26')]),_0x4ed2bd[_0x1f7b24('0x1c')]=_[_0x1f7b24('0x3c')](_0x4ed2bd[_0x1f7b24('0x1e')],_0x4ed2bd[_0x1f7b24('0x26')]),_0x104600['attributes']=_[_0x1f7b24('0x3c')](_0x4ed2bd[_0x1f7b24('0x1e')],qs['fields'](_0x435b74[_0x1f7b24('0x26')][_0x1f7b24('0x4c')])),_0x104600[_0x1f7b24('0x52')]=_0x104600['attributes'][_0x1f7b24('0x2')]?_0x104600[_0x1f7b24('0x52')]:_0x4ed2bd[_0x1f7b24('0x1e')],_0x435b74[_0x1f7b24('0x26')][_0x1f7b24('0x25')]&&(_0x104600[_0x1f7b24('0x66')]=[{'all':!![]}]),_0x104600=_[_0x1f7b24('0x39')]({},_0x104600,_0x435b74[_0x1f7b24('0x1f')]),db[_0x1f7b24('0x63')][_0x1f7b24('0x3a')](_0x104600)[_0x1f7b24('0x3b')](handleEntityNotFound(_0x24af8a,null))['then'](respondWithResult(_0x24af8a,null))['catch'](handleError(_0x24af8a,null));},exports['describe']=function(_0x18f129,_0x546fe2){const _0x4c7f12=_0x767683;return db['CmHopperFinal']['describe']()[_0x4c7f12('0x3b')](respondWithResult(_0x546fe2,null))[_0x4c7f12('0x20')](handleError(_0x546fe2,null));},exports[_0x767683('0x47')]=function(_0x147fd4,_0x1b4447){const _0x350ca5=_0x767683;return _0x147fd4['body'][_0x350ca5('0x5a')]&&delete _0x147fd4[_0x350ca5('0x21')][_0x350ca5('0x5a')],db[_0x350ca5('0x63')][_0x350ca5('0x3a')]({'where':{'uniqueid':_0x147fd4[_0x350ca5('0x54')]['id']}})[_0x350ca5('0x3b')](handleEntityNotFound(_0x1b4447,null))[_0x350ca5('0x3b')](saveUpdates(_0x147fd4[_0x350ca5('0x21')],null))[_0x350ca5('0x3b')](respondWithResult(_0x1b4447,null))[_0x350ca5('0x20')](handleError(_0x1b4447,null));},exports[_0x767683('0x11')]=function(_0x5119ea,_0x40bfea){const _0x17ce31=_0x767683;return db[_0x17ce31('0x63')][_0x17ce31('0x57')]({'raw':![],'where':{'VoiceQueueId':_0x5119ea[_0x17ce31('0x54')]['id']},'attributes':[[fn(_0x17ce31('0x3f'),fn('IF',literal('`state`\x20=\x200,\x201,\x20null'))),_0x17ce31('0x5')],[fn(_0x17ce31('0x3f'),fn('IF',literal('`state`\x20=\x203,\x201,\x20null'))),'noAnswerContacts'],[fn(_0x17ce31('0x3f'),fn('IF',literal(_0x17ce31('0x13')))),_0x17ce31('0x4')],[fn(_0x17ce31('0x3f'),fn('IF',literal(_0x17ce31('0x16')))),_0x17ce31('0x15')],[fn(_0x17ce31('0x3f'),fn('IF',literal('`state`\x20=\x2010\x20,\x201,\x20null'))),'dropContacts'],[fn(_0x17ce31('0x3f'),fn('IF',literal('`state`\x20=\x2011\x20,\x201,\x20null'))),_0x17ce31('0x5d')],[fn(_0x17ce31('0x3f'),fn('IF',literal(_0x17ce31('0x60')))),'reCallContacts'],[fn(_0x17ce31('0x3f'),fn('IF',literal(_0x17ce31('0x4e')))),_0x17ce31('0x12')]]})[_0x17ce31('0x3b')](handleEntityNotFound(_0x40bfea,null))[_0x17ce31('0x3b')](respondWithResult(_0x40bfea,null))['catch'](handleError(_0x40bfea,null));},exports[_0x767683('0x61')]=function(_0x1e0ff4,_0x4e7d97){const _0x308964=_0x767683;return db[_0x308964('0x63')]['findAll']({'raw':![],'where':{'CampaignId':_0x1e0ff4[_0x308964('0x54')]['id']},'attributes':[[fn('COUNT',fn('IF',literal(_0x308964('0x45')))),_0x308964('0x5')],[fn(_0x308964('0x3f'),fn('IF',literal(_0x308964('0x62')))),_0x308964('0x44')],[fn(_0x308964('0x3f'),fn('IF',literal(_0x308964('0x13')))),_0x308964('0x4')],[fn(_0x308964('0x3f'),fn('IF',literal('`state`\x20=\x208,\x201,\x20null'))),_0x308964('0x15')],[fn('COUNT',fn('IF',literal(_0x308964('0x9')))),'dropContacts'],[fn('COUNT',fn('IF',literal(_0x308964('0x1b')))),_0x308964('0x5d')],[fn(_0x308964('0x3f'),fn('IF',literal('`state`\x20=\x2022,\x201,\x20null'))),_0x308964('0x2b')],[fn(_0x308964('0x3f'),fn('IF',literal(_0x308964('0x4e')))),_0x308964('0x12')]]})['then'](handleEntityNotFound(_0x4e7d97,null))[_0x308964('0x3b')](respondWithResult(_0x4e7d97,null))['catch'](handleError(_0x4e7d97,null));},exports[_0x767683('0x0')]=function(_0x175fe9,_0x496105){const _0x4b8002=_0x767683;return db[_0x4b8002('0x28')]['findOne']({'where':{'id':_0x175fe9[_0x4b8002('0x54')]['id']}})[_0x4b8002('0x3b')](handleEntityNotFound(_0x496105,null))['then'](function(_0x4d0143){const _0x10d852=_0x4b8002;let _0x2ca7ae;if(_0x4d0143)return _0x2ca7ae=squel[_0x10d852('0x41')]()['into'](_0x10d852('0x32'))['fromQuery']([_0x10d852('0x59'),_0x10d852('0x40'),_0x10d852('0x50'),_0x10d852('0x3e'),_0x10d852('0x4b'),_0x10d852('0xd'),_0x10d852('0x46')],squel[_0x10d852('0x1d')]()[_0x10d852('0x65')](_0x10d852('0x42'),_0x10d852('0x59'))[_0x10d852('0x65')](_0x10d852('0x31'),_0x10d852('0x40'))[_0x10d852('0x65')](_0x10d852('0x1a'),_0x10d852('0x50'))[_0x10d852('0x65')](_0x10d852('0x51'),_0x10d852('0x3e'))['field']('ANY_VALUE(VoiceQueueId)',_0x10d852('0x4b'))[_0x10d852('0x65')](_0x10d852('0x31'),_0x10d852('0xd'))[_0x10d852('0x65')]('NOW()',_0x10d852('0x46'))['from'](_0x10d852('0xe'))[_0x10d852('0x48')]('VoiceQueueId\x20=\x20?',_0x175fe9[_0x10d852('0x54')]['id'][_0x10d852('0x23')]())[_0x10d852('0x48')](_0x10d852('0x7'),_0x175fe9['body'][_0x10d852('0x5b')][_0x10d852('0x23')]())['where'](_0x10d852('0x6'))[_0x10d852('0x48')](_0x10d852('0x3'),squel[_0x10d852('0x1d')]()[_0x10d852('0x65')]('phone')[_0x10d852('0xf')](_0x10d852('0x32'))[_0x10d852('0x48')]('VoiceQueueId\x20=\x20?',_0x175fe9['params']['id'][_0x10d852('0x23')]()))[_0x10d852('0x48')]('calleridnum\x20NOT\x20IN\x20(?)',squel[_0x10d852('0x1d')]()[_0x10d852('0x65')](_0x10d852('0x2c'))[_0x10d852('0xf')](_0x10d852('0xe'))['where']('VoiceQueueId\x20=\x20?',_0x175fe9['params']['id'][_0x10d852('0x23')]())[_0x10d852('0x48')](_0x10d852('0x10')))[_0x10d852('0x14')](_0x10d852('0x50')))['toString'](),db[_0x10d852('0x37')][_0x10d852('0x26')](_0x2ca7ae);return[];})['then'](respondWithResult(_0x496105,null))[_0x4b8002('0x20')](handleError(_0x496105,null));},exports['moveContactsIvrCampaignHopperFinal']=function(_0x440515,_0x501df7){const _0x246bd9=_0x767683;return db[_0x246bd9('0x38')][_0x246bd9('0x3a')]({'where':{'id':_0x440515['params']['id']}})['then'](handleEntityNotFound(_0x501df7,null))[_0x246bd9('0x3b')](function(_0x35a61f){const _0x5f3ab4=_0x246bd9;let _0x51b97d;if(_0x35a61f)return _0x51b97d=squel['insert']()[_0x5f3ab4('0xa')](_0x5f3ab4('0x32'))[_0x5f3ab4('0x5e')]([_0x5f3ab4('0x59'),_0x5f3ab4('0x40'),'ContactId',_0x5f3ab4('0x3e'),_0x5f3ab4('0x35'),_0x5f3ab4('0xd'),_0x5f3ab4('0x46')],squel[_0x5f3ab4('0x1d')]()['field']('ANY_VALUE(calleridnum)',_0x5f3ab4('0x59'))['field'](_0x5f3ab4('0x31'),_0x5f3ab4('0x40'))[_0x5f3ab4('0x65')](_0x5f3ab4('0x1a'),'ContactId')[_0x5f3ab4('0x65')](_0x5f3ab4('0x51'),_0x5f3ab4('0x3e'))[_0x5f3ab4('0x65')](_0x5f3ab4('0x49'),_0x5f3ab4('0x35'))[_0x5f3ab4('0x65')](_0x5f3ab4('0x31'),_0x5f3ab4('0xd'))[_0x5f3ab4('0x65')](_0x5f3ab4('0x31'),_0x5f3ab4('0x46'))[_0x5f3ab4('0xf')](_0x5f3ab4('0xe'))[_0x5f3ab4('0x48')](_0x5f3ab4('0x19'),_0x440515[_0x5f3ab4('0x54')]['id'][_0x5f3ab4('0x23')]())[_0x5f3ab4('0x48')]('state\x20=\x20?',_0x440515[_0x5f3ab4('0x21')][_0x5f3ab4('0x5b')][_0x5f3ab4('0x23')]())[_0x5f3ab4('0x48')](_0x5f3ab4('0x6'))['where'](_0x5f3ab4('0x3'),squel[_0x5f3ab4('0x1d')]()[_0x5f3ab4('0x65')](_0x5f3ab4('0x59'))[_0x5f3ab4('0xf')](_0x5f3ab4('0x32'))[_0x5f3ab4('0x48')]('CampaignId\x20=\x20?',_0x440515[_0x5f3ab4('0x54')]['id'][_0x5f3ab4('0x23')]()))[_0x5f3ab4('0x48')](_0x5f3ab4('0x3'),squel[_0x5f3ab4('0x1d')]()[_0x5f3ab4('0x65')](_0x5f3ab4('0x2c'))[_0x5f3ab4('0xf')]('cm_hopper_final')[_0x5f3ab4('0x48')](_0x5f3ab4('0x19'),_0x440515[_0x5f3ab4('0x54')]['id'][_0x5f3ab4('0x23')]())['where'](_0x5f3ab4('0x10')))[_0x5f3ab4('0x14')](_0x5f3ab4('0x50')))[_0x5f3ab4('0x23')](),db['sequelize'][_0x5f3ab4('0x26')](_0x51b97d);return[];})[_0x246bd9('0x3b')](respondWithResult(_0x501df7,null))[_0x246bd9('0x20')](handleError(_0x501df7,null));},exports[_0x767683('0x56')]=function(_0x282c3e,_0x13a767){const _0x58028b=_0x767683;return db[_0x58028b('0x4d')][_0x58028b('0x3a')]({'where':{'VoiceQueueId':_0x282c3e[_0x58028b('0x21')][_0x58028b('0x4b')],'CampaignId':_0x282c3e[_0x58028b('0x21')][_0x58028b('0x35')],'ContactId':_0x282c3e[_0x58028b('0x21')][_0x58028b('0x50')]}})['then'](handleEntityNotFound(_0x13a767,null))['then'](function(_0x42eef8){if(_0x42eef8)return _0x42eef8;return null;})['then'](respondWithResult(_0x13a767,null))[_0x58028b('0x20')](handleError(_0x13a767,null));}; \ No newline at end of file +const a147_0x52f1=['phone','Campaign','then','calleridnum','ListId','VoiceQueueId','Content-Range','json','type','`state`\x20=\x208,\x201,\x20null','abandonedContacts','filters','sendStatus','noSuchContacts','stack','CampaignId\x20=\x20?','catch','undefined','fieldName','`state`\x20=\x2010\x20,\x201,\x20null','limit','fields','scheduledAt','calleridnum\x20NOT\x20IN\x20(?)','COUNT','`state`\x20=\x203,\x201,\x20null','`state`\x20=\x2011\x20,\x201,\x20null','../../components/parsers/qs','congestionContacts','from','select','findAll','fromQuery','cm_hopper_final','order','offset','where','key','length','send','findOne','params','index','options','VoiceQueueId\x20=\x20?','busyContacts','rows','calleridnum\x20IS\x20NOT\x20NULL','`state`\x20=\x200,\x201,\x20null','noAnswerContacts','uniqueid','CmHopper','nolimit','reCallContacts','into','ANY_VALUE(ContactId)','rawAttributes','describe','count','cm_hopper','countContactsIvrCampaignHopperFinal','status','VoiceQueue','CampaignId','update','map','answeringMachine','keys','insert','toString','pick','merge','name','`state`\x20=\x205,\x201,\x20null','api','intersection','`state`\x20=\x2022,\x201,\x20null','includeAll','updatedAt','query','sequelize','`state`\x20=\x2019,\x201,\x20null','model','field','NOW()','group','VIRTUAL','filter','lodash','show','ContactId','attributes','state','../../mysqldb','include','ANY_VALUE(ListId)','CmHopperFinal','moveContactsIvrCampaignHopperFinal','sort','squel','body','ANY_VALUE(calleridnum)','createdAt','ANY_VALUE(CampaignId)','state\x20=\x20?'];(function(_0x3948ff,_0x52f1ac){const _0x12b2cc=function(_0x187888){while(--_0x187888){_0x3948ff['push'](_0x3948ff['shift']());}};_0x12b2cc(++_0x52f1ac);}(a147_0x52f1,0xd8));const a147_0x12b2=function(_0x3948ff,_0x52f1ac){_0x3948ff=_0x3948ff-0x0;let _0x12b2cc=a147_0x52f1[_0x3948ff];return _0x12b2cc;};const _0x476eec=a147_0x12b2;'use strict';const _=require(_0x476eec('0x52')),squel=require(_0x476eec('0x5d')),qs=require(_0x476eec('0x15')),logger=require('../../config/logger')(_0x476eec('0x44')),db=require(_0x476eec('0x57'))['db'],{Op,fn,literal}=require(_0x476eec('0x4a'));function respondWithResult(_0x187888,_0x2d362f){return _0x2d362f=_0x2d362f||0xc8,function(_0x232ccb){const _0x49b077=a147_0x12b2;if(_0x232ccb)return _0x187888[_0x49b077('0x37')](_0x2d362f)[_0x49b077('0x1')](_0x232ccb);};}function respondWithFilteredResult(_0x5b8823,_0xe4e809){return function(_0x3f2a29){const _0x152007=a147_0x12b2;if(_0x3f2a29){const _0x5cb230=_0x3f2a29['count'],_0x60bc30=_0xe4e809[_0x152007('0x1d')];let _0x59a885=_0xe4e809[_0x152007('0x1d')]+_0xe4e809['limit'],_0xb75b97;return _0x59a885>=_0x5cb230?(_0x59a885=_0x5cb230,_0xb75b97=0xc8):_0xb75b97=0xce,_0x5b8823[_0x152007('0x37')](_0xb75b97),_0x5b8823['set'](_0x152007('0x0'),_0x60bc30+'-'+_0x59a885+'/'+_0x5cb230)[_0x152007('0x1')](_0x3f2a29);}return null;};}function saveUpdates(_0x46cdee){return function(_0x42681b){const _0x5b05f1=a147_0x12b2;if(_0x42681b)return _0x42681b[_0x5b05f1('0x3a')](_0x46cdee)[_0x5b05f1('0x65')](function(_0x15e45c){return _0x15e45c;});return null;};}function handleEntityNotFound(_0x3267e1){return function(_0x10619d){const _0x165d10=a147_0x12b2;return!_0x10619d&&_0x3267e1[_0x165d10('0x6')](0x194),_0x10619d;};}function handleError(_0x4f9f6e,_0x2b0f49){return _0x2b0f49=_0x2b0f49||0x1f4,function(_0x24e307){const _0xa04e79=a147_0x12b2;logger['error'](_0x24e307[_0xa04e79('0x8')]),_0x24e307[_0xa04e79('0x42')]&&delete _0x24e307[_0xa04e79('0x42')],_0x4f9f6e[_0xa04e79('0x37')](_0x2b0f49)[_0xa04e79('0x21')](_0x24e307);};}exports[_0x476eec('0x24')]=function(_0x55cc00,_0x45eed1){const _0x564434=_0x476eec;let _0x11e490={};const _0x1878f1={},_0x513679={'count':0x0,'rows':[]},_0x3ad40f=_['map'](db[_0x564434('0x5a')][_0x564434('0x32')],function(_0x244b04){const _0x3db7d0=_0x564434;return{'name':_0x244b04[_0x3db7d0('0xc')],'type':_0x244b04[_0x3db7d0('0x2')][_0x3db7d0('0x1f')]};});_0x1878f1['model']=_['map'](_0x3ad40f,_0x564434('0x42')),_0x1878f1[_0x564434('0x49')]=_[_0x564434('0x3d')](_0x55cc00[_0x564434('0x49')]),_0x1878f1[_0x564434('0x5')]=_[_0x564434('0x45')](_0x1878f1[_0x564434('0x4c')],_0x1878f1[_0x564434('0x49')]),_0x11e490[_0x564434('0x55')]=_[_0x564434('0x45')](_0x1878f1['model'],qs['fields'](_0x55cc00[_0x564434('0x49')][_0x564434('0xf')])),_0x11e490[_0x564434('0x55')]=_0x11e490['attributes'][_0x564434('0x20')]?_0x11e490[_0x564434('0x55')]:_0x1878f1['model'];typeof _0x55cc00['query'][_0x564434('0x2e')]===_0x564434('0xb')&&(_0x11e490[_0x564434('0xe')]=qs[_0x564434('0xe')](_0x55cc00[_0x564434('0x49')][_0x564434('0xe')]),_0x11e490[_0x564434('0x1d')]=qs[_0x564434('0x1d')](_0x55cc00['query'][_0x564434('0x1d')]));_0x11e490[_0x564434('0x1c')]=qs[_0x564434('0x5c')](_0x55cc00[_0x564434('0x49')]['sort']),_0x11e490['where']=qs[_0x564434('0x5')](_[_0x564434('0x40')](_0x55cc00[_0x564434('0x49')],_0x1878f1[_0x564434('0x5')]),_0x3ad40f);_0x55cc00[_0x564434('0x49')][_0x564434('0x51')]&&(_0x11e490[_0x564434('0x1e')]=_[_0x564434('0x41')](_0x11e490[_0x564434('0x1e')],{[Op['or']]:_[_0x564434('0x3b')](_0x3ad40f,function(_0x17c435){const _0x3bea46=_0x564434;if(_0x17c435['type']!==_0x3bea46('0x50')){const _0xfdd70c={};return _0xfdd70c[_0x17c435['name']]={[Op['like']]:'%'+_0x55cc00['query'][_0x3bea46('0x51')]+'%'},_0xfdd70c;}})}));_0x11e490=_[_0x564434('0x41')]({},_0x11e490,_0x55cc00[_0x564434('0x25')]);const _0x203efa={'where':_0x11e490[_0x564434('0x1e')]};return db['CmHopperFinal']['count'](_0x203efa)[_0x564434('0x65')](function(_0x2029da){const _0x39e10=_0x564434;return _0x513679[_0x39e10('0x34')]=_0x2029da,_0x55cc00[_0x39e10('0x49')][_0x39e10('0x47')]&&(_0x11e490[_0x39e10('0x58')]=[{'all':!![]}]),db[_0x39e10('0x5a')][_0x39e10('0x19')](_0x11e490);})[_0x564434('0x65')](function(_0x46a6ef){const _0x1dfbaf=_0x564434;return _0x513679[_0x1dfbaf('0x28')]=_0x46a6ef,_0x513679;})[_0x564434('0x65')](respondWithFilteredResult(_0x45eed1,_0x11e490))[_0x564434('0xa')](handleError(_0x45eed1,null));},exports[_0x476eec('0x53')]=function(_0x42476a,_0x552e0a){const _0x381898=_0x476eec;let _0xb20273={'raw':!![],'where':{'id':_0x42476a[_0x381898('0x23')]['id']}};const _0x22de42={};return _0x22de42[_0x381898('0x4c')]=_[_0x381898('0x3d')](db[_0x381898('0x5a')]['rawAttributes']),_0x22de42['query']=_[_0x381898('0x3d')](_0x42476a[_0x381898('0x49')]),_0x22de42[_0x381898('0x5')]=_['intersection'](_0x22de42[_0x381898('0x4c')],_0x22de42['query']),_0xb20273[_0x381898('0x55')]=_[_0x381898('0x45')](_0x22de42[_0x381898('0x4c')],qs[_0x381898('0xf')](_0x42476a[_0x381898('0x49')][_0x381898('0xf')])),_0xb20273['attributes']=_0xb20273[_0x381898('0x55')][_0x381898('0x20')]?_0xb20273[_0x381898('0x55')]:_0x22de42['model'],_0x42476a[_0x381898('0x49')][_0x381898('0x47')]&&(_0xb20273['include']=[{'all':!![]}]),_0xb20273=_['merge']({},_0xb20273,_0x42476a[_0x381898('0x25')]),db[_0x381898('0x5a')][_0x381898('0x22')](_0xb20273)[_0x381898('0x65')](handleEntityNotFound(_0x552e0a,null))[_0x381898('0x65')](respondWithResult(_0x552e0a,null))['catch'](handleError(_0x552e0a,null));},exports[_0x476eec('0x33')]=function(_0x56faae,_0x14aabc){const _0x42f6ac=_0x476eec;return db[_0x42f6ac('0x5a')][_0x42f6ac('0x33')]()[_0x42f6ac('0x65')](respondWithResult(_0x14aabc,null))['catch'](handleError(_0x14aabc,null));},exports[_0x476eec('0x3a')]=function(_0x8089ec,_0x419f47){const _0x578dd5=_0x476eec;return _0x8089ec[_0x578dd5('0x5e')][_0x578dd5('0x2c')]&&delete _0x8089ec[_0x578dd5('0x5e')][_0x578dd5('0x2c')],db[_0x578dd5('0x5a')][_0x578dd5('0x22')]({'where':{'uniqueid':_0x8089ec[_0x578dd5('0x23')]['id']}})[_0x578dd5('0x65')](handleEntityNotFound(_0x419f47,null))['then'](saveUpdates(_0x8089ec[_0x578dd5('0x5e')],null))[_0x578dd5('0x65')](respondWithResult(_0x419f47,null))[_0x578dd5('0xa')](handleError(_0x419f47,null));},exports['countContactsQueueCampaignHopperFinal']=function(_0x109370,_0x31d8b2){const _0x26afd1=_0x476eec;return db['CmHopperFinal'][_0x26afd1('0x19')]({'raw':![],'where':{'VoiceQueueId':_0x109370[_0x26afd1('0x23')]['id']},'attributes':[[fn(_0x26afd1('0x12'),fn('IF',literal(_0x26afd1('0x2a')))),_0x26afd1('0x7')],[fn(_0x26afd1('0x12'),fn('IF',literal(_0x26afd1('0x13')))),_0x26afd1('0x2b')],[fn('COUNT',fn('IF',literal(_0x26afd1('0x43')))),_0x26afd1('0x27')],[fn(_0x26afd1('0x12'),fn('IF',literal(_0x26afd1('0x3')))),_0x26afd1('0x16')],[fn(_0x26afd1('0x12'),fn('IF',literal('`state`\x20=\x2010\x20,\x201,\x20null'))),'dropContacts'],[fn(_0x26afd1('0x12'),fn('IF',literal(_0x26afd1('0x14')))),_0x26afd1('0x4')],[fn(_0x26afd1('0x12'),fn('IF',literal(_0x26afd1('0x46')))),'reCallContacts'],[fn('COUNT',fn('IF',literal('`state`\x20=\x2019,\x201,\x20null'))),_0x26afd1('0x3c')]]})[_0x26afd1('0x65')](handleEntityNotFound(_0x31d8b2,null))[_0x26afd1('0x65')](respondWithResult(_0x31d8b2,null))[_0x26afd1('0xa')](handleError(_0x31d8b2,null));},exports[_0x476eec('0x36')]=function(_0x1fc6b8,_0x149766){const _0x5d12ac=_0x476eec;return db['CmHopperFinal'][_0x5d12ac('0x19')]({'raw':![],'where':{'CampaignId':_0x1fc6b8[_0x5d12ac('0x23')]['id']},'attributes':[[fn(_0x5d12ac('0x12'),fn('IF',literal(_0x5d12ac('0x2a')))),'noSuchContacts'],[fn(_0x5d12ac('0x12'),fn('IF',literal(_0x5d12ac('0x13')))),_0x5d12ac('0x2b')],[fn(_0x5d12ac('0x12'),fn('IF',literal(_0x5d12ac('0x43')))),_0x5d12ac('0x27')],[fn('COUNT',fn('IF',literal(_0x5d12ac('0x3')))),'congestionContacts'],[fn(_0x5d12ac('0x12'),fn('IF',literal(_0x5d12ac('0xd')))),'dropContacts'],[fn('COUNT',fn('IF',literal('`state`\x20=\x2011\x20,\x201,\x20null'))),_0x5d12ac('0x4')],[fn(_0x5d12ac('0x12'),fn('IF',literal(_0x5d12ac('0x46')))),_0x5d12ac('0x2f')],[fn('COUNT',fn('IF',literal(_0x5d12ac('0x4b')))),'answeringMachine']]})[_0x5d12ac('0x65')](handleEntityNotFound(_0x149766,null))[_0x5d12ac('0x65')](respondWithResult(_0x149766,null))[_0x5d12ac('0xa')](handleError(_0x149766,null));},exports['moveContactsQueueCampaignHopperFinal']=function(_0x5e6731,_0x247387){const _0x4c3c8c=_0x476eec;return db[_0x4c3c8c('0x38')]['findOne']({'where':{'id':_0x5e6731[_0x4c3c8c('0x23')]['id']}})[_0x4c3c8c('0x65')](handleEntityNotFound(_0x247387,null))[_0x4c3c8c('0x65')](function(_0x34f3e9){const _0x1b5d47=_0x4c3c8c;let _0x127cbe;if(_0x34f3e9)return _0x127cbe=squel[_0x1b5d47('0x3e')]()[_0x1b5d47('0x30')](_0x1b5d47('0x35'))[_0x1b5d47('0x1a')]([_0x1b5d47('0x63'),_0x1b5d47('0x10'),_0x1b5d47('0x54'),_0x1b5d47('0x67'),'VoiceQueueId',_0x1b5d47('0x60'),_0x1b5d47('0x48')],squel[_0x1b5d47('0x18')]()[_0x1b5d47('0x4d')](_0x1b5d47('0x5f'),_0x1b5d47('0x63'))[_0x1b5d47('0x4d')](_0x1b5d47('0x4e'),'scheduledAt')[_0x1b5d47('0x4d')]('ANY_VALUE(ContactId)','ContactId')[_0x1b5d47('0x4d')]('ANY_VALUE(ListId)',_0x1b5d47('0x67'))['field']('ANY_VALUE(VoiceQueueId)',_0x1b5d47('0x68'))['field']('NOW()',_0x1b5d47('0x60'))[_0x1b5d47('0x4d')](_0x1b5d47('0x4e'),_0x1b5d47('0x48'))[_0x1b5d47('0x17')](_0x1b5d47('0x1b'))[_0x1b5d47('0x1e')](_0x1b5d47('0x26'),_0x5e6731[_0x1b5d47('0x23')]['id']['toString']())[_0x1b5d47('0x1e')]('state\x20=\x20?',_0x5e6731[_0x1b5d47('0x5e')][_0x1b5d47('0x56')][_0x1b5d47('0x3f')]())['where']('calleridnum\x20IS\x20NOT\x20NULL')[_0x1b5d47('0x1e')](_0x1b5d47('0x11'),squel['select']()[_0x1b5d47('0x4d')](_0x1b5d47('0x63'))[_0x1b5d47('0x17')](_0x1b5d47('0x35'))[_0x1b5d47('0x1e')](_0x1b5d47('0x26'),_0x5e6731[_0x1b5d47('0x23')]['id']['toString']()))[_0x1b5d47('0x1e')](_0x1b5d47('0x11'),squel[_0x1b5d47('0x18')]()[_0x1b5d47('0x4d')](_0x1b5d47('0x66'))[_0x1b5d47('0x17')]('cm_hopper_final')[_0x1b5d47('0x1e')](_0x1b5d47('0x26'),_0x5e6731[_0x1b5d47('0x23')]['id']['toString']())[_0x1b5d47('0x1e')]('state\x20=\x204'))[_0x1b5d47('0x4f')](_0x1b5d47('0x54')))[_0x1b5d47('0x3f')](),db[_0x1b5d47('0x4a')][_0x1b5d47('0x49')](_0x127cbe);return[];})[_0x4c3c8c('0x65')](respondWithResult(_0x247387,null))[_0x4c3c8c('0xa')](handleError(_0x247387,null));},exports[_0x476eec('0x5b')]=function(_0x5ef391,_0x294444){const _0x471cad=_0x476eec;return db[_0x471cad('0x64')][_0x471cad('0x22')]({'where':{'id':_0x5ef391[_0x471cad('0x23')]['id']}})['then'](handleEntityNotFound(_0x294444,null))[_0x471cad('0x65')](function(_0x24c049){const _0x6f1065=_0x471cad;let _0x4cbe33;if(_0x24c049)return _0x4cbe33=squel[_0x6f1065('0x3e')]()[_0x6f1065('0x30')](_0x6f1065('0x35'))[_0x6f1065('0x1a')]([_0x6f1065('0x63'),'scheduledAt',_0x6f1065('0x54'),_0x6f1065('0x67'),'CampaignId',_0x6f1065('0x60'),'updatedAt'],squel['select']()[_0x6f1065('0x4d')](_0x6f1065('0x5f'),_0x6f1065('0x63'))[_0x6f1065('0x4d')](_0x6f1065('0x4e'),'scheduledAt')[_0x6f1065('0x4d')](_0x6f1065('0x31'),_0x6f1065('0x54'))[_0x6f1065('0x4d')](_0x6f1065('0x59'),_0x6f1065('0x67'))[_0x6f1065('0x4d')](_0x6f1065('0x61'),_0x6f1065('0x39'))[_0x6f1065('0x4d')](_0x6f1065('0x4e'),_0x6f1065('0x60'))[_0x6f1065('0x4d')]('NOW()','updatedAt')[_0x6f1065('0x17')](_0x6f1065('0x1b'))[_0x6f1065('0x1e')](_0x6f1065('0x9'),_0x5ef391[_0x6f1065('0x23')]['id'][_0x6f1065('0x3f')]())[_0x6f1065('0x1e')](_0x6f1065('0x62'),_0x5ef391[_0x6f1065('0x5e')]['state']['toString']())[_0x6f1065('0x1e')](_0x6f1065('0x29'))[_0x6f1065('0x1e')](_0x6f1065('0x11'),squel['select']()[_0x6f1065('0x4d')](_0x6f1065('0x63'))[_0x6f1065('0x17')](_0x6f1065('0x35'))[_0x6f1065('0x1e')](_0x6f1065('0x9'),_0x5ef391[_0x6f1065('0x23')]['id'][_0x6f1065('0x3f')]()))['where']('calleridnum\x20NOT\x20IN\x20(?)',squel['select']()[_0x6f1065('0x4d')](_0x6f1065('0x66'))[_0x6f1065('0x17')](_0x6f1065('0x1b'))[_0x6f1065('0x1e')](_0x6f1065('0x9'),_0x5ef391[_0x6f1065('0x23')]['id']['toString']())[_0x6f1065('0x1e')]('state\x20=\x204'))['group'](_0x6f1065('0x54')))[_0x6f1065('0x3f')](),db[_0x6f1065('0x4a')][_0x6f1065('0x49')](_0x4cbe33);return[];})[_0x471cad('0x65')](respondWithResult(_0x294444,null))[_0x471cad('0xa')](handleError(_0x294444,null));},exports['checkContactHopper']=function(_0x2acade,_0x1bbe11){const _0xd926e9=_0x476eec;return db[_0xd926e9('0x2d')][_0xd926e9('0x22')]({'where':{'VoiceQueueId':_0x2acade['body'][_0xd926e9('0x68')],'CampaignId':_0x2acade[_0xd926e9('0x5e')]['CampaignId'],'ContactId':_0x2acade['body'][_0xd926e9('0x54')]}})[_0xd926e9('0x65')](handleEntityNotFound(_0x1bbe11,null))[_0xd926e9('0x65')](function(_0x55cb68){if(_0x55cb68)return _0x55cb68;return null;})[_0xd926e9('0x65')](respondWithResult(_0x1bbe11,null))[_0xd926e9('0xa')](handleError(_0x1bbe11,null));}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.model.js b/server/api/cmHopperFinal/cmHopperFinal.model.js index d563a74..eead4e2 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.model.js +++ b/server/api/cmHopperFinal/cmHopperFinal.model.js @@ -1 +1 @@ -const a148_0x5474=['uniqueid','cm_hopper_final','./cmHopperFinal.attributes','define','calleridnum'];(function(_0x541379,_0x547412){const _0x31441d=function(_0x26908a){while(--_0x26908a){_0x541379['push'](_0x541379['shift']());}};_0x31441d(++_0x547412);}(a148_0x5474,0x11b));const a148_0x3144=function(_0x541379,_0x547412){_0x541379=_0x541379-0x0;let _0x31441d=a148_0x5474[_0x541379];return _0x31441d;};const _0x4cc25f=a148_0x3144;'use strict';const attributes=require(_0x4cc25f('0x4'));module['exports']=function(_0x26908a){const _0x29b61e=_0x4cc25f,_0x46fceb=_0x26908a[_0x29b61e('0x0')]('CmHopperFinal',attributes,{'tableName':_0x29b61e('0x3'),'paranoid':![],'indexes':[{'name':_0x29b61e('0x1'),'fields':['calleridnum']},{'name':'uniqueid','fields':[_0x29b61e('0x2')]}],'timestamps':!![]});return _0x46fceb;}; \ No newline at end of file +const a148_0x3891=['uniqueid','exports','./cmHopperFinal.attributes','define','cm_hopper_final','calleridnum','CmHopperFinal'];(function(_0x398611,_0x389134){const _0x4195d2=function(_0x3e5d7b){while(--_0x3e5d7b){_0x398611['push'](_0x398611['shift']());}};_0x4195d2(++_0x389134);}(a148_0x3891,0x153));const a148_0x4195=function(_0x398611,_0x389134){_0x398611=_0x398611-0x0;let _0x4195d2=a148_0x3891[_0x398611];return _0x4195d2;};const _0x17f33c=a148_0x4195;'use strict';const attributes=require(_0x17f33c('0x6'));module[_0x17f33c('0x5')]=function(_0x3e5d7b){const _0x259bed=_0x17f33c,_0x130b33=_0x3e5d7b[_0x259bed('0x0')](_0x259bed('0x3'),attributes,{'tableName':_0x259bed('0x1'),'paranoid':![],'indexes':[{'name':_0x259bed('0x2'),'fields':[_0x259bed('0x2')]},{'name':_0x259bed('0x4'),'fields':[_0x259bed('0x4')]}],'timestamps':!![]});return _0x130b33;}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/cmHopperFinal.rpc.js b/server/api/cmHopperFinal/cmHopperFinal.rpc.js index f04074e..7ff532d 100644 --- a/server/api/cmHopperFinal/cmHopperFinal.rpc.js +++ b/server/api/cmHopperFinal/cmHopperFinal.rpc.js @@ -1 +1 @@ -const a149_0x1c15=['error','body','debug','info','options','../../config/logger','catch','CmHopperFinal','message','then','create','../../mysqldb','raw','CreateCmHopperFinal'];(function(_0x557596,_0x1c15d3){const _0x497879=function(_0x1faf00){while(--_0x1faf00){_0x557596['push'](_0x557596['shift']());}};_0x497879(++_0x1c15d3);}(a149_0x1c15,0x154));const a149_0x4978=function(_0x557596,_0x1c15d3){_0x557596=_0x557596-0x0;let _0x497879=a149_0x1c15[_0x557596];return _0x497879;};const _0x1536cc=a149_0x4978;'use strict';const db=require(_0x1536cc('0x7'))['db'],logger=require(_0x1536cc('0x1'))('rpc');exports['CreateCmHopperFinal']=function(_0x1faf00){const _0xaa1082=this;return new Promise(function(_0x3eeff7,_0x491ec5){const _0x472614=a149_0x4978;return db[_0x472614('0x3')][_0x472614('0x6')](_0x1faf00[_0x472614('0xb')],{'raw':_0x1faf00[_0x472614('0x0')]?_0x1faf00['options'][_0x472614('0x8')]===undefined?!![]:![]:!![]})[_0x472614('0x5')](function(_0x1e1c82){const _0x3d641a=_0x472614;logger[_0x3d641a('0xd')](_0x3d641a('0x9'),_0x1faf00),logger[_0x3d641a('0xc')](_0x3d641a('0x9'),_0x1faf00,JSON['stringify'](_0x1e1c82)),_0x3eeff7(_0x1e1c82);})[_0x472614('0x2')](function(_0x374e22){const _0x16e323=_0x472614;logger[_0x16e323('0xa')]('CreateCmHopperFinal',_0x374e22[_0x16e323('0x4')],_0x1faf00),_0x491ec5(_0xaa1082[_0x16e323('0xa')](0x1f4,_0x374e22[_0x16e323('0x4')]));});});}; \ No newline at end of file +const a149_0x2189=['then','CreateCmHopperFinal','message','catch','body','raw','error','../../config/logger','info','create','debug','stringify','options'];(function(_0x467ec2,_0x2189d5){const _0x14633=function(_0x2f9d53){while(--_0x2f9d53){_0x467ec2['push'](_0x467ec2['shift']());}};_0x14633(++_0x2189d5);}(a149_0x2189,0x1ea));const a149_0x1463=function(_0x467ec2,_0x2189d5){_0x467ec2=_0x467ec2-0x0;let _0x14633=a149_0x2189[_0x467ec2];return _0x14633;};const _0x48b938=a149_0x1463;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x48b938('0xb'))('rpc');exports['CreateCmHopperFinal']=function(_0x2f9d53){const _0x39d3da=this;return new Promise(function(_0x41bdc1,_0x410ce0){const _0x14a93d=a149_0x1463;return db['CmHopperFinal'][_0x14a93d('0x0')](_0x2f9d53[_0x14a93d('0x8')],{'raw':_0x2f9d53['options']?_0x2f9d53[_0x14a93d('0x3')][_0x14a93d('0x9')]===undefined?!![]:![]:!![]})[_0x14a93d('0x4')](function(_0x42c153){const _0x8bfaff=_0x14a93d;logger[_0x8bfaff('0xc')](_0x8bfaff('0x5'),_0x2f9d53),logger[_0x8bfaff('0x1')](_0x8bfaff('0x5'),_0x2f9d53,JSON[_0x8bfaff('0x2')](_0x42c153)),_0x41bdc1(_0x42c153);})[_0x14a93d('0x7')](function(_0x2c75b9){const _0xece6d2=_0x14a93d;logger[_0xece6d2('0xa')]('CreateCmHopperFinal',_0x2c75b9[_0xece6d2('0x6')],_0x2f9d53),_0x410ce0(_0x39d3da[_0xece6d2('0xa')](0x1f4,_0x2c75b9['message']));});});}; \ No newline at end of file diff --git a/server/api/cmHopperFinal/index.js b/server/api/cmHopperFinal/index.js index c398844..132c763 100644 --- a/server/api/cmHopperFinal/index.js +++ b/server/api/cmHopperFinal/index.js @@ -1 +1 @@ -const a150_0x9447=['/describe','moveContactsQueueCampaignHopperFinal','show','/voice/campaign/moveContacts/:id','describe','/voice/queue/moveContacts/:id','Router','/:id','index','isAuthenticated','express','put','countContactsIvrCampaignHopperFinal','get','../../components/auth/service','/campaign/countAttributes/:id','post','/voice/queue/countAttributes/:id','moveContactsIvrCampaignHopperFinal','countContactsQueueCampaignHopperFinal','update','/checkContactHopper'];(function(_0x242b54,_0x9447c3){const _0x2fc1a1=function(_0x324bf6){while(--_0x324bf6){_0x242b54['push'](_0x242b54['shift']());}};_0x2fc1a1(++_0x9447c3);}(a150_0x9447,0x1d4));const a150_0x2fc1=function(_0x242b54,_0x9447c3){_0x242b54=_0x242b54-0x0;let _0x2fc1a1=a150_0x9447[_0x242b54];return _0x2fc1a1;};const _0x57d2df=a150_0x2fc1;'use strict';const express=require(_0x57d2df('0x4')),router=express[_0x57d2df('0x0')](),auth=require(_0x57d2df('0x8')),controller=require('./cmHopperFinal.controller');router[_0x57d2df('0x7')]('/',auth[_0x57d2df('0x3')](),controller[_0x57d2df('0x2')]),router[_0x57d2df('0x7')](_0x57d2df('0x10'),auth[_0x57d2df('0x3')](),controller[_0x57d2df('0x14')]),router[_0x57d2df('0x7')](_0x57d2df('0x1'),auth[_0x57d2df('0x3')](),controller[_0x57d2df('0x12')]),router[_0x57d2df('0x7')](_0x57d2df('0xb'),auth['isAuthenticated'](),controller[_0x57d2df('0xd')]),router['get'](_0x57d2df('0x9'),auth[_0x57d2df('0x3')](),controller[_0x57d2df('0x6')]),router[_0x57d2df('0xa')](_0x57d2df('0x15'),auth['isAuthenticated'](),controller[_0x57d2df('0x11')]),router[_0x57d2df('0xa')](_0x57d2df('0x13'),auth[_0x57d2df('0x3')](),controller[_0x57d2df('0xc')]),router[_0x57d2df('0xa')](_0x57d2df('0xf'),auth[_0x57d2df('0x3')](),controller['checkContactHopper']),router[_0x57d2df('0x5')](_0x57d2df('0x1'),auth[_0x57d2df('0x3')](),controller[_0x57d2df('0xe')]),module['exports']=router; \ No newline at end of file +const a150_0x3f1d=['/describe','/voice/campaign/moveContacts/:id','/:id','./cmHopperFinal.controller','countContactsIvrCampaignHopperFinal','get','/voice/queue/countAttributes/:id','/campaign/countAttributes/:id','countContactsQueueCampaignHopperFinal','Router','checkContactHopper','exports','post','update','moveContactsQueueCampaignHopperFinal','isAuthenticated','describe'];(function(_0x5b9fb2,_0x3f1d73){const _0x2c8a82=function(_0x5eaaad){while(--_0x5eaaad){_0x5b9fb2['push'](_0x5b9fb2['shift']());}};_0x2c8a82(++_0x3f1d73);}(a150_0x3f1d,0xd6));const a150_0x2c8a=function(_0x5b9fb2,_0x3f1d73){_0x5b9fb2=_0x5b9fb2-0x0;let _0x2c8a82=a150_0x3f1d[_0x5b9fb2];return _0x2c8a82;};const _0x290d0f=a150_0x2c8a;'use strict';const express=require('express'),router=express[_0x290d0f('0x10')](),auth=require('../../components/auth/service'),controller=require(_0x290d0f('0xa'));router['get']('/',auth[_0x290d0f('0x5')](),controller['index']),router['get'](_0x290d0f('0x7'),auth[_0x290d0f('0x5')](),controller[_0x290d0f('0x6')]),router['get'](_0x290d0f('0x9'),auth[_0x290d0f('0x5')](),controller['show']),router[_0x290d0f('0xc')](_0x290d0f('0xd'),auth['isAuthenticated'](),controller[_0x290d0f('0xf')]),router[_0x290d0f('0xc')](_0x290d0f('0xe'),auth[_0x290d0f('0x5')](),controller[_0x290d0f('0xb')]),router[_0x290d0f('0x2')]('/voice/queue/moveContacts/:id',auth['isAuthenticated'](),controller[_0x290d0f('0x4')]),router[_0x290d0f('0x2')](_0x290d0f('0x8'),auth[_0x290d0f('0x5')](),controller['moveContactsIvrCampaignHopperFinal']),router[_0x290d0f('0x2')]('/checkContactHopper',auth[_0x290d0f('0x5')](),controller[_0x290d0f('0x0')]),router['put'](_0x290d0f('0x9'),auth[_0x290d0f('0x5')](),controller[_0x290d0f('0x3')]),module[_0x290d0f('0x1')]=router; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.attributes.js b/server/api/cmHopperHistory/cmHopperHistory.attributes.js index b88b5ad..8377614 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.attributes.js +++ b/server/api/cmHopperHistory/cmHopperHistory.attributes.js @@ -1 +1 @@ -const a151_0x5e3b=['STRING','BOOLEAN','DATE','INTEGER','exports','sequelize'];(function(_0x61b082,_0x5e3b15){const _0x1e281e=function(_0x25ae64){while(--_0x25ae64){_0x61b082['push'](_0x61b082['shift']());}};_0x1e281e(++_0x5e3b15);}(a151_0x5e3b,0x72));const a151_0x1e28=function(_0x61b082,_0x5e3b15){_0x61b082=_0x61b082-0x0;let _0x1e281e=a151_0x5e3b[_0x61b082];return _0x1e281e;};const _0x5a6d95=a151_0x1e28;'use strict';const Sequelize=require(_0x5a6d95('0x5'));module[_0x5a6d95('0x4')]={'state':{'type':Sequelize[_0x5a6d95('0x3')](0x2)},'statedesc':{'type':Sequelize[_0x5a6d95('0x0')]},'scheduledat':{'type':Sequelize['DATE']},'countbusyretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'countglobal':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'uniqueid':{'type':Sequelize['STRING']},'originatecalleridnum':{'type':Sequelize[_0x5a6d95('0x0')]},'originatecalleridname':{'type':Sequelize[_0x5a6d95('0x0')]},'calleridnum':{'type':Sequelize[_0x5a6d95('0x0')]},'calleridname':{'type':Sequelize[_0x5a6d95('0x0')]},'starttime':{'type':Sequelize['DATE']},'responsetime':{'type':Sequelize[_0x5a6d95('0x2')]},'answertime':{'type':Sequelize[_0x5a6d95('0x2')]},'droptime':{'type':Sequelize[_0x5a6d95('0x2')]},'endtime':{'type':Sequelize[_0x5a6d95('0x2')]},'ringtime':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'holdtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x5a6d95('0x0')]},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize['STRING']},'membername':{'type':Sequelize['STRING']},'reason':{'type':Sequelize['STRING']},'amd':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fax':{'type':Sequelize[_0x5a6d95('0x1')],'defaultValue':![]},'callback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x5a6d95('0x0')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x5a6d95('0x2')]},'recallme':{'type':Sequelize[_0x5a6d95('0x1')],'defaultValue':![]},'editedat':{'type':Sequelize['DATE']},'edited':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'countnosuchnumberretry':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x5a6d95('0x3')],'defaultValue':0x0}}; \ No newline at end of file +const a151_0x187b=['exports','DATE','INTEGER','BOOLEAN','STRING'];(function(_0x4f1992,_0x187be9){const _0x2ffefd=function(_0x4da4b6){while(--_0x4da4b6){_0x4f1992['push'](_0x4f1992['shift']());}};_0x2ffefd(++_0x187be9);}(a151_0x187b,0x1bb));const a151_0x2ffe=function(_0x4f1992,_0x187be9){_0x4f1992=_0x4f1992-0x0;let _0x2ffefd=a151_0x187b[_0x4f1992];return _0x2ffefd;};const _0x1047f7=a151_0x2ffe;'use strict';const Sequelize=require('sequelize');module[_0x1047f7('0x2')]={'state':{'type':Sequelize[_0x1047f7('0x4')](0x2)},'statedesc':{'type':Sequelize['STRING']},'scheduledat':{'type':Sequelize['DATE']},'countbusyretry':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'countcongestionretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countnoanswerretry':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'countglobal':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'uniqueid':{'type':Sequelize[_0x1047f7('0x1')]},'originatecalleridnum':{'type':Sequelize['STRING']},'originatecalleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x1047f7('0x1')]},'calleridname':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize[_0x1047f7('0x3')]},'responsetime':{'type':Sequelize[_0x1047f7('0x3')]},'answertime':{'type':Sequelize['DATE']},'droptime':{'type':Sequelize[_0x1047f7('0x3')]},'endtime':{'type':Sequelize['DATE']},'ringtime':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'holdtime':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'talktime':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'followuptime':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'dropreason':{'type':Sequelize[_0x1047f7('0x1')]},'campaign':{'type':Sequelize['STRING']},'campaigntype':{'type':Sequelize[_0x1047f7('0x1')]},'membername':{'type':Sequelize[_0x1047f7('0x1')]},'reason':{'type':Sequelize[_0x1047f7('0x1')]},'amd':{'type':Sequelize[_0x1047f7('0x0')],'defaultValue':![]},'fax':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callback':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'callbackuniqueid':{'type':Sequelize[_0x1047f7('0x1')],'defaultValue':null},'callbackat':{'type':Sequelize[_0x1047f7('0x3')]},'recallme':{'type':Sequelize[_0x1047f7('0x0')],'defaultValue':![]},'editedat':{'type':Sequelize[_0x1047f7('0x3')]},'edited':{'type':Sequelize[_0x1047f7('0x0')],'defaultValue':![]},'countnosuchnumberretry':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'countdropretry':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'countabandonedretry':{'type':Sequelize[_0x1047f7('0x4')],'defaultValue':0x0},'countmachineretry':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'countagentrejectretry':{'type':Sequelize[_0x1047f7('0x4')],'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 f877e52..6787f12 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.controller.js +++ b/server/api/cmHopperHistory/cmHopperHistory.controller.js @@ -1 +1 @@ -const a152_0x29e5=['rawAttributes','error','create','stack','name','query','../../config/logger','status','keys','count','merge','sendStatus','sequelize','then','catch','Content-Range','type','set','fields','filters','update','api','sort','like','includeAll','model','undefined','params','order','key','offset','where','limit','VIRTUAL','filter','lodash','uniqueid','index','CmHopperHistory','fieldName','include','map','rows','attributes','length','send','intersection','body','findAll','options','findOne','show','json'];(function(_0x48eb33,_0x29e579){const _0x4b2581=function(_0x566e7c){while(--_0x566e7c){_0x48eb33['push'](_0x48eb33['shift']());}};_0x4b2581(++_0x29e579);}(a152_0x29e5,0xbf));const a152_0x4b25=function(_0x48eb33,_0x29e579){_0x48eb33=_0x48eb33-0x0;let _0x4b2581=a152_0x29e5[_0x48eb33];return _0x4b2581;};const _0x238b53=a152_0x4b25;'use strict';const _=require(_0x238b53('0x3')),qs=require('../../components/parsers/qs'),logger=require(_0x238b53('0x1b'))(_0x238b53('0x2a')),db=require('../../mysqldb')['db'],{Op}=require(_0x238b53('0x21'));function respondWithResult(_0x566e7c,_0x5223c7){return _0x5223c7=_0x5223c7||0xc8,function(_0x5513e8){const _0x20c322=a152_0x4b25;if(_0x5513e8)return _0x566e7c[_0x20c322('0x1c')](_0x5223c7)[_0x20c322('0x14')](_0x5513e8);};}function respondWithFilteredResult(_0x10b7f7,_0xacdde9){return function(_0x3d433b){const _0x4cd8eb=a152_0x4b25;if(_0x3d433b){const _0x591e46=_0x3d433b[_0x4cd8eb('0x1e')],_0x51e1d0=_0xacdde9['offset'];let _0x1f6a18=_0xacdde9['offset']+_0xacdde9['limit'],_0x369147;return _0x1f6a18>=_0x591e46?(_0x1f6a18=_0x591e46,_0x369147=0xc8):_0x369147=0xce,_0x10b7f7[_0x4cd8eb('0x1c')](_0x369147),_0x10b7f7[_0x4cd8eb('0x26')](_0x4cd8eb('0x24'),_0x51e1d0+'-'+_0x1f6a18+'/'+_0x591e46)[_0x4cd8eb('0x14')](_0x3d433b);}return null;};}function saveUpdates(_0x2df8f4){return function(_0x47634a){const _0x438d88=a152_0x4b25;if(_0x47634a)return _0x47634a[_0x438d88('0x29')](_0x2df8f4)[_0x438d88('0x22')](function(_0x97aeab){return _0x97aeab;});return null;};}function handleEntityNotFound(_0x559c9e){return function(_0x1f9ee4){const _0x3980a6=a152_0x4b25;return!_0x1f9ee4&&_0x559c9e[_0x3980a6('0x20')](0x194),_0x1f9ee4;};}function handleError(_0x2e336f,_0x5c6e92){return _0x5c6e92=_0x5c6e92||0x1f4,function(_0x4e4868){const _0x35f380=a152_0x4b25;logger[_0x35f380('0x16')](_0x4e4868[_0x35f380('0x18')]),_0x4e4868[_0x35f380('0x19')]&&delete _0x4e4868[_0x35f380('0x19')],_0x2e336f[_0x35f380('0x1c')](_0x5c6e92)[_0x35f380('0xd')](_0x4e4868);};}exports[_0x238b53('0x5')]=function(_0x5d6c59,_0x34fbf6){const _0x562486=_0x238b53;let _0x8520d4={};const _0x1988d1={},_0x3756ef={'count':0x0,'rows':[]},_0x263e46=_[_0x562486('0x9')](db['CmHopperHistory']['rawAttributes'],function(_0x9ee28c){const _0x51b899=_0x562486;return{'name':_0x9ee28c[_0x51b899('0x7')],'type':_0x9ee28c['type'][_0x51b899('0x32')]};});_0x1988d1[_0x562486('0x2e')]=_[_0x562486('0x9')](_0x263e46,_0x562486('0x19')),_0x1988d1[_0x562486('0x1a')]=_[_0x562486('0x1d')](_0x5d6c59[_0x562486('0x1a')]),_0x1988d1[_0x562486('0x28')]=_[_0x562486('0xe')](_0x1988d1[_0x562486('0x2e')],_0x1988d1[_0x562486('0x1a')]),_0x8520d4[_0x562486('0xb')]=_['intersection'](_0x1988d1[_0x562486('0x2e')],qs['fields'](_0x5d6c59[_0x562486('0x1a')][_0x562486('0x27')])),_0x8520d4['attributes']=_0x8520d4[_0x562486('0xb')][_0x562486('0xc')]?_0x8520d4['attributes']:_0x1988d1[_0x562486('0x2e')];typeof _0x5d6c59[_0x562486('0x1a')]['nolimit']===_0x562486('0x2f')&&(_0x8520d4[_0x562486('0x0')]=qs[_0x562486('0x0')](_0x5d6c59['query'][_0x562486('0x0')]),_0x8520d4[_0x562486('0x33')]=qs[_0x562486('0x33')](_0x5d6c59[_0x562486('0x1a')][_0x562486('0x33')]));_0x8520d4[_0x562486('0x31')]=qs[_0x562486('0x2b')](_0x5d6c59[_0x562486('0x1a')]['sort']),_0x8520d4['where']=qs['filters'](_['pick'](_0x5d6c59['query'],_0x1988d1[_0x562486('0x28')]),_0x263e46);_0x5d6c59[_0x562486('0x1a')][_0x562486('0x2')]&&(_0x8520d4['where']=_[_0x562486('0x1f')](_0x8520d4[_0x562486('0x34')],{[Op['or']]:_[_0x562486('0x9')](_0x263e46,function(_0x2c91b1){const _0x631ca6=_0x562486;if(_0x2c91b1[_0x631ca6('0x25')]!==_0x631ca6('0x1')){const _0x58fcf9={};return _0x58fcf9[_0x2c91b1['name']]={[Op[_0x631ca6('0x2c')]]:'%'+_0x5d6c59[_0x631ca6('0x1a')][_0x631ca6('0x2')]+'%'},_0x58fcf9;}})}));_0x8520d4=_['merge']({},_0x8520d4,_0x5d6c59[_0x562486('0x11')]);const _0x336228={'where':_0x8520d4['where']};return db[_0x562486('0x6')][_0x562486('0x1e')](_0x336228)[_0x562486('0x22')](function(_0x273b9a){const _0x59df6b=_0x562486;return _0x3756ef[_0x59df6b('0x1e')]=_0x273b9a,_0x5d6c59[_0x59df6b('0x1a')]['includeAll']&&(_0x8520d4[_0x59df6b('0x8')]=[{'all':!![]}]),db[_0x59df6b('0x6')][_0x59df6b('0x10')](_0x8520d4);})[_0x562486('0x22')](function(_0x5920b5){const _0x12a363=_0x562486;return _0x3756ef[_0x12a363('0xa')]=_0x5920b5,_0x3756ef;})['then'](respondWithFilteredResult(_0x34fbf6,_0x8520d4))[_0x562486('0x23')](handleError(_0x34fbf6,null));},exports[_0x238b53('0x13')]=function(_0x4bfdc0,_0x52069e){const _0x260a1b=_0x238b53;let _0x2f0efa={'raw':!![],'where':{'id':_0x4bfdc0[_0x260a1b('0x30')]['id']}};const _0xd921e1={};return _0xd921e1[_0x260a1b('0x2e')]=_[_0x260a1b('0x1d')](db[_0x260a1b('0x6')][_0x260a1b('0x15')]),_0xd921e1[_0x260a1b('0x1a')]=_[_0x260a1b('0x1d')](_0x4bfdc0[_0x260a1b('0x1a')]),_0xd921e1[_0x260a1b('0x28')]=_[_0x260a1b('0xe')](_0xd921e1[_0x260a1b('0x2e')],_0xd921e1['query']),_0x2f0efa['attributes']=_[_0x260a1b('0xe')](_0xd921e1['model'],qs[_0x260a1b('0x27')](_0x4bfdc0['query'][_0x260a1b('0x27')])),_0x2f0efa[_0x260a1b('0xb')]=_0x2f0efa[_0x260a1b('0xb')][_0x260a1b('0xc')]?_0x2f0efa[_0x260a1b('0xb')]:_0xd921e1[_0x260a1b('0x2e')],_0x4bfdc0[_0x260a1b('0x1a')][_0x260a1b('0x2d')]&&(_0x2f0efa[_0x260a1b('0x8')]=[{'all':!![]}]),_0x2f0efa=_[_0x260a1b('0x1f')]({},_0x2f0efa,_0x4bfdc0[_0x260a1b('0x11')]),db[_0x260a1b('0x6')]['findOne'](_0x2f0efa)['then'](handleEntityNotFound(_0x52069e,null))['then'](respondWithResult(_0x52069e,null))['catch'](handleError(_0x52069e,null));},exports['create']=function(_0x4e9373,_0x3220cb){const _0xa9632b=_0x238b53;return db['CmHopperHistory'][_0xa9632b('0x17')](_0x4e9373[_0xa9632b('0xf')],{})[_0xa9632b('0x22')](respondWithResult(_0x3220cb,0xc9))['catch'](handleError(_0x3220cb,null));},exports['describe']=function(_0x463585,_0x70128b){const _0x15a9af=_0x238b53;return db[_0x15a9af('0x6')]['describe']()[_0x15a9af('0x22')](respondWithResult(_0x70128b,null))[_0x15a9af('0x23')](handleError(_0x70128b,null));},exports[_0x238b53('0x29')]=function(_0xcf2cdc,_0x5b0069){const _0x4adabf=_0x238b53;return _0xcf2cdc[_0x4adabf('0xf')]['uniqueid']&&delete _0xcf2cdc[_0x4adabf('0xf')][_0x4adabf('0x4')],db['CmHopperHistory'][_0x4adabf('0x12')]({'where':{'uniqueid':_0xcf2cdc[_0x4adabf('0x30')]['id']}})[_0x4adabf('0x22')](handleEntityNotFound(_0x5b0069,null))[_0x4adabf('0x22')](saveUpdates(_0xcf2cdc[_0x4adabf('0xf')],null))[_0x4adabf('0x22')](respondWithResult(_0x5b0069,null))[_0x4adabf('0x23')](handleError(_0x5b0069,null));}; \ No newline at end of file +const a152_0x5d8a=['create','include','stack','fieldName','sort','where','includeAll','fields','type','Content-Range','show','model','like','filters','../../mysqldb','nolimit','set','catch','json','name','intersection','map','index','VIRTUAL','sendStatus','merge','limit','params','CmHopperHistory','describe','sequelize','count','body','update','query','offset','filter','../../config/logger','../../components/parsers/qs','attributes','findAll','length','findOne','undefined','options','api','rawAttributes','uniqueid','lodash','then','status','keys','rows','key'];(function(_0x1f1ded,_0x5d8a61){const _0x8a7004=function(_0x1de8f7){while(--_0x1de8f7){_0x1f1ded['push'](_0x1f1ded['shift']());}};_0x8a7004(++_0x5d8a61);}(a152_0x5d8a,0xa9));const a152_0x8a70=function(_0x1f1ded,_0x5d8a61){_0x1f1ded=_0x1f1ded-0x0;let _0x8a7004=a152_0x5d8a[_0x1f1ded];return _0x8a7004;};const _0x26dc88=a152_0x8a70;'use strict';const _=require(_0x26dc88('0x29')),qs=require(_0x26dc88('0x1f')),logger=require(_0x26dc88('0x1e'))(_0x26dc88('0x26')),db=require(_0x26dc88('0x7'))['db'],{Op}=require(_0x26dc88('0x17'));function respondWithResult(_0x1de8f7,_0x2cea49){return _0x2cea49=_0x2cea49||0xc8,function(_0x334b92){const _0x210c57=a152_0x8a70;if(_0x334b92)return _0x1de8f7[_0x210c57('0x2b')](_0x2cea49)[_0x210c57('0xb')](_0x334b92);};}function respondWithFilteredResult(_0x1499a8,_0x189fdd){return function(_0x1ce343){const _0x71bb72=a152_0x8a70;if(_0x1ce343){const _0x1eb99e=_0x1ce343[_0x71bb72('0x18')],_0x7476ed=_0x189fdd[_0x71bb72('0x1c')];let _0x1c92ca=_0x189fdd[_0x71bb72('0x1c')]+_0x189fdd[_0x71bb72('0x13')],_0x386951;return _0x1c92ca>=_0x1eb99e?(_0x1c92ca=_0x1eb99e,_0x386951=0xc8):_0x386951=0xce,_0x1499a8[_0x71bb72('0x2b')](_0x386951),_0x1499a8[_0x71bb72('0x9')](_0x71bb72('0x2'),_0x7476ed+'-'+_0x1c92ca+'/'+_0x1eb99e)[_0x71bb72('0xb')](_0x1ce343);}return null;};}function saveUpdates(_0x8644a8){return function(_0x5258d9){const _0x561725=a152_0x8a70;if(_0x5258d9)return _0x5258d9[_0x561725('0x1a')](_0x8644a8)['then'](function(_0x3ef8d2){return _0x3ef8d2;});return null;};}function handleEntityNotFound(_0x487e67){return function(_0x5f51a4){const _0x1cd34d=a152_0x8a70;return!_0x5f51a4&&_0x487e67[_0x1cd34d('0x11')](0x194),_0x5f51a4;};}function handleError(_0x5d44f3,_0x1b060d){return _0x1b060d=_0x1b060d||0x1f4,function(_0x1e0b03){const _0x4c7fd8=a152_0x8a70;logger['error'](_0x1e0b03[_0x4c7fd8('0x31')]),_0x1e0b03[_0x4c7fd8('0xc')]&&delete _0x1e0b03[_0x4c7fd8('0xc')],_0x5d44f3[_0x4c7fd8('0x2b')](_0x1b060d)['send'](_0x1e0b03);};}exports[_0x26dc88('0xf')]=function(_0x231a00,_0x10d2ad){const _0x47fc3e=_0x26dc88;let _0x266b0c={};const _0x450f71={},_0x33af7f={'count':0x0,'rows':[]},_0x4e3039=_[_0x47fc3e('0xe')](db['CmHopperHistory'][_0x47fc3e('0x27')],function(_0x317ea8){const _0x1c6590=_0x47fc3e;return{'name':_0x317ea8[_0x1c6590('0x32')],'type':_0x317ea8[_0x1c6590('0x1')][_0x1c6590('0x2e')]};});_0x450f71[_0x47fc3e('0x4')]=_[_0x47fc3e('0xe')](_0x4e3039,_0x47fc3e('0xc')),_0x450f71[_0x47fc3e('0x1b')]=_[_0x47fc3e('0x2c')](_0x231a00[_0x47fc3e('0x1b')]),_0x450f71[_0x47fc3e('0x6')]=_[_0x47fc3e('0xd')](_0x450f71[_0x47fc3e('0x4')],_0x450f71['query']),_0x266b0c[_0x47fc3e('0x20')]=_[_0x47fc3e('0xd')](_0x450f71[_0x47fc3e('0x4')],qs[_0x47fc3e('0x0')](_0x231a00[_0x47fc3e('0x1b')][_0x47fc3e('0x0')])),_0x266b0c[_0x47fc3e('0x20')]=_0x266b0c[_0x47fc3e('0x20')][_0x47fc3e('0x22')]?_0x266b0c[_0x47fc3e('0x20')]:_0x450f71[_0x47fc3e('0x4')];typeof _0x231a00[_0x47fc3e('0x1b')][_0x47fc3e('0x8')]===_0x47fc3e('0x24')&&(_0x266b0c[_0x47fc3e('0x13')]=qs['limit'](_0x231a00[_0x47fc3e('0x1b')][_0x47fc3e('0x13')]),_0x266b0c[_0x47fc3e('0x1c')]=qs[_0x47fc3e('0x1c')](_0x231a00[_0x47fc3e('0x1b')][_0x47fc3e('0x1c')]));_0x266b0c['order']=qs['sort'](_0x231a00[_0x47fc3e('0x1b')][_0x47fc3e('0x33')]),_0x266b0c[_0x47fc3e('0x34')]=qs['filters'](_['pick'](_0x231a00[_0x47fc3e('0x1b')],_0x450f71['filters']),_0x4e3039);_0x231a00[_0x47fc3e('0x1b')]['filter']&&(_0x266b0c[_0x47fc3e('0x34')]=_[_0x47fc3e('0x12')](_0x266b0c[_0x47fc3e('0x34')],{[Op['or']]:_[_0x47fc3e('0xe')](_0x4e3039,function(_0x1be156){const _0x340143=_0x47fc3e;if(_0x1be156[_0x340143('0x1')]!==_0x340143('0x10')){const _0x2f0670={};return _0x2f0670[_0x1be156[_0x340143('0xc')]]={[Op[_0x340143('0x5')]]:'%'+_0x231a00[_0x340143('0x1b')][_0x340143('0x1d')]+'%'},_0x2f0670;}})}));_0x266b0c=_[_0x47fc3e('0x12')]({},_0x266b0c,_0x231a00[_0x47fc3e('0x25')]);const _0x2f44a1={'where':_0x266b0c[_0x47fc3e('0x34')]};return db[_0x47fc3e('0x15')]['count'](_0x2f44a1)[_0x47fc3e('0x2a')](function(_0x249d56){const _0x3e2c1f=_0x47fc3e;return _0x33af7f[_0x3e2c1f('0x18')]=_0x249d56,_0x231a00[_0x3e2c1f('0x1b')]['includeAll']&&(_0x266b0c['include']=[{'all':!![]}]),db[_0x3e2c1f('0x15')][_0x3e2c1f('0x21')](_0x266b0c);})['then'](function(_0x3fd59a){const _0x5e0ead=_0x47fc3e;return _0x33af7f[_0x5e0ead('0x2d')]=_0x3fd59a,_0x33af7f;})[_0x47fc3e('0x2a')](respondWithFilteredResult(_0x10d2ad,_0x266b0c))[_0x47fc3e('0xa')](handleError(_0x10d2ad,null));},exports[_0x26dc88('0x3')]=function(_0x5e43ff,_0x2079fc){const _0x17ead3=_0x26dc88;let _0x5654e7={'raw':!![],'where':{'id':_0x5e43ff[_0x17ead3('0x14')]['id']}};const _0x2674dc={};return _0x2674dc['model']=_[_0x17ead3('0x2c')](db[_0x17ead3('0x15')][_0x17ead3('0x27')]),_0x2674dc[_0x17ead3('0x1b')]=_[_0x17ead3('0x2c')](_0x5e43ff[_0x17ead3('0x1b')]),_0x2674dc['filters']=_['intersection'](_0x2674dc[_0x17ead3('0x4')],_0x2674dc[_0x17ead3('0x1b')]),_0x5654e7['attributes']=_['intersection'](_0x2674dc[_0x17ead3('0x4')],qs[_0x17ead3('0x0')](_0x5e43ff[_0x17ead3('0x1b')][_0x17ead3('0x0')])),_0x5654e7[_0x17ead3('0x20')]=_0x5654e7[_0x17ead3('0x20')][_0x17ead3('0x22')]?_0x5654e7[_0x17ead3('0x20')]:_0x2674dc[_0x17ead3('0x4')],_0x5e43ff[_0x17ead3('0x1b')][_0x17ead3('0x35')]&&(_0x5654e7[_0x17ead3('0x30')]=[{'all':!![]}]),_0x5654e7=_['merge']({},_0x5654e7,_0x5e43ff['options']),db[_0x17ead3('0x15')][_0x17ead3('0x23')](_0x5654e7)[_0x17ead3('0x2a')](handleEntityNotFound(_0x2079fc,null))[_0x17ead3('0x2a')](respondWithResult(_0x2079fc,null))[_0x17ead3('0xa')](handleError(_0x2079fc,null));},exports[_0x26dc88('0x2f')]=function(_0x8c2c7b,_0x58b315){const _0x28ae76=_0x26dc88;return db[_0x28ae76('0x15')][_0x28ae76('0x2f')](_0x8c2c7b[_0x28ae76('0x19')],{})[_0x28ae76('0x2a')](respondWithResult(_0x58b315,0xc9))[_0x28ae76('0xa')](handleError(_0x58b315,null));},exports[_0x26dc88('0x16')]=function(_0x36f725,_0x426786){const _0x8d4199=_0x26dc88;return db[_0x8d4199('0x15')]['describe']()[_0x8d4199('0x2a')](respondWithResult(_0x426786,null))[_0x8d4199('0xa')](handleError(_0x426786,null));},exports[_0x26dc88('0x1a')]=function(_0x3e23d6,_0x17d24b){const _0x162d8d=_0x26dc88;return _0x3e23d6[_0x162d8d('0x19')][_0x162d8d('0x28')]&&delete _0x3e23d6[_0x162d8d('0x19')][_0x162d8d('0x28')],db[_0x162d8d('0x15')][_0x162d8d('0x23')]({'where':{'uniqueid':_0x3e23d6['params']['id']}})[_0x162d8d('0x2a')](handleEntityNotFound(_0x17d24b,null))['then'](saveUpdates(_0x3e23d6[_0x162d8d('0x19')],null))['then'](respondWithResult(_0x17d24b,null))['catch'](handleError(_0x17d24b,null));}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.model.js b/server/api/cmHopperHistory/cmHopperHistory.model.js index bb03163..ba0e41a 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.model.js +++ b/server/api/cmHopperHistory/cmHopperHistory.model.js @@ -1 +1 @@ -const a153_0x59ab=['cm_hopper_history','CmHopperHistory','exports','./cmHopperHistory.attributes','uniqueid','endtime','define'];(function(_0x55ad57,_0x59abcc){const _0x2dacff=function(_0x3ef544){while(--_0x3ef544){_0x55ad57['push'](_0x55ad57['shift']());}};_0x2dacff(++_0x59abcc);}(a153_0x59ab,0xf2));const a153_0x2dac=function(_0x55ad57,_0x59abcc){_0x55ad57=_0x55ad57-0x0;let _0x2dacff=a153_0x59ab[_0x55ad57];return _0x2dacff;};const _0xc1e2bc=a153_0x2dac;'use strict';const attributes=require(_0xc1e2bc('0x6'));module[_0xc1e2bc('0x5')]=function(_0x3ef544){const _0x468b00=_0xc1e2bc,_0x163189=_0x3ef544[_0x468b00('0x2')](_0x468b00('0x4'),attributes,{'tableName':_0x468b00('0x3'),'paranoid':![],'indexes':[{'name':_0x468b00('0x1'),'fields':[_0x468b00('0x1')]},{'name':_0x468b00('0x0'),'fields':[_0x468b00('0x0')]}],'timestamps':!![]});return _0x163189;}; \ No newline at end of file +const a153_0x1235=['uniqueid','./cmHopperHistory.attributes','endtime','cm_hopper_history','exports','CmHopperHistory'];(function(_0x4b8e75,_0x123592){const _0x41ea2e=function(_0x3f2579){while(--_0x3f2579){_0x4b8e75['push'](_0x4b8e75['shift']());}};_0x41ea2e(++_0x123592);}(a153_0x1235,0xa6));const a153_0x41ea=function(_0x4b8e75,_0x123592){_0x4b8e75=_0x4b8e75-0x0;let _0x41ea2e=a153_0x1235[_0x4b8e75];return _0x41ea2e;};const _0x1c2a84=a153_0x41ea;'use strict';const attributes=require(_0x1c2a84('0x3'));module[_0x1c2a84('0x0')]=function(_0x3f2579){const _0x2d36a8=_0x1c2a84,_0x269580=_0x3f2579['define'](_0x2d36a8('0x1'),attributes,{'tableName':_0x2d36a8('0x5'),'paranoid':![],'indexes':[{'name':_0x2d36a8('0x4'),'fields':[_0x2d36a8('0x4')]},{'name':_0x2d36a8('0x2'),'fields':[_0x2d36a8('0x2')]}],'timestamps':!![]});return _0x269580;}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/cmHopperHistory.rpc.js b/server/api/cmHopperHistory/cmHopperHistory.rpc.js index feef87f..16876a5 100644 --- a/server/api/cmHopperHistory/cmHopperHistory.rpc.js +++ b/server/api/cmHopperHistory/cmHopperHistory.rpc.js @@ -1 +1 @@ -const a154_0x81cc=['GetCampaignHopperHistory','`state`\x20=\x2014,\x201,\x20null','predictiveIntervalTotalCalls','findAll','predictiveIntervalAvgTalktime','raw','`state`\x20=\x203,\x201,\x20null','`state`\x20=\x2011\x20,\x201,\x20null','`state`\x20=\x204,\x20`talktime`,\x20null','`state`\x20=\x2013,\x201,\x20null','then','AvgHandleTime','COUNT','`state`\x20=\x204,\x201,\x20null','message','CmHopperHistory','`state`\x20=\x2010\x20,\x201,\x20null','`state`\x20=\x208,\x201,\x20null','outboundDropCallsDayTimeout','`state`\x20=\x2018,\x201,\x20null','`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null','outboundRejectCallsDay','name','body','outboundNoSuchCallsDay','where','predictiveIntervalDroppedCallsTimeout','campaign','`state`\x20=\x2011,\x201,\x20null','GetVoiceQueueHopperHistory','rpc','outboundOriginateFailureCallsDay','`state`\x20=\x2020,\x201,\x20null','outboundBusyCallsDay','outboundAnswerCallsDay','create','outboundCongestionCallsDay','options','outboundReCallsDay','info','error','outboundBlacklistCallsDay','`state`\x20=\x2016,\x201,\x20null','AVG','stringify','ivrAnswerCallsDay','outboundAnswerAgiCallsDay','CreateCmHopperHistory','catch','predictiveIntervalAvgHoldtime','debug','`state`\x20=\x2012,\x201,\x20null','outboundNoAnswerCallsDay','outboundDropCallsDayCallersExit','predictiveIntervalAnsweredCalls'];(function(_0x5513cb,_0x81ccf1){const _0x22fddc=function(_0x5e8a96){while(--_0x5e8a96){_0x5513cb['push'](_0x5513cb['shift']());}};_0x22fddc(++_0x81ccf1);}(a154_0x81cc,0x175));const a154_0x22fd=function(_0x5513cb,_0x81ccf1){_0x5513cb=_0x5513cb-0x0;let _0x22fddc=a154_0x81cc[_0x5513cb];return _0x22fddc;};const _0x2829dc=a154_0x22fd;'use strict';const db=require('../../mysqldb')['db'],{fn,literal,col}=require('sequelize'),logger=require('../../config/logger')(_0x2829dc('0x2a'));exports[_0x2829dc('0x4')]=function(_0x5e8a96){const _0x919fa1=this;return new Promise(function(_0x58b6e9,_0x24fe57){const _0x58a3ee=a154_0x22fd;return db[_0x58a3ee('0x1b')][_0x58a3ee('0x2f')](_0x5e8a96[_0x58a3ee('0x23')],{'raw':_0x5e8a96[_0x58a3ee('0x31')]?_0x5e8a96[_0x58a3ee('0x31')][_0x58a3ee('0x11')]===undefined?!![]:![]:!![]})['then'](function(_0x198b29){const _0x5d06b0=_0x58a3ee;logger[_0x5d06b0('0x33')](_0x5d06b0('0x4'),_0x5e8a96),logger[_0x5d06b0('0x7')](_0x5d06b0('0x4'),_0x5e8a96,JSON[_0x5d06b0('0x1')](_0x198b29)),_0x58b6e9(_0x198b29);})[_0x58a3ee('0x5')](function(_0x3fc9d9){const _0x442d7d=_0x58a3ee;logger[_0x442d7d('0x34')]('CreateCmHopperHistory',_0x3fc9d9[_0x442d7d('0x1a')],_0x5e8a96),_0x24fe57(_0x919fa1[_0x442d7d('0x34')](0x1f4,_0x3fc9d9['message']));});});},exports[_0x2829dc('0x17')]=function(_0x36a456){const _0x48d09d=this;return new Promise(function(_0x58078c,_0x401668){const _0x5a1dad=a154_0x22fd;return db[_0x5a1dad('0x1b')][_0x5a1dad('0xf')]({'raw':_0x36a456[_0x5a1dad('0x31')]?_0x36a456[_0x5a1dad('0x31')]['raw']===undefined?!![]:![]:!![],'where':_0x36a456['options']?_0x36a456[_0x5a1dad('0x31')][_0x5a1dad('0x25')]||null:null,'attributes':[[fn(_0x5a1dad('0x18'),col('id')),_0x5a1dad('0xe')],[fn('COUNT',fn('IF',literal('`state`\x20=\x204,\x201,\x20null'))),_0x5a1dad('0xb')],[fn('COUNT',fn('IF',literal('`state`\x20=\x2010,\x201,\x20null'))),_0x5a1dad('0x26')],[fn(_0x5a1dad('0x18'),fn('IF',literal(_0x5a1dad('0x28')))),'predictiveIntervalDroppedCallsCallersExit'],[fn(_0x5a1dad('0x0'),fn('IF',literal('`state`\x20=\x204,\x20`holdtime`,\x20null'))),_0x5a1dad('0x6')],[fn('AVG',fn('IF',literal(_0x5a1dad('0x14')))),_0x5a1dad('0x10')]]})['then'](function(_0x37d808){const _0x5b3ac9=_0x5a1dad;logger[_0x5b3ac9('0x33')](_0x5b3ac9('0x17'),_0x36a456),logger[_0x5b3ac9('0x7')](_0x5b3ac9('0x17'),_0x36a456,JSON[_0x5b3ac9('0x1')](_0x37d808)),_0x58078c(_0x37d808);})[_0x5a1dad('0x5')](function(_0x4ec67d){const _0x5e8d19=_0x5a1dad;logger[_0x5e8d19('0x34')](_0x5e8d19('0x17'),_0x4ec67d[_0x5e8d19('0x1a')],_0x36a456),_0x401668(_0x48d09d[_0x5e8d19('0x34')](0x1f4,_0x4ec67d['message']));});});},exports['GetVoiceQueueHopperHistory']=function(_0x4b153c){const _0x582e89=this;return new Promise(function(_0x398f89,_0x1b5b35){const _0x4ea00e=a154_0x22fd;return db[_0x4ea00e('0x1b')]['findAll']({'raw':_0x4b153c['options']?_0x4b153c['options'][_0x4ea00e('0x11')]===undefined?!![]:![]:!![],'where':_0x4b153c['options']?_0x4b153c[_0x4ea00e('0x31')][_0x4ea00e('0x25')]||null:null,'attributes':[[_0x4ea00e('0x27'),_0x4ea00e('0x22')],[fn('COUNT',fn('IF',literal('`state`\x20=\x200,\x201,\x20null'))),_0x4ea00e('0x24')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x12')))),_0x4ea00e('0x9')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x19')))),_0x4ea00e('0x2e')],[fn(_0x4ea00e('0x18'),fn('IF',literal('`state`\x20=\x205,\x201,\x20null'))),_0x4ea00e('0x2d')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x1d')))),_0x4ea00e('0x30')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x1c')))),_0x4ea00e('0x1e')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x13')))),_0x4ea00e('0xa')],[fn('COUNT',fn('IF',literal(_0x4ea00e('0x8')))),'outboundUnknownCallsDay'],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x15')))),_0x4ea00e('0x35')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0xd')))),_0x4ea00e('0x2b')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x1f')))),_0x4ea00e('0x21')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x36')))),_0x4ea00e('0x3')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x2c')))),_0x4ea00e('0x21')],[fn(_0x4ea00e('0x18'),fn('IF',literal(_0x4ea00e('0x20')))),_0x4ea00e('0x32')]],'group':[_0x4ea00e('0x27')]})['then'](function(_0x127f8e){const _0x51a2ca=_0x4ea00e;logger[_0x51a2ca('0x33')](_0x51a2ca('0x29'),_0x4b153c),logger[_0x51a2ca('0x7')]('GetVoiceQueueHopperHistory',_0x4b153c,JSON[_0x51a2ca('0x1')](_0x127f8e)),_0x398f89(_0x127f8e);})[_0x4ea00e('0x5')](function(_0xbc1248){const _0x6b01df=_0x4ea00e;logger[_0x6b01df('0x34')]('GetVoiceQueueHopperHistory',_0xbc1248[_0x6b01df('0x1a')],_0x4b153c),_0x1b5b35(_0x582e89[_0x6b01df('0x34')](0x1f4,_0xbc1248['message']));});});},exports[_0x2829dc('0xc')]=function(_0x1b1faf){const _0x13c906=this;return new Promise(function(_0x14548f,_0x1f415a){const _0x230ec1=a154_0x22fd;return db[_0x230ec1('0x1b')][_0x230ec1('0xf')]({'raw':_0x1b1faf[_0x230ec1('0x31')]?_0x1b1faf['options']['raw']===undefined?!![]:![]:!![],'where':_0x1b1faf[_0x230ec1('0x31')]?_0x1b1faf[_0x230ec1('0x31')][_0x230ec1('0x25')]||null:null,'attributes':[[_0x230ec1('0x27'),_0x230ec1('0x22')],[fn('COUNT',col('id')),'ivrTotalCallsDays'],[fn(_0x230ec1('0x18'),fn('IF',literal(_0x230ec1('0x19')))),_0x230ec1('0x2')]],'group':['campaign']})[_0x230ec1('0x16')](function(_0x42fbd6){const _0x217a3c=_0x230ec1;logger[_0x217a3c('0x33')](_0x217a3c('0xc'),_0x1b1faf),logger[_0x217a3c('0x7')](_0x217a3c('0xc'),_0x1b1faf,JSON[_0x217a3c('0x1')](_0x42fbd6)),_0x14548f(_0x42fbd6);})['catch'](function(_0x13bb3b){const _0x12af34=_0x230ec1;logger['error'](_0x12af34('0xc'),_0x13bb3b[_0x12af34('0x1a')],_0x1b1faf),_0x1f415a(_0x13c906[_0x12af34('0x34')](0x1f4,_0x13bb3b['message']));});});}; \ No newline at end of file +const a154_0x7d02=['rpc','COUNT','AvgHandleTime','outboundDropCallsDayCallersExit','AVG','catch','predictiveIntervalDroppedCallsTimeout','findAll','outboundCongestionCallsDay','`state`\x20=\x204,\x20`talktime`,\x20null','campaign','predictiveIntervalAvgHoldtime','predictiveIntervalAvgTalktime','`state`\x20=\x2013,\x201,\x20null','options','body','error','CreateCmHopperHistory','`state`\x20=\x204,\x201,\x20null','ivrAnswerCallsDay','outboundAnswerCallsDay','`state`\x20=\x2010\x20,\x201,\x20null','create','message','../../config/logger','`state`\x20=\x2011,\x201,\x20null','`state`\x20=\x203,\x201,\x20null','outboundRejectCallsDay','../../mysqldb','`state`\x20=\x200,\x201,\x20null','`state`\x20=\x2014,\x201,\x20null','predictiveIntervalAnsweredCalls','where','then','name','outboundAnswerAgiCallsDay','`state`\x20=\x2012,\x201,\x20null','predictiveIntervalDroppedCallsCallersExit','`state`\x20=\x2020,\x201,\x20null','outboundOriginateFailureCallsDay','`state`\x20=\x208,\x201,\x20null','debug','outboundUnknownCallsDay','stringify','sequelize','CmHopperHistory','outboundBlacklistCallsDay','`state`\x20=\x204,\x20`holdtime`,\x20null','GetCampaignHopperHistory','outboundBusyCallsDay','predictiveIntervalTotalCalls','info','raw','GetVoiceQueueHopperHistory'];(function(_0x462f08,_0x7d0284){const _0x54dca3=function(_0x4e677d){while(--_0x4e677d){_0x462f08['push'](_0x462f08['shift']());}};_0x54dca3(++_0x7d0284);}(a154_0x7d02,0x1e6));const a154_0x54dc=function(_0x462f08,_0x7d0284){_0x462f08=_0x462f08-0x0;let _0x54dca3=a154_0x7d02[_0x462f08];return _0x54dca3;};const _0xbfa372=a154_0x54dc;'use strict';const db=require(_0xbfa372('0x1c'))['db'],{fn,literal,col}=require(_0xbfa372('0x2c')),logger=require(_0xbfa372('0x18'))(_0xbfa372('0x0'));exports[_0xbfa372('0x11')]=function(_0x4e677d){const _0xf4a37a=this;return new Promise(function(_0x340734,_0x1cbe6d){const _0x4410cd=a154_0x54dc;return db[_0x4410cd('0x2d')][_0x4410cd('0x16')](_0x4e677d[_0x4410cd('0xf')],{'raw':_0x4e677d[_0x4410cd('0xe')]?_0x4e677d[_0x4410cd('0xe')][_0x4410cd('0x34')]===undefined?!![]:![]:!![]})[_0x4410cd('0x21')](function(_0x1d137e){const _0x205fca=_0x4410cd;logger[_0x205fca('0x33')](_0x205fca('0x11'),_0x4e677d),logger[_0x205fca('0x29')](_0x205fca('0x11'),_0x4e677d,JSON[_0x205fca('0x2b')](_0x1d137e)),_0x340734(_0x1d137e);})[_0x4410cd('0x5')](function(_0x1e1c82){const _0x34321b=_0x4410cd;logger['error'](_0x34321b('0x11'),_0x1e1c82[_0x34321b('0x17')],_0x4e677d),_0x1cbe6d(_0xf4a37a['error'](0x1f4,_0x1e1c82[_0x34321b('0x17')]));});});},exports[_0xbfa372('0x2')]=function(_0x12a08c){const _0x2fa451=this;return new Promise(function(_0x1d87c0,_0x1bd983){const _0x51a748=a154_0x54dc;return db[_0x51a748('0x2d')][_0x51a748('0x7')]({'raw':_0x12a08c[_0x51a748('0xe')]?_0x12a08c['options']['raw']===undefined?!![]:![]:!![],'where':_0x12a08c[_0x51a748('0xe')]?_0x12a08c['options']['where']||null:null,'attributes':[[fn(_0x51a748('0x1'),col('id')),_0x51a748('0x32')],[fn(_0x51a748('0x1'),fn('IF',literal(_0x51a748('0x12')))),_0x51a748('0x1f')],[fn(_0x51a748('0x1'),fn('IF',literal('`state`\x20=\x2010,\x201,\x20null'))),_0x51a748('0x6')],[fn(_0x51a748('0x1'),fn('IF',literal(_0x51a748('0x19')))),_0x51a748('0x25')],[fn(_0x51a748('0x4'),fn('IF',literal(_0x51a748('0x2f')))),_0x51a748('0xb')],[fn(_0x51a748('0x4'),fn('IF',literal(_0x51a748('0x9')))),_0x51a748('0xc')]]})[_0x51a748('0x21')](function(_0x52ca29){const _0x3ccadb=_0x51a748;logger[_0x3ccadb('0x33')](_0x3ccadb('0x2'),_0x12a08c),logger[_0x3ccadb('0x29')](_0x3ccadb('0x2'),_0x12a08c,JSON[_0x3ccadb('0x2b')](_0x52ca29)),_0x1d87c0(_0x52ca29);})['catch'](function(_0x15b3f6){const _0x5711bf=_0x51a748;logger[_0x5711bf('0x10')](_0x5711bf('0x2'),_0x15b3f6['message'],_0x12a08c),_0x1bd983(_0x2fa451[_0x5711bf('0x10')](0x1f4,_0x15b3f6[_0x5711bf('0x17')]));});});},exports['GetVoiceQueueHopperHistory']=function(_0x4fbcdc){const _0x12ccb6=this;return new Promise(function(_0x451282,_0x54a176){const _0x376eb5=a154_0x54dc;return db['CmHopperHistory'][_0x376eb5('0x7')]({'raw':_0x4fbcdc[_0x376eb5('0xe')]?_0x4fbcdc['options'][_0x376eb5('0x34')]===undefined?!![]:![]:!![],'where':_0x4fbcdc[_0x376eb5('0xe')]?_0x4fbcdc[_0x376eb5('0xe')][_0x376eb5('0x20')]||null:null,'attributes':[[_0x376eb5('0xa'),_0x376eb5('0x22')],[fn('COUNT',fn('IF',literal(_0x376eb5('0x1d')))),'outboundNoSuchCallsDay'],[fn(_0x376eb5('0x1'),fn('IF',literal(_0x376eb5('0x1a')))),'outboundNoAnswerCallsDay'],[fn(_0x376eb5('0x1'),fn('IF',literal(_0x376eb5('0x12')))),_0x376eb5('0x14')],[fn(_0x376eb5('0x1'),fn('IF',literal('`state`\x20=\x205,\x201,\x20null'))),_0x376eb5('0x31')],[fn(_0x376eb5('0x1'),fn('IF',literal(_0x376eb5('0x28')))),_0x376eb5('0x8')],[fn(_0x376eb5('0x1'),fn('IF',literal(_0x376eb5('0x15')))),'outboundDropCallsDayTimeout'],[fn(_0x376eb5('0x1'),fn('IF',literal('`state`\x20=\x2011\x20,\x201,\x20null'))),_0x376eb5('0x3')],[fn(_0x376eb5('0x1'),fn('IF',literal(_0x376eb5('0x24')))),_0x376eb5('0x2a')],[fn(_0x376eb5('0x1'),fn('IF',literal(_0x376eb5('0xd')))),_0x376eb5('0x2e')],[fn(_0x376eb5('0x1'),fn('IF',literal(_0x376eb5('0x1e')))),_0x376eb5('0x27')],[fn(_0x376eb5('0x1'),fn('IF',literal('`state`\x20=\x2018,\x201,\x20null'))),'outboundRejectCallsDay'],[fn(_0x376eb5('0x1'),fn('IF',literal('`state`\x20=\x2016,\x201,\x20null'))),_0x376eb5('0x23')],[fn(_0x376eb5('0x1'),fn('IF',literal(_0x376eb5('0x26')))),_0x376eb5('0x1b')],[fn(_0x376eb5('0x1'),fn('IF',literal('`state`\x20=\x2022\x20or\x20`state`\x20=\x2023,\x201,\x20null'))),'outboundReCallsDay']],'group':[_0x376eb5('0xa')]})['then'](function(_0xe1df78){const _0xc13d58=_0x376eb5;logger[_0xc13d58('0x33')](_0xc13d58('0x35'),_0x4fbcdc),logger[_0xc13d58('0x29')]('GetVoiceQueueHopperHistory',_0x4fbcdc,JSON[_0xc13d58('0x2b')](_0xe1df78)),_0x451282(_0xe1df78);})[_0x376eb5('0x5')](function(_0x26ea3e){const _0x42ef6f=_0x376eb5;logger[_0x42ef6f('0x10')](_0x42ef6f('0x35'),_0x26ea3e['message'],_0x4fbcdc),_0x54a176(_0x12ccb6[_0x42ef6f('0x10')](0x1f4,_0x26ea3e['message']));});});},exports[_0xbfa372('0x30')]=function(_0x3d6bcb){const _0x3f3ffc=this;return new Promise(function(_0x109101,_0x44e66c){const _0x24877d=a154_0x54dc;return db[_0x24877d('0x2d')]['findAll']({'raw':_0x3d6bcb[_0x24877d('0xe')]?_0x3d6bcb['options'][_0x24877d('0x34')]===undefined?!![]:![]:!![],'where':_0x3d6bcb[_0x24877d('0xe')]?_0x3d6bcb['options'][_0x24877d('0x20')]||null:null,'attributes':[[_0x24877d('0xa'),_0x24877d('0x22')],[fn(_0x24877d('0x1'),col('id')),'ivrTotalCallsDays'],[fn(_0x24877d('0x1'),fn('IF',literal(_0x24877d('0x12')))),_0x24877d('0x13')]],'group':[_0x24877d('0xa')]})[_0x24877d('0x21')](function(_0x3d7fa0){const _0x4ae41b=_0x24877d;logger['info'](_0x4ae41b('0x30'),_0x3d6bcb),logger['debug']('GetCampaignHopperHistory',_0x3d6bcb,JSON[_0x4ae41b('0x2b')](_0x3d7fa0)),_0x109101(_0x3d7fa0);})[_0x24877d('0x5')](function(_0x3238a0){const _0x4481de=_0x24877d;logger[_0x4481de('0x10')](_0x4481de('0x30'),_0x3238a0[_0x4481de('0x17')],_0x3d6bcb),_0x44e66c(_0x3f3ffc[_0x4481de('0x10')](0x1f4,_0x3238a0[_0x4481de('0x17')]));});});}; \ No newline at end of file diff --git a/server/api/cmHopperHistory/index.js b/server/api/cmHopperHistory/index.js index 2d3d708..cfa3c38 100644 --- a/server/api/cmHopperHistory/index.js +++ b/server/api/cmHopperHistory/index.js @@ -1 +1 @@ -const a155_0x2e67=['create','exports','describe','isAuthenticated','post','/:id','index','../../components/auth/service','get','Router','./cmHopperHistory.controller','show'];(function(_0x27441d,_0x2e67ef){const _0x2d94ae=function(_0x4919fe){while(--_0x4919fe){_0x27441d['push'](_0x27441d['shift']());}};_0x2d94ae(++_0x2e67ef);}(a155_0x2e67,0x14f));const a155_0x2d94=function(_0x27441d,_0x2e67ef){_0x27441d=_0x27441d-0x0;let _0x2d94ae=a155_0x2e67[_0x27441d];return _0x2d94ae;};const _0x34ba89=a155_0x2d94;'use strict';const express=require('express'),router=express[_0x34ba89('0xa')](),auth=require(_0x34ba89('0x8')),controller=require(_0x34ba89('0xb'));router[_0x34ba89('0x9')]('/',auth[_0x34ba89('0x4')](),controller[_0x34ba89('0x7')]),router['get']('/describe',auth['isAuthenticated'](),controller[_0x34ba89('0x3')]),router[_0x34ba89('0x9')](_0x34ba89('0x6'),auth[_0x34ba89('0x4')](),controller[_0x34ba89('0x0')]),router[_0x34ba89('0x5')]('/',auth[_0x34ba89('0x4')](),controller[_0x34ba89('0x1')]),router['put'](_0x34ba89('0x6'),auth[_0x34ba89('0x4')](),controller['update']),module[_0x34ba89('0x2')]=router; \ No newline at end of file +const a155_0x5318=['/describe','Router','put','exports','/:id','./cmHopperHistory.controller','get','show','../../components/auth/service','index','update','create','express','isAuthenticated'];(function(_0x3239db,_0x531898){const _0x3a2b87=function(_0x3f1b8c){while(--_0x3f1b8c){_0x3239db['push'](_0x3239db['shift']());}};_0x3a2b87(++_0x531898);}(a155_0x5318,0xc1));const a155_0x3a2b=function(_0x3239db,_0x531898){_0x3239db=_0x3239db-0x0;let _0x3a2b87=a155_0x5318[_0x3239db];return _0x3a2b87;};const _0x4c7353=a155_0x3a2b;'use strict';const express=require(_0x4c7353('0x1')),router=express[_0x4c7353('0x4')](),auth=require(_0x4c7353('0xb')),controller=require(_0x4c7353('0x8'));router[_0x4c7353('0x9')]('/',auth[_0x4c7353('0x2')](),controller[_0x4c7353('0xc')]),router[_0x4c7353('0x9')](_0x4c7353('0x3'),auth[_0x4c7353('0x2')](),controller['describe']),router['get'](_0x4c7353('0x7'),auth[_0x4c7353('0x2')](),controller[_0x4c7353('0xa')]),router['post']('/',auth[_0x4c7353('0x2')](),controller[_0x4c7353('0x0')]),router[_0x4c7353('0x5')](_0x4c7353('0x7'),auth[_0x4c7353('0x2')](),controller[_0x4c7353('0xd')]),module[_0x4c7353('0x6')]=router; \ No newline at end of file diff --git a/server/api/cmList/cmList.attributes.js b/server/api/cmList/cmList.attributes.js index 7a601aa..5564980 100644 --- a/server/api/cmList/cmList.attributes.js +++ b/server/api/cmList/cmList.attributes.js @@ -1 +1 @@ -const a156_0xb44b=['exports','name','STRING','sequelize'];(function(_0x14ee12,_0xb44b85){const _0x152582=function(_0x13181b){while(--_0x13181b){_0x14ee12['push'](_0x14ee12['shift']());}};_0x152582(++_0xb44b85);}(a156_0xb44b,0x139));const a156_0x1525=function(_0x14ee12,_0xb44b85){_0x14ee12=_0x14ee12-0x0;let _0x152582=a156_0xb44b[_0x14ee12];return _0x152582;};const _0x314ed0=a156_0x1525;'use strict';const Sequelize=require(_0x314ed0('0x2'));module[_0x314ed0('0x3')]={'name':{'type':Sequelize[_0x314ed0('0x1')],'unique':_0x314ed0('0x0'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize['STRING']},'dialPrefix':{'type':Sequelize[_0x314ed0('0x1')]}}; \ No newline at end of file +const a156_0x560b=['exports','STRING'];(function(_0x43d10c,_0x560be4){const _0x47895d=function(_0x51ce0d){while(--_0x51ce0d){_0x43d10c['push'](_0x43d10c['shift']());}};_0x47895d(++_0x560be4);}(a156_0x560b,0x1c2));const a156_0x4789=function(_0x43d10c,_0x560be4){_0x43d10c=_0x43d10c-0x0;let _0x47895d=a156_0x560b[_0x43d10c];return _0x47895d;};const _0x1f3007=a156_0x4789;'use strict';const Sequelize=require('sequelize');module[_0x1f3007('0x0')]={'name':{'type':Sequelize[_0x1f3007('0x1')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x1f3007('0x1')]},'dialPrefix':{'type':Sequelize[_0x1f3007('0x1')]}}; \ No newline at end of file diff --git a/server/api/cmList/cmList.controller.js b/server/api/cmList/cmList.controller.js index ac5dfca..2933d75 100644 --- a/server/api/cmList/cmList.controller.js +++ b/server/api/cmList/cmList.controller.js @@ -1 +1 @@ -const a157_0x57b2=['status','key','omit','util','errors','userProfileId','text','params','../../rediscache','format','addContacts','Content-type','where','queryInterface','Disposition','show','User','message','isArray','fieldName','raw','emit','UserProfileSection','ListId','join','limit','VIRTUAL','type','INTEGER','ids','dataValues','concat','number','query','BOOLEAN','count','set','../../config/logger','order','push','rawAttributes','../../components/parsers/qs','tags','text/csv','attributes','switch','addCustomFields','getCustomFields','userCmList:remove','create','undefined','describe','name','body','removeAgents','cm_contacts','autoAssociation','download','list_%d_%s.csv','then','setHeader','Unable\x20to\x20retrieve\x20the\x20current\x20user','send','getContacts','get','model','like','merge','register','role','Sequelize','offset','user','each','CmList','fields','options','destroy','/tmp/list_%d_%s.csv','lodash','findAll','getAgents','map','Content-Range','nolimit','sequelize','Lists','catch','userCmList:save','keys','TEXT','to-csv','CustomFields','addCustomField','UserProfileResource','json','index','filters','intersection','length','stack','cf_%d','rows','update','api','includeAll','attachment;\x20filename=','findOne','error','sort','addAgents','CmCustomField','filter','./cmList.socket','sendStatus','include','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../mysqldb','defaultValue','end','pick','transaction','CmContact','now','addDisposition'];(function(_0x545898,_0x57b260){const _0x37510c=function(_0x2550e7){while(--_0x2550e7){_0x545898['push'](_0x545898['shift']());}};_0x37510c(++_0x57b260);}(a157_0x57b2,0x8b));const a157_0x3751=function(_0x545898,_0x57b260){_0x545898=_0x545898-0x0;let _0x37510c=a157_0x57b2[_0x545898];return _0x37510c;};const _0x3d1777=a157_0x3751;'use strict';const util=require(_0x3d1777('0x72')),fs=require('fs'),_=require(_0x3d1777('0x41')),toCsv=require(_0x3d1777('0x4d')),{getSocket}=require(_0x3d1777('0x77')),socket=getSocket(),qs=require(_0x3d1777('0x1b')),logger=require(_0x3d1777('0x17'))(_0x3d1777('0x5a')),db=require(_0x3d1777('0x67'))['db'],{Op}=require('sequelize');require(_0x3d1777('0x63'))[_0x3d1777('0x36')](socket);function respondWithStatusCode(_0x2550e7,_0x588b7f){return _0x588b7f=_0x588b7f||0xcc,function(_0x5e46e8){const _0x57637c=a157_0x3751;if(_0x5e46e8)return _0x2550e7['sendStatus'](_0x588b7f);return _0x2550e7[_0x57637c('0x6f')](_0x588b7f)[_0x57637c('0x69')]();};}function respondWithResult(_0x335c47,_0x59fc36){return _0x59fc36=_0x59fc36||0xc8,function(_0x7905ca){const _0x10e4b9=a157_0x3751;if(_0x7905ca)return _0x335c47[_0x10e4b9('0x6f')](_0x59fc36)[_0x10e4b9('0x51')](_0x7905ca);};}function respondWithFilteredResult(_0x118001,_0x3acdd3){return function(_0x3b4e51){const _0x50ff3e=a157_0x3751;if(_0x3b4e51){const _0xea1d9f=_0x3b4e51[_0x50ff3e('0x15')],_0x1721fb=_0x3acdd3[_0x50ff3e('0x39')];let _0xd2895=_0x3acdd3[_0x50ff3e('0x39')]+_0x3acdd3[_0x50ff3e('0xb')],_0x4ff4c8;return _0xd2895>=_0xea1d9f?(_0xd2895=_0xea1d9f,_0x4ff4c8=0xc8):_0x4ff4c8=0xce,_0x118001[_0x50ff3e('0x6f')](_0x4ff4c8),_0x118001[_0x50ff3e('0x16')](_0x50ff3e('0x45'),_0x1721fb+'-'+_0xd2895+'/'+_0xea1d9f)[_0x50ff3e('0x51')](_0x3b4e51);}return null;};}function saveUpdates(_0x5d57bc){return function(_0x10b65a){const _0x3bc068=a157_0x3751;if(_0x10b65a)return _0x10b65a[_0x3bc068('0x59')](_0x5d57bc)['then'](function(_0x17f19d){return _0x17f19d;});return null;};}function removeEntity(_0x2d15fe){return function(_0x4cfada){const _0x50e241=a157_0x3751;if(_0x4cfada)return _0x4cfada[_0x50e241('0x3f')]()['then'](function(){const _0xdd3a1b=_0x50e241,_0x2f46e9=_0x4cfada[_0xdd3a1b('0x32')]({'plain':!![]}),_0xf2708d=_0xdd3a1b('0x48');return db[_0xdd3a1b('0x50')][_0xdd3a1b('0x3f')]({'where':{'type':_0xf2708d,'resourceId':_0x2f46e9['id']}})['then'](function(){return _0x4cfada;});})[_0x50e241('0x2d')](function(){const _0x1ab52e=_0x50e241;_0x2d15fe[_0x1ab52e('0x6f')](0xcc)[_0x1ab52e('0x69')]();});};}function handleEntityNotFound(_0x16e0e5){return function(_0xc79bca){const _0x24d732=a157_0x3751;return!_0xc79bca&&_0x16e0e5[_0x24d732('0x64')](0x194),_0xc79bca;};}function handleError(_0x43176a,_0x2e61c8){return _0x2e61c8=_0x2e61c8||0x1f4,function(_0x10bded){const _0x42ebde=a157_0x3751;logger[_0x42ebde('0x5e')](_0x10bded[_0x42ebde('0x56')]),_0x10bded[_0x42ebde('0x26')]&&delete _0x10bded[_0x42ebde('0x26')],_0x43176a[_0x42ebde('0x6f')](_0x2e61c8)[_0x42ebde('0x30')](_0x10bded);};}exports[_0x3d1777('0x52')]=function(_0x258c77,_0x114e67){const _0x3cc2f7=_0x3d1777;let _0xf5dd34={};const _0x21018b={},_0x1125e3={'count':0x0,'rows':[]},_0x51ce4b=_['map'](db[_0x3cc2f7('0x3c')][_0x3cc2f7('0x1a')],function(_0x1a0404){const _0x464c4f=_0x3cc2f7;return{'name':_0x1a0404[_0x464c4f('0x5')],'type':_0x1a0404[_0x464c4f('0xd')][_0x464c4f('0x70')]};});_0x21018b[_0x3cc2f7('0x33')]=_[_0x3cc2f7('0x44')](_0x51ce4b,'name'),_0x21018b['query']=_['keys'](_0x258c77[_0x3cc2f7('0x13')]),_0x21018b[_0x3cc2f7('0x53')]=_['intersection'](_0x21018b[_0x3cc2f7('0x33')],_0x21018b[_0x3cc2f7('0x13')]),_0xf5dd34['attributes']=_[_0x3cc2f7('0x54')](_0x21018b[_0x3cc2f7('0x33')],qs[_0x3cc2f7('0x3d')](_0x258c77[_0x3cc2f7('0x13')][_0x3cc2f7('0x3d')])),_0xf5dd34[_0x3cc2f7('0x1e')]=_0xf5dd34[_0x3cc2f7('0x1e')]['length']?_0xf5dd34['attributes']:_0x21018b[_0x3cc2f7('0x33')];typeof _0x258c77[_0x3cc2f7('0x13')][_0x3cc2f7('0x46')]===_0x3cc2f7('0x24')&&(_0xf5dd34[_0x3cc2f7('0xb')]=qs[_0x3cc2f7('0xb')](_0x258c77[_0x3cc2f7('0x13')][_0x3cc2f7('0xb')]),_0xf5dd34[_0x3cc2f7('0x39')]=qs['offset'](_0x258c77[_0x3cc2f7('0x13')][_0x3cc2f7('0x39')]));_0xf5dd34[_0x3cc2f7('0x18')]=qs[_0x3cc2f7('0x5f')](_0x258c77[_0x3cc2f7('0x13')][_0x3cc2f7('0x5f')]),_0xf5dd34['where']=qs[_0x3cc2f7('0x53')](_['pick'](_0x258c77[_0x3cc2f7('0x13')],_0x21018b['filters']),_0x51ce4b);_0x258c77[_0x3cc2f7('0x13')][_0x3cc2f7('0x62')]&&(_0xf5dd34[_0x3cc2f7('0x7b')]=_[_0x3cc2f7('0x35')](_0xf5dd34[_0x3cc2f7('0x7b')],{[Op['or']]:_[_0x3cc2f7('0x44')](_0x51ce4b,function(_0x23f837){const _0xee9017=_0x3cc2f7;if(_0x23f837[_0xee9017('0xd')]!==_0xee9017('0xc')){const _0x148da1={};return _0x148da1[_0x23f837[_0xee9017('0x26')]]={[Op['like']]:'%'+_0x258c77['query'][_0xee9017('0x62')]+'%'},_0x148da1;}})}));_0xf5dd34=_['merge']({},_0xf5dd34,_0x258c77[_0x3cc2f7('0x3e')]);const _0x39aec5={'where':_0xf5dd34['where']};return db[_0x3cc2f7('0x3c')][_0x3cc2f7('0x15')](_0x39aec5)[_0x3cc2f7('0x2d')](function(_0x281c26){const _0x2c4365=_0x3cc2f7;return _0x1125e3[_0x2c4365('0x15')]=_0x281c26,_0x258c77[_0x2c4365('0x13')][_0x2c4365('0x5b')]&&(_0xf5dd34['include']=[{'all':!![]}]),db[_0x2c4365('0x3c')][_0x2c4365('0x42')](_0xf5dd34);})[_0x3cc2f7('0x2d')](function(_0x299f79){const _0x74a536=_0x3cc2f7;return _0x1125e3[_0x74a536('0x58')]=_0x299f79,_0x1125e3;})[_0x3cc2f7('0x2d')](respondWithFilteredResult(_0x114e67,_0xf5dd34))[_0x3cc2f7('0x49')](handleError(_0x114e67,null));},exports[_0x3d1777('0x1')]=function(_0x13402a,_0x532437){const _0x40c2af=_0x3d1777;let _0x2505fa={'raw':![],'where':{'id':_0x13402a[_0x40c2af('0x76')]['id']}};const _0x58da76={};return _0x58da76[_0x40c2af('0x33')]=_[_0x40c2af('0x4b')](db[_0x40c2af('0x3c')][_0x40c2af('0x1a')]),_0x58da76[_0x40c2af('0x13')]=_[_0x40c2af('0x4b')](_0x13402a[_0x40c2af('0x13')]),_0x58da76['filters']=_[_0x40c2af('0x54')](_0x58da76[_0x40c2af('0x33')],_0x58da76[_0x40c2af('0x13')]),_0x2505fa[_0x40c2af('0x1e')]=_[_0x40c2af('0x54')](_0x58da76['model'],qs['fields'](_0x13402a[_0x40c2af('0x13')][_0x40c2af('0x3d')])),_0x2505fa['attributes']=_0x2505fa[_0x40c2af('0x1e')][_0x40c2af('0x55')]?_0x2505fa[_0x40c2af('0x1e')]:_0x58da76['model'],_0x13402a[_0x40c2af('0x13')][_0x40c2af('0x5b')]&&(_0x2505fa[_0x40c2af('0x65')]=[{'all':!![]}]),_0x2505fa=_[_0x40c2af('0x35')]({},_0x2505fa,_0x13402a[_0x40c2af('0x3e')]),db[_0x40c2af('0x3c')][_0x40c2af('0x5d')](_0x2505fa)[_0x40c2af('0x2d')](handleEntityNotFound(_0x532437,null))['then'](respondWithResult(_0x532437,null))[_0x40c2af('0x49')](handleError(_0x532437,null));},exports[_0x3d1777('0x23')]=function(_0x1d03f0,_0x3e701e){const _0x24dc17=_0x3d1777;return db['CmList']['create'](_0x1d03f0[_0x24dc17('0x27')],{})['then'](function(_0x3efb35){const _0x3c1680=_0x24dc17,_0xe34745=_0x1d03f0[_0x3c1680('0x3a')][_0x3c1680('0x32')]({'plain':!![]});if(!_0xe34745)throw new Error(_0x3c1680('0x2f'));if(_0xe34745[_0x3c1680('0x37')]==='user'){const _0x18cb17=_0x3efb35[_0x3c1680('0x32')]({'plain':!![]}),_0x802d27='Lists';return db[_0x3c1680('0x8')][_0x3c1680('0x5d')]({'where':{'name':_0x802d27,'userProfileId':_0xe34745[_0x3c1680('0x74')]},'raw':!![]})['then'](function(_0x2417da){const _0x539425=_0x3c1680;return _0x2417da&&_0x2417da[_0x539425('0x2a')]===0x0?db[_0x539425('0x50')][_0x539425('0x23')]({'name':_0x18cb17[_0x539425('0x26')],'resourceId':_0x18cb17['id'],'type':_0x2417da[_0x539425('0x26')],'sectionId':_0x2417da['id']},{})[_0x539425('0x2d')](function(){return _0x3efb35;}):_0x3efb35;})[_0x3c1680('0x49')](function(_0x469daa){const _0x5e65ba=_0x3c1680;logger[_0x5e65ba('0x5e')](_0x5e65ba('0x66'),_0x469daa);throw _0x469daa;});}return _0x3efb35;})[_0x24dc17('0x2d')](respondWithResult(_0x3e701e,0xc9))[_0x24dc17('0x49')](handleError(_0x3e701e,null));},exports[_0x3d1777('0x59')]=function(_0x1cc937,_0x9efb1){const _0x3aaf2c=_0x3d1777;return _0x1cc937['body']['id']&&delete _0x1cc937[_0x3aaf2c('0x27')]['id'],db[_0x3aaf2c('0x3c')]['findOne']({'where':{'id':_0x1cc937['params']['id']}})['then'](handleEntityNotFound(_0x9efb1,null))[_0x3aaf2c('0x2d')](saveUpdates(_0x1cc937[_0x3aaf2c('0x27')],null))[_0x3aaf2c('0x2d')](respondWithResult(_0x9efb1,null))[_0x3aaf2c('0x49')](handleError(_0x9efb1,null));},exports[_0x3d1777('0x3f')]=function(_0x1bf977,_0x4b3306){const _0x36f446=_0x3d1777;return db['CmList'][_0x36f446('0x5d')]({'where':{'id':_0x1bf977[_0x36f446('0x76')]['id']}})[_0x36f446('0x2d')](handleEntityNotFound(_0x4b3306,null))[_0x36f446('0x2d')](removeEntity(_0x4b3306,null))[_0x36f446('0x49')](handleError(_0x4b3306,null));},exports[_0x3d1777('0x25')]=function(_0x58e88a,_0x4c03af){const _0x27d43c=_0x3d1777;return db[_0x27d43c('0x3c')][_0x27d43c('0x25')]()['then'](respondWithResult(_0x4c03af,null))[_0x27d43c('0x49')](handleError(_0x4c03af,null));},exports[_0x3d1777('0x6e')]=function(_0x340384,_0x58034e){const _0x3e5c85=_0x3d1777;return _0x340384['body']['id']&&delete _0x340384['body']['id'],db[_0x3e5c85('0x3c')]['findOne']({'where':{'id':_0x340384[_0x3e5c85('0x76')]['id']}})[_0x3e5c85('0x2d')](handleEntityNotFound(_0x58034e,null))['then'](function(_0x35be55){const _0x51d69b=_0x3e5c85;if(_0x35be55)return _0x340384[_0x51d69b('0x27')]['ListId']=_0x35be55['id'],db[_0x51d69b('0x0')][_0x51d69b('0x23')](_0x340384[_0x51d69b('0x27')]);})[_0x3e5c85('0x2d')](respondWithResult(_0x58034e,null))[_0x3e5c85('0x49')](handleError(_0x58034e,null));},exports['getDispositions']=function(_0x2f304e,_0x33b0f5){const _0x520887=_0x3d1777;let _0x174b41={'raw':![],'where':{}};const _0x4080f6={},_0x13b4f4={'count':0x0,'rows':[]};return db[_0x520887('0x3c')]['findOne']({'where':{'id':_0x2f304e['params']['id']}})[_0x520887('0x2d')](handleEntityNotFound(_0x33b0f5,null))[_0x520887('0x2d')](function(_0x31fd59){const _0x4314ff=_0x520887;if(_0x31fd59)return _0x4080f6[_0x4314ff('0x33')]=_[_0x4314ff('0x4b')](db[_0x4314ff('0x0')]['rawAttributes']),_0x4080f6[_0x4314ff('0x13')]=_[_0x4314ff('0x4b')](_0x2f304e['query']),_0x4080f6[_0x4314ff('0x53')]=_[_0x4314ff('0x54')](_0x4080f6[_0x4314ff('0x33')],_0x4080f6[_0x4314ff('0x13')]),_0x174b41[_0x4314ff('0x1e')]=_[_0x4314ff('0x54')](_0x4080f6[_0x4314ff('0x33')],qs[_0x4314ff('0x3d')](_0x2f304e['query']['fields'])),_0x174b41[_0x4314ff('0x1e')]=_0x174b41[_0x4314ff('0x1e')][_0x4314ff('0x55')]?_0x174b41['attributes']:_0x4080f6['model'],typeof _0x2f304e[_0x4314ff('0x13')][_0x4314ff('0x46')]===_0x4314ff('0x24')&&(_0x174b41[_0x4314ff('0xb')]=qs[_0x4314ff('0xb')](_0x2f304e[_0x4314ff('0x13')]['limit']),_0x174b41['offset']=qs[_0x4314ff('0x39')](_0x2f304e[_0x4314ff('0x13')][_0x4314ff('0x39')])),_0x174b41[_0x4314ff('0x18')]=qs[_0x4314ff('0x5f')](_0x2f304e['query'][_0x4314ff('0x5f')]),_0x174b41[_0x4314ff('0x7b')]=qs[_0x4314ff('0x53')](_['pick'](_0x2f304e['query'],_0x4080f6[_0x4314ff('0x53')])),_0x174b41[_0x4314ff('0x7b')][_0x4314ff('0x9')]=_0x31fd59['id'],_0x2f304e[_0x4314ff('0x13')][_0x4314ff('0x62')]&&(_0x174b41[_0x4314ff('0x7b')]=_[_0x4314ff('0x35')](_0x174b41[_0x4314ff('0x7b')],{[Op['or']]:_[_0x4314ff('0x44')](_0x174b41['attributes'],function(_0x318f03){const _0x2675b0=_0x4314ff,_0x569fe8={};return _0x569fe8[_0x318f03]={[Op[_0x2675b0('0x34')]]:'%'+_0x2f304e[_0x2675b0('0x13')][_0x2675b0('0x62')]+'%'},_0x569fe8;})})),_0x174b41=_['merge']({},_0x174b41,_0x2f304e[_0x4314ff('0x3e')]),db['Disposition'][_0x4314ff('0x15')]({'where':_0x174b41[_0x4314ff('0x7b')]})[_0x4314ff('0x2d')](function(_0x26a280){const _0x5ef237=_0x4314ff;return _0x13b4f4[_0x5ef237('0x15')]=_0x26a280,_0x2f304e[_0x5ef237('0x13')][_0x5ef237('0x5b')]&&(_0x174b41[_0x5ef237('0x65')]=[{'all':!![]}]),db['Disposition'][_0x5ef237('0x42')](_0x174b41);})['then'](function(_0x3817d7){const _0x4c46a7=_0x4314ff;return _0x13b4f4[_0x4c46a7('0x58')]=_0x3817d7,_0x13b4f4;});})[_0x520887('0x2d')](respondWithFilteredResult(_0x33b0f5,_0x174b41))['catch'](handleError(_0x33b0f5,null));},exports['removeDispositions']=function(_0x206bb3,_0x36288e){const _0x322576=_0x3d1777;return db[_0x322576('0x3c')][_0x322576('0x5d')]({'where':{'id':_0x206bb3[_0x322576('0x76')]['id']}})[_0x322576('0x2d')](handleEntityNotFound(_0x36288e,null))[_0x322576('0x2d')](function(_0x5b25b2){if(_0x5b25b2)return _0x5b25b2['removeDispositions'](_0x206bb3['query']['ids']);})[_0x322576('0x2d')](respondWithStatusCode(_0x36288e,null))[_0x322576('0x49')](handleError(_0x36288e,null));},exports[_0x3d1777('0x79')]=function(_0x5dcf33,_0x2b5c16){const _0x23efb8=_0x3d1777;return db[_0x23efb8('0x3c')]['findOne']({'where':{'id':_0x5dcf33[_0x23efb8('0x76')]['id']}})[_0x23efb8('0x2d')](handleEntityNotFound(_0x2b5c16,null))[_0x23efb8('0x2d')](function(_0x582094){const _0x327ae1=_0x23efb8;if(_0x582094){const _0x510274=[],_0x459d8b={'success':[],'errors':[]};return db[_0x327ae1('0x6c')][_0x327ae1('0x25')]()['then'](function(_0x61a1fd){const _0x494bd2=_0x327ae1;_0x5dcf33[_0x494bd2('0x27')][_0x494bd2('0x1c')]&&_[_0x494bd2('0x4')](_0x5dcf33[_0x494bd2('0x27')][_0x494bd2('0x1c')])?_0x5dcf33[_0x494bd2('0x27')][_0x494bd2('0x1c')]['length']?_0x5dcf33[_0x494bd2('0x27')][_0x494bd2('0x1c')]=_0x5dcf33[_0x494bd2('0x27')]['tags'][_0x494bd2('0xa')](';')+';':_0x5dcf33['body']['tags']=null:_0x5dcf33[_0x494bd2('0x27')][_0x494bd2('0x1c')]=null;if(_0x5dcf33['body']&&_[_0x494bd2('0x4')](_0x5dcf33[_0x494bd2('0x27')])){for(let _0x249bd6=0x0;_0x249bd6<_0x5dcf33[_0x494bd2('0x27')][_0x494bd2('0x55')];_0x249bd6+=0x1){_0x5dcf33[_0x494bd2('0x27')][_0x249bd6]['ListId']=_0x5dcf33[_0x494bd2('0x76')]['id'],_0x510274[_0x494bd2('0x19')](_0x5dcf33[_0x494bd2('0x27')][_0x249bd6]);}return Promise[_0x494bd2('0x3b')](_0x510274,function(_0x32a483){const _0x2c96ad=_0x494bd2;return db[_0x2c96ad('0x6c')][_0x2c96ad('0x23')](_[_0x2c96ad('0x71')](_0x32a483,['ids','id'])||{},{'fields':_[_0x2c96ad('0x4b')](_0x61a1fd),'raw':!![]})['then'](function(_0x360576){const _0x502157=_0x2c96ad;_0x459d8b['success'][_0x502157('0x19')](_0x360576[_0x502157('0x10')]);})['catch'](function(_0x2fc252){const _0xc55266=_0x2c96ad;_0x459d8b[_0xc55266('0x73')][_0xc55266('0x19')]({'data':_0x32a483,'error':_0x2fc252[_0xc55266('0x3')]});});})[_0x494bd2('0x2d')](function(){return _0x459d8b;})[_0x494bd2('0x49')](function(_0x5d2f0b){return _0x5d2f0b;});}else _0x2b5c16[_0x494bd2('0x6f')](0x190)[_0x494bd2('0x51')]({'message':'Malformed\x20request\x20syntax'});});}})[_0x23efb8('0x2d')](respondWithResult(_0x2b5c16,null))[_0x23efb8('0x49')](handleError(_0x2b5c16,null));},exports[_0x3d1777('0x31')]=function(_0x319cc5,_0x3d0e09){const _0x49e40e=_0x3d1777;let _0x36ed9e;return db['CmList'][_0x49e40e('0x5d')]({'where':{'id':_0x319cc5['params']['id']},'include':[{'model':db[_0x49e40e('0x61')],'as':'CustomFields'}]})['then'](handleEntityNotFound(_0x3d0e09,null))[_0x49e40e('0x2d')](function(_0x1cabcf){const _0x1339c7=_0x49e40e;if(_0x1cabcf)return _0x36ed9e=_0x1cabcf,db[_0x1339c7('0x6c')][_0x1339c7('0x1a')];})[_0x49e40e('0x2d')](function(_0x582f9e){const _0x109c40=_0x49e40e;if(_0x582f9e){let _0x5dc97f={};const _0x30899c={};return _0x30899c[_0x109c40('0x33')]=_['concat'](_['keys'](_0x582f9e),_[_0x109c40('0x44')](_0x36ed9e['CustomFields'],function(_0x20fa05){const _0x1a0bc3=_0x109c40;return util['format'](_0x1a0bc3('0x57'),_0x20fa05['id']);})),_0x30899c['query']=_[_0x109c40('0x4b')](_0x319cc5['query']),_0x30899c[_0x109c40('0x53')]=_['intersection'](_0x30899c[_0x109c40('0x33')],_0x30899c[_0x109c40('0x13')]),_0x5dc97f[_0x109c40('0x1e')]=_[_0x109c40('0x54')](_0x30899c[_0x109c40('0x33')],qs[_0x109c40('0x3d')](_0x319cc5[_0x109c40('0x13')][_0x109c40('0x3d')])),_0x5dc97f['attributes']=_0x5dc97f[_0x109c40('0x1e')][_0x109c40('0x55')]?_0x5dc97f[_0x109c40('0x1e')]:_0x30899c[_0x109c40('0x33')],typeof _0x319cc5['query'][_0x109c40('0x46')]===_0x109c40('0x24')&&(_0x5dc97f[_0x109c40('0xb')]=qs[_0x109c40('0xb')](_0x319cc5['query'][_0x109c40('0xb')]),_0x5dc97f['offset']=qs[_0x109c40('0x39')](_0x319cc5[_0x109c40('0x13')][_0x109c40('0x39')])),_0x5dc97f['order']=qs[_0x109c40('0x5f')](_0x319cc5[_0x109c40('0x13')][_0x109c40('0x5f')]),_0x5dc97f[_0x109c40('0x7b')]=qs[_0x109c40('0x53')](_[_0x109c40('0x6a')](_0x319cc5['query'],_0x30899c[_0x109c40('0x53')])),_0x5dc97f[_0x109c40('0x6')]=!![],_0x319cc5[_0x109c40('0x13')]['filter']&&(_0x5dc97f[_0x109c40('0x7b')]=_[_0x109c40('0x35')](_0x5dc97f[_0x109c40('0x7b')],{[Op['or']]:_['map'](_0x5dc97f['attributes'],function(_0xc6399e){const _0x529ce4=_0x109c40,_0x560fd7={};return _0x560fd7[_0xc6399e]={[Op[_0x529ce4('0x34')]]:'%'+_0x319cc5[_0x529ce4('0x13')][_0x529ce4('0x62')]+'%'},_0x560fd7;})})),_0x5dc97f=_[_0x109c40('0x35')]({},_0x5dc97f,_0x319cc5[_0x109c40('0x3e')]),_0x36ed9e[_0x109c40('0x31')](_0x5dc97f);}})[_0x49e40e('0x2d')](respondWithResult(_0x3d0e09,null))[_0x49e40e('0x49')](handleError(_0x3d0e09,null));},exports['getContactsCsv']=function(_0x19e726,_0x2aaca2){const _0x2cd8d8=_0x3d1777;let _0x13c13a;return db[_0x2cd8d8('0x3c')][_0x2cd8d8('0x5d')]({'where':{'id':_0x19e726[_0x2cd8d8('0x76')]['id']},'include':[{'model':db['CmCustomField'],'as':_0x2cd8d8('0x4e')}]})[_0x2cd8d8('0x2d')](handleEntityNotFound(_0x2aaca2,null))[_0x2cd8d8('0x2d')](function(_0x1a2d31){const _0x2ec6a0=_0x2cd8d8;if(_0x1a2d31)return _0x13c13a=_0x1a2d31,db['CmContact'][_0x2ec6a0('0x1a')];})['then'](function(_0x4c9faa){const _0x4b4ed3=_0x2cd8d8;if(_0x4c9faa){let _0x5ae849={};const _0x11ab80={};return _0x11ab80['model']=_[_0x4b4ed3('0x11')](_[_0x4b4ed3('0x4b')](_0x4c9faa),_[_0x4b4ed3('0x44')](_0x13c13a[_0x4b4ed3('0x4e')],function(_0x538ad1){const _0x1ae602=_0x4b4ed3;return util[_0x1ae602('0x78')](_0x1ae602('0x57'),_0x538ad1['id']);})),_0x11ab80['query']=_['keys'](_0x19e726[_0x4b4ed3('0x13')]),_0x11ab80[_0x4b4ed3('0x53')]=_[_0x4b4ed3('0x54')](_0x11ab80[_0x4b4ed3('0x33')],_0x11ab80[_0x4b4ed3('0x13')]),_0x5ae849[_0x4b4ed3('0x1e')]=_[_0x4b4ed3('0x54')](_0x11ab80['model'],qs['fields'](_0x19e726['query'][_0x4b4ed3('0x3d')])),_0x5ae849[_0x4b4ed3('0x1e')]=_0x5ae849[_0x4b4ed3('0x1e')][_0x4b4ed3('0x55')]?_0x5ae849[_0x4b4ed3('0x1e')]:_0x11ab80[_0x4b4ed3('0x33')],typeof _0x19e726['query'][_0x4b4ed3('0x46')]===_0x4b4ed3('0x24')&&(_0x5ae849['limit']=qs[_0x4b4ed3('0xb')](_0x19e726[_0x4b4ed3('0x13')]['limit']),_0x5ae849[_0x4b4ed3('0x39')]=qs[_0x4b4ed3('0x39')](_0x19e726['query'][_0x4b4ed3('0x39')])),_0x5ae849[_0x4b4ed3('0x18')]=qs[_0x4b4ed3('0x5f')](_0x19e726[_0x4b4ed3('0x13')][_0x4b4ed3('0x5f')]),_0x5ae849[_0x4b4ed3('0x7b')]=qs[_0x4b4ed3('0x53')](_[_0x4b4ed3('0x6a')](_0x19e726[_0x4b4ed3('0x13')],_0x11ab80[_0x4b4ed3('0x53')])),_0x5ae849[_0x4b4ed3('0x6')]=!![],_0x19e726[_0x4b4ed3('0x13')][_0x4b4ed3('0x62')]&&(_0x5ae849[_0x4b4ed3('0x7b')]=_[_0x4b4ed3('0x35')](_0x5ae849['where'],{[Op['or']]:_[_0x4b4ed3('0x44')](_0x5ae849[_0x4b4ed3('0x1e')],function(_0x22f842){const _0x57316d=_0x4b4ed3,_0x4d9a97={};return _0x4d9a97[_0x22f842]={[Op[_0x57316d('0x34')]]:'%'+_0x19e726[_0x57316d('0x13')][_0x57316d('0x62')]+'%'},_0x4d9a97;})})),_0x5ae849=_[_0x4b4ed3('0x35')]({},_0x5ae849,_0x19e726['options']),_0x13c13a[_0x4b4ed3('0x31')](_0x5ae849);}})['then'](function(_0x308dae){const _0x52743e=_0x2cd8d8;if(!_['isEmpty'](_0x308dae)){const _0x1054ae=toCsv(_0x308dae),_0x4e217c=Date[_0x52743e('0x6d')]();return fs['writeFileSync'](util[_0x52743e('0x78')](_0x52743e('0x40'),_0x13c13a['id'],_0x4e217c),_0x1054ae),_0x2aaca2[_0x52743e('0x2e')]('Content-disposition',_0x52743e('0x5c')+util[_0x52743e('0x78')](_0x52743e('0x2c'),_0x13c13a['id'],_0x4e217c)),_0x2aaca2['setHeader'](_0x52743e('0x7a'),_0x52743e('0x1d')),_0x2aaca2[_0x52743e('0x2b')](util[_0x52743e('0x78')](_0x52743e('0x40'),_0x13c13a['id'],_0x4e217c));}else return _0x2aaca2[_0x52743e('0x64')](0xcc);})[_0x2cd8d8('0x49')](handleError(_0x2aaca2,null));},exports[_0x3d1777('0x4f')]=function(_0x470370,_0x30bd2b){const _0x56536e=_0x3d1777;let _0x149384;return delete _0x470370[_0x56536e('0x27')]['id'],db[_0x56536e('0x3c')][_0x56536e('0x5d')]({'where':{'id':_0x470370[_0x56536e('0x76')]['id']}})[_0x56536e('0x2d')](handleEntityNotFound(_0x30bd2b,null))[_0x56536e('0x2d')](function(_0x2ea6e4){const _0x2d550e=_0x56536e;if(_0x2ea6e4)return db[_0x2d550e('0x47')][_0x2d550e('0x6b')](function(_0x30f6dd){const _0x3e48e1=_0x2d550e;return db[_0x3e48e1('0x61')][_0x3e48e1('0x23')](_0x470370['body'],{'transaction':_0x30f6dd})['then'](function(_0x32ad2d){const _0x3e982e=_0x3e48e1;return _0x149384=_0x32ad2d,_0x2ea6e4[_0x3e982e('0x20')](_0x32ad2d,{'transaction':_0x30f6dd});})[_0x3e48e1('0x2d')](function(){const _0x4858b6=_0x3e48e1,_0x522ab2={'type':db[_0x4858b6('0x38')][_0x4858b6('0x4c')],'transaction':_0x30f6dd};switch(_0x470370[_0x4858b6('0x27')]['type']){case _0x4858b6('0x75'):_0x522ab2[_0x4858b6('0xd')]=db[_0x4858b6('0x38')]['TEXT'];break;case _0x4858b6('0x12'):_0x522ab2['type']=db[_0x4858b6('0x38')][_0x4858b6('0xe')];break;case _0x4858b6('0x1f'):_0x522ab2[_0x4858b6('0xd')]=db[_0x4858b6('0x38')][_0x4858b6('0x14')],_0x522ab2[_0x4858b6('0x68')]=![];break;default:}return db[_0x4858b6('0x47')][_0x4858b6('0x7c')]['addColumn'](_0x4858b6('0x29'),util[_0x4858b6('0x78')]('cf_%s',_0x149384['id']),_0x522ab2);})[_0x3e48e1('0x2d')](function(){return _0x149384;});});})[_0x56536e('0x2d')](respondWithResult(_0x30bd2b,null))[_0x56536e('0x49')](handleError(_0x30bd2b,null));},exports[_0x3d1777('0x21')]=function(_0x26d392,_0x44b720){const _0x2213be=_0x3d1777;let _0x11151a={};const _0x58664d={};return db[_0x2213be('0x3c')][_0x2213be('0x5d')]({'where':{'id':_0x26d392[_0x2213be('0x76')]['id']}})['then'](handleEntityNotFound(_0x44b720,null))[_0x2213be('0x2d')](function(_0x5e2b40){const _0xf1adb9=_0x2213be;if(_0x5e2b40)return _0x58664d[_0xf1adb9('0x33')]=_[_0xf1adb9('0x4b')](db['CmCustomField'][_0xf1adb9('0x1a')]),_0x58664d[_0xf1adb9('0x13')]=_['keys'](_0x26d392[_0xf1adb9('0x13')]),_0x58664d['filters']=_['intersection'](_0x58664d[_0xf1adb9('0x33')],_0x58664d['query']),_0x11151a['attributes']=_[_0xf1adb9('0x54')](_0x58664d[_0xf1adb9('0x33')],qs[_0xf1adb9('0x3d')](_0x26d392[_0xf1adb9('0x13')][_0xf1adb9('0x3d')])),_0x11151a['attributes']=_0x11151a[_0xf1adb9('0x1e')][_0xf1adb9('0x55')]?_0x11151a[_0xf1adb9('0x1e')]:_0x58664d[_0xf1adb9('0x33')],_0x11151a['order']=qs[_0xf1adb9('0x5f')](_0x26d392['query'][_0xf1adb9('0x5f')]),_0x11151a['where']=qs['filters'](_['pick'](_0x26d392[_0xf1adb9('0x13')],_0x58664d['filters'])),_0x11151a[_0xf1adb9('0x7b')]=_[_0xf1adb9('0x35')](_0x11151a[_0xf1adb9('0x7b')],{[Op['or']]:[{'ListId':_0x5e2b40['id']},{'ListId':null}]}),_0x26d392[_0xf1adb9('0x13')][_0xf1adb9('0x62')]&&(_0x11151a[_0xf1adb9('0x7b')]=_[_0xf1adb9('0x35')](_0x11151a[_0xf1adb9('0x7b')],{[Op['or']]:_[_0xf1adb9('0x44')](_0x11151a[_0xf1adb9('0x1e')],function(_0x2b4a3d){const _0x4e8e57=_0xf1adb9,_0x204880={};return _0x204880[_0x2b4a3d]={[Op[_0x4e8e57('0x34')]]:'%'+_0x26d392['query'][_0x4e8e57('0x62')]+'%'},_0x204880;})})),_0x11151a=_[_0xf1adb9('0x35')]({},_0x11151a,_0x26d392['options']),db[_0xf1adb9('0x61')]['findAndCountAll'](_0x11151a);})[_0x2213be('0x2d')](respondWithResult(_0x44b720,null))['catch'](handleError(_0x44b720,null));},exports[_0x3d1777('0x60')]=function(_0x37ff0b,_0x7c9287){const _0xacc6b1=_0x3d1777;return db[_0xacc6b1('0x3c')]['findOne']({'where':{'id':_0x37ff0b[_0xacc6b1('0x76')]['id']}})[_0xacc6b1('0x2d')](function(_0x452ad4){const _0x54ffc3=_0xacc6b1;if(_0x452ad4)return _0x452ad4[_0x54ffc3('0x60')](_0x37ff0b['body']['ids'],{'through':_[_0x54ffc3('0x71')](_0x37ff0b[_0x54ffc3('0x27')],[_0x54ffc3('0xf'),'id'])})[_0x54ffc3('0x2d')](function(_0x10a7e8){const _0x3f4b1e=_0x54ffc3;for(let _0x4cf6b0=0x0;_0x4cf6b0<_0x37ff0b[_0x3f4b1e('0x27')][_0x3f4b1e('0xf')]['length'];_0x4cf6b0+=0x1){socket[_0x3f4b1e('0x7')](_0x3f4b1e('0x4a'),{'UserId':_0x37ff0b[_0x3f4b1e('0x27')][_0x3f4b1e('0xf')][_0x4cf6b0],'CmListId':_0x37ff0b[_0x3f4b1e('0x76')]['id']});}return _0x10a7e8;});})[_0xacc6b1('0x2d')](respondWithResult(_0x7c9287,null))[_0xacc6b1('0x49')](handleError(_0x7c9287,null));},exports['removeAgents']=function(_0x252cdb,_0x2ed74d){const _0x54c352=_0x3d1777;return db['CmList'][_0x54c352('0x5d')]({'where':{'id':_0x252cdb[_0x54c352('0x76')]['id']}})[_0x54c352('0x2d')](handleEntityNotFound(_0x2ed74d,null))[_0x54c352('0x2d')](function(_0x1d9fce){const _0x4518dd=_0x54c352;if(_0x1d9fce)return _0x1d9fce[_0x4518dd('0x28')](_0x252cdb[_0x4518dd('0x13')]['ids'])[_0x4518dd('0x2d')](function(){const _0x21cf8d=_0x4518dd;if(_[_0x21cf8d('0x4')](_0x252cdb['query'][_0x21cf8d('0xf')]))for(let _0x384efe=0x0;_0x384efe<_0x252cdb[_0x21cf8d('0x13')][_0x21cf8d('0xf')][_0x21cf8d('0x55')];_0x384efe+=0x1){socket[_0x21cf8d('0x7')]('userCmList:remove',{'UserId':Number(_0x252cdb[_0x21cf8d('0x13')][_0x21cf8d('0xf')][_0x384efe]),'CmListId':Number(_0x252cdb[_0x21cf8d('0x76')]['id'])});}else socket[_0x21cf8d('0x7')](_0x21cf8d('0x22'),{'UserId':Number(_0x252cdb[_0x21cf8d('0x13')][_0x21cf8d('0xf')]),'CmListId':Number(_0x252cdb[_0x21cf8d('0x76')]['id'])});});})[_0x54c352('0x2d')](respondWithStatusCode(_0x2ed74d,null))[_0x54c352('0x49')](handleError(_0x2ed74d,null));},exports[_0x3d1777('0x43')]=function(_0x1aa027,_0x5ac335){const _0x426537=_0x3d1777;let _0x454dca={};const _0x2c265c={};let _0x4bf7f3,_0x3892bf;return db['CmList'][_0x426537('0x5d')]({'where':{'id':_0x1aa027[_0x426537('0x76')]['id']}})['then'](handleEntityNotFound(_0x5ac335,null))[_0x426537('0x2d')](function(_0x31e06d){const _0xc41e1f=_0x426537;if(_0x31e06d)return _0x4bf7f3=_0x31e06d,_0x2c265c['model']=_[_0xc41e1f('0x4b')](db[_0xc41e1f('0x2')][_0xc41e1f('0x1a')]),_0x2c265c[_0xc41e1f('0x13')]=_[_0xc41e1f('0x4b')](_0x1aa027[_0xc41e1f('0x13')]),_0x2c265c['filters']=_[_0xc41e1f('0x54')](_0x2c265c[_0xc41e1f('0x33')],_0x2c265c['query']),_0x454dca[_0xc41e1f('0x1e')]=_[_0xc41e1f('0x54')](_0x2c265c['model'],qs[_0xc41e1f('0x3d')](_0x1aa027[_0xc41e1f('0x13')][_0xc41e1f('0x3d')])),_0x454dca['attributes']=_0x454dca[_0xc41e1f('0x1e')][_0xc41e1f('0x55')]?_0x454dca[_0xc41e1f('0x1e')]:_0x2c265c['model'],_0x454dca[_0xc41e1f('0x18')]=qs['sort'](_0x1aa027['query']['sort']),_0x454dca[_0xc41e1f('0x7b')]=qs['filters'](_[_0xc41e1f('0x6a')](_0x1aa027['query'],_0x2c265c[_0xc41e1f('0x53')])),_0x1aa027[_0xc41e1f('0x13')]['filter']&&(_0x454dca['where']=_[_0xc41e1f('0x35')](_0x454dca[_0xc41e1f('0x7b')],{[Op['or']]:_['map'](_0x454dca['attributes'],function(_0x3583af){const _0x1ff81b=_0xc41e1f,_0x152c18={};return _0x152c18[_0x3583af]={[Op[_0x1ff81b('0x34')]]:'%'+_0x1aa027[_0x1ff81b('0x13')]['filter']+'%'},_0x152c18;})})),_0x454dca=_[_0xc41e1f('0x35')]({},_0x454dca,_0x1aa027[_0xc41e1f('0x3e')]),_0x4bf7f3[_0xc41e1f('0x43')](_0x454dca);})[_0x426537('0x2d')](function(_0x12f2fe){const _0x2df0a6=_0x426537;if(_0x12f2fe)return _0x3892bf=_0x12f2fe[_0x2df0a6('0x55')],typeof _0x1aa027[_0x2df0a6('0x13')][_0x2df0a6('0x46')]==='undefined'&&(_0x454dca[_0x2df0a6('0xb')]=qs[_0x2df0a6('0xb')](_0x1aa027[_0x2df0a6('0x13')]['limit']),_0x454dca['offset']=qs['offset'](_0x1aa027[_0x2df0a6('0x13')][_0x2df0a6('0x39')])),_0x4bf7f3[_0x2df0a6('0x43')](_0x454dca);})['then'](function(_0x248752){if(_0x248752)return _0x248752?{'count':_0x3892bf,'rows':_0x248752}:null;})[_0x426537('0x2d')](respondWithResult(_0x5ac335,null))['catch'](handleError(_0x5ac335,null));}; \ No newline at end of file +const a157_0x3d99=['User','Sequelize','show','CmContact','concat','findAll','defaultValue','findOne','format','CustomFields','where','pick','../../rediscache','Lists','setHeader','addDisposition','include','fieldName','attributes','sequelize','switch','addColumn','set','end','ids','VIRTUAL','nolimit','errors','Content-Range','addAgents','findAndCountAll','ListId','status','removeDispositions','autoAssociation','describe','name','query','CmList','sort','then','text/csv','push','offset','type','Content-type','get','isArray','tags','create','emit','transaction','UserProfileResource','getAgents','order','message','attachment;\x20filename=','Disposition','now','to-csv','cm_contacts','join','api','count','addCustomFields','map','addContacts','update','destroy','like','getDispositions','register','body','omit','filter','/tmp/list_%d_%s.csv','intersection','text','user','send','filters','getContacts','catch','INTEGER','Malformed\x20request\x20syntax','params','rows','key','dataValues','length','addCustomField','options','download','model','json','includeAll','limit','each','getContactsCsv','undefined','raw','util','CmCustomField','sendStatus','writeFileSync','TEXT','number','rawAttributes','removeAgents','keys','cf_%d','fields','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../components/parsers/qs','BOOLEAN','error','merge','lodash','./cmList.socket','Content-disposition'];(function(_0x5addd3,_0x3d9956){const _0x42b547=function(_0x5b3f17){while(--_0x5b3f17){_0x5addd3['push'](_0x5addd3['shift']());}};_0x42b547(++_0x3d9956);}(a157_0x3d99,0x6c));const a157_0x42b5=function(_0x5addd3,_0x3d9956){_0x5addd3=_0x5addd3-0x0;let _0x42b547=a157_0x3d99[_0x5addd3];return _0x42b547;};const _0x2c67b5=a157_0x42b5;'use strict';const util=require(_0x2c67b5('0x71')),fs=require('fs'),_=require(_0x2c67b5('0x9')),toCsv=require(_0x2c67b5('0x47')),{getSocket}=require(_0x2c67b5('0x18')),socket=getSocket(),qs=require(_0x2c67b5('0x5')),logger=require('../../config/logger')(_0x2c67b5('0x4a')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x2c67b5('0xa'))[_0x2c67b5('0x53')](socket);function respondWithStatusCode(_0x5b3f17,_0x5d7962){return _0x5d7962=_0x5d7962||0xcc,function(_0x5821d5){const _0x2bdf3e=a157_0x42b5;if(_0x5821d5)return _0x5b3f17['sendStatus'](_0x5d7962);return _0x5b3f17[_0x2bdf3e('0x2c')](_0x5d7962)[_0x2bdf3e('0x23')]();};}function respondWithResult(_0x55e76b,_0x421156){return _0x421156=_0x421156||0xc8,function(_0x3beb40){if(_0x3beb40)return _0x55e76b['status'](_0x421156)['json'](_0x3beb40);};}function respondWithFilteredResult(_0x1b75fc,_0x428e4a){return function(_0x1829ef){const _0x444558=a157_0x42b5;if(_0x1829ef){const _0x5ffcec=_0x1829ef[_0x444558('0x4b')],_0x26ca1e=_0x428e4a[_0x444558('0x37')];let _0x35add4=_0x428e4a[_0x444558('0x37')]+_0x428e4a[_0x444558('0x6c')],_0x279e35;return _0x35add4>=_0x5ffcec?(_0x35add4=_0x5ffcec,_0x279e35=0xc8):_0x279e35=0xce,_0x1b75fc[_0x444558('0x2c')](_0x279e35),_0x1b75fc[_0x444558('0x22')](_0x444558('0x28'),_0x26ca1e+'-'+_0x35add4+'/'+_0x5ffcec)[_0x444558('0x6a')](_0x1829ef);}return null;};}function saveUpdates(_0x503559){return function(_0x7df2b1){const _0x2ca6ea=a157_0x42b5;if(_0x7df2b1)return _0x7df2b1[_0x2ca6ea('0x4f')](_0x503559)[_0x2ca6ea('0x34')](function(_0x564487){return _0x564487;});return null;};}function removeEntity(_0x424fe1){return function(_0x399ad3){const _0x5cad75=a157_0x42b5;if(_0x399ad3)return _0x399ad3['destroy']()['then'](function(){const _0xedb78a=a157_0x42b5,_0x2807c7=_0x399ad3[_0xedb78a('0x3a')]({'plain':!![]}),_0x644c49=_0xedb78a('0x19');return db[_0xedb78a('0x40')][_0xedb78a('0x50')]({'where':{'type':_0x644c49,'resourceId':_0x2807c7['id']}})['then'](function(){return _0x399ad3;});})[_0x5cad75('0x34')](function(){const _0x30117e=_0x5cad75;_0x424fe1[_0x30117e('0x2c')](0xcc)[_0x30117e('0x23')]();});};}function handleEntityNotFound(_0x3d9810){return function(_0x1922da){const _0x7b1a37=a157_0x42b5;return!_0x1922da&&_0x3d9810[_0x7b1a37('0x73')](0x194),_0x1922da;};}function handleError(_0x2aa8a4,_0x379523){return _0x379523=_0x379523||0x1f4,function(_0x265382){const _0x44ea9e=a157_0x42b5;logger[_0x44ea9e('0x7')](_0x265382['stack']),_0x265382['name']&&delete _0x265382[_0x44ea9e('0x30')],_0x2aa8a4[_0x44ea9e('0x2c')](_0x379523)[_0x44ea9e('0x5b')](_0x265382);};}exports['index']=function(_0x84d59e,_0x2c7a89){const _0x16da3a=_0x2c67b5;let _0x13d638={};const _0x31c0e5={},_0x18d4b5={'count':0x0,'rows':[]},_0x31d047=_[_0x16da3a('0x4d')](db['CmList']['rawAttributes'],function(_0x1f2cff){const _0x5bab49=_0x16da3a;return{'name':_0x1f2cff[_0x5bab49('0x1d')],'type':_0x1f2cff['type'][_0x5bab49('0x63')]};});_0x31c0e5[_0x16da3a('0x69')]=_[_0x16da3a('0x4d')](_0x31d047,_0x16da3a('0x30')),_0x31c0e5[_0x16da3a('0x31')]=_[_0x16da3a('0x1')](_0x84d59e['query']),_0x31c0e5[_0x16da3a('0x5c')]=_[_0x16da3a('0x58')](_0x31c0e5[_0x16da3a('0x69')],_0x31c0e5[_0x16da3a('0x31')]),_0x13d638[_0x16da3a('0x1e')]=_[_0x16da3a('0x58')](_0x31c0e5[_0x16da3a('0x69')],qs['fields'](_0x84d59e[_0x16da3a('0x31')][_0x16da3a('0x3')])),_0x13d638['attributes']=_0x13d638['attributes'][_0x16da3a('0x65')]?_0x13d638['attributes']:_0x31c0e5[_0x16da3a('0x69')];typeof _0x84d59e[_0x16da3a('0x31')][_0x16da3a('0x26')]===_0x16da3a('0x6f')&&(_0x13d638[_0x16da3a('0x6c')]=qs[_0x16da3a('0x6c')](_0x84d59e[_0x16da3a('0x31')][_0x16da3a('0x6c')]),_0x13d638[_0x16da3a('0x37')]=qs[_0x16da3a('0x37')](_0x84d59e[_0x16da3a('0x31')][_0x16da3a('0x37')]));_0x13d638[_0x16da3a('0x42')]=qs[_0x16da3a('0x33')](_0x84d59e[_0x16da3a('0x31')][_0x16da3a('0x33')]),_0x13d638['where']=qs['filters'](_[_0x16da3a('0x17')](_0x84d59e[_0x16da3a('0x31')],_0x31c0e5[_0x16da3a('0x5c')]),_0x31d047);_0x84d59e['query'][_0x16da3a('0x56')]&&(_0x13d638['where']=_[_0x16da3a('0x8')](_0x13d638[_0x16da3a('0x16')],{[Op['or']]:_[_0x16da3a('0x4d')](_0x31d047,function(_0x14a3a7){const _0xca506e=_0x16da3a;if(_0x14a3a7['type']!==_0xca506e('0x25')){const _0x3e6b81={};return _0x3e6b81[_0x14a3a7['name']]={[Op[_0xca506e('0x51')]]:'%'+_0x84d59e[_0xca506e('0x31')][_0xca506e('0x56')]+'%'},_0x3e6b81;}})}));_0x13d638=_['merge']({},_0x13d638,_0x84d59e[_0x16da3a('0x67')]);const _0x377b7c={'where':_0x13d638[_0x16da3a('0x16')]};return db[_0x16da3a('0x32')][_0x16da3a('0x4b')](_0x377b7c)['then'](function(_0x327c0e){const _0x48100b=_0x16da3a;return _0x18d4b5[_0x48100b('0x4b')]=_0x327c0e,_0x84d59e['query'][_0x48100b('0x6b')]&&(_0x13d638[_0x48100b('0x1c')]=[{'all':!![]}]),db[_0x48100b('0x32')][_0x48100b('0x11')](_0x13d638);})[_0x16da3a('0x34')](function(_0x346b2c){const _0x360e6c=_0x16da3a;return _0x18d4b5[_0x360e6c('0x62')]=_0x346b2c,_0x18d4b5;})[_0x16da3a('0x34')](respondWithFilteredResult(_0x2c7a89,_0x13d638))[_0x16da3a('0x5e')](handleError(_0x2c7a89,null));},exports[_0x2c67b5('0xe')]=function(_0x3e4be8,_0x255ef2){const _0x557ba8=_0x2c67b5;let _0x5d7069={'raw':![],'where':{'id':_0x3e4be8[_0x557ba8('0x61')]['id']}};const _0x55fc6d={};return _0x55fc6d[_0x557ba8('0x69')]=_['keys'](db[_0x557ba8('0x32')][_0x557ba8('0x77')]),_0x55fc6d[_0x557ba8('0x31')]=_[_0x557ba8('0x1')](_0x3e4be8['query']),_0x55fc6d[_0x557ba8('0x5c')]=_[_0x557ba8('0x58')](_0x55fc6d[_0x557ba8('0x69')],_0x55fc6d['query']),_0x5d7069[_0x557ba8('0x1e')]=_[_0x557ba8('0x58')](_0x55fc6d[_0x557ba8('0x69')],qs['fields'](_0x3e4be8[_0x557ba8('0x31')]['fields'])),_0x5d7069['attributes']=_0x5d7069[_0x557ba8('0x1e')][_0x557ba8('0x65')]?_0x5d7069[_0x557ba8('0x1e')]:_0x55fc6d['model'],_0x3e4be8[_0x557ba8('0x31')][_0x557ba8('0x6b')]&&(_0x5d7069[_0x557ba8('0x1c')]=[{'all':!![]}]),_0x5d7069=_[_0x557ba8('0x8')]({},_0x5d7069,_0x3e4be8[_0x557ba8('0x67')]),db[_0x557ba8('0x32')]['findOne'](_0x5d7069)[_0x557ba8('0x34')](handleEntityNotFound(_0x255ef2,null))[_0x557ba8('0x34')](respondWithResult(_0x255ef2,null))[_0x557ba8('0x5e')](handleError(_0x255ef2,null));},exports[_0x2c67b5('0x3d')]=function(_0x4fdd58,_0x1e00b5){const _0x2d5a8c=_0x2c67b5;return db[_0x2d5a8c('0x32')][_0x2d5a8c('0x3d')](_0x4fdd58['body'],{})[_0x2d5a8c('0x34')](function(_0x11613c){const _0x2946cf=_0x2d5a8c,_0x554c6d=_0x4fdd58[_0x2946cf('0x5a')][_0x2946cf('0x3a')]({'plain':!![]});if(!_0x554c6d)throw new Error(_0x2946cf('0x4'));if(_0x554c6d['role']===_0x2946cf('0x5a')){const _0x4ec6c5=_0x11613c[_0x2946cf('0x3a')]({'plain':!![]}),_0x10b2e9=_0x2946cf('0x19');return db['UserProfileSection'][_0x2946cf('0x13')]({'where':{'name':_0x10b2e9,'userProfileId':_0x554c6d['userProfileId']},'raw':!![]})[_0x2946cf('0x34')](function(_0x1a5f6e){const _0x2b3f0e=_0x2946cf;return _0x1a5f6e&&_0x1a5f6e[_0x2b3f0e('0x2e')]===0x0?db[_0x2b3f0e('0x40')]['create']({'name':_0x4ec6c5[_0x2b3f0e('0x30')],'resourceId':_0x4ec6c5['id'],'type':_0x1a5f6e['name'],'sectionId':_0x1a5f6e['id']},{})[_0x2b3f0e('0x34')](function(){return _0x11613c;}):_0x11613c;})[_0x2946cf('0x5e')](function(_0x557090){const _0x5426fd=_0x2946cf;logger[_0x5426fd('0x7')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x557090);throw _0x557090;});}return _0x11613c;})[_0x2d5a8c('0x34')](respondWithResult(_0x1e00b5,0xc9))[_0x2d5a8c('0x5e')](handleError(_0x1e00b5,null));},exports['update']=function(_0x26ea5e,_0x48cb1f){const _0x3ce7ce=_0x2c67b5;return _0x26ea5e[_0x3ce7ce('0x54')]['id']&&delete _0x26ea5e[_0x3ce7ce('0x54')]['id'],db[_0x3ce7ce('0x32')]['findOne']({'where':{'id':_0x26ea5e['params']['id']}})[_0x3ce7ce('0x34')](handleEntityNotFound(_0x48cb1f,null))[_0x3ce7ce('0x34')](saveUpdates(_0x26ea5e['body'],null))[_0x3ce7ce('0x34')](respondWithResult(_0x48cb1f,null))[_0x3ce7ce('0x5e')](handleError(_0x48cb1f,null));},exports[_0x2c67b5('0x50')]=function(_0x37b11f,_0x32b815){const _0x45225e=_0x2c67b5;return db[_0x45225e('0x32')][_0x45225e('0x13')]({'where':{'id':_0x37b11f[_0x45225e('0x61')]['id']}})['then'](handleEntityNotFound(_0x32b815,null))[_0x45225e('0x34')](removeEntity(_0x32b815,null))[_0x45225e('0x5e')](handleError(_0x32b815,null));},exports[_0x2c67b5('0x2f')]=function(_0x4123c6,_0x3c14b2){const _0x4ca116=_0x2c67b5;return db[_0x4ca116('0x32')][_0x4ca116('0x2f')]()['then'](respondWithResult(_0x3c14b2,null))[_0x4ca116('0x5e')](handleError(_0x3c14b2,null));},exports[_0x2c67b5('0x1b')]=function(_0x5a433b,_0xce5fa8){const _0x39e152=_0x2c67b5;return _0x5a433b[_0x39e152('0x54')]['id']&&delete _0x5a433b[_0x39e152('0x54')]['id'],db['CmList']['findOne']({'where':{'id':_0x5a433b[_0x39e152('0x61')]['id']}})[_0x39e152('0x34')](handleEntityNotFound(_0xce5fa8,null))[_0x39e152('0x34')](function(_0x52dbd4){const _0x27d01b=_0x39e152;if(_0x52dbd4)return _0x5a433b[_0x27d01b('0x54')][_0x27d01b('0x2b')]=_0x52dbd4['id'],db[_0x27d01b('0x45')][_0x27d01b('0x3d')](_0x5a433b[_0x27d01b('0x54')]);})['then'](respondWithResult(_0xce5fa8,null))[_0x39e152('0x5e')](handleError(_0xce5fa8,null));},exports[_0x2c67b5('0x52')]=function(_0x40da41,_0x49d747){const _0x45a228=_0x2c67b5;let _0x3b9963={'raw':![],'where':{}};const _0x180086={},_0x4d5c3a={'count':0x0,'rows':[]};return db[_0x45a228('0x32')]['findOne']({'where':{'id':_0x40da41['params']['id']}})[_0x45a228('0x34')](handleEntityNotFound(_0x49d747,null))['then'](function(_0x188337){const _0x1089da=_0x45a228;if(_0x188337)return _0x180086[_0x1089da('0x69')]=_[_0x1089da('0x1')](db[_0x1089da('0x45')][_0x1089da('0x77')]),_0x180086[_0x1089da('0x31')]=_[_0x1089da('0x1')](_0x40da41['query']),_0x180086[_0x1089da('0x5c')]=_[_0x1089da('0x58')](_0x180086[_0x1089da('0x69')],_0x180086['query']),_0x3b9963[_0x1089da('0x1e')]=_[_0x1089da('0x58')](_0x180086['model'],qs[_0x1089da('0x3')](_0x40da41[_0x1089da('0x31')][_0x1089da('0x3')])),_0x3b9963[_0x1089da('0x1e')]=_0x3b9963['attributes'][_0x1089da('0x65')]?_0x3b9963[_0x1089da('0x1e')]:_0x180086[_0x1089da('0x69')],typeof _0x40da41[_0x1089da('0x31')][_0x1089da('0x26')]==='undefined'&&(_0x3b9963['limit']=qs[_0x1089da('0x6c')](_0x40da41['query'][_0x1089da('0x6c')]),_0x3b9963['offset']=qs[_0x1089da('0x37')](_0x40da41[_0x1089da('0x31')][_0x1089da('0x37')])),_0x3b9963[_0x1089da('0x42')]=qs[_0x1089da('0x33')](_0x40da41[_0x1089da('0x31')][_0x1089da('0x33')]),_0x3b9963[_0x1089da('0x16')]=qs[_0x1089da('0x5c')](_[_0x1089da('0x17')](_0x40da41[_0x1089da('0x31')],_0x180086[_0x1089da('0x5c')])),_0x3b9963[_0x1089da('0x16')][_0x1089da('0x2b')]=_0x188337['id'],_0x40da41[_0x1089da('0x31')][_0x1089da('0x56')]&&(_0x3b9963['where']=_['merge'](_0x3b9963[_0x1089da('0x16')],{[Op['or']]:_[_0x1089da('0x4d')](_0x3b9963['attributes'],function(_0x1d5ad4){const _0x31d90b=_0x1089da,_0x2a3dcd={};return _0x2a3dcd[_0x1d5ad4]={[Op[_0x31d90b('0x51')]]:'%'+_0x40da41[_0x31d90b('0x31')][_0x31d90b('0x56')]+'%'},_0x2a3dcd;})})),_0x3b9963=_[_0x1089da('0x8')]({},_0x3b9963,_0x40da41[_0x1089da('0x67')]),db[_0x1089da('0x45')]['count']({'where':_0x3b9963['where']})[_0x1089da('0x34')](function(_0x912795){const _0x2f7f6=_0x1089da;return _0x4d5c3a[_0x2f7f6('0x4b')]=_0x912795,_0x40da41[_0x2f7f6('0x31')][_0x2f7f6('0x6b')]&&(_0x3b9963[_0x2f7f6('0x1c')]=[{'all':!![]}]),db[_0x2f7f6('0x45')]['findAll'](_0x3b9963);})[_0x1089da('0x34')](function(_0x3a8604){const _0x149d47=_0x1089da;return _0x4d5c3a[_0x149d47('0x62')]=_0x3a8604,_0x4d5c3a;});})[_0x45a228('0x34')](respondWithFilteredResult(_0x49d747,_0x3b9963))[_0x45a228('0x5e')](handleError(_0x49d747,null));},exports[_0x2c67b5('0x2d')]=function(_0x1e03a2,_0x16f1df){const _0x51b479=_0x2c67b5;return db[_0x51b479('0x32')][_0x51b479('0x13')]({'where':{'id':_0x1e03a2[_0x51b479('0x61')]['id']}})[_0x51b479('0x34')](handleEntityNotFound(_0x16f1df,null))[_0x51b479('0x34')](function(_0x5834a3){const _0xc464ae=_0x51b479;if(_0x5834a3)return _0x5834a3[_0xc464ae('0x2d')](_0x1e03a2['query'][_0xc464ae('0x24')]);})[_0x51b479('0x34')](respondWithStatusCode(_0x16f1df,null))[_0x51b479('0x5e')](handleError(_0x16f1df,null));},exports[_0x2c67b5('0x4e')]=function(_0x4b2a90,_0x2d1e60){const _0x2fab32=_0x2c67b5;return db['CmList'][_0x2fab32('0x13')]({'where':{'id':_0x4b2a90[_0x2fab32('0x61')]['id']}})[_0x2fab32('0x34')](handleEntityNotFound(_0x2d1e60,null))[_0x2fab32('0x34')](function(_0x2ebbd3){const _0xa26810=_0x2fab32;if(_0x2ebbd3){const _0xdaa76=[],_0x230522={'success':[],'errors':[]};return db['CmContact'][_0xa26810('0x2f')]()['then'](function(_0x101c71){const _0x3eb585=_0xa26810;_0x4b2a90['body'][_0x3eb585('0x3c')]&&_['isArray'](_0x4b2a90[_0x3eb585('0x54')]['tags'])?_0x4b2a90['body'][_0x3eb585('0x3c')]['length']?_0x4b2a90[_0x3eb585('0x54')][_0x3eb585('0x3c')]=_0x4b2a90[_0x3eb585('0x54')]['tags'][_0x3eb585('0x49')](';')+';':_0x4b2a90[_0x3eb585('0x54')][_0x3eb585('0x3c')]=null:_0x4b2a90['body'][_0x3eb585('0x3c')]=null;if(_0x4b2a90[_0x3eb585('0x54')]&&_[_0x3eb585('0x3b')](_0x4b2a90['body'])){for(let _0x209579=0x0;_0x209579<_0x4b2a90[_0x3eb585('0x54')][_0x3eb585('0x65')];_0x209579+=0x1){_0x4b2a90['body'][_0x209579][_0x3eb585('0x2b')]=_0x4b2a90['params']['id'],_0xdaa76[_0x3eb585('0x36')](_0x4b2a90[_0x3eb585('0x54')][_0x209579]);}return Promise[_0x3eb585('0x6d')](_0xdaa76,function(_0x697425){const _0x57dbc4=_0x3eb585;return db['CmContact']['create'](_['omit'](_0x697425,['ids','id'])||{},{'fields':_[_0x57dbc4('0x1')](_0x101c71),'raw':!![]})[_0x57dbc4('0x34')](function(_0x59a2c1){const _0x2750e8=_0x57dbc4;_0x230522['success']['push'](_0x59a2c1[_0x2750e8('0x64')]);})[_0x57dbc4('0x5e')](function(_0x148978){const _0x59e730=_0x57dbc4;_0x230522[_0x59e730('0x27')][_0x59e730('0x36')]({'data':_0x697425,'error':_0x148978[_0x59e730('0x43')]});});})[_0x3eb585('0x34')](function(){return _0x230522;})[_0x3eb585('0x5e')](function(_0x48ae6d){return _0x48ae6d;});}else _0x2d1e60[_0x3eb585('0x2c')](0x190)['json']({'message':_0x3eb585('0x60')});});}})['then'](respondWithResult(_0x2d1e60,null))[_0x2fab32('0x5e')](handleError(_0x2d1e60,null));},exports[_0x2c67b5('0x5d')]=function(_0xf5c26,_0x32bac4){const _0x38335b=_0x2c67b5;let _0x5c1d73;return db[_0x38335b('0x32')][_0x38335b('0x13')]({'where':{'id':_0xf5c26[_0x38335b('0x61')]['id']},'include':[{'model':db[_0x38335b('0x72')],'as':_0x38335b('0x15')}]})[_0x38335b('0x34')](handleEntityNotFound(_0x32bac4,null))[_0x38335b('0x34')](function(_0x18ebf1){const _0x4d9ccc=_0x38335b;if(_0x18ebf1)return _0x5c1d73=_0x18ebf1,db['CmContact'][_0x4d9ccc('0x77')];})[_0x38335b('0x34')](function(_0x244224){const _0x58e43c=_0x38335b;if(_0x244224){let _0x535715={};const _0x2c4aff={};return _0x2c4aff[_0x58e43c('0x69')]=_[_0x58e43c('0x10')](_[_0x58e43c('0x1')](_0x244224),_[_0x58e43c('0x4d')](_0x5c1d73[_0x58e43c('0x15')],function(_0x385e41){const _0xb607be=_0x58e43c;return util['format'](_0xb607be('0x2'),_0x385e41['id']);})),_0x2c4aff['query']=_[_0x58e43c('0x1')](_0xf5c26[_0x58e43c('0x31')]),_0x2c4aff[_0x58e43c('0x5c')]=_[_0x58e43c('0x58')](_0x2c4aff[_0x58e43c('0x69')],_0x2c4aff[_0x58e43c('0x31')]),_0x535715[_0x58e43c('0x1e')]=_[_0x58e43c('0x58')](_0x2c4aff[_0x58e43c('0x69')],qs[_0x58e43c('0x3')](_0xf5c26['query'][_0x58e43c('0x3')])),_0x535715[_0x58e43c('0x1e')]=_0x535715[_0x58e43c('0x1e')]['length']?_0x535715[_0x58e43c('0x1e')]:_0x2c4aff[_0x58e43c('0x69')],typeof _0xf5c26[_0x58e43c('0x31')]['nolimit']===_0x58e43c('0x6f')&&(_0x535715['limit']=qs[_0x58e43c('0x6c')](_0xf5c26[_0x58e43c('0x31')]['limit']),_0x535715[_0x58e43c('0x37')]=qs[_0x58e43c('0x37')](_0xf5c26[_0x58e43c('0x31')]['offset'])),_0x535715['order']=qs['sort'](_0xf5c26[_0x58e43c('0x31')][_0x58e43c('0x33')]),_0x535715[_0x58e43c('0x16')]=qs[_0x58e43c('0x5c')](_[_0x58e43c('0x17')](_0xf5c26[_0x58e43c('0x31')],_0x2c4aff['filters'])),_0x535715[_0x58e43c('0x70')]=!![],_0xf5c26[_0x58e43c('0x31')][_0x58e43c('0x56')]&&(_0x535715[_0x58e43c('0x16')]=_[_0x58e43c('0x8')](_0x535715[_0x58e43c('0x16')],{[Op['or']]:_[_0x58e43c('0x4d')](_0x535715[_0x58e43c('0x1e')],function(_0x30be88){const _0x1cef2b=_0x58e43c,_0x7fef58={};return _0x7fef58[_0x30be88]={[Op[_0x1cef2b('0x51')]]:'%'+_0xf5c26[_0x1cef2b('0x31')]['filter']+'%'},_0x7fef58;})})),_0x535715=_['merge']({},_0x535715,_0xf5c26[_0x58e43c('0x67')]),_0x5c1d73[_0x58e43c('0x5d')](_0x535715);}})[_0x38335b('0x34')](respondWithResult(_0x32bac4,null))[_0x38335b('0x5e')](handleError(_0x32bac4,null));},exports[_0x2c67b5('0x6e')]=function(_0x4cf34b,_0x4b45bf){const _0x3394fc=_0x2c67b5;let _0x13b08c;return db[_0x3394fc('0x32')][_0x3394fc('0x13')]({'where':{'id':_0x4cf34b[_0x3394fc('0x61')]['id']},'include':[{'model':db['CmCustomField'],'as':_0x3394fc('0x15')}]})[_0x3394fc('0x34')](handleEntityNotFound(_0x4b45bf,null))[_0x3394fc('0x34')](function(_0x3d2047){const _0x151e24=_0x3394fc;if(_0x3d2047)return _0x13b08c=_0x3d2047,db[_0x151e24('0xf')][_0x151e24('0x77')];})[_0x3394fc('0x34')](function(_0x29d3b0){const _0x501461=_0x3394fc;if(_0x29d3b0){let _0x779d50={};const _0x2303fe={};return _0x2303fe[_0x501461('0x69')]=_[_0x501461('0x10')](_[_0x501461('0x1')](_0x29d3b0),_['map'](_0x13b08c[_0x501461('0x15')],function(_0x50bad2){const _0x3c0381=_0x501461;return util[_0x3c0381('0x14')](_0x3c0381('0x2'),_0x50bad2['id']);})),_0x2303fe[_0x501461('0x31')]=_[_0x501461('0x1')](_0x4cf34b[_0x501461('0x31')]),_0x2303fe[_0x501461('0x5c')]=_[_0x501461('0x58')](_0x2303fe['model'],_0x2303fe['query']),_0x779d50[_0x501461('0x1e')]=_[_0x501461('0x58')](_0x2303fe['model'],qs['fields'](_0x4cf34b[_0x501461('0x31')][_0x501461('0x3')])),_0x779d50[_0x501461('0x1e')]=_0x779d50[_0x501461('0x1e')]['length']?_0x779d50[_0x501461('0x1e')]:_0x2303fe[_0x501461('0x69')],typeof _0x4cf34b[_0x501461('0x31')][_0x501461('0x26')]==='undefined'&&(_0x779d50['limit']=qs[_0x501461('0x6c')](_0x4cf34b[_0x501461('0x31')][_0x501461('0x6c')]),_0x779d50['offset']=qs[_0x501461('0x37')](_0x4cf34b['query'][_0x501461('0x37')])),_0x779d50[_0x501461('0x42')]=qs[_0x501461('0x33')](_0x4cf34b[_0x501461('0x31')][_0x501461('0x33')]),_0x779d50['where']=qs[_0x501461('0x5c')](_['pick'](_0x4cf34b[_0x501461('0x31')],_0x2303fe[_0x501461('0x5c')])),_0x779d50[_0x501461('0x70')]=!![],_0x4cf34b[_0x501461('0x31')][_0x501461('0x56')]&&(_0x779d50[_0x501461('0x16')]=_[_0x501461('0x8')](_0x779d50['where'],{[Op['or']]:_['map'](_0x779d50[_0x501461('0x1e')],function(_0xfad79e){const _0x23077a=_0x501461,_0x2c80ca={};return _0x2c80ca[_0xfad79e]={[Op[_0x23077a('0x51')]]:'%'+_0x4cf34b['query'][_0x23077a('0x56')]+'%'},_0x2c80ca;})})),_0x779d50=_[_0x501461('0x8')]({},_0x779d50,_0x4cf34b['options']),_0x13b08c[_0x501461('0x5d')](_0x779d50);}})[_0x3394fc('0x34')](function(_0x284de2){const _0x506b76=_0x3394fc;if(!_['isEmpty'](_0x284de2)){const _0x34bc04=toCsv(_0x284de2),_0xef5069=Date[_0x506b76('0x46')]();return fs[_0x506b76('0x74')](util[_0x506b76('0x14')](_0x506b76('0x57'),_0x13b08c['id'],_0xef5069),_0x34bc04),_0x4b45bf[_0x506b76('0x1a')](_0x506b76('0xb'),_0x506b76('0x44')+util[_0x506b76('0x14')]('list_%d_%s.csv',_0x13b08c['id'],_0xef5069)),_0x4b45bf[_0x506b76('0x1a')](_0x506b76('0x39'),_0x506b76('0x35')),_0x4b45bf[_0x506b76('0x68')](util[_0x506b76('0x14')](_0x506b76('0x57'),_0x13b08c['id'],_0xef5069));}else return _0x4b45bf[_0x506b76('0x73')](0xcc);})[_0x3394fc('0x5e')](handleError(_0x4b45bf,null));},exports[_0x2c67b5('0x66')]=function(_0x372d5f,_0x5b6924){const _0x4dab11=_0x2c67b5;let _0x252d78;return delete _0x372d5f['body']['id'],db[_0x4dab11('0x32')]['findOne']({'where':{'id':_0x372d5f[_0x4dab11('0x61')]['id']}})['then'](handleEntityNotFound(_0x5b6924,null))[_0x4dab11('0x34')](function(_0x429e83){const _0x1ac4a3=_0x4dab11;if(_0x429e83)return db[_0x1ac4a3('0x1f')][_0x1ac4a3('0x3f')](function(_0x36fe28){const _0x3a181d=_0x1ac4a3;return db[_0x3a181d('0x72')][_0x3a181d('0x3d')](_0x372d5f[_0x3a181d('0x54')],{'transaction':_0x36fe28})[_0x3a181d('0x34')](function(_0x37b6ac){const _0x5b7ad8=_0x3a181d;return _0x252d78=_0x37b6ac,_0x429e83[_0x5b7ad8('0x4c')](_0x37b6ac,{'transaction':_0x36fe28});})[_0x3a181d('0x34')](function(){const _0x53f438=_0x3a181d,_0x639919={'type':db['Sequelize'][_0x53f438('0x75')],'transaction':_0x36fe28};switch(_0x372d5f[_0x53f438('0x54')][_0x53f438('0x38')]){case _0x53f438('0x59'):_0x639919['type']=db[_0x53f438('0xd')][_0x53f438('0x75')];break;case _0x53f438('0x76'):_0x639919[_0x53f438('0x38')]=db['Sequelize'][_0x53f438('0x5f')];break;case _0x53f438('0x20'):_0x639919[_0x53f438('0x38')]=db[_0x53f438('0xd')][_0x53f438('0x6')],_0x639919[_0x53f438('0x12')]=![];break;default:}return db['sequelize']['queryInterface'][_0x53f438('0x21')](_0x53f438('0x48'),util[_0x53f438('0x14')]('cf_%s',_0x252d78['id']),_0x639919);})['then'](function(){return _0x252d78;});});})[_0x4dab11('0x34')](respondWithResult(_0x5b6924,null))[_0x4dab11('0x5e')](handleError(_0x5b6924,null));},exports['getCustomFields']=function(_0x1be8e7,_0x1a085a){const _0x4fbfd4=_0x2c67b5;let _0x1eabd2={};const _0x548f6e={};return db[_0x4fbfd4('0x32')]['findOne']({'where':{'id':_0x1be8e7[_0x4fbfd4('0x61')]['id']}})[_0x4fbfd4('0x34')](handleEntityNotFound(_0x1a085a,null))[_0x4fbfd4('0x34')](function(_0x333bb2){const _0x5f27bc=_0x4fbfd4;if(_0x333bb2)return _0x548f6e[_0x5f27bc('0x69')]=_[_0x5f27bc('0x1')](db[_0x5f27bc('0x72')]['rawAttributes']),_0x548f6e[_0x5f27bc('0x31')]=_[_0x5f27bc('0x1')](_0x1be8e7[_0x5f27bc('0x31')]),_0x548f6e[_0x5f27bc('0x5c')]=_['intersection'](_0x548f6e[_0x5f27bc('0x69')],_0x548f6e[_0x5f27bc('0x31')]),_0x1eabd2['attributes']=_[_0x5f27bc('0x58')](_0x548f6e[_0x5f27bc('0x69')],qs[_0x5f27bc('0x3')](_0x1be8e7[_0x5f27bc('0x31')][_0x5f27bc('0x3')])),_0x1eabd2['attributes']=_0x1eabd2[_0x5f27bc('0x1e')][_0x5f27bc('0x65')]?_0x1eabd2[_0x5f27bc('0x1e')]:_0x548f6e[_0x5f27bc('0x69')],_0x1eabd2['order']=qs['sort'](_0x1be8e7['query']['sort']),_0x1eabd2[_0x5f27bc('0x16')]=qs[_0x5f27bc('0x5c')](_[_0x5f27bc('0x17')](_0x1be8e7[_0x5f27bc('0x31')],_0x548f6e[_0x5f27bc('0x5c')])),_0x1eabd2['where']=_['merge'](_0x1eabd2['where'],{[Op['or']]:[{'ListId':_0x333bb2['id']},{'ListId':null}]}),_0x1be8e7[_0x5f27bc('0x31')][_0x5f27bc('0x56')]&&(_0x1eabd2['where']=_[_0x5f27bc('0x8')](_0x1eabd2[_0x5f27bc('0x16')],{[Op['or']]:_[_0x5f27bc('0x4d')](_0x1eabd2['attributes'],function(_0x5c3d42){const _0x44c731=_0x5f27bc,_0x464631={};return _0x464631[_0x5c3d42]={[Op['like']]:'%'+_0x1be8e7[_0x44c731('0x31')]['filter']+'%'},_0x464631;})})),_0x1eabd2=_[_0x5f27bc('0x8')]({},_0x1eabd2,_0x1be8e7[_0x5f27bc('0x67')]),db['CmCustomField'][_0x5f27bc('0x2a')](_0x1eabd2);})[_0x4fbfd4('0x34')](respondWithResult(_0x1a085a,null))[_0x4fbfd4('0x5e')](handleError(_0x1a085a,null));},exports['addAgents']=function(_0x276ca1,_0x44f221){const _0x566015=_0x2c67b5;return db[_0x566015('0x32')][_0x566015('0x13')]({'where':{'id':_0x276ca1['params']['id']}})[_0x566015('0x34')](function(_0x274600){const _0x510398=_0x566015;if(_0x274600)return _0x274600[_0x510398('0x29')](_0x276ca1[_0x510398('0x54')]['ids'],{'through':_[_0x510398('0x55')](_0x276ca1[_0x510398('0x54')],[_0x510398('0x24'),'id'])})[_0x510398('0x34')](function(_0x38474c){const _0x41d699=_0x510398;for(let _0x2f60c3=0x0;_0x2f60c3<_0x276ca1['body'][_0x41d699('0x24')][_0x41d699('0x65')];_0x2f60c3+=0x1){socket[_0x41d699('0x3e')]('userCmList:save',{'UserId':_0x276ca1[_0x41d699('0x54')][_0x41d699('0x24')][_0x2f60c3],'CmListId':_0x276ca1['params']['id']});}return _0x38474c;});})[_0x566015('0x34')](respondWithResult(_0x44f221,null))[_0x566015('0x5e')](handleError(_0x44f221,null));},exports[_0x2c67b5('0x0')]=function(_0x57d5b7,_0x51f6cb){const _0x56f9c2=_0x2c67b5;return db['CmList'][_0x56f9c2('0x13')]({'where':{'id':_0x57d5b7[_0x56f9c2('0x61')]['id']}})[_0x56f9c2('0x34')](handleEntityNotFound(_0x51f6cb,null))[_0x56f9c2('0x34')](function(_0x4958c0){const _0x437a53=_0x56f9c2;if(_0x4958c0)return _0x4958c0[_0x437a53('0x0')](_0x57d5b7['query'][_0x437a53('0x24')])[_0x437a53('0x34')](function(){const _0x13d4d2=_0x437a53;if(_[_0x13d4d2('0x3b')](_0x57d5b7[_0x13d4d2('0x31')]['ids']))for(let _0x1bf34f=0x0;_0x1bf34f<_0x57d5b7[_0x13d4d2('0x31')][_0x13d4d2('0x24')][_0x13d4d2('0x65')];_0x1bf34f+=0x1){socket['emit']('userCmList:remove',{'UserId':Number(_0x57d5b7[_0x13d4d2('0x31')]['ids'][_0x1bf34f]),'CmListId':Number(_0x57d5b7[_0x13d4d2('0x61')]['id'])});}else socket[_0x13d4d2('0x3e')]('userCmList:remove',{'UserId':Number(_0x57d5b7['query']['ids']),'CmListId':Number(_0x57d5b7[_0x13d4d2('0x61')]['id'])});});})[_0x56f9c2('0x34')](respondWithStatusCode(_0x51f6cb,null))[_0x56f9c2('0x5e')](handleError(_0x51f6cb,null));},exports[_0x2c67b5('0x41')]=function(_0x2f1152,_0x442620){const _0x18fe77=_0x2c67b5;let _0xd770bf={};const _0x4e7fe1={};let _0x33b058,_0x2fb29b;return db[_0x18fe77('0x32')][_0x18fe77('0x13')]({'where':{'id':_0x2f1152[_0x18fe77('0x61')]['id']}})['then'](handleEntityNotFound(_0x442620,null))[_0x18fe77('0x34')](function(_0x2cf432){const _0xfd54c6=_0x18fe77;if(_0x2cf432)return _0x33b058=_0x2cf432,_0x4e7fe1['model']=_['keys'](db[_0xfd54c6('0xc')][_0xfd54c6('0x77')]),_0x4e7fe1[_0xfd54c6('0x31')]=_[_0xfd54c6('0x1')](_0x2f1152['query']),_0x4e7fe1['filters']=_['intersection'](_0x4e7fe1[_0xfd54c6('0x69')],_0x4e7fe1[_0xfd54c6('0x31')]),_0xd770bf[_0xfd54c6('0x1e')]=_[_0xfd54c6('0x58')](_0x4e7fe1[_0xfd54c6('0x69')],qs['fields'](_0x2f1152[_0xfd54c6('0x31')][_0xfd54c6('0x3')])),_0xd770bf[_0xfd54c6('0x1e')]=_0xd770bf[_0xfd54c6('0x1e')][_0xfd54c6('0x65')]?_0xd770bf[_0xfd54c6('0x1e')]:_0x4e7fe1[_0xfd54c6('0x69')],_0xd770bf[_0xfd54c6('0x42')]=qs[_0xfd54c6('0x33')](_0x2f1152[_0xfd54c6('0x31')][_0xfd54c6('0x33')]),_0xd770bf[_0xfd54c6('0x16')]=qs['filters'](_[_0xfd54c6('0x17')](_0x2f1152[_0xfd54c6('0x31')],_0x4e7fe1[_0xfd54c6('0x5c')])),_0x2f1152[_0xfd54c6('0x31')][_0xfd54c6('0x56')]&&(_0xd770bf[_0xfd54c6('0x16')]=_[_0xfd54c6('0x8')](_0xd770bf[_0xfd54c6('0x16')],{[Op['or']]:_[_0xfd54c6('0x4d')](_0xd770bf[_0xfd54c6('0x1e')],function(_0x4245b1){const _0x15433e=_0xfd54c6,_0x18752d={};return _0x18752d[_0x4245b1]={[Op[_0x15433e('0x51')]]:'%'+_0x2f1152[_0x15433e('0x31')]['filter']+'%'},_0x18752d;})})),_0xd770bf=_[_0xfd54c6('0x8')]({},_0xd770bf,_0x2f1152['options']),_0x33b058[_0xfd54c6('0x41')](_0xd770bf);})[_0x18fe77('0x34')](function(_0x392d48){const _0x3ede56=_0x18fe77;if(_0x392d48)return _0x2fb29b=_0x392d48[_0x3ede56('0x65')],typeof _0x2f1152[_0x3ede56('0x31')][_0x3ede56('0x26')]===_0x3ede56('0x6f')&&(_0xd770bf[_0x3ede56('0x6c')]=qs[_0x3ede56('0x6c')](_0x2f1152[_0x3ede56('0x31')][_0x3ede56('0x6c')]),_0xd770bf['offset']=qs[_0x3ede56('0x37')](_0x2f1152['query'][_0x3ede56('0x37')])),_0x33b058[_0x3ede56('0x41')](_0xd770bf);})[_0x18fe77('0x34')](function(_0x2d78c3){if(_0x2d78c3)return _0x2d78c3?{'count':_0x2fb29b,'rows':_0x2d78c3}:null;})[_0x18fe77('0x34')](respondWithResult(_0x442620,null))[_0x18fe77('0x5e')](handleError(_0x442620,null));}; \ No newline at end of file diff --git a/server/api/cmList/cmList.events.js b/server/api/cmList/cmList.events.js index 7684f34..f210823 100644 --- a/server/api/cmList/cmList.events.js +++ b/server/api/cmList/cmList.events.js @@ -1 +1 @@ -const a158_0x1377=['remove','../../mysqldb','setMaxListeners','emit','save','CmList','events','exports'];(function(_0x5839d4,_0x1377e2){const _0x336a47=function(_0x612357){while(--_0x612357){_0x5839d4['push'](_0x5839d4['shift']());}};_0x336a47(++_0x1377e2);}(a158_0x1377,0x11b));const a158_0x336a=function(_0x5839d4,_0x1377e2){_0x5839d4=_0x5839d4-0x0;let _0x336a47=a158_0x1377[_0x5839d4];return _0x336a47;};const _0x48061a=a158_0x336a;'use strict';const EventEmitter=require(_0x48061a('0x3')),CmList=require(_0x48061a('0x6'))['db'][_0x48061a('0x2')],CmListEvents=new EventEmitter();CmListEvents[_0x48061a('0x7')](0x0);const events={'afterCreate':_0x48061a('0x1'),'afterUpdate':'update','afterDestroy':_0x48061a('0x5')};function emitEvent(_0x612357){return function(_0x38af52){const _0x32e4ad=a158_0x336a;CmListEvents[_0x32e4ad('0x0')](_0x612357+':'+_0x38af52['id'],_0x38af52),CmListEvents[_0x32e4ad('0x0')](_0x612357,_0x38af52);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];CmList['addHook'](e,emitEvent(event));}}module[_0x48061a('0x4')]=CmListEvents; \ No newline at end of file +const a158_0x2427=['update','events','remove','../../mysqldb','setMaxListeners','exports','addHook','CmList','undefined'];(function(_0x37eb69,_0x2427ab){const _0x131c0f=function(_0x2868ab){while(--_0x2868ab){_0x37eb69['push'](_0x37eb69['shift']());}};_0x131c0f(++_0x2427ab);}(a158_0x2427,0x8a));const a158_0x131c=function(_0x37eb69,_0x2427ab){_0x37eb69=_0x37eb69-0x0;let _0x131c0f=a158_0x2427[_0x37eb69];return _0x131c0f;};const _0x4d4eac=a158_0x131c;'use strict';const EventEmitter=require(_0x4d4eac('0x7')),CmList=require(_0x4d4eac('0x0'))['db'][_0x4d4eac('0x4')],CmListEvents=new EventEmitter();CmListEvents[_0x4d4eac('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x4d4eac('0x6'),'afterDestroy':_0x4d4eac('0x8')};function emitEvent(_0x2868ab){return function(_0x59ce4a){CmListEvents['emit'](_0x2868ab+':'+_0x59ce4a['id'],_0x59ce4a),CmListEvents['emit'](_0x2868ab,_0x59ce4a);};}for(const e in events){if(typeof events[e]!==_0x4d4eac('0x5')){const event=events[e];CmList[_0x4d4eac('0x3')](e,emitEvent(event));}}module[_0x4d4eac('0x2')]=CmListEvents; \ No newline at end of file diff --git a/server/api/cmList/cmList.model.js b/server/api/cmList/cmList.model.js index e75620e..1cd7a14 100644 --- a/server/api/cmList/cmList.model.js +++ b/server/api/cmList/cmList.model.js @@ -1 +1 @@ -const a159_0x5c1c=['cm_lists','./cmList.attributes','define'];(function(_0x3cb606,_0x5c1c73){const _0xc2842b=function(_0x5bd0b4){while(--_0x5bd0b4){_0x3cb606['push'](_0x3cb606['shift']());}};_0xc2842b(++_0x5c1c73);}(a159_0x5c1c,0x148));const a159_0xc284=function(_0x3cb606,_0x5c1c73){_0x3cb606=_0x3cb606-0x0;let _0xc2842b=a159_0x5c1c[_0x3cb606];return _0xc2842b;};const _0x21194e=a159_0xc284;'use strict';const attributes=require(_0x21194e('0x0'));module['exports']=function(_0x5bd0b4){const _0x4bc996=_0x21194e,_0x514698=_0x5bd0b4[_0x4bc996('0x1')]('CmList',attributes,{'tableName':_0x4bc996('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x514698;}; \ No newline at end of file +const a159_0x4aff=['CmList','cm_lists','define'];(function(_0xb0e750,_0x4affd3){const _0x3054b7=function(_0x52622f){while(--_0x52622f){_0xb0e750['push'](_0xb0e750['shift']());}};_0x3054b7(++_0x4affd3);}(a159_0x4aff,0x69));const a159_0x3054=function(_0xb0e750,_0x4affd3){_0xb0e750=_0xb0e750-0x0;let _0x3054b7=a159_0x4aff[_0xb0e750];return _0x3054b7;};'use strict';const attributes=require('./cmList.attributes');module['exports']=function(_0x52622f){const _0xde090d=a159_0x3054,_0x5bb5b8=_0x52622f[_0xde090d('0x2')](_0xde090d('0x0'),attributes,{'tableName':_0xde090d('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5bb5b8;}; \ No newline at end of file diff --git a/server/api/cmList/cmList.rpc.js b/server/api/cmList/cmList.rpc.js index 939b85c..0b6f39e 100644 --- a/server/api/cmList/cmList.rpc.js +++ b/server/api/cmList/cmList.rpc.js @@ -1 +1 @@ -const a160_0x6d9f=['register','../../rediscache','./cmList.socket'];(function(_0x4c7ac8,_0x6d9fb2){const _0x3dc03e=function(_0x21bdd9){while(--_0x21bdd9){_0x4c7ac8['push'](_0x4c7ac8['shift']());}};_0x3dc03e(++_0x6d9fb2);}(a160_0x6d9f,0xb1));const a160_0x3dc0=function(_0x4c7ac8,_0x6d9fb2){_0x4c7ac8=_0x4c7ac8-0x0;let _0x3dc03e=a160_0x6d9f[_0x4c7ac8];return _0x3dc03e;};const _0x55d6e4=a160_0x3dc0;'use strict';const {getSocket}=require(_0x55d6e4('0x1')),socket=getSocket();require(_0x55d6e4('0x2'))[_0x55d6e4('0x0')](socket); \ No newline at end of file +const a160_0xf561=['../../rediscache','./cmList.socket','register'];(function(_0x5aff30,_0xf56152){const _0x538827=function(_0x477537){while(--_0x477537){_0x5aff30['push'](_0x5aff30['shift']());}};_0x538827(++_0xf56152);}(a160_0xf561,0x1c9));const a160_0x5388=function(_0x5aff30,_0xf56152){_0x5aff30=_0x5aff30-0x0;let _0x538827=a160_0xf561[_0x5aff30];return _0x538827;};const _0x155f16=a160_0x5388;'use strict';const {getSocket}=require(_0x155f16('0x2')),socket=getSocket();require(_0x155f16('0x0'))[_0x155f16('0x1')](socket); \ No newline at end of file diff --git a/server/api/cmList/cmList.socket.js b/server/api/cmList/cmList.socket.js index 339d748..d81eabf 100644 --- a/server/api/cmList/cmList.socket.js +++ b/server/api/cmList/cmList.socket.js @@ -1 +1 @@ -const a161_0xf7bc=['length','./cmList.events','register','update','remove','emit','cmList:'];(function(_0x5cad2a,_0xf7bc10){const _0x2e7551=function(_0x386c7d){while(--_0x386c7d){_0x5cad2a['push'](_0x5cad2a['shift']());}};_0x2e7551(++_0xf7bc10);}(a161_0xf7bc,0x170));const a161_0x2e75=function(_0x5cad2a,_0xf7bc10){_0x5cad2a=_0x5cad2a-0x0;let _0x2e7551=a161_0xf7bc[_0x5cad2a];return _0x2e7551;};const _0x1e79eb=a161_0x2e75;'use strict';const CmListEvents=require(_0x1e79eb('0x4')),events=['save',_0x1e79eb('0x0'),_0x1e79eb('0x6')];function createListener(_0x386c7d,_0x53344b){return function(_0x21312a){const _0x486835=a161_0x2e75;_0x53344b[_0x486835('0x1')](_0x386c7d,_0x21312a);};}exports[_0x1e79eb('0x5')]=function(_0x2ad602){const _0x35819e=_0x1e79eb;for(let _0x1e1e04=0x0,_0x409ef5=events[_0x35819e('0x3')];_0x1e1e04<_0x409ef5;_0x1e1e04++){const _0x5562e2=events[_0x1e1e04],_0xa1636a=createListener(_0x35819e('0x2')+_0x5562e2,_0x2ad602);CmListEvents['on'](_0x5562e2,_0xa1636a);}}; \ No newline at end of file +const a161_0x31d0=['update','register','cmList:','emit','remove'];(function(_0x566bb0,_0x31d0b4){const _0x509094=function(_0x5310b7){while(--_0x5310b7){_0x566bb0['push'](_0x566bb0['shift']());}};_0x509094(++_0x31d0b4);}(a161_0x31d0,0xc6));const a161_0x5090=function(_0x566bb0,_0x31d0b4){_0x566bb0=_0x566bb0-0x0;let _0x509094=a161_0x31d0[_0x566bb0];return _0x509094;};const _0x2a4722=a161_0x5090;'use strict';const CmListEvents=require('./cmList.events'),events=['save',_0x2a4722('0x1'),_0x2a4722('0x2')];function createListener(_0x5310b7,_0x3ed712){return function(_0x375329){const _0x571fbe=a161_0x5090;_0x3ed712[_0x571fbe('0x0')](_0x5310b7,_0x375329);};}exports[_0x2a4722('0x3')]=function(_0x238715){const _0x4fc8cb=_0x2a4722;for(let _0x3de2fa=0x0,_0x1303ab=events['length'];_0x3de2fa<_0x1303ab;_0x3de2fa++){const _0x48ee1e=events[_0x3de2fa],_0x2fcf5b=createListener(_0x4fc8cb('0x4')+_0x48ee1e,_0x238715);CmListEvents['on'](_0x48ee1e,_0x2fcf5b);}}; \ No newline at end of file diff --git a/server/api/cmList/index.js b/server/api/cmList/index.js index c302b87..01e880e 100644 --- a/server/api/cmList/index.js +++ b/server/api/cmList/index.js @@ -1 +1 @@ -const a162_0x344a=['./cmList.controller','post','getCustomFields','describe','addCustomField','destroy','addAgents','getContacts','create','/describe','/:id/contacts','/:id/dispositions','Router','put','/:id','../../components/auth/service','removeDispositions','isAuthenticated','express','/:id/fields','show','getDispositions','getAgents','addDisposition','get','/:id/contacts/csv','delete','/:id/users'];(function(_0x525bce,_0x344a43){const _0x6933a8=function(_0x186b53){while(--_0x186b53){_0x525bce['push'](_0x525bce['shift']());}};_0x6933a8(++_0x344a43);}(a162_0x344a,0x116));const a162_0x6933=function(_0x525bce,_0x344a43){_0x525bce=_0x525bce-0x0;let _0x6933a8=a162_0x344a[_0x525bce];return _0x6933a8;};const _0xc51575=a162_0x6933;'use strict';const express=require(_0xc51575('0x14')),router=express[_0xc51575('0xe')](),auth=require(_0xc51575('0x11')),controller=require(_0xc51575('0x2'));router[_0xc51575('0x1a')]('/',auth[_0xc51575('0x13')](),controller['index']),router[_0xc51575('0x1a')](_0xc51575('0xb'),auth[_0xc51575('0x13')](),controller[_0xc51575('0x5')]),router[_0xc51575('0x1a')](_0xc51575('0x10'),auth[_0xc51575('0x13')](),controller[_0xc51575('0x16')]),router[_0xc51575('0x1a')]('/:id/dispositions',auth[_0xc51575('0x13')](),controller[_0xc51575('0x17')]),router['get'](_0xc51575('0xc'),auth[_0xc51575('0x13')](),controller[_0xc51575('0x9')]),router[_0xc51575('0x1a')](_0xc51575('0x1b'),auth[_0xc51575('0x13')](),controller['getContactsCsv']),router[_0xc51575('0x1a')]('/:id/fields',auth[_0xc51575('0x13')](),controller[_0xc51575('0x4')]),router[_0xc51575('0x1a')](_0xc51575('0x1'),auth['isAuthenticated'](),controller[_0xc51575('0x18')]),router[_0xc51575('0x3')]('/',auth[_0xc51575('0x13')](),controller[_0xc51575('0xa')]),router[_0xc51575('0x3')](_0xc51575('0xd'),auth[_0xc51575('0x13')](),controller[_0xc51575('0x19')]),router['post'](_0xc51575('0xc'),auth['isAuthenticated'](),controller['addContacts']),router[_0xc51575('0x3')](_0xc51575('0x15'),auth[_0xc51575('0x13')](),controller[_0xc51575('0x6')]),router[_0xc51575('0x3')](_0xc51575('0x1'),auth['isAuthenticated'](),controller[_0xc51575('0x8')]),router[_0xc51575('0xf')](_0xc51575('0x10'),auth[_0xc51575('0x13')](),controller['update']),router[_0xc51575('0x0')]('/:id',auth['isAuthenticated'](),controller[_0xc51575('0x7')]),router[_0xc51575('0x0')](_0xc51575('0xd'),auth[_0xc51575('0x13')](),controller[_0xc51575('0x12')]),router[_0xc51575('0x0')](_0xc51575('0x1'),auth[_0xc51575('0x13')](),controller['removeAgents']),module['exports']=router; \ No newline at end of file +const a162_0x1236=['destroy','delete','/:id/contacts','getAgents','/:id/dispositions','/:id','../../components/auth/service','/:id/contacts/csv','/:id/users','Router','addCustomField','removeDispositions','update','getDispositions','getContacts','isAuthenticated','describe','addAgents','get','create','show','/:id/fields','./cmList.controller','post'];(function(_0x4161ff,_0x123657){const _0x365269=function(_0x4bfb14){while(--_0x4bfb14){_0x4161ff['push'](_0x4161ff['shift']());}};_0x365269(++_0x123657);}(a162_0x1236,0x1d9));const a162_0x3652=function(_0x4161ff,_0x123657){_0x4161ff=_0x4161ff-0x0;let _0x365269=a162_0x1236[_0x4161ff];return _0x365269;};const _0x55a899=a162_0x3652;'use strict';const express=require('express'),router=express[_0x55a899('0x10')](),auth=require(_0x55a899('0xd')),controller=require(_0x55a899('0x5'));router[_0x55a899('0x1')]('/',auth['isAuthenticated'](),controller['index']),router[_0x55a899('0x1')]('/describe',auth[_0x55a899('0x16')](),controller[_0x55a899('0x17')]),router[_0x55a899('0x1')](_0x55a899('0xc'),auth[_0x55a899('0x16')](),controller[_0x55a899('0x3')]),router[_0x55a899('0x1')]('/:id/dispositions',auth['isAuthenticated'](),controller[_0x55a899('0x14')]),router[_0x55a899('0x1')]('/:id/contacts',auth['isAuthenticated'](),controller[_0x55a899('0x15')]),router[_0x55a899('0x1')](_0x55a899('0xe'),auth[_0x55a899('0x16')](),controller['getContactsCsv']),router[_0x55a899('0x1')](_0x55a899('0x4'),auth['isAuthenticated'](),controller['getCustomFields']),router[_0x55a899('0x1')](_0x55a899('0xf'),auth[_0x55a899('0x16')](),controller[_0x55a899('0xa')]),router[_0x55a899('0x6')]('/',auth['isAuthenticated'](),controller[_0x55a899('0x2')]),router[_0x55a899('0x6')](_0x55a899('0xb'),auth[_0x55a899('0x16')](),controller['addDisposition']),router[_0x55a899('0x6')](_0x55a899('0x9'),auth[_0x55a899('0x16')](),controller['addContacts']),router[_0x55a899('0x6')]('/:id/fields',auth[_0x55a899('0x16')](),controller[_0x55a899('0x11')]),router[_0x55a899('0x6')](_0x55a899('0xf'),auth[_0x55a899('0x16')](),controller[_0x55a899('0x0')]),router['put'](_0x55a899('0xc'),auth[_0x55a899('0x16')](),controller[_0x55a899('0x13')]),router[_0x55a899('0x8')](_0x55a899('0xc'),auth[_0x55a899('0x16')](),controller[_0x55a899('0x7')]),router[_0x55a899('0x8')](_0x55a899('0xb'),auth[_0x55a899('0x16')](),controller[_0x55a899('0x12')]),router[_0x55a899('0x8')](_0x55a899('0xf'),auth[_0x55a899('0x16')](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/condition/condition.attributes.js b/server/api/condition/condition.attributes.js index 34085cb..7c6c107 100644 --- a/server/api/condition/condition.attributes.js +++ b/server/api/condition/condition.attributes.js @@ -1 +1 @@ -const a163_0x25eb=['VIRTUAL','exports','sequelize','STRING','getDataValue','field'];(function(_0x5b7a0a,_0x25ebaf){const _0x4a39ce=function(_0xd6df70){while(--_0xd6df70){_0x5b7a0a['push'](_0x5b7a0a['shift']());}};_0x4a39ce(++_0x25ebaf);}(a163_0x25eb,0xcf));const a163_0x4a39=function(_0x5b7a0a,_0x25ebaf){_0x5b7a0a=_0x5b7a0a-0x0;let _0x4a39ce=a163_0x25eb[_0x5b7a0a];return _0x4a39ce;};const _0x1d08f1=a163_0x4a39;'use strict';const Sequelize=require(_0x1d08f1('0x5'));module[_0x1d08f1('0x4')]={'name':{'type':Sequelize[_0x1d08f1('0x3')],'get':function(){const _0xf1574d=_0x1d08f1;return this[_0xf1574d('0x1')](_0xf1574d('0x2'));}},'field':{'type':Sequelize['STRING'],'allowNull':![]},'operator':{'type':Sequelize[_0x1d08f1('0x0')],'allowNull':![]},'value':{'type':Sequelize[_0x1d08f1('0x0')],'allowNull':![]}}; \ No newline at end of file +const a163_0x2f6d=['getDataValue','VIRTUAL','field','STRING'];(function(_0x13d21f,_0x2f6db6){const _0x475812=function(_0x5e4bc0){while(--_0x5e4bc0){_0x13d21f['push'](_0x13d21f['shift']());}};_0x475812(++_0x2f6db6);}(a163_0x2f6d,0x1d7));const a163_0x4758=function(_0x13d21f,_0x2f6db6){_0x13d21f=_0x13d21f-0x0;let _0x475812=a163_0x2f6d[_0x13d21f];return _0x475812;};const _0x9728a2=a163_0x4758;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x9728a2('0x2')],'get':function(){const _0x57b140=_0x9728a2;return this[_0x57b140('0x1')](_0x57b140('0x3'));}},'field':{'type':Sequelize[_0x9728a2('0x0')],'allowNull':![]},'operator':{'type':Sequelize[_0x9728a2('0x0')],'allowNull':![]},'value':{'type':Sequelize[_0x9728a2('0x0')],'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/condition/condition.controller.js b/server/api/condition/condition.controller.js index b0abc0f..00099cf 100644 --- a/server/api/condition/condition.controller.js +++ b/server/api/condition/condition.controller.js @@ -1 +1 @@ -const a164_0x1fb1=['api','end','params','status','destroy','then','catch','update','error','body','findOne','../../config/logger','send','stack','name'];(function(_0x164e2f,_0x1fb1fd){const _0x576b26=function(_0x5b5e56){while(--_0x5b5e56){_0x164e2f['push'](_0x164e2f['shift']());}};_0x576b26(++_0x1fb1fd);}(a164_0x1fb1,0x143));const a164_0x576b=function(_0x164e2f,_0x1fb1fd){_0x164e2f=_0x164e2f-0x0;let _0x576b26=a164_0x1fb1[_0x164e2f];return _0x576b26;};const _0x43c9aa=a164_0x576b;'use strict';const logger=require(_0x43c9aa('0x3'))(_0x43c9aa('0x7')),db=require('../../mysqldb')['db'];function respondWithResult(_0x5b5e56,_0x40d353){return _0x40d353=_0x40d353||0xc8,function(_0x30cebb){const _0xa8fea5=a164_0x576b;if(_0x30cebb)return _0x5b5e56[_0xa8fea5('0xa')](_0x40d353)['json'](_0x30cebb);};}function saveUpdates(_0x2b7560){return function(_0x16042b){const _0x2c76e6=a164_0x576b;if(_0x16042b)return _0x16042b[_0x2c76e6('0xe')](_0x2b7560)['then'](function(_0x3bea97){return _0x3bea97;});return null;};}function removeEntity(_0x29889d){return function(_0x38b3e1){const _0x1c7834=a164_0x576b;if(_0x38b3e1)return _0x38b3e1[_0x1c7834('0xb')]()[_0x1c7834('0xc')](function(){const _0x5915e9=_0x1c7834;_0x29889d[_0x5915e9('0xa')](0xcc)[_0x5915e9('0x8')]();});};}function handleEntityNotFound(_0x3538ec){return function(_0x23f161){return!_0x23f161&&_0x3538ec['sendStatus'](0x194),_0x23f161;};}function handleError(_0x3a1947,_0x2eaee0){return _0x2eaee0=_0x2eaee0||0x1f4,function(_0x1f89b4){const _0x4053e7=a164_0x576b;logger[_0x4053e7('0x0')](_0x1f89b4[_0x4053e7('0x5')]),_0x1f89b4[_0x4053e7('0x6')]&&delete _0x1f89b4['name'],_0x3a1947[_0x4053e7('0xa')](_0x2eaee0)[_0x4053e7('0x4')](_0x1f89b4);};}exports[_0x43c9aa('0xe')]=function(_0x26fae4,_0x52aabc){const _0x291dcd=_0x43c9aa;return _0x26fae4[_0x291dcd('0x1')]['id']&&delete _0x26fae4['body']['id'],db['Condition']['findOne']({'where':{'id':_0x26fae4['params']['id']}})['then'](handleEntityNotFound(_0x52aabc,null))[_0x291dcd('0xc')](saveUpdates(_0x26fae4['body'],null))['then'](respondWithResult(_0x52aabc,null))['catch'](handleError(_0x52aabc,null));},exports['destroy']=function(_0x395049,_0xc63b5c){const _0x3014ea=_0x43c9aa;return db['Condition'][_0x3014ea('0x2')]({'where':{'id':_0x395049[_0x3014ea('0x9')]['id']}})[_0x3014ea('0xc')](handleEntityNotFound(_0xc63b5c,null))['then'](removeEntity(_0xc63b5c,null))[_0x3014ea('0xd')](handleError(_0xc63b5c,null));}; \ No newline at end of file +const a164_0x4a4b=['Condition','json','body','then','status','end','findOne','destroy','update','error','../../mysqldb','catch','send','params','name','stack','../../config/logger'];(function(_0x2272e0,_0x4a4b95){const _0x22a3bd=function(_0x7f668){while(--_0x7f668){_0x2272e0['push'](_0x2272e0['shift']());}};_0x22a3bd(++_0x4a4b95);}(a164_0x4a4b,0x79));const a164_0x22a3=function(_0x2272e0,_0x4a4b95){_0x2272e0=_0x2272e0-0x0;let _0x22a3bd=a164_0x4a4b[_0x2272e0];return _0x22a3bd;};const _0x12d88f=a164_0x22a3;'use strict';const logger=require(_0x12d88f('0xe'))('api'),db=require(_0x12d88f('0x8'))['db'];function respondWithResult(_0x7f668,_0x3f0588){return _0x3f0588=_0x3f0588||0xc8,function(_0x5eee66){const _0x503369=a164_0x22a3;if(_0x5eee66)return _0x7f668[_0x503369('0x2')](_0x3f0588)[_0x503369('0x10')](_0x5eee66);};}function saveUpdates(_0x2a7c8d){return function(_0x5104f1){const _0x2bbff3=a164_0x22a3;if(_0x5104f1)return _0x5104f1[_0x2bbff3('0x6')](_0x2a7c8d)['then'](function(_0x2344c1){return _0x2344c1;});return null;};}function removeEntity(_0x7ddfec){return function(_0x1d533d){const _0xb54c8=a164_0x22a3;if(_0x1d533d)return _0x1d533d[_0xb54c8('0x5')]()[_0xb54c8('0x1')](function(){const _0x178570=_0xb54c8;_0x7ddfec[_0x178570('0x2')](0xcc)[_0x178570('0x3')]();});};}function handleEntityNotFound(_0x19f277){return function(_0x2d6de3){return!_0x2d6de3&&_0x19f277['sendStatus'](0x194),_0x2d6de3;};}function handleError(_0x283fe6,_0x41ffd8){return _0x41ffd8=_0x41ffd8||0x1f4,function(_0x5c5c99){const _0xea372d=a164_0x22a3;logger[_0xea372d('0x7')](_0x5c5c99[_0xea372d('0xd')]),_0x5c5c99[_0xea372d('0xc')]&&delete _0x5c5c99['name'],_0x283fe6['status'](_0x41ffd8)[_0xea372d('0xa')](_0x5c5c99);};}exports['update']=function(_0x420b14,_0x3b67ab){const _0x7f1339=_0x12d88f;return _0x420b14[_0x7f1339('0x0')]['id']&&delete _0x420b14[_0x7f1339('0x0')]['id'],db[_0x7f1339('0xf')][_0x7f1339('0x4')]({'where':{'id':_0x420b14[_0x7f1339('0xb')]['id']}})[_0x7f1339('0x1')](handleEntityNotFound(_0x3b67ab,null))[_0x7f1339('0x1')](saveUpdates(_0x420b14[_0x7f1339('0x0')],null))[_0x7f1339('0x1')](respondWithResult(_0x3b67ab,null))[_0x7f1339('0x9')](handleError(_0x3b67ab,null));},exports[_0x12d88f('0x5')]=function(_0x3fac91,_0x223678){const _0x58a7d8=_0x12d88f;return db[_0x58a7d8('0xf')][_0x58a7d8('0x4')]({'where':{'id':_0x3fac91[_0x58a7d8('0xb')]['id']}})['then'](handleEntityNotFound(_0x223678,null))['then'](removeEntity(_0x223678,null))['catch'](handleError(_0x223678,null));}; \ No newline at end of file diff --git a/server/api/condition/condition.model.js b/server/api/condition/condition.model.js index 4e24ef7..98e577d 100644 --- a/server/api/condition/condition.model.js +++ b/server/api/condition/condition.model.js @@ -1 +1 @@ -const a165_0x4376=['exports','Condition','./condition.attributes','define'];(function(_0x4581fd,_0x437607){const _0x417437=function(_0x581c0a){while(--_0x581c0a){_0x4581fd['push'](_0x4581fd['shift']());}};_0x417437(++_0x437607);}(a165_0x4376,0x15e));const a165_0x4174=function(_0x4581fd,_0x437607){_0x4581fd=_0x4581fd-0x0;let _0x417437=a165_0x4376[_0x4581fd];return _0x417437;};const _0x2bb0d1=a165_0x4174;'use strict';const attributes=require(_0x2bb0d1('0x0'));module[_0x2bb0d1('0x2')]=function(_0x581c0a){const _0x321c6a=_0x2bb0d1,_0x4e9762=_0x581c0a[_0x321c6a('0x1')](_0x321c6a('0x3'),attributes,{'tableName':'tools_conditions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4e9762;}; \ No newline at end of file +const a165_0x2bbb=['define','tools_conditions','./condition.attributes','Condition'];(function(_0x26c673,_0x2bbb52){const _0x55a2ea=function(_0x5410ec){while(--_0x5410ec){_0x26c673['push'](_0x26c673['shift']());}};_0x55a2ea(++_0x2bbb52);}(a165_0x2bbb,0x103));const a165_0x55a2=function(_0x26c673,_0x2bbb52){_0x26c673=_0x26c673-0x0;let _0x55a2ea=a165_0x2bbb[_0x26c673];return _0x55a2ea;};const _0x39e021=a165_0x55a2;'use strict';const attributes=require(_0x39e021('0x3'));module['exports']=function(_0x5410ec){const _0x2c8a97=_0x39e021,_0x32bd5a=_0x5410ec[_0x2c8a97('0x1')](_0x2c8a97('0x0'),attributes,{'tableName':_0x2c8a97('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x32bd5a;}; \ No newline at end of file diff --git a/server/api/condition/index.js b/server/api/condition/index.js index b805a42..2d3b921 100644 --- a/server/api/condition/index.js +++ b/server/api/condition/index.js @@ -1 +1 @@ -const a166_0x3805=['isAuthenticated','Router','exports','delete','update','destroy','/:id','./condition.controller'];(function(_0x45d148,_0x38058c){const _0x28f9a1=function(_0x501d6c){while(--_0x501d6c){_0x45d148['push'](_0x45d148['shift']());}};_0x28f9a1(++_0x38058c);}(a166_0x3805,0x1ca));const a166_0x28f9=function(_0x45d148,_0x38058c){_0x45d148=_0x45d148-0x0;let _0x28f9a1=a166_0x3805[_0x45d148];return _0x28f9a1;};const _0xa41f03=a166_0x28f9;'use strict';const express=require('express'),router=express[_0xa41f03('0x7')](),auth=require('../../components/auth/service'),controller=require(_0xa41f03('0x5'));router['put'](_0xa41f03('0x4'),auth[_0xa41f03('0x6')](),controller[_0xa41f03('0x2')]),router[_0xa41f03('0x1')]('/:id',auth[_0xa41f03('0x6')](),controller[_0xa41f03('0x3')]),module[_0xa41f03('0x0')]=router; \ No newline at end of file +const a166_0x23fe=['put','destroy','isAuthenticated','update','Router','express','./condition.controller','delete','../../components/auth/service','/:id'];(function(_0x4a3f15,_0x23fe45){const _0x351014=function(_0x441735){while(--_0x441735){_0x4a3f15['push'](_0x4a3f15['shift']());}};_0x351014(++_0x23fe45);}(a166_0x23fe,0xfc));const a166_0x3510=function(_0x4a3f15,_0x23fe45){_0x4a3f15=_0x4a3f15-0x0;let _0x351014=a166_0x23fe[_0x4a3f15];return _0x351014;};const _0x3e31fc=a166_0x3510;'use strict';const express=require(_0x3e31fc('0x3')),router=express[_0x3e31fc('0x2')](),auth=require(_0x3e31fc('0x6')),controller=require(_0x3e31fc('0x4'));router[_0x3e31fc('0x8')](_0x3e31fc('0x7'),auth[_0x3e31fc('0x0')](),controller[_0x3e31fc('0x1')]),router[_0x3e31fc('0x5')]('/:id',auth[_0x3e31fc('0x0')](),controller[_0x3e31fc('0x9')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.attributes.js b/server/api/dashboard/dashboard.attributes.js index 1df0765..97989c5 100644 --- a/server/api/dashboard/dashboard.attributes.js +++ b/server/api/dashboard/dashboard.attributes.js @@ -1 +1 @@ -const a167_0x383f=['sequelize','STRING','name'];(function(_0x13c58b,_0x383f39){const _0x44f9ee=function(_0x45765a){while(--_0x45765a){_0x13c58b['push'](_0x13c58b['shift']());}};_0x44f9ee(++_0x383f39);}(a167_0x383f,0xb5));const a167_0x44f9=function(_0x13c58b,_0x383f39){_0x13c58b=_0x13c58b-0x0;let _0x44f9ee=a167_0x383f[_0x13c58b];return _0x44f9ee;};const _0x499c85=a167_0x44f9;'use strict';const Sequelize=require(_0x499c85('0x2'));module['exports']={'name':{'type':Sequelize[_0x499c85('0x0')],'allowNull':![],'unique':_0x499c85('0x1')},'description':{'type':Sequelize[_0x499c85('0x0')]}}; \ No newline at end of file +const a167_0x412e=['sequelize','exports','name'];(function(_0x195052,_0x412ecd){const _0x2f5231=function(_0x3670c9){while(--_0x3670c9){_0x195052['push'](_0x195052['shift']());}};_0x2f5231(++_0x412ecd);}(a167_0x412e,0x119));const a167_0x2f52=function(_0x195052,_0x412ecd){_0x195052=_0x195052-0x0;let _0x2f5231=a167_0x412e[_0x195052];return _0x2f5231;};const _0x3c0df1=a167_0x2f52;'use strict';const Sequelize=require(_0x3c0df1('0x1'));module[_0x3c0df1('0x2')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x3c0df1('0x0')},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.controller.js b/server/api/dashboard/dashboard.controller.js index 1f84e0d..1edbd5d 100644 --- a/server/api/dashboard/dashboard.controller.js +++ b/server/api/dashboard/dashboard.controller.js @@ -1 +1 @@ -const a168_0x5a82=['userProfileId','fields','HH:mm:ss','error','get','0.00','Unable\x20to\x20retrieve\x20the\x20current\x20user','clock','attrRefresh','clone','rawAttributes','attrs','includeAll','multibar-chart','create','stack','catch','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../config/logger','attrUrl','query','map','UserProfileResource','options','attrSerie1','pie-chart','name','order','undefined','destroy','updatedAt','findOne','then','attrTimezone','Content-Range','sort','like','createdAt','custom','attrPath','attrVoiceQueues','total','attrSerie3','DashboardItem','getItems','iframe','offset','merge','count','CustomDashboards','attrMetric','include','limit','../../components/parsers/qs','show','update','findAll','where','autoAssociation','../../rediscache','counter','attrFontSize','nolimit','Dashboard','keys','omit','length','pick','VIRTUAL','role','json','user','web-report','key','reportType','params','body','sequelize','type','stringify','intersection','fieldName','rows','index','attributes','status','UserProfileSection','end','filter','filters','attrReport','widgetAttributes:\x20%s','./dashboard.socket','model','https://','value'];(function(_0x3e9d97,_0x5a82e7){const _0x3562bb=function(_0xed277a){while(--_0xed277a){_0x3e9d97['push'](_0x3e9d97['shift']());}};_0x3562bb(++_0x5a82e7);}(a168_0x5a82,0x1a1));const a168_0x3562=function(_0x3e9d97,_0x5a82e7){_0x3e9d97=_0x3e9d97-0x0;let _0x3562bb=a168_0x5a82[_0x3e9d97];return _0x3562bb;};const _0x33ef06=a168_0x3562;'use strict';const _=require('lodash'),qs=require(_0x33ef06('0x14')),logger=require(_0x33ef06('0x51'))('api'),{getSocket}=require(_0x33ef06('0x1a')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require(_0x33ef06('0x2c'));require(_0x33ef06('0x3b'))['register'](socket);function respondWithResult(_0xed277a,_0x5a95ef){return _0x5a95ef=_0x5a95ef||0xc8,function(_0x2732fd){const _0x54b5ee=a168_0x3562;if(_0x2732fd)return _0xed277a[_0x54b5ee('0x34')](_0x5a95ef)[_0x54b5ee('0x25')](_0x2732fd);};}function respondWithFilteredResult(_0x3a6cb0,_0x2d249c){return function(_0x59cc22){const _0x4c8294=a168_0x3562;if(_0x59cc22){const _0xbf10d4=_0x59cc22[_0x4c8294('0xf')],_0x294520=_0x2d249c[_0x4c8294('0xd')];let _0x8d13f=_0x2d249c['offset']+_0x2d249c['limit'],_0x31d11d;return _0x8d13f>=_0xbf10d4?(_0x8d13f=_0xbf10d4,_0x31d11d=0xc8):_0x31d11d=0xce,_0x3a6cb0['status'](_0x31d11d),_0x3a6cb0['set'](_0x4c8294('0x1'),_0x294520+'-'+_0x8d13f+'/'+_0xbf10d4)['json'](_0x59cc22);}return null;};}function saveUpdates(_0xa4df4b){return function(_0x5bb3a6){const _0x47d40b=a168_0x3562;if(_0x5bb3a6)return _0x5bb3a6[_0x47d40b('0x16')](_0xa4df4b)[_0x47d40b('0x5f')](function(_0x52fd98){return _0x52fd98;});return null;};}function removeEntity(_0xcf3d1f){return function(_0x38d736){const _0x56f300=a168_0x3562;if(_0x38d736)return _0x38d736['destroy']()[_0x56f300('0x5f')](function(){const _0x15be24=_0x56f300,_0x42f866=_0x38d736[_0x15be24('0x43')]({'plain':!![]}),_0x447606=_0x15be24('0x10');return db[_0x15be24('0x55')]['destroy']({'where':{'type':_0x447606,'resourceId':_0x42f866['id']}})['then'](function(){return _0x38d736;});})[_0x56f300('0x5f')](function(){const _0x527588=_0x56f300;_0xcf3d1f[_0x527588('0x34')](0xcc)[_0x527588('0x36')]();});};}function handleEntityNotFound(_0x571003){return function(_0x32fbcb){return!_0x32fbcb&&_0x571003['sendStatus'](0x194),_0x32fbcb;};}function handleError(_0x21949f,_0x18f157){return _0x18f157=_0x18f157||0x1f4,function(_0x2e5257){const _0x46f514=a168_0x3562;logger[_0x46f514('0x42')](_0x2e5257[_0x46f514('0x4e')]),_0x2e5257[_0x46f514('0x59')]&&delete _0x2e5257[_0x46f514('0x59')],_0x21949f[_0x46f514('0x34')](_0x18f157)['send'](_0x2e5257);};}exports[_0x33ef06('0x32')]=function(_0x31dd6c,_0xd05f8){const _0x46c44e=_0x33ef06;let _0x7494e4={};const _0x31d1bb={},_0x1dc773={'count':0x0,'rows':[]},_0xea1b1=_[_0x46c44e('0x54')](db[_0x46c44e('0x1e')][_0x46c44e('0x49')],function(_0x17ed4e){const _0x4fe56f=_0x46c44e;return{'name':_0x17ed4e[_0x4fe56f('0x30')],'type':_0x17ed4e['type'][_0x4fe56f('0x28')]};});_0x31d1bb['model']=_[_0x46c44e('0x54')](_0xea1b1,_0x46c44e('0x59')),_0x31d1bb[_0x46c44e('0x53')]=_['keys'](_0x31dd6c[_0x46c44e('0x53')]),_0x31d1bb['filters']=_[_0x46c44e('0x2f')](_0x31d1bb[_0x46c44e('0x3c')],_0x31d1bb[_0x46c44e('0x53')]),_0x7494e4['attributes']=_[_0x46c44e('0x2f')](_0x31d1bb[_0x46c44e('0x3c')],qs[_0x46c44e('0x40')](_0x31dd6c[_0x46c44e('0x53')][_0x46c44e('0x40')])),_0x7494e4['attributes']=_0x7494e4[_0x46c44e('0x33')][_0x46c44e('0x21')]?_0x7494e4['attributes']:_0x31d1bb[_0x46c44e('0x3c')];typeof _0x31dd6c['query']['nolimit']===_0x46c44e('0x5b')&&(_0x7494e4['limit']=qs[_0x46c44e('0x13')](_0x31dd6c[_0x46c44e('0x53')][_0x46c44e('0x13')]),_0x7494e4[_0x46c44e('0xd')]=qs[_0x46c44e('0xd')](_0x31dd6c['query'][_0x46c44e('0xd')]));_0x7494e4[_0x46c44e('0x5a')]=qs['sort'](_0x31dd6c[_0x46c44e('0x53')][_0x46c44e('0x2')]),_0x7494e4[_0x46c44e('0x18')]=qs[_0x46c44e('0x38')](_[_0x46c44e('0x22')](_0x31dd6c[_0x46c44e('0x53')],_0x31d1bb[_0x46c44e('0x38')]),_0xea1b1);_0x31dd6c[_0x46c44e('0x53')]['filter']&&(_0x7494e4[_0x46c44e('0x18')]=_['merge'](_0x7494e4[_0x46c44e('0x18')],{[Op['or']]:_[_0x46c44e('0x54')](_0xea1b1,function(_0x4e4da9){const _0x1b2434=_0x46c44e;if(_0x4e4da9[_0x1b2434('0x2d')]!==_0x1b2434('0x23')){const _0x16b0c6={};return _0x16b0c6[_0x4e4da9[_0x1b2434('0x59')]]={[Op[_0x1b2434('0x3')]]:'%'+_0x31dd6c[_0x1b2434('0x53')][_0x1b2434('0x37')]+'%'},_0x16b0c6;}})}));_0x7494e4=_[_0x46c44e('0xe')]({},_0x7494e4,_0x31dd6c['options']);const _0x36189e={'where':_0x7494e4[_0x46c44e('0x18')]};return db[_0x46c44e('0x1e')]['count'](_0x36189e)['then'](function(_0x1bc718){const _0x5c6538=_0x46c44e;return _0x1dc773['count']=_0x1bc718,_0x31dd6c[_0x5c6538('0x53')][_0x5c6538('0x4b')]&&(_0x7494e4[_0x5c6538('0x12')]=[{'all':!![]}]),db[_0x5c6538('0x1e')][_0x5c6538('0x17')](_0x7494e4);})[_0x46c44e('0x5f')](function(_0xb9a5ee){const _0x17d55f=_0x46c44e;return _0x1dc773[_0x17d55f('0x31')]=_0xb9a5ee,_0x1dc773;})[_0x46c44e('0x5f')](respondWithFilteredResult(_0xd05f8,_0x7494e4))[_0x46c44e('0x4f')](handleError(_0xd05f8,null));},exports[_0x33ef06('0x15')]=function(_0x5729c5,_0x4f117a){const _0x1f5d60=_0x33ef06;let _0x4e2a41={'raw':![],'where':{'id':_0x5729c5['params']['id']}};const _0x2cbeae={};return _0x2cbeae[_0x1f5d60('0x3c')]=_[_0x1f5d60('0x1f')](db[_0x1f5d60('0x1e')][_0x1f5d60('0x49')]),_0x2cbeae[_0x1f5d60('0x53')]=_[_0x1f5d60('0x1f')](_0x5729c5[_0x1f5d60('0x53')]),_0x2cbeae['filters']=_['intersection'](_0x2cbeae['model'],_0x2cbeae['query']),_0x4e2a41[_0x1f5d60('0x33')]=_[_0x1f5d60('0x2f')](_0x2cbeae[_0x1f5d60('0x3c')],qs[_0x1f5d60('0x40')](_0x5729c5[_0x1f5d60('0x53')]['fields'])),_0x4e2a41['attributes']=_0x4e2a41[_0x1f5d60('0x33')][_0x1f5d60('0x21')]?_0x4e2a41[_0x1f5d60('0x33')]:_0x2cbeae[_0x1f5d60('0x3c')],_0x5729c5[_0x1f5d60('0x53')]['includeAll']&&(_0x4e2a41[_0x1f5d60('0x12')]=[{'all':!![]}]),_0x4e2a41=_[_0x1f5d60('0xe')]({},_0x4e2a41,_0x5729c5[_0x1f5d60('0x56')]),db['Dashboard']['findOne'](_0x4e2a41)[_0x1f5d60('0x5f')](handleEntityNotFound(_0x4f117a,null))['then'](respondWithResult(_0x4f117a,null))[_0x1f5d60('0x4f')](handleError(_0x4f117a,null));},exports[_0x33ef06('0x4d')]=function(_0x1e774c,_0x2141a4){const _0x2a7251=_0x33ef06;return db['Dashboard'][_0x2a7251('0x4d')](_0x1e774c[_0x2a7251('0x2b')],{})[_0x2a7251('0x5f')](function(_0x25b349){const _0x40f99d=_0x2a7251,_0x57d29d=_0x1e774c['user'][_0x40f99d('0x43')]({'plain':!![]});if(!_0x57d29d)throw new Error(_0x40f99d('0x45'));if(_0x57d29d['role']===_0x40f99d('0x26')){const _0x48fe9a=_0x25b349[_0x40f99d('0x43')]({'plain':!![]}),_0xd74542=_0x40f99d('0x10');return db[_0x40f99d('0x35')][_0x40f99d('0x5e')]({'where':{'name':_0xd74542,'userProfileId':_0x57d29d[_0x40f99d('0x3f')]},'raw':!![]})[_0x40f99d('0x5f')](function(_0x2915af){const _0x14c93a=_0x40f99d;return _0x2915af&&_0x2915af[_0x14c93a('0x19')]===0x0?db[_0x14c93a('0x55')][_0x14c93a('0x4d')]({'name':_0x48fe9a[_0x14c93a('0x59')],'resourceId':_0x48fe9a['id'],'type':_0x2915af[_0x14c93a('0x59')],'sectionId':_0x2915af['id']},{})[_0x14c93a('0x5f')](function(){return _0x25b349;}):_0x25b349;})['catch'](function(_0x3a742c){const _0xbf24a2=_0x40f99d;logger['error'](_0xbf24a2('0x50'),_0x3a742c);throw _0x3a742c;});}return _0x25b349;})['then'](respondWithResult(_0x2141a4,0xc9))['catch'](handleError(_0x2141a4,null));},exports[_0x33ef06('0x48')]=function(_0x3c1572,_0x26f241){const _0x298005=_0x33ef06;let _0x1f2158={'where':{'id':_0x3c1572['params']['id']}};const _0x254f81={};return _0x254f81['model']=_[_0x298005('0x1f')](db['Dashboard'][_0x298005('0x49')]),_0x1f2158[_0x298005('0x33')]=_[_0x298005('0x2f')](_0x254f81[_0x298005('0x3c')],qs[_0x298005('0x40')](_0x3c1572[_0x298005('0x53')]['fields'])),_0x1f2158[_0x298005('0x33')]=_0x1f2158[_0x298005('0x33')][_0x298005('0x21')]?_0x1f2158[_0x298005('0x33')]:_0x254f81[_0x298005('0x3c')],_0x3c1572[_0x298005('0x53')][_0x298005('0x4b')]&&(_0x1f2158[_0x298005('0x12')]=[{'all':!![]}]),_0x1f2158=_[_0x298005('0xe')]({},_0x1f2158,_0x3c1572[_0x298005('0x56')]),db[_0x298005('0x1e')][_0x298005('0x5e')](_0x1f2158)['then'](handleEntityNotFound(_0x26f241,null))[_0x298005('0x5f')](function(_0x1d2fae){const _0xda807=_0x298005;if(_0x1d2fae){let _0x4f4fae=_0x1d2fae[_0xda807('0x43')]({'plain':!![]});return _0x4f4fae=qs['omit'](_0x4f4fae,['id','createdAt',_0xda807('0x5d')]),_0x3c1572[_0xda807('0x2b')]=_[_0xda807('0x20')](_0x3c1572[_0xda807('0x2b')],['id',_0xda807('0x4'),_0xda807('0x5d')]),db[_0xda807('0x1e')]['create'](_['merge'](_0x4f4fae,_0x3c1572['body']),{'include':_0x3c1572[_0xda807('0x53')][_0xda807('0x4b')]?[{'all':!![]}]:undefined})[_0xda807('0x5f')](function(_0xf41610){const _0x8f4e55=_0xda807,_0x47dfe8=_0x3c1572[_0x8f4e55('0x26')]['get']({'plain':!![]});if(!_0x47dfe8)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x47dfe8[_0x8f4e55('0x24')]===_0x8f4e55('0x26')){const _0x2276b1=_0xf41610[_0x8f4e55('0x43')]({'plain':!![]}),_0x18e53b=_0x8f4e55('0x10');return db[_0x8f4e55('0x35')][_0x8f4e55('0x5e')]({'where':{'name':_0x18e53b,'userProfileId':_0x47dfe8[_0x8f4e55('0x3f')]},'raw':!![]})[_0x8f4e55('0x5f')](function(_0x289bf3){const _0xfbd0b=_0x8f4e55;return _0x289bf3&&_0x289bf3[_0xfbd0b('0x19')]===0x0?db[_0xfbd0b('0x55')]['create']({'name':_0x2276b1[_0xfbd0b('0x59')],'resourceId':_0x2276b1['id'],'type':_0x289bf3['name'],'sectionId':_0x289bf3['id']},{})[_0xfbd0b('0x5f')](function(){return _0xf41610;}):_0xf41610;})[_0x8f4e55('0x4f')](function(_0x62e049){const _0x38d0ea=_0x8f4e55;logger[_0x38d0ea('0x42')](_0x38d0ea('0x50'),_0x62e049);throw _0x62e049;});}return _0xf41610;});}})['then'](respondWithResult(_0x26f241,0xc9))[_0x298005('0x4f')](handleError(_0x26f241,null));},exports['update']=function(_0x1d5c9d,_0x307a95){const _0x170ddc=_0x33ef06;return _0x1d5c9d[_0x170ddc('0x2b')]['id']&&delete _0x1d5c9d[_0x170ddc('0x2b')]['id'],db[_0x170ddc('0x1e')][_0x170ddc('0x5e')]({'where':{'id':_0x1d5c9d[_0x170ddc('0x2a')]['id']}})[_0x170ddc('0x5f')](handleEntityNotFound(_0x307a95,null))[_0x170ddc('0x5f')](saveUpdates(_0x1d5c9d['body'],null))[_0x170ddc('0x5f')](respondWithResult(_0x307a95,null))[_0x170ddc('0x4f')](handleError(_0x307a95,null));},exports[_0x33ef06('0x5c')]=function(_0x44e1cb,_0x13131e){const _0x5b1339=_0x33ef06;return db[_0x5b1339('0x1e')][_0x5b1339('0x5e')]({'where':{'id':_0x44e1cb[_0x5b1339('0x2a')]['id']}})[_0x5b1339('0x5f')](handleEntityNotFound(_0x13131e,null))[_0x5b1339('0x5f')](removeEntity(_0x13131e,null))[_0x5b1339('0x4f')](handleError(_0x13131e,null));};function widgetAttributes(_0x39321e){const _0x41c877=_0x33ef06;try{switch(_0x39321e[_0x41c877('0x2d')]){case _0x41c877('0xc'):return[{'name':_0x41c877('0x52'),'value':_0x39321e[_0x41c877('0x52')]||(_0x39321e['attrs']&&_0x39321e[_0x41c877('0x4a')][0x0]?_0x39321e[_0x41c877('0x4a')][0x0][_0x41c877('0x3e')]:undefined)||_0x41c877('0x3d')}];case _0x41c877('0x5'):return[{'name':_0x41c877('0x6'),'value':_0x39321e[_0x41c877('0x6')]||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e['attrs'][0x0]?_0x39321e[_0x41c877('0x4a')][0x0][_0x41c877('0x3e')]:undefined)||''}];case _0x41c877('0x46'):return[{'name':'attrHourFormat','value':_0x39321e['attrHourFormat']||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e[_0x41c877('0x4a')][0x0]?_0x39321e[_0x41c877('0x4a')][0x0]['value']:undefined)||_0x41c877('0x41')},{'name':_0x41c877('0x0'),'value':_0x39321e[_0x41c877('0x0')]||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e[_0x41c877('0x4a')][0x1]?_0x39321e[_0x41c877('0x4a')][0x1]['value']:undefined)||_0x41c877('0x44')},{'name':'attrFontSize','value':_0x39321e[_0x41c877('0x1c')]||(_0x39321e['attrs']&&_0x39321e[_0x41c877('0x4a')][0x2]?_0x39321e[_0x41c877('0x4a')][0x2][_0x41c877('0x3e')]:undefined)||0xc}];case _0x41c877('0x1b'):return[{'name':_0x41c877('0x11'),'value':_0x39321e[_0x41c877('0x11')]||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e[_0x41c877('0x4a')][0x0]?_0x39321e[_0x41c877('0x4a')][0x0]['value']:undefined)||'total'},{'name':_0x41c877('0x7'),'value':_0x39321e['attrVoiceQueues']||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e[_0x41c877('0x4a')][0x1]?_0x39321e['attrs'][0x1]['value']:undefined)||[]},{'name':_0x41c877('0x1c'),'value':_0x39321e['attrFontSize']||(_0x39321e['attrs']&&_0x39321e[_0x41c877('0x4a')][0x2]?_0x39321e[_0x41c877('0x4a')][0x2][_0x41c877('0x3e')]:undefined)||0x14}];case _0x41c877('0x4c'):case _0x41c877('0x58'):return[{'name':_0x41c877('0x57'),'value':_0x39321e[_0x41c877('0x57')]||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e[_0x41c877('0x4a')][0x0]?_0x39321e['attrs'][0x0]['value']:undefined)||_0x41c877('0x8')},{'name':'attrSerie2','value':_0x39321e['attrSerie2']||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e['attrs'][0x1]?_0x39321e[_0x41c877('0x4a')][0x1][_0x41c877('0x3e')]:undefined)||null},{'name':_0x41c877('0x9'),'value':_0x39321e[_0x41c877('0x9')]||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e[_0x41c877('0x4a')][0x2]?_0x39321e['attrs'][0x2][_0x41c877('0x3e')]:undefined)||null},{'name':'attrVoiceQueues','value':_0x39321e[_0x41c877('0x7')]||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e[_0x41c877('0x4a')][0x3]?_0x39321e[_0x41c877('0x4a')][0x3][_0x41c877('0x3e')]:undefined)||[]}];case _0x41c877('0x27'):return[{'name':_0x41c877('0x39'),'type':_0x39321e[_0x41c877('0x29')]||(_0x39321e['attrs']&&_0x39321e[_0x41c877('0x4a')][0x0]?_0x39321e[_0x41c877('0x4a')][0x0][_0x41c877('0x2d')]:undefined)||null,'value':_0x39321e[_0x41c877('0x39')]||(_0x39321e['attrs']&&_0x39321e['attrs'][0x0]?_0x39321e[_0x41c877('0x4a')][0x0][_0x41c877('0x3e')]:undefined)||null},{'name':_0x41c877('0x47'),'value':_0x39321e[_0x41c877('0x47')]||(_0x39321e[_0x41c877('0x4a')]&&_0x39321e[_0x41c877('0x4a')][0x1]?_0x39321e['attrs'][0x1][_0x41c877('0x3e')]:undefined)||0x0}];default:return[];}}catch(_0x46a0eb){return logger['error'](_0x41c877('0x3a'),JSON[_0x41c877('0x2e')](_0x46a0eb)),[];}}exports['addItem']=function(_0xb2bf2e,_0x404ac3){const _0xfae4d7=_0x33ef06;return _0xb2bf2e[_0xfae4d7('0x2b')]['id']&&delete _0xb2bf2e[_0xfae4d7('0x2b')]['id'],db[_0xfae4d7('0x1e')][_0xfae4d7('0x5e')]({'where':{'id':_0xb2bf2e[_0xfae4d7('0x2a')]['id']}})['then'](handleEntityNotFound(_0x404ac3,null))['then'](function(_0x28a7c0){const _0xbecbe8=_0xfae4d7;if(_0x28a7c0)return _0xb2bf2e[_0xbecbe8('0x2b')]['DashboardId']=_0x28a7c0['id'],_0xb2bf2e[_0xbecbe8('0x2b')][_0xbecbe8('0x4a')]=widgetAttributes(_0xb2bf2e['body']),db['DashboardItem'][_0xbecbe8('0x4d')](_0xb2bf2e[_0xbecbe8('0x2b')]);})['then'](respondWithResult(_0x404ac3,null))[_0xfae4d7('0x4f')](handleError(_0x404ac3,null));},exports[_0x33ef06('0xb')]=function(_0x15999e,_0x5e763f){const _0x3bc590=_0x33ef06;let _0x1c3859={};const _0xac001a={};let _0x7e7a56,_0x4fc387;return db[_0x3bc590('0x1e')][_0x3bc590('0x5e')]({'where':{'id':_0x15999e['params']['id']}})[_0x3bc590('0x5f')](handleEntityNotFound(_0x5e763f,null))['then'](function(_0x2fc1db){const _0x1a34a9=_0x3bc590;if(_0x2fc1db)return _0x7e7a56=_0x2fc1db,_0xac001a[_0x1a34a9('0x3c')]=_[_0x1a34a9('0x1f')](db[_0x1a34a9('0xa')][_0x1a34a9('0x49')]),_0xac001a[_0x1a34a9('0x53')]=_[_0x1a34a9('0x1f')](_0x15999e['query']),_0xac001a[_0x1a34a9('0x38')]=_[_0x1a34a9('0x2f')](_0xac001a['model'],_0xac001a[_0x1a34a9('0x53')]),_0x1c3859[_0x1a34a9('0x33')]=_[_0x1a34a9('0x2f')](_0xac001a[_0x1a34a9('0x3c')],qs[_0x1a34a9('0x40')](_0x15999e[_0x1a34a9('0x53')]['fields'])),_0x1c3859[_0x1a34a9('0x33')]=_0x1c3859[_0x1a34a9('0x33')]['length']?_0x1c3859[_0x1a34a9('0x33')]:_0xac001a[_0x1a34a9('0x3c')],_0x1c3859[_0x1a34a9('0x5a')]=qs[_0x1a34a9('0x2')](_0x15999e[_0x1a34a9('0x53')][_0x1a34a9('0x2')]),_0x1c3859[_0x1a34a9('0x18')]=qs[_0x1a34a9('0x38')](_[_0x1a34a9('0x22')](_0x15999e[_0x1a34a9('0x53')],_0xac001a[_0x1a34a9('0x38')])),_0x15999e['query'][_0x1a34a9('0x37')]&&(_0x1c3859['where']=_[_0x1a34a9('0xe')](_0x1c3859[_0x1a34a9('0x18')],{[Op['or']]:_[_0x1a34a9('0x54')](_0x1c3859['attributes'],function(_0xa4587a){const _0x50c7e0=_0x1a34a9,_0x23b9e0={};return _0x23b9e0[_0xa4587a]={[Op[_0x50c7e0('0x3')]]:'%'+_0x15999e[_0x50c7e0('0x53')][_0x50c7e0('0x37')]+'%'},_0x23b9e0;})})),_0x1c3859=_[_0x1a34a9('0xe')]({},_0x1c3859,_0x15999e[_0x1a34a9('0x56')]),_0x7e7a56['getItems'](_0x1c3859);})[_0x3bc590('0x5f')](function(_0x1838ec){const _0x330d40=_0x3bc590;if(_0x1838ec)return _0x4fc387=_0x1838ec[_0x330d40('0x21')],typeof _0x15999e[_0x330d40('0x53')][_0x330d40('0x1d')]===_0x330d40('0x5b')&&(_0x1c3859[_0x330d40('0x13')]=qs[_0x330d40('0x13')](_0x15999e[_0x330d40('0x53')][_0x330d40('0x13')]),_0x1c3859['offset']=qs[_0x330d40('0xd')](_0x15999e[_0x330d40('0x53')]['offset'])),_0x7e7a56[_0x330d40('0xb')](_0x1c3859);})[_0x3bc590('0x5f')](function(_0x1da338){if(_0x1da338)return _0x1da338?{'count':_0x4fc387,'rows':_0x1da338}:null;})[_0x3bc590('0x5f')](respondWithResult(_0x5e763f,null))[_0x3bc590('0x4f')](handleError(_0x5e763f,null));}; \ No newline at end of file +const a168_0x384c=['https://','fields','like','widgetAttributes:\x20%s','createdAt','create','attrReport','filters','attrTimezone','findOne','updatedAt','user','clock','web-report','fieldName','rows','custom','pick','register','keys','autoAssociation','end','status','attrRefresh','counter','catch','DashboardItem','attributes','HH:mm:ss','rawAttributes','omit','attrs','attrPath','limit','value','undefined','attrSerie1','attrMetric','nolimit','type','../../mysqldb','Content-Range','model','sort','include','options','where','./dashboard.socket','attrSerie3','userProfileId','name','json','UserProfileResource','body','query','key','Unable\x20to\x20retrieve\x20the\x20current\x20user','map','merge','getItems','UserProfileSection','VIRTUAL','intersection','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','params','attrUrl','attrVoiceQueues','../../config/logger','lodash','error','../../rediscache','destroy','addItem','Dashboard','CustomDashboards','total','attrSerie2','sendStatus','attrFontSize','attrHourFormat','index','send','offset','length','pie-chart','order','iframe','then','get','api','includeAll','multibar-chart','count','filter','show','stringify'];(function(_0x5ee9f6,_0x384c14){const _0x964237=function(_0x172b08){while(--_0x172b08){_0x5ee9f6['push'](_0x5ee9f6['shift']());}};_0x964237(++_0x384c14);}(a168_0x384c,0x196));const a168_0x9642=function(_0x5ee9f6,_0x384c14){_0x5ee9f6=_0x5ee9f6-0x0;let _0x964237=a168_0x384c[_0x5ee9f6];return _0x964237;};const _0x14b906=a168_0x9642;'use strict';const _=require(_0x14b906('0x2e')),qs=require('../../components/parsers/qs'),logger=require(_0x14b906('0x2d'))(_0x14b906('0x43')),{getSocket}=require(_0x14b906('0x30')),socket=getSocket(),db=require(_0x14b906('0x12'))['db'],{Op}=require('sequelize');require(_0x14b906('0x19'))[_0x14b906('0x5c')](socket);function respondWithResult(_0x172b08,_0x4ea399){return _0x4ea399=_0x4ea399||0xc8,function(_0x205ad1){const _0x39f029=a168_0x9642;if(_0x205ad1)return _0x172b08[_0x39f029('0x0')](_0x4ea399)[_0x39f029('0x1d')](_0x205ad1);};}function respondWithFilteredResult(_0x30dec0,_0x51ceb8){return function(_0x5ef3b9){const _0x419661=a168_0x9642;if(_0x5ef3b9){const _0x777f0=_0x5ef3b9[_0x419661('0x46')],_0x340f5b=_0x51ceb8[_0x419661('0x3c')];let _0x34d8ad=_0x51ceb8[_0x419661('0x3c')]+_0x51ceb8[_0x419661('0xb')],_0xe94deb;return _0x34d8ad>=_0x777f0?(_0x34d8ad=_0x777f0,_0xe94deb=0xc8):_0xe94deb=0xce,_0x30dec0[_0x419661('0x0')](_0xe94deb),_0x30dec0['set'](_0x419661('0x13'),_0x340f5b+'-'+_0x34d8ad+'/'+_0x777f0)[_0x419661('0x1d')](_0x5ef3b9);}return null;};}function saveUpdates(_0x25efd4){return function(_0xba4a07){const _0x1cf304=a168_0x9642;if(_0xba4a07)return _0xba4a07['update'](_0x25efd4)[_0x1cf304('0x41')](function(_0xeea985){return _0xeea985;});return null;};}function removeEntity(_0x3890de){return function(_0xfb091c){const _0x4bf435=a168_0x9642;if(_0xfb091c)return _0xfb091c[_0x4bf435('0x31')]()['then'](function(){const _0x5d8426=_0x4bf435,_0x1865ad=_0xfb091c['get']({'plain':!![]}),_0x1ef535=_0x5d8426('0x34');return db[_0x5d8426('0x1e')][_0x5d8426('0x31')]({'where':{'type':_0x1ef535,'resourceId':_0x1865ad['id']}})[_0x5d8426('0x41')](function(){return _0xfb091c;});})[_0x4bf435('0x41')](function(){const _0x5bbaf8=_0x4bf435;_0x3890de[_0x5bbaf8('0x0')](0xcc)[_0x5bbaf8('0x5f')]();});};}function handleEntityNotFound(_0x449ab4){return function(_0x3adeb3){const _0x4af517=a168_0x9642;return!_0x3adeb3&&_0x449ab4[_0x4af517('0x37')](0x194),_0x3adeb3;};}function handleError(_0x87d4de,_0x401cc9){return _0x401cc9=_0x401cc9||0x1f4,function(_0x56680e){const _0x15f446=a168_0x9642;logger['error'](_0x56680e['stack']),_0x56680e['name']&&delete _0x56680e[_0x15f446('0x1c')],_0x87d4de[_0x15f446('0x0')](_0x401cc9)[_0x15f446('0x3b')](_0x56680e);};}exports[_0x14b906('0x3a')]=function(_0x2af359,_0x1dbb89){const _0x1699fa=_0x14b906;let _0x235e55={};const _0x46852e={},_0x11540f={'count':0x0,'rows':[]},_0x19d630=_[_0x1699fa('0x23')](db[_0x1699fa('0x33')][_0x1699fa('0x7')],function(_0x56362f){const _0x2ad48e=_0x1699fa;return{'name':_0x56362f[_0x2ad48e('0x58')],'type':_0x56362f[_0x2ad48e('0x11')][_0x2ad48e('0x21')]};});_0x46852e[_0x1699fa('0x14')]=_[_0x1699fa('0x23')](_0x19d630,'name'),_0x46852e[_0x1699fa('0x20')]=_[_0x1699fa('0x5d')](_0x2af359['query']),_0x46852e[_0x1699fa('0x51')]=_[_0x1699fa('0x28')](_0x46852e[_0x1699fa('0x14')],_0x46852e['query']),_0x235e55[_0x1699fa('0x5')]=_['intersection'](_0x46852e['model'],qs[_0x1699fa('0x4b')](_0x2af359[_0x1699fa('0x20')]['fields'])),_0x235e55['attributes']=_0x235e55[_0x1699fa('0x5')][_0x1699fa('0x3d')]?_0x235e55[_0x1699fa('0x5')]:_0x46852e[_0x1699fa('0x14')];typeof _0x2af359[_0x1699fa('0x20')][_0x1699fa('0x10')]===_0x1699fa('0xd')&&(_0x235e55[_0x1699fa('0xb')]=qs[_0x1699fa('0xb')](_0x2af359[_0x1699fa('0x20')]['limit']),_0x235e55[_0x1699fa('0x3c')]=qs[_0x1699fa('0x3c')](_0x2af359[_0x1699fa('0x20')]['offset']));_0x235e55[_0x1699fa('0x3f')]=qs[_0x1699fa('0x15')](_0x2af359[_0x1699fa('0x20')]['sort']),_0x235e55[_0x1699fa('0x18')]=qs[_0x1699fa('0x51')](_[_0x1699fa('0x5b')](_0x2af359['query'],_0x46852e[_0x1699fa('0x51')]),_0x19d630);_0x2af359[_0x1699fa('0x20')]['filter']&&(_0x235e55['where']=_[_0x1699fa('0x24')](_0x235e55[_0x1699fa('0x18')],{[Op['or']]:_[_0x1699fa('0x23')](_0x19d630,function(_0x4bbd32){const _0x529733=_0x1699fa;if(_0x4bbd32[_0x529733('0x11')]!==_0x529733('0x27')){const _0x3518c7={};return _0x3518c7[_0x4bbd32[_0x529733('0x1c')]]={[Op[_0x529733('0x4c')]]:'%'+_0x2af359['query'][_0x529733('0x47')]+'%'},_0x3518c7;}})}));_0x235e55=_['merge']({},_0x235e55,_0x2af359[_0x1699fa('0x17')]);const _0x17fa14={'where':_0x235e55['where']};return db[_0x1699fa('0x33')][_0x1699fa('0x46')](_0x17fa14)[_0x1699fa('0x41')](function(_0x1e739f){const _0xadf851=_0x1699fa;return _0x11540f[_0xadf851('0x46')]=_0x1e739f,_0x2af359[_0xadf851('0x20')]['includeAll']&&(_0x235e55['include']=[{'all':!![]}]),db[_0xadf851('0x33')]['findAll'](_0x235e55);})['then'](function(_0x548778){const _0x218cc8=_0x1699fa;return _0x11540f[_0x218cc8('0x59')]=_0x548778,_0x11540f;})[_0x1699fa('0x41')](respondWithFilteredResult(_0x1dbb89,_0x235e55))[_0x1699fa('0x3')](handleError(_0x1dbb89,null));},exports[_0x14b906('0x48')]=function(_0x45502a,_0x59a9ba){const _0x484104=_0x14b906;let _0x5c7fb2={'raw':![],'where':{'id':_0x45502a[_0x484104('0x2a')]['id']}};const _0x4791bc={};return _0x4791bc['model']=_[_0x484104('0x5d')](db['Dashboard']['rawAttributes']),_0x4791bc[_0x484104('0x20')]=_[_0x484104('0x5d')](_0x45502a[_0x484104('0x20')]),_0x4791bc[_0x484104('0x51')]=_[_0x484104('0x28')](_0x4791bc['model'],_0x4791bc['query']),_0x5c7fb2[_0x484104('0x5')]=_[_0x484104('0x28')](_0x4791bc[_0x484104('0x14')],qs[_0x484104('0x4b')](_0x45502a[_0x484104('0x20')]['fields'])),_0x5c7fb2[_0x484104('0x5')]=_0x5c7fb2[_0x484104('0x5')][_0x484104('0x3d')]?_0x5c7fb2[_0x484104('0x5')]:_0x4791bc[_0x484104('0x14')],_0x45502a[_0x484104('0x20')][_0x484104('0x44')]&&(_0x5c7fb2['include']=[{'all':!![]}]),_0x5c7fb2=_['merge']({},_0x5c7fb2,_0x45502a[_0x484104('0x17')]),db[_0x484104('0x33')][_0x484104('0x53')](_0x5c7fb2)[_0x484104('0x41')](handleEntityNotFound(_0x59a9ba,null))[_0x484104('0x41')](respondWithResult(_0x59a9ba,null))[_0x484104('0x3')](handleError(_0x59a9ba,null));},exports[_0x14b906('0x4f')]=function(_0x3048ab,_0x2f3a81){const _0x16c575=_0x14b906;return db[_0x16c575('0x33')][_0x16c575('0x4f')](_0x3048ab[_0x16c575('0x1f')],{})[_0x16c575('0x41')](function(_0x10f662){const _0x2d99a0=_0x16c575,_0x44caf7=_0x3048ab[_0x2d99a0('0x55')][_0x2d99a0('0x42')]({'plain':!![]});if(!_0x44caf7)throw new Error(_0x2d99a0('0x22'));if(_0x44caf7['role']==='user'){const _0x31eccc=_0x10f662['get']({'plain':!![]}),_0x1d306a=_0x2d99a0('0x34');return db['UserProfileSection'][_0x2d99a0('0x53')]({'where':{'name':_0x1d306a,'userProfileId':_0x44caf7[_0x2d99a0('0x1b')]},'raw':!![]})[_0x2d99a0('0x41')](function(_0x39a5c3){const _0x3a9a63=_0x2d99a0;return _0x39a5c3&&_0x39a5c3[_0x3a9a63('0x5e')]===0x0?db[_0x3a9a63('0x1e')][_0x3a9a63('0x4f')]({'name':_0x31eccc[_0x3a9a63('0x1c')],'resourceId':_0x31eccc['id'],'type':_0x39a5c3['name'],'sectionId':_0x39a5c3['id']},{})[_0x3a9a63('0x41')](function(){return _0x10f662;}):_0x10f662;})[_0x2d99a0('0x3')](function(_0xfaa30d){const _0x4ca8b1=_0x2d99a0;logger[_0x4ca8b1('0x2f')](_0x4ca8b1('0x29'),_0xfaa30d);throw _0xfaa30d;});}return _0x10f662;})[_0x16c575('0x41')](respondWithResult(_0x2f3a81,0xc9))['catch'](handleError(_0x2f3a81,null));},exports['clone']=function(_0x142ed0,_0xe8e29e){const _0x5e0390=_0x14b906;let _0x278c87={'where':{'id':_0x142ed0['params']['id']}};const _0x18f2ad={};return _0x18f2ad[_0x5e0390('0x14')]=_[_0x5e0390('0x5d')](db['Dashboard'][_0x5e0390('0x7')]),_0x278c87[_0x5e0390('0x5')]=_[_0x5e0390('0x28')](_0x18f2ad[_0x5e0390('0x14')],qs['fields'](_0x142ed0[_0x5e0390('0x20')]['fields'])),_0x278c87['attributes']=_0x278c87['attributes'][_0x5e0390('0x3d')]?_0x278c87['attributes']:_0x18f2ad[_0x5e0390('0x14')],_0x142ed0[_0x5e0390('0x20')][_0x5e0390('0x44')]&&(_0x278c87[_0x5e0390('0x16')]=[{'all':!![]}]),_0x278c87=_['merge']({},_0x278c87,_0x142ed0[_0x5e0390('0x17')]),db[_0x5e0390('0x33')][_0x5e0390('0x53')](_0x278c87)[_0x5e0390('0x41')](handleEntityNotFound(_0xe8e29e,null))[_0x5e0390('0x41')](function(_0x395b6c){const _0x282604=_0x5e0390;if(_0x395b6c){let _0x111d33=_0x395b6c[_0x282604('0x42')]({'plain':!![]});return _0x111d33=qs[_0x282604('0x8')](_0x111d33,['id',_0x282604('0x4e'),_0x282604('0x54')]),_0x142ed0[_0x282604('0x1f')]=_[_0x282604('0x8')](_0x142ed0[_0x282604('0x1f')],['id',_0x282604('0x4e'),_0x282604('0x54')]),db['Dashboard']['create'](_['merge'](_0x111d33,_0x142ed0['body']),{'include':_0x142ed0[_0x282604('0x20')][_0x282604('0x44')]?[{'all':!![]}]:undefined})['then'](function(_0x51eb80){const _0x493fa4=_0x282604,_0xcb70dc=_0x142ed0[_0x493fa4('0x55')]['get']({'plain':!![]});if(!_0xcb70dc)throw new Error(_0x493fa4('0x22'));if(_0xcb70dc['role']==='user'){const _0x296779=_0x51eb80['get']({'plain':!![]}),_0xc9f4dc='CustomDashboards';return db[_0x493fa4('0x26')][_0x493fa4('0x53')]({'where':{'name':_0xc9f4dc,'userProfileId':_0xcb70dc['userProfileId']},'raw':!![]})['then'](function(_0x46689a){const _0x25890c=_0x493fa4;return _0x46689a&&_0x46689a[_0x25890c('0x5e')]===0x0?db[_0x25890c('0x1e')][_0x25890c('0x4f')]({'name':_0x296779['name'],'resourceId':_0x296779['id'],'type':_0x46689a[_0x25890c('0x1c')],'sectionId':_0x46689a['id']},{})[_0x25890c('0x41')](function(){return _0x51eb80;}):_0x51eb80;})['catch'](function(_0x351a76){const _0x488939=_0x493fa4;logger[_0x488939('0x2f')](_0x488939('0x29'),_0x351a76);throw _0x351a76;});}return _0x51eb80;});}})[_0x5e0390('0x41')](respondWithResult(_0xe8e29e,0xc9))[_0x5e0390('0x3')](handleError(_0xe8e29e,null));},exports['update']=function(_0x56914f,_0x20c9a5){const _0x499259=_0x14b906;return _0x56914f[_0x499259('0x1f')]['id']&&delete _0x56914f[_0x499259('0x1f')]['id'],db[_0x499259('0x33')][_0x499259('0x53')]({'where':{'id':_0x56914f['params']['id']}})[_0x499259('0x41')](handleEntityNotFound(_0x20c9a5,null))['then'](saveUpdates(_0x56914f[_0x499259('0x1f')],null))['then'](respondWithResult(_0x20c9a5,null))[_0x499259('0x3')](handleError(_0x20c9a5,null));},exports[_0x14b906('0x31')]=function(_0x43efac,_0x2423c2){const _0x67af69=_0x14b906;return db['Dashboard'][_0x67af69('0x53')]({'where':{'id':_0x43efac[_0x67af69('0x2a')]['id']}})[_0x67af69('0x41')](handleEntityNotFound(_0x2423c2,null))[_0x67af69('0x41')](removeEntity(_0x2423c2,null))[_0x67af69('0x3')](handleError(_0x2423c2,null));};function widgetAttributes(_0x5f47eb){const _0x1d3749=_0x14b906;try{switch(_0x5f47eb[_0x1d3749('0x11')]){case _0x1d3749('0x40'):return[{'name':_0x1d3749('0x2b'),'value':_0x5f47eb[_0x1d3749('0x2b')]||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb['attrs'][0x0]?_0x5f47eb[_0x1d3749('0x9')][0x0]['value']:undefined)||_0x1d3749('0x4a')}];case _0x1d3749('0x5a'):return[{'name':_0x1d3749('0xa'),'value':_0x5f47eb[_0x1d3749('0xa')]||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb['attrs'][0x0]?_0x5f47eb[_0x1d3749('0x9')][0x0][_0x1d3749('0xc')]:undefined)||''}];case _0x1d3749('0x56'):return[{'name':_0x1d3749('0x39'),'value':_0x5f47eb['attrHourFormat']||(_0x5f47eb['attrs']&&_0x5f47eb[_0x1d3749('0x9')][0x0]?_0x5f47eb['attrs'][0x0][_0x1d3749('0xc')]:undefined)||_0x1d3749('0x6')},{'name':_0x1d3749('0x52'),'value':_0x5f47eb[_0x1d3749('0x52')]||(_0x5f47eb['attrs']&&_0x5f47eb[_0x1d3749('0x9')][0x1]?_0x5f47eb['attrs'][0x1]['value']:undefined)||'0.00'},{'name':_0x1d3749('0x38'),'value':_0x5f47eb[_0x1d3749('0x38')]||(_0x5f47eb['attrs']&&_0x5f47eb['attrs'][0x2]?_0x5f47eb[_0x1d3749('0x9')][0x2][_0x1d3749('0xc')]:undefined)||0xc}];case _0x1d3749('0x2'):return[{'name':'attrMetric','value':_0x5f47eb[_0x1d3749('0xf')]||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb['attrs'][0x0]?_0x5f47eb[_0x1d3749('0x9')][0x0]['value']:undefined)||_0x1d3749('0x35')},{'name':'attrVoiceQueues','value':_0x5f47eb['attrVoiceQueues']||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb[_0x1d3749('0x9')][0x1]?_0x5f47eb[_0x1d3749('0x9')][0x1][_0x1d3749('0xc')]:undefined)||[]},{'name':_0x1d3749('0x38'),'value':_0x5f47eb[_0x1d3749('0x38')]||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb[_0x1d3749('0x9')][0x2]?_0x5f47eb['attrs'][0x2][_0x1d3749('0xc')]:undefined)||0x14}];case _0x1d3749('0x45'):case _0x1d3749('0x3e'):return[{'name':_0x1d3749('0xe'),'value':_0x5f47eb[_0x1d3749('0xe')]||(_0x5f47eb['attrs']&&_0x5f47eb['attrs'][0x0]?_0x5f47eb[_0x1d3749('0x9')][0x0][_0x1d3749('0xc')]:undefined)||_0x1d3749('0x35')},{'name':_0x1d3749('0x36'),'value':_0x5f47eb[_0x1d3749('0x36')]||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb[_0x1d3749('0x9')][0x1]?_0x5f47eb[_0x1d3749('0x9')][0x1][_0x1d3749('0xc')]:undefined)||null},{'name':_0x1d3749('0x1a'),'value':_0x5f47eb['attrSerie3']||(_0x5f47eb['attrs']&&_0x5f47eb[_0x1d3749('0x9')][0x2]?_0x5f47eb[_0x1d3749('0x9')][0x2][_0x1d3749('0xc')]:undefined)||null},{'name':_0x1d3749('0x2c'),'value':_0x5f47eb[_0x1d3749('0x2c')]||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb[_0x1d3749('0x9')][0x3]?_0x5f47eb[_0x1d3749('0x9')][0x3]['value']:undefined)||[]}];case _0x1d3749('0x57'):return[{'name':_0x1d3749('0x50'),'type':_0x5f47eb['reportType']||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb[_0x1d3749('0x9')][0x0]?_0x5f47eb[_0x1d3749('0x9')][0x0][_0x1d3749('0x11')]:undefined)||null,'value':_0x5f47eb[_0x1d3749('0x50')]||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb['attrs'][0x0]?_0x5f47eb[_0x1d3749('0x9')][0x0]['value']:undefined)||null},{'name':_0x1d3749('0x1'),'value':_0x5f47eb[_0x1d3749('0x1')]||(_0x5f47eb[_0x1d3749('0x9')]&&_0x5f47eb[_0x1d3749('0x9')][0x1]?_0x5f47eb[_0x1d3749('0x9')][0x1][_0x1d3749('0xc')]:undefined)||0x0}];default:return[];}}catch(_0x105942){return logger[_0x1d3749('0x2f')](_0x1d3749('0x4d'),JSON[_0x1d3749('0x49')](_0x105942)),[];}}exports[_0x14b906('0x32')]=function(_0x2db866,_0x1ff747){const _0x1d499b=_0x14b906;return _0x2db866[_0x1d499b('0x1f')]['id']&&delete _0x2db866[_0x1d499b('0x1f')]['id'],db[_0x1d499b('0x33')]['findOne']({'where':{'id':_0x2db866[_0x1d499b('0x2a')]['id']}})[_0x1d499b('0x41')](handleEntityNotFound(_0x1ff747,null))[_0x1d499b('0x41')](function(_0x3d3416){const _0x1d01e4=_0x1d499b;if(_0x3d3416)return _0x2db866[_0x1d01e4('0x1f')]['DashboardId']=_0x3d3416['id'],_0x2db866['body'][_0x1d01e4('0x9')]=widgetAttributes(_0x2db866[_0x1d01e4('0x1f')]),db[_0x1d01e4('0x4')][_0x1d01e4('0x4f')](_0x2db866[_0x1d01e4('0x1f')]);})[_0x1d499b('0x41')](respondWithResult(_0x1ff747,null))['catch'](handleError(_0x1ff747,null));},exports[_0x14b906('0x25')]=function(_0x4c96f6,_0x12a88a){const _0x38435c=_0x14b906;let _0x52e2eb={};const _0x4b78df={};let _0xfb085e,_0xd7f358;return db[_0x38435c('0x33')][_0x38435c('0x53')]({'where':{'id':_0x4c96f6[_0x38435c('0x2a')]['id']}})['then'](handleEntityNotFound(_0x12a88a,null))[_0x38435c('0x41')](function(_0x52bc2f){const _0x5188cd=_0x38435c;if(_0x52bc2f)return _0xfb085e=_0x52bc2f,_0x4b78df['model']=_[_0x5188cd('0x5d')](db[_0x5188cd('0x4')]['rawAttributes']),_0x4b78df[_0x5188cd('0x20')]=_[_0x5188cd('0x5d')](_0x4c96f6[_0x5188cd('0x20')]),_0x4b78df['filters']=_[_0x5188cd('0x28')](_0x4b78df[_0x5188cd('0x14')],_0x4b78df[_0x5188cd('0x20')]),_0x52e2eb[_0x5188cd('0x5')]=_[_0x5188cd('0x28')](_0x4b78df[_0x5188cd('0x14')],qs[_0x5188cd('0x4b')](_0x4c96f6[_0x5188cd('0x20')]['fields'])),_0x52e2eb[_0x5188cd('0x5')]=_0x52e2eb[_0x5188cd('0x5')][_0x5188cd('0x3d')]?_0x52e2eb['attributes']:_0x4b78df[_0x5188cd('0x14')],_0x52e2eb[_0x5188cd('0x3f')]=qs[_0x5188cd('0x15')](_0x4c96f6[_0x5188cd('0x20')][_0x5188cd('0x15')]),_0x52e2eb['where']=qs[_0x5188cd('0x51')](_[_0x5188cd('0x5b')](_0x4c96f6['query'],_0x4b78df['filters'])),_0x4c96f6[_0x5188cd('0x20')][_0x5188cd('0x47')]&&(_0x52e2eb[_0x5188cd('0x18')]=_['merge'](_0x52e2eb[_0x5188cd('0x18')],{[Op['or']]:_[_0x5188cd('0x23')](_0x52e2eb['attributes'],function(_0x1fe8bb){const _0x15d6a7=_0x5188cd,_0x34c5dd={};return _0x34c5dd[_0x1fe8bb]={[Op[_0x15d6a7('0x4c')]]:'%'+_0x4c96f6[_0x15d6a7('0x20')][_0x15d6a7('0x47')]+'%'},_0x34c5dd;})})),_0x52e2eb=_[_0x5188cd('0x24')]({},_0x52e2eb,_0x4c96f6[_0x5188cd('0x17')]),_0xfb085e['getItems'](_0x52e2eb);})[_0x38435c('0x41')](function(_0x127e66){const _0x2e21d9=_0x38435c;if(_0x127e66)return _0xd7f358=_0x127e66['length'],typeof _0x4c96f6[_0x2e21d9('0x20')][_0x2e21d9('0x10')]===_0x2e21d9('0xd')&&(_0x52e2eb[_0x2e21d9('0xb')]=qs['limit'](_0x4c96f6['query'][_0x2e21d9('0xb')]),_0x52e2eb[_0x2e21d9('0x3c')]=qs['offset'](_0x4c96f6['query'][_0x2e21d9('0x3c')])),_0xfb085e[_0x2e21d9('0x25')](_0x52e2eb);})['then'](function(_0x416742){if(_0x416742)return _0x416742?{'count':_0xd7f358,'rows':_0x416742}:null;})[_0x38435c('0x41')](respondWithResult(_0x12a88a,null))[_0x38435c('0x3')](handleError(_0x12a88a,null));}; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.events.js b/server/api/dashboard/dashboard.events.js index 0ccc7be..6c15991 100644 --- a/server/api/dashboard/dashboard.events.js +++ b/server/api/dashboard/dashboard.events.js @@ -1 +1 @@ -const a169_0x566e=['setMaxListeners','../../mysqldb','emit','addHook','remove','events','exports','update','undefined'];(function(_0x2a5b15,_0x566eda){const _0x53ebbf=function(_0x2a63a0){while(--_0x2a63a0){_0x2a5b15['push'](_0x2a5b15['shift']());}};_0x53ebbf(++_0x566eda);}(a169_0x566e,0x1e1));const a169_0x53eb=function(_0x2a5b15,_0x566eda){_0x2a5b15=_0x2a5b15-0x0;let _0x53ebbf=a169_0x566e[_0x2a5b15];return _0x53ebbf;};const _0x56b0b1=a169_0x53eb;'use strict';const EventEmitter=require(_0x56b0b1('0x1')),Dashboard=require(_0x56b0b1('0x6'))['db']['Dashboard'],DashboardEvents=new EventEmitter();DashboardEvents[_0x56b0b1('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':_0x56b0b1('0x3'),'afterDestroy':_0x56b0b1('0x0')};function emitEvent(_0x2a63a0){return function(_0xa51cd){const _0xc0398e=a169_0x53eb;DashboardEvents[_0xc0398e('0x7')](_0x2a63a0+':'+_0xa51cd['id'],_0xa51cd),DashboardEvents[_0xc0398e('0x7')](_0x2a63a0,_0xa51cd);};}for(const e in events){if(typeof events[e]!==_0x56b0b1('0x4')){const event=events[e];Dashboard[_0x56b0b1('0x8')](e,emitEvent(event));}}module[_0x56b0b1('0x2')]=DashboardEvents; \ No newline at end of file +const a169_0x5004=['../../mysqldb','exports','addHook','undefined','remove','setMaxListeners','save','emit','Dashboard','update'];(function(_0x4fbaed,_0x5004d6){const _0x3b894d=function(_0x4e7c95){while(--_0x4e7c95){_0x4fbaed['push'](_0x4fbaed['shift']());}};_0x3b894d(++_0x5004d6);}(a169_0x5004,0x166));const a169_0x3b89=function(_0x4fbaed,_0x5004d6){_0x4fbaed=_0x4fbaed-0x0;let _0x3b894d=a169_0x5004[_0x4fbaed];return _0x3b894d;};const _0x34033d=a169_0x3b89;'use strict';const EventEmitter=require('events'),Dashboard=require(_0x34033d('0x2'))['db'][_0x34033d('0x0')],DashboardEvents=new EventEmitter();DashboardEvents[_0x34033d('0x7')](0x0);const events={'afterCreate':_0x34033d('0x8'),'afterUpdate':_0x34033d('0x1'),'afterDestroy':_0x34033d('0x6')};function emitEvent(_0x4e7c95){return function(_0x44e680){const _0x2626b7=a169_0x3b89;DashboardEvents[_0x2626b7('0x9')](_0x4e7c95+':'+_0x44e680['id'],_0x44e680),DashboardEvents[_0x2626b7('0x9')](_0x4e7c95,_0x44e680);};}for(const e in events){if(typeof events[e]!==_0x34033d('0x5')){const event=events[e];Dashboard[_0x34033d('0x4')](e,emitEvent(event));}}module[_0x34033d('0x3')]=DashboardEvents; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.model.js b/server/api/dashboard/dashboard.model.js index 773f748..d741248 100644 --- a/server/api/dashboard/dashboard.model.js +++ b/server/api/dashboard/dashboard.model.js @@ -1 +1 @@ -const a170_0x1e7f=['Dashboard','exports','dashboards','define'];(function(_0x4e6368,_0x1e7f2c){const _0x5dda43=function(_0x244e25){while(--_0x244e25){_0x4e6368['push'](_0x4e6368['shift']());}};_0x5dda43(++_0x1e7f2c);}(a170_0x1e7f,0x12e));const a170_0x5dda=function(_0x4e6368,_0x1e7f2c){_0x4e6368=_0x4e6368-0x0;let _0x5dda43=a170_0x1e7f[_0x4e6368];return _0x5dda43;};const _0x13b5c2=a170_0x5dda;'use strict';const attributes=require('./dashboard.attributes');module[_0x13b5c2('0x3')]=function(_0x244e25){const _0x42b776=_0x13b5c2,_0x36e0c2=_0x244e25[_0x42b776('0x1')](_0x42b776('0x2'),attributes,{'tableName':_0x42b776('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x36e0c2;}; \ No newline at end of file +const a170_0x36e6=['define','exports','dashboards','./dashboard.attributes','Dashboard'];(function(_0x51c99a,_0x36e6d3){const _0x401046=function(_0x5c77b1){while(--_0x5c77b1){_0x51c99a['push'](_0x51c99a['shift']());}};_0x401046(++_0x36e6d3);}(a170_0x36e6,0x120));const a170_0x4010=function(_0x51c99a,_0x36e6d3){_0x51c99a=_0x51c99a-0x0;let _0x401046=a170_0x36e6[_0x51c99a];return _0x401046;};const _0x4678f5=a170_0x4010;'use strict';const attributes=require(_0x4678f5('0x0'));module[_0x4678f5('0x3')]=function(_0x5c77b1){const _0x5d520f=_0x4678f5,_0x422c5e=_0x5c77b1[_0x5d520f('0x2')](_0x5d520f('0x1'),attributes,{'tableName':_0x5d520f('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x422c5e;}; \ No newline at end of file diff --git a/server/api/dashboard/dashboard.rpc.js b/server/api/dashboard/dashboard.rpc.js index af467b9..eda4366 100644 --- a/server/api/dashboard/dashboard.rpc.js +++ b/server/api/dashboard/dashboard.rpc.js @@ -1 +1 @@ -const a171_0x56c7=['register','./dashboard.socket','../../rediscache'];(function(_0x1cbd91,_0x56c79e){const _0x200034=function(_0x1f1e00){while(--_0x1f1e00){_0x1cbd91['push'](_0x1cbd91['shift']());}};_0x200034(++_0x56c79e);}(a171_0x56c7,0xe6));const a171_0x2000=function(_0x1cbd91,_0x56c79e){_0x1cbd91=_0x1cbd91-0x0;let _0x200034=a171_0x56c7[_0x1cbd91];return _0x200034;};const _0x44f9e2=a171_0x2000;'use strict';const {getSocket}=require(_0x44f9e2('0x0')),socket=getSocket();require(_0x44f9e2('0x2'))[_0x44f9e2('0x1')](socket); \ No newline at end of file +const a171_0x517d=['register','../../rediscache'];(function(_0x5e98a9,_0x517dc1){const _0x4b0f3e=function(_0x374c07){while(--_0x374c07){_0x5e98a9['push'](_0x5e98a9['shift']());}};_0x4b0f3e(++_0x517dc1);}(a171_0x517d,0xea));const a171_0x4b0f=function(_0x5e98a9,_0x517dc1){_0x5e98a9=_0x5e98a9-0x0;let _0x4b0f3e=a171_0x517d[_0x5e98a9];return _0x4b0f3e;};const _0x2f4a8b=a171_0x4b0f;'use strict';const {getSocket}=require(_0x2f4a8b('0x1')),socket=getSocket();require('./dashboard.socket')[_0x2f4a8b('0x0')](socket); \ No newline at end of file diff --git a/server/api/dashboard/dashboard.socket.js b/server/api/dashboard/dashboard.socket.js index 67f03ab..11a0cc0 100644 --- a/server/api/dashboard/dashboard.socket.js +++ b/server/api/dashboard/dashboard.socket.js @@ -1 +1 @@ -const a172_0xfa6e=['./dashboard.events','remove','length','dashboard:','update','emit'];(function(_0x22c015,_0xfa6e37){const _0x946f18=function(_0x2c972a){while(--_0x2c972a){_0x22c015['push'](_0x22c015['shift']());}};_0x946f18(++_0xfa6e37);}(a172_0xfa6e,0x7c));const a172_0x946f=function(_0x22c015,_0xfa6e37){_0x22c015=_0x22c015-0x0;let _0x946f18=a172_0xfa6e[_0x22c015];return _0x946f18;};const _0x2f4676=a172_0x946f;'use strict';const DashboardEvents=require(_0x2f4676('0x2')),events=['save',_0x2f4676('0x3'),_0x2f4676('0x0')];function createListener(_0x2c972a,_0x29aadd){return function(_0x3cac85){const _0xfa5466=a172_0x946f;_0x29aadd[_0xfa5466('0x1')](_0x2c972a,_0x3cac85);};}exports['register']=function(_0x196d45){const _0x1d0769=_0x2f4676;for(let _0x5bc365=0x0,_0x545658=events[_0x1d0769('0x4')];_0x5bc365<_0x545658;_0x5bc365++){const _0x160e12=events[_0x5bc365],_0x3c7f27=createListener(_0x1d0769('0x5')+_0x160e12,_0x196d45);DashboardEvents['on'](_0x160e12,_0x3c7f27);}}; \ No newline at end of file +const a172_0x20df=['length','dashboard:','update','emit','register','save','./dashboard.events'];(function(_0x5716c7,_0x20df67){const _0xfdd059=function(_0x2c82bd){while(--_0x2c82bd){_0x5716c7['push'](_0x5716c7['shift']());}};_0xfdd059(++_0x20df67);}(a172_0x20df,0x6f));const a172_0xfdd0=function(_0x5716c7,_0x20df67){_0x5716c7=_0x5716c7-0x0;let _0xfdd059=a172_0x20df[_0x5716c7];return _0xfdd059;};const _0x33759d=a172_0xfdd0;'use strict';const DashboardEvents=require(_0x33759d('0x0')),events=[_0x33759d('0x6'),'remove',_0x33759d('0x3')];function createListener(_0x2c82bd,_0x11fa26){return function(_0x521875){const _0x2a4d77=a172_0xfdd0;_0x11fa26[_0x2a4d77('0x4')](_0x2c82bd,_0x521875);};}exports[_0x33759d('0x5')]=function(_0x1e7f41){const _0x46e90d=_0x33759d;for(let _0x404d63=0x0,_0x592092=events[_0x46e90d('0x1')];_0x404d63<_0x592092;_0x404d63++){const _0x44623a=events[_0x404d63],_0x49f07c=createListener(_0x46e90d('0x2')+_0x44623a,_0x1e7f41);DashboardEvents['on'](_0x44623a,_0x49f07c);}}; \ No newline at end of file diff --git a/server/api/dashboard/index.js b/server/api/dashboard/index.js index d937624..282d28f 100644 --- a/server/api/dashboard/index.js +++ b/server/api/dashboard/index.js @@ -1 +1 @@ -const a173_0x1e86=['index','isAuthenticated','../../components/auth/service','destroy','create','delete','exports','get','post','Router','addItem','express','/:id','./dashboard.controller','/:id/items','getItems'];(function(_0x3bf574,_0x1e86ad){const _0x3e7600=function(_0x4395c1){while(--_0x4395c1){_0x3bf574['push'](_0x3bf574['shift']());}};_0x3e7600(++_0x1e86ad);}(a173_0x1e86,0x99));const a173_0x3e76=function(_0x3bf574,_0x1e86ad){_0x3bf574=_0x3bf574-0x0;let _0x3e7600=a173_0x1e86[_0x3bf574];return _0x3e7600;};const _0x26960d=a173_0x3e76;'use strict';const express=require(_0x26960d('0x2')),router=express[_0x26960d('0x0')](),auth=require(_0x26960d('0x9')),controller=require(_0x26960d('0x4'));router[_0x26960d('0xe')]('/',auth[_0x26960d('0x8')](),controller[_0x26960d('0x7')]),router[_0x26960d('0xe')]('/:id',auth['isAuthenticated'](),controller['show']),router['get'](_0x26960d('0x5'),auth[_0x26960d('0x8')](),controller[_0x26960d('0x6')]),router[_0x26960d('0xf')]('/',auth[_0x26960d('0x8')](),controller[_0x26960d('0xb')]),router[_0x26960d('0xf')]('/:id/clone',auth[_0x26960d('0x8')](),controller['clone']),router[_0x26960d('0xf')](_0x26960d('0x5'),auth[_0x26960d('0x8')](),controller[_0x26960d('0x1')]),router['put'](_0x26960d('0x3'),auth[_0x26960d('0x8')](),controller['update']),router[_0x26960d('0xc')](_0x26960d('0x3'),auth['isAuthenticated'](),controller[_0x26960d('0xa')]),module[_0x26960d('0xd')]=router; \ No newline at end of file +const a173_0x1af0=['put','getItems','exports','/:id/clone','post','index','addItem','Router','../../components/auth/service','delete','express','isAuthenticated','get','destroy','./dashboard.controller','/:id','show'];(function(_0x1d4fe3,_0x1af0be){const _0x5f4e1e=function(_0x11ec8d){while(--_0x11ec8d){_0x1d4fe3['push'](_0x1d4fe3['shift']());}};_0x5f4e1e(++_0x1af0be);}(a173_0x1af0,0x17f));const a173_0x5f4e=function(_0x1d4fe3,_0x1af0be){_0x1d4fe3=_0x1d4fe3-0x0;let _0x5f4e1e=a173_0x1af0[_0x1d4fe3];return _0x5f4e1e;};const _0x94b812=a173_0x5f4e;'use strict';const express=require(_0x94b812('0x1')),router=express[_0x94b812('0xf')](),auth=require(_0x94b812('0x10')),controller=require(_0x94b812('0x5'));router[_0x94b812('0x3')]('/',auth[_0x94b812('0x2')](),controller[_0x94b812('0xd')]),router['get'](_0x94b812('0x6'),auth[_0x94b812('0x2')](),controller[_0x94b812('0x7')]),router[_0x94b812('0x3')]('/:id/items',auth[_0x94b812('0x2')](),controller[_0x94b812('0x9')]),router['post']('/',auth[_0x94b812('0x2')](),controller['create']),router['post'](_0x94b812('0xb'),auth[_0x94b812('0x2')](),controller['clone']),router[_0x94b812('0xc')]('/:id/items',auth['isAuthenticated'](),controller[_0x94b812('0xe')]),router[_0x94b812('0x8')](_0x94b812('0x6'),auth['isAuthenticated'](),controller['update']),router[_0x94b812('0x0')](_0x94b812('0x6'),auth[_0x94b812('0x2')](),controller[_0x94b812('0x4')]),module[_0x94b812('0xa')]=router; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.attributes.js b/server/api/dashboardItem/dashboardItem.attributes.js index 07a272a..f2e2e86 100644 --- a/server/api/dashboardItem/dashboardItem.attributes.js +++ b/server/api/dashboardItem/dashboardItem.attributes.js @@ -1 +1 @@ -const a174_0x3435=['INTEGER','getDataValue','#ffffff','attrs','setDataValue','STRING','sequelize','TEXT','exports','stringify','long'];(function(_0x138975,_0x3435c4){const _0x4e50d8=function(_0x5804ac){while(--_0x5804ac){_0x138975['push'](_0x138975['shift']());}};_0x4e50d8(++_0x3435c4);}(a174_0x3435,0x7d));const a174_0x4e50=function(_0x138975,_0x3435c4){_0x138975=_0x138975-0x0;let _0x4e50d8=a174_0x3435[_0x138975];return _0x4e50d8;};const _0x26d7a3=a174_0x4e50;'use strict';const Sequelize=require(_0x26d7a3('0x2'));module[_0x26d7a3('0x4')]={'title':{'type':Sequelize[_0x26d7a3('0x1')],'allowNull':![]},'type':{'type':Sequelize[_0x26d7a3('0x1')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize[_0x26d7a3('0x3')](_0x26d7a3('0x6')),'get':function(){const _0xa18e9=_0x26d7a3;try{return JSON['parse'](this[_0xa18e9('0x8')]('attrs'));}catch(_0x5804ac){return[];}},'set':function(_0x404f77){const _0x5e9cdc=_0x26d7a3;try{this[_0x5e9cdc('0x0')]('attrs',JSON[_0x5e9cdc('0x5')](_0x404f77));}catch(_0x3edf36){this[_0x5e9cdc('0x0')](_0x5e9cdc('0xa'),JSON[_0x5e9cdc('0x5')]([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x26d7a3('0x7')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize['INTEGER']},'col':{'type':Sequelize[_0x26d7a3('0x7')]},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x26d7a3('0x9'),'validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x26d7a3('0x1')],'allowNull':![],'defaultValue':'#2196f3','validate':{'notEmpty':!![]}},'link':{'type':Sequelize[_0x26d7a3('0x1')]}}; \ No newline at end of file +const a174_0x3853=['attrs','INTEGER','sequelize','exports','long','setDataValue','getDataValue','parse','#2196f3','STRING','stringify'];(function(_0x37b692,_0x3853a7){const _0x317f59=function(_0x2df6a2){while(--_0x2df6a2){_0x37b692['push'](_0x37b692['shift']());}};_0x317f59(++_0x3853a7);}(a174_0x3853,0x1cd));const a174_0x317f=function(_0x37b692,_0x3853a7){_0x37b692=_0x37b692-0x0;let _0x317f59=a174_0x3853[_0x37b692];return _0x317f59;};const _0x303810=a174_0x317f;'use strict';const Sequelize=require(_0x303810('0x3'));module[_0x303810('0x4')]={'title':{'type':Sequelize[_0x303810('0xa')],'allowNull':![]},'type':{'type':Sequelize[_0x303810('0xa')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}},'attrs':{'type':Sequelize['TEXT'](_0x303810('0x5')),'get':function(){const _0x7f2ffb=_0x303810;try{return JSON[_0x7f2ffb('0x8')](this[_0x7f2ffb('0x7')](_0x7f2ffb('0x1')));}catch(_0x2df6a2){return[];}},'set':function(_0x596a81){const _0x4f1937=_0x303810;try{this[_0x4f1937('0x6')](_0x4f1937('0x1'),JSON[_0x4f1937('0x0')](_0x596a81));}catch(_0xf04c9b){this[_0x4f1937('0x6')]('attrs',JSON['stringify']([]));}}},'sizeX':{'type':Sequelize['INTEGER'],'allowNull':![],'defaultValue':0x1},'sizeY':{'type':Sequelize[_0x303810('0x2')],'allowNull':![],'defaultValue':0x1},'row':{'type':Sequelize[_0x303810('0x2')]},'col':{'type':Sequelize[_0x303810('0x2')]},'background':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}},'foreground':{'type':Sequelize[_0x303810('0xa')],'allowNull':![],'defaultValue':_0x303810('0x9'),'validate':{'notEmpty':!![]}},'link':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.controller.js b/server/api/dashboardItem/dashboardItem.controller.js index 3c16874..f352e3e 100644 --- a/server/api/dashboardItem/dashboardItem.controller.js +++ b/server/api/dashboardItem/dashboardItem.controller.js @@ -1 +1 @@ -const a175_0x38bd=['stringify','includeAll','include','attrSerie1','../../components/parsers/qs','attrVoiceQueues','params','json','findOne','attrPath','update','0.00','clock','intersection','counter','show','iframe','attrTimezone','value','../../config/logger','type','attrHourFormat','catch','model','widgetAttributes:\x20%s','web-report','end','attributes','send','sendStatus','filters','../../mysqldb','query','pie-chart','fields','stack','total','then','status','attrSerie2','./dashboardItem.socket','HH:mm:ss','attrRefresh','create','multibar-chart','register','rawAttributes','keys','body','attrMetric','error','DashboardItem','attrReport','https://','attrSerie3','destroy','attrs','reportType','custom','attrFontSize','attrUrl'];(function(_0x177c91,_0x38bd8e){const _0x33c920=function(_0x185f2d){while(--_0x185f2d){_0x177c91['push'](_0x177c91['shift']());}};_0x33c920(++_0x38bd8e);}(a175_0x38bd,0x1c2));const a175_0x33c9=function(_0x177c91,_0x38bd8e){_0x177c91=_0x177c91-0x0;let _0x33c920=a175_0x38bd[_0x177c91];return _0x33c920;};const _0x5a05b7=a175_0x33c9;'use strict';const _=require('lodash'),qs=require(_0x5a05b7('0x2a')),logger=require(_0x5a05b7('0x39'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x5a05b7('0x8'))['db'];require(_0x5a05b7('0x11'))[_0x5a05b7('0x16')](socket);function respondWithResult(_0x185f2d,_0x55d581){return _0x55d581=_0x55d581||0xc8,function(_0x19fe62){const _0x47c703=a175_0x33c9;if(_0x19fe62)return _0x185f2d[_0x47c703('0xf')](_0x55d581)[_0x47c703('0x2d')](_0x19fe62);};}function saveUpdates(_0x1494d7){return function(_0xd9b64c){const _0x32df07=a175_0x33c9;if(_0xd9b64c)return _0xd9b64c[_0x32df07('0x30')](_0x1494d7)[_0x32df07('0xe')](function(_0x1798ab){return _0x1798ab;});return null;};}function removeEntity(_0xb4b355){return function(_0x9b54ef){const _0x161fca=a175_0x33c9;if(_0x9b54ef)return _0x9b54ef['destroy']()[_0x161fca('0xe')](function(){const _0x676c61=_0x161fca;_0xb4b355[_0x676c61('0xf')](0xcc)[_0x676c61('0x3')]();});};}function handleEntityNotFound(_0x4f7078){return function(_0x46123c){const _0x27f1b8=a175_0x33c9;return!_0x46123c&&_0x4f7078[_0x27f1b8('0x6')](0x194),_0x46123c;};}function handleError(_0x2cf9e1,_0x123916){return _0x123916=_0x123916||0x1f4,function(_0x353373){const _0x610296=a175_0x33c9;logger[_0x610296('0x1b')](_0x353373[_0x610296('0xc')]),_0x353373['name']&&delete _0x353373['name'],_0x2cf9e1[_0x610296('0xf')](_0x123916)[_0x610296('0x5')](_0x353373);};}exports[_0x5a05b7('0x35')]=function(_0x4ca514,_0x1d3072){const _0x4e5b5c=_0x5a05b7;let _0x19ca43={'raw':![],'where':{'id':_0x4ca514[_0x4e5b5c('0x2c')]['id']}};const _0x44e3e5={};return _0x44e3e5[_0x4e5b5c('0x0')]=_[_0x4e5b5c('0x18')](db[_0x4e5b5c('0x1c')][_0x4e5b5c('0x17')]),_0x44e3e5['query']=_['keys'](_0x4ca514[_0x4e5b5c('0x9')]),_0x44e3e5[_0x4e5b5c('0x7')]=_[_0x4e5b5c('0x33')](_0x44e3e5[_0x4e5b5c('0x0')],_0x44e3e5[_0x4e5b5c('0x9')]),_0x19ca43[_0x4e5b5c('0x4')]=_[_0x4e5b5c('0x33')](_0x44e3e5['model'],qs[_0x4e5b5c('0xb')](_0x4ca514['query'][_0x4e5b5c('0xb')])),_0x19ca43[_0x4e5b5c('0x4')]=_0x19ca43[_0x4e5b5c('0x4')]['length']?_0x19ca43[_0x4e5b5c('0x4')]:_0x44e3e5[_0x4e5b5c('0x0')],_0x4ca514['query'][_0x4e5b5c('0x27')]&&(_0x19ca43[_0x4e5b5c('0x28')]=[{'all':!![]}]),_0x19ca43=_['merge']({},_0x19ca43,_0x4ca514['options']),db[_0x4e5b5c('0x1c')][_0x4e5b5c('0x2e')](_0x19ca43)['then'](handleEntityNotFound(_0x1d3072,null))[_0x4e5b5c('0xe')](respondWithResult(_0x1d3072,null))[_0x4e5b5c('0x3c')](handleError(_0x1d3072,null));},exports[_0x5a05b7('0x20')]=function(_0x3e2884,_0x2f2483){const _0x253190=_0x5a05b7;return db[_0x253190('0x1c')][_0x253190('0x2e')]({'where':{'id':_0x3e2884[_0x253190('0x2c')]['id']}})[_0x253190('0xe')](handleEntityNotFound(_0x2f2483,null))[_0x253190('0xe')](removeEntity(_0x2f2483,null))['catch'](handleError(_0x2f2483,null));};function widgetAttributes(_0x266e36){const _0x32d827=_0x5a05b7;try{switch(_0x266e36[_0x32d827('0x3a')]){case _0x32d827('0x36'):return[{'name':_0x32d827('0x25'),'value':_0x266e36[_0x32d827('0x25')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36['attrs'][0x0]?_0x266e36[_0x32d827('0x21')][0x0]['value']:undefined)||_0x32d827('0x1e')}];case _0x32d827('0x23'):return[{'name':_0x32d827('0x2f'),'value':_0x266e36['attrPath']||(_0x266e36[_0x32d827('0x21')]&&_0x266e36[_0x32d827('0x21')][0x0]?_0x266e36[_0x32d827('0x21')][0x0][_0x32d827('0x38')]:undefined)||''}];case _0x32d827('0x32'):return[{'name':_0x32d827('0x3b'),'value':_0x266e36['attrHourFormat']||(_0x266e36['attrs']&&_0x266e36[_0x32d827('0x21')][0x0]?_0x266e36[_0x32d827('0x21')][0x0]['value']:undefined)||_0x32d827('0x12')},{'name':_0x32d827('0x37'),'value':_0x266e36['attrTimezone']||(_0x266e36[_0x32d827('0x21')]&&_0x266e36['attrs'][0x1]?_0x266e36[_0x32d827('0x21')][0x1]['value']:undefined)||_0x32d827('0x31')},{'name':_0x32d827('0x24'),'value':_0x266e36[_0x32d827('0x24')]||(_0x266e36['attrs']&&_0x266e36['attrs'][0x2]?_0x266e36[_0x32d827('0x21')][0x2]['value']:undefined)||0xc}];case _0x32d827('0x34'):return[{'name':_0x32d827('0x1a'),'value':_0x266e36['attrMetric']||(_0x266e36[_0x32d827('0x21')]&&_0x266e36['attrs'][0x0]?_0x266e36[_0x32d827('0x21')][0x0][_0x32d827('0x38')]:undefined)||_0x32d827('0xd')},{'name':'attrVoiceQueues','value':_0x266e36[_0x32d827('0x2b')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36[_0x32d827('0x21')][0x1]?_0x266e36[_0x32d827('0x21')][0x1][_0x32d827('0x38')]:undefined)||[]},{'name':_0x32d827('0x24'),'value':_0x266e36[_0x32d827('0x24')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36['attrs'][0x2]?_0x266e36[_0x32d827('0x21')][0x2][_0x32d827('0x38')]:undefined)||0x14}];case _0x32d827('0x15'):case _0x32d827('0xa'):return[{'name':_0x32d827('0x29'),'value':_0x266e36[_0x32d827('0x29')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36['attrs'][0x0]?_0x266e36[_0x32d827('0x21')][0x0]['value']:undefined)||'total'},{'name':_0x32d827('0x10'),'value':_0x266e36[_0x32d827('0x10')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36[_0x32d827('0x21')][0x1]?_0x266e36['attrs'][0x1]['value']:undefined)||null},{'name':'attrSerie3','value':_0x266e36[_0x32d827('0x1f')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36['attrs'][0x2]?_0x266e36[_0x32d827('0x21')][0x2][_0x32d827('0x38')]:undefined)||null},{'name':_0x32d827('0x2b'),'value':_0x266e36[_0x32d827('0x2b')]||(_0x266e36['attrs']&&_0x266e36[_0x32d827('0x21')][0x3]?_0x266e36['attrs'][0x3][_0x32d827('0x38')]:undefined)||[]}];case _0x32d827('0x2'):return[{'name':_0x32d827('0x1d'),'type':_0x266e36[_0x32d827('0x22')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36['attrs'][0x0]?_0x266e36[_0x32d827('0x21')][0x0][_0x32d827('0x3a')]:undefined)||null,'value':_0x266e36[_0x32d827('0x1d')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36[_0x32d827('0x21')][0x0]?_0x266e36[_0x32d827('0x21')][0x0][_0x32d827('0x38')]:undefined)||null},{'name':_0x32d827('0x13'),'value':_0x266e36[_0x32d827('0x13')]||(_0x266e36[_0x32d827('0x21')]&&_0x266e36[_0x32d827('0x21')][0x1]?_0x266e36[_0x32d827('0x21')][0x1]['value']:undefined)||0x0}];default:return[];}}catch(_0x2b8af1){return logger[_0x32d827('0x1b')](_0x32d827('0x1'),JSON[_0x32d827('0x26')](_0x2b8af1)),[];}}exports[_0x5a05b7('0x14')]=function(_0x3c901d,_0x364fc8){const _0x581a58=_0x5a05b7;return _0x3c901d[_0x581a58('0x19')]&&(_0x3c901d[_0x581a58('0x19')][_0x581a58('0x21')]=widgetAttributes(_0x3c901d[_0x581a58('0x19')])),db[_0x581a58('0x1c')]['create'](_0x3c901d[_0x581a58('0x19')],{})[_0x581a58('0xe')](respondWithResult(_0x364fc8,0xc9))[_0x581a58('0x3c')](handleError(_0x364fc8,null));},exports['update']=function(_0x11fc88,_0x12b77a){const _0x340feb=_0x5a05b7;return _0x11fc88['body']['id']&&delete _0x11fc88[_0x340feb('0x19')]['id'],_0x11fc88[_0x340feb('0x19')][_0x340feb('0x21')]=widgetAttributes(_0x11fc88[_0x340feb('0x19')]),db[_0x340feb('0x1c')][_0x340feb('0x2e')]({'where':{'id':_0x11fc88[_0x340feb('0x2c')]['id']}})['then'](handleEntityNotFound(_0x12b77a,null))[_0x340feb('0xe')](saveUpdates(_0x11fc88[_0x340feb('0x19')],null))[_0x340feb('0xe')](respondWithResult(_0x12b77a,null))[_0x340feb('0x3c')](handleError(_0x12b77a,null));}; \ No newline at end of file +const a175_0xed29=['intersection','attrRefresh','iframe','reportType','attrs','multibar-chart','DashboardItem','attrReport','attrPath','attrVoiceQueues','clock','error','status','0.00','create','end','./dashboardItem.socket','counter','HH:mm:ss','model','sendStatus','attrSerie2','type','catch','destroy','attrSerie1','../../rediscache','../../config/logger','json','include','attrSerie3','attrFontSize','attrTimezone','../../components/parsers/qs','includeAll','total','lodash','keys','query','fields','attrMetric','pie-chart','stack','name','filters','then','rawAttributes','web-report','send','findOne','attributes','attrHourFormat','body','params','length','value','options'];(function(_0x1e6534,_0xed290){const _0x1d8d2a=function(_0x108982){while(--_0x108982){_0x1e6534['push'](_0x1e6534['shift']());}};_0x1d8d2a(++_0xed290);}(a175_0xed29,0x148));const a175_0x1d8d=function(_0x1e6534,_0xed290){_0x1e6534=_0x1e6534-0x0;let _0x1d8d2a=a175_0xed29[_0x1e6534];return _0x1d8d2a;};const _0x364b9a=a175_0x1d8d;'use strict';const _=require(_0x364b9a('0x32')),qs=require(_0x364b9a('0x2f')),logger=require(_0x364b9a('0x29'))('api'),{getSocket}=require(_0x364b9a('0x28')),socket=getSocket(),db=require('../../mysqldb')['db'];require(_0x364b9a('0x1e'))['register'](socket);function respondWithResult(_0x108982,_0x43bb19){return _0x43bb19=_0x43bb19||0xc8,function(_0x3226d8){const _0x20bd49=a175_0x1d8d;if(_0x3226d8)return _0x108982[_0x20bd49('0x1a')](_0x43bb19)[_0x20bd49('0x2a')](_0x3226d8);};}function saveUpdates(_0x106bcd){return function(_0x28f09d){const _0x2b9fbd=a175_0x1d8d;if(_0x28f09d)return _0x28f09d['update'](_0x106bcd)[_0x2b9fbd('0x2')](function(_0x5ad79e){return _0x5ad79e;});return null;};}function removeEntity(_0x502153){return function(_0x589b50){const _0x1e40ab=a175_0x1d8d;if(_0x589b50)return _0x589b50[_0x1e40ab('0x26')]()['then'](function(){const _0x1c059a=_0x1e40ab;_0x502153[_0x1c059a('0x1a')](0xcc)[_0x1c059a('0x1d')]();});};}function handleEntityNotFound(_0xd3a60b){return function(_0xc64711){const _0x280a9b=a175_0x1d8d;return!_0xc64711&&_0xd3a60b[_0x280a9b('0x22')](0x194),_0xc64711;};}function handleError(_0x3ea564,_0x5eb9cb){return _0x5eb9cb=_0x5eb9cb||0x1f4,function(_0x5bca1c){const _0x5bdc10=a175_0x1d8d;logger[_0x5bdc10('0x19')](_0x5bca1c[_0x5bdc10('0x38')]),_0x5bca1c[_0x5bdc10('0x0')]&&delete _0x5bca1c[_0x5bdc10('0x0')],_0x3ea564[_0x5bdc10('0x1a')](_0x5eb9cb)[_0x5bdc10('0x5')](_0x5bca1c);};}exports['show']=function(_0x269e98,_0x4972ac){const _0x6dcb23=_0x364b9a;let _0x4ebca5={'raw':![],'where':{'id':_0x269e98[_0x6dcb23('0xa')]['id']}};const _0x1064ab={};return _0x1064ab['model']=_[_0x6dcb23('0x33')](db['DashboardItem'][_0x6dcb23('0x3')]),_0x1064ab[_0x6dcb23('0x34')]=_[_0x6dcb23('0x33')](_0x269e98[_0x6dcb23('0x34')]),_0x1064ab[_0x6dcb23('0x1')]=_[_0x6dcb23('0xe')](_0x1064ab[_0x6dcb23('0x21')],_0x1064ab['query']),_0x4ebca5[_0x6dcb23('0x7')]=_[_0x6dcb23('0xe')](_0x1064ab[_0x6dcb23('0x21')],qs[_0x6dcb23('0x35')](_0x269e98[_0x6dcb23('0x34')][_0x6dcb23('0x35')])),_0x4ebca5[_0x6dcb23('0x7')]=_0x4ebca5['attributes'][_0x6dcb23('0xb')]?_0x4ebca5[_0x6dcb23('0x7')]:_0x1064ab[_0x6dcb23('0x21')],_0x269e98[_0x6dcb23('0x34')][_0x6dcb23('0x30')]&&(_0x4ebca5[_0x6dcb23('0x2b')]=[{'all':!![]}]),_0x4ebca5=_['merge']({},_0x4ebca5,_0x269e98[_0x6dcb23('0xd')]),db[_0x6dcb23('0x14')][_0x6dcb23('0x6')](_0x4ebca5)['then'](handleEntityNotFound(_0x4972ac,null))[_0x6dcb23('0x2')](respondWithResult(_0x4972ac,null))['catch'](handleError(_0x4972ac,null));},exports[_0x364b9a('0x26')]=function(_0x193fcc,_0x2a5e73){const _0x3a10ca=_0x364b9a;return db[_0x3a10ca('0x14')][_0x3a10ca('0x6')]({'where':{'id':_0x193fcc['params']['id']}})[_0x3a10ca('0x2')](handleEntityNotFound(_0x2a5e73,null))[_0x3a10ca('0x2')](removeEntity(_0x2a5e73,null))[_0x3a10ca('0x25')](handleError(_0x2a5e73,null));};function widgetAttributes(_0x72bdec){const _0x20e0f0=_0x364b9a;try{switch(_0x72bdec[_0x20e0f0('0x24')]){case _0x20e0f0('0x10'):return[{'name':'attrUrl','value':_0x72bdec['attrUrl']||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x0]?_0x72bdec[_0x20e0f0('0x12')][0x0]['value']:undefined)||'https://'}];case'custom':return[{'name':_0x20e0f0('0x16'),'value':_0x72bdec[_0x20e0f0('0x16')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x0]?_0x72bdec['attrs'][0x0]['value']:undefined)||''}];case _0x20e0f0('0x18'):return[{'name':_0x20e0f0('0x8'),'value':_0x72bdec['attrHourFormat']||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x0]?_0x72bdec['attrs'][0x0]['value']:undefined)||_0x20e0f0('0x20')},{'name':_0x20e0f0('0x2e'),'value':_0x72bdec['attrTimezone']||(_0x72bdec['attrs']&&_0x72bdec['attrs'][0x1]?_0x72bdec['attrs'][0x1][_0x20e0f0('0xc')]:undefined)||_0x20e0f0('0x1b')},{'name':_0x20e0f0('0x2d'),'value':_0x72bdec['attrFontSize']||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x2]?_0x72bdec[_0x20e0f0('0x12')][0x2]['value']:undefined)||0xc}];case _0x20e0f0('0x1f'):return[{'name':_0x20e0f0('0x36'),'value':_0x72bdec[_0x20e0f0('0x36')]||(_0x72bdec['attrs']&&_0x72bdec[_0x20e0f0('0x12')][0x0]?_0x72bdec['attrs'][0x0][_0x20e0f0('0xc')]:undefined)||'total'},{'name':_0x20e0f0('0x17'),'value':_0x72bdec[_0x20e0f0('0x17')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x1]?_0x72bdec['attrs'][0x1][_0x20e0f0('0xc')]:undefined)||[]},{'name':_0x20e0f0('0x2d'),'value':_0x72bdec[_0x20e0f0('0x2d')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x2]?_0x72bdec['attrs'][0x2]['value']:undefined)||0x14}];case _0x20e0f0('0x13'):case _0x20e0f0('0x37'):return[{'name':_0x20e0f0('0x27'),'value':_0x72bdec[_0x20e0f0('0x27')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x0]?_0x72bdec[_0x20e0f0('0x12')][0x0][_0x20e0f0('0xc')]:undefined)||_0x20e0f0('0x31')},{'name':_0x20e0f0('0x23'),'value':_0x72bdec[_0x20e0f0('0x23')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x1]?_0x72bdec[_0x20e0f0('0x12')][0x1]['value']:undefined)||null},{'name':_0x20e0f0('0x2c'),'value':_0x72bdec[_0x20e0f0('0x2c')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x2]?_0x72bdec[_0x20e0f0('0x12')][0x2][_0x20e0f0('0xc')]:undefined)||null},{'name':_0x20e0f0('0x17'),'value':_0x72bdec[_0x20e0f0('0x17')]||(_0x72bdec['attrs']&&_0x72bdec['attrs'][0x3]?_0x72bdec[_0x20e0f0('0x12')][0x3][_0x20e0f0('0xc')]:undefined)||[]}];case _0x20e0f0('0x4'):return[{'name':_0x20e0f0('0x15'),'type':_0x72bdec[_0x20e0f0('0x11')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x0]?_0x72bdec['attrs'][0x0][_0x20e0f0('0x24')]:undefined)||null,'value':_0x72bdec[_0x20e0f0('0x15')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec['attrs'][0x0]?_0x72bdec[_0x20e0f0('0x12')][0x0]['value']:undefined)||null},{'name':_0x20e0f0('0xf'),'value':_0x72bdec[_0x20e0f0('0xf')]||(_0x72bdec[_0x20e0f0('0x12')]&&_0x72bdec[_0x20e0f0('0x12')][0x1]?_0x72bdec[_0x20e0f0('0x12')][0x1][_0x20e0f0('0xc')]:undefined)||0x0}];default:return[];}}catch(_0x20de80){return logger[_0x20e0f0('0x19')]('widgetAttributes:\x20%s',JSON['stringify'](_0x20de80)),[];}}exports[_0x364b9a('0x1c')]=function(_0x44600c,_0x20bd89){const _0x2ec3ef=_0x364b9a;return _0x44600c[_0x2ec3ef('0x9')]&&(_0x44600c['body']['attrs']=widgetAttributes(_0x44600c['body'])),db[_0x2ec3ef('0x14')]['create'](_0x44600c[_0x2ec3ef('0x9')],{})[_0x2ec3ef('0x2')](respondWithResult(_0x20bd89,0xc9))[_0x2ec3ef('0x25')](handleError(_0x20bd89,null));},exports['update']=function(_0x19ebf8,_0x41e777){const _0x3775e4=_0x364b9a;return _0x19ebf8['body']['id']&&delete _0x19ebf8[_0x3775e4('0x9')]['id'],_0x19ebf8[_0x3775e4('0x9')][_0x3775e4('0x12')]=widgetAttributes(_0x19ebf8['body']),db[_0x3775e4('0x14')]['findOne']({'where':{'id':_0x19ebf8['params']['id']}})[_0x3775e4('0x2')](handleEntityNotFound(_0x41e777,null))[_0x3775e4('0x2')](saveUpdates(_0x19ebf8[_0x3775e4('0x9')],null))[_0x3775e4('0x2')](respondWithResult(_0x41e777,null))[_0x3775e4('0x25')](handleError(_0x41e777,null));}; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.events.js b/server/api/dashboardItem/dashboardItem.events.js index c9531a8..4ae6191 100644 --- a/server/api/dashboardItem/dashboardItem.events.js +++ b/server/api/dashboardItem/dashboardItem.events.js @@ -1 +1 @@ -const a176_0x1909=['remove','save','update','undefined','events','../../mysqldb','emit','setMaxListeners','DashboardItem','addHook','exports'];(function(_0x5464d7,_0x19091b){const _0x44e434=function(_0x49c789){while(--_0x49c789){_0x5464d7['push'](_0x5464d7['shift']());}};_0x44e434(++_0x19091b);}(a176_0x1909,0x19a));const a176_0x44e4=function(_0x5464d7,_0x19091b){_0x5464d7=_0x5464d7-0x0;let _0x44e434=a176_0x1909[_0x5464d7];return _0x44e434;};const _0x441012=a176_0x44e4;'use strict';const EventEmitter=require(_0x441012('0x1')),DashboardItem=require(_0x441012('0x2'))['db'][_0x441012('0x5')],DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x441012('0x4')](0x0);const events={'afterCreate':_0x441012('0x9'),'afterUpdate':_0x441012('0xa'),'afterDestroy':_0x441012('0x8')};function emitEvent(_0x49c789){return function(_0xb56954){const _0x3ebaeb=a176_0x44e4;DashboardItemEvents[_0x3ebaeb('0x3')](_0x49c789+':'+_0xb56954['id'],_0xb56954),DashboardItemEvents[_0x3ebaeb('0x3')](_0x49c789,_0xb56954);};}for(const e in events){if(typeof events[e]!==_0x441012('0x0')){const event=events[e];DashboardItem[_0x441012('0x6')](e,emitEvent(event));}}module[_0x441012('0x7')]=DashboardItemEvents; \ No newline at end of file +const a176_0x4d48=['events','undefined','remove','addHook','emit','DashboardItem','../../mysqldb','setMaxListeners','update','exports','save'];(function(_0xb3029f,_0x4d48f0){const _0x364fbd=function(_0x5cd0c9){while(--_0x5cd0c9){_0xb3029f['push'](_0xb3029f['shift']());}};_0x364fbd(++_0x4d48f0);}(a176_0x4d48,0xb3));const a176_0x364f=function(_0xb3029f,_0x4d48f0){_0xb3029f=_0xb3029f-0x0;let _0x364fbd=a176_0x4d48[_0xb3029f];return _0x364fbd;};const _0x40fd10=a176_0x364f;'use strict';const EventEmitter=require(_0x40fd10('0x8')),DashboardItem=require(_0x40fd10('0x3'))['db'][_0x40fd10('0x2')],DashboardItemEvents=new EventEmitter();DashboardItemEvents[_0x40fd10('0x4')](0x0);const events={'afterCreate':_0x40fd10('0x7'),'afterUpdate':_0x40fd10('0x5'),'afterDestroy':_0x40fd10('0xa')};function emitEvent(_0x5cd0c9){return function(_0xd81e89){const _0x2a32ab=a176_0x364f;DashboardItemEvents['emit'](_0x5cd0c9+':'+_0xd81e89['id'],_0xd81e89),DashboardItemEvents[_0x2a32ab('0x1')](_0x5cd0c9,_0xd81e89);};}for(const e in events){if(typeof events[e]!==_0x40fd10('0x9')){const event=events[e];DashboardItem[_0x40fd10('0x0')](e,emitEvent(event));}}module[_0x40fd10('0x6')]=DashboardItemEvents; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.model.js b/server/api/dashboardItem/dashboardItem.model.js index cec8d70..7d34bd6 100644 --- a/server/api/dashboardItem/dashboardItem.model.js +++ b/server/api/dashboardItem/dashboardItem.model.js @@ -1 +1 @@ -const a177_0x254f=['dashboard_items','define','DashboardItem','./dashboardItem.attributes'];(function(_0x11cbd4,_0x254fd4){const _0x294d12=function(_0x243e8d){while(--_0x243e8d){_0x11cbd4['push'](_0x11cbd4['shift']());}};_0x294d12(++_0x254fd4);}(a177_0x254f,0x15f));const a177_0x294d=function(_0x11cbd4,_0x254fd4){_0x11cbd4=_0x11cbd4-0x0;let _0x294d12=a177_0x254f[_0x11cbd4];return _0x294d12;};const _0x4e51e3=a177_0x294d;'use strict';const attributes=require(_0x4e51e3('0x0'));module['exports']=function(_0x243e8d){const _0x32015f=_0x4e51e3,_0x31477f=_0x243e8d[_0x32015f('0x2')](_0x32015f('0x3'),attributes,{'tableName':_0x32015f('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x31477f;}; \ No newline at end of file +const a177_0x2255=['define','dashboard_items','exports','DashboardItem'];(function(_0x481329,_0x2255d6){const _0x1cf1fe=function(_0x3fcaa5){while(--_0x3fcaa5){_0x481329['push'](_0x481329['shift']());}};_0x1cf1fe(++_0x2255d6);}(a177_0x2255,0x180));const a177_0x1cf1=function(_0x481329,_0x2255d6){_0x481329=_0x481329-0x0;let _0x1cf1fe=a177_0x2255[_0x481329];return _0x1cf1fe;};const _0x144e79=a177_0x1cf1;'use strict';const attributes=require('./dashboardItem.attributes');module[_0x144e79('0x2')]=function(_0x3fcaa5){const _0x23463c=_0x144e79,_0x126276=_0x3fcaa5[_0x23463c('0x0')](_0x23463c('0x3'),attributes,{'tableName':_0x23463c('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x126276;}; \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.rpc.js b/server/api/dashboardItem/dashboardItem.rpc.js index f60f0a2..dd6441b 100644 --- a/server/api/dashboardItem/dashboardItem.rpc.js +++ b/server/api/dashboardItem/dashboardItem.rpc.js @@ -1 +1 @@ -const a178_0xbabf=['./dashboardItem.socket','../../rediscache','register'];(function(_0x269a17,_0xbabf9d){const _0x196b2a=function(_0xd3d447){while(--_0xd3d447){_0x269a17['push'](_0x269a17['shift']());}};_0x196b2a(++_0xbabf9d);}(a178_0xbabf,0x1f3));const a178_0x196b=function(_0x269a17,_0xbabf9d){_0x269a17=_0x269a17-0x0;let _0x196b2a=a178_0xbabf[_0x269a17];return _0x196b2a;};const _0x2bade4=a178_0x196b;'use strict';const {getSocket}=require(_0x2bade4('0x0')),socket=getSocket();require(_0x2bade4('0x2'))[_0x2bade4('0x1')](socket); \ No newline at end of file +const a178_0x1b34=['../../rediscache','./dashboardItem.socket','register'];(function(_0x44e106,_0x1b34bb){const _0x181e16=function(_0x2f1449){while(--_0x2f1449){_0x44e106['push'](_0x44e106['shift']());}};_0x181e16(++_0x1b34bb);}(a178_0x1b34,0x1a0));const a178_0x181e=function(_0x44e106,_0x1b34bb){_0x44e106=_0x44e106-0x0;let _0x181e16=a178_0x1b34[_0x44e106];return _0x181e16;};const _0x5a005a=a178_0x181e;'use strict';const {getSocket}=require(_0x5a005a('0x1')),socket=getSocket();require(_0x5a005a('0x2'))[_0x5a005a('0x0')](socket); \ No newline at end of file diff --git a/server/api/dashboardItem/dashboardItem.socket.js b/server/api/dashboardItem/dashboardItem.socket.js index dc130bf..30f48b1 100644 --- a/server/api/dashboardItem/dashboardItem.socket.js +++ b/server/api/dashboardItem/dashboardItem.socket.js @@ -1 +1 @@ -const a179_0x2302=['remove','emit','update','./dashboardItem.events','register'];(function(_0x4c8342,_0x23021e){const _0x1a5ba1=function(_0x68c1dd){while(--_0x68c1dd){_0x4c8342['push'](_0x4c8342['shift']());}};_0x1a5ba1(++_0x23021e);}(a179_0x2302,0x1e9));const a179_0x1a5b=function(_0x4c8342,_0x23021e){_0x4c8342=_0x4c8342-0x0;let _0x1a5ba1=a179_0x2302[_0x4c8342];return _0x1a5ba1;};const _0x4323e5=a179_0x1a5b;'use strict';const DashboardItemEvents=require(_0x4323e5('0x4')),events=['save',_0x4323e5('0x1'),_0x4323e5('0x3')];function createListener(_0x68c1dd,_0xbd1a59){return function(_0x36fcc5){const _0x40bf74=a179_0x1a5b;_0xbd1a59[_0x40bf74('0x2')](_0x68c1dd,_0x36fcc5);};}exports[_0x4323e5('0x0')]=function(_0x122213){for(let _0x513ffe=0x0,_0x58db22=events['length'];_0x513ffe<_0x58db22;_0x513ffe++){const _0x84be30=events[_0x513ffe],_0x45dc22=createListener('dashboardItem:'+_0x84be30,_0x122213);DashboardItemEvents['on'](_0x84be30,_0x45dc22);}}; \ No newline at end of file +const a179_0x1e3f=['length','dashboardItem:','./dashboardItem.events','save','emit'];(function(_0x361c86,_0x1e3fb6){const _0x39de0e=function(_0x5dd891){while(--_0x5dd891){_0x361c86['push'](_0x361c86['shift']());}};_0x39de0e(++_0x1e3fb6);}(a179_0x1e3f,0x1ca));const a179_0x39de=function(_0x361c86,_0x1e3fb6){_0x361c86=_0x361c86-0x0;let _0x39de0e=a179_0x1e3f[_0x361c86];return _0x39de0e;};const _0x2810d4=a179_0x39de;'use strict';const DashboardItemEvents=require(_0x2810d4('0x4')),events=[_0x2810d4('0x0'),'remove','update'];function createListener(_0x5dd891,_0x577d4c){return function(_0x50552d){const _0x193c87=a179_0x39de;_0x577d4c[_0x193c87('0x1')](_0x5dd891,_0x50552d);};}exports['register']=function(_0x27f4c5){const _0x2bb8ea=_0x2810d4;for(let _0x21f0f2=0x0,_0x2605f8=events[_0x2bb8ea('0x2')];_0x21f0f2<_0x2605f8;_0x21f0f2++){const _0x3d9270=events[_0x21f0f2],_0x4f01cb=createListener(_0x2bb8ea('0x3')+_0x3d9270,_0x27f4c5);DashboardItemEvents['on'](_0x3d9270,_0x4f01cb);}}; \ No newline at end of file diff --git a/server/api/dashboardItem/index.js b/server/api/dashboardItem/index.js index 8135f2a..027592f 100644 --- a/server/api/dashboardItem/index.js +++ b/server/api/dashboardItem/index.js @@ -1 +1 @@ -const a180_0x1b6f=['isAuthenticated','put','../../components/auth/service','./dashboardItem.controller','update','/:id','get','Router','post','destroy','show'];(function(_0x359cbf,_0x1b6f79){const _0x37878b=function(_0x5b3cbb){while(--_0x5b3cbb){_0x359cbf['push'](_0x359cbf['shift']());}};_0x37878b(++_0x1b6f79);}(a180_0x1b6f,0x11b));const a180_0x3787=function(_0x359cbf,_0x1b6f79){_0x359cbf=_0x359cbf-0x0;let _0x37878b=a180_0x1b6f[_0x359cbf];return _0x37878b;};const _0x386687=a180_0x3787;'use strict';const express=require('express'),router=express[_0x386687('0xa')](),auth=require(_0x386687('0x5')),controller=require(_0x386687('0x6'));router[_0x386687('0x9')](_0x386687('0x8'),auth[_0x386687('0x3')](),controller[_0x386687('0x2')]),router[_0x386687('0x0')]('/',auth[_0x386687('0x3')](),controller['create']),router[_0x386687('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x386687('0x7')]),router['delete'](_0x386687('0x8'),auth[_0x386687('0x3')](),controller[_0x386687('0x1')]),module['exports']=router; \ No newline at end of file +const a180_0x1927=['/:id','get','express','exports','../../components/auth/service','show','Router','post','create','put','delete','isAuthenticated','./dashboardItem.controller'];(function(_0x15c1bd,_0x1927b0){const _0x2ad465=function(_0x41e005){while(--_0x41e005){_0x15c1bd['push'](_0x15c1bd['shift']());}};_0x2ad465(++_0x1927b0);}(a180_0x1927,0xcc));const a180_0x2ad4=function(_0x15c1bd,_0x1927b0){_0x15c1bd=_0x15c1bd-0x0;let _0x2ad465=a180_0x1927[_0x15c1bd];return _0x2ad465;};const _0x2e2648=a180_0x2ad4;'use strict';const express=require(_0x2e2648('0x6')),router=express[_0x2e2648('0xa')](),auth=require(_0x2e2648('0x8')),controller=require(_0x2e2648('0x3'));router[_0x2e2648('0x5')](_0x2e2648('0x4'),auth['isAuthenticated'](),controller[_0x2e2648('0x9')]),router[_0x2e2648('0xb')]('/',auth[_0x2e2648('0x2')](),controller[_0x2e2648('0xc')]),router[_0x2e2648('0x0')]('/:id',auth['isAuthenticated'](),controller['update']),router[_0x2e2648('0x1')](_0x2e2648('0x4'),auth[_0x2e2648('0x2')](),controller['destroy']),module[_0x2e2648('0x7')]=router; \ No newline at end of file diff --git a/server/api/disposition/disposition.attributes.js b/server/api/disposition/disposition.attributes.js index c64c161..79845a8 100644 --- a/server/api/disposition/disposition.attributes.js +++ b/server/api/disposition/disposition.attributes.js @@ -1 +1 @@ -const a181_0x1f0b=['third','STRING','first','ENUM','sequelize'];(function(_0x1679ee,_0x1f0be2){const _0x1ebf5d=function(_0x1fa6a9){while(--_0x1fa6a9){_0x1679ee['push'](_0x1679ee['shift']());}};_0x1ebf5d(++_0x1f0be2);}(a181_0x1f0b,0x7b));const a181_0x1ebf=function(_0x1679ee,_0x1f0be2){_0x1679ee=_0x1679ee-0x0;let _0x1ebf5d=a181_0x1f0b[_0x1679ee];return _0x1ebf5d;};const _0x626d4d=a181_0x1ebf;'use strict';const Sequelize=require(_0x626d4d('0x1'));module['exports']={'name':{'type':Sequelize[_0x626d4d('0x3')],'allowNull':![]},'level':{'type':Sequelize[_0x626d4d('0x0')](_0x626d4d('0x4'),'second',_0x626d4d('0x2')),'allowNull':![],'defaultValue':_0x626d4d('0x4')},'description':{'type':Sequelize[_0x626d4d('0x3')]}}; \ No newline at end of file +const a181_0x3a54=['exports','second','STRING','first','third','ENUM'];(function(_0x3333a7,_0x3a54b2){const _0x4714c3=function(_0x4e59c5){while(--_0x4e59c5){_0x3333a7['push'](_0x3333a7['shift']());}};_0x4714c3(++_0x3a54b2);}(a181_0x3a54,0xd6));const a181_0x4714=function(_0x3333a7,_0x3a54b2){_0x3333a7=_0x3333a7-0x0;let _0x4714c3=a181_0x3a54[_0x3333a7];return _0x4714c3;};const _0x1739dc=a181_0x4714;'use strict';const Sequelize=require('sequelize');module[_0x1739dc('0x2')]={'name':{'type':Sequelize[_0x1739dc('0x4')],'allowNull':![]},'level':{'type':Sequelize[_0x1739dc('0x1')](_0x1739dc('0x5'),_0x1739dc('0x3'),_0x1739dc('0x0')),'allowNull':![],'defaultValue':_0x1739dc('0x5')},'description':{'type':Sequelize[_0x1739dc('0x4')]}}; \ No newline at end of file diff --git a/server/api/disposition/disposition.controller.js b/server/api/disposition/disposition.controller.js index 7085faa..5816c99 100644 --- a/server/api/disposition/disposition.controller.js +++ b/server/api/disposition/disposition.controller.js @@ -1 +1 @@ -const a182_0x8ad4=['show','user','create','sequelize','order','offset','send','params','get','sort','Disposition','UserProfileResource','destroy','name','keys','end','Unable\x20to\x20retrieve\x20the\x20current\x20user','length','pick','undefined','then','../../mysqldb','sendStatus','fieldName','attributes','merge','Content-Range','filters','include','status','options','error','fields','type','UserProfileSection','rawAttributes','body','role','query','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','limit','Dispositions','where','map','lodash','includeAll','VIRTUAL','../../components/parsers/qs','userProfileId','like','model','catch','../../config/logger','json','nolimit','set','intersection','update','filter','findOne','rows','findAll','index'];(function(_0xc6f2a9,_0x8ad411){const _0x142771=function(_0x54b8dd){while(--_0x54b8dd){_0xc6f2a9['push'](_0xc6f2a9['shift']());}};_0x142771(++_0x8ad411);}(a182_0x8ad4,0x148));const a182_0x1427=function(_0xc6f2a9,_0x8ad411){_0xc6f2a9=_0xc6f2a9-0x0;let _0x142771=a182_0x8ad4[_0xc6f2a9];return _0x142771;};const _0x274e77=a182_0x1427;'use strict';const _=require(_0x274e77('0x1f')),qs=require(_0x274e77('0x22')),logger=require(_0x274e77('0x27'))('api'),db=require(_0x274e77('0x8'))['db'],{Op}=require(_0x274e77('0x35'));function respondWithResult(_0x54b8dd,_0x171f40){return _0x171f40=_0x171f40||0xc8,function(_0x2f9ac0){const _0xdf6245=a182_0x1427;if(_0x2f9ac0)return _0x54b8dd[_0xdf6245('0x10')](_0x171f40)[_0xdf6245('0x28')](_0x2f9ac0);};}function respondWithFilteredResult(_0x209fc0,_0x2fd10a){return function(_0x7af1f5){const _0x3c8249=a182_0x1427;if(_0x7af1f5){const _0x530c1e=_0x7af1f5['count'],_0x54ffc8=_0x2fd10a[_0x3c8249('0x37')];let _0xa8b6b7=_0x2fd10a[_0x3c8249('0x37')]+_0x2fd10a[_0x3c8249('0x1b')],_0x1c9fcf;return _0xa8b6b7>=_0x530c1e?(_0xa8b6b7=_0x530c1e,_0x1c9fcf=0xc8):_0x1c9fcf=0xce,_0x209fc0['status'](_0x1c9fcf),_0x209fc0[_0x3c8249('0x2a')](_0x3c8249('0xd'),_0x54ffc8+'-'+_0xa8b6b7+'/'+_0x530c1e)['json'](_0x7af1f5);}return null;};}function saveUpdates(_0x2e9a53){return function(_0x5964ad){const _0x3ed23d=a182_0x1427;if(_0x5964ad)return _0x5964ad[_0x3ed23d('0x2c')](_0x2e9a53)[_0x3ed23d('0x7')](function(_0x595352){return _0x595352;});return null;};}function removeEntity(_0x3b4466){return function(_0x4ba418){const _0x5caa31=a182_0x1427;if(_0x4ba418)return _0x4ba418[_0x5caa31('0x3e')]()[_0x5caa31('0x7')](function(){const _0x24201d=_0x5caa31,_0x386dd3=_0x4ba418[_0x24201d('0x3a')]({'plain':!![]}),_0x5b9600=_0x24201d('0x1c');return db[_0x24201d('0x3d')][_0x24201d('0x3e')]({'where':{'type':_0x5b9600,'resourceId':_0x386dd3['id']}})[_0x24201d('0x7')](function(){return _0x4ba418;});})[_0x5caa31('0x7')](function(){const _0xbaad42=_0x5caa31;_0x3b4466[_0xbaad42('0x10')](0xcc)[_0xbaad42('0x2')]();});};}function handleEntityNotFound(_0x490139){return function(_0xead4bd){const _0xd47007=a182_0x1427;return!_0xead4bd&&_0x490139[_0xd47007('0x9')](0x194),_0xead4bd;};}function handleError(_0x1caa98,_0x64fc80){return _0x64fc80=_0x64fc80||0x1f4,function(_0x120a9b){const _0x383e71=a182_0x1427;logger[_0x383e71('0x12')](_0x120a9b['stack']),_0x120a9b[_0x383e71('0x0')]&&delete _0x120a9b[_0x383e71('0x0')],_0x1caa98['status'](_0x64fc80)[_0x383e71('0x38')](_0x120a9b);};}exports[_0x274e77('0x31')]=function(_0xb7b142,_0x1a66ea){const _0x471599=_0x274e77;let _0x444573={};const _0x80800d={},_0x47262f={'count':0x0,'rows':[]},_0x1f13a2=_[_0x471599('0x1e')](db['Disposition'][_0x471599('0x16')],function(_0x3fe764){const _0x3162fd=_0x471599;return{'name':_0x3fe764[_0x3162fd('0xa')],'type':_0x3fe764[_0x3162fd('0x14')]['key']};});_0x80800d[_0x471599('0x25')]=_[_0x471599('0x1e')](_0x1f13a2,_0x471599('0x0')),_0x80800d['query']=_[_0x471599('0x1')](_0xb7b142[_0x471599('0x19')]),_0x80800d[_0x471599('0xe')]=_[_0x471599('0x2b')](_0x80800d[_0x471599('0x25')],_0x80800d[_0x471599('0x19')]),_0x444573[_0x471599('0xb')]=_['intersection'](_0x80800d[_0x471599('0x25')],qs[_0x471599('0x13')](_0xb7b142[_0x471599('0x19')]['fields'])),_0x444573[_0x471599('0xb')]=_0x444573[_0x471599('0xb')][_0x471599('0x4')]?_0x444573[_0x471599('0xb')]:_0x80800d[_0x471599('0x25')];typeof _0xb7b142[_0x471599('0x19')][_0x471599('0x29')]===_0x471599('0x6')&&(_0x444573[_0x471599('0x1b')]=qs['limit'](_0xb7b142[_0x471599('0x19')][_0x471599('0x1b')]),_0x444573['offset']=qs['offset'](_0xb7b142[_0x471599('0x19')][_0x471599('0x37')]));_0x444573[_0x471599('0x36')]=qs[_0x471599('0x3b')](_0xb7b142[_0x471599('0x19')]['sort']),_0x444573['where']=qs[_0x471599('0xe')](_[_0x471599('0x5')](_0xb7b142[_0x471599('0x19')],_0x80800d[_0x471599('0xe')]),_0x1f13a2);_0xb7b142[_0x471599('0x19')][_0x471599('0x2d')]&&(_0x444573[_0x471599('0x1d')]=_[_0x471599('0xc')](_0x444573[_0x471599('0x1d')],{[Op['or']]:_[_0x471599('0x1e')](_0x1f13a2,function(_0x2aa203){const _0x4b474b=_0x471599;if(_0x2aa203[_0x4b474b('0x14')]!==_0x4b474b('0x21')){const _0x5dbf85={};return _0x5dbf85[_0x2aa203[_0x4b474b('0x0')]]={[Op[_0x4b474b('0x24')]]:'%'+_0xb7b142[_0x4b474b('0x19')][_0x4b474b('0x2d')]+'%'},_0x5dbf85;}})}));_0x444573=_[_0x471599('0xc')]({},_0x444573,_0xb7b142[_0x471599('0x11')]);const _0x368303={'where':_0x444573['where']};return db[_0x471599('0x3c')]['count'](_0x368303)[_0x471599('0x7')](function(_0x4b47d2){const _0x1d9324=_0x471599;return _0x47262f['count']=_0x4b47d2,_0xb7b142[_0x1d9324('0x19')][_0x1d9324('0x20')]&&(_0x444573[_0x1d9324('0xf')]=[{'all':!![]}]),db[_0x1d9324('0x3c')][_0x1d9324('0x30')](_0x444573);})[_0x471599('0x7')](function(_0x58b01a){const _0xf6ac7f=_0x471599;return _0x47262f[_0xf6ac7f('0x2f')]=_0x58b01a,_0x47262f;})['then'](respondWithFilteredResult(_0x1a66ea,_0x444573))['catch'](handleError(_0x1a66ea,null));},exports[_0x274e77('0x32')]=function(_0x4745a6,_0x530e7f){const _0x32dc67=_0x274e77;let _0x110c21={'raw':!![],'where':{'id':_0x4745a6[_0x32dc67('0x39')]['id']}};const _0x10492b={};return _0x10492b['model']=_[_0x32dc67('0x1')](db[_0x32dc67('0x3c')][_0x32dc67('0x16')]),_0x10492b[_0x32dc67('0x19')]=_[_0x32dc67('0x1')](_0x4745a6[_0x32dc67('0x19')]),_0x10492b[_0x32dc67('0xe')]=_[_0x32dc67('0x2b')](_0x10492b['model'],_0x10492b[_0x32dc67('0x19')]),_0x110c21['attributes']=_['intersection'](_0x10492b['model'],qs[_0x32dc67('0x13')](_0x4745a6[_0x32dc67('0x19')][_0x32dc67('0x13')])),_0x110c21[_0x32dc67('0xb')]=_0x110c21['attributes']['length']?_0x110c21[_0x32dc67('0xb')]:_0x10492b[_0x32dc67('0x25')],_0x4745a6['query'][_0x32dc67('0x20')]&&(_0x110c21[_0x32dc67('0xf')]=[{'all':!![]}]),_0x110c21=_[_0x32dc67('0xc')]({},_0x110c21,_0x4745a6['options']),db[_0x32dc67('0x3c')]['findOne'](_0x110c21)[_0x32dc67('0x7')](handleEntityNotFound(_0x530e7f,null))[_0x32dc67('0x7')](respondWithResult(_0x530e7f,null))[_0x32dc67('0x26')](handleError(_0x530e7f,null));},exports[_0x274e77('0x34')]=function(_0x428c29,_0x2bdf1c){const _0x2c2a4e=_0x274e77;return db['Disposition'][_0x2c2a4e('0x34')](_0x428c29['body'],{})[_0x2c2a4e('0x7')](function(_0x1640a2){const _0x26f42f=_0x2c2a4e,_0x6bc45e=_0x428c29[_0x26f42f('0x33')][_0x26f42f('0x3a')]({'plain':!![]});if(!_0x6bc45e)throw new Error(_0x26f42f('0x3'));if(_0x6bc45e[_0x26f42f('0x18')]===_0x26f42f('0x33')){const _0x4a4f0d=_0x1640a2[_0x26f42f('0x3a')]({'plain':!![]}),_0x41cfa6='Dispositions';return db[_0x26f42f('0x15')][_0x26f42f('0x2e')]({'where':{'name':_0x41cfa6,'userProfileId':_0x6bc45e[_0x26f42f('0x23')]},'raw':!![]})[_0x26f42f('0x7')](function(_0x372c80){const _0x50ee26=_0x26f42f;return _0x372c80&&_0x372c80['autoAssociation']===0x0?db['UserProfileResource']['create']({'name':_0x4a4f0d[_0x50ee26('0x0')],'resourceId':_0x4a4f0d['id'],'type':_0x372c80[_0x50ee26('0x0')],'sectionId':_0x372c80['id']},{})[_0x50ee26('0x7')](function(){return _0x1640a2;}):_0x1640a2;})[_0x26f42f('0x26')](function(_0x548051){const _0x30fd12=_0x26f42f;logger[_0x30fd12('0x12')](_0x30fd12('0x1a'),_0x548051);throw _0x548051;});}return _0x1640a2;})['then'](respondWithResult(_0x2bdf1c,0xc9))[_0x2c2a4e('0x26')](handleError(_0x2bdf1c,null));},exports[_0x274e77('0x2c')]=function(_0x4a6e57,_0x403d6f){const _0x11e955=_0x274e77;return _0x4a6e57[_0x11e955('0x17')]['id']&&delete _0x4a6e57[_0x11e955('0x17')]['id'],db[_0x11e955('0x3c')]['findOne']({'where':{'id':_0x4a6e57[_0x11e955('0x39')]['id']}})[_0x11e955('0x7')](handleEntityNotFound(_0x403d6f,null))[_0x11e955('0x7')](saveUpdates(_0x4a6e57[_0x11e955('0x17')],null))[_0x11e955('0x7')](respondWithResult(_0x403d6f,null))[_0x11e955('0x26')](handleError(_0x403d6f,null));},exports['destroy']=function(_0x19a433,_0x12ff82){const _0x204476=_0x274e77;return db[_0x204476('0x3c')][_0x204476('0x2e')]({'where':{'id':_0x19a433[_0x204476('0x39')]['id']}})[_0x204476('0x7')](handleEntityNotFound(_0x12ff82,null))[_0x204476('0x7')](removeEntity(_0x12ff82,null))[_0x204476('0x26')](handleError(_0x12ff82,null));}; \ No newline at end of file +const a182_0x9615=['UserProfileSection','destroy','map','Dispositions','create','count','keys','index','findOne','get','undefined','rawAttributes','query','../../components/parsers/qs','fields','then','stack','Unable\x20to\x20retrieve\x20the\x20current\x20user','where','params','pick','show','autoAssociation','offset','sequelize','name','send','json','../../config/logger','attributes','status','includeAll','Content-Range','findAll','options','api','limit','error','type','sendStatus','UserProfileResource','set','intersection','update','../../mysqldb','include','filter','end','filters','Disposition','key','userProfileId','nolimit','sort','merge','catch','fieldName','user','order','length','model','body'];(function(_0x5893a6,_0x9615e8){const _0x5bd97e=function(_0x5729ea){while(--_0x5729ea){_0x5893a6['push'](_0x5893a6['shift']());}};_0x5bd97e(++_0x9615e8);}(a182_0x9615,0x114));const a182_0x5bd9=function(_0x5893a6,_0x9615e8){_0x5893a6=_0x5893a6-0x0;let _0x5bd97e=a182_0x9615[_0x5893a6];return _0x5bd97e;};const _0x37213e=a182_0x5bd9;'use strict';const _=require('lodash'),qs=require(_0x37213e('0x2f')),logger=require(_0x37213e('0x0'))(_0x37213e('0x7')),db=require(_0x37213e('0x10'))['db'],{Op}=require(_0x37213e('0x3a'));function respondWithResult(_0x5729ea,_0x1ae009){return _0x1ae009=_0x1ae009||0xc8,function(_0x45f2f5){const _0x58d69b=a182_0x5bd9;if(_0x45f2f5)return _0x5729ea[_0x58d69b('0x2')](_0x1ae009)[_0x58d69b('0x3d')](_0x45f2f5);};}function respondWithFilteredResult(_0x302c0a,_0xb44b65){return function(_0x299740){const _0x3c30d1=a182_0x5bd9;if(_0x299740){const _0x5120e9=_0x299740['count'],_0x20c674=_0xb44b65[_0x3c30d1('0x39')];let _0x570ed7=_0xb44b65[_0x3c30d1('0x39')]+_0xb44b65[_0x3c30d1('0x8')],_0x55d5f8;return _0x570ed7>=_0x5120e9?(_0x570ed7=_0x5120e9,_0x55d5f8=0xc8):_0x55d5f8=0xce,_0x302c0a[_0x3c30d1('0x2')](_0x55d5f8),_0x302c0a[_0x3c30d1('0xd')](_0x3c30d1('0x4'),_0x20c674+'-'+_0x570ed7+'/'+_0x5120e9)['json'](_0x299740);}return null;};}function saveUpdates(_0x503227){return function(_0x248b95){const _0x317285=a182_0x5bd9;if(_0x248b95)return _0x248b95['update'](_0x503227)[_0x317285('0x31')](function(_0x37b7c8){return _0x37b7c8;});return null;};}function removeEntity(_0x413a02){return function(_0x22ec2b){const _0x5d9047=a182_0x5bd9;if(_0x22ec2b)return _0x22ec2b[_0x5d9047('0x23')]()['then'](function(){const _0x3f1fdc=_0x5d9047,_0x1a8d40=_0x22ec2b['get']({'plain':!![]}),_0x3fa762=_0x3f1fdc('0x25');return db['UserProfileResource'][_0x3f1fdc('0x23')]({'where':{'type':_0x3fa762,'resourceId':_0x1a8d40['id']}})['then'](function(){return _0x22ec2b;});})[_0x5d9047('0x31')](function(){const _0xf50b72=_0x5d9047;_0x413a02[_0xf50b72('0x2')](0xcc)[_0xf50b72('0x13')]();});};}function handleEntityNotFound(_0x5cc2f2){return function(_0x88bb7c){const _0x348d96=a182_0x5bd9;return!_0x88bb7c&&_0x5cc2f2[_0x348d96('0xb')](0x194),_0x88bb7c;};}function handleError(_0x568d70,_0x168de6){return _0x168de6=_0x168de6||0x1f4,function(_0x2f11c9){const _0x5d7f92=a182_0x5bd9;logger[_0x5d7f92('0x9')](_0x2f11c9[_0x5d7f92('0x32')]),_0x2f11c9[_0x5d7f92('0x3b')]&&delete _0x2f11c9[_0x5d7f92('0x3b')],_0x568d70['status'](_0x168de6)[_0x5d7f92('0x3c')](_0x2f11c9);};}exports[_0x37213e('0x29')]=function(_0x2b27f8,_0x39bfe9){const _0xaf6b5=_0x37213e;let _0x46dbd6={};const _0x39b9cc={},_0x431da6={'count':0x0,'rows':[]},_0x2b89d7=_[_0xaf6b5('0x24')](db['Disposition'][_0xaf6b5('0x2d')],function(_0x375b2){const _0x300882=_0xaf6b5;return{'name':_0x375b2[_0x300882('0x1c')],'type':_0x375b2[_0x300882('0xa')][_0x300882('0x16')]};});_0x39b9cc[_0xaf6b5('0x20')]=_[_0xaf6b5('0x24')](_0x2b89d7,_0xaf6b5('0x3b')),_0x39b9cc['query']=_[_0xaf6b5('0x28')](_0x2b27f8['query']),_0x39b9cc[_0xaf6b5('0x14')]=_[_0xaf6b5('0xe')](_0x39b9cc[_0xaf6b5('0x20')],_0x39b9cc[_0xaf6b5('0x2e')]),_0x46dbd6[_0xaf6b5('0x1')]=_[_0xaf6b5('0xe')](_0x39b9cc['model'],qs[_0xaf6b5('0x30')](_0x2b27f8[_0xaf6b5('0x2e')]['fields'])),_0x46dbd6['attributes']=_0x46dbd6[_0xaf6b5('0x1')][_0xaf6b5('0x1f')]?_0x46dbd6[_0xaf6b5('0x1')]:_0x39b9cc[_0xaf6b5('0x20')];typeof _0x2b27f8[_0xaf6b5('0x2e')][_0xaf6b5('0x18')]===_0xaf6b5('0x2c')&&(_0x46dbd6['limit']=qs[_0xaf6b5('0x8')](_0x2b27f8['query']['limit']),_0x46dbd6[_0xaf6b5('0x39')]=qs['offset'](_0x2b27f8[_0xaf6b5('0x2e')][_0xaf6b5('0x39')]));_0x46dbd6[_0xaf6b5('0x1e')]=qs[_0xaf6b5('0x19')](_0x2b27f8[_0xaf6b5('0x2e')][_0xaf6b5('0x19')]),_0x46dbd6[_0xaf6b5('0x34')]=qs[_0xaf6b5('0x14')](_[_0xaf6b5('0x36')](_0x2b27f8['query'],_0x39b9cc[_0xaf6b5('0x14')]),_0x2b89d7);_0x2b27f8[_0xaf6b5('0x2e')][_0xaf6b5('0x12')]&&(_0x46dbd6[_0xaf6b5('0x34')]=_['merge'](_0x46dbd6['where'],{[Op['or']]:_['map'](_0x2b89d7,function(_0x566209){const _0x22b31f=_0xaf6b5;if(_0x566209[_0x22b31f('0xa')]!=='VIRTUAL'){const _0x30e7e1={};return _0x30e7e1[_0x566209['name']]={[Op['like']]:'%'+_0x2b27f8[_0x22b31f('0x2e')][_0x22b31f('0x12')]+'%'},_0x30e7e1;}})}));_0x46dbd6=_[_0xaf6b5('0x1a')]({},_0x46dbd6,_0x2b27f8[_0xaf6b5('0x6')]);const _0x235288={'where':_0x46dbd6[_0xaf6b5('0x34')]};return db[_0xaf6b5('0x15')]['count'](_0x235288)['then'](function(_0x45d95b){const _0x2337bf=_0xaf6b5;return _0x431da6[_0x2337bf('0x27')]=_0x45d95b,_0x2b27f8[_0x2337bf('0x2e')][_0x2337bf('0x3')]&&(_0x46dbd6[_0x2337bf('0x11')]=[{'all':!![]}]),db[_0x2337bf('0x15')][_0x2337bf('0x5')](_0x46dbd6);})['then'](function(_0x5a4f44){return _0x431da6['rows']=_0x5a4f44,_0x431da6;})[_0xaf6b5('0x31')](respondWithFilteredResult(_0x39bfe9,_0x46dbd6))[_0xaf6b5('0x1b')](handleError(_0x39bfe9,null));},exports[_0x37213e('0x37')]=function(_0x2728c0,_0xe709f){const _0x554cbb=_0x37213e;let _0x6b7c98={'raw':!![],'where':{'id':_0x2728c0[_0x554cbb('0x35')]['id']}};const _0x634e6={};return _0x634e6[_0x554cbb('0x20')]=_['keys'](db['Disposition'][_0x554cbb('0x2d')]),_0x634e6['query']=_[_0x554cbb('0x28')](_0x2728c0[_0x554cbb('0x2e')]),_0x634e6[_0x554cbb('0x14')]=_[_0x554cbb('0xe')](_0x634e6[_0x554cbb('0x20')],_0x634e6[_0x554cbb('0x2e')]),_0x6b7c98[_0x554cbb('0x1')]=_[_0x554cbb('0xe')](_0x634e6[_0x554cbb('0x20')],qs[_0x554cbb('0x30')](_0x2728c0[_0x554cbb('0x2e')]['fields'])),_0x6b7c98[_0x554cbb('0x1')]=_0x6b7c98[_0x554cbb('0x1')][_0x554cbb('0x1f')]?_0x6b7c98[_0x554cbb('0x1')]:_0x634e6[_0x554cbb('0x20')],_0x2728c0[_0x554cbb('0x2e')]['includeAll']&&(_0x6b7c98[_0x554cbb('0x11')]=[{'all':!![]}]),_0x6b7c98=_[_0x554cbb('0x1a')]({},_0x6b7c98,_0x2728c0[_0x554cbb('0x6')]),db[_0x554cbb('0x15')][_0x554cbb('0x2a')](_0x6b7c98)[_0x554cbb('0x31')](handleEntityNotFound(_0xe709f,null))[_0x554cbb('0x31')](respondWithResult(_0xe709f,null))[_0x554cbb('0x1b')](handleError(_0xe709f,null));},exports['create']=function(_0x203ae8,_0x17ad6c){const _0x334261=_0x37213e;return db[_0x334261('0x15')][_0x334261('0x26')](_0x203ae8[_0x334261('0x21')],{})['then'](function(_0x14063d){const _0x54e66c=_0x334261,_0x2bdb90=_0x203ae8[_0x54e66c('0x1d')]['get']({'plain':!![]});if(!_0x2bdb90)throw new Error(_0x54e66c('0x33'));if(_0x2bdb90['role']==='user'){const _0x987908=_0x14063d[_0x54e66c('0x2b')]({'plain':!![]}),_0x27bf44=_0x54e66c('0x25');return db[_0x54e66c('0x22')]['findOne']({'where':{'name':_0x27bf44,'userProfileId':_0x2bdb90[_0x54e66c('0x17')]},'raw':!![]})['then'](function(_0x518522){const _0x5f519f=_0x54e66c;return _0x518522&&_0x518522[_0x5f519f('0x38')]===0x0?db[_0x5f519f('0xc')][_0x5f519f('0x26')]({'name':_0x987908['name'],'resourceId':_0x987908['id'],'type':_0x518522['name'],'sectionId':_0x518522['id']},{})['then'](function(){return _0x14063d;}):_0x14063d;})[_0x54e66c('0x1b')](function(_0x13b312){const _0x11dff5=_0x54e66c;logger[_0x11dff5('0x9')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x13b312);throw _0x13b312;});}return _0x14063d;})[_0x334261('0x31')](respondWithResult(_0x17ad6c,0xc9))[_0x334261('0x1b')](handleError(_0x17ad6c,null));},exports[_0x37213e('0xf')]=function(_0x50a2f5,_0x2f5702){const _0x13aa36=_0x37213e;return _0x50a2f5[_0x13aa36('0x21')]['id']&&delete _0x50a2f5[_0x13aa36('0x21')]['id'],db[_0x13aa36('0x15')][_0x13aa36('0x2a')]({'where':{'id':_0x50a2f5[_0x13aa36('0x35')]['id']}})[_0x13aa36('0x31')](handleEntityNotFound(_0x2f5702,null))[_0x13aa36('0x31')](saveUpdates(_0x50a2f5[_0x13aa36('0x21')],null))['then'](respondWithResult(_0x2f5702,null))[_0x13aa36('0x1b')](handleError(_0x2f5702,null));},exports[_0x37213e('0x23')]=function(_0x395a66,_0x15e74c){const _0x23abfa=_0x37213e;return db[_0x23abfa('0x15')]['findOne']({'where':{'id':_0x395a66[_0x23abfa('0x35')]['id']}})[_0x23abfa('0x31')](handleEntityNotFound(_0x15e74c,null))[_0x23abfa('0x31')](removeEntity(_0x15e74c,null))[_0x23abfa('0x1b')](handleError(_0x15e74c,null));}; \ No newline at end of file diff --git a/server/api/disposition/disposition.model.js b/server/api/disposition/disposition.model.js index 1bb897d..0b1dee4 100644 --- a/server/api/disposition/disposition.model.js +++ b/server/api/disposition/disposition.model.js @@ -1 +1 @@ -const a183_0x4ed9=['define','ListId','name_whatsapp','name_fax','SmsAccountId','./disposition.attributes','OpenchannelAccountId','name_sms','tools_dispositions','name','name_openchannel','name_chat'];(function(_0x2785d1,_0x4ed98a){const _0x2ef811=function(_0xbb56cd){while(--_0xbb56cd){_0x2785d1['push'](_0x2785d1['shift']());}};_0x2ef811(++_0x4ed98a);}(a183_0x4ed9,0x1b6));const a183_0x2ef8=function(_0x2785d1,_0x4ed98a){_0x2785d1=_0x2785d1-0x0;let _0x2ef811=a183_0x4ed9[_0x2785d1];return _0x2ef811;};const _0x7bae51=a183_0x2ef8;'use strict';const attributes=require(_0x7bae51('0xb'));module['exports']=function(_0xbb56cd){const _0x41b726=_0x7bae51,_0x6d78ab=_0xbb56cd[_0x41b726('0x6')]('Disposition',attributes,{'tableName':_0x41b726('0x2'),'paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':['name',_0x41b726('0x7')]},{'unique':!![],'name':_0x41b726('0x5'),'fields':[_0x41b726('0x3'),'ChatWebsiteId']},{'unique':!![],'name':'name_mail','fields':[_0x41b726('0x3'),'MailAccountId']},{'unique':!![],'name':_0x41b726('0x1'),'fields':[_0x41b726('0x3'),_0x41b726('0xa')]},{'unique':!![],'name':_0x41b726('0x9'),'fields':['name','FaxAccountId']},{'unique':!![],'name':_0x41b726('0x4'),'fields':[_0x41b726('0x3'),_0x41b726('0x0')]},{'unique':!![],'name':_0x41b726('0x8'),'fields':[_0x41b726('0x3'),'WhatsappAccountId']}],'timestamps':!![]});return _0x6d78ab;}; \ No newline at end of file +const a183_0x289d=['MailAccountId','name_openchannel','Disposition','./disposition.attributes','define','name','name_fax','name_mail','name_sms','tools_dispositions','name_chat','ListId','name_whatsapp','OpenchannelAccountId','FaxAccountId'];(function(_0x46dedd,_0x289dbc){const _0x5267b3=function(_0x3f7873){while(--_0x3f7873){_0x46dedd['push'](_0x46dedd['shift']());}};_0x5267b3(++_0x289dbc);}(a183_0x289d,0xf9));const a183_0x5267=function(_0x46dedd,_0x289dbc){_0x46dedd=_0x46dedd-0x0;let _0x5267b3=a183_0x289d[_0x46dedd];return _0x5267b3;};const _0x3cc6fb=a183_0x5267;'use strict';const attributes=require(_0x3cc6fb('0x9'));module['exports']=function(_0x3f7873){const _0x40bb42=_0x3cc6fb,_0x224275=_0x3f7873[_0x40bb42('0xa')](_0x40bb42('0x8'),attributes,{'tableName':_0x40bb42('0x0'),'paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':[_0x40bb42('0xb'),_0x40bb42('0x2')]},{'unique':!![],'name':_0x40bb42('0x1'),'fields':[_0x40bb42('0xb'),'ChatWebsiteId']},{'unique':!![],'name':_0x40bb42('0xd'),'fields':[_0x40bb42('0xb'),_0x40bb42('0x6')]},{'unique':!![],'name':_0x40bb42('0xe'),'fields':[_0x40bb42('0xb'),'SmsAccountId']},{'unique':!![],'name':_0x40bb42('0xc'),'fields':[_0x40bb42('0xb'),_0x40bb42('0x5')]},{'unique':!![],'name':_0x40bb42('0x7'),'fields':[_0x40bb42('0xb'),_0x40bb42('0x4')]},{'unique':!![],'name':_0x40bb42('0x3'),'fields':[_0x40bb42('0xb'),'WhatsappAccountId']}],'timestamps':!![]});return _0x224275;}; \ No newline at end of file diff --git a/server/api/disposition/index.js b/server/api/disposition/index.js index dadd520..3454ada 100644 --- a/server/api/disposition/index.js +++ b/server/api/disposition/index.js @@ -1 +1 @@ -const a184_0x5d7e=['get','isAuthenticated','/:id','show','index','update','put','destroy','Router','delete','exports','express','create','post'];(function(_0x576e2c,_0x5d7e59){const _0x583bc5=function(_0xbe4ae4){while(--_0xbe4ae4){_0x576e2c['push'](_0x576e2c['shift']());}};_0x583bc5(++_0x5d7e59);}(a184_0x5d7e,0x7a));const a184_0x583b=function(_0x576e2c,_0x5d7e59){_0x576e2c=_0x576e2c-0x0;let _0x583bc5=a184_0x5d7e[_0x576e2c];return _0x583bc5;};const _0x29bbe4=a184_0x583b;'use strict';const express=require(_0x29bbe4('0x1')),router=express[_0x29bbe4('0xc')](),auth=require('../../components/auth/service'),controller=require('./disposition.controller');router['get']('/',auth[_0x29bbe4('0x5')](),controller[_0x29bbe4('0x8')]),router[_0x29bbe4('0x4')](_0x29bbe4('0x6'),auth[_0x29bbe4('0x5')](),controller[_0x29bbe4('0x7')]),router[_0x29bbe4('0x3')]('/',auth[_0x29bbe4('0x5')](),controller[_0x29bbe4('0x2')]),router[_0x29bbe4('0xa')](_0x29bbe4('0x6'),auth[_0x29bbe4('0x5')](),controller[_0x29bbe4('0x9')]),router[_0x29bbe4('0xd')](_0x29bbe4('0x6'),auth[_0x29bbe4('0x5')](),controller[_0x29bbe4('0xb')]),module[_0x29bbe4('0x0')]=router; \ No newline at end of file +const a184_0x407d=['/:id','update','post','show','get','destroy','isAuthenticated','../../components/auth/service'];(function(_0x449bfa,_0x407d39){const _0xfc4353=function(_0x5c05b1){while(--_0x5c05b1){_0x449bfa['push'](_0x449bfa['shift']());}};_0xfc4353(++_0x407d39);}(a184_0x407d,0xee));const a184_0xfc43=function(_0x449bfa,_0x407d39){_0x449bfa=_0x449bfa-0x0;let _0xfc4353=a184_0x407d[_0x449bfa];return _0xfc4353;};const _0x40f0b9=a184_0xfc43;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x40f0b9('0x1')),controller=require('./disposition.controller');router[_0x40f0b9('0x6')]('/',auth[_0x40f0b9('0x0')](),controller['index']),router[_0x40f0b9('0x6')](_0x40f0b9('0x2'),auth[_0x40f0b9('0x0')](),controller[_0x40f0b9('0x5')]),router[_0x40f0b9('0x4')]('/',auth[_0x40f0b9('0x0')](),controller['create']),router['put'](_0x40f0b9('0x2'),auth['isAuthenticated'](),controller[_0x40f0b9('0x3')]),router['delete'](_0x40f0b9('0x2'),auth[_0x40f0b9('0x0')](),controller[_0x40f0b9('0x7')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.attributes.js b/server/api/faxAccount/faxAccount.attributes.js index c2d27a2..d0f5199 100644 --- a/server/api/faxAccount/faxAccount.attributes.js +++ b/server/api/faxAccount/faxAccount.attributes.js @@ -1 +1 @@ -const a185_0x195f=['2400','DADHI','4800','14400','xCALLY\x20Motion\x20Fax','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','9600','KHOMP','mandatoryDisposition','exports','INTEGER','7200','SIP','IAX','STRING','localstationid','BOOLEAN','setDataValue','12000','TEXT','yes','v17,v27,v29','ENUM','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}'];(function(_0x5d73f1,_0x195f6b){const _0xfe1aca=function(_0x1e647f){while(--_0x1e647f){_0x5d73f1['push'](_0x5d73f1['shift']());}};_0xfe1aca(++_0x195f6b);}(a185_0x195f,0x179));const a185_0xfe1a=function(_0x5d73f1,_0x195f6b){_0x5d73f1=_0x5d73f1-0x0;let _0xfe1aca=a185_0x195f[_0x5d73f1];return _0xfe1aca;};const _0x26b5c6=a185_0xfe1a;'use strict';const Sequelize=require('sequelize');module[_0x26b5c6('0x8')]={'name':{'type':Sequelize[_0x26b5c6('0xd')],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize['STRING']},'ecm':{'type':Sequelize['ENUM'](_0x26b5c6('0x13'),'no'),'defaultValue':_0x26b5c6('0x13')},'headerinfo':{'type':Sequelize['STRING'],'defaultValue':_0x26b5c6('0x2')},'localstationid':{'type':Sequelize[_0x26b5c6('0xd')],'unique':_0x26b5c6('0xe')},'minrate':{'type':Sequelize[_0x26b5c6('0x15')](_0x26b5c6('0x17'),_0x26b5c6('0x0'),_0x26b5c6('0xa'),'9600','12000',_0x26b5c6('0x1')),'defaultValue':_0x26b5c6('0x0')},'maxrate':{'type':Sequelize[_0x26b5c6('0x15')](_0x26b5c6('0x17'),'4800',_0x26b5c6('0xa'),_0x26b5c6('0x5'),_0x26b5c6('0x11'),'14400'),'defaultValue':_0x26b5c6('0x1')},'modem':{'type':Sequelize[_0x26b5c6('0xd')],'defaultValue':_0x26b5c6('0x14')},'gateway':{'type':Sequelize[_0x26b5c6('0xd')],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':Sequelize[_0x26b5c6('0xd')],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':Sequelize[_0x26b5c6('0x9')],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize[_0x26b5c6('0x15')](_0x26b5c6('0xb'),_0x26b5c6('0xc'),_0x26b5c6('0x18'),_0x26b5c6('0x6')),'defaultValue':_0x26b5c6('0xb')},'key':{'type':Sequelize['STRING'],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x26b5c6('0x12')],'defaultValue':function(){const _0x11ee2d=_0x26b5c6;return _0x11ee2d('0x16');}},'notificationSound':{'type':Sequelize[_0x26b5c6('0xf')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x26b5c6('0xf')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x26b5c6('0xf')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x26b5c6('0x9')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x26b5c6('0xf')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x26b5c6('0x9')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x26b5c6('0x9')],'allowNull':!![],'defaultValue':null,'comment':_0x26b5c6('0x4')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x26b5c6('0x3'),'set':function(_0x1e647f){const _0x49477d=_0x26b5c6;if(!_0x1e647f)this[_0x49477d('0x10')]('mandatoryDispositionPauseId',null);this[_0x49477d('0x10')](_0x49477d('0x7'),_0x1e647f);}}}; \ No newline at end of file +const a185_0x3165=['Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','ENUM','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','14400','INTEGER','mandatoryDispositionPauseId','SIP','4800','localstationid','setDataValue','v17,v27,v29','IAX','xCALLY\x20Motion\x20Fax','yes','sequelize','BOOLEAN','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','TEXT','7200','12000','KHOMP','STRING','mandatoryDisposition','DADHI','9600'];(function(_0x4f9f29,_0x31655e){const _0x4bc909=function(_0x1ef67e){while(--_0x1ef67e){_0x4f9f29['push'](_0x4f9f29['shift']());}};_0x4bc909(++_0x31655e);}(a185_0x3165,0x197));const a185_0x4bc9=function(_0x4f9f29,_0x31655e){_0x4f9f29=_0x4f9f29-0x0;let _0x4bc909=a185_0x3165[_0x4f9f29];return _0x4bc909;};const _0x4c3420=a185_0x4bc9;'use strict';const Sequelize=require(_0x4c3420('0x7'));module['exports']={'name':{'type':Sequelize[_0x4c3420('0xe')],'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize['STRING']},'ecm':{'type':Sequelize[_0x4c3420('0x13')]('yes','no'),'defaultValue':_0x4c3420('0x6')},'headerinfo':{'type':Sequelize[_0x4c3420('0xe')],'defaultValue':_0x4c3420('0x5')},'localstationid':{'type':Sequelize[_0x4c3420('0xe')],'unique':_0x4c3420('0x1')},'minrate':{'type':Sequelize[_0x4c3420('0x13')]('2400',_0x4c3420('0x0'),_0x4c3420('0xb'),_0x4c3420('0x11'),_0x4c3420('0xc'),_0x4c3420('0x15')),'defaultValue':_0x4c3420('0x0')},'maxrate':{'type':Sequelize[_0x4c3420('0x13')]('2400','4800',_0x4c3420('0xb'),_0x4c3420('0x11'),_0x4c3420('0xc'),_0x4c3420('0x15')),'defaultValue':_0x4c3420('0x15')},'modem':{'type':Sequelize[_0x4c3420('0xe')],'defaultValue':_0x4c3420('0x3')},'gateway':{'type':Sequelize[_0x4c3420('0xe')],'defaultValue':'no','validate':{'is':/^(?:yes|no|[0-9]+)$/}},'faxdetect':{'type':Sequelize['STRING'],'defaultValue':'no','validate':{'is':/^(?:yes|no|t38|cng|[0-9]+)$/}},'t38timeout':{'type':Sequelize[_0x4c3420('0x16')],'defaultValue':0x1388,'validate':{'min':0x3e8}},'tech':{'type':Sequelize[_0x4c3420('0x13')](_0x4c3420('0x18'),_0x4c3420('0x4'),_0x4c3420('0x10'),_0x4c3420('0xd')),'defaultValue':_0x4c3420('0x18')},'key':{'type':Sequelize[_0x4c3420('0xe')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x4c3420('0xa')],'defaultValue':function(){const _0x57354d=_0x4c3420;return _0x57354d('0x12');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x4c3420('0x8')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x4c3420('0x16')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x4c3420('0x8')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x4c3420('0x16')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x4c3420('0x8')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x4c3420('0x16')],'allowNull':!![],'defaultValue':null,'comment':_0x4c3420('0x9')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x4c3420('0x14'),'set':function(_0x1ef67e){const _0x5c7516=_0x4c3420;if(!_0x1ef67e)this[_0x5c7516('0x2')](_0x5c7516('0x17'),null);this[_0x5c7516('0x2')](_0x5c7516('0xf'),_0x1ef67e);}}}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.controller.js b/server/api/faxAccount/faxAccount.controller.js index e3402b4..f397275 100644 --- a/server/api/faxAccount/faxAccount.controller.js +++ b/server/api/faxAccount/faxAccount.controller.js @@ -1 +1 @@ -const a186_0x1b08=['Unable\x20to\x20retrieve\x20the\x20current\x20user','lodash','transaction','user','../../components/parsers/qs','removeAnswers','TrunkId','omit','findByPk','info','maxrate','sequelize','filename','map','params','FaxAccount','sendStatus','model','../../mysqldb','from','ListId','includeAll','gte','name','update','CDR(type)=inbound-fax','destroy','FaxApplication','\x22%s\x22\x20<%s>','getMessages','show','system','nolimit','DESC','/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','addInteraction','Contacts','mandatoryDispositionPause','filters','http','../../config/logger','pick','Tags','getAgents','CannedAnswer','tech','tag','FaxMessage','Send\x20Fax\x20failed','FaxAccount,\x20%s,\x20%s','./faxAccount.socket','Contact','FaxAccount,\x20%s,\x20%s,\x20%s','Messages','Contact\x20not\x20found','Answer','SendFaxRpc,\x20%s','include','request','Pause','describe','attachments','priority','order','keys','ecm','UserProfileResource','push','app','addAgents','Content-Range','options','format','fax','FaxAccountId','isArray','FaxAccounts','rawAttributes','Disposition','Wait','addDisposition','FaxInteraction','where','userFaxAccount:remove','rows','List\x20not\x20found','FAXOPT(','split','Set','YYYY-MM-DD\x20HH:mm:ss','VoiceExtension','root','minrate','limit','faxdetect','set','out','isNil','t38timeout','then','List','basename','defaults','length','addApplications','Owner','client','json','sort','updatedAt','fullname','internal','SendFax','userFaxAccount:save','intersection','CmList','findAll','get','createdAt','exten','like','type','fields','error','getApplications','attributes','from-voip-provider','getInteractions','message','$gte','dataValues','description','filter','undefined','color','User','emit','UserProfileSection','index','key','localstationid','create','Fax\x20Extension','addAnswer','merge','body','server/files/attachments','join','context','../../rediscache','jayson/promise','ids','CmContact','removeAgents','util','findOne','status','request\x20sent','count','getDispositions','query','autoAssociation','path','getAnswers','send','fieldName','headerinfo','catch','offset'];(function(_0xbf02de,_0x1b0831){const _0x2554cb=function(_0x2eb65f){while(--_0x2eb65f){_0xbf02de['push'](_0xbf02de['shift']());}};_0x2554cb(++_0x1b0831);}(a186_0x1b08,0x106));const a186_0x2554=function(_0xbf02de,_0x1b0831){_0xbf02de=_0xbf02de-0x0;let _0x2554cb=a186_0x1b08[_0xbf02de];return _0x2554cb;};const _0x135191=a186_0x2554;'use strict';const moment=require('moment'),util=require(_0x135191('0x3d')),path=require(_0x135191('0x45')),_=require(_0x135191('0x4d')),{getSocket}=require(_0x135191('0x38')),socket=getSocket(),qs=require(_0x135191('0x50')),logger=require(_0x135191('0x74'))('api'),config=require('../../config/environment'),db=require(_0x135191('0x5e'))['db'],{Op}=require(_0x135191('0x57'));require(_0x135191('0x7e'))['register'](socket);const jayson=require(_0x135191('0x39')),client=jayson[_0x135191('0xd')]['http']({'port':0x232c}),client9002=jayson[_0x135191('0xd')][_0x135191('0x73')]({'port':0x232a});function respondWithRpcPromise(_0x2eb65f,_0x2b9087,_0x62df8,_0x222646){return new Promise(function(_0x50de1f,_0x473537){const _0x1dcd66=a186_0x2554,_0xdffe88=_0x222646||client;return _0xdffe88[_0x1dcd66('0x86')](_0x2eb65f,_0x62df8)[_0x1dcd66('0x6')](function(_0x1f8a32){const _0x5dce7f=_0x1dcd66;logger['info'](_0x5dce7f('0x7d'),_0x2b9087,'request\x20sent'),logger['debug'](_0x5dce7f('0x80'),_0x2b9087,'request\x20sent',JSON['stringify'](_0x1f8a32));if(_0x1f8a32[_0x5dce7f('0x1e')]){if(_0x1f8a32[_0x5dce7f('0x1e')]['code']===0x1f4)return logger['error'](_0x5dce7f('0x7d'),_0x2b9087,_0x1f8a32[_0x5dce7f('0x1e')][_0x5dce7f('0x23')]),_0x473537(_0x1f8a32[_0x5dce7f('0x1e')][_0x5dce7f('0x23')]);return logger[_0x5dce7f('0x1e')](_0x5dce7f('0x7d'),_0x2b9087,_0x1f8a32[_0x5dce7f('0x1e')]['message']),_0x50de1f(_0x1f8a32[_0x5dce7f('0x1e')]['message']);}else logger[_0x5dce7f('0x55')](_0x5dce7f('0x7d'),_0x2b9087,_0x5dce7f('0x40')),_0x50de1f(_0x1f8a32['result'][_0x5dce7f('0x23')]);})[_0x1dcd66('0x4a')](function(_0x54ca44){const _0x1bb9d5=_0x1dcd66;logger[_0x1bb9d5('0x1e')](_0x1bb9d5('0x7d'),_0x2b9087,_0x54ca44),_0x473537(_0x54ca44);});});}function respondWithStatusCode(_0x2f5c4a,_0x42a23b){return _0x42a23b=_0x42a23b||0xcc,function(_0x343b6b){const _0x4abd4f=a186_0x2554;if(_0x343b6b)return _0x2f5c4a[_0x4abd4f('0x5c')](_0x42a23b);return _0x2f5c4a[_0x4abd4f('0x3f')](_0x42a23b)['end']();};}function respondWithResult(_0x9fc547,_0x40edd4){return _0x40edd4=_0x40edd4||0xc8,function(_0x4eca1e){const _0x4422be=a186_0x2554;if(_0x4eca1e)return _0x9fc547[_0x4422be('0x3f')](_0x40edd4)[_0x4422be('0xe')](_0x4eca1e);};}function respondWithFilteredResult(_0x54c267,_0x4425f9){return function(_0x2d6a42){const _0x4862e9=a186_0x2554;if(_0x2d6a42){const _0x37295f=_0x2d6a42[_0x4862e9('0x41')],_0x2ca16c=_0x4425f9[_0x4862e9('0x4b')];let _0xa25076=_0x4425f9[_0x4862e9('0x4b')]+_0x4425f9[_0x4862e9('0x0')],_0x50c8a7;return _0xa25076>=_0x37295f?(_0xa25076=_0x37295f,_0x50c8a7=0xc8):_0x50c8a7=0xce,_0x54c267['status'](_0x50c8a7),_0x54c267[_0x4862e9('0x2')](_0x4862e9('0x92'),_0x2ca16c+'-'+_0xa25076+'/'+_0x37295f)[_0x4862e9('0xe')](_0x2d6a42);}return null;};}function saveUpdates(_0x46c21d){return function(_0x4719fd){const _0x13b719=a186_0x2554;if(_0x4719fd)return _0x4719fd[_0x13b719('0x64')](_0x46c21d)[_0x13b719('0x6')](function(_0x19d2a9){return _0x19d2a9;});return null;};}function removeEntity(_0x4300bf){return function(_0x4f1be1){const _0x51f062=a186_0x2554;if(_0x4f1be1)return _0x4f1be1[_0x51f062('0x66')]()[_0x51f062('0x6')](function(){const _0x4ad17c=_0x51f062,_0x27ab13=_0x4f1be1[_0x4ad17c('0x18')]({'plain':!![]}),_0x45147f=_0x4ad17c('0x98');return db[_0x4ad17c('0x8e')][_0x4ad17c('0x66')]({'where':{'type':_0x45147f,'resourceId':_0x27ab13['id']}})[_0x4ad17c('0x6')](function(){return _0x4f1be1;});})['then'](function(){const _0x209932=_0x51f062;_0x4300bf[_0x209932('0x3f')](0xcc)['end']();});};}function handleEntityNotFound(_0x152d15){return function(_0x11faa7){const _0x35a6fa=a186_0x2554;return!_0x11faa7&&_0x152d15[_0x35a6fa('0x5c')](0x194),_0x11faa7;};}function handleError(_0x589b54,_0x3dfc27){return _0x3dfc27=_0x3dfc27||0x1f4,function(_0x1191c1){const _0x45a02f=a186_0x2554;logger[_0x45a02f('0x1e')](_0x1191c1['stack']),_0x1191c1['name']&&delete _0x1191c1[_0x45a02f('0x63')],_0x589b54[_0x45a02f('0x3f')](_0x3dfc27)['send'](_0x1191c1);};}exports[_0x135191('0x2d')]=function(_0x16c719,_0x2cf596){const _0x98bb8e=_0x135191;let _0x1120d7={'include':[{'model':db['Pause'],'as':_0x98bb8e('0x71')}]};const _0x57431e={},_0x59fc4f={'count':0x0,'rows':[]},_0x13c3d9=_[_0x98bb8e('0x59')](db[_0x98bb8e('0x5b')]['rawAttributes'],function(_0x2cbf03){const _0x5e97f3=_0x98bb8e;return{'name':_0x2cbf03[_0x5e97f3('0x48')],'type':_0x2cbf03[_0x5e97f3('0x1c')][_0x5e97f3('0x2e')]};});_0x57431e[_0x98bb8e('0x5d')]=_[_0x98bb8e('0x59')](_0x13c3d9,'name'),_0x57431e[_0x98bb8e('0x43')]=_[_0x98bb8e('0x8c')](_0x16c719['query']),_0x57431e[_0x98bb8e('0x72')]=_[_0x98bb8e('0x15')](_0x57431e[_0x98bb8e('0x5d')],_0x57431e[_0x98bb8e('0x43')]),_0x1120d7[_0x98bb8e('0x20')]=_[_0x98bb8e('0x15')](_0x57431e[_0x98bb8e('0x5d')],qs['fields'](_0x16c719['query']['fields'])),_0x1120d7[_0x98bb8e('0x20')]=_0x1120d7[_0x98bb8e('0x20')]['length']?_0x1120d7[_0x98bb8e('0x20')]:_0x57431e[_0x98bb8e('0x5d')];typeof _0x16c719[_0x98bb8e('0x43')]['nolimit']===_0x98bb8e('0x28')&&(_0x1120d7[_0x98bb8e('0x0')]=qs['limit'](_0x16c719[_0x98bb8e('0x43')][_0x98bb8e('0x0')]),_0x1120d7[_0x98bb8e('0x4b')]=qs[_0x98bb8e('0x4b')](_0x16c719['query'][_0x98bb8e('0x4b')]));_0x1120d7[_0x98bb8e('0x8b')]=qs[_0x98bb8e('0xf')](_0x16c719[_0x98bb8e('0x43')]['sort']),_0x1120d7[_0x98bb8e('0x9e')]=qs[_0x98bb8e('0x72')](_['pick'](_0x16c719[_0x98bb8e('0x43')],_0x57431e['filters']),_0x13c3d9);_0x16c719[_0x98bb8e('0x43')][_0x98bb8e('0x27')]&&(_0x1120d7['where']=_['merge'](_0x1120d7[_0x98bb8e('0x9e')],{[Op['or']]:_['map'](_0x13c3d9,function(_0x4ae190){const _0x31871d=_0x98bb8e;if(_0x4ae190['type']!=='VIRTUAL'){const _0x31ce3b={};return _0x31ce3b[_0x4ae190[_0x31871d('0x63')]]={[Op[_0x31871d('0x1b')]]:'%'+_0x16c719['query'][_0x31871d('0x27')]+'%'},_0x31ce3b;}})}));_0x1120d7=_[_0x98bb8e('0x33')]({},_0x1120d7,_0x16c719[_0x98bb8e('0x93')]);const _0x4c5c62={'where':_0x1120d7[_0x98bb8e('0x9e')]};return db[_0x98bb8e('0x5b')][_0x98bb8e('0x41')](_0x4c5c62)[_0x98bb8e('0x6')](function(_0x2183ad){const _0xfa1fdc=_0x98bb8e;return _0x59fc4f[_0xfa1fdc('0x41')]=_0x2183ad,_0x16c719['query'][_0xfa1fdc('0x61')]&&(_0x1120d7[_0xfa1fdc('0x85')]=[{'all':!![]}]),db[_0xfa1fdc('0x5b')][_0xfa1fdc('0x17')](_0x1120d7);})['then'](function(_0x1d4faa){const _0x36bb0e=_0x98bb8e;return _0x59fc4f[_0x36bb0e('0xa0')]=_0x1d4faa,_0x59fc4f;})['then'](respondWithFilteredResult(_0x2cf596,_0x1120d7))[_0x98bb8e('0x4a')](handleError(_0x2cf596,null));},exports[_0x135191('0x6a')]=function(_0x39f8d9,_0x492d31){const _0x4ad420=_0x135191;let _0x2322cb={'raw':![],'where':{'id':_0x39f8d9[_0x4ad420('0x5a')]['id']},'include':[{'model':db[_0x4ad420('0x87')],'as':_0x4ad420('0x71')}]};const _0x54ba76={};return _0x54ba76[_0x4ad420('0x5d')]=_[_0x4ad420('0x8c')](db[_0x4ad420('0x5b')][_0x4ad420('0x99')]),_0x54ba76['query']=_[_0x4ad420('0x8c')](_0x39f8d9[_0x4ad420('0x43')]),_0x54ba76[_0x4ad420('0x72')]=_[_0x4ad420('0x15')](_0x54ba76['model'],_0x54ba76[_0x4ad420('0x43')]),_0x2322cb['attributes']=_['intersection'](_0x54ba76['model'],qs[_0x4ad420('0x1d')](_0x39f8d9[_0x4ad420('0x43')][_0x4ad420('0x1d')])),_0x2322cb[_0x4ad420('0x20')]=_0x2322cb[_0x4ad420('0x20')][_0x4ad420('0xa')]?_0x2322cb['attributes']:_0x54ba76[_0x4ad420('0x5d')],_0x39f8d9[_0x4ad420('0x43')][_0x4ad420('0x61')]&&(_0x2322cb[_0x4ad420('0x85')]=[{'all':!![]}]),_0x2322cb=_[_0x4ad420('0x33')]({},_0x2322cb,_0x39f8d9[_0x4ad420('0x93')]),db[_0x4ad420('0x5b')][_0x4ad420('0x3e')](_0x2322cb)[_0x4ad420('0x6')](handleEntityNotFound(_0x492d31,null))[_0x4ad420('0x6')](respondWithResult(_0x492d31,null))[_0x4ad420('0x4a')](handleError(_0x492d31,null));},exports[_0x135191('0x30')]=function(_0x16a8cb,_0x2cff21){const _0x511300=_0x135191;return db[_0x511300('0x5b')][_0x511300('0x30')](_0x16a8cb['body'],{})[_0x511300('0x6')](function(_0x139e1f){const _0x56c842=_0x511300,_0x2d1ed8=_0x16a8cb[_0x56c842('0x4f')][_0x56c842('0x18')]({'plain':!![]});if(!_0x2d1ed8)throw new Error(_0x56c842('0x4c'));if(_0x2d1ed8['role']==='user'){const _0x1bf7d4=_0x139e1f[_0x56c842('0x18')]({'plain':!![]}),_0x17e8d7=_0x56c842('0x98');return db[_0x56c842('0x2c')][_0x56c842('0x3e')]({'where':{'name':_0x17e8d7,'userProfileId':_0x2d1ed8['userProfileId']},'raw':!![]})[_0x56c842('0x6')](function(_0x3ab133){const _0x1dfa77=_0x56c842;return _0x3ab133&&_0x3ab133[_0x1dfa77('0x44')]===0x0?db['UserProfileResource'][_0x1dfa77('0x30')]({'name':_0x1bf7d4['name'],'resourceId':_0x1bf7d4['id'],'type':_0x3ab133['name'],'sectionId':_0x3ab133['id']},{})[_0x1dfa77('0x6')](function(){return _0x139e1f;}):_0x139e1f;})[_0x56c842('0x4a')](function(_0x480ea6){const _0x589215=_0x56c842;logger[_0x589215('0x1e')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x480ea6);throw _0x480ea6;});}return _0x139e1f;})[_0x511300('0x6')](respondWithResult(_0x2cff21,0xc9))['catch'](handleError(_0x2cff21,null));},exports[_0x135191('0x64')]=function(_0x424c3d,_0x22e3ff){const _0x41cce5=_0x135191;return _0x424c3d[_0x41cce5('0x34')]['id']&&delete _0x424c3d[_0x41cce5('0x34')]['id'],db[_0x41cce5('0x5b')][_0x41cce5('0x3e')]({'where':{'id':_0x424c3d[_0x41cce5('0x5a')]['id']},'include':[{'model':db[_0x41cce5('0x87')],'as':_0x41cce5('0x71')}]})[_0x41cce5('0x6')](handleEntityNotFound(_0x22e3ff,null))[_0x41cce5('0x6')](saveUpdates(_0x424c3d['body'],null))[_0x41cce5('0x6')](respondWithResult(_0x22e3ff,null))[_0x41cce5('0x4a')](handleError(_0x22e3ff,null));},exports[_0x135191('0x66')]=function(_0x181596,_0x9e9f13){const _0x2da034=_0x135191;return db[_0x2da034('0x5b')]['findOne']({'where':{'id':_0x181596[_0x2da034('0x5a')]['id']}})[_0x2da034('0x6')](handleEntityNotFound(_0x9e9f13,null))['then'](removeEntity(_0x9e9f13,null))['catch'](handleError(_0x9e9f13,null));},exports[_0x135191('0x88')]=function(_0x65d4f6,_0x456dd1){const _0x37f84c=_0x135191;return db['FaxAccount'][_0x37f84c('0x88')]()[_0x37f84c('0x6')](respondWithResult(_0x456dd1,null))['catch'](handleError(_0x456dd1,null));},exports[_0x135191('0x9c')]=function(_0x3897cf,_0x2ef2ab){const _0x316332=_0x135191;return _0x3897cf[_0x316332('0x34')]['id']&&delete _0x3897cf[_0x316332('0x34')]['id'],db[_0x316332('0x5b')][_0x316332('0x3e')]({'where':{'id':_0x3897cf['params']['id']}})[_0x316332('0x6')](handleEntityNotFound(_0x2ef2ab,null))['then'](function(_0x7ea32){const _0x5e390d=_0x316332;if(_0x7ea32)return _0x3897cf[_0x5e390d('0x34')][_0x5e390d('0x96')]=_0x7ea32['id'],db['Disposition'][_0x5e390d('0x30')](_0x3897cf[_0x5e390d('0x34')]);})['then'](respondWithResult(_0x2ef2ab,null))['catch'](handleError(_0x2ef2ab,null));},exports[_0x135191('0x42')]=function(_0x284493,_0x42ff61){const _0x29ef21=_0x135191;let _0x4e68bd={'raw':![],'where':{}};const _0x83df85={},_0x34727f={'count':0x0,'rows':[]};return db[_0x29ef21('0x5b')][_0x29ef21('0x3e')]({'where':{'id':_0x284493[_0x29ef21('0x5a')]['id']}})['then'](handleEntityNotFound(_0x42ff61,null))['then'](function(_0x5ea127){const _0x18bdbf=_0x29ef21;if(_0x5ea127)return _0x83df85[_0x18bdbf('0x5d')]=_[_0x18bdbf('0x8c')](db[_0x18bdbf('0x9a')]['rawAttributes']),_0x83df85[_0x18bdbf('0x43')]=_[_0x18bdbf('0x8c')](_0x284493['query']),_0x83df85['filters']=_['intersection'](_0x83df85[_0x18bdbf('0x5d')],_0x83df85[_0x18bdbf('0x43')]),_0x4e68bd[_0x18bdbf('0x20')]=_[_0x18bdbf('0x15')](_0x83df85['model'],qs['fields'](_0x284493[_0x18bdbf('0x43')]['fields'])),_0x4e68bd[_0x18bdbf('0x20')]=_0x4e68bd[_0x18bdbf('0x20')][_0x18bdbf('0xa')]?_0x4e68bd[_0x18bdbf('0x20')]:_0x83df85[_0x18bdbf('0x5d')],typeof _0x284493['query'][_0x18bdbf('0x6c')]==='undefined'&&(_0x4e68bd[_0x18bdbf('0x0')]=qs[_0x18bdbf('0x0')](_0x284493[_0x18bdbf('0x43')][_0x18bdbf('0x0')]),_0x4e68bd[_0x18bdbf('0x4b')]=qs['offset'](_0x284493[_0x18bdbf('0x43')][_0x18bdbf('0x4b')])),_0x4e68bd[_0x18bdbf('0x8b')]=qs[_0x18bdbf('0xf')](_0x284493[_0x18bdbf('0x43')][_0x18bdbf('0xf')]),_0x4e68bd[_0x18bdbf('0x9e')]=qs['filters'](_[_0x18bdbf('0x75')](_0x284493[_0x18bdbf('0x43')],_0x83df85[_0x18bdbf('0x72')])),_0x4e68bd[_0x18bdbf('0x9e')][_0x18bdbf('0x96')]=_0x5ea127['id'],_0x284493['query'][_0x18bdbf('0x27')]&&(_0x4e68bd[_0x18bdbf('0x9e')]=_[_0x18bdbf('0x33')](_0x4e68bd[_0x18bdbf('0x9e')],{[Op['or']]:_['map'](_0x4e68bd[_0x18bdbf('0x20')],function(_0x309bf7){const _0x4afd9f=_0x18bdbf,_0x13aefd={};return _0x13aefd[_0x309bf7]={[Op['like']]:'%'+_0x284493[_0x4afd9f('0x43')][_0x4afd9f('0x27')]+'%'},_0x13aefd;})})),_0x4e68bd=_[_0x18bdbf('0x33')]({},_0x4e68bd,_0x284493[_0x18bdbf('0x93')]),db[_0x18bdbf('0x9a')][_0x18bdbf('0x41')]({'where':_0x4e68bd['where']})['then'](function(_0xca2974){const _0x1496e2=_0x18bdbf;return _0x34727f['count']=_0xca2974,_0x284493[_0x1496e2('0x43')][_0x1496e2('0x61')]&&(_0x4e68bd['include']=[{'all':!![]}]),db[_0x1496e2('0x9a')][_0x1496e2('0x17')](_0x4e68bd);})[_0x18bdbf('0x6')](function(_0x3ab373){const _0x1546f3=_0x18bdbf;return _0x34727f[_0x1546f3('0xa0')]=_0x3ab373,_0x34727f;});})[_0x29ef21('0x6')](respondWithFilteredResult(_0x42ff61,_0x4e68bd))[_0x29ef21('0x4a')](handleError(_0x42ff61,null));},exports['removeDispositions']=function(_0x5519a2,_0x2b3c4c){const _0x543f85=_0x135191;return db[_0x543f85('0x5b')][_0x543f85('0x3e')]({'where':{'id':_0x5519a2[_0x543f85('0x5a')]['id']}})[_0x543f85('0x6')](handleEntityNotFound(_0x2b3c4c,null))[_0x543f85('0x6')](function(_0x52d7c8){const _0x5ad805=_0x543f85;if(_0x52d7c8)return _0x52d7c8['removeDispositions'](_0x5519a2['query'][_0x5ad805('0x3a')]);})[_0x543f85('0x6')](respondWithStatusCode(_0x2b3c4c,null))[_0x543f85('0x4a')](handleError(_0x2b3c4c,null));},exports[_0x135191('0x32')]=function(_0x2990c5,_0x476768){const _0xa926af=_0x135191;return _0x2990c5[_0xa926af('0x34')]['id']&&delete _0x2990c5[_0xa926af('0x34')]['id'],db[_0xa926af('0x5b')][_0xa926af('0x3e')]({'where':{'id':_0x2990c5[_0xa926af('0x5a')]['id']}})[_0xa926af('0x6')](handleEntityNotFound(_0x476768,null))[_0xa926af('0x6')](function(_0x102769){const _0xf56b66=_0xa926af;if(_0x102769)return _0x2990c5[_0xf56b66('0x34')]['FaxAccountId']=_0x102769['id'],db['CannedAnswer'][_0xf56b66('0x30')](_0x2990c5[_0xf56b66('0x34')]);})[_0xa926af('0x6')](respondWithResult(_0x476768,null))[_0xa926af('0x4a')](handleError(_0x476768,null));},exports[_0x135191('0x46')]=function(_0x2d042c,_0x4e1a49){const _0x5ce6e7=_0x135191;let _0x5d56e9={'raw':![],'where':{}};const _0x52dfb2={},_0x283fdb={'count':0x0,'rows':[]};return db['FaxAccount'][_0x5ce6e7('0x3e')]({'where':{'id':_0x2d042c[_0x5ce6e7('0x5a')]['id']}})['then'](handleEntityNotFound(_0x4e1a49,null))[_0x5ce6e7('0x6')](function(_0x5d059d){const _0x9c62e1=_0x5ce6e7;if(_0x5d059d)return _0x52dfb2[_0x9c62e1('0x5d')]=_[_0x9c62e1('0x8c')](db[_0x9c62e1('0x78')]['rawAttributes']),_0x52dfb2[_0x9c62e1('0x43')]=_['keys'](_0x2d042c[_0x9c62e1('0x43')]),_0x52dfb2[_0x9c62e1('0x72')]=_[_0x9c62e1('0x15')](_0x52dfb2[_0x9c62e1('0x5d')],_0x52dfb2['query']),_0x5d56e9['attributes']=_[_0x9c62e1('0x15')](_0x52dfb2[_0x9c62e1('0x5d')],qs[_0x9c62e1('0x1d')](_0x2d042c['query']['fields'])),_0x5d56e9['attributes']=_0x5d56e9[_0x9c62e1('0x20')][_0x9c62e1('0xa')]?_0x5d56e9[_0x9c62e1('0x20')]:_0x52dfb2[_0x9c62e1('0x5d')],typeof _0x2d042c['query'][_0x9c62e1('0x6c')]==='undefined'&&(_0x5d56e9[_0x9c62e1('0x0')]=qs[_0x9c62e1('0x0')](_0x2d042c[_0x9c62e1('0x43')][_0x9c62e1('0x0')]),_0x5d56e9[_0x9c62e1('0x4b')]=qs[_0x9c62e1('0x4b')](_0x2d042c[_0x9c62e1('0x43')]['offset'])),_0x5d56e9[_0x9c62e1('0x8b')]=qs[_0x9c62e1('0xf')](_0x2d042c[_0x9c62e1('0x43')][_0x9c62e1('0xf')]),_0x5d56e9[_0x9c62e1('0x9e')]=qs[_0x9c62e1('0x72')](_['pick'](_0x2d042c[_0x9c62e1('0x43')],_0x52dfb2['filters'])),_0x5d56e9[_0x9c62e1('0x9e')]['FaxAccountId']=_0x5d059d['id'],_0x2d042c[_0x9c62e1('0x43')][_0x9c62e1('0x27')]&&(_0x5d56e9[_0x9c62e1('0x9e')]=_[_0x9c62e1('0x33')](_0x5d56e9['where'],{[Op['or']]:_[_0x9c62e1('0x59')](_0x5d56e9[_0x9c62e1('0x20')],function(_0x5c33f4){const _0x18998a=_0x9c62e1,_0x4241e3={};return _0x4241e3[_0x5c33f4]={[Op[_0x18998a('0x1b')]]:'%'+_0x2d042c[_0x18998a('0x43')][_0x18998a('0x27')]+'%'},_0x4241e3;})})),_0x5d56e9=_[_0x9c62e1('0x33')]({},_0x5d56e9,_0x2d042c[_0x9c62e1('0x93')]),db[_0x9c62e1('0x78')][_0x9c62e1('0x41')]({'where':_0x5d56e9[_0x9c62e1('0x9e')]})[_0x9c62e1('0x6')](function(_0x2b3090){const _0x946431=_0x9c62e1;return _0x283fdb[_0x946431('0x41')]=_0x2b3090,_0x2d042c[_0x946431('0x43')][_0x946431('0x61')]&&(_0x5d56e9[_0x946431('0x85')]=[{'all':!![]}]),db[_0x946431('0x78')][_0x946431('0x17')](_0x5d56e9);})['then'](function(_0x14fc87){const _0xda0caf=_0x9c62e1;return _0x283fdb[_0xda0caf('0xa0')]=_0x14fc87,_0x283fdb;});})['then'](respondWithFilteredResult(_0x4e1a49,_0x5d56e9))[_0x5ce6e7('0x4a')](handleError(_0x4e1a49,null));},exports[_0x135191('0x51')]=function(_0x96d2cc,_0x373cc9){const _0x5c959c=_0x135191;return db['FaxAccount']['findOne']({'where':{'id':_0x96d2cc[_0x5c959c('0x5a')]['id']}})[_0x5c959c('0x6')](handleEntityNotFound(_0x373cc9,null))[_0x5c959c('0x6')](function(_0x280b04){const _0x5c790e=_0x5c959c;if(_0x280b04)return _0x280b04[_0x5c790e('0x51')](_0x96d2cc[_0x5c790e('0x43')][_0x5c790e('0x3a')]);})[_0x5c959c('0x6')](respondWithStatusCode(_0x373cc9,null))[_0x5c959c('0x4a')](handleError(_0x373cc9,null));},exports['addInteraction']=function(_0x4e5506,_0x5827eb){const _0x5b7b99=_0x135191;return db[_0x5b7b99('0x9d')]['findOne']({'where':{'id':_0x4e5506[_0x5b7b99('0x5a')]['id']}})[_0x5b7b99('0x6')](function(_0x362351){const _0x4fd2cc=_0x5b7b99;if(_0x362351)return _0x362351[_0x4fd2cc('0x6f')](_0x4e5506[_0x4fd2cc('0x34')][_0x4fd2cc('0x3a')],{'through':_[_0x4fd2cc('0x53')](_0x4e5506['body'],[_0x4fd2cc('0x3a'),'id'])});})[_0x5b7b99('0x6')](respondWithResult(_0x5827eb,null))[_0x5b7b99('0x4a')](handleError(_0x5827eb,null));},exports[_0x135191('0x22')]=function(_0x160f2a,_0xefdc55){const _0x5b3336=_0x135191;let _0x1ed462={'raw':![],'where':{}};const _0x2542ae={},_0x407db6={'count':0x0,'rows':[]};return db[_0x5b3336('0x5b')][_0x5b3336('0x3e')]({'where':{'id':_0x160f2a[_0x5b3336('0x5a')]['id']}})[_0x5b3336('0x6')](handleEntityNotFound(_0xefdc55,null))['then'](function(_0x47de8b){const _0x138ace=_0x5b3336;if(_0x47de8b)return _0x2542ae[_0x138ace('0x5d')]=_[_0x138ace('0x8c')](db[_0x138ace('0x9d')]['rawAttributes']),_0x2542ae[_0x138ace('0x43')]=_[_0x138ace('0x8c')](_0x160f2a['query']),_0x2542ae[_0x138ace('0x72')]=_[_0x138ace('0x15')](_0x2542ae[_0x138ace('0x5d')],_0x2542ae[_0x138ace('0x43')]),_0x1ed462['attributes']=_[_0x138ace('0x15')](_0x2542ae['model'],qs[_0x138ace('0x1d')](_0x160f2a['query'][_0x138ace('0x1d')])),_0x1ed462[_0x138ace('0x20')]=_0x1ed462['attributes']['length']?_0x1ed462[_0x138ace('0x20')]:_0x2542ae[_0x138ace('0x5d')],typeof _0x160f2a[_0x138ace('0x43')]['nolimit']===_0x138ace('0x28')&&(_0x1ed462[_0x138ace('0x0')]=qs['limit'](_0x160f2a[_0x138ace('0x43')][_0x138ace('0x0')]),_0x1ed462[_0x138ace('0x4b')]=qs['offset'](_0x160f2a['query'][_0x138ace('0x4b')])),_0x1ed462[_0x138ace('0x8b')]=qs['sort'](_0x160f2a[_0x138ace('0x43')][_0x138ace('0xf')]),_0x1ed462[_0x138ace('0x9e')]=qs[_0x138ace('0x72')](_[_0x138ace('0x75')](_0x160f2a[_0x138ace('0x43')],_0x2542ae[_0x138ace('0x72')])),_0x1ed462[_0x138ace('0x9e')][_0x138ace('0x96')]=_0x47de8b['id'],_0x160f2a[_0x138ace('0x43')]['filter']&&(_0x1ed462[_0x138ace('0x9e')]=_[_0x138ace('0x33')](_0x1ed462[_0x138ace('0x9e')],{[Op['or']]:_[_0x138ace('0x59')](_0x1ed462[_0x138ace('0x20')],function(_0x20e02e){const _0x21f496=_0x138ace,_0x5f2d70={};return _0x5f2d70[_0x20e02e]={[Op[_0x21f496('0x1b')]]:'%'+_0x160f2a[_0x21f496('0x43')]['filter']+'%'},_0x5f2d70;})})),_0x1ed462=_[_0x138ace('0x33')]({},_0x1ed462,_0x160f2a[_0x138ace('0x93')]),db[_0x138ace('0x9d')]['count']({'where':_0x1ed462[_0x138ace('0x9e')]})[_0x138ace('0x6')](function(_0x1d71a6){const _0x554842=_0x138ace;return _0x407db6['count']=_0x1d71a6,_0x160f2a[_0x554842('0x43')]['includeAll']&&(_0x1ed462[_0x554842('0x85')]=[{'model':db[_0x554842('0x3b')],'as':_0x554842('0x7f'),'required':![]},{'model':db[_0x554842('0x2a')],'as':_0x554842('0xc'),'attributes':[_0x554842('0x63'),_0x554842('0x11'),_0x554842('0x12')],'required':![]},{'model':db['Tag'],'as':_0x554842('0x76'),'attributes':['id','name',_0x554842('0x29')],'where':_0x160f2a[_0x554842('0x43')][_0x554842('0x7a')]?{'id':_0x160f2a[_0x554842('0x43')][_0x554842('0x7a')]}:undefined,'required':_0x160f2a[_0x554842('0x43')][_0x554842('0x7a')]?!![]:![]}]),db['FaxInteraction']['findAll'](_0x1ed462);})[_0x138ace('0x6')](function(_0x157dc5){const _0x230080=_0x138ace;return _0x407db6[_0x230080('0xa0')]=_0x157dc5,_0x407db6;});})['then'](respondWithFilteredResult(_0xefdc55,_0x1ed462))[_0x5b3336('0x4a')](handleError(_0xefdc55,null));},exports[_0x135191('0xb')]=function(_0x3bb62a,_0x657bb7){const _0x31e9fa=_0x135191;return db[_0x31e9fa('0x5b')][_0x31e9fa('0x3e')]({'where':{'id':_0x3bb62a['params']['id']}})[_0x31e9fa('0x6')](handleEntityNotFound(_0x657bb7,null))[_0x31e9fa('0x6')](function(_0x4368a9){if(_0x4368a9)return db['sequelize']['transaction'](function(_0x5b5710){const _0x3eeb5d=a186_0x2554;return db[_0x3eeb5d('0x67')]['destroy']({'where':{'FaxAccountId':_0x3bb62a[_0x3eeb5d('0x5a')]['id']},'transaction':_0x5b5710})[_0x3eeb5d('0x6')](function(){const _0x176fbc=_['map'](_0x3bb62a['body'],function(_0x49d5a6){return _0x49d5a6['FaxAccountId']=_0x3bb62a['params']['id'],_0x49d5a6;});return db['FaxApplication']['bulkCreate'](_0x176fbc,{'transaction':_0x5b5710});});})['then'](function(){const _0x108729=a186_0x2554;return db[_0x108729('0x67')]['findAndCountAll']({'where':{'FaxAccountId':_0x3bb62a[_0x108729('0x5a')]['id']},'order':_0x108729('0x8a')});});})[_0x31e9fa('0x6')](respondWithResult(_0x657bb7,null))['catch'](handleError(_0x657bb7,null));},exports[_0x135191('0x1f')]=function(_0x40af82,_0x51d247){const _0x48b902=_0x135191;let _0x2e5a55={};const _0x32bec5={};let _0x7f2c71,_0x577027;return db['FaxAccount'][_0x48b902('0x3e')]({'where':{'id':_0x40af82[_0x48b902('0x5a')]['id']}})[_0x48b902('0x6')](handleEntityNotFound(_0x51d247,null))[_0x48b902('0x6')](function(_0x4520d7){const _0x363f21=_0x48b902;if(_0x4520d7)return _0x7f2c71=_0x4520d7,_0x32bec5['model']=_['keys'](db[_0x363f21('0x67')]['rawAttributes']),_0x32bec5['query']=_[_0x363f21('0x8c')](_0x40af82['query']),_0x32bec5[_0x363f21('0x72')]=_[_0x363f21('0x15')](_0x32bec5['model'],_0x32bec5[_0x363f21('0x43')]),_0x2e5a55[_0x363f21('0x20')]=_['intersection'](_0x32bec5[_0x363f21('0x5d')],qs[_0x363f21('0x1d')](_0x40af82[_0x363f21('0x43')][_0x363f21('0x1d')])),_0x2e5a55[_0x363f21('0x20')]=_0x2e5a55['attributes'][_0x363f21('0xa')]?_0x2e5a55['attributes']:_0x32bec5['model'],_0x2e5a55[_0x363f21('0x8b')]=qs[_0x363f21('0xf')](_0x40af82[_0x363f21('0x43')][_0x363f21('0xf')]),_0x2e5a55['where']=qs[_0x363f21('0x72')](_[_0x363f21('0x75')](_0x40af82[_0x363f21('0x43')],_0x32bec5['filters'])),_0x40af82[_0x363f21('0x43')][_0x363f21('0x27')]&&(_0x2e5a55[_0x363f21('0x9e')]=_[_0x363f21('0x33')](_0x2e5a55[_0x363f21('0x9e')],{[Op['or']]:_[_0x363f21('0x59')](_0x2e5a55[_0x363f21('0x20')],function(_0x156165){const _0x15083c=_0x363f21,_0x4b7a7e={};return _0x4b7a7e[_0x156165]={[Op[_0x15083c('0x1b')]]:'%'+_0x40af82[_0x15083c('0x43')][_0x15083c('0x27')]+'%'},_0x4b7a7e;})})),_0x2e5a55=_[_0x363f21('0x33')]({},_0x2e5a55,_0x40af82['options']),_0x7f2c71[_0x363f21('0x1f')](_0x2e5a55);})[_0x48b902('0x6')](function(_0xf8b46e){const _0x5d2b68=_0x48b902;if(_0xf8b46e)return _0x577027=_0xf8b46e[_0x5d2b68('0xa')],typeof _0x40af82[_0x5d2b68('0x43')][_0x5d2b68('0x6c')]===_0x5d2b68('0x28')&&(_0x2e5a55[_0x5d2b68('0x0')]=qs['limit'](_0x40af82[_0x5d2b68('0x43')][_0x5d2b68('0x0')]),_0x2e5a55[_0x5d2b68('0x4b')]=qs[_0x5d2b68('0x4b')](_0x40af82[_0x5d2b68('0x43')]['offset'])),_0x7f2c71['getApplications'](_0x2e5a55);})['then'](function(_0x181276){if(_0x181276)return _0x181276?{'count':_0x577027,'rows':_0x181276}:null;})[_0x48b902('0x6')](respondWithResult(_0x51d247,null))[_0x48b902('0x4a')](handleError(_0x51d247,null));};function Extension(_0x11dcf9,_0x361bd0,_0x133de8,_0x36ae87){const _0x3180d1=_0x135191;this[_0x3180d1('0x37')]=_0x3180d1('0x21'),this[_0x3180d1('0x1a')]=_0x11dcf9['localstationid'],this[_0x3180d1('0x90')]=_0x36ae87,this[_0x3180d1('0x1c')]=_0x3180d1('0x6b'),this[_0x3180d1('0x26')]=_0x3180d1('0x31'),this[_0x3180d1('0x96')]=_0x11dcf9['id'],this[_0x3180d1('0x8a')]=_0x361bd0,this['appdata']=_0x133de8;}function createExtensionsReciveFax(_0xa22ee4){const _0xc3a77f=_0x135191;let _0x403d80=0x1;const _0x719cc1=[];_0x719cc1[_0xc3a77f('0x8f')](new Extension(_0xa22ee4,_0x403d80,'',_0xc3a77f('0x83'))),_0x403d80+=0x1,_0x719cc1[_0xc3a77f('0x8f')](new Extension(_0xa22ee4,_0x403d80,_0xc3a77f('0x65'),_0xc3a77f('0xa4'))),_0x403d80+=0x1;for(const _0x334d74 in _0xa22ee4){typeof _0xa22ee4[_0x334d74]!==_0xc3a77f('0x28')&&(_0x334d74===_0xc3a77f('0x8d')||_0x334d74===_0xc3a77f('0x2f')||_0x334d74==='gateway'||_0x334d74===_0xc3a77f('0x1')||_0x334d74===_0xc3a77f('0x49')||_0x334d74===_0xc3a77f('0x56')||_0x334d74===_0xc3a77f('0xa8')||_0x334d74==='modem'||_0x334d74===_0xc3a77f('0x5'))&&(_0x719cc1[_0xc3a77f('0x8f')](new Extension(_0xa22ee4,_0x403d80,_0xc3a77f('0xa2')+_0x334d74+')='+_0xa22ee4[_0x334d74],_0xc3a77f('0xa4'))),_0x403d80+=0x1);}return _0x719cc1[_0xc3a77f('0x8f')](new Extension(_0xa22ee4,_0x403d80,'6',_0xc3a77f('0x9b'))),_0x403d80+=0x1,_0x719cc1[_0xc3a77f('0x8f')](new Extension(_0xa22ee4,_0x403d80,_0xc3a77f('0x6e'),'ReceiveFax')),_0x403d80=0x0,_0x719cc1;}exports['addAccountApplications']=function(_0x3022c1,_0x2b9aec){const _0x3472a3=_0x135191;let _0x95d1f6;return db[_0x3472a3('0x57')][_0x3472a3('0x4e')](function(_0x463f64){const _0x5766ae=_0x3472a3;return db[_0x5766ae('0x5b')][_0x5766ae('0x30')](_0x3022c1[_0x5766ae('0x34')],{'transaction':_0x463f64})[_0x5766ae('0x6')](function(_0x141bcd){const _0xc961e0=_0x5766ae;return _0x95d1f6=_0x141bcd[_0xc961e0('0x18')]({'plain':!![]}),db['VoiceExtension']['bulkCreate'](createExtensionsReciveFax(_0x95d1f6),{'transaction':_0x463f64});});})['then'](function(){return _0x95d1f6;})[_0x3472a3('0x6')](respondWithResult(_0x2b9aec,null))['catch'](handleError(_0x2b9aec,null));},exports['updateAccountApplications']=function(_0x5dc916,_0x5e22c7){const _0x1923cf=_0x135191;return db['sequelize'][_0x1923cf('0x4e')](function(_0x317791){const _0x1570ce=_0x1923cf;return db[_0x1570ce('0x5b')][_0x1570ce('0x64')](_0x5dc916['body'],{'where':{'id':_0x5dc916[_0x1570ce('0x34')]['id']},'transaction':_0x317791})[_0x1570ce('0x6')](function(){const _0x4db36c=_0x1570ce;return db['VoiceExtension']['destroy']({'where':{'FaxAccountId':_0x5dc916[_0x4db36c('0x34')]['id']},'transaction':_0x317791})[_0x4db36c('0x6')](function(){const _0x270fb2=_0x4db36c;return db[_0x270fb2('0xa6')]['bulkCreate'](createExtensionsReciveFax(_[_0x270fb2('0x53')](_0x5dc916[_0x270fb2('0x34')],[_0x270fb2('0x79'),'key',_0x270fb2('0x19'),'updatedAt',_0x270fb2('0x52'),'ListId'])),{'transaction':_0x317791});});});})[_0x1923cf('0x6')](function(){const _0x576552=_0x1923cf;return db[_0x576552('0x5b')][_0x576552('0x54')](_0x5dc916[_0x576552('0x34')]['id']);})[_0x1923cf('0x6')](respondWithResult(_0x5e22c7,null))[_0x1923cf('0x4a')](handleError(_0x5e22c7,null));},exports[_0x135191('0x69')]=function(_0x5d289f,_0x13b3f6){const _0x77de59=_0x135191;let _0x8842d9={'raw':!![],'where':{}};const _0x3ce535={},_0x2b56e6={'count':0x0,'rows':[]};return db[_0x77de59('0x5b')][_0x77de59('0x3e')]({'where':{'id':_0x5d289f[_0x77de59('0x5a')]['id']}})[_0x77de59('0x6')](handleEntityNotFound(_0x13b3f6,null))[_0x77de59('0x6')](function(_0x1cbfdf){const _0x19fd34=_0x77de59;if(_0x1cbfdf){_0x3ce535['model']=_[_0x19fd34('0x8c')](db['FaxMessage'][_0x19fd34('0x99')]),_0x3ce535[_0x19fd34('0x43')]=_['keys'](_0x5d289f[_0x19fd34('0x43')]),_0x3ce535[_0x19fd34('0x72')]=_['intersection'](_0x3ce535[_0x19fd34('0x5d')],_0x3ce535[_0x19fd34('0x43')]),_0x8842d9['attributes']=_[_0x19fd34('0x15')](_0x3ce535[_0x19fd34('0x5d')],qs['fields'](_0x5d289f[_0x19fd34('0x43')][_0x19fd34('0x1d')])),_0x8842d9[_0x19fd34('0x20')]=_0x8842d9[_0x19fd34('0x20')]['length']?_0x8842d9[_0x19fd34('0x20')]:_0x3ce535[_0x19fd34('0x5d')];typeof _0x5d289f[_0x19fd34('0x43')][_0x19fd34('0x6c')]==='undefined'&&(_0x8842d9['limit']=qs[_0x19fd34('0x0')](_0x5d289f[_0x19fd34('0x43')]['limit']),_0x8842d9[_0x19fd34('0x4b')]=qs[_0x19fd34('0x4b')](_0x5d289f[_0x19fd34('0x43')]['offset']));_0x8842d9[_0x19fd34('0x8b')]=qs[_0x19fd34('0xf')](_0x5d289f[_0x19fd34('0x43')][_0x19fd34('0xf')]),_0x8842d9[_0x19fd34('0x9e')]=qs[_0x19fd34('0x72')](_['pick'](_0x5d289f[_0x19fd34('0x43')],_0x3ce535['filters'])),_0x8842d9[_0x19fd34('0x9e')][_0x19fd34('0x96')]=_0x1cbfdf['id'];_0x5d289f[_0x19fd34('0x43')]['filter']&&(_0x8842d9[_0x19fd34('0x9e')]=_[_0x19fd34('0x33')](_0x8842d9['where'],{[Op['or']]:_[_0x19fd34('0x59')](_0x8842d9[_0x19fd34('0x20')],function(_0x28327b){const _0xc6c260=_0x19fd34,_0x4fcbfd={};return _0x4fcbfd[_0x28327b]={[Op[_0xc6c260('0x1b')]]:'%'+_0x5d289f[_0xc6c260('0x43')]['filter']+'%'},_0x4fcbfd;})}));if(_0x5d289f[_0x19fd34('0x43')][_0x19fd34('0x24')]){const _0x3cb9b3=_0x5d289f[_0x19fd34('0x43')][_0x19fd34('0x24')][_0x19fd34('0xa3')](','),_0x1ba3ce={};_0x1ba3ce[_0x3cb9b3[0x0]]={[Op[_0x19fd34('0x62')]]:moment(_0x3cb9b3[0x1])[_0x19fd34('0x94')](_0x19fd34('0xa5'))},_0x8842d9[_0x19fd34('0x9e')]=_[_0x19fd34('0x33')](_0x8842d9[_0x19fd34('0x9e')],_0x1ba3ce);}return _0x8842d9=_['merge']({},_0x8842d9,_0x5d289f[_0x19fd34('0x93')]),db[_0x19fd34('0x7b')][_0x19fd34('0x41')]({'where':_0x8842d9['where']})[_0x19fd34('0x6')](function(_0x2f76e1){const _0x26ff47=_0x19fd34;return _0x2b56e6[_0x26ff47('0x41')]=_0x2f76e1,_0x5d289f[_0x26ff47('0x43')][_0x26ff47('0x61')]&&(_0x8842d9[_0x26ff47('0x85')]=[{'all':!![]}]),db[_0x26ff47('0x7b')][_0x26ff47('0x17')](_0x8842d9);})[_0x19fd34('0x6')](function(_0x4020a6){const _0x5413e0=_0x19fd34;return _0x2b56e6[_0x5413e0('0xa0')]=_0x4020a6,_0x2b56e6;});}})['then'](respondWithFilteredResult(_0x13b3f6,_0x8842d9))[_0x77de59('0x4a')](handleError(_0x13b3f6,null));},exports[_0x135191('0x47')]=function(_0x252852,_0x476477){const _0x1d9a24=_0x135191;let _0x5d2722,_0x57d01c;return _0x252852[_0x1d9a24('0x34')]['to']&&(_0x57d01c=_0x252852[_0x1d9a24('0x34')]['to'][0x0]),db['FaxAccount']['findOne']({'where':{'id':_0x252852[_0x1d9a24('0x5a')]['id']},'include':[{'model':db[_0x1d9a24('0x16')],'as':_0x1d9a24('0x7'),'include':[{'model':db[_0x1d9a24('0x3b')],'as':_0x1d9a24('0x70'),'where':{'fax':_0x57d01c},'limit':0x1,'order':[[_0x1d9a24('0x10'),_0x1d9a24('0x6d')]]}]}]})[_0x1d9a24('0x6')](handleEntityNotFound(_0x476477,null))[_0x1d9a24('0x6')](function(_0xd24234){const _0x4ca399=_0x1d9a24;_0x5d2722=_0xd24234;if(_0x252852[_0x4ca399('0x34')]['attachments']&&_0x252852[_0x4ca399('0x34')][_0x4ca399('0x89')][_0x4ca399('0xa')])for(let _0x188ad6=0x0;_0x188ad6<_0x252852[_0x4ca399('0x34')]['attachments'][_0x4ca399('0xa')];_0x188ad6+=0x1){_0x252852[_0x4ca399('0x34')][_0x4ca399('0x89')][_0x188ad6]={'filename':_0x252852['body'][_0x4ca399('0x89')][_0x188ad6][_0x4ca399('0x63')],'id':_0x252852[_0x4ca399('0x34')][_0x4ca399('0x89')][_0x188ad6]['id'],'path':path[_0x4ca399('0x36')](config[_0x4ca399('0xa7')],_0x4ca399('0x35'),_0x252852[_0x4ca399('0x34')][_0x4ca399('0x89')][_0x188ad6][_0x4ca399('0x8')])};}return respondWithRpcPromise('CheckAfterSend','CheckAfterSend',{'FaxAccountId':_[_0x4ca399('0x4')](_0x252852[_0x4ca399('0x5a')]['id'])?undefined:_0x252852[_0x4ca399('0x5a')]['id'],'path':_[_0x4ca399('0x4')](_0x252852[_0x4ca399('0x34')][_0x4ca399('0x89')][0x0]['path'])?undefined:_0x252852['body'][_0x4ca399('0x89')][0x0][_0x4ca399('0x45')],'fax':_['isNil'](_0x252852[_0x4ca399('0x34')]['to'][0x0])?undefined:_0x252852['body']['to'][0x0]},client9002);})['then'](function(){const _0x3a020e=_0x1d9a24;if(_0x5d2722){_[_0x3a020e('0x4')](_0x252852['body'][_0x3a020e('0x5f')])&&(_0x252852[_0x3a020e('0x34')][_0x3a020e('0x5f')]=util[_0x3a020e('0x94')](_0x3a020e('0x68'),_0x5d2722[_0x3a020e('0x63')],_0x5d2722[_0x3a020e('0x95')]));if(_0x5d2722[_0x3a020e('0x7')])return _0x5d2722['List'][_0x3a020e('0x70')][_0x3a020e('0xa')]?_0x5d2722[_0x3a020e('0x7')][_0x3a020e('0x70')][0x0]:db[_0x3a020e('0x3b')][_0x3a020e('0x30')](_[_0x3a020e('0x9')](_0x252852[_0x3a020e('0x34')],{'firstName':_0x252852[_0x3a020e('0x34')]['to'][0x0],'phone':_0x252852[_0x3a020e('0x34')]['to'][0x0],'fax':_0x252852[_0x3a020e('0x34')]['to'][0x0],'ListId':_0x5d2722[_0x3a020e('0x60')]}));else throw new Error(_0x3a020e('0xa1'));}else throw new Error(_0x3a020e('0x7c'));})[_0x1d9a24('0x6')](function(_0x29eb33){const _0x2919e9=_0x1d9a24;if(_0x29eb33)return db['FaxInteraction'][_0x2919e9('0x3e')]({'where':{'ContactId':_0x29eb33['id'],'closed':![],'FaxAccountId':_0x5d2722['id']}})[_0x2919e9('0x6')](function(_0x4e546e){const _0x58562f=_0x2919e9;if(_0x4e546e)return[_0x4e546e,![]];return db[_0x58562f('0x9d')][_0x58562f('0x30')]({'UserId':_0x252852[_0x58562f('0x4f')]['id'],'ContactId':_0x29eb33['id'],'FaxAccountId':_0x5d2722['id'],'fax':_0x252852[_0x58562f('0x34')]['to'][0x0],'firstMsgDirection':_0x58562f('0x3'),'Messages':[_[_0x58562f('0x33')](_0x252852['body'],{'read':![],'body':_0x252852[_0x58562f('0x34')][_0x58562f('0x89')][0x0][_0x58562f('0x58')],'FaxAccountId':_0x5d2722['id'],'UserId':_0x252852[_0x58562f('0x4f')]['id'],'ContactId':_0x29eb33['id'],'AttachmentId':_0x252852[_0x58562f('0x34')][_0x58562f('0x89')][0x0]['id']})]},{'include':[{'model':db['FaxMessage'],'as':_0x58562f('0x81')}]})[_0x58562f('0x6')](function(_0x264c65){return[_0x264c65,!![]];});});else throw new Error(_0x2919e9('0x82'));})[_0x1d9a24('0x6')](function([_0x311ef4,_0x70f32f]){const _0x5180ce=_0x1d9a24;if(_0x70f32f)return _0x311ef4;return db[_0x5180ce('0x7b')][_0x5180ce('0x30')]({'direction':'out','read':![],'body':_0x252852[_0x5180ce('0x34')][_0x5180ce('0x89')][0x0]['filename'],'FaxAccountId':_0x5d2722['id'],'FaxInteractionId':_0x311ef4['id'],'UserId':_0x252852[_0x5180ce('0x4f')]['id'],'ContactId':_0x311ef4['ContactId'],'AttachmentId':_0x252852[_0x5180ce('0x34')][_0x5180ce('0x89')][0x0]['id']})[_0x5180ce('0x6')](function(_0x10ae23){const _0x56733f=_0x5180ce;return _0x311ef4[_0x56733f('0x25')][_0x56733f('0x81')]=[],_0x311ef4[_0x56733f('0x25')][_0x56733f('0x81')][_0x56733f('0x8f')](_0x10ae23[_0x56733f('0x25')]),_0x311ef4;});})['then'](function(_0x41d127){const _0x501902=_0x1d9a24;return respondWithRpcPromise('SendFax',_0x501902('0x13'),{'FaxAccountId':_['isNil'](_0x252852['params']['id'])?undefined:_0x252852[_0x501902('0x5a')]['id'],'path':_[_0x501902('0x4')](_0x252852[_0x501902('0x34')][_0x501902('0x89')][0x0]['path'])?undefined:_0x252852['body'][_0x501902('0x89')][0x0][_0x501902('0x45')],'fax':_['isNil'](_0x252852[_0x501902('0x34')]['to'][0x0])?undefined:_0x252852[_0x501902('0x34')]['to'][0x0],'AttachmentId':_0x252852[_0x501902('0x34')][_0x501902('0x89')][0x0]['id']},client9002)[_0x501902('0x6')](function(_0x39b565){const _0x4fceab=_0x501902;logger[_0x4fceab('0x55')](_0x4fceab('0x84'),_0x39b565);})[_0x501902('0x4a')](function(_0x483f5d){const _0x5173e5=_0x501902;logger[_0x5173e5('0x55')](_0x5173e5('0x84'),_0x483f5d);}),_0x41d127;})[_0x1d9a24('0x6')](respondWithResult(_0x476477,null))[_0x1d9a24('0x4a')](handleError(_0x476477,null));},exports['addAgents']=function(_0x18c7d3,_0x51361c){const _0x4cd471=_0x135191;return db[_0x4cd471('0x5b')][_0x4cd471('0x3e')]({'where':{'id':_0x18c7d3[_0x4cd471('0x5a')]['id']}})[_0x4cd471('0x6')](function(_0x59a995){const _0x42eaa5=_0x4cd471;if(_0x59a995)return _0x59a995[_0x42eaa5('0x91')](_0x18c7d3['body']['ids'],{'through':_[_0x42eaa5('0x53')](_0x18c7d3['body'],['ids','id'])})['then'](function(_0x5cb9b9){const _0x5f5380=_0x42eaa5;for(let _0x233b8c=0x0;_0x233b8c<_0x18c7d3[_0x5f5380('0x34')][_0x5f5380('0x3a')][_0x5f5380('0xa')];_0x233b8c+=0x1){socket[_0x5f5380('0x2b')](_0x5f5380('0x14'),{'UserId':_0x18c7d3['body'][_0x5f5380('0x3a')][_0x233b8c],'FaxAccountId':_0x18c7d3[_0x5f5380('0x5a')]['id']});}return _0x5cb9b9;});})[_0x4cd471('0x6')](respondWithResult(_0x51361c,null))['catch'](handleError(_0x51361c,null));},exports['removeAgents']=function(_0x5afd5e,_0x51f005){const _0x1c0bda=_0x135191;return db['FaxAccount'][_0x1c0bda('0x3e')]({'where':{'id':_0x5afd5e['params']['id']}})[_0x1c0bda('0x6')](handleEntityNotFound(_0x51f005,null))[_0x1c0bda('0x6')](function(_0x71af27){const _0x5d7ae9=_0x1c0bda;if(_0x71af27)return _0x71af27[_0x5d7ae9('0x3c')](_0x5afd5e[_0x5d7ae9('0x43')]['ids'])['then'](function(){const _0x54ad77=_0x5d7ae9;if(_[_0x54ad77('0x97')](_0x5afd5e[_0x54ad77('0x43')][_0x54ad77('0x3a')]))for(let _0x2171db=0x0;_0x2171db<_0x5afd5e[_0x54ad77('0x43')][_0x54ad77('0x3a')][_0x54ad77('0xa')];_0x2171db+=0x1){socket[_0x54ad77('0x2b')](_0x54ad77('0x9f'),{'UserId':Number(_0x5afd5e[_0x54ad77('0x43')][_0x54ad77('0x3a')][_0x2171db]),'FaxAccountId':Number(_0x5afd5e[_0x54ad77('0x5a')]['id'])});}else socket[_0x54ad77('0x2b')]('userFaxAccount:remove',{'UserId':Number(_0x5afd5e['query'][_0x54ad77('0x3a')]),'FaxAccountId':Number(_0x5afd5e[_0x54ad77('0x5a')]['id'])});});})['then'](respondWithStatusCode(_0x51f005,null))[_0x1c0bda('0x4a')](handleError(_0x51f005,null));},exports[_0x135191('0x77')]=function(_0x2c2daf,_0x476b3b){const _0x5b6391=_0x135191;let _0x22df73={};const _0x23062c={};let _0x320a99,_0x35b3c5;return db[_0x5b6391('0x5b')][_0x5b6391('0x3e')]({'where':{'id':_0x2c2daf['params']['id']}})[_0x5b6391('0x6')](handleEntityNotFound(_0x476b3b,null))[_0x5b6391('0x6')](function(_0x5cd91d){const _0x3ee5e7=_0x5b6391;if(_0x5cd91d)return _0x320a99=_0x5cd91d,_0x23062c['model']=_[_0x3ee5e7('0x8c')](db[_0x3ee5e7('0x2a')][_0x3ee5e7('0x99')]),_0x23062c[_0x3ee5e7('0x43')]=_[_0x3ee5e7('0x8c')](_0x2c2daf['query']),_0x23062c[_0x3ee5e7('0x72')]=_[_0x3ee5e7('0x15')](_0x23062c['model'],_0x23062c[_0x3ee5e7('0x43')]),_0x22df73[_0x3ee5e7('0x20')]=_[_0x3ee5e7('0x15')](_0x23062c['model'],qs[_0x3ee5e7('0x1d')](_0x2c2daf[_0x3ee5e7('0x43')][_0x3ee5e7('0x1d')])),_0x22df73['attributes']=_0x22df73[_0x3ee5e7('0x20')][_0x3ee5e7('0xa')]?_0x22df73[_0x3ee5e7('0x20')]:_0x23062c[_0x3ee5e7('0x5d')],_0x22df73[_0x3ee5e7('0x8b')]=qs[_0x3ee5e7('0xf')](_0x2c2daf[_0x3ee5e7('0x43')][_0x3ee5e7('0xf')]),_0x22df73[_0x3ee5e7('0x9e')]=qs[_0x3ee5e7('0x72')](_[_0x3ee5e7('0x75')](_0x2c2daf['query'],_0x23062c[_0x3ee5e7('0x72')])),_0x2c2daf[_0x3ee5e7('0x43')][_0x3ee5e7('0x27')]&&(_0x22df73[_0x3ee5e7('0x9e')]=_[_0x3ee5e7('0x33')](_0x22df73[_0x3ee5e7('0x9e')],{[Op['or']]:_['map'](_0x22df73[_0x3ee5e7('0x20')],function(_0x4d9e13){const _0xc06810=_0x3ee5e7,_0x39691d={};return _0x39691d[_0x4d9e13]={[Op['like']]:'%'+_0x2c2daf[_0xc06810('0x43')][_0xc06810('0x27')]+'%'},_0x39691d;})})),_0x22df73=_['merge']({},_0x22df73,_0x2c2daf['options']),_0x320a99[_0x3ee5e7('0x77')](_0x22df73);})[_0x5b6391('0x6')](function(_0x3a17be){const _0xc4378d=_0x5b6391;if(_0x3a17be)return _0x35b3c5=_0x3a17be['length'],typeof _0x2c2daf['query']['nolimit']===_0xc4378d('0x28')&&(_0x22df73[_0xc4378d('0x0')]=qs[_0xc4378d('0x0')](_0x2c2daf[_0xc4378d('0x43')][_0xc4378d('0x0')]),_0x22df73[_0xc4378d('0x4b')]=qs[_0xc4378d('0x4b')](_0x2c2daf[_0xc4378d('0x43')][_0xc4378d('0x4b')])),_0x320a99[_0xc4378d('0x77')](_0x22df73);})[_0x5b6391('0x6')](function(_0x2abe31){if(_0x2abe31)return _0x2abe31?{'count':_0x35b3c5,'rows':_0x2abe31}:null;})[_0x5b6391('0x6')](respondWithResult(_0x476b3b,null))[_0x5b6391('0x4a')](handleError(_0x476b3b,null));}; \ No newline at end of file +const a186_0x3534=['findByPk','autoAssociation','out','split','sequelize','update','FaxAccount','removeAgents','path','options','CDR(type)=inbound-fax','exten','info','priority','localstationid','FaxApplication','$gte','join','key','basename','push','List\x20not\x20found','util','SendFax','findOne','addAgents','moment','Send\x20Fax\x20failed','include','index','server/files/attachments','stringify','set','register','sendStatus','userFaxAccount:remove','addApplications','tech','length','getDispositions','minrate','CheckAfterSend','message','attachments','internal','/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','transaction','removeDispositions','description','addInteraction','request\x20sent','isNil','VoiceExtension','SendFaxRpc,\x20%s','Pause','role','get','describe','type','FaxAccounts','bulkCreate','where','send','like','ids','mandatoryDispositionPause','defaults','DESC','client','format','undefined','rawAttributes','create','includeAll','map','TrunkId','fieldName','http','faxdetect','FaxMessage','CannedAnswer','user','gte','order','limit','count','catch','nolimit','FaxAccountId','FaxInteraction','params','Contact\x20not\x20found','getMessages','filename','app','sort','User','../../components/parsers/qs','addAccountApplications','Owner','code','addDisposition','end','ListId','ReceiveFax','Answer','updatedAt','merge','then','stack','getAgents','FaxAccount,\x20%s,\x20%s','CmContact','Fax\x20Extension','lodash','json','status','from-voip-provider','YYYY-MM-DD\x20HH:mm:ss','isArray','model','findAndCountAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','fullname','filters','jayson/promise','name','removeAnswers','CmList','emit','intersection','destroy','tag','root','Contact','userFaxAccount:save','findAll','getInteractions','from','List','attributes','Tag','error','rows','pick','body','createdAt','VIRTUAL','Messages','result','appdata','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','updateAccountApplications','getApplications','query','Contacts','color','omit','Set','fields','Wait','Disposition','context','Tags','UserProfileResource','offset','FaxAccount,\x20%s,\x20%s,\x20%s','addAnswer','dataValues','modem','headerinfo','show','keys','filter'];(function(_0x51ffa9,_0x353474){const _0x1b8313=function(_0x33a116){while(--_0x33a116){_0x51ffa9['push'](_0x51ffa9['shift']());}};_0x1b8313(++_0x353474);}(a186_0x3534,0x19f));const a186_0x1b83=function(_0x51ffa9,_0x353474){_0x51ffa9=_0x51ffa9-0x0;let _0x1b8313=a186_0x3534[_0x51ffa9];return _0x1b8313;};const _0x1aac85=a186_0x1b83;'use strict';const moment=require(_0x1aac85('0x85')),util=require(_0x1aac85('0x81')),path=require(_0x1aac85('0x73')),_=require(_0x1aac85('0x2f')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x1aac85('0x1e')),logger=require('../../config/logger')('api'),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require(_0x1aac85('0x6f'));require('./faxAccount.socket')[_0x1aac85('0x8c')](socket);const jayson=require(_0x1aac85('0x3a')),client=jayson[_0x1aac85('0x1')]['http']({'port':0x232c}),client9002=jayson[_0x1aac85('0x1')][_0x1aac85('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x33a116,_0x346922,_0x2e2294,_0x199cfa){return new Promise(function(_0x2b6d71,_0x52254d){const _0x4939fb=a186_0x1b83,_0x5db2be=_0x199cfa||client;return _0x5db2be['request'](_0x33a116,_0x2e2294)[_0x4939fb('0x29')](function(_0x51d061){const _0x3c457d=_0x4939fb;logger[_0x3c457d('0x77')](_0x3c457d('0x2c'),_0x346922,'request\x20sent'),logger['debug'](_0x3c457d('0x63'),_0x346922,_0x3c457d('0x9d'),JSON[_0x3c457d('0x8a')](_0x51d061));if(_0x51d061['error']){if(_0x51d061[_0x3c457d('0x4b')][_0x3c457d('0x21')]===0x1f4)return logger['error'](_0x3c457d('0x2c'),_0x346922,_0x51d061[_0x3c457d('0x4b')]['message']),_0x52254d(_0x51d061[_0x3c457d('0x4b')][_0x3c457d('0x95')]);return logger['error'](_0x3c457d('0x2c'),_0x346922,_0x51d061[_0x3c457d('0x4b')][_0x3c457d('0x95')]),_0x2b6d71(_0x51d061[_0x3c457d('0x4b')][_0x3c457d('0x95')]);}else logger['info']('FaxAccount,\x20%s,\x20%s',_0x346922,_0x3c457d('0x9d')),_0x2b6d71(_0x51d061[_0x3c457d('0x52')][_0x3c457d('0x95')]);})['catch'](function(_0x19f822){const _0x1004c3=_0x4939fb;logger[_0x1004c3('0x4b')](_0x1004c3('0x2c'),_0x346922,_0x19f822),_0x52254d(_0x19f822);});});}function respondWithStatusCode(_0x4b89a3,_0x4ca797){return _0x4ca797=_0x4ca797||0xcc,function(_0x2e055c){const _0x7b7f67=a186_0x1b83;if(_0x2e055c)return _0x4b89a3[_0x7b7f67('0x8d')](_0x4ca797);return _0x4b89a3[_0x7b7f67('0x31')](_0x4ca797)[_0x7b7f67('0x23')]();};}function respondWithResult(_0x117ce5,_0x57316d){return _0x57316d=_0x57316d||0xc8,function(_0x39734d){const _0xbba4c3=a186_0x1b83;if(_0x39734d)return _0x117ce5['status'](_0x57316d)[_0xbba4c3('0x30')](_0x39734d);};}function respondWithFilteredResult(_0x12700d,_0x384641){return function(_0x2a78b9){const _0x3d037e=a186_0x1b83;if(_0x2a78b9){const _0xfc5854=_0x2a78b9['count'],_0x522ed6=_0x384641[_0x3d037e('0x62')];let _0x33885d=_0x384641['offset']+_0x384641['limit'],_0x26b967;return _0x33885d>=_0xfc5854?(_0x33885d=_0xfc5854,_0x26b967=0xc8):_0x26b967=0xce,_0x12700d[_0x3d037e('0x31')](_0x26b967),_0x12700d[_0x3d037e('0x8b')]('Content-Range',_0x522ed6+'-'+_0x33885d+'/'+_0xfc5854)[_0x3d037e('0x30')](_0x2a78b9);}return null;};}function saveUpdates(_0x5daaf4){return function(_0x2156bf){const _0x533c50=a186_0x1b83;if(_0x2156bf)return _0x2156bf[_0x533c50('0x70')](_0x5daaf4)[_0x533c50('0x29')](function(_0x5a6daa){return _0x5a6daa;});return null;};}function removeEntity(_0x4a8383){return function(_0x53adec){const _0x27f73f=a186_0x1b83;if(_0x53adec)return _0x53adec[_0x27f73f('0x40')]()[_0x27f73f('0x29')](function(){const _0x4a5bdb=_0x27f73f,_0x3e25b8=_0x53adec[_0x4a5bdb('0xa3')]({'plain':!![]}),_0x97ff66='FaxAccounts';return db[_0x4a5bdb('0x61')][_0x4a5bdb('0x40')]({'where':{'type':_0x97ff66,'resourceId':_0x3e25b8['id']}})[_0x4a5bdb('0x29')](function(){return _0x53adec;});})[_0x27f73f('0x29')](function(){const _0xc4779a=_0x27f73f;_0x4a8383[_0xc4779a('0x31')](0xcc)[_0xc4779a('0x23')]();});};}function handleEntityNotFound(_0x404946){return function(_0x3ce0a6){const _0x503083=a186_0x1b83;return!_0x3ce0a6&&_0x404946[_0x503083('0x8d')](0x194),_0x3ce0a6;};}function handleError(_0x243389,_0x51a712){return _0x51a712=_0x51a712||0x1f4,function(_0x4c41cf){const _0x55c63f=a186_0x1b83;logger[_0x55c63f('0x4b')](_0x4c41cf[_0x55c63f('0x2a')]),_0x4c41cf[_0x55c63f('0x3b')]&&delete _0x4c41cf[_0x55c63f('0x3b')],_0x243389[_0x55c63f('0x31')](_0x51a712)[_0x55c63f('0xa9')](_0x4c41cf);};}exports[_0x1aac85('0x88')]=function(_0x51324b,_0x4d8785){const _0x3f1c2d=_0x1aac85;let _0x5aaec4={'include':[{'model':db[_0x3f1c2d('0xa1')],'as':_0x3f1c2d('0xac')}]};const _0x576d3f={},_0x58d136={'count':0x0,'rows':[]},_0x2425e3=_['map'](db[_0x3f1c2d('0x71')]['rawAttributes'],function(_0x2c28d9){const _0x5369fb=_0x3f1c2d;return{'name':_0x2c28d9[_0x5369fb('0x9')],'type':_0x2c28d9['type']['key']};});_0x576d3f[_0x3f1c2d('0x35')]=_['map'](_0x2425e3,'name'),_0x576d3f['query']=_[_0x3f1c2d('0x69')](_0x51324b['query']),_0x576d3f[_0x3f1c2d('0x39')]=_['intersection'](_0x576d3f['model'],_0x576d3f[_0x3f1c2d('0x57')]),_0x5aaec4[_0x3f1c2d('0x49')]=_[_0x3f1c2d('0x3f')](_0x576d3f['model'],qs['fields'](_0x51324b[_0x3f1c2d('0x57')][_0x3f1c2d('0x5c')])),_0x5aaec4[_0x3f1c2d('0x49')]=_0x5aaec4['attributes'][_0x3f1c2d('0x91')]?_0x5aaec4[_0x3f1c2d('0x49')]:_0x576d3f[_0x3f1c2d('0x35')];typeof _0x51324b['query'][_0x3f1c2d('0x14')]==='undefined'&&(_0x5aaec4['limit']=qs['limit'](_0x51324b[_0x3f1c2d('0x57')][_0x3f1c2d('0x11')]),_0x5aaec4['offset']=qs[_0x3f1c2d('0x62')](_0x51324b['query'][_0x3f1c2d('0x62')]));_0x5aaec4[_0x3f1c2d('0x10')]=qs[_0x3f1c2d('0x1c')](_0x51324b[_0x3f1c2d('0x57')][_0x3f1c2d('0x1c')]),_0x5aaec4[_0x3f1c2d('0xa8')]=qs[_0x3f1c2d('0x39')](_[_0x3f1c2d('0x4d')](_0x51324b[_0x3f1c2d('0x57')],_0x576d3f[_0x3f1c2d('0x39')]),_0x2425e3);_0x51324b[_0x3f1c2d('0x57')][_0x3f1c2d('0x6a')]&&(_0x5aaec4[_0x3f1c2d('0xa8')]=_[_0x3f1c2d('0x28')](_0x5aaec4['where'],{[Op['or']]:_['map'](_0x2425e3,function(_0x355c9a){const _0x36efb6=_0x3f1c2d;if(_0x355c9a[_0x36efb6('0xa5')]!==_0x36efb6('0x50')){const _0x1901cf={};return _0x1901cf[_0x355c9a[_0x36efb6('0x3b')]]={[Op[_0x36efb6('0xaa')]]:'%'+_0x51324b[_0x36efb6('0x57')][_0x36efb6('0x6a')]+'%'},_0x1901cf;}})}));_0x5aaec4=_['merge']({},_0x5aaec4,_0x51324b[_0x3f1c2d('0x74')]);const _0xe06201={'where':_0x5aaec4[_0x3f1c2d('0xa8')]};return db['FaxAccount'][_0x3f1c2d('0x12')](_0xe06201)[_0x3f1c2d('0x29')](function(_0x121142){const _0x2f251d=_0x3f1c2d;return _0x58d136[_0x2f251d('0x12')]=_0x121142,_0x51324b[_0x2f251d('0x57')]['includeAll']&&(_0x5aaec4[_0x2f251d('0x87')]=[{'all':!![]}]),db[_0x2f251d('0x71')][_0x2f251d('0x45')](_0x5aaec4);})[_0x3f1c2d('0x29')](function(_0x35524b){const _0xad51d8=_0x3f1c2d;return _0x58d136[_0xad51d8('0x4c')]=_0x35524b,_0x58d136;})[_0x3f1c2d('0x29')](respondWithFilteredResult(_0x4d8785,_0x5aaec4))[_0x3f1c2d('0x13')](handleError(_0x4d8785,null));},exports[_0x1aac85('0x68')]=function(_0x17506d,_0x387be7){const _0x5654a5=_0x1aac85;let _0x478ea7={'raw':![],'where':{'id':_0x17506d[_0x5654a5('0x17')]['id']},'include':[{'model':db[_0x5654a5('0xa1')],'as':'mandatoryDispositionPause'}]};const _0x3d2630={};return _0x3d2630[_0x5654a5('0x35')]=_['keys'](db[_0x5654a5('0x71')][_0x5654a5('0x4')]),_0x3d2630[_0x5654a5('0x57')]=_[_0x5654a5('0x69')](_0x17506d[_0x5654a5('0x57')]),_0x3d2630['filters']=_['intersection'](_0x3d2630['model'],_0x3d2630[_0x5654a5('0x57')]),_0x478ea7['attributes']=_[_0x5654a5('0x3f')](_0x3d2630['model'],qs[_0x5654a5('0x5c')](_0x17506d['query'][_0x5654a5('0x5c')])),_0x478ea7['attributes']=_0x478ea7[_0x5654a5('0x49')][_0x5654a5('0x91')]?_0x478ea7[_0x5654a5('0x49')]:_0x3d2630[_0x5654a5('0x35')],_0x17506d[_0x5654a5('0x57')][_0x5654a5('0x6')]&&(_0x478ea7[_0x5654a5('0x87')]=[{'all':!![]}]),_0x478ea7=_[_0x5654a5('0x28')]({},_0x478ea7,_0x17506d[_0x5654a5('0x74')]),db[_0x5654a5('0x71')][_0x5654a5('0x83')](_0x478ea7)[_0x5654a5('0x29')](handleEntityNotFound(_0x387be7,null))[_0x5654a5('0x29')](respondWithResult(_0x387be7,null))[_0x5654a5('0x13')](handleError(_0x387be7,null));},exports[_0x1aac85('0x5')]=function(_0x14df5f,_0x6d0487){const _0x51d3f9=_0x1aac85;return db['FaxAccount'][_0x51d3f9('0x5')](_0x14df5f[_0x51d3f9('0x4e')],{})['then'](function(_0x5624b6){const _0x1114f7=_0x51d3f9,_0x49ff00=_0x14df5f['user']['get']({'plain':!![]});if(!_0x49ff00)throw new Error(_0x1114f7('0x37'));if(_0x49ff00[_0x1114f7('0xa2')]===_0x1114f7('0xe')){const _0x577f7a=_0x5624b6['get']({'plain':!![]}),_0x382f2c=_0x1114f7('0xa6');return db['UserProfileSection']['findOne']({'where':{'name':_0x382f2c,'userProfileId':_0x49ff00['userProfileId']},'raw':!![]})['then'](function(_0x454976){const _0x13346b=_0x1114f7;return _0x454976&&_0x454976[_0x13346b('0x6c')]===0x0?db[_0x13346b('0x61')][_0x13346b('0x5')]({'name':_0x577f7a['name'],'resourceId':_0x577f7a['id'],'type':_0x454976[_0x13346b('0x3b')],'sectionId':_0x454976['id']},{})[_0x13346b('0x29')](function(){return _0x5624b6;}):_0x5624b6;})[_0x1114f7('0x13')](function(_0x36cd27){const _0x9f53b6=_0x1114f7;logger[_0x9f53b6('0x4b')](_0x9f53b6('0x54'),_0x36cd27);throw _0x36cd27;});}return _0x5624b6;})['then'](respondWithResult(_0x6d0487,0xc9))['catch'](handleError(_0x6d0487,null));},exports[_0x1aac85('0x70')]=function(_0x294de1,_0x4e4789){const _0x4a60cf=_0x1aac85;return _0x294de1[_0x4a60cf('0x4e')]['id']&&delete _0x294de1[_0x4a60cf('0x4e')]['id'],db[_0x4a60cf('0x71')][_0x4a60cf('0x83')]({'where':{'id':_0x294de1['params']['id']},'include':[{'model':db[_0x4a60cf('0xa1')],'as':_0x4a60cf('0xac')}]})['then'](handleEntityNotFound(_0x4e4789,null))[_0x4a60cf('0x29')](saveUpdates(_0x294de1['body'],null))[_0x4a60cf('0x29')](respondWithResult(_0x4e4789,null))[_0x4a60cf('0x13')](handleError(_0x4e4789,null));},exports[_0x1aac85('0x40')]=function(_0x483474,_0x10ac93){const _0x238099=_0x1aac85;return db[_0x238099('0x71')][_0x238099('0x83')]({'where':{'id':_0x483474['params']['id']}})[_0x238099('0x29')](handleEntityNotFound(_0x10ac93,null))[_0x238099('0x29')](removeEntity(_0x10ac93,null))[_0x238099('0x13')](handleError(_0x10ac93,null));},exports[_0x1aac85('0xa4')]=function(_0x44a168,_0x235af8){const _0x4d6934=_0x1aac85;return db[_0x4d6934('0x71')][_0x4d6934('0xa4')]()['then'](respondWithResult(_0x235af8,null))[_0x4d6934('0x13')](handleError(_0x235af8,null));},exports[_0x1aac85('0x22')]=function(_0x3a2442,_0x18f9fe){const _0x555abf=_0x1aac85;return _0x3a2442[_0x555abf('0x4e')]['id']&&delete _0x3a2442[_0x555abf('0x4e')]['id'],db[_0x555abf('0x71')][_0x555abf('0x83')]({'where':{'id':_0x3a2442[_0x555abf('0x17')]['id']}})[_0x555abf('0x29')](handleEntityNotFound(_0x18f9fe,null))[_0x555abf('0x29')](function(_0x43bced){const _0x1c7443=_0x555abf;if(_0x43bced)return _0x3a2442[_0x1c7443('0x4e')]['FaxAccountId']=_0x43bced['id'],db[_0x1c7443('0x5e')][_0x1c7443('0x5')](_0x3a2442[_0x1c7443('0x4e')]);})['then'](respondWithResult(_0x18f9fe,null))[_0x555abf('0x13')](handleError(_0x18f9fe,null));},exports[_0x1aac85('0x92')]=function(_0x420085,_0x48a030){const _0x276079=_0x1aac85;let _0x5528e6={'raw':![],'where':{}};const _0x4a01ac={},_0xdb2a2a={'count':0x0,'rows':[]};return db[_0x276079('0x71')][_0x276079('0x83')]({'where':{'id':_0x420085[_0x276079('0x17')]['id']}})[_0x276079('0x29')](handleEntityNotFound(_0x48a030,null))['then'](function(_0x24eaeb){const _0x1f48ed=_0x276079;if(_0x24eaeb)return _0x4a01ac[_0x1f48ed('0x35')]=_[_0x1f48ed('0x69')](db[_0x1f48ed('0x5e')][_0x1f48ed('0x4')]),_0x4a01ac[_0x1f48ed('0x57')]=_['keys'](_0x420085[_0x1f48ed('0x57')]),_0x4a01ac[_0x1f48ed('0x39')]=_[_0x1f48ed('0x3f')](_0x4a01ac[_0x1f48ed('0x35')],_0x4a01ac[_0x1f48ed('0x57')]),_0x5528e6[_0x1f48ed('0x49')]=_['intersection'](_0x4a01ac[_0x1f48ed('0x35')],qs['fields'](_0x420085[_0x1f48ed('0x57')]['fields'])),_0x5528e6[_0x1f48ed('0x49')]=_0x5528e6['attributes'][_0x1f48ed('0x91')]?_0x5528e6[_0x1f48ed('0x49')]:_0x4a01ac[_0x1f48ed('0x35')],typeof _0x420085[_0x1f48ed('0x57')][_0x1f48ed('0x14')]==='undefined'&&(_0x5528e6['limit']=qs['limit'](_0x420085[_0x1f48ed('0x57')][_0x1f48ed('0x11')]),_0x5528e6[_0x1f48ed('0x62')]=qs['offset'](_0x420085[_0x1f48ed('0x57')]['offset'])),_0x5528e6[_0x1f48ed('0x10')]=qs[_0x1f48ed('0x1c')](_0x420085[_0x1f48ed('0x57')][_0x1f48ed('0x1c')]),_0x5528e6[_0x1f48ed('0xa8')]=qs[_0x1f48ed('0x39')](_[_0x1f48ed('0x4d')](_0x420085[_0x1f48ed('0x57')],_0x4a01ac[_0x1f48ed('0x39')])),_0x5528e6['where'][_0x1f48ed('0x15')]=_0x24eaeb['id'],_0x420085[_0x1f48ed('0x57')][_0x1f48ed('0x6a')]&&(_0x5528e6['where']=_[_0x1f48ed('0x28')](_0x5528e6[_0x1f48ed('0xa8')],{[Op['or']]:_[_0x1f48ed('0x7')](_0x5528e6['attributes'],function(_0x22decf){const _0xbb5f=_0x1f48ed,_0x4e287b={};return _0x4e287b[_0x22decf]={[Op[_0xbb5f('0xaa')]]:'%'+_0x420085['query'][_0xbb5f('0x6a')]+'%'},_0x4e287b;})})),_0x5528e6=_['merge']({},_0x5528e6,_0x420085[_0x1f48ed('0x74')]),db['Disposition']['count']({'where':_0x5528e6[_0x1f48ed('0xa8')]})[_0x1f48ed('0x29')](function(_0x419afd){const _0x2a208e=_0x1f48ed;return _0xdb2a2a['count']=_0x419afd,_0x420085['query'][_0x2a208e('0x6')]&&(_0x5528e6[_0x2a208e('0x87')]=[{'all':!![]}]),db[_0x2a208e('0x5e')][_0x2a208e('0x45')](_0x5528e6);})[_0x1f48ed('0x29')](function(_0x52cce9){const _0x187a90=_0x1f48ed;return _0xdb2a2a[_0x187a90('0x4c')]=_0x52cce9,_0xdb2a2a;});})[_0x276079('0x29')](respondWithFilteredResult(_0x48a030,_0x5528e6))[_0x276079('0x13')](handleError(_0x48a030,null));},exports[_0x1aac85('0x9a')]=function(_0x117602,_0x10ef77){const _0xdd5c25=_0x1aac85;return db[_0xdd5c25('0x71')][_0xdd5c25('0x83')]({'where':{'id':_0x117602[_0xdd5c25('0x17')]['id']}})['then'](handleEntityNotFound(_0x10ef77,null))[_0xdd5c25('0x29')](function(_0x494fc8){const _0xcf1246=_0xdd5c25;if(_0x494fc8)return _0x494fc8[_0xcf1246('0x9a')](_0x117602[_0xcf1246('0x57')][_0xcf1246('0xab')]);})[_0xdd5c25('0x29')](respondWithStatusCode(_0x10ef77,null))['catch'](handleError(_0x10ef77,null));},exports[_0x1aac85('0x64')]=function(_0x3df529,_0x257f4c){const _0x1b894b=_0x1aac85;return _0x3df529[_0x1b894b('0x4e')]['id']&&delete _0x3df529['body']['id'],db[_0x1b894b('0x71')][_0x1b894b('0x83')]({'where':{'id':_0x3df529[_0x1b894b('0x17')]['id']}})['then'](handleEntityNotFound(_0x257f4c,null))['then'](function(_0x2e7cc9){const _0x47727b=_0x1b894b;if(_0x2e7cc9)return _0x3df529['body']['FaxAccountId']=_0x2e7cc9['id'],db[_0x47727b('0xd')]['create'](_0x3df529[_0x47727b('0x4e')]);})[_0x1b894b('0x29')](respondWithResult(_0x257f4c,null))[_0x1b894b('0x13')](handleError(_0x257f4c,null));},exports['getAnswers']=function(_0x33b4ab,_0x18f98d){const _0x4c6e66=_0x1aac85;let _0x712ab7={'raw':![],'where':{}};const _0x23f36c={},_0x9a10c5={'count':0x0,'rows':[]};return db['FaxAccount']['findOne']({'where':{'id':_0x33b4ab[_0x4c6e66('0x17')]['id']}})[_0x4c6e66('0x29')](handleEntityNotFound(_0x18f98d,null))[_0x4c6e66('0x29')](function(_0x3f2fa2){const _0x3e4d9a=_0x4c6e66;if(_0x3f2fa2)return _0x23f36c[_0x3e4d9a('0x35')]=_[_0x3e4d9a('0x69')](db[_0x3e4d9a('0xd')]['rawAttributes']),_0x23f36c[_0x3e4d9a('0x57')]=_[_0x3e4d9a('0x69')](_0x33b4ab[_0x3e4d9a('0x57')]),_0x23f36c[_0x3e4d9a('0x39')]=_[_0x3e4d9a('0x3f')](_0x23f36c[_0x3e4d9a('0x35')],_0x23f36c[_0x3e4d9a('0x57')]),_0x712ab7[_0x3e4d9a('0x49')]=_[_0x3e4d9a('0x3f')](_0x23f36c[_0x3e4d9a('0x35')],qs[_0x3e4d9a('0x5c')](_0x33b4ab[_0x3e4d9a('0x57')][_0x3e4d9a('0x5c')])),_0x712ab7[_0x3e4d9a('0x49')]=_0x712ab7[_0x3e4d9a('0x49')]['length']?_0x712ab7[_0x3e4d9a('0x49')]:_0x23f36c[_0x3e4d9a('0x35')],typeof _0x33b4ab[_0x3e4d9a('0x57')]['nolimit']===_0x3e4d9a('0x3')&&(_0x712ab7[_0x3e4d9a('0x11')]=qs[_0x3e4d9a('0x11')](_0x33b4ab[_0x3e4d9a('0x57')][_0x3e4d9a('0x11')]),_0x712ab7[_0x3e4d9a('0x62')]=qs['offset'](_0x33b4ab[_0x3e4d9a('0x57')][_0x3e4d9a('0x62')])),_0x712ab7[_0x3e4d9a('0x10')]=qs[_0x3e4d9a('0x1c')](_0x33b4ab[_0x3e4d9a('0x57')][_0x3e4d9a('0x1c')]),_0x712ab7[_0x3e4d9a('0xa8')]=qs[_0x3e4d9a('0x39')](_[_0x3e4d9a('0x4d')](_0x33b4ab[_0x3e4d9a('0x57')],_0x23f36c[_0x3e4d9a('0x39')])),_0x712ab7[_0x3e4d9a('0xa8')]['FaxAccountId']=_0x3f2fa2['id'],_0x33b4ab[_0x3e4d9a('0x57')][_0x3e4d9a('0x6a')]&&(_0x712ab7[_0x3e4d9a('0xa8')]=_[_0x3e4d9a('0x28')](_0x712ab7[_0x3e4d9a('0xa8')],{[Op['or']]:_[_0x3e4d9a('0x7')](_0x712ab7[_0x3e4d9a('0x49')],function(_0x138d46){const _0x558083={};return _0x558083[_0x138d46]={[Op['like']]:'%'+_0x33b4ab['query']['filter']+'%'},_0x558083;})})),_0x712ab7=_[_0x3e4d9a('0x28')]({},_0x712ab7,_0x33b4ab[_0x3e4d9a('0x74')]),db[_0x3e4d9a('0xd')]['count']({'where':_0x712ab7[_0x3e4d9a('0xa8')]})[_0x3e4d9a('0x29')](function(_0xcac5b){const _0x15891d=_0x3e4d9a;return _0x9a10c5[_0x15891d('0x12')]=_0xcac5b,_0x33b4ab[_0x15891d('0x57')][_0x15891d('0x6')]&&(_0x712ab7[_0x15891d('0x87')]=[{'all':!![]}]),db[_0x15891d('0xd')][_0x15891d('0x45')](_0x712ab7);})[_0x3e4d9a('0x29')](function(_0x37213f){return _0x9a10c5['rows']=_0x37213f,_0x9a10c5;});})[_0x4c6e66('0x29')](respondWithFilteredResult(_0x18f98d,_0x712ab7))[_0x4c6e66('0x13')](handleError(_0x18f98d,null));},exports[_0x1aac85('0x3c')]=function(_0x2c3752,_0x33eed8){const _0x3c2c67=_0x1aac85;return db['FaxAccount'][_0x3c2c67('0x83')]({'where':{'id':_0x2c3752[_0x3c2c67('0x17')]['id']}})[_0x3c2c67('0x29')](handleEntityNotFound(_0x33eed8,null))['then'](function(_0x37ac77){const _0x43fbe2=_0x3c2c67;if(_0x37ac77)return _0x37ac77[_0x43fbe2('0x3c')](_0x2c3752[_0x43fbe2('0x57')][_0x43fbe2('0xab')]);})['then'](respondWithStatusCode(_0x33eed8,null))[_0x3c2c67('0x13')](handleError(_0x33eed8,null));},exports[_0x1aac85('0x9c')]=function(_0x3f0590,_0x380f38){const _0x4dcbd9=_0x1aac85;return db[_0x4dcbd9('0x16')][_0x4dcbd9('0x83')]({'where':{'id':_0x3f0590[_0x4dcbd9('0x17')]['id']}})[_0x4dcbd9('0x29')](function(_0x51d200){const _0x274a2a=_0x4dcbd9;if(_0x51d200)return _0x51d200[_0x274a2a('0x9c')](_0x3f0590[_0x274a2a('0x4e')][_0x274a2a('0xab')],{'through':_[_0x274a2a('0x5a')](_0x3f0590[_0x274a2a('0x4e')],[_0x274a2a('0xab'),'id'])});})['then'](respondWithResult(_0x380f38,null))[_0x4dcbd9('0x13')](handleError(_0x380f38,null));},exports[_0x1aac85('0x46')]=function(_0x3f31fd,_0x16d84a){const _0x4b0c10=_0x1aac85;let _0x24ecf6={'raw':![],'where':{}};const _0x1d76f4={},_0xd10319={'count':0x0,'rows':[]};return db[_0x4b0c10('0x71')][_0x4b0c10('0x83')]({'where':{'id':_0x3f31fd[_0x4b0c10('0x17')]['id']}})[_0x4b0c10('0x29')](handleEntityNotFound(_0x16d84a,null))['then'](function(_0x5c4470){const _0x3b5986=_0x4b0c10;if(_0x5c4470)return _0x1d76f4[_0x3b5986('0x35')]=_['keys'](db[_0x3b5986('0x16')][_0x3b5986('0x4')]),_0x1d76f4['query']=_[_0x3b5986('0x69')](_0x3f31fd['query']),_0x1d76f4[_0x3b5986('0x39')]=_[_0x3b5986('0x3f')](_0x1d76f4[_0x3b5986('0x35')],_0x1d76f4['query']),_0x24ecf6[_0x3b5986('0x49')]=_[_0x3b5986('0x3f')](_0x1d76f4[_0x3b5986('0x35')],qs['fields'](_0x3f31fd[_0x3b5986('0x57')][_0x3b5986('0x5c')])),_0x24ecf6[_0x3b5986('0x49')]=_0x24ecf6['attributes']['length']?_0x24ecf6[_0x3b5986('0x49')]:_0x1d76f4[_0x3b5986('0x35')],typeof _0x3f31fd[_0x3b5986('0x57')]['nolimit']===_0x3b5986('0x3')&&(_0x24ecf6['limit']=qs['limit'](_0x3f31fd[_0x3b5986('0x57')][_0x3b5986('0x11')]),_0x24ecf6[_0x3b5986('0x62')]=qs['offset'](_0x3f31fd[_0x3b5986('0x57')][_0x3b5986('0x62')])),_0x24ecf6['order']=qs['sort'](_0x3f31fd[_0x3b5986('0x57')]['sort']),_0x24ecf6['where']=qs[_0x3b5986('0x39')](_[_0x3b5986('0x4d')](_0x3f31fd['query'],_0x1d76f4[_0x3b5986('0x39')])),_0x24ecf6[_0x3b5986('0xa8')][_0x3b5986('0x15')]=_0x5c4470['id'],_0x3f31fd[_0x3b5986('0x57')][_0x3b5986('0x6a')]&&(_0x24ecf6[_0x3b5986('0xa8')]=_[_0x3b5986('0x28')](_0x24ecf6['where'],{[Op['or']]:_[_0x3b5986('0x7')](_0x24ecf6[_0x3b5986('0x49')],function(_0x417d62){const _0x20ba7b=_0x3b5986,_0x349092={};return _0x349092[_0x417d62]={[Op[_0x20ba7b('0xaa')]]:'%'+_0x3f31fd['query'][_0x20ba7b('0x6a')]+'%'},_0x349092;})})),_0x24ecf6=_[_0x3b5986('0x28')]({},_0x24ecf6,_0x3f31fd[_0x3b5986('0x74')]),db[_0x3b5986('0x16')][_0x3b5986('0x12')]({'where':_0x24ecf6['where']})[_0x3b5986('0x29')](function(_0x544443){const _0x57b31d=_0x3b5986;return _0xd10319[_0x57b31d('0x12')]=_0x544443,_0x3f31fd[_0x57b31d('0x57')][_0x57b31d('0x6')]&&(_0x24ecf6[_0x57b31d('0x87')]=[{'model':db[_0x57b31d('0x2d')],'as':_0x57b31d('0x43'),'required':![]},{'model':db[_0x57b31d('0x1d')],'as':_0x57b31d('0x20'),'attributes':[_0x57b31d('0x3b'),_0x57b31d('0x38'),_0x57b31d('0x97')],'required':![]},{'model':db[_0x57b31d('0x4a')],'as':_0x57b31d('0x60'),'attributes':['id',_0x57b31d('0x3b'),_0x57b31d('0x59')],'where':_0x3f31fd[_0x57b31d('0x57')]['tag']?{'id':_0x3f31fd['query']['tag']}:undefined,'required':_0x3f31fd[_0x57b31d('0x57')][_0x57b31d('0x41')]?!![]:![]}]),db['FaxInteraction'][_0x57b31d('0x45')](_0x24ecf6);})['then'](function(_0x53a978){const _0x59cba3=_0x3b5986;return _0xd10319[_0x59cba3('0x4c')]=_0x53a978,_0xd10319;});})[_0x4b0c10('0x29')](respondWithFilteredResult(_0x16d84a,_0x24ecf6))[_0x4b0c10('0x13')](handleError(_0x16d84a,null));},exports[_0x1aac85('0x8f')]=function(_0x512379,_0x38c6f8){const _0x3db84b=_0x1aac85;return db[_0x3db84b('0x71')]['findOne']({'where':{'id':_0x512379[_0x3db84b('0x17')]['id']}})[_0x3db84b('0x29')](handleEntityNotFound(_0x38c6f8,null))['then'](function(_0x5505d0){const _0x5b01c6=_0x3db84b;if(_0x5505d0)return db[_0x5b01c6('0x6f')]['transaction'](function(_0x1d1515){const _0x1d7bd6=_0x5b01c6;return db[_0x1d7bd6('0x7a')][_0x1d7bd6('0x40')]({'where':{'FaxAccountId':_0x512379[_0x1d7bd6('0x17')]['id']},'transaction':_0x1d1515})['then'](function(){const _0xaaa885=_0x1d7bd6,_0x29e437=_[_0xaaa885('0x7')](_0x512379[_0xaaa885('0x4e')],function(_0x432f4b){const _0x39b398=_0xaaa885;return _0x432f4b[_0x39b398('0x15')]=_0x512379[_0x39b398('0x17')]['id'],_0x432f4b;});return db[_0xaaa885('0x7a')][_0xaaa885('0xa7')](_0x29e437,{'transaction':_0x1d1515});});})[_0x5b01c6('0x29')](function(){const _0x3b95a4=_0x5b01c6;return db['FaxApplication'][_0x3b95a4('0x36')]({'where':{'FaxAccountId':_0x512379[_0x3b95a4('0x17')]['id']},'order':_0x3b95a4('0x78')});});})['then'](respondWithResult(_0x38c6f8,null))[_0x3db84b('0x13')](handleError(_0x38c6f8,null));},exports[_0x1aac85('0x56')]=function(_0x4d318d,_0x462319){const _0x4ad2f1=_0x1aac85;let _0x1ece51={};const _0x107a6d={};let _0x47c5a8,_0x1bc50f;return db['FaxAccount'][_0x4ad2f1('0x83')]({'where':{'id':_0x4d318d[_0x4ad2f1('0x17')]['id']}})[_0x4ad2f1('0x29')](handleEntityNotFound(_0x462319,null))[_0x4ad2f1('0x29')](function(_0x17b63d){const _0x5bd663=_0x4ad2f1;if(_0x17b63d)return _0x47c5a8=_0x17b63d,_0x107a6d[_0x5bd663('0x35')]=_[_0x5bd663('0x69')](db['FaxApplication']['rawAttributes']),_0x107a6d[_0x5bd663('0x57')]=_[_0x5bd663('0x69')](_0x4d318d[_0x5bd663('0x57')]),_0x107a6d[_0x5bd663('0x39')]=_[_0x5bd663('0x3f')](_0x107a6d[_0x5bd663('0x35')],_0x107a6d[_0x5bd663('0x57')]),_0x1ece51[_0x5bd663('0x49')]=_[_0x5bd663('0x3f')](_0x107a6d[_0x5bd663('0x35')],qs['fields'](_0x4d318d[_0x5bd663('0x57')][_0x5bd663('0x5c')])),_0x1ece51['attributes']=_0x1ece51[_0x5bd663('0x49')][_0x5bd663('0x91')]?_0x1ece51[_0x5bd663('0x49')]:_0x107a6d[_0x5bd663('0x35')],_0x1ece51[_0x5bd663('0x10')]=qs['sort'](_0x4d318d[_0x5bd663('0x57')][_0x5bd663('0x1c')]),_0x1ece51['where']=qs[_0x5bd663('0x39')](_[_0x5bd663('0x4d')](_0x4d318d[_0x5bd663('0x57')],_0x107a6d['filters'])),_0x4d318d[_0x5bd663('0x57')][_0x5bd663('0x6a')]&&(_0x1ece51[_0x5bd663('0xa8')]=_[_0x5bd663('0x28')](_0x1ece51[_0x5bd663('0xa8')],{[Op['or']]:_[_0x5bd663('0x7')](_0x1ece51['attributes'],function(_0x1cf388){const _0x850594=_0x5bd663,_0x136e28={};return _0x136e28[_0x1cf388]={[Op[_0x850594('0xaa')]]:'%'+_0x4d318d[_0x850594('0x57')][_0x850594('0x6a')]+'%'},_0x136e28;})})),_0x1ece51=_[_0x5bd663('0x28')]({},_0x1ece51,_0x4d318d['options']),_0x47c5a8[_0x5bd663('0x56')](_0x1ece51);})[_0x4ad2f1('0x29')](function(_0x683f4b){const _0x1071bc=_0x4ad2f1;if(_0x683f4b)return _0x1bc50f=_0x683f4b[_0x1071bc('0x91')],typeof _0x4d318d[_0x1071bc('0x57')][_0x1071bc('0x14')]===_0x1071bc('0x3')&&(_0x1ece51['limit']=qs[_0x1071bc('0x11')](_0x4d318d[_0x1071bc('0x57')]['limit']),_0x1ece51[_0x1071bc('0x62')]=qs[_0x1071bc('0x62')](_0x4d318d['query'][_0x1071bc('0x62')])),_0x47c5a8[_0x1071bc('0x56')](_0x1ece51);})[_0x4ad2f1('0x29')](function(_0xde9766){if(_0xde9766)return _0xde9766?{'count':_0x1bc50f,'rows':_0xde9766}:null;})[_0x4ad2f1('0x29')](respondWithResult(_0x462319,null))['catch'](handleError(_0x462319,null));};function Extension(_0xab6750,_0x125672,_0x14329e,_0x4b8b49){const _0x32ca03=_0x1aac85;this[_0x32ca03('0x5f')]=_0x32ca03('0x32'),this[_0x32ca03('0x76')]=_0xab6750[_0x32ca03('0x79')],this[_0x32ca03('0x1b')]=_0x4b8b49,this[_0x32ca03('0xa5')]='system',this[_0x32ca03('0x9b')]=_0x32ca03('0x2e'),this['FaxAccountId']=_0xab6750['id'],this[_0x32ca03('0x78')]=_0x125672,this[_0x32ca03('0x53')]=_0x14329e;}function createExtensionsReciveFax(_0x351a1c){const _0x372820=_0x1aac85;let _0x3a9395=0x1;const _0x1ad24e=[];_0x1ad24e[_0x372820('0x7f')](new Extension(_0x351a1c,_0x3a9395,'',_0x372820('0x26'))),_0x3a9395+=0x1,_0x1ad24e[_0x372820('0x7f')](new Extension(_0x351a1c,_0x3a9395,_0x372820('0x75'),_0x372820('0x5b'))),_0x3a9395+=0x1;for(const _0x25e5d3 in _0x351a1c){typeof _0x351a1c[_0x25e5d3]!==_0x372820('0x3')&&(_0x25e5d3==='ecm'||_0x25e5d3===_0x372820('0x79')||_0x25e5d3==='gateway'||_0x25e5d3===_0x372820('0xb')||_0x25e5d3===_0x372820('0x67')||_0x25e5d3==='maxrate'||_0x25e5d3===_0x372820('0x93')||_0x25e5d3===_0x372820('0x66')||_0x25e5d3==='t38timeout')&&(_0x1ad24e[_0x372820('0x7f')](new Extension(_0x351a1c,_0x3a9395,'FAXOPT('+_0x25e5d3+')='+_0x351a1c[_0x25e5d3],_0x372820('0x5b'))),_0x3a9395+=0x1);}return _0x1ad24e['push'](new Extension(_0x351a1c,_0x3a9395,'6',_0x372820('0x5d'))),_0x3a9395+=0x1,_0x1ad24e[_0x372820('0x7f')](new Extension(_0x351a1c,_0x3a9395,_0x372820('0x98'),_0x372820('0x25'))),_0x3a9395=0x0,_0x1ad24e;}exports[_0x1aac85('0x1f')]=function(_0x257dc5,_0x3c3904){const _0x4ff606=_0x1aac85;let _0x511eb6;return db[_0x4ff606('0x6f')][_0x4ff606('0x99')](function(_0x460b44){const _0x3dfd1a=_0x4ff606;return db[_0x3dfd1a('0x71')][_0x3dfd1a('0x5')](_0x257dc5[_0x3dfd1a('0x4e')],{'transaction':_0x460b44})[_0x3dfd1a('0x29')](function(_0x1640f7){const _0x418534=_0x3dfd1a;return _0x511eb6=_0x1640f7[_0x418534('0xa3')]({'plain':!![]}),db[_0x418534('0x9f')][_0x418534('0xa7')](createExtensionsReciveFax(_0x511eb6),{'transaction':_0x460b44});});})[_0x4ff606('0x29')](function(){return _0x511eb6;})[_0x4ff606('0x29')](respondWithResult(_0x3c3904,null))[_0x4ff606('0x13')](handleError(_0x3c3904,null));},exports[_0x1aac85('0x55')]=function(_0xfb2be9,_0x274ece){const _0x4320c1=_0x1aac85;return db[_0x4320c1('0x6f')][_0x4320c1('0x99')](function(_0x465138){const _0x39b1fc=_0x4320c1;return db[_0x39b1fc('0x71')][_0x39b1fc('0x70')](_0xfb2be9[_0x39b1fc('0x4e')],{'where':{'id':_0xfb2be9['body']['id']},'transaction':_0x465138})['then'](function(){const _0x11711a=_0x39b1fc;return db[_0x11711a('0x9f')][_0x11711a('0x40')]({'where':{'FaxAccountId':_0xfb2be9['body']['id']},'transaction':_0x465138})[_0x11711a('0x29')](function(){const _0x48b472=_0x11711a;return db['VoiceExtension'][_0x48b472('0xa7')](createExtensionsReciveFax(_[_0x48b472('0x5a')](_0xfb2be9['body'],[_0x48b472('0x90'),_0x48b472('0x7d'),_0x48b472('0x4f'),_0x48b472('0x27'),_0x48b472('0x8'),_0x48b472('0x24')])),{'transaction':_0x465138});});});})['then'](function(){const _0x21bc92=_0x4320c1;return db[_0x21bc92('0x71')][_0x21bc92('0x6b')](_0xfb2be9[_0x21bc92('0x4e')]['id']);})['then'](respondWithResult(_0x274ece,null))[_0x4320c1('0x13')](handleError(_0x274ece,null));},exports[_0x1aac85('0x19')]=function(_0x1a2821,_0x2be455){const _0xbb7600=_0x1aac85;let _0x4c3afc={'raw':!![],'where':{}};const _0x2ea60f={},_0x448dd7={'count':0x0,'rows':[]};return db[_0xbb7600('0x71')][_0xbb7600('0x83')]({'where':{'id':_0x1a2821[_0xbb7600('0x17')]['id']}})[_0xbb7600('0x29')](handleEntityNotFound(_0x2be455,null))[_0xbb7600('0x29')](function(_0x2974a6){const _0x161d3e=_0xbb7600;if(_0x2974a6){_0x2ea60f[_0x161d3e('0x35')]=_['keys'](db[_0x161d3e('0xc')][_0x161d3e('0x4')]),_0x2ea60f[_0x161d3e('0x57')]=_[_0x161d3e('0x69')](_0x1a2821[_0x161d3e('0x57')]),_0x2ea60f[_0x161d3e('0x39')]=_[_0x161d3e('0x3f')](_0x2ea60f[_0x161d3e('0x35')],_0x2ea60f[_0x161d3e('0x57')]),_0x4c3afc['attributes']=_[_0x161d3e('0x3f')](_0x2ea60f[_0x161d3e('0x35')],qs[_0x161d3e('0x5c')](_0x1a2821[_0x161d3e('0x57')][_0x161d3e('0x5c')])),_0x4c3afc['attributes']=_0x4c3afc[_0x161d3e('0x49')][_0x161d3e('0x91')]?_0x4c3afc[_0x161d3e('0x49')]:_0x2ea60f[_0x161d3e('0x35')];typeof _0x1a2821[_0x161d3e('0x57')]['nolimit']===_0x161d3e('0x3')&&(_0x4c3afc[_0x161d3e('0x11')]=qs[_0x161d3e('0x11')](_0x1a2821[_0x161d3e('0x57')]['limit']),_0x4c3afc[_0x161d3e('0x62')]=qs[_0x161d3e('0x62')](_0x1a2821['query'][_0x161d3e('0x62')]));_0x4c3afc[_0x161d3e('0x10')]=qs[_0x161d3e('0x1c')](_0x1a2821[_0x161d3e('0x57')][_0x161d3e('0x1c')]),_0x4c3afc[_0x161d3e('0xa8')]=qs[_0x161d3e('0x39')](_[_0x161d3e('0x4d')](_0x1a2821[_0x161d3e('0x57')],_0x2ea60f[_0x161d3e('0x39')])),_0x4c3afc[_0x161d3e('0xa8')][_0x161d3e('0x15')]=_0x2974a6['id'];_0x1a2821[_0x161d3e('0x57')]['filter']&&(_0x4c3afc[_0x161d3e('0xa8')]=_['merge'](_0x4c3afc[_0x161d3e('0xa8')],{[Op['or']]:_['map'](_0x4c3afc[_0x161d3e('0x49')],function(_0x1cb132){const _0x276487=_0x161d3e,_0x399d3e={};return _0x399d3e[_0x1cb132]={[Op[_0x276487('0xaa')]]:'%'+_0x1a2821['query'][_0x276487('0x6a')]+'%'},_0x399d3e;})}));if(_0x1a2821[_0x161d3e('0x57')][_0x161d3e('0x7b')]){const _0x2cdf46=_0x1a2821[_0x161d3e('0x57')][_0x161d3e('0x7b')][_0x161d3e('0x6e')](','),_0x2a14c0={};_0x2a14c0[_0x2cdf46[0x0]]={[Op[_0x161d3e('0xf')]]:moment(_0x2cdf46[0x1])['format'](_0x161d3e('0x33'))},_0x4c3afc[_0x161d3e('0xa8')]=_[_0x161d3e('0x28')](_0x4c3afc[_0x161d3e('0xa8')],_0x2a14c0);}return _0x4c3afc=_[_0x161d3e('0x28')]({},_0x4c3afc,_0x1a2821[_0x161d3e('0x74')]),db['FaxMessage'][_0x161d3e('0x12')]({'where':_0x4c3afc[_0x161d3e('0xa8')]})[_0x161d3e('0x29')](function(_0x1c50de){const _0x44e306=_0x161d3e;return _0x448dd7['count']=_0x1c50de,_0x1a2821['query'][_0x44e306('0x6')]&&(_0x4c3afc[_0x44e306('0x87')]=[{'all':!![]}]),db[_0x44e306('0xc')][_0x44e306('0x45')](_0x4c3afc);})['then'](function(_0xa82ee8){const _0x555516=_0x161d3e;return _0x448dd7[_0x555516('0x4c')]=_0xa82ee8,_0x448dd7;});}})[_0xbb7600('0x29')](respondWithFilteredResult(_0x2be455,_0x4c3afc))[_0xbb7600('0x13')](handleError(_0x2be455,null));},exports[_0x1aac85('0xa9')]=function(_0x1748ea,_0x4ca4b7){const _0x5b785c=_0x1aac85;let _0x371e9e,_0x380d14;return _0x1748ea[_0x5b785c('0x4e')]['to']&&(_0x380d14=_0x1748ea['body']['to'][0x0]),db[_0x5b785c('0x71')][_0x5b785c('0x83')]({'where':{'id':_0x1748ea[_0x5b785c('0x17')]['id']},'include':[{'model':db[_0x5b785c('0x3d')],'as':_0x5b785c('0x48'),'include':[{'model':db[_0x5b785c('0x2d')],'as':_0x5b785c('0x58'),'where':{'fax':_0x380d14},'limit':0x1,'order':[[_0x5b785c('0x27'),_0x5b785c('0x0')]]}]}]})['then'](handleEntityNotFound(_0x4ca4b7,null))[_0x5b785c('0x29')](function(_0x4ad334){const _0x2ef8bb=_0x5b785c;_0x371e9e=_0x4ad334;if(_0x1748ea['body'][_0x2ef8bb('0x96')]&&_0x1748ea[_0x2ef8bb('0x4e')][_0x2ef8bb('0x96')][_0x2ef8bb('0x91')])for(let _0x118345=0x0;_0x118345<_0x1748ea['body'][_0x2ef8bb('0x96')][_0x2ef8bb('0x91')];_0x118345+=0x1){_0x1748ea[_0x2ef8bb('0x4e')][_0x2ef8bb('0x96')][_0x118345]={'filename':_0x1748ea[_0x2ef8bb('0x4e')]['attachments'][_0x118345][_0x2ef8bb('0x3b')],'id':_0x1748ea[_0x2ef8bb('0x4e')][_0x2ef8bb('0x96')][_0x118345]['id'],'path':path[_0x2ef8bb('0x7c')](config[_0x2ef8bb('0x42')],_0x2ef8bb('0x89'),_0x1748ea[_0x2ef8bb('0x4e')][_0x2ef8bb('0x96')][_0x118345][_0x2ef8bb('0x7e')])};}return respondWithRpcPromise(_0x2ef8bb('0x94'),_0x2ef8bb('0x94'),{'FaxAccountId':_['isNil'](_0x1748ea[_0x2ef8bb('0x17')]['id'])?undefined:_0x1748ea['params']['id'],'path':_[_0x2ef8bb('0x9e')](_0x1748ea[_0x2ef8bb('0x4e')][_0x2ef8bb('0x96')][0x0][_0x2ef8bb('0x73')])?undefined:_0x1748ea[_0x2ef8bb('0x4e')][_0x2ef8bb('0x96')][0x0]['path'],'fax':_[_0x2ef8bb('0x9e')](_0x1748ea['body']['to'][0x0])?undefined:_0x1748ea['body']['to'][0x0]},client9002);})[_0x5b785c('0x29')](function(){const _0x161446=_0x5b785c;if(_0x371e9e){_[_0x161446('0x9e')](_0x1748ea['body']['from'])&&(_0x1748ea[_0x161446('0x4e')][_0x161446('0x47')]=util[_0x161446('0x2')]('\x22%s\x22\x20<%s>',_0x371e9e['name'],_0x371e9e['fax']));if(_0x371e9e[_0x161446('0x48')])return _0x371e9e['List']['Contacts'][_0x161446('0x91')]?_0x371e9e[_0x161446('0x48')][_0x161446('0x58')][0x0]:db[_0x161446('0x2d')]['create'](_[_0x161446('0xad')](_0x1748ea['body'],{'firstName':_0x1748ea[_0x161446('0x4e')]['to'][0x0],'phone':_0x1748ea['body']['to'][0x0],'fax':_0x1748ea[_0x161446('0x4e')]['to'][0x0],'ListId':_0x371e9e[_0x161446('0x24')]}));else throw new Error(_0x161446('0x80'));}else throw new Error(_0x161446('0x86'));})[_0x5b785c('0x29')](function(_0x561317){const _0x543905=_0x5b785c;if(_0x561317)return db[_0x543905('0x16')][_0x543905('0x83')]({'where':{'ContactId':_0x561317['id'],'closed':![],'FaxAccountId':_0x371e9e['id']}})['then'](function(_0x5402f8){const _0xfa2143=_0x543905;if(_0x5402f8)return[_0x5402f8,![]];return db[_0xfa2143('0x16')]['create']({'UserId':_0x1748ea[_0xfa2143('0xe')]['id'],'ContactId':_0x561317['id'],'FaxAccountId':_0x371e9e['id'],'fax':_0x1748ea['body']['to'][0x0],'firstMsgDirection':_0xfa2143('0x6d'),'Messages':[_['merge'](_0x1748ea[_0xfa2143('0x4e')],{'read':![],'body':_0x1748ea[_0xfa2143('0x4e')]['attachments'][0x0]['filename'],'FaxAccountId':_0x371e9e['id'],'UserId':_0x1748ea[_0xfa2143('0xe')]['id'],'ContactId':_0x561317['id'],'AttachmentId':_0x1748ea[_0xfa2143('0x4e')]['attachments'][0x0]['id']})]},{'include':[{'model':db[_0xfa2143('0xc')],'as':'Messages'}]})[_0xfa2143('0x29')](function(_0x30e2d9){return[_0x30e2d9,!![]];});});else throw new Error(_0x543905('0x18'));})[_0x5b785c('0x29')](function([_0x41caab,_0x560884]){const _0x219bc2=_0x5b785c;if(_0x560884)return _0x41caab;return db[_0x219bc2('0xc')][_0x219bc2('0x5')]({'direction':_0x219bc2('0x6d'),'read':![],'body':_0x1748ea[_0x219bc2('0x4e')][_0x219bc2('0x96')][0x0][_0x219bc2('0x1a')],'FaxAccountId':_0x371e9e['id'],'FaxInteractionId':_0x41caab['id'],'UserId':_0x1748ea[_0x219bc2('0xe')]['id'],'ContactId':_0x41caab['ContactId'],'AttachmentId':_0x1748ea[_0x219bc2('0x4e')][_0x219bc2('0x96')][0x0]['id']})[_0x219bc2('0x29')](function(_0x3c200b){const _0x1a8743=_0x219bc2;return _0x41caab[_0x1a8743('0x65')][_0x1a8743('0x51')]=[],_0x41caab[_0x1a8743('0x65')][_0x1a8743('0x51')]['push'](_0x3c200b[_0x1a8743('0x65')]),_0x41caab;});})[_0x5b785c('0x29')](function(_0x501c72){const _0x428746=_0x5b785c;return respondWithRpcPromise('SendFax',_0x428746('0x82'),{'FaxAccountId':_[_0x428746('0x9e')](_0x1748ea[_0x428746('0x17')]['id'])?undefined:_0x1748ea[_0x428746('0x17')]['id'],'path':_[_0x428746('0x9e')](_0x1748ea['body'][_0x428746('0x96')][0x0][_0x428746('0x73')])?undefined:_0x1748ea['body'][_0x428746('0x96')][0x0][_0x428746('0x73')],'fax':_['isNil'](_0x1748ea[_0x428746('0x4e')]['to'][0x0])?undefined:_0x1748ea['body']['to'][0x0],'AttachmentId':_0x1748ea[_0x428746('0x4e')][_0x428746('0x96')][0x0]['id']},client9002)[_0x428746('0x29')](function(_0xa3712f){const _0x4bf954=_0x428746;logger['info'](_0x4bf954('0xa0'),_0xa3712f);})[_0x428746('0x13')](function(_0x2199ba){const _0x599276=_0x428746;logger[_0x599276('0x77')]('SendFaxRpc,\x20%s',_0x2199ba);}),_0x501c72;})[_0x5b785c('0x29')](respondWithResult(_0x4ca4b7,null))[_0x5b785c('0x13')](handleError(_0x4ca4b7,null));},exports[_0x1aac85('0x84')]=function(_0x555b91,_0x1222a4){const _0x48d33a=_0x1aac85;return db[_0x48d33a('0x71')]['findOne']({'where':{'id':_0x555b91['params']['id']}})[_0x48d33a('0x29')](function(_0x59f428){const _0x514cd6=_0x48d33a;if(_0x59f428)return _0x59f428[_0x514cd6('0x84')](_0x555b91['body']['ids'],{'through':_[_0x514cd6('0x5a')](_0x555b91[_0x514cd6('0x4e')],['ids','id'])})[_0x514cd6('0x29')](function(_0x1fb813){const _0x3c83ca=_0x514cd6;for(let _0x452a26=0x0;_0x452a26<_0x555b91[_0x3c83ca('0x4e')][_0x3c83ca('0xab')][_0x3c83ca('0x91')];_0x452a26+=0x1){socket[_0x3c83ca('0x3e')](_0x3c83ca('0x44'),{'UserId':_0x555b91[_0x3c83ca('0x4e')][_0x3c83ca('0xab')][_0x452a26],'FaxAccountId':_0x555b91[_0x3c83ca('0x17')]['id']});}return _0x1fb813;});})[_0x48d33a('0x29')](respondWithResult(_0x1222a4,null))[_0x48d33a('0x13')](handleError(_0x1222a4,null));},exports[_0x1aac85('0x72')]=function(_0x262533,_0x334e14){const _0xc4296f=_0x1aac85;return db[_0xc4296f('0x71')][_0xc4296f('0x83')]({'where':{'id':_0x262533[_0xc4296f('0x17')]['id']}})['then'](handleEntityNotFound(_0x334e14,null))[_0xc4296f('0x29')](function(_0x310eb2){const _0x52cf5d=_0xc4296f;if(_0x310eb2)return _0x310eb2[_0x52cf5d('0x72')](_0x262533[_0x52cf5d('0x57')]['ids'])[_0x52cf5d('0x29')](function(){const _0x2daed6=_0x52cf5d;if(_[_0x2daed6('0x34')](_0x262533['query'][_0x2daed6('0xab')]))for(let _0x1c5bdf=0x0;_0x1c5bdf<_0x262533[_0x2daed6('0x57')][_0x2daed6('0xab')][_0x2daed6('0x91')];_0x1c5bdf+=0x1){socket[_0x2daed6('0x3e')](_0x2daed6('0x8e'),{'UserId':Number(_0x262533[_0x2daed6('0x57')]['ids'][_0x1c5bdf]),'FaxAccountId':Number(_0x262533[_0x2daed6('0x17')]['id'])});}else socket['emit'](_0x2daed6('0x8e'),{'UserId':Number(_0x262533[_0x2daed6('0x57')][_0x2daed6('0xab')]),'FaxAccountId':Number(_0x262533['params']['id'])});});})['then'](respondWithStatusCode(_0x334e14,null))[_0xc4296f('0x13')](handleError(_0x334e14,null));},exports['getAgents']=function(_0x305fb0,_0x16e0b9){const _0x5daf3d=_0x1aac85;let _0x2724ff={};const _0x4fea48={};let _0x2e6bce,_0x404769;return db[_0x5daf3d('0x71')][_0x5daf3d('0x83')]({'where':{'id':_0x305fb0[_0x5daf3d('0x17')]['id']}})[_0x5daf3d('0x29')](handleEntityNotFound(_0x16e0b9,null))['then'](function(_0x3917ce){const _0x3a7ac3=_0x5daf3d;if(_0x3917ce)return _0x2e6bce=_0x3917ce,_0x4fea48['model']=_[_0x3a7ac3('0x69')](db[_0x3a7ac3('0x1d')]['rawAttributes']),_0x4fea48['query']=_[_0x3a7ac3('0x69')](_0x305fb0[_0x3a7ac3('0x57')]),_0x4fea48['filters']=_['intersection'](_0x4fea48[_0x3a7ac3('0x35')],_0x4fea48['query']),_0x2724ff[_0x3a7ac3('0x49')]=_[_0x3a7ac3('0x3f')](_0x4fea48['model'],qs[_0x3a7ac3('0x5c')](_0x305fb0['query'][_0x3a7ac3('0x5c')])),_0x2724ff['attributes']=_0x2724ff[_0x3a7ac3('0x49')]['length']?_0x2724ff[_0x3a7ac3('0x49')]:_0x4fea48['model'],_0x2724ff[_0x3a7ac3('0x10')]=qs[_0x3a7ac3('0x1c')](_0x305fb0['query']['sort']),_0x2724ff['where']=qs[_0x3a7ac3('0x39')](_[_0x3a7ac3('0x4d')](_0x305fb0[_0x3a7ac3('0x57')],_0x4fea48[_0x3a7ac3('0x39')])),_0x305fb0['query'][_0x3a7ac3('0x6a')]&&(_0x2724ff[_0x3a7ac3('0xa8')]=_[_0x3a7ac3('0x28')](_0x2724ff[_0x3a7ac3('0xa8')],{[Op['or']]:_[_0x3a7ac3('0x7')](_0x2724ff[_0x3a7ac3('0x49')],function(_0x166c4b){const _0x3dac72=_0x3a7ac3,_0x1f60c0={};return _0x1f60c0[_0x166c4b]={[Op['like']]:'%'+_0x305fb0[_0x3dac72('0x57')][_0x3dac72('0x6a')]+'%'},_0x1f60c0;})})),_0x2724ff=_[_0x3a7ac3('0x28')]({},_0x2724ff,_0x305fb0[_0x3a7ac3('0x74')]),_0x2e6bce[_0x3a7ac3('0x2b')](_0x2724ff);})['then'](function(_0x27a569){const _0x2aa99b=_0x5daf3d;if(_0x27a569)return _0x404769=_0x27a569[_0x2aa99b('0x91')],typeof _0x305fb0[_0x2aa99b('0x57')]['nolimit']===_0x2aa99b('0x3')&&(_0x2724ff[_0x2aa99b('0x11')]=qs[_0x2aa99b('0x11')](_0x305fb0[_0x2aa99b('0x57')]['limit']),_0x2724ff[_0x2aa99b('0x62')]=qs[_0x2aa99b('0x62')](_0x305fb0[_0x2aa99b('0x57')][_0x2aa99b('0x62')])),_0x2e6bce[_0x2aa99b('0x2b')](_0x2724ff);})['then'](function(_0x3c2e77){if(_0x3c2e77)return _0x3c2e77?{'count':_0x404769,'rows':_0x3c2e77}:null;})[_0x5daf3d('0x29')](respondWithResult(_0x16e0b9,null))[_0x5daf3d('0x13')](handleError(_0x16e0b9,null));}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.events.js b/server/api/faxAccount/faxAccount.events.js index b027335..9813f71 100644 --- a/server/api/faxAccount/faxAccount.events.js +++ b/server/api/faxAccount/faxAccount.events.js @@ -1 +1 @@ -const a187_0x16c4=['addHook','update','save','remove','../../mysqldb','exports','undefined','setMaxListeners','events','FaxAccount','emit'];(function(_0x477e6f,_0x16c423){const _0x2840df=function(_0x565bc2){while(--_0x565bc2){_0x477e6f['push'](_0x477e6f['shift']());}};_0x2840df(++_0x16c423);}(a187_0x16c4,0xa1));const a187_0x2840=function(_0x477e6f,_0x16c423){_0x477e6f=_0x477e6f-0x0;let _0x2840df=a187_0x16c4[_0x477e6f];return _0x2840df;};const _0x242bfe=a187_0x2840;'use strict';const EventEmitter=require(_0x242bfe('0x1')),FaxAccount=require(_0x242bfe('0x8'))['db'][_0x242bfe('0x2')],FaxAccountEvents=new EventEmitter();FaxAccountEvents[_0x242bfe('0x0')](0x0);const events={'afterCreate':_0x242bfe('0x6'),'afterUpdate':_0x242bfe('0x5'),'afterDestroy':_0x242bfe('0x7')};function emitEvent(_0x565bc2){return function(_0x1f3f7a){const _0x3134a1=a187_0x2840;FaxAccountEvents['emit'](_0x565bc2+':'+_0x1f3f7a['id'],_0x1f3f7a),FaxAccountEvents[_0x3134a1('0x3')](_0x565bc2,_0x1f3f7a);};}for(const e in events){if(typeof events[e]!==_0x242bfe('0xa')){const event=events[e];FaxAccount[_0x242bfe('0x4')](e,emitEvent(event));}}module[_0x242bfe('0x9')]=FaxAccountEvents; \ No newline at end of file +const a187_0x4b8f=['events','undefined','FaxAccount','emit','exports','../../mysqldb','update','save'];(function(_0x2a6cef,_0x4b8f8a){const _0x3ea522=function(_0xd8cf69){while(--_0xd8cf69){_0x2a6cef['push'](_0x2a6cef['shift']());}};_0x3ea522(++_0x4b8f8a);}(a187_0x4b8f,0xef));const a187_0x3ea5=function(_0x2a6cef,_0x4b8f8a){_0x2a6cef=_0x2a6cef-0x0;let _0x3ea522=a187_0x4b8f[_0x2a6cef];return _0x3ea522;};const _0x4b976a=a187_0x3ea5;'use strict';const EventEmitter=require(_0x4b976a('0x1')),FaxAccount=require(_0x4b976a('0x6'))['db'][_0x4b976a('0x3')],FaxAccountEvents=new EventEmitter();FaxAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x4b976a('0x0'),'afterUpdate':_0x4b976a('0x7'),'afterDestroy':'remove'};function emitEvent(_0xd8cf69){return function(_0xc7fb6d){const _0x3fe499=a187_0x3ea5;FaxAccountEvents[_0x3fe499('0x4')](_0xd8cf69+':'+_0xc7fb6d['id'],_0xc7fb6d),FaxAccountEvents[_0x3fe499('0x4')](_0xd8cf69,_0xc7fb6d);};}for(const e in events){if(typeof events[e]!==_0x4b976a('0x2')){const event=events[e];FaxAccount['addHook'](e,emitEvent(event));}}module[_0x4b976a('0x5')]=FaxAccountEvents; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.model.js b/server/api/faxAccount/faxAccount.model.js index 424ad39..6e3837a 100644 --- a/server/api/faxAccount/faxAccount.model.js +++ b/server/api/faxAccount/faxAccount.model.js @@ -1 +1 @@ -const a188_0xbbb1=['./faxAccount.attributes','FaxAccount','fax_accounts'];(function(_0x202710,_0xbbb1){const _0x2c300a=function(_0x48731b){while(--_0x48731b){_0x202710['push'](_0x202710['shift']());}};_0x2c300a(++_0xbbb1);}(a188_0xbbb1,0x1d9));const a188_0x2c30=function(_0x202710,_0xbbb1){_0x202710=_0x202710-0x0;let _0x2c300a=a188_0xbbb1[_0x202710];return _0x2c300a;};const _0x5a2f8b=a188_0x2c30;'use strict';const attributes=require(_0x5a2f8b('0x1'));module['exports']=function(_0x48731b){const _0x2d887f=_0x5a2f8b,_0x4d4fe8=_0x48731b['define'](_0x2d887f('0x2'),attributes,{'tableName':_0x2d887f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4d4fe8;}; \ No newline at end of file +const a188_0x409d=['./faxAccount.attributes','fax_accounts'];(function(_0x496753,_0x409d09){const _0x53539f=function(_0x2f1a76){while(--_0x2f1a76){_0x496753['push'](_0x496753['shift']());}};_0x53539f(++_0x409d09);}(a188_0x409d,0x12f));const a188_0x5353=function(_0x496753,_0x409d09){_0x496753=_0x496753-0x0;let _0x53539f=a188_0x409d[_0x496753];return _0x53539f;};const _0xb8201a=a188_0x5353;'use strict';const attributes=require(_0xb8201a('0x1'));module['exports']=function(_0x2f1a76){const _0x2f279f=_0xb8201a,_0x303006=_0x2f1a76['define']('FaxAccount',attributes,{'tableName':_0x2f279f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x303006;}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.rpc.js b/server/api/faxAccount/faxAccount.rpc.js index 4f7fb7f..4f5f19f 100644 --- a/server/api/faxAccount/faxAccount.rpc.js +++ b/server/api/faxAccount/faxAccount.rpc.js @@ -1 +1 @@ -const a189_0x47cd=['Contact\x20not\x20found','options','Applications','unshift','FaxAccount','defaults','where','unmanaged','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','findOne','contact','length','stringify','limit','rpc','create','startRouting','ContactId','from\x20is\x20mandatory','close','applications','error','difference','DESC','List','createdAt','then','FaxApplication','created','keys','isNil','client','./faxAccount.socket','debug','jayson/promise','../../rediscache','FaxInteraction','catch','FaxAccount,\x20%s,\x20%s','UserId','result','findAll','body','CompanyId','from','map','AttachmentId','message','Start','lodash','../../mysqldb','model','interaction','CmContact','account','get','include','request\x20sent','raw','updatedAt','agent','info','push','FaxMessage','ListId','waitForTheAssignedAgent','Contacts','name','*,*,*,*','register','attributes','fax','mapKey','GetFaxAccount','no\x20available\x20attributes'];(function(_0x1f0fd8,_0x47cd87){const _0x3edc27=function(_0x2e8357){while(--_0x2e8357){_0x1f0fd8['push'](_0x1f0fd8['shift']());}};_0x3edc27(++_0x47cd87);}(a189_0x47cd,0xc1));const a189_0x3edc=function(_0x1f0fd8,_0x47cd87){_0x1f0fd8=_0x1f0fd8-0x0;let _0x3edc27=a189_0x47cd[_0x1f0fd8];return _0x3edc27;};const _0x1593ac=a189_0x3edc;'use strict';const _=require(_0x1593ac('0x6')),db=require(_0x1593ac('0x7'))['db'],{ValidationError}=require('sequelize'),logger=require('../../config/logger')(_0x1593ac('0x2e')),{getSocket}=require(_0x1593ac('0x43')),socket=getSocket(),jayson=require(_0x1593ac('0x42')),client=jayson[_0x1593ac('0x3f')]['http']({'port':0x232c});require(_0x1593ac('0x40'))[_0x1593ac('0x1a')](socket);function respondWithRpcPromise(_0x2e8357,_0x5414e5,_0x5c108a){return new Promise(function(_0x346f23,_0x3dc8e5){const _0x5857b5=a189_0x3edc;return client['request'](_0x2e8357,_0x5c108a)['then'](function(_0x2d8273){const _0x290808=a189_0x3edc;logger['info'](_0x290808('0x46'),_0x5414e5,_0x290808('0xe')),logger[_0x290808('0x41')]('FaxAccount,\x20%s,\x20%s,\x20%s',_0x5414e5,_0x290808('0xe'),JSON[_0x290808('0x2c')](_0x2d8273));if(_0x2d8273[_0x290808('0x35')]){if(_0x2d8273[_0x290808('0x35')]['code']===0x1f4)return logger['error']('FaxAccount,\x20%s,\x20%s',_0x5414e5,_0x2d8273[_0x290808('0x35')][_0x290808('0x4')]),_0x3dc8e5(_0x2d8273[_0x290808('0x35')][_0x290808('0x4')]);return logger['error'](_0x290808('0x46'),_0x5414e5,_0x2d8273['error']['message']),_0x346f23(_0x2d8273[_0x290808('0x35')][_0x290808('0x4')]);}else logger['info'](_0x290808('0x46'),_0x5414e5,_0x290808('0xe')),_0x346f23(_0x2d8273[_0x290808('0x48')][_0x290808('0x4')]);})[_0x5857b5('0x45')](function(_0x174fa0){const _0x29c560=_0x5857b5;logger[_0x29c560('0x35')](_0x29c560('0x46'),_0x5414e5,_0x174fa0),_0x3dc8e5(_0x174fa0);});});}exports[_0x1593ac('0x1e')]=function(_0x2630f7){const _0x44d422=this;return new Promise(function(_0x56b842,_0x49f8f9){const _0x434bb2=a189_0x3edc;return db['FaxAccount'][_0x434bb2('0x49')]({'raw':_0x2630f7[_0x434bb2('0x21')]?_0x2630f7[_0x434bb2('0x21')][_0x434bb2('0xf')]===undefined?!![]:![]:!![],'where':_0x2630f7[_0x434bb2('0x21')]?_0x2630f7[_0x434bb2('0x21')][_0x434bb2('0x26')]||null:null,'attributes':_0x2630f7[_0x434bb2('0x21')]?_0x2630f7[_0x434bb2('0x21')][_0x434bb2('0x1b')]||null:null,'limit':_0x2630f7[_0x434bb2('0x21')]?_0x2630f7[_0x434bb2('0x21')][_0x434bb2('0x2d')]||null:null,'include':_0x2630f7[_0x434bb2('0x21')]?_0x2630f7[_0x434bb2('0x21')][_0x434bb2('0xd')]?_[_0x434bb2('0x2')](_0x2630f7[_0x434bb2('0x21')][_0x434bb2('0xd')],function(_0x363dcb){const _0x305044=_0x434bb2;return{'model':db[_0x363dcb['model']],'as':_0x363dcb['as'],'attributes':_0x363dcb[_0x305044('0x1b')],'include':_0x363dcb[_0x305044('0xd')]?_[_0x305044('0x2')](_0x363dcb[_0x305044('0xd')],function(_0x3c33d0){const _0x25a665=_0x305044;return{'model':db[_0x3c33d0[_0x25a665('0x8')]],'as':_0x3c33d0['as'],'attributes':_0x3c33d0[_0x25a665('0x1b')],'include':_0x3c33d0['include']?_[_0x25a665('0x2')](_0x3c33d0[_0x25a665('0xd')],function(_0x52b4a0){const _0x407756=_0x25a665;return{'model':db[_0x52b4a0['model']],'as':_0x52b4a0['as'],'attributes':_0x52b4a0[_0x407756('0x1b')]};}):[]};}):[]};}):[]:[]})[_0x434bb2('0x3a')](function(_0x3670a8){const _0x21ccc1=_0x434bb2;logger[_0x21ccc1('0x12')](_0x21ccc1('0x1e'),_0x2630f7),logger['debug'](_0x21ccc1('0x1e'),_0x2630f7,JSON[_0x21ccc1('0x2c')](_0x3670a8)),_0x56b842(_0x3670a8);})[_0x434bb2('0x45')](function(_0x50ba10){const _0x3b043c=_0x434bb2;logger[_0x3b043c('0x35')](_0x3b043c('0x1e'),_0x50ba10[_0x3b043c('0x4')],_0x2630f7),_0x49f8f9(_0x44d422[_0x3b043c('0x35')](0x1f4,_0x50ba10[_0x3b043c('0x4')]));});});},exports['NotifyFaxAccount']=function(_0x265348){const _0x274a40=this;return new Promise(function(_0x1900df,_0xea50d6){const _0x362a35=a189_0x3edc,_0x51b6cf={'body':_0x265348[_0x362a35('0x4a')],'channel':_0x362a35('0x1c')};let _0xc4f927=[],_0x4b1386=[];const _0x4ccf2f={};return db[_0x362a35('0xa')]['describe']()[_0x362a35('0x3a')](function(_0x1a21e2){const _0x777f0c=_0x362a35;if(!_0x1a21e2)throw new ValidationError(_0x777f0c('0x1f'));_0xc4f927=_[_0x777f0c('0x36')](_[_0x777f0c('0x3d')](_0x1a21e2),['createdAt',_0x777f0c('0x10')]),_0x4b1386=_[_0x777f0c('0x36')](_['keys'](_0x1a21e2),[_0x777f0c('0x39'),_0x777f0c('0x10'),_0x777f0c('0x0'),_0x777f0c('0x15')]);_0x265348[_0x777f0c('0x4a')]['id']&&delete _0x265348[_0x777f0c('0x4a')]['id'];if(_[_0x777f0c('0x3e')](_0x265348[_0x777f0c('0x4a')][_0x777f0c('0x1')]))throw new ValidationError(_0x777f0c('0x32'));if(_['isNil'](_0x265348['body'][_0x777f0c('0x4a')])||_0x265348[_0x777f0c('0x4a')][_0x777f0c('0x4a')]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x777f0c('0x3e')](_0x265348['body'][_0x777f0c('0x1d')]))throw new ValidationError(_0x777f0c('0x28')+_0x4b1386);if(!_['includes'](_0x4b1386,_0x265348[_0x777f0c('0x4a')][_0x777f0c('0x1d')]))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x4b1386);_0x4ccf2f[_0x265348[_0x777f0c('0x4a')]['mapKey']]=_0x265348[_0x777f0c('0x4a')]['from'];})[_0x362a35('0x3a')](function(){const _0x288570=_0x362a35;return db[_0x288570('0x24')]['findOne']({'where':{'id':_0x265348[_0x288570('0xb')]['id']},'include':[{'model':db['CmList'],'as':_0x288570('0x38'),'include':[{'model':db['CmContact'],'as':'Contacts','where':_0x4ccf2f,'limit':0x1,'order':[[_0x288570('0x10'),_0x288570('0x37')]]}]},{'model':db[_0x288570('0x3b')],'as':_0x288570('0x22')}]});})['then'](function(_0x1caee2){const _0x22b144=_0x362a35;if(_0x1caee2&&_0x1caee2[_0x22b144('0x38')]){const _0x2cd0a3=_0x1caee2[_0x22b144('0xc')]({'plain':!![]});_0x51b6cf[_0x22b144('0xb')]=_0x2cd0a3,_0x51b6cf[_0x22b144('0x34')]=_0x2cd0a3[_0x22b144('0x22')],_0x51b6cf['list']=_0x2cd0a3[_0x22b144('0x38')],_0x51b6cf[_0x22b144('0x34')]=_['orderBy'](_0x51b6cf[_0x22b144('0x34')],['priority'],['asc']);_0x51b6cf[_0x22b144('0xb')][_0x22b144('0x22')]&&delete _0x51b6cf[_0x22b144('0xb')][_0x22b144('0x22')];if(_0x51b6cf[_0x22b144('0xb')]['List']&&_0x51b6cf[_0x22b144('0xb')][_0x22b144('0x38')][_0x22b144('0x17')]['length'])return _0x51b6cf[_0x22b144('0xb')][_0x22b144('0x38')][_0x22b144('0x17')][0x0];const _0x4f6e1d=_[_0x22b144('0x25')](_0x265348[_0x22b144('0x4a')],{'firstName':_0x265348[_0x22b144('0x4a')]['from'],'ListId':_0x2cd0a3[_0x22b144('0x15')]});return _0x4f6e1d[_0x265348[_0x22b144('0x4a')][_0x22b144('0x1d')]]=_0x265348[_0x22b144('0x4a')][_0x22b144('0x1')],db[_0x22b144('0xa')][_0x22b144('0x2f')](_0x4f6e1d,{'fields':_0xc4f927,'raw':!![]});}})['then'](function(_0x1b688b){const _0x5d90fc=_0x362a35;_0x51b6cf[_0x5d90fc('0x2a')]=_0x1b688b;if(_0x1b688b){const _0x25b9ef={'ContactId':_0x1b688b['id'],'FaxAccountId':_0x265348[_0x5d90fc('0xb')]['id'],'fax':_0x1b688b[_0x5d90fc('0x1c')]};return db['FaxInteraction'][_0x5d90fc('0x29')]({'where':{'ContactId':_0x1b688b['id'],'closed':![],'FaxAccountId':_0x265348[_0x5d90fc('0xb')]['id']}})[_0x5d90fc('0x3a')](function(_0x2852ba){const _0x4aa9fc=_0x5d90fc;if(_0x2852ba)return[_0x2852ba,![]];return db[_0x4aa9fc('0x44')][_0x4aa9fc('0x2f')](_0x25b9ef)['then'](function(_0x27d4e2){return[_0x27d4e2,!![]];});});}else throw new Error(_0x5d90fc('0x20'));})[_0x362a35('0x3a')](function([_0x260850,_0x30edcc]){const _0x4216c3=_0x362a35,_0x13f123=_0x260850[_0x4216c3('0xc')]({'plain':!![]});return _0x30edcc?(_0x51b6cf[_0x4216c3('0xb')]['autoclose']&&_0x51b6cf[_0x4216c3('0x34')][_0x4216c3('0x13')]({'id':0x0,'priority':_0x51b6cf[_0x4216c3('0x34')][_0x4216c3('0x2b')]+0x1,'app':_0x4216c3('0x33'),'appdata':_0x4216c3('0x27'),'interval':_0x4216c3('0x19')}),_0x13f123['created']=!![]):_0x13f123[_0x4216c3('0x3c')]=![],_0x51b6cf[_0x4216c3('0x9')]=_0x13f123,db[_0x4216c3('0x14')][_0x4216c3('0x2f')]({'body':_0x265348[_0x4216c3('0x4a')][_0x4216c3('0x4a')],'FaxAccountId':_0x265348[_0x4216c3('0xb')]['id'],'FaxInteractionId':_0x260850['id'],'direction':'in','ContactId':_0x260850[_0x4216c3('0x31')],'AttachmentId':_0x265348[_0x4216c3('0x4a')][_0x4216c3('0x3')]});})['then'](function(_0x547eb4){const _0x1116fa=_0x362a35;_0x51b6cf['message']=_0x547eb4;if(_0x51b6cf['interaction'][_0x1116fa('0x47')])return db['User'][_0x1116fa('0x29')]({'attributes':['id',_0x1116fa('0x18')],'where':{'id':_0x51b6cf['interaction'][_0x1116fa('0x47')]}})[_0x1116fa('0x3a')](function(_0x1164a0){const _0x1cd71b=_0x1116fa;return _0x1164a0&&_0x51b6cf[_0x1cd71b('0x34')][_0x1cd71b('0x23')]({'id':0x0,'priority':0x0,'app':_0x1cd71b('0x11'),'appdata':_0x1164a0[_0x1cd71b('0x18')]+','+(_0x51b6cf[_0x1cd71b('0xb')][_0x1cd71b('0x16')]||0xa),'interval':_0x1cd71b('0x19')}),respondWithRpcPromise(_0x1cd71b('0x5'),_0x1cd71b('0x30'),_0x51b6cf);});return respondWithRpcPromise(_0x1116fa('0x5'),_0x1116fa('0x30'),_0x51b6cf);})[_0x362a35('0x3a')](function(_0xeb89fc){_0x1900df(_0xeb89fc);})[_0x362a35('0x45')](function(_0x4e0390){const _0x1e2593=_0x362a35;_0xea50d6(_0x274a40[_0x1e2593('0x35')](0x1f4,_0x4e0390[_0x1e2593('0x4')]));});});}; \ No newline at end of file +const a189_0x463d=['model','difference','from\x20is\x20mandatory','./faxAccount.socket','describe','code','register','Contact\x20not\x20found','error','FaxApplication','FaxInteraction','updatedAt','lodash','findOne','List','DESC','NotifyFaxAccount','catch','result','startRouting','contact','agent','include','created','jayson/promise','length','options','ListId','request','ContactId','limit','FaxAccount,\x20%s,\x20%s,\x20%s','findAll','attributes','waitForTheAssignedAgent','../../config/logger','body','map','list','mapKey','http','account','stringify','info','FaxMessage','then','CmContact','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','../../mysqldb','AttachmentId','Start','message','create','raw','GetFaxAccount','unmanaged','no\x20available\x20attributes','CompanyId','asc','sequelize','FaxAccount,\x20%s,\x20%s','request\x20sent','fax','FaxAccount','keys','isNil','../../rediscache','body\x20is\x20mandatory\x20and\x20not\x20empty','debug','client','Applications','UserId','defaults','from','createdAt','name','interaction','applications','where','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','includes'];(function(_0x3bc6eb,_0x463da6){const _0x5c7cd7=function(_0xaec5ec){while(--_0xaec5ec){_0x3bc6eb['push'](_0x3bc6eb['shift']());}};_0x5c7cd7(++_0x463da6);}(a189_0x463d,0x188));const a189_0x5c7c=function(_0x3bc6eb,_0x463da6){_0x3bc6eb=_0x3bc6eb-0x0;let _0x5c7cd7=a189_0x463d[_0x3bc6eb];return _0x5c7cd7;};const _0x1f0147=a189_0x5c7c;'use strict';const _=require(_0x1f0147('0x19')),db=require(_0x1f0147('0x3d'))['db'],{ValidationError}=require(_0x1f0147('0x48')),logger=require(_0x1f0147('0x30'))('rpc'),{getSocket}=require(_0x1f0147('0x4f')),socket=getSocket(),jayson=require(_0x1f0147('0x25')),client=jayson[_0x1f0147('0x1')][_0x1f0147('0x35')]({'port':0x232c});require(_0x1f0147('0x10'))[_0x1f0147('0x13')](socket);function respondWithRpcPromise(_0xaec5ec,_0x1bde4f,_0x98517b){return new Promise(function(_0x1f351c,_0x45ea5b){const _0x4f7a95=a189_0x5c7c;return client[_0x4f7a95('0x29')](_0xaec5ec,_0x98517b)[_0x4f7a95('0x3a')](function(_0x1ea9d9){const _0x3186b4=_0x4f7a95;logger[_0x3186b4('0x38')]('FaxAccount,\x20%s,\x20%s',_0x1bde4f,_0x3186b4('0x4a')),logger[_0x3186b4('0x0')](_0x3186b4('0x2c'),_0x1bde4f,_0x3186b4('0x4a'),JSON[_0x3186b4('0x37')](_0x1ea9d9));if(_0x1ea9d9[_0x3186b4('0x15')]){if(_0x1ea9d9[_0x3186b4('0x15')][_0x3186b4('0x12')]===0x1f4)return logger['error'](_0x3186b4('0x49'),_0x1bde4f,_0x1ea9d9[_0x3186b4('0x15')][_0x3186b4('0x40')]),_0x45ea5b(_0x1ea9d9['error'][_0x3186b4('0x40')]);return logger[_0x3186b4('0x15')](_0x3186b4('0x49'),_0x1bde4f,_0x1ea9d9[_0x3186b4('0x15')][_0x3186b4('0x40')]),_0x1f351c(_0x1ea9d9[_0x3186b4('0x15')][_0x3186b4('0x40')]);}else logger[_0x3186b4('0x38')](_0x3186b4('0x49'),_0x1bde4f,_0x3186b4('0x4a')),_0x1f351c(_0x1ea9d9[_0x3186b4('0x1f')][_0x3186b4('0x40')]);})[_0x4f7a95('0x1e')](function(_0x3114c3){const _0xb04e90=_0x4f7a95;logger[_0xb04e90('0x15')](_0xb04e90('0x49'),_0x1bde4f,_0x3114c3),_0x45ea5b(_0x3114c3);});});}exports[_0x1f0147('0x43')]=function(_0x22b787){const _0x5b9c1f=this;return new Promise(function(_0x502a27,_0x17345b){const _0x39cb94=a189_0x5c7c;return db[_0x39cb94('0x4c')][_0x39cb94('0x2d')]({'raw':_0x22b787[_0x39cb94('0x27')]?_0x22b787[_0x39cb94('0x27')][_0x39cb94('0x42')]===undefined?!![]:![]:!![],'where':_0x22b787[_0x39cb94('0x27')]?_0x22b787[_0x39cb94('0x27')][_0x39cb94('0xa')]||null:null,'attributes':_0x22b787[_0x39cb94('0x27')]?_0x22b787[_0x39cb94('0x27')][_0x39cb94('0x2e')]||null:null,'limit':_0x22b787[_0x39cb94('0x27')]?_0x22b787[_0x39cb94('0x27')][_0x39cb94('0x2b')]||null:null,'include':_0x22b787['options']?_0x22b787[_0x39cb94('0x27')][_0x39cb94('0x23')]?_[_0x39cb94('0x32')](_0x22b787[_0x39cb94('0x27')][_0x39cb94('0x23')],function(_0x4d70d2){const _0x18da21=_0x39cb94;return{'model':db[_0x4d70d2[_0x18da21('0xd')]],'as':_0x4d70d2['as'],'attributes':_0x4d70d2[_0x18da21('0x2e')],'include':_0x4d70d2[_0x18da21('0x23')]?_[_0x18da21('0x32')](_0x4d70d2[_0x18da21('0x23')],function(_0x5cd3f1){const _0x2d22cc=_0x18da21;return{'model':db[_0x5cd3f1[_0x2d22cc('0xd')]],'as':_0x5cd3f1['as'],'attributes':_0x5cd3f1[_0x2d22cc('0x2e')],'include':_0x5cd3f1['include']?_['map'](_0x5cd3f1[_0x2d22cc('0x23')],function(_0xb9c080){const _0x50a793=_0x2d22cc;return{'model':db[_0xb9c080[_0x50a793('0xd')]],'as':_0xb9c080['as'],'attributes':_0xb9c080[_0x50a793('0x2e')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xc3e990){const _0x555c44=_0x39cb94;logger[_0x555c44('0x38')](_0x555c44('0x43'),_0x22b787),logger[_0x555c44('0x0')](_0x555c44('0x43'),_0x22b787,JSON[_0x555c44('0x37')](_0xc3e990)),_0x502a27(_0xc3e990);})[_0x39cb94('0x1e')](function(_0x357813){const _0x347e0c=_0x39cb94;logger['error'](_0x347e0c('0x43'),_0x357813[_0x347e0c('0x40')],_0x22b787),_0x17345b(_0x5b9c1f[_0x347e0c('0x15')](0x1f4,_0x357813[_0x347e0c('0x40')]));});});},exports[_0x1f0147('0x1d')]=function(_0x5a6b34){const _0x4f8cfd=this;return new Promise(function(_0x4d02f6,_0x574191){const _0x919db=a189_0x5c7c,_0x596f2f={'body':_0x5a6b34['body'],'channel':'fax'};let _0x20fa7e=[],_0x4c42f9=[];const _0x216978={};return db[_0x919db('0x3b')][_0x919db('0x11')]()['then'](function(_0x5961fa){const _0x1afc12=_0x919db;if(!_0x5961fa)throw new ValidationError(_0x1afc12('0x45'));_0x20fa7e=_['difference'](_['keys'](_0x5961fa),[_0x1afc12('0x6'),_0x1afc12('0x18')]),_0x4c42f9=_[_0x1afc12('0xe')](_[_0x1afc12('0x4d')](_0x5961fa),[_0x1afc12('0x6'),_0x1afc12('0x18'),_0x1afc12('0x46'),_0x1afc12('0x28')]);_0x5a6b34[_0x1afc12('0x31')]['id']&&delete _0x5a6b34[_0x1afc12('0x31')]['id'];if(_[_0x1afc12('0x4e')](_0x5a6b34[_0x1afc12('0x31')]['from']))throw new ValidationError(_0x1afc12('0xf'));if(_[_0x1afc12('0x4e')](_0x5a6b34[_0x1afc12('0x31')][_0x1afc12('0x31')])||_0x5a6b34[_0x1afc12('0x31')][_0x1afc12('0x31')]==='')throw new ValidationError(_0x1afc12('0x50'));if(_['isNil'](_0x5a6b34['body'][_0x1afc12('0x34')]))throw new ValidationError(_0x1afc12('0xb')+_0x4c42f9);if(!_[_0x1afc12('0xc')](_0x4c42f9,_0x5a6b34[_0x1afc12('0x31')][_0x1afc12('0x34')]))throw new ValidationError(_0x1afc12('0x3c')+_0x4c42f9);_0x216978[_0x5a6b34['body'][_0x1afc12('0x34')]]=_0x5a6b34['body'][_0x1afc12('0x5')];})[_0x919db('0x3a')](function(){const _0x5023e5=_0x919db;return db['FaxAccount'][_0x5023e5('0x1a')]({'where':{'id':_0x5a6b34['account']['id']},'include':[{'model':db['CmList'],'as':_0x5023e5('0x1b'),'include':[{'model':db[_0x5023e5('0x3b')],'as':'Contacts','where':_0x216978,'limit':0x1,'order':[['updatedAt',_0x5023e5('0x1c')]]}]},{'model':db[_0x5023e5('0x16')],'as':'Applications'}]});})[_0x919db('0x3a')](function(_0x3fe13){const _0x145f29=_0x919db;if(_0x3fe13&&_0x3fe13[_0x145f29('0x1b')]){const _0x48a0a6=_0x3fe13['get']({'plain':!![]});_0x596f2f['account']=_0x48a0a6,_0x596f2f['applications']=_0x48a0a6[_0x145f29('0x2')],_0x596f2f[_0x145f29('0x33')]=_0x48a0a6[_0x145f29('0x1b')],_0x596f2f[_0x145f29('0x9')]=_['orderBy'](_0x596f2f[_0x145f29('0x9')],['priority'],[_0x145f29('0x47')]);_0x596f2f[_0x145f29('0x36')][_0x145f29('0x2')]&&delete _0x596f2f[_0x145f29('0x36')][_0x145f29('0x2')];if(_0x596f2f['account'][_0x145f29('0x1b')]&&_0x596f2f[_0x145f29('0x36')][_0x145f29('0x1b')]['Contacts'][_0x145f29('0x26')])return _0x596f2f[_0x145f29('0x36')]['List']['Contacts'][0x0];const _0x4f210e=_[_0x145f29('0x4')](_0x5a6b34[_0x145f29('0x31')],{'firstName':_0x5a6b34[_0x145f29('0x31')]['from'],'ListId':_0x48a0a6[_0x145f29('0x28')]});return _0x4f210e[_0x5a6b34[_0x145f29('0x31')][_0x145f29('0x34')]]=_0x5a6b34['body'][_0x145f29('0x5')],db['CmContact']['create'](_0x4f210e,{'fields':_0x20fa7e,'raw':!![]});}})[_0x919db('0x3a')](function(_0x43c297){const _0x5ed4a3=_0x919db;_0x596f2f[_0x5ed4a3('0x21')]=_0x43c297;if(_0x43c297){const _0x3f3e07={'ContactId':_0x43c297['id'],'FaxAccountId':_0x5a6b34[_0x5ed4a3('0x36')]['id'],'fax':_0x43c297[_0x5ed4a3('0x4b')]};return db[_0x5ed4a3('0x17')][_0x5ed4a3('0x1a')]({'where':{'ContactId':_0x43c297['id'],'closed':![],'FaxAccountId':_0x5a6b34[_0x5ed4a3('0x36')]['id']}})[_0x5ed4a3('0x3a')](function(_0x27a783){const _0x389175=_0x5ed4a3;if(_0x27a783)return[_0x27a783,![]];return db['FaxInteraction']['create'](_0x3f3e07)[_0x389175('0x3a')](function(_0x11608c){return[_0x11608c,!![]];});});}else throw new Error(_0x5ed4a3('0x14'));})[_0x919db('0x3a')](function([_0x199852,_0x241a2b]){const _0x4b8e61=_0x919db,_0x32a650=_0x199852['get']({'plain':!![]});return _0x241a2b?(_0x596f2f[_0x4b8e61('0x36')]['autoclose']&&_0x596f2f[_0x4b8e61('0x9')]['push']({'id':0x0,'priority':_0x596f2f[_0x4b8e61('0x9')][_0x4b8e61('0x26')]+0x1,'app':'close','appdata':_0x4b8e61('0x44'),'interval':'*,*,*,*'}),_0x32a650[_0x4b8e61('0x24')]=!![]):_0x32a650[_0x4b8e61('0x24')]=![],_0x596f2f[_0x4b8e61('0x8')]=_0x32a650,db[_0x4b8e61('0x39')][_0x4b8e61('0x41')]({'body':_0x5a6b34[_0x4b8e61('0x31')]['body'],'FaxAccountId':_0x5a6b34['account']['id'],'FaxInteractionId':_0x199852['id'],'direction':'in','ContactId':_0x199852[_0x4b8e61('0x2a')],'AttachmentId':_0x5a6b34[_0x4b8e61('0x31')][_0x4b8e61('0x3e')]});})[_0x919db('0x3a')](function(_0x89dfc3){const _0xc2c2a0=_0x919db;_0x596f2f[_0xc2c2a0('0x40')]=_0x89dfc3;if(_0x596f2f[_0xc2c2a0('0x8')][_0xc2c2a0('0x3')])return db['User'][_0xc2c2a0('0x1a')]({'attributes':['id',_0xc2c2a0('0x7')],'where':{'id':_0x596f2f['interaction']['UserId']}})[_0xc2c2a0('0x3a')](function(_0x135c29){const _0x49dcad=_0xc2c2a0;return _0x135c29&&_0x596f2f[_0x49dcad('0x9')]['unshift']({'id':0x0,'priority':0x0,'app':_0x49dcad('0x22'),'appdata':_0x135c29[_0x49dcad('0x7')]+','+(_0x596f2f[_0x49dcad('0x36')][_0x49dcad('0x2f')]||0xa),'interval':'*,*,*,*'}),respondWithRpcPromise('Start',_0x49dcad('0x20'),_0x596f2f);});return respondWithRpcPromise(_0xc2c2a0('0x3f'),'startRouting',_0x596f2f);})[_0x919db('0x3a')](function(_0x18639b){_0x4d02f6(_0x18639b);})[_0x919db('0x1e')](function(_0x13d8cb){const _0x55c47e=_0x919db;_0x574191(_0x4f8cfd[_0x55c47e('0x15')](0x1f4,_0x13d8cb[_0x55c47e('0x40')]));});});}; \ No newline at end of file diff --git a/server/api/faxAccount/faxAccount.socket.js b/server/api/faxAccount/faxAccount.socket.js index 5a11a59..702c4a7 100644 --- a/server/api/faxAccount/faxAccount.socket.js +++ b/server/api/faxAccount/faxAccount.socket.js @@ -1 +1 @@ -const a190_0x3358=['register','remove','./faxAccount.events','length'];(function(_0x1b16d6,_0x3358b4){const _0x38e7da=function(_0xeaac0f){while(--_0xeaac0f){_0x1b16d6['push'](_0x1b16d6['shift']());}};_0x38e7da(++_0x3358b4);}(a190_0x3358,0xf2));const a190_0x38e7=function(_0x1b16d6,_0x3358b4){_0x1b16d6=_0x1b16d6-0x0;let _0x38e7da=a190_0x3358[_0x1b16d6];return _0x38e7da;};const _0x16c5bb=a190_0x38e7;'use strict';const FaxAccountEvents=require(_0x16c5bb('0x0')),events=['save',_0x16c5bb('0x3'),'update'];function createListener(_0xeaac0f,_0x165410){return function(_0x2c5092){_0x165410['emit'](_0xeaac0f,_0x2c5092);};}exports[_0x16c5bb('0x2')]=function(_0x20886e){const _0x13de98=_0x16c5bb;for(let _0x525b7f=0x0,_0x342608=events[_0x13de98('0x1')];_0x525b7f<_0x342608;_0x525b7f++){const _0x3468cd=events[_0x525b7f],_0x175989=createListener('faxAccount:'+_0x3468cd,_0x20886e);FaxAccountEvents['on'](_0x3468cd,_0x175989);}}; \ No newline at end of file +const a190_0x1226=['update','save','remove','emit','register'];(function(_0x379370,_0x1226ea){const _0x57f3c3=function(_0x13148a){while(--_0x13148a){_0x379370['push'](_0x379370['shift']());}};_0x57f3c3(++_0x1226ea);}(a190_0x1226,0x14d));const a190_0x57f3=function(_0x379370,_0x1226ea){_0x379370=_0x379370-0x0;let _0x57f3c3=a190_0x1226[_0x379370];return _0x57f3c3;};const _0x382b37=a190_0x57f3;'use strict';const FaxAccountEvents=require('./faxAccount.events'),events=[_0x382b37('0x3'),_0x382b37('0x4'),_0x382b37('0x2')];function createListener(_0x13148a,_0x41d778){return function(_0x2638fe){const _0x575829=a190_0x57f3;_0x41d778[_0x575829('0x0')](_0x13148a,_0x2638fe);};}exports[_0x382b37('0x1')]=function(_0x3b5d31){for(let _0x718357=0x0,_0x44c2c3=events['length'];_0x718357<_0x44c2c3;_0x718357++){const _0x164fd0=events[_0x718357],_0x14c85e=createListener('faxAccount:'+_0x164fd0,_0x3b5d31);FaxAccountEvents['on'](_0x164fd0,_0x14c85e);}}; \ No newline at end of file diff --git a/server/api/faxAccount/index.js b/server/api/faxAccount/index.js index 9662eef..15da1e5 100644 --- a/server/api/faxAccount/index.js +++ b/server/api/faxAccount/index.js @@ -1 +1 @@ -const a191_0x5527=['show','delete','getAgents','addAccountApplications','removeDispositions','getAnswers','/:id/applications','send','post','/:id/canned_answers','express','isAuthenticated','/:id/dispositions','get','addInteraction','getInteractions','exports','destroy','create','./faxAccount.controller','getApplications','/:id/users','/addaccountapplications','/:id/interactions','update','index','/:id/send','updateAccountApplications','../../components/auth/service','getDispositions','addApplications','/describe','removeAnswers','/:id','put','getMessages','Router','/:id/messages'];(function(_0x1eeff2,_0x5527fa){const _0x313d49=function(_0x28e46e){while(--_0x28e46e){_0x1eeff2['push'](_0x1eeff2['shift']());}};_0x313d49(++_0x5527fa);}(a191_0x5527,0x1b2));const a191_0x313d=function(_0x1eeff2,_0x5527fa){_0x1eeff2=_0x1eeff2-0x0;let _0x313d49=a191_0x5527[_0x1eeff2];return _0x313d49;};const _0xfef57=a191_0x313d;'use strict';const express=require(_0xfef57('0x20')),router=express[_0xfef57('0x14')](),auth=require(_0xfef57('0xc')),controller=require(_0xfef57('0x3'));router[_0xfef57('0x23')]('/',auth[_0xfef57('0x21')](),controller[_0xfef57('0x9')]),router[_0xfef57('0x23')](_0xfef57('0xf'),auth['isAuthenticated'](),controller['describe']),router[_0xfef57('0x23')](_0xfef57('0x11'),auth[_0xfef57('0x21')](),controller[_0xfef57('0x16')]),router[_0xfef57('0x23')]('/:id/dispositions',auth[_0xfef57('0x21')](),controller[_0xfef57('0xd')]),router[_0xfef57('0x23')](_0xfef57('0x1f'),auth[_0xfef57('0x21')](),controller[_0xfef57('0x1b')]),router[_0xfef57('0x23')]('/:id/interactions',auth[_0xfef57('0x21')](),controller[_0xfef57('0x25')]),router[_0xfef57('0x23')](_0xfef57('0x1c'),auth[_0xfef57('0x21')](),controller[_0xfef57('0x4')]),router[_0xfef57('0x23')](_0xfef57('0x15'),auth[_0xfef57('0x21')](),controller[_0xfef57('0x13')]),router[_0xfef57('0x23')]('/:id/users',auth[_0xfef57('0x21')](),controller[_0xfef57('0x18')]),router[_0xfef57('0x1e')]('/',auth[_0xfef57('0x21')](),controller[_0xfef57('0x2')]),router['post'](_0xfef57('0x22'),auth[_0xfef57('0x21')](),controller['addDisposition']),router[_0xfef57('0x1e')](_0xfef57('0x1f'),auth['isAuthenticated'](),controller['addAnswer']),router[_0xfef57('0x1e')](_0xfef57('0x7'),auth['isAuthenticated'](),controller[_0xfef57('0x24')]),router['post'](_0xfef57('0x1c'),auth['isAuthenticated'](),controller[_0xfef57('0xe')]),router[_0xfef57('0x1e')](_0xfef57('0x6'),auth[_0xfef57('0x21')](),controller[_0xfef57('0x19')]),router[_0xfef57('0x1e')]('/updateaccountapplications',auth[_0xfef57('0x21')](),controller[_0xfef57('0xb')]),router[_0xfef57('0x1e')](_0xfef57('0xa'),auth[_0xfef57('0x21')](),controller[_0xfef57('0x1d')]),router[_0xfef57('0x1e')]('/:id/users',auth[_0xfef57('0x21')](),controller['addAgents']),router[_0xfef57('0x12')](_0xfef57('0x11'),auth['isAuthenticated'](),controller[_0xfef57('0x8')]),router[_0xfef57('0x17')](_0xfef57('0x11'),auth[_0xfef57('0x21')](),controller[_0xfef57('0x1')]),router[_0xfef57('0x17')]('/:id/dispositions',auth[_0xfef57('0x21')](),controller[_0xfef57('0x1a')]),router['delete'](_0xfef57('0x1f'),auth['isAuthenticated'](),controller[_0xfef57('0x10')]),router['delete'](_0xfef57('0x5'),auth[_0xfef57('0x21')](),controller['removeAgents']),module[_0xfef57('0x0')]=router; \ No newline at end of file +const a191_0x3e1b=['addAccountApplications','destroy','/:id/applications','/updateaccountapplications','/:id/interactions','post','describe','/:id/users','isAuthenticated','getAnswers','/:id/dispositions','/:id','getAgents','index','getApplications','removeAgents','getMessages','get','addAnswer','removeDispositions','put','exports','addInteraction','/:id/messages','addDisposition','update','/:id/canned_answers','delete','show','/describe','Router','create','updateAccountApplications','getDispositions','addApplications','./faxAccount.controller','send','getInteractions','express'];(function(_0x1135a8,_0x3e1b39){const _0x38a688=function(_0x26cff0){while(--_0x26cff0){_0x1135a8['push'](_0x1135a8['shift']());}};_0x38a688(++_0x3e1b39);}(a191_0x3e1b,0x1bf));const a191_0x38a6=function(_0x1135a8,_0x3e1b39){_0x1135a8=_0x1135a8-0x0;let _0x38a688=a191_0x3e1b[_0x1135a8];return _0x38a688;};const _0x2d5889=a191_0x38a6;'use strict';const express=require(_0x2d5889('0x14')),router=express[_0x2d5889('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x2d5889('0x11'));router['get']('/',auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x22')]),router['get'](_0x2d5889('0xb'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x1b')]),router[_0x2d5889('0x26')](_0x2d5889('0x20'),auth['isAuthenticated'](),controller[_0x2d5889('0xa')]),router[_0x2d5889('0x26')]('/:id/dispositions',auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0xf')]),router[_0x2d5889('0x26')](_0x2d5889('0x8'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x1e')]),router[_0x2d5889('0x26')](_0x2d5889('0x19'),auth['isAuthenticated'](),controller[_0x2d5889('0x13')]),router['get'](_0x2d5889('0x17'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x23')]),router[_0x2d5889('0x26')](_0x2d5889('0x5'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x25')]),router[_0x2d5889('0x26')](_0x2d5889('0x1c'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x21')]),router['post']('/',auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0xd')]),router[_0x2d5889('0x1a')](_0x2d5889('0x1f'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x6')]),router[_0x2d5889('0x1a')](_0x2d5889('0x8'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x0')]),router['post'](_0x2d5889('0x19'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x4')]),router[_0x2d5889('0x1a')](_0x2d5889('0x17'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x10')]),router['post']('/addaccountapplications',auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x15')]),router['post'](_0x2d5889('0x18'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0xe')]),router[_0x2d5889('0x1a')]('/:id/send',auth['isAuthenticated'](),controller[_0x2d5889('0x12')]),router[_0x2d5889('0x1a')]('/:id/users',auth[_0x2d5889('0x1d')](),controller['addAgents']),router[_0x2d5889('0x2')](_0x2d5889('0x20'),auth['isAuthenticated'](),controller[_0x2d5889('0x7')]),router[_0x2d5889('0x9')](_0x2d5889('0x20'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x16')]),router[_0x2d5889('0x9')](_0x2d5889('0x1f'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x1')]),router[_0x2d5889('0x9')](_0x2d5889('0x8'),auth[_0x2d5889('0x1d')](),controller['removeAnswers']),router['delete'](_0x2d5889('0x1c'),auth[_0x2d5889('0x1d')](),controller[_0x2d5889('0x24')]),module[_0x2d5889('0x3')]=router; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.attributes.js b/server/api/faxApplication/faxApplication.attributes.js index 30faa76..462ad4b 100644 --- a/server/api/faxApplication/faxApplication.attributes.js +++ b/server/api/faxApplication/faxApplication.attributes.js @@ -1 +1 @@ -const a192_0x1379=['TEXT','exports','*,*,*,*','STRING'];(function(_0x1be148,_0x137900){const _0x2d320a=function(_0x48c94e){while(--_0x48c94e){_0x1be148['push'](_0x1be148['shift']());}};_0x2d320a(++_0x137900);}(a192_0x1379,0xe8));const a192_0x2d32=function(_0x1be148,_0x137900){_0x1be148=_0x1be148-0x0;let _0x2d320a=a192_0x1379[_0x1be148];return _0x2d320a;};const _0x376f6c=a192_0x2d32;'use strict';const Sequelize=require('sequelize');module[_0x376f6c('0x1')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize[_0x376f6c('0x3')],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':Sequelize[_0x376f6c('0x0')]()},'description':{'type':Sequelize[_0x376f6c('0x3')]},'interval':{'type':Sequelize[_0x376f6c('0x3')],'defaultValue':_0x376f6c('0x2')}}; \ No newline at end of file +const a192_0x3151=['*,*,*,*','TEXT','STRING','exports','noop'];(function(_0x271488,_0x315170){const _0xe0814c=function(_0x5d7a65){while(--_0x5d7a65){_0x271488['push'](_0x271488['shift']());}};_0xe0814c(++_0x315170);}(a192_0x3151,0x14b));const a192_0xe081=function(_0x271488,_0x315170){_0x271488=_0x271488-0x0;let _0xe0814c=a192_0x3151[_0x271488];return _0xe0814c;};const _0x49795d=a192_0xe081;'use strict';const Sequelize=require('sequelize');module[_0x49795d('0x2')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize[_0x49795d('0x1')],'allowNull':![],'defaultValue':_0x49795d('0x3')},'appdata':{'type':Sequelize[_0x49795d('0x0')]()},'description':{'type':Sequelize[_0x49795d('0x1')]},'interval':{'type':Sequelize[_0x49795d('0x1')],'defaultValue':_0x49795d('0x4')}}; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.controller.js b/server/api/faxApplication/faxApplication.controller.js index 1f29dc0..90176a5 100644 --- a/server/api/faxApplication/faxApplication.controller.js +++ b/server/api/faxApplication/faxApplication.controller.js @@ -1 +1 @@ -const a193_0x259a=['../../mysqldb','include','error','send','name','findOne','FaxApplication','undefined','merge','then','VIRTUAL','set','filters','destroy','type','body','attributes','key','count','show','nolimit','includeAll','model','sendStatus','stack','options','filter','order','like','update','sequelize','catch','end','status','sort','limit','map','where','rawAttributes','offset','rows','Content-Range','query','fields','json','keys','length','params','intersection','pick'];(function(_0x40a797,_0x259ad4){const _0x2c9bf2=function(_0x469afa){while(--_0x469afa){_0x40a797['push'](_0x40a797['shift']());}};_0x2c9bf2(++_0x259ad4);}(a193_0x259a,0x166));const a193_0x2c9b=function(_0x40a797,_0x259ad4){_0x40a797=_0x40a797-0x0;let _0x2c9bf2=a193_0x259a[_0x40a797];return _0x2c9bf2;};const _0x2dfb5e=a193_0x2c9b;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x2dfb5e('0x2a'))['db'],{Op}=require(_0x2dfb5e('0x16'));function respondWithResult(_0x469afa,_0x1bd8c3){return _0x1bd8c3=_0x1bd8c3||0xc8,function(_0x3b171a){const _0x47d61a=a193_0x2c9b;if(_0x3b171a)return _0x469afa[_0x47d61a('0x19')](_0x1bd8c3)['json'](_0x3b171a);};}function respondWithFilteredResult(_0x39c7ad,_0x10860b){return function(_0x1a4a7b){const _0x5d279a=a193_0x2c9b;if(_0x1a4a7b){const _0x5787c3=_0x1a4a7b[_0x5d279a('0xa')],_0x12dc82=_0x10860b[_0x5d279a('0x1f')];let _0x2eedd3=_0x10860b[_0x5d279a('0x1f')]+_0x10860b[_0x5d279a('0x1b')],_0x4bc0f9;return _0x2eedd3>=_0x5787c3?(_0x2eedd3=_0x5787c3,_0x4bc0f9=0xc8):_0x4bc0f9=0xce,_0x39c7ad[_0x5d279a('0x19')](_0x4bc0f9),_0x39c7ad[_0x5d279a('0x3')](_0x5d279a('0x21'),_0x12dc82+'-'+_0x2eedd3+'/'+_0x5787c3)[_0x5d279a('0x24')](_0x1a4a7b);}return null;};}function saveUpdates(_0xda7f46){return function(_0x3b20f7){const _0x2e36d8=a193_0x2c9b;if(_0x3b20f7)return _0x3b20f7[_0x2e36d8('0x15')](_0xda7f46)[_0x2e36d8('0x1')](function(_0x758b9d){return _0x758b9d;});return null;};}function removeEntity(_0x4c4a05){return function(_0x5db762){const _0x146ad2=a193_0x2c9b;if(_0x5db762)return _0x5db762[_0x146ad2('0x5')]()[_0x146ad2('0x1')](function(){const _0x1000aa=_0x146ad2;_0x4c4a05[_0x1000aa('0x19')](0xcc)[_0x1000aa('0x18')]();});};}function handleEntityNotFound(_0x378f7f){return function(_0x38464c){const _0x4c8bc1=a193_0x2c9b;return!_0x38464c&&_0x378f7f[_0x4c8bc1('0xf')](0x194),_0x38464c;};}function handleError(_0x19234a,_0x1fa06c){return _0x1fa06c=_0x1fa06c||0x1f4,function(_0x18cbe3){const _0x3690a9=a193_0x2c9b;logger[_0x3690a9('0x2c')](_0x18cbe3[_0x3690a9('0x10')]),_0x18cbe3[_0x3690a9('0x2e')]&&delete _0x18cbe3['name'],_0x19234a[_0x3690a9('0x19')](_0x1fa06c)[_0x3690a9('0x2d')](_0x18cbe3);};}exports['index']=function(_0x3603a0,_0xfd5fa5){const _0xb3c08f=_0x2dfb5e;let _0x5b1478={};const _0x4502ee={},_0x36b7fc={'count':0x0,'rows':[]},_0x2983ec=_[_0xb3c08f('0x1c')](db[_0xb3c08f('0x30')][_0xb3c08f('0x1e')],function(_0x542980){const _0x2257f9=_0xb3c08f;return{'name':_0x542980['fieldName'],'type':_0x542980[_0x2257f9('0x6')][_0x2257f9('0x9')]};});_0x4502ee['model']=_['map'](_0x2983ec,_0xb3c08f('0x2e')),_0x4502ee[_0xb3c08f('0x22')]=_[_0xb3c08f('0x25')](_0x3603a0[_0xb3c08f('0x22')]),_0x4502ee[_0xb3c08f('0x4')]=_[_0xb3c08f('0x28')](_0x4502ee[_0xb3c08f('0xe')],_0x4502ee[_0xb3c08f('0x22')]),_0x5b1478[_0xb3c08f('0x8')]=_[_0xb3c08f('0x28')](_0x4502ee[_0xb3c08f('0xe')],qs['fields'](_0x3603a0[_0xb3c08f('0x22')]['fields'])),_0x5b1478['attributes']=_0x5b1478['attributes'][_0xb3c08f('0x26')]?_0x5b1478[_0xb3c08f('0x8')]:_0x4502ee[_0xb3c08f('0xe')];typeof _0x3603a0['query'][_0xb3c08f('0xc')]===_0xb3c08f('0x31')&&(_0x5b1478['limit']=qs[_0xb3c08f('0x1b')](_0x3603a0['query'][_0xb3c08f('0x1b')]),_0x5b1478[_0xb3c08f('0x1f')]=qs['offset'](_0x3603a0[_0xb3c08f('0x22')]['offset']));_0x5b1478[_0xb3c08f('0x13')]=qs[_0xb3c08f('0x1a')](_0x3603a0[_0xb3c08f('0x22')][_0xb3c08f('0x1a')]),_0x5b1478['where']=qs[_0xb3c08f('0x4')](_[_0xb3c08f('0x29')](_0x3603a0['query'],_0x4502ee[_0xb3c08f('0x4')]),_0x2983ec);_0x3603a0['query'][_0xb3c08f('0x12')]&&(_0x5b1478['where']=_['merge'](_0x5b1478['where'],{[Op['or']]:_[_0xb3c08f('0x1c')](_0x2983ec,function(_0x752d1e){const _0x12ec55=_0xb3c08f;if(_0x752d1e[_0x12ec55('0x6')]!==_0x12ec55('0x2')){const _0x68ba6c={};return _0x68ba6c[_0x752d1e['name']]={[Op[_0x12ec55('0x14')]]:'%'+_0x3603a0[_0x12ec55('0x22')][_0x12ec55('0x12')]+'%'},_0x68ba6c;}})}));_0x5b1478=_[_0xb3c08f('0x0')]({},_0x5b1478,_0x3603a0[_0xb3c08f('0x11')]);const _0x8e3472={'where':_0x5b1478[_0xb3c08f('0x1d')]};return db[_0xb3c08f('0x30')][_0xb3c08f('0xa')](_0x8e3472)[_0xb3c08f('0x1')](function(_0xa3878a){const _0x4b499f=_0xb3c08f;return _0x36b7fc[_0x4b499f('0xa')]=_0xa3878a,_0x3603a0['query'][_0x4b499f('0xd')]&&(_0x5b1478[_0x4b499f('0x2b')]=[{'all':!![]}]),db[_0x4b499f('0x30')]['findAll'](_0x5b1478);})[_0xb3c08f('0x1')](function(_0x255e89){const _0x80ce60=_0xb3c08f;return _0x36b7fc[_0x80ce60('0x20')]=_0x255e89,_0x36b7fc;})['then'](respondWithFilteredResult(_0xfd5fa5,_0x5b1478))[_0xb3c08f('0x17')](handleError(_0xfd5fa5,null));},exports[_0x2dfb5e('0xb')]=function(_0x4e558c,_0x34430b){const _0x2ee2b2=_0x2dfb5e;let _0x2c47f9={'raw':!![],'where':{'id':_0x4e558c[_0x2ee2b2('0x27')]['id']}};const _0x2231e2={};return _0x2231e2[_0x2ee2b2('0xe')]=_[_0x2ee2b2('0x25')](db['FaxApplication'][_0x2ee2b2('0x1e')]),_0x2231e2[_0x2ee2b2('0x22')]=_[_0x2ee2b2('0x25')](_0x4e558c['query']),_0x2231e2[_0x2ee2b2('0x4')]=_[_0x2ee2b2('0x28')](_0x2231e2[_0x2ee2b2('0xe')],_0x2231e2[_0x2ee2b2('0x22')]),_0x2c47f9['attributes']=_['intersection'](_0x2231e2[_0x2ee2b2('0xe')],qs[_0x2ee2b2('0x23')](_0x4e558c[_0x2ee2b2('0x22')][_0x2ee2b2('0x23')])),_0x2c47f9[_0x2ee2b2('0x8')]=_0x2c47f9[_0x2ee2b2('0x8')][_0x2ee2b2('0x26')]?_0x2c47f9[_0x2ee2b2('0x8')]:_0x2231e2[_0x2ee2b2('0xe')],_0x4e558c[_0x2ee2b2('0x22')][_0x2ee2b2('0xd')]&&(_0x2c47f9[_0x2ee2b2('0x2b')]=[{'all':!![]}]),_0x2c47f9=_[_0x2ee2b2('0x0')]({},_0x2c47f9,_0x4e558c[_0x2ee2b2('0x11')]),db[_0x2ee2b2('0x30')][_0x2ee2b2('0x2f')](_0x2c47f9)[_0x2ee2b2('0x1')](handleEntityNotFound(_0x34430b,null))[_0x2ee2b2('0x1')](respondWithResult(_0x34430b,null))[_0x2ee2b2('0x17')](handleError(_0x34430b,null));},exports['create']=function(_0xd5b1c3,_0x4b8815){const _0x530405=_0x2dfb5e;return db[_0x530405('0x30')]['create'](_0xd5b1c3[_0x530405('0x7')],{})[_0x530405('0x1')](respondWithResult(_0x4b8815,0xc9))[_0x530405('0x17')](handleError(_0x4b8815,null));},exports[_0x2dfb5e('0x15')]=function(_0x53e87a,_0x7d28c5){const _0x315142=_0x2dfb5e;return _0x53e87a[_0x315142('0x7')]['id']&&delete _0x53e87a['body']['id'],db['FaxApplication'][_0x315142('0x2f')]({'where':{'id':_0x53e87a[_0x315142('0x27')]['id']}})[_0x315142('0x1')](handleEntityNotFound(_0x7d28c5,null))[_0x315142('0x1')](saveUpdates(_0x53e87a[_0x315142('0x7')],null))[_0x315142('0x1')](respondWithResult(_0x7d28c5,null))[_0x315142('0x17')](handleError(_0x7d28c5,null));},exports[_0x2dfb5e('0x5')]=function(_0x1b9b57,_0x3b9f70){const _0x208f95=_0x2dfb5e;return db['FaxApplication'][_0x208f95('0x2f')]({'where':{'id':_0x1b9b57[_0x208f95('0x27')]['id']}})[_0x208f95('0x1')](handleEntityNotFound(_0x3b9f70,null))[_0x208f95('0x1')](removeEntity(_0x3b9f70,null))[_0x208f95('0x17')](handleError(_0x3b9f70,null));}; \ No newline at end of file +const a193_0x211b=['FaxApplication','filter','send','nolimit','count','filters','keys','catch','map','body','intersection','includeAll','set','update','sequelize','create','offset','end','destroy','attributes','rows','json','show','../../mysqldb','status','rawAttributes','fieldName','options','name','Content-Range','where','include','error','query','key','limit','../../config/logger','model','findOne','../../components/parsers/qs','fields','params','type','index','sort','merge','api','length','sendStatus','then'];(function(_0x408dc1,_0x211bfb){const _0x20d065=function(_0x274c54){while(--_0x274c54){_0x408dc1['push'](_0x408dc1['shift']());}};_0x20d065(++_0x211bfb);}(a193_0x211b,0x145));const a193_0x20d0=function(_0x408dc1,_0x211bfb){_0x408dc1=_0x408dc1-0x0;let _0x20d065=a193_0x211b[_0x408dc1];return _0x20d065;};const _0x389db7=a193_0x20d0;'use strict';const _=require('lodash'),qs=require(_0x389db7('0xe')),logger=require(_0x389db7('0xb'))(_0x389db7('0x15')),db=require(_0x389db7('0x30'))['db'],{Op}=require(_0x389db7('0x27'));function respondWithResult(_0x274c54,_0x5ecd61){return _0x5ecd61=_0x5ecd61||0xc8,function(_0x3effcc){const _0x1173c8=a193_0x20d0;if(_0x3effcc)return _0x274c54['status'](_0x5ecd61)[_0x1173c8('0x2e')](_0x3effcc);};}function respondWithFilteredResult(_0x43fb13,_0x13d3fb){return function(_0x50cf7b){const _0x3044f7=a193_0x20d0;if(_0x50cf7b){const _0x492227=_0x50cf7b[_0x3044f7('0x1d')],_0x4e5a8a=_0x13d3fb[_0x3044f7('0x29')];let _0x45c52a=_0x13d3fb[_0x3044f7('0x29')]+_0x13d3fb['limit'],_0x194908;return _0x45c52a>=_0x492227?(_0x45c52a=_0x492227,_0x194908=0xc8):_0x194908=0xce,_0x43fb13[_0x3044f7('0x31')](_0x194908),_0x43fb13[_0x3044f7('0x25')](_0x3044f7('0x4'),_0x4e5a8a+'-'+_0x45c52a+'/'+_0x492227)[_0x3044f7('0x2e')](_0x50cf7b);}return null;};}function saveUpdates(_0x46d089){return function(_0x475422){const _0x3e1d51=a193_0x20d0;if(_0x475422)return _0x475422['update'](_0x46d089)[_0x3e1d51('0x18')](function(_0x58f51c){return _0x58f51c;});return null;};}function removeEntity(_0xadeb2b){return function(_0x41d93f){const _0x13bf76=a193_0x20d0;if(_0x41d93f)return _0x41d93f[_0x13bf76('0x2b')]()[_0x13bf76('0x18')](function(){const _0x4f4a99=_0x13bf76;_0xadeb2b['status'](0xcc)[_0x4f4a99('0x2a')]();});};}function handleEntityNotFound(_0x94be40){return function(_0x2d0713){const _0xcbe44d=a193_0x20d0;return!_0x2d0713&&_0x94be40[_0xcbe44d('0x17')](0x194),_0x2d0713;};}function handleError(_0x556c9f,_0x356c73){return _0x356c73=_0x356c73||0x1f4,function(_0x5cbda2){const _0x26f174=a193_0x20d0;logger[_0x26f174('0x7')](_0x5cbda2['stack']),_0x5cbda2['name']&&delete _0x5cbda2[_0x26f174('0x3')],_0x556c9f['status'](_0x356c73)[_0x26f174('0x1b')](_0x5cbda2);};}exports[_0x389db7('0x12')]=function(_0x353dee,_0x3252b1){const _0x3a25c1=_0x389db7;let _0x14ae42={};const _0x15bd2c={},_0x413307={'count':0x0,'rows':[]},_0x233bf9=_['map'](db[_0x3a25c1('0x19')][_0x3a25c1('0x0')],function(_0x503d4){const _0x5c2648=_0x3a25c1;return{'name':_0x503d4[_0x5c2648('0x1')],'type':_0x503d4[_0x5c2648('0x11')][_0x5c2648('0x9')]};});_0x15bd2c[_0x3a25c1('0xc')]=_[_0x3a25c1('0x21')](_0x233bf9,_0x3a25c1('0x3')),_0x15bd2c[_0x3a25c1('0x8')]=_['keys'](_0x353dee[_0x3a25c1('0x8')]),_0x15bd2c['filters']=_['intersection'](_0x15bd2c['model'],_0x15bd2c[_0x3a25c1('0x8')]),_0x14ae42[_0x3a25c1('0x2c')]=_['intersection'](_0x15bd2c[_0x3a25c1('0xc')],qs['fields'](_0x353dee[_0x3a25c1('0x8')][_0x3a25c1('0xf')])),_0x14ae42[_0x3a25c1('0x2c')]=_0x14ae42[_0x3a25c1('0x2c')][_0x3a25c1('0x16')]?_0x14ae42['attributes']:_0x15bd2c['model'];typeof _0x353dee['query'][_0x3a25c1('0x1c')]==='undefined'&&(_0x14ae42[_0x3a25c1('0xa')]=qs[_0x3a25c1('0xa')](_0x353dee['query'][_0x3a25c1('0xa')]),_0x14ae42[_0x3a25c1('0x29')]=qs[_0x3a25c1('0x29')](_0x353dee[_0x3a25c1('0x8')][_0x3a25c1('0x29')]));_0x14ae42['order']=qs[_0x3a25c1('0x13')](_0x353dee[_0x3a25c1('0x8')][_0x3a25c1('0x13')]),_0x14ae42[_0x3a25c1('0x5')]=qs[_0x3a25c1('0x1e')](_['pick'](_0x353dee[_0x3a25c1('0x8')],_0x15bd2c[_0x3a25c1('0x1e')]),_0x233bf9);_0x353dee['query'][_0x3a25c1('0x1a')]&&(_0x14ae42[_0x3a25c1('0x5')]=_[_0x3a25c1('0x14')](_0x14ae42[_0x3a25c1('0x5')],{[Op['or']]:_[_0x3a25c1('0x21')](_0x233bf9,function(_0x996b89){const _0x487ce8=_0x3a25c1;if(_0x996b89[_0x487ce8('0x11')]!=='VIRTUAL'){const _0x3f7130={};return _0x3f7130[_0x996b89[_0x487ce8('0x3')]]={[Op['like']]:'%'+_0x353dee[_0x487ce8('0x8')][_0x487ce8('0x1a')]+'%'},_0x3f7130;}})}));_0x14ae42=_[_0x3a25c1('0x14')]({},_0x14ae42,_0x353dee[_0x3a25c1('0x2')]);const _0x25f32b={'where':_0x14ae42['where']};return db[_0x3a25c1('0x19')][_0x3a25c1('0x1d')](_0x25f32b)[_0x3a25c1('0x18')](function(_0x4f9310){const _0x5273bc=_0x3a25c1;return _0x413307[_0x5273bc('0x1d')]=_0x4f9310,_0x353dee[_0x5273bc('0x8')][_0x5273bc('0x24')]&&(_0x14ae42['include']=[{'all':!![]}]),db[_0x5273bc('0x19')]['findAll'](_0x14ae42);})[_0x3a25c1('0x18')](function(_0x56f853){const _0x4bf0a9=_0x3a25c1;return _0x413307[_0x4bf0a9('0x2d')]=_0x56f853,_0x413307;})[_0x3a25c1('0x18')](respondWithFilteredResult(_0x3252b1,_0x14ae42))[_0x3a25c1('0x20')](handleError(_0x3252b1,null));},exports[_0x389db7('0x2f')]=function(_0x3d13db,_0x615882){const _0x2cde14=_0x389db7;let _0x4d79d1={'raw':!![],'where':{'id':_0x3d13db[_0x2cde14('0x10')]['id']}};const _0x4369cb={};return _0x4369cb[_0x2cde14('0xc')]=_['keys'](db[_0x2cde14('0x19')][_0x2cde14('0x0')]),_0x4369cb[_0x2cde14('0x8')]=_[_0x2cde14('0x1f')](_0x3d13db[_0x2cde14('0x8')]),_0x4369cb[_0x2cde14('0x1e')]=_[_0x2cde14('0x23')](_0x4369cb['model'],_0x4369cb[_0x2cde14('0x8')]),_0x4d79d1[_0x2cde14('0x2c')]=_[_0x2cde14('0x23')](_0x4369cb[_0x2cde14('0xc')],qs[_0x2cde14('0xf')](_0x3d13db[_0x2cde14('0x8')][_0x2cde14('0xf')])),_0x4d79d1[_0x2cde14('0x2c')]=_0x4d79d1[_0x2cde14('0x2c')][_0x2cde14('0x16')]?_0x4d79d1[_0x2cde14('0x2c')]:_0x4369cb[_0x2cde14('0xc')],_0x3d13db[_0x2cde14('0x8')]['includeAll']&&(_0x4d79d1[_0x2cde14('0x6')]=[{'all':!![]}]),_0x4d79d1=_[_0x2cde14('0x14')]({},_0x4d79d1,_0x3d13db[_0x2cde14('0x2')]),db['FaxApplication'][_0x2cde14('0xd')](_0x4d79d1)[_0x2cde14('0x18')](handleEntityNotFound(_0x615882,null))[_0x2cde14('0x18')](respondWithResult(_0x615882,null))[_0x2cde14('0x20')](handleError(_0x615882,null));},exports[_0x389db7('0x28')]=function(_0x5f2fe8,_0x5442f3){const _0x718dd9=_0x389db7;return db[_0x718dd9('0x19')][_0x718dd9('0x28')](_0x5f2fe8[_0x718dd9('0x22')],{})[_0x718dd9('0x18')](respondWithResult(_0x5442f3,0xc9))[_0x718dd9('0x20')](handleError(_0x5442f3,null));},exports[_0x389db7('0x26')]=function(_0x14c599,_0x49f40b){const _0x283a5e=_0x389db7;return _0x14c599['body']['id']&&delete _0x14c599['body']['id'],db['FaxApplication']['findOne']({'where':{'id':_0x14c599[_0x283a5e('0x10')]['id']}})[_0x283a5e('0x18')](handleEntityNotFound(_0x49f40b,null))[_0x283a5e('0x18')](saveUpdates(_0x14c599['body'],null))[_0x283a5e('0x18')](respondWithResult(_0x49f40b,null))['catch'](handleError(_0x49f40b,null));},exports[_0x389db7('0x2b')]=function(_0x1ce72d,_0x4ce82c){const _0x4a1ff6=_0x389db7;return db['FaxApplication'][_0x4a1ff6('0xd')]({'where':{'id':_0x1ce72d[_0x4a1ff6('0x10')]['id']}})[_0x4a1ff6('0x18')](handleEntityNotFound(_0x4ce82c,null))[_0x4a1ff6('0x18')](removeEntity(_0x4ce82c,null))[_0x4a1ff6('0x20')](handleError(_0x4ce82c,null));}; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.model.js b/server/api/faxApplication/faxApplication.model.js index b18ad8c..db7d787 100644 --- a/server/api/faxApplication/faxApplication.model.js +++ b/server/api/faxApplication/faxApplication.model.js @@ -1 +1 @@ -const a194_0x1fb1=['FaxApplication','fax_applications','utf8mb4_unicode_ci','exports','./faxApplication.attributes','define'];(function(_0x4894fb,_0x1fb1e3){const _0x22861b=function(_0x3e6753){while(--_0x3e6753){_0x4894fb['push'](_0x4894fb['shift']());}};_0x22861b(++_0x1fb1e3);}(a194_0x1fb1,0xc8));const a194_0x2286=function(_0x4894fb,_0x1fb1e3){_0x4894fb=_0x4894fb-0x0;let _0x22861b=a194_0x1fb1[_0x4894fb];return _0x22861b;};const _0x5c14af=a194_0x2286;'use strict';const attributes=require(_0x5c14af('0x2'));module[_0x5c14af('0x1')]=function(_0x3e6753){const _0x36c1e5=_0x5c14af,_0x5edbfb=_0x3e6753[_0x36c1e5('0x3')](_0x36c1e5('0x4'),attributes,{'tableName':_0x36c1e5('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x36c1e5('0x0')});return _0x5edbfb;}; \ No newline at end of file +const a194_0x3636=['exports','define','FaxApplication','fax_applications','./faxApplication.attributes'];(function(_0x1218a3,_0x3636cb){const _0x42792d=function(_0x2af9f4){while(--_0x2af9f4){_0x1218a3['push'](_0x1218a3['shift']());}};_0x42792d(++_0x3636cb);}(a194_0x3636,0x1db));const a194_0x4279=function(_0x1218a3,_0x3636cb){_0x1218a3=_0x1218a3-0x0;let _0x42792d=a194_0x3636[_0x1218a3];return _0x42792d;};const _0x43c4f9=a194_0x4279;'use strict';const attributes=require(_0x43c4f9('0x4'));module[_0x43c4f9('0x0')]=function(_0x2af9f4){const _0x530749=_0x43c4f9,_0x4e332c=_0x2af9f4[_0x530749('0x1')](_0x530749('0x2'),attributes,{'tableName':_0x530749('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x4e332c;}; \ No newline at end of file diff --git a/server/api/faxApplication/faxApplication.rpc.js b/server/api/faxApplication/faxApplication.rpc.js index a93d31b..e871593 100644 --- a/server/api/faxApplication/faxApplication.rpc.js +++ b/server/api/faxApplication/faxApplication.rpc.js @@ -1 +1 @@ -const a195_0x2954=['catch','error','info','attributes','rpc','raw','message','body','update','debug','FaxApplication','then','stringify','limit','UpdateFaxApplication','options'];(function(_0x276f76,_0x295465){const _0x2f70b2=function(_0x3f293c){while(--_0x3f293c){_0x276f76['push'](_0x276f76['shift']());}};_0x2f70b2(++_0x295465);}(a195_0x2954,0x180));const a195_0x2f70=function(_0x276f76,_0x295465){_0x276f76=_0x276f76-0x0;let _0x2f70b2=a195_0x2954[_0x276f76];return _0x2f70b2;};const _0x3086df=a195_0x2f70;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x3086df('0x4'));exports[_0x3086df('0xe')]=function(_0x3f293c){const _0x4248ba=this;return new Promise(function(_0x380d0d,_0x461c23){const _0x45b4e0=a195_0x2f70;return db[_0x45b4e0('0xa')][_0x45b4e0('0x8')](_0x3f293c[_0x45b4e0('0x7')],{'raw':_0x3f293c[_0x45b4e0('0xf')]?_0x3f293c[_0x45b4e0('0xf')][_0x45b4e0('0x5')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f293c[_0x45b4e0('0xf')]?_0x3f293c['options']['where']||null:null,'attributes':_0x3f293c[_0x45b4e0('0xf')]?_0x3f293c['options'][_0x45b4e0('0x3')]||null:null,'limit':_0x3f293c[_0x45b4e0('0xf')]?_0x3f293c[_0x45b4e0('0xf')][_0x45b4e0('0xd')]||null:null})[_0x45b4e0('0xb')](function(_0x25bfa8){const _0x280b44=_0x45b4e0;logger[_0x280b44('0x2')]('UpdateFaxApplication',_0x3f293c),logger[_0x280b44('0x9')]('UpdateFaxApplication',_0x3f293c,JSON[_0x280b44('0xc')](_0x25bfa8)),_0x380d0d(_0x25bfa8);})[_0x45b4e0('0x0')](function(_0x22465c){const _0x2ab16e=_0x45b4e0;logger[_0x2ab16e('0x1')](_0x2ab16e('0xe'),_0x22465c[_0x2ab16e('0x6')],_0x3f293c),_0x461c23(_0x4248ba['error'](0x1f4,_0x22465c[_0x2ab16e('0x6')]));});});}; \ No newline at end of file +const a195_0x3a74=['UpdateFaxApplication','error','message','../../config/logger','then','debug','../../mysqldb','catch','options','attributes','limit','rpc','raw','info'];(function(_0x548157,_0x3a744a){const _0x38f86b=function(_0x5734e1){while(--_0x5734e1){_0x548157['push'](_0x548157['shift']());}};_0x38f86b(++_0x3a744a);}(a195_0x3a74,0x12d));const a195_0x38f8=function(_0x548157,_0x3a744a){_0x548157=_0x548157-0x0;let _0x38f86b=a195_0x3a74[_0x548157];return _0x38f86b;};const _0x199366=a195_0x38f8;'use strict';const db=require(_0x199366('0xd'))['db'],logger=require(_0x199366('0xa'))(_0x199366('0x4'));exports[_0x199366('0x7')]=function(_0x5734e1){const _0x13e386=this;return new Promise(function(_0x3451ec,_0x25c81d){const _0x5be687=a195_0x38f8;return db['FaxApplication']['update'](_0x5734e1['body'],{'raw':_0x5734e1['options']?_0x5734e1[_0x5be687('0x1')][_0x5be687('0x5')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5734e1[_0x5be687('0x1')]?_0x5734e1[_0x5be687('0x1')]['where']||null:null,'attributes':_0x5734e1[_0x5be687('0x1')]?_0x5734e1[_0x5be687('0x1')][_0x5be687('0x2')]||null:null,'limit':_0x5734e1[_0x5be687('0x1')]?_0x5734e1[_0x5be687('0x1')][_0x5be687('0x3')]||null:null})[_0x5be687('0xb')](function(_0x264f41){const _0x10a00f=_0x5be687;logger[_0x10a00f('0x6')](_0x10a00f('0x7'),_0x5734e1),logger[_0x10a00f('0xc')]('UpdateFaxApplication',_0x5734e1,JSON['stringify'](_0x264f41)),_0x3451ec(_0x264f41);})[_0x5be687('0x0')](function(_0x8d171b){const _0x3f74e1=_0x5be687;logger['error'](_0x3f74e1('0x7'),_0x8d171b[_0x3f74e1('0x9')],_0x5734e1),_0x25c81d(_0x13e386[_0x3f74e1('0x8')](0x1f4,_0x8d171b[_0x3f74e1('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/faxApplication/index.js b/server/api/faxApplication/index.js index fce49c8..ab60419 100644 --- a/server/api/faxApplication/index.js +++ b/server/api/faxApplication/index.js @@ -1 +1 @@ -const a196_0x191b=['post','update','isAuthenticated','index','./faxApplication.controller','express','Router','get','../../components/auth/service','put','/:id'];(function(_0x6b3ae6,_0x191b92){const _0x5548a5=function(_0x3ecab0){while(--_0x3ecab0){_0x6b3ae6['push'](_0x6b3ae6['shift']());}};_0x5548a5(++_0x191b92);}(a196_0x191b,0x1c2));const a196_0x5548=function(_0x6b3ae6,_0x191b92){_0x6b3ae6=_0x6b3ae6-0x0;let _0x5548a5=a196_0x191b[_0x6b3ae6];return _0x5548a5;};const _0x59cf7f=a196_0x5548;'use strict';const express=require(_0x59cf7f('0x6')),router=express[_0x59cf7f('0x7')](),auth=require(_0x59cf7f('0x9')),controller=require(_0x59cf7f('0x5'));router[_0x59cf7f('0x8')]('/',auth[_0x59cf7f('0x3')](),controller[_0x59cf7f('0x4')]),router[_0x59cf7f('0x8')]('/:id',auth[_0x59cf7f('0x3')](),controller['show']),router[_0x59cf7f('0x1')]('/',auth[_0x59cf7f('0x3')](),controller['create']),router[_0x59cf7f('0xa')](_0x59cf7f('0x0'),auth[_0x59cf7f('0x3')](),controller[_0x59cf7f('0x2')]),router['delete']('/:id',auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a196_0x4269=['show','put','exports','/:id','delete','Router','isAuthenticated','create','post','index'];(function(_0x34104c,_0x426972){const _0x4063db=function(_0x4fd8eb){while(--_0x4fd8eb){_0x34104c['push'](_0x34104c['shift']());}};_0x4063db(++_0x426972);}(a196_0x4269,0x12d));const a196_0x4063=function(_0x34104c,_0x426972){_0x34104c=_0x34104c-0x0;let _0x4063db=a196_0x4269[_0x34104c];return _0x4063db;};const _0x16a295=a196_0x4063;'use strict';const express=require('express'),router=express[_0x16a295('0x4')](),auth=require('../../components/auth/service'),controller=require('./faxApplication.controller');router['get']('/',auth[_0x16a295('0x5')](),controller[_0x16a295('0x8')]),router['get'](_0x16a295('0x2'),auth['isAuthenticated'](),controller[_0x16a295('0x9')]),router[_0x16a295('0x7')]('/',auth['isAuthenticated'](),controller[_0x16a295('0x6')]),router[_0x16a295('0x0')](_0x16a295('0x2'),auth[_0x16a295('0x5')](),controller['update']),router[_0x16a295('0x3')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x16a295('0x1')]=router; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.attributes.js b/server/api/faxInteraction/faxInteraction.attributes.js index 71bc4f6..6882684 100644 --- a/server/api/faxInteraction/faxInteraction.attributes.js +++ b/server/api/faxInteraction/faxInteraction.attributes.js @@ -1 +1 @@ -const a197_0x3b20=['exports','out','ENUM','STRING','sequelize','DATE'];(function(_0x19a941,_0x3b2071){const _0x550e91=function(_0x15bd07){while(--_0x15bd07){_0x19a941['push'](_0x19a941['shift']());}};_0x550e91(++_0x3b2071);}(a197_0x3b20,0x1a3));const a197_0x550e=function(_0x19a941,_0x3b2071){_0x19a941=_0x19a941-0x0;let _0x550e91=a197_0x3b20[_0x19a941];return _0x550e91;};const _0x1e9965=a197_0x550e;'use strict';const Sequelize=require(_0x1e9965('0x5'));module[_0x1e9965('0x1')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x1e9965('0x4')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x1e9965('0x4')]},'note':{'type':Sequelize['STRING']},'read1stAt':{'type':Sequelize['DATE']},'fax':{'type':Sequelize[_0x1e9965('0x4')]},'firstMsgDirection':{'type':Sequelize[_0x1e9965('0x3')]('in',_0x1e9965('0x2')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x1e9965('0x0')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x1e9965('0x2')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a197_0x26a8=['STRING','out','DATE','ENUM','exports','BOOLEAN'];(function(_0x1c386b,_0x26a89c){const _0xf172c5=function(_0x5d6c36){while(--_0x5d6c36){_0x1c386b['push'](_0x1c386b['shift']());}};_0xf172c5(++_0x26a89c);}(a197_0x26a8,0x1ef));const a197_0xf172=function(_0x1c386b,_0x26a89c){_0x1c386b=_0x1c386b-0x0;let _0xf172c5=a197_0x26a8[_0x1c386b];return _0xf172c5;};const _0x46ded3=a197_0xf172;'use strict';const Sequelize=require('sequelize');module[_0x46ded3('0x1')]={'closed':{'type':Sequelize[_0x46ded3('0x2')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x46ded3('0x5')]},'disposition':{'type':Sequelize[_0x46ded3('0x3')]},'secondDisposition':{'type':Sequelize[_0x46ded3('0x3')]},'thirdDisposition':{'type':Sequelize[_0x46ded3('0x3')]},'note':{'type':Sequelize[_0x46ded3('0x3')]},'read1stAt':{'type':Sequelize['DATE']},'fax':{'type':Sequelize['STRING']},'firstMsgDirection':{'type':Sequelize[_0x46ded3('0x0')]('in',_0x46ded3('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x46ded3('0x5')]},'lastMsgDirection':{'type':Sequelize[_0x46ded3('0x0')]('in',_0x46ded3('0x4')),'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 9f0645e..1c11255 100644 --- a/server/api/faxInteraction/faxInteraction.controller.js +++ b/server/api/faxInteraction/faxInteraction.controller.js @@ -1 +1 @@ -const a198_0x55f7=['offset','count','order','push','attachments','i.*','tag','color','Messages','FaxAccountId','params','update','gte','filters','body','Content-Range','format','catch','u.id\x20=\x20ui.UserId','create','expr','$substring','stack','../../config/environment','a.id\x20=\x20i.FaxAccountId','server','path','User','Attachment','`unreadMessages`\x20=\x200','i.FaxAccountId\x20IS\x20NULL','parse','Owner.internal','../../components/parsers/qs','nolimit','user','merge','toString','forEach','\x27\x27\x27\x27','set','`unreadMessages`\x20>\x200','users','mkdirSync','union','fax_interaction_has_tags','i.id\x20LIKE\x20?','Contact.fax','map','u.id','a.mandatoryDisposition','isArray','TagIds','addMessage','pick','search','undefined','include','FaxInteractionId','unlinkSync','files','from','rows','find','setTags','c.email','parseSearch','Users','sort','length','tools_tags','field','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','FaxInteraction','UserId','c.fax','describe','i.FaxAccountId\x20IN\x20?','cm_contacts','\x20IS\x20NULL','then','util','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','name','unreadMessages','fieldName','attributes','../../mysqldb','destroy','../../components/parsers/advancedSearch','user_has_fax_interactions','sendStatus','model','u.fullname','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','groupBy','Sequelize','intersection','sqlOperator','fullname','c.mobile','transcript-%d-%s.zip','type','get','filter','GROUP_CONCAT(DISTINCT\x20t.id)','keys','c.phone','journey','join','send','../../config/logger','resolve','root','json','buildExpression','lodash','Contact.firstName','conditions','moment','t.id\x20IN\x20?','replace','isEmpty','removeTags','Contact.lastName','`\x20>\x200','select','like','Account.mandatoryDisposition','basename','end','existsSync','Contact.mobile','o.fullname','createdAt','all','./faxInteraction.socket','index','show','ids','status','read','where','FaxMessage','createWriteStream','Owner.fullname','squel','key','\x20=\x20?','omit','../../rediscache','concat','t.id\x20=\x20it.TagId','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','getMessages','start','ui.FaxInteractionId','i.FaxAccountId\x20IS\x20NOT\x20NULL','error','log','i.id','i.fax\x20LIKE\x20?','faxInteractionTags:save','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','fields','includeAll','zip-dir','keyBy','Tags','options','null','`\x20=\x200','split','value','Contact.phone','query','findAll','SELECT','text','having','fax_interactions','findOne','c.firstName','$gte','getFullTextValue','me.FaxInteractionId\x20=\x20i.id','limit','group','addTags','download','getFaxAccounts','sequelize','left_join','rawAttributes','Tag'];(function(_0x11e76b,_0x55f73a){const _0xc83095=function(_0x4f419a){while(--_0x4f419a){_0x11e76b['push'](_0x11e76b['shift']());}};_0xc83095(++_0x55f73a);}(a198_0x55f7,0x10a));const a198_0xc830=function(_0x11e76b,_0x55f73a){_0x11e76b=_0x11e76b-0x0;let _0xc83095=a198_0x55f7[_0x11e76b];return _0xc83095;};const _0x2d320e=a198_0xc830;'use strict';const rimraf=require('rimraf'),zipdir=require(_0x2d320e('0x63')),moment=require(_0x2d320e('0x34')),util=require(_0x2d320e('0xc')),path=require(_0x2d320e('0x9a')),fs=require('fs'),_=require(_0x2d320e('0x31')),squel=require(_0x2d320e('0x4f')),{getSocket}=require(_0x2d320e('0x53')),socket=getSocket(),qs=require(_0x2d320e('0xa1')),as=require(_0x2d320e('0x15')),logger=require(_0x2d320e('0x2c'))('api'),config=require(_0x2d320e('0x97')),db=require(_0x2d320e('0x13'))['db'],{Op}=require(_0x2d320e('0x7c'));require(_0x2d320e('0x45'))['register'](socket);function respondWithStatusCode(_0x4f419a,_0x45397a){return _0x45397a=_0x45397a||0xcc,function(_0xfc4cf6){const _0x319a53=a198_0xc830;if(_0xfc4cf6)return _0x4f419a['sendStatus'](_0x45397a);return _0x4f419a[_0x319a53('0x49')](_0x45397a)['end']();};}function respondWithResult(_0x561c08,_0x41bc52){return _0x41bc52=_0x41bc52||0xc8,function(_0x459ab7){const _0x179809=a198_0xc830;if(_0x459ab7)return _0x561c08['status'](_0x41bc52)[_0x179809('0x2f')](_0x459ab7);};}function respondWithFilteredResult(_0x44f558,_0x12f436){return function(_0x1d6e97){const _0x48e6e8=a198_0xc830;if(_0x1d6e97){const _0x5d4099=_0x1d6e97[_0x48e6e8('0x81')],_0xfe8da4=_0x12f436[_0x48e6e8('0x80')];let _0x1be34a=_0x12f436['offset']+_0x12f436[_0x48e6e8('0x77')],_0x55b3b9;return _0x1be34a>=_0x5d4099?(_0x1be34a=_0x5d4099,_0x55b3b9=0xc8):_0x55b3b9=0xce,_0x44f558[_0x48e6e8('0x49')](_0x55b3b9),_0x44f558[_0x48e6e8('0xa8')](_0x48e6e8('0x8f'),_0xfe8da4+'-'+_0x1be34a+'/'+_0x5d4099)[_0x48e6e8('0x2f')](_0x1d6e97);}return null;};}function saveUpdates(_0x936961){return function(_0x4a3eb3){const _0xf2d72=a198_0xc830;if(_0x4a3eb3)return _0x4a3eb3[_0xf2d72('0x8b')](_0x936961)[_0xf2d72('0xb')](function(_0xe1812e){return _0xe1812e;});return null;};}function removeEntity(_0x2e457d){return function(_0x516849){const _0x6a7fa7=a198_0xc830;if(_0x516849)return _0x516849[_0x6a7fa7('0x14')]()[_0x6a7fa7('0xb')](function(){const _0xa77dcb=_0x6a7fa7;_0x2e457d[_0xa77dcb('0x49')](0xcc)[_0xa77dcb('0x3f')]();});};}function handleEntityNotFound(_0x4eed54){return function(_0x5f407b){return!_0x5f407b&&_0x4eed54['sendStatus'](0x194),_0x5f407b;};}function handleError(_0x559df1,_0x98d70e){return _0x98d70e=_0x98d70e||0x1f4,function(_0x1beafc){const _0x4d8bd2=a198_0xc830;logger[_0x4d8bd2('0x5b')](_0x1beafc[_0x4d8bd2('0x96')]),_0x1beafc['name']&&delete _0x1beafc[_0x4d8bd2('0xf')],_0x559df1[_0x4d8bd2('0x49')](_0x98d70e)[_0x4d8bd2('0x2b')](_0x1beafc);};}function getInteractionUsers(_0x442cd9,_0x3fc239){return new Promise(function(_0x12af26,_0x1adfec){const _0x1229ac=a198_0xc830;try{_0x3fc239[_0x442cd9['id']]&&(_0x442cd9[_0x1229ac('0xc3')]=_['map'](_0x3fc239[_0x442cd9['id']],function(_0x39522b){const _0x39d1ee=_0x1229ac;return{'id':_0x39522b['id'],'fullname':_0x39522b[_0x39d1ee('0x20')]};}));}catch(_0x5bf8da){_0x1adfec(_0x5bf8da);}_0x12af26(_0x442cd9);});}function getInteractionTags(_0x45b088,_0x11f2da){return new Promise(function(_0x1c070f,_0x2c8967){const _0x487456=a198_0xc830;try{_0x45b088[_0x487456('0xb4')]&&(_0x45b088['Tags']=[],_0x45b088[_0x487456('0xb4')][_0x487456('0x69')](',')[_0x487456('0xa6')](function(_0x5f1ae5){const _0x146cc6=_0x487456;_0x45b088[_0x146cc6('0x65')][_0x146cc6('0x83')](_0x11f2da[_0x5f1ae5]);})),delete _0x45b088['TagIds'];}catch(_0x2bda5a){_0x2c8967(_0x2bda5a);}_0x1c070f(_0x45b088);});}function updateFaxInteraction(_0x2efe18,_0x3ba48f,_0x4f6102){return new Promise(function(_0x271074,_0x534fcf){const _0x1f176c=a198_0xc830;return getInteractionUsers(_0x2efe18,_0x4f6102)[_0x1f176c('0xb')](function(_0x490f77){return getInteractionTags(_0x490f77,_0x3ba48f);})[_0x1f176c('0xb')](function(_0x30825){_0x271074(_0x30825);})[_0x1f176c('0x91')](function(_0x1337d3){_0x534fcf(_0x1337d3);});});}exports[_0x2d320e('0x46')]=function(_0x406fbd,_0x2eaab3){const _0x5af42b=_0x2d320e,_0x1afd9e={},_0x42d713={},_0x4e004f={'count':0x0,'rows':[]},_0xbd9011=_[_0x5af42b('0xb0')](db[_0x5af42b('0x4')][_0x5af42b('0x7e')],function(_0x3b36e2){const _0x53ca29=_0x5af42b;return{'name':_0x3b36e2[_0x53ca29('0x11')],'type':_0x3b36e2['type'][_0x53ca29('0x50')]};});_0x42d713[_0x5af42b('0x18')]=_['map'](_0xbd9011,'name'),_0x42d713[_0x5af42b('0x6c')]=_[_0x5af42b('0x27')](_0x406fbd[_0x5af42b('0x6c')]),_0x42d713[_0x5af42b('0x8d')]=_[_0x5af42b('0x1e')](_0x42d713[_0x5af42b('0x18')],_0x42d713['query']),_0x1afd9e[_0x5af42b('0x12')]=_[_0x5af42b('0x1e')](_0x42d713['model'],qs[_0x5af42b('0x61')](_0x406fbd[_0x5af42b('0x6c')]['fields'])),_0x1afd9e[_0x5af42b('0x12')]=_0x1afd9e[_0x5af42b('0x12')][_0x5af42b('0x0')]?_0x1afd9e[_0x5af42b('0x12')]:_0x42d713[_0x5af42b('0x18')];typeof _0x406fbd[_0x5af42b('0x6c')][_0x5af42b('0xa2')]===_0x5af42b('0xb8')&&(_0x1afd9e[_0x5af42b('0x77')]=qs[_0x5af42b('0x77')](_0x406fbd['query']['limit']),_0x1afd9e[_0x5af42b('0x80')]=qs[_0x5af42b('0x80')](_0x406fbd[_0x5af42b('0x6c')]['offset']));_0x1afd9e[_0x5af42b('0x82')]=qs[_0x5af42b('0xc4')](_0x406fbd[_0x5af42b('0x6c')]['sort']),_0x1afd9e['where']=qs[_0x5af42b('0x8d')](_[_0x5af42b('0xb6')](_0x406fbd[_0x5af42b('0x6c')],_0x42d713['filters']),_0xbd9011);let _0x51d704=[];const _0x4cea2c=squel[_0x5af42b('0x3b')]()[_0x5af42b('0x2')]('id')[_0x5af42b('0x2')]('name')[_0x5af42b('0x2')](_0x5af42b('0x87'))[_0x5af42b('0xbd')]('tools_tags'),_0x76392b=squel['select']()[_0x5af42b('0x2')](_0x5af42b('0xb1'))['field'](_0x5af42b('0x19'))[_0x5af42b('0x2')](_0x5af42b('0x59'))[_0x5af42b('0xbd')](_0x5af42b('0x16'),'ui')[_0x5af42b('0x7d')]('users','u',_0x5af42b('0x92')),_0x37c597=squel[_0x5af42b('0x3b')]()[_0x5af42b('0xbd')](_0x5af42b('0x71'),'i')['left_join'](_0x5af42b('0x9'),'c',_0x5af42b('0x1a'))['left_join'](_0x5af42b('0xaa'),'o','o.id\x20=\x20i.UserId')[_0x5af42b('0x7d')]('fax_accounts','a',_0x5af42b('0x98'))['left_join']('fax_messages','me',_0x5af42b('0x76'))[_0x5af42b('0x7d')](_0x5af42b('0xad'),'it','it.FaxInteractionId\x20=\x20i.id')[_0x5af42b('0x7d')](_0x5af42b('0x1'),'t',_0x5af42b('0x55')),_0x5d1d34=squel[_0x5af42b('0x94')]();let _0x4a5961=[];const _0x34ae3b=squel[_0x5af42b('0x94')]();let _0x262058;if(_0x406fbd[_0x5af42b('0x6c')][_0x5af42b('0xb7')]){_0x262058=as[_0x5af42b('0xc2')](_0x406fbd[_0x5af42b('0x6c')]['search']);const _0x103443=_0x262058[_0x5af42b('0x1f')];for(let _0x3506a2=0x0;_0x3506a2<_0x262058[_0x5af42b('0x33')][_0x5af42b('0x0')];_0x3506a2++){const _0x3f5349=_0x262058[_0x5af42b('0x33')][_0x3506a2],_0x2ec00e='i';let _0x10e616,_0x38cc94=_[_0x5af42b('0xbf')](_0xbd9011,[_0x5af42b('0xf'),_0x3f5349['field']]);if(!_0x38cc94)switch(_0x3f5349['field']){case _0x5af42b('0x10'):_0x3f5349['value']==0x1?_0x37c597['having']('`'+_0x3f5349[_0x5af42b('0x2')]+_0x5af42b('0x68')):_0x37c597['having']('`'+_0x3f5349[_0x5af42b('0x2')]+_0x5af42b('0x3a'));break;case'Contact':if(_0x3f5349['operator']===_0x5af42b('0x95')){if(_0x3f5349[_0x5af42b('0x6a')][_0x5af42b('0x69')]('\x20')['length']>0x1)_0x5d1d34[_0x103443](_0x5af42b('0x3'),qs[_0x5af42b('0x75')](_0x3f5349[_0x5af42b('0x6a')]),null);else{const _0x34b036='%'+_0x3f5349['value']+'%';_0x5d1d34[_0x103443]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x34b036,_0x34b036,_0x34b036);}}else _0x38cc94=_[_0x5af42b('0xbf')](_0xbd9011,[_0x5af42b('0xf'),'ContactId']),_0x3f5349[_0x5af42b('0x2')]='ContactId',_0x10e616=as['buildExpression'](_0x2ec00e,_0x38cc94[_0x5af42b('0x23')],_0x3f5349),_0x5d1d34[_0x103443](_0x10e616[_0x5af42b('0x6f')],_0x10e616['value'][_0x5af42b('0x58')],_0x10e616['value'][_0x5af42b('0x3f')]);break;case _0x5af42b('0x7f'):{const _0x2f5a0f=_0x3f5349[_0x5af42b('0x6a')][_0x5af42b('0x69')](',')[_0x5af42b('0xb0')](function(_0x9aaa5c){return Number(_0x9aaa5c);});_0x2f5a0f['forEach'](function(_0x38f9ef){const _0x3c8dd9=_0x5af42b;_0x34ae3b['or'](_0x3c8dd9('0xd'),'%,'+_0x38f9ef+',%');}),_0x4a5961=_[_0x5af42b('0xac')](_0x4a5961,_0x2f5a0f);}break;case _0x5af42b('0x9b'):_0x3f5349['operator']===_0x5af42b('0x95')?_0x5d1d34[_0x103443](_0x5af42b('0x56'),'%'+_0x3f5349[_0x5af42b('0x6a')]+'%',null):(_0x38cc94=_[_0x5af42b('0xbf')](_0xbd9011,[_0x5af42b('0xf'),_0x5af42b('0x5')]),_0x3f5349[_0x5af42b('0x2')]=_0x5af42b('0x5'),_0x10e616=as['buildExpression'](_0x2ec00e,_0x38cc94[_0x5af42b('0x23')],_0x3f5349),_0x5d1d34[_0x103443](_0x10e616[_0x5af42b('0x6f')],_0x10e616['value']['start'],_0x10e616[_0x5af42b('0x6a')]['end']));break;case _0x5af42b('0x8e'):_0x10e616=as[_0x5af42b('0x30')]('me',null,_0x3f5349),_0x5d1d34[_0x103443](_0x10e616[_0x5af42b('0x6f')],_0x10e616[_0x5af42b('0x6a')][_0x5af42b('0x58')],_0x10e616[_0x5af42b('0x6a')][_0x5af42b('0x3f')]);break;}else _0x10e616=as[_0x5af42b('0x30')](_0x2ec00e,_0x38cc94['type'],_0x3f5349),_0x5d1d34[_0x103443](_0x10e616[_0x5af42b('0x6f')],_0x10e616[_0x5af42b('0x6a')][_0x5af42b('0x58')],_0x10e616[_0x5af42b('0x6a')][_0x5af42b('0x3f')]);}}else{const _0x540f97=_(_0x406fbd[_0x5af42b('0x6c')])[_0x5af42b('0x27')]()[_0x5af42b('0xb0')](function(_0xe9631){const _0x6ea18d=_0x5af42b;return _['some'](_0xbd9011,[_0x6ea18d('0xf'),_0xe9631])?_0xe9631:undefined;})['compact']()['value']();!_[_0x5af42b('0x37')](_0x540f97)&&_0x540f97[_0x5af42b('0xa6')](function(_0x262abe){const _0x192aa7=_0x5af42b;if(_0x262abe==='FaxAccountId')_0x37c597['where'](_0x192aa7('0x8'),[][_0x192aa7('0x54')](_0x406fbd[_0x192aa7('0x6c')][_0x262abe]));else{if(_0x262abe==='createdAt'){const _0x53fd0c=JSON[_0x192aa7('0x9f')](_0x406fbd[_0x192aa7('0x6c')][_0x262abe])[_0x192aa7('0x74')],_0x222d6e=JSON[_0x192aa7('0x9f')](_0x406fbd[_0x192aa7('0x6c')][_0x262abe])['$lte'];_0x37c597[_0x192aa7('0x4b')](_0x192aa7('0xe'),_0x53fd0c,_0x222d6e);}else _0x406fbd[_0x192aa7('0x6c')][_0x262abe]===_0x192aa7('0x67')?_0x37c597[_0x192aa7('0x4b')]('i.'+_0x262abe+_0x192aa7('0xa')):_0x37c597[_0x192aa7('0x4b')]('i.'+_0x262abe+_0x192aa7('0x51'),_0x406fbd[_0x192aa7('0x6c')][_0x262abe]);}});_0x406fbd[_0x5af42b('0x6c')]['read']&&(_0x406fbd['query'][_0x5af42b('0x4a')]==0x1?_0x37c597[_0x5af42b('0x70')](_0x5af42b('0x9d')):_0x37c597['having'](_0x5af42b('0xa9')));_0x406fbd[_0x5af42b('0x6c')][_0x5af42b('0x86')]&&(_0x4a5961=_[_0x5af42b('0xb3')](_0x406fbd[_0x5af42b('0x6c')][_0x5af42b('0x86')])?_0x406fbd[_0x5af42b('0x6c')][_0x5af42b('0x86')]:new Array(_0x406fbd[_0x5af42b('0x6c')][_0x5af42b('0x86')]),_0x4a5961[_0x5af42b('0xa6')](function(_0xda3f46){const _0x1fb872=_0x5af42b;_0x34ae3b['or'](_0x1fb872('0xd'),'%,'+_0xda3f46+',%');}));if(_0x406fbd[_0x5af42b('0x6c')][_0x5af42b('0x25')]){const _0x5e6b3f=_0x406fbd[_0x5af42b('0x6c')][_0x5af42b('0x25')][_0x5af42b('0x36')]('\x5c','\x5c\x5c')['replace']('\x27\x27',_0x5af42b('0xa7'));qs['isNumeric'](_0x5e6b3f)&&_0x5d1d34['or'](_0x5af42b('0xae'),_0x5e6b3f+'%')['or'](_0x5af42b('0x5e'),_0x5e6b3f+'%'),_0x5d1d34['or'](_0x5af42b('0x60'),_0x5e6b3f+'%');}}_0x37c597['where'](_0x5d1d34),_0x37c597[_0x5af42b('0x78')](_0x5af42b('0x5d'));let _0x53ba4a={'type':db[_0x5af42b('0x1d')]['QueryTypes'][_0x5af42b('0x6e')],'raw':!![]};const _0x163330=_0x37c597['clone']();_0x163330[_0x5af42b('0x2')](_0x5af42b('0x5d')),_0x163330[_0x5af42b('0x2')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x5af42b('0x10')),_0x1afd9e[_0x5af42b('0x82')]&&_0x1afd9e[_0x5af42b('0x82')][_0x5af42b('0xa6')](function(_0xe41ac){const _0xef18c2=_0x5af42b;_0x37c597[_0xef18c2('0x82')]('i.'+_0xe41ac[0x0],_0xe41ac[0x1]==='DESC'?![]:!![]);}),!_['isEmpty'](_0x4a5961)&&(_0x37c597[_0x5af42b('0x70')](_0x34ae3b),_0x163330['where'](_0x5af42b('0x35'),_0x4a5961)),Promise[_0x5af42b('0x2d')]()[_0x5af42b('0xb')](function(){const _0x323be2=_0x5af42b;if(!_0x262058){if(_0x406fbd['query'][_0x323be2('0x89')]||_0x406fbd[_0x323be2('0x6c')][_0x323be2('0x29')])return;_0x163330[_0x323be2('0x4b')](_0x323be2('0x5a')),_0x37c597[_0x323be2('0x4b')]('i.FaxAccountId\x20IS\x20NOT\x20NULL');return;}return _0x406fbd[_0x323be2('0xa3')][_0x323be2('0x7b')]({'attributes':['id'],'raw':!![]})[_0x323be2('0xb')](function(_0x28f651){const _0x7a9e39=_0x323be2;_[_0x7a9e39('0x37')](_0x28f651)?(_0x163330[_0x7a9e39('0x4b')](_0x7a9e39('0x9e')),_0x37c597[_0x7a9e39('0x4b')](_0x7a9e39('0x9e'))):(_0x163330[_0x7a9e39('0x4b')]('i.FaxAccountId\x20IN\x20?',_[_0x7a9e39('0xb0')](_0x28f651,'id')),_0x37c597['where'](_0x7a9e39('0x8'),_[_0x7a9e39('0xb0')](_0x28f651,'id')));});})[_0x5af42b('0xb')](function(){const _0x2600ea=_0x5af42b;db[_0x2600ea('0x7c')][_0x2600ea('0x6c')](_0x163330[_0x2600ea('0xa5')](),_0x53ba4a)[_0x2600ea('0xb')](function(_0x3bc189){const _0x28b87c=_0x2600ea;_0x4e004f[_0x28b87c('0x81')]=_0x3bc189[_0x28b87c('0x0')];if(_0x4e004f[_0x28b87c('0x81')]===0x0)return[];return db[_0x28b87c('0x7c')]['query'](_0x4cea2c[_0x28b87c('0xa5')](),_0x53ba4a)[_0x28b87c('0xb')](function(_0x48946b){const _0x61c2fa=_0x28b87c;_0x51d704=_[_0x61c2fa('0x64')](_0x48946b,'id'),_0x53ba4a=_[_0x61c2fa('0xa4')](_0x53ba4a,{'model':db[_0x61c2fa('0x4')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x406fbd[_0x61c2fa('0x6c')][_0x61c2fa('0x61')]?_0x1afd9e['attributes'][_0x61c2fa('0xa6')](function(_0x35400a){const _0x3af480=_0x61c2fa;_0x37c597[_0x3af480('0x2')]('i.'+_0x35400a);}):(_0x37c597[_0x61c2fa('0x2')](_0x61c2fa('0x1b'),_0x61c2fa('0x10')),_0x37c597[_0x61c2fa('0x2')]('a.key','Account.key'),_0x37c597[_0x61c2fa('0x2')](_0x61c2fa('0xb2'),_0x61c2fa('0x3d')),_0x37c597['field'](_0x61c2fa('0x85')),_0x37c597[_0x61c2fa('0x2')](_0x61c2fa('0x73'),_0x61c2fa('0x32')),_0x37c597[_0x61c2fa('0x2')]('c.lastName',_0x61c2fa('0x39')),_0x37c597['field'](_0x61c2fa('0xc1'),'Contact.email'),_0x37c597[_0x61c2fa('0x2')](_0x61c2fa('0x28'),_0x61c2fa('0x6b')),_0x37c597[_0x61c2fa('0x2')](_0x61c2fa('0x21'),_0x61c2fa('0x41')),_0x37c597[_0x61c2fa('0x2')](_0x61c2fa('0x6'),_0x61c2fa('0xaf')),_0x37c597[_0x61c2fa('0x2')](_0x61c2fa('0x42'),_0x61c2fa('0x4e')),_0x37c597[_0x61c2fa('0x2')]('o.internal',_0x61c2fa('0xa0')),_0x37c597[_0x61c2fa('0x2')](_0x61c2fa('0x26'),_0x61c2fa('0xb4')));if(_0x1afd9e['limit'])_0x37c597[_0x61c2fa('0x77')](_0x1afd9e[_0x61c2fa('0x77')]);if(_0x1afd9e[_0x61c2fa('0x80')])_0x37c597['offset'](_0x1afd9e[_0x61c2fa('0x80')]);return db[_0x61c2fa('0x7c')][_0x61c2fa('0x6c')](_0x37c597[_0x61c2fa('0xa5')](),_0x53ba4a);})['then'](function(_0x1cde52){const _0x4269ff=_0x28b87c;return _0x76392b[_0x4269ff('0x4b')]('ui.FaxInteractionId\x20IN\x20?',_[_0x4269ff('0xb0')](_0x1cde52,'id')),db[_0x4269ff('0x7c')][_0x4269ff('0x6c')](_0x76392b[_0x4269ff('0xa5')](),_0x53ba4a)['then'](function(_0x5af75c){const _0x28d4c8=_0x4269ff,_0x593b2f=_[_0x28d4c8('0x1c')](_0x5af75c,_0x28d4c8('0xba')),_0x2ad616=[];return _0x1cde52['forEach'](function(_0x593518){const _0x530dfd=_0x28d4c8;_0x2ad616[_0x530dfd('0x83')](updateFaxInteraction(_0x593518,_0x51d704,_0x593b2f));}),Promise[_0x28d4c8('0x44')](_0x2ad616);});});})[_0x2600ea('0xb')](function(_0x19317c){const _0x364427=_0x2600ea;return _0x4e004f[_0x364427('0xbe')]=_0x19317c,_0x4e004f;})[_0x2600ea('0xb')](respondWithFilteredResult(_0x2eaab3,_0x1afd9e));})[_0x5af42b('0x91')](handleError(_0x2eaab3,null));},exports[_0x2d320e('0x47')]=function(_0x40115f,_0x26d547){const _0x246416=_0x2d320e;let _0x38710f={'raw':![],'where':{'id':_0x40115f['params']['id']}};const _0x375d0f={};return _0x375d0f[_0x246416('0x18')]=_[_0x246416('0x27')](db['FaxInteraction'][_0x246416('0x7e')]),_0x375d0f[_0x246416('0x6c')]=_[_0x246416('0x27')](_0x40115f[_0x246416('0x6c')]),_0x375d0f['filters']=_[_0x246416('0x1e')](_0x375d0f[_0x246416('0x18')],_0x375d0f[_0x246416('0x6c')]),_0x38710f[_0x246416('0x12')]=_[_0x246416('0x1e')](_0x375d0f[_0x246416('0x18')],qs['fields'](_0x40115f[_0x246416('0x6c')][_0x246416('0x61')])),_0x38710f[_0x246416('0x12')]=_0x38710f[_0x246416('0x12')][_0x246416('0x0')]?_0x38710f[_0x246416('0x12')]:_0x375d0f[_0x246416('0x18')],_0x40115f[_0x246416('0x6c')][_0x246416('0x62')]&&(_0x38710f[_0x246416('0xb9')]=[{'all':!![]}]),_0x38710f=_[_0x246416('0xa4')]({},_0x38710f,_0x40115f[_0x246416('0x66')]),db[_0x246416('0x4')][_0x246416('0x72')](_0x38710f)[_0x246416('0xb')](handleEntityNotFound(_0x26d547,null))['then'](respondWithResult(_0x26d547,null))[_0x246416('0x91')](handleError(_0x26d547,null));},exports[_0x2d320e('0x93')]=function(_0x119eef,_0x23606c){const _0x3019ea=_0x2d320e;return db[_0x3019ea('0x4')][_0x3019ea('0x93')](_0x119eef[_0x3019ea('0x8e')],{})[_0x3019ea('0xb')](respondWithResult(_0x23606c,0xc9))[_0x3019ea('0x91')](handleError(_0x23606c,null));},exports[_0x2d320e('0x8b')]=function(_0x2216ae,_0x4a3c63){const _0x223a5e=_0x2d320e;return _0x2216ae[_0x223a5e('0x8e')]['id']&&delete _0x2216ae['body']['id'],db[_0x223a5e('0x4')][_0x223a5e('0x72')]({'where':{'id':_0x2216ae[_0x223a5e('0x8a')]['id']}})[_0x223a5e('0xb')](handleEntityNotFound(_0x4a3c63,null))['then'](saveUpdates(_0x2216ae['body'],null))[_0x223a5e('0xb')](respondWithResult(_0x4a3c63,null))['catch'](handleError(_0x4a3c63,null));},exports[_0x2d320e('0x14')]=function(_0x4e821b,_0x1aaf5a){const _0x57b3b0=_0x2d320e;return db[_0x57b3b0('0x4')][_0x57b3b0('0x72')]({'where':{'id':_0x4e821b['params']['id']}})[_0x57b3b0('0xb')](handleEntityNotFound(_0x1aaf5a,null))[_0x57b3b0('0xb')](removeEntity(_0x1aaf5a,null))[_0x57b3b0('0x91')](handleError(_0x1aaf5a,null));},exports['describe']=function(_0x466639,_0x21b36e){const _0x40a3f3=_0x2d320e;return db[_0x40a3f3('0x4')][_0x40a3f3('0x7')]()[_0x40a3f3('0xb')](respondWithResult(_0x21b36e,null))[_0x40a3f3('0x91')](handleError(_0x21b36e,null));},exports[_0x2d320e('0xb5')]=function(_0x3ac48c,_0x2640bd){const _0x50ea70=_0x2d320e;return db[_0x50ea70('0x4c')][_0x50ea70('0x72')]({'where':{'id':_0x3ac48c[_0x50ea70('0x8a')]['id']}})['then'](function(_0x4097e2){const _0x4db23f=_0x50ea70;if(_0x4097e2)return _0x4097e2[_0x4db23f('0xb5')](_0x3ac48c[_0x4db23f('0x8e')][_0x4db23f('0x48')],{'through':_[_0x4db23f('0x52')](_0x3ac48c[_0x4db23f('0x8e')],['ids','id'])});})[_0x50ea70('0xb')](respondWithResult(_0x2640bd,null))[_0x50ea70('0x91')](handleError(_0x2640bd,null));},exports[_0x2d320e('0x57')]=function(_0x31afa6,_0x44836e){const _0x591e96=_0x2d320e;let _0xa3f203={'raw':![],'where':{}};const _0x7a87b0={},_0x2907fb={'count':0x0,'rows':[]};return db[_0x591e96('0x4')][_0x591e96('0x72')]({'where':{'id':_0x31afa6[_0x591e96('0x8a')]['id']}})[_0x591e96('0xb')](handleEntityNotFound(_0x44836e,null))[_0x591e96('0xb')](function(_0x7bd026){const _0x1a5ca3=_0x591e96;if(_0x7bd026){_0x7a87b0[_0x1a5ca3('0x18')]=_[_0x1a5ca3('0x27')](db['FaxMessage'][_0x1a5ca3('0x7e')]),_0x7a87b0['query']=_[_0x1a5ca3('0x27')](_0x31afa6[_0x1a5ca3('0x6c')]),_0x7a87b0[_0x1a5ca3('0x8d')]=_[_0x1a5ca3('0x1e')](_0x7a87b0[_0x1a5ca3('0x18')],_0x7a87b0[_0x1a5ca3('0x6c')]),_0xa3f203['attributes']=_[_0x1a5ca3('0x1e')](_0x7a87b0['model'],qs[_0x1a5ca3('0x61')](_0x31afa6[_0x1a5ca3('0x6c')]['fields'])),_0xa3f203[_0x1a5ca3('0x12')]=_0xa3f203[_0x1a5ca3('0x12')][_0x1a5ca3('0x0')]?_0xa3f203[_0x1a5ca3('0x12')]:_0x7a87b0[_0x1a5ca3('0x18')];typeof _0x31afa6[_0x1a5ca3('0x6c')]['nolimit']===_0x1a5ca3('0xb8')&&(_0xa3f203[_0x1a5ca3('0x77')]=qs[_0x1a5ca3('0x77')](_0x31afa6[_0x1a5ca3('0x6c')][_0x1a5ca3('0x77')]),_0xa3f203[_0x1a5ca3('0x80')]=qs[_0x1a5ca3('0x80')](_0x31afa6['query']['offset']));_0xa3f203['order']=qs[_0x1a5ca3('0xc4')](_0x31afa6[_0x1a5ca3('0x6c')][_0x1a5ca3('0xc4')]),_0xa3f203[_0x1a5ca3('0x4b')]=qs[_0x1a5ca3('0x8d')](_[_0x1a5ca3('0xb6')](_0x31afa6[_0x1a5ca3('0x6c')],_0x7a87b0['filters'])),_0xa3f203[_0x1a5ca3('0x4b')]['FaxInteractionId']=_0x7bd026['id'];_0x31afa6[_0x1a5ca3('0x6c')][_0x1a5ca3('0x25')]&&(_0xa3f203[_0x1a5ca3('0x4b')]=_[_0x1a5ca3('0xa4')](_0xa3f203[_0x1a5ca3('0x4b')],{[Op['or']]:_['map'](_0xa3f203[_0x1a5ca3('0x12')],function(_0x38e810){const _0x49c916=_0x1a5ca3,_0x40ce88={};return _0x40ce88[_0x38e810]={[Op[_0x49c916('0x3c')]]:'%'+_0x31afa6['query'][_0x49c916('0x25')]+'%'},_0x40ce88;})}));if(_0x31afa6['query']['$gte']){const _0x1528aa=_0x31afa6[_0x1a5ca3('0x6c')][_0x1a5ca3('0x74')]['split'](','),_0x5991a8={};_0x5991a8[_0x1528aa[0x0]]={[Op[_0x1a5ca3('0x8c')]]:moment(_0x1528aa[0x1])[_0x1a5ca3('0x90')]('YYYY-MM-DD\x20HH:mm:ss')},_0xa3f203[_0x1a5ca3('0x4b')]=_['merge'](_0xa3f203['where'],_0x5991a8);}return _0xa3f203=_[_0x1a5ca3('0xa4')]({},_0xa3f203,_0x31afa6[_0x1a5ca3('0x66')]),db[_0x1a5ca3('0x4c')][_0x1a5ca3('0x81')]({'where':_0xa3f203[_0x1a5ca3('0x4b')]})[_0x1a5ca3('0xb')](function(_0x18043d){const _0x3efd11=_0x1a5ca3;return _0x2907fb[_0x3efd11('0x81')]=_0x18043d,_0x31afa6['query'][_0x3efd11('0x62')]&&(_0xa3f203[_0x3efd11('0xb9')]=[{'all':!![]}]),db[_0x3efd11('0x4c')]['findAll'](_0xa3f203);})[_0x1a5ca3('0xb')](function(_0x30bafe){const _0x103c97=_0x1a5ca3;return _0x2907fb[_0x103c97('0xbe')]=_0x30bafe,_0x2907fb;});}})[_0x591e96('0xb')](respondWithFilteredResult(_0x44836e,_0xa3f203))[_0x591e96('0x91')](handleError(_0x44836e,null));},exports[_0x2d320e('0x79')]=function(_0x5d54ff,_0x4b8a8c){const _0x53b636=_0x2d320e;return db['FaxInteraction'][_0x53b636('0x72')]({'where':{'id':_0x5d54ff['params']['id']}})[_0x53b636('0xb')](function(_0x55e37f){const _0x40add2=_0x53b636;if(_0x55e37f)return _0x55e37f[_0x40add2('0xc0')](_0x5d54ff[_0x40add2('0x8e')][_0x40add2('0x48')],{'through':_[_0x40add2('0x52')](_0x5d54ff[_0x40add2('0x8e')],[_0x40add2('0x48'),'id'])})['then'](function(){const _0x3eb78a=_0x40add2;return db[_0x3eb78a('0x7f')][_0x3eb78a('0x6d')]({'attributes':['id','name','color'],'where':{'id':_0x5d54ff[_0x3eb78a('0x8e')][_0x3eb78a('0x48')]}});})[_0x40add2('0xb')](function(_0x1c7b1d){const _0x20f713=_0x40add2;return socket['emit'](_0x20f713('0x5f'),{'id':Number(_0x5d54ff[_0x20f713('0x8a')]['id']),'tags':_0x1c7b1d||[]}),{'id':Number(_0x5d54ff[_0x20f713('0x8a')]['id']),'tags':_0x1c7b1d||[]};});})[_0x53b636('0xb')](respondWithResult(_0x4b8a8c,null))[_0x53b636('0x91')](handleError(_0x4b8a8c,null));},exports[_0x2d320e('0x38')]=function(_0xb0f2f8,_0x551a93){const _0x9475ba=_0x2d320e;return db[_0x9475ba('0x4')][_0x9475ba('0x72')]({'where':{'id':_0xb0f2f8[_0x9475ba('0x8a')]['id']}})[_0x9475ba('0xb')](handleEntityNotFound(_0x551a93,null))['then'](function(_0x11800c){if(_0x11800c)return _0x11800c['removeTags'](_0xb0f2f8['query']['ids']);})[_0x9475ba('0xb')](respondWithStatusCode(_0x551a93,null))[_0x9475ba('0x91')](handleError(_0x551a93,null));},exports[_0x2d320e('0x7a')]=function(_0x130720,_0x953a3e){const _0x4bca96=_0x2d320e,_0x10b389=moment()['unix']()[_0x4bca96('0xa5')](),_0x4c2405=path[_0x4bca96('0x2a')](config[_0x4bca96('0x2e')],'files','tmp'),_0x3f874=path['join'](config[_0x4bca96('0x2e')],_0x4bca96('0x99'),_0x4bca96('0xbc'),_0x4bca96('0x84')),_0x1de3e3=path['join'](_0x4c2405,_0x10b389),_0x3cbd47=util[_0x4bca96('0x90')](_0x4bca96('0x22'),_0x130720[_0x4bca96('0x8a')]['id'],_0x10b389),_0x252926=path[_0x4bca96('0x2a')](_0x4c2405,_0x3cbd47),_0x54b563=[];_0x54b563[_0x4bca96('0x83')]({'model':db['Attachment'],'as':_0x4bca96('0x9c'),'raw':!![]});const _0xd8abd1=[{'model':db[_0x4bca96('0x4c')],'as':_0x4bca96('0x88'),'attributes':['id','body',_0x4bca96('0x43')],'include':_0x54b563}];return db[_0x4bca96('0x4')]['findOne']({'where':{'id':_0x130720[_0x4bca96('0x8a')]['id']},'include':_0xd8abd1})[_0x4bca96('0xb')](handleEntityNotFound(_0x953a3e,null))[_0x4bca96('0xb')](function(_0x2b5b57){const _0x2182c8=_0x4bca96;if(_0x2b5b57&&_0x2b5b57[_0x2182c8('0x88')]){const _0x3ec545=_0x2b5b57[_0x2182c8('0x24')]({'plain':!![]});fs[_0x2182c8('0xab')](_0x1de3e3);for(let _0x37f599=0x0;_0x37f599<_0x3ec545['Messages'][_0x2182c8('0x0')];_0x37f599++){const _0x1a4ca4=_0x3ec545[_0x2182c8('0x88')][_0x37f599]['Attachment'];if(_0x1a4ca4){const _0x4840cf=path[_0x2182c8('0x2a')](_0x3f874,_0x1a4ca4[_0x2182c8('0x3e')]);fs[_0x2182c8('0x40')](_0x4840cf)&&fs['createReadStream'](_0x4840cf)['pipe'](fs[_0x2182c8('0x4d')](path['join'](_0x1de3e3,_0x1a4ca4[_0x2182c8('0x3e')])));}}return Promise[_0x2182c8('0x2d')]()[_0x2182c8('0xb')](function(){const _0x179bef=_0x2182c8;return new Promise(function(_0x14cefc,_0x487eb4){zipdir(_0x1de3e3,{'saveTo':_0x252926},function(_0x2f096f,_0x382daf){if(_0x2f096f)return _0x487eb4(_0x2f096f);return _0x14cefc(_0x382daf);});})[_0x179bef('0xb')](function(){return new Promise(function(_0x5ab6fc,_0x342018){rimraf(_0x1de3e3,function(_0x1404d2){if(_0x1404d2)_0x342018(_0x1404d2);return _0x5ab6fc();});});})[_0x179bef('0xb')](function(){const _0x512830=_0x179bef;return _0x953a3e[_0x512830('0x7a')](_0x252926,_0x3cbd47,function(_0x57100e){const _0x3060aa=_0x512830;_0x57100e?console[_0x3060aa('0x5c')]('err',_0x57100e):fs[_0x3060aa('0xbb')](_0x252926);});});});}else return _0x953a3e[_0x2182c8('0x17')](0xc8);})[_0x4bca96('0x91')](handleError(_0x953a3e,null));}; \ No newline at end of file +const a198_0x2778=['conditions','Users','\x20=\x20?','limit','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','json','\x27\x27\x27\x27','user_has_fax_interactions','u.fullname','getMessages','Contact.email','having','Tags','parse','u.id','keyBy','i.id\x20LIKE\x20?','include','cm_contacts','merge','options','journey','read','Attachment','zip-dir','Owner.internal','sequelize','addTags','i.FaxAccountId\x20IN\x20?','createReadStream','`unreadMessages`\x20=\x200','omit','t.id\x20IN\x20?','findOne','tag','params','status','push','../../components/parsers/advancedSearch','length','tmp','select','FaxAccountId','like','files','`\x20=\x200','attributes','replace','update','path','it.FaxInteractionId\x20=\x20i.id','Contact.fax','text','rawAttributes','includeAll','filter','util','value','tools_tags','\x20IS\x20NULL','intersection','all','type','resolve','UserId','query','../../rediscache','gte','../../mysqldb','unreadMessages','existsSync','sendStatus','isNumeric','Account.mandatoryDisposition','c.lastName','count','nolimit','FaxInteractionId','sqlOperator','create','o.fullname','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','sort','destroy','c.fax','key','download','describe','register','ui.FaxInteractionId\x20IN\x20?','fax_messages','then','keys','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','a.mandatoryDisposition','clone','removeTags','faxInteractionTags:save','Messages','field','index','group','filters','createWriteStream','pick','getFaxAccounts','undefined','Tag','getFullTextValue','fields','body','expr','search','t.id\x20=\x20it.TagId','Contact.mobile','isEmpty','ui.FaxInteractionId','forEach','format','FaxMessage','map','QueryTypes','fax_accounts','model','left_join','isArray','setTags','i.FaxAccountId\x20IS\x20NOT\x20NULL','groupBy','c.phone','SELECT','set','c.mobile','from','end','operator','find','error','join','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','server','union','null','start','emit','unix','Account.key','order','TagIds','offset','get','split','ids','FaxInteraction','attachments','$substring','catch','Content-Range','../../config/environment','a.key','ContactId','show','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','a.id\x20=\x20i.FaxAccountId','../../components/parsers/qs','root','findAll','Sequelize','color','$gte','moment','where','c.email','parseSearch','err','me.FaxInteractionId\x20=\x20i.id','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','buildExpression','name','unlinkSync','users','toString','createdAt','squel','`\x20>\x200','i.FaxAccountId\x20IS\x20NULL','c.firstName','addMessage','i.id','Contact.firstName','rows','basename'];(function(_0x222ddb,_0x2778f0){const _0x314b8f=function(_0x2c7e1e){while(--_0x2c7e1e){_0x222ddb['push'](_0x222ddb['shift']());}};_0x314b8f(++_0x2778f0);}(a198_0x2778,0xb0));const a198_0x314b=function(_0x222ddb,_0x2778f0){_0x222ddb=_0x222ddb-0x0;let _0x314b8f=a198_0x2778[_0x222ddb];return _0x314b8f;};const _0x5bf681=a198_0x314b;'use strict';const rimraf=require('rimraf'),zipdir=require(_0x5bf681('0x28')),moment=require(_0x5bf681('0xba')),util=require(_0x5bf681('0x48')),path=require(_0x5bf681('0x41')),fs=require('fs'),_=require('lodash'),squel=require(_0x5bf681('0x7')),{getSocket}=require(_0x5bf681('0x52')),socket=getSocket(),qs=require(_0x5bf681('0xb4')),as=require(_0x5bf681('0x36')),logger=require('../../config/logger')('api'),config=require(_0x5bf681('0xae')),db=require(_0x5bf681('0x54'))['db'],{Op}=require(_0x5bf681('0x2a'));require('./faxInteraction.socket')[_0x5bf681('0x68')](socket);function respondWithStatusCode(_0x2c7e1e,_0x46036e){return _0x46036e=_0x46036e||0xcc,function(_0x170917){const _0x4c882e=a198_0x314b;if(_0x170917)return _0x2c7e1e[_0x4c882e('0x57')](_0x46036e);return _0x2c7e1e[_0x4c882e('0x34')](_0x46036e)[_0x4c882e('0x96')]();};}function respondWithResult(_0x159a13,_0x49e676){return _0x49e676=_0x49e676||0xc8,function(_0x3c04de){const _0x437631=a198_0x314b;if(_0x3c04de)return _0x159a13[_0x437631('0x34')](_0x49e676)[_0x437631('0x15')](_0x3c04de);};}function respondWithFilteredResult(_0x375c75,_0x40a7e4){return function(_0x44d9f){const _0x49ae4a=a198_0x314b;if(_0x44d9f){const _0x572e67=_0x44d9f['count'],_0xcc03e3=_0x40a7e4[_0x49ae4a('0xa5')];let _0x283aa5=_0x40a7e4[_0x49ae4a('0xa5')]+_0x40a7e4[_0x49ae4a('0x13')],_0x39fbc2;return _0x283aa5>=_0x572e67?(_0x283aa5=_0x572e67,_0x39fbc2=0xc8):_0x39fbc2=0xce,_0x375c75[_0x49ae4a('0x34')](_0x39fbc2),_0x375c75[_0x49ae4a('0x93')](_0x49ae4a('0xad'),_0xcc03e3+'-'+_0x283aa5+'/'+_0x572e67)['json'](_0x44d9f);}return null;};}function saveUpdates(_0x5509c0){return function(_0x58bd7f){const _0x564f9=a198_0x314b;if(_0x58bd7f)return _0x58bd7f[_0x564f9('0x40')](_0x5509c0)[_0x564f9('0x6b')](function(_0x54decd){return _0x54decd;});return null;};}function removeEntity(_0x46020b){return function(_0x5942bc){const _0x4b1b30=a198_0x314b;if(_0x5942bc)return _0x5942bc[_0x4b1b30('0x63')]()[_0x4b1b30('0x6b')](function(){const _0x2561d3=_0x4b1b30;_0x46020b['status'](0xcc)[_0x2561d3('0x96')]();});};}function handleEntityNotFound(_0x514a5e){return function(_0x35de6e){const _0x491463=a198_0x314b;return!_0x35de6e&&_0x514a5e[_0x491463('0x57')](0x194),_0x35de6e;};}function handleError(_0x45a310,_0x13f4ae){return _0x13f4ae=_0x13f4ae||0x1f4,function(_0x3e20ba){const _0x1ae442=a198_0x314b;logger[_0x1ae442('0x99')](_0x3e20ba['stack']),_0x3e20ba['name']&&delete _0x3e20ba['name'],_0x45a310['status'](_0x13f4ae)['send'](_0x3e20ba);};}function getInteractionUsers(_0x5cdb52,_0x541a2c){return new Promise(function(_0x3e8eb5,_0x22aea3){const _0x5ef34b=a198_0x314b;try{_0x541a2c[_0x5cdb52['id']]&&(_0x5cdb52[_0x5ef34b('0x11')]=_[_0x5ef34b('0x88')](_0x541a2c[_0x5cdb52['id']],function(_0x1d02a9){return{'id':_0x1d02a9['id'],'fullname':_0x1d02a9['fullname']};}));}catch(_0x14c851){_0x22aea3(_0x14c851);}_0x3e8eb5(_0x5cdb52);});}function getInteractionTags(_0x4c5de0,_0x142708){return new Promise(function(_0x11dd6e,_0x54b36e){const _0x49cb30=a198_0x314b;try{_0x4c5de0[_0x49cb30('0xa4')]&&(_0x4c5de0[_0x49cb30('0x1c')]=[],_0x4c5de0['TagIds'][_0x49cb30('0xa7')](',')[_0x49cb30('0x85')](function(_0x22b017){const _0x3a4294=_0x49cb30;_0x4c5de0[_0x3a4294('0x1c')][_0x3a4294('0x35')](_0x142708[_0x22b017]);})),delete _0x4c5de0[_0x49cb30('0xa4')];}catch(_0x1442ca){_0x54b36e(_0x1442ca);}_0x11dd6e(_0x4c5de0);});}function updateFaxInteraction(_0x39b074,_0x33e21e,_0x113160){return new Promise(function(_0x267db2,_0x1ebeec){const _0x30c0d4=a198_0x314b;return getInteractionUsers(_0x39b074,_0x113160)[_0x30c0d4('0x6b')](function(_0x32859d){return getInteractionTags(_0x32859d,_0x33e21e);})[_0x30c0d4('0x6b')](function(_0xa7dc9d){_0x267db2(_0xa7dc9d);})[_0x30c0d4('0xac')](function(_0x488183){_0x1ebeec(_0x488183);});});}exports[_0x5bf681('0x74')]=function(_0x4df31a,_0x2d768e){const _0xf96876=_0x5bf681,_0x1d2a90={},_0x1fbe28={},_0x3fc78b={'count':0x0,'rows':[]},_0x48f7e3=_[_0xf96876('0x88')](db[_0xf96876('0xa9')][_0xf96876('0x45')],function(_0x3d1089){const _0x36881d=_0xf96876;return{'name':_0x3d1089['fieldName'],'type':_0x3d1089[_0x36881d('0x4e')][_0x36881d('0x65')]};});_0x1fbe28['model']=_[_0xf96876('0x88')](_0x48f7e3,'name'),_0x1fbe28[_0xf96876('0x51')]=_[_0xf96876('0x6c')](_0x4df31a['query']),_0x1fbe28[_0xf96876('0x76')]=_['intersection'](_0x1fbe28[_0xf96876('0x8b')],_0x1fbe28[_0xf96876('0x51')]),_0x1d2a90[_0xf96876('0x3e')]=_['intersection'](_0x1fbe28[_0xf96876('0x8b')],qs[_0xf96876('0x7d')](_0x4df31a['query']['fields'])),_0x1d2a90[_0xf96876('0x3e')]=_0x1d2a90[_0xf96876('0x3e')][_0xf96876('0x37')]?_0x1d2a90['attributes']:_0x1fbe28[_0xf96876('0x8b')];typeof _0x4df31a[_0xf96876('0x51')][_0xf96876('0x5c')]===_0xf96876('0x7a')&&(_0x1d2a90[_0xf96876('0x13')]=qs[_0xf96876('0x13')](_0x4df31a[_0xf96876('0x51')]['limit']),_0x1d2a90[_0xf96876('0xa5')]=qs[_0xf96876('0xa5')](_0x4df31a[_0xf96876('0x51')][_0xf96876('0xa5')]));_0x1d2a90[_0xf96876('0xa3')]=qs['sort'](_0x4df31a['query'][_0xf96876('0x62')]),_0x1d2a90[_0xf96876('0xbb')]=qs[_0xf96876('0x76')](_['pick'](_0x4df31a['query'],_0x1fbe28['filters']),_0x48f7e3);let _0x47f8d7=[];const _0x4af781=squel[_0xf96876('0x39')]()[_0xf96876('0x73')]('id')['field'](_0xf96876('0x2'))[_0xf96876('0x73')](_0xf96876('0xb8'))[_0xf96876('0x95')]('tools_tags'),_0x5d2280=squel[_0xf96876('0x39')]()[_0xf96876('0x73')](_0xf96876('0x1e'))['field'](_0xf96876('0x18'))['field'](_0xf96876('0x84'))[_0xf96876('0x95')](_0xf96876('0x17'),'ui')['left_join'](_0xf96876('0x4'),'u','u.id\x20=\x20ui.UserId'),_0x435e55=squel[_0xf96876('0x39')]()[_0xf96876('0x95')]('fax_interactions','i')[_0xf96876('0x8c')](_0xf96876('0x22'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')[_0xf96876('0x8c')]('users','o','o.id\x20=\x20i.UserId')[_0xf96876('0x8c')](_0xf96876('0x8a'),'a',_0xf96876('0xb3'))[_0xf96876('0x8c')](_0xf96876('0x6a'),'me',_0xf96876('0xbf'))['left_join']('fax_interaction_has_tags','it',_0xf96876('0x42'))[_0xf96876('0x8c')](_0xf96876('0x4a'),'t',_0xf96876('0x81')),_0x33d995=squel[_0xf96876('0x7f')]();let _0x46fa91=[];const _0x3fedca=squel[_0xf96876('0x7f')]();let _0x5ad220;if(_0x4df31a[_0xf96876('0x51')][_0xf96876('0x80')]){_0x5ad220=as[_0xf96876('0xbd')](_0x4df31a['query'][_0xf96876('0x80')]);const _0x1eb171=_0x5ad220[_0xf96876('0x5e')];for(let _0x1abf01=0x0;_0x1abf01<_0x5ad220[_0xf96876('0x10')][_0xf96876('0x37')];_0x1abf01++){const _0x34ec46=_0x5ad220['conditions'][_0x1abf01],_0x3a51c9='i';let _0x2aeee1,_0x20a150=_[_0xf96876('0x98')](_0x48f7e3,['name',_0x34ec46[_0xf96876('0x73')]]);if(!_0x20a150)switch(_0x34ec46[_0xf96876('0x73')]){case _0xf96876('0x55'):_0x34ec46[_0xf96876('0x49')]==0x1?_0x435e55['having']('`'+_0x34ec46[_0xf96876('0x73')]+_0xf96876('0x3d')):_0x435e55['having']('`'+_0x34ec46[_0xf96876('0x73')]+_0xf96876('0x8'));break;case'Contact':if(_0x34ec46[_0xf96876('0x97')]==='$substring'){if(_0x34ec46[_0xf96876('0x49')][_0xf96876('0xa7')]('\x20')[_0xf96876('0x37')]>0x1)_0x33d995[_0x1eb171](_0xf96876('0x61'),qs[_0xf96876('0x7c')](_0x34ec46['value']),null);else{const _0x459868='%'+_0x34ec46[_0xf96876('0x49')]+'%';_0x33d995[_0x1eb171](_0xf96876('0xb2'),_0x459868,_0x459868,_0x459868);}}else _0x20a150=_[_0xf96876('0x98')](_0x48f7e3,[_0xf96876('0x2'),_0xf96876('0xb0')]),_0x34ec46['field']=_0xf96876('0xb0'),_0x2aeee1=as[_0xf96876('0x1')](_0x3a51c9,_0x20a150[_0xf96876('0x4e')],_0x34ec46),_0x33d995[_0x1eb171](_0x2aeee1['text'],_0x2aeee1[_0xf96876('0x49')][_0xf96876('0x9f')],_0x2aeee1['value'][_0xf96876('0x96')]);break;case _0xf96876('0x7b'):{const _0x2eb1c8=_0x34ec46[_0xf96876('0x49')]['split'](',')[_0xf96876('0x88')](function(_0x570fd1){return Number(_0x570fd1);});_0x2eb1c8['forEach'](function(_0x2d3a79){const _0x435fcd=_0xf96876;_0x3fedca['or'](_0x435fcd('0x0'),'%,'+_0x2d3a79+',%');}),_0x46fa91=_[_0xf96876('0x9d')](_0x46fa91,_0x2eb1c8);}break;case'User':_0x34ec46[_0xf96876('0x97')]===_0xf96876('0xab')?_0x33d995[_0x1eb171](_0xf96876('0x9b'),'%'+_0x34ec46[_0xf96876('0x49')]+'%',null):(_0x20a150=_[_0xf96876('0x98')](_0x48f7e3,[_0xf96876('0x2'),_0xf96876('0x50')]),_0x34ec46[_0xf96876('0x73')]=_0xf96876('0x50'),_0x2aeee1=as[_0xf96876('0x1')](_0x3a51c9,_0x20a150[_0xf96876('0x4e')],_0x34ec46),_0x33d995[_0x1eb171](_0x2aeee1[_0xf96876('0x44')],_0x2aeee1[_0xf96876('0x49')]['start'],_0x2aeee1[_0xf96876('0x49')][_0xf96876('0x96')]));break;case _0xf96876('0x7e'):_0x2aeee1=as['buildExpression']('me',null,_0x34ec46),_0x33d995[_0x1eb171](_0x2aeee1[_0xf96876('0x44')],_0x2aeee1[_0xf96876('0x49')]['start'],_0x2aeee1['value'][_0xf96876('0x96')]);break;}else _0x2aeee1=as[_0xf96876('0x1')](_0x3a51c9,_0x20a150[_0xf96876('0x4e')],_0x34ec46),_0x33d995[_0x1eb171](_0x2aeee1[_0xf96876('0x44')],_0x2aeee1['value'][_0xf96876('0x9f')],_0x2aeee1[_0xf96876('0x49')][_0xf96876('0x96')]);}}else{const _0x1bbac2=_(_0x4df31a[_0xf96876('0x51')])[_0xf96876('0x6c')]()[_0xf96876('0x88')](function(_0x4bfc6d){const _0x3a15a2=_0xf96876;return _['some'](_0x48f7e3,[_0x3a15a2('0x2'),_0x4bfc6d])?_0x4bfc6d:undefined;})['compact']()[_0xf96876('0x49')]();!_[_0xf96876('0x83')](_0x1bbac2)&&_0x1bbac2[_0xf96876('0x85')](function(_0x5e675c){const _0xbe076=_0xf96876;if(_0x5e675c===_0xbe076('0x3a'))_0x435e55['where'](_0xbe076('0x2c'),[]['concat'](_0x4df31a[_0xbe076('0x51')][_0x5e675c]));else{if(_0x5e675c===_0xbe076('0x6')){const _0x46dfde=JSON['parse'](_0x4df31a[_0xbe076('0x51')][_0x5e675c])[_0xbe076('0xb9')],_0x5b07fa=JSON[_0xbe076('0x1d')](_0x4df31a[_0xbe076('0x51')][_0x5e675c])['$lte'];_0x435e55[_0xbe076('0xbb')](_0xbe076('0x14'),_0x46dfde,_0x5b07fa);}else _0x4df31a[_0xbe076('0x51')][_0x5e675c]===_0xbe076('0x9e')?_0x435e55[_0xbe076('0xbb')]('i.'+_0x5e675c+_0xbe076('0x4b')):_0x435e55[_0xbe076('0xbb')]('i.'+_0x5e675c+_0xbe076('0x12'),_0x4df31a[_0xbe076('0x51')][_0x5e675c]);}});_0x4df31a[_0xf96876('0x51')][_0xf96876('0x26')]&&(_0x4df31a[_0xf96876('0x51')]['read']==0x1?_0x435e55['having'](_0xf96876('0x2e')):_0x435e55[_0xf96876('0x1b')]('`unreadMessages`\x20>\x200'));_0x4df31a[_0xf96876('0x51')]['tag']&&(_0x46fa91=_[_0xf96876('0x8d')](_0x4df31a[_0xf96876('0x51')][_0xf96876('0x32')])?_0x4df31a['query'][_0xf96876('0x32')]:new Array(_0x4df31a[_0xf96876('0x51')][_0xf96876('0x32')]),_0x46fa91['forEach'](function(_0x522b1a){const _0x547929=_0xf96876;_0x3fedca['or'](_0x547929('0x0'),'%,'+_0x522b1a+',%');}));if(_0x4df31a['query'][_0xf96876('0x47')]){const _0x488a95=_0x4df31a[_0xf96876('0x51')]['filter'][_0xf96876('0x3f')]('\x5c','\x5c\x5c')['replace']('\x27\x27',_0xf96876('0x16'));qs[_0xf96876('0x58')](_0x488a95)&&_0x33d995['or'](_0xf96876('0x20'),_0x488a95+'%')['or']('i.fax\x20LIKE\x20?',_0x488a95+'%'),_0x33d995['or']('CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?',_0x488a95+'%');}}_0x435e55[_0xf96876('0xbb')](_0x33d995),_0x435e55[_0xf96876('0x75')](_0xf96876('0xc'));let _0x5e4140={'type':db[_0xf96876('0xb7')][_0xf96876('0x89')][_0xf96876('0x92')],'raw':!![]};const _0x11f8b9=_0x435e55[_0xf96876('0x6f')]();_0x11f8b9[_0xf96876('0x73')](_0xf96876('0xc')),_0x11f8b9[_0xf96876('0x73')](_0xf96876('0x6d'),_0xf96876('0x55')),_0x1d2a90[_0xf96876('0xa3')]&&_0x1d2a90[_0xf96876('0xa3')]['forEach'](function(_0x573b02){const _0x25911e=_0xf96876;_0x435e55[_0x25911e('0xa3')]('i.'+_0x573b02[0x0],_0x573b02[0x1]==='DESC'?![]:!![]);}),!_[_0xf96876('0x83')](_0x46fa91)&&(_0x435e55[_0xf96876('0x1b')](_0x3fedca),_0x11f8b9[_0xf96876('0xbb')](_0xf96876('0x30'),_0x46fa91)),Promise[_0xf96876('0x4f')]()[_0xf96876('0x6b')](function(){const _0x42b16d=_0xf96876;if(!_0x5ad220){if(_0x4df31a[_0x42b16d('0x51')]['FaxAccountId']||_0x4df31a[_0x42b16d('0x51')][_0x42b16d('0x25')])return;_0x11f8b9[_0x42b16d('0xbb')]('i.FaxAccountId\x20IS\x20NOT\x20NULL'),_0x435e55[_0x42b16d('0xbb')](_0x42b16d('0x8f'));return;}return _0x4df31a['user'][_0x42b16d('0x79')]({'attributes':['id'],'raw':!![]})[_0x42b16d('0x6b')](function(_0x1358d7){const _0x31121c=_0x42b16d;_[_0x31121c('0x83')](_0x1358d7)?(_0x11f8b9[_0x31121c('0xbb')](_0x31121c('0x9')),_0x435e55[_0x31121c('0xbb')](_0x31121c('0x9'))):(_0x11f8b9[_0x31121c('0xbb')](_0x31121c('0x2c'),_[_0x31121c('0x88')](_0x1358d7,'id')),_0x435e55[_0x31121c('0xbb')](_0x31121c('0x2c'),_['map'](_0x1358d7,'id')));});})['then'](function(){const _0x3512a5=_0xf96876;db[_0x3512a5('0x2a')]['query'](_0x11f8b9[_0x3512a5('0x5')](),_0x5e4140)['then'](function(_0x3d89ea){const _0x49ff7e=_0x3512a5;_0x3fc78b[_0x49ff7e('0x5b')]=_0x3d89ea[_0x49ff7e('0x37')];if(_0x3fc78b[_0x49ff7e('0x5b')]===0x0)return[];return db['sequelize'][_0x49ff7e('0x51')](_0x4af781['toString'](),_0x5e4140)['then'](function(_0x378762){const _0x374c2e=_0x49ff7e;_0x47f8d7=_[_0x374c2e('0x1f')](_0x378762,'id'),_0x5e4140=_[_0x374c2e('0x23')](_0x5e4140,{'model':db[_0x374c2e('0xa9')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x4df31a[_0x374c2e('0x51')]['fields']?_0x1d2a90[_0x374c2e('0x3e')][_0x374c2e('0x85')](function(_0x4e0e68){const _0x21fccc=_0x374c2e;_0x435e55[_0x21fccc('0x73')]('i.'+_0x4e0e68);}):(_0x435e55[_0x374c2e('0x73')](_0x374c2e('0x6d'),_0x374c2e('0x55')),_0x435e55[_0x374c2e('0x73')](_0x374c2e('0xaf'),_0x374c2e('0xa2')),_0x435e55[_0x374c2e('0x73')](_0x374c2e('0x6e'),_0x374c2e('0x59')),_0x435e55[_0x374c2e('0x73')]('i.*'),_0x435e55['field'](_0x374c2e('0xa'),_0x374c2e('0xd')),_0x435e55[_0x374c2e('0x73')](_0x374c2e('0x5a'),'Contact.lastName'),_0x435e55[_0x374c2e('0x73')](_0x374c2e('0xbc'),_0x374c2e('0x1a')),_0x435e55[_0x374c2e('0x73')](_0x374c2e('0x91'),'Contact.phone'),_0x435e55['field'](_0x374c2e('0x94'),_0x374c2e('0x82')),_0x435e55[_0x374c2e('0x73')](_0x374c2e('0x64'),_0x374c2e('0x43')),_0x435e55['field'](_0x374c2e('0x60'),'Owner.fullname'),_0x435e55['field']('o.internal',_0x374c2e('0x29')),_0x435e55[_0x374c2e('0x73')]('GROUP_CONCAT(DISTINCT\x20t.id)','TagIds'));if(_0x1d2a90[_0x374c2e('0x13')])_0x435e55[_0x374c2e('0x13')](_0x1d2a90[_0x374c2e('0x13')]);if(_0x1d2a90[_0x374c2e('0xa5')])_0x435e55[_0x374c2e('0xa5')](_0x1d2a90[_0x374c2e('0xa5')]);return db[_0x374c2e('0x2a')][_0x374c2e('0x51')](_0x435e55[_0x374c2e('0x5')](),_0x5e4140);})['then'](function(_0xc657d2){const _0x52e82c=_0x49ff7e;return _0x5d2280['where'](_0x52e82c('0x69'),_[_0x52e82c('0x88')](_0xc657d2,'id')),db[_0x52e82c('0x2a')][_0x52e82c('0x51')](_0x5d2280['toString'](),_0x5e4140)['then'](function(_0x162f13){const _0x6d6723=_0x52e82c,_0x26e631=_[_0x6d6723('0x90')](_0x162f13,'FaxInteractionId'),_0xa37639=[];return _0xc657d2[_0x6d6723('0x85')](function(_0x5f2a4e){_0xa37639['push'](updateFaxInteraction(_0x5f2a4e,_0x47f8d7,_0x26e631));}),Promise[_0x6d6723('0x4d')](_0xa37639);});});})[_0x3512a5('0x6b')](function(_0x37914c){const _0x103bf7=_0x3512a5;return _0x3fc78b[_0x103bf7('0xe')]=_0x37914c,_0x3fc78b;})[_0x3512a5('0x6b')](respondWithFilteredResult(_0x2d768e,_0x1d2a90));})[_0xf96876('0xac')](handleError(_0x2d768e,null));},exports[_0x5bf681('0xb1')]=function(_0x1e6085,_0x1c62b3){const _0x2e9b12=_0x5bf681;let _0x528090={'raw':![],'where':{'id':_0x1e6085[_0x2e9b12('0x33')]['id']}};const _0x693022={};return _0x693022[_0x2e9b12('0x8b')]=_[_0x2e9b12('0x6c')](db[_0x2e9b12('0xa9')][_0x2e9b12('0x45')]),_0x693022[_0x2e9b12('0x51')]=_[_0x2e9b12('0x6c')](_0x1e6085[_0x2e9b12('0x51')]),_0x693022['filters']=_[_0x2e9b12('0x4c')](_0x693022[_0x2e9b12('0x8b')],_0x693022[_0x2e9b12('0x51')]),_0x528090[_0x2e9b12('0x3e')]=_[_0x2e9b12('0x4c')](_0x693022['model'],qs['fields'](_0x1e6085['query']['fields'])),_0x528090[_0x2e9b12('0x3e')]=_0x528090['attributes'][_0x2e9b12('0x37')]?_0x528090[_0x2e9b12('0x3e')]:_0x693022[_0x2e9b12('0x8b')],_0x1e6085[_0x2e9b12('0x51')]['includeAll']&&(_0x528090['include']=[{'all':!![]}]),_0x528090=_['merge']({},_0x528090,_0x1e6085[_0x2e9b12('0x24')]),db['FaxInteraction'][_0x2e9b12('0x31')](_0x528090)['then'](handleEntityNotFound(_0x1c62b3,null))[_0x2e9b12('0x6b')](respondWithResult(_0x1c62b3,null))[_0x2e9b12('0xac')](handleError(_0x1c62b3,null));},exports['create']=function(_0x45156c,_0x7366de){const _0x3a0385=_0x5bf681;return db[_0x3a0385('0xa9')][_0x3a0385('0x5f')](_0x45156c[_0x3a0385('0x7e')],{})[_0x3a0385('0x6b')](respondWithResult(_0x7366de,0xc9))[_0x3a0385('0xac')](handleError(_0x7366de,null));},exports[_0x5bf681('0x40')]=function(_0x146869,_0x46929f){const _0x182c0d=_0x5bf681;return _0x146869['body']['id']&&delete _0x146869[_0x182c0d('0x7e')]['id'],db[_0x182c0d('0xa9')][_0x182c0d('0x31')]({'where':{'id':_0x146869['params']['id']}})[_0x182c0d('0x6b')](handleEntityNotFound(_0x46929f,null))[_0x182c0d('0x6b')](saveUpdates(_0x146869[_0x182c0d('0x7e')],null))['then'](respondWithResult(_0x46929f,null))[_0x182c0d('0xac')](handleError(_0x46929f,null));},exports[_0x5bf681('0x63')]=function(_0x35c0c7,_0x520ea1){const _0x4217fd=_0x5bf681;return db['FaxInteraction'][_0x4217fd('0x31')]({'where':{'id':_0x35c0c7[_0x4217fd('0x33')]['id']}})['then'](handleEntityNotFound(_0x520ea1,null))[_0x4217fd('0x6b')](removeEntity(_0x520ea1,null))['catch'](handleError(_0x520ea1,null));},exports[_0x5bf681('0x67')]=function(_0x2caaf2,_0x30e0e0){const _0x1401da=_0x5bf681;return db[_0x1401da('0xa9')][_0x1401da('0x67')]()['then'](respondWithResult(_0x30e0e0,null))[_0x1401da('0xac')](handleError(_0x30e0e0,null));},exports['addMessage']=function(_0x42ad20,_0x118c14){const _0x3dc8b2=_0x5bf681;return db[_0x3dc8b2('0x87')][_0x3dc8b2('0x31')]({'where':{'id':_0x42ad20['params']['id']}})[_0x3dc8b2('0x6b')](function(_0x34cc8d){const _0x5b1936=_0x3dc8b2;if(_0x34cc8d)return _0x34cc8d[_0x5b1936('0xb')](_0x42ad20[_0x5b1936('0x7e')]['ids'],{'through':_['omit'](_0x42ad20[_0x5b1936('0x7e')],[_0x5b1936('0xa8'),'id'])});})[_0x3dc8b2('0x6b')](respondWithResult(_0x118c14,null))[_0x3dc8b2('0xac')](handleError(_0x118c14,null));},exports[_0x5bf681('0x19')]=function(_0x4c7997,_0xe301ba){const _0x398ded=_0x5bf681;let _0xa867c8={'raw':![],'where':{}};const _0x261899={},_0x124e63={'count':0x0,'rows':[]};return db[_0x398ded('0xa9')][_0x398ded('0x31')]({'where':{'id':_0x4c7997[_0x398ded('0x33')]['id']}})['then'](handleEntityNotFound(_0xe301ba,null))[_0x398ded('0x6b')](function(_0x39ed10){const _0x5f517f=_0x398ded;if(_0x39ed10){_0x261899[_0x5f517f('0x8b')]=_[_0x5f517f('0x6c')](db['FaxMessage']['rawAttributes']),_0x261899['query']=_[_0x5f517f('0x6c')](_0x4c7997['query']),_0x261899[_0x5f517f('0x76')]=_[_0x5f517f('0x4c')](_0x261899[_0x5f517f('0x8b')],_0x261899[_0x5f517f('0x51')]),_0xa867c8['attributes']=_[_0x5f517f('0x4c')](_0x261899[_0x5f517f('0x8b')],qs[_0x5f517f('0x7d')](_0x4c7997[_0x5f517f('0x51')][_0x5f517f('0x7d')])),_0xa867c8[_0x5f517f('0x3e')]=_0xa867c8[_0x5f517f('0x3e')][_0x5f517f('0x37')]?_0xa867c8[_0x5f517f('0x3e')]:_0x261899[_0x5f517f('0x8b')];typeof _0x4c7997[_0x5f517f('0x51')][_0x5f517f('0x5c')]===_0x5f517f('0x7a')&&(_0xa867c8[_0x5f517f('0x13')]=qs[_0x5f517f('0x13')](_0x4c7997[_0x5f517f('0x51')][_0x5f517f('0x13')]),_0xa867c8[_0x5f517f('0xa5')]=qs[_0x5f517f('0xa5')](_0x4c7997[_0x5f517f('0x51')][_0x5f517f('0xa5')]));_0xa867c8[_0x5f517f('0xa3')]=qs['sort'](_0x4c7997['query'][_0x5f517f('0x62')]),_0xa867c8[_0x5f517f('0xbb')]=qs['filters'](_[_0x5f517f('0x78')](_0x4c7997[_0x5f517f('0x51')],_0x261899[_0x5f517f('0x76')])),_0xa867c8[_0x5f517f('0xbb')][_0x5f517f('0x5d')]=_0x39ed10['id'];_0x4c7997[_0x5f517f('0x51')][_0x5f517f('0x47')]&&(_0xa867c8['where']=_[_0x5f517f('0x23')](_0xa867c8[_0x5f517f('0xbb')],{[Op['or']]:_[_0x5f517f('0x88')](_0xa867c8[_0x5f517f('0x3e')],function(_0x3f4f09){const _0x11a870=_0x5f517f,_0x507a69={};return _0x507a69[_0x3f4f09]={[Op[_0x11a870('0x3b')]]:'%'+_0x4c7997[_0x11a870('0x51')]['filter']+'%'},_0x507a69;})}));if(_0x4c7997[_0x5f517f('0x51')]['$gte']){const _0x5185d6=_0x4c7997[_0x5f517f('0x51')][_0x5f517f('0xb9')][_0x5f517f('0xa7')](','),_0x49b995={};_0x49b995[_0x5185d6[0x0]]={[Op[_0x5f517f('0x53')]]:moment(_0x5185d6[0x1])['format']('YYYY-MM-DD\x20HH:mm:ss')},_0xa867c8[_0x5f517f('0xbb')]=_[_0x5f517f('0x23')](_0xa867c8[_0x5f517f('0xbb')],_0x49b995);}return _0xa867c8=_[_0x5f517f('0x23')]({},_0xa867c8,_0x4c7997[_0x5f517f('0x24')]),db['FaxMessage']['count']({'where':_0xa867c8[_0x5f517f('0xbb')]})[_0x5f517f('0x6b')](function(_0x1226af){const _0x47b1df=_0x5f517f;return _0x124e63[_0x47b1df('0x5b')]=_0x1226af,_0x4c7997[_0x47b1df('0x51')][_0x47b1df('0x46')]&&(_0xa867c8[_0x47b1df('0x21')]=[{'all':!![]}]),db[_0x47b1df('0x87')][_0x47b1df('0xb6')](_0xa867c8);})[_0x5f517f('0x6b')](function(_0x4549d9){const _0x318a4e=_0x5f517f;return _0x124e63[_0x318a4e('0xe')]=_0x4549d9,_0x124e63;});}})[_0x398ded('0x6b')](respondWithFilteredResult(_0xe301ba,_0xa867c8))['catch'](handleError(_0xe301ba,null));},exports[_0x5bf681('0x2b')]=function(_0x528692,_0x4b824d){const _0x25043a=_0x5bf681;return db['FaxInteraction'][_0x25043a('0x31')]({'where':{'id':_0x528692['params']['id']}})[_0x25043a('0x6b')](function(_0x83ff98){const _0x2a069f=_0x25043a;if(_0x83ff98)return _0x83ff98[_0x2a069f('0x8e')](_0x528692['body'][_0x2a069f('0xa8')],{'through':_[_0x2a069f('0x2f')](_0x528692[_0x2a069f('0x7e')],[_0x2a069f('0xa8'),'id'])})[_0x2a069f('0x6b')](function(){const _0x34eb96=_0x2a069f;return db[_0x34eb96('0x7b')][_0x34eb96('0xb6')]({'attributes':['id',_0x34eb96('0x2'),_0x34eb96('0xb8')],'where':{'id':_0x528692[_0x34eb96('0x7e')][_0x34eb96('0xa8')]}});})['then'](function(_0x65a4ea){const _0x520f94=_0x2a069f;return socket[_0x520f94('0xa0')](_0x520f94('0x71'),{'id':Number(_0x528692[_0x520f94('0x33')]['id']),'tags':_0x65a4ea||[]}),{'id':Number(_0x528692['params']['id']),'tags':_0x65a4ea||[]};});})[_0x25043a('0x6b')](respondWithResult(_0x4b824d,null))['catch'](handleError(_0x4b824d,null));},exports[_0x5bf681('0x70')]=function(_0x1596d3,_0x3e3ed7){const _0xfaeadb=_0x5bf681;return db[_0xfaeadb('0xa9')][_0xfaeadb('0x31')]({'where':{'id':_0x1596d3['params']['id']}})[_0xfaeadb('0x6b')](handleEntityNotFound(_0x3e3ed7,null))['then'](function(_0x9abb06){const _0x5d380d=_0xfaeadb;if(_0x9abb06)return _0x9abb06[_0x5d380d('0x70')](_0x1596d3[_0x5d380d('0x51')][_0x5d380d('0xa8')]);})[_0xfaeadb('0x6b')](respondWithStatusCode(_0x3e3ed7,null))[_0xfaeadb('0xac')](handleError(_0x3e3ed7,null));},exports[_0x5bf681('0x66')]=function(_0xc8f4d9,_0x316f9c){const _0x13ef09=_0x5bf681,_0x2398df=moment()[_0x13ef09('0xa1')]()[_0x13ef09('0x5')](),_0x3f5f19=path[_0x13ef09('0x9a')](config[_0x13ef09('0xb5')],'files',_0x13ef09('0x38')),_0x14c7cb=path['join'](config[_0x13ef09('0xb5')],_0x13ef09('0x9c'),_0x13ef09('0x3c'),_0x13ef09('0xaa')),_0xba21c2=path[_0x13ef09('0x9a')](_0x3f5f19,_0x2398df),_0x13cb77=util[_0x13ef09('0x86')]('transcript-%d-%s.zip',_0xc8f4d9[_0x13ef09('0x33')]['id'],_0x2398df),_0x3025e5=path['join'](_0x3f5f19,_0x13cb77),_0x2ec2f6=[];_0x2ec2f6[_0x13ef09('0x35')]({'model':db[_0x13ef09('0x27')],'as':'Attachment','raw':!![]});const _0x2d8691=[{'model':db[_0x13ef09('0x87')],'as':'Messages','attributes':['id',_0x13ef09('0x7e'),_0x13ef09('0x6')],'include':_0x2ec2f6}];return db[_0x13ef09('0xa9')]['findOne']({'where':{'id':_0xc8f4d9[_0x13ef09('0x33')]['id']},'include':_0x2d8691})[_0x13ef09('0x6b')](handleEntityNotFound(_0x316f9c,null))['then'](function(_0x530922){const _0x1e3cc1=_0x13ef09;if(_0x530922&&_0x530922['Messages']){const _0x5aab05=_0x530922[_0x1e3cc1('0xa6')]({'plain':!![]});fs['mkdirSync'](_0xba21c2);for(let _0x1fb066=0x0;_0x1fb066<_0x5aab05[_0x1e3cc1('0x72')][_0x1e3cc1('0x37')];_0x1fb066++){const _0x26659a=_0x5aab05['Messages'][_0x1fb066]['Attachment'];if(_0x26659a){const _0x1722dc=path[_0x1e3cc1('0x9a')](_0x14c7cb,_0x26659a[_0x1e3cc1('0xf')]);fs[_0x1e3cc1('0x56')](_0x1722dc)&&fs[_0x1e3cc1('0x2d')](_0x1722dc)['pipe'](fs[_0x1e3cc1('0x77')](path[_0x1e3cc1('0x9a')](_0xba21c2,_0x26659a['basename'])));}}return Promise[_0x1e3cc1('0x4f')]()[_0x1e3cc1('0x6b')](function(){const _0x36ac8e=_0x1e3cc1;return new Promise(function(_0x11f74b,_0x5c779e){zipdir(_0xba21c2,{'saveTo':_0x3025e5},function(_0x18117d,_0x311290){if(_0x18117d)return _0x5c779e(_0x18117d);return _0x11f74b(_0x311290);});})[_0x36ac8e('0x6b')](function(){return new Promise(function(_0x3eb484,_0x5eced5){rimraf(_0xba21c2,function(_0x28d4f5){if(_0x28d4f5)_0x5eced5(_0x28d4f5);return _0x3eb484();});});})[_0x36ac8e('0x6b')](function(){const _0x3907d0=_0x36ac8e;return _0x316f9c[_0x3907d0('0x66')](_0x3025e5,_0x13cb77,function(_0x4545da){const _0x52326a=_0x3907d0;_0x4545da?console['log'](_0x52326a('0xbe'),_0x4545da):fs[_0x52326a('0x3')](_0x3025e5);});});});}else return _0x316f9c[_0x1e3cc1('0x57')](0xc8);})[_0x13ef09('0xac')](handleError(_0x316f9c,null));}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.events.js b/server/api/faxInteraction/faxInteraction.events.js index ff90fc8..6b2173c 100644 --- a/server/api/faxInteraction/faxInteraction.events.js +++ b/server/api/faxInteraction/faxInteraction.events.js @@ -1 +1 @@ -const a199_0x4a28=['save','FaxInteraction','update','setDataValue','FaxMessage','exports','undefined','Users','events','map','catch','getUsers','emit','length','../../mysqldb','remove','then'];(function(_0x1cc38e,_0x4a2842){const _0x3c394e=function(_0x111744){while(--_0x111744){_0x1cc38e['push'](_0x1cc38e['shift']());}};_0x3c394e(++_0x4a2842);}(a199_0x4a28,0x7d));const a199_0x3c39=function(_0x1cc38e,_0x4a2842){_0x1cc38e=_0x1cc38e-0x0;let _0x3c394e=a199_0x4a28[_0x1cc38e];return _0x3c394e;};const _0x2a83c6=a199_0x3c39;'use strict';const EventEmitter=require(_0x2a83c6('0x2')),FaxInteraction=require(_0x2a83c6('0x8'))['db'][_0x2a83c6('0xc')],FaxMessage=require(_0x2a83c6('0x8'))['db'][_0x2a83c6('0xf')],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x2a83c6('0xb'),'afterUpdate':_0x2a83c6('0xd'),'afterDestroy':_0x2a83c6('0x9')};function emitEvent(_0x111744){return function(_0x3f5e8e){const _0x4a3aa3=a199_0x3c39;_0x3f5e8e[_0x4a3aa3('0x5')]({'attributes':['id'],'raw':!![]})[_0x4a3aa3('0xa')](function(_0x20c782){const _0x5a5e8e=_0x4a3aa3;return _0x3f5e8e[_0x5a5e8e('0xe')](_0x5a5e8e('0x1'),_0x20c782[_0x5a5e8e('0x3')](function(_0xa93c66){return{'id':_0xa93c66['id']};})),FaxMessage['findAll']({'where':{'FaxInteractionId':_0x3f5e8e['id'],'direction':'in','read':![]},'raw':!![]});})[_0x4a3aa3('0xa')](function(_0x514a2b){const _0x338b9f=_0x4a3aa3;_0x3f5e8e[_0x338b9f('0xe')]('unreadMessages',_0x514a2b[_0x338b9f('0x7')]),FaxInteractionEvents['emit'](_0x111744+':'+_0x3f5e8e['id'],_0x3f5e8e),FaxInteractionEvents[_0x338b9f('0x6')](_0x111744,_0x3f5e8e);})[_0x4a3aa3('0x4')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x2a83c6('0x0')){const event=events[e];FaxInteraction['addHook'](e,emitEvent(event));}}module[_0x2a83c6('0x10')]=FaxInteractionEvents; \ No newline at end of file +const a199_0x44a4=['addHook','unreadMessages','map','length','Users','exports','setDataValue','then','emit','catch','findAll','update','remove','../../mysqldb','setMaxListeners','getUsers','events'];(function(_0x4e4d99,_0x44a4ca){const _0x106b70=function(_0x145865){while(--_0x145865){_0x4e4d99['push'](_0x4e4d99['shift']());}};_0x106b70(++_0x44a4ca);}(a199_0x44a4,0x19c));const a199_0x106b=function(_0x4e4d99,_0x44a4ca){_0x4e4d99=_0x4e4d99-0x0;let _0x106b70=a199_0x44a4[_0x4e4d99];return _0x106b70;};const _0x52a19b=a199_0x106b;'use strict';const EventEmitter=require(_0x52a19b('0xc')),FaxInteraction=require('../../mysqldb')['db']['FaxInteraction'],FaxMessage=require(_0x52a19b('0x9'))['db']['FaxMessage'],FaxInteractionEvents=new EventEmitter();FaxInteractionEvents[_0x52a19b('0xa')](0x0);const events={'afterCreate':'save','afterUpdate':_0x52a19b('0x7'),'afterDestroy':_0x52a19b('0x8')};function emitEvent(_0x145865){return function(_0x45b3e3){const _0x3dcb1a=a199_0x106b;_0x45b3e3[_0x3dcb1a('0xb')]({'attributes':['id'],'raw':!![]})[_0x3dcb1a('0x3')](function(_0x2471b0){const _0x4d2449=_0x3dcb1a;return _0x45b3e3[_0x4d2449('0x2')](_0x4d2449('0x0'),_0x2471b0[_0x4d2449('0xf')](function(_0x3f9f04){return{'id':_0x3f9f04['id']};})),FaxMessage[_0x4d2449('0x6')]({'where':{'FaxInteractionId':_0x45b3e3['id'],'direction':'in','read':![]},'raw':!![]});})[_0x3dcb1a('0x3')](function(_0x3ee425){const _0x32c271=_0x3dcb1a;_0x45b3e3[_0x32c271('0x2')](_0x32c271('0xe'),_0x3ee425[_0x32c271('0x10')]),FaxInteractionEvents[_0x32c271('0x4')](_0x145865+':'+_0x45b3e3['id'],_0x45b3e3),FaxInteractionEvents[_0x32c271('0x4')](_0x145865,_0x45b3e3);})[_0x3dcb1a('0x5')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxInteraction[_0x52a19b('0xd')](e,emitEvent(event));}}module[_0x52a19b('0x1')]=FaxInteractionEvents; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.model.js b/server/api/faxInteraction/faxInteraction.model.js index c0c8de4..7e66668 100644 --- a/server/api/faxInteraction/faxInteraction.model.js +++ b/server/api/faxInteraction/faxInteraction.model.js @@ -1 +1 @@ -const a200_0x3fa6=['exports','format','changed','./faxInteraction.attributes','define','moment'];(function(_0x5b70ac,_0x3fa6f4){const _0x4da610=function(_0x58618a){while(--_0x58618a){_0x5b70ac['push'](_0x5b70ac['shift']());}};_0x4da610(++_0x3fa6f4);}(a200_0x3fa6,0x1c8));const a200_0x4da6=function(_0x5b70ac,_0x3fa6f4){_0x5b70ac=_0x5b70ac-0x0;let _0x4da610=a200_0x3fa6[_0x5b70ac];return _0x4da610;};const _0x3973e4=a200_0x4da6;'use strict';const moment=require(_0x3973e4('0x5')),attributes=require(_0x3973e4('0x3'));module[_0x3973e4('0x0')]=function(_0x58618a){const _0x5b6247=_0x3973e4,_0xb2857d=_0x58618a[_0x5b6247('0x4')]('FaxInteraction',attributes,{'tableName':'fax_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1e1141){const _0x1d055a=_0x5b6247;_0x1e1141[_0x1d055a('0x2')]('closed')&&(_0x1e1141['closedAt']=moment()[_0x1d055a('0x1')]('YYYY-MM-DD\x20HH:mm:ss'));}}});return _0xb2857d;}; \ No newline at end of file +const a200_0x357b=['exports','closed','moment','closedAt','fax_interactions','format','YYYY-MM-DD\x20HH:mm:ss','define'];(function(_0xd7f1a9,_0x357b4f){const _0x1fd285=function(_0x315bee){while(--_0x315bee){_0xd7f1a9['push'](_0xd7f1a9['shift']());}};_0x1fd285(++_0x357b4f);}(a200_0x357b,0xd1));const a200_0x1fd2=function(_0xd7f1a9,_0x357b4f){_0xd7f1a9=_0xd7f1a9-0x0;let _0x1fd285=a200_0x357b[_0xd7f1a9];return _0x1fd285;};const _0x28e1c8=a200_0x1fd2;'use strict';const moment=require(_0x28e1c8('0x1')),attributes=require('./faxInteraction.attributes');module[_0x28e1c8('0x7')]=function(_0x315bee){const _0x1bf31b=_0x28e1c8,_0x392438=_0x315bee[_0x1bf31b('0x6')]('FaxInteraction',attributes,{'tableName':_0x1bf31b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x56ef8b){const _0x2c19e8=_0x1bf31b;_0x56ef8b['changed'](_0x2c19e8('0x0'))&&(_0x56ef8b[_0x2c19e8('0x2')]=moment()[_0x2c19e8('0x4')](_0x2c19e8('0x5')));}}});return _0x392438;}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.rpc.js b/server/api/faxInteraction/faxInteraction.rpc.js index 94747b5..c5e07f5 100644 --- a/server/api/faxInteraction/faxInteraction.rpc.js +++ b/server/api/faxInteraction/faxInteraction.rpc.js @@ -1 +1 @@ -const a201_0x4288=['then','catch','options','body','../../config/logger','FaxInteraction','AddTagsToFaxInteraction','../../rediscache','AddTags','message','findOne','omit','./faxInteraction.socket','where','limit','../../mysqldb','info','UpdateFaxInteraction','update','ids','debug','attributes','stringify','error'];(function(_0x13dc1a,_0x42887e){const _0x13c3c9=function(_0x29c10a){while(--_0x29c10a){_0x13dc1a['push'](_0x13dc1a['shift']());}};_0x13c3c9(++_0x42887e);}(a201_0x4288,0x162));const a201_0x13c3=function(_0x13dc1a,_0x42887e){_0x13dc1a=_0x13dc1a-0x0;let _0x13c3c9=a201_0x4288[_0x13dc1a];return _0x13c3c9;};const _0xb45d47=a201_0x13c3;'use strict';const _=require('lodash'),db=require(_0xb45d47('0x15'))['db'],logger=require(_0xb45d47('0xa'))('rpc'),{getSocket}=require(_0xb45d47('0xd')),socket=getSocket();require(_0xb45d47('0x12'))['register'](socket),exports[_0xb45d47('0x17')]=function(_0x29c10a){const _0x545afd=this;return new Promise(function(_0x296956,_0x2da92d){const _0x539309=a201_0x13c3;return db[_0x539309('0xb')][_0x539309('0x0')](_0x29c10a['body'],{'raw':_0x29c10a['options']?_0x29c10a[_0x539309('0x8')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x29c10a[_0x539309('0x8')]?_0x29c10a[_0x539309('0x8')][_0x539309('0x13')]||null:null,'attributes':_0x29c10a[_0x539309('0x8')]?_0x29c10a[_0x539309('0x8')][_0x539309('0x3')]||null:null,'limit':_0x29c10a[_0x539309('0x8')]?_0x29c10a['options'][_0x539309('0x14')]||null:null})['then'](function(_0x5d6b3e){const _0x55a989=_0x539309;logger['info'](_0x55a989('0x17'),_0x29c10a),logger[_0x55a989('0x2')](_0x55a989('0x17'),_0x29c10a,JSON['stringify'](_0x5d6b3e)),_0x296956(_0x5d6b3e);})[_0x539309('0x7')](function(_0x34eb7b){const _0x45487d=_0x539309;logger[_0x45487d('0x5')]('UpdateFaxInteraction',_0x34eb7b[_0x45487d('0xf')],_0x29c10a),_0x2da92d(_0x545afd['error'](0x1f4,_0x34eb7b[_0x45487d('0xf')]));});});},exports[_0xb45d47('0xc')]=function(_0x2c1fe4){const _0x11a7c4=this;return new Promise(function(_0x1552ee,_0x38d8ca){const _0x275997=a201_0x13c3;return db[_0x275997('0xb')][_0x275997('0x10')]({'where':_0x2c1fe4['options']?_0x2c1fe4[_0x275997('0x8')][_0x275997('0x13')]||null:null})[_0x275997('0x6')](function(_0x288243){const _0x1985e6=_0x275997;if(_0x288243)return _0x288243['addTags'](_0x2c1fe4['body'][_0x1985e6('0x1')],{'through':_[_0x1985e6('0x11')](_0x2c1fe4[_0x1985e6('0x9')],[_0x1985e6('0x1'),'id'])});})[_0x275997('0x6')](function([_0x95a24b]){const _0x219e9a=_0x275997;logger[_0x219e9a('0x16')](_0x219e9a('0xe'),_0x2c1fe4),logger['debug'](_0x219e9a('0xe'),_0x2c1fe4,JSON[_0x219e9a('0x4')](_0x95a24b)),_0x1552ee(_0x95a24b);})[_0x275997('0x7')](function(_0x589ba5){const _0xf31846=_0x275997;logger[_0xf31846('0x5')](_0xf31846('0xe'),_0x589ba5[_0xf31846('0xf')],_0x2c1fe4),_0x38d8ca(_0x11a7c4[_0xf31846('0x5')](0x1f4,_0x589ba5[_0xf31846('0xf')]));});});}; \ No newline at end of file +const a201_0x347f=['update','findOne','UpdateFaxInteraction','FaxInteraction','addTags','lodash','where','./faxInteraction.socket','debug','options','body','error','../../rediscache','message','register','catch','ids','then','AddTagsToFaxInteraction','../../mysqldb','attributes','omit','info','AddTags','stringify','raw'];(function(_0x441608,_0x347f51){const _0x37cf57=function(_0x236611){while(--_0x236611){_0x441608['push'](_0x441608['shift']());}};_0x37cf57(++_0x347f51);}(a201_0x347f,0x12c));const a201_0x37cf=function(_0x441608,_0x347f51){_0x441608=_0x441608-0x0;let _0x37cf57=a201_0x347f[_0x441608];return _0x37cf57;};const _0x44c098=a201_0x37cf;'use strict';const _=require(_0x44c098('0x11')),db=require(_0x44c098('0x5'))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(_0x44c098('0x18')),socket=getSocket();require(_0x44c098('0x13'))[_0x44c098('0x0')](socket),exports[_0x44c098('0xe')]=function(_0x236611){const _0x3ce931=this;return new Promise(function(_0x15153d,_0x42a671){const _0x2e75f8=a201_0x37cf;return db[_0x2e75f8('0xf')][_0x2e75f8('0xc')](_0x236611[_0x2e75f8('0x16')],{'raw':_0x236611[_0x2e75f8('0x15')]?_0x236611['options'][_0x2e75f8('0xb')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x236611['options']?_0x236611[_0x2e75f8('0x15')][_0x2e75f8('0x12')]||null:null,'attributes':_0x236611[_0x2e75f8('0x15')]?_0x236611[_0x2e75f8('0x15')][_0x2e75f8('0x6')]||null:null,'limit':_0x236611[_0x2e75f8('0x15')]?_0x236611[_0x2e75f8('0x15')]['limit']||null:null})[_0x2e75f8('0x3')](function(_0x569619){const _0x3c6aeb=_0x2e75f8;logger[_0x3c6aeb('0x8')](_0x3c6aeb('0xe'),_0x236611),logger[_0x3c6aeb('0x14')]('UpdateFaxInteraction',_0x236611,JSON[_0x3c6aeb('0xa')](_0x569619)),_0x15153d(_0x569619);})[_0x2e75f8('0x1')](function(_0x409f2b){const _0x4c8fa0=_0x2e75f8;logger['error']('UpdateFaxInteraction',_0x409f2b['message'],_0x236611),_0x42a671(_0x3ce931[_0x4c8fa0('0x17')](0x1f4,_0x409f2b[_0x4c8fa0('0x19')]));});});},exports[_0x44c098('0x4')]=function(_0x539d82){const _0x69d534=this;return new Promise(function(_0xc98640,_0x3cb8da){const _0x39a08c=a201_0x37cf;return db['FaxInteraction'][_0x39a08c('0xd')]({'where':_0x539d82['options']?_0x539d82['options'][_0x39a08c('0x12')]||null:null})[_0x39a08c('0x3')](function(_0x25285d){const _0x3d5380=_0x39a08c;if(_0x25285d)return _0x25285d[_0x3d5380('0x10')](_0x539d82['body'][_0x3d5380('0x2')],{'through':_[_0x3d5380('0x7')](_0x539d82['body'],[_0x3d5380('0x2'),'id'])});})[_0x39a08c('0x3')](function([_0x340b73]){const _0x57ad2c=_0x39a08c;logger['info']('AddTags',_0x539d82),logger[_0x57ad2c('0x14')](_0x57ad2c('0x9'),_0x539d82,JSON[_0x57ad2c('0xa')](_0x340b73)),_0xc98640(_0x340b73);})['catch'](function(_0x32922f){const _0x3f1a40=_0x39a08c;logger['error'](_0x3f1a40('0x9'),_0x32922f[_0x3f1a40('0x19')],_0x539d82),_0x3cb8da(_0x69d534['error'](0x1f4,_0x32922f['message']));});});}; \ No newline at end of file diff --git a/server/api/faxInteraction/faxInteraction.socket.js b/server/api/faxInteraction/faxInteraction.socket.js index 73911c9..2fa44d2 100644 --- a/server/api/faxInteraction/faxInteraction.socket.js +++ b/server/api/faxInteraction/faxInteraction.socket.js @@ -1 +1 @@ -const a202_0x1355=['register','./faxInteraction.events','save','update','length','emit','remove','faxInteraction:'];(function(_0x44965d,_0x135553){const _0x3b0677=function(_0x5d8a1f){while(--_0x5d8a1f){_0x44965d['push'](_0x44965d['shift']());}};_0x3b0677(++_0x135553);}(a202_0x1355,0x10f));const a202_0x3b06=function(_0x44965d,_0x135553){_0x44965d=_0x44965d-0x0;let _0x3b0677=a202_0x1355[_0x44965d];return _0x3b0677;};const _0x301e2e=a202_0x3b06;'use strict';const FaxInteractionEvents=require(_0x301e2e('0x2')),events=[_0x301e2e('0x3'),_0x301e2e('0x7'),_0x301e2e('0x4')];function createListener(_0x5d8a1f,_0x34f531){return function(_0xb6c67b){const _0x46d1e5=a202_0x3b06;_0x34f531[_0x46d1e5('0x6')](_0x5d8a1f,_0xb6c67b);};}exports[_0x301e2e('0x1')]=function(_0x1e6a99){const _0x1bd64d=_0x301e2e;for(let _0x5c402f=0x0,_0x1142fc=events[_0x1bd64d('0x5')];_0x5c402f<_0x1142fc;_0x5c402f++){const _0x2688b4=events[_0x5c402f],_0x43bb59=createListener(_0x1bd64d('0x0')+_0x2688b4,_0x1e6a99);FaxInteractionEvents['on'](_0x2688b4,_0x43bb59);}}; \ No newline at end of file +const a202_0x9902=['length','save','./faxInteraction.events','emit','register','faxInteraction:','update'];(function(_0x1a6874,_0x9902cb){const _0x2a7632=function(_0x5b85b6){while(--_0x5b85b6){_0x1a6874['push'](_0x1a6874['shift']());}};_0x2a7632(++_0x9902cb);}(a202_0x9902,0x76));const a202_0x2a76=function(_0x1a6874,_0x9902cb){_0x1a6874=_0x1a6874-0x0;let _0x2a7632=a202_0x9902[_0x1a6874];return _0x2a7632;};const _0xf66ba5=a202_0x2a76;'use strict';const FaxInteractionEvents=require(_0xf66ba5('0x3')),events=[_0xf66ba5('0x2'),'remove',_0xf66ba5('0x0')];function createListener(_0x5b85b6,_0x16a5b8){return function(_0x44b667){const _0x2cb256=a202_0x2a76;_0x16a5b8[_0x2cb256('0x4')](_0x5b85b6,_0x44b667);};}exports[_0xf66ba5('0x5')]=function(_0x392c8f){const _0x588991=_0xf66ba5;for(let _0x157759=0x0,_0x2478a3=events[_0x588991('0x1')];_0x157759<_0x2478a3;_0x157759++){const _0x580e44=events[_0x157759],_0x24c7e2=createListener(_0x588991('0x6')+_0x580e44,_0x392c8f);FaxInteractionEvents['on'](_0x580e44,_0x24c7e2);}}; \ No newline at end of file diff --git a/server/api/faxInteraction/index.js b/server/api/faxInteraction/index.js index 539086e..8907914 100644 --- a/server/api/faxInteraction/index.js +++ b/server/api/faxInteraction/index.js @@ -1 +1 @@ -const a203_0x29eb=['index','./faxInteraction.controller','Router','addTags','update','faxinteraction:destroy','isAuthenticated','get','removeTags','../../components/interaction/service','exports','express','/:id/messages','delete','post','/:id','tracked','../../components/auth/service','download','/:id/tags','faxinteraction:addtags','create','/describe','getMessages','put','destroy','describe','faxinteraction:update','show'];(function(_0x1354a2,_0x29eb8c){const _0x275893=function(_0x31ae50){while(--_0x31ae50){_0x1354a2['push'](_0x1354a2['shift']());}};_0x275893(++_0x29eb8c);}(a203_0x29eb,0x13a));const a203_0x2758=function(_0x1354a2,_0x29eb8c){_0x1354a2=_0x1354a2-0x0;let _0x275893=a203_0x29eb[_0x1354a2];return _0x275893;};const _0x50dc13=a203_0x2758;'use strict';const express=require(_0x50dc13('0x10')),router=express[_0x50dc13('0x7')](),auth=require(_0x50dc13('0x16')),interaction=require(_0x50dc13('0xe')),controller=require(_0x50dc13('0x6'));router[_0x50dc13('0xc')]('/',auth[_0x50dc13('0xb')](),controller[_0x50dc13('0x5')]),router[_0x50dc13('0xc')](_0x50dc13('0x1b'),auth[_0x50dc13('0xb')](),controller[_0x50dc13('0x2')]),router['get'](_0x50dc13('0x14'),auth[_0x50dc13('0xb')](),controller[_0x50dc13('0x4')]),router[_0x50dc13('0xc')](_0x50dc13('0x11'),auth['isAuthenticated'](),controller[_0x50dc13('0x1c')]),router['get']('/:id/download',auth[_0x50dc13('0xb')](),controller[_0x50dc13('0x17')]),router[_0x50dc13('0x13')]('/',auth['isAuthenticated'](),controller[_0x50dc13('0x1a')]),router[_0x50dc13('0x13')](_0x50dc13('0x11'),auth[_0x50dc13('0xb')](),controller['addMessage']),router[_0x50dc13('0x13')](_0x50dc13('0x18'),auth[_0x50dc13('0xb')](),interaction[_0x50dc13('0x15')]('fax',_0x50dc13('0x19')),controller[_0x50dc13('0x8')]),router[_0x50dc13('0x0')](_0x50dc13('0x14'),auth[_0x50dc13('0xb')](),interaction[_0x50dc13('0x15')]('fax',_0x50dc13('0x3')),controller[_0x50dc13('0x9')]),router[_0x50dc13('0x12')]('/:id',auth['isAuthenticated'](),interaction[_0x50dc13('0x15')]('fax',_0x50dc13('0xa')),controller[_0x50dc13('0x1')]),router[_0x50dc13('0x12')](_0x50dc13('0x18'),auth[_0x50dc13('0xb')](),controller[_0x50dc13('0xd')]),module[_0x50dc13('0xf')]=router; \ No newline at end of file +const a203_0x4037=['post','download','show','Router','exports','faxinteraction:addtags','/:id/download','getMessages','isAuthenticated','../../components/auth/service','addTags','/:id/messages','create','get','fax','tracked','express','update','/:id','faxinteraction:update','delete'];(function(_0xd0e7e6,_0x403724){const _0x1de149=function(_0x352c82){while(--_0x352c82){_0xd0e7e6['push'](_0xd0e7e6['shift']());}};_0x1de149(++_0x403724);}(a203_0x4037,0xea));const a203_0x1de1=function(_0xd0e7e6,_0x403724){_0xd0e7e6=_0xd0e7e6-0x0;let _0x1de149=a203_0x4037[_0xd0e7e6];return _0x1de149;};const _0xef1c36=a203_0x1de1;'use strict';const express=require(_0xef1c36('0xd')),router=express[_0xef1c36('0x0')](),auth=require(_0xef1c36('0x6')),interaction=require('../../components/interaction/service'),controller=require('./faxInteraction.controller');router['get']('/',auth[_0xef1c36('0x5')](),controller['index']),router[_0xef1c36('0xa')]('/describe',auth['isAuthenticated'](),controller['describe']),router[_0xef1c36('0xa')](_0xef1c36('0xf'),auth[_0xef1c36('0x5')](),controller[_0xef1c36('0x14')]),router[_0xef1c36('0xa')](_0xef1c36('0x8'),auth[_0xef1c36('0x5')](),controller[_0xef1c36('0x4')]),router[_0xef1c36('0xa')](_0xef1c36('0x3'),auth[_0xef1c36('0x5')](),controller[_0xef1c36('0x13')]),router['post']('/',auth['isAuthenticated'](),controller[_0xef1c36('0x9')]),router[_0xef1c36('0x12')]('/:id/messages',auth[_0xef1c36('0x5')](),controller['addMessage']),router[_0xef1c36('0x12')]('/:id/tags',auth[_0xef1c36('0x5')](),interaction[_0xef1c36('0xc')]('fax',_0xef1c36('0x2')),controller[_0xef1c36('0x7')]),router['put'](_0xef1c36('0xf'),auth[_0xef1c36('0x5')](),interaction[_0xef1c36('0xc')]('fax',_0xef1c36('0x10')),controller[_0xef1c36('0xe')]),router[_0xef1c36('0x11')](_0xef1c36('0xf'),auth[_0xef1c36('0x5')](),interaction[_0xef1c36('0xc')](_0xef1c36('0xb'),'faxinteraction:destroy'),controller['destroy']),router[_0xef1c36('0x11')]('/:id/tags',auth[_0xef1c36('0x5')](),controller['removeTags']),module[_0xef1c36('0x1')]=router; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.attributes.js b/server/api/faxMessage/faxMessage.attributes.js index acf3d08..8912bbb 100644 --- a/server/api/faxMessage/faxMessage.attributes.js +++ b/server/api/faxMessage/faxMessage.attributes.js @@ -1 +1 @@ -const a204_0x15f8=['BOOLEAN','sequelize','exports','ENUM','TEXT','DATE','out','medium'];(function(_0x6f6798,_0x15f813){const _0x2411f0=function(_0x236c4c){while(--_0x236c4c){_0x6f6798['push'](_0x6f6798['shift']());}};_0x2411f0(++_0x15f813);}(a204_0x15f8,0x18d));const a204_0x2411=function(_0x6f6798,_0x15f813){_0x6f6798=_0x6f6798-0x0;let _0x2411f0=a204_0x15f8[_0x6f6798];return _0x2411f0;};const _0x3af508=a204_0x2411;'use strict';const Sequelize=require(_0x3af508('0x4'));module[_0x3af508('0x5')]={'body':{'type':Sequelize[_0x3af508('0x7')](_0x3af508('0x2')),'allowNull':![]},'read':{'type':Sequelize[_0x3af508('0x3')],'defaultValue':![]},'direction':{'type':Sequelize[_0x3af508('0x6')]('in',_0x3af508('0x1')),'defaultValue':'out','allowNull':![]},'failMessage':{'type':Sequelize['TEXT'],'defaultValue':null},'readAt':{'type':Sequelize[_0x3af508('0x0')]}}; \ No newline at end of file +const a204_0xa624=['medium','DATE','ENUM','TEXT','out','BOOLEAN','sequelize'];(function(_0x419001,_0xa62400){const _0x1979a3=function(_0x32afbc){while(--_0x32afbc){_0x419001['push'](_0x419001['shift']());}};_0x1979a3(++_0xa62400);}(a204_0xa624,0x1e6));const a204_0x1979=function(_0x419001,_0xa62400){_0x419001=_0x419001-0x0;let _0x1979a3=a204_0xa624[_0x419001];return _0x1979a3;};const _0x1b495b=a204_0x1979;'use strict';const Sequelize=require(_0x1b495b('0x3'));module['exports']={'body':{'type':Sequelize[_0x1b495b('0x0')](_0x1b495b('0x4')),'allowNull':![]},'read':{'type':Sequelize[_0x1b495b('0x2')],'defaultValue':![]},'direction':{'type':Sequelize[_0x1b495b('0x6')]('in',_0x1b495b('0x1')),'defaultValue':_0x1b495b('0x1'),'allowNull':![]},'failMessage':{'type':Sequelize[_0x1b495b('0x0')],'defaultValue':null},'readAt':{'type':Sequelize[_0x1b495b('0x5')]}}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.controller.js b/server/api/faxMessage/faxMessage.controller.js index 254ee54..ebeae6a 100644 --- a/server/api/faxMessage/faxMessage.controller.js +++ b/server/api/faxMessage/faxMessage.controller.js @@ -1 +1 @@ -const a205_0x1b7d=['params','[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','root','undefined','rejectmessage','count','limit','FaxInteraction','interaction','YYYY-MM-DD\x20HH:mm:ss','length','acceptMessage','fields','jayson/promise','join','channel','where','body','attachments','ContactId','fax-interactions','rawAttributes','key','destroy','accept','offset','result','AcceptMessage','SendFax','error','VIRTUAL','SIP/%s','map','nolimit','FaxMessage','request','create','message','findAll','index','../../rediscache','status','sort','UserId','role','event','merge','manual','rejectMessage','FaxMessage,\x20%s,\x20%s','util','request\x20sent','fieldName','FaxInteractionId','Contact','name','type','client','stringify','AttachmentId','model','query','describe','info','send','user','catch','sendStatus','Attachment','fax','order','null','api','get','interface','json','../../components/parsers/qs','attributes','set','/var/opt/motion2/server/files/attachments/%s','./faxMessage.socket','options','reject','EventManager','CmContact','read1stAt','http','format','moment','acceptmessage','lodash','findOne','isNil','update','code','show','end','then','FaxMessage,\x20%s,\x20%s,\x20%s','intersection','filter','stack','filters','keys'];(function(_0x2ab4de,_0x1b7d7f){const _0x418cda=function(_0x9a99b){while(--_0x9a99b){_0x2ab4de['push'](_0x2ab4de['shift']());}};_0x418cda(++_0x1b7d7f);}(a205_0x1b7d,0x1a9));const a205_0x418c=function(_0x2ab4de,_0x1b7d7f){_0x2ab4de=_0x2ab4de-0x0;let _0x418cda=a205_0x1b7d[_0x2ab4de];return _0x418cda;};const _0x587150=a205_0x418c;'use strict';const moment=require(_0x587150('0x4f')),util=require(_0x587150('0x29')),path=require('path'),_=require(_0x587150('0x51')),{getSocket}=require(_0x587150('0x1f')),socket=getSocket(),qs=require(_0x587150('0x43')),logger=require('../../config/logger')(_0x587150('0x3f')),config=require('../../config/environment'),interaction_log=require('../../config/logger')(_0x587150('0xb')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x587150('0x47'))['register'](socket);const jayson=require(_0x587150('0x4')),client=jayson[_0x587150('0x30')][_0x587150('0x4d')]({'port':0x232c}),client9002=jayson[_0x587150('0x30')][_0x587150('0x4d')]({'port':0x232a});function respondWithRpcPromise(_0x9a99b,_0x643fc9,_0x1806d8,_0x4a893f){return new Promise(function(_0x301306,_0x15270c){const _0x6fb0fa=a205_0x418c,_0x1715f4=_0x4a893f||client;return _0x1715f4[_0x6fb0fa('0x1a')](_0x9a99b,_0x1806d8)[_0x6fb0fa('0x58')](function(_0x270ee6){const _0x24d4a5=_0x6fb0fa;logger[_0x24d4a5('0x36')](_0x24d4a5('0x28'),_0x643fc9,_0x24d4a5('0x2a')),logger['debug'](_0x24d4a5('0x59'),_0x643fc9,_0x24d4a5('0x2a'),JSON[_0x24d4a5('0x31')](_0x270ee6));if(_0x270ee6[_0x24d4a5('0x14')]){if(_0x270ee6[_0x24d4a5('0x14')][_0x24d4a5('0x55')]===0x1f4)return logger[_0x24d4a5('0x14')](_0x24d4a5('0x28'),_0x643fc9,_0x270ee6['error'][_0x24d4a5('0x1c')]),_0x15270c(_0x270ee6[_0x24d4a5('0x14')][_0x24d4a5('0x1c')]);return logger[_0x24d4a5('0x14')](_0x24d4a5('0x28'),_0x643fc9,_0x270ee6['error'][_0x24d4a5('0x1c')]),_0x301306(_0x270ee6[_0x24d4a5('0x14')][_0x24d4a5('0x1c')]);}else logger[_0x24d4a5('0x36')](_0x24d4a5('0x28'),_0x643fc9,_0x24d4a5('0x2a')),_0x301306(_0x270ee6[_0x24d4a5('0x11')]['message']);})[_0x6fb0fa('0x39')](function(_0x23aa57){const _0x5b8751=_0x6fb0fa;logger[_0x5b8751('0x14')](_0x5b8751('0x28'),_0x643fc9,_0x23aa57),_0x15270c(_0x23aa57);});});}function respondWithResult(_0x101090,_0x150916){return _0x150916=_0x150916||0xc8,function(_0x2bddd5){const _0x47cdef=a205_0x418c;if(_0x2bddd5)return _0x101090['status'](_0x150916)[_0x47cdef('0x42')](_0x2bddd5);};}function respondWithFilteredResult(_0x18374f,_0x52cae3){return function(_0x287a55){const _0x4a97ec=a205_0x418c;if(_0x287a55){const _0x52be09=_0x287a55['count'],_0x3cc506=_0x52cae3[_0x4a97ec('0x10')];let _0x44dc47=_0x52cae3[_0x4a97ec('0x10')]+_0x52cae3[_0x4a97ec('0x65')],_0x31a133;return _0x44dc47>=_0x52be09?(_0x44dc47=_0x52be09,_0x31a133=0xc8):_0x31a133=0xce,_0x18374f['status'](_0x31a133),_0x18374f[_0x4a97ec('0x45')]('Content-Range',_0x3cc506+'-'+_0x44dc47+'/'+_0x52be09)[_0x4a97ec('0x42')](_0x287a55);}return null;};}function saveUpdates(_0x3efe91){return function(_0x28839a){const _0x558c82=a205_0x418c;if(_0x28839a)return _0x28839a[_0x558c82('0x54')](_0x3efe91)[_0x558c82('0x58')](function(_0x1cd417){return _0x1cd417;});return null;};}function removeEntity(_0x5e668c){return function(_0x2af02a){const _0x1357be=a205_0x418c;if(_0x2af02a)return _0x2af02a['destroy']()[_0x1357be('0x58')](function(){const _0x36359a=_0x1357be;_0x5e668c[_0x36359a('0x20')](0xcc)[_0x36359a('0x57')]();});};}function handleEntityNotFound(_0x2e4072){return function(_0x5e9052){const _0x1e4d82=a205_0x418c;return!_0x5e9052&&_0x2e4072[_0x1e4d82('0x3a')](0x194),_0x5e9052;};}function handleError(_0x3e5665,_0x3fda21){return _0x3fda21=_0x3fda21||0x1f4,function(_0x1b584a){const _0x5b092d=a205_0x418c;logger[_0x5b092d('0x14')](_0x1b584a[_0x5b092d('0x5c')]),_0x1b584a[_0x5b092d('0x2e')]&&delete _0x1b584a[_0x5b092d('0x2e')],_0x3e5665[_0x5b092d('0x20')](_0x3fda21)[_0x5b092d('0x37')](_0x1b584a);};}exports[_0x587150('0x1e')]=function(_0x48686e,_0x2ac50b){const _0x58000c=_0x587150;let _0x27b985={};const _0x28dad8={},_0x460b36={'count':0x0,'rows':[]},_0x202e69=_[_0x58000c('0x17')](db['FaxMessage'][_0x58000c('0xc')],function(_0x29c04a){const _0x1758b8=_0x58000c;return{'name':_0x29c04a[_0x1758b8('0x2b')],'type':_0x29c04a[_0x1758b8('0x2f')][_0x1758b8('0xd')]};});_0x28dad8[_0x58000c('0x33')]=_[_0x58000c('0x17')](_0x202e69,'name'),_0x28dad8[_0x58000c('0x34')]=_[_0x58000c('0x5e')](_0x48686e['query']),_0x28dad8['filters']=_['intersection'](_0x28dad8[_0x58000c('0x33')],_0x28dad8['query']),_0x27b985[_0x58000c('0x44')]=_[_0x58000c('0x5a')](_0x28dad8[_0x58000c('0x33')],qs['fields'](_0x48686e[_0x58000c('0x34')][_0x58000c('0x3')])),_0x27b985[_0x58000c('0x44')]=_0x27b985[_0x58000c('0x44')]['length']?_0x27b985[_0x58000c('0x44')]:_0x28dad8['model'];typeof _0x48686e[_0x58000c('0x34')][_0x58000c('0x18')]===_0x58000c('0x62')&&(_0x27b985['limit']=qs[_0x58000c('0x65')](_0x48686e['query']['limit']),_0x27b985[_0x58000c('0x10')]=qs[_0x58000c('0x10')](_0x48686e[_0x58000c('0x34')][_0x58000c('0x10')]));_0x27b985[_0x58000c('0x3d')]=qs[_0x58000c('0x21')](_0x48686e[_0x58000c('0x34')][_0x58000c('0x21')]),_0x27b985['where']=qs[_0x58000c('0x5d')](_['pick'](_0x48686e[_0x58000c('0x34')],_0x28dad8[_0x58000c('0x5d')]),_0x202e69);_0x48686e[_0x58000c('0x34')][_0x58000c('0x5b')]&&(_0x27b985[_0x58000c('0x7')]=_[_0x58000c('0x25')](_0x27b985[_0x58000c('0x7')],{[Op['or']]:_['map'](_0x202e69,function(_0x1f9839){const _0x5e6e16=_0x58000c;if(_0x1f9839[_0x5e6e16('0x2f')]!==_0x5e6e16('0x15')){const _0x38d5a9={};return _0x38d5a9[_0x1f9839[_0x5e6e16('0x2e')]]={[Op['like']]:'%'+_0x48686e['query'][_0x5e6e16('0x5b')]+'%'},_0x38d5a9;}})}));_0x27b985=_['merge']({},_0x27b985,_0x48686e['options']);const _0x3b72c7={'where':_0x27b985[_0x58000c('0x7')]};return db[_0x58000c('0x19')][_0x58000c('0x64')](_0x3b72c7)['then'](function(_0x3667db){const _0x117a85=_0x58000c;return _0x460b36[_0x117a85('0x64')]=_0x3667db,_0x48686e['query']['includeAll']&&(_0x27b985['include']=[{'all':!![]}]),db[_0x117a85('0x19')][_0x117a85('0x1d')](_0x27b985);})[_0x58000c('0x58')](function(_0x58eebe){return _0x460b36['rows']=_0x58eebe,_0x460b36;})['then'](respondWithFilteredResult(_0x2ac50b,_0x27b985))[_0x58000c('0x39')](handleError(_0x2ac50b,null));},exports[_0x587150('0x56')]=function(_0x20a78d,_0x2ca795){const _0x49a0e0=_0x587150;let _0x4ad0e={'raw':!![],'where':{'id':_0x20a78d[_0x49a0e0('0x5f')]['id']}};const _0x35fae2={};return _0x35fae2['model']=_[_0x49a0e0('0x5e')](db[_0x49a0e0('0x19')][_0x49a0e0('0xc')]),_0x35fae2[_0x49a0e0('0x34')]=_[_0x49a0e0('0x5e')](_0x20a78d['query']),_0x35fae2['filters']=_[_0x49a0e0('0x5a')](_0x35fae2['model'],_0x35fae2[_0x49a0e0('0x34')]),_0x4ad0e[_0x49a0e0('0x44')]=_[_0x49a0e0('0x5a')](_0x35fae2[_0x49a0e0('0x33')],qs['fields'](_0x20a78d['query'][_0x49a0e0('0x3')])),_0x4ad0e[_0x49a0e0('0x44')]=_0x4ad0e[_0x49a0e0('0x44')][_0x49a0e0('0x1')]?_0x4ad0e[_0x49a0e0('0x44')]:_0x35fae2[_0x49a0e0('0x33')],_0x20a78d[_0x49a0e0('0x34')]['includeAll']&&(_0x4ad0e['include']=[{'all':!![]}]),_0x4ad0e=_[_0x49a0e0('0x25')]({},_0x4ad0e,_0x20a78d[_0x49a0e0('0x48')]),db[_0x49a0e0('0x19')][_0x49a0e0('0x52')](_0x4ad0e)['then'](handleEntityNotFound(_0x2ca795,null))[_0x49a0e0('0x58')](respondWithResult(_0x2ca795,null))['catch'](handleError(_0x2ca795,null));},exports[_0x587150('0x54')]=function(_0x8c0418,_0x445685){const _0x264b35=_0x587150;return _0x8c0418[_0x264b35('0x8')]['id']&&delete _0x8c0418[_0x264b35('0x8')]['id'],db[_0x264b35('0x19')][_0x264b35('0x52')]({'where':{'id':_0x8c0418[_0x264b35('0x5f')]['id']}})['then'](handleEntityNotFound(_0x445685,null))['then'](saveUpdates(_0x8c0418[_0x264b35('0x8')],null))[_0x264b35('0x58')](respondWithResult(_0x445685,null))[_0x264b35('0x39')](handleError(_0x445685,null));},exports[_0x587150('0xe')]=function(_0x159583,_0x2ee56f){const _0x42e190=_0x587150;return db[_0x42e190('0x19')][_0x42e190('0x52')]({'where':{'id':_0x159583['params']['id']}})['then'](handleEntityNotFound(_0x2ee56f,null))['then'](removeEntity(_0x2ee56f,null))[_0x42e190('0x39')](handleError(_0x2ee56f,null));},exports[_0x587150('0x35')]=function(_0x334fc3,_0x5e85d9){const _0x288227=_0x587150;return db[_0x288227('0x19')][_0x288227('0x35')]()['then'](respondWithResult(_0x5e85d9,null))[_0x288227('0x39')](handleError(_0x5e85d9,null));},exports[_0x587150('0xf')]=function(_0x38c85b,_0x210a04){const _0x4a0298=_0x587150,_0x4a72fb={'channel':'fax'};return _0x38c85b[_0x4a0298('0x8')]['id']&&delete _0x38c85b['body']['id'],_0x38c85b['body']['read']=!![],_0x38c85b['body']['readAt']=moment()[_0x4a0298('0x4e')](_0x4a0298('0x0')),_0x38c85b[_0x4a0298('0x8')]['UserId']=_0x38c85b[_0x4a0298('0x8')]['UserId']||_0x38c85b[_0x4a0298('0x38')]['id'],db[_0x4a0298('0x19')]['findOne']({'where':{'id':_0x38c85b['params']['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':_0x4a0298('0x2d')}]})[_0x4a0298('0x58')](handleEntityNotFound(_0x210a04,null))[_0x4a0298('0x58')](saveUpdates(_0x38c85b[_0x4a0298('0x8')],null))[_0x4a0298('0x58')](function(_0x1f6846){const _0x1ba739=_0x4a0298;if(_0x1f6846)return _0x4a72fb['message']=_0x1f6846['get']({'plain':!![]}),db[_0x1ba739('0x66')]['findOne']({'where':{'id':_0x1f6846[_0x1ba739('0x2c')]}});return null;})[_0x4a0298('0x58')](handleEntityNotFound(_0x210a04,null))[_0x4a0298('0x58')](function(_0x4d869c){const _0x341960=_0x4a0298;if(_0x4d869c)return _0x4d869c['update']({'UserId':_0x38c85b[_0x341960('0x8')]['UserId'],'read1stAt':_[_0x341960('0x53')](_0x4d869c[_0x341960('0x4c')])?moment()[_0x341960('0x4e')](_0x341960('0x0')):undefined});return null;})['then'](function(_0x6decf6){const _0x1b47b5=_0x4a0298;if(_0x6decf6)return _0x4a72fb[_0x1b47b5('0x67')]=_0x6decf6[_0x1b47b5('0x40')]({'plain':!![]}),interaction_log[_0x1b47b5('0x36')]('[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x38c85b[_0x1b47b5('0x38')]['id'],_0x38c85b[_0x1b47b5('0x38')][_0x1b47b5('0x2e')],_0x38c85b[_0x1b47b5('0x38')][_0x1b47b5('0x23')],_0x4a72fb[_0x1b47b5('0x67')]['id'],_0x38c85b[_0x1b47b5('0x8')]?JSON[_0x1b47b5('0x31')](_0x38c85b[_0x1b47b5('0x8')]):'null'),respondWithRpcPromise(_0x1b47b5('0x12'),_0x1b47b5('0x2'),_0x4a72fb);return null;})[_0x4a0298('0x58')](function(_0x1b139a){const _0xaef0a3=_0x4a0298;if(_0x1b139a){if(_0x38c85b[_0xaef0a3('0x8')][_0xaef0a3('0x26')])return _0x4a72fb[_0xaef0a3('0x1c')][_0xaef0a3('0x41')]=util[_0xaef0a3('0x4e')](_0xaef0a3('0x16'),_0x38c85b[_0xaef0a3('0x38')][_0xaef0a3('0x2e')]),_0x4a72fb[_0xaef0a3('0x1c')][_0xaef0a3('0x6')]=_0x4a72fb[_0xaef0a3('0x6')],_0x4a72fb['message'][_0xaef0a3('0x24')]=_0xaef0a3('0xf'),respondWithRpcPromise('EventManager',_0xaef0a3('0x4a'),{'event':_0xaef0a3('0x50'),'message':_0x4a72fb['message']},client9002)[_0xaef0a3('0x58')](function(){return _0x4a72fb;});return _0x4a72fb;}return null;})[_0x4a0298('0x58')](respondWithResult(_0x210a04,null))[_0x4a0298('0x39')](handleError(_0x210a04,null));},exports[_0x587150('0x49')]=function(_0x4c5d62,_0x5898e9){const _0x392180=_0x587150,_0x209a7d={'agent':{},'channel':_0x392180('0x3c')};return _0x4c5d62[_0x392180('0x8')]['id']&&delete _0x4c5d62[_0x392180('0x8')]['id'],_0x4c5d62[_0x392180('0x8')][_0x392180('0x22')]=_0x4c5d62['body'][_0x392180('0x22')]||_0x4c5d62[_0x392180('0x38')]['id'],_0x209a7d['agent']['id']=_0x4c5d62['body'][_0x392180('0x22')],db['FaxMessage'][_0x392180('0x52')]({'where':{'id':_0x4c5d62[_0x392180('0x5f')]['id'],'UserId':null}})[_0x392180('0x58')](handleEntityNotFound(_0x5898e9,null))['then'](function(_0x15938d){const _0x16a1e0=_0x392180;if(_0x15938d)return _0x209a7d[_0x16a1e0('0x1c')]=_0x15938d[_0x16a1e0('0x40')]({'plain':!![]}),db[_0x16a1e0('0x66')]['findOne']({'where':{'id':_0x15938d[_0x16a1e0('0x2c')]}});return null;})[_0x392180('0x58')](handleEntityNotFound(_0x5898e9,null))[_0x392180('0x58')](function(_0x3cd309){const _0x49ceca=_0x392180;if(_0x3cd309)return _0x209a7d[_0x49ceca('0x67')]=_0x3cd309[_0x49ceca('0x40')]({'plain':!![]}),interaction_log[_0x49ceca('0x36')](_0x49ceca('0x60'),_0x4c5d62[_0x49ceca('0x38')]['id'],_0x4c5d62[_0x49ceca('0x38')]['name'],_0x4c5d62[_0x49ceca('0x38')][_0x49ceca('0x23')],_0x209a7d[_0x49ceca('0x67')]['id'],_0x4c5d62[_0x49ceca('0x8')]?JSON[_0x49ceca('0x31')](_0x4c5d62[_0x49ceca('0x8')]):_0x49ceca('0x3e')),respondWithRpcPromise('RejectMessage',_0x49ceca('0x27'),_0x209a7d);return null;})[_0x392180('0x58')](function(_0x1d4cb3){const _0x4fe145=_0x392180;if(_0x1d4cb3)return _0x1d4cb3[_0x4fe145('0x1c')][_0x4fe145('0x41')]=util['format']('SIP/%s',_0x4c5d62['user']['name']),_0x1d4cb3[_0x4fe145('0x1c')][_0x4fe145('0x6')]=_0x209a7d['channel'],_0x1d4cb3[_0x4fe145('0x1c')][_0x4fe145('0x24')]=_0x4fe145('0x49'),respondWithRpcPromise(_0x4fe145('0x4a'),_0x4fe145('0x4a'),{'event':_0x4fe145('0x63'),'message':_0x1d4cb3[_0x4fe145('0x1c')]},client9002),_0x209a7d;return null;})[_0x392180('0x58')](respondWithResult(_0x5898e9,null))[_0x392180('0x39')](handleError(_0x5898e9,null));},exports[_0x587150('0x1b')]=function(_0x2d5e25,_0x493198){const _0x2decff=_0x587150;let _0x52bc32;return db[_0x2decff('0x19')][_0x2decff('0x1b')](_0x2d5e25['body'],{})[_0x2decff('0x58')](function(_0x886b0e){const _0x6adfb1=_0x2decff;return _0x52bc32=_0x886b0e,db[_0x6adfb1('0x4b')][_0x6adfb1('0x52')]({'where':{'id':_0x52bc32[_0x6adfb1('0xa')]}});})['then'](function(_0x199bba){const _0x46e976=_0x2decff;if(_[_0x46e976('0x53')](_0x199bba))return;else return _0x52bc32['fax']=_0x199bba[_0x46e976('0x3c')],db[_0x46e976('0x3b')][_0x46e976('0x52')]({'where':{'id':_0x52bc32[_0x46e976('0x32')]}});})[_0x2decff('0x58')](function(_0x48ae73){const _0x19cdf4=_0x2decff;return respondWithRpcPromise(_0x19cdf4('0x13'),_0x19cdf4('0x13'),{'FaxAccountId':_['isNil'](_0x2d5e25['body'])?undefined:_0x2d5e25[_0x19cdf4('0x8')]['FaxAccountId'],'path':_['isNil'](_0x48ae73)?undefined:util[_0x19cdf4('0x4e')](_0x19cdf4('0x46'),_0x48ae73['basename']),'fax':_[_0x19cdf4('0x53')](_0x52bc32[_0x19cdf4('0x3c')])?undefined:_0x52bc32[_0x19cdf4('0x3c')],'AttachmentId':_0x52bc32[_0x19cdf4('0x32')]},client9002);})[_0x2decff('0x58')](respondWithResult(_0x493198,0xc9))['catch'](handleError(_0x493198,null));},exports['download']=function(_0x2221b4,_0x4d53ee){const _0x35ac7c=_0x587150,_0x51476c=path[_0x35ac7c('0x5')](config[_0x35ac7c('0x61')],'server','files',_0x35ac7c('0x9'));return db[_0x35ac7c('0x19')][_0x35ac7c('0x52')]({'where':{'id':_0x2221b4[_0x35ac7c('0x5f')]['id']},'include':[{'model':db[_0x35ac7c('0x3b')],'as':'Attachment'}]})[_0x35ac7c('0x58')](handleEntityNotFound(_0x4d53ee,null))[_0x35ac7c('0x58')](function(_0x1800cf){const _0x570250=_0x35ac7c;if(_0x1800cf)return _0x4d53ee['download'](path[_0x570250('0x5')](_0x51476c,_0x1800cf[_0x570250('0x3b')]['basename']));})[_0x35ac7c('0x39')](handleError(_0x4d53ee,null));}; \ No newline at end of file +const a205_0x59dd=['intersection','EventManager','channel','read','filter','merge','FaxInteractionId','SIP/%s','format','error','status','findOne','keys','sort','fax','rows','lodash','attributes','debug','SendFax','show','interface','[FAXMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','stringify','join','where','model','info','AcceptMessage','key','map','set','user','length','rawAttributes','http','body','destroy','count','files','FaxMessage','download','Contact','read1stAt','create','name','result','basename','moment','FaxAccountId','pick','like','query','../../config/logger','request','request\x20sent','offset','send','fields','rejectmessage','FaxInteraction','null','order','fieldName','update','ContactId','catch','../../mysqldb','type','client','sequelize','Attachment','then','CmContact','jayson/promise','Content-Range','limit','stack','code','event','include','reject','FaxMessage,\x20%s,\x20%s','attachments','get','end','nolimit','accept','manual','RejectMessage','index','FaxMessage,\x20%s,\x20%s,\x20%s','fax-interactions','YYYY-MM-DD\x20HH:mm:ss','UserId','interaction','filters','includeAll','message','acceptmessage','options','json','../../components/parsers/qs','server','rejectMessage','root','AttachmentId','isNil','params','findAll','describe'];(function(_0x5a7617,_0x59dd4c){const _0x5431c0=function(_0x27d5ea){while(--_0x27d5ea){_0x5a7617['push'](_0x5a7617['shift']());}};_0x5431c0(++_0x59dd4c);}(a205_0x59dd,0xa4));const a205_0x5431=function(_0x5a7617,_0x59dd4c){_0x5a7617=_0x5a7617-0x0;let _0x5431c0=a205_0x59dd[_0x5a7617];return _0x5431c0;};const _0x4bd5d9=a205_0x5431;'use strict';const moment=require(_0x4bd5d9('0x6a')),util=require('util'),path=require('path'),_=require(_0x4bd5d9('0x4a')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x4bd5d9('0x31')),logger=require(_0x4bd5d9('0x0'))('api'),config=require('../../config/environment'),interaction_log=require('../../config/logger')(_0x4bd5d9('0x27')),db=require(_0x4bd5d9('0xe'))['db'],{Op}=require(_0x4bd5d9('0x11'));require('./faxMessage.socket')['register'](socket);const jayson=require(_0x4bd5d9('0x15')),client=jayson[_0x4bd5d9('0x10')][_0x4bd5d9('0x5d')]({'port':0x232c}),client9002=jayson['client'][_0x4bd5d9('0x5d')]({'port':0x232a});function respondWithRpcPromise(_0x27d5ea,_0x493671,_0x5aebbf,_0x44df37){return new Promise(function(_0x566093,_0x5b1ca6){const _0x16088c=a205_0x5431,_0x2a2b2a=_0x44df37||client;return _0x2a2b2a[_0x16088c('0x1')](_0x27d5ea,_0x5aebbf)[_0x16088c('0x13')](function(_0x495763){const _0x134f7c=_0x16088c;logger[_0x134f7c('0x55')]('FaxMessage,\x20%s,\x20%s',_0x493671,'request\x20sent'),logger[_0x134f7c('0x4c')](_0x134f7c('0x26'),_0x493671,'request\x20sent',JSON[_0x134f7c('0x51')](_0x495763));if(_0x495763[_0x134f7c('0x43')]){if(_0x495763['error'][_0x134f7c('0x19')]===0x1f4)return logger[_0x134f7c('0x43')](_0x134f7c('0x1d'),_0x493671,_0x495763[_0x134f7c('0x43')][_0x134f7c('0x2d')]),_0x5b1ca6(_0x495763[_0x134f7c('0x43')]['message']);return logger['error']('FaxMessage,\x20%s,\x20%s',_0x493671,_0x495763[_0x134f7c('0x43')][_0x134f7c('0x2d')]),_0x566093(_0x495763[_0x134f7c('0x43')][_0x134f7c('0x2d')]);}else logger[_0x134f7c('0x55')](_0x134f7c('0x1d'),_0x493671,_0x134f7c('0x2')),_0x566093(_0x495763[_0x134f7c('0x68')][_0x134f7c('0x2d')]);})[_0x16088c('0xd')](function(_0x5a95af){const _0x342774=_0x16088c;logger[_0x342774('0x43')](_0x342774('0x1d'),_0x493671,_0x5a95af),_0x5b1ca6(_0x5a95af);});});}function respondWithResult(_0xfb5075,_0x4c5142){return _0x4c5142=_0x4c5142||0xc8,function(_0x4a19a5){const _0x587771=a205_0x5431;if(_0x4a19a5)return _0xfb5075[_0x587771('0x44')](_0x4c5142)['json'](_0x4a19a5);};}function respondWithFilteredResult(_0x270f97,_0xfe540a){return function(_0x212502){const _0x575b86=a205_0x5431;if(_0x212502){const _0x29d6ce=_0x212502[_0x575b86('0x60')],_0x31b0d0=_0xfe540a[_0x575b86('0x3')];let _0x4fee42=_0xfe540a[_0x575b86('0x3')]+_0xfe540a[_0x575b86('0x17')],_0x39d850;return _0x4fee42>=_0x29d6ce?(_0x4fee42=_0x29d6ce,_0x39d850=0xc8):_0x39d850=0xce,_0x270f97[_0x575b86('0x44')](_0x39d850),_0x270f97[_0x575b86('0x59')](_0x575b86('0x16'),_0x31b0d0+'-'+_0x4fee42+'/'+_0x29d6ce)[_0x575b86('0x30')](_0x212502);}return null;};}function saveUpdates(_0x58f4c9){return function(_0x45ecd7){const _0x2400e4=a205_0x5431;if(_0x45ecd7)return _0x45ecd7[_0x2400e4('0xb')](_0x58f4c9)[_0x2400e4('0x13')](function(_0x4c53c6){return _0x4c53c6;});return null;};}function removeEntity(_0x5c06a2){return function(_0x42f664){const _0x4aa420=a205_0x5431;if(_0x42f664)return _0x42f664[_0x4aa420('0x5f')]()[_0x4aa420('0x13')](function(){const _0x50936a=_0x4aa420;_0x5c06a2[_0x50936a('0x44')](0xcc)[_0x50936a('0x20')]();});};}function handleEntityNotFound(_0x56d6f9){return function(_0x1a950a){return!_0x1a950a&&_0x56d6f9['sendStatus'](0x194),_0x1a950a;};}function handleError(_0x1e55ed,_0x332a54){return _0x332a54=_0x332a54||0x1f4,function(_0x59fad2){const _0x3ff1f8=a205_0x5431;logger[_0x3ff1f8('0x43')](_0x59fad2[_0x3ff1f8('0x18')]),_0x59fad2['name']&&delete _0x59fad2[_0x3ff1f8('0x67')],_0x1e55ed[_0x3ff1f8('0x44')](_0x332a54)[_0x3ff1f8('0x4')](_0x59fad2);};}exports[_0x4bd5d9('0x25')]=function(_0x3ba74a,_0x2cc6fb){const _0x5764e6=_0x4bd5d9;let _0x2fc9b7={};const _0x2a7c7e={},_0x5281af={'count':0x0,'rows':[]},_0x1c4125=_[_0x5764e6('0x58')](db[_0x5764e6('0x62')][_0x5764e6('0x5c')],function(_0x511ff9){const _0x5bd41e=_0x5764e6;return{'name':_0x511ff9[_0x5bd41e('0xa')],'type':_0x511ff9[_0x5bd41e('0xf')][_0x5bd41e('0x57')]};});_0x2a7c7e['model']=_[_0x5764e6('0x58')](_0x1c4125,_0x5764e6('0x67')),_0x2a7c7e[_0x5764e6('0x6e')]=_[_0x5764e6('0x46')](_0x3ba74a['query']),_0x2a7c7e['filters']=_['intersection'](_0x2a7c7e[_0x5764e6('0x54')],_0x2a7c7e[_0x5764e6('0x6e')]),_0x2fc9b7['attributes']=_[_0x5764e6('0x3a')](_0x2a7c7e['model'],qs[_0x5764e6('0x5')](_0x3ba74a['query'][_0x5764e6('0x5')])),_0x2fc9b7[_0x5764e6('0x4b')]=_0x2fc9b7[_0x5764e6('0x4b')][_0x5764e6('0x5b')]?_0x2fc9b7[_0x5764e6('0x4b')]:_0x2a7c7e[_0x5764e6('0x54')];typeof _0x3ba74a[_0x5764e6('0x6e')][_0x5764e6('0x21')]==='undefined'&&(_0x2fc9b7['limit']=qs[_0x5764e6('0x17')](_0x3ba74a[_0x5764e6('0x6e')]['limit']),_0x2fc9b7['offset']=qs['offset'](_0x3ba74a['query'][_0x5764e6('0x3')]));_0x2fc9b7[_0x5764e6('0x9')]=qs['sort'](_0x3ba74a[_0x5764e6('0x6e')][_0x5764e6('0x47')]),_0x2fc9b7[_0x5764e6('0x53')]=qs[_0x5764e6('0x2b')](_[_0x5764e6('0x6c')](_0x3ba74a['query'],_0x2a7c7e[_0x5764e6('0x2b')]),_0x1c4125);_0x3ba74a[_0x5764e6('0x6e')][_0x5764e6('0x3e')]&&(_0x2fc9b7[_0x5764e6('0x53')]=_[_0x5764e6('0x3f')](_0x2fc9b7[_0x5764e6('0x53')],{[Op['or']]:_[_0x5764e6('0x58')](_0x1c4125,function(_0x112d31){const _0x157da2=_0x5764e6;if(_0x112d31[_0x157da2('0xf')]!=='VIRTUAL'){const _0x3e2fba={};return _0x3e2fba[_0x112d31[_0x157da2('0x67')]]={[Op[_0x157da2('0x6d')]]:'%'+_0x3ba74a[_0x157da2('0x6e')][_0x157da2('0x3e')]+'%'},_0x3e2fba;}})}));_0x2fc9b7=_[_0x5764e6('0x3f')]({},_0x2fc9b7,_0x3ba74a[_0x5764e6('0x2f')]);const _0x35a204={'where':_0x2fc9b7[_0x5764e6('0x53')]};return db[_0x5764e6('0x62')][_0x5764e6('0x60')](_0x35a204)['then'](function(_0x5e389d){const _0x27aab6=_0x5764e6;return _0x5281af[_0x27aab6('0x60')]=_0x5e389d,_0x3ba74a[_0x27aab6('0x6e')][_0x27aab6('0x2c')]&&(_0x2fc9b7[_0x27aab6('0x1b')]=[{'all':!![]}]),db['FaxMessage'][_0x27aab6('0x38')](_0x2fc9b7);})[_0x5764e6('0x13')](function(_0x59038f){const _0xffa6b3=_0x5764e6;return _0x5281af[_0xffa6b3('0x49')]=_0x59038f,_0x5281af;})[_0x5764e6('0x13')](respondWithFilteredResult(_0x2cc6fb,_0x2fc9b7))[_0x5764e6('0xd')](handleError(_0x2cc6fb,null));},exports[_0x4bd5d9('0x4e')]=function(_0x165ac7,_0x55927d){const _0x31fd7d=_0x4bd5d9;let _0x338e9b={'raw':!![],'where':{'id':_0x165ac7[_0x31fd7d('0x37')]['id']}};const _0x255f31={};return _0x255f31[_0x31fd7d('0x54')]=_[_0x31fd7d('0x46')](db['FaxMessage']['rawAttributes']),_0x255f31[_0x31fd7d('0x6e')]=_['keys'](_0x165ac7[_0x31fd7d('0x6e')]),_0x255f31[_0x31fd7d('0x2b')]=_[_0x31fd7d('0x3a')](_0x255f31[_0x31fd7d('0x54')],_0x255f31['query']),_0x338e9b[_0x31fd7d('0x4b')]=_['intersection'](_0x255f31[_0x31fd7d('0x54')],qs[_0x31fd7d('0x5')](_0x165ac7[_0x31fd7d('0x6e')][_0x31fd7d('0x5')])),_0x338e9b[_0x31fd7d('0x4b')]=_0x338e9b[_0x31fd7d('0x4b')]['length']?_0x338e9b[_0x31fd7d('0x4b')]:_0x255f31[_0x31fd7d('0x54')],_0x165ac7['query'][_0x31fd7d('0x2c')]&&(_0x338e9b[_0x31fd7d('0x1b')]=[{'all':!![]}]),_0x338e9b=_['merge']({},_0x338e9b,_0x165ac7[_0x31fd7d('0x2f')]),db[_0x31fd7d('0x62')][_0x31fd7d('0x45')](_0x338e9b)['then'](handleEntityNotFound(_0x55927d,null))['then'](respondWithResult(_0x55927d,null))[_0x31fd7d('0xd')](handleError(_0x55927d,null));},exports[_0x4bd5d9('0xb')]=function(_0x4a2aea,_0x3992ef){const _0x5dd9be=_0x4bd5d9;return _0x4a2aea['body']['id']&&delete _0x4a2aea[_0x5dd9be('0x5e')]['id'],db[_0x5dd9be('0x62')]['findOne']({'where':{'id':_0x4a2aea[_0x5dd9be('0x37')]['id']}})[_0x5dd9be('0x13')](handleEntityNotFound(_0x3992ef,null))[_0x5dd9be('0x13')](saveUpdates(_0x4a2aea['body'],null))[_0x5dd9be('0x13')](respondWithResult(_0x3992ef,null))[_0x5dd9be('0xd')](handleError(_0x3992ef,null));},exports[_0x4bd5d9('0x5f')]=function(_0x5be030,_0x2b647d){const _0x224b19=_0x4bd5d9;return db['FaxMessage']['findOne']({'where':{'id':_0x5be030[_0x224b19('0x37')]['id']}})[_0x224b19('0x13')](handleEntityNotFound(_0x2b647d,null))['then'](removeEntity(_0x2b647d,null))[_0x224b19('0xd')](handleError(_0x2b647d,null));},exports[_0x4bd5d9('0x39')]=function(_0x478fd5,_0x6847ee){const _0x4adda5=_0x4bd5d9;return db['FaxMessage'][_0x4adda5('0x39')]()[_0x4adda5('0x13')](respondWithResult(_0x6847ee,null))[_0x4adda5('0xd')](handleError(_0x6847ee,null));},exports[_0x4bd5d9('0x22')]=function(_0x3ba759,_0x6590ad){const _0x22e343=_0x4bd5d9,_0x32561e={'channel':_0x22e343('0x48')};return _0x3ba759[_0x22e343('0x5e')]['id']&&delete _0x3ba759[_0x22e343('0x5e')]['id'],_0x3ba759[_0x22e343('0x5e')][_0x22e343('0x3d')]=!![],_0x3ba759[_0x22e343('0x5e')]['readAt']=moment()['format'](_0x22e343('0x28')),_0x3ba759['body'][_0x22e343('0x29')]=_0x3ba759[_0x22e343('0x5e')]['UserId']||_0x3ba759['user']['id'],db[_0x22e343('0x62')]['findOne']({'where':{'id':_0x3ba759[_0x22e343('0x37')]['id'],'UserId':null},'include':[{'model':db[_0x22e343('0x14')],'as':_0x22e343('0x64')}]})[_0x22e343('0x13')](handleEntityNotFound(_0x6590ad,null))['then'](saveUpdates(_0x3ba759[_0x22e343('0x5e')],null))[_0x22e343('0x13')](function(_0x154fec){const _0x3c9da7=_0x22e343;if(_0x154fec)return _0x32561e[_0x3c9da7('0x2d')]=_0x154fec[_0x3c9da7('0x1f')]({'plain':!![]}),db[_0x3c9da7('0x7')][_0x3c9da7('0x45')]({'where':{'id':_0x154fec[_0x3c9da7('0x40')]}});return null;})[_0x22e343('0x13')](handleEntityNotFound(_0x6590ad,null))[_0x22e343('0x13')](function(_0x1e9aaa){const _0x3527f2=_0x22e343;if(_0x1e9aaa)return _0x1e9aaa[_0x3527f2('0xb')]({'UserId':_0x3ba759[_0x3527f2('0x5e')][_0x3527f2('0x29')],'read1stAt':_[_0x3527f2('0x36')](_0x1e9aaa[_0x3527f2('0x65')])?moment()['format'](_0x3527f2('0x28')):undefined});return null;})['then'](function(_0x5d28b9){const _0x554740=_0x22e343;if(_0x5d28b9)return _0x32561e[_0x554740('0x2a')]=_0x5d28b9[_0x554740('0x1f')]({'plain':!![]}),interaction_log[_0x554740('0x55')]('[FAXMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x3ba759[_0x554740('0x5a')]['id'],_0x3ba759[_0x554740('0x5a')][_0x554740('0x67')],_0x3ba759['user']['role'],_0x32561e['interaction']['id'],_0x3ba759[_0x554740('0x5e')]?JSON[_0x554740('0x51')](_0x3ba759[_0x554740('0x5e')]):_0x554740('0x8')),respondWithRpcPromise(_0x554740('0x56'),'acceptMessage',_0x32561e);return null;})[_0x22e343('0x13')](function(_0x379fbc){const _0x5e17b1=_0x22e343;if(_0x379fbc){if(_0x3ba759[_0x5e17b1('0x5e')][_0x5e17b1('0x23')])return _0x32561e['message'][_0x5e17b1('0x4f')]=util[_0x5e17b1('0x42')](_0x5e17b1('0x41'),_0x3ba759['user'][_0x5e17b1('0x67')]),_0x32561e['message'][_0x5e17b1('0x3c')]=_0x32561e[_0x5e17b1('0x3c')],_0x32561e[_0x5e17b1('0x2d')][_0x5e17b1('0x1a')]=_0x5e17b1('0x22'),respondWithRpcPromise(_0x5e17b1('0x3b'),_0x5e17b1('0x3b'),{'event':_0x5e17b1('0x2e'),'message':_0x32561e[_0x5e17b1('0x2d')]},client9002)[_0x5e17b1('0x13')](function(){return _0x32561e;});return _0x32561e;}return null;})['then'](respondWithResult(_0x6590ad,null))[_0x22e343('0xd')](handleError(_0x6590ad,null));},exports[_0x4bd5d9('0x1c')]=function(_0x528d70,_0x32ccc1){const _0x248c65=_0x4bd5d9,_0x3eed88={'agent':{},'channel':_0x248c65('0x48')};return _0x528d70[_0x248c65('0x5e')]['id']&&delete _0x528d70[_0x248c65('0x5e')]['id'],_0x528d70['body']['UserId']=_0x528d70[_0x248c65('0x5e')]['UserId']||_0x528d70[_0x248c65('0x5a')]['id'],_0x3eed88['agent']['id']=_0x528d70[_0x248c65('0x5e')][_0x248c65('0x29')],db['FaxMessage'][_0x248c65('0x45')]({'where':{'id':_0x528d70[_0x248c65('0x37')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x32ccc1,null))[_0x248c65('0x13')](function(_0x594bea){const _0x5139b3=_0x248c65;if(_0x594bea)return _0x3eed88['message']=_0x594bea['get']({'plain':!![]}),db[_0x5139b3('0x7')][_0x5139b3('0x45')]({'where':{'id':_0x594bea[_0x5139b3('0x40')]}});return null;})[_0x248c65('0x13')](handleEntityNotFound(_0x32ccc1,null))[_0x248c65('0x13')](function(_0x2cbf2d){const _0x5c6202=_0x248c65;if(_0x2cbf2d)return _0x3eed88['interaction']=_0x2cbf2d[_0x5c6202('0x1f')]({'plain':!![]}),interaction_log[_0x5c6202('0x55')](_0x5c6202('0x50'),_0x528d70[_0x5c6202('0x5a')]['id'],_0x528d70[_0x5c6202('0x5a')]['name'],_0x528d70[_0x5c6202('0x5a')]['role'],_0x3eed88[_0x5c6202('0x2a')]['id'],_0x528d70[_0x5c6202('0x5e')]?JSON[_0x5c6202('0x51')](_0x528d70['body']):_0x5c6202('0x8')),respondWithRpcPromise(_0x5c6202('0x24'),_0x5c6202('0x33'),_0x3eed88);return null;})[_0x248c65('0x13')](function(_0xd21ce2){const _0x157abd=_0x248c65;if(_0xd21ce2)return _0xd21ce2['message']['interface']=util['format'](_0x157abd('0x41'),_0x528d70['user'][_0x157abd('0x67')]),_0xd21ce2[_0x157abd('0x2d')][_0x157abd('0x3c')]=_0x3eed88['channel'],_0xd21ce2[_0x157abd('0x2d')][_0x157abd('0x1a')]=_0x157abd('0x1c'),respondWithRpcPromise(_0x157abd('0x3b'),_0x157abd('0x3b'),{'event':_0x157abd('0x6'),'message':_0xd21ce2[_0x157abd('0x2d')]},client9002),_0x3eed88;return null;})[_0x248c65('0x13')](respondWithResult(_0x32ccc1,null))[_0x248c65('0xd')](handleError(_0x32ccc1,null));},exports['create']=function(_0x48ccd4,_0x430a1e){const _0x2832cf=_0x4bd5d9;let _0x3924f9;return db[_0x2832cf('0x62')][_0x2832cf('0x66')](_0x48ccd4[_0x2832cf('0x5e')],{})['then'](function(_0x281e1e){const _0x58cc69=_0x2832cf;return _0x3924f9=_0x281e1e,db['CmContact'][_0x58cc69('0x45')]({'where':{'id':_0x3924f9[_0x58cc69('0xc')]}});})[_0x2832cf('0x13')](function(_0x507b04){const _0x53a0be=_0x2832cf;if(_[_0x53a0be('0x36')](_0x507b04))return;else return _0x3924f9['fax']=_0x507b04[_0x53a0be('0x48')],db['Attachment'][_0x53a0be('0x45')]({'where':{'id':_0x3924f9[_0x53a0be('0x35')]}});})[_0x2832cf('0x13')](function(_0x5347c3){const _0x4d76ed=_0x2832cf;return respondWithRpcPromise('SendFax',_0x4d76ed('0x4d'),{'FaxAccountId':_[_0x4d76ed('0x36')](_0x48ccd4[_0x4d76ed('0x5e')])?undefined:_0x48ccd4[_0x4d76ed('0x5e')][_0x4d76ed('0x6b')],'path':_['isNil'](_0x5347c3)?undefined:util[_0x4d76ed('0x42')]('/var/opt/motion2/server/files/attachments/%s',_0x5347c3[_0x4d76ed('0x69')]),'fax':_[_0x4d76ed('0x36')](_0x3924f9[_0x4d76ed('0x48')])?undefined:_0x3924f9[_0x4d76ed('0x48')],'AttachmentId':_0x3924f9['AttachmentId']},client9002);})[_0x2832cf('0x13')](respondWithResult(_0x430a1e,0xc9))[_0x2832cf('0xd')](handleError(_0x430a1e,null));},exports[_0x4bd5d9('0x63')]=function(_0xbdc39d,_0x4c1a98){const _0x10f833=_0x4bd5d9,_0x2f8900=path[_0x10f833('0x52')](config[_0x10f833('0x34')],_0x10f833('0x32'),_0x10f833('0x61'),_0x10f833('0x1e'));return db['FaxMessage'][_0x10f833('0x45')]({'where':{'id':_0xbdc39d['params']['id']},'include':[{'model':db[_0x10f833('0x12')],'as':_0x10f833('0x12')}]})[_0x10f833('0x13')](handleEntityNotFound(_0x4c1a98,null))[_0x10f833('0x13')](function(_0x3644ed){const _0x5c74c3=_0x10f833;if(_0x3644ed)return _0x4c1a98['download'](path[_0x5c74c3('0x52')](_0x2f8900,_0x3644ed['Attachment'][_0x5c74c3('0x69')]));})['catch'](handleError(_0x4c1a98,null));}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.events.js b/server/api/faxMessage/faxMessage.events.js index f92ab5c..125d3c2 100644 --- a/server/api/faxMessage/faxMessage.events.js +++ b/server/api/faxMessage/faxMessage.events.js @@ -1 +1 @@ -const a206_0x3afa=['../../mysqldb','exports','addHook','FaxMessage','remove','undefined','update','save','emit','setMaxListeners'];(function(_0x39e737,_0x3afa5a){const _0x40bcb2=function(_0x11f7ad){while(--_0x11f7ad){_0x39e737['push'](_0x39e737['shift']());}};_0x40bcb2(++_0x3afa5a);}(a206_0x3afa,0x1b0));const a206_0x40bc=function(_0x39e737,_0x3afa5a){_0x39e737=_0x39e737-0x0;let _0x40bcb2=a206_0x3afa[_0x39e737];return _0x40bcb2;};const _0x407297=a206_0x40bc;'use strict';const EventEmitter=require('events'),FaxMessage=require(_0x407297('0x8'))['db'][_0x407297('0x1')],FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0x407297('0x7')](0x0);const events={'afterCreate':_0x407297('0x5'),'afterUpdate':_0x407297('0x4'),'afterDestroy':_0x407297('0x2')};function emitEvent(_0x11f7ad){return function(_0x4bb689){const _0x26759b=a206_0x40bc;FaxMessageEvents[_0x26759b('0x6')](_0x11f7ad+':'+_0x4bb689['id'],_0x4bb689),FaxMessageEvents['emit'](_0x11f7ad,_0x4bb689);};}for(const e in events){if(typeof events[e]!==_0x407297('0x3')){const event=events[e];FaxMessage[_0x407297('0x0')](e,emitEvent(event));}}module[_0x407297('0x9')]=FaxMessageEvents; \ No newline at end of file +const a206_0x5719=['emit','update','addHook','save','../../mysqldb','exports','setMaxListeners'];(function(_0x47681b,_0x571982){const _0x3d14eb=function(_0x816f56){while(--_0x816f56){_0x47681b['push'](_0x47681b['shift']());}};_0x3d14eb(++_0x571982);}(a206_0x5719,0x1c0));const a206_0x3d14=function(_0x47681b,_0x571982){_0x47681b=_0x47681b-0x0;let _0x3d14eb=a206_0x5719[_0x47681b];return _0x3d14eb;};const _0x392d84=a206_0x3d14;'use strict';const EventEmitter=require('events'),FaxMessage=require(_0x392d84('0x4'))['db']['FaxMessage'],FaxMessageEvents=new EventEmitter();FaxMessageEvents[_0x392d84('0x6')](0x0);const events={'afterCreate':_0x392d84('0x3'),'afterUpdate':_0x392d84('0x1'),'afterDestroy':'remove'};function emitEvent(_0x816f56){return function(_0x30dfd2){const _0x178d8e=a206_0x3d14;FaxMessageEvents[_0x178d8e('0x0')](_0x816f56+':'+_0x30dfd2['id'],_0x30dfd2),FaxMessageEvents[_0x178d8e('0x0')](_0x816f56,_0x30dfd2);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];FaxMessage[_0x392d84('0x2')](e,emitEvent(event));}}module[_0x392d84('0x5')]=FaxMessageEvents; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.model.js b/server/api/faxMessage/faxMessage.model.js index 85f9b35..27d2c7c 100644 --- a/server/api/faxMessage/faxMessage.model.js +++ b/server/api/faxMessage/faxMessage.model.js @@ -1 +1 @@ -const a207_0x42db=['catch','secret','toLowerCase','then','fax_messages','lodash','isNil','models','direction','exports','utf8mb4','body','./faxMessage.attributes','out','UserId','createdAt','findOne','FaxMessage','fti_fax_messages','FaxInteractionId','update'];(function(_0x4677cb,_0x42dba5){const _0x57ad0a=function(_0x188409){while(--_0x188409){_0x4677cb['push'](_0x4677cb['shift']());}};_0x57ad0a(++_0x42dba5);}(a207_0x42db,0x1ab));const a207_0x57ad=function(_0x4677cb,_0x42dba5){_0x4677cb=_0x4677cb-0x0;let _0x57ad0a=a207_0x42db[_0x4677cb];return _0x57ad0a;};const _0x591cdc=a207_0x57ad;'use strict';const _=require(_0x591cdc('0x13')),attributes=require(_0x591cdc('0x5'));module[_0x591cdc('0x2')]=function(_0x188409){const _0x6f89a1=_0x591cdc,_0x1d1f27=_0x188409[_0x6f89a1('0x0')],_0x2ff8b7=_0x188409['define'](_0x6f89a1('0xa'),attributes,{'tableName':_0x6f89a1('0x12'),'paranoid':![],'indexes':[{'name':_0x6f89a1('0xb'),'fields':[_0x6f89a1('0x4')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0x49cea8){const _0x113119=_0x6f89a1,_0x4e293f=_0x49cea8['get']({'plain':!![]});(_0x4e293f[_0x113119('0x1')]['toLowerCase']()==='in'||_0x4e293f[_0x113119('0x1')][_0x113119('0x10')]()===_0x113119('0x6')&&!_0x4e293f[_0x113119('0xf')]&&!_[_0x113119('0x14')](_0x4e293f[_0x113119('0x7')]))&&_0x1d1f27['FaxInteraction'][_0x113119('0x9')]({'where':{'id':_0x4e293f[_0x113119('0xc')]}})[_0x113119('0x11')](function(_0x379ca2){const _0x328bca=_0x113119;_0x379ca2&&_0x379ca2[_0x328bca('0xd')]({'lastMsgAt':_0x4e293f[_0x328bca('0x8')],'lastMsgDirection':_0x4e293f[_0x328bca('0x1')][_0x328bca('0x10')]()});})[_0x113119('0xe')](function(_0x2de597){console['error'](_0x2de597);});}},'charset':_0x6f89a1('0x3'),'collate':'utf8mb4_unicode_ci'});return _0x2ff8b7;}; \ No newline at end of file +const a207_0x8cfb=['lodash','./faxMessage.attributes','utf8mb4','out','define','FaxInteraction','direction','exports','fax_messages','isNil','findOne','FULLTEXT','get','error','toLowerCase','models','FaxInteractionId','body','secret','fti_fax_messages'];(function(_0x548130,_0x8cfb0b){const _0x14bbf2=function(_0xdeafab){while(--_0xdeafab){_0x548130['push'](_0x548130['shift']());}};_0x14bbf2(++_0x8cfb0b);}(a207_0x8cfb,0xba));const a207_0x14bb=function(_0x548130,_0x8cfb0b){_0x548130=_0x548130-0x0;let _0x14bbf2=a207_0x8cfb[_0x548130];return _0x14bbf2;};const _0x48a83c=a207_0x14bb;'use strict';const _=require(_0x48a83c('0xe')),attributes=require(_0x48a83c('0xf'));module[_0x48a83c('0x1')]=function(_0xdeafab){const _0x4bcdec=_0x48a83c,_0x22c5c3=_0xdeafab[_0x4bcdec('0x9')],_0x1d967f=_0xdeafab[_0x4bcdec('0x12')]('FaxMessage',attributes,{'tableName':_0x4bcdec('0x2'),'paranoid':![],'indexes':[{'name':_0x4bcdec('0xd'),'fields':[_0x4bcdec('0xb')],'type':_0x4bcdec('0x5')}],'timestamps':!![],'hooks':{'afterCreate':function(_0xf46528){const _0x1fc73d=_0x4bcdec,_0x4e514d=_0xf46528[_0x1fc73d('0x6')]({'plain':!![]});(_0x4e514d[_0x1fc73d('0x0')][_0x1fc73d('0x8')]()==='in'||_0x4e514d[_0x1fc73d('0x0')][_0x1fc73d('0x8')]()===_0x1fc73d('0x11')&&!_0x4e514d[_0x1fc73d('0xc')]&&!_[_0x1fc73d('0x3')](_0x4e514d['UserId']))&&_0x22c5c3[_0x1fc73d('0x13')][_0x1fc73d('0x4')]({'where':{'id':_0x4e514d[_0x1fc73d('0xa')]}})['then'](function(_0x1a14e7){const _0x4877fa=_0x1fc73d;_0x1a14e7&&_0x1a14e7['update']({'lastMsgAt':_0x4e514d['createdAt'],'lastMsgDirection':_0x4e514d[_0x4877fa('0x0')]['toLowerCase']()});})['catch'](function(_0x4b852b){const _0x183384=_0x1fc73d;console[_0x183384('0x7')](_0x4b852b);});}},'charset':_0x4bcdec('0x10'),'collate':'utf8mb4_unicode_ci'});return _0x1d967f;}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.rpc.js b/server/api/faxMessage/faxMessage.rpc.js index ac0c275..b182c9e 100644 --- a/server/api/faxMessage/faxMessage.rpc.js +++ b/server/api/faxMessage/faxMessage.rpc.js @@ -1 +1 @@ -const a208_0x493e=['message','options','limit','UpdateFaxMessage','then','catch','info','register','../../config/logger','FaxMessage','debug','../../mysqldb','raw','./faxMessage.socket','update','../../rediscache','create','CreateFaxMessage','stringify','rpc','error','body'];(function(_0x5d3f48,_0x493efd){const _0x492b90=function(_0x4ade3a){while(--_0x4ade3a){_0x5d3f48['push'](_0x5d3f48['shift']());}};_0x492b90(++_0x493efd);}(a208_0x493e,0xdb));const a208_0x492b=function(_0x5d3f48,_0x493efd){_0x5d3f48=_0x5d3f48-0x0;let _0x492b90=a208_0x493e[_0x5d3f48];return _0x492b90;};const _0x267037=a208_0x492b;'use strict';const db=require(_0x267037('0xc'))['db'],logger=require(_0x267037('0x9'))(_0x267037('0x14')),{getSocket}=require(_0x267037('0x10')),socket=getSocket();require(_0x267037('0xe'))[_0x267037('0x8')](socket),exports[_0x267037('0x12')]=function(_0x4ade3a){const _0x3e3c93=this;return new Promise(function(_0x1e383e,_0x174f3f){const _0x4f07a2=a208_0x492b;return db['FaxMessage'][_0x4f07a2('0x11')](_0x4ade3a[_0x4f07a2('0x0')],{'raw':_0x4ade3a['options']?_0x4ade3a['options'][_0x4f07a2('0xd')]===undefined?!![]:![]:!![]})[_0x4f07a2('0x5')](function(_0x1ae021){const _0x4800bb=_0x4f07a2;logger[_0x4800bb('0x7')](_0x4800bb('0x12'),_0x4ade3a),logger['debug']('CreateFaxMessage',_0x4ade3a,JSON[_0x4800bb('0x13')](_0x1ae021)),_0x1e383e(_0x1ae021);})['catch'](function(_0x307a1d){const _0x224f36=_0x4f07a2;logger['error'](_0x224f36('0x12'),_0x307a1d[_0x224f36('0x1')],_0x4ade3a),_0x174f3f(_0x3e3c93[_0x224f36('0x15')](0x1f4,_0x307a1d[_0x224f36('0x1')]));});});},exports[_0x267037('0x4')]=function(_0x1f1816){const _0x5e8b62=this;return new Promise(function(_0x138318,_0x18e512){const _0x51c9d5=a208_0x492b;return db[_0x51c9d5('0xa')][_0x51c9d5('0xf')](_0x1f1816['body'],{'raw':_0x1f1816['options']?_0x1f1816[_0x51c9d5('0x2')][_0x51c9d5('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1f1816[_0x51c9d5('0x2')]?_0x1f1816[_0x51c9d5('0x2')]['where']||null:null,'attributes':_0x1f1816['options']?_0x1f1816['options']['attributes']||null:null,'limit':_0x1f1816[_0x51c9d5('0x2')]?_0x1f1816[_0x51c9d5('0x2')][_0x51c9d5('0x3')]||null:null})[_0x51c9d5('0x5')](function(_0x4ed2bd){const _0x44be23=_0x51c9d5;logger['info'](_0x44be23('0x4'),_0x1f1816),logger[_0x44be23('0xb')](_0x44be23('0x4'),_0x1f1816,JSON['stringify'](_0x4ed2bd)),_0x138318(_0x4ed2bd);})[_0x51c9d5('0x6')](function(_0xcea949){const _0x455994=_0x51c9d5;logger[_0x455994('0x15')](_0x455994('0x4'),_0xcea949[_0x455994('0x1')],_0x1f1816),_0x18e512(_0x5e8b62[_0x455994('0x15')](0x1f4,_0xcea949['message']));});});}; \ No newline at end of file +const a208_0x8729=['info','UpdateFaxMessage','options','debug','error','../../rediscache','../../mysqldb','./faxMessage.socket','stringify','CreateFaxMessage','then','message','../../config/logger','raw','catch','where','create','body','update','attributes','register'];(function(_0x5d43a3,_0x8729d4){const _0x1662ae=function(_0x481206){while(--_0x481206){_0x5d43a3['push'](_0x5d43a3['shift']());}};_0x1662ae(++_0x8729d4);}(a208_0x8729,0x150));const a208_0x1662=function(_0x5d43a3,_0x8729d4){_0x5d43a3=_0x5d43a3-0x0;let _0x1662ae=a208_0x8729[_0x5d43a3];return _0x1662ae;};const _0x53ff98=a208_0x1662;'use strict';const db=require(_0x53ff98('0x6'))['db'],logger=require(_0x53ff98('0xc'))('rpc'),{getSocket}=require(_0x53ff98('0x5')),socket=getSocket();require(_0x53ff98('0x7'))[_0x53ff98('0x14')](socket),exports[_0x53ff98('0x9')]=function(_0x481206){const _0x1d0e4b=this;return new Promise(function(_0xd55a2d,_0x27ab53){const _0xa18ab0=a208_0x1662;return db['FaxMessage'][_0xa18ab0('0x10')](_0x481206[_0xa18ab0('0x11')],{'raw':_0x481206[_0xa18ab0('0x2')]?_0x481206[_0xa18ab0('0x2')][_0xa18ab0('0xd')]===undefined?!![]:![]:!![]})[_0xa18ab0('0xa')](function(_0x5ee131){const _0x5544e9=_0xa18ab0;logger[_0x5544e9('0x0')](_0x5544e9('0x9'),_0x481206),logger[_0x5544e9('0x3')]('CreateFaxMessage',_0x481206,JSON[_0x5544e9('0x8')](_0x5ee131)),_0xd55a2d(_0x5ee131);})[_0xa18ab0('0xe')](function(_0x4d6ece){const _0x558ce1=_0xa18ab0;logger[_0x558ce1('0x4')](_0x558ce1('0x9'),_0x4d6ece[_0x558ce1('0xb')],_0x481206),_0x27ab53(_0x1d0e4b[_0x558ce1('0x4')](0x1f4,_0x4d6ece[_0x558ce1('0xb')]));});});},exports[_0x53ff98('0x1')]=function(_0x280f89){const _0x300518=this;return new Promise(function(_0x2c057f,_0x594d41){const _0x21f8da=a208_0x1662;return db['FaxMessage'][_0x21f8da('0x12')](_0x280f89[_0x21f8da('0x11')],{'raw':_0x280f89[_0x21f8da('0x2')]?_0x280f89[_0x21f8da('0x2')][_0x21f8da('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x280f89[_0x21f8da('0x2')]?_0x280f89[_0x21f8da('0x2')][_0x21f8da('0xf')]||null:null,'attributes':_0x280f89['options']?_0x280f89[_0x21f8da('0x2')][_0x21f8da('0x13')]||null:null,'limit':_0x280f89[_0x21f8da('0x2')]?_0x280f89[_0x21f8da('0x2')]['limit']||null:null})['then'](function(_0x261516){const _0xe404c4=_0x21f8da;logger[_0xe404c4('0x0')]('UpdateFaxMessage',_0x280f89),logger[_0xe404c4('0x3')](_0xe404c4('0x1'),_0x280f89,JSON[_0xe404c4('0x8')](_0x261516)),_0x2c057f(_0x261516);})[_0x21f8da('0xe')](function(_0x181bac){const _0x2fcef5=_0x21f8da;logger[_0x2fcef5('0x4')](_0x2fcef5('0x1'),_0x181bac[_0x2fcef5('0xb')],_0x280f89),_0x594d41(_0x300518[_0x2fcef5('0x4')](0x1f4,_0x181bac['message']));});});}; \ No newline at end of file diff --git a/server/api/faxMessage/faxMessage.socket.js b/server/api/faxMessage/faxMessage.socket.js index 962b49b..531042f 100644 --- a/server/api/faxMessage/faxMessage.socket.js +++ b/server/api/faxMessage/faxMessage.socket.js @@ -1 +1 @@ -const a209_0x63e5=['register','update','./faxMessage.events','remove','faxMessage:','save'];(function(_0x4a35a3,_0x63e54a){const _0x1df9c4=function(_0x481d90){while(--_0x481d90){_0x4a35a3['push'](_0x4a35a3['shift']());}};_0x1df9c4(++_0x63e54a);}(a209_0x63e5,0x9a));const a209_0x1df9=function(_0x4a35a3,_0x63e54a){_0x4a35a3=_0x4a35a3-0x0;let _0x1df9c4=a209_0x63e5[_0x4a35a3];return _0x1df9c4;};const _0x17a2f5=a209_0x1df9;'use strict';const FaxMessageEvents=require(_0x17a2f5('0x4')),events=[_0x17a2f5('0x1'),_0x17a2f5('0x5'),_0x17a2f5('0x3')];function createListener(_0x481d90,_0x2bcea2){return function(_0x5a93fe){_0x2bcea2['emit'](_0x481d90,_0x5a93fe);};}exports[_0x17a2f5('0x2')]=function(_0xa84be7){const _0xb96699=_0x17a2f5;for(let _0x42afff=0x0,_0xa36b2d=events['length'];_0x42afff<_0xa36b2d;_0x42afff++){const _0x2f29c0=events[_0x42afff],_0x4a6a11=createListener(_0xb96699('0x0')+_0x2f29c0,_0xa84be7);FaxMessageEvents['on'](_0x2f29c0,_0x4a6a11);}}; \ No newline at end of file +const a209_0x5648=['remove','length','save','register','emit','update'];(function(_0x29c79a,_0x5648b6){const _0x3d5d82=function(_0x5b1378){while(--_0x5b1378){_0x29c79a['push'](_0x29c79a['shift']());}};_0x3d5d82(++_0x5648b6);}(a209_0x5648,0x1c3));const a209_0x3d5d=function(_0x29c79a,_0x5648b6){_0x29c79a=_0x29c79a-0x0;let _0x3d5d82=a209_0x5648[_0x29c79a];return _0x3d5d82;};const _0x2e477d=a209_0x3d5d;'use strict';const FaxMessageEvents=require('./faxMessage.events'),events=[_0x2e477d('0x1'),_0x2e477d('0x5'),_0x2e477d('0x4')];function createListener(_0x5b1378,_0xcb6d27){return function(_0x616e){const _0x1538c=a209_0x3d5d;_0xcb6d27[_0x1538c('0x3')](_0x5b1378,_0x616e);};}exports[_0x2e477d('0x2')]=function(_0x3d71b2){const _0x4c092e=_0x2e477d;for(let _0x4e152d=0x0,_0x1696b9=events[_0x4c092e('0x0')];_0x4e152d<_0x1696b9;_0x4e152d++){const _0x438445=events[_0x4e152d],_0xad193f=createListener('faxMessage:'+_0x438445,_0x3d71b2);FaxMessageEvents['on'](_0x438445,_0xad193f);}}; \ No newline at end of file diff --git a/server/api/faxMessage/index.js b/server/api/faxMessage/index.js index 0900753..edbe0a4 100644 --- a/server/api/faxMessage/index.js +++ b/server/api/faxMessage/index.js @@ -1 +1 @@ -const a210_0x536f=['./faxMessage.controller','express','isAuthenticated','/:id/reject','../../components/auth/service','accept','/describe','../../components/interaction/service','reject','tracked','/:id/accept','show','put','create','get','fax','download','delete','index','post','/:id','destroy'];(function(_0xb9db0e,_0x536f33){const _0x208bf9=function(_0x3eedb5){while(--_0x3eedb5){_0xb9db0e['push'](_0xb9db0e['shift']());}};_0x208bf9(++_0x536f33);}(a210_0x536f,0x1e8));const a210_0x208b=function(_0xb9db0e,_0x536f33){_0xb9db0e=_0xb9db0e-0x0;let _0x208bf9=a210_0x536f[_0xb9db0e];return _0x208bf9;};const _0x2ed468=a210_0x208b;'use strict';const express=require(_0x2ed468('0x13')),router=express['Router'](),auth=require(_0x2ed468('0x0')),interaction=require(_0x2ed468('0x3')),controller=require(_0x2ed468('0x12'));router['get']('/',auth[_0x2ed468('0x14')](),controller[_0x2ed468('0xe')]),router[_0x2ed468('0xa')](_0x2ed468('0x2'),auth[_0x2ed468('0x14')](),controller['describe']),router[_0x2ed468('0xa')]('/:id',auth[_0x2ed468('0x14')](),controller[_0x2ed468('0x7')]),router[_0x2ed468('0xa')]('/:id/download',auth[_0x2ed468('0x14')](),controller[_0x2ed468('0xc')]),router[_0x2ed468('0xf')]('/',auth[_0x2ed468('0x14')](),interaction[_0x2ed468('0x5')](_0x2ed468('0xb'),'faxmessage:create'),controller[_0x2ed468('0x9')]),router[_0x2ed468('0x8')](_0x2ed468('0x10'),auth[_0x2ed468('0x14')](),controller['update']),router[_0x2ed468('0x8')](_0x2ed468('0x6'),auth['isAuthenticated'](),controller[_0x2ed468('0x1')]),router[_0x2ed468('0x8')](_0x2ed468('0x15'),auth[_0x2ed468('0x14')](),controller[_0x2ed468('0x4')]),router[_0x2ed468('0xd')](_0x2ed468('0x10'),auth[_0x2ed468('0x14')](),controller[_0x2ed468('0x11')]),module['exports']=router; \ No newline at end of file +const a210_0x1c9c=['destroy','download','Router','/:id/download','show','fax','/describe','reject','./faxMessage.controller','faxmessage:create','../../components/interaction/service','tracked','put','describe','isAuthenticated','/:id/accept','/:id/reject','exports','post','delete','get','update','/:id'];(function(_0x41a87d,_0x1c9ca9){const _0x23f716=function(_0x599b98){while(--_0x599b98){_0x41a87d['push'](_0x41a87d['shift']());}};_0x23f716(++_0x1c9ca9);}(a210_0x1c9c,0xe0));const a210_0x23f7=function(_0x41a87d,_0x1c9ca9){_0x41a87d=_0x41a87d-0x0;let _0x23f716=a210_0x1c9c[_0x41a87d];return _0x23f716;};const _0x2e0e69=a210_0x23f7;'use strict';const express=require('express'),router=express[_0x2e0e69('0x8')](),auth=require('../../components/auth/service'),interaction=require(_0x2e0e69('0x10')),controller=require(_0x2e0e69('0xe'));router[_0x2e0e69('0x3')]('/',auth[_0x2e0e69('0x14')](),controller['index']),router['get'](_0x2e0e69('0xc'),auth[_0x2e0e69('0x14')](),controller[_0x2e0e69('0x13')]),router[_0x2e0e69('0x3')](_0x2e0e69('0x5'),auth[_0x2e0e69('0x14')](),controller[_0x2e0e69('0xa')]),router[_0x2e0e69('0x3')](_0x2e0e69('0x9'),auth['isAuthenticated'](),controller[_0x2e0e69('0x7')]),router[_0x2e0e69('0x1')]('/',auth[_0x2e0e69('0x14')](),interaction[_0x2e0e69('0x11')](_0x2e0e69('0xb'),_0x2e0e69('0xf')),controller['create']),router[_0x2e0e69('0x12')](_0x2e0e69('0x5'),auth[_0x2e0e69('0x14')](),controller[_0x2e0e69('0x4')]),router[_0x2e0e69('0x12')](_0x2e0e69('0x15'),auth[_0x2e0e69('0x14')](),controller['accept']),router['put'](_0x2e0e69('0x16'),auth[_0x2e0e69('0x14')](),controller[_0x2e0e69('0xd')]),router[_0x2e0e69('0x2')]('/:id',auth[_0x2e0e69('0x14')](),controller[_0x2e0e69('0x6')]),module[_0x2e0e69('0x0')]=router; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.attributes.js b/server/api/faxQueue/faxQueue.attributes.js index c66094b..68b0627 100644 --- a/server/api/faxQueue/faxQueue.attributes.js +++ b/server/api/faxQueue/faxQueue.attributes.js @@ -1 +1 @@ -const a211_0x5c14=['STRING','INTEGER','rrmemory','beepall','roundrobin'];(function(_0x2459e1,_0x5c1418){const _0x2b4376=function(_0x55c658){while(--_0x55c658){_0x2459e1['push'](_0x2459e1['shift']());}};_0x2b4376(++_0x5c1418);}(a211_0x5c14,0xbd));const a211_0x2b43=function(_0x2459e1,_0x5c1418){_0x2459e1=_0x2459e1-0x0;let _0x2b4376=a211_0x5c14[_0x2459e1];return _0x2b4376;};const _0x3d5a5b=a211_0x2b43;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x3d5a5b('0x1')],'unique':'name','allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x3d5a5b('0x1')]},'timeout':{'type':Sequelize[_0x3d5a5b('0x2')],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM'](_0x3d5a5b('0x3'),_0x3d5a5b('0x4'),_0x3d5a5b('0x0')),'allowNull':![]},'lastAgent':{'type':Sequelize[_0x3d5a5b('0x2')],'defaultValue':0x0}}; \ No newline at end of file +const a211_0x4ebf=['INTEGER','beepall','STRING','exports','name','ENUM','roundrobin','rrmemory','sequelize'];(function(_0x2760c0,_0x4ebfc6){const _0x55937d=function(_0x32b7e6){while(--_0x32b7e6){_0x2760c0['push'](_0x2760c0['shift']());}};_0x55937d(++_0x4ebfc6);}(a211_0x4ebf,0x193));const a211_0x5593=function(_0x2760c0,_0x4ebfc6){_0x2760c0=_0x2760c0-0x0;let _0x55937d=a211_0x4ebf[_0x2760c0];return _0x55937d;};const _0x3ff63e=a211_0x5593;'use strict';const Sequelize=require(_0x3ff63e('0x1'));module[_0x3ff63e('0x5')]={'name':{'type':Sequelize[_0x3ff63e('0x4')],'unique':_0x3ff63e('0x6'),'allowNull':![],'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x3ff63e('0x4')]},'timeout':{'type':Sequelize[_0x3ff63e('0x2')],'allowNull':![],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x3ff63e('0x7')](_0x3ff63e('0x0'),_0x3ff63e('0x3'),_0x3ff63e('0x8')),'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 748d7ac..b6dc7eb 100644 --- a/server/api/faxQueue/faxQueue.controller.js +++ b/server/api/faxQueue/faxQueue.controller.js @@ -1 +1 @@ -const a212_0x226f=['FaxQueue','includeAll','update','online','catch','offset','like','sequelize','../../mysqldb','user_has_teams','format','UserId','team_has_fax_queues','Team','stack','UserFaxQueue','removeTeams','rawAttributes','order','compact','from','addAgents','every','forEach','rows','json','UserProfileResource','../../config/logger','keys','transaction','fields','model','addTeams','Content-Range','getAgents','createdAt','create','FaxQueueId','nolimit','status','limit','tq.TeamId','filter','userProfileId','VIRTUAL','all','%s/%s','register','sendStatus','end','removeAgents','merge','findOrCreate','../../components/parsers/qs','undefined','Agents','field','fieldName','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','count','intersection','key','body','then','userFaxQueue:save','./faxQueue.socket','where','attributes','destroy','util','map','role','interface','omit','set','updatedAt','UserProfileSection','emit','getMembers','length','index','userFaxQueue:remove','getTeams','findOne','name','faxPause','pick','sort','Unable\x20to\x20retrieve\x20the\x20current\x20user','describe','error','get','autoAssociation','value','each','TeamId','FaxQueues','select','params','findAll','query','filters','agent','SELECT','findAndCountAll','api','User','user','ids','toString','push','options'];(function(_0x11db7b,_0x226f06){const _0x291c76=function(_0x45db9d){while(--_0x45db9d){_0x11db7b['push'](_0x11db7b['shift']());}};_0x291c76(++_0x226f06);}(a212_0x226f,0xa3));const a212_0x291c=function(_0x11db7b,_0x226f06){_0x11db7b=_0x11db7b-0x0;let _0x291c76=a212_0x226f[_0x11db7b];return _0x291c76;};const _0x3df809=a212_0x291c;'use strict';const util=require(_0x3df809('0x12')),_=require('lodash'),squel=require('squel'),qs=require(_0x3df809('0x2')),logger=require(_0x3df809('0x58'))(_0x3df809('0x36')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x3df809('0x45'))['db'],{Op,QueryTypes}=require(_0x3df809('0x44'));require(_0x3df809('0xe'))[_0x3df809('0x6c')](socket);function respondWithStatusCode(_0x45db9d,_0x556bd9){return _0x556bd9=_0x556bd9||0xcc,function(_0x55ef33){const _0x54d347=a212_0x291c;if(_0x55ef33)return _0x45db9d[_0x54d347('0x6d')](_0x556bd9);return _0x45db9d[_0x54d347('0x64')](_0x556bd9)[_0x54d347('0x6e')]();};}function respondWithResult(_0x68d6dc,_0x419305){return _0x419305=_0x419305||0xc8,function(_0x338263){const _0x21c75d=a212_0x291c;if(_0x338263)return _0x68d6dc[_0x21c75d('0x64')](_0x419305)[_0x21c75d('0x56')](_0x338263);};}function respondWithFilteredResult(_0x247493,_0x34bfa9){return function(_0x3e2b61){const _0x20670a=a212_0x291c;if(_0x3e2b61){const _0x4c47f1=_0x3e2b61['count'],_0x190b26=_0x34bfa9[_0x20670a('0x42')];let _0x47af9e=_0x34bfa9[_0x20670a('0x42')]+_0x34bfa9[_0x20670a('0x65')],_0x12d93a;return _0x47af9e>=_0x4c47f1?(_0x47af9e=_0x4c47f1,_0x12d93a=0xc8):_0x12d93a=0xce,_0x247493[_0x20670a('0x64')](_0x12d93a),_0x247493[_0x20670a('0x17')](_0x20670a('0x5e'),_0x190b26+'-'+_0x47af9e+'/'+_0x4c47f1)[_0x20670a('0x56')](_0x3e2b61);}return null;};}function saveUpdates(_0x137681){return function(_0x339e98){const _0x1839f6=a212_0x291c;if(_0x339e98)return _0x339e98[_0x1839f6('0x3f')](_0x137681)['then'](function(_0x1e449b){return _0x1e449b;});return null;};}function removeEntity(_0xac545e){return function(_0x37638b){const _0x22a726=a212_0x291c;if(_0x37638b)return _0x37638b[_0x22a726('0x11')]()[_0x22a726('0xc')](function(){const _0x11e822=_0x22a726,_0x37807c=_0x37638b[_0x11e822('0x28')]({'plain':!![]}),_0x532706=_0x11e822('0x2d');return db[_0x11e822('0x57')]['destroy']({'where':{'type':_0x532706,'resourceId':_0x37807c['id']}})[_0x11e822('0xc')](function(){return _0x37638b;});})[_0x22a726('0xc')](function(){const _0x22a128=_0x22a726;_0xac545e[_0x22a128('0x64')](0xcc)[_0x22a128('0x6e')]();});};}function handleEntityNotFound(_0x2957ee){return function(_0xdec440){const _0x575693=a212_0x291c;return!_0xdec440&&_0x2957ee[_0x575693('0x6d')](0x194),_0xdec440;};}function handleError(_0x201dc2,_0x3c24f5){return _0x3c24f5=_0x3c24f5||0x1f4,function(_0x4b76fd){const _0x2414bd=a212_0x291c;logger[_0x2414bd('0x27')](_0x4b76fd[_0x2414bd('0x4b')]),_0x4b76fd['name']&&delete _0x4b76fd[_0x2414bd('0x21')],_0x201dc2[_0x2414bd('0x64')](_0x3c24f5)['send'](_0x4b76fd);};}exports[_0x3df809('0x1d')]=function(_0x518770,_0x45f44a){const _0x29c334=_0x3df809;let _0x5ba6b8={};const _0x3e5ecd={},_0x4155e5={'count':0x0,'rows':[]},_0x13e10b=_[_0x29c334('0x13')](db[_0x29c334('0x3d')]['rawAttributes'],function(_0x22d916){const _0x372b64=_0x29c334;return{'name':_0x22d916[_0x372b64('0x6')],'type':_0x22d916['type'][_0x372b64('0xa')]};});_0x3e5ecd[_0x29c334('0x5c')]=_[_0x29c334('0x13')](_0x13e10b,_0x29c334('0x21')),_0x3e5ecd['query']=_[_0x29c334('0x59')](_0x518770[_0x29c334('0x31')]),_0x3e5ecd[_0x29c334('0x32')]=_['intersection'](_0x3e5ecd[_0x29c334('0x5c')],_0x3e5ecd[_0x29c334('0x31')]),_0x5ba6b8[_0x29c334('0x10')]=_['intersection'](_0x3e5ecd[_0x29c334('0x5c')],qs['fields'](_0x518770[_0x29c334('0x31')]['fields'])),_0x5ba6b8[_0x29c334('0x10')]=_0x5ba6b8[_0x29c334('0x10')]['length']?_0x5ba6b8[_0x29c334('0x10')]:_0x3e5ecd[_0x29c334('0x5c')];typeof _0x518770[_0x29c334('0x31')][_0x29c334('0x63')]===_0x29c334('0x3')&&(_0x5ba6b8['limit']=qs[_0x29c334('0x65')](_0x518770['query'][_0x29c334('0x65')]),_0x5ba6b8[_0x29c334('0x42')]=qs[_0x29c334('0x42')](_0x518770[_0x29c334('0x31')]['offset']));_0x5ba6b8[_0x29c334('0x4f')]=qs[_0x29c334('0x24')](_0x518770[_0x29c334('0x31')][_0x29c334('0x24')]),_0x5ba6b8[_0x29c334('0xf')]=qs[_0x29c334('0x32')](_[_0x29c334('0x23')](_0x518770[_0x29c334('0x31')],_0x3e5ecd[_0x29c334('0x32')]),_0x13e10b);_0x518770['query']['filter']&&(_0x5ba6b8[_0x29c334('0xf')]=_[_0x29c334('0x0')](_0x5ba6b8[_0x29c334('0xf')],{[Op['or']]:_[_0x29c334('0x13')](_0x13e10b,function(_0x473acc){const _0x3074d6=_0x29c334;if(_0x473acc['type']!==_0x3074d6('0x69')){const _0x3b5f7e={};return _0x3b5f7e[_0x473acc[_0x3074d6('0x21')]]={[Op[_0x3074d6('0x43')]]:'%'+_0x518770[_0x3074d6('0x31')][_0x3074d6('0x67')]+'%'},_0x3b5f7e;}})}));_0x5ba6b8=_[_0x29c334('0x0')]({},_0x5ba6b8,_0x518770[_0x29c334('0x3c')]);const _0x5c9f47={'where':_0x5ba6b8[_0x29c334('0xf')]};return db[_0x29c334('0x3d')][_0x29c334('0x8')](_0x5c9f47)[_0x29c334('0xc')](function(_0x43ea57){const _0x5b3ed6=_0x29c334;return _0x4155e5[_0x5b3ed6('0x8')]=_0x43ea57,_0x518770[_0x5b3ed6('0x31')][_0x5b3ed6('0x3e')]&&(_0x5ba6b8['include']=[{'all':!![]}]),db['FaxQueue']['findAll'](_0x5ba6b8);})[_0x29c334('0xc')](function(_0x7af20b){const _0x426f68=_0x29c334;return _0x4155e5[_0x426f68('0x55')]=_0x7af20b,_0x4155e5;})[_0x29c334('0xc')](respondWithFilteredResult(_0x45f44a,_0x5ba6b8))['catch'](handleError(_0x45f44a,null));},exports['show']=function(_0x7a2741,_0xdbcc50){const _0x3efb4b=_0x3df809;let _0x2ae531={'raw':!![],'where':{'id':_0x7a2741[_0x3efb4b('0x2f')]['id']}};const _0x26fb65={};return _0x26fb65['model']=_[_0x3efb4b('0x59')](db[_0x3efb4b('0x3d')][_0x3efb4b('0x4e')]),_0x26fb65[_0x3efb4b('0x31')]=_[_0x3efb4b('0x59')](_0x7a2741[_0x3efb4b('0x31')]),_0x26fb65[_0x3efb4b('0x32')]=_[_0x3efb4b('0x9')](_0x26fb65[_0x3efb4b('0x5c')],_0x26fb65[_0x3efb4b('0x31')]),_0x2ae531['attributes']=_[_0x3efb4b('0x9')](_0x26fb65[_0x3efb4b('0x5c')],qs[_0x3efb4b('0x5b')](_0x7a2741[_0x3efb4b('0x31')][_0x3efb4b('0x5b')])),_0x2ae531['attributes']=_0x2ae531[_0x3efb4b('0x10')]['length']?_0x2ae531['attributes']:_0x26fb65['model'],_0x7a2741[_0x3efb4b('0x31')][_0x3efb4b('0x3e')]&&(_0x2ae531['include']=[{'all':!![]}]),_0x2ae531=_[_0x3efb4b('0x0')]({},_0x2ae531,_0x7a2741['options']),db[_0x3efb4b('0x3d')]['findOne'](_0x2ae531)[_0x3efb4b('0xc')](handleEntityNotFound(_0xdbcc50,null))[_0x3efb4b('0xc')](respondWithResult(_0xdbcc50,null))['catch'](handleError(_0xdbcc50,null));},exports[_0x3df809('0x61')]=function(_0x249bc5,_0xb56936){const _0x458e84=_0x3df809;return db[_0x458e84('0x3d')][_0x458e84('0x61')](_0x249bc5[_0x458e84('0xb')],{})['then'](function(_0x332d0b){const _0x24a80f=_0x458e84,_0x48b93f=_0x249bc5[_0x24a80f('0x38')][_0x24a80f('0x28')]({'plain':!![]});if(!_0x48b93f)throw new Error(_0x24a80f('0x25'));if(_0x48b93f[_0x24a80f('0x14')]===_0x24a80f('0x38')){const _0x5f1831=_0x332d0b[_0x24a80f('0x28')]({'plain':!![]}),_0x480d79=_0x24a80f('0x2d');return db[_0x24a80f('0x19')][_0x24a80f('0x20')]({'where':{'name':_0x480d79,'userProfileId':_0x48b93f[_0x24a80f('0x68')]},'raw':!![]})[_0x24a80f('0xc')](function(_0x4b1947){const _0x248efe=_0x24a80f;return _0x4b1947&&_0x4b1947[_0x248efe('0x29')]===0x0?db[_0x248efe('0x57')][_0x248efe('0x61')]({'name':_0x5f1831['name'],'resourceId':_0x5f1831['id'],'type':_0x4b1947['name'],'sectionId':_0x4b1947['id']},{})[_0x248efe('0xc')](function(){return _0x332d0b;}):_0x332d0b;})[_0x24a80f('0x41')](function(_0x3c5925){const _0x54243a=_0x24a80f;logger[_0x54243a('0x27')](_0x54243a('0x7'),_0x3c5925);throw _0x3c5925;});}return _0x332d0b;})[_0x458e84('0xc')](respondWithResult(_0xb56936,0xc9))[_0x458e84('0x41')](handleError(_0xb56936,null));},exports[_0x3df809('0x3f')]=function(_0x489b46,_0x38d6b3){const _0x19ed2f=_0x3df809;return _0x489b46[_0x19ed2f('0xb')]['id']&&delete _0x489b46[_0x19ed2f('0xb')]['id'],db[_0x19ed2f('0x3d')][_0x19ed2f('0x20')]({'where':{'id':_0x489b46[_0x19ed2f('0x2f')]['id']}})[_0x19ed2f('0xc')](handleEntityNotFound(_0x38d6b3,null))[_0x19ed2f('0xc')](saveUpdates(_0x489b46[_0x19ed2f('0xb')],null))[_0x19ed2f('0xc')](respondWithResult(_0x38d6b3,null))[_0x19ed2f('0x41')](handleError(_0x38d6b3,null));},exports['destroy']=function(_0x28c452,_0x45f667){const _0x25dbb3=_0x3df809;return db[_0x25dbb3('0x3d')][_0x25dbb3('0x20')]({'where':{'id':_0x28c452[_0x25dbb3('0x2f')]['id']}})[_0x25dbb3('0xc')](handleEntityNotFound(_0x45f667,null))[_0x25dbb3('0xc')](removeEntity(_0x45f667,null))['catch'](handleError(_0x45f667,null));},exports[_0x3df809('0x26')]=function(_0x53dcf9,_0x521a0e){const _0x11e62e=_0x3df809;return db[_0x11e62e('0x3d')][_0x11e62e('0x26')]()[_0x11e62e('0xc')](respondWithResult(_0x521a0e,null))[_0x11e62e('0x41')](handleError(_0x521a0e,null));},exports[_0x3df809('0x1b')]=function(_0x4888f1,_0x2b61be){const _0x2b1bf9=_0x3df809;let _0x3371ff={'raw':!![],'where':{}};const _0xff02f6={};let _0x519b1c;return db[_0x2b1bf9('0x3d')][_0x2b1bf9('0x20')]({'where':{'id':_0x4888f1[_0x2b1bf9('0x2f')]['id']}})[_0x2b1bf9('0xc')](handleEntityNotFound(_0x2b61be,null))[_0x2b1bf9('0xc')](function(_0x470b73){const _0x2b5159=_0x2b1bf9;if(_0x470b73)return _0x519b1c=_0x470b73['get']({'plain':!![]}),_0xff02f6['model']=_[_0x2b5159('0x59')](db[_0x2b5159('0x4c')][_0x2b5159('0x4e')]),_0xff02f6[_0x2b5159('0x31')]=_['keys'](_0x4888f1[_0x2b5159('0x31')]),_0xff02f6[_0x2b5159('0x32')]=_[_0x2b5159('0x9')](_0xff02f6[_0x2b5159('0x5c')],_0xff02f6[_0x2b5159('0x31')]),_0x3371ff['attributes']=_[_0x2b5159('0x9')](_0xff02f6[_0x2b5159('0x5c')],qs[_0x2b5159('0x5b')](_0x4888f1[_0x2b5159('0x31')][_0x2b5159('0x5b')])),_0x3371ff['attributes']=_0x3371ff[_0x2b5159('0x10')][_0x2b5159('0x1c')]?_0x3371ff['attributes']:_0xff02f6[_0x2b5159('0x5c')],typeof _0x4888f1[_0x2b5159('0x31')][_0x2b5159('0x63')]===_0x2b5159('0x3')&&(_0x3371ff[_0x2b5159('0x65')]=qs['limit'](_0x4888f1['query']['limit']),_0x3371ff[_0x2b5159('0x42')]=qs[_0x2b5159('0x42')](_0x4888f1[_0x2b5159('0x31')][_0x2b5159('0x42')])),_0x3371ff[_0x2b5159('0x4f')]=qs[_0x2b5159('0x24')](_0x4888f1[_0x2b5159('0x31')]['sort']),_0x3371ff[_0x2b5159('0xf')]=qs[_0x2b5159('0x32')](_[_0x2b5159('0x23')](_0x4888f1[_0x2b5159('0x31')],_0xff02f6[_0x2b5159('0x32')])),_0x3371ff[_0x2b5159('0xf')][_0x2b5159('0x62')]=_0x470b73['id'],_0x4888f1['query'][_0x2b5159('0x67')]&&(_0x3371ff[_0x2b5159('0xf')]=_['merge'](_0x3371ff[_0x2b5159('0xf')],{[Op['or']]:_[_0x2b5159('0x13')](_0x3371ff[_0x2b5159('0x10')],function(_0x455b7d){const _0x4b0987=_0x2b5159,_0x3fc71e={};return _0x3fc71e[_0x455b7d]={[Op[_0x4b0987('0x43')]]:'%'+_0x4888f1['query'][_0x4b0987('0x67')]+'%'},_0x3fc71e;})})),_0x3371ff=_['merge']({},_0x3371ff,_0x4888f1[_0x2b5159('0x3c')]),db[_0x2b5159('0x4c')][_0x2b5159('0x30')](_0x3371ff);})[_0x2b1bf9('0xc')](function(_0xb5d198){const _0x866989=_0x2b1bf9;if(_0xb5d198)return db[_0x866989('0x37')][_0x866989('0x35')]({'where':{'id':_[_0x866989('0x13')](_0xb5d198,_0x866989('0x48')),'role':_0x866989('0x33')},'attributes':['id',_0x866989('0x21'),_0x866989('0x22'),_0x866989('0x18'),_0x866989('0x60')]});})['then'](function(_0x4cf20a){const _0xf6dfad=_0x2b1bf9;return _0x4cf20a?{'count':_0x4cf20a['count'],'rows':_[_0xf6dfad('0x13')](_0x4cf20a[_0xf6dfad('0x55')],function(_0x2cc9e6){const _0x199f0b=_0xf6dfad;return{'membername':_0x2cc9e6[_0x199f0b('0x21')],'UserId':_0x2cc9e6['id'],'queue_name':_0x519b1c[_0x199f0b('0x21')],'FaxQueueId':_0x519b1c['id'],'interface':util[_0x199f0b('0x47')](_0x199f0b('0x6b'),'SIP',_0x2cc9e6[_0x199f0b('0x21')]),'penalty':0x0,'paused':_0x2cc9e6[_0x199f0b('0x22')],'createdAt':_0x2cc9e6[_0x199f0b('0x60')],'updatedAt':_0x2cc9e6[_0x199f0b('0x18')]};})}:{'count':0x0,'rows':[]};})[_0x2b1bf9('0xc')](respondWithFilteredResult(_0x2b61be,_0x3371ff))[_0x2b1bf9('0x41')](handleError(_0x2b61be,null));},exports[_0x3df809('0x1f')]=function(_0x188398,_0x473e4d){const _0x4cb35b=_0x3df809;let _0x5906b8={};const _0x3b4721={};let _0x504539,_0x5741ed;return db[_0x4cb35b('0x3d')][_0x4cb35b('0x20')]({'where':{'id':_0x188398[_0x4cb35b('0x2f')]['id']}})[_0x4cb35b('0xc')](handleEntityNotFound(_0x473e4d,null))[_0x4cb35b('0xc')](function(_0x519844){const _0x4703e6=_0x4cb35b;if(_0x519844)return _0x504539=_0x519844,_0x3b4721['model']=_[_0x4703e6('0x59')](db['Team'][_0x4703e6('0x4e')]),_0x3b4721[_0x4703e6('0x31')]=_[_0x4703e6('0x59')](_0x188398[_0x4703e6('0x31')]),_0x3b4721[_0x4703e6('0x32')]=_[_0x4703e6('0x9')](_0x3b4721[_0x4703e6('0x5c')],_0x3b4721['query']),_0x5906b8[_0x4703e6('0x10')]=_['intersection'](_0x3b4721['model'],qs[_0x4703e6('0x5b')](_0x188398[_0x4703e6('0x31')][_0x4703e6('0x5b')])),_0x5906b8[_0x4703e6('0x10')]=_0x5906b8[_0x4703e6('0x10')][_0x4703e6('0x1c')]?_0x5906b8['attributes']:_0x3b4721[_0x4703e6('0x5c')],_0x5906b8[_0x4703e6('0x4f')]=qs[_0x4703e6('0x24')](_0x188398['query'][_0x4703e6('0x24')]),_0x5906b8['where']=qs[_0x4703e6('0x32')](_[_0x4703e6('0x23')](_0x188398[_0x4703e6('0x31')],_0x3b4721[_0x4703e6('0x32')])),_0x188398[_0x4703e6('0x31')][_0x4703e6('0x67')]&&(_0x5906b8[_0x4703e6('0xf')]=_[_0x4703e6('0x0')](_0x5906b8[_0x4703e6('0xf')],{[Op['or']]:_[_0x4703e6('0x13')](_0x5906b8[_0x4703e6('0x10')],function(_0x5487df){const _0x53dfe4=_0x4703e6,_0x11c2d5={};return _0x11c2d5[_0x5487df]={[Op[_0x53dfe4('0x43')]]:'%'+_0x188398[_0x53dfe4('0x31')][_0x53dfe4('0x67')]+'%'},_0x11c2d5;})})),_0x5906b8=_[_0x4703e6('0x0')]({},_0x5906b8,_0x188398['options']),_0x504539['getTeams'](_0x5906b8);})['then'](function(_0x52ad1e){const _0x20dc2c=_0x4cb35b;if(_0x52ad1e)return _0x5741ed=_0x52ad1e[_0x20dc2c('0x1c')],typeof _0x188398[_0x20dc2c('0x31')][_0x20dc2c('0x63')]===_0x20dc2c('0x3')&&(_0x5906b8['limit']=qs['limit'](_0x188398['query']['limit']),_0x5906b8['offset']=qs[_0x20dc2c('0x42')](_0x188398[_0x20dc2c('0x31')][_0x20dc2c('0x42')])),_0x504539[_0x20dc2c('0x1f')](_0x5906b8);})[_0x4cb35b('0xc')](function(_0x483a8b){if(_0x483a8b)return _0x483a8b?{'count':_0x5741ed,'rows':_0x483a8b}:null;})[_0x4cb35b('0xc')](respondWithResult(_0x473e4d,null))[_0x4cb35b('0x41')](handleError(_0x473e4d,null));},exports[_0x3df809('0x5d')]=function(_0x3b2d09,_0x12f632){const _0x2b2ff=_0x3df809,_0x5c7f9d=_0x3b2d09[_0x2b2ff('0xb')][_0x2b2ff('0x39')];return db[_0x2b2ff('0x4a')]['findAll']({'where':{'id':_0x5c7f9d},'attributes':['id'],'include':[{'model':db[_0x2b2ff('0x37')],'as':'Agents','attributes':['id',_0x2b2ff('0x21'),_0x2b2ff('0x40'),'voicePause',_0x2b2ff('0x15')],'raw':!![]}]})[_0x2b2ff('0xc')](function(_0x571ddf){const _0x9bb6b7=_0x2b2ff;if(_0x571ddf){const _0x18c1c3=_['flatMap'](_0x571ddf,function(_0x35ee9e){const _0x24dafb=a212_0x291c,_0x13780d=_0x35ee9e[_0x24dafb('0x28')]({'plain':!![]});return _0x13780d['Agents'];});return db[_0x9bb6b7('0x3d')][_0x9bb6b7('0x20')]({'where':{'id':_0x3b2d09[_0x9bb6b7('0x2f')]['id']}})[_0x9bb6b7('0xc')](function(_0x41317e){const _0x27bd51=_0x9bb6b7;return db[_0x27bd51('0x44')][_0x27bd51('0x5a')](function(_0x275622){const _0x2a54f7=_0x27bd51;return _0x41317e[_0x2a54f7('0x5d')](_0x5c7f9d,{'transaction':_0x275622})[_0x2a54f7('0xc')](function(){const _0x5c939e=_0x2a54f7;return Promise[_0x5c939e('0x2b')](_0x18c1c3,function(_0x3b8f09){const _0x570882=_0x5c939e;return db[_0x570882('0x4c')][_0x570882('0x1')]({'where':{'UserId':_0x3b8f09['id'],'FaxQueueId':_0x3b2d09[_0x570882('0x2f')]['id']},'transaction':_0x275622});});})[_0x2a54f7('0xc')](function(){const _0x284e42=_0x2a54f7;_0x18c1c3[_0x284e42('0x54')](function(_0x5a089a){const _0x5714d=_0x284e42;socket['emit'](_0x5714d('0xd'),{'UserId':_0x5a089a['id'],'FaxQueueId':_0x41317e['id']});});});});});}})[_0x2b2ff('0xc')](respondWithStatusCode(_0x12f632,null))[_0x2b2ff('0x41')](handleError(_0x12f632,null));},exports[_0x3df809('0x4d')]=function(_0x54d608,_0x3b7b8a){const _0x147a96=_0x3df809;return db[_0x147a96('0x4a')][_0x147a96('0x30')]({'where':{'id':_0x54d608[_0x147a96('0x31')][_0x147a96('0x39')]},'attributes':['id'],'include':[{'model':db[_0x147a96('0x37')],'as':_0x147a96('0x4'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x3b7b8a,null))[_0x147a96('0xc')](function(_0x561408){const _0x76e796=_0x147a96,_0xb23ba7=_['map'](_0x561408,'id');let _0xf38673=[];const _0x4a35df=[],_0x5ed9be=squel[_0x76e796('0x2e')]();_0x5ed9be[_0x76e796('0x5')](_0x76e796('0x66'))[_0x76e796('0x51')](_0x76e796('0x49'),'tq')['join'](_0x76e796('0x46'),'ut','ut.TeamId\x20=\x20tq.TeamId')[_0x76e796('0xf')]('FaxQueueId\x20=\x20?',_0x54d608[_0x76e796('0x2f')]['id']);for(let _0x5708d3=0x0;_0x5708d3<_0x561408[_0x76e796('0x1c')];_0x5708d3+=0x1){const _0x29c62b=_0x561408[_0x5708d3];for(let _0x6337b1=0x0;_0x6337b1<_0x29c62b['Agents'][_0x76e796('0x1c')];_0x6337b1+=0x1){const _0x27a487=_0x29c62b[_0x76e796('0x4')][_0x6337b1],_0x226b32=_0x5ed9be['clone']();_0x226b32[_0x76e796('0xf')]('ut.UserId\x20=\x20?',_0x27a487['id']),_0x4a35df[_0x76e796('0x3b')](db['sequelize'][_0x76e796('0x31')](_0x226b32[_0x76e796('0x3a')](),{'type':QueryTypes[_0x76e796('0x34')]})['then'](function(_0x5b00d8){const _0x245c9a=_0x76e796;if(_0x5b00d8[_0x245c9a('0x1c')]===0x1)return _0x27a487['id'];else{const _0x30b312=_[_0x245c9a('0x53')](_['map'](_0x5b00d8,_0x245c9a('0x2c')),function(_0x2950bd){return _['includes'](_0xb23ba7,_0x2950bd);});if(_0x30b312)return _0x27a487['id'];}}));}}return Promise[_0x76e796('0x6a')](_0x4a35df)[_0x76e796('0xc')](function(_0x5d3d4f){const _0x5809d2=_0x76e796;return _0xf38673=_(_0xf38673)['union'](_0x5d3d4f)[_0x5809d2('0x50')]()[_0x5809d2('0x2a')](),db[_0x5809d2('0x3d')][_0x5809d2('0x20')]({'where':{'id':_0x54d608['params']['id']}})[_0x5809d2('0xc')](function(_0x4697e5){const _0x5937a7=_0x5809d2;return db['sequelize'][_0x5937a7('0x5a')](function(_0x4c86b6){const _0x43f892=_0x5937a7;return _0x4697e5['removeTeams'](_0x54d608[_0x43f892('0x31')][_0x43f892('0x39')],{'transaction':_0x4c86b6})[_0x43f892('0xc')](function(){const _0x5704ed=_0x43f892;if(!_['isEmpty'](_0xf38673))return _0x4697e5[_0x5704ed('0x6f')](_0xf38673,{'transaction':_0x4c86b6});})[_0x43f892('0xc')](function(){const _0x4c0f65=_0x43f892;_0xf38673[_0x4c0f65('0x54')](function(_0xd9edfb){socket['emit']('userFaxQueue:remove',{'UserId':_0xd9edfb,'FaxQueueId':_0x4697e5['id']});});});});});});})[_0x147a96('0xc')](respondWithStatusCode(_0x3b7b8a,null))[_0x147a96('0x41')](handleError(_0x3b7b8a,null));},exports['addAgents']=function(_0x54a0f2,_0x4229a3){const _0xb327a6=_0x3df809;return db[_0xb327a6('0x3d')]['findOne']({'where':{'id':_0x54a0f2['params']['id']}})['then'](function(_0x46e918){const _0xc23efa=_0xb327a6;if(_0x46e918)return _0x46e918[_0xc23efa('0x52')](_0x54a0f2[_0xc23efa('0xb')][_0xc23efa('0x39')],{'through':_[_0xc23efa('0x16')](_0x54a0f2['body'],[_0xc23efa('0x39'),'id'])})[_0xc23efa('0xc')](function(_0x1f66e3){const _0x5c1b46=_0xc23efa;for(let _0xbf7a30=0x0;_0xbf7a30<_0x54a0f2[_0x5c1b46('0xb')][_0x5c1b46('0x39')][_0x5c1b46('0x1c')];_0xbf7a30+=0x1){socket[_0x5c1b46('0x1a')](_0x5c1b46('0xd'),{'UserId':_0x54a0f2[_0x5c1b46('0xb')][_0x5c1b46('0x39')][_0xbf7a30],'FaxQueueId':_0x54a0f2[_0x5c1b46('0x2f')]['id']});}return _0x1f66e3;});})[_0xb327a6('0xc')](respondWithResult(_0x4229a3,null))[_0xb327a6('0x41')](handleError(_0x4229a3,null));},exports['removeAgents']=function(_0x1525b6,_0x3154e0){const _0x5018ca=_0x3df809;return db[_0x5018ca('0x3d')]['findOne']({'where':{'id':_0x1525b6['params']['id']}})['then'](handleEntityNotFound(_0x3154e0,null))[_0x5018ca('0xc')](function(_0x26e4ea){const _0x56af8a=_0x5018ca;if(_0x26e4ea)return _0x26e4ea[_0x56af8a('0x6f')](_0x1525b6[_0x56af8a('0x31')]['ids'])[_0x56af8a('0xc')](function(){const _0x605468=_0x56af8a;if(_['isArray'](_0x1525b6[_0x605468('0x31')]['ids']))for(let _0xedb1bb=0x0;_0xedb1bb<_0x1525b6[_0x605468('0x31')][_0x605468('0x39')][_0x605468('0x1c')];_0xedb1bb+=0x1){socket['emit']('userFaxQueue:remove',{'UserId':Number(_0x1525b6['query']['ids'][_0xedb1bb]),'FaxQueueId':Number(_0x1525b6[_0x605468('0x2f')]['id'])});}else socket[_0x605468('0x1a')](_0x605468('0x1e'),{'UserId':Number(_0x1525b6[_0x605468('0x31')]['ids']),'FaxQueueId':Number(_0x1525b6['params']['id'])});});})[_0x5018ca('0xc')](respondWithStatusCode(_0x3154e0,null))[_0x5018ca('0x41')](handleError(_0x3154e0,null));},exports[_0x3df809('0x5f')]=function(_0x177b54,_0xe54fe){const _0x3abf1c=_0x3df809;let _0x194e6a={};const _0x1c7c56={};let _0x5c16af,_0x583917;return db[_0x3abf1c('0x3d')][_0x3abf1c('0x20')]({'where':{'id':_0x177b54[_0x3abf1c('0x2f')]['id']}})['then'](handleEntityNotFound(_0xe54fe,null))[_0x3abf1c('0xc')](function(_0x506238){const _0x22f3ab=_0x3abf1c;if(_0x506238)return _0x5c16af=_0x506238,_0x1c7c56['model']=_[_0x22f3ab('0x59')](db[_0x22f3ab('0x37')][_0x22f3ab('0x4e')]),_0x1c7c56[_0x22f3ab('0x31')]=_['keys'](_0x177b54[_0x22f3ab('0x31')]),_0x1c7c56[_0x22f3ab('0x32')]=_[_0x22f3ab('0x9')](_0x1c7c56[_0x22f3ab('0x5c')],_0x1c7c56[_0x22f3ab('0x31')]),_0x194e6a[_0x22f3ab('0x10')]=_[_0x22f3ab('0x9')](_0x1c7c56[_0x22f3ab('0x5c')],qs[_0x22f3ab('0x5b')](_0x177b54[_0x22f3ab('0x31')][_0x22f3ab('0x5b')])),_0x194e6a[_0x22f3ab('0x10')]=_0x194e6a[_0x22f3ab('0x10')][_0x22f3ab('0x1c')]?_0x194e6a[_0x22f3ab('0x10')]:_0x1c7c56['model'],_0x194e6a[_0x22f3ab('0x4f')]=qs[_0x22f3ab('0x24')](_0x177b54[_0x22f3ab('0x31')][_0x22f3ab('0x24')]),_0x194e6a[_0x22f3ab('0xf')]=qs[_0x22f3ab('0x32')](_[_0x22f3ab('0x23')](_0x177b54[_0x22f3ab('0x31')],_0x1c7c56[_0x22f3ab('0x32')])),_0x177b54[_0x22f3ab('0x31')][_0x22f3ab('0x67')]&&(_0x194e6a[_0x22f3ab('0xf')]=_[_0x22f3ab('0x0')](_0x194e6a[_0x22f3ab('0xf')],{[Op['or']]:_[_0x22f3ab('0x13')](_0x194e6a[_0x22f3ab('0x10')],function(_0x5d259c){const _0x5cdcd4=_0x22f3ab,_0x43b45f={};return _0x43b45f[_0x5d259c]={[Op[_0x5cdcd4('0x43')]]:'%'+_0x177b54['query'][_0x5cdcd4('0x67')]+'%'},_0x43b45f;})})),_0x194e6a=_['merge']({},_0x194e6a,_0x177b54[_0x22f3ab('0x3c')]),_0x5c16af['getAgents'](_0x194e6a);})['then'](function(_0x31e78d){const _0x2b1f03=_0x3abf1c;if(_0x31e78d)return _0x583917=_0x31e78d['length'],typeof _0x177b54[_0x2b1f03('0x31')]['nolimit']===_0x2b1f03('0x3')&&(_0x194e6a[_0x2b1f03('0x65')]=qs[_0x2b1f03('0x65')](_0x177b54[_0x2b1f03('0x31')]['limit']),_0x194e6a['offset']=qs[_0x2b1f03('0x42')](_0x177b54['query'][_0x2b1f03('0x42')])),_0x5c16af['getAgents'](_0x194e6a);})['then'](function(_0x4033da){if(_0x4033da)return _0x4033da?{'count':_0x583917,'rows':_0x4033da}:null;})[_0x3abf1c('0xc')](respondWithResult(_0xe54fe,null))[_0x3abf1c('0x41')](handleError(_0xe54fe,null));}; \ No newline at end of file +const a212_0x574a=['user_has_teams','filter','emit','voicePause','omit','include','error','model','intersection','getTeams','index','faxPause','format','User','TeamId','FaxQueues','json','filters','FaxQueueId','every','findAll','user','compact','autoAssociation','api','get','./faxQueue.socket','../../mysqldb','send','sequelize','removeTeams','userFaxQueue:remove','params','ids','describe','transaction','pick','sort','options','UserId','toString','updatedAt','status','join','nolimit','userFaxQueue:save','ut.TeamId\x20=\x20tq.TeamId','Team','interface','register','end','addTeams','show','keys','squel','userProfileId','create','ut.UserId\x20=\x20?','addAgents','type','fields','FaxQueue','UserProfileSection','all','set','undefined','count','fieldName','rawAttributes','catch','sendStatus','UserProfileResource','Agents','merge','tq.TeamId','destroy','field','body','../../rediscache','Content-Range','getMembers','name','includeAll','../../config/logger','findAndCountAll','map','length','order','rows','limit','where','VIRTUAL','agent','includes','SELECT','online','stack','query','getAgents','key','util','offset','like','attributes','flatMap','FaxQueueId\x20=\x20?','UserFaxQueue','removeAgents','findOne','then'];(function(_0x49d0b5,_0x574a34){const _0x103dab=function(_0x132fe4){while(--_0x132fe4){_0x49d0b5['push'](_0x49d0b5['shift']());}};_0x103dab(++_0x574a34);}(a212_0x574a,0x77));const a212_0x103d=function(_0x49d0b5,_0x574a34){_0x49d0b5=_0x49d0b5-0x0;let _0x103dab=a212_0x574a[_0x49d0b5];return _0x103dab;};const _0x1e93b1=a212_0x103d;'use strict';const util=require(_0x1e93b1('0x5b')),_=require('lodash'),squel=require(_0x1e93b1('0x2d')),qs=require('../../components/parsers/qs'),logger=require(_0x1e93b1('0x4a'))(_0x1e93b1('0xf')),{getSocket}=require(_0x1e93b1('0x45')),socket=getSocket(),db=require(_0x1e93b1('0x12'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x1e93b1('0x11'))[_0x1e93b1('0x28')](socket);function respondWithStatusCode(_0x132fe4,_0x170d41){return _0x170d41=_0x170d41||0xcc,function(_0x21b644){const _0x11a0cf=a212_0x103d;if(_0x21b644)return _0x132fe4[_0x11a0cf('0x3d')](_0x170d41);return _0x132fe4['status'](_0x170d41)[_0x11a0cf('0x29')]();};}function respondWithResult(_0x1d1f70,_0x4897b9){return _0x4897b9=_0x4897b9||0xc8,function(_0x378af2){const _0x2a52c8=a212_0x103d;if(_0x378af2)return _0x1d1f70[_0x2a52c8('0x21')](_0x4897b9)[_0x2a52c8('0x7')](_0x378af2);};}function respondWithFilteredResult(_0x56f889,_0x552222){return function(_0x6f5010){const _0x4976f7=a212_0x103d;if(_0x6f5010){const _0x5a64e1=_0x6f5010[_0x4976f7('0x39')],_0x21ea82=_0x552222[_0x4976f7('0x5c')];let _0x2aa51f=_0x552222[_0x4976f7('0x5c')]+_0x552222['limit'],_0x354150;return _0x2aa51f>=_0x5a64e1?(_0x2aa51f=_0x5a64e1,_0x354150=0xc8):_0x354150=0xce,_0x56f889[_0x4976f7('0x21')](_0x354150),_0x56f889[_0x4976f7('0x37')](_0x4976f7('0x46'),_0x21ea82+'-'+_0x2aa51f+'/'+_0x5a64e1)['json'](_0x6f5010);}return null;};}function saveUpdates(_0x42324f){return function(_0x2922a5){const _0x306e99=a212_0x103d;if(_0x2922a5)return _0x2922a5['update'](_0x42324f)[_0x306e99('0x64')](function(_0x3eb888){return _0x3eb888;});return null;};}function removeEntity(_0x4913f3){return function(_0x25868b){const _0xf4ceb9=a212_0x103d;if(_0x25868b)return _0x25868b['destroy']()[_0xf4ceb9('0x64')](function(){const _0x5932f1=_0xf4ceb9,_0x559449=_0x25868b['get']({'plain':!![]}),_0x391865=_0x5932f1('0x6');return db[_0x5932f1('0x3e')][_0x5932f1('0x42')]({'where':{'type':_0x391865,'resourceId':_0x559449['id']}})[_0x5932f1('0x64')](function(){return _0x25868b;});})[_0xf4ceb9('0x64')](function(){const _0x1a624b=_0xf4ceb9;_0x4913f3['status'](0xcc)[_0x1a624b('0x29')]();});};}function handleEntityNotFound(_0x294aa7){return function(_0x2439b0){const _0x7337be=a212_0x103d;return!_0x2439b0&&_0x294aa7[_0x7337be('0x3d')](0x194),_0x2439b0;};}function handleError(_0x55a4e0,_0x4d242a){return _0x4d242a=_0x4d242a||0x1f4,function(_0x1a0f36){const _0x5922d3=a212_0x103d;logger[_0x5922d3('0x6b')](_0x1a0f36[_0x5922d3('0x57')]),_0x1a0f36[_0x5922d3('0x48')]&&delete _0x1a0f36['name'],_0x55a4e0[_0x5922d3('0x21')](_0x4d242a)[_0x5922d3('0x13')](_0x1a0f36);};}exports[_0x1e93b1('0x1')]=function(_0x1bc699,_0x291761){const _0x1757b7=_0x1e93b1;let _0x2bf211={};const _0xea8efb={},_0xd7d598={'count':0x0,'rows':[]},_0x527d41=_[_0x1757b7('0x4c')](db[_0x1757b7('0x34')][_0x1757b7('0x3b')],function(_0x3e9a0f){const _0x1b17be=_0x1757b7;return{'name':_0x3e9a0f[_0x1b17be('0x3a')],'type':_0x3e9a0f['type'][_0x1b17be('0x5a')]};});_0xea8efb[_0x1757b7('0x6c')]=_[_0x1757b7('0x4c')](_0x527d41,'name'),_0xea8efb[_0x1757b7('0x58')]=_[_0x1757b7('0x2c')](_0x1bc699[_0x1757b7('0x58')]),_0xea8efb[_0x1757b7('0x8')]=_[_0x1757b7('0x6d')](_0xea8efb[_0x1757b7('0x6c')],_0xea8efb[_0x1757b7('0x58')]),_0x2bf211['attributes']=_[_0x1757b7('0x6d')](_0xea8efb[_0x1757b7('0x6c')],qs[_0x1757b7('0x33')](_0x1bc699['query'][_0x1757b7('0x33')])),_0x2bf211['attributes']=_0x2bf211['attributes'][_0x1757b7('0x4d')]?_0x2bf211[_0x1757b7('0x5e')]:_0xea8efb[_0x1757b7('0x6c')];typeof _0x1bc699[_0x1757b7('0x58')][_0x1757b7('0x23')]===_0x1757b7('0x38')&&(_0x2bf211['limit']=qs[_0x1757b7('0x50')](_0x1bc699['query'][_0x1757b7('0x50')]),_0x2bf211[_0x1757b7('0x5c')]=qs[_0x1757b7('0x5c')](_0x1bc699['query'][_0x1757b7('0x5c')]));_0x2bf211[_0x1757b7('0x4e')]=qs[_0x1757b7('0x1c')](_0x1bc699[_0x1757b7('0x58')][_0x1757b7('0x1c')]),_0x2bf211['where']=qs[_0x1757b7('0x8')](_['pick'](_0x1bc699['query'],_0xea8efb['filters']),_0x527d41);_0x1bc699[_0x1757b7('0x58')][_0x1757b7('0x66')]&&(_0x2bf211[_0x1757b7('0x51')]=_[_0x1757b7('0x40')](_0x2bf211[_0x1757b7('0x51')],{[Op['or']]:_['map'](_0x527d41,function(_0x4a763b){const _0x28ca98=_0x1757b7;if(_0x4a763b[_0x28ca98('0x32')]!==_0x28ca98('0x52')){const _0x5bbcb0={};return _0x5bbcb0[_0x4a763b[_0x28ca98('0x48')]]={[Op[_0x28ca98('0x5d')]]:'%'+_0x1bc699[_0x28ca98('0x58')]['filter']+'%'},_0x5bbcb0;}})}));_0x2bf211=_[_0x1757b7('0x40')]({},_0x2bf211,_0x1bc699[_0x1757b7('0x1d')]);const _0x3d8367={'where':_0x2bf211['where']};return db[_0x1757b7('0x34')]['count'](_0x3d8367)['then'](function(_0x49d2bd){const _0x5653b7=_0x1757b7;return _0xd7d598[_0x5653b7('0x39')]=_0x49d2bd,_0x1bc699[_0x5653b7('0x58')]['includeAll']&&(_0x2bf211[_0x5653b7('0x6a')]=[{'all':!![]}]),db[_0x5653b7('0x34')][_0x5653b7('0xb')](_0x2bf211);})[_0x1757b7('0x64')](function(_0x5c2af6){return _0xd7d598['rows']=_0x5c2af6,_0xd7d598;})['then'](respondWithFilteredResult(_0x291761,_0x2bf211))['catch'](handleError(_0x291761,null));},exports[_0x1e93b1('0x2b')]=function(_0x2474ff,_0x1fd5d4){const _0x21f325=_0x1e93b1;let _0x1bbdf2={'raw':!![],'where':{'id':_0x2474ff['params']['id']}};const _0x1e4674={};return _0x1e4674['model']=_[_0x21f325('0x2c')](db[_0x21f325('0x34')]['rawAttributes']),_0x1e4674[_0x21f325('0x58')]=_[_0x21f325('0x2c')](_0x2474ff['query']),_0x1e4674['filters']=_['intersection'](_0x1e4674[_0x21f325('0x6c')],_0x1e4674['query']),_0x1bbdf2[_0x21f325('0x5e')]=_[_0x21f325('0x6d')](_0x1e4674[_0x21f325('0x6c')],qs[_0x21f325('0x33')](_0x2474ff[_0x21f325('0x58')][_0x21f325('0x33')])),_0x1bbdf2[_0x21f325('0x5e')]=_0x1bbdf2[_0x21f325('0x5e')]['length']?_0x1bbdf2[_0x21f325('0x5e')]:_0x1e4674[_0x21f325('0x6c')],_0x2474ff[_0x21f325('0x58')][_0x21f325('0x49')]&&(_0x1bbdf2[_0x21f325('0x6a')]=[{'all':!![]}]),_0x1bbdf2=_['merge']({},_0x1bbdf2,_0x2474ff[_0x21f325('0x1d')]),db['FaxQueue'][_0x21f325('0x63')](_0x1bbdf2)[_0x21f325('0x64')](handleEntityNotFound(_0x1fd5d4,null))[_0x21f325('0x64')](respondWithResult(_0x1fd5d4,null))[_0x21f325('0x3c')](handleError(_0x1fd5d4,null));},exports[_0x1e93b1('0x2f')]=function(_0x14b462,_0x3560b5){const _0x1c07a6=_0x1e93b1;return db['FaxQueue']['create'](_0x14b462[_0x1c07a6('0x44')],{})[_0x1c07a6('0x64')](function(_0xae59ff){const _0x3a23c3=_0x1c07a6,_0x18b706=_0x14b462[_0x3a23c3('0xc')][_0x3a23c3('0x10')]({'plain':!![]});if(!_0x18b706)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x18b706['role']===_0x3a23c3('0xc')){const _0xb654da=_0xae59ff[_0x3a23c3('0x10')]({'plain':!![]}),_0x33164b='FaxQueues';return db[_0x3a23c3('0x35')]['findOne']({'where':{'name':_0x33164b,'userProfileId':_0x18b706[_0x3a23c3('0x2e')]},'raw':!![]})[_0x3a23c3('0x64')](function(_0x564875){const _0x441d34=_0x3a23c3;return _0x564875&&_0x564875[_0x441d34('0xe')]===0x0?db['UserProfileResource']['create']({'name':_0xb654da[_0x441d34('0x48')],'resourceId':_0xb654da['id'],'type':_0x564875[_0x441d34('0x48')],'sectionId':_0x564875['id']},{})['then'](function(){return _0xae59ff;}):_0xae59ff;})[_0x3a23c3('0x3c')](function(_0x4b6ad9){const _0x139a11=_0x3a23c3;logger[_0x139a11('0x6b')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4b6ad9);throw _0x4b6ad9;});}return _0xae59ff;})[_0x1c07a6('0x64')](respondWithResult(_0x3560b5,0xc9))[_0x1c07a6('0x3c')](handleError(_0x3560b5,null));},exports['update']=function(_0x1b22fa,_0x56ed19){const _0x215700=_0x1e93b1;return _0x1b22fa[_0x215700('0x44')]['id']&&delete _0x1b22fa[_0x215700('0x44')]['id'],db['FaxQueue'][_0x215700('0x63')]({'where':{'id':_0x1b22fa['params']['id']}})[_0x215700('0x64')](handleEntityNotFound(_0x56ed19,null))[_0x215700('0x64')](saveUpdates(_0x1b22fa['body'],null))[_0x215700('0x64')](respondWithResult(_0x56ed19,null))[_0x215700('0x3c')](handleError(_0x56ed19,null));},exports['destroy']=function(_0x1a5434,_0x189d25){const _0x463b98=_0x1e93b1;return db[_0x463b98('0x34')]['findOne']({'where':{'id':_0x1a5434[_0x463b98('0x17')]['id']}})[_0x463b98('0x64')](handleEntityNotFound(_0x189d25,null))['then'](removeEntity(_0x189d25,null))['catch'](handleError(_0x189d25,null));},exports[_0x1e93b1('0x19')]=function(_0x19b97a,_0x29ec17){const _0x59147c=_0x1e93b1;return db[_0x59147c('0x34')][_0x59147c('0x19')]()[_0x59147c('0x64')](respondWithResult(_0x29ec17,null))[_0x59147c('0x3c')](handleError(_0x29ec17,null));},exports[_0x1e93b1('0x47')]=function(_0x170203,_0x2ab3b1){const _0x7d4721=_0x1e93b1;let _0x1709c4={'raw':!![],'where':{}};const _0x1e10a5={};let _0x1e6dc2;return db[_0x7d4721('0x34')][_0x7d4721('0x63')]({'where':{'id':_0x170203['params']['id']}})[_0x7d4721('0x64')](handleEntityNotFound(_0x2ab3b1,null))[_0x7d4721('0x64')](function(_0x27d537){const _0x30b187=_0x7d4721;if(_0x27d537)return _0x1e6dc2=_0x27d537[_0x30b187('0x10')]({'plain':!![]}),_0x1e10a5[_0x30b187('0x6c')]=_[_0x30b187('0x2c')](db[_0x30b187('0x61')][_0x30b187('0x3b')]),_0x1e10a5[_0x30b187('0x58')]=_[_0x30b187('0x2c')](_0x170203[_0x30b187('0x58')]),_0x1e10a5['filters']=_[_0x30b187('0x6d')](_0x1e10a5[_0x30b187('0x6c')],_0x1e10a5[_0x30b187('0x58')]),_0x1709c4['attributes']=_[_0x30b187('0x6d')](_0x1e10a5[_0x30b187('0x6c')],qs[_0x30b187('0x33')](_0x170203[_0x30b187('0x58')][_0x30b187('0x33')])),_0x1709c4[_0x30b187('0x5e')]=_0x1709c4[_0x30b187('0x5e')][_0x30b187('0x4d')]?_0x1709c4[_0x30b187('0x5e')]:_0x1e10a5[_0x30b187('0x6c')],typeof _0x170203['query'][_0x30b187('0x23')]==='undefined'&&(_0x1709c4[_0x30b187('0x50')]=qs['limit'](_0x170203['query'][_0x30b187('0x50')]),_0x1709c4[_0x30b187('0x5c')]=qs[_0x30b187('0x5c')](_0x170203[_0x30b187('0x58')][_0x30b187('0x5c')])),_0x1709c4[_0x30b187('0x4e')]=qs[_0x30b187('0x1c')](_0x170203['query']['sort']),_0x1709c4[_0x30b187('0x51')]=qs[_0x30b187('0x8')](_[_0x30b187('0x1b')](_0x170203[_0x30b187('0x58')],_0x1e10a5[_0x30b187('0x8')])),_0x1709c4['where'][_0x30b187('0x9')]=_0x27d537['id'],_0x170203[_0x30b187('0x58')][_0x30b187('0x66')]&&(_0x1709c4[_0x30b187('0x51')]=_[_0x30b187('0x40')](_0x1709c4[_0x30b187('0x51')],{[Op['or']]:_[_0x30b187('0x4c')](_0x1709c4['attributes'],function(_0xf50e79){const _0x5142ec={};return _0x5142ec[_0xf50e79]={[Op['like']]:'%'+_0x170203['query']['filter']+'%'},_0x5142ec;})})),_0x1709c4=_[_0x30b187('0x40')]({},_0x1709c4,_0x170203[_0x30b187('0x1d')]),db['UserFaxQueue'][_0x30b187('0xb')](_0x1709c4);})['then'](function(_0x4ea410){const _0xf9b0ea=_0x7d4721;if(_0x4ea410)return db[_0xf9b0ea('0x4')][_0xf9b0ea('0x4b')]({'where':{'id':_[_0xf9b0ea('0x4c')](_0x4ea410,_0xf9b0ea('0x1e')),'role':_0xf9b0ea('0x53')},'attributes':['id','name',_0xf9b0ea('0x2'),_0xf9b0ea('0x20'),'createdAt']});})['then'](function(_0x403652){const _0x18fa5f=_0x7d4721;return _0x403652?{'count':_0x403652[_0x18fa5f('0x39')],'rows':_[_0x18fa5f('0x4c')](_0x403652[_0x18fa5f('0x4f')],function(_0xe3504e){const _0x69e33c=_0x18fa5f;return{'membername':_0xe3504e[_0x69e33c('0x48')],'UserId':_0xe3504e['id'],'queue_name':_0x1e6dc2[_0x69e33c('0x48')],'FaxQueueId':_0x1e6dc2['id'],'interface':util[_0x69e33c('0x3')]('%s/%s','SIP',_0xe3504e[_0x69e33c('0x48')]),'penalty':0x0,'paused':_0xe3504e[_0x69e33c('0x2')],'createdAt':_0xe3504e['createdAt'],'updatedAt':_0xe3504e['updatedAt']};})}:{'count':0x0,'rows':[]};})[_0x7d4721('0x64')](respondWithFilteredResult(_0x2ab3b1,_0x1709c4))[_0x7d4721('0x3c')](handleError(_0x2ab3b1,null));},exports[_0x1e93b1('0x0')]=function(_0x38e61d,_0x1c6d64){const _0x5246e6=_0x1e93b1;let _0x5cbe86={};const _0x4f8349={};let _0xe4d87c,_0x7f4eac;return db[_0x5246e6('0x34')]['findOne']({'where':{'id':_0x38e61d[_0x5246e6('0x17')]['id']}})[_0x5246e6('0x64')](handleEntityNotFound(_0x1c6d64,null))['then'](function(_0x1e3b85){const _0x56dc56=_0x5246e6;if(_0x1e3b85)return _0xe4d87c=_0x1e3b85,_0x4f8349['model']=_['keys'](db['Team'][_0x56dc56('0x3b')]),_0x4f8349['query']=_[_0x56dc56('0x2c')](_0x38e61d[_0x56dc56('0x58')]),_0x4f8349[_0x56dc56('0x8')]=_[_0x56dc56('0x6d')](_0x4f8349[_0x56dc56('0x6c')],_0x4f8349[_0x56dc56('0x58')]),_0x5cbe86[_0x56dc56('0x5e')]=_[_0x56dc56('0x6d')](_0x4f8349[_0x56dc56('0x6c')],qs[_0x56dc56('0x33')](_0x38e61d[_0x56dc56('0x58')][_0x56dc56('0x33')])),_0x5cbe86[_0x56dc56('0x5e')]=_0x5cbe86['attributes']['length']?_0x5cbe86[_0x56dc56('0x5e')]:_0x4f8349['model'],_0x5cbe86[_0x56dc56('0x4e')]=qs[_0x56dc56('0x1c')](_0x38e61d[_0x56dc56('0x58')][_0x56dc56('0x1c')]),_0x5cbe86[_0x56dc56('0x51')]=qs[_0x56dc56('0x8')](_[_0x56dc56('0x1b')](_0x38e61d[_0x56dc56('0x58')],_0x4f8349[_0x56dc56('0x8')])),_0x38e61d[_0x56dc56('0x58')][_0x56dc56('0x66')]&&(_0x5cbe86[_0x56dc56('0x51')]=_[_0x56dc56('0x40')](_0x5cbe86[_0x56dc56('0x51')],{[Op['or']]:_[_0x56dc56('0x4c')](_0x5cbe86[_0x56dc56('0x5e')],function(_0x319377){const _0x23c559=_0x56dc56,_0xb19057={};return _0xb19057[_0x319377]={[Op[_0x23c559('0x5d')]]:'%'+_0x38e61d[_0x23c559('0x58')][_0x23c559('0x66')]+'%'},_0xb19057;})})),_0x5cbe86=_[_0x56dc56('0x40')]({},_0x5cbe86,_0x38e61d[_0x56dc56('0x1d')]),_0xe4d87c['getTeams'](_0x5cbe86);})[_0x5246e6('0x64')](function(_0x2cdcc4){const _0xa45db6=_0x5246e6;if(_0x2cdcc4)return _0x7f4eac=_0x2cdcc4[_0xa45db6('0x4d')],typeof _0x38e61d[_0xa45db6('0x58')][_0xa45db6('0x23')]===_0xa45db6('0x38')&&(_0x5cbe86[_0xa45db6('0x50')]=qs[_0xa45db6('0x50')](_0x38e61d[_0xa45db6('0x58')][_0xa45db6('0x50')]),_0x5cbe86[_0xa45db6('0x5c')]=qs['offset'](_0x38e61d[_0xa45db6('0x58')]['offset'])),_0xe4d87c[_0xa45db6('0x0')](_0x5cbe86);})['then'](function(_0x33e137){if(_0x33e137)return _0x33e137?{'count':_0x7f4eac,'rows':_0x33e137}:null;})[_0x5246e6('0x64')](respondWithResult(_0x1c6d64,null))[_0x5246e6('0x3c')](handleError(_0x1c6d64,null));},exports[_0x1e93b1('0x2a')]=function(_0x1351e8,_0x4c361d){const _0x2dd8a9=_0x1e93b1,_0x3fb433=_0x1351e8[_0x2dd8a9('0x44')][_0x2dd8a9('0x18')];return db[_0x2dd8a9('0x26')]['findAll']({'where':{'id':_0x3fb433},'attributes':['id'],'include':[{'model':db[_0x2dd8a9('0x4')],'as':_0x2dd8a9('0x3f'),'attributes':['id',_0x2dd8a9('0x48'),_0x2dd8a9('0x56'),_0x2dd8a9('0x68'),_0x2dd8a9('0x27')],'raw':!![]}]})['then'](function(_0x2fddb7){const _0x2626ad=_0x2dd8a9;if(_0x2fddb7){const _0x1e2634=_[_0x2626ad('0x5f')](_0x2fddb7,function(_0x381161){const _0x7d9760=_0x2626ad,_0x1f1e33=_0x381161[_0x7d9760('0x10')]({'plain':!![]});return _0x1f1e33['Agents'];});return db[_0x2626ad('0x34')][_0x2626ad('0x63')]({'where':{'id':_0x1351e8[_0x2626ad('0x17')]['id']}})[_0x2626ad('0x64')](function(_0x2ee449){const _0xdf125a=_0x2626ad;return db[_0xdf125a('0x14')][_0xdf125a('0x1a')](function(_0x155318){const _0x383912=_0xdf125a;return _0x2ee449[_0x383912('0x2a')](_0x3fb433,{'transaction':_0x155318})[_0x383912('0x64')](function(){return Promise['each'](_0x1e2634,function(_0x1947e2){const _0x42e5f8=a212_0x103d;return db[_0x42e5f8('0x61')]['findOrCreate']({'where':{'UserId':_0x1947e2['id'],'FaxQueueId':_0x1351e8[_0x42e5f8('0x17')]['id']},'transaction':_0x155318});});})[_0x383912('0x64')](function(){_0x1e2634['forEach'](function(_0x37b89e){const _0x3f351e=a212_0x103d;socket[_0x3f351e('0x67')]('userFaxQueue:save',{'UserId':_0x37b89e['id'],'FaxQueueId':_0x2ee449['id']});});});});});}})['then'](respondWithStatusCode(_0x4c361d,null))[_0x2dd8a9('0x3c')](handleError(_0x4c361d,null));},exports['removeTeams']=function(_0x1b3e6f,_0x5b154d){const _0x2187d2=_0x1e93b1;return db[_0x2187d2('0x26')]['findAll']({'where':{'id':_0x1b3e6f['query'][_0x2187d2('0x18')]},'attributes':['id'],'include':[{'model':db[_0x2187d2('0x4')],'as':_0x2187d2('0x3f'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x5b154d,null))[_0x2187d2('0x64')](function(_0x267abb){const _0x4f794c=_0x2187d2,_0x2817e1=_[_0x4f794c('0x4c')](_0x267abb,'id');let _0x480865=[];const _0x137bc4=[],_0x4a8792=squel['select']();_0x4a8792[_0x4f794c('0x43')](_0x4f794c('0x41'))['from']('team_has_fax_queues','tq')[_0x4f794c('0x22')](_0x4f794c('0x65'),'ut',_0x4f794c('0x25'))[_0x4f794c('0x51')](_0x4f794c('0x60'),_0x1b3e6f[_0x4f794c('0x17')]['id']);for(let _0x1d72ea=0x0;_0x1d72ea<_0x267abb[_0x4f794c('0x4d')];_0x1d72ea+=0x1){const _0x42582f=_0x267abb[_0x1d72ea];for(let _0x4f0f5e=0x0;_0x4f0f5e<_0x42582f[_0x4f794c('0x3f')][_0x4f794c('0x4d')];_0x4f0f5e+=0x1){const _0x34966f=_0x42582f[_0x4f794c('0x3f')][_0x4f0f5e],_0x523d14=_0x4a8792['clone']();_0x523d14[_0x4f794c('0x51')](_0x4f794c('0x30'),_0x34966f['id']),_0x137bc4['push'](db[_0x4f794c('0x14')][_0x4f794c('0x58')](_0x523d14[_0x4f794c('0x1f')](),{'type':QueryTypes[_0x4f794c('0x55')]})[_0x4f794c('0x64')](function(_0x435008){const _0x48cfda=_0x4f794c;if(_0x435008['length']===0x1)return _0x34966f['id'];else{const _0x97e6aa=_[_0x48cfda('0xa')](_[_0x48cfda('0x4c')](_0x435008,_0x48cfda('0x5')),function(_0x551058){const _0x2ee771=_0x48cfda;return _[_0x2ee771('0x54')](_0x2817e1,_0x551058);});if(_0x97e6aa)return _0x34966f['id'];}}));}}return Promise[_0x4f794c('0x36')](_0x137bc4)[_0x4f794c('0x64')](function(_0x57abac){const _0x44f8f7=_0x4f794c;return _0x480865=_(_0x480865)['union'](_0x57abac)[_0x44f8f7('0xd')]()['value'](),db['FaxQueue'][_0x44f8f7('0x63')]({'where':{'id':_0x1b3e6f[_0x44f8f7('0x17')]['id']}})[_0x44f8f7('0x64')](function(_0x474c05){const _0x54fe9c=_0x44f8f7;return db[_0x54fe9c('0x14')]['transaction'](function(_0xe5a28d){const _0x3bbbb9=_0x54fe9c;return _0x474c05[_0x3bbbb9('0x15')](_0x1b3e6f['query'][_0x3bbbb9('0x18')],{'transaction':_0xe5a28d})[_0x3bbbb9('0x64')](function(){const _0x29bf9c=_0x3bbbb9;if(!_['isEmpty'](_0x480865))return _0x474c05[_0x29bf9c('0x62')](_0x480865,{'transaction':_0xe5a28d});})[_0x3bbbb9('0x64')](function(){_0x480865['forEach'](function(_0x3ca64e){const _0xc616a4=a212_0x103d;socket[_0xc616a4('0x67')]('userFaxQueue:remove',{'UserId':_0x3ca64e,'FaxQueueId':_0x474c05['id']});});});});});});})[_0x2187d2('0x64')](respondWithStatusCode(_0x5b154d,null))['catch'](handleError(_0x5b154d,null));},exports[_0x1e93b1('0x31')]=function(_0x1f1a88,_0x11de77){const _0x1b9359=_0x1e93b1;return db[_0x1b9359('0x34')][_0x1b9359('0x63')]({'where':{'id':_0x1f1a88[_0x1b9359('0x17')]['id']}})[_0x1b9359('0x64')](function(_0x293dd1){const _0x396434=_0x1b9359;if(_0x293dd1)return _0x293dd1[_0x396434('0x31')](_0x1f1a88[_0x396434('0x44')][_0x396434('0x18')],{'through':_[_0x396434('0x69')](_0x1f1a88[_0x396434('0x44')],[_0x396434('0x18'),'id'])})['then'](function(_0xe277cc){const _0x2b4487=_0x396434;for(let _0x392c37=0x0;_0x392c37<_0x1f1a88[_0x2b4487('0x44')]['ids'][_0x2b4487('0x4d')];_0x392c37+=0x1){socket[_0x2b4487('0x67')](_0x2b4487('0x24'),{'UserId':_0x1f1a88[_0x2b4487('0x44')][_0x2b4487('0x18')][_0x392c37],'FaxQueueId':_0x1f1a88[_0x2b4487('0x17')]['id']});}return _0xe277cc;});})[_0x1b9359('0x64')](respondWithResult(_0x11de77,null))[_0x1b9359('0x3c')](handleError(_0x11de77,null));},exports[_0x1e93b1('0x62')]=function(_0x1609dc,_0x1e566b){const _0x53031a=_0x1e93b1;return db['FaxQueue'][_0x53031a('0x63')]({'where':{'id':_0x1609dc[_0x53031a('0x17')]['id']}})[_0x53031a('0x64')](handleEntityNotFound(_0x1e566b,null))['then'](function(_0x52d386){const _0x25cd7b=_0x53031a;if(_0x52d386)return _0x52d386[_0x25cd7b('0x62')](_0x1609dc[_0x25cd7b('0x58')][_0x25cd7b('0x18')])[_0x25cd7b('0x64')](function(){const _0x287a5a=_0x25cd7b;if(_['isArray'](_0x1609dc['query'][_0x287a5a('0x18')]))for(let _0x27348a=0x0;_0x27348a<_0x1609dc['query']['ids']['length'];_0x27348a+=0x1){socket[_0x287a5a('0x67')](_0x287a5a('0x16'),{'UserId':Number(_0x1609dc[_0x287a5a('0x58')][_0x287a5a('0x18')][_0x27348a]),'FaxQueueId':Number(_0x1609dc[_0x287a5a('0x17')]['id'])});}else socket[_0x287a5a('0x67')](_0x287a5a('0x16'),{'UserId':Number(_0x1609dc[_0x287a5a('0x58')]['ids']),'FaxQueueId':Number(_0x1609dc[_0x287a5a('0x17')]['id'])});});})[_0x53031a('0x64')](respondWithStatusCode(_0x1e566b,null))[_0x53031a('0x3c')](handleError(_0x1e566b,null));},exports[_0x1e93b1('0x59')]=function(_0x12623d,_0x5b143f){const _0x20099f=_0x1e93b1;let _0x40e6e6={};const _0x5caa41={};let _0x52201a,_0x1cd85d;return db['FaxQueue'][_0x20099f('0x63')]({'where':{'id':_0x12623d[_0x20099f('0x17')]['id']}})[_0x20099f('0x64')](handleEntityNotFound(_0x5b143f,null))[_0x20099f('0x64')](function(_0x4af646){const _0x4bfb1d=_0x20099f;if(_0x4af646)return _0x52201a=_0x4af646,_0x5caa41['model']=_[_0x4bfb1d('0x2c')](db[_0x4bfb1d('0x4')]['rawAttributes']),_0x5caa41['query']=_['keys'](_0x12623d[_0x4bfb1d('0x58')]),_0x5caa41[_0x4bfb1d('0x8')]=_['intersection'](_0x5caa41[_0x4bfb1d('0x6c')],_0x5caa41[_0x4bfb1d('0x58')]),_0x40e6e6[_0x4bfb1d('0x5e')]=_[_0x4bfb1d('0x6d')](_0x5caa41['model'],qs['fields'](_0x12623d['query'][_0x4bfb1d('0x33')])),_0x40e6e6[_0x4bfb1d('0x5e')]=_0x40e6e6['attributes'][_0x4bfb1d('0x4d')]?_0x40e6e6[_0x4bfb1d('0x5e')]:_0x5caa41[_0x4bfb1d('0x6c')],_0x40e6e6['order']=qs['sort'](_0x12623d[_0x4bfb1d('0x58')][_0x4bfb1d('0x1c')]),_0x40e6e6[_0x4bfb1d('0x51')]=qs[_0x4bfb1d('0x8')](_[_0x4bfb1d('0x1b')](_0x12623d[_0x4bfb1d('0x58')],_0x5caa41[_0x4bfb1d('0x8')])),_0x12623d[_0x4bfb1d('0x58')][_0x4bfb1d('0x66')]&&(_0x40e6e6[_0x4bfb1d('0x51')]=_[_0x4bfb1d('0x40')](_0x40e6e6[_0x4bfb1d('0x51')],{[Op['or']]:_[_0x4bfb1d('0x4c')](_0x40e6e6[_0x4bfb1d('0x5e')],function(_0x3d22be){const _0xa593f8=_0x4bfb1d,_0x4b25d6={};return _0x4b25d6[_0x3d22be]={[Op[_0xa593f8('0x5d')]]:'%'+_0x12623d['query'][_0xa593f8('0x66')]+'%'},_0x4b25d6;})})),_0x40e6e6=_[_0x4bfb1d('0x40')]({},_0x40e6e6,_0x12623d[_0x4bfb1d('0x1d')]),_0x52201a[_0x4bfb1d('0x59')](_0x40e6e6);})['then'](function(_0x286e08){const _0x14797b=_0x20099f;if(_0x286e08)return _0x1cd85d=_0x286e08[_0x14797b('0x4d')],typeof _0x12623d[_0x14797b('0x58')]['nolimit']===_0x14797b('0x38')&&(_0x40e6e6[_0x14797b('0x50')]=qs['limit'](_0x12623d['query'][_0x14797b('0x50')]),_0x40e6e6[_0x14797b('0x5c')]=qs[_0x14797b('0x5c')](_0x12623d[_0x14797b('0x58')][_0x14797b('0x5c')])),_0x52201a['getAgents'](_0x40e6e6);})['then'](function(_0x3a2cc1){if(_0x3a2cc1)return _0x3a2cc1?{'count':_0x1cd85d,'rows':_0x3a2cc1}:null;})[_0x20099f('0x64')](respondWithResult(_0x5b143f,null))['catch'](handleError(_0x5b143f,null));}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.events.js b/server/api/faxQueue/faxQueue.events.js index 9fc21f5..dedc8ae 100644 --- a/server/api/faxQueue/faxQueue.events.js +++ b/server/api/faxQueue/faxQueue.events.js @@ -1 +1 @@ -const a213_0x3f95=['emit','../../mysqldb','FaxQueue','undefined','save','setMaxListeners','events','exports'];(function(_0x4bd666,_0x3f95e6){const _0xd2573d=function(_0x120f49){while(--_0x120f49){_0x4bd666['push'](_0x4bd666['shift']());}};_0xd2573d(++_0x3f95e6);}(a213_0x3f95,0x159));const a213_0xd257=function(_0x4bd666,_0x3f95e6){_0x4bd666=_0x4bd666-0x0;let _0xd2573d=a213_0x3f95[_0x4bd666];return _0xd2573d;};const _0x441b6e=a213_0xd257;'use strict';const EventEmitter=require(_0x441b6e('0x5')),FaxQueue=require(_0x441b6e('0x0'))['db'][_0x441b6e('0x1')],FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x441b6e('0x4')](0x0);const events={'afterCreate':_0x441b6e('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x120f49){return function(_0x245091){const _0x431d7b=a213_0xd257;FaxQueueEvents[_0x431d7b('0x7')](_0x120f49+':'+_0x245091['id'],_0x245091),FaxQueueEvents['emit'](_0x120f49,_0x245091);};}for(const e in events){if(typeof events[e]!==_0x441b6e('0x2')){const event=events[e];FaxQueue['addHook'](e,emitEvent(event));}}module[_0x441b6e('0x6')]=FaxQueueEvents; \ No newline at end of file +const a213_0x5135=['setMaxListeners','exports','../../mysqldb','emit','remove','addHook','save','undefined','events'];(function(_0x14f05c,_0x51356a){const _0x993d39=function(_0x15e8f0){while(--_0x15e8f0){_0x14f05c['push'](_0x14f05c['shift']());}};_0x993d39(++_0x51356a);}(a213_0x5135,0xd1));const a213_0x993d=function(_0x14f05c,_0x51356a){_0x14f05c=_0x14f05c-0x0;let _0x993d39=a213_0x5135[_0x14f05c];return _0x993d39;};const _0x258385=a213_0x993d;'use strict';const EventEmitter=require(_0x258385('0x6')),FaxQueue=require(_0x258385('0x0'))['db']['FaxQueue'],FaxQueueEvents=new EventEmitter();FaxQueueEvents[_0x258385('0x7')](0x0);const events={'afterCreate':_0x258385('0x4'),'afterUpdate':'update','afterDestroy':_0x258385('0x2')};function emitEvent(_0x15e8f0){return function(_0x4c2814){const _0x2ef78e=a213_0x993d;FaxQueueEvents[_0x2ef78e('0x1')](_0x15e8f0+':'+_0x4c2814['id'],_0x4c2814),FaxQueueEvents[_0x2ef78e('0x1')](_0x15e8f0,_0x4c2814);};}for(const e in events){if(typeof events[e]!==_0x258385('0x5')){const event=events[e];FaxQueue[_0x258385('0x3')](e,emitEvent(event));}}module[_0x258385('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 7ff640a..0785f19 100644 --- a/server/api/faxQueue/faxQueue.model.js +++ b/server/api/faxQueue/faxQueue.model.js @@ -1 +1 @@ -const a214_0x59bc=['define','./faxQueue.attributes','fax_queues'];(function(_0x27bc11,_0x59bc07){const _0x1a0968=function(_0x371d25){while(--_0x371d25){_0x27bc11['push'](_0x27bc11['shift']());}};_0x1a0968(++_0x59bc07);}(a214_0x59bc,0x19f));const a214_0x1a09=function(_0x27bc11,_0x59bc07){_0x27bc11=_0x27bc11-0x0;let _0x1a0968=a214_0x59bc[_0x27bc11];return _0x1a0968;};const _0x54eca3=a214_0x1a09;'use strict';const attributes=require(_0x54eca3('0x0'));module['exports']=function(_0x371d25){const _0x147607=_0x54eca3,_0xb06a57=_0x371d25[_0x147607('0x2')]('FaxQueue',attributes,{'tableName':_0x147607('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xb06a57;}; \ No newline at end of file +const a214_0x27d7=['define','./faxQueue.attributes','fax_queues','FaxQueue'];(function(_0x2bc87f,_0x27d7d3){const _0x3ca9c6=function(_0x26d9a4){while(--_0x26d9a4){_0x2bc87f['push'](_0x2bc87f['shift']());}};_0x3ca9c6(++_0x27d7d3);}(a214_0x27d7,0x16c));const a214_0x3ca9=function(_0x2bc87f,_0x27d7d3){_0x2bc87f=_0x2bc87f-0x0;let _0x3ca9c6=a214_0x27d7[_0x2bc87f];return _0x3ca9c6;};const _0x1af80e=a214_0x3ca9;'use strict';const attributes=require(_0x1af80e('0x1'));module['exports']=function(_0x26d9a4){const _0x1c880c=_0x1af80e,_0x885479=_0x26d9a4[_0x1c880c('0x0')](_0x1c880c('0x3'),attributes,{'tableName':_0x1c880c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x885479;}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.rpc.js b/server/api/faxQueue/faxQueue.rpc.js index 34ca098..b556ddb 100644 --- a/server/api/faxQueue/faxQueue.rpc.js +++ b/server/api/faxQueue/faxQueue.rpc.js @@ -1 +1 @@ -const a215_0x1423=['limit','model','ShowFaxQueue','options','attributes','where','raw','../../mysqldb','lodash','stringify','rpc','map','findOne','register','debug','error','then','message','info','./faxQueue.socket','../../config/logger','include','../../rediscache','GetFaxQueue','findAll'];(function(_0x340fb7,_0x142354){const _0x5b344b=function(_0x3a1ba8){while(--_0x3a1ba8){_0x340fb7['push'](_0x340fb7['shift']());}};_0x5b344b(++_0x142354);}(a215_0x1423,0x95));const a215_0x5b34=function(_0x340fb7,_0x142354){_0x340fb7=_0x340fb7-0x0;let _0x5b344b=a215_0x1423[_0x340fb7];return _0x5b344b;};const _0x1a715f=a215_0x5b34;'use strict';const _=require(_0x1a715f('0x9')),db=require(_0x1a715f('0x8'))['db'],logger=require(_0x1a715f('0x15'))(_0x1a715f('0xb')),{getSocket}=require(_0x1a715f('0x17')),socket=getSocket();require(_0x1a715f('0x14'))[_0x1a715f('0xe')](socket),exports[_0x1a715f('0x18')]=function(_0x3a1ba8){const _0x38e2c5=this;return new Promise(function(_0x1f26e7,_0x45a1f2){const _0x40072d=a215_0x5b34;return db['FaxQueue'][_0x40072d('0x0')]({'raw':_0x3a1ba8[_0x40072d('0x4')]?_0x3a1ba8[_0x40072d('0x4')]['raw']===undefined?!![]:![]:!![],'where':_0x3a1ba8['options']?_0x3a1ba8[_0x40072d('0x4')]['where']||null:null,'attributes':_0x3a1ba8[_0x40072d('0x4')]?_0x3a1ba8[_0x40072d('0x4')]['attributes']||null:null,'limit':_0x3a1ba8[_0x40072d('0x4')]?_0x3a1ba8[_0x40072d('0x4')][_0x40072d('0x1')]||null:null,'include':_0x3a1ba8[_0x40072d('0x4')]?_0x3a1ba8[_0x40072d('0x4')]['include']?_[_0x40072d('0xc')](_0x3a1ba8['options'][_0x40072d('0x16')],function(_0x40e1c9){const _0x23f3d5=_0x40072d;return{'model':db[_0x40e1c9[_0x23f3d5('0x2')]],'as':_0x40e1c9['as'],'attributes':_0x40e1c9['attributes'],'include':_0x40e1c9[_0x23f3d5('0x16')]?_[_0x23f3d5('0xc')](_0x40e1c9[_0x23f3d5('0x16')],function(_0x39e79e){const _0x2d3afa=_0x23f3d5;return{'model':db[_0x39e79e[_0x2d3afa('0x2')]],'as':_0x39e79e['as'],'attributes':_0x39e79e[_0x2d3afa('0x5')],'include':_0x39e79e[_0x2d3afa('0x16')]?_[_0x2d3afa('0xc')](_0x39e79e['include'],function(_0x1dfbdf){const _0x5ec377=_0x2d3afa;return{'model':db[_0x1dfbdf['model']],'as':_0x1dfbdf['as'],'attributes':_0x1dfbdf[_0x5ec377('0x5')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5714a2){const _0x53eed5=_0x40072d;logger[_0x53eed5('0x13')]('GetFaxQueue',_0x3a1ba8),logger['debug']('GetFaxQueue',_0x3a1ba8,JSON[_0x53eed5('0xa')](_0x5714a2)),_0x1f26e7(_0x5714a2);})['catch'](function(_0x370d5c){const _0x114580=_0x40072d;logger['error'](_0x114580('0x18'),_0x370d5c[_0x114580('0x12')],_0x3a1ba8),_0x45a1f2(_0x38e2c5[_0x114580('0x10')](0x1f4,_0x370d5c[_0x114580('0x12')]));});});},exports[_0x1a715f('0x3')]=function(_0x42cb7e){const _0x5e4c0d=this;return new Promise(function(_0x269519,_0x4572f5){const _0x84f2b3=a215_0x5b34;return db['FaxQueue'][_0x84f2b3('0xd')]({'raw':_0x42cb7e[_0x84f2b3('0x4')]?_0x42cb7e[_0x84f2b3('0x4')][_0x84f2b3('0x7')]===undefined?!![]:![]:!![],'where':_0x42cb7e[_0x84f2b3('0x4')]?_0x42cb7e[_0x84f2b3('0x4')][_0x84f2b3('0x6')]||null:null,'attributes':_0x42cb7e[_0x84f2b3('0x4')]?_0x42cb7e['options'][_0x84f2b3('0x5')]||null:null,'include':_0x42cb7e['options']?_0x42cb7e['options']['include']?_[_0x84f2b3('0xc')](_0x42cb7e[_0x84f2b3('0x4')][_0x84f2b3('0x16')],function(_0x201a7e){const _0x537c83=_0x84f2b3;return{'model':db[_0x201a7e['model']],'as':_0x201a7e['as'],'attributes':_0x201a7e[_0x537c83('0x5')],'include':_0x201a7e[_0x537c83('0x16')]?_['map'](_0x201a7e[_0x537c83('0x16')],function(_0x46c62a){const _0x2f3094=_0x537c83;return{'model':db[_0x46c62a['model']],'as':_0x46c62a['as'],'attributes':_0x46c62a[_0x2f3094('0x5')],'include':_0x46c62a[_0x2f3094('0x16')]?_['map'](_0x46c62a['include'],function(_0x5ec1b2){const _0x124fcb=_0x2f3094;return{'model':db[_0x5ec1b2[_0x124fcb('0x2')]],'as':_0x5ec1b2['as'],'attributes':_0x5ec1b2[_0x124fcb('0x5')]};}):[]};}):[]};}):[]:[]})[_0x84f2b3('0x11')](function(_0x4e873){const _0x697d94=_0x84f2b3;logger[_0x697d94('0x13')](_0x697d94('0x3'),_0x42cb7e),logger[_0x697d94('0xf')](_0x697d94('0x3'),_0x42cb7e,JSON['stringify'](_0x4e873)),_0x269519(_0x4e873);})['catch'](function(_0x16b4f2){const _0x46bfa8=_0x84f2b3;logger[_0x46bfa8('0x10')](_0x46bfa8('0x3'),_0x16b4f2[_0x46bfa8('0x12')],_0x42cb7e),_0x4572f5(_0x5e4c0d['error'](0x1f4,_0x16b4f2['message']));});});}; \ No newline at end of file +const a215_0x4a12=['../../config/logger','../../mysqldb','ShowFaxQueue','message','attributes','raw','options','FaxQueue','GetFaxQueue','then','map','../../rediscache','rpc','model','findOne','findAll','include','stringify','register','limit','where','info','debug','error'];(function(_0xc99d5,_0x4a12af){const _0xe4e061=function(_0x3f5545){while(--_0x3f5545){_0xc99d5['push'](_0xc99d5['shift']());}};_0xe4e061(++_0x4a12af);}(a215_0x4a12,0x1c8));const a215_0xe4e0=function(_0xc99d5,_0x4a12af){_0xc99d5=_0xc99d5-0x0;let _0xe4e061=a215_0x4a12[_0xc99d5];return _0xe4e061;};const _0x36515b=a215_0xe4e0;'use strict';const _=require('lodash'),db=require(_0x36515b('0x1'))['db'],logger=require(_0x36515b('0x0'))(_0x36515b('0xc')),{getSocket}=require(_0x36515b('0xb')),socket=getSocket();require('./faxQueue.socket')[_0x36515b('0x12')](socket),exports[_0x36515b('0x8')]=function(_0x3f5545){const _0x19fd0a=this;return new Promise(function(_0x48f9a9,_0x4250cc){const _0xff2006=a215_0xe4e0;return db[_0xff2006('0x7')][_0xff2006('0xf')]({'raw':_0x3f5545['options']?_0x3f5545[_0xff2006('0x6')][_0xff2006('0x5')]===undefined?!![]:![]:!![],'where':_0x3f5545['options']?_0x3f5545['options'][_0xff2006('0x14')]||null:null,'attributes':_0x3f5545['options']?_0x3f5545[_0xff2006('0x6')][_0xff2006('0x4')]||null:null,'limit':_0x3f5545['options']?_0x3f5545[_0xff2006('0x6')][_0xff2006('0x13')]||null:null,'include':_0x3f5545[_0xff2006('0x6')]?_0x3f5545['options'][_0xff2006('0x10')]?_[_0xff2006('0xa')](_0x3f5545['options'][_0xff2006('0x10')],function(_0x409fd0){const _0x234f1d=_0xff2006;return{'model':db[_0x409fd0[_0x234f1d('0xd')]],'as':_0x409fd0['as'],'attributes':_0x409fd0[_0x234f1d('0x4')],'include':_0x409fd0[_0x234f1d('0x10')]?_[_0x234f1d('0xa')](_0x409fd0[_0x234f1d('0x10')],function(_0x2eac1d){const _0x45be33=_0x234f1d;return{'model':db[_0x2eac1d['model']],'as':_0x2eac1d['as'],'attributes':_0x2eac1d[_0x45be33('0x4')],'include':_0x2eac1d[_0x45be33('0x10')]?_[_0x45be33('0xa')](_0x2eac1d[_0x45be33('0x10')],function(_0x2499c1){const _0xd2c667=_0x45be33;return{'model':db[_0x2499c1[_0xd2c667('0xd')]],'as':_0x2499c1['as'],'attributes':_0x2499c1['attributes']};}):[]};}):[]};}):[]:[]})[_0xff2006('0x9')](function(_0x1ea534){const _0x51e4b5=_0xff2006;logger[_0x51e4b5('0x15')](_0x51e4b5('0x8'),_0x3f5545),logger[_0x51e4b5('0x16')](_0x51e4b5('0x8'),_0x3f5545,JSON[_0x51e4b5('0x11')](_0x1ea534)),_0x48f9a9(_0x1ea534);})['catch'](function(_0x4ea12d){const _0x2c756a=_0xff2006;logger[_0x2c756a('0x17')](_0x2c756a('0x8'),_0x4ea12d[_0x2c756a('0x3')],_0x3f5545),_0x4250cc(_0x19fd0a['error'](0x1f4,_0x4ea12d[_0x2c756a('0x3')]));});});},exports[_0x36515b('0x2')]=function(_0x5ee76d){const _0x4fa555=this;return new Promise(function(_0x80fbb0,_0x158419){const _0x543a81=a215_0xe4e0;return db[_0x543a81('0x7')][_0x543a81('0xe')]({'raw':_0x5ee76d[_0x543a81('0x6')]?_0x5ee76d[_0x543a81('0x6')][_0x543a81('0x5')]===undefined?!![]:![]:!![],'where':_0x5ee76d['options']?_0x5ee76d[_0x543a81('0x6')]['where']||null:null,'attributes':_0x5ee76d['options']?_0x5ee76d[_0x543a81('0x6')]['attributes']||null:null,'include':_0x5ee76d['options']?_0x5ee76d[_0x543a81('0x6')][_0x543a81('0x10')]?_[_0x543a81('0xa')](_0x5ee76d[_0x543a81('0x6')]['include'],function(_0x4fb2b2){const _0x154d9b=_0x543a81;return{'model':db[_0x4fb2b2['model']],'as':_0x4fb2b2['as'],'attributes':_0x4fb2b2[_0x154d9b('0x4')],'include':_0x4fb2b2[_0x154d9b('0x10')]?_[_0x154d9b('0xa')](_0x4fb2b2[_0x154d9b('0x10')],function(_0x448e77){const _0x2c984b=_0x154d9b;return{'model':db[_0x448e77[_0x2c984b('0xd')]],'as':_0x448e77['as'],'attributes':_0x448e77[_0x2c984b('0x4')],'include':_0x448e77['include']?_[_0x2c984b('0xa')](_0x448e77['include'],function(_0x4dbedb){const _0x3bec9c=_0x2c984b;return{'model':db[_0x4dbedb[_0x3bec9c('0xd')]],'as':_0x4dbedb['as'],'attributes':_0x4dbedb['attributes']};}):[]};}):[]};}):[]:[]})[_0x543a81('0x9')](function(_0x3569cc){const _0x2eb786=_0x543a81;logger[_0x2eb786('0x15')](_0x2eb786('0x2'),_0x5ee76d),logger[_0x2eb786('0x16')]('ShowFaxQueue',_0x5ee76d,JSON[_0x2eb786('0x11')](_0x3569cc)),_0x80fbb0(_0x3569cc);})['catch'](function(_0x4a906b){const _0x5580b9=_0x543a81;logger[_0x5580b9('0x17')](_0x5580b9('0x2'),_0x4a906b[_0x5580b9('0x3')],_0x5ee76d),_0x158419(_0x4fa555[_0x5580b9('0x17')](0x1f4,_0x4a906b['message']));});});}; \ No newline at end of file diff --git a/server/api/faxQueue/faxQueue.socket.js b/server/api/faxQueue/faxQueue.socket.js index a87a8da..0e46ccf 100644 --- a/server/api/faxQueue/faxQueue.socket.js +++ b/server/api/faxQueue/faxQueue.socket.js @@ -1 +1 @@ -const a216_0x4c8e=['register','update','remove','./faxQueue.events','length','faxQueue:','save'];(function(_0x5e55ef,_0x4c8ef6){const _0x22518b=function(_0x487941){while(--_0x487941){_0x5e55ef['push'](_0x5e55ef['shift']());}};_0x22518b(++_0x4c8ef6);}(a216_0x4c8e,0xc0));const a216_0x2251=function(_0x5e55ef,_0x4c8ef6){_0x5e55ef=_0x5e55ef-0x0;let _0x22518b=a216_0x4c8e[_0x5e55ef];return _0x22518b;};const _0x1a1bce=a216_0x2251;'use strict';const FaxQueueEvents=require(_0x1a1bce('0x0')),events=[_0x1a1bce('0x3'),_0x1a1bce('0x6'),_0x1a1bce('0x5')];function createListener(_0x487941,_0x2bbad4){return function(_0x40b799){_0x2bbad4['emit'](_0x487941,_0x40b799);};}exports[_0x1a1bce('0x4')]=function(_0x4fda1){const _0x4b7388=_0x1a1bce;for(let _0x53d7cb=0x0,_0xb544e5=events[_0x4b7388('0x1')];_0x53d7cb<_0xb544e5;_0x53d7cb++){const _0x342241=events[_0x53d7cb],_0x30e089=createListener(_0x4b7388('0x2')+_0x342241,_0x4fda1);FaxQueueEvents['on'](_0x342241,_0x30e089);}}; \ No newline at end of file +const a216_0x5106=['save','emit','update','faxQueue:','register','length'];(function(_0x2c781a,_0x51065d){const _0x52ba7c=function(_0x5613a9){while(--_0x5613a9){_0x2c781a['push'](_0x2c781a['shift']());}};_0x52ba7c(++_0x51065d);}(a216_0x5106,0x1d8));const a216_0x52ba=function(_0x2c781a,_0x51065d){_0x2c781a=_0x2c781a-0x0;let _0x52ba7c=a216_0x5106[_0x2c781a];return _0x52ba7c;};const _0x3399e6=a216_0x52ba;'use strict';const FaxQueueEvents=require('./faxQueue.events'),events=[_0x3399e6('0x2'),'remove',_0x3399e6('0x4')];function createListener(_0x5613a9,_0x59e2db){return function(_0x2b761a){const _0x87fd55=a216_0x52ba;_0x59e2db[_0x87fd55('0x3')](_0x5613a9,_0x2b761a);};}exports[_0x3399e6('0x0')]=function(_0x383eb9){const _0x4b77d7=_0x3399e6;for(let _0x24c057=0x0,_0x45e694=events[_0x4b77d7('0x1')];_0x24c057<_0x45e694;_0x24c057++){const _0x1b5c32=events[_0x24c057],_0x4f71cd=createListener(_0x4b77d7('0x5')+_0x1b5c32,_0x383eb9);FaxQueueEvents['on'](_0x1b5c32,_0x4f71cd);}}; \ No newline at end of file diff --git a/server/api/faxQueue/index.js b/server/api/faxQueue/index.js index 246cecd..36c0741 100644 --- a/server/api/faxQueue/index.js +++ b/server/api/faxQueue/index.js @@ -1 +1 @@ -const a217_0x2fc0=['removeAgents','getTeams','express','../../components/auth/service','/:id','isAuthenticated','put','/:id/users','/:id/members','removeTeams','create','getMembers','/:id/teams','./faxQueue.controller','Router','exports','delete','get','addTeams','getAgents','post','addAgents'];(function(_0xfef069,_0x2fc0d3){const _0x167c9f=function(_0x81d2ed){while(--_0x81d2ed){_0xfef069['push'](_0xfef069['shift']());}};_0x167c9f(++_0x2fc0d3);}(a217_0x2fc0,0xae));const a217_0x167c=function(_0xfef069,_0x2fc0d3){_0xfef069=_0xfef069-0x0;let _0x167c9f=a217_0x2fc0[_0xfef069];return _0x167c9f;};const _0x1b7689=a217_0x167c;'use strict';const express=require(_0x1b7689('0x4')),router=express[_0x1b7689('0x10')](),auth=require(_0x1b7689('0x5')),controller=require(_0x1b7689('0xf'));router[_0x1b7689('0x13')]('/',auth['isAuthenticated'](),controller['index']),router[_0x1b7689('0x13')]('/describe',auth['isAuthenticated'](),controller['describe']),router[_0x1b7689('0x13')](_0x1b7689('0x6'),auth[_0x1b7689('0x7')](),controller['show']),router[_0x1b7689('0x13')](_0x1b7689('0xa'),auth[_0x1b7689('0x7')](),controller[_0x1b7689('0xd')]),router[_0x1b7689('0x13')](_0x1b7689('0xe'),auth[_0x1b7689('0x7')](),controller[_0x1b7689('0x3')]),router['get']('/:id/users',auth['isAuthenticated'](),controller[_0x1b7689('0x15')]),router['post']('/',auth[_0x1b7689('0x7')](),controller[_0x1b7689('0xc')]),router[_0x1b7689('0x0')](_0x1b7689('0xe'),auth[_0x1b7689('0x7')](),controller[_0x1b7689('0x14')]),router[_0x1b7689('0x0')](_0x1b7689('0x9'),auth['isAuthenticated'](),controller[_0x1b7689('0x1')]),router[_0x1b7689('0x8')](_0x1b7689('0x6'),auth[_0x1b7689('0x7')](),controller['update']),router[_0x1b7689('0x12')](_0x1b7689('0x6'),auth[_0x1b7689('0x7')](),controller['destroy']),router['delete']('/:id/teams',auth[_0x1b7689('0x7')](),controller[_0x1b7689('0xb')]),router['delete'](_0x1b7689('0x9'),auth[_0x1b7689('0x7')](),controller[_0x1b7689('0x2')]),module[_0x1b7689('0x11')]=router; \ No newline at end of file +const a217_0x30bb=['getAgents','../../components/auth/service','/describe','Router','put','/:id/members','addTeams','/:id','describe','getMembers','show','/:id/users','destroy','./faxQueue.controller','post','/:id/teams','exports','update','addAgents','index','removeAgents','removeTeams','delete','get','create','isAuthenticated'];(function(_0x27d53c,_0x30bbf6){const _0x5cf9e3=function(_0x580c5c){while(--_0x580c5c){_0x27d53c['push'](_0x27d53c['shift']());}};_0x5cf9e3(++_0x30bbf6);}(a217_0x30bb,0x9b));const a217_0x5cf9=function(_0x27d53c,_0x30bbf6){_0x27d53c=_0x27d53c-0x0;let _0x5cf9e3=a217_0x30bb[_0x27d53c];return _0x5cf9e3;};const _0x4d680a=a217_0x5cf9;'use strict';const express=require('express'),router=express[_0x4d680a('0x4')](),auth=require(_0x4d680a('0x2')),controller=require(_0x4d680a('0xe'));router['get']('/',auth[_0x4d680a('0x0')](),controller[_0x4d680a('0x14')]),router['get'](_0x4d680a('0x3'),auth[_0x4d680a('0x0')](),controller[_0x4d680a('0x9')]),router[_0x4d680a('0x18')](_0x4d680a('0x8'),auth[_0x4d680a('0x0')](),controller[_0x4d680a('0xb')]),router[_0x4d680a('0x18')](_0x4d680a('0x6'),auth[_0x4d680a('0x0')](),controller[_0x4d680a('0xa')]),router['get'](_0x4d680a('0x10'),auth[_0x4d680a('0x0')](),controller['getTeams']),router[_0x4d680a('0x18')](_0x4d680a('0xc'),auth['isAuthenticated'](),controller[_0x4d680a('0x1')]),router[_0x4d680a('0xf')]('/',auth[_0x4d680a('0x0')](),controller[_0x4d680a('0x19')]),router['post']('/:id/teams',auth['isAuthenticated'](),controller[_0x4d680a('0x7')]),router[_0x4d680a('0xf')]('/:id/users',auth['isAuthenticated'](),controller[_0x4d680a('0x13')]),router[_0x4d680a('0x5')](_0x4d680a('0x8'),auth['isAuthenticated'](),controller[_0x4d680a('0x12')]),router[_0x4d680a('0x17')](_0x4d680a('0x8'),auth['isAuthenticated'](),controller[_0x4d680a('0xd')]),router[_0x4d680a('0x17')](_0x4d680a('0x10'),auth[_0x4d680a('0x0')](),controller[_0x4d680a('0x16')]),router[_0x4d680a('0x17')](_0x4d680a('0xc'),auth[_0x4d680a('0x0')](),controller[_0x4d680a('0x15')]),module[_0x4d680a('0x11')]=router; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.attributes.js b/server/api/faxQueueReport/faxQueueReport.attributes.js index c32df45..7bfe1a5 100644 --- a/server/api/faxQueueReport/faxQueueReport.attributes.js +++ b/server/api/faxQueueReport/faxQueueReport.attributes.js @@ -1 +1 @@ -const a218_0x5381=['DATE','STRING'];(function(_0x224bb4,_0x53819e){const _0x3b80d6=function(_0x58a66c){while(--_0x58a66c){_0x224bb4['push'](_0x224bb4['shift']());}};_0x3b80d6(++_0x53819e);}(a218_0x5381,0xb2));const a218_0x3b80=function(_0x224bb4,_0x53819e){_0x224bb4=_0x224bb4-0x0;let _0x3b80d6=a218_0x5381[_0x224bb4];return _0x3b80d6;};const _0x42de76=a218_0x3b80;'use strict';const Sequelize=require('sequelize');module['exports']={'uniqueid':{'type':Sequelize[_0x42de76('0x1')],'allowNull':![]},'from':{'type':Sequelize[_0x42de76('0x1')]},'joinAt':{'type':Sequelize[_0x42de76('0x0')]},'leaveAt':{'type':Sequelize[_0x42de76('0x0')]},'acceptAt':{'type':Sequelize[_0x42de76('0x0')]},'exitAt':{'type':Sequelize[_0x42de76('0x0')]},'reason':{'type':Sequelize[_0x42de76('0x1')]}}; \ No newline at end of file +const a218_0x4ae0=['exports','sequelize','STRING','DATE'];(function(_0x5e0d0b,_0x4ae0d9){const _0x29c3e2=function(_0x3c032d){while(--_0x3c032d){_0x5e0d0b['push'](_0x5e0d0b['shift']());}};_0x29c3e2(++_0x4ae0d9);}(a218_0x4ae0,0x133));const a218_0x29c3=function(_0x5e0d0b,_0x4ae0d9){_0x5e0d0b=_0x5e0d0b-0x0;let _0x29c3e2=a218_0x4ae0[_0x5e0d0b];return _0x29c3e2;};const _0x31044c=a218_0x29c3;'use strict';const Sequelize=require(_0x31044c('0x2'));module[_0x31044c('0x1')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize[_0x31044c('0x3')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0x31044c('0x0')]},'acceptAt':{'type':Sequelize[_0x31044c('0x0')]},'exitAt':{'type':Sequelize[_0x31044c('0x0')]},'reason':{'type':Sequelize[_0x31044c('0x3')]}}; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.controller.js b/server/api/faxQueueReport/faxQueueReport.controller.js index 6f9e026..529475a 100644 --- a/server/api/faxQueueReport/faxQueueReport.controller.js +++ b/server/api/faxQueueReport/faxQueueReport.controller.js @@ -1 +1 @@ -const a219_0x26b4=['fields','like','offset','limit','sequelize','../../components/parsers/qs','rows','params','api','json','destroy','status','rawAttributes','body','filter','includeAll','Content-Range','FaxQueueReport','describe','intersection','where','count','index','set','query','then','type','merge','send','update','create','findOne','sort','show','model','lodash','error','order','length','keys','map','undefined','findAll','../../config/logger','sendStatus','pick','catch','fieldName','name','include','attributes','../../mysqldb','filters'];(function(_0x48e0b5,_0x26b429){const _0x272711=function(_0x4ce2a6){while(--_0x4ce2a6){_0x48e0b5['push'](_0x48e0b5['shift']());}};_0x272711(++_0x26b429);}(a219_0x26b4,0xcd));const a219_0x2727=function(_0x48e0b5,_0x26b429){_0x48e0b5=_0x48e0b5-0x0;let _0x272711=a219_0x26b4[_0x48e0b5];return _0x272711;};const _0x1e3b01=a219_0x2727;'use strict';const _=require(_0x1e3b01('0x2a')),qs=require(_0x1e3b01('0xc')),logger=require(_0x1e3b01('0x32'))(_0x1e3b01('0xf')),db=require(_0x1e3b01('0x5'))['db'],{Op}=require(_0x1e3b01('0xb'));function respondWithResult(_0x4ce2a6,_0x2634ea){return _0x2634ea=_0x2634ea||0xc8,function(_0x4c63d8){const _0x15d11f=a219_0x2727;if(_0x4c63d8)return _0x4ce2a6['status'](_0x2634ea)[_0x15d11f('0x10')](_0x4c63d8);};}function respondWithFilteredResult(_0x29a64d,_0x1281d9){return function(_0x47efc0){const _0x39edd2=a219_0x2727;if(_0x47efc0){const _0x443d04=_0x47efc0[_0x39edd2('0x1c')],_0x48acd7=_0x1281d9[_0x39edd2('0x9')];let _0x1bca6a=_0x1281d9[_0x39edd2('0x9')]+_0x1281d9[_0x39edd2('0xa')],_0x49a1b2;return _0x1bca6a>=_0x443d04?(_0x1bca6a=_0x443d04,_0x49a1b2=0xc8):_0x49a1b2=0xce,_0x29a64d[_0x39edd2('0x12')](_0x49a1b2),_0x29a64d[_0x39edd2('0x1e')](_0x39edd2('0x17'),_0x48acd7+'-'+_0x1bca6a+'/'+_0x443d04)[_0x39edd2('0x10')](_0x47efc0);}return null;};}function saveUpdates(_0x18639e){return function(_0x54cf56){const _0x54c7bd=a219_0x2727;if(_0x54cf56)return _0x54cf56[_0x54c7bd('0x24')](_0x18639e)[_0x54c7bd('0x20')](function(_0x2a0b2d){return _0x2a0b2d;});return null;};}function removeEntity(_0xbf3573){return function(_0x7ca78a){const _0x40d4cf=a219_0x2727;if(_0x7ca78a)return _0x7ca78a[_0x40d4cf('0x11')]()['then'](function(){const _0x24a6ad=_0x40d4cf;_0xbf3573[_0x24a6ad('0x12')](0xcc)['end']();});};}function handleEntityNotFound(_0x4ad9c0){return function(_0x2b3fb2){const _0x5201b1=a219_0x2727;return!_0x2b3fb2&&_0x4ad9c0[_0x5201b1('0x33')](0x194),_0x2b3fb2;};}function handleError(_0x5acdc3,_0x2d2ed9){return _0x2d2ed9=_0x2d2ed9||0x1f4,function(_0x27ee16){const _0x3e3c32=a219_0x2727;logger[_0x3e3c32('0x2b')](_0x27ee16['stack']),_0x27ee16[_0x3e3c32('0x2')]&&delete _0x27ee16[_0x3e3c32('0x2')],_0x5acdc3[_0x3e3c32('0x12')](_0x2d2ed9)[_0x3e3c32('0x23')](_0x27ee16);};}exports[_0x1e3b01('0x1d')]=function(_0x2ae619,_0x274fd3){const _0x45b5c4=_0x1e3b01;let _0x2a58fc={};const _0x2014c7={},_0x1a43be={'count':0x0,'rows':[]},_0xf72628=_['map'](db[_0x45b5c4('0x18')]['rawAttributes'],function(_0x397d7f){const _0x457bfd=_0x45b5c4;return{'name':_0x397d7f[_0x457bfd('0x1')],'type':_0x397d7f[_0x457bfd('0x21')]['key']};});_0x2014c7[_0x45b5c4('0x29')]=_[_0x45b5c4('0x2f')](_0xf72628,_0x45b5c4('0x2')),_0x2014c7['query']=_[_0x45b5c4('0x2e')](_0x2ae619[_0x45b5c4('0x1f')]),_0x2014c7[_0x45b5c4('0x6')]=_[_0x45b5c4('0x1a')](_0x2014c7[_0x45b5c4('0x29')],_0x2014c7[_0x45b5c4('0x1f')]),_0x2a58fc[_0x45b5c4('0x4')]=_[_0x45b5c4('0x1a')](_0x2014c7[_0x45b5c4('0x29')],qs[_0x45b5c4('0x7')](_0x2ae619[_0x45b5c4('0x1f')][_0x45b5c4('0x7')])),_0x2a58fc['attributes']=_0x2a58fc[_0x45b5c4('0x4')][_0x45b5c4('0x2d')]?_0x2a58fc[_0x45b5c4('0x4')]:_0x2014c7[_0x45b5c4('0x29')];typeof _0x2ae619['query']['nolimit']===_0x45b5c4('0x30')&&(_0x2a58fc['limit']=qs['limit'](_0x2ae619['query'][_0x45b5c4('0xa')]),_0x2a58fc[_0x45b5c4('0x9')]=qs['offset'](_0x2ae619[_0x45b5c4('0x1f')]['offset']));_0x2a58fc[_0x45b5c4('0x2c')]=qs[_0x45b5c4('0x27')](_0x2ae619[_0x45b5c4('0x1f')][_0x45b5c4('0x27')]),_0x2a58fc['where']=qs[_0x45b5c4('0x6')](_[_0x45b5c4('0x34')](_0x2ae619['query'],_0x2014c7[_0x45b5c4('0x6')]),_0xf72628);_0x2ae619[_0x45b5c4('0x1f')][_0x45b5c4('0x15')]&&(_0x2a58fc[_0x45b5c4('0x1b')]=_['merge'](_0x2a58fc[_0x45b5c4('0x1b')],{[Op['or']]:_[_0x45b5c4('0x2f')](_0xf72628,function(_0x1e0aee){const _0x487240=_0x45b5c4;if(_0x1e0aee['type']!=='VIRTUAL'){const _0x3d84f2={};return _0x3d84f2[_0x1e0aee[_0x487240('0x2')]]={[Op[_0x487240('0x8')]]:'%'+_0x2ae619[_0x487240('0x1f')][_0x487240('0x15')]+'%'},_0x3d84f2;}})}));_0x2a58fc=_[_0x45b5c4('0x22')]({},_0x2a58fc,_0x2ae619['options']);const _0x246587={'where':_0x2a58fc[_0x45b5c4('0x1b')]};return db[_0x45b5c4('0x18')][_0x45b5c4('0x1c')](_0x246587)['then'](function(_0x1df992){const _0x3df72c=_0x45b5c4;return _0x1a43be[_0x3df72c('0x1c')]=_0x1df992,_0x2ae619[_0x3df72c('0x1f')][_0x3df72c('0x16')]&&(_0x2a58fc[_0x3df72c('0x3')]=[{'all':!![]}]),db['FaxQueueReport'][_0x3df72c('0x31')](_0x2a58fc);})[_0x45b5c4('0x20')](function(_0x4a4bb4){const _0x2c1976=_0x45b5c4;return _0x1a43be[_0x2c1976('0xd')]=_0x4a4bb4,_0x1a43be;})['then'](respondWithFilteredResult(_0x274fd3,_0x2a58fc))[_0x45b5c4('0x0')](handleError(_0x274fd3,null));},exports[_0x1e3b01('0x28')]=function(_0xb692bb,_0x28220e){const _0x4bef55=_0x1e3b01;let _0x3a8f00={'raw':!![],'where':{'id':_0xb692bb['params']['id']}};const _0x52d77e={};return _0x52d77e[_0x4bef55('0x29')]=_[_0x4bef55('0x2e')](db[_0x4bef55('0x18')][_0x4bef55('0x13')]),_0x52d77e[_0x4bef55('0x1f')]=_[_0x4bef55('0x2e')](_0xb692bb[_0x4bef55('0x1f')]),_0x52d77e[_0x4bef55('0x6')]=_['intersection'](_0x52d77e['model'],_0x52d77e[_0x4bef55('0x1f')]),_0x3a8f00[_0x4bef55('0x4')]=_[_0x4bef55('0x1a')](_0x52d77e['model'],qs[_0x4bef55('0x7')](_0xb692bb[_0x4bef55('0x1f')]['fields'])),_0x3a8f00[_0x4bef55('0x4')]=_0x3a8f00[_0x4bef55('0x4')][_0x4bef55('0x2d')]?_0x3a8f00[_0x4bef55('0x4')]:_0x52d77e[_0x4bef55('0x29')],_0xb692bb['query'][_0x4bef55('0x16')]&&(_0x3a8f00['include']=[{'all':!![]}]),_0x3a8f00=_[_0x4bef55('0x22')]({},_0x3a8f00,_0xb692bb['options']),db[_0x4bef55('0x18')]['findOne'](_0x3a8f00)['then'](handleEntityNotFound(_0x28220e,null))[_0x4bef55('0x20')](respondWithResult(_0x28220e,null))['catch'](handleError(_0x28220e,null));},exports[_0x1e3b01('0x25')]=function(_0x41786c,_0x103c19){const _0x5962c6=_0x1e3b01;return db[_0x5962c6('0x18')][_0x5962c6('0x25')](_0x41786c[_0x5962c6('0x14')],{})['then'](respondWithResult(_0x103c19,0xc9))[_0x5962c6('0x0')](handleError(_0x103c19,null));},exports[_0x1e3b01('0x24')]=function(_0x4e8ca7,_0x5c1494){const _0x1830b9=_0x1e3b01;return _0x4e8ca7[_0x1830b9('0x14')]['id']&&delete _0x4e8ca7[_0x1830b9('0x14')]['id'],db[_0x1830b9('0x18')][_0x1830b9('0x26')]({'where':{'id':_0x4e8ca7[_0x1830b9('0xe')]['id']}})[_0x1830b9('0x20')](handleEntityNotFound(_0x5c1494,null))[_0x1830b9('0x20')](saveUpdates(_0x4e8ca7['body'],null))['then'](respondWithResult(_0x5c1494,null))[_0x1830b9('0x0')](handleError(_0x5c1494,null));},exports['destroy']=function(_0x37d299,_0x285fdb){const _0x1c3da6=_0x1e3b01;return db[_0x1c3da6('0x18')]['findOne']({'where':{'id':_0x37d299['params']['id']}})[_0x1c3da6('0x20')](handleEntityNotFound(_0x285fdb,null))[_0x1c3da6('0x20')](removeEntity(_0x285fdb,null))[_0x1c3da6('0x0')](handleError(_0x285fdb,null));},exports[_0x1e3b01('0x19')]=function(_0x46d86e,_0x39399e){const _0x2a621d=_0x1e3b01;return db[_0x2a621d('0x18')][_0x2a621d('0x19')]()[_0x2a621d('0x20')](respondWithResult(_0x39399e,null))['catch'](handleError(_0x39399e,null));}; \ No newline at end of file +const a219_0x4c09=['FaxQueueReport','order','model','destroy','name','type','../../components/parsers/qs','error','status','params','merge','create','length','filters','attributes','sendStatus','fieldName','body','../../mysqldb','key','json','send','options','limit','index','set','show','include','rawAttributes','Content-Range','includeAll','then','sort','describe','fields','nolimit','VIRTUAL','lodash','query','catch','filter','update','findOne','where','findAll','map','count','../../config/logger','rows','keys','api','intersection','offset','undefined'];(function(_0x1106a9,_0x4c09e3){const _0x13e2f6=function(_0x425e56){while(--_0x425e56){_0x1106a9['push'](_0x1106a9['shift']());}};_0x13e2f6(++_0x4c09e3);}(a219_0x4c09,0x17f));const a219_0x13e2=function(_0x1106a9,_0x4c09e3){_0x1106a9=_0x1106a9-0x0;let _0x13e2f6=a219_0x4c09[_0x1106a9];return _0x13e2f6;};const _0x5f30e1=a219_0x13e2;'use strict';const _=require(_0x5f30e1('0x20')),qs=require(_0x5f30e1('0x1')),logger=require(_0x5f30e1('0x2a'))(_0x5f30e1('0x2d')),db=require(_0x5f30e1('0xd'))['db'],{Op}=require('sequelize');function respondWithResult(_0x425e56,_0x7cf56b){return _0x7cf56b=_0x7cf56b||0xc8,function(_0x3986c7){const _0xc5c5af=a219_0x13e2;if(_0x3986c7)return _0x425e56[_0xc5c5af('0x3')](_0x7cf56b)[_0xc5c5af('0xf')](_0x3986c7);};}function respondWithFilteredResult(_0x5d8a3b,_0x5a357b){return function(_0x30ec67){const _0x353edb=a219_0x13e2;if(_0x30ec67){const _0x3c203c=_0x30ec67[_0x353edb('0x29')],_0x24dce7=_0x5a357b[_0x353edb('0x2f')];let _0x2eab53=_0x5a357b[_0x353edb('0x2f')]+_0x5a357b[_0x353edb('0x12')],_0x5d23d2;return _0x2eab53>=_0x3c203c?(_0x2eab53=_0x3c203c,_0x5d23d2=0xc8):_0x5d23d2=0xce,_0x5d8a3b[_0x353edb('0x3')](_0x5d23d2),_0x5d8a3b[_0x353edb('0x14')](_0x353edb('0x18'),_0x24dce7+'-'+_0x2eab53+'/'+_0x3c203c)[_0x353edb('0xf')](_0x30ec67);}return null;};}function saveUpdates(_0x3601e5){return function(_0x47ac5f){const _0x4fd5f3=a219_0x13e2;if(_0x47ac5f)return _0x47ac5f['update'](_0x3601e5)[_0x4fd5f3('0x1a')](function(_0x1bc229){return _0x1bc229;});return null;};}function removeEntity(_0x79b0f7){return function(_0x4c5d12){const _0x5e9586=a219_0x13e2;if(_0x4c5d12)return _0x4c5d12[_0x5e9586('0x34')]()['then'](function(){const _0x298b82=_0x5e9586;_0x79b0f7[_0x298b82('0x3')](0xcc)['end']();});};}function handleEntityNotFound(_0x28175b){return function(_0x29137a){const _0x4ab34b=a219_0x13e2;return!_0x29137a&&_0x28175b[_0x4ab34b('0xa')](0x194),_0x29137a;};}function handleError(_0x4e3e0a,_0x91290c){return _0x91290c=_0x91290c||0x1f4,function(_0x2f2d7a){const _0x29a0be=a219_0x13e2;logger[_0x29a0be('0x2')](_0x2f2d7a['stack']),_0x2f2d7a['name']&&delete _0x2f2d7a[_0x29a0be('0x35')],_0x4e3e0a[_0x29a0be('0x3')](_0x91290c)[_0x29a0be('0x10')](_0x2f2d7a);};}exports[_0x5f30e1('0x13')]=function(_0x1acd20,_0xa400ad){const _0x368e8a=_0x5f30e1;let _0x51cefe={};const _0x3e49c2={},_0x13b9b1={'count':0x0,'rows':[]},_0x2b3ba6=_[_0x368e8a('0x28')](db[_0x368e8a('0x31')][_0x368e8a('0x17')],function(_0x3adb8b){const _0x4451ff=_0x368e8a;return{'name':_0x3adb8b[_0x4451ff('0xb')],'type':_0x3adb8b[_0x4451ff('0x0')][_0x4451ff('0xe')]};});_0x3e49c2[_0x368e8a('0x33')]=_[_0x368e8a('0x28')](_0x2b3ba6,_0x368e8a('0x35')),_0x3e49c2[_0x368e8a('0x21')]=_[_0x368e8a('0x2c')](_0x1acd20['query']),_0x3e49c2['filters']=_[_0x368e8a('0x2e')](_0x3e49c2['model'],_0x3e49c2[_0x368e8a('0x21')]),_0x51cefe[_0x368e8a('0x9')]=_['intersection'](_0x3e49c2[_0x368e8a('0x33')],qs['fields'](_0x1acd20[_0x368e8a('0x21')][_0x368e8a('0x1d')])),_0x51cefe['attributes']=_0x51cefe[_0x368e8a('0x9')][_0x368e8a('0x7')]?_0x51cefe[_0x368e8a('0x9')]:_0x3e49c2[_0x368e8a('0x33')];typeof _0x1acd20[_0x368e8a('0x21')][_0x368e8a('0x1e')]===_0x368e8a('0x30')&&(_0x51cefe['limit']=qs[_0x368e8a('0x12')](_0x1acd20[_0x368e8a('0x21')][_0x368e8a('0x12')]),_0x51cefe['offset']=qs['offset'](_0x1acd20[_0x368e8a('0x21')][_0x368e8a('0x2f')]));_0x51cefe[_0x368e8a('0x32')]=qs[_0x368e8a('0x1b')](_0x1acd20[_0x368e8a('0x21')][_0x368e8a('0x1b')]),_0x51cefe['where']=qs[_0x368e8a('0x8')](_['pick'](_0x1acd20[_0x368e8a('0x21')],_0x3e49c2[_0x368e8a('0x8')]),_0x2b3ba6);_0x1acd20['query'][_0x368e8a('0x23')]&&(_0x51cefe[_0x368e8a('0x26')]=_[_0x368e8a('0x5')](_0x51cefe['where'],{[Op['or']]:_['map'](_0x2b3ba6,function(_0x29b48b){const _0x454bc0=_0x368e8a;if(_0x29b48b['type']!==_0x454bc0('0x1f')){const _0x927bf6={};return _0x927bf6[_0x29b48b[_0x454bc0('0x35')]]={[Op['like']]:'%'+_0x1acd20[_0x454bc0('0x21')]['filter']+'%'},_0x927bf6;}})}));_0x51cefe=_[_0x368e8a('0x5')]({},_0x51cefe,_0x1acd20['options']);const _0xe5ad06={'where':_0x51cefe[_0x368e8a('0x26')]};return db[_0x368e8a('0x31')]['count'](_0xe5ad06)[_0x368e8a('0x1a')](function(_0x46ac10){const _0x32b17d=_0x368e8a;return _0x13b9b1[_0x32b17d('0x29')]=_0x46ac10,_0x1acd20[_0x32b17d('0x21')][_0x32b17d('0x19')]&&(_0x51cefe[_0x32b17d('0x16')]=[{'all':!![]}]),db[_0x32b17d('0x31')][_0x32b17d('0x27')](_0x51cefe);})[_0x368e8a('0x1a')](function(_0x831998){const _0x2826ca=_0x368e8a;return _0x13b9b1[_0x2826ca('0x2b')]=_0x831998,_0x13b9b1;})[_0x368e8a('0x1a')](respondWithFilteredResult(_0xa400ad,_0x51cefe))[_0x368e8a('0x22')](handleError(_0xa400ad,null));},exports[_0x5f30e1('0x15')]=function(_0x3905b9,_0x515bb1){const _0x55b490=_0x5f30e1;let _0x416b89={'raw':!![],'where':{'id':_0x3905b9[_0x55b490('0x4')]['id']}};const _0x50466b={};return _0x50466b[_0x55b490('0x33')]=_[_0x55b490('0x2c')](db[_0x55b490('0x31')]['rawAttributes']),_0x50466b[_0x55b490('0x21')]=_['keys'](_0x3905b9[_0x55b490('0x21')]),_0x50466b['filters']=_['intersection'](_0x50466b['model'],_0x50466b[_0x55b490('0x21')]),_0x416b89[_0x55b490('0x9')]=_[_0x55b490('0x2e')](_0x50466b[_0x55b490('0x33')],qs[_0x55b490('0x1d')](_0x3905b9[_0x55b490('0x21')][_0x55b490('0x1d')])),_0x416b89[_0x55b490('0x9')]=_0x416b89[_0x55b490('0x9')][_0x55b490('0x7')]?_0x416b89[_0x55b490('0x9')]:_0x50466b[_0x55b490('0x33')],_0x3905b9[_0x55b490('0x21')][_0x55b490('0x19')]&&(_0x416b89[_0x55b490('0x16')]=[{'all':!![]}]),_0x416b89=_[_0x55b490('0x5')]({},_0x416b89,_0x3905b9[_0x55b490('0x11')]),db[_0x55b490('0x31')]['findOne'](_0x416b89)['then'](handleEntityNotFound(_0x515bb1,null))['then'](respondWithResult(_0x515bb1,null))[_0x55b490('0x22')](handleError(_0x515bb1,null));},exports['create']=function(_0x4294de,_0xf87f3d){const _0x24cf75=_0x5f30e1;return db[_0x24cf75('0x31')][_0x24cf75('0x6')](_0x4294de['body'],{})[_0x24cf75('0x1a')](respondWithResult(_0xf87f3d,0xc9))[_0x24cf75('0x22')](handleError(_0xf87f3d,null));},exports[_0x5f30e1('0x24')]=function(_0x2027ef,_0x12eec8){const _0x3994da=_0x5f30e1;return _0x2027ef['body']['id']&&delete _0x2027ef[_0x3994da('0xc')]['id'],db[_0x3994da('0x31')][_0x3994da('0x25')]({'where':{'id':_0x2027ef['params']['id']}})['then'](handleEntityNotFound(_0x12eec8,null))[_0x3994da('0x1a')](saveUpdates(_0x2027ef[_0x3994da('0xc')],null))['then'](respondWithResult(_0x12eec8,null))[_0x3994da('0x22')](handleError(_0x12eec8,null));},exports[_0x5f30e1('0x34')]=function(_0x27fd95,_0x501d16){const _0x3c3e12=_0x5f30e1;return db[_0x3c3e12('0x31')][_0x3c3e12('0x25')]({'where':{'id':_0x27fd95[_0x3c3e12('0x4')]['id']}})[_0x3c3e12('0x1a')](handleEntityNotFound(_0x501d16,null))['then'](removeEntity(_0x501d16,null))[_0x3c3e12('0x22')](handleError(_0x501d16,null));},exports[_0x5f30e1('0x1c')]=function(_0x42a885,_0xe6b30a){const _0x40de88=_0x5f30e1;return db[_0x40de88('0x31')][_0x40de88('0x1c')]()[_0x40de88('0x1a')](respondWithResult(_0xe6b30a,null))[_0x40de88('0x22')](handleError(_0xe6b30a,null));}; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.model.js b/server/api/faxQueueReport/faxQueueReport.model.js index 7dca2ae..778570e 100644 --- a/server/api/faxQueueReport/faxQueueReport.model.js +++ b/server/api/faxQueueReport/faxQueueReport.model.js @@ -1 +1 @@ -const a220_0x3576=['uniqueid','define','./faxQueueReport.attributes','FaxQueueReport','exports'];(function(_0x47b695,_0x357630){const _0x1506a7=function(_0x4f434f){while(--_0x4f434f){_0x47b695['push'](_0x47b695['shift']());}};_0x1506a7(++_0x357630);}(a220_0x3576,0x1c3));const a220_0x1506=function(_0x47b695,_0x357630){_0x47b695=_0x47b695-0x0;let _0x1506a7=a220_0x3576[_0x47b695];return _0x1506a7;};const _0x2a7cff=a220_0x1506;'use strict';const attributes=require(_0x2a7cff('0x1'));module[_0x2a7cff('0x3')]=function(_0x4f434f){const _0x38949c=_0x2a7cff,_0x4ae112=_0x4f434f[_0x38949c('0x0')](_0x38949c('0x2'),attributes,{'tableName':'report_fax_queue','paranoid':![],'indexes':[{'name':_0x38949c('0x4'),'fields':[_0x38949c('0x4')]}],'timestamps':!![]});return _0x4ae112;}; \ No newline at end of file +const a220_0x46f7=['./faxQueueReport.attributes','uniqueid','exports','define','FaxQueueReport','report_fax_queue'];(function(_0x58906a,_0x46f744){const _0x3b8954=function(_0x5e17fb){while(--_0x5e17fb){_0x58906a['push'](_0x58906a['shift']());}};_0x3b8954(++_0x46f744);}(a220_0x46f7,0x6f));const a220_0x3b89=function(_0x58906a,_0x46f744){_0x58906a=_0x58906a-0x0;let _0x3b8954=a220_0x46f7[_0x58906a];return _0x3b8954;};const _0x558595=a220_0x3b89;'use strict';const attributes=require(_0x558595('0x3'));module[_0x558595('0x5')]=function(_0x5e17fb){const _0xa46323=_0x558595,_0x2ef59d=_0x5e17fb[_0xa46323('0x0')](_0xa46323('0x1'),attributes,{'tableName':_0xa46323('0x2'),'paranoid':![],'indexes':[{'name':_0xa46323('0x4'),'fields':['uniqueid']}],'timestamps':!![]});return _0x2ef59d;}; \ No newline at end of file diff --git a/server/api/faxQueueReport/faxQueueReport.rpc.js b/server/api/faxQueueReport/faxQueueReport.rpc.js index f03f51e..6089f9e 100644 --- a/server/api/faxQueueReport/faxQueueReport.rpc.js +++ b/server/api/faxQueueReport/faxQueueReport.rpc.js @@ -1 +1 @@ -const a221_0xb021=['limit','UpdateFaxQueueReport','raw','update','../../config/logger','CreateFaxQueueReport','then','debug','stringify','FaxQueueReport','attributes','options','body','error','message','../../mysqldb','info','catch'];(function(_0x16f1e0,_0xb021df){const _0x3534bb=function(_0x7f0deb){while(--_0x7f0deb){_0x16f1e0['push'](_0x16f1e0['shift']());}};_0x3534bb(++_0xb021df);}(a221_0xb021,0x15d));const a221_0x3534=function(_0x16f1e0,_0xb021df){_0x16f1e0=_0x16f1e0-0x0;let _0x3534bb=a221_0xb021[_0x16f1e0];return _0x3534bb;};const _0x29b3df=a221_0x3534;'use strict';const db=require(_0x29b3df('0x8'))['db'],logger=require(_0x29b3df('0xf'))('rpc');exports[_0x29b3df('0x10')]=function(_0x7f0deb){const _0x45425a=this;return new Promise(function(_0x1839c1,_0x17e627){const _0x4b7860=a221_0x3534;return db[_0x4b7860('0x2')]['create'](_0x7f0deb[_0x4b7860('0x5')],{'raw':_0x7f0deb['options']?_0x7f0deb[_0x4b7860('0x4')]['raw']===undefined?!![]:![]:!![]})[_0x4b7860('0x11')](function(_0x13d5fa){const _0x1dfcc8=_0x4b7860;logger['info'](_0x1dfcc8('0x10'),_0x7f0deb),logger[_0x1dfcc8('0x0')]('CreateFaxQueueReport',_0x7f0deb,JSON[_0x1dfcc8('0x1')](_0x13d5fa)),_0x1839c1(_0x13d5fa);})[_0x4b7860('0xa')](function(_0x45e1e0){const _0x3a1da1=_0x4b7860;logger['error'](_0x3a1da1('0x10'),_0x45e1e0[_0x3a1da1('0x7')],_0x7f0deb),_0x17e627(_0x45425a[_0x3a1da1('0x6')](0x1f4,_0x45e1e0[_0x3a1da1('0x7')]));});});},exports['UpdateFaxQueueReport']=function(_0x25cc98){const _0xfc2a2b=this;return new Promise(function(_0x3803e4,_0x2b6f80){const _0x45e20a=a221_0x3534;return db[_0x45e20a('0x2')][_0x45e20a('0xe')](_0x25cc98[_0x45e20a('0x5')],{'raw':_0x25cc98[_0x45e20a('0x4')]?_0x25cc98[_0x45e20a('0x4')][_0x45e20a('0xd')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x25cc98['options']?_0x25cc98[_0x45e20a('0x4')]['where']||null:null,'attributes':_0x25cc98[_0x45e20a('0x4')]?_0x25cc98[_0x45e20a('0x4')][_0x45e20a('0x3')]||null:null,'limit':_0x25cc98[_0x45e20a('0x4')]?_0x25cc98[_0x45e20a('0x4')][_0x45e20a('0xb')]||null:null})[_0x45e20a('0x11')](function(_0x2c8c22){const _0x49efe4=_0x45e20a;logger[_0x49efe4('0x9')](_0x49efe4('0xc'),_0x25cc98),logger['debug'](_0x49efe4('0xc'),_0x25cc98,JSON[_0x49efe4('0x1')](_0x2c8c22)),_0x3803e4(_0x2c8c22);})[_0x45e20a('0xa')](function(_0x40ec10){const _0x2a0f06=_0x45e20a;logger['error']('UpdateFaxQueueReport',_0x40ec10[_0x2a0f06('0x7')],_0x25cc98),_0x2b6f80(_0xfc2a2b[_0x2a0f06('0x6')](0x1f4,_0x40ec10[_0x2a0f06('0x7')]));});});}; \ No newline at end of file +const a221_0x7de1=['raw','stringify','attributes','../../mysqldb','CreateFaxQueueReport','catch','options','then','FaxQueueReport','../../config/logger','error','rpc','where','info','message','create','debug','UpdateFaxQueueReport','body'];(function(_0x5bc03c,_0x7de1fd){const _0x3f5482=function(_0x1b3c79){while(--_0x1b3c79){_0x5bc03c['push'](_0x5bc03c['shift']());}};_0x3f5482(++_0x7de1fd);}(a221_0x7de1,0x94));const a221_0x3f54=function(_0x5bc03c,_0x7de1fd){_0x5bc03c=_0x5bc03c-0x0;let _0x3f5482=a221_0x7de1[_0x5bc03c];return _0x3f5482;};const _0x345be5=a221_0x3f54;'use strict';const db=require(_0x345be5('0x7'))['db'],logger=require(_0x345be5('0xd'))(_0x345be5('0xf'));exports[_0x345be5('0x8')]=function(_0x1b3c79){const _0x32d8f0=this;return new Promise(function(_0x4caa62,_0x43845a){const _0x11ca25=a221_0x3f54;return db[_0x11ca25('0xc')][_0x11ca25('0x0')](_0x1b3c79[_0x11ca25('0x3')],{'raw':_0x1b3c79[_0x11ca25('0xa')]?_0x1b3c79[_0x11ca25('0xa')][_0x11ca25('0x4')]===undefined?!![]:![]:!![]})[_0x11ca25('0xb')](function(_0x18aaf0){const _0x1a0d8d=_0x11ca25;logger[_0x1a0d8d('0x11')]('CreateFaxQueueReport',_0x1b3c79),logger[_0x1a0d8d('0x1')](_0x1a0d8d('0x8'),_0x1b3c79,JSON[_0x1a0d8d('0x5')](_0x18aaf0)),_0x4caa62(_0x18aaf0);})['catch'](function(_0x1c33bb){const _0x4ce3dd=_0x11ca25;logger[_0x4ce3dd('0xe')](_0x4ce3dd('0x8'),_0x1c33bb[_0x4ce3dd('0x12')],_0x1b3c79),_0x43845a(_0x32d8f0[_0x4ce3dd('0xe')](0x1f4,_0x1c33bb[_0x4ce3dd('0x12')]));});});},exports['UpdateFaxQueueReport']=function(_0x5488b0){const _0x184ca7=this;return new Promise(function(_0x39a1d8,_0x5601e1){const _0x1eb193=a221_0x3f54;return db['FaxQueueReport']['update'](_0x5488b0[_0x1eb193('0x3')],{'raw':_0x5488b0['options']?_0x5488b0[_0x1eb193('0xa')][_0x1eb193('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5488b0[_0x1eb193('0xa')]?_0x5488b0['options'][_0x1eb193('0x10')]||null:null,'attributes':_0x5488b0[_0x1eb193('0xa')]?_0x5488b0[_0x1eb193('0xa')][_0x1eb193('0x6')]||null:null,'limit':_0x5488b0[_0x1eb193('0xa')]?_0x5488b0['options']['limit']||null:null})[_0x1eb193('0xb')](function(_0x389215){const _0x1c6ecb=_0x1eb193;logger['info'](_0x1c6ecb('0x2'),_0x5488b0),logger[_0x1c6ecb('0x1')](_0x1c6ecb('0x2'),_0x5488b0,JSON[_0x1c6ecb('0x5')](_0x389215)),_0x39a1d8(_0x389215);})[_0x1eb193('0x9')](function(_0x2074f9){const _0x1ca098=_0x1eb193;logger[_0x1ca098('0xe')](_0x1ca098('0x2'),_0x2074f9[_0x1ca098('0x12')],_0x5488b0),_0x5601e1(_0x184ca7[_0x1ca098('0xe')](0x1f4,_0x2074f9[_0x1ca098('0x12')]));});});}; \ No newline at end of file diff --git a/server/api/faxQueueReport/index.js b/server/api/faxQueueReport/index.js index e608c48..b02696f 100644 --- a/server/api/faxQueueReport/index.js +++ b/server/api/faxQueueReport/index.js @@ -1 +1 @@ -const a222_0x4fe9=['isAuthenticated','create','express','/:id','/describe','show','index','delete','Router','get','./faxQueueReport.controller','exports','post'];(function(_0x4ad7fb,_0x4fe98e){const _0xebb666=function(_0x1d015d){while(--_0x1d015d){_0x4ad7fb['push'](_0x4ad7fb['shift']());}};_0xebb666(++_0x4fe98e);}(a222_0x4fe9,0x1c3));const a222_0xebb6=function(_0x4ad7fb,_0x4fe98e){_0x4ad7fb=_0x4ad7fb-0x0;let _0xebb666=a222_0x4fe9[_0x4ad7fb];return _0xebb666;};const _0x38b5ee=a222_0xebb6;'use strict';const express=require(_0x38b5ee('0x6')),router=express[_0x38b5ee('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x38b5ee('0x1'));router[_0x38b5ee('0x0')]('/',auth[_0x38b5ee('0x4')](),controller[_0x38b5ee('0xa')]),router[_0x38b5ee('0x0')](_0x38b5ee('0x8'),auth['isAuthenticated'](),controller['describe']),router[_0x38b5ee('0x0')](_0x38b5ee('0x7'),auth[_0x38b5ee('0x4')](),controller[_0x38b5ee('0x9')]),router[_0x38b5ee('0x3')]('/',auth[_0x38b5ee('0x4')](),controller[_0x38b5ee('0x5')]),router['put'](_0x38b5ee('0x7'),auth[_0x38b5ee('0x4')](),controller['update']),router[_0x38b5ee('0xb')](_0x38b5ee('0x7'),auth[_0x38b5ee('0x4')](),controller['destroy']),module[_0x38b5ee('0x2')]=router; \ No newline at end of file +const a222_0x21ee=['put','show','../../components/auth/service','./faxQueueReport.controller','Router','post','express','describe','/describe','/:id','isAuthenticated','index','update','exports','get','create','delete'];(function(_0x55f8ea,_0x21eeba){const _0xb80469=function(_0x2ad2fa){while(--_0x2ad2fa){_0x55f8ea['push'](_0x55f8ea['shift']());}};_0xb80469(++_0x21eeba);}(a222_0x21ee,0x143));const a222_0xb804=function(_0x55f8ea,_0x21eeba){_0x55f8ea=_0x55f8ea-0x0;let _0xb80469=a222_0x21ee[_0x55f8ea];return _0xb80469;};const _0x29e39c=a222_0xb804;'use strict';const express=require(_0x29e39c('0x6')),router=express[_0x29e39c('0x4')](),auth=require(_0x29e39c('0x2')),controller=require(_0x29e39c('0x3'));router[_0x29e39c('0xe')]('/',auth[_0x29e39c('0xa')](),controller[_0x29e39c('0xb')]),router['get'](_0x29e39c('0x8'),auth[_0x29e39c('0xa')](),controller[_0x29e39c('0x7')]),router[_0x29e39c('0xe')](_0x29e39c('0x9'),auth[_0x29e39c('0xa')](),controller[_0x29e39c('0x1')]),router[_0x29e39c('0x5')]('/',auth[_0x29e39c('0xa')](),controller[_0x29e39c('0xf')]),router[_0x29e39c('0x0')](_0x29e39c('0x9'),auth[_0x29e39c('0xa')](),controller[_0x29e39c('0xc')]),router[_0x29e39c('0x10')]('/:id',auth[_0x29e39c('0xa')](),controller['destroy']),module[_0x29e39c('0xd')]=router; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.attributes.js b/server/api/faxTransferReport/faxTransferReport.attributes.js index 2a2fe3e..33fc561 100644 --- a/server/api/faxTransferReport/faxTransferReport.attributes.js +++ b/server/api/faxTransferReport/faxTransferReport.attributes.js @@ -1 +1 @@ -const a223_0x1f2f=['NOW','STRING','exports','queue','ENUM','agent','DATE','account','sequelize'];(function(_0x48031f,_0x1f2f87){const _0x2b03a1=function(_0x325077){while(--_0x325077){_0x48031f['push'](_0x48031f['shift']());}};_0x2b03a1(++_0x1f2f87);}(a223_0x1f2f,0xfc));const a223_0x2b03=function(_0x48031f,_0x1f2f87){_0x48031f=_0x48031f-0x0;let _0x2b03a1=a223_0x1f2f[_0x48031f];return _0x2b03a1;};const _0x8cdff0=a223_0x2b03;'use strict';const Sequelize=require(_0x8cdff0('0x8'));module[_0x8cdff0('0x2')]={'uniqueid':{'type':Sequelize[_0x8cdff0('0x1')],'allowNull':![]},'type':{'type':Sequelize[_0x8cdff0('0x4')](_0x8cdff0('0x7'),_0x8cdff0('0x5'),_0x8cdff0('0x3')),'allowNull':![],'defaultValue':_0x8cdff0('0x3')},'transferredAt':{'type':Sequelize[_0x8cdff0('0x6')],'allowNull':![],'defaultValue':Sequelize[_0x8cdff0('0x0')]}}; \ No newline at end of file +const a223_0x30c6=['DATE','queue','account','agent','NOW','exports'];(function(_0x9e48e7,_0x30c666){const _0x11a5b5=function(_0x4e1b2a){while(--_0x4e1b2a){_0x9e48e7['push'](_0x9e48e7['shift']());}};_0x11a5b5(++_0x30c666);}(a223_0x30c6,0x131));const a223_0x11a5=function(_0x9e48e7,_0x30c666){_0x9e48e7=_0x9e48e7-0x0;let _0x11a5b5=a223_0x30c6[_0x9e48e7];return _0x11a5b5;};const _0x4806cd=a223_0x11a5;'use strict';const Sequelize=require('sequelize');module[_0x4806cd('0x0')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0x4806cd('0x3'),_0x4806cd('0x4'),_0x4806cd('0x2')),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize[_0x4806cd('0x1')],'allowNull':![],'defaultValue':Sequelize[_0x4806cd('0x5')]}}; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.controller.js b/server/api/faxTransferReport/faxTransferReport.controller.js index b4ea224..545b905 100644 --- a/server/api/faxTransferReport/faxTransferReport.controller.js +++ b/server/api/faxTransferReport/faxTransferReport.controller.js @@ -1 +1 @@ -const a224_0x35a8=['status','error','findOne','sendStatus','VIRTUAL','order','fieldName','catch','sort','where','lodash','fields','count','../../mysqldb','sequelize','limit','type','set','create','then','like','body','describe','api','query','merge','name','params','send','map','options','index','offset','intersection','includeAll','rows','destroy','include','FaxTransferReport','keys','model','Content-Range','attributes','undefined','rawAttributes','stack','filters','json','filter','key','nolimit','../../config/logger'];(function(_0x535da9,_0x35a88d){const _0xdc69ee=function(_0x630cd8){while(--_0x630cd8){_0x535da9['push'](_0x535da9['shift']());}};_0xdc69ee(++_0x35a88d);}(a224_0x35a8,0xa5));const a224_0xdc69=function(_0x535da9,_0x35a88d){_0x535da9=_0x535da9-0x0;let _0xdc69ee=a224_0x35a8[_0x535da9];return _0xdc69ee;};const _0x5c61f4=a224_0xdc69;'use strict';const _=require(_0x5c61f4('0x1')),qs=require('../../components/parsers/qs'),logger=require(_0x5c61f4('0x2a'))(_0x5c61f4('0xe')),db=require(_0x5c61f4('0x4'))['db'],{Op}=require(_0x5c61f4('0x5'));function respondWithResult(_0x630cd8,_0x5d36e6){return _0x5d36e6=_0x5d36e6||0xc8,function(_0x459bf9){const _0x3eeabc=a224_0xdc69;if(_0x459bf9)return _0x630cd8[_0x3eeabc('0x2b')](_0x5d36e6)[_0x3eeabc('0x26')](_0x459bf9);};}function respondWithFilteredResult(_0xef2971,_0x4c0bf0){return function(_0x192dfb){const _0x21284e=a224_0xdc69;if(_0x192dfb){const _0x1b8e9b=_0x192dfb[_0x21284e('0x3')],_0x57d653=_0x4c0bf0[_0x21284e('0x17')];let _0x194582=_0x4c0bf0[_0x21284e('0x17')]+_0x4c0bf0['limit'],_0x57411e;return _0x194582>=_0x1b8e9b?(_0x194582=_0x1b8e9b,_0x57411e=0xc8):_0x57411e=0xce,_0xef2971[_0x21284e('0x2b')](_0x57411e),_0xef2971[_0x21284e('0x8')](_0x21284e('0x20'),_0x57d653+'-'+_0x194582+'/'+_0x1b8e9b)['json'](_0x192dfb);}return null;};}function saveUpdates(_0x44a88e){return function(_0x20fe80){const _0x4137b5=a224_0xdc69;if(_0x20fe80)return _0x20fe80['update'](_0x44a88e)[_0x4137b5('0xa')](function(_0x2bdff4){return _0x2bdff4;});return null;};}function removeEntity(_0x1468c5){return function(_0x163d5c){const _0x269643=a224_0xdc69;if(_0x163d5c)return _0x163d5c[_0x269643('0x1b')]()[_0x269643('0xa')](function(){const _0x242534=_0x269643;_0x1468c5[_0x242534('0x2b')](0xcc)['end']();});};}function handleEntityNotFound(_0x2cbad0){return function(_0x10355b){const _0x244e3c=a224_0xdc69;return!_0x10355b&&_0x2cbad0[_0x244e3c('0x2e')](0x194),_0x10355b;};}function handleError(_0x15da70,_0x5decf0){return _0x5decf0=_0x5decf0||0x1f4,function(_0x15ab2c){const _0x29a6ae=a224_0xdc69;logger[_0x29a6ae('0x2c')](_0x15ab2c[_0x29a6ae('0x24')]),_0x15ab2c[_0x29a6ae('0x11')]&&delete _0x15ab2c[_0x29a6ae('0x11')],_0x15da70[_0x29a6ae('0x2b')](_0x5decf0)[_0x29a6ae('0x13')](_0x15ab2c);};}exports[_0x5c61f4('0x16')]=function(_0x4c9cdd,_0x761566){const _0x5a1539=_0x5c61f4;let _0xbc65f4={};const _0x12c5ca={},_0x5618b3={'count':0x0,'rows':[]},_0x167c10=_[_0x5a1539('0x14')](db[_0x5a1539('0x1d')][_0x5a1539('0x23')],function(_0x23df01){const _0x1609f4=_0x5a1539;return{'name':_0x23df01[_0x1609f4('0x31')],'type':_0x23df01[_0x1609f4('0x7')][_0x1609f4('0x28')]};});_0x12c5ca[_0x5a1539('0x1f')]=_[_0x5a1539('0x14')](_0x167c10,'name'),_0x12c5ca[_0x5a1539('0xf')]=_[_0x5a1539('0x1e')](_0x4c9cdd['query']),_0x12c5ca[_0x5a1539('0x25')]=_[_0x5a1539('0x18')](_0x12c5ca[_0x5a1539('0x1f')],_0x12c5ca['query']),_0xbc65f4[_0x5a1539('0x21')]=_[_0x5a1539('0x18')](_0x12c5ca[_0x5a1539('0x1f')],qs['fields'](_0x4c9cdd['query'][_0x5a1539('0x2')])),_0xbc65f4[_0x5a1539('0x21')]=_0xbc65f4['attributes']['length']?_0xbc65f4['attributes']:_0x12c5ca[_0x5a1539('0x1f')];typeof _0x4c9cdd['query'][_0x5a1539('0x29')]===_0x5a1539('0x22')&&(_0xbc65f4[_0x5a1539('0x6')]=qs[_0x5a1539('0x6')](_0x4c9cdd[_0x5a1539('0xf')]['limit']),_0xbc65f4['offset']=qs[_0x5a1539('0x17')](_0x4c9cdd[_0x5a1539('0xf')][_0x5a1539('0x17')]));_0xbc65f4[_0x5a1539('0x30')]=qs['sort'](_0x4c9cdd['query'][_0x5a1539('0x33')]),_0xbc65f4[_0x5a1539('0x0')]=qs[_0x5a1539('0x25')](_['pick'](_0x4c9cdd[_0x5a1539('0xf')],_0x12c5ca[_0x5a1539('0x25')]),_0x167c10);_0x4c9cdd[_0x5a1539('0xf')][_0x5a1539('0x27')]&&(_0xbc65f4[_0x5a1539('0x0')]=_[_0x5a1539('0x10')](_0xbc65f4[_0x5a1539('0x0')],{[Op['or']]:_[_0x5a1539('0x14')](_0x167c10,function(_0x26dfea){const _0x31f68e=_0x5a1539;if(_0x26dfea[_0x31f68e('0x7')]!==_0x31f68e('0x2f')){const _0x4e178e={};return _0x4e178e[_0x26dfea[_0x31f68e('0x11')]]={[Op[_0x31f68e('0xb')]]:'%'+_0x4c9cdd[_0x31f68e('0xf')]['filter']+'%'},_0x4e178e;}})}));_0xbc65f4=_[_0x5a1539('0x10')]({},_0xbc65f4,_0x4c9cdd[_0x5a1539('0x15')]);const _0x42f09e={'where':_0xbc65f4[_0x5a1539('0x0')]};return db[_0x5a1539('0x1d')][_0x5a1539('0x3')](_0x42f09e)['then'](function(_0x5cc4f3){const _0x42cc30=_0x5a1539;return _0x5618b3[_0x42cc30('0x3')]=_0x5cc4f3,_0x4c9cdd[_0x42cc30('0xf')][_0x42cc30('0x19')]&&(_0xbc65f4[_0x42cc30('0x1c')]=[{'all':!![]}]),db[_0x42cc30('0x1d')]['findAll'](_0xbc65f4);})[_0x5a1539('0xa')](function(_0x8ad7ae){const _0x20131d=_0x5a1539;return _0x5618b3[_0x20131d('0x1a')]=_0x8ad7ae,_0x5618b3;})['then'](respondWithFilteredResult(_0x761566,_0xbc65f4))[_0x5a1539('0x32')](handleError(_0x761566,null));},exports['show']=function(_0x2e062f,_0x1dd86f){const _0x3727d3=_0x5c61f4;let _0x26ca66={'raw':!![],'where':{'id':_0x2e062f[_0x3727d3('0x12')]['id']}};const _0x1cfe61={};return _0x1cfe61[_0x3727d3('0x1f')]=_[_0x3727d3('0x1e')](db['FaxTransferReport'][_0x3727d3('0x23')]),_0x1cfe61['query']=_['keys'](_0x2e062f[_0x3727d3('0xf')]),_0x1cfe61[_0x3727d3('0x25')]=_[_0x3727d3('0x18')](_0x1cfe61['model'],_0x1cfe61[_0x3727d3('0xf')]),_0x26ca66[_0x3727d3('0x21')]=_[_0x3727d3('0x18')](_0x1cfe61[_0x3727d3('0x1f')],qs[_0x3727d3('0x2')](_0x2e062f[_0x3727d3('0xf')][_0x3727d3('0x2')])),_0x26ca66[_0x3727d3('0x21')]=_0x26ca66[_0x3727d3('0x21')]['length']?_0x26ca66['attributes']:_0x1cfe61[_0x3727d3('0x1f')],_0x2e062f[_0x3727d3('0xf')][_0x3727d3('0x19')]&&(_0x26ca66[_0x3727d3('0x1c')]=[{'all':!![]}]),_0x26ca66=_['merge']({},_0x26ca66,_0x2e062f[_0x3727d3('0x15')]),db[_0x3727d3('0x1d')]['findOne'](_0x26ca66)[_0x3727d3('0xa')](handleEntityNotFound(_0x1dd86f,null))[_0x3727d3('0xa')](respondWithResult(_0x1dd86f,null))['catch'](handleError(_0x1dd86f,null));},exports[_0x5c61f4('0x9')]=function(_0x28d0b3,_0x4498ea){const _0x7f8e7=_0x5c61f4;return db['FaxTransferReport'][_0x7f8e7('0x9')](_0x28d0b3[_0x7f8e7('0xc')],{})[_0x7f8e7('0xa')](respondWithResult(_0x4498ea,0xc9))[_0x7f8e7('0x32')](handleError(_0x4498ea,null));},exports['update']=function(_0x463ab7,_0x39e05a){const _0x2cd8bf=_0x5c61f4;return _0x463ab7['body']['id']&&delete _0x463ab7[_0x2cd8bf('0xc')]['id'],db['FaxTransferReport'][_0x2cd8bf('0x2d')]({'where':{'id':_0x463ab7[_0x2cd8bf('0x12')]['id']}})[_0x2cd8bf('0xa')](handleEntityNotFound(_0x39e05a,null))['then'](saveUpdates(_0x463ab7['body'],null))['then'](respondWithResult(_0x39e05a,null))['catch'](handleError(_0x39e05a,null));},exports['destroy']=function(_0x32d0dd,_0x52993f){const _0x52445d=_0x5c61f4;return db[_0x52445d('0x1d')]['findOne']({'where':{'id':_0x32d0dd[_0x52445d('0x12')]['id']}})[_0x52445d('0xa')](handleEntityNotFound(_0x52993f,null))[_0x52445d('0xa')](removeEntity(_0x52993f,null))[_0x52445d('0x32')](handleError(_0x52993f,null));},exports[_0x5c61f4('0xd')]=function(_0x2cc2b2,_0x3efa89){const _0x5008de=_0x5c61f4;return db['FaxTransferReport'][_0x5008de('0xd')]()[_0x5008de('0xa')](respondWithResult(_0x3efa89,null))[_0x5008de('0x32')](handleError(_0x3efa89,null));}; \ No newline at end of file +const a224_0x9ea3=['lodash','filter','index','set','include','../../components/parsers/qs','../../config/logger','nolimit','order','keys','sort','sendStatus','destroy','json','create','where','FaxTransferReport','query','undefined','attributes','intersection','like','sequelize','then','status','length','pick','map','rawAttributes','fieldName','offset','api','model','Content-Range','body','show','describe','end','key','filters','limit','name','merge','fields','stack','../../mysqldb','catch','type','count','findOne','error','params','update','includeAll'];(function(_0x75a65e,_0x9ea3b3){const _0x44f6f0=function(_0x280080){while(--_0x280080){_0x75a65e['push'](_0x75a65e['shift']());}};_0x44f6f0(++_0x9ea3b3);}(a224_0x9ea3,0x1d4));const a224_0x44f6=function(_0x75a65e,_0x9ea3b3){_0x75a65e=_0x75a65e-0x0;let _0x44f6f0=a224_0x9ea3[_0x75a65e];return _0x44f6f0;};const _0x234573=a224_0x44f6;'use strict';const _=require(_0x234573('0x12')),qs=require(_0x234573('0x17')),logger=require(_0x234573('0x18'))(_0x234573('0x31')),db=require(_0x234573('0x9'))['db'],{Op}=require(_0x234573('0x28'));function respondWithResult(_0x280080,_0x4cb342){return _0x4cb342=_0x4cb342||0xc8,function(_0xd52605){const _0x367895=a224_0x44f6;if(_0xd52605)return _0x280080['status'](_0x4cb342)[_0x367895('0x1f')](_0xd52605);};}function respondWithFilteredResult(_0x41d0f0,_0x25d524){return function(_0x1f4ad2){const _0x4a3b66=a224_0x44f6;if(_0x1f4ad2){const _0x46253d=_0x1f4ad2[_0x4a3b66('0xc')],_0x5bba7d=_0x25d524[_0x4a3b66('0x30')];let _0x421cfe=_0x25d524[_0x4a3b66('0x30')]+_0x25d524[_0x4a3b66('0x4')],_0x54e220;return _0x421cfe>=_0x46253d?(_0x421cfe=_0x46253d,_0x54e220=0xc8):_0x54e220=0xce,_0x41d0f0[_0x4a3b66('0x2a')](_0x54e220),_0x41d0f0[_0x4a3b66('0x15')](_0x4a3b66('0x33'),_0x5bba7d+'-'+_0x421cfe+'/'+_0x46253d)[_0x4a3b66('0x1f')](_0x1f4ad2);}return null;};}function saveUpdates(_0x41c54c){return function(_0x1663bd){const _0x53a6db=a224_0x44f6;if(_0x1663bd)return _0x1663bd['update'](_0x41c54c)[_0x53a6db('0x29')](function(_0x366f61){return _0x366f61;});return null;};}function removeEntity(_0xfce32f){return function(_0x38f11f){const _0xd073ce=a224_0x44f6;if(_0x38f11f)return _0x38f11f[_0xd073ce('0x1e')]()[_0xd073ce('0x29')](function(){const _0x470cbb=_0xd073ce;_0xfce32f['status'](0xcc)[_0x470cbb('0x1')]();});};}function handleEntityNotFound(_0x5a2ada){return function(_0x4fcd7a){const _0x2cebc5=a224_0x44f6;return!_0x4fcd7a&&_0x5a2ada[_0x2cebc5('0x1d')](0x194),_0x4fcd7a;};}function handleError(_0x1f3566,_0x220a9c){return _0x220a9c=_0x220a9c||0x1f4,function(_0x2d9f16){const _0x2796eb=a224_0x44f6;logger[_0x2796eb('0xe')](_0x2d9f16[_0x2796eb('0x8')]),_0x2d9f16[_0x2796eb('0x5')]&&delete _0x2d9f16[_0x2796eb('0x5')],_0x1f3566[_0x2796eb('0x2a')](_0x220a9c)['send'](_0x2d9f16);};}exports[_0x234573('0x14')]=function(_0x53aa14,_0x39b189){const _0x2f3f66=_0x234573;let _0x14781={};const _0x8e68f2={},_0x2b310a={'count':0x0,'rows':[]},_0xd8ec71=_['map'](db['FaxTransferReport'][_0x2f3f66('0x2e')],function(_0x2fc466){const _0x558aa0=_0x2f3f66;return{'name':_0x2fc466[_0x558aa0('0x2f')],'type':_0x2fc466[_0x558aa0('0xb')][_0x558aa0('0x2')]};});_0x8e68f2[_0x2f3f66('0x32')]=_[_0x2f3f66('0x2d')](_0xd8ec71,_0x2f3f66('0x5')),_0x8e68f2[_0x2f3f66('0x23')]=_[_0x2f3f66('0x1b')](_0x53aa14[_0x2f3f66('0x23')]),_0x8e68f2[_0x2f3f66('0x3')]=_[_0x2f3f66('0x26')](_0x8e68f2[_0x2f3f66('0x32')],_0x8e68f2['query']),_0x14781['attributes']=_[_0x2f3f66('0x26')](_0x8e68f2[_0x2f3f66('0x32')],qs['fields'](_0x53aa14[_0x2f3f66('0x23')][_0x2f3f66('0x7')])),_0x14781[_0x2f3f66('0x25')]=_0x14781['attributes'][_0x2f3f66('0x2b')]?_0x14781[_0x2f3f66('0x25')]:_0x8e68f2['model'];typeof _0x53aa14[_0x2f3f66('0x23')][_0x2f3f66('0x19')]===_0x2f3f66('0x24')&&(_0x14781[_0x2f3f66('0x4')]=qs[_0x2f3f66('0x4')](_0x53aa14['query'][_0x2f3f66('0x4')]),_0x14781['offset']=qs['offset'](_0x53aa14['query'][_0x2f3f66('0x30')]));_0x14781[_0x2f3f66('0x1a')]=qs[_0x2f3f66('0x1c')](_0x53aa14[_0x2f3f66('0x23')][_0x2f3f66('0x1c')]),_0x14781['where']=qs[_0x2f3f66('0x3')](_[_0x2f3f66('0x2c')](_0x53aa14[_0x2f3f66('0x23')],_0x8e68f2[_0x2f3f66('0x3')]),_0xd8ec71);_0x53aa14[_0x2f3f66('0x23')][_0x2f3f66('0x13')]&&(_0x14781[_0x2f3f66('0x21')]=_['merge'](_0x14781[_0x2f3f66('0x21')],{[Op['or']]:_[_0x2f3f66('0x2d')](_0xd8ec71,function(_0x170511){const _0x49c4c0=_0x2f3f66;if(_0x170511[_0x49c4c0('0xb')]!=='VIRTUAL'){const _0x3efc85={};return _0x3efc85[_0x170511[_0x49c4c0('0x5')]]={[Op[_0x49c4c0('0x27')]]:'%'+_0x53aa14[_0x49c4c0('0x23')][_0x49c4c0('0x13')]+'%'},_0x3efc85;}})}));_0x14781=_[_0x2f3f66('0x6')]({},_0x14781,_0x53aa14['options']);const _0x22d6a1={'where':_0x14781[_0x2f3f66('0x21')]};return db[_0x2f3f66('0x22')][_0x2f3f66('0xc')](_0x22d6a1)['then'](function(_0x1f982d){const _0x519aae=_0x2f3f66;return _0x2b310a[_0x519aae('0xc')]=_0x1f982d,_0x53aa14[_0x519aae('0x23')][_0x519aae('0x11')]&&(_0x14781[_0x519aae('0x16')]=[{'all':!![]}]),db[_0x519aae('0x22')]['findAll'](_0x14781);})[_0x2f3f66('0x29')](function(_0x369438){return _0x2b310a['rows']=_0x369438,_0x2b310a;})['then'](respondWithFilteredResult(_0x39b189,_0x14781))[_0x2f3f66('0xa')](handleError(_0x39b189,null));},exports[_0x234573('0x35')]=function(_0x2e47ed,_0xc5c35){const _0x1377a4=_0x234573;let _0x3b5828={'raw':!![],'where':{'id':_0x2e47ed[_0x1377a4('0xf')]['id']}};const _0x41fbea={};return _0x41fbea[_0x1377a4('0x32')]=_[_0x1377a4('0x1b')](db['FaxTransferReport'][_0x1377a4('0x2e')]),_0x41fbea[_0x1377a4('0x23')]=_[_0x1377a4('0x1b')](_0x2e47ed['query']),_0x41fbea[_0x1377a4('0x3')]=_[_0x1377a4('0x26')](_0x41fbea[_0x1377a4('0x32')],_0x41fbea[_0x1377a4('0x23')]),_0x3b5828[_0x1377a4('0x25')]=_['intersection'](_0x41fbea[_0x1377a4('0x32')],qs[_0x1377a4('0x7')](_0x2e47ed[_0x1377a4('0x23')]['fields'])),_0x3b5828[_0x1377a4('0x25')]=_0x3b5828[_0x1377a4('0x25')][_0x1377a4('0x2b')]?_0x3b5828[_0x1377a4('0x25')]:_0x41fbea[_0x1377a4('0x32')],_0x2e47ed[_0x1377a4('0x23')][_0x1377a4('0x11')]&&(_0x3b5828[_0x1377a4('0x16')]=[{'all':!![]}]),_0x3b5828=_[_0x1377a4('0x6')]({},_0x3b5828,_0x2e47ed['options']),db['FaxTransferReport'][_0x1377a4('0xd')](_0x3b5828)[_0x1377a4('0x29')](handleEntityNotFound(_0xc5c35,null))[_0x1377a4('0x29')](respondWithResult(_0xc5c35,null))[_0x1377a4('0xa')](handleError(_0xc5c35,null));},exports[_0x234573('0x20')]=function(_0x6aa184,_0x174b71){const _0x58a40a=_0x234573;return db['FaxTransferReport']['create'](_0x6aa184['body'],{})[_0x58a40a('0x29')](respondWithResult(_0x174b71,0xc9))['catch'](handleError(_0x174b71,null));},exports[_0x234573('0x10')]=function(_0x16d41b,_0xc96b47){const _0x3ce799=_0x234573;return _0x16d41b[_0x3ce799('0x34')]['id']&&delete _0x16d41b[_0x3ce799('0x34')]['id'],db[_0x3ce799('0x22')][_0x3ce799('0xd')]({'where':{'id':_0x16d41b[_0x3ce799('0xf')]['id']}})[_0x3ce799('0x29')](handleEntityNotFound(_0xc96b47,null))[_0x3ce799('0x29')](saveUpdates(_0x16d41b[_0x3ce799('0x34')],null))['then'](respondWithResult(_0xc96b47,null))['catch'](handleError(_0xc96b47,null));},exports[_0x234573('0x1e')]=function(_0x21234f,_0x58ef21){const _0x123d0e=_0x234573;return db[_0x123d0e('0x22')][_0x123d0e('0xd')]({'where':{'id':_0x21234f[_0x123d0e('0xf')]['id']}})['then'](handleEntityNotFound(_0x58ef21,null))[_0x123d0e('0x29')](removeEntity(_0x58ef21,null))['catch'](handleError(_0x58ef21,null));},exports[_0x234573('0x0')]=function(_0x5d0ea0,_0x5f3eba){const _0x8a747e=_0x234573;return db[_0x8a747e('0x22')][_0x8a747e('0x0')]()[_0x8a747e('0x29')](respondWithResult(_0x5f3eba,null))[_0x8a747e('0xa')](handleError(_0x5f3eba,null));}; \ No newline at end of file diff --git a/server/api/faxTransferReport/faxTransferReport.model.js b/server/api/faxTransferReport/faxTransferReport.model.js index 24f72ef..3549edd 100644 --- a/server/api/faxTransferReport/faxTransferReport.model.js +++ b/server/api/faxTransferReport/faxTransferReport.model.js @@ -1 +1 @@ -const a225_0x5afe=['exports','uniqueid','./faxTransferReport.attributes'];(function(_0x73862f,_0x5afed4){const _0x10c3d2=function(_0x3b3edf){while(--_0x3b3edf){_0x73862f['push'](_0x73862f['shift']());}};_0x10c3d2(++_0x5afed4);}(a225_0x5afe,0x19b));const a225_0x10c3=function(_0x73862f,_0x5afed4){_0x73862f=_0x73862f-0x0;let _0x10c3d2=a225_0x5afe[_0x73862f];return _0x10c3d2;};const _0x1f2962=a225_0x10c3;'use strict';const attributes=require(_0x1f2962('0x2'));module[_0x1f2962('0x0')]=function(_0x3b3edf){const _0x39bfc0=_0x1f2962,_0x45580d=_0x3b3edf['define']('FaxTransferReport',attributes,{'tableName':'report_fax_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x39bfc0('0x1')]}],'timestamps':!![]});return _0x45580d;}; \ No newline at end of file +const a225_0x92c7=['exports','report_fax_transfer','./faxTransferReport.attributes','define','uniqueid','FaxTransferReport'];(function(_0xbf6b9f,_0x92c745){const _0x5ae158=function(_0x224d3f){while(--_0x224d3f){_0xbf6b9f['push'](_0xbf6b9f['shift']());}};_0x5ae158(++_0x92c745);}(a225_0x92c7,0x130));const a225_0x5ae1=function(_0xbf6b9f,_0x92c745){_0xbf6b9f=_0xbf6b9f-0x0;let _0x5ae158=a225_0x92c7[_0xbf6b9f];return _0x5ae158;};const _0x566869=a225_0x5ae1;'use strict';const attributes=require(_0x566869('0x4'));module[_0x566869('0x2')]=function(_0x224d3f){const _0x1fc5c8=_0x566869,_0x50a468=_0x224d3f[_0x1fc5c8('0x5')](_0x1fc5c8('0x1'),attributes,{'tableName':_0x1fc5c8('0x3'),'paranoid':![],'indexes':[{'name':_0x1fc5c8('0x0'),'fields':[_0x1fc5c8('0x0')]}],'timestamps':!![]});return _0x50a468;}; \ No newline at end of file diff --git a/server/api/faxTransferReport/index.js b/server/api/faxTransferReport/index.js index 0c69eb6..5b54c0e 100644 --- a/server/api/faxTransferReport/index.js +++ b/server/api/faxTransferReport/index.js @@ -1 +1 @@ -const a226_0x1b23=['index','exports','destroy','post','/:id','/describe','update','put','./faxTransferReport.controller','Router','get','express','../../components/auth/service','create','delete','isAuthenticated'];(function(_0x45ace4,_0x1b237f){const _0x40dd2c=function(_0x33cd7c){while(--_0x33cd7c){_0x45ace4['push'](_0x45ace4['shift']());}};_0x40dd2c(++_0x1b237f);}(a226_0x1b23,0x19b));const a226_0x40dd=function(_0x45ace4,_0x1b237f){_0x45ace4=_0x45ace4-0x0;let _0x40dd2c=a226_0x1b23[_0x45ace4];return _0x40dd2c;};const _0x1d0e50=a226_0x40dd;'use strict';const express=require(_0x1d0e50('0x0')),router=express[_0x1d0e50('0xe')](),auth=require(_0x1d0e50('0x1')),controller=require(_0x1d0e50('0xd'));router[_0x1d0e50('0xf')]('/',auth[_0x1d0e50('0x4')](),controller[_0x1d0e50('0x5')]),router[_0x1d0e50('0xf')](_0x1d0e50('0xa'),auth[_0x1d0e50('0x4')](),controller['describe']),router['get'](_0x1d0e50('0x9'),auth[_0x1d0e50('0x4')](),controller['show']),router[_0x1d0e50('0x8')]('/',auth[_0x1d0e50('0x4')](),controller[_0x1d0e50('0x2')]),router[_0x1d0e50('0xc')](_0x1d0e50('0x9'),auth[_0x1d0e50('0x4')](),controller[_0x1d0e50('0xb')]),router[_0x1d0e50('0x3')](_0x1d0e50('0x9'),auth['isAuthenticated'](),controller[_0x1d0e50('0x7')]),module[_0x1d0e50('0x6')]=router; \ No newline at end of file +const a226_0x4cec=['Router','../../components/auth/service','isAuthenticated','destroy','update','get','./faxTransferReport.controller','index','describe','express','post','exports','/:id'];(function(_0x4595a4,_0x4cec53){const _0x4d9e2e=function(_0xf96ea9){while(--_0xf96ea9){_0x4595a4['push'](_0x4595a4['shift']());}};_0x4d9e2e(++_0x4cec53);}(a226_0x4cec,0x8e));const a226_0x4d9e=function(_0x4595a4,_0x4cec53){_0x4595a4=_0x4595a4-0x0;let _0x4d9e2e=a226_0x4cec[_0x4595a4];return _0x4d9e2e;};const _0x4c3f10=a226_0x4d9e;'use strict';const express=require(_0x4c3f10('0xa')),router=express[_0x4c3f10('0x1')](),auth=require(_0x4c3f10('0x2')),controller=require(_0x4c3f10('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x4c3f10('0x8')]),router[_0x4c3f10('0x6')]('/describe',auth[_0x4c3f10('0x3')](),controller[_0x4c3f10('0x9')]),router[_0x4c3f10('0x6')](_0x4c3f10('0x0'),auth['isAuthenticated'](),controller['show']),router[_0x4c3f10('0xb')]('/',auth[_0x4c3f10('0x3')](),controller['create']),router['put'](_0x4c3f10('0x0'),auth[_0x4c3f10('0x3')](),controller[_0x4c3f10('0x5')]),router['delete'](_0x4c3f10('0x0'),auth[_0x4c3f10('0x3')](),controller[_0x4c3f10('0x4')]),module[_0x4c3f10('0xc')]=router; \ No newline at end of file diff --git a/server/api/intDeskAccount/index.js b/server/api/intDeskAccount/index.js index 846d1bf..f6c8460 100644 --- a/server/api/intDeskAccount/index.js +++ b/server/api/intDeskAccount/index.js @@ -1 +1 @@ -const a227_0x45f0=['./intDeskAccount.controller','show','index','delete','../../components/auth/service','update','/:id','get','/:id/configurations','exports','destroy','express','create','post','getConfigurations','/:id/fields','isAuthenticated','Router','put'];(function(_0x17cfdb,_0x45f08e){const _0x3ebd5b=function(_0x198a93){while(--_0x198a93){_0x17cfdb['push'](_0x17cfdb['shift']());}};_0x3ebd5b(++_0x45f08e);}(a227_0x45f0,0x191));const a227_0x3ebd=function(_0x17cfdb,_0x45f08e){_0x17cfdb=_0x17cfdb-0x0;let _0x3ebd5b=a227_0x45f0[_0x17cfdb];return _0x3ebd5b;};const _0x54dfa8=a227_0x3ebd;'use strict';const express=require(_0x54dfa8('0x9')),router=express[_0x54dfa8('0xf')](),auth=require(_0x54dfa8('0x2')),controller=require(_0x54dfa8('0x11'));router[_0x54dfa8('0x5')]('/',auth[_0x54dfa8('0xe')](),controller[_0x54dfa8('0x0')]),router['get'](_0x54dfa8('0x4'),auth[_0x54dfa8('0xe')](),controller[_0x54dfa8('0x12')]),router[_0x54dfa8('0x5')](_0x54dfa8('0x6'),auth[_0x54dfa8('0xe')](),controller[_0x54dfa8('0xc')]),router['get'](_0x54dfa8('0xd'),auth[_0x54dfa8('0xe')](),controller['getFields']),router[_0x54dfa8('0xb')]('/',auth['isAuthenticated'](),controller[_0x54dfa8('0xa')]),router[_0x54dfa8('0xb')]('/:id/configurations',auth[_0x54dfa8('0xe')](),controller['addConfiguration']),router[_0x54dfa8('0x10')](_0x54dfa8('0x4'),auth['isAuthenticated'](),controller[_0x54dfa8('0x3')]),router[_0x54dfa8('0x1')]('/:id',auth[_0x54dfa8('0xe')](),controller[_0x54dfa8('0x8')]),module[_0x54dfa8('0x7')]=router; \ No newline at end of file +const a227_0x4a9b=['getConfigurations','exports','/:id','post','get','../../components/auth/service','/:id/fields','index','create','show','delete','destroy','/:id/configurations','update','put','isAuthenticated','Router'];(function(_0x55c607,_0x4a9bed){const _0x478ce1=function(_0x495514){while(--_0x495514){_0x55c607['push'](_0x55c607['shift']());}};_0x478ce1(++_0x4a9bed);}(a227_0x4a9b,0x86));const a227_0x478c=function(_0x55c607,_0x4a9bed){_0x55c607=_0x55c607-0x0;let _0x478ce1=a227_0x4a9b[_0x55c607];return _0x478ce1;};const _0x14e093=a227_0x478c;'use strict';const express=require('express'),router=express[_0x14e093('0x1')](),auth=require(_0x14e093('0x7')),controller=require('./intDeskAccount.controller');router[_0x14e093('0x6')]('/',auth['isAuthenticated'](),controller[_0x14e093('0x9')]),router[_0x14e093('0x6')]('/:id',auth['isAuthenticated'](),controller[_0x14e093('0xb')]),router[_0x14e093('0x6')](_0x14e093('0xe'),auth[_0x14e093('0x0')](),controller[_0x14e093('0x2')]),router[_0x14e093('0x6')](_0x14e093('0x8'),auth[_0x14e093('0x0')](),controller['getFields']),router['post']('/',auth['isAuthenticated'](),controller[_0x14e093('0xa')]),router[_0x14e093('0x5')]('/:id/configurations',auth[_0x14e093('0x0')](),controller['addConfiguration']),router[_0x14e093('0x10')](_0x14e093('0x4'),auth[_0x14e093('0x0')](),controller[_0x14e093('0xf')]),router[_0x14e093('0xc')]('/:id',auth[_0x14e093('0x0')](),controller[_0x14e093('0xd')]),module[_0x14e093('0x3')]=router; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.attributes.js b/server/api/intDeskAccount/intDeskAccount.attributes.js index 51c93c0..f98b95e 100644 --- a/server/api/intDeskAccount/intDeskAccount.attributes.js +++ b/server/api/intDeskAccount/intDeskAccount.attributes.js @@ -1 +1 @@ -const a228_0x23d3=['integrationTab','ENUM','exports','newTab','STRING','sequelize'];(function(_0x54b2bc,_0x23d336){const _0x3f43d8=function(_0x24f22d){while(--_0x24f22d){_0x54b2bc['push'](_0x54b2bc['shift']());}};_0x3f43d8(++_0x23d336);}(a228_0x23d3,0x1c4));const a228_0x3f43=function(_0x54b2bc,_0x23d336){_0x54b2bc=_0x54b2bc-0x0;let _0x3f43d8=a228_0x23d3[_0x54b2bc];return _0x3f43d8;};const _0x5e6736=a228_0x3f43;'use strict';const Sequelize=require(_0x5e6736('0x3'));module[_0x5e6736('0x0')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x5e6736('0x2')]},'username':{'type':Sequelize[_0x5e6736('0x2')]},'remoteUri':{'type':Sequelize[_0x5e6736('0x2')]},'authType':{'type':Sequelize[_0x5e6736('0x5')]('basic'),'defaultValue':'basic'},'password':{'type':Sequelize['STRING']},'consumerKey':{'type':Sequelize[_0x5e6736('0x2')]},'consumerSecret':{'type':Sequelize['STRING']},'token':{'type':Sequelize[_0x5e6736('0x2')]},'tokenSecret':{'type':Sequelize[_0x5e6736('0x2')]},'serverUrl':{'type':Sequelize[_0x5e6736('0x2')]},'type':{'type':Sequelize[_0x5e6736('0x5')](_0x5e6736('0x4'),_0x5e6736('0x1')),'defaultValue':_0x5e6736('0x4')}}; \ No newline at end of file +const a228_0x566b=['newTab','ENUM','basic','STRING','sequelize','exports'];(function(_0x4193b3,_0x566b1d){const _0x18cc1f=function(_0x111d56){while(--_0x111d56){_0x4193b3['push'](_0x4193b3['shift']());}};_0x18cc1f(++_0x566b1d);}(a228_0x566b,0x10d));const a228_0x18cc=function(_0x4193b3,_0x566b1d){_0x4193b3=_0x4193b3-0x0;let _0x18cc1f=a228_0x566b[_0x4193b3];return _0x18cc1f;};const _0x3831b7=a228_0x18cc;'use strict';const Sequelize=require(_0x3831b7('0x5'));module[_0x3831b7('0x0')]={'name':{'type':Sequelize[_0x3831b7('0x4')]},'description':{'type':Sequelize[_0x3831b7('0x4')]},'username':{'type':Sequelize[_0x3831b7('0x4')]},'remoteUri':{'type':Sequelize[_0x3831b7('0x4')]},'authType':{'type':Sequelize[_0x3831b7('0x2')](_0x3831b7('0x3')),'defaultValue':_0x3831b7('0x3')},'password':{'type':Sequelize[_0x3831b7('0x4')]},'consumerKey':{'type':Sequelize[_0x3831b7('0x4')]},'consumerSecret':{'type':Sequelize[_0x3831b7('0x4')]},'token':{'type':Sequelize[_0x3831b7('0x4')]},'tokenSecret':{'type':Sequelize[_0x3831b7('0x4')]},'serverUrl':{'type':Sequelize[_0x3831b7('0x4')]},'type':{'type':Sequelize[_0x3831b7('0x2')]('integrationTab',_0x3831b7('0x1')),'defaultValue':'integrationTab'}}; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.controller.js b/server/api/intDeskAccount/intDeskAccount.controller.js index d47f5ab..e084b8b 100644 --- a/server/api/intDeskAccount/intDeskAccount.controller.js +++ b/server/api/intDeskAccount/intDeskAccount.controller.js @@ -1 +1 @@ -const a229_0x647f=['intersection','limit','count','consumerSecret','where','lodash','pick','Authorization','DeskAccount','getFields','then','entries','Wrong\x20credentials','findOne','name','sendStatus','order','filters','format','channel','model','filter','map','active','../../config/logger','create','stack','DeskField','findAll','destroy','username','send','VIRTUAL','lastIndexOf','getFields,\x20%s,\x20%s,\x20%s','offset','%s/custom_fields','getSubjects','statusCode','attributes','length','headers','../../components/integrations/configuration','request-promise-native','end','Descriptions','set','undefined','options','status','index','key','concat','from','type','includeAll','body','query','authType','fields','consumerKey','../../components/parsers/qs','keys','sort','application/json','params','include','DeskConfiguration','remoteUri','sequelize','Subjects','tokenSecret','Content-Range','token','merge','catch','priority','substring','like','test','nolimit','json','getConfigurations','Basic\x20%s'];(function(_0x34df63,_0x647fd6){const _0x9ed972=function(_0x175a9e){while(--_0x175a9e){_0x34df63['push'](_0x34df63['shift']());}};_0x9ed972(++_0x647fd6);}(a229_0x647f,0x107));const a229_0x9ed9=function(_0x34df63,_0x647fd6){_0x34df63=_0x34df63-0x0;let _0x9ed972=a229_0x647f[_0x34df63];return _0x9ed972;};const _0x3ebf1c=a229_0x9ed9;'use strict';const rp=require(_0x3ebf1c('0x20')),util=require('util'),_=require(_0x3ebf1c('0x4e')),qs=require(_0x3ebf1c('0x32')),logger=require(_0x3ebf1c('0xd'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x3ebf1c('0x3a')),integrations=require(_0x3ebf1c('0x1f'));function respondWithResult(_0x175a9e,_0x248325){return _0x248325=_0x248325||0xc8,function(_0x5e3248){const _0x109b1c=a229_0x9ed9;if(_0x5e3248)return _0x175a9e[_0x109b1c('0x26')](_0x248325)[_0x109b1c('0x46')](_0x5e3248);};}function respondWithFilteredResult(_0x32c1b4,_0x499ac0){return function(_0x4565f4){const _0x28b04d=a229_0x9ed9;if(_0x4565f4){const _0x3bfd6d=_0x4565f4[_0x28b04d('0x4b')],_0x30bd6f=_0x499ac0[_0x28b04d('0x18')];let _0x444264=_0x499ac0[_0x28b04d('0x18')]+_0x499ac0[_0x28b04d('0x4a')],_0x24549a;return _0x444264>=_0x3bfd6d?(_0x444264=_0x3bfd6d,_0x24549a=0xc8):_0x24549a=0xce,_0x32c1b4[_0x28b04d('0x26')](_0x24549a),_0x32c1b4[_0x28b04d('0x23')](_0x28b04d('0x3d'),_0x30bd6f+'-'+_0x444264+'/'+_0x3bfd6d)['json'](_0x4565f4);}return null;};}function saveUpdates(_0x4d6286){return function(_0x3d431f){const _0x2775d3=a229_0x9ed9;if(_0x3d431f)return _0x3d431f['update'](_0x4d6286)[_0x2775d3('0x53')](function(_0x51c7dd){return _0x51c7dd;});return null;};}function removeEntity(_0x12bdae){return function(_0x5f1058){const _0x45cac3=a229_0x9ed9;if(_0x5f1058)return _0x5f1058[_0x45cac3('0x12')]()[_0x45cac3('0x53')](function(){const _0x3de33b=_0x45cac3;_0x12bdae[_0x3de33b('0x26')](0xcc)[_0x3de33b('0x21')]();});};}function handleEntityNotFound(_0x1886b4){return function(_0x2eec4b){const _0xc74624=a229_0x9ed9;return!_0x2eec4b&&_0x1886b4[_0xc74624('0x4')](0x194),_0x2eec4b;};}function handleError(_0x2ba543,_0x518341){return _0x518341=_0x518341||0x1f4,function(_0xaf7848){const _0x559b15=a229_0x9ed9;logger['error'](_0xaf7848[_0x559b15('0xf')]),_0xaf7848[_0x559b15('0x3')]&&delete _0xaf7848[_0x559b15('0x3')],_0x2ba543[_0x559b15('0x26')](_0x518341)[_0x559b15('0x14')](_0xaf7848);};}exports[_0x3ebf1c('0x27')]=function(_0xe79a6f,_0x5f4c29){const _0x51ecc6=_0x3ebf1c;let _0x16b443={};const _0x48abe6={},_0x59e9c0={'count':0x0,'rows':[]},_0x4cbeca=_[_0x51ecc6('0xb')](db[_0x51ecc6('0x51')]['rawAttributes'],function(_0x1f4b71){const _0x24defc=_0x51ecc6;return{'name':_0x1f4b71['fieldName'],'type':_0x1f4b71[_0x24defc('0x2b')][_0x24defc('0x28')]};});_0x48abe6['model']=_[_0x51ecc6('0xb')](_0x4cbeca,_0x51ecc6('0x3')),_0x48abe6['query']=_[_0x51ecc6('0x33')](_0xe79a6f[_0x51ecc6('0x2e')]),_0x48abe6[_0x51ecc6('0x6')]=_[_0x51ecc6('0x49')](_0x48abe6[_0x51ecc6('0x9')],_0x48abe6['query']),_0x16b443[_0x51ecc6('0x1c')]=_[_0x51ecc6('0x49')](_0x48abe6[_0x51ecc6('0x9')],qs[_0x51ecc6('0x30')](_0xe79a6f[_0x51ecc6('0x2e')][_0x51ecc6('0x30')])),_0x16b443[_0x51ecc6('0x1c')]=_0x16b443[_0x51ecc6('0x1c')]['length']?_0x16b443['attributes']:_0x48abe6[_0x51ecc6('0x9')];typeof _0xe79a6f['query'][_0x51ecc6('0x45')]===_0x51ecc6('0x24')&&(_0x16b443[_0x51ecc6('0x4a')]=qs[_0x51ecc6('0x4a')](_0xe79a6f[_0x51ecc6('0x2e')][_0x51ecc6('0x4a')]),_0x16b443[_0x51ecc6('0x18')]=qs['offset'](_0xe79a6f['query'][_0x51ecc6('0x18')]));_0x16b443[_0x51ecc6('0x5')]=qs['sort'](_0xe79a6f[_0x51ecc6('0x2e')][_0x51ecc6('0x34')]),_0x16b443[_0x51ecc6('0x4d')]=qs[_0x51ecc6('0x6')](_[_0x51ecc6('0x4f')](_0xe79a6f[_0x51ecc6('0x2e')],_0x48abe6[_0x51ecc6('0x6')]),_0x4cbeca);_0xe79a6f['query'][_0x51ecc6('0xa')]&&(_0x16b443[_0x51ecc6('0x4d')]=_['merge'](_0x16b443[_0x51ecc6('0x4d')],{[Op['or']]:_['map'](_0x4cbeca,function(_0x396b56){const _0x8477ab=_0x51ecc6;if(_0x396b56[_0x8477ab('0x2b')]!==_0x8477ab('0x15')){const _0x12c806={};return _0x12c806[_0x396b56[_0x8477ab('0x3')]]={[Op[_0x8477ab('0x43')]]:'%'+_0xe79a6f[_0x8477ab('0x2e')]['filter']+'%'},_0x12c806;}})}));_0x16b443=_[_0x51ecc6('0x3f')]({},_0x16b443,_0xe79a6f['options']);const _0x20a423={'where':_0x16b443['where']};return db[_0x51ecc6('0x51')][_0x51ecc6('0x4b')](_0x20a423)[_0x51ecc6('0x53')](function(_0x5addc5){const _0x17fcf0=_0x51ecc6;return _0x59e9c0['count']=_0x5addc5,_0xe79a6f[_0x17fcf0('0x2e')][_0x17fcf0('0x2c')]&&(_0x16b443[_0x17fcf0('0x37')]=[{'all':!![]}]),db[_0x17fcf0('0x51')][_0x17fcf0('0x11')](_0x16b443);})[_0x51ecc6('0x53')](function(_0x26f809){return _0x59e9c0['rows']=_0x26f809,_0x59e9c0;})[_0x51ecc6('0x53')](respondWithFilteredResult(_0x5f4c29,_0x16b443))['catch'](handleError(_0x5f4c29,null));},exports['show']=function(_0x5db7bb,_0x3adfe8){const _0x39d63f=_0x3ebf1c;let _0x5942c4={'raw':![],'where':{'id':_0x5db7bb[_0x39d63f('0x36')]['id']}};const _0x3beda7={};return _0x3beda7[_0x39d63f('0x9')]=_[_0x39d63f('0x33')](db[_0x39d63f('0x51')]['rawAttributes']),_0x3beda7[_0x39d63f('0x2e')]=_['keys'](_0x5db7bb[_0x39d63f('0x2e')]),_0x3beda7[_0x39d63f('0x6')]=_[_0x39d63f('0x49')](_0x3beda7['model'],_0x3beda7['query']),_0x5942c4[_0x39d63f('0x1c')]=_['intersection'](_0x3beda7['model'],qs['fields'](_0x5db7bb[_0x39d63f('0x2e')]['fields'])),_0x5942c4[_0x39d63f('0x1c')]=_0x5942c4['attributes'][_0x39d63f('0x1d')]?_0x5942c4[_0x39d63f('0x1c')]:_0x3beda7['model'],_0x5db7bb[_0x39d63f('0x2e')][_0x39d63f('0x2c')]&&(_0x5942c4[_0x39d63f('0x37')]=[{'all':!![]}]),_0x5942c4=_['merge']({},_0x5942c4,_0x5db7bb[_0x39d63f('0x25')]),db[_0x39d63f('0x51')][_0x39d63f('0x2')](_0x5942c4)[_0x39d63f('0x53')](handleEntityNotFound(_0x3adfe8,null))[_0x39d63f('0x53')](respondWithResult(_0x3adfe8,null))[_0x39d63f('0x40')](handleError(_0x3adfe8,null));},exports[_0x3ebf1c('0xe')]=function(_0x4514e2,_0x59c7cc){const _0x16323e=_0x3ebf1c;return db['DeskAccount'][_0x16323e('0xe')](_0x4514e2[_0x16323e('0x2d')],{})[_0x16323e('0x53')](respondWithResult(_0x59c7cc,0xc9))['catch'](handleError(_0x59c7cc,null));},exports['update']=function(_0x3b771a,_0x2ed1fd){const _0x52b4fe=_0x3ebf1c;return _0x3b771a[_0x52b4fe('0x2d')]['id']&&delete _0x3b771a[_0x52b4fe('0x2d')]['id'],db[_0x52b4fe('0x51')][_0x52b4fe('0x2')]({'where':{'id':_0x3b771a[_0x52b4fe('0x36')]['id']}})[_0x52b4fe('0x53')](handleEntityNotFound(_0x2ed1fd,null))[_0x52b4fe('0x53')](saveUpdates(_0x3b771a[_0x52b4fe('0x2d')],null))['then'](respondWithResult(_0x2ed1fd,null))[_0x52b4fe('0x40')](handleError(_0x2ed1fd,null));},exports[_0x3ebf1c('0x12')]=function(_0x24ee2a,_0xf48542){const _0x40eb98=_0x3ebf1c;return db[_0x40eb98('0x51')][_0x40eb98('0x2')]({'where':{'id':_0x24ee2a[_0x40eb98('0x36')]['id']}})['then'](handleEntityNotFound(_0xf48542,null))[_0x40eb98('0x53')](removeEntity(_0xf48542,null))[_0x40eb98('0x40')](handleError(_0xf48542,null));},exports[_0x3ebf1c('0x47')]=function(_0x44af2e,_0x1a6d23){const _0x25c2cc=_0x3ebf1c;let _0x556772={};const _0x3a5e37={};let _0x59cf74,_0x38df37;return db[_0x25c2cc('0x51')][_0x25c2cc('0x2')]({'where':{'id':_0x44af2e[_0x25c2cc('0x36')]['id']}})[_0x25c2cc('0x53')](handleEntityNotFound(_0x1a6d23,null))[_0x25c2cc('0x53')](function(_0x3b560e){const _0x3bcaae=_0x25c2cc;if(_0x3b560e)return _0x59cf74=_0x3b560e,_0x3a5e37[_0x3bcaae('0x9')]=_[_0x3bcaae('0x33')](db['DeskConfiguration']['rawAttributes']),_0x3a5e37['query']=_[_0x3bcaae('0x33')](_0x44af2e['query']),_0x3a5e37[_0x3bcaae('0x6')]=_['intersection'](_0x3a5e37[_0x3bcaae('0x9')],_0x3a5e37['query']),_0x556772[_0x3bcaae('0x1c')]=_[_0x3bcaae('0x49')](_0x3a5e37[_0x3bcaae('0x9')],qs[_0x3bcaae('0x30')](_0x44af2e[_0x3bcaae('0x2e')]['fields'])),_0x556772[_0x3bcaae('0x1c')]=_0x556772[_0x3bcaae('0x1c')][_0x3bcaae('0x1d')]?_0x556772[_0x3bcaae('0x1c')]:_0x3a5e37[_0x3bcaae('0x9')],_0x556772[_0x3bcaae('0x5')]=qs[_0x3bcaae('0x34')](_0x44af2e[_0x3bcaae('0x2e')][_0x3bcaae('0x34')]),_0x556772[_0x3bcaae('0x4d')]=qs[_0x3bcaae('0x6')](_['pick'](_0x44af2e['query'],_0x3a5e37[_0x3bcaae('0x6')])),_0x44af2e[_0x3bcaae('0x2e')]['filter']&&(_0x556772[_0x3bcaae('0x4d')]=_['merge'](_0x556772[_0x3bcaae('0x4d')],{[Op['or']]:_[_0x3bcaae('0xb')](_0x556772['attributes'],function(_0x1e86b2){const _0x37a726=_0x3bcaae,_0x434199={};return _0x434199[_0x1e86b2]={[Op[_0x37a726('0x43')]]:'%'+_0x44af2e[_0x37a726('0x2e')]['filter']+'%'},_0x434199;})})),_0x556772=_[_0x3bcaae('0x3f')]({},_0x556772,_0x44af2e[_0x3bcaae('0x25')]),_0x59cf74['getConfigurations'](_0x556772);})[_0x25c2cc('0x53')](function(_0xd0fa8a){const _0x58b3c6=_0x25c2cc;if(_0xd0fa8a)return _0x38df37=_0xd0fa8a[_0x58b3c6('0x1d')],typeof _0x44af2e[_0x58b3c6('0x2e')]['nolimit']===_0x58b3c6('0x24')&&(_0x556772[_0x58b3c6('0x4a')]=qs[_0x58b3c6('0x4a')](_0x44af2e[_0x58b3c6('0x2e')][_0x58b3c6('0x4a')]),_0x556772[_0x58b3c6('0x18')]=qs['offset'](_0x44af2e[_0x58b3c6('0x2e')][_0x58b3c6('0x18')])),_0x59cf74['getConfigurations'](_0x556772);})[_0x25c2cc('0x53')](function(_0x384a91){if(_0x384a91)return _0x384a91?{'count':_0x38df37,'rows':_0x384a91}:null;})[_0x25c2cc('0x53')](respondWithResult(_0x1a6d23,null))[_0x25c2cc('0x40')](handleError(_0x1a6d23,null));},exports['addConfiguration']=function(_0x3a784d,_0x1a7e5e){const _0x99009e=_0x3ebf1c;return _0x3a784d[_0x99009e('0x2d')]['id']&&delete _0x3a784d[_0x99009e('0x2d')]['id'],db[_0x99009e('0x51')][_0x99009e('0x2')]({'where':{'id':_0x3a784d[_0x99009e('0x36')]['id']}})[_0x99009e('0x53')](handleEntityNotFound(_0x1a7e5e,null))[_0x99009e('0x53')](function(_0x42ddcb){const _0x5e440d=_0x99009e;if(_0x42ddcb)return _0x3a784d[_0x5e440d('0x2d')]['AccountId']=_0x42ddcb['id'],_0x3a784d['body'][_0x5e440d('0x3b')]=integrations[_0x5e440d('0x1a')](_0x3a784d['body'][_0x5e440d('0x8')],_0x3a784d[_0x5e440d('0x2d')][_0x5e440d('0x2b')]),_0x3a784d['body'][_0x5e440d('0x22')]=integrations['getDescriptions'](_0x3a784d['body'][_0x5e440d('0x8')],_0x3a784d[_0x5e440d('0x2d')]['type']),db[_0x5e440d('0x38')][_0x5e440d('0xe')](_0x3a784d[_0x5e440d('0x2d')],{'include':[{'model':db[_0x5e440d('0x10')],'as':'Subjects'},{'model':db[_0x5e440d('0x10')],'as':_0x5e440d('0x22')}]});return null;})[_0x99009e('0x53')](respondWithResult(_0x1a7e5e,null))['catch'](handleError(_0x1a7e5e,null));},exports[_0x3ebf1c('0x52')]=function(_0x33afbf,_0x3a7b9f){const _0x1ea551=_0x3ebf1c,_0x29832b=[{'name':_0x1ea551('0x41'),'label':_0x1ea551('0x41'),'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 _0x263431='';return db[_0x1ea551('0x51')]['findOne']({'where':{'id':_0x33afbf[_0x1ea551('0x36')]['id']},'attributes':['id',_0x1ea551('0x39'),_0x1ea551('0x2f'),_0x1ea551('0x13'),'password',_0x1ea551('0x31'),_0x1ea551('0x4c'),_0x1ea551('0x3e'),_0x1ea551('0x3c')]})[_0x1ea551('0x53')](handleEntityNotFound(_0x3a7b9f,null))[_0x1ea551('0x53')](function(_0x405d86){const _0x310155=_0x1ea551;if(_0x405d86){_0x263431=_0x405d86[_0x310155('0x39')];const _0x3df6f3=_0x263431['slice'](-0x1);_0x3df6f3==='/'&&(_0x263431=_0x263431[_0x310155('0x42')](0x0,_0x263431[_0x310155('0x16')](_0x3df6f3)));const _0x2b257e={'method':'GET','uri':util['format'](_0x310155('0x19'),_0x263431),'headers':{'Content-Type':_0x310155('0x35'),'Accept':_0x310155('0x35')},'json':!![]};return _0x405d86[_0x310155('0x2f')]==='basic'&&(_0x2b257e[_0x310155('0x1e')][_0x310155('0x50')]=util[_0x310155('0x7')](_0x310155('0x48'),Buffer[_0x310155('0x2a')](util[_0x310155('0x7')]('%s:%s',_0x405d86[_0x310155('0x13')],_0x405d86['password']))['toString']('base64'))),rp(_0x2b257e)['then'](function(_0x30ea1e){const _0x5aed80=_0x310155;return _0x29832b[_0x5aed80('0x29')](_[_0x5aed80('0xb')](_0x30ea1e['_embedded'][_0x5aed80('0x0')],function(_0x52e119){const _0x40a823=_0x5aed80;return{'id':_0x52e119['name'],'name':_0x52e119[_0x40a823('0x3')],'type':_0x52e119[_0x40a823('0x2b')],'active':_0x52e119[_0x40a823('0xc')],'label':_0x52e119['label'],'custom':!![]};}));});}})[_0x1ea551('0x53')](function(_0x516cdb){const _0x4f3048=_0x1ea551;return{'count':_0x516cdb[_0x4f3048('0x1d')],'rows':_0x516cdb};})[_0x1ea551('0x53')](respondWithResult(_0x3a7b9f,null))[_0x1ea551('0x40')](function(_0x59b72f){const _0x6f0720=_0x1ea551;let _0x2c14bf=_0x33afbf[_0x6f0720('0x2e')][_0x6f0720('0x44')]?0x1f4:_0x59b72f[_0x6f0720('0x1b')]||0x1f4;logger['error'](_0x6f0720('0x17'),_0x6f0720('0x52'),_0x2c14bf,JSON['stringify'](_0x59b72f)),delete _0x59b72f[_0x6f0720('0x3')],_0x2c14bf===0x191&&(_0x2c14bf=0x190),_0x3a7b9f['status'](_0x2c14bf)[_0x6f0720('0x14')](_0x33afbf['query'][_0x6f0720('0x44')]?{'message':_0x6f0720('0x1'),'statusCode':_0x59b72f[_0x6f0720('0x1b')]}:_0x59b72f);});}; \ No newline at end of file +const a229_0x3c07=['api','undefined','sendStatus','getConfigurations','intersection','merge','type','consumerSecret','keys','basic','tokenSecret','filters','map','username','order','lastIndexOf','addConfiguration','json','headers','DeskField','authType','count','AccountId','limit','index','then','options','catch','query','sequelize','priority','fields','%s:%s','body','model','params','active','sort','error','../../mysqldb','stringify','Wrong\x20credentials','show','base64','substring','lodash','rawAttributes','request-promise-native','includeAll','token','channel','rows','Authorization','set','pick','test','entries','format','update','offset','length','password','Content-Range','where','findAll','key','fieldName','concat','include','end','util','%s/custom_fields','Subjects','Descriptions','DeskConfiguration','findOne','attributes','../../components/integrations/configuration','send','Basic\x20%s','remoteUri','create','stack','from','DeskAccount','status','slice','destroy','application/json','../../components/parsers/qs','filter','statusCode','like','getFields','VIRTUAL','getFields,\x20%s,\x20%s,\x20%s','getSubjects','name'];(function(_0xc492fc,_0x3c07df){const _0x3d11ed=function(_0xf8173f){while(--_0xf8173f){_0xc492fc['push'](_0xc492fc['shift']());}};_0x3d11ed(++_0x3c07df);}(a229_0x3c07,0x82));const a229_0x3d11=function(_0xc492fc,_0x3c07df){_0xc492fc=_0xc492fc-0x0;let _0x3d11ed=a229_0x3c07[_0xc492fc];return _0x3d11ed;};const _0x106462=a229_0x3d11;'use strict';const rp=require(_0x106462('0xf')),util=require(_0x106462('0x26')),_=require(_0x106462('0xd')),qs=require(_0x106462('0x39')),logger=require('../../config/logger')(_0x106462('0x42')),db=require(_0x106462('0x7'))['db'],{Op}=require(_0x106462('0x5f')),integrations=require(_0x106462('0x2d'));function respondWithResult(_0xf8173f,_0xb53b0){return _0xb53b0=_0xb53b0||0xc8,function(_0x27bff6){const _0x21b1a1=a229_0x3d11;if(_0x27bff6)return _0xf8173f['status'](_0xb53b0)[_0x21b1a1('0x53')](_0x27bff6);};}function respondWithFilteredResult(_0xb004ce,_0x590f7a){return function(_0x568660){const _0x37e48d=a229_0x3d11;if(_0x568660){const _0x28d346=_0x568660[_0x37e48d('0x57')],_0x261b96=_0x590f7a[_0x37e48d('0x1b')];let _0x3ab757=_0x590f7a[_0x37e48d('0x1b')]+_0x590f7a['limit'],_0x2c2af3;return _0x3ab757>=_0x28d346?(_0x3ab757=_0x28d346,_0x2c2af3=0xc8):_0x2c2af3=0xce,_0xb004ce[_0x37e48d('0x35')](_0x2c2af3),_0xb004ce[_0x37e48d('0x15')](_0x37e48d('0x1e'),_0x261b96+'-'+_0x3ab757+'/'+_0x28d346)[_0x37e48d('0x53')](_0x568660);}return null;};}function saveUpdates(_0x2f5369){return function(_0xded2b7){const _0x559887=a229_0x3d11;if(_0xded2b7)return _0xded2b7[_0x559887('0x1a')](_0x2f5369)['then'](function(_0x4e90e1){return _0x4e90e1;});return null;};}function removeEntity(_0x282e9c){return function(_0x58ec25){const _0xa1c200=a229_0x3d11;if(_0x58ec25)return _0x58ec25[_0xa1c200('0x37')]()['then'](function(){const _0xc81c9d=_0xa1c200;_0x282e9c[_0xc81c9d('0x35')](0xcc)[_0xc81c9d('0x25')]();});};}function handleEntityNotFound(_0x2dab4a){return function(_0x993e3b){const _0x29d3b6=a229_0x3d11;return!_0x993e3b&&_0x2dab4a[_0x29d3b6('0x44')](0x194),_0x993e3b;};}function handleError(_0x11fc0a,_0xa49627){return _0xa49627=_0xa49627||0x1f4,function(_0x2639e1){const _0x4ddebe=a229_0x3d11;logger[_0x4ddebe('0x6')](_0x2639e1[_0x4ddebe('0x32')]),_0x2639e1[_0x4ddebe('0x41')]&&delete _0x2639e1[_0x4ddebe('0x41')],_0x11fc0a[_0x4ddebe('0x35')](_0xa49627)['send'](_0x2639e1);};}exports[_0x106462('0x5a')]=function(_0x5f4495,_0x1d82dd){const _0x2c6ed5=_0x106462;let _0x9efaf4={};const _0x33324c={},_0x337830={'count':0x0,'rows':[]},_0x262645=_[_0x2c6ed5('0x4e')](db[_0x2c6ed5('0x34')][_0x2c6ed5('0xe')],function(_0x3b84da){const _0x5593b6=_0x2c6ed5;return{'name':_0x3b84da[_0x5593b6('0x22')],'type':_0x3b84da[_0x5593b6('0x48')][_0x5593b6('0x21')]};});_0x33324c[_0x2c6ed5('0x2')]=_[_0x2c6ed5('0x4e')](_0x262645,_0x2c6ed5('0x41')),_0x33324c[_0x2c6ed5('0x5e')]=_[_0x2c6ed5('0x4a')](_0x5f4495[_0x2c6ed5('0x5e')]),_0x33324c[_0x2c6ed5('0x4d')]=_['intersection'](_0x33324c[_0x2c6ed5('0x2')],_0x33324c[_0x2c6ed5('0x5e')]),_0x9efaf4[_0x2c6ed5('0x2c')]=_[_0x2c6ed5('0x46')](_0x33324c[_0x2c6ed5('0x2')],qs[_0x2c6ed5('0x61')](_0x5f4495['query'][_0x2c6ed5('0x61')])),_0x9efaf4['attributes']=_0x9efaf4[_0x2c6ed5('0x2c')][_0x2c6ed5('0x1c')]?_0x9efaf4[_0x2c6ed5('0x2c')]:_0x33324c[_0x2c6ed5('0x2')];typeof _0x5f4495['query']['nolimit']==='undefined'&&(_0x9efaf4['limit']=qs['limit'](_0x5f4495[_0x2c6ed5('0x5e')]['limit']),_0x9efaf4[_0x2c6ed5('0x1b')]=qs['offset'](_0x5f4495[_0x2c6ed5('0x5e')]['offset']));_0x9efaf4[_0x2c6ed5('0x50')]=qs[_0x2c6ed5('0x5')](_0x5f4495[_0x2c6ed5('0x5e')][_0x2c6ed5('0x5')]),_0x9efaf4[_0x2c6ed5('0x1f')]=qs['filters'](_[_0x2c6ed5('0x16')](_0x5f4495[_0x2c6ed5('0x5e')],_0x33324c[_0x2c6ed5('0x4d')]),_0x262645);_0x5f4495[_0x2c6ed5('0x5e')]['filter']&&(_0x9efaf4['where']=_[_0x2c6ed5('0x47')](_0x9efaf4[_0x2c6ed5('0x1f')],{[Op['or']]:_[_0x2c6ed5('0x4e')](_0x262645,function(_0x573883){const _0xca1d35=_0x2c6ed5;if(_0x573883[_0xca1d35('0x48')]!==_0xca1d35('0x3e')){const _0x152767={};return _0x152767[_0x573883[_0xca1d35('0x41')]]={[Op[_0xca1d35('0x3c')]]:'%'+_0x5f4495['query']['filter']+'%'},_0x152767;}})}));_0x9efaf4=_[_0x2c6ed5('0x47')]({},_0x9efaf4,_0x5f4495['options']);const _0x20698f={'where':_0x9efaf4['where']};return db[_0x2c6ed5('0x34')]['count'](_0x20698f)[_0x2c6ed5('0x5b')](function(_0x276cc4){const _0x2c642f=_0x2c6ed5;return _0x337830['count']=_0x276cc4,_0x5f4495[_0x2c642f('0x5e')]['includeAll']&&(_0x9efaf4[_0x2c642f('0x24')]=[{'all':!![]}]),db[_0x2c642f('0x34')][_0x2c642f('0x20')](_0x9efaf4);})[_0x2c6ed5('0x5b')](function(_0x283879){const _0x126da3=_0x2c6ed5;return _0x337830[_0x126da3('0x13')]=_0x283879,_0x337830;})[_0x2c6ed5('0x5b')](respondWithFilteredResult(_0x1d82dd,_0x9efaf4))[_0x2c6ed5('0x5d')](handleError(_0x1d82dd,null));},exports[_0x106462('0xa')]=function(_0x217c2a,_0x527f6f){const _0x4aa46b=_0x106462;let _0x3b919c={'raw':![],'where':{'id':_0x217c2a[_0x4aa46b('0x3')]['id']}};const _0x2ff9ca={};return _0x2ff9ca[_0x4aa46b('0x2')]=_[_0x4aa46b('0x4a')](db[_0x4aa46b('0x34')]['rawAttributes']),_0x2ff9ca[_0x4aa46b('0x5e')]=_[_0x4aa46b('0x4a')](_0x217c2a['query']),_0x2ff9ca['filters']=_[_0x4aa46b('0x46')](_0x2ff9ca[_0x4aa46b('0x2')],_0x2ff9ca[_0x4aa46b('0x5e')]),_0x3b919c[_0x4aa46b('0x2c')]=_[_0x4aa46b('0x46')](_0x2ff9ca[_0x4aa46b('0x2')],qs['fields'](_0x217c2a[_0x4aa46b('0x5e')][_0x4aa46b('0x61')])),_0x3b919c[_0x4aa46b('0x2c')]=_0x3b919c['attributes'][_0x4aa46b('0x1c')]?_0x3b919c[_0x4aa46b('0x2c')]:_0x2ff9ca[_0x4aa46b('0x2')],_0x217c2a[_0x4aa46b('0x5e')][_0x4aa46b('0x10')]&&(_0x3b919c[_0x4aa46b('0x24')]=[{'all':!![]}]),_0x3b919c=_[_0x4aa46b('0x47')]({},_0x3b919c,_0x217c2a[_0x4aa46b('0x5c')]),db[_0x4aa46b('0x34')][_0x4aa46b('0x2b')](_0x3b919c)[_0x4aa46b('0x5b')](handleEntityNotFound(_0x527f6f,null))[_0x4aa46b('0x5b')](respondWithResult(_0x527f6f,null))[_0x4aa46b('0x5d')](handleError(_0x527f6f,null));},exports[_0x106462('0x31')]=function(_0x53c435,_0x4babe2){const _0x1c7a0b=_0x106462;return db['DeskAccount'][_0x1c7a0b('0x31')](_0x53c435[_0x1c7a0b('0x1')],{})[_0x1c7a0b('0x5b')](respondWithResult(_0x4babe2,0xc9))[_0x1c7a0b('0x5d')](handleError(_0x4babe2,null));},exports[_0x106462('0x1a')]=function(_0x495810,_0x2a21a2){const _0x3426c8=_0x106462;return _0x495810['body']['id']&&delete _0x495810[_0x3426c8('0x1')]['id'],db[_0x3426c8('0x34')]['findOne']({'where':{'id':_0x495810['params']['id']}})['then'](handleEntityNotFound(_0x2a21a2,null))[_0x3426c8('0x5b')](saveUpdates(_0x495810[_0x3426c8('0x1')],null))[_0x3426c8('0x5b')](respondWithResult(_0x2a21a2,null))[_0x3426c8('0x5d')](handleError(_0x2a21a2,null));},exports[_0x106462('0x37')]=function(_0x491c8b,_0x546ebd){const _0x14b9a1=_0x106462;return db[_0x14b9a1('0x34')][_0x14b9a1('0x2b')]({'where':{'id':_0x491c8b[_0x14b9a1('0x3')]['id']}})[_0x14b9a1('0x5b')](handleEntityNotFound(_0x546ebd,null))[_0x14b9a1('0x5b')](removeEntity(_0x546ebd,null))[_0x14b9a1('0x5d')](handleError(_0x546ebd,null));},exports[_0x106462('0x45')]=function(_0x5f273e,_0x40305c){const _0x5a3855=_0x106462;let _0x4589e4={};const _0x1117c3={};let _0xdeb897,_0x487a3c;return db[_0x5a3855('0x34')]['findOne']({'where':{'id':_0x5f273e[_0x5a3855('0x3')]['id']}})[_0x5a3855('0x5b')](handleEntityNotFound(_0x40305c,null))[_0x5a3855('0x5b')](function(_0x2a0422){const _0x350fa3=_0x5a3855;if(_0x2a0422)return _0xdeb897=_0x2a0422,_0x1117c3[_0x350fa3('0x2')]=_['keys'](db[_0x350fa3('0x2a')][_0x350fa3('0xe')]),_0x1117c3[_0x350fa3('0x5e')]=_['keys'](_0x5f273e[_0x350fa3('0x5e')]),_0x1117c3[_0x350fa3('0x4d')]=_[_0x350fa3('0x46')](_0x1117c3[_0x350fa3('0x2')],_0x1117c3[_0x350fa3('0x5e')]),_0x4589e4[_0x350fa3('0x2c')]=_[_0x350fa3('0x46')](_0x1117c3[_0x350fa3('0x2')],qs[_0x350fa3('0x61')](_0x5f273e[_0x350fa3('0x5e')][_0x350fa3('0x61')])),_0x4589e4[_0x350fa3('0x2c')]=_0x4589e4[_0x350fa3('0x2c')][_0x350fa3('0x1c')]?_0x4589e4['attributes']:_0x1117c3[_0x350fa3('0x2')],_0x4589e4[_0x350fa3('0x50')]=qs[_0x350fa3('0x5')](_0x5f273e['query'][_0x350fa3('0x5')]),_0x4589e4[_0x350fa3('0x1f')]=qs[_0x350fa3('0x4d')](_[_0x350fa3('0x16')](_0x5f273e[_0x350fa3('0x5e')],_0x1117c3[_0x350fa3('0x4d')])),_0x5f273e[_0x350fa3('0x5e')][_0x350fa3('0x3a')]&&(_0x4589e4[_0x350fa3('0x1f')]=_['merge'](_0x4589e4['where'],{[Op['or']]:_['map'](_0x4589e4[_0x350fa3('0x2c')],function(_0x1fee0b){const _0x2c823d=_0x350fa3,_0x586b98={};return _0x586b98[_0x1fee0b]={[Op[_0x2c823d('0x3c')]]:'%'+_0x5f273e[_0x2c823d('0x5e')][_0x2c823d('0x3a')]+'%'},_0x586b98;})})),_0x4589e4=_[_0x350fa3('0x47')]({},_0x4589e4,_0x5f273e[_0x350fa3('0x5c')]),_0xdeb897[_0x350fa3('0x45')](_0x4589e4);})['then'](function(_0x5da21a){const _0x395ee0=_0x5a3855;if(_0x5da21a)return _0x487a3c=_0x5da21a[_0x395ee0('0x1c')],typeof _0x5f273e[_0x395ee0('0x5e')]['nolimit']===_0x395ee0('0x43')&&(_0x4589e4[_0x395ee0('0x59')]=qs[_0x395ee0('0x59')](_0x5f273e[_0x395ee0('0x5e')]['limit']),_0x4589e4[_0x395ee0('0x1b')]=qs[_0x395ee0('0x1b')](_0x5f273e[_0x395ee0('0x5e')][_0x395ee0('0x1b')])),_0xdeb897[_0x395ee0('0x45')](_0x4589e4);})[_0x5a3855('0x5b')](function(_0x37b9ac){if(_0x37b9ac)return _0x37b9ac?{'count':_0x487a3c,'rows':_0x37b9ac}:null;})[_0x5a3855('0x5b')](respondWithResult(_0x40305c,null))[_0x5a3855('0x5d')](handleError(_0x40305c,null));},exports[_0x106462('0x52')]=function(_0x3018d2,_0x3df450){const _0x39a179=_0x106462;return _0x3018d2[_0x39a179('0x1')]['id']&&delete _0x3018d2['body']['id'],db[_0x39a179('0x34')]['findOne']({'where':{'id':_0x3018d2[_0x39a179('0x3')]['id']}})[_0x39a179('0x5b')](handleEntityNotFound(_0x3df450,null))[_0x39a179('0x5b')](function(_0x39ef6e){const _0x2bb765=_0x39a179;if(_0x39ef6e)return _0x3018d2[_0x2bb765('0x1')][_0x2bb765('0x58')]=_0x39ef6e['id'],_0x3018d2[_0x2bb765('0x1')][_0x2bb765('0x28')]=integrations[_0x2bb765('0x40')](_0x3018d2[_0x2bb765('0x1')]['channel'],_0x3018d2[_0x2bb765('0x1')][_0x2bb765('0x48')]),_0x3018d2[_0x2bb765('0x1')][_0x2bb765('0x29')]=integrations['getDescriptions'](_0x3018d2[_0x2bb765('0x1')][_0x2bb765('0x12')],_0x3018d2[_0x2bb765('0x1')][_0x2bb765('0x48')]),db['DeskConfiguration']['create'](_0x3018d2[_0x2bb765('0x1')],{'include':[{'model':db[_0x2bb765('0x55')],'as':_0x2bb765('0x28')},{'model':db[_0x2bb765('0x55')],'as':_0x2bb765('0x29')}]});return null;})[_0x39a179('0x5b')](respondWithResult(_0x3df450,null))['catch'](handleError(_0x3df450,null));},exports[_0x106462('0x3d')]=function(_0x56d5e1,_0x43160b){const _0x3893d7=_0x106462,_0x591c74=[{'name':_0x3893d7('0x60'),'label':'priority','custom':![],'options':[{'name':0x1,'value':0x1},{'name':0x2,'value':0x2},{'name':0x3,'value':0x3},{'name':0x4,'value':0x4},{'name':0x5,'value':0x5},{'name':0x6,'value':0x6},{'name':0x7,'value':0x7},{'name':0x8,'value':0x8},{'name':0x9,'value':0x9},{'name':0xa,'value':0xa}]}];let _0x252782='';return db[_0x3893d7('0x34')][_0x3893d7('0x2b')]({'where':{'id':_0x56d5e1['params']['id']},'attributes':['id',_0x3893d7('0x30'),'authType',_0x3893d7('0x4f'),'password','consumerKey',_0x3893d7('0x49'),_0x3893d7('0x11'),_0x3893d7('0x4c')]})[_0x3893d7('0x5b')](handleEntityNotFound(_0x43160b,null))[_0x3893d7('0x5b')](function(_0x684b05){const _0x59ff3b=_0x3893d7;if(_0x684b05){_0x252782=_0x684b05[_0x59ff3b('0x30')];const _0xf54ff=_0x252782[_0x59ff3b('0x36')](-0x1);_0xf54ff==='/'&&(_0x252782=_0x252782[_0x59ff3b('0xc')](0x0,_0x252782[_0x59ff3b('0x51')](_0xf54ff)));const _0x23a5a8={'method':'GET','uri':util[_0x59ff3b('0x19')](_0x59ff3b('0x27'),_0x252782),'headers':{'Content-Type':_0x59ff3b('0x38'),'Accept':_0x59ff3b('0x38')},'json':!![]};return _0x684b05[_0x59ff3b('0x56')]===_0x59ff3b('0x4b')&&(_0x23a5a8[_0x59ff3b('0x54')][_0x59ff3b('0x14')]=util[_0x59ff3b('0x19')](_0x59ff3b('0x2f'),Buffer[_0x59ff3b('0x33')](util[_0x59ff3b('0x19')](_0x59ff3b('0x0'),_0x684b05['username'],_0x684b05[_0x59ff3b('0x1d')]))['toString'](_0x59ff3b('0xb')))),rp(_0x23a5a8)['then'](function(_0x43c2b8){const _0x50ed71=_0x59ff3b;return _0x591c74[_0x50ed71('0x23')](_[_0x50ed71('0x4e')](_0x43c2b8['_embedded'][_0x50ed71('0x18')],function(_0x2a229f){const _0x462ba2=_0x50ed71;return{'id':_0x2a229f[_0x462ba2('0x41')],'name':_0x2a229f[_0x462ba2('0x41')],'type':_0x2a229f[_0x462ba2('0x48')],'active':_0x2a229f[_0x462ba2('0x4')],'label':_0x2a229f['label'],'custom':!![]};}));});}})[_0x3893d7('0x5b')](function(_0x343731){const _0x328b5f=_0x3893d7;return{'count':_0x343731[_0x328b5f('0x1c')],'rows':_0x343731};})[_0x3893d7('0x5b')](respondWithResult(_0x43160b,null))[_0x3893d7('0x5d')](function(_0x225ea6){const _0xfce798=_0x3893d7;let _0x3b5598=_0x56d5e1['query'][_0xfce798('0x17')]?0x1f4:_0x225ea6['statusCode']||0x1f4;logger[_0xfce798('0x6')](_0xfce798('0x3f'),_0xfce798('0x3d'),_0x3b5598,JSON[_0xfce798('0x8')](_0x225ea6)),delete _0x225ea6[_0xfce798('0x41')],_0x3b5598===0x191&&(_0x3b5598=0x190),_0x43160b[_0xfce798('0x35')](_0x3b5598)[_0xfce798('0x2e')](_0x56d5e1['query'][_0xfce798('0x17')]?{'message':_0xfce798('0x9'),'statusCode':_0x225ea6[_0xfce798('0x3b')]}:_0x225ea6);});}; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.model.js b/server/api/intDeskAccount/intDeskAccount.model.js index 7a6f991..1c5b3cc 100644 --- a/server/api/intDeskAccount/intDeskAccount.model.js +++ b/server/api/intDeskAccount/intDeskAccount.model.js @@ -1 +1 @@ -const a230_0x2042=['./intDeskAccount.attributes','define','exports'];(function(_0x2c608d,_0x2042a3){const _0x1117e4=function(_0x1d9b3d){while(--_0x1d9b3d){_0x2c608d['push'](_0x2c608d['shift']());}};_0x1117e4(++_0x2042a3);}(a230_0x2042,0x7e));const a230_0x1117=function(_0x2c608d,_0x2042a3){_0x2c608d=_0x2c608d-0x0;let _0x1117e4=a230_0x2042[_0x2c608d];return _0x1117e4;};const _0x31b189=a230_0x1117;'use strict';const attributes=require(_0x31b189('0x0'));module[_0x31b189('0x2')]=function(_0x1d9b3d){const _0x49523d=_0x31b189,_0x581f6e=_0x1d9b3d[_0x49523d('0x1')]('DeskAccount',attributes,{'tableName':'int_desk_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x581f6e;}; \ No newline at end of file +const a230_0x1f16=['DeskAccount','int_desk_accounts','./intDeskAccount.attributes','define'];(function(_0x2df77a,_0x1f16da){const _0x4e8517=function(_0x4de72d){while(--_0x4de72d){_0x2df77a['push'](_0x2df77a['shift']());}};_0x4e8517(++_0x1f16da);}(a230_0x1f16,0x7f));const a230_0x4e85=function(_0x2df77a,_0x1f16da){_0x2df77a=_0x2df77a-0x0;let _0x4e8517=a230_0x1f16[_0x2df77a];return _0x4e8517;};const _0x1e0e37=a230_0x4e85;'use strict';const attributes=require(_0x1e0e37('0x3'));module['exports']=function(_0x4de72d){const _0x2cfe2b=_0x1e0e37,_0x48a40d=_0x4de72d[_0x2cfe2b('0x0')](_0x2cfe2b('0x1'),attributes,{'tableName':_0x2cfe2b('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x48a40d;}; \ No newline at end of file diff --git a/server/api/intDeskAccount/intDeskAccount.rpc.js b/server/api/intDeskAccount/intDeskAccount.rpc.js index c72bfd0..d6bb9e7 100644 --- a/server/api/intDeskAccount/intDeskAccount.rpc.js +++ b/server/api/intDeskAccount/intDeskAccount.rpc.js @@ -1 +1 @@ -const a231_0x4053=['catch','stringify','then','GetDeskAccount','findAll','message','where','debug','info','../../mysqldb','ShowDeskAccount','rpc','options','lodash','map','model','error','raw','limit','DeskAccount','../../config/logger','include','attributes'];(function(_0x1c0a41,_0x40532b){const _0x25c2af=function(_0x3cf601){while(--_0x3cf601){_0x1c0a41['push'](_0x1c0a41['shift']());}};_0x25c2af(++_0x40532b);}(a231_0x4053,0xc7));const a231_0x25c2=function(_0x1c0a41,_0x40532b){_0x1c0a41=_0x1c0a41-0x0;let _0x25c2af=a231_0x4053[_0x1c0a41];return _0x25c2af;};const _0xf33ffe=a231_0x25c2;'use strict';const _=require(_0xf33ffe('0x15')),db=require(_0xf33ffe('0x11'))['db'],logger=require(_0xf33ffe('0x5'))(_0xf33ffe('0x13'));exports[_0xf33ffe('0xb')]=function(_0x3cf601){const _0x5c206c=this;return new Promise(function(_0x42819a,_0x565975){const _0x36d9ae=a231_0x25c2;return db[_0x36d9ae('0x4')][_0x36d9ae('0xc')]({'raw':_0x3cf601[_0x36d9ae('0x14')]?_0x3cf601[_0x36d9ae('0x14')][_0x36d9ae('0x2')]===undefined?!![]:![]:!![],'where':_0x3cf601[_0x36d9ae('0x14')]?_0x3cf601['options'][_0x36d9ae('0xe')]||null:null,'attributes':_0x3cf601[_0x36d9ae('0x14')]?_0x3cf601[_0x36d9ae('0x14')][_0x36d9ae('0x7')]||null:null,'limit':_0x3cf601[_0x36d9ae('0x14')]?_0x3cf601[_0x36d9ae('0x14')][_0x36d9ae('0x3')]||null:null,'include':_0x3cf601[_0x36d9ae('0x14')]?_0x3cf601[_0x36d9ae('0x14')][_0x36d9ae('0x6')]?_[_0x36d9ae('0x16')](_0x3cf601[_0x36d9ae('0x14')][_0x36d9ae('0x6')],function(_0x1e9c1c){const _0x3c465c=_0x36d9ae;return{'model':db[_0x1e9c1c[_0x3c465c('0x0')]],'as':_0x1e9c1c['as'],'attributes':_0x1e9c1c['attributes'],'include':_0x1e9c1c[_0x3c465c('0x6')]?_[_0x3c465c('0x16')](_0x1e9c1c[_0x3c465c('0x6')],function(_0x5576d0){const _0x3165df=_0x3c465c;return{'model':db[_0x5576d0['model']],'as':_0x5576d0['as'],'attributes':_0x5576d0[_0x3165df('0x7')],'include':_0x5576d0[_0x3165df('0x6')]?_[_0x3165df('0x16')](_0x5576d0[_0x3165df('0x6')],function(_0x3ed850){const _0x379173=_0x3165df;return{'model':db[_0x3ed850[_0x379173('0x0')]],'as':_0x3ed850['as'],'attributes':_0x3ed850['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0xd4822e){const _0x13570f=_0x36d9ae;logger[_0x13570f('0x10')](_0x13570f('0xb'),_0x3cf601),logger[_0x13570f('0xf')](_0x13570f('0xb'),_0x3cf601,JSON[_0x13570f('0x9')](_0xd4822e)),_0x42819a(_0xd4822e);})[_0x36d9ae('0x8')](function(_0x12c7ef){const _0x12b83e=_0x36d9ae;logger[_0x12b83e('0x1')]('GetDeskAccount',_0x12c7ef[_0x12b83e('0xd')],_0x3cf601),_0x565975(_0x5c206c[_0x12b83e('0x1')](0x1f4,_0x12c7ef[_0x12b83e('0xd')]));});});},exports[_0xf33ffe('0x12')]=function(_0x221b47){const _0x263ddb=this;return new Promise(function(_0x67c928,_0xbec340){const _0x1c7203=a231_0x25c2;return db['DeskAccount']['findOne']({'raw':_0x221b47[_0x1c7203('0x14')]?_0x221b47[_0x1c7203('0x14')]['raw']===undefined?!![]:![]:!![],'where':_0x221b47[_0x1c7203('0x14')]?_0x221b47[_0x1c7203('0x14')][_0x1c7203('0xe')]||null:null,'attributes':_0x221b47[_0x1c7203('0x14')]?_0x221b47['options'][_0x1c7203('0x7')]||null:null,'include':_0x221b47[_0x1c7203('0x14')]?_0x221b47[_0x1c7203('0x14')][_0x1c7203('0x6')]?_[_0x1c7203('0x16')](_0x221b47[_0x1c7203('0x14')][_0x1c7203('0x6')],function(_0x10af36){const _0x497df7=_0x1c7203;return{'model':db[_0x10af36[_0x497df7('0x0')]],'as':_0x10af36['as'],'attributes':_0x10af36[_0x497df7('0x7')],'include':_0x10af36[_0x497df7('0x6')]?_['map'](_0x10af36[_0x497df7('0x6')],function(_0x588116){const _0x33d715=_0x497df7;return{'model':db[_0x588116[_0x33d715('0x0')]],'as':_0x588116['as'],'attributes':_0x588116['attributes'],'include':_0x588116[_0x33d715('0x6')]?_['map'](_0x588116[_0x33d715('0x6')],function(_0x36ac04){const _0x3c949d=_0x33d715;return{'model':db[_0x36ac04[_0x3c949d('0x0')]],'as':_0x36ac04['as'],'attributes':_0x36ac04[_0x3c949d('0x7')]};}):[]};}):[]};}):[]:[]})[_0x1c7203('0xa')](function(_0x5de5bd){const _0x4eac9d=_0x1c7203;logger['info'](_0x4eac9d('0x12'),_0x221b47),logger[_0x4eac9d('0xf')](_0x4eac9d('0x12'),_0x221b47,JSON['stringify'](_0x5de5bd)),_0x67c928(_0x5de5bd);})[_0x1c7203('0x8')](function(_0x34d72b){const _0x340f00=_0x1c7203;logger[_0x340f00('0x1')](_0x340f00('0x12'),_0x34d72b[_0x340f00('0xd')],_0x221b47),_0xbec340(_0x263ddb[_0x340f00('0x1')](0x1f4,_0x34d72b[_0x340f00('0xd')]));});});}; \ No newline at end of file +const a231_0x91c0=['options','raw','stringify','GetDeskAccount','attributes','findOne','ShowDeskAccount','where','../../config/logger','include','info','../../mysqldb','map','debug','DeskAccount','then','error','catch','message','lodash','model'];(function(_0x40fd5b,_0x91c070){const _0x6a3974=function(_0x463edf){while(--_0x463edf){_0x40fd5b['push'](_0x40fd5b['shift']());}};_0x6a3974(++_0x91c070);}(a231_0x91c0,0xab));const a231_0x6a39=function(_0x40fd5b,_0x91c070){_0x40fd5b=_0x40fd5b-0x0;let _0x6a3974=a231_0x91c0[_0x40fd5b];return _0x6a3974;};const _0x2c7e5e=a231_0x6a39;'use strict';const _=require(_0x2c7e5e('0x10')),db=require(_0x2c7e5e('0x8'))['db'],logger=require(_0x2c7e5e('0x5'))('rpc');exports[_0x2c7e5e('0x0')]=function(_0x463edf){const _0x120d70=this;return new Promise(function(_0x25f704,_0x7e53ab){const _0x20cc36=a231_0x6a39;return db['DeskAccount']['findAll']({'raw':_0x463edf[_0x20cc36('0x12')]?_0x463edf['options'][_0x20cc36('0x13')]===undefined?!![]:![]:!![],'where':_0x463edf['options']?_0x463edf[_0x20cc36('0x12')]['where']||null:null,'attributes':_0x463edf[_0x20cc36('0x12')]?_0x463edf['options'][_0x20cc36('0x1')]||null:null,'limit':_0x463edf[_0x20cc36('0x12')]?_0x463edf['options']['limit']||null:null,'include':_0x463edf['options']?_0x463edf[_0x20cc36('0x12')][_0x20cc36('0x6')]?_[_0x20cc36('0x9')](_0x463edf[_0x20cc36('0x12')][_0x20cc36('0x6')],function(_0x51109b){const _0x939fe8=_0x20cc36;return{'model':db[_0x51109b[_0x939fe8('0x11')]],'as':_0x51109b['as'],'attributes':_0x51109b[_0x939fe8('0x1')],'include':_0x51109b[_0x939fe8('0x6')]?_[_0x939fe8('0x9')](_0x51109b[_0x939fe8('0x6')],function(_0x37563a){const _0x161bee=_0x939fe8;return{'model':db[_0x37563a[_0x161bee('0x11')]],'as':_0x37563a['as'],'attributes':_0x37563a[_0x161bee('0x1')],'include':_0x37563a[_0x161bee('0x6')]?_[_0x161bee('0x9')](_0x37563a[_0x161bee('0x6')],function(_0x5c0937){const _0x43d249=_0x161bee;return{'model':db[_0x5c0937[_0x43d249('0x11')]],'as':_0x5c0937['as'],'attributes':_0x5c0937['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x11af65){const _0x5cc24a=_0x20cc36;logger[_0x5cc24a('0x7')](_0x5cc24a('0x0'),_0x463edf),logger[_0x5cc24a('0xa')](_0x5cc24a('0x0'),_0x463edf,JSON[_0x5cc24a('0x14')](_0x11af65)),_0x25f704(_0x11af65);})[_0x20cc36('0xe')](function(_0x57304e){const _0x49a7f3=_0x20cc36;logger[_0x49a7f3('0xd')](_0x49a7f3('0x0'),_0x57304e[_0x49a7f3('0xf')],_0x463edf),_0x7e53ab(_0x120d70[_0x49a7f3('0xd')](0x1f4,_0x57304e[_0x49a7f3('0xf')]));});});},exports[_0x2c7e5e('0x3')]=function(_0x2ea162){const _0x5afef0=this;return new Promise(function(_0x7b8041,_0x43a9a7){const _0x4e4011=a231_0x6a39;return db[_0x4e4011('0xb')][_0x4e4011('0x2')]({'raw':_0x2ea162[_0x4e4011('0x12')]?_0x2ea162[_0x4e4011('0x12')][_0x4e4011('0x13')]===undefined?!![]:![]:!![],'where':_0x2ea162[_0x4e4011('0x12')]?_0x2ea162['options'][_0x4e4011('0x4')]||null:null,'attributes':_0x2ea162['options']?_0x2ea162[_0x4e4011('0x12')]['attributes']||null:null,'include':_0x2ea162[_0x4e4011('0x12')]?_0x2ea162['options'][_0x4e4011('0x6')]?_[_0x4e4011('0x9')](_0x2ea162['options'][_0x4e4011('0x6')],function(_0x234cee){const _0x27e319=_0x4e4011;return{'model':db[_0x234cee[_0x27e319('0x11')]],'as':_0x234cee['as'],'attributes':_0x234cee[_0x27e319('0x1')],'include':_0x234cee[_0x27e319('0x6')]?_[_0x27e319('0x9')](_0x234cee['include'],function(_0x1af4f9){const _0x1b6d1f=_0x27e319;return{'model':db[_0x1af4f9['model']],'as':_0x1af4f9['as'],'attributes':_0x1af4f9[_0x1b6d1f('0x1')],'include':_0x1af4f9[_0x1b6d1f('0x6')]?_[_0x1b6d1f('0x9')](_0x1af4f9[_0x1b6d1f('0x6')],function(_0x3938b8){const _0x3ba651=_0x1b6d1f;return{'model':db[_0x3938b8[_0x3ba651('0x11')]],'as':_0x3938b8['as'],'attributes':_0x3938b8[_0x3ba651('0x1')]};}):[]};}):[]};}):[]:[]})[_0x4e4011('0xc')](function(_0x24e0a0){const _0x3994c8=_0x4e4011;logger[_0x3994c8('0x7')](_0x3994c8('0x3'),_0x2ea162),logger['debug']('ShowDeskAccount',_0x2ea162,JSON[_0x3994c8('0x14')](_0x24e0a0)),_0x7b8041(_0x24e0a0);})[_0x4e4011('0xe')](function(_0xef6174){const _0x640de4=_0x4e4011;logger[_0x640de4('0xd')]('ShowDeskAccount',_0xef6174[_0x640de4('0xf')],_0x2ea162),_0x43a9a7(_0x5afef0['error'](0x1f4,_0xef6174[_0x640de4('0xf')]));});});}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/index.js b/server/api/intDeskConfiguration/index.js index 8c85158..8b43e30 100644 --- a/server/api/intDeskConfiguration/index.js +++ b/server/api/intDeskConfiguration/index.js @@ -1 +1 @@ -const a232_0x5a12=['Router','destroy','/:id/descriptions','../../components/auth/service','getDescriptions','/:id/tags','delete','/:id','getFields','/:id/subjects','post','isAuthenticated','index','exports','setTags','show','update','getSubjects','get','./intDeskConfiguration.controller','/:id/fields','create'];(function(_0x109858,_0x5a12a7){const _0x551919=function(_0x4d2504){while(--_0x4d2504){_0x109858['push'](_0x109858['shift']());}};_0x551919(++_0x5a12a7);}(a232_0x5a12,0xae));const a232_0x5519=function(_0x109858,_0x5a12a7){_0x109858=_0x109858-0x0;let _0x551919=a232_0x5a12[_0x109858];return _0x551919;};const _0x17fe4e=a232_0x5519;'use strict';const express=require('express'),router=express[_0x17fe4e('0x2')](),auth=require(_0x17fe4e('0x5')),controller=require(_0x17fe4e('0x15'));router[_0x17fe4e('0x14')]('/',auth[_0x17fe4e('0xd')](),controller[_0x17fe4e('0xe')]),router[_0x17fe4e('0x14')]('/:id',auth[_0x17fe4e('0xd')](),controller[_0x17fe4e('0x11')]),router[_0x17fe4e('0x14')](_0x17fe4e('0x0'),auth[_0x17fe4e('0xd')](),controller[_0x17fe4e('0xa')]),router['get'](_0x17fe4e('0xb'),auth[_0x17fe4e('0xd')](),controller[_0x17fe4e('0x13')]),router[_0x17fe4e('0x14')](_0x17fe4e('0x4'),auth['isAuthenticated'](),controller[_0x17fe4e('0x6')]),router['get'](_0x17fe4e('0x7'),auth[_0x17fe4e('0xd')](),controller['getTags']),router[_0x17fe4e('0xc')]('/',auth[_0x17fe4e('0xd')](),controller[_0x17fe4e('0x1')]),router[_0x17fe4e('0xc')]('/:id/tags',auth[_0x17fe4e('0xd')](),controller[_0x17fe4e('0x10')]),router['put'](_0x17fe4e('0x9'),auth[_0x17fe4e('0xd')](),controller[_0x17fe4e('0x12')]),router[_0x17fe4e('0x8')](_0x17fe4e('0x9'),auth[_0x17fe4e('0xd')](),controller[_0x17fe4e('0x3')]),module[_0x17fe4e('0xf')]=router; \ No newline at end of file +const a232_0xdab5=['/:id/descriptions','post','getFields','delete','./intDeskConfiguration.controller','getTags','/:id/fields','/:id/subjects','index','destroy','getSubjects','express','../../components/auth/service','put','exports','Router','update','setTags','/:id/tags','/:id','isAuthenticated','get','create'];(function(_0x2efd44,_0xdab5ff){const _0x4cf7b9=function(_0x19e06f){while(--_0x19e06f){_0x2efd44['push'](_0x2efd44['shift']());}};_0x4cf7b9(++_0xdab5ff);}(a232_0xdab5,0xee));const a232_0x4cf7=function(_0x2efd44,_0xdab5ff){_0x2efd44=_0x2efd44-0x0;let _0x4cf7b9=a232_0xdab5[_0x2efd44];return _0x4cf7b9;};const _0x5d1d5c=a232_0x4cf7;'use strict';const express=require(_0x5d1d5c('0x3')),router=express[_0x5d1d5c('0x7')](),auth=require(_0x5d1d5c('0x4')),controller=require(_0x5d1d5c('0x13'));router[_0x5d1d5c('0xd')]('/',auth[_0x5d1d5c('0xc')](),controller[_0x5d1d5c('0x0')]),router[_0x5d1d5c('0xd')](_0x5d1d5c('0xb'),auth[_0x5d1d5c('0xc')](),controller['show']),router[_0x5d1d5c('0xd')](_0x5d1d5c('0x15'),auth[_0x5d1d5c('0xc')](),controller[_0x5d1d5c('0x11')]),router[_0x5d1d5c('0xd')](_0x5d1d5c('0x16'),auth[_0x5d1d5c('0xc')](),controller[_0x5d1d5c('0x2')]),router[_0x5d1d5c('0xd')](_0x5d1d5c('0xf'),auth[_0x5d1d5c('0xc')](),controller['getDescriptions']),router[_0x5d1d5c('0xd')]('/:id/tags',auth[_0x5d1d5c('0xc')](),controller[_0x5d1d5c('0x14')]),router[_0x5d1d5c('0x10')]('/',auth[_0x5d1d5c('0xc')](),controller[_0x5d1d5c('0xe')]),router[_0x5d1d5c('0x10')](_0x5d1d5c('0xa'),auth[_0x5d1d5c('0xc')](),controller[_0x5d1d5c('0x9')]),router[_0x5d1d5c('0x5')](_0x5d1d5c('0xb'),auth[_0x5d1d5c('0xc')](),controller[_0x5d1d5c('0x8')]),router[_0x5d1d5c('0x12')]('/:id',auth['isAuthenticated'](),controller[_0x5d1d5c('0x1')]),module[_0x5d1d5c('0x6')]=router; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js index d612e22..0d8fb86 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.attributes.js @@ -1 +1 @@ -const a233_0x45e7=['exports','STRING','sequelize'];(function(_0x3e23c6,_0x45e78a){const _0x4ea035=function(_0x384d8c){while(--_0x384d8c){_0x3e23c6['push'](_0x3e23c6['shift']());}};_0x4ea035(++_0x45e78a);}(a233_0x45e7,0x152));const a233_0x4ea0=function(_0x3e23c6,_0x45e78a){_0x3e23c6=_0x3e23c6-0x0;let _0x4ea035=a233_0x45e7[_0x3e23c6];return _0x4ea035;};const _0xac217f=a233_0x4ea0;'use strict';const Sequelize=require(_0xac217f('0x0'));module[_0xac217f('0x1')]={'name':{'type':Sequelize[_0xac217f('0x2')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a233_0x36b0=['sequelize','STRING'];(function(_0x5d52fc,_0x36b01c){const _0x681c7c=function(_0x174bde){while(--_0x174bde){_0x5d52fc['push'](_0x5d52fc['shift']());}};_0x681c7c(++_0x36b01c);}(a233_0x36b0,0xdc));const a233_0x681c=function(_0x5d52fc,_0x36b01c){_0x5d52fc=_0x5d52fc-0x0;let _0x681c7c=a233_0x36b0[_0x5d52fc];return _0x681c7c;};const _0x255626=a233_0x681c;'use strict';const Sequelize=require(_0x255626('0x0'));module['exports']={'name':{'type':Sequelize[_0x255626('0x1')]},'description':{'type':Sequelize[_0x255626('0x1')]}}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js index af95c5c..9dd2816 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.controller.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.controller.js @@ -1 +1 @@ -const a234_0x55c7=['params','offset','../../config/logger','intersection','lodash','rows','DeskConfiguration','options','findAll','sequelize','DeskField','includeAll','length','keys','getSubjects','then','send','show','model','../../components/parsers/qs','attributes','rawAttributes','query','getTags','destroy','getDescriptions','name','undefined','setTags','json','include','error','update','map','findOne','like','order','key','type','nolimit','../../mysqldb','sendStatus','end','fields','getFields','where','merge','body','status','pick','catch','filters','sort','filter','create','limit','Tag','count'];(function(_0x3af157,_0x55c714){const _0x4608a3=function(_0x473cb7){while(--_0x473cb7){_0x3af157['push'](_0x3af157['shift']());}};_0x4608a3(++_0x55c714);}(a234_0x55c7,0x1b5));const a234_0x4608=function(_0x3af157,_0x55c714){_0x3af157=_0x3af157-0x0;let _0x4608a3=a234_0x55c7[_0x3af157];return _0x4608a3;};const _0x5f197e=a234_0x4608;'use strict';const _=require(_0x5f197e('0x1f')),qs=require(_0x5f197e('0x2e')),logger=require(_0x5f197e('0x1d'))('api'),db=require(_0x5f197e('0x9'))['db'],{Op}=require(_0x5f197e('0x24'));function respondWithResult(_0x473cb7,_0x4005b0){return _0x4005b0=_0x4005b0||0xc8,function(_0x1c95ed){const _0x75875f=a234_0x4608;if(_0x1c95ed)return _0x473cb7['status'](_0x4005b0)[_0x75875f('0x38')](_0x1c95ed);};}function respondWithFilteredResult(_0x25b8de,_0x518a2){return function(_0x440a50){const _0x1d2d76=a234_0x4608;if(_0x440a50){const _0x39d25e=_0x440a50[_0x1d2d76('0x1a')],_0x2e4944=_0x518a2[_0x1d2d76('0x1c')];let _0x1da276=_0x518a2['offset']+_0x518a2[_0x1d2d76('0x18')],_0xecb114;return _0x1da276>=_0x39d25e?(_0x1da276=_0x39d25e,_0xecb114=0xc8):_0xecb114=0xce,_0x25b8de[_0x1d2d76('0x11')](_0xecb114),_0x25b8de['set']('Content-Range',_0x2e4944+'-'+_0x1da276+'/'+_0x39d25e)[_0x1d2d76('0x38')](_0x440a50);}return null;};}function saveUpdates(_0x406e9a){return function(_0x1cbd4){if(_0x1cbd4)return _0x1cbd4['update'](_0x406e9a)['then'](function(_0x3d5e65){return _0x3d5e65;});return null;};}function removeEntity(_0x7d7dc7){return function(_0x4d0bfc){const _0x29f2e7=a234_0x4608;if(_0x4d0bfc)return _0x4d0bfc[_0x29f2e7('0x33')]()[_0x29f2e7('0x2a')](function(){const _0xf9fcbc=_0x29f2e7;_0x7d7dc7[_0xf9fcbc('0x11')](0xcc)[_0xf9fcbc('0xb')]();});};}function handleEntityNotFound(_0x15cb86){return function(_0x56122e){const _0x2a79db=a234_0x4608;return!_0x56122e&&_0x15cb86[_0x2a79db('0xa')](0x194),_0x56122e;};}function handleError(_0x3b0d5b,_0x1457cc){return _0x1457cc=_0x1457cc||0x1f4,function(_0x426ed1){const _0x253c0e=a234_0x4608;logger[_0x253c0e('0x0')](_0x426ed1['stack']),_0x426ed1[_0x253c0e('0x35')]&&delete _0x426ed1['name'],_0x3b0d5b[_0x253c0e('0x11')](_0x1457cc)[_0x253c0e('0x2b')](_0x426ed1);};}exports['index']=function(_0x351d8c,_0x4af701){const _0x254f6b=_0x5f197e;let _0x41cf97={};const _0x5c2940={},_0x982231={'count':0x0,'rows':[]},_0xd6eea7=_[_0x254f6b('0x2')](db[_0x254f6b('0x21')][_0x254f6b('0x30')],function(_0x349ca2){const _0x2bd973=_0x254f6b;return{'name':_0x349ca2['fieldName'],'type':_0x349ca2[_0x2bd973('0x7')][_0x2bd973('0x6')]};});_0x5c2940[_0x254f6b('0x2d')]=_[_0x254f6b('0x2')](_0xd6eea7,_0x254f6b('0x35')),_0x5c2940['query']=_['keys'](_0x351d8c[_0x254f6b('0x31')]),_0x5c2940[_0x254f6b('0x14')]=_[_0x254f6b('0x1e')](_0x5c2940[_0x254f6b('0x2d')],_0x5c2940[_0x254f6b('0x31')]),_0x41cf97['attributes']=_[_0x254f6b('0x1e')](_0x5c2940[_0x254f6b('0x2d')],qs[_0x254f6b('0xc')](_0x351d8c[_0x254f6b('0x31')]['fields'])),_0x41cf97[_0x254f6b('0x2f')]=_0x41cf97[_0x254f6b('0x2f')][_0x254f6b('0x27')]?_0x41cf97[_0x254f6b('0x2f')]:_0x5c2940[_0x254f6b('0x2d')];typeof _0x351d8c['query'][_0x254f6b('0x8')]===_0x254f6b('0x36')&&(_0x41cf97['limit']=qs['limit'](_0x351d8c[_0x254f6b('0x31')][_0x254f6b('0x18')]),_0x41cf97[_0x254f6b('0x1c')]=qs['offset'](_0x351d8c[_0x254f6b('0x31')][_0x254f6b('0x1c')]));_0x41cf97['order']=qs[_0x254f6b('0x15')](_0x351d8c['query'][_0x254f6b('0x15')]),_0x41cf97[_0x254f6b('0xe')]=qs[_0x254f6b('0x14')](_[_0x254f6b('0x12')](_0x351d8c['query'],_0x5c2940[_0x254f6b('0x14')]),_0xd6eea7);_0x351d8c[_0x254f6b('0x31')]['filter']&&(_0x41cf97[_0x254f6b('0xe')]=_[_0x254f6b('0xf')](_0x41cf97[_0x254f6b('0xe')],{[Op['or']]:_[_0x254f6b('0x2')](_0xd6eea7,function(_0xc652e1){const _0x47217f=_0x254f6b;if(_0xc652e1[_0x47217f('0x7')]!=='VIRTUAL'){const _0x533c46={};return _0x533c46[_0xc652e1[_0x47217f('0x35')]]={[Op[_0x47217f('0x4')]]:'%'+_0x351d8c[_0x47217f('0x31')][_0x47217f('0x16')]+'%'},_0x533c46;}})}));_0x41cf97=_[_0x254f6b('0xf')]({},_0x41cf97,_0x351d8c[_0x254f6b('0x22')]);const _0x517fe1={'where':_0x41cf97[_0x254f6b('0xe')]};return db['DeskConfiguration']['count'](_0x517fe1)[_0x254f6b('0x2a')](function(_0x538e23){const _0x1a6af3=_0x254f6b;return _0x982231[_0x1a6af3('0x1a')]=_0x538e23,_0x351d8c['query']['includeAll']&&(_0x41cf97[_0x1a6af3('0x39')]=[{'all':!![]}]),db[_0x1a6af3('0x21')][_0x1a6af3('0x23')](_0x41cf97);})[_0x254f6b('0x2a')](function(_0x3ddf2a){const _0x2c6783=_0x254f6b;return _0x982231[_0x2c6783('0x20')]=_0x3ddf2a,_0x982231;})[_0x254f6b('0x2a')](respondWithFilteredResult(_0x4af701,_0x41cf97))[_0x254f6b('0x13')](handleError(_0x4af701,null));},exports[_0x5f197e('0x2c')]=function(_0xddea5d,_0x4ffd19){const _0x506e69=_0x5f197e;let _0x49eddf={'raw':![],'where':{'id':_0xddea5d[_0x506e69('0x1b')]['id']}};const _0x4b4de3={};return _0x4b4de3[_0x506e69('0x2d')]=_[_0x506e69('0x28')](db['DeskConfiguration'][_0x506e69('0x30')]),_0x4b4de3['query']=_[_0x506e69('0x28')](_0xddea5d[_0x506e69('0x31')]),_0x4b4de3[_0x506e69('0x14')]=_[_0x506e69('0x1e')](_0x4b4de3[_0x506e69('0x2d')],_0x4b4de3['query']),_0x49eddf['attributes']=_[_0x506e69('0x1e')](_0x4b4de3[_0x506e69('0x2d')],qs[_0x506e69('0xc')](_0xddea5d[_0x506e69('0x31')]['fields'])),_0x49eddf[_0x506e69('0x2f')]=_0x49eddf[_0x506e69('0x2f')][_0x506e69('0x27')]?_0x49eddf[_0x506e69('0x2f')]:_0x4b4de3[_0x506e69('0x2d')],_0xddea5d[_0x506e69('0x31')][_0x506e69('0x26')]&&(_0x49eddf['include']=[{'all':!![]}]),_0x49eddf=_[_0x506e69('0xf')]({},_0x49eddf,_0xddea5d['options']),db[_0x506e69('0x21')][_0x506e69('0x3')](_0x49eddf)[_0x506e69('0x2a')](handleEntityNotFound(_0x4ffd19,null))[_0x506e69('0x2a')](respondWithResult(_0x4ffd19,null))['catch'](handleError(_0x4ffd19,null));},exports[_0x5f197e('0x17')]=function(_0x51d953,_0x57c54f){const _0x621ad7=_0x5f197e;return db[_0x621ad7('0x21')][_0x621ad7('0x17')](_0x51d953[_0x621ad7('0x10')],{})[_0x621ad7('0x2a')](respondWithResult(_0x57c54f,0xc9))[_0x621ad7('0x13')](handleError(_0x57c54f,null));},exports[_0x5f197e('0x1')]=function(_0x1d954b,_0x250a04){const _0x85c3fa=_0x5f197e;return _0x1d954b[_0x85c3fa('0x10')]['id']&&delete _0x1d954b[_0x85c3fa('0x10')]['id'],db['DeskConfiguration'][_0x85c3fa('0x3')]({'where':{'id':_0x1d954b['params']['id']}})[_0x85c3fa('0x2a')](handleEntityNotFound(_0x250a04,null))['then'](saveUpdates(_0x1d954b[_0x85c3fa('0x10')],null))[_0x85c3fa('0x2a')](respondWithResult(_0x250a04,null))[_0x85c3fa('0x13')](handleError(_0x250a04,null));},exports[_0x5f197e('0x33')]=function(_0x31b403,_0x6db06d){const _0x2c799c=_0x5f197e;return db['DeskConfiguration']['findOne']({'where':{'id':_0x31b403[_0x2c799c('0x1b')]['id']}})['then'](handleEntityNotFound(_0x6db06d,null))[_0x2c799c('0x2a')](removeEntity(_0x6db06d,null))[_0x2c799c('0x13')](handleError(_0x6db06d,null));},exports[_0x5f197e('0xd')]=function(_0x35f0f0,_0x4c4948){const _0x4a2f85=_0x5f197e;let _0x341f09={};const _0x4f22e3={};let _0x1c5889,_0x503bcf;return db[_0x4a2f85('0x21')][_0x4a2f85('0x3')]({'where':{'id':_0x35f0f0['params']['id']}})['then'](handleEntityNotFound(_0x4c4948,null))[_0x4a2f85('0x2a')](function(_0x410ac8){const _0x1c5b2a=_0x4a2f85;if(_0x410ac8)return _0x1c5889=_0x410ac8,_0x4f22e3[_0x1c5b2a('0x2d')]=_[_0x1c5b2a('0x28')](db[_0x1c5b2a('0x25')][_0x1c5b2a('0x30')]),_0x4f22e3[_0x1c5b2a('0x31')]=_[_0x1c5b2a('0x28')](_0x35f0f0[_0x1c5b2a('0x31')]),_0x4f22e3[_0x1c5b2a('0x14')]=_['intersection'](_0x4f22e3[_0x1c5b2a('0x2d')],_0x4f22e3['query']),_0x341f09['attributes']=_['intersection'](_0x4f22e3[_0x1c5b2a('0x2d')],qs[_0x1c5b2a('0xc')](_0x35f0f0[_0x1c5b2a('0x31')][_0x1c5b2a('0xc')])),_0x341f09[_0x1c5b2a('0x2f')]=_0x341f09[_0x1c5b2a('0x2f')][_0x1c5b2a('0x27')]?_0x341f09[_0x1c5b2a('0x2f')]:_0x4f22e3[_0x1c5b2a('0x2d')],_0x341f09['order']=qs['sort'](_0x35f0f0['query'][_0x1c5b2a('0x15')]),_0x341f09['where']=qs['filters'](_[_0x1c5b2a('0x12')](_0x35f0f0[_0x1c5b2a('0x31')],_0x4f22e3[_0x1c5b2a('0x14')])),_0x35f0f0[_0x1c5b2a('0x31')]['filter']&&(_0x341f09['where']=_['merge'](_0x341f09[_0x1c5b2a('0xe')],{[Op['or']]:_[_0x1c5b2a('0x2')](_0x341f09[_0x1c5b2a('0x2f')],function(_0x3eaf1c){const _0x35e796=_0x1c5b2a,_0x3086b8={};return _0x3086b8[_0x3eaf1c]={[Op[_0x35e796('0x4')]]:'%'+_0x35f0f0[_0x35e796('0x31')][_0x35e796('0x16')]+'%'},_0x3086b8;})})),_0x341f09=_[_0x1c5b2a('0xf')]({},_0x341f09,_0x35f0f0['options']),_0x1c5889[_0x1c5b2a('0xd')](_0x341f09);})[_0x4a2f85('0x2a')](function(_0x4bdda3){const _0x1f49a3=_0x4a2f85;if(_0x4bdda3)return _0x503bcf=_0x4bdda3[_0x1f49a3('0x27')],typeof _0x35f0f0[_0x1f49a3('0x31')]['nolimit']===_0x1f49a3('0x36')&&(_0x341f09[_0x1f49a3('0x18')]=qs[_0x1f49a3('0x18')](_0x35f0f0[_0x1f49a3('0x31')][_0x1f49a3('0x18')]),_0x341f09['offset']=qs[_0x1f49a3('0x1c')](_0x35f0f0[_0x1f49a3('0x31')][_0x1f49a3('0x1c')])),_0x1c5889[_0x1f49a3('0xd')](_0x341f09);})['then'](function(_0x442955){if(_0x442955)return _0x442955?{'count':_0x503bcf,'rows':_0x442955}:null;})['then'](respondWithResult(_0x4c4948,null))['catch'](handleError(_0x4c4948,null));},exports[_0x5f197e('0x29')]=function(_0x4b12be,_0x21909f){const _0x136483=_0x5f197e;let _0x573543={};const _0x15787d={};let _0x5532de,_0x5c7b70;return db[_0x136483('0x21')]['findOne']({'where':{'id':_0x4b12be[_0x136483('0x1b')]['id']}})['then'](handleEntityNotFound(_0x21909f,null))[_0x136483('0x2a')](function(_0x198376){const _0x1434e5=_0x136483;if(_0x198376)return _0x5532de=_0x198376,_0x15787d[_0x1434e5('0x2d')]=_['keys'](db[_0x1434e5('0x25')][_0x1434e5('0x30')]),_0x15787d[_0x1434e5('0x31')]=_[_0x1434e5('0x28')](_0x4b12be['query']),_0x15787d['filters']=_[_0x1434e5('0x1e')](_0x15787d[_0x1434e5('0x2d')],_0x15787d['query']),_0x573543['attributes']=_[_0x1434e5('0x1e')](_0x15787d[_0x1434e5('0x2d')],qs['fields'](_0x4b12be[_0x1434e5('0x31')]['fields'])),_0x573543['attributes']=_0x573543[_0x1434e5('0x2f')][_0x1434e5('0x27')]?_0x573543[_0x1434e5('0x2f')]:_0x15787d[_0x1434e5('0x2d')],_0x573543[_0x1434e5('0x5')]=qs[_0x1434e5('0x15')](_0x4b12be[_0x1434e5('0x31')]['sort']),_0x573543[_0x1434e5('0xe')]=qs[_0x1434e5('0x14')](_[_0x1434e5('0x12')](_0x4b12be['query'],_0x15787d[_0x1434e5('0x14')])),_0x4b12be[_0x1434e5('0x31')]['filter']&&(_0x573543[_0x1434e5('0xe')]=_['merge'](_0x573543['where'],{[Op['or']]:_[_0x1434e5('0x2')](_0x573543[_0x1434e5('0x2f')],function(_0x227b72){const _0x2b0613=_0x1434e5,_0x140f3c={};return _0x140f3c[_0x227b72]={[Op[_0x2b0613('0x4')]]:'%'+_0x4b12be[_0x2b0613('0x31')]['filter']+'%'},_0x140f3c;})})),_0x573543=_['merge']({},_0x573543,_0x4b12be[_0x1434e5('0x22')]),_0x5532de[_0x1434e5('0x29')](_0x573543);})['then'](function(_0x4ba1f7){const _0x5ddb6d=_0x136483;if(_0x4ba1f7)return _0x5c7b70=_0x4ba1f7[_0x5ddb6d('0x27')],typeof _0x4b12be['query'][_0x5ddb6d('0x8')]===_0x5ddb6d('0x36')&&(_0x573543[_0x5ddb6d('0x18')]=qs[_0x5ddb6d('0x18')](_0x4b12be[_0x5ddb6d('0x31')][_0x5ddb6d('0x18')]),_0x573543[_0x5ddb6d('0x1c')]=qs[_0x5ddb6d('0x1c')](_0x4b12be[_0x5ddb6d('0x31')]['offset'])),_0x5532de['getSubjects'](_0x573543);})[_0x136483('0x2a')](function(_0x536c2c){if(_0x536c2c)return _0x536c2c?{'count':_0x5c7b70,'rows':_0x536c2c}:null;})[_0x136483('0x2a')](respondWithResult(_0x21909f,null))[_0x136483('0x13')](handleError(_0x21909f,null));},exports[_0x5f197e('0x34')]=function(_0x4e394c,_0x2e65dc){const _0x3e7a64=_0x5f197e;let _0x26b705={};const _0x17f348={};let _0x3880e2,_0x9e2beb;return db['DeskConfiguration']['findOne']({'where':{'id':_0x4e394c[_0x3e7a64('0x1b')]['id']}})[_0x3e7a64('0x2a')](handleEntityNotFound(_0x2e65dc,null))['then'](function(_0x32f2d3){const _0x17da98=_0x3e7a64;if(_0x32f2d3)return _0x3880e2=_0x32f2d3,_0x17f348['model']=_['keys'](db[_0x17da98('0x25')]['rawAttributes']),_0x17f348['query']=_[_0x17da98('0x28')](_0x4e394c[_0x17da98('0x31')]),_0x17f348[_0x17da98('0x14')]=_['intersection'](_0x17f348['model'],_0x17f348[_0x17da98('0x31')]),_0x26b705[_0x17da98('0x2f')]=_[_0x17da98('0x1e')](_0x17f348[_0x17da98('0x2d')],qs[_0x17da98('0xc')](_0x4e394c[_0x17da98('0x31')][_0x17da98('0xc')])),_0x26b705[_0x17da98('0x2f')]=_0x26b705['attributes']['length']?_0x26b705[_0x17da98('0x2f')]:_0x17f348[_0x17da98('0x2d')],_0x26b705[_0x17da98('0x5')]=qs[_0x17da98('0x15')](_0x4e394c[_0x17da98('0x31')]['sort']),_0x26b705['where']=qs[_0x17da98('0x14')](_['pick'](_0x4e394c['query'],_0x17f348[_0x17da98('0x14')])),_0x4e394c[_0x17da98('0x31')][_0x17da98('0x16')]&&(_0x26b705[_0x17da98('0xe')]=_[_0x17da98('0xf')](_0x26b705[_0x17da98('0xe')],{[Op['or']]:_[_0x17da98('0x2')](_0x26b705[_0x17da98('0x2f')],function(_0x3cf467){const _0x952508=_0x17da98,_0x3cd5c3={};return _0x3cd5c3[_0x3cf467]={[Op[_0x952508('0x4')]]:'%'+_0x4e394c[_0x952508('0x31')][_0x952508('0x16')]+'%'},_0x3cd5c3;})})),_0x26b705=_[_0x17da98('0xf')]({},_0x26b705,_0x4e394c[_0x17da98('0x22')]),_0x3880e2['getDescriptions'](_0x26b705);})[_0x3e7a64('0x2a')](function(_0x5b85bd){const _0x2ed411=_0x3e7a64;if(_0x5b85bd)return _0x9e2beb=_0x5b85bd[_0x2ed411('0x27')],typeof _0x4e394c['query'][_0x2ed411('0x8')]==='undefined'&&(_0x26b705[_0x2ed411('0x18')]=qs[_0x2ed411('0x18')](_0x4e394c[_0x2ed411('0x31')]['limit']),_0x26b705['offset']=qs[_0x2ed411('0x1c')](_0x4e394c[_0x2ed411('0x31')][_0x2ed411('0x1c')])),_0x3880e2[_0x2ed411('0x34')](_0x26b705);})[_0x3e7a64('0x2a')](function(_0x4356cb){if(_0x4356cb)return _0x4356cb?{'count':_0x9e2beb,'rows':_0x4356cb}:null;})['then'](respondWithResult(_0x2e65dc,null))[_0x3e7a64('0x13')](handleError(_0x2e65dc,null));},exports[_0x5f197e('0x32')]=function(_0x2d7747,_0x193009){const _0xed6a64=_0x5f197e;let _0x3c903f={};const _0x15be33={};let _0x1bcb02,_0x3224b8;return db[_0xed6a64('0x21')]['findOne']({'where':{'id':_0x2d7747[_0xed6a64('0x1b')]['id']}})['then'](handleEntityNotFound(_0x193009,null))['then'](function(_0x23bca4){const _0xa24b49=_0xed6a64;if(_0x23bca4)return _0x1bcb02=_0x23bca4,_0x15be33[_0xa24b49('0x2d')]=_[_0xa24b49('0x28')](db[_0xa24b49('0x19')][_0xa24b49('0x30')]),_0x15be33[_0xa24b49('0x31')]=_[_0xa24b49('0x28')](_0x2d7747['query']),_0x15be33[_0xa24b49('0x14')]=_[_0xa24b49('0x1e')](_0x15be33[_0xa24b49('0x2d')],_0x15be33[_0xa24b49('0x31')]),_0x3c903f[_0xa24b49('0x2f')]=_[_0xa24b49('0x1e')](_0x15be33[_0xa24b49('0x2d')],qs['fields'](_0x2d7747[_0xa24b49('0x31')]['fields'])),_0x3c903f[_0xa24b49('0x2f')]=_0x3c903f[_0xa24b49('0x2f')]['length']?_0x3c903f[_0xa24b49('0x2f')]:_0x15be33[_0xa24b49('0x2d')],_0x3c903f[_0xa24b49('0x5')]=qs[_0xa24b49('0x15')](_0x2d7747[_0xa24b49('0x31')]['sort']),_0x3c903f[_0xa24b49('0xe')]=qs['filters'](_['pick'](_0x2d7747[_0xa24b49('0x31')],_0x15be33['filters'])),_0x2d7747[_0xa24b49('0x31')][_0xa24b49('0x16')]&&(_0x3c903f[_0xa24b49('0xe')]=_['merge'](_0x3c903f[_0xa24b49('0xe')],{[Op['or']]:_[_0xa24b49('0x2')](_0x3c903f[_0xa24b49('0x2f')],function(_0x11e824){const _0x55598e=_0xa24b49,_0xdd953a={};return _0xdd953a[_0x11e824]={[Op['like']]:'%'+_0x2d7747[_0x55598e('0x31')][_0x55598e('0x16')]+'%'},_0xdd953a;})})),_0x3c903f=_[_0xa24b49('0xf')]({},_0x3c903f,_0x2d7747[_0xa24b49('0x22')]),_0x1bcb02[_0xa24b49('0x32')](_0x3c903f);})[_0xed6a64('0x2a')](function(_0x2c9a84){const _0x1f33f8=_0xed6a64;if(_0x2c9a84)return _0x3224b8=_0x2c9a84[_0x1f33f8('0x27')],typeof _0x2d7747['query'][_0x1f33f8('0x8')]===_0x1f33f8('0x36')&&(_0x3c903f['limit']=qs[_0x1f33f8('0x18')](_0x2d7747[_0x1f33f8('0x31')]['limit']),_0x3c903f['offset']=qs[_0x1f33f8('0x1c')](_0x2d7747['query']['offset'])),_0x1bcb02[_0x1f33f8('0x32')](_0x3c903f);})[_0xed6a64('0x2a')](function(_0xda02bd){if(_0xda02bd)return _0xda02bd?{'count':_0x3224b8,'rows':_0xda02bd}:null;})['then'](respondWithResult(_0x193009,null))[_0xed6a64('0x13')](handleError(_0x193009,null));},exports[_0x5f197e('0x37')]=function(_0x424476,_0x497990){const _0x5ab296=_0x5f197e;return _0x424476['body']['id']&&delete _0x424476[_0x5ab296('0x10')]['id'],db[_0x5ab296('0x21')][_0x5ab296('0x3')]({'where':{'id':_0x424476['params']['id']}})[_0x5ab296('0x2a')](handleEntityNotFound(_0x497990,null))[_0x5ab296('0x2a')](function(_0x4fb770){const _0x4c592c=_0x5ab296;if(_0x4fb770)return _0x4fb770[_0x4c592c('0x37')](_0x424476[_0x4c592c('0x10')]['ids']||[]);return null;})[_0x5ab296('0x2a')](respondWithResult(_0x497990,null))[_0x5ab296('0x13')](handleError(_0x497990,null));}; \ No newline at end of file +const a234_0x57c3=['attributes','includeAll','count','filter','name','findAll','getDescriptions','sendStatus','sequelize','DeskField','end','DeskConfiguration','params','../../components/parsers/qs','keys','merge','order','rawAttributes','key','nolimit','intersection','ids','like','getTags','type','../../mysqldb','set','sort','model','limit','body','update','fields','then','index','send','query','status','options','Content-Range','offset','catch','api','getSubjects','json','getFields','where','show','VIRTUAL','findOne','pick','setTags','map','undefined','filters','error','length'];(function(_0x424f5c,_0x57c3c7){const _0xa9af58=function(_0x3ffbeb){while(--_0x3ffbeb){_0x424f5c['push'](_0x424f5c['shift']());}};_0xa9af58(++_0x57c3c7);}(a234_0x57c3,0x18d));const a234_0xa9af=function(_0x424f5c,_0x57c3c7){_0x424f5c=_0x424f5c-0x0;let _0xa9af58=a234_0x57c3[_0x424f5c];return _0xa9af58;};const _0xfe64d6=a234_0xa9af;'use strict';const _=require('lodash'),qs=require(_0xfe64d6('0xf')),logger=require('../../config/logger')(_0xfe64d6('0x2c')),db=require(_0xfe64d6('0x1b'))['db'],{Op}=require(_0xfe64d6('0xa'));function respondWithResult(_0x3ffbeb,_0x192aae){return _0x192aae=_0x192aae||0xc8,function(_0x32bdba){const _0x2ecfc8=a234_0xa9af;if(_0x32bdba)return _0x3ffbeb[_0x2ecfc8('0x27')](_0x192aae)[_0x2ecfc8('0x2e')](_0x32bdba);};}function respondWithFilteredResult(_0x4f5387,_0x3bd290){return function(_0x446d10){const _0x1ef44d=a234_0xa9af;if(_0x446d10){const _0x25c86f=_0x446d10[_0x1ef44d('0x4')],_0x47b6cf=_0x3bd290[_0x1ef44d('0x2a')];let _0x5b66b6=_0x3bd290[_0x1ef44d('0x2a')]+_0x3bd290[_0x1ef44d('0x1f')],_0x7cc861;return _0x5b66b6>=_0x25c86f?(_0x5b66b6=_0x25c86f,_0x7cc861=0xc8):_0x7cc861=0xce,_0x4f5387[_0x1ef44d('0x27')](_0x7cc861),_0x4f5387[_0x1ef44d('0x1c')](_0x1ef44d('0x29'),_0x47b6cf+'-'+_0x5b66b6+'/'+_0x25c86f)[_0x1ef44d('0x2e')](_0x446d10);}return null;};}function saveUpdates(_0x3cc8bb){return function(_0xc81999){const _0x14dd0c=a234_0xa9af;if(_0xc81999)return _0xc81999[_0x14dd0c('0x21')](_0x3cc8bb)['then'](function(_0x49ded0){return _0x49ded0;});return null;};}function removeEntity(_0x2f266b){return function(_0x4439d4){const _0x205464=a234_0xa9af;if(_0x4439d4)return _0x4439d4['destroy']()[_0x205464('0x23')](function(){const _0x573c99=_0x205464;_0x2f266b[_0x573c99('0x27')](0xcc)[_0x573c99('0xc')]();});};}function handleEntityNotFound(_0x12fe8c){return function(_0x52ac1b){const _0x43e02c=a234_0xa9af;return!_0x52ac1b&&_0x12fe8c[_0x43e02c('0x9')](0x194),_0x52ac1b;};}function handleError(_0x5d7788,_0x15c4b8){return _0x15c4b8=_0x15c4b8||0x1f4,function(_0x3a4e9a){const _0x45e02b=a234_0xa9af;logger[_0x45e02b('0x0')](_0x3a4e9a['stack']),_0x3a4e9a[_0x45e02b('0x6')]&&delete _0x3a4e9a[_0x45e02b('0x6')],_0x5d7788[_0x45e02b('0x27')](_0x15c4b8)[_0x45e02b('0x25')](_0x3a4e9a);};}exports[_0xfe64d6('0x24')]=function(_0x139769,_0x422b16){const _0x369697=_0xfe64d6;let _0x241218={};const _0x423a0e={},_0x558475={'count':0x0,'rows':[]},_0x4f0384=_[_0x369697('0x36')](db[_0x369697('0xd')]['rawAttributes'],function(_0x489147){const _0x527974=_0x369697;return{'name':_0x489147['fieldName'],'type':_0x489147[_0x527974('0x1a')][_0x527974('0x14')]};});_0x423a0e[_0x369697('0x1e')]=_[_0x369697('0x36')](_0x4f0384,_0x369697('0x6')),_0x423a0e[_0x369697('0x26')]=_['keys'](_0x139769[_0x369697('0x26')]),_0x423a0e[_0x369697('0x38')]=_[_0x369697('0x16')](_0x423a0e[_0x369697('0x1e')],_0x423a0e[_0x369697('0x26')]),_0x241218[_0x369697('0x2')]=_[_0x369697('0x16')](_0x423a0e[_0x369697('0x1e')],qs[_0x369697('0x22')](_0x139769['query'][_0x369697('0x22')])),_0x241218[_0x369697('0x2')]=_0x241218[_0x369697('0x2')][_0x369697('0x1')]?_0x241218[_0x369697('0x2')]:_0x423a0e[_0x369697('0x1e')];typeof _0x139769[_0x369697('0x26')][_0x369697('0x15')]===_0x369697('0x37')&&(_0x241218[_0x369697('0x1f')]=qs[_0x369697('0x1f')](_0x139769[_0x369697('0x26')][_0x369697('0x1f')]),_0x241218[_0x369697('0x2a')]=qs[_0x369697('0x2a')](_0x139769[_0x369697('0x26')][_0x369697('0x2a')]));_0x241218[_0x369697('0x12')]=qs[_0x369697('0x1d')](_0x139769['query'][_0x369697('0x1d')]),_0x241218[_0x369697('0x30')]=qs[_0x369697('0x38')](_[_0x369697('0x34')](_0x139769['query'],_0x423a0e[_0x369697('0x38')]),_0x4f0384);_0x139769[_0x369697('0x26')]['filter']&&(_0x241218[_0x369697('0x30')]=_[_0x369697('0x11')](_0x241218[_0x369697('0x30')],{[Op['or']]:_[_0x369697('0x36')](_0x4f0384,function(_0x54c203){const _0x503501=_0x369697;if(_0x54c203[_0x503501('0x1a')]!==_0x503501('0x32')){const _0x27be12={};return _0x27be12[_0x54c203['name']]={[Op['like']]:'%'+_0x139769['query'][_0x503501('0x5')]+'%'},_0x27be12;}})}));_0x241218=_[_0x369697('0x11')]({},_0x241218,_0x139769[_0x369697('0x28')]);const _0x420fcf={'where':_0x241218['where']};return db[_0x369697('0xd')][_0x369697('0x4')](_0x420fcf)['then'](function(_0x1fc740){const _0x18109a=_0x369697;return _0x558475['count']=_0x1fc740,_0x139769[_0x18109a('0x26')][_0x18109a('0x3')]&&(_0x241218['include']=[{'all':!![]}]),db[_0x18109a('0xd')][_0x18109a('0x7')](_0x241218);})[_0x369697('0x23')](function(_0x468f9c){return _0x558475['rows']=_0x468f9c,_0x558475;})['then'](respondWithFilteredResult(_0x422b16,_0x241218))[_0x369697('0x2b')](handleError(_0x422b16,null));},exports[_0xfe64d6('0x31')]=function(_0x2ab940,_0x40aa15){const _0xd5c0ca=_0xfe64d6;let _0x726cc0={'raw':![],'where':{'id':_0x2ab940[_0xd5c0ca('0xe')]['id']}};const _0x3d386e={};return _0x3d386e[_0xd5c0ca('0x1e')]=_['keys'](db[_0xd5c0ca('0xd')][_0xd5c0ca('0x13')]),_0x3d386e[_0xd5c0ca('0x26')]=_['keys'](_0x2ab940[_0xd5c0ca('0x26')]),_0x3d386e[_0xd5c0ca('0x38')]=_[_0xd5c0ca('0x16')](_0x3d386e[_0xd5c0ca('0x1e')],_0x3d386e[_0xd5c0ca('0x26')]),_0x726cc0['attributes']=_[_0xd5c0ca('0x16')](_0x3d386e['model'],qs[_0xd5c0ca('0x22')](_0x2ab940[_0xd5c0ca('0x26')]['fields'])),_0x726cc0[_0xd5c0ca('0x2')]=_0x726cc0['attributes'][_0xd5c0ca('0x1')]?_0x726cc0[_0xd5c0ca('0x2')]:_0x3d386e['model'],_0x2ab940[_0xd5c0ca('0x26')][_0xd5c0ca('0x3')]&&(_0x726cc0['include']=[{'all':!![]}]),_0x726cc0=_['merge']({},_0x726cc0,_0x2ab940[_0xd5c0ca('0x28')]),db[_0xd5c0ca('0xd')]['findOne'](_0x726cc0)[_0xd5c0ca('0x23')](handleEntityNotFound(_0x40aa15,null))[_0xd5c0ca('0x23')](respondWithResult(_0x40aa15,null))[_0xd5c0ca('0x2b')](handleError(_0x40aa15,null));},exports['create']=function(_0x114c00,_0x6f8165){const _0x312b2a=_0xfe64d6;return db[_0x312b2a('0xd')]['create'](_0x114c00[_0x312b2a('0x20')],{})[_0x312b2a('0x23')](respondWithResult(_0x6f8165,0xc9))['catch'](handleError(_0x6f8165,null));},exports['update']=function(_0x32ca75,_0x4049f1){const _0xca6d64=_0xfe64d6;return _0x32ca75[_0xca6d64('0x20')]['id']&&delete _0x32ca75['body']['id'],db['DeskConfiguration']['findOne']({'where':{'id':_0x32ca75[_0xca6d64('0xe')]['id']}})[_0xca6d64('0x23')](handleEntityNotFound(_0x4049f1,null))[_0xca6d64('0x23')](saveUpdates(_0x32ca75['body'],null))[_0xca6d64('0x23')](respondWithResult(_0x4049f1,null))['catch'](handleError(_0x4049f1,null));},exports['destroy']=function(_0xaf121f,_0x596d54){const _0x105362=_0xfe64d6;return db[_0x105362('0xd')][_0x105362('0x33')]({'where':{'id':_0xaf121f[_0x105362('0xe')]['id']}})['then'](handleEntityNotFound(_0x596d54,null))[_0x105362('0x23')](removeEntity(_0x596d54,null))[_0x105362('0x2b')](handleError(_0x596d54,null));},exports[_0xfe64d6('0x2f')]=function(_0x1c1563,_0x2313a8){const _0xbec2e8=_0xfe64d6;let _0x5cf288={};const _0x3be5a3={};let _0x2a533d,_0x11fdb1;return db[_0xbec2e8('0xd')][_0xbec2e8('0x33')]({'where':{'id':_0x1c1563[_0xbec2e8('0xe')]['id']}})[_0xbec2e8('0x23')](handleEntityNotFound(_0x2313a8,null))[_0xbec2e8('0x23')](function(_0x2a815e){const _0x346232=_0xbec2e8;if(_0x2a815e)return _0x2a533d=_0x2a815e,_0x3be5a3[_0x346232('0x1e')]=_['keys'](db[_0x346232('0xb')][_0x346232('0x13')]),_0x3be5a3[_0x346232('0x26')]=_[_0x346232('0x10')](_0x1c1563[_0x346232('0x26')]),_0x3be5a3[_0x346232('0x38')]=_[_0x346232('0x16')](_0x3be5a3[_0x346232('0x1e')],_0x3be5a3['query']),_0x5cf288[_0x346232('0x2')]=_['intersection'](_0x3be5a3[_0x346232('0x1e')],qs[_0x346232('0x22')](_0x1c1563[_0x346232('0x26')]['fields'])),_0x5cf288[_0x346232('0x2')]=_0x5cf288['attributes'][_0x346232('0x1')]?_0x5cf288[_0x346232('0x2')]:_0x3be5a3[_0x346232('0x1e')],_0x5cf288['order']=qs['sort'](_0x1c1563[_0x346232('0x26')]['sort']),_0x5cf288[_0x346232('0x30')]=qs[_0x346232('0x38')](_[_0x346232('0x34')](_0x1c1563['query'],_0x3be5a3[_0x346232('0x38')])),_0x1c1563[_0x346232('0x26')]['filter']&&(_0x5cf288[_0x346232('0x30')]=_['merge'](_0x5cf288[_0x346232('0x30')],{[Op['or']]:_['map'](_0x5cf288[_0x346232('0x2')],function(_0xfe5d41){const _0x32a984=_0x346232,_0x405d4b={};return _0x405d4b[_0xfe5d41]={[Op[_0x32a984('0x18')]]:'%'+_0x1c1563[_0x32a984('0x26')]['filter']+'%'},_0x405d4b;})})),_0x5cf288=_['merge']({},_0x5cf288,_0x1c1563[_0x346232('0x28')]),_0x2a533d['getFields'](_0x5cf288);})[_0xbec2e8('0x23')](function(_0x28aa69){const _0x2f8349=_0xbec2e8;if(_0x28aa69)return _0x11fdb1=_0x28aa69[_0x2f8349('0x1')],typeof _0x1c1563[_0x2f8349('0x26')][_0x2f8349('0x15')]===_0x2f8349('0x37')&&(_0x5cf288[_0x2f8349('0x1f')]=qs[_0x2f8349('0x1f')](_0x1c1563[_0x2f8349('0x26')]['limit']),_0x5cf288[_0x2f8349('0x2a')]=qs[_0x2f8349('0x2a')](_0x1c1563[_0x2f8349('0x26')][_0x2f8349('0x2a')])),_0x2a533d[_0x2f8349('0x2f')](_0x5cf288);})[_0xbec2e8('0x23')](function(_0x57d042){if(_0x57d042)return _0x57d042?{'count':_0x11fdb1,'rows':_0x57d042}:null;})['then'](respondWithResult(_0x2313a8,null))[_0xbec2e8('0x2b')](handleError(_0x2313a8,null));},exports['getSubjects']=function(_0x5d2f19,_0x41a837){const _0x691da3=_0xfe64d6;let _0x48e9ec={};const _0x2564fb={};let _0x53f601,_0xc9d4c;return db[_0x691da3('0xd')]['findOne']({'where':{'id':_0x5d2f19[_0x691da3('0xe')]['id']}})[_0x691da3('0x23')](handleEntityNotFound(_0x41a837,null))[_0x691da3('0x23')](function(_0x31ac5e){const _0x202367=_0x691da3;if(_0x31ac5e)return _0x53f601=_0x31ac5e,_0x2564fb[_0x202367('0x1e')]=_['keys'](db['DeskField'][_0x202367('0x13')]),_0x2564fb['query']=_[_0x202367('0x10')](_0x5d2f19['query']),_0x2564fb[_0x202367('0x38')]=_[_0x202367('0x16')](_0x2564fb[_0x202367('0x1e')],_0x2564fb[_0x202367('0x26')]),_0x48e9ec[_0x202367('0x2')]=_[_0x202367('0x16')](_0x2564fb['model'],qs[_0x202367('0x22')](_0x5d2f19[_0x202367('0x26')][_0x202367('0x22')])),_0x48e9ec[_0x202367('0x2')]=_0x48e9ec['attributes'][_0x202367('0x1')]?_0x48e9ec[_0x202367('0x2')]:_0x2564fb[_0x202367('0x1e')],_0x48e9ec[_0x202367('0x12')]=qs[_0x202367('0x1d')](_0x5d2f19['query'][_0x202367('0x1d')]),_0x48e9ec[_0x202367('0x30')]=qs[_0x202367('0x38')](_[_0x202367('0x34')](_0x5d2f19[_0x202367('0x26')],_0x2564fb[_0x202367('0x38')])),_0x5d2f19[_0x202367('0x26')][_0x202367('0x5')]&&(_0x48e9ec[_0x202367('0x30')]=_[_0x202367('0x11')](_0x48e9ec[_0x202367('0x30')],{[Op['or']]:_[_0x202367('0x36')](_0x48e9ec[_0x202367('0x2')],function(_0x7c91dd){const _0x121b8f=_0x202367,_0x49d816={};return _0x49d816[_0x7c91dd]={[Op[_0x121b8f('0x18')]]:'%'+_0x5d2f19[_0x121b8f('0x26')][_0x121b8f('0x5')]+'%'},_0x49d816;})})),_0x48e9ec=_['merge']({},_0x48e9ec,_0x5d2f19[_0x202367('0x28')]),_0x53f601['getSubjects'](_0x48e9ec);})[_0x691da3('0x23')](function(_0x2ebd34){const _0x1ec0ec=_0x691da3;if(_0x2ebd34)return _0xc9d4c=_0x2ebd34[_0x1ec0ec('0x1')],typeof _0x5d2f19['query'][_0x1ec0ec('0x15')]===_0x1ec0ec('0x37')&&(_0x48e9ec[_0x1ec0ec('0x1f')]=qs[_0x1ec0ec('0x1f')](_0x5d2f19['query'][_0x1ec0ec('0x1f')]),_0x48e9ec[_0x1ec0ec('0x2a')]=qs['offset'](_0x5d2f19[_0x1ec0ec('0x26')][_0x1ec0ec('0x2a')])),_0x53f601[_0x1ec0ec('0x2d')](_0x48e9ec);})[_0x691da3('0x23')](function(_0x30b0f7){if(_0x30b0f7)return _0x30b0f7?{'count':_0xc9d4c,'rows':_0x30b0f7}:null;})[_0x691da3('0x23')](respondWithResult(_0x41a837,null))['catch'](handleError(_0x41a837,null));},exports['getDescriptions']=function(_0x1887d9,_0x3c0ffc){const _0xb0e8=_0xfe64d6;let _0x3e1466={};const _0x11a006={};let _0x4e6b74,_0x545162;return db[_0xb0e8('0xd')]['findOne']({'where':{'id':_0x1887d9[_0xb0e8('0xe')]['id']}})[_0xb0e8('0x23')](handleEntityNotFound(_0x3c0ffc,null))[_0xb0e8('0x23')](function(_0xe8c3d7){const _0x10f706=_0xb0e8;if(_0xe8c3d7)return _0x4e6b74=_0xe8c3d7,_0x11a006['model']=_['keys'](db[_0x10f706('0xb')][_0x10f706('0x13')]),_0x11a006['query']=_['keys'](_0x1887d9[_0x10f706('0x26')]),_0x11a006[_0x10f706('0x38')]=_[_0x10f706('0x16')](_0x11a006[_0x10f706('0x1e')],_0x11a006[_0x10f706('0x26')]),_0x3e1466[_0x10f706('0x2')]=_[_0x10f706('0x16')](_0x11a006[_0x10f706('0x1e')],qs[_0x10f706('0x22')](_0x1887d9[_0x10f706('0x26')][_0x10f706('0x22')])),_0x3e1466['attributes']=_0x3e1466[_0x10f706('0x2')][_0x10f706('0x1')]?_0x3e1466['attributes']:_0x11a006[_0x10f706('0x1e')],_0x3e1466['order']=qs[_0x10f706('0x1d')](_0x1887d9[_0x10f706('0x26')][_0x10f706('0x1d')]),_0x3e1466['where']=qs[_0x10f706('0x38')](_[_0x10f706('0x34')](_0x1887d9[_0x10f706('0x26')],_0x11a006[_0x10f706('0x38')])),_0x1887d9[_0x10f706('0x26')][_0x10f706('0x5')]&&(_0x3e1466[_0x10f706('0x30')]=_[_0x10f706('0x11')](_0x3e1466[_0x10f706('0x30')],{[Op['or']]:_[_0x10f706('0x36')](_0x3e1466['attributes'],function(_0x2e3d45){const _0x4aeb66=_0x10f706,_0x5948b6={};return _0x5948b6[_0x2e3d45]={[Op[_0x4aeb66('0x18')]]:'%'+_0x1887d9[_0x4aeb66('0x26')]['filter']+'%'},_0x5948b6;})})),_0x3e1466=_[_0x10f706('0x11')]({},_0x3e1466,_0x1887d9['options']),_0x4e6b74[_0x10f706('0x8')](_0x3e1466);})[_0xb0e8('0x23')](function(_0x2b149c){const _0x169f2b=_0xb0e8;if(_0x2b149c)return _0x545162=_0x2b149c[_0x169f2b('0x1')],typeof _0x1887d9[_0x169f2b('0x26')][_0x169f2b('0x15')]===_0x169f2b('0x37')&&(_0x3e1466['limit']=qs['limit'](_0x1887d9['query'][_0x169f2b('0x1f')]),_0x3e1466[_0x169f2b('0x2a')]=qs[_0x169f2b('0x2a')](_0x1887d9['query'][_0x169f2b('0x2a')])),_0x4e6b74['getDescriptions'](_0x3e1466);})[_0xb0e8('0x23')](function(_0x105437){if(_0x105437)return _0x105437?{'count':_0x545162,'rows':_0x105437}:null;})[_0xb0e8('0x23')](respondWithResult(_0x3c0ffc,null))[_0xb0e8('0x2b')](handleError(_0x3c0ffc,null));},exports[_0xfe64d6('0x19')]=function(_0x17b3e1,_0x5381bf){const _0x1d7082=_0xfe64d6;let _0xd10faf={};const _0x5bc10f={};let _0x47a4d4,_0x5b8663;return db[_0x1d7082('0xd')][_0x1d7082('0x33')]({'where':{'id':_0x17b3e1[_0x1d7082('0xe')]['id']}})[_0x1d7082('0x23')](handleEntityNotFound(_0x5381bf,null))[_0x1d7082('0x23')](function(_0x4aeffa){const _0x22c8b4=_0x1d7082;if(_0x4aeffa)return _0x47a4d4=_0x4aeffa,_0x5bc10f['model']=_['keys'](db['Tag']['rawAttributes']),_0x5bc10f[_0x22c8b4('0x26')]=_[_0x22c8b4('0x10')](_0x17b3e1[_0x22c8b4('0x26')]),_0x5bc10f[_0x22c8b4('0x38')]=_['intersection'](_0x5bc10f['model'],_0x5bc10f[_0x22c8b4('0x26')]),_0xd10faf[_0x22c8b4('0x2')]=_[_0x22c8b4('0x16')](_0x5bc10f['model'],qs[_0x22c8b4('0x22')](_0x17b3e1[_0x22c8b4('0x26')][_0x22c8b4('0x22')])),_0xd10faf[_0x22c8b4('0x2')]=_0xd10faf[_0x22c8b4('0x2')][_0x22c8b4('0x1')]?_0xd10faf['attributes']:_0x5bc10f['model'],_0xd10faf[_0x22c8b4('0x12')]=qs['sort'](_0x17b3e1['query'][_0x22c8b4('0x1d')]),_0xd10faf['where']=qs[_0x22c8b4('0x38')](_[_0x22c8b4('0x34')](_0x17b3e1[_0x22c8b4('0x26')],_0x5bc10f[_0x22c8b4('0x38')])),_0x17b3e1[_0x22c8b4('0x26')][_0x22c8b4('0x5')]&&(_0xd10faf[_0x22c8b4('0x30')]=_[_0x22c8b4('0x11')](_0xd10faf[_0x22c8b4('0x30')],{[Op['or']]:_[_0x22c8b4('0x36')](_0xd10faf[_0x22c8b4('0x2')],function(_0x43ad61){const _0x5d03e6=_0x22c8b4,_0xbb08b3={};return _0xbb08b3[_0x43ad61]={[Op[_0x5d03e6('0x18')]]:'%'+_0x17b3e1['query'][_0x5d03e6('0x5')]+'%'},_0xbb08b3;})})),_0xd10faf=_[_0x22c8b4('0x11')]({},_0xd10faf,_0x17b3e1[_0x22c8b4('0x28')]),_0x47a4d4[_0x22c8b4('0x19')](_0xd10faf);})[_0x1d7082('0x23')](function(_0x3ae1cf){const _0x3c5e15=_0x1d7082;if(_0x3ae1cf)return _0x5b8663=_0x3ae1cf[_0x3c5e15('0x1')],typeof _0x17b3e1[_0x3c5e15('0x26')][_0x3c5e15('0x15')]==='undefined'&&(_0xd10faf[_0x3c5e15('0x1f')]=qs[_0x3c5e15('0x1f')](_0x17b3e1[_0x3c5e15('0x26')]['limit']),_0xd10faf[_0x3c5e15('0x2a')]=qs['offset'](_0x17b3e1[_0x3c5e15('0x26')][_0x3c5e15('0x2a')])),_0x47a4d4[_0x3c5e15('0x19')](_0xd10faf);})['then'](function(_0x500461){if(_0x500461)return _0x500461?{'count':_0x5b8663,'rows':_0x500461}:null;})[_0x1d7082('0x23')](respondWithResult(_0x5381bf,null))[_0x1d7082('0x2b')](handleError(_0x5381bf,null));},exports[_0xfe64d6('0x35')]=function(_0x5dd382,_0x1b02ab){const _0x50ae5d=_0xfe64d6;return _0x5dd382[_0x50ae5d('0x20')]['id']&&delete _0x5dd382[_0x50ae5d('0x20')]['id'],db[_0x50ae5d('0xd')]['findOne']({'where':{'id':_0x5dd382[_0x50ae5d('0xe')]['id']}})[_0x50ae5d('0x23')](handleEntityNotFound(_0x1b02ab,null))[_0x50ae5d('0x23')](function(_0x1cd905){const _0x45b074=_0x50ae5d;if(_0x1cd905)return _0x1cd905[_0x45b074('0x35')](_0x5dd382[_0x45b074('0x20')][_0x45b074('0x17')]||[]);return null;})[_0x50ae5d('0x23')](respondWithResult(_0x1b02ab,null))['catch'](handleError(_0x1b02ab,null));}; \ No newline at end of file diff --git a/server/api/intDeskConfiguration/intDeskConfiguration.model.js b/server/api/intDeskConfiguration/intDeskConfiguration.model.js index fc68227..2b6944a 100644 --- a/server/api/intDeskConfiguration/intDeskConfiguration.model.js +++ b/server/api/intDeskConfiguration/intDeskConfiguration.model.js @@ -1 +1 @@ -const a235_0x2156=['int_desk_configurations','exports','define','./intDeskConfiguration.attributes'];(function(_0x48bed8,_0x2156e8){const _0x490772=function(_0x1dca42){while(--_0x1dca42){_0x48bed8['push'](_0x48bed8['shift']());}};_0x490772(++_0x2156e8);}(a235_0x2156,0x1bc));const a235_0x4907=function(_0x48bed8,_0x2156e8){_0x48bed8=_0x48bed8-0x0;let _0x490772=a235_0x2156[_0x48bed8];return _0x490772;};const _0x3032c4=a235_0x4907;'use strict';const attributes=require(_0x3032c4('0x3'));module[_0x3032c4('0x1')]=function(_0x1dca42){const _0x5240bc=_0x3032c4,_0x55be33=_0x1dca42[_0x5240bc('0x2')]('DeskConfiguration',attributes,{'tableName':_0x5240bc('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x55be33;}; \ No newline at end of file +const a235_0xbb36=['exports','int_desk_configurations','./intDeskConfiguration.attributes','DeskConfiguration'];(function(_0x565ef9,_0xbb3680){const _0x539401=function(_0x5a64db){while(--_0x5a64db){_0x565ef9['push'](_0x565ef9['shift']());}};_0x539401(++_0xbb3680);}(a235_0xbb36,0x83));const a235_0x5394=function(_0x565ef9,_0xbb3680){_0x565ef9=_0x565ef9-0x0;let _0x539401=a235_0xbb36[_0x565ef9];return _0x539401;};const _0x2a44a7=a235_0x5394;'use strict';const attributes=require(_0x2a44a7('0x3'));module[_0x2a44a7('0x1')]=function(_0x5a64db){const _0x2b1f80=_0x2a44a7,_0x314611=_0x5a64db['define'](_0x2b1f80('0x0'),attributes,{'tableName':_0x2b1f80('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x314611;}; \ No newline at end of file diff --git a/server/api/intDeskField/index.js b/server/api/intDeskField/index.js index 7f711c0..fad75ef 100644 --- a/server/api/intDeskField/index.js +++ b/server/api/intDeskField/index.js @@ -1 +1 @@ -const a236_0x5f28=['destroy','show','create','./intDeskField.controller','update','put','delete','isAuthenticated','/:id','../../components/auth/service','get','express','Router','exports'];(function(_0x3a1bce,_0x5f2897){const _0x1c976c=function(_0x33c0fa){while(--_0x33c0fa){_0x3a1bce['push'](_0x3a1bce['shift']());}};_0x1c976c(++_0x5f2897);}(a236_0x5f28,0xec));const a236_0x1c97=function(_0x3a1bce,_0x5f2897){_0x3a1bce=_0x3a1bce-0x0;let _0x1c976c=a236_0x5f28[_0x3a1bce];return _0x1c976c;};const _0x39b70a=a236_0x1c97;'use strict';const express=require(_0x39b70a('0xd')),router=express[_0x39b70a('0x0')](),auth=require(_0x39b70a('0xb')),controller=require(_0x39b70a('0x5'));router[_0x39b70a('0xc')]('/',auth['isAuthenticated'](),controller['index']),router[_0x39b70a('0xc')](_0x39b70a('0xa'),auth[_0x39b70a('0x9')](),controller[_0x39b70a('0x3')]),router['post']('/',auth['isAuthenticated'](),controller[_0x39b70a('0x4')]),router[_0x39b70a('0x7')]('/:id',auth[_0x39b70a('0x9')](),controller[_0x39b70a('0x6')]),router[_0x39b70a('0x8')](_0x39b70a('0xa'),auth[_0x39b70a('0x9')](),controller[_0x39b70a('0x2')]),module[_0x39b70a('0x1')]=router; \ No newline at end of file +const a236_0x5c8f=['exports','isAuthenticated','../../components/auth/service','./intDeskField.controller','show','update','post','Router','delete','/:id','express','get'];(function(_0x196ed3,_0x5c8fec){const _0x699fe3=function(_0x28f711){while(--_0x28f711){_0x196ed3['push'](_0x196ed3['shift']());}};_0x699fe3(++_0x5c8fec);}(a236_0x5c8f,0xb9));const a236_0x699f=function(_0x196ed3,_0x5c8fec){_0x196ed3=_0x196ed3-0x0;let _0x699fe3=a236_0x5c8f[_0x196ed3];return _0x699fe3;};const _0x4fe8e8=a236_0x699f;'use strict';const express=require(_0x4fe8e8('0x5')),router=express[_0x4fe8e8('0x2')](),auth=require(_0x4fe8e8('0x9')),controller=require(_0x4fe8e8('0xa'));router['get']('/',auth[_0x4fe8e8('0x8')](),controller['index']),router[_0x4fe8e8('0x6')](_0x4fe8e8('0x4'),auth[_0x4fe8e8('0x8')](),controller[_0x4fe8e8('0xb')]),router[_0x4fe8e8('0x1')]('/',auth[_0x4fe8e8('0x8')](),controller['create']),router['put']('/:id',auth[_0x4fe8e8('0x8')](),controller[_0x4fe8e8('0x0')]),router[_0x4fe8e8('0x3')](_0x4fe8e8('0x4'),auth[_0x4fe8e8('0x8')](),controller['destroy']),module[_0x4fe8e8('0x7')]=router; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.attributes.js b/server/api/intDeskField/intDeskField.attributes.js index 098fa1b..f3b4ca7 100644 --- a/server/api/intDeskField/intDeskField.attributes.js +++ b/server/api/intDeskField/intDeskField.attributes.js @@ -1 +1 @@ -const a237_0x1bb6=['keyValue','exports','STRING','BOOLEAN','ENUM','customVariable','string','variable'];(function(_0x50e091,_0x1bb6d9){const _0x13c60a=function(_0x4afb76){while(--_0x4afb76){_0x50e091['push'](_0x50e091['shift']());}};_0x13c60a(++_0x1bb6d9);}(a237_0x1bb6,0xc2));const a237_0x13c6=function(_0x50e091,_0x1bb6d9){_0x50e091=_0x50e091-0x0;let _0x13c60a=a237_0x1bb6[_0x50e091];return _0x13c60a;};const _0x1c3627=a237_0x13c6;'use strict';const Sequelize=require('sequelize');module[_0x1c3627('0x7')]={'type':{'type':Sequelize[_0x1c3627('0x2')](_0x1c3627('0x4'),_0x1c3627('0x5'),_0x1c3627('0x3'),_0x1c3627('0x6')),'defaultValue':'string'},'content':{'type':Sequelize[_0x1c3627('0x0')]},'key':{'type':Sequelize[_0x1c3627('0x0')]},'keyType':{'type':Sequelize['ENUM']('string',_0x1c3627('0x5'),_0x1c3627('0x3'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x1c3627('0x0')]},'nameField':{'type':Sequelize[_0x1c3627('0x0')]},'customField':{'type':Sequelize[_0x1c3627('0x1')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a237_0x5aa0=['exports','string','ENUM','customVariable','variable','sequelize','STRING'];(function(_0x3390d0,_0x5aa0e8){const _0x543958=function(_0x63092e){while(--_0x63092e){_0x3390d0['push'](_0x3390d0['shift']());}};_0x543958(++_0x5aa0e8);}(a237_0x5aa0,0x106));const a237_0x5439=function(_0x3390d0,_0x5aa0e8){_0x3390d0=_0x3390d0-0x0;let _0x543958=a237_0x5aa0[_0x3390d0];return _0x543958;};const _0x3ae335=a237_0x5439;'use strict';const Sequelize=require(_0x3ae335('0x2'));module[_0x3ae335('0x4')]={'type':{'type':Sequelize['ENUM'](_0x3ae335('0x5'),_0x3ae335('0x1'),_0x3ae335('0x0'),'keyValue'),'defaultValue':_0x3ae335('0x5')},'content':{'type':Sequelize[_0x3ae335('0x3')]},'key':{'type':Sequelize[_0x3ae335('0x3')]},'keyType':{'type':Sequelize[_0x3ae335('0x6')](_0x3ae335('0x5'),_0x3ae335('0x1'),_0x3ae335('0x0'))},'keyContent':{'type':Sequelize[_0x3ae335('0x3')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x3ae335('0x3')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x3ae335('0x3')]}}; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.controller.js b/server/api/intDeskField/intDeskField.controller.js index b6c25e5..809552d 100644 --- a/server/api/intDeskField/intDeskField.controller.js +++ b/server/api/intDeskField/intDeskField.controller.js @@ -1 +1 @@ -const a238_0x8e4d=['count','attributes','type','status','catch','rows','../../config/logger','model','findOne','fieldName','filter','key','order','json','body','sequelize','where','index','length','rawAttributes','params','map','include','fields','Content-Range','update','includeAll','like','findAll','offset','options','error','then','name','sendStatus','DeskField','undefined','query','intersection','pick','send','create','destroy','keys','merge','VIRTUAL','sort','show','filters','limit','nolimit'];(function(_0x1cc673,_0x8e4df2){const _0x38a318=function(_0x518f4d){while(--_0x518f4d){_0x1cc673['push'](_0x1cc673['shift']());}};_0x38a318(++_0x8e4df2);}(a238_0x8e4d,0x10e));const a238_0x38a3=function(_0x1cc673,_0x8e4df2){_0x1cc673=_0x1cc673-0x0;let _0x38a318=a238_0x8e4d[_0x1cc673];return _0x38a318;};const _0x406e1f=a238_0x38a3;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x406e1f('0x2a'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x406e1f('0x0'));function respondWithResult(_0x518f4d,_0x41980a){return _0x41980a=_0x41980a||0xc8,function(_0x1350d0){const _0x362fc3=a238_0x38a3;if(_0x1350d0)return _0x518f4d[_0x362fc3('0x27')](_0x41980a)['json'](_0x1350d0);};}function respondWithFilteredResult(_0xa3b69d,_0x5e2710){return function(_0x4ca1af){const _0x4cf6f4=a238_0x38a3;if(_0x4ca1af){const _0x56865f=_0x4ca1af['count'],_0x2444c5=_0x5e2710[_0x4cf6f4('0xe')];let _0x46b40f=_0x5e2710['offset']+_0x5e2710[_0x4cf6f4('0x22')],_0x30d59c;return _0x46b40f>=_0x56865f?(_0x46b40f=_0x56865f,_0x30d59c=0xc8):_0x30d59c=0xce,_0xa3b69d[_0x4cf6f4('0x27')](_0x30d59c),_0xa3b69d['set'](_0x4cf6f4('0x9'),_0x2444c5+'-'+_0x46b40f+'/'+_0x56865f)[_0x4cf6f4('0x31')](_0x4ca1af);}return null;};}function saveUpdates(_0x520a79){return function(_0x2e6a4d){if(_0x2e6a4d)return _0x2e6a4d['update'](_0x520a79)['then'](function(_0x60392e){return _0x60392e;});return null;};}function removeEntity(_0x5db06a){return function(_0x2d913f){const _0x2f4a7d=a238_0x38a3;if(_0x2d913f)return _0x2d913f[_0x2f4a7d('0x1b')]()[_0x2f4a7d('0x11')](function(){const _0x1f1f78=_0x2f4a7d;_0x5db06a[_0x1f1f78('0x27')](0xcc)['end']();});};}function handleEntityNotFound(_0x36acae){return function(_0x5a08e0){const _0x15bcba=a238_0x38a3;return!_0x5a08e0&&_0x36acae[_0x15bcba('0x13')](0x194),_0x5a08e0;};}function handleError(_0x4013cb,_0x7bcfb4){return _0x7bcfb4=_0x7bcfb4||0x1f4,function(_0x1818ab){const _0x559d65=a238_0x38a3;logger[_0x559d65('0x10')](_0x1818ab['stack']),_0x1818ab['name']&&delete _0x1818ab['name'],_0x4013cb[_0x559d65('0x27')](_0x7bcfb4)[_0x559d65('0x19')](_0x1818ab);};}exports[_0x406e1f('0x2')]=function(_0x2d9d4c,_0x59928a){const _0x303dd9=_0x406e1f;let _0x3891b9={};const _0x23e73d={},_0x32cbf0={'count':0x0,'rows':[]},_0x4275ca=_['map'](db[_0x303dd9('0x14')][_0x303dd9('0x4')],function(_0x426f4f){const _0x1d34fc=_0x303dd9;return{'name':_0x426f4f[_0x1d34fc('0x2d')],'type':_0x426f4f[_0x1d34fc('0x26')][_0x1d34fc('0x2f')]};});_0x23e73d['model']=_[_0x303dd9('0x6')](_0x4275ca,_0x303dd9('0x12')),_0x23e73d['query']=_[_0x303dd9('0x1c')](_0x2d9d4c[_0x303dd9('0x16')]),_0x23e73d[_0x303dd9('0x21')]=_[_0x303dd9('0x17')](_0x23e73d[_0x303dd9('0x2b')],_0x23e73d[_0x303dd9('0x16')]),_0x3891b9[_0x303dd9('0x25')]=_[_0x303dd9('0x17')](_0x23e73d['model'],qs[_0x303dd9('0x8')](_0x2d9d4c[_0x303dd9('0x16')][_0x303dd9('0x8')])),_0x3891b9['attributes']=_0x3891b9['attributes']['length']?_0x3891b9[_0x303dd9('0x25')]:_0x23e73d['model'];typeof _0x2d9d4c[_0x303dd9('0x16')][_0x303dd9('0x23')]===_0x303dd9('0x15')&&(_0x3891b9[_0x303dd9('0x22')]=qs[_0x303dd9('0x22')](_0x2d9d4c[_0x303dd9('0x16')][_0x303dd9('0x22')]),_0x3891b9[_0x303dd9('0xe')]=qs[_0x303dd9('0xe')](_0x2d9d4c['query'][_0x303dd9('0xe')]));_0x3891b9[_0x303dd9('0x30')]=qs[_0x303dd9('0x1f')](_0x2d9d4c[_0x303dd9('0x16')][_0x303dd9('0x1f')]),_0x3891b9[_0x303dd9('0x1')]=qs[_0x303dd9('0x21')](_[_0x303dd9('0x18')](_0x2d9d4c['query'],_0x23e73d[_0x303dd9('0x21')]),_0x4275ca);_0x2d9d4c[_0x303dd9('0x16')][_0x303dd9('0x2e')]&&(_0x3891b9[_0x303dd9('0x1')]=_[_0x303dd9('0x1d')](_0x3891b9['where'],{[Op['or']]:_[_0x303dd9('0x6')](_0x4275ca,function(_0x3b851d){const _0x1aa482=_0x303dd9;if(_0x3b851d[_0x1aa482('0x26')]!==_0x1aa482('0x1e')){const _0x2dca8d={};return _0x2dca8d[_0x3b851d[_0x1aa482('0x12')]]={[Op[_0x1aa482('0xc')]]:'%'+_0x2d9d4c['query']['filter']+'%'},_0x2dca8d;}})}));_0x3891b9=_[_0x303dd9('0x1d')]({},_0x3891b9,_0x2d9d4c['options']);const _0xbb7026={'where':_0x3891b9['where']};return db[_0x303dd9('0x14')][_0x303dd9('0x24')](_0xbb7026)[_0x303dd9('0x11')](function(_0x10d034){const _0x196c24=_0x303dd9;return _0x32cbf0[_0x196c24('0x24')]=_0x10d034,_0x2d9d4c[_0x196c24('0x16')][_0x196c24('0xb')]&&(_0x3891b9[_0x196c24('0x7')]=[{'all':!![]}]),db[_0x196c24('0x14')][_0x196c24('0xd')](_0x3891b9);})[_0x303dd9('0x11')](function(_0x67ab46){const _0x5d0bb8=_0x303dd9;return _0x32cbf0[_0x5d0bb8('0x29')]=_0x67ab46,_0x32cbf0;})['then'](respondWithFilteredResult(_0x59928a,_0x3891b9))['catch'](handleError(_0x59928a,null));},exports[_0x406e1f('0x20')]=function(_0x5cc879,_0x49d98e){const _0x4a2c03=_0x406e1f;let _0x325caa={'raw':!![],'where':{'id':_0x5cc879[_0x4a2c03('0x5')]['id']}};const _0x259639={};return _0x259639['model']=_['keys'](db[_0x4a2c03('0x14')][_0x4a2c03('0x4')]),_0x259639[_0x4a2c03('0x16')]=_[_0x4a2c03('0x1c')](_0x5cc879[_0x4a2c03('0x16')]),_0x259639[_0x4a2c03('0x21')]=_[_0x4a2c03('0x17')](_0x259639[_0x4a2c03('0x2b')],_0x259639[_0x4a2c03('0x16')]),_0x325caa['attributes']=_[_0x4a2c03('0x17')](_0x259639[_0x4a2c03('0x2b')],qs['fields'](_0x5cc879[_0x4a2c03('0x16')][_0x4a2c03('0x8')])),_0x325caa['attributes']=_0x325caa[_0x4a2c03('0x25')][_0x4a2c03('0x3')]?_0x325caa['attributes']:_0x259639[_0x4a2c03('0x2b')],_0x5cc879[_0x4a2c03('0x16')][_0x4a2c03('0xb')]&&(_0x325caa[_0x4a2c03('0x7')]=[{'all':!![]}]),_0x325caa=_[_0x4a2c03('0x1d')]({},_0x325caa,_0x5cc879[_0x4a2c03('0xf')]),db[_0x4a2c03('0x14')][_0x4a2c03('0x2c')](_0x325caa)[_0x4a2c03('0x11')](handleEntityNotFound(_0x49d98e,null))[_0x4a2c03('0x11')](respondWithResult(_0x49d98e,null))['catch'](handleError(_0x49d98e,null));},exports[_0x406e1f('0x1a')]=function(_0x472f3a,_0x3024f0){const _0xc605e7=_0x406e1f;return db[_0xc605e7('0x14')][_0xc605e7('0x1a')](_0x472f3a[_0xc605e7('0x32')],{})[_0xc605e7('0x11')](respondWithResult(_0x3024f0,0xc9))[_0xc605e7('0x28')](handleError(_0x3024f0,null));},exports[_0x406e1f('0xa')]=function(_0x2999e6,_0x1e78a1){const _0x109b2a=_0x406e1f;return _0x2999e6[_0x109b2a('0x32')]['id']&&delete _0x2999e6['body']['id'],db[_0x109b2a('0x14')][_0x109b2a('0x2c')]({'where':{'id':_0x2999e6[_0x109b2a('0x5')]['id']}})[_0x109b2a('0x11')](handleEntityNotFound(_0x1e78a1,null))[_0x109b2a('0x11')](saveUpdates(_0x2999e6[_0x109b2a('0x32')],null))[_0x109b2a('0x11')](respondWithResult(_0x1e78a1,null))[_0x109b2a('0x28')](handleError(_0x1e78a1,null));},exports['destroy']=function(_0x45d6bd,_0x566a1a){const _0x314a75=_0x406e1f;return db[_0x314a75('0x14')]['findOne']({'where':{'id':_0x45d6bd[_0x314a75('0x5')]['id']}})[_0x314a75('0x11')](handleEntityNotFound(_0x566a1a,null))[_0x314a75('0x11')](removeEntity(_0x566a1a,null))[_0x314a75('0x28')](handleError(_0x566a1a,null));}; \ No newline at end of file +const a238_0x18a9=['key','error','rows','status','send','end','includeAll','DeskField','merge','limit','length','type','options','fieldName','attributes','body','set','nolimit','catch','create','rawAttributes','offset','keys','order','filter','include','findOne','sendStatus','count','query','sequelize','intersection','model','json','pick','filters','then','sort','params','name','update','stack','destroy','fields','../../mysqldb','undefined','show','like','../../components/parsers/qs','where','index','../../config/logger'];(function(_0x324ba9,_0x18a9fe){const _0x36bd5a=function(_0x45fd4a){while(--_0x45fd4a){_0x324ba9['push'](_0x324ba9['shift']());}};_0x36bd5a(++_0x18a9fe);}(a238_0x18a9,0x143));const a238_0x36bd=function(_0x324ba9,_0x18a9fe){_0x324ba9=_0x324ba9-0x0;let _0x36bd5a=a238_0x18a9[_0x324ba9];return _0x36bd5a;};const _0x47ba83=a238_0x36bd;'use strict';const _=require('lodash'),qs=require(_0x47ba83('0x25')),logger=require(_0x47ba83('0x28'))('api'),db=require(_0x47ba83('0x21'))['db'],{Op}=require(_0x47ba83('0x13'));function respondWithResult(_0x45fd4a,_0x438980){return _0x438980=_0x438980||0xc8,function(_0x3b7bcd){const _0x5c883f=a238_0x36bd;if(_0x3b7bcd)return _0x45fd4a[_0x5c883f('0x2c')](_0x438980)[_0x5c883f('0x16')](_0x3b7bcd);};}function respondWithFilteredResult(_0x22ca60,_0x395e1b){return function(_0x2fc813){const _0x561b00=a238_0x36bd;if(_0x2fc813){const _0x30ce38=_0x2fc813[_0x561b00('0x11')],_0xf78aeb=_0x395e1b[_0x561b00('0xa')];let _0x46604f=_0x395e1b[_0x561b00('0xa')]+_0x395e1b['limit'],_0x4c1782;return _0x46604f>=_0x30ce38?(_0x46604f=_0x30ce38,_0x4c1782=0xc8):_0x4c1782=0xce,_0x22ca60[_0x561b00('0x2c')](_0x4c1782),_0x22ca60[_0x561b00('0x5')]('Content-Range',_0xf78aeb+'-'+_0x46604f+'/'+_0x30ce38)[_0x561b00('0x16')](_0x2fc813);}return null;};}function saveUpdates(_0x36180c){return function(_0x3f8bf0){const _0x2ace4b=a238_0x36bd;if(_0x3f8bf0)return _0x3f8bf0[_0x2ace4b('0x1d')](_0x36180c)[_0x2ace4b('0x19')](function(_0x123114){return _0x123114;});return null;};}function removeEntity(_0x392f40){return function(_0x1bf3e1){const _0x55549d=a238_0x36bd;if(_0x1bf3e1)return _0x1bf3e1[_0x55549d('0x1f')]()[_0x55549d('0x19')](function(){const _0x5bf015=_0x55549d;_0x392f40[_0x5bf015('0x2c')](0xcc)[_0x5bf015('0x2e')]();});};}function handleEntityNotFound(_0x576982){return function(_0x474e55){const _0xb1145e=a238_0x36bd;return!_0x474e55&&_0x576982[_0xb1145e('0x10')](0x194),_0x474e55;};}function handleError(_0xffafca,_0x4ec9b0){return _0x4ec9b0=_0x4ec9b0||0x1f4,function(_0x4031c1){const _0x311305=a238_0x36bd;logger[_0x311305('0x2a')](_0x4031c1[_0x311305('0x1e')]),_0x4031c1[_0x311305('0x1c')]&&delete _0x4031c1['name'],_0xffafca['status'](_0x4ec9b0)[_0x311305('0x2d')](_0x4031c1);};}exports[_0x47ba83('0x27')]=function(_0x16c867,_0x29411e){const _0x49ff68=_0x47ba83;let _0x58e230={};const _0x5c4f95={},_0x547569={'count':0x0,'rows':[]},_0x2f5d24=_['map'](db[_0x49ff68('0x30')][_0x49ff68('0x9')],function(_0x46192c){const _0x435f1b=_0x49ff68;return{'name':_0x46192c[_0x435f1b('0x2')],'type':_0x46192c[_0x435f1b('0x0')][_0x435f1b('0x29')]};});_0x5c4f95[_0x49ff68('0x15')]=_['map'](_0x2f5d24,_0x49ff68('0x1c')),_0x5c4f95[_0x49ff68('0x12')]=_[_0x49ff68('0xb')](_0x16c867[_0x49ff68('0x12')]),_0x5c4f95[_0x49ff68('0x18')]=_[_0x49ff68('0x14')](_0x5c4f95[_0x49ff68('0x15')],_0x5c4f95[_0x49ff68('0x12')]),_0x58e230[_0x49ff68('0x3')]=_[_0x49ff68('0x14')](_0x5c4f95[_0x49ff68('0x15')],qs[_0x49ff68('0x20')](_0x16c867[_0x49ff68('0x12')][_0x49ff68('0x20')])),_0x58e230[_0x49ff68('0x3')]=_0x58e230[_0x49ff68('0x3')][_0x49ff68('0x33')]?_0x58e230[_0x49ff68('0x3')]:_0x5c4f95[_0x49ff68('0x15')];typeof _0x16c867[_0x49ff68('0x12')][_0x49ff68('0x6')]===_0x49ff68('0x22')&&(_0x58e230[_0x49ff68('0x32')]=qs[_0x49ff68('0x32')](_0x16c867[_0x49ff68('0x12')][_0x49ff68('0x32')]),_0x58e230[_0x49ff68('0xa')]=qs['offset'](_0x16c867[_0x49ff68('0x12')][_0x49ff68('0xa')]));_0x58e230[_0x49ff68('0xc')]=qs['sort'](_0x16c867['query'][_0x49ff68('0x1a')]),_0x58e230[_0x49ff68('0x26')]=qs['filters'](_[_0x49ff68('0x17')](_0x16c867['query'],_0x5c4f95[_0x49ff68('0x18')]),_0x2f5d24);_0x16c867[_0x49ff68('0x12')][_0x49ff68('0xd')]&&(_0x58e230[_0x49ff68('0x26')]=_[_0x49ff68('0x31')](_0x58e230[_0x49ff68('0x26')],{[Op['or']]:_['map'](_0x2f5d24,function(_0x3885a9){const _0x2d3b5b=_0x49ff68;if(_0x3885a9[_0x2d3b5b('0x0')]!=='VIRTUAL'){const _0x2e48a7={};return _0x2e48a7[_0x3885a9[_0x2d3b5b('0x1c')]]={[Op[_0x2d3b5b('0x24')]]:'%'+_0x16c867[_0x2d3b5b('0x12')][_0x2d3b5b('0xd')]+'%'},_0x2e48a7;}})}));_0x58e230=_[_0x49ff68('0x31')]({},_0x58e230,_0x16c867[_0x49ff68('0x1')]);const _0x42dfd2={'where':_0x58e230[_0x49ff68('0x26')]};return db[_0x49ff68('0x30')][_0x49ff68('0x11')](_0x42dfd2)['then'](function(_0x413658){const _0x5e8165=_0x49ff68;return _0x547569[_0x5e8165('0x11')]=_0x413658,_0x16c867[_0x5e8165('0x12')][_0x5e8165('0x2f')]&&(_0x58e230[_0x5e8165('0xe')]=[{'all':!![]}]),db[_0x5e8165('0x30')]['findAll'](_0x58e230);})[_0x49ff68('0x19')](function(_0x419438){const _0x38e357=_0x49ff68;return _0x547569[_0x38e357('0x2b')]=_0x419438,_0x547569;})['then'](respondWithFilteredResult(_0x29411e,_0x58e230))[_0x49ff68('0x7')](handleError(_0x29411e,null));},exports[_0x47ba83('0x23')]=function(_0xebedd3,_0x5e04fc){const _0x4ce6d1=_0x47ba83;let _0x63cd6b={'raw':!![],'where':{'id':_0xebedd3[_0x4ce6d1('0x1b')]['id']}};const _0x4bfde7={};return _0x4bfde7['model']=_[_0x4ce6d1('0xb')](db[_0x4ce6d1('0x30')]['rawAttributes']),_0x4bfde7[_0x4ce6d1('0x12')]=_[_0x4ce6d1('0xb')](_0xebedd3['query']),_0x4bfde7[_0x4ce6d1('0x18')]=_[_0x4ce6d1('0x14')](_0x4bfde7['model'],_0x4bfde7['query']),_0x63cd6b[_0x4ce6d1('0x3')]=_['intersection'](_0x4bfde7[_0x4ce6d1('0x15')],qs[_0x4ce6d1('0x20')](_0xebedd3[_0x4ce6d1('0x12')][_0x4ce6d1('0x20')])),_0x63cd6b[_0x4ce6d1('0x3')]=_0x63cd6b[_0x4ce6d1('0x3')][_0x4ce6d1('0x33')]?_0x63cd6b[_0x4ce6d1('0x3')]:_0x4bfde7[_0x4ce6d1('0x15')],_0xebedd3['query'][_0x4ce6d1('0x2f')]&&(_0x63cd6b['include']=[{'all':!![]}]),_0x63cd6b=_[_0x4ce6d1('0x31')]({},_0x63cd6b,_0xebedd3[_0x4ce6d1('0x1')]),db[_0x4ce6d1('0x30')]['findOne'](_0x63cd6b)['then'](handleEntityNotFound(_0x5e04fc,null))[_0x4ce6d1('0x19')](respondWithResult(_0x5e04fc,null))[_0x4ce6d1('0x7')](handleError(_0x5e04fc,null));},exports[_0x47ba83('0x8')]=function(_0x4e46c0,_0x3c2848){const _0x55df50=_0x47ba83;return db[_0x55df50('0x30')][_0x55df50('0x8')](_0x4e46c0[_0x55df50('0x4')],{})[_0x55df50('0x19')](respondWithResult(_0x3c2848,0xc9))[_0x55df50('0x7')](handleError(_0x3c2848,null));},exports[_0x47ba83('0x1d')]=function(_0x48cd32,_0x2ceaa9){const _0x29c4ce=_0x47ba83;return _0x48cd32[_0x29c4ce('0x4')]['id']&&delete _0x48cd32[_0x29c4ce('0x4')]['id'],db[_0x29c4ce('0x30')]['findOne']({'where':{'id':_0x48cd32[_0x29c4ce('0x1b')]['id']}})[_0x29c4ce('0x19')](handleEntityNotFound(_0x2ceaa9,null))[_0x29c4ce('0x19')](saveUpdates(_0x48cd32['body'],null))[_0x29c4ce('0x19')](respondWithResult(_0x2ceaa9,null))[_0x29c4ce('0x7')](handleError(_0x2ceaa9,null));},exports[_0x47ba83('0x1f')]=function(_0x1ff53d,_0x4a7fa6){const _0x339944=_0x47ba83;return db['DeskField'][_0x339944('0xf')]({'where':{'id':_0x1ff53d[_0x339944('0x1b')]['id']}})[_0x339944('0x19')](handleEntityNotFound(_0x4a7fa6,null))[_0x339944('0x19')](removeEntity(_0x4a7fa6,null))['catch'](handleError(_0x4a7fa6,null));}; \ No newline at end of file diff --git a/server/api/intDeskField/intDeskField.model.js b/server/api/intDeskField/intDeskField.model.js index 032338f..0bc64ea 100644 --- a/server/api/intDeskField/intDeskField.model.js +++ b/server/api/intDeskField/intDeskField.model.js @@ -1 +1 @@ -const a239_0x4875=['desk_unique_index','exports','int_desk_fields','./intDeskField.attributes','FieldId'];(function(_0x3b64eb,_0x487517){const _0x137134=function(_0x4f3a69){while(--_0x4f3a69){_0x3b64eb['push'](_0x3b64eb['shift']());}};_0x137134(++_0x487517);}(a239_0x4875,0x133));const a239_0x1371=function(_0x3b64eb,_0x487517){_0x3b64eb=_0x3b64eb-0x0;let _0x137134=a239_0x4875[_0x3b64eb];return _0x137134;};const _0x55b876=a239_0x1371;'use strict';const attributes=require(_0x55b876('0x1'));module[_0x55b876('0x4')]=function(_0x4f3a69){const _0x374101=_0x55b876,_0x22191d=_0x4f3a69['define']('DeskField',attributes,{'tableName':_0x374101('0x0'),'paranoid':![],'indexes':[{'name':_0x374101('0x3'),'fields':['idField',_0x374101('0x2')],'unique':!![]}],'timestamps':!![]});return _0x22191d;}; \ No newline at end of file +const a239_0x2485=['define','./intDeskField.attributes','FieldId','int_desk_fields','DeskField','desk_unique_index'];(function(_0x54ad52,_0x2485fd){const _0x40a2eb=function(_0x23de53){while(--_0x23de53){_0x54ad52['push'](_0x54ad52['shift']());}};_0x40a2eb(++_0x2485fd);}(a239_0x2485,0xde));const a239_0x40a2=function(_0x54ad52,_0x2485fd){_0x54ad52=_0x54ad52-0x0;let _0x40a2eb=a239_0x2485[_0x54ad52];return _0x40a2eb;};const _0x4b43e2=a239_0x40a2;'use strict';const attributes=require(_0x4b43e2('0x1'));module['exports']=function(_0x23de53){const _0x16c5e9=_0x4b43e2,_0x432034=_0x23de53[_0x16c5e9('0x0')](_0x16c5e9('0x4'),attributes,{'tableName':_0x16c5e9('0x3'),'paranoid':![],'indexes':[{'name':_0x16c5e9('0x5'),'fields':['idField',_0x16c5e9('0x2')],'unique':!![]}],'timestamps':!![]});return _0x432034;}; \ No newline at end of file diff --git a/server/api/intDynamics365Account/index.js b/server/api/intDynamics365Account/index.js index 95842a9..2cf64e7 100644 --- a/server/api/intDynamics365Account/index.js +++ b/server/api/intDynamics365Account/index.js @@ -1 +1 @@ -const a240_0x127c=['show','index','../../components/auth/service','./intDynamics365Account.controller','post','express','Router','getConfigurations','addConfiguration','getFields','/:id/configurations','isAuthenticated','/:id/fields','get','destroy','put','delete','create','/:id'];(function(_0x56dfe9,_0x127c5a){const _0x845c3a=function(_0x1533da){while(--_0x1533da){_0x56dfe9['push'](_0x56dfe9['shift']());}};_0x845c3a(++_0x127c5a);}(a240_0x127c,0x16e));const a240_0x845c=function(_0x56dfe9,_0x127c5a){_0x56dfe9=_0x56dfe9-0x0;let _0x845c3a=a240_0x127c[_0x56dfe9];return _0x845c3a;};const _0x1d6c5=a240_0x845c;'use strict';const express=require(_0x1d6c5('0x0')),router=express[_0x1d6c5('0x1')](),auth=require(_0x1d6c5('0x10')),controller=require(_0x1d6c5('0x11'));router['get']('/',auth[_0x1d6c5('0x6')](),controller[_0x1d6c5('0xf')]),router['get'](_0x1d6c5('0xd'),auth[_0x1d6c5('0x6')](),controller[_0x1d6c5('0xe')]),router[_0x1d6c5('0x8')](_0x1d6c5('0x5'),auth[_0x1d6c5('0x6')](),controller[_0x1d6c5('0x2')]),router['get'](_0x1d6c5('0x7'),auth[_0x1d6c5('0x6')](),controller[_0x1d6c5('0x4')]),router[_0x1d6c5('0x12')]('/',auth[_0x1d6c5('0x6')](),controller[_0x1d6c5('0xc')]),router[_0x1d6c5('0x12')](_0x1d6c5('0x5'),auth[_0x1d6c5('0x6')](),controller[_0x1d6c5('0x3')]),router[_0x1d6c5('0xa')](_0x1d6c5('0xd'),auth[_0x1d6c5('0x6')](),controller['update']),router[_0x1d6c5('0xb')]('/:id',auth[_0x1d6c5('0x6')](),controller[_0x1d6c5('0x9')]),module['exports']=router; \ No newline at end of file +const a240_0x5860=['show','/:id/configurations','create','delete','exports','post','getFields','/:id/fields','express','get','./intDynamics365Account.controller','put','isAuthenticated','Router','destroy','/:id','update'];(function(_0x1bdc86,_0x5860cc){const _0x3dd77a=function(_0x265731){while(--_0x265731){_0x1bdc86['push'](_0x1bdc86['shift']());}};_0x3dd77a(++_0x5860cc);}(a240_0x5860,0xb0));const a240_0x3dd7=function(_0x1bdc86,_0x5860cc){_0x1bdc86=_0x1bdc86-0x0;let _0x3dd77a=a240_0x5860[_0x1bdc86];return _0x3dd77a;};const _0x3cb829=a240_0x3dd7;'use strict';const express=require(_0x3cb829('0x2')),router=express[_0x3cb829('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x3cb829('0x4'));router['get']('/',auth[_0x3cb829('0x6')](),controller['index']),router[_0x3cb829('0x3')](_0x3cb829('0x9'),auth[_0x3cb829('0x6')](),controller[_0x3cb829('0xb')]),router[_0x3cb829('0x3')](_0x3cb829('0xc'),auth[_0x3cb829('0x6')](),controller['getConfigurations']),router['get'](_0x3cb829('0x1'),auth[_0x3cb829('0x6')](),controller[_0x3cb829('0x0')]),router[_0x3cb829('0x10')]('/',auth[_0x3cb829('0x6')](),controller[_0x3cb829('0xd')]),router[_0x3cb829('0x10')](_0x3cb829('0xc'),auth[_0x3cb829('0x6')](),controller['addConfiguration']),router[_0x3cb829('0x5')](_0x3cb829('0x9'),auth[_0x3cb829('0x6')](),controller[_0x3cb829('0xa')]),router[_0x3cb829('0xe')](_0x3cb829('0x9'),auth[_0x3cb829('0x6')](),controller[_0x3cb829('0x8')]),module[_0x3cb829('0xf')]=router; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.attributes.js b/server/api/intDynamics365Account/intDynamics365Account.attributes.js index 7d759f7..03babf5 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.attributes.js +++ b/server/api/intDynamics365Account/intDynamics365Account.attributes.js @@ -1 +1 @@ -const a241_0x525e=['STRING','exports'];(function(_0x51fbe2,_0x525e1a){const _0xd1ab9a=function(_0x53e80b){while(--_0x53e80b){_0x51fbe2['push'](_0x51fbe2['shift']());}};_0xd1ab9a(++_0x525e1a);}(a241_0x525e,0xa9));const a241_0xd1ab=function(_0x51fbe2,_0x525e1a){_0x51fbe2=_0x51fbe2-0x0;let _0xd1ab9a=a241_0x525e[_0x51fbe2];return _0xd1ab9a;};const _0x8b4cd3=a241_0xd1ab;'use strict';const Sequelize=require('sequelize');module[_0x8b4cd3('0x0')]={'name':{'type':Sequelize[_0x8b4cd3('0x1')]},'username':{'type':Sequelize[_0x8b4cd3('0x1')]},'password':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize['STRING']},'tenantId':{'type':Sequelize[_0x8b4cd3('0x1')]},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize[_0x8b4cd3('0x1')]},'serverUrl':{'type':Sequelize[_0x8b4cd3('0x1')]},'description':{'type':Sequelize[_0x8b4cd3('0x1')]}}; \ No newline at end of file +const a241_0x39b3=['sequelize','exports','STRING'];(function(_0xb2adf4,_0x39b315){const _0x46b172=function(_0x416bc9){while(--_0x416bc9){_0xb2adf4['push'](_0xb2adf4['shift']());}};_0x46b172(++_0x39b315);}(a241_0x39b3,0xcb));const a241_0x46b1=function(_0xb2adf4,_0x39b315){_0xb2adf4=_0xb2adf4-0x0;let _0x46b172=a241_0x39b3[_0xb2adf4];return _0x46b172;};const _0x2fc988=a241_0x46b1;'use strict';const Sequelize=require(_0x2fc988('0x1'));module[_0x2fc988('0x2')]={'name':{'type':Sequelize[_0x2fc988('0x0')]},'username':{'type':Sequelize[_0x2fc988('0x0')]},'password':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize['STRING']},'tenantId':{'type':Sequelize['STRING']},'clientId':{'type':Sequelize['STRING']},'clientSecret':{'type':Sequelize[_0x2fc988('0x0')]},'serverUrl':{'type':Sequelize[_0x2fc988('0x0')]},'description':{'type':Sequelize[_0x2fc988('0x0')]}}; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.controller.js b/server/api/intDynamics365Account/intDynamics365Account.controller.js index 3d36768..e5fc85d 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.controller.js +++ b/server/api/intDynamics365Account/intDynamics365Account.controller.js @@ -1 +1 @@ -const a242_0x512a=['versionnumber','create','getConfigurations','type','model',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','addConfiguration','Incident','lastonholdtime','OptionSet','merge','customeridyominame',')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?','params','../../mysqldb','caseorigincode','/oauth2/token','map','PhoneCall','query','../../config/logger','send','fieldName','sendStatus','lastIndexOf','Label','owneridyominame','set','numberofchildincidents','subject',')/Microsoft.Dynamics.CRM.','prioritycodename','destroy','Dynamics365Account','createdbyyominame','traversedpath','owneridtype','Content-Range','test','DecimalAttributeMetadata','productidname','slainvokedidname','clientSecret','followupby','remove','like','include','$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','Value','intersection','timezoneruleversionnumber','util','catch','rows','parentcaseidname','LogicalName','substring','push','description','nolimit','stack','contractdetailidname','entitlementidname','statusCode','MemoAttributeMetadata','body','length','forEach','firstresponsebykpiidname','primarycontactidname','includes','tenantId','emailaddress','Attributes','where','createdonbehalfbyname','primarycontactidyominame','modifiedbyexternalpartyname','PicklistAttributeMetadata','GET','modifiedbyname','ticketnumber','Dynamics365Field','findOne','msdyn_iotalertname','ownerid','AccountId','MetadataId','fields','api','pick','sequelize','username','concat','customeridname','keys','directioncode','masteridname','BigIntAttributeMetadata','name','importsequencenumber','resolveby','billedserviceunits','resolvebykpiidname','createdon','Wrong\x20credentials','responsiblecontactidname','responseby','createdbyexternalpartyname','show','getSubjects','false','phonenumber','customeridtype','@odata.type','Options','getFields','TrueOption','sort','../../components/integrations/configuration','../../components/parsers/qs','error','modifiedbyexternalpartyyominame','Subjects','subjectidname','json','filters','attributes','influencescore','sentimentvalue','update','?$select=DisplayName,LogicalName','password','statuscode','phonecall_activity_parties','Bearer\x20','status','key','kbarticleidname','modifiedonbehalfbyname','entityimage_timestamp','customerid','4.0','createdbyname','Descriptions','limit','count','DisplayName','socialprofileidname','then','Dynamics365Configuration','filter','UserLocalizedLabel','findAll','owneridname','all','request-promise-native',')/Attributes(','channel','VIRTUAL','FalseOption','clientId','modifiedonbehalfbyyominame','%s/api/data/v9.0/','createdbyexternalpartyyominame','value','regardingobjectid','offset','includeAll','format','isNil','transactioncurrencyidname','remoteUri','options','undefined','accountidname','EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27','slice','EntityNameAttributeMetadata','EntityDefinitions(','entityimage_url','true','exchangerate'];(function(_0x97bf87,_0x512ab6){const _0x14d24c=function(_0x591a8d){while(--_0x591a8d){_0x97bf87['push'](_0x97bf87['shift']());}};_0x14d24c(++_0x512ab6);}(a242_0x512a,0x178));const a242_0x14d2=function(_0x97bf87,_0x512ab6){_0x97bf87=_0x97bf87-0x0;let _0x14d24c=a242_0x512a[_0x97bf87];return _0x14d24c;};const _0x3d9930=a242_0x14d2;'use strict';const rp=require(_0x3d9930('0x92')),util=require(_0x3d9930('0x29')),_=require('lodash'),qs=require(_0x3d9930('0x6e')),logger=require(_0x3d9930('0xa'))(_0x3d9930('0x4f')),db=require(_0x3d9930('0x4'))['db'],{Op}=require(_0x3d9930('0x51')),integrations=require(_0x3d9930('0x6d'));function respondWithResult(_0x591a8d,_0x184448){return _0x184448=_0x184448||0xc8,function(_0x899951){const _0x2fad56=a242_0x14d2;if(_0x899951)return _0x591a8d[_0x2fad56('0x7e')](_0x184448)[_0x2fad56('0x73')](_0x899951);};}function respondWithFilteredResult(_0xd2c73e,_0x55a316){return function(_0x290449){const _0x289077=a242_0x14d2;if(_0x290449){const _0x491510=_0x290449[_0x289077('0x88')],_0x2c782a=_0x55a316[_0x289077('0x9d')];let _0x1f73f4=_0x55a316[_0x289077('0x9d')]+_0x55a316[_0x289077('0x87')],_0x2a95a0;return _0x1f73f4>=_0x491510?(_0x1f73f4=_0x491510,_0x2a95a0=0xc8):_0x2a95a0=0xce,_0xd2c73e[_0x289077('0x7e')](_0x2a95a0),_0xd2c73e[_0x289077('0x11')](_0x289077('0x1b'),_0x2c782a+'-'+_0x1f73f4+'/'+_0x491510)[_0x289077('0x73')](_0x290449);}return null;};}function saveUpdates(_0x29345a){return function(_0x3e36f0){const _0x1725f9=a242_0x14d2;if(_0x3e36f0)return _0x3e36f0[_0x1725f9('0x78')](_0x29345a)[_0x1725f9('0x8b')](function(_0x160c99){return _0x160c99;});return null;};}function removeEntity(_0x113fee){return function(_0x2f3b11){const _0xab318f=a242_0x14d2;if(_0x2f3b11)return _0x2f3b11[_0xab318f('0x16')]()[_0xab318f('0x8b')](function(){const _0x3e148f=_0xab318f;_0x113fee[_0x3e148f('0x7e')](0xcc)['end']();});};}function handleEntityNotFound(_0x305d54){return function(_0x5c1c44){const _0xacb5e1=a242_0x14d2;return!_0x5c1c44&&_0x305d54[_0xacb5e1('0xd')](0x194),_0x5c1c44;};}function handleError(_0x15286d,_0x179f9d){return _0x179f9d=_0x179f9d||0x1f4,function(_0x4c9ac6){const _0x793e7e=a242_0x14d2;logger[_0x793e7e('0x6f')](_0x4c9ac6[_0x793e7e('0x32')]),_0x4c9ac6[_0x793e7e('0x59')]&&delete _0x4c9ac6['name'],_0x15286d[_0x793e7e('0x7e')](_0x179f9d)['send'](_0x4c9ac6);};}exports['index']=function(_0x384fbd,_0x4b4bc4){const _0x42cd08=_0x3d9930;let _0xabe752={};const _0x20cb74={},_0x63383={'count':0x0,'rows':[]},_0x48774d=_[_0x42cd08('0x7')](db['Dynamics365Account']['rawAttributes'],function(_0x339429){const _0x2e9a96=_0x42cd08;return{'name':_0x339429[_0x2e9a96('0xc')],'type':_0x339429[_0x2e9a96('0xb0')][_0x2e9a96('0x7f')]};});_0x20cb74['model']=_[_0x42cd08('0x7')](_0x48774d,'name'),_0x20cb74[_0x42cd08('0x9')]=_[_0x42cd08('0x55')](_0x384fbd[_0x42cd08('0x9')]),_0x20cb74[_0x42cd08('0x74')]=_['intersection'](_0x20cb74[_0x42cd08('0xb1')],_0x20cb74[_0x42cd08('0x9')]),_0xabe752[_0x42cd08('0x75')]=_['intersection'](_0x20cb74[_0x42cd08('0xb1')],qs[_0x42cd08('0x4e')](_0x384fbd['query'][_0x42cd08('0x4e')])),_0xabe752[_0x42cd08('0x75')]=_0xabe752[_0x42cd08('0x75')][_0x42cd08('0x38')]?_0xabe752[_0x42cd08('0x75')]:_0x20cb74[_0x42cd08('0xb1')];typeof _0x384fbd[_0x42cd08('0x9')]['nolimit']==='undefined'&&(_0xabe752[_0x42cd08('0x87')]=qs[_0x42cd08('0x87')](_0x384fbd[_0x42cd08('0x9')][_0x42cd08('0x87')]),_0xabe752[_0x42cd08('0x9d')]=qs[_0x42cd08('0x9d')](_0x384fbd['query']['offset']));_0xabe752['order']=qs[_0x42cd08('0x6c')](_0x384fbd[_0x42cd08('0x9')]['sort']),_0xabe752[_0x42cd08('0x40')]=qs[_0x42cd08('0x74')](_[_0x42cd08('0x50')](_0x384fbd['query'],_0x20cb74['filters']),_0x48774d);_0x384fbd[_0x42cd08('0x9')]['filter']&&(_0xabe752['where']=_[_0x42cd08('0x0')](_0xabe752[_0x42cd08('0x40')],{[Op['or']]:_[_0x42cd08('0x7')](_0x48774d,function(_0x812ee){const _0x1abcbb=_0x42cd08;if(_0x812ee['type']!==_0x1abcbb('0x95')){const _0x41f001={};return _0x41f001[_0x812ee['name']]={[Op[_0x1abcbb('0x23')]]:'%'+_0x384fbd[_0x1abcbb('0x9')][_0x1abcbb('0x8d')]+'%'},_0x41f001;}})}));_0xabe752=_['merge']({},_0xabe752,_0x384fbd[_0x42cd08('0xa3')]);const _0x3e0df4={'where':_0xabe752[_0x42cd08('0x40')]};return db[_0x42cd08('0x17')][_0x42cd08('0x88')](_0x3e0df4)[_0x42cd08('0x8b')](function(_0x6488eb){const _0x35d827=_0x42cd08;return _0x63383[_0x35d827('0x88')]=_0x6488eb,_0x384fbd['query']['includeAll']&&(_0xabe752[_0x35d827('0x24')]=[{'all':!![]}]),db[_0x35d827('0x17')][_0x35d827('0x8f')](_0xabe752);})[_0x42cd08('0x8b')](function(_0x109c90){const _0x17beb0=_0x42cd08;return _0x63383[_0x17beb0('0x2b')]=_0x109c90,_0x63383;})['then'](respondWithFilteredResult(_0x4b4bc4,_0xabe752))[_0x42cd08('0x2a')](handleError(_0x4b4bc4,null));},exports[_0x3d9930('0x63')]=function(_0x4745b8,_0x52d39b){const _0x3811a8=_0x3d9930;let _0x3fb090={'raw':![],'where':{'id':_0x4745b8[_0x3811a8('0x3')]['id']}};const _0x2361ee={};return _0x2361ee[_0x3811a8('0xb1')]=_[_0x3811a8('0x55')](db['Dynamics365Account']['rawAttributes']),_0x2361ee[_0x3811a8('0x9')]=_[_0x3811a8('0x55')](_0x4745b8['query']),_0x2361ee[_0x3811a8('0x74')]=_[_0x3811a8('0x27')](_0x2361ee[_0x3811a8('0xb1')],_0x2361ee[_0x3811a8('0x9')]),_0x3fb090[_0x3811a8('0x75')]=_['intersection'](_0x2361ee[_0x3811a8('0xb1')],qs['fields'](_0x4745b8[_0x3811a8('0x9')][_0x3811a8('0x4e')])),_0x3fb090[_0x3811a8('0x75')]=_0x3fb090['attributes'][_0x3811a8('0x38')]?_0x3fb090['attributes']:_0x2361ee[_0x3811a8('0xb1')],_0x4745b8[_0x3811a8('0x9')][_0x3811a8('0x9e')]&&(_0x3fb090[_0x3811a8('0x24')]=[{'all':!![]}]),_0x3fb090=_[_0x3811a8('0x0')]({},_0x3fb090,_0x4745b8[_0x3811a8('0xa3')]),db['Dynamics365Account'][_0x3811a8('0x49')](_0x3fb090)['then'](handleEntityNotFound(_0x52d39b,null))['then'](respondWithResult(_0x52d39b,null))[_0x3811a8('0x2a')](handleError(_0x52d39b,null));},exports[_0x3d9930('0xae')]=function(_0x33fae6,_0x48cfad){const _0x4de486=_0x3d9930;return db[_0x4de486('0x17')][_0x4de486('0xae')](_0x33fae6[_0x4de486('0x37')],{})[_0x4de486('0x8b')](respondWithResult(_0x48cfad,0xc9))[_0x4de486('0x2a')](handleError(_0x48cfad,null));},exports[_0x3d9930('0x78')]=function(_0xb33f43,_0x1df2ae){const _0x454488=_0x3d9930;return _0xb33f43[_0x454488('0x37')]['id']&&delete _0xb33f43['body']['id'],db[_0x454488('0x17')]['findOne']({'where':{'id':_0xb33f43[_0x454488('0x3')]['id']}})[_0x454488('0x8b')](handleEntityNotFound(_0x1df2ae,null))[_0x454488('0x8b')](saveUpdates(_0xb33f43[_0x454488('0x37')],null))['then'](respondWithResult(_0x1df2ae,null))[_0x454488('0x2a')](handleError(_0x1df2ae,null));},exports[_0x3d9930('0x16')]=function(_0x7715df,_0x7d88c9){const _0x5ecf98=_0x3d9930;return db[_0x5ecf98('0x17')]['findOne']({'where':{'id':_0x7715df['params']['id']}})[_0x5ecf98('0x8b')](handleEntityNotFound(_0x7d88c9,null))[_0x5ecf98('0x8b')](removeEntity(_0x7d88c9,null))[_0x5ecf98('0x2a')](handleError(_0x7d88c9,null));},exports[_0x3d9930('0xaf')]=function(_0x34298e,_0x75c074){const _0x474cc3=_0x3d9930;let _0x98dafe={};const _0x576676={};let _0xfd2485,_0x8a4c45;return db[_0x474cc3('0x17')][_0x474cc3('0x49')]({'where':{'id':_0x34298e[_0x474cc3('0x3')]['id']}})[_0x474cc3('0x8b')](handleEntityNotFound(_0x75c074,null))[_0x474cc3('0x8b')](function(_0x4fc1ee){const _0x485d14=_0x474cc3;if(_0x4fc1ee)return _0xfd2485=_0x4fc1ee,_0x576676[_0x485d14('0xb1')]=_['keys'](db['Dynamics365Configuration']['rawAttributes']),_0x576676[_0x485d14('0x9')]=_[_0x485d14('0x55')](_0x34298e[_0x485d14('0x9')]),_0x576676[_0x485d14('0x74')]=_[_0x485d14('0x27')](_0x576676[_0x485d14('0xb1')],_0x576676[_0x485d14('0x9')]),_0x98dafe[_0x485d14('0x75')]=_['intersection'](_0x576676[_0x485d14('0xb1')],qs[_0x485d14('0x4e')](_0x34298e[_0x485d14('0x9')][_0x485d14('0x4e')])),_0x98dafe[_0x485d14('0x75')]=_0x98dafe[_0x485d14('0x75')][_0x485d14('0x38')]?_0x98dafe['attributes']:_0x576676['model'],_0x98dafe['order']=qs['sort'](_0x34298e[_0x485d14('0x9')][_0x485d14('0x6c')]),_0x98dafe[_0x485d14('0x40')]=qs[_0x485d14('0x74')](_[_0x485d14('0x50')](_0x34298e[_0x485d14('0x9')],_0x576676[_0x485d14('0x74')])),_0x34298e[_0x485d14('0x9')]['filter']&&(_0x98dafe[_0x485d14('0x40')]=_['merge'](_0x98dafe[_0x485d14('0x40')],{[Op['or']]:_[_0x485d14('0x7')](_0x98dafe['attributes'],function(_0xfbd54f){const _0x2de367=_0x485d14,_0x1c72ab={};return _0x1c72ab[_0xfbd54f]={[Op[_0x2de367('0x23')]]:'%'+_0x34298e[_0x2de367('0x9')][_0x2de367('0x8d')]+'%'},_0x1c72ab;})})),_0x98dafe=_[_0x485d14('0x0')]({},_0x98dafe,_0x34298e[_0x485d14('0xa3')]),_0xfd2485['getConfigurations'](_0x98dafe);})[_0x474cc3('0x8b')](function(_0x15bc04){const _0x4a6739=_0x474cc3;if(_0x15bc04)return _0x8a4c45=_0x15bc04[_0x4a6739('0x38')],typeof _0x34298e[_0x4a6739('0x9')][_0x4a6739('0x31')]===_0x4a6739('0xa4')&&(_0x98dafe[_0x4a6739('0x87')]=qs[_0x4a6739('0x87')](_0x34298e[_0x4a6739('0x9')][_0x4a6739('0x87')]),_0x98dafe[_0x4a6739('0x9d')]=qs[_0x4a6739('0x9d')](_0x34298e[_0x4a6739('0x9')][_0x4a6739('0x9d')])),_0xfd2485[_0x4a6739('0xaf')](_0x98dafe);})[_0x474cc3('0x8b')](function(_0x29d770){if(_0x29d770)return _0x29d770?{'count':_0x8a4c45,'rows':_0x29d770}:null;})['then'](respondWithResult(_0x75c074,null))['catch'](handleError(_0x75c074,null));},exports[_0x3d9930('0xb3')]=function(_0x251f57,_0x5b55b8){const _0x448204=_0x3d9930;return _0x251f57[_0x448204('0x37')]['id']&&delete _0x251f57[_0x448204('0x37')]['id'],db['Dynamics365Account'][_0x448204('0x49')]({'where':{'id':_0x251f57[_0x448204('0x3')]['id']}})[_0x448204('0x8b')](handleEntityNotFound(_0x5b55b8,null))[_0x448204('0x8b')](function(_0xa0e0e5){const _0x5a713f=_0x448204;if(_0xa0e0e5)return _0x251f57[_0x5a713f('0x37')][_0x5a713f('0x4c')]=_0xa0e0e5['id'],_0x251f57[_0x5a713f('0x37')][_0x5a713f('0x71')]=integrations[_0x5a713f('0x64')](_0x251f57[_0x5a713f('0x37')][_0x5a713f('0x94')],_0x251f57[_0x5a713f('0x37')][_0x5a713f('0xb0')]),_0x251f57['body'][_0x5a713f('0x86')]=integrations['getDescriptions'](_0x251f57[_0x5a713f('0x37')][_0x5a713f('0x94')],_0x251f57['body'][_0x5a713f('0xb0')]),db[_0x5a713f('0x8c')][_0x5a713f('0xae')](_0x251f57['body'],{'include':[{'model':db[_0x5a713f('0x48')],'as':_0x5a713f('0x71')},{'model':db['Dynamics365Field'],'as':'Descriptions'}]});return null;})[_0x448204('0x8b')](respondWithResult(_0x5b55b8,null))['catch'](handleError(_0x5b55b8,null));},exports[_0x3d9930('0x6a')]=function(_0x4eaa5a,_0x4af1c5){const _0x53202d=_0x3d9930,_0x722178=_0x4eaa5a['query']['ticketType'],_0x4042bf=_0x722178==='incident'?_0x53202d('0xb4'):_0x53202d('0x8');let _0x115164='',_0x50b57b='',_0x2fbcbd='',_0x39b24f='',_0x3dd146='',_0x4e2fd9='',_0x1cd3e0='',_0x16c45d='';const _0x161c69=['title',_0x53202d('0x30'),_0x53202d('0x83'),_0x53202d('0x4b'),_0x53202d('0x5'),_0x53202d('0x13'),_0x53202d('0x66'),_0x53202d('0x9c'),_0x53202d('0x56'),_0x53202d('0x7c')],_0x26537e=[_0x53202d('0xa5'),'accountidyominame','actualserviceunits',_0x53202d('0x5c'),'contactidname','contactidyominame',_0x53202d('0x33'),'contractidname',_0x53202d('0x62'),_0x53202d('0x9a'),_0x53202d('0x85'),_0x53202d('0x18'),_0x53202d('0x5e'),_0x53202d('0x41'),'createdonbehalfbyyominame',_0x53202d('0x54'),_0x53202d('0x67'),_0x53202d('0x1'),_0x53202d('0x3e'),_0x53202d('0x34'),_0x53202d('0x82'),_0x53202d('0xaa'),'escalatedon',_0x53202d('0xac'),_0x53202d('0x3a'),_0x53202d('0x21'),_0x53202d('0x5a'),_0x53202d('0x76'),_0x53202d('0x80'),_0x53202d('0xb5'),_0x53202d('0x57'),_0x53202d('0x43'),_0x53202d('0x70'),_0x53202d('0x46'),'modifiedbyyominame','modifiedon',_0x53202d('0x81'),_0x53202d('0x98'),'msdyn_incidenttypename',_0x53202d('0x4a'),_0x53202d('0x12'),'onholdtime','overriddencreatedon',_0x53202d('0x90'),_0x53202d('0x1a'),_0x53202d('0x10'),_0x53202d('0x2c'),_0x53202d('0x3b'),_0x53202d('0x42'),_0x53202d('0x15'),_0x53202d('0x1e'),'productserialnumber',_0x53202d('0x5b'),_0x53202d('0x5d'),_0x53202d('0x61'),_0x53202d('0x60'),'responsiblecontactidyominame',_0x53202d('0x77'),_0x53202d('0x1f'),'slaname',_0x53202d('0x8a'),'statecode',_0x53202d('0x7b'),_0x53202d('0x72'),_0x53202d('0x47'),_0x53202d('0x28'),_0x53202d('0xa1'),_0x53202d('0x19'),'utcconversiontimezonecode',_0x53202d('0xad')],_0x1faa5b=_0x161c69[_0x53202d('0x53')](_0x26537e);return db[_0x53202d('0x17')][_0x53202d('0x49')]({'where':{'id':_0x4eaa5a[_0x53202d('0x3')]['id']},'attributes':['id',_0x53202d('0x52'),_0x53202d('0x7a'),_0x53202d('0xa2'),_0x53202d('0x3d'),_0x53202d('0x97'),_0x53202d('0x20')]})['then'](handleEntityNotFound(_0x4af1c5,null))[_0x53202d('0x8b')](function(_0x12d23f){const _0x4b8fba=_0x53202d;if(_0x12d23f){_0x16c45d=_0x12d23f[_0x4b8fba('0xa2')];const _0x5bdbd1=_0x16c45d[_0x4b8fba('0xa7')](-0x1);_0x5bdbd1==='/'&&(_0x16c45d=_0x16c45d[_0x4b8fba('0x2e')](0x0,_0x16c45d[_0x4b8fba('0xe')](_0x5bdbd1)));_0x1cd3e0=util[_0x4b8fba('0x9f')](_0x4b8fba('0x99'),_0x16c45d);const _0x58e1a5={'method':'POST','uri':'https://login.microsoftonline.com/'+_0x12d23f[_0x4b8fba('0x3d')]+_0x4b8fba('0x6'),'form':{'client_id':_0x12d23f[_0x4b8fba('0x97')],'resource':_0x16c45d,'username':_0x12d23f['username'],'password':_0x12d23f[_0x4b8fba('0x7a')],'grant_type':_0x4b8fba('0x7a'),'client_secret':_0x12d23f[_0x4b8fba('0x20')]},'json':!![]};return rp(_0x58e1a5);}})[_0x53202d('0x8b')](function(_0x5363b6){const _0x425e1c=_0x53202d;_0x4e2fd9=_0x5363b6['access_token'];const _0x1cc09a={'method':_0x425e1c('0x45'),'uri':encodeURI(_0x1cd3e0+_0x425e1c('0xa6')+_0x4042bf+'\x27'),'headers':{'Authorization':_0x425e1c('0x7d')+_0x4e2fd9,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x1cc09a);})['then'](function(_0x45ed23){const _0x140078=_0x53202d,_0x4e6068=_0x45ed23[_0x140078('0x9b')][0x0],_0x2c1028=_0x4e6068['MetadataId'],_0x2f6a6b={'method':'GET','uri':_0x1cd3e0+_0x140078('0xa9')+_0x2c1028+')?$select=LogicalName&$expand=Attributes($select=LogicalName)','headers':{'Authorization':'Bearer\x20'+_0x4e2fd9,'If-None-Match':null,'OData-Version':_0x140078('0x84')},'json':!![]};return rp(_0x2f6a6b);})[_0x53202d('0x8b')](function(_0xa98cd){const _0xce417f=_0x53202d;_0x115164=_0xa98cd,_0x50b57b=_0x115164[_0xce417f('0x3f')],_0x50b57b=_[_0xce417f('0x22')](_0x50b57b,function(_0x3e771d){const _0x10522c=_0xce417f;return!_0x1faa5b[_0x10522c('0x3c')](_0x3e771d[_0x10522c('0x2d')]);});const _0x12b317=[],_0x1c3843=[];return _0x50b57b[_0xce417f('0x39')](function(_0x2aaf25){const _0x5622d8=_0xce417f;if(_0x2aaf25[_0x5622d8('0x68')]){const _0x1a7a59=_0x2aaf25['@odata.type'][_0x5622d8('0x2e')](_0x2aaf25['@odata.type'][_0x5622d8('0xe')]('.')+0x1);_0x1a7a59===_0x5622d8('0x44')&&_0x12b317[_0x5622d8('0x2f')](getSelectList(_0x1cd3e0,_0x722178,_0x1c3843,_0x115164[_0x5622d8('0x4d')],_0x2aaf25[_0x5622d8('0x4d')],_0x4e2fd9));}}),Promise['all'](_0x12b317);})[_0x53202d('0x8b')](function(_0x1a3c31){const _0x23b108=_0x53202d;_0x2fbcbd=_0x1a3c31[0x0];const _0x9bb356=[],_0x757793=[];return _0x50b57b[_0x23b108('0x39')](function(_0x5e6dfe){const _0x2984bf=_0x23b108;if(!_[_0x2984bf('0xa0')](_0x5e6dfe['@odata.type'])){const _0x5cfb8d=_0x5e6dfe[_0x2984bf('0x68')][_0x2984bf('0x2e')](_0x5e6dfe['@odata.type']['lastIndexOf']('.')+0x1);_0x5cfb8d==='BooleanAttributeMetadata'&&_0x9bb356[_0x2984bf('0x2f')](getBooleanList(_0x1cd3e0,_0x722178,_0x757793,_0x115164[_0x2984bf('0x4d')],_0x5e6dfe[_0x2984bf('0x4d')],_0x4e2fd9));}}),Promise[_0x23b108('0x91')](_0x9bb356);})[_0x53202d('0x8b')](function(_0x1284c8){const _0x1a35da=_0x53202d;_0x39b24f=_0x1284c8[0x0];const _0x332279=[],_0x49e425=[];return _0x50b57b[_0x1a35da('0x39')](function(_0x4a0e47){const _0x1ab133=_0x1a35da;if(_0x4a0e47[_0x1ab133('0x68')]){const _0x5210ac=_0x4a0e47[_0x1ab133('0x68')][_0x1ab133('0x2e')](_0x4a0e47[_0x1ab133('0x68')][_0x1ab133('0xe')]('.')+0x1);(_0x5210ac==='StringAttributeMetadata'||_0x5210ac==='DoubleAttributeMetadata'||_0x5210ac===_0x1ab133('0x58')||_0x5210ac==='IntegerAttributeMetadata'||_0x5210ac===_0x1ab133('0x36')||_0x5210ac==='DateTimeAttributeMetadata'||_0x5210ac==='StatusAttributeMetadata'||_0x5210ac===_0x1ab133('0xa8')||_0x5210ac==='StateAttributeMetadata'||_0x5210ac===_0x1ab133('0x1d'))&&_0x332279[_0x1ab133('0x2f')](getInputList(_0x1cd3e0,_0x722178,_0x5210ac,_0x49e425,_0x115164[_0x1ab133('0x4d')],_0x4a0e47[_0x1ab133('0x4d')],_0x4e2fd9));}}),Promise[_0x1a35da('0x91')](_0x332279);})['then'](function(_0x39e988){const _0x45b530=_0x53202d;_0x3dd146=_0x39e988[0x0];const _0x295868=_0x2fbcbd[_0x45b530('0x53')](_0x39b24f)['concat'](_0x3dd146),_0x236eaa={'count':_0x295868[_0x45b530('0x38')],'rows':_0x295868};return _0x236eaa;})[_0x53202d('0x8b')](respondWithResult(_0x4af1c5,null))[_0x53202d('0x2a')](function(_0x430e6d){const _0x45ca6d=_0x53202d;let _0x54cea7=_0x4eaa5a[_0x45ca6d('0x9')][_0x45ca6d('0x1c')]?0x1f4:_0x430e6d[_0x45ca6d('0x35')]||0x1f4;logger[_0x45ca6d('0x6f')](_0x430e6d['stack']),delete _0x430e6d[_0x45ca6d('0x59')],_0x54cea7===0x191&&(_0x54cea7=0x190),_0x4af1c5[_0x45ca6d('0x7e')](_0x54cea7)[_0x45ca6d('0xb')](_0x4eaa5a[_0x45ca6d('0x9')][_0x45ca6d('0x1c')]?{'message':_0x45ca6d('0x5f'),'statusCode':_0x430e6d[_0x45ca6d('0x35')]}:_0x430e6d);});};function getSelectList(_0x1f01b9,_0x54f7b0,_0x5ae893,_0x513d64,_0x40b51e,_0xf7d8c9){const _0x8de9f8=_0x3d9930,_0x17ef7e={'method':_0x8de9f8('0x45'),'uri':_0x1f01b9+_0x8de9f8('0xa9')+_0x513d64+')/Attributes('+_0x40b51e+_0x8de9f8('0x2')+_0x8de9f8('0x25'),'headers':{'Authorization':_0x8de9f8('0x7d')+_0xf7d8c9,'If-None-Match':null,'OData-Version':_0x8de9f8('0x84')},'json':!![]};return rp(_0x17ef7e)['then'](function(_0x5daae9){const _0x5ef433=_0x8de9f8,_0xbe3ce8=[],_0x4ba49c=_0x5daae9['OptionSet'][_0x5ef433('0x69')];_0x4ba49c[_0x5ef433('0x39')](function(_0x1edceb){const _0x435d61=_0x5ef433;_0xbe3ce8[_0x435d61('0x2f')]({'name':_0x1edceb[_0x435d61('0xf')][_0x435d61('0x8e')][_0x435d61('0xf')],'value':String(_0x1edceb[_0x435d61('0x26')])});});const _0x5dfe1d={'id':_0x54f7b0+'_'+_0x5daae9[_0x5ef433('0x2d')],'name':_0x5daae9[_0x5ef433('0x89')][_0x5ef433('0x8e')][_0x5ef433('0xf')],'custom':![],'options':_0xbe3ce8};return _0x5ae893[_0x5ef433('0x2f')](_0x5dfe1d),_0x5ae893;});}function getBooleanList(_0x44a5db,_0x3f39f3,_0x5a3922,_0x2cda6e,_0x3b2ef3,_0x35195e){const _0x1f15f2=_0x3d9930,_0x1f33bd={'method':'GET','uri':_0x44a5db+'EntityDefinitions('+_0x2cda6e+_0x1f15f2('0x93')+_0x3b2ef3+_0x1f15f2('0xb2'),'headers':{'Authorization':_0x1f15f2('0x7d')+_0x35195e,'If-None-Match':null,'OData-Version':_0x1f15f2('0x84')},'json':!![]};return rp(_0x1f33bd)['then'](function(_0x1ff015){const _0xe1518=_0x1f15f2,_0x25b0d6=[];_0x25b0d6[_0xe1518('0x2f')]({'name':_0x1ff015[_0xe1518('0xb6')][_0xe1518('0x6b')][_0xe1518('0xf')][_0xe1518('0x8e')][_0xe1518('0xf')],'value':_0xe1518('0xab')},{'name':_0x1ff015['OptionSet'][_0xe1518('0x96')][_0xe1518('0xf')][_0xe1518('0x8e')]['Label'],'value':_0xe1518('0x65')});const _0x23018d={'id':_0x3f39f3+'_'+_0x1ff015[_0xe1518('0x2d')],'name':_0x1ff015[_0xe1518('0x89')]['UserLocalizedLabel']['Label'],'custom':![],'options':_0x25b0d6};return _0x5a3922['push'](_0x23018d),_0x5a3922;});}function getInputList(_0x26b007,_0x52b1e6,_0x1907c8,_0x2c9ff1,_0x5733a3,_0x60ded2,_0x5b35a6){const _0x233082=_0x3d9930,_0x3ccfc4={'method':'GET','uri':_0x26b007+_0x233082('0xa9')+_0x5733a3+')/Attributes('+_0x60ded2+_0x233082('0x14')+_0x1907c8+_0x233082('0x79'),'headers':{'Authorization':'Bearer\x20'+_0x5b35a6,'If-None-Match':null,'OData-Version':_0x233082('0x84')},'json':!![]};return rp(_0x3ccfc4)[_0x233082('0x8b')](function(_0x5e968c){const _0x2dee9b=_0x233082,_0x1a230f={'id':_0x52b1e6+'_'+_0x5e968c[_0x2dee9b('0x2d')],'name':_0x5e968c[_0x2dee9b('0x89')][_0x2dee9b('0x8e')]?_0x5e968c['DisplayName']['UserLocalizedLabel'][_0x2dee9b('0xf')]:_0x5e968c[_0x2dee9b('0x2d')],'custom':![],'options':[]};return _0x2c9ff1['push'](_0x1a230f),_0x2c9ff1;});} \ No newline at end of file +const a242_0x3c9a=['sentimentvalue','statusCode','statuscode','accountidname','GET','getConfigurations','primarycontactidname','Incident','forEach','remove','rows','directioncode','getDescriptions','slaname','createdbyexternalpartyname','?$select=DisplayName,LogicalName','actualserviceunits','filters','tenantId','include','offset','msdyn_incidenttypename','owneridname',')/Microsoft.Dynamics.CRM.BooleanAttributeMetadata?$select=DisplayName,LogicalName&$expand=OptionSet($select=FalseOption,\x20TrueOption)','/oauth2/token','escalatedon','order','intersection','util','regardingobjectid','MemoAttributeMetadata','getFields','includeAll','slice','create',')?$select=LogicalName&$expand=Attributes($select=LogicalName)','fieldName','responseby','count','username','length','importsequencenumber','modifiedonbehalfbyyominame','keys','EntityDefinitions?$select=DisplayName,EntitySetName&$filter=SchemaName\x20eq\x20\x27','channel','merge','LogicalName','Label','createdbyexternalpartyyominame','destroy','rawAttributes','Dynamics365Configuration','PhoneCall','false','customerid','caseorigincode','lastIndexOf','primarycontactidyominame','emailaddress','format','phonecall_activity_parties','nolimit','end','../../mysqldb','true','concat','StringAttributeMetadata','fields','filter','Bearer\x20','test','ownerid','Subjects','findOne','productserialnumber','DoubleAttributeMetadata','all','https://login.microsoftonline.com/','password','../../components/parsers/qs','MetadataId','ticketnumber','parentcaseidname','attributes','clientSecret','kbarticleidname','VIRTUAL','BigIntAttributeMetadata','options','map','update','modifiedon','4.0','addConfiguration','numberofchildincidents','Descriptions','ticketType','Content-Range','createdonbehalfbyyominame','StateAttributeMetadata','createdbyyominame','Options','POST','index','responsiblecontactidname','limit','sort','utcconversiontimezonecode','onholdtime','socialprofileidname','entityimage_url','resolveby','query','EntityDefinitions(',')/Attributes(','type','body','lodash',')/Microsoft.Dynamics.CRM.','customeridyominame','undefined','error','OptionSet','key','DecimalAttributeMetadata','access_token','where','then','push','substring','@odata.type','stack','Dynamics365Account','customeridtype','show','modifiedonbehalfbyname','params','responsiblecontactidyominame','pick','clientId','Wrong\x20credentials','contactidname','subject','$select=DisplayName,LogicalName&$expand=OptionSet($select=Options)','send','subjectidname','exchangerate','like','../../config/logger','statecode','DisplayName','createdbyname','model','includes','owneridtype','overriddencreatedon','contractdetailidname','status','json','UserLocalizedLabel','modifiedbyname','transactioncurrencyidname','productidname','owneridyominame','masteridname','sendStatus','name','resolvebykpiidname','Dynamics365Field','request-promise-native','remoteUri','catch','followupby','createdonbehalfbyname'];(function(_0x11cf08,_0x3c9a60){const _0xab3b75=function(_0x22b804){while(--_0x22b804){_0x11cf08['push'](_0x11cf08['shift']());}};_0xab3b75(++_0x3c9a60);}(a242_0x3c9a,0xc1));const a242_0xab3b=function(_0x11cf08,_0x3c9a60){_0x11cf08=_0x11cf08-0x0;let _0xab3b75=a242_0x3c9a[_0x11cf08];return _0xab3b75;};const _0x2d6ca6=a242_0xab3b;'use strict';const rp=require(_0x2d6ca6('0x98')),util=require(_0x2d6ca6('0xa')),_=require(_0x2d6ca6('0x64')),qs=require(_0x2d6ca6('0x3e')),logger=require(_0x2d6ca6('0x83'))('api'),db=require(_0x2d6ca6('0x2e'))['db'],{Op}=require('sequelize'),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x22b804,_0x26d52f){return _0x26d52f=_0x26d52f||0xc8,function(_0x1fed78){const _0x5c9697=a242_0xab3b;if(_0x1fed78)return _0x22b804[_0x5c9697('0x8c')](_0x26d52f)[_0x5c9697('0x8d')](_0x1fed78);};}function respondWithFilteredResult(_0x2ff00c,_0x14bd3e){return function(_0x475790){const _0x6b1475=a242_0xab3b;if(_0x475790){const _0x2d814e=_0x475790['count'],_0x1dd892=_0x14bd3e[_0x6b1475('0x2')];let _0x6efe32=_0x14bd3e[_0x6b1475('0x2')]+_0x14bd3e[_0x6b1475('0x58')],_0x499324;return _0x6efe32>=_0x2d814e?(_0x6efe32=_0x2d814e,_0x499324=0xc8):_0x499324=0xce,_0x2ff00c[_0x6b1475('0x8c')](_0x499324),_0x2ff00c['set'](_0x6b1475('0x50'),_0x1dd892+'-'+_0x6efe32+'/'+_0x2d814e)[_0x6b1475('0x8d')](_0x475790);}return null;};}function saveUpdates(_0x5f4ee2){return function(_0x45db76){const _0x2ddcd0=a242_0xab3b;if(_0x45db76)return _0x45db76[_0x2ddcd0('0x49')](_0x5f4ee2)[_0x2ddcd0('0x6e')](function(_0x1eb880){return _0x1eb880;});return null;};}function removeEntity(_0xcd2cac){return function(_0x435f17){const _0x111cdf=a242_0xab3b;if(_0x435f17)return _0x435f17[_0x111cdf('0x20')]()['then'](function(){const _0x4979be=_0x111cdf;_0xcd2cac['status'](0xcc)[_0x4979be('0x2d')]();});};}function handleEntityNotFound(_0x5333e5){return function(_0x198818){const _0x1fa122=a242_0xab3b;return!_0x198818&&_0x5333e5[_0x1fa122('0x94')](0x194),_0x198818;};}function handleError(_0x51ff6d,_0x22ebad){return _0x22ebad=_0x22ebad||0x1f4,function(_0xbcd9f1){const _0x1898bc=a242_0xab3b;logger[_0x1898bc('0x68')](_0xbcd9f1[_0x1898bc('0x72')]),_0xbcd9f1[_0x1898bc('0x95')]&&delete _0xbcd9f1['name'],_0x51ff6d[_0x1898bc('0x8c')](_0x22ebad)[_0x1898bc('0x7f')](_0xbcd9f1);};}exports[_0x2d6ca6('0x56')]=function(_0x24b256,_0x32307b){const _0x574ea0=_0x2d6ca6;let _0x4bcaba={};const _0x1d63a7={},_0x4b7004={'count':0x0,'rows':[]},_0x50bec1=_[_0x574ea0('0x48')](db['Dynamics365Account']['rawAttributes'],function(_0x499c13){const _0x146fd2=_0x574ea0;return{'name':_0x499c13[_0x146fd2('0x12')],'type':_0x499c13[_0x146fd2('0x62')][_0x146fd2('0x6a')]};});_0x1d63a7[_0x574ea0('0x87')]=_['map'](_0x50bec1,_0x574ea0('0x95')),_0x1d63a7[_0x574ea0('0x5f')]=_[_0x574ea0('0x19')](_0x24b256['query']),_0x1d63a7[_0x574ea0('0xae')]=_[_0x574ea0('0x9')](_0x1d63a7['model'],_0x1d63a7['query']),_0x4bcaba[_0x574ea0('0x42')]=_[_0x574ea0('0x9')](_0x1d63a7[_0x574ea0('0x87')],qs[_0x574ea0('0x32')](_0x24b256[_0x574ea0('0x5f')][_0x574ea0('0x32')])),_0x4bcaba[_0x574ea0('0x42')]=_0x4bcaba[_0x574ea0('0x42')][_0x574ea0('0x16')]?_0x4bcaba['attributes']:_0x1d63a7[_0x574ea0('0x87')];typeof _0x24b256[_0x574ea0('0x5f')][_0x574ea0('0x2c')]===_0x574ea0('0x67')&&(_0x4bcaba['limit']=qs[_0x574ea0('0x58')](_0x24b256['query'][_0x574ea0('0x58')]),_0x4bcaba[_0x574ea0('0x2')]=qs[_0x574ea0('0x2')](_0x24b256[_0x574ea0('0x5f')]['offset']));_0x4bcaba[_0x574ea0('0x8')]=qs[_0x574ea0('0x59')](_0x24b256['query'][_0x574ea0('0x59')]),_0x4bcaba[_0x574ea0('0x6d')]=qs[_0x574ea0('0xae')](_['pick'](_0x24b256[_0x574ea0('0x5f')],_0x1d63a7[_0x574ea0('0xae')]),_0x50bec1);_0x24b256[_0x574ea0('0x5f')][_0x574ea0('0x33')]&&(_0x4bcaba[_0x574ea0('0x6d')]=_['merge'](_0x4bcaba[_0x574ea0('0x6d')],{[Op['or']]:_[_0x574ea0('0x48')](_0x50bec1,function(_0x584961){const _0x1cb588=_0x574ea0;if(_0x584961['type']!==_0x1cb588('0x45')){const _0x3796c4={};return _0x3796c4[_0x584961['name']]={[Op['like']]:'%'+_0x24b256['query'][_0x1cb588('0x33')]+'%'},_0x3796c4;}})}));_0x4bcaba=_[_0x574ea0('0x1c')]({},_0x4bcaba,_0x24b256[_0x574ea0('0x47')]);const _0x334df1={'where':_0x4bcaba['where']};return db[_0x574ea0('0x73')][_0x574ea0('0x14')](_0x334df1)[_0x574ea0('0x6e')](function(_0x503911){const _0x42adb9=_0x574ea0;return _0x4b7004['count']=_0x503911,_0x24b256['query']['includeAll']&&(_0x4bcaba[_0x42adb9('0x1')]=[{'all':!![]}]),db['Dynamics365Account']['findAll'](_0x4bcaba);})[_0x574ea0('0x6e')](function(_0x2ab74b){const _0x1ac878=_0x574ea0;return _0x4b7004[_0x1ac878('0xa7')]=_0x2ab74b,_0x4b7004;})[_0x574ea0('0x6e')](respondWithFilteredResult(_0x32307b,_0x4bcaba))[_0x574ea0('0x9a')](handleError(_0x32307b,null));},exports[_0x2d6ca6('0x75')]=function(_0x111a25,_0x44aad7){const _0x293511=_0x2d6ca6;let _0x31762f={'raw':![],'where':{'id':_0x111a25[_0x293511('0x77')]['id']}};const _0x25402d={};return _0x25402d[_0x293511('0x87')]=_[_0x293511('0x19')](db[_0x293511('0x73')][_0x293511('0x21')]),_0x25402d[_0x293511('0x5f')]=_['keys'](_0x111a25['query']),_0x25402d[_0x293511('0xae')]=_['intersection'](_0x25402d[_0x293511('0x87')],_0x25402d[_0x293511('0x5f')]),_0x31762f[_0x293511('0x42')]=_['intersection'](_0x25402d[_0x293511('0x87')],qs[_0x293511('0x32')](_0x111a25[_0x293511('0x5f')][_0x293511('0x32')])),_0x31762f[_0x293511('0x42')]=_0x31762f[_0x293511('0x42')][_0x293511('0x16')]?_0x31762f[_0x293511('0x42')]:_0x25402d[_0x293511('0x87')],_0x111a25[_0x293511('0x5f')][_0x293511('0xe')]&&(_0x31762f[_0x293511('0x1')]=[{'all':!![]}]),_0x31762f=_[_0x293511('0x1c')]({},_0x31762f,_0x111a25[_0x293511('0x47')]),db[_0x293511('0x73')]['findOne'](_0x31762f)['then'](handleEntityNotFound(_0x44aad7,null))[_0x293511('0x6e')](respondWithResult(_0x44aad7,null))[_0x293511('0x9a')](handleError(_0x44aad7,null));},exports['create']=function(_0x5bac33,_0x2c8cf1){const _0x572d47=_0x2d6ca6;return db['Dynamics365Account'][_0x572d47('0x10')](_0x5bac33[_0x572d47('0x63')],{})['then'](respondWithResult(_0x2c8cf1,0xc9))[_0x572d47('0x9a')](handleError(_0x2c8cf1,null));},exports[_0x2d6ca6('0x49')]=function(_0x517373,_0x43e40d){const _0x1d6de7=_0x2d6ca6;return _0x517373[_0x1d6de7('0x63')]['id']&&delete _0x517373[_0x1d6de7('0x63')]['id'],db['Dynamics365Account'][_0x1d6de7('0x38')]({'where':{'id':_0x517373['params']['id']}})['then'](handleEntityNotFound(_0x43e40d,null))['then'](saveUpdates(_0x517373['body'],null))['then'](respondWithResult(_0x43e40d,null))['catch'](handleError(_0x43e40d,null));},exports[_0x2d6ca6('0x20')]=function(_0x4eff69,_0x56a4cf){const _0x1fa702=_0x2d6ca6;return db['Dynamics365Account'][_0x1fa702('0x38')]({'where':{'id':_0x4eff69[_0x1fa702('0x77')]['id']}})[_0x1fa702('0x6e')](handleEntityNotFound(_0x56a4cf,null))[_0x1fa702('0x6e')](removeEntity(_0x56a4cf,null))[_0x1fa702('0x9a')](handleError(_0x56a4cf,null));},exports['getConfigurations']=function(_0x3445e7,_0x1d3614){const _0x21736f=_0x2d6ca6;let _0x46d31f={};const _0x47ad0f={};let _0x341617,_0x2af30b;return db[_0x21736f('0x73')][_0x21736f('0x38')]({'where':{'id':_0x3445e7[_0x21736f('0x77')]['id']}})['then'](handleEntityNotFound(_0x1d3614,null))[_0x21736f('0x6e')](function(_0x2f5489){const _0x27e0a1=_0x21736f;if(_0x2f5489)return _0x341617=_0x2f5489,_0x47ad0f[_0x27e0a1('0x87')]=_[_0x27e0a1('0x19')](db[_0x27e0a1('0x22')][_0x27e0a1('0x21')]),_0x47ad0f[_0x27e0a1('0x5f')]=_[_0x27e0a1('0x19')](_0x3445e7[_0x27e0a1('0x5f')]),_0x47ad0f[_0x27e0a1('0xae')]=_[_0x27e0a1('0x9')](_0x47ad0f[_0x27e0a1('0x87')],_0x47ad0f[_0x27e0a1('0x5f')]),_0x46d31f['attributes']=_[_0x27e0a1('0x9')](_0x47ad0f[_0x27e0a1('0x87')],qs['fields'](_0x3445e7[_0x27e0a1('0x5f')][_0x27e0a1('0x32')])),_0x46d31f[_0x27e0a1('0x42')]=_0x46d31f[_0x27e0a1('0x42')][_0x27e0a1('0x16')]?_0x46d31f[_0x27e0a1('0x42')]:_0x47ad0f[_0x27e0a1('0x87')],_0x46d31f['order']=qs[_0x27e0a1('0x59')](_0x3445e7[_0x27e0a1('0x5f')][_0x27e0a1('0x59')]),_0x46d31f['where']=qs[_0x27e0a1('0xae')](_[_0x27e0a1('0x79')](_0x3445e7[_0x27e0a1('0x5f')],_0x47ad0f['filters'])),_0x3445e7['query'][_0x27e0a1('0x33')]&&(_0x46d31f[_0x27e0a1('0x6d')]=_[_0x27e0a1('0x1c')](_0x46d31f[_0x27e0a1('0x6d')],{[Op['or']]:_['map'](_0x46d31f['attributes'],function(_0x3f9d67){const _0x450cba=_0x27e0a1,_0xb8d809={};return _0xb8d809[_0x3f9d67]={[Op[_0x450cba('0x82')]]:'%'+_0x3445e7[_0x450cba('0x5f')][_0x450cba('0x33')]+'%'},_0xb8d809;})})),_0x46d31f=_['merge']({},_0x46d31f,_0x3445e7['options']),_0x341617['getConfigurations'](_0x46d31f);})[_0x21736f('0x6e')](function(_0x291518){const _0x1d9894=_0x21736f;if(_0x291518)return _0x2af30b=_0x291518[_0x1d9894('0x16')],typeof _0x3445e7[_0x1d9894('0x5f')][_0x1d9894('0x2c')]===_0x1d9894('0x67')&&(_0x46d31f[_0x1d9894('0x58')]=qs[_0x1d9894('0x58')](_0x3445e7[_0x1d9894('0x5f')][_0x1d9894('0x58')]),_0x46d31f[_0x1d9894('0x2')]=qs[_0x1d9894('0x2')](_0x3445e7[_0x1d9894('0x5f')][_0x1d9894('0x2')])),_0x341617[_0x1d9894('0xa2')](_0x46d31f);})['then'](function(_0x24fb56){if(_0x24fb56)return _0x24fb56?{'count':_0x2af30b,'rows':_0x24fb56}:null;})[_0x21736f('0x6e')](respondWithResult(_0x1d3614,null))[_0x21736f('0x9a')](handleError(_0x1d3614,null));},exports[_0x2d6ca6('0x4c')]=function(_0x105d37,_0x62b03a){const _0x5ed9e8=_0x2d6ca6;return _0x105d37[_0x5ed9e8('0x63')]['id']&&delete _0x105d37[_0x5ed9e8('0x63')]['id'],db['Dynamics365Account']['findOne']({'where':{'id':_0x105d37['params']['id']}})[_0x5ed9e8('0x6e')](handleEntityNotFound(_0x62b03a,null))['then'](function(_0x54f179){const _0x387102=_0x5ed9e8;if(_0x54f179)return _0x105d37['body']['AccountId']=_0x54f179['id'],_0x105d37[_0x387102('0x63')][_0x387102('0x37')]=integrations['getSubjects'](_0x105d37['body'][_0x387102('0x1b')],_0x105d37[_0x387102('0x63')][_0x387102('0x62')]),_0x105d37[_0x387102('0x63')][_0x387102('0x4e')]=integrations[_0x387102('0xa9')](_0x105d37[_0x387102('0x63')][_0x387102('0x1b')],_0x105d37[_0x387102('0x63')][_0x387102('0x62')]),db[_0x387102('0x22')]['create'](_0x105d37[_0x387102('0x63')],{'include':[{'model':db[_0x387102('0x97')],'as':_0x387102('0x37')},{'model':db[_0x387102('0x97')],'as':_0x387102('0x4e')}]});return null;})[_0x5ed9e8('0x6e')](respondWithResult(_0x62b03a,null))['catch'](handleError(_0x62b03a,null));},exports[_0x2d6ca6('0xd')]=function(_0x282c65,_0x2305cb){const _0x423254=_0x2d6ca6,_0x5cb3b6=_0x282c65['query'][_0x423254('0x4f')],_0xe3e540=_0x5cb3b6==='incident'?_0x423254('0xa4'):_0x423254('0x23');let _0xe3dd='',_0x2edf27='',_0x4a2ed8='',_0x42a97e='',_0x5913df='',_0x3bf029='',_0x2850ca='',_0x54dedd='';const _0x2268fc=['title','description',_0x423254('0x25'),_0x423254('0x36'),_0x423254('0x26'),_0x423254('0x7d'),'phonenumber',_0x423254('0xb'),_0x423254('0xa8'),_0x423254('0x2b')],_0x2f0425=[_0x423254('0xa0'),'accountidyominame',_0x423254('0xad'),'billedserviceunits',_0x423254('0x7c'),'contactidyominame',_0x423254('0x8b'),'contractidname',_0x423254('0xab'),_0x423254('0x1f'),_0x423254('0x86'),_0x423254('0x53'),'createdon',_0x423254('0x9c'),_0x423254('0x51'),'customeridname',_0x423254('0x74'),_0x423254('0x66'),_0x423254('0x29'),'entitlementidname','entityimage_timestamp',_0x423254('0x5d'),_0x423254('0x7'),_0x423254('0x81'),'firstresponsebykpiidname',_0x423254('0x9b'),_0x423254('0x17'),'influencescore',_0x423254('0x44'),'lastonholdtime',_0x423254('0x93'),'modifiedbyexternalpartyname','modifiedbyexternalpartyyominame',_0x423254('0x8f'),'modifiedbyyominame',_0x423254('0x4a'),_0x423254('0x76'),_0x423254('0x18'),_0x423254('0x3'),'msdyn_iotalertname',_0x423254('0x4d'),_0x423254('0x5b'),_0x423254('0x8a'),_0x423254('0x4'),_0x423254('0x89'),_0x423254('0x92'),_0x423254('0x41'),_0x423254('0xa3'),_0x423254('0x28'),'prioritycodename',_0x423254('0x91'),_0x423254('0x39'),_0x423254('0x5e'),_0x423254('0x96'),_0x423254('0x13'),_0x423254('0x57'),_0x423254('0x78'),_0x423254('0x9d'),'slainvokedidname',_0x423254('0xaa'),_0x423254('0x5c'),_0x423254('0x84'),_0x423254('0x9f'),_0x423254('0x80'),_0x423254('0x40'),'timezoneruleversionnumber',_0x423254('0x90'),'traversedpath',_0x423254('0x5a'),'versionnumber'],_0x4c2e5e=_0x2268fc['concat'](_0x2f0425);return db['Dynamics365Account'][_0x423254('0x38')]({'where':{'id':_0x282c65[_0x423254('0x77')]['id']},'attributes':['id','username','password',_0x423254('0x99'),_0x423254('0x0'),_0x423254('0x7a'),_0x423254('0x43')]})['then'](handleEntityNotFound(_0x2305cb,null))[_0x423254('0x6e')](function(_0x1bab7c){const _0x40725d=_0x423254;if(_0x1bab7c){_0x54dedd=_0x1bab7c[_0x40725d('0x99')];const _0x3e60c5=_0x54dedd[_0x40725d('0xf')](-0x1);_0x3e60c5==='/'&&(_0x54dedd=_0x54dedd[_0x40725d('0x70')](0x0,_0x54dedd['lastIndexOf'](_0x3e60c5)));_0x2850ca=util[_0x40725d('0x2a')]('%s/api/data/v9.0/',_0x54dedd);const _0x121d51={'method':_0x40725d('0x55'),'uri':_0x40725d('0x3c')+_0x1bab7c[_0x40725d('0x0')]+_0x40725d('0x6'),'form':{'client_id':_0x1bab7c[_0x40725d('0x7a')],'resource':_0x54dedd,'username':_0x1bab7c[_0x40725d('0x15')],'password':_0x1bab7c[_0x40725d('0x3d')],'grant_type':_0x40725d('0x3d'),'client_secret':_0x1bab7c[_0x40725d('0x43')]},'json':!![]};return rp(_0x121d51);}})[_0x423254('0x6e')](function(_0x51f870){const _0x35d2f6=_0x423254;_0x3bf029=_0x51f870[_0x35d2f6('0x6c')];const _0x15cccd={'method':_0x35d2f6('0xa1'),'uri':encodeURI(_0x2850ca+_0x35d2f6('0x1a')+_0xe3e540+'\x27'),'headers':{'Authorization':_0x35d2f6('0x34')+_0x3bf029,'If-None-Match':null,'OData-Version':_0x35d2f6('0x4b')},'json':!![]};return rp(_0x15cccd);})['then'](function(_0x200a19){const _0x56984e=_0x423254,_0x28b296=_0x200a19['value'][0x0],_0x15e73d=_0x28b296[_0x56984e('0x3f')],_0x249173={'method':_0x56984e('0xa1'),'uri':_0x2850ca+'EntityDefinitions('+_0x15e73d+_0x56984e('0x11'),'headers':{'Authorization':_0x56984e('0x34')+_0x3bf029,'If-None-Match':null,'OData-Version':_0x56984e('0x4b')},'json':!![]};return rp(_0x249173);})[_0x423254('0x6e')](function(_0x5e5676){const _0x333d28=_0x423254;_0xe3dd=_0x5e5676,_0x2edf27=_0xe3dd['Attributes'],_0x2edf27=_[_0x333d28('0xa6')](_0x2edf27,function(_0xf6d47d){const _0x427606=_0x333d28;return!_0x4c2e5e[_0x427606('0x88')](_0xf6d47d['LogicalName']);});const _0xf1340e=[],_0x13c0c4=[];return _0x2edf27[_0x333d28('0xa5')](function(_0x1e10d0){const _0x1008e8=_0x333d28;if(_0x1e10d0[_0x1008e8('0x71')]){const _0x1ea5ef=_0x1e10d0[_0x1008e8('0x71')]['substring'](_0x1e10d0[_0x1008e8('0x71')][_0x1008e8('0x27')]('.')+0x1);_0x1ea5ef==='PicklistAttributeMetadata'&&_0xf1340e[_0x1008e8('0x6f')](getSelectList(_0x2850ca,_0x5cb3b6,_0x13c0c4,_0xe3dd[_0x1008e8('0x3f')],_0x1e10d0[_0x1008e8('0x3f')],_0x3bf029));}}),Promise[_0x333d28('0x3b')](_0xf1340e);})[_0x423254('0x6e')](function(_0x2c9720){const _0x5cf4f0=_0x423254;_0x4a2ed8=_0x2c9720[0x0];const _0x5b1aef=[],_0x31ef32=[];return _0x2edf27[_0x5cf4f0('0xa5')](function(_0x27e5d1){const _0x3f19e7=_0x5cf4f0;if(!_['isNil'](_0x27e5d1['@odata.type'])){const _0x566284=_0x27e5d1[_0x3f19e7('0x71')][_0x3f19e7('0x70')](_0x27e5d1[_0x3f19e7('0x71')][_0x3f19e7('0x27')]('.')+0x1);_0x566284==='BooleanAttributeMetadata'&&_0x5b1aef['push'](getBooleanList(_0x2850ca,_0x5cb3b6,_0x31ef32,_0xe3dd[_0x3f19e7('0x3f')],_0x27e5d1['MetadataId'],_0x3bf029));}}),Promise[_0x5cf4f0('0x3b')](_0x5b1aef);})['then'](function(_0x368f19){const _0x5ef63a=_0x423254;_0x42a97e=_0x368f19[0x0];const _0x3662ba=[],_0x26fd8c=[];return _0x2edf27[_0x5ef63a('0xa5')](function(_0x5f189d){const _0x5a6bfc=_0x5ef63a;if(_0x5f189d[_0x5a6bfc('0x71')]){const _0x482dcc=_0x5f189d[_0x5a6bfc('0x71')][_0x5a6bfc('0x70')](_0x5f189d[_0x5a6bfc('0x71')][_0x5a6bfc('0x27')]('.')+0x1);(_0x482dcc===_0x5a6bfc('0x31')||_0x482dcc===_0x5a6bfc('0x3a')||_0x482dcc===_0x5a6bfc('0x46')||_0x482dcc==='IntegerAttributeMetadata'||_0x482dcc===_0x5a6bfc('0xc')||_0x482dcc==='DateTimeAttributeMetadata'||_0x482dcc==='StatusAttributeMetadata'||_0x482dcc==='EntityNameAttributeMetadata'||_0x482dcc===_0x5a6bfc('0x52')||_0x482dcc===_0x5a6bfc('0x6b'))&&_0x3662ba[_0x5a6bfc('0x6f')](getInputList(_0x2850ca,_0x5cb3b6,_0x482dcc,_0x26fd8c,_0xe3dd['MetadataId'],_0x5f189d[_0x5a6bfc('0x3f')],_0x3bf029));}}),Promise[_0x5ef63a('0x3b')](_0x3662ba);})[_0x423254('0x6e')](function(_0x41e607){const _0x3a466b=_0x423254;_0x5913df=_0x41e607[0x0];const _0x210f33=_0x4a2ed8[_0x3a466b('0x30')](_0x42a97e)[_0x3a466b('0x30')](_0x5913df),_0x4d6e50={'count':_0x210f33[_0x3a466b('0x16')],'rows':_0x210f33};return _0x4d6e50;})[_0x423254('0x6e')](respondWithResult(_0x2305cb,null))[_0x423254('0x9a')](function(_0x5002f5){const _0x337d58=_0x423254;let _0x3dd919=_0x282c65[_0x337d58('0x5f')]['test']?0x1f4:_0x5002f5['statusCode']||0x1f4;logger[_0x337d58('0x68')](_0x5002f5[_0x337d58('0x72')]),delete _0x5002f5[_0x337d58('0x95')],_0x3dd919===0x191&&(_0x3dd919=0x190),_0x2305cb[_0x337d58('0x8c')](_0x3dd919)[_0x337d58('0x7f')](_0x282c65[_0x337d58('0x5f')][_0x337d58('0x35')]?{'message':_0x337d58('0x7b'),'statusCode':_0x5002f5[_0x337d58('0x9e')]}:_0x5002f5);});};function getSelectList(_0x29e4e5,_0x1b6802,_0x5aaec5,_0x47d03f,_0x42eda3,_0x3a03cb){const _0x198d34=_0x2d6ca6,_0xf1664b={'method':_0x198d34('0xa1'),'uri':_0x29e4e5+_0x198d34('0x60')+_0x47d03f+_0x198d34('0x61')+_0x42eda3+')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?'+_0x198d34('0x7e'),'headers':{'Authorization':'Bearer\x20'+_0x3a03cb,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0xf1664b)['then'](function(_0x334c48){const _0x3403d3=_0x198d34,_0x59f42b=[],_0x443bc4=_0x334c48[_0x3403d3('0x69')][_0x3403d3('0x54')];_0x443bc4['forEach'](function(_0x2bbc33){const _0x21baf=_0x3403d3;_0x59f42b[_0x21baf('0x6f')]({'name':_0x2bbc33[_0x21baf('0x1e')][_0x21baf('0x8e')][_0x21baf('0x1e')],'value':String(_0x2bbc33['Value'])});});const _0x131270={'id':_0x1b6802+'_'+_0x334c48['LogicalName'],'name':_0x334c48['DisplayName'][_0x3403d3('0x8e')][_0x3403d3('0x1e')],'custom':![],'options':_0x59f42b};return _0x5aaec5[_0x3403d3('0x6f')](_0x131270),_0x5aaec5;});}function getBooleanList(_0x802e64,_0x126e6e,_0x29a7ce,_0x50a3b1,_0x53211a,_0x3f5532){const _0x568dcb=_0x2d6ca6,_0x5e2af0={'method':_0x568dcb('0xa1'),'uri':_0x802e64+_0x568dcb('0x60')+_0x50a3b1+')/Attributes('+_0x53211a+_0x568dcb('0x5'),'headers':{'Authorization':_0x568dcb('0x34')+_0x3f5532,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x5e2af0)['then'](function(_0x4e97c0){const _0x191757=_0x568dcb,_0x15d861=[];_0x15d861['push']({'name':_0x4e97c0[_0x191757('0x69')]['TrueOption'][_0x191757('0x1e')]['UserLocalizedLabel']['Label'],'value':_0x191757('0x2f')},{'name':_0x4e97c0[_0x191757('0x69')]['FalseOption'][_0x191757('0x1e')][_0x191757('0x8e')]['Label'],'value':_0x191757('0x24')});const _0x2e524d={'id':_0x126e6e+'_'+_0x4e97c0[_0x191757('0x1d')],'name':_0x4e97c0[_0x191757('0x85')]['UserLocalizedLabel']['Label'],'custom':![],'options':_0x15d861};return _0x29a7ce[_0x191757('0x6f')](_0x2e524d),_0x29a7ce;});}function getInputList(_0x3a4e35,_0x43b777,_0x2f6466,_0x5efca0,_0x209a2f,_0x5b5d1a,_0x4dd166){const _0x11a5b8=_0x2d6ca6,_0x1f7231={'method':_0x11a5b8('0xa1'),'uri':_0x3a4e35+_0x11a5b8('0x60')+_0x209a2f+_0x11a5b8('0x61')+_0x5b5d1a+_0x11a5b8('0x65')+_0x2f6466+_0x11a5b8('0xac'),'headers':{'Authorization':'Bearer\x20'+_0x4dd166,'If-None-Match':null,'OData-Version':_0x11a5b8('0x4b')},'json':!![]};return rp(_0x1f7231)[_0x11a5b8('0x6e')](function(_0x395ca0){const _0x50b5b2=_0x11a5b8,_0x268232={'id':_0x43b777+'_'+_0x395ca0[_0x50b5b2('0x1d')],'name':_0x395ca0['DisplayName']['UserLocalizedLabel']?_0x395ca0[_0x50b5b2('0x85')][_0x50b5b2('0x8e')]['Label']:_0x395ca0[_0x50b5b2('0x1d')],'custom':![],'options':[]};return _0x5efca0[_0x50b5b2('0x6f')](_0x268232),_0x5efca0;});} \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.model.js b/server/api/intDynamics365Account/intDynamics365Account.model.js index 9b7f369..dee9050 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.model.js +++ b/server/api/intDynamics365Account/intDynamics365Account.model.js @@ -1 +1 @@ -const a243_0x51d0=['define'];(function(_0x21b0a7,_0x51d0b1){const _0x1cd2c7=function(_0x43fe7f){while(--_0x43fe7f){_0x21b0a7['push'](_0x21b0a7['shift']());}};_0x1cd2c7(++_0x51d0b1);}(a243_0x51d0,0x1d3));const a243_0x1cd2=function(_0x21b0a7,_0x51d0b1){_0x21b0a7=_0x21b0a7-0x0;let _0x1cd2c7=a243_0x51d0[_0x21b0a7];return _0x1cd2c7;};'use strict';const attributes=require('./intDynamics365Account.attributes');module['exports']=function(_0x43fe7f){const _0x434687=a243_0x1cd2,_0x31fed2=_0x43fe7f[_0x434687('0x0')]('Dynamics365Account',attributes,{'tableName':'int_dynamics365_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x31fed2;}; \ No newline at end of file +const a243_0x2dfa=['exports','define','Dynamics365Account','int_dynamics365_accounts'];(function(_0x510b2e,_0x2dfa2c){const _0x459aa7=function(_0x816ae4){while(--_0x816ae4){_0x510b2e['push'](_0x510b2e['shift']());}};_0x459aa7(++_0x2dfa2c);}(a243_0x2dfa,0x158));const a243_0x459a=function(_0x510b2e,_0x2dfa2c){_0x510b2e=_0x510b2e-0x0;let _0x459aa7=a243_0x2dfa[_0x510b2e];return _0x459aa7;};const _0x104619=a243_0x459a;'use strict';const attributes=require('./intDynamics365Account.attributes');module[_0x104619('0x0')]=function(_0x816ae4){const _0x1c14da=_0x104619,_0x32ba98=_0x816ae4[_0x1c14da('0x1')](_0x1c14da('0x2'),attributes,{'tableName':_0x1c14da('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x32ba98;}; \ No newline at end of file diff --git a/server/api/intDynamics365Account/intDynamics365Account.rpc.js b/server/api/intDynamics365Account/intDynamics365Account.rpc.js index 2aa669e..5f19556 100644 --- a/server/api/intDynamics365Account/intDynamics365Account.rpc.js +++ b/server/api/intDynamics365Account/intDynamics365Account.rpc.js @@ -1 +1 @@ -const a244_0x2a09=['where','raw','error','catch','model','findAll','../../mysqldb','stringify','limit','include','ShowDynamics365Account','debug','rpc','message','attributes','../../config/logger','info','then','options','map','GetDynamics365Account'];(function(_0x1899f9,_0x2a0956){const _0x115a89=function(_0x518d4a){while(--_0x518d4a){_0x1899f9['push'](_0x1899f9['shift']());}};_0x115a89(++_0x2a0956);}(a244_0x2a09,0x103));const a244_0x115a=function(_0x1899f9,_0x2a0956){_0x1899f9=_0x1899f9-0x0;let _0x115a89=a244_0x2a09[_0x1899f9];return _0x115a89;};const _0x13e1dd=a244_0x115a;'use strict';const _=require('lodash'),db=require(_0x13e1dd('0x14'))['db'],logger=require(_0x13e1dd('0x8'))(_0x13e1dd('0x5'));exports[_0x13e1dd('0xd')]=function(_0x518d4a){const _0x3d8a14=this;return new Promise(function(_0x577331,_0x5c5fd3){const _0x1184c0=a244_0x115a;return db['Dynamics365Account'][_0x1184c0('0x13')]({'raw':_0x518d4a[_0x1184c0('0xb')]?_0x518d4a[_0x1184c0('0xb')][_0x1184c0('0xf')]===undefined?!![]:![]:!![],'where':_0x518d4a[_0x1184c0('0xb')]?_0x518d4a['options'][_0x1184c0('0xe')]||null:null,'attributes':_0x518d4a[_0x1184c0('0xb')]?_0x518d4a[_0x1184c0('0xb')][_0x1184c0('0x7')]||null:null,'limit':_0x518d4a['options']?_0x518d4a['options'][_0x1184c0('0x1')]||null:null,'include':_0x518d4a[_0x1184c0('0xb')]?_0x518d4a[_0x1184c0('0xb')]['include']?_[_0x1184c0('0xc')](_0x518d4a[_0x1184c0('0xb')][_0x1184c0('0x2')],function(_0x1dc8b9){const _0x3a5a04=_0x1184c0;return{'model':db[_0x1dc8b9[_0x3a5a04('0x12')]],'as':_0x1dc8b9['as'],'attributes':_0x1dc8b9['attributes'],'include':_0x1dc8b9[_0x3a5a04('0x2')]?_['map'](_0x1dc8b9[_0x3a5a04('0x2')],function(_0x4e329f){const _0x1559f8=_0x3a5a04;return{'model':db[_0x4e329f['model']],'as':_0x4e329f['as'],'attributes':_0x4e329f[_0x1559f8('0x7')],'include':_0x4e329f[_0x1559f8('0x2')]?_[_0x1559f8('0xc')](_0x4e329f['include'],function(_0x488fd1){const _0x1c8a33=_0x1559f8;return{'model':db[_0x488fd1[_0x1c8a33('0x12')]],'as':_0x488fd1['as'],'attributes':_0x488fd1['attributes']};}):[]};}):[]};}):[]:[]})[_0x1184c0('0xa')](function(_0x3269ea){const _0xbb90ab=_0x1184c0;logger[_0xbb90ab('0x9')](_0xbb90ab('0xd'),_0x518d4a),logger[_0xbb90ab('0x4')]('GetDynamics365Account',_0x518d4a,JSON[_0xbb90ab('0x0')](_0x3269ea)),_0x577331(_0x3269ea);})[_0x1184c0('0x11')](function(_0x129651){const _0x13e48b=_0x1184c0;logger[_0x13e48b('0x10')](_0x13e48b('0xd'),_0x129651['message'],_0x518d4a),_0x5c5fd3(_0x3d8a14[_0x13e48b('0x10')](0x1f4,_0x129651[_0x13e48b('0x6')]));});});},exports[_0x13e1dd('0x3')]=function(_0x2db1aa){const _0x1c20b8=this;return new Promise(function(_0x3fd4a0,_0x182301){const _0xf003a3=a244_0x115a;return db['Dynamics365Account']['findOne']({'raw':_0x2db1aa[_0xf003a3('0xb')]?_0x2db1aa[_0xf003a3('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x2db1aa[_0xf003a3('0xb')]?_0x2db1aa[_0xf003a3('0xb')]['where']||null:null,'attributes':_0x2db1aa['options']?_0x2db1aa[_0xf003a3('0xb')][_0xf003a3('0x7')]||null:null,'include':_0x2db1aa['options']?_0x2db1aa[_0xf003a3('0xb')][_0xf003a3('0x2')]?_[_0xf003a3('0xc')](_0x2db1aa[_0xf003a3('0xb')][_0xf003a3('0x2')],function(_0x3a4a2c){const _0x34cd7b=_0xf003a3;return{'model':db[_0x3a4a2c[_0x34cd7b('0x12')]],'as':_0x3a4a2c['as'],'attributes':_0x3a4a2c[_0x34cd7b('0x7')],'include':_0x3a4a2c[_0x34cd7b('0x2')]?_['map'](_0x3a4a2c['include'],function(_0x4673bc){const _0x502731=_0x34cd7b;return{'model':db[_0x4673bc['model']],'as':_0x4673bc['as'],'attributes':_0x4673bc['attributes'],'include':_0x4673bc[_0x502731('0x2')]?_[_0x502731('0xc')](_0x4673bc['include'],function(_0x2efc94){const _0x4d0d07=_0x502731;return{'model':db[_0x2efc94[_0x4d0d07('0x12')]],'as':_0x2efc94['as'],'attributes':_0x2efc94[_0x4d0d07('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1a49dd){const _0x2c33d5=_0xf003a3;logger[_0x2c33d5('0x9')](_0x2c33d5('0x3'),_0x2db1aa),logger[_0x2c33d5('0x4')]('ShowDynamics365Account',_0x2db1aa,JSON[_0x2c33d5('0x0')](_0x1a49dd)),_0x3fd4a0(_0x1a49dd);})[_0xf003a3('0x11')](function(_0x105bc0){const _0x4951b8=_0xf003a3;logger[_0x4951b8('0x10')]('ShowDynamics365Account',_0x105bc0[_0x4951b8('0x6')],_0x2db1aa),_0x182301(_0x1c20b8[_0x4951b8('0x10')](0x1f4,_0x105bc0[_0x4951b8('0x6')]));});});}; \ No newline at end of file +const a244_0x34a0=['findOne','info','catch','limit','stringify','map','GetDynamics365Account','findAll','Dynamics365Account','message','ShowDynamics365Account','../../config/logger','error','raw','debug','rpc','lodash','model','then','include','options','attributes'];(function(_0x209c25,_0x34a015){const _0x395504=function(_0x2211b2){while(--_0x2211b2){_0x209c25['push'](_0x209c25['shift']());}};_0x395504(++_0x34a015);}(a244_0x34a0,0x1b8));const a244_0x3955=function(_0x209c25,_0x34a015){_0x209c25=_0x209c25-0x0;let _0x395504=a244_0x34a0[_0x209c25];return _0x395504;};const _0x228b65=a244_0x3955;'use strict';const _=require(_0x228b65('0x10')),db=require('../../mysqldb')['db'],logger=require(_0x228b65('0xb'))(_0x228b65('0xf'));exports['GetDynamics365Account']=function(_0x2211b2){const _0x4408cf=this;return new Promise(function(_0x41e447,_0x5e54db){const _0x2b7c2b=a244_0x3955;return db['Dynamics365Account'][_0x2b7c2b('0x7')]({'raw':_0x2211b2[_0x2b7c2b('0x14')]?_0x2211b2[_0x2b7c2b('0x14')][_0x2b7c2b('0xd')]===undefined?!![]:![]:!![],'where':_0x2211b2[_0x2b7c2b('0x14')]?_0x2211b2[_0x2b7c2b('0x14')]['where']||null:null,'attributes':_0x2211b2[_0x2b7c2b('0x14')]?_0x2211b2['options'][_0x2b7c2b('0x15')]||null:null,'limit':_0x2211b2['options']?_0x2211b2[_0x2b7c2b('0x14')][_0x2b7c2b('0x3')]||null:null,'include':_0x2211b2[_0x2b7c2b('0x14')]?_0x2211b2[_0x2b7c2b('0x14')][_0x2b7c2b('0x13')]?_[_0x2b7c2b('0x5')](_0x2211b2['options'][_0x2b7c2b('0x13')],function(_0x103248){const _0x136420=_0x2b7c2b;return{'model':db[_0x103248[_0x136420('0x11')]],'as':_0x103248['as'],'attributes':_0x103248[_0x136420('0x15')],'include':_0x103248['include']?_[_0x136420('0x5')](_0x103248[_0x136420('0x13')],function(_0x2642be){const _0x11f28b=_0x136420;return{'model':db[_0x2642be[_0x11f28b('0x11')]],'as':_0x2642be['as'],'attributes':_0x2642be['attributes'],'include':_0x2642be[_0x11f28b('0x13')]?_[_0x11f28b('0x5')](_0x2642be[_0x11f28b('0x13')],function(_0x81ae31){const _0x496854=_0x11f28b;return{'model':db[_0x81ae31[_0x496854('0x11')]],'as':_0x81ae31['as'],'attributes':_0x81ae31[_0x496854('0x15')]};}):[]};}):[]};}):[]:[]})[_0x2b7c2b('0x12')](function(_0x4c623b){const _0x30a07f=_0x2b7c2b;logger[_0x30a07f('0x1')]('GetDynamics365Account',_0x2211b2),logger[_0x30a07f('0xe')](_0x30a07f('0x6'),_0x2211b2,JSON[_0x30a07f('0x4')](_0x4c623b)),_0x41e447(_0x4c623b);})[_0x2b7c2b('0x2')](function(_0x554ebc){const _0x20eb3e=_0x2b7c2b;logger['error'](_0x20eb3e('0x6'),_0x554ebc['message'],_0x2211b2),_0x5e54db(_0x4408cf[_0x20eb3e('0xc')](0x1f4,_0x554ebc[_0x20eb3e('0x9')]));});});},exports[_0x228b65('0xa')]=function(_0x18b32c){const _0x1ac0ab=this;return new Promise(function(_0x14f74f,_0x52b180){const _0x26da38=a244_0x3955;return db[_0x26da38('0x8')][_0x26da38('0x0')]({'raw':_0x18b32c[_0x26da38('0x14')]?_0x18b32c['options'][_0x26da38('0xd')]===undefined?!![]:![]:!![],'where':_0x18b32c['options']?_0x18b32c[_0x26da38('0x14')]['where']||null:null,'attributes':_0x18b32c['options']?_0x18b32c[_0x26da38('0x14')]['attributes']||null:null,'include':_0x18b32c[_0x26da38('0x14')]?_0x18b32c[_0x26da38('0x14')][_0x26da38('0x13')]?_['map'](_0x18b32c[_0x26da38('0x14')][_0x26da38('0x13')],function(_0x1bea1a){const _0x21c40f=_0x26da38;return{'model':db[_0x1bea1a[_0x21c40f('0x11')]],'as':_0x1bea1a['as'],'attributes':_0x1bea1a[_0x21c40f('0x15')],'include':_0x1bea1a[_0x21c40f('0x13')]?_[_0x21c40f('0x5')](_0x1bea1a[_0x21c40f('0x13')],function(_0x2856dc){const _0x5095e4=_0x21c40f;return{'model':db[_0x2856dc[_0x5095e4('0x11')]],'as':_0x2856dc['as'],'attributes':_0x2856dc['attributes'],'include':_0x2856dc[_0x5095e4('0x13')]?_[_0x5095e4('0x5')](_0x2856dc[_0x5095e4('0x13')],function(_0x3538d2){const _0x2f3ff5=_0x5095e4;return{'model':db[_0x3538d2[_0x2f3ff5('0x11')]],'as':_0x3538d2['as'],'attributes':_0x3538d2[_0x2f3ff5('0x15')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4359c7){const _0x2c0476=_0x26da38;logger[_0x2c0476('0x1')](_0x2c0476('0xa'),_0x18b32c),logger[_0x2c0476('0xe')](_0x2c0476('0xa'),_0x18b32c,JSON[_0x2c0476('0x4')](_0x4359c7)),_0x14f74f(_0x4359c7);})[_0x26da38('0x2')](function(_0x2e886a){const _0x38c820=_0x26da38;logger[_0x38c820('0xc')](_0x38c820('0xa'),_0x2e886a[_0x38c820('0x9')],_0x18b32c),_0x52b180(_0x1ac0ab[_0x38c820('0xc')](0x1f4,_0x2e886a['message']));});});}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/index.js b/server/api/intDynamics365Configuration/index.js index a1b4f6b..b161922 100644 --- a/server/api/intDynamics365Configuration/index.js +++ b/server/api/intDynamics365Configuration/index.js @@ -1 +1 @@ -const a245_0x2aab=['index','isAuthenticated','../../components/auth/service','delete','/:id','get','create','destroy','/:id/descriptions','express','show','getDescriptions','update','post','/:id/fields','/:id/subjects','getSubjects'];(function(_0x5c5f49,_0x2aabae){const _0x5d6ee6=function(_0x14168f){while(--_0x14168f){_0x5c5f49['push'](_0x5c5f49['shift']());}};_0x5d6ee6(++_0x2aabae);}(a245_0x2aab,0x1b7));const a245_0x5d6e=function(_0x5c5f49,_0x2aabae){_0x5c5f49=_0x5c5f49-0x0;let _0x5d6ee6=a245_0x2aab[_0x5c5f49];return _0x5d6ee6;};const _0x5626d2=a245_0x5d6e;'use strict';const express=require(_0x5626d2('0xc')),router=express['Router'](),auth=require(_0x5626d2('0x5')),controller=require('./intDynamics365Configuration.controller');router[_0x5626d2('0x8')]('/',auth[_0x5626d2('0x4')](),controller[_0x5626d2('0x3')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x5626d2('0xd')]),router[_0x5626d2('0x8')](_0x5626d2('0x0'),auth[_0x5626d2('0x4')](),controller['getFields']),router['get'](_0x5626d2('0x1'),auth[_0x5626d2('0x4')](),controller[_0x5626d2('0x2')]),router['get'](_0x5626d2('0xb'),auth['isAuthenticated'](),controller[_0x5626d2('0xe')]),router[_0x5626d2('0x10')]('/',auth[_0x5626d2('0x4')](),controller[_0x5626d2('0x9')]),router['put'](_0x5626d2('0x7'),auth['isAuthenticated'](),controller[_0x5626d2('0xf')]),router[_0x5626d2('0x6')](_0x5626d2('0x7'),auth[_0x5626d2('0x4')](),controller[_0x5626d2('0xa')]),module['exports']=router; \ No newline at end of file +const a245_0x59e7=['/:id','getSubjects','isAuthenticated','destroy','/:id/subjects','show','post','express','getDescriptions','get','exports','getFields','/:id/fields','create','delete','index','Router','update'];(function(_0x2befb0,_0x59e7e0){const _0x3a883f=function(_0x3342f2){while(--_0x3342f2){_0x2befb0['push'](_0x2befb0['shift']());}};_0x3a883f(++_0x59e7e0);}(a245_0x59e7,0xcb));const a245_0x3a88=function(_0x2befb0,_0x59e7e0){_0x2befb0=_0x2befb0-0x0;let _0x3a883f=a245_0x59e7[_0x2befb0];return _0x3a883f;};const _0x13ca25=a245_0x3a88;'use strict';const express=require(_0x13ca25('0x2')),router=express[_0x13ca25('0xb')](),auth=require('../../components/auth/service'),controller=require('./intDynamics365Configuration.controller');router['get']('/',auth[_0x13ca25('0xf')](),controller[_0x13ca25('0xa')]),router[_0x13ca25('0x4')](_0x13ca25('0xd'),auth[_0x13ca25('0xf')](),controller[_0x13ca25('0x0')]),router[_0x13ca25('0x4')](_0x13ca25('0x7'),auth[_0x13ca25('0xf')](),controller[_0x13ca25('0x6')]),router['get'](_0x13ca25('0x11'),auth[_0x13ca25('0xf')](),controller[_0x13ca25('0xe')]),router[_0x13ca25('0x4')]('/:id/descriptions',auth[_0x13ca25('0xf')](),controller[_0x13ca25('0x3')]),router[_0x13ca25('0x1')]('/',auth[_0x13ca25('0xf')](),controller[_0x13ca25('0x8')]),router['put']('/:id',auth[_0x13ca25('0xf')](),controller[_0x13ca25('0xc')]),router[_0x13ca25('0x9')]('/:id',auth['isAuthenticated'](),controller[_0x13ca25('0x10')]),module[_0x13ca25('0x5')]=router; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js index 2efdc19..aadca01 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.attributes.js @@ -1 +1 @@ -const a246_0x3ac3=['incident','sequelize','STRING','ENUM','phonecall'];(function(_0x16fbca,_0x3ac37e){const _0x164d3f=function(_0x44cd2e){while(--_0x44cd2e){_0x16fbca['push'](_0x16fbca['shift']());}};_0x164d3f(++_0x3ac37e);}(a246_0x3ac3,0x8e));const a246_0x164d=function(_0x16fbca,_0x3ac37e){_0x16fbca=_0x16fbca-0x0;let _0x164d3f=a246_0x3ac3[_0x16fbca];return _0x164d3f;};const _0x33bd20=a246_0x164d;'use strict';const Sequelize=require(_0x33bd20('0x4'));module['exports']={'name':{'type':Sequelize[_0x33bd20('0x0')]},'description':{'type':Sequelize[_0x33bd20('0x0')]},'ticketType':{'type':Sequelize[_0x33bd20('0x1')](_0x33bd20('0x3'),_0x33bd20('0x2')),'defaultValue':_0x33bd20('0x3')}}; \ No newline at end of file +const a246_0x473f=['incident','ENUM','sequelize','exports','STRING','phonecall'];(function(_0x366f66,_0x473fe7){const _0x1c3afd=function(_0x2fab98){while(--_0x2fab98){_0x366f66['push'](_0x366f66['shift']());}};_0x1c3afd(++_0x473fe7);}(a246_0x473f,0x86));const a246_0x1c3a=function(_0x366f66,_0x473fe7){_0x366f66=_0x366f66-0x0;let _0x1c3afd=a246_0x473f[_0x366f66];return _0x1c3afd;};const _0x18958d=a246_0x1c3a;'use strict';const Sequelize=require(_0x18958d('0x0'));module[_0x18958d('0x1')]={'name':{'type':Sequelize[_0x18958d('0x2')]},'description':{'type':Sequelize['STRING']},'ticketType':{'type':Sequelize[_0x18958d('0x5')](_0x18958d('0x4'),_0x18958d('0x3')),'defaultValue':_0x18958d('0x4')}}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js index b00144d..5d2373a 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.controller.js @@ -1 +1 @@ -const a247_0xeb2f=['limit','Dynamics365Configuration','getFields','show','body','intersection','order','findAll','then','rawAttributes','sort','attributes','getSubjects','map','pick','index','includeAll','include','Dynamics365Field','../../components/parsers/qs','params','length','fields','key','catch','query','findOne','offset','create','like','update','type','where','count','send','getDescriptions','Content-Range','undefined','name','json','error','destroy','merge','filters','stack','set','nolimit','fieldName','model','filter','options','end','keys','status'];(function(_0x2905a4,_0xeb2f3d){const _0x3cd566=function(_0x6c8786){while(--_0x6c8786){_0x2905a4['push'](_0x2905a4['shift']());}};_0x3cd566(++_0xeb2f3d);}(a247_0xeb2f,0x128));const a247_0x3cd5=function(_0x2905a4,_0xeb2f3d){_0x2905a4=_0x2905a4-0x0;let _0x3cd566=a247_0xeb2f[_0x2905a4];return _0x3cd566;};const _0x45763b=a247_0x3cd5;'use strict';const _=require('lodash'),qs=require(_0x45763b('0x2f')),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x6c8786,_0x24ca82){return _0x24ca82=_0x24ca82||0xc8,function(_0x52b1c0){const _0x815dc5=a247_0x3cd5;if(_0x52b1c0)return _0x6c8786['status'](_0x24ca82)[_0x815dc5('0xd')](_0x52b1c0);};}function respondWithFilteredResult(_0x5914f1,_0x5a728d){return function(_0x231584){const _0x3eb6b8=a247_0x3cd5;if(_0x231584){const _0x3e5899=_0x231584[_0x3eb6b8('0x7')],_0x18de25=_0x5a728d[_0x3eb6b8('0x1')];let _0x590e18=_0x5a728d[_0x3eb6b8('0x1')]+_0x5a728d[_0x3eb6b8('0x1c')],_0x133e26;return _0x590e18>=_0x3e5899?(_0x590e18=_0x3e5899,_0x133e26=0xc8):_0x133e26=0xce,_0x5914f1['status'](_0x133e26),_0x5914f1[_0x3eb6b8('0x13')](_0x3eb6b8('0xa'),_0x18de25+'-'+_0x590e18+'/'+_0x3e5899)[_0x3eb6b8('0xd')](_0x231584);}return null;};}function saveUpdates(_0x58b4f0){return function(_0x329ef2){const _0x131590=a247_0x3cd5;if(_0x329ef2)return _0x329ef2['update'](_0x58b4f0)[_0x131590('0x24')](function(_0x7e2c02){return _0x7e2c02;});return null;};}function removeEntity(_0x594a87){return function(_0x5b34cb){const _0x2943be=a247_0x3cd5;if(_0x5b34cb)return _0x5b34cb[_0x2943be('0xf')]()['then'](function(){const _0x296b8e=_0x2943be;_0x594a87[_0x296b8e('0x1b')](0xcc)[_0x296b8e('0x19')]();});};}function handleEntityNotFound(_0x52413e){return function(_0x46e92e){return!_0x46e92e&&_0x52413e['sendStatus'](0x194),_0x46e92e;};}function handleError(_0x142c27,_0x8ead7){return _0x8ead7=_0x8ead7||0x1f4,function(_0x49d90f){const _0x2b3f6d=a247_0x3cd5;logger[_0x2b3f6d('0xe')](_0x49d90f[_0x2b3f6d('0x12')]),_0x49d90f['name']&&delete _0x49d90f['name'],_0x142c27[_0x2b3f6d('0x1b')](_0x8ead7)[_0x2b3f6d('0x8')](_0x49d90f);};}exports[_0x45763b('0x2b')]=function(_0x48b4b3,_0x2d894e){const _0x1bcb2c=_0x45763b;let _0x53bac8={};const _0x5654b5={},_0x4fb5ab={'count':0x0,'rows':[]},_0x30007f=_['map'](db[_0x1bcb2c('0x1d')][_0x1bcb2c('0x25')],function(_0x3fddc8){const _0x3a695a=_0x1bcb2c;return{'name':_0x3fddc8[_0x3a695a('0x15')],'type':_0x3fddc8[_0x3a695a('0x5')][_0x3a695a('0x33')]};});_0x5654b5['model']=_[_0x1bcb2c('0x29')](_0x30007f,_0x1bcb2c('0xc')),_0x5654b5[_0x1bcb2c('0x35')]=_[_0x1bcb2c('0x1a')](_0x48b4b3[_0x1bcb2c('0x35')]),_0x5654b5[_0x1bcb2c('0x11')]=_[_0x1bcb2c('0x21')](_0x5654b5[_0x1bcb2c('0x16')],_0x5654b5[_0x1bcb2c('0x35')]),_0x53bac8[_0x1bcb2c('0x27')]=_[_0x1bcb2c('0x21')](_0x5654b5[_0x1bcb2c('0x16')],qs[_0x1bcb2c('0x32')](_0x48b4b3['query'][_0x1bcb2c('0x32')])),_0x53bac8['attributes']=_0x53bac8[_0x1bcb2c('0x27')][_0x1bcb2c('0x31')]?_0x53bac8[_0x1bcb2c('0x27')]:_0x5654b5[_0x1bcb2c('0x16')];typeof _0x48b4b3[_0x1bcb2c('0x35')][_0x1bcb2c('0x14')]===_0x1bcb2c('0xb')&&(_0x53bac8[_0x1bcb2c('0x1c')]=qs['limit'](_0x48b4b3[_0x1bcb2c('0x35')]['limit']),_0x53bac8[_0x1bcb2c('0x1')]=qs['offset'](_0x48b4b3[_0x1bcb2c('0x35')][_0x1bcb2c('0x1')]));_0x53bac8[_0x1bcb2c('0x22')]=qs[_0x1bcb2c('0x26')](_0x48b4b3[_0x1bcb2c('0x35')]['sort']),_0x53bac8[_0x1bcb2c('0x6')]=qs[_0x1bcb2c('0x11')](_['pick'](_0x48b4b3[_0x1bcb2c('0x35')],_0x5654b5[_0x1bcb2c('0x11')]),_0x30007f);_0x48b4b3[_0x1bcb2c('0x35')][_0x1bcb2c('0x17')]&&(_0x53bac8[_0x1bcb2c('0x6')]=_[_0x1bcb2c('0x10')](_0x53bac8[_0x1bcb2c('0x6')],{[Op['or']]:_[_0x1bcb2c('0x29')](_0x30007f,function(_0x210f67){const _0x258103=_0x1bcb2c;if(_0x210f67[_0x258103('0x5')]!=='VIRTUAL'){const _0x2acf00={};return _0x2acf00[_0x210f67[_0x258103('0xc')]]={[Op[_0x258103('0x3')]]:'%'+_0x48b4b3[_0x258103('0x35')]['filter']+'%'},_0x2acf00;}})}));_0x53bac8=_[_0x1bcb2c('0x10')]({},_0x53bac8,_0x48b4b3[_0x1bcb2c('0x18')]);const _0x104065={'where':_0x53bac8[_0x1bcb2c('0x6')]};return db[_0x1bcb2c('0x1d')][_0x1bcb2c('0x7')](_0x104065)[_0x1bcb2c('0x24')](function(_0x4853df){const _0xc87f19=_0x1bcb2c;return _0x4fb5ab[_0xc87f19('0x7')]=_0x4853df,_0x48b4b3[_0xc87f19('0x35')]['includeAll']&&(_0x53bac8[_0xc87f19('0x2d')]=[{'all':!![]}]),db['Dynamics365Configuration'][_0xc87f19('0x23')](_0x53bac8);})[_0x1bcb2c('0x24')](function(_0xa286b4){return _0x4fb5ab['rows']=_0xa286b4,_0x4fb5ab;})[_0x1bcb2c('0x24')](respondWithFilteredResult(_0x2d894e,_0x53bac8))[_0x1bcb2c('0x34')](handleError(_0x2d894e,null));},exports[_0x45763b('0x1f')]=function(_0x330cf6,_0x3bd255){const _0x5b4eaf=_0x45763b;let _0x76b2f={'raw':![],'where':{'id':_0x330cf6['params']['id']}};const _0x494883={};return _0x494883['model']=_[_0x5b4eaf('0x1a')](db[_0x5b4eaf('0x1d')][_0x5b4eaf('0x25')]),_0x494883['query']=_['keys'](_0x330cf6[_0x5b4eaf('0x35')]),_0x494883[_0x5b4eaf('0x11')]=_['intersection'](_0x494883[_0x5b4eaf('0x16')],_0x494883[_0x5b4eaf('0x35')]),_0x76b2f[_0x5b4eaf('0x27')]=_['intersection'](_0x494883[_0x5b4eaf('0x16')],qs[_0x5b4eaf('0x32')](_0x330cf6['query'][_0x5b4eaf('0x32')])),_0x76b2f[_0x5b4eaf('0x27')]=_0x76b2f[_0x5b4eaf('0x27')][_0x5b4eaf('0x31')]?_0x76b2f['attributes']:_0x494883[_0x5b4eaf('0x16')],_0x330cf6[_0x5b4eaf('0x35')][_0x5b4eaf('0x2c')]&&(_0x76b2f[_0x5b4eaf('0x2d')]=[{'all':!![]}]),_0x76b2f=_[_0x5b4eaf('0x10')]({},_0x76b2f,_0x330cf6[_0x5b4eaf('0x18')]),db[_0x5b4eaf('0x1d')][_0x5b4eaf('0x0')](_0x76b2f)[_0x5b4eaf('0x24')](handleEntityNotFound(_0x3bd255,null))['then'](respondWithResult(_0x3bd255,null))['catch'](handleError(_0x3bd255,null));},exports['create']=function(_0x180527,_0x18aacc){const _0x1b87b1=_0x45763b;return db[_0x1b87b1('0x1d')][_0x1b87b1('0x2')](_0x180527[_0x1b87b1('0x20')],{})[_0x1b87b1('0x24')](respondWithResult(_0x18aacc,0xc9))['catch'](handleError(_0x18aacc,null));},exports[_0x45763b('0x4')]=function(_0x684a2a,_0x40b540){const _0x363d57=_0x45763b;return _0x684a2a[_0x363d57('0x20')]['id']&&delete _0x684a2a['body']['id'],db[_0x363d57('0x1d')][_0x363d57('0x0')]({'where':{'id':_0x684a2a[_0x363d57('0x30')]['id']}})[_0x363d57('0x24')](handleEntityNotFound(_0x40b540,null))[_0x363d57('0x24')](saveUpdates(_0x684a2a['body'],null))[_0x363d57('0x24')](respondWithResult(_0x40b540,null))[_0x363d57('0x34')](handleError(_0x40b540,null));},exports[_0x45763b('0xf')]=function(_0x375fd4,_0x2e24a3){const _0x3099dd=_0x45763b;return db[_0x3099dd('0x1d')][_0x3099dd('0x0')]({'where':{'id':_0x375fd4[_0x3099dd('0x30')]['id']}})[_0x3099dd('0x24')](handleEntityNotFound(_0x2e24a3,null))[_0x3099dd('0x24')](removeEntity(_0x2e24a3,null))[_0x3099dd('0x34')](handleError(_0x2e24a3,null));},exports['getFields']=function(_0x192407,_0x18264a){const _0x3b19e2=_0x45763b;let _0x3b2d5d={};const _0x5187c2={};let _0x7998c1,_0x1dfd8d;return db[_0x3b19e2('0x1d')][_0x3b19e2('0x0')]({'where':{'id':_0x192407[_0x3b19e2('0x30')]['id']}})['then'](handleEntityNotFound(_0x18264a,null))[_0x3b19e2('0x24')](function(_0x4c14a2){const _0x1f5e0b=_0x3b19e2;if(_0x4c14a2)return _0x7998c1=_0x4c14a2,_0x5187c2['model']=_[_0x1f5e0b('0x1a')](db[_0x1f5e0b('0x2e')][_0x1f5e0b('0x25')]),_0x5187c2[_0x1f5e0b('0x35')]=_[_0x1f5e0b('0x1a')](_0x192407[_0x1f5e0b('0x35')]),_0x5187c2[_0x1f5e0b('0x11')]=_['intersection'](_0x5187c2[_0x1f5e0b('0x16')],_0x5187c2['query']),_0x3b2d5d[_0x1f5e0b('0x27')]=_['intersection'](_0x5187c2['model'],qs['fields'](_0x192407[_0x1f5e0b('0x35')][_0x1f5e0b('0x32')])),_0x3b2d5d['attributes']=_0x3b2d5d[_0x1f5e0b('0x27')][_0x1f5e0b('0x31')]?_0x3b2d5d[_0x1f5e0b('0x27')]:_0x5187c2[_0x1f5e0b('0x16')],_0x3b2d5d[_0x1f5e0b('0x22')]=qs[_0x1f5e0b('0x26')](_0x192407[_0x1f5e0b('0x35')][_0x1f5e0b('0x26')]),_0x3b2d5d[_0x1f5e0b('0x6')]=qs[_0x1f5e0b('0x11')](_[_0x1f5e0b('0x2a')](_0x192407[_0x1f5e0b('0x35')],_0x5187c2[_0x1f5e0b('0x11')])),_0x192407[_0x1f5e0b('0x35')]['filter']&&(_0x3b2d5d['where']=_['merge'](_0x3b2d5d[_0x1f5e0b('0x6')],{[Op['or']]:_['map'](_0x3b2d5d[_0x1f5e0b('0x27')],function(_0x1897f2){const _0x26fdd6=_0x1f5e0b,_0x455c0a={};return _0x455c0a[_0x1897f2]={[Op[_0x26fdd6('0x3')]]:'%'+_0x192407['query'][_0x26fdd6('0x17')]+'%'},_0x455c0a;})})),_0x3b2d5d=_[_0x1f5e0b('0x10')]({},_0x3b2d5d,_0x192407[_0x1f5e0b('0x18')]),_0x7998c1[_0x1f5e0b('0x1e')](_0x3b2d5d);})[_0x3b19e2('0x24')](function(_0x37d354){const _0x1a249b=_0x3b19e2;if(_0x37d354)return _0x1dfd8d=_0x37d354['length'],typeof _0x192407[_0x1a249b('0x35')][_0x1a249b('0x14')]==='undefined'&&(_0x3b2d5d[_0x1a249b('0x1c')]=qs[_0x1a249b('0x1c')](_0x192407[_0x1a249b('0x35')][_0x1a249b('0x1c')]),_0x3b2d5d[_0x1a249b('0x1')]=qs[_0x1a249b('0x1')](_0x192407['query'][_0x1a249b('0x1')])),_0x7998c1[_0x1a249b('0x1e')](_0x3b2d5d);})[_0x3b19e2('0x24')](function(_0x245cc2){if(_0x245cc2)return _0x245cc2?{'count':_0x1dfd8d,'rows':_0x245cc2}:null;})[_0x3b19e2('0x24')](respondWithResult(_0x18264a,null))['catch'](handleError(_0x18264a,null));},exports[_0x45763b('0x28')]=function(_0x364780,_0x4845a5){const _0x2e2140=_0x45763b;let _0x2edc7f={};const _0x6a80b1={};let _0x3a4058,_0x2c5680;return db[_0x2e2140('0x1d')][_0x2e2140('0x0')]({'where':{'id':_0x364780[_0x2e2140('0x30')]['id']}})['then'](handleEntityNotFound(_0x4845a5,null))[_0x2e2140('0x24')](function(_0x4bd0d2){const _0x20bf1c=_0x2e2140;if(_0x4bd0d2)return _0x3a4058=_0x4bd0d2,_0x6a80b1[_0x20bf1c('0x16')]=_['keys'](db['Dynamics365Field']['rawAttributes']),_0x6a80b1[_0x20bf1c('0x35')]=_[_0x20bf1c('0x1a')](_0x364780[_0x20bf1c('0x35')]),_0x6a80b1[_0x20bf1c('0x11')]=_[_0x20bf1c('0x21')](_0x6a80b1['model'],_0x6a80b1[_0x20bf1c('0x35')]),_0x2edc7f[_0x20bf1c('0x27')]=_[_0x20bf1c('0x21')](_0x6a80b1[_0x20bf1c('0x16')],qs[_0x20bf1c('0x32')](_0x364780[_0x20bf1c('0x35')][_0x20bf1c('0x32')])),_0x2edc7f[_0x20bf1c('0x27')]=_0x2edc7f[_0x20bf1c('0x27')][_0x20bf1c('0x31')]?_0x2edc7f[_0x20bf1c('0x27')]:_0x6a80b1['model'],_0x2edc7f[_0x20bf1c('0x22')]=qs[_0x20bf1c('0x26')](_0x364780[_0x20bf1c('0x35')]['sort']),_0x2edc7f[_0x20bf1c('0x6')]=qs[_0x20bf1c('0x11')](_[_0x20bf1c('0x2a')](_0x364780[_0x20bf1c('0x35')],_0x6a80b1[_0x20bf1c('0x11')])),_0x364780[_0x20bf1c('0x35')]['filter']&&(_0x2edc7f[_0x20bf1c('0x6')]=_['merge'](_0x2edc7f[_0x20bf1c('0x6')],{[Op['or']]:_['map'](_0x2edc7f[_0x20bf1c('0x27')],function(_0x577f5a){const _0x251e5f=_0x20bf1c,_0x4282f7={};return _0x4282f7[_0x577f5a]={[Op['like']]:'%'+_0x364780[_0x251e5f('0x35')][_0x251e5f('0x17')]+'%'},_0x4282f7;})})),_0x2edc7f=_[_0x20bf1c('0x10')]({},_0x2edc7f,_0x364780['options']),_0x3a4058[_0x20bf1c('0x28')](_0x2edc7f);})[_0x2e2140('0x24')](function(_0x18181c){const _0x26ec70=_0x2e2140;if(_0x18181c)return _0x2c5680=_0x18181c[_0x26ec70('0x31')],typeof _0x364780['query'][_0x26ec70('0x14')]===_0x26ec70('0xb')&&(_0x2edc7f[_0x26ec70('0x1c')]=qs[_0x26ec70('0x1c')](_0x364780['query'][_0x26ec70('0x1c')]),_0x2edc7f[_0x26ec70('0x1')]=qs[_0x26ec70('0x1')](_0x364780[_0x26ec70('0x35')][_0x26ec70('0x1')])),_0x3a4058[_0x26ec70('0x28')](_0x2edc7f);})[_0x2e2140('0x24')](function(_0x5b74a8){if(_0x5b74a8)return _0x5b74a8?{'count':_0x2c5680,'rows':_0x5b74a8}:null;})[_0x2e2140('0x24')](respondWithResult(_0x4845a5,null))[_0x2e2140('0x34')](handleError(_0x4845a5,null));},exports[_0x45763b('0x9')]=function(_0x245c54,_0x4597a6){const _0x4aaa89=_0x45763b;let _0x41ab8c={};const _0x102c4c={};let _0x1b87ff,_0x2cf765;return db[_0x4aaa89('0x1d')][_0x4aaa89('0x0')]({'where':{'id':_0x245c54[_0x4aaa89('0x30')]['id']}})[_0x4aaa89('0x24')](handleEntityNotFound(_0x4597a6,null))[_0x4aaa89('0x24')](function(_0x4d6756){const _0x4c80ee=_0x4aaa89;if(_0x4d6756)return _0x1b87ff=_0x4d6756,_0x102c4c[_0x4c80ee('0x16')]=_['keys'](db['Dynamics365Field'][_0x4c80ee('0x25')]),_0x102c4c[_0x4c80ee('0x35')]=_[_0x4c80ee('0x1a')](_0x245c54[_0x4c80ee('0x35')]),_0x102c4c[_0x4c80ee('0x11')]=_[_0x4c80ee('0x21')](_0x102c4c[_0x4c80ee('0x16')],_0x102c4c['query']),_0x41ab8c[_0x4c80ee('0x27')]=_[_0x4c80ee('0x21')](_0x102c4c[_0x4c80ee('0x16')],qs[_0x4c80ee('0x32')](_0x245c54['query'][_0x4c80ee('0x32')])),_0x41ab8c['attributes']=_0x41ab8c[_0x4c80ee('0x27')][_0x4c80ee('0x31')]?_0x41ab8c[_0x4c80ee('0x27')]:_0x102c4c[_0x4c80ee('0x16')],_0x41ab8c[_0x4c80ee('0x22')]=qs[_0x4c80ee('0x26')](_0x245c54[_0x4c80ee('0x35')][_0x4c80ee('0x26')]),_0x41ab8c[_0x4c80ee('0x6')]=qs[_0x4c80ee('0x11')](_[_0x4c80ee('0x2a')](_0x245c54[_0x4c80ee('0x35')],_0x102c4c[_0x4c80ee('0x11')])),_0x245c54['query'][_0x4c80ee('0x17')]&&(_0x41ab8c[_0x4c80ee('0x6')]=_[_0x4c80ee('0x10')](_0x41ab8c[_0x4c80ee('0x6')],{[Op['or']]:_[_0x4c80ee('0x29')](_0x41ab8c[_0x4c80ee('0x27')],function(_0x18c14d){const _0x88ce68=_0x4c80ee,_0x500f61={};return _0x500f61[_0x18c14d]={[Op[_0x88ce68('0x3')]]:'%'+_0x245c54['query'][_0x88ce68('0x17')]+'%'},_0x500f61;})})),_0x41ab8c=_['merge']({},_0x41ab8c,_0x245c54[_0x4c80ee('0x18')]),_0x1b87ff[_0x4c80ee('0x9')](_0x41ab8c);})[_0x4aaa89('0x24')](function(_0xe0008){const _0x5297f3=_0x4aaa89;if(_0xe0008)return _0x2cf765=_0xe0008[_0x5297f3('0x31')],typeof _0x245c54[_0x5297f3('0x35')][_0x5297f3('0x14')]==='undefined'&&(_0x41ab8c[_0x5297f3('0x1c')]=qs['limit'](_0x245c54['query']['limit']),_0x41ab8c[_0x5297f3('0x1')]=qs[_0x5297f3('0x1')](_0x245c54[_0x5297f3('0x35')][_0x5297f3('0x1')])),_0x1b87ff[_0x5297f3('0x9')](_0x41ab8c);})[_0x4aaa89('0x24')](function(_0x4b03da){if(_0x4b03da)return _0x4b03da?{'count':_0x2cf765,'rows':_0x4b03da}:null;})[_0x4aaa89('0x24')](respondWithResult(_0x4597a6,null))['catch'](handleError(_0x4597a6,null));}; \ No newline at end of file +const a247_0x3766=['include','api','options','set','intersection','getDescriptions','sequelize','index','destroy','nolimit','update','query','create','includeAll','sort','sendStatus','model','getSubjects','getFields','../../config/logger','findAll','catch','type','keys','where','../../mysqldb','pick','merge','Dynamics365Configuration','then','end','rawAttributes','map','name','like','length','error','key','attributes','limit','status','undefined','Dynamics365Field','count','filter','offset','filters','json','params','body','findOne','order','fields'];(function(_0x30d0bc,_0x3766fc){const _0x2343de=function(_0x1c9160){while(--_0x1c9160){_0x30d0bc['push'](_0x30d0bc['shift']());}};_0x2343de(++_0x3766fc);}(a247_0x3766,0x67));const a247_0x2343=function(_0x30d0bc,_0x3766fc){_0x30d0bc=_0x30d0bc-0x0;let _0x2343de=a247_0x3766[_0x30d0bc];return _0x2343de;};const _0x422fb6=a247_0x2343;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x422fb6('0x16'))(_0x422fb6('0x4')),db=require(_0x422fb6('0x1c'))['db'],{Op}=require(_0x422fb6('0x9'));function respondWithResult(_0x1c9160,_0x1b0449){return _0x1b0449=_0x1b0449||0xc8,function(_0x5a2f46){const _0x4c10f6=a247_0x2343;if(_0x5a2f46)return _0x1c9160['status'](_0x1b0449)[_0x4c10f6('0x32')](_0x5a2f46);};}function respondWithFilteredResult(_0x5e9d5b,_0x2bce7){return function(_0x545000){const _0x901c9d=a247_0x2343;if(_0x545000){const _0xf5b2ff=_0x545000[_0x901c9d('0x2e')],_0x5981b9=_0x2bce7['offset'];let _0x38927a=_0x2bce7['offset']+_0x2bce7[_0x901c9d('0x2a')],_0x2c3619;return _0x38927a>=_0xf5b2ff?(_0x38927a=_0xf5b2ff,_0x2c3619=0xc8):_0x2c3619=0xce,_0x5e9d5b[_0x901c9d('0x2b')](_0x2c3619),_0x5e9d5b[_0x901c9d('0x6')]('Content-Range',_0x5981b9+'-'+_0x38927a+'/'+_0xf5b2ff)['json'](_0x545000);}return null;};}function saveUpdates(_0x14288b){return function(_0x593d1d){if(_0x593d1d)return _0x593d1d['update'](_0x14288b)['then'](function(_0x5c753f){return _0x5c753f;});return null;};}function removeEntity(_0x4d746f){return function(_0x51b00a){const _0xd1d540=a247_0x2343;if(_0x51b00a)return _0x51b00a[_0xd1d540('0xb')]()[_0xd1d540('0x20')](function(){const _0x1c4a2e=_0xd1d540;_0x4d746f[_0x1c4a2e('0x2b')](0xcc)[_0x1c4a2e('0x21')]();});};}function handleEntityNotFound(_0x454729){return function(_0x51a975){const _0x3a7dcb=a247_0x2343;return!_0x51a975&&_0x454729[_0x3a7dcb('0x12')](0x194),_0x51a975;};}function handleError(_0x308f5f,_0x4f95da){return _0x4f95da=_0x4f95da||0x1f4,function(_0x3772e7){const _0x50fa92=a247_0x2343;logger[_0x50fa92('0x27')](_0x3772e7['stack']),_0x3772e7[_0x50fa92('0x24')]&&delete _0x3772e7[_0x50fa92('0x24')],_0x308f5f[_0x50fa92('0x2b')](_0x4f95da)['send'](_0x3772e7);};}exports[_0x422fb6('0xa')]=function(_0x558ea5,_0x10751a){const _0x16e13b=_0x422fb6;let _0x40c180={};const _0x982178={},_0x46ba01={'count':0x0,'rows':[]},_0x18872a=_[_0x16e13b('0x23')](db['Dynamics365Configuration'][_0x16e13b('0x22')],function(_0x147ace){const _0x426e77=_0x16e13b;return{'name':_0x147ace['fieldName'],'type':_0x147ace[_0x426e77('0x19')][_0x426e77('0x28')]};});_0x982178['model']=_['map'](_0x18872a,_0x16e13b('0x24')),_0x982178[_0x16e13b('0xe')]=_[_0x16e13b('0x1a')](_0x558ea5[_0x16e13b('0xe')]),_0x982178[_0x16e13b('0x31')]=_[_0x16e13b('0x7')](_0x982178[_0x16e13b('0x13')],_0x982178['query']),_0x40c180[_0x16e13b('0x29')]=_[_0x16e13b('0x7')](_0x982178['model'],qs[_0x16e13b('0x2')](_0x558ea5[_0x16e13b('0xe')][_0x16e13b('0x2')])),_0x40c180['attributes']=_0x40c180['attributes'][_0x16e13b('0x26')]?_0x40c180[_0x16e13b('0x29')]:_0x982178[_0x16e13b('0x13')];typeof _0x558ea5[_0x16e13b('0xe')]['nolimit']==='undefined'&&(_0x40c180[_0x16e13b('0x2a')]=qs[_0x16e13b('0x2a')](_0x558ea5['query'][_0x16e13b('0x2a')]),_0x40c180[_0x16e13b('0x30')]=qs[_0x16e13b('0x30')](_0x558ea5[_0x16e13b('0xe')][_0x16e13b('0x30')]));_0x40c180[_0x16e13b('0x1')]=qs[_0x16e13b('0x11')](_0x558ea5['query'][_0x16e13b('0x11')]),_0x40c180[_0x16e13b('0x1b')]=qs['filters'](_['pick'](_0x558ea5['query'],_0x982178[_0x16e13b('0x31')]),_0x18872a);_0x558ea5[_0x16e13b('0xe')][_0x16e13b('0x2f')]&&(_0x40c180[_0x16e13b('0x1b')]=_[_0x16e13b('0x1e')](_0x40c180['where'],{[Op['or']]:_[_0x16e13b('0x23')](_0x18872a,function(_0xacd12d){const _0xe64819=_0x16e13b;if(_0xacd12d[_0xe64819('0x19')]!=='VIRTUAL'){const _0x10d804={};return _0x10d804[_0xacd12d[_0xe64819('0x24')]]={[Op[_0xe64819('0x25')]]:'%'+_0x558ea5[_0xe64819('0xe')]['filter']+'%'},_0x10d804;}})}));_0x40c180=_[_0x16e13b('0x1e')]({},_0x40c180,_0x558ea5['options']);const _0x5a50d5={'where':_0x40c180['where']};return db[_0x16e13b('0x1f')][_0x16e13b('0x2e')](_0x5a50d5)['then'](function(_0x39e802){const _0x91aabe=_0x16e13b;return _0x46ba01[_0x91aabe('0x2e')]=_0x39e802,_0x558ea5[_0x91aabe('0xe')][_0x91aabe('0x10')]&&(_0x40c180[_0x91aabe('0x3')]=[{'all':!![]}]),db['Dynamics365Configuration'][_0x91aabe('0x17')](_0x40c180);})[_0x16e13b('0x20')](function(_0x26aa1e){return _0x46ba01['rows']=_0x26aa1e,_0x46ba01;})['then'](respondWithFilteredResult(_0x10751a,_0x40c180))[_0x16e13b('0x18')](handleError(_0x10751a,null));},exports['show']=function(_0x17bcc8,_0x4319f0){const _0x44c8c1=_0x422fb6;let _0x8e629c={'raw':![],'where':{'id':_0x17bcc8[_0x44c8c1('0x33')]['id']}};const _0x2129b6={};return _0x2129b6[_0x44c8c1('0x13')]=_[_0x44c8c1('0x1a')](db[_0x44c8c1('0x1f')][_0x44c8c1('0x22')]),_0x2129b6[_0x44c8c1('0xe')]=_[_0x44c8c1('0x1a')](_0x17bcc8[_0x44c8c1('0xe')]),_0x2129b6['filters']=_[_0x44c8c1('0x7')](_0x2129b6[_0x44c8c1('0x13')],_0x2129b6[_0x44c8c1('0xe')]),_0x8e629c[_0x44c8c1('0x29')]=_[_0x44c8c1('0x7')](_0x2129b6[_0x44c8c1('0x13')],qs[_0x44c8c1('0x2')](_0x17bcc8[_0x44c8c1('0xe')]['fields'])),_0x8e629c[_0x44c8c1('0x29')]=_0x8e629c[_0x44c8c1('0x29')][_0x44c8c1('0x26')]?_0x8e629c[_0x44c8c1('0x29')]:_0x2129b6[_0x44c8c1('0x13')],_0x17bcc8[_0x44c8c1('0xe')][_0x44c8c1('0x10')]&&(_0x8e629c[_0x44c8c1('0x3')]=[{'all':!![]}]),_0x8e629c=_['merge']({},_0x8e629c,_0x17bcc8['options']),db[_0x44c8c1('0x1f')]['findOne'](_0x8e629c)[_0x44c8c1('0x20')](handleEntityNotFound(_0x4319f0,null))[_0x44c8c1('0x20')](respondWithResult(_0x4319f0,null))[_0x44c8c1('0x18')](handleError(_0x4319f0,null));},exports[_0x422fb6('0xf')]=function(_0x3c0aa8,_0x3adf32){const _0xdae378=_0x422fb6;return db[_0xdae378('0x1f')]['create'](_0x3c0aa8[_0xdae378('0x34')],{})['then'](respondWithResult(_0x3adf32,0xc9))[_0xdae378('0x18')](handleError(_0x3adf32,null));},exports[_0x422fb6('0xd')]=function(_0x2e10d4,_0x2ddf28){const _0x774cd3=_0x422fb6;return _0x2e10d4['body']['id']&&delete _0x2e10d4[_0x774cd3('0x34')]['id'],db[_0x774cd3('0x1f')]['findOne']({'where':{'id':_0x2e10d4['params']['id']}})[_0x774cd3('0x20')](handleEntityNotFound(_0x2ddf28,null))[_0x774cd3('0x20')](saveUpdates(_0x2e10d4[_0x774cd3('0x34')],null))[_0x774cd3('0x20')](respondWithResult(_0x2ddf28,null))[_0x774cd3('0x18')](handleError(_0x2ddf28,null));},exports[_0x422fb6('0xb')]=function(_0x3cdca5,_0x4d3ff2){const _0x4cc7f9=_0x422fb6;return db[_0x4cc7f9('0x1f')]['findOne']({'where':{'id':_0x3cdca5[_0x4cc7f9('0x33')]['id']}})[_0x4cc7f9('0x20')](handleEntityNotFound(_0x4d3ff2,null))[_0x4cc7f9('0x20')](removeEntity(_0x4d3ff2,null))[_0x4cc7f9('0x18')](handleError(_0x4d3ff2,null));},exports['getFields']=function(_0x37d911,_0xcae21a){const _0x34a4c8=_0x422fb6;let _0x25777d={};const _0x36ed59={};let _0x18f671,_0x537949;return db['Dynamics365Configuration'][_0x34a4c8('0x0')]({'where':{'id':_0x37d911['params']['id']}})[_0x34a4c8('0x20')](handleEntityNotFound(_0xcae21a,null))['then'](function(_0x2be1a4){const _0x32453e=_0x34a4c8;if(_0x2be1a4)return _0x18f671=_0x2be1a4,_0x36ed59[_0x32453e('0x13')]=_[_0x32453e('0x1a')](db[_0x32453e('0x2d')][_0x32453e('0x22')]),_0x36ed59[_0x32453e('0xe')]=_['keys'](_0x37d911[_0x32453e('0xe')]),_0x36ed59[_0x32453e('0x31')]=_[_0x32453e('0x7')](_0x36ed59['model'],_0x36ed59[_0x32453e('0xe')]),_0x25777d[_0x32453e('0x29')]=_['intersection'](_0x36ed59[_0x32453e('0x13')],qs[_0x32453e('0x2')](_0x37d911['query']['fields'])),_0x25777d['attributes']=_0x25777d[_0x32453e('0x29')][_0x32453e('0x26')]?_0x25777d[_0x32453e('0x29')]:_0x36ed59[_0x32453e('0x13')],_0x25777d[_0x32453e('0x1')]=qs['sort'](_0x37d911[_0x32453e('0xe')][_0x32453e('0x11')]),_0x25777d[_0x32453e('0x1b')]=qs['filters'](_[_0x32453e('0x1d')](_0x37d911[_0x32453e('0xe')],_0x36ed59[_0x32453e('0x31')])),_0x37d911[_0x32453e('0xe')][_0x32453e('0x2f')]&&(_0x25777d[_0x32453e('0x1b')]=_['merge'](_0x25777d['where'],{[Op['or']]:_[_0x32453e('0x23')](_0x25777d['attributes'],function(_0x4a2d8b){const _0x47f8d6=_0x32453e,_0x3a132b={};return _0x3a132b[_0x4a2d8b]={[Op[_0x47f8d6('0x25')]]:'%'+_0x37d911[_0x47f8d6('0xe')][_0x47f8d6('0x2f')]+'%'},_0x3a132b;})})),_0x25777d=_['merge']({},_0x25777d,_0x37d911['options']),_0x18f671[_0x32453e('0x15')](_0x25777d);})['then'](function(_0x4e63ad){const _0xebbe03=_0x34a4c8;if(_0x4e63ad)return _0x537949=_0x4e63ad[_0xebbe03('0x26')],typeof _0x37d911[_0xebbe03('0xe')][_0xebbe03('0xc')]===_0xebbe03('0x2c')&&(_0x25777d[_0xebbe03('0x2a')]=qs[_0xebbe03('0x2a')](_0x37d911[_0xebbe03('0xe')][_0xebbe03('0x2a')]),_0x25777d[_0xebbe03('0x30')]=qs[_0xebbe03('0x30')](_0x37d911['query'][_0xebbe03('0x30')])),_0x18f671['getFields'](_0x25777d);})['then'](function(_0x4c7a48){if(_0x4c7a48)return _0x4c7a48?{'count':_0x537949,'rows':_0x4c7a48}:null;})['then'](respondWithResult(_0xcae21a,null))[_0x34a4c8('0x18')](handleError(_0xcae21a,null));},exports['getSubjects']=function(_0x185cec,_0x432237){const _0x1d4e39=_0x422fb6;let _0x19d380={};const _0x39f2a4={};let _0xe80bbe,_0x54180b;return db['Dynamics365Configuration']['findOne']({'where':{'id':_0x185cec[_0x1d4e39('0x33')]['id']}})['then'](handleEntityNotFound(_0x432237,null))[_0x1d4e39('0x20')](function(_0x5d15b5){const _0x1ae9bb=_0x1d4e39;if(_0x5d15b5)return _0xe80bbe=_0x5d15b5,_0x39f2a4[_0x1ae9bb('0x13')]=_[_0x1ae9bb('0x1a')](db[_0x1ae9bb('0x2d')]['rawAttributes']),_0x39f2a4[_0x1ae9bb('0xe')]=_[_0x1ae9bb('0x1a')](_0x185cec['query']),_0x39f2a4['filters']=_[_0x1ae9bb('0x7')](_0x39f2a4[_0x1ae9bb('0x13')],_0x39f2a4[_0x1ae9bb('0xe')]),_0x19d380[_0x1ae9bb('0x29')]=_[_0x1ae9bb('0x7')](_0x39f2a4[_0x1ae9bb('0x13')],qs[_0x1ae9bb('0x2')](_0x185cec['query']['fields'])),_0x19d380[_0x1ae9bb('0x29')]=_0x19d380[_0x1ae9bb('0x29')][_0x1ae9bb('0x26')]?_0x19d380[_0x1ae9bb('0x29')]:_0x39f2a4[_0x1ae9bb('0x13')],_0x19d380[_0x1ae9bb('0x1')]=qs[_0x1ae9bb('0x11')](_0x185cec[_0x1ae9bb('0xe')][_0x1ae9bb('0x11')]),_0x19d380[_0x1ae9bb('0x1b')]=qs[_0x1ae9bb('0x31')](_['pick'](_0x185cec[_0x1ae9bb('0xe')],_0x39f2a4[_0x1ae9bb('0x31')])),_0x185cec[_0x1ae9bb('0xe')][_0x1ae9bb('0x2f')]&&(_0x19d380['where']=_[_0x1ae9bb('0x1e')](_0x19d380[_0x1ae9bb('0x1b')],{[Op['or']]:_[_0x1ae9bb('0x23')](_0x19d380['attributes'],function(_0x36c295){const _0x488362=_0x1ae9bb,_0x1e3151={};return _0x1e3151[_0x36c295]={[Op[_0x488362('0x25')]]:'%'+_0x185cec[_0x488362('0xe')][_0x488362('0x2f')]+'%'},_0x1e3151;})})),_0x19d380=_[_0x1ae9bb('0x1e')]({},_0x19d380,_0x185cec[_0x1ae9bb('0x5')]),_0xe80bbe[_0x1ae9bb('0x14')](_0x19d380);})['then'](function(_0x4dd123){const _0x59c625=_0x1d4e39;if(_0x4dd123)return _0x54180b=_0x4dd123[_0x59c625('0x26')],typeof _0x185cec['query'][_0x59c625('0xc')]===_0x59c625('0x2c')&&(_0x19d380[_0x59c625('0x2a')]=qs[_0x59c625('0x2a')](_0x185cec[_0x59c625('0xe')][_0x59c625('0x2a')]),_0x19d380['offset']=qs[_0x59c625('0x30')](_0x185cec[_0x59c625('0xe')][_0x59c625('0x30')])),_0xe80bbe[_0x59c625('0x14')](_0x19d380);})[_0x1d4e39('0x20')](function(_0x426690){if(_0x426690)return _0x426690?{'count':_0x54180b,'rows':_0x426690}:null;})['then'](respondWithResult(_0x432237,null))[_0x1d4e39('0x18')](handleError(_0x432237,null));},exports['getDescriptions']=function(_0x1b7ac4,_0x4e72b2){const _0x4450df=_0x422fb6;let _0x13942a={};const _0x575ca5={};let _0x46f39b,_0x37da20;return db['Dynamics365Configuration'][_0x4450df('0x0')]({'where':{'id':_0x1b7ac4[_0x4450df('0x33')]['id']}})[_0x4450df('0x20')](handleEntityNotFound(_0x4e72b2,null))[_0x4450df('0x20')](function(_0x52df51){const _0x4e999a=_0x4450df;if(_0x52df51)return _0x46f39b=_0x52df51,_0x575ca5[_0x4e999a('0x13')]=_[_0x4e999a('0x1a')](db[_0x4e999a('0x2d')]['rawAttributes']),_0x575ca5['query']=_[_0x4e999a('0x1a')](_0x1b7ac4['query']),_0x575ca5['filters']=_[_0x4e999a('0x7')](_0x575ca5[_0x4e999a('0x13')],_0x575ca5[_0x4e999a('0xe')]),_0x13942a['attributes']=_[_0x4e999a('0x7')](_0x575ca5[_0x4e999a('0x13')],qs[_0x4e999a('0x2')](_0x1b7ac4[_0x4e999a('0xe')][_0x4e999a('0x2')])),_0x13942a[_0x4e999a('0x29')]=_0x13942a[_0x4e999a('0x29')][_0x4e999a('0x26')]?_0x13942a['attributes']:_0x575ca5[_0x4e999a('0x13')],_0x13942a[_0x4e999a('0x1')]=qs[_0x4e999a('0x11')](_0x1b7ac4[_0x4e999a('0xe')][_0x4e999a('0x11')]),_0x13942a[_0x4e999a('0x1b')]=qs[_0x4e999a('0x31')](_['pick'](_0x1b7ac4[_0x4e999a('0xe')],_0x575ca5[_0x4e999a('0x31')])),_0x1b7ac4[_0x4e999a('0xe')]['filter']&&(_0x13942a[_0x4e999a('0x1b')]=_[_0x4e999a('0x1e')](_0x13942a['where'],{[Op['or']]:_[_0x4e999a('0x23')](_0x13942a[_0x4e999a('0x29')],function(_0x2fe5b4){const _0x44dae2=_0x4e999a,_0x1b01d8={};return _0x1b01d8[_0x2fe5b4]={[Op[_0x44dae2('0x25')]]:'%'+_0x1b7ac4[_0x44dae2('0xe')][_0x44dae2('0x2f')]+'%'},_0x1b01d8;})})),_0x13942a=_['merge']({},_0x13942a,_0x1b7ac4[_0x4e999a('0x5')]),_0x46f39b['getDescriptions'](_0x13942a);})[_0x4450df('0x20')](function(_0x2d391d){const _0xff8253=_0x4450df;if(_0x2d391d)return _0x37da20=_0x2d391d[_0xff8253('0x26')],typeof _0x1b7ac4[_0xff8253('0xe')][_0xff8253('0xc')]===_0xff8253('0x2c')&&(_0x13942a['limit']=qs['limit'](_0x1b7ac4[_0xff8253('0xe')][_0xff8253('0x2a')]),_0x13942a[_0xff8253('0x30')]=qs[_0xff8253('0x30')](_0x1b7ac4[_0xff8253('0xe')][_0xff8253('0x30')])),_0x46f39b[_0xff8253('0x8')](_0x13942a);})['then'](function(_0x5c14df){if(_0x5c14df)return _0x5c14df?{'count':_0x37da20,'rows':_0x5c14df}:null;})['then'](respondWithResult(_0x4e72b2,null))[_0x4450df('0x18')](handleError(_0x4e72b2,null));}; \ No newline at end of file diff --git a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js index df6b606..73954ee 100644 --- a/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js +++ b/server/api/intDynamics365Configuration/intDynamics365Configuration.model.js @@ -1 +1 @@ -const a248_0x1a94=['int_dynamics365_configurations','exports','Dynamics365Configuration','./intDynamics365Configuration.attributes','define'];(function(_0x4e3bf8,_0x1a941b){const _0x220e7f=function(_0xc9d78b){while(--_0xc9d78b){_0x4e3bf8['push'](_0x4e3bf8['shift']());}};_0x220e7f(++_0x1a941b);}(a248_0x1a94,0x15b));const a248_0x220e=function(_0x4e3bf8,_0x1a941b){_0x4e3bf8=_0x4e3bf8-0x0;let _0x220e7f=a248_0x1a94[_0x4e3bf8];return _0x220e7f;};const _0x23ddfc=a248_0x220e;'use strict';const attributes=require(_0x23ddfc('0x1'));module[_0x23ddfc('0x4')]=function(_0xc9d78b){const _0x73ad0d=_0x23ddfc,_0x676fd9=_0xc9d78b[_0x73ad0d('0x2')](_0x73ad0d('0x0'),attributes,{'tableName':_0x73ad0d('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x676fd9;}; \ No newline at end of file +const a248_0x3914=['exports','./intDynamics365Configuration.attributes','int_dynamics365_configurations','Dynamics365Configuration'];(function(_0x12e3c2,_0x391464){const _0x1a8433=function(_0x2a4834){while(--_0x2a4834){_0x12e3c2['push'](_0x12e3c2['shift']());}};_0x1a8433(++_0x391464);}(a248_0x3914,0x8a));const a248_0x1a84=function(_0x12e3c2,_0x391464){_0x12e3c2=_0x12e3c2-0x0;let _0x1a8433=a248_0x3914[_0x12e3c2];return _0x1a8433;};const _0x100a27=a248_0x1a84;'use strict';const attributes=require(_0x100a27('0x3'));module[_0x100a27('0x2')]=function(_0x2a4834){const _0x431188=_0x100a27,_0x46ef28=_0x2a4834['define'](_0x431188('0x1'),attributes,{'tableName':_0x431188('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x46ef28;}; \ No newline at end of file diff --git a/server/api/intDynamics365Field/index.js b/server/api/intDynamics365Field/index.js index 979dc5e..cca2edd 100644 --- a/server/api/intDynamics365Field/index.js +++ b/server/api/intDynamics365Field/index.js @@ -1 +1 @@ -const a249_0x2f87=['index','destroy','put','exports','isAuthenticated','../../components/auth/service','create','/:id','./intDynamics365Field.controller','get','Router','post','update','show'];(function(_0x404c76,_0x2f8742){const _0x567296=function(_0x5a476b){while(--_0x5a476b){_0x404c76['push'](_0x404c76['shift']());}};_0x567296(++_0x2f8742);}(a249_0x2f87,0xec));const a249_0x5672=function(_0x404c76,_0x2f8742){_0x404c76=_0x404c76-0x0;let _0x567296=a249_0x2f87[_0x404c76];return _0x567296;};const _0x13cc3d=a249_0x5672;'use strict';const express=require('express'),router=express[_0x13cc3d('0xc')](),auth=require(_0x13cc3d('0x7')),controller=require(_0x13cc3d('0xa'));router[_0x13cc3d('0xb')]('/',auth[_0x13cc3d('0x6')](),controller[_0x13cc3d('0x2')]),router[_0x13cc3d('0xb')](_0x13cc3d('0x9'),auth[_0x13cc3d('0x6')](),controller[_0x13cc3d('0x1')]),router[_0x13cc3d('0xd')]('/',auth[_0x13cc3d('0x6')](),controller[_0x13cc3d('0x8')]),router[_0x13cc3d('0x4')](_0x13cc3d('0x9'),auth[_0x13cc3d('0x6')](),controller[_0x13cc3d('0x0')]),router['delete']('/:id',auth[_0x13cc3d('0x6')](),controller[_0x13cc3d('0x3')]),module[_0x13cc3d('0x5')]=router; \ No newline at end of file +const a249_0x1f80=['express','/:id','get','../../components/auth/service','create','./intDynamics365Field.controller','isAuthenticated','post','update','destroy','Router','show','delete','index'];(function(_0x3ca283,_0x1f806a){const _0x4742ce=function(_0x3b3e0f){while(--_0x3b3e0f){_0x3ca283['push'](_0x3ca283['shift']());}};_0x4742ce(++_0x1f806a);}(a249_0x1f80,0x179));const a249_0x4742=function(_0x3ca283,_0x1f806a){_0x3ca283=_0x3ca283-0x0;let _0x4742ce=a249_0x1f80[_0x3ca283];return _0x4742ce;};const _0x5214b9=a249_0x4742;'use strict';const express=require(_0x5214b9('0x1')),router=express[_0x5214b9('0xb')](),auth=require(_0x5214b9('0x4')),controller=require(_0x5214b9('0x6'));router[_0x5214b9('0x3')]('/',auth['isAuthenticated'](),controller[_0x5214b9('0x0')]),router['get'](_0x5214b9('0x2'),auth[_0x5214b9('0x7')](),controller[_0x5214b9('0xc')]),router[_0x5214b9('0x8')]('/',auth[_0x5214b9('0x7')](),controller[_0x5214b9('0x5')]),router['put'](_0x5214b9('0x2'),auth[_0x5214b9('0x7')](),controller[_0x5214b9('0x9')]),router[_0x5214b9('0xd')](_0x5214b9('0x2'),auth[_0x5214b9('0x7')](),controller[_0x5214b9('0xa')]),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 fe7757a..896cc6a 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.attributes.js +++ b/server/api/intDynamics365Field/intDynamics365Field.attributes.js @@ -1 +1 @@ -const a250_0x464f=['variable','string','exports','STRING','ENUM','sequelize','keyValue','BOOLEAN','customVariable'];(function(_0x504f2d,_0x464f54){const _0x1fb214=function(_0x308d50){while(--_0x308d50){_0x504f2d['push'](_0x504f2d['shift']());}};_0x1fb214(++_0x464f54);}(a250_0x464f,0x14d));const a250_0x1fb2=function(_0x504f2d,_0x464f54){_0x504f2d=_0x504f2d-0x0;let _0x1fb214=a250_0x464f[_0x504f2d];return _0x1fb214;};const _0x17ae6c=a250_0x1fb2;'use strict';const Sequelize=require(_0x17ae6c('0x5'));module[_0x17ae6c('0x2')]={'type':{'type':Sequelize[_0x17ae6c('0x4')](_0x17ae6c('0x1'),_0x17ae6c('0x0'),'customVariable',_0x17ae6c('0x6')),'defaultValue':_0x17ae6c('0x1')},'content':{'type':Sequelize[_0x17ae6c('0x3')]},'key':{'type':Sequelize[_0x17ae6c('0x3')]},'keyType':{'type':Sequelize[_0x17ae6c('0x4')](_0x17ae6c('0x1'),_0x17ae6c('0x0'),_0x17ae6c('0x8'))},'keyContent':{'type':Sequelize[_0x17ae6c('0x3')]},'idField':{'type':Sequelize[_0x17ae6c('0x3')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x17ae6c('0x7')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x17ae6c('0x3')]}}; \ No newline at end of file +const a250_0x3c4d=['BOOLEAN','exports','ENUM','STRING','string','variable','keyValue','customVariable'];(function(_0x21f6fd,_0x3c4df8){const _0x1ab15b=function(_0x5cee87){while(--_0x5cee87){_0x21f6fd['push'](_0x21f6fd['shift']());}};_0x1ab15b(++_0x3c4df8);}(a250_0x3c4d,0x147));const a250_0x1ab1=function(_0x21f6fd,_0x3c4df8){_0x21f6fd=_0x21f6fd-0x0;let _0x1ab15b=a250_0x3c4d[_0x21f6fd];return _0x1ab15b;};const _0xc36491=a250_0x1ab1;'use strict';const Sequelize=require('sequelize');module[_0xc36491('0x2')]={'type':{'type':Sequelize[_0xc36491('0x3')]('string',_0xc36491('0x6'),_0xc36491('0x0'),_0xc36491('0x7')),'defaultValue':_0xc36491('0x5')},'content':{'type':Sequelize[_0xc36491('0x4')]},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize[_0xc36491('0x3')](_0xc36491('0x5'),'variable',_0xc36491('0x0'))},'keyContent':{'type':Sequelize[_0xc36491('0x4')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0xc36491('0x4')]},'customField':{'type':Sequelize[_0xc36491('0x1')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0xc36491('0x4')]}}; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.controller.js b/server/api/intDynamics365Field/intDynamics365Field.controller.js index 3f7101e..ad4eb5e 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.controller.js +++ b/server/api/intDynamics365Field/intDynamics365Field.controller.js @@ -1 +1 @@ -const a251_0x2994=['length','offset','../../components/parsers/qs','send','../../config/logger','../../mysqldb','lodash','sequelize','fields','filter','findOne','status','destroy','pick','count','includeAll','intersection','rawAttributes','rows','limit','error','params','VIRTUAL','json','create','fieldName','api','map','Dynamics365Field','catch','index','keys','query','Content-Range','end','body','then','filters','options','sendStatus','findAll','name','sort','order','where','stack','undefined','model','type','like','merge','include','attributes'];(function(_0xc1bb8,_0x2994bf){const _0x529f7c=function(_0xecc264){while(--_0xecc264){_0xc1bb8['push'](_0xc1bb8['shift']());}};_0x529f7c(++_0x2994bf);}(a251_0x2994,0x155));const a251_0x529f=function(_0xc1bb8,_0x2994bf){_0xc1bb8=_0xc1bb8-0x0;let _0x529f7c=a251_0x2994[_0xc1bb8];return _0x529f7c;};const _0x424548=a251_0x529f;'use strict';const _=require(_0x424548('0x24')),qs=require(_0x424548('0x20')),logger=require(_0x424548('0x22'))(_0x424548('0x3')),db=require(_0x424548('0x23'))['db'],{Op}=require(_0x424548('0x25'));function respondWithResult(_0xecc264,_0x40d4fd){return _0x40d4fd=_0x40d4fd||0xc8,function(_0x1f333e){const _0x28d5fa=a251_0x529f;if(_0x1f333e)return _0xecc264[_0x28d5fa('0x29')](_0x40d4fd)[_0x28d5fa('0x0')](_0x1f333e);};}function respondWithFilteredResult(_0xdea2d6,_0x2e0320){return function(_0x59fd36){const _0x51aa04=a251_0x529f;if(_0x59fd36){const _0x2176e9=_0x59fd36['count'],_0x597937=_0x2e0320['offset'];let _0x3820b8=_0x2e0320['offset']+_0x2e0320[_0x51aa04('0x31')],_0x5232a6;return _0x3820b8>=_0x2176e9?(_0x3820b8=_0x2176e9,_0x5232a6=0xc8):_0x5232a6=0xce,_0xdea2d6[_0x51aa04('0x29')](_0x5232a6),_0xdea2d6['set'](_0x51aa04('0xa'),_0x597937+'-'+_0x3820b8+'/'+_0x2176e9)[_0x51aa04('0x0')](_0x59fd36);}return null;};}function saveUpdates(_0xd5c4db){return function(_0x1b879b){const _0x2b0f74=a251_0x529f;if(_0x1b879b)return _0x1b879b['update'](_0xd5c4db)[_0x2b0f74('0xd')](function(_0x1a86a3){return _0x1a86a3;});return null;};}function removeEntity(_0x2bdade){return function(_0x545d63){const _0x18c93e=a251_0x529f;if(_0x545d63)return _0x545d63[_0x18c93e('0x2a')]()[_0x18c93e('0xd')](function(){const _0x11c948=_0x18c93e;_0x2bdade['status'](0xcc)[_0x11c948('0xb')]();});};}function handleEntityNotFound(_0x1980d5){return function(_0x271fbf){const _0x56e1b9=a251_0x529f;return!_0x271fbf&&_0x1980d5[_0x56e1b9('0x10')](0x194),_0x271fbf;};}function handleError(_0x755cd8,_0x5deccd){return _0x5deccd=_0x5deccd||0x1f4,function(_0x3ee8e5){const _0x5b151d=a251_0x529f;logger[_0x5b151d('0x32')](_0x3ee8e5[_0x5b151d('0x16')]),_0x3ee8e5[_0x5b151d('0x12')]&&delete _0x3ee8e5[_0x5b151d('0x12')],_0x755cd8[_0x5b151d('0x29')](_0x5deccd)[_0x5b151d('0x21')](_0x3ee8e5);};}exports[_0x424548('0x7')]=function(_0x3913ad,_0x667358){const _0x2606f7=_0x424548;let _0x4232b8={};const _0x73d5d7={},_0x27dbfa={'count':0x0,'rows':[]},_0x19e56e=_['map'](db[_0x2606f7('0x5')][_0x2606f7('0x2f')],function(_0x469dfa){const _0x25f806=_0x2606f7;return{'name':_0x469dfa[_0x25f806('0x2')],'type':_0x469dfa[_0x25f806('0x19')]['key']};});_0x73d5d7[_0x2606f7('0x18')]=_[_0x2606f7('0x4')](_0x19e56e,'name'),_0x73d5d7['query']=_[_0x2606f7('0x8')](_0x3913ad[_0x2606f7('0x9')]),_0x73d5d7[_0x2606f7('0xe')]=_['intersection'](_0x73d5d7[_0x2606f7('0x18')],_0x73d5d7[_0x2606f7('0x9')]),_0x4232b8[_0x2606f7('0x1d')]=_['intersection'](_0x73d5d7['model'],qs[_0x2606f7('0x26')](_0x3913ad[_0x2606f7('0x9')][_0x2606f7('0x26')])),_0x4232b8[_0x2606f7('0x1d')]=_0x4232b8[_0x2606f7('0x1d')]['length']?_0x4232b8['attributes']:_0x73d5d7[_0x2606f7('0x18')];typeof _0x3913ad[_0x2606f7('0x9')]['nolimit']===_0x2606f7('0x17')&&(_0x4232b8[_0x2606f7('0x31')]=qs[_0x2606f7('0x31')](_0x3913ad['query'][_0x2606f7('0x31')]),_0x4232b8['offset']=qs[_0x2606f7('0x1f')](_0x3913ad[_0x2606f7('0x9')][_0x2606f7('0x1f')]));_0x4232b8[_0x2606f7('0x14')]=qs['sort'](_0x3913ad[_0x2606f7('0x9')][_0x2606f7('0x13')]),_0x4232b8[_0x2606f7('0x15')]=qs[_0x2606f7('0xe')](_[_0x2606f7('0x2b')](_0x3913ad[_0x2606f7('0x9')],_0x73d5d7[_0x2606f7('0xe')]),_0x19e56e);_0x3913ad['query'][_0x2606f7('0x27')]&&(_0x4232b8['where']=_['merge'](_0x4232b8['where'],{[Op['or']]:_[_0x2606f7('0x4')](_0x19e56e,function(_0x418e84){const _0x3c49f9=_0x2606f7;if(_0x418e84['type']!==_0x3c49f9('0x34')){const _0x2fcc6f={};return _0x2fcc6f[_0x418e84[_0x3c49f9('0x12')]]={[Op[_0x3c49f9('0x1a')]]:'%'+_0x3913ad[_0x3c49f9('0x9')][_0x3c49f9('0x27')]+'%'},_0x2fcc6f;}})}));_0x4232b8=_[_0x2606f7('0x1b')]({},_0x4232b8,_0x3913ad[_0x2606f7('0xf')]);const _0xde17fb={'where':_0x4232b8[_0x2606f7('0x15')]};return db[_0x2606f7('0x5')][_0x2606f7('0x2c')](_0xde17fb)[_0x2606f7('0xd')](function(_0x1600f0){const _0x3e872f=_0x2606f7;return _0x27dbfa['count']=_0x1600f0,_0x3913ad['query']['includeAll']&&(_0x4232b8['include']=[{'all':!![]}]),db[_0x3e872f('0x5')][_0x3e872f('0x11')](_0x4232b8);})['then'](function(_0x1b11f1){const _0xb1ed5a=_0x2606f7;return _0x27dbfa[_0xb1ed5a('0x30')]=_0x1b11f1,_0x27dbfa;})['then'](respondWithFilteredResult(_0x667358,_0x4232b8))['catch'](handleError(_0x667358,null));},exports['show']=function(_0x7c7d,_0x34eb11){const _0x5e9ba4=_0x424548;let _0x110dfe={'raw':!![],'where':{'id':_0x7c7d[_0x5e9ba4('0x33')]['id']}};const _0x3c76a7={};return _0x3c76a7[_0x5e9ba4('0x18')]=_[_0x5e9ba4('0x8')](db[_0x5e9ba4('0x5')][_0x5e9ba4('0x2f')]),_0x3c76a7[_0x5e9ba4('0x9')]=_[_0x5e9ba4('0x8')](_0x7c7d['query']),_0x3c76a7[_0x5e9ba4('0xe')]=_[_0x5e9ba4('0x2e')](_0x3c76a7[_0x5e9ba4('0x18')],_0x3c76a7[_0x5e9ba4('0x9')]),_0x110dfe[_0x5e9ba4('0x1d')]=_[_0x5e9ba4('0x2e')](_0x3c76a7[_0x5e9ba4('0x18')],qs[_0x5e9ba4('0x26')](_0x7c7d[_0x5e9ba4('0x9')][_0x5e9ba4('0x26')])),_0x110dfe['attributes']=_0x110dfe[_0x5e9ba4('0x1d')][_0x5e9ba4('0x1e')]?_0x110dfe['attributes']:_0x3c76a7[_0x5e9ba4('0x18')],_0x7c7d[_0x5e9ba4('0x9')][_0x5e9ba4('0x2d')]&&(_0x110dfe[_0x5e9ba4('0x1c')]=[{'all':!![]}]),_0x110dfe=_[_0x5e9ba4('0x1b')]({},_0x110dfe,_0x7c7d[_0x5e9ba4('0xf')]),db[_0x5e9ba4('0x5')][_0x5e9ba4('0x28')](_0x110dfe)[_0x5e9ba4('0xd')](handleEntityNotFound(_0x34eb11,null))[_0x5e9ba4('0xd')](respondWithResult(_0x34eb11,null))[_0x5e9ba4('0x6')](handleError(_0x34eb11,null));},exports['create']=function(_0x16168f,_0x2d6485){const _0x9c328a=_0x424548;return db[_0x9c328a('0x5')][_0x9c328a('0x1')](_0x16168f[_0x9c328a('0xc')],{})[_0x9c328a('0xd')](respondWithResult(_0x2d6485,0xc9))[_0x9c328a('0x6')](handleError(_0x2d6485,null));},exports['update']=function(_0x4f8c3a,_0xa5db45){const _0x4f05b5=_0x424548;return _0x4f8c3a['body']['id']&&delete _0x4f8c3a[_0x4f05b5('0xc')]['id'],db['Dynamics365Field']['findOne']({'where':{'id':_0x4f8c3a[_0x4f05b5('0x33')]['id']}})[_0x4f05b5('0xd')](handleEntityNotFound(_0xa5db45,null))[_0x4f05b5('0xd')](saveUpdates(_0x4f8c3a[_0x4f05b5('0xc')],null))[_0x4f05b5('0xd')](respondWithResult(_0xa5db45,null))[_0x4f05b5('0x6')](handleError(_0xa5db45,null));},exports[_0x424548('0x2a')]=function(_0x48f123,_0x1e9fff){const _0x5a8f42=_0x424548;return db[_0x5a8f42('0x5')][_0x5a8f42('0x28')]({'where':{'id':_0x48f123[_0x5a8f42('0x33')]['id']}})[_0x5a8f42('0xd')](handleEntityNotFound(_0x1e9fff,null))[_0x5a8f42('0xd')](removeEntity(_0x1e9fff,null))[_0x5a8f42('0x6')](handleError(_0x1e9fff,null));}; \ No newline at end of file +const a251_0x556d=['filters','sequelize','intersection','send','map','json','params','api','create','destroy','update','key','show','sendStatus','where','nolimit','set','../../mysqldb','filter','keys','undefined','include','limit','body','attributes','../../config/logger','query','pick','rawAttributes','VIRTUAL','../../components/parsers/qs','error','stack','offset','name','index','Dynamics365Field','model','merge','length','count','status','sort','options','then','type','fields','catch','like','findOne'];(function(_0x490111,_0x556d5d){const _0x2f3b9b=function(_0x46ca3e){while(--_0x46ca3e){_0x490111['push'](_0x490111['shift']());}};_0x2f3b9b(++_0x556d5d);}(a251_0x556d,0xc6));const a251_0x2f3b=function(_0x490111,_0x556d5d){_0x490111=_0x490111-0x0;let _0x2f3b9b=a251_0x556d[_0x490111];return _0x2f3b9b;};const _0x554f01=a251_0x2f3b;'use strict';const _=require('lodash'),qs=require(_0x554f01('0x20')),logger=require(_0x554f01('0x1b'))(_0x554f01('0x9')),db=require(_0x554f01('0x13'))['db'],{Op}=require(_0x554f01('0x3'));function respondWithResult(_0x46ca3e,_0x335d6e){return _0x335d6e=_0x335d6e||0xc8,function(_0x2eeb11){const _0x57db67=a251_0x2f3b;if(_0x2eeb11)return _0x46ca3e['status'](_0x335d6e)[_0x57db67('0x7')](_0x2eeb11);};}function respondWithFilteredResult(_0x59576e,_0x146a1b){return function(_0x504184){const _0x1e073a=a251_0x2f3b;if(_0x504184){const _0x5126f8=_0x504184['count'],_0x170416=_0x146a1b[_0x1e073a('0x23')];let _0xd708a7=_0x146a1b[_0x1e073a('0x23')]+_0x146a1b[_0x1e073a('0x18')],_0xb6a551;return _0xd708a7>=_0x5126f8?(_0xd708a7=_0x5126f8,_0xb6a551=0xc8):_0xb6a551=0xce,_0x59576e[_0x1e073a('0x2b')](_0xb6a551),_0x59576e[_0x1e073a('0x12')]('Content-Range',_0x170416+'-'+_0xd708a7+'/'+_0x5126f8)[_0x1e073a('0x7')](_0x504184);}return null;};}function saveUpdates(_0x4e7ae0){return function(_0x2e003d){const _0x475773=a251_0x2f3b;if(_0x2e003d)return _0x2e003d[_0x475773('0xc')](_0x4e7ae0)[_0x475773('0x2e')](function(_0x1901b7){return _0x1901b7;});return null;};}function removeEntity(_0x5467fd){return function(_0x219d1b){const _0x3ac364=a251_0x2f3b;if(_0x219d1b)return _0x219d1b[_0x3ac364('0xb')]()[_0x3ac364('0x2e')](function(){const _0x46e3e3=_0x3ac364;_0x5467fd[_0x46e3e3('0x2b')](0xcc)['end']();});};}function handleEntityNotFound(_0x1b802c){return function(_0x3f3b75){const _0x137ab1=a251_0x2f3b;return!_0x3f3b75&&_0x1b802c[_0x137ab1('0xf')](0x194),_0x3f3b75;};}function handleError(_0x1dc82a,_0x2a6926){return _0x2a6926=_0x2a6926||0x1f4,function(_0x4eda51){const _0x4326b3=a251_0x2f3b;logger[_0x4326b3('0x21')](_0x4eda51[_0x4326b3('0x22')]),_0x4eda51['name']&&delete _0x4eda51[_0x4326b3('0x24')],_0x1dc82a[_0x4326b3('0x2b')](_0x2a6926)[_0x4326b3('0x5')](_0x4eda51);};}exports[_0x554f01('0x25')]=function(_0x3fb3f3,_0x5cd521){const _0x168c6b=_0x554f01;let _0x4376e6={};const _0x3b02ca={},_0x536b0c={'count':0x0,'rows':[]},_0x514b3b=_['map'](db[_0x168c6b('0x26')]['rawAttributes'],function(_0x34b810){const _0x5e5a03=_0x168c6b;return{'name':_0x34b810['fieldName'],'type':_0x34b810[_0x5e5a03('0x2f')][_0x5e5a03('0xd')]};});_0x3b02ca[_0x168c6b('0x27')]=_[_0x168c6b('0x6')](_0x514b3b,_0x168c6b('0x24')),_0x3b02ca[_0x168c6b('0x1c')]=_[_0x168c6b('0x15')](_0x3fb3f3['query']),_0x3b02ca[_0x168c6b('0x2')]=_[_0x168c6b('0x4')](_0x3b02ca[_0x168c6b('0x27')],_0x3b02ca[_0x168c6b('0x1c')]),_0x4376e6[_0x168c6b('0x1a')]=_[_0x168c6b('0x4')](_0x3b02ca['model'],qs['fields'](_0x3fb3f3[_0x168c6b('0x1c')][_0x168c6b('0x30')])),_0x4376e6[_0x168c6b('0x1a')]=_0x4376e6[_0x168c6b('0x1a')][_0x168c6b('0x29')]?_0x4376e6[_0x168c6b('0x1a')]:_0x3b02ca[_0x168c6b('0x27')];typeof _0x3fb3f3[_0x168c6b('0x1c')][_0x168c6b('0x11')]===_0x168c6b('0x16')&&(_0x4376e6['limit']=qs[_0x168c6b('0x18')](_0x3fb3f3['query'][_0x168c6b('0x18')]),_0x4376e6[_0x168c6b('0x23')]=qs[_0x168c6b('0x23')](_0x3fb3f3['query'][_0x168c6b('0x23')]));_0x4376e6['order']=qs[_0x168c6b('0x2c')](_0x3fb3f3[_0x168c6b('0x1c')][_0x168c6b('0x2c')]),_0x4376e6[_0x168c6b('0x10')]=qs[_0x168c6b('0x2')](_[_0x168c6b('0x1d')](_0x3fb3f3[_0x168c6b('0x1c')],_0x3b02ca[_0x168c6b('0x2')]),_0x514b3b);_0x3fb3f3[_0x168c6b('0x1c')]['filter']&&(_0x4376e6[_0x168c6b('0x10')]=_['merge'](_0x4376e6['where'],{[Op['or']]:_[_0x168c6b('0x6')](_0x514b3b,function(_0x2ba73e){const _0x2b87cd=_0x168c6b;if(_0x2ba73e[_0x2b87cd('0x2f')]!==_0x2b87cd('0x1f')){const _0x55647d={};return _0x55647d[_0x2ba73e[_0x2b87cd('0x24')]]={[Op[_0x2b87cd('0x0')]]:'%'+_0x3fb3f3[_0x2b87cd('0x1c')][_0x2b87cd('0x14')]+'%'},_0x55647d;}})}));_0x4376e6=_['merge']({},_0x4376e6,_0x3fb3f3[_0x168c6b('0x2d')]);const _0x584d96={'where':_0x4376e6[_0x168c6b('0x10')]};return db[_0x168c6b('0x26')][_0x168c6b('0x2a')](_0x584d96)[_0x168c6b('0x2e')](function(_0x58aee9){const _0x400e4e=_0x168c6b;return _0x536b0c[_0x400e4e('0x2a')]=_0x58aee9,_0x3fb3f3['query']['includeAll']&&(_0x4376e6['include']=[{'all':!![]}]),db[_0x400e4e('0x26')]['findAll'](_0x4376e6);})[_0x168c6b('0x2e')](function(_0x20271b){return _0x536b0c['rows']=_0x20271b,_0x536b0c;})[_0x168c6b('0x2e')](respondWithFilteredResult(_0x5cd521,_0x4376e6))[_0x168c6b('0x31')](handleError(_0x5cd521,null));},exports[_0x554f01('0xe')]=function(_0x196d0f,_0x599283){const _0x3abbba=_0x554f01;let _0x526b63={'raw':!![],'where':{'id':_0x196d0f[_0x3abbba('0x8')]['id']}};const _0x506df8={};return _0x506df8[_0x3abbba('0x27')]=_[_0x3abbba('0x15')](db[_0x3abbba('0x26')][_0x3abbba('0x1e')]),_0x506df8[_0x3abbba('0x1c')]=_['keys'](_0x196d0f[_0x3abbba('0x1c')]),_0x506df8[_0x3abbba('0x2')]=_['intersection'](_0x506df8[_0x3abbba('0x27')],_0x506df8[_0x3abbba('0x1c')]),_0x526b63['attributes']=_[_0x3abbba('0x4')](_0x506df8[_0x3abbba('0x27')],qs['fields'](_0x196d0f[_0x3abbba('0x1c')][_0x3abbba('0x30')])),_0x526b63['attributes']=_0x526b63['attributes']['length']?_0x526b63[_0x3abbba('0x1a')]:_0x506df8[_0x3abbba('0x27')],_0x196d0f[_0x3abbba('0x1c')]['includeAll']&&(_0x526b63[_0x3abbba('0x17')]=[{'all':!![]}]),_0x526b63=_[_0x3abbba('0x28')]({},_0x526b63,_0x196d0f[_0x3abbba('0x2d')]),db[_0x3abbba('0x26')][_0x3abbba('0x1')](_0x526b63)[_0x3abbba('0x2e')](handleEntityNotFound(_0x599283,null))[_0x3abbba('0x2e')](respondWithResult(_0x599283,null))['catch'](handleError(_0x599283,null));},exports[_0x554f01('0xa')]=function(_0x44cd2c,_0x42f73a){const _0x4913d6=_0x554f01;return db[_0x4913d6('0x26')][_0x4913d6('0xa')](_0x44cd2c['body'],{})[_0x4913d6('0x2e')](respondWithResult(_0x42f73a,0xc9))[_0x4913d6('0x31')](handleError(_0x42f73a,null));},exports[_0x554f01('0xc')]=function(_0x2da1ac,_0x28af33){const _0x371d45=_0x554f01;return _0x2da1ac[_0x371d45('0x19')]['id']&&delete _0x2da1ac[_0x371d45('0x19')]['id'],db[_0x371d45('0x26')][_0x371d45('0x1')]({'where':{'id':_0x2da1ac[_0x371d45('0x8')]['id']}})['then'](handleEntityNotFound(_0x28af33,null))[_0x371d45('0x2e')](saveUpdates(_0x2da1ac[_0x371d45('0x19')],null))[_0x371d45('0x2e')](respondWithResult(_0x28af33,null))[_0x371d45('0x31')](handleError(_0x28af33,null));},exports['destroy']=function(_0x12df50,_0x2b26a7){const _0x3ca180=_0x554f01;return db[_0x3ca180('0x26')][_0x3ca180('0x1')]({'where':{'id':_0x12df50[_0x3ca180('0x8')]['id']}})[_0x3ca180('0x2e')](handleEntityNotFound(_0x2b26a7,null))['then'](removeEntity(_0x2b26a7,null))[_0x3ca180('0x31')](handleError(_0x2b26a7,null));}; \ No newline at end of file diff --git a/server/api/intDynamics365Field/intDynamics365Field.model.js b/server/api/intDynamics365Field/intDynamics365Field.model.js index 6ff79a4..2e87c74 100644 --- a/server/api/intDynamics365Field/intDynamics365Field.model.js +++ b/server/api/intDynamics365Field/intDynamics365Field.model.js @@ -1 +1 @@ -const a252_0x4a5b=['FieldId','dynamics365_unique_index','idField','Dynamics365Field','exports','int_dynamics365_fields','./intDynamics365Field.attributes','define'];(function(_0x3d6f31,_0x4a5b2f){const _0x13005c=function(_0x37e837){while(--_0x37e837){_0x3d6f31['push'](_0x3d6f31['shift']());}};_0x13005c(++_0x4a5b2f);}(a252_0x4a5b,0x149));const a252_0x1300=function(_0x3d6f31,_0x4a5b2f){_0x3d6f31=_0x3d6f31-0x0;let _0x13005c=a252_0x4a5b[_0x3d6f31];return _0x13005c;};const _0x4ac28f=a252_0x1300;'use strict';const attributes=require(_0x4ac28f('0x5'));module[_0x4ac28f('0x3')]=function(_0x37e837){const _0x5b559b=_0x4ac28f,_0x3d0e14=_0x37e837[_0x5b559b('0x6')](_0x5b559b('0x2'),attributes,{'tableName':_0x5b559b('0x4'),'paranoid':![],'indexes':[{'name':_0x5b559b('0x0'),'fields':[_0x5b559b('0x1'),_0x5b559b('0x7')],'unique':!![]}],'timestamps':!![]});return _0x3d0e14;}; \ No newline at end of file +const a252_0x4506=['idField','int_dynamics365_fields','exports','define','./intDynamics365Field.attributes'];(function(_0x4da71d,_0x45064c){const _0x2b1c1e=function(_0x294702){while(--_0x294702){_0x4da71d['push'](_0x4da71d['shift']());}};_0x2b1c1e(++_0x45064c);}(a252_0x4506,0x6c));const a252_0x2b1c=function(_0x4da71d,_0x45064c){_0x4da71d=_0x4da71d-0x0;let _0x2b1c1e=a252_0x4506[_0x4da71d];return _0x2b1c1e;};const _0x119164=a252_0x2b1c;'use strict';const attributes=require(_0x119164('0x1'));module[_0x119164('0x4')]=function(_0x294702){const _0x4103a3=_0x119164,_0x527f2f=_0x294702[_0x4103a3('0x0')]('Dynamics365Field',attributes,{'tableName':_0x4103a3('0x3'),'paranoid':![],'indexes':[{'name':'dynamics365_unique_index','fields':[_0x4103a3('0x2'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x527f2f;}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/index.js b/server/api/intFreshdeskAccount/index.js index 1b22605..848f0b8 100644 --- a/server/api/intFreshdeskAccount/index.js +++ b/server/api/intFreshdeskAccount/index.js @@ -1 +1 @@ -const a253_0x567b=['update','post','exports','index','delete','show','isAuthenticated','/:id/fields','Router','create','getConfigurations','/:id','put','get'];(function(_0x3a61a5,_0x567ba9){const _0xc2dcdc=function(_0x496a68){while(--_0x496a68){_0x3a61a5['push'](_0x3a61a5['shift']());}};_0xc2dcdc(++_0x567ba9);}(a253_0x567b,0x18d));const a253_0xc2dc=function(_0x3a61a5,_0x567ba9){_0x3a61a5=_0x3a61a5-0x0;let _0xc2dcdc=a253_0x567b[_0x3a61a5];return _0xc2dcdc;};const _0x1671be=a253_0xc2dc;'use strict';const express=require('express'),router=express[_0x1671be('0x3')](),auth=require('../../components/auth/service'),controller=require('./intFreshdeskAccount.controller');router[_0x1671be('0x8')]('/',auth[_0x1671be('0x1')](),controller[_0x1671be('0xc')]),router[_0x1671be('0x8')](_0x1671be('0x6'),auth['isAuthenticated'](),controller[_0x1671be('0x0')]),router[_0x1671be('0x8')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x1671be('0x5')]),router[_0x1671be('0x8')](_0x1671be('0x2'),auth[_0x1671be('0x1')](),controller['getFields']),router[_0x1671be('0xa')]('/',auth['isAuthenticated'](),controller[_0x1671be('0x4')]),router['post']('/:id/configurations',auth['isAuthenticated'](),controller['addConfiguration']),router[_0x1671be('0x7')](_0x1671be('0x6'),auth[_0x1671be('0x1')](),controller[_0x1671be('0x9')]),router[_0x1671be('0xd')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x1671be('0xb')]=router; \ No newline at end of file +const a253_0x229d=['create','delete','exports','addConfiguration','/:id/fields','/:id/configurations','getConfigurations','isAuthenticated','getFields','Router','/:id','destroy','get','post','../../components/auth/service'];(function(_0x331641,_0x229d39){const _0x53d046=function(_0x576ce9){while(--_0x576ce9){_0x331641['push'](_0x331641['shift']());}};_0x53d046(++_0x229d39);}(a253_0x229d,0xc3));const a253_0x53d0=function(_0x331641,_0x229d39){_0x331641=_0x331641-0x0;let _0x53d046=a253_0x229d[_0x331641];return _0x53d046;};const _0x2da135=a253_0x53d0;'use strict';const express=require('express'),router=express[_0x2da135('0x9')](),auth=require(_0x2da135('0xe')),controller=require('./intFreshdeskAccount.controller');router[_0x2da135('0xc')]('/',auth[_0x2da135('0x7')](),controller['index']),router[_0x2da135('0xc')](_0x2da135('0xa'),auth[_0x2da135('0x7')](),controller['show']),router['get']('/:id/configurations',auth[_0x2da135('0x7')](),controller[_0x2da135('0x6')]),router['get'](_0x2da135('0x4'),auth['isAuthenticated'](),controller[_0x2da135('0x8')]),router[_0x2da135('0xd')]('/',auth[_0x2da135('0x7')](),controller[_0x2da135('0x0')]),router[_0x2da135('0xd')](_0x2da135('0x5'),auth['isAuthenticated'](),controller[_0x2da135('0x3')]),router['put'](_0x2da135('0xa'),auth['isAuthenticated'](),controller['update']),router[_0x2da135('0x1')](_0x2da135('0xa'),auth[_0x2da135('0x7')](),controller[_0x2da135('0xb')]),module[_0x2da135('0x2')]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js index 3dcd56a..6a8b4f3 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.attributes.js @@ -1 +1 @@ -const a254_0x463d=['username','STRING','remoteUri','sequelize','exports'];(function(_0x337ab9,_0x463d37){const _0x19a100=function(_0xcd452){while(--_0xcd452){_0x337ab9['push'](_0x337ab9['shift']());}};_0x19a100(++_0x463d37);}(a254_0x463d,0xaa));const a254_0x19a1=function(_0x337ab9,_0x463d37){_0x337ab9=_0x337ab9-0x0;let _0x19a100=a254_0x463d[_0x337ab9];return _0x19a100;};const _0x5db498=a254_0x19a1;'use strict';const Sequelize=require(_0x5db498('0x3'));module[_0x5db498('0x4')]={'name':{'type':Sequelize[_0x5db498('0x1')]},'description':{'type':Sequelize[_0x5db498('0x1')]},'username':{'type':Sequelize[_0x5db498('0x1')],'unique':_0x5db498('0x0')},'apiKey':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0x5db498('0x1')],'unique':_0x5db498('0x2')},'serverUrl':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a254_0x49f0=['remoteUri','sequelize','STRING'];(function(_0x26cc8c,_0x49f03e){const _0x1adcfc=function(_0x46af72){while(--_0x46af72){_0x26cc8c['push'](_0x26cc8c['shift']());}};_0x1adcfc(++_0x49f03e);}(a254_0x49f0,0x1ce));const a254_0x1adc=function(_0x26cc8c,_0x49f03e){_0x26cc8c=_0x26cc8c-0x0;let _0x1adcfc=a254_0x49f0[_0x26cc8c];return _0x1adcfc;};const _0x1f54a3=a254_0x1adc;'use strict';const Sequelize=require(_0x1f54a3('0x1'));module['exports']={'name':{'type':Sequelize[_0x1f54a3('0x2')]},'description':{'type':Sequelize[_0x1f54a3('0x2')]},'username':{'type':Sequelize['STRING'],'unique':'username'},'apiKey':{'type':Sequelize[_0x1f54a3('0x2')]},'remoteUri':{'type':Sequelize['STRING'],'unique':_0x1f54a3('0x0')},'serverUrl':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js index 4d3f99a..1fe21b6 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.controller.js @@ -1 +1 @@ -const a255_0x4954=['includeAll','type','include','fieldName','end','count','format','findOne','catch','keys','query','lastIndexOf','statusCode','label','send','substring','getSubjects','findAll','options','params','limit','filter','includes','merge','default','order','custom_text','then','filters','addConfiguration','Basic\x20%s','where','from','capitalize','length','like','stringify','Subjects','getFields','util','getDescriptions','body','apiKey','slice','update','Wrong\x20credentials','Content-Range','pick','channel','FreshdeskField','model','test','sequelize','api','FreshdeskAccount','api/v2/ticket_fields','intersection','toString','group','FreshdeskConfiguration','status','source','company','rows','../../mysqldb','custom_dropdown','%s:X','VIRTUAL','getConfigurations','Descriptions','offset','show','rawAttributes','key','GET','AccountId','description','fields','ticket_type','error','undefined','nolimit','name','../../components/parsers/qs','attributes','../../components/integrations/configuration','lodash','%s/%s','map','remove','sort'];(function(_0xccf54f,_0x495427){const _0x270efc=function(_0x252ca5){while(--_0x252ca5){_0xccf54f['push'](_0xccf54f['shift']());}};_0x270efc(++_0x495427);}(a255_0x4954,0x1aa));const a255_0x270e=function(_0xccf54f,_0x495427){_0xccf54f=_0xccf54f-0x0;let _0x270efc=a255_0x4954[_0xccf54f];return _0x270efc;};const _0x3a4a3d=a255_0x270e;'use strict';const rp=require('request-promise-native'),util=require(_0x3a4a3d('0x44')),_=require(_0x3a4a3d('0x18')),qs=require(_0x3a4a3d('0x15')),logger=require('../../config/logger')(_0x3a4a3d('0x52')),db=require(_0x3a4a3d('0x2'))['db'],{Op}=require(_0x3a4a3d('0x51')),integrations=require(_0x3a4a3d('0x17'));function respondWithResult(_0x252ca5,_0x8ad262){return _0x8ad262=_0x8ad262||0xc8,function(_0x5ad59a){const _0x3b6a48=a255_0x270e;if(_0x5ad59a)return _0x252ca5[_0x3b6a48('0x59')](_0x8ad262)['json'](_0x5ad59a);};}function respondWithFilteredResult(_0x5c34f2,_0x5c8215){return function(_0x57fd62){const _0x1a7dc5=a255_0x270e;if(_0x57fd62){const _0x4606d3=_0x57fd62['count'],_0x507f24=_0x5c8215[_0x1a7dc5('0x8')];let _0x42aaf9=_0x5c8215[_0x1a7dc5('0x8')]+_0x5c8215[_0x1a7dc5('0x31')],_0x9576e5;return _0x42aaf9>=_0x4606d3?(_0x42aaf9=_0x4606d3,_0x9576e5=0xc8):_0x9576e5=0xce,_0x5c34f2[_0x1a7dc5('0x59')](_0x9576e5),_0x5c34f2['set'](_0x1a7dc5('0x4b'),_0x507f24+'-'+_0x42aaf9+'/'+_0x4606d3)['json'](_0x57fd62);}return null;};}function saveUpdates(_0x30597b){return function(_0x5c573c){const _0x33e0e4=a255_0x270e;if(_0x5c573c)return _0x5c573c[_0x33e0e4('0x49')](_0x30597b)[_0x33e0e4('0x38')](function(_0x434e38){return _0x434e38;});return null;};}function removeEntity(_0x162ecd){return function(_0x191b5d){const _0x328f76=a255_0x270e;if(_0x191b5d)return _0x191b5d['destroy']()[_0x328f76('0x38')](function(){const _0x4073f4=_0x328f76;_0x162ecd[_0x4073f4('0x59')](0xcc)[_0x4073f4('0x21')]();});};}function handleEntityNotFound(_0x29cafc){return function(_0x3c811c){return!_0x3c811c&&_0x29cafc['sendStatus'](0x194),_0x3c811c;};}function handleError(_0x32c162,_0xfd2c4a){return _0xfd2c4a=_0xfd2c4a||0x1f4,function(_0x3a90e4){const _0x488026=a255_0x270e;logger[_0x488026('0x11')](_0x3a90e4['stack']),_0x3a90e4[_0x488026('0x14')]&&delete _0x3a90e4[_0x488026('0x14')],_0x32c162['status'](_0xfd2c4a)[_0x488026('0x2b')](_0x3a90e4);};}exports['index']=function(_0x315938,_0x23adcf){const _0x114b6d=_0x3a4a3d;let _0x1a279b={};const _0x4a9ee3={},_0x3e6217={'count':0x0,'rows':[]},_0x12d6c4=_[_0x114b6d('0x1a')](db['FreshdeskAccount'][_0x114b6d('0xa')],function(_0x496b93){const _0x1212ed=_0x114b6d;return{'name':_0x496b93[_0x1212ed('0x20')],'type':_0x496b93[_0x1212ed('0x1e')][_0x1212ed('0xb')]};});_0x4a9ee3[_0x114b6d('0x4f')]=_[_0x114b6d('0x1a')](_0x12d6c4,'name'),_0x4a9ee3[_0x114b6d('0x27')]=_[_0x114b6d('0x26')](_0x315938[_0x114b6d('0x27')]),_0x4a9ee3[_0x114b6d('0x39')]=_[_0x114b6d('0x55')](_0x4a9ee3['model'],_0x4a9ee3['query']),_0x1a279b[_0x114b6d('0x16')]=_['intersection'](_0x4a9ee3[_0x114b6d('0x4f')],qs[_0x114b6d('0xf')](_0x315938[_0x114b6d('0x27')][_0x114b6d('0xf')])),_0x1a279b['attributes']=_0x1a279b[_0x114b6d('0x16')]['length']?_0x1a279b[_0x114b6d('0x16')]:_0x4a9ee3[_0x114b6d('0x4f')];typeof _0x315938[_0x114b6d('0x27')][_0x114b6d('0x13')]===_0x114b6d('0x12')&&(_0x1a279b[_0x114b6d('0x31')]=qs[_0x114b6d('0x31')](_0x315938['query'][_0x114b6d('0x31')]),_0x1a279b[_0x114b6d('0x8')]=qs[_0x114b6d('0x8')](_0x315938[_0x114b6d('0x27')][_0x114b6d('0x8')]));_0x1a279b[_0x114b6d('0x36')]=qs[_0x114b6d('0x1c')](_0x315938[_0x114b6d('0x27')][_0x114b6d('0x1c')]),_0x1a279b[_0x114b6d('0x3c')]=qs['filters'](_[_0x114b6d('0x4c')](_0x315938['query'],_0x4a9ee3[_0x114b6d('0x39')]),_0x12d6c4);_0x315938[_0x114b6d('0x27')][_0x114b6d('0x32')]&&(_0x1a279b[_0x114b6d('0x3c')]=_[_0x114b6d('0x34')](_0x1a279b[_0x114b6d('0x3c')],{[Op['or']]:_['map'](_0x12d6c4,function(_0x54e83a){const _0x4582d5=_0x114b6d;if(_0x54e83a[_0x4582d5('0x1e')]!==_0x4582d5('0x5')){const _0x22f065={};return _0x22f065[_0x54e83a[_0x4582d5('0x14')]]={[Op['like']]:'%'+_0x315938[_0x4582d5('0x27')][_0x4582d5('0x32')]+'%'},_0x22f065;}})}));_0x1a279b=_[_0x114b6d('0x34')]({},_0x1a279b,_0x315938[_0x114b6d('0x2f')]);const _0x5bef08={'where':_0x1a279b['where']};return db[_0x114b6d('0x53')][_0x114b6d('0x22')](_0x5bef08)['then'](function(_0x4045f0){const _0x836e02=_0x114b6d;return _0x3e6217[_0x836e02('0x22')]=_0x4045f0,_0x315938['query'][_0x836e02('0x1d')]&&(_0x1a279b[_0x836e02('0x1f')]=[{'all':!![]}]),db[_0x836e02('0x53')][_0x836e02('0x2e')](_0x1a279b);})['then'](function(_0x4f44f9){const _0xa33b95=_0x114b6d;return _0x3e6217[_0xa33b95('0x1')]=_0x4f44f9,_0x3e6217;})['then'](respondWithFilteredResult(_0x23adcf,_0x1a279b))[_0x114b6d('0x25')](handleError(_0x23adcf,null));},exports[_0x3a4a3d('0x9')]=function(_0x4644ee,_0x9fb0d5){const _0x1291b0=_0x3a4a3d;let _0x14e098={'raw':![],'where':{'id':_0x4644ee[_0x1291b0('0x30')]['id']}};const _0x170bf3={};return _0x170bf3['model']=_['keys'](db[_0x1291b0('0x53')][_0x1291b0('0xa')]),_0x170bf3['query']=_['keys'](_0x4644ee[_0x1291b0('0x27')]),_0x170bf3[_0x1291b0('0x39')]=_[_0x1291b0('0x55')](_0x170bf3[_0x1291b0('0x4f')],_0x170bf3[_0x1291b0('0x27')]),_0x14e098[_0x1291b0('0x16')]=_[_0x1291b0('0x55')](_0x170bf3['model'],qs[_0x1291b0('0xf')](_0x4644ee[_0x1291b0('0x27')][_0x1291b0('0xf')])),_0x14e098[_0x1291b0('0x16')]=_0x14e098[_0x1291b0('0x16')][_0x1291b0('0x3f')]?_0x14e098[_0x1291b0('0x16')]:_0x170bf3['model'],_0x4644ee['query'][_0x1291b0('0x1d')]&&(_0x14e098['include']=[{'all':!![]}]),_0x14e098=_[_0x1291b0('0x34')]({},_0x14e098,_0x4644ee['options']),db['FreshdeskAccount']['findOne'](_0x14e098)[_0x1291b0('0x38')](handleEntityNotFound(_0x9fb0d5,null))['then'](respondWithResult(_0x9fb0d5,null))[_0x1291b0('0x25')](handleError(_0x9fb0d5,null));},exports['create']=function(_0x338955,_0x330491){const _0x2f6147=_0x3a4a3d;return db[_0x2f6147('0x53')]['create'](_0x338955[_0x2f6147('0x46')],{})[_0x2f6147('0x38')](respondWithResult(_0x330491,0xc9))[_0x2f6147('0x25')](handleError(_0x330491,null));},exports[_0x3a4a3d('0x49')]=function(_0x253863,_0x42a0ca){const _0x6c2a7e=_0x3a4a3d;return _0x253863[_0x6c2a7e('0x46')]['id']&&delete _0x253863[_0x6c2a7e('0x46')]['id'],db[_0x6c2a7e('0x53')][_0x6c2a7e('0x24')]({'where':{'id':_0x253863[_0x6c2a7e('0x30')]['id']}})[_0x6c2a7e('0x38')](handleEntityNotFound(_0x42a0ca,null))[_0x6c2a7e('0x38')](saveUpdates(_0x253863[_0x6c2a7e('0x46')],null))['then'](respondWithResult(_0x42a0ca,null))['catch'](handleError(_0x42a0ca,null));},exports['destroy']=function(_0x545786,_0x472df9){const _0x9d6b84=_0x3a4a3d;return db['FreshdeskAccount'][_0x9d6b84('0x24')]({'where':{'id':_0x545786[_0x9d6b84('0x30')]['id']}})[_0x9d6b84('0x38')](handleEntityNotFound(_0x472df9,null))[_0x9d6b84('0x38')](removeEntity(_0x472df9,null))[_0x9d6b84('0x25')](handleError(_0x472df9,null));},exports[_0x3a4a3d('0x6')]=function(_0x3dbe19,_0x2b0f7){const _0x165356=_0x3a4a3d;let _0x4a466b={};const _0x3511f8={};let _0x2d622e,_0x32a5d7;return db[_0x165356('0x53')][_0x165356('0x24')]({'where':{'id':_0x3dbe19['params']['id']}})[_0x165356('0x38')](handleEntityNotFound(_0x2b0f7,null))[_0x165356('0x38')](function(_0x4b6ffe){const _0x57b986=_0x165356;if(_0x4b6ffe)return _0x2d622e=_0x4b6ffe,_0x3511f8['model']=_[_0x57b986('0x26')](db['FreshdeskConfiguration'][_0x57b986('0xa')]),_0x3511f8['query']=_[_0x57b986('0x26')](_0x3dbe19[_0x57b986('0x27')]),_0x3511f8[_0x57b986('0x39')]=_['intersection'](_0x3511f8[_0x57b986('0x4f')],_0x3511f8[_0x57b986('0x27')]),_0x4a466b[_0x57b986('0x16')]=_[_0x57b986('0x55')](_0x3511f8[_0x57b986('0x4f')],qs[_0x57b986('0xf')](_0x3dbe19[_0x57b986('0x27')][_0x57b986('0xf')])),_0x4a466b[_0x57b986('0x16')]=_0x4a466b[_0x57b986('0x16')]['length']?_0x4a466b[_0x57b986('0x16')]:_0x3511f8[_0x57b986('0x4f')],_0x4a466b[_0x57b986('0x36')]=qs['sort'](_0x3dbe19[_0x57b986('0x27')]['sort']),_0x4a466b[_0x57b986('0x3c')]=qs['filters'](_[_0x57b986('0x4c')](_0x3dbe19[_0x57b986('0x27')],_0x3511f8[_0x57b986('0x39')])),_0x3dbe19[_0x57b986('0x27')][_0x57b986('0x32')]&&(_0x4a466b[_0x57b986('0x3c')]=_[_0x57b986('0x34')](_0x4a466b[_0x57b986('0x3c')],{[Op['or']]:_[_0x57b986('0x1a')](_0x4a466b[_0x57b986('0x16')],function(_0x5493eb){const _0x248085=_0x57b986,_0xf829d9={};return _0xf829d9[_0x5493eb]={[Op[_0x248085('0x40')]]:'%'+_0x3dbe19['query'][_0x248085('0x32')]+'%'},_0xf829d9;})})),_0x4a466b=_[_0x57b986('0x34')]({},_0x4a466b,_0x3dbe19[_0x57b986('0x2f')]),_0x2d622e[_0x57b986('0x6')](_0x4a466b);})[_0x165356('0x38')](function(_0x4fd361){const _0x2658be=_0x165356;if(_0x4fd361)return _0x32a5d7=_0x4fd361[_0x2658be('0x3f')],typeof _0x3dbe19[_0x2658be('0x27')][_0x2658be('0x13')]===_0x2658be('0x12')&&(_0x4a466b[_0x2658be('0x31')]=qs[_0x2658be('0x31')](_0x3dbe19['query'][_0x2658be('0x31')]),_0x4a466b[_0x2658be('0x8')]=qs[_0x2658be('0x8')](_0x3dbe19['query'][_0x2658be('0x8')])),_0x2d622e[_0x2658be('0x6')](_0x4a466b);})[_0x165356('0x38')](function(_0x207b44){if(_0x207b44)return _0x207b44?{'count':_0x32a5d7,'rows':_0x207b44}:null;})[_0x165356('0x38')](respondWithResult(_0x2b0f7,null))[_0x165356('0x25')](handleError(_0x2b0f7,null));},exports[_0x3a4a3d('0x3a')]=function(_0x3a1d17,_0x5b0050){const _0xc54a91=_0x3a4a3d;return _0x3a1d17[_0xc54a91('0x46')]['id']&&delete _0x3a1d17[_0xc54a91('0x46')]['id'],db[_0xc54a91('0x53')]['findOne']({'where':{'id':_0x3a1d17[_0xc54a91('0x30')]['id']}})[_0xc54a91('0x38')](handleEntityNotFound(_0x5b0050,null))[_0xc54a91('0x38')](function(_0xea7897){const _0x4e6465=_0xc54a91;if(_0xea7897)return _0x3a1d17['body'][_0x4e6465('0xd')]=_0xea7897['id'],_0x3a1d17[_0x4e6465('0x46')]['Subjects']=integrations[_0x4e6465('0x2d')](_0x3a1d17[_0x4e6465('0x46')][_0x4e6465('0x4d')],_0x3a1d17['body'][_0x4e6465('0x1e')]),_0x3a1d17[_0x4e6465('0x46')][_0x4e6465('0x7')]=integrations[_0x4e6465('0x45')](_0x3a1d17[_0x4e6465('0x46')]['channel'],_0x3a1d17[_0x4e6465('0x46')]['type']),db[_0x4e6465('0x58')]['create'](_0x3a1d17[_0x4e6465('0x46')],{'include':[{'model':db[_0x4e6465('0x4e')],'as':_0x4e6465('0x42')},{'model':db['FreshdeskField'],'as':_0x4e6465('0x7')}]});return null;})[_0xc54a91('0x38')](respondWithResult(_0x5b0050,null))[_0xc54a91('0x25')](handleError(_0x5b0050,null));},exports[_0x3a4a3d('0x43')]=function(_0x492812,_0x2b4978){const _0x5832a2=_0x3a4a3d;let _0x4b326a='';return db['FreshdeskAccount'][_0x5832a2('0x24')]({'where':{'id':_0x492812[_0x5832a2('0x30')]['id']},'attributes':['id','remoteUri',_0x5832a2('0x47')]})[_0x5832a2('0x38')](handleEntityNotFound(_0x2b4978,null))[_0x5832a2('0x38')](function(_0x40982e){const _0x32321f=_0x5832a2;if(_0x40982e){_0x4b326a=_0x40982e['remoteUri'];const _0x5a672c=_0x4b326a[_0x32321f('0x48')](-0x1);return _0x5a672c==='/'&&(_0x4b326a=_0x4b326a[_0x32321f('0x2c')](0x0,_0x4b326a[_0x32321f('0x28')](_0x5a672c))),rp({'method':_0x32321f('0xc'),'uri':util['format'](_0x32321f('0x19'),_0x4b326a,_0x32321f('0x54')),'headers':{'Authorization':util['format'](_0x32321f('0x3b'),Buffer[_0x32321f('0x3d')](util[_0x32321f('0x23')](_0x32321f('0x4'),_0x40982e[_0x32321f('0x47')]))[_0x32321f('0x56')]('base64'))},'json':!![]});}})[_0x5832a2('0x38')](function(_0x411da3){const _0x2a698e=_0x5832a2;if(_0x411da3){const _0x29e846=['requester','subject','agent',_0x2a698e('0xe'),_0x2a698e('0x59'),'priority',_0x2a698e('0x57'),_0x2a698e('0x5a'),_0x2a698e('0x10'),'group',_0x2a698e('0x0')];return _[_0x2a698e('0x1b')](_0x411da3,function(_0x442b19){const _0x3242d8=_0x2a698e;return _0x29e846[_0x3242d8('0x33')](_0x442b19[_0x3242d8('0x14')])||!_0x442b19[_0x3242d8('0x35')]&&_0x442b19[_0x3242d8('0x1e')]!==_0x3242d8('0x37')&&_0x442b19[_0x3242d8('0x1e')]!==_0x3242d8('0x3');}),{'count':_0x411da3['length'],'rows':_[_0x2a698e('0x1a')](_0x411da3,function(_0x344cae){const _0x174b94=_0x2a698e;return{'id':_0x344cae[_0x174b94('0x14')],'name':_0x344cae[_0x174b94('0x2a')],'custom':!_0x344cae[_0x174b94('0x35')],'options':_0x344cae['choices']?_['map'](_0x344cae['choices'],function(_0x2fbf48){const _0x227339=_0x174b94;return{'name':_[_0x227339('0x3e')](_0x2fbf48),'value':_0x2fbf48};}):[]};})};}})['then'](respondWithResult(_0x2b4978,null))[_0x5832a2('0x25')](function(_0x1131fe){const _0x1b6050=_0x5832a2;let _0x192350=_0x492812['query']['test']?0x1f4:_0x1131fe[_0x1b6050('0x29')]||0x1f4;logger[_0x1b6050('0x11')]('getFields,\x20%s,\x20%s,\x20%s',_0x1b6050('0x43'),_0x192350,JSON[_0x1b6050('0x41')](_0x1131fe)),delete _0x1131fe[_0x1b6050('0x14')],_0x192350===0x191&&(_0x192350=0x190),_0x2b4978[_0x1b6050('0x59')](_0x192350)[_0x1b6050('0x2b')](_0x492812['query'][_0x1b6050('0x50')]?{'message':_0x1b6050('0x4a'),'statusCode':_0x1131fe[_0x1b6050('0x29')]}:_0x1131fe);});}; \ No newline at end of file +const a255_0x165f=['api/v2/ticket_fields','test','requester','params','Descriptions','slice','%s:X','statusCode','FreshdeskConfiguration','Content-Range','apiKey','from','type','end','request-promise-native','company','capitalize','stringify','filter','error','agent','model','attributes','addConfiguration','getFields','FreshdeskField','GET','nolimit','keys','includeAll','choices','like','offset','intersection','Subjects','ticket_type','label','then','getConfigurations','count','query','length','filters','rawAttributes','destroy','pick','../../config/logger','fields','description','custom_text','getFields,\x20%s,\x20%s,\x20%s','AccountId','../../mysqldb','base64','findOne','map','limit','json','where','channel','custom_dropdown','options','set','rows','includes','format','api','%s/%s','substring','stack','name','show','Wrong\x20credentials','FreshdeskAccount','order','remove','undefined','catch','getSubjects','findAll','send','../../components/integrations/configuration','getDescriptions','update','remoteUri','create','index','body','Basic\x20%s','util','sort','status','merge','include','source','group','default'];(function(_0xe9a9af,_0x165f8f){const _0xe557f1=function(_0xca226c){while(--_0xca226c){_0xe9a9af['push'](_0xe9a9af['shift']());}};_0xe557f1(++_0x165f8f);}(a255_0x165f,0x75));const a255_0xe557=function(_0xe9a9af,_0x165f8f){_0xe9a9af=_0xe9a9af-0x0;let _0xe557f1=a255_0x165f[_0xe9a9af];return _0xe557f1;};const _0x29d13e=a255_0xe557;'use strict';const rp=require(_0x29d13e('0x5b')),util=require(_0x29d13e('0x45')),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x29d13e('0x1a'))(_0x29d13e('0x2e')),db=require(_0x29d13e('0x20'))['db'],{Op}=require('sequelize'),integrations=require(_0x29d13e('0x3d'));function respondWithResult(_0xca226c,_0x67795e){return _0x67795e=_0x67795e||0xc8,function(_0x3d1f9c){const _0x389330=a255_0xe557;if(_0x3d1f9c)return _0xca226c['status'](_0x67795e)[_0x389330('0x25')](_0x3d1f9c);};}function respondWithFilteredResult(_0x45842a,_0x4951ee){return function(_0x564270){const _0x3af646=a255_0xe557;if(_0x564270){const _0x5c2a89=_0x564270[_0x3af646('0x13')],_0x572139=_0x4951ee[_0x3af646('0xc')];let _0x324035=_0x4951ee[_0x3af646('0xc')]+_0x4951ee[_0x3af646('0x24')],_0x15bb7e;return _0x324035>=_0x5c2a89?(_0x324035=_0x5c2a89,_0x15bb7e=0xc8):_0x15bb7e=0xce,_0x45842a[_0x3af646('0x47')](_0x15bb7e),_0x45842a[_0x3af646('0x2a')](_0x3af646('0x56'),_0x572139+'-'+_0x324035+'/'+_0x5c2a89)[_0x3af646('0x25')](_0x564270);}return null;};}function saveUpdates(_0x1a008d){return function(_0x2719ef){const _0x306222=a255_0xe557;if(_0x2719ef)return _0x2719ef[_0x306222('0x3f')](_0x1a008d)['then'](function(_0x4dac00){return _0x4dac00;});return null;};}function removeEntity(_0x4c262a){return function(_0x4091bb){const _0x1c3a59=a255_0xe557;if(_0x4091bb)return _0x4091bb[_0x1c3a59('0x18')]()[_0x1c3a59('0x11')](function(){const _0x4eb0a9=_0x1c3a59;_0x4c262a[_0x4eb0a9('0x47')](0xcc)[_0x4eb0a9('0x5a')]();});};}function handleEntityNotFound(_0x36264b){return function(_0x49421b){return!_0x49421b&&_0x36264b['sendStatus'](0x194),_0x49421b;};}function handleError(_0x58e364,_0x453052){return _0x453052=_0x453052||0x1f4,function(_0x7672f2){const _0x438385=a255_0xe557;logger[_0x438385('0x60')](_0x7672f2[_0x438385('0x31')]),_0x7672f2[_0x438385('0x32')]&&delete _0x7672f2[_0x438385('0x32')],_0x58e364['status'](_0x453052)[_0x438385('0x3c')](_0x7672f2);};}exports[_0x29d13e('0x42')]=function(_0x3b7d5f,_0x181031){const _0x9f2aef=_0x29d13e;let _0x395312={};const _0x2e8bda={},_0x4833f9={'count':0x0,'rows':[]},_0x1c134e=_[_0x9f2aef('0x23')](db['FreshdeskAccount'][_0x9f2aef('0x17')],function(_0x9d6ca6){return{'name':_0x9d6ca6['fieldName'],'type':_0x9d6ca6['type']['key']};});_0x2e8bda['model']=_[_0x9f2aef('0x23')](_0x1c134e,_0x9f2aef('0x32')),_0x2e8bda[_0x9f2aef('0x14')]=_[_0x9f2aef('0x8')](_0x3b7d5f[_0x9f2aef('0x14')]),_0x2e8bda[_0x9f2aef('0x16')]=_['intersection'](_0x2e8bda[_0x9f2aef('0x1')],_0x2e8bda['query']),_0x395312[_0x9f2aef('0x2')]=_['intersection'](_0x2e8bda[_0x9f2aef('0x1')],qs[_0x9f2aef('0x1b')](_0x3b7d5f[_0x9f2aef('0x14')]['fields'])),_0x395312['attributes']=_0x395312[_0x9f2aef('0x2')][_0x9f2aef('0x15')]?_0x395312[_0x9f2aef('0x2')]:_0x2e8bda[_0x9f2aef('0x1')];typeof _0x3b7d5f[_0x9f2aef('0x14')][_0x9f2aef('0x7')]==='undefined'&&(_0x395312[_0x9f2aef('0x24')]=qs[_0x9f2aef('0x24')](_0x3b7d5f['query'][_0x9f2aef('0x24')]),_0x395312['offset']=qs['offset'](_0x3b7d5f['query'][_0x9f2aef('0xc')]));_0x395312['order']=qs[_0x9f2aef('0x46')](_0x3b7d5f[_0x9f2aef('0x14')][_0x9f2aef('0x46')]),_0x395312['where']=qs[_0x9f2aef('0x16')](_[_0x9f2aef('0x19')](_0x3b7d5f[_0x9f2aef('0x14')],_0x2e8bda[_0x9f2aef('0x16')]),_0x1c134e);_0x3b7d5f[_0x9f2aef('0x14')]['filter']&&(_0x395312[_0x9f2aef('0x26')]=_[_0x9f2aef('0x48')](_0x395312[_0x9f2aef('0x26')],{[Op['or']]:_[_0x9f2aef('0x23')](_0x1c134e,function(_0x462d86){const _0x45eeee=_0x9f2aef;if(_0x462d86[_0x45eeee('0x59')]!=='VIRTUAL'){const _0x2149e9={};return _0x2149e9[_0x462d86['name']]={[Op[_0x45eeee('0xb')]]:'%'+_0x3b7d5f[_0x45eeee('0x14')][_0x45eeee('0x5f')]+'%'},_0x2149e9;}})}));_0x395312=_['merge']({},_0x395312,_0x3b7d5f[_0x9f2aef('0x29')]);const _0x503e6a={'where':_0x395312[_0x9f2aef('0x26')]};return db[_0x9f2aef('0x35')]['count'](_0x503e6a)[_0x9f2aef('0x11')](function(_0x2e6aee){const _0x5bce01=_0x9f2aef;return _0x4833f9[_0x5bce01('0x13')]=_0x2e6aee,_0x3b7d5f[_0x5bce01('0x14')][_0x5bce01('0x9')]&&(_0x395312[_0x5bce01('0x49')]=[{'all':!![]}]),db[_0x5bce01('0x35')][_0x5bce01('0x3b')](_0x395312);})[_0x9f2aef('0x11')](function(_0x5b135f){const _0x15bcbc=_0x9f2aef;return _0x4833f9[_0x15bcbc('0x2b')]=_0x5b135f,_0x4833f9;})[_0x9f2aef('0x11')](respondWithFilteredResult(_0x181031,_0x395312))[_0x9f2aef('0x39')](handleError(_0x181031,null));},exports[_0x29d13e('0x33')]=function(_0xf0a8da,_0x26332e){const _0x55d7b8=_0x29d13e;let _0x15fff0={'raw':![],'where':{'id':_0xf0a8da[_0x55d7b8('0x50')]['id']}};const _0xffb381={};return _0xffb381[_0x55d7b8('0x1')]=_[_0x55d7b8('0x8')](db[_0x55d7b8('0x35')][_0x55d7b8('0x17')]),_0xffb381[_0x55d7b8('0x14')]=_[_0x55d7b8('0x8')](_0xf0a8da['query']),_0xffb381[_0x55d7b8('0x16')]=_['intersection'](_0xffb381['model'],_0xffb381[_0x55d7b8('0x14')]),_0x15fff0[_0x55d7b8('0x2')]=_[_0x55d7b8('0xd')](_0xffb381[_0x55d7b8('0x1')],qs['fields'](_0xf0a8da['query'][_0x55d7b8('0x1b')])),_0x15fff0['attributes']=_0x15fff0[_0x55d7b8('0x2')][_0x55d7b8('0x15')]?_0x15fff0[_0x55d7b8('0x2')]:_0xffb381[_0x55d7b8('0x1')],_0xf0a8da[_0x55d7b8('0x14')][_0x55d7b8('0x9')]&&(_0x15fff0[_0x55d7b8('0x49')]=[{'all':!![]}]),_0x15fff0=_[_0x55d7b8('0x48')]({},_0x15fff0,_0xf0a8da['options']),db[_0x55d7b8('0x35')][_0x55d7b8('0x22')](_0x15fff0)[_0x55d7b8('0x11')](handleEntityNotFound(_0x26332e,null))[_0x55d7b8('0x11')](respondWithResult(_0x26332e,null))[_0x55d7b8('0x39')](handleError(_0x26332e,null));},exports[_0x29d13e('0x41')]=function(_0x5f2800,_0x1de494){const _0x1092f3=_0x29d13e;return db[_0x1092f3('0x35')][_0x1092f3('0x41')](_0x5f2800['body'],{})[_0x1092f3('0x11')](respondWithResult(_0x1de494,0xc9))[_0x1092f3('0x39')](handleError(_0x1de494,null));},exports[_0x29d13e('0x3f')]=function(_0x57ceaa,_0x2d3e0c){const _0x67869a=_0x29d13e;return _0x57ceaa[_0x67869a('0x43')]['id']&&delete _0x57ceaa[_0x67869a('0x43')]['id'],db['FreshdeskAccount'][_0x67869a('0x22')]({'where':{'id':_0x57ceaa[_0x67869a('0x50')]['id']}})[_0x67869a('0x11')](handleEntityNotFound(_0x2d3e0c,null))['then'](saveUpdates(_0x57ceaa[_0x67869a('0x43')],null))[_0x67869a('0x11')](respondWithResult(_0x2d3e0c,null))[_0x67869a('0x39')](handleError(_0x2d3e0c,null));},exports[_0x29d13e('0x18')]=function(_0x581d4f,_0x158cab){const _0x1610cc=_0x29d13e;return db['FreshdeskAccount']['findOne']({'where':{'id':_0x581d4f[_0x1610cc('0x50')]['id']}})['then'](handleEntityNotFound(_0x158cab,null))[_0x1610cc('0x11')](removeEntity(_0x158cab,null))[_0x1610cc('0x39')](handleError(_0x158cab,null));},exports[_0x29d13e('0x12')]=function(_0x5215d7,_0x4492a2){const _0x25061f=_0x29d13e;let _0x578c91={};const _0x2f0b6c={};let _0x82e94f,_0x25ba94;return db[_0x25061f('0x35')][_0x25061f('0x22')]({'where':{'id':_0x5215d7[_0x25061f('0x50')]['id']}})[_0x25061f('0x11')](handleEntityNotFound(_0x4492a2,null))[_0x25061f('0x11')](function(_0xad3f3f){const _0x5608dc=_0x25061f;if(_0xad3f3f)return _0x82e94f=_0xad3f3f,_0x2f0b6c['model']=_[_0x5608dc('0x8')](db[_0x5608dc('0x55')][_0x5608dc('0x17')]),_0x2f0b6c[_0x5608dc('0x14')]=_[_0x5608dc('0x8')](_0x5215d7[_0x5608dc('0x14')]),_0x2f0b6c['filters']=_[_0x5608dc('0xd')](_0x2f0b6c[_0x5608dc('0x1')],_0x2f0b6c[_0x5608dc('0x14')]),_0x578c91[_0x5608dc('0x2')]=_[_0x5608dc('0xd')](_0x2f0b6c[_0x5608dc('0x1')],qs['fields'](_0x5215d7[_0x5608dc('0x14')][_0x5608dc('0x1b')])),_0x578c91[_0x5608dc('0x2')]=_0x578c91['attributes'][_0x5608dc('0x15')]?_0x578c91[_0x5608dc('0x2')]:_0x2f0b6c[_0x5608dc('0x1')],_0x578c91[_0x5608dc('0x36')]=qs['sort'](_0x5215d7[_0x5608dc('0x14')][_0x5608dc('0x46')]),_0x578c91[_0x5608dc('0x26')]=qs[_0x5608dc('0x16')](_['pick'](_0x5215d7['query'],_0x2f0b6c['filters'])),_0x5215d7[_0x5608dc('0x14')][_0x5608dc('0x5f')]&&(_0x578c91['where']=_[_0x5608dc('0x48')](_0x578c91[_0x5608dc('0x26')],{[Op['or']]:_[_0x5608dc('0x23')](_0x578c91[_0x5608dc('0x2')],function(_0x4696f3){const _0x5306d8=_0x5608dc,_0x438924={};return _0x438924[_0x4696f3]={[Op[_0x5306d8('0xb')]]:'%'+_0x5215d7[_0x5306d8('0x14')][_0x5306d8('0x5f')]+'%'},_0x438924;})})),_0x578c91=_[_0x5608dc('0x48')]({},_0x578c91,_0x5215d7[_0x5608dc('0x29')]),_0x82e94f['getConfigurations'](_0x578c91);})['then'](function(_0x3af1cb){const _0x282f79=_0x25061f;if(_0x3af1cb)return _0x25ba94=_0x3af1cb[_0x282f79('0x15')],typeof _0x5215d7[_0x282f79('0x14')][_0x282f79('0x7')]===_0x282f79('0x38')&&(_0x578c91['limit']=qs[_0x282f79('0x24')](_0x5215d7[_0x282f79('0x14')][_0x282f79('0x24')]),_0x578c91[_0x282f79('0xc')]=qs['offset'](_0x5215d7['query'][_0x282f79('0xc')])),_0x82e94f['getConfigurations'](_0x578c91);})[_0x25061f('0x11')](function(_0x2cab7d){if(_0x2cab7d)return _0x2cab7d?{'count':_0x25ba94,'rows':_0x2cab7d}:null;})[_0x25061f('0x11')](respondWithResult(_0x4492a2,null))['catch'](handleError(_0x4492a2,null));},exports[_0x29d13e('0x3')]=function(_0x4580ff,_0x2b4b51){const _0x1f7cc7=_0x29d13e;return _0x4580ff[_0x1f7cc7('0x43')]['id']&&delete _0x4580ff[_0x1f7cc7('0x43')]['id'],db[_0x1f7cc7('0x35')][_0x1f7cc7('0x22')]({'where':{'id':_0x4580ff[_0x1f7cc7('0x50')]['id']}})['then'](handleEntityNotFound(_0x2b4b51,null))[_0x1f7cc7('0x11')](function(_0x239a8f){const _0x3df1c9=_0x1f7cc7;if(_0x239a8f)return _0x4580ff[_0x3df1c9('0x43')][_0x3df1c9('0x1f')]=_0x239a8f['id'],_0x4580ff[_0x3df1c9('0x43')][_0x3df1c9('0xe')]=integrations[_0x3df1c9('0x3a')](_0x4580ff[_0x3df1c9('0x43')][_0x3df1c9('0x27')],_0x4580ff[_0x3df1c9('0x43')][_0x3df1c9('0x59')]),_0x4580ff[_0x3df1c9('0x43')][_0x3df1c9('0x51')]=integrations[_0x3df1c9('0x3e')](_0x4580ff[_0x3df1c9('0x43')][_0x3df1c9('0x27')],_0x4580ff[_0x3df1c9('0x43')]['type']),db[_0x3df1c9('0x55')]['create'](_0x4580ff[_0x3df1c9('0x43')],{'include':[{'model':db[_0x3df1c9('0x5')],'as':_0x3df1c9('0xe')},{'model':db[_0x3df1c9('0x5')],'as':_0x3df1c9('0x51')}]});return null;})[_0x1f7cc7('0x11')](respondWithResult(_0x2b4b51,null))[_0x1f7cc7('0x39')](handleError(_0x2b4b51,null));},exports[_0x29d13e('0x4')]=function(_0x2cda4e,_0x491f85){const _0xeacadd=_0x29d13e;let _0x3d4d21='';return db['FreshdeskAccount'][_0xeacadd('0x22')]({'where':{'id':_0x2cda4e[_0xeacadd('0x50')]['id']},'attributes':['id',_0xeacadd('0x40'),'apiKey']})[_0xeacadd('0x11')](handleEntityNotFound(_0x491f85,null))[_0xeacadd('0x11')](function(_0x39f769){const _0x2dce79=_0xeacadd;if(_0x39f769){_0x3d4d21=_0x39f769['remoteUri'];const _0x46d7a1=_0x3d4d21[_0x2dce79('0x52')](-0x1);return _0x46d7a1==='/'&&(_0x3d4d21=_0x3d4d21[_0x2dce79('0x30')](0x0,_0x3d4d21['lastIndexOf'](_0x46d7a1))),rp({'method':_0x2dce79('0x6'),'uri':util['format'](_0x2dce79('0x2f'),_0x3d4d21,_0x2dce79('0x4d')),'headers':{'Authorization':util[_0x2dce79('0x2d')](_0x2dce79('0x44'),Buffer[_0x2dce79('0x58')](util['format'](_0x2dce79('0x53'),_0x39f769[_0x2dce79('0x57')]))['toString'](_0x2dce79('0x21')))},'json':!![]});}})[_0xeacadd('0x11')](function(_0x5a8248){const _0x2fbf9f=_0xeacadd;if(_0x5a8248){const _0x2dc0b8=[_0x2fbf9f('0x4f'),'subject',_0x2fbf9f('0x0'),_0x2fbf9f('0x1c'),_0x2fbf9f('0x47'),'priority','group',_0x2fbf9f('0x4a'),_0x2fbf9f('0xf'),_0x2fbf9f('0x4b'),_0x2fbf9f('0x5c')];return _[_0x2fbf9f('0x37')](_0x5a8248,function(_0x16ede4){const _0x3e9e88=_0x2fbf9f;return _0x2dc0b8[_0x3e9e88('0x2c')](_0x16ede4[_0x3e9e88('0x32')])||!_0x16ede4[_0x3e9e88('0x4c')]&&_0x16ede4[_0x3e9e88('0x59')]!==_0x3e9e88('0x1d')&&_0x16ede4[_0x3e9e88('0x59')]!==_0x3e9e88('0x28');}),{'count':_0x5a8248[_0x2fbf9f('0x15')],'rows':_['map'](_0x5a8248,function(_0x559f7d){const _0x1ba699=_0x2fbf9f;return{'id':_0x559f7d[_0x1ba699('0x32')],'name':_0x559f7d[_0x1ba699('0x10')],'custom':!_0x559f7d[_0x1ba699('0x4c')],'options':_0x559f7d[_0x1ba699('0xa')]?_[_0x1ba699('0x23')](_0x559f7d[_0x1ba699('0xa')],function(_0x13e624){const _0x611388=_0x1ba699;return{'name':_[_0x611388('0x5d')](_0x13e624),'value':_0x13e624};}):[]};})};}})[_0xeacadd('0x11')](respondWithResult(_0x491f85,null))['catch'](function(_0x2a1df7){const _0xdc5519=_0xeacadd;let _0x336246=_0x2cda4e[_0xdc5519('0x14')][_0xdc5519('0x4e')]?0x1f4:_0x2a1df7[_0xdc5519('0x54')]||0x1f4;logger['error'](_0xdc5519('0x1e'),_0xdc5519('0x4'),_0x336246,JSON[_0xdc5519('0x5e')](_0x2a1df7)),delete _0x2a1df7[_0xdc5519('0x32')],_0x336246===0x191&&(_0x336246=0x190),_0x491f85['status'](_0x336246)[_0xdc5519('0x3c')](_0x2cda4e[_0xdc5519('0x14')][_0xdc5519('0x4e')]?{'message':_0xdc5519('0x34'),'statusCode':_0x2a1df7[_0xdc5519('0x54')]}:_0x2a1df7);});}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js index 8a54fa6..d7deca3 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.model.js @@ -1 +1 @@ -const a256_0x4990=['exports','FreshdeskAccount','./intFreshdeskAccount.attributes','int_freshdesk_accounts'];(function(_0x36df16,_0x49904c){const _0x19b36e=function(_0x5a7262){while(--_0x5a7262){_0x36df16['push'](_0x36df16['shift']());}};_0x19b36e(++_0x49904c);}(a256_0x4990,0xaf));const a256_0x19b3=function(_0x36df16,_0x49904c){_0x36df16=_0x36df16-0x0;let _0x19b36e=a256_0x4990[_0x36df16];return _0x19b36e;};const _0xbf9dd9=a256_0x19b3;'use strict';const attributes=require(_0xbf9dd9('0x3'));module[_0xbf9dd9('0x1')]=function(_0x5a7262){const _0x1eaa5d=_0xbf9dd9,_0x1d9f42=_0x5a7262['define'](_0x1eaa5d('0x2'),attributes,{'tableName':_0x1eaa5d('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d9f42;}; \ No newline at end of file +const a256_0x4cdc=['./intFreshdeskAccount.attributes','FreshdeskAccount','exports','define'];(function(_0x4cab59,_0x4cdc12){const _0x24e20a=function(_0x5208f2){while(--_0x5208f2){_0x4cab59['push'](_0x4cab59['shift']());}};_0x24e20a(++_0x4cdc12);}(a256_0x4cdc,0x15c));const a256_0x24e2=function(_0x4cab59,_0x4cdc12){_0x4cab59=_0x4cab59-0x0;let _0x24e20a=a256_0x4cdc[_0x4cab59];return _0x24e20a;};const _0x14cf49=a256_0x24e2;'use strict';const attributes=require(_0x14cf49('0x0'));module[_0x14cf49('0x2')]=function(_0x5208f2){const _0x3cb483=_0x14cf49,_0x19ce95=_0x5208f2[_0x3cb483('0x3')](_0x3cb483('0x1'),attributes,{'tableName':'int_freshdesk_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x19ce95;}; \ No newline at end of file diff --git a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js index 2c30d80..cd42873 100644 --- a/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js +++ b/server/api/intFreshdeskAccount/intFreshdeskAccount.rpc.js @@ -1 +1 @@ -const a257_0x30f7=['where','message','map','error','model','lodash','../../mysqldb','options','rpc','include','info','attributes','../../config/logger','then','raw','ShowFreshdeskAccount','catch','FreshdeskAccount','GetFreshdeskAccount','findOne','debug'];(function(_0x3d98a4,_0x30f798){const _0x5310f0=function(_0x109601){while(--_0x109601){_0x3d98a4['push'](_0x3d98a4['shift']());}};_0x5310f0(++_0x30f798);}(a257_0x30f7,0x1dd));const a257_0x5310=function(_0x3d98a4,_0x30f798){_0x3d98a4=_0x3d98a4-0x0;let _0x5310f0=a257_0x30f7[_0x3d98a4];return _0x5310f0;};const _0x3538c1=a257_0x5310;'use strict';const _=require(_0x3538c1('0xb')),db=require(_0x3538c1('0xc'))['db'],logger=require(_0x3538c1('0x12'))(_0x3538c1('0xe'));exports[_0x3538c1('0x3')]=function(_0x109601){const _0x4ca1ba=this;return new Promise(function(_0x5477cc,_0x14bdc2){const _0x392c0c=a257_0x5310;return db[_0x392c0c('0x2')]['findAll']({'raw':_0x109601[_0x392c0c('0xd')]?_0x109601[_0x392c0c('0xd')]['raw']===undefined?!![]:![]:!![],'where':_0x109601[_0x392c0c('0xd')]?_0x109601['options'][_0x392c0c('0x6')]||null:null,'attributes':_0x109601[_0x392c0c('0xd')]?_0x109601[_0x392c0c('0xd')][_0x392c0c('0x11')]||null:null,'limit':_0x109601['options']?_0x109601[_0x392c0c('0xd')]['limit']||null:null,'include':_0x109601['options']?_0x109601[_0x392c0c('0xd')][_0x392c0c('0xf')]?_[_0x392c0c('0x8')](_0x109601[_0x392c0c('0xd')][_0x392c0c('0xf')],function(_0x287aa0){const _0x514ffe=_0x392c0c;return{'model':db[_0x287aa0[_0x514ffe('0xa')]],'as':_0x287aa0['as'],'attributes':_0x287aa0[_0x514ffe('0x11')],'include':_0x287aa0[_0x514ffe('0xf')]?_['map'](_0x287aa0[_0x514ffe('0xf')],function(_0x1125eb){const _0x423b4c=_0x514ffe;return{'model':db[_0x1125eb[_0x423b4c('0xa')]],'as':_0x1125eb['as'],'attributes':_0x1125eb[_0x423b4c('0x11')],'include':_0x1125eb['include']?_[_0x423b4c('0x8')](_0x1125eb[_0x423b4c('0xf')],function(_0x13a4ba){return{'model':db[_0x13a4ba['model']],'as':_0x13a4ba['as'],'attributes':_0x13a4ba['attributes']};}):[]};}):[]};}):[]:[]})[_0x392c0c('0x13')](function(_0x1b626f){const _0x1b8ac4=_0x392c0c;logger[_0x1b8ac4('0x10')](_0x1b8ac4('0x3'),_0x109601),logger[_0x1b8ac4('0x5')]('GetFreshdeskAccount',_0x109601,JSON['stringify'](_0x1b626f)),_0x5477cc(_0x1b626f);})[_0x392c0c('0x1')](function(_0x241bdc){const _0x53e317=_0x392c0c;logger['error'](_0x53e317('0x3'),_0x241bdc[_0x53e317('0x7')],_0x109601),_0x14bdc2(_0x4ca1ba['error'](0x1f4,_0x241bdc[_0x53e317('0x7')]));});});},exports[_0x3538c1('0x0')]=function(_0x4af4ff){const _0x55a016=this;return new Promise(function(_0x68a26f,_0x266f61){const _0xa7d0f7=a257_0x5310;return db[_0xa7d0f7('0x2')][_0xa7d0f7('0x4')]({'raw':_0x4af4ff[_0xa7d0f7('0xd')]?_0x4af4ff[_0xa7d0f7('0xd')][_0xa7d0f7('0x14')]===undefined?!![]:![]:!![],'where':_0x4af4ff[_0xa7d0f7('0xd')]?_0x4af4ff[_0xa7d0f7('0xd')][_0xa7d0f7('0x6')]||null:null,'attributes':_0x4af4ff[_0xa7d0f7('0xd')]?_0x4af4ff[_0xa7d0f7('0xd')][_0xa7d0f7('0x11')]||null:null,'include':_0x4af4ff[_0xa7d0f7('0xd')]?_0x4af4ff[_0xa7d0f7('0xd')][_0xa7d0f7('0xf')]?_[_0xa7d0f7('0x8')](_0x4af4ff['options'][_0xa7d0f7('0xf')],function(_0x28e5b1){const _0x473b11=_0xa7d0f7;return{'model':db[_0x28e5b1['model']],'as':_0x28e5b1['as'],'attributes':_0x28e5b1['attributes'],'include':_0x28e5b1['include']?_[_0x473b11('0x8')](_0x28e5b1[_0x473b11('0xf')],function(_0x2baf69){const _0x301205=_0x473b11;return{'model':db[_0x2baf69['model']],'as':_0x2baf69['as'],'attributes':_0x2baf69[_0x301205('0x11')],'include':_0x2baf69[_0x301205('0xf')]?_['map'](_0x2baf69[_0x301205('0xf')],function(_0x382dce){const _0xd7114d=_0x301205;return{'model':db[_0x382dce['model']],'as':_0x382dce['as'],'attributes':_0x382dce[_0xd7114d('0x11')]};}):[]};}):[]};}):[]:[]})[_0xa7d0f7('0x13')](function(_0x44404c){const _0x4b6717=_0xa7d0f7;logger[_0x4b6717('0x10')]('ShowFreshdeskAccount',_0x4af4ff),logger[_0x4b6717('0x5')](_0x4b6717('0x0'),_0x4af4ff,JSON['stringify'](_0x44404c)),_0x68a26f(_0x44404c);})[_0xa7d0f7('0x1')](function(_0x7f4eb1){const _0x4d70c4=_0xa7d0f7;logger[_0x4d70c4('0x9')](_0x4d70c4('0x0'),_0x7f4eb1[_0x4d70c4('0x7')],_0x4af4ff),_0x266f61(_0x55a016[_0x4d70c4('0x9')](0x1f4,_0x7f4eb1[_0x4d70c4('0x7')]));});});}; \ No newline at end of file +const a257_0x1eac=['rpc','findOne','lodash','then','info','ShowFreshdeskAccount','catch','stringify','limit','where','map','include','attributes','raw','debug','FreshdeskAccount','message','model','GetFreshdeskAccount','findAll','../../config/logger','options','error'];(function(_0x19597b,_0x1eacdf){const _0x4294c1=function(_0x14a912){while(--_0x14a912){_0x19597b['push'](_0x19597b['shift']());}};_0x4294c1(++_0x1eacdf);}(a257_0x1eac,0x73));const a257_0x4294=function(_0x19597b,_0x1eacdf){_0x19597b=_0x19597b-0x0;let _0x4294c1=a257_0x1eac[_0x19597b];return _0x4294c1;};const _0xc309d3=a257_0x4294;'use strict';const _=require(_0xc309d3('0x2')),db=require('../../mysqldb')['db'],logger=require(_0xc309d3('0x14'))(_0xc309d3('0x0'));exports[_0xc309d3('0x12')]=function(_0x14a912){const _0x85f503=this;return new Promise(function(_0x7efaec,_0xa1205c){const _0x37444c=a257_0x4294;return db[_0x37444c('0xf')][_0x37444c('0x13')]({'raw':_0x14a912[_0x37444c('0x15')]?_0x14a912['options'][_0x37444c('0xd')]===undefined?!![]:![]:!![],'where':_0x14a912['options']?_0x14a912['options'][_0x37444c('0x9')]||null:null,'attributes':_0x14a912[_0x37444c('0x15')]?_0x14a912[_0x37444c('0x15')][_0x37444c('0xc')]||null:null,'limit':_0x14a912[_0x37444c('0x15')]?_0x14a912['options'][_0x37444c('0x8')]||null:null,'include':_0x14a912[_0x37444c('0x15')]?_0x14a912[_0x37444c('0x15')][_0x37444c('0xb')]?_[_0x37444c('0xa')](_0x14a912[_0x37444c('0x15')][_0x37444c('0xb')],function(_0x167d91){const _0x52b5fe=_0x37444c;return{'model':db[_0x167d91[_0x52b5fe('0x11')]],'as':_0x167d91['as'],'attributes':_0x167d91[_0x52b5fe('0xc')],'include':_0x167d91['include']?_[_0x52b5fe('0xa')](_0x167d91[_0x52b5fe('0xb')],function(_0x1335ad){const _0x1ffa2f=_0x52b5fe;return{'model':db[_0x1335ad[_0x1ffa2f('0x11')]],'as':_0x1335ad['as'],'attributes':_0x1335ad[_0x1ffa2f('0xc')],'include':_0x1335ad[_0x1ffa2f('0xb')]?_[_0x1ffa2f('0xa')](_0x1335ad[_0x1ffa2f('0xb')],function(_0x3f3f10){const _0x3077e7=_0x1ffa2f;return{'model':db[_0x3f3f10[_0x3077e7('0x11')]],'as':_0x3f3f10['as'],'attributes':_0x3f3f10[_0x3077e7('0xc')]};}):[]};}):[]};}):[]:[]})[_0x37444c('0x3')](function(_0x2534b7){const _0x1a4e48=_0x37444c;logger[_0x1a4e48('0x4')](_0x1a4e48('0x12'),_0x14a912),logger[_0x1a4e48('0xe')](_0x1a4e48('0x12'),_0x14a912,JSON[_0x1a4e48('0x7')](_0x2534b7)),_0x7efaec(_0x2534b7);})[_0x37444c('0x6')](function(_0x524100){const _0x3a9dd1=_0x37444c;logger['error'](_0x3a9dd1('0x12'),_0x524100[_0x3a9dd1('0x10')],_0x14a912),_0xa1205c(_0x85f503['error'](0x1f4,_0x524100[_0x3a9dd1('0x10')]));});});},exports[_0xc309d3('0x5')]=function(_0x2d0ac9){const _0x372c3f=this;return new Promise(function(_0x173a04,_0x29d45c){const _0x3011c3=a257_0x4294;return db[_0x3011c3('0xf')][_0x3011c3('0x1')]({'raw':_0x2d0ac9['options']?_0x2d0ac9[_0x3011c3('0x15')][_0x3011c3('0xd')]===undefined?!![]:![]:!![],'where':_0x2d0ac9[_0x3011c3('0x15')]?_0x2d0ac9[_0x3011c3('0x15')][_0x3011c3('0x9')]||null:null,'attributes':_0x2d0ac9[_0x3011c3('0x15')]?_0x2d0ac9[_0x3011c3('0x15')][_0x3011c3('0xc')]||null:null,'include':_0x2d0ac9[_0x3011c3('0x15')]?_0x2d0ac9[_0x3011c3('0x15')][_0x3011c3('0xb')]?_[_0x3011c3('0xa')](_0x2d0ac9[_0x3011c3('0x15')][_0x3011c3('0xb')],function(_0x35c8d0){const _0x38b577=_0x3011c3;return{'model':db[_0x35c8d0[_0x38b577('0x11')]],'as':_0x35c8d0['as'],'attributes':_0x35c8d0[_0x38b577('0xc')],'include':_0x35c8d0[_0x38b577('0xb')]?_['map'](_0x35c8d0[_0x38b577('0xb')],function(_0x4c531f){const _0xd9382b=_0x38b577;return{'model':db[_0x4c531f['model']],'as':_0x4c531f['as'],'attributes':_0x4c531f['attributes'],'include':_0x4c531f['include']?_[_0xd9382b('0xa')](_0x4c531f[_0xd9382b('0xb')],function(_0x2aeba9){return{'model':db[_0x2aeba9['model']],'as':_0x2aeba9['as'],'attributes':_0x2aeba9['attributes']};}):[]};}):[]};}):[]:[]})[_0x3011c3('0x3')](function(_0x4d5fa3){const _0x1e6f5e=_0x3011c3;logger[_0x1e6f5e('0x4')]('ShowFreshdeskAccount',_0x2d0ac9),logger[_0x1e6f5e('0xe')](_0x1e6f5e('0x5'),_0x2d0ac9,JSON[_0x1e6f5e('0x7')](_0x4d5fa3)),_0x173a04(_0x4d5fa3);})[_0x3011c3('0x6')](function(_0x5c05a4){const _0xdab3d1=_0x3011c3;logger[_0xdab3d1('0x16')](_0xdab3d1('0x5'),_0x5c05a4[_0xdab3d1('0x10')],_0x2d0ac9),_0x29d45c(_0x372c3f[_0xdab3d1('0x16')](0x1f4,_0x5c05a4[_0xdab3d1('0x10')]));});});}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/index.js b/server/api/intFreshdeskConfiguration/index.js index 69500cf..ec23676 100644 --- a/server/api/intFreshdeskConfiguration/index.js +++ b/server/api/intFreshdeskConfiguration/index.js @@ -1 +1 @@ -const a258_0x16cc=['get','getSubjects','express','/:id/subjects','destroy','post','getFields','isAuthenticated','exports','put','../../components/auth/service','/:id/tags','show','/:id/fields','./intFreshdeskConfiguration.controller','/:id','delete','/:id/descriptions','create','getDescriptions'];(function(_0x6d60b2,_0x16cc93){const _0x1b6e1a=function(_0x2ebf0c){while(--_0x2ebf0c){_0x6d60b2['push'](_0x6d60b2['shift']());}};_0x1b6e1a(++_0x16cc93);}(a258_0x16cc,0x68));const a258_0x1b6e=function(_0x6d60b2,_0x16cc93){_0x6d60b2=_0x6d60b2-0x0;let _0x1b6e1a=a258_0x16cc[_0x6d60b2];return _0x1b6e1a;};const _0x162bc6=a258_0x1b6e;'use strict';const express=require(_0x162bc6('0x12')),router=express['Router'](),auth=require(_0x162bc6('0x6')),controller=require(_0x162bc6('0xa'));router[_0x162bc6('0x10')]('/',auth[_0x162bc6('0x3')](),controller['index']),router['get'](_0x162bc6('0xb'),auth['isAuthenticated'](),controller[_0x162bc6('0x8')]),router['get'](_0x162bc6('0x9'),auth['isAuthenticated'](),controller[_0x162bc6('0x2')]),router['get'](_0x162bc6('0x13'),auth[_0x162bc6('0x3')](),controller[_0x162bc6('0x11')]),router['get'](_0x162bc6('0xd'),auth[_0x162bc6('0x3')](),controller[_0x162bc6('0xf')]),router[_0x162bc6('0x10')](_0x162bc6('0x7'),auth[_0x162bc6('0x3')](),controller['getTags']),router[_0x162bc6('0x1')]('/',auth['isAuthenticated'](),controller[_0x162bc6('0xe')]),router[_0x162bc6('0x1')](_0x162bc6('0x7'),auth['isAuthenticated'](),controller['setTags']),router[_0x162bc6('0x5')](_0x162bc6('0xb'),auth[_0x162bc6('0x3')](),controller['update']),router[_0x162bc6('0xc')](_0x162bc6('0xb'),auth[_0x162bc6('0x3')](),controller[_0x162bc6('0x0')]),module[_0x162bc6('0x4')]=router; \ No newline at end of file +const a258_0x2159=['/:id/tags','delete','put','getSubjects','getDescriptions','exports','setTags','/:id/fields','express','isAuthenticated','post','/:id','get','destroy','Router','./intFreshdeskConfiguration.controller'];(function(_0x23bd67,_0x215929){const _0x1b317a=function(_0x23569d){while(--_0x23569d){_0x23bd67['push'](_0x23bd67['shift']());}};_0x1b317a(++_0x215929);}(a258_0x2159,0xf6));const a258_0x1b31=function(_0x23bd67,_0x215929){_0x23bd67=_0x23bd67-0x0;let _0x1b317a=a258_0x2159[_0x23bd67];return _0x1b317a;};const _0x15e0c6=a258_0x1b31;'use strict';const express=require(_0x15e0c6('0x2')),router=express[_0x15e0c6('0x8')](),auth=require('../../components/auth/service'),controller=require(_0x15e0c6('0x9'));router[_0x15e0c6('0x6')]('/',auth[_0x15e0c6('0x3')](),controller['index']),router['get'](_0x15e0c6('0x5'),auth['isAuthenticated'](),controller['show']),router[_0x15e0c6('0x6')](_0x15e0c6('0x1'),auth[_0x15e0c6('0x3')](),controller['getFields']),router[_0x15e0c6('0x6')]('/:id/subjects',auth[_0x15e0c6('0x3')](),controller[_0x15e0c6('0xd')]),router[_0x15e0c6('0x6')]('/:id/descriptions',auth[_0x15e0c6('0x3')](),controller[_0x15e0c6('0xe')]),router[_0x15e0c6('0x6')](_0x15e0c6('0xa'),auth['isAuthenticated'](),controller['getTags']),router['post']('/',auth[_0x15e0c6('0x3')](),controller['create']),router[_0x15e0c6('0x4')](_0x15e0c6('0xa'),auth[_0x15e0c6('0x3')](),controller[_0x15e0c6('0x0')]),router[_0x15e0c6('0xc')]('/:id',auth[_0x15e0c6('0x3')](),controller['update']),router[_0x15e0c6('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x15e0c6('0x7')]),module[_0x15e0c6('0xf')]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js index 890d8c6..1807ebe 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.attributes.js @@ -1 +1 @@ -const a259_0x5071=['exports','sequelize','STRING'];(function(_0x53cebd,_0x5071ef){const _0x1d094b=function(_0x2d1a7e){while(--_0x2d1a7e){_0x53cebd['push'](_0x53cebd['shift']());}};_0x1d094b(++_0x5071ef);}(a259_0x5071,0x171));const a259_0x1d09=function(_0x53cebd,_0x5071ef){_0x53cebd=_0x53cebd-0x0;let _0x1d094b=a259_0x5071[_0x53cebd];return _0x1d094b;};const _0x36dd43=a259_0x1d09;'use strict';const Sequelize=require(_0x36dd43('0x1'));module[_0x36dd43('0x0')]={'name':{'type':Sequelize[_0x36dd43('0x2')]},'description':{'type':Sequelize[_0x36dd43('0x2')]}}; \ No newline at end of file +const a259_0x1ca1=['exports','sequelize','STRING'];(function(_0x19a776,_0x1ca13f){const _0x46bf81=function(_0x20e284){while(--_0x20e284){_0x19a776['push'](_0x19a776['shift']());}};_0x46bf81(++_0x1ca13f);}(a259_0x1ca1,0x1d6));const a259_0x46bf=function(_0x19a776,_0x1ca13f){_0x19a776=_0x19a776-0x0;let _0x46bf81=a259_0x1ca1[_0x19a776];return _0x46bf81;};const _0x426346=a259_0x46bf;'use strict';const Sequelize=require(_0x426346('0x2'));module[_0x426346('0x1')]={'name':{'type':Sequelize[_0x426346('0x0')]},'description':{'type':Sequelize[_0x426346('0x0')]}}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js index 5bff885..96c0fb3 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.controller.js @@ -1 +1 @@ -const a260_0x5982=['setTags','include','Content-Range','length','lodash','index','order','show','count','fieldName','like','getFields','sendStatus','findAll','create','map','VIRTUAL','sort','offset','getSubjects','attributes','FreshdeskField','fields','includeAll','intersection','keys','../../config/logger','../../components/parsers/qs','FreshdeskConfiguration','then','json','query','sequelize','merge','nolimit','rawAttributes','getDescriptions','destroy','filters','findOne','type','stack','pick','catch','undefined','limit','set','send','key','params','end','where','rows','model','name','body','status','options','../../mysqldb','error','filter','update'];(function(_0x22bf22,_0x59827b){const _0x3ea010=function(_0x3f1b65){while(--_0x3f1b65){_0x22bf22['push'](_0x22bf22['shift']());}};_0x3ea010(++_0x59827b);}(a260_0x5982,0xab));const a260_0x3ea0=function(_0x22bf22,_0x59827b){_0x22bf22=_0x22bf22-0x0;let _0x3ea010=a260_0x5982[_0x22bf22];return _0x3ea010;};const _0x47b886=a260_0x3ea0;'use strict';const _=require(_0x47b886('0x13')),qs=require(_0x47b886('0x2a')),logger=require(_0x47b886('0x29'))('api'),db=require(_0x47b886('0xb'))['db'],{Op}=require(_0x47b886('0x2f'));function respondWithResult(_0x3f1b65,_0x136d99){return _0x136d99=_0x136d99||0xc8,function(_0x1a3fe0){const _0x763777=a260_0x3ea0;if(_0x1a3fe0)return _0x3f1b65[_0x763777('0x9')](_0x136d99)[_0x763777('0x2d')](_0x1a3fe0);};}function respondWithFilteredResult(_0x154e69,_0x4f4e23){return function(_0x1d8986){const _0x547df5=a260_0x3ea0;if(_0x1d8986){const _0x585a8d=_0x1d8986['count'],_0x5d9974=_0x4f4e23[_0x547df5('0x21')];let _0x17d90e=_0x4f4e23[_0x547df5('0x21')]+_0x4f4e23['limit'],_0x242835;return _0x17d90e>=_0x585a8d?(_0x17d90e=_0x585a8d,_0x242835=0xc8):_0x242835=0xce,_0x154e69[_0x547df5('0x9')](_0x242835),_0x154e69[_0x547df5('0x3d')](_0x547df5('0x11'),_0x5d9974+'-'+_0x17d90e+'/'+_0x585a8d)['json'](_0x1d8986);}return null;};}function saveUpdates(_0x36525f){return function(_0x1a6df8){const _0x550527=a260_0x3ea0;if(_0x1a6df8)return _0x1a6df8[_0x550527('0xe')](_0x36525f)[_0x550527('0x2c')](function(_0x5e9723){return _0x5e9723;});return null;};}function removeEntity(_0x2e74b0){return function(_0x520de9){const _0x315e95=a260_0x3ea0;if(_0x520de9)return _0x520de9[_0x315e95('0x34')]()[_0x315e95('0x2c')](function(){const _0x190e8a=_0x315e95;_0x2e74b0[_0x190e8a('0x9')](0xcc)[_0x190e8a('0x3')]();});};}function handleEntityNotFound(_0xe8c3f3){return function(_0x4d0872){const _0x902eb7=a260_0x3ea0;return!_0x4d0872&&_0xe8c3f3[_0x902eb7('0x1b')](0x194),_0x4d0872;};}function handleError(_0x2b9d84,_0x5af5a1){return _0x5af5a1=_0x5af5a1||0x1f4,function(_0xbef700){const _0x415267=a260_0x3ea0;logger[_0x415267('0xc')](_0xbef700[_0x415267('0x38')]),_0xbef700['name']&&delete _0xbef700[_0x415267('0x7')],_0x2b9d84[_0x415267('0x9')](_0x5af5a1)[_0x415267('0x0')](_0xbef700);};}exports[_0x47b886('0x14')]=function(_0x3c37a1,_0x20e592){const _0x33e2da=_0x47b886;let _0x987e89={};const _0x55f45d={},_0x1562cd={'count':0x0,'rows':[]},_0x283f2f=_[_0x33e2da('0x1e')](db['FreshdeskConfiguration']['rawAttributes'],function(_0x1aca6b){const _0x2fb348=_0x33e2da;return{'name':_0x1aca6b[_0x2fb348('0x18')],'type':_0x1aca6b['type'][_0x2fb348('0x1')]};});_0x55f45d[_0x33e2da('0x6')]=_['map'](_0x283f2f,_0x33e2da('0x7')),_0x55f45d[_0x33e2da('0x2e')]=_[_0x33e2da('0x28')](_0x3c37a1['query']),_0x55f45d[_0x33e2da('0x35')]=_[_0x33e2da('0x27')](_0x55f45d[_0x33e2da('0x6')],_0x55f45d[_0x33e2da('0x2e')]),_0x987e89[_0x33e2da('0x23')]=_[_0x33e2da('0x27')](_0x55f45d[_0x33e2da('0x6')],qs[_0x33e2da('0x25')](_0x3c37a1['query'][_0x33e2da('0x25')])),_0x987e89[_0x33e2da('0x23')]=_0x987e89['attributes'][_0x33e2da('0x12')]?_0x987e89[_0x33e2da('0x23')]:_0x55f45d[_0x33e2da('0x6')];typeof _0x3c37a1['query']['nolimit']===_0x33e2da('0x3b')&&(_0x987e89[_0x33e2da('0x3c')]=qs[_0x33e2da('0x3c')](_0x3c37a1[_0x33e2da('0x2e')][_0x33e2da('0x3c')]),_0x987e89['offset']=qs[_0x33e2da('0x21')](_0x3c37a1[_0x33e2da('0x2e')][_0x33e2da('0x21')]));_0x987e89[_0x33e2da('0x15')]=qs[_0x33e2da('0x20')](_0x3c37a1['query'][_0x33e2da('0x20')]),_0x987e89[_0x33e2da('0x4')]=qs[_0x33e2da('0x35')](_['pick'](_0x3c37a1['query'],_0x55f45d[_0x33e2da('0x35')]),_0x283f2f);_0x3c37a1[_0x33e2da('0x2e')][_0x33e2da('0xd')]&&(_0x987e89['where']=_['merge'](_0x987e89['where'],{[Op['or']]:_[_0x33e2da('0x1e')](_0x283f2f,function(_0x456174){const _0x2c6d22=_0x33e2da;if(_0x456174[_0x2c6d22('0x37')]!==_0x2c6d22('0x1f')){const _0x2f924f={};return _0x2f924f[_0x456174[_0x2c6d22('0x7')]]={[Op[_0x2c6d22('0x19')]]:'%'+_0x3c37a1[_0x2c6d22('0x2e')][_0x2c6d22('0xd')]+'%'},_0x2f924f;}})}));_0x987e89=_[_0x33e2da('0x30')]({},_0x987e89,_0x3c37a1[_0x33e2da('0xa')]);const _0x169cfc={'where':_0x987e89['where']};return db[_0x33e2da('0x2b')][_0x33e2da('0x17')](_0x169cfc)[_0x33e2da('0x2c')](function(_0x29d983){const _0x23df75=_0x33e2da;return _0x1562cd[_0x23df75('0x17')]=_0x29d983,_0x3c37a1[_0x23df75('0x2e')][_0x23df75('0x26')]&&(_0x987e89[_0x23df75('0x10')]=[{'all':!![]}]),db[_0x23df75('0x2b')][_0x23df75('0x1c')](_0x987e89);})[_0x33e2da('0x2c')](function(_0x28c4db){const _0x324d14=_0x33e2da;return _0x1562cd[_0x324d14('0x5')]=_0x28c4db,_0x1562cd;})[_0x33e2da('0x2c')](respondWithFilteredResult(_0x20e592,_0x987e89))[_0x33e2da('0x3a')](handleError(_0x20e592,null));},exports[_0x47b886('0x16')]=function(_0x223f41,_0x2f272c){const _0xcdc20e=_0x47b886;let _0x3f7c36={'raw':![],'where':{'id':_0x223f41[_0xcdc20e('0x2')]['id']}};const _0x391b03={};return _0x391b03[_0xcdc20e('0x6')]=_[_0xcdc20e('0x28')](db[_0xcdc20e('0x2b')][_0xcdc20e('0x32')]),_0x391b03[_0xcdc20e('0x2e')]=_[_0xcdc20e('0x28')](_0x223f41[_0xcdc20e('0x2e')]),_0x391b03[_0xcdc20e('0x35')]=_[_0xcdc20e('0x27')](_0x391b03['model'],_0x391b03[_0xcdc20e('0x2e')]),_0x3f7c36['attributes']=_['intersection'](_0x391b03[_0xcdc20e('0x6')],qs[_0xcdc20e('0x25')](_0x223f41['query'][_0xcdc20e('0x25')])),_0x3f7c36[_0xcdc20e('0x23')]=_0x3f7c36[_0xcdc20e('0x23')][_0xcdc20e('0x12')]?_0x3f7c36[_0xcdc20e('0x23')]:_0x391b03[_0xcdc20e('0x6')],_0x223f41[_0xcdc20e('0x2e')][_0xcdc20e('0x26')]&&(_0x3f7c36['include']=[{'all':!![]}]),_0x3f7c36=_[_0xcdc20e('0x30')]({},_0x3f7c36,_0x223f41[_0xcdc20e('0xa')]),db[_0xcdc20e('0x2b')][_0xcdc20e('0x36')](_0x3f7c36)['then'](handleEntityNotFound(_0x2f272c,null))['then'](respondWithResult(_0x2f272c,null))[_0xcdc20e('0x3a')](handleError(_0x2f272c,null));},exports[_0x47b886('0x1d')]=function(_0x15a335,_0x189af5){const _0x9126e4=_0x47b886;return db[_0x9126e4('0x2b')]['create'](_0x15a335[_0x9126e4('0x8')],{})[_0x9126e4('0x2c')](respondWithResult(_0x189af5,0xc9))['catch'](handleError(_0x189af5,null));},exports[_0x47b886('0xe')]=function(_0x1fc48e,_0x5ed09c){const _0x1d0d00=_0x47b886;return _0x1fc48e['body']['id']&&delete _0x1fc48e['body']['id'],db['FreshdeskConfiguration'][_0x1d0d00('0x36')]({'where':{'id':_0x1fc48e['params']['id']}})[_0x1d0d00('0x2c')](handleEntityNotFound(_0x5ed09c,null))[_0x1d0d00('0x2c')](saveUpdates(_0x1fc48e[_0x1d0d00('0x8')],null))[_0x1d0d00('0x2c')](respondWithResult(_0x5ed09c,null))[_0x1d0d00('0x3a')](handleError(_0x5ed09c,null));},exports[_0x47b886('0x34')]=function(_0x31b12c,_0x52f17a){const _0x38b72d=_0x47b886;return db[_0x38b72d('0x2b')][_0x38b72d('0x36')]({'where':{'id':_0x31b12c['params']['id']}})['then'](handleEntityNotFound(_0x52f17a,null))['then'](removeEntity(_0x52f17a,null))[_0x38b72d('0x3a')](handleError(_0x52f17a,null));},exports[_0x47b886('0x1a')]=function(_0x207524,_0x1905b1){const _0x2e11b0=_0x47b886;let _0x75bea1={};const _0x451f49={};let _0x4ce2e6,_0x3fccdf;return db[_0x2e11b0('0x2b')][_0x2e11b0('0x36')]({'where':{'id':_0x207524[_0x2e11b0('0x2')]['id']}})['then'](handleEntityNotFound(_0x1905b1,null))['then'](function(_0x163e72){const _0x401a41=_0x2e11b0;if(_0x163e72)return _0x4ce2e6=_0x163e72,_0x451f49['model']=_[_0x401a41('0x28')](db[_0x401a41('0x24')][_0x401a41('0x32')]),_0x451f49[_0x401a41('0x2e')]=_[_0x401a41('0x28')](_0x207524['query']),_0x451f49[_0x401a41('0x35')]=_['intersection'](_0x451f49['model'],_0x451f49[_0x401a41('0x2e')]),_0x75bea1[_0x401a41('0x23')]=_[_0x401a41('0x27')](_0x451f49[_0x401a41('0x6')],qs[_0x401a41('0x25')](_0x207524['query'][_0x401a41('0x25')])),_0x75bea1[_0x401a41('0x23')]=_0x75bea1[_0x401a41('0x23')]['length']?_0x75bea1[_0x401a41('0x23')]:_0x451f49[_0x401a41('0x6')],_0x75bea1[_0x401a41('0x15')]=qs[_0x401a41('0x20')](_0x207524[_0x401a41('0x2e')][_0x401a41('0x20')]),_0x75bea1[_0x401a41('0x4')]=qs[_0x401a41('0x35')](_[_0x401a41('0x39')](_0x207524[_0x401a41('0x2e')],_0x451f49[_0x401a41('0x35')])),_0x207524['query'][_0x401a41('0xd')]&&(_0x75bea1[_0x401a41('0x4')]=_['merge'](_0x75bea1[_0x401a41('0x4')],{[Op['or']]:_['map'](_0x75bea1[_0x401a41('0x23')],function(_0x1cfa00){const _0x7becf2=_0x401a41,_0x180c12={};return _0x180c12[_0x1cfa00]={[Op['like']]:'%'+_0x207524[_0x7becf2('0x2e')][_0x7becf2('0xd')]+'%'},_0x180c12;})})),_0x75bea1=_[_0x401a41('0x30')]({},_0x75bea1,_0x207524[_0x401a41('0xa')]),_0x4ce2e6['getFields'](_0x75bea1);})[_0x2e11b0('0x2c')](function(_0x29448c){const _0xc7ecad=_0x2e11b0;if(_0x29448c)return _0x3fccdf=_0x29448c[_0xc7ecad('0x12')],typeof _0x207524[_0xc7ecad('0x2e')][_0xc7ecad('0x31')]==='undefined'&&(_0x75bea1[_0xc7ecad('0x3c')]=qs['limit'](_0x207524['query']['limit']),_0x75bea1[_0xc7ecad('0x21')]=qs[_0xc7ecad('0x21')](_0x207524['query']['offset'])),_0x4ce2e6[_0xc7ecad('0x1a')](_0x75bea1);})[_0x2e11b0('0x2c')](function(_0x3d44d3){if(_0x3d44d3)return _0x3d44d3?{'count':_0x3fccdf,'rows':_0x3d44d3}:null;})['then'](respondWithResult(_0x1905b1,null))['catch'](handleError(_0x1905b1,null));},exports['getSubjects']=function(_0x20a2c4,_0xc4640e){const _0x29fcc3=_0x47b886;let _0x46fa85={};const _0xa2641c={};let _0x5f0c02,_0x506bda;return db[_0x29fcc3('0x2b')][_0x29fcc3('0x36')]({'where':{'id':_0x20a2c4[_0x29fcc3('0x2')]['id']}})['then'](handleEntityNotFound(_0xc4640e,null))['then'](function(_0x451397){const _0x525e35=_0x29fcc3;if(_0x451397)return _0x5f0c02=_0x451397,_0xa2641c['model']=_[_0x525e35('0x28')](db[_0x525e35('0x24')][_0x525e35('0x32')]),_0xa2641c[_0x525e35('0x2e')]=_[_0x525e35('0x28')](_0x20a2c4['query']),_0xa2641c[_0x525e35('0x35')]=_[_0x525e35('0x27')](_0xa2641c[_0x525e35('0x6')],_0xa2641c[_0x525e35('0x2e')]),_0x46fa85[_0x525e35('0x23')]=_[_0x525e35('0x27')](_0xa2641c[_0x525e35('0x6')],qs[_0x525e35('0x25')](_0x20a2c4[_0x525e35('0x2e')][_0x525e35('0x25')])),_0x46fa85[_0x525e35('0x23')]=_0x46fa85[_0x525e35('0x23')][_0x525e35('0x12')]?_0x46fa85[_0x525e35('0x23')]:_0xa2641c['model'],_0x46fa85[_0x525e35('0x15')]=qs['sort'](_0x20a2c4[_0x525e35('0x2e')][_0x525e35('0x20')]),_0x46fa85['where']=qs[_0x525e35('0x35')](_[_0x525e35('0x39')](_0x20a2c4['query'],_0xa2641c[_0x525e35('0x35')])),_0x20a2c4[_0x525e35('0x2e')]['filter']&&(_0x46fa85[_0x525e35('0x4')]=_[_0x525e35('0x30')](_0x46fa85[_0x525e35('0x4')],{[Op['or']]:_['map'](_0x46fa85[_0x525e35('0x23')],function(_0x1b642d){const _0x5f233d=_0x525e35,_0x12c93a={};return _0x12c93a[_0x1b642d]={[Op['like']]:'%'+_0x20a2c4[_0x5f233d('0x2e')][_0x5f233d('0xd')]+'%'},_0x12c93a;})})),_0x46fa85=_[_0x525e35('0x30')]({},_0x46fa85,_0x20a2c4[_0x525e35('0xa')]),_0x5f0c02[_0x525e35('0x22')](_0x46fa85);})[_0x29fcc3('0x2c')](function(_0x15192b){const _0x3c3a40=_0x29fcc3;if(_0x15192b)return _0x506bda=_0x15192b['length'],typeof _0x20a2c4['query'][_0x3c3a40('0x31')]===_0x3c3a40('0x3b')&&(_0x46fa85['limit']=qs[_0x3c3a40('0x3c')](_0x20a2c4[_0x3c3a40('0x2e')][_0x3c3a40('0x3c')]),_0x46fa85[_0x3c3a40('0x21')]=qs['offset'](_0x20a2c4[_0x3c3a40('0x2e')][_0x3c3a40('0x21')])),_0x5f0c02['getSubjects'](_0x46fa85);})[_0x29fcc3('0x2c')](function(_0x56e922){if(_0x56e922)return _0x56e922?{'count':_0x506bda,'rows':_0x56e922}:null;})['then'](respondWithResult(_0xc4640e,null))[_0x29fcc3('0x3a')](handleError(_0xc4640e,null));},exports['getDescriptions']=function(_0x5dc076,_0x2254ae){const _0xf54238=_0x47b886;let _0x6972b7={};const _0x53a495={};let _0x37a673,_0x29ee2b;return db['FreshdeskConfiguration']['findOne']({'where':{'id':_0x5dc076[_0xf54238('0x2')]['id']}})['then'](handleEntityNotFound(_0x2254ae,null))[_0xf54238('0x2c')](function(_0xb0554e){const _0x14f78f=_0xf54238;if(_0xb0554e)return _0x37a673=_0xb0554e,_0x53a495[_0x14f78f('0x6')]=_[_0x14f78f('0x28')](db['FreshdeskField'][_0x14f78f('0x32')]),_0x53a495['query']=_[_0x14f78f('0x28')](_0x5dc076['query']),_0x53a495[_0x14f78f('0x35')]=_[_0x14f78f('0x27')](_0x53a495[_0x14f78f('0x6')],_0x53a495[_0x14f78f('0x2e')]),_0x6972b7[_0x14f78f('0x23')]=_[_0x14f78f('0x27')](_0x53a495['model'],qs[_0x14f78f('0x25')](_0x5dc076['query'][_0x14f78f('0x25')])),_0x6972b7[_0x14f78f('0x23')]=_0x6972b7[_0x14f78f('0x23')]['length']?_0x6972b7['attributes']:_0x53a495[_0x14f78f('0x6')],_0x6972b7[_0x14f78f('0x15')]=qs[_0x14f78f('0x20')](_0x5dc076['query']['sort']),_0x6972b7[_0x14f78f('0x4')]=qs['filters'](_[_0x14f78f('0x39')](_0x5dc076[_0x14f78f('0x2e')],_0x53a495[_0x14f78f('0x35')])),_0x5dc076['query'][_0x14f78f('0xd')]&&(_0x6972b7['where']=_[_0x14f78f('0x30')](_0x6972b7['where'],{[Op['or']]:_[_0x14f78f('0x1e')](_0x6972b7[_0x14f78f('0x23')],function(_0x339134){const _0x5dec26=_0x14f78f,_0xc4fc94={};return _0xc4fc94[_0x339134]={[Op['like']]:'%'+_0x5dc076[_0x5dec26('0x2e')][_0x5dec26('0xd')]+'%'},_0xc4fc94;})})),_0x6972b7=_[_0x14f78f('0x30')]({},_0x6972b7,_0x5dc076[_0x14f78f('0xa')]),_0x37a673[_0x14f78f('0x33')](_0x6972b7);})['then'](function(_0x229211){const _0x257883=_0xf54238;if(_0x229211)return _0x29ee2b=_0x229211[_0x257883('0x12')],typeof _0x5dc076[_0x257883('0x2e')]['nolimit']===_0x257883('0x3b')&&(_0x6972b7[_0x257883('0x3c')]=qs[_0x257883('0x3c')](_0x5dc076[_0x257883('0x2e')][_0x257883('0x3c')]),_0x6972b7[_0x257883('0x21')]=qs['offset'](_0x5dc076[_0x257883('0x2e')][_0x257883('0x21')])),_0x37a673[_0x257883('0x33')](_0x6972b7);})[_0xf54238('0x2c')](function(_0x7842d2){if(_0x7842d2)return _0x7842d2?{'count':_0x29ee2b,'rows':_0x7842d2}:null;})['then'](respondWithResult(_0x2254ae,null))[_0xf54238('0x3a')](handleError(_0x2254ae,null));},exports['getTags']=function(_0x8bb7db,_0x2e42c4){const _0x2733ed=_0x47b886;let _0x385418={};const _0x24ae6d={};let _0x3c865c,_0x2588dd;return db[_0x2733ed('0x2b')]['findOne']({'where':{'id':_0x8bb7db[_0x2733ed('0x2')]['id']}})[_0x2733ed('0x2c')](handleEntityNotFound(_0x2e42c4,null))[_0x2733ed('0x2c')](function(_0x4e62b4){const _0x27b7e9=_0x2733ed;if(_0x4e62b4)return _0x3c865c=_0x4e62b4,_0x24ae6d['model']=_[_0x27b7e9('0x28')](db['Tag'][_0x27b7e9('0x32')]),_0x24ae6d[_0x27b7e9('0x2e')]=_[_0x27b7e9('0x28')](_0x8bb7db[_0x27b7e9('0x2e')]),_0x24ae6d['filters']=_['intersection'](_0x24ae6d[_0x27b7e9('0x6')],_0x24ae6d[_0x27b7e9('0x2e')]),_0x385418[_0x27b7e9('0x23')]=_['intersection'](_0x24ae6d['model'],qs[_0x27b7e9('0x25')](_0x8bb7db[_0x27b7e9('0x2e')]['fields'])),_0x385418[_0x27b7e9('0x23')]=_0x385418[_0x27b7e9('0x23')][_0x27b7e9('0x12')]?_0x385418[_0x27b7e9('0x23')]:_0x24ae6d[_0x27b7e9('0x6')],_0x385418[_0x27b7e9('0x15')]=qs[_0x27b7e9('0x20')](_0x8bb7db[_0x27b7e9('0x2e')][_0x27b7e9('0x20')]),_0x385418['where']=qs[_0x27b7e9('0x35')](_[_0x27b7e9('0x39')](_0x8bb7db['query'],_0x24ae6d[_0x27b7e9('0x35')])),_0x8bb7db[_0x27b7e9('0x2e')][_0x27b7e9('0xd')]&&(_0x385418[_0x27b7e9('0x4')]=_[_0x27b7e9('0x30')](_0x385418[_0x27b7e9('0x4')],{[Op['or']]:_['map'](_0x385418[_0x27b7e9('0x23')],function(_0x4a2f6b){const _0x297025=_0x27b7e9,_0x3e8e57={};return _0x3e8e57[_0x4a2f6b]={[Op[_0x297025('0x19')]]:'%'+_0x8bb7db[_0x297025('0x2e')]['filter']+'%'},_0x3e8e57;})})),_0x385418=_['merge']({},_0x385418,_0x8bb7db[_0x27b7e9('0xa')]),_0x3c865c['getTags'](_0x385418);})['then'](function(_0x177183){const _0x22d963=_0x2733ed;if(_0x177183)return _0x2588dd=_0x177183[_0x22d963('0x12')],typeof _0x8bb7db['query'][_0x22d963('0x31')]==='undefined'&&(_0x385418[_0x22d963('0x3c')]=qs[_0x22d963('0x3c')](_0x8bb7db[_0x22d963('0x2e')][_0x22d963('0x3c')]),_0x385418[_0x22d963('0x21')]=qs[_0x22d963('0x21')](_0x8bb7db['query'][_0x22d963('0x21')])),_0x3c865c['getTags'](_0x385418);})[_0x2733ed('0x2c')](function(_0x57c54c){if(_0x57c54c)return _0x57c54c?{'count':_0x2588dd,'rows':_0x57c54c}:null;})[_0x2733ed('0x2c')](respondWithResult(_0x2e42c4,null))[_0x2733ed('0x3a')](handleError(_0x2e42c4,null));},exports[_0x47b886('0xf')]=function(_0x4f1d29,_0x36871c){const _0x1353d8=_0x47b886;return _0x4f1d29[_0x1353d8('0x8')]['id']&&delete _0x4f1d29[_0x1353d8('0x8')]['id'],db['FreshdeskConfiguration'][_0x1353d8('0x36')]({'where':{'id':_0x4f1d29['params']['id']}})[_0x1353d8('0x2c')](handleEntityNotFound(_0x36871c,null))[_0x1353d8('0x2c')](function(_0x30233b){if(_0x30233b)return _0x30233b['setTags'](_0x4f1d29['body']['ids']||[]);return null;})[_0x1353d8('0x2c')](respondWithResult(_0x36871c,null))[_0x1353d8('0x3a')](handleError(_0x36871c,null));}; \ No newline at end of file +const a260_0x1cbd=['name','count','end','index','findOne','order','destroy','offset','rows','like','status','length','keys','then','setTags','getSubjects','includeAll','pick','type','FreshdeskConfiguration','key','include','model','body','FreshdeskField','filter','api','../../config/logger','create','params','stack','rawAttributes','merge','map','attributes','sort','Content-Range','../../mysqldb','nolimit','Tag','getTags','where','sequelize','sendStatus','show','update','filters','send','VIRTUAL','error','intersection','findAll','query','undefined','limit','fields','getDescriptions','getFields','options','catch','lodash'];(function(_0x10c292,_0x1cbda9){const _0x3a29b0=function(_0x555417){while(--_0x555417){_0x10c292['push'](_0x10c292['shift']());}};_0x3a29b0(++_0x1cbda9);}(a260_0x1cbd,0x6f));const a260_0x3a29=function(_0x10c292,_0x1cbda9){_0x10c292=_0x10c292-0x0;let _0x3a29b0=a260_0x1cbd[_0x10c292];return _0x3a29b0;};const _0x3e61c8=a260_0x3a29;'use strict';const _=require(_0x3e61c8('0xa')),qs=require('../../components/parsers/qs'),logger=require(_0x3e61c8('0x26'))(_0x3e61c8('0x25')),db=require(_0x3e61c8('0x30'))['db'],{Op}=require(_0x3e61c8('0x35'));function respondWithResult(_0x555417,_0x345a39){return _0x345a39=_0x345a39||0xc8,function(_0x5f1669){if(_0x5f1669)return _0x555417['status'](_0x345a39)['json'](_0x5f1669);};}function respondWithFilteredResult(_0x5455e6,_0x35c94f){return function(_0x87109c){const _0x1c9b8f=a260_0x3a29;if(_0x87109c){const _0x3201c7=_0x87109c[_0x1c9b8f('0xc')],_0x12fd75=_0x35c94f[_0x1c9b8f('0x12')];let _0x34901b=_0x35c94f[_0x1c9b8f('0x12')]+_0x35c94f[_0x1c9b8f('0x4')],_0x9afb4b;return _0x34901b>=_0x3201c7?(_0x34901b=_0x3201c7,_0x9afb4b=0xc8):_0x9afb4b=0xce,_0x5455e6[_0x1c9b8f('0x15')](_0x9afb4b),_0x5455e6['set'](_0x1c9b8f('0x2f'),_0x12fd75+'-'+_0x34901b+'/'+_0x3201c7)['json'](_0x87109c);}return null;};}function saveUpdates(_0x47661f){return function(_0x3b5adb){const _0x29c4b9=a260_0x3a29;if(_0x3b5adb)return _0x3b5adb[_0x29c4b9('0x38')](_0x47661f)[_0x29c4b9('0x18')](function(_0x3ec92f){return _0x3ec92f;});return null;};}function removeEntity(_0x303a14){return function(_0x31172b){if(_0x31172b)return _0x31172b['destroy']()['then'](function(){const _0x13ec9d=a260_0x3a29;_0x303a14['status'](0xcc)[_0x13ec9d('0xd')]();});};}function handleEntityNotFound(_0x2b82d6){return function(_0xcbd9de){const _0x13497c=a260_0x3a29;return!_0xcbd9de&&_0x2b82d6[_0x13497c('0x36')](0x194),_0xcbd9de;};}function handleError(_0x2700f7,_0x3afdd3){return _0x3afdd3=_0x3afdd3||0x1f4,function(_0x12b919){const _0x2a0350=a260_0x3a29;logger[_0x2a0350('0x3c')](_0x12b919[_0x2a0350('0x29')]),_0x12b919[_0x2a0350('0xb')]&&delete _0x12b919['name'],_0x2700f7[_0x2a0350('0x15')](_0x3afdd3)[_0x2a0350('0x3a')](_0x12b919);};}exports[_0x3e61c8('0xe')]=function(_0xd32cb7,_0x299476){const _0x11d18f=_0x3e61c8;let _0x59c0a8={};const _0x37b65d={},_0x5f41bf={'count':0x0,'rows':[]},_0x5ab6db=_[_0x11d18f('0x2c')](db[_0x11d18f('0x1e')][_0x11d18f('0x2a')],function(_0x36f547){const _0x454d67=_0x11d18f;return{'name':_0x36f547['fieldName'],'type':_0x36f547['type'][_0x454d67('0x1f')]};});_0x37b65d[_0x11d18f('0x21')]=_[_0x11d18f('0x2c')](_0x5ab6db,_0x11d18f('0xb')),_0x37b65d['query']=_['keys'](_0xd32cb7[_0x11d18f('0x2')]),_0x37b65d[_0x11d18f('0x39')]=_['intersection'](_0x37b65d[_0x11d18f('0x21')],_0x37b65d[_0x11d18f('0x2')]),_0x59c0a8[_0x11d18f('0x2d')]=_['intersection'](_0x37b65d[_0x11d18f('0x21')],qs[_0x11d18f('0x5')](_0xd32cb7[_0x11d18f('0x2')]['fields'])),_0x59c0a8['attributes']=_0x59c0a8[_0x11d18f('0x2d')]['length']?_0x59c0a8[_0x11d18f('0x2d')]:_0x37b65d[_0x11d18f('0x21')];typeof _0xd32cb7['query'][_0x11d18f('0x31')]===_0x11d18f('0x3')&&(_0x59c0a8[_0x11d18f('0x4')]=qs[_0x11d18f('0x4')](_0xd32cb7[_0x11d18f('0x2')][_0x11d18f('0x4')]),_0x59c0a8[_0x11d18f('0x12')]=qs[_0x11d18f('0x12')](_0xd32cb7[_0x11d18f('0x2')][_0x11d18f('0x12')]));_0x59c0a8[_0x11d18f('0x10')]=qs[_0x11d18f('0x2e')](_0xd32cb7['query'][_0x11d18f('0x2e')]),_0x59c0a8[_0x11d18f('0x34')]=qs[_0x11d18f('0x39')](_['pick'](_0xd32cb7[_0x11d18f('0x2')],_0x37b65d['filters']),_0x5ab6db);_0xd32cb7['query']['filter']&&(_0x59c0a8['where']=_[_0x11d18f('0x2b')](_0x59c0a8[_0x11d18f('0x34')],{[Op['or']]:_[_0x11d18f('0x2c')](_0x5ab6db,function(_0x2c644b){const _0x40ec8c=_0x11d18f;if(_0x2c644b[_0x40ec8c('0x1d')]!==_0x40ec8c('0x3b')){const _0x332423={};return _0x332423[_0x2c644b[_0x40ec8c('0xb')]]={[Op[_0x40ec8c('0x14')]]:'%'+_0xd32cb7[_0x40ec8c('0x2')][_0x40ec8c('0x24')]+'%'},_0x332423;}})}));_0x59c0a8=_[_0x11d18f('0x2b')]({},_0x59c0a8,_0xd32cb7[_0x11d18f('0x8')]);const _0x3a808d={'where':_0x59c0a8[_0x11d18f('0x34')]};return db[_0x11d18f('0x1e')][_0x11d18f('0xc')](_0x3a808d)[_0x11d18f('0x18')](function(_0x979e1e){const _0x3105fb=_0x11d18f;return _0x5f41bf['count']=_0x979e1e,_0xd32cb7[_0x3105fb('0x2')][_0x3105fb('0x1b')]&&(_0x59c0a8[_0x3105fb('0x20')]=[{'all':!![]}]),db[_0x3105fb('0x1e')][_0x3105fb('0x1')](_0x59c0a8);})[_0x11d18f('0x18')](function(_0x4a658e){const _0x5b5228=_0x11d18f;return _0x5f41bf[_0x5b5228('0x13')]=_0x4a658e,_0x5f41bf;})[_0x11d18f('0x18')](respondWithFilteredResult(_0x299476,_0x59c0a8))[_0x11d18f('0x9')](handleError(_0x299476,null));},exports[_0x3e61c8('0x37')]=function(_0x3e25f6,_0x28229c){const _0x466f7a=_0x3e61c8;let _0x4e733d={'raw':![],'where':{'id':_0x3e25f6['params']['id']}};const _0x2ab30a={};return _0x2ab30a[_0x466f7a('0x21')]=_[_0x466f7a('0x17')](db[_0x466f7a('0x1e')]['rawAttributes']),_0x2ab30a[_0x466f7a('0x2')]=_['keys'](_0x3e25f6[_0x466f7a('0x2')]),_0x2ab30a[_0x466f7a('0x39')]=_['intersection'](_0x2ab30a[_0x466f7a('0x21')],_0x2ab30a[_0x466f7a('0x2')]),_0x4e733d[_0x466f7a('0x2d')]=_['intersection'](_0x2ab30a['model'],qs[_0x466f7a('0x5')](_0x3e25f6[_0x466f7a('0x2')][_0x466f7a('0x5')])),_0x4e733d[_0x466f7a('0x2d')]=_0x4e733d[_0x466f7a('0x2d')][_0x466f7a('0x16')]?_0x4e733d[_0x466f7a('0x2d')]:_0x2ab30a[_0x466f7a('0x21')],_0x3e25f6[_0x466f7a('0x2')][_0x466f7a('0x1b')]&&(_0x4e733d[_0x466f7a('0x20')]=[{'all':!![]}]),_0x4e733d=_[_0x466f7a('0x2b')]({},_0x4e733d,_0x3e25f6[_0x466f7a('0x8')]),db[_0x466f7a('0x1e')][_0x466f7a('0xf')](_0x4e733d)[_0x466f7a('0x18')](handleEntityNotFound(_0x28229c,null))[_0x466f7a('0x18')](respondWithResult(_0x28229c,null))[_0x466f7a('0x9')](handleError(_0x28229c,null));},exports[_0x3e61c8('0x27')]=function(_0x363efa,_0x428256){const _0x300a8c=_0x3e61c8;return db[_0x300a8c('0x1e')][_0x300a8c('0x27')](_0x363efa[_0x300a8c('0x22')],{})[_0x300a8c('0x18')](respondWithResult(_0x428256,0xc9))[_0x300a8c('0x9')](handleError(_0x428256,null));},exports[_0x3e61c8('0x38')]=function(_0x3dd70a,_0x3d0641){const _0x5c57ad=_0x3e61c8;return _0x3dd70a['body']['id']&&delete _0x3dd70a[_0x5c57ad('0x22')]['id'],db[_0x5c57ad('0x1e')][_0x5c57ad('0xf')]({'where':{'id':_0x3dd70a[_0x5c57ad('0x28')]['id']}})[_0x5c57ad('0x18')](handleEntityNotFound(_0x3d0641,null))['then'](saveUpdates(_0x3dd70a[_0x5c57ad('0x22')],null))[_0x5c57ad('0x18')](respondWithResult(_0x3d0641,null))[_0x5c57ad('0x9')](handleError(_0x3d0641,null));},exports[_0x3e61c8('0x11')]=function(_0x511879,_0x14c2d4){const _0x3ead25=_0x3e61c8;return db['FreshdeskConfiguration'][_0x3ead25('0xf')]({'where':{'id':_0x511879[_0x3ead25('0x28')]['id']}})[_0x3ead25('0x18')](handleEntityNotFound(_0x14c2d4,null))[_0x3ead25('0x18')](removeEntity(_0x14c2d4,null))[_0x3ead25('0x9')](handleError(_0x14c2d4,null));},exports[_0x3e61c8('0x7')]=function(_0x221b01,_0x2221f8){const _0x5df42d=_0x3e61c8;let _0x2b5315={};const _0x1386cf={};let _0x5a356d,_0x386b9f;return db['FreshdeskConfiguration'][_0x5df42d('0xf')]({'where':{'id':_0x221b01['params']['id']}})['then'](handleEntityNotFound(_0x2221f8,null))['then'](function(_0xf36fad){const _0x56eed1=_0x5df42d;if(_0xf36fad)return _0x5a356d=_0xf36fad,_0x1386cf[_0x56eed1('0x21')]=_[_0x56eed1('0x17')](db[_0x56eed1('0x23')]['rawAttributes']),_0x1386cf[_0x56eed1('0x2')]=_[_0x56eed1('0x17')](_0x221b01['query']),_0x1386cf[_0x56eed1('0x39')]=_['intersection'](_0x1386cf[_0x56eed1('0x21')],_0x1386cf[_0x56eed1('0x2')]),_0x2b5315[_0x56eed1('0x2d')]=_['intersection'](_0x1386cf['model'],qs[_0x56eed1('0x5')](_0x221b01['query'][_0x56eed1('0x5')])),_0x2b5315[_0x56eed1('0x2d')]=_0x2b5315[_0x56eed1('0x2d')][_0x56eed1('0x16')]?_0x2b5315[_0x56eed1('0x2d')]:_0x1386cf[_0x56eed1('0x21')],_0x2b5315[_0x56eed1('0x10')]=qs[_0x56eed1('0x2e')](_0x221b01[_0x56eed1('0x2')][_0x56eed1('0x2e')]),_0x2b5315[_0x56eed1('0x34')]=qs[_0x56eed1('0x39')](_[_0x56eed1('0x1c')](_0x221b01[_0x56eed1('0x2')],_0x1386cf['filters'])),_0x221b01[_0x56eed1('0x2')][_0x56eed1('0x24')]&&(_0x2b5315[_0x56eed1('0x34')]=_[_0x56eed1('0x2b')](_0x2b5315[_0x56eed1('0x34')],{[Op['or']]:_[_0x56eed1('0x2c')](_0x2b5315[_0x56eed1('0x2d')],function(_0xc627df){const _0xb7ff4f=_0x56eed1,_0x2bfcd9={};return _0x2bfcd9[_0xc627df]={[Op['like']]:'%'+_0x221b01[_0xb7ff4f('0x2')]['filter']+'%'},_0x2bfcd9;})})),_0x2b5315=_['merge']({},_0x2b5315,_0x221b01[_0x56eed1('0x8')]),_0x5a356d[_0x56eed1('0x7')](_0x2b5315);})[_0x5df42d('0x18')](function(_0x2c1226){const _0x701e0c=_0x5df42d;if(_0x2c1226)return _0x386b9f=_0x2c1226[_0x701e0c('0x16')],typeof _0x221b01['query'][_0x701e0c('0x31')]==='undefined'&&(_0x2b5315[_0x701e0c('0x4')]=qs[_0x701e0c('0x4')](_0x221b01[_0x701e0c('0x2')][_0x701e0c('0x4')]),_0x2b5315[_0x701e0c('0x12')]=qs[_0x701e0c('0x12')](_0x221b01[_0x701e0c('0x2')][_0x701e0c('0x12')])),_0x5a356d[_0x701e0c('0x7')](_0x2b5315);})['then'](function(_0x8fdf45){if(_0x8fdf45)return _0x8fdf45?{'count':_0x386b9f,'rows':_0x8fdf45}:null;})[_0x5df42d('0x18')](respondWithResult(_0x2221f8,null))[_0x5df42d('0x9')](handleError(_0x2221f8,null));},exports[_0x3e61c8('0x1a')]=function(_0x4ff675,_0x19fbd0){const _0x5d5455=_0x3e61c8;let _0x4bc5fe={};const _0x49f9b6={};let _0x170d86,_0xfaa5b6;return db['FreshdeskConfiguration'][_0x5d5455('0xf')]({'where':{'id':_0x4ff675[_0x5d5455('0x28')]['id']}})[_0x5d5455('0x18')](handleEntityNotFound(_0x19fbd0,null))['then'](function(_0x4b4a34){const _0x291458=_0x5d5455;if(_0x4b4a34)return _0x170d86=_0x4b4a34,_0x49f9b6[_0x291458('0x21')]=_[_0x291458('0x17')](db[_0x291458('0x23')][_0x291458('0x2a')]),_0x49f9b6[_0x291458('0x2')]=_[_0x291458('0x17')](_0x4ff675['query']),_0x49f9b6[_0x291458('0x39')]=_[_0x291458('0x0')](_0x49f9b6[_0x291458('0x21')],_0x49f9b6[_0x291458('0x2')]),_0x4bc5fe['attributes']=_[_0x291458('0x0')](_0x49f9b6[_0x291458('0x21')],qs[_0x291458('0x5')](_0x4ff675[_0x291458('0x2')]['fields'])),_0x4bc5fe[_0x291458('0x2d')]=_0x4bc5fe[_0x291458('0x2d')][_0x291458('0x16')]?_0x4bc5fe[_0x291458('0x2d')]:_0x49f9b6['model'],_0x4bc5fe['order']=qs[_0x291458('0x2e')](_0x4ff675[_0x291458('0x2')][_0x291458('0x2e')]),_0x4bc5fe[_0x291458('0x34')]=qs['filters'](_[_0x291458('0x1c')](_0x4ff675[_0x291458('0x2')],_0x49f9b6[_0x291458('0x39')])),_0x4ff675['query']['filter']&&(_0x4bc5fe[_0x291458('0x34')]=_[_0x291458('0x2b')](_0x4bc5fe[_0x291458('0x34')],{[Op['or']]:_['map'](_0x4bc5fe[_0x291458('0x2d')],function(_0x2ad722){const _0x498092=_0x291458,_0x5e1572={};return _0x5e1572[_0x2ad722]={[Op['like']]:'%'+_0x4ff675[_0x498092('0x2')]['filter']+'%'},_0x5e1572;})})),_0x4bc5fe=_[_0x291458('0x2b')]({},_0x4bc5fe,_0x4ff675[_0x291458('0x8')]),_0x170d86['getSubjects'](_0x4bc5fe);})[_0x5d5455('0x18')](function(_0x380679){const _0x8ad64f=_0x5d5455;if(_0x380679)return _0xfaa5b6=_0x380679[_0x8ad64f('0x16')],typeof _0x4ff675[_0x8ad64f('0x2')][_0x8ad64f('0x31')]===_0x8ad64f('0x3')&&(_0x4bc5fe[_0x8ad64f('0x4')]=qs[_0x8ad64f('0x4')](_0x4ff675[_0x8ad64f('0x2')][_0x8ad64f('0x4')]),_0x4bc5fe[_0x8ad64f('0x12')]=qs['offset'](_0x4ff675[_0x8ad64f('0x2')]['offset'])),_0x170d86[_0x8ad64f('0x1a')](_0x4bc5fe);})[_0x5d5455('0x18')](function(_0x30a18b){if(_0x30a18b)return _0x30a18b?{'count':_0xfaa5b6,'rows':_0x30a18b}:null;})[_0x5d5455('0x18')](respondWithResult(_0x19fbd0,null))['catch'](handleError(_0x19fbd0,null));},exports[_0x3e61c8('0x6')]=function(_0x6025f2,_0x1e640e){const _0x5765a2=_0x3e61c8;let _0x166c6b={};const _0x4c8c75={};let _0x3cb90b,_0x20e6aa;return db[_0x5765a2('0x1e')][_0x5765a2('0xf')]({'where':{'id':_0x6025f2['params']['id']}})[_0x5765a2('0x18')](handleEntityNotFound(_0x1e640e,null))[_0x5765a2('0x18')](function(_0x3a4174){const _0x39b113=_0x5765a2;if(_0x3a4174)return _0x3cb90b=_0x3a4174,_0x4c8c75['model']=_[_0x39b113('0x17')](db[_0x39b113('0x23')][_0x39b113('0x2a')]),_0x4c8c75[_0x39b113('0x2')]=_['keys'](_0x6025f2[_0x39b113('0x2')]),_0x4c8c75[_0x39b113('0x39')]=_[_0x39b113('0x0')](_0x4c8c75[_0x39b113('0x21')],_0x4c8c75[_0x39b113('0x2')]),_0x166c6b['attributes']=_[_0x39b113('0x0')](_0x4c8c75[_0x39b113('0x21')],qs[_0x39b113('0x5')](_0x6025f2['query'][_0x39b113('0x5')])),_0x166c6b[_0x39b113('0x2d')]=_0x166c6b[_0x39b113('0x2d')][_0x39b113('0x16')]?_0x166c6b[_0x39b113('0x2d')]:_0x4c8c75['model'],_0x166c6b[_0x39b113('0x10')]=qs['sort'](_0x6025f2[_0x39b113('0x2')][_0x39b113('0x2e')]),_0x166c6b[_0x39b113('0x34')]=qs[_0x39b113('0x39')](_['pick'](_0x6025f2[_0x39b113('0x2')],_0x4c8c75[_0x39b113('0x39')])),_0x6025f2[_0x39b113('0x2')]['filter']&&(_0x166c6b[_0x39b113('0x34')]=_['merge'](_0x166c6b[_0x39b113('0x34')],{[Op['or']]:_[_0x39b113('0x2c')](_0x166c6b[_0x39b113('0x2d')],function(_0x5b6037){const _0x419431=_0x39b113,_0x4700ec={};return _0x4700ec[_0x5b6037]={[Op[_0x419431('0x14')]]:'%'+_0x6025f2['query'][_0x419431('0x24')]+'%'},_0x4700ec;})})),_0x166c6b=_[_0x39b113('0x2b')]({},_0x166c6b,_0x6025f2[_0x39b113('0x8')]),_0x3cb90b[_0x39b113('0x6')](_0x166c6b);})[_0x5765a2('0x18')](function(_0x499d0e){const _0x2ec0ee=_0x5765a2;if(_0x499d0e)return _0x20e6aa=_0x499d0e[_0x2ec0ee('0x16')],typeof _0x6025f2[_0x2ec0ee('0x2')][_0x2ec0ee('0x31')]==='undefined'&&(_0x166c6b[_0x2ec0ee('0x4')]=qs['limit'](_0x6025f2[_0x2ec0ee('0x2')]['limit']),_0x166c6b[_0x2ec0ee('0x12')]=qs[_0x2ec0ee('0x12')](_0x6025f2[_0x2ec0ee('0x2')]['offset'])),_0x3cb90b[_0x2ec0ee('0x6')](_0x166c6b);})[_0x5765a2('0x18')](function(_0x5e49f6){if(_0x5e49f6)return _0x5e49f6?{'count':_0x20e6aa,'rows':_0x5e49f6}:null;})[_0x5765a2('0x18')](respondWithResult(_0x1e640e,null))[_0x5765a2('0x9')](handleError(_0x1e640e,null));},exports[_0x3e61c8('0x33')]=function(_0x18c9f3,_0x54d8a2){const _0x4de042=_0x3e61c8;let _0x3a0e90={};const _0x4be14d={};let _0x1ae5db,_0x787429;return db['FreshdeskConfiguration'][_0x4de042('0xf')]({'where':{'id':_0x18c9f3['params']['id']}})['then'](handleEntityNotFound(_0x54d8a2,null))[_0x4de042('0x18')](function(_0xca6d13){const _0x344392=_0x4de042;if(_0xca6d13)return _0x1ae5db=_0xca6d13,_0x4be14d[_0x344392('0x21')]=_[_0x344392('0x17')](db[_0x344392('0x32')][_0x344392('0x2a')]),_0x4be14d[_0x344392('0x2')]=_[_0x344392('0x17')](_0x18c9f3['query']),_0x4be14d[_0x344392('0x39')]=_[_0x344392('0x0')](_0x4be14d[_0x344392('0x21')],_0x4be14d['query']),_0x3a0e90[_0x344392('0x2d')]=_['intersection'](_0x4be14d[_0x344392('0x21')],qs[_0x344392('0x5')](_0x18c9f3[_0x344392('0x2')][_0x344392('0x5')])),_0x3a0e90[_0x344392('0x2d')]=_0x3a0e90['attributes'][_0x344392('0x16')]?_0x3a0e90[_0x344392('0x2d')]:_0x4be14d[_0x344392('0x21')],_0x3a0e90[_0x344392('0x10')]=qs[_0x344392('0x2e')](_0x18c9f3[_0x344392('0x2')][_0x344392('0x2e')]),_0x3a0e90[_0x344392('0x34')]=qs[_0x344392('0x39')](_[_0x344392('0x1c')](_0x18c9f3[_0x344392('0x2')],_0x4be14d[_0x344392('0x39')])),_0x18c9f3['query'][_0x344392('0x24')]&&(_0x3a0e90['where']=_['merge'](_0x3a0e90[_0x344392('0x34')],{[Op['or']]:_[_0x344392('0x2c')](_0x3a0e90[_0x344392('0x2d')],function(_0x552f88){const _0x35f679=_0x344392,_0x3f4429={};return _0x3f4429[_0x552f88]={[Op['like']]:'%'+_0x18c9f3['query'][_0x35f679('0x24')]+'%'},_0x3f4429;})})),_0x3a0e90=_[_0x344392('0x2b')]({},_0x3a0e90,_0x18c9f3[_0x344392('0x8')]),_0x1ae5db[_0x344392('0x33')](_0x3a0e90);})[_0x4de042('0x18')](function(_0x11158b){const _0xb36ce5=_0x4de042;if(_0x11158b)return _0x787429=_0x11158b[_0xb36ce5('0x16')],typeof _0x18c9f3['query'][_0xb36ce5('0x31')]==='undefined'&&(_0x3a0e90[_0xb36ce5('0x4')]=qs[_0xb36ce5('0x4')](_0x18c9f3[_0xb36ce5('0x2')][_0xb36ce5('0x4')]),_0x3a0e90['offset']=qs[_0xb36ce5('0x12')](_0x18c9f3[_0xb36ce5('0x2')]['offset'])),_0x1ae5db[_0xb36ce5('0x33')](_0x3a0e90);})[_0x4de042('0x18')](function(_0x287a2e){if(_0x287a2e)return _0x287a2e?{'count':_0x787429,'rows':_0x287a2e}:null;})[_0x4de042('0x18')](respondWithResult(_0x54d8a2,null))[_0x4de042('0x9')](handleError(_0x54d8a2,null));},exports['setTags']=function(_0x4e7c0e,_0x5935e7){const _0x23823d=_0x3e61c8;return _0x4e7c0e[_0x23823d('0x22')]['id']&&delete _0x4e7c0e[_0x23823d('0x22')]['id'],db[_0x23823d('0x1e')]['findOne']({'where':{'id':_0x4e7c0e[_0x23823d('0x28')]['id']}})[_0x23823d('0x18')](handleEntityNotFound(_0x5935e7,null))[_0x23823d('0x18')](function(_0x4dd0ef){const _0x4f2f3b=_0x23823d;if(_0x4dd0ef)return _0x4dd0ef[_0x4f2f3b('0x19')](_0x4e7c0e[_0x4f2f3b('0x22')]['ids']||[]);return null;})['then'](respondWithResult(_0x5935e7,null))[_0x23823d('0x9')](handleError(_0x5935e7,null));}; \ No newline at end of file diff --git a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js index 6b7ed32..a0b0d8f 100644 --- a/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js +++ b/server/api/intFreshdeskConfiguration/intFreshdeskConfiguration.model.js @@ -1 +1 @@ -const a261_0xf472=['FreshdeskConfiguration','exports','define','int_freshdesk_configurations'];(function(_0x39ed13,_0xf47269){const _0x19a1ae=function(_0xc1784f){while(--_0xc1784f){_0x39ed13['push'](_0x39ed13['shift']());}};_0x19a1ae(++_0xf47269);}(a261_0xf472,0x6d));const a261_0x19a1=function(_0x39ed13,_0xf47269){_0x39ed13=_0x39ed13-0x0;let _0x19a1ae=a261_0xf472[_0x39ed13];return _0x19a1ae;};const _0x366731=a261_0x19a1;'use strict';const attributes=require('./intFreshdeskConfiguration.attributes');module[_0x366731('0x0')]=function(_0xc1784f){const _0x303e1a=_0x366731,_0x2dddac=_0xc1784f[_0x303e1a('0x1')](_0x303e1a('0x3'),attributes,{'tableName':_0x303e1a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2dddac;}; \ No newline at end of file +const a261_0x5e9e=['FreshdeskConfiguration','int_freshdesk_configurations','exports','./intFreshdeskConfiguration.attributes','define'];(function(_0x39caab,_0x5e9eae){const _0x45919d=function(_0x25aed9){while(--_0x25aed9){_0x39caab['push'](_0x39caab['shift']());}};_0x45919d(++_0x5e9eae);}(a261_0x5e9e,0x15c));const a261_0x4591=function(_0x39caab,_0x5e9eae){_0x39caab=_0x39caab-0x0;let _0x45919d=a261_0x5e9e[_0x39caab];return _0x45919d;};const _0x1db864=a261_0x4591;'use strict';const attributes=require(_0x1db864('0x0'));module[_0x1db864('0x4')]=function(_0x25aed9){const _0x7c0e66=_0x1db864,_0x15e9e7=_0x25aed9[_0x7c0e66('0x1')](_0x7c0e66('0x2'),attributes,{'tableName':_0x7c0e66('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x15e9e7;}; \ No newline at end of file diff --git a/server/api/intFreshdeskField/index.js b/server/api/intFreshdeskField/index.js index 72ebdab..41cfd73 100644 --- a/server/api/intFreshdeskField/index.js +++ b/server/api/intFreshdeskField/index.js @@ -1 +1 @@ -const a262_0x5823=['update','isAuthenticated','destroy','show','exports','./intFreshdeskField.controller','delete','get','/:id'];(function(_0x55e8e9,_0x5823eb){const _0x5ad50d=function(_0x556b7c){while(--_0x556b7c){_0x55e8e9['push'](_0x55e8e9['shift']());}};_0x5ad50d(++_0x5823eb);}(a262_0x5823,0x17d));const a262_0x5ad5=function(_0x55e8e9,_0x5823eb){_0x55e8e9=_0x55e8e9-0x0;let _0x5ad50d=a262_0x5823[_0x55e8e9];return _0x5ad50d;};const _0x3b8ce7=a262_0x5ad5;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x3b8ce7('0x2'));router[_0x3b8ce7('0x4')]('/',auth[_0x3b8ce7('0x7')](),controller['index']),router[_0x3b8ce7('0x4')](_0x3b8ce7('0x5'),auth[_0x3b8ce7('0x7')](),controller[_0x3b8ce7('0x0')]),router['post']('/',auth[_0x3b8ce7('0x7')](),controller['create']),router['put'](_0x3b8ce7('0x5'),auth[_0x3b8ce7('0x7')](),controller[_0x3b8ce7('0x6')]),router[_0x3b8ce7('0x3')]('/:id',auth[_0x3b8ce7('0x7')](),controller[_0x3b8ce7('0x8')]),module[_0x3b8ce7('0x1')]=router; \ No newline at end of file +const a262_0x18e5=['get','create','show','delete','post','Router','isAuthenticated','destroy','put','/:id','index','exports','update','./intFreshdeskField.controller'];(function(_0x4c2e27,_0x18e57e){const _0x3e40f8=function(_0x5f4bd7){while(--_0x5f4bd7){_0x4c2e27['push'](_0x4c2e27['shift']());}};_0x3e40f8(++_0x18e57e);}(a262_0x18e5,0x1f1));const a262_0x3e40=function(_0x4c2e27,_0x18e57e){_0x4c2e27=_0x4c2e27-0x0;let _0x3e40f8=a262_0x18e5[_0x4c2e27];return _0x3e40f8;};const _0x557e9c=a262_0x3e40;'use strict';const express=require('express'),router=express[_0x557e9c('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x557e9c('0x6'));router[_0x557e9c('0x7')]('/',auth[_0x557e9c('0xd')](),controller[_0x557e9c('0x3')]),router[_0x557e9c('0x7')]('/:id',auth[_0x557e9c('0xd')](),controller[_0x557e9c('0x9')]),router[_0x557e9c('0xb')]('/',auth[_0x557e9c('0xd')](),controller[_0x557e9c('0x8')]),router[_0x557e9c('0x1')](_0x557e9c('0x2'),auth[_0x557e9c('0xd')](),controller[_0x557e9c('0x5')]),router[_0x557e9c('0xa')](_0x557e9c('0x2'),auth['isAuthenticated'](),controller[_0x557e9c('0x0')]),module[_0x557e9c('0x4')]=router; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.attributes.js b/server/api/intFreshdeskField/intFreshdeskField.attributes.js index 187cc26..7eb19e7 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.attributes.js +++ b/server/api/intFreshdeskField/intFreshdeskField.attributes.js @@ -1 +1 @@ -const a263_0x3b72=['string','variable','BOOLEAN','sequelize','STRING','keyValue','ENUM','exports','customVariable'];(function(_0x3f9ef2,_0x3b72b6){const _0x422ee0=function(_0xe4b33a){while(--_0xe4b33a){_0x3f9ef2['push'](_0x3f9ef2['shift']());}};_0x422ee0(++_0x3b72b6);}(a263_0x3b72,0x96));const a263_0x422e=function(_0x3f9ef2,_0x3b72b6){_0x3f9ef2=_0x3f9ef2-0x0;let _0x422ee0=a263_0x3b72[_0x3f9ef2];return _0x422ee0;};const _0x3d81df=a263_0x422e;'use strict';const Sequelize=require(_0x3d81df('0x6'));module[_0x3d81df('0x1')]={'type':{'type':Sequelize['ENUM']('string',_0x3d81df('0x4'),_0x3d81df('0x2'),_0x3d81df('0x8')),'defaultValue':_0x3d81df('0x3')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x3d81df('0x7')]},'keyType':{'type':Sequelize[_0x3d81df('0x0')](_0x3d81df('0x3'),'variable',_0x3d81df('0x2'))},'keyContent':{'type':Sequelize[_0x3d81df('0x7')]},'idField':{'type':Sequelize[_0x3d81df('0x7')]},'nameField':{'type':Sequelize[_0x3d81df('0x7')]},'customField':{'type':Sequelize[_0x3d81df('0x5')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a263_0x484c=['sequelize','exports','string','ENUM','BOOLEAN','customVariable','STRING','variable'];(function(_0x1a5123,_0x484c5a){const _0x1ae8ec=function(_0x2ecc41){while(--_0x2ecc41){_0x1a5123['push'](_0x1a5123['shift']());}};_0x1ae8ec(++_0x484c5a);}(a263_0x484c,0xfd));const a263_0x1ae8=function(_0x1a5123,_0x484c5a){_0x1a5123=_0x1a5123-0x0;let _0x1ae8ec=a263_0x484c[_0x1a5123];return _0x1ae8ec;};const _0x27715a=a263_0x1ae8;'use strict';const Sequelize=require(_0x27715a('0x3'));module[_0x27715a('0x4')]={'type':{'type':Sequelize[_0x27715a('0x6')](_0x27715a('0x5'),_0x27715a('0x2'),_0x27715a('0x0'),'keyValue'),'defaultValue':_0x27715a('0x5')},'content':{'type':Sequelize[_0x27715a('0x1')]},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize[_0x27715a('0x6')]('string',_0x27715a('0x2'),_0x27715a('0x0'))},'keyContent':{'type':Sequelize[_0x27715a('0x1')]},'idField':{'type':Sequelize[_0x27715a('0x1')]},'nameField':{'type':Sequelize[_0x27715a('0x1')]},'customField':{'type':Sequelize[_0x27715a('0x7')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x27715a('0x1')]}}; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.controller.js b/server/api/intFreshdeskField/intFreshdeskField.controller.js index 2a261e4..1f480de 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.controller.js +++ b/server/api/intFreshdeskField/intFreshdeskField.controller.js @@ -1 +1 @@ -const a264_0x1a60=['order','length','create','where','include','limit','end','set','includeAll','model','../../components/parsers/qs','attributes','FreshdeskField','intersection','update','rawAttributes','Content-Range','key','then','error','map','VIRTUAL','filters','body','fields','pick','findOne','destroy','api','json','status','../../mysqldb','keys','merge','filter','lodash','index','sequelize','catch','query','options','send','show','type','name','offset','params','fieldName','count'];(function(_0x468ee6,_0x1a60e9){const _0x18e089=function(_0xab9d96){while(--_0xab9d96){_0x468ee6['push'](_0x468ee6['shift']());}};_0x18e089(++_0x1a60e9);}(a264_0x1a60,0x97));const a264_0x18e0=function(_0x468ee6,_0x1a60e9){_0x468ee6=_0x468ee6-0x0;let _0x18e089=a264_0x1a60[_0x468ee6];return _0x18e089;};const _0x33c888=a264_0x18e0;'use strict';const _=require(_0x33c888('0x1f')),qs=require(_0x33c888('0x6')),logger=require('../../config/logger')(_0x33c888('0x18')),db=require(_0x33c888('0x1b'))['db'],{Op}=require(_0x33c888('0x21'));function respondWithResult(_0xab9d96,_0xa83cae){return _0xa83cae=_0xa83cae||0xc8,function(_0x52bedc){const _0x1e0b2a=a264_0x18e0;if(_0x52bedc)return _0xab9d96[_0x1e0b2a('0x1a')](_0xa83cae)[_0x1e0b2a('0x19')](_0x52bedc);};}function respondWithFilteredResult(_0x393ca0,_0x353eb0){return function(_0x1fe1a0){const _0x47e329=a264_0x18e0;if(_0x1fe1a0){const _0x54dad7=_0x1fe1a0[_0x47e329('0x2c')],_0x53cf80=_0x353eb0[_0x47e329('0x29')];let _0x4be62f=_0x353eb0[_0x47e329('0x29')]+_0x353eb0['limit'],_0x5ac533;return _0x4be62f>=_0x54dad7?(_0x4be62f=_0x54dad7,_0x5ac533=0xc8):_0x5ac533=0xce,_0x393ca0[_0x47e329('0x1a')](_0x5ac533),_0x393ca0[_0x47e329('0x3')](_0x47e329('0xc'),_0x53cf80+'-'+_0x4be62f+'/'+_0x54dad7)[_0x47e329('0x19')](_0x1fe1a0);}return null;};}function saveUpdates(_0x53e4c8){return function(_0x585a54){const _0x4bd0a6=a264_0x18e0;if(_0x585a54)return _0x585a54['update'](_0x53e4c8)[_0x4bd0a6('0xe')](function(_0x2d1757){return _0x2d1757;});return null;};}function removeEntity(_0x3c82ed){return function(_0x2803d8){const _0x287df5=a264_0x18e0;if(_0x2803d8)return _0x2803d8[_0x287df5('0x17')]()['then'](function(){const _0x35301e=_0x287df5;_0x3c82ed[_0x35301e('0x1a')](0xcc)[_0x35301e('0x2')]();});};}function handleEntityNotFound(_0xc9144d){return function(_0x1e5642){return!_0x1e5642&&_0xc9144d['sendStatus'](0x194),_0x1e5642;};}function handleError(_0x130159,_0x4e65a1){return _0x4e65a1=_0x4e65a1||0x1f4,function(_0x485ff0){const _0x1186b5=a264_0x18e0;logger[_0x1186b5('0xf')](_0x485ff0['stack']),_0x485ff0[_0x1186b5('0x28')]&&delete _0x485ff0[_0x1186b5('0x28')],_0x130159[_0x1186b5('0x1a')](_0x4e65a1)[_0x1186b5('0x25')](_0x485ff0);};}exports[_0x33c888('0x20')]=function(_0x50ddbf,_0x165ee9){const _0x4af90a=_0x33c888;let _0x13d04a={};const _0x3b5c9f={},_0xb93ff5={'count':0x0,'rows':[]},_0x3610ac=_[_0x4af90a('0x10')](db[_0x4af90a('0x8')][_0x4af90a('0xb')],function(_0x13ed27){const _0x40e614=_0x4af90a;return{'name':_0x13ed27[_0x40e614('0x2b')],'type':_0x13ed27[_0x40e614('0x27')][_0x40e614('0xd')]};});_0x3b5c9f[_0x4af90a('0x5')]=_[_0x4af90a('0x10')](_0x3610ac,_0x4af90a('0x28')),_0x3b5c9f['query']=_[_0x4af90a('0x1c')](_0x50ddbf[_0x4af90a('0x23')]),_0x3b5c9f[_0x4af90a('0x12')]=_[_0x4af90a('0x9')](_0x3b5c9f[_0x4af90a('0x5')],_0x3b5c9f[_0x4af90a('0x23')]),_0x13d04a[_0x4af90a('0x7')]=_[_0x4af90a('0x9')](_0x3b5c9f[_0x4af90a('0x5')],qs[_0x4af90a('0x14')](_0x50ddbf['query'][_0x4af90a('0x14')])),_0x13d04a[_0x4af90a('0x7')]=_0x13d04a[_0x4af90a('0x7')][_0x4af90a('0x2e')]?_0x13d04a[_0x4af90a('0x7')]:_0x3b5c9f[_0x4af90a('0x5')];typeof _0x50ddbf['query']['nolimit']==='undefined'&&(_0x13d04a[_0x4af90a('0x1')]=qs[_0x4af90a('0x1')](_0x50ddbf['query'][_0x4af90a('0x1')]),_0x13d04a[_0x4af90a('0x29')]=qs[_0x4af90a('0x29')](_0x50ddbf['query']['offset']));_0x13d04a[_0x4af90a('0x2d')]=qs['sort'](_0x50ddbf[_0x4af90a('0x23')]['sort']),_0x13d04a['where']=qs[_0x4af90a('0x12')](_[_0x4af90a('0x15')](_0x50ddbf['query'],_0x3b5c9f['filters']),_0x3610ac);_0x50ddbf[_0x4af90a('0x23')][_0x4af90a('0x1e')]&&(_0x13d04a[_0x4af90a('0x30')]=_[_0x4af90a('0x1d')](_0x13d04a[_0x4af90a('0x30')],{[Op['or']]:_[_0x4af90a('0x10')](_0x3610ac,function(_0x565a73){const _0x326b57=_0x4af90a;if(_0x565a73[_0x326b57('0x27')]!==_0x326b57('0x11')){const _0x50c0e1={};return _0x50c0e1[_0x565a73[_0x326b57('0x28')]]={[Op['like']]:'%'+_0x50ddbf[_0x326b57('0x23')]['filter']+'%'},_0x50c0e1;}})}));_0x13d04a=_[_0x4af90a('0x1d')]({},_0x13d04a,_0x50ddbf[_0x4af90a('0x24')]);const _0x1f447b={'where':_0x13d04a['where']};return db[_0x4af90a('0x8')][_0x4af90a('0x2c')](_0x1f447b)['then'](function(_0x542dbc){const _0x22ee0a=_0x4af90a;return _0xb93ff5[_0x22ee0a('0x2c')]=_0x542dbc,_0x50ddbf[_0x22ee0a('0x23')][_0x22ee0a('0x4')]&&(_0x13d04a['include']=[{'all':!![]}]),db[_0x22ee0a('0x8')]['findAll'](_0x13d04a);})['then'](function(_0x7032e5){return _0xb93ff5['rows']=_0x7032e5,_0xb93ff5;})['then'](respondWithFilteredResult(_0x165ee9,_0x13d04a))[_0x4af90a('0x22')](handleError(_0x165ee9,null));},exports[_0x33c888('0x26')]=function(_0xc8f1d9,_0x5c2ed8){const _0x395b46=_0x33c888;let _0x3db50d={'raw':!![],'where':{'id':_0xc8f1d9[_0x395b46('0x2a')]['id']}};const _0x4ded4f={};return _0x4ded4f['model']=_[_0x395b46('0x1c')](db['FreshdeskField'][_0x395b46('0xb')]),_0x4ded4f[_0x395b46('0x23')]=_[_0x395b46('0x1c')](_0xc8f1d9['query']),_0x4ded4f[_0x395b46('0x12')]=_['intersection'](_0x4ded4f[_0x395b46('0x5')],_0x4ded4f[_0x395b46('0x23')]),_0x3db50d[_0x395b46('0x7')]=_[_0x395b46('0x9')](_0x4ded4f['model'],qs[_0x395b46('0x14')](_0xc8f1d9['query'][_0x395b46('0x14')])),_0x3db50d[_0x395b46('0x7')]=_0x3db50d['attributes'][_0x395b46('0x2e')]?_0x3db50d[_0x395b46('0x7')]:_0x4ded4f['model'],_0xc8f1d9[_0x395b46('0x23')][_0x395b46('0x4')]&&(_0x3db50d[_0x395b46('0x0')]=[{'all':!![]}]),_0x3db50d=_['merge']({},_0x3db50d,_0xc8f1d9['options']),db['FreshdeskField'][_0x395b46('0x16')](_0x3db50d)[_0x395b46('0xe')](handleEntityNotFound(_0x5c2ed8,null))['then'](respondWithResult(_0x5c2ed8,null))[_0x395b46('0x22')](handleError(_0x5c2ed8,null));},exports['create']=function(_0x20ad31,_0x212f7e){const _0x29741b=_0x33c888;return db[_0x29741b('0x8')][_0x29741b('0x2f')](_0x20ad31[_0x29741b('0x13')],{})[_0x29741b('0xe')](respondWithResult(_0x212f7e,0xc9))[_0x29741b('0x22')](handleError(_0x212f7e,null));},exports[_0x33c888('0xa')]=function(_0x480219,_0x1cccd1){const _0x5b75f9=_0x33c888;return _0x480219[_0x5b75f9('0x13')]['id']&&delete _0x480219[_0x5b75f9('0x13')]['id'],db[_0x5b75f9('0x8')][_0x5b75f9('0x16')]({'where':{'id':_0x480219[_0x5b75f9('0x2a')]['id']}})[_0x5b75f9('0xe')](handleEntityNotFound(_0x1cccd1,null))[_0x5b75f9('0xe')](saveUpdates(_0x480219[_0x5b75f9('0x13')],null))['then'](respondWithResult(_0x1cccd1,null))['catch'](handleError(_0x1cccd1,null));},exports[_0x33c888('0x17')]=function(_0x484c59,_0x22f404){const _0x5a09a6=_0x33c888;return db['FreshdeskField'][_0x5a09a6('0x16')]({'where':{'id':_0x484c59[_0x5a09a6('0x2a')]['id']}})['then'](handleEntityNotFound(_0x22f404,null))[_0x5a09a6('0xe')](removeEntity(_0x22f404,null))[_0x5a09a6('0x22')](handleError(_0x22f404,null));}; \ No newline at end of file +const a264_0x1e5a=['where','intersection','findAll','end','../../components/parsers/qs','offset','type','attributes','order','create','body','../../config/logger','like','then','params','show','sequelize','FreshdeskField','include','count','limit','sendStatus','filter','stack','filters','fields','query','key','../../mysqldb','keys','model','set','includeAll','catch','status','sort','error','api','nolimit','Content-Range','map','rawAttributes','merge','length','options','destroy','json','name','findOne'];(function(_0x25bec3,_0x1e5afb){const _0x13677c=function(_0xfab628){while(--_0xfab628){_0x25bec3['push'](_0x25bec3['shift']());}};_0x13677c(++_0x1e5afb);}(a264_0x1e5a,0xad));const a264_0x1367=function(_0x25bec3,_0x1e5afb){_0x25bec3=_0x25bec3-0x0;let _0x13677c=a264_0x1e5a[_0x25bec3];return _0x13677c;};const _0x2ffc58=a264_0x1367;'use strict';const _=require('lodash'),qs=require(_0x2ffc58('0x1b')),logger=require(_0x2ffc58('0x22'))(_0x2ffc58('0xb')),db=require(_0x2ffc58('0x2'))['db'],{Op}=require(_0x2ffc58('0x27'));function respondWithResult(_0xfab628,_0x42ea0b){return _0x42ea0b=_0x42ea0b||0xc8,function(_0x6e6ec6){const _0x362dfa=a264_0x1367;if(_0x6e6ec6)return _0xfab628[_0x362dfa('0x8')](_0x42ea0b)[_0x362dfa('0x14')](_0x6e6ec6);};}function respondWithFilteredResult(_0x8027e9,_0x4e94d4){return function(_0x25373d){const _0x28ff73=a264_0x1367;if(_0x25373d){const _0x18c38f=_0x25373d[_0x28ff73('0x2a')],_0x13c618=_0x4e94d4['offset'];let _0x1d8563=_0x4e94d4[_0x28ff73('0x1c')]+_0x4e94d4[_0x28ff73('0x2b')],_0x579e77;return _0x1d8563>=_0x18c38f?(_0x1d8563=_0x18c38f,_0x579e77=0xc8):_0x579e77=0xce,_0x8027e9[_0x28ff73('0x8')](_0x579e77),_0x8027e9[_0x28ff73('0x5')](_0x28ff73('0xd'),_0x13c618+'-'+_0x1d8563+'/'+_0x18c38f)[_0x28ff73('0x14')](_0x25373d);}return null;};}function saveUpdates(_0x97ee37){return function(_0x58d379){const _0x2be930=a264_0x1367;if(_0x58d379)return _0x58d379['update'](_0x97ee37)[_0x2be930('0x24')](function(_0x1b7abf){return _0x1b7abf;});return null;};}function removeEntity(_0x37788a){return function(_0x318743){const _0x467acd=a264_0x1367;if(_0x318743)return _0x318743[_0x467acd('0x13')]()[_0x467acd('0x24')](function(){const _0x542ac0=_0x467acd;_0x37788a[_0x542ac0('0x8')](0xcc)[_0x542ac0('0x1a')]();});};}function handleEntityNotFound(_0x391899){return function(_0x354ff7){const _0x382e92=a264_0x1367;return!_0x354ff7&&_0x391899[_0x382e92('0x2c')](0x194),_0x354ff7;};}function handleError(_0x28a31c,_0x33ad24){return _0x33ad24=_0x33ad24||0x1f4,function(_0x364a0f){const _0x2ddb16=a264_0x1367;logger[_0x2ddb16('0xa')](_0x364a0f[_0x2ddb16('0x2e')]),_0x364a0f[_0x2ddb16('0x15')]&&delete _0x364a0f['name'],_0x28a31c[_0x2ddb16('0x8')](_0x33ad24)['send'](_0x364a0f);};}exports['index']=function(_0x10c249,_0x42a5eb){const _0x3dc3d6=_0x2ffc58;let _0x58bdbd={};const _0x2808f9={},_0x4a017c={'count':0x0,'rows':[]},_0x735abe=_[_0x3dc3d6('0xe')](db['FreshdeskField']['rawAttributes'],function(_0x157893){const _0x47016c=_0x3dc3d6;return{'name':_0x157893['fieldName'],'type':_0x157893[_0x47016c('0x1d')][_0x47016c('0x1')]};});_0x2808f9['model']=_[_0x3dc3d6('0xe')](_0x735abe,_0x3dc3d6('0x15')),_0x2808f9[_0x3dc3d6('0x0')]=_[_0x3dc3d6('0x3')](_0x10c249[_0x3dc3d6('0x0')]),_0x2808f9[_0x3dc3d6('0x2f')]=_[_0x3dc3d6('0x18')](_0x2808f9[_0x3dc3d6('0x4')],_0x2808f9[_0x3dc3d6('0x0')]),_0x58bdbd[_0x3dc3d6('0x1e')]=_[_0x3dc3d6('0x18')](_0x2808f9['model'],qs[_0x3dc3d6('0x30')](_0x10c249[_0x3dc3d6('0x0')][_0x3dc3d6('0x30')])),_0x58bdbd[_0x3dc3d6('0x1e')]=_0x58bdbd[_0x3dc3d6('0x1e')]['length']?_0x58bdbd[_0x3dc3d6('0x1e')]:_0x2808f9[_0x3dc3d6('0x4')];typeof _0x10c249[_0x3dc3d6('0x0')][_0x3dc3d6('0xc')]==='undefined'&&(_0x58bdbd['limit']=qs[_0x3dc3d6('0x2b')](_0x10c249[_0x3dc3d6('0x0')][_0x3dc3d6('0x2b')]),_0x58bdbd[_0x3dc3d6('0x1c')]=qs[_0x3dc3d6('0x1c')](_0x10c249[_0x3dc3d6('0x0')]['offset']));_0x58bdbd[_0x3dc3d6('0x1f')]=qs[_0x3dc3d6('0x9')](_0x10c249[_0x3dc3d6('0x0')][_0x3dc3d6('0x9')]),_0x58bdbd[_0x3dc3d6('0x17')]=qs['filters'](_['pick'](_0x10c249[_0x3dc3d6('0x0')],_0x2808f9[_0x3dc3d6('0x2f')]),_0x735abe);_0x10c249[_0x3dc3d6('0x0')][_0x3dc3d6('0x2d')]&&(_0x58bdbd[_0x3dc3d6('0x17')]=_[_0x3dc3d6('0x10')](_0x58bdbd['where'],{[Op['or']]:_[_0x3dc3d6('0xe')](_0x735abe,function(_0x55a1b6){const _0x3889fe=_0x3dc3d6;if(_0x55a1b6[_0x3889fe('0x1d')]!=='VIRTUAL'){const _0x4b0ec6={};return _0x4b0ec6[_0x55a1b6['name']]={[Op[_0x3889fe('0x23')]]:'%'+_0x10c249['query']['filter']+'%'},_0x4b0ec6;}})}));_0x58bdbd=_['merge']({},_0x58bdbd,_0x10c249[_0x3dc3d6('0x12')]);const _0x1b2a16={'where':_0x58bdbd[_0x3dc3d6('0x17')]};return db['FreshdeskField'][_0x3dc3d6('0x2a')](_0x1b2a16)[_0x3dc3d6('0x24')](function(_0x2d1a49){const _0x5a0b94=_0x3dc3d6;return _0x4a017c['count']=_0x2d1a49,_0x10c249[_0x5a0b94('0x0')][_0x5a0b94('0x6')]&&(_0x58bdbd[_0x5a0b94('0x29')]=[{'all':!![]}]),db['FreshdeskField'][_0x5a0b94('0x19')](_0x58bdbd);})[_0x3dc3d6('0x24')](function(_0x38f4e7){return _0x4a017c['rows']=_0x38f4e7,_0x4a017c;})[_0x3dc3d6('0x24')](respondWithFilteredResult(_0x42a5eb,_0x58bdbd))[_0x3dc3d6('0x7')](handleError(_0x42a5eb,null));},exports[_0x2ffc58('0x26')]=function(_0x36f380,_0x15c965){const _0x336dc6=_0x2ffc58;let _0x2e2c7f={'raw':!![],'where':{'id':_0x36f380[_0x336dc6('0x25')]['id']}};const _0x3ffb84={};return _0x3ffb84['model']=_[_0x336dc6('0x3')](db[_0x336dc6('0x28')][_0x336dc6('0xf')]),_0x3ffb84[_0x336dc6('0x0')]=_[_0x336dc6('0x3')](_0x36f380[_0x336dc6('0x0')]),_0x3ffb84[_0x336dc6('0x2f')]=_['intersection'](_0x3ffb84[_0x336dc6('0x4')],_0x3ffb84[_0x336dc6('0x0')]),_0x2e2c7f['attributes']=_['intersection'](_0x3ffb84[_0x336dc6('0x4')],qs[_0x336dc6('0x30')](_0x36f380[_0x336dc6('0x0')][_0x336dc6('0x30')])),_0x2e2c7f[_0x336dc6('0x1e')]=_0x2e2c7f[_0x336dc6('0x1e')][_0x336dc6('0x11')]?_0x2e2c7f[_0x336dc6('0x1e')]:_0x3ffb84[_0x336dc6('0x4')],_0x36f380[_0x336dc6('0x0')]['includeAll']&&(_0x2e2c7f[_0x336dc6('0x29')]=[{'all':!![]}]),_0x2e2c7f=_[_0x336dc6('0x10')]({},_0x2e2c7f,_0x36f380['options']),db[_0x336dc6('0x28')][_0x336dc6('0x16')](_0x2e2c7f)['then'](handleEntityNotFound(_0x15c965,null))['then'](respondWithResult(_0x15c965,null))[_0x336dc6('0x7')](handleError(_0x15c965,null));},exports[_0x2ffc58('0x20')]=function(_0x58d0d5,_0x2f5f83){const _0x45f3c3=_0x2ffc58;return db['FreshdeskField']['create'](_0x58d0d5[_0x45f3c3('0x21')],{})[_0x45f3c3('0x24')](respondWithResult(_0x2f5f83,0xc9))['catch'](handleError(_0x2f5f83,null));},exports['update']=function(_0x519e88,_0x590155){const _0x538b31=_0x2ffc58;return _0x519e88[_0x538b31('0x21')]['id']&&delete _0x519e88[_0x538b31('0x21')]['id'],db[_0x538b31('0x28')][_0x538b31('0x16')]({'where':{'id':_0x519e88['params']['id']}})[_0x538b31('0x24')](handleEntityNotFound(_0x590155,null))['then'](saveUpdates(_0x519e88[_0x538b31('0x21')],null))['then'](respondWithResult(_0x590155,null))[_0x538b31('0x7')](handleError(_0x590155,null));},exports[_0x2ffc58('0x13')]=function(_0x4b8dc3,_0x78fb13){const _0x3d1bed=_0x2ffc58;return db[_0x3d1bed('0x28')][_0x3d1bed('0x16')]({'where':{'id':_0x4b8dc3['params']['id']}})['then'](handleEntityNotFound(_0x78fb13,null))[_0x3d1bed('0x24')](removeEntity(_0x78fb13,null))[_0x3d1bed('0x7')](handleError(_0x78fb13,null));}; \ No newline at end of file diff --git a/server/api/intFreshdeskField/intFreshdeskField.model.js b/server/api/intFreshdeskField/intFreshdeskField.model.js index d097112..60515a8 100644 --- a/server/api/intFreshdeskField/intFreshdeskField.model.js +++ b/server/api/intFreshdeskField/intFreshdeskField.model.js @@ -1 +1 @@ -const a265_0x43d2=['freshdesk_unique_index','int_freshdesk_fields','./intFreshdeskField.attributes','FieldId','idField'];(function(_0x49684a,_0x43d29d){const _0x44066e=function(_0x2c78d4){while(--_0x2c78d4){_0x49684a['push'](_0x49684a['shift']());}};_0x44066e(++_0x43d29d);}(a265_0x43d2,0x1de));const a265_0x4406=function(_0x49684a,_0x43d29d){_0x49684a=_0x49684a-0x0;let _0x44066e=a265_0x43d2[_0x49684a];return _0x44066e;};const _0x555130=a265_0x4406;'use strict';const attributes=require(_0x555130('0x4'));module['exports']=function(_0x2c78d4){const _0x488ef6=_0x555130,_0x440365=_0x2c78d4['define']('FreshdeskField',attributes,{'tableName':_0x488ef6('0x3'),'paranoid':![],'indexes':[{'name':_0x488ef6('0x2'),'fields':[_0x488ef6('0x1'),_0x488ef6('0x0')],'unique':!![]}],'timestamps':!![]});return _0x440365;}; \ No newline at end of file +const a265_0x1f28=['int_freshdesk_fields','define','exports','idField','./intFreshdeskField.attributes','FieldId'];(function(_0x23cc91,_0x1f2811){const _0x39a9d9=function(_0x589fea){while(--_0x589fea){_0x23cc91['push'](_0x23cc91['shift']());}};_0x39a9d9(++_0x1f2811);}(a265_0x1f28,0x195));const a265_0x39a9=function(_0x23cc91,_0x1f2811){_0x23cc91=_0x23cc91-0x0;let _0x39a9d9=a265_0x1f28[_0x23cc91];return _0x39a9d9;};const _0x4c360a=a265_0x39a9;'use strict';const attributes=require(_0x4c360a('0x1'));module[_0x4c360a('0x5')]=function(_0x589fea){const _0x32b67c=_0x4c360a,_0x25771a=_0x589fea[_0x32b67c('0x4')]('FreshdeskField',attributes,{'tableName':_0x32b67c('0x3'),'paranoid':![],'indexes':[{'name':'freshdesk_unique_index','fields':[_0x32b67c('0x0'),_0x32b67c('0x2')],'unique':!![]}],'timestamps':!![]});return _0x25771a;}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/index.js b/server/api/intFreshsalesAccount/index.js index 03fc992..8364028 100644 --- a/server/api/intFreshsalesAccount/index.js +++ b/server/api/intFreshsalesAccount/index.js @@ -1 +1 @@ -const a266_0x4c2c=['exports','update','destroy','express','getFields','Router','delete','/:id','get','/:id/fields','post','isAuthenticated','./intFreshsalesAccount.controller','addConfiguration','/:id/configurations','getConfigurations','show','put','index'];(function(_0x36459a,_0x4c2c9b){const _0x5bba46=function(_0x1cabd4){while(--_0x1cabd4){_0x36459a['push'](_0x36459a['shift']());}};_0x5bba46(++_0x4c2c9b);}(a266_0x4c2c,0x110));const a266_0x5bba=function(_0x36459a,_0x4c2c9b){_0x36459a=_0x36459a-0x0;let _0x5bba46=a266_0x4c2c[_0x36459a];return _0x5bba46;};const _0x3c1173=a266_0x5bba;'use strict';const express=require(_0x3c1173('0x10')),router=express[_0x3c1173('0x12')](),auth=require('../../components/auth/service'),controller=require(_0x3c1173('0x6'));router[_0x3c1173('0x2')]('/',auth[_0x3c1173('0x5')](),controller[_0x3c1173('0xc')]),router['get'](_0x3c1173('0x1'),auth[_0x3c1173('0x5')](),controller[_0x3c1173('0xa')]),router['get'](_0x3c1173('0x8'),auth[_0x3c1173('0x5')](),controller[_0x3c1173('0x9')]),router['get'](_0x3c1173('0x3'),auth['isAuthenticated'](),controller[_0x3c1173('0x11')]),router['post']('/',auth[_0x3c1173('0x5')](),controller['create']),router[_0x3c1173('0x4')]('/:id/configurations',auth[_0x3c1173('0x5')](),controller[_0x3c1173('0x7')]),router[_0x3c1173('0xb')](_0x3c1173('0x1'),auth[_0x3c1173('0x5')](),controller[_0x3c1173('0xe')]),router[_0x3c1173('0x0')](_0x3c1173('0x1'),auth['isAuthenticated'](),controller[_0x3c1173('0xf')]),module[_0x3c1173('0xd')]=router; \ No newline at end of file +const a266_0x10c4=['/:id','isAuthenticated','destroy','get','show','Router','update','delete','post','exports','/:id/fields','./intFreshsalesAccount.controller','express','create','index','getConfigurations','/:id/configurations','put'];(function(_0x2786d5,_0x10c4b5){const _0x2011e6=function(_0x449f70){while(--_0x449f70){_0x2786d5['push'](_0x2786d5['shift']());}};_0x2011e6(++_0x10c4b5);}(a266_0x10c4,0x151));const a266_0x2011=function(_0x2786d5,_0x10c4b5){_0x2786d5=_0x2786d5-0x0;let _0x2011e6=a266_0x10c4[_0x2786d5];return _0x2011e6;};const _0x3354f9=a266_0x2011;'use strict';const express=require(_0x3354f9('0x11')),router=express[_0x3354f9('0xa')](),auth=require('../../components/auth/service'),controller=require(_0x3354f9('0x10'));router[_0x3354f9('0x8')]('/',auth[_0x3354f9('0x6')](),controller[_0x3354f9('0x1')]),router[_0x3354f9('0x8')](_0x3354f9('0x5'),auth[_0x3354f9('0x6')](),controller[_0x3354f9('0x9')]),router[_0x3354f9('0x8')](_0x3354f9('0x3'),auth[_0x3354f9('0x6')](),controller[_0x3354f9('0x2')]),router[_0x3354f9('0x8')](_0x3354f9('0xf'),auth[_0x3354f9('0x6')](),controller['getFields']),router[_0x3354f9('0xd')]('/',auth[_0x3354f9('0x6')](),controller[_0x3354f9('0x0')]),router['post'](_0x3354f9('0x3'),auth[_0x3354f9('0x6')](),controller['addConfiguration']),router[_0x3354f9('0x4')](_0x3354f9('0x5'),auth[_0x3354f9('0x6')](),controller[_0x3354f9('0xb')]),router[_0x3354f9('0xc')]('/:id',auth[_0x3354f9('0x6')](),controller[_0x3354f9('0x7')]),module[_0x3354f9('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 92631ce..ad80709 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.attributes.js @@ -1 +1 @@ -const a267_0x2506=['sequelize','username','STRING','exports','remoteUri'];(function(_0x3166fe,_0x25069b){const _0x40dcb4=function(_0x22e1d8){while(--_0x22e1d8){_0x3166fe['push'](_0x3166fe['shift']());}};_0x40dcb4(++_0x25069b);}(a267_0x2506,0x19d));const a267_0x40dc=function(_0x3166fe,_0x25069b){_0x3166fe=_0x3166fe-0x0;let _0x40dcb4=a267_0x2506[_0x3166fe];return _0x40dcb4;};const _0x1cd255=a267_0x40dc;'use strict';const Sequelize=require(_0x1cd255('0x2'));module[_0x1cd255('0x0')]={'name':{'type':Sequelize[_0x1cd255('0x4')]},'description':{'type':Sequelize[_0x1cd255('0x4')]},'username':{'type':Sequelize[_0x1cd255('0x4')],'unique':_0x1cd255('0x3')},'apiKey':{'type':Sequelize[_0x1cd255('0x4')]},'remoteUri':{'type':Sequelize[_0x1cd255('0x4')],'unique':_0x1cd255('0x1')},'serverUrl':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a267_0x9a18=['username','sequelize','exports','remoteUri','STRING'];(function(_0x5b69c2,_0x9a1887){const _0x4340b8=function(_0x17fa6c){while(--_0x17fa6c){_0x5b69c2['push'](_0x5b69c2['shift']());}};_0x4340b8(++_0x9a1887);}(a267_0x9a18,0x1be));const a267_0x4340=function(_0x5b69c2,_0x9a1887){_0x5b69c2=_0x5b69c2-0x0;let _0x4340b8=a267_0x9a18[_0x5b69c2];return _0x4340b8;};const _0x27ba2c=a267_0x4340;'use strict';const Sequelize=require(_0x27ba2c('0x0'));module[_0x27ba2c('0x1')]={'name':{'type':Sequelize[_0x27ba2c('0x3')]},'description':{'type':Sequelize[_0x27ba2c('0x3')]},'username':{'type':Sequelize[_0x27ba2c('0x3')],'unique':_0x27ba2c('0x4')},'apiKey':{'type':Sequelize[_0x27ba2c('0x3')]},'remoteUri':{'type':Sequelize['STRING'],'unique':_0x27ba2c('0x2')},'serverUrl':{'type':Sequelize[_0x27ba2c('0x3')]}}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js index 1437e6e..77eb2a4 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.controller.js @@ -1 +1 @@ -const a268_0x2dd7=['slice','merge','create','show','email','AccountId','../../components/integrations/configuration','Descriptions','rows','update','attributes','includeAll','Token\x20token=','fields','apiKey','getFields,\x20%s,\x20%s,\x20%s','key','keys','include','FreshsalesConfiguration','count','intersection','offset','query','map','VIRTUAL','channel','destroy','pick','Requested\x20Resource\x20not\x20Found','api','index','undefined','%s%s','limit','body','getConfigurations','FreshsalesField','length','options','stringify','FreshsalesAccount','format','Wrong\x20credentials','filters','model','end','../../components/parsers/qs','username','../../config/logger','where','GET','sequelize','rawAttributes','findOne','nolimit','sort','findAll','json','catch','type','addConfiguration','status','util','send','remoteUri','../../mysqldb','test','params','filter','fieldName','order','lastIndexOf','error','name','set','getFields','statusCode','getSubjects','then','request-promise-native'];(function(_0x38d511,_0x2dd72a){const _0xecfff7=function(_0x4a351d){while(--_0x4a351d){_0x38d511['push'](_0x38d511['shift']());}};_0xecfff7(++_0x2dd72a);}(a268_0x2dd7,0x128));const a268_0xecff=function(_0x38d511,_0x2dd72a){_0x38d511=_0x38d511-0x0;let _0xecfff7=a268_0x2dd7[_0x38d511];return _0xecfff7;};const _0x3c11a8=a268_0xecff;'use strict';const rp=require(_0x3c11a8('0x1b')),util=require(_0x3c11a8('0xa')),_=require('lodash'),qs=require(_0x3c11a8('0x4b')),logger=require(_0x3c11a8('0x4d'))(_0x3c11a8('0x3a')),db=require(_0x3c11a8('0xd'))['db'],{Op}=require(_0x3c11a8('0x50')),integrations=require(_0x3c11a8('0x22'));function respondWithResult(_0x4a351d,_0x9752f9){return _0x9752f9=_0x9752f9||0xc8,function(_0x301bfc){const _0x4431e5=a268_0xecff;if(_0x301bfc)return _0x4a351d['status'](_0x9752f9)[_0x4431e5('0x5')](_0x301bfc);};}function respondWithFilteredResult(_0x11501b,_0x4864c5){return function(_0x1f4720){const _0x284293=a268_0xecff;if(_0x1f4720){const _0x11627e=_0x1f4720['count'],_0x3338a4=_0x4864c5['offset'];let _0x2aad97=_0x4864c5['offset']+_0x4864c5[_0x284293('0x3e')],_0x4a0b47;return _0x2aad97>=_0x11627e?(_0x2aad97=_0x11627e,_0x4a0b47=0xc8):_0x4a0b47=0xce,_0x11501b[_0x284293('0x9')](_0x4a0b47),_0x11501b[_0x284293('0x16')]('Content-Range',_0x3338a4+'-'+_0x2aad97+'/'+_0x11627e)[_0x284293('0x5')](_0x1f4720);}return null;};}function saveUpdates(_0x242a31){return function(_0xea67fc){if(_0xea67fc)return _0xea67fc['update'](_0x242a31)['then'](function(_0x4d2cfe){return _0x4d2cfe;});return null;};}function removeEntity(_0x1eb475){return function(_0x3635c3){const _0x426f3f=a268_0xecff;if(_0x3635c3)return _0x3635c3[_0x426f3f('0x37')]()[_0x426f3f('0x1a')](function(){const _0x3f2fdb=_0x426f3f;_0x1eb475[_0x3f2fdb('0x9')](0xcc)[_0x3f2fdb('0x4a')]();});};}function handleEntityNotFound(_0x1ac656){return function(_0x30a583){return!_0x30a583&&_0x1ac656['sendStatus'](0x194),_0x30a583;};}function handleError(_0x3fe696,_0x4fc85d){return _0x4fc85d=_0x4fc85d||0x1f4,function(_0x5e0a67){const _0x2bfccd=a268_0xecff;logger[_0x2bfccd('0x14')](_0x5e0a67['stack']),_0x5e0a67[_0x2bfccd('0x15')]&&delete _0x5e0a67[_0x2bfccd('0x15')],_0x3fe696[_0x2bfccd('0x9')](_0x4fc85d)[_0x2bfccd('0xb')](_0x5e0a67);};}exports[_0x3c11a8('0x3b')]=function(_0x5e8d8f,_0x40d185){const _0x327d22=_0x3c11a8;let _0x1e868f={};const _0xd16ba7={},_0x9c4f72={'count':0x0,'rows':[]},_0x2aefc6=_[_0x327d22('0x34')](db['FreshsalesAccount'][_0x327d22('0x0')],function(_0x655f22){const _0x7a0da9=_0x327d22;return{'name':_0x655f22[_0x7a0da9('0x11')],'type':_0x655f22['type'][_0x7a0da9('0x2c')]};});_0xd16ba7['model']=_[_0x327d22('0x34')](_0x2aefc6,'name'),_0xd16ba7[_0x327d22('0x33')]=_[_0x327d22('0x2d')](_0x5e8d8f[_0x327d22('0x33')]),_0xd16ba7['filters']=_[_0x327d22('0x31')](_0xd16ba7['model'],_0xd16ba7[_0x327d22('0x33')]),_0x1e868f['attributes']=_[_0x327d22('0x31')](_0xd16ba7[_0x327d22('0x49')],qs[_0x327d22('0x29')](_0x5e8d8f['query'][_0x327d22('0x29')])),_0x1e868f[_0x327d22('0x26')]=_0x1e868f[_0x327d22('0x26')][_0x327d22('0x42')]?_0x1e868f[_0x327d22('0x26')]:_0xd16ba7[_0x327d22('0x49')];typeof _0x5e8d8f[_0x327d22('0x33')][_0x327d22('0x2')]===_0x327d22('0x3c')&&(_0x1e868f['limit']=qs[_0x327d22('0x3e')](_0x5e8d8f['query']['limit']),_0x1e868f[_0x327d22('0x32')]=qs['offset'](_0x5e8d8f[_0x327d22('0x33')]['offset']));_0x1e868f[_0x327d22('0x12')]=qs[_0x327d22('0x3')](_0x5e8d8f[_0x327d22('0x33')][_0x327d22('0x3')]),_0x1e868f[_0x327d22('0x4e')]=qs[_0x327d22('0x48')](_[_0x327d22('0x38')](_0x5e8d8f[_0x327d22('0x33')],_0xd16ba7[_0x327d22('0x48')]),_0x2aefc6);_0x5e8d8f[_0x327d22('0x33')][_0x327d22('0x10')]&&(_0x1e868f[_0x327d22('0x4e')]=_[_0x327d22('0x1d')](_0x1e868f['where'],{[Op['or']]:_['map'](_0x2aefc6,function(_0x5a1b25){const _0x329fbe=_0x327d22;if(_0x5a1b25[_0x329fbe('0x7')]!==_0x329fbe('0x35')){const _0x37344c={};return _0x37344c[_0x5a1b25['name']]={[Op['like']]:'%'+_0x5e8d8f[_0x329fbe('0x33')][_0x329fbe('0x10')]+'%'},_0x37344c;}})}));_0x1e868f=_[_0x327d22('0x1d')]({},_0x1e868f,_0x5e8d8f['options']);const _0x334756={'where':_0x1e868f[_0x327d22('0x4e')]};return db[_0x327d22('0x45')][_0x327d22('0x30')](_0x334756)[_0x327d22('0x1a')](function(_0x327443){const _0xd1905b=_0x327d22;return _0x9c4f72[_0xd1905b('0x30')]=_0x327443,_0x5e8d8f[_0xd1905b('0x33')][_0xd1905b('0x27')]&&(_0x1e868f[_0xd1905b('0x2e')]=[{'all':!![]}]),db[_0xd1905b('0x45')][_0xd1905b('0x4')](_0x1e868f);})['then'](function(_0x5af7cf){const _0x596d09=_0x327d22;return _0x9c4f72[_0x596d09('0x24')]=_0x5af7cf,_0x9c4f72;})[_0x327d22('0x1a')](respondWithFilteredResult(_0x40d185,_0x1e868f))[_0x327d22('0x6')](handleError(_0x40d185,null));},exports[_0x3c11a8('0x1f')]=function(_0x26e78c,_0x101a03){const _0x2a854d=_0x3c11a8;let _0xdfe28c={'raw':![],'where':{'id':_0x26e78c[_0x2a854d('0xf')]['id']}};const _0x41d1f8={};return _0x41d1f8[_0x2a854d('0x49')]=_[_0x2a854d('0x2d')](db['FreshsalesAccount']['rawAttributes']),_0x41d1f8[_0x2a854d('0x33')]=_[_0x2a854d('0x2d')](_0x26e78c[_0x2a854d('0x33')]),_0x41d1f8['filters']=_[_0x2a854d('0x31')](_0x41d1f8['model'],_0x41d1f8[_0x2a854d('0x33')]),_0xdfe28c[_0x2a854d('0x26')]=_[_0x2a854d('0x31')](_0x41d1f8[_0x2a854d('0x49')],qs['fields'](_0x26e78c[_0x2a854d('0x33')][_0x2a854d('0x29')])),_0xdfe28c[_0x2a854d('0x26')]=_0xdfe28c[_0x2a854d('0x26')]['length']?_0xdfe28c[_0x2a854d('0x26')]:_0x41d1f8['model'],_0x26e78c[_0x2a854d('0x33')][_0x2a854d('0x27')]&&(_0xdfe28c[_0x2a854d('0x2e')]=[{'all':!![]}]),_0xdfe28c=_[_0x2a854d('0x1d')]({},_0xdfe28c,_0x26e78c[_0x2a854d('0x43')]),db[_0x2a854d('0x45')]['findOne'](_0xdfe28c)['then'](handleEntityNotFound(_0x101a03,null))[_0x2a854d('0x1a')](respondWithResult(_0x101a03,null))[_0x2a854d('0x6')](handleError(_0x101a03,null));},exports[_0x3c11a8('0x1e')]=function(_0x5dafc3,_0x1d14c8){const _0x2832d3=_0x3c11a8;return db['FreshsalesAccount'][_0x2832d3('0x1e')](_0x5dafc3['body'],{})[_0x2832d3('0x1a')](respondWithResult(_0x1d14c8,0xc9))[_0x2832d3('0x6')](handleError(_0x1d14c8,null));},exports[_0x3c11a8('0x25')]=function(_0x33568f,_0x4252e1){const _0x135905=_0x3c11a8;return _0x33568f[_0x135905('0x3f')]['id']&&delete _0x33568f[_0x135905('0x3f')]['id'],db[_0x135905('0x45')][_0x135905('0x1')]({'where':{'id':_0x33568f[_0x135905('0xf')]['id']}})['then'](handleEntityNotFound(_0x4252e1,null))[_0x135905('0x1a')](saveUpdates(_0x33568f[_0x135905('0x3f')],null))[_0x135905('0x1a')](respondWithResult(_0x4252e1,null))[_0x135905('0x6')](handleError(_0x4252e1,null));},exports[_0x3c11a8('0x37')]=function(_0xa35906,_0xa96af9){const _0x341741=_0x3c11a8;return db[_0x341741('0x45')]['findOne']({'where':{'id':_0xa35906[_0x341741('0xf')]['id']}})[_0x341741('0x1a')](handleEntityNotFound(_0xa96af9,null))[_0x341741('0x1a')](removeEntity(_0xa96af9,null))[_0x341741('0x6')](handleError(_0xa96af9,null));},exports[_0x3c11a8('0x40')]=function(_0x434898,_0x5230c6){const _0x54f669=_0x3c11a8;let _0x38bdb3={};const _0x5a545f={};let _0x261abd,_0x234dd1;return db['FreshsalesAccount'][_0x54f669('0x1')]({'where':{'id':_0x434898['params']['id']}})[_0x54f669('0x1a')](handleEntityNotFound(_0x5230c6,null))[_0x54f669('0x1a')](function(_0x14c8ac){const _0x262da0=_0x54f669;if(_0x14c8ac)return _0x261abd=_0x14c8ac,_0x5a545f[_0x262da0('0x49')]=_[_0x262da0('0x2d')](db['FreshsalesConfiguration'][_0x262da0('0x0')]),_0x5a545f[_0x262da0('0x33')]=_[_0x262da0('0x2d')](_0x434898['query']),_0x5a545f[_0x262da0('0x48')]=_[_0x262da0('0x31')](_0x5a545f[_0x262da0('0x49')],_0x5a545f['query']),_0x38bdb3[_0x262da0('0x26')]=_[_0x262da0('0x31')](_0x5a545f['model'],qs[_0x262da0('0x29')](_0x434898[_0x262da0('0x33')][_0x262da0('0x29')])),_0x38bdb3[_0x262da0('0x26')]=_0x38bdb3[_0x262da0('0x26')]['length']?_0x38bdb3[_0x262da0('0x26')]:_0x5a545f[_0x262da0('0x49')],_0x38bdb3[_0x262da0('0x12')]=qs[_0x262da0('0x3')](_0x434898[_0x262da0('0x33')][_0x262da0('0x3')]),_0x38bdb3[_0x262da0('0x4e')]=qs['filters'](_[_0x262da0('0x38')](_0x434898[_0x262da0('0x33')],_0x5a545f['filters'])),_0x434898[_0x262da0('0x33')]['filter']&&(_0x38bdb3[_0x262da0('0x4e')]=_[_0x262da0('0x1d')](_0x38bdb3[_0x262da0('0x4e')],{[Op['or']]:_[_0x262da0('0x34')](_0x38bdb3[_0x262da0('0x26')],function(_0x445857){const _0x37fcc1=_0x262da0,_0xf41c31={};return _0xf41c31[_0x445857]={[Op['like']]:'%'+_0x434898[_0x37fcc1('0x33')]['filter']+'%'},_0xf41c31;})})),_0x38bdb3=_[_0x262da0('0x1d')]({},_0x38bdb3,_0x434898[_0x262da0('0x43')]),_0x261abd[_0x262da0('0x40')](_0x38bdb3);})[_0x54f669('0x1a')](function(_0x457af4){const _0x1d51a3=_0x54f669;if(_0x457af4)return _0x234dd1=_0x457af4[_0x1d51a3('0x42')],typeof _0x434898[_0x1d51a3('0x33')][_0x1d51a3('0x2')]===_0x1d51a3('0x3c')&&(_0x38bdb3[_0x1d51a3('0x3e')]=qs['limit'](_0x434898[_0x1d51a3('0x33')][_0x1d51a3('0x3e')]),_0x38bdb3['offset']=qs['offset'](_0x434898[_0x1d51a3('0x33')][_0x1d51a3('0x32')])),_0x261abd[_0x1d51a3('0x40')](_0x38bdb3);})[_0x54f669('0x1a')](function(_0x207c92){if(_0x207c92)return _0x207c92?{'count':_0x234dd1,'rows':_0x207c92}:null;})['then'](respondWithResult(_0x5230c6,null))[_0x54f669('0x6')](handleError(_0x5230c6,null));},exports[_0x3c11a8('0x8')]=function(_0x3a870b,_0x3c61b8){const _0x586a91=_0x3c11a8;return _0x3a870b[_0x586a91('0x3f')]['id']&&delete _0x3a870b[_0x586a91('0x3f')]['id'],db[_0x586a91('0x45')]['findOne']({'where':{'id':_0x3a870b[_0x586a91('0xf')]['id']}})[_0x586a91('0x1a')](handleEntityNotFound(_0x3c61b8,null))[_0x586a91('0x1a')](function(_0x1d57f6){const _0x32a19c=_0x586a91;if(_0x1d57f6)return _0x3a870b['body'][_0x32a19c('0x21')]=_0x1d57f6['id'],_0x3a870b['body']['Subjects']=integrations[_0x32a19c('0x19')](_0x3a870b[_0x32a19c('0x3f')][_0x32a19c('0x36')],_0x3a870b[_0x32a19c('0x3f')][_0x32a19c('0x7')]),_0x3a870b[_0x32a19c('0x3f')][_0x32a19c('0x23')]=integrations['getDescriptions'](_0x3a870b['body'][_0x32a19c('0x36')],_0x3a870b[_0x32a19c('0x3f')][_0x32a19c('0x7')]),db[_0x32a19c('0x2f')]['create'](_0x3a870b[_0x32a19c('0x3f')],{'include':[{'model':db[_0x32a19c('0x41')],'as':'Subjects'},{'model':db['FreshsalesField'],'as':_0x32a19c('0x23')}]});return null;})[_0x586a91('0x1a')](respondWithResult(_0x3c61b8,null))[_0x586a91('0x6')](handleError(_0x3c61b8,null));},exports[_0x3c11a8('0x17')]=function(_0x229946,_0xd799c3){const _0x25e9c3=_0x3c11a8;let _0x310bb1='',_0x2e0087='';return db['FreshsalesAccount'][_0x25e9c3('0x1')]({'where':{'id':_0x229946[_0x25e9c3('0xf')]['id']},'attributes':['id','username',_0x25e9c3('0xc'),_0x25e9c3('0x2a')]})[_0x25e9c3('0x1a')](handleEntityNotFound(_0xd799c3,null))['then'](function(_0x261c2b){const _0x47cde4=_0x25e9c3;if(_0x261c2b){_0x2e0087=_0x261c2b[_0x47cde4('0x4c')],_0x310bb1=_0x261c2b['remoteUri'];const _0xa5153e=_0x261c2b[_0x47cde4('0xc')][_0x47cde4('0x1c')](-0x1);return _0xa5153e==='/'&&(_0x310bb1=_0x310bb1['substring'](0x0,_0x310bb1[_0x47cde4('0x13')](_0xa5153e))),rp({'method':_0x47cde4('0x4f'),'uri':util[_0x47cde4('0x46')](_0x47cde4('0x3d'),_0x310bb1,'/api/selector/owners'),'headers':{'Authorization':_0x47cde4('0x28')+_0x261c2b[_0x47cde4('0x2a')]},'json':!![]});}})[_0x25e9c3('0x1a')](function(_0x3d4f9b){const _0x5104dd=_0x25e9c3;if(_0x3d4f9b){const _0x3e9a25=_0x3d4f9b['users'];let _0x20f0ef=![],_0x493a20=null;for(_0x493a20=0x0;_0x493a20<_0x3e9a25['length'];_0x493a20++){_0x3e9a25[_0x493a20][_0x5104dd('0x20')]===_0x2e0087&&(_0x20f0ef=!![]);}if(_0x20f0ef)return!![];else throw new Error({'statusCode':0x194,'message':_0x5104dd('0x39')});}})[_0x25e9c3('0x1a')](respondWithResult(_0xd799c3,null))['catch'](function(_0x15b33a){const _0x4a6507=_0x25e9c3;let _0x48304b=_0x229946[_0x4a6507('0x33')][_0x4a6507('0xe')]?0x1f4:_0x15b33a[_0x4a6507('0x18')]||0x1f4;logger[_0x4a6507('0x14')](_0x4a6507('0x2b'),_0x4a6507('0x17'),_0x48304b,JSON[_0x4a6507('0x44')](_0x15b33a)),delete _0x15b33a[_0x4a6507('0x15')],_0x48304b===0x191&&(_0x48304b=0x190),_0xd799c3['status'](_0x48304b)[_0x4a6507('0xb')](_0x229946['query'][_0x4a6507('0xe')]?{'message':_0x4a6507('0x47'),'statusCode':_0x15b33a[_0x4a6507('0x18')]}:_0x15b33a);});}; \ No newline at end of file +const a268_0x7434=['where','attributes','/api/selector/owners','intersection','nolimit','params','FreshsalesField','remoteUri','json','destroy','stack','model','getDescriptions','Requested\x20Resource\x20not\x20Found','filters','fieldName','sort','addConfiguration','../../components/integrations/configuration','includeAll','Descriptions','length','format','filter','sendStatus','username','slice','key','options','send','like','util','merge','error','Content-Range','VIRTUAL','Token\x20token=','lastIndexOf','set','rawAttributes','Subjects','name','GET','order','../../mysqldb','request-promise-native','update','statusCode','channel','count','end','type','catch','limit','getConfigurations','offset','undefined','query','../../components/parsers/qs','body','FreshsalesAccount','findOne','FreshsalesConfiguration','getSubjects','show','status','include','stringify','then','fields','../../config/logger','test','Wrong\x20credentials','map','pick','keys','AccountId','create'];(function(_0x4ff073,_0x7434a0){const _0x25cbe1=function(_0x388d41){while(--_0x388d41){_0x4ff073['push'](_0x4ff073['shift']());}};_0x25cbe1(++_0x7434a0);}(a268_0x7434,0x1c1));const a268_0x25cb=function(_0x4ff073,_0x7434a0){_0x4ff073=_0x4ff073-0x0;let _0x25cbe1=a268_0x7434[_0x4ff073];return _0x25cbe1;};const _0x245e70=a268_0x25cb;'use strict';const rp=require(_0x245e70('0x40')),util=require(_0x245e70('0x32')),_=require('lodash'),qs=require(_0x245e70('0x4d')),logger=require(_0x245e70('0xb'))('api'),db=require(_0x245e70('0x3f'))['db'],{Op}=require('sequelize'),integrations=require(_0x245e70('0x25'));function respondWithResult(_0x388d41,_0x151d9b){return _0x151d9b=_0x151d9b||0xc8,function(_0x5bb648){const _0x37c933=a268_0x25cb;if(_0x5bb648)return _0x388d41[_0x37c933('0x6')](_0x151d9b)[_0x37c933('0x1b')](_0x5bb648);};}function respondWithFilteredResult(_0x13375b,_0x10e6a0){return function(_0x119072){const _0x4f6ff0=a268_0x25cb;if(_0x119072){const _0x190222=_0x119072[_0x4f6ff0('0x44')],_0x397f8c=_0x10e6a0[_0x4f6ff0('0x4a')];let _0x294c79=_0x10e6a0['offset']+_0x10e6a0[_0x4f6ff0('0x48')],_0x424c33;return _0x294c79>=_0x190222?(_0x294c79=_0x190222,_0x424c33=0xc8):_0x424c33=0xce,_0x13375b[_0x4f6ff0('0x6')](_0x424c33),_0x13375b[_0x4f6ff0('0x39')](_0x4f6ff0('0x35'),_0x397f8c+'-'+_0x294c79+'/'+_0x190222)[_0x4f6ff0('0x1b')](_0x119072);}return null;};}function saveUpdates(_0xc6e439){return function(_0x377b13){const _0x2baa23=a268_0x25cb;if(_0x377b13)return _0x377b13[_0x2baa23('0x41')](_0xc6e439)['then'](function(_0x238a96){return _0x238a96;});return null;};}function removeEntity(_0xde6de3){return function(_0x122e7a){const _0x5e3b79=a268_0x25cb;if(_0x122e7a)return _0x122e7a[_0x5e3b79('0x1c')]()[_0x5e3b79('0x9')](function(){const _0x2a90af=_0x5e3b79;_0xde6de3[_0x2a90af('0x6')](0xcc)[_0x2a90af('0x45')]();});};}function handleEntityNotFound(_0x5f1bd8){return function(_0x18d191){const _0x267691=a268_0x25cb;return!_0x18d191&&_0x5f1bd8[_0x267691('0x2b')](0x194),_0x18d191;};}function handleError(_0x131e5d,_0x331dbc){return _0x331dbc=_0x331dbc||0x1f4,function(_0x1db91c){const _0x59229e=a268_0x25cb;logger[_0x59229e('0x34')](_0x1db91c[_0x59229e('0x1d')]),_0x1db91c[_0x59229e('0x3c')]&&delete _0x1db91c[_0x59229e('0x3c')],_0x131e5d['status'](_0x331dbc)[_0x59229e('0x30')](_0x1db91c);};}exports['index']=function(_0x295b5a,_0x5b0fa3){const _0x4f2a09=_0x245e70;let _0x26b3d8={};const _0x258968={},_0x3b027d={'count':0x0,'rows':[]},_0x1199a8=_['map'](db[_0x4f2a09('0x1')][_0x4f2a09('0x3a')],function(_0x480c8c){const _0xda3b24=_0x4f2a09;return{'name':_0x480c8c[_0xda3b24('0x22')],'type':_0x480c8c['type'][_0xda3b24('0x2e')]};});_0x258968[_0x4f2a09('0x1e')]=_[_0x4f2a09('0xe')](_0x1199a8,'name'),_0x258968[_0x4f2a09('0x4c')]=_[_0x4f2a09('0x10')](_0x295b5a[_0x4f2a09('0x4c')]),_0x258968[_0x4f2a09('0x21')]=_[_0x4f2a09('0x16')](_0x258968[_0x4f2a09('0x1e')],_0x258968[_0x4f2a09('0x4c')]),_0x26b3d8[_0x4f2a09('0x14')]=_[_0x4f2a09('0x16')](_0x258968['model'],qs['fields'](_0x295b5a[_0x4f2a09('0x4c')][_0x4f2a09('0xa')])),_0x26b3d8[_0x4f2a09('0x14')]=_0x26b3d8[_0x4f2a09('0x14')][_0x4f2a09('0x28')]?_0x26b3d8['attributes']:_0x258968[_0x4f2a09('0x1e')];typeof _0x295b5a[_0x4f2a09('0x4c')][_0x4f2a09('0x17')]===_0x4f2a09('0x4b')&&(_0x26b3d8[_0x4f2a09('0x48')]=qs[_0x4f2a09('0x48')](_0x295b5a[_0x4f2a09('0x4c')][_0x4f2a09('0x48')]),_0x26b3d8['offset']=qs['offset'](_0x295b5a['query'][_0x4f2a09('0x4a')]));_0x26b3d8[_0x4f2a09('0x3e')]=qs[_0x4f2a09('0x23')](_0x295b5a['query'][_0x4f2a09('0x23')]),_0x26b3d8[_0x4f2a09('0x13')]=qs['filters'](_[_0x4f2a09('0xf')](_0x295b5a[_0x4f2a09('0x4c')],_0x258968[_0x4f2a09('0x21')]),_0x1199a8);_0x295b5a[_0x4f2a09('0x4c')]['filter']&&(_0x26b3d8[_0x4f2a09('0x13')]=_[_0x4f2a09('0x33')](_0x26b3d8['where'],{[Op['or']]:_[_0x4f2a09('0xe')](_0x1199a8,function(_0x4b8e3f){const _0x3c3afb=_0x4f2a09;if(_0x4b8e3f['type']!==_0x3c3afb('0x36')){const _0x31f4b2={};return _0x31f4b2[_0x4b8e3f['name']]={[Op['like']]:'%'+_0x295b5a['query'][_0x3c3afb('0x2a')]+'%'},_0x31f4b2;}})}));_0x26b3d8=_[_0x4f2a09('0x33')]({},_0x26b3d8,_0x295b5a[_0x4f2a09('0x2f')]);const _0x8a484={'where':_0x26b3d8['where']};return db['FreshsalesAccount'][_0x4f2a09('0x44')](_0x8a484)[_0x4f2a09('0x9')](function(_0x3b75c5){const _0x39b8a0=_0x4f2a09;return _0x3b027d[_0x39b8a0('0x44')]=_0x3b75c5,_0x295b5a['query']['includeAll']&&(_0x26b3d8[_0x39b8a0('0x7')]=[{'all':!![]}]),db[_0x39b8a0('0x1')]['findAll'](_0x26b3d8);})[_0x4f2a09('0x9')](function(_0x5d12a4){return _0x3b027d['rows']=_0x5d12a4,_0x3b027d;})['then'](respondWithFilteredResult(_0x5b0fa3,_0x26b3d8))[_0x4f2a09('0x47')](handleError(_0x5b0fa3,null));},exports[_0x245e70('0x5')]=function(_0xe03fab,_0x26b985){const _0x495a48=_0x245e70;let _0x4569f5={'raw':![],'where':{'id':_0xe03fab['params']['id']}};const _0x445c48={};return _0x445c48[_0x495a48('0x1e')]=_[_0x495a48('0x10')](db[_0x495a48('0x1')][_0x495a48('0x3a')]),_0x445c48[_0x495a48('0x4c')]=_[_0x495a48('0x10')](_0xe03fab['query']),_0x445c48[_0x495a48('0x21')]=_[_0x495a48('0x16')](_0x445c48[_0x495a48('0x1e')],_0x445c48[_0x495a48('0x4c')]),_0x4569f5['attributes']=_[_0x495a48('0x16')](_0x445c48['model'],qs[_0x495a48('0xa')](_0xe03fab[_0x495a48('0x4c')][_0x495a48('0xa')])),_0x4569f5[_0x495a48('0x14')]=_0x4569f5['attributes'][_0x495a48('0x28')]?_0x4569f5[_0x495a48('0x14')]:_0x445c48['model'],_0xe03fab[_0x495a48('0x4c')][_0x495a48('0x26')]&&(_0x4569f5[_0x495a48('0x7')]=[{'all':!![]}]),_0x4569f5=_[_0x495a48('0x33')]({},_0x4569f5,_0xe03fab[_0x495a48('0x2f')]),db[_0x495a48('0x1')][_0x495a48('0x2')](_0x4569f5)[_0x495a48('0x9')](handleEntityNotFound(_0x26b985,null))[_0x495a48('0x9')](respondWithResult(_0x26b985,null))['catch'](handleError(_0x26b985,null));},exports[_0x245e70('0x12')]=function(_0xbc1338,_0x32ef64){const _0x376b8d=_0x245e70;return db[_0x376b8d('0x1')][_0x376b8d('0x12')](_0xbc1338[_0x376b8d('0x0')],{})[_0x376b8d('0x9')](respondWithResult(_0x32ef64,0xc9))['catch'](handleError(_0x32ef64,null));},exports[_0x245e70('0x41')]=function(_0x521bf5,_0x4cd550){const _0x26c07d=_0x245e70;return _0x521bf5[_0x26c07d('0x0')]['id']&&delete _0x521bf5[_0x26c07d('0x0')]['id'],db['FreshsalesAccount'][_0x26c07d('0x2')]({'where':{'id':_0x521bf5[_0x26c07d('0x18')]['id']}})['then'](handleEntityNotFound(_0x4cd550,null))[_0x26c07d('0x9')](saveUpdates(_0x521bf5[_0x26c07d('0x0')],null))[_0x26c07d('0x9')](respondWithResult(_0x4cd550,null))[_0x26c07d('0x47')](handleError(_0x4cd550,null));},exports[_0x245e70('0x1c')]=function(_0x44c306,_0x57c3fb){const _0x42c994=_0x245e70;return db[_0x42c994('0x1')]['findOne']({'where':{'id':_0x44c306[_0x42c994('0x18')]['id']}})[_0x42c994('0x9')](handleEntityNotFound(_0x57c3fb,null))[_0x42c994('0x9')](removeEntity(_0x57c3fb,null))['catch'](handleError(_0x57c3fb,null));},exports[_0x245e70('0x49')]=function(_0x3da1f6,_0x5ee791){const _0x4b6287=_0x245e70;let _0x348ff7={};const _0x6ee9a6={};let _0x5e27d1,_0x1130ca;return db['FreshsalesAccount'][_0x4b6287('0x2')]({'where':{'id':_0x3da1f6[_0x4b6287('0x18')]['id']}})[_0x4b6287('0x9')](handleEntityNotFound(_0x5ee791,null))[_0x4b6287('0x9')](function(_0x20d73b){const _0x3c2635=_0x4b6287;if(_0x20d73b)return _0x5e27d1=_0x20d73b,_0x6ee9a6[_0x3c2635('0x1e')]=_[_0x3c2635('0x10')](db[_0x3c2635('0x3')]['rawAttributes']),_0x6ee9a6[_0x3c2635('0x4c')]=_[_0x3c2635('0x10')](_0x3da1f6[_0x3c2635('0x4c')]),_0x6ee9a6[_0x3c2635('0x21')]=_[_0x3c2635('0x16')](_0x6ee9a6[_0x3c2635('0x1e')],_0x6ee9a6[_0x3c2635('0x4c')]),_0x348ff7['attributes']=_[_0x3c2635('0x16')](_0x6ee9a6[_0x3c2635('0x1e')],qs[_0x3c2635('0xa')](_0x3da1f6[_0x3c2635('0x4c')]['fields'])),_0x348ff7[_0x3c2635('0x14')]=_0x348ff7[_0x3c2635('0x14')]['length']?_0x348ff7[_0x3c2635('0x14')]:_0x6ee9a6['model'],_0x348ff7['order']=qs[_0x3c2635('0x23')](_0x3da1f6[_0x3c2635('0x4c')][_0x3c2635('0x23')]),_0x348ff7[_0x3c2635('0x13')]=qs[_0x3c2635('0x21')](_[_0x3c2635('0xf')](_0x3da1f6[_0x3c2635('0x4c')],_0x6ee9a6[_0x3c2635('0x21')])),_0x3da1f6[_0x3c2635('0x4c')][_0x3c2635('0x2a')]&&(_0x348ff7['where']=_[_0x3c2635('0x33')](_0x348ff7[_0x3c2635('0x13')],{[Op['or']]:_[_0x3c2635('0xe')](_0x348ff7[_0x3c2635('0x14')],function(_0x299164){const _0x500347=_0x3c2635,_0x178a07={};return _0x178a07[_0x299164]={[Op[_0x500347('0x31')]]:'%'+_0x3da1f6[_0x500347('0x4c')][_0x500347('0x2a')]+'%'},_0x178a07;})})),_0x348ff7=_[_0x3c2635('0x33')]({},_0x348ff7,_0x3da1f6[_0x3c2635('0x2f')]),_0x5e27d1[_0x3c2635('0x49')](_0x348ff7);})[_0x4b6287('0x9')](function(_0x44c036){const _0x53906e=_0x4b6287;if(_0x44c036)return _0x1130ca=_0x44c036['length'],typeof _0x3da1f6['query'][_0x53906e('0x17')]===_0x53906e('0x4b')&&(_0x348ff7[_0x53906e('0x48')]=qs[_0x53906e('0x48')](_0x3da1f6[_0x53906e('0x4c')]['limit']),_0x348ff7[_0x53906e('0x4a')]=qs[_0x53906e('0x4a')](_0x3da1f6[_0x53906e('0x4c')][_0x53906e('0x4a')])),_0x5e27d1['getConfigurations'](_0x348ff7);})[_0x4b6287('0x9')](function(_0x49f217){if(_0x49f217)return _0x49f217?{'count':_0x1130ca,'rows':_0x49f217}:null;})[_0x4b6287('0x9')](respondWithResult(_0x5ee791,null))[_0x4b6287('0x47')](handleError(_0x5ee791,null));},exports[_0x245e70('0x24')]=function(_0x33ab9e,_0x723d67){const _0x1042df=_0x245e70;return _0x33ab9e['body']['id']&&delete _0x33ab9e[_0x1042df('0x0')]['id'],db[_0x1042df('0x1')][_0x1042df('0x2')]({'where':{'id':_0x33ab9e[_0x1042df('0x18')]['id']}})['then'](handleEntityNotFound(_0x723d67,null))['then'](function(_0x564fbb){const _0x17ce55=_0x1042df;if(_0x564fbb)return _0x33ab9e[_0x17ce55('0x0')][_0x17ce55('0x11')]=_0x564fbb['id'],_0x33ab9e[_0x17ce55('0x0')][_0x17ce55('0x3b')]=integrations[_0x17ce55('0x4')](_0x33ab9e[_0x17ce55('0x0')][_0x17ce55('0x43')],_0x33ab9e[_0x17ce55('0x0')][_0x17ce55('0x46')]),_0x33ab9e[_0x17ce55('0x0')][_0x17ce55('0x27')]=integrations[_0x17ce55('0x1f')](_0x33ab9e[_0x17ce55('0x0')][_0x17ce55('0x43')],_0x33ab9e[_0x17ce55('0x0')][_0x17ce55('0x46')]),db[_0x17ce55('0x3')][_0x17ce55('0x12')](_0x33ab9e['body'],{'include':[{'model':db[_0x17ce55('0x19')],'as':'Subjects'},{'model':db[_0x17ce55('0x19')],'as':_0x17ce55('0x27')}]});return null;})[_0x1042df('0x9')](respondWithResult(_0x723d67,null))['catch'](handleError(_0x723d67,null));},exports['getFields']=function(_0x392102,_0x187935){const _0x59a5d2=_0x245e70;let _0x2c9b59='',_0x1260ee='';return db['FreshsalesAccount']['findOne']({'where':{'id':_0x392102[_0x59a5d2('0x18')]['id']},'attributes':['id',_0x59a5d2('0x2c'),_0x59a5d2('0x1a'),'apiKey']})['then'](handleEntityNotFound(_0x187935,null))[_0x59a5d2('0x9')](function(_0xadeb18){const _0x1ae50b=_0x59a5d2;if(_0xadeb18){_0x1260ee=_0xadeb18[_0x1ae50b('0x2c')],_0x2c9b59=_0xadeb18['remoteUri'];const _0x1706b0=_0xadeb18[_0x1ae50b('0x1a')][_0x1ae50b('0x2d')](-0x1);return _0x1706b0==='/'&&(_0x2c9b59=_0x2c9b59['substring'](0x0,_0x2c9b59[_0x1ae50b('0x38')](_0x1706b0))),rp({'method':_0x1ae50b('0x3d'),'uri':util[_0x1ae50b('0x29')]('%s%s',_0x2c9b59,_0x1ae50b('0x15')),'headers':{'Authorization':_0x1ae50b('0x37')+_0xadeb18['apiKey']},'json':!![]});}})['then'](function(_0x20b5a1){const _0x2f3f51=_0x59a5d2;if(_0x20b5a1){const _0x5a2bbe=_0x20b5a1['users'];let _0x14cb88=![],_0x42c841=null;for(_0x42c841=0x0;_0x42c841<_0x5a2bbe[_0x2f3f51('0x28')];_0x42c841++){_0x5a2bbe[_0x42c841]['email']===_0x1260ee&&(_0x14cb88=!![]);}if(_0x14cb88)return!![];else throw new Error({'statusCode':0x194,'message':_0x2f3f51('0x20')});}})[_0x59a5d2('0x9')](respondWithResult(_0x187935,null))[_0x59a5d2('0x47')](function(_0x4411ed){const _0x115028=_0x59a5d2;let _0x3c75d4=_0x392102['query'][_0x115028('0xc')]?0x1f4:_0x4411ed[_0x115028('0x42')]||0x1f4;logger[_0x115028('0x34')]('getFields,\x20%s,\x20%s,\x20%s','getFields',_0x3c75d4,JSON[_0x115028('0x8')](_0x4411ed)),delete _0x4411ed[_0x115028('0x3c')],_0x3c75d4===0x191&&(_0x3c75d4=0x190),_0x187935['status'](_0x3c75d4)[_0x115028('0x30')](_0x392102[_0x115028('0x4c')][_0x115028('0xc')]?{'message':_0x115028('0xd'),'statusCode':_0x4411ed['statusCode']}:_0x4411ed);});}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js index 7ae4d26..af119fe 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.model.js @@ -1 +1 @@ -const a269_0xd1f0=['./intFreshsalesAccount.attributes','FreshsalesAccount','exports','int_freshsales_accounts'];(function(_0x33fe4a,_0xd1f0cd){const _0x5d098d=function(_0x9a90b0){while(--_0x9a90b0){_0x33fe4a['push'](_0x33fe4a['shift']());}};_0x5d098d(++_0xd1f0cd);}(a269_0xd1f0,0x7b));const a269_0x5d09=function(_0x33fe4a,_0xd1f0cd){_0x33fe4a=_0x33fe4a-0x0;let _0x5d098d=a269_0xd1f0[_0x33fe4a];return _0x5d098d;};const _0x146af2=a269_0x5d09;'use strict';const attributes=require(_0x146af2('0x1'));module[_0x146af2('0x3')]=function(_0x9a90b0){const _0x542bb5=_0x146af2,_0x4b74e2=_0x9a90b0['define'](_0x542bb5('0x2'),attributes,{'tableName':_0x542bb5('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4b74e2;}; \ No newline at end of file +const a269_0x18da=['int_freshsales_accounts','define','FreshsalesAccount','./intFreshsalesAccount.attributes'];(function(_0x4d17c7,_0x18da2a){const _0x2d995f=function(_0x535809){while(--_0x535809){_0x4d17c7['push'](_0x4d17c7['shift']());}};_0x2d995f(++_0x18da2a);}(a269_0x18da,0xd1));const a269_0x2d99=function(_0x4d17c7,_0x18da2a){_0x4d17c7=_0x4d17c7-0x0;let _0x2d995f=a269_0x18da[_0x4d17c7];return _0x2d995f;};const _0x28da58=a269_0x2d99;'use strict';const attributes=require(_0x28da58('0x2'));module['exports']=function(_0x535809){const _0x2bad61=_0x28da58,_0x1d4a2a=_0x535809[_0x2bad61('0x0')](_0x2bad61('0x1'),attributes,{'tableName':_0x2bad61('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d4a2a;}; \ No newline at end of file diff --git a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js index 393c650..92f986b 100644 --- a/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js +++ b/server/api/intFreshsalesAccount/intFreshsalesAccount.rpc.js @@ -1 +1 @@ -const a270_0x5cab=['findOne','findAll','GetFreshsalesAccount','stringify','rpc','error','then','lodash','info','debug','catch','model','message','include','raw','attributes','where','map','ShowFreshsalesAccount','../../config/logger','options','../../mysqldb','FreshsalesAccount'];(function(_0x3ff9ba,_0x5cabca){const _0x2d391c=function(_0x1f9f6b){while(--_0x1f9f6b){_0x3ff9ba['push'](_0x3ff9ba['shift']());}};_0x2d391c(++_0x5cabca);}(a270_0x5cab,0x1e7));const a270_0x2d39=function(_0x3ff9ba,_0x5cabca){_0x3ff9ba=_0x3ff9ba-0x0;let _0x2d391c=a270_0x5cab[_0x3ff9ba];return _0x2d391c;};const _0x28447e=a270_0x2d39;'use strict';const _=require(_0x28447e('0x3')),db=require(_0x28447e('0x11'))['db'],logger=require(_0x28447e('0xf'))(_0x28447e('0x0'));exports[_0x28447e('0x15')]=function(_0x1f9f6b){const _0x575ba4=this;return new Promise(function(_0x172708,_0x3c709b){const _0x1be5c7=a270_0x2d39;return db[_0x1be5c7('0x12')][_0x1be5c7('0x14')]({'raw':_0x1f9f6b[_0x1be5c7('0x10')]?_0x1f9f6b[_0x1be5c7('0x10')][_0x1be5c7('0xa')]===undefined?!![]:![]:!![],'where':_0x1f9f6b[_0x1be5c7('0x10')]?_0x1f9f6b[_0x1be5c7('0x10')][_0x1be5c7('0xc')]||null:null,'attributes':_0x1f9f6b[_0x1be5c7('0x10')]?_0x1f9f6b['options'][_0x1be5c7('0xb')]||null:null,'limit':_0x1f9f6b[_0x1be5c7('0x10')]?_0x1f9f6b['options']['limit']||null:null,'include':_0x1f9f6b[_0x1be5c7('0x10')]?_0x1f9f6b[_0x1be5c7('0x10')][_0x1be5c7('0x9')]?_['map'](_0x1f9f6b[_0x1be5c7('0x10')]['include'],function(_0x397622){const _0x49f56b=_0x1be5c7;return{'model':db[_0x397622[_0x49f56b('0x7')]],'as':_0x397622['as'],'attributes':_0x397622['attributes'],'include':_0x397622['include']?_[_0x49f56b('0xd')](_0x397622[_0x49f56b('0x9')],function(_0x271c43){const _0xd14c16=_0x49f56b;return{'model':db[_0x271c43['model']],'as':_0x271c43['as'],'attributes':_0x271c43['attributes'],'include':_0x271c43[_0xd14c16('0x9')]?_['map'](_0x271c43[_0xd14c16('0x9')],function(_0x13b08c){const _0x341b2f=_0xd14c16;return{'model':db[_0x13b08c[_0x341b2f('0x7')]],'as':_0x13b08c['as'],'attributes':_0x13b08c[_0x341b2f('0xb')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4cda5f){const _0x5e950d=_0x1be5c7;logger['info'](_0x5e950d('0x15'),_0x1f9f6b),logger[_0x5e950d('0x5')]('GetFreshsalesAccount',_0x1f9f6b,JSON['stringify'](_0x4cda5f)),_0x172708(_0x4cda5f);})[_0x1be5c7('0x6')](function(_0x4cd4ea){const _0x4b2aed=_0x1be5c7;logger[_0x4b2aed('0x1')]('GetFreshsalesAccount',_0x4cd4ea[_0x4b2aed('0x8')],_0x1f9f6b),_0x3c709b(_0x575ba4['error'](0x1f4,_0x4cd4ea[_0x4b2aed('0x8')]));});});},exports[_0x28447e('0xe')]=function(_0x4e969a){const _0x3899ea=this;return new Promise(function(_0x5988c0,_0x4d5b35){const _0x103ae1=a270_0x2d39;return db['FreshsalesAccount'][_0x103ae1('0x13')]({'raw':_0x4e969a['options']?_0x4e969a[_0x103ae1('0x10')][_0x103ae1('0xa')]===undefined?!![]:![]:!![],'where':_0x4e969a['options']?_0x4e969a[_0x103ae1('0x10')][_0x103ae1('0xc')]||null:null,'attributes':_0x4e969a[_0x103ae1('0x10')]?_0x4e969a['options'][_0x103ae1('0xb')]||null:null,'include':_0x4e969a[_0x103ae1('0x10')]?_0x4e969a[_0x103ae1('0x10')][_0x103ae1('0x9')]?_[_0x103ae1('0xd')](_0x4e969a['options'][_0x103ae1('0x9')],function(_0x3b3406){const _0x5749f3=_0x103ae1;return{'model':db[_0x3b3406['model']],'as':_0x3b3406['as'],'attributes':_0x3b3406[_0x5749f3('0xb')],'include':_0x3b3406['include']?_[_0x5749f3('0xd')](_0x3b3406[_0x5749f3('0x9')],function(_0x9ceba1){const _0x1fbee0=_0x5749f3;return{'model':db[_0x9ceba1['model']],'as':_0x9ceba1['as'],'attributes':_0x9ceba1['attributes'],'include':_0x9ceba1[_0x1fbee0('0x9')]?_['map'](_0x9ceba1[_0x1fbee0('0x9')],function(_0xec8fbd){const _0x26dce6=_0x1fbee0;return{'model':db[_0xec8fbd[_0x26dce6('0x7')]],'as':_0xec8fbd['as'],'attributes':_0xec8fbd[_0x26dce6('0xb')]};}):[]};}):[]};}):[]:[]})[_0x103ae1('0x2')](function(_0x52d2fe){const _0x4cc5c9=_0x103ae1;logger[_0x4cc5c9('0x4')](_0x4cc5c9('0xe'),_0x4e969a),logger[_0x4cc5c9('0x5')](_0x4cc5c9('0xe'),_0x4e969a,JSON[_0x4cc5c9('0x16')](_0x52d2fe)),_0x5988c0(_0x52d2fe);})[_0x103ae1('0x6')](function(_0x45169d){const _0x461572=_0x103ae1;logger[_0x461572('0x1')](_0x461572('0xe'),_0x45169d[_0x461572('0x8')],_0x4e969a),_0x4d5b35(_0x3899ea[_0x461572('0x1')](0x1f4,_0x45169d[_0x461572('0x8')]));});});}; \ No newline at end of file +const a270_0x4f8b=['findAll','../../mysqldb','model','options','include','message','../../config/logger','error','attributes','lodash','ShowFreshsalesAccount','then','FreshsalesAccount','rpc','map','raw','GetFreshsalesAccount','stringify','info','catch'];(function(_0x1f0ea1,_0x4f8b5e){const _0x43b7c6=function(_0x11bc14){while(--_0x11bc14){_0x1f0ea1['push'](_0x1f0ea1['shift']());}};_0x43b7c6(++_0x4f8b5e);}(a270_0x4f8b,0x1e5));const a270_0x43b7=function(_0x1f0ea1,_0x4f8b5e){_0x1f0ea1=_0x1f0ea1-0x0;let _0x43b7c6=a270_0x4f8b[_0x1f0ea1];return _0x43b7c6;};const _0x5412ff=a270_0x43b7;'use strict';const _=require(_0x5412ff('0x4')),db=require(_0x5412ff('0x10'))['db'],logger=require(_0x5412ff('0x1'))(_0x5412ff('0x8'));exports['GetFreshsalesAccount']=function(_0x11bc14){const _0x3919dc=this;return new Promise(function(_0x1b4b10,_0x5e221c){const _0x23c3af=a270_0x43b7;return db[_0x23c3af('0x7')][_0x23c3af('0xf')]({'raw':_0x11bc14[_0x23c3af('0x12')]?_0x11bc14[_0x23c3af('0x12')][_0x23c3af('0xa')]===undefined?!![]:![]:!![],'where':_0x11bc14['options']?_0x11bc14['options']['where']||null:null,'attributes':_0x11bc14[_0x23c3af('0x12')]?_0x11bc14[_0x23c3af('0x12')][_0x23c3af('0x3')]||null:null,'limit':_0x11bc14['options']?_0x11bc14[_0x23c3af('0x12')]['limit']||null:null,'include':_0x11bc14[_0x23c3af('0x12')]?_0x11bc14[_0x23c3af('0x12')][_0x23c3af('0x13')]?_[_0x23c3af('0x9')](_0x11bc14[_0x23c3af('0x12')][_0x23c3af('0x13')],function(_0x2fde21){const _0x3ad185=_0x23c3af;return{'model':db[_0x2fde21[_0x3ad185('0x11')]],'as':_0x2fde21['as'],'attributes':_0x2fde21[_0x3ad185('0x3')],'include':_0x2fde21[_0x3ad185('0x13')]?_[_0x3ad185('0x9')](_0x2fde21[_0x3ad185('0x13')],function(_0x184e85){const _0xac27a=_0x3ad185;return{'model':db[_0x184e85[_0xac27a('0x11')]],'as':_0x184e85['as'],'attributes':_0x184e85[_0xac27a('0x3')],'include':_0x184e85[_0xac27a('0x13')]?_[_0xac27a('0x9')](_0x184e85[_0xac27a('0x13')],function(_0x5b6ae3){const _0x137efe=_0xac27a;return{'model':db[_0x5b6ae3[_0x137efe('0x11')]],'as':_0x5b6ae3['as'],'attributes':_0x5b6ae3[_0x137efe('0x3')]};}):[]};}):[]};}):[]:[]})[_0x23c3af('0x6')](function(_0x96c0fa){const _0x4173b9=_0x23c3af;logger[_0x4173b9('0xd')]('GetFreshsalesAccount',_0x11bc14),logger['debug'](_0x4173b9('0xb'),_0x11bc14,JSON['stringify'](_0x96c0fa)),_0x1b4b10(_0x96c0fa);})[_0x23c3af('0xe')](function(_0x511198){const _0x255f43=_0x23c3af;logger[_0x255f43('0x2')](_0x255f43('0xb'),_0x511198[_0x255f43('0x0')],_0x11bc14),_0x5e221c(_0x3919dc[_0x255f43('0x2')](0x1f4,_0x511198[_0x255f43('0x0')]));});});},exports['ShowFreshsalesAccount']=function(_0x1bb575){const _0x34bca2=this;return new Promise(function(_0x596f6b,_0xd43b6){const _0x4b78c4=a270_0x43b7;return db[_0x4b78c4('0x7')]['findOne']({'raw':_0x1bb575[_0x4b78c4('0x12')]?_0x1bb575[_0x4b78c4('0x12')][_0x4b78c4('0xa')]===undefined?!![]:![]:!![],'where':_0x1bb575[_0x4b78c4('0x12')]?_0x1bb575['options']['where']||null:null,'attributes':_0x1bb575['options']?_0x1bb575['options'][_0x4b78c4('0x3')]||null:null,'include':_0x1bb575[_0x4b78c4('0x12')]?_0x1bb575['options'][_0x4b78c4('0x13')]?_[_0x4b78c4('0x9')](_0x1bb575[_0x4b78c4('0x12')][_0x4b78c4('0x13')],function(_0x30ab15){const _0x423584=_0x4b78c4;return{'model':db[_0x30ab15[_0x423584('0x11')]],'as':_0x30ab15['as'],'attributes':_0x30ab15[_0x423584('0x3')],'include':_0x30ab15['include']?_[_0x423584('0x9')](_0x30ab15[_0x423584('0x13')],function(_0xc166c0){const _0x5d0812=_0x423584;return{'model':db[_0xc166c0['model']],'as':_0xc166c0['as'],'attributes':_0xc166c0[_0x5d0812('0x3')],'include':_0xc166c0[_0x5d0812('0x13')]?_[_0x5d0812('0x9')](_0xc166c0[_0x5d0812('0x13')],function(_0x5cac04){const _0x850238=_0x5d0812;return{'model':db[_0x5cac04[_0x850238('0x11')]],'as':_0x5cac04['as'],'attributes':_0x5cac04[_0x850238('0x3')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x43c856){const _0xdd566e=_0x4b78c4;logger['info'](_0xdd566e('0x5'),_0x1bb575),logger['debug'](_0xdd566e('0x5'),_0x1bb575,JSON[_0xdd566e('0xc')](_0x43c856)),_0x596f6b(_0x43c856);})[_0x4b78c4('0xe')](function(_0x33b61c){const _0x55d419=_0x4b78c4;logger['error'](_0x55d419('0x5'),_0x33b61c[_0x55d419('0x0')],_0x1bb575),_0xd43b6(_0x34bca2[_0x55d419('0x2')](0x1f4,_0x33b61c[_0x55d419('0x0')]));});});}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/index.js b/server/api/intFreshsalesConfiguration/index.js index 7b8f26a..c20fc6f 100644 --- a/server/api/intFreshsalesConfiguration/index.js +++ b/server/api/intFreshsalesConfiguration/index.js @@ -1 +1 @@ -const a271_0x21be=['exports','get','getFields','put','delete','/:id','update','Router','getDescriptions','destroy','../../components/auth/service','isAuthenticated','show','post','/:id/fields'];(function(_0xbcf9e2,_0x21bed4){const _0x406de6=function(_0x53e9c3){while(--_0x53e9c3){_0xbcf9e2['push'](_0xbcf9e2['shift']());}};_0x406de6(++_0x21bed4);}(a271_0x21be,0xb2));const a271_0x406d=function(_0xbcf9e2,_0x21bed4){_0xbcf9e2=_0xbcf9e2-0x0;let _0x406de6=a271_0x21be[_0xbcf9e2];return _0x406de6;};const _0x302eee=a271_0x406d;'use strict';const express=require('express'),router=express[_0x302eee('0x9')](),auth=require(_0x302eee('0xc')),controller=require('./intFreshsalesConfiguration.controller');router[_0x302eee('0x3')]('/',auth[_0x302eee('0xd')](),controller['index']),router[_0x302eee('0x3')](_0x302eee('0x7'),auth[_0x302eee('0xd')](),controller[_0x302eee('0xe')]),router[_0x302eee('0x3')]('/:id/subjects',auth[_0x302eee('0xd')](),controller['getSubjects']),router[_0x302eee('0x3')]('/:id/descriptions',auth[_0x302eee('0xd')](),controller[_0x302eee('0xa')]),router['get'](_0x302eee('0x1'),auth[_0x302eee('0xd')](),controller[_0x302eee('0x4')]),router[_0x302eee('0x0')]('/',auth[_0x302eee('0xd')](),controller['create']),router[_0x302eee('0x5')](_0x302eee('0x7'),auth[_0x302eee('0xd')](),controller[_0x302eee('0x8')]),router[_0x302eee('0x6')](_0x302eee('0x7'),auth[_0x302eee('0xd')](),controller[_0x302eee('0xb')]),module[_0x302eee('0x2')]=router; \ No newline at end of file +const a271_0x52fb=['show','/:id/subjects','getDescriptions','getSubjects','express','delete','exports','index','./intFreshsalesConfiguration.controller','update','/:id/descriptions','post','isAuthenticated','/:id','Router','destroy','put','get'];(function(_0x1dd1eb,_0x52fbb8){const _0x31d903=function(_0x468a1e){while(--_0x468a1e){_0x1dd1eb['push'](_0x1dd1eb['shift']());}};_0x31d903(++_0x52fbb8);}(a271_0x52fb,0x127));const a271_0x31d9=function(_0x1dd1eb,_0x52fbb8){_0x1dd1eb=_0x1dd1eb-0x0;let _0x31d903=a271_0x52fb[_0x1dd1eb];return _0x31d903;};const _0x28c8d2=a271_0x31d9;'use strict';const express=require(_0x28c8d2('0xf')),router=express[_0x28c8d2('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x28c8d2('0x1'));router[_0x28c8d2('0xa')]('/',auth[_0x28c8d2('0x5')](),controller[_0x28c8d2('0x0')]),router[_0x28c8d2('0xa')](_0x28c8d2('0x6'),auth['isAuthenticated'](),controller[_0x28c8d2('0xb')]),router[_0x28c8d2('0xa')](_0x28c8d2('0xc'),auth[_0x28c8d2('0x5')](),controller[_0x28c8d2('0xe')]),router[_0x28c8d2('0xa')](_0x28c8d2('0x3'),auth[_0x28c8d2('0x5')](),controller[_0x28c8d2('0xd')]),router['get']('/:id/fields',auth[_0x28c8d2('0x5')](),controller['getFields']),router[_0x28c8d2('0x4')]('/',auth['isAuthenticated'](),controller['create']),router[_0x28c8d2('0x9')](_0x28c8d2('0x6'),auth[_0x28c8d2('0x5')](),controller[_0x28c8d2('0x2')]),router[_0x28c8d2('0x10')](_0x28c8d2('0x6'),auth[_0x28c8d2('0x5')](),controller[_0x28c8d2('0x8')]),module[_0x28c8d2('0x11')]=router; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js index 5320172..4107462 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.attributes.js @@ -1 +1 @@ -const a272_0x304f=['sequelize','exports','STRING'];(function(_0x2a7778,_0x304f3d){const _0x51ac02=function(_0x3b2a92){while(--_0x3b2a92){_0x2a7778['push'](_0x2a7778['shift']());}};_0x51ac02(++_0x304f3d);}(a272_0x304f,0xf0));const a272_0x51ac=function(_0x2a7778,_0x304f3d){_0x2a7778=_0x2a7778-0x0;let _0x51ac02=a272_0x304f[_0x2a7778];return _0x51ac02;};const _0x3242c0=a272_0x51ac;'use strict';const Sequelize=require(_0x3242c0('0x0'));module[_0x3242c0('0x1')]={'name':{'type':Sequelize[_0x3242c0('0x2')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a272_0x1f4e=['exports','STRING','sequelize'];(function(_0x225ed2,_0x1f4e17){const _0x2e2f8f=function(_0x23170e){while(--_0x23170e){_0x225ed2['push'](_0x225ed2['shift']());}};_0x2e2f8f(++_0x1f4e17);}(a272_0x1f4e,0x157));const a272_0x2e2f=function(_0x225ed2,_0x1f4e17){_0x225ed2=_0x225ed2-0x0;let _0x2e2f8f=a272_0x1f4e[_0x225ed2];return _0x2e2f8f;};const _0x56397f=a272_0x2e2f;'use strict';const Sequelize=require(_0x56397f('0x1'));module[_0x56397f('0x2')]={'name':{'type':Sequelize[_0x56397f('0x0')]},'description':{'type':Sequelize[_0x56397f('0x0')]}}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js index 6238581..fdae8f5 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.controller.js @@ -1 +1 @@ -const a273_0x1f68=['then','rows','body','getFields','fieldName','options','destroy','lodash','FreshsalesField','error','stack','sequelize','getDescriptions','merge','intersection','includeAll','show','update','findAll','VIRTUAL','api','name','sort','length','end','FreshsalesConfiguration','filter','getSubjects','set','offset','where','include','index','query','rawAttributes','keys','catch','create','../../mysqldb','filters','../../components/parsers/qs','count','limit','sendStatus','like','fields','Content-Range','order','status','undefined','findOne','json','type','../../config/logger','map','attributes','nolimit','pick','params','model'];(function(_0x486684,_0x1f68d4){const _0x45cd28=function(_0x599832){while(--_0x599832){_0x486684['push'](_0x486684['shift']());}};_0x45cd28(++_0x1f68d4);}(a273_0x1f68,0x104));const a273_0x45cd=function(_0x486684,_0x1f68d4){_0x486684=_0x486684-0x0;let _0x45cd28=a273_0x1f68[_0x486684];return _0x45cd28;};const _0x12f95c=a273_0x45cd;'use strict';const _=require(_0x12f95c('0x2f')),qs=require(_0x12f95c('0x14')),logger=require(_0x12f95c('0x21'))(_0x12f95c('0x0')),db=require(_0x12f95c('0x12'))['db'],{Op}=require(_0x12f95c('0x33'));function respondWithResult(_0x599832,_0x528adb){return _0x528adb=_0x528adb||0xc8,function(_0xcf4044){const _0x4367c6=a273_0x45cd;if(_0xcf4044)return _0x599832[_0x4367c6('0x1c')](_0x528adb)[_0x4367c6('0x1f')](_0xcf4044);};}function respondWithFilteredResult(_0x451127,_0x3b811e){return function(_0x344f95){const _0x2ce5ff=a273_0x45cd;if(_0x344f95){const _0xfe9147=_0x344f95['count'],_0x3bd522=_0x3b811e['offset'];let _0x391035=_0x3b811e[_0x2ce5ff('0x9')]+_0x3b811e['limit'],_0x471626;return _0x391035>=_0xfe9147?(_0x391035=_0xfe9147,_0x471626=0xc8):_0x471626=0xce,_0x451127[_0x2ce5ff('0x1c')](_0x471626),_0x451127[_0x2ce5ff('0x8')](_0x2ce5ff('0x1a'),_0x3bd522+'-'+_0x391035+'/'+_0xfe9147)[_0x2ce5ff('0x1f')](_0x344f95);}return null;};}function saveUpdates(_0x54589a){return function(_0x11aee5){const _0x274cfe=a273_0x45cd;if(_0x11aee5)return _0x11aee5[_0x274cfe('0x39')](_0x54589a)[_0x274cfe('0x28')](function(_0x26be4b){return _0x26be4b;});return null;};}function removeEntity(_0x159c4c){return function(_0x5e3574){const _0x5af8ea=a273_0x45cd;if(_0x5e3574)return _0x5e3574[_0x5af8ea('0x2e')]()[_0x5af8ea('0x28')](function(){const _0x1b2692=_0x5af8ea;_0x159c4c['status'](0xcc)[_0x1b2692('0x4')]();});};}function handleEntityNotFound(_0x3dae2e){return function(_0x401828){const _0x16c06b=a273_0x45cd;return!_0x401828&&_0x3dae2e[_0x16c06b('0x17')](0x194),_0x401828;};}function handleError(_0xa03bd2,_0x1288a5){return _0x1288a5=_0x1288a5||0x1f4,function(_0xe17ea9){const _0x11609e=a273_0x45cd;logger[_0x11609e('0x31')](_0xe17ea9[_0x11609e('0x32')]),_0xe17ea9[_0x11609e('0x1')]&&delete _0xe17ea9[_0x11609e('0x1')],_0xa03bd2[_0x11609e('0x1c')](_0x1288a5)['send'](_0xe17ea9);};}exports[_0x12f95c('0xc')]=function(_0x5d2138,_0x1ff032){const _0x880a12=_0x12f95c;let _0x1d65d7={};const _0x5381d5={},_0x3f1d22={'count':0x0,'rows':[]},_0xba860b=_[_0x880a12('0x22')](db[_0x880a12('0x5')]['rawAttributes'],function(_0x206d3d){const _0x6ed402=_0x880a12;return{'name':_0x206d3d[_0x6ed402('0x2c')],'type':_0x206d3d[_0x6ed402('0x20')]['key']};});_0x5381d5[_0x880a12('0x27')]=_[_0x880a12('0x22')](_0xba860b,_0x880a12('0x1')),_0x5381d5[_0x880a12('0xd')]=_[_0x880a12('0xf')](_0x5d2138['query']),_0x5381d5[_0x880a12('0x13')]=_[_0x880a12('0x36')](_0x5381d5[_0x880a12('0x27')],_0x5381d5[_0x880a12('0xd')]),_0x1d65d7[_0x880a12('0x23')]=_[_0x880a12('0x36')](_0x5381d5[_0x880a12('0x27')],qs[_0x880a12('0x19')](_0x5d2138[_0x880a12('0xd')][_0x880a12('0x19')])),_0x1d65d7[_0x880a12('0x23')]=_0x1d65d7[_0x880a12('0x23')]['length']?_0x1d65d7[_0x880a12('0x23')]:_0x5381d5['model'];typeof _0x5d2138['query']['nolimit']===_0x880a12('0x1d')&&(_0x1d65d7[_0x880a12('0x16')]=qs['limit'](_0x5d2138[_0x880a12('0xd')][_0x880a12('0x16')]),_0x1d65d7['offset']=qs[_0x880a12('0x9')](_0x5d2138[_0x880a12('0xd')][_0x880a12('0x9')]));_0x1d65d7['order']=qs[_0x880a12('0x2')](_0x5d2138['query']['sort']),_0x1d65d7[_0x880a12('0xa')]=qs[_0x880a12('0x13')](_[_0x880a12('0x25')](_0x5d2138[_0x880a12('0xd')],_0x5381d5[_0x880a12('0x13')]),_0xba860b);_0x5d2138[_0x880a12('0xd')]['filter']&&(_0x1d65d7[_0x880a12('0xa')]=_[_0x880a12('0x35')](_0x1d65d7[_0x880a12('0xa')],{[Op['or']]:_[_0x880a12('0x22')](_0xba860b,function(_0x5a2930){const _0x181eb3=_0x880a12;if(_0x5a2930[_0x181eb3('0x20')]!==_0x181eb3('0x3b')){const _0xdc23f8={};return _0xdc23f8[_0x5a2930[_0x181eb3('0x1')]]={[Op[_0x181eb3('0x18')]]:'%'+_0x5d2138[_0x181eb3('0xd')][_0x181eb3('0x6')]+'%'},_0xdc23f8;}})}));_0x1d65d7=_['merge']({},_0x1d65d7,_0x5d2138[_0x880a12('0x2d')]);const _0x403368={'where':_0x1d65d7[_0x880a12('0xa')]};return db[_0x880a12('0x5')][_0x880a12('0x15')](_0x403368)['then'](function(_0x2ab078){const _0x5f1e12=_0x880a12;return _0x3f1d22[_0x5f1e12('0x15')]=_0x2ab078,_0x5d2138[_0x5f1e12('0xd')]['includeAll']&&(_0x1d65d7['include']=[{'all':!![]}]),db['FreshsalesConfiguration'][_0x5f1e12('0x3a')](_0x1d65d7);})[_0x880a12('0x28')](function(_0x2ddd82){const _0x327711=_0x880a12;return _0x3f1d22[_0x327711('0x29')]=_0x2ddd82,_0x3f1d22;})[_0x880a12('0x28')](respondWithFilteredResult(_0x1ff032,_0x1d65d7))[_0x880a12('0x10')](handleError(_0x1ff032,null));},exports[_0x12f95c('0x38')]=function(_0x2af8bf,_0x5057e5){const _0x5126ab=_0x12f95c;let _0x1491a3={'raw':![],'where':{'id':_0x2af8bf[_0x5126ab('0x26')]['id']}};const _0x182e8f={};return _0x182e8f[_0x5126ab('0x27')]=_[_0x5126ab('0xf')](db[_0x5126ab('0x5')]['rawAttributes']),_0x182e8f['query']=_[_0x5126ab('0xf')](_0x2af8bf[_0x5126ab('0xd')]),_0x182e8f[_0x5126ab('0x13')]=_['intersection'](_0x182e8f['model'],_0x182e8f[_0x5126ab('0xd')]),_0x1491a3[_0x5126ab('0x23')]=_[_0x5126ab('0x36')](_0x182e8f[_0x5126ab('0x27')],qs[_0x5126ab('0x19')](_0x2af8bf[_0x5126ab('0xd')][_0x5126ab('0x19')])),_0x1491a3[_0x5126ab('0x23')]=_0x1491a3[_0x5126ab('0x23')][_0x5126ab('0x3')]?_0x1491a3[_0x5126ab('0x23')]:_0x182e8f['model'],_0x2af8bf[_0x5126ab('0xd')][_0x5126ab('0x37')]&&(_0x1491a3[_0x5126ab('0xb')]=[{'all':!![]}]),_0x1491a3=_[_0x5126ab('0x35')]({},_0x1491a3,_0x2af8bf[_0x5126ab('0x2d')]),db['FreshsalesConfiguration'][_0x5126ab('0x1e')](_0x1491a3)[_0x5126ab('0x28')](handleEntityNotFound(_0x5057e5,null))[_0x5126ab('0x28')](respondWithResult(_0x5057e5,null))[_0x5126ab('0x10')](handleError(_0x5057e5,null));},exports[_0x12f95c('0x11')]=function(_0x30e8d1,_0x1f9879){return db['FreshsalesConfiguration']['create'](_0x30e8d1['body'],{})['then'](respondWithResult(_0x1f9879,0xc9))['catch'](handleError(_0x1f9879,null));},exports[_0x12f95c('0x39')]=function(_0x1ba911,_0x58bc4d){const _0x1514e2=_0x12f95c;return _0x1ba911[_0x1514e2('0x2a')]['id']&&delete _0x1ba911['body']['id'],db['FreshsalesConfiguration'][_0x1514e2('0x1e')]({'where':{'id':_0x1ba911[_0x1514e2('0x26')]['id']}})[_0x1514e2('0x28')](handleEntityNotFound(_0x58bc4d,null))['then'](saveUpdates(_0x1ba911[_0x1514e2('0x2a')],null))[_0x1514e2('0x28')](respondWithResult(_0x58bc4d,null))['catch'](handleError(_0x58bc4d,null));},exports[_0x12f95c('0x2e')]=function(_0x54a4b0,_0x54261c){const _0x3cb032=_0x12f95c;return db[_0x3cb032('0x5')][_0x3cb032('0x1e')]({'where':{'id':_0x54a4b0['params']['id']}})[_0x3cb032('0x28')](handleEntityNotFound(_0x54261c,null))['then'](removeEntity(_0x54261c,null))[_0x3cb032('0x10')](handleError(_0x54261c,null));},exports['getSubjects']=function(_0x335980,_0x4c859f){const _0x55105b=_0x12f95c;let _0x44e852={};const _0x5eb2a9={};let _0x23676a,_0x44dc86;return db[_0x55105b('0x5')][_0x55105b('0x1e')]({'where':{'id':_0x335980[_0x55105b('0x26')]['id']}})[_0x55105b('0x28')](handleEntityNotFound(_0x4c859f,null))['then'](function(_0x52e39a){const _0x593600=_0x55105b;if(_0x52e39a)return _0x23676a=_0x52e39a,_0x5eb2a9['model']=_[_0x593600('0xf')](db[_0x593600('0x30')][_0x593600('0xe')]),_0x5eb2a9[_0x593600('0xd')]=_[_0x593600('0xf')](_0x335980[_0x593600('0xd')]),_0x5eb2a9[_0x593600('0x13')]=_[_0x593600('0x36')](_0x5eb2a9[_0x593600('0x27')],_0x5eb2a9[_0x593600('0xd')]),_0x44e852['attributes']=_['intersection'](_0x5eb2a9[_0x593600('0x27')],qs[_0x593600('0x19')](_0x335980['query'][_0x593600('0x19')])),_0x44e852['attributes']=_0x44e852['attributes'][_0x593600('0x3')]?_0x44e852[_0x593600('0x23')]:_0x5eb2a9[_0x593600('0x27')],_0x44e852[_0x593600('0x1b')]=qs['sort'](_0x335980['query'][_0x593600('0x2')]),_0x44e852[_0x593600('0xa')]=qs[_0x593600('0x13')](_[_0x593600('0x25')](_0x335980[_0x593600('0xd')],_0x5eb2a9[_0x593600('0x13')])),_0x335980[_0x593600('0xd')][_0x593600('0x6')]&&(_0x44e852[_0x593600('0xa')]=_[_0x593600('0x35')](_0x44e852['where'],{[Op['or']]:_[_0x593600('0x22')](_0x44e852['attributes'],function(_0x249b80){const _0x1f3d6f=_0x593600,_0x5ac1a4={};return _0x5ac1a4[_0x249b80]={[Op[_0x1f3d6f('0x18')]]:'%'+_0x335980[_0x1f3d6f('0xd')][_0x1f3d6f('0x6')]+'%'},_0x5ac1a4;})})),_0x44e852=_['merge']({},_0x44e852,_0x335980['options']),_0x23676a[_0x593600('0x7')](_0x44e852);})['then'](function(_0x36f19c){const _0x355f09=_0x55105b;if(_0x36f19c)return _0x44dc86=_0x36f19c[_0x355f09('0x3')],typeof _0x335980[_0x355f09('0xd')]['nolimit']==='undefined'&&(_0x44e852[_0x355f09('0x16')]=qs[_0x355f09('0x16')](_0x335980[_0x355f09('0xd')][_0x355f09('0x16')]),_0x44e852[_0x355f09('0x9')]=qs[_0x355f09('0x9')](_0x335980[_0x355f09('0xd')][_0x355f09('0x9')])),_0x23676a['getSubjects'](_0x44e852);})[_0x55105b('0x28')](function(_0x8b27cc){if(_0x8b27cc)return _0x8b27cc?{'count':_0x44dc86,'rows':_0x8b27cc}:null;})[_0x55105b('0x28')](respondWithResult(_0x4c859f,null))[_0x55105b('0x10')](handleError(_0x4c859f,null));},exports[_0x12f95c('0x34')]=function(_0x256386,_0x2eec15){const _0x451d3b=_0x12f95c;let _0x5195a2={};const _0x4363a3={};let _0x5a0342,_0x38ec39;return db['FreshsalesConfiguration']['findOne']({'where':{'id':_0x256386['params']['id']}})[_0x451d3b('0x28')](handleEntityNotFound(_0x2eec15,null))['then'](function(_0x56bae1){const _0x38e845=_0x451d3b;if(_0x56bae1)return _0x5a0342=_0x56bae1,_0x4363a3[_0x38e845('0x27')]=_[_0x38e845('0xf')](db['FreshsalesField'][_0x38e845('0xe')]),_0x4363a3['query']=_[_0x38e845('0xf')](_0x256386[_0x38e845('0xd')]),_0x4363a3[_0x38e845('0x13')]=_['intersection'](_0x4363a3['model'],_0x4363a3[_0x38e845('0xd')]),_0x5195a2[_0x38e845('0x23')]=_[_0x38e845('0x36')](_0x4363a3[_0x38e845('0x27')],qs[_0x38e845('0x19')](_0x256386['query']['fields'])),_0x5195a2[_0x38e845('0x23')]=_0x5195a2[_0x38e845('0x23')][_0x38e845('0x3')]?_0x5195a2[_0x38e845('0x23')]:_0x4363a3[_0x38e845('0x27')],_0x5195a2[_0x38e845('0x1b')]=qs['sort'](_0x256386[_0x38e845('0xd')][_0x38e845('0x2')]),_0x5195a2[_0x38e845('0xa')]=qs[_0x38e845('0x13')](_[_0x38e845('0x25')](_0x256386[_0x38e845('0xd')],_0x4363a3[_0x38e845('0x13')])),_0x256386[_0x38e845('0xd')][_0x38e845('0x6')]&&(_0x5195a2[_0x38e845('0xa')]=_[_0x38e845('0x35')](_0x5195a2[_0x38e845('0xa')],{[Op['or']]:_[_0x38e845('0x22')](_0x5195a2['attributes'],function(_0x16c665){const _0x3271ad=_0x38e845,_0x2078f5={};return _0x2078f5[_0x16c665]={[Op[_0x3271ad('0x18')]]:'%'+_0x256386[_0x3271ad('0xd')][_0x3271ad('0x6')]+'%'},_0x2078f5;})})),_0x5195a2=_['merge']({},_0x5195a2,_0x256386[_0x38e845('0x2d')]),_0x5a0342['getDescriptions'](_0x5195a2);})[_0x451d3b('0x28')](function(_0xda9e74){const _0x147017=_0x451d3b;if(_0xda9e74)return _0x38ec39=_0xda9e74[_0x147017('0x3')],typeof _0x256386[_0x147017('0xd')]['nolimit']==='undefined'&&(_0x5195a2[_0x147017('0x16')]=qs[_0x147017('0x16')](_0x256386['query'][_0x147017('0x16')]),_0x5195a2[_0x147017('0x9')]=qs['offset'](_0x256386[_0x147017('0xd')][_0x147017('0x9')])),_0x5a0342[_0x147017('0x34')](_0x5195a2);})[_0x451d3b('0x28')](function(_0x4c3b76){if(_0x4c3b76)return _0x4c3b76?{'count':_0x38ec39,'rows':_0x4c3b76}:null;})['then'](respondWithResult(_0x2eec15,null))[_0x451d3b('0x10')](handleError(_0x2eec15,null));},exports[_0x12f95c('0x2b')]=function(_0x389649,_0x642e6a){const _0xc853d2=_0x12f95c;let _0x1fc51a={};const _0x3b714d={};let _0x2a8ee5,_0x28a0c8;return db[_0xc853d2('0x5')][_0xc853d2('0x1e')]({'where':{'id':_0x389649['params']['id']}})[_0xc853d2('0x28')](handleEntityNotFound(_0x642e6a,null))[_0xc853d2('0x28')](function(_0x3a2fbb){const _0x2cc9c5=_0xc853d2;if(_0x3a2fbb)return _0x2a8ee5=_0x3a2fbb,_0x3b714d['model']=_[_0x2cc9c5('0xf')](db[_0x2cc9c5('0x30')][_0x2cc9c5('0xe')]),_0x3b714d['query']=_[_0x2cc9c5('0xf')](_0x389649[_0x2cc9c5('0xd')]),_0x3b714d['filters']=_[_0x2cc9c5('0x36')](_0x3b714d[_0x2cc9c5('0x27')],_0x3b714d['query']),_0x1fc51a['attributes']=_['intersection'](_0x3b714d[_0x2cc9c5('0x27')],qs['fields'](_0x389649['query']['fields'])),_0x1fc51a[_0x2cc9c5('0x23')]=_0x1fc51a[_0x2cc9c5('0x23')]['length']?_0x1fc51a[_0x2cc9c5('0x23')]:_0x3b714d[_0x2cc9c5('0x27')],_0x1fc51a[_0x2cc9c5('0x1b')]=qs[_0x2cc9c5('0x2')](_0x389649[_0x2cc9c5('0xd')]['sort']),_0x1fc51a[_0x2cc9c5('0xa')]=qs['filters'](_[_0x2cc9c5('0x25')](_0x389649[_0x2cc9c5('0xd')],_0x3b714d[_0x2cc9c5('0x13')])),_0x389649[_0x2cc9c5('0xd')][_0x2cc9c5('0x6')]&&(_0x1fc51a[_0x2cc9c5('0xa')]=_[_0x2cc9c5('0x35')](_0x1fc51a[_0x2cc9c5('0xa')],{[Op['or']]:_[_0x2cc9c5('0x22')](_0x1fc51a[_0x2cc9c5('0x23')],function(_0x17d7dc){const _0x1e6296=_0x2cc9c5,_0x20b3ed={};return _0x20b3ed[_0x17d7dc]={[Op[_0x1e6296('0x18')]]:'%'+_0x389649[_0x1e6296('0xd')][_0x1e6296('0x6')]+'%'},_0x20b3ed;})})),_0x1fc51a=_[_0x2cc9c5('0x35')]({},_0x1fc51a,_0x389649[_0x2cc9c5('0x2d')]),_0x2a8ee5[_0x2cc9c5('0x2b')](_0x1fc51a);})[_0xc853d2('0x28')](function(_0x1fabff){const _0x46d45f=_0xc853d2;if(_0x1fabff)return _0x28a0c8=_0x1fabff[_0x46d45f('0x3')],typeof _0x389649['query'][_0x46d45f('0x24')]===_0x46d45f('0x1d')&&(_0x1fc51a[_0x46d45f('0x16')]=qs['limit'](_0x389649[_0x46d45f('0xd')][_0x46d45f('0x16')]),_0x1fc51a['offset']=qs['offset'](_0x389649['query'][_0x46d45f('0x9')])),_0x2a8ee5[_0x46d45f('0x2b')](_0x1fc51a);})[_0xc853d2('0x28')](function(_0x85e4da){if(_0x85e4da)return _0x85e4da?{'count':_0x28a0c8,'rows':_0x85e4da}:null;})[_0xc853d2('0x28')](respondWithResult(_0x642e6a,null))[_0xc853d2('0x10')](handleError(_0x642e6a,null));}; \ No newline at end of file +const a273_0x2578=['length','getSubjects','where','show','index','filters','query','attributes','params','then','sort','json','Content-Range','update','body','count','model','../../config/logger','getDescriptions','FreshsalesConfiguration','sequelize','fieldName','map','limit','order','catch','fields','../../mysqldb','keys','offset','include','sendStatus','intersection','like','merge','status','../../components/parsers/qs','error','set','send','getFields','includeAll','destroy','name','rawAttributes','options','findAll','type','create','findOne','lodash','FreshsalesField','pick','filter','end'];(function(_0x1a2974,_0x257841){const _0x28f82d=function(_0x23826c){while(--_0x23826c){_0x1a2974['push'](_0x1a2974['shift']());}};_0x28f82d(++_0x257841);}(a273_0x2578,0xd5));const a273_0x28f8=function(_0x1a2974,_0x257841){_0x1a2974=_0x1a2974-0x0;let _0x28f82d=a273_0x2578[_0x1a2974];return _0x28f82d;};const _0xaf6614=a273_0x28f8;'use strict';const _=require(_0xaf6614('0x2')),qs=require(_0xaf6614('0x2b')),logger=require(_0xaf6614('0x18'))('api'),db=require(_0xaf6614('0x22'))['db'],{Op}=require(_0xaf6614('0x1b'));function respondWithResult(_0x23826c,_0x1fc929){return _0x1fc929=_0x1fc929||0xc8,function(_0x30fe31){const _0x1fa10e=a273_0x28f8;if(_0x30fe31)return _0x23826c[_0x1fa10e('0x2a')](_0x1fc929)['json'](_0x30fe31);};}function respondWithFilteredResult(_0xfef3bf,_0x4ff2c8){return function(_0x5d77e5){const _0x2b980f=a273_0x28f8;if(_0x5d77e5){const _0x5f23b0=_0x5d77e5['count'],_0x14d871=_0x4ff2c8[_0x2b980f('0x24')];let _0x2826bd=_0x4ff2c8[_0x2b980f('0x24')]+_0x4ff2c8[_0x2b980f('0x1e')],_0x27fb11;return _0x2826bd>=_0x5f23b0?(_0x2826bd=_0x5f23b0,_0x27fb11=0xc8):_0x27fb11=0xce,_0xfef3bf['status'](_0x27fb11),_0xfef3bf[_0x2b980f('0x2d')](_0x2b980f('0x13'),_0x14d871+'-'+_0x2826bd+'/'+_0x5f23b0)[_0x2b980f('0x12')](_0x5d77e5);}return null;};}function saveUpdates(_0x1f9f52){return function(_0x1d98ba){const _0x2ff567=a273_0x28f8;if(_0x1d98ba)return _0x1d98ba[_0x2ff567('0x14')](_0x1f9f52)[_0x2ff567('0x10')](function(_0x4e65fc){return _0x4e65fc;});return null;};}function removeEntity(_0x4e7dde){return function(_0x4295ec){const _0x4b98ad=a273_0x28f8;if(_0x4295ec)return _0x4295ec[_0x4b98ad('0x31')]()['then'](function(){const _0x12173a=_0x4b98ad;_0x4e7dde[_0x12173a('0x2a')](0xcc)[_0x12173a('0x6')]();});};}function handleEntityNotFound(_0x33ad3c){return function(_0x5677e2){const _0x400fa9=a273_0x28f8;return!_0x5677e2&&_0x33ad3c[_0x400fa9('0x26')](0x194),_0x5677e2;};}function handleError(_0x4aeee7,_0x30338a){return _0x30338a=_0x30338a||0x1f4,function(_0x3a8bf0){const _0x5e9053=a273_0x28f8;logger[_0x5e9053('0x2c')](_0x3a8bf0['stack']),_0x3a8bf0[_0x5e9053('0x32')]&&delete _0x3a8bf0[_0x5e9053('0x32')],_0x4aeee7[_0x5e9053('0x2a')](_0x30338a)[_0x5e9053('0x2e')](_0x3a8bf0);};}exports[_0xaf6614('0xb')]=function(_0x2ea088,_0x147d87){const _0xe0582b=_0xaf6614;let _0x123b14={};const _0x5f1051={},_0x47c705={'count':0x0,'rows':[]},_0x2de81d=_[_0xe0582b('0x1d')](db['FreshsalesConfiguration']['rawAttributes'],function(_0x4543ce){const _0xbdf02c=_0xe0582b;return{'name':_0x4543ce[_0xbdf02c('0x1c')],'type':_0x4543ce[_0xbdf02c('0x36')]['key']};});_0x5f1051[_0xe0582b('0x17')]=_['map'](_0x2de81d,_0xe0582b('0x32')),_0x5f1051[_0xe0582b('0xd')]=_[_0xe0582b('0x23')](_0x2ea088[_0xe0582b('0xd')]),_0x5f1051[_0xe0582b('0xc')]=_['intersection'](_0x5f1051[_0xe0582b('0x17')],_0x5f1051[_0xe0582b('0xd')]),_0x123b14[_0xe0582b('0xe')]=_[_0xe0582b('0x27')](_0x5f1051['model'],qs['fields'](_0x2ea088[_0xe0582b('0xd')]['fields'])),_0x123b14[_0xe0582b('0xe')]=_0x123b14[_0xe0582b('0xe')]['length']?_0x123b14[_0xe0582b('0xe')]:_0x5f1051[_0xe0582b('0x17')];typeof _0x2ea088['query']['nolimit']==='undefined'&&(_0x123b14[_0xe0582b('0x1e')]=qs[_0xe0582b('0x1e')](_0x2ea088[_0xe0582b('0xd')]['limit']),_0x123b14['offset']=qs[_0xe0582b('0x24')](_0x2ea088[_0xe0582b('0xd')][_0xe0582b('0x24')]));_0x123b14[_0xe0582b('0x1f')]=qs['sort'](_0x2ea088[_0xe0582b('0xd')][_0xe0582b('0x11')]),_0x123b14['where']=qs[_0xe0582b('0xc')](_[_0xe0582b('0x4')](_0x2ea088[_0xe0582b('0xd')],_0x5f1051[_0xe0582b('0xc')]),_0x2de81d);_0x2ea088['query']['filter']&&(_0x123b14[_0xe0582b('0x9')]=_['merge'](_0x123b14[_0xe0582b('0x9')],{[Op['or']]:_['map'](_0x2de81d,function(_0x30df24){const _0x2d2701=_0xe0582b;if(_0x30df24[_0x2d2701('0x36')]!=='VIRTUAL'){const _0x20bc48={};return _0x20bc48[_0x30df24[_0x2d2701('0x32')]]={[Op[_0x2d2701('0x28')]]:'%'+_0x2ea088[_0x2d2701('0xd')][_0x2d2701('0x5')]+'%'},_0x20bc48;}})}));_0x123b14=_[_0xe0582b('0x29')]({},_0x123b14,_0x2ea088[_0xe0582b('0x34')]);const _0x1627fc={'where':_0x123b14[_0xe0582b('0x9')]};return db[_0xe0582b('0x1a')]['count'](_0x1627fc)['then'](function(_0x434ec7){const _0xa517b2=_0xe0582b;return _0x47c705[_0xa517b2('0x16')]=_0x434ec7,_0x2ea088['query'][_0xa517b2('0x30')]&&(_0x123b14['include']=[{'all':!![]}]),db[_0xa517b2('0x1a')][_0xa517b2('0x35')](_0x123b14);})['then'](function(_0x1333db){return _0x47c705['rows']=_0x1333db,_0x47c705;})[_0xe0582b('0x10')](respondWithFilteredResult(_0x147d87,_0x123b14))[_0xe0582b('0x20')](handleError(_0x147d87,null));},exports[_0xaf6614('0xa')]=function(_0x46cfc3,_0x21f612){const _0x66ab26=_0xaf6614;let _0x2b26c0={'raw':![],'where':{'id':_0x46cfc3[_0x66ab26('0xf')]['id']}};const _0x4290b8={};return _0x4290b8[_0x66ab26('0x17')]=_['keys'](db[_0x66ab26('0x1a')][_0x66ab26('0x33')]),_0x4290b8[_0x66ab26('0xd')]=_[_0x66ab26('0x23')](_0x46cfc3[_0x66ab26('0xd')]),_0x4290b8['filters']=_[_0x66ab26('0x27')](_0x4290b8[_0x66ab26('0x17')],_0x4290b8[_0x66ab26('0xd')]),_0x2b26c0[_0x66ab26('0xe')]=_[_0x66ab26('0x27')](_0x4290b8[_0x66ab26('0x17')],qs[_0x66ab26('0x21')](_0x46cfc3[_0x66ab26('0xd')][_0x66ab26('0x21')])),_0x2b26c0[_0x66ab26('0xe')]=_0x2b26c0['attributes']['length']?_0x2b26c0[_0x66ab26('0xe')]:_0x4290b8[_0x66ab26('0x17')],_0x46cfc3[_0x66ab26('0xd')][_0x66ab26('0x30')]&&(_0x2b26c0[_0x66ab26('0x25')]=[{'all':!![]}]),_0x2b26c0=_[_0x66ab26('0x29')]({},_0x2b26c0,_0x46cfc3['options']),db[_0x66ab26('0x1a')][_0x66ab26('0x1')](_0x2b26c0)[_0x66ab26('0x10')](handleEntityNotFound(_0x21f612,null))['then'](respondWithResult(_0x21f612,null))[_0x66ab26('0x20')](handleError(_0x21f612,null));},exports[_0xaf6614('0x0')]=function(_0x4053ad,_0x54994b){const _0x52b527=_0xaf6614;return db[_0x52b527('0x1a')][_0x52b527('0x0')](_0x4053ad[_0x52b527('0x15')],{})[_0x52b527('0x10')](respondWithResult(_0x54994b,0xc9))['catch'](handleError(_0x54994b,null));},exports[_0xaf6614('0x14')]=function(_0x6fca42,_0x303a09){const _0x221e7e=_0xaf6614;return _0x6fca42['body']['id']&&delete _0x6fca42['body']['id'],db['FreshsalesConfiguration'][_0x221e7e('0x1')]({'where':{'id':_0x6fca42['params']['id']}})[_0x221e7e('0x10')](handleEntityNotFound(_0x303a09,null))['then'](saveUpdates(_0x6fca42[_0x221e7e('0x15')],null))[_0x221e7e('0x10')](respondWithResult(_0x303a09,null))['catch'](handleError(_0x303a09,null));},exports[_0xaf6614('0x31')]=function(_0x4ac03a,_0x4069fc){const _0x25e14e=_0xaf6614;return db[_0x25e14e('0x1a')]['findOne']({'where':{'id':_0x4ac03a['params']['id']}})[_0x25e14e('0x10')](handleEntityNotFound(_0x4069fc,null))['then'](removeEntity(_0x4069fc,null))['catch'](handleError(_0x4069fc,null));},exports[_0xaf6614('0x8')]=function(_0x3a6bb4,_0x3ea7f6){const _0x1aa2f5=_0xaf6614;let _0x3e041c={};const _0x3639c8={};let _0x4f917c,_0x27df6d;return db[_0x1aa2f5('0x1a')][_0x1aa2f5('0x1')]({'where':{'id':_0x3a6bb4[_0x1aa2f5('0xf')]['id']}})[_0x1aa2f5('0x10')](handleEntityNotFound(_0x3ea7f6,null))[_0x1aa2f5('0x10')](function(_0x3eac0e){const _0x115946=_0x1aa2f5;if(_0x3eac0e)return _0x4f917c=_0x3eac0e,_0x3639c8[_0x115946('0x17')]=_[_0x115946('0x23')](db[_0x115946('0x3')]['rawAttributes']),_0x3639c8[_0x115946('0xd')]=_[_0x115946('0x23')](_0x3a6bb4[_0x115946('0xd')]),_0x3639c8[_0x115946('0xc')]=_[_0x115946('0x27')](_0x3639c8[_0x115946('0x17')],_0x3639c8[_0x115946('0xd')]),_0x3e041c[_0x115946('0xe')]=_[_0x115946('0x27')](_0x3639c8[_0x115946('0x17')],qs[_0x115946('0x21')](_0x3a6bb4['query'][_0x115946('0x21')])),_0x3e041c[_0x115946('0xe')]=_0x3e041c[_0x115946('0xe')][_0x115946('0x7')]?_0x3e041c[_0x115946('0xe')]:_0x3639c8[_0x115946('0x17')],_0x3e041c[_0x115946('0x1f')]=qs[_0x115946('0x11')](_0x3a6bb4[_0x115946('0xd')][_0x115946('0x11')]),_0x3e041c['where']=qs['filters'](_[_0x115946('0x4')](_0x3a6bb4['query'],_0x3639c8[_0x115946('0xc')])),_0x3a6bb4[_0x115946('0xd')][_0x115946('0x5')]&&(_0x3e041c[_0x115946('0x9')]=_[_0x115946('0x29')](_0x3e041c['where'],{[Op['or']]:_[_0x115946('0x1d')](_0x3e041c[_0x115946('0xe')],function(_0x12bc98){const _0x13e9fc=_0x115946,_0x293c1f={};return _0x293c1f[_0x12bc98]={[Op[_0x13e9fc('0x28')]]:'%'+_0x3a6bb4[_0x13e9fc('0xd')]['filter']+'%'},_0x293c1f;})})),_0x3e041c=_[_0x115946('0x29')]({},_0x3e041c,_0x3a6bb4['options']),_0x4f917c[_0x115946('0x8')](_0x3e041c);})[_0x1aa2f5('0x10')](function(_0x5e6c5a){const _0x2de34a=_0x1aa2f5;if(_0x5e6c5a)return _0x27df6d=_0x5e6c5a[_0x2de34a('0x7')],typeof _0x3a6bb4['query']['nolimit']==='undefined'&&(_0x3e041c['limit']=qs[_0x2de34a('0x1e')](_0x3a6bb4['query']['limit']),_0x3e041c[_0x2de34a('0x24')]=qs[_0x2de34a('0x24')](_0x3a6bb4[_0x2de34a('0xd')][_0x2de34a('0x24')])),_0x4f917c[_0x2de34a('0x8')](_0x3e041c);})[_0x1aa2f5('0x10')](function(_0x7784ad){if(_0x7784ad)return _0x7784ad?{'count':_0x27df6d,'rows':_0x7784ad}:null;})[_0x1aa2f5('0x10')](respondWithResult(_0x3ea7f6,null))[_0x1aa2f5('0x20')](handleError(_0x3ea7f6,null));},exports[_0xaf6614('0x19')]=function(_0x198145,_0x389ce6){const _0x156edf=_0xaf6614;let _0x5b2039={};const _0x468934={};let _0x318cce,_0x9ef900;return db[_0x156edf('0x1a')][_0x156edf('0x1')]({'where':{'id':_0x198145[_0x156edf('0xf')]['id']}})[_0x156edf('0x10')](handleEntityNotFound(_0x389ce6,null))[_0x156edf('0x10')](function(_0x1a7a73){const _0x1babec=_0x156edf;if(_0x1a7a73)return _0x318cce=_0x1a7a73,_0x468934[_0x1babec('0x17')]=_[_0x1babec('0x23')](db[_0x1babec('0x3')]['rawAttributes']),_0x468934[_0x1babec('0xd')]=_['keys'](_0x198145[_0x1babec('0xd')]),_0x468934['filters']=_[_0x1babec('0x27')](_0x468934[_0x1babec('0x17')],_0x468934[_0x1babec('0xd')]),_0x5b2039[_0x1babec('0xe')]=_['intersection'](_0x468934[_0x1babec('0x17')],qs[_0x1babec('0x21')](_0x198145['query'][_0x1babec('0x21')])),_0x5b2039[_0x1babec('0xe')]=_0x5b2039['attributes'][_0x1babec('0x7')]?_0x5b2039['attributes']:_0x468934[_0x1babec('0x17')],_0x5b2039['order']=qs['sort'](_0x198145['query'][_0x1babec('0x11')]),_0x5b2039[_0x1babec('0x9')]=qs[_0x1babec('0xc')](_[_0x1babec('0x4')](_0x198145[_0x1babec('0xd')],_0x468934[_0x1babec('0xc')])),_0x198145[_0x1babec('0xd')][_0x1babec('0x5')]&&(_0x5b2039[_0x1babec('0x9')]=_[_0x1babec('0x29')](_0x5b2039[_0x1babec('0x9')],{[Op['or']]:_[_0x1babec('0x1d')](_0x5b2039[_0x1babec('0xe')],function(_0x30f532){const _0x1bfece=_0x1babec,_0x4d5eb5={};return _0x4d5eb5[_0x30f532]={[Op[_0x1bfece('0x28')]]:'%'+_0x198145[_0x1bfece('0xd')][_0x1bfece('0x5')]+'%'},_0x4d5eb5;})})),_0x5b2039=_[_0x1babec('0x29')]({},_0x5b2039,_0x198145[_0x1babec('0x34')]),_0x318cce[_0x1babec('0x19')](_0x5b2039);})[_0x156edf('0x10')](function(_0x2db44f){const _0x2ee163=_0x156edf;if(_0x2db44f)return _0x9ef900=_0x2db44f[_0x2ee163('0x7')],typeof _0x198145[_0x2ee163('0xd')]['nolimit']==='undefined'&&(_0x5b2039['limit']=qs[_0x2ee163('0x1e')](_0x198145['query'][_0x2ee163('0x1e')]),_0x5b2039[_0x2ee163('0x24')]=qs[_0x2ee163('0x24')](_0x198145[_0x2ee163('0xd')][_0x2ee163('0x24')])),_0x318cce[_0x2ee163('0x19')](_0x5b2039);})[_0x156edf('0x10')](function(_0x115318){if(_0x115318)return _0x115318?{'count':_0x9ef900,'rows':_0x115318}:null;})[_0x156edf('0x10')](respondWithResult(_0x389ce6,null))[_0x156edf('0x20')](handleError(_0x389ce6,null));},exports['getFields']=function(_0x466f75,_0x650f52){const _0x24698f=_0xaf6614;let _0x41bab9={};const _0xea8e25={};let _0x2c81ca,_0x365a61;return db['FreshsalesConfiguration']['findOne']({'where':{'id':_0x466f75[_0x24698f('0xf')]['id']}})[_0x24698f('0x10')](handleEntityNotFound(_0x650f52,null))[_0x24698f('0x10')](function(_0x328102){const _0x4fd179=_0x24698f;if(_0x328102)return _0x2c81ca=_0x328102,_0xea8e25[_0x4fd179('0x17')]=_[_0x4fd179('0x23')](db[_0x4fd179('0x3')][_0x4fd179('0x33')]),_0xea8e25[_0x4fd179('0xd')]=_[_0x4fd179('0x23')](_0x466f75['query']),_0xea8e25['filters']=_['intersection'](_0xea8e25[_0x4fd179('0x17')],_0xea8e25[_0x4fd179('0xd')]),_0x41bab9[_0x4fd179('0xe')]=_[_0x4fd179('0x27')](_0xea8e25[_0x4fd179('0x17')],qs[_0x4fd179('0x21')](_0x466f75['query'][_0x4fd179('0x21')])),_0x41bab9[_0x4fd179('0xe')]=_0x41bab9[_0x4fd179('0xe')][_0x4fd179('0x7')]?_0x41bab9[_0x4fd179('0xe')]:_0xea8e25[_0x4fd179('0x17')],_0x41bab9[_0x4fd179('0x1f')]=qs['sort'](_0x466f75['query'][_0x4fd179('0x11')]),_0x41bab9[_0x4fd179('0x9')]=qs[_0x4fd179('0xc')](_[_0x4fd179('0x4')](_0x466f75[_0x4fd179('0xd')],_0xea8e25[_0x4fd179('0xc')])),_0x466f75[_0x4fd179('0xd')]['filter']&&(_0x41bab9['where']=_[_0x4fd179('0x29')](_0x41bab9[_0x4fd179('0x9')],{[Op['or']]:_['map'](_0x41bab9[_0x4fd179('0xe')],function(_0x2cc2f0){const _0xaec62b=_0x4fd179,_0x3740fa={};return _0x3740fa[_0x2cc2f0]={[Op[_0xaec62b('0x28')]]:'%'+_0x466f75['query'][_0xaec62b('0x5')]+'%'},_0x3740fa;})})),_0x41bab9=_[_0x4fd179('0x29')]({},_0x41bab9,_0x466f75[_0x4fd179('0x34')]),_0x2c81ca[_0x4fd179('0x2f')](_0x41bab9);})[_0x24698f('0x10')](function(_0x21191c){const _0x479956=_0x24698f;if(_0x21191c)return _0x365a61=_0x21191c[_0x479956('0x7')],typeof _0x466f75['query']['nolimit']==='undefined'&&(_0x41bab9[_0x479956('0x1e')]=qs['limit'](_0x466f75[_0x479956('0xd')]['limit']),_0x41bab9['offset']=qs[_0x479956('0x24')](_0x466f75[_0x479956('0xd')]['offset'])),_0x2c81ca[_0x479956('0x2f')](_0x41bab9);})[_0x24698f('0x10')](function(_0x4ae5b3){if(_0x4ae5b3)return _0x4ae5b3?{'count':_0x365a61,'rows':_0x4ae5b3}:null;})[_0x24698f('0x10')](respondWithResult(_0x650f52,null))['catch'](handleError(_0x650f52,null));}; \ No newline at end of file diff --git a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js index 32c2a0b..a75de95 100644 --- a/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js +++ b/server/api/intFreshsalesConfiguration/intFreshsalesConfiguration.model.js @@ -1 +1 @@ -const a274_0x362a=['./intFreshsalesConfiguration.attributes','FreshsalesConfiguration','define','int_freshsales_configurations'];(function(_0x4dc6c4,_0x362a6e){const _0x27a1da=function(_0x220719){while(--_0x220719){_0x4dc6c4['push'](_0x4dc6c4['shift']());}};_0x27a1da(++_0x362a6e);}(a274_0x362a,0x164));const a274_0x27a1=function(_0x4dc6c4,_0x362a6e){_0x4dc6c4=_0x4dc6c4-0x0;let _0x27a1da=a274_0x362a[_0x4dc6c4];return _0x27a1da;};const _0x5b7a2d=a274_0x27a1;'use strict';const attributes=require(_0x5b7a2d('0x0'));module['exports']=function(_0x220719){const _0x5f1d58=_0x5b7a2d,_0x3c6481=_0x220719[_0x5f1d58('0x2')](_0x5f1d58('0x1'),attributes,{'tableName':_0x5f1d58('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3c6481;}; \ No newline at end of file +const a274_0x3298=['define','int_freshsales_configurations','exports'];(function(_0x46601e,_0x3298f5){const _0x52c55d=function(_0x19c05e){while(--_0x19c05e){_0x46601e['push'](_0x46601e['shift']());}};_0x52c55d(++_0x3298f5);}(a274_0x3298,0x7a));const a274_0x52c5=function(_0x46601e,_0x3298f5){_0x46601e=_0x46601e-0x0;let _0x52c55d=a274_0x3298[_0x46601e];return _0x52c55d;};const _0x151664=a274_0x52c5;'use strict';const attributes=require('./intFreshsalesConfiguration.attributes');module[_0x151664('0x0')]=function(_0x19c05e){const _0xc6a54f=_0x151664,_0x22209e=_0x19c05e[_0xc6a54f('0x1')]('FreshsalesConfiguration',attributes,{'tableName':_0xc6a54f('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x22209e;}; \ No newline at end of file diff --git a/server/api/intFreshsalesField/index.js b/server/api/intFreshsalesField/index.js index fa7b7a2..c273d2e 100644 --- a/server/api/intFreshsalesField/index.js +++ b/server/api/intFreshsalesField/index.js @@ -1 +1 @@ -const a275_0x2935=['delete','exports','destroy','get','/:id','isAuthenticated','./intFreshsalesField.controller','index','show','../../components/auth/service','create','put'];(function(_0x1c4fd8,_0x293535){const _0xfc45f9=function(_0x5313b3){while(--_0x5313b3){_0x1c4fd8['push'](_0x1c4fd8['shift']());}};_0xfc45f9(++_0x293535);}(a275_0x2935,0x19b));const a275_0xfc45=function(_0x1c4fd8,_0x293535){_0x1c4fd8=_0x1c4fd8-0x0;let _0xfc45f9=a275_0x2935[_0x1c4fd8];return _0xfc45f9;};const _0x1de61d=a275_0xfc45;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x1de61d('0x6')),controller=require(_0x1de61d('0x3'));router[_0x1de61d('0x0')]('/',auth[_0x1de61d('0x2')](),controller[_0x1de61d('0x4')]),router[_0x1de61d('0x0')]('/:id',auth['isAuthenticated'](),controller[_0x1de61d('0x5')]),router['post']('/',auth['isAuthenticated'](),controller[_0x1de61d('0x7')]),router[_0x1de61d('0x8')](_0x1de61d('0x1'),auth[_0x1de61d('0x2')](),controller['update']),router[_0x1de61d('0x9')]('/:id',auth[_0x1de61d('0x2')](),controller[_0x1de61d('0xb')]),module[_0x1de61d('0xa')]=router; \ No newline at end of file +const a275_0x294c=['isAuthenticated','express','delete','Router','put','destroy','update','index','show','../../components/auth/service','/:id','./intFreshsalesField.controller','get'];(function(_0x275589,_0x294ca6){const _0x11f25d=function(_0xe99622){while(--_0xe99622){_0x275589['push'](_0x275589['shift']());}};_0x11f25d(++_0x294ca6);}(a275_0x294c,0x93));const a275_0x11f2=function(_0x275589,_0x294ca6){_0x275589=_0x275589-0x0;let _0x11f25d=a275_0x294c[_0x275589];return _0x11f25d;};const _0x6bcfc3=a275_0x11f2;'use strict';const express=require(_0x6bcfc3('0xa')),router=express[_0x6bcfc3('0xc')](),auth=require(_0x6bcfc3('0x5')),controller=require(_0x6bcfc3('0x7'));router[_0x6bcfc3('0x8')]('/',auth[_0x6bcfc3('0x9')](),controller[_0x6bcfc3('0x3')]),router[_0x6bcfc3('0x8')](_0x6bcfc3('0x6'),auth[_0x6bcfc3('0x9')](),controller[_0x6bcfc3('0x4')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x6bcfc3('0x0')](_0x6bcfc3('0x6'),auth[_0x6bcfc3('0x9')](),controller[_0x6bcfc3('0x2')]),router[_0x6bcfc3('0xb')](_0x6bcfc3('0x6'),auth[_0x6bcfc3('0x9')](),controller[_0x6bcfc3('0x1')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.attributes.js b/server/api/intFreshsalesField/intFreshsalesField.attributes.js index 4ad7a47..205caec 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.attributes.js +++ b/server/api/intFreshsalesField/intFreshsalesField.attributes.js @@ -1 +1 @@ -const a276_0x544a=['sequelize','keyValue','customVariable','string','exports','STRING','variable','ENUM'];(function(_0x128fb6,_0x544af1){const _0x42fcda=function(_0x427e58){while(--_0x427e58){_0x128fb6['push'](_0x128fb6['shift']());}};_0x42fcda(++_0x544af1);}(a276_0x544a,0x1d9));const a276_0x42fc=function(_0x128fb6,_0x544af1){_0x128fb6=_0x128fb6-0x0;let _0x42fcda=a276_0x544a[_0x128fb6];return _0x42fcda;};const _0x4772c5=a276_0x42fc;'use strict';const Sequelize=require(_0x4772c5('0x7'));module[_0x4772c5('0x3')]={'type':{'type':Sequelize[_0x4772c5('0x6')](_0x4772c5('0x2'),_0x4772c5('0x5'),_0x4772c5('0x1'),_0x4772c5('0x0')),'defaultValue':'string'},'content':{'type':Sequelize[_0x4772c5('0x4')]},'key':{'type':Sequelize[_0x4772c5('0x4')]},'keyType':{'type':Sequelize[_0x4772c5('0x6')](_0x4772c5('0x2'),_0x4772c5('0x5'),_0x4772c5('0x1'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x4772c5('0x4')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x4772c5('0x4')]}}; \ No newline at end of file +const a276_0x4045=['customVariable','BOOLEAN','ENUM','string','STRING','sequelize','variable','keyValue','exports'];(function(_0x16f82b,_0x404541){const _0x4f4c8a=function(_0x56e4d0){while(--_0x56e4d0){_0x16f82b['push'](_0x16f82b['shift']());}};_0x4f4c8a(++_0x404541);}(a276_0x4045,0x1b6));const a276_0x4f4c=function(_0x16f82b,_0x404541){_0x16f82b=_0x16f82b-0x0;let _0x4f4c8a=a276_0x4045[_0x16f82b];return _0x4f4c8a;};const _0x4e0211=a276_0x4f4c;'use strict';const Sequelize=require(_0x4e0211('0x8'));module[_0x4e0211('0x2')]={'type':{'type':Sequelize[_0x4e0211('0x5')](_0x4e0211('0x6'),_0x4e0211('0x0'),'customVariable',_0x4e0211('0x1')),'defaultValue':_0x4e0211('0x6')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x4e0211('0x7')]},'keyType':{'type':Sequelize[_0x4e0211('0x5')](_0x4e0211('0x6'),_0x4e0211('0x0'),_0x4e0211('0x3'))},'keyContent':{'type':Sequelize[_0x4e0211('0x7')]},'idField':{'type':Sequelize[_0x4e0211('0x7')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize[_0x4e0211('0x4')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x4e0211('0x7')]}}; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.controller.js b/server/api/intFreshsalesField/intFreshsalesField.controller.js index 86fb916..b53ee12 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.controller.js +++ b/server/api/intFreshsalesField/intFreshsalesField.controller.js @@ -1 +1 @@ -const a277_0x2b69=['like','where','length','intersection','create','attributes','catch','send','type','body','undefined','filter','options','fields','rows','keys','map','status','destroy','sequelize','filters','rawAttributes','sendStatus','count','fieldName','includeAll','show','limit','then','merge','key','FreshsalesField','findOne','offset','json','set','include','model','update','query','findAll','../../config/logger','params','VIRTUAL','lodash','name','api'];(function(_0x4b17e2,_0x2b6949){const _0x2b8cc3=function(_0x31de5b){while(--_0x31de5b){_0x4b17e2['push'](_0x4b17e2['shift']());}};_0x2b8cc3(++_0x2b6949);}(a277_0x2b69,0x149));const a277_0x2b8c=function(_0x4b17e2,_0x2b6949){_0x4b17e2=_0x4b17e2-0x0;let _0x2b8cc3=a277_0x2b69[_0x4b17e2];return _0x2b8cc3;};const _0x5ddcf1=a277_0x2b8c;'use strict';const _=require(_0x5ddcf1('0x2c')),qs=require('../../components/parsers/qs'),logger=require(_0x5ddcf1('0x29'))(_0x5ddcf1('0x2e')),db=require('../../mysqldb')['db'],{Op}=require(_0x5ddcf1('0x13'));function respondWithResult(_0x31de5b,_0x48fc25){return _0x48fc25=_0x48fc25||0xc8,function(_0x122db9){const _0x3c6a9b=a277_0x2b8c;if(_0x122db9)return _0x31de5b[_0x3c6a9b('0x11')](_0x48fc25)[_0x3c6a9b('0x22')](_0x122db9);};}function respondWithFilteredResult(_0x39952c,_0x11d582){return function(_0x3f8d21){const _0x16fac2=a277_0x2b8c;if(_0x3f8d21){const _0x130f2f=_0x3f8d21[_0x16fac2('0x17')],_0x43d54c=_0x11d582[_0x16fac2('0x21')];let _0x18d050=_0x11d582[_0x16fac2('0x21')]+_0x11d582['limit'],_0x5331b8;return _0x18d050>=_0x130f2f?(_0x18d050=_0x130f2f,_0x5331b8=0xc8):_0x5331b8=0xce,_0x39952c[_0x16fac2('0x11')](_0x5331b8),_0x39952c[_0x16fac2('0x23')]('Content-Range',_0x43d54c+'-'+_0x18d050+'/'+_0x130f2f)['json'](_0x3f8d21);}return null;};}function saveUpdates(_0x4a28af){return function(_0x20a029){const _0x5de76d=a277_0x2b8c;if(_0x20a029)return _0x20a029[_0x5de76d('0x26')](_0x4a28af)['then'](function(_0x2635aa){return _0x2635aa;});return null;};}function removeEntity(_0x5d53fe){return function(_0x3caad1){const _0x258c01=a277_0x2b8c;if(_0x3caad1)return _0x3caad1[_0x258c01('0x12')]()['then'](function(){const _0x2a35fc=_0x258c01;_0x5d53fe[_0x2a35fc('0x11')](0xcc)['end']();});};}function handleEntityNotFound(_0x2d0486){return function(_0x44678c){const _0x20c213=a277_0x2b8c;return!_0x44678c&&_0x2d0486[_0x20c213('0x16')](0x194),_0x44678c;};}function handleError(_0xaf0daa,_0x40d489){return _0x40d489=_0x40d489||0x1f4,function(_0x4d5946){const _0x311c50=a277_0x2b8c;logger['error'](_0x4d5946['stack']),_0x4d5946[_0x311c50('0x2d')]&&delete _0x4d5946[_0x311c50('0x2d')],_0xaf0daa[_0x311c50('0x11')](_0x40d489)[_0x311c50('0x7')](_0x4d5946);};}exports['index']=function(_0x14dafc,_0x52deef){const _0x23eeff=_0x5ddcf1;let _0x16527f={};const _0x8f6703={},_0x357306={'count':0x0,'rows':[]},_0x1637ad=_[_0x23eeff('0x10')](db[_0x23eeff('0x1f')][_0x23eeff('0x15')],function(_0x545203){const _0x5784f8=_0x23eeff;return{'name':_0x545203[_0x5784f8('0x18')],'type':_0x545203[_0x5784f8('0x8')][_0x5784f8('0x1e')]};});_0x8f6703[_0x23eeff('0x25')]=_['map'](_0x1637ad,'name'),_0x8f6703[_0x23eeff('0x27')]=_[_0x23eeff('0xf')](_0x14dafc[_0x23eeff('0x27')]),_0x8f6703[_0x23eeff('0x14')]=_['intersection'](_0x8f6703[_0x23eeff('0x25')],_0x8f6703[_0x23eeff('0x27')]),_0x16527f['attributes']=_['intersection'](_0x8f6703[_0x23eeff('0x25')],qs[_0x23eeff('0xd')](_0x14dafc[_0x23eeff('0x27')]['fields'])),_0x16527f[_0x23eeff('0x5')]=_0x16527f[_0x23eeff('0x5')]['length']?_0x16527f[_0x23eeff('0x5')]:_0x8f6703[_0x23eeff('0x25')];typeof _0x14dafc[_0x23eeff('0x27')]['nolimit']===_0x23eeff('0xa')&&(_0x16527f[_0x23eeff('0x1b')]=qs[_0x23eeff('0x1b')](_0x14dafc[_0x23eeff('0x27')]['limit']),_0x16527f[_0x23eeff('0x21')]=qs[_0x23eeff('0x21')](_0x14dafc[_0x23eeff('0x27')][_0x23eeff('0x21')]));_0x16527f['order']=qs['sort'](_0x14dafc[_0x23eeff('0x27')]['sort']),_0x16527f['where']=qs[_0x23eeff('0x14')](_['pick'](_0x14dafc[_0x23eeff('0x27')],_0x8f6703[_0x23eeff('0x14')]),_0x1637ad);_0x14dafc[_0x23eeff('0x27')][_0x23eeff('0xb')]&&(_0x16527f[_0x23eeff('0x1')]=_[_0x23eeff('0x1d')](_0x16527f['where'],{[Op['or']]:_[_0x23eeff('0x10')](_0x1637ad,function(_0x57e7de){const _0x470c8a=_0x23eeff;if(_0x57e7de[_0x470c8a('0x8')]!==_0x470c8a('0x2b')){const _0x315b02={};return _0x315b02[_0x57e7de[_0x470c8a('0x2d')]]={[Op[_0x470c8a('0x0')]]:'%'+_0x14dafc['query'][_0x470c8a('0xb')]+'%'},_0x315b02;}})}));_0x16527f=_[_0x23eeff('0x1d')]({},_0x16527f,_0x14dafc[_0x23eeff('0xc')]);const _0x68487f={'where':_0x16527f[_0x23eeff('0x1')]};return db[_0x23eeff('0x1f')]['count'](_0x68487f)[_0x23eeff('0x1c')](function(_0x55ff2d){const _0x329701=_0x23eeff;return _0x357306[_0x329701('0x17')]=_0x55ff2d,_0x14dafc[_0x329701('0x27')][_0x329701('0x19')]&&(_0x16527f[_0x329701('0x24')]=[{'all':!![]}]),db[_0x329701('0x1f')][_0x329701('0x28')](_0x16527f);})[_0x23eeff('0x1c')](function(_0x3a304e){const _0x2b311e=_0x23eeff;return _0x357306[_0x2b311e('0xe')]=_0x3a304e,_0x357306;})[_0x23eeff('0x1c')](respondWithFilteredResult(_0x52deef,_0x16527f))[_0x23eeff('0x6')](handleError(_0x52deef,null));},exports[_0x5ddcf1('0x1a')]=function(_0x12f165,_0x2536e4){const _0x27468e=_0x5ddcf1;let _0x4da21={'raw':!![],'where':{'id':_0x12f165['params']['id']}};const _0x40265f={};return _0x40265f[_0x27468e('0x25')]=_['keys'](db[_0x27468e('0x1f')][_0x27468e('0x15')]),_0x40265f[_0x27468e('0x27')]=_['keys'](_0x12f165[_0x27468e('0x27')]),_0x40265f[_0x27468e('0x14')]=_[_0x27468e('0x3')](_0x40265f[_0x27468e('0x25')],_0x40265f[_0x27468e('0x27')]),_0x4da21['attributes']=_['intersection'](_0x40265f[_0x27468e('0x25')],qs[_0x27468e('0xd')](_0x12f165['query']['fields'])),_0x4da21[_0x27468e('0x5')]=_0x4da21[_0x27468e('0x5')][_0x27468e('0x2')]?_0x4da21[_0x27468e('0x5')]:_0x40265f['model'],_0x12f165[_0x27468e('0x27')][_0x27468e('0x19')]&&(_0x4da21[_0x27468e('0x24')]=[{'all':!![]}]),_0x4da21=_[_0x27468e('0x1d')]({},_0x4da21,_0x12f165[_0x27468e('0xc')]),db[_0x27468e('0x1f')][_0x27468e('0x20')](_0x4da21)['then'](handleEntityNotFound(_0x2536e4,null))['then'](respondWithResult(_0x2536e4,null))[_0x27468e('0x6')](handleError(_0x2536e4,null));},exports[_0x5ddcf1('0x4')]=function(_0x453457,_0x4c44c2){const _0x46a140=_0x5ddcf1;return db[_0x46a140('0x1f')][_0x46a140('0x4')](_0x453457[_0x46a140('0x9')],{})[_0x46a140('0x1c')](respondWithResult(_0x4c44c2,0xc9))[_0x46a140('0x6')](handleError(_0x4c44c2,null));},exports[_0x5ddcf1('0x26')]=function(_0x1b84dd,_0x2869c6){const _0x34056f=_0x5ddcf1;return _0x1b84dd[_0x34056f('0x9')]['id']&&delete _0x1b84dd['body']['id'],db[_0x34056f('0x1f')][_0x34056f('0x20')]({'where':{'id':_0x1b84dd[_0x34056f('0x2a')]['id']}})[_0x34056f('0x1c')](handleEntityNotFound(_0x2869c6,null))[_0x34056f('0x1c')](saveUpdates(_0x1b84dd[_0x34056f('0x9')],null))[_0x34056f('0x1c')](respondWithResult(_0x2869c6,null))[_0x34056f('0x6')](handleError(_0x2869c6,null));},exports[_0x5ddcf1('0x12')]=function(_0x31353c,_0x16866d){const _0x5b2ea4=_0x5ddcf1;return db[_0x5b2ea4('0x1f')][_0x5b2ea4('0x20')]({'where':{'id':_0x31353c[_0x5b2ea4('0x2a')]['id']}})[_0x5b2ea4('0x1c')](handleEntityNotFound(_0x16866d,null))[_0x5b2ea4('0x1c')](removeEntity(_0x16866d,null))[_0x5b2ea4('0x6')](handleError(_0x16866d,null));}; \ No newline at end of file +const a277_0x3aea=['fields','limit','catch','include','Content-Range','stack','order','findAll','status','name','json','count','body','fieldName','length','../../mysqldb','VIRTUAL','set','index','then','findOne','destroy','FreshsalesField','lodash','map','keys','offset','sendStatus','like','params','attributes','create','rawAttributes','pick','sort','filter','type','update','model','query','filters','merge','intersection','key','includeAll','where','rows','options','error'];(function(_0x2e3574,_0x3aea15){const _0x1d7207=function(_0x59ac32){while(--_0x59ac32){_0x2e3574['push'](_0x2e3574['shift']());}};_0x1d7207(++_0x3aea15);}(a277_0x3aea,0xf2));const a277_0x1d72=function(_0x2e3574,_0x3aea15){_0x2e3574=_0x2e3574-0x0;let _0x1d7207=a277_0x3aea[_0x2e3574];return _0x1d7207;};const _0x49572b=a277_0x1d72;'use strict';const _=require(_0x49572b('0x1a')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x49572b('0x12'))['db'],{Op}=require('sequelize');function respondWithResult(_0x59ac32,_0x3e8b62){return _0x3e8b62=_0x3e8b62||0xc8,function(_0x366c83){const _0x5c950e=a277_0x1d72;if(_0x366c83)return _0x59ac32[_0x5c950e('0xb')](_0x3e8b62)[_0x5c950e('0xd')](_0x366c83);};}function respondWithFilteredResult(_0x12122d,_0x323650){return function(_0x559d77){const _0x3362c2=a277_0x1d72;if(_0x559d77){const _0x44d7c0=_0x559d77['count'],_0x4c706e=_0x323650[_0x3362c2('0x1d')];let _0x42b513=_0x323650[_0x3362c2('0x1d')]+_0x323650[_0x3362c2('0x4')],_0x3b2a51;return _0x42b513>=_0x44d7c0?(_0x42b513=_0x44d7c0,_0x3b2a51=0xc8):_0x3b2a51=0xce,_0x12122d[_0x3362c2('0xb')](_0x3b2a51),_0x12122d[_0x3362c2('0x14')](_0x3362c2('0x7'),_0x4c706e+'-'+_0x42b513+'/'+_0x44d7c0)[_0x3362c2('0xd')](_0x559d77);}return null;};}function saveUpdates(_0x42fe45){return function(_0x390038){const _0x82757=a277_0x1d72;if(_0x390038)return _0x390038[_0x82757('0x28')](_0x42fe45)[_0x82757('0x16')](function(_0x423eb4){return _0x423eb4;});return null;};}function removeEntity(_0xcba834){return function(_0x42b50a){const _0x3567cd=a277_0x1d72;if(_0x42b50a)return _0x42b50a[_0x3567cd('0x18')]()['then'](function(){const _0x3aab1f=_0x3567cd;_0xcba834[_0x3aab1f('0xb')](0xcc)['end']();});};}function handleEntityNotFound(_0x4bb693){return function(_0x1c404e){const _0x2752ef=a277_0x1d72;return!_0x1c404e&&_0x4bb693[_0x2752ef('0x1e')](0x194),_0x1c404e;};}function handleError(_0x1d7e0d,_0x12d4ee){return _0x12d4ee=_0x12d4ee||0x1f4,function(_0x316ee0){const _0x566541=a277_0x1d72;logger[_0x566541('0x2')](_0x316ee0[_0x566541('0x8')]),_0x316ee0[_0x566541('0xc')]&&delete _0x316ee0['name'],_0x1d7e0d['status'](_0x12d4ee)['send'](_0x316ee0);};}exports[_0x49572b('0x15')]=function(_0x20de4a,_0x15dad5){const _0x56eb4c=_0x49572b;let _0x42f864={};const _0x8ef0ae={},_0x555757={'count':0x0,'rows':[]},_0x5693c6=_[_0x56eb4c('0x1b')](db[_0x56eb4c('0x19')][_0x56eb4c('0x23')],function(_0x610110){const _0x37860d=_0x56eb4c;return{'name':_0x610110[_0x37860d('0x10')],'type':_0x610110[_0x37860d('0x27')][_0x37860d('0x2e')]};});_0x8ef0ae['model']=_[_0x56eb4c('0x1b')](_0x5693c6,_0x56eb4c('0xc')),_0x8ef0ae[_0x56eb4c('0x2a')]=_[_0x56eb4c('0x1c')](_0x20de4a[_0x56eb4c('0x2a')]),_0x8ef0ae[_0x56eb4c('0x2b')]=_[_0x56eb4c('0x2d')](_0x8ef0ae[_0x56eb4c('0x29')],_0x8ef0ae[_0x56eb4c('0x2a')]),_0x42f864[_0x56eb4c('0x21')]=_[_0x56eb4c('0x2d')](_0x8ef0ae[_0x56eb4c('0x29')],qs[_0x56eb4c('0x3')](_0x20de4a[_0x56eb4c('0x2a')][_0x56eb4c('0x3')])),_0x42f864[_0x56eb4c('0x21')]=_0x42f864[_0x56eb4c('0x21')][_0x56eb4c('0x11')]?_0x42f864[_0x56eb4c('0x21')]:_0x8ef0ae['model'];typeof _0x20de4a[_0x56eb4c('0x2a')]['nolimit']==='undefined'&&(_0x42f864[_0x56eb4c('0x4')]=qs[_0x56eb4c('0x4')](_0x20de4a[_0x56eb4c('0x2a')][_0x56eb4c('0x4')]),_0x42f864[_0x56eb4c('0x1d')]=qs[_0x56eb4c('0x1d')](_0x20de4a[_0x56eb4c('0x2a')]['offset']));_0x42f864[_0x56eb4c('0x9')]=qs['sort'](_0x20de4a[_0x56eb4c('0x2a')][_0x56eb4c('0x25')]),_0x42f864[_0x56eb4c('0x30')]=qs[_0x56eb4c('0x2b')](_[_0x56eb4c('0x24')](_0x20de4a[_0x56eb4c('0x2a')],_0x8ef0ae[_0x56eb4c('0x2b')]),_0x5693c6);_0x20de4a[_0x56eb4c('0x2a')]['filter']&&(_0x42f864[_0x56eb4c('0x30')]=_[_0x56eb4c('0x2c')](_0x42f864[_0x56eb4c('0x30')],{[Op['or']]:_[_0x56eb4c('0x1b')](_0x5693c6,function(_0x3476c5){const _0x3ff75a=_0x56eb4c;if(_0x3476c5[_0x3ff75a('0x27')]!==_0x3ff75a('0x13')){const _0x26ce53={};return _0x26ce53[_0x3476c5[_0x3ff75a('0xc')]]={[Op[_0x3ff75a('0x1f')]]:'%'+_0x20de4a['query'][_0x3ff75a('0x26')]+'%'},_0x26ce53;}})}));_0x42f864=_[_0x56eb4c('0x2c')]({},_0x42f864,_0x20de4a['options']);const _0x5f20b8={'where':_0x42f864['where']};return db[_0x56eb4c('0x19')]['count'](_0x5f20b8)['then'](function(_0x3652c6){const _0x52fb83=_0x56eb4c;return _0x555757[_0x52fb83('0xe')]=_0x3652c6,_0x20de4a['query'][_0x52fb83('0x2f')]&&(_0x42f864[_0x52fb83('0x6')]=[{'all':!![]}]),db['FreshsalesField'][_0x52fb83('0xa')](_0x42f864);})['then'](function(_0x21b96f){const _0x38662c=_0x56eb4c;return _0x555757[_0x38662c('0x0')]=_0x21b96f,_0x555757;})['then'](respondWithFilteredResult(_0x15dad5,_0x42f864))[_0x56eb4c('0x5')](handleError(_0x15dad5,null));},exports['show']=function(_0x35b25f,_0x2166e5){const _0x47f190=_0x49572b;let _0x5a4a43={'raw':!![],'where':{'id':_0x35b25f['params']['id']}};const _0x4b24cc={};return _0x4b24cc[_0x47f190('0x29')]=_[_0x47f190('0x1c')](db['FreshsalesField'][_0x47f190('0x23')]),_0x4b24cc['query']=_[_0x47f190('0x1c')](_0x35b25f[_0x47f190('0x2a')]),_0x4b24cc['filters']=_[_0x47f190('0x2d')](_0x4b24cc[_0x47f190('0x29')],_0x4b24cc[_0x47f190('0x2a')]),_0x5a4a43[_0x47f190('0x21')]=_['intersection'](_0x4b24cc[_0x47f190('0x29')],qs['fields'](_0x35b25f[_0x47f190('0x2a')]['fields'])),_0x5a4a43['attributes']=_0x5a4a43[_0x47f190('0x21')]['length']?_0x5a4a43['attributes']:_0x4b24cc['model'],_0x35b25f[_0x47f190('0x2a')]['includeAll']&&(_0x5a4a43[_0x47f190('0x6')]=[{'all':!![]}]),_0x5a4a43=_[_0x47f190('0x2c')]({},_0x5a4a43,_0x35b25f[_0x47f190('0x1')]),db['FreshsalesField'][_0x47f190('0x17')](_0x5a4a43)['then'](handleEntityNotFound(_0x2166e5,null))[_0x47f190('0x16')](respondWithResult(_0x2166e5,null))[_0x47f190('0x5')](handleError(_0x2166e5,null));},exports[_0x49572b('0x22')]=function(_0x3e154d,_0x2df2a9){const _0x4a4882=_0x49572b;return db['FreshsalesField'][_0x4a4882('0x22')](_0x3e154d[_0x4a4882('0xf')],{})[_0x4a4882('0x16')](respondWithResult(_0x2df2a9,0xc9))['catch'](handleError(_0x2df2a9,null));},exports['update']=function(_0x199dc8,_0x5b746e){const _0x2165a7=_0x49572b;return _0x199dc8[_0x2165a7('0xf')]['id']&&delete _0x199dc8[_0x2165a7('0xf')]['id'],db[_0x2165a7('0x19')]['findOne']({'where':{'id':_0x199dc8['params']['id']}})[_0x2165a7('0x16')](handleEntityNotFound(_0x5b746e,null))[_0x2165a7('0x16')](saveUpdates(_0x199dc8['body'],null))[_0x2165a7('0x16')](respondWithResult(_0x5b746e,null))[_0x2165a7('0x5')](handleError(_0x5b746e,null));},exports[_0x49572b('0x18')]=function(_0x4c901d,_0x1b4448){const _0x492c80=_0x49572b;return db[_0x492c80('0x19')][_0x492c80('0x17')]({'where':{'id':_0x4c901d[_0x492c80('0x20')]['id']}})[_0x492c80('0x16')](handleEntityNotFound(_0x1b4448,null))['then'](removeEntity(_0x1b4448,null))['catch'](handleError(_0x1b4448,null));}; \ No newline at end of file diff --git a/server/api/intFreshsalesField/intFreshsalesField.model.js b/server/api/intFreshsalesField/intFreshsalesField.model.js index 3572f8d..6249eb9 100644 --- a/server/api/intFreshsalesField/intFreshsalesField.model.js +++ b/server/api/intFreshsalesField/intFreshsalesField.model.js @@ -1 +1 @@ -const a278_0x5e25=['define','./intFreshsalesField.attributes','freshsales_unique_index','exports','idField','FieldId','int_freshsales_fields'];(function(_0x23ded4,_0x5e2590){const _0x101f26=function(_0x40136a){while(--_0x40136a){_0x23ded4['push'](_0x23ded4['shift']());}};_0x101f26(++_0x5e2590);}(a278_0x5e25,0x16f));const a278_0x101f=function(_0x23ded4,_0x5e2590){_0x23ded4=_0x23ded4-0x0;let _0x101f26=a278_0x5e25[_0x23ded4];return _0x101f26;};const _0x515c69=a278_0x101f;'use strict';const attributes=require(_0x515c69('0x5'));module[_0x515c69('0x0')]=function(_0x40136a){const _0x371b72=_0x515c69,_0x29fd6b=_0x40136a[_0x371b72('0x4')]('FreshsalesField',attributes,{'tableName':_0x371b72('0x3'),'paranoid':![],'indexes':[{'name':_0x371b72('0x6'),'fields':[_0x371b72('0x1'),_0x371b72('0x2')],'unique':!![]}],'timestamps':!![]});return _0x29fd6b;}; \ No newline at end of file +const a278_0x5825=['define','int_freshsales_fields','./intFreshsalesField.attributes','freshsales_unique_index','exports'];(function(_0x2da95c,_0x582509){const _0x5d51b7=function(_0x5d7fb8){while(--_0x5d7fb8){_0x2da95c['push'](_0x2da95c['shift']());}};_0x5d51b7(++_0x582509);}(a278_0x5825,0x1f2));const a278_0x5d51=function(_0x2da95c,_0x582509){_0x2da95c=_0x2da95c-0x0;let _0x5d51b7=a278_0x5825[_0x2da95c];return _0x5d51b7;};const _0xbd6931=a278_0x5d51;'use strict';const attributes=require(_0xbd6931('0x4'));module[_0xbd6931('0x1')]=function(_0x5d7fb8){const _0x172b11=_0xbd6931,_0x50bbb8=_0x5d7fb8[_0x172b11('0x2')]('FreshsalesField',attributes,{'tableName':_0x172b11('0x3'),'paranoid':![],'indexes':[{'name':_0x172b11('0x0'),'fields':['idField','FieldId'],'unique':!![]}],'timestamps':!![]});return _0x50bbb8;}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/index.js b/server/api/intSalesforceAccount/index.js index d470e9e..1c38564 100644 --- a/server/api/intSalesforceAccount/index.js +++ b/server/api/intSalesforceAccount/index.js @@ -1 +1 @@ -const a279_0x4b96=['express','update','addConfiguration','/:id','create','Router','index','get','exports','delete','show','../../components/auth/service','getFields','/:id/fields','post','isAuthenticated','./intSalesforceAccount.controller'];(function(_0x250bf6,_0x4b96f7){const _0x3f2be9=function(_0x36bb40){while(--_0x36bb40){_0x250bf6['push'](_0x250bf6['shift']());}};_0x3f2be9(++_0x4b96f7);}(a279_0x4b96,0xee));const a279_0x3f2b=function(_0x250bf6,_0x4b96f7){_0x250bf6=_0x250bf6-0x0;let _0x3f2be9=a279_0x4b96[_0x250bf6];return _0x3f2be9;};const _0x1174ce=a279_0x3f2b;'use strict';const express=require(_0x1174ce('0x0')),router=express[_0x1174ce('0x5')](),auth=require(_0x1174ce('0xb')),controller=require(_0x1174ce('0x10'));router['get']('/',auth[_0x1174ce('0xf')](),controller[_0x1174ce('0x6')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x1174ce('0xa')]),router['get']('/:id/configurations',auth['isAuthenticated'](),controller['getConfigurations']),router[_0x1174ce('0x7')](_0x1174ce('0xd'),auth[_0x1174ce('0xf')](),controller[_0x1174ce('0xc')]),router[_0x1174ce('0xe')]('/',auth[_0x1174ce('0xf')](),controller[_0x1174ce('0x4')]),router[_0x1174ce('0xe')]('/:id/configurations',auth[_0x1174ce('0xf')](),controller[_0x1174ce('0x2')]),router['put'](_0x1174ce('0x3'),auth['isAuthenticated'](),controller[_0x1174ce('0x1')]),router[_0x1174ce('0x9')]('/:id',auth[_0x1174ce('0xf')](),controller['destroy']),module[_0x1174ce('0x8')]=router; \ No newline at end of file +const a279_0x3882=['getConfigurations','create','destroy','update','isAuthenticated','./intSalesforceAccount.controller','post','index','put','exports','/:id/fields','../../components/auth/service','express','get','/:id','/:id/configurations','delete'];(function(_0x2c40a1,_0x388292){const _0x4399a3=function(_0x1c0c7a){while(--_0x1c0c7a){_0x2c40a1['push'](_0x2c40a1['shift']());}};_0x4399a3(++_0x388292);}(a279_0x3882,0xf7));const a279_0x4399=function(_0x2c40a1,_0x388292){_0x2c40a1=_0x2c40a1-0x0;let _0x4399a3=a279_0x3882[_0x2c40a1];return _0x4399a3;};const _0x7b5320=a279_0x4399;'use strict';const express=require(_0x7b5320('0x3')),router=express['Router'](),auth=require(_0x7b5320('0x2')),controller=require(_0x7b5320('0xd'));router[_0x7b5320('0x4')]('/',auth['isAuthenticated'](),controller[_0x7b5320('0xf')]),router['get'](_0x7b5320('0x5'),auth[_0x7b5320('0xc')](),controller['show']),router[_0x7b5320('0x4')](_0x7b5320('0x6'),auth['isAuthenticated'](),controller[_0x7b5320('0x8')]),router[_0x7b5320('0x4')](_0x7b5320('0x1'),auth['isAuthenticated'](),controller['getFields']),router[_0x7b5320('0xe')]('/',auth['isAuthenticated'](),controller[_0x7b5320('0x9')]),router['post'](_0x7b5320('0x6'),auth[_0x7b5320('0xc')](),controller['addConfiguration']),router[_0x7b5320('0x10')](_0x7b5320('0x5'),auth[_0x7b5320('0xc')](),controller[_0x7b5320('0xb')]),router[_0x7b5320('0x7')](_0x7b5320('0x5'),auth[_0x7b5320('0xc')](),controller[_0x7b5320('0xa')]),module[_0x7b5320('0x0')]=router; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js index 199323e..3f4bbb8 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.attributes.js @@ -1 +1 @@ -const a280_0x1486=['sequelize','STRING','username'];(function(_0x12d91a,_0x148651){const _0x1ad767=function(_0x3fe895){while(--_0x3fe895){_0x12d91a['push'](_0x12d91a['shift']());}};_0x1ad767(++_0x148651);}(a280_0x1486,0x1a2));const a280_0x1ad7=function(_0x12d91a,_0x148651){_0x12d91a=_0x12d91a-0x0;let _0x1ad767=a280_0x1486[_0x12d91a];return _0x1ad767;};const _0x54998a=a280_0x1ad7;'use strict';const Sequelize=require(_0x54998a('0x2'));module['exports']={'name':{'type':Sequelize[_0x54998a('0x0')]},'description':{'type':Sequelize[_0x54998a('0x0')]},'username':{'type':Sequelize[_0x54998a('0x0')],'unique':_0x54998a('0x1')},'remoteUri':{'type':Sequelize[_0x54998a('0x0')]},'password':{'type':Sequelize[_0x54998a('0x0')]},'clientId':{'type':Sequelize[_0x54998a('0x0')]},'clientSecret':{'type':Sequelize[_0x54998a('0x0')]},'securityToken':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize[_0x54998a('0x0')]},'type':{'type':Sequelize['ENUM']('integrationTab','newTab'),'defaultValue':'integrationTab'}}; \ No newline at end of file +const a280_0x4ee9=['STRING','integrationTab','newTab','sequelize','username','exports','ENUM'];(function(_0x373c91,_0x4ee9c8){const _0x566d31=function(_0x4f3acc){while(--_0x4f3acc){_0x373c91['push'](_0x373c91['shift']());}};_0x566d31(++_0x4ee9c8);}(a280_0x4ee9,0x68));const a280_0x566d=function(_0x373c91,_0x4ee9c8){_0x373c91=_0x373c91-0x0;let _0x566d31=a280_0x4ee9[_0x373c91];return _0x566d31;};const _0x50e2e1=a280_0x566d;'use strict';const Sequelize=require(_0x50e2e1('0x4'));module[_0x50e2e1('0x6')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize['STRING']},'username':{'type':Sequelize['STRING'],'unique':_0x50e2e1('0x5')},'remoteUri':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x50e2e1('0x1')]},'clientId':{'type':Sequelize[_0x50e2e1('0x1')]},'clientSecret':{'type':Sequelize['STRING']},'securityToken':{'type':Sequelize[_0x50e2e1('0x1')]},'serverUrl':{'type':Sequelize[_0x50e2e1('0x1')]},'type':{'type':Sequelize[_0x50e2e1('0x0')](_0x50e2e1('0x2'),_0x50e2e1('0x3')),'defaultValue':'integrationTab'}}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js index 1a928ac..54ec39a 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.controller.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.controller.js @@ -1 +1 @@ -const a281_0x3fb6=['offset','include','type','Status','Connection','map','ticketType','Type','False','True','getConfigurations','getFields,\x20%s,\x20%s,\x20%s','sobject','securityToken','update','keys','username','AccountId','intersection','status','where','password','remoteUri','options','pick','Case','statusCode','VIRTUAL','Content-Range','order','Priority','body','stack','rows','login','nolimit','true','SalesforceAccount','show','create','filter','query','fields','includes','send','length','includeAll','catch','lodash','picklistValues','index','custom','test','name','like','set','merge','value','getFields','Descriptions','SalesforceConfiguration','clientSecret','Origin','error','params','false','filters','jsforce','SuppliedName','Subjects','clientId','sequelize','attributes','CallType','limit','sort','stringify','destroy','end','slice','then','lastIndexOf','channel','concat','model','key','count','label','SalesforceField','IsArchived','Reason','../../components/parsers/qs','findAll','Wrong\x20credentials','substring','../../components/integrations/configuration','isNil','findOne','json','../../mysqldb','../../config/logger','rawAttributes','SuppliedCompany','api','sendStatus'];(function(_0x3dbf56,_0x3fb643){const _0x27545b=function(_0x4cf41d){while(--_0x4cf41d){_0x3dbf56['push'](_0x3dbf56['shift']());}};_0x27545b(++_0x3fb643);}(a281_0x3fb6,0x169));const a281_0x2754=function(_0x3dbf56,_0x3fb643){_0x3dbf56=_0x3dbf56-0x0;let _0x27545b=a281_0x3fb6[_0x3dbf56];return _0x27545b;};const _0x426f64=a281_0x2754;'use strict';const _=require(_0x426f64('0x2')),jsforce=require(_0x426f64('0x15')),qs=require(_0x426f64('0x2d')),logger=require(_0x426f64('0x36'))(_0x426f64('0x39')),db=require(_0x426f64('0x35'))['db'],{Op}=require(_0x426f64('0x19')),integrations=require(_0x426f64('0x31'));function respondWithResult(_0x4cf41d,_0x3df37b){return _0x3df37b=_0x3df37b||0xc8,function(_0x3ea1d8){if(_0x3ea1d8)return _0x4cf41d['status'](_0x3df37b)['json'](_0x3ea1d8);};}function respondWithFilteredResult(_0x1bfb8a,_0x37ec89){return function(_0x5ef870){const _0x122543=a281_0x2754;if(_0x5ef870){const _0x48a3e3=_0x5ef870[_0x122543('0x28')],_0x28f122=_0x37ec89[_0x122543('0x3b')];let _0x4402f7=_0x37ec89[_0x122543('0x3b')]+_0x37ec89[_0x122543('0x1c')],_0x549330;return _0x4402f7>=_0x48a3e3?(_0x4402f7=_0x48a3e3,_0x549330=0xc8):_0x549330=0xce,_0x1bfb8a[_0x122543('0x4e')](_0x549330),_0x1bfb8a[_0x122543('0x9')](_0x122543('0x57'),_0x28f122+'-'+_0x4402f7+'/'+_0x48a3e3)[_0x122543('0x34')](_0x5ef870);}return null;};}function saveUpdates(_0x5942cc){return function(_0x30f3b0){const _0x4681f0=a281_0x2754;if(_0x30f3b0)return _0x30f3b0[_0x4681f0('0x49')](_0x5942cc)['then'](function(_0x267963){return _0x267963;});return null;};}function removeEntity(_0x59502b){return function(_0x5d592b){const _0x39b98c=a281_0x2754;if(_0x5d592b)return _0x5d592b[_0x39b98c('0x1f')]()['then'](function(){const _0x3ec591=_0x39b98c;_0x59502b[_0x3ec591('0x4e')](0xcc)[_0x3ec591('0x20')]();});};}function handleEntityNotFound(_0x48f3f8){return function(_0x43384c){const _0x432f22=a281_0x2754;return!_0x43384c&&_0x48f3f8[_0x432f22('0x3a')](0x194),_0x43384c;};}function handleError(_0x1c9ef4,_0x3bc8e9){return _0x3bc8e9=_0x3bc8e9||0x1f4,function(_0xd51629){const _0x1ada5f=a281_0x2754;logger[_0x1ada5f('0x11')](_0xd51629[_0x1ada5f('0x5b')]),_0xd51629[_0x1ada5f('0x7')]&&delete _0xd51629[_0x1ada5f('0x7')],_0x1c9ef4[_0x1ada5f('0x4e')](_0x3bc8e9)[_0x1ada5f('0x67')](_0xd51629);};}exports[_0x426f64('0x4')]=function(_0x27866f,_0x2fe726){const _0x48affe=_0x426f64;let _0x56b2ea={};const _0x3cd7aa={},_0x46e3e1={'count':0x0,'rows':[]},_0x1c1cf4=_[_0x48affe('0x40')](db['SalesforceAccount'][_0x48affe('0x37')],function(_0x5d13e8){const _0x3f8c8e=_0x48affe;return{'name':_0x5d13e8['fieldName'],'type':_0x5d13e8[_0x3f8c8e('0x3d')][_0x3f8c8e('0x27')]};});_0x3cd7aa['model']=_[_0x48affe('0x40')](_0x1c1cf4,_0x48affe('0x7')),_0x3cd7aa[_0x48affe('0x64')]=_[_0x48affe('0x4a')](_0x27866f[_0x48affe('0x64')]),_0x3cd7aa['filters']=_['intersection'](_0x3cd7aa[_0x48affe('0x26')],_0x3cd7aa[_0x48affe('0x64')]),_0x56b2ea[_0x48affe('0x1a')]=_['intersection'](_0x3cd7aa[_0x48affe('0x26')],qs[_0x48affe('0x65')](_0x27866f['query'][_0x48affe('0x65')])),_0x56b2ea['attributes']=_0x56b2ea['attributes'][_0x48affe('0x68')]?_0x56b2ea['attributes']:_0x3cd7aa[_0x48affe('0x26')];typeof _0x27866f[_0x48affe('0x64')][_0x48affe('0x5e')]==='undefined'&&(_0x56b2ea[_0x48affe('0x1c')]=qs[_0x48affe('0x1c')](_0x27866f[_0x48affe('0x64')][_0x48affe('0x1c')]),_0x56b2ea[_0x48affe('0x3b')]=qs[_0x48affe('0x3b')](_0x27866f[_0x48affe('0x64')]['offset']));_0x56b2ea['order']=qs[_0x48affe('0x1d')](_0x27866f['query'][_0x48affe('0x1d')]),_0x56b2ea['where']=qs[_0x48affe('0x14')](_[_0x48affe('0x53')](_0x27866f[_0x48affe('0x64')],_0x3cd7aa[_0x48affe('0x14')]),_0x1c1cf4);_0x27866f['query'][_0x48affe('0x63')]&&(_0x56b2ea[_0x48affe('0x4f')]=_['merge'](_0x56b2ea[_0x48affe('0x4f')],{[Op['or']]:_[_0x48affe('0x40')](_0x1c1cf4,function(_0x5e1007){const _0x24fa95=_0x48affe;if(_0x5e1007[_0x24fa95('0x3d')]!==_0x24fa95('0x56')){const _0x23e0dd={};return _0x23e0dd[_0x5e1007['name']]={[Op['like']]:'%'+_0x27866f[_0x24fa95('0x64')]['filter']+'%'},_0x23e0dd;}})}));_0x56b2ea=_[_0x48affe('0xa')]({},_0x56b2ea,_0x27866f[_0x48affe('0x52')]);const _0x138101={'where':_0x56b2ea[_0x48affe('0x4f')]};return db[_0x48affe('0x60')][_0x48affe('0x28')](_0x138101)['then'](function(_0x550bc0){const _0x2313bb=_0x48affe;return _0x46e3e1[_0x2313bb('0x28')]=_0x550bc0,_0x27866f[_0x2313bb('0x64')][_0x2313bb('0x0')]&&(_0x56b2ea[_0x2313bb('0x3c')]=[{'all':!![]}]),db['SalesforceAccount'][_0x2313bb('0x2e')](_0x56b2ea);})[_0x48affe('0x22')](function(_0x3c0aed){const _0x1b05de=_0x48affe;return _0x46e3e1[_0x1b05de('0x5c')]=_0x3c0aed,_0x46e3e1;})[_0x48affe('0x22')](respondWithFilteredResult(_0x2fe726,_0x56b2ea))[_0x48affe('0x1')](handleError(_0x2fe726,null));},exports[_0x426f64('0x61')]=function(_0x19a910,_0x4c94a6){const _0x397d57=_0x426f64;let _0x2b6b92={'raw':![],'where':{'id':_0x19a910[_0x397d57('0x12')]['id']}};const _0x3985e3={};return _0x3985e3[_0x397d57('0x26')]=_[_0x397d57('0x4a')](db[_0x397d57('0x60')][_0x397d57('0x37')]),_0x3985e3[_0x397d57('0x64')]=_[_0x397d57('0x4a')](_0x19a910[_0x397d57('0x64')]),_0x3985e3[_0x397d57('0x14')]=_[_0x397d57('0x4d')](_0x3985e3['model'],_0x3985e3[_0x397d57('0x64')]),_0x2b6b92[_0x397d57('0x1a')]=_[_0x397d57('0x4d')](_0x3985e3['model'],qs[_0x397d57('0x65')](_0x19a910[_0x397d57('0x64')][_0x397d57('0x65')])),_0x2b6b92[_0x397d57('0x1a')]=_0x2b6b92[_0x397d57('0x1a')][_0x397d57('0x68')]?_0x2b6b92[_0x397d57('0x1a')]:_0x3985e3[_0x397d57('0x26')],_0x19a910['query'][_0x397d57('0x0')]&&(_0x2b6b92[_0x397d57('0x3c')]=[{'all':!![]}]),_0x2b6b92=_[_0x397d57('0xa')]({},_0x2b6b92,_0x19a910[_0x397d57('0x52')]),db[_0x397d57('0x60')][_0x397d57('0x33')](_0x2b6b92)[_0x397d57('0x22')](handleEntityNotFound(_0x4c94a6,null))[_0x397d57('0x22')](respondWithResult(_0x4c94a6,null))['catch'](handleError(_0x4c94a6,null));},exports[_0x426f64('0x62')]=function(_0x3928eb,_0x143776){const _0x273e03=_0x426f64;return db[_0x273e03('0x60')][_0x273e03('0x62')](_0x3928eb['body'],{})[_0x273e03('0x22')](respondWithResult(_0x143776,0xc9))[_0x273e03('0x1')](handleError(_0x143776,null));},exports[_0x426f64('0x49')]=function(_0x2a250b,_0x4ee431){const _0x106428=_0x426f64;return _0x2a250b['body']['id']&&delete _0x2a250b[_0x106428('0x5a')]['id'],db[_0x106428('0x60')][_0x106428('0x33')]({'where':{'id':_0x2a250b['params']['id']}})[_0x106428('0x22')](handleEntityNotFound(_0x4ee431,null))[_0x106428('0x22')](saveUpdates(_0x2a250b['body'],null))[_0x106428('0x22')](respondWithResult(_0x4ee431,null))[_0x106428('0x1')](handleError(_0x4ee431,null));},exports[_0x426f64('0x1f')]=function(_0x2433b9,_0x5b7a62){const _0x5218d9=_0x426f64;return db['SalesforceAccount'][_0x5218d9('0x33')]({'where':{'id':_0x2433b9['params']['id']}})['then'](handleEntityNotFound(_0x5b7a62,null))[_0x5218d9('0x22')](removeEntity(_0x5b7a62,null))[_0x5218d9('0x1')](handleError(_0x5b7a62,null));},exports[_0x426f64('0x45')]=function(_0x50f2be,_0x38e241){const _0x15475f=_0x426f64;let _0x19a849={};const _0xc2f6f0={};let _0x1732a3,_0x30731b;return db[_0x15475f('0x60')][_0x15475f('0x33')]({'where':{'id':_0x50f2be[_0x15475f('0x12')]['id']}})[_0x15475f('0x22')](handleEntityNotFound(_0x38e241,null))[_0x15475f('0x22')](function(_0x3163ab){const _0x5d92bf=_0x15475f;if(_0x3163ab)return _0x1732a3=_0x3163ab,_0xc2f6f0[_0x5d92bf('0x26')]=_[_0x5d92bf('0x4a')](db['SalesforceConfiguration']['rawAttributes']),_0xc2f6f0[_0x5d92bf('0x64')]=_[_0x5d92bf('0x4a')](_0x50f2be[_0x5d92bf('0x64')]),_0xc2f6f0[_0x5d92bf('0x14')]=_[_0x5d92bf('0x4d')](_0xc2f6f0[_0x5d92bf('0x26')],_0xc2f6f0['query']),_0x19a849[_0x5d92bf('0x1a')]=_[_0x5d92bf('0x4d')](_0xc2f6f0['model'],qs[_0x5d92bf('0x65')](_0x50f2be[_0x5d92bf('0x64')][_0x5d92bf('0x65')])),_0x19a849[_0x5d92bf('0x1a')]=_0x19a849[_0x5d92bf('0x1a')][_0x5d92bf('0x68')]?_0x19a849[_0x5d92bf('0x1a')]:_0xc2f6f0[_0x5d92bf('0x26')],_0x19a849[_0x5d92bf('0x58')]=qs[_0x5d92bf('0x1d')](_0x50f2be[_0x5d92bf('0x64')][_0x5d92bf('0x1d')]),_0x19a849[_0x5d92bf('0x4f')]=qs[_0x5d92bf('0x14')](_[_0x5d92bf('0x53')](_0x50f2be[_0x5d92bf('0x64')],_0xc2f6f0['filters'])),_0x50f2be['query'][_0x5d92bf('0x63')]&&(_0x19a849['where']=_[_0x5d92bf('0xa')](_0x19a849[_0x5d92bf('0x4f')],{[Op['or']]:_[_0x5d92bf('0x40')](_0x19a849[_0x5d92bf('0x1a')],function(_0x389dfd){const _0x3880cd=_0x5d92bf,_0x55b232={};return _0x55b232[_0x389dfd]={[Op[_0x3880cd('0x8')]]:'%'+_0x50f2be[_0x3880cd('0x64')]['filter']+'%'},_0x55b232;})})),_0x19a849=_[_0x5d92bf('0xa')]({},_0x19a849,_0x50f2be[_0x5d92bf('0x52')]),_0x1732a3[_0x5d92bf('0x45')](_0x19a849);})['then'](function(_0x43bd03){const _0x4a778f=_0x15475f;if(_0x43bd03)return _0x30731b=_0x43bd03['length'],typeof _0x50f2be[_0x4a778f('0x64')][_0x4a778f('0x5e')]==='undefined'&&(_0x19a849[_0x4a778f('0x1c')]=qs['limit'](_0x50f2be[_0x4a778f('0x64')][_0x4a778f('0x1c')]),_0x19a849[_0x4a778f('0x3b')]=qs[_0x4a778f('0x3b')](_0x50f2be['query']['offset'])),_0x1732a3[_0x4a778f('0x45')](_0x19a849);})['then'](function(_0x550094){if(_0x550094)return _0x550094?{'count':_0x30731b,'rows':_0x550094}:null;})[_0x15475f('0x22')](respondWithResult(_0x38e241,null))[_0x15475f('0x1')](handleError(_0x38e241,null));},exports['addConfiguration']=function(_0x5b734f,_0x38bcec){const _0x5359db=_0x426f64;return _0x5b734f[_0x5359db('0x5a')]['id']&&delete _0x5b734f[_0x5359db('0x5a')]['id'],db[_0x5359db('0x60')][_0x5359db('0x33')]({'where':{'id':_0x5b734f[_0x5359db('0x12')]['id']}})[_0x5359db('0x22')](handleEntityNotFound(_0x38bcec,null))[_0x5359db('0x22')](function(_0x1a6929){const _0x2d8273=_0x5359db;if(_0x1a6929)return _0x5b734f[_0x2d8273('0x5a')][_0x2d8273('0x4c')]=_0x1a6929['id'],_0x5b734f[_0x2d8273('0x5a')]['Subjects']=integrations['getSubjects'](_0x5b734f[_0x2d8273('0x5a')][_0x2d8273('0x24')],_0x5b734f[_0x2d8273('0x5a')][_0x2d8273('0x3d')]),_0x5b734f['body'][_0x2d8273('0xd')]=integrations['getDescriptions'](_0x5b734f[_0x2d8273('0x5a')][_0x2d8273('0x24')],_0x5b734f[_0x2d8273('0x5a')][_0x2d8273('0x3d')]),db[_0x2d8273('0xe')][_0x2d8273('0x62')](_0x5b734f[_0x2d8273('0x5a')],{'include':[{'model':db[_0x2d8273('0x2a')],'as':_0x2d8273('0x17')},{'model':db[_0x2d8273('0x2a')],'as':_0x2d8273('0xd')}]});return null;})[_0x5359db('0x22')](respondWithResult(_0x38bcec,null))[_0x5359db('0x1')](handleError(_0x38bcec,null));},exports[_0x426f64('0xc')]=function(_0x1a0305,_0x3cffff){const _0x516e8a=_0x426f64;let _0x3eb3ad,_0x35ef89='',_0x5e78c4='Task';return db[_0x516e8a('0x60')][_0x516e8a('0x33')]({'where':{'id':_0x1a0305['params']['id']},'attributes':['id','remoteUri',_0x516e8a('0x18'),_0x516e8a('0xf'),_0x516e8a('0x4b'),_0x516e8a('0x50'),_0x516e8a('0x48')]})[_0x516e8a('0x22')](handleEntityNotFound(_0x3cffff,null))[_0x516e8a('0x22')](function(_0x4835f1){const _0x5afce4=_0x516e8a;if(_0x4835f1){_0x35ef89=_0x4835f1[_0x5afce4('0x51')];const _0x44628d=_0x35ef89[_0x5afce4('0x21')](-0x1);return _0x44628d==='/'&&(_0x35ef89=_0x35ef89[_0x5afce4('0x30')](0x0,_0x35ef89[_0x5afce4('0x23')](_0x44628d))),_0x3eb3ad=new jsforce[(_0x5afce4('0x3f'))]({'oauth2':{'loginUrl':_0x35ef89,'clientId':_0x4835f1['clientId'],'clientSecret':_0x4835f1['clientSecret']}}),_0x3eb3ad[_0x5afce4('0x5d')](_0x4835f1['username'],_0x4835f1[_0x5afce4('0x50')][_0x5afce4('0x25')](_0x4835f1[_0x5afce4('0x48')]));}})[_0x516e8a('0x22')](function(_0x542d58){const _0x5eb434=_0x516e8a;if(_0x542d58)return!_[_0x5eb434('0x32')](_0x1a0305[_0x5eb434('0x64')][_0x5eb434('0x41')])&&(_0x5e78c4=_0x1a0305['query']['ticketType']),_0x3eb3ad[_0x5eb434('0x47')](_0x5e78c4)['describe']();})['then'](function(_0x1a5af4){const _0x53131c=_0x516e8a;let _0x1444a8=['CallDisposition','CallDurationInSeconds','CallObject',_0x53131c('0x1b'),_0x53131c('0x2b'),_0x53131c('0x59'),_0x53131c('0x3e'),_0x53131c('0x42')];!_[_0x53131c('0x32')](_0x1a0305[_0x53131c('0x64')][_0x53131c('0x41')])&&_0x1a0305[_0x53131c('0x64')]['ticketType']===_0x53131c('0x54')&&(_0x1444a8=[_0x53131c('0x42'),_0x53131c('0x10'),_0x53131c('0x2c'),'Status',_0x53131c('0x59'),'IsEscalated',_0x53131c('0x16'),_0x53131c('0x38')]);if(_0x1a5af4)return _['remove'](_0x1a5af4[_0x53131c('0x65')],function(_0x18d95e){const _0x3d8ddd=_0x53131c;return _0x18d95e['custom']===![]&&!_0x1444a8[_0x3d8ddd('0x66')](_0x18d95e[_0x3d8ddd('0x7')]);}),{'count':_0x1a5af4[_0x53131c('0x65')][_0x53131c('0x68')],'rows':_[_0x53131c('0x40')](_0x1a5af4[_0x53131c('0x65')],function(_0x493bc4){const _0x5a9971=_0x53131c;return{'id':_0x493bc4['name'],'name':_0x493bc4[_0x5a9971('0x29')],'custom':_0x493bc4[_0x5a9971('0x5')],'options':_0x493bc4[_0x5a9971('0x3')][_0x5a9971('0x68')]>0x0?_[_0x5a9971('0x40')](_0x493bc4['picklistValues'],function(_0x5535a0){const _0x39aef2=_0x5a9971;return{'name':_0x5535a0['label'],'value':_0x5535a0[_0x39aef2('0xb')]};}):_0x493bc4[_0x5a9971('0x3d')]=='boolean'?[{'name':_0x5a9971('0x44'),'value':_0x5a9971('0x5f')},{'name':_0x5a9971('0x43'),'value':_0x5a9971('0x13')}]:[]};})};})[_0x516e8a('0x22')](respondWithResult(_0x3cffff,null))[_0x516e8a('0x1')](function(_0xfc5e93){const _0x1e4a3e=_0x516e8a;let _0x5df3f7=_0x1a0305[_0x1e4a3e('0x64')][_0x1e4a3e('0x6')]?0x1f4:_0xfc5e93[_0x1e4a3e('0x55')]||0x1f4;logger[_0x1e4a3e('0x11')](_0x1e4a3e('0x46'),_0x1e4a3e('0xc'),_0x5df3f7,JSON[_0x1e4a3e('0x1e')](_0xfc5e93)),delete _0xfc5e93[_0x1e4a3e('0x7')],_0x5df3f7===0x191&&(_0x5df3f7=0x190),_0x3cffff[_0x1e4a3e('0x4e')](_0x5df3f7)[_0x1e4a3e('0x67')](_0x1a0305[_0x1e4a3e('0x64')][_0x1e4a3e('0x6')]?{'message':_0x1e4a3e('0x2f'),'statusCode':_0xfc5e93[_0x1e4a3e('0x55')]}:_0xfc5e93);});}; \ No newline at end of file +const a281_0x1cb6=['Content-Range','channel','rawAttributes','stack','key','Reason','../../mysqldb','../../components/integrations/configuration','name','custom','remove','update','SalesforceAccount','False','map','getFields,\x20%s,\x20%s,\x20%s','statusCode','value','filters','json','SuppliedName','SalesforceConfiguration','isNil','CallType','includeAll','test','attributes','login','../../config/logger','remoteUri','lodash','True','type','length','filter','getDescriptions','SuppliedCompany','Status','merge','catch','create','include','nolimit','CallDurationInSeconds','Priority','sendStatus','VIRTUAL','true','api','sort','sequelize','IsArchived','Descriptions','like','picklistValues','getFields','getSubjects','model','destroy','getConfigurations','undefined','send','rows','Task','Case','../../components/parsers/qs','SalesforceField','show','password','intersection','slice','clientSecret','AccountId','label','Subjects','clientId','set','status','addConfiguration','count','order','securityToken','body','offset','findAll','lastIndexOf','then','Connection','query','limit','CallObject','index','params','error','CallDisposition','fields','Type','ticketType','findOne','options','where','jsforce','includes','keys','pick'];(function(_0x27f9f6,_0x1cb607){const _0x4f9f9d=function(_0x5e668c){while(--_0x5e668c){_0x27f9f6['push'](_0x27f9f6['shift']());}};_0x4f9f9d(++_0x1cb607);}(a281_0x1cb6,0xfe));const a281_0x4f9f=function(_0x27f9f6,_0x1cb607){_0x27f9f6=_0x27f9f6-0x0;let _0x4f9f9d=a281_0x1cb6[_0x27f9f6];return _0x4f9f9d;};const _0x48e5c0=a281_0x4f9f;'use strict';const _=require(_0x48e5c0('0x5b')),jsforce=require(_0x48e5c0('0x39')),qs=require(_0x48e5c0('0x15')),logger=require(_0x48e5c0('0x59'))(_0x48e5c0('0x4')),db=require(_0x48e5c0('0x43'))['db'],{Op}=require(_0x48e5c0('0x6')),integrations=require(_0x48e5c0('0x44'));function respondWithResult(_0x5e668c,_0x2407d8){return _0x2407d8=_0x2407d8||0xc8,function(_0x45e423){const _0x4f1cd5=a281_0x4f9f;if(_0x45e423)return _0x5e668c['status'](_0x2407d8)[_0x4f1cd5('0x50')](_0x45e423);};}function respondWithFilteredResult(_0x337fa0,_0x403715){return function(_0x4dff15){const _0x3b83d6=a281_0x4f9f;if(_0x4dff15){const _0x553b65=_0x4dff15[_0x3b83d6('0x23')],_0x55839a=_0x403715['offset'];let _0x2f7612=_0x403715[_0x3b83d6('0x27')]+_0x403715[_0x3b83d6('0x2d')],_0x5a9413;return _0x2f7612>=_0x553b65?(_0x2f7612=_0x553b65,_0x5a9413=0xc8):_0x5a9413=0xce,_0x337fa0[_0x3b83d6('0x21')](_0x5a9413),_0x337fa0[_0x3b83d6('0x20')](_0x3b83d6('0x3d'),_0x55839a+'-'+_0x2f7612+'/'+_0x553b65)[_0x3b83d6('0x50')](_0x4dff15);}return null;};}function saveUpdates(_0x137779){return function(_0x8fa51a){const _0xa9b9f=a281_0x4f9f;if(_0x8fa51a)return _0x8fa51a[_0xa9b9f('0x48')](_0x137779)[_0xa9b9f('0x2a')](function(_0x59d54c){return _0x59d54c;});return null;};}function removeEntity(_0x16a043){return function(_0x5c8316){const _0x135987=a281_0x4f9f;if(_0x5c8316)return _0x5c8316[_0x135987('0xe')]()[_0x135987('0x2a')](function(){const _0x4432f6=_0x135987;_0x16a043[_0x4432f6('0x21')](0xcc)['end']();});};}function handleEntityNotFound(_0x3ecca6){return function(_0x4e66df){const _0x3f9539=a281_0x4f9f;return!_0x4e66df&&_0x3ecca6[_0x3f9539('0x1')](0x194),_0x4e66df;};}function handleError(_0x3cd953,_0x1b01fb){return _0x1b01fb=_0x1b01fb||0x1f4,function(_0x59ed3c){const _0x10d14b=a281_0x4f9f;logger['error'](_0x59ed3c[_0x10d14b('0x40')]),_0x59ed3c['name']&&delete _0x59ed3c[_0x10d14b('0x45')],_0x3cd953['status'](_0x1b01fb)[_0x10d14b('0x11')](_0x59ed3c);};}exports[_0x48e5c0('0x2f')]=function(_0x38e23a,_0x2e82a0){const _0x78cc20=_0x48e5c0;let _0x3db312={};const _0x17b97e={},_0xc1a5f0={'count':0x0,'rows':[]},_0xf2a4a6=_[_0x78cc20('0x4b')](db['SalesforceAccount'][_0x78cc20('0x3f')],function(_0x5cb2aa){const _0x528205=_0x78cc20;return{'name':_0x5cb2aa['fieldName'],'type':_0x5cb2aa[_0x528205('0x5d')][_0x528205('0x41')]};});_0x17b97e[_0x78cc20('0xd')]=_['map'](_0xf2a4a6,'name'),_0x17b97e[_0x78cc20('0x2c')]=_[_0x78cc20('0x3b')](_0x38e23a[_0x78cc20('0x2c')]),_0x17b97e['filters']=_[_0x78cc20('0x19')](_0x17b97e[_0x78cc20('0xd')],_0x17b97e[_0x78cc20('0x2c')]),_0x3db312[_0x78cc20('0x57')]=_[_0x78cc20('0x19')](_0x17b97e['model'],qs['fields'](_0x38e23a[_0x78cc20('0x2c')][_0x78cc20('0x33')])),_0x3db312[_0x78cc20('0x57')]=_0x3db312[_0x78cc20('0x57')]['length']?_0x3db312[_0x78cc20('0x57')]:_0x17b97e[_0x78cc20('0xd')];typeof _0x38e23a[_0x78cc20('0x2c')][_0x78cc20('0x67')]===_0x78cc20('0x10')&&(_0x3db312[_0x78cc20('0x2d')]=qs[_0x78cc20('0x2d')](_0x38e23a[_0x78cc20('0x2c')][_0x78cc20('0x2d')]),_0x3db312['offset']=qs[_0x78cc20('0x27')](_0x38e23a['query'][_0x78cc20('0x27')]));_0x3db312['order']=qs[_0x78cc20('0x5')](_0x38e23a[_0x78cc20('0x2c')][_0x78cc20('0x5')]),_0x3db312['where']=qs[_0x78cc20('0x4f')](_[_0x78cc20('0x3c')](_0x38e23a[_0x78cc20('0x2c')],_0x17b97e['filters']),_0xf2a4a6);_0x38e23a[_0x78cc20('0x2c')][_0x78cc20('0x5f')]&&(_0x3db312['where']=_['merge'](_0x3db312[_0x78cc20('0x38')],{[Op['or']]:_['map'](_0xf2a4a6,function(_0x349472){const _0x423bcf=_0x78cc20;if(_0x349472['type']!==_0x423bcf('0x2')){const _0x4c513d={};return _0x4c513d[_0x349472['name']]={[Op[_0x423bcf('0x9')]]:'%'+_0x38e23a[_0x423bcf('0x2c')][_0x423bcf('0x5f')]+'%'},_0x4c513d;}})}));_0x3db312=_['merge']({},_0x3db312,_0x38e23a[_0x78cc20('0x37')]);const _0x26cf45={'where':_0x3db312[_0x78cc20('0x38')]};return db[_0x78cc20('0x49')][_0x78cc20('0x23')](_0x26cf45)[_0x78cc20('0x2a')](function(_0xc5f9f3){const _0xaeaec1=_0x78cc20;return _0xc1a5f0[_0xaeaec1('0x23')]=_0xc5f9f3,_0x38e23a[_0xaeaec1('0x2c')][_0xaeaec1('0x55')]&&(_0x3db312[_0xaeaec1('0x66')]=[{'all':!![]}]),db[_0xaeaec1('0x49')][_0xaeaec1('0x28')](_0x3db312);})['then'](function(_0x3b7381){const _0x488574=_0x78cc20;return _0xc1a5f0[_0x488574('0x12')]=_0x3b7381,_0xc1a5f0;})[_0x78cc20('0x2a')](respondWithFilteredResult(_0x2e82a0,_0x3db312))[_0x78cc20('0x64')](handleError(_0x2e82a0,null));},exports[_0x48e5c0('0x17')]=function(_0x333b1b,_0x198d1e){const _0x7b8db8=_0x48e5c0;let _0x1570df={'raw':![],'where':{'id':_0x333b1b['params']['id']}};const _0xd1fa68={};return _0xd1fa68['model']=_[_0x7b8db8('0x3b')](db[_0x7b8db8('0x49')][_0x7b8db8('0x3f')]),_0xd1fa68[_0x7b8db8('0x2c')]=_[_0x7b8db8('0x3b')](_0x333b1b['query']),_0xd1fa68[_0x7b8db8('0x4f')]=_[_0x7b8db8('0x19')](_0xd1fa68[_0x7b8db8('0xd')],_0xd1fa68[_0x7b8db8('0x2c')]),_0x1570df[_0x7b8db8('0x57')]=_['intersection'](_0xd1fa68['model'],qs[_0x7b8db8('0x33')](_0x333b1b[_0x7b8db8('0x2c')]['fields'])),_0x1570df['attributes']=_0x1570df[_0x7b8db8('0x57')][_0x7b8db8('0x5e')]?_0x1570df['attributes']:_0xd1fa68[_0x7b8db8('0xd')],_0x333b1b['query'][_0x7b8db8('0x55')]&&(_0x1570df[_0x7b8db8('0x66')]=[{'all':!![]}]),_0x1570df=_[_0x7b8db8('0x63')]({},_0x1570df,_0x333b1b['options']),db['SalesforceAccount']['findOne'](_0x1570df)['then'](handleEntityNotFound(_0x198d1e,null))['then'](respondWithResult(_0x198d1e,null))[_0x7b8db8('0x64')](handleError(_0x198d1e,null));},exports[_0x48e5c0('0x65')]=function(_0x2c5ca5,_0x179c27){const _0x5a484f=_0x48e5c0;return db['SalesforceAccount'][_0x5a484f('0x65')](_0x2c5ca5[_0x5a484f('0x26')],{})[_0x5a484f('0x2a')](respondWithResult(_0x179c27,0xc9))[_0x5a484f('0x64')](handleError(_0x179c27,null));},exports[_0x48e5c0('0x48')]=function(_0x23eb95,_0x2d0a75){const _0x1cee0f=_0x48e5c0;return _0x23eb95[_0x1cee0f('0x26')]['id']&&delete _0x23eb95[_0x1cee0f('0x26')]['id'],db[_0x1cee0f('0x49')][_0x1cee0f('0x36')]({'where':{'id':_0x23eb95[_0x1cee0f('0x30')]['id']}})[_0x1cee0f('0x2a')](handleEntityNotFound(_0x2d0a75,null))[_0x1cee0f('0x2a')](saveUpdates(_0x23eb95[_0x1cee0f('0x26')],null))[_0x1cee0f('0x2a')](respondWithResult(_0x2d0a75,null))[_0x1cee0f('0x64')](handleError(_0x2d0a75,null));},exports[_0x48e5c0('0xe')]=function(_0x143ae8,_0x313dae){const _0x2b39df=_0x48e5c0;return db[_0x2b39df('0x49')][_0x2b39df('0x36')]({'where':{'id':_0x143ae8[_0x2b39df('0x30')]['id']}})[_0x2b39df('0x2a')](handleEntityNotFound(_0x313dae,null))['then'](removeEntity(_0x313dae,null))[_0x2b39df('0x64')](handleError(_0x313dae,null));},exports['getConfigurations']=function(_0xd0fe34,_0x142b49){const _0x3b1b73=_0x48e5c0;let _0x830ba2={};const _0x6b0c06={};let _0x1f2765,_0x277dbd;return db[_0x3b1b73('0x49')][_0x3b1b73('0x36')]({'where':{'id':_0xd0fe34[_0x3b1b73('0x30')]['id']}})[_0x3b1b73('0x2a')](handleEntityNotFound(_0x142b49,null))[_0x3b1b73('0x2a')](function(_0x1c6e1a){const _0x3b4fa6=_0x3b1b73;if(_0x1c6e1a)return _0x1f2765=_0x1c6e1a,_0x6b0c06[_0x3b4fa6('0xd')]=_[_0x3b4fa6('0x3b')](db['SalesforceConfiguration'][_0x3b4fa6('0x3f')]),_0x6b0c06[_0x3b4fa6('0x2c')]=_[_0x3b4fa6('0x3b')](_0xd0fe34[_0x3b4fa6('0x2c')]),_0x6b0c06['filters']=_[_0x3b4fa6('0x19')](_0x6b0c06[_0x3b4fa6('0xd')],_0x6b0c06[_0x3b4fa6('0x2c')]),_0x830ba2[_0x3b4fa6('0x57')]=_[_0x3b4fa6('0x19')](_0x6b0c06[_0x3b4fa6('0xd')],qs[_0x3b4fa6('0x33')](_0xd0fe34[_0x3b4fa6('0x2c')]['fields'])),_0x830ba2[_0x3b4fa6('0x57')]=_0x830ba2[_0x3b4fa6('0x57')][_0x3b4fa6('0x5e')]?_0x830ba2['attributes']:_0x6b0c06[_0x3b4fa6('0xd')],_0x830ba2[_0x3b4fa6('0x24')]=qs[_0x3b4fa6('0x5')](_0xd0fe34['query'][_0x3b4fa6('0x5')]),_0x830ba2[_0x3b4fa6('0x38')]=qs[_0x3b4fa6('0x4f')](_['pick'](_0xd0fe34[_0x3b4fa6('0x2c')],_0x6b0c06[_0x3b4fa6('0x4f')])),_0xd0fe34[_0x3b4fa6('0x2c')][_0x3b4fa6('0x5f')]&&(_0x830ba2[_0x3b4fa6('0x38')]=_['merge'](_0x830ba2[_0x3b4fa6('0x38')],{[Op['or']]:_[_0x3b4fa6('0x4b')](_0x830ba2['attributes'],function(_0x186528){const _0x54fdab=_0x3b4fa6,_0x51d2a9={};return _0x51d2a9[_0x186528]={[Op[_0x54fdab('0x9')]]:'%'+_0xd0fe34[_0x54fdab('0x2c')][_0x54fdab('0x5f')]+'%'},_0x51d2a9;})})),_0x830ba2=_[_0x3b4fa6('0x63')]({},_0x830ba2,_0xd0fe34[_0x3b4fa6('0x37')]),_0x1f2765[_0x3b4fa6('0xf')](_0x830ba2);})[_0x3b1b73('0x2a')](function(_0x1a5460){const _0x597be6=_0x3b1b73;if(_0x1a5460)return _0x277dbd=_0x1a5460[_0x597be6('0x5e')],typeof _0xd0fe34[_0x597be6('0x2c')][_0x597be6('0x67')]===_0x597be6('0x10')&&(_0x830ba2[_0x597be6('0x2d')]=qs[_0x597be6('0x2d')](_0xd0fe34[_0x597be6('0x2c')]['limit']),_0x830ba2[_0x597be6('0x27')]=qs['offset'](_0xd0fe34[_0x597be6('0x2c')][_0x597be6('0x27')])),_0x1f2765[_0x597be6('0xf')](_0x830ba2);})['then'](function(_0x19992c){if(_0x19992c)return _0x19992c?{'count':_0x277dbd,'rows':_0x19992c}:null;})[_0x3b1b73('0x2a')](respondWithResult(_0x142b49,null))[_0x3b1b73('0x64')](handleError(_0x142b49,null));},exports[_0x48e5c0('0x22')]=function(_0x3caf29,_0x3ea32f){const _0x51cbe8=_0x48e5c0;return _0x3caf29[_0x51cbe8('0x26')]['id']&&delete _0x3caf29['body']['id'],db['SalesforceAccount'][_0x51cbe8('0x36')]({'where':{'id':_0x3caf29['params']['id']}})[_0x51cbe8('0x2a')](handleEntityNotFound(_0x3ea32f,null))[_0x51cbe8('0x2a')](function(_0x2c57bd){const _0x377b99=_0x51cbe8;if(_0x2c57bd)return _0x3caf29[_0x377b99('0x26')][_0x377b99('0x1c')]=_0x2c57bd['id'],_0x3caf29[_0x377b99('0x26')][_0x377b99('0x1e')]=integrations[_0x377b99('0xc')](_0x3caf29[_0x377b99('0x26')][_0x377b99('0x3e')],_0x3caf29[_0x377b99('0x26')][_0x377b99('0x5d')]),_0x3caf29['body']['Descriptions']=integrations[_0x377b99('0x60')](_0x3caf29[_0x377b99('0x26')]['channel'],_0x3caf29[_0x377b99('0x26')][_0x377b99('0x5d')]),db[_0x377b99('0x52')]['create'](_0x3caf29['body'],{'include':[{'model':db[_0x377b99('0x16')],'as':_0x377b99('0x1e')},{'model':db[_0x377b99('0x16')],'as':_0x377b99('0x8')}]});return null;})['then'](respondWithResult(_0x3ea32f,null))[_0x51cbe8('0x64')](handleError(_0x3ea32f,null));},exports[_0x48e5c0('0xb')]=function(_0x4735cd,_0x552388){const _0x182117=_0x48e5c0;let _0x124663,_0x26ce4b='',_0x57c19c=_0x182117('0x13');return db['SalesforceAccount'][_0x182117('0x36')]({'where':{'id':_0x4735cd[_0x182117('0x30')]['id']},'attributes':['id',_0x182117('0x5a'),_0x182117('0x1f'),'clientSecret','username',_0x182117('0x18'),_0x182117('0x25')]})['then'](handleEntityNotFound(_0x552388,null))[_0x182117('0x2a')](function(_0x211bf9){const _0x347bce=_0x182117;if(_0x211bf9){_0x26ce4b=_0x211bf9[_0x347bce('0x5a')];const _0x5b56ca=_0x26ce4b[_0x347bce('0x1a')](-0x1);return _0x5b56ca==='/'&&(_0x26ce4b=_0x26ce4b['substring'](0x0,_0x26ce4b[_0x347bce('0x29')](_0x5b56ca))),_0x124663=new jsforce[(_0x347bce('0x2b'))]({'oauth2':{'loginUrl':_0x26ce4b,'clientId':_0x211bf9['clientId'],'clientSecret':_0x211bf9[_0x347bce('0x1b')]}}),_0x124663[_0x347bce('0x58')](_0x211bf9['username'],_0x211bf9[_0x347bce('0x18')]['concat'](_0x211bf9['securityToken']));}})[_0x182117('0x2a')](function(_0x47fab8){const _0xb3b247=_0x182117;if(_0x47fab8)return!_[_0xb3b247('0x53')](_0x4735cd[_0xb3b247('0x2c')][_0xb3b247('0x35')])&&(_0x57c19c=_0x4735cd[_0xb3b247('0x2c')]['ticketType']),_0x124663['sobject'](_0x57c19c)['describe']();})[_0x182117('0x2a')](function(_0x1ed130){const _0x9f468e=_0x182117;let _0x355ccd=[_0x9f468e('0x32'),_0x9f468e('0x68'),_0x9f468e('0x2e'),_0x9f468e('0x54'),_0x9f468e('0x7'),_0x9f468e('0x0'),_0x9f468e('0x62'),_0x9f468e('0x34')];!_[_0x9f468e('0x53')](_0x4735cd[_0x9f468e('0x2c')][_0x9f468e('0x35')])&&_0x4735cd[_0x9f468e('0x2c')][_0x9f468e('0x35')]===_0x9f468e('0x14')&&(_0x355ccd=['Type','Origin',_0x9f468e('0x42'),'Status',_0x9f468e('0x0'),'IsEscalated',_0x9f468e('0x51'),_0x9f468e('0x61')]);if(_0x1ed130)return _[_0x9f468e('0x47')](_0x1ed130[_0x9f468e('0x33')],function(_0x1974d2){const _0x75fb52=_0x9f468e;return _0x1974d2['custom']===![]&&!_0x355ccd[_0x75fb52('0x3a')](_0x1974d2[_0x75fb52('0x45')]);}),{'count':_0x1ed130[_0x9f468e('0x33')][_0x9f468e('0x5e')],'rows':_[_0x9f468e('0x4b')](_0x1ed130[_0x9f468e('0x33')],function(_0x2208a6){const _0x5ade61=_0x9f468e;return{'id':_0x2208a6[_0x5ade61('0x45')],'name':_0x2208a6['label'],'custom':_0x2208a6[_0x5ade61('0x46')],'options':_0x2208a6['picklistValues'][_0x5ade61('0x5e')]>0x0?_[_0x5ade61('0x4b')](_0x2208a6[_0x5ade61('0xa')],function(_0x31c210){const _0x193839=_0x5ade61;return{'name':_0x31c210[_0x193839('0x1d')],'value':_0x31c210[_0x193839('0x4e')]};}):_0x2208a6[_0x5ade61('0x5d')]=='boolean'?[{'name':_0x5ade61('0x5c'),'value':_0x5ade61('0x3')},{'name':_0x5ade61('0x4a'),'value':'false'}]:[]};})};})[_0x182117('0x2a')](respondWithResult(_0x552388,null))['catch'](function(_0x4a3bd2){const _0x4ac0d6=_0x182117;let _0x2049db=_0x4735cd[_0x4ac0d6('0x2c')]['test']?0x1f4:_0x4a3bd2[_0x4ac0d6('0x4d')]||0x1f4;logger[_0x4ac0d6('0x31')](_0x4ac0d6('0x4c'),_0x4ac0d6('0xb'),_0x2049db,JSON['stringify'](_0x4a3bd2)),delete _0x4a3bd2[_0x4ac0d6('0x45')],_0x2049db===0x191&&(_0x2049db=0x190),_0x552388['status'](_0x2049db)['send'](_0x4735cd[_0x4ac0d6('0x2c')][_0x4ac0d6('0x56')]?{'message':'Wrong\x20credentials','statusCode':_0x4a3bd2[_0x4ac0d6('0x4d')]}:_0x4a3bd2);});}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.model.js b/server/api/intSalesforceAccount/intSalesforceAccount.model.js index 22bb4e5..20a7027 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.model.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.model.js @@ -1 +1 @@ -const a282_0x8777=['exports','SalesforceAccount'];(function(_0x13c7cb,_0x877734){const _0x44e1af=function(_0x4c9ce6){while(--_0x4c9ce6){_0x13c7cb['push'](_0x13c7cb['shift']());}};_0x44e1af(++_0x877734);}(a282_0x8777,0x13d));const a282_0x44e1=function(_0x13c7cb,_0x877734){_0x13c7cb=_0x13c7cb-0x0;let _0x44e1af=a282_0x8777[_0x13c7cb];return _0x44e1af;};const _0x27e5a3=a282_0x44e1;'use strict';const attributes=require('./intSalesforceAccount.attributes');module[_0x27e5a3('0x1')]=function(_0x4c9ce6){const _0x50d246=_0x27e5a3,_0x2e88e4=_0x4c9ce6['define'](_0x50d246('0x0'),attributes,{'tableName':'int_salesforce_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2e88e4;}; \ No newline at end of file +const a282_0x280a=['SalesforceAccount','int_salesforce_accounts'];(function(_0x5b2091,_0x280a59){const _0x5e27fd=function(_0xb99ca7){while(--_0xb99ca7){_0x5b2091['push'](_0x5b2091['shift']());}};_0x5e27fd(++_0x280a59);}(a282_0x280a,0x6b));const a282_0x5e27=function(_0x5b2091,_0x280a59){_0x5b2091=_0x5b2091-0x0;let _0x5e27fd=a282_0x280a[_0x5b2091];return _0x5e27fd;};'use strict';const attributes=require('./intSalesforceAccount.attributes');module['exports']=function(_0xb99ca7){const _0x26ef12=a282_0x5e27,_0x557bab=_0xb99ca7['define'](_0x26ef12('0x1'),attributes,{'tableName':_0x26ef12('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x557bab;}; \ No newline at end of file diff --git a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js index b1eea34..b773b99 100644 --- a/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js +++ b/server/api/intSalesforceAccount/intSalesforceAccount.rpc.js @@ -1 +1 @@ -const a283_0x19d1=['lodash','raw','info','debug','model','options','where','findOne','include','then','ShowSalesforceAccount','SalesforceAccount','catch','map','limit','GetSalesforceAccount','error','findAll','attributes','message','stringify','rpc'];(function(_0x476405,_0x19d112){const _0x412f65=function(_0x5bef50){while(--_0x5bef50){_0x476405['push'](_0x476405['shift']());}};_0x412f65(++_0x19d112);}(a283_0x19d1,0x64));const a283_0x412f=function(_0x476405,_0x19d112){_0x476405=_0x476405-0x0;let _0x412f65=a283_0x19d1[_0x476405];return _0x412f65;};const _0x5093e7=a283_0x412f;'use strict';const _=require(_0x5093e7('0xa')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x5093e7('0x9'));exports[_0x5093e7('0x3')]=function(_0x5bef50){const _0xee2170=this;return new Promise(function(_0x468980,_0x29ddd9){const _0x579ef0=a283_0x412f;return db[_0x579ef0('0x15')][_0x579ef0('0x5')]({'raw':_0x5bef50[_0x579ef0('0xf')]?_0x5bef50[_0x579ef0('0xf')][_0x579ef0('0xb')]===undefined?!![]:![]:!![],'where':_0x5bef50[_0x579ef0('0xf')]?_0x5bef50[_0x579ef0('0xf')][_0x579ef0('0x10')]||null:null,'attributes':_0x5bef50[_0x579ef0('0xf')]?_0x5bef50[_0x579ef0('0xf')][_0x579ef0('0x6')]||null:null,'limit':_0x5bef50[_0x579ef0('0xf')]?_0x5bef50['options'][_0x579ef0('0x2')]||null:null,'include':_0x5bef50[_0x579ef0('0xf')]?_0x5bef50[_0x579ef0('0xf')][_0x579ef0('0x12')]?_[_0x579ef0('0x1')](_0x5bef50[_0x579ef0('0xf')][_0x579ef0('0x12')],function(_0x258263){const _0x5b6281=_0x579ef0;return{'model':db[_0x258263['model']],'as':_0x258263['as'],'attributes':_0x258263[_0x5b6281('0x6')],'include':_0x258263[_0x5b6281('0x12')]?_[_0x5b6281('0x1')](_0x258263[_0x5b6281('0x12')],function(_0x2a4826){const _0x281266=_0x5b6281;return{'model':db[_0x2a4826[_0x281266('0xe')]],'as':_0x2a4826['as'],'attributes':_0x2a4826[_0x281266('0x6')],'include':_0x2a4826[_0x281266('0x12')]?_[_0x281266('0x1')](_0x2a4826[_0x281266('0x12')],function(_0x4dc026){const _0x2959db=_0x281266;return{'model':db[_0x4dc026[_0x2959db('0xe')]],'as':_0x4dc026['as'],'attributes':_0x4dc026[_0x2959db('0x6')]};}):[]};}):[]};}):[]:[]})[_0x579ef0('0x13')](function(_0x56ec4e){const _0x18f93c=_0x579ef0;logger[_0x18f93c('0xc')](_0x18f93c('0x3'),_0x5bef50),logger['debug'](_0x18f93c('0x3'),_0x5bef50,JSON[_0x18f93c('0x8')](_0x56ec4e)),_0x468980(_0x56ec4e);})[_0x579ef0('0x0')](function(_0x50d999){const _0x399a19=_0x579ef0;logger[_0x399a19('0x4')]('GetSalesforceAccount',_0x50d999[_0x399a19('0x7')],_0x5bef50),_0x29ddd9(_0xee2170[_0x399a19('0x4')](0x1f4,_0x50d999['message']));});});},exports['ShowSalesforceAccount']=function(_0x58a0aa){const _0x308584=this;return new Promise(function(_0x47fc81,_0x44486f){const _0x25e950=a283_0x412f;return db[_0x25e950('0x15')][_0x25e950('0x11')]({'raw':_0x58a0aa[_0x25e950('0xf')]?_0x58a0aa[_0x25e950('0xf')][_0x25e950('0xb')]===undefined?!![]:![]:!![],'where':_0x58a0aa[_0x25e950('0xf')]?_0x58a0aa['options'][_0x25e950('0x10')]||null:null,'attributes':_0x58a0aa[_0x25e950('0xf')]?_0x58a0aa[_0x25e950('0xf')][_0x25e950('0x6')]||null:null,'include':_0x58a0aa['options']?_0x58a0aa[_0x25e950('0xf')][_0x25e950('0x12')]?_[_0x25e950('0x1')](_0x58a0aa[_0x25e950('0xf')][_0x25e950('0x12')],function(_0x244313){const _0x3f3063=_0x25e950;return{'model':db[_0x244313[_0x3f3063('0xe')]],'as':_0x244313['as'],'attributes':_0x244313[_0x3f3063('0x6')],'include':_0x244313[_0x3f3063('0x12')]?_[_0x3f3063('0x1')](_0x244313['include'],function(_0x542dd9){const _0x3b1e69=_0x3f3063;return{'model':db[_0x542dd9['model']],'as':_0x542dd9['as'],'attributes':_0x542dd9[_0x3b1e69('0x6')],'include':_0x542dd9[_0x3b1e69('0x12')]?_[_0x3b1e69('0x1')](_0x542dd9[_0x3b1e69('0x12')],function(_0xcfe857){const _0xf0e10f=_0x3b1e69;return{'model':db[_0xcfe857[_0xf0e10f('0xe')]],'as':_0xcfe857['as'],'attributes':_0xcfe857[_0xf0e10f('0x6')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4fe383){const _0xaef163=_0x25e950;logger[_0xaef163('0xc')](_0xaef163('0x14'),_0x58a0aa),logger[_0xaef163('0xd')](_0xaef163('0x14'),_0x58a0aa,JSON[_0xaef163('0x8')](_0x4fe383)),_0x47fc81(_0x4fe383);})[_0x25e950('0x0')](function(_0x100ee2){const _0x3a6c2d=_0x25e950;logger[_0x3a6c2d('0x4')](_0x3a6c2d('0x14'),_0x100ee2[_0x3a6c2d('0x7')],_0x58a0aa),_0x44486f(_0x308584['error'](0x1f4,_0x100ee2[_0x3a6c2d('0x7')]));});});}; \ No newline at end of file +const a283_0x237e=['where','rpc','limit','message','include','GetSalesforceAccount','../../config/logger','stringify','map','attributes','lodash','info','../../mysqldb','model','SalesforceAccount','ShowSalesforceAccount','error','options','catch','findOne','debug'];(function(_0x2d3cf1,_0x237e4a){const _0x236f70=function(_0xda1817){while(--_0xda1817){_0x2d3cf1['push'](_0x2d3cf1['shift']());}};_0x236f70(++_0x237e4a);}(a283_0x237e,0x7b));const a283_0x236f=function(_0x2d3cf1,_0x237e4a){_0x2d3cf1=_0x2d3cf1-0x0;let _0x236f70=a283_0x237e[_0x2d3cf1];return _0x236f70;};const _0x55673a=a283_0x236f;'use strict';const _=require(_0x55673a('0xd')),db=require(_0x55673a('0xf'))['db'],logger=require(_0x55673a('0x9'))(_0x55673a('0x4'));exports[_0x55673a('0x8')]=function(_0xda1817){const _0x2cc321=this;return new Promise(function(_0x3aeb9c,_0x49b743){const _0x17a903=a283_0x236f;return db[_0x17a903('0x11')]['findAll']({'raw':_0xda1817[_0x17a903('0x14')]?_0xda1817[_0x17a903('0x14')]['raw']===undefined?!![]:![]:!![],'where':_0xda1817['options']?_0xda1817[_0x17a903('0x14')]['where']||null:null,'attributes':_0xda1817[_0x17a903('0x14')]?_0xda1817['options']['attributes']||null:null,'limit':_0xda1817[_0x17a903('0x14')]?_0xda1817['options'][_0x17a903('0x5')]||null:null,'include':_0xda1817[_0x17a903('0x14')]?_0xda1817[_0x17a903('0x14')][_0x17a903('0x7')]?_['map'](_0xda1817['options']['include'],function(_0x5cb31c){const _0x3ad2f2=_0x17a903;return{'model':db[_0x5cb31c[_0x3ad2f2('0x10')]],'as':_0x5cb31c['as'],'attributes':_0x5cb31c['attributes'],'include':_0x5cb31c[_0x3ad2f2('0x7')]?_[_0x3ad2f2('0xb')](_0x5cb31c[_0x3ad2f2('0x7')],function(_0x3c29da){const _0x337ac8=_0x3ad2f2;return{'model':db[_0x3c29da[_0x337ac8('0x10')]],'as':_0x3c29da['as'],'attributes':_0x3c29da[_0x337ac8('0xc')],'include':_0x3c29da[_0x337ac8('0x7')]?_['map'](_0x3c29da[_0x337ac8('0x7')],function(_0x704838){const _0x1ced81=_0x337ac8;return{'model':db[_0x704838[_0x1ced81('0x10')]],'as':_0x704838['as'],'attributes':_0x704838[_0x1ced81('0xc')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x31d272){const _0x3ba213=_0x17a903;logger[_0x3ba213('0xe')]('GetSalesforceAccount',_0xda1817),logger[_0x3ba213('0x2')](_0x3ba213('0x8'),_0xda1817,JSON[_0x3ba213('0xa')](_0x31d272)),_0x3aeb9c(_0x31d272);})[_0x17a903('0x0')](function(_0xf3a537){const _0xa14f2e=_0x17a903;logger[_0xa14f2e('0x13')](_0xa14f2e('0x8'),_0xf3a537[_0xa14f2e('0x6')],_0xda1817),_0x49b743(_0x2cc321[_0xa14f2e('0x13')](0x1f4,_0xf3a537['message']));});});},exports[_0x55673a('0x12')]=function(_0x362ce7){const _0x4e21a4=this;return new Promise(function(_0x1d0ec8,_0x3b6517){const _0x49cc95=a283_0x236f;return db['SalesforceAccount'][_0x49cc95('0x1')]({'raw':_0x362ce7[_0x49cc95('0x14')]?_0x362ce7['options']['raw']===undefined?!![]:![]:!![],'where':_0x362ce7['options']?_0x362ce7['options'][_0x49cc95('0x3')]||null:null,'attributes':_0x362ce7['options']?_0x362ce7[_0x49cc95('0x14')]['attributes']||null:null,'include':_0x362ce7[_0x49cc95('0x14')]?_0x362ce7[_0x49cc95('0x14')][_0x49cc95('0x7')]?_['map'](_0x362ce7['options']['include'],function(_0x42a0f8){const _0x32c5f5=_0x49cc95;return{'model':db[_0x42a0f8['model']],'as':_0x42a0f8['as'],'attributes':_0x42a0f8[_0x32c5f5('0xc')],'include':_0x42a0f8[_0x32c5f5('0x7')]?_[_0x32c5f5('0xb')](_0x42a0f8[_0x32c5f5('0x7')],function(_0x4eaea6){const _0x4db469=_0x32c5f5;return{'model':db[_0x4eaea6[_0x4db469('0x10')]],'as':_0x4eaea6['as'],'attributes':_0x4eaea6['attributes'],'include':_0x4eaea6[_0x4db469('0x7')]?_['map'](_0x4eaea6[_0x4db469('0x7')],function(_0x3f3148){const _0x463592=_0x4db469;return{'model':db[_0x3f3148[_0x463592('0x10')]],'as':_0x3f3148['as'],'attributes':_0x3f3148[_0x463592('0xc')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x2adb85){const _0x3bc081=_0x49cc95;logger[_0x3bc081('0xe')]('ShowSalesforceAccount',_0x362ce7),logger[_0x3bc081('0x2')](_0x3bc081('0x12'),_0x362ce7,JSON['stringify'](_0x2adb85)),_0x1d0ec8(_0x2adb85);})[_0x49cc95('0x0')](function(_0x3084ca){const _0x3566d5=_0x49cc95;logger[_0x3566d5('0x13')]('ShowSalesforceAccount',_0x3084ca[_0x3566d5('0x6')],_0x362ce7),_0x3b6517(_0x4e21a4['error'](0x1f4,_0x3084ca[_0x3566d5('0x6')]));});});}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/index.js b/server/api/intSalesforceConfiguration/index.js index e1a5581..acfd91a 100644 --- a/server/api/intSalesforceConfiguration/index.js +++ b/server/api/intSalesforceConfiguration/index.js @@ -1 +1 @@ -const a284_0x7a5d=['/:id/descriptions','show','getDescriptions','create','./intSalesforceConfiguration.controller','exports','update','destroy','/:id','/:id/fields','/:id/subjects','put','get','isAuthenticated','index','Router','express'];(function(_0x3dfdf3,_0x7a5d16){const _0x10f141=function(_0x13460d){while(--_0x13460d){_0x3dfdf3['push'](_0x3dfdf3['shift']());}};_0x10f141(++_0x7a5d16);}(a284_0x7a5d,0xd9));const a284_0x10f1=function(_0x3dfdf3,_0x7a5d16){_0x3dfdf3=_0x3dfdf3-0x0;let _0x10f141=a284_0x7a5d[_0x3dfdf3];return _0x10f141;};const _0x2cc9b0=a284_0x10f1;'use strict';const express=require(_0x2cc9b0('0x3')),router=express[_0x2cc9b0('0x2')](),auth=require('../../components/auth/service'),controller=require(_0x2cc9b0('0x8'));router[_0x2cc9b0('0x10')]('/',auth['isAuthenticated'](),controller[_0x2cc9b0('0x1')]),router[_0x2cc9b0('0x10')](_0x2cc9b0('0xc'),auth[_0x2cc9b0('0x0')](),controller[_0x2cc9b0('0x5')]),router[_0x2cc9b0('0x10')](_0x2cc9b0('0xd'),auth[_0x2cc9b0('0x0')](),controller['getFields']),router[_0x2cc9b0('0x10')](_0x2cc9b0('0xe'),auth['isAuthenticated'](),controller['getSubjects']),router['get'](_0x2cc9b0('0x4'),auth[_0x2cc9b0('0x0')](),controller[_0x2cc9b0('0x6')]),router['post']('/',auth[_0x2cc9b0('0x0')](),controller[_0x2cc9b0('0x7')]),router[_0x2cc9b0('0xf')](_0x2cc9b0('0xc'),auth[_0x2cc9b0('0x0')](),controller[_0x2cc9b0('0xa')]),router['delete']('/:id',auth[_0x2cc9b0('0x0')](),controller[_0x2cc9b0('0xb')]),module[_0x2cc9b0('0x9')]=router; \ No newline at end of file +const a284_0x3a66=['destroy','/:id/subjects','/:id/fields','Router','get','express','show','getFields','/:id','../../components/auth/service','exports','post','isAuthenticated','index','getDescriptions','put','delete','/:id/descriptions','./intSalesforceConfiguration.controller','create'];(function(_0x49ff6a,_0x3a667c){const _0x550b9a=function(_0x3eecd0){while(--_0x3eecd0){_0x49ff6a['push'](_0x49ff6a['shift']());}};_0x550b9a(++_0x3a667c);}(a284_0x3a66,0x1c2));const a284_0x550b=function(_0x49ff6a,_0x3a667c){_0x49ff6a=_0x49ff6a-0x0;let _0x550b9a=a284_0x3a66[_0x49ff6a];return _0x550b9a;};const _0x1de412=a284_0x550b;'use strict';const express=require(_0x1de412('0xf')),router=express[_0x1de412('0xd')](),auth=require(_0x1de412('0x13')),controller=require(_0x1de412('0x8'));router[_0x1de412('0xe')]('/',auth[_0x1de412('0x2')](),controller[_0x1de412('0x3')]),router[_0x1de412('0xe')]('/:id',auth[_0x1de412('0x2')](),controller[_0x1de412('0x10')]),router[_0x1de412('0xe')](_0x1de412('0xc'),auth['isAuthenticated'](),controller[_0x1de412('0x11')]),router[_0x1de412('0xe')](_0x1de412('0xb'),auth['isAuthenticated'](),controller['getSubjects']),router['get'](_0x1de412('0x7'),auth[_0x1de412('0x2')](),controller[_0x1de412('0x4')]),router[_0x1de412('0x1')]('/',auth['isAuthenticated'](),controller[_0x1de412('0x9')]),router[_0x1de412('0x5')]('/:id',auth['isAuthenticated'](),controller['update']),router[_0x1de412('0x6')](_0x1de412('0x12'),auth['isAuthenticated'](),controller[_0x1de412('0xa')]),module[_0x1de412('0x0')]=router; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js index 853712b..3e31c17 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.attributes.js @@ -1 +1 @@ -const a285_0x5e76=['contact_lead','STRING','nothing','lead','sequelize','Task','contact','ENUM'];(function(_0x316d28,_0x5e76c8){const _0x3c12bf=function(_0x87365c){while(--_0x87365c){_0x316d28['push'](_0x316d28['shift']());}};_0x3c12bf(++_0x5e76c8);}(a285_0x5e76,0xfe));const a285_0x3c12=function(_0x316d28,_0x5e76c8){_0x316d28=_0x316d28-0x0;let _0x3c12bf=a285_0x5e76[_0x316d28];return _0x3c12bf;};const _0xe6e53b=a285_0x3c12;'use strict';const Sequelize=require(_0xe6e53b('0x6'));module['exports']={'name':{'type':Sequelize[_0xe6e53b('0x3')]},'description':{'type':Sequelize[_0xe6e53b('0x3')]},'ticketType':{'type':Sequelize[_0xe6e53b('0x1')]('Task','Case'),'defaultValue':_0xe6e53b('0x7')},'moduleSearch':{'type':Sequelize[_0xe6e53b('0x1')](_0xe6e53b('0x2'),'contact',_0xe6e53b('0x5')),'defaultValue':_0xe6e53b('0x2')},'moduleCreate':{'type':Sequelize[_0xe6e53b('0x1')](_0xe6e53b('0x4'),_0xe6e53b('0x0'),'lead'),'defaultValue':_0xe6e53b('0x5')}}; \ No newline at end of file +const a285_0x9c8c=['contact','lead','STRING','nothing','exports','ENUM','contact_lead','Task','sequelize'];(function(_0x594064,_0x9c8c88){const _0x1f9b56=function(_0x339a89){while(--_0x339a89){_0x594064['push'](_0x594064['shift']());}};_0x1f9b56(++_0x9c8c88);}(a285_0x9c8c,0x8c));const a285_0x1f9b=function(_0x594064,_0x9c8c88){_0x594064=_0x594064-0x0;let _0x1f9b56=a285_0x9c8c[_0x594064];return _0x1f9b56;};const _0x4cd277=a285_0x1f9b;'use strict';const Sequelize=require(_0x4cd277('0x3'));module[_0x4cd277('0x8')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x4cd277('0x6')]},'ticketType':{'type':Sequelize['ENUM'](_0x4cd277('0x2'),'Case'),'defaultValue':'Task'},'moduleSearch':{'type':Sequelize[_0x4cd277('0x0')](_0x4cd277('0x1'),_0x4cd277('0x4'),_0x4cd277('0x5')),'defaultValue':'contact_lead'},'moduleCreate':{'type':Sequelize['ENUM'](_0x4cd277('0x7'),'contact',_0x4cd277('0x5')),'defaultValue':_0x4cd277('0x5')}}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js index 0d114c0..5f9ff98 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.controller.js @@ -1 +1 @@ -const a286_0x53db=['status','sort','../../components/parsers/qs','pick','type','include','update','like','sequelize','order','key','findAll','SalesforceField','nolimit','api','length','destroy','name','body','offset','intersection','catch','rawAttributes','filter','json','undefined','then','fields','../../config/logger','attributes','lodash','limit','filters','where','query','getFields','keys','getSubjects','../../mysqldb','includeAll','count','end','merge','SalesforceConfiguration','map','create','options','getDescriptions','fieldName','params','index','sendStatus','model','findOne','rows'];(function(_0x101df9,_0x53dbca){const _0x29ddd9=function(_0x41755e){while(--_0x41755e){_0x101df9['push'](_0x101df9['shift']());}};_0x29ddd9(++_0x53dbca);}(a286_0x53db,0x1cb));const a286_0x29dd=function(_0x101df9,_0x53dbca){_0x101df9=_0x101df9-0x0;let _0x29ddd9=a286_0x53db[_0x101df9];return _0x29ddd9;};const _0x11888f=a286_0x29dd;'use strict';const _=require(_0x11888f('0xb')),qs=require(_0x11888f('0x26')),logger=require(_0x11888f('0x9'))(_0x11888f('0x32')),db=require(_0x11888f('0x13'))['db'],{Op}=require(_0x11888f('0x2c'));function respondWithResult(_0x41755e,_0x38ebaa){return _0x38ebaa=_0x38ebaa||0xc8,function(_0x268e9d){const _0x348435=a286_0x29dd;if(_0x268e9d)return _0x41755e['status'](_0x38ebaa)[_0x348435('0x5')](_0x268e9d);};}function respondWithFilteredResult(_0x184c52,_0x410107){return function(_0x1062a7){const _0x3389f2=a286_0x29dd;if(_0x1062a7){const _0x50ac03=_0x1062a7['count'],_0x23a010=_0x410107[_0x3389f2('0x0')];let _0xf3e3b6=_0x410107[_0x3389f2('0x0')]+_0x410107[_0x3389f2('0xc')],_0x57e1a0;return _0xf3e3b6>=_0x50ac03?(_0xf3e3b6=_0x50ac03,_0x57e1a0=0xc8):_0x57e1a0=0xce,_0x184c52[_0x3389f2('0x24')](_0x57e1a0),_0x184c52['set']('Content-Range',_0x23a010+'-'+_0xf3e3b6+'/'+_0x50ac03)[_0x3389f2('0x5')](_0x1062a7);}return null;};}function saveUpdates(_0x107632){return function(_0x2f6e95){const _0x3919b9=a286_0x29dd;if(_0x2f6e95)return _0x2f6e95[_0x3919b9('0x2a')](_0x107632)[_0x3919b9('0x7')](function(_0x30d350){return _0x30d350;});return null;};}function removeEntity(_0x575b13){return function(_0x3cea46){const _0x3f5b0d=a286_0x29dd;if(_0x3cea46)return _0x3cea46[_0x3f5b0d('0x34')]()[_0x3f5b0d('0x7')](function(){const _0x42b168=_0x3f5b0d;_0x575b13[_0x42b168('0x24')](0xcc)[_0x42b168('0x16')]();});};}function handleEntityNotFound(_0x46ff74){return function(_0x24c5dc){const _0x2febfc=a286_0x29dd;return!_0x24c5dc&&_0x46ff74[_0x2febfc('0x20')](0x194),_0x24c5dc;};}function handleError(_0x1a1581,_0x50ba25){return _0x50ba25=_0x50ba25||0x1f4,function(_0x4eaf14){const _0xb18bb8=a286_0x29dd;logger['error'](_0x4eaf14['stack']),_0x4eaf14[_0xb18bb8('0x35')]&&delete _0x4eaf14[_0xb18bb8('0x35')],_0x1a1581['status'](_0x50ba25)['send'](_0x4eaf14);};}exports[_0x11888f('0x1f')]=function(_0x4d7dcf,_0x19fdd6){const _0x4a0995=_0x11888f;let _0x5a7d0a={};const _0x4126b1={},_0x33ca00={'count':0x0,'rows':[]},_0x3361e2=_[_0x4a0995('0x19')](db[_0x4a0995('0x18')][_0x4a0995('0x3')],function(_0x2e6e77){const _0x1c9bd0=_0x4a0995;return{'name':_0x2e6e77[_0x1c9bd0('0x1d')],'type':_0x2e6e77[_0x1c9bd0('0x28')][_0x1c9bd0('0x2e')]};});_0x4126b1[_0x4a0995('0x21')]=_['map'](_0x3361e2,_0x4a0995('0x35')),_0x4126b1[_0x4a0995('0xf')]=_[_0x4a0995('0x11')](_0x4d7dcf[_0x4a0995('0xf')]),_0x4126b1[_0x4a0995('0xd')]=_[_0x4a0995('0x1')](_0x4126b1[_0x4a0995('0x21')],_0x4126b1[_0x4a0995('0xf')]),_0x5a7d0a[_0x4a0995('0xa')]=_[_0x4a0995('0x1')](_0x4126b1['model'],qs[_0x4a0995('0x8')](_0x4d7dcf['query'][_0x4a0995('0x8')])),_0x5a7d0a[_0x4a0995('0xa')]=_0x5a7d0a[_0x4a0995('0xa')]['length']?_0x5a7d0a[_0x4a0995('0xa')]:_0x4126b1[_0x4a0995('0x21')];typeof _0x4d7dcf['query']['nolimit']==='undefined'&&(_0x5a7d0a['limit']=qs[_0x4a0995('0xc')](_0x4d7dcf[_0x4a0995('0xf')][_0x4a0995('0xc')]),_0x5a7d0a[_0x4a0995('0x0')]=qs[_0x4a0995('0x0')](_0x4d7dcf[_0x4a0995('0xf')][_0x4a0995('0x0')]));_0x5a7d0a[_0x4a0995('0x2d')]=qs['sort'](_0x4d7dcf[_0x4a0995('0xf')][_0x4a0995('0x25')]),_0x5a7d0a['where']=qs[_0x4a0995('0xd')](_[_0x4a0995('0x27')](_0x4d7dcf[_0x4a0995('0xf')],_0x4126b1[_0x4a0995('0xd')]),_0x3361e2);_0x4d7dcf[_0x4a0995('0xf')]['filter']&&(_0x5a7d0a['where']=_['merge'](_0x5a7d0a[_0x4a0995('0xe')],{[Op['or']]:_[_0x4a0995('0x19')](_0x3361e2,function(_0xd352ff){const _0xb156cd=_0x4a0995;if(_0xd352ff[_0xb156cd('0x28')]!=='VIRTUAL'){const _0x2405c9={};return _0x2405c9[_0xd352ff[_0xb156cd('0x35')]]={[Op[_0xb156cd('0x2b')]]:'%'+_0x4d7dcf[_0xb156cd('0xf')][_0xb156cd('0x4')]+'%'},_0x2405c9;}})}));_0x5a7d0a=_['merge']({},_0x5a7d0a,_0x4d7dcf[_0x4a0995('0x1b')]);const _0x60da8b={'where':_0x5a7d0a[_0x4a0995('0xe')]};return db['SalesforceConfiguration'][_0x4a0995('0x15')](_0x60da8b)[_0x4a0995('0x7')](function(_0x3a823d){const _0x54e9b1=_0x4a0995;return _0x33ca00[_0x54e9b1('0x15')]=_0x3a823d,_0x4d7dcf[_0x54e9b1('0xf')][_0x54e9b1('0x14')]&&(_0x5a7d0a[_0x54e9b1('0x29')]=[{'all':!![]}]),db[_0x54e9b1('0x18')][_0x54e9b1('0x2f')](_0x5a7d0a);})['then'](function(_0x24b86c){const _0x34e9af=_0x4a0995;return _0x33ca00[_0x34e9af('0x23')]=_0x24b86c,_0x33ca00;})['then'](respondWithFilteredResult(_0x19fdd6,_0x5a7d0a))['catch'](handleError(_0x19fdd6,null));},exports['show']=function(_0x143e26,_0x17ee6b){const _0x3edb71=_0x11888f;let _0xf3140d={'raw':![],'where':{'id':_0x143e26[_0x3edb71('0x1e')]['id']}};const _0x59fb8d={};return _0x59fb8d['model']=_[_0x3edb71('0x11')](db[_0x3edb71('0x18')][_0x3edb71('0x3')]),_0x59fb8d[_0x3edb71('0xf')]=_[_0x3edb71('0x11')](_0x143e26[_0x3edb71('0xf')]),_0x59fb8d[_0x3edb71('0xd')]=_['intersection'](_0x59fb8d[_0x3edb71('0x21')],_0x59fb8d[_0x3edb71('0xf')]),_0xf3140d[_0x3edb71('0xa')]=_[_0x3edb71('0x1')](_0x59fb8d[_0x3edb71('0x21')],qs[_0x3edb71('0x8')](_0x143e26[_0x3edb71('0xf')][_0x3edb71('0x8')])),_0xf3140d[_0x3edb71('0xa')]=_0xf3140d['attributes'][_0x3edb71('0x33')]?_0xf3140d[_0x3edb71('0xa')]:_0x59fb8d[_0x3edb71('0x21')],_0x143e26['query']['includeAll']&&(_0xf3140d['include']=[{'all':!![]}]),_0xf3140d=_[_0x3edb71('0x17')]({},_0xf3140d,_0x143e26[_0x3edb71('0x1b')]),db[_0x3edb71('0x18')][_0x3edb71('0x22')](_0xf3140d)[_0x3edb71('0x7')](handleEntityNotFound(_0x17ee6b,null))['then'](respondWithResult(_0x17ee6b,null))[_0x3edb71('0x2')](handleError(_0x17ee6b,null));},exports['create']=function(_0x3e8ea8,_0x368e69){const _0x27ca2b=_0x11888f;return db[_0x27ca2b('0x18')][_0x27ca2b('0x1a')](_0x3e8ea8[_0x27ca2b('0x36')],{})['then'](respondWithResult(_0x368e69,0xc9))[_0x27ca2b('0x2')](handleError(_0x368e69,null));},exports[_0x11888f('0x2a')]=function(_0x594dcd,_0xd03c05){const _0x119b04=_0x11888f;return _0x594dcd[_0x119b04('0x36')]['id']&&delete _0x594dcd[_0x119b04('0x36')]['id'],db[_0x119b04('0x18')]['findOne']({'where':{'id':_0x594dcd[_0x119b04('0x1e')]['id']}})['then'](handleEntityNotFound(_0xd03c05,null))['then'](saveUpdates(_0x594dcd[_0x119b04('0x36')],null))[_0x119b04('0x7')](respondWithResult(_0xd03c05,null))[_0x119b04('0x2')](handleError(_0xd03c05,null));},exports[_0x11888f('0x34')]=function(_0x378530,_0xecdc8c){const _0x1a1793=_0x11888f;return db[_0x1a1793('0x18')][_0x1a1793('0x22')]({'where':{'id':_0x378530['params']['id']}})[_0x1a1793('0x7')](handleEntityNotFound(_0xecdc8c,null))[_0x1a1793('0x7')](removeEntity(_0xecdc8c,null))[_0x1a1793('0x2')](handleError(_0xecdc8c,null));},exports[_0x11888f('0x10')]=function(_0x19923e,_0x5bba86){const _0x33a6af=_0x11888f;let _0x4728d2={};const _0x41bd02={};let _0x37166d,_0x241c34;return db[_0x33a6af('0x18')][_0x33a6af('0x22')]({'where':{'id':_0x19923e[_0x33a6af('0x1e')]['id']}})[_0x33a6af('0x7')](handleEntityNotFound(_0x5bba86,null))[_0x33a6af('0x7')](function(_0x4da0e7){const _0x52c691=_0x33a6af;if(_0x4da0e7)return _0x37166d=_0x4da0e7,_0x41bd02[_0x52c691('0x21')]=_[_0x52c691('0x11')](db[_0x52c691('0x30')][_0x52c691('0x3')]),_0x41bd02['query']=_['keys'](_0x19923e[_0x52c691('0xf')]),_0x41bd02[_0x52c691('0xd')]=_['intersection'](_0x41bd02['model'],_0x41bd02['query']),_0x4728d2[_0x52c691('0xa')]=_[_0x52c691('0x1')](_0x41bd02[_0x52c691('0x21')],qs[_0x52c691('0x8')](_0x19923e[_0x52c691('0xf')][_0x52c691('0x8')])),_0x4728d2[_0x52c691('0xa')]=_0x4728d2['attributes'][_0x52c691('0x33')]?_0x4728d2['attributes']:_0x41bd02[_0x52c691('0x21')],_0x4728d2['order']=qs[_0x52c691('0x25')](_0x19923e[_0x52c691('0xf')][_0x52c691('0x25')]),_0x4728d2[_0x52c691('0xe')]=qs[_0x52c691('0xd')](_['pick'](_0x19923e[_0x52c691('0xf')],_0x41bd02['filters'])),_0x19923e[_0x52c691('0xf')][_0x52c691('0x4')]&&(_0x4728d2[_0x52c691('0xe')]=_[_0x52c691('0x17')](_0x4728d2['where'],{[Op['or']]:_[_0x52c691('0x19')](_0x4728d2[_0x52c691('0xa')],function(_0x24685d){const _0x4d3cf3=_0x52c691,_0x5c34e3={};return _0x5c34e3[_0x24685d]={[Op[_0x4d3cf3('0x2b')]]:'%'+_0x19923e[_0x4d3cf3('0xf')][_0x4d3cf3('0x4')]+'%'},_0x5c34e3;})})),_0x4728d2=_[_0x52c691('0x17')]({},_0x4728d2,_0x19923e['options']),_0x37166d['getFields'](_0x4728d2);})[_0x33a6af('0x7')](function(_0x5af75c){const _0x2d4f8a=_0x33a6af;if(_0x5af75c)return _0x241c34=_0x5af75c[_0x2d4f8a('0x33')],typeof _0x19923e[_0x2d4f8a('0xf')]['nolimit']===_0x2d4f8a('0x6')&&(_0x4728d2['limit']=qs['limit'](_0x19923e[_0x2d4f8a('0xf')][_0x2d4f8a('0xc')]),_0x4728d2[_0x2d4f8a('0x0')]=qs['offset'](_0x19923e['query']['offset'])),_0x37166d[_0x2d4f8a('0x10')](_0x4728d2);})[_0x33a6af('0x7')](function(_0x24bb86){if(_0x24bb86)return _0x24bb86?{'count':_0x241c34,'rows':_0x24bb86}:null;})[_0x33a6af('0x7')](respondWithResult(_0x5bba86,null))[_0x33a6af('0x2')](handleError(_0x5bba86,null));},exports['getSubjects']=function(_0x1d52c1,_0x270bc2){const _0xb3dee3=_0x11888f;let _0x2fe6d1={};const _0x369a53={};let _0x574b0d,_0x30bdc6;return db[_0xb3dee3('0x18')]['findOne']({'where':{'id':_0x1d52c1[_0xb3dee3('0x1e')]['id']}})[_0xb3dee3('0x7')](handleEntityNotFound(_0x270bc2,null))[_0xb3dee3('0x7')](function(_0x3d8b14){const _0x2e44d9=_0xb3dee3;if(_0x3d8b14)return _0x574b0d=_0x3d8b14,_0x369a53[_0x2e44d9('0x21')]=_[_0x2e44d9('0x11')](db[_0x2e44d9('0x30')][_0x2e44d9('0x3')]),_0x369a53[_0x2e44d9('0xf')]=_[_0x2e44d9('0x11')](_0x1d52c1['query']),_0x369a53[_0x2e44d9('0xd')]=_['intersection'](_0x369a53[_0x2e44d9('0x21')],_0x369a53[_0x2e44d9('0xf')]),_0x2fe6d1[_0x2e44d9('0xa')]=_[_0x2e44d9('0x1')](_0x369a53['model'],qs['fields'](_0x1d52c1[_0x2e44d9('0xf')][_0x2e44d9('0x8')])),_0x2fe6d1[_0x2e44d9('0xa')]=_0x2fe6d1[_0x2e44d9('0xa')][_0x2e44d9('0x33')]?_0x2fe6d1[_0x2e44d9('0xa')]:_0x369a53[_0x2e44d9('0x21')],_0x2fe6d1['order']=qs[_0x2e44d9('0x25')](_0x1d52c1[_0x2e44d9('0xf')]['sort']),_0x2fe6d1[_0x2e44d9('0xe')]=qs[_0x2e44d9('0xd')](_[_0x2e44d9('0x27')](_0x1d52c1[_0x2e44d9('0xf')],_0x369a53['filters'])),_0x1d52c1[_0x2e44d9('0xf')]['filter']&&(_0x2fe6d1[_0x2e44d9('0xe')]=_[_0x2e44d9('0x17')](_0x2fe6d1[_0x2e44d9('0xe')],{[Op['or']]:_[_0x2e44d9('0x19')](_0x2fe6d1[_0x2e44d9('0xa')],function(_0x30d27c){const _0x25cd4a=_0x2e44d9,_0x53cfef={};return _0x53cfef[_0x30d27c]={[Op[_0x25cd4a('0x2b')]]:'%'+_0x1d52c1[_0x25cd4a('0xf')][_0x25cd4a('0x4')]+'%'},_0x53cfef;})})),_0x2fe6d1=_['merge']({},_0x2fe6d1,_0x1d52c1[_0x2e44d9('0x1b')]),_0x574b0d['getSubjects'](_0x2fe6d1);})['then'](function(_0x54c4df){const _0xa1dacf=_0xb3dee3;if(_0x54c4df)return _0x30bdc6=_0x54c4df[_0xa1dacf('0x33')],typeof _0x1d52c1[_0xa1dacf('0xf')][_0xa1dacf('0x31')]==='undefined'&&(_0x2fe6d1['limit']=qs['limit'](_0x1d52c1[_0xa1dacf('0xf')][_0xa1dacf('0xc')]),_0x2fe6d1['offset']=qs['offset'](_0x1d52c1['query']['offset'])),_0x574b0d[_0xa1dacf('0x12')](_0x2fe6d1);})[_0xb3dee3('0x7')](function(_0x1e13a2){if(_0x1e13a2)return _0x1e13a2?{'count':_0x30bdc6,'rows':_0x1e13a2}:null;})[_0xb3dee3('0x7')](respondWithResult(_0x270bc2,null))[_0xb3dee3('0x2')](handleError(_0x270bc2,null));},exports[_0x11888f('0x1c')]=function(_0x13302f,_0x27a110){const _0x141d1c=_0x11888f;let _0xc8860c={};const _0x494347={};let _0x1ba968,_0x302e76;return db[_0x141d1c('0x18')][_0x141d1c('0x22')]({'where':{'id':_0x13302f[_0x141d1c('0x1e')]['id']}})[_0x141d1c('0x7')](handleEntityNotFound(_0x27a110,null))[_0x141d1c('0x7')](function(_0x1f0799){const _0x5a497a=_0x141d1c;if(_0x1f0799)return _0x1ba968=_0x1f0799,_0x494347[_0x5a497a('0x21')]=_[_0x5a497a('0x11')](db['SalesforceField'][_0x5a497a('0x3')]),_0x494347[_0x5a497a('0xf')]=_[_0x5a497a('0x11')](_0x13302f[_0x5a497a('0xf')]),_0x494347[_0x5a497a('0xd')]=_[_0x5a497a('0x1')](_0x494347['model'],_0x494347[_0x5a497a('0xf')]),_0xc8860c[_0x5a497a('0xa')]=_[_0x5a497a('0x1')](_0x494347['model'],qs[_0x5a497a('0x8')](_0x13302f[_0x5a497a('0xf')]['fields'])),_0xc8860c[_0x5a497a('0xa')]=_0xc8860c[_0x5a497a('0xa')][_0x5a497a('0x33')]?_0xc8860c[_0x5a497a('0xa')]:_0x494347[_0x5a497a('0x21')],_0xc8860c[_0x5a497a('0x2d')]=qs[_0x5a497a('0x25')](_0x13302f[_0x5a497a('0xf')][_0x5a497a('0x25')]),_0xc8860c[_0x5a497a('0xe')]=qs[_0x5a497a('0xd')](_[_0x5a497a('0x27')](_0x13302f[_0x5a497a('0xf')],_0x494347[_0x5a497a('0xd')])),_0x13302f['query'][_0x5a497a('0x4')]&&(_0xc8860c['where']=_['merge'](_0xc8860c[_0x5a497a('0xe')],{[Op['or']]:_[_0x5a497a('0x19')](_0xc8860c[_0x5a497a('0xa')],function(_0x446a13){const _0x4d4d9e=_0x5a497a,_0x40cce2={};return _0x40cce2[_0x446a13]={[Op[_0x4d4d9e('0x2b')]]:'%'+_0x13302f[_0x4d4d9e('0xf')][_0x4d4d9e('0x4')]+'%'},_0x40cce2;})})),_0xc8860c=_[_0x5a497a('0x17')]({},_0xc8860c,_0x13302f['options']),_0x1ba968[_0x5a497a('0x1c')](_0xc8860c);})[_0x141d1c('0x7')](function(_0x268b0b){const _0x27da97=_0x141d1c;if(_0x268b0b)return _0x302e76=_0x268b0b[_0x27da97('0x33')],typeof _0x13302f[_0x27da97('0xf')][_0x27da97('0x31')]==='undefined'&&(_0xc8860c['limit']=qs['limit'](_0x13302f[_0x27da97('0xf')][_0x27da97('0xc')]),_0xc8860c[_0x27da97('0x0')]=qs[_0x27da97('0x0')](_0x13302f['query'][_0x27da97('0x0')])),_0x1ba968[_0x27da97('0x1c')](_0xc8860c);})[_0x141d1c('0x7')](function(_0x4f2310){if(_0x4f2310)return _0x4f2310?{'count':_0x302e76,'rows':_0x4f2310}:null;})[_0x141d1c('0x7')](respondWithResult(_0x27a110,null))[_0x141d1c('0x2')](handleError(_0x27a110,null));}; \ No newline at end of file +const a286_0x5cd7=['sort','like','SalesforceConfiguration','limit','findOne','index','options','stack','length','offset','set','name','status','getSubjects','body','create','map','model','../../components/parsers/qs','lodash','filters','fields','order','getDescriptions','type','undefined','where','pick','intersection','nolimit','attributes','fieldName','error','destroy','params','sendStatus','count','SalesforceField','then','update','../../config/logger','includeAll','rawAttributes','merge','catch','query','sequelize','api','filter','end','keys','show','getFields','VIRTUAL','Content-Range'];(function(_0x370994,_0x5cd7f1){const _0x4d0651=function(_0x2cf366){while(--_0x2cf366){_0x370994['push'](_0x370994['shift']());}};_0x4d0651(++_0x5cd7f1);}(a286_0x5cd7,0x1c6));const a286_0x4d06=function(_0x370994,_0x5cd7f1){_0x370994=_0x370994-0x0;let _0x4d0651=a286_0x5cd7[_0x370994];return _0x4d0651;};const _0xe1cc26=a286_0x4d06;'use strict';const _=require(_0xe1cc26('0x5')),qs=require(_0xe1cc26('0x4')),logger=require(_0xe1cc26('0x1a'))(_0xe1cc26('0x21')),db=require('../../mysqldb')['db'],{Op}=require(_0xe1cc26('0x20'));function respondWithResult(_0x2cf366,_0x1732a7){return _0x1732a7=_0x1732a7||0xc8,function(_0x549c42){if(_0x549c42)return _0x2cf366['status'](_0x1732a7)['json'](_0x549c42);};}function respondWithFilteredResult(_0x5bebf4,_0x130af5){return function(_0x531d3a){const _0x25ea0a=a286_0x4d06;if(_0x531d3a){const _0x12c369=_0x531d3a[_0x25ea0a('0x16')],_0x5262e2=_0x130af5['offset'];let _0x419558=_0x130af5[_0x25ea0a('0x32')]+_0x130af5[_0x25ea0a('0x2c')],_0x2755ad;return _0x419558>=_0x12c369?(_0x419558=_0x12c369,_0x2755ad=0xc8):_0x2755ad=0xce,_0x5bebf4['status'](_0x2755ad),_0x5bebf4[_0x25ea0a('0x33')](_0x25ea0a('0x28'),_0x5262e2+'-'+_0x419558+'/'+_0x12c369)['json'](_0x531d3a);}return null;};}function saveUpdates(_0x18ee7a){return function(_0x1b419e){const _0x3eb675=a286_0x4d06;if(_0x1b419e)return _0x1b419e[_0x3eb675('0x19')](_0x18ee7a)[_0x3eb675('0x18')](function(_0xf34c2c){return _0xf34c2c;});return null;};}function removeEntity(_0x30fcce){return function(_0x478d8b){const _0x16aeb3=a286_0x4d06;if(_0x478d8b)return _0x478d8b[_0x16aeb3('0x13')]()[_0x16aeb3('0x18')](function(){const _0x477f87=_0x16aeb3;_0x30fcce['status'](0xcc)[_0x477f87('0x23')]();});};}function handleEntityNotFound(_0x1d2fd7){return function(_0x550b4a){const _0x3a2159=a286_0x4d06;return!_0x550b4a&&_0x1d2fd7[_0x3a2159('0x15')](0x194),_0x550b4a;};}function handleError(_0x19428b,_0x3454e8){return _0x3454e8=_0x3454e8||0x1f4,function(_0x98c445){const _0x36a292=a286_0x4d06;logger[_0x36a292('0x12')](_0x98c445[_0x36a292('0x30')]),_0x98c445[_0x36a292('0x34')]&&delete _0x98c445[_0x36a292('0x34')],_0x19428b[_0x36a292('0x35')](_0x3454e8)['send'](_0x98c445);};}exports[_0xe1cc26('0x2e')]=function(_0x2448e2,_0x5b6570){const _0x25a047=_0xe1cc26;let _0x1c75ce={};const _0x28ecfc={},_0x272580={'count':0x0,'rows':[]},_0x78bdda=_[_0x25a047('0x2')](db[_0x25a047('0x2b')][_0x25a047('0x1c')],function(_0x1f9e90){const _0x4f6fe7=_0x25a047;return{'name':_0x1f9e90[_0x4f6fe7('0x11')],'type':_0x1f9e90[_0x4f6fe7('0xa')]['key']};});_0x28ecfc[_0x25a047('0x3')]=_['map'](_0x78bdda,_0x25a047('0x34')),_0x28ecfc[_0x25a047('0x1f')]=_[_0x25a047('0x24')](_0x2448e2['query']),_0x28ecfc[_0x25a047('0x6')]=_[_0x25a047('0xe')](_0x28ecfc[_0x25a047('0x3')],_0x28ecfc[_0x25a047('0x1f')]),_0x1c75ce['attributes']=_[_0x25a047('0xe')](_0x28ecfc[_0x25a047('0x3')],qs['fields'](_0x2448e2[_0x25a047('0x1f')][_0x25a047('0x7')])),_0x1c75ce[_0x25a047('0x10')]=_0x1c75ce['attributes']['length']?_0x1c75ce[_0x25a047('0x10')]:_0x28ecfc['model'];typeof _0x2448e2[_0x25a047('0x1f')]['nolimit']==='undefined'&&(_0x1c75ce['limit']=qs[_0x25a047('0x2c')](_0x2448e2[_0x25a047('0x1f')][_0x25a047('0x2c')]),_0x1c75ce[_0x25a047('0x32')]=qs['offset'](_0x2448e2['query']['offset']));_0x1c75ce[_0x25a047('0x8')]=qs[_0x25a047('0x29')](_0x2448e2[_0x25a047('0x1f')]['sort']),_0x1c75ce['where']=qs[_0x25a047('0x6')](_[_0x25a047('0xd')](_0x2448e2[_0x25a047('0x1f')],_0x28ecfc[_0x25a047('0x6')]),_0x78bdda);_0x2448e2[_0x25a047('0x1f')][_0x25a047('0x22')]&&(_0x1c75ce[_0x25a047('0xc')]=_['merge'](_0x1c75ce[_0x25a047('0xc')],{[Op['or']]:_['map'](_0x78bdda,function(_0x29fd31){const _0x50216b=_0x25a047;if(_0x29fd31['type']!==_0x50216b('0x27')){const _0x3a0793={};return _0x3a0793[_0x29fd31['name']]={[Op[_0x50216b('0x2a')]]:'%'+_0x2448e2[_0x50216b('0x1f')]['filter']+'%'},_0x3a0793;}})}));_0x1c75ce=_[_0x25a047('0x1d')]({},_0x1c75ce,_0x2448e2[_0x25a047('0x2f')]);const _0x34108f={'where':_0x1c75ce[_0x25a047('0xc')]};return db[_0x25a047('0x2b')][_0x25a047('0x16')](_0x34108f)[_0x25a047('0x18')](function(_0x20309e){const _0x439f71=_0x25a047;return _0x272580[_0x439f71('0x16')]=_0x20309e,_0x2448e2[_0x439f71('0x1f')][_0x439f71('0x1b')]&&(_0x1c75ce['include']=[{'all':!![]}]),db['SalesforceConfiguration']['findAll'](_0x1c75ce);})[_0x25a047('0x18')](function(_0x47a317){return _0x272580['rows']=_0x47a317,_0x272580;})['then'](respondWithFilteredResult(_0x5b6570,_0x1c75ce))[_0x25a047('0x1e')](handleError(_0x5b6570,null));},exports[_0xe1cc26('0x25')]=function(_0x44490f,_0x55454){const _0x490054=_0xe1cc26;let _0x745d09={'raw':![],'where':{'id':_0x44490f['params']['id']}};const _0x560855={};return _0x560855[_0x490054('0x3')]=_[_0x490054('0x24')](db[_0x490054('0x2b')][_0x490054('0x1c')]),_0x560855['query']=_['keys'](_0x44490f[_0x490054('0x1f')]),_0x560855[_0x490054('0x6')]=_[_0x490054('0xe')](_0x560855['model'],_0x560855[_0x490054('0x1f')]),_0x745d09[_0x490054('0x10')]=_[_0x490054('0xe')](_0x560855['model'],qs[_0x490054('0x7')](_0x44490f['query'][_0x490054('0x7')])),_0x745d09['attributes']=_0x745d09['attributes']['length']?_0x745d09[_0x490054('0x10')]:_0x560855['model'],_0x44490f[_0x490054('0x1f')][_0x490054('0x1b')]&&(_0x745d09['include']=[{'all':!![]}]),_0x745d09=_['merge']({},_0x745d09,_0x44490f[_0x490054('0x2f')]),db['SalesforceConfiguration'][_0x490054('0x2d')](_0x745d09)[_0x490054('0x18')](handleEntityNotFound(_0x55454,null))[_0x490054('0x18')](respondWithResult(_0x55454,null))['catch'](handleError(_0x55454,null));},exports['create']=function(_0x5b5399,_0x5b98a7){const _0x5d171a=_0xe1cc26;return db[_0x5d171a('0x2b')][_0x5d171a('0x1')](_0x5b5399[_0x5d171a('0x0')],{})['then'](respondWithResult(_0x5b98a7,0xc9))[_0x5d171a('0x1e')](handleError(_0x5b98a7,null));},exports['update']=function(_0x31f0e6,_0xa91cd3){const _0x5e66b8=_0xe1cc26;return _0x31f0e6[_0x5e66b8('0x0')]['id']&&delete _0x31f0e6['body']['id'],db[_0x5e66b8('0x2b')]['findOne']({'where':{'id':_0x31f0e6['params']['id']}})[_0x5e66b8('0x18')](handleEntityNotFound(_0xa91cd3,null))[_0x5e66b8('0x18')](saveUpdates(_0x31f0e6['body'],null))[_0x5e66b8('0x18')](respondWithResult(_0xa91cd3,null))['catch'](handleError(_0xa91cd3,null));},exports['destroy']=function(_0x53e4f4,_0x4c97a2){const _0x4925f7=_0xe1cc26;return db[_0x4925f7('0x2b')][_0x4925f7('0x2d')]({'where':{'id':_0x53e4f4['params']['id']}})[_0x4925f7('0x18')](handleEntityNotFound(_0x4c97a2,null))[_0x4925f7('0x18')](removeEntity(_0x4c97a2,null))[_0x4925f7('0x1e')](handleError(_0x4c97a2,null));},exports[_0xe1cc26('0x26')]=function(_0x4301ef,_0x1c3ac6){const _0xf34f3a=_0xe1cc26;let _0x3734e6={};const _0x509f90={};let _0x4bd4e6,_0x4e4ce4;return db[_0xf34f3a('0x2b')][_0xf34f3a('0x2d')]({'where':{'id':_0x4301ef[_0xf34f3a('0x14')]['id']}})[_0xf34f3a('0x18')](handleEntityNotFound(_0x1c3ac6,null))[_0xf34f3a('0x18')](function(_0x1a0a84){const _0x4f7af4=_0xf34f3a;if(_0x1a0a84)return _0x4bd4e6=_0x1a0a84,_0x509f90[_0x4f7af4('0x3')]=_[_0x4f7af4('0x24')](db[_0x4f7af4('0x17')][_0x4f7af4('0x1c')]),_0x509f90['query']=_['keys'](_0x4301ef[_0x4f7af4('0x1f')]),_0x509f90[_0x4f7af4('0x6')]=_[_0x4f7af4('0xe')](_0x509f90['model'],_0x509f90[_0x4f7af4('0x1f')]),_0x3734e6[_0x4f7af4('0x10')]=_[_0x4f7af4('0xe')](_0x509f90[_0x4f7af4('0x3')],qs['fields'](_0x4301ef[_0x4f7af4('0x1f')][_0x4f7af4('0x7')])),_0x3734e6[_0x4f7af4('0x10')]=_0x3734e6[_0x4f7af4('0x10')]['length']?_0x3734e6['attributes']:_0x509f90[_0x4f7af4('0x3')],_0x3734e6[_0x4f7af4('0x8')]=qs['sort'](_0x4301ef[_0x4f7af4('0x1f')][_0x4f7af4('0x29')]),_0x3734e6[_0x4f7af4('0xc')]=qs[_0x4f7af4('0x6')](_[_0x4f7af4('0xd')](_0x4301ef[_0x4f7af4('0x1f')],_0x509f90[_0x4f7af4('0x6')])),_0x4301ef['query'][_0x4f7af4('0x22')]&&(_0x3734e6[_0x4f7af4('0xc')]=_['merge'](_0x3734e6['where'],{[Op['or']]:_[_0x4f7af4('0x2')](_0x3734e6['attributes'],function(_0x298aa4){const _0x3ef0f5=_0x4f7af4,_0x15485d={};return _0x15485d[_0x298aa4]={[Op[_0x3ef0f5('0x2a')]]:'%'+_0x4301ef[_0x3ef0f5('0x1f')][_0x3ef0f5('0x22')]+'%'},_0x15485d;})})),_0x3734e6=_['merge']({},_0x3734e6,_0x4301ef[_0x4f7af4('0x2f')]),_0x4bd4e6['getFields'](_0x3734e6);})[_0xf34f3a('0x18')](function(_0xb8472){const _0x9613d1=_0xf34f3a;if(_0xb8472)return _0x4e4ce4=_0xb8472['length'],typeof _0x4301ef['query']['nolimit']===_0x9613d1('0xb')&&(_0x3734e6['limit']=qs[_0x9613d1('0x2c')](_0x4301ef[_0x9613d1('0x1f')][_0x9613d1('0x2c')]),_0x3734e6[_0x9613d1('0x32')]=qs['offset'](_0x4301ef['query'][_0x9613d1('0x32')])),_0x4bd4e6[_0x9613d1('0x26')](_0x3734e6);})['then'](function(_0xad1509){if(_0xad1509)return _0xad1509?{'count':_0x4e4ce4,'rows':_0xad1509}:null;})[_0xf34f3a('0x18')](respondWithResult(_0x1c3ac6,null))[_0xf34f3a('0x1e')](handleError(_0x1c3ac6,null));},exports['getSubjects']=function(_0xb01216,_0x25a551){const _0x15cf16=_0xe1cc26;let _0x22211f={};const _0x1c5906={};let _0x5116d7,_0x5f8e5;return db[_0x15cf16('0x2b')]['findOne']({'where':{'id':_0xb01216[_0x15cf16('0x14')]['id']}})[_0x15cf16('0x18')](handleEntityNotFound(_0x25a551,null))[_0x15cf16('0x18')](function(_0x1d1913){const _0x3ecdd2=_0x15cf16;if(_0x1d1913)return _0x5116d7=_0x1d1913,_0x1c5906[_0x3ecdd2('0x3')]=_[_0x3ecdd2('0x24')](db[_0x3ecdd2('0x17')][_0x3ecdd2('0x1c')]),_0x1c5906[_0x3ecdd2('0x1f')]=_['keys'](_0xb01216['query']),_0x1c5906['filters']=_[_0x3ecdd2('0xe')](_0x1c5906[_0x3ecdd2('0x3')],_0x1c5906[_0x3ecdd2('0x1f')]),_0x22211f[_0x3ecdd2('0x10')]=_[_0x3ecdd2('0xe')](_0x1c5906[_0x3ecdd2('0x3')],qs['fields'](_0xb01216['query'][_0x3ecdd2('0x7')])),_0x22211f['attributes']=_0x22211f[_0x3ecdd2('0x10')][_0x3ecdd2('0x31')]?_0x22211f[_0x3ecdd2('0x10')]:_0x1c5906[_0x3ecdd2('0x3')],_0x22211f[_0x3ecdd2('0x8')]=qs[_0x3ecdd2('0x29')](_0xb01216['query']['sort']),_0x22211f[_0x3ecdd2('0xc')]=qs[_0x3ecdd2('0x6')](_[_0x3ecdd2('0xd')](_0xb01216['query'],_0x1c5906['filters'])),_0xb01216['query'][_0x3ecdd2('0x22')]&&(_0x22211f[_0x3ecdd2('0xc')]=_[_0x3ecdd2('0x1d')](_0x22211f['where'],{[Op['or']]:_[_0x3ecdd2('0x2')](_0x22211f[_0x3ecdd2('0x10')],function(_0x3d4e7a){const _0x45c7de=_0x3ecdd2,_0x24ca50={};return _0x24ca50[_0x3d4e7a]={[Op[_0x45c7de('0x2a')]]:'%'+_0xb01216['query'][_0x45c7de('0x22')]+'%'},_0x24ca50;})})),_0x22211f=_[_0x3ecdd2('0x1d')]({},_0x22211f,_0xb01216['options']),_0x5116d7[_0x3ecdd2('0x36')](_0x22211f);})[_0x15cf16('0x18')](function(_0x4248b0){const _0x14a3ba=_0x15cf16;if(_0x4248b0)return _0x5f8e5=_0x4248b0[_0x14a3ba('0x31')],typeof _0xb01216['query'][_0x14a3ba('0xf')]==='undefined'&&(_0x22211f[_0x14a3ba('0x2c')]=qs[_0x14a3ba('0x2c')](_0xb01216[_0x14a3ba('0x1f')][_0x14a3ba('0x2c')]),_0x22211f[_0x14a3ba('0x32')]=qs[_0x14a3ba('0x32')](_0xb01216[_0x14a3ba('0x1f')][_0x14a3ba('0x32')])),_0x5116d7[_0x14a3ba('0x36')](_0x22211f);})[_0x15cf16('0x18')](function(_0x1bffe8){if(_0x1bffe8)return _0x1bffe8?{'count':_0x5f8e5,'rows':_0x1bffe8}:null;})[_0x15cf16('0x18')](respondWithResult(_0x25a551,null))[_0x15cf16('0x1e')](handleError(_0x25a551,null));},exports['getDescriptions']=function(_0x5cfeac,_0x11385e){const _0x4d20be=_0xe1cc26;let _0x553eff={};const _0x97817f={};let _0x407897,_0x1ced1d;return db[_0x4d20be('0x2b')][_0x4d20be('0x2d')]({'where':{'id':_0x5cfeac[_0x4d20be('0x14')]['id']}})['then'](handleEntityNotFound(_0x11385e,null))[_0x4d20be('0x18')](function(_0x14df0d){const _0x2e4559=_0x4d20be;if(_0x14df0d)return _0x407897=_0x14df0d,_0x97817f['model']=_[_0x2e4559('0x24')](db[_0x2e4559('0x17')][_0x2e4559('0x1c')]),_0x97817f[_0x2e4559('0x1f')]=_[_0x2e4559('0x24')](_0x5cfeac[_0x2e4559('0x1f')]),_0x97817f[_0x2e4559('0x6')]=_[_0x2e4559('0xe')](_0x97817f[_0x2e4559('0x3')],_0x97817f['query']),_0x553eff['attributes']=_[_0x2e4559('0xe')](_0x97817f['model'],qs[_0x2e4559('0x7')](_0x5cfeac[_0x2e4559('0x1f')]['fields'])),_0x553eff['attributes']=_0x553eff[_0x2e4559('0x10')]['length']?_0x553eff['attributes']:_0x97817f[_0x2e4559('0x3')],_0x553eff[_0x2e4559('0x8')]=qs[_0x2e4559('0x29')](_0x5cfeac[_0x2e4559('0x1f')][_0x2e4559('0x29')]),_0x553eff[_0x2e4559('0xc')]=qs[_0x2e4559('0x6')](_['pick'](_0x5cfeac[_0x2e4559('0x1f')],_0x97817f[_0x2e4559('0x6')])),_0x5cfeac['query'][_0x2e4559('0x22')]&&(_0x553eff[_0x2e4559('0xc')]=_['merge'](_0x553eff[_0x2e4559('0xc')],{[Op['or']]:_[_0x2e4559('0x2')](_0x553eff[_0x2e4559('0x10')],function(_0x33e6de){const _0x15ed6e=_0x2e4559,_0x22bcc5={};return _0x22bcc5[_0x33e6de]={[Op['like']]:'%'+_0x5cfeac[_0x15ed6e('0x1f')]['filter']+'%'},_0x22bcc5;})})),_0x553eff=_[_0x2e4559('0x1d')]({},_0x553eff,_0x5cfeac[_0x2e4559('0x2f')]),_0x407897[_0x2e4559('0x9')](_0x553eff);})[_0x4d20be('0x18')](function(_0x5534df){const _0x6e6ac2=_0x4d20be;if(_0x5534df)return _0x1ced1d=_0x5534df[_0x6e6ac2('0x31')],typeof _0x5cfeac[_0x6e6ac2('0x1f')][_0x6e6ac2('0xf')]===_0x6e6ac2('0xb')&&(_0x553eff['limit']=qs[_0x6e6ac2('0x2c')](_0x5cfeac[_0x6e6ac2('0x1f')][_0x6e6ac2('0x2c')]),_0x553eff['offset']=qs[_0x6e6ac2('0x32')](_0x5cfeac['query'][_0x6e6ac2('0x32')])),_0x407897['getDescriptions'](_0x553eff);})['then'](function(_0x35ee13){if(_0x35ee13)return _0x35ee13?{'count':_0x1ced1d,'rows':_0x35ee13}:null;})['then'](respondWithResult(_0x11385e,null))[_0x4d20be('0x1e')](handleError(_0x11385e,null));}; \ No newline at end of file diff --git a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js index 0b7774b..1cdfcef 100644 --- a/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js +++ b/server/api/intSalesforceConfiguration/intSalesforceConfiguration.model.js @@ -1 +1 @@ -const a287_0x1740=['SalesforceConfiguration','exports','int_salesforce_configurations','define'];(function(_0x7d00f1,_0x1740fc){const _0x2ad881=function(_0x5db256){while(--_0x5db256){_0x7d00f1['push'](_0x7d00f1['shift']());}};_0x2ad881(++_0x1740fc);}(a287_0x1740,0x127));const a287_0x2ad8=function(_0x7d00f1,_0x1740fc){_0x7d00f1=_0x7d00f1-0x0;let _0x2ad881=a287_0x1740[_0x7d00f1];return _0x2ad881;};const _0x41ca8c=a287_0x2ad8;'use strict';const attributes=require('./intSalesforceConfiguration.attributes');module[_0x41ca8c('0x2')]=function(_0x5db256){const _0x6da9ee=_0x41ca8c,_0x11926d=_0x5db256[_0x6da9ee('0x0')](_0x6da9ee('0x1'),attributes,{'tableName':_0x6da9ee('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x11926d;}; \ No newline at end of file +const a287_0x40c2=['./intSalesforceConfiguration.attributes','int_salesforce_configurations','SalesforceConfiguration'];(function(_0x11d160,_0x40c24f){const _0x12e6df=function(_0x4b966b){while(--_0x4b966b){_0x11d160['push'](_0x11d160['shift']());}};_0x12e6df(++_0x40c24f);}(a287_0x40c2,0x74));const a287_0x12e6=function(_0x11d160,_0x40c24f){_0x11d160=_0x11d160-0x0;let _0x12e6df=a287_0x40c2[_0x11d160];return _0x12e6df;};const _0x49a75c=a287_0x12e6;'use strict';const attributes=require(_0x49a75c('0x1'));module['exports']=function(_0x4b966b){const _0x449bc7=_0x49a75c,_0x5c471a=_0x4b966b['define'](_0x449bc7('0x0'),attributes,{'tableName':_0x449bc7('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5c471a;}; \ No newline at end of file diff --git a/server/api/intSalesforceField/index.js b/server/api/intSalesforceField/index.js index 29d08a3..580da55 100644 --- a/server/api/intSalesforceField/index.js +++ b/server/api/intSalesforceField/index.js @@ -1 +1 @@ -const a288_0x109b=['isAuthenticated','delete','create','put','/:id','express','exports','post','index','./intSalesforceField.controller','get'];(function(_0x24f1d2,_0x109b5d){const _0x39ed47=function(_0x37ae3e){while(--_0x37ae3e){_0x24f1d2['push'](_0x24f1d2['shift']());}};_0x39ed47(++_0x109b5d);}(a288_0x109b,0x1ed));const a288_0x39ed=function(_0x24f1d2,_0x109b5d){_0x24f1d2=_0x24f1d2-0x0;let _0x39ed47=a288_0x109b[_0x24f1d2];return _0x39ed47;};const _0x401171=a288_0x39ed;'use strict';const express=require(_0x401171('0x7')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x401171('0x0'));router[_0x401171('0x1')]('/',auth[_0x401171('0x2')](),controller[_0x401171('0xa')]),router[_0x401171('0x1')](_0x401171('0x6'),auth['isAuthenticated'](),controller['show']),router[_0x401171('0x9')]('/',auth[_0x401171('0x2')](),controller[_0x401171('0x4')]),router[_0x401171('0x5')](_0x401171('0x6'),auth[_0x401171('0x2')](),controller['update']),router[_0x401171('0x3')]('/:id',auth[_0x401171('0x2')](),controller['destroy']),module[_0x401171('0x8')]=router; \ No newline at end of file +const a288_0x5cb5=['show','put','destroy','./intSalesforceField.controller','post','Router','express','create','exports','../../components/auth/service','delete','/:id','update','isAuthenticated','get','index'];(function(_0x678c4f,_0x5cb538){const _0x570bcc=function(_0x1ac67a){while(--_0x1ac67a){_0x678c4f['push'](_0x678c4f['shift']());}};_0x570bcc(++_0x5cb538);}(a288_0x5cb5,0xfc));const a288_0x570b=function(_0x678c4f,_0x5cb538){_0x678c4f=_0x678c4f-0x0;let _0x570bcc=a288_0x5cb5[_0x678c4f];return _0x570bcc;};const _0x24e73c=a288_0x570b;'use strict';const express=require(_0x24e73c('0xa')),router=express[_0x24e73c('0x9')](),auth=require(_0x24e73c('0xd')),controller=require(_0x24e73c('0x7'));router[_0x24e73c('0x2')]('/',auth[_0x24e73c('0x1')](),controller[_0x24e73c('0x3')]),router[_0x24e73c('0x2')](_0x24e73c('0xf'),auth[_0x24e73c('0x1')](),controller[_0x24e73c('0x4')]),router[_0x24e73c('0x8')]('/',auth[_0x24e73c('0x1')](),controller[_0x24e73c('0xb')]),router[_0x24e73c('0x5')](_0x24e73c('0xf'),auth[_0x24e73c('0x1')](),controller[_0x24e73c('0x0')]),router[_0x24e73c('0xe')](_0x24e73c('0xf'),auth[_0x24e73c('0x1')](),controller[_0x24e73c('0x6')]),module[_0x24e73c('0xc')]=router; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.attributes.js b/server/api/intSalesforceField/intSalesforceField.attributes.js index d8e4782..bb2b203 100644 --- a/server/api/intSalesforceField/intSalesforceField.attributes.js +++ b/server/api/intSalesforceField/intSalesforceField.attributes.js @@ -1 +1 @@ -const a289_0x306d=['STRING','exports','sequelize','ENUM','variable','keyValue','customVariable','string'];(function(_0x4e36a2,_0x306dc3){const _0x2eec6a=function(_0x3f30b4){while(--_0x3f30b4){_0x4e36a2['push'](_0x4e36a2['shift']());}};_0x2eec6a(++_0x306dc3);}(a289_0x306d,0xb7));const a289_0x2eec=function(_0x4e36a2,_0x306dc3){_0x4e36a2=_0x4e36a2-0x0;let _0x2eec6a=a289_0x306d[_0x4e36a2];return _0x2eec6a;};const _0x4ce3e8=a289_0x2eec;'use strict';const Sequelize=require(_0x4ce3e8('0x3'));module[_0x4ce3e8('0x2')]={'type':{'type':Sequelize[_0x4ce3e8('0x4')](_0x4ce3e8('0x0'),_0x4ce3e8('0x5'),_0x4ce3e8('0x7'),_0x4ce3e8('0x6')),'defaultValue':'string'},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize['ENUM'](_0x4ce3e8('0x0'),_0x4ce3e8('0x5'),'customVariable')},'keyContent':{'type':Sequelize[_0x4ce3e8('0x1')]},'idField':{'type':Sequelize[_0x4ce3e8('0x1')]},'variableName':{'type':Sequelize[_0x4ce3e8('0x1')]}}; \ No newline at end of file +const a289_0x34a5=['customVariable','keyValue','sequelize','STRING','ENUM','string'];(function(_0x24e648,_0x34a560){const _0x4d85ee=function(_0x16dcf7){while(--_0x16dcf7){_0x24e648['push'](_0x24e648['shift']());}};_0x4d85ee(++_0x34a560);}(a289_0x34a5,0xe6));const a289_0x4d85=function(_0x24e648,_0x34a560){_0x24e648=_0x24e648-0x0;let _0x4d85ee=a289_0x34a5[_0x24e648];return _0x4d85ee;};const _0x25f071=a289_0x4d85;'use strict';const Sequelize=require(_0x25f071('0x0'));module['exports']={'type':{'type':Sequelize[_0x25f071('0x2')](_0x25f071('0x3'),'variable',_0x25f071('0x4'),_0x25f071('0x5')),'defaultValue':_0x25f071('0x3')},'content':{'type':Sequelize[_0x25f071('0x1')]},'key':{'type':Sequelize[_0x25f071('0x1')]},'keyType':{'type':Sequelize['ENUM'](_0x25f071('0x3'),'variable',_0x25f071('0x4'))},'keyContent':{'type':Sequelize[_0x25f071('0x1')]},'idField':{'type':Sequelize[_0x25f071('0x1')]},'variableName':{'type':Sequelize[_0x25f071('0x1')]}}; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.controller.js b/server/api/intSalesforceField/intSalesforceField.controller.js index 2214da1..4c3e94a 100644 --- a/server/api/intSalesforceField/intSalesforceField.controller.js +++ b/server/api/intSalesforceField/intSalesforceField.controller.js @@ -1 +1 @@ -const a290_0x11b4=['name','keys','Content-Range','count','SalesforceField','VIRTUAL','intersection','fields','pick','limit','key','../../mysqldb','order','findOne','rows','offset','status','like','params','lodash','json','map','update','include','filters','options','catch','create','../../config/logger','destroy','end','attributes','nolimit','../../components/parsers/qs','query','rawAttributes','stack','error','model','fieldName','set','then','includeAll','body','sort','show','type','api','merge','filter','where'];(function(_0x366515,_0x11b4d2){const _0x38430f=function(_0x42206b){while(--_0x42206b){_0x366515['push'](_0x366515['shift']());}};_0x38430f(++_0x11b4d2);}(a290_0x11b4,0x1a6));const a290_0x3843=function(_0x366515,_0x11b4d2){_0x366515=_0x366515-0x0;let _0x38430f=a290_0x11b4[_0x366515];return _0x38430f;};const _0x254104=a290_0x3843;'use strict';const _=require(_0x254104('0x5')),qs=require(_0x254104('0x13')),logger=require(_0x254104('0xe'))(_0x254104('0x21')),db=require(_0x254104('0x30'))['db'],{Op}=require('sequelize');function respondWithResult(_0x42206b,_0x5ea447){return _0x5ea447=_0x5ea447||0xc8,function(_0x525fd2){const _0x34ddc3=a290_0x3843;if(_0x525fd2)return _0x42206b[_0x34ddc3('0x2')](_0x5ea447)[_0x34ddc3('0x6')](_0x525fd2);};}function respondWithFilteredResult(_0x64fd52,_0x16556e){return function(_0x53ffd4){const _0x36c9a6=a290_0x3843;if(_0x53ffd4){const _0x50b8ae=_0x53ffd4[_0x36c9a6('0x28')],_0xd13081=_0x16556e[_0x36c9a6('0x1')];let _0x4a3133=_0x16556e[_0x36c9a6('0x1')]+_0x16556e[_0x36c9a6('0x2e')],_0xdadf20;return _0x4a3133>=_0x50b8ae?(_0x4a3133=_0x50b8ae,_0xdadf20=0xc8):_0xdadf20=0xce,_0x64fd52[_0x36c9a6('0x2')](_0xdadf20),_0x64fd52[_0x36c9a6('0x1a')](_0x36c9a6('0x27'),_0xd13081+'-'+_0x4a3133+'/'+_0x50b8ae)[_0x36c9a6('0x6')](_0x53ffd4);}return null;};}function saveUpdates(_0x1c9850){return function(_0x345ffd){const _0x373640=a290_0x3843;if(_0x345ffd)return _0x345ffd[_0x373640('0x8')](_0x1c9850)['then'](function(_0x45fa49){return _0x45fa49;});return null;};}function removeEntity(_0x4b8d95){return function(_0x56e311){const _0xb809a8=a290_0x3843;if(_0x56e311)return _0x56e311[_0xb809a8('0xf')]()['then'](function(){const _0x52f9ff=_0xb809a8;_0x4b8d95['status'](0xcc)[_0x52f9ff('0x10')]();});};}function handleEntityNotFound(_0x2be724){return function(_0x534ae8){return!_0x534ae8&&_0x2be724['sendStatus'](0x194),_0x534ae8;};}function handleError(_0x5b4c17,_0x45620c){return _0x45620c=_0x45620c||0x1f4,function(_0x1fd1db){const _0x489596=a290_0x3843;logger[_0x489596('0x17')](_0x1fd1db[_0x489596('0x16')]),_0x1fd1db[_0x489596('0x25')]&&delete _0x1fd1db[_0x489596('0x25')],_0x5b4c17[_0x489596('0x2')](_0x45620c)['send'](_0x1fd1db);};}exports['index']=function(_0x12db95,_0x1926e5){const _0x35d196=_0x254104;let _0x1a87fe={};const _0x3f852e={},_0x4bc8f0={'count':0x0,'rows':[]},_0xbb989b=_[_0x35d196('0x7')](db[_0x35d196('0x29')][_0x35d196('0x15')],function(_0x57808d){const _0x323313=_0x35d196;return{'name':_0x57808d[_0x323313('0x19')],'type':_0x57808d[_0x323313('0x20')][_0x323313('0x2f')]};});_0x3f852e[_0x35d196('0x18')]=_[_0x35d196('0x7')](_0xbb989b,_0x35d196('0x25')),_0x3f852e[_0x35d196('0x14')]=_[_0x35d196('0x26')](_0x12db95[_0x35d196('0x14')]),_0x3f852e[_0x35d196('0xa')]=_[_0x35d196('0x2b')](_0x3f852e[_0x35d196('0x18')],_0x3f852e[_0x35d196('0x14')]),_0x1a87fe[_0x35d196('0x11')]=_[_0x35d196('0x2b')](_0x3f852e['model'],qs[_0x35d196('0x2c')](_0x12db95[_0x35d196('0x14')][_0x35d196('0x2c')])),_0x1a87fe[_0x35d196('0x11')]=_0x1a87fe['attributes']['length']?_0x1a87fe['attributes']:_0x3f852e['model'];typeof _0x12db95['query'][_0x35d196('0x12')]==='undefined'&&(_0x1a87fe['limit']=qs[_0x35d196('0x2e')](_0x12db95['query']['limit']),_0x1a87fe['offset']=qs[_0x35d196('0x1')](_0x12db95[_0x35d196('0x14')][_0x35d196('0x1')]));_0x1a87fe[_0x35d196('0x31')]=qs['sort'](_0x12db95[_0x35d196('0x14')][_0x35d196('0x1e')]),_0x1a87fe[_0x35d196('0x24')]=qs[_0x35d196('0xa')](_[_0x35d196('0x2d')](_0x12db95['query'],_0x3f852e[_0x35d196('0xa')]),_0xbb989b);_0x12db95['query'][_0x35d196('0x23')]&&(_0x1a87fe[_0x35d196('0x24')]=_['merge'](_0x1a87fe[_0x35d196('0x24')],{[Op['or']]:_['map'](_0xbb989b,function(_0x6c95ba){const _0x3b6662=_0x35d196;if(_0x6c95ba[_0x3b6662('0x20')]!==_0x3b6662('0x2a')){const _0x4b31a3={};return _0x4b31a3[_0x6c95ba[_0x3b6662('0x25')]]={[Op[_0x3b6662('0x3')]]:'%'+_0x12db95['query'][_0x3b6662('0x23')]+'%'},_0x4b31a3;}})}));_0x1a87fe=_[_0x35d196('0x22')]({},_0x1a87fe,_0x12db95['options']);const _0xadd907={'where':_0x1a87fe[_0x35d196('0x24')]};return db['SalesforceField'][_0x35d196('0x28')](_0xadd907)[_0x35d196('0x1b')](function(_0x44fdef){const _0x36b9c2=_0x35d196;return _0x4bc8f0[_0x36b9c2('0x28')]=_0x44fdef,_0x12db95[_0x36b9c2('0x14')][_0x36b9c2('0x1c')]&&(_0x1a87fe['include']=[{'all':!![]}]),db[_0x36b9c2('0x29')]['findAll'](_0x1a87fe);})[_0x35d196('0x1b')](function(_0x30d49e){const _0x284480=_0x35d196;return _0x4bc8f0[_0x284480('0x0')]=_0x30d49e,_0x4bc8f0;})[_0x35d196('0x1b')](respondWithFilteredResult(_0x1926e5,_0x1a87fe))[_0x35d196('0xc')](handleError(_0x1926e5,null));},exports[_0x254104('0x1f')]=function(_0x97dc7d,_0x2d457d){const _0x5186da=_0x254104;let _0x5b12d4={'raw':!![],'where':{'id':_0x97dc7d[_0x5186da('0x4')]['id']}};const _0x545dd9={};return _0x545dd9[_0x5186da('0x18')]=_[_0x5186da('0x26')](db['SalesforceField'][_0x5186da('0x15')]),_0x545dd9[_0x5186da('0x14')]=_['keys'](_0x97dc7d[_0x5186da('0x14')]),_0x545dd9[_0x5186da('0xa')]=_[_0x5186da('0x2b')](_0x545dd9[_0x5186da('0x18')],_0x545dd9['query']),_0x5b12d4[_0x5186da('0x11')]=_[_0x5186da('0x2b')](_0x545dd9[_0x5186da('0x18')],qs[_0x5186da('0x2c')](_0x97dc7d['query'][_0x5186da('0x2c')])),_0x5b12d4[_0x5186da('0x11')]=_0x5b12d4[_0x5186da('0x11')]['length']?_0x5b12d4['attributes']:_0x545dd9[_0x5186da('0x18')],_0x97dc7d[_0x5186da('0x14')][_0x5186da('0x1c')]&&(_0x5b12d4[_0x5186da('0x9')]=[{'all':!![]}]),_0x5b12d4=_['merge']({},_0x5b12d4,_0x97dc7d[_0x5186da('0xb')]),db['SalesforceField'][_0x5186da('0x32')](_0x5b12d4)[_0x5186da('0x1b')](handleEntityNotFound(_0x2d457d,null))[_0x5186da('0x1b')](respondWithResult(_0x2d457d,null))['catch'](handleError(_0x2d457d,null));},exports[_0x254104('0xd')]=function(_0x126fc2,_0x4884a9){const _0xbecc85=_0x254104;return db[_0xbecc85('0x29')][_0xbecc85('0xd')](_0x126fc2[_0xbecc85('0x1d')],{})[_0xbecc85('0x1b')](respondWithResult(_0x4884a9,0xc9))[_0xbecc85('0xc')](handleError(_0x4884a9,null));},exports[_0x254104('0x8')]=function(_0x420d0f,_0x3352ab){const _0x6c4660=_0x254104;return _0x420d0f[_0x6c4660('0x1d')]['id']&&delete _0x420d0f[_0x6c4660('0x1d')]['id'],db[_0x6c4660('0x29')][_0x6c4660('0x32')]({'where':{'id':_0x420d0f[_0x6c4660('0x4')]['id']}})[_0x6c4660('0x1b')](handleEntityNotFound(_0x3352ab,null))[_0x6c4660('0x1b')](saveUpdates(_0x420d0f[_0x6c4660('0x1d')],null))[_0x6c4660('0x1b')](respondWithResult(_0x3352ab,null))['catch'](handleError(_0x3352ab,null));},exports['destroy']=function(_0x3c45e5,_0x3f30c4){const _0x4e5e15=_0x254104;return db[_0x4e5e15('0x29')][_0x4e5e15('0x32')]({'where':{'id':_0x3c45e5[_0x4e5e15('0x4')]['id']}})[_0x4e5e15('0x1b')](handleEntityNotFound(_0x3f30c4,null))[_0x4e5e15('0x1b')](removeEntity(_0x3f30c4,null))['catch'](handleError(_0x3f30c4,null));}; \ No newline at end of file +const a290_0x5e85=['update','keys','params','Content-Range','lodash','destroy','then','filter','end','filters','key','stack','type','attributes','sort','options','body','send','intersection','merge','json','../../components/parsers/qs','show','like','findAll','includeAll','error','VIRTUAL','api','offset','SalesforceField','set','status','where','catch','limit','map','../../mysqldb','findOne','name','fields','include','sendStatus','nolimit','model','sequelize','count','undefined','query','rawAttributes'];(function(_0x131b82,_0x5e852d){const _0x27bcc5=function(_0x42d269){while(--_0x42d269){_0x131b82['push'](_0x131b82['shift']());}};_0x27bcc5(++_0x5e852d);}(a290_0x5e85,0x182));const a290_0x27bc=function(_0x131b82,_0x5e852d){_0x131b82=_0x131b82-0x0;let _0x27bcc5=a290_0x5e85[_0x131b82];return _0x27bcc5;};const _0x4a785b=a290_0x27bc;'use strict';const _=require(_0x4a785b('0x12')),qs=require(_0x4a785b('0x23')),logger=require('../../config/logger')(_0x4a785b('0x2a')),db=require(_0x4a785b('0x1'))['db'],{Op}=require(_0x4a785b('0x9'));function respondWithResult(_0x42d269,_0x194ce4){return _0x194ce4=_0x194ce4||0xc8,function(_0x5ca742){const _0x4770eb=a290_0x27bc;if(_0x5ca742)return _0x42d269[_0x4770eb('0x2e')](_0x194ce4)['json'](_0x5ca742);};}function respondWithFilteredResult(_0x40fe59,_0x23f0c9){return function(_0x3f60f3){const _0x1a2d21=a290_0x27bc;if(_0x3f60f3){const _0x185b36=_0x3f60f3[_0x1a2d21('0xa')],_0x92143e=_0x23f0c9[_0x1a2d21('0x2b')];let _0x254dca=_0x23f0c9[_0x1a2d21('0x2b')]+_0x23f0c9[_0x1a2d21('0x31')],_0x1ed612;return _0x254dca>=_0x185b36?(_0x254dca=_0x185b36,_0x1ed612=0xc8):_0x1ed612=0xce,_0x40fe59[_0x1a2d21('0x2e')](_0x1ed612),_0x40fe59[_0x1a2d21('0x2d')](_0x1a2d21('0x11'),_0x92143e+'-'+_0x254dca+'/'+_0x185b36)[_0x1a2d21('0x22')](_0x3f60f3);}return null;};}function saveUpdates(_0x5b8459){return function(_0xff409){const _0x3725f5=a290_0x27bc;if(_0xff409)return _0xff409[_0x3725f5('0xe')](_0x5b8459)[_0x3725f5('0x14')](function(_0x2f5e39){return _0x2f5e39;});return null;};}function removeEntity(_0x51d3ea){return function(_0x16dd4d){const _0x2cafca=a290_0x27bc;if(_0x16dd4d)return _0x16dd4d[_0x2cafca('0x13')]()[_0x2cafca('0x14')](function(){const _0xb13b2d=_0x2cafca;_0x51d3ea['status'](0xcc)[_0xb13b2d('0x16')]();});};}function handleEntityNotFound(_0x2d000c){return function(_0x37561b){const _0x12e1db=a290_0x27bc;return!_0x37561b&&_0x2d000c[_0x12e1db('0x6')](0x194),_0x37561b;};}function handleError(_0xca6fb,_0x5ab518){return _0x5ab518=_0x5ab518||0x1f4,function(_0x54d7f9){const _0x8d1691=a290_0x27bc;logger[_0x8d1691('0x28')](_0x54d7f9[_0x8d1691('0x19')]),_0x54d7f9[_0x8d1691('0x3')]&&delete _0x54d7f9[_0x8d1691('0x3')],_0xca6fb[_0x8d1691('0x2e')](_0x5ab518)[_0x8d1691('0x1f')](_0x54d7f9);};}exports['index']=function(_0x4757f4,_0x24fe0c){const _0x3601a5=_0x4a785b;let _0x405e90={};const _0x6dac84={},_0xfce166={'count':0x0,'rows':[]},_0x56133f=_[_0x3601a5('0x0')](db[_0x3601a5('0x2c')]['rawAttributes'],function(_0x3483b9){const _0x3fb8ee=_0x3601a5;return{'name':_0x3483b9['fieldName'],'type':_0x3483b9[_0x3fb8ee('0x1a')][_0x3fb8ee('0x18')]};});_0x6dac84['model']=_[_0x3601a5('0x0')](_0x56133f,_0x3601a5('0x3')),_0x6dac84[_0x3601a5('0xc')]=_[_0x3601a5('0xf')](_0x4757f4[_0x3601a5('0xc')]),_0x6dac84[_0x3601a5('0x17')]=_[_0x3601a5('0x20')](_0x6dac84[_0x3601a5('0x8')],_0x6dac84[_0x3601a5('0xc')]),_0x405e90[_0x3601a5('0x1b')]=_[_0x3601a5('0x20')](_0x6dac84[_0x3601a5('0x8')],qs[_0x3601a5('0x4')](_0x4757f4[_0x3601a5('0xc')][_0x3601a5('0x4')])),_0x405e90['attributes']=_0x405e90[_0x3601a5('0x1b')]['length']?_0x405e90[_0x3601a5('0x1b')]:_0x6dac84[_0x3601a5('0x8')];typeof _0x4757f4[_0x3601a5('0xc')][_0x3601a5('0x7')]===_0x3601a5('0xb')&&(_0x405e90['limit']=qs['limit'](_0x4757f4['query']['limit']),_0x405e90[_0x3601a5('0x2b')]=qs['offset'](_0x4757f4['query'][_0x3601a5('0x2b')]));_0x405e90['order']=qs[_0x3601a5('0x1c')](_0x4757f4[_0x3601a5('0xc')][_0x3601a5('0x1c')]),_0x405e90[_0x3601a5('0x2f')]=qs[_0x3601a5('0x17')](_['pick'](_0x4757f4[_0x3601a5('0xc')],_0x6dac84[_0x3601a5('0x17')]),_0x56133f);_0x4757f4[_0x3601a5('0xc')][_0x3601a5('0x15')]&&(_0x405e90[_0x3601a5('0x2f')]=_[_0x3601a5('0x21')](_0x405e90[_0x3601a5('0x2f')],{[Op['or']]:_[_0x3601a5('0x0')](_0x56133f,function(_0x1b3173){const _0x5c1d6f=_0x3601a5;if(_0x1b3173[_0x5c1d6f('0x1a')]!==_0x5c1d6f('0x29')){const _0x5d6d57={};return _0x5d6d57[_0x1b3173[_0x5c1d6f('0x3')]]={[Op[_0x5c1d6f('0x25')]]:'%'+_0x4757f4[_0x5c1d6f('0xc')][_0x5c1d6f('0x15')]+'%'},_0x5d6d57;}})}));_0x405e90=_['merge']({},_0x405e90,_0x4757f4['options']);const _0x49ace9={'where':_0x405e90['where']};return db[_0x3601a5('0x2c')][_0x3601a5('0xa')](_0x49ace9)[_0x3601a5('0x14')](function(_0x212b8d){const _0x4eb604=_0x3601a5;return _0xfce166[_0x4eb604('0xa')]=_0x212b8d,_0x4757f4[_0x4eb604('0xc')]['includeAll']&&(_0x405e90[_0x4eb604('0x5')]=[{'all':!![]}]),db[_0x4eb604('0x2c')][_0x4eb604('0x26')](_0x405e90);})[_0x3601a5('0x14')](function(_0xc2075a){return _0xfce166['rows']=_0xc2075a,_0xfce166;})[_0x3601a5('0x14')](respondWithFilteredResult(_0x24fe0c,_0x405e90))[_0x3601a5('0x30')](handleError(_0x24fe0c,null));},exports[_0x4a785b('0x24')]=function(_0x215c96,_0x3ae8cf){const _0x2f90ba=_0x4a785b;let _0x27f9fa={'raw':!![],'where':{'id':_0x215c96['params']['id']}};const _0x50f8cd={};return _0x50f8cd[_0x2f90ba('0x8')]=_[_0x2f90ba('0xf')](db[_0x2f90ba('0x2c')][_0x2f90ba('0xd')]),_0x50f8cd[_0x2f90ba('0xc')]=_[_0x2f90ba('0xf')](_0x215c96[_0x2f90ba('0xc')]),_0x50f8cd[_0x2f90ba('0x17')]=_[_0x2f90ba('0x20')](_0x50f8cd[_0x2f90ba('0x8')],_0x50f8cd[_0x2f90ba('0xc')]),_0x27f9fa[_0x2f90ba('0x1b')]=_[_0x2f90ba('0x20')](_0x50f8cd[_0x2f90ba('0x8')],qs['fields'](_0x215c96[_0x2f90ba('0xc')][_0x2f90ba('0x4')])),_0x27f9fa[_0x2f90ba('0x1b')]=_0x27f9fa[_0x2f90ba('0x1b')]['length']?_0x27f9fa['attributes']:_0x50f8cd[_0x2f90ba('0x8')],_0x215c96[_0x2f90ba('0xc')][_0x2f90ba('0x27')]&&(_0x27f9fa[_0x2f90ba('0x5')]=[{'all':!![]}]),_0x27f9fa=_[_0x2f90ba('0x21')]({},_0x27f9fa,_0x215c96[_0x2f90ba('0x1d')]),db['SalesforceField'][_0x2f90ba('0x2')](_0x27f9fa)[_0x2f90ba('0x14')](handleEntityNotFound(_0x3ae8cf,null))[_0x2f90ba('0x14')](respondWithResult(_0x3ae8cf,null))['catch'](handleError(_0x3ae8cf,null));},exports['create']=function(_0xb5956a,_0x41854f){const _0x8f1f13=_0x4a785b;return db[_0x8f1f13('0x2c')]['create'](_0xb5956a[_0x8f1f13('0x1e')],{})[_0x8f1f13('0x14')](respondWithResult(_0x41854f,0xc9))[_0x8f1f13('0x30')](handleError(_0x41854f,null));},exports['update']=function(_0x192793,_0xe96228){const _0x38263a=_0x4a785b;return _0x192793[_0x38263a('0x1e')]['id']&&delete _0x192793[_0x38263a('0x1e')]['id'],db[_0x38263a('0x2c')][_0x38263a('0x2')]({'where':{'id':_0x192793[_0x38263a('0x10')]['id']}})[_0x38263a('0x14')](handleEntityNotFound(_0xe96228,null))[_0x38263a('0x14')](saveUpdates(_0x192793['body'],null))[_0x38263a('0x14')](respondWithResult(_0xe96228,null))[_0x38263a('0x30')](handleError(_0xe96228,null));},exports[_0x4a785b('0x13')]=function(_0xc95c80,_0x5b66e2){const _0x1e49c4=_0x4a785b;return db['SalesforceField']['findOne']({'where':{'id':_0xc95c80['params']['id']}})[_0x1e49c4('0x14')](handleEntityNotFound(_0x5b66e2,null))['then'](removeEntity(_0x5b66e2,null))[_0x1e49c4('0x30')](handleError(_0x5b66e2,null));}; \ No newline at end of file diff --git a/server/api/intSalesforceField/intSalesforceField.model.js b/server/api/intSalesforceField/intSalesforceField.model.js index d922d62..ef43e9a 100644 --- a/server/api/intSalesforceField/intSalesforceField.model.js +++ b/server/api/intSalesforceField/intSalesforceField.model.js @@ -1 +1 @@ -const a291_0x4c26=['idField','salesforce_unique_index','FieldId','define','exports'];(function(_0xc57ec,_0x4c260c){const _0x4b9901=function(_0x226f29){while(--_0x226f29){_0xc57ec['push'](_0xc57ec['shift']());}};_0x4b9901(++_0x4c260c);}(a291_0x4c26,0x6e));const a291_0x4b99=function(_0xc57ec,_0x4c260c){_0xc57ec=_0xc57ec-0x0;let _0x4b9901=a291_0x4c26[_0xc57ec];return _0x4b9901;};const _0x541c00=a291_0x4b99;'use strict';const attributes=require('./intSalesforceField.attributes');module[_0x541c00('0x4')]=function(_0x226f29){const _0x47d1d8=_0x541c00,_0x2244c2=_0x226f29[_0x47d1d8('0x3')]('SalesforceField',attributes,{'tableName':'int_salesforce_fields','paranoid':![],'indexes':[{'name':_0x47d1d8('0x1'),'fields':[_0x47d1d8('0x0'),_0x47d1d8('0x2')],'unique':!![]}],'timestamps':!![]});return _0x2244c2;}; \ No newline at end of file +const a291_0x2384=['exports','SalesforceField','define','./intSalesforceField.attributes','FieldId','int_salesforce_fields','salesforce_unique_index'];(function(_0x5f1e58,_0x2384bd){const _0x2b6c58=function(_0x378640){while(--_0x378640){_0x5f1e58['push'](_0x5f1e58['shift']());}};_0x2b6c58(++_0x2384bd);}(a291_0x2384,0x1b5));const a291_0x2b6c=function(_0x5f1e58,_0x2384bd){_0x5f1e58=_0x5f1e58-0x0;let _0x2b6c58=a291_0x2384[_0x5f1e58];return _0x2b6c58;};const _0x4f4b81=a291_0x2b6c;'use strict';const attributes=require(_0x4f4b81('0x0'));module[_0x4f4b81('0x4')]=function(_0x378640){const _0x171e44=_0x4f4b81,_0x374665=_0x378640[_0x171e44('0x6')](_0x171e44('0x5'),attributes,{'tableName':_0x171e44('0x2'),'paranoid':![],'indexes':[{'name':_0x171e44('0x3'),'fields':['idField',_0x171e44('0x1')],'unique':!![]}],'timestamps':!![]});return _0x374665;}; \ No newline at end of file diff --git a/server/api/intServicenowAccount/index.js b/server/api/intServicenowAccount/index.js index 65d32e6..ef2103d 100644 --- a/server/api/intServicenowAccount/index.js +++ b/server/api/intServicenowAccount/index.js @@ -1 +1 @@ -const a292_0x157d=['update','post','destroy','exports','/:id/configurations','isAuthenticated','index','get','put','getFields','../../components/auth/service','/:id','Router','/:id/fields','delete'];(function(_0x54d07b,_0x157d97){const _0x137a44=function(_0x5560c5){while(--_0x5560c5){_0x54d07b['push'](_0x54d07b['shift']());}};_0x137a44(++_0x157d97);}(a292_0x157d,0x1dc));const a292_0x137a=function(_0x54d07b,_0x157d97){_0x54d07b=_0x54d07b-0x0;let _0x137a44=a292_0x157d[_0x54d07b];return _0x137a44;};const _0x1de1e2=a292_0x137a;'use strict';const express=require('express'),router=express[_0x1de1e2('0x1')](),auth=require(_0x1de1e2('0xe')),controller=require('./intServicenowAccount.controller');router[_0x1de1e2('0xb')]('/',auth['isAuthenticated'](),controller[_0x1de1e2('0xa')]),router[_0x1de1e2('0xb')]('/:id',auth[_0x1de1e2('0x9')](),controller['show']),router[_0x1de1e2('0xb')](_0x1de1e2('0x8'),auth['isAuthenticated'](),controller['getConfigurations']),router['get'](_0x1de1e2('0x2'),auth[_0x1de1e2('0x9')](),controller[_0x1de1e2('0xd')]),router[_0x1de1e2('0x5')]('/',auth[_0x1de1e2('0x9')](),controller['create']),router[_0x1de1e2('0x5')](_0x1de1e2('0x8'),auth[_0x1de1e2('0x9')](),controller['addConfiguration']),router[_0x1de1e2('0xc')](_0x1de1e2('0x0'),auth['isAuthenticated'](),controller[_0x1de1e2('0x4')]),router[_0x1de1e2('0x3')](_0x1de1e2('0x0'),auth['isAuthenticated'](),controller[_0x1de1e2('0x6')]),module[_0x1de1e2('0x7')]=router; \ No newline at end of file +const a292_0x2b6d=['/:id','./intServicenowAccount.controller','Router','/:id/fields','post','get','express','show','exports','/:id/configurations','destroy','create','getFields','index','isAuthenticated','delete','../../components/auth/service','update'];(function(_0x16de55,_0x2b6d26){const _0x4083f6=function(_0x199707){while(--_0x199707){_0x16de55['push'](_0x16de55['shift']());}};_0x4083f6(++_0x2b6d26);}(a292_0x2b6d,0x153));const a292_0x4083=function(_0x16de55,_0x2b6d26){_0x16de55=_0x16de55-0x0;let _0x4083f6=a292_0x2b6d[_0x16de55];return _0x4083f6;};const _0x355bfe=a292_0x4083;'use strict';const express=require(_0x355bfe('0x9')),router=express[_0x355bfe('0x5')](),auth=require(_0x355bfe('0x1')),controller=require(_0x355bfe('0x4'));router['get']('/',auth[_0x355bfe('0x11')](),controller[_0x355bfe('0x10')]),router[_0x355bfe('0x8')](_0x355bfe('0x3'),auth[_0x355bfe('0x11')](),controller[_0x355bfe('0xa')]),router[_0x355bfe('0x8')](_0x355bfe('0xc'),auth['isAuthenticated'](),controller['getConfigurations']),router[_0x355bfe('0x8')](_0x355bfe('0x6'),auth[_0x355bfe('0x11')](),controller[_0x355bfe('0xf')]),router[_0x355bfe('0x7')]('/',auth[_0x355bfe('0x11')](),controller[_0x355bfe('0xe')]),router['post']('/:id/configurations',auth['isAuthenticated'](),controller['addConfiguration']),router['put'](_0x355bfe('0x3'),auth[_0x355bfe('0x11')](),controller[_0x355bfe('0x2')]),router[_0x355bfe('0x0')](_0x355bfe('0x3'),auth[_0x355bfe('0x11')](),controller[_0x355bfe('0xd')]),module[_0x355bfe('0xb')]=router; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.attributes.js b/server/api/intServicenowAccount/intServicenowAccount.attributes.js index 388ae10..71e01bf 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.attributes.js +++ b/server/api/intServicenowAccount/intServicenowAccount.attributes.js @@ -1 +1 @@ -const a293_0x40ce=['username','exports','STRING','remoteUri'];(function(_0x4fc7da,_0x40cede){const _0x21d1c5=function(_0x5b5f0e){while(--_0x5b5f0e){_0x4fc7da['push'](_0x4fc7da['shift']());}};_0x21d1c5(++_0x40cede);}(a293_0x40ce,0x95));const a293_0x21d1=function(_0x4fc7da,_0x40cede){_0x4fc7da=_0x4fc7da-0x0;let _0x21d1c5=a293_0x40ce[_0x4fc7da];return _0x21d1c5;};const _0x4cffaf=a293_0x21d1;'use strict';const Sequelize=require('sequelize');module[_0x4cffaf('0x0')]={'name':{'type':Sequelize[_0x4cffaf('0x1')]},'description':{'type':Sequelize[_0x4cffaf('0x1')]},'username':{'type':Sequelize[_0x4cffaf('0x1')],'unique':_0x4cffaf('0x3')},'password':{'type':Sequelize[_0x4cffaf('0x1')]},'email':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize[_0x4cffaf('0x1')],'unique':_0x4cffaf('0x2')},'serverUrl':{'type':Sequelize[_0x4cffaf('0x1')]}}; \ No newline at end of file +const a293_0x4f80=['exports','username','STRING','sequelize','remoteUri'];(function(_0x227a9a,_0x4f8036){const _0x493b9d=function(_0x329666){while(--_0x329666){_0x227a9a['push'](_0x227a9a['shift']());}};_0x493b9d(++_0x4f8036);}(a293_0x4f80,0x75));const a293_0x493b=function(_0x227a9a,_0x4f8036){_0x227a9a=_0x227a9a-0x0;let _0x493b9d=a293_0x4f80[_0x227a9a];return _0x493b9d;};const _0x4384c1=a293_0x493b;'use strict';const Sequelize=require(_0x4384c1('0x1'));module[_0x4384c1('0x3')]={'name':{'type':Sequelize[_0x4384c1('0x0')]},'description':{'type':Sequelize[_0x4384c1('0x0')]},'username':{'type':Sequelize[_0x4384c1('0x0')],'unique':_0x4384c1('0x4')},'password':{'type':Sequelize[_0x4384c1('0x0')]},'email':{'type':Sequelize['STRING']},'remoteUri':{'type':Sequelize['STRING'],'unique':_0x4384c1('0x2')},'serverUrl':{'type':Sequelize[_0x4384c1('0x0')]}}; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.controller.js b/server/api/intServicenowAccount/intServicenowAccount.controller.js index 8ebdbf9..b0d7d15 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.controller.js +++ b/server/api/intServicenowAccount/intServicenowAccount.controller.js @@ -1 +1 @@ -const a294_0xc57d=['Descriptions','incident_state','lodash','api','opened_at','remoteUri','close_code','reopened_time','findOne','ServicenowConfiguration','../../components/integrations/configuration','ServicenowAccount','work_end','state','work_start','closed_by','request-promise-native','sys_updated_on','priority','filters','AccountId','calendar_stc','assign','getConfigurations','incident?sysparm_display_value=all','include','pick','order','work_notes_list','GET','send','delivery_plan','sys_domain','active','remove','end','resolved_by','slice','comments_and_work_notes','impact','caller_id','username','due_date','category','group_list','subcategory','false','hold_reason','includes','close_notes','type','name','format','watch_list','../../mysqldb','true','company','statusCode','parent_incident','then','contact_type','sys_tags','options','caused_by','all','Content-Range','time_worked','undefined','inactive','model','urgency','business_stc','sys_choice?sysparm_query=name=incident^element=','ServicenowField','log','email','status','problem_id','approval','description','reopen_count','VIRTUAL','label','short_description','result','count','made_sla','offset','opened_by','where','severity','number','calendar_duration','merge','destroy','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','password','attributes','findAll','create','keys','update','boolean','escalation','knowledge','sendStatus','test','rfc','like','sys_created_on','notify','rows','map','sys_updated_by','parent','reopened_by','intersection','internalType','delivery_task','show','additional_assignee_list','forEach','getFields','includeAll','length','push','sequelize','filter','correlation_id','stack','catch','query','%s/api/now/table/','comments','expected_start','concat','%s/api/now/doc/table/schema/','error','rawAttributes','sys_class_name','body','cmdb_ci','sys_created_by','fieldName','params','sys_mod_count','nolimit','work_notes','substring','Subjects','correlation_display','sort','sys_domain_path','fields','set','limit','assignment_group','channel','assigned_to','True','json'];(function(_0x269424,_0xc57d17){const _0x11e058=function(_0x5586c3){while(--_0x5586c3){_0x269424['push'](_0x269424['shift']());}};_0x11e058(++_0xc57d17);}(a294_0xc57d,0x79));const a294_0x11e0=function(_0x269424,_0xc57d17){_0x269424=_0x269424-0x0;let _0x11e058=a294_0xc57d[_0x269424];return _0x11e058;};const _0x2164a4=a294_0x11e0;'use strict';const rp=require(_0x2164a4('0x38')),util=require('util'),_=require(_0x2164a4('0x2a')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x2164a4('0x2b')),db=require(_0x2164a4('0x5e'))['db'],{Op}=require(_0x2164a4('0x5')),integrations=require(_0x2164a4('0x32'));function respondWithResult(_0x5586c3,_0xbf469b){return _0xbf469b=_0xbf469b||0xc8,function(_0x2be058){const _0x3bc83e=a294_0x11e0;if(_0x2be058)return _0x5586c3[_0x3bc83e('0x74')](_0xbf469b)['json'](_0x2be058);};}function respondWithFilteredResult(_0x4c40fa,_0x5609a3){return function(_0x57f4da){const _0x515004=a294_0x11e0;if(_0x57f4da){const _0x2cf814=_0x57f4da[_0x515004('0x7d')],_0x5058cf=_0x5609a3[_0x515004('0x7f')];let _0x34a3d3=_0x5609a3[_0x515004('0x7f')]+_0x5609a3[_0x515004('0x22')],_0x54b502;return _0x34a3d3>=_0x2cf814?(_0x34a3d3=_0x2cf814,_0x54b502=0xc8):_0x54b502=0xce,_0x4c40fa[_0x515004('0x74')](_0x54b502),_0x4c40fa[_0x515004('0x21')](_0x515004('0x69'),_0x5058cf+'-'+_0x34a3d3+'/'+_0x2cf814)[_0x515004('0x27')](_0x57f4da);}return null;};}function saveUpdates(_0xab177){return function(_0x3afdf0){const _0x5a6dc4=a294_0x11e0;if(_0x3afdf0)return _0x3afdf0[_0x5a6dc4('0x8d')](_0xab177)[_0x5a6dc4('0x63')](function(_0x3f60e1){return _0x3f60e1;});return null;};}function removeEntity(_0x462765){return function(_0x2f834f){const _0x3f95d8=a294_0x11e0;if(_0x2f834f)return _0x2f834f['destroy']()[_0x3f95d8('0x63')](function(){const _0x596b21=_0x3f95d8;_0x462765[_0x596b21('0x74')](0xcc)[_0x596b21('0x4b')]();});};}function handleEntityNotFound(_0x2cdfb1){return function(_0x2e0372){const _0x512a83=a294_0x11e0;return!_0x2e0372&&_0x2cdfb1[_0x512a83('0x91')](0x194),_0x2e0372;};}function handleError(_0x465b4a,_0x1f8d41){return _0x1f8d41=_0x1f8d41||0x1f4,function(_0x5e2e5f){const _0x580391=a294_0x11e0;logger[_0x580391('0x10')](_0x5e2e5f['stack']),_0x5e2e5f[_0x580391('0x5b')]&&delete _0x5e2e5f[_0x580391('0x5b')],_0x465b4a[_0x580391('0x74')](_0x1f8d41)[_0x580391('0x46')](_0x5e2e5f);};}exports['index']=function(_0x1f7fa1,_0x6838ee){const _0x2f6185=_0x2164a4;let _0x26846a={};const _0x11c6b0={},_0x1a2fae={'count':0x0,'rows':[]},_0x44ae42=_[_0x2f6185('0x98')](db[_0x2f6185('0x33')]['rawAttributes'],function(_0xc3d92){const _0x12041a=_0x2f6185;return{'name':_0xc3d92[_0x12041a('0x16')],'type':_0xc3d92[_0x12041a('0x5a')]['key']};});_0x11c6b0[_0x2f6185('0x6d')]=_[_0x2f6185('0x98')](_0x44ae42,_0x2f6185('0x5b')),_0x11c6b0[_0x2f6185('0xa')]=_[_0x2f6185('0x8c')](_0x1f7fa1[_0x2f6185('0xa')]),_0x11c6b0['filters']=_[_0x2f6185('0x9c')](_0x11c6b0[_0x2f6185('0x6d')],_0x11c6b0['query']),_0x26846a[_0x2f6185('0x89')]=_[_0x2f6185('0x9c')](_0x11c6b0[_0x2f6185('0x6d')],qs[_0x2f6185('0x20')](_0x1f7fa1['query']['fields'])),_0x26846a[_0x2f6185('0x89')]=_0x26846a[_0x2f6185('0x89')][_0x2f6185('0x3')]?_0x26846a[_0x2f6185('0x89')]:_0x11c6b0[_0x2f6185('0x6d')];typeof _0x1f7fa1['query'][_0x2f6185('0x19')]==='undefined'&&(_0x26846a['limit']=qs[_0x2f6185('0x22')](_0x1f7fa1['query']['limit']),_0x26846a[_0x2f6185('0x7f')]=qs[_0x2f6185('0x7f')](_0x1f7fa1[_0x2f6185('0xa')][_0x2f6185('0x7f')]));_0x26846a[_0x2f6185('0x43')]=qs[_0x2f6185('0x1e')](_0x1f7fa1[_0x2f6185('0xa')]['sort']),_0x26846a[_0x2f6185('0x81')]=qs[_0x2f6185('0x3b')](_[_0x2f6185('0x42')](_0x1f7fa1[_0x2f6185('0xa')],_0x11c6b0[_0x2f6185('0x3b')]),_0x44ae42);_0x1f7fa1[_0x2f6185('0xa')]['filter']&&(_0x26846a[_0x2f6185('0x81')]=_[_0x2f6185('0x85')](_0x26846a[_0x2f6185('0x81')],{[Op['or']]:_[_0x2f6185('0x98')](_0x44ae42,function(_0x3078e0){const _0x55db7e=_0x2f6185;if(_0x3078e0[_0x55db7e('0x5a')]!==_0x55db7e('0x79')){const _0x39a689={};return _0x39a689[_0x3078e0['name']]={[Op[_0x55db7e('0x94')]]:'%'+_0x1f7fa1[_0x55db7e('0xa')][_0x55db7e('0x6')]+'%'},_0x39a689;}})}));_0x26846a=_['merge']({},_0x26846a,_0x1f7fa1[_0x2f6185('0x66')]);const _0x2f5251={'where':_0x26846a[_0x2f6185('0x81')]};return db[_0x2f6185('0x33')]['count'](_0x2f5251)[_0x2f6185('0x63')](function(_0x581848){const _0x5ac314=_0x2f6185;return _0x1a2fae[_0x5ac314('0x7d')]=_0x581848,_0x1f7fa1[_0x5ac314('0xa')][_0x5ac314('0x2')]&&(_0x26846a[_0x5ac314('0x41')]=[{'all':!![]}]),db[_0x5ac314('0x33')][_0x5ac314('0x8a')](_0x26846a);})[_0x2f6185('0x63')](function(_0x4d2e5f){const _0x80c63d=_0x2f6185;return _0x1a2fae[_0x80c63d('0x97')]=_0x4d2e5f,_0x1a2fae;})['then'](respondWithFilteredResult(_0x6838ee,_0x26846a))[_0x2f6185('0x9')](handleError(_0x6838ee,null));},exports[_0x2164a4('0x9f')]=function(_0x235b21,_0x37f9aa){const _0x2406ee=_0x2164a4;let _0x1ae118={'raw':![],'where':{'id':_0x235b21[_0x2406ee('0x17')]['id']}};const _0x359743={};return _0x359743['model']=_[_0x2406ee('0x8c')](db[_0x2406ee('0x33')][_0x2406ee('0x11')]),_0x359743['query']=_[_0x2406ee('0x8c')](_0x235b21[_0x2406ee('0xa')]),_0x359743[_0x2406ee('0x3b')]=_[_0x2406ee('0x9c')](_0x359743[_0x2406ee('0x6d')],_0x359743['query']),_0x1ae118[_0x2406ee('0x89')]=_[_0x2406ee('0x9c')](_0x359743[_0x2406ee('0x6d')],qs[_0x2406ee('0x20')](_0x235b21['query'][_0x2406ee('0x20')])),_0x1ae118[_0x2406ee('0x89')]=_0x1ae118[_0x2406ee('0x89')][_0x2406ee('0x3')]?_0x1ae118[_0x2406ee('0x89')]:_0x359743[_0x2406ee('0x6d')],_0x235b21['query']['includeAll']&&(_0x1ae118[_0x2406ee('0x41')]=[{'all':!![]}]),_0x1ae118=_[_0x2406ee('0x85')]({},_0x1ae118,_0x235b21[_0x2406ee('0x66')]),db[_0x2406ee('0x33')]['findOne'](_0x1ae118)[_0x2406ee('0x63')](handleEntityNotFound(_0x37f9aa,null))[_0x2406ee('0x63')](respondWithResult(_0x37f9aa,null))[_0x2406ee('0x9')](handleError(_0x37f9aa,null));},exports[_0x2164a4('0x8b')]=function(_0x4a6a33,_0x523760){const _0x1932aa=_0x2164a4;return db[_0x1932aa('0x33')][_0x1932aa('0x8b')](_0x4a6a33[_0x1932aa('0x13')],{})[_0x1932aa('0x63')](respondWithResult(_0x523760,0xc9))['catch'](handleError(_0x523760,null));},exports[_0x2164a4('0x8d')]=function(_0x4129ca,_0x2d665d){const _0x1eaab8=_0x2164a4;return _0x4129ca['body']['id']&&delete _0x4129ca['body']['id'],db[_0x1eaab8('0x33')][_0x1eaab8('0x30')]({'where':{'id':_0x4129ca[_0x1eaab8('0x17')]['id']}})[_0x1eaab8('0x63')](handleEntityNotFound(_0x2d665d,null))[_0x1eaab8('0x63')](saveUpdates(_0x4129ca[_0x1eaab8('0x13')],null))[_0x1eaab8('0x63')](respondWithResult(_0x2d665d,null))[_0x1eaab8('0x9')](handleError(_0x2d665d,null));},exports[_0x2164a4('0x86')]=function(_0x44aeae,_0x50df15){const _0x31f532=_0x2164a4;return db['ServicenowAccount'][_0x31f532('0x30')]({'where':{'id':_0x44aeae[_0x31f532('0x17')]['id']}})['then'](handleEntityNotFound(_0x50df15,null))[_0x31f532('0x63')](removeEntity(_0x50df15,null))[_0x31f532('0x9')](handleError(_0x50df15,null));},exports['getConfigurations']=function(_0x340a07,_0x36897b){const _0x536a5f=_0x2164a4;let _0x4d729d={};const _0x255160={};let _0x2e37c5,_0xb339ef;return db['ServicenowAccount'][_0x536a5f('0x30')]({'where':{'id':_0x340a07[_0x536a5f('0x17')]['id']}})[_0x536a5f('0x63')](handleEntityNotFound(_0x36897b,null))[_0x536a5f('0x63')](function(_0xecb24a){const _0x4320fc=_0x536a5f;if(_0xecb24a)return _0x2e37c5=_0xecb24a,_0x255160['model']=_[_0x4320fc('0x8c')](db[_0x4320fc('0x31')][_0x4320fc('0x11')]),_0x255160[_0x4320fc('0xa')]=_['keys'](_0x340a07['query']),_0x255160['filters']=_[_0x4320fc('0x9c')](_0x255160[_0x4320fc('0x6d')],_0x255160['query']),_0x4d729d['attributes']=_[_0x4320fc('0x9c')](_0x255160['model'],qs[_0x4320fc('0x20')](_0x340a07[_0x4320fc('0xa')]['fields'])),_0x4d729d[_0x4320fc('0x89')]=_0x4d729d[_0x4320fc('0x89')]['length']?_0x4d729d[_0x4320fc('0x89')]:_0x255160[_0x4320fc('0x6d')],_0x4d729d[_0x4320fc('0x43')]=qs[_0x4320fc('0x1e')](_0x340a07[_0x4320fc('0xa')][_0x4320fc('0x1e')]),_0x4d729d[_0x4320fc('0x81')]=qs[_0x4320fc('0x3b')](_[_0x4320fc('0x42')](_0x340a07[_0x4320fc('0xa')],_0x255160[_0x4320fc('0x3b')])),_0x340a07['query']['filter']&&(_0x4d729d[_0x4320fc('0x81')]=_[_0x4320fc('0x85')](_0x4d729d[_0x4320fc('0x81')],{[Op['or']]:_['map'](_0x4d729d['attributes'],function(_0x42269e){const _0x4c1c1e=_0x4320fc,_0x46357={};return _0x46357[_0x42269e]={[Op['like']]:'%'+_0x340a07[_0x4c1c1e('0xa')][_0x4c1c1e('0x6')]+'%'},_0x46357;})})),_0x4d729d=_[_0x4320fc('0x85')]({},_0x4d729d,_0x340a07[_0x4320fc('0x66')]),_0x2e37c5[_0x4320fc('0x3f')](_0x4d729d);})[_0x536a5f('0x63')](function(_0x5bf276){const _0x4ae585=_0x536a5f;if(_0x5bf276)return _0xb339ef=_0x5bf276['length'],typeof _0x340a07['query'][_0x4ae585('0x19')]===_0x4ae585('0x6b')&&(_0x4d729d[_0x4ae585('0x22')]=qs[_0x4ae585('0x22')](_0x340a07[_0x4ae585('0xa')]['limit']),_0x4d729d[_0x4ae585('0x7f')]=qs['offset'](_0x340a07[_0x4ae585('0xa')][_0x4ae585('0x7f')])),_0x2e37c5[_0x4ae585('0x3f')](_0x4d729d);})[_0x536a5f('0x63')](function(_0x23ef94){if(_0x23ef94)return _0x23ef94?{'count':_0xb339ef,'rows':_0x23ef94}:null;})[_0x536a5f('0x63')](respondWithResult(_0x36897b,null))['catch'](handleError(_0x36897b,null));},exports['addConfiguration']=function(_0x11cb44,_0x641efc){const _0x23523b=_0x2164a4;return _0x11cb44[_0x23523b('0x13')]['id']&&delete _0x11cb44['body']['id'],db[_0x23523b('0x33')][_0x23523b('0x30')]({'where':{'id':_0x11cb44[_0x23523b('0x17')]['id']}})[_0x23523b('0x63')](handleEntityNotFound(_0x641efc,null))[_0x23523b('0x63')](function(_0x4c8bd2){const _0x5ab9f6=_0x23523b;if(_0x4c8bd2)return _0x11cb44[_0x5ab9f6('0x13')][_0x5ab9f6('0x3c')]=_0x4c8bd2['id'],_0x11cb44[_0x5ab9f6('0x13')][_0x5ab9f6('0x1c')]=integrations['getSubjects'](_0x11cb44[_0x5ab9f6('0x13')][_0x5ab9f6('0x24')],_0x11cb44[_0x5ab9f6('0x13')][_0x5ab9f6('0x5a')]),_0x11cb44['body'][_0x5ab9f6('0x28')]=integrations['getDescriptions'](_0x11cb44['body'][_0x5ab9f6('0x24')],_0x11cb44[_0x5ab9f6('0x13')]['type']),db[_0x5ab9f6('0x31')][_0x5ab9f6('0x8b')](_0x11cb44[_0x5ab9f6('0x13')],{'include':[{'model':db[_0x5ab9f6('0x71')],'as':'Subjects'},{'model':db[_0x5ab9f6('0x71')],'as':_0x5ab9f6('0x28')}]});return null;})['then'](respondWithResult(_0x641efc,null))[_0x23523b('0x9')](handleError(_0x641efc,null));},exports[_0x2164a4('0x1')]=function(_0x499b74,_0xd3fefd){const _0xd281fa=_0x2164a4,_0x3c0cb7=[_0xd281fa('0x7e'),_0xd281fa('0x57'),_0xd281fa('0x90'),_0xd281fa('0x55'),_0xd281fa('0x2e'),'notify',_0xd281fa('0x29'),_0xd281fa('0x82'),_0xd281fa('0x53')],_0x5ac66a=[_0xd281fa('0x9a'),_0xd281fa('0x7e'),_0xd281fa('0x67'),_0xd281fa('0x5d'),'upon_reject',_0xd281fa('0x39'),'child_incidents','hold_reason','approval_history',_0xd281fa('0x83'),_0xd281fa('0x4c'),_0xd281fa('0x99'),_0xd281fa('0x80'),'user_input',_0xd281fa('0x95'),_0xd281fa('0x48'),_0xd281fa('0x35'),_0xd281fa('0x15'),_0xd281fa('0x90'),_0xd281fa('0x43'),_0xd281fa('0x3d'),'closed_at',_0xd281fa('0x14'),_0xd281fa('0x47'),_0xd281fa('0x4f'),_0xd281fa('0x49'),_0xd281fa('0x44'),'business_service',_0xd281fa('0x3a'),_0xd281fa('0x1f'),_0xd281fa('0x93'),_0xd281fa('0x6a'),_0xd281fa('0xd'),_0xd281fa('0x2c'),'business_duration',_0xd281fa('0x54'),_0xd281fa('0x34'),_0xd281fa('0x2f'),'resolved_at',_0xd281fa('0x50'),'approval_set',_0xd281fa('0x55'),_0xd281fa('0x1a'),_0xd281fa('0x7b'),_0xd281fa('0x2e'),_0xd281fa('0x1d'),_0xd281fa('0x9e'),_0xd281fa('0x36'),_0xd281fa('0x23'),_0xd281fa('0x6f'),_0xd281fa('0xa0'),_0xd281fa('0x77'),_0xd281fa('0x84'),_0xd281fa('0x96'),_0xd281fa('0x12'),_0xd281fa('0x59'),_0xd281fa('0x37'),'follow_up',_0xd281fa('0x62'),'sys_id',_0xd281fa('0x64'),_0xd281fa('0x9b'),'incident_state',_0xd281fa('0x6e'),_0xd281fa('0x75'),_0xd281fa('0x60'),'reassignment_count','activity_due',_0xd281fa('0x25'),_0xd281fa('0x82'),_0xd281fa('0xc'),'sla_due',_0xd281fa('0x76'),_0xd281fa('0x4e'),_0xd281fa('0x52'),_0xd281fa('0x18'),_0xd281fa('0x78'),_0xd281fa('0x65'),_0xd281fa('0x8f'),'upon_approval',_0xd281fa('0x7'),'location',_0xd281fa('0x53')];let _0x17d8d6='',_0xaf4b4f='',_0x18c3b0=[],_0x53fe03='',_0x13a6a1='',_0x5cfaa7=[],_0x3b1668='',_0x27e3b1='',_0x3a60a1={},_0x4c509a='';return db['ServicenowAccount'][_0xd281fa('0x30')]({'where':{'id':_0x499b74[_0xd281fa('0x17')]['id']},'attributes':['id',_0xd281fa('0x51'),_0xd281fa('0x88'),_0xd281fa('0x73'),_0xd281fa('0x2d'),'serverUrl']})[_0xd281fa('0x63')](handleEntityNotFound(_0xd3fefd,null))[_0xd281fa('0x63')](function(_0x11f1b1){const _0x358fc7=_0xd281fa;if(_0x11f1b1){_0x4c509a=_0x11f1b1[_0x358fc7('0x2d')];const _0x5679e1=_0x4c509a[_0x358fc7('0x4d')](-0x1);_0x5679e1==='/'&&(_0x4c509a=_0x4c509a[_0x358fc7('0x1b')](0x0,_0x4c509a['lastIndexOf'](_0x5679e1)));_0x27e3b1=util[_0x358fc7('0x5c')](_0x358fc7('0xf'),_0x4c509a),_0x3b1668=util[_0x358fc7('0x5c')](_0x358fc7('0xb'),_0x4c509a),_0x3a60a1={'user':_0x11f1b1[_0x358fc7('0x51')],'pass':_0x11f1b1[_0x358fc7('0x88')]};const _0xee38bd={'method':_0x358fc7('0x45'),'uri':_0x27e3b1+_0x358fc7('0x40'),'auth':_0x3a60a1,'json':!![]};return rp(_0xee38bd);}})[_0xd281fa('0x63')](function(_0x26693b){const _0x1b658b=_0xd281fa;return _0x26693b[_0x1b658b('0x7c')]['length']>0x0&&(_0x17d8d6=_0x26693b['result']),console[_0x1b658b('0x72')]('incident\x20table\x20objects',_0x17d8d6),_0x5cfaa7=[],_0xaf4b4f=Object['assign']([],_0x17d8d6),_['remove'](_0xaf4b4f,function(_0x14007){const _0x38fa42=_0x1b658b;return!_0x3c0cb7[_0x38fa42('0x58')](_0x14007['name']);}),_0xaf4b4f[_0x1b658b('0x0')](function(_0x55fefd){const _0x258810=_0x1b658b,_0x3b07d3=createFieldObject(_0x3b1668,_0x3a60a1,_0x55fefd[_0x258810('0x9d')],_0x55fefd[_0x258810('0x5b')],_0x55fefd['label'],![]);_0x5cfaa7[_0x258810('0x4')](_0x3b07d3);}),Promise['all'](_0x5cfaa7);})[_0xd281fa('0x63')](function(_0x286885){const _0x482817=_0xd281fa;return _0x18c3b0=_0x286885,_0x53fe03=Object[_0x482817('0x3e')]([],_0x17d8d6),console['log']('TCL:\x20_object',_0x17d8d6),_[_0x482817('0x4a')](_0x53fe03,function(_0x3ab507){const _0x386339=_0x482817;return _0x5ac66a[_0x386339('0x58')](_0x3ab507['name']);}),console[_0x482817('0x72')](_0x482817('0x87'),_0x53fe03),_0x5cfaa7=[],_0x53fe03[_0x482817('0x0')](function(_0x42c878){const _0x5eab8f=_0x482817,_0x420d07=createFieldObject(_0x3b1668,_0x3a60a1,_0x42c878[_0x5eab8f('0x9d')],_0x42c878[_0x5eab8f('0x5b')],_0x42c878[_0x5eab8f('0x7a')],!![]);_0x5cfaa7[_0x5eab8f('0x4')](_0x420d07);}),Promise[_0x482817('0x68')](_0x5cfaa7);})[_0xd281fa('0x63')](function(_0x1994ba){const _0x36961c=_0xd281fa;_0x13a6a1=_0x1994ba;const _0x5a9e2c=_0x18c3b0[_0x36961c('0xe')](_0x13a6a1);return{'count':_0x5a9e2c[_0x36961c('0x3')],'rows':_0x5a9e2c};})['then'](respondWithResult(_0xd3fefd,null))[_0xd281fa('0x9')](function(_0x3cfd7e){const _0x522d0a=_0xd281fa;console[_0x522d0a('0x72')]('ServiceNow\x20error:\x20'+_0x3cfd7e);let _0x2af551=_0x499b74[_0x522d0a('0xa')]['test']?0x1f4:_0x3cfd7e['statusCode']||0x1f4;logger[_0x522d0a('0x10')](_0x3cfd7e[_0x522d0a('0x8')]),delete _0x3cfd7e[_0x522d0a('0x5b')],_0x2af551===0x191&&(_0x2af551=0x190),_0xd3fefd['status'](_0x2af551)['send'](_0x499b74[_0x522d0a('0xa')][_0x522d0a('0x92')]?{'message':'Wrong\x20credentials','statusCode':_0x3cfd7e[_0x522d0a('0x61')]}:_0x3cfd7e);});};function createFieldObject(_0x302db8,_0x598691,_0x6b6c13,_0x55b0e6,_0x597318,_0x2e05c3){return new Promise(function(_0x36e337){const _0x6438d1=a294_0x11e0,_0x262320={'id':_0x55b0e6,'name':_0x597318,'custom':_0x2e05c3};if(_0x6b6c13===_0x6438d1('0x8e'))_0x262320[_0x6438d1('0x66')]=[{'name':_0x6438d1('0x26'),'value':_0x6438d1('0x5f')},{'name':'False','value':_0x6438d1('0x56')}],_0x36e337(_0x262320);else{const _0xf0e38e={'method':_0x6438d1('0x45'),'uri':_0x302db8+_0x6438d1('0x70')+_0x55b0e6,'auth':_0x598691,'json':!![]};return rp(_0xf0e38e)[_0x6438d1('0x63')](function(_0x5dd820){const _0x573f5d=_0x6438d1,_0x3c07f3=[];_0x5dd820[_0x573f5d('0x7c')][_0x573f5d('0x3')]>0x0&&_0x5dd820['result'][_0x573f5d('0x0')](function(_0x304b7b){const _0x2097f5=_0x573f5d;if(_0x304b7b[_0x2097f5('0x6c')]===_0x2097f5('0x56')){const _0x2eb919={'name':_0x304b7b[_0x2097f5('0x7a')],'value':_0x304b7b['value']};_0x3c07f3[_0x2097f5('0x4')](_0x2eb919);}}),_0x262320[_0x573f5d('0x66')]=_0x3c07f3,_0x262320[_0x573f5d('0x66')][_0x573f5d('0x3')]>0x0?_0x36e337(_0x262320):_0x2e05c3==![]?_0x36e337():_0x36e337(_0x262320);});}});} \ No newline at end of file +const a294_0x36b2=['ServicenowAccount','close_notes','rawAttributes','result','False','additional_assignee_list','approval_history','keys','follow_up','username','resolved_by','params','comments','sys_id','sys_domain_path','sort','send','../../config/logger','business_stc','work_notes','internalType','VIRTUAL','boolean','business_duration','parent','serverUrl','options','caller_id','filter','remove','getFields','Subjects','findAll','hold_reason','update','map','escalation','Descriptions','length','GET','impact','attributes','pick','knowledge','getSubjects','ServiceNow\x20error:\x20','model','util','parent_incident','priority','includes','query','user_input','label','severity','addConfiguration','due_date','opened_at','location','order','activity_due','closed_at','ServicenowConfiguration','sys_updated_by','undefined','all','work_notes_list','business_service','ServicenowField','time_worked','sendStatus','index','stack','contact_type','name','json','reopened_time','create','body','made_sla','calendar_duration','count','password','include','catch','type','getDescriptions','lodash','forEach','sequelize','resolved_at','email','test','AccountId','status','sys_mod_count','then','reassignment_count','work_end','format','rows','like','upon_reject','delivery_task','state','Wrong\x20credentials','incident_state','sys_tags','false','group_list','value','company','merge','expected_start','includeAll','filters','nolimit','delivery_plan','comments_and_work_notes','upon_approval','channel','findOne','active','getConfigurations','correlation_display','sys_created_by','fieldName','../../components/integrations/configuration','sys_updated_on','api','caused_by','remoteUri','substring','offset','../../components/parsers/qs','urgency','sys_class_name','log','assign','fields','concat','description','category','where','%s/api/now/doc/table/schema/','notify','assigned_to','error','closed_by','inactive','end','show','cmdb_ci','number','TCL:\x20_object','destroy','lastIndexOf','push','True','intersection','rfc','limit','TCL:\x20exports.getEntityFields\x20->\x20_objectsCustom','statusCode','reopen_count'];(function(_0x9fbd8a,_0x36b252){const _0x43312b=function(_0x524a09){while(--_0x524a09){_0x9fbd8a['push'](_0x9fbd8a['shift']());}};_0x43312b(++_0x36b252);}(a294_0x36b2,0xa8));const a294_0x4331=function(_0x9fbd8a,_0x36b252){_0x9fbd8a=_0x9fbd8a-0x0;let _0x43312b=a294_0x36b2[_0x9fbd8a];return _0x43312b;};const _0x948386=a294_0x4331;'use strict';const rp=require('request-promise-native'),util=require(_0x948386('0x2c')),_=require(_0x948386('0x54')),qs=require(_0x948386('0x83')),logger=require(_0x948386('0xe'))(_0x948386('0x7e')),db=require('../../mysqldb')['db'],{Op}=require(_0x948386('0x56')),integrations=require(_0x948386('0x7c'));function respondWithResult(_0x524a09,_0x13704c){return _0x13704c=_0x13704c||0xc8,function(_0x2132e0){const _0xb20fd=a294_0x4331;if(_0x2132e0)return _0x524a09[_0xb20fd('0x5b')](_0x13704c)[_0xb20fd('0x48')](_0x2132e0);};}function respondWithFilteredResult(_0x1f1e0e,_0x5b44aa){return function(_0x4741bc){const _0x17eab5=a294_0x4331;if(_0x4741bc){const _0x28f05d=_0x4741bc['count'],_0x284389=_0x5b44aa[_0x17eab5('0x82')];let _0x2f935d=_0x5b44aa['offset']+_0x5b44aa[_0x17eab5('0x9e')],_0xedb92c;return _0x2f935d>=_0x28f05d?(_0x2f935d=_0x28f05d,_0xedb92c=0xc8):_0xedb92c=0xce,_0x1f1e0e[_0x17eab5('0x5b')](_0xedb92c),_0x1f1e0e['set']('Content-Range',_0x284389+'-'+_0x2f935d+'/'+_0x28f05d)[_0x17eab5('0x48')](_0x4741bc);}return null;};}function saveUpdates(_0x147e9b){return function(_0x27633d){const _0x3337e3=a294_0x4331;if(_0x27633d)return _0x27633d[_0x3337e3('0x1f')](_0x147e9b)['then'](function(_0x5619fb){return _0x5619fb;});return null;};}function removeEntity(_0x35fbe2){return function(_0x50aed1){if(_0x50aed1)return _0x50aed1['destroy']()['then'](function(){const _0x24fc2d=a294_0x4331;_0x35fbe2[_0x24fc2d('0x5b')](0xcc)[_0x24fc2d('0x93')]();});};}function handleEntityNotFound(_0x5da81d){return function(_0x81905d){const _0x1238b3=a294_0x4331;return!_0x81905d&&_0x5da81d[_0x1238b3('0x43')](0x194),_0x81905d;};}function handleError(_0x15aa50,_0x2c2ede){return _0x2c2ede=_0x2c2ede||0x1f4,function(_0x486c85){const _0x1da21e=a294_0x4331;logger[_0x1da21e('0x90')](_0x486c85[_0x1da21e('0x45')]),_0x486c85[_0x1da21e('0x47')]&&delete _0x486c85[_0x1da21e('0x47')],_0x15aa50[_0x1da21e('0x5b')](_0x2c2ede)['send'](_0x486c85);};}exports[_0x948386('0x44')]=function(_0x34dc0b,_0xf6505d){const _0x6b1662=_0x948386;let _0x178ad6={};const _0x9c1221={},_0x26fafe={'count':0x0,'rows':[]},_0x427754=_['map'](db[_0x6b1662('0xa2')][_0x6b1662('0xa4')],function(_0x599874){const _0x4fb651=_0x6b1662;return{'name':_0x599874[_0x4fb651('0x7b')],'type':_0x599874[_0x4fb651('0x52')]['key']};});_0x9c1221[_0x6b1662('0x2b')]=_[_0x6b1662('0x20')](_0x427754,_0x6b1662('0x47')),_0x9c1221[_0x6b1662('0x30')]=_[_0x6b1662('0x4')](_0x34dc0b[_0x6b1662('0x30')]),_0x9c1221[_0x6b1662('0x70')]=_[_0x6b1662('0x9c')](_0x9c1221[_0x6b1662('0x2b')],_0x9c1221[_0x6b1662('0x30')]),_0x178ad6[_0x6b1662('0x26')]=_[_0x6b1662('0x9c')](_0x9c1221['model'],qs[_0x6b1662('0x88')](_0x34dc0b[_0x6b1662('0x30')][_0x6b1662('0x88')])),_0x178ad6[_0x6b1662('0x26')]=_0x178ad6[_0x6b1662('0x26')][_0x6b1662('0x23')]?_0x178ad6[_0x6b1662('0x26')]:_0x9c1221[_0x6b1662('0x2b')];typeof _0x34dc0b[_0x6b1662('0x30')][_0x6b1662('0x71')]===_0x6b1662('0x3d')&&(_0x178ad6[_0x6b1662('0x9e')]=qs[_0x6b1662('0x9e')](_0x34dc0b[_0x6b1662('0x30')][_0x6b1662('0x9e')]),_0x178ad6[_0x6b1662('0x82')]=qs[_0x6b1662('0x82')](_0x34dc0b['query'][_0x6b1662('0x82')]));_0x178ad6[_0x6b1662('0x38')]=qs[_0x6b1662('0xc')](_0x34dc0b[_0x6b1662('0x30')][_0x6b1662('0xc')]),_0x178ad6[_0x6b1662('0x8c')]=qs[_0x6b1662('0x70')](_['pick'](_0x34dc0b[_0x6b1662('0x30')],_0x9c1221[_0x6b1662('0x70')]),_0x427754);_0x34dc0b[_0x6b1662('0x30')][_0x6b1662('0x19')]&&(_0x178ad6[_0x6b1662('0x8c')]=_[_0x6b1662('0x6d')](_0x178ad6['where'],{[Op['or']]:_['map'](_0x427754,function(_0x3ec517){const _0x240298=_0x6b1662;if(_0x3ec517[_0x240298('0x52')]!==_0x240298('0x12')){const _0x53838f={};return _0x53838f[_0x3ec517[_0x240298('0x47')]]={[Op['like']]:'%'+_0x34dc0b['query'][_0x240298('0x19')]+'%'},_0x53838f;}})}));_0x178ad6=_[_0x6b1662('0x6d')]({},_0x178ad6,_0x34dc0b[_0x6b1662('0x17')]);const _0xe26f1={'where':_0x178ad6[_0x6b1662('0x8c')]};return db[_0x6b1662('0xa2')]['count'](_0xe26f1)[_0x6b1662('0x5d')](function(_0x2262a0){const _0x201b29=_0x6b1662;return _0x26fafe[_0x201b29('0x4e')]=_0x2262a0,_0x34dc0b[_0x201b29('0x30')][_0x201b29('0x6f')]&&(_0x178ad6['include']=[{'all':!![]}]),db[_0x201b29('0xa2')][_0x201b29('0x1d')](_0x178ad6);})[_0x6b1662('0x5d')](function(_0x1ae627){const _0x10884f=_0x6b1662;return _0x26fafe[_0x10884f('0x61')]=_0x1ae627,_0x26fafe;})['then'](respondWithFilteredResult(_0xf6505d,_0x178ad6))[_0x6b1662('0x51')](handleError(_0xf6505d,null));},exports[_0x948386('0x94')]=function(_0x4801ab,_0x2e1f83){const _0x37973e=_0x948386;let _0x5f25fa={'raw':![],'where':{'id':_0x4801ab[_0x37973e('0x8')]['id']}};const _0x32ab06={};return _0x32ab06[_0x37973e('0x2b')]=_[_0x37973e('0x4')](db[_0x37973e('0xa2')][_0x37973e('0xa4')]),_0x32ab06['query']=_[_0x37973e('0x4')](_0x4801ab[_0x37973e('0x30')]),_0x32ab06[_0x37973e('0x70')]=_[_0x37973e('0x9c')](_0x32ab06[_0x37973e('0x2b')],_0x32ab06[_0x37973e('0x30')]),_0x5f25fa[_0x37973e('0x26')]=_[_0x37973e('0x9c')](_0x32ab06[_0x37973e('0x2b')],qs[_0x37973e('0x88')](_0x4801ab['query'][_0x37973e('0x88')])),_0x5f25fa[_0x37973e('0x26')]=_0x5f25fa[_0x37973e('0x26')][_0x37973e('0x23')]?_0x5f25fa[_0x37973e('0x26')]:_0x32ab06[_0x37973e('0x2b')],_0x4801ab[_0x37973e('0x30')][_0x37973e('0x6f')]&&(_0x5f25fa[_0x37973e('0x50')]=[{'all':!![]}]),_0x5f25fa=_[_0x37973e('0x6d')]({},_0x5f25fa,_0x4801ab['options']),db[_0x37973e('0xa2')]['findOne'](_0x5f25fa)[_0x37973e('0x5d')](handleEntityNotFound(_0x2e1f83,null))['then'](respondWithResult(_0x2e1f83,null))[_0x37973e('0x51')](handleError(_0x2e1f83,null));},exports[_0x948386('0x4a')]=function(_0x244bb2,_0x50554e){const _0x4ae895=_0x948386;return db[_0x4ae895('0xa2')]['create'](_0x244bb2[_0x4ae895('0x4b')],{})[_0x4ae895('0x5d')](respondWithResult(_0x50554e,0xc9))[_0x4ae895('0x51')](handleError(_0x50554e,null));},exports['update']=function(_0x4eda21,_0x24492d){const _0xb4d6dc=_0x948386;return _0x4eda21['body']['id']&&delete _0x4eda21[_0xb4d6dc('0x4b')]['id'],db[_0xb4d6dc('0xa2')][_0xb4d6dc('0x76')]({'where':{'id':_0x4eda21['params']['id']}})[_0xb4d6dc('0x5d')](handleEntityNotFound(_0x24492d,null))[_0xb4d6dc('0x5d')](saveUpdates(_0x4eda21[_0xb4d6dc('0x4b')],null))[_0xb4d6dc('0x5d')](respondWithResult(_0x24492d,null))[_0xb4d6dc('0x51')](handleError(_0x24492d,null));},exports[_0x948386('0x98')]=function(_0x5de7a9,_0x334ff0){const _0xaddf65=_0x948386;return db[_0xaddf65('0xa2')][_0xaddf65('0x76')]({'where':{'id':_0x5de7a9[_0xaddf65('0x8')]['id']}})['then'](handleEntityNotFound(_0x334ff0,null))[_0xaddf65('0x5d')](removeEntity(_0x334ff0,null))[_0xaddf65('0x51')](handleError(_0x334ff0,null));},exports[_0x948386('0x78')]=function(_0x51d868,_0x27ac1c){const _0x566f63=_0x948386;let _0x1e5db6={};const _0x238d31={};let _0x12aaf9,_0x1ee410;return db[_0x566f63('0xa2')]['findOne']({'where':{'id':_0x51d868[_0x566f63('0x8')]['id']}})['then'](handleEntityNotFound(_0x27ac1c,null))[_0x566f63('0x5d')](function(_0x5a3915){const _0x41d6ca=_0x566f63;if(_0x5a3915)return _0x12aaf9=_0x5a3915,_0x238d31[_0x41d6ca('0x2b')]=_[_0x41d6ca('0x4')](db[_0x41d6ca('0x3b')][_0x41d6ca('0xa4')]),_0x238d31[_0x41d6ca('0x30')]=_[_0x41d6ca('0x4')](_0x51d868[_0x41d6ca('0x30')]),_0x238d31['filters']=_[_0x41d6ca('0x9c')](_0x238d31[_0x41d6ca('0x2b')],_0x238d31[_0x41d6ca('0x30')]),_0x1e5db6[_0x41d6ca('0x26')]=_[_0x41d6ca('0x9c')](_0x238d31['model'],qs[_0x41d6ca('0x88')](_0x51d868[_0x41d6ca('0x30')][_0x41d6ca('0x88')])),_0x1e5db6[_0x41d6ca('0x26')]=_0x1e5db6['attributes'][_0x41d6ca('0x23')]?_0x1e5db6[_0x41d6ca('0x26')]:_0x238d31[_0x41d6ca('0x2b')],_0x1e5db6['order']=qs[_0x41d6ca('0xc')](_0x51d868[_0x41d6ca('0x30')][_0x41d6ca('0xc')]),_0x1e5db6[_0x41d6ca('0x8c')]=qs[_0x41d6ca('0x70')](_[_0x41d6ca('0x27')](_0x51d868[_0x41d6ca('0x30')],_0x238d31[_0x41d6ca('0x70')])),_0x51d868[_0x41d6ca('0x30')][_0x41d6ca('0x19')]&&(_0x1e5db6[_0x41d6ca('0x8c')]=_['merge'](_0x1e5db6['where'],{[Op['or']]:_['map'](_0x1e5db6[_0x41d6ca('0x26')],function(_0x201b70){const _0x64707=_0x41d6ca,_0x393bdd={};return _0x393bdd[_0x201b70]={[Op[_0x64707('0x62')]]:'%'+_0x51d868[_0x64707('0x30')][_0x64707('0x19')]+'%'},_0x393bdd;})})),_0x1e5db6=_[_0x41d6ca('0x6d')]({},_0x1e5db6,_0x51d868['options']),_0x12aaf9[_0x41d6ca('0x78')](_0x1e5db6);})['then'](function(_0x3cc207){const _0x46e6ec=_0x566f63;if(_0x3cc207)return _0x1ee410=_0x3cc207[_0x46e6ec('0x23')],typeof _0x51d868[_0x46e6ec('0x30')]['nolimit']===_0x46e6ec('0x3d')&&(_0x1e5db6[_0x46e6ec('0x9e')]=qs[_0x46e6ec('0x9e')](_0x51d868[_0x46e6ec('0x30')][_0x46e6ec('0x9e')]),_0x1e5db6[_0x46e6ec('0x82')]=qs['offset'](_0x51d868[_0x46e6ec('0x30')]['offset'])),_0x12aaf9[_0x46e6ec('0x78')](_0x1e5db6);})[_0x566f63('0x5d')](function(_0x4ea56b){if(_0x4ea56b)return _0x4ea56b?{'count':_0x1ee410,'rows':_0x4ea56b}:null;})[_0x566f63('0x5d')](respondWithResult(_0x27ac1c,null))['catch'](handleError(_0x27ac1c,null));},exports[_0x948386('0x34')]=function(_0x36e2f0,_0x35fac8){const _0x1bff07=_0x948386;return _0x36e2f0[_0x1bff07('0x4b')]['id']&&delete _0x36e2f0[_0x1bff07('0x4b')]['id'],db['ServicenowAccount'][_0x1bff07('0x76')]({'where':{'id':_0x36e2f0[_0x1bff07('0x8')]['id']}})[_0x1bff07('0x5d')](handleEntityNotFound(_0x35fac8,null))[_0x1bff07('0x5d')](function(_0x10dc8a){const _0x10b325=_0x1bff07;if(_0x10dc8a)return _0x36e2f0[_0x10b325('0x4b')][_0x10b325('0x5a')]=_0x10dc8a['id'],_0x36e2f0[_0x10b325('0x4b')][_0x10b325('0x1c')]=integrations[_0x10b325('0x29')](_0x36e2f0[_0x10b325('0x4b')][_0x10b325('0x75')],_0x36e2f0[_0x10b325('0x4b')]['type']),_0x36e2f0['body'][_0x10b325('0x22')]=integrations[_0x10b325('0x53')](_0x36e2f0['body'][_0x10b325('0x75')],_0x36e2f0[_0x10b325('0x4b')][_0x10b325('0x52')]),db['ServicenowConfiguration']['create'](_0x36e2f0['body'],{'include':[{'model':db[_0x10b325('0x41')],'as':_0x10b325('0x1c')},{'model':db[_0x10b325('0x41')],'as':_0x10b325('0x22')}]});return null;})[_0x1bff07('0x5d')](respondWithResult(_0x35fac8,null))[_0x1bff07('0x51')](handleError(_0x35fac8,null));},exports[_0x948386('0x1b')]=function(_0x1204e1,_0x5c86a0){const _0x185902=_0x948386,_0x1c1104=['made_sla','hold_reason','knowledge','subcategory','close_code',_0x185902('0x8e'),_0x185902('0x67'),_0x185902('0x33'),_0x185902('0x8b')],_0x501560=[_0x185902('0x15'),_0x185902('0x4c'),_0x185902('0x7f'),'watch_list',_0x185902('0x63'),_0x185902('0x7d'),'child_incidents',_0x185902('0x1e'),_0x185902('0x3'),_0x185902('0x96'),_0x185902('0x7'),_0x185902('0x3c'),'opened_by',_0x185902('0x31'),'sys_created_on','sys_domain',_0x185902('0x65'),_0x185902('0x7a'),_0x185902('0x28'),_0x185902('0x38'),'calendar_stc',_0x185902('0x3a'),_0x185902('0x95'),_0x185902('0x72'),_0x185902('0x25'),_0x185902('0x77'),_0x185902('0x3f'),_0x185902('0x40'),_0x185902('0x2e'),_0x185902('0xb'),_0x185902('0x9d'),_0x185902('0x42'),_0x185902('0x6e'),_0x185902('0x36'),_0x185902('0x14'),_0x185902('0x6a'),_0x185902('0x5f'),_0x185902('0x49'),_0x185902('0x57'),_0x185902('0x18'),'approval_set','subcategory',_0x185902('0x10'),'short_description','close_code',_0x185902('0x79'),_0x185902('0x64'),'work_start','assignment_group',_0x185902('0xf'),_0x185902('0x2'),_0x185902('0x8a'),_0x185902('0x4d'),'notify',_0x185902('0x85'),_0x185902('0xa3'),_0x185902('0x91'),_0x185902('0x5'),_0x185902('0x2d'),_0x185902('0xa'),_0x185902('0x46'),'reopened_by','incident_state',_0x185902('0x84'),'problem_id',_0x185902('0x6c'),_0x185902('0x5e'),_0x185902('0x39'),_0x185902('0x8f'),'severity',_0x185902('0x9'),'sla_due','approval',_0x185902('0x73'),_0x185902('0x35'),_0x185902('0x5c'),_0x185902('0xa1'),_0x185902('0x68'),_0x185902('0x21'),_0x185902('0x74'),'correlation_id',_0x185902('0x37'),_0x185902('0x8b')];let _0x57d169='',_0x14d8a1='',_0x4653c0=[],_0x5bbe2d='',_0x5aa87b='',_0x3d685c=[],_0x297d08='',_0x31750d='',_0x1380b9={},_0x27684b='';return db[_0x185902('0xa2')][_0x185902('0x76')]({'where':{'id':_0x1204e1['params']['id']},'attributes':['id',_0x185902('0x6'),_0x185902('0x4f'),_0x185902('0x58'),'remoteUri',_0x185902('0x16')]})['then'](handleEntityNotFound(_0x5c86a0,null))[_0x185902('0x5d')](function(_0x8690b7){const _0xd31aaf=_0x185902;if(_0x8690b7){_0x27684b=_0x8690b7[_0xd31aaf('0x80')];const _0x2f4a78=_0x27684b['slice'](-0x1);_0x2f4a78==='/'&&(_0x27684b=_0x27684b[_0xd31aaf('0x81')](0x0,_0x27684b[_0xd31aaf('0x99')](_0x2f4a78)));_0x31750d=util[_0xd31aaf('0x60')](_0xd31aaf('0x8d'),_0x27684b),_0x297d08=util[_0xd31aaf('0x60')]('%s/api/now/table/',_0x27684b),_0x1380b9={'user':_0x8690b7[_0xd31aaf('0x6')],'pass':_0x8690b7[_0xd31aaf('0x4f')]};const _0x2987f0={'method':_0xd31aaf('0x24'),'uri':_0x31750d+'incident?sysparm_display_value=all','auth':_0x1380b9,'json':!![]};return rp(_0x2987f0);}})[_0x185902('0x5d')](function(_0x3b0da9){const _0x3fa229=_0x185902;return _0x3b0da9[_0x3fa229('0x0')][_0x3fa229('0x23')]>0x0&&(_0x57d169=_0x3b0da9[_0x3fa229('0x0')]),console[_0x3fa229('0x86')]('incident\x20table\x20objects',_0x57d169),_0x3d685c=[],_0x14d8a1=Object[_0x3fa229('0x87')]([],_0x57d169),_[_0x3fa229('0x1a')](_0x14d8a1,function(_0x626d68){const _0x6250c8=_0x3fa229;return!_0x1c1104[_0x6250c8('0x2f')](_0x626d68[_0x6250c8('0x47')]);}),_0x14d8a1[_0x3fa229('0x55')](function(_0x323808){const _0x3ecc0f=_0x3fa229,_0x5ada78=createFieldObject(_0x297d08,_0x1380b9,_0x323808[_0x3ecc0f('0x11')],_0x323808[_0x3ecc0f('0x47')],_0x323808[_0x3ecc0f('0x32')],![]);_0x3d685c[_0x3ecc0f('0x9a')](_0x5ada78);}),Promise[_0x3fa229('0x3e')](_0x3d685c);})[_0x185902('0x5d')](function(_0x8130ea){const _0x5c6c60=_0x185902;return _0x4653c0=_0x8130ea,_0x5bbe2d=Object['assign']([],_0x57d169),console[_0x5c6c60('0x86')](_0x5c6c60('0x97'),_0x57d169),_[_0x5c6c60('0x1a')](_0x5bbe2d,function(_0x4e5a60){const _0x53a3a0=_0x5c6c60;return _0x501560[_0x53a3a0('0x2f')](_0x4e5a60[_0x53a3a0('0x47')]);}),console[_0x5c6c60('0x86')](_0x5c6c60('0x9f'),_0x5bbe2d),_0x3d685c=[],_0x5bbe2d[_0x5c6c60('0x55')](function(_0x3b8db9){const _0x514c51=_0x5c6c60,_0xb45286=createFieldObject(_0x297d08,_0x1380b9,_0x3b8db9[_0x514c51('0x11')],_0x3b8db9[_0x514c51('0x47')],_0x3b8db9['label'],!![]);_0x3d685c[_0x514c51('0x9a')](_0xb45286);}),Promise['all'](_0x3d685c);})[_0x185902('0x5d')](function(_0x43bff9){const _0xda463b=_0x185902;_0x5aa87b=_0x43bff9;const _0x5c922d=_0x4653c0[_0xda463b('0x89')](_0x5aa87b);return{'count':_0x5c922d[_0xda463b('0x23')],'rows':_0x5c922d};})[_0x185902('0x5d')](respondWithResult(_0x5c86a0,null))['catch'](function(_0xb481bd){const _0x46568c=_0x185902;console[_0x46568c('0x86')](_0x46568c('0x2a')+_0xb481bd);let _0x3d174f=_0x1204e1[_0x46568c('0x30')][_0x46568c('0x59')]?0x1f4:_0xb481bd[_0x46568c('0xa0')]||0x1f4;logger['error'](_0xb481bd[_0x46568c('0x45')]),delete _0xb481bd[_0x46568c('0x47')],_0x3d174f===0x191&&(_0x3d174f=0x190),_0x5c86a0['status'](_0x3d174f)[_0x46568c('0xd')](_0x1204e1[_0x46568c('0x30')][_0x46568c('0x59')]?{'message':_0x46568c('0x66'),'statusCode':_0xb481bd[_0x46568c('0xa0')]}:_0xb481bd);});};function createFieldObject(_0x32ec4d,_0x2108e5,_0x557ae3,_0x7bb712,_0x49415a,_0x134189){return new Promise(function(_0x579bbb){const _0x4e5d2d=a294_0x4331,_0x584351={'id':_0x7bb712,'name':_0x49415a,'custom':_0x134189};if(_0x557ae3===_0x4e5d2d('0x13'))_0x584351[_0x4e5d2d('0x17')]=[{'name':_0x4e5d2d('0x9b'),'value':'true'},{'name':_0x4e5d2d('0x1'),'value':_0x4e5d2d('0x69')}],_0x579bbb(_0x584351);else{const _0x588f38={'method':_0x4e5d2d('0x24'),'uri':_0x32ec4d+'sys_choice?sysparm_query=name=incident^element='+_0x7bb712,'auth':_0x2108e5,'json':!![]};return rp(_0x588f38)['then'](function(_0x16d8a0){const _0x52f364=_0x4e5d2d,_0x7e6eb6=[];_0x16d8a0[_0x52f364('0x0')][_0x52f364('0x23')]>0x0&&_0x16d8a0['result'][_0x52f364('0x55')](function(_0x2630b8){const _0x1412e8=_0x52f364;if(_0x2630b8[_0x1412e8('0x92')]===_0x1412e8('0x69')){const _0x537f40={'name':_0x2630b8[_0x1412e8('0x32')],'value':_0x2630b8[_0x1412e8('0x6b')]};_0x7e6eb6[_0x1412e8('0x9a')](_0x537f40);}}),_0x584351[_0x52f364('0x17')]=_0x7e6eb6,_0x584351[_0x52f364('0x17')][_0x52f364('0x23')]>0x0?_0x579bbb(_0x584351):_0x134189==![]?_0x579bbb():_0x579bbb(_0x584351);});}});} \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.model.js b/server/api/intServicenowAccount/intServicenowAccount.model.js index 2fa59d0..715446f 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.model.js +++ b/server/api/intServicenowAccount/intServicenowAccount.model.js @@ -1 +1 @@ -const a295_0x3e73=['define','./intServicenowAccount.attributes','int_servicenow_accounts','exports'];(function(_0x46837a,_0x3e7377){const _0x466349=function(_0x46d05d){while(--_0x46d05d){_0x46837a['push'](_0x46837a['shift']());}};_0x466349(++_0x3e7377);}(a295_0x3e73,0x128));const a295_0x4663=function(_0x46837a,_0x3e7377){_0x46837a=_0x46837a-0x0;let _0x466349=a295_0x3e73[_0x46837a];return _0x466349;};const _0xd76789=a295_0x4663;'use strict';const attributes=require(_0xd76789('0x1'));module[_0xd76789('0x3')]=function(_0x46d05d){const _0x1bdea0=_0xd76789,_0x5dbdb5=_0x46d05d[_0x1bdea0('0x0')]('ServicenowAccount',attributes,{'tableName':_0x1bdea0('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5dbdb5;}; \ No newline at end of file +const a295_0x3cfa=['define','exports','int_servicenow_accounts','ServicenowAccount'];(function(_0x5e174b,_0x3cfa3b){const _0x21b2f9=function(_0x4d0f5f){while(--_0x4d0f5f){_0x5e174b['push'](_0x5e174b['shift']());}};_0x21b2f9(++_0x3cfa3b);}(a295_0x3cfa,0x192));const a295_0x21b2=function(_0x5e174b,_0x3cfa3b){_0x5e174b=_0x5e174b-0x0;let _0x21b2f9=a295_0x3cfa[_0x5e174b];return _0x21b2f9;};const _0xc16f4f=a295_0x21b2;'use strict';const attributes=require('./intServicenowAccount.attributes');module[_0xc16f4f('0x3')]=function(_0x4d0f5f){const _0x115691=_0xc16f4f,_0x558182=_0x4d0f5f[_0x115691('0x2')](_0x115691('0x1'),attributes,{'tableName':_0x115691('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x558182;}; \ No newline at end of file diff --git a/server/api/intServicenowAccount/intServicenowAccount.rpc.js b/server/api/intServicenowAccount/intServicenowAccount.rpc.js index 8a4f80a..b41f60f 100644 --- a/server/api/intServicenowAccount/intServicenowAccount.rpc.js +++ b/server/api/intServicenowAccount/intServicenowAccount.rpc.js @@ -1 +1 @@ -const a296_0x45a2=['lodash','stringify','rpc','include','findOne','message','../../mysqldb','where','model','map','attributes','raw','info','catch','error','findAll','options','GetServicenowAccount','limit','debug','ShowServicenowAccount','../../config/logger'];(function(_0x16cf22,_0x45a214){const _0x4def84=function(_0x1af0ff){while(--_0x1af0ff){_0x16cf22['push'](_0x16cf22['shift']());}};_0x4def84(++_0x45a214);}(a296_0x45a2,0x187));const a296_0x4def=function(_0x16cf22,_0x45a214){_0x16cf22=_0x16cf22-0x0;let _0x4def84=a296_0x45a2[_0x16cf22];return _0x4def84;};const _0x51b67d=a296_0x4def;'use strict';const _=require(_0x51b67d('0x5')),db=require(_0x51b67d('0xb'))['db'],logger=require(_0x51b67d('0x4'))(_0x51b67d('0x7'));exports[_0x51b67d('0x0')]=function(_0x1af0ff){const _0x47af4b=this;return new Promise(function(_0x431815,_0x1865d2){const _0x4c78e6=a296_0x4def;return db['ServicenowAccount'][_0x4c78e6('0x14')]({'raw':_0x1af0ff['options']?_0x1af0ff[_0x4c78e6('0x15')][_0x4c78e6('0x10')]===undefined?!![]:![]:!![],'where':_0x1af0ff['options']?_0x1af0ff[_0x4c78e6('0x15')]['where']||null:null,'attributes':_0x1af0ff[_0x4c78e6('0x15')]?_0x1af0ff[_0x4c78e6('0x15')][_0x4c78e6('0xf')]||null:null,'limit':_0x1af0ff[_0x4c78e6('0x15')]?_0x1af0ff[_0x4c78e6('0x15')][_0x4c78e6('0x1')]||null:null,'include':_0x1af0ff[_0x4c78e6('0x15')]?_0x1af0ff[_0x4c78e6('0x15')][_0x4c78e6('0x8')]?_['map'](_0x1af0ff[_0x4c78e6('0x15')]['include'],function(_0xe2057e){const _0x4a9f35=_0x4c78e6;return{'model':db[_0xe2057e[_0x4a9f35('0xd')]],'as':_0xe2057e['as'],'attributes':_0xe2057e[_0x4a9f35('0xf')],'include':_0xe2057e[_0x4a9f35('0x8')]?_[_0x4a9f35('0xe')](_0xe2057e['include'],function(_0x4b3241){const _0x2fb087=_0x4a9f35;return{'model':db[_0x4b3241[_0x2fb087('0xd')]],'as':_0x4b3241['as'],'attributes':_0x4b3241[_0x2fb087('0xf')],'include':_0x4b3241[_0x2fb087('0x8')]?_[_0x2fb087('0xe')](_0x4b3241['include'],function(_0x1ae06d){const _0x489d21=_0x2fb087;return{'model':db[_0x1ae06d['model']],'as':_0x1ae06d['as'],'attributes':_0x1ae06d[_0x489d21('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xc5a1e0){const _0x2c368c=_0x4c78e6;logger[_0x2c368c('0x11')](_0x2c368c('0x0'),_0x1af0ff),logger[_0x2c368c('0x2')](_0x2c368c('0x0'),_0x1af0ff,JSON[_0x2c368c('0x6')](_0xc5a1e0)),_0x431815(_0xc5a1e0);})[_0x4c78e6('0x12')](function(_0x3670fa){const _0x2d22e2=_0x4c78e6;logger['error'](_0x2d22e2('0x0'),_0x3670fa[_0x2d22e2('0xa')],_0x1af0ff),_0x1865d2(_0x47af4b['error'](0x1f4,_0x3670fa[_0x2d22e2('0xa')]));});});},exports[_0x51b67d('0x3')]=function(_0x5c8bab){const _0x548cd4=this;return new Promise(function(_0x346ce2,_0x4b4eb0){const _0x1cc896=a296_0x4def;return db['ServicenowAccount'][_0x1cc896('0x9')]({'raw':_0x5c8bab[_0x1cc896('0x15')]?_0x5c8bab['options']['raw']===undefined?!![]:![]:!![],'where':_0x5c8bab['options']?_0x5c8bab['options'][_0x1cc896('0xc')]||null:null,'attributes':_0x5c8bab['options']?_0x5c8bab['options'][_0x1cc896('0xf')]||null:null,'include':_0x5c8bab[_0x1cc896('0x15')]?_0x5c8bab['options'][_0x1cc896('0x8')]?_['map'](_0x5c8bab[_0x1cc896('0x15')][_0x1cc896('0x8')],function(_0x4177ca){const _0x539150=_0x1cc896;return{'model':db[_0x4177ca['model']],'as':_0x4177ca['as'],'attributes':_0x4177ca[_0x539150('0xf')],'include':_0x4177ca[_0x539150('0x8')]?_[_0x539150('0xe')](_0x4177ca[_0x539150('0x8')],function(_0x39872a){const _0xc1051e=_0x539150;return{'model':db[_0x39872a[_0xc1051e('0xd')]],'as':_0x39872a['as'],'attributes':_0x39872a[_0xc1051e('0xf')],'include':_0x39872a[_0xc1051e('0x8')]?_[_0xc1051e('0xe')](_0x39872a[_0xc1051e('0x8')],function(_0x243174){const _0x108111=_0xc1051e;return{'model':db[_0x243174[_0x108111('0xd')]],'as':_0x243174['as'],'attributes':_0x243174[_0x108111('0xf')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x52b6ff){const _0x2fd399=_0x1cc896;logger['info'](_0x2fd399('0x3'),_0x5c8bab),logger[_0x2fd399('0x2')](_0x2fd399('0x3'),_0x5c8bab,JSON[_0x2fd399('0x6')](_0x52b6ff)),_0x346ce2(_0x52b6ff);})[_0x1cc896('0x12')](function(_0x24f250){const _0x110a64=_0x1cc896;logger[_0x110a64('0x13')](_0x110a64('0x3'),_0x24f250['message'],_0x5c8bab),_0x4b4eb0(_0x548cd4[_0x110a64('0x13')](0x1f4,_0x24f250['message']));});});}; \ No newline at end of file +const a296_0x2b9a=['info','error','include','../../mysqldb','catch','GetServicenowAccount','../../config/logger','model','ShowServicenowAccount','rpc','debug','options','ServicenowAccount','message','findOne','findAll','lodash','limit','stringify','attributes','map','where'];(function(_0x2428a2,_0x2b9ab2){const _0x591588=function(_0xbebdd0){while(--_0xbebdd0){_0x2428a2['push'](_0x2428a2['shift']());}};_0x591588(++_0x2b9ab2);}(a296_0x2b9a,0xfd));const a296_0x5915=function(_0x2428a2,_0x2b9ab2){_0x2428a2=_0x2428a2-0x0;let _0x591588=a296_0x2b9a[_0x2428a2];return _0x591588;};const _0x25026a=a296_0x5915;'use strict';const _=require(_0x25026a('0x5')),db=require(_0x25026a('0xe'))['db'],logger=require(_0x25026a('0x11'))(_0x25026a('0x14'));exports[_0x25026a('0x10')]=function(_0xbebdd0){const _0x54a29e=this;return new Promise(function(_0x3c5908,_0x4b5147){const _0x2cbce6=a296_0x5915;return db[_0x2cbce6('0x1')][_0x2cbce6('0x4')]({'raw':_0xbebdd0['options']?_0xbebdd0[_0x2cbce6('0x0')]['raw']===undefined?!![]:![]:!![],'where':_0xbebdd0['options']?_0xbebdd0[_0x2cbce6('0x0')][_0x2cbce6('0xa')]||null:null,'attributes':_0xbebdd0[_0x2cbce6('0x0')]?_0xbebdd0[_0x2cbce6('0x0')][_0x2cbce6('0x8')]||null:null,'limit':_0xbebdd0[_0x2cbce6('0x0')]?_0xbebdd0['options'][_0x2cbce6('0x6')]||null:null,'include':_0xbebdd0['options']?_0xbebdd0['options']['include']?_[_0x2cbce6('0x9')](_0xbebdd0['options'][_0x2cbce6('0xd')],function(_0x245d9a){const _0x3c5ece=_0x2cbce6;return{'model':db[_0x245d9a[_0x3c5ece('0x12')]],'as':_0x245d9a['as'],'attributes':_0x245d9a[_0x3c5ece('0x8')],'include':_0x245d9a[_0x3c5ece('0xd')]?_[_0x3c5ece('0x9')](_0x245d9a['include'],function(_0x26ef7c){const _0x48ae2b=_0x3c5ece;return{'model':db[_0x26ef7c[_0x48ae2b('0x12')]],'as':_0x26ef7c['as'],'attributes':_0x26ef7c['attributes'],'include':_0x26ef7c[_0x48ae2b('0xd')]?_[_0x48ae2b('0x9')](_0x26ef7c['include'],function(_0x246e28){const _0x3c12e4=_0x48ae2b;return{'model':db[_0x246e28[_0x3c12e4('0x12')]],'as':_0x246e28['as'],'attributes':_0x246e28[_0x3c12e4('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x24b657){const _0xe22b2f=_0x2cbce6;logger['info'](_0xe22b2f('0x10'),_0xbebdd0),logger[_0xe22b2f('0x15')](_0xe22b2f('0x10'),_0xbebdd0,JSON[_0xe22b2f('0x7')](_0x24b657)),_0x3c5908(_0x24b657);})['catch'](function(_0x2e7ba5){const _0x11c6ca=_0x2cbce6;logger[_0x11c6ca('0xc')](_0x11c6ca('0x10'),_0x2e7ba5[_0x11c6ca('0x2')],_0xbebdd0),_0x4b5147(_0x54a29e[_0x11c6ca('0xc')](0x1f4,_0x2e7ba5[_0x11c6ca('0x2')]));});});},exports[_0x25026a('0x13')]=function(_0x2bdaec){const _0x421dfe=this;return new Promise(function(_0x240ccc,_0x2295fd){const _0x45fc98=a296_0x5915;return db[_0x45fc98('0x1')][_0x45fc98('0x3')]({'raw':_0x2bdaec[_0x45fc98('0x0')]?_0x2bdaec['options']['raw']===undefined?!![]:![]:!![],'where':_0x2bdaec[_0x45fc98('0x0')]?_0x2bdaec[_0x45fc98('0x0')]['where']||null:null,'attributes':_0x2bdaec['options']?_0x2bdaec[_0x45fc98('0x0')][_0x45fc98('0x8')]||null:null,'include':_0x2bdaec[_0x45fc98('0x0')]?_0x2bdaec[_0x45fc98('0x0')][_0x45fc98('0xd')]?_[_0x45fc98('0x9')](_0x2bdaec['options']['include'],function(_0x2661fe){const _0x809ff2=_0x45fc98;return{'model':db[_0x2661fe[_0x809ff2('0x12')]],'as':_0x2661fe['as'],'attributes':_0x2661fe[_0x809ff2('0x8')],'include':_0x2661fe[_0x809ff2('0xd')]?_[_0x809ff2('0x9')](_0x2661fe[_0x809ff2('0xd')],function(_0x23d052){const _0xce0672=_0x809ff2;return{'model':db[_0x23d052[_0xce0672('0x12')]],'as':_0x23d052['as'],'attributes':_0x23d052[_0xce0672('0x8')],'include':_0x23d052[_0xce0672('0xd')]?_[_0xce0672('0x9')](_0x23d052[_0xce0672('0xd')],function(_0x42866d){return{'model':db[_0x42866d['model']],'as':_0x42866d['as'],'attributes':_0x42866d['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2d46be){const _0x192454=_0x45fc98;logger[_0x192454('0xb')](_0x192454('0x13'),_0x2bdaec),logger[_0x192454('0x15')](_0x192454('0x13'),_0x2bdaec,JSON[_0x192454('0x7')](_0x2d46be)),_0x240ccc(_0x2d46be);})[_0x45fc98('0xf')](function(_0x30d53f){const _0x59f5ff=_0x45fc98;logger['error'](_0x59f5ff('0x13'),_0x30d53f[_0x59f5ff('0x2')],_0x2bdaec),_0x2295fd(_0x421dfe['error'](0x1f4,_0x30d53f[_0x59f5ff('0x2')]));});});}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/index.js b/server/api/intServicenowConfiguration/index.js index e15f98e..b9e9292 100644 --- a/server/api/intServicenowConfiguration/index.js +++ b/server/api/intServicenowConfiguration/index.js @@ -1 +1 @@ -const a297_0x5887=['Router','express','/:id/fields','show','/:id/descriptions','/:id/subjects','../../components/auth/service','create','update','post','exports','getSubjects','isAuthenticated','put','destroy','get','/:id'];(function(_0x263488,_0x588717){const _0x5b121a=function(_0x2033ad){while(--_0x2033ad){_0x263488['push'](_0x263488['shift']());}};_0x5b121a(++_0x588717);}(a297_0x5887,0xfe));const a297_0x5b12=function(_0x263488,_0x588717){_0x263488=_0x263488-0x0;let _0x5b121a=a297_0x5887[_0x263488];return _0x5b121a;};const _0x330aed=a297_0x5b12;'use strict';const express=require(_0x330aed('0x2')),router=express[_0x330aed('0x1')](),auth=require(_0x330aed('0x7')),controller=require('./intServicenowConfiguration.controller');router[_0x330aed('0x10')]('/',auth[_0x330aed('0xd')](),controller['index']),router[_0x330aed('0x10')](_0x330aed('0x0'),auth['isAuthenticated'](),controller[_0x330aed('0x4')]),router[_0x330aed('0x10')](_0x330aed('0x3'),auth[_0x330aed('0xd')](),controller['getFields']),router[_0x330aed('0x10')](_0x330aed('0x6'),auth[_0x330aed('0xd')](),controller[_0x330aed('0xc')]),router[_0x330aed('0x10')](_0x330aed('0x5'),auth[_0x330aed('0xd')](),controller['getDescriptions']),router[_0x330aed('0xa')]('/',auth[_0x330aed('0xd')](),controller[_0x330aed('0x8')]),router[_0x330aed('0xe')]('/:id',auth[_0x330aed('0xd')](),controller[_0x330aed('0x9')]),router['delete'](_0x330aed('0x0'),auth[_0x330aed('0xd')](),controller[_0x330aed('0xf')]),module[_0x330aed('0xb')]=router; \ No newline at end of file +const a297_0x11bb=['get','/:id/descriptions','index','./intServicenowConfiguration.controller','isAuthenticated','delete','post','destroy','/:id','../../components/auth/service','/:id/fields','getDescriptions','update','Router','/:id/subjects','put','getFields','express','create'];(function(_0x441451,_0x11bb9f){const _0x2b068f=function(_0x19f43e){while(--_0x19f43e){_0x441451['push'](_0x441451['shift']());}};_0x2b068f(++_0x11bb9f);}(a297_0x11bb,0x184));const a297_0x2b06=function(_0x441451,_0x11bb9f){_0x441451=_0x441451-0x0;let _0x2b068f=a297_0x11bb[_0x441451];return _0x2b068f;};const _0xb127a=a297_0x2b06;'use strict';const express=require(_0xb127a('0x9')),router=express[_0xb127a('0x5')](),auth=require(_0xb127a('0x1')),controller=require(_0xb127a('0xe'));router[_0xb127a('0xb')]('/',auth['isAuthenticated'](),controller[_0xb127a('0xd')]),router['get'](_0xb127a('0x0'),auth[_0xb127a('0xf')](),controller['show']),router[_0xb127a('0xb')](_0xb127a('0x2'),auth[_0xb127a('0xf')](),controller[_0xb127a('0x8')]),router['get'](_0xb127a('0x6'),auth[_0xb127a('0xf')](),controller['getSubjects']),router[_0xb127a('0xb')](_0xb127a('0xc'),auth[_0xb127a('0xf')](),controller[_0xb127a('0x3')]),router[_0xb127a('0x11')]('/',auth[_0xb127a('0xf')](),controller[_0xb127a('0xa')]),router[_0xb127a('0x7')](_0xb127a('0x0'),auth[_0xb127a('0xf')](),controller[_0xb127a('0x4')]),router[_0xb127a('0x10')](_0xb127a('0x0'),auth[_0xb127a('0xf')](),controller[_0xb127a('0x12')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js index acde6a1..823a440 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.attributes.js @@ -1 +1 @@ -const a298_0x2c72=['STRING','sequelize'];(function(_0x43c07b,_0x2c72ec){const _0x2312d3=function(_0x4561ec){while(--_0x4561ec){_0x43c07b['push'](_0x43c07b['shift']());}};_0x2312d3(++_0x2c72ec);}(a298_0x2c72,0x1b3));const a298_0x2312=function(_0x43c07b,_0x2c72ec){_0x43c07b=_0x43c07b-0x0;let _0x2312d3=a298_0x2c72[_0x43c07b];return _0x2312d3;};const _0x568119=a298_0x2312;'use strict';const Sequelize=require(_0x568119('0x0'));module['exports']={'name':{'type':Sequelize[_0x568119('0x1')]},'description':{'type':Sequelize[_0x568119('0x1')]}}; \ No newline at end of file +const a298_0x21e1=['STRING','exports'];(function(_0x13ab1a,_0x21e138){const _0x36c0fd=function(_0x4e9f62){while(--_0x4e9f62){_0x13ab1a['push'](_0x13ab1a['shift']());}};_0x36c0fd(++_0x21e138);}(a298_0x21e1,0xc7));const a298_0x36c0=function(_0x13ab1a,_0x21e138){_0x13ab1a=_0x13ab1a-0x0;let _0x36c0fd=a298_0x21e1[_0x13ab1a];return _0x36c0fd;};const _0x49cdbf=a298_0x36c0;'use strict';const Sequelize=require('sequelize');module[_0x49cdbf('0x0')]={'name':{'type':Sequelize[_0x49cdbf('0x1')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js index b81f415..c740b5c 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.controller.js @@ -1 +1 @@ -const a299_0x5dfc=['findOne','findAll','Content-Range','name','../../mysqldb','attributes','sort','rawAttributes','getSubjects','model','index','limit','getDescriptions','include','where','order','length','map','sequelize','../../components/parsers/qs','ServicenowField','ServicenowConfiguration','fields','nolimit','merge','catch','options','stack','show','lodash','query','undefined','filter','includeAll','keys','update','send','../../config/logger','status','params','pick','VIRTUAL','count','json','destroy','then','like','create','filters','body','offset','key','getFields','intersection','set'];(function(_0x28a8e7,_0x5dfc69){const _0x5251a7=function(_0xc4f9a1){while(--_0xc4f9a1){_0x28a8e7['push'](_0x28a8e7['shift']());}};_0x5251a7(++_0x5dfc69);}(a299_0x5dfc,0x1d8));const a299_0x5251=function(_0x28a8e7,_0x5dfc69){_0x28a8e7=_0x28a8e7-0x0;let _0x5251a7=a299_0x5dfc[_0x28a8e7];return _0x5251a7;};const _0x12fae3=a299_0x5251;'use strict';const _=require(_0x12fae3('0x34')),qs=require(_0x12fae3('0x2a')),logger=require(_0x12fae3('0x5'))('api'),db=require(_0x12fae3('0x1b'))['db'],{Op}=require(_0x12fae3('0x29'));function respondWithResult(_0xc4f9a1,_0x465979){return _0x465979=_0x465979||0xc8,function(_0x5cabbb){const _0x3112ba=a299_0x5251;if(_0x5cabbb)return _0xc4f9a1['status'](_0x465979)[_0x3112ba('0xb')](_0x5cabbb);};}function respondWithFilteredResult(_0x547bac,_0x6ef78b){return function(_0x22dce0){const _0x20bf19=a299_0x5251;if(_0x22dce0){const _0x4d3a4f=_0x22dce0[_0x20bf19('0xa')],_0x464748=_0x6ef78b[_0x20bf19('0x12')];let _0x513a9e=_0x6ef78b[_0x20bf19('0x12')]+_0x6ef78b[_0x20bf19('0x22')],_0x6edb06;return _0x513a9e>=_0x4d3a4f?(_0x513a9e=_0x4d3a4f,_0x6edb06=0xc8):_0x6edb06=0xce,_0x547bac['status'](_0x6edb06),_0x547bac[_0x20bf19('0x16')](_0x20bf19('0x19'),_0x464748+'-'+_0x513a9e+'/'+_0x4d3a4f)['json'](_0x22dce0);}return null;};}function saveUpdates(_0x47defe){return function(_0x5f30a4){if(_0x5f30a4)return _0x5f30a4['update'](_0x47defe)['then'](function(_0x314d00){return _0x314d00;});return null;};}function removeEntity(_0xeb849a){return function(_0x32fb36){const _0x380ca6=a299_0x5251;if(_0x32fb36)return _0x32fb36[_0x380ca6('0xc')]()[_0x380ca6('0xd')](function(){const _0x10820a=_0x380ca6;_0xeb849a[_0x10820a('0x6')](0xcc)['end']();});};}function handleEntityNotFound(_0x842d5a){return function(_0x55342d){return!_0x55342d&&_0x842d5a['sendStatus'](0x194),_0x55342d;};}function handleError(_0x3f5e9c,_0x4ebfb5){return _0x4ebfb5=_0x4ebfb5||0x1f4,function(_0x86da75){const _0x4c6ae8=a299_0x5251;logger['error'](_0x86da75[_0x4c6ae8('0x32')]),_0x86da75[_0x4c6ae8('0x1a')]&&delete _0x86da75[_0x4c6ae8('0x1a')],_0x3f5e9c['status'](_0x4ebfb5)[_0x4c6ae8('0x4')](_0x86da75);};}exports[_0x12fae3('0x21')]=function(_0x4239d3,_0x326dc4){const _0x5ebc54=_0x12fae3;let _0x2e9016={};const _0x2564ca={},_0x59cc04={'count':0x0,'rows':[]},_0x474abc=_['map'](db['ServicenowConfiguration'][_0x5ebc54('0x1e')],function(_0x141b7f){const _0xf95213=_0x5ebc54;return{'name':_0x141b7f['fieldName'],'type':_0x141b7f['type'][_0xf95213('0x13')]};});_0x2564ca[_0x5ebc54('0x20')]=_['map'](_0x474abc,_0x5ebc54('0x1a')),_0x2564ca[_0x5ebc54('0x35')]=_['keys'](_0x4239d3['query']),_0x2564ca[_0x5ebc54('0x10')]=_['intersection'](_0x2564ca[_0x5ebc54('0x20')],_0x2564ca[_0x5ebc54('0x35')]),_0x2e9016['attributes']=_['intersection'](_0x2564ca['model'],qs[_0x5ebc54('0x2d')](_0x4239d3['query'][_0x5ebc54('0x2d')])),_0x2e9016[_0x5ebc54('0x1c')]=_0x2e9016[_0x5ebc54('0x1c')][_0x5ebc54('0x27')]?_0x2e9016[_0x5ebc54('0x1c')]:_0x2564ca[_0x5ebc54('0x20')];typeof _0x4239d3[_0x5ebc54('0x35')]['nolimit']===_0x5ebc54('0x36')&&(_0x2e9016[_0x5ebc54('0x22')]=qs[_0x5ebc54('0x22')](_0x4239d3[_0x5ebc54('0x35')][_0x5ebc54('0x22')]),_0x2e9016['offset']=qs[_0x5ebc54('0x12')](_0x4239d3['query'][_0x5ebc54('0x12')]));_0x2e9016[_0x5ebc54('0x26')]=qs[_0x5ebc54('0x1d')](_0x4239d3[_0x5ebc54('0x35')][_0x5ebc54('0x1d')]),_0x2e9016[_0x5ebc54('0x25')]=qs[_0x5ebc54('0x10')](_[_0x5ebc54('0x8')](_0x4239d3[_0x5ebc54('0x35')],_0x2564ca[_0x5ebc54('0x10')]),_0x474abc);_0x4239d3[_0x5ebc54('0x35')][_0x5ebc54('0x0')]&&(_0x2e9016[_0x5ebc54('0x25')]=_[_0x5ebc54('0x2f')](_0x2e9016[_0x5ebc54('0x25')],{[Op['or']]:_[_0x5ebc54('0x28')](_0x474abc,function(_0xb95a52){const _0x2259fe=_0x5ebc54;if(_0xb95a52['type']!==_0x2259fe('0x9')){const _0x5df2e7={};return _0x5df2e7[_0xb95a52[_0x2259fe('0x1a')]]={[Op[_0x2259fe('0xe')]]:'%'+_0x4239d3[_0x2259fe('0x35')][_0x2259fe('0x0')]+'%'},_0x5df2e7;}})}));_0x2e9016=_['merge']({},_0x2e9016,_0x4239d3[_0x5ebc54('0x31')]);const _0x262bf3={'where':_0x2e9016[_0x5ebc54('0x25')]};return db['ServicenowConfiguration'][_0x5ebc54('0xa')](_0x262bf3)[_0x5ebc54('0xd')](function(_0x339326){const _0x44bac4=_0x5ebc54;return _0x59cc04[_0x44bac4('0xa')]=_0x339326,_0x4239d3[_0x44bac4('0x35')][_0x44bac4('0x1')]&&(_0x2e9016['include']=[{'all':!![]}]),db[_0x44bac4('0x2c')][_0x44bac4('0x18')](_0x2e9016);})[_0x5ebc54('0xd')](function(_0x361e84){return _0x59cc04['rows']=_0x361e84,_0x59cc04;})[_0x5ebc54('0xd')](respondWithFilteredResult(_0x326dc4,_0x2e9016))['catch'](handleError(_0x326dc4,null));},exports[_0x12fae3('0x33')]=function(_0x472e23,_0xdc6c4e){const _0x35063a=_0x12fae3;let _0x366e9e={'raw':![],'where':{'id':_0x472e23['params']['id']}};const _0x3a3a82={};return _0x3a3a82['model']=_[_0x35063a('0x2')](db[_0x35063a('0x2c')][_0x35063a('0x1e')]),_0x3a3a82['query']=_[_0x35063a('0x2')](_0x472e23[_0x35063a('0x35')]),_0x3a3a82[_0x35063a('0x10')]=_['intersection'](_0x3a3a82['model'],_0x3a3a82[_0x35063a('0x35')]),_0x366e9e['attributes']=_[_0x35063a('0x15')](_0x3a3a82[_0x35063a('0x20')],qs[_0x35063a('0x2d')](_0x472e23[_0x35063a('0x35')][_0x35063a('0x2d')])),_0x366e9e[_0x35063a('0x1c')]=_0x366e9e[_0x35063a('0x1c')][_0x35063a('0x27')]?_0x366e9e[_0x35063a('0x1c')]:_0x3a3a82[_0x35063a('0x20')],_0x472e23['query'][_0x35063a('0x1')]&&(_0x366e9e[_0x35063a('0x24')]=[{'all':!![]}]),_0x366e9e=_['merge']({},_0x366e9e,_0x472e23[_0x35063a('0x31')]),db['ServicenowConfiguration'][_0x35063a('0x17')](_0x366e9e)[_0x35063a('0xd')](handleEntityNotFound(_0xdc6c4e,null))[_0x35063a('0xd')](respondWithResult(_0xdc6c4e,null))[_0x35063a('0x30')](handleError(_0xdc6c4e,null));},exports['create']=function(_0x5b381f,_0x271db1){const _0x5390b9=_0x12fae3;return db['ServicenowConfiguration'][_0x5390b9('0xf')](_0x5b381f[_0x5390b9('0x11')],{})['then'](respondWithResult(_0x271db1,0xc9))[_0x5390b9('0x30')](handleError(_0x271db1,null));},exports[_0x12fae3('0x3')]=function(_0x32e2cf,_0x439577){const _0x4969c3=_0x12fae3;return _0x32e2cf[_0x4969c3('0x11')]['id']&&delete _0x32e2cf[_0x4969c3('0x11')]['id'],db[_0x4969c3('0x2c')]['findOne']({'where':{'id':_0x32e2cf[_0x4969c3('0x7')]['id']}})[_0x4969c3('0xd')](handleEntityNotFound(_0x439577,null))[_0x4969c3('0xd')](saveUpdates(_0x32e2cf[_0x4969c3('0x11')],null))['then'](respondWithResult(_0x439577,null))['catch'](handleError(_0x439577,null));},exports[_0x12fae3('0xc')]=function(_0x2d1415,_0x295526){const _0x12c967=_0x12fae3;return db[_0x12c967('0x2c')][_0x12c967('0x17')]({'where':{'id':_0x2d1415[_0x12c967('0x7')]['id']}})[_0x12c967('0xd')](handleEntityNotFound(_0x295526,null))[_0x12c967('0xd')](removeEntity(_0x295526,null))[_0x12c967('0x30')](handleError(_0x295526,null));},exports[_0x12fae3('0x14')]=function(_0x459bba,_0x46e34e){const _0x37e7c2=_0x12fae3;let _0xdec2f6={};const _0x3ea28f={};let _0x22f1ca,_0x4736ab;return db[_0x37e7c2('0x2c')]['findOne']({'where':{'id':_0x459bba[_0x37e7c2('0x7')]['id']}})[_0x37e7c2('0xd')](handleEntityNotFound(_0x46e34e,null))[_0x37e7c2('0xd')](function(_0x3a4302){const _0x142adc=_0x37e7c2;if(_0x3a4302)return _0x22f1ca=_0x3a4302,_0x3ea28f[_0x142adc('0x20')]=_[_0x142adc('0x2')](db[_0x142adc('0x2b')][_0x142adc('0x1e')]),_0x3ea28f[_0x142adc('0x35')]=_[_0x142adc('0x2')](_0x459bba[_0x142adc('0x35')]),_0x3ea28f[_0x142adc('0x10')]=_[_0x142adc('0x15')](_0x3ea28f[_0x142adc('0x20')],_0x3ea28f[_0x142adc('0x35')]),_0xdec2f6[_0x142adc('0x1c')]=_[_0x142adc('0x15')](_0x3ea28f['model'],qs[_0x142adc('0x2d')](_0x459bba[_0x142adc('0x35')][_0x142adc('0x2d')])),_0xdec2f6['attributes']=_0xdec2f6[_0x142adc('0x1c')][_0x142adc('0x27')]?_0xdec2f6[_0x142adc('0x1c')]:_0x3ea28f['model'],_0xdec2f6[_0x142adc('0x26')]=qs[_0x142adc('0x1d')](_0x459bba[_0x142adc('0x35')][_0x142adc('0x1d')]),_0xdec2f6[_0x142adc('0x25')]=qs['filters'](_[_0x142adc('0x8')](_0x459bba[_0x142adc('0x35')],_0x3ea28f[_0x142adc('0x10')])),_0x459bba['query']['filter']&&(_0xdec2f6[_0x142adc('0x25')]=_[_0x142adc('0x2f')](_0xdec2f6['where'],{[Op['or']]:_[_0x142adc('0x28')](_0xdec2f6[_0x142adc('0x1c')],function(_0x391bfe){const _0x313a98=_0x142adc,_0x4ef7a1={};return _0x4ef7a1[_0x391bfe]={[Op[_0x313a98('0xe')]]:'%'+_0x459bba[_0x313a98('0x35')]['filter']+'%'},_0x4ef7a1;})})),_0xdec2f6=_[_0x142adc('0x2f')]({},_0xdec2f6,_0x459bba[_0x142adc('0x31')]),_0x22f1ca[_0x142adc('0x14')](_0xdec2f6);})['then'](function(_0x42b1fa){const _0x499a5f=_0x37e7c2;if(_0x42b1fa)return _0x4736ab=_0x42b1fa['length'],typeof _0x459bba['query'][_0x499a5f('0x2e')]===_0x499a5f('0x36')&&(_0xdec2f6[_0x499a5f('0x22')]=qs[_0x499a5f('0x22')](_0x459bba[_0x499a5f('0x35')][_0x499a5f('0x22')]),_0xdec2f6[_0x499a5f('0x12')]=qs[_0x499a5f('0x12')](_0x459bba['query'][_0x499a5f('0x12')])),_0x22f1ca[_0x499a5f('0x14')](_0xdec2f6);})['then'](function(_0x1e2f60){if(_0x1e2f60)return _0x1e2f60?{'count':_0x4736ab,'rows':_0x1e2f60}:null;})[_0x37e7c2('0xd')](respondWithResult(_0x46e34e,null))['catch'](handleError(_0x46e34e,null));},exports['getSubjects']=function(_0x30b803,_0x5a0c5b){const _0x197e55=_0x12fae3;let _0x2e7b41={};const _0x4ed8c8={};let _0x4f4803,_0x1f602e;return db[_0x197e55('0x2c')][_0x197e55('0x17')]({'where':{'id':_0x30b803['params']['id']}})[_0x197e55('0xd')](handleEntityNotFound(_0x5a0c5b,null))[_0x197e55('0xd')](function(_0x485819){const _0x5abc07=_0x197e55;if(_0x485819)return _0x4f4803=_0x485819,_0x4ed8c8[_0x5abc07('0x20')]=_[_0x5abc07('0x2')](db[_0x5abc07('0x2b')][_0x5abc07('0x1e')]),_0x4ed8c8['query']=_[_0x5abc07('0x2')](_0x30b803[_0x5abc07('0x35')]),_0x4ed8c8[_0x5abc07('0x10')]=_['intersection'](_0x4ed8c8[_0x5abc07('0x20')],_0x4ed8c8[_0x5abc07('0x35')]),_0x2e7b41[_0x5abc07('0x1c')]=_[_0x5abc07('0x15')](_0x4ed8c8[_0x5abc07('0x20')],qs['fields'](_0x30b803[_0x5abc07('0x35')]['fields'])),_0x2e7b41[_0x5abc07('0x1c')]=_0x2e7b41[_0x5abc07('0x1c')][_0x5abc07('0x27')]?_0x2e7b41[_0x5abc07('0x1c')]:_0x4ed8c8[_0x5abc07('0x20')],_0x2e7b41['order']=qs[_0x5abc07('0x1d')](_0x30b803[_0x5abc07('0x35')][_0x5abc07('0x1d')]),_0x2e7b41[_0x5abc07('0x25')]=qs[_0x5abc07('0x10')](_[_0x5abc07('0x8')](_0x30b803['query'],_0x4ed8c8[_0x5abc07('0x10')])),_0x30b803['query'][_0x5abc07('0x0')]&&(_0x2e7b41[_0x5abc07('0x25')]=_['merge'](_0x2e7b41[_0x5abc07('0x25')],{[Op['or']]:_[_0x5abc07('0x28')](_0x2e7b41['attributes'],function(_0xff72d5){const _0x50fc45=_0x5abc07,_0x4b32ab={};return _0x4b32ab[_0xff72d5]={[Op[_0x50fc45('0xe')]]:'%'+_0x30b803[_0x50fc45('0x35')][_0x50fc45('0x0')]+'%'},_0x4b32ab;})})),_0x2e7b41=_[_0x5abc07('0x2f')]({},_0x2e7b41,_0x30b803['options']),_0x4f4803[_0x5abc07('0x1f')](_0x2e7b41);})[_0x197e55('0xd')](function(_0x1a130b){const _0x2ae53c=_0x197e55;if(_0x1a130b)return _0x1f602e=_0x1a130b['length'],typeof _0x30b803[_0x2ae53c('0x35')]['nolimit']==='undefined'&&(_0x2e7b41[_0x2ae53c('0x22')]=qs[_0x2ae53c('0x22')](_0x30b803['query'][_0x2ae53c('0x22')]),_0x2e7b41['offset']=qs[_0x2ae53c('0x12')](_0x30b803[_0x2ae53c('0x35')]['offset'])),_0x4f4803['getSubjects'](_0x2e7b41);})[_0x197e55('0xd')](function(_0x3b81c6){if(_0x3b81c6)return _0x3b81c6?{'count':_0x1f602e,'rows':_0x3b81c6}:null;})[_0x197e55('0xd')](respondWithResult(_0x5a0c5b,null))[_0x197e55('0x30')](handleError(_0x5a0c5b,null));},exports[_0x12fae3('0x23')]=function(_0x206146,_0x14e0bc){const _0x4bc246=_0x12fae3;let _0xe8bdd7={};const _0x3afb88={};let _0x1d5814,_0x5345c7;return db[_0x4bc246('0x2c')][_0x4bc246('0x17')]({'where':{'id':_0x206146[_0x4bc246('0x7')]['id']}})[_0x4bc246('0xd')](handleEntityNotFound(_0x14e0bc,null))['then'](function(_0x17c556){const _0x1745be=_0x4bc246;if(_0x17c556)return _0x1d5814=_0x17c556,_0x3afb88[_0x1745be('0x20')]=_['keys'](db[_0x1745be('0x2b')][_0x1745be('0x1e')]),_0x3afb88['query']=_[_0x1745be('0x2')](_0x206146[_0x1745be('0x35')]),_0x3afb88[_0x1745be('0x10')]=_[_0x1745be('0x15')](_0x3afb88['model'],_0x3afb88['query']),_0xe8bdd7[_0x1745be('0x1c')]=_[_0x1745be('0x15')](_0x3afb88[_0x1745be('0x20')],qs[_0x1745be('0x2d')](_0x206146[_0x1745be('0x35')][_0x1745be('0x2d')])),_0xe8bdd7[_0x1745be('0x1c')]=_0xe8bdd7[_0x1745be('0x1c')][_0x1745be('0x27')]?_0xe8bdd7[_0x1745be('0x1c')]:_0x3afb88['model'],_0xe8bdd7[_0x1745be('0x26')]=qs[_0x1745be('0x1d')](_0x206146[_0x1745be('0x35')][_0x1745be('0x1d')]),_0xe8bdd7[_0x1745be('0x25')]=qs['filters'](_[_0x1745be('0x8')](_0x206146[_0x1745be('0x35')],_0x3afb88[_0x1745be('0x10')])),_0x206146[_0x1745be('0x35')][_0x1745be('0x0')]&&(_0xe8bdd7[_0x1745be('0x25')]=_['merge'](_0xe8bdd7[_0x1745be('0x25')],{[Op['or']]:_[_0x1745be('0x28')](_0xe8bdd7['attributes'],function(_0x39d872){const _0x2f5199=_0x1745be,_0x3325cb={};return _0x3325cb[_0x39d872]={[Op[_0x2f5199('0xe')]]:'%'+_0x206146['query'][_0x2f5199('0x0')]+'%'},_0x3325cb;})})),_0xe8bdd7=_[_0x1745be('0x2f')]({},_0xe8bdd7,_0x206146[_0x1745be('0x31')]),_0x1d5814['getDescriptions'](_0xe8bdd7);})[_0x4bc246('0xd')](function(_0x18c002){const _0x2892f1=_0x4bc246;if(_0x18c002)return _0x5345c7=_0x18c002['length'],typeof _0x206146[_0x2892f1('0x35')][_0x2892f1('0x2e')]===_0x2892f1('0x36')&&(_0xe8bdd7[_0x2892f1('0x22')]=qs[_0x2892f1('0x22')](_0x206146[_0x2892f1('0x35')][_0x2892f1('0x22')]),_0xe8bdd7[_0x2892f1('0x12')]=qs[_0x2892f1('0x12')](_0x206146[_0x2892f1('0x35')][_0x2892f1('0x12')])),_0x1d5814['getDescriptions'](_0xe8bdd7);})[_0x4bc246('0xd')](function(_0x3fb445){if(_0x3fb445)return _0x3fb445?{'count':_0x5345c7,'rows':_0x3fb445}:null;})[_0x4bc246('0xd')](respondWithResult(_0x14e0bc,null))[_0x4bc246('0x30')](handleError(_0x14e0bc,null));}; \ No newline at end of file +const a299_0x43ea=['getFields','getDescriptions','rawAttributes','options','../../mysqldb','count','then','like','json','end','findAll','getSubjects','fieldName','sort','show','status','VIRTUAL','includeAll','filters','length','error','name','where','limit','model','offset','create','sendStatus','send','rows','pick','keys','findOne','ServicenowField','body','set','params','stack','catch','Content-Range','key','fields','update','nolimit','merge','sequelize','type','attributes','ServicenowConfiguration','api','intersection','query','undefined','filter','order','destroy','map'];(function(_0x23d4ee,_0x43ea4b){const _0x22fe88=function(_0x22fea0){while(--_0x22fea0){_0x23d4ee['push'](_0x23d4ee['shift']());}};_0x22fe88(++_0x43ea4b);}(a299_0x43ea,0xdf));const a299_0x22fe=function(_0x23d4ee,_0x43ea4b){_0x23d4ee=_0x23d4ee-0x0;let _0x22fe88=a299_0x43ea[_0x23d4ee];return _0x22fe88;};const _0x2461fc=a299_0x22fe;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x2461fc('0x36')),db=require(_0x2461fc('0x9'))['db'],{Op}=require(_0x2461fc('0x32'));function respondWithResult(_0x22fea0,_0x5a5d04){return _0x5a5d04=_0x5a5d04||0xc8,function(_0x8e97a9){const _0x3de713=a299_0x22fe;if(_0x8e97a9)return _0x22fea0['status'](_0x5a5d04)[_0x3de713('0xd')](_0x8e97a9);};}function respondWithFilteredResult(_0x429178,_0x173087){return function(_0x434e47){const _0x5db8f2=a299_0x22fe;if(_0x434e47){const _0x342ab9=_0x434e47[_0x5db8f2('0xa')],_0x1e0fb6=_0x173087[_0x5db8f2('0x1e')];let _0x1a902c=_0x173087[_0x5db8f2('0x1e')]+_0x173087[_0x5db8f2('0x1c')],_0x68231;return _0x1a902c>=_0x342ab9?(_0x1a902c=_0x342ab9,_0x68231=0xc8):_0x68231=0xce,_0x429178['status'](_0x68231),_0x429178[_0x5db8f2('0x28')](_0x5db8f2('0x2c'),_0x1e0fb6+'-'+_0x1a902c+'/'+_0x342ab9)[_0x5db8f2('0xd')](_0x434e47);}return null;};}function saveUpdates(_0x4ab640){return function(_0x5167a0){const _0x474cff=a299_0x22fe;if(_0x5167a0)return _0x5167a0[_0x474cff('0x2f')](_0x4ab640)[_0x474cff('0xb')](function(_0x4fd1c0){return _0x4fd1c0;});return null;};}function removeEntity(_0x1e6116){return function(_0x1fdc05){const _0x5ee068=a299_0x22fe;if(_0x1fdc05)return _0x1fdc05[_0x5ee068('0x3')]()['then'](function(){const _0x13deba=_0x5ee068;_0x1e6116['status'](0xcc)[_0x13deba('0xe')]();});};}function handleEntityNotFound(_0xfd3206){return function(_0x51de16){const _0x3fe636=a299_0x22fe;return!_0x51de16&&_0xfd3206[_0x3fe636('0x20')](0x194),_0x51de16;};}function handleError(_0xe4c93b,_0x52dc1b){return _0x52dc1b=_0x52dc1b||0x1f4,function(_0x2acfdf){const _0x38cff0=a299_0x22fe;logger[_0x38cff0('0x19')](_0x2acfdf[_0x38cff0('0x2a')]),_0x2acfdf[_0x38cff0('0x1a')]&&delete _0x2acfdf[_0x38cff0('0x1a')],_0xe4c93b[_0x38cff0('0x14')](_0x52dc1b)[_0x38cff0('0x21')](_0x2acfdf);};}exports['index']=function(_0x3b5e82,_0x2b8456){const _0x664610=_0x2461fc;let _0x1482a6={};const _0x515fe6={},_0x388639={'count':0x0,'rows':[]},_0x29ceca=_[_0x664610('0x4')](db[_0x664610('0x35')][_0x664610('0x7')],function(_0x37bdd5){const _0x4298a5=_0x664610;return{'name':_0x37bdd5[_0x4298a5('0x11')],'type':_0x37bdd5[_0x4298a5('0x33')][_0x4298a5('0x2d')]};});_0x515fe6[_0x664610('0x1d')]=_[_0x664610('0x4')](_0x29ceca,'name'),_0x515fe6[_0x664610('0x38')]=_['keys'](_0x3b5e82[_0x664610('0x38')]),_0x515fe6[_0x664610('0x17')]=_['intersection'](_0x515fe6[_0x664610('0x1d')],_0x515fe6[_0x664610('0x38')]),_0x1482a6['attributes']=_['intersection'](_0x515fe6['model'],qs[_0x664610('0x2e')](_0x3b5e82[_0x664610('0x38')]['fields'])),_0x1482a6[_0x664610('0x34')]=_0x1482a6[_0x664610('0x34')][_0x664610('0x18')]?_0x1482a6[_0x664610('0x34')]:_0x515fe6[_0x664610('0x1d')];typeof _0x3b5e82[_0x664610('0x38')][_0x664610('0x30')]===_0x664610('0x0')&&(_0x1482a6[_0x664610('0x1c')]=qs[_0x664610('0x1c')](_0x3b5e82[_0x664610('0x38')][_0x664610('0x1c')]),_0x1482a6[_0x664610('0x1e')]=qs[_0x664610('0x1e')](_0x3b5e82[_0x664610('0x38')][_0x664610('0x1e')]));_0x1482a6[_0x664610('0x2')]=qs[_0x664610('0x12')](_0x3b5e82[_0x664610('0x38')][_0x664610('0x12')]),_0x1482a6[_0x664610('0x1b')]=qs[_0x664610('0x17')](_['pick'](_0x3b5e82[_0x664610('0x38')],_0x515fe6[_0x664610('0x17')]),_0x29ceca);_0x3b5e82[_0x664610('0x38')][_0x664610('0x1')]&&(_0x1482a6[_0x664610('0x1b')]=_['merge'](_0x1482a6[_0x664610('0x1b')],{[Op['or']]:_['map'](_0x29ceca,function(_0x2f0e6a){const _0x2139d4=_0x664610;if(_0x2f0e6a[_0x2139d4('0x33')]!==_0x2139d4('0x15')){const _0x14e129={};return _0x14e129[_0x2f0e6a['name']]={[Op['like']]:'%'+_0x3b5e82['query'][_0x2139d4('0x1')]+'%'},_0x14e129;}})}));_0x1482a6=_['merge']({},_0x1482a6,_0x3b5e82[_0x664610('0x8')]);const _0x20ac1={'where':_0x1482a6[_0x664610('0x1b')]};return db[_0x664610('0x35')][_0x664610('0xa')](_0x20ac1)[_0x664610('0xb')](function(_0x26f47a){const _0x4d1cdc=_0x664610;return _0x388639[_0x4d1cdc('0xa')]=_0x26f47a,_0x3b5e82[_0x4d1cdc('0x38')][_0x4d1cdc('0x16')]&&(_0x1482a6['include']=[{'all':!![]}]),db[_0x4d1cdc('0x35')][_0x4d1cdc('0xf')](_0x1482a6);})[_0x664610('0xb')](function(_0x544eb1){const _0x19b1aa=_0x664610;return _0x388639[_0x19b1aa('0x22')]=_0x544eb1,_0x388639;})[_0x664610('0xb')](respondWithFilteredResult(_0x2b8456,_0x1482a6))['catch'](handleError(_0x2b8456,null));},exports[_0x2461fc('0x13')]=function(_0x150d0e,_0x3aeccb){const _0x400265=_0x2461fc;let _0x3410ae={'raw':![],'where':{'id':_0x150d0e['params']['id']}};const _0x57ca97={};return _0x57ca97[_0x400265('0x1d')]=_['keys'](db[_0x400265('0x35')]['rawAttributes']),_0x57ca97[_0x400265('0x38')]=_[_0x400265('0x24')](_0x150d0e[_0x400265('0x38')]),_0x57ca97[_0x400265('0x17')]=_[_0x400265('0x37')](_0x57ca97['model'],_0x57ca97[_0x400265('0x38')]),_0x3410ae[_0x400265('0x34')]=_['intersection'](_0x57ca97['model'],qs[_0x400265('0x2e')](_0x150d0e[_0x400265('0x38')][_0x400265('0x2e')])),_0x3410ae[_0x400265('0x34')]=_0x3410ae['attributes'][_0x400265('0x18')]?_0x3410ae['attributes']:_0x57ca97[_0x400265('0x1d')],_0x150d0e[_0x400265('0x38')][_0x400265('0x16')]&&(_0x3410ae['include']=[{'all':!![]}]),_0x3410ae=_[_0x400265('0x31')]({},_0x3410ae,_0x150d0e[_0x400265('0x8')]),db[_0x400265('0x35')]['findOne'](_0x3410ae)[_0x400265('0xb')](handleEntityNotFound(_0x3aeccb,null))[_0x400265('0xb')](respondWithResult(_0x3aeccb,null))[_0x400265('0x2b')](handleError(_0x3aeccb,null));},exports[_0x2461fc('0x1f')]=function(_0x51b5f3,_0x4dfebe){const _0x47131f=_0x2461fc;return db['ServicenowConfiguration'][_0x47131f('0x1f')](_0x51b5f3['body'],{})[_0x47131f('0xb')](respondWithResult(_0x4dfebe,0xc9))['catch'](handleError(_0x4dfebe,null));},exports[_0x2461fc('0x2f')]=function(_0x269824,_0xfafb20){const _0x23531c=_0x2461fc;return _0x269824[_0x23531c('0x27')]['id']&&delete _0x269824['body']['id'],db[_0x23531c('0x35')]['findOne']({'where':{'id':_0x269824[_0x23531c('0x29')]['id']}})['then'](handleEntityNotFound(_0xfafb20,null))['then'](saveUpdates(_0x269824[_0x23531c('0x27')],null))[_0x23531c('0xb')](respondWithResult(_0xfafb20,null))['catch'](handleError(_0xfafb20,null));},exports[_0x2461fc('0x3')]=function(_0x219fc1,_0x371d9c){const _0x28d173=_0x2461fc;return db[_0x28d173('0x35')][_0x28d173('0x25')]({'where':{'id':_0x219fc1[_0x28d173('0x29')]['id']}})[_0x28d173('0xb')](handleEntityNotFound(_0x371d9c,null))['then'](removeEntity(_0x371d9c,null))[_0x28d173('0x2b')](handleError(_0x371d9c,null));},exports[_0x2461fc('0x5')]=function(_0x5ec74f,_0x4c31a1){const _0x4eb2f3=_0x2461fc;let _0x540ffd={};const _0x23d52f={};let _0x115edc,_0x55a3b7;return db['ServicenowConfiguration'][_0x4eb2f3('0x25')]({'where':{'id':_0x5ec74f[_0x4eb2f3('0x29')]['id']}})['then'](handleEntityNotFound(_0x4c31a1,null))[_0x4eb2f3('0xb')](function(_0x3d8cae){const _0x39de17=_0x4eb2f3;if(_0x3d8cae)return _0x115edc=_0x3d8cae,_0x23d52f[_0x39de17('0x1d')]=_[_0x39de17('0x24')](db[_0x39de17('0x26')][_0x39de17('0x7')]),_0x23d52f[_0x39de17('0x38')]=_[_0x39de17('0x24')](_0x5ec74f[_0x39de17('0x38')]),_0x23d52f[_0x39de17('0x17')]=_[_0x39de17('0x37')](_0x23d52f[_0x39de17('0x1d')],_0x23d52f[_0x39de17('0x38')]),_0x540ffd[_0x39de17('0x34')]=_['intersection'](_0x23d52f[_0x39de17('0x1d')],qs[_0x39de17('0x2e')](_0x5ec74f['query']['fields'])),_0x540ffd[_0x39de17('0x34')]=_0x540ffd[_0x39de17('0x34')]['length']?_0x540ffd[_0x39de17('0x34')]:_0x23d52f[_0x39de17('0x1d')],_0x540ffd[_0x39de17('0x2')]=qs[_0x39de17('0x12')](_0x5ec74f[_0x39de17('0x38')][_0x39de17('0x12')]),_0x540ffd[_0x39de17('0x1b')]=qs[_0x39de17('0x17')](_[_0x39de17('0x23')](_0x5ec74f[_0x39de17('0x38')],_0x23d52f['filters'])),_0x5ec74f[_0x39de17('0x38')][_0x39de17('0x1')]&&(_0x540ffd[_0x39de17('0x1b')]=_['merge'](_0x540ffd[_0x39de17('0x1b')],{[Op['or']]:_[_0x39de17('0x4')](_0x540ffd[_0x39de17('0x34')],function(_0x5d5719){const _0x2f3e4b=_0x39de17,_0x50ec33={};return _0x50ec33[_0x5d5719]={[Op[_0x2f3e4b('0xc')]]:'%'+_0x5ec74f[_0x2f3e4b('0x38')]['filter']+'%'},_0x50ec33;})})),_0x540ffd=_[_0x39de17('0x31')]({},_0x540ffd,_0x5ec74f[_0x39de17('0x8')]),_0x115edc[_0x39de17('0x5')](_0x540ffd);})[_0x4eb2f3('0xb')](function(_0x406df5){const _0x50eb96=_0x4eb2f3;if(_0x406df5)return _0x55a3b7=_0x406df5['length'],typeof _0x5ec74f[_0x50eb96('0x38')][_0x50eb96('0x30')]===_0x50eb96('0x0')&&(_0x540ffd[_0x50eb96('0x1c')]=qs[_0x50eb96('0x1c')](_0x5ec74f[_0x50eb96('0x38')][_0x50eb96('0x1c')]),_0x540ffd[_0x50eb96('0x1e')]=qs['offset'](_0x5ec74f[_0x50eb96('0x38')][_0x50eb96('0x1e')])),_0x115edc[_0x50eb96('0x5')](_0x540ffd);})[_0x4eb2f3('0xb')](function(_0x4be8d7){if(_0x4be8d7)return _0x4be8d7?{'count':_0x55a3b7,'rows':_0x4be8d7}:null;})[_0x4eb2f3('0xb')](respondWithResult(_0x4c31a1,null))[_0x4eb2f3('0x2b')](handleError(_0x4c31a1,null));},exports[_0x2461fc('0x10')]=function(_0xc693a1,_0x5aaf14){const _0x418de6=_0x2461fc;let _0x423ae6={};const _0x368a30={};let _0x116885,_0x2f9009;return db['ServicenowConfiguration'][_0x418de6('0x25')]({'where':{'id':_0xc693a1[_0x418de6('0x29')]['id']}})['then'](handleEntityNotFound(_0x5aaf14,null))[_0x418de6('0xb')](function(_0x1ed14f){const _0x1f4c76=_0x418de6;if(_0x1ed14f)return _0x116885=_0x1ed14f,_0x368a30[_0x1f4c76('0x1d')]=_[_0x1f4c76('0x24')](db[_0x1f4c76('0x26')][_0x1f4c76('0x7')]),_0x368a30[_0x1f4c76('0x38')]=_[_0x1f4c76('0x24')](_0xc693a1[_0x1f4c76('0x38')]),_0x368a30[_0x1f4c76('0x17')]=_['intersection'](_0x368a30[_0x1f4c76('0x1d')],_0x368a30[_0x1f4c76('0x38')]),_0x423ae6[_0x1f4c76('0x34')]=_[_0x1f4c76('0x37')](_0x368a30[_0x1f4c76('0x1d')],qs[_0x1f4c76('0x2e')](_0xc693a1[_0x1f4c76('0x38')]['fields'])),_0x423ae6[_0x1f4c76('0x34')]=_0x423ae6[_0x1f4c76('0x34')]['length']?_0x423ae6[_0x1f4c76('0x34')]:_0x368a30[_0x1f4c76('0x1d')],_0x423ae6[_0x1f4c76('0x2')]=qs[_0x1f4c76('0x12')](_0xc693a1[_0x1f4c76('0x38')][_0x1f4c76('0x12')]),_0x423ae6[_0x1f4c76('0x1b')]=qs[_0x1f4c76('0x17')](_[_0x1f4c76('0x23')](_0xc693a1['query'],_0x368a30[_0x1f4c76('0x17')])),_0xc693a1[_0x1f4c76('0x38')]['filter']&&(_0x423ae6[_0x1f4c76('0x1b')]=_[_0x1f4c76('0x31')](_0x423ae6[_0x1f4c76('0x1b')],{[Op['or']]:_[_0x1f4c76('0x4')](_0x423ae6[_0x1f4c76('0x34')],function(_0x11a043){const _0x29e7e2=_0x1f4c76,_0x10823a={};return _0x10823a[_0x11a043]={[Op['like']]:'%'+_0xc693a1[_0x29e7e2('0x38')]['filter']+'%'},_0x10823a;})})),_0x423ae6=_['merge']({},_0x423ae6,_0xc693a1[_0x1f4c76('0x8')]),_0x116885[_0x1f4c76('0x10')](_0x423ae6);})[_0x418de6('0xb')](function(_0x55d168){const _0x210f1d=_0x418de6;if(_0x55d168)return _0x2f9009=_0x55d168['length'],typeof _0xc693a1['query'][_0x210f1d('0x30')]===_0x210f1d('0x0')&&(_0x423ae6[_0x210f1d('0x1c')]=qs[_0x210f1d('0x1c')](_0xc693a1[_0x210f1d('0x38')]['limit']),_0x423ae6[_0x210f1d('0x1e')]=qs[_0x210f1d('0x1e')](_0xc693a1['query'][_0x210f1d('0x1e')])),_0x116885[_0x210f1d('0x10')](_0x423ae6);})['then'](function(_0x1661f6){if(_0x1661f6)return _0x1661f6?{'count':_0x2f9009,'rows':_0x1661f6}:null;})['then'](respondWithResult(_0x5aaf14,null))[_0x418de6('0x2b')](handleError(_0x5aaf14,null));},exports[_0x2461fc('0x6')]=function(_0x1200af,_0x4d2a54){const _0x254ae8=_0x2461fc;let _0x3c7aab={};const _0x420942={};let _0x1e7db5,_0x138e8c;return db[_0x254ae8('0x35')]['findOne']({'where':{'id':_0x1200af[_0x254ae8('0x29')]['id']}})[_0x254ae8('0xb')](handleEntityNotFound(_0x4d2a54,null))[_0x254ae8('0xb')](function(_0x524736){const _0x18621e=_0x254ae8;if(_0x524736)return _0x1e7db5=_0x524736,_0x420942[_0x18621e('0x1d')]=_['keys'](db[_0x18621e('0x26')][_0x18621e('0x7')]),_0x420942[_0x18621e('0x38')]=_[_0x18621e('0x24')](_0x1200af[_0x18621e('0x38')]),_0x420942[_0x18621e('0x17')]=_['intersection'](_0x420942[_0x18621e('0x1d')],_0x420942['query']),_0x3c7aab[_0x18621e('0x34')]=_[_0x18621e('0x37')](_0x420942[_0x18621e('0x1d')],qs[_0x18621e('0x2e')](_0x1200af[_0x18621e('0x38')][_0x18621e('0x2e')])),_0x3c7aab[_0x18621e('0x34')]=_0x3c7aab[_0x18621e('0x34')][_0x18621e('0x18')]?_0x3c7aab[_0x18621e('0x34')]:_0x420942['model'],_0x3c7aab[_0x18621e('0x2')]=qs[_0x18621e('0x12')](_0x1200af['query'][_0x18621e('0x12')]),_0x3c7aab[_0x18621e('0x1b')]=qs[_0x18621e('0x17')](_['pick'](_0x1200af['query'],_0x420942[_0x18621e('0x17')])),_0x1200af[_0x18621e('0x38')][_0x18621e('0x1')]&&(_0x3c7aab[_0x18621e('0x1b')]=_[_0x18621e('0x31')](_0x3c7aab[_0x18621e('0x1b')],{[Op['or']]:_[_0x18621e('0x4')](_0x3c7aab[_0x18621e('0x34')],function(_0x442a11){const _0x1ba731=_0x18621e,_0x4ba945={};return _0x4ba945[_0x442a11]={[Op['like']]:'%'+_0x1200af['query'][_0x1ba731('0x1')]+'%'},_0x4ba945;})})),_0x3c7aab=_[_0x18621e('0x31')]({},_0x3c7aab,_0x1200af[_0x18621e('0x8')]),_0x1e7db5['getDescriptions'](_0x3c7aab);})[_0x254ae8('0xb')](function(_0x4ca7ed){const _0x2b9c72=_0x254ae8;if(_0x4ca7ed)return _0x138e8c=_0x4ca7ed[_0x2b9c72('0x18')],typeof _0x1200af[_0x2b9c72('0x38')][_0x2b9c72('0x30')]==='undefined'&&(_0x3c7aab['limit']=qs['limit'](_0x1200af[_0x2b9c72('0x38')][_0x2b9c72('0x1c')]),_0x3c7aab[_0x2b9c72('0x1e')]=qs['offset'](_0x1200af[_0x2b9c72('0x38')][_0x2b9c72('0x1e')])),_0x1e7db5['getDescriptions'](_0x3c7aab);})[_0x254ae8('0xb')](function(_0x3ad1c3){if(_0x3ad1c3)return _0x3ad1c3?{'count':_0x138e8c,'rows':_0x3ad1c3}:null;})[_0x254ae8('0xb')](respondWithResult(_0x4d2a54,null))[_0x254ae8('0x2b')](handleError(_0x4d2a54,null));}; \ No newline at end of file diff --git a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js index 8808b26..d3a4abc 100644 --- a/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js +++ b/server/api/intServicenowConfiguration/intServicenowConfiguration.model.js @@ -1 +1 @@ -const a300_0xd043=['ServicenowConfiguration','exports','int_servicenow_configurations'];(function(_0x571d02,_0xd04325){const _0x203259=function(_0x1dc2f8){while(--_0x1dc2f8){_0x571d02['push'](_0x571d02['shift']());}};_0x203259(++_0xd04325);}(a300_0xd043,0x1b9));const a300_0x2032=function(_0x571d02,_0xd04325){_0x571d02=_0x571d02-0x0;let _0x203259=a300_0xd043[_0x571d02];return _0x203259;};const _0x501c9a=a300_0x2032;'use strict';const attributes=require('./intServicenowConfiguration.attributes');module[_0x501c9a('0x1')]=function(_0x1dc2f8){const _0xfc5303=_0x501c9a,_0x9de14a=_0x1dc2f8['define'](_0xfc5303('0x0'),attributes,{'tableName':_0xfc5303('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x9de14a;}; \ No newline at end of file +const a300_0x2ed1=['int_servicenow_configurations','ServicenowConfiguration'];(function(_0x38f01e,_0x2ed1e9){const _0x38beec=function(_0x34c396){while(--_0x34c396){_0x38f01e['push'](_0x38f01e['shift']());}};_0x38beec(++_0x2ed1e9);}(a300_0x2ed1,0xad));const a300_0x38be=function(_0x38f01e,_0x2ed1e9){_0x38f01e=_0x38f01e-0x0;let _0x38beec=a300_0x2ed1[_0x38f01e];return _0x38beec;};'use strict';const attributes=require('./intServicenowConfiguration.attributes');module['exports']=function(_0x34c396){const _0x22e94d=a300_0x38be,_0x6d4b09=_0x34c396['define'](_0x22e94d('0x0'),attributes,{'tableName':_0x22e94d('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x6d4b09;}; \ No newline at end of file diff --git a/server/api/intServicenowField/index.js b/server/api/intServicenowField/index.js index e5939f8..edf0aac 100644 --- a/server/api/intServicenowField/index.js +++ b/server/api/intServicenowField/index.js @@ -1 +1 @@ -const a301_0x6e58=['post','exports','./intServicenowField.controller','index','put','/:id','get','isAuthenticated','show','destroy','express'];(function(_0x2d3a2c,_0x6e58c0){const _0x3a9bf2=function(_0x23820f){while(--_0x23820f){_0x2d3a2c['push'](_0x2d3a2c['shift']());}};_0x3a9bf2(++_0x6e58c0);}(a301_0x6e58,0xc4));const a301_0x3a9b=function(_0x2d3a2c,_0x6e58c0){_0x2d3a2c=_0x2d3a2c-0x0;let _0x3a9bf2=a301_0x6e58[_0x2d3a2c];return _0x3a9bf2;};const _0xfe29e9=a301_0x3a9b;'use strict';const express=require(_0xfe29e9('0x1')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0xfe29e9('0x4'));router[_0xfe29e9('0x8')]('/',auth['isAuthenticated'](),controller[_0xfe29e9('0x5')]),router[_0xfe29e9('0x8')](_0xfe29e9('0x7'),auth['isAuthenticated'](),controller[_0xfe29e9('0xa')]),router[_0xfe29e9('0x2')]('/',auth[_0xfe29e9('0x9')](),controller['create']),router[_0xfe29e9('0x6')](_0xfe29e9('0x7'),auth['isAuthenticated'](),controller['update']),router['delete'](_0xfe29e9('0x7'),auth[_0xfe29e9('0x9')](),controller[_0xfe29e9('0x0')]),module[_0xfe29e9('0x3')]=router; \ No newline at end of file +const a301_0x1cba=['get','./intServicenowField.controller','/:id','exports','create','post','isAuthenticated','index','put','../../components/auth/service','delete'];(function(_0x56a323,_0x1cba20){const _0x513a7e=function(_0x4f2e2e){while(--_0x4f2e2e){_0x56a323['push'](_0x56a323['shift']());}};_0x513a7e(++_0x1cba20);}(a301_0x1cba,0x1f4));const a301_0x513a=function(_0x56a323,_0x1cba20){_0x56a323=_0x56a323-0x0;let _0x513a7e=a301_0x1cba[_0x56a323];return _0x513a7e;};const _0x45211d=a301_0x513a;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x45211d('0x4')),controller=require(_0x45211d('0x7'));router['get']('/',auth[_0x45211d('0x1')](),controller[_0x45211d('0x2')]),router[_0x45211d('0x6')](_0x45211d('0x8'),auth[_0x45211d('0x1')](),controller['show']),router[_0x45211d('0x0')]('/',auth[_0x45211d('0x1')](),controller[_0x45211d('0xa')]),router[_0x45211d('0x3')](_0x45211d('0x8'),auth['isAuthenticated'](),controller['update']),router[_0x45211d('0x5')](_0x45211d('0x8'),auth[_0x45211d('0x1')](),controller['destroy']),module[_0x45211d('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 56f9442..b4a6212 100644 --- a/server/api/intServicenowField/intServicenowField.attributes.js +++ b/server/api/intServicenowField/intServicenowField.attributes.js @@ -1 +1 @@ -const a302_0x48a8=['BOOLEAN','ENUM','string','variable','customVariable','STRING'];(function(_0x1cd3f7,_0x48a856){const _0xada110=function(_0x4a58f7){while(--_0x4a58f7){_0x1cd3f7['push'](_0x1cd3f7['shift']());}};_0xada110(++_0x48a856);}(a302_0x48a8,0xad));const a302_0xada1=function(_0x1cd3f7,_0x48a856){_0x1cd3f7=_0x1cd3f7-0x0;let _0xada110=a302_0x48a8[_0x1cd3f7];return _0xada110;};const _0xf654e1=a302_0xada1;'use strict';const Sequelize=require('sequelize');module['exports']={'type':{'type':Sequelize[_0xf654e1('0x2')](_0xf654e1('0x3'),_0xf654e1('0x4'),'customVariable','keyValue'),'defaultValue':_0xf654e1('0x3')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0xf654e1('0x0')]},'keyType':{'type':Sequelize[_0xf654e1('0x2')](_0xf654e1('0x3'),_0xf654e1('0x4'),_0xf654e1('0x5'))},'keyContent':{'type':Sequelize[_0xf654e1('0x0')]},'idField':{'type':Sequelize[_0xf654e1('0x0')]},'nameField':{'type':Sequelize[_0xf654e1('0x0')]},'customField':{'type':Sequelize[_0xf654e1('0x1')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0xf654e1('0x0')]}}; \ No newline at end of file +const a302_0xf936=['ENUM','BOOLEAN','customVariable','exports','variable','sequelize','STRING'];(function(_0x187c22,_0xf936a5){const _0x2bd2f0=function(_0x14bfa8){while(--_0x14bfa8){_0x187c22['push'](_0x187c22['shift']());}};_0x2bd2f0(++_0xf936a5);}(a302_0xf936,0xae));const a302_0x2bd2=function(_0x187c22,_0xf936a5){_0x187c22=_0x187c22-0x0;let _0x2bd2f0=a302_0xf936[_0x187c22];return _0x2bd2f0;};const _0x115698=a302_0x2bd2;'use strict';const Sequelize=require(_0x115698('0x6'));module[_0x115698('0x4')]={'type':{'type':Sequelize['ENUM']('string',_0x115698('0x5'),_0x115698('0x3'),'keyValue'),'defaultValue':'string'},'content':{'type':Sequelize[_0x115698('0x0')]},'key':{'type':Sequelize[_0x115698('0x0')]},'keyType':{'type':Sequelize[_0x115698('0x1')]('string',_0x115698('0x5'),_0x115698('0x3'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x115698('0x0')]},'customField':{'type':Sequelize[_0x115698('0x2')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x115698('0x0')]}}; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.controller.js b/server/api/intServicenowField/intServicenowField.controller.js index a9f6aa7..45bbb5e 100644 --- a/server/api/intServicenowField/intServicenowField.controller.js +++ b/server/api/intServicenowField/intServicenowField.controller.js @@ -1 +1 @@ -const a303_0x2ac0=['query','stack','rows','json','merge','sendStatus','intersection','set','attributes','findOne','create','ServicenowField','name','status','then','count','like','include','body','keys','options','../../config/logger','params','error','model','filters','../../components/parsers/qs','where','order','map','limit','destroy','VIRTUAL','nolimit','key','type','index','length','fields','sequelize','filter','includeAll','undefined','pick','update','lodash','catch','offset'];(function(_0x6fda23,_0x2ac051){const _0x441bc6=function(_0x10d725){while(--_0x10d725){_0x6fda23['push'](_0x6fda23['shift']());}};_0x441bc6(++_0x2ac051);}(a303_0x2ac0,0x1c2));const a303_0x441b=function(_0x6fda23,_0x2ac051){_0x6fda23=_0x6fda23-0x0;let _0x441bc6=a303_0x2ac0[_0x6fda23];return _0x441bc6;};const _0x594820=a303_0x441b;'use strict';const _=require(_0x594820('0x1b')),qs=require(_0x594820('0x8')),logger=require(_0x594820('0x3'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x594820('0x15'));function respondWithResult(_0x10d725,_0xa72bd9){return _0xa72bd9=_0xa72bd9||0xc8,function(_0x4a7c16){const _0x119a3d=a303_0x441b;if(_0x4a7c16)return _0x10d725['status'](_0xa72bd9)[_0x119a3d('0x21')](_0x4a7c16);};}function respondWithFilteredResult(_0x54b226,_0xc5e7){return function(_0x338f4c){const _0xf593a8=a303_0x441b;if(_0x338f4c){const _0x1bede3=_0x338f4c[_0xf593a8('0x2d')],_0x4c78cf=_0xc5e7['offset'];let _0x2771da=_0xc5e7[_0xf593a8('0x1d')]+_0xc5e7[_0xf593a8('0xc')],_0x1d2478;return _0x2771da>=_0x1bede3?(_0x2771da=_0x1bede3,_0x1d2478=0xc8):_0x1d2478=0xce,_0x54b226['status'](_0x1d2478),_0x54b226[_0xf593a8('0x25')]('Content-Range',_0x4c78cf+'-'+_0x2771da+'/'+_0x1bede3)[_0xf593a8('0x21')](_0x338f4c);}return null;};}function saveUpdates(_0x27b5a7){return function(_0x28305e){const _0x5e914b=a303_0x441b;if(_0x28305e)return _0x28305e[_0x5e914b('0x1a')](_0x27b5a7)[_0x5e914b('0x2c')](function(_0x4bef57){return _0x4bef57;});return null;};}function removeEntity(_0x1ca962){return function(_0x4a8522){const _0x271e7b=a303_0x441b;if(_0x4a8522)return _0x4a8522[_0x271e7b('0xd')]()[_0x271e7b('0x2c')](function(){const _0x198dd9=_0x271e7b;_0x1ca962[_0x198dd9('0x2b')](0xcc)['end']();});};}function handleEntityNotFound(_0x515196){return function(_0xdea17b){const _0x3fea15=a303_0x441b;return!_0xdea17b&&_0x515196[_0x3fea15('0x23')](0x194),_0xdea17b;};}function handleError(_0x22928c,_0x16e998){return _0x16e998=_0x16e998||0x1f4,function(_0x502df0){const _0x4c30cb=a303_0x441b;logger[_0x4c30cb('0x5')](_0x502df0[_0x4c30cb('0x1f')]),_0x502df0[_0x4c30cb('0x2a')]&&delete _0x502df0[_0x4c30cb('0x2a')],_0x22928c[_0x4c30cb('0x2b')](_0x16e998)['send'](_0x502df0);};}exports[_0x594820('0x12')]=function(_0x44da9c,_0x17ae0f){const _0x4af488=_0x594820;let _0x29a3f9={};const _0x4c255b={},_0x60e286={'count':0x0,'rows':[]},_0x17ab44=_[_0x4af488('0xb')](db[_0x4af488('0x29')]['rawAttributes'],function(_0x8afc14){const _0x16b656=_0x4af488;return{'name':_0x8afc14['fieldName'],'type':_0x8afc14[_0x16b656('0x11')][_0x16b656('0x10')]};});_0x4c255b[_0x4af488('0x6')]=_[_0x4af488('0xb')](_0x17ab44,'name'),_0x4c255b['query']=_[_0x4af488('0x1')](_0x44da9c[_0x4af488('0x1e')]),_0x4c255b[_0x4af488('0x7')]=_[_0x4af488('0x24')](_0x4c255b[_0x4af488('0x6')],_0x4c255b[_0x4af488('0x1e')]),_0x29a3f9['attributes']=_['intersection'](_0x4c255b[_0x4af488('0x6')],qs['fields'](_0x44da9c['query']['fields'])),_0x29a3f9[_0x4af488('0x26')]=_0x29a3f9[_0x4af488('0x26')][_0x4af488('0x13')]?_0x29a3f9[_0x4af488('0x26')]:_0x4c255b[_0x4af488('0x6')];typeof _0x44da9c[_0x4af488('0x1e')][_0x4af488('0xf')]===_0x4af488('0x18')&&(_0x29a3f9['limit']=qs[_0x4af488('0xc')](_0x44da9c[_0x4af488('0x1e')]['limit']),_0x29a3f9[_0x4af488('0x1d')]=qs['offset'](_0x44da9c['query'][_0x4af488('0x1d')]));_0x29a3f9[_0x4af488('0xa')]=qs['sort'](_0x44da9c['query']['sort']),_0x29a3f9[_0x4af488('0x9')]=qs[_0x4af488('0x7')](_[_0x4af488('0x19')](_0x44da9c[_0x4af488('0x1e')],_0x4c255b['filters']),_0x17ab44);_0x44da9c['query'][_0x4af488('0x16')]&&(_0x29a3f9[_0x4af488('0x9')]=_['merge'](_0x29a3f9[_0x4af488('0x9')],{[Op['or']]:_[_0x4af488('0xb')](_0x17ab44,function(_0x17f9ff){const _0x78dd31=_0x4af488;if(_0x17f9ff[_0x78dd31('0x11')]!==_0x78dd31('0xe')){const _0x35d045={};return _0x35d045[_0x17f9ff[_0x78dd31('0x2a')]]={[Op[_0x78dd31('0x2e')]]:'%'+_0x44da9c['query']['filter']+'%'},_0x35d045;}})}));_0x29a3f9=_['merge']({},_0x29a3f9,_0x44da9c[_0x4af488('0x2')]);const _0x36211e={'where':_0x29a3f9[_0x4af488('0x9')]};return db[_0x4af488('0x29')][_0x4af488('0x2d')](_0x36211e)[_0x4af488('0x2c')](function(_0x3d19af){const _0x5b5e11=_0x4af488;return _0x60e286[_0x5b5e11('0x2d')]=_0x3d19af,_0x44da9c[_0x5b5e11('0x1e')]['includeAll']&&(_0x29a3f9[_0x5b5e11('0x2f')]=[{'all':!![]}]),db[_0x5b5e11('0x29')]['findAll'](_0x29a3f9);})[_0x4af488('0x2c')](function(_0x8d76e9){const _0xd806fa=_0x4af488;return _0x60e286[_0xd806fa('0x20')]=_0x8d76e9,_0x60e286;})[_0x4af488('0x2c')](respondWithFilteredResult(_0x17ae0f,_0x29a3f9))[_0x4af488('0x1c')](handleError(_0x17ae0f,null));},exports['show']=function(_0x492440,_0x52736a){const _0x38030b=_0x594820;let _0x37a141={'raw':!![],'where':{'id':_0x492440[_0x38030b('0x4')]['id']}};const _0x61ca84={};return _0x61ca84['model']=_['keys'](db[_0x38030b('0x29')]['rawAttributes']),_0x61ca84[_0x38030b('0x1e')]=_['keys'](_0x492440['query']),_0x61ca84['filters']=_[_0x38030b('0x24')](_0x61ca84[_0x38030b('0x6')],_0x61ca84[_0x38030b('0x1e')]),_0x37a141[_0x38030b('0x26')]=_[_0x38030b('0x24')](_0x61ca84[_0x38030b('0x6')],qs[_0x38030b('0x14')](_0x492440[_0x38030b('0x1e')][_0x38030b('0x14')])),_0x37a141[_0x38030b('0x26')]=_0x37a141['attributes'][_0x38030b('0x13')]?_0x37a141[_0x38030b('0x26')]:_0x61ca84[_0x38030b('0x6')],_0x492440['query'][_0x38030b('0x17')]&&(_0x37a141[_0x38030b('0x2f')]=[{'all':!![]}]),_0x37a141=_[_0x38030b('0x22')]({},_0x37a141,_0x492440['options']),db['ServicenowField'][_0x38030b('0x27')](_0x37a141)[_0x38030b('0x2c')](handleEntityNotFound(_0x52736a,null))[_0x38030b('0x2c')](respondWithResult(_0x52736a,null))[_0x38030b('0x1c')](handleError(_0x52736a,null));},exports[_0x594820('0x28')]=function(_0x545e58,_0x4d1450){const _0x49974f=_0x594820;return db[_0x49974f('0x29')][_0x49974f('0x28')](_0x545e58[_0x49974f('0x0')],{})[_0x49974f('0x2c')](respondWithResult(_0x4d1450,0xc9))[_0x49974f('0x1c')](handleError(_0x4d1450,null));},exports[_0x594820('0x1a')]=function(_0x382b99,_0x545f5d){const _0x1804be=_0x594820;return _0x382b99[_0x1804be('0x0')]['id']&&delete _0x382b99[_0x1804be('0x0')]['id'],db[_0x1804be('0x29')][_0x1804be('0x27')]({'where':{'id':_0x382b99[_0x1804be('0x4')]['id']}})[_0x1804be('0x2c')](handleEntityNotFound(_0x545f5d,null))[_0x1804be('0x2c')](saveUpdates(_0x382b99[_0x1804be('0x0')],null))['then'](respondWithResult(_0x545f5d,null))[_0x1804be('0x1c')](handleError(_0x545f5d,null));},exports[_0x594820('0xd')]=function(_0x414e9c,_0x31affd){const _0x49ba88=_0x594820;return db['ServicenowField'][_0x49ba88('0x27')]({'where':{'id':_0x414e9c[_0x49ba88('0x4')]['id']}})[_0x49ba88('0x2c')](handleEntityNotFound(_0x31affd,null))[_0x49ba88('0x2c')](removeEntity(_0x31affd,null))[_0x49ba88('0x1c')](handleError(_0x31affd,null));}; \ No newline at end of file +const a303_0xd4db=['index','options','then','../../config/logger','end','catch','keys','where','findAll','json','include','merge','VIRTUAL','create','sort','model','type','limit','fieldName','length','filter','body','attributes','query','show','set','ServicenowField','offset','count','lodash','rows','name','sequelize','findOne','params','order','status','map','filters','update','nolimit','stack','intersection','undefined','../../components/parsers/qs','../../mysqldb','send','includeAll','destroy','fields','key'];(function(_0x704f6a,_0xd4dbcd){const _0x456597=function(_0x624f33){while(--_0x624f33){_0x704f6a['push'](_0x704f6a['shift']());}};_0x456597(++_0xd4dbcd);}(a303_0xd4db,0x109));const a303_0x4565=function(_0x704f6a,_0xd4dbcd){_0x704f6a=_0x704f6a-0x0;let _0x456597=a303_0xd4db[_0x704f6a];return _0x456597;};const _0x861a9f=a303_0x4565;'use strict';const _=require(_0x861a9f('0x13')),qs=require(_0x861a9f('0x22')),logger=require(_0x861a9f('0x2c'))('api'),db=require(_0x861a9f('0x23'))['db'],{Op}=require(_0x861a9f('0x16'));function respondWithResult(_0x624f33,_0xc8c7c5){return _0xc8c7c5=_0xc8c7c5||0xc8,function(_0x248e97){const _0x3bc2de=a303_0x4565;if(_0x248e97)return _0x624f33['status'](_0xc8c7c5)[_0x3bc2de('0x32')](_0x248e97);};}function respondWithFilteredResult(_0x3ac873,_0x5df9a5){return function(_0x5643c0){const _0x1f696a=a303_0x4565;if(_0x5643c0){const _0x395569=_0x5643c0[_0x1f696a('0x12')],_0x172c01=_0x5df9a5[_0x1f696a('0x11')];let _0xae56a4=_0x5df9a5[_0x1f696a('0x11')]+_0x5df9a5[_0x1f696a('0x7')],_0x303056;return _0xae56a4>=_0x395569?(_0xae56a4=_0x395569,_0x303056=0xc8):_0x303056=0xce,_0x3ac873['status'](_0x303056),_0x3ac873[_0x1f696a('0xf')]('Content-Range',_0x172c01+'-'+_0xae56a4+'/'+_0x395569)['json'](_0x5643c0);}return null;};}function saveUpdates(_0x4c4718){return function(_0xf16ee8){const _0x225d50=a303_0x4565;if(_0xf16ee8)return _0xf16ee8['update'](_0x4c4718)[_0x225d50('0x2b')](function(_0x191000){return _0x191000;});return null;};}function removeEntity(_0x2244bf){return function(_0x126bfc){const _0x4b7911=a303_0x4565;if(_0x126bfc)return _0x126bfc[_0x4b7911('0x26')]()[_0x4b7911('0x2b')](function(){const _0x1e0cce=_0x4b7911;_0x2244bf[_0x1e0cce('0x1a')](0xcc)[_0x1e0cce('0x2d')]();});};}function handleEntityNotFound(_0x20ae1f){return function(_0x3b19aa){return!_0x3b19aa&&_0x20ae1f['sendStatus'](0x194),_0x3b19aa;};}function handleError(_0x5368de,_0x2d06a2){return _0x2d06a2=_0x2d06a2||0x1f4,function(_0x54fc8a){const _0x2d2c21=a303_0x4565;logger['error'](_0x54fc8a[_0x2d2c21('0x1f')]),_0x54fc8a[_0x2d2c21('0x15')]&&delete _0x54fc8a[_0x2d2c21('0x15')],_0x5368de[_0x2d2c21('0x1a')](_0x2d06a2)[_0x2d2c21('0x24')](_0x54fc8a);};}exports[_0x861a9f('0x29')]=function(_0x1e4db7,_0x227288){const _0xd334d4=_0x861a9f;let _0x564fb5={};const _0x24b08a={},_0x23c185={'count':0x0,'rows':[]},_0x385fed=_[_0xd334d4('0x1b')](db[_0xd334d4('0x10')]['rawAttributes'],function(_0x2cf41e){const _0x5ac63c=_0xd334d4;return{'name':_0x2cf41e[_0x5ac63c('0x8')],'type':_0x2cf41e[_0x5ac63c('0x6')][_0x5ac63c('0x28')]};});_0x24b08a[_0xd334d4('0x5')]=_['map'](_0x385fed,_0xd334d4('0x15')),_0x24b08a[_0xd334d4('0xd')]=_[_0xd334d4('0x2f')](_0x1e4db7['query']),_0x24b08a[_0xd334d4('0x1c')]=_['intersection'](_0x24b08a[_0xd334d4('0x5')],_0x24b08a['query']),_0x564fb5[_0xd334d4('0xc')]=_['intersection'](_0x24b08a[_0xd334d4('0x5')],qs['fields'](_0x1e4db7[_0xd334d4('0xd')][_0xd334d4('0x27')])),_0x564fb5[_0xd334d4('0xc')]=_0x564fb5[_0xd334d4('0xc')][_0xd334d4('0x9')]?_0x564fb5[_0xd334d4('0xc')]:_0x24b08a['model'];typeof _0x1e4db7[_0xd334d4('0xd')][_0xd334d4('0x1e')]===_0xd334d4('0x21')&&(_0x564fb5[_0xd334d4('0x7')]=qs[_0xd334d4('0x7')](_0x1e4db7['query'][_0xd334d4('0x7')]),_0x564fb5[_0xd334d4('0x11')]=qs[_0xd334d4('0x11')](_0x1e4db7[_0xd334d4('0xd')][_0xd334d4('0x11')]));_0x564fb5[_0xd334d4('0x19')]=qs[_0xd334d4('0x4')](_0x1e4db7['query'][_0xd334d4('0x4')]),_0x564fb5[_0xd334d4('0x30')]=qs[_0xd334d4('0x1c')](_['pick'](_0x1e4db7[_0xd334d4('0xd')],_0x24b08a['filters']),_0x385fed);_0x1e4db7[_0xd334d4('0xd')]['filter']&&(_0x564fb5[_0xd334d4('0x30')]=_['merge'](_0x564fb5[_0xd334d4('0x30')],{[Op['or']]:_[_0xd334d4('0x1b')](_0x385fed,function(_0x41bc7a){const _0x4da26e=_0xd334d4;if(_0x41bc7a[_0x4da26e('0x6')]!==_0x4da26e('0x2')){const _0x1a0ae0={};return _0x1a0ae0[_0x41bc7a[_0x4da26e('0x15')]]={[Op['like']]:'%'+_0x1e4db7[_0x4da26e('0xd')][_0x4da26e('0xa')]+'%'},_0x1a0ae0;}})}));_0x564fb5=_[_0xd334d4('0x1')]({},_0x564fb5,_0x1e4db7[_0xd334d4('0x2a')]);const _0xa09b6a={'where':_0x564fb5[_0xd334d4('0x30')]};return db['ServicenowField'][_0xd334d4('0x12')](_0xa09b6a)[_0xd334d4('0x2b')](function(_0x148b0c){const _0x56550a=_0xd334d4;return _0x23c185[_0x56550a('0x12')]=_0x148b0c,_0x1e4db7[_0x56550a('0xd')][_0x56550a('0x25')]&&(_0x564fb5[_0x56550a('0x0')]=[{'all':!![]}]),db[_0x56550a('0x10')][_0x56550a('0x31')](_0x564fb5);})[_0xd334d4('0x2b')](function(_0x1a063e){const _0x170692=_0xd334d4;return _0x23c185[_0x170692('0x14')]=_0x1a063e,_0x23c185;})[_0xd334d4('0x2b')](respondWithFilteredResult(_0x227288,_0x564fb5))[_0xd334d4('0x2e')](handleError(_0x227288,null));},exports[_0x861a9f('0xe')]=function(_0x38eaab,_0xc888a5){const _0x2fe558=_0x861a9f;let _0x46a466={'raw':!![],'where':{'id':_0x38eaab['params']['id']}};const _0x3bb173={};return _0x3bb173['model']=_[_0x2fe558('0x2f')](db[_0x2fe558('0x10')]['rawAttributes']),_0x3bb173[_0x2fe558('0xd')]=_[_0x2fe558('0x2f')](_0x38eaab['query']),_0x3bb173['filters']=_[_0x2fe558('0x20')](_0x3bb173['model'],_0x3bb173[_0x2fe558('0xd')]),_0x46a466[_0x2fe558('0xc')]=_[_0x2fe558('0x20')](_0x3bb173[_0x2fe558('0x5')],qs[_0x2fe558('0x27')](_0x38eaab[_0x2fe558('0xd')][_0x2fe558('0x27')])),_0x46a466[_0x2fe558('0xc')]=_0x46a466[_0x2fe558('0xc')]['length']?_0x46a466['attributes']:_0x3bb173[_0x2fe558('0x5')],_0x38eaab['query'][_0x2fe558('0x25')]&&(_0x46a466[_0x2fe558('0x0')]=[{'all':!![]}]),_0x46a466=_['merge']({},_0x46a466,_0x38eaab[_0x2fe558('0x2a')]),db['ServicenowField']['findOne'](_0x46a466)['then'](handleEntityNotFound(_0xc888a5,null))['then'](respondWithResult(_0xc888a5,null))[_0x2fe558('0x2e')](handleError(_0xc888a5,null));},exports[_0x861a9f('0x3')]=function(_0x202950,_0x17d021){const _0x16ec5b=_0x861a9f;return db[_0x16ec5b('0x10')][_0x16ec5b('0x3')](_0x202950['body'],{})[_0x16ec5b('0x2b')](respondWithResult(_0x17d021,0xc9))[_0x16ec5b('0x2e')](handleError(_0x17d021,null));},exports[_0x861a9f('0x1d')]=function(_0x1316a0,_0x2150b5){const _0x371ae0=_0x861a9f;return _0x1316a0[_0x371ae0('0xb')]['id']&&delete _0x1316a0['body']['id'],db[_0x371ae0('0x10')][_0x371ae0('0x17')]({'where':{'id':_0x1316a0[_0x371ae0('0x18')]['id']}})[_0x371ae0('0x2b')](handleEntityNotFound(_0x2150b5,null))['then'](saveUpdates(_0x1316a0['body'],null))['then'](respondWithResult(_0x2150b5,null))[_0x371ae0('0x2e')](handleError(_0x2150b5,null));},exports['destroy']=function(_0x338888,_0xc6d5b2){const _0x32e7db=_0x861a9f;return db[_0x32e7db('0x10')][_0x32e7db('0x17')]({'where':{'id':_0x338888[_0x32e7db('0x18')]['id']}})[_0x32e7db('0x2b')](handleEntityNotFound(_0xc6d5b2,null))[_0x32e7db('0x2b')](removeEntity(_0xc6d5b2,null))['catch'](handleError(_0xc6d5b2,null));}; \ No newline at end of file diff --git a/server/api/intServicenowField/intServicenowField.model.js b/server/api/intServicenowField/intServicenowField.model.js index 370addc..bf2721f 100644 --- a/server/api/intServicenowField/intServicenowField.model.js +++ b/server/api/intServicenowField/intServicenowField.model.js @@ -1 +1 @@ -const a304_0x1478=['FieldId','int_servicenow_fields','define','exports','servicenow_unique_index','./intServicenowField.attributes','ServicenowField'];(function(_0x101be8,_0x14788e){const _0x5d8505=function(_0x375fb0){while(--_0x375fb0){_0x101be8['push'](_0x101be8['shift']());}};_0x5d8505(++_0x14788e);}(a304_0x1478,0xff));const a304_0x5d85=function(_0x101be8,_0x14788e){_0x101be8=_0x101be8-0x0;let _0x5d8505=a304_0x1478[_0x101be8];return _0x5d8505;};const _0x177bb0=a304_0x5d85;'use strict';const attributes=require(_0x177bb0('0x2'));module[_0x177bb0('0x0')]=function(_0x375fb0){const _0x2c3d0d=_0x177bb0,_0x1b9ceb=_0x375fb0[_0x2c3d0d('0x6')](_0x2c3d0d('0x3'),attributes,{'tableName':_0x2c3d0d('0x5'),'paranoid':![],'indexes':[{'name':_0x2c3d0d('0x1'),'fields':['idField',_0x2c3d0d('0x4')],'unique':!![]}],'timestamps':!![]});return _0x1b9ceb;}; \ No newline at end of file +const a304_0x4f9f=['define','idField','FieldId'];(function(_0xcf4e2,_0x4f9fac){const _0x18a221=function(_0x564ec9){while(--_0x564ec9){_0xcf4e2['push'](_0xcf4e2['shift']());}};_0x18a221(++_0x4f9fac);}(a304_0x4f9f,0x1d0));const a304_0x18a2=function(_0xcf4e2,_0x4f9fac){_0xcf4e2=_0xcf4e2-0x0;let _0x18a221=a304_0x4f9f[_0xcf4e2];return _0x18a221;};'use strict';const attributes=require('./intServicenowField.attributes');module['exports']=function(_0x564ec9){const _0x5f12fe=a304_0x18a2,_0x2aa5eb=_0x564ec9[_0x5f12fe('0x1')]('ServicenowField',attributes,{'tableName':'int_servicenow_fields','paranoid':![],'indexes':[{'name':'servicenow_unique_index','fields':[_0x5f12fe('0x2'),_0x5f12fe('0x0')],'unique':!![]}],'timestamps':!![]});return _0x2aa5eb;}; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/index.js b/server/api/intSugarcrmAccount/index.js index 3aa0a14..f195637 100644 --- a/server/api/intSugarcrmAccount/index.js +++ b/server/api/intSugarcrmAccount/index.js @@ -1 +1 @@ -const a305_0x3420=['getConfigurations','update','get','post','../../components/auth/service','Router','show','express','/:id','/:id/fields','delete','addConfiguration','getFields','index','isAuthenticated','/:id/configurations','exports'];(function(_0x5b9eb7,_0x3420da){const _0x48fdb8=function(_0x32f4f1){while(--_0x32f4f1){_0x5b9eb7['push'](_0x5b9eb7['shift']());}};_0x48fdb8(++_0x3420da);}(a305_0x3420,0x1e4));const a305_0x48fd=function(_0x5b9eb7,_0x3420da){_0x5b9eb7=_0x5b9eb7-0x0;let _0x48fdb8=a305_0x3420[_0x5b9eb7];return _0x48fdb8;};const _0x1fcd41=a305_0x48fd;'use strict';const express=require(_0x1fcd41('0x10')),router=express[_0x1fcd41('0xe')](),auth=require(_0x1fcd41('0xd')),controller=require('./intSugarcrmAccount.controller');router[_0x1fcd41('0xb')]('/',auth[_0x1fcd41('0x6')](),controller[_0x1fcd41('0x5')]),router[_0x1fcd41('0xb')]('/:id',auth[_0x1fcd41('0x6')](),controller[_0x1fcd41('0xf')]),router[_0x1fcd41('0xb')](_0x1fcd41('0x7'),auth[_0x1fcd41('0x6')](),controller[_0x1fcd41('0x9')]),router[_0x1fcd41('0xb')](_0x1fcd41('0x1'),auth[_0x1fcd41('0x6')](),controller[_0x1fcd41('0x4')]),router[_0x1fcd41('0xc')]('/',auth[_0x1fcd41('0x6')](),controller['create']),router[_0x1fcd41('0xc')]('/:id/configurations',auth['isAuthenticated'](),controller[_0x1fcd41('0x3')]),router['put'](_0x1fcd41('0x0'),auth['isAuthenticated'](),controller[_0x1fcd41('0xa')]),router[_0x1fcd41('0x2')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x1fcd41('0x8')]=router; \ No newline at end of file +const a305_0x40e5=['getFields','put','show','delete','/:id','../../components/auth/service','exports','create','isAuthenticated','get','/:id/configurations','Router','update','post','index'];(function(_0x2c7c11,_0x40e506){const _0x4d2b10=function(_0x57d5f5){while(--_0x57d5f5){_0x2c7c11['push'](_0x2c7c11['shift']());}};_0x4d2b10(++_0x40e506);}(a305_0x40e5,0x7e));const a305_0x4d2b=function(_0x2c7c11,_0x40e506){_0x2c7c11=_0x2c7c11-0x0;let _0x4d2b10=a305_0x40e5[_0x2c7c11];return _0x4d2b10;};const _0x239c3c=a305_0x4d2b;'use strict';const express=require('express'),router=express[_0x239c3c('0x5')](),auth=require(_0x239c3c('0xe')),controller=require('./intSugarcrmAccount.controller');router[_0x239c3c('0x3')]('/',auth[_0x239c3c('0x2')](),controller[_0x239c3c('0x8')]),router[_0x239c3c('0x3')]('/:id',auth[_0x239c3c('0x2')](),controller[_0x239c3c('0xb')]),router[_0x239c3c('0x3')](_0x239c3c('0x4'),auth[_0x239c3c('0x2')](),controller['getConfigurations']),router[_0x239c3c('0x3')]('/:id/fields',auth[_0x239c3c('0x2')](),controller[_0x239c3c('0x9')]),router[_0x239c3c('0x7')]('/',auth[_0x239c3c('0x2')](),controller[_0x239c3c('0x1')]),router[_0x239c3c('0x7')](_0x239c3c('0x4'),auth[_0x239c3c('0x2')](),controller['addConfiguration']),router[_0x239c3c('0xa')]('/:id',auth[_0x239c3c('0x2')](),controller[_0x239c3c('0x6')]),router[_0x239c3c('0xc')](_0x239c3c('0xd'),auth[_0x239c3c('0x2')](),controller['destroy']),module[_0x239c3c('0x0')]=router; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js index 68ccc98..357f8e7 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.attributes.js @@ -1 +1 @@ -const a306_0x2e87=['username','exports','sequelize','remoteUri','STRING'];(function(_0x2d28c2,_0x2e8741){const _0x4474af=function(_0x2281db){while(--_0x2281db){_0x2d28c2['push'](_0x2d28c2['shift']());}};_0x4474af(++_0x2e8741);}(a306_0x2e87,0xb3));const a306_0x4474=function(_0x2d28c2,_0x2e8741){_0x2d28c2=_0x2d28c2-0x0;let _0x4474af=a306_0x2e87[_0x2d28c2];return _0x4474af;};const _0x2f08a1=a306_0x4474;'use strict';const Sequelize=require(_0x2f08a1('0x3'));module[_0x2f08a1('0x2')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize['STRING']},'username':{'type':Sequelize['STRING'],'unique':_0x2f08a1('0x1')},'password':{'type':Sequelize[_0x2f08a1('0x0')]},'remoteUri':{'type':Sequelize[_0x2f08a1('0x0')],'unique':_0x2f08a1('0x4')},'serverUrl':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a306_0x4151=['remoteUri','STRING','sequelize','exports','username'];(function(_0xa5da67,_0x415196){const _0x375f88=function(_0x21c6db){while(--_0x21c6db){_0xa5da67['push'](_0xa5da67['shift']());}};_0x375f88(++_0x415196);}(a306_0x4151,0x169));const a306_0x375f=function(_0xa5da67,_0x415196){_0xa5da67=_0xa5da67-0x0;let _0x375f88=a306_0x4151[_0xa5da67];return _0x375f88;};const _0x3e73f7=a306_0x375f;'use strict';const Sequelize=require(_0x3e73f7('0x1'));module[_0x3e73f7('0x2')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize['STRING']},'username':{'type':Sequelize[_0x3e73f7('0x0')],'unique':_0x3e73f7('0x3')},'password':{'type':Sequelize[_0x3e73f7('0x0')]},'remoteUri':{'type':Sequelize[_0x3e73f7('0x0')],'unique':_0x3e73f7('0x4')},'serverUrl':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js index a91b478..8dac5b2 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.controller.js @@ -1 +1 @@ -const a307_0x2beb=['request-promise-native','statusCode','include','Subjects','parent_type','substring','description','password','then','getSubjects','channel','values','SugarcrmConfiguration','Descriptions','order','label','POST','query','get_module_fields','JSON','stringify','VIRTUAL','Calls','sequelize','remoteUri','findOne','intersection','getConfigurations','status','slice','stack','/service/v4_1/rest.php','fields','set','rows','nolimit','merge','end','sort','value','PLAIN','send','direction','map','params','lodash','rawAttributes','where','attributes','pick','username','includeAll','../../components/parsers/qs','json','model','filter','parent_name','Wrong\x20credentials','like','api','duration_minutes','../../mysqldb','offset','getDescriptions','key','fieldName','../../config/logger','destroy','SugarcrmAccount','create','limit','undefined','findAll','Password\x20Expired','show','test','update','parent_id','getFields','Content-Range','type','created_by','catch','body','endsWith','length','Invalid\x20Login','getFields,\x20%s,\x20%s,\x20%s','error','name','addConfiguration','date_start','includes','../../components/integrations/configuration','count','options','filters','AccountId','keys'];(function(_0x4f048f,_0x2beb01){const _0x246e04=function(_0x2550fd){while(--_0x2550fd){_0x4f048f['push'](_0x4f048f['shift']());}};_0x246e04(++_0x2beb01);}(a307_0x2beb,0xa3));const a307_0x246e=function(_0x4f048f,_0x2beb01){_0x4f048f=_0x4f048f-0x0;let _0x246e04=a307_0x2beb[_0x4f048f];return _0x246e04;};const _0x2e75ff=a307_0x246e;'use strict';const rp=require(_0x2e75ff('0x23')),util=require('util'),_=require(_0x2e75ff('0x50')),qs=require(_0x2e75ff('0x57')),logger=require(_0x2e75ff('0x2'))(_0x2e75ff('0x5e')),db=require(_0x2e75ff('0x60'))['db'],{Op}=require(_0x2e75ff('0x3a')),integrations=require(_0x2e75ff('0x1d'));function respondWithResult(_0x2550fd,_0x5ef3b1){return _0x5ef3b1=_0x5ef3b1||0xc8,function(_0x57a285){const _0x5bda69=a307_0x246e;if(_0x57a285)return _0x2550fd[_0x5bda69('0x3f')](_0x5ef3b1)[_0x5bda69('0x58')](_0x57a285);};}function respondWithFilteredResult(_0x286fe6,_0x484b27){return function(_0x5addd8){const _0x540516=a307_0x246e;if(_0x5addd8){const _0x76bd62=_0x5addd8[_0x540516('0x1e')],_0x3d43b6=_0x484b27[_0x540516('0x61')];let _0x2abc6f=_0x484b27['offset']+_0x484b27['limit'],_0x3c2887;return _0x2abc6f>=_0x76bd62?(_0x2abc6f=_0x76bd62,_0x3c2887=0xc8):_0x3c2887=0xce,_0x286fe6['status'](_0x3c2887),_0x286fe6[_0x540516('0x44')](_0x540516('0xf'),_0x3d43b6+'-'+_0x2abc6f+'/'+_0x76bd62)[_0x540516('0x58')](_0x5addd8);}return null;};}function saveUpdates(_0x5a57c6){return function(_0x6bedbc){const _0x5b0a18=a307_0x246e;if(_0x6bedbc)return _0x6bedbc[_0x5b0a18('0xc')](_0x5a57c6)[_0x5b0a18('0x2b')](function(_0x5b76b5){return _0x5b76b5;});return null;};}function removeEntity(_0x523ed4){return function(_0x4da06d){const _0x26325a=a307_0x246e;if(_0x4da06d)return _0x4da06d[_0x26325a('0x3')]()[_0x26325a('0x2b')](function(){const _0x58627e=_0x26325a;_0x523ed4[_0x58627e('0x3f')](0xcc)[_0x58627e('0x48')]();});};}function handleEntityNotFound(_0x1af084){return function(_0x4fa6ff){return!_0x4fa6ff&&_0x1af084['sendStatus'](0x194),_0x4fa6ff;};}function handleError(_0x46b809,_0x5273d4){return _0x5273d4=_0x5273d4||0x1f4,function(_0x20a37e){const _0x470ca4=a307_0x246e;logger[_0x470ca4('0x18')](_0x20a37e[_0x470ca4('0x41')]),_0x20a37e[_0x470ca4('0x19')]&&delete _0x20a37e[_0x470ca4('0x19')],_0x46b809[_0x470ca4('0x3f')](_0x5273d4)['send'](_0x20a37e);};}exports['index']=function(_0x612b84,_0x22353c){const _0xb7ef79=_0x2e75ff;let _0x1076ca={};const _0x5e4a15={},_0x264b77={'count':0x0,'rows':[]},_0x5132ac=_[_0xb7ef79('0x4e')](db['SugarcrmAccount'][_0xb7ef79('0x51')],function(_0x4b5efa){const _0x335d49=_0xb7ef79;return{'name':_0x4b5efa[_0x335d49('0x1')],'type':_0x4b5efa['type'][_0x335d49('0x0')]};});_0x5e4a15['model']=_[_0xb7ef79('0x4e')](_0x5132ac,_0xb7ef79('0x19')),_0x5e4a15[_0xb7ef79('0x34')]=_[_0xb7ef79('0x22')](_0x612b84[_0xb7ef79('0x34')]),_0x5e4a15[_0xb7ef79('0x20')]=_[_0xb7ef79('0x3d')](_0x5e4a15[_0xb7ef79('0x59')],_0x5e4a15[_0xb7ef79('0x34')]),_0x1076ca[_0xb7ef79('0x53')]=_[_0xb7ef79('0x3d')](_0x5e4a15['model'],qs['fields'](_0x612b84[_0xb7ef79('0x34')][_0xb7ef79('0x43')])),_0x1076ca[_0xb7ef79('0x53')]=_0x1076ca[_0xb7ef79('0x53')][_0xb7ef79('0x15')]?_0x1076ca[_0xb7ef79('0x53')]:_0x5e4a15[_0xb7ef79('0x59')];typeof _0x612b84[_0xb7ef79('0x34')][_0xb7ef79('0x46')]===_0xb7ef79('0x7')&&(_0x1076ca[_0xb7ef79('0x6')]=qs[_0xb7ef79('0x6')](_0x612b84[_0xb7ef79('0x34')][_0xb7ef79('0x6')]),_0x1076ca[_0xb7ef79('0x61')]=qs[_0xb7ef79('0x61')](_0x612b84[_0xb7ef79('0x34')][_0xb7ef79('0x61')]));_0x1076ca['order']=qs['sort'](_0x612b84['query'][_0xb7ef79('0x49')]),_0x1076ca[_0xb7ef79('0x52')]=qs[_0xb7ef79('0x20')](_[_0xb7ef79('0x54')](_0x612b84[_0xb7ef79('0x34')],_0x5e4a15['filters']),_0x5132ac);_0x612b84[_0xb7ef79('0x34')][_0xb7ef79('0x5a')]&&(_0x1076ca['where']=_['merge'](_0x1076ca['where'],{[Op['or']]:_[_0xb7ef79('0x4e')](_0x5132ac,function(_0x1f05b8){const _0x2298dc=_0xb7ef79;if(_0x1f05b8[_0x2298dc('0x10')]!==_0x2298dc('0x38')){const _0x33ad14={};return _0x33ad14[_0x1f05b8['name']]={[Op['like']]:'%'+_0x612b84[_0x2298dc('0x34')][_0x2298dc('0x5a')]+'%'},_0x33ad14;}})}));_0x1076ca=_[_0xb7ef79('0x47')]({},_0x1076ca,_0x612b84[_0xb7ef79('0x1f')]);const _0x35e152={'where':_0x1076ca[_0xb7ef79('0x52')]};return db[_0xb7ef79('0x4')][_0xb7ef79('0x1e')](_0x35e152)[_0xb7ef79('0x2b')](function(_0x16b966){const _0x23d330=_0xb7ef79;return _0x264b77[_0x23d330('0x1e')]=_0x16b966,_0x612b84[_0x23d330('0x34')][_0x23d330('0x56')]&&(_0x1076ca[_0x23d330('0x25')]=[{'all':!![]}]),db[_0x23d330('0x4')][_0x23d330('0x8')](_0x1076ca);})['then'](function(_0x361bbc){const _0x3392df=_0xb7ef79;return _0x264b77[_0x3392df('0x45')]=_0x361bbc,_0x264b77;})[_0xb7ef79('0x2b')](respondWithFilteredResult(_0x22353c,_0x1076ca))['catch'](handleError(_0x22353c,null));},exports[_0x2e75ff('0xa')]=function(_0x3582df,_0x1d09e5){const _0x3c5e2c=_0x2e75ff;let _0x283153={'raw':![],'where':{'id':_0x3582df[_0x3c5e2c('0x4f')]['id']}};const _0x593ebd={};return _0x593ebd[_0x3c5e2c('0x59')]=_[_0x3c5e2c('0x22')](db['SugarcrmAccount'][_0x3c5e2c('0x51')]),_0x593ebd['query']=_[_0x3c5e2c('0x22')](_0x3582df['query']),_0x593ebd[_0x3c5e2c('0x20')]=_[_0x3c5e2c('0x3d')](_0x593ebd[_0x3c5e2c('0x59')],_0x593ebd[_0x3c5e2c('0x34')]),_0x283153[_0x3c5e2c('0x53')]=_[_0x3c5e2c('0x3d')](_0x593ebd['model'],qs[_0x3c5e2c('0x43')](_0x3582df[_0x3c5e2c('0x34')]['fields'])),_0x283153[_0x3c5e2c('0x53')]=_0x283153['attributes'][_0x3c5e2c('0x15')]?_0x283153['attributes']:_0x593ebd[_0x3c5e2c('0x59')],_0x3582df['query'][_0x3c5e2c('0x56')]&&(_0x283153[_0x3c5e2c('0x25')]=[{'all':!![]}]),_0x283153=_[_0x3c5e2c('0x47')]({},_0x283153,_0x3582df['options']),db[_0x3c5e2c('0x4')][_0x3c5e2c('0x3c')](_0x283153)[_0x3c5e2c('0x2b')](handleEntityNotFound(_0x1d09e5,null))[_0x3c5e2c('0x2b')](respondWithResult(_0x1d09e5,null))[_0x3c5e2c('0x12')](handleError(_0x1d09e5,null));},exports[_0x2e75ff('0x5')]=function(_0x592c32,_0x5e6462){const _0x28accc=_0x2e75ff;return db[_0x28accc('0x4')][_0x28accc('0x5')](_0x592c32[_0x28accc('0x13')],{})[_0x28accc('0x2b')](respondWithResult(_0x5e6462,0xc9))['catch'](handleError(_0x5e6462,null));},exports[_0x2e75ff('0xc')]=function(_0x4148f4,_0x481d8d){const _0x409fc9=_0x2e75ff;return _0x4148f4[_0x409fc9('0x13')]['id']&&delete _0x4148f4[_0x409fc9('0x13')]['id'],db[_0x409fc9('0x4')][_0x409fc9('0x3c')]({'where':{'id':_0x4148f4[_0x409fc9('0x4f')]['id']}})[_0x409fc9('0x2b')](handleEntityNotFound(_0x481d8d,null))[_0x409fc9('0x2b')](saveUpdates(_0x4148f4['body'],null))[_0x409fc9('0x2b')](respondWithResult(_0x481d8d,null))[_0x409fc9('0x12')](handleError(_0x481d8d,null));},exports[_0x2e75ff('0x3')]=function(_0x46ac4e,_0x9a84d4){const _0x3bd479=_0x2e75ff;return db[_0x3bd479('0x4')][_0x3bd479('0x3c')]({'where':{'id':_0x46ac4e['params']['id']}})[_0x3bd479('0x2b')](handleEntityNotFound(_0x9a84d4,null))[_0x3bd479('0x2b')](removeEntity(_0x9a84d4,null))[_0x3bd479('0x12')](handleError(_0x9a84d4,null));},exports[_0x2e75ff('0x3e')]=function(_0x16d9bd,_0x9bf9eb){const _0x366a07=_0x2e75ff;let _0x1bab9d={};const _0x22d7f4={};let _0x34c0a1,_0x45fc79;return db['SugarcrmAccount'][_0x366a07('0x3c')]({'where':{'id':_0x16d9bd[_0x366a07('0x4f')]['id']}})[_0x366a07('0x2b')](handleEntityNotFound(_0x9bf9eb,null))['then'](function(_0x3eef5){const _0x50075b=_0x366a07;if(_0x3eef5)return _0x34c0a1=_0x3eef5,_0x22d7f4['model']=_[_0x50075b('0x22')](db[_0x50075b('0x2f')][_0x50075b('0x51')]),_0x22d7f4[_0x50075b('0x34')]=_[_0x50075b('0x22')](_0x16d9bd['query']),_0x22d7f4[_0x50075b('0x20')]=_['intersection'](_0x22d7f4[_0x50075b('0x59')],_0x22d7f4['query']),_0x1bab9d[_0x50075b('0x53')]=_[_0x50075b('0x3d')](_0x22d7f4[_0x50075b('0x59')],qs[_0x50075b('0x43')](_0x16d9bd[_0x50075b('0x34')][_0x50075b('0x43')])),_0x1bab9d[_0x50075b('0x53')]=_0x1bab9d[_0x50075b('0x53')][_0x50075b('0x15')]?_0x1bab9d[_0x50075b('0x53')]:_0x22d7f4['model'],_0x1bab9d[_0x50075b('0x31')]=qs[_0x50075b('0x49')](_0x16d9bd[_0x50075b('0x34')]['sort']),_0x1bab9d[_0x50075b('0x52')]=qs['filters'](_['pick'](_0x16d9bd[_0x50075b('0x34')],_0x22d7f4[_0x50075b('0x20')])),_0x16d9bd[_0x50075b('0x34')][_0x50075b('0x5a')]&&(_0x1bab9d['where']=_[_0x50075b('0x47')](_0x1bab9d[_0x50075b('0x52')],{[Op['or']]:_[_0x50075b('0x4e')](_0x1bab9d[_0x50075b('0x53')],function(_0x194038){const _0x2a1123=_0x50075b,_0x584102={};return _0x584102[_0x194038]={[Op[_0x2a1123('0x5d')]]:'%'+_0x16d9bd[_0x2a1123('0x34')][_0x2a1123('0x5a')]+'%'},_0x584102;})})),_0x1bab9d=_[_0x50075b('0x47')]({},_0x1bab9d,_0x16d9bd[_0x50075b('0x1f')]),_0x34c0a1[_0x50075b('0x3e')](_0x1bab9d);})[_0x366a07('0x2b')](function(_0x232c51){const _0x4a7491=_0x366a07;if(_0x232c51)return _0x45fc79=_0x232c51['length'],typeof _0x16d9bd[_0x4a7491('0x34')][_0x4a7491('0x46')]==='undefined'&&(_0x1bab9d[_0x4a7491('0x6')]=qs[_0x4a7491('0x6')](_0x16d9bd[_0x4a7491('0x34')]['limit']),_0x1bab9d[_0x4a7491('0x61')]=qs[_0x4a7491('0x61')](_0x16d9bd['query'][_0x4a7491('0x61')])),_0x34c0a1['getConfigurations'](_0x1bab9d);})[_0x366a07('0x2b')](function(_0x7f1be7){if(_0x7f1be7)return _0x7f1be7?{'count':_0x45fc79,'rows':_0x7f1be7}:null;})['then'](respondWithResult(_0x9bf9eb,null))[_0x366a07('0x12')](handleError(_0x9bf9eb,null));},exports[_0x2e75ff('0x1a')]=function(_0x4729a7,_0x405128){const _0x4b0804=_0x2e75ff;return _0x4729a7['body']['id']&&delete _0x4729a7[_0x4b0804('0x13')]['id'],db['SugarcrmAccount'][_0x4b0804('0x3c')]({'where':{'id':_0x4729a7[_0x4b0804('0x4f')]['id']}})[_0x4b0804('0x2b')](handleEntityNotFound(_0x405128,null))[_0x4b0804('0x2b')](function(_0xdc82a0){const _0x21f3c1=_0x4b0804;if(_0xdc82a0)return _0x4729a7['body'][_0x21f3c1('0x21')]=_0xdc82a0['id'],_0x4729a7[_0x21f3c1('0x13')][_0x21f3c1('0x26')]=integrations[_0x21f3c1('0x2c')](_0x4729a7['body']['channel'],_0x4729a7[_0x21f3c1('0x13')][_0x21f3c1('0x10')]),_0x4729a7[_0x21f3c1('0x13')][_0x21f3c1('0x30')]=integrations[_0x21f3c1('0x62')](_0x4729a7[_0x21f3c1('0x13')][_0x21f3c1('0x2d')],_0x4729a7['body'][_0x21f3c1('0x10')]),db[_0x21f3c1('0x2f')][_0x21f3c1('0x5')](_0x4729a7[_0x21f3c1('0x13')],{'include':[{'model':db['SugarcrmField'],'as':_0x21f3c1('0x26')},{'model':db['SugarcrmField'],'as':'Descriptions'}]});return null;})[_0x4b0804('0x2b')](respondWithResult(_0x405128,null))[_0x4b0804('0x12')](handleError(_0x405128,null));},exports[_0x2e75ff('0xe')]=function(_0x112518,_0x3062f6){const _0x11f9c2=_0x2e75ff;let _0x18fe1c='';const _0x535154=['id',_0x11f9c2('0x19'),'assigned_user_id',_0x11f9c2('0x11'),_0x11f9c2('0x29'),_0x11f9c2('0x1b'),'duration_hours',_0x11f9c2('0x5f'),_0x11f9c2('0xd'),_0x11f9c2('0x27'),_0x11f9c2('0x5b'),_0x11f9c2('0x4d')];return db[_0x11f9c2('0x4')]['findOne']({'where':{'id':_0x112518[_0x11f9c2('0x4f')]['id']},'attributes':['id',_0x11f9c2('0x55'),_0x11f9c2('0x2a'),_0x11f9c2('0x3b')]})[_0x11f9c2('0x2b')](handleEntityNotFound(_0x3062f6,null))[_0x11f9c2('0x2b')](function(_0x316cf7){const _0x30f30d=_0x11f9c2;if(_0x316cf7){_0x18fe1c=_0x316cf7[_0x30f30d('0x3b')];const _0x25367b=_0x18fe1c[_0x30f30d('0x40')](-0x1);return _0x25367b==='/'&&(_0x18fe1c=_0x18fe1c[_0x30f30d('0x28')](0x0,_0x18fe1c['lastIndexOf'](_0x25367b))),rp({'method':_0x30f30d('0x33'),'uri':util['format']('%s%s',_0x18fe1c,_0x30f30d('0x42')),'json':!![],'form':{'method':'login','input_type':'JSON','response_type':'JSON','rest_data':JSON[_0x30f30d('0x37')]({'user_auth':{'user_name':_0x316cf7[_0x30f30d('0x55')],'password':_0x316cf7[_0x30f30d('0x2a')],'encryption':_0x30f30d('0x4b')},'application':'xCALLY\x20Motion\x20Integration'})}});}})[_0x11f9c2('0x2b')](function(_0x1e8d84){const _0x54de22=_0x11f9c2;if(_0x1e8d84&&_0x1e8d84[_0x54de22('0x19')]!==_0x54de22('0x16')&&_0x1e8d84[_0x54de22('0x19')]!==_0x54de22('0x9'))return rp({'method':_0x54de22('0x33'),'uri':util['format']('%s%s',_0x18fe1c,_0x54de22('0x42')),'json':!![],'form':{'method':_0x54de22('0x35'),'input_type':_0x54de22('0x36'),'response_type':_0x54de22('0x36'),'rest_data':JSON[_0x54de22('0x37')]({'session':_0x1e8d84['id'],'module_name':_0x54de22('0x39')})}})[_0x54de22('0x2b')](function(_0x100367){const _0xb09aa6=_0x54de22;if(_0x100367){const _0x2195c4=_[_0xb09aa6('0x2e')](_0x100367['module_fields']);return _['remove'](_0x2195c4,function(_0xdcbda9){const _0x3b1c37=_0xb09aa6;return _0x535154[_0x3b1c37('0x1c')](_0xdcbda9[_0x3b1c37('0x19')]);}),{'count':_0x2195c4[_0xb09aa6('0x15')],'rows':_['map'](_0x2195c4,function(_0x3a5518){const _0x1c5594=_0xb09aa6;return{'id':_0x3a5518[_0x1c5594('0x19')],'name':_0x3a5518[_0x1c5594('0x32')],'custom':_[_0x1c5594('0x14')](_0x3a5518[_0x1c5594('0x19')],'_c')?!![]:![],'options':_0x3a5518[_0x1c5594('0x1f')]?_[_0x1c5594('0x4e')](_[_0x1c5594('0x2e')](_0x3a5518[_0x1c5594('0x1f')]),function(_0x3a9e64){const _0x40d8d2=_0x1c5594;return{'name':_0x3a9e64[_0x40d8d2('0x4a')],'value':_0x3a9e64[_0x40d8d2('0x19')]};}):[]};})};}})[_0x54de22('0x2b')](respondWithResult(_0x3062f6,null))[_0x54de22('0x12')](function(_0xca75bc){const _0x2e8cc6=_0x54de22;let _0x5bc9f6=_0x112518[_0x2e8cc6('0x34')][_0x2e8cc6('0xb')]?0x1f4:_0xca75bc[_0x2e8cc6('0x24')]||0x1f4;logger[_0x2e8cc6('0x18')](_0x2e8cc6('0x17'),_0x2e8cc6('0xe'),_0x5bc9f6,JSON[_0x2e8cc6('0x37')](_0xca75bc)),delete _0xca75bc[_0x2e8cc6('0x19')],_0x5bc9f6===0x191&&(_0x5bc9f6=0x190),_0x3062f6[_0x2e8cc6('0x3f')](_0x5bc9f6)[_0x2e8cc6('0x4c')](_0x112518[_0x2e8cc6('0x34')][_0x2e8cc6('0xb')]?{'message':_0x2e8cc6('0x5c'),'statusCode':_0xca75bc[_0x2e8cc6('0x24')]}:_0xca75bc);});else{const _0x36919b=0x1f4;_0x3062f6['status'](_0x36919b)[_0x54de22('0x4c')]({'message':_0x54de22('0x5c'),'statusCode':0x190});}});}; \ No newline at end of file +const a307_0x4d40=['intersection','parent_id','pick','order','login','model','catch','filters','Wrong\x20credentials','include','format','sequelize','password','includeAll','limit','count','../../components/parsers/qs','POST','where','update','length','duration_minutes','util','getFields,\x20%s,\x20%s,\x20%s','params','lastIndexOf','channel','merge','AccountId','includes','module_fields','index','SugarcrmField','stringify','error','name','then','label','created_by','SugarcrmConfiguration','username','description','attributes','query','Subjects','fields','sort','create','rows','getDescriptions','map','rawAttributes','Password\x20Expired','key','show','remove','PLAIN','nolimit','type','values','JSON','/service/v4_1/rest.php','offset','Invalid\x20Login','api','like','json','findOne','undefined','Descriptions','body','SugarcrmAccount','request-promise-native','endsWith','set','parent_type','slice','assigned_user_id','parent_name','%s%s','stack','addConfiguration','options','Content-Range','destroy','getConfigurations','status','keys','send','VIRTUAL','get_module_fields','statusCode'];(function(_0x41906b,_0x4d404f){const _0x47fb8a=function(_0x294c12){while(--_0x294c12){_0x41906b['push'](_0x41906b['shift']());}};_0x47fb8a(++_0x4d404f);}(a307_0x4d40,0xa7));const a307_0x47fb=function(_0x41906b,_0x4d404f){_0x41906b=_0x41906b-0x0;let _0x47fb8a=a307_0x4d40[_0x41906b];return _0x47fb8a;};const _0x3b6169=a307_0x47fb;'use strict';const rp=require(_0x3b6169('0x59')),util=require(_0x3b6169('0x27')),_=require('lodash'),qs=require(_0x3b6169('0x21')),logger=require('../../config/logger')(_0x3b6169('0x51')),db=require('../../mysqldb')['db'],{Op}=require(_0x3b6169('0x1c')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x294c12,_0x3f6771){return _0x3f6771=_0x3f6771||0xc8,function(_0x1e625a){const _0xa8cb3b=a307_0x47fb;if(_0x1e625a)return _0x294c12[_0xa8cb3b('0xb')](_0x3f6771)[_0xa8cb3b('0x53')](_0x1e625a);};}function respondWithFilteredResult(_0xab66d4,_0x3c8195){return function(_0x4bf83e){const _0x3e2b23=a307_0x47fb;if(_0x4bf83e){const _0x586db6=_0x4bf83e[_0x3e2b23('0x20')],_0x155493=_0x3c8195[_0x3e2b23('0x4f')];let _0x3c3a7e=_0x3c8195[_0x3e2b23('0x4f')]+_0x3c8195['limit'],_0x54688e;return _0x3c3a7e>=_0x586db6?(_0x3c3a7e=_0x586db6,_0x54688e=0xc8):_0x54688e=0xce,_0xab66d4[_0x3e2b23('0xb')](_0x54688e),_0xab66d4[_0x3e2b23('0x5b')](_0x3e2b23('0x8'),_0x155493+'-'+_0x3c3a7e+'/'+_0x586db6)[_0x3e2b23('0x53')](_0x4bf83e);}return null;};}function saveUpdates(_0x141609){return function(_0xe19802){const _0x22873f=a307_0x47fb;if(_0xe19802)return _0xe19802['update'](_0x141609)[_0x22873f('0x35')](function(_0xb73a89){return _0xb73a89;});return null;};}function removeEntity(_0x13ea4a){return function(_0x54214a){const _0x2455ad=a307_0x47fb;if(_0x54214a)return _0x54214a['destroy']()[_0x2455ad('0x35')](function(){const _0x23f255=_0x2455ad;_0x13ea4a[_0x23f255('0xb')](0xcc)['end']();});};}function handleEntityNotFound(_0xac66d3){return function(_0x14b721){return!_0x14b721&&_0xac66d3['sendStatus'](0x194),_0x14b721;};}function handleError(_0x269ea8,_0x246079){return _0x246079=_0x246079||0x1f4,function(_0x4977ae){const _0x16dc2d=a307_0x47fb;logger[_0x16dc2d('0x33')](_0x4977ae[_0x16dc2d('0x5')]),_0x4977ae[_0x16dc2d('0x34')]&&delete _0x4977ae[_0x16dc2d('0x34')],_0x269ea8[_0x16dc2d('0xb')](_0x246079)[_0x16dc2d('0xd')](_0x4977ae);};}exports[_0x3b6169('0x30')]=function(_0x41a564,_0x286754){const _0x5abc4f=_0x3b6169;let _0x10f596={};const _0x21f743={},_0x3eafc4={'count':0x0,'rows':[]},_0x3888c7=_[_0x5abc4f('0x43')](db[_0x5abc4f('0x58')][_0x5abc4f('0x44')],function(_0x1d5a8b){const _0xe808e9=_0x5abc4f;return{'name':_0x1d5a8b['fieldName'],'type':_0x1d5a8b[_0xe808e9('0x4b')][_0xe808e9('0x46')]};});_0x21f743['model']=_[_0x5abc4f('0x43')](_0x3888c7,_0x5abc4f('0x34')),_0x21f743[_0x5abc4f('0x3c')]=_[_0x5abc4f('0xc')](_0x41a564[_0x5abc4f('0x3c')]),_0x21f743[_0x5abc4f('0x18')]=_[_0x5abc4f('0x11')](_0x21f743[_0x5abc4f('0x16')],_0x21f743[_0x5abc4f('0x3c')]),_0x10f596['attributes']=_['intersection'](_0x21f743[_0x5abc4f('0x16')],qs[_0x5abc4f('0x3e')](_0x41a564[_0x5abc4f('0x3c')][_0x5abc4f('0x3e')])),_0x10f596[_0x5abc4f('0x3b')]=_0x10f596[_0x5abc4f('0x3b')][_0x5abc4f('0x25')]?_0x10f596[_0x5abc4f('0x3b')]:_0x21f743[_0x5abc4f('0x16')];typeof _0x41a564['query'][_0x5abc4f('0x4a')]==='undefined'&&(_0x10f596[_0x5abc4f('0x1f')]=qs['limit'](_0x41a564[_0x5abc4f('0x3c')][_0x5abc4f('0x1f')]),_0x10f596[_0x5abc4f('0x4f')]=qs['offset'](_0x41a564[_0x5abc4f('0x3c')]['offset']));_0x10f596[_0x5abc4f('0x14')]=qs[_0x5abc4f('0x3f')](_0x41a564['query']['sort']),_0x10f596['where']=qs['filters'](_[_0x5abc4f('0x13')](_0x41a564['query'],_0x21f743[_0x5abc4f('0x18')]),_0x3888c7);_0x41a564['query']['filter']&&(_0x10f596['where']=_[_0x5abc4f('0x2c')](_0x10f596['where'],{[Op['or']]:_[_0x5abc4f('0x43')](_0x3888c7,function(_0xb40cc8){const _0x581e83=_0x5abc4f;if(_0xb40cc8[_0x581e83('0x4b')]!==_0x581e83('0xe')){const _0x3abc57={};return _0x3abc57[_0xb40cc8[_0x581e83('0x34')]]={[Op[_0x581e83('0x52')]]:'%'+_0x41a564[_0x581e83('0x3c')]['filter']+'%'},_0x3abc57;}})}));_0x10f596=_[_0x5abc4f('0x2c')]({},_0x10f596,_0x41a564['options']);const _0x4c3d4d={'where':_0x10f596[_0x5abc4f('0x23')]};return db[_0x5abc4f('0x58')][_0x5abc4f('0x20')](_0x4c3d4d)['then'](function(_0x13e2d8){const _0xae82cd=_0x5abc4f;return _0x3eafc4['count']=_0x13e2d8,_0x41a564[_0xae82cd('0x3c')][_0xae82cd('0x1e')]&&(_0x10f596[_0xae82cd('0x1a')]=[{'all':!![]}]),db['SugarcrmAccount']['findAll'](_0x10f596);})['then'](function(_0x392a07){const _0x3c60c=_0x5abc4f;return _0x3eafc4[_0x3c60c('0x41')]=_0x392a07,_0x3eafc4;})[_0x5abc4f('0x35')](respondWithFilteredResult(_0x286754,_0x10f596))['catch'](handleError(_0x286754,null));},exports[_0x3b6169('0x47')]=function(_0x1c823d,_0x27ab0e){const _0x465ade=_0x3b6169;let _0x2786da={'raw':![],'where':{'id':_0x1c823d['params']['id']}};const _0x4099e1={};return _0x4099e1[_0x465ade('0x16')]=_[_0x465ade('0xc')](db[_0x465ade('0x58')][_0x465ade('0x44')]),_0x4099e1[_0x465ade('0x3c')]=_[_0x465ade('0xc')](_0x1c823d[_0x465ade('0x3c')]),_0x4099e1[_0x465ade('0x18')]=_['intersection'](_0x4099e1['model'],_0x4099e1[_0x465ade('0x3c')]),_0x2786da[_0x465ade('0x3b')]=_[_0x465ade('0x11')](_0x4099e1['model'],qs[_0x465ade('0x3e')](_0x1c823d['query'][_0x465ade('0x3e')])),_0x2786da[_0x465ade('0x3b')]=_0x2786da[_0x465ade('0x3b')]['length']?_0x2786da[_0x465ade('0x3b')]:_0x4099e1[_0x465ade('0x16')],_0x1c823d[_0x465ade('0x3c')][_0x465ade('0x1e')]&&(_0x2786da[_0x465ade('0x1a')]=[{'all':!![]}]),_0x2786da=_['merge']({},_0x2786da,_0x1c823d[_0x465ade('0x7')]),db[_0x465ade('0x58')][_0x465ade('0x54')](_0x2786da)[_0x465ade('0x35')](handleEntityNotFound(_0x27ab0e,null))[_0x465ade('0x35')](respondWithResult(_0x27ab0e,null))['catch'](handleError(_0x27ab0e,null));},exports[_0x3b6169('0x40')]=function(_0x3f2cbc,_0x585756){const _0x418bb2=_0x3b6169;return db[_0x418bb2('0x58')]['create'](_0x3f2cbc[_0x418bb2('0x57')],{})[_0x418bb2('0x35')](respondWithResult(_0x585756,0xc9))[_0x418bb2('0x17')](handleError(_0x585756,null));},exports[_0x3b6169('0x24')]=function(_0x1b0162,_0x1e6a73){const _0x5638dd=_0x3b6169;return _0x1b0162[_0x5638dd('0x57')]['id']&&delete _0x1b0162[_0x5638dd('0x57')]['id'],db[_0x5638dd('0x58')][_0x5638dd('0x54')]({'where':{'id':_0x1b0162[_0x5638dd('0x29')]['id']}})[_0x5638dd('0x35')](handleEntityNotFound(_0x1e6a73,null))[_0x5638dd('0x35')](saveUpdates(_0x1b0162[_0x5638dd('0x57')],null))[_0x5638dd('0x35')](respondWithResult(_0x1e6a73,null))['catch'](handleError(_0x1e6a73,null));},exports[_0x3b6169('0x9')]=function(_0x3ca6d8,_0xad1d0){const _0xc065c0=_0x3b6169;return db[_0xc065c0('0x58')][_0xc065c0('0x54')]({'where':{'id':_0x3ca6d8['params']['id']}})[_0xc065c0('0x35')](handleEntityNotFound(_0xad1d0,null))[_0xc065c0('0x35')](removeEntity(_0xad1d0,null))[_0xc065c0('0x17')](handleError(_0xad1d0,null));},exports[_0x3b6169('0xa')]=function(_0x4d9bfa,_0x2db027){const _0x4a5429=_0x3b6169;let _0xf64f2e={};const _0x21933b={};let _0x3270af,_0x44e5c3;return db[_0x4a5429('0x58')][_0x4a5429('0x54')]({'where':{'id':_0x4d9bfa['params']['id']}})['then'](handleEntityNotFound(_0x2db027,null))[_0x4a5429('0x35')](function(_0x3f8033){const _0x52db34=_0x4a5429;if(_0x3f8033)return _0x3270af=_0x3f8033,_0x21933b[_0x52db34('0x16')]=_['keys'](db[_0x52db34('0x38')]['rawAttributes']),_0x21933b['query']=_[_0x52db34('0xc')](_0x4d9bfa[_0x52db34('0x3c')]),_0x21933b['filters']=_['intersection'](_0x21933b[_0x52db34('0x16')],_0x21933b[_0x52db34('0x3c')]),_0xf64f2e['attributes']=_['intersection'](_0x21933b[_0x52db34('0x16')],qs[_0x52db34('0x3e')](_0x4d9bfa[_0x52db34('0x3c')]['fields'])),_0xf64f2e[_0x52db34('0x3b')]=_0xf64f2e[_0x52db34('0x3b')][_0x52db34('0x25')]?_0xf64f2e[_0x52db34('0x3b')]:_0x21933b[_0x52db34('0x16')],_0xf64f2e['order']=qs['sort'](_0x4d9bfa['query'][_0x52db34('0x3f')]),_0xf64f2e[_0x52db34('0x23')]=qs[_0x52db34('0x18')](_[_0x52db34('0x13')](_0x4d9bfa[_0x52db34('0x3c')],_0x21933b[_0x52db34('0x18')])),_0x4d9bfa[_0x52db34('0x3c')]['filter']&&(_0xf64f2e[_0x52db34('0x23')]=_[_0x52db34('0x2c')](_0xf64f2e[_0x52db34('0x23')],{[Op['or']]:_[_0x52db34('0x43')](_0xf64f2e[_0x52db34('0x3b')],function(_0x47969b){const _0x1b2c0a=_0x52db34,_0x2a494d={};return _0x2a494d[_0x47969b]={[Op[_0x1b2c0a('0x52')]]:'%'+_0x4d9bfa[_0x1b2c0a('0x3c')]['filter']+'%'},_0x2a494d;})})),_0xf64f2e=_['merge']({},_0xf64f2e,_0x4d9bfa[_0x52db34('0x7')]),_0x3270af['getConfigurations'](_0xf64f2e);})['then'](function(_0x5402fc){const _0x35751f=_0x4a5429;if(_0x5402fc)return _0x44e5c3=_0x5402fc[_0x35751f('0x25')],typeof _0x4d9bfa['query'][_0x35751f('0x4a')]===_0x35751f('0x55')&&(_0xf64f2e[_0x35751f('0x1f')]=qs[_0x35751f('0x1f')](_0x4d9bfa[_0x35751f('0x3c')]['limit']),_0xf64f2e[_0x35751f('0x4f')]=qs[_0x35751f('0x4f')](_0x4d9bfa[_0x35751f('0x3c')][_0x35751f('0x4f')])),_0x3270af[_0x35751f('0xa')](_0xf64f2e);})[_0x4a5429('0x35')](function(_0x1f021c){if(_0x1f021c)return _0x1f021c?{'count':_0x44e5c3,'rows':_0x1f021c}:null;})['then'](respondWithResult(_0x2db027,null))['catch'](handleError(_0x2db027,null));},exports[_0x3b6169('0x6')]=function(_0x1377d1,_0x54bbf0){const _0x2db943=_0x3b6169;return _0x1377d1[_0x2db943('0x57')]['id']&&delete _0x1377d1['body']['id'],db[_0x2db943('0x58')][_0x2db943('0x54')]({'where':{'id':_0x1377d1[_0x2db943('0x29')]['id']}})[_0x2db943('0x35')](handleEntityNotFound(_0x54bbf0,null))[_0x2db943('0x35')](function(_0x40c632){const _0x283bc4=_0x2db943;if(_0x40c632)return _0x1377d1[_0x283bc4('0x57')][_0x283bc4('0x2d')]=_0x40c632['id'],_0x1377d1['body'][_0x283bc4('0x3d')]=integrations['getSubjects'](_0x1377d1['body'][_0x283bc4('0x2b')],_0x1377d1[_0x283bc4('0x57')][_0x283bc4('0x4b')]),_0x1377d1[_0x283bc4('0x57')][_0x283bc4('0x56')]=integrations[_0x283bc4('0x42')](_0x1377d1[_0x283bc4('0x57')][_0x283bc4('0x2b')],_0x1377d1[_0x283bc4('0x57')][_0x283bc4('0x4b')]),db[_0x283bc4('0x38')][_0x283bc4('0x40')](_0x1377d1['body'],{'include':[{'model':db[_0x283bc4('0x31')],'as':_0x283bc4('0x3d')},{'model':db['SugarcrmField'],'as':'Descriptions'}]});return null;})['then'](respondWithResult(_0x54bbf0,null))[_0x2db943('0x17')](handleError(_0x54bbf0,null));},exports['getFields']=function(_0x56a9be,_0x27df03){const _0x39945f=_0x3b6169;let _0x4b1064='';const _0x542767=['id',_0x39945f('0x34'),_0x39945f('0x2'),_0x39945f('0x37'),_0x39945f('0x3a'),'date_start','duration_hours',_0x39945f('0x26'),_0x39945f('0x12'),_0x39945f('0x0'),_0x39945f('0x3'),'direction'];return db[_0x39945f('0x58')][_0x39945f('0x54')]({'where':{'id':_0x56a9be[_0x39945f('0x29')]['id']},'attributes':['id',_0x39945f('0x39'),_0x39945f('0x1d'),'remoteUri']})['then'](handleEntityNotFound(_0x27df03,null))[_0x39945f('0x35')](function(_0xfe97ac){const _0x135edf=_0x39945f;if(_0xfe97ac){_0x4b1064=_0xfe97ac['remoteUri'];const _0x3dc45e=_0x4b1064[_0x135edf('0x1')](-0x1);return _0x3dc45e==='/'&&(_0x4b1064=_0x4b1064['substring'](0x0,_0x4b1064[_0x135edf('0x2a')](_0x3dc45e))),rp({'method':'POST','uri':util['format'](_0x135edf('0x4'),_0x4b1064,_0x135edf('0x4e')),'json':!![],'form':{'method':_0x135edf('0x15'),'input_type':_0x135edf('0x4d'),'response_type':_0x135edf('0x4d'),'rest_data':JSON[_0x135edf('0x32')]({'user_auth':{'user_name':_0xfe97ac[_0x135edf('0x39')],'password':_0xfe97ac[_0x135edf('0x1d')],'encryption':_0x135edf('0x49')},'application':'xCALLY\x20Motion\x20Integration'})}});}})[_0x39945f('0x35')](function(_0x4e0dc1){const _0x3d30be=_0x39945f;if(_0x4e0dc1&&_0x4e0dc1[_0x3d30be('0x34')]!==_0x3d30be('0x50')&&_0x4e0dc1[_0x3d30be('0x34')]!==_0x3d30be('0x45'))return rp({'method':_0x3d30be('0x22'),'uri':util[_0x3d30be('0x1b')]('%s%s',_0x4b1064,_0x3d30be('0x4e')),'json':!![],'form':{'method':_0x3d30be('0xf'),'input_type':'JSON','response_type':_0x3d30be('0x4d'),'rest_data':JSON[_0x3d30be('0x32')]({'session':_0x4e0dc1['id'],'module_name':'Calls'})}})[_0x3d30be('0x35')](function(_0x2c2004){const _0x3d6791=_0x3d30be;if(_0x2c2004){const _0x528bf6=_[_0x3d6791('0x4c')](_0x2c2004[_0x3d6791('0x2f')]);return _[_0x3d6791('0x48')](_0x528bf6,function(_0x3d9d17){const _0x4af10f=_0x3d6791;return _0x542767[_0x4af10f('0x2e')](_0x3d9d17[_0x4af10f('0x34')]);}),{'count':_0x528bf6[_0x3d6791('0x25')],'rows':_[_0x3d6791('0x43')](_0x528bf6,function(_0x557267){const _0x3386a8=_0x3d6791;return{'id':_0x557267[_0x3386a8('0x34')],'name':_0x557267[_0x3386a8('0x36')],'custom':_[_0x3386a8('0x5a')](_0x557267[_0x3386a8('0x34')],'_c')?!![]:![],'options':_0x557267[_0x3386a8('0x7')]?_['map'](_[_0x3386a8('0x4c')](_0x557267[_0x3386a8('0x7')]),function(_0x1a8509){const _0x278de5=_0x3386a8;return{'name':_0x1a8509['value'],'value':_0x1a8509[_0x278de5('0x34')]};}):[]};})};}})['then'](respondWithResult(_0x27df03,null))[_0x3d30be('0x17')](function(_0xb28040){const _0x1cf203=_0x3d30be;let _0x10ae0f=_0x56a9be['query']['test']?0x1f4:_0xb28040[_0x1cf203('0x10')]||0x1f4;logger[_0x1cf203('0x33')](_0x1cf203('0x28'),'getFields',_0x10ae0f,JSON['stringify'](_0xb28040)),delete _0xb28040[_0x1cf203('0x34')],_0x10ae0f===0x191&&(_0x10ae0f=0x190),_0x27df03['status'](_0x10ae0f)[_0x1cf203('0xd')](_0x56a9be[_0x1cf203('0x3c')]['test']?{'message':_0x1cf203('0x19'),'statusCode':_0xb28040[_0x1cf203('0x10')]}:_0xb28040);});else{const _0x3ff4da=0x1f4;_0x27df03[_0x3d30be('0xb')](_0x3ff4da)[_0x3d30be('0xd')]({'message':_0x3d30be('0x19'),'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 fe45ad1..a30e8cd 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.model.js @@ -1 +1 @@ -const a308_0x4ba1=['./intSugarcrmAccount.attributes','exports','define','int_sugarcrm_accounts'];(function(_0x30ed40,_0x4ba1ec){const _0x4265e4=function(_0x52135e){while(--_0x52135e){_0x30ed40['push'](_0x30ed40['shift']());}};_0x4265e4(++_0x4ba1ec);}(a308_0x4ba1,0x16d));const a308_0x4265=function(_0x30ed40,_0x4ba1ec){_0x30ed40=_0x30ed40-0x0;let _0x4265e4=a308_0x4ba1[_0x30ed40];return _0x4265e4;};const _0x48deeb=a308_0x4265;'use strict';const attributes=require(_0x48deeb('0x3'));module[_0x48deeb('0x0')]=function(_0x52135e){const _0xcc5426=_0x48deeb,_0x1ee24f=_0x52135e[_0xcc5426('0x1')]('SugarcrmAccount',attributes,{'tableName':_0xcc5426('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1ee24f;}; \ No newline at end of file +const a308_0x1978=['SugarcrmAccount','define'];(function(_0x1a4c10,_0x1978e8){const _0x438ce8=function(_0x46234a){while(--_0x46234a){_0x1a4c10['push'](_0x1a4c10['shift']());}};_0x438ce8(++_0x1978e8);}(a308_0x1978,0x154));const a308_0x438c=function(_0x1a4c10,_0x1978e8){_0x1a4c10=_0x1a4c10-0x0;let _0x438ce8=a308_0x1978[_0x1a4c10];return _0x438ce8;};'use strict';const attributes=require('./intSugarcrmAccount.attributes');module['exports']=function(_0x46234a){const _0x244b0c=a308_0x438c,_0x10bae6=_0x46234a[_0x244b0c('0x1')](_0x244b0c('0x0'),attributes,{'tableName':'int_sugarcrm_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x10bae6;}; \ No newline at end of file diff --git a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js index 1fdb3b4..12649b7 100644 --- a/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js +++ b/server/api/intSugarcrmAccount/intSugarcrmAccount.rpc.js @@ -1 +1 @@ -const a309_0x546a=['options','limit','info','findOne','catch','rpc','where','error','SugarcrmAccount','then','attributes','raw','map','debug','stringify','include','ShowSugarcrmAccount','model','GetSugarcrmAccount','../../config/logger','lodash'];(function(_0xad42a7,_0x546a92){const _0x36de34=function(_0x2b5055){while(--_0x2b5055){_0xad42a7['push'](_0xad42a7['shift']());}};_0x36de34(++_0x546a92);}(a309_0x546a,0xc3));const a309_0x36de=function(_0xad42a7,_0x546a92){_0xad42a7=_0xad42a7-0x0;let _0x36de34=a309_0x546a[_0xad42a7];return _0x36de34;};const _0x329e0d=a309_0x36de;'use strict';const _=require(_0x329e0d('0xe')),db=require('../../mysqldb')['db'],logger=require(_0x329e0d('0xd'))(_0x329e0d('0x14'));exports[_0x329e0d('0xc')]=function(_0x2b5055){const _0x4413aa=this;return new Promise(function(_0x425ff2,_0x6432b1){const _0x43fadd=a309_0x36de;return db['SugarcrmAccount']['findAll']({'raw':_0x2b5055['options']?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x5')]===undefined?!![]:![]:!![],'where':_0x2b5055[_0x43fadd('0xf')]?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x0')]||null:null,'attributes':_0x2b5055[_0x43fadd('0xf')]?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x4')]||null:null,'limit':_0x2b5055[_0x43fadd('0xf')]?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x10')]||null:null,'include':_0x2b5055[_0x43fadd('0xf')]?_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x9')]?_[_0x43fadd('0x6')](_0x2b5055[_0x43fadd('0xf')][_0x43fadd('0x9')],function(_0x5b6ce1){const _0x2c075d=_0x43fadd;return{'model':db[_0x5b6ce1['model']],'as':_0x5b6ce1['as'],'attributes':_0x5b6ce1[_0x2c075d('0x4')],'include':_0x5b6ce1[_0x2c075d('0x9')]?_[_0x2c075d('0x6')](_0x5b6ce1[_0x2c075d('0x9')],function(_0x3b5baf){const _0x17e45f=_0x2c075d;return{'model':db[_0x3b5baf['model']],'as':_0x3b5baf['as'],'attributes':_0x3b5baf[_0x17e45f('0x4')],'include':_0x3b5baf[_0x17e45f('0x9')]?_[_0x17e45f('0x6')](_0x3b5baf['include'],function(_0x55237d){const _0x279d1a=_0x17e45f;return{'model':db[_0x55237d[_0x279d1a('0xb')]],'as':_0x55237d['as'],'attributes':_0x55237d[_0x279d1a('0x4')]};}):[]};}):[]};}):[]:[]})[_0x43fadd('0x3')](function(_0x43916c){const _0x306202=_0x43fadd;logger[_0x306202('0x11')](_0x306202('0xc'),_0x2b5055),logger['debug'](_0x306202('0xc'),_0x2b5055,JSON[_0x306202('0x8')](_0x43916c)),_0x425ff2(_0x43916c);})[_0x43fadd('0x13')](function(_0x56f0d9){const _0x504b8d=_0x43fadd;logger['error'](_0x504b8d('0xc'),_0x56f0d9['message'],_0x2b5055),_0x6432b1(_0x4413aa['error'](0x1f4,_0x56f0d9['message']));});});},exports[_0x329e0d('0xa')]=function(_0x44c430){const _0x1dc4dd=this;return new Promise(function(_0x5b8256,_0x178e32){const _0x668126=a309_0x36de;return db[_0x668126('0x2')][_0x668126('0x12')]({'raw':_0x44c430['options']?_0x44c430[_0x668126('0xf')][_0x668126('0x5')]===undefined?!![]:![]:!![],'where':_0x44c430[_0x668126('0xf')]?_0x44c430['options'][_0x668126('0x0')]||null:null,'attributes':_0x44c430[_0x668126('0xf')]?_0x44c430[_0x668126('0xf')][_0x668126('0x4')]||null:null,'include':_0x44c430[_0x668126('0xf')]?_0x44c430[_0x668126('0xf')][_0x668126('0x9')]?_[_0x668126('0x6')](_0x44c430[_0x668126('0xf')]['include'],function(_0x4ff0ac){const _0x16838=_0x668126;return{'model':db[_0x4ff0ac[_0x16838('0xb')]],'as':_0x4ff0ac['as'],'attributes':_0x4ff0ac[_0x16838('0x4')],'include':_0x4ff0ac[_0x16838('0x9')]?_[_0x16838('0x6')](_0x4ff0ac[_0x16838('0x9')],function(_0x2aaa3c){const _0x27b676=_0x16838;return{'model':db[_0x2aaa3c['model']],'as':_0x2aaa3c['as'],'attributes':_0x2aaa3c[_0x27b676('0x4')],'include':_0x2aaa3c[_0x27b676('0x9')]?_[_0x27b676('0x6')](_0x2aaa3c[_0x27b676('0x9')],function(_0x1294c9){return{'model':db[_0x1294c9['model']],'as':_0x1294c9['as'],'attributes':_0x1294c9['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x7ff70d){const _0x363b32=_0x668126;logger[_0x363b32('0x11')]('ShowSugarcrmAccount',_0x44c430),logger[_0x363b32('0x7')](_0x363b32('0xa'),_0x44c430,JSON[_0x363b32('0x8')](_0x7ff70d)),_0x5b8256(_0x7ff70d);})[_0x668126('0x13')](function(_0x1fbf85){const _0x4cb921=_0x668126;logger[_0x4cb921('0x1')](_0x4cb921('0xa'),_0x1fbf85['message'],_0x44c430),_0x178e32(_0x1dc4dd[_0x4cb921('0x1')](0x1f4,_0x1fbf85['message']));});});}; \ No newline at end of file +const a309_0x20d9=['where','message','error','catch','../../mysqldb','then','include','options','attributes','stringify','info','GetSugarcrmAccount','ShowSugarcrmAccount','limit','model','map','lodash','SugarcrmAccount','../../config/logger','rpc','debug','findOne','raw'];(function(_0x3b3c44,_0x20d96a){const _0x254f2e=function(_0x2a5788){while(--_0x2a5788){_0x3b3c44['push'](_0x3b3c44['shift']());}};_0x254f2e(++_0x20d96a);}(a309_0x20d9,0x12e));const a309_0x254f=function(_0x3b3c44,_0x20d96a){_0x3b3c44=_0x3b3c44-0x0;let _0x254f2e=a309_0x20d9[_0x3b3c44];return _0x254f2e;};const _0x5bcf82=a309_0x254f;'use strict';const _=require(_0x5bcf82('0xd')),db=require(_0x5bcf82('0x1'))['db'],logger=require(_0x5bcf82('0xf'))(_0x5bcf82('0x10'));exports[_0x5bcf82('0x8')]=function(_0x2a5788){const _0x13826e=this;return new Promise(function(_0x206977,_0x58a41f){const _0x36b846=a309_0x254f;return db[_0x36b846('0xe')]['findAll']({'raw':_0x2a5788[_0x36b846('0x4')]?_0x2a5788[_0x36b846('0x4')][_0x36b846('0x13')]===undefined?!![]:![]:!![],'where':_0x2a5788[_0x36b846('0x4')]?_0x2a5788[_0x36b846('0x4')][_0x36b846('0x14')]||null:null,'attributes':_0x2a5788[_0x36b846('0x4')]?_0x2a5788['options'][_0x36b846('0x5')]||null:null,'limit':_0x2a5788[_0x36b846('0x4')]?_0x2a5788[_0x36b846('0x4')][_0x36b846('0xa')]||null:null,'include':_0x2a5788[_0x36b846('0x4')]?_0x2a5788[_0x36b846('0x4')][_0x36b846('0x3')]?_[_0x36b846('0xc')](_0x2a5788[_0x36b846('0x4')][_0x36b846('0x3')],function(_0x402c81){const _0x4fed7f=_0x36b846;return{'model':db[_0x402c81[_0x4fed7f('0xb')]],'as':_0x402c81['as'],'attributes':_0x402c81['attributes'],'include':_0x402c81[_0x4fed7f('0x3')]?_['map'](_0x402c81[_0x4fed7f('0x3')],function(_0x59b7d8){const _0xf0cd4c=_0x4fed7f;return{'model':db[_0x59b7d8['model']],'as':_0x59b7d8['as'],'attributes':_0x59b7d8[_0xf0cd4c('0x5')],'include':_0x59b7d8[_0xf0cd4c('0x3')]?_[_0xf0cd4c('0xc')](_0x59b7d8['include'],function(_0x25ea6e){const _0x3337ad=_0xf0cd4c;return{'model':db[_0x25ea6e[_0x3337ad('0xb')]],'as':_0x25ea6e['as'],'attributes':_0x25ea6e[_0x3337ad('0x5')]};}):[]};}):[]};}):[]:[]})[_0x36b846('0x2')](function(_0x5c3d30){const _0x29d7af=_0x36b846;logger[_0x29d7af('0x7')](_0x29d7af('0x8'),_0x2a5788),logger[_0x29d7af('0x11')](_0x29d7af('0x8'),_0x2a5788,JSON[_0x29d7af('0x6')](_0x5c3d30)),_0x206977(_0x5c3d30);})[_0x36b846('0x0')](function(_0x481bf4){const _0x4f508d=_0x36b846;logger[_0x4f508d('0x16')]('GetSugarcrmAccount',_0x481bf4['message'],_0x2a5788),_0x58a41f(_0x13826e['error'](0x1f4,_0x481bf4['message']));});});},exports[_0x5bcf82('0x9')]=function(_0x25e755){const _0x28a5bc=this;return new Promise(function(_0x2da744,_0x187cb0){const _0x2c8ade=a309_0x254f;return db[_0x2c8ade('0xe')][_0x2c8ade('0x12')]({'raw':_0x25e755[_0x2c8ade('0x4')]?_0x25e755['options'][_0x2c8ade('0x13')]===undefined?!![]:![]:!![],'where':_0x25e755[_0x2c8ade('0x4')]?_0x25e755[_0x2c8ade('0x4')][_0x2c8ade('0x14')]||null:null,'attributes':_0x25e755['options']?_0x25e755[_0x2c8ade('0x4')][_0x2c8ade('0x5')]||null:null,'include':_0x25e755[_0x2c8ade('0x4')]?_0x25e755['options'][_0x2c8ade('0x3')]?_['map'](_0x25e755[_0x2c8ade('0x4')]['include'],function(_0xa95acb){const _0x210f6f=_0x2c8ade;return{'model':db[_0xa95acb[_0x210f6f('0xb')]],'as':_0xa95acb['as'],'attributes':_0xa95acb['attributes'],'include':_0xa95acb['include']?_[_0x210f6f('0xc')](_0xa95acb[_0x210f6f('0x3')],function(_0x23c7a0){const _0x330a51=_0x210f6f;return{'model':db[_0x23c7a0[_0x330a51('0xb')]],'as':_0x23c7a0['as'],'attributes':_0x23c7a0[_0x330a51('0x5')],'include':_0x23c7a0['include']?_[_0x330a51('0xc')](_0x23c7a0[_0x330a51('0x3')],function(_0x1e7f47){const _0x73f414=_0x330a51;return{'model':db[_0x1e7f47['model']],'as':_0x1e7f47['as'],'attributes':_0x1e7f47[_0x73f414('0x5')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1db74c){const _0x447258=_0x2c8ade;logger[_0x447258('0x7')](_0x447258('0x9'),_0x25e755),logger[_0x447258('0x11')](_0x447258('0x9'),_0x25e755,JSON['stringify'](_0x1db74c)),_0x2da744(_0x1db74c);})[_0x2c8ade('0x0')](function(_0x367b9b){const _0x3f8f64=_0x2c8ade;logger['error']('ShowSugarcrmAccount',_0x367b9b[_0x3f8f64('0x15')],_0x25e755),_0x187cb0(_0x28a5bc[_0x3f8f64('0x16')](0x1f4,_0x367b9b[_0x3f8f64('0x15')]));});});}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/index.js b/server/api/intSugarcrmConfiguration/index.js index ac9b8b3..a8b0ac1 100644 --- a/server/api/intSugarcrmConfiguration/index.js +++ b/server/api/intSugarcrmConfiguration/index.js @@ -1 +1 @@ -const a310_0x13cd=['post','put','/:id/descriptions','getSubjects','exports','destroy','/:id','/:id/fields','Router','express','/:id/subjects','isAuthenticated','get','getFields','update','../../components/auth/service','index'];(function(_0x45ad24,_0x13cd25){const _0x508a03=function(_0x224d17){while(--_0x224d17){_0x45ad24['push'](_0x45ad24['shift']());}};_0x508a03(++_0x13cd25);}(a310_0x13cd,0x1ec));const a310_0x508a=function(_0x45ad24,_0x13cd25){_0x45ad24=_0x45ad24-0x0;let _0x508a03=a310_0x13cd[_0x45ad24];return _0x508a03;};const _0x25f933=a310_0x508a;'use strict';const express=require(_0x25f933('0xa')),router=express[_0x25f933('0x9')](),auth=require(_0x25f933('0x10')),controller=require('./intSugarcrmConfiguration.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x25f933('0x0')]),router[_0x25f933('0xd')](_0x25f933('0x7'),auth[_0x25f933('0xc')](),controller['show']),router[_0x25f933('0xd')](_0x25f933('0x8'),auth[_0x25f933('0xc')](),controller[_0x25f933('0xe')]),router[_0x25f933('0xd')](_0x25f933('0xb'),auth[_0x25f933('0xc')](),controller[_0x25f933('0x4')]),router[_0x25f933('0xd')](_0x25f933('0x3'),auth['isAuthenticated'](),controller['getDescriptions']),router[_0x25f933('0x1')]('/',auth[_0x25f933('0xc')](),controller['create']),router[_0x25f933('0x2')]('/:id',auth[_0x25f933('0xc')](),controller[_0x25f933('0xf')]),router['delete']('/:id',auth[_0x25f933('0xc')](),controller[_0x25f933('0x6')]),module[_0x25f933('0x5')]=router; \ No newline at end of file +const a310_0x21e2=['/:id','getSubjects','update','create','./intSugarcrmConfiguration.controller','put','/:id/descriptions','isAuthenticated','Router','getFields','get','show','index','post','getDescriptions'];(function(_0x2170d2,_0x21e2f9){const _0x8f3d34=function(_0x4b2bfb){while(--_0x4b2bfb){_0x2170d2['push'](_0x2170d2['shift']());}};_0x8f3d34(++_0x21e2f9);}(a310_0x21e2,0x9b));const a310_0x8f3d=function(_0x2170d2,_0x21e2f9){_0x2170d2=_0x2170d2-0x0;let _0x8f3d34=a310_0x21e2[_0x2170d2];return _0x8f3d34;};const _0x15fe04=a310_0x8f3d;'use strict';const express=require('express'),router=express[_0x15fe04('0x3')](),auth=require('../../components/auth/service'),controller=require(_0x15fe04('0xe'));router[_0x15fe04('0x5')]('/',auth[_0x15fe04('0x2')](),controller[_0x15fe04('0x7')]),router[_0x15fe04('0x5')](_0x15fe04('0xa'),auth[_0x15fe04('0x2')](),controller[_0x15fe04('0x6')]),router[_0x15fe04('0x5')]('/:id/fields',auth[_0x15fe04('0x2')](),controller[_0x15fe04('0x4')]),router[_0x15fe04('0x5')]('/:id/subjects',auth[_0x15fe04('0x2')](),controller[_0x15fe04('0xb')]),router[_0x15fe04('0x5')](_0x15fe04('0x1'),auth[_0x15fe04('0x2')](),controller[_0x15fe04('0x9')]),router[_0x15fe04('0x8')]('/',auth['isAuthenticated'](),controller[_0x15fe04('0xd')]),router[_0x15fe04('0x0')](_0x15fe04('0xa'),auth[_0x15fe04('0x2')](),controller[_0x15fe04('0xc')]),router['delete'](_0x15fe04('0xa'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js index 78e28f9..79aa399 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.attributes.js @@ -1 +1 @@ -const a311_0x57b7=['sequelize','STRING'];(function(_0x5d14f5,_0x57b70c){const _0x4681e1=function(_0x1a508f){while(--_0x1a508f){_0x5d14f5['push'](_0x5d14f5['shift']());}};_0x4681e1(++_0x57b70c);}(a311_0x57b7,0x1c0));const a311_0x4681=function(_0x5d14f5,_0x57b70c){_0x5d14f5=_0x5d14f5-0x0;let _0x4681e1=a311_0x57b7[_0x5d14f5];return _0x4681e1;};const _0x42cb09=a311_0x4681;'use strict';const Sequelize=require(_0x42cb09('0x0'));module['exports']={'name':{'type':Sequelize[_0x42cb09('0x1')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a311_0x297b=['sequelize'];(function(_0x3a99bf,_0x297bf4){const _0x37cdb4=function(_0x62e91a){while(--_0x62e91a){_0x3a99bf['push'](_0x3a99bf['shift']());}};_0x37cdb4(++_0x297bf4);}(a311_0x297b,0xb3));const a311_0x37cd=function(_0x3a99bf,_0x297bf4){_0x3a99bf=_0x3a99bf-0x0;let _0x37cdb4=a311_0x297b[_0x3a99bf];return _0x37cdb4;};const _0x1880cc=a311_0x37cd;'use strict';const Sequelize=require(_0x1880cc('0x0'));module['exports']={'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 15b6554..a4ef51c 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.controller.js @@ -1 +1 @@ -const a312_0x17f7=['intersection','where','end','map','includeAll','Content-Range','sendStatus','params','pick','findAll','destroy','SugarcrmConfiguration','findOne','json','key','getFields','undefined','filters','catch','query','count','limit','show','getDescriptions','type','fields','status','SugarcrmField','nolimit','stack','body','fieldName','sequelize','update','options','attributes','then','filter','sort','send','model','rawAttributes','include','error','merge','keys','like','name','order','index','getSubjects','../../components/parsers/qs','api','offset','lodash','length'];(function(_0x7a725d,_0x17f760){const _0x819256=function(_0x19e0a5){while(--_0x19e0a5){_0x7a725d['push'](_0x7a725d['shift']());}};_0x819256(++_0x17f760);}(a312_0x17f7,0xf2));const a312_0x8192=function(_0x7a725d,_0x17f760){_0x7a725d=_0x7a725d-0x0;let _0x819256=a312_0x17f7[_0x7a725d];return _0x819256;};const _0x466aad=a312_0x8192;'use strict';const _=require(_0x466aad('0x24')),qs=require(_0x466aad('0x21')),logger=require('../../config/logger')(_0x466aad('0x22')),db=require('../../mysqldb')['db'],{Op}=require(_0x466aad('0xe'));function respondWithResult(_0x19e0a5,_0x241f5a){return _0x241f5a=_0x241f5a||0xc8,function(_0x3c2042){const _0x56770d=a312_0x8192;if(_0x3c2042)return _0x19e0a5[_0x56770d('0x8')](_0x241f5a)[_0x56770d('0x33')](_0x3c2042);};}function respondWithFilteredResult(_0x40904a,_0x5afd3a){return function(_0x5c71c9){const _0x34a300=a312_0x8192;if(_0x5c71c9){const _0x5e2fb5=_0x5c71c9[_0x34a300('0x2')],_0x1cfde1=_0x5afd3a[_0x34a300('0x23')];let _0x35918d=_0x5afd3a[_0x34a300('0x23')]+_0x5afd3a[_0x34a300('0x3')],_0x43a8f2;return _0x35918d>=_0x5e2fb5?(_0x35918d=_0x5e2fb5,_0x43a8f2=0xc8):_0x43a8f2=0xce,_0x40904a['status'](_0x43a8f2),_0x40904a['set'](_0x34a300('0x2b'),_0x1cfde1+'-'+_0x35918d+'/'+_0x5e2fb5)[_0x34a300('0x33')](_0x5c71c9);}return null;};}function saveUpdates(_0x5ddb16){return function(_0x4f22ab){const _0x2a4422=a312_0x8192;if(_0x4f22ab)return _0x4f22ab[_0x2a4422('0xf')](_0x5ddb16)[_0x2a4422('0x12')](function(_0xc5aa65){return _0xc5aa65;});return null;};}function removeEntity(_0x419e15){return function(_0x39d445){const _0x40a603=a312_0x8192;if(_0x39d445)return _0x39d445[_0x40a603('0x30')]()['then'](function(){const _0x12b819=_0x40a603;_0x419e15[_0x12b819('0x8')](0xcc)[_0x12b819('0x28')]();});};}function handleEntityNotFound(_0xeeb8f2){return function(_0x5956db){const _0x4afb5d=a312_0x8192;return!_0x5956db&&_0xeeb8f2[_0x4afb5d('0x2c')](0x194),_0x5956db;};}function handleError(_0x19a5db,_0x91b852){return _0x91b852=_0x91b852||0x1f4,function(_0x13262e){const _0x46e084=a312_0x8192;logger[_0x46e084('0x19')](_0x13262e[_0x46e084('0xb')]),_0x13262e[_0x46e084('0x1d')]&&delete _0x13262e[_0x46e084('0x1d')],_0x19a5db[_0x46e084('0x8')](_0x91b852)[_0x46e084('0x15')](_0x13262e);};}exports[_0x466aad('0x1f')]=function(_0x102aa3,_0x181838){const _0x360d90=_0x466aad;let _0x1633ac={};const _0x3bbb66={},_0x2323d2={'count':0x0,'rows':[]},_0x9901e3=_['map'](db[_0x360d90('0x31')][_0x360d90('0x17')],function(_0x11d15b){const _0x3186e6=_0x360d90;return{'name':_0x11d15b[_0x3186e6('0xd')],'type':_0x11d15b[_0x3186e6('0x6')][_0x3186e6('0x34')]};});_0x3bbb66[_0x360d90('0x16')]=_[_0x360d90('0x29')](_0x9901e3,_0x360d90('0x1d')),_0x3bbb66[_0x360d90('0x1')]=_[_0x360d90('0x1b')](_0x102aa3[_0x360d90('0x1')]),_0x3bbb66['filters']=_['intersection'](_0x3bbb66[_0x360d90('0x16')],_0x3bbb66[_0x360d90('0x1')]),_0x1633ac['attributes']=_['intersection'](_0x3bbb66[_0x360d90('0x16')],qs[_0x360d90('0x7')](_0x102aa3[_0x360d90('0x1')][_0x360d90('0x7')])),_0x1633ac[_0x360d90('0x11')]=_0x1633ac[_0x360d90('0x11')][_0x360d90('0x25')]?_0x1633ac[_0x360d90('0x11')]:_0x3bbb66[_0x360d90('0x16')];typeof _0x102aa3[_0x360d90('0x1')][_0x360d90('0xa')]===_0x360d90('0x36')&&(_0x1633ac['limit']=qs['limit'](_0x102aa3[_0x360d90('0x1')]['limit']),_0x1633ac[_0x360d90('0x23')]=qs[_0x360d90('0x23')](_0x102aa3[_0x360d90('0x1')][_0x360d90('0x23')]));_0x1633ac[_0x360d90('0x1e')]=qs['sort'](_0x102aa3[_0x360d90('0x1')]['sort']),_0x1633ac['where']=qs['filters'](_[_0x360d90('0x2e')](_0x102aa3[_0x360d90('0x1')],_0x3bbb66['filters']),_0x9901e3);_0x102aa3[_0x360d90('0x1')][_0x360d90('0x13')]&&(_0x1633ac[_0x360d90('0x27')]=_[_0x360d90('0x1a')](_0x1633ac['where'],{[Op['or']]:_[_0x360d90('0x29')](_0x9901e3,function(_0x4b7cd2){const _0x443b67=_0x360d90;if(_0x4b7cd2[_0x443b67('0x6')]!=='VIRTUAL'){const _0x19a5a7={};return _0x19a5a7[_0x4b7cd2[_0x443b67('0x1d')]]={[Op[_0x443b67('0x1c')]]:'%'+_0x102aa3[_0x443b67('0x1')][_0x443b67('0x13')]+'%'},_0x19a5a7;}})}));_0x1633ac=_[_0x360d90('0x1a')]({},_0x1633ac,_0x102aa3[_0x360d90('0x10')]);const _0x27fa8f={'where':_0x1633ac[_0x360d90('0x27')]};return db[_0x360d90('0x31')]['count'](_0x27fa8f)['then'](function(_0x1882c4){const _0x4ed38c=_0x360d90;return _0x2323d2[_0x4ed38c('0x2')]=_0x1882c4,_0x102aa3[_0x4ed38c('0x1')][_0x4ed38c('0x2a')]&&(_0x1633ac[_0x4ed38c('0x18')]=[{'all':!![]}]),db[_0x4ed38c('0x31')][_0x4ed38c('0x2f')](_0x1633ac);})[_0x360d90('0x12')](function(_0x1c3e63){return _0x2323d2['rows']=_0x1c3e63,_0x2323d2;})[_0x360d90('0x12')](respondWithFilteredResult(_0x181838,_0x1633ac))[_0x360d90('0x0')](handleError(_0x181838,null));},exports[_0x466aad('0x4')]=function(_0x4aaba7,_0x2627cb){const _0x2629a0=_0x466aad;let _0xa950f2={'raw':![],'where':{'id':_0x4aaba7['params']['id']}};const _0x30bd01={};return _0x30bd01[_0x2629a0('0x16')]=_['keys'](db[_0x2629a0('0x31')]['rawAttributes']),_0x30bd01[_0x2629a0('0x1')]=_[_0x2629a0('0x1b')](_0x4aaba7[_0x2629a0('0x1')]),_0x30bd01[_0x2629a0('0x37')]=_[_0x2629a0('0x26')](_0x30bd01[_0x2629a0('0x16')],_0x30bd01[_0x2629a0('0x1')]),_0xa950f2['attributes']=_[_0x2629a0('0x26')](_0x30bd01[_0x2629a0('0x16')],qs[_0x2629a0('0x7')](_0x4aaba7[_0x2629a0('0x1')][_0x2629a0('0x7')])),_0xa950f2[_0x2629a0('0x11')]=_0xa950f2['attributes']['length']?_0xa950f2[_0x2629a0('0x11')]:_0x30bd01['model'],_0x4aaba7[_0x2629a0('0x1')][_0x2629a0('0x2a')]&&(_0xa950f2['include']=[{'all':!![]}]),_0xa950f2=_[_0x2629a0('0x1a')]({},_0xa950f2,_0x4aaba7[_0x2629a0('0x10')]),db[_0x2629a0('0x31')][_0x2629a0('0x32')](_0xa950f2)['then'](handleEntityNotFound(_0x2627cb,null))[_0x2629a0('0x12')](respondWithResult(_0x2627cb,null))['catch'](handleError(_0x2627cb,null));},exports['create']=function(_0x37b2fb,_0x45a16a){const _0x7718c5=_0x466aad;return db[_0x7718c5('0x31')]['create'](_0x37b2fb['body'],{})[_0x7718c5('0x12')](respondWithResult(_0x45a16a,0xc9))[_0x7718c5('0x0')](handleError(_0x45a16a,null));},exports['update']=function(_0x4d3158,_0x5966f6){const _0x1e04f7=_0x466aad;return _0x4d3158[_0x1e04f7('0xc')]['id']&&delete _0x4d3158[_0x1e04f7('0xc')]['id'],db[_0x1e04f7('0x31')][_0x1e04f7('0x32')]({'where':{'id':_0x4d3158['params']['id']}})[_0x1e04f7('0x12')](handleEntityNotFound(_0x5966f6,null))[_0x1e04f7('0x12')](saveUpdates(_0x4d3158['body'],null))[_0x1e04f7('0x12')](respondWithResult(_0x5966f6,null))[_0x1e04f7('0x0')](handleError(_0x5966f6,null));},exports[_0x466aad('0x30')]=function(_0x2db6f8,_0x5d6945){const _0x3ae3cd=_0x466aad;return db['SugarcrmConfiguration'][_0x3ae3cd('0x32')]({'where':{'id':_0x2db6f8[_0x3ae3cd('0x2d')]['id']}})['then'](handleEntityNotFound(_0x5d6945,null))[_0x3ae3cd('0x12')](removeEntity(_0x5d6945,null))[_0x3ae3cd('0x0')](handleError(_0x5d6945,null));},exports[_0x466aad('0x35')]=function(_0x503c98,_0xcde71d){const _0xe57784=_0x466aad;let _0x54b196={};const _0xa130c9={};let _0x5945fa,_0x23b23f;return db[_0xe57784('0x31')][_0xe57784('0x32')]({'where':{'id':_0x503c98['params']['id']}})['then'](handleEntityNotFound(_0xcde71d,null))[_0xe57784('0x12')](function(_0x52d7b1){const _0xe3a7da=_0xe57784;if(_0x52d7b1)return _0x5945fa=_0x52d7b1,_0xa130c9['model']=_[_0xe3a7da('0x1b')](db['SugarcrmField'][_0xe3a7da('0x17')]),_0xa130c9[_0xe3a7da('0x1')]=_[_0xe3a7da('0x1b')](_0x503c98[_0xe3a7da('0x1')]),_0xa130c9['filters']=_[_0xe3a7da('0x26')](_0xa130c9[_0xe3a7da('0x16')],_0xa130c9[_0xe3a7da('0x1')]),_0x54b196[_0xe3a7da('0x11')]=_['intersection'](_0xa130c9[_0xe3a7da('0x16')],qs[_0xe3a7da('0x7')](_0x503c98[_0xe3a7da('0x1')][_0xe3a7da('0x7')])),_0x54b196[_0xe3a7da('0x11')]=_0x54b196[_0xe3a7da('0x11')][_0xe3a7da('0x25')]?_0x54b196[_0xe3a7da('0x11')]:_0xa130c9['model'],_0x54b196['order']=qs[_0xe3a7da('0x14')](_0x503c98[_0xe3a7da('0x1')][_0xe3a7da('0x14')]),_0x54b196[_0xe3a7da('0x27')]=qs[_0xe3a7da('0x37')](_[_0xe3a7da('0x2e')](_0x503c98[_0xe3a7da('0x1')],_0xa130c9['filters'])),_0x503c98[_0xe3a7da('0x1')][_0xe3a7da('0x13')]&&(_0x54b196[_0xe3a7da('0x27')]=_[_0xe3a7da('0x1a')](_0x54b196[_0xe3a7da('0x27')],{[Op['or']]:_[_0xe3a7da('0x29')](_0x54b196[_0xe3a7da('0x11')],function(_0x26329b){const _0x2b4baf=_0xe3a7da,_0x4dceaa={};return _0x4dceaa[_0x26329b]={[Op[_0x2b4baf('0x1c')]]:'%'+_0x503c98[_0x2b4baf('0x1')][_0x2b4baf('0x13')]+'%'},_0x4dceaa;})})),_0x54b196=_[_0xe3a7da('0x1a')]({},_0x54b196,_0x503c98[_0xe3a7da('0x10')]),_0x5945fa[_0xe3a7da('0x35')](_0x54b196);})[_0xe57784('0x12')](function(_0x4bf568){const _0x5da7c2=_0xe57784;if(_0x4bf568)return _0x23b23f=_0x4bf568[_0x5da7c2('0x25')],typeof _0x503c98['query'][_0x5da7c2('0xa')]===_0x5da7c2('0x36')&&(_0x54b196['limit']=qs[_0x5da7c2('0x3')](_0x503c98[_0x5da7c2('0x1')][_0x5da7c2('0x3')]),_0x54b196[_0x5da7c2('0x23')]=qs['offset'](_0x503c98[_0x5da7c2('0x1')]['offset'])),_0x5945fa[_0x5da7c2('0x35')](_0x54b196);})[_0xe57784('0x12')](function(_0x3ba44f){if(_0x3ba44f)return _0x3ba44f?{'count':_0x23b23f,'rows':_0x3ba44f}:null;})[_0xe57784('0x12')](respondWithResult(_0xcde71d,null))['catch'](handleError(_0xcde71d,null));},exports[_0x466aad('0x20')]=function(_0x7f9272,_0xa3ee4b){const _0x29b910=_0x466aad;let _0x2a8393={};const _0x28ba0e={};let _0xe09abb,_0x39b5b0;return db[_0x29b910('0x31')][_0x29b910('0x32')]({'where':{'id':_0x7f9272['params']['id']}})[_0x29b910('0x12')](handleEntityNotFound(_0xa3ee4b,null))[_0x29b910('0x12')](function(_0x4f7f5a){const _0x1fa02e=_0x29b910;if(_0x4f7f5a)return _0xe09abb=_0x4f7f5a,_0x28ba0e['model']=_['keys'](db[_0x1fa02e('0x9')][_0x1fa02e('0x17')]),_0x28ba0e['query']=_['keys'](_0x7f9272[_0x1fa02e('0x1')]),_0x28ba0e['filters']=_[_0x1fa02e('0x26')](_0x28ba0e['model'],_0x28ba0e[_0x1fa02e('0x1')]),_0x2a8393[_0x1fa02e('0x11')]=_[_0x1fa02e('0x26')](_0x28ba0e[_0x1fa02e('0x16')],qs['fields'](_0x7f9272[_0x1fa02e('0x1')][_0x1fa02e('0x7')])),_0x2a8393[_0x1fa02e('0x11')]=_0x2a8393['attributes']['length']?_0x2a8393[_0x1fa02e('0x11')]:_0x28ba0e[_0x1fa02e('0x16')],_0x2a8393[_0x1fa02e('0x1e')]=qs[_0x1fa02e('0x14')](_0x7f9272[_0x1fa02e('0x1')]['sort']),_0x2a8393['where']=qs['filters'](_['pick'](_0x7f9272[_0x1fa02e('0x1')],_0x28ba0e['filters'])),_0x7f9272[_0x1fa02e('0x1')]['filter']&&(_0x2a8393[_0x1fa02e('0x27')]=_[_0x1fa02e('0x1a')](_0x2a8393['where'],{[Op['or']]:_['map'](_0x2a8393[_0x1fa02e('0x11')],function(_0x2658cc){const _0x1b3da8=_0x1fa02e,_0xa7a63d={};return _0xa7a63d[_0x2658cc]={[Op[_0x1b3da8('0x1c')]]:'%'+_0x7f9272[_0x1b3da8('0x1')][_0x1b3da8('0x13')]+'%'},_0xa7a63d;})})),_0x2a8393=_[_0x1fa02e('0x1a')]({},_0x2a8393,_0x7f9272[_0x1fa02e('0x10')]),_0xe09abb[_0x1fa02e('0x20')](_0x2a8393);})[_0x29b910('0x12')](function(_0x1a2d88){const _0x1edca4=_0x29b910;if(_0x1a2d88)return _0x39b5b0=_0x1a2d88[_0x1edca4('0x25')],typeof _0x7f9272['query']['nolimit']===_0x1edca4('0x36')&&(_0x2a8393[_0x1edca4('0x3')]=qs[_0x1edca4('0x3')](_0x7f9272[_0x1edca4('0x1')][_0x1edca4('0x3')]),_0x2a8393[_0x1edca4('0x23')]=qs[_0x1edca4('0x23')](_0x7f9272[_0x1edca4('0x1')][_0x1edca4('0x23')])),_0xe09abb[_0x1edca4('0x20')](_0x2a8393);})[_0x29b910('0x12')](function(_0x7dc5a9){if(_0x7dc5a9)return _0x7dc5a9?{'count':_0x39b5b0,'rows':_0x7dc5a9}:null;})[_0x29b910('0x12')](respondWithResult(_0xa3ee4b,null))[_0x29b910('0x0')](handleError(_0xa3ee4b,null));},exports[_0x466aad('0x5')]=function(_0x199a1e,_0x3ecd14){const _0x12d269=_0x466aad;let _0x507708={};const _0x4377b9={};let _0x33aadd,_0x4178f4;return db[_0x12d269('0x31')][_0x12d269('0x32')]({'where':{'id':_0x199a1e[_0x12d269('0x2d')]['id']}})[_0x12d269('0x12')](handleEntityNotFound(_0x3ecd14,null))[_0x12d269('0x12')](function(_0x3ca386){const _0x178ce7=_0x12d269;if(_0x3ca386)return _0x33aadd=_0x3ca386,_0x4377b9[_0x178ce7('0x16')]=_[_0x178ce7('0x1b')](db['SugarcrmField'][_0x178ce7('0x17')]),_0x4377b9[_0x178ce7('0x1')]=_['keys'](_0x199a1e[_0x178ce7('0x1')]),_0x4377b9[_0x178ce7('0x37')]=_[_0x178ce7('0x26')](_0x4377b9[_0x178ce7('0x16')],_0x4377b9['query']),_0x507708['attributes']=_[_0x178ce7('0x26')](_0x4377b9[_0x178ce7('0x16')],qs[_0x178ce7('0x7')](_0x199a1e[_0x178ce7('0x1')][_0x178ce7('0x7')])),_0x507708[_0x178ce7('0x11')]=_0x507708[_0x178ce7('0x11')][_0x178ce7('0x25')]?_0x507708[_0x178ce7('0x11')]:_0x4377b9[_0x178ce7('0x16')],_0x507708[_0x178ce7('0x1e')]=qs[_0x178ce7('0x14')](_0x199a1e[_0x178ce7('0x1')][_0x178ce7('0x14')]),_0x507708['where']=qs[_0x178ce7('0x37')](_[_0x178ce7('0x2e')](_0x199a1e[_0x178ce7('0x1')],_0x4377b9[_0x178ce7('0x37')])),_0x199a1e[_0x178ce7('0x1')][_0x178ce7('0x13')]&&(_0x507708[_0x178ce7('0x27')]=_['merge'](_0x507708['where'],{[Op['or']]:_[_0x178ce7('0x29')](_0x507708['attributes'],function(_0x35d518){const _0x487a1b=_0x178ce7,_0x3ca371={};return _0x3ca371[_0x35d518]={[Op[_0x487a1b('0x1c')]]:'%'+_0x199a1e[_0x487a1b('0x1')]['filter']+'%'},_0x3ca371;})})),_0x507708=_['merge']({},_0x507708,_0x199a1e[_0x178ce7('0x10')]),_0x33aadd[_0x178ce7('0x5')](_0x507708);})['then'](function(_0x4d93f2){const _0x2e642b=_0x12d269;if(_0x4d93f2)return _0x4178f4=_0x4d93f2['length'],typeof _0x199a1e[_0x2e642b('0x1')][_0x2e642b('0xa')]===_0x2e642b('0x36')&&(_0x507708['limit']=qs[_0x2e642b('0x3')](_0x199a1e[_0x2e642b('0x1')][_0x2e642b('0x3')]),_0x507708['offset']=qs[_0x2e642b('0x23')](_0x199a1e[_0x2e642b('0x1')][_0x2e642b('0x23')])),_0x33aadd[_0x2e642b('0x5')](_0x507708);})[_0x12d269('0x12')](function(_0x520bb){if(_0x520bb)return _0x520bb?{'count':_0x4178f4,'rows':_0x520bb}:null;})[_0x12d269('0x12')](respondWithResult(_0x3ecd14,null))['catch'](handleError(_0x3ecd14,null));}; \ No newline at end of file +const a312_0x1f1a=['name','where','findOne','include','attributes','findAll','catch','fieldName','index','fields','rawAttributes','set','SugarcrmField','json','getFields','like','query','../../mysqldb','filters','map','pick','offset','count','intersection','api','sort','create','options','send','includeAll','undefined','sendStatus','keys','limit','filter','params','order','type','length','getDescriptions','SugarcrmConfiguration','model','body','merge','Content-Range','destroy','then','../../components/parsers/qs','status','getSubjects','key','update','sequelize','nolimit'];(function(_0x95a75,_0x1f1abd){const _0x52b6a8=function(_0x4e331f){while(--_0x4e331f){_0x95a75['push'](_0x95a75['shift']());}};_0x52b6a8(++_0x1f1abd);}(a312_0x1f1a,0xcc));const a312_0x52b6=function(_0x95a75,_0x1f1abd){_0x95a75=_0x95a75-0x0;let _0x52b6a8=a312_0x1f1a[_0x95a75];return _0x52b6a8;};const _0x33a4e2=a312_0x52b6;'use strict';const _=require('lodash'),qs=require(_0x33a4e2('0x5')),logger=require('../../config/logger')(_0x33a4e2('0x24')),db=require(_0x33a4e2('0x1d'))['db'],{Op}=require(_0x33a4e2('0xa'));function respondWithResult(_0x4e331f,_0x42eb3d){return _0x42eb3d=_0x42eb3d||0xc8,function(_0x22f6c8){const _0x71a0f8=a312_0x52b6;if(_0x22f6c8)return _0x4e331f['status'](_0x42eb3d)[_0x71a0f8('0x19')](_0x22f6c8);};}function respondWithFilteredResult(_0x11474d,_0x5d1ff7){return function(_0xe5ef1c){const _0x38af40=a312_0x52b6;if(_0xe5ef1c){const _0x57e525=_0xe5ef1c[_0x38af40('0x22')],_0x3d7249=_0x5d1ff7[_0x38af40('0x21')];let _0x20b71d=_0x5d1ff7[_0x38af40('0x21')]+_0x5d1ff7['limit'],_0x3811d0;return _0x20b71d>=_0x57e525?(_0x20b71d=_0x57e525,_0x3811d0=0xc8):_0x3811d0=0xce,_0x11474d['status'](_0x3811d0),_0x11474d[_0x38af40('0x17')](_0x38af40('0x2'),_0x3d7249+'-'+_0x20b71d+'/'+_0x57e525)[_0x38af40('0x19')](_0xe5ef1c);}return null;};}function saveUpdates(_0x422b23){return function(_0x286584){const _0x225067=a312_0x52b6;if(_0x286584)return _0x286584['update'](_0x422b23)[_0x225067('0x4')](function(_0x3584dd){return _0x3584dd;});return null;};}function removeEntity(_0x519f19){return function(_0xdb279d){if(_0xdb279d)return _0xdb279d['destroy']()['then'](function(){_0x519f19['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x1a4480){return function(_0x1ba685){const _0x410b9c=a312_0x52b6;return!_0x1ba685&&_0x1a4480[_0x410b9c('0x2b')](0x194),_0x1ba685;};}function handleError(_0xe0f8df,_0x2ce363){return _0x2ce363=_0x2ce363||0x1f4,function(_0x37c19d){const _0x49552b=a312_0x52b6;logger['error'](_0x37c19d['stack']),_0x37c19d[_0x49552b('0xc')]&&delete _0x37c19d[_0x49552b('0xc')],_0xe0f8df[_0x49552b('0x6')](_0x2ce363)[_0x49552b('0x28')](_0x37c19d);};}exports[_0x33a4e2('0x14')]=function(_0x3a6259,_0x8be51){const _0x323fcf=_0x33a4e2;let _0x24e345={};const _0x30f248={},_0x17ce59={'count':0x0,'rows':[]},_0x38ed22=_['map'](db[_0x323fcf('0x34')][_0x323fcf('0x16')],function(_0x50c89e){const _0x3f9b1e=_0x323fcf;return{'name':_0x50c89e[_0x3f9b1e('0x13')],'type':_0x50c89e['type'][_0x3f9b1e('0x8')]};});_0x30f248['model']=_['map'](_0x38ed22,_0x323fcf('0xc')),_0x30f248['query']=_[_0x323fcf('0x2c')](_0x3a6259[_0x323fcf('0x1c')]),_0x30f248[_0x323fcf('0x1e')]=_[_0x323fcf('0x23')](_0x30f248['model'],_0x30f248[_0x323fcf('0x1c')]),_0x24e345['attributes']=_[_0x323fcf('0x23')](_0x30f248[_0x323fcf('0x35')],qs[_0x323fcf('0x15')](_0x3a6259[_0x323fcf('0x1c')]['fields'])),_0x24e345['attributes']=_0x24e345[_0x323fcf('0x10')][_0x323fcf('0x32')]?_0x24e345[_0x323fcf('0x10')]:_0x30f248['model'];typeof _0x3a6259[_0x323fcf('0x1c')]['nolimit']==='undefined'&&(_0x24e345[_0x323fcf('0x2d')]=qs[_0x323fcf('0x2d')](_0x3a6259[_0x323fcf('0x1c')][_0x323fcf('0x2d')]),_0x24e345['offset']=qs[_0x323fcf('0x21')](_0x3a6259[_0x323fcf('0x1c')][_0x323fcf('0x21')]));_0x24e345[_0x323fcf('0x30')]=qs['sort'](_0x3a6259[_0x323fcf('0x1c')][_0x323fcf('0x25')]),_0x24e345[_0x323fcf('0xd')]=qs[_0x323fcf('0x1e')](_[_0x323fcf('0x20')](_0x3a6259[_0x323fcf('0x1c')],_0x30f248['filters']),_0x38ed22);_0x3a6259[_0x323fcf('0x1c')][_0x323fcf('0x2e')]&&(_0x24e345['where']=_[_0x323fcf('0x1')](_0x24e345[_0x323fcf('0xd')],{[Op['or']]:_[_0x323fcf('0x1f')](_0x38ed22,function(_0x429988){const _0x5d31aa=_0x323fcf;if(_0x429988[_0x5d31aa('0x31')]!=='VIRTUAL'){const _0x4755fa={};return _0x4755fa[_0x429988[_0x5d31aa('0xc')]]={[Op['like']]:'%'+_0x3a6259[_0x5d31aa('0x1c')][_0x5d31aa('0x2e')]+'%'},_0x4755fa;}})}));_0x24e345=_[_0x323fcf('0x1')]({},_0x24e345,_0x3a6259['options']);const _0x3fc21b={'where':_0x24e345[_0x323fcf('0xd')]};return db['SugarcrmConfiguration'][_0x323fcf('0x22')](_0x3fc21b)[_0x323fcf('0x4')](function(_0x4b5f1b){const _0x2056b5=_0x323fcf;return _0x17ce59[_0x2056b5('0x22')]=_0x4b5f1b,_0x3a6259[_0x2056b5('0x1c')]['includeAll']&&(_0x24e345[_0x2056b5('0xf')]=[{'all':!![]}]),db['SugarcrmConfiguration'][_0x2056b5('0x11')](_0x24e345);})[_0x323fcf('0x4')](function(_0x38fbf1){return _0x17ce59['rows']=_0x38fbf1,_0x17ce59;})['then'](respondWithFilteredResult(_0x8be51,_0x24e345))[_0x323fcf('0x12')](handleError(_0x8be51,null));},exports['show']=function(_0xf39511,_0x4a5027){const _0x51c598=_0x33a4e2;let _0x48243a={'raw':![],'where':{'id':_0xf39511[_0x51c598('0x2f')]['id']}};const _0x3e8aad={};return _0x3e8aad['model']=_[_0x51c598('0x2c')](db[_0x51c598('0x34')][_0x51c598('0x16')]),_0x3e8aad[_0x51c598('0x1c')]=_[_0x51c598('0x2c')](_0xf39511[_0x51c598('0x1c')]),_0x3e8aad[_0x51c598('0x1e')]=_[_0x51c598('0x23')](_0x3e8aad['model'],_0x3e8aad[_0x51c598('0x1c')]),_0x48243a[_0x51c598('0x10')]=_['intersection'](_0x3e8aad[_0x51c598('0x35')],qs[_0x51c598('0x15')](_0xf39511[_0x51c598('0x1c')][_0x51c598('0x15')])),_0x48243a[_0x51c598('0x10')]=_0x48243a[_0x51c598('0x10')][_0x51c598('0x32')]?_0x48243a['attributes']:_0x3e8aad[_0x51c598('0x35')],_0xf39511[_0x51c598('0x1c')][_0x51c598('0x29')]&&(_0x48243a[_0x51c598('0xf')]=[{'all':!![]}]),_0x48243a=_['merge']({},_0x48243a,_0xf39511[_0x51c598('0x27')]),db[_0x51c598('0x34')][_0x51c598('0xe')](_0x48243a)[_0x51c598('0x4')](handleEntityNotFound(_0x4a5027,null))[_0x51c598('0x4')](respondWithResult(_0x4a5027,null))['catch'](handleError(_0x4a5027,null));},exports[_0x33a4e2('0x26')]=function(_0x57fced,_0x83f0fc){const _0x5c758e=_0x33a4e2;return db[_0x5c758e('0x34')]['create'](_0x57fced['body'],{})['then'](respondWithResult(_0x83f0fc,0xc9))['catch'](handleError(_0x83f0fc,null));},exports[_0x33a4e2('0x9')]=function(_0x59962e,_0xa86275){const _0x1fedb6=_0x33a4e2;return _0x59962e[_0x1fedb6('0x0')]['id']&&delete _0x59962e[_0x1fedb6('0x0')]['id'],db[_0x1fedb6('0x34')][_0x1fedb6('0xe')]({'where':{'id':_0x59962e[_0x1fedb6('0x2f')]['id']}})[_0x1fedb6('0x4')](handleEntityNotFound(_0xa86275,null))[_0x1fedb6('0x4')](saveUpdates(_0x59962e[_0x1fedb6('0x0')],null))[_0x1fedb6('0x4')](respondWithResult(_0xa86275,null))[_0x1fedb6('0x12')](handleError(_0xa86275,null));},exports[_0x33a4e2('0x3')]=function(_0x39aee8,_0x3dc403){const _0x4f2cd2=_0x33a4e2;return db['SugarcrmConfiguration'][_0x4f2cd2('0xe')]({'where':{'id':_0x39aee8[_0x4f2cd2('0x2f')]['id']}})[_0x4f2cd2('0x4')](handleEntityNotFound(_0x3dc403,null))[_0x4f2cd2('0x4')](removeEntity(_0x3dc403,null))[_0x4f2cd2('0x12')](handleError(_0x3dc403,null));},exports[_0x33a4e2('0x1a')]=function(_0x19f676,_0x405041){const _0x4ff04c=_0x33a4e2;let _0x45f75d={};const _0xa603c1={};let _0x188828,_0x35ece3;return db[_0x4ff04c('0x34')][_0x4ff04c('0xe')]({'where':{'id':_0x19f676[_0x4ff04c('0x2f')]['id']}})['then'](handleEntityNotFound(_0x405041,null))['then'](function(_0x49a96b){const _0x9a62ef=_0x4ff04c;if(_0x49a96b)return _0x188828=_0x49a96b,_0xa603c1[_0x9a62ef('0x35')]=_[_0x9a62ef('0x2c')](db[_0x9a62ef('0x18')]['rawAttributes']),_0xa603c1[_0x9a62ef('0x1c')]=_['keys'](_0x19f676[_0x9a62ef('0x1c')]),_0xa603c1[_0x9a62ef('0x1e')]=_[_0x9a62ef('0x23')](_0xa603c1['model'],_0xa603c1[_0x9a62ef('0x1c')]),_0x45f75d[_0x9a62ef('0x10')]=_[_0x9a62ef('0x23')](_0xa603c1[_0x9a62ef('0x35')],qs[_0x9a62ef('0x15')](_0x19f676[_0x9a62ef('0x1c')]['fields'])),_0x45f75d[_0x9a62ef('0x10')]=_0x45f75d[_0x9a62ef('0x10')]['length']?_0x45f75d[_0x9a62ef('0x10')]:_0xa603c1[_0x9a62ef('0x35')],_0x45f75d['order']=qs['sort'](_0x19f676['query'][_0x9a62ef('0x25')]),_0x45f75d['where']=qs[_0x9a62ef('0x1e')](_[_0x9a62ef('0x20')](_0x19f676[_0x9a62ef('0x1c')],_0xa603c1['filters'])),_0x19f676[_0x9a62ef('0x1c')][_0x9a62ef('0x2e')]&&(_0x45f75d['where']=_[_0x9a62ef('0x1')](_0x45f75d[_0x9a62ef('0xd')],{[Op['or']]:_[_0x9a62ef('0x1f')](_0x45f75d['attributes'],function(_0xd06235){const _0x413988=_0x9a62ef,_0x3b71a7={};return _0x3b71a7[_0xd06235]={[Op[_0x413988('0x1b')]]:'%'+_0x19f676[_0x413988('0x1c')]['filter']+'%'},_0x3b71a7;})})),_0x45f75d=_[_0x9a62ef('0x1')]({},_0x45f75d,_0x19f676[_0x9a62ef('0x27')]),_0x188828[_0x9a62ef('0x1a')](_0x45f75d);})[_0x4ff04c('0x4')](function(_0xc37d12){const _0x16dbd9=_0x4ff04c;if(_0xc37d12)return _0x35ece3=_0xc37d12[_0x16dbd9('0x32')],typeof _0x19f676[_0x16dbd9('0x1c')][_0x16dbd9('0xb')]===_0x16dbd9('0x2a')&&(_0x45f75d[_0x16dbd9('0x2d')]=qs[_0x16dbd9('0x2d')](_0x19f676['query'][_0x16dbd9('0x2d')]),_0x45f75d[_0x16dbd9('0x21')]=qs['offset'](_0x19f676['query']['offset'])),_0x188828[_0x16dbd9('0x1a')](_0x45f75d);})[_0x4ff04c('0x4')](function(_0x4af10b){if(_0x4af10b)return _0x4af10b?{'count':_0x35ece3,'rows':_0x4af10b}:null;})['then'](respondWithResult(_0x405041,null))[_0x4ff04c('0x12')](handleError(_0x405041,null));},exports[_0x33a4e2('0x7')]=function(_0xa73148,_0x5333ef){const _0x1bbed9=_0x33a4e2;let _0x3f11f8={};const _0x423656={};let _0x2c7919,_0x2252f4;return db[_0x1bbed9('0x34')][_0x1bbed9('0xe')]({'where':{'id':_0xa73148[_0x1bbed9('0x2f')]['id']}})[_0x1bbed9('0x4')](handleEntityNotFound(_0x5333ef,null))[_0x1bbed9('0x4')](function(_0x3f06ff){const _0xf35889=_0x1bbed9;if(_0x3f06ff)return _0x2c7919=_0x3f06ff,_0x423656[_0xf35889('0x35')]=_[_0xf35889('0x2c')](db[_0xf35889('0x18')]['rawAttributes']),_0x423656[_0xf35889('0x1c')]=_[_0xf35889('0x2c')](_0xa73148[_0xf35889('0x1c')]),_0x423656[_0xf35889('0x1e')]=_[_0xf35889('0x23')](_0x423656[_0xf35889('0x35')],_0x423656['query']),_0x3f11f8['attributes']=_[_0xf35889('0x23')](_0x423656['model'],qs[_0xf35889('0x15')](_0xa73148[_0xf35889('0x1c')]['fields'])),_0x3f11f8[_0xf35889('0x10')]=_0x3f11f8[_0xf35889('0x10')]['length']?_0x3f11f8[_0xf35889('0x10')]:_0x423656[_0xf35889('0x35')],_0x3f11f8[_0xf35889('0x30')]=qs['sort'](_0xa73148['query']['sort']),_0x3f11f8[_0xf35889('0xd')]=qs[_0xf35889('0x1e')](_[_0xf35889('0x20')](_0xa73148[_0xf35889('0x1c')],_0x423656[_0xf35889('0x1e')])),_0xa73148['query']['filter']&&(_0x3f11f8[_0xf35889('0xd')]=_[_0xf35889('0x1')](_0x3f11f8[_0xf35889('0xd')],{[Op['or']]:_[_0xf35889('0x1f')](_0x3f11f8[_0xf35889('0x10')],function(_0x3ac0cb){const _0x2eb3e5=_0xf35889,_0x411f71={};return _0x411f71[_0x3ac0cb]={[Op[_0x2eb3e5('0x1b')]]:'%'+_0xa73148[_0x2eb3e5('0x1c')]['filter']+'%'},_0x411f71;})})),_0x3f11f8=_[_0xf35889('0x1')]({},_0x3f11f8,_0xa73148['options']),_0x2c7919[_0xf35889('0x7')](_0x3f11f8);})['then'](function(_0x23b2f0){const _0x10e089=_0x1bbed9;if(_0x23b2f0)return _0x2252f4=_0x23b2f0[_0x10e089('0x32')],typeof _0xa73148[_0x10e089('0x1c')][_0x10e089('0xb')]===_0x10e089('0x2a')&&(_0x3f11f8[_0x10e089('0x2d')]=qs['limit'](_0xa73148[_0x10e089('0x1c')][_0x10e089('0x2d')]),_0x3f11f8['offset']=qs[_0x10e089('0x21')](_0xa73148[_0x10e089('0x1c')][_0x10e089('0x21')])),_0x2c7919[_0x10e089('0x7')](_0x3f11f8);})[_0x1bbed9('0x4')](function(_0x21d853){if(_0x21d853)return _0x21d853?{'count':_0x2252f4,'rows':_0x21d853}:null;})[_0x1bbed9('0x4')](respondWithResult(_0x5333ef,null))[_0x1bbed9('0x12')](handleError(_0x5333ef,null));},exports[_0x33a4e2('0x33')]=function(_0x17d390,_0x30d717){const _0x534892=_0x33a4e2;let _0x40499a={};const _0x34aacb={};let _0x1e437e,_0x50905e;return db[_0x534892('0x34')][_0x534892('0xe')]({'where':{'id':_0x17d390[_0x534892('0x2f')]['id']}})['then'](handleEntityNotFound(_0x30d717,null))[_0x534892('0x4')](function(_0x2ae42b){const _0x439dbc=_0x534892;if(_0x2ae42b)return _0x1e437e=_0x2ae42b,_0x34aacb['model']=_['keys'](db[_0x439dbc('0x18')][_0x439dbc('0x16')]),_0x34aacb[_0x439dbc('0x1c')]=_[_0x439dbc('0x2c')](_0x17d390['query']),_0x34aacb[_0x439dbc('0x1e')]=_[_0x439dbc('0x23')](_0x34aacb[_0x439dbc('0x35')],_0x34aacb[_0x439dbc('0x1c')]),_0x40499a[_0x439dbc('0x10')]=_[_0x439dbc('0x23')](_0x34aacb[_0x439dbc('0x35')],qs[_0x439dbc('0x15')](_0x17d390[_0x439dbc('0x1c')]['fields'])),_0x40499a[_0x439dbc('0x10')]=_0x40499a[_0x439dbc('0x10')][_0x439dbc('0x32')]?_0x40499a[_0x439dbc('0x10')]:_0x34aacb[_0x439dbc('0x35')],_0x40499a[_0x439dbc('0x30')]=qs[_0x439dbc('0x25')](_0x17d390['query']['sort']),_0x40499a[_0x439dbc('0xd')]=qs[_0x439dbc('0x1e')](_[_0x439dbc('0x20')](_0x17d390[_0x439dbc('0x1c')],_0x34aacb[_0x439dbc('0x1e')])),_0x17d390[_0x439dbc('0x1c')][_0x439dbc('0x2e')]&&(_0x40499a[_0x439dbc('0xd')]=_['merge'](_0x40499a[_0x439dbc('0xd')],{[Op['or']]:_[_0x439dbc('0x1f')](_0x40499a[_0x439dbc('0x10')],function(_0x776e9c){const _0x3f763f=_0x439dbc,_0x13c732={};return _0x13c732[_0x776e9c]={[Op[_0x3f763f('0x1b')]]:'%'+_0x17d390['query'][_0x3f763f('0x2e')]+'%'},_0x13c732;})})),_0x40499a=_[_0x439dbc('0x1')]({},_0x40499a,_0x17d390[_0x439dbc('0x27')]),_0x1e437e['getDescriptions'](_0x40499a);})[_0x534892('0x4')](function(_0x363957){const _0x412c98=_0x534892;if(_0x363957)return _0x50905e=_0x363957['length'],typeof _0x17d390[_0x412c98('0x1c')][_0x412c98('0xb')]===_0x412c98('0x2a')&&(_0x40499a[_0x412c98('0x2d')]=qs[_0x412c98('0x2d')](_0x17d390['query'][_0x412c98('0x2d')]),_0x40499a['offset']=qs['offset'](_0x17d390['query'][_0x412c98('0x21')])),_0x1e437e[_0x412c98('0x33')](_0x40499a);})[_0x534892('0x4')](function(_0x111a4a){if(_0x111a4a)return _0x111a4a?{'count':_0x50905e,'rows':_0x111a4a}:null;})[_0x534892('0x4')](respondWithResult(_0x30d717,null))[_0x534892('0x12')](handleError(_0x30d717,null));}; \ No newline at end of file diff --git a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js index 197ec2c..d632bf2 100644 --- a/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js +++ b/server/api/intSugarcrmConfiguration/intSugarcrmConfiguration.model.js @@ -1 +1 @@ -const a313_0x3e00=['exports','define','./intSugarcrmConfiguration.attributes','int_sugarcrm_configurations'];(function(_0x1a23a8,_0x3e0070){const _0x3975e5=function(_0x198419){while(--_0x198419){_0x1a23a8['push'](_0x1a23a8['shift']());}};_0x3975e5(++_0x3e0070);}(a313_0x3e00,0xcc));const a313_0x3975=function(_0x1a23a8,_0x3e0070){_0x1a23a8=_0x1a23a8-0x0;let _0x3975e5=a313_0x3e00[_0x1a23a8];return _0x3975e5;};const _0x439f37=a313_0x3975;'use strict';const attributes=require(_0x439f37('0x2'));module[_0x439f37('0x0')]=function(_0x198419){const _0x3da82e=_0x439f37,_0x35a72a=_0x198419[_0x3da82e('0x1')]('SugarcrmConfiguration',attributes,{'tableName':_0x3da82e('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x35a72a;}; \ No newline at end of file +const a313_0x2618=['SugarcrmConfiguration','int_sugarcrm_configurations','exports'];(function(_0x736ff,_0x26182c){const _0x3c7bb7=function(_0x334ac7){while(--_0x334ac7){_0x736ff['push'](_0x736ff['shift']());}};_0x3c7bb7(++_0x26182c);}(a313_0x2618,0x146));const a313_0x3c7b=function(_0x736ff,_0x26182c){_0x736ff=_0x736ff-0x0;let _0x3c7bb7=a313_0x2618[_0x736ff];return _0x3c7bb7;};const _0x2a3a2f=a313_0x3c7b;'use strict';const attributes=require('./intSugarcrmConfiguration.attributes');module[_0x2a3a2f('0x0')]=function(_0x334ac7){const _0x159560=_0x2a3a2f,_0x5f1a2b=_0x334ac7['define'](_0x159560('0x1'),attributes,{'tableName':_0x159560('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5f1a2b;}; \ No newline at end of file diff --git a/server/api/intSugarcrmField/index.js b/server/api/intSugarcrmField/index.js index c8f8e0e..82b0be5 100644 --- a/server/api/intSugarcrmField/index.js +++ b/server/api/intSugarcrmField/index.js @@ -1 +1 @@ -const a314_0x57e2=['put','../../components/auth/service','destroy','show','./intSugarcrmField.controller','Router','create','isAuthenticated','delete','index','update','get','/:id'];(function(_0x1d5e4a,_0x57e29d){const _0x5c0450=function(_0x534822){while(--_0x534822){_0x1d5e4a['push'](_0x1d5e4a['shift']());}};_0x5c0450(++_0x57e29d);}(a314_0x57e2,0xd4));const a314_0x5c04=function(_0x1d5e4a,_0x57e29d){_0x1d5e4a=_0x1d5e4a-0x0;let _0x5c0450=a314_0x57e2[_0x1d5e4a];return _0x5c0450;};const _0x2eb29e=a314_0x5c04;'use strict';const express=require('express'),router=express[_0x2eb29e('0x1')](),auth=require(_0x2eb29e('0xa')),controller=require(_0x2eb29e('0x0'));router['get']('/',auth[_0x2eb29e('0x3')](),controller[_0x2eb29e('0x5')]),router[_0x2eb29e('0x7')](_0x2eb29e('0x8'),auth[_0x2eb29e('0x3')](),controller[_0x2eb29e('0xc')]),router['post']('/',auth['isAuthenticated'](),controller[_0x2eb29e('0x2')]),router[_0x2eb29e('0x9')](_0x2eb29e('0x8'),auth['isAuthenticated'](),controller[_0x2eb29e('0x6')]),router[_0x2eb29e('0x4')](_0x2eb29e('0x8'),auth[_0x2eb29e('0x3')](),controller[_0x2eb29e('0xb')]),module['exports']=router; \ No newline at end of file +const a314_0x4b46=['get','express','Router','put','index','create','/:id','post','update','./intSugarcrmField.controller','delete','show','destroy','isAuthenticated'];(function(_0x2af348,_0x4b46cd){const _0x13c7e2=function(_0x3b7524){while(--_0x3b7524){_0x2af348['push'](_0x2af348['shift']());}};_0x13c7e2(++_0x4b46cd);}(a314_0x4b46,0x121));const a314_0x13c7=function(_0x2af348,_0x4b46cd){_0x2af348=_0x2af348-0x0;let _0x13c7e2=a314_0x4b46[_0x2af348];return _0x13c7e2;};const _0x4124a6=a314_0x13c7;'use strict';const express=require(_0x4124a6('0x6')),router=express[_0x4124a6('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x4124a6('0x0'));router[_0x4124a6('0x5')]('/',auth[_0x4124a6('0x4')](),controller[_0x4124a6('0x9')]),router[_0x4124a6('0x5')](_0x4124a6('0xb'),auth[_0x4124a6('0x4')](),controller[_0x4124a6('0x2')]),router[_0x4124a6('0xc')]('/',auth['isAuthenticated'](),controller[_0x4124a6('0xa')]),router[_0x4124a6('0x8')]('/:id',auth[_0x4124a6('0x4')](),controller[_0x4124a6('0xd')]),router[_0x4124a6('0x1')](_0x4124a6('0xb'),auth[_0x4124a6('0x4')](),controller[_0x4124a6('0x3')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.attributes.js b/server/api/intSugarcrmField/intSugarcrmField.attributes.js index 3a44b8f..1aade48 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.attributes.js +++ b/server/api/intSugarcrmField/intSugarcrmField.attributes.js @@ -1 +1 @@ -const a315_0x2104=['ENUM','STRING','variable','string','exports','BOOLEAN','customVariable'];(function(_0x239743,_0x2104cc){const _0x5daa53=function(_0x499ee1){while(--_0x499ee1){_0x239743['push'](_0x239743['shift']());}};_0x5daa53(++_0x2104cc);}(a315_0x2104,0x124));const a315_0x5daa=function(_0x239743,_0x2104cc){_0x239743=_0x239743-0x0;let _0x5daa53=a315_0x2104[_0x239743];return _0x5daa53;};const _0x4f9c2a=a315_0x5daa;'use strict';const Sequelize=require('sequelize');module[_0x4f9c2a('0x6')]={'type':{'type':Sequelize['ENUM']('string',_0x4f9c2a('0x4'),_0x4f9c2a('0x1'),'keyValue'),'defaultValue':_0x4f9c2a('0x5')},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize[_0x4f9c2a('0x2')](_0x4f9c2a('0x5'),_0x4f9c2a('0x4'),_0x4f9c2a('0x1'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x4f9c2a('0x3')]},'nameField':{'type':Sequelize[_0x4f9c2a('0x3')]},'customField':{'type':Sequelize[_0x4f9c2a('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a315_0x5bd6=['customVariable','sequelize','string','BOOLEAN','ENUM','STRING','variable','exports'];(function(_0x3ba5e3,_0x5bd6a2){const _0x289983=function(_0x123bd5){while(--_0x123bd5){_0x3ba5e3['push'](_0x3ba5e3['shift']());}};_0x289983(++_0x5bd6a2);}(a315_0x5bd6,0x133));const a315_0x2899=function(_0x3ba5e3,_0x5bd6a2){_0x3ba5e3=_0x3ba5e3-0x0;let _0x289983=a315_0x5bd6[_0x3ba5e3];return _0x289983;};const _0x1cf04d=a315_0x2899;'use strict';const Sequelize=require(_0x1cf04d('0x6'));module[_0x1cf04d('0x4')]={'type':{'type':Sequelize[_0x1cf04d('0x1')](_0x1cf04d('0x7'),_0x1cf04d('0x3'),_0x1cf04d('0x5'),'keyValue'),'defaultValue':'string'},'content':{'type':Sequelize[_0x1cf04d('0x2')]},'key':{'type':Sequelize[_0x1cf04d('0x2')]},'keyType':{'type':Sequelize[_0x1cf04d('0x1')]('string',_0x1cf04d('0x3'),_0x1cf04d('0x5'))},'keyContent':{'type':Sequelize[_0x1cf04d('0x2')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x1cf04d('0x2')]},'customField':{'type':Sequelize[_0x1cf04d('0x0')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x1cf04d('0x2')]}}; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.controller.js b/server/api/intSugarcrmField/intSugarcrmField.controller.js index 4894d22..d224da4 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.controller.js +++ b/server/api/intSugarcrmField/intSugarcrmField.controller.js @@ -1 +1 @@ -const a316_0xdf54=['findOne','rawAttributes','offset','set','length','VIRTUAL','like','includeAll','query','send','params','rows','SugarcrmField','../../mysqldb','index','where','catch','map','filters','model','sort','intersection','then','status','end','sendStatus','update','name','create','body','attributes','lodash','keys','merge','json','findAll','../../config/logger','pick','show','type','fields','nolimit','include','limit','Content-Range','destroy'];(function(_0x483e1e,_0xdf54fb){const _0x235a0f=function(_0x543994){while(--_0x543994){_0x483e1e['push'](_0x483e1e['shift']());}};_0x235a0f(++_0xdf54fb);}(a316_0xdf54,0x1ae));const a316_0x235a=function(_0x483e1e,_0xdf54fb){_0x483e1e=_0x483e1e-0x0;let _0x235a0f=a316_0xdf54[_0x483e1e];return _0x235a0f;};const _0x4222e1=a316_0x235a;'use strict';const _=require(_0x4222e1('0xf')),qs=require('../../components/parsers/qs'),logger=require(_0x4222e1('0x14'))('api'),db=require(_0x4222e1('0x2b'))['db'],{Op}=require('sequelize');function respondWithResult(_0x543994,_0x36f388){return _0x36f388=_0x36f388||0xc8,function(_0x170335){const _0x213d08=a316_0x235a;if(_0x170335)return _0x543994[_0x213d08('0x7')](_0x36f388)[_0x213d08('0x12')](_0x170335);};}function respondWithFilteredResult(_0x33d5f1,_0x12bbdf){return function(_0x45ff5c){const _0x3f9087=a316_0x235a;if(_0x45ff5c){const _0x5dc978=_0x45ff5c['count'],_0x3613b0=_0x12bbdf[_0x3f9087('0x20')];let _0x1f5dca=_0x12bbdf['offset']+_0x12bbdf['limit'],_0xb99c5e;return _0x1f5dca>=_0x5dc978?(_0x1f5dca=_0x5dc978,_0xb99c5e=0xc8):_0xb99c5e=0xce,_0x33d5f1[_0x3f9087('0x7')](_0xb99c5e),_0x33d5f1[_0x3f9087('0x21')](_0x3f9087('0x1c'),_0x3613b0+'-'+_0x1f5dca+'/'+_0x5dc978)[_0x3f9087('0x12')](_0x45ff5c);}return null;};}function saveUpdates(_0x17dbb1){return function(_0x1588f4){const _0x2c0f61=a316_0x235a;if(_0x1588f4)return _0x1588f4[_0x2c0f61('0xa')](_0x17dbb1)[_0x2c0f61('0x6')](function(_0xe9f63d){return _0xe9f63d;});return null;};}function removeEntity(_0x496654){return function(_0x4af637){const _0xab0daf=a316_0x235a;if(_0x4af637)return _0x4af637[_0xab0daf('0x1d')]()['then'](function(){const _0x32d070=_0xab0daf;_0x496654[_0x32d070('0x7')](0xcc)[_0x32d070('0x8')]();});};}function handleEntityNotFound(_0x19860d){return function(_0x4a7b6e){const _0x4d5163=a316_0x235a;return!_0x4a7b6e&&_0x19860d[_0x4d5163('0x9')](0x194),_0x4a7b6e;};}function handleError(_0x52d5a0,_0x46ad3a){return _0x46ad3a=_0x46ad3a||0x1f4,function(_0x204aeb){const _0x414983=a316_0x235a;logger['error'](_0x204aeb['stack']),_0x204aeb[_0x414983('0xb')]&&delete _0x204aeb[_0x414983('0xb')],_0x52d5a0[_0x414983('0x7')](_0x46ad3a)[_0x414983('0x27')](_0x204aeb);};}exports[_0x4222e1('0x2c')]=function(_0x44beec,_0x5cef6b){const _0x2c0ce2=_0x4222e1;let _0x1f489c={};const _0x5f1b1c={},_0x123fe4={'count':0x0,'rows':[]},_0x2fd02c=_[_0x2c0ce2('0x1')](db[_0x2c0ce2('0x2a')][_0x2c0ce2('0x1f')],function(_0x3acaab){const _0x2397f2=_0x2c0ce2;return{'name':_0x3acaab['fieldName'],'type':_0x3acaab[_0x2397f2('0x17')]['key']};});_0x5f1b1c['model']=_[_0x2c0ce2('0x1')](_0x2fd02c,_0x2c0ce2('0xb')),_0x5f1b1c['query']=_[_0x2c0ce2('0x10')](_0x44beec[_0x2c0ce2('0x26')]),_0x5f1b1c['filters']=_['intersection'](_0x5f1b1c[_0x2c0ce2('0x3')],_0x5f1b1c[_0x2c0ce2('0x26')]),_0x1f489c[_0x2c0ce2('0xe')]=_[_0x2c0ce2('0x5')](_0x5f1b1c[_0x2c0ce2('0x3')],qs[_0x2c0ce2('0x18')](_0x44beec[_0x2c0ce2('0x26')][_0x2c0ce2('0x18')])),_0x1f489c[_0x2c0ce2('0xe')]=_0x1f489c['attributes'][_0x2c0ce2('0x22')]?_0x1f489c[_0x2c0ce2('0xe')]:_0x5f1b1c[_0x2c0ce2('0x3')];typeof _0x44beec[_0x2c0ce2('0x26')][_0x2c0ce2('0x19')]==='undefined'&&(_0x1f489c[_0x2c0ce2('0x1b')]=qs['limit'](_0x44beec[_0x2c0ce2('0x26')]['limit']),_0x1f489c[_0x2c0ce2('0x20')]=qs['offset'](_0x44beec[_0x2c0ce2('0x26')][_0x2c0ce2('0x20')]));_0x1f489c['order']=qs['sort'](_0x44beec[_0x2c0ce2('0x26')][_0x2c0ce2('0x4')]),_0x1f489c[_0x2c0ce2('0x2d')]=qs[_0x2c0ce2('0x2')](_[_0x2c0ce2('0x15')](_0x44beec[_0x2c0ce2('0x26')],_0x5f1b1c[_0x2c0ce2('0x2')]),_0x2fd02c);_0x44beec[_0x2c0ce2('0x26')]['filter']&&(_0x1f489c[_0x2c0ce2('0x2d')]=_[_0x2c0ce2('0x11')](_0x1f489c[_0x2c0ce2('0x2d')],{[Op['or']]:_[_0x2c0ce2('0x1')](_0x2fd02c,function(_0x93e2fa){const _0x2c6467=_0x2c0ce2;if(_0x93e2fa[_0x2c6467('0x17')]!==_0x2c6467('0x23')){const _0x59f2a0={};return _0x59f2a0[_0x93e2fa[_0x2c6467('0xb')]]={[Op[_0x2c6467('0x24')]]:'%'+_0x44beec['query']['filter']+'%'},_0x59f2a0;}})}));_0x1f489c=_[_0x2c0ce2('0x11')]({},_0x1f489c,_0x44beec['options']);const _0x5af323={'where':_0x1f489c['where']};return db[_0x2c0ce2('0x2a')]['count'](_0x5af323)[_0x2c0ce2('0x6')](function(_0x4fd2cf){const _0x1b6324=_0x2c0ce2;return _0x123fe4['count']=_0x4fd2cf,_0x44beec[_0x1b6324('0x26')][_0x1b6324('0x25')]&&(_0x1f489c[_0x1b6324('0x1a')]=[{'all':!![]}]),db['SugarcrmField'][_0x1b6324('0x13')](_0x1f489c);})['then'](function(_0x2a5fb8){const _0x108240=_0x2c0ce2;return _0x123fe4[_0x108240('0x29')]=_0x2a5fb8,_0x123fe4;})[_0x2c0ce2('0x6')](respondWithFilteredResult(_0x5cef6b,_0x1f489c))[_0x2c0ce2('0x0')](handleError(_0x5cef6b,null));},exports[_0x4222e1('0x16')]=function(_0x374eaa,_0x34301d){const _0x17ac62=_0x4222e1;let _0x2c724f={'raw':!![],'where':{'id':_0x374eaa[_0x17ac62('0x28')]['id']}};const _0x5d3722={};return _0x5d3722['model']=_[_0x17ac62('0x10')](db['SugarcrmField'][_0x17ac62('0x1f')]),_0x5d3722[_0x17ac62('0x26')]=_['keys'](_0x374eaa[_0x17ac62('0x26')]),_0x5d3722['filters']=_[_0x17ac62('0x5')](_0x5d3722['model'],_0x5d3722[_0x17ac62('0x26')]),_0x2c724f[_0x17ac62('0xe')]=_[_0x17ac62('0x5')](_0x5d3722[_0x17ac62('0x3')],qs['fields'](_0x374eaa['query'][_0x17ac62('0x18')])),_0x2c724f['attributes']=_0x2c724f['attributes'][_0x17ac62('0x22')]?_0x2c724f[_0x17ac62('0xe')]:_0x5d3722[_0x17ac62('0x3')],_0x374eaa[_0x17ac62('0x26')][_0x17ac62('0x25')]&&(_0x2c724f[_0x17ac62('0x1a')]=[{'all':!![]}]),_0x2c724f=_[_0x17ac62('0x11')]({},_0x2c724f,_0x374eaa['options']),db['SugarcrmField'][_0x17ac62('0x1e')](_0x2c724f)[_0x17ac62('0x6')](handleEntityNotFound(_0x34301d,null))[_0x17ac62('0x6')](respondWithResult(_0x34301d,null))[_0x17ac62('0x0')](handleError(_0x34301d,null));},exports[_0x4222e1('0xc')]=function(_0x1e03d3,_0x33adce){const _0x3d4a18=_0x4222e1;return db[_0x3d4a18('0x2a')]['create'](_0x1e03d3['body'],{})['then'](respondWithResult(_0x33adce,0xc9))[_0x3d4a18('0x0')](handleError(_0x33adce,null));},exports[_0x4222e1('0xa')]=function(_0x1de17d,_0x51fd29){const _0x3d48a2=_0x4222e1;return _0x1de17d['body']['id']&&delete _0x1de17d[_0x3d48a2('0xd')]['id'],db['SugarcrmField'][_0x3d48a2('0x1e')]({'where':{'id':_0x1de17d[_0x3d48a2('0x28')]['id']}})['then'](handleEntityNotFound(_0x51fd29,null))['then'](saveUpdates(_0x1de17d[_0x3d48a2('0xd')],null))[_0x3d48a2('0x6')](respondWithResult(_0x51fd29,null))[_0x3d48a2('0x0')](handleError(_0x51fd29,null));},exports[_0x4222e1('0x1d')]=function(_0xd82aa,_0x29ee5a){const _0x2ec4d5=_0x4222e1;return db[_0x2ec4d5('0x2a')][_0x2ec4d5('0x1e')]({'where':{'id':_0xd82aa['params']['id']}})[_0x2ec4d5('0x6')](handleEntityNotFound(_0x29ee5a,null))[_0x2ec4d5('0x6')](removeEntity(_0x29ee5a,null))['catch'](handleError(_0x29ee5a,null));}; \ No newline at end of file +const a316_0x3c20=['merge','api','like','includeAll','filters','options','error','stack','../../components/parsers/qs','lodash','sequelize','intersection','filter','name','index','../../config/logger','create','keys','destroy','map','query','undefined','end','findOne','fieldName','body','update','Content-Range','then','set','catch','rows','SugarcrmField','count','params','json','include','fields','length','sort','order','attributes','where','limit','sendStatus','status','show','key','type','offset','pick','model','rawAttributes'];(function(_0xb49fa0,_0x3c200f){const _0x4d326e=function(_0x5d2300){while(--_0x5d2300){_0xb49fa0['push'](_0xb49fa0['shift']());}};_0x4d326e(++_0x3c200f);}(a316_0x3c20,0x16d));const a316_0x4d32=function(_0xb49fa0,_0x3c200f){_0xb49fa0=_0xb49fa0-0x0;let _0x4d326e=a316_0x3c20[_0xb49fa0];return _0x4d326e;};const _0x5082aa=a316_0x4d32;'use strict';const _=require(_0x5082aa('0xf')),qs=require(_0x5082aa('0xe')),logger=require(_0x5082aa('0x15'))(_0x5082aa('0x7')),db=require('../../mysqldb')['db'],{Op}=require(_0x5082aa('0x10'));function respondWithResult(_0x5d2300,_0x50b285){return _0x50b285=_0x50b285||0xc8,function(_0x1ccafa){const _0x337c99=a316_0x4d32;if(_0x1ccafa)return _0x5d2300[_0x337c99('0x33')](_0x50b285)[_0x337c99('0x29')](_0x1ccafa);};}function respondWithFilteredResult(_0xf8fbd,_0x568d80){return function(_0xae3430){const _0x524f07=a316_0x4d32;if(_0xae3430){const _0x2275e1=_0xae3430['count'],_0x5c20bf=_0x568d80[_0x524f07('0x2')];let _0x9956ba=_0x568d80[_0x524f07('0x2')]+_0x568d80[_0x524f07('0x31')],_0x1e1143;return _0x9956ba>=_0x2275e1?(_0x9956ba=_0x2275e1,_0x1e1143=0xc8):_0x1e1143=0xce,_0xf8fbd[_0x524f07('0x33')](_0x1e1143),_0xf8fbd[_0x524f07('0x23')](_0x524f07('0x21'),_0x5c20bf+'-'+_0x9956ba+'/'+_0x2275e1)['json'](_0xae3430);}return null;};}function saveUpdates(_0x5aa3f0){return function(_0x45bad6){const _0x4065fb=a316_0x4d32;if(_0x45bad6)return _0x45bad6[_0x4065fb('0x20')](_0x5aa3f0)[_0x4065fb('0x22')](function(_0x3ac3d9){return _0x3ac3d9;});return null;};}function removeEntity(_0x2e0d85){return function(_0x5c9d7e){const _0x115214=a316_0x4d32;if(_0x5c9d7e)return _0x5c9d7e[_0x115214('0x18')]()[_0x115214('0x22')](function(){const _0x4ad4fa=_0x115214;_0x2e0d85[_0x4ad4fa('0x33')](0xcc)[_0x4ad4fa('0x1c')]();});};}function handleEntityNotFound(_0x5db7c0){return function(_0x35f9eb){const _0x168c82=a316_0x4d32;return!_0x35f9eb&&_0x5db7c0[_0x168c82('0x32')](0x194),_0x35f9eb;};}function handleError(_0x5e7015,_0x34f82c){return _0x34f82c=_0x34f82c||0x1f4,function(_0x13210b){const _0xa827b6=a316_0x4d32;logger[_0xa827b6('0xc')](_0x13210b[_0xa827b6('0xd')]),_0x13210b['name']&&delete _0x13210b[_0xa827b6('0x13')],_0x5e7015[_0xa827b6('0x33')](_0x34f82c)['send'](_0x13210b);};}exports[_0x5082aa('0x14')]=function(_0x145f02,_0x5b035b){const _0x4b9bf1=_0x5082aa;let _0x2ec08f={};const _0x4a14c4={},_0x5e081b={'count':0x0,'rows':[]},_0x227218=_[_0x4b9bf1('0x19')](db[_0x4b9bf1('0x26')][_0x4b9bf1('0x5')],function(_0x3c0a64){const _0x5bf8b0=_0x4b9bf1;return{'name':_0x3c0a64[_0x5bf8b0('0x1e')],'type':_0x3c0a64[_0x5bf8b0('0x1')][_0x5bf8b0('0x0')]};});_0x4a14c4[_0x4b9bf1('0x4')]=_['map'](_0x227218,_0x4b9bf1('0x13')),_0x4a14c4[_0x4b9bf1('0x1a')]=_['keys'](_0x145f02[_0x4b9bf1('0x1a')]),_0x4a14c4['filters']=_[_0x4b9bf1('0x11')](_0x4a14c4[_0x4b9bf1('0x4')],_0x4a14c4[_0x4b9bf1('0x1a')]),_0x2ec08f[_0x4b9bf1('0x2f')]=_[_0x4b9bf1('0x11')](_0x4a14c4['model'],qs['fields'](_0x145f02[_0x4b9bf1('0x1a')][_0x4b9bf1('0x2b')])),_0x2ec08f['attributes']=_0x2ec08f['attributes'][_0x4b9bf1('0x2c')]?_0x2ec08f['attributes']:_0x4a14c4[_0x4b9bf1('0x4')];typeof _0x145f02[_0x4b9bf1('0x1a')]['nolimit']===_0x4b9bf1('0x1b')&&(_0x2ec08f[_0x4b9bf1('0x31')]=qs['limit'](_0x145f02[_0x4b9bf1('0x1a')][_0x4b9bf1('0x31')]),_0x2ec08f[_0x4b9bf1('0x2')]=qs['offset'](_0x145f02[_0x4b9bf1('0x1a')]['offset']));_0x2ec08f[_0x4b9bf1('0x2e')]=qs[_0x4b9bf1('0x2d')](_0x145f02[_0x4b9bf1('0x1a')][_0x4b9bf1('0x2d')]),_0x2ec08f[_0x4b9bf1('0x30')]=qs[_0x4b9bf1('0xa')](_[_0x4b9bf1('0x3')](_0x145f02[_0x4b9bf1('0x1a')],_0x4a14c4[_0x4b9bf1('0xa')]),_0x227218);_0x145f02[_0x4b9bf1('0x1a')][_0x4b9bf1('0x12')]&&(_0x2ec08f[_0x4b9bf1('0x30')]=_[_0x4b9bf1('0x6')](_0x2ec08f[_0x4b9bf1('0x30')],{[Op['or']]:_[_0x4b9bf1('0x19')](_0x227218,function(_0x2df5e6){const _0x255770=_0x4b9bf1;if(_0x2df5e6[_0x255770('0x1')]!=='VIRTUAL'){const _0x1fba2b={};return _0x1fba2b[_0x2df5e6[_0x255770('0x13')]]={[Op[_0x255770('0x8')]]:'%'+_0x145f02[_0x255770('0x1a')][_0x255770('0x12')]+'%'},_0x1fba2b;}})}));_0x2ec08f=_['merge']({},_0x2ec08f,_0x145f02[_0x4b9bf1('0xb')]);const _0x42a65c={'where':_0x2ec08f[_0x4b9bf1('0x30')]};return db[_0x4b9bf1('0x26')]['count'](_0x42a65c)['then'](function(_0xd05d21){const _0x57d011=_0x4b9bf1;return _0x5e081b[_0x57d011('0x27')]=_0xd05d21,_0x145f02[_0x57d011('0x1a')][_0x57d011('0x9')]&&(_0x2ec08f[_0x57d011('0x2a')]=[{'all':!![]}]),db['SugarcrmField']['findAll'](_0x2ec08f);})[_0x4b9bf1('0x22')](function(_0x326b7b){const _0x3b7c5e=_0x4b9bf1;return _0x5e081b[_0x3b7c5e('0x25')]=_0x326b7b,_0x5e081b;})[_0x4b9bf1('0x22')](respondWithFilteredResult(_0x5b035b,_0x2ec08f))['catch'](handleError(_0x5b035b,null));},exports[_0x5082aa('0x34')]=function(_0xfc4a04,_0x31955f){const _0x9b4ad1=_0x5082aa;let _0x5ea272={'raw':!![],'where':{'id':_0xfc4a04[_0x9b4ad1('0x28')]['id']}};const _0x55a40d={};return _0x55a40d[_0x9b4ad1('0x4')]=_[_0x9b4ad1('0x17')](db[_0x9b4ad1('0x26')][_0x9b4ad1('0x5')]),_0x55a40d[_0x9b4ad1('0x1a')]=_[_0x9b4ad1('0x17')](_0xfc4a04[_0x9b4ad1('0x1a')]),_0x55a40d[_0x9b4ad1('0xa')]=_[_0x9b4ad1('0x11')](_0x55a40d[_0x9b4ad1('0x4')],_0x55a40d['query']),_0x5ea272[_0x9b4ad1('0x2f')]=_[_0x9b4ad1('0x11')](_0x55a40d['model'],qs[_0x9b4ad1('0x2b')](_0xfc4a04[_0x9b4ad1('0x1a')][_0x9b4ad1('0x2b')])),_0x5ea272['attributes']=_0x5ea272['attributes'][_0x9b4ad1('0x2c')]?_0x5ea272[_0x9b4ad1('0x2f')]:_0x55a40d['model'],_0xfc4a04[_0x9b4ad1('0x1a')]['includeAll']&&(_0x5ea272[_0x9b4ad1('0x2a')]=[{'all':!![]}]),_0x5ea272=_[_0x9b4ad1('0x6')]({},_0x5ea272,_0xfc4a04[_0x9b4ad1('0xb')]),db[_0x9b4ad1('0x26')][_0x9b4ad1('0x1d')](_0x5ea272)['then'](handleEntityNotFound(_0x31955f,null))[_0x9b4ad1('0x22')](respondWithResult(_0x31955f,null))['catch'](handleError(_0x31955f,null));},exports[_0x5082aa('0x16')]=function(_0x274dbc,_0x1dac92){const _0x377ef5=_0x5082aa;return db[_0x377ef5('0x26')][_0x377ef5('0x16')](_0x274dbc[_0x377ef5('0x1f')],{})[_0x377ef5('0x22')](respondWithResult(_0x1dac92,0xc9))[_0x377ef5('0x24')](handleError(_0x1dac92,null));},exports['update']=function(_0x278e98,_0x389409){const _0x1d59da=_0x5082aa;return _0x278e98[_0x1d59da('0x1f')]['id']&&delete _0x278e98[_0x1d59da('0x1f')]['id'],db[_0x1d59da('0x26')][_0x1d59da('0x1d')]({'where':{'id':_0x278e98[_0x1d59da('0x28')]['id']}})[_0x1d59da('0x22')](handleEntityNotFound(_0x389409,null))[_0x1d59da('0x22')](saveUpdates(_0x278e98[_0x1d59da('0x1f')],null))['then'](respondWithResult(_0x389409,null))[_0x1d59da('0x24')](handleError(_0x389409,null));},exports[_0x5082aa('0x18')]=function(_0x31a17c,_0x83e589){const _0x124da7=_0x5082aa;return db[_0x124da7('0x26')][_0x124da7('0x1d')]({'where':{'id':_0x31a17c['params']['id']}})[_0x124da7('0x22')](handleEntityNotFound(_0x83e589,null))[_0x124da7('0x22')](removeEntity(_0x83e589,null))['catch'](handleError(_0x83e589,null));}; \ No newline at end of file diff --git a/server/api/intSugarcrmField/intSugarcrmField.model.js b/server/api/intSugarcrmField/intSugarcrmField.model.js index a3da7a7..43b6ba8 100644 --- a/server/api/intSugarcrmField/intSugarcrmField.model.js +++ b/server/api/intSugarcrmField/intSugarcrmField.model.js @@ -1 +1 @@ -const a317_0x3411=['./intSugarcrmField.attributes','idField','SugarcrmField','int_sugarcrm_fields'];(function(_0x53ed19,_0x341157){const _0x6ac841=function(_0x5ec038){while(--_0x5ec038){_0x53ed19['push'](_0x53ed19['shift']());}};_0x6ac841(++_0x341157);}(a317_0x3411,0x1ae));const a317_0x6ac8=function(_0x53ed19,_0x341157){_0x53ed19=_0x53ed19-0x0;let _0x6ac841=a317_0x3411[_0x53ed19];return _0x6ac841;};const _0x2b3e30=a317_0x6ac8;'use strict';const attributes=require(_0x2b3e30('0x2'));module['exports']=function(_0x5ec038){const _0x10f56d=_0x2b3e30,_0x39bf90=_0x5ec038['define'](_0x10f56d('0x0'),attributes,{'tableName':_0x10f56d('0x1'),'paranoid':![],'indexes':[{'name':'sugarcrm_unique_index','fields':[_0x10f56d('0x3'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x39bf90;}; \ No newline at end of file +const a317_0x2025=['define','exports','idField','FieldId','sugarcrm_unique_index','SugarcrmField'];(function(_0x4c9a42,_0x20256d){const _0x5efff4=function(_0x15a7f4){while(--_0x15a7f4){_0x4c9a42['push'](_0x4c9a42['shift']());}};_0x5efff4(++_0x20256d);}(a317_0x2025,0xdc));const a317_0x5eff=function(_0x4c9a42,_0x20256d){_0x4c9a42=_0x4c9a42-0x0;let _0x5efff4=a317_0x2025[_0x4c9a42];return _0x5efff4;};const _0x536f77=a317_0x5eff;'use strict';const attributes=require('./intSugarcrmField.attributes');module[_0x536f77('0x3')]=function(_0x15a7f4){const _0xb5635f=_0x536f77,_0x5639cf=_0x15a7f4[_0xb5635f('0x2')](_0xb5635f('0x1'),attributes,{'tableName':'int_sugarcrm_fields','paranoid':![],'indexes':[{'name':_0xb5635f('0x0'),'fields':[_0xb5635f('0x4'),_0xb5635f('0x5')],'unique':!![]}],'timestamps':!![]});return _0x5639cf;}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/index.js b/server/api/intVtigerAccount/index.js index 460ad39..cba1d1c 100644 --- a/server/api/intVtigerAccount/index.js +++ b/server/api/intVtigerAccount/index.js @@ -1 +1 @@ -const a318_0x1a28=['getConfigurations','index','addConfiguration','show','exports','put','post','/:id/fields','destroy','/:id','isAuthenticated','../../components/auth/service','Router','get','express','delete','getFields','/:id/configurations','./intVtigerAccount.controller'];(function(_0x3c29d0,_0x1a283a){const _0x3ec417=function(_0x113808){while(--_0x113808){_0x3c29d0['push'](_0x3c29d0['shift']());}};_0x3ec417(++_0x1a283a);}(a318_0x1a28,0xc4));const a318_0x3ec4=function(_0x3c29d0,_0x1a283a){_0x3c29d0=_0x3c29d0-0x0;let _0x3ec417=a318_0x1a28[_0x3c29d0];return _0x3ec417;};const _0x41fae1=a318_0x3ec4;'use strict';const express=require(_0x41fae1('0x8')),router=express[_0x41fae1('0x6')](),auth=require(_0x41fae1('0x5')),controller=require(_0x41fae1('0xc'));router[_0x41fae1('0x7')]('/',auth['isAuthenticated'](),controller[_0x41fae1('0xe')]),router[_0x41fae1('0x7')]('/:id',auth[_0x41fae1('0x4')](),controller[_0x41fae1('0x10')]),router[_0x41fae1('0x7')]('/:id/configurations',auth[_0x41fae1('0x4')](),controller[_0x41fae1('0xd')]),router[_0x41fae1('0x7')](_0x41fae1('0x1'),auth[_0x41fae1('0x4')](),controller[_0x41fae1('0xa')]),router['post']('/',auth[_0x41fae1('0x4')](),controller['create']),router[_0x41fae1('0x0')](_0x41fae1('0xb'),auth[_0x41fae1('0x4')](),controller[_0x41fae1('0xf')]),router[_0x41fae1('0x12')](_0x41fae1('0x3'),auth['isAuthenticated'](),controller['update']),router[_0x41fae1('0x9')](_0x41fae1('0x3'),auth[_0x41fae1('0x4')](),controller[_0x41fae1('0x2')]),module[_0x41fae1('0x11')]=router; \ No newline at end of file +const a318_0x7c69=['isAuthenticated','Router','delete','/:id','/:id/fields','express','addConfiguration','destroy','post','index','../../components/auth/service','put','create','show','get','update','/:id/configurations','getFields'];(function(_0x318443,_0x7c696){const _0x145443=function(_0x331d90){while(--_0x331d90){_0x318443['push'](_0x318443['shift']());}};_0x145443(++_0x7c696);}(a318_0x7c69,0x1eb));const a318_0x1454=function(_0x318443,_0x7c696){_0x318443=_0x318443-0x0;let _0x145443=a318_0x7c69[_0x318443];return _0x145443;};const _0x52bad5=a318_0x1454;'use strict';const express=require(_0x52bad5('0x0')),router=express[_0x52bad5('0xe')](),auth=require(_0x52bad5('0x5')),controller=require('./intVtigerAccount.controller');router['get']('/',auth[_0x52bad5('0xd')](),controller[_0x52bad5('0x4')]),router[_0x52bad5('0x9')](_0x52bad5('0x10'),auth[_0x52bad5('0xd')](),controller[_0x52bad5('0x8')]),router['get'](_0x52bad5('0xb'),auth[_0x52bad5('0xd')](),controller['getConfigurations']),router[_0x52bad5('0x9')](_0x52bad5('0x11'),auth[_0x52bad5('0xd')](),controller[_0x52bad5('0xc')]),router['post']('/',auth[_0x52bad5('0xd')](),controller[_0x52bad5('0x7')]),router[_0x52bad5('0x3')](_0x52bad5('0xb'),auth[_0x52bad5('0xd')](),controller[_0x52bad5('0x1')]),router[_0x52bad5('0x6')](_0x52bad5('0x10'),auth[_0x52bad5('0xd')](),controller[_0x52bad5('0xa')]),router[_0x52bad5('0xf')](_0x52bad5('0x10'),auth[_0x52bad5('0xd')](),controller[_0x52bad5('0x2')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.attributes.js b/server/api/intVtigerAccount/intVtigerAccount.attributes.js index fce702e..0c44322 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.attributes.js +++ b/server/api/intVtigerAccount/intVtigerAccount.attributes.js @@ -1 +1 @@ -const a319_0x2cc6=['HelpDesk','exports','STRING'];(function(_0x51fb1f,_0x2cc60b){const _0x5a3d5c=function(_0x5476f1){while(--_0x5476f1){_0x51fb1f['push'](_0x51fb1f['shift']());}};_0x5a3d5c(++_0x2cc60b);}(a319_0x2cc6,0x178));const a319_0x5a3d=function(_0x51fb1f,_0x2cc60b){_0x51fb1f=_0x51fb1f-0x0;let _0x5a3d5c=a319_0x2cc6[_0x51fb1f];return _0x5a3d5c;};const _0x147e57=a319_0x5a3d;'use strict';const Sequelize=require('sequelize');module[_0x147e57('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x147e57('0x1')]},'username':{'type':Sequelize[_0x147e57('0x1')],'allowNull':![]},'moduleName':{'type':Sequelize[_0x147e57('0x1')],'allowNull':![],'defaultValue':_0x147e57('0x2')},'remoteUri':{'type':Sequelize['STRING'],'allowNull':![]},'serverUrl':{'type':Sequelize['STRING']},'accessKey':{'type':Sequelize[_0x147e57('0x1')],'allowNull':![]}}; \ No newline at end of file +const a319_0x5093=['exports','STRING','sequelize','HelpDesk'];(function(_0x1b903c,_0x50934f){const _0x4d2de1=function(_0xf59f1a){while(--_0xf59f1a){_0x1b903c['push'](_0x1b903c['shift']());}};_0x4d2de1(++_0x50934f);}(a319_0x5093,0x1de));const a319_0x4d2d=function(_0x1b903c,_0x50934f){_0x1b903c=_0x1b903c-0x0;let _0x4d2de1=a319_0x5093[_0x1b903c];return _0x4d2de1;};const _0x3646e6=a319_0x4d2d;'use strict';const Sequelize=require(_0x3646e6('0x0'));module[_0x3646e6('0x2')]={'name':{'type':Sequelize[_0x3646e6('0x3')],'allowNull':![]},'description':{'type':Sequelize[_0x3646e6('0x3')]},'username':{'type':Sequelize['STRING'],'allowNull':![]},'moduleName':{'type':Sequelize[_0x3646e6('0x3')],'allowNull':![],'defaultValue':_0x3646e6('0x1')},'remoteUri':{'type':Sequelize[_0x3646e6('0x3')],'allowNull':![]},'serverUrl':{'type':Sequelize[_0x3646e6('0x3')]},'accessKey':{'type':Sequelize[_0x3646e6('0x3')],'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.controller.js b/server/api/intVtigerAccount/intVtigerAccount.controller.js index c4244ab..249ab68 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.controller.js +++ b/server/api/intVtigerAccount/intVtigerAccount.controller.js @@ -1 +1 @@ -const a320_0x3f5f=['description','accessKey','editable','VtigerField','findAll','remove','keys','sequelize','Subjects','error','autogenerated','includeAll','owner','rawAttributes','merge','body','../../components/integrations/configuration','reference','getConfigurations','undefined','picklistValues','nolimit','success','map','query','getFields,\x20%s,\x20%s,\x20%s','picklist','key','cf_','slice','json','pick','../../mysqldb','false','VIRTUAL','model','attributes','log','type','send','count','request-promise-native','findOne','offset','../../components/parsers/qs','VtigerAccount','fields','limit','length','Descriptions','status','name','test','moduleName','vTiger\x20error:\x20','remoteUri','update','substring','token','serverUrl','filter','intersection','stack','channel','destroy','login','like','sort','result','fieldName','AccountId','show','VtigerConfiguration','addConfiguration','%s/webservice.php','getDescriptions','statusCode','order','format','md5','include','value','params','set','username','then','Content-Range','where','stringify','index','create','label','filters','catch','getFields','GET'];(function(_0x477186,_0x3f5fc5){const _0x47d791=function(_0x4fe434){while(--_0x4fe434){_0x477186['push'](_0x477186['shift']());}};_0x47d791(++_0x3f5fc5);}(a320_0x3f5f,0x73));const a320_0x47d7=function(_0x477186,_0x3f5fc5){_0x477186=_0x477186-0x0;let _0x47d791=a320_0x3f5f[_0x477186];return _0x47d791;};const _0x4813d9=a320_0x47d7;'use strict';const rp=require(_0x4813d9('0x16')),util=require('util'),_=require('lodash'),qs=require(_0x4813d9('0x19')),logger=require('../../config/logger')('api'),db=require(_0x4813d9('0xd'))['db'],{Op}=require(_0x4813d9('0x54')),integrations=require(_0x4813d9('0x5d'));function respondWithResult(_0x4fe434,_0x5099b1){return _0x5099b1=_0x5099b1||0xc8,function(_0x173e7f){const _0x329f1e=a320_0x47d7;if(_0x173e7f)return _0x4fe434[_0x329f1e('0x1f')](_0x5099b1)[_0x329f1e('0xb')](_0x173e7f);};}function respondWithFilteredResult(_0x337491,_0x572ebd){return function(_0x4d7b9a){const _0x1397db=a320_0x47d7;if(_0x4d7b9a){const _0x42b1cc=_0x4d7b9a[_0x1397db('0x15')],_0x27c901=_0x572ebd[_0x1397db('0x18')];let _0x452b6d=_0x572ebd['offset']+_0x572ebd[_0x1397db('0x1c')],_0x3abe83;return _0x452b6d>=_0x42b1cc?(_0x452b6d=_0x42b1cc,_0x3abe83=0xc8):_0x3abe83=0xce,_0x337491['status'](_0x3abe83),_0x337491[_0x1397db('0x40')](_0x1397db('0x43'),_0x27c901+'-'+_0x452b6d+'/'+_0x42b1cc)[_0x1397db('0xb')](_0x4d7b9a);}return null;};}function saveUpdates(_0x43f50c){return function(_0x1a54b2){const _0x34b1e7=a320_0x47d7;if(_0x1a54b2)return _0x1a54b2[_0x34b1e7('0x25')](_0x43f50c)['then'](function(_0x3601ba){return _0x3601ba;});return null;};}function removeEntity(_0x5a41c2){return function(_0x5e1781){const _0x24f5e8=a320_0x47d7;if(_0x5e1781)return _0x5e1781[_0x24f5e8('0x2d')]()[_0x24f5e8('0x42')](function(){const _0x540d09=_0x24f5e8;_0x5a41c2[_0x540d09('0x1f')](0xcc)['end']();});};}function handleEntityNotFound(_0x24e79e){return function(_0x360992){return!_0x360992&&_0x24e79e['sendStatus'](0x194),_0x360992;};}function handleError(_0x5bcfe4,_0x1880cd){return _0x1880cd=_0x1880cd||0x1f4,function(_0x1da11e){const _0x8b5387=a320_0x47d7;logger[_0x8b5387('0x56')](_0x1da11e[_0x8b5387('0x2b')]),_0x1da11e['name']&&delete _0x1da11e['name'],_0x5bcfe4[_0x8b5387('0x1f')](_0x1880cd)[_0x8b5387('0x14')](_0x1da11e);};}exports[_0x4813d9('0x46')]=function(_0x28764d,_0x3f3661){const _0xcd4e63=_0x4813d9;let _0xc404b={};const _0x2fc562={},_0x3704a4={'count':0x0,'rows':[]},_0x1b4db1=_[_0xcd4e63('0x4')](db[_0xcd4e63('0x1a')]['rawAttributes'],function(_0xa863ed){const _0x409004=_0xcd4e63;return{'name':_0xa863ed[_0x409004('0x32')],'type':_0xa863ed[_0x409004('0x13')][_0x409004('0x8')]};});_0x2fc562[_0xcd4e63('0x10')]=_[_0xcd4e63('0x4')](_0x1b4db1,'name'),_0x2fc562['query']=_['keys'](_0x28764d['query']),_0x2fc562['filters']=_[_0xcd4e63('0x2a')](_0x2fc562[_0xcd4e63('0x10')],_0x2fc562[_0xcd4e63('0x5')]),_0xc404b[_0xcd4e63('0x11')]=_[_0xcd4e63('0x2a')](_0x2fc562['model'],qs['fields'](_0x28764d[_0xcd4e63('0x5')][_0xcd4e63('0x1b')])),_0xc404b['attributes']=_0xc404b[_0xcd4e63('0x11')]['length']?_0xc404b[_0xcd4e63('0x11')]:_0x2fc562['model'];typeof _0x28764d[_0xcd4e63('0x5')]['nolimit']==='undefined'&&(_0xc404b['limit']=qs[_0xcd4e63('0x1c')](_0x28764d[_0xcd4e63('0x5')]['limit']),_0xc404b[_0xcd4e63('0x18')]=qs['offset'](_0x28764d['query'][_0xcd4e63('0x18')]));_0xc404b[_0xcd4e63('0x3a')]=qs[_0xcd4e63('0x30')](_0x28764d[_0xcd4e63('0x5')][_0xcd4e63('0x30')]),_0xc404b['where']=qs[_0xcd4e63('0x49')](_[_0xcd4e63('0xc')](_0x28764d[_0xcd4e63('0x5')],_0x2fc562[_0xcd4e63('0x49')]),_0x1b4db1);_0x28764d[_0xcd4e63('0x5')][_0xcd4e63('0x29')]&&(_0xc404b[_0xcd4e63('0x44')]=_[_0xcd4e63('0x5b')](_0xc404b[_0xcd4e63('0x44')],{[Op['or']]:_[_0xcd4e63('0x4')](_0x1b4db1,function(_0x38e927){const _0x49ce66=_0xcd4e63;if(_0x38e927[_0x49ce66('0x13')]!==_0x49ce66('0xf')){const _0x14b300={};return _0x14b300[_0x38e927['name']]={[Op[_0x49ce66('0x2f')]]:'%'+_0x28764d['query'][_0x49ce66('0x29')]+'%'},_0x14b300;}})}));_0xc404b=_['merge']({},_0xc404b,_0x28764d['options']);const _0x14d625={'where':_0xc404b['where']};return db['VtigerAccount'][_0xcd4e63('0x15')](_0x14d625)[_0xcd4e63('0x42')](function(_0xa47eac){const _0x5c04d7=_0xcd4e63;return _0x3704a4[_0x5c04d7('0x15')]=_0xa47eac,_0x28764d[_0x5c04d7('0x5')][_0x5c04d7('0x58')]&&(_0xc404b[_0x5c04d7('0x3d')]=[{'all':!![]}]),db[_0x5c04d7('0x1a')][_0x5c04d7('0x51')](_0xc404b);})[_0xcd4e63('0x42')](function(_0x1f2f04){return _0x3704a4['rows']=_0x1f2f04,_0x3704a4;})['then'](respondWithFilteredResult(_0x3f3661,_0xc404b))[_0xcd4e63('0x4a')](handleError(_0x3f3661,null));},exports[_0x4813d9('0x34')]=function(_0x1dfd9b,_0x328af8){const _0x4fe757=_0x4813d9;let _0x36dd83={'raw':![],'where':{'id':_0x1dfd9b[_0x4fe757('0x3f')]['id']}};const _0x3e16f5={};return _0x3e16f5['model']=_[_0x4fe757('0x53')](db['VtigerAccount'][_0x4fe757('0x5a')]),_0x3e16f5[_0x4fe757('0x5')]=_[_0x4fe757('0x53')](_0x1dfd9b[_0x4fe757('0x5')]),_0x3e16f5['filters']=_[_0x4fe757('0x2a')](_0x3e16f5[_0x4fe757('0x10')],_0x3e16f5[_0x4fe757('0x5')]),_0x36dd83['attributes']=_[_0x4fe757('0x2a')](_0x3e16f5[_0x4fe757('0x10')],qs[_0x4fe757('0x1b')](_0x1dfd9b[_0x4fe757('0x5')][_0x4fe757('0x1b')])),_0x36dd83['attributes']=_0x36dd83[_0x4fe757('0x11')][_0x4fe757('0x1d')]?_0x36dd83[_0x4fe757('0x11')]:_0x3e16f5[_0x4fe757('0x10')],_0x1dfd9b[_0x4fe757('0x5')][_0x4fe757('0x58')]&&(_0x36dd83[_0x4fe757('0x3d')]=[{'all':!![]}]),_0x36dd83=_[_0x4fe757('0x5b')]({},_0x36dd83,_0x1dfd9b['options']),db[_0x4fe757('0x1a')][_0x4fe757('0x17')](_0x36dd83)['then'](handleEntityNotFound(_0x328af8,null))[_0x4fe757('0x42')](respondWithResult(_0x328af8,null))[_0x4fe757('0x4a')](handleError(_0x328af8,null));},exports[_0x4813d9('0x47')]=function(_0x24d39e,_0x44b298){const _0x14c254=_0x4813d9;return db[_0x14c254('0x1a')][_0x14c254('0x47')](_0x24d39e[_0x14c254('0x5c')],{})[_0x14c254('0x42')](respondWithResult(_0x44b298,0xc9))['catch'](handleError(_0x44b298,null));},exports[_0x4813d9('0x25')]=function(_0x3b9960,_0xd46494){const _0xa168b4=_0x4813d9;return _0x3b9960[_0xa168b4('0x5c')]['id']&&delete _0x3b9960['body']['id'],db[_0xa168b4('0x1a')][_0xa168b4('0x17')]({'where':{'id':_0x3b9960[_0xa168b4('0x3f')]['id']}})[_0xa168b4('0x42')](handleEntityNotFound(_0xd46494,null))['then'](saveUpdates(_0x3b9960[_0xa168b4('0x5c')],null))[_0xa168b4('0x42')](respondWithResult(_0xd46494,null))[_0xa168b4('0x4a')](handleError(_0xd46494,null));},exports[_0x4813d9('0x2d')]=function(_0x56c972,_0x4eab50){const _0x25304e=_0x4813d9;return db[_0x25304e('0x1a')][_0x25304e('0x17')]({'where':{'id':_0x56c972[_0x25304e('0x3f')]['id']}})[_0x25304e('0x42')](handleEntityNotFound(_0x4eab50,null))['then'](removeEntity(_0x4eab50,null))[_0x25304e('0x4a')](handleError(_0x4eab50,null));},exports[_0x4813d9('0x5f')]=function(_0x561907,_0x1fe7dd){const _0xa8a42a=_0x4813d9;let _0x53166e={};const _0x44b9fa={};let _0x26dd19,_0xf5e567;return db['VtigerAccount'][_0xa8a42a('0x17')]({'where':{'id':_0x561907[_0xa8a42a('0x3f')]['id']}})[_0xa8a42a('0x42')](handleEntityNotFound(_0x1fe7dd,null))[_0xa8a42a('0x42')](function(_0x3cb6f9){const _0x104c9f=_0xa8a42a;if(_0x3cb6f9)return _0x26dd19=_0x3cb6f9,_0x44b9fa['model']=_[_0x104c9f('0x53')](db[_0x104c9f('0x35')]['rawAttributes']),_0x44b9fa[_0x104c9f('0x5')]=_['keys'](_0x561907['query']),_0x44b9fa[_0x104c9f('0x49')]=_['intersection'](_0x44b9fa['model'],_0x44b9fa['query']),_0x53166e['attributes']=_[_0x104c9f('0x2a')](_0x44b9fa['model'],qs[_0x104c9f('0x1b')](_0x561907[_0x104c9f('0x5')]['fields'])),_0x53166e['attributes']=_0x53166e[_0x104c9f('0x11')]['length']?_0x53166e[_0x104c9f('0x11')]:_0x44b9fa[_0x104c9f('0x10')],_0x53166e[_0x104c9f('0x3a')]=qs['sort'](_0x561907[_0x104c9f('0x5')][_0x104c9f('0x30')]),_0x53166e[_0x104c9f('0x44')]=qs[_0x104c9f('0x49')](_[_0x104c9f('0xc')](_0x561907[_0x104c9f('0x5')],_0x44b9fa[_0x104c9f('0x49')])),_0x561907[_0x104c9f('0x5')]['filter']&&(_0x53166e[_0x104c9f('0x44')]=_[_0x104c9f('0x5b')](_0x53166e[_0x104c9f('0x44')],{[Op['or']]:_[_0x104c9f('0x4')](_0x53166e[_0x104c9f('0x11')],function(_0x420c38){const _0x16d5c9=_0x104c9f,_0x403a3a={};return _0x403a3a[_0x420c38]={[Op[_0x16d5c9('0x2f')]]:'%'+_0x561907['query'][_0x16d5c9('0x29')]+'%'},_0x403a3a;})})),_0x53166e=_['merge']({},_0x53166e,_0x561907['options']),_0x26dd19[_0x104c9f('0x5f')](_0x53166e);})[_0xa8a42a('0x42')](function(_0x29f6b6){const _0x4776d3=_0xa8a42a;if(_0x29f6b6)return _0xf5e567=_0x29f6b6[_0x4776d3('0x1d')],typeof _0x561907[_0x4776d3('0x5')][_0x4776d3('0x2')]===_0x4776d3('0x0')&&(_0x53166e[_0x4776d3('0x1c')]=qs[_0x4776d3('0x1c')](_0x561907[_0x4776d3('0x5')][_0x4776d3('0x1c')]),_0x53166e[_0x4776d3('0x18')]=qs[_0x4776d3('0x18')](_0x561907[_0x4776d3('0x5')][_0x4776d3('0x18')])),_0x26dd19[_0x4776d3('0x5f')](_0x53166e);})[_0xa8a42a('0x42')](function(_0x1a25b2){if(_0x1a25b2)return _0x1a25b2?{'count':_0xf5e567,'rows':_0x1a25b2}:null;})[_0xa8a42a('0x42')](respondWithResult(_0x1fe7dd,null))['catch'](handleError(_0x1fe7dd,null));},exports[_0x4813d9('0x36')]=function(_0x5a4a28,_0x5213ea){const _0x42a5d0=_0x4813d9;return _0x5a4a28[_0x42a5d0('0x5c')]['id']&&delete _0x5a4a28[_0x42a5d0('0x5c')]['id'],db[_0x42a5d0('0x1a')][_0x42a5d0('0x17')]({'where':{'id':_0x5a4a28[_0x42a5d0('0x3f')]['id']}})[_0x42a5d0('0x42')](handleEntityNotFound(_0x5213ea,null))[_0x42a5d0('0x42')](function(_0x4a88aa){const _0x123f34=_0x42a5d0;if(_0x4a88aa)return _0x5a4a28[_0x123f34('0x5c')][_0x123f34('0x33')]=_0x4a88aa['id'],_0x5a4a28[_0x123f34('0x5c')]['Subjects']=integrations['getSubjects'](_0x5a4a28[_0x123f34('0x5c')]['channel'],_0x5a4a28[_0x123f34('0x5c')][_0x123f34('0x13')]),_0x5a4a28[_0x123f34('0x5c')][_0x123f34('0x1e')]=integrations[_0x123f34('0x38')](_0x5a4a28['body'][_0x123f34('0x2c')],_0x5a4a28[_0x123f34('0x5c')]['type']),db[_0x123f34('0x35')][_0x123f34('0x47')](_0x5a4a28[_0x123f34('0x5c')],{'include':[{'model':db[_0x123f34('0x50')],'as':_0x123f34('0x55')},{'model':db[_0x123f34('0x50')],'as':_0x123f34('0x1e')}]});return null;})[_0x42a5d0('0x42')](respondWithResult(_0x5213ea,null))[_0x42a5d0('0x4a')](handleError(_0x5213ea,null));};const md5=require(_0x4813d9('0x3c'));exports['getFields']=function(_0x1c706d,_0x2ba1da){const _0x366a13=_0x4813d9;let _0x3a9497=null,_0x495237=null,_0x2144ba=null,_0x1b8964=null,_0x38584b='';return db[_0x366a13('0x1a')]['findOne']({'where':{'id':_0x1c706d[_0x366a13('0x3f')]['id']},'attributes':['id','name','username',_0x366a13('0x4d'),'moduleName','remoteUri',_0x366a13('0x28'),_0x366a13('0x4e')]})[_0x366a13('0x42')](handleEntityNotFound(_0x2ba1da,null))['then'](function(_0x56d37d){const _0x42ecf6=_0x366a13;if(_0x56d37d){_0x3a9497=_0x56d37d[_0x42ecf6('0x41')],_0x495237=_0x56d37d['accessKey'],_0x2144ba=_0x56d37d[_0x42ecf6('0x22')],_0x38584b=_0x56d37d[_0x42ecf6('0x24')];const _0x3cc503=_0x38584b[_0x42ecf6('0xa')](-0x1);_0x3cc503==='/'&&(_0x38584b=_0x38584b[_0x42ecf6('0x26')](0x0,_0x38584b['lastIndexOf'](_0x3cc503)));_0x1b8964=util[_0x42ecf6('0x3b')](_0x42ecf6('0x37'),_0x38584b);const _0x4fadd4={'method':_0x42ecf6('0x4c'),'uri':_0x1b8964,'qs':{'operation':'getchallenge','username':_0x56d37d['username']},'json':!![]};return rp(_0x4fadd4);}})[_0x366a13('0x42')](function(_0x2e5b6f){const _0x2025ce=_0x366a13;if(_0x2e5b6f[_0x2025ce('0x3')]){const _0x4356c2={'method':'POST','uri':_0x1b8964,'form':{'operation':_0x2025ce('0x2e'),'username':_0x3a9497,'accessKey':md5(_0x2e5b6f['result'][_0x2025ce('0x27')]+_0x495237)},'json':!![]};return rp(_0x4356c2);}})[_0x366a13('0x42')](function(_0x3a5e7e){const _0x4bb8a9=_0x366a13;if(_0x3a5e7e['success']){const _0x4be4c7={'method':_0x4bb8a9('0x4c'),'uri':_0x1b8964,'qs':{'operation':'describe','username':_0x3a9497,'sessionName':_0x3a5e7e['result']['sessionName'],'elementType':_0x2144ba},'json':!![]};return rp(_0x4be4c7);}})[_0x366a13('0x42')](function(_0x477485){const _0x5dbda9=_0x366a13;if(_0x477485['success']){const _0x26de14=[_0x5dbda9('0x57'),_0x5dbda9('0x5e'),_0x5dbda9('0x59')];return _[_0x5dbda9('0x52')](_0x477485[_0x5dbda9('0x31')][_0x5dbda9('0x1b')],function(_0x11915c){const _0x47d4d8=_0x5dbda9;return _0x26de14['includes'](_0x11915c[_0x47d4d8('0x13')]['name']);}),_[_0x5dbda9('0x52')](_0x477485[_0x5dbda9('0x31')][_0x5dbda9('0x1b')],function(_0x58707b){const _0x17730b=_0x5dbda9;return _0x58707b[_0x17730b('0x4f')]===_0x17730b('0xe');}),{'count':_0x477485[_0x5dbda9('0x31')][_0x5dbda9('0x1b')][_0x5dbda9('0x1d')],'rows':_[_0x5dbda9('0x4')](_0x477485['result'][_0x5dbda9('0x1b')],function(_0x1b0493){const _0x35658b=_0x5dbda9;return{'id':_0x1b0493['name'],'name':_0x1b0493[_0x35658b('0x48')],'custom':_['startsWith'](_0x1b0493[_0x35658b('0x20')],_0x35658b('0x9'))?!![]:![],'options':_0x1b0493[_0x35658b('0x13')][_0x35658b('0x20')]===_0x35658b('0x7')&&_0x1b0493[_0x35658b('0x13')][_0x35658b('0x1')][_0x35658b('0x1d')]>0x0?_[_0x35658b('0x4')](_0x1b0493[_0x35658b('0x13')][_0x35658b('0x1')],function(_0x45e596){const _0x100cf5=_0x35658b;return{'name':_0x45e596[_0x100cf5('0x48')],'value':_0x45e596[_0x100cf5('0x3e')]};}):[]};})};}})[_0x366a13('0x42')](respondWithResult(_0x2ba1da,null))[_0x366a13('0x4a')](function(_0xb2c896){const _0x49632b=_0x366a13;console[_0x49632b('0x12')](_0x49632b('0x23')+_0xb2c896);let _0x2ef216=_0x1c706d['query'][_0x49632b('0x21')]?0x1f4:_0xb2c896[_0x49632b('0x39')]||0x1f4;logger[_0x49632b('0x56')](_0x49632b('0x6'),_0x49632b('0x4b'),_0x2ef216,JSON[_0x49632b('0x45')](_0xb2c896)),delete _0xb2c896['name'],_0x2ef216===0x191&&(_0x2ef216=0x190),_0x2ba1da[_0x49632b('0x1f')](_0x2ef216)['send'](_0x1c706d[_0x49632b('0x5')]['test']?{'message':'Wrong\x20credentials','statusCode':_0xb2c896[_0x49632b('0x39')]}:_0xb2c896);});}; \ No newline at end of file +const a320_0x4bb4=['create','description','update','picklist','offset','getFields,\x20%s,\x20%s,\x20%s','api','json','sendStatus','index','includeAll','body','Content-Range','VtigerAccount','like','../../components/parsers/qs','name','VtigerField','lastIndexOf','statusCode','lodash','login','Subjects','query','picklistValues','autogenerated','result','../../components/integrations/configuration','status','map','count','error','GET','moduleName','success','filters','getSubjects','includes','request-promise-native','username','owner','set','options','VtigerConfiguration','filter','where','rows','substring','intersection','addConfiguration','end','stringify','params','sort','destroy','findAll','../../config/logger','include','vTiger\x20error:\x20','test','catch','startsWith','value','undefined','Descriptions','editable','keys','rawAttributes','sequelize','length','label','stack','attributes','then','key','merge','false','order','fieldName','sessionName','POST','getConfigurations','model','type','log','Wrong\x20credentials','AccountId','cf_','getFields','fields','format','show','accessKey','findOne','send','limit','remoteUri'];(function(_0x585c5a,_0x4bb4bc){const _0x2465ce=function(_0x11a2de){while(--_0x11a2de){_0x585c5a['push'](_0x585c5a['shift']());}};_0x2465ce(++_0x4bb4bc);}(a320_0x4bb4,0x19b));const a320_0x2465=function(_0x585c5a,_0x4bb4bc){_0x585c5a=_0x585c5a-0x0;let _0x2465ce=a320_0x4bb4[_0x585c5a];return _0x2465ce;};const _0x3999e6=a320_0x2465;'use strict';const rp=require(_0x3999e6('0xf')),util=require('util'),_=require(_0x3999e6('0x5e')),qs=require(_0x3999e6('0x59')),logger=require(_0x3999e6('0x21'))(_0x3999e6('0x50')),db=require('../../mysqldb')['db'],{Op}=require(_0x3999e6('0x2d')),integrations=require(_0x3999e6('0x4'));function respondWithResult(_0x11a2de,_0x8604c4){return _0x8604c4=_0x8604c4||0xc8,function(_0x297243){if(_0x297243)return _0x11a2de['status'](_0x8604c4)['json'](_0x297243);};}function respondWithFilteredResult(_0x362b44,_0x3241f){return function(_0x98d543){const _0x423a15=a320_0x2465;if(_0x98d543){const _0x247450=_0x98d543[_0x423a15('0x7')],_0x4df04e=_0x3241f[_0x423a15('0x4e')];let _0x1439bb=_0x3241f[_0x423a15('0x4e')]+_0x3241f[_0x423a15('0x48')],_0x1bc3fc;return _0x1439bb>=_0x247450?(_0x1439bb=_0x247450,_0x1bc3fc=0xc8):_0x1bc3fc=0xce,_0x362b44[_0x423a15('0x5')](_0x1bc3fc),_0x362b44[_0x423a15('0x12')](_0x423a15('0x56'),_0x4df04e+'-'+_0x1439bb+'/'+_0x247450)[_0x423a15('0x51')](_0x98d543);}return null;};}function saveUpdates(_0x29fab0){return function(_0x515eb9){const _0x1a8543=a320_0x2465;if(_0x515eb9)return _0x515eb9[_0x1a8543('0x4c')](_0x29fab0)[_0x1a8543('0x32')](function(_0x1fb0d4){return _0x1fb0d4;});return null;};}function removeEntity(_0x4f2bee){return function(_0x31a4f9){const _0x1ec881=a320_0x2465;if(_0x31a4f9)return _0x31a4f9['destroy']()[_0x1ec881('0x32')](function(){const _0x40c0a7=_0x1ec881;_0x4f2bee['status'](0xcc)[_0x40c0a7('0x1b')]();});};}function handleEntityNotFound(_0xfb0dc1){return function(_0x33076f){const _0x5e80d5=a320_0x2465;return!_0x33076f&&_0xfb0dc1[_0x5e80d5('0x52')](0x194),_0x33076f;};}function handleError(_0xf93060,_0x127761){return _0x127761=_0x127761||0x1f4,function(_0x4ac7e7){const _0x106cf7=a320_0x2465;logger[_0x106cf7('0x8')](_0x4ac7e7[_0x106cf7('0x30')]),_0x4ac7e7[_0x106cf7('0x5a')]&&delete _0x4ac7e7[_0x106cf7('0x5a')],_0xf93060[_0x106cf7('0x5')](_0x127761)[_0x106cf7('0x47')](_0x4ac7e7);};}exports[_0x3999e6('0x53')]=function(_0x5de0ef,_0x388a6d){const _0x4ad9cc=_0x3999e6;let _0x5eb907={};const _0x4d4852={},_0x1200bf={'count':0x0,'rows':[]},_0x1da10c=_['map'](db[_0x4ad9cc('0x57')][_0x4ad9cc('0x2c')],function(_0x1de635){const _0x162ec1=_0x4ad9cc;return{'name':_0x1de635[_0x162ec1('0x37')],'type':_0x1de635[_0x162ec1('0x3c')][_0x162ec1('0x33')]};});_0x4d4852['model']=_['map'](_0x1da10c,_0x4ad9cc('0x5a')),_0x4d4852[_0x4ad9cc('0x0')]=_[_0x4ad9cc('0x2b')](_0x5de0ef[_0x4ad9cc('0x0')]),_0x4d4852[_0x4ad9cc('0xc')]=_[_0x4ad9cc('0x19')](_0x4d4852[_0x4ad9cc('0x3b')],_0x4d4852[_0x4ad9cc('0x0')]),_0x5eb907['attributes']=_[_0x4ad9cc('0x19')](_0x4d4852[_0x4ad9cc('0x3b')],qs['fields'](_0x5de0ef[_0x4ad9cc('0x0')][_0x4ad9cc('0x42')])),_0x5eb907[_0x4ad9cc('0x31')]=_0x5eb907[_0x4ad9cc('0x31')][_0x4ad9cc('0x2e')]?_0x5eb907[_0x4ad9cc('0x31')]:_0x4d4852[_0x4ad9cc('0x3b')];typeof _0x5de0ef[_0x4ad9cc('0x0')]['nolimit']==='undefined'&&(_0x5eb907['limit']=qs[_0x4ad9cc('0x48')](_0x5de0ef['query'][_0x4ad9cc('0x48')]),_0x5eb907[_0x4ad9cc('0x4e')]=qs[_0x4ad9cc('0x4e')](_0x5de0ef[_0x4ad9cc('0x0')][_0x4ad9cc('0x4e')]));_0x5eb907[_0x4ad9cc('0x36')]=qs[_0x4ad9cc('0x1e')](_0x5de0ef['query'][_0x4ad9cc('0x1e')]),_0x5eb907[_0x4ad9cc('0x16')]=qs['filters'](_['pick'](_0x5de0ef[_0x4ad9cc('0x0')],_0x4d4852[_0x4ad9cc('0xc')]),_0x1da10c);_0x5de0ef[_0x4ad9cc('0x0')]['filter']&&(_0x5eb907[_0x4ad9cc('0x16')]=_[_0x4ad9cc('0x34')](_0x5eb907[_0x4ad9cc('0x16')],{[Op['or']]:_['map'](_0x1da10c,function(_0x251d17){const _0x9a8484=_0x4ad9cc;if(_0x251d17[_0x9a8484('0x3c')]!=='VIRTUAL'){const _0x2d7a70={};return _0x2d7a70[_0x251d17[_0x9a8484('0x5a')]]={[Op[_0x9a8484('0x58')]]:'%'+_0x5de0ef[_0x9a8484('0x0')][_0x9a8484('0x15')]+'%'},_0x2d7a70;}})}));_0x5eb907=_['merge']({},_0x5eb907,_0x5de0ef[_0x4ad9cc('0x13')]);const _0x14c15f={'where':_0x5eb907[_0x4ad9cc('0x16')]};return db['VtigerAccount']['count'](_0x14c15f)['then'](function(_0x36bb8e){const _0x416829=_0x4ad9cc;return _0x1200bf[_0x416829('0x7')]=_0x36bb8e,_0x5de0ef[_0x416829('0x0')][_0x416829('0x54')]&&(_0x5eb907[_0x416829('0x22')]=[{'all':!![]}]),db[_0x416829('0x57')][_0x416829('0x20')](_0x5eb907);})[_0x4ad9cc('0x32')](function(_0x262007){const _0x252483=_0x4ad9cc;return _0x1200bf[_0x252483('0x17')]=_0x262007,_0x1200bf;})['then'](respondWithFilteredResult(_0x388a6d,_0x5eb907))[_0x4ad9cc('0x25')](handleError(_0x388a6d,null));},exports[_0x3999e6('0x44')]=function(_0x99eb3f,_0x3a35b1){const _0x1047f3=_0x3999e6;let _0x45b8e6={'raw':![],'where':{'id':_0x99eb3f[_0x1047f3('0x1d')]['id']}};const _0xf0baeb={};return _0xf0baeb[_0x1047f3('0x3b')]=_[_0x1047f3('0x2b')](db[_0x1047f3('0x57')]['rawAttributes']),_0xf0baeb[_0x1047f3('0x0')]=_[_0x1047f3('0x2b')](_0x99eb3f[_0x1047f3('0x0')]),_0xf0baeb[_0x1047f3('0xc')]=_[_0x1047f3('0x19')](_0xf0baeb[_0x1047f3('0x3b')],_0xf0baeb[_0x1047f3('0x0')]),_0x45b8e6[_0x1047f3('0x31')]=_['intersection'](_0xf0baeb[_0x1047f3('0x3b')],qs[_0x1047f3('0x42')](_0x99eb3f[_0x1047f3('0x0')][_0x1047f3('0x42')])),_0x45b8e6[_0x1047f3('0x31')]=_0x45b8e6[_0x1047f3('0x31')]['length']?_0x45b8e6[_0x1047f3('0x31')]:_0xf0baeb[_0x1047f3('0x3b')],_0x99eb3f['query']['includeAll']&&(_0x45b8e6[_0x1047f3('0x22')]=[{'all':!![]}]),_0x45b8e6=_[_0x1047f3('0x34')]({},_0x45b8e6,_0x99eb3f[_0x1047f3('0x13')]),db[_0x1047f3('0x57')][_0x1047f3('0x46')](_0x45b8e6)[_0x1047f3('0x32')](handleEntityNotFound(_0x3a35b1,null))[_0x1047f3('0x32')](respondWithResult(_0x3a35b1,null))[_0x1047f3('0x25')](handleError(_0x3a35b1,null));},exports[_0x3999e6('0x4a')]=function(_0x6ab9a3,_0x37eb9a){const _0x45a4f4=_0x3999e6;return db['VtigerAccount'][_0x45a4f4('0x4a')](_0x6ab9a3[_0x45a4f4('0x55')],{})[_0x45a4f4('0x32')](respondWithResult(_0x37eb9a,0xc9))[_0x45a4f4('0x25')](handleError(_0x37eb9a,null));},exports[_0x3999e6('0x4c')]=function(_0x30b9d4,_0x4b4c29){const _0x2de00d=_0x3999e6;return _0x30b9d4['body']['id']&&delete _0x30b9d4[_0x2de00d('0x55')]['id'],db['VtigerAccount'][_0x2de00d('0x46')]({'where':{'id':_0x30b9d4[_0x2de00d('0x1d')]['id']}})[_0x2de00d('0x32')](handleEntityNotFound(_0x4b4c29,null))[_0x2de00d('0x32')](saveUpdates(_0x30b9d4['body'],null))[_0x2de00d('0x32')](respondWithResult(_0x4b4c29,null))[_0x2de00d('0x25')](handleError(_0x4b4c29,null));},exports[_0x3999e6('0x1f')]=function(_0x584ee4,_0x1095b9){const _0x357b1d=_0x3999e6;return db['VtigerAccount'][_0x357b1d('0x46')]({'where':{'id':_0x584ee4['params']['id']}})[_0x357b1d('0x32')](handleEntityNotFound(_0x1095b9,null))[_0x357b1d('0x32')](removeEntity(_0x1095b9,null))['catch'](handleError(_0x1095b9,null));},exports[_0x3999e6('0x3a')]=function(_0x53d8fc,_0x3bfcde){const _0x13997a=_0x3999e6;let _0x2f2f5b={};const _0x174bed={};let _0x17b722,_0x2cbf61;return db[_0x13997a('0x57')]['findOne']({'where':{'id':_0x53d8fc[_0x13997a('0x1d')]['id']}})[_0x13997a('0x32')](handleEntityNotFound(_0x3bfcde,null))['then'](function(_0x46e35b){const _0x49849b=_0x13997a;if(_0x46e35b)return _0x17b722=_0x46e35b,_0x174bed[_0x49849b('0x3b')]=_[_0x49849b('0x2b')](db[_0x49849b('0x14')][_0x49849b('0x2c')]),_0x174bed['query']=_[_0x49849b('0x2b')](_0x53d8fc[_0x49849b('0x0')]),_0x174bed[_0x49849b('0xc')]=_[_0x49849b('0x19')](_0x174bed[_0x49849b('0x3b')],_0x174bed['query']),_0x2f2f5b['attributes']=_[_0x49849b('0x19')](_0x174bed[_0x49849b('0x3b')],qs[_0x49849b('0x42')](_0x53d8fc[_0x49849b('0x0')]['fields'])),_0x2f2f5b['attributes']=_0x2f2f5b['attributes'][_0x49849b('0x2e')]?_0x2f2f5b['attributes']:_0x174bed[_0x49849b('0x3b')],_0x2f2f5b['order']=qs['sort'](_0x53d8fc['query'][_0x49849b('0x1e')]),_0x2f2f5b[_0x49849b('0x16')]=qs[_0x49849b('0xc')](_['pick'](_0x53d8fc['query'],_0x174bed[_0x49849b('0xc')])),_0x53d8fc['query'][_0x49849b('0x15')]&&(_0x2f2f5b[_0x49849b('0x16')]=_[_0x49849b('0x34')](_0x2f2f5b[_0x49849b('0x16')],{[Op['or']]:_[_0x49849b('0x6')](_0x2f2f5b['attributes'],function(_0x27b183){const _0x1d1e3b=_0x49849b,_0x470cda={};return _0x470cda[_0x27b183]={[Op[_0x1d1e3b('0x58')]]:'%'+_0x53d8fc[_0x1d1e3b('0x0')][_0x1d1e3b('0x15')]+'%'},_0x470cda;})})),_0x2f2f5b=_['merge']({},_0x2f2f5b,_0x53d8fc[_0x49849b('0x13')]),_0x17b722[_0x49849b('0x3a')](_0x2f2f5b);})[_0x13997a('0x32')](function(_0x27c418){const _0x403963=_0x13997a;if(_0x27c418)return _0x2cbf61=_0x27c418['length'],typeof _0x53d8fc[_0x403963('0x0')]['nolimit']===_0x403963('0x28')&&(_0x2f2f5b[_0x403963('0x48')]=qs[_0x403963('0x48')](_0x53d8fc['query'][_0x403963('0x48')]),_0x2f2f5b[_0x403963('0x4e')]=qs[_0x403963('0x4e')](_0x53d8fc[_0x403963('0x0')][_0x403963('0x4e')])),_0x17b722[_0x403963('0x3a')](_0x2f2f5b);})['then'](function(_0x1bef80){if(_0x1bef80)return _0x1bef80?{'count':_0x2cbf61,'rows':_0x1bef80}:null;})[_0x13997a('0x32')](respondWithResult(_0x3bfcde,null))[_0x13997a('0x25')](handleError(_0x3bfcde,null));},exports[_0x3999e6('0x1a')]=function(_0x389a47,_0x5e3355){const _0x56ba40=_0x3999e6;return _0x389a47['body']['id']&&delete _0x389a47[_0x56ba40('0x55')]['id'],db[_0x56ba40('0x57')][_0x56ba40('0x46')]({'where':{'id':_0x389a47['params']['id']}})[_0x56ba40('0x32')](handleEntityNotFound(_0x5e3355,null))[_0x56ba40('0x32')](function(_0x30dd27){const _0x2a0ee6=_0x56ba40;if(_0x30dd27)return _0x389a47[_0x2a0ee6('0x55')][_0x2a0ee6('0x3f')]=_0x30dd27['id'],_0x389a47[_0x2a0ee6('0x55')][_0x2a0ee6('0x60')]=integrations[_0x2a0ee6('0xd')](_0x389a47[_0x2a0ee6('0x55')]['channel'],_0x389a47[_0x2a0ee6('0x55')][_0x2a0ee6('0x3c')]),_0x389a47['body'][_0x2a0ee6('0x29')]=integrations['getDescriptions'](_0x389a47[_0x2a0ee6('0x55')]['channel'],_0x389a47[_0x2a0ee6('0x55')][_0x2a0ee6('0x3c')]),db[_0x2a0ee6('0x14')][_0x2a0ee6('0x4a')](_0x389a47[_0x2a0ee6('0x55')],{'include':[{'model':db[_0x2a0ee6('0x5b')],'as':_0x2a0ee6('0x60')},{'model':db[_0x2a0ee6('0x5b')],'as':'Descriptions'}]});return null;})['then'](respondWithResult(_0x5e3355,null))[_0x56ba40('0x25')](handleError(_0x5e3355,null));};const md5=require('md5');exports[_0x3999e6('0x41')]=function(_0x679838,_0x21ab58){const _0x5cd2fc=_0x3999e6;let _0x96e7c9=null,_0x4a8e19=null,_0x317bac=null,_0x21fc53=null,_0x4bd829='';return db[_0x5cd2fc('0x57')][_0x5cd2fc('0x46')]({'where':{'id':_0x679838[_0x5cd2fc('0x1d')]['id']},'attributes':['id',_0x5cd2fc('0x5a'),_0x5cd2fc('0x10'),_0x5cd2fc('0x4b'),_0x5cd2fc('0xa'),'remoteUri','serverUrl','accessKey']})[_0x5cd2fc('0x32')](handleEntityNotFound(_0x21ab58,null))['then'](function(_0x36cfbc){const _0x1384da=_0x5cd2fc;if(_0x36cfbc){_0x96e7c9=_0x36cfbc['username'],_0x4a8e19=_0x36cfbc[_0x1384da('0x45')],_0x317bac=_0x36cfbc[_0x1384da('0xa')],_0x4bd829=_0x36cfbc[_0x1384da('0x49')];const _0x1b9569=_0x4bd829['slice'](-0x1);_0x1b9569==='/'&&(_0x4bd829=_0x4bd829[_0x1384da('0x18')](0x0,_0x4bd829[_0x1384da('0x5c')](_0x1b9569)));_0x21fc53=util[_0x1384da('0x43')]('%s/webservice.php',_0x4bd829);const _0x2258de={'method':_0x1384da('0x9'),'uri':_0x21fc53,'qs':{'operation':'getchallenge','username':_0x36cfbc[_0x1384da('0x10')]},'json':!![]};return rp(_0x2258de);}})[_0x5cd2fc('0x32')](function(_0x4492be){const _0x5a55c0=_0x5cd2fc;if(_0x4492be[_0x5a55c0('0xb')]){const _0x17f1ef={'method':_0x5a55c0('0x39'),'uri':_0x21fc53,'form':{'operation':_0x5a55c0('0x5f'),'username':_0x96e7c9,'accessKey':md5(_0x4492be[_0x5a55c0('0x3')]['token']+_0x4a8e19)},'json':!![]};return rp(_0x17f1ef);}})[_0x5cd2fc('0x32')](function(_0x7e57bb){const _0x495f6e=_0x5cd2fc;if(_0x7e57bb[_0x495f6e('0xb')]){const _0x303388={'method':_0x495f6e('0x9'),'uri':_0x21fc53,'qs':{'operation':'describe','username':_0x96e7c9,'sessionName':_0x7e57bb[_0x495f6e('0x3')][_0x495f6e('0x38')],'elementType':_0x317bac},'json':!![]};return rp(_0x303388);}})['then'](function(_0x33e0dc){const _0x2e5052=_0x5cd2fc;if(_0x33e0dc[_0x2e5052('0xb')]){const _0x173f09=[_0x2e5052('0x2'),'reference',_0x2e5052('0x11')];return _['remove'](_0x33e0dc[_0x2e5052('0x3')][_0x2e5052('0x42')],function(_0x21e02f){const _0x1be33c=_0x2e5052;return _0x173f09[_0x1be33c('0xe')](_0x21e02f[_0x1be33c('0x3c')][_0x1be33c('0x5a')]);}),_['remove'](_0x33e0dc[_0x2e5052('0x3')][_0x2e5052('0x42')],function(_0x6cd046){const _0x2eac3f=_0x2e5052;return _0x6cd046[_0x2eac3f('0x2a')]===_0x2eac3f('0x35');}),{'count':_0x33e0dc['result']['fields']['length'],'rows':_[_0x2e5052('0x6')](_0x33e0dc[_0x2e5052('0x3')][_0x2e5052('0x42')],function(_0x5c5b5d){const _0x21a97d=_0x2e5052;return{'id':_0x5c5b5d['name'],'name':_0x5c5b5d[_0x21a97d('0x2f')],'custom':_[_0x21a97d('0x26')](_0x5c5b5d['name'],_0x21a97d('0x40'))?!![]:![],'options':_0x5c5b5d['type'][_0x21a97d('0x5a')]===_0x21a97d('0x4d')&&_0x5c5b5d[_0x21a97d('0x3c')][_0x21a97d('0x1')]['length']>0x0?_['map'](_0x5c5b5d[_0x21a97d('0x3c')]['picklistValues'],function(_0x2993ca){const _0xbe7fb7=_0x21a97d;return{'name':_0x2993ca[_0xbe7fb7('0x2f')],'value':_0x2993ca[_0xbe7fb7('0x27')]};}):[]};})};}})[_0x5cd2fc('0x32')](respondWithResult(_0x21ab58,null))[_0x5cd2fc('0x25')](function(_0x38e29a){const _0x2eb553=_0x5cd2fc;console[_0x2eb553('0x3d')](_0x2eb553('0x23')+_0x38e29a);let _0x12afe8=_0x679838[_0x2eb553('0x0')][_0x2eb553('0x24')]?0x1f4:_0x38e29a[_0x2eb553('0x5d')]||0x1f4;logger[_0x2eb553('0x8')](_0x2eb553('0x4f'),_0x2eb553('0x41'),_0x12afe8,JSON[_0x2eb553('0x1c')](_0x38e29a)),delete _0x38e29a[_0x2eb553('0x5a')],_0x12afe8===0x191&&(_0x12afe8=0x190),_0x21ab58[_0x2eb553('0x5')](_0x12afe8)['send'](_0x679838[_0x2eb553('0x0')][_0x2eb553('0x24')]?{'message':_0x2eb553('0x3e'),'statusCode':_0x38e29a['statusCode']}:_0x38e29a);});}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.model.js b/server/api/intVtigerAccount/intVtigerAccount.model.js index 7fa2581..b40919c 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.model.js +++ b/server/api/intVtigerAccount/intVtigerAccount.model.js @@ -1 +1 @@ -const a321_0x76a4=['int_vtiger_accounts','exports','VtigerAccount','./intVtigerAccount.attributes','define'];(function(_0x202100,_0x76a473){const _0x26f724=function(_0x563ede){while(--_0x563ede){_0x202100['push'](_0x202100['shift']());}};_0x26f724(++_0x76a473);}(a321_0x76a4,0xa3));const a321_0x26f7=function(_0x202100,_0x76a473){_0x202100=_0x202100-0x0;let _0x26f724=a321_0x76a4[_0x202100];return _0x26f724;};const _0x2f256b=a321_0x26f7;'use strict';const attributes=require(_0x2f256b('0x0'));module[_0x2f256b('0x3')]=function(_0x563ede){const _0x57a1ce=_0x2f256b,_0x14047f=_0x563ede[_0x57a1ce('0x1')](_0x57a1ce('0x4'),attributes,{'tableName':_0x57a1ce('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x14047f;}; \ No newline at end of file +const a321_0x4d52=['int_vtiger_accounts','define','./intVtigerAccount.attributes','VtigerAccount'];(function(_0x513950,_0x4d52ec){const _0x570718=function(_0x3d0f75){while(--_0x3d0f75){_0x513950['push'](_0x513950['shift']());}};_0x570718(++_0x4d52ec);}(a321_0x4d52,0x74));const a321_0x5707=function(_0x513950,_0x4d52ec){_0x513950=_0x513950-0x0;let _0x570718=a321_0x4d52[_0x513950];return _0x570718;};const _0x5deb83=a321_0x5707;'use strict';const attributes=require(_0x5deb83('0x2'));module['exports']=function(_0x3d0f75){const _0x22ec6e=_0x5deb83,_0x2f3df3=_0x3d0f75[_0x22ec6e('0x1')](_0x22ec6e('0x3'),attributes,{'tableName':_0x22ec6e('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2f3df3;}; \ No newline at end of file diff --git a/server/api/intVtigerAccount/intVtigerAccount.rpc.js b/server/api/intVtigerAccount/intVtigerAccount.rpc.js index e022765..93b3cdd 100644 --- a/server/api/intVtigerAccount/intVtigerAccount.rpc.js +++ b/server/api/intVtigerAccount/intVtigerAccount.rpc.js @@ -1 +1 @@ -const a322_0xf3fa=['debug','where','attributes','findAll','ShowVtigerAccount','catch','message','../../config/logger','info','then','GetVtigerAccount','stringify','model','lodash','map','VtigerAccount','error','include','rpc','limit','options','raw','../../mysqldb'];(function(_0x5e3648,_0xf3fa3b){const _0x34fc90=function(_0x176306){while(--_0x176306){_0x5e3648['push'](_0x5e3648['shift']());}};_0x34fc90(++_0xf3fa3b);}(a322_0xf3fa,0x136));const a322_0x34fc=function(_0x5e3648,_0xf3fa3b){_0x5e3648=_0x5e3648-0x0;let _0x34fc90=a322_0xf3fa[_0x5e3648];return _0x34fc90;};const _0x2c25ee=a322_0x34fc;'use strict';const _=require(_0x2c25ee('0x2')),db=require(_0x2c25ee('0xb'))['db'],logger=require(_0x2c25ee('0x13'))(_0x2c25ee('0x7'));exports[_0x2c25ee('0x16')]=function(_0x176306){const _0x166e81=this;return new Promise(function(_0x3e8355,_0x3cba0a){const _0x1bfe4d=a322_0x34fc;return db[_0x1bfe4d('0x4')][_0x1bfe4d('0xf')]({'raw':_0x176306[_0x1bfe4d('0x9')]?_0x176306[_0x1bfe4d('0x9')]['raw']===undefined?!![]:![]:!![],'where':_0x176306['options']?_0x176306[_0x1bfe4d('0x9')][_0x1bfe4d('0xd')]||null:null,'attributes':_0x176306['options']?_0x176306[_0x1bfe4d('0x9')][_0x1bfe4d('0xe')]||null:null,'limit':_0x176306['options']?_0x176306[_0x1bfe4d('0x9')][_0x1bfe4d('0x8')]||null:null,'include':_0x176306['options']?_0x176306[_0x1bfe4d('0x9')][_0x1bfe4d('0x6')]?_['map'](_0x176306['options'][_0x1bfe4d('0x6')],function(_0x9bb3af){const _0x1c8646=_0x1bfe4d;return{'model':db[_0x9bb3af[_0x1c8646('0x1')]],'as':_0x9bb3af['as'],'attributes':_0x9bb3af[_0x1c8646('0xe')],'include':_0x9bb3af[_0x1c8646('0x6')]?_[_0x1c8646('0x3')](_0x9bb3af[_0x1c8646('0x6')],function(_0x114d60){const _0x3a75ae=_0x1c8646;return{'model':db[_0x114d60[_0x3a75ae('0x1')]],'as':_0x114d60['as'],'attributes':_0x114d60['attributes'],'include':_0x114d60[_0x3a75ae('0x6')]?_[_0x3a75ae('0x3')](_0x114d60[_0x3a75ae('0x6')],function(_0x4a3df9){const _0x496e5e=_0x3a75ae;return{'model':db[_0x4a3df9[_0x496e5e('0x1')]],'as':_0x4a3df9['as'],'attributes':_0x4a3df9[_0x496e5e('0xe')]};}):[]};}):[]};}):[]:[]})[_0x1bfe4d('0x15')](function(_0x462ff3){const _0x4cdec9=_0x1bfe4d;logger[_0x4cdec9('0x14')]('GetVtigerAccount',_0x176306),logger[_0x4cdec9('0xc')](_0x4cdec9('0x16'),_0x176306,JSON[_0x4cdec9('0x0')](_0x462ff3)),_0x3e8355(_0x462ff3);})[_0x1bfe4d('0x11')](function(_0x153093){const _0x364e5d=_0x1bfe4d;logger['error']('GetVtigerAccount',_0x153093['message'],_0x176306),_0x3cba0a(_0x166e81[_0x364e5d('0x5')](0x1f4,_0x153093[_0x364e5d('0x12')]));});});},exports['ShowVtigerAccount']=function(_0x245133){const _0x8fdc4a=this;return new Promise(function(_0x51bc04,_0x18edcb){const _0x29e4c6=a322_0x34fc;return db['VtigerAccount']['findOne']({'raw':_0x245133['options']?_0x245133[_0x29e4c6('0x9')][_0x29e4c6('0xa')]===undefined?!![]:![]:!![],'where':_0x245133[_0x29e4c6('0x9')]?_0x245133[_0x29e4c6('0x9')][_0x29e4c6('0xd')]||null:null,'attributes':_0x245133[_0x29e4c6('0x9')]?_0x245133[_0x29e4c6('0x9')][_0x29e4c6('0xe')]||null:null,'include':_0x245133[_0x29e4c6('0x9')]?_0x245133[_0x29e4c6('0x9')][_0x29e4c6('0x6')]?_[_0x29e4c6('0x3')](_0x245133[_0x29e4c6('0x9')][_0x29e4c6('0x6')],function(_0x3cbc01){const _0x5c6485=_0x29e4c6;return{'model':db[_0x3cbc01[_0x5c6485('0x1')]],'as':_0x3cbc01['as'],'attributes':_0x3cbc01[_0x5c6485('0xe')],'include':_0x3cbc01[_0x5c6485('0x6')]?_[_0x5c6485('0x3')](_0x3cbc01['include'],function(_0x2347cd){const _0x296b8b=_0x5c6485;return{'model':db[_0x2347cd['model']],'as':_0x2347cd['as'],'attributes':_0x2347cd[_0x296b8b('0xe')],'include':_0x2347cd[_0x296b8b('0x6')]?_[_0x296b8b('0x3')](_0x2347cd[_0x296b8b('0x6')],function(_0x5ba3dd){const _0x404805=_0x296b8b;return{'model':db[_0x5ba3dd[_0x404805('0x1')]],'as':_0x5ba3dd['as'],'attributes':_0x5ba3dd[_0x404805('0xe')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x29c5c1){const _0x496a24=_0x29e4c6;logger['info'](_0x496a24('0x10'),_0x245133),logger[_0x496a24('0xc')](_0x496a24('0x10'),_0x245133,JSON['stringify'](_0x29c5c1)),_0x51bc04(_0x29c5c1);})[_0x29e4c6('0x11')](function(_0x3715ff){const _0x5e225d=_0x29e4c6;logger['error'](_0x5e225d('0x10'),_0x3715ff['message'],_0x245133),_0x18edcb(_0x8fdc4a['error'](0x1f4,_0x3715ff[_0x5e225d('0x12')]));});});}; \ No newline at end of file +const a322_0x4657=['GetVtigerAccount','message','lodash','ShowVtigerAccount','attributes','include','info','where','error','../../mysqldb','options','map','catch','../../config/logger','model','debug','raw','VtigerAccount','then','findOne','findAll'];(function(_0x1c5f8b,_0x4657f6){const _0x56fdec=function(_0x270221){while(--_0x270221){_0x1c5f8b['push'](_0x1c5f8b['shift']());}};_0x56fdec(++_0x4657f6);}(a322_0x4657,0xe4));const a322_0x56fd=function(_0x1c5f8b,_0x4657f6){_0x1c5f8b=_0x1c5f8b-0x0;let _0x56fdec=a322_0x4657[_0x1c5f8b];return _0x56fdec;};const _0x5c8a21=a322_0x56fd;'use strict';const _=require(_0x5c8a21('0x5')),db=require(_0x5c8a21('0xc'))['db'],logger=require(_0x5c8a21('0x10'))('rpc');exports[_0x5c8a21('0x3')]=function(_0x270221){const _0x320f03=this;return new Promise(function(_0x49a86f,_0x2a1788){const _0x4fa509=a322_0x56fd;return db[_0x4fa509('0x14')][_0x4fa509('0x2')]({'raw':_0x270221[_0x4fa509('0xd')]?_0x270221[_0x4fa509('0xd')][_0x4fa509('0x13')]===undefined?!![]:![]:!![],'where':_0x270221['options']?_0x270221[_0x4fa509('0xd')][_0x4fa509('0xa')]||null:null,'attributes':_0x270221['options']?_0x270221['options'][_0x4fa509('0x7')]||null:null,'limit':_0x270221['options']?_0x270221['options']['limit']||null:null,'include':_0x270221[_0x4fa509('0xd')]?_0x270221[_0x4fa509('0xd')][_0x4fa509('0x8')]?_['map'](_0x270221[_0x4fa509('0xd')][_0x4fa509('0x8')],function(_0x5615a9){const _0x8a9c12=_0x4fa509;return{'model':db[_0x5615a9[_0x8a9c12('0x11')]],'as':_0x5615a9['as'],'attributes':_0x5615a9['attributes'],'include':_0x5615a9[_0x8a9c12('0x8')]?_[_0x8a9c12('0xe')](_0x5615a9['include'],function(_0x156d7e){const _0x40f355=_0x8a9c12;return{'model':db[_0x156d7e[_0x40f355('0x11')]],'as':_0x156d7e['as'],'attributes':_0x156d7e[_0x40f355('0x7')],'include':_0x156d7e['include']?_[_0x40f355('0xe')](_0x156d7e[_0x40f355('0x8')],function(_0x336abb){const _0x57bda6=_0x40f355;return{'model':db[_0x336abb['model']],'as':_0x336abb['as'],'attributes':_0x336abb[_0x57bda6('0x7')]};}):[]};}):[]};}):[]:[]})[_0x4fa509('0x0')](function(_0x433cd4){const _0x54bc60=_0x4fa509;logger['info'](_0x54bc60('0x3'),_0x270221),logger[_0x54bc60('0x12')]('GetVtigerAccount',_0x270221,JSON['stringify'](_0x433cd4)),_0x49a86f(_0x433cd4);})['catch'](function(_0x32fff5){const _0x7c400b=_0x4fa509;logger[_0x7c400b('0xb')](_0x7c400b('0x3'),_0x32fff5[_0x7c400b('0x4')],_0x270221),_0x2a1788(_0x320f03['error'](0x1f4,_0x32fff5[_0x7c400b('0x4')]));});});},exports[_0x5c8a21('0x6')]=function(_0x43f0f9){const _0x3bbe2f=this;return new Promise(function(_0x2619fa,_0x16c2c8){const _0x8d44a1=a322_0x56fd;return db[_0x8d44a1('0x14')][_0x8d44a1('0x1')]({'raw':_0x43f0f9[_0x8d44a1('0xd')]?_0x43f0f9[_0x8d44a1('0xd')][_0x8d44a1('0x13')]===undefined?!![]:![]:!![],'where':_0x43f0f9[_0x8d44a1('0xd')]?_0x43f0f9[_0x8d44a1('0xd')][_0x8d44a1('0xa')]||null:null,'attributes':_0x43f0f9[_0x8d44a1('0xd')]?_0x43f0f9[_0x8d44a1('0xd')]['attributes']||null:null,'include':_0x43f0f9[_0x8d44a1('0xd')]?_0x43f0f9[_0x8d44a1('0xd')][_0x8d44a1('0x8')]?_[_0x8d44a1('0xe')](_0x43f0f9[_0x8d44a1('0xd')]['include'],function(_0x2f7ce6){const _0x2f2673=_0x8d44a1;return{'model':db[_0x2f7ce6[_0x2f2673('0x11')]],'as':_0x2f7ce6['as'],'attributes':_0x2f7ce6['attributes'],'include':_0x2f7ce6[_0x2f2673('0x8')]?_[_0x2f2673('0xe')](_0x2f7ce6[_0x2f2673('0x8')],function(_0x1e19ef){const _0x3fa550=_0x2f2673;return{'model':db[_0x1e19ef['model']],'as':_0x1e19ef['as'],'attributes':_0x1e19ef[_0x3fa550('0x7')],'include':_0x1e19ef[_0x3fa550('0x8')]?_['map'](_0x1e19ef[_0x3fa550('0x8')],function(_0xeee7b7){const _0x1c36e6=_0x3fa550;return{'model':db[_0xeee7b7[_0x1c36e6('0x11')]],'as':_0xeee7b7['as'],'attributes':_0xeee7b7[_0x1c36e6('0x7')]};}):[]};}):[]};}):[]:[]})[_0x8d44a1('0x0')](function(_0x5bf6e9){const _0x4b4d8e=_0x8d44a1;logger[_0x4b4d8e('0x9')]('ShowVtigerAccount',_0x43f0f9),logger[_0x4b4d8e('0x12')](_0x4b4d8e('0x6'),_0x43f0f9,JSON['stringify'](_0x5bf6e9)),_0x2619fa(_0x5bf6e9);})[_0x8d44a1('0xf')](function(_0x2e643a){const _0x4ee8b1=_0x8d44a1;logger[_0x4ee8b1('0xb')](_0x4ee8b1('0x6'),_0x2e643a[_0x4ee8b1('0x4')],_0x43f0f9),_0x16c2c8(_0x3bbe2f[_0x4ee8b1('0xb')](0x1f4,_0x2e643a[_0x4ee8b1('0x4')]));});});}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/index.js b/server/api/intVtigerConfiguration/index.js index 03b4814..14333f2 100644 --- a/server/api/intVtigerConfiguration/index.js +++ b/server/api/intVtigerConfiguration/index.js @@ -1 +1 @@ -const a323_0xd9f9=['delete','isAuthenticated','Router','get','getSubjects','getFields','index','/:id/descriptions','/:id/fields','post','./intVtigerConfiguration.controller','put','update','exports','/:id','/:id/subjects','show','express','getDescriptions','create'];(function(_0xfc036b,_0xd9f952){const _0x21e833=function(_0x71e58d){while(--_0x71e58d){_0xfc036b['push'](_0xfc036b['shift']());}};_0x21e833(++_0xd9f952);}(a323_0xd9f9,0x1d8));const a323_0x21e8=function(_0xfc036b,_0xd9f952){_0xfc036b=_0xfc036b-0x0;let _0x21e833=a323_0xd9f9[_0xfc036b];return _0x21e833;};const _0x3f6578=a323_0x21e8;'use strict';const express=require(_0x3f6578('0x5')),router=express[_0x3f6578('0xa')](),auth=require('../../components/auth/service'),controller=require(_0x3f6578('0x12'));router[_0x3f6578('0xb')]('/',auth[_0x3f6578('0x9')](),controller[_0x3f6578('0xe')]),router[_0x3f6578('0xb')](_0x3f6578('0x2'),auth['isAuthenticated'](),controller[_0x3f6578('0x4')]),router[_0x3f6578('0xb')](_0x3f6578('0x10'),auth[_0x3f6578('0x9')](),controller[_0x3f6578('0xd')]),router['get'](_0x3f6578('0x3'),auth[_0x3f6578('0x9')](),controller[_0x3f6578('0xc')]),router[_0x3f6578('0xb')](_0x3f6578('0xf'),auth[_0x3f6578('0x9')](),controller[_0x3f6578('0x6')]),router[_0x3f6578('0x11')]('/',auth[_0x3f6578('0x9')](),controller[_0x3f6578('0x7')]),router[_0x3f6578('0x13')](_0x3f6578('0x2'),auth[_0x3f6578('0x9')](),controller[_0x3f6578('0x0')]),router[_0x3f6578('0x8')](_0x3f6578('0x2'),auth[_0x3f6578('0x9')](),controller['destroy']),module[_0x3f6578('0x1')]=router; \ No newline at end of file +const a323_0x244a=['getFields','getDescriptions','isAuthenticated','/:id/fields','put','show','exports','getSubjects','Router','index','/:id/descriptions','get','./intVtigerConfiguration.controller','create','delete','/:id'];(function(_0x2d28bd,_0x244aa2){const _0x3ad847=function(_0x4d4d50){while(--_0x4d4d50){_0x2d28bd['push'](_0x2d28bd['shift']());}};_0x3ad847(++_0x244aa2);}(a323_0x244a,0x11e));const a323_0x3ad8=function(_0x2d28bd,_0x244aa2){_0x2d28bd=_0x2d28bd-0x0;let _0x3ad847=a323_0x244a[_0x2d28bd];return _0x3ad847;};const _0x3d5847=a323_0x3ad8;'use strict';const express=require('express'),router=express[_0x3d5847('0xa')](),auth=require('../../components/auth/service'),controller=require(_0x3d5847('0xe'));router[_0x3d5847('0xd')]('/',auth['isAuthenticated'](),controller[_0x3d5847('0xb')]),router[_0x3d5847('0xd')](_0x3d5847('0x1'),auth['isAuthenticated'](),controller[_0x3d5847('0x7')]),router[_0x3d5847('0xd')](_0x3d5847('0x5'),auth['isAuthenticated'](),controller[_0x3d5847('0x2')]),router[_0x3d5847('0xd')]('/:id/subjects',auth['isAuthenticated'](),controller[_0x3d5847('0x9')]),router['get'](_0x3d5847('0xc'),auth[_0x3d5847('0x4')](),controller[_0x3d5847('0x3')]),router['post']('/',auth[_0x3d5847('0x4')](),controller[_0x3d5847('0xf')]),router[_0x3d5847('0x6')]('/:id',auth[_0x3d5847('0x4')](),controller['update']),router[_0x3d5847('0x0')](_0x3d5847('0x1'),auth[_0x3d5847('0x4')](),controller['destroy']),module[_0x3d5847('0x8')]=router; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js index 8788997..2a555cf 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.attributes.js @@ -1 +1 @@ -const a324_0x56e9=['exports','STRING'];(function(_0x17f9d8,_0x56e96c){const _0x257de0=function(_0x4f363d){while(--_0x4f363d){_0x17f9d8['push'](_0x17f9d8['shift']());}};_0x257de0(++_0x56e96c);}(a324_0x56e9,0x16e));const a324_0x257d=function(_0x17f9d8,_0x56e96c){_0x17f9d8=_0x17f9d8-0x0;let _0x257de0=a324_0x56e9[_0x17f9d8];return _0x257de0;};const _0x27a5c5=a324_0x257d;'use strict';const Sequelize=require('sequelize');module[_0x27a5c5('0x0')]={'name':{'type':Sequelize[_0x27a5c5('0x1')]},'description':{'type':Sequelize[_0x27a5c5('0x1')]}}; \ No newline at end of file +const a324_0x57c6=['STRING'];(function(_0x512dbb,_0x57c615){const _0x1b7a7d=function(_0x47a1dd){while(--_0x47a1dd){_0x512dbb['push'](_0x512dbb['shift']());}};_0x1b7a7d(++_0x57c615);}(a324_0x57c6,0x7d));const a324_0x1b7a=function(_0x512dbb,_0x57c615){_0x512dbb=_0x512dbb-0x0;let _0x1b7a7d=a324_0x57c6[_0x512dbb];return _0x1b7a7d;};const _0xcdcd3a=a324_0x1b7a;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0xcdcd3a('0x0')]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js index 3cfd578..c302b2a 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.controller.js @@ -1 +1 @@ -const a325_0x4f58=['options','include','Content-Range','filter','fields','../../config/logger','VIRTUAL','update','nolimit','order','findOne','name','send','catch','error','type','body','show','sendStatus','sequelize','destroy','keys','findAll','../../components/parsers/qs','lodash','VtigerConfiguration','attributes','like','end','intersection','getDescriptions','create','getFields','getSubjects','length','pick','offset','set','index','model','rawAttributes','filters','VtigerField','merge','undefined','key','stack','where','status','map','sort','then','api','query','limit','params','json'];(function(_0x4b5f61,_0x4f585f){const _0x354336=function(_0x1c651f){while(--_0x1c651f){_0x4b5f61['push'](_0x4b5f61['shift']());}};_0x354336(++_0x4f585f);}(a325_0x4f58,0xf2));const a325_0x3543=function(_0x4b5f61,_0x4f585f){_0x4b5f61=_0x4b5f61-0x0;let _0x354336=a325_0x4f58[_0x4b5f61];return _0x354336;};const _0x474171=a325_0x3543;'use strict';const _=require(_0x474171('0xa')),qs=require(_0x474171('0x9')),logger=require(_0x474171('0x30'))(_0x474171('0x26')),db=require('../../mysqldb')['db'],{Op}=require(_0x474171('0x5'));function respondWithResult(_0x1c651f,_0x11f314){return _0x11f314=_0x11f314||0xc8,function(_0x4707e5){const _0x48a5c2=a325_0x3543;if(_0x4707e5)return _0x1c651f[_0x48a5c2('0x22')](_0x11f314)[_0x48a5c2('0x2a')](_0x4707e5);};}function respondWithFilteredResult(_0x52d534,_0x48c50b){return function(_0x4cfff6){const _0x5bebb4=a325_0x3543;if(_0x4cfff6){const _0x33daa0=_0x4cfff6['count'],_0x183250=_0x48c50b[_0x5bebb4('0x16')];let _0x5b3f82=_0x48c50b['offset']+_0x48c50b['limit'],_0x1cbabc;return _0x5b3f82>=_0x33daa0?(_0x5b3f82=_0x33daa0,_0x1cbabc=0xc8):_0x1cbabc=0xce,_0x52d534['status'](_0x1cbabc),_0x52d534[_0x5bebb4('0x17')](_0x5bebb4('0x2d'),_0x183250+'-'+_0x5b3f82+'/'+_0x33daa0)[_0x5bebb4('0x2a')](_0x4cfff6);}return null;};}function saveUpdates(_0x26d91b){return function(_0x294f21){const _0xe6ccf7=a325_0x3543;if(_0x294f21)return _0x294f21[_0xe6ccf7('0x32')](_0x26d91b)[_0xe6ccf7('0x25')](function(_0xa25911){return _0xa25911;});return null;};}function removeEntity(_0x30d4da){return function(_0x498eec){const _0x3fd2d7=a325_0x3543;if(_0x498eec)return _0x498eec['destroy']()[_0x3fd2d7('0x25')](function(){const _0x26c58f=_0x3fd2d7;_0x30d4da['status'](0xcc)[_0x26c58f('0xe')]();});};}function handleEntityNotFound(_0x284c51){return function(_0x1460e9){const _0x5e3f4e=a325_0x3543;return!_0x1460e9&&_0x284c51[_0x5e3f4e('0x4')](0x194),_0x1460e9;};}function handleError(_0x53e8a3,_0x22bec7){return _0x22bec7=_0x22bec7||0x1f4,function(_0x4b1477){const _0x1e50ef=a325_0x3543;logger[_0x1e50ef('0x0')](_0x4b1477[_0x1e50ef('0x20')]),_0x4b1477['name']&&delete _0x4b1477['name'],_0x53e8a3[_0x1e50ef('0x22')](_0x22bec7)[_0x1e50ef('0x37')](_0x4b1477);};}exports[_0x474171('0x18')]=function(_0x494f60,_0xd9fb6f){const _0x3fc0b5=_0x474171;let _0x2fbd6c={};const _0x323eaf={},_0x554406={'count':0x0,'rows':[]},_0x4efd84=_[_0x3fc0b5('0x23')](db[_0x3fc0b5('0xb')][_0x3fc0b5('0x1a')],function(_0xd87f19){const _0x32ebf2=_0x3fc0b5;return{'name':_0xd87f19['fieldName'],'type':_0xd87f19[_0x32ebf2('0x1')][_0x32ebf2('0x1f')]};});_0x323eaf[_0x3fc0b5('0x19')]=_[_0x3fc0b5('0x23')](_0x4efd84,_0x3fc0b5('0x36')),_0x323eaf[_0x3fc0b5('0x27')]=_[_0x3fc0b5('0x7')](_0x494f60[_0x3fc0b5('0x27')]),_0x323eaf['filters']=_[_0x3fc0b5('0xf')](_0x323eaf['model'],_0x323eaf[_0x3fc0b5('0x27')]),_0x2fbd6c[_0x3fc0b5('0xc')]=_['intersection'](_0x323eaf['model'],qs['fields'](_0x494f60[_0x3fc0b5('0x27')][_0x3fc0b5('0x2f')])),_0x2fbd6c[_0x3fc0b5('0xc')]=_0x2fbd6c[_0x3fc0b5('0xc')][_0x3fc0b5('0x14')]?_0x2fbd6c[_0x3fc0b5('0xc')]:_0x323eaf['model'];typeof _0x494f60[_0x3fc0b5('0x27')][_0x3fc0b5('0x33')]===_0x3fc0b5('0x1e')&&(_0x2fbd6c[_0x3fc0b5('0x28')]=qs[_0x3fc0b5('0x28')](_0x494f60[_0x3fc0b5('0x27')][_0x3fc0b5('0x28')]),_0x2fbd6c[_0x3fc0b5('0x16')]=qs['offset'](_0x494f60[_0x3fc0b5('0x27')][_0x3fc0b5('0x16')]));_0x2fbd6c['order']=qs[_0x3fc0b5('0x24')](_0x494f60[_0x3fc0b5('0x27')][_0x3fc0b5('0x24')]),_0x2fbd6c[_0x3fc0b5('0x21')]=qs['filters'](_['pick'](_0x494f60[_0x3fc0b5('0x27')],_0x323eaf[_0x3fc0b5('0x1b')]),_0x4efd84);_0x494f60[_0x3fc0b5('0x27')][_0x3fc0b5('0x2e')]&&(_0x2fbd6c['where']=_[_0x3fc0b5('0x1d')](_0x2fbd6c[_0x3fc0b5('0x21')],{[Op['or']]:_['map'](_0x4efd84,function(_0x141160){const _0x3ce492=_0x3fc0b5;if(_0x141160[_0x3ce492('0x1')]!==_0x3ce492('0x31')){const _0x21eeb7={};return _0x21eeb7[_0x141160[_0x3ce492('0x36')]]={[Op[_0x3ce492('0xd')]]:'%'+_0x494f60[_0x3ce492('0x27')]['filter']+'%'},_0x21eeb7;}})}));_0x2fbd6c=_[_0x3fc0b5('0x1d')]({},_0x2fbd6c,_0x494f60[_0x3fc0b5('0x2b')]);const _0x11777f={'where':_0x2fbd6c[_0x3fc0b5('0x21')]};return db[_0x3fc0b5('0xb')]['count'](_0x11777f)[_0x3fc0b5('0x25')](function(_0x5b2166){const _0x5aac35=_0x3fc0b5;return _0x554406['count']=_0x5b2166,_0x494f60[_0x5aac35('0x27')]['includeAll']&&(_0x2fbd6c['include']=[{'all':!![]}]),db[_0x5aac35('0xb')][_0x5aac35('0x8')](_0x2fbd6c);})[_0x3fc0b5('0x25')](function(_0x20b829){return _0x554406['rows']=_0x20b829,_0x554406;})[_0x3fc0b5('0x25')](respondWithFilteredResult(_0xd9fb6f,_0x2fbd6c))[_0x3fc0b5('0x38')](handleError(_0xd9fb6f,null));},exports[_0x474171('0x3')]=function(_0x42f2db,_0x11f6d2){const _0x4b6eca=_0x474171;let _0x4c2807={'raw':![],'where':{'id':_0x42f2db[_0x4b6eca('0x29')]['id']}};const _0x4aaa19={};return _0x4aaa19[_0x4b6eca('0x19')]=_['keys'](db[_0x4b6eca('0xb')][_0x4b6eca('0x1a')]),_0x4aaa19[_0x4b6eca('0x27')]=_[_0x4b6eca('0x7')](_0x42f2db[_0x4b6eca('0x27')]),_0x4aaa19[_0x4b6eca('0x1b')]=_['intersection'](_0x4aaa19[_0x4b6eca('0x19')],_0x4aaa19['query']),_0x4c2807[_0x4b6eca('0xc')]=_[_0x4b6eca('0xf')](_0x4aaa19['model'],qs[_0x4b6eca('0x2f')](_0x42f2db[_0x4b6eca('0x27')]['fields'])),_0x4c2807[_0x4b6eca('0xc')]=_0x4c2807[_0x4b6eca('0xc')][_0x4b6eca('0x14')]?_0x4c2807[_0x4b6eca('0xc')]:_0x4aaa19[_0x4b6eca('0x19')],_0x42f2db['query']['includeAll']&&(_0x4c2807[_0x4b6eca('0x2c')]=[{'all':!![]}]),_0x4c2807=_[_0x4b6eca('0x1d')]({},_0x4c2807,_0x42f2db[_0x4b6eca('0x2b')]),db[_0x4b6eca('0xb')][_0x4b6eca('0x35')](_0x4c2807)[_0x4b6eca('0x25')](handleEntityNotFound(_0x11f6d2,null))[_0x4b6eca('0x25')](respondWithResult(_0x11f6d2,null))['catch'](handleError(_0x11f6d2,null));},exports[_0x474171('0x11')]=function(_0x5cbc69,_0x1afbde){const _0x13acdb=_0x474171;return db[_0x13acdb('0xb')]['create'](_0x5cbc69[_0x13acdb('0x2')],{})[_0x13acdb('0x25')](respondWithResult(_0x1afbde,0xc9))['catch'](handleError(_0x1afbde,null));},exports[_0x474171('0x32')]=function(_0x48ab6d,_0x522c16){const _0x1fa536=_0x474171;return _0x48ab6d['body']['id']&&delete _0x48ab6d[_0x1fa536('0x2')]['id'],db[_0x1fa536('0xb')][_0x1fa536('0x35')]({'where':{'id':_0x48ab6d[_0x1fa536('0x29')]['id']}})[_0x1fa536('0x25')](handleEntityNotFound(_0x522c16,null))[_0x1fa536('0x25')](saveUpdates(_0x48ab6d[_0x1fa536('0x2')],null))[_0x1fa536('0x25')](respondWithResult(_0x522c16,null))['catch'](handleError(_0x522c16,null));},exports[_0x474171('0x6')]=function(_0xbbf325,_0x5cd4bc){const _0x2c3e06=_0x474171;return db[_0x2c3e06('0xb')][_0x2c3e06('0x35')]({'where':{'id':_0xbbf325[_0x2c3e06('0x29')]['id']}})[_0x2c3e06('0x25')](handleEntityNotFound(_0x5cd4bc,null))[_0x2c3e06('0x25')](removeEntity(_0x5cd4bc,null))[_0x2c3e06('0x38')](handleError(_0x5cd4bc,null));},exports[_0x474171('0x12')]=function(_0x386085,_0x42d042){const _0x664ce3=_0x474171;let _0x49b607={};const _0x23d713={};let _0x18a221,_0x82cfce;return db[_0x664ce3('0xb')]['findOne']({'where':{'id':_0x386085[_0x664ce3('0x29')]['id']}})[_0x664ce3('0x25')](handleEntityNotFound(_0x42d042,null))[_0x664ce3('0x25')](function(_0x301736){const _0x3575fb=_0x664ce3;if(_0x301736)return _0x18a221=_0x301736,_0x23d713[_0x3575fb('0x19')]=_['keys'](db[_0x3575fb('0x1c')]['rawAttributes']),_0x23d713[_0x3575fb('0x27')]=_[_0x3575fb('0x7')](_0x386085[_0x3575fb('0x27')]),_0x23d713[_0x3575fb('0x1b')]=_[_0x3575fb('0xf')](_0x23d713[_0x3575fb('0x19')],_0x23d713[_0x3575fb('0x27')]),_0x49b607[_0x3575fb('0xc')]=_[_0x3575fb('0xf')](_0x23d713['model'],qs['fields'](_0x386085[_0x3575fb('0x27')][_0x3575fb('0x2f')])),_0x49b607[_0x3575fb('0xc')]=_0x49b607[_0x3575fb('0xc')][_0x3575fb('0x14')]?_0x49b607[_0x3575fb('0xc')]:_0x23d713['model'],_0x49b607[_0x3575fb('0x34')]=qs[_0x3575fb('0x24')](_0x386085[_0x3575fb('0x27')][_0x3575fb('0x24')]),_0x49b607[_0x3575fb('0x21')]=qs[_0x3575fb('0x1b')](_[_0x3575fb('0x15')](_0x386085['query'],_0x23d713[_0x3575fb('0x1b')])),_0x386085[_0x3575fb('0x27')][_0x3575fb('0x2e')]&&(_0x49b607[_0x3575fb('0x21')]=_[_0x3575fb('0x1d')](_0x49b607['where'],{[Op['or']]:_[_0x3575fb('0x23')](_0x49b607[_0x3575fb('0xc')],function(_0x7a3f45){const _0x5ea356=_0x3575fb,_0x52e338={};return _0x52e338[_0x7a3f45]={[Op['like']]:'%'+_0x386085['query'][_0x5ea356('0x2e')]+'%'},_0x52e338;})})),_0x49b607=_['merge']({},_0x49b607,_0x386085['options']),_0x18a221[_0x3575fb('0x12')](_0x49b607);})[_0x664ce3('0x25')](function(_0x557695){const _0x578924=_0x664ce3;if(_0x557695)return _0x82cfce=_0x557695['length'],typeof _0x386085[_0x578924('0x27')][_0x578924('0x33')]===_0x578924('0x1e')&&(_0x49b607[_0x578924('0x28')]=qs[_0x578924('0x28')](_0x386085[_0x578924('0x27')]['limit']),_0x49b607['offset']=qs['offset'](_0x386085[_0x578924('0x27')][_0x578924('0x16')])),_0x18a221[_0x578924('0x12')](_0x49b607);})['then'](function(_0x3ef309){if(_0x3ef309)return _0x3ef309?{'count':_0x82cfce,'rows':_0x3ef309}:null;})[_0x664ce3('0x25')](respondWithResult(_0x42d042,null))['catch'](handleError(_0x42d042,null));},exports['getSubjects']=function(_0x29ba9a,_0x480e11){const _0xdbe59b=_0x474171;let _0x28dff5={};const _0x5dd331={};let _0x1fbca2,_0x5a8a22;return db[_0xdbe59b('0xb')][_0xdbe59b('0x35')]({'where':{'id':_0x29ba9a['params']['id']}})['then'](handleEntityNotFound(_0x480e11,null))[_0xdbe59b('0x25')](function(_0xecdf32){const _0x4d263d=_0xdbe59b;if(_0xecdf32)return _0x1fbca2=_0xecdf32,_0x5dd331[_0x4d263d('0x19')]=_[_0x4d263d('0x7')](db[_0x4d263d('0x1c')][_0x4d263d('0x1a')]),_0x5dd331[_0x4d263d('0x27')]=_[_0x4d263d('0x7')](_0x29ba9a[_0x4d263d('0x27')]),_0x5dd331[_0x4d263d('0x1b')]=_[_0x4d263d('0xf')](_0x5dd331[_0x4d263d('0x19')],_0x5dd331[_0x4d263d('0x27')]),_0x28dff5['attributes']=_[_0x4d263d('0xf')](_0x5dd331[_0x4d263d('0x19')],qs[_0x4d263d('0x2f')](_0x29ba9a['query'][_0x4d263d('0x2f')])),_0x28dff5[_0x4d263d('0xc')]=_0x28dff5[_0x4d263d('0xc')][_0x4d263d('0x14')]?_0x28dff5[_0x4d263d('0xc')]:_0x5dd331[_0x4d263d('0x19')],_0x28dff5[_0x4d263d('0x34')]=qs[_0x4d263d('0x24')](_0x29ba9a[_0x4d263d('0x27')][_0x4d263d('0x24')]),_0x28dff5[_0x4d263d('0x21')]=qs[_0x4d263d('0x1b')](_[_0x4d263d('0x15')](_0x29ba9a[_0x4d263d('0x27')],_0x5dd331[_0x4d263d('0x1b')])),_0x29ba9a[_0x4d263d('0x27')]['filter']&&(_0x28dff5[_0x4d263d('0x21')]=_['merge'](_0x28dff5[_0x4d263d('0x21')],{[Op['or']]:_['map'](_0x28dff5[_0x4d263d('0xc')],function(_0x5c18f3){const _0x747760=_0x4d263d,_0x87a41={};return _0x87a41[_0x5c18f3]={[Op[_0x747760('0xd')]]:'%'+_0x29ba9a[_0x747760('0x27')][_0x747760('0x2e')]+'%'},_0x87a41;})})),_0x28dff5=_['merge']({},_0x28dff5,_0x29ba9a[_0x4d263d('0x2b')]),_0x1fbca2[_0x4d263d('0x13')](_0x28dff5);})[_0xdbe59b('0x25')](function(_0x476022){const _0x36c02a=_0xdbe59b;if(_0x476022)return _0x5a8a22=_0x476022[_0x36c02a('0x14')],typeof _0x29ba9a[_0x36c02a('0x27')][_0x36c02a('0x33')]===_0x36c02a('0x1e')&&(_0x28dff5['limit']=qs['limit'](_0x29ba9a[_0x36c02a('0x27')][_0x36c02a('0x28')]),_0x28dff5[_0x36c02a('0x16')]=qs[_0x36c02a('0x16')](_0x29ba9a[_0x36c02a('0x27')][_0x36c02a('0x16')])),_0x1fbca2[_0x36c02a('0x13')](_0x28dff5);})[_0xdbe59b('0x25')](function(_0x11f1ed){if(_0x11f1ed)return _0x11f1ed?{'count':_0x5a8a22,'rows':_0x11f1ed}:null;})['then'](respondWithResult(_0x480e11,null))[_0xdbe59b('0x38')](handleError(_0x480e11,null));},exports[_0x474171('0x10')]=function(_0x47248b,_0x2f3fa9){const _0xd4894d=_0x474171;let _0x5a6ddd={};const _0x5d67b1={};let _0x393241,_0x29bba7;return db['VtigerConfiguration'][_0xd4894d('0x35')]({'where':{'id':_0x47248b[_0xd4894d('0x29')]['id']}})[_0xd4894d('0x25')](handleEntityNotFound(_0x2f3fa9,null))['then'](function(_0x3b1356){const _0x317e81=_0xd4894d;if(_0x3b1356)return _0x393241=_0x3b1356,_0x5d67b1[_0x317e81('0x19')]=_[_0x317e81('0x7')](db['VtigerField'][_0x317e81('0x1a')]),_0x5d67b1[_0x317e81('0x27')]=_[_0x317e81('0x7')](_0x47248b['query']),_0x5d67b1[_0x317e81('0x1b')]=_[_0x317e81('0xf')](_0x5d67b1['model'],_0x5d67b1['query']),_0x5a6ddd[_0x317e81('0xc')]=_[_0x317e81('0xf')](_0x5d67b1[_0x317e81('0x19')],qs[_0x317e81('0x2f')](_0x47248b[_0x317e81('0x27')][_0x317e81('0x2f')])),_0x5a6ddd[_0x317e81('0xc')]=_0x5a6ddd[_0x317e81('0xc')]['length']?_0x5a6ddd[_0x317e81('0xc')]:_0x5d67b1[_0x317e81('0x19')],_0x5a6ddd[_0x317e81('0x34')]=qs[_0x317e81('0x24')](_0x47248b[_0x317e81('0x27')]['sort']),_0x5a6ddd[_0x317e81('0x21')]=qs['filters'](_[_0x317e81('0x15')](_0x47248b[_0x317e81('0x27')],_0x5d67b1[_0x317e81('0x1b')])),_0x47248b[_0x317e81('0x27')][_0x317e81('0x2e')]&&(_0x5a6ddd['where']=_['merge'](_0x5a6ddd['where'],{[Op['or']]:_['map'](_0x5a6ddd[_0x317e81('0xc')],function(_0x479702){const _0xb5757a=_0x317e81,_0xc9d789={};return _0xc9d789[_0x479702]={[Op[_0xb5757a('0xd')]]:'%'+_0x47248b[_0xb5757a('0x27')][_0xb5757a('0x2e')]+'%'},_0xc9d789;})})),_0x5a6ddd=_[_0x317e81('0x1d')]({},_0x5a6ddd,_0x47248b[_0x317e81('0x2b')]),_0x393241[_0x317e81('0x10')](_0x5a6ddd);})[_0xd4894d('0x25')](function(_0x3e28de){const _0x584b75=_0xd4894d;if(_0x3e28de)return _0x29bba7=_0x3e28de[_0x584b75('0x14')],typeof _0x47248b[_0x584b75('0x27')][_0x584b75('0x33')]===_0x584b75('0x1e')&&(_0x5a6ddd[_0x584b75('0x28')]=qs[_0x584b75('0x28')](_0x47248b[_0x584b75('0x27')][_0x584b75('0x28')]),_0x5a6ddd['offset']=qs[_0x584b75('0x16')](_0x47248b[_0x584b75('0x27')]['offset'])),_0x393241[_0x584b75('0x10')](_0x5a6ddd);})[_0xd4894d('0x25')](function(_0x7fbfd0){if(_0x7fbfd0)return _0x7fbfd0?{'count':_0x29bba7,'rows':_0x7fbfd0}:null;})[_0xd4894d('0x25')](respondWithResult(_0x2f3fa9,null))[_0xd4894d('0x38')](handleError(_0x2f3fa9,null));}; \ No newline at end of file +const a325_0x7aa0=['model','order','getFields','create','lodash','merge','update','show','../../config/logger','error','end','filters','stack','findAll','findOne','rawAttributes','status','nolimit','api','undefined','options','name','Content-Range','VtigerField','then','pick','length','destroy','json','body','../../mysqldb','like','catch','offset','fieldName','rows','params','getSubjects','count','sort','keys','set','VtigerConfiguration','VIRTUAL','limit','filter','getDescriptions','map','type','query','attributes','intersection','include','where','fields'];(function(_0x29350b,_0x7aa0f3){const _0x5efa48=function(_0x23d04c){while(--_0x23d04c){_0x29350b['push'](_0x29350b['shift']());}};_0x5efa48(++_0x7aa0f3);}(a325_0x7aa0,0x1e8));const a325_0x5efa=function(_0x29350b,_0x7aa0f3){_0x29350b=_0x29350b-0x0;let _0x5efa48=a325_0x7aa0[_0x29350b];return _0x5efa48;};const _0x5537c1=a325_0x5efa;'use strict';const _=require(_0x5537c1('0xb')),qs=require('../../components/parsers/qs'),logger=require(_0x5537c1('0xf'))(_0x5537c1('0x19')),db=require(_0x5537c1('0x25'))['db'],{Op}=require('sequelize');function respondWithResult(_0x23d04c,_0x120492){return _0x120492=_0x120492||0xc8,function(_0x5cf8d3){const _0x4774b4=a325_0x5efa;if(_0x5cf8d3)return _0x23d04c[_0x4774b4('0x17')](_0x120492)['json'](_0x5cf8d3);};}function respondWithFilteredResult(_0x26857a,_0xbe22bc){return function(_0x55beda){const _0x57d10d=a325_0x5efa;if(_0x55beda){const _0x535073=_0x55beda[_0x57d10d('0x2d')],_0x59bcee=_0xbe22bc[_0x57d10d('0x28')];let _0x2468b1=_0xbe22bc['offset']+_0xbe22bc[_0x57d10d('0x33')],_0xa10df0;return _0x2468b1>=_0x535073?(_0x2468b1=_0x535073,_0xa10df0=0xc8):_0xa10df0=0xce,_0x26857a[_0x57d10d('0x17')](_0xa10df0),_0x26857a[_0x57d10d('0x30')](_0x57d10d('0x1d'),_0x59bcee+'-'+_0x2468b1+'/'+_0x535073)[_0x57d10d('0x23')](_0x55beda);}return null;};}function saveUpdates(_0x3cd826){return function(_0x24befb){const _0x3a12c0=a325_0x5efa;if(_0x24befb)return _0x24befb[_0x3a12c0('0xd')](_0x3cd826)['then'](function(_0x2edd3b){return _0x2edd3b;});return null;};}function removeEntity(_0x96e492){return function(_0x3d50ac){const _0x4bb167=a325_0x5efa;if(_0x3d50ac)return _0x3d50ac[_0x4bb167('0x22')]()[_0x4bb167('0x1f')](function(){const _0x361715=_0x4bb167;_0x96e492[_0x361715('0x17')](0xcc)[_0x361715('0x11')]();});};}function handleEntityNotFound(_0x2da922){return function(_0x4c7d9a){return!_0x4c7d9a&&_0x2da922['sendStatus'](0x194),_0x4c7d9a;};}function handleError(_0x1338fe,_0x214155){return _0x214155=_0x214155||0x1f4,function(_0x2bf096){const _0x4b3d22=a325_0x5efa;logger[_0x4b3d22('0x10')](_0x2bf096[_0x4b3d22('0x13')]),_0x2bf096['name']&&delete _0x2bf096[_0x4b3d22('0x1c')],_0x1338fe[_0x4b3d22('0x17')](_0x214155)['send'](_0x2bf096);};}exports['index']=function(_0x1e119d,_0x14101a){const _0x3d4570=_0x5537c1;let _0x1db701={};const _0x485160={},_0x417aaf={'count':0x0,'rows':[]},_0x153f5e=_[_0x3d4570('0x36')](db[_0x3d4570('0x31')]['rawAttributes'],function(_0x1bd1d6){const _0x4c451e=_0x3d4570;return{'name':_0x1bd1d6[_0x4c451e('0x29')],'type':_0x1bd1d6[_0x4c451e('0x0')]['key']};});_0x485160[_0x3d4570('0x7')]=_[_0x3d4570('0x36')](_0x153f5e,_0x3d4570('0x1c')),_0x485160[_0x3d4570('0x1')]=_[_0x3d4570('0x2f')](_0x1e119d[_0x3d4570('0x1')]),_0x485160[_0x3d4570('0x12')]=_[_0x3d4570('0x3')](_0x485160[_0x3d4570('0x7')],_0x485160[_0x3d4570('0x1')]),_0x1db701['attributes']=_[_0x3d4570('0x3')](_0x485160[_0x3d4570('0x7')],qs[_0x3d4570('0x6')](_0x1e119d[_0x3d4570('0x1')][_0x3d4570('0x6')])),_0x1db701['attributes']=_0x1db701[_0x3d4570('0x2')][_0x3d4570('0x21')]?_0x1db701[_0x3d4570('0x2')]:_0x485160['model'];typeof _0x1e119d['query'][_0x3d4570('0x18')]==='undefined'&&(_0x1db701[_0x3d4570('0x33')]=qs[_0x3d4570('0x33')](_0x1e119d['query'][_0x3d4570('0x33')]),_0x1db701[_0x3d4570('0x28')]=qs[_0x3d4570('0x28')](_0x1e119d[_0x3d4570('0x1')][_0x3d4570('0x28')]));_0x1db701[_0x3d4570('0x8')]=qs['sort'](_0x1e119d[_0x3d4570('0x1')]['sort']),_0x1db701[_0x3d4570('0x5')]=qs[_0x3d4570('0x12')](_[_0x3d4570('0x20')](_0x1e119d[_0x3d4570('0x1')],_0x485160['filters']),_0x153f5e);_0x1e119d['query'][_0x3d4570('0x34')]&&(_0x1db701['where']=_[_0x3d4570('0xc')](_0x1db701[_0x3d4570('0x5')],{[Op['or']]:_[_0x3d4570('0x36')](_0x153f5e,function(_0x569a42){const _0x5e4e01=_0x3d4570;if(_0x569a42[_0x5e4e01('0x0')]!==_0x5e4e01('0x32')){const _0x2d63e6={};return _0x2d63e6[_0x569a42[_0x5e4e01('0x1c')]]={[Op[_0x5e4e01('0x26')]]:'%'+_0x1e119d[_0x5e4e01('0x1')]['filter']+'%'},_0x2d63e6;}})}));_0x1db701=_[_0x3d4570('0xc')]({},_0x1db701,_0x1e119d[_0x3d4570('0x1b')]);const _0x327cb6={'where':_0x1db701[_0x3d4570('0x5')]};return db[_0x3d4570('0x31')][_0x3d4570('0x2d')](_0x327cb6)['then'](function(_0x3e151b){const _0x476acf=_0x3d4570;return _0x417aaf['count']=_0x3e151b,_0x1e119d[_0x476acf('0x1')]['includeAll']&&(_0x1db701[_0x476acf('0x4')]=[{'all':!![]}]),db[_0x476acf('0x31')][_0x476acf('0x14')](_0x1db701);})['then'](function(_0x234e43){const _0x32adb3=_0x3d4570;return _0x417aaf[_0x32adb3('0x2a')]=_0x234e43,_0x417aaf;})[_0x3d4570('0x1f')](respondWithFilteredResult(_0x14101a,_0x1db701))[_0x3d4570('0x27')](handleError(_0x14101a,null));},exports[_0x5537c1('0xe')]=function(_0x56052b,_0x19a4c3){const _0x5a8679=_0x5537c1;let _0x37525f={'raw':![],'where':{'id':_0x56052b[_0x5a8679('0x2b')]['id']}};const _0x29dde5={};return _0x29dde5[_0x5a8679('0x7')]=_['keys'](db[_0x5a8679('0x31')][_0x5a8679('0x16')]),_0x29dde5['query']=_[_0x5a8679('0x2f')](_0x56052b[_0x5a8679('0x1')]),_0x29dde5[_0x5a8679('0x12')]=_[_0x5a8679('0x3')](_0x29dde5[_0x5a8679('0x7')],_0x29dde5[_0x5a8679('0x1')]),_0x37525f[_0x5a8679('0x2')]=_['intersection'](_0x29dde5[_0x5a8679('0x7')],qs[_0x5a8679('0x6')](_0x56052b[_0x5a8679('0x1')]['fields'])),_0x37525f['attributes']=_0x37525f[_0x5a8679('0x2')][_0x5a8679('0x21')]?_0x37525f[_0x5a8679('0x2')]:_0x29dde5[_0x5a8679('0x7')],_0x56052b[_0x5a8679('0x1')]['includeAll']&&(_0x37525f[_0x5a8679('0x4')]=[{'all':!![]}]),_0x37525f=_['merge']({},_0x37525f,_0x56052b[_0x5a8679('0x1b')]),db[_0x5a8679('0x31')][_0x5a8679('0x15')](_0x37525f)[_0x5a8679('0x1f')](handleEntityNotFound(_0x19a4c3,null))[_0x5a8679('0x1f')](respondWithResult(_0x19a4c3,null))[_0x5a8679('0x27')](handleError(_0x19a4c3,null));},exports[_0x5537c1('0xa')]=function(_0x4f122a,_0x13fb5b){const _0x3faf31=_0x5537c1;return db['VtigerConfiguration'][_0x3faf31('0xa')](_0x4f122a[_0x3faf31('0x24')],{})[_0x3faf31('0x1f')](respondWithResult(_0x13fb5b,0xc9))[_0x3faf31('0x27')](handleError(_0x13fb5b,null));},exports[_0x5537c1('0xd')]=function(_0x44f7ad,_0x4d166e){const _0x5f5215=_0x5537c1;return _0x44f7ad['body']['id']&&delete _0x44f7ad['body']['id'],db[_0x5f5215('0x31')][_0x5f5215('0x15')]({'where':{'id':_0x44f7ad[_0x5f5215('0x2b')]['id']}})[_0x5f5215('0x1f')](handleEntityNotFound(_0x4d166e,null))['then'](saveUpdates(_0x44f7ad[_0x5f5215('0x24')],null))['then'](respondWithResult(_0x4d166e,null))[_0x5f5215('0x27')](handleError(_0x4d166e,null));},exports[_0x5537c1('0x22')]=function(_0x3f9106,_0xfbaee3){const _0x2480ad=_0x5537c1;return db['VtigerConfiguration']['findOne']({'where':{'id':_0x3f9106[_0x2480ad('0x2b')]['id']}})[_0x2480ad('0x1f')](handleEntityNotFound(_0xfbaee3,null))['then'](removeEntity(_0xfbaee3,null))[_0x2480ad('0x27')](handleError(_0xfbaee3,null));},exports[_0x5537c1('0x9')]=function(_0x467194,_0x318cc4){const _0x20ae19=_0x5537c1;let _0xb2c984={};const _0x2df808={};let _0x9a3dad,_0x261d70;return db['VtigerConfiguration'][_0x20ae19('0x15')]({'where':{'id':_0x467194[_0x20ae19('0x2b')]['id']}})[_0x20ae19('0x1f')](handleEntityNotFound(_0x318cc4,null))[_0x20ae19('0x1f')](function(_0x10381b){const _0x5973a3=_0x20ae19;if(_0x10381b)return _0x9a3dad=_0x10381b,_0x2df808[_0x5973a3('0x7')]=_[_0x5973a3('0x2f')](db[_0x5973a3('0x1e')][_0x5973a3('0x16')]),_0x2df808['query']=_[_0x5973a3('0x2f')](_0x467194[_0x5973a3('0x1')]),_0x2df808[_0x5973a3('0x12')]=_[_0x5973a3('0x3')](_0x2df808[_0x5973a3('0x7')],_0x2df808[_0x5973a3('0x1')]),_0xb2c984['attributes']=_[_0x5973a3('0x3')](_0x2df808[_0x5973a3('0x7')],qs[_0x5973a3('0x6')](_0x467194['query'][_0x5973a3('0x6')])),_0xb2c984[_0x5973a3('0x2')]=_0xb2c984[_0x5973a3('0x2')][_0x5973a3('0x21')]?_0xb2c984[_0x5973a3('0x2')]:_0x2df808[_0x5973a3('0x7')],_0xb2c984[_0x5973a3('0x8')]=qs['sort'](_0x467194['query'][_0x5973a3('0x2e')]),_0xb2c984[_0x5973a3('0x5')]=qs['filters'](_['pick'](_0x467194[_0x5973a3('0x1')],_0x2df808[_0x5973a3('0x12')])),_0x467194['query'][_0x5973a3('0x34')]&&(_0xb2c984[_0x5973a3('0x5')]=_[_0x5973a3('0xc')](_0xb2c984[_0x5973a3('0x5')],{[Op['or']]:_['map'](_0xb2c984[_0x5973a3('0x2')],function(_0x522b88){const _0x438e9b=_0x5973a3,_0x2884cd={};return _0x2884cd[_0x522b88]={[Op[_0x438e9b('0x26')]]:'%'+_0x467194[_0x438e9b('0x1')][_0x438e9b('0x34')]+'%'},_0x2884cd;})})),_0xb2c984=_[_0x5973a3('0xc')]({},_0xb2c984,_0x467194[_0x5973a3('0x1b')]),_0x9a3dad['getFields'](_0xb2c984);})['then'](function(_0x57ac21){const _0x55a6d1=_0x20ae19;if(_0x57ac21)return _0x261d70=_0x57ac21[_0x55a6d1('0x21')],typeof _0x467194[_0x55a6d1('0x1')][_0x55a6d1('0x18')]===_0x55a6d1('0x1a')&&(_0xb2c984[_0x55a6d1('0x33')]=qs[_0x55a6d1('0x33')](_0x467194[_0x55a6d1('0x1')]['limit']),_0xb2c984['offset']=qs[_0x55a6d1('0x28')](_0x467194[_0x55a6d1('0x1')][_0x55a6d1('0x28')])),_0x9a3dad[_0x55a6d1('0x9')](_0xb2c984);})['then'](function(_0x28d728){if(_0x28d728)return _0x28d728?{'count':_0x261d70,'rows':_0x28d728}:null;})['then'](respondWithResult(_0x318cc4,null))['catch'](handleError(_0x318cc4,null));},exports[_0x5537c1('0x2c')]=function(_0x14f3b5,_0x4c5c2c){const _0x31cf3a=_0x5537c1;let _0xdbdf97={};const _0x4d5db3={};let _0x47594d,_0x2bc84d;return db[_0x31cf3a('0x31')][_0x31cf3a('0x15')]({'where':{'id':_0x14f3b5['params']['id']}})['then'](handleEntityNotFound(_0x4c5c2c,null))[_0x31cf3a('0x1f')](function(_0x1b8fb5){const _0x2425d2=_0x31cf3a;if(_0x1b8fb5)return _0x47594d=_0x1b8fb5,_0x4d5db3['model']=_[_0x2425d2('0x2f')](db[_0x2425d2('0x1e')]['rawAttributes']),_0x4d5db3[_0x2425d2('0x1')]=_[_0x2425d2('0x2f')](_0x14f3b5[_0x2425d2('0x1')]),_0x4d5db3[_0x2425d2('0x12')]=_['intersection'](_0x4d5db3[_0x2425d2('0x7')],_0x4d5db3[_0x2425d2('0x1')]),_0xdbdf97['attributes']=_['intersection'](_0x4d5db3['model'],qs[_0x2425d2('0x6')](_0x14f3b5[_0x2425d2('0x1')][_0x2425d2('0x6')])),_0xdbdf97[_0x2425d2('0x2')]=_0xdbdf97['attributes'][_0x2425d2('0x21')]?_0xdbdf97['attributes']:_0x4d5db3[_0x2425d2('0x7')],_0xdbdf97['order']=qs[_0x2425d2('0x2e')](_0x14f3b5['query'][_0x2425d2('0x2e')]),_0xdbdf97[_0x2425d2('0x5')]=qs[_0x2425d2('0x12')](_[_0x2425d2('0x20')](_0x14f3b5['query'],_0x4d5db3['filters'])),_0x14f3b5[_0x2425d2('0x1')][_0x2425d2('0x34')]&&(_0xdbdf97[_0x2425d2('0x5')]=_[_0x2425d2('0xc')](_0xdbdf97['where'],{[Op['or']]:_[_0x2425d2('0x36')](_0xdbdf97[_0x2425d2('0x2')],function(_0x21eccc){const _0x32b3ed=_0x2425d2,_0x3c8617={};return _0x3c8617[_0x21eccc]={[Op[_0x32b3ed('0x26')]]:'%'+_0x14f3b5[_0x32b3ed('0x1')][_0x32b3ed('0x34')]+'%'},_0x3c8617;})})),_0xdbdf97=_[_0x2425d2('0xc')]({},_0xdbdf97,_0x14f3b5[_0x2425d2('0x1b')]),_0x47594d[_0x2425d2('0x2c')](_0xdbdf97);})[_0x31cf3a('0x1f')](function(_0x3df00a){const _0x4e3dc4=_0x31cf3a;if(_0x3df00a)return _0x2bc84d=_0x3df00a[_0x4e3dc4('0x21')],typeof _0x14f3b5[_0x4e3dc4('0x1')][_0x4e3dc4('0x18')]===_0x4e3dc4('0x1a')&&(_0xdbdf97[_0x4e3dc4('0x33')]=qs['limit'](_0x14f3b5['query'][_0x4e3dc4('0x33')]),_0xdbdf97['offset']=qs[_0x4e3dc4('0x28')](_0x14f3b5[_0x4e3dc4('0x1')][_0x4e3dc4('0x28')])),_0x47594d['getSubjects'](_0xdbdf97);})['then'](function(_0x32c753){if(_0x32c753)return _0x32c753?{'count':_0x2bc84d,'rows':_0x32c753}:null;})[_0x31cf3a('0x1f')](respondWithResult(_0x4c5c2c,null))[_0x31cf3a('0x27')](handleError(_0x4c5c2c,null));},exports[_0x5537c1('0x35')]=function(_0x5dde10,_0x1c1e0b){const _0x51814=_0x5537c1;let _0x2f26eb={};const _0x2ab576={};let _0x58f66d,_0xe1d303;return db['VtigerConfiguration']['findOne']({'where':{'id':_0x5dde10[_0x51814('0x2b')]['id']}})['then'](handleEntityNotFound(_0x1c1e0b,null))[_0x51814('0x1f')](function(_0x402a57){const _0x3cfd1c=_0x51814;if(_0x402a57)return _0x58f66d=_0x402a57,_0x2ab576[_0x3cfd1c('0x7')]=_[_0x3cfd1c('0x2f')](db[_0x3cfd1c('0x1e')][_0x3cfd1c('0x16')]),_0x2ab576[_0x3cfd1c('0x1')]=_['keys'](_0x5dde10[_0x3cfd1c('0x1')]),_0x2ab576[_0x3cfd1c('0x12')]=_[_0x3cfd1c('0x3')](_0x2ab576[_0x3cfd1c('0x7')],_0x2ab576[_0x3cfd1c('0x1')]),_0x2f26eb[_0x3cfd1c('0x2')]=_['intersection'](_0x2ab576['model'],qs[_0x3cfd1c('0x6')](_0x5dde10['query'][_0x3cfd1c('0x6')])),_0x2f26eb[_0x3cfd1c('0x2')]=_0x2f26eb[_0x3cfd1c('0x2')][_0x3cfd1c('0x21')]?_0x2f26eb['attributes']:_0x2ab576['model'],_0x2f26eb[_0x3cfd1c('0x8')]=qs[_0x3cfd1c('0x2e')](_0x5dde10[_0x3cfd1c('0x1')][_0x3cfd1c('0x2e')]),_0x2f26eb[_0x3cfd1c('0x5')]=qs[_0x3cfd1c('0x12')](_[_0x3cfd1c('0x20')](_0x5dde10['query'],_0x2ab576[_0x3cfd1c('0x12')])),_0x5dde10[_0x3cfd1c('0x1')][_0x3cfd1c('0x34')]&&(_0x2f26eb[_0x3cfd1c('0x5')]=_[_0x3cfd1c('0xc')](_0x2f26eb[_0x3cfd1c('0x5')],{[Op['or']]:_['map'](_0x2f26eb[_0x3cfd1c('0x2')],function(_0x3ef0e1){const _0xacd5c2=_0x3cfd1c,_0x36879a={};return _0x36879a[_0x3ef0e1]={[Op[_0xacd5c2('0x26')]]:'%'+_0x5dde10[_0xacd5c2('0x1')][_0xacd5c2('0x34')]+'%'},_0x36879a;})})),_0x2f26eb=_['merge']({},_0x2f26eb,_0x5dde10['options']),_0x58f66d[_0x3cfd1c('0x35')](_0x2f26eb);})[_0x51814('0x1f')](function(_0x24bb0d){const _0x467a1e=_0x51814;if(_0x24bb0d)return _0xe1d303=_0x24bb0d['length'],typeof _0x5dde10[_0x467a1e('0x1')]['nolimit']===_0x467a1e('0x1a')&&(_0x2f26eb[_0x467a1e('0x33')]=qs[_0x467a1e('0x33')](_0x5dde10[_0x467a1e('0x1')][_0x467a1e('0x33')]),_0x2f26eb[_0x467a1e('0x28')]=qs[_0x467a1e('0x28')](_0x5dde10[_0x467a1e('0x1')][_0x467a1e('0x28')])),_0x58f66d['getDescriptions'](_0x2f26eb);})['then'](function(_0x5eb8a2){if(_0x5eb8a2)return _0x5eb8a2?{'count':_0xe1d303,'rows':_0x5eb8a2}:null;})['then'](respondWithResult(_0x1c1e0b,null))[_0x51814('0x27')](handleError(_0x1c1e0b,null));}; \ No newline at end of file diff --git a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js index 6fa5bb9..1467537 100644 --- a/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js +++ b/server/api/intVtigerConfiguration/intVtigerConfiguration.model.js @@ -1 +1 @@ -const a326_0x648a=['./intVtigerConfiguration.attributes','VtigerConfiguration','define','int_vtiger_configurations'];(function(_0x564f06,_0x648aff){const _0x1f6f01=function(_0x43259){while(--_0x43259){_0x564f06['push'](_0x564f06['shift']());}};_0x1f6f01(++_0x648aff);}(a326_0x648a,0x147));const a326_0x1f6f=function(_0x564f06,_0x648aff){_0x564f06=_0x564f06-0x0;let _0x1f6f01=a326_0x648a[_0x564f06];return _0x1f6f01;};const _0x11b430=a326_0x1f6f;'use strict';const attributes=require(_0x11b430('0x1'));module['exports']=function(_0x43259){const _0x4fbbb8=_0x11b430,_0x953360=_0x43259[_0x4fbbb8('0x3')](_0x4fbbb8('0x2'),attributes,{'tableName':_0x4fbbb8('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x953360;}; \ No newline at end of file +const a326_0x3630=['VtigerConfiguration','define','./intVtigerConfiguration.attributes','int_vtiger_configurations','exports'];(function(_0x7a3271,_0x36304e){const _0x5ca42f=function(_0x5cc139){while(--_0x5cc139){_0x7a3271['push'](_0x7a3271['shift']());}};_0x5ca42f(++_0x36304e);}(a326_0x3630,0x19e));const a326_0x5ca4=function(_0x7a3271,_0x36304e){_0x7a3271=_0x7a3271-0x0;let _0x5ca42f=a326_0x3630[_0x7a3271];return _0x5ca42f;};const _0x15f598=a326_0x5ca4;'use strict';const attributes=require(_0x15f598('0x3'));module[_0x15f598('0x0')]=function(_0x5cc139){const _0x1d62da=_0x15f598,_0x2a3096=_0x5cc139[_0x1d62da('0x2')](_0x1d62da('0x1'),attributes,{'tableName':_0x1d62da('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2a3096;}; \ No newline at end of file diff --git a/server/api/intVtigerField/index.js b/server/api/intVtigerField/index.js index 93dfbd2..c48f115 100644 --- a/server/api/intVtigerField/index.js +++ b/server/api/intVtigerField/index.js @@ -1 +1 @@ -const a327_0x1d10=['exports','post','../../components/auth/service','delete','show','index','update','create','/:id','Router','isAuthenticated','get'];(function(_0x16e493,_0x1d1051){const _0x84bc47=function(_0x4d2e9f){while(--_0x4d2e9f){_0x16e493['push'](_0x16e493['shift']());}};_0x84bc47(++_0x1d1051);}(a327_0x1d10,0x187));const a327_0x84bc=function(_0x16e493,_0x1d1051){_0x16e493=_0x16e493-0x0;let _0x84bc47=a327_0x1d10[_0x16e493];return _0x84bc47;};const _0x4d8826=a327_0x84bc;'use strict';const express=require('express'),router=express[_0x4d8826('0x2')](),auth=require(_0x4d8826('0x7')),controller=require('./intVtigerField.controller');router['get']('/',auth[_0x4d8826('0x3')](),controller[_0x4d8826('0xa')]),router[_0x4d8826('0x4')]('/:id',auth[_0x4d8826('0x3')](),controller[_0x4d8826('0x9')]),router[_0x4d8826('0x6')]('/',auth[_0x4d8826('0x3')](),controller[_0x4d8826('0x0')]),router['put'](_0x4d8826('0x1'),auth['isAuthenticated'](),controller[_0x4d8826('0xb')]),router[_0x4d8826('0x8')](_0x4d8826('0x1'),auth[_0x4d8826('0x3')](),controller['destroy']),module[_0x4d8826('0x5')]=router; \ No newline at end of file +const a327_0x2dc2=['destroy','get','create','./intVtigerField.controller','../../components/auth/service','post','Router','index','/:id','update','isAuthenticated','put'];(function(_0x511eaf,_0x2dc2bb){const _0x2adce2=function(_0x56843e){while(--_0x56843e){_0x511eaf['push'](_0x511eaf['shift']());}};_0x2adce2(++_0x2dc2bb);}(a327_0x2dc2,0x93));const a327_0x2adc=function(_0x511eaf,_0x2dc2bb){_0x511eaf=_0x511eaf-0x0;let _0x2adce2=a327_0x2dc2[_0x511eaf];return _0x2adce2;};const _0x493b3b=a327_0x2adc;'use strict';const express=require('express'),router=express[_0x493b3b('0x3')](),auth=require(_0x493b3b('0x1')),controller=require(_0x493b3b('0x0'));router[_0x493b3b('0xa')]('/',auth[_0x493b3b('0x7')](),controller[_0x493b3b('0x4')]),router['get'](_0x493b3b('0x5'),auth[_0x493b3b('0x7')](),controller['show']),router[_0x493b3b('0x2')]('/',auth['isAuthenticated'](),controller[_0x493b3b('0xb')]),router[_0x493b3b('0x8')](_0x493b3b('0x5'),auth[_0x493b3b('0x7')](),controller[_0x493b3b('0x6')]),router['delete']('/:id',auth[_0x493b3b('0x7')](),controller[_0x493b3b('0x9')]),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 cce62b6..5c6bc74 100644 --- a/server/api/intVtigerField/intVtigerField.attributes.js +++ b/server/api/intVtigerField/intVtigerField.attributes.js @@ -1 +1 @@ -const a328_0x190f=['STRING','string','BOOLEAN','exports','ENUM','sequelize','keyValue','customVariable','variable'];(function(_0x5df390,_0x190fed){const _0x404b37=function(_0x7ec840){while(--_0x7ec840){_0x5df390['push'](_0x5df390['shift']());}};_0x404b37(++_0x190fed);}(a328_0x190f,0x1cc));const a328_0x404b=function(_0x5df390,_0x190fed){_0x5df390=_0x5df390-0x0;let _0x404b37=a328_0x190f[_0x5df390];return _0x404b37;};const _0x587308=a328_0x404b;'use strict';const Sequelize=require(_0x587308('0x4'));module[_0x587308('0x2')]={'type':{'type':Sequelize[_0x587308('0x3')](_0x587308('0x0'),_0x587308('0x7'),_0x587308('0x6'),_0x587308('0x5')),'defaultValue':_0x587308('0x0')},'content':{'type':Sequelize[_0x587308('0x8')]},'key':{'type':Sequelize[_0x587308('0x8')]},'keyType':{'type':Sequelize['ENUM'](_0x587308('0x0'),'variable',_0x587308('0x6'))},'keyContent':{'type':Sequelize[_0x587308('0x8')]},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x587308('0x8')]},'customField':{'type':Sequelize[_0x587308('0x1')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x587308('0x8')]}}; \ No newline at end of file +const a328_0x16d4=['sequelize','string','STRING','variable','exports','customVariable'];(function(_0x46c53b,_0x16d48b){const _0x186bf3=function(_0x37024c){while(--_0x37024c){_0x46c53b['push'](_0x46c53b['shift']());}};_0x186bf3(++_0x16d48b);}(a328_0x16d4,0xf6));const a328_0x186b=function(_0x46c53b,_0x16d48b){_0x46c53b=_0x46c53b-0x0;let _0x186bf3=a328_0x16d4[_0x46c53b];return _0x186bf3;};const _0x349e55=a328_0x186b;'use strict';const Sequelize=require(_0x349e55('0x0'));module[_0x349e55('0x4')]={'type':{'type':Sequelize['ENUM']('string',_0x349e55('0x3'),_0x349e55('0x5'),'keyValue'),'defaultValue':'string'},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x349e55('0x2')]},'keyType':{'type':Sequelize['ENUM'](_0x349e55('0x1'),_0x349e55('0x3'),_0x349e55('0x5'))},'keyContent':{'type':Sequelize[_0x349e55('0x2')]},'idField':{'type':Sequelize[_0x349e55('0x2')]},'nameField':{'type':Sequelize[_0x349e55('0x2')]},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x349e55('0x2')]}}; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.controller.js b/server/api/intVtigerField/intVtigerField.controller.js index e33b104..29f2504 100644 --- a/server/api/intVtigerField/intVtigerField.controller.js +++ b/server/api/intVtigerField/intVtigerField.controller.js @@ -1 +1 @@ -const a329_0x5e44=['map','findAll','include','query','attributes','stack','fieldName','then','body','rows','set','name','count','VIRTUAL','like','sort','send','options','Content-Range','show','fields','end','index','status','pick','sendStatus','update','where','destroy','filters','length','../../mysqldb','type','catch','undefined','order','params','includeAll','limit','findOne','key','json','filter','VtigerField','model','api','offset','intersection','error','merge','sequelize'];(function(_0x4ea005,_0x5e4430){const _0x1d7697=function(_0x47c349){while(--_0x47c349){_0x4ea005['push'](_0x4ea005['shift']());}};_0x1d7697(++_0x5e4430);}(a329_0x5e44,0xf2));const a329_0x1d76=function(_0x4ea005,_0x5e4430){_0x4ea005=_0x4ea005-0x0;let _0x1d7697=a329_0x5e44[_0x4ea005];return _0x1d7697;};const _0x202e2a=a329_0x1d76;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x202e2a('0x7')),db=require(_0x202e2a('0x2c'))['db'],{Op}=require(_0x202e2a('0xc'));function respondWithResult(_0x47c349,_0x3c28ce){return _0x3c28ce=_0x3c28ce||0xc8,function(_0x2690b8){const _0x5a6c58=a329_0x1d76;if(_0x2690b8)return _0x47c349[_0x5a6c58('0x24')](_0x3c28ce)['json'](_0x2690b8);};}function respondWithFilteredResult(_0x26303d,_0x49f92d){return function(_0x298e19){const _0x2757bc=a329_0x1d76;if(_0x298e19){const _0x5a4e1f=_0x298e19['count'],_0x26b409=_0x49f92d['offset'];let _0x29818a=_0x49f92d[_0x2757bc('0x8')]+_0x49f92d[_0x2757bc('0x0')],_0xf3c344;return _0x29818a>=_0x5a4e1f?(_0x29818a=_0x5a4e1f,_0xf3c344=0xc8):_0xf3c344=0xce,_0x26303d['status'](_0xf3c344),_0x26303d[_0x2757bc('0x17')](_0x2757bc('0x1f'),_0x26b409+'-'+_0x29818a+'/'+_0x5a4e1f)[_0x2757bc('0x3')](_0x298e19);}return null;};}function saveUpdates(_0x2b5791){return function(_0x5d9409){const _0x335215=a329_0x1d76;if(_0x5d9409)return _0x5d9409[_0x335215('0x27')](_0x2b5791)[_0x335215('0x14')](function(_0x1d5c34){return _0x1d5c34;});return null;};}function removeEntity(_0x31d81b){return function(_0x2a34a3){const _0xd6fe3b=a329_0x1d76;if(_0x2a34a3)return _0x2a34a3[_0xd6fe3b('0x29')]()[_0xd6fe3b('0x14')](function(){const _0x36d52b=_0xd6fe3b;_0x31d81b['status'](0xcc)[_0x36d52b('0x22')]();});};}function handleEntityNotFound(_0x2198c2){return function(_0x579ea7){const _0x4ff907=a329_0x1d76;return!_0x579ea7&&_0x2198c2[_0x4ff907('0x26')](0x194),_0x579ea7;};}function handleError(_0x1b6dd6,_0x1b612d){return _0x1b612d=_0x1b612d||0x1f4,function(_0x354622){const _0x50a7c0=a329_0x1d76;logger[_0x50a7c0('0xa')](_0x354622[_0x50a7c0('0x12')]),_0x354622[_0x50a7c0('0x18')]&&delete _0x354622['name'],_0x1b6dd6['status'](_0x1b612d)[_0x50a7c0('0x1d')](_0x354622);};}exports[_0x202e2a('0x23')]=function(_0x412d5a,_0x2047e7){const _0x4c81c8=_0x202e2a;let _0x2b2cc4={};const _0x3da7c3={},_0x322b17={'count':0x0,'rows':[]},_0x57c02d=_['map'](db['VtigerField']['rawAttributes'],function(_0x2b8e8b){const _0x543c85=a329_0x1d76;return{'name':_0x2b8e8b[_0x543c85('0x13')],'type':_0x2b8e8b[_0x543c85('0x2d')][_0x543c85('0x2')]};});_0x3da7c3[_0x4c81c8('0x6')]=_[_0x4c81c8('0xd')](_0x57c02d,'name'),_0x3da7c3[_0x4c81c8('0x10')]=_['keys'](_0x412d5a[_0x4c81c8('0x10')]),_0x3da7c3[_0x4c81c8('0x2a')]=_[_0x4c81c8('0x9')](_0x3da7c3[_0x4c81c8('0x6')],_0x3da7c3[_0x4c81c8('0x10')]),_0x2b2cc4[_0x4c81c8('0x11')]=_[_0x4c81c8('0x9')](_0x3da7c3['model'],qs[_0x4c81c8('0x21')](_0x412d5a[_0x4c81c8('0x10')][_0x4c81c8('0x21')])),_0x2b2cc4['attributes']=_0x2b2cc4[_0x4c81c8('0x11')][_0x4c81c8('0x2b')]?_0x2b2cc4[_0x4c81c8('0x11')]:_0x3da7c3[_0x4c81c8('0x6')];typeof _0x412d5a[_0x4c81c8('0x10')]['nolimit']===_0x4c81c8('0x2f')&&(_0x2b2cc4['limit']=qs[_0x4c81c8('0x0')](_0x412d5a[_0x4c81c8('0x10')][_0x4c81c8('0x0')]),_0x2b2cc4['offset']=qs[_0x4c81c8('0x8')](_0x412d5a[_0x4c81c8('0x10')][_0x4c81c8('0x8')]));_0x2b2cc4[_0x4c81c8('0x30')]=qs[_0x4c81c8('0x1c')](_0x412d5a[_0x4c81c8('0x10')][_0x4c81c8('0x1c')]),_0x2b2cc4[_0x4c81c8('0x28')]=qs['filters'](_[_0x4c81c8('0x25')](_0x412d5a['query'],_0x3da7c3[_0x4c81c8('0x2a')]),_0x57c02d);_0x412d5a[_0x4c81c8('0x10')]['filter']&&(_0x2b2cc4['where']=_[_0x4c81c8('0xb')](_0x2b2cc4[_0x4c81c8('0x28')],{[Op['or']]:_[_0x4c81c8('0xd')](_0x57c02d,function(_0x166cc9){const _0x2b8077=_0x4c81c8;if(_0x166cc9[_0x2b8077('0x2d')]!==_0x2b8077('0x1a')){const _0xd3d6b2={};return _0xd3d6b2[_0x166cc9[_0x2b8077('0x18')]]={[Op[_0x2b8077('0x1b')]]:'%'+_0x412d5a[_0x2b8077('0x10')][_0x2b8077('0x4')]+'%'},_0xd3d6b2;}})}));_0x2b2cc4=_[_0x4c81c8('0xb')]({},_0x2b2cc4,_0x412d5a[_0x4c81c8('0x1e')]);const _0x5158d4={'where':_0x2b2cc4[_0x4c81c8('0x28')]};return db['VtigerField'][_0x4c81c8('0x19')](_0x5158d4)[_0x4c81c8('0x14')](function(_0x36ba9e){const _0x30caf9=_0x4c81c8;return _0x322b17['count']=_0x36ba9e,_0x412d5a[_0x30caf9('0x10')][_0x30caf9('0x32')]&&(_0x2b2cc4[_0x30caf9('0xf')]=[{'all':!![]}]),db[_0x30caf9('0x5')][_0x30caf9('0xe')](_0x2b2cc4);})[_0x4c81c8('0x14')](function(_0x2accfb){const _0x21bdc6=_0x4c81c8;return _0x322b17[_0x21bdc6('0x16')]=_0x2accfb,_0x322b17;})[_0x4c81c8('0x14')](respondWithFilteredResult(_0x2047e7,_0x2b2cc4))[_0x4c81c8('0x2e')](handleError(_0x2047e7,null));},exports[_0x202e2a('0x20')]=function(_0x590a8c,_0x573cd6){const _0x1ff7f9=_0x202e2a;let _0xb5333e={'raw':!![],'where':{'id':_0x590a8c[_0x1ff7f9('0x31')]['id']}};const _0xab5093={};return _0xab5093[_0x1ff7f9('0x6')]=_['keys'](db[_0x1ff7f9('0x5')]['rawAttributes']),_0xab5093[_0x1ff7f9('0x10')]=_['keys'](_0x590a8c[_0x1ff7f9('0x10')]),_0xab5093['filters']=_[_0x1ff7f9('0x9')](_0xab5093[_0x1ff7f9('0x6')],_0xab5093[_0x1ff7f9('0x10')]),_0xb5333e[_0x1ff7f9('0x11')]=_[_0x1ff7f9('0x9')](_0xab5093[_0x1ff7f9('0x6')],qs[_0x1ff7f9('0x21')](_0x590a8c[_0x1ff7f9('0x10')][_0x1ff7f9('0x21')])),_0xb5333e['attributes']=_0xb5333e[_0x1ff7f9('0x11')][_0x1ff7f9('0x2b')]?_0xb5333e['attributes']:_0xab5093[_0x1ff7f9('0x6')],_0x590a8c[_0x1ff7f9('0x10')][_0x1ff7f9('0x32')]&&(_0xb5333e[_0x1ff7f9('0xf')]=[{'all':!![]}]),_0xb5333e=_['merge']({},_0xb5333e,_0x590a8c['options']),db[_0x1ff7f9('0x5')][_0x1ff7f9('0x1')](_0xb5333e)[_0x1ff7f9('0x14')](handleEntityNotFound(_0x573cd6,null))[_0x1ff7f9('0x14')](respondWithResult(_0x573cd6,null))['catch'](handleError(_0x573cd6,null));},exports['create']=function(_0x1175f7,_0x52685b){const _0x55c6f8=_0x202e2a;return db[_0x55c6f8('0x5')]['create'](_0x1175f7['body'],{})[_0x55c6f8('0x14')](respondWithResult(_0x52685b,0xc9))[_0x55c6f8('0x2e')](handleError(_0x52685b,null));},exports[_0x202e2a('0x27')]=function(_0x49f72c,_0x15a205){const _0x25f437=_0x202e2a;return _0x49f72c[_0x25f437('0x15')]['id']&&delete _0x49f72c['body']['id'],db[_0x25f437('0x5')][_0x25f437('0x1')]({'where':{'id':_0x49f72c['params']['id']}})[_0x25f437('0x14')](handleEntityNotFound(_0x15a205,null))[_0x25f437('0x14')](saveUpdates(_0x49f72c[_0x25f437('0x15')],null))[_0x25f437('0x14')](respondWithResult(_0x15a205,null))['catch'](handleError(_0x15a205,null));},exports['destroy']=function(_0x27dc2c,_0x1b5a0d){const _0xeca036=_0x202e2a;return db[_0xeca036('0x5')][_0xeca036('0x1')]({'where':{'id':_0x27dc2c[_0xeca036('0x31')]['id']}})[_0xeca036('0x14')](handleEntityNotFound(_0x1b5a0d,null))[_0xeca036('0x14')](removeEntity(_0x1b5a0d,null))[_0xeca036('0x2e')](handleError(_0x1b5a0d,null));}; \ No newline at end of file +const a329_0x5eb3=['intersection','lodash','api','limit','merge','../../mysqldb','like','findAll','filters','error','sort','options','status','order','json','pick','type','sequelize','where','map','params','show','fields','VIRTUAL','findOne','count','key','index','nolimit','catch','destroy','stack','name','rawAttributes','attributes','query','filter','then','body','fieldName','../../components/parsers/qs','create','update','includeAll','include','keys','end','VtigerField','model','offset'];(function(_0xbd8348,_0x5eb3a8){const _0x203d89=function(_0x48f550){while(--_0x48f550){_0xbd8348['push'](_0xbd8348['shift']());}};_0x203d89(++_0x5eb3a8);}(a329_0x5eb3,0x11d));const a329_0x203d=function(_0xbd8348,_0x5eb3a8){_0xbd8348=_0xbd8348-0x0;let _0x203d89=a329_0x5eb3[_0xbd8348];return _0x203d89;};const _0xc12052=a329_0x203d;'use strict';const _=require(_0xc12052('0x10')),qs=require(_0xc12052('0x5')),logger=require('../../config/logger')(_0xc12052('0x11')),db=require(_0xc12052('0x14'))['db'],{Op}=require(_0xc12052('0x20'));function respondWithResult(_0x48f550,_0xc8cbfa){return _0xc8cbfa=_0xc8cbfa||0xc8,function(_0x325b28){const _0x2a3a49=a329_0x203d;if(_0x325b28)return _0x48f550['status'](_0xc8cbfa)[_0x2a3a49('0x1d')](_0x325b28);};}function respondWithFilteredResult(_0x3e4e70,_0x1e41e5){return function(_0x5d1804){const _0x4e6c4c=a329_0x203d;if(_0x5d1804){const _0x48ad80=_0x5d1804[_0x4e6c4c('0x28')],_0x54225f=_0x1e41e5[_0x4e6c4c('0xe')];let _0x3b7837=_0x1e41e5[_0x4e6c4c('0xe')]+_0x1e41e5['limit'],_0x3547d6;return _0x3b7837>=_0x48ad80?(_0x3b7837=_0x48ad80,_0x3547d6=0xc8):_0x3547d6=0xce,_0x3e4e70[_0x4e6c4c('0x1b')](_0x3547d6),_0x3e4e70['set']('Content-Range',_0x54225f+'-'+_0x3b7837+'/'+_0x48ad80)['json'](_0x5d1804);}return null;};}function saveUpdates(_0x52e2f3){return function(_0x37d85a){const _0x3ab595=a329_0x203d;if(_0x37d85a)return _0x37d85a[_0x3ab595('0x7')](_0x52e2f3)[_0x3ab595('0x2')](function(_0x495380){return _0x495380;});return null;};}function removeEntity(_0x5b8691){return function(_0xefa3e6){if(_0xefa3e6)return _0xefa3e6['destroy']()['then'](function(){const _0x46032e=a329_0x203d;_0x5b8691[_0x46032e('0x1b')](0xcc)[_0x46032e('0xb')]();});};}function handleEntityNotFound(_0x2e428f){return function(_0x4b662a){return!_0x4b662a&&_0x2e428f['sendStatus'](0x194),_0x4b662a;};}function handleError(_0x51abfc,_0x39e477){return _0x39e477=_0x39e477||0x1f4,function(_0x5bbd4c){const _0x4ce80e=a329_0x203d;logger[_0x4ce80e('0x18')](_0x5bbd4c[_0x4ce80e('0x2e')]),_0x5bbd4c[_0x4ce80e('0x2f')]&&delete _0x5bbd4c['name'],_0x51abfc[_0x4ce80e('0x1b')](_0x39e477)['send'](_0x5bbd4c);};}exports[_0xc12052('0x2a')]=function(_0xe6d60a,_0x4cf3f2){const _0xd55d97=_0xc12052;let _0x651e50={};const _0x4484a9={},_0x577460={'count':0x0,'rows':[]},_0x16ff74=_[_0xd55d97('0x22')](db[_0xd55d97('0xc')][_0xd55d97('0x30')],function(_0x491712){const _0x175166=_0xd55d97;return{'name':_0x491712[_0x175166('0x4')],'type':_0x491712[_0x175166('0x1f')][_0x175166('0x29')]};});_0x4484a9[_0xd55d97('0xd')]=_[_0xd55d97('0x22')](_0x16ff74,_0xd55d97('0x2f')),_0x4484a9[_0xd55d97('0x0')]=_[_0xd55d97('0xa')](_0xe6d60a['query']),_0x4484a9[_0xd55d97('0x17')]=_[_0xd55d97('0xf')](_0x4484a9['model'],_0x4484a9[_0xd55d97('0x0')]),_0x651e50[_0xd55d97('0x31')]=_[_0xd55d97('0xf')](_0x4484a9[_0xd55d97('0xd')],qs['fields'](_0xe6d60a[_0xd55d97('0x0')][_0xd55d97('0x25')])),_0x651e50[_0xd55d97('0x31')]=_0x651e50['attributes']['length']?_0x651e50[_0xd55d97('0x31')]:_0x4484a9[_0xd55d97('0xd')];typeof _0xe6d60a[_0xd55d97('0x0')][_0xd55d97('0x2b')]==='undefined'&&(_0x651e50[_0xd55d97('0x12')]=qs[_0xd55d97('0x12')](_0xe6d60a['query'][_0xd55d97('0x12')]),_0x651e50[_0xd55d97('0xe')]=qs['offset'](_0xe6d60a[_0xd55d97('0x0')]['offset']));_0x651e50[_0xd55d97('0x1c')]=qs[_0xd55d97('0x19')](_0xe6d60a['query'][_0xd55d97('0x19')]),_0x651e50[_0xd55d97('0x21')]=qs[_0xd55d97('0x17')](_[_0xd55d97('0x1e')](_0xe6d60a['query'],_0x4484a9['filters']),_0x16ff74);_0xe6d60a[_0xd55d97('0x0')][_0xd55d97('0x1')]&&(_0x651e50[_0xd55d97('0x21')]=_['merge'](_0x651e50['where'],{[Op['or']]:_[_0xd55d97('0x22')](_0x16ff74,function(_0xe0cda1){const _0x491358=_0xd55d97;if(_0xe0cda1['type']!==_0x491358('0x26')){const _0x3b5d74={};return _0x3b5d74[_0xe0cda1[_0x491358('0x2f')]]={[Op[_0x491358('0x15')]]:'%'+_0xe6d60a[_0x491358('0x0')]['filter']+'%'},_0x3b5d74;}})}));_0x651e50=_[_0xd55d97('0x13')]({},_0x651e50,_0xe6d60a['options']);const _0x53dbba={'where':_0x651e50[_0xd55d97('0x21')]};return db['VtigerField'][_0xd55d97('0x28')](_0x53dbba)[_0xd55d97('0x2')](function(_0x39731a){const _0x3891a5=_0xd55d97;return _0x577460[_0x3891a5('0x28')]=_0x39731a,_0xe6d60a['query'][_0x3891a5('0x8')]&&(_0x651e50[_0x3891a5('0x9')]=[{'all':!![]}]),db[_0x3891a5('0xc')][_0x3891a5('0x16')](_0x651e50);})['then'](function(_0x1017b5){return _0x577460['rows']=_0x1017b5,_0x577460;})['then'](respondWithFilteredResult(_0x4cf3f2,_0x651e50))[_0xd55d97('0x2c')](handleError(_0x4cf3f2,null));},exports[_0xc12052('0x24')]=function(_0x6fc7c0,_0x5595d1){const _0x1f31a4=_0xc12052;let _0xccbc4d={'raw':!![],'where':{'id':_0x6fc7c0[_0x1f31a4('0x23')]['id']}};const _0x4e2e8c={};return _0x4e2e8c[_0x1f31a4('0xd')]=_['keys'](db[_0x1f31a4('0xc')][_0x1f31a4('0x30')]),_0x4e2e8c[_0x1f31a4('0x0')]=_['keys'](_0x6fc7c0[_0x1f31a4('0x0')]),_0x4e2e8c['filters']=_[_0x1f31a4('0xf')](_0x4e2e8c[_0x1f31a4('0xd')],_0x4e2e8c['query']),_0xccbc4d[_0x1f31a4('0x31')]=_[_0x1f31a4('0xf')](_0x4e2e8c[_0x1f31a4('0xd')],qs[_0x1f31a4('0x25')](_0x6fc7c0[_0x1f31a4('0x0')][_0x1f31a4('0x25')])),_0xccbc4d[_0x1f31a4('0x31')]=_0xccbc4d['attributes']['length']?_0xccbc4d[_0x1f31a4('0x31')]:_0x4e2e8c[_0x1f31a4('0xd')],_0x6fc7c0[_0x1f31a4('0x0')][_0x1f31a4('0x8')]&&(_0xccbc4d[_0x1f31a4('0x9')]=[{'all':!![]}]),_0xccbc4d=_['merge']({},_0xccbc4d,_0x6fc7c0[_0x1f31a4('0x1a')]),db['VtigerField'][_0x1f31a4('0x27')](_0xccbc4d)[_0x1f31a4('0x2')](handleEntityNotFound(_0x5595d1,null))['then'](respondWithResult(_0x5595d1,null))['catch'](handleError(_0x5595d1,null));},exports[_0xc12052('0x6')]=function(_0x722d6e,_0x4ddd7e){const _0xf82537=_0xc12052;return db['VtigerField']['create'](_0x722d6e['body'],{})[_0xf82537('0x2')](respondWithResult(_0x4ddd7e,0xc9))['catch'](handleError(_0x4ddd7e,null));},exports[_0xc12052('0x7')]=function(_0x38b2cd,_0x5b3f55){const _0x29c2d9=_0xc12052;return _0x38b2cd[_0x29c2d9('0x3')]['id']&&delete _0x38b2cd[_0x29c2d9('0x3')]['id'],db[_0x29c2d9('0xc')][_0x29c2d9('0x27')]({'where':{'id':_0x38b2cd[_0x29c2d9('0x23')]['id']}})['then'](handleEntityNotFound(_0x5b3f55,null))[_0x29c2d9('0x2')](saveUpdates(_0x38b2cd[_0x29c2d9('0x3')],null))[_0x29c2d9('0x2')](respondWithResult(_0x5b3f55,null))['catch'](handleError(_0x5b3f55,null));},exports[_0xc12052('0x2d')]=function(_0x29d40e,_0x146e89){const _0x3d74f1=_0xc12052;return db[_0x3d74f1('0xc')][_0x3d74f1('0x27')]({'where':{'id':_0x29d40e['params']['id']}})[_0x3d74f1('0x2')](handleEntityNotFound(_0x146e89,null))[_0x3d74f1('0x2')](removeEntity(_0x146e89,null))[_0x3d74f1('0x2c')](handleError(_0x146e89,null));}; \ No newline at end of file diff --git a/server/api/intVtigerField/intVtigerField.model.js b/server/api/intVtigerField/intVtigerField.model.js index c3712a5..c5621fe 100644 --- a/server/api/intVtigerField/intVtigerField.model.js +++ b/server/api/intVtigerField/intVtigerField.model.js @@ -1 +1 @@ -const a330_0x20d1=['./intVtigerField.attributes','define','VtigerField','FieldId'];(function(_0x3c9bde,_0x20d14){const _0x4739a5=function(_0x9d4d66){while(--_0x9d4d66){_0x3c9bde['push'](_0x3c9bde['shift']());}};_0x4739a5(++_0x20d14);}(a330_0x20d1,0x98));const a330_0x4739=function(_0x3c9bde,_0x20d14){_0x3c9bde=_0x3c9bde-0x0;let _0x4739a5=a330_0x20d1[_0x3c9bde];return _0x4739a5;};const _0x30e8d2=a330_0x4739;'use strict';const attributes=require(_0x30e8d2('0x0'));module['exports']=function(_0x9d4d66){const _0x494278=_0x30e8d2,_0x3d2b73=_0x9d4d66[_0x494278('0x1')](_0x494278('0x2'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':'vtiger_unique_index','fields':['idField',_0x494278('0x3')],'unique':!![]}],'timestamps':!![]});return _0x3d2b73;}; \ No newline at end of file +const a330_0x26d7=['define','./intVtigerField.attributes','vtiger_unique_index','exports','idField','VtigerField','FieldId'];(function(_0x55b262,_0x26d750){const _0x12e15e=function(_0x53663d){while(--_0x53663d){_0x55b262['push'](_0x55b262['shift']());}};_0x12e15e(++_0x26d750);}(a330_0x26d7,0xa0));const a330_0x12e1=function(_0x55b262,_0x26d750){_0x55b262=_0x55b262-0x0;let _0x12e15e=a330_0x26d7[_0x55b262];return _0x12e15e;};const _0x3e8c38=a330_0x12e1;'use strict';const attributes=require(_0x3e8c38('0x2'));module[_0x3e8c38('0x4')]=function(_0x53663d){const _0x19e32a=_0x3e8c38,_0x9230cb=_0x53663d[_0x19e32a('0x1')](_0x19e32a('0x6'),attributes,{'tableName':'int_vtiger_fields','paranoid':![],'indexes':[{'name':_0x19e32a('0x3'),'fields':[_0x19e32a('0x5'),_0x19e32a('0x0')],'unique':!![]}],'timestamps':!![]});return _0x9230cb;}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/index.js b/server/api/intZendeskAccount/index.js index 1aa6527..48a5c7b 100644 --- a/server/api/intZendeskAccount/index.js +++ b/server/api/intZendeskAccount/index.js @@ -1 +1 @@ -const a331_0x59cd=['Router','getFields','/:id','delete','exports','index','express','getConfigurations','/:id/fields','isAuthenticated','post','destroy','get','/:id/configurations','update','create'];(function(_0x1c2c4b,_0x59cd5a){const _0x11709a=function(_0x457885){while(--_0x457885){_0x1c2c4b['push'](_0x1c2c4b['shift']());}};_0x11709a(++_0x59cd5a);}(a331_0x59cd,0xd7));const a331_0x1170=function(_0x1c2c4b,_0x59cd5a){_0x1c2c4b=_0x1c2c4b-0x0;let _0x11709a=a331_0x59cd[_0x1c2c4b];return _0x11709a;};const _0x22fdda=a331_0x1170;'use strict';const express=require(_0x22fdda('0xf')),router=express[_0x22fdda('0x9')](),auth=require('../../components/auth/service'),controller=require('./intZendeskAccount.controller');router[_0x22fdda('0x5')]('/',auth['isAuthenticated'](),controller[_0x22fdda('0xe')]),router[_0x22fdda('0x5')]('/:id',auth[_0x22fdda('0x2')](),controller['show']),router[_0x22fdda('0x5')](_0x22fdda('0x6'),auth[_0x22fdda('0x2')](),controller[_0x22fdda('0x0')]),router['get'](_0x22fdda('0x1'),auth[_0x22fdda('0x2')](),controller[_0x22fdda('0xa')]),router[_0x22fdda('0x3')]('/',auth[_0x22fdda('0x2')](),controller[_0x22fdda('0x8')]),router[_0x22fdda('0x3')](_0x22fdda('0x6'),auth[_0x22fdda('0x2')](),controller['addConfiguration']),router['put'](_0x22fdda('0xb'),auth[_0x22fdda('0x2')](),controller[_0x22fdda('0x7')]),router[_0x22fdda('0xc')]('/:id',auth[_0x22fdda('0x2')](),controller[_0x22fdda('0x4')]),module[_0x22fdda('0xd')]=router; \ No newline at end of file +const a331_0x54e5=['show','isAuthenticated','/:id/configurations','../../components/auth/service','index','addConfiguration','/:id/fields','/:id','getFields','exports','delete','get','update','put','create'];(function(_0x3a49af,_0x54e505){const _0x57e53c=function(_0x5a9d21){while(--_0x5a9d21){_0x3a49af['push'](_0x3a49af['shift']());}};_0x57e53c(++_0x54e505);}(a331_0x54e5,0xf6));const a331_0x57e5=function(_0x3a49af,_0x54e505){_0x3a49af=_0x3a49af-0x0;let _0x57e53c=a331_0x54e5[_0x3a49af];return _0x57e53c;};const _0x20a023=a331_0x57e5;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x20a023('0xc')),controller=require('./intZendeskAccount.controller');router[_0x20a023('0x5')]('/',auth['isAuthenticated'](),controller[_0x20a023('0xd')]),router['get'](_0x20a023('0x1'),auth['isAuthenticated'](),controller[_0x20a023('0x9')]),router['get'](_0x20a023('0xb'),auth[_0x20a023('0xa')](),controller['getConfigurations']),router[_0x20a023('0x5')](_0x20a023('0x0'),auth['isAuthenticated'](),controller[_0x20a023('0x2')]),router['post']('/',auth[_0x20a023('0xa')](),controller[_0x20a023('0x8')]),router['post'](_0x20a023('0xb'),auth[_0x20a023('0xa')](),controller[_0x20a023('0xe')]),router[_0x20a023('0x7')](_0x20a023('0x1'),auth['isAuthenticated'](),controller[_0x20a023('0x6')]),router[_0x20a023('0x4')](_0x20a023('0x1'),auth[_0x20a023('0xa')](),controller['destroy']),module[_0x20a023('0x3')]=router; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.attributes.js b/server/api/intZendeskAccount/intZendeskAccount.attributes.js index 8c174d2..0e0458b 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.attributes.js +++ b/server/api/intZendeskAccount/intZendeskAccount.attributes.js @@ -1 +1 @@ -const a332_0x42ed=['sequelize','ENUM','username','token','newTab','STRING','remoteUri','password','integrationTab'];(function(_0x50b596,_0x42ed2c){const _0xbebd69=function(_0xb10d57){while(--_0xb10d57){_0x50b596['push'](_0x50b596['shift']());}};_0xbebd69(++_0x42ed2c);}(a332_0x42ed,0xb0));const a332_0xbebd=function(_0x50b596,_0x42ed2c){_0x50b596=_0x50b596-0x0;let _0xbebd69=a332_0x42ed[_0x50b596];return _0xbebd69;};const _0x3dc61f=a332_0xbebd;'use strict';const Sequelize=require(_0x3dc61f('0x4'));module['exports']={'name':{'type':Sequelize[_0x3dc61f('0x0')]},'description':{'type':Sequelize[_0x3dc61f('0x0')]},'username':{'type':Sequelize[_0x3dc61f('0x0')],'unique':_0x3dc61f('0x6')},'password':{'type':Sequelize['STRING']},'token':{'type':Sequelize[_0x3dc61f('0x0')]},'remoteUri':{'type':Sequelize[_0x3dc61f('0x0')],'unique':_0x3dc61f('0x1')},'authType':{'type':Sequelize[_0x3dc61f('0x5')]('password',_0x3dc61f('0x7')),'defaultValue':_0x3dc61f('0x2')},'serverUrl':{'type':Sequelize[_0x3dc61f('0x0')]},'type':{'type':Sequelize[_0x3dc61f('0x5')](_0x3dc61f('0x3'),_0x3dc61f('0x8')),'defaultValue':_0x3dc61f('0x3')}}; \ No newline at end of file +const a332_0x12d5=['username','ENUM','remoteUri','password','sequelize','STRING','token','exports','integrationTab'];(function(_0x32cd73,_0x12d5c7){const _0x3fdf4e=function(_0xdaa49e){while(--_0xdaa49e){_0x32cd73['push'](_0x32cd73['shift']());}};_0x3fdf4e(++_0x12d5c7);}(a332_0x12d5,0x1e0));const a332_0x3fdf=function(_0x32cd73,_0x12d5c7){_0x32cd73=_0x32cd73-0x0;let _0x3fdf4e=a332_0x12d5[_0x32cd73];return _0x3fdf4e;};const _0xbd555d=a332_0x3fdf;'use strict';const Sequelize=require(_0xbd555d('0x1'));module[_0xbd555d('0x4')]={'name':{'type':Sequelize[_0xbd555d('0x2')]},'description':{'type':Sequelize[_0xbd555d('0x2')]},'username':{'type':Sequelize[_0xbd555d('0x2')],'unique':_0xbd555d('0x6')},'password':{'type':Sequelize[_0xbd555d('0x2')]},'token':{'type':Sequelize[_0xbd555d('0x2')]},'remoteUri':{'type':Sequelize[_0xbd555d('0x2')],'unique':_0xbd555d('0x8')},'authType':{'type':Sequelize[_0xbd555d('0x7')](_0xbd555d('0x0'),_0xbd555d('0x3')),'defaultValue':_0xbd555d('0x0')},'serverUrl':{'type':Sequelize[_0xbd555d('0x2')]},'type':{'type':Sequelize[_0xbd555d('0x7')](_0xbd555d('0x5'),'newTab'),'defaultValue':_0xbd555d('0x5')}}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.controller.js b/server/api/intZendeskAccount/intZendeskAccount.controller.js index 3899cad..61a0cc7 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.controller.js +++ b/server/api/intZendeskAccount/intZendeskAccount.controller.js @@ -1 +1 @@ -const a333_0x4ca4=['password','ZendeskField','getConfigurations','%s/token:%s','then','statusCode','format','create','keys','base64','includeAll','destroy','addConfiguration','sort','lodash','fieldName','rawAttributes','request-promise-native','Basic\x20%s','from','limit','pick','json','where','name','username','ticket_fields','options','body','system_field_options','index','status','query','Subjects','count','../../mysqldb','%s/%s','slice','undefined','lastIndexOf','subject','%s:%s','ZendeskAccount','ZendeskConfiguration','AccountId','title','nolimit','error','token','findOne','../../components/integrations/configuration','position','send','test','Descriptions','filter','filters','GET','description','length','assignee','Unknown\x20authentication\x20type','authType','substring','map','group','toString','merge','catch','sequelize','show','getDescriptions','update','../../config/logger','custom_field_options','../../components/parsers/qs','params','Content-Range','fields','intersection','model','offset','type','remove','attributes','headers','include','like','end','channel','getFields','sendStatus','Wrong\x20credentials','findAll','order'];(function(_0x42f4af,_0x4ca417){const _0x3a2fcb=function(_0x91ca06){while(--_0x91ca06){_0x42f4af['push'](_0x42f4af['shift']());}};_0x3a2fcb(++_0x4ca417);}(a333_0x4ca4,0x11f));const a333_0x3a2f=function(_0x42f4af,_0x4ca417){_0x42f4af=_0x42f4af-0x0;let _0x3a2fcb=a333_0x4ca4[_0x42f4af];return _0x3a2fcb;};const _0x1995dc=a333_0x3a2f;'use strict';const rp=require(_0x1995dc('0xf')),util=require('util'),_=require(_0x1995dc('0xc')),qs=require(_0x1995dc('0x49')),logger=require(_0x1995dc('0x47'))('api'),db=require(_0x1995dc('0x21'))['db'],{Op,ValidationError}=require(_0x1995dc('0x43')),integrations=require(_0x1995dc('0x30'));function respondWithResult(_0x91ca06,_0x5349d5){return _0x5349d5=_0x5349d5||0xc8,function(_0xb32e11){if(_0xb32e11)return _0x91ca06['status'](_0x5349d5)['json'](_0xb32e11);};}function respondWithFilteredResult(_0xb4390b,_0xf25e4a){return function(_0x3bb454){const _0x111c03=a333_0x3a2f;if(_0x3bb454){const _0x3ba08b=_0x3bb454[_0x111c03('0x20')],_0x787aa0=_0xf25e4a['offset'];let _0x5a652a=_0xf25e4a[_0x111c03('0x4f')]+_0xf25e4a[_0x111c03('0x12')],_0x5e5776;return _0x5a652a>=_0x3ba08b?(_0x5a652a=_0x3ba08b,_0x5e5776=0xc8):_0x5e5776=0xce,_0xb4390b[_0x111c03('0x1d')](_0x5e5776),_0xb4390b['set'](_0x111c03('0x4b'),_0x787aa0+'-'+_0x5a652a+'/'+_0x3ba08b)[_0x111c03('0x14')](_0x3bb454);}return null;};}function saveUpdates(_0x197556){return function(_0x3df20f){const _0x36e0d0=a333_0x3a2f;if(_0x3df20f)return _0x3df20f[_0x36e0d0('0x46')](_0x197556)[_0x36e0d0('0x2')](function(_0x1a9186){return _0x1a9186;});return null;};}function removeEntity(_0x480800){return function(_0x32cdd3){const _0x4f8c3c=a333_0x3a2f;if(_0x32cdd3)return _0x32cdd3[_0x4f8c3c('0x9')]()[_0x4f8c3c('0x2')](function(){const _0x755aa9=_0x4f8c3c;_0x480800['status'](0xcc)[_0x755aa9('0x56')]();});};}function handleEntityNotFound(_0x4a2d2a){return function(_0x163fa0){const _0x52eece=a333_0x3a2f;return!_0x163fa0&&_0x4a2d2a[_0x52eece('0x59')](0x194),_0x163fa0;};}function handleError(_0x2c057e,_0xa13afe){return _0xa13afe=_0xa13afe||0x1f4,function(_0x719e71){const _0x49731e=a333_0x3a2f;logger[_0x49731e('0x2d')](_0x719e71['stack']),_0x719e71[_0x49731e('0x16')]&&delete _0x719e71[_0x49731e('0x16')],_0x2c057e[_0x49731e('0x1d')](_0xa13afe)['send'](_0x719e71);};}exports[_0x1995dc('0x1c')]=function(_0x399b86,_0x547599){const _0x14eb5b=_0x1995dc;let _0x315359={};const _0x178817={},_0x1306dc={'count':0x0,'rows':[]},_0x3a05a1=_['map'](db['ZendeskAccount'][_0x14eb5b('0xe')],function(_0x1c7af6){const _0x4551f6=_0x14eb5b;return{'name':_0x1c7af6[_0x4551f6('0xd')],'type':_0x1c7af6[_0x4551f6('0x50')]['key']};});_0x178817['model']=_['map'](_0x3a05a1,_0x14eb5b('0x16')),_0x178817['query']=_[_0x14eb5b('0x6')](_0x399b86[_0x14eb5b('0x1e')]),_0x178817[_0x14eb5b('0x36')]=_[_0x14eb5b('0x4d')](_0x178817[_0x14eb5b('0x4e')],_0x178817[_0x14eb5b('0x1e')]),_0x315359[_0x14eb5b('0x52')]=_[_0x14eb5b('0x4d')](_0x178817[_0x14eb5b('0x4e')],qs['fields'](_0x399b86[_0x14eb5b('0x1e')][_0x14eb5b('0x4c')])),_0x315359[_0x14eb5b('0x52')]=_0x315359[_0x14eb5b('0x52')]['length']?_0x315359['attributes']:_0x178817['model'];typeof _0x399b86[_0x14eb5b('0x1e')][_0x14eb5b('0x2c')]==='undefined'&&(_0x315359[_0x14eb5b('0x12')]=qs[_0x14eb5b('0x12')](_0x399b86[_0x14eb5b('0x1e')][_0x14eb5b('0x12')]),_0x315359[_0x14eb5b('0x4f')]=qs[_0x14eb5b('0x4f')](_0x399b86[_0x14eb5b('0x1e')][_0x14eb5b('0x4f')]));_0x315359['order']=qs[_0x14eb5b('0xb')](_0x399b86[_0x14eb5b('0x1e')][_0x14eb5b('0xb')]),_0x315359[_0x14eb5b('0x15')]=qs[_0x14eb5b('0x36')](_[_0x14eb5b('0x13')](_0x399b86['query'],_0x178817[_0x14eb5b('0x36')]),_0x3a05a1);_0x399b86[_0x14eb5b('0x1e')][_0x14eb5b('0x35')]&&(_0x315359[_0x14eb5b('0x15')]=_['merge'](_0x315359[_0x14eb5b('0x15')],{[Op['or']]:_[_0x14eb5b('0x3e')](_0x3a05a1,function(_0xbbbd87){const _0x46e6c4=_0x14eb5b;if(_0xbbbd87[_0x46e6c4('0x50')]!=='VIRTUAL'){const _0x3fc032={};return _0x3fc032[_0xbbbd87['name']]={[Op[_0x46e6c4('0x55')]]:'%'+_0x399b86[_0x46e6c4('0x1e')][_0x46e6c4('0x35')]+'%'},_0x3fc032;}})}));_0x315359=_['merge']({},_0x315359,_0x399b86[_0x14eb5b('0x19')]);const _0x30833d={'where':_0x315359[_0x14eb5b('0x15')]};return db[_0x14eb5b('0x28')]['count'](_0x30833d)[_0x14eb5b('0x2')](function(_0x5d4e33){const _0x1a2f3d=_0x14eb5b;return _0x1306dc[_0x1a2f3d('0x20')]=_0x5d4e33,_0x399b86[_0x1a2f3d('0x1e')][_0x1a2f3d('0x8')]&&(_0x315359[_0x1a2f3d('0x54')]=[{'all':!![]}]),db[_0x1a2f3d('0x28')][_0x1a2f3d('0x5b')](_0x315359);})[_0x14eb5b('0x2')](function(_0x2efacb){return _0x1306dc['rows']=_0x2efacb,_0x1306dc;})[_0x14eb5b('0x2')](respondWithFilteredResult(_0x547599,_0x315359))['catch'](handleError(_0x547599,null));},exports[_0x1995dc('0x44')]=function(_0x508a5b,_0xbca97b){const _0x5d9fdb=_0x1995dc;let _0x311bc4={'raw':![],'where':{'id':_0x508a5b[_0x5d9fdb('0x4a')]['id']}};const _0x2d1ba2={};return _0x2d1ba2['model']=_[_0x5d9fdb('0x6')](db['ZendeskAccount']['rawAttributes']),_0x2d1ba2[_0x5d9fdb('0x1e')]=_['keys'](_0x508a5b[_0x5d9fdb('0x1e')]),_0x2d1ba2[_0x5d9fdb('0x36')]=_['intersection'](_0x2d1ba2['model'],_0x2d1ba2[_0x5d9fdb('0x1e')]),_0x311bc4[_0x5d9fdb('0x52')]=_[_0x5d9fdb('0x4d')](_0x2d1ba2[_0x5d9fdb('0x4e')],qs[_0x5d9fdb('0x4c')](_0x508a5b['query']['fields'])),_0x311bc4[_0x5d9fdb('0x52')]=_0x311bc4[_0x5d9fdb('0x52')][_0x5d9fdb('0x39')]?_0x311bc4[_0x5d9fdb('0x52')]:_0x2d1ba2[_0x5d9fdb('0x4e')],_0x508a5b['query'][_0x5d9fdb('0x8')]&&(_0x311bc4[_0x5d9fdb('0x54')]=[{'all':!![]}]),_0x311bc4=_[_0x5d9fdb('0x41')]({},_0x311bc4,_0x508a5b[_0x5d9fdb('0x19')]),db['ZendeskAccount'][_0x5d9fdb('0x2f')](_0x311bc4)[_0x5d9fdb('0x2')](handleEntityNotFound(_0xbca97b,null))[_0x5d9fdb('0x2')](respondWithResult(_0xbca97b,null))[_0x5d9fdb('0x42')](handleError(_0xbca97b,null));},exports[_0x1995dc('0x5')]=function(_0x443b35,_0x5ddc2b){const _0x47ae5a=_0x1995dc;return db[_0x47ae5a('0x28')]['create'](_0x443b35[_0x47ae5a('0x1a')],{})[_0x47ae5a('0x2')](respondWithResult(_0x5ddc2b,0xc9))[_0x47ae5a('0x42')](handleError(_0x5ddc2b,null));},exports['update']=function(_0x4f04ff,_0x17cd11){const _0x2c8122=_0x1995dc;return _0x4f04ff[_0x2c8122('0x1a')]['id']&&delete _0x4f04ff['body']['id'],db[_0x2c8122('0x28')][_0x2c8122('0x2f')]({'where':{'id':_0x4f04ff['params']['id']}})['then'](handleEntityNotFound(_0x17cd11,null))[_0x2c8122('0x2')](saveUpdates(_0x4f04ff['body'],null))[_0x2c8122('0x2')](respondWithResult(_0x17cd11,null))[_0x2c8122('0x42')](handleError(_0x17cd11,null));},exports[_0x1995dc('0x9')]=function(_0x547da8,_0x4a35ee){const _0x39bdaa=_0x1995dc;return db[_0x39bdaa('0x28')]['findOne']({'where':{'id':_0x547da8['params']['id']}})['then'](handleEntityNotFound(_0x4a35ee,null))['then'](removeEntity(_0x4a35ee,null))['catch'](handleError(_0x4a35ee,null));},exports[_0x1995dc('0x0')]=function(_0x31350a,_0x50b8ba){const _0x5051ce=_0x1995dc;let _0x45f2f5={};const _0x300045={};let _0x19bd43,_0x2e89c6;return db[_0x5051ce('0x28')]['findOne']({'where':{'id':_0x31350a[_0x5051ce('0x4a')]['id']}})['then'](handleEntityNotFound(_0x50b8ba,null))[_0x5051ce('0x2')](function(_0x303da4){const _0x566769=_0x5051ce;if(_0x303da4)return _0x19bd43=_0x303da4,_0x300045['model']=_['keys'](db[_0x566769('0x29')][_0x566769('0xe')]),_0x300045[_0x566769('0x1e')]=_[_0x566769('0x6')](_0x31350a[_0x566769('0x1e')]),_0x300045['filters']=_[_0x566769('0x4d')](_0x300045[_0x566769('0x4e')],_0x300045['query']),_0x45f2f5[_0x566769('0x52')]=_[_0x566769('0x4d')](_0x300045['model'],qs['fields'](_0x31350a['query'][_0x566769('0x4c')])),_0x45f2f5[_0x566769('0x52')]=_0x45f2f5[_0x566769('0x52')]['length']?_0x45f2f5[_0x566769('0x52')]:_0x300045[_0x566769('0x4e')],_0x45f2f5[_0x566769('0x5c')]=qs[_0x566769('0xb')](_0x31350a[_0x566769('0x1e')]['sort']),_0x45f2f5['where']=qs[_0x566769('0x36')](_[_0x566769('0x13')](_0x31350a['query'],_0x300045['filters'])),_0x31350a[_0x566769('0x1e')]['filter']&&(_0x45f2f5[_0x566769('0x15')]=_['merge'](_0x45f2f5['where'],{[Op['or']]:_[_0x566769('0x3e')](_0x45f2f5[_0x566769('0x52')],function(_0x451cdc){const _0x47232d=_0x566769,_0x352591={};return _0x352591[_0x451cdc]={[Op[_0x47232d('0x55')]]:'%'+_0x31350a['query'][_0x47232d('0x35')]+'%'},_0x352591;})})),_0x45f2f5=_['merge']({},_0x45f2f5,_0x31350a[_0x566769('0x19')]),_0x19bd43['getConfigurations'](_0x45f2f5);})[_0x5051ce('0x2')](function(_0x412c6f){const _0x17560a=_0x5051ce;if(_0x412c6f)return _0x2e89c6=_0x412c6f[_0x17560a('0x39')],typeof _0x31350a[_0x17560a('0x1e')]['nolimit']===_0x17560a('0x24')&&(_0x45f2f5['limit']=qs[_0x17560a('0x12')](_0x31350a[_0x17560a('0x1e')]['limit']),_0x45f2f5['offset']=qs[_0x17560a('0x4f')](_0x31350a['query'][_0x17560a('0x4f')])),_0x19bd43[_0x17560a('0x0')](_0x45f2f5);})[_0x5051ce('0x2')](function(_0x483880){if(_0x483880)return _0x483880?{'count':_0x2e89c6,'rows':_0x483880}:null;})[_0x5051ce('0x2')](respondWithResult(_0x50b8ba,null))[_0x5051ce('0x42')](handleError(_0x50b8ba,null));},exports[_0x1995dc('0xa')]=function(_0x4eee0d,_0x59fb2b){const _0x2b66c7=_0x1995dc;return _0x4eee0d[_0x2b66c7('0x1a')]['id']&&delete _0x4eee0d['body']['id'],db['ZendeskAccount']['findOne']({'where':{'id':_0x4eee0d[_0x2b66c7('0x4a')]['id']}})[_0x2b66c7('0x2')](handleEntityNotFound(_0x59fb2b,null))[_0x2b66c7('0x2')](function(_0x7b6413){const _0x232f3e=_0x2b66c7;if(_0x7b6413)return _0x4eee0d[_0x232f3e('0x1a')][_0x232f3e('0x2a')]=_0x7b6413['id'],_0x4eee0d[_0x232f3e('0x1a')][_0x232f3e('0x1f')]=integrations['getSubjects'](_0x4eee0d[_0x232f3e('0x1a')]['channel'],_0x4eee0d[_0x232f3e('0x1a')][_0x232f3e('0x50')]),_0x4eee0d[_0x232f3e('0x1a')]['Descriptions']=integrations[_0x232f3e('0x45')](_0x4eee0d[_0x232f3e('0x1a')][_0x232f3e('0x57')],_0x4eee0d['body'][_0x232f3e('0x50')]),db[_0x232f3e('0x29')][_0x232f3e('0x5')](_0x4eee0d[_0x232f3e('0x1a')],{'include':[{'model':db[_0x232f3e('0x5e')],'as':_0x232f3e('0x1f')},{'model':db[_0x232f3e('0x5e')],'as':_0x232f3e('0x34')}]});return null;})[_0x2b66c7('0x2')](respondWithResult(_0x59fb2b,null))[_0x2b66c7('0x42')](handleError(_0x59fb2b,null));},exports['getFields']=function(_0x4fd224,_0x5991a5){const _0x36c427=_0x1995dc;let _0x20f487='';return db[_0x36c427('0x28')][_0x36c427('0x2f')]({'where':{'id':_0x4fd224[_0x36c427('0x4a')]['id']},'attributes':['id','username',_0x36c427('0x5d'),_0x36c427('0x2e'),_0x36c427('0x3c'),'remoteUri']})[_0x36c427('0x2')](handleEntityNotFound(_0x5991a5,null))['then'](function(_0x166b7f){const _0xe43a3e=_0x36c427;if(_0x166b7f){_0x20f487=_0x166b7f['remoteUri'];const _0x3d581f=_0x20f487[_0xe43a3e('0x23')](-0x1);_0x3d581f==='/'&&(_0x20f487=_0x20f487[_0xe43a3e('0x3d')](0x0,_0x20f487[_0xe43a3e('0x25')](_0x3d581f)));const _0xa208f9={'method':_0xe43a3e('0x37'),'uri':util[_0xe43a3e('0x4')](_0xe43a3e('0x22'),_0x20f487,'ticket_fields'),'json':!![]};switch(_0x166b7f[_0xe43a3e('0x3c')]){case _0xe43a3e('0x5d'):_0xa208f9[_0xe43a3e('0x53')]={'Authorization':util[_0xe43a3e('0x4')](_0xe43a3e('0x10'),Buffer[_0xe43a3e('0x11')](util[_0xe43a3e('0x4')](_0xe43a3e('0x27'),_0x166b7f['username'],_0x166b7f['password']))['toString'](_0xe43a3e('0x7')))};break;case _0xe43a3e('0x2e'):_0xa208f9[_0xe43a3e('0x53')]={'Authorization':util[_0xe43a3e('0x4')](_0xe43a3e('0x10'),Buffer[_0xe43a3e('0x11')](util[_0xe43a3e('0x4')](_0xe43a3e('0x1'),_0x166b7f[_0xe43a3e('0x17')],_0x166b7f['token']))[_0xe43a3e('0x40')](_0xe43a3e('0x7')))};break;default:throw new ValidationError(_0xe43a3e('0x3b'));}return rp(_0xa208f9);}})['then'](function(_0x38400a){const _0x4e02c6=_0x36c427;if(_0x38400a){const _0xeee403=[_0x4e02c6('0x26'),_0x4e02c6('0x38'),_0x4e02c6('0x3f'),_0x4e02c6('0x3a')];return _[_0x4e02c6('0x51')](_0x38400a[_0x4e02c6('0x18')],function(_0x483e7c){return _0xeee403['includes'](_0x483e7c['type']);}),{'count':_0x38400a[_0x4e02c6('0x18')][_0x4e02c6('0x39')],'rows':_[_0x4e02c6('0x3e')](_0x38400a['ticket_fields'],function(_0x2be932){const _0x5d90b6=_0x4e02c6;return{'id':_0x2be932['id'],'name':_0x2be932[_0x5d90b6('0x31')]>0x7?_0x2be932[_0x5d90b6('0x2b')]:_0x2be932[_0x5d90b6('0x50')],'custom':_0x2be932[_0x5d90b6('0x31')]>0x7?!![]:![],'options':_0x2be932[_0x5d90b6('0x1b')]?_0x2be932[_0x5d90b6('0x1b')]:_0x2be932[_0x5d90b6('0x48')]?_0x2be932[_0x5d90b6('0x48')]:[]};})};}})[_0x36c427('0x2')](respondWithResult(_0x5991a5,null))[_0x36c427('0x42')](function(_0x49c18e){const _0x260a4b=_0x36c427;let _0x4a2ac1=_0x4fd224[_0x260a4b('0x1e')][_0x260a4b('0x33')]?0x1f4:_0x49c18e[_0x260a4b('0x3')]||0x1f4;logger[_0x260a4b('0x2d')]('getFields,\x20%s,\x20%s,\x20%s',_0x260a4b('0x58'),_0x4a2ac1,JSON['stringify'](_0x49c18e)),delete _0x49c18e['name'],_0x4a2ac1===0x191&&(_0x4a2ac1=0x190),_0x5991a5[_0x260a4b('0x1d')](_0x4a2ac1)[_0x260a4b('0x32')](_0x4fd224['query'][_0x260a4b('0x33')]?{'message':_0x260a4b('0x5a'),'statusCode':_0x49c18e['statusCode']}:_0x49c18e);});}; \ No newline at end of file +const a333_0x4131=['util','group','length','remoteUri','attributes','../../components/integrations/configuration','options','password','getSubjects','send','pick','addConfiguration','set','map','count','nolimit','status','update','intersection','filter','GET','headers','test','../../config/logger','like','getFields','../../components/parsers/qs','slice','includeAll','remove','show','statusCode','merge','%s/%s','username','include','channel','body','getDescriptions','%s/token:%s','Basic\x20%s','query','system_field_options','includes','fields','from','../../mysqldb','ZendeskConfiguration','undefined','sort','getFields,\x20%s,\x20%s,\x20%s','findAll','getConfigurations','stringify','order','token','then','catch','model','%s:%s','api','limit','Subjects','Wrong\x20credentials','create','custom_field_options','sequelize','base64','ticket_fields','ZendeskAccount','Unknown\x20authentication\x20type','error','authType','position','stack','toString','end','lodash','filters','key','AccountId','title','offset','params','where','lastIndexOf','rawAttributes','sendStatus','json','keys','type','assignee','subject','destroy','format','Content-Range','findOne','Descriptions','name'];(function(_0x4b882e,_0x41314d){const _0x33bd65=function(_0x6a0155){while(--_0x6a0155){_0x4b882e['push'](_0x4b882e['shift']());}};_0x33bd65(++_0x41314d);}(a333_0x4131,0x134));const a333_0x33bd=function(_0x4b882e,_0x41314d){_0x4b882e=_0x4b882e-0x0;let _0x33bd65=a333_0x4131[_0x4b882e];return _0x33bd65;};const _0x57e968=a333_0x33bd;'use strict';const rp=require('request-promise-native'),util=require(_0x57e968('0x58')),_=require(_0x57e968('0x42')),qs=require(_0x57e968('0xf')),logger=require(_0x57e968('0xc'))(_0x57e968('0x31')),db=require(_0x57e968('0x23'))['db'],{Op,ValidationError}=require(_0x57e968('0x37')),integrations=require(_0x57e968('0x5d'));function respondWithResult(_0x6a0155,_0x5f1241){return _0x5f1241=_0x5f1241||0xc8,function(_0x259d1b){const _0x15baa2=a333_0x33bd;if(_0x259d1b)return _0x6a0155[_0x15baa2('0x5')](_0x5f1241)[_0x15baa2('0x4d')](_0x259d1b);};}function respondWithFilteredResult(_0x820fc1,_0x36a86b){return function(_0x4d5e34){const _0x5ea8a9=a333_0x33bd;if(_0x4d5e34){const _0x440149=_0x4d5e34[_0x5ea8a9('0x3')],_0x2d1509=_0x36a86b[_0x5ea8a9('0x47')];let _0x34b258=_0x36a86b[_0x5ea8a9('0x47')]+_0x36a86b[_0x5ea8a9('0x32')],_0x2df727;return _0x34b258>=_0x440149?(_0x34b258=_0x440149,_0x2df727=0xc8):_0x2df727=0xce,_0x820fc1[_0x5ea8a9('0x5')](_0x2df727),_0x820fc1[_0x5ea8a9('0x1')](_0x5ea8a9('0x54'),_0x2d1509+'-'+_0x34b258+'/'+_0x440149)[_0x5ea8a9('0x4d')](_0x4d5e34);}return null;};}function saveUpdates(_0x26b7d7){return function(_0x596d4e){const _0x42d8cf=a333_0x33bd;if(_0x596d4e)return _0x596d4e['update'](_0x26b7d7)[_0x42d8cf('0x2d')](function(_0x45675b){return _0x45675b;});return null;};}function removeEntity(_0x3061db){return function(_0x38771e){const _0x1ff10b=a333_0x33bd;if(_0x38771e)return _0x38771e[_0x1ff10b('0x52')]()[_0x1ff10b('0x2d')](function(){const _0x3c74ea=_0x1ff10b;_0x3061db[_0x3c74ea('0x5')](0xcc)[_0x3c74ea('0x41')]();});};}function handleEntityNotFound(_0x8eeb1d){return function(_0x52b123){const _0x538904=a333_0x33bd;return!_0x52b123&&_0x8eeb1d[_0x538904('0x4c')](0x194),_0x52b123;};}function handleError(_0x1419fd,_0x5c498d){return _0x5c498d=_0x5c498d||0x1f4,function(_0xc9df2b){const _0x5cb6bd=a333_0x33bd;logger[_0x5cb6bd('0x3c')](_0xc9df2b[_0x5cb6bd('0x3f')]),_0xc9df2b[_0x5cb6bd('0x57')]&&delete _0xc9df2b['name'],_0x1419fd[_0x5cb6bd('0x5')](_0x5c498d)[_0x5cb6bd('0x61')](_0xc9df2b);};}exports['index']=function(_0xc711f,_0x1c2ada){const _0x3507af=_0x57e968;let _0x4a9e40={};const _0x595820={},_0xec0390={'count':0x0,'rows':[]},_0x584bd6=_['map'](db[_0x3507af('0x3a')]['rawAttributes'],function(_0x4e81a2){const _0x45162a=_0x3507af;return{'name':_0x4e81a2['fieldName'],'type':_0x4e81a2['type'][_0x45162a('0x44')]};});_0x595820['model']=_['map'](_0x584bd6,_0x3507af('0x57')),_0x595820[_0x3507af('0x1e')]=_[_0x3507af('0x4e')](_0xc711f[_0x3507af('0x1e')]),_0x595820['filters']=_[_0x3507af('0x7')](_0x595820[_0x3507af('0x2f')],_0x595820[_0x3507af('0x1e')]),_0x4a9e40[_0x3507af('0x5c')]=_[_0x3507af('0x7')](_0x595820[_0x3507af('0x2f')],qs['fields'](_0xc711f[_0x3507af('0x1e')][_0x3507af('0x21')])),_0x4a9e40[_0x3507af('0x5c')]=_0x4a9e40[_0x3507af('0x5c')]['length']?_0x4a9e40[_0x3507af('0x5c')]:_0x595820[_0x3507af('0x2f')];typeof _0xc711f['query'][_0x3507af('0x4')]===_0x3507af('0x25')&&(_0x4a9e40['limit']=qs[_0x3507af('0x32')](_0xc711f['query']['limit']),_0x4a9e40['offset']=qs[_0x3507af('0x47')](_0xc711f[_0x3507af('0x1e')][_0x3507af('0x47')]));_0x4a9e40[_0x3507af('0x2b')]=qs[_0x3507af('0x26')](_0xc711f[_0x3507af('0x1e')][_0x3507af('0x26')]),_0x4a9e40[_0x3507af('0x49')]=qs[_0x3507af('0x43')](_['pick'](_0xc711f[_0x3507af('0x1e')],_0x595820[_0x3507af('0x43')]),_0x584bd6);_0xc711f[_0x3507af('0x1e')][_0x3507af('0x8')]&&(_0x4a9e40['where']=_[_0x3507af('0x15')](_0x4a9e40[_0x3507af('0x49')],{[Op['or']]:_[_0x3507af('0x2')](_0x584bd6,function(_0x3b2393){const _0x433c5f=_0x3507af;if(_0x3b2393[_0x433c5f('0x4f')]!=='VIRTUAL'){const _0xa78d78={};return _0xa78d78[_0x3b2393[_0x433c5f('0x57')]]={[Op[_0x433c5f('0xd')]]:'%'+_0xc711f[_0x433c5f('0x1e')][_0x433c5f('0x8')]+'%'},_0xa78d78;}})}));_0x4a9e40=_[_0x3507af('0x15')]({},_0x4a9e40,_0xc711f[_0x3507af('0x5e')]);const _0x1eec22={'where':_0x4a9e40[_0x3507af('0x49')]};return db[_0x3507af('0x3a')]['count'](_0x1eec22)['then'](function(_0x326867){const _0x182b10=_0x3507af;return _0xec0390['count']=_0x326867,_0xc711f['query'][_0x182b10('0x11')]&&(_0x4a9e40[_0x182b10('0x18')]=[{'all':!![]}]),db[_0x182b10('0x3a')][_0x182b10('0x28')](_0x4a9e40);})[_0x3507af('0x2d')](function(_0x393de3){return _0xec0390['rows']=_0x393de3,_0xec0390;})[_0x3507af('0x2d')](respondWithFilteredResult(_0x1c2ada,_0x4a9e40))[_0x3507af('0x2e')](handleError(_0x1c2ada,null));},exports[_0x57e968('0x13')]=function(_0x4c25d1,_0x2785e3){const _0x25508f=_0x57e968;let _0x54f4a2={'raw':![],'where':{'id':_0x4c25d1['params']['id']}};const _0x35079d={};return _0x35079d[_0x25508f('0x2f')]=_[_0x25508f('0x4e')](db[_0x25508f('0x3a')][_0x25508f('0x4b')]),_0x35079d[_0x25508f('0x1e')]=_[_0x25508f('0x4e')](_0x4c25d1[_0x25508f('0x1e')]),_0x35079d[_0x25508f('0x43')]=_['intersection'](_0x35079d['model'],_0x35079d[_0x25508f('0x1e')]),_0x54f4a2[_0x25508f('0x5c')]=_[_0x25508f('0x7')](_0x35079d[_0x25508f('0x2f')],qs['fields'](_0x4c25d1[_0x25508f('0x1e')][_0x25508f('0x21')])),_0x54f4a2[_0x25508f('0x5c')]=_0x54f4a2[_0x25508f('0x5c')]['length']?_0x54f4a2[_0x25508f('0x5c')]:_0x35079d['model'],_0x4c25d1['query'][_0x25508f('0x11')]&&(_0x54f4a2['include']=[{'all':!![]}]),_0x54f4a2=_['merge']({},_0x54f4a2,_0x4c25d1[_0x25508f('0x5e')]),db['ZendeskAccount'][_0x25508f('0x55')](_0x54f4a2)[_0x25508f('0x2d')](handleEntityNotFound(_0x2785e3,null))[_0x25508f('0x2d')](respondWithResult(_0x2785e3,null))[_0x25508f('0x2e')](handleError(_0x2785e3,null));},exports['create']=function(_0x13b45a,_0x4785dd){const _0x70536b=_0x57e968;return db[_0x70536b('0x3a')][_0x70536b('0x35')](_0x13b45a[_0x70536b('0x1a')],{})['then'](respondWithResult(_0x4785dd,0xc9))[_0x70536b('0x2e')](handleError(_0x4785dd,null));},exports[_0x57e968('0x6')]=function(_0x20168e,_0x466b5c){const _0x3da17f=_0x57e968;return _0x20168e['body']['id']&&delete _0x20168e[_0x3da17f('0x1a')]['id'],db['ZendeskAccount'][_0x3da17f('0x55')]({'where':{'id':_0x20168e[_0x3da17f('0x48')]['id']}})['then'](handleEntityNotFound(_0x466b5c,null))[_0x3da17f('0x2d')](saveUpdates(_0x20168e[_0x3da17f('0x1a')],null))['then'](respondWithResult(_0x466b5c,null))[_0x3da17f('0x2e')](handleError(_0x466b5c,null));},exports['destroy']=function(_0x2c0175,_0x133be7){const _0x7e480f=_0x57e968;return db[_0x7e480f('0x3a')][_0x7e480f('0x55')]({'where':{'id':_0x2c0175[_0x7e480f('0x48')]['id']}})[_0x7e480f('0x2d')](handleEntityNotFound(_0x133be7,null))[_0x7e480f('0x2d')](removeEntity(_0x133be7,null))[_0x7e480f('0x2e')](handleError(_0x133be7,null));},exports[_0x57e968('0x29')]=function(_0x770427,_0x1bdcd2){const _0xf2fd27=_0x57e968;let _0x2cf619={};const _0x156fc2={};let _0x1eaee5,_0x2da542;return db[_0xf2fd27('0x3a')][_0xf2fd27('0x55')]({'where':{'id':_0x770427[_0xf2fd27('0x48')]['id']}})[_0xf2fd27('0x2d')](handleEntityNotFound(_0x1bdcd2,null))[_0xf2fd27('0x2d')](function(_0x495f52){const _0x5cc47e=_0xf2fd27;if(_0x495f52)return _0x1eaee5=_0x495f52,_0x156fc2[_0x5cc47e('0x2f')]=_[_0x5cc47e('0x4e')](db['ZendeskConfiguration'][_0x5cc47e('0x4b')]),_0x156fc2['query']=_[_0x5cc47e('0x4e')](_0x770427[_0x5cc47e('0x1e')]),_0x156fc2[_0x5cc47e('0x43')]=_[_0x5cc47e('0x7')](_0x156fc2[_0x5cc47e('0x2f')],_0x156fc2[_0x5cc47e('0x1e')]),_0x2cf619['attributes']=_[_0x5cc47e('0x7')](_0x156fc2[_0x5cc47e('0x2f')],qs[_0x5cc47e('0x21')](_0x770427[_0x5cc47e('0x1e')][_0x5cc47e('0x21')])),_0x2cf619[_0x5cc47e('0x5c')]=_0x2cf619['attributes'][_0x5cc47e('0x5a')]?_0x2cf619['attributes']:_0x156fc2['model'],_0x2cf619[_0x5cc47e('0x2b')]=qs[_0x5cc47e('0x26')](_0x770427[_0x5cc47e('0x1e')][_0x5cc47e('0x26')]),_0x2cf619[_0x5cc47e('0x49')]=qs[_0x5cc47e('0x43')](_[_0x5cc47e('0x62')](_0x770427[_0x5cc47e('0x1e')],_0x156fc2[_0x5cc47e('0x43')])),_0x770427[_0x5cc47e('0x1e')][_0x5cc47e('0x8')]&&(_0x2cf619[_0x5cc47e('0x49')]=_[_0x5cc47e('0x15')](_0x2cf619['where'],{[Op['or']]:_[_0x5cc47e('0x2')](_0x2cf619['attributes'],function(_0x341c52){const _0x4fa078=_0x5cc47e,_0x5dfc26={};return _0x5dfc26[_0x341c52]={[Op[_0x4fa078('0xd')]]:'%'+_0x770427[_0x4fa078('0x1e')][_0x4fa078('0x8')]+'%'},_0x5dfc26;})})),_0x2cf619=_[_0x5cc47e('0x15')]({},_0x2cf619,_0x770427[_0x5cc47e('0x5e')]),_0x1eaee5[_0x5cc47e('0x29')](_0x2cf619);})[_0xf2fd27('0x2d')](function(_0x14113b){const _0x10d126=_0xf2fd27;if(_0x14113b)return _0x2da542=_0x14113b[_0x10d126('0x5a')],typeof _0x770427['query'][_0x10d126('0x4')]===_0x10d126('0x25')&&(_0x2cf619[_0x10d126('0x32')]=qs['limit'](_0x770427[_0x10d126('0x1e')][_0x10d126('0x32')]),_0x2cf619[_0x10d126('0x47')]=qs[_0x10d126('0x47')](_0x770427[_0x10d126('0x1e')][_0x10d126('0x47')])),_0x1eaee5[_0x10d126('0x29')](_0x2cf619);})[_0xf2fd27('0x2d')](function(_0x494eaf){if(_0x494eaf)return _0x494eaf?{'count':_0x2da542,'rows':_0x494eaf}:null;})['then'](respondWithResult(_0x1bdcd2,null))[_0xf2fd27('0x2e')](handleError(_0x1bdcd2,null));},exports[_0x57e968('0x0')]=function(_0x16568,_0x2ca1a7){const _0x243928=_0x57e968;return _0x16568[_0x243928('0x1a')]['id']&&delete _0x16568[_0x243928('0x1a')]['id'],db[_0x243928('0x3a')][_0x243928('0x55')]({'where':{'id':_0x16568['params']['id']}})['then'](handleEntityNotFound(_0x2ca1a7,null))[_0x243928('0x2d')](function(_0x5a4a00){const _0x1c9f23=_0x243928;if(_0x5a4a00)return _0x16568[_0x1c9f23('0x1a')][_0x1c9f23('0x45')]=_0x5a4a00['id'],_0x16568['body'][_0x1c9f23('0x33')]=integrations[_0x1c9f23('0x60')](_0x16568['body'][_0x1c9f23('0x19')],_0x16568[_0x1c9f23('0x1a')][_0x1c9f23('0x4f')]),_0x16568[_0x1c9f23('0x1a')][_0x1c9f23('0x56')]=integrations[_0x1c9f23('0x1b')](_0x16568[_0x1c9f23('0x1a')][_0x1c9f23('0x19')],_0x16568['body']['type']),db[_0x1c9f23('0x24')][_0x1c9f23('0x35')](_0x16568[_0x1c9f23('0x1a')],{'include':[{'model':db['ZendeskField'],'as':_0x1c9f23('0x33')},{'model':db['ZendeskField'],'as':_0x1c9f23('0x56')}]});return null;})[_0x243928('0x2d')](respondWithResult(_0x2ca1a7,null))[_0x243928('0x2e')](handleError(_0x2ca1a7,null));},exports[_0x57e968('0xe')]=function(_0x62c42d,_0x52e5cd){const _0x38b671=_0x57e968;let _0x4a3607='';return db[_0x38b671('0x3a')][_0x38b671('0x55')]({'where':{'id':_0x62c42d[_0x38b671('0x48')]['id']},'attributes':['id',_0x38b671('0x17'),_0x38b671('0x5f'),_0x38b671('0x2c'),_0x38b671('0x3d'),_0x38b671('0x5b')]})['then'](handleEntityNotFound(_0x52e5cd,null))[_0x38b671('0x2d')](function(_0x3fb928){const _0x250dbe=_0x38b671;if(_0x3fb928){_0x4a3607=_0x3fb928[_0x250dbe('0x5b')];const _0x264066=_0x4a3607[_0x250dbe('0x10')](-0x1);_0x264066==='/'&&(_0x4a3607=_0x4a3607['substring'](0x0,_0x4a3607[_0x250dbe('0x4a')](_0x264066)));const _0x3e273b={'method':_0x250dbe('0x9'),'uri':util['format'](_0x250dbe('0x16'),_0x4a3607,_0x250dbe('0x39')),'json':!![]};switch(_0x3fb928[_0x250dbe('0x3d')]){case _0x250dbe('0x5f'):_0x3e273b[_0x250dbe('0xa')]={'Authorization':util[_0x250dbe('0x53')](_0x250dbe('0x1d'),Buffer['from'](util[_0x250dbe('0x53')](_0x250dbe('0x30'),_0x3fb928[_0x250dbe('0x17')],_0x3fb928[_0x250dbe('0x5f')]))[_0x250dbe('0x40')](_0x250dbe('0x38')))};break;case _0x250dbe('0x2c'):_0x3e273b[_0x250dbe('0xa')]={'Authorization':util['format']('Basic\x20%s',Buffer[_0x250dbe('0x22')](util['format'](_0x250dbe('0x1c'),_0x3fb928['username'],_0x3fb928[_0x250dbe('0x2c')]))[_0x250dbe('0x40')](_0x250dbe('0x38')))};break;default:throw new ValidationError(_0x250dbe('0x3b'));}return rp(_0x3e273b);}})[_0x38b671('0x2d')](function(_0x5785bb){const _0x42235e=_0x38b671;if(_0x5785bb){const _0x234b35=[_0x42235e('0x51'),'description',_0x42235e('0x59'),_0x42235e('0x50')];return _[_0x42235e('0x12')](_0x5785bb['ticket_fields'],function(_0x2a1892){const _0x54cdc9=_0x42235e;return _0x234b35[_0x54cdc9('0x20')](_0x2a1892[_0x54cdc9('0x4f')]);}),{'count':_0x5785bb[_0x42235e('0x39')]['length'],'rows':_[_0x42235e('0x2')](_0x5785bb[_0x42235e('0x39')],function(_0x19e6d7){const _0x58f61c=_0x42235e;return{'id':_0x19e6d7['id'],'name':_0x19e6d7[_0x58f61c('0x3e')]>0x7?_0x19e6d7[_0x58f61c('0x46')]:_0x19e6d7[_0x58f61c('0x4f')],'custom':_0x19e6d7['position']>0x7?!![]:![],'options':_0x19e6d7[_0x58f61c('0x1f')]?_0x19e6d7[_0x58f61c('0x1f')]:_0x19e6d7[_0x58f61c('0x36')]?_0x19e6d7[_0x58f61c('0x36')]:[]};})};}})['then'](respondWithResult(_0x52e5cd,null))['catch'](function(_0x4f9411){const _0xb73fca=_0x38b671;let _0x341902=_0x62c42d[_0xb73fca('0x1e')][_0xb73fca('0xb')]?0x1f4:_0x4f9411[_0xb73fca('0x14')]||0x1f4;logger[_0xb73fca('0x3c')](_0xb73fca('0x27'),_0xb73fca('0xe'),_0x341902,JSON[_0xb73fca('0x2a')](_0x4f9411)),delete _0x4f9411[_0xb73fca('0x57')],_0x341902===0x191&&(_0x341902=0x190),_0x52e5cd[_0xb73fca('0x5')](_0x341902)[_0xb73fca('0x61')](_0x62c42d['query'][_0xb73fca('0xb')]?{'message':_0xb73fca('0x34'),'statusCode':_0x4f9411[_0xb73fca('0x14')]}:_0x4f9411);});}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.model.js b/server/api/intZendeskAccount/intZendeskAccount.model.js index 70a0d1e..ddfbe83 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.model.js +++ b/server/api/intZendeskAccount/intZendeskAccount.model.js @@ -1 +1 @@ -const a334_0x4b51=['./intZendeskAccount.attributes','exports','define','ZendeskAccount','int_zendesk_accounts'];(function(_0x4df6f9,_0x4b512f){const _0x1e1286=function(_0x22ee35){while(--_0x22ee35){_0x4df6f9['push'](_0x4df6f9['shift']());}};_0x1e1286(++_0x4b512f);}(a334_0x4b51,0x1e2));const a334_0x1e12=function(_0x4df6f9,_0x4b512f){_0x4df6f9=_0x4df6f9-0x0;let _0x1e1286=a334_0x4b51[_0x4df6f9];return _0x1e1286;};const _0x428303=a334_0x1e12;'use strict';const attributes=require(_0x428303('0x3'));module[_0x428303('0x4')]=function(_0x22ee35){const _0x110a26=_0x428303,_0x4137c9=_0x22ee35[_0x110a26('0x0')](_0x110a26('0x1'),attributes,{'tableName':_0x110a26('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4137c9;}; \ No newline at end of file +const a334_0x4860=['./intZendeskAccount.attributes','define','int_zendesk_accounts','exports'];(function(_0x43b57d,_0x48607d){const _0x382cc4=function(_0x5cd231){while(--_0x5cd231){_0x43b57d['push'](_0x43b57d['shift']());}};_0x382cc4(++_0x48607d);}(a334_0x4860,0x10b));const a334_0x382c=function(_0x43b57d,_0x48607d){_0x43b57d=_0x43b57d-0x0;let _0x382cc4=a334_0x4860[_0x43b57d];return _0x382cc4;};const _0x2ccdcb=a334_0x382c;'use strict';const attributes=require(_0x2ccdcb('0x1'));module[_0x2ccdcb('0x0')]=function(_0x5cd231){const _0x431bb6=_0x2ccdcb,_0x5f0c85=_0x5cd231[_0x431bb6('0x2')]('ZendeskAccount',attributes,{'tableName':_0x431bb6('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5f0c85;}; \ No newline at end of file diff --git a/server/api/intZendeskAccount/intZendeskAccount.rpc.js b/server/api/intZendeskAccount/intZendeskAccount.rpc.js index f10772a..58c6e05 100644 --- a/server/api/intZendeskAccount/intZendeskAccount.rpc.js +++ b/server/api/intZendeskAccount/intZendeskAccount.rpc.js @@ -1 +1 @@ -const a335_0x163b=['then','map','model','stringify','debug','attributes','../../mysqldb','GetZendeskAccount','error','ShowZendeskAccount','findOne','include','info','options','ZendeskAccount','../../config/logger','where','findAll','message','raw'];(function(_0xadd983,_0x163ba8){const _0x25ab39=function(_0x77b744){while(--_0x77b744){_0xadd983['push'](_0xadd983['shift']());}};_0x25ab39(++_0x163ba8);}(a335_0x163b,0x8f));const a335_0x25ab=function(_0xadd983,_0x163ba8){_0xadd983=_0xadd983-0x0;let _0x25ab39=a335_0x163b[_0xadd983];return _0x25ab39;};const _0x354128=a335_0x25ab;'use strict';const _=require('lodash'),db=require(_0x354128('0x3'))['db'],logger=require(_0x354128('0xc'))('rpc');exports['GetZendeskAccount']=function(_0x77b744){const _0x38baea=this;return new Promise(function(_0x2bb0e5,_0x359390){const _0x251868=a335_0x25ab;return db[_0x251868('0xb')][_0x251868('0xe')]({'raw':_0x77b744['options']?_0x77b744[_0x251868('0xa')][_0x251868('0x10')]===undefined?!![]:![]:!![],'where':_0x77b744[_0x251868('0xa')]?_0x77b744[_0x251868('0xa')][_0x251868('0xd')]||null:null,'attributes':_0x77b744['options']?_0x77b744[_0x251868('0xa')][_0x251868('0x2')]||null:null,'limit':_0x77b744[_0x251868('0xa')]?_0x77b744['options']['limit']||null:null,'include':_0x77b744['options']?_0x77b744['options'][_0x251868('0x8')]?_[_0x251868('0x12')](_0x77b744[_0x251868('0xa')][_0x251868('0x8')],function(_0x1eb92b){const _0x45054e=_0x251868;return{'model':db[_0x1eb92b['model']],'as':_0x1eb92b['as'],'attributes':_0x1eb92b[_0x45054e('0x2')],'include':_0x1eb92b['include']?_[_0x45054e('0x12')](_0x1eb92b[_0x45054e('0x8')],function(_0x584aab){const _0x504866=_0x45054e;return{'model':db[_0x584aab[_0x504866('0x13')]],'as':_0x584aab['as'],'attributes':_0x584aab[_0x504866('0x2')],'include':_0x584aab[_0x504866('0x8')]?_['map'](_0x584aab[_0x504866('0x8')],function(_0x21804a){const _0x580f18=_0x504866;return{'model':db[_0x21804a['model']],'as':_0x21804a['as'],'attributes':_0x21804a[_0x580f18('0x2')]};}):[]};}):[]};}):[]:[]})[_0x251868('0x11')](function(_0x168ffd){const _0x5cc3c2=_0x251868;logger[_0x5cc3c2('0x9')](_0x5cc3c2('0x4'),_0x77b744),logger[_0x5cc3c2('0x1')](_0x5cc3c2('0x4'),_0x77b744,JSON[_0x5cc3c2('0x0')](_0x168ffd)),_0x2bb0e5(_0x168ffd);})['catch'](function(_0x23b0a5){const _0x5579fa=_0x251868;logger['error'](_0x5579fa('0x4'),_0x23b0a5[_0x5579fa('0xf')],_0x77b744),_0x359390(_0x38baea['error'](0x1f4,_0x23b0a5[_0x5579fa('0xf')]));});});},exports[_0x354128('0x6')]=function(_0x26a6f7){const _0x5d4e13=this;return new Promise(function(_0x10aab6,_0x1b03e3){const _0x3dfaac=a335_0x25ab;return db[_0x3dfaac('0xb')][_0x3dfaac('0x7')]({'raw':_0x26a6f7[_0x3dfaac('0xa')]?_0x26a6f7[_0x3dfaac('0xa')][_0x3dfaac('0x10')]===undefined?!![]:![]:!![],'where':_0x26a6f7[_0x3dfaac('0xa')]?_0x26a6f7[_0x3dfaac('0xa')]['where']||null:null,'attributes':_0x26a6f7[_0x3dfaac('0xa')]?_0x26a6f7[_0x3dfaac('0xa')][_0x3dfaac('0x2')]||null:null,'include':_0x26a6f7[_0x3dfaac('0xa')]?_0x26a6f7[_0x3dfaac('0xa')][_0x3dfaac('0x8')]?_[_0x3dfaac('0x12')](_0x26a6f7['options']['include'],function(_0x1c76ce){const _0x4b151c=_0x3dfaac;return{'model':db[_0x1c76ce[_0x4b151c('0x13')]],'as':_0x1c76ce['as'],'attributes':_0x1c76ce[_0x4b151c('0x2')],'include':_0x1c76ce['include']?_[_0x4b151c('0x12')](_0x1c76ce[_0x4b151c('0x8')],function(_0x58ea57){const _0x2a45c9=_0x4b151c;return{'model':db[_0x58ea57[_0x2a45c9('0x13')]],'as':_0x58ea57['as'],'attributes':_0x58ea57[_0x2a45c9('0x2')],'include':_0x58ea57[_0x2a45c9('0x8')]?_['map'](_0x58ea57[_0x2a45c9('0x8')],function(_0x3a5dab){const _0x44291c=_0x2a45c9;return{'model':db[_0x3a5dab[_0x44291c('0x13')]],'as':_0x3a5dab['as'],'attributes':_0x3a5dab[_0x44291c('0x2')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x16d500){const _0x4c32a9=_0x3dfaac;logger[_0x4c32a9('0x9')](_0x4c32a9('0x6'),_0x26a6f7),logger['debug'](_0x4c32a9('0x6'),_0x26a6f7,JSON[_0x4c32a9('0x0')](_0x16d500)),_0x10aab6(_0x16d500);})['catch'](function(_0x12bb86){const _0x4bcdea=_0x3dfaac;logger['error'](_0x4bcdea('0x6'),_0x12bb86[_0x4bcdea('0xf')],_0x26a6f7),_0x1b03e3(_0x5d4e13[_0x4bcdea('0x5')](0x1f4,_0x12bb86['message']));});});}; \ No newline at end of file +const a335_0xc326=['debug','stringify','attributes','ShowZendeskAccount','raw','where','model','ZendeskAccount','lodash','include','catch','map','options','then','GetZendeskAccount','findOne','findAll','message','limit','error','../../mysqldb','info'];(function(_0x531290,_0xc3267d){const _0x3b339d=function(_0x38ae21){while(--_0x38ae21){_0x531290['push'](_0x531290['shift']());}};_0x3b339d(++_0xc3267d);}(a335_0xc326,0x196));const a335_0x3b33=function(_0x531290,_0xc3267d){_0x531290=_0x531290-0x0;let _0x3b339d=a335_0xc326[_0x531290];return _0x3b339d;};const _0x2c9177=a335_0x3b33;'use strict';const _=require(_0x2c9177('0x14')),db=require(_0x2c9177('0xa'))['db'],logger=require('../../config/logger')('rpc');exports[_0x2c9177('0x4')]=function(_0x38ae21){const _0x22d5f8=this;return new Promise(function(_0xf7711a,_0x2c52c8){const _0x363eef=a335_0x3b33;return db['ZendeskAccount'][_0x363eef('0x6')]({'raw':_0x38ae21[_0x363eef('0x2')]?_0x38ae21[_0x363eef('0x2')][_0x363eef('0x10')]===undefined?!![]:![]:!![],'where':_0x38ae21['options']?_0x38ae21[_0x363eef('0x2')][_0x363eef('0x11')]||null:null,'attributes':_0x38ae21[_0x363eef('0x2')]?_0x38ae21['options'][_0x363eef('0xe')]||null:null,'limit':_0x38ae21['options']?_0x38ae21[_0x363eef('0x2')][_0x363eef('0x8')]||null:null,'include':_0x38ae21[_0x363eef('0x2')]?_0x38ae21[_0x363eef('0x2')][_0x363eef('0x15')]?_[_0x363eef('0x1')](_0x38ae21['options']['include'],function(_0x27e45e){const _0x5c1ec1=_0x363eef;return{'model':db[_0x27e45e['model']],'as':_0x27e45e['as'],'attributes':_0x27e45e['attributes'],'include':_0x27e45e[_0x5c1ec1('0x15')]?_[_0x5c1ec1('0x1')](_0x27e45e[_0x5c1ec1('0x15')],function(_0x1260b7){const _0x4239e7=_0x5c1ec1;return{'model':db[_0x1260b7[_0x4239e7('0x12')]],'as':_0x1260b7['as'],'attributes':_0x1260b7[_0x4239e7('0xe')],'include':_0x1260b7['include']?_[_0x4239e7('0x1')](_0x1260b7[_0x4239e7('0x15')],function(_0x1088fd){const _0x46093b=_0x4239e7;return{'model':db[_0x1088fd[_0x46093b('0x12')]],'as':_0x1088fd['as'],'attributes':_0x1088fd[_0x46093b('0xe')]};}):[]};}):[]};}):[]:[]})[_0x363eef('0x3')](function(_0x2677aa){const _0x35e500=_0x363eef;logger['info'](_0x35e500('0x4'),_0x38ae21),logger[_0x35e500('0xc')]('GetZendeskAccount',_0x38ae21,JSON['stringify'](_0x2677aa)),_0xf7711a(_0x2677aa);})['catch'](function(_0x25a429){const _0x5eae66=_0x363eef;logger[_0x5eae66('0x9')]('GetZendeskAccount',_0x25a429[_0x5eae66('0x7')],_0x38ae21),_0x2c52c8(_0x22d5f8[_0x5eae66('0x9')](0x1f4,_0x25a429['message']));});});},exports[_0x2c9177('0xf')]=function(_0x43983a){const _0x117826=this;return new Promise(function(_0x9bc756,_0x206b60){const _0x9e821=a335_0x3b33;return db[_0x9e821('0x13')][_0x9e821('0x5')]({'raw':_0x43983a[_0x9e821('0x2')]?_0x43983a['options'][_0x9e821('0x10')]===undefined?!![]:![]:!![],'where':_0x43983a['options']?_0x43983a[_0x9e821('0x2')]['where']||null:null,'attributes':_0x43983a[_0x9e821('0x2')]?_0x43983a[_0x9e821('0x2')][_0x9e821('0xe')]||null:null,'include':_0x43983a[_0x9e821('0x2')]?_0x43983a[_0x9e821('0x2')]['include']?_['map'](_0x43983a['options'][_0x9e821('0x15')],function(_0x51e66a){const _0x19e830=_0x9e821;return{'model':db[_0x51e66a[_0x19e830('0x12')]],'as':_0x51e66a['as'],'attributes':_0x51e66a['attributes'],'include':_0x51e66a[_0x19e830('0x15')]?_[_0x19e830('0x1')](_0x51e66a[_0x19e830('0x15')],function(_0x370537){const _0x522871=_0x19e830;return{'model':db[_0x370537['model']],'as':_0x370537['as'],'attributes':_0x370537[_0x522871('0xe')],'include':_0x370537[_0x522871('0x15')]?_[_0x522871('0x1')](_0x370537[_0x522871('0x15')],function(_0x13759b){const _0x57b023=_0x522871;return{'model':db[_0x13759b['model']],'as':_0x13759b['as'],'attributes':_0x13759b[_0x57b023('0xe')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3967a2){const _0x56da51=_0x9e821;logger[_0x56da51('0xb')](_0x56da51('0xf'),_0x43983a),logger['debug']('ShowZendeskAccount',_0x43983a,JSON[_0x56da51('0xd')](_0x3967a2)),_0x9bc756(_0x3967a2);})[_0x9e821('0x0')](function(_0x35e981){const _0x3a2175=_0x9e821;logger[_0x3a2175('0x9')](_0x3a2175('0xf'),_0x35e981[_0x3a2175('0x7')],_0x43983a),_0x206b60(_0x117826['error'](0x1f4,_0x35e981[_0x3a2175('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/index.js b/server/api/intZendeskConfiguration/index.js index c6d54fa..e42acd8 100644 --- a/server/api/intZendeskConfiguration/index.js +++ b/server/api/intZendeskConfiguration/index.js @@ -1 +1 @@ -const a336_0x596f=['/:id/subjects','express','put','isAuthenticated','index','../../components/auth/service','Router','show','post','create','delete','getSubjects','getDescriptions','/:id','destroy','/:id/fields','/:id/tags','get','/:id/descriptions','exports','update','getTags'];(function(_0xb5108b,_0x596f5e){const _0x4740f6=function(_0x3ceb91){while(--_0x3ceb91){_0xb5108b['push'](_0xb5108b['shift']());}};_0x4740f6(++_0x596f5e);}(a336_0x596f,0x1ec));const a336_0x4740=function(_0xb5108b,_0x596f5e){_0xb5108b=_0xb5108b-0x0;let _0x4740f6=a336_0x596f[_0xb5108b];return _0x4740f6;};const _0x17bf60=a336_0x4740;'use strict';const express=require(_0x17bf60('0xf')),router=express[_0x17bf60('0x14')](),auth=require(_0x17bf60('0x13')),controller=require('./intZendeskConfiguration.controller');router[_0x17bf60('0x9')]('/',auth['isAuthenticated'](),controller[_0x17bf60('0x12')]),router[_0x17bf60('0x9')](_0x17bf60('0x5'),auth[_0x17bf60('0x11')](),controller[_0x17bf60('0x15')]),router['get'](_0x17bf60('0x7'),auth[_0x17bf60('0x11')](),controller['getFields']),router[_0x17bf60('0x9')](_0x17bf60('0xe'),auth['isAuthenticated'](),controller[_0x17bf60('0x3')]),router['get'](_0x17bf60('0xa'),auth['isAuthenticated'](),controller[_0x17bf60('0x4')]),router[_0x17bf60('0x9')]('/:id/tags',auth['isAuthenticated'](),controller[_0x17bf60('0xd')]),router[_0x17bf60('0x0')]('/',auth[_0x17bf60('0x11')](),controller[_0x17bf60('0x1')]),router[_0x17bf60('0x0')](_0x17bf60('0x8'),auth[_0x17bf60('0x11')](),controller['setTags']),router[_0x17bf60('0x10')](_0x17bf60('0x5'),auth[_0x17bf60('0x11')](),controller[_0x17bf60('0xc')]),router[_0x17bf60('0x2')]('/:id',auth[_0x17bf60('0x11')](),controller[_0x17bf60('0x6')]),module[_0x17bf60('0xb')]=router; \ No newline at end of file +const a336_0x77af=['/:id/descriptions','getSubjects','./intZendeskConfiguration.controller','/:id/tags','getFields','express','../../components/auth/service','get','Router','put','exports','isAuthenticated','/:id','create','delete','setTags','show'];(function(_0x3aaea4,_0x77afb7){const _0x1048ed=function(_0x44a790){while(--_0x44a790){_0x3aaea4['push'](_0x3aaea4['shift']());}};_0x1048ed(++_0x77afb7);}(a336_0x77af,0xa9));const a336_0x1048=function(_0x3aaea4,_0x77afb7){_0x3aaea4=_0x3aaea4-0x0;let _0x1048ed=a336_0x77af[_0x3aaea4];return _0x1048ed;};const _0x3ba10a=a336_0x1048;'use strict';const express=require(_0x3ba10a('0x6')),router=express[_0x3ba10a('0x9')](),auth=require(_0x3ba10a('0x7')),controller=require(_0x3ba10a('0x3'));router['get']('/',auth[_0x3ba10a('0xc')](),controller['index']),router[_0x3ba10a('0x8')](_0x3ba10a('0xd'),auth[_0x3ba10a('0xc')](),controller[_0x3ba10a('0x0')]),router[_0x3ba10a('0x8')]('/:id/fields',auth[_0x3ba10a('0xc')](),controller[_0x3ba10a('0x5')]),router[_0x3ba10a('0x8')]('/:id/subjects',auth[_0x3ba10a('0xc')](),controller[_0x3ba10a('0x2')]),router[_0x3ba10a('0x8')](_0x3ba10a('0x1'),auth['isAuthenticated'](),controller['getDescriptions']),router[_0x3ba10a('0x8')](_0x3ba10a('0x4'),auth['isAuthenticated'](),controller['getTags']),router['post']('/',auth['isAuthenticated'](),controller[_0x3ba10a('0xe')]),router['post'](_0x3ba10a('0x4'),auth[_0x3ba10a('0xc')](),controller[_0x3ba10a('0x10')]),router[_0x3ba10a('0xa')](_0x3ba10a('0xd'),auth[_0x3ba10a('0xc')](),controller['update']),router[_0x3ba10a('0xf')](_0x3ba10a('0xd'),auth[_0x3ba10a('0xc')](),controller['destroy']),module[_0x3ba10a('0xb')]=router; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js index f53d025..f4b9f15 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.attributes.js @@ -1 +1 @@ -const a337_0x45ef=['sequelize','exports','STRING'];(function(_0x401884,_0x45ef04){const _0x49b114=function(_0x231a8b){while(--_0x231a8b){_0x401884['push'](_0x401884['shift']());}};_0x49b114(++_0x45ef04);}(a337_0x45ef,0xad));const a337_0x49b1=function(_0x401884,_0x45ef04){_0x401884=_0x401884-0x0;let _0x49b114=a337_0x45ef[_0x401884];return _0x49b114;};const _0x1fe593=a337_0x49b1;'use strict';const Sequelize=require(_0x1fe593('0x1'));module[_0x1fe593('0x2')]={'name':{'type':Sequelize[_0x1fe593('0x0')]},'description':{'type':Sequelize[_0x1fe593('0x0')]}}; \ No newline at end of file +const a337_0x4193=['STRING','exports','sequelize'];(function(_0x45ffb1,_0x41933f){const _0x299321=function(_0x3d91c8){while(--_0x3d91c8){_0x45ffb1['push'](_0x45ffb1['shift']());}};_0x299321(++_0x41933f);}(a337_0x4193,0x91));const a337_0x2993=function(_0x45ffb1,_0x41933f){_0x45ffb1=_0x45ffb1-0x0;let _0x299321=a337_0x4193[_0x45ffb1];return _0x299321;};const _0x43cde0=a337_0x2993;'use strict';const Sequelize=require(_0x43cde0('0x1'));module[_0x43cde0('0x0')]={'name':{'type':Sequelize[_0x43cde0('0x2')]},'description':{'type':Sequelize[_0x43cde0('0x2')]}}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js index 0ac1c00..101a234 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.controller.js @@ -1 +1 @@ -const a338_0x3249=['send','create','keys','map','destroy','../../mysqldb','stack','nolimit','model','sequelize','update','api','getFields','where','getDescriptions','filters','include','findOne','getTags','json','getSubjects','then','catch','params','fieldName','options','ZendeskConfiguration','rawAttributes','ids','intersection','Tag','key','count','attributes','ZendeskField','offset','body','set','name','merge','order','error','includeAll','Content-Range','../../config/logger','length','lodash','limit','sort','status','undefined','query','fields','type','filter','pick','like','sendStatus','setTags'];(function(_0x262dc0,_0x324924){const _0x117894=function(_0x5195a6){while(--_0x5195a6){_0x262dc0['push'](_0x262dc0['shift']());}};_0x117894(++_0x324924);}(a338_0x3249,0x190));const a338_0x1178=function(_0x262dc0,_0x324924){_0x262dc0=_0x262dc0-0x0;let _0x117894=a338_0x3249[_0x262dc0];return _0x117894;};const _0x2506cb=a338_0x1178;'use strict';const _=require(_0x2506cb('0x0')),qs=require('../../components/parsers/qs'),logger=require(_0x2506cb('0x39'))(_0x2506cb('0x18')),db=require(_0x2506cb('0x12'))['db'],{Op}=require(_0x2506cb('0x16'));function respondWithResult(_0x5195a6,_0x3fb2e6){return _0x3fb2e6=_0x3fb2e6||0xc8,function(_0x4fa2c7){const _0x47ae71=a338_0x1178;if(_0x4fa2c7)return _0x5195a6[_0x47ae71('0x3')](_0x3fb2e6)[_0x47ae71('0x20')](_0x4fa2c7);};}function respondWithFilteredResult(_0x10f770,_0x53d157){return function(_0xbf6e9d){const _0x4fac49=a338_0x1178;if(_0xbf6e9d){const _0x1e61b3=_0xbf6e9d[_0x4fac49('0x2d')],_0x5a1d82=_0x53d157[_0x4fac49('0x30')];let _0x255ec=_0x53d157[_0x4fac49('0x30')]+_0x53d157[_0x4fac49('0x1')],_0xfac36c;return _0x255ec>=_0x1e61b3?(_0x255ec=_0x1e61b3,_0xfac36c=0xc8):_0xfac36c=0xce,_0x10f770['status'](_0xfac36c),_0x10f770[_0x4fac49('0x32')](_0x4fac49('0x38'),_0x5a1d82+'-'+_0x255ec+'/'+_0x1e61b3)[_0x4fac49('0x20')](_0xbf6e9d);}return null;};}function saveUpdates(_0x2a1b4e){return function(_0x180dc7){const _0x57c557=a338_0x1178;if(_0x180dc7)return _0x180dc7[_0x57c557('0x17')](_0x2a1b4e)['then'](function(_0x67efb1){return _0x67efb1;});return null;};}function removeEntity(_0x3dc491){return function(_0x3104a4){const _0x468746=a338_0x1178;if(_0x3104a4)return _0x3104a4['destroy']()[_0x468746('0x22')](function(){const _0x4489f1=_0x468746;_0x3dc491[_0x4489f1('0x3')](0xcc)['end']();});};}function handleEntityNotFound(_0x3d80a4){return function(_0x5ea672){const _0x335c76=a338_0x1178;return!_0x5ea672&&_0x3d80a4[_0x335c76('0xb')](0x194),_0x5ea672;};}function handleError(_0x5ab876,_0x1b3a81){return _0x1b3a81=_0x1b3a81||0x1f4,function(_0x2f0b7f){const _0x57b304=a338_0x1178;logger[_0x57b304('0x36')](_0x2f0b7f[_0x57b304('0x13')]),_0x2f0b7f[_0x57b304('0x33')]&&delete _0x2f0b7f[_0x57b304('0x33')],_0x5ab876['status'](_0x1b3a81)[_0x57b304('0xd')](_0x2f0b7f);};}exports['index']=function(_0x334556,_0x5aad6a){const _0x134012=_0x2506cb;let _0x22d9d1={};const _0x96016c={},_0x1f8249={'count':0x0,'rows':[]},_0x240e7e=_[_0x134012('0x10')](db[_0x134012('0x27')][_0x134012('0x28')],function(_0x5cc19c){const _0x8506a5=_0x134012;return{'name':_0x5cc19c[_0x8506a5('0x25')],'type':_0x5cc19c[_0x8506a5('0x7')][_0x8506a5('0x2c')]};});_0x96016c[_0x134012('0x15')]=_['map'](_0x240e7e,_0x134012('0x33')),_0x96016c[_0x134012('0x5')]=_[_0x134012('0xf')](_0x334556[_0x134012('0x5')]),_0x96016c[_0x134012('0x1c')]=_[_0x134012('0x2a')](_0x96016c[_0x134012('0x15')],_0x96016c[_0x134012('0x5')]),_0x22d9d1['attributes']=_[_0x134012('0x2a')](_0x96016c[_0x134012('0x15')],qs[_0x134012('0x6')](_0x334556[_0x134012('0x5')]['fields'])),_0x22d9d1[_0x134012('0x2e')]=_0x22d9d1[_0x134012('0x2e')][_0x134012('0x3a')]?_0x22d9d1[_0x134012('0x2e')]:_0x96016c['model'];typeof _0x334556['query']['nolimit']==='undefined'&&(_0x22d9d1[_0x134012('0x1')]=qs['limit'](_0x334556['query'][_0x134012('0x1')]),_0x22d9d1[_0x134012('0x30')]=qs[_0x134012('0x30')](_0x334556[_0x134012('0x5')]['offset']));_0x22d9d1['order']=qs[_0x134012('0x2')](_0x334556['query'][_0x134012('0x2')]),_0x22d9d1[_0x134012('0x1a')]=qs[_0x134012('0x1c')](_[_0x134012('0x9')](_0x334556['query'],_0x96016c['filters']),_0x240e7e);_0x334556[_0x134012('0x5')][_0x134012('0x8')]&&(_0x22d9d1[_0x134012('0x1a')]=_[_0x134012('0x34')](_0x22d9d1[_0x134012('0x1a')],{[Op['or']]:_[_0x134012('0x10')](_0x240e7e,function(_0x57a4f1){const _0x3d3591=_0x134012;if(_0x57a4f1[_0x3d3591('0x7')]!=='VIRTUAL'){const _0x4f7b7a={};return _0x4f7b7a[_0x57a4f1[_0x3d3591('0x33')]]={[Op[_0x3d3591('0xa')]]:'%'+_0x334556['query']['filter']+'%'},_0x4f7b7a;}})}));_0x22d9d1=_[_0x134012('0x34')]({},_0x22d9d1,_0x334556['options']);const _0x148d70={'where':_0x22d9d1[_0x134012('0x1a')]};return db[_0x134012('0x27')][_0x134012('0x2d')](_0x148d70)['then'](function(_0x77bfd4){const _0x3867d5=_0x134012;return _0x1f8249[_0x3867d5('0x2d')]=_0x77bfd4,_0x334556[_0x3867d5('0x5')][_0x3867d5('0x37')]&&(_0x22d9d1[_0x3867d5('0x1d')]=[{'all':!![]}]),db[_0x3867d5('0x27')]['findAll'](_0x22d9d1);})[_0x134012('0x22')](function(_0x3280cc){return _0x1f8249['rows']=_0x3280cc,_0x1f8249;})[_0x134012('0x22')](respondWithFilteredResult(_0x5aad6a,_0x22d9d1))[_0x134012('0x23')](handleError(_0x5aad6a,null));},exports['show']=function(_0x396929,_0x383205){const _0x403f94=_0x2506cb;let _0x2f6e0c={'raw':![],'where':{'id':_0x396929[_0x403f94('0x24')]['id']}};const _0x1040d={};return _0x1040d[_0x403f94('0x15')]=_[_0x403f94('0xf')](db[_0x403f94('0x27')][_0x403f94('0x28')]),_0x1040d[_0x403f94('0x5')]=_['keys'](_0x396929[_0x403f94('0x5')]),_0x1040d['filters']=_[_0x403f94('0x2a')](_0x1040d[_0x403f94('0x15')],_0x1040d[_0x403f94('0x5')]),_0x2f6e0c[_0x403f94('0x2e')]=_['intersection'](_0x1040d[_0x403f94('0x15')],qs['fields'](_0x396929[_0x403f94('0x5')][_0x403f94('0x6')])),_0x2f6e0c[_0x403f94('0x2e')]=_0x2f6e0c[_0x403f94('0x2e')][_0x403f94('0x3a')]?_0x2f6e0c['attributes']:_0x1040d[_0x403f94('0x15')],_0x396929[_0x403f94('0x5')][_0x403f94('0x37')]&&(_0x2f6e0c[_0x403f94('0x1d')]=[{'all':!![]}]),_0x2f6e0c=_[_0x403f94('0x34')]({},_0x2f6e0c,_0x396929[_0x403f94('0x26')]),db[_0x403f94('0x27')][_0x403f94('0x1e')](_0x2f6e0c)[_0x403f94('0x22')](handleEntityNotFound(_0x383205,null))[_0x403f94('0x22')](respondWithResult(_0x383205,null))[_0x403f94('0x23')](handleError(_0x383205,null));},exports[_0x2506cb('0xe')]=function(_0x2f2fe6,_0x16bcb6){const _0x13dbc8=_0x2506cb;return db[_0x13dbc8('0x27')]['create'](_0x2f2fe6[_0x13dbc8('0x31')],{})[_0x13dbc8('0x22')](respondWithResult(_0x16bcb6,0xc9))[_0x13dbc8('0x23')](handleError(_0x16bcb6,null));},exports['update']=function(_0xdfc346,_0x2655a3){const _0x1fc2b3=_0x2506cb;return _0xdfc346[_0x1fc2b3('0x31')]['id']&&delete _0xdfc346[_0x1fc2b3('0x31')]['id'],db[_0x1fc2b3('0x27')]['findOne']({'where':{'id':_0xdfc346[_0x1fc2b3('0x24')]['id']}})[_0x1fc2b3('0x22')](handleEntityNotFound(_0x2655a3,null))[_0x1fc2b3('0x22')](saveUpdates(_0xdfc346['body'],null))['then'](respondWithResult(_0x2655a3,null))['catch'](handleError(_0x2655a3,null));},exports[_0x2506cb('0x11')]=function(_0x447362,_0x2426d0){const _0xd6154d=_0x2506cb;return db['ZendeskConfiguration'][_0xd6154d('0x1e')]({'where':{'id':_0x447362[_0xd6154d('0x24')]['id']}})[_0xd6154d('0x22')](handleEntityNotFound(_0x2426d0,null))[_0xd6154d('0x22')](removeEntity(_0x2426d0,null))[_0xd6154d('0x23')](handleError(_0x2426d0,null));},exports[_0x2506cb('0x19')]=function(_0x3e8dc4,_0x53e869){const _0x2c5362=_0x2506cb;let _0xe9fe60={};const _0x41e0ea={};let _0x4bef0a,_0x337ec4;return db[_0x2c5362('0x27')][_0x2c5362('0x1e')]({'where':{'id':_0x3e8dc4[_0x2c5362('0x24')]['id']}})['then'](handleEntityNotFound(_0x53e869,null))[_0x2c5362('0x22')](function(_0x1dac91){const _0x4432c7=_0x2c5362;if(_0x1dac91)return _0x4bef0a=_0x1dac91,_0x41e0ea[_0x4432c7('0x15')]=_['keys'](db[_0x4432c7('0x2f')][_0x4432c7('0x28')]),_0x41e0ea[_0x4432c7('0x5')]=_['keys'](_0x3e8dc4['query']),_0x41e0ea[_0x4432c7('0x1c')]=_[_0x4432c7('0x2a')](_0x41e0ea[_0x4432c7('0x15')],_0x41e0ea['query']),_0xe9fe60[_0x4432c7('0x2e')]=_['intersection'](_0x41e0ea[_0x4432c7('0x15')],qs[_0x4432c7('0x6')](_0x3e8dc4[_0x4432c7('0x5')]['fields'])),_0xe9fe60['attributes']=_0xe9fe60[_0x4432c7('0x2e')]['length']?_0xe9fe60[_0x4432c7('0x2e')]:_0x41e0ea['model'],_0xe9fe60[_0x4432c7('0x35')]=qs[_0x4432c7('0x2')](_0x3e8dc4[_0x4432c7('0x5')]['sort']),_0xe9fe60['where']=qs[_0x4432c7('0x1c')](_[_0x4432c7('0x9')](_0x3e8dc4['query'],_0x41e0ea[_0x4432c7('0x1c')])),_0x3e8dc4[_0x4432c7('0x5')][_0x4432c7('0x8')]&&(_0xe9fe60[_0x4432c7('0x1a')]=_[_0x4432c7('0x34')](_0xe9fe60[_0x4432c7('0x1a')],{[Op['or']]:_[_0x4432c7('0x10')](_0xe9fe60[_0x4432c7('0x2e')],function(_0x181ddd){const _0x443534=_0x4432c7,_0x226094={};return _0x226094[_0x181ddd]={[Op[_0x443534('0xa')]]:'%'+_0x3e8dc4[_0x443534('0x5')][_0x443534('0x8')]+'%'},_0x226094;})})),_0xe9fe60=_[_0x4432c7('0x34')]({},_0xe9fe60,_0x3e8dc4[_0x4432c7('0x26')]),_0x4bef0a[_0x4432c7('0x19')](_0xe9fe60);})[_0x2c5362('0x22')](function(_0x176a7a){const _0x474f53=_0x2c5362;if(_0x176a7a)return _0x337ec4=_0x176a7a[_0x474f53('0x3a')],typeof _0x3e8dc4[_0x474f53('0x5')][_0x474f53('0x14')]===_0x474f53('0x4')&&(_0xe9fe60[_0x474f53('0x1')]=qs[_0x474f53('0x1')](_0x3e8dc4[_0x474f53('0x5')][_0x474f53('0x1')]),_0xe9fe60[_0x474f53('0x30')]=qs[_0x474f53('0x30')](_0x3e8dc4[_0x474f53('0x5')][_0x474f53('0x30')])),_0x4bef0a[_0x474f53('0x19')](_0xe9fe60);})[_0x2c5362('0x22')](function(_0x310ded){if(_0x310ded)return _0x310ded?{'count':_0x337ec4,'rows':_0x310ded}:null;})[_0x2c5362('0x22')](respondWithResult(_0x53e869,null))['catch'](handleError(_0x53e869,null));},exports[_0x2506cb('0x21')]=function(_0x4da51d,_0x4968d3){const _0x306643=_0x2506cb;let _0x175f98={};const _0x5d419d={};let _0x189189,_0x130d33;return db[_0x306643('0x27')][_0x306643('0x1e')]({'where':{'id':_0x4da51d['params']['id']}})[_0x306643('0x22')](handleEntityNotFound(_0x4968d3,null))[_0x306643('0x22')](function(_0x311314){const _0x3fed2c=_0x306643;if(_0x311314)return _0x189189=_0x311314,_0x5d419d['model']=_[_0x3fed2c('0xf')](db[_0x3fed2c('0x2f')][_0x3fed2c('0x28')]),_0x5d419d[_0x3fed2c('0x5')]=_[_0x3fed2c('0xf')](_0x4da51d[_0x3fed2c('0x5')]),_0x5d419d[_0x3fed2c('0x1c')]=_[_0x3fed2c('0x2a')](_0x5d419d[_0x3fed2c('0x15')],_0x5d419d[_0x3fed2c('0x5')]),_0x175f98[_0x3fed2c('0x2e')]=_[_0x3fed2c('0x2a')](_0x5d419d[_0x3fed2c('0x15')],qs[_0x3fed2c('0x6')](_0x4da51d['query'][_0x3fed2c('0x6')])),_0x175f98[_0x3fed2c('0x2e')]=_0x175f98[_0x3fed2c('0x2e')]['length']?_0x175f98[_0x3fed2c('0x2e')]:_0x5d419d[_0x3fed2c('0x15')],_0x175f98[_0x3fed2c('0x35')]=qs[_0x3fed2c('0x2')](_0x4da51d[_0x3fed2c('0x5')][_0x3fed2c('0x2')]),_0x175f98[_0x3fed2c('0x1a')]=qs[_0x3fed2c('0x1c')](_[_0x3fed2c('0x9')](_0x4da51d[_0x3fed2c('0x5')],_0x5d419d[_0x3fed2c('0x1c')])),_0x4da51d[_0x3fed2c('0x5')][_0x3fed2c('0x8')]&&(_0x175f98[_0x3fed2c('0x1a')]=_[_0x3fed2c('0x34')](_0x175f98[_0x3fed2c('0x1a')],{[Op['or']]:_[_0x3fed2c('0x10')](_0x175f98['attributes'],function(_0x3e1dfe){const _0xf7ff88=_0x3fed2c,_0x212a41={};return _0x212a41[_0x3e1dfe]={[Op[_0xf7ff88('0xa')]]:'%'+_0x4da51d[_0xf7ff88('0x5')][_0xf7ff88('0x8')]+'%'},_0x212a41;})})),_0x175f98=_[_0x3fed2c('0x34')]({},_0x175f98,_0x4da51d['options']),_0x189189[_0x3fed2c('0x21')](_0x175f98);})[_0x306643('0x22')](function(_0x299f1c){const _0x360a05=_0x306643;if(_0x299f1c)return _0x130d33=_0x299f1c['length'],typeof _0x4da51d[_0x360a05('0x5')][_0x360a05('0x14')]===_0x360a05('0x4')&&(_0x175f98[_0x360a05('0x1')]=qs['limit'](_0x4da51d['query'][_0x360a05('0x1')]),_0x175f98[_0x360a05('0x30')]=qs[_0x360a05('0x30')](_0x4da51d[_0x360a05('0x5')]['offset'])),_0x189189[_0x360a05('0x21')](_0x175f98);})[_0x306643('0x22')](function(_0x9e502f){if(_0x9e502f)return _0x9e502f?{'count':_0x130d33,'rows':_0x9e502f}:null;})[_0x306643('0x22')](respondWithResult(_0x4968d3,null))['catch'](handleError(_0x4968d3,null));},exports[_0x2506cb('0x1b')]=function(_0x3281a4,_0x4e8d57){const _0x2430f0=_0x2506cb;let _0x10a0ee={};const _0x30861e={};let _0x1287f4,_0x5bb672;return db[_0x2430f0('0x27')][_0x2430f0('0x1e')]({'where':{'id':_0x3281a4[_0x2430f0('0x24')]['id']}})[_0x2430f0('0x22')](handleEntityNotFound(_0x4e8d57,null))[_0x2430f0('0x22')](function(_0x258cca){const _0x128c1a=_0x2430f0;if(_0x258cca)return _0x1287f4=_0x258cca,_0x30861e[_0x128c1a('0x15')]=_[_0x128c1a('0xf')](db['ZendeskField'][_0x128c1a('0x28')]),_0x30861e['query']=_[_0x128c1a('0xf')](_0x3281a4[_0x128c1a('0x5')]),_0x30861e['filters']=_[_0x128c1a('0x2a')](_0x30861e[_0x128c1a('0x15')],_0x30861e['query']),_0x10a0ee[_0x128c1a('0x2e')]=_[_0x128c1a('0x2a')](_0x30861e[_0x128c1a('0x15')],qs[_0x128c1a('0x6')](_0x3281a4[_0x128c1a('0x5')][_0x128c1a('0x6')])),_0x10a0ee[_0x128c1a('0x2e')]=_0x10a0ee[_0x128c1a('0x2e')][_0x128c1a('0x3a')]?_0x10a0ee[_0x128c1a('0x2e')]:_0x30861e[_0x128c1a('0x15')],_0x10a0ee['order']=qs['sort'](_0x3281a4['query']['sort']),_0x10a0ee['where']=qs[_0x128c1a('0x1c')](_['pick'](_0x3281a4[_0x128c1a('0x5')],_0x30861e[_0x128c1a('0x1c')])),_0x3281a4[_0x128c1a('0x5')][_0x128c1a('0x8')]&&(_0x10a0ee[_0x128c1a('0x1a')]=_[_0x128c1a('0x34')](_0x10a0ee[_0x128c1a('0x1a')],{[Op['or']]:_[_0x128c1a('0x10')](_0x10a0ee[_0x128c1a('0x2e')],function(_0xe81138){const _0x1d5220=_0x128c1a,_0x599a20={};return _0x599a20[_0xe81138]={[Op[_0x1d5220('0xa')]]:'%'+_0x3281a4[_0x1d5220('0x5')]['filter']+'%'},_0x599a20;})})),_0x10a0ee=_['merge']({},_0x10a0ee,_0x3281a4[_0x128c1a('0x26')]),_0x1287f4[_0x128c1a('0x1b')](_0x10a0ee);})[_0x2430f0('0x22')](function(_0x24c7b5){const _0x460c29=_0x2430f0;if(_0x24c7b5)return _0x5bb672=_0x24c7b5[_0x460c29('0x3a')],typeof _0x3281a4[_0x460c29('0x5')][_0x460c29('0x14')]===_0x460c29('0x4')&&(_0x10a0ee[_0x460c29('0x1')]=qs[_0x460c29('0x1')](_0x3281a4[_0x460c29('0x5')]['limit']),_0x10a0ee[_0x460c29('0x30')]=qs[_0x460c29('0x30')](_0x3281a4['query']['offset'])),_0x1287f4[_0x460c29('0x1b')](_0x10a0ee);})['then'](function(_0x1a4505){if(_0x1a4505)return _0x1a4505?{'count':_0x5bb672,'rows':_0x1a4505}:null;})[_0x2430f0('0x22')](respondWithResult(_0x4e8d57,null))[_0x2430f0('0x23')](handleError(_0x4e8d57,null));},exports[_0x2506cb('0x1f')]=function(_0x4efe69,_0x56c7bb){const _0x21724d=_0x2506cb;let _0xd7c74f={};const _0x5a1f8d={};let _0x199e04,_0x2fedf9;return db[_0x21724d('0x27')][_0x21724d('0x1e')]({'where':{'id':_0x4efe69[_0x21724d('0x24')]['id']}})[_0x21724d('0x22')](handleEntityNotFound(_0x56c7bb,null))['then'](function(_0x576941){const _0xdb62f1=_0x21724d;if(_0x576941)return _0x199e04=_0x576941,_0x5a1f8d['model']=_[_0xdb62f1('0xf')](db[_0xdb62f1('0x2b')][_0xdb62f1('0x28')]),_0x5a1f8d[_0xdb62f1('0x5')]=_['keys'](_0x4efe69[_0xdb62f1('0x5')]),_0x5a1f8d[_0xdb62f1('0x1c')]=_[_0xdb62f1('0x2a')](_0x5a1f8d['model'],_0x5a1f8d[_0xdb62f1('0x5')]),_0xd7c74f['attributes']=_['intersection'](_0x5a1f8d['model'],qs[_0xdb62f1('0x6')](_0x4efe69[_0xdb62f1('0x5')]['fields'])),_0xd7c74f[_0xdb62f1('0x2e')]=_0xd7c74f[_0xdb62f1('0x2e')][_0xdb62f1('0x3a')]?_0xd7c74f['attributes']:_0x5a1f8d[_0xdb62f1('0x15')],_0xd7c74f[_0xdb62f1('0x35')]=qs[_0xdb62f1('0x2')](_0x4efe69['query'][_0xdb62f1('0x2')]),_0xd7c74f[_0xdb62f1('0x1a')]=qs['filters'](_[_0xdb62f1('0x9')](_0x4efe69[_0xdb62f1('0x5')],_0x5a1f8d['filters'])),_0x4efe69[_0xdb62f1('0x5')][_0xdb62f1('0x8')]&&(_0xd7c74f[_0xdb62f1('0x1a')]=_[_0xdb62f1('0x34')](_0xd7c74f[_0xdb62f1('0x1a')],{[Op['or']]:_[_0xdb62f1('0x10')](_0xd7c74f[_0xdb62f1('0x2e')],function(_0x14c420){const _0x5e8dd0=_0xdb62f1,_0x8c9758={};return _0x8c9758[_0x14c420]={[Op[_0x5e8dd0('0xa')]]:'%'+_0x4efe69[_0x5e8dd0('0x5')][_0x5e8dd0('0x8')]+'%'},_0x8c9758;})})),_0xd7c74f=_[_0xdb62f1('0x34')]({},_0xd7c74f,_0x4efe69['options']),_0x199e04[_0xdb62f1('0x1f')](_0xd7c74f);})['then'](function(_0x174338){const _0x5c045e=_0x21724d;if(_0x174338)return _0x2fedf9=_0x174338[_0x5c045e('0x3a')],typeof _0x4efe69['query'][_0x5c045e('0x14')]===_0x5c045e('0x4')&&(_0xd7c74f['limit']=qs[_0x5c045e('0x1')](_0x4efe69[_0x5c045e('0x5')][_0x5c045e('0x1')]),_0xd7c74f[_0x5c045e('0x30')]=qs[_0x5c045e('0x30')](_0x4efe69[_0x5c045e('0x5')][_0x5c045e('0x30')])),_0x199e04['getTags'](_0xd7c74f);})[_0x21724d('0x22')](function(_0xc74eac){if(_0xc74eac)return _0xc74eac?{'count':_0x2fedf9,'rows':_0xc74eac}:null;})['then'](respondWithResult(_0x56c7bb,null))[_0x21724d('0x23')](handleError(_0x56c7bb,null));},exports[_0x2506cb('0xc')]=function(_0x929d24,_0xf01cad){const _0xbc66c9=_0x2506cb;return _0x929d24[_0xbc66c9('0x31')]['id']&&delete _0x929d24[_0xbc66c9('0x31')]['id'],db[_0xbc66c9('0x27')][_0xbc66c9('0x1e')]({'where':{'id':_0x929d24[_0xbc66c9('0x24')]['id']}})[_0xbc66c9('0x22')](handleEntityNotFound(_0xf01cad,null))[_0xbc66c9('0x22')](function(_0x4c2784){const _0x596ef4=_0xbc66c9;if(_0x4c2784)return _0x4c2784['setTags'](_0x929d24['body'][_0x596ef4('0x29')]||[]);return null;})[_0xbc66c9('0x22')](respondWithResult(_0xf01cad,null))['catch'](handleError(_0xf01cad,null));}; \ No newline at end of file +const a338_0x1282=['like','sort','stack','pick','model','getSubjects','fields','type','findAll','order','end','count','catch','map','ZendeskConfiguration','lodash','rows','error','index','rawAttributes','../../config/logger','getFields','options','send','query','api','Content-Range','update','sendStatus','Tag','key','../../components/parsers/qs','getTags','name','undefined','params','body','include','attributes','create','ZendeskField','../../mysqldb','merge','limit','then','length','sequelize','VIRTUAL','filter','filters','destroy','offset','setTags','where','keys','findOne','nolimit','json','status','intersection','getDescriptions'];(function(_0x5781dd,_0x12821e){const _0x463b52=function(_0x2d1d45){while(--_0x2d1d45){_0x5781dd['push'](_0x5781dd['shift']());}};_0x463b52(++_0x12821e);}(a338_0x1282,0x101));const a338_0x463b=function(_0x5781dd,_0x12821e){_0x5781dd=_0x5781dd-0x0;let _0x463b52=a338_0x1282[_0x5781dd];return _0x463b52;};const _0x30fdc5=a338_0x463b;'use strict';const _=require(_0x30fdc5('0x2')),qs=require(_0x30fdc5('0x12')),logger=require(_0x30fdc5('0x7'))(_0x30fdc5('0xc')),db=require(_0x30fdc5('0x1c'))['db'],{Op}=require(_0x30fdc5('0x21'));function respondWithResult(_0x2d1d45,_0x2ebfdf){return _0x2ebfdf=_0x2ebfdf||0xc8,function(_0x2f373){if(_0x2f373)return _0x2d1d45['status'](_0x2ebfdf)['json'](_0x2f373);};}function respondWithFilteredResult(_0x54af8c,_0x36937c){return function(_0x5cf294){const _0x379a79=a338_0x463b;if(_0x5cf294){const _0x40ff87=_0x5cf294[_0x379a79('0x3b')],_0x319859=_0x36937c[_0x379a79('0x26')];let _0x269b00=_0x36937c[_0x379a79('0x26')]+_0x36937c[_0x379a79('0x1e')],_0x5c5b4f;return _0x269b00>=_0x40ff87?(_0x269b00=_0x40ff87,_0x5c5b4f=0xc8):_0x5c5b4f=0xce,_0x54af8c[_0x379a79('0x2d')](_0x5c5b4f),_0x54af8c['set'](_0x379a79('0xd'),_0x319859+'-'+_0x269b00+'/'+_0x40ff87)[_0x379a79('0x2c')](_0x5cf294);}return null;};}function saveUpdates(_0x4563a8){return function(_0x2ae1a6){const _0x458097=a338_0x463b;if(_0x2ae1a6)return _0x2ae1a6['update'](_0x4563a8)[_0x458097('0x1f')](function(_0x239b88){return _0x239b88;});return null;};}function removeEntity(_0x3a4684){return function(_0x47f415){const _0x23247e=a338_0x463b;if(_0x47f415)return _0x47f415[_0x23247e('0x25')]()['then'](function(){const _0xf28dbc=_0x23247e;_0x3a4684['status'](0xcc)[_0xf28dbc('0x3a')]();});};}function handleEntityNotFound(_0x4c81e6){return function(_0x3ab2fa){const _0x4225a8=a338_0x463b;return!_0x3ab2fa&&_0x4c81e6[_0x4225a8('0xf')](0x194),_0x3ab2fa;};}function handleError(_0x174f46,_0x2bc48b){return _0x2bc48b=_0x2bc48b||0x1f4,function(_0x4f2958){const _0x34ebf8=a338_0x463b;logger[_0x34ebf8('0x4')](_0x4f2958[_0x34ebf8('0x32')]),_0x4f2958[_0x34ebf8('0x14')]&&delete _0x4f2958[_0x34ebf8('0x14')],_0x174f46[_0x34ebf8('0x2d')](_0x2bc48b)[_0x34ebf8('0xa')](_0x4f2958);};}exports[_0x30fdc5('0x5')]=function(_0x245805,_0x306ecb){const _0x3ba67c=_0x30fdc5;let _0x28b8b3={};const _0x1bae0c={},_0x562f26={'count':0x0,'rows':[]},_0x155051=_[_0x3ba67c('0x0')](db[_0x3ba67c('0x1')][_0x3ba67c('0x6')],function(_0x40bd8a){const _0xae405=_0x3ba67c;return{'name':_0x40bd8a['fieldName'],'type':_0x40bd8a[_0xae405('0x37')][_0xae405('0x11')]};});_0x1bae0c[_0x3ba67c('0x34')]=_[_0x3ba67c('0x0')](_0x155051,_0x3ba67c('0x14')),_0x1bae0c['query']=_['keys'](_0x245805[_0x3ba67c('0xb')]),_0x1bae0c['filters']=_[_0x3ba67c('0x2e')](_0x1bae0c[_0x3ba67c('0x34')],_0x1bae0c[_0x3ba67c('0xb')]),_0x28b8b3['attributes']=_[_0x3ba67c('0x2e')](_0x1bae0c[_0x3ba67c('0x34')],qs[_0x3ba67c('0x36')](_0x245805['query'][_0x3ba67c('0x36')])),_0x28b8b3[_0x3ba67c('0x19')]=_0x28b8b3['attributes'][_0x3ba67c('0x20')]?_0x28b8b3[_0x3ba67c('0x19')]:_0x1bae0c[_0x3ba67c('0x34')];typeof _0x245805['query'][_0x3ba67c('0x2b')]===_0x3ba67c('0x15')&&(_0x28b8b3[_0x3ba67c('0x1e')]=qs['limit'](_0x245805[_0x3ba67c('0xb')][_0x3ba67c('0x1e')]),_0x28b8b3[_0x3ba67c('0x26')]=qs['offset'](_0x245805[_0x3ba67c('0xb')][_0x3ba67c('0x26')]));_0x28b8b3[_0x3ba67c('0x39')]=qs[_0x3ba67c('0x31')](_0x245805[_0x3ba67c('0xb')][_0x3ba67c('0x31')]),_0x28b8b3['where']=qs['filters'](_[_0x3ba67c('0x33')](_0x245805[_0x3ba67c('0xb')],_0x1bae0c['filters']),_0x155051);_0x245805[_0x3ba67c('0xb')][_0x3ba67c('0x23')]&&(_0x28b8b3[_0x3ba67c('0x28')]=_['merge'](_0x28b8b3[_0x3ba67c('0x28')],{[Op['or']]:_['map'](_0x155051,function(_0x538e68){const _0xcb0161=_0x3ba67c;if(_0x538e68[_0xcb0161('0x37')]!==_0xcb0161('0x22')){const _0x372be8={};return _0x372be8[_0x538e68['name']]={[Op[_0xcb0161('0x30')]]:'%'+_0x245805['query']['filter']+'%'},_0x372be8;}})}));_0x28b8b3=_[_0x3ba67c('0x1d')]({},_0x28b8b3,_0x245805[_0x3ba67c('0x9')]);const _0x4ef8e8={'where':_0x28b8b3['where']};return db[_0x3ba67c('0x1')][_0x3ba67c('0x3b')](_0x4ef8e8)[_0x3ba67c('0x1f')](function(_0x28da60){const _0x4ce182=_0x3ba67c;return _0x562f26[_0x4ce182('0x3b')]=_0x28da60,_0x245805[_0x4ce182('0xb')]['includeAll']&&(_0x28b8b3[_0x4ce182('0x18')]=[{'all':!![]}]),db[_0x4ce182('0x1')][_0x4ce182('0x38')](_0x28b8b3);})['then'](function(_0x34d40c){const _0x49c7fe=_0x3ba67c;return _0x562f26[_0x49c7fe('0x3')]=_0x34d40c,_0x562f26;})[_0x3ba67c('0x1f')](respondWithFilteredResult(_0x306ecb,_0x28b8b3))['catch'](handleError(_0x306ecb,null));},exports['show']=function(_0x2be322,_0x369c2c){const _0x62ec1d=_0x30fdc5;let _0x43f69e={'raw':![],'where':{'id':_0x2be322['params']['id']}};const _0x13bbc6={};return _0x13bbc6[_0x62ec1d('0x34')]=_[_0x62ec1d('0x29')](db[_0x62ec1d('0x1')][_0x62ec1d('0x6')]),_0x13bbc6[_0x62ec1d('0xb')]=_[_0x62ec1d('0x29')](_0x2be322[_0x62ec1d('0xb')]),_0x13bbc6[_0x62ec1d('0x24')]=_[_0x62ec1d('0x2e')](_0x13bbc6[_0x62ec1d('0x34')],_0x13bbc6[_0x62ec1d('0xb')]),_0x43f69e[_0x62ec1d('0x19')]=_[_0x62ec1d('0x2e')](_0x13bbc6[_0x62ec1d('0x34')],qs[_0x62ec1d('0x36')](_0x2be322[_0x62ec1d('0xb')]['fields'])),_0x43f69e['attributes']=_0x43f69e[_0x62ec1d('0x19')][_0x62ec1d('0x20')]?_0x43f69e['attributes']:_0x13bbc6[_0x62ec1d('0x34')],_0x2be322[_0x62ec1d('0xb')]['includeAll']&&(_0x43f69e[_0x62ec1d('0x18')]=[{'all':!![]}]),_0x43f69e=_[_0x62ec1d('0x1d')]({},_0x43f69e,_0x2be322[_0x62ec1d('0x9')]),db[_0x62ec1d('0x1')]['findOne'](_0x43f69e)[_0x62ec1d('0x1f')](handleEntityNotFound(_0x369c2c,null))['then'](respondWithResult(_0x369c2c,null))[_0x62ec1d('0x3c')](handleError(_0x369c2c,null));},exports['create']=function(_0x5bad5a,_0x25e6c9){const _0x123b90=_0x30fdc5;return db[_0x123b90('0x1')][_0x123b90('0x1a')](_0x5bad5a[_0x123b90('0x17')],{})[_0x123b90('0x1f')](respondWithResult(_0x25e6c9,0xc9))[_0x123b90('0x3c')](handleError(_0x25e6c9,null));},exports[_0x30fdc5('0xe')]=function(_0x5ac318,_0x580d3b){const _0x155887=_0x30fdc5;return _0x5ac318[_0x155887('0x17')]['id']&&delete _0x5ac318['body']['id'],db[_0x155887('0x1')][_0x155887('0x2a')]({'where':{'id':_0x5ac318['params']['id']}})['then'](handleEntityNotFound(_0x580d3b,null))['then'](saveUpdates(_0x5ac318[_0x155887('0x17')],null))[_0x155887('0x1f')](respondWithResult(_0x580d3b,null))[_0x155887('0x3c')](handleError(_0x580d3b,null));},exports['destroy']=function(_0x545b41,_0xae7940){const _0x3652ca=_0x30fdc5;return db['ZendeskConfiguration']['findOne']({'where':{'id':_0x545b41[_0x3652ca('0x16')]['id']}})[_0x3652ca('0x1f')](handleEntityNotFound(_0xae7940,null))[_0x3652ca('0x1f')](removeEntity(_0xae7940,null))['catch'](handleError(_0xae7940,null));},exports[_0x30fdc5('0x8')]=function(_0x240fca,_0x2b4f5e){const _0x380155=_0x30fdc5;let _0x62e677={};const _0x4fba39={};let _0x1b5eec,_0x25b795;return db['ZendeskConfiguration'][_0x380155('0x2a')]({'where':{'id':_0x240fca[_0x380155('0x16')]['id']}})[_0x380155('0x1f')](handleEntityNotFound(_0x2b4f5e,null))['then'](function(_0x5bca79){const _0x3b3a46=_0x380155;if(_0x5bca79)return _0x1b5eec=_0x5bca79,_0x4fba39['model']=_[_0x3b3a46('0x29')](db[_0x3b3a46('0x1b')][_0x3b3a46('0x6')]),_0x4fba39['query']=_['keys'](_0x240fca[_0x3b3a46('0xb')]),_0x4fba39[_0x3b3a46('0x24')]=_[_0x3b3a46('0x2e')](_0x4fba39[_0x3b3a46('0x34')],_0x4fba39['query']),_0x62e677[_0x3b3a46('0x19')]=_[_0x3b3a46('0x2e')](_0x4fba39[_0x3b3a46('0x34')],qs[_0x3b3a46('0x36')](_0x240fca[_0x3b3a46('0xb')][_0x3b3a46('0x36')])),_0x62e677['attributes']=_0x62e677[_0x3b3a46('0x19')]['length']?_0x62e677[_0x3b3a46('0x19')]:_0x4fba39[_0x3b3a46('0x34')],_0x62e677[_0x3b3a46('0x39')]=qs[_0x3b3a46('0x31')](_0x240fca[_0x3b3a46('0xb')][_0x3b3a46('0x31')]),_0x62e677['where']=qs[_0x3b3a46('0x24')](_[_0x3b3a46('0x33')](_0x240fca[_0x3b3a46('0xb')],_0x4fba39['filters'])),_0x240fca[_0x3b3a46('0xb')]['filter']&&(_0x62e677[_0x3b3a46('0x28')]=_[_0x3b3a46('0x1d')](_0x62e677[_0x3b3a46('0x28')],{[Op['or']]:_[_0x3b3a46('0x0')](_0x62e677['attributes'],function(_0x14a03b){const _0x78a302=_0x3b3a46,_0x331908={};return _0x331908[_0x14a03b]={[Op[_0x78a302('0x30')]]:'%'+_0x240fca['query'][_0x78a302('0x23')]+'%'},_0x331908;})})),_0x62e677=_['merge']({},_0x62e677,_0x240fca['options']),_0x1b5eec[_0x3b3a46('0x8')](_0x62e677);})[_0x380155('0x1f')](function(_0x54dc34){const _0x5f0e7f=_0x380155;if(_0x54dc34)return _0x25b795=_0x54dc34[_0x5f0e7f('0x20')],typeof _0x240fca['query'][_0x5f0e7f('0x2b')]===_0x5f0e7f('0x15')&&(_0x62e677[_0x5f0e7f('0x1e')]=qs[_0x5f0e7f('0x1e')](_0x240fca[_0x5f0e7f('0xb')][_0x5f0e7f('0x1e')]),_0x62e677['offset']=qs[_0x5f0e7f('0x26')](_0x240fca[_0x5f0e7f('0xb')][_0x5f0e7f('0x26')])),_0x1b5eec['getFields'](_0x62e677);})['then'](function(_0x81b313){if(_0x81b313)return _0x81b313?{'count':_0x25b795,'rows':_0x81b313}:null;})[_0x380155('0x1f')](respondWithResult(_0x2b4f5e,null))[_0x380155('0x3c')](handleError(_0x2b4f5e,null));},exports[_0x30fdc5('0x35')]=function(_0x483048,_0x207756){const _0x11438f=_0x30fdc5;let _0x1d026b={};const _0x7393bf={};let _0x538bf5,_0x39aa40;return db[_0x11438f('0x1')]['findOne']({'where':{'id':_0x483048[_0x11438f('0x16')]['id']}})[_0x11438f('0x1f')](handleEntityNotFound(_0x207756,null))['then'](function(_0x16139d){const _0x1c91ed=_0x11438f;if(_0x16139d)return _0x538bf5=_0x16139d,_0x7393bf[_0x1c91ed('0x34')]=_[_0x1c91ed('0x29')](db[_0x1c91ed('0x1b')][_0x1c91ed('0x6')]),_0x7393bf[_0x1c91ed('0xb')]=_[_0x1c91ed('0x29')](_0x483048['query']),_0x7393bf[_0x1c91ed('0x24')]=_['intersection'](_0x7393bf[_0x1c91ed('0x34')],_0x7393bf[_0x1c91ed('0xb')]),_0x1d026b[_0x1c91ed('0x19')]=_[_0x1c91ed('0x2e')](_0x7393bf['model'],qs[_0x1c91ed('0x36')](_0x483048[_0x1c91ed('0xb')]['fields'])),_0x1d026b[_0x1c91ed('0x19')]=_0x1d026b[_0x1c91ed('0x19')][_0x1c91ed('0x20')]?_0x1d026b[_0x1c91ed('0x19')]:_0x7393bf[_0x1c91ed('0x34')],_0x1d026b[_0x1c91ed('0x39')]=qs[_0x1c91ed('0x31')](_0x483048[_0x1c91ed('0xb')][_0x1c91ed('0x31')]),_0x1d026b[_0x1c91ed('0x28')]=qs[_0x1c91ed('0x24')](_[_0x1c91ed('0x33')](_0x483048['query'],_0x7393bf[_0x1c91ed('0x24')])),_0x483048[_0x1c91ed('0xb')][_0x1c91ed('0x23')]&&(_0x1d026b['where']=_[_0x1c91ed('0x1d')](_0x1d026b['where'],{[Op['or']]:_[_0x1c91ed('0x0')](_0x1d026b[_0x1c91ed('0x19')],function(_0x4da41c){const _0x2bf0df=_0x1c91ed,_0x462ccf={};return _0x462ccf[_0x4da41c]={[Op['like']]:'%'+_0x483048[_0x2bf0df('0xb')][_0x2bf0df('0x23')]+'%'},_0x462ccf;})})),_0x1d026b=_[_0x1c91ed('0x1d')]({},_0x1d026b,_0x483048[_0x1c91ed('0x9')]),_0x538bf5[_0x1c91ed('0x35')](_0x1d026b);})[_0x11438f('0x1f')](function(_0x103e8e){const _0x2037ce=_0x11438f;if(_0x103e8e)return _0x39aa40=_0x103e8e['length'],typeof _0x483048[_0x2037ce('0xb')]['nolimit']===_0x2037ce('0x15')&&(_0x1d026b['limit']=qs[_0x2037ce('0x1e')](_0x483048[_0x2037ce('0xb')][_0x2037ce('0x1e')]),_0x1d026b[_0x2037ce('0x26')]=qs[_0x2037ce('0x26')](_0x483048[_0x2037ce('0xb')][_0x2037ce('0x26')])),_0x538bf5['getSubjects'](_0x1d026b);})[_0x11438f('0x1f')](function(_0x764e5a){if(_0x764e5a)return _0x764e5a?{'count':_0x39aa40,'rows':_0x764e5a}:null;})[_0x11438f('0x1f')](respondWithResult(_0x207756,null))[_0x11438f('0x3c')](handleError(_0x207756,null));},exports['getDescriptions']=function(_0x301d79,_0xe59a){const _0xad15d3=_0x30fdc5;let _0x49e46d={};const _0x17eee9={};let _0x50a48a,_0x213bfd;return db['ZendeskConfiguration'][_0xad15d3('0x2a')]({'where':{'id':_0x301d79[_0xad15d3('0x16')]['id']}})[_0xad15d3('0x1f')](handleEntityNotFound(_0xe59a,null))[_0xad15d3('0x1f')](function(_0x3d940c){const _0x47bdfa=_0xad15d3;if(_0x3d940c)return _0x50a48a=_0x3d940c,_0x17eee9[_0x47bdfa('0x34')]=_[_0x47bdfa('0x29')](db[_0x47bdfa('0x1b')][_0x47bdfa('0x6')]),_0x17eee9[_0x47bdfa('0xb')]=_['keys'](_0x301d79['query']),_0x17eee9[_0x47bdfa('0x24')]=_[_0x47bdfa('0x2e')](_0x17eee9[_0x47bdfa('0x34')],_0x17eee9[_0x47bdfa('0xb')]),_0x49e46d[_0x47bdfa('0x19')]=_['intersection'](_0x17eee9[_0x47bdfa('0x34')],qs[_0x47bdfa('0x36')](_0x301d79['query'][_0x47bdfa('0x36')])),_0x49e46d[_0x47bdfa('0x19')]=_0x49e46d[_0x47bdfa('0x19')]['length']?_0x49e46d[_0x47bdfa('0x19')]:_0x17eee9[_0x47bdfa('0x34')],_0x49e46d['order']=qs[_0x47bdfa('0x31')](_0x301d79[_0x47bdfa('0xb')][_0x47bdfa('0x31')]),_0x49e46d[_0x47bdfa('0x28')]=qs[_0x47bdfa('0x24')](_[_0x47bdfa('0x33')](_0x301d79['query'],_0x17eee9['filters'])),_0x301d79[_0x47bdfa('0xb')][_0x47bdfa('0x23')]&&(_0x49e46d['where']=_[_0x47bdfa('0x1d')](_0x49e46d[_0x47bdfa('0x28')],{[Op['or']]:_[_0x47bdfa('0x0')](_0x49e46d[_0x47bdfa('0x19')],function(_0x3d36ff){const _0x3b8860=_0x47bdfa,_0x1bd29c={};return _0x1bd29c[_0x3d36ff]={[Op[_0x3b8860('0x30')]]:'%'+_0x301d79[_0x3b8860('0xb')][_0x3b8860('0x23')]+'%'},_0x1bd29c;})})),_0x49e46d=_[_0x47bdfa('0x1d')]({},_0x49e46d,_0x301d79['options']),_0x50a48a[_0x47bdfa('0x2f')](_0x49e46d);})[_0xad15d3('0x1f')](function(_0x43d55c){const _0x52031d=_0xad15d3;if(_0x43d55c)return _0x213bfd=_0x43d55c[_0x52031d('0x20')],typeof _0x301d79['query']['nolimit']==='undefined'&&(_0x49e46d['limit']=qs[_0x52031d('0x1e')](_0x301d79['query'][_0x52031d('0x1e')]),_0x49e46d['offset']=qs[_0x52031d('0x26')](_0x301d79['query'][_0x52031d('0x26')])),_0x50a48a[_0x52031d('0x2f')](_0x49e46d);})[_0xad15d3('0x1f')](function(_0x26c4fd){if(_0x26c4fd)return _0x26c4fd?{'count':_0x213bfd,'rows':_0x26c4fd}:null;})[_0xad15d3('0x1f')](respondWithResult(_0xe59a,null))['catch'](handleError(_0xe59a,null));},exports[_0x30fdc5('0x13')]=function(_0xcdfebb,_0x3ddf24){const _0x19f712=_0x30fdc5;let _0x538bec={};const _0x5b2870={};let _0x3da51f,_0x1c70f8;return db[_0x19f712('0x1')][_0x19f712('0x2a')]({'where':{'id':_0xcdfebb[_0x19f712('0x16')]['id']}})[_0x19f712('0x1f')](handleEntityNotFound(_0x3ddf24,null))['then'](function(_0x58f48b){const _0x523d8a=_0x19f712;if(_0x58f48b)return _0x3da51f=_0x58f48b,_0x5b2870['model']=_[_0x523d8a('0x29')](db[_0x523d8a('0x10')][_0x523d8a('0x6')]),_0x5b2870[_0x523d8a('0xb')]=_[_0x523d8a('0x29')](_0xcdfebb[_0x523d8a('0xb')]),_0x5b2870[_0x523d8a('0x24')]=_[_0x523d8a('0x2e')](_0x5b2870[_0x523d8a('0x34')],_0x5b2870[_0x523d8a('0xb')]),_0x538bec[_0x523d8a('0x19')]=_['intersection'](_0x5b2870['model'],qs[_0x523d8a('0x36')](_0xcdfebb['query'][_0x523d8a('0x36')])),_0x538bec['attributes']=_0x538bec[_0x523d8a('0x19')]['length']?_0x538bec['attributes']:_0x5b2870[_0x523d8a('0x34')],_0x538bec[_0x523d8a('0x39')]=qs[_0x523d8a('0x31')](_0xcdfebb[_0x523d8a('0xb')]['sort']),_0x538bec[_0x523d8a('0x28')]=qs[_0x523d8a('0x24')](_['pick'](_0xcdfebb[_0x523d8a('0xb')],_0x5b2870[_0x523d8a('0x24')])),_0xcdfebb['query'][_0x523d8a('0x23')]&&(_0x538bec[_0x523d8a('0x28')]=_[_0x523d8a('0x1d')](_0x538bec[_0x523d8a('0x28')],{[Op['or']]:_[_0x523d8a('0x0')](_0x538bec[_0x523d8a('0x19')],function(_0x4183ee){const _0x2e4fa6=_0x523d8a,_0x35c160={};return _0x35c160[_0x4183ee]={[Op['like']]:'%'+_0xcdfebb[_0x2e4fa6('0xb')]['filter']+'%'},_0x35c160;})})),_0x538bec=_[_0x523d8a('0x1d')]({},_0x538bec,_0xcdfebb[_0x523d8a('0x9')]),_0x3da51f['getTags'](_0x538bec);})[_0x19f712('0x1f')](function(_0x5d1a28){const _0x2ad9f7=_0x19f712;if(_0x5d1a28)return _0x1c70f8=_0x5d1a28[_0x2ad9f7('0x20')],typeof _0xcdfebb[_0x2ad9f7('0xb')][_0x2ad9f7('0x2b')]===_0x2ad9f7('0x15')&&(_0x538bec[_0x2ad9f7('0x1e')]=qs[_0x2ad9f7('0x1e')](_0xcdfebb[_0x2ad9f7('0xb')]['limit']),_0x538bec[_0x2ad9f7('0x26')]=qs['offset'](_0xcdfebb[_0x2ad9f7('0xb')]['offset'])),_0x3da51f[_0x2ad9f7('0x13')](_0x538bec);})[_0x19f712('0x1f')](function(_0x5a42b8){if(_0x5a42b8)return _0x5a42b8?{'count':_0x1c70f8,'rows':_0x5a42b8}:null;})[_0x19f712('0x1f')](respondWithResult(_0x3ddf24,null))[_0x19f712('0x3c')](handleError(_0x3ddf24,null));},exports[_0x30fdc5('0x27')]=function(_0x49506b,_0x47fd8b){const _0x38717f=_0x30fdc5;return _0x49506b[_0x38717f('0x17')]['id']&&delete _0x49506b[_0x38717f('0x17')]['id'],db['ZendeskConfiguration'][_0x38717f('0x2a')]({'where':{'id':_0x49506b['params']['id']}})[_0x38717f('0x1f')](handleEntityNotFound(_0x47fd8b,null))['then'](function(_0x527c17){const _0x29ca80=_0x38717f;if(_0x527c17)return _0x527c17['setTags'](_0x49506b[_0x29ca80('0x17')]['ids']||[]);return null;})[_0x38717f('0x1f')](respondWithResult(_0x47fd8b,null))[_0x38717f('0x3c')](handleError(_0x47fd8b,null));}; \ No newline at end of file diff --git a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js index b32ea60..c2a7782 100644 --- a/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js +++ b/server/api/intZendeskConfiguration/intZendeskConfiguration.model.js @@ -1 +1 @@ -const a339_0xbc24=['exports','int_zendesk_configurations','ZendeskConfiguration','./intZendeskConfiguration.attributes'];(function(_0x54d82e,_0xbc2490){const _0x555e05=function(_0x66ad06){while(--_0x66ad06){_0x54d82e['push'](_0x54d82e['shift']());}};_0x555e05(++_0xbc2490);}(a339_0xbc24,0xb8));const a339_0x555e=function(_0x54d82e,_0xbc2490){_0x54d82e=_0x54d82e-0x0;let _0x555e05=a339_0xbc24[_0x54d82e];return _0x555e05;};const _0x27d17a=a339_0x555e;'use strict';const attributes=require(_0x27d17a('0x3'));module[_0x27d17a('0x0')]=function(_0x66ad06){const _0x1fe097=_0x27d17a,_0x4e53c3=_0x66ad06['define'](_0x1fe097('0x2'),attributes,{'tableName':_0x1fe097('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4e53c3;}; \ No newline at end of file +const a339_0x5ec6=['define','ZendeskConfiguration','int_zendesk_configurations','./intZendeskConfiguration.attributes'];(function(_0x38c842,_0x5ec6b7){const _0x60ddf6=function(_0x4ce7a){while(--_0x4ce7a){_0x38c842['push'](_0x38c842['shift']());}};_0x60ddf6(++_0x5ec6b7);}(a339_0x5ec6,0x157));const a339_0x60dd=function(_0x38c842,_0x5ec6b7){_0x38c842=_0x38c842-0x0;let _0x60ddf6=a339_0x5ec6[_0x38c842];return _0x60ddf6;};const _0x415f79=a339_0x60dd;'use strict';const attributes=require(_0x415f79('0x0'));module['exports']=function(_0x4ce7a){const _0x16e27a=_0x415f79,_0x5a4bd9=_0x4ce7a[_0x16e27a('0x1')](_0x16e27a('0x2'),attributes,{'tableName':_0x16e27a('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5a4bd9;}; \ No newline at end of file diff --git a/server/api/intZendeskField/index.js b/server/api/intZendeskField/index.js index 731db88..0a1beef 100644 --- a/server/api/intZendeskField/index.js +++ b/server/api/intZendeskField/index.js @@ -1 +1 @@ -const a340_0x2319=['isAuthenticated','/:id','../../components/auth/service','delete','./intZendeskField.controller','update','put','express','get'];(function(_0x5d484a,_0x23199f){const _0x282e3d=function(_0x30f0e2){while(--_0x30f0e2){_0x5d484a['push'](_0x5d484a['shift']());}};_0x282e3d(++_0x23199f);}(a340_0x2319,0x1be));const a340_0x282e=function(_0x5d484a,_0x23199f){_0x5d484a=_0x5d484a-0x0;let _0x282e3d=a340_0x2319[_0x5d484a];return _0x282e3d;};const _0x592e3a=a340_0x282e;'use strict';const express=require(_0x592e3a('0x2')),router=express['Router'](),auth=require(_0x592e3a('0x6')),controller=require(_0x592e3a('0x8'));router[_0x592e3a('0x3')]('/',auth['isAuthenticated'](),controller['index']),router[_0x592e3a('0x3')](_0x592e3a('0x5'),auth[_0x592e3a('0x4')](),controller['show']),router['post']('/',auth[_0x592e3a('0x4')](),controller['create']),router[_0x592e3a('0x1')]('/:id',auth[_0x592e3a('0x4')](),controller[_0x592e3a('0x0')]),router[_0x592e3a('0x7')](_0x592e3a('0x5'),auth[_0x592e3a('0x4')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a340_0x4b49=['/:id','exports','delete','update','Router','isAuthenticated','put','index','destroy','show','post','create'];(function(_0x2f10f5,_0x4b4925){const _0x3e1b3c=function(_0x5570b6){while(--_0x5570b6){_0x2f10f5['push'](_0x2f10f5['shift']());}};_0x3e1b3c(++_0x4b4925);}(a340_0x4b49,0x1b7));const a340_0x3e1b=function(_0x2f10f5,_0x4b4925){_0x2f10f5=_0x2f10f5-0x0;let _0x3e1b3c=a340_0x4b49[_0x2f10f5];return _0x3e1b3c;};const _0x436dd9=a340_0x3e1b;'use strict';const express=require('express'),router=express[_0x436dd9('0x9')](),auth=require('../../components/auth/service'),controller=require('./intZendeskField.controller');router['get']('/',auth[_0x436dd9('0xa')](),controller[_0x436dd9('0x0')]),router['get'](_0x436dd9('0x5'),auth['isAuthenticated'](),controller[_0x436dd9('0x2')]),router[_0x436dd9('0x3')]('/',auth[_0x436dd9('0xa')](),controller[_0x436dd9('0x4')]),router[_0x436dd9('0xb')](_0x436dd9('0x5'),auth[_0x436dd9('0xa')](),controller[_0x436dd9('0x8')]),router[_0x436dd9('0x7')](_0x436dd9('0x5'),auth[_0x436dd9('0xa')](),controller[_0x436dd9('0x1')]),module[_0x436dd9('0x6')]=router; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.attributes.js b/server/api/intZendeskField/intZendeskField.attributes.js index f0c5606..db70c95 100644 --- a/server/api/intZendeskField/intZendeskField.attributes.js +++ b/server/api/intZendeskField/intZendeskField.attributes.js @@ -1 +1 @@ -const a341_0x1e29=['string','STRING','BOOLEAN','sequelize'];(function(_0x353f7e,_0x1e29f5){const _0x53fa32=function(_0x1d77e8){while(--_0x1d77e8){_0x353f7e['push'](_0x353f7e['shift']());}};_0x53fa32(++_0x1e29f5);}(a341_0x1e29,0x73));const a341_0x53fa=function(_0x353f7e,_0x1e29f5){_0x353f7e=_0x353f7e-0x0;let _0x53fa32=a341_0x1e29[_0x353f7e];return _0x53fa32;};const _0x81ea21=a341_0x53fa;'use strict';const Sequelize=require(_0x81ea21('0x0'));module['exports']={'type':{'type':Sequelize['ENUM'](_0x81ea21('0x1'),'variable','customVariable','keyValue'),'defaultValue':'string'},'content':{'type':Sequelize['STRING']},'key':{'type':Sequelize[_0x81ea21('0x2')]},'keyType':{'type':Sequelize['ENUM'](_0x81ea21('0x1'),'variable','customVariable')},'keyContent':{'type':Sequelize[_0x81ea21('0x2')]},'idField':{'type':Sequelize[_0x81ea21('0x2')]},'nameField':{'type':Sequelize[_0x81ea21('0x2')]},'customField':{'type':Sequelize[_0x81ea21('0x3')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x81ea21('0x2')]}}; \ No newline at end of file +const a341_0x177f=['string','exports','STRING','BOOLEAN','variable','ENUM','customVariable','sequelize'];(function(_0xd44b9f,_0x177ffd){const _0x4eb705=function(_0x13abe5){while(--_0x13abe5){_0xd44b9f['push'](_0xd44b9f['shift']());}};_0x4eb705(++_0x177ffd);}(a341_0x177f,0x134));const a341_0x4eb7=function(_0xd44b9f,_0x177ffd){_0xd44b9f=_0xd44b9f-0x0;let _0x4eb705=a341_0x177f[_0xd44b9f];return _0x4eb705;};const _0x25c73f=a341_0x4eb7;'use strict';const Sequelize=require(_0x25c73f('0x3'));module[_0x25c73f('0x5')]={'type':{'type':Sequelize['ENUM'](_0x25c73f('0x4'),_0x25c73f('0x0'),_0x25c73f('0x2'),'keyValue'),'defaultValue':_0x25c73f('0x4')},'content':{'type':Sequelize[_0x25c73f('0x6')]},'key':{'type':Sequelize['STRING']},'keyType':{'type':Sequelize[_0x25c73f('0x1')](_0x25c73f('0x4'),_0x25c73f('0x0'),'customVariable')},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize['STRING']},'nameField':{'type':Sequelize[_0x25c73f('0x6')]},'customField':{'type':Sequelize[_0x25c73f('0x7')],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x25c73f('0x6')]}}; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.controller.js b/server/api/intZendeskField/intZendeskField.controller.js index 32eb84a..559cdd4 100644 --- a/server/api/intZendeskField/intZendeskField.controller.js +++ b/server/api/intZendeskField/intZendeskField.controller.js @@ -1 +1 @@ -const a342_0x571a=['stack','end','../../mysqldb','model','json','create','like','fields','show','name','length','error','ZendeskField','lodash','catch','where','offset','sequelize','findOne','send','filters','body','update','include','VIRTUAL','filter','map','sort','rows','destroy','intersection','count','params','attributes','pick','then','nolimit','set','limit','index','rawAttributes','includeAll','api','status','options','keys','merge','key','query'];(function(_0x36610e,_0x571a22){const _0x3938d6=function(_0x191f32){while(--_0x191f32){_0x36610e['push'](_0x36610e['shift']());}};_0x3938d6(++_0x571a22);}(a342_0x571a,0x8d));const a342_0x3938=function(_0x36610e,_0x571a22){_0x36610e=_0x36610e-0x0;let _0x3938d6=a342_0x571a[_0x36610e];return _0x3938d6;};const _0x840ec6=a342_0x3938;'use strict';const _=require(_0x840ec6('0x13')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x840ec6('0x30')),db=require(_0x840ec6('0x8'))['db'],{Op}=require(_0x840ec6('0x17'));function respondWithResult(_0x191f32,_0x4aaa9d){return _0x4aaa9d=_0x4aaa9d||0xc8,function(_0x341161){const _0x88f373=a342_0x3938;if(_0x341161)return _0x191f32[_0x88f373('0x0')](_0x4aaa9d)[_0x88f373('0xa')](_0x341161);};}function respondWithFilteredResult(_0x554d17,_0x28ec6e){return function(_0x3af2d4){const _0x4b3228=a342_0x3938;if(_0x3af2d4){const _0x5bc23b=_0x3af2d4[_0x4b3228('0x25')],_0x655ac4=_0x28ec6e['offset'];let _0x4ed082=_0x28ec6e['offset']+_0x28ec6e[_0x4b3228('0x2c')],_0x1c7c67;return _0x4ed082>=_0x5bc23b?(_0x4ed082=_0x5bc23b,_0x1c7c67=0xc8):_0x1c7c67=0xce,_0x554d17[_0x4b3228('0x0')](_0x1c7c67),_0x554d17[_0x4b3228('0x2b')]('Content-Range',_0x655ac4+'-'+_0x4ed082+'/'+_0x5bc23b)['json'](_0x3af2d4);}return null;};}function saveUpdates(_0x1e7d63){return function(_0x380809){const _0x3ee7b7=a342_0x3938;if(_0x380809)return _0x380809[_0x3ee7b7('0x1c')](_0x1e7d63)['then'](function(_0x51bd22){return _0x51bd22;});return null;};}function removeEntity(_0x442b2b){return function(_0xecfce6){const _0x254c35=a342_0x3938;if(_0xecfce6)return _0xecfce6[_0x254c35('0x23')]()[_0x254c35('0x29')](function(){const _0x6d1c51=_0x254c35;_0x442b2b[_0x6d1c51('0x0')](0xcc)[_0x6d1c51('0x7')]();});};}function handleEntityNotFound(_0xfe030d){return function(_0x1c421a){return!_0x1c421a&&_0xfe030d['sendStatus'](0x194),_0x1c421a;};}function handleError(_0x25f246,_0x452aa5){return _0x452aa5=_0x452aa5||0x1f4,function(_0x3a196f){const _0x32e367=a342_0x3938;logger[_0x32e367('0x11')](_0x3a196f[_0x32e367('0x6')]),_0x3a196f[_0x32e367('0xf')]&&delete _0x3a196f[_0x32e367('0xf')],_0x25f246[_0x32e367('0x0')](_0x452aa5)[_0x32e367('0x19')](_0x3a196f);};}exports[_0x840ec6('0x2d')]=function(_0x4ee377,_0x5cc47d){const _0x47c340=_0x840ec6;let _0x533eca={};const _0x1aeae3={},_0x24fe0d={'count':0x0,'rows':[]},_0x26d4ea=_[_0x47c340('0x20')](db['ZendeskField'][_0x47c340('0x2e')],function(_0x1c5694){const _0x29e42c=_0x47c340;return{'name':_0x1c5694['fieldName'],'type':_0x1c5694['type'][_0x29e42c('0x4')]};});_0x1aeae3[_0x47c340('0x9')]=_[_0x47c340('0x20')](_0x26d4ea,_0x47c340('0xf')),_0x1aeae3[_0x47c340('0x5')]=_['keys'](_0x4ee377[_0x47c340('0x5')]),_0x1aeae3['filters']=_[_0x47c340('0x24')](_0x1aeae3['model'],_0x1aeae3[_0x47c340('0x5')]),_0x533eca[_0x47c340('0x27')]=_[_0x47c340('0x24')](_0x1aeae3['model'],qs[_0x47c340('0xd')](_0x4ee377['query']['fields'])),_0x533eca['attributes']=_0x533eca[_0x47c340('0x27')][_0x47c340('0x10')]?_0x533eca[_0x47c340('0x27')]:_0x1aeae3[_0x47c340('0x9')];typeof _0x4ee377[_0x47c340('0x5')][_0x47c340('0x2a')]==='undefined'&&(_0x533eca[_0x47c340('0x2c')]=qs['limit'](_0x4ee377[_0x47c340('0x5')][_0x47c340('0x2c')]),_0x533eca[_0x47c340('0x16')]=qs['offset'](_0x4ee377[_0x47c340('0x5')][_0x47c340('0x16')]));_0x533eca['order']=qs[_0x47c340('0x21')](_0x4ee377[_0x47c340('0x5')][_0x47c340('0x21')]),_0x533eca[_0x47c340('0x15')]=qs[_0x47c340('0x1a')](_[_0x47c340('0x28')](_0x4ee377[_0x47c340('0x5')],_0x1aeae3['filters']),_0x26d4ea);_0x4ee377[_0x47c340('0x5')]['filter']&&(_0x533eca['where']=_[_0x47c340('0x3')](_0x533eca[_0x47c340('0x15')],{[Op['or']]:_['map'](_0x26d4ea,function(_0x4655a9){const _0x5017e6=_0x47c340;if(_0x4655a9['type']!==_0x5017e6('0x1e')){const _0x345f0b={};return _0x345f0b[_0x4655a9[_0x5017e6('0xf')]]={[Op[_0x5017e6('0xc')]]:'%'+_0x4ee377[_0x5017e6('0x5')][_0x5017e6('0x1f')]+'%'},_0x345f0b;}})}));_0x533eca=_[_0x47c340('0x3')]({},_0x533eca,_0x4ee377[_0x47c340('0x1')]);const _0x208740={'where':_0x533eca[_0x47c340('0x15')]};return db[_0x47c340('0x12')]['count'](_0x208740)[_0x47c340('0x29')](function(_0x468895){const _0x1a9575=_0x47c340;return _0x24fe0d[_0x1a9575('0x25')]=_0x468895,_0x4ee377['query'][_0x1a9575('0x2f')]&&(_0x533eca[_0x1a9575('0x1d')]=[{'all':!![]}]),db[_0x1a9575('0x12')]['findAll'](_0x533eca);})['then'](function(_0x3455e0){const _0x12b599=_0x47c340;return _0x24fe0d[_0x12b599('0x22')]=_0x3455e0,_0x24fe0d;})[_0x47c340('0x29')](respondWithFilteredResult(_0x5cc47d,_0x533eca))[_0x47c340('0x14')](handleError(_0x5cc47d,null));},exports[_0x840ec6('0xe')]=function(_0x2444bd,_0x36cfaa){const _0x523207=_0x840ec6;let _0x376111={'raw':!![],'where':{'id':_0x2444bd[_0x523207('0x26')]['id']}};const _0x5e3fd3={};return _0x5e3fd3[_0x523207('0x9')]=_[_0x523207('0x2')](db[_0x523207('0x12')][_0x523207('0x2e')]),_0x5e3fd3['query']=_[_0x523207('0x2')](_0x2444bd['query']),_0x5e3fd3[_0x523207('0x1a')]=_['intersection'](_0x5e3fd3[_0x523207('0x9')],_0x5e3fd3[_0x523207('0x5')]),_0x376111['attributes']=_['intersection'](_0x5e3fd3[_0x523207('0x9')],qs[_0x523207('0xd')](_0x2444bd[_0x523207('0x5')][_0x523207('0xd')])),_0x376111[_0x523207('0x27')]=_0x376111[_0x523207('0x27')][_0x523207('0x10')]?_0x376111[_0x523207('0x27')]:_0x5e3fd3[_0x523207('0x9')],_0x2444bd[_0x523207('0x5')]['includeAll']&&(_0x376111[_0x523207('0x1d')]=[{'all':!![]}]),_0x376111=_[_0x523207('0x3')]({},_0x376111,_0x2444bd[_0x523207('0x1')]),db[_0x523207('0x12')][_0x523207('0x18')](_0x376111)['then'](handleEntityNotFound(_0x36cfaa,null))[_0x523207('0x29')](respondWithResult(_0x36cfaa,null))[_0x523207('0x14')](handleError(_0x36cfaa,null));},exports[_0x840ec6('0xb')]=function(_0x4eb041,_0x3e0017){const _0x100f25=_0x840ec6;return db[_0x100f25('0x12')][_0x100f25('0xb')](_0x4eb041[_0x100f25('0x1b')],{})[_0x100f25('0x29')](respondWithResult(_0x3e0017,0xc9))[_0x100f25('0x14')](handleError(_0x3e0017,null));},exports['update']=function(_0x7c8af5,_0x30398f){const _0x291135=_0x840ec6;return _0x7c8af5['body']['id']&&delete _0x7c8af5[_0x291135('0x1b')]['id'],db[_0x291135('0x12')][_0x291135('0x18')]({'where':{'id':_0x7c8af5[_0x291135('0x26')]['id']}})['then'](handleEntityNotFound(_0x30398f,null))[_0x291135('0x29')](saveUpdates(_0x7c8af5['body'],null))[_0x291135('0x29')](respondWithResult(_0x30398f,null))[_0x291135('0x14')](handleError(_0x30398f,null));},exports['destroy']=function(_0x83051f,_0x5f4fdb){const _0x33224e=_0x840ec6;return db['ZendeskField'][_0x33224e('0x18')]({'where':{'id':_0x83051f[_0x33224e('0x26')]['id']}})['then'](handleEntityNotFound(_0x5f4fdb,null))[_0x33224e('0x29')](removeEntity(_0x5f4fdb,null))[_0x33224e('0x14')](handleError(_0x5f4fdb,null));}; \ No newline at end of file +const a342_0x119c=['params','limit','index','merge','key','rawAttributes','set','fieldName','name','then','show','body','include','query','catch','model','api','map','keys','type','nolimit','json','filter','order','undefined','ZendeskField','sendStatus','error','stack','send','offset','filters','VIRTUAL','count','like','where','fields','intersection','attributes','Content-Range','create','../../mysqldb','destroy','status','sequelize','options','sort','findOne','../../config/logger'];(function(_0x38aa3c,_0x119ca1){const _0x381086=function(_0x35161e){while(--_0x35161e){_0x38aa3c['push'](_0x38aa3c['shift']());}};_0x381086(++_0x119ca1);}(a342_0x119c,0xc4));const a342_0x3810=function(_0x38aa3c,_0x119ca1){_0x38aa3c=_0x38aa3c-0x0;let _0x381086=a342_0x119c[_0x38aa3c];return _0x381086;};const _0x20c88d=a342_0x3810;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x20c88d('0x30'))(_0x20c88d('0x10')),db=require(_0x20c88d('0x29'))['db'],{Op}=require(_0x20c88d('0x2c'));function respondWithResult(_0x35161e,_0x49b85b){return _0x49b85b=_0x49b85b||0xc8,function(_0x2eddcb){const _0x22c71a=a342_0x3810;if(_0x2eddcb)return _0x35161e['status'](_0x49b85b)[_0x22c71a('0x15')](_0x2eddcb);};}function respondWithFilteredResult(_0x23dc49,_0x44915f){return function(_0x4dff5e){const _0x176048=a342_0x3810;if(_0x4dff5e){const _0x5cc0f1=_0x4dff5e[_0x176048('0x21')],_0x3b8dc1=_0x44915f[_0x176048('0x1e')];let _0x5cc18e=_0x44915f[_0x176048('0x1e')]+_0x44915f['limit'],_0x3b5668;return _0x5cc18e>=_0x5cc0f1?(_0x5cc18e=_0x5cc0f1,_0x3b5668=0xc8):_0x3b5668=0xce,_0x23dc49['status'](_0x3b5668),_0x23dc49[_0x176048('0x6')](_0x176048('0x27'),_0x3b8dc1+'-'+_0x5cc18e+'/'+_0x5cc0f1)[_0x176048('0x15')](_0x4dff5e);}return null;};}function saveUpdates(_0x92482e){return function(_0x1f4530){if(_0x1f4530)return _0x1f4530['update'](_0x92482e)['then'](function(_0x38297e){return _0x38297e;});return null;};}function removeEntity(_0x1c1805){return function(_0x1f4f30){const _0xe363a4=a342_0x3810;if(_0x1f4f30)return _0x1f4f30[_0xe363a4('0x2a')]()['then'](function(){const _0x26165b=_0xe363a4;_0x1c1805[_0x26165b('0x2b')](0xcc)['end']();});};}function handleEntityNotFound(_0x2c830a){return function(_0x318483){const _0x39f0d6=a342_0x3810;return!_0x318483&&_0x2c830a[_0x39f0d6('0x1a')](0x194),_0x318483;};}function handleError(_0x36d29f,_0x5953b4){return _0x5953b4=_0x5953b4||0x1f4,function(_0x167f17){const _0x4531e8=a342_0x3810;logger[_0x4531e8('0x1b')](_0x167f17[_0x4531e8('0x1c')]),_0x167f17[_0x4531e8('0x8')]&&delete _0x167f17[_0x4531e8('0x8')],_0x36d29f[_0x4531e8('0x2b')](_0x5953b4)[_0x4531e8('0x1d')](_0x167f17);};}exports[_0x20c88d('0x2')]=function(_0x337f26,_0x5b6a9b){const _0x250e2b=_0x20c88d;let _0x530ab9={};const _0x40658b={},_0x26d94a={'count':0x0,'rows':[]},_0x2d13b3=_[_0x250e2b('0x11')](db[_0x250e2b('0x19')][_0x250e2b('0x5')],function(_0x267e87){const _0x5cb344=_0x250e2b;return{'name':_0x267e87[_0x5cb344('0x7')],'type':_0x267e87[_0x5cb344('0x13')][_0x5cb344('0x4')]};});_0x40658b[_0x250e2b('0xf')]=_[_0x250e2b('0x11')](_0x2d13b3,_0x250e2b('0x8')),_0x40658b[_0x250e2b('0xd')]=_[_0x250e2b('0x12')](_0x337f26[_0x250e2b('0xd')]),_0x40658b['filters']=_[_0x250e2b('0x25')](_0x40658b[_0x250e2b('0xf')],_0x40658b[_0x250e2b('0xd')]),_0x530ab9[_0x250e2b('0x26')]=_['intersection'](_0x40658b[_0x250e2b('0xf')],qs[_0x250e2b('0x24')](_0x337f26[_0x250e2b('0xd')][_0x250e2b('0x24')])),_0x530ab9[_0x250e2b('0x26')]=_0x530ab9[_0x250e2b('0x26')]['length']?_0x530ab9[_0x250e2b('0x26')]:_0x40658b[_0x250e2b('0xf')];typeof _0x337f26[_0x250e2b('0xd')][_0x250e2b('0x14')]===_0x250e2b('0x18')&&(_0x530ab9[_0x250e2b('0x1')]=qs['limit'](_0x337f26[_0x250e2b('0xd')][_0x250e2b('0x1')]),_0x530ab9[_0x250e2b('0x1e')]=qs['offset'](_0x337f26[_0x250e2b('0xd')][_0x250e2b('0x1e')]));_0x530ab9[_0x250e2b('0x17')]=qs[_0x250e2b('0x2e')](_0x337f26['query'][_0x250e2b('0x2e')]),_0x530ab9['where']=qs[_0x250e2b('0x1f')](_['pick'](_0x337f26[_0x250e2b('0xd')],_0x40658b[_0x250e2b('0x1f')]),_0x2d13b3);_0x337f26['query']['filter']&&(_0x530ab9[_0x250e2b('0x23')]=_['merge'](_0x530ab9[_0x250e2b('0x23')],{[Op['or']]:_[_0x250e2b('0x11')](_0x2d13b3,function(_0x5ea44d){const _0x38fa47=_0x250e2b;if(_0x5ea44d[_0x38fa47('0x13')]!==_0x38fa47('0x20')){const _0x1079ea={};return _0x1079ea[_0x5ea44d[_0x38fa47('0x8')]]={[Op[_0x38fa47('0x22')]]:'%'+_0x337f26[_0x38fa47('0xd')][_0x38fa47('0x16')]+'%'},_0x1079ea;}})}));_0x530ab9=_[_0x250e2b('0x3')]({},_0x530ab9,_0x337f26['options']);const _0x3332a1={'where':_0x530ab9['where']};return db['ZendeskField']['count'](_0x3332a1)['then'](function(_0x3d07b1){const _0x31f02f=_0x250e2b;return _0x26d94a[_0x31f02f('0x21')]=_0x3d07b1,_0x337f26['query']['includeAll']&&(_0x530ab9[_0x31f02f('0xc')]=[{'all':!![]}]),db[_0x31f02f('0x19')]['findAll'](_0x530ab9);})[_0x250e2b('0x9')](function(_0x56c7a9){return _0x26d94a['rows']=_0x56c7a9,_0x26d94a;})[_0x250e2b('0x9')](respondWithFilteredResult(_0x5b6a9b,_0x530ab9))[_0x250e2b('0xe')](handleError(_0x5b6a9b,null));},exports[_0x20c88d('0xa')]=function(_0x34a08d,_0x5ab4c2){const _0x26e52c=_0x20c88d;let _0x3b8f59={'raw':!![],'where':{'id':_0x34a08d[_0x26e52c('0x0')]['id']}};const _0x28ef65={};return _0x28ef65[_0x26e52c('0xf')]=_[_0x26e52c('0x12')](db[_0x26e52c('0x19')][_0x26e52c('0x5')]),_0x28ef65['query']=_[_0x26e52c('0x12')](_0x34a08d[_0x26e52c('0xd')]),_0x28ef65['filters']=_[_0x26e52c('0x25')](_0x28ef65[_0x26e52c('0xf')],_0x28ef65[_0x26e52c('0xd')]),_0x3b8f59[_0x26e52c('0x26')]=_[_0x26e52c('0x25')](_0x28ef65[_0x26e52c('0xf')],qs[_0x26e52c('0x24')](_0x34a08d['query']['fields'])),_0x3b8f59['attributes']=_0x3b8f59[_0x26e52c('0x26')]['length']?_0x3b8f59[_0x26e52c('0x26')]:_0x28ef65['model'],_0x34a08d[_0x26e52c('0xd')]['includeAll']&&(_0x3b8f59[_0x26e52c('0xc')]=[{'all':!![]}]),_0x3b8f59=_[_0x26e52c('0x3')]({},_0x3b8f59,_0x34a08d[_0x26e52c('0x2d')]),db[_0x26e52c('0x19')][_0x26e52c('0x2f')](_0x3b8f59)[_0x26e52c('0x9')](handleEntityNotFound(_0x5ab4c2,null))[_0x26e52c('0x9')](respondWithResult(_0x5ab4c2,null))[_0x26e52c('0xe')](handleError(_0x5ab4c2,null));},exports[_0x20c88d('0x28')]=function(_0x47807e,_0x502afa){const _0x15f250=_0x20c88d;return db[_0x15f250('0x19')][_0x15f250('0x28')](_0x47807e['body'],{})[_0x15f250('0x9')](respondWithResult(_0x502afa,0xc9))[_0x15f250('0xe')](handleError(_0x502afa,null));},exports['update']=function(_0x5ae665,_0xdb3d7c){const _0x46d9b5=_0x20c88d;return _0x5ae665['body']['id']&&delete _0x5ae665[_0x46d9b5('0xb')]['id'],db[_0x46d9b5('0x19')][_0x46d9b5('0x2f')]({'where':{'id':_0x5ae665[_0x46d9b5('0x0')]['id']}})[_0x46d9b5('0x9')](handleEntityNotFound(_0xdb3d7c,null))[_0x46d9b5('0x9')](saveUpdates(_0x5ae665['body'],null))['then'](respondWithResult(_0xdb3d7c,null))['catch'](handleError(_0xdb3d7c,null));},exports['destroy']=function(_0x5f59a2,_0x4ee492){const _0x2b0e63=_0x20c88d;return db['ZendeskField'][_0x2b0e63('0x2f')]({'where':{'id':_0x5f59a2[_0x2b0e63('0x0')]['id']}})[_0x2b0e63('0x9')](handleEntityNotFound(_0x4ee492,null))[_0x2b0e63('0x9')](removeEntity(_0x4ee492,null))[_0x2b0e63('0xe')](handleError(_0x4ee492,null));}; \ No newline at end of file diff --git a/server/api/intZendeskField/intZendeskField.model.js b/server/api/intZendeskField/intZendeskField.model.js index 6db12ce..d3e0b29 100644 --- a/server/api/intZendeskField/intZendeskField.model.js +++ b/server/api/intZendeskField/intZendeskField.model.js @@ -1 +1 @@ -const a343_0x3a03=['idField','exports','int_zendesk_fields','zendesk_unique_index','ZendeskField'];(function(_0x1ef505,_0x3a030f){const _0x104407=function(_0x442315){while(--_0x442315){_0x1ef505['push'](_0x1ef505['shift']());}};_0x104407(++_0x3a030f);}(a343_0x3a03,0xa7));const a343_0x1044=function(_0x1ef505,_0x3a030f){_0x1ef505=_0x1ef505-0x0;let _0x104407=a343_0x3a03[_0x1ef505];return _0x104407;};const _0x17657f=a343_0x1044;'use strict';const attributes=require('./intZendeskField.attributes');module[_0x17657f('0x4')]=function(_0x442315){const _0x5c1ab0=_0x17657f,_0x2b6074=_0x442315['define'](_0x5c1ab0('0x2'),attributes,{'tableName':_0x5c1ab0('0x0'),'paranoid':![],'indexes':[{'name':_0x5c1ab0('0x1'),'fields':[_0x5c1ab0('0x3'),'FieldId'],'unique':!![]}],'timestamps':!![]});return _0x2b6074;}; \ No newline at end of file +const a343_0x2bb3=['zendesk_unique_index','exports','idField','FieldId','define','ZendeskField'];(function(_0x427cfd,_0x2bb31a){const _0x2f00aa=function(_0x8e6dff){while(--_0x8e6dff){_0x427cfd['push'](_0x427cfd['shift']());}};_0x2f00aa(++_0x2bb31a);}(a343_0x2bb3,0x96));const a343_0x2f00=function(_0x427cfd,_0x2bb31a){_0x427cfd=_0x427cfd-0x0;let _0x2f00aa=a343_0x2bb3[_0x427cfd];return _0x2f00aa;};const _0x2d5288=a343_0x2f00;'use strict';const attributes=require('./intZendeskField.attributes');module[_0x2d5288('0x1')]=function(_0x8e6dff){const _0x3453fb=_0x2d5288,_0x12f8eb=_0x8e6dff[_0x3453fb('0x4')](_0x3453fb('0x5'),attributes,{'tableName':'int_zendesk_fields','paranoid':![],'indexes':[{'name':_0x3453fb('0x0'),'fields':[_0x3453fb('0x2'),_0x3453fb('0x3')],'unique':!![]}],'timestamps':!![]});return _0x12f8eb;}; \ No newline at end of file diff --git a/server/api/intZohoAccount/index.js b/server/api/intZohoAccount/index.js index e5ca9a0..34e9796 100644 --- a/server/api/intZohoAccount/index.js +++ b/server/api/intZohoAccount/index.js @@ -1 +1 @@ -const a344_0x398e=['getConfigurations','get','create','../../components/auth/service','post','update','/:id','getFields','addConfiguration','isAuthenticated','/:id/configurations','show','exports','/:id/fields','put','./intZohoAccount.controller','delete'];(function(_0x1cc53a,_0x398eda){const _0x5ef515=function(_0x55fe53){while(--_0x55fe53){_0x1cc53a['push'](_0x1cc53a['shift']());}};_0x5ef515(++_0x398eda);}(a344_0x398e,0x196));const a344_0x5ef5=function(_0x1cc53a,_0x398eda){_0x1cc53a=_0x1cc53a-0x0;let _0x5ef515=a344_0x398e[_0x1cc53a];return _0x5ef515;};const _0x4585a2=a344_0x5ef5;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x4585a2('0x5')),controller=require(_0x4585a2('0x0'));router[_0x4585a2('0x3')]('/',auth[_0x4585a2('0xb')](),controller['index']),router[_0x4585a2('0x3')](_0x4585a2('0x8'),auth['isAuthenticated'](),controller[_0x4585a2('0xd')]),router[_0x4585a2('0x3')](_0x4585a2('0xc'),auth[_0x4585a2('0xb')](),controller[_0x4585a2('0x2')]),router['get'](_0x4585a2('0xf'),auth['isAuthenticated'](),controller[_0x4585a2('0x9')]),router[_0x4585a2('0x6')]('/',auth[_0x4585a2('0xb')](),controller[_0x4585a2('0x4')]),router[_0x4585a2('0x6')]('/:id/configurations',auth[_0x4585a2('0xb')](),controller[_0x4585a2('0xa')]),router[_0x4585a2('0x10')](_0x4585a2('0x8'),auth[_0x4585a2('0xb')](),controller[_0x4585a2('0x7')]),router[_0x4585a2('0x1')](_0x4585a2('0x8'),auth['isAuthenticated'](),controller['destroy']),module[_0x4585a2('0xe')]=router; \ No newline at end of file +const a344_0x2bfc=['put','/:id/configurations','destroy','isAuthenticated','Router','express','/:id','getFields','show','../../components/auth/service','index','addConfiguration','/:id/fields','exports','get','post'];(function(_0x15c939,_0x2bfc7e){const _0x85735f=function(_0x1236c5){while(--_0x1236c5){_0x15c939['push'](_0x15c939['shift']());}};_0x85735f(++_0x2bfc7e);}(a344_0x2bfc,0xf7));const a344_0x8573=function(_0x15c939,_0x2bfc7e){_0x15c939=_0x15c939-0x0;let _0x85735f=a344_0x2bfc[_0x15c939];return _0x85735f;};const _0x1ebd25=a344_0x8573;'use strict';const express=require(_0x1ebd25('0xe')),router=express[_0x1ebd25('0xd')](),auth=require(_0x1ebd25('0x2')),controller=require('./intZohoAccount.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x1ebd25('0x3')]),router[_0x1ebd25('0x7')](_0x1ebd25('0xf'),auth[_0x1ebd25('0xc')](),controller[_0x1ebd25('0x1')]),router[_0x1ebd25('0x7')]('/:id/configurations',auth[_0x1ebd25('0xc')](),controller['getConfigurations']),router[_0x1ebd25('0x7')](_0x1ebd25('0x5'),auth[_0x1ebd25('0xc')](),controller[_0x1ebd25('0x0')]),router[_0x1ebd25('0x8')]('/',auth['isAuthenticated'](),controller['create']),router['post'](_0x1ebd25('0xa'),auth['isAuthenticated'](),controller[_0x1ebd25('0x4')]),router[_0x1ebd25('0x9')](_0x1ebd25('0xf'),auth[_0x1ebd25('0xc')](),controller['update']),router['delete'](_0x1ebd25('0xf'),auth[_0x1ebd25('0xc')](),controller[_0x1ebd25('0xb')]),module[_0x1ebd25('0x6')]=router; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.attributes.js b/server/api/intZohoAccount/intZohoAccount.attributes.js index 64222f0..b45418c 100644 --- a/server/api/intZohoAccount/intZohoAccount.attributes.js +++ b/server/api/intZohoAccount/intZohoAccount.attributes.js @@ -1 +1 @@ -const a345_0xca2a=['STRING','exports','sequelize'];(function(_0x231d34,_0xca2a0c){const _0x3ccdc0=function(_0x7755dc){while(--_0x7755dc){_0x231d34['push'](_0x231d34['shift']());}};_0x3ccdc0(++_0xca2a0c);}(a345_0xca2a,0x14c));const a345_0x3ccd=function(_0x231d34,_0xca2a0c){_0x231d34=_0x231d34-0x0;let _0x3ccdc0=a345_0xca2a[_0x231d34];return _0x3ccdc0;};const _0x14e40d=a345_0x3ccd;'use strict';const Sequelize=require(_0x14e40d('0x0'));module[_0x14e40d('0x2')]={'name':{'type':Sequelize[_0x14e40d('0x1')]},'description':{'type':Sequelize[_0x14e40d('0x1')]},'host':{'type':Sequelize['STRING']},'zone':{'type':Sequelize[_0x14e40d('0x1')]},'clientId':{'type':Sequelize[_0x14e40d('0x1')]},'clientSecret':{'type':Sequelize['STRING']},'serverUrl':{'type':Sequelize[_0x14e40d('0x1')]},'code':{'type':Sequelize[_0x14e40d('0x1')]},'refreshToken':{'type':Sequelize[_0x14e40d('0x1')]}}; \ No newline at end of file +const a345_0x1708=['STRING','sequelize'];(function(_0x2ecb12,_0x170872){const _0x27c6c9=function(_0x3bd671){while(--_0x3bd671){_0x2ecb12['push'](_0x2ecb12['shift']());}};_0x27c6c9(++_0x170872);}(a345_0x1708,0xaf));const a345_0x27c6=function(_0x2ecb12,_0x170872){_0x2ecb12=_0x2ecb12-0x0;let _0x27c6c9=a345_0x1708[_0x2ecb12];return _0x27c6c9;};const _0x3fb7c6=a345_0x27c6;'use strict';const Sequelize=require(_0x3fb7c6('0x0'));module['exports']={'name':{'type':Sequelize[_0x3fb7c6('0x1')]},'description':{'type':Sequelize[_0x3fb7c6('0x1')]},'host':{'type':Sequelize[_0x3fb7c6('0x1')]},'zone':{'type':Sequelize[_0x3fb7c6('0x1')]},'clientId':{'type':Sequelize[_0x3fb7c6('0x1')]},'clientSecret':{'type':Sequelize[_0x3fb7c6('0x1')]},'serverUrl':{'type':Sequelize[_0x3fb7c6('0x1')]},'code':{'type':Sequelize[_0x3fb7c6('0x1')]},'refreshToken':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.controller.js b/server/api/intZohoAccount/intZohoAccount.controller.js index 792a0c8..726401f 100644 --- a/server/api/intZohoAccount/intZohoAccount.controller.js +++ b/server/api/intZohoAccount/intZohoAccount.controller.js @@ -1 +1 @@ -const a346_0x4c66=['request-promise-native','attributes','ZohoConfiguration','Call_Start_Time','getConfigurations','GET','stringify','Call_Type','substring','getFields','params','system_mandatory','Unable\x20to\x20retrieve\x20the\x20access\x20token','../../config/logger','where','undefined','statusCode','refresh_token','util','fieldName','type','https://accounts.zoho.eu','refreshToken','intersection','Content-Range','picklist','catch','../../components/parsers/qs','Call_Duration','sort','update','Wrong\x20credentials','length','https://accounts.zoho.com.au','create','include','model','nolimit','custom_field','https://accounts.zoho.com.cn','/oauth/v2/token','https://www.zohoapis.%s/crm/v2/settings/fields','../../mysqldb','ZohoField','rawAttributes','Subjects','zone','display_label','message','error','pick','pick_list_values','query','Descriptions','order','status','clientSecret','getFields,\x20%s,\x20%s,\x20%s','Zoho-oauthtoken\x20','index','sendStatus','json','options','host','findOne','destroy','lastIndexOf','WhoId','fields','ZohoAccount','includeAll','Call_Result','filters','api_name','then','body','Refresh\x20Token\x20not\x20available\x20for\x20the\x20account','like','slice','test','../../components/integrations/configuration','filter','Owner','getDescriptions','limit','https://accounts.zoho.in','sequelize','name','clientId','stack','offset','code','Description','access_token','POST','keys','response','includes','merge','serverUrl','com','map','findAll'];(function(_0x436cc3,_0x4c669a){const _0xacafa8=function(_0x1fc175){while(--_0x1fc175){_0x436cc3['push'](_0x436cc3['shift']());}};_0xacafa8(++_0x4c669a);}(a346_0x4c66,0x108));const a346_0xacaf=function(_0x436cc3,_0x4c669a){_0x436cc3=_0x436cc3-0x0;let _0xacafa8=a346_0x4c66[_0x436cc3];return _0xacafa8;};const _0x17231b=a346_0xacaf;'use strict';const rp=require(_0x17231b('0x2d')),util=require(_0x17231b('0x3f')),_=require('lodash'),qs=require(_0x17231b('0x48')),logger=require(_0x17231b('0x3a'))('api'),db=require(_0x17231b('0x57'))['db'],{Op}=require(_0x17231b('0x1c')),integrations=require(_0x17231b('0x16'));function respondWithResult(_0x1fc175,_0x2cbea2){return _0x2cbea2=_0x2cbea2||0xc8,function(_0x5e64ed){const _0x478f32=a346_0xacaf;if(_0x5e64ed)return _0x1fc175[_0x478f32('0x64')](_0x2cbea2)[_0x478f32('0x3')](_0x5e64ed);};}function respondWithFilteredResult(_0x44fbc7,_0x9f74d3){return function(_0x1ac680){const _0x48fc8e=a346_0xacaf;if(_0x1ac680){const _0x305eab=_0x1ac680['count'],_0x139869=_0x9f74d3[_0x48fc8e('0x20')];let _0x1fd13a=_0x9f74d3['offset']+_0x9f74d3[_0x48fc8e('0x1a')],_0x369b23;return _0x1fd13a>=_0x305eab?(_0x1fd13a=_0x305eab,_0x369b23=0xc8):_0x369b23=0xce,_0x44fbc7[_0x48fc8e('0x64')](_0x369b23),_0x44fbc7['set'](_0x48fc8e('0x45'),_0x139869+'-'+_0x1fd13a+'/'+_0x305eab)['json'](_0x1ac680);}return null;};}function saveUpdates(_0x4b0eba){return function(_0x51f3e2){const _0x5c9315=a346_0xacaf;if(_0x51f3e2)return _0x51f3e2['update'](_0x4b0eba)[_0x5c9315('0x10')](function(_0x34b9ab){return _0x34b9ab;});return null;};}function removeEntity(_0x59e504){return function(_0x470e42){const _0x3afb74=a346_0xacaf;if(_0x470e42)return _0x470e42[_0x3afb74('0x7')]()['then'](function(){const _0x4516b2=_0x3afb74;_0x59e504[_0x4516b2('0x64')](0xcc)['end']();});};}function handleEntityNotFound(_0x3714c8){return function(_0x154b46){const _0x4352f7=a346_0xacaf;return!_0x154b46&&_0x3714c8[_0x4352f7('0x2')](0x194),_0x154b46;};}function handleError(_0x219db9,_0x686993){return _0x686993=_0x686993||0x1f4,function(_0x42d09e){const _0x1775c5=a346_0xacaf;logger[_0x1775c5('0x5e')](_0x42d09e[_0x1775c5('0x1f')]),_0x42d09e[_0x1775c5('0x1d')]&&delete _0x42d09e[_0x1775c5('0x1d')],_0x219db9[_0x1775c5('0x64')](_0x686993)['send'](_0x42d09e);};}exports[_0x17231b('0x1')]=function(_0x35da06,_0x38b122){const _0x1b4c4e=_0x17231b;let _0x3d854d={};const _0x556c20={},_0x2062dc={'count':0x0,'rows':[]},_0x404333=_[_0x1b4c4e('0x2b')](db[_0x1b4c4e('0xb')][_0x1b4c4e('0x59')],function(_0x388b19){const _0x54e009=_0x1b4c4e;return{'name':_0x388b19[_0x54e009('0x40')],'type':_0x388b19['type']['key']};});_0x556c20[_0x1b4c4e('0x51')]=_[_0x1b4c4e('0x2b')](_0x404333,'name'),_0x556c20[_0x1b4c4e('0x61')]=_['keys'](_0x35da06[_0x1b4c4e('0x61')]),_0x556c20['filters']=_[_0x1b4c4e('0x44')](_0x556c20[_0x1b4c4e('0x51')],_0x556c20[_0x1b4c4e('0x61')]),_0x3d854d[_0x1b4c4e('0x2e')]=_[_0x1b4c4e('0x44')](_0x556c20['model'],qs[_0x1b4c4e('0xa')](_0x35da06[_0x1b4c4e('0x61')]['fields'])),_0x3d854d[_0x1b4c4e('0x2e')]=_0x3d854d[_0x1b4c4e('0x2e')]['length']?_0x3d854d[_0x1b4c4e('0x2e')]:_0x556c20[_0x1b4c4e('0x51')];typeof _0x35da06[_0x1b4c4e('0x61')][_0x1b4c4e('0x52')]===_0x1b4c4e('0x3c')&&(_0x3d854d['limit']=qs['limit'](_0x35da06['query'][_0x1b4c4e('0x1a')]),_0x3d854d[_0x1b4c4e('0x20')]=qs['offset'](_0x35da06[_0x1b4c4e('0x61')][_0x1b4c4e('0x20')]));_0x3d854d[_0x1b4c4e('0x63')]=qs['sort'](_0x35da06[_0x1b4c4e('0x61')][_0x1b4c4e('0x4a')]),_0x3d854d[_0x1b4c4e('0x3b')]=qs[_0x1b4c4e('0xe')](_[_0x1b4c4e('0x5f')](_0x35da06[_0x1b4c4e('0x61')],_0x556c20[_0x1b4c4e('0xe')]),_0x404333);_0x35da06[_0x1b4c4e('0x61')]['filter']&&(_0x3d854d[_0x1b4c4e('0x3b')]=_['merge'](_0x3d854d[_0x1b4c4e('0x3b')],{[Op['or']]:_[_0x1b4c4e('0x2b')](_0x404333,function(_0x21bdf6){const _0x526d6a=_0x1b4c4e;if(_0x21bdf6[_0x526d6a('0x41')]!=='VIRTUAL'){const _0x567753={};return _0x567753[_0x21bdf6[_0x526d6a('0x1d')]]={[Op[_0x526d6a('0x13')]]:'%'+_0x35da06['query'][_0x526d6a('0x17')]+'%'},_0x567753;}})}));_0x3d854d=_[_0x1b4c4e('0x28')]({},_0x3d854d,_0x35da06[_0x1b4c4e('0x4')]);const _0x851059={'where':_0x3d854d[_0x1b4c4e('0x3b')]};return db[_0x1b4c4e('0xb')]['count'](_0x851059)[_0x1b4c4e('0x10')](function(_0x2ce83f){const _0x48ad59=_0x1b4c4e;return _0x2062dc['count']=_0x2ce83f,_0x35da06[_0x48ad59('0x61')][_0x48ad59('0xc')]&&(_0x3d854d['include']=[{'all':!![]}]),db[_0x48ad59('0xb')][_0x48ad59('0x2c')](_0x3d854d);})[_0x1b4c4e('0x10')](function(_0x4541c0){return _0x2062dc['rows']=_0x4541c0,_0x2062dc;})[_0x1b4c4e('0x10')](respondWithFilteredResult(_0x38b122,_0x3d854d))[_0x1b4c4e('0x47')](handleError(_0x38b122,null));},exports['show']=function(_0x11f0a9,_0x3cc756){const _0x2b8b19=_0x17231b;let _0x59edf9={'raw':![],'where':{'id':_0x11f0a9['params']['id']}};const _0x39423a={};return _0x39423a[_0x2b8b19('0x51')]=_['keys'](db[_0x2b8b19('0xb')]['rawAttributes']),_0x39423a[_0x2b8b19('0x61')]=_['keys'](_0x11f0a9[_0x2b8b19('0x61')]),_0x39423a[_0x2b8b19('0xe')]=_[_0x2b8b19('0x44')](_0x39423a[_0x2b8b19('0x51')],_0x39423a['query']),_0x59edf9[_0x2b8b19('0x2e')]=_[_0x2b8b19('0x44')](_0x39423a[_0x2b8b19('0x51')],qs[_0x2b8b19('0xa')](_0x11f0a9[_0x2b8b19('0x61')][_0x2b8b19('0xa')])),_0x59edf9['attributes']=_0x59edf9[_0x2b8b19('0x2e')][_0x2b8b19('0x4d')]?_0x59edf9['attributes']:_0x39423a[_0x2b8b19('0x51')],_0x11f0a9[_0x2b8b19('0x61')]['includeAll']&&(_0x59edf9[_0x2b8b19('0x50')]=[{'all':!![]}]),_0x59edf9=_[_0x2b8b19('0x28')]({},_0x59edf9,_0x11f0a9['options']),db['ZohoAccount']['findOne'](_0x59edf9)[_0x2b8b19('0x10')](handleEntityNotFound(_0x3cc756,null))[_0x2b8b19('0x10')](respondWithResult(_0x3cc756,null))[_0x2b8b19('0x47')](handleError(_0x3cc756,null));},exports[_0x17231b('0x4f')]=function(_0x18f318,_0x8781dd){const _0x1a0d39=_0x17231b;return db['ZohoAccount']['create'](_0x18f318[_0x1a0d39('0x11')],{})[_0x1a0d39('0x10')](respondWithResult(_0x8781dd,0xc9))['catch'](handleError(_0x8781dd,null));},exports[_0x17231b('0x4b')]=function(_0x541e97,_0x405825){const _0x4bd2ab=_0x17231b;return _0x541e97['body']['id']&&delete _0x541e97['body']['id'],db['ZohoAccount'][_0x4bd2ab('0x6')]({'where':{'id':_0x541e97[_0x4bd2ab('0x37')]['id']}})[_0x4bd2ab('0x10')](handleEntityNotFound(_0x405825,null))[_0x4bd2ab('0x10')](saveUpdates(_0x541e97[_0x4bd2ab('0x11')],null))[_0x4bd2ab('0x10')](respondWithResult(_0x405825,null))['catch'](handleError(_0x405825,null));},exports[_0x17231b('0x7')]=function(_0x438d0c,_0x197cfb){const _0x297ae6=_0x17231b;return db['ZohoAccount']['findOne']({'where':{'id':_0x438d0c['params']['id']}})['then'](handleEntityNotFound(_0x197cfb,null))[_0x297ae6('0x10')](removeEntity(_0x197cfb,null))['catch'](handleError(_0x197cfb,null));},exports[_0x17231b('0x31')]=function(_0x3f2258,_0x5b64a2){const _0x40f700=_0x17231b;let _0x391a9e={};const _0x15bfb3={};let _0x205011,_0x19583b;return db[_0x40f700('0xb')][_0x40f700('0x6')]({'where':{'id':_0x3f2258[_0x40f700('0x37')]['id']}})['then'](handleEntityNotFound(_0x5b64a2,null))[_0x40f700('0x10')](function(_0x4bdc5d){const _0xafa281=_0x40f700;if(_0x4bdc5d)return _0x205011=_0x4bdc5d,_0x15bfb3[_0xafa281('0x51')]=_[_0xafa281('0x25')](db[_0xafa281('0x2f')]['rawAttributes']),_0x15bfb3[_0xafa281('0x61')]=_[_0xafa281('0x25')](_0x3f2258[_0xafa281('0x61')]),_0x15bfb3['filters']=_[_0xafa281('0x44')](_0x15bfb3[_0xafa281('0x51')],_0x15bfb3[_0xafa281('0x61')]),_0x391a9e[_0xafa281('0x2e')]=_['intersection'](_0x15bfb3[_0xafa281('0x51')],qs[_0xafa281('0xa')](_0x3f2258[_0xafa281('0x61')][_0xafa281('0xa')])),_0x391a9e[_0xafa281('0x2e')]=_0x391a9e[_0xafa281('0x2e')][_0xafa281('0x4d')]?_0x391a9e[_0xafa281('0x2e')]:_0x15bfb3[_0xafa281('0x51')],_0x391a9e['order']=qs['sort'](_0x3f2258[_0xafa281('0x61')]['sort']),_0x391a9e[_0xafa281('0x3b')]=qs[_0xafa281('0xe')](_[_0xafa281('0x5f')](_0x3f2258[_0xafa281('0x61')],_0x15bfb3[_0xafa281('0xe')])),_0x3f2258[_0xafa281('0x61')][_0xafa281('0x17')]&&(_0x391a9e[_0xafa281('0x3b')]=_[_0xafa281('0x28')](_0x391a9e[_0xafa281('0x3b')],{[Op['or']]:_[_0xafa281('0x2b')](_0x391a9e[_0xafa281('0x2e')],function(_0x125994){const _0x1c9e9b=_0xafa281,_0x13a916={};return _0x13a916[_0x125994]={[Op['like']]:'%'+_0x3f2258[_0x1c9e9b('0x61')][_0x1c9e9b('0x17')]+'%'},_0x13a916;})})),_0x391a9e=_[_0xafa281('0x28')]({},_0x391a9e,_0x3f2258[_0xafa281('0x4')]),_0x205011['getConfigurations'](_0x391a9e);})[_0x40f700('0x10')](function(_0x2ca6da){const _0x3c5a08=_0x40f700;if(_0x2ca6da)return _0x19583b=_0x2ca6da[_0x3c5a08('0x4d')],typeof _0x3f2258[_0x3c5a08('0x61')][_0x3c5a08('0x52')]===_0x3c5a08('0x3c')&&(_0x391a9e[_0x3c5a08('0x1a')]=qs['limit'](_0x3f2258[_0x3c5a08('0x61')][_0x3c5a08('0x1a')]),_0x391a9e['offset']=qs[_0x3c5a08('0x20')](_0x3f2258[_0x3c5a08('0x61')][_0x3c5a08('0x20')])),_0x205011[_0x3c5a08('0x31')](_0x391a9e);})['then'](function(_0x510a72){if(_0x510a72)return _0x510a72?{'count':_0x19583b,'rows':_0x510a72}:null;})[_0x40f700('0x10')](respondWithResult(_0x5b64a2,null))[_0x40f700('0x47')](handleError(_0x5b64a2,null));},exports['addConfiguration']=function(_0x373517,_0x39258c){const _0x36350a=_0x17231b;return _0x373517[_0x36350a('0x11')]['id']&&delete _0x373517[_0x36350a('0x11')]['id'],db[_0x36350a('0xb')][_0x36350a('0x6')]({'where':{'id':_0x373517[_0x36350a('0x37')]['id']}})[_0x36350a('0x10')](handleEntityNotFound(_0x39258c,null))[_0x36350a('0x10')](function(_0x5e667f){const _0x4ac2be=_0x36350a;if(_0x5e667f)return _0x373517['body']['AccountId']=_0x5e667f['id'],_0x373517[_0x4ac2be('0x11')][_0x4ac2be('0x5a')]=integrations['getSubjects'](_0x373517[_0x4ac2be('0x11')]['channel'],_0x373517[_0x4ac2be('0x11')]['type']),_0x373517['body'][_0x4ac2be('0x62')]=integrations[_0x4ac2be('0x19')](_0x373517[_0x4ac2be('0x11')]['channel'],_0x373517['body'][_0x4ac2be('0x41')]),db[_0x4ac2be('0x2f')][_0x4ac2be('0x4f')](_0x373517[_0x4ac2be('0x11')],{'include':[{'model':db[_0x4ac2be('0x58')],'as':'Subjects'},{'model':db['ZohoField'],'as':'Descriptions'}]});return null;})[_0x36350a('0x10')](respondWithResult(_0x39258c,null))['catch'](handleError(_0x39258c,null));};function getAccessToken(_0x241a1c){return new Promise(function(_0x19c596,_0x24ebbd){const _0x2a9424=a346_0xacaf;let _0x4fc6ff;switch(_0x241a1c[_0x2a9424('0x5b')]){case'US':_0x4fc6ff='https://accounts.zoho.com';break;case'AU':_0x4fc6ff=_0x2a9424('0x4e');break;case'EU':_0x4fc6ff=_0x2a9424('0x42');break;case'IN':_0x4fc6ff=_0x2a9424('0x1b');break;case'CN':_0x4fc6ff=_0x2a9424('0x54');break;default:_0x4fc6ff=_0x2a9424('0x42');break;}const _0x108a13={'method':_0x2a9424('0x24'),'uri':_0x4fc6ff+_0x2a9424('0x55'),'qs':{'refresh_token':_0x241a1c[_0x2a9424('0x43')],'client_id':_0x241a1c[_0x2a9424('0x1e')],'client_secret':_0x241a1c[_0x2a9424('0x65')],'grant_type':_0x2a9424('0x3e')},'json':!![]};return rp(_0x108a13)['then'](function(_0x55620a){const _0x523284=_0x2a9424;_0x55620a[_0x523284('0x23')]?_0x19c596(_0x55620a[_0x523284('0x23')]):_0x24ebbd(_0x523284('0x39'));})[_0x2a9424('0x47')](function(_0x5132f6){_0x24ebbd(_0x5132f6);});});}exports[_0x17231b('0x36')]=function(_0x1fc843,_0x7db004){const _0x1bd4e9=_0x17231b;let _0x3daaf5,_0x541877,_0x256a5d,_0x3e2c71;return db[_0x1bd4e9('0xb')][_0x1bd4e9('0x6')]({'where':{'id':_0x1fc843['params']['id']},'attributes':['id',_0x1bd4e9('0x5'),_0x1bd4e9('0x5b'),_0x1bd4e9('0x1e'),'clientSecret',_0x1bd4e9('0x29'),_0x1bd4e9('0x21'),'refreshToken']})['then'](handleEntityNotFound(_0x7db004,null))['then'](function(_0x3fec5c){const _0x3f4c92=_0x1bd4e9;_0x3e2c71=_0x3fec5c,_0x3daaf5=_0x3e2c71[_0x3f4c92('0x5')],_0x541877=_0x3daaf5==='zoho.eu'?'eu':_0x3f4c92('0x2a'),_0x256a5d=_0x3e2c71[_0x3f4c92('0x29')];const _0x2e5ce0=_0x256a5d[_0x3f4c92('0x14')](-0x1);(_0x2e5ce0==='/'||_0x2e5ce0==='\x5c'||_0x2e5ce0===':')&&(_0x256a5d=_0x256a5d[_0x3f4c92('0x35')](0x0,_0x256a5d[_0x3f4c92('0x8')](_0x2e5ce0)));if(!_0x3e2c71[_0x3f4c92('0x43')])throw new Error(_0x3f4c92('0x12'));return getAccessToken(_0x3e2c71);})[_0x1bd4e9('0x10')](function(_0x1d661b){const _0x301e60=_0x1bd4e9;if(_0x1d661b)return rp({'method':_0x301e60('0x32'),'uri':util['format'](_0x301e60('0x56'),_0x541877),'qs':{'module':'Calls'},'headers':{'Authorization':_0x301e60('0x0')+_0x1d661b},'json':!![]});})['then'](function(_0x2eaa5e){const _0x2201df=_0x1bd4e9;if(_0x2eaa5e){if(_0x2eaa5e[_0x2201df('0x26')]&&_0x2eaa5e[_0x2201df('0x26')]['error'])throw new Error(_0x2eaa5e['response'][_0x2201df('0x5e')][_0x2201df('0x5d')]);const _0x3dde59=[];let _0x10cd3e=[];const _0x110dce=[_0x2201df('0x18'),'Subject',_0x2201df('0x22'),_0x2201df('0x9'),_0x2201df('0x49'),_0x2201df('0xd'),_0x2201df('0x30'),_0x2201df('0x34')];_0x10cd3e=_['remove'](_0x2eaa5e['fields'],function(_0xfb5e87){const _0x39fa6c=_0x2201df;return _0x110dce[_0x39fa6c('0x27')](_0xfb5e87[_0x39fa6c('0xf')]);});for(let _0x55a152=0x0;_0x55a152<_0x10cd3e[_0x2201df('0x4d')];_0x55a152++){_0x10cd3e[_0x55a152][_0x2201df('0x38')]===![]&&_0x3dde59['push']({'id':_0x10cd3e[_0x55a152]['id'],'name':_0x10cd3e[_0x55a152][_0x2201df('0x5c')],'custom':_0x10cd3e[_0x55a152][_0x2201df('0x53')],'options':_0x10cd3e[_0x55a152]['data_type']===_0x2201df('0x46')&&_0x10cd3e[_0x55a152][_0x2201df('0x60')][_0x2201df('0x4d')]>-0x1?_[_0x2201df('0x2b')](_0x10cd3e[_0x55a152]['pick_list_values'],function(_0x253038){return{'name':_0x253038,'value':_0x253038};}):[]});}return{'count':_0x3dde59[_0x2201df('0x4d')],'rows':_0x3dde59};}else return{'count':0x0,'rows':[]};})[_0x1bd4e9('0x10')](respondWithResult(_0x7db004,null))['catch'](function(_0x46c2f0){const _0x29f41b=_0x1bd4e9;let _0x23e200=_0x1fc843[_0x29f41b('0x61')][_0x29f41b('0x15')]?0x1f4:_0x46c2f0[_0x29f41b('0x3d')]||0x1f4;logger[_0x29f41b('0x5e')](_0x29f41b('0x66'),_0x29f41b('0x36'),_0x23e200,JSON[_0x29f41b('0x33')](_0x46c2f0)),delete _0x46c2f0[_0x29f41b('0x1d')],_0x23e200===0x191&&(_0x23e200=0x190),_0x7db004['status'](_0x23e200)['send'](_0x1fc843[_0x29f41b('0x61')][_0x29f41b('0x15')]?{'message':_0x29f41b('0x4c'),'statusCode':_0x46c2f0[_0x29f41b('0x3d')]}:_0x46c2f0);});}; \ No newline at end of file +const a346_0x4a3b=['undefined','getFields','com','response','nolimit','ZohoField','ZohoConfiguration','fields','Zoho-oauthtoken\x20','Description','update','length','sort','Subject','stack','fieldName','lastIndexOf','Call_Start_Time','format','offset','data_type','addConfiguration','body','https://accounts.zoho.com.cn','../../mysqldb','findOne','Calls','status','sequelize','test','where','https://accounts.zoho.eu','lodash','key','display_label','Subjects','statusCode','api','WhoId','message','https://accounts.zoho.in','access_token','remove','options','clientSecret','Owner','model','getDescriptions','query','rawAttributes','zone','Wrong\x20credentials','Call_Result','Call_Duration','getConfigurations','serverUrl','AccountId','pick','end','keys','GET','system_mandatory','Content-Range','VIRTUAL','map','count','Unable\x20to\x20retrieve\x20the\x20access\x20token','order','channel','error','name','merge','includes','create','push','clientId','json','attributes','catch','limit','Refresh\x20Token\x20not\x20available\x20for\x20the\x20account','includeAll','filters','params','then','ZohoAccount','type','custom_field','refresh_token','include','getSubjects','filter','like','findAll','https://www.zohoapis.%s/crm/v2/settings/fields','code','intersection','../../components/parsers/qs','../../config/logger','refreshToken','rows','host','sendStatus'];(function(_0x522859,_0x4a3bfd){const _0x4a150b=function(_0x5085df){while(--_0x5085df){_0x522859['push'](_0x522859['shift']());}};_0x4a150b(++_0x4a3bfd);}(a346_0x4a3b,0xc7));const a346_0x4a15=function(_0x522859,_0x4a3bfd){_0x522859=_0x522859-0x0;let _0x4a150b=a346_0x4a3b[_0x522859];return _0x4a150b;};const _0x16ab89=a346_0x4a15;'use strict';const rp=require('request-promise-native'),util=require('util'),_=require(_0x16ab89('0x27')),qs=require(_0x16ab89('0x1')),logger=require(_0x16ab89('0x2'))(_0x16ab89('0x2c')),db=require(_0x16ab89('0x1f'))['db'],{Op}=require(_0x16ab89('0x23')),integrations=require('../../components/integrations/configuration');function respondWithResult(_0x5085df,_0x1c77cd){return _0x1c77cd=_0x1c77cd||0xc8,function(_0x1044bc){const _0x41a25d=a346_0x4a15;if(_0x1044bc)return _0x5085df['status'](_0x1c77cd)[_0x41a25d('0x53')](_0x1044bc);};}function respondWithFilteredResult(_0x573f72,_0x847f26){return function(_0x431745){const _0x2a09ab=a346_0x4a15;if(_0x431745){const _0x31a433=_0x431745[_0x2a09ab('0x48')],_0x3866db=_0x847f26[_0x2a09ab('0x1a')];let _0x305c69=_0x847f26['offset']+_0x847f26[_0x2a09ab('0x56')],_0x321946;return _0x305c69>=_0x31a433?(_0x305c69=_0x31a433,_0x321946=0xc8):_0x321946=0xce,_0x573f72[_0x2a09ab('0x22')](_0x321946),_0x573f72['set'](_0x2a09ab('0x45'),_0x3866db+'-'+_0x305c69+'/'+_0x31a433)['json'](_0x431745);}return null;};}function saveUpdates(_0x2537c2){return function(_0x1c17b2){const _0x33965c=a346_0x4a15;if(_0x1c17b2)return _0x1c17b2[_0x33965c('0x11')](_0x2537c2)['then'](function(_0x1c325f){return _0x1c325f;});return null;};}function removeEntity(_0x2afd69){return function(_0x101ea6){const _0x24126c=a346_0x4a15;if(_0x101ea6)return _0x101ea6['destroy']()[_0x24126c('0x5b')](function(){const _0x341fc1=_0x24126c;_0x2afd69[_0x341fc1('0x22')](0xcc)[_0x341fc1('0x41')]();});};}function handleEntityNotFound(_0x2e99cb){return function(_0x6b2fac){const _0xc8e1c4=a346_0x4a15;return!_0x6b2fac&&_0x2e99cb[_0xc8e1c4('0x6')](0x194),_0x6b2fac;};}function handleError(_0x52c1fa,_0x8126b8){return _0x8126b8=_0x8126b8||0x1f4,function(_0x16cf05){const _0x50a323=a346_0x4a15;logger['error'](_0x16cf05[_0x50a323('0x15')]),_0x16cf05[_0x50a323('0x4d')]&&delete _0x16cf05[_0x50a323('0x4d')],_0x52c1fa[_0x50a323('0x22')](_0x8126b8)['send'](_0x16cf05);};}exports['index']=function(_0x4ff7ba,_0x6444f2){const _0x25f926=_0x16ab89;let _0x576796={};const _0x3e5a98={},_0x5714a8={'count':0x0,'rows':[]},_0xb3c375=_[_0x25f926('0x47')](db[_0x25f926('0x5c')][_0x25f926('0x38')],function(_0x40438b){const _0x241694=_0x25f926;return{'name':_0x40438b[_0x241694('0x16')],'type':_0x40438b[_0x241694('0x5d')][_0x241694('0x28')]};});_0x3e5a98[_0x25f926('0x35')]=_[_0x25f926('0x47')](_0xb3c375,_0x25f926('0x4d')),_0x3e5a98[_0x25f926('0x37')]=_[_0x25f926('0x42')](_0x4ff7ba['query']),_0x3e5a98[_0x25f926('0x59')]=_['intersection'](_0x3e5a98[_0x25f926('0x35')],_0x3e5a98[_0x25f926('0x37')]),_0x576796[_0x25f926('0x54')]=_[_0x25f926('0x0')](_0x3e5a98[_0x25f926('0x35')],qs['fields'](_0x4ff7ba[_0x25f926('0x37')][_0x25f926('0xe')])),_0x576796[_0x25f926('0x54')]=_0x576796[_0x25f926('0x54')][_0x25f926('0x12')]?_0x576796[_0x25f926('0x54')]:_0x3e5a98[_0x25f926('0x35')];typeof _0x4ff7ba[_0x25f926('0x37')]['nolimit']===_0x25f926('0x7')&&(_0x576796[_0x25f926('0x56')]=qs['limit'](_0x4ff7ba[_0x25f926('0x37')][_0x25f926('0x56')]),_0x576796['offset']=qs[_0x25f926('0x1a')](_0x4ff7ba[_0x25f926('0x37')][_0x25f926('0x1a')]));_0x576796[_0x25f926('0x4a')]=qs[_0x25f926('0x13')](_0x4ff7ba[_0x25f926('0x37')]['sort']),_0x576796['where']=qs['filters'](_['pick'](_0x4ff7ba[_0x25f926('0x37')],_0x3e5a98[_0x25f926('0x59')]),_0xb3c375);_0x4ff7ba[_0x25f926('0x37')]['filter']&&(_0x576796[_0x25f926('0x25')]=_[_0x25f926('0x4e')](_0x576796['where'],{[Op['or']]:_[_0x25f926('0x47')](_0xb3c375,function(_0x4b3d8b){const _0xfe1f0=_0x25f926;if(_0x4b3d8b[_0xfe1f0('0x5d')]!==_0xfe1f0('0x46')){const _0x160bb7={};return _0x160bb7[_0x4b3d8b[_0xfe1f0('0x4d')]]={[Op[_0xfe1f0('0x63')]]:'%'+_0x4ff7ba[_0xfe1f0('0x37')][_0xfe1f0('0x62')]+'%'},_0x160bb7;}})}));_0x576796=_[_0x25f926('0x4e')]({},_0x576796,_0x4ff7ba[_0x25f926('0x32')]);const _0x5062c3={'where':_0x576796[_0x25f926('0x25')]};return db[_0x25f926('0x5c')][_0x25f926('0x48')](_0x5062c3)[_0x25f926('0x5b')](function(_0x43a12f){const _0x1a4af4=_0x25f926;return _0x5714a8[_0x1a4af4('0x48')]=_0x43a12f,_0x4ff7ba[_0x1a4af4('0x37')][_0x1a4af4('0x58')]&&(_0x576796[_0x1a4af4('0x60')]=[{'all':!![]}]),db[_0x1a4af4('0x5c')][_0x1a4af4('0x64')](_0x576796);})[_0x25f926('0x5b')](function(_0x5a2119){const _0x241d71=_0x25f926;return _0x5714a8[_0x241d71('0x4')]=_0x5a2119,_0x5714a8;})[_0x25f926('0x5b')](respondWithFilteredResult(_0x6444f2,_0x576796))[_0x25f926('0x55')](handleError(_0x6444f2,null));},exports['show']=function(_0xe81e24,_0x5385a9){const _0x434fb6=_0x16ab89;let _0x121a93={'raw':![],'where':{'id':_0xe81e24[_0x434fb6('0x5a')]['id']}};const _0x1a4843={};return _0x1a4843[_0x434fb6('0x35')]=_[_0x434fb6('0x42')](db[_0x434fb6('0x5c')][_0x434fb6('0x38')]),_0x1a4843[_0x434fb6('0x37')]=_[_0x434fb6('0x42')](_0xe81e24[_0x434fb6('0x37')]),_0x1a4843['filters']=_['intersection'](_0x1a4843[_0x434fb6('0x35')],_0x1a4843[_0x434fb6('0x37')]),_0x121a93['attributes']=_['intersection'](_0x1a4843[_0x434fb6('0x35')],qs[_0x434fb6('0xe')](_0xe81e24[_0x434fb6('0x37')][_0x434fb6('0xe')])),_0x121a93[_0x434fb6('0x54')]=_0x121a93[_0x434fb6('0x54')][_0x434fb6('0x12')]?_0x121a93['attributes']:_0x1a4843[_0x434fb6('0x35')],_0xe81e24['query']['includeAll']&&(_0x121a93[_0x434fb6('0x60')]=[{'all':!![]}]),_0x121a93=_[_0x434fb6('0x4e')]({},_0x121a93,_0xe81e24[_0x434fb6('0x32')]),db['ZohoAccount'][_0x434fb6('0x20')](_0x121a93)['then'](handleEntityNotFound(_0x5385a9,null))[_0x434fb6('0x5b')](respondWithResult(_0x5385a9,null))[_0x434fb6('0x55')](handleError(_0x5385a9,null));},exports['create']=function(_0x2df435,_0x385959){const _0x55c140=_0x16ab89;return db[_0x55c140('0x5c')][_0x55c140('0x50')](_0x2df435['body'],{})[_0x55c140('0x5b')](respondWithResult(_0x385959,0xc9))[_0x55c140('0x55')](handleError(_0x385959,null));},exports[_0x16ab89('0x11')]=function(_0xc3b2ef,_0x11149d){const _0xbf5125=_0x16ab89;return _0xc3b2ef['body']['id']&&delete _0xc3b2ef[_0xbf5125('0x1d')]['id'],db[_0xbf5125('0x5c')][_0xbf5125('0x20')]({'where':{'id':_0xc3b2ef[_0xbf5125('0x5a')]['id']}})[_0xbf5125('0x5b')](handleEntityNotFound(_0x11149d,null))['then'](saveUpdates(_0xc3b2ef['body'],null))['then'](respondWithResult(_0x11149d,null))[_0xbf5125('0x55')](handleError(_0x11149d,null));},exports['destroy']=function(_0x4361b5,_0x1a196f){const _0x4ced9b=_0x16ab89;return db[_0x4ced9b('0x5c')][_0x4ced9b('0x20')]({'where':{'id':_0x4361b5['params']['id']}})[_0x4ced9b('0x5b')](handleEntityNotFound(_0x1a196f,null))[_0x4ced9b('0x5b')](removeEntity(_0x1a196f,null))[_0x4ced9b('0x55')](handleError(_0x1a196f,null));},exports[_0x16ab89('0x3d')]=function(_0x1267f6,_0x42d747){const _0x3f3afa=_0x16ab89;let _0x4a9ddd={};const _0x2eb937={};let _0x47d64e,_0x4c4640;return db[_0x3f3afa('0x5c')][_0x3f3afa('0x20')]({'where':{'id':_0x1267f6['params']['id']}})[_0x3f3afa('0x5b')](handleEntityNotFound(_0x42d747,null))[_0x3f3afa('0x5b')](function(_0x2083bf){const _0x36a777=_0x3f3afa;if(_0x2083bf)return _0x47d64e=_0x2083bf,_0x2eb937[_0x36a777('0x35')]=_['keys'](db[_0x36a777('0xd')]['rawAttributes']),_0x2eb937['query']=_['keys'](_0x1267f6['query']),_0x2eb937[_0x36a777('0x59')]=_['intersection'](_0x2eb937[_0x36a777('0x35')],_0x2eb937[_0x36a777('0x37')]),_0x4a9ddd[_0x36a777('0x54')]=_[_0x36a777('0x0')](_0x2eb937[_0x36a777('0x35')],qs[_0x36a777('0xe')](_0x1267f6[_0x36a777('0x37')][_0x36a777('0xe')])),_0x4a9ddd[_0x36a777('0x54')]=_0x4a9ddd['attributes'][_0x36a777('0x12')]?_0x4a9ddd['attributes']:_0x2eb937[_0x36a777('0x35')],_0x4a9ddd[_0x36a777('0x4a')]=qs[_0x36a777('0x13')](_0x1267f6[_0x36a777('0x37')][_0x36a777('0x13')]),_0x4a9ddd[_0x36a777('0x25')]=qs[_0x36a777('0x59')](_[_0x36a777('0x40')](_0x1267f6['query'],_0x2eb937[_0x36a777('0x59')])),_0x1267f6[_0x36a777('0x37')][_0x36a777('0x62')]&&(_0x4a9ddd[_0x36a777('0x25')]=_[_0x36a777('0x4e')](_0x4a9ddd[_0x36a777('0x25')],{[Op['or']]:_[_0x36a777('0x47')](_0x4a9ddd[_0x36a777('0x54')],function(_0x15c59d){const _0x4df20f=_0x36a777,_0x2471ee={};return _0x2471ee[_0x15c59d]={[Op['like']]:'%'+_0x1267f6[_0x4df20f('0x37')]['filter']+'%'},_0x2471ee;})})),_0x4a9ddd=_[_0x36a777('0x4e')]({},_0x4a9ddd,_0x1267f6[_0x36a777('0x32')]),_0x47d64e[_0x36a777('0x3d')](_0x4a9ddd);})[_0x3f3afa('0x5b')](function(_0x52d140){const _0x56bee5=_0x3f3afa;if(_0x52d140)return _0x4c4640=_0x52d140[_0x56bee5('0x12')],typeof _0x1267f6[_0x56bee5('0x37')][_0x56bee5('0xb')]==='undefined'&&(_0x4a9ddd[_0x56bee5('0x56')]=qs[_0x56bee5('0x56')](_0x1267f6[_0x56bee5('0x37')][_0x56bee5('0x56')]),_0x4a9ddd[_0x56bee5('0x1a')]=qs[_0x56bee5('0x1a')](_0x1267f6[_0x56bee5('0x37')][_0x56bee5('0x1a')])),_0x47d64e[_0x56bee5('0x3d')](_0x4a9ddd);})['then'](function(_0x175f05){if(_0x175f05)return _0x175f05?{'count':_0x4c4640,'rows':_0x175f05}:null;})[_0x3f3afa('0x5b')](respondWithResult(_0x42d747,null))['catch'](handleError(_0x42d747,null));},exports[_0x16ab89('0x1c')]=function(_0x4b738c,_0x37587c){const _0x252052=_0x16ab89;return _0x4b738c[_0x252052('0x1d')]['id']&&delete _0x4b738c[_0x252052('0x1d')]['id'],db[_0x252052('0x5c')][_0x252052('0x20')]({'where':{'id':_0x4b738c[_0x252052('0x5a')]['id']}})[_0x252052('0x5b')](handleEntityNotFound(_0x37587c,null))['then'](function(_0x3a17d3){const _0x22c418=_0x252052;if(_0x3a17d3)return _0x4b738c[_0x22c418('0x1d')][_0x22c418('0x3f')]=_0x3a17d3['id'],_0x4b738c['body'][_0x22c418('0x2a')]=integrations[_0x22c418('0x61')](_0x4b738c[_0x22c418('0x1d')][_0x22c418('0x4b')],_0x4b738c[_0x22c418('0x1d')][_0x22c418('0x5d')]),_0x4b738c[_0x22c418('0x1d')]['Descriptions']=integrations[_0x22c418('0x36')](_0x4b738c[_0x22c418('0x1d')][_0x22c418('0x4b')],_0x4b738c[_0x22c418('0x1d')]['type']),db[_0x22c418('0xd')][_0x22c418('0x50')](_0x4b738c[_0x22c418('0x1d')],{'include':[{'model':db['ZohoField'],'as':_0x22c418('0x2a')},{'model':db[_0x22c418('0xc')],'as':'Descriptions'}]});return null;})[_0x252052('0x5b')](respondWithResult(_0x37587c,null))[_0x252052('0x55')](handleError(_0x37587c,null));};function getAccessToken(_0x21f606){return new Promise(function(_0x2654fc,_0x4d0337){const _0x4f81e4=a346_0x4a15;let _0x5bd49f;switch(_0x21f606[_0x4f81e4('0x39')]){case'US':_0x5bd49f='https://accounts.zoho.com';break;case'AU':_0x5bd49f='https://accounts.zoho.com.au';break;case'EU':_0x5bd49f=_0x4f81e4('0x26');break;case'IN':_0x5bd49f=_0x4f81e4('0x2f');break;case'CN':_0x5bd49f=_0x4f81e4('0x1e');break;default:_0x5bd49f='https://accounts.zoho.eu';break;}const _0x47efdb={'method':'POST','uri':_0x5bd49f+'/oauth/v2/token','qs':{'refresh_token':_0x21f606[_0x4f81e4('0x3')],'client_id':_0x21f606[_0x4f81e4('0x52')],'client_secret':_0x21f606[_0x4f81e4('0x33')],'grant_type':_0x4f81e4('0x5f')},'json':!![]};return rp(_0x47efdb)[_0x4f81e4('0x5b')](function(_0x3db60a){const _0x26eb0d=_0x4f81e4;_0x3db60a[_0x26eb0d('0x30')]?_0x2654fc(_0x3db60a['access_token']):_0x4d0337(_0x26eb0d('0x49'));})[_0x4f81e4('0x55')](function(_0x313b2e){_0x4d0337(_0x313b2e);});});}exports[_0x16ab89('0x8')]=function(_0x267a5b,_0x4c4080){const _0x5d4e77=_0x16ab89;let _0x37bc22,_0x32b147,_0x2d9052,_0x53a9c7;return db[_0x5d4e77('0x5c')][_0x5d4e77('0x20')]({'where':{'id':_0x267a5b[_0x5d4e77('0x5a')]['id']},'attributes':['id',_0x5d4e77('0x5'),'zone','clientId',_0x5d4e77('0x33'),'serverUrl',_0x5d4e77('0x66'),_0x5d4e77('0x3')]})[_0x5d4e77('0x5b')](handleEntityNotFound(_0x4c4080,null))[_0x5d4e77('0x5b')](function(_0x4e57bd){const _0x3372c8=_0x5d4e77;_0x53a9c7=_0x4e57bd,_0x37bc22=_0x53a9c7['host'],_0x32b147=_0x37bc22==='zoho.eu'?'eu':_0x3372c8('0x9'),_0x2d9052=_0x53a9c7[_0x3372c8('0x3e')];const _0x35ebdf=_0x2d9052['slice'](-0x1);(_0x35ebdf==='/'||_0x35ebdf==='\x5c'||_0x35ebdf===':')&&(_0x2d9052=_0x2d9052['substring'](0x0,_0x2d9052[_0x3372c8('0x17')](_0x35ebdf)));if(!_0x53a9c7['refreshToken'])throw new Error(_0x3372c8('0x57'));return getAccessToken(_0x53a9c7);})[_0x5d4e77('0x5b')](function(_0x5ce8bf){const _0x873ebe=_0x5d4e77;if(_0x5ce8bf)return rp({'method':_0x873ebe('0x43'),'uri':util[_0x873ebe('0x19')](_0x873ebe('0x65'),_0x32b147),'qs':{'module':_0x873ebe('0x21')},'headers':{'Authorization':_0x873ebe('0xf')+_0x5ce8bf},'json':!![]});})['then'](function(_0x208f8a){const _0x5e9673=_0x5d4e77;if(_0x208f8a){if(_0x208f8a[_0x5e9673('0xa')]&&_0x208f8a[_0x5e9673('0xa')]['error'])throw new Error(_0x208f8a['response'][_0x5e9673('0x4c')][_0x5e9673('0x2e')]);const _0x300bcd=[];let _0x44d7d1=[];const _0x4dc2c1=[_0x5e9673('0x34'),_0x5e9673('0x14'),_0x5e9673('0x10'),_0x5e9673('0x2d'),_0x5e9673('0x3c'),_0x5e9673('0x3b'),_0x5e9673('0x18'),'Call_Type'];_0x44d7d1=_[_0x5e9673('0x31')](_0x208f8a[_0x5e9673('0xe')],function(_0x540591){const _0x156890=_0x5e9673;return _0x4dc2c1[_0x156890('0x4f')](_0x540591['api_name']);});for(let _0x1832c5=0x0;_0x1832c5<_0x44d7d1[_0x5e9673('0x12')];_0x1832c5++){_0x44d7d1[_0x1832c5][_0x5e9673('0x44')]===![]&&_0x300bcd[_0x5e9673('0x51')]({'id':_0x44d7d1[_0x1832c5]['id'],'name':_0x44d7d1[_0x1832c5][_0x5e9673('0x29')],'custom':_0x44d7d1[_0x1832c5][_0x5e9673('0x5e')],'options':_0x44d7d1[_0x1832c5][_0x5e9673('0x1b')]==='picklist'&&_0x44d7d1[_0x1832c5]['pick_list_values'][_0x5e9673('0x12')]>-0x1?_[_0x5e9673('0x47')](_0x44d7d1[_0x1832c5]['pick_list_values'],function(_0x248380){return{'name':_0x248380,'value':_0x248380};}):[]});}return{'count':_0x300bcd[_0x5e9673('0x12')],'rows':_0x300bcd};}else return{'count':0x0,'rows':[]};})[_0x5d4e77('0x5b')](respondWithResult(_0x4c4080,null))[_0x5d4e77('0x55')](function(_0x486e42){const _0x21e494=_0x5d4e77;let _0x3c8bfd=_0x267a5b['query'][_0x21e494('0x24')]?0x1f4:_0x486e42[_0x21e494('0x2b')]||0x1f4;logger[_0x21e494('0x4c')]('getFields,\x20%s,\x20%s,\x20%s',_0x21e494('0x8'),_0x3c8bfd,JSON['stringify'](_0x486e42)),delete _0x486e42[_0x21e494('0x4d')],_0x3c8bfd===0x191&&(_0x3c8bfd=0x190),_0x4c4080[_0x21e494('0x22')](_0x3c8bfd)['send'](_0x267a5b[_0x21e494('0x37')][_0x21e494('0x24')]?{'message':_0x21e494('0x3a'),'statusCode':_0x486e42[_0x21e494('0x2b')]}:_0x486e42);});}; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.model.js b/server/api/intZohoAccount/intZohoAccount.model.js index 2fcef97..90faba0 100644 --- a/server/api/intZohoAccount/intZohoAccount.model.js +++ b/server/api/intZohoAccount/intZohoAccount.model.js @@ -1 +1 @@ -const a347_0x441e=['name','./intZohoAccount.attributes','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','clientSecret','application/x-www-form-urlencoded','request-promise-native','refresh_token','then','util','changed','host','catch','parse','serverUrl','clientId','https://accounts.zoho.in','refreshToken','slice','POST','../../config/logger','info','format','define','ZohoAccount','int_zoho_accounts','code','lastIndexOf','substring','/oauth/v2/token','inspect','https://accounts.zoho.eu','error','zone','api','https://accounts.zoho.com'];(function(_0x10a798,_0x441e93){const _0x4618e0=function(_0x58eb44){while(--_0x58eb44){_0x10a798['push'](_0x10a798['shift']());}};_0x4618e0(++_0x441e93);}(a347_0x441e,0x6a));const a347_0x4618=function(_0x10a798,_0x441e93){_0x10a798=_0x10a798-0x0;let _0x4618e0=a347_0x441e[_0x10a798];return _0x4618e0;};const _0x53f3f6=a347_0x4618;'use strict';const util=require(_0x53f3f6('0x7')),logger=require(_0x53f3f6('0x12'))(_0x53f3f6('0x20')),rp=require(_0x53f3f6('0x4')),attributes=require(_0x53f3f6('0x0'));module['exports']=function(_0x58eb44){const _0x32de53=_0x53f3f6,_0x2c34f6=_0x58eb44[_0x32de53('0x15')](_0x32de53('0x16'),attributes,{'tableName':_0x32de53('0x17'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x1fc793){const _0x30c9ae=_0x32de53;if(_0x1fc793[_0x30c9ae('0x8')]('zone')||_0x1fc793[_0x30c9ae('0x8')](_0x30c9ae('0xc'))||_0x1fc793[_0x30c9ae('0x8')](_0x30c9ae('0xd'))||_0x1fc793[_0x30c9ae('0x8')](_0x30c9ae('0x2'))||_0x1fc793[_0x30c9ae('0x8')]('code')||_0x1fc793[_0x30c9ae('0x8')](_0x30c9ae('0x9'))){let _0xcfd1cd,_0x3018fd;_0xcfd1cd=_0x1fc793[_0x30c9ae('0xc')];const _0x5c8a9e=_0xcfd1cd['slice'](-0x1);(_0x5c8a9e==='/'||_0x5c8a9e==='\x5c'||_0x5c8a9e===':')&&(_0xcfd1cd=_0xcfd1cd[_0x30c9ae('0x1a')](0x0,_0xcfd1cd['lastIndexOf'](_0x5c8a9e)));switch(_0x1fc793[_0x30c9ae('0x1f')]){case'US':_0x3018fd=_0x30c9ae('0x21');break;case'AU':_0x3018fd='https://accounts.zoho.com.au';break;case'IN':_0x3018fd=_0x30c9ae('0xe');break;case'CN':_0x3018fd='https://accounts.zoho.com.cn';break;default:_0x3018fd='https://accounts.zoho.eu';break;}const _0x5a3599={'method':_0x30c9ae('0x11'),'uri':_0x3018fd+_0x30c9ae('0x1b'),'form':{'grant_type':'authorization_code','client_id':_0x1fc793[_0x30c9ae('0xd')],'client_secret':_0x1fc793[_0x30c9ae('0x2')],'redirect_uri':_0x1fc793[_0x30c9ae('0xc')],'code':_0x1fc793[_0x30c9ae('0x18')]},'headers':{'Content-Type':_0x30c9ae('0x3')}};let _0x9347fe=null;return rp(_0x5a3599)[_0x30c9ae('0x6')](function(_0x3d1183){const _0x1aee51=_0x30c9ae;return _0x9347fe=JSON['parse'](_0x3d1183),_0x9347fe[_0x1aee51('0x5')]?(_0x1fc793['refreshToken']=_0x9347fe[_0x1aee51('0x5')],logger[_0x1aee51('0x13')](util[_0x1aee51('0x14')]('ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d',_0x1fc793['name'],_0x1fc793['id']))):logger[_0x1aee51('0x1e')](util[_0x1aee51('0x14')](_0x1aee51('0x1'),_0x1fc793['name'],_0x1fc793['id']),util[_0x1aee51('0x1c')](_0x9347fe,{'showHidden':![],'depth':null})),null;})[_0x30c9ae('0xa')](function(_0x3b181d){const _0x6e091f=_0x30c9ae;return logger['error'](util[_0x6e091f('0x14')](_0x6e091f('0x1'),_0x1fc793['name'],_0x1fc793['id']),util[_0x6e091f('0x1c')](_0x9347fe,{'showHidden':![],'depth':null})),_0x3b181d;});}else return null;},'beforeUpdate':function(_0x2813e8){const _0x541789=_0x32de53;if(_0x2813e8[_0x541789('0x8')](_0x541789('0x1f'))||_0x2813e8[_0x541789('0x8')](_0x541789('0xc'))||_0x2813e8['changed'](_0x541789('0xd'))||_0x2813e8[_0x541789('0x8')](_0x541789('0x2'))||_0x2813e8[_0x541789('0x8')](_0x541789('0x18'))||_0x2813e8[_0x541789('0x8')](_0x541789('0x9'))){let _0x329390,_0x3d1662;_0x329390=_0x2813e8['serverUrl'];const _0x2fb6cc=_0x329390[_0x541789('0x10')](-0x1);(_0x2fb6cc==='/'||_0x2fb6cc==='\x5c'||_0x2fb6cc===':')&&(_0x329390=_0x329390[_0x541789('0x1a')](0x0,_0x329390[_0x541789('0x19')](_0x2fb6cc)));switch(_0x2813e8[_0x541789('0x1f')]){case'US':_0x3d1662=_0x541789('0x21');break;case'AU':_0x3d1662='https://accounts.zoho.com.au';break;case'IN':_0x3d1662=_0x541789('0xe');break;case'CN':_0x3d1662='https://accounts.zoho.com.cn';break;default:_0x3d1662=_0x541789('0x1d');break;}const _0x420d88={'method':_0x541789('0x11'),'uri':_0x3d1662+_0x541789('0x1b'),'form':{'grant_type':'authorization_code','client_id':_0x2813e8[_0x541789('0xd')],'client_secret':_0x2813e8['clientSecret'],'redirect_uri':_0x2813e8['serverUrl'],'code':_0x2813e8[_0x541789('0x18')]},'headers':{'Content-Type':_0x541789('0x3')}};let _0x2ec212=null;return rp(_0x420d88)[_0x541789('0x6')](function(_0x189794){const _0x2364f5=_0x541789;return _0x2ec212=JSON[_0x2364f5('0xb')](_0x189794),_0x2ec212[_0x2364f5('0x5')]?(_0x2813e8[_0x2364f5('0xf')]=_0x2ec212[_0x2364f5('0x5')],logger[_0x2364f5('0x13')](util['format']('ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d',_0x2813e8[_0x2364f5('0x22')],_0x2813e8['id']))):logger[_0x2364f5('0x1e')](util[_0x2364f5('0x14')]('ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d',_0x2813e8[_0x2364f5('0x22')],_0x2813e8['id']),util[_0x2364f5('0x1c')](_0x2ec212,{'showHidden':![],'depth':null})),null;})[_0x541789('0xa')](function(_0xdcbd91){const _0x2aef6f=_0x541789;return logger[_0x2aef6f('0x1e')](util[_0x2aef6f('0x14')](_0x2aef6f('0x1'),_0x2813e8[_0x2aef6f('0x22')],_0x2813e8['id']),util[_0x2aef6f('0x1c')](_0x2ec212,{'showHidden':![],'depth':null})),_0xdcbd91;});}else return null;}}});return _0x2c34f6;}; \ No newline at end of file +const a347_0x391b=['slice','refresh_token','lastIndexOf','ZohoAccount','substring','parse','refreshToken','error','https://accounts.zoho.com','then','format','https://accounts.zoho.com.au','clientId','application/x-www-form-urlencoded','zone','ZohoAccount,\x20Unable\x20to\x20generate\x20the\x20refresh\x20token\x20for\x20account\x20\x22%s\x22\x20#%d','POST','/oauth/v2/token','ZohoAccount,\x20Refresh\x20token\x20successfully\x20generated\x20for\x20account\x20\x22%s\x22\x20#%d','api','clientSecret','host','catch','info','util','serverUrl','name','int_zoho_accounts','https://accounts.zoho.eu','./intZohoAccount.attributes','changed','https://accounts.zoho.com.cn','inspect','code','https://accounts.zoho.in'];(function(_0x147855,_0x391bf4){const _0xf40995=function(_0x24701e){while(--_0x24701e){_0x147855['push'](_0x147855['shift']());}};_0xf40995(++_0x391bf4);}(a347_0x391b,0x103));const a347_0xf409=function(_0x147855,_0x391bf4){_0x147855=_0x147855-0x0;let _0xf40995=a347_0x391b[_0x147855];return _0xf40995;};const _0x1cbddd=a347_0xf409;'use strict';const util=require(_0x1cbddd('0xa')),logger=require('../../config/logger')(_0x1cbddd('0x5')),rp=require('request-promise-native'),attributes=require(_0x1cbddd('0xf'));module['exports']=function(_0x24701e){const _0x304110=_0x1cbddd,_0x3f49a2=_0x24701e['define'](_0x304110('0x18'),attributes,{'tableName':_0x304110('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x4329eb){const _0x3bc45f=_0x304110;if(_0x4329eb[_0x3bc45f('0x10')](_0x3bc45f('0x0'))||_0x4329eb[_0x3bc45f('0x10')](_0x3bc45f('0xb'))||_0x4329eb[_0x3bc45f('0x10')](_0x3bc45f('0x21'))||_0x4329eb[_0x3bc45f('0x10')](_0x3bc45f('0x6'))||_0x4329eb[_0x3bc45f('0x10')](_0x3bc45f('0x13'))||_0x4329eb[_0x3bc45f('0x10')](_0x3bc45f('0x7'))){let _0x4a077f,_0x3285bc;_0x4a077f=_0x4329eb['serverUrl'];const _0x4a8abd=_0x4a077f['slice'](-0x1);(_0x4a8abd==='/'||_0x4a8abd==='\x5c'||_0x4a8abd===':')&&(_0x4a077f=_0x4a077f['substring'](0x0,_0x4a077f[_0x3bc45f('0x17')](_0x4a8abd)));switch(_0x4329eb[_0x3bc45f('0x0')]){case'US':_0x3285bc=_0x3bc45f('0x1d');break;case'AU':_0x3285bc=_0x3bc45f('0x20');break;case'IN':_0x3285bc=_0x3bc45f('0x14');break;case'CN':_0x3285bc=_0x3bc45f('0x11');break;default:_0x3285bc=_0x3bc45f('0xe');break;}const _0x73f64={'method':'POST','uri':_0x3285bc+'/oauth/v2/token','form':{'grant_type':'authorization_code','client_id':_0x4329eb[_0x3bc45f('0x21')],'client_secret':_0x4329eb[_0x3bc45f('0x6')],'redirect_uri':_0x4329eb[_0x3bc45f('0xb')],'code':_0x4329eb[_0x3bc45f('0x13')]},'headers':{'Content-Type':_0x3bc45f('0x22')}};let _0x49b88e=null;return rp(_0x73f64)[_0x3bc45f('0x1e')](function(_0x51e7ef){const _0x3969b0=_0x3bc45f;return _0x49b88e=JSON[_0x3969b0('0x1a')](_0x51e7ef),_0x49b88e['refresh_token']?(_0x4329eb[_0x3969b0('0x1b')]=_0x49b88e['refresh_token'],logger['info'](util[_0x3969b0('0x1f')](_0x3969b0('0x4'),_0x4329eb[_0x3969b0('0xc')],_0x4329eb['id']))):logger['error'](util[_0x3969b0('0x1f')](_0x3969b0('0x1'),_0x4329eb['name'],_0x4329eb['id']),util[_0x3969b0('0x12')](_0x49b88e,{'showHidden':![],'depth':null})),null;})[_0x3bc45f('0x8')](function(_0x4340a8){const _0x5ade60=_0x3bc45f;return logger['error'](util[_0x5ade60('0x1f')](_0x5ade60('0x1'),_0x4329eb['name'],_0x4329eb['id']),util[_0x5ade60('0x12')](_0x49b88e,{'showHidden':![],'depth':null})),_0x4340a8;});}else return null;},'beforeUpdate':function(_0x5e85f9){const _0x2a27ed=_0x304110;if(_0x5e85f9[_0x2a27ed('0x10')](_0x2a27ed('0x0'))||_0x5e85f9['changed'](_0x2a27ed('0xb'))||_0x5e85f9[_0x2a27ed('0x10')]('clientId')||_0x5e85f9['changed'](_0x2a27ed('0x6'))||_0x5e85f9[_0x2a27ed('0x10')](_0x2a27ed('0x13'))||_0x5e85f9[_0x2a27ed('0x10')]('host')){let _0x11b9b4,_0x2c0af3;_0x11b9b4=_0x5e85f9[_0x2a27ed('0xb')];const _0x2ba3d5=_0x11b9b4[_0x2a27ed('0x15')](-0x1);(_0x2ba3d5==='/'||_0x2ba3d5==='\x5c'||_0x2ba3d5===':')&&(_0x11b9b4=_0x11b9b4[_0x2a27ed('0x19')](0x0,_0x11b9b4[_0x2a27ed('0x17')](_0x2ba3d5)));switch(_0x5e85f9[_0x2a27ed('0x0')]){case'US':_0x2c0af3=_0x2a27ed('0x1d');break;case'AU':_0x2c0af3=_0x2a27ed('0x20');break;case'IN':_0x2c0af3='https://accounts.zoho.in';break;case'CN':_0x2c0af3=_0x2a27ed('0x11');break;default:_0x2c0af3=_0x2a27ed('0xe');break;}const _0x213c68={'method':_0x2a27ed('0x2'),'uri':_0x2c0af3+_0x2a27ed('0x3'),'form':{'grant_type':'authorization_code','client_id':_0x5e85f9[_0x2a27ed('0x21')],'client_secret':_0x5e85f9[_0x2a27ed('0x6')],'redirect_uri':_0x5e85f9['serverUrl'],'code':_0x5e85f9['code']},'headers':{'Content-Type':_0x2a27ed('0x22')}};let _0x543198=null;return rp(_0x213c68)[_0x2a27ed('0x1e')](function(_0x157c7f){const _0x5a39e5=_0x2a27ed;return _0x543198=JSON['parse'](_0x157c7f),_0x543198[_0x5a39e5('0x16')]?(_0x5e85f9[_0x5a39e5('0x1b')]=_0x543198['refresh_token'],logger[_0x5a39e5('0x9')](util[_0x5a39e5('0x1f')](_0x5a39e5('0x4'),_0x5e85f9[_0x5a39e5('0xc')],_0x5e85f9['id']))):logger[_0x5a39e5('0x1c')](util['format'](_0x5a39e5('0x1'),_0x5e85f9['name'],_0x5e85f9['id']),util[_0x5a39e5('0x12')](_0x543198,{'showHidden':![],'depth':null})),null;})['catch'](function(_0x23b281){const _0x469e6a=_0x2a27ed;return logger[_0x469e6a('0x1c')](util[_0x469e6a('0x1f')](_0x469e6a('0x1'),_0x5e85f9[_0x469e6a('0xc')],_0x5e85f9['id']),util['inspect'](_0x543198,{'showHidden':![],'depth':null})),_0x23b281;});}else return null;}}});return _0x3f49a2;}; \ No newline at end of file diff --git a/server/api/intZohoAccount/intZohoAccount.rpc.js b/server/api/intZohoAccount/intZohoAccount.rpc.js index 86225dc..b41ca92 100644 --- a/server/api/intZohoAccount/intZohoAccount.rpc.js +++ b/server/api/intZohoAccount/intZohoAccount.rpc.js @@ -1 +1 @@ -const a348_0x2dd8=['lodash','options','findAll','rpc','ZohoAccount','where','info','debug','include','GetZohoAccount','ShowZohoAccount','error','catch','raw','model','../../mysqldb','then','../../config/logger','findOne','map','message','attributes','limit','stringify'];(function(_0x15ce36,_0x2dd8bc){const _0x5b3778=function(_0x2d58e1){while(--_0x2d58e1){_0x15ce36['push'](_0x15ce36['shift']());}};_0x5b3778(++_0x2dd8bc);}(a348_0x2dd8,0x160));const a348_0x5b37=function(_0x15ce36,_0x2dd8bc){_0x15ce36=_0x15ce36-0x0;let _0x5b3778=a348_0x2dd8[_0x15ce36];return _0x5b3778;};const _0x30ca60=a348_0x5b37;'use strict';const _=require(_0x30ca60('0x8')),db=require(_0x30ca60('0x17'))['db'],logger=require(_0x30ca60('0x1'))(_0x30ca60('0xb'));exports[_0x30ca60('0x11')]=function(_0x2d58e1){const _0x4c28ed=this;return new Promise(function(_0x2d961e,_0x2baac9){const _0x5d1821=a348_0x5b37;return db[_0x5d1821('0xc')][_0x5d1821('0xa')]({'raw':_0x2d58e1[_0x5d1821('0x9')]?_0x2d58e1['options'][_0x5d1821('0x15')]===undefined?!![]:![]:!![],'where':_0x2d58e1[_0x5d1821('0x9')]?_0x2d58e1[_0x5d1821('0x9')][_0x5d1821('0xd')]||null:null,'attributes':_0x2d58e1['options']?_0x2d58e1[_0x5d1821('0x9')][_0x5d1821('0x5')]||null:null,'limit':_0x2d58e1[_0x5d1821('0x9')]?_0x2d58e1['options'][_0x5d1821('0x6')]||null:null,'include':_0x2d58e1[_0x5d1821('0x9')]?_0x2d58e1[_0x5d1821('0x9')]['include']?_[_0x5d1821('0x3')](_0x2d58e1['options'][_0x5d1821('0x10')],function(_0x8b02c9){const _0x2fdd4e=_0x5d1821;return{'model':db[_0x8b02c9[_0x2fdd4e('0x16')]],'as':_0x8b02c9['as'],'attributes':_0x8b02c9['attributes'],'include':_0x8b02c9[_0x2fdd4e('0x10')]?_[_0x2fdd4e('0x3')](_0x8b02c9[_0x2fdd4e('0x10')],function(_0x25d47a){const _0x5142b8=_0x2fdd4e;return{'model':db[_0x25d47a[_0x5142b8('0x16')]],'as':_0x25d47a['as'],'attributes':_0x25d47a[_0x5142b8('0x5')],'include':_0x25d47a[_0x5142b8('0x10')]?_[_0x5142b8('0x3')](_0x25d47a[_0x5142b8('0x10')],function(_0x2afdf6){const _0x5c915f=_0x5142b8;return{'model':db[_0x2afdf6[_0x5c915f('0x16')]],'as':_0x2afdf6['as'],'attributes':_0x2afdf6['attributes']};}):[]};}):[]};}):[]:[]})[_0x5d1821('0x0')](function(_0x277703){const _0x514c05=_0x5d1821;logger['info'](_0x514c05('0x11'),_0x2d58e1),logger[_0x514c05('0xf')]('GetZohoAccount',_0x2d58e1,JSON[_0x514c05('0x7')](_0x277703)),_0x2d961e(_0x277703);})[_0x5d1821('0x14')](function(_0x2bd32d){const _0x508764=_0x5d1821;logger[_0x508764('0x13')]('GetZohoAccount',_0x2bd32d[_0x508764('0x4')],_0x2d58e1),_0x2baac9(_0x4c28ed[_0x508764('0x13')](0x1f4,_0x2bd32d[_0x508764('0x4')]));});});},exports[_0x30ca60('0x12')]=function(_0x571a8c){const _0x43b03a=this;return new Promise(function(_0x41efc9,_0x4bbed2){const _0x5b9a28=a348_0x5b37;return db[_0x5b9a28('0xc')][_0x5b9a28('0x2')]({'raw':_0x571a8c[_0x5b9a28('0x9')]?_0x571a8c[_0x5b9a28('0x9')][_0x5b9a28('0x15')]===undefined?!![]:![]:!![],'where':_0x571a8c[_0x5b9a28('0x9')]?_0x571a8c[_0x5b9a28('0x9')][_0x5b9a28('0xd')]||null:null,'attributes':_0x571a8c[_0x5b9a28('0x9')]?_0x571a8c[_0x5b9a28('0x9')][_0x5b9a28('0x5')]||null:null,'include':_0x571a8c[_0x5b9a28('0x9')]?_0x571a8c[_0x5b9a28('0x9')]['include']?_[_0x5b9a28('0x3')](_0x571a8c[_0x5b9a28('0x9')][_0x5b9a28('0x10')],function(_0x4d2ee6){const _0x23fd19=_0x5b9a28;return{'model':db[_0x4d2ee6[_0x23fd19('0x16')]],'as':_0x4d2ee6['as'],'attributes':_0x4d2ee6[_0x23fd19('0x5')],'include':_0x4d2ee6['include']?_[_0x23fd19('0x3')](_0x4d2ee6[_0x23fd19('0x10')],function(_0x5743c5){const _0x1c55ed=_0x23fd19;return{'model':db[_0x5743c5['model']],'as':_0x5743c5['as'],'attributes':_0x5743c5[_0x1c55ed('0x5')],'include':_0x5743c5['include']?_[_0x1c55ed('0x3')](_0x5743c5['include'],function(_0x5aa15e){const _0x2590c8=_0x1c55ed;return{'model':db[_0x5aa15e[_0x2590c8('0x16')]],'as':_0x5aa15e['as'],'attributes':_0x5aa15e[_0x2590c8('0x5')]};}):[]};}):[]};}):[]:[]})[_0x5b9a28('0x0')](function(_0x3d18d3){const _0x77d3a9=_0x5b9a28;logger[_0x77d3a9('0xe')](_0x77d3a9('0x12'),_0x571a8c),logger[_0x77d3a9('0xf')]('ShowZohoAccount',_0x571a8c,JSON[_0x77d3a9('0x7')](_0x3d18d3)),_0x41efc9(_0x3d18d3);})[_0x5b9a28('0x14')](function(_0x558f82){const _0x19e0e3=_0x5b9a28;logger[_0x19e0e3('0x13')](_0x19e0e3('0x12'),_0x558f82[_0x19e0e3('0x4')],_0x571a8c),_0x4bbed2(_0x43b03a[_0x19e0e3('0x13')](0x1f4,_0x558f82[_0x19e0e3('0x4')]));});});}; \ No newline at end of file +const a348_0xb0ad=['GetZohoAccount','info','map','ShowZohoAccount','lodash','stringify','then','limit','include','raw','error','../../config/logger','ZohoAccount','where','findOne','../../mysqldb','rpc','options','message','model','attributes','debug'];(function(_0x5048ca,_0xb0ad82){const _0x333ef8=function(_0x2d0cef){while(--_0x2d0cef){_0x5048ca['push'](_0x5048ca['shift']());}};_0x333ef8(++_0xb0ad82);}(a348_0xb0ad,0x1a3));const a348_0x333e=function(_0x5048ca,_0xb0ad82){_0x5048ca=_0x5048ca-0x0;let _0x333ef8=a348_0xb0ad[_0x5048ca];return _0x333ef8;};const _0x123fc7=a348_0x333e;'use strict';const _=require(_0x123fc7('0x3')),db=require(_0x123fc7('0xe'))['db'],logger=require(_0x123fc7('0xa'))(_0x123fc7('0xf'));exports[_0x123fc7('0x15')]=function(_0x2d0cef){const _0x9f454=this;return new Promise(function(_0xda8f83,_0x1e4142){const _0x5834e4=a348_0x333e;return db['ZohoAccount']['findAll']({'raw':_0x2d0cef[_0x5834e4('0x10')]?_0x2d0cef['options'][_0x5834e4('0x8')]===undefined?!![]:![]:!![],'where':_0x2d0cef[_0x5834e4('0x10')]?_0x2d0cef[_0x5834e4('0x10')]['where']||null:null,'attributes':_0x2d0cef[_0x5834e4('0x10')]?_0x2d0cef[_0x5834e4('0x10')][_0x5834e4('0x13')]||null:null,'limit':_0x2d0cef['options']?_0x2d0cef[_0x5834e4('0x10')][_0x5834e4('0x6')]||null:null,'include':_0x2d0cef[_0x5834e4('0x10')]?_0x2d0cef[_0x5834e4('0x10')]['include']?_[_0x5834e4('0x1')](_0x2d0cef[_0x5834e4('0x10')]['include'],function(_0x37b84b){const _0x1c0301=_0x5834e4;return{'model':db[_0x37b84b[_0x1c0301('0x12')]],'as':_0x37b84b['as'],'attributes':_0x37b84b[_0x1c0301('0x13')],'include':_0x37b84b[_0x1c0301('0x7')]?_['map'](_0x37b84b['include'],function(_0x29662){const _0x1a4368=_0x1c0301;return{'model':db[_0x29662[_0x1a4368('0x12')]],'as':_0x29662['as'],'attributes':_0x29662[_0x1a4368('0x13')],'include':_0x29662[_0x1a4368('0x7')]?_[_0x1a4368('0x1')](_0x29662['include'],function(_0x3f55ca){const _0x3ce708=_0x1a4368;return{'model':db[_0x3f55ca[_0x3ce708('0x12')]],'as':_0x3f55ca['as'],'attributes':_0x3f55ca[_0x3ce708('0x13')]};}):[]};}):[]};}):[]:[]})[_0x5834e4('0x5')](function(_0x218a8a){const _0x8ed902=_0x5834e4;logger[_0x8ed902('0x0')](_0x8ed902('0x15'),_0x2d0cef),logger[_0x8ed902('0x14')](_0x8ed902('0x15'),_0x2d0cef,JSON[_0x8ed902('0x4')](_0x218a8a)),_0xda8f83(_0x218a8a);})['catch'](function(_0x7a51ca){const _0x2ea7a9=_0x5834e4;logger[_0x2ea7a9('0x9')]('GetZohoAccount',_0x7a51ca['message'],_0x2d0cef),_0x1e4142(_0x9f454[_0x2ea7a9('0x9')](0x1f4,_0x7a51ca[_0x2ea7a9('0x11')]));});});},exports[_0x123fc7('0x2')]=function(_0x3a1944){const _0x48e644=this;return new Promise(function(_0x1b03a4,_0x188c57){const _0x3849ce=a348_0x333e;return db[_0x3849ce('0xb')][_0x3849ce('0xd')]({'raw':_0x3a1944[_0x3849ce('0x10')]?_0x3a1944[_0x3849ce('0x10')]['raw']===undefined?!![]:![]:!![],'where':_0x3a1944['options']?_0x3a1944['options'][_0x3849ce('0xc')]||null:null,'attributes':_0x3a1944[_0x3849ce('0x10')]?_0x3a1944[_0x3849ce('0x10')][_0x3849ce('0x13')]||null:null,'include':_0x3a1944['options']?_0x3a1944[_0x3849ce('0x10')]['include']?_[_0x3849ce('0x1')](_0x3a1944[_0x3849ce('0x10')][_0x3849ce('0x7')],function(_0x1038c3){const _0x44e1be=_0x3849ce;return{'model':db[_0x1038c3[_0x44e1be('0x12')]],'as':_0x1038c3['as'],'attributes':_0x1038c3[_0x44e1be('0x13')],'include':_0x1038c3[_0x44e1be('0x7')]?_[_0x44e1be('0x1')](_0x1038c3[_0x44e1be('0x7')],function(_0x6eeef1){const _0x95091e=_0x44e1be;return{'model':db[_0x6eeef1['model']],'as':_0x6eeef1['as'],'attributes':_0x6eeef1[_0x95091e('0x13')],'include':_0x6eeef1[_0x95091e('0x7')]?_[_0x95091e('0x1')](_0x6eeef1[_0x95091e('0x7')],function(_0x50cc51){const _0xa113b=_0x95091e;return{'model':db[_0x50cc51['model']],'as':_0x50cc51['as'],'attributes':_0x50cc51[_0xa113b('0x13')]};}):[]};}):[]};}):[]:[]})[_0x3849ce('0x5')](function(_0x587058){const _0x342e4b=_0x3849ce;logger[_0x342e4b('0x0')](_0x342e4b('0x2'),_0x3a1944),logger['debug'](_0x342e4b('0x2'),_0x3a1944,JSON[_0x342e4b('0x4')](_0x587058)),_0x1b03a4(_0x587058);})['catch'](function(_0x42ac08){const _0x12c2cc=_0x3849ce;logger[_0x12c2cc('0x9')](_0x12c2cc('0x2'),_0x42ac08[_0x12c2cc('0x11')],_0x3a1944),_0x188c57(_0x48e644[_0x12c2cc('0x9')](0x1f4,_0x42ac08['message']));});});}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/index.js b/server/api/intZohoConfiguration/index.js index c6623b0..66a10bb 100644 --- a/server/api/intZohoConfiguration/index.js +++ b/server/api/intZohoConfiguration/index.js @@ -1 +1 @@ -const a349_0x1bc0=['delete','put','../../components/auth/service','getDescriptions','/:id/fields','/:id','getFields','update','getSubjects','index','/:id/subjects','show','create','get','./intZohoConfiguration.controller','isAuthenticated','post','exports','destroy','/:id/descriptions'];(function(_0x28705e,_0x1bc095){const _0x2fddfc=function(_0x50fd84){while(--_0x50fd84){_0x28705e['push'](_0x28705e['shift']());}};_0x2fddfc(++_0x1bc095);}(a349_0x1bc0,0x19b));const a349_0x2fdd=function(_0x28705e,_0x1bc095){_0x28705e=_0x28705e-0x0;let _0x2fddfc=a349_0x1bc0[_0x28705e];return _0x2fddfc;};const _0x53396a=a349_0x2fdd;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x53396a('0xb')),controller=require(_0x53396a('0x3'));router[_0x53396a('0x2')]('/',auth[_0x53396a('0x4')](),controller[_0x53396a('0x12')]),router[_0x53396a('0x2')]('/:id',auth[_0x53396a('0x4')](),controller[_0x53396a('0x0')]),router['get'](_0x53396a('0xd'),auth[_0x53396a('0x4')](),controller[_0x53396a('0xf')]),router[_0x53396a('0x2')](_0x53396a('0x13'),auth[_0x53396a('0x4')](),controller[_0x53396a('0x11')]),router[_0x53396a('0x2')](_0x53396a('0x8'),auth[_0x53396a('0x4')](),controller[_0x53396a('0xc')]),router[_0x53396a('0x5')]('/',auth[_0x53396a('0x4')](),controller[_0x53396a('0x1')]),router[_0x53396a('0xa')](_0x53396a('0xe'),auth[_0x53396a('0x4')](),controller[_0x53396a('0x10')]),router[_0x53396a('0x9')](_0x53396a('0xe'),auth['isAuthenticated'](),controller[_0x53396a('0x7')]),module[_0x53396a('0x6')]=router; \ No newline at end of file +const a349_0x1f25=['./intZohoConfiguration.controller','getSubjects','post','/:id/subjects','create','update','delete','getDescriptions','index','isAuthenticated','express','show','get','/:id/fields','/:id','destroy','Router'];(function(_0x30a2db,_0x1f25c6){const _0x2a7ae9=function(_0x435060){while(--_0x435060){_0x30a2db['push'](_0x30a2db['shift']());}};_0x2a7ae9(++_0x1f25c6);}(a349_0x1f25,0xa2));const a349_0x2a7a=function(_0x30a2db,_0x1f25c6){_0x30a2db=_0x30a2db-0x0;let _0x2a7ae9=a349_0x1f25[_0x30a2db];return _0x2a7ae9;};const _0x4e9963=a349_0x2a7a;'use strict';const express=require(_0x4e9963('0x1')),router=express[_0x4e9963('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x4e9963('0x8'));router['get']('/',auth[_0x4e9963('0x0')](),controller[_0x4e9963('0x10')]),router[_0x4e9963('0x3')](_0x4e9963('0x5'),auth[_0x4e9963('0x0')](),controller[_0x4e9963('0x2')]),router[_0x4e9963('0x3')](_0x4e9963('0x4'),auth['isAuthenticated'](),controller['getFields']),router[_0x4e9963('0x3')](_0x4e9963('0xb'),auth['isAuthenticated'](),controller[_0x4e9963('0x9')]),router['get']('/:id/descriptions',auth[_0x4e9963('0x0')](),controller[_0x4e9963('0xf')]),router[_0x4e9963('0xa')]('/',auth[_0x4e9963('0x0')](),controller[_0x4e9963('0xc')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x4e9963('0xd')]),router[_0x4e9963('0xe')](_0x4e9963('0x5'),auth[_0x4e9963('0x0')](),controller[_0x4e9963('0x6')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js index 3db8638..66b1d06 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.attributes.js @@ -1 +1 @@ -const a350_0x8243=['lead','nothing','sequelize','contact_lead','contact','STRING','exports','ENUM'];(function(_0x28b21e,_0x82434f){const _0x536624=function(_0xa4a378){while(--_0xa4a378){_0x28b21e['push'](_0x28b21e['shift']());}};_0x536624(++_0x82434f);}(a350_0x8243,0xb7));const a350_0x5366=function(_0x28b21e,_0x82434f){_0x28b21e=_0x28b21e-0x0;let _0x536624=a350_0x8243[_0x28b21e];return _0x536624;};const _0x41abab=a350_0x5366;'use strict';const Sequelize=require(_0x41abab('0x3'));module[_0x41abab('0x7')]={'name':{'type':Sequelize[_0x41abab('0x6')]},'moduleCreate':{'type':Sequelize[_0x41abab('0x0')](_0x41abab('0x1'),_0x41abab('0x5'),_0x41abab('0x2')),'defaultValue':'lead'},'moduleSearch':{'type':Sequelize[_0x41abab('0x0')](_0x41abab('0x4'),'contact','lead'),'defaultValue':_0x41abab('0x4')},'description':{'type':Sequelize[_0x41abab('0x6')]}}; \ No newline at end of file +const a350_0x7034=['STRING','exports','sequelize','lead','ENUM','nothing','contact_lead','contact'];(function(_0x1ccf42,_0x703473){const _0x4d1d29=function(_0x18876f){while(--_0x18876f){_0x1ccf42['push'](_0x1ccf42['shift']());}};_0x4d1d29(++_0x703473);}(a350_0x7034,0x177));const a350_0x4d1d=function(_0x1ccf42,_0x703473){_0x1ccf42=_0x1ccf42-0x0;let _0x4d1d29=a350_0x7034[_0x1ccf42];return _0x4d1d29;};const _0x5c5d4f=a350_0x4d1d;'use strict';const Sequelize=require(_0x5c5d4f('0x3'));module[_0x5c5d4f('0x2')]={'name':{'type':Sequelize[_0x5c5d4f('0x1')]},'moduleCreate':{'type':Sequelize['ENUM'](_0x5c5d4f('0x4'),_0x5c5d4f('0x0'),_0x5c5d4f('0x6')),'defaultValue':_0x5c5d4f('0x4')},'moduleSearch':{'type':Sequelize[_0x5c5d4f('0x5')](_0x5c5d4f('0x7'),_0x5c5d4f('0x0'),_0x5c5d4f('0x4')),'defaultValue':_0x5c5d4f('0x7')},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js index 8e21112..1344485 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.controller.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.controller.js @@ -1 +1 @@ -const a351_0x2f0e=['ZohoField','intersection','body','sort','update','name','Content-Range','options','stack','error','filter','then','undefined','getDescriptions','destroy','send','VIRTUAL','limit','key','keys','status','map','getFields','order','show','sequelize','set','like','offset','fieldName','pick','attributes','catch','fields','params','length','nolimit','query','includeAll','merge','findOne','end','getSubjects','index','../../components/parsers/qs','ZohoConfiguration','json','count','rawAttributes','type','model','where','create','filters','../../mysqldb','findAll','include'];(function(_0x234679,_0x2f0ec2){const _0x2eb51c=function(_0x23da17){while(--_0x23da17){_0x234679['push'](_0x234679['shift']());}};_0x2eb51c(++_0x2f0ec2);}(a351_0x2f0e,0xe8));const a351_0x2eb5=function(_0x234679,_0x2f0ec2){_0x234679=_0x234679-0x0;let _0x2eb51c=a351_0x2f0e[_0x234679];return _0x2eb51c;};const _0x544905=a351_0x2eb5;'use strict';const _=require('lodash'),qs=require(_0x544905('0x28')),logger=require('../../config/logger')('api'),db=require(_0x544905('0x32'))['db'],{Op}=require(_0x544905('0x15'));function respondWithResult(_0x23da17,_0x177ca7){return _0x177ca7=_0x177ca7||0xc8,function(_0x5bb79d){const _0x1c92a0=a351_0x2eb5;if(_0x5bb79d)return _0x23da17[_0x1c92a0('0x10')](_0x177ca7)[_0x1c92a0('0x2a')](_0x5bb79d);};}function respondWithFilteredResult(_0x27a6a8,_0xe3f187){return function(_0xd474a4){const _0x7943bc=a351_0x2eb5;if(_0xd474a4){const _0x4be5d2=_0xd474a4[_0x7943bc('0x2b')],_0x4fb007=_0xe3f187['offset'];let _0x2f1363=_0xe3f187[_0x7943bc('0x18')]+_0xe3f187[_0x7943bc('0xd')],_0x1ae0b4;return _0x2f1363>=_0x4be5d2?(_0x2f1363=_0x4be5d2,_0x1ae0b4=0xc8):_0x1ae0b4=0xce,_0x27a6a8[_0x7943bc('0x10')](_0x1ae0b4),_0x27a6a8[_0x7943bc('0x16')](_0x7943bc('0x2'),_0x4fb007+'-'+_0x2f1363+'/'+_0x4be5d2)[_0x7943bc('0x2a')](_0xd474a4);}return null;};}function saveUpdates(_0x1f631f){return function(_0x3317ab){const _0x26e8f0=a351_0x2eb5;if(_0x3317ab)return _0x3317ab[_0x26e8f0('0x0')](_0x1f631f)[_0x26e8f0('0x7')](function(_0x2cdec7){return _0x2cdec7;});return null;};}function removeEntity(_0x372380){return function(_0x404469){const _0x4f4568=a351_0x2eb5;if(_0x404469)return _0x404469[_0x4f4568('0xa')]()[_0x4f4568('0x7')](function(){const _0x2454aa=_0x4f4568;_0x372380[_0x2454aa('0x10')](0xcc)[_0x2454aa('0x25')]();});};}function handleEntityNotFound(_0x3949f0){return function(_0x441f8a){return!_0x441f8a&&_0x3949f0['sendStatus'](0x194),_0x441f8a;};}function handleError(_0x351562,_0x982afa){return _0x982afa=_0x982afa||0x1f4,function(_0x669990){const _0x14401a=a351_0x2eb5;logger[_0x14401a('0x5')](_0x669990[_0x14401a('0x4')]),_0x669990[_0x14401a('0x1')]&&delete _0x669990[_0x14401a('0x1')],_0x351562[_0x14401a('0x10')](_0x982afa)[_0x14401a('0xb')](_0x669990);};}exports[_0x544905('0x27')]=function(_0x2310d7,_0x2629fb){const _0x12ff07=_0x544905;let _0x5eec11={};const _0x364098={},_0x545b5b={'count':0x0,'rows':[]},_0x5d6dc3=_[_0x12ff07('0x11')](db['ZohoConfiguration'][_0x12ff07('0x2c')],function(_0x29aba9){const _0x156844=_0x12ff07;return{'name':_0x29aba9[_0x156844('0x19')],'type':_0x29aba9['type'][_0x156844('0xe')]};});_0x364098[_0x12ff07('0x2e')]=_[_0x12ff07('0x11')](_0x5d6dc3,_0x12ff07('0x1')),_0x364098['query']=_[_0x12ff07('0xf')](_0x2310d7[_0x12ff07('0x21')]),_0x364098[_0x12ff07('0x31')]=_['intersection'](_0x364098['model'],_0x364098[_0x12ff07('0x21')]),_0x5eec11[_0x12ff07('0x1b')]=_[_0x12ff07('0x36')](_0x364098[_0x12ff07('0x2e')],qs['fields'](_0x2310d7['query'][_0x12ff07('0x1d')])),_0x5eec11[_0x12ff07('0x1b')]=_0x5eec11[_0x12ff07('0x1b')]['length']?_0x5eec11[_0x12ff07('0x1b')]:_0x364098[_0x12ff07('0x2e')];typeof _0x2310d7[_0x12ff07('0x21')]['nolimit']===_0x12ff07('0x8')&&(_0x5eec11['limit']=qs[_0x12ff07('0xd')](_0x2310d7['query'][_0x12ff07('0xd')]),_0x5eec11[_0x12ff07('0x18')]=qs['offset'](_0x2310d7[_0x12ff07('0x21')][_0x12ff07('0x18')]));_0x5eec11[_0x12ff07('0x13')]=qs[_0x12ff07('0x38')](_0x2310d7[_0x12ff07('0x21')][_0x12ff07('0x38')]),_0x5eec11[_0x12ff07('0x2f')]=qs['filters'](_[_0x12ff07('0x1a')](_0x2310d7['query'],_0x364098[_0x12ff07('0x31')]),_0x5d6dc3);_0x2310d7[_0x12ff07('0x21')][_0x12ff07('0x6')]&&(_0x5eec11[_0x12ff07('0x2f')]=_[_0x12ff07('0x23')](_0x5eec11['where'],{[Op['or']]:_[_0x12ff07('0x11')](_0x5d6dc3,function(_0x3dcc97){const _0x4a1569=_0x12ff07;if(_0x3dcc97[_0x4a1569('0x2d')]!==_0x4a1569('0xc')){const _0x537723={};return _0x537723[_0x3dcc97[_0x4a1569('0x1')]]={[Op['like']]:'%'+_0x2310d7['query'][_0x4a1569('0x6')]+'%'},_0x537723;}})}));_0x5eec11=_[_0x12ff07('0x23')]({},_0x5eec11,_0x2310d7['options']);const _0x403138={'where':_0x5eec11[_0x12ff07('0x2f')]};return db['ZohoConfiguration'][_0x12ff07('0x2b')](_0x403138)[_0x12ff07('0x7')](function(_0x166929){const _0x1b7127=_0x12ff07;return _0x545b5b[_0x1b7127('0x2b')]=_0x166929,_0x2310d7[_0x1b7127('0x21')][_0x1b7127('0x22')]&&(_0x5eec11[_0x1b7127('0x34')]=[{'all':!![]}]),db[_0x1b7127('0x29')][_0x1b7127('0x33')](_0x5eec11);})['then'](function(_0x5a0fa7){return _0x545b5b['rows']=_0x5a0fa7,_0x545b5b;})['then'](respondWithFilteredResult(_0x2629fb,_0x5eec11))['catch'](handleError(_0x2629fb,null));},exports[_0x544905('0x14')]=function(_0x123d2e,_0x2df703){const _0x56f094=_0x544905;let _0x130d00={'raw':![],'where':{'id':_0x123d2e[_0x56f094('0x1e')]['id']}};const _0x24a85b={};return _0x24a85b[_0x56f094('0x2e')]=_['keys'](db[_0x56f094('0x29')]['rawAttributes']),_0x24a85b[_0x56f094('0x21')]=_[_0x56f094('0xf')](_0x123d2e[_0x56f094('0x21')]),_0x24a85b[_0x56f094('0x31')]=_['intersection'](_0x24a85b['model'],_0x24a85b[_0x56f094('0x21')]),_0x130d00[_0x56f094('0x1b')]=_[_0x56f094('0x36')](_0x24a85b[_0x56f094('0x2e')],qs[_0x56f094('0x1d')](_0x123d2e['query'][_0x56f094('0x1d')])),_0x130d00[_0x56f094('0x1b')]=_0x130d00[_0x56f094('0x1b')][_0x56f094('0x1f')]?_0x130d00[_0x56f094('0x1b')]:_0x24a85b['model'],_0x123d2e[_0x56f094('0x21')][_0x56f094('0x22')]&&(_0x130d00['include']=[{'all':!![]}]),_0x130d00=_[_0x56f094('0x23')]({},_0x130d00,_0x123d2e['options']),db[_0x56f094('0x29')][_0x56f094('0x24')](_0x130d00)[_0x56f094('0x7')](handleEntityNotFound(_0x2df703,null))['then'](respondWithResult(_0x2df703,null))[_0x56f094('0x1c')](handleError(_0x2df703,null));},exports['create']=function(_0x178810,_0x1cc915){const _0x42043d=_0x544905;return db[_0x42043d('0x29')][_0x42043d('0x30')](_0x178810[_0x42043d('0x37')],{})['then'](respondWithResult(_0x1cc915,0xc9))[_0x42043d('0x1c')](handleError(_0x1cc915,null));},exports[_0x544905('0x0')]=function(_0x226ecb,_0x1a2a2f){const _0x15eb6e=_0x544905;return _0x226ecb[_0x15eb6e('0x37')]['id']&&delete _0x226ecb['body']['id'],db[_0x15eb6e('0x29')]['findOne']({'where':{'id':_0x226ecb[_0x15eb6e('0x1e')]['id']}})['then'](handleEntityNotFound(_0x1a2a2f,null))[_0x15eb6e('0x7')](saveUpdates(_0x226ecb['body'],null))[_0x15eb6e('0x7')](respondWithResult(_0x1a2a2f,null))[_0x15eb6e('0x1c')](handleError(_0x1a2a2f,null));},exports[_0x544905('0xa')]=function(_0x1a6941,_0x444f0c){const _0x1db74b=_0x544905;return db['ZohoConfiguration'][_0x1db74b('0x24')]({'where':{'id':_0x1a6941['params']['id']}})[_0x1db74b('0x7')](handleEntityNotFound(_0x444f0c,null))[_0x1db74b('0x7')](removeEntity(_0x444f0c,null))[_0x1db74b('0x1c')](handleError(_0x444f0c,null));},exports[_0x544905('0x12')]=function(_0x570aec,_0x472b71){const _0x15b82c=_0x544905;let _0x561c64={};const _0x37dfe9={};let _0x548c71,_0x52b3a7;return db['ZohoConfiguration'][_0x15b82c('0x24')]({'where':{'id':_0x570aec[_0x15b82c('0x1e')]['id']}})[_0x15b82c('0x7')](handleEntityNotFound(_0x472b71,null))[_0x15b82c('0x7')](function(_0x1763b9){const _0x156253=_0x15b82c;if(_0x1763b9)return _0x548c71=_0x1763b9,_0x37dfe9[_0x156253('0x2e')]=_[_0x156253('0xf')](db[_0x156253('0x35')]['rawAttributes']),_0x37dfe9[_0x156253('0x21')]=_[_0x156253('0xf')](_0x570aec[_0x156253('0x21')]),_0x37dfe9['filters']=_[_0x156253('0x36')](_0x37dfe9[_0x156253('0x2e')],_0x37dfe9['query']),_0x561c64[_0x156253('0x1b')]=_[_0x156253('0x36')](_0x37dfe9[_0x156253('0x2e')],qs[_0x156253('0x1d')](_0x570aec[_0x156253('0x21')]['fields'])),_0x561c64[_0x156253('0x1b')]=_0x561c64[_0x156253('0x1b')][_0x156253('0x1f')]?_0x561c64['attributes']:_0x37dfe9['model'],_0x561c64['order']=qs['sort'](_0x570aec[_0x156253('0x21')][_0x156253('0x38')]),_0x561c64[_0x156253('0x2f')]=qs[_0x156253('0x31')](_[_0x156253('0x1a')](_0x570aec[_0x156253('0x21')],_0x37dfe9[_0x156253('0x31')])),_0x570aec[_0x156253('0x21')][_0x156253('0x6')]&&(_0x561c64['where']=_[_0x156253('0x23')](_0x561c64['where'],{[Op['or']]:_['map'](_0x561c64[_0x156253('0x1b')],function(_0x3a8484){const _0x6d60ef=_0x156253,_0xccb88b={};return _0xccb88b[_0x3a8484]={[Op[_0x6d60ef('0x17')]]:'%'+_0x570aec[_0x6d60ef('0x21')][_0x6d60ef('0x6')]+'%'},_0xccb88b;})})),_0x561c64=_['merge']({},_0x561c64,_0x570aec['options']),_0x548c71[_0x156253('0x12')](_0x561c64);})['then'](function(_0x285969){const _0xebe44e=_0x15b82c;if(_0x285969)return _0x52b3a7=_0x285969[_0xebe44e('0x1f')],typeof _0x570aec[_0xebe44e('0x21')][_0xebe44e('0x20')]==='undefined'&&(_0x561c64[_0xebe44e('0xd')]=qs[_0xebe44e('0xd')](_0x570aec[_0xebe44e('0x21')]['limit']),_0x561c64[_0xebe44e('0x18')]=qs['offset'](_0x570aec[_0xebe44e('0x21')]['offset'])),_0x548c71[_0xebe44e('0x12')](_0x561c64);})['then'](function(_0x500396){if(_0x500396)return _0x500396?{'count':_0x52b3a7,'rows':_0x500396}:null;})[_0x15b82c('0x7')](respondWithResult(_0x472b71,null))['catch'](handleError(_0x472b71,null));},exports['getSubjects']=function(_0x464bd9,_0xd66ec2){const _0x46908f=_0x544905;let _0x3d1f38={};const _0x49a6db={};let _0x299548,_0x85a519;return db['ZohoConfiguration'][_0x46908f('0x24')]({'where':{'id':_0x464bd9['params']['id']}})['then'](handleEntityNotFound(_0xd66ec2,null))['then'](function(_0x53de1c){const _0x4d391a=_0x46908f;if(_0x53de1c)return _0x299548=_0x53de1c,_0x49a6db[_0x4d391a('0x2e')]=_[_0x4d391a('0xf')](db[_0x4d391a('0x35')][_0x4d391a('0x2c')]),_0x49a6db[_0x4d391a('0x21')]=_[_0x4d391a('0xf')](_0x464bd9[_0x4d391a('0x21')]),_0x49a6db['filters']=_[_0x4d391a('0x36')](_0x49a6db[_0x4d391a('0x2e')],_0x49a6db[_0x4d391a('0x21')]),_0x3d1f38['attributes']=_['intersection'](_0x49a6db[_0x4d391a('0x2e')],qs['fields'](_0x464bd9[_0x4d391a('0x21')][_0x4d391a('0x1d')])),_0x3d1f38[_0x4d391a('0x1b')]=_0x3d1f38[_0x4d391a('0x1b')][_0x4d391a('0x1f')]?_0x3d1f38[_0x4d391a('0x1b')]:_0x49a6db['model'],_0x3d1f38['order']=qs[_0x4d391a('0x38')](_0x464bd9[_0x4d391a('0x21')][_0x4d391a('0x38')]),_0x3d1f38['where']=qs[_0x4d391a('0x31')](_['pick'](_0x464bd9[_0x4d391a('0x21')],_0x49a6db[_0x4d391a('0x31')])),_0x464bd9['query'][_0x4d391a('0x6')]&&(_0x3d1f38['where']=_[_0x4d391a('0x23')](_0x3d1f38[_0x4d391a('0x2f')],{[Op['or']]:_[_0x4d391a('0x11')](_0x3d1f38[_0x4d391a('0x1b')],function(_0x5078df){const _0x2244e1=_0x4d391a,_0x37817b={};return _0x37817b[_0x5078df]={[Op['like']]:'%'+_0x464bd9[_0x2244e1('0x21')][_0x2244e1('0x6')]+'%'},_0x37817b;})})),_0x3d1f38=_['merge']({},_0x3d1f38,_0x464bd9[_0x4d391a('0x3')]),_0x299548['getSubjects'](_0x3d1f38);})[_0x46908f('0x7')](function(_0x2fc47d){const _0x216eed=_0x46908f;if(_0x2fc47d)return _0x85a519=_0x2fc47d[_0x216eed('0x1f')],typeof _0x464bd9[_0x216eed('0x21')][_0x216eed('0x20')]==='undefined'&&(_0x3d1f38['limit']=qs[_0x216eed('0xd')](_0x464bd9[_0x216eed('0x21')][_0x216eed('0xd')]),_0x3d1f38[_0x216eed('0x18')]=qs[_0x216eed('0x18')](_0x464bd9[_0x216eed('0x21')][_0x216eed('0x18')])),_0x299548[_0x216eed('0x26')](_0x3d1f38);})[_0x46908f('0x7')](function(_0x4156af){if(_0x4156af)return _0x4156af?{'count':_0x85a519,'rows':_0x4156af}:null;})[_0x46908f('0x7')](respondWithResult(_0xd66ec2,null))[_0x46908f('0x1c')](handleError(_0xd66ec2,null));},exports[_0x544905('0x9')]=function(_0x37dfd7,_0x2fcd89){const _0x564a55=_0x544905;let _0x509a61={};const _0x47c2eb={};let _0x5e4193,_0x30059c;return db[_0x564a55('0x29')][_0x564a55('0x24')]({'where':{'id':_0x37dfd7['params']['id']}})['then'](handleEntityNotFound(_0x2fcd89,null))[_0x564a55('0x7')](function(_0x37342c){const _0x196e52=_0x564a55;if(_0x37342c)return _0x5e4193=_0x37342c,_0x47c2eb[_0x196e52('0x2e')]=_['keys'](db['ZohoField'][_0x196e52('0x2c')]),_0x47c2eb['query']=_[_0x196e52('0xf')](_0x37dfd7[_0x196e52('0x21')]),_0x47c2eb[_0x196e52('0x31')]=_[_0x196e52('0x36')](_0x47c2eb[_0x196e52('0x2e')],_0x47c2eb[_0x196e52('0x21')]),_0x509a61[_0x196e52('0x1b')]=_[_0x196e52('0x36')](_0x47c2eb[_0x196e52('0x2e')],qs[_0x196e52('0x1d')](_0x37dfd7[_0x196e52('0x21')][_0x196e52('0x1d')])),_0x509a61[_0x196e52('0x1b')]=_0x509a61[_0x196e52('0x1b')][_0x196e52('0x1f')]?_0x509a61['attributes']:_0x47c2eb[_0x196e52('0x2e')],_0x509a61[_0x196e52('0x13')]=qs['sort'](_0x37dfd7['query'][_0x196e52('0x38')]),_0x509a61[_0x196e52('0x2f')]=qs[_0x196e52('0x31')](_['pick'](_0x37dfd7['query'],_0x47c2eb['filters'])),_0x37dfd7['query']['filter']&&(_0x509a61[_0x196e52('0x2f')]=_[_0x196e52('0x23')](_0x509a61[_0x196e52('0x2f')],{[Op['or']]:_[_0x196e52('0x11')](_0x509a61[_0x196e52('0x1b')],function(_0x4951ff){const _0x209bda=_0x196e52,_0x570368={};return _0x570368[_0x4951ff]={[Op[_0x209bda('0x17')]]:'%'+_0x37dfd7[_0x209bda('0x21')][_0x209bda('0x6')]+'%'},_0x570368;})})),_0x509a61=_[_0x196e52('0x23')]({},_0x509a61,_0x37dfd7['options']),_0x5e4193[_0x196e52('0x9')](_0x509a61);})[_0x564a55('0x7')](function(_0x2e9a2f){const _0x3e422a=_0x564a55;if(_0x2e9a2f)return _0x30059c=_0x2e9a2f['length'],typeof _0x37dfd7[_0x3e422a('0x21')][_0x3e422a('0x20')]===_0x3e422a('0x8')&&(_0x509a61[_0x3e422a('0xd')]=qs[_0x3e422a('0xd')](_0x37dfd7['query']['limit']),_0x509a61[_0x3e422a('0x18')]=qs[_0x3e422a('0x18')](_0x37dfd7[_0x3e422a('0x21')][_0x3e422a('0x18')])),_0x5e4193[_0x3e422a('0x9')](_0x509a61);})['then'](function(_0x3fbc39){if(_0x3fbc39)return _0x3fbc39?{'count':_0x30059c,'rows':_0x3fbc39}:null;})['then'](respondWithResult(_0x2fcd89,null))['catch'](handleError(_0x2fcd89,null));}; \ No newline at end of file +const a351_0x2338=['json','create','name','../../config/logger','status','map','nolimit','options','lodash','ZohoConfiguration','stack','type','body','attributes','update','like','sort','limit','catch','undefined','include','intersection','rawAttributes','pick','filters','fields','count','Content-Range','getFields','offset','../../components/parsers/qs','keys','findAll','index','order','key','params','destroy','fieldName','findOne','length','getDescriptions','sequelize','then','where','sendStatus','query','merge','includeAll','set','api','ZohoField','filter','error','getSubjects','model'];(function(_0x1ac9de,_0x23382f){const _0x3f0748=function(_0x26ad4b){while(--_0x26ad4b){_0x1ac9de['push'](_0x1ac9de['shift']());}};_0x3f0748(++_0x23382f);}(a351_0x2338,0xb3));const a351_0x3f07=function(_0x1ac9de,_0x23382f){_0x1ac9de=_0x1ac9de-0x0;let _0x3f0748=a351_0x2338[_0x1ac9de];return _0x3f0748;};const _0x3b80f2=a351_0x3f07;'use strict';const _=require(_0x3b80f2('0x35')),qs=require(_0x3b80f2('0x13')),logger=require(_0x3b80f2('0x30'))(_0x3b80f2('0x27')),db=require('../../mysqldb')['db'],{Op}=require(_0x3b80f2('0x1f'));function respondWithResult(_0x26ad4b,_0x16a957){return _0x16a957=_0x16a957||0xc8,function(_0x4c1607){const _0x563633=a351_0x3f07;if(_0x4c1607)return _0x26ad4b[_0x563633('0x31')](_0x16a957)['json'](_0x4c1607);};}function respondWithFilteredResult(_0x4bbca5,_0x3dc551){return function(_0x4eeb2f){const _0x3dbf5d=a351_0x3f07;if(_0x4eeb2f){const _0x49621d=_0x4eeb2f[_0x3dbf5d('0xf')],_0x34bd5b=_0x3dc551[_0x3dbf5d('0x12')];let _0x136a45=_0x3dc551[_0x3dbf5d('0x12')]+_0x3dc551[_0x3dbf5d('0x6')],_0x1d47e5;return _0x136a45>=_0x49621d?(_0x136a45=_0x49621d,_0x1d47e5=0xc8):_0x1d47e5=0xce,_0x4bbca5['status'](_0x1d47e5),_0x4bbca5[_0x3dbf5d('0x26')](_0x3dbf5d('0x10'),_0x34bd5b+'-'+_0x136a45+'/'+_0x49621d)[_0x3dbf5d('0x2d')](_0x4eeb2f);}return null;};}function saveUpdates(_0x4ab56a){return function(_0x71f9f5){const _0x5b465c=a351_0x3f07;if(_0x71f9f5)return _0x71f9f5[_0x5b465c('0x3')](_0x4ab56a)[_0x5b465c('0x20')](function(_0x544c01){return _0x544c01;});return null;};}function removeEntity(_0x2d7687){return function(_0x1ac2e7){const _0x569d1f=a351_0x3f07;if(_0x1ac2e7)return _0x1ac2e7[_0x569d1f('0x1a')]()['then'](function(){const _0x26bf2a=_0x569d1f;_0x2d7687[_0x26bf2a('0x31')](0xcc)['end']();});};}function handleEntityNotFound(_0x505609){return function(_0x1a0b54){const _0x39d5c5=a351_0x3f07;return!_0x1a0b54&&_0x505609[_0x39d5c5('0x22')](0x194),_0x1a0b54;};}function handleError(_0x225532,_0x14bcef){return _0x14bcef=_0x14bcef||0x1f4,function(_0x4f59c4){const _0x2f5b4a=a351_0x3f07;logger[_0x2f5b4a('0x2a')](_0x4f59c4[_0x2f5b4a('0x37')]),_0x4f59c4[_0x2f5b4a('0x2f')]&&delete _0x4f59c4[_0x2f5b4a('0x2f')],_0x225532[_0x2f5b4a('0x31')](_0x14bcef)['send'](_0x4f59c4);};}exports[_0x3b80f2('0x16')]=function(_0x272dd1,_0xe4ce5d){const _0x441899=_0x3b80f2;let _0x5ea024={};const _0xac50e5={},_0x3a72ee={'count':0x0,'rows':[]},_0x155eea=_[_0x441899('0x32')](db['ZohoConfiguration'][_0x441899('0xb')],function(_0x770567){const _0x3a71a5=_0x441899;return{'name':_0x770567[_0x3a71a5('0x1b')],'type':_0x770567[_0x3a71a5('0x0')][_0x3a71a5('0x18')]};});_0xac50e5[_0x441899('0x2c')]=_[_0x441899('0x32')](_0x155eea,'name'),_0xac50e5[_0x441899('0x23')]=_['keys'](_0x272dd1[_0x441899('0x23')]),_0xac50e5[_0x441899('0xd')]=_[_0x441899('0xa')](_0xac50e5['model'],_0xac50e5['query']),_0x5ea024['attributes']=_[_0x441899('0xa')](_0xac50e5[_0x441899('0x2c')],qs['fields'](_0x272dd1[_0x441899('0x23')][_0x441899('0xe')])),_0x5ea024[_0x441899('0x2')]=_0x5ea024[_0x441899('0x2')][_0x441899('0x1d')]?_0x5ea024[_0x441899('0x2')]:_0xac50e5[_0x441899('0x2c')];typeof _0x272dd1[_0x441899('0x23')][_0x441899('0x33')]==='undefined'&&(_0x5ea024['limit']=qs['limit'](_0x272dd1[_0x441899('0x23')][_0x441899('0x6')]),_0x5ea024[_0x441899('0x12')]=qs['offset'](_0x272dd1[_0x441899('0x23')][_0x441899('0x12')]));_0x5ea024['order']=qs[_0x441899('0x5')](_0x272dd1[_0x441899('0x23')][_0x441899('0x5')]),_0x5ea024['where']=qs[_0x441899('0xd')](_[_0x441899('0xc')](_0x272dd1[_0x441899('0x23')],_0xac50e5['filters']),_0x155eea);_0x272dd1[_0x441899('0x23')]['filter']&&(_0x5ea024[_0x441899('0x21')]=_[_0x441899('0x24')](_0x5ea024[_0x441899('0x21')],{[Op['or']]:_[_0x441899('0x32')](_0x155eea,function(_0x1f007c){const _0x58c4ac=_0x441899;if(_0x1f007c['type']!=='VIRTUAL'){const _0x3f5c5c={};return _0x3f5c5c[_0x1f007c[_0x58c4ac('0x2f')]]={[Op[_0x58c4ac('0x4')]]:'%'+_0x272dd1[_0x58c4ac('0x23')]['filter']+'%'},_0x3f5c5c;}})}));_0x5ea024=_[_0x441899('0x24')]({},_0x5ea024,_0x272dd1[_0x441899('0x34')]);const _0x2d0ac2={'where':_0x5ea024[_0x441899('0x21')]};return db[_0x441899('0x36')]['count'](_0x2d0ac2)['then'](function(_0x4b6f08){const _0x3beeef=_0x441899;return _0x3a72ee['count']=_0x4b6f08,_0x272dd1[_0x3beeef('0x23')][_0x3beeef('0x25')]&&(_0x5ea024[_0x3beeef('0x9')]=[{'all':!![]}]),db[_0x3beeef('0x36')][_0x3beeef('0x15')](_0x5ea024);})['then'](function(_0x435a74){return _0x3a72ee['rows']=_0x435a74,_0x3a72ee;})[_0x441899('0x20')](respondWithFilteredResult(_0xe4ce5d,_0x5ea024))[_0x441899('0x7')](handleError(_0xe4ce5d,null));},exports['show']=function(_0x4a52df,_0x423586){const _0x9e65c9=_0x3b80f2;let _0x1d80c7={'raw':![],'where':{'id':_0x4a52df[_0x9e65c9('0x19')]['id']}};const _0x1c253c={};return _0x1c253c[_0x9e65c9('0x2c')]=_[_0x9e65c9('0x14')](db[_0x9e65c9('0x36')][_0x9e65c9('0xb')]),_0x1c253c[_0x9e65c9('0x23')]=_[_0x9e65c9('0x14')](_0x4a52df[_0x9e65c9('0x23')]),_0x1c253c[_0x9e65c9('0xd')]=_[_0x9e65c9('0xa')](_0x1c253c[_0x9e65c9('0x2c')],_0x1c253c[_0x9e65c9('0x23')]),_0x1d80c7['attributes']=_[_0x9e65c9('0xa')](_0x1c253c['model'],qs[_0x9e65c9('0xe')](_0x4a52df[_0x9e65c9('0x23')][_0x9e65c9('0xe')])),_0x1d80c7[_0x9e65c9('0x2')]=_0x1d80c7[_0x9e65c9('0x2')]['length']?_0x1d80c7[_0x9e65c9('0x2')]:_0x1c253c[_0x9e65c9('0x2c')],_0x4a52df[_0x9e65c9('0x23')][_0x9e65c9('0x25')]&&(_0x1d80c7[_0x9e65c9('0x9')]=[{'all':!![]}]),_0x1d80c7=_['merge']({},_0x1d80c7,_0x4a52df['options']),db[_0x9e65c9('0x36')][_0x9e65c9('0x1c')](_0x1d80c7)[_0x9e65c9('0x20')](handleEntityNotFound(_0x423586,null))['then'](respondWithResult(_0x423586,null))[_0x9e65c9('0x7')](handleError(_0x423586,null));},exports['create']=function(_0x486330,_0x21180f){const _0x810ddb=_0x3b80f2;return db[_0x810ddb('0x36')][_0x810ddb('0x2e')](_0x486330[_0x810ddb('0x1')],{})[_0x810ddb('0x20')](respondWithResult(_0x21180f,0xc9))[_0x810ddb('0x7')](handleError(_0x21180f,null));},exports[_0x3b80f2('0x3')]=function(_0x3e44d3,_0x4b476c){const _0x588209=_0x3b80f2;return _0x3e44d3[_0x588209('0x1')]['id']&&delete _0x3e44d3[_0x588209('0x1')]['id'],db[_0x588209('0x36')]['findOne']({'where':{'id':_0x3e44d3[_0x588209('0x19')]['id']}})[_0x588209('0x20')](handleEntityNotFound(_0x4b476c,null))[_0x588209('0x20')](saveUpdates(_0x3e44d3[_0x588209('0x1')],null))[_0x588209('0x20')](respondWithResult(_0x4b476c,null))[_0x588209('0x7')](handleError(_0x4b476c,null));},exports['destroy']=function(_0x25571c,_0x30527e){const _0x5a7632=_0x3b80f2;return db[_0x5a7632('0x36')][_0x5a7632('0x1c')]({'where':{'id':_0x25571c[_0x5a7632('0x19')]['id']}})[_0x5a7632('0x20')](handleEntityNotFound(_0x30527e,null))[_0x5a7632('0x20')](removeEntity(_0x30527e,null))[_0x5a7632('0x7')](handleError(_0x30527e,null));},exports[_0x3b80f2('0x11')]=function(_0x92929f,_0x54f860){const _0x408a6b=_0x3b80f2;let _0xceaa80={};const _0x55b84c={};let _0x400e1c,_0x12f70f;return db[_0x408a6b('0x36')][_0x408a6b('0x1c')]({'where':{'id':_0x92929f[_0x408a6b('0x19')]['id']}})[_0x408a6b('0x20')](handleEntityNotFound(_0x54f860,null))[_0x408a6b('0x20')](function(_0x4fc591){const _0x32dba4=_0x408a6b;if(_0x4fc591)return _0x400e1c=_0x4fc591,_0x55b84c['model']=_[_0x32dba4('0x14')](db[_0x32dba4('0x28')][_0x32dba4('0xb')]),_0x55b84c[_0x32dba4('0x23')]=_[_0x32dba4('0x14')](_0x92929f[_0x32dba4('0x23')]),_0x55b84c[_0x32dba4('0xd')]=_[_0x32dba4('0xa')](_0x55b84c[_0x32dba4('0x2c')],_0x55b84c['query']),_0xceaa80[_0x32dba4('0x2')]=_['intersection'](_0x55b84c[_0x32dba4('0x2c')],qs['fields'](_0x92929f[_0x32dba4('0x23')]['fields'])),_0xceaa80[_0x32dba4('0x2')]=_0xceaa80['attributes'][_0x32dba4('0x1d')]?_0xceaa80[_0x32dba4('0x2')]:_0x55b84c[_0x32dba4('0x2c')],_0xceaa80[_0x32dba4('0x17')]=qs[_0x32dba4('0x5')](_0x92929f['query'][_0x32dba4('0x5')]),_0xceaa80[_0x32dba4('0x21')]=qs['filters'](_[_0x32dba4('0xc')](_0x92929f[_0x32dba4('0x23')],_0x55b84c[_0x32dba4('0xd')])),_0x92929f[_0x32dba4('0x23')][_0x32dba4('0x29')]&&(_0xceaa80['where']=_[_0x32dba4('0x24')](_0xceaa80[_0x32dba4('0x21')],{[Op['or']]:_[_0x32dba4('0x32')](_0xceaa80[_0x32dba4('0x2')],function(_0x5c3a9e){const _0x489e2b=_0x32dba4,_0x2564e6={};return _0x2564e6[_0x5c3a9e]={[Op[_0x489e2b('0x4')]]:'%'+_0x92929f['query'][_0x489e2b('0x29')]+'%'},_0x2564e6;})})),_0xceaa80=_['merge']({},_0xceaa80,_0x92929f['options']),_0x400e1c[_0x32dba4('0x11')](_0xceaa80);})[_0x408a6b('0x20')](function(_0x1d6b79){const _0x1c21b9=_0x408a6b;if(_0x1d6b79)return _0x12f70f=_0x1d6b79[_0x1c21b9('0x1d')],typeof _0x92929f[_0x1c21b9('0x23')][_0x1c21b9('0x33')]===_0x1c21b9('0x8')&&(_0xceaa80[_0x1c21b9('0x6')]=qs[_0x1c21b9('0x6')](_0x92929f['query'][_0x1c21b9('0x6')]),_0xceaa80[_0x1c21b9('0x12')]=qs['offset'](_0x92929f[_0x1c21b9('0x23')]['offset'])),_0x400e1c[_0x1c21b9('0x11')](_0xceaa80);})[_0x408a6b('0x20')](function(_0x40e4c2){if(_0x40e4c2)return _0x40e4c2?{'count':_0x12f70f,'rows':_0x40e4c2}:null;})[_0x408a6b('0x20')](respondWithResult(_0x54f860,null))[_0x408a6b('0x7')](handleError(_0x54f860,null));},exports[_0x3b80f2('0x2b')]=function(_0x2d6fb8,_0x37c16a){const _0x11d875=_0x3b80f2;let _0x152403={};const _0x12f463={};let _0x4a71fe,_0x51977a;return db[_0x11d875('0x36')][_0x11d875('0x1c')]({'where':{'id':_0x2d6fb8[_0x11d875('0x19')]['id']}})['then'](handleEntityNotFound(_0x37c16a,null))[_0x11d875('0x20')](function(_0x46ba77){const _0x202817=_0x11d875;if(_0x46ba77)return _0x4a71fe=_0x46ba77,_0x12f463[_0x202817('0x2c')]=_[_0x202817('0x14')](db[_0x202817('0x28')][_0x202817('0xb')]),_0x12f463[_0x202817('0x23')]=_[_0x202817('0x14')](_0x2d6fb8[_0x202817('0x23')]),_0x12f463['filters']=_[_0x202817('0xa')](_0x12f463[_0x202817('0x2c')],_0x12f463[_0x202817('0x23')]),_0x152403[_0x202817('0x2')]=_[_0x202817('0xa')](_0x12f463['model'],qs[_0x202817('0xe')](_0x2d6fb8[_0x202817('0x23')][_0x202817('0xe')])),_0x152403['attributes']=_0x152403[_0x202817('0x2')]['length']?_0x152403['attributes']:_0x12f463['model'],_0x152403[_0x202817('0x17')]=qs[_0x202817('0x5')](_0x2d6fb8[_0x202817('0x23')][_0x202817('0x5')]),_0x152403['where']=qs[_0x202817('0xd')](_[_0x202817('0xc')](_0x2d6fb8[_0x202817('0x23')],_0x12f463[_0x202817('0xd')])),_0x2d6fb8['query']['filter']&&(_0x152403[_0x202817('0x21')]=_[_0x202817('0x24')](_0x152403[_0x202817('0x21')],{[Op['or']]:_[_0x202817('0x32')](_0x152403[_0x202817('0x2')],function(_0x32a1ec){const _0x177d60=_0x202817,_0x973158={};return _0x973158[_0x32a1ec]={[Op['like']]:'%'+_0x2d6fb8[_0x177d60('0x23')][_0x177d60('0x29')]+'%'},_0x973158;})})),_0x152403=_[_0x202817('0x24')]({},_0x152403,_0x2d6fb8['options']),_0x4a71fe[_0x202817('0x2b')](_0x152403);})[_0x11d875('0x20')](function(_0x376336){const _0x18c651=_0x11d875;if(_0x376336)return _0x51977a=_0x376336['length'],typeof _0x2d6fb8[_0x18c651('0x23')]['nolimit']==='undefined'&&(_0x152403[_0x18c651('0x6')]=qs[_0x18c651('0x6')](_0x2d6fb8[_0x18c651('0x23')][_0x18c651('0x6')]),_0x152403[_0x18c651('0x12')]=qs['offset'](_0x2d6fb8[_0x18c651('0x23')][_0x18c651('0x12')])),_0x4a71fe[_0x18c651('0x2b')](_0x152403);})['then'](function(_0x26b955){if(_0x26b955)return _0x26b955?{'count':_0x51977a,'rows':_0x26b955}:null;})[_0x11d875('0x20')](respondWithResult(_0x37c16a,null))[_0x11d875('0x7')](handleError(_0x37c16a,null));},exports[_0x3b80f2('0x1e')]=function(_0x45647b,_0x305031){const _0x553a8d=_0x3b80f2;let _0x3b3a14={};const _0x447858={};let _0x163ce1,_0xd034b2;return db['ZohoConfiguration'][_0x553a8d('0x1c')]({'where':{'id':_0x45647b[_0x553a8d('0x19')]['id']}})[_0x553a8d('0x20')](handleEntityNotFound(_0x305031,null))[_0x553a8d('0x20')](function(_0x34c8e2){const _0x36b7f5=_0x553a8d;if(_0x34c8e2)return _0x163ce1=_0x34c8e2,_0x447858[_0x36b7f5('0x2c')]=_[_0x36b7f5('0x14')](db['ZohoField'][_0x36b7f5('0xb')]),_0x447858[_0x36b7f5('0x23')]=_[_0x36b7f5('0x14')](_0x45647b[_0x36b7f5('0x23')]),_0x447858[_0x36b7f5('0xd')]=_['intersection'](_0x447858[_0x36b7f5('0x2c')],_0x447858['query']),_0x3b3a14[_0x36b7f5('0x2')]=_['intersection'](_0x447858['model'],qs[_0x36b7f5('0xe')](_0x45647b[_0x36b7f5('0x23')][_0x36b7f5('0xe')])),_0x3b3a14[_0x36b7f5('0x2')]=_0x3b3a14[_0x36b7f5('0x2')]['length']?_0x3b3a14[_0x36b7f5('0x2')]:_0x447858['model'],_0x3b3a14[_0x36b7f5('0x17')]=qs[_0x36b7f5('0x5')](_0x45647b[_0x36b7f5('0x23')]['sort']),_0x3b3a14[_0x36b7f5('0x21')]=qs[_0x36b7f5('0xd')](_[_0x36b7f5('0xc')](_0x45647b[_0x36b7f5('0x23')],_0x447858[_0x36b7f5('0xd')])),_0x45647b['query'][_0x36b7f5('0x29')]&&(_0x3b3a14[_0x36b7f5('0x21')]=_[_0x36b7f5('0x24')](_0x3b3a14[_0x36b7f5('0x21')],{[Op['or']]:_['map'](_0x3b3a14['attributes'],function(_0x39f73b){const _0x3a90bf=_0x36b7f5,_0x17fcb2={};return _0x17fcb2[_0x39f73b]={[Op[_0x3a90bf('0x4')]]:'%'+_0x45647b[_0x3a90bf('0x23')][_0x3a90bf('0x29')]+'%'},_0x17fcb2;})})),_0x3b3a14=_[_0x36b7f5('0x24')]({},_0x3b3a14,_0x45647b[_0x36b7f5('0x34')]),_0x163ce1['getDescriptions'](_0x3b3a14);})['then'](function(_0x5c9854){const _0x4ea51e=_0x553a8d;if(_0x5c9854)return _0xd034b2=_0x5c9854['length'],typeof _0x45647b[_0x4ea51e('0x23')][_0x4ea51e('0x33')]===_0x4ea51e('0x8')&&(_0x3b3a14[_0x4ea51e('0x6')]=qs[_0x4ea51e('0x6')](_0x45647b['query'][_0x4ea51e('0x6')]),_0x3b3a14['offset']=qs['offset'](_0x45647b[_0x4ea51e('0x23')][_0x4ea51e('0x12')])),_0x163ce1[_0x4ea51e('0x1e')](_0x3b3a14);})[_0x553a8d('0x20')](function(_0x257998){if(_0x257998)return _0x257998?{'count':_0xd034b2,'rows':_0x257998}:null;})['then'](respondWithResult(_0x305031,null))[_0x553a8d('0x7')](handleError(_0x305031,null));}; \ No newline at end of file diff --git a/server/api/intZohoConfiguration/intZohoConfiguration.model.js b/server/api/intZohoConfiguration/intZohoConfiguration.model.js index 7630194..ae00c30 100644 --- a/server/api/intZohoConfiguration/intZohoConfiguration.model.js +++ b/server/api/intZohoConfiguration/intZohoConfiguration.model.js @@ -1 +1 @@ -const a352_0x1097=['define','int_zoho_configurations'];(function(_0x4b0107,_0x109724){const _0x17a3d5=function(_0x2857b4){while(--_0x2857b4){_0x4b0107['push'](_0x4b0107['shift']());}};_0x17a3d5(++_0x109724);}(a352_0x1097,0x11b));const a352_0x17a3=function(_0x4b0107,_0x109724){_0x4b0107=_0x4b0107-0x0;let _0x17a3d5=a352_0x1097[_0x4b0107];return _0x17a3d5;};'use strict';const attributes=require('./intZohoConfiguration.attributes');module['exports']=function(_0x2857b4){const _0x3d958f=a352_0x17a3,_0x482f34=_0x2857b4[_0x3d958f('0x1')]('ZohoConfiguration',attributes,{'tableName':_0x3d958f('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x482f34;}; \ No newline at end of file +const a352_0x1c3a=['exports','./intZohoConfiguration.attributes','define','int_zoho_configurations'];(function(_0x1ae655,_0x1c3a1a){const _0x3b116d=function(_0x4c0720){while(--_0x4c0720){_0x1ae655['push'](_0x1ae655['shift']());}};_0x3b116d(++_0x1c3a1a);}(a352_0x1c3a,0x172));const a352_0x3b11=function(_0x1ae655,_0x1c3a1a){_0x1ae655=_0x1ae655-0x0;let _0x3b116d=a352_0x1c3a[_0x1ae655];return _0x3b116d;};const _0xe83d65=a352_0x3b11;'use strict';const attributes=require(_0xe83d65('0x3'));module[_0xe83d65('0x2')]=function(_0x4c0720){const _0x6fbfc6=_0xe83d65,_0x4bd6a8=_0x4c0720[_0x6fbfc6('0x0')]('ZohoConfiguration',attributes,{'tableName':_0x6fbfc6('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4bd6a8;}; \ No newline at end of file diff --git a/server/api/intZohoField/index.js b/server/api/intZohoField/index.js index f800668..48b1974 100644 --- a/server/api/intZohoField/index.js +++ b/server/api/intZohoField/index.js @@ -1 +1 @@ -const a353_0x5a4b=['./intZohoField.controller','/:id','show','Router','delete','post','destroy','../../components/auth/service','exports','index','get','isAuthenticated'];(function(_0x52be02,_0x5a4b19){const _0x4f326b=function(_0x4faf00){while(--_0x4faf00){_0x52be02['push'](_0x52be02['shift']());}};_0x4f326b(++_0x5a4b19);}(a353_0x5a4b,0x127));const a353_0x4f32=function(_0x52be02,_0x5a4b19){_0x52be02=_0x52be02-0x0;let _0x4f326b=a353_0x5a4b[_0x52be02];return _0x4f326b;};const _0x554ecc=a353_0x4f32;'use strict';const express=require('express'),router=express[_0x554ecc('0x8')](),auth=require(_0x554ecc('0x0')),controller=require(_0x554ecc('0x5'));router['get']('/',auth[_0x554ecc('0x4')](),controller[_0x554ecc('0x2')]),router[_0x554ecc('0x3')](_0x554ecc('0x6'),auth[_0x554ecc('0x4')](),controller[_0x554ecc('0x7')]),router[_0x554ecc('0xa')]('/',auth[_0x554ecc('0x4')](),controller['create']),router['put'](_0x554ecc('0x6'),auth['isAuthenticated'](),controller['update']),router[_0x554ecc('0x9')](_0x554ecc('0x6'),auth['isAuthenticated'](),controller[_0x554ecc('0xb')]),module[_0x554ecc('0x1')]=router; \ No newline at end of file +const a353_0x2bdd=['Router','../../components/auth/service','create','exports','update','destroy','put','express','/:id','index','post','get','./intZohoField.controller','show'];(function(_0x1464ed,_0x2bdd76){const _0x24d974=function(_0x4393cc){while(--_0x4393cc){_0x1464ed['push'](_0x1464ed['shift']());}};_0x24d974(++_0x2bdd76);}(a353_0x2bdd,0xd0));const a353_0x24d9=function(_0x1464ed,_0x2bdd76){_0x1464ed=_0x1464ed-0x0;let _0x24d974=a353_0x2bdd[_0x1464ed];return _0x24d974;};const _0x495523=a353_0x24d9;'use strict';const express=require(_0x495523('0x9')),router=express[_0x495523('0x2')](),auth=require(_0x495523('0x3')),controller=require(_0x495523('0x0'));router[_0x495523('0xd')]('/',auth['isAuthenticated'](),controller[_0x495523('0xb')]),router[_0x495523('0xd')](_0x495523('0xa'),auth['isAuthenticated'](),controller[_0x495523('0x1')]),router[_0x495523('0xc')]('/',auth['isAuthenticated'](),controller[_0x495523('0x4')]),router[_0x495523('0x8')](_0x495523('0xa'),auth['isAuthenticated'](),controller[_0x495523('0x6')]),router['delete'](_0x495523('0xa'),auth['isAuthenticated'](),controller[_0x495523('0x7')]),module[_0x495523('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 8132b1d..01acbaf 100644 --- a/server/api/intZohoField/intZohoField.attributes.js +++ b/server/api/intZohoField/intZohoField.attributes.js @@ -1 +1 @@ -const a354_0x2b9b=['sequelize','keyValue','STRING','variable','customVariable','string','ENUM'];(function(_0x142dc0,_0x2b9b0e){const _0x3e2188=function(_0x26fc47){while(--_0x26fc47){_0x142dc0['push'](_0x142dc0['shift']());}};_0x3e2188(++_0x2b9b0e);}(a354_0x2b9b,0x115));const a354_0x3e21=function(_0x142dc0,_0x2b9b0e){_0x142dc0=_0x142dc0-0x0;let _0x3e2188=a354_0x2b9b[_0x142dc0];return _0x3e2188;};const _0x2792e8=a354_0x3e21;'use strict';const Sequelize=require(_0x2792e8('0x3'));module['exports']={'type':{'type':Sequelize[_0x2792e8('0x2')](_0x2792e8('0x1'),'variable','customVariable',_0x2792e8('0x4')),'defaultValue':'string'},'content':{'type':Sequelize[_0x2792e8('0x5')]},'key':{'type':Sequelize[_0x2792e8('0x5')]},'keyType':{'type':Sequelize[_0x2792e8('0x2')](_0x2792e8('0x1'),_0x2792e8('0x6'),_0x2792e8('0x0'))},'keyContent':{'type':Sequelize[_0x2792e8('0x5')]},'idField':{'type':Sequelize[_0x2792e8('0x5')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a354_0x5705=['variable','customVariable','ENUM','sequelize','exports','keyValue','string','STRING'];(function(_0x1f5225,_0x57051b){const _0x9e2a18=function(_0x347bc9){while(--_0x347bc9){_0x1f5225['push'](_0x1f5225['shift']());}};_0x9e2a18(++_0x57051b);}(a354_0x5705,0xcc));const a354_0x9e2a=function(_0x1f5225,_0x57051b){_0x1f5225=_0x1f5225-0x0;let _0x9e2a18=a354_0x5705[_0x1f5225];return _0x9e2a18;};const _0x314ddf=a354_0x9e2a;'use strict';const Sequelize=require(_0x314ddf('0x7'));module[_0x314ddf('0x0')]={'type':{'type':Sequelize[_0x314ddf('0x6')](_0x314ddf('0x2'),_0x314ddf('0x4'),_0x314ddf('0x5'),_0x314ddf('0x1')),'defaultValue':_0x314ddf('0x2')},'content':{'type':Sequelize[_0x314ddf('0x3')]},'key':{'type':Sequelize[_0x314ddf('0x3')]},'keyType':{'type':Sequelize[_0x314ddf('0x6')](_0x314ddf('0x2'),_0x314ddf('0x4'),_0x314ddf('0x5'))},'keyContent':{'type':Sequelize['STRING']},'idField':{'type':Sequelize[_0x314ddf('0x3')]},'nameField':{'type':Sequelize['STRING']},'customField':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'variableName':{'type':Sequelize[_0x314ddf('0x3')]}}; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.controller.js b/server/api/intZohoField/intZohoField.controller.js index a3511c9..b08eaab 100644 --- a/server/api/intZohoField/intZohoField.controller.js +++ b/server/api/intZohoField/intZohoField.controller.js @@ -1 +1 @@ -const a355_0x57f0=['limit','offset','key','type','filter','json','keys','where','merge','destroy','count','catch','update','api','like','sendStatus','pick','includeAll','status','findAll','body','stack','findOne','index','set','lodash','params','error','fields','rawAttributes','create','name','query','../../components/parsers/qs','filters','model','Content-Range','intersection','../../config/logger','attributes','length','rows','end','order','map','../../mysqldb','show','undefined','VIRTUAL','sort','ZohoField','include','then','options'];(function(_0x9cc045,_0x57f087){const _0xd5b422=function(_0x12bcf8){while(--_0x12bcf8){_0x9cc045['push'](_0x9cc045['shift']());}};_0xd5b422(++_0x57f087);}(a355_0x57f0,0x18e));const a355_0xd5b4=function(_0x9cc045,_0x57f087){_0x9cc045=_0x9cc045-0x0;let _0xd5b422=a355_0x57f0[_0x9cc045];return _0xd5b422;};const _0x200ea1=a355_0xd5b4;'use strict';const _=require(_0x200ea1('0x5')),qs=require(_0x200ea1('0xd')),logger=require(_0x200ea1('0x12'))(_0x200ea1('0x2f')),db=require(_0x200ea1('0x19'))['db'],{Op}=require('sequelize');function respondWithResult(_0x12bcf8,_0x5b0843){return _0x5b0843=_0x5b0843||0xc8,function(_0x48a33c){const _0x1f08bd=a355_0xd5b4;if(_0x48a33c)return _0x12bcf8[_0x1f08bd('0x34')](_0x5b0843)[_0x1f08bd('0x27')](_0x48a33c);};}function respondWithFilteredResult(_0x5136b6,_0x21b839){return function(_0x88ad0b){const _0x3626bc=a355_0xd5b4;if(_0x88ad0b){const _0x24e91d=_0x88ad0b[_0x3626bc('0x2c')],_0x48a8da=_0x21b839[_0x3626bc('0x23')];let _0x103d08=_0x21b839['offset']+_0x21b839[_0x3626bc('0x22')],_0x1f30a5;return _0x103d08>=_0x24e91d?(_0x103d08=_0x24e91d,_0x1f30a5=0xc8):_0x1f30a5=0xce,_0x5136b6[_0x3626bc('0x34')](_0x1f30a5),_0x5136b6[_0x3626bc('0x4')](_0x3626bc('0x10'),_0x48a8da+'-'+_0x103d08+'/'+_0x24e91d)['json'](_0x88ad0b);}return null;};}function saveUpdates(_0x27913d){return function(_0xe296e4){const _0x231a19=a355_0xd5b4;if(_0xe296e4)return _0xe296e4[_0x231a19('0x2e')](_0x27913d)[_0x231a19('0x20')](function(_0x38a55b){return _0x38a55b;});return null;};}function removeEntity(_0x1367b9){return function(_0x388ef1){const _0x268a6a=a355_0xd5b4;if(_0x388ef1)return _0x388ef1[_0x268a6a('0x2b')]()[_0x268a6a('0x20')](function(){const _0x163764=_0x268a6a;_0x1367b9['status'](0xcc)[_0x163764('0x16')]();});};}function handleEntityNotFound(_0x53e9f6){return function(_0x41e48){const _0x4f7618=a355_0xd5b4;return!_0x41e48&&_0x53e9f6[_0x4f7618('0x31')](0x194),_0x41e48;};}function handleError(_0x14208d,_0x43928d){return _0x43928d=_0x43928d||0x1f4,function(_0xfe6b2e){const _0x3553c3=a355_0xd5b4;logger[_0x3553c3('0x7')](_0xfe6b2e[_0x3553c3('0x1')]),_0xfe6b2e[_0x3553c3('0xb')]&&delete _0xfe6b2e[_0x3553c3('0xb')],_0x14208d['status'](_0x43928d)['send'](_0xfe6b2e);};}exports[_0x200ea1('0x3')]=function(_0x438b75,_0x443fe0){const _0x2802d0=_0x200ea1;let _0x5d00e8={};const _0x3090e0={},_0x55a3ba={'count':0x0,'rows':[]},_0xd0218a=_[_0x2802d0('0x18')](db['ZohoField'][_0x2802d0('0x9')],function(_0x26fe61){const _0x33841d=_0x2802d0;return{'name':_0x26fe61['fieldName'],'type':_0x26fe61[_0x33841d('0x25')][_0x33841d('0x24')]};});_0x3090e0['model']=_['map'](_0xd0218a,_0x2802d0('0xb')),_0x3090e0[_0x2802d0('0xc')]=_[_0x2802d0('0x28')](_0x438b75[_0x2802d0('0xc')]),_0x3090e0[_0x2802d0('0xe')]=_[_0x2802d0('0x11')](_0x3090e0[_0x2802d0('0xf')],_0x3090e0[_0x2802d0('0xc')]),_0x5d00e8[_0x2802d0('0x13')]=_[_0x2802d0('0x11')](_0x3090e0[_0x2802d0('0xf')],qs['fields'](_0x438b75[_0x2802d0('0xc')][_0x2802d0('0x8')])),_0x5d00e8['attributes']=_0x5d00e8[_0x2802d0('0x13')][_0x2802d0('0x14')]?_0x5d00e8['attributes']:_0x3090e0[_0x2802d0('0xf')];typeof _0x438b75[_0x2802d0('0xc')]['nolimit']===_0x2802d0('0x1b')&&(_0x5d00e8['limit']=qs[_0x2802d0('0x22')](_0x438b75[_0x2802d0('0xc')][_0x2802d0('0x22')]),_0x5d00e8[_0x2802d0('0x23')]=qs[_0x2802d0('0x23')](_0x438b75['query']['offset']));_0x5d00e8[_0x2802d0('0x17')]=qs[_0x2802d0('0x1d')](_0x438b75['query'][_0x2802d0('0x1d')]),_0x5d00e8['where']=qs[_0x2802d0('0xe')](_[_0x2802d0('0x32')](_0x438b75[_0x2802d0('0xc')],_0x3090e0[_0x2802d0('0xe')]),_0xd0218a);_0x438b75[_0x2802d0('0xc')][_0x2802d0('0x26')]&&(_0x5d00e8['where']=_[_0x2802d0('0x2a')](_0x5d00e8[_0x2802d0('0x29')],{[Op['or']]:_['map'](_0xd0218a,function(_0x36dc5b){const _0x2ff15d=_0x2802d0;if(_0x36dc5b['type']!==_0x2ff15d('0x1c')){const _0x193f7e={};return _0x193f7e[_0x36dc5b[_0x2ff15d('0xb')]]={[Op[_0x2ff15d('0x30')]]:'%'+_0x438b75[_0x2ff15d('0xc')][_0x2ff15d('0x26')]+'%'},_0x193f7e;}})}));_0x5d00e8=_[_0x2802d0('0x2a')]({},_0x5d00e8,_0x438b75[_0x2802d0('0x21')]);const _0x1f8fbd={'where':_0x5d00e8[_0x2802d0('0x29')]};return db[_0x2802d0('0x1e')][_0x2802d0('0x2c')](_0x1f8fbd)[_0x2802d0('0x20')](function(_0xe443a5){const _0x3c227b=_0x2802d0;return _0x55a3ba[_0x3c227b('0x2c')]=_0xe443a5,_0x438b75[_0x3c227b('0xc')][_0x3c227b('0x33')]&&(_0x5d00e8[_0x3c227b('0x1f')]=[{'all':!![]}]),db[_0x3c227b('0x1e')][_0x3c227b('0x35')](_0x5d00e8);})[_0x2802d0('0x20')](function(_0x2c5598){const _0x5593ce=_0x2802d0;return _0x55a3ba[_0x5593ce('0x15')]=_0x2c5598,_0x55a3ba;})[_0x2802d0('0x20')](respondWithFilteredResult(_0x443fe0,_0x5d00e8))['catch'](handleError(_0x443fe0,null));},exports[_0x200ea1('0x1a')]=function(_0x35eb1d,_0x4107ad){const _0x5e209e=_0x200ea1;let _0x59de0d={'raw':!![],'where':{'id':_0x35eb1d['params']['id']}};const _0x412913={};return _0x412913[_0x5e209e('0xf')]=_[_0x5e209e('0x28')](db[_0x5e209e('0x1e')][_0x5e209e('0x9')]),_0x412913['query']=_[_0x5e209e('0x28')](_0x35eb1d[_0x5e209e('0xc')]),_0x412913['filters']=_['intersection'](_0x412913[_0x5e209e('0xf')],_0x412913[_0x5e209e('0xc')]),_0x59de0d[_0x5e209e('0x13')]=_[_0x5e209e('0x11')](_0x412913['model'],qs[_0x5e209e('0x8')](_0x35eb1d[_0x5e209e('0xc')][_0x5e209e('0x8')])),_0x59de0d[_0x5e209e('0x13')]=_0x59de0d[_0x5e209e('0x13')][_0x5e209e('0x14')]?_0x59de0d[_0x5e209e('0x13')]:_0x412913[_0x5e209e('0xf')],_0x35eb1d[_0x5e209e('0xc')][_0x5e209e('0x33')]&&(_0x59de0d[_0x5e209e('0x1f')]=[{'all':!![]}]),_0x59de0d=_[_0x5e209e('0x2a')]({},_0x59de0d,_0x35eb1d[_0x5e209e('0x21')]),db[_0x5e209e('0x1e')][_0x5e209e('0x2')](_0x59de0d)[_0x5e209e('0x20')](handleEntityNotFound(_0x4107ad,null))['then'](respondWithResult(_0x4107ad,null))[_0x5e209e('0x2d')](handleError(_0x4107ad,null));},exports[_0x200ea1('0xa')]=function(_0x5ab335,_0x30802d){const _0x446817=_0x200ea1;return db[_0x446817('0x1e')][_0x446817('0xa')](_0x5ab335['body'],{})['then'](respondWithResult(_0x30802d,0xc9))[_0x446817('0x2d')](handleError(_0x30802d,null));},exports[_0x200ea1('0x2e')]=function(_0x12a527,_0x27cd40){const _0x2bdcbd=_0x200ea1;return _0x12a527[_0x2bdcbd('0x0')]['id']&&delete _0x12a527[_0x2bdcbd('0x0')]['id'],db[_0x2bdcbd('0x1e')][_0x2bdcbd('0x2')]({'where':{'id':_0x12a527[_0x2bdcbd('0x6')]['id']}})[_0x2bdcbd('0x20')](handleEntityNotFound(_0x27cd40,null))['then'](saveUpdates(_0x12a527['body'],null))[_0x2bdcbd('0x20')](respondWithResult(_0x27cd40,null))[_0x2bdcbd('0x2d')](handleError(_0x27cd40,null));},exports[_0x200ea1('0x2b')]=function(_0x3def3f,_0x8a3d2f){const _0x8fbec6=_0x200ea1;return db[_0x8fbec6('0x1e')][_0x8fbec6('0x2')]({'where':{'id':_0x3def3f[_0x8fbec6('0x6')]['id']}})[_0x8fbec6('0x20')](handleEntityNotFound(_0x8a3d2f,null))['then'](removeEntity(_0x8a3d2f,null))[_0x8fbec6('0x2d')](handleError(_0x8a3d2f,null));}; \ No newline at end of file +const a355_0x3917=['catch','../../config/logger','order','then','index','error','lodash','ZohoField','includeAll','params','attributes','key','offset','filter','destroy','where','count','show','query','undefined','merge','stack','like','Content-Range','json','filters','set','length','findOne','pick','status','findAll','name','intersection','send','rawAttributes','rows','model','update','sequelize','body','map','limit','keys','../../mysqldb','fieldName','fields','create','type','nolimit','options','../../components/parsers/qs'];(function(_0x255ea8,_0x391701){const _0x34cf91=function(_0x514164){while(--_0x514164){_0x255ea8['push'](_0x255ea8['shift']());}};_0x34cf91(++_0x391701);}(a355_0x3917,0xf9));const a355_0x34cf=function(_0x255ea8,_0x391701){_0x255ea8=_0x255ea8-0x0;let _0x34cf91=a355_0x3917[_0x255ea8];return _0x34cf91;};const _0x73b88d=a355_0x34cf;'use strict';const _=require(_0x73b88d('0x11')),qs=require(_0x73b88d('0xa')),logger=require(_0x73b88d('0xc'))('api'),db=require(_0x73b88d('0x3'))['db'],{Op}=require(_0x73b88d('0x32'));function respondWithResult(_0x514164,_0x271cfd){return _0x271cfd=_0x271cfd||0xc8,function(_0x4830a3){const _0x2b27b8=a355_0x34cf;if(_0x4830a3)return _0x514164[_0x2b27b8('0x29')](_0x271cfd)['json'](_0x4830a3);};}function respondWithFilteredResult(_0x53201a,_0x192351){return function(_0x13435e){const _0x5b6244=a355_0x34cf;if(_0x13435e){const _0x40eff0=_0x13435e['count'],_0x142b75=_0x192351[_0x5b6244('0x17')];let _0x3a4a70=_0x192351[_0x5b6244('0x17')]+_0x192351[_0x5b6244('0x1')],_0x202796;return _0x3a4a70>=_0x40eff0?(_0x3a4a70=_0x40eff0,_0x202796=0xc8):_0x202796=0xce,_0x53201a['status'](_0x202796),_0x53201a[_0x5b6244('0x25')](_0x5b6244('0x22'),_0x142b75+'-'+_0x3a4a70+'/'+_0x40eff0)[_0x5b6244('0x23')](_0x13435e);}return null;};}function saveUpdates(_0x259b7f){return function(_0x571525){const _0x31b0f1=a355_0x34cf;if(_0x571525)return _0x571525[_0x31b0f1('0x31')](_0x259b7f)[_0x31b0f1('0xe')](function(_0x3ee17e){return _0x3ee17e;});return null;};}function removeEntity(_0x1f8304){return function(_0x312050){const _0x57b9af=a355_0x34cf;if(_0x312050)return _0x312050[_0x57b9af('0x19')]()['then'](function(){const _0x59e028=_0x57b9af;_0x1f8304[_0x59e028('0x29')](0xcc)['end']();});};}function handleEntityNotFound(_0x31dd8f){return function(_0xb34cd8){return!_0xb34cd8&&_0x31dd8f['sendStatus'](0x194),_0xb34cd8;};}function handleError(_0x5a16d0,_0x2c12eb){return _0x2c12eb=_0x2c12eb||0x1f4,function(_0x44f87a){const _0x6c60f9=a355_0x34cf;logger[_0x6c60f9('0x10')](_0x44f87a[_0x6c60f9('0x20')]),_0x44f87a['name']&&delete _0x44f87a[_0x6c60f9('0x2b')],_0x5a16d0[_0x6c60f9('0x29')](_0x2c12eb)[_0x6c60f9('0x2d')](_0x44f87a);};}exports[_0x73b88d('0xf')]=function(_0xe66096,_0x104508){const _0x1731d6=_0x73b88d;let _0x3b8607={};const _0x204d7c={},_0x6994c9={'count':0x0,'rows':[]},_0xcbd55c=_['map'](db[_0x1731d6('0x12')][_0x1731d6('0x2e')],function(_0x47893e){const _0x19a6ee=_0x1731d6;return{'name':_0x47893e[_0x19a6ee('0x4')],'type':_0x47893e[_0x19a6ee('0x7')][_0x19a6ee('0x16')]};});_0x204d7c[_0x1731d6('0x30')]=_[_0x1731d6('0x0')](_0xcbd55c,'name'),_0x204d7c['query']=_[_0x1731d6('0x2')](_0xe66096['query']),_0x204d7c[_0x1731d6('0x24')]=_[_0x1731d6('0x2c')](_0x204d7c['model'],_0x204d7c[_0x1731d6('0x1d')]),_0x3b8607[_0x1731d6('0x15')]=_[_0x1731d6('0x2c')](_0x204d7c['model'],qs[_0x1731d6('0x5')](_0xe66096['query'][_0x1731d6('0x5')])),_0x3b8607[_0x1731d6('0x15')]=_0x3b8607['attributes']['length']?_0x3b8607[_0x1731d6('0x15')]:_0x204d7c[_0x1731d6('0x30')];typeof _0xe66096[_0x1731d6('0x1d')][_0x1731d6('0x8')]===_0x1731d6('0x1e')&&(_0x3b8607[_0x1731d6('0x1')]=qs['limit'](_0xe66096[_0x1731d6('0x1d')][_0x1731d6('0x1')]),_0x3b8607[_0x1731d6('0x17')]=qs[_0x1731d6('0x17')](_0xe66096[_0x1731d6('0x1d')][_0x1731d6('0x17')]));_0x3b8607[_0x1731d6('0xd')]=qs['sort'](_0xe66096[_0x1731d6('0x1d')]['sort']),_0x3b8607[_0x1731d6('0x1a')]=qs[_0x1731d6('0x24')](_[_0x1731d6('0x28')](_0xe66096[_0x1731d6('0x1d')],_0x204d7c['filters']),_0xcbd55c);_0xe66096[_0x1731d6('0x1d')]['filter']&&(_0x3b8607['where']=_[_0x1731d6('0x1f')](_0x3b8607[_0x1731d6('0x1a')],{[Op['or']]:_[_0x1731d6('0x0')](_0xcbd55c,function(_0x5743d1){const _0x36c8f3=_0x1731d6;if(_0x5743d1['type']!=='VIRTUAL'){const _0x3825a8={};return _0x3825a8[_0x5743d1[_0x36c8f3('0x2b')]]={[Op[_0x36c8f3('0x21')]]:'%'+_0xe66096[_0x36c8f3('0x1d')][_0x36c8f3('0x18')]+'%'},_0x3825a8;}})}));_0x3b8607=_[_0x1731d6('0x1f')]({},_0x3b8607,_0xe66096[_0x1731d6('0x9')]);const _0x2e28c4={'where':_0x3b8607[_0x1731d6('0x1a')]};return db['ZohoField'][_0x1731d6('0x1b')](_0x2e28c4)[_0x1731d6('0xe')](function(_0x4f1c99){const _0x3840a7=_0x1731d6;return _0x6994c9[_0x3840a7('0x1b')]=_0x4f1c99,_0xe66096[_0x3840a7('0x1d')]['includeAll']&&(_0x3b8607['include']=[{'all':!![]}]),db[_0x3840a7('0x12')][_0x3840a7('0x2a')](_0x3b8607);})[_0x1731d6('0xe')](function(_0x37fce4){const _0x15eda1=_0x1731d6;return _0x6994c9[_0x15eda1('0x2f')]=_0x37fce4,_0x6994c9;})[_0x1731d6('0xe')](respondWithFilteredResult(_0x104508,_0x3b8607))[_0x1731d6('0xb')](handleError(_0x104508,null));},exports[_0x73b88d('0x1c')]=function(_0x19d742,_0x6252ee){const _0x2a367a=_0x73b88d;let _0x46346f={'raw':!![],'where':{'id':_0x19d742['params']['id']}};const _0x1987c6={};return _0x1987c6[_0x2a367a('0x30')]=_[_0x2a367a('0x2')](db[_0x2a367a('0x12')]['rawAttributes']),_0x1987c6[_0x2a367a('0x1d')]=_[_0x2a367a('0x2')](_0x19d742[_0x2a367a('0x1d')]),_0x1987c6['filters']=_['intersection'](_0x1987c6['model'],_0x1987c6['query']),_0x46346f[_0x2a367a('0x15')]=_[_0x2a367a('0x2c')](_0x1987c6[_0x2a367a('0x30')],qs[_0x2a367a('0x5')](_0x19d742[_0x2a367a('0x1d')][_0x2a367a('0x5')])),_0x46346f[_0x2a367a('0x15')]=_0x46346f[_0x2a367a('0x15')][_0x2a367a('0x26')]?_0x46346f[_0x2a367a('0x15')]:_0x1987c6[_0x2a367a('0x30')],_0x19d742[_0x2a367a('0x1d')][_0x2a367a('0x13')]&&(_0x46346f['include']=[{'all':!![]}]),_0x46346f=_[_0x2a367a('0x1f')]({},_0x46346f,_0x19d742[_0x2a367a('0x9')]),db['ZohoField'][_0x2a367a('0x27')](_0x46346f)['then'](handleEntityNotFound(_0x6252ee,null))[_0x2a367a('0xe')](respondWithResult(_0x6252ee,null))['catch'](handleError(_0x6252ee,null));},exports[_0x73b88d('0x6')]=function(_0x2c7bab,_0x23c17a){const _0x237059=_0x73b88d;return db[_0x237059('0x12')]['create'](_0x2c7bab[_0x237059('0x33')],{})[_0x237059('0xe')](respondWithResult(_0x23c17a,0xc9))[_0x237059('0xb')](handleError(_0x23c17a,null));},exports[_0x73b88d('0x31')]=function(_0xf5a180,_0x160d32){const _0x67a49=_0x73b88d;return _0xf5a180[_0x67a49('0x33')]['id']&&delete _0xf5a180[_0x67a49('0x33')]['id'],db[_0x67a49('0x12')][_0x67a49('0x27')]({'where':{'id':_0xf5a180[_0x67a49('0x14')]['id']}})[_0x67a49('0xe')](handleEntityNotFound(_0x160d32,null))[_0x67a49('0xe')](saveUpdates(_0xf5a180['body'],null))[_0x67a49('0xe')](respondWithResult(_0x160d32,null))[_0x67a49('0xb')](handleError(_0x160d32,null));},exports['destroy']=function(_0x1a4eb8,_0x556031){const _0x206059=_0x73b88d;return db['ZohoField'][_0x206059('0x27')]({'where':{'id':_0x1a4eb8['params']['id']}})[_0x206059('0xe')](handleEntityNotFound(_0x556031,null))[_0x206059('0xe')](removeEntity(_0x556031,null))[_0x206059('0xb')](handleError(_0x556031,null));}; \ No newline at end of file diff --git a/server/api/intZohoField/intZohoField.model.js b/server/api/intZohoField/intZohoField.model.js index 50116dc..886bfd3 100644 --- a/server/api/intZohoField/intZohoField.model.js +++ b/server/api/intZohoField/intZohoField.model.js @@ -1 +1 @@ -const a356_0x5163=['ZohoField','idField','FieldId','./intZohoField.attributes','define'];(function(_0x337fd6,_0x5163a8){const _0x18add3=function(_0x1ce0da){while(--_0x1ce0da){_0x337fd6['push'](_0x337fd6['shift']());}};_0x18add3(++_0x5163a8);}(a356_0x5163,0x13c));const a356_0x18ad=function(_0x337fd6,_0x5163a8){_0x337fd6=_0x337fd6-0x0;let _0x18add3=a356_0x5163[_0x337fd6];return _0x18add3;};const _0x4358aa=a356_0x18ad;'use strict';const attributes=require(_0x4358aa('0x2'));module['exports']=function(_0x1ce0da){const _0x116b48=_0x4358aa,_0x4fbf59=_0x1ce0da[_0x116b48('0x3')](_0x116b48('0x4'),attributes,{'tableName':'int_zoho_fields','paranoid':![],'indexes':[{'name':'zoho_unique_index','fields':[_0x116b48('0x0'),_0x116b48('0x1')],'unique':!![]}],'timestamps':!![]});return _0x4fbf59;}; \ No newline at end of file +const a356_0x1a6d=['ZohoField','idField','zoho_unique_index','./intZohoField.attributes','exports','FieldId'];(function(_0x16ce78,_0x1a6dc8){const _0x562cbe=function(_0x14a32e){while(--_0x14a32e){_0x16ce78['push'](_0x16ce78['shift']());}};_0x562cbe(++_0x1a6dc8);}(a356_0x1a6d,0x174));const a356_0x562c=function(_0x16ce78,_0x1a6dc8){_0x16ce78=_0x16ce78-0x0;let _0x562cbe=a356_0x1a6d[_0x16ce78];return _0x562cbe;};const _0x26dd18=a356_0x562c;'use strict';const attributes=require(_0x26dd18('0x3'));module[_0x26dd18('0x4')]=function(_0x14a32e){const _0x57f917=_0x26dd18,_0x3ee9d4=_0x14a32e['define'](_0x57f917('0x0'),attributes,{'tableName':'int_zoho_fields','paranoid':![],'indexes':[{'name':_0x57f917('0x2'),'fields':[_0x57f917('0x1'),_0x57f917('0x5')],'unique':!![]}],'timestamps':!![]});return _0x3ee9d4;}; \ No newline at end of file diff --git a/server/api/integration/index.js b/server/api/integration/index.js index bec8b4f..ddb7ced 100644 --- a/server/api/integration/index.js +++ b/server/api/integration/index.js @@ -1 +1 @@ -const a357_0x56eb=['exports','Router'];(function(_0x21ce64,_0x56eb6e){const _0x431962=function(_0x4b71fe){while(--_0x4b71fe){_0x21ce64['push'](_0x21ce64['shift']());}};_0x431962(++_0x56eb6e);}(a357_0x56eb,0xb0));const a357_0x4319=function(_0x21ce64,_0x56eb6e){_0x21ce64=_0x21ce64-0x0;let _0x431962=a357_0x56eb[_0x21ce64];return _0x431962;};const _0x878b0c=a357_0x4319;'use strict';const express=require('express'),router=express[_0x878b0c('0x1')]();module[_0x878b0c('0x0')]=router; \ No newline at end of file +const a357_0x4d28=['express','exports'];(function(_0x1ad8a7,_0x4d286d){const _0x283761=function(_0x357f31){while(--_0x357f31){_0x1ad8a7['push'](_0x1ad8a7['shift']());}};_0x283761(++_0x4d286d);}(a357_0x4d28,0x11e));const a357_0x2837=function(_0x1ad8a7,_0x4d286d){_0x1ad8a7=_0x1ad8a7-0x0;let _0x283761=a357_0x4d28[_0x1ad8a7];return _0x283761;};const _0x3e2609=a357_0x2837;'use strict';const express=require(_0x3e2609('0x0')),router=express['Router']();module[_0x3e2609('0x1')]=router; \ No newline at end of file diff --git a/server/api/integration/integration.attributes.js b/server/api/integration/integration.attributes.js index c4be490..366ed5d 100644 --- a/server/api/integration/integration.attributes.js +++ b/server/api/integration/integration.attributes.js @@ -1 +1 @@ -const a358_0x1d69=['app.js','STRING','state','unique_name_and_version','exports','INTEGER','sequelize'];(function(_0x255907,_0x1d6913){const _0x5f0200=function(_0x385ca1){while(--_0x385ca1){_0x255907['push'](_0x255907['shift']());}};_0x5f0200(++_0x1d6913);}(a358_0x1d69,0xfb));const a358_0x5f02=function(_0x255907,_0x1d6913){_0x255907=_0x255907-0x0;let _0x5f0200=a358_0x1d69[_0x255907];return _0x5f0200;};const _0x12aa3b=a358_0x5f02;'use strict';const Sequelize=require(_0x12aa3b('0x0'));module[_0x12aa3b('0x5')]={'name':{'type':Sequelize[_0x12aa3b('0x2')],'allowNull':![],'unique':_0x12aa3b('0x4')},'version':{'type':Sequelize[_0x12aa3b('0x2')],'allowNull':![],'unique':_0x12aa3b('0x4')},'main':{'type':Sequelize['STRING'],'defaultValue':_0x12aa3b('0x1')},'filename':{'type':Sequelize[_0x12aa3b('0x2')]},'path':{'type':Sequelize[_0x12aa3b('0x2')]},'type':{'type':Sequelize['STRING']},'size':{'type':Sequelize[_0x12aa3b('0x6')]},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'author':{'type':Sequelize[_0x12aa3b('0x2')]},'logo':{'type':Sequelize[_0x12aa3b('0x2')]},'state':{'type':Sequelize[_0x12aa3b('0x2')],'unique':_0x12aa3b('0x3')},'description':{'type':Sequelize[_0x12aa3b('0x2')]},'title':{'type':Sequelize[_0x12aa3b('0x2')]},'remoteUri':{'type':Sequelize[_0x12aa3b('0x2')]},'link':{'type':Sequelize[_0x12aa3b('0x2')],'defaultValue':'#'}}; \ No newline at end of file +const a358_0xa0a5=['sequelize','unique_name_and_version','STRING','BOOLEAN','state','app.js'];(function(_0x5befa2,_0xa0a501){const _0x25cf6b=function(_0x3b66cf){while(--_0x3b66cf){_0x5befa2['push'](_0x5befa2['shift']());}};_0x25cf6b(++_0xa0a501);}(a358_0xa0a5,0xbb));const a358_0x25cf=function(_0x5befa2,_0xa0a501){_0x5befa2=_0x5befa2-0x0;let _0x25cf6b=a358_0xa0a5[_0x5befa2];return _0x25cf6b;};const _0x4c082d=a358_0x25cf;'use strict';const Sequelize=require(_0x4c082d('0x5'));module['exports']={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x4c082d('0x0')},'version':{'type':Sequelize[_0x4c082d('0x1')],'allowNull':![],'unique':_0x4c082d('0x0')},'main':{'type':Sequelize[_0x4c082d('0x1')],'defaultValue':_0x4c082d('0x4')},'filename':{'type':Sequelize[_0x4c082d('0x1')]},'path':{'type':Sequelize[_0x4c082d('0x1')]},'type':{'type':Sequelize[_0x4c082d('0x1')]},'size':{'type':Sequelize['INTEGER']},'active':{'type':Sequelize[_0x4c082d('0x2')],'defaultValue':![]},'author':{'type':Sequelize[_0x4c082d('0x1')]},'logo':{'type':Sequelize[_0x4c082d('0x1')]},'state':{'type':Sequelize[_0x4c082d('0x1')],'unique':_0x4c082d('0x3')},'description':{'type':Sequelize[_0x4c082d('0x1')]},'title':{'type':Sequelize[_0x4c082d('0x1')]},'remoteUri':{'type':Sequelize[_0x4c082d('0x1')]},'link':{'type':Sequelize['STRING'],'defaultValue':'#'}}; \ No newline at end of file diff --git a/server/api/integration/integration.controller.js b/server/api/integration/integration.controller.js index 65c0d3c..b4bd1f5 100644 --- a/server/api/integration/integration.controller.js +++ b/server/api/integration/integration.controller.js @@ -1 +1 @@ -const a359_0x3b83=['json','status','map','rawAttributes','query','where','send','lodash','fieldName','like','attributes','model','offset','Content-Range','stack','include','end','params','body','key','findOne','create','index','../../mysqldb','fields','../../config/logger','sort','keys','order','api','limit','merge','destroy','set','name','length','undefined','pick','rows','then','error','Integration','nolimit','catch','filters','options','includeAll','VIRTUAL','filter','count','type','intersection','sequelize','sendStatus','../../components/parsers/qs'];(function(_0x33fc5f,_0x3b83b2){const _0x2c297f=function(_0x464900){while(--_0x464900){_0x33fc5f['push'](_0x33fc5f['shift']());}};_0x2c297f(++_0x3b83b2);}(a359_0x3b83,0x16a));const a359_0x2c29=function(_0x33fc5f,_0x3b83b2){_0x33fc5f=_0x33fc5f-0x0;let _0x2c297f=a359_0x3b83[_0x33fc5f];return _0x2c297f;};const _0x5c9046=a359_0x2c29;'use strict';const _=require(_0x5c9046('0x1e')),qs=require(_0x5c9046('0x16')),logger=require(_0x5c9046('0x30'))(_0x5c9046('0x34')),db=require(_0x5c9046('0x2e'))['db'],{Op}=require(_0x5c9046('0x14'));function respondWithResult(_0x464900,_0x20359a){return _0x20359a=_0x20359a||0xc8,function(_0x291b5c){const _0x5d8eb0=a359_0x2c29;if(_0x291b5c)return _0x464900[_0x5d8eb0('0x18')](_0x20359a)[_0x5d8eb0('0x17')](_0x291b5c);};}function respondWithFilteredResult(_0x301699,_0x3dcb84){return function(_0x586ffc){const _0x8b6fd9=a359_0x2c29;if(_0x586ffc){const _0x224328=_0x586ffc[_0x8b6fd9('0x11')],_0x5bf030=_0x3dcb84[_0x8b6fd9('0x23')];let _0x4bb78b=_0x3dcb84['offset']+_0x3dcb84[_0x8b6fd9('0x35')],_0x10c126;return _0x4bb78b>=_0x224328?(_0x4bb78b=_0x224328,_0x10c126=0xc8):_0x10c126=0xce,_0x301699['status'](_0x10c126),_0x301699[_0x8b6fd9('0x1')](_0x8b6fd9('0x24'),_0x5bf030+'-'+_0x4bb78b+'/'+_0x224328)[_0x8b6fd9('0x17')](_0x586ffc);}return null;};}function saveUpdates(_0x2a2c30){return function(_0x42025f){if(_0x42025f)return _0x42025f['update'](_0x2a2c30)['then'](function(_0x48b174){return _0x48b174;});return null;};}function removeEntity(_0x176653){return function(_0x57e291){const _0x59eccb=a359_0x2c29;if(_0x57e291)return _0x57e291[_0x59eccb('0x0')]()[_0x59eccb('0x7')](function(){const _0x5289f0=_0x59eccb;_0x176653[_0x5289f0('0x18')](0xcc)[_0x5289f0('0x27')]();});};}function handleEntityNotFound(_0x239462){return function(_0x4977f5){const _0x288f2f=a359_0x2c29;return!_0x4977f5&&_0x239462[_0x288f2f('0x15')](0x194),_0x4977f5;};}function handleError(_0x1c8e6d,_0x43eef8){return _0x43eef8=_0x43eef8||0x1f4,function(_0x4275a6){const _0x522a16=a359_0x2c29;logger[_0x522a16('0x8')](_0x4275a6[_0x522a16('0x25')]),_0x4275a6[_0x522a16('0x2')]&&delete _0x4275a6[_0x522a16('0x2')],_0x1c8e6d[_0x522a16('0x18')](_0x43eef8)[_0x522a16('0x1d')](_0x4275a6);};}exports[_0x5c9046('0x2d')]=function(_0x14da34,_0x696574){const _0x3bd6c3=_0x5c9046;let _0x10a088={};const _0x37b75b={},_0x35f681={'count':0x0,'rows':[]},_0x5c8db4=_[_0x3bd6c3('0x19')](db['Integration']['rawAttributes'],function(_0x377241){const _0x1e515e=_0x3bd6c3;return{'name':_0x377241[_0x1e515e('0x1f')],'type':_0x377241[_0x1e515e('0x12')][_0x1e515e('0x2a')]};});_0x37b75b[_0x3bd6c3('0x22')]=_[_0x3bd6c3('0x19')](_0x5c8db4,_0x3bd6c3('0x2')),_0x37b75b[_0x3bd6c3('0x1b')]=_['keys'](_0x14da34[_0x3bd6c3('0x1b')]),_0x37b75b['filters']=_['intersection'](_0x37b75b['model'],_0x37b75b[_0x3bd6c3('0x1b')]),_0x10a088['attributes']=_[_0x3bd6c3('0x13')](_0x37b75b[_0x3bd6c3('0x22')],qs[_0x3bd6c3('0x2f')](_0x14da34[_0x3bd6c3('0x1b')][_0x3bd6c3('0x2f')])),_0x10a088[_0x3bd6c3('0x21')]=_0x10a088[_0x3bd6c3('0x21')][_0x3bd6c3('0x3')]?_0x10a088[_0x3bd6c3('0x21')]:_0x37b75b[_0x3bd6c3('0x22')];typeof _0x14da34[_0x3bd6c3('0x1b')][_0x3bd6c3('0xa')]===_0x3bd6c3('0x4')&&(_0x10a088[_0x3bd6c3('0x35')]=qs[_0x3bd6c3('0x35')](_0x14da34[_0x3bd6c3('0x1b')]['limit']),_0x10a088[_0x3bd6c3('0x23')]=qs['offset'](_0x14da34[_0x3bd6c3('0x1b')]['offset']));_0x10a088[_0x3bd6c3('0x33')]=qs[_0x3bd6c3('0x31')](_0x14da34[_0x3bd6c3('0x1b')][_0x3bd6c3('0x31')]),_0x10a088['where']=qs[_0x3bd6c3('0xc')](_[_0x3bd6c3('0x5')](_0x14da34[_0x3bd6c3('0x1b')],_0x37b75b['filters']),_0x5c8db4);_0x14da34[_0x3bd6c3('0x1b')][_0x3bd6c3('0x10')]&&(_0x10a088[_0x3bd6c3('0x1c')]=_[_0x3bd6c3('0x36')](_0x10a088[_0x3bd6c3('0x1c')],{[Op['or']]:_[_0x3bd6c3('0x19')](_0x5c8db4,function(_0x389101){const _0x1fa913=_0x3bd6c3;if(_0x389101[_0x1fa913('0x12')]!==_0x1fa913('0xf')){const _0x3643c4={};return _0x3643c4[_0x389101[_0x1fa913('0x2')]]={[Op[_0x1fa913('0x20')]]:'%'+_0x14da34[_0x1fa913('0x1b')][_0x1fa913('0x10')]+'%'},_0x3643c4;}})}));_0x10a088=_[_0x3bd6c3('0x36')]({},_0x10a088,_0x14da34[_0x3bd6c3('0xd')]);const _0x4c7619={'where':_0x10a088[_0x3bd6c3('0x1c')]};return db[_0x3bd6c3('0x9')]['count'](_0x4c7619)[_0x3bd6c3('0x7')](function(_0x2062da){const _0x31a78d=_0x3bd6c3;return _0x35f681[_0x31a78d('0x11')]=_0x2062da,_0x14da34['query'][_0x31a78d('0xe')]&&(_0x10a088['include']=[{'all':!![]}]),db[_0x31a78d('0x9')]['findAll'](_0x10a088);})[_0x3bd6c3('0x7')](function(_0x567c20){const _0x168f84=_0x3bd6c3;return _0x35f681[_0x168f84('0x6')]=_0x567c20,_0x35f681;})[_0x3bd6c3('0x7')](respondWithFilteredResult(_0x696574,_0x10a088))['catch'](handleError(_0x696574,null));},exports['show']=function(_0x508777,_0x5bcdd3){const _0x27d394=_0x5c9046;let _0x406ecb={'raw':![],'where':{'id':_0x508777['params']['id']}};const _0xa020e6={};return _0xa020e6[_0x27d394('0x22')]=_['keys'](db['Integration'][_0x27d394('0x1a')]),_0xa020e6[_0x27d394('0x1b')]=_[_0x27d394('0x32')](_0x508777[_0x27d394('0x1b')]),_0xa020e6[_0x27d394('0xc')]=_[_0x27d394('0x13')](_0xa020e6[_0x27d394('0x22')],_0xa020e6[_0x27d394('0x1b')]),_0x406ecb[_0x27d394('0x21')]=_['intersection'](_0xa020e6[_0x27d394('0x22')],qs['fields'](_0x508777[_0x27d394('0x1b')][_0x27d394('0x2f')])),_0x406ecb[_0x27d394('0x21')]=_0x406ecb['attributes'][_0x27d394('0x3')]?_0x406ecb[_0x27d394('0x21')]:_0xa020e6[_0x27d394('0x22')],_0x508777[_0x27d394('0x1b')]['includeAll']&&(_0x406ecb[_0x27d394('0x26')]=[{'all':!![]}]),_0x406ecb=_[_0x27d394('0x36')]({},_0x406ecb,_0x508777[_0x27d394('0xd')]),db[_0x27d394('0x9')][_0x27d394('0x2b')](_0x406ecb)[_0x27d394('0x7')](handleEntityNotFound(_0x5bcdd3,null))[_0x27d394('0x7')](respondWithResult(_0x5bcdd3,null))[_0x27d394('0xb')](handleError(_0x5bcdd3,null));},exports[_0x5c9046('0x2c')]=function(_0x525555,_0x7b9630){const _0x1bbb22=_0x5c9046;return db[_0x1bbb22('0x9')][_0x1bbb22('0x2c')](_0x525555[_0x1bbb22('0x29')],{})[_0x1bbb22('0x7')](respondWithResult(_0x7b9630,0xc9))[_0x1bbb22('0xb')](handleError(_0x7b9630,null));},exports['update']=function(_0x420c24,_0x4d2741){const _0x1c1146=_0x5c9046;return _0x420c24[_0x1c1146('0x29')]['id']&&delete _0x420c24[_0x1c1146('0x29')]['id'],db[_0x1c1146('0x9')]['findOne']({'where':{'id':_0x420c24[_0x1c1146('0x28')]['id']}})[_0x1c1146('0x7')](handleEntityNotFound(_0x4d2741,null))[_0x1c1146('0x7')](saveUpdates(_0x420c24[_0x1c1146('0x29')],null))['then'](respondWithResult(_0x4d2741,null))['catch'](handleError(_0x4d2741,null));},exports[_0x5c9046('0x0')]=function(_0xe6a711,_0x3a9542){const _0x425c0d=_0x5c9046;return db[_0x425c0d('0x9')][_0x425c0d('0x2b')]({'where':{'id':_0xe6a711['params']['id']}})[_0x425c0d('0x7')](handleEntityNotFound(_0x3a9542,null))['then'](removeEntity(_0x3a9542,null))[_0x425c0d('0xb')](handleError(_0x3a9542,null));}; \ No newline at end of file +const a359_0x1090=['rows','limit','params','../../mysqldb','set','status','type','body','filter','destroy','Content-Range','fields','length','sendStatus','../../config/logger','sequelize','findOne','key','options','filters','api','merge','map','keys','undefined','send','attributes','lodash','Integration','index','model','update','includeAll','sort','include','query','like','where','count','catch','error','pick','rawAttributes','intersection','stack','order','offset','name','../../components/parsers/qs','fieldName','nolimit','create','then','json'];(function(_0x234cee,_0x109052){const _0x3b33ed=function(_0x59ab4f){while(--_0x59ab4f){_0x234cee['push'](_0x234cee['shift']());}};_0x3b33ed(++_0x109052);}(a359_0x1090,0xd8));const a359_0x3b33=function(_0x234cee,_0x109052){_0x234cee=_0x234cee-0x0;let _0x3b33ed=a359_0x1090[_0x234cee];return _0x3b33ed;};const _0x4f8d3b=a359_0x3b33;'use strict';const _=require(_0x4f8d3b('0x1b')),qs=require(_0x4f8d3b('0x30')),logger=require(_0x4f8d3b('0xe'))(_0x4f8d3b('0x14')),db=require(_0x4f8d3b('0x3'))['db'],{Op}=require(_0x4f8d3b('0xf'));function respondWithResult(_0x59ab4f,_0x2d49e1){return _0x2d49e1=_0x2d49e1||0xc8,function(_0x396b85){if(_0x396b85)return _0x59ab4f['status'](_0x2d49e1)['json'](_0x396b85);};}function respondWithFilteredResult(_0x5af2af,_0x38e70b){return function(_0x21b33b){const _0x5cfc8e=a359_0x3b33;if(_0x21b33b){const _0x4cbff1=_0x21b33b[_0x5cfc8e('0x26')],_0x5a7823=_0x38e70b[_0x5cfc8e('0x2e')];let _0x4c2c31=_0x38e70b[_0x5cfc8e('0x2e')]+_0x38e70b[_0x5cfc8e('0x1')],_0x1490e3;return _0x4c2c31>=_0x4cbff1?(_0x4c2c31=_0x4cbff1,_0x1490e3=0xc8):_0x1490e3=0xce,_0x5af2af[_0x5cfc8e('0x5')](_0x1490e3),_0x5af2af[_0x5cfc8e('0x4')](_0x5cfc8e('0xa'),_0x5a7823+'-'+_0x4c2c31+'/'+_0x4cbff1)[_0x5cfc8e('0x35')](_0x21b33b);}return null;};}function saveUpdates(_0x52a529){return function(_0x3269b5){const _0x2ee243=a359_0x3b33;if(_0x3269b5)return _0x3269b5['update'](_0x52a529)[_0x2ee243('0x34')](function(_0x484b7e){return _0x484b7e;});return null;};}function removeEntity(_0x2d2fc0){return function(_0x5ed54e){const _0x1158fc=a359_0x3b33;if(_0x5ed54e)return _0x5ed54e[_0x1158fc('0x9')]()['then'](function(){_0x2d2fc0['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x21961e){return function(_0x287d52){const _0x192861=a359_0x3b33;return!_0x287d52&&_0x21961e[_0x192861('0xd')](0x194),_0x287d52;};}function handleError(_0x29871a,_0x4806d3){return _0x4806d3=_0x4806d3||0x1f4,function(_0x1b0965){const _0x2f3f57=a359_0x3b33;logger[_0x2f3f57('0x28')](_0x1b0965[_0x2f3f57('0x2c')]),_0x1b0965[_0x2f3f57('0x2f')]&&delete _0x1b0965['name'],_0x29871a[_0x2f3f57('0x5')](_0x4806d3)[_0x2f3f57('0x19')](_0x1b0965);};}exports[_0x4f8d3b('0x1d')]=function(_0x253638,_0x5c37b9){const _0x2d5e47=_0x4f8d3b;let _0x4bf678={};const _0x45e257={},_0x4c06c6={'count':0x0,'rows':[]},_0x11c57c=_[_0x2d5e47('0x16')](db[_0x2d5e47('0x1c')][_0x2d5e47('0x2a')],function(_0x1f303d){const _0x451dcb=_0x2d5e47;return{'name':_0x1f303d[_0x451dcb('0x31')],'type':_0x1f303d[_0x451dcb('0x6')][_0x451dcb('0x11')]};});_0x45e257[_0x2d5e47('0x1e')]=_[_0x2d5e47('0x16')](_0x11c57c,_0x2d5e47('0x2f')),_0x45e257[_0x2d5e47('0x23')]=_[_0x2d5e47('0x17')](_0x253638[_0x2d5e47('0x23')]),_0x45e257[_0x2d5e47('0x13')]=_[_0x2d5e47('0x2b')](_0x45e257[_0x2d5e47('0x1e')],_0x45e257[_0x2d5e47('0x23')]),_0x4bf678[_0x2d5e47('0x1a')]=_['intersection'](_0x45e257['model'],qs[_0x2d5e47('0xb')](_0x253638[_0x2d5e47('0x23')][_0x2d5e47('0xb')])),_0x4bf678[_0x2d5e47('0x1a')]=_0x4bf678[_0x2d5e47('0x1a')][_0x2d5e47('0xc')]?_0x4bf678[_0x2d5e47('0x1a')]:_0x45e257['model'];typeof _0x253638[_0x2d5e47('0x23')][_0x2d5e47('0x32')]===_0x2d5e47('0x18')&&(_0x4bf678[_0x2d5e47('0x1')]=qs[_0x2d5e47('0x1')](_0x253638[_0x2d5e47('0x23')][_0x2d5e47('0x1')]),_0x4bf678[_0x2d5e47('0x2e')]=qs[_0x2d5e47('0x2e')](_0x253638[_0x2d5e47('0x23')][_0x2d5e47('0x2e')]));_0x4bf678[_0x2d5e47('0x2d')]=qs[_0x2d5e47('0x21')](_0x253638[_0x2d5e47('0x23')][_0x2d5e47('0x21')]),_0x4bf678[_0x2d5e47('0x25')]=qs[_0x2d5e47('0x13')](_[_0x2d5e47('0x29')](_0x253638['query'],_0x45e257[_0x2d5e47('0x13')]),_0x11c57c);_0x253638[_0x2d5e47('0x23')][_0x2d5e47('0x8')]&&(_0x4bf678[_0x2d5e47('0x25')]=_[_0x2d5e47('0x15')](_0x4bf678[_0x2d5e47('0x25')],{[Op['or']]:_[_0x2d5e47('0x16')](_0x11c57c,function(_0x1f344c){const _0x493c66=_0x2d5e47;if(_0x1f344c[_0x493c66('0x6')]!=='VIRTUAL'){const _0x13e8a3={};return _0x13e8a3[_0x1f344c[_0x493c66('0x2f')]]={[Op[_0x493c66('0x24')]]:'%'+_0x253638['query'][_0x493c66('0x8')]+'%'},_0x13e8a3;}})}));_0x4bf678=_[_0x2d5e47('0x15')]({},_0x4bf678,_0x253638[_0x2d5e47('0x12')]);const _0x4eeda0={'where':_0x4bf678[_0x2d5e47('0x25')]};return db['Integration'][_0x2d5e47('0x26')](_0x4eeda0)['then'](function(_0x30c5b9){const _0x2336ae=_0x2d5e47;return _0x4c06c6['count']=_0x30c5b9,_0x253638[_0x2336ae('0x23')][_0x2336ae('0x20')]&&(_0x4bf678[_0x2336ae('0x22')]=[{'all':!![]}]),db[_0x2336ae('0x1c')]['findAll'](_0x4bf678);})['then'](function(_0x29ed47){const _0x4c1ae9=_0x2d5e47;return _0x4c06c6[_0x4c1ae9('0x0')]=_0x29ed47,_0x4c06c6;})[_0x2d5e47('0x34')](respondWithFilteredResult(_0x5c37b9,_0x4bf678))[_0x2d5e47('0x27')](handleError(_0x5c37b9,null));},exports['show']=function(_0x4d9110,_0x1454ba){const _0x320a0f=_0x4f8d3b;let _0x1e7a4f={'raw':![],'where':{'id':_0x4d9110[_0x320a0f('0x2')]['id']}};const _0x219d21={};return _0x219d21['model']=_['keys'](db[_0x320a0f('0x1c')]['rawAttributes']),_0x219d21[_0x320a0f('0x23')]=_[_0x320a0f('0x17')](_0x4d9110[_0x320a0f('0x23')]),_0x219d21[_0x320a0f('0x13')]=_[_0x320a0f('0x2b')](_0x219d21['model'],_0x219d21[_0x320a0f('0x23')]),_0x1e7a4f['attributes']=_[_0x320a0f('0x2b')](_0x219d21[_0x320a0f('0x1e')],qs[_0x320a0f('0xb')](_0x4d9110['query'][_0x320a0f('0xb')])),_0x1e7a4f[_0x320a0f('0x1a')]=_0x1e7a4f['attributes'][_0x320a0f('0xc')]?_0x1e7a4f[_0x320a0f('0x1a')]:_0x219d21[_0x320a0f('0x1e')],_0x4d9110[_0x320a0f('0x23')][_0x320a0f('0x20')]&&(_0x1e7a4f['include']=[{'all':!![]}]),_0x1e7a4f=_['merge']({},_0x1e7a4f,_0x4d9110[_0x320a0f('0x12')]),db[_0x320a0f('0x1c')][_0x320a0f('0x10')](_0x1e7a4f)[_0x320a0f('0x34')](handleEntityNotFound(_0x1454ba,null))[_0x320a0f('0x34')](respondWithResult(_0x1454ba,null))[_0x320a0f('0x27')](handleError(_0x1454ba,null));},exports[_0x4f8d3b('0x33')]=function(_0x5b3f88,_0xb84d1d){const _0x50b4d6=_0x4f8d3b;return db[_0x50b4d6('0x1c')][_0x50b4d6('0x33')](_0x5b3f88[_0x50b4d6('0x7')],{})['then'](respondWithResult(_0xb84d1d,0xc9))[_0x50b4d6('0x27')](handleError(_0xb84d1d,null));},exports[_0x4f8d3b('0x1f')]=function(_0x4683ed,_0x4705d0){const _0x260f40=_0x4f8d3b;return _0x4683ed[_0x260f40('0x7')]['id']&&delete _0x4683ed[_0x260f40('0x7')]['id'],db[_0x260f40('0x1c')][_0x260f40('0x10')]({'where':{'id':_0x4683ed[_0x260f40('0x2')]['id']}})['then'](handleEntityNotFound(_0x4705d0,null))[_0x260f40('0x34')](saveUpdates(_0x4683ed['body'],null))[_0x260f40('0x34')](respondWithResult(_0x4705d0,null))['catch'](handleError(_0x4705d0,null));},exports['destroy']=function(_0x5b706a,_0xf6bea3){const _0x300535=_0x4f8d3b;return db[_0x300535('0x1c')][_0x300535('0x10')]({'where':{'id':_0x5b706a[_0x300535('0x2')]['id']}})[_0x300535('0x34')](handleEntityNotFound(_0xf6bea3,null))['then'](removeEntity(_0xf6bea3,null))[_0x300535('0x27')](handleError(_0xf6bea3,null));}; \ No newline at end of file diff --git a/server/api/integration/integration.model.js b/server/api/integration/integration.model.js index 6793a4f..3bc139e 100644 --- a/server/api/integration/integration.model.js +++ b/server/api/integration/integration.model.js @@ -1 +1 @@ -const a360_0x5be4=['Integration','define','./integration.attributes','integrations'];(function(_0x12b26e,_0x5be4d5){const _0x4220ef=function(_0x581692){while(--_0x581692){_0x12b26e['push'](_0x12b26e['shift']());}};_0x4220ef(++_0x5be4d5);}(a360_0x5be4,0xc5));const a360_0x4220=function(_0x12b26e,_0x5be4d5){_0x12b26e=_0x12b26e-0x0;let _0x4220ef=a360_0x5be4[_0x12b26e];return _0x4220ef;};const _0x740209=a360_0x4220;'use strict';const attributes=require(_0x740209('0x1'));module['exports']=function(_0x581692){const _0x4a12ef=_0x740209,_0x5bb8f8=_0x581692[_0x4a12ef('0x0')](_0x4a12ef('0x3'),attributes,{'tableName':_0x4a12ef('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5bb8f8;}; \ No newline at end of file +const a360_0x5300=['Integration','define','./integration.attributes','exports'];(function(_0x5d6a47,_0x53000c){const _0x2ac41d=function(_0x429aa6){while(--_0x429aa6){_0x5d6a47['push'](_0x5d6a47['shift']());}};_0x2ac41d(++_0x53000c);}(a360_0x5300,0x148));const a360_0x2ac4=function(_0x5d6a47,_0x53000c){_0x5d6a47=_0x5d6a47-0x0;let _0x2ac41d=a360_0x5300[_0x5d6a47];return _0x2ac41d;};const _0x4adbb2=a360_0x2ac4;'use strict';const attributes=require(_0x4adbb2('0x2'));module[_0x4adbb2('0x3')]=function(_0x429aa6){const _0x38de5a=_0x4adbb2,_0x59115e=_0x429aa6[_0x38de5a('0x1')](_0x38de5a('0x0'),attributes,{'tableName':'integrations','paranoid':![],'indexes':[],'timestamps':!![]});return _0x59115e;}; \ No newline at end of file diff --git a/server/api/integrationReport/index.js b/server/api/integrationReport/index.js index b93b38a..6edd033 100644 --- a/server/api/integrationReport/index.js +++ b/server/api/integrationReport/index.js @@ -1 +1 @@ -const a361_0x4736=['get','describe','/:id','delete','show','destroy','express','isAuthenticated','create','exports','./integrationReport.controller','../../components/auth/service','update','/describe'];(function(_0x35d104,_0x47364b){const _0xbf5b91=function(_0x1ba876){while(--_0x1ba876){_0x35d104['push'](_0x35d104['shift']());}};_0xbf5b91(++_0x47364b);}(a361_0x4736,0xae));const a361_0xbf5b=function(_0x35d104,_0x47364b){_0x35d104=_0x35d104-0x0;let _0xbf5b91=a361_0x4736[_0x35d104];return _0xbf5b91;};const _0x395ad1=a361_0xbf5b;'use strict';const express=require(_0x395ad1('0x0')),router=express['Router'](),auth=require(_0x395ad1('0x5')),controller=require(_0x395ad1('0x4'));router[_0x395ad1('0x8')]('/',auth['isAuthenticated'](),controller['index']),router[_0x395ad1('0x8')](_0x395ad1('0x7'),auth[_0x395ad1('0x1')](),controller[_0x395ad1('0x9')]),router[_0x395ad1('0x8')](_0x395ad1('0xa'),auth[_0x395ad1('0x1')](),controller[_0x395ad1('0xc')]),router['post']('/',auth[_0x395ad1('0x1')](),controller[_0x395ad1('0x2')]),router['put']('/:id',auth[_0x395ad1('0x1')](),controller[_0x395ad1('0x6')]),router[_0x395ad1('0xb')](_0x395ad1('0xa'),auth[_0x395ad1('0x1')](),controller[_0x395ad1('0xd')]),module[_0x395ad1('0x3')]=router; \ No newline at end of file +const a361_0x3958=['/describe','express','index','./integrationReport.controller','/:id','get','update','Router','exports','delete','describe','post','create','isAuthenticated'];(function(_0x413f34,_0x39588b){const _0x3a557e=function(_0xf4440a){while(--_0xf4440a){_0x413f34['push'](_0x413f34['shift']());}};_0x3a557e(++_0x39588b);}(a361_0x3958,0x7e));const a361_0x3a55=function(_0x413f34,_0x39588b){_0x413f34=_0x413f34-0x0;let _0x3a557e=a361_0x3958[_0x413f34];return _0x3a557e;};const _0x2c8974=a361_0x3a55;'use strict';const express=require(_0x2c8974('0x1')),router=express[_0x2c8974('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x2c8974('0x3'));router[_0x2c8974('0x5')]('/',auth[_0x2c8974('0xd')](),controller[_0x2c8974('0x2')]),router['get'](_0x2c8974('0x0'),auth['isAuthenticated'](),controller[_0x2c8974('0xa')]),router[_0x2c8974('0x5')](_0x2c8974('0x4'),auth[_0x2c8974('0xd')](),controller['show']),router[_0x2c8974('0xb')]('/',auth[_0x2c8974('0xd')](),controller[_0x2c8974('0xc')]),router['put'](_0x2c8974('0x4'),auth['isAuthenticated'](),controller[_0x2c8974('0x6')]),router[_0x2c8974('0x9')]('/:id',auth['isAuthenticated'](),controller['destroy']),module[_0x2c8974('0x8')]=router; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.attributes.js b/server/api/integrationReport/integrationReport.attributes.js index 914a3fd..fe43caf 100644 --- a/server/api/integrationReport/integrationReport.attributes.js +++ b/server/api/integrationReport/integrationReport.attributes.js @@ -1 +1 @@ -const a362_0x3e10=['RECEIVED','exports','SENT','TEXT','sequelize','BOOLEAN','FAILED','ENUM','SENDING','STRING','INTEGER','DATE'];(function(_0x31121c,_0x3e10cf){const _0x4cb124=function(_0x41ca29){while(--_0x41ca29){_0x31121c['push'](_0x31121c['shift']());}};_0x4cb124(++_0x3e10cf);}(a362_0x3e10,0x1c8));const a362_0x4cb1=function(_0x31121c,_0x3e10cf){_0x31121c=_0x31121c-0x0;let _0x4cb124=a362_0x3e10[_0x31121c];return _0x4cb124;};const _0x26c49c=a362_0x4cb1;'use strict';const Sequelize=require(_0x26c49c('0x4'));module[_0x26c49c('0x1')]={'integration':{'type':Sequelize[_0x26c49c('0x9')]},'eventChannel':{'type':Sequelize[_0x26c49c('0x9')]},'exitStatus':{'type':Sequelize[_0x26c49c('0x9')]},'ticketId':{'type':Sequelize['STRING']},'integrationId':{'type':Sequelize['INTEGER']},'contacts':{'type':Sequelize[_0x26c49c('0x9')]},'uniqueid':{'type':Sequelize[_0x26c49c('0x9')]},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x26c49c('0x9')]},'queue':{'type':Sequelize[_0x26c49c('0x9')]},'interface':{'type':Sequelize[_0x26c49c('0x9')]},'membername':{'type':Sequelize[_0x26c49c('0x9')]},'agentcalledAt':{'type':Sequelize['DATE']},'agentconnectAt':{'type':Sequelize[_0x26c49c('0xb')]},'holdtime':{'type':Sequelize[_0x26c49c('0xa')]},'agentcomplete':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentcompleteAt':{'type':Sequelize[_0x26c49c('0xb')]},'talktime':{'type':Sequelize[_0x26c49c('0xa')]},'agentacw':{'type':Sequelize[_0x26c49c('0x5')],'defaultValue':![]},'acwtime':{'type':Sequelize[_0x26c49c('0xa')]},'reason':{'type':Sequelize['STRING']},'agentringnoanswer':{'type':Sequelize[_0x26c49c('0x5')],'defaultValue':![]},'agentringnoanswerAt':{'type':Sequelize[_0x26c49c('0xb')]},'agentdump':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentdumpAt':{'type':Sequelize[_0x26c49c('0xb')]},'lastevent':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x26c49c('0x9')]},'channelstate':{'type':Sequelize[_0x26c49c('0xa')]},'channelstatedesc':{'type':Sequelize[_0x26c49c('0x9')]},'connectedlinenum':{'type':Sequelize[_0x26c49c('0x9')]},'connectedlinename':{'type':Sequelize[_0x26c49c('0x9')]},'language':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x26c49c('0x9')]},'context':{'type':Sequelize[_0x26c49c('0x9')]},'exten':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0x26c49c('0x9')]},'destchannel':{'type':Sequelize[_0x26c49c('0x9')]},'destchannelstate':{'type':Sequelize[_0x26c49c('0xa')]},'destchannelstatedesc':{'type':Sequelize[_0x26c49c('0x9')]},'destcalleridnum':{'type':Sequelize[_0x26c49c('0x9')]},'destcalleridname':{'type':Sequelize['STRING']},'destconnectedlinenum':{'type':Sequelize[_0x26c49c('0x9')]},'destconnectedlinename':{'type':Sequelize['STRING']},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize[_0x26c49c('0x9')]},'destcontext':{'type':Sequelize[_0x26c49c('0x9')]},'destexten':{'type':Sequelize[_0x26c49c('0x9')]},'destpriority':{'type':Sequelize[_0x26c49c('0x9')]},'destuniqueid':{'type':Sequelize[_0x26c49c('0x9')]},'messageId':{'type':Sequelize[_0x26c49c('0x9')]},'inReplyTo':{'type':Sequelize[_0x26c49c('0x9')]},'subject':{'type':Sequelize[_0x26c49c('0x9')]},'from':{'type':Sequelize[_0x26c49c('0x9')]},'to':{'type':Sequelize[_0x26c49c('0x9')]},'cc':{'type':Sequelize['STRING']},'attachment':{'type':Sequelize[_0x26c49c('0x3')]},'html':{'type':Sequelize[_0x26c49c('0x3')]},'text':{'type':Sequelize[_0x26c49c('0x3')]},'status':{'type':Sequelize[_0x26c49c('0x7')](_0x26c49c('0x2'),_0x26c49c('0x8'),_0x26c49c('0x0'),_0x26c49c('0x6'))},'url':{'type':Sequelize[_0x26c49c('0x9')]},'app':{'type':Sequelize[_0x26c49c('0x9')]},'appdata':{'type':Sequelize[_0x26c49c('0x9')]},'projectId':{'type':Sequelize[_0x26c49c('0xa')]}}; \ No newline at end of file +const a362_0x2f03=['sequelize','ENUM','DATE','FAILED','INTEGER','RECEIVED','SENT','STRING','BOOLEAN','TEXT','exports','SENDING'];(function(_0x490910,_0x2f0352){const _0x3b8122=function(_0x338147){while(--_0x338147){_0x490910['push'](_0x490910['shift']());}};_0x3b8122(++_0x2f0352);}(a362_0x2f03,0x1e6));const a362_0x3b81=function(_0x490910,_0x2f0352){_0x490910=_0x490910-0x0;let _0x3b8122=a362_0x2f03[_0x490910];return _0x3b8122;};const _0x51c67f=a362_0x3b81;'use strict';const Sequelize=require(_0x51c67f('0x6'));module[_0x51c67f('0x4')]={'integration':{'type':Sequelize[_0x51c67f('0x1')]},'eventChannel':{'type':Sequelize['STRING']},'exitStatus':{'type':Sequelize[_0x51c67f('0x1')]},'ticketId':{'type':Sequelize[_0x51c67f('0x1')]},'integrationId':{'type':Sequelize[_0x51c67f('0xa')]},'contacts':{'type':Sequelize[_0x51c67f('0x1')]},'uniqueid':{'type':Sequelize[_0x51c67f('0x1')]},'calleridnum':{'type':Sequelize[_0x51c67f('0x1')]},'calleridname':{'type':Sequelize[_0x51c67f('0x1')]},'queue':{'type':Sequelize[_0x51c67f('0x1')]},'interface':{'type':Sequelize[_0x51c67f('0x1')]},'membername':{'type':Sequelize['STRING']},'agentcalledAt':{'type':Sequelize[_0x51c67f('0x8')]},'agentconnectAt':{'type':Sequelize[_0x51c67f('0x8')]},'holdtime':{'type':Sequelize[_0x51c67f('0xa')]},'agentcomplete':{'type':Sequelize[_0x51c67f('0x2')],'defaultValue':![]},'agentcompleteAt':{'type':Sequelize['DATE']},'talktime':{'type':Sequelize[_0x51c67f('0xa')]},'agentacw':{'type':Sequelize[_0x51c67f('0x2')],'defaultValue':![]},'acwtime':{'type':Sequelize[_0x51c67f('0xa')]},'reason':{'type':Sequelize[_0x51c67f('0x1')]},'agentringnoanswer':{'type':Sequelize[_0x51c67f('0x2')],'defaultValue':![]},'agentringnoanswerAt':{'type':Sequelize[_0x51c67f('0x8')]},'agentdump':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentdumpAt':{'type':Sequelize['DATE']},'lastevent':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x51c67f('0x1')]},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0x51c67f('0x1')]},'connectedlinenum':{'type':Sequelize[_0x51c67f('0x1')]},'connectedlinename':{'type':Sequelize[_0x51c67f('0x1')]},'language':{'type':Sequelize[_0x51c67f('0x1')]},'accountcode':{'type':Sequelize[_0x51c67f('0x1')]},'context':{'type':Sequelize[_0x51c67f('0x1')]},'exten':{'type':Sequelize[_0x51c67f('0x1')]},'priority':{'type':Sequelize[_0x51c67f('0x1')]},'destchannel':{'type':Sequelize[_0x51c67f('0x1')]},'destchannelstate':{'type':Sequelize[_0x51c67f('0xa')]},'destchannelstatedesc':{'type':Sequelize[_0x51c67f('0x1')]},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize[_0x51c67f('0x1')]},'destconnectedlinenum':{'type':Sequelize[_0x51c67f('0x1')]},'destconnectedlinename':{'type':Sequelize[_0x51c67f('0x1')]},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize[_0x51c67f('0x1')]},'destcontext':{'type':Sequelize[_0x51c67f('0x1')]},'destexten':{'type':Sequelize['STRING']},'destpriority':{'type':Sequelize[_0x51c67f('0x1')]},'destuniqueid':{'type':Sequelize[_0x51c67f('0x1')]},'messageId':{'type':Sequelize[_0x51c67f('0x1')]},'inReplyTo':{'type':Sequelize[_0x51c67f('0x1')]},'subject':{'type':Sequelize[_0x51c67f('0x1')]},'from':{'type':Sequelize[_0x51c67f('0x1')]},'to':{'type':Sequelize[_0x51c67f('0x1')]},'cc':{'type':Sequelize['STRING']},'attachment':{'type':Sequelize['TEXT']},'html':{'type':Sequelize[_0x51c67f('0x3')]},'text':{'type':Sequelize[_0x51c67f('0x3')]},'status':{'type':Sequelize[_0x51c67f('0x7')](_0x51c67f('0x0'),_0x51c67f('0x5'),_0x51c67f('0xb'),_0x51c67f('0x9'))},'url':{'type':Sequelize['STRING']},'app':{'type':Sequelize[_0x51c67f('0x1')]},'appdata':{'type':Sequelize[_0x51c67f('0x1')]},'projectId':{'type':Sequelize[_0x51c67f('0xa')]}}; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.controller.js b/server/api/integrationReport/integrationReport.controller.js index f798c1f..40f7528 100644 --- a/server/api/integrationReport/integrationReport.controller.js +++ b/server/api/integrationReport/integrationReport.controller.js @@ -1 +1 @@ -const a363_0x5784=['body','stack','params','filter','order','IntegrationReport','describe','rows','fields','attributes','pick','update','merge','rawAttributes','../../components/parsers/qs','limit','then','offset','error','show','set','json','keys','include','intersection','findAll','fieldName','../../config/logger','sort','includeAll','destroy','catch','nolimit','index','send','where','../../mysqldb','status','create','count','sendStatus','length','key','query','options','map','VIRTUAL','model','like','Content-Range','end','type','filters','name','findOne'];(function(_0x16b431,_0x5784bf){const _0x2b8965=function(_0x29c0d2){while(--_0x29c0d2){_0x16b431['push'](_0x16b431['shift']());}};_0x2b8965(++_0x5784bf);}(a363_0x5784,0x99));const a363_0x2b89=function(_0x16b431,_0x5784bf){_0x16b431=_0x16b431-0x0;let _0x2b8965=a363_0x5784[_0x16b431];return _0x2b8965;};const _0x40b7a2=a363_0x2b89;'use strict';const _=require('lodash'),qs=require(_0x40b7a2('0x1a')),logger=require(_0x40b7a2('0x27'))('api'),db=require(_0x40b7a2('0x30'))['db'],{Op}=require('sequelize');function respondWithResult(_0x29c0d2,_0x3b294c){return _0x3b294c=_0x3b294c||0xc8,function(_0x5b9640){const _0x5ca812=a363_0x2b89;if(_0x5b9640)return _0x29c0d2[_0x5ca812('0x31')](_0x3b294c)[_0x5ca812('0x21')](_0x5b9640);};}function respondWithFilteredResult(_0xd4450,_0x3e69c4){return function(_0x32b88f){const _0x3ec5f9=a363_0x2b89;if(_0x32b88f){const _0x5a6c2d=_0x32b88f[_0x3ec5f9('0x33')],_0x12d6e4=_0x3e69c4['offset'];let _0x1d4b66=_0x3e69c4[_0x3ec5f9('0x1d')]+_0x3e69c4['limit'],_0x28e9ab;return _0x1d4b66>=_0x5a6c2d?(_0x1d4b66=_0x5a6c2d,_0x28e9ab=0xc8):_0x28e9ab=0xce,_0xd4450[_0x3ec5f9('0x31')](_0x28e9ab),_0xd4450[_0x3ec5f9('0x20')](_0x3ec5f9('0x6'),_0x12d6e4+'-'+_0x1d4b66+'/'+_0x5a6c2d)['json'](_0x32b88f);}return null;};}function saveUpdates(_0x301fd1){return function(_0x101476){const _0x56f54=a363_0x2b89;if(_0x101476)return _0x101476['update'](_0x301fd1)[_0x56f54('0x1c')](function(_0x44c107){return _0x44c107;});return null;};}function removeEntity(_0x1ee799){return function(_0x4c0876){const _0x5626fe=a363_0x2b89;if(_0x4c0876)return _0x4c0876['destroy']()[_0x5626fe('0x1c')](function(){const _0x33a3c7=_0x5626fe;_0x1ee799[_0x33a3c7('0x31')](0xcc)[_0x33a3c7('0x7')]();});};}function handleEntityNotFound(_0x59ac03){return function(_0x37d09e){const _0x4ca843=a363_0x2b89;return!_0x37d09e&&_0x59ac03[_0x4ca843('0x34')](0x194),_0x37d09e;};}function handleError(_0x5e2064,_0x2c294e){return _0x2c294e=_0x2c294e||0x1f4,function(_0xc3e254){const _0x7efa63=a363_0x2b89;logger[_0x7efa63('0x1e')](_0xc3e254[_0x7efa63('0xd')]),_0xc3e254['name']&&delete _0xc3e254[_0x7efa63('0xa')],_0x5e2064[_0x7efa63('0x31')](_0x2c294e)[_0x7efa63('0x2e')](_0xc3e254);};}exports[_0x40b7a2('0x2d')]=function(_0x80b319,_0x17e758){const _0x448063=_0x40b7a2;let _0x3edf41={};const _0x2e02b1={},_0x14dc80={'count':0x0,'rows':[]},_0x281429=_[_0x448063('0x2')](db['IntegrationReport']['rawAttributes'],function(_0x5b9255){const _0x5d04bf=_0x448063;return{'name':_0x5b9255[_0x5d04bf('0x26')],'type':_0x5b9255['type'][_0x5d04bf('0x36')]};});_0x2e02b1[_0x448063('0x4')]=_[_0x448063('0x2')](_0x281429,'name'),_0x2e02b1[_0x448063('0x0')]=_[_0x448063('0x22')](_0x80b319[_0x448063('0x0')]),_0x2e02b1[_0x448063('0x9')]=_['intersection'](_0x2e02b1[_0x448063('0x4')],_0x2e02b1[_0x448063('0x0')]),_0x3edf41[_0x448063('0x15')]=_[_0x448063('0x24')](_0x2e02b1['model'],qs[_0x448063('0x14')](_0x80b319[_0x448063('0x0')][_0x448063('0x14')])),_0x3edf41[_0x448063('0x15')]=_0x3edf41[_0x448063('0x15')][_0x448063('0x35')]?_0x3edf41[_0x448063('0x15')]:_0x2e02b1['model'];typeof _0x80b319[_0x448063('0x0')][_0x448063('0x2c')]==='undefined'&&(_0x3edf41['limit']=qs[_0x448063('0x1b')](_0x80b319[_0x448063('0x0')][_0x448063('0x1b')]),_0x3edf41[_0x448063('0x1d')]=qs['offset'](_0x80b319[_0x448063('0x0')]['offset']));_0x3edf41[_0x448063('0x10')]=qs[_0x448063('0x28')](_0x80b319[_0x448063('0x0')][_0x448063('0x28')]),_0x3edf41['where']=qs['filters'](_[_0x448063('0x16')](_0x80b319[_0x448063('0x0')],_0x2e02b1[_0x448063('0x9')]),_0x281429);_0x80b319[_0x448063('0x0')][_0x448063('0xf')]&&(_0x3edf41[_0x448063('0x2f')]=_[_0x448063('0x18')](_0x3edf41[_0x448063('0x2f')],{[Op['or']]:_[_0x448063('0x2')](_0x281429,function(_0x1732c6){const _0x288462=_0x448063;if(_0x1732c6[_0x288462('0x8')]!==_0x288462('0x3')){const _0xeee5ca={};return _0xeee5ca[_0x1732c6[_0x288462('0xa')]]={[Op[_0x288462('0x5')]]:'%'+_0x80b319['query'][_0x288462('0xf')]+'%'},_0xeee5ca;}})}));_0x3edf41=_[_0x448063('0x18')]({},_0x3edf41,_0x80b319[_0x448063('0x1')]);const _0x369210={'where':_0x3edf41[_0x448063('0x2f')]};return db[_0x448063('0x11')][_0x448063('0x33')](_0x369210)['then'](function(_0x505576){const _0x234ec0=_0x448063;return _0x14dc80[_0x234ec0('0x33')]=_0x505576,_0x80b319[_0x234ec0('0x0')][_0x234ec0('0x29')]&&(_0x3edf41[_0x234ec0('0x23')]=[{'all':!![]}]),db['IntegrationReport'][_0x234ec0('0x25')](_0x3edf41);})[_0x448063('0x1c')](function(_0x855da2){const _0x28bb17=_0x448063;return _0x14dc80[_0x28bb17('0x13')]=_0x855da2,_0x14dc80;})['then'](respondWithFilteredResult(_0x17e758,_0x3edf41))[_0x448063('0x2b')](handleError(_0x17e758,null));},exports[_0x40b7a2('0x1f')]=function(_0x329519,_0xfe652c){const _0x5eb6be=_0x40b7a2;let _0x4b9523={'raw':![],'where':{'id':_0x329519['params']['id']}};const _0x50b86a={};return _0x50b86a[_0x5eb6be('0x4')]=_[_0x5eb6be('0x22')](db[_0x5eb6be('0x11')][_0x5eb6be('0x19')]),_0x50b86a[_0x5eb6be('0x0')]=_[_0x5eb6be('0x22')](_0x329519['query']),_0x50b86a[_0x5eb6be('0x9')]=_[_0x5eb6be('0x24')](_0x50b86a[_0x5eb6be('0x4')],_0x50b86a[_0x5eb6be('0x0')]),_0x4b9523[_0x5eb6be('0x15')]=_[_0x5eb6be('0x24')](_0x50b86a['model'],qs[_0x5eb6be('0x14')](_0x329519[_0x5eb6be('0x0')][_0x5eb6be('0x14')])),_0x4b9523['attributes']=_0x4b9523['attributes']['length']?_0x4b9523['attributes']:_0x50b86a[_0x5eb6be('0x4')],_0x329519[_0x5eb6be('0x0')]['includeAll']&&(_0x4b9523[_0x5eb6be('0x23')]=[{'all':!![]}]),_0x4b9523=_[_0x5eb6be('0x18')]({},_0x4b9523,_0x329519[_0x5eb6be('0x1')]),db[_0x5eb6be('0x11')][_0x5eb6be('0xb')](_0x4b9523)[_0x5eb6be('0x1c')](handleEntityNotFound(_0xfe652c,null))[_0x5eb6be('0x1c')](respondWithResult(_0xfe652c,null))[_0x5eb6be('0x2b')](handleError(_0xfe652c,null));},exports[_0x40b7a2('0x32')]=function(_0x32c60b,_0x66aa9e){const _0x284ad9=_0x40b7a2;return db[_0x284ad9('0x11')][_0x284ad9('0x32')](_0x32c60b[_0x284ad9('0xc')],{})[_0x284ad9('0x1c')](respondWithResult(_0x66aa9e,0xc9))[_0x284ad9('0x2b')](handleError(_0x66aa9e,null));},exports[_0x40b7a2('0x17')]=function(_0x6a62d1,_0x3c43f7){const _0x11eeac=_0x40b7a2;return _0x6a62d1[_0x11eeac('0xc')]['id']&&delete _0x6a62d1['body']['id'],db[_0x11eeac('0x11')]['findOne']({'where':{'id':_0x6a62d1[_0x11eeac('0xe')]['id']}})['then'](handleEntityNotFound(_0x3c43f7,null))[_0x11eeac('0x1c')](saveUpdates(_0x6a62d1[_0x11eeac('0xc')],null))[_0x11eeac('0x1c')](respondWithResult(_0x3c43f7,null))['catch'](handleError(_0x3c43f7,null));},exports[_0x40b7a2('0x2a')]=function(_0x4ff8c2,_0xae92b0){const _0x4986d3=_0x40b7a2;return db['IntegrationReport'][_0x4986d3('0xb')]({'where':{'id':_0x4ff8c2[_0x4986d3('0xe')]['id']}})[_0x4986d3('0x1c')](handleEntityNotFound(_0xae92b0,null))['then'](removeEntity(_0xae92b0,null))['catch'](handleError(_0xae92b0,null));},exports[_0x40b7a2('0x12')]=function(_0x131e97,_0x45c78c){const _0x15f4c1=_0x40b7a2;return db[_0x15f4c1('0x11')][_0x15f4c1('0x12')]()[_0x15f4c1('0x1c')](respondWithResult(_0x45c78c,null))[_0x15f4c1('0x2b')](handleError(_0x45c78c,null));}; \ No newline at end of file +const a363_0x3595=['json','order','../../components/parsers/qs','nolimit','destroy','rows','options','like','api','length','catch','where','show','key','merge','keys','count','offset','params','intersection','name','create','undefined','attributes','Content-Range','pick','sort','status','describe','query','body','index','../../config/logger','type','update','IntegrationReport','model','fields','includeAll','filter','sequelize','set','rawAttributes','then','../../mysqldb','sendStatus','findOne','filters','include','limit','lodash'];(function(_0x5693c9,_0x3595da){const _0x4bf4ff=function(_0x4e8cb3){while(--_0x4e8cb3){_0x5693c9['push'](_0x5693c9['shift']());}};_0x4bf4ff(++_0x3595da);}(a363_0x3595,0x116));const a363_0x4bf4=function(_0x5693c9,_0x3595da){_0x5693c9=_0x5693c9-0x0;let _0x4bf4ff=a363_0x3595[_0x5693c9];return _0x4bf4ff;};const _0x3efdac=a363_0x4bf4;'use strict';const _=require(_0x3efdac('0x1b')),qs=require(_0x3efdac('0x1e')),logger=require(_0x3efdac('0x9'))(_0x3efdac('0x24')),db=require(_0x3efdac('0x15'))['db'],{Op}=require(_0x3efdac('0x11'));function respondWithResult(_0x4e8cb3,_0x1b16fc){return _0x1b16fc=_0x1b16fc||0xc8,function(_0x205606){const _0x189545=a363_0x4bf4;if(_0x205606)return _0x4e8cb3[_0x189545('0x4')](_0x1b16fc)[_0x189545('0x1c')](_0x205606);};}function respondWithFilteredResult(_0x151570,_0x5cca89){return function(_0x28a00a){const _0x3d6f0e=a363_0x4bf4;if(_0x28a00a){const _0x5dc882=_0x28a00a[_0x3d6f0e('0x2c')],_0x2affbd=_0x5cca89[_0x3d6f0e('0x2d')];let _0x392030=_0x5cca89[_0x3d6f0e('0x2d')]+_0x5cca89['limit'],_0x48b34b;return _0x392030>=_0x5dc882?(_0x392030=_0x5dc882,_0x48b34b=0xc8):_0x48b34b=0xce,_0x151570[_0x3d6f0e('0x4')](_0x48b34b),_0x151570[_0x3d6f0e('0x12')](_0x3d6f0e('0x1'),_0x2affbd+'-'+_0x392030+'/'+_0x5dc882)[_0x3d6f0e('0x1c')](_0x28a00a);}return null;};}function saveUpdates(_0x5e4b96){return function(_0x5be19d){const _0x564e3f=a363_0x4bf4;if(_0x5be19d)return _0x5be19d[_0x564e3f('0xb')](_0x5e4b96)[_0x564e3f('0x14')](function(_0x2b47f2){return _0x2b47f2;});return null;};}function removeEntity(_0x568600){return function(_0x5df524){const _0x2ecaac=a363_0x4bf4;if(_0x5df524)return _0x5df524[_0x2ecaac('0x20')]()[_0x2ecaac('0x14')](function(){const _0x30380e=_0x2ecaac;_0x568600[_0x30380e('0x4')](0xcc)['end']();});};}function handleEntityNotFound(_0xa3b219){return function(_0x76f1f1){const _0x1ca48d=a363_0x4bf4;return!_0x76f1f1&&_0xa3b219[_0x1ca48d('0x16')](0x194),_0x76f1f1;};}function handleError(_0xe86174,_0x51536e){return _0x51536e=_0x51536e||0x1f4,function(_0x2f4ba0){const _0x547116=a363_0x4bf4;logger['error'](_0x2f4ba0['stack']),_0x2f4ba0[_0x547116('0x30')]&&delete _0x2f4ba0[_0x547116('0x30')],_0xe86174['status'](_0x51536e)['send'](_0x2f4ba0);};}exports[_0x3efdac('0x8')]=function(_0x4ad887,_0x27e91e){const _0x39509f=_0x3efdac;let _0x19708a={};const _0x9145a1={},_0x252de6={'count':0x0,'rows':[]},_0x121d98=_['map'](db[_0x39509f('0xc')][_0x39509f('0x13')],function(_0x376154){const _0x4c02b5=_0x39509f;return{'name':_0x376154['fieldName'],'type':_0x376154['type'][_0x4c02b5('0x29')]};});_0x9145a1[_0x39509f('0xd')]=_['map'](_0x121d98,_0x39509f('0x30')),_0x9145a1['query']=_[_0x39509f('0x2b')](_0x4ad887[_0x39509f('0x6')]),_0x9145a1[_0x39509f('0x18')]=_['intersection'](_0x9145a1[_0x39509f('0xd')],_0x9145a1[_0x39509f('0x6')]),_0x19708a['attributes']=_[_0x39509f('0x2f')](_0x9145a1['model'],qs['fields'](_0x4ad887[_0x39509f('0x6')][_0x39509f('0xe')])),_0x19708a[_0x39509f('0x0')]=_0x19708a['attributes'][_0x39509f('0x25')]?_0x19708a['attributes']:_0x9145a1[_0x39509f('0xd')];typeof _0x4ad887[_0x39509f('0x6')][_0x39509f('0x1f')]===_0x39509f('0x32')&&(_0x19708a['limit']=qs[_0x39509f('0x1a')](_0x4ad887[_0x39509f('0x6')][_0x39509f('0x1a')]),_0x19708a[_0x39509f('0x2d')]=qs['offset'](_0x4ad887[_0x39509f('0x6')][_0x39509f('0x2d')]));_0x19708a[_0x39509f('0x1d')]=qs['sort'](_0x4ad887[_0x39509f('0x6')][_0x39509f('0x3')]),_0x19708a[_0x39509f('0x27')]=qs['filters'](_[_0x39509f('0x2')](_0x4ad887[_0x39509f('0x6')],_0x9145a1[_0x39509f('0x18')]),_0x121d98);_0x4ad887[_0x39509f('0x6')][_0x39509f('0x10')]&&(_0x19708a[_0x39509f('0x27')]=_[_0x39509f('0x2a')](_0x19708a[_0x39509f('0x27')],{[Op['or']]:_['map'](_0x121d98,function(_0x517c27){const _0x4bac5e=_0x39509f;if(_0x517c27[_0x4bac5e('0xa')]!=='VIRTUAL'){const _0xdc1fec={};return _0xdc1fec[_0x517c27[_0x4bac5e('0x30')]]={[Op[_0x4bac5e('0x23')]]:'%'+_0x4ad887[_0x4bac5e('0x6')][_0x4bac5e('0x10')]+'%'},_0xdc1fec;}})}));_0x19708a=_[_0x39509f('0x2a')]({},_0x19708a,_0x4ad887[_0x39509f('0x22')]);const _0x9d05c6={'where':_0x19708a[_0x39509f('0x27')]};return db[_0x39509f('0xc')][_0x39509f('0x2c')](_0x9d05c6)[_0x39509f('0x14')](function(_0x24704d){const _0x3722ef=_0x39509f;return _0x252de6['count']=_0x24704d,_0x4ad887[_0x3722ef('0x6')][_0x3722ef('0xf')]&&(_0x19708a[_0x3722ef('0x19')]=[{'all':!![]}]),db[_0x3722ef('0xc')]['findAll'](_0x19708a);})[_0x39509f('0x14')](function(_0x2e7b53){const _0x2c0a05=_0x39509f;return _0x252de6[_0x2c0a05('0x21')]=_0x2e7b53,_0x252de6;})[_0x39509f('0x14')](respondWithFilteredResult(_0x27e91e,_0x19708a))[_0x39509f('0x26')](handleError(_0x27e91e,null));},exports[_0x3efdac('0x28')]=function(_0x3f4784,_0x5bf161){const _0x224364=_0x3efdac;let _0x2c4998={'raw':![],'where':{'id':_0x3f4784['params']['id']}};const _0x2abee9={};return _0x2abee9[_0x224364('0xd')]=_['keys'](db[_0x224364('0xc')]['rawAttributes']),_0x2abee9['query']=_['keys'](_0x3f4784[_0x224364('0x6')]),_0x2abee9['filters']=_[_0x224364('0x2f')](_0x2abee9[_0x224364('0xd')],_0x2abee9[_0x224364('0x6')]),_0x2c4998[_0x224364('0x0')]=_['intersection'](_0x2abee9[_0x224364('0xd')],qs['fields'](_0x3f4784[_0x224364('0x6')][_0x224364('0xe')])),_0x2c4998[_0x224364('0x0')]=_0x2c4998['attributes'][_0x224364('0x25')]?_0x2c4998[_0x224364('0x0')]:_0x2abee9[_0x224364('0xd')],_0x3f4784['query'][_0x224364('0xf')]&&(_0x2c4998[_0x224364('0x19')]=[{'all':!![]}]),_0x2c4998=_['merge']({},_0x2c4998,_0x3f4784[_0x224364('0x22')]),db[_0x224364('0xc')]['findOne'](_0x2c4998)[_0x224364('0x14')](handleEntityNotFound(_0x5bf161,null))[_0x224364('0x14')](respondWithResult(_0x5bf161,null))['catch'](handleError(_0x5bf161,null));},exports[_0x3efdac('0x31')]=function(_0x2fc7fd,_0x500118){const _0x546358=_0x3efdac;return db[_0x546358('0xc')][_0x546358('0x31')](_0x2fc7fd[_0x546358('0x7')],{})[_0x546358('0x14')](respondWithResult(_0x500118,0xc9))['catch'](handleError(_0x500118,null));},exports[_0x3efdac('0xb')]=function(_0x50d863,_0x583f8c){const _0x46c244=_0x3efdac;return _0x50d863[_0x46c244('0x7')]['id']&&delete _0x50d863[_0x46c244('0x7')]['id'],db['IntegrationReport'][_0x46c244('0x17')]({'where':{'id':_0x50d863['params']['id']}})[_0x46c244('0x14')](handleEntityNotFound(_0x583f8c,null))['then'](saveUpdates(_0x50d863[_0x46c244('0x7')],null))[_0x46c244('0x14')](respondWithResult(_0x583f8c,null))[_0x46c244('0x26')](handleError(_0x583f8c,null));},exports['destroy']=function(_0x1e103f,_0x4e7d43){const _0x458d45=_0x3efdac;return db['IntegrationReport'][_0x458d45('0x17')]({'where':{'id':_0x1e103f[_0x458d45('0x2e')]['id']}})['then'](handleEntityNotFound(_0x4e7d43,null))['then'](removeEntity(_0x4e7d43,null))[_0x458d45('0x26')](handleError(_0x4e7d43,null));},exports[_0x3efdac('0x5')]=function(_0x308f3b,_0x411a6f){const _0x5b88a1=_0x3efdac;return db[_0x5b88a1('0xc')][_0x5b88a1('0x5')]()[_0x5b88a1('0x14')](respondWithResult(_0x411a6f,null))[_0x5b88a1('0x26')](handleError(_0x411a6f,null));}; \ No newline at end of file diff --git a/server/api/integrationReport/integrationReport.model.js b/server/api/integrationReport/integrationReport.model.js index c9ed96c..f42e75c 100644 --- a/server/api/integrationReport/integrationReport.model.js +++ b/server/api/integrationReport/integrationReport.model.js @@ -1 +1 @@ -const a364_0x31f9=['exports','./integrationReport.attributes'];(function(_0x375d3e,_0x31f923){const _0x3902ca=function(_0x1cb320){while(--_0x1cb320){_0x375d3e['push'](_0x375d3e['shift']());}};_0x3902ca(++_0x31f923);}(a364_0x31f9,0x1dc));const a364_0x3902=function(_0x375d3e,_0x31f923){_0x375d3e=_0x375d3e-0x0;let _0x3902ca=a364_0x31f9[_0x375d3e];return _0x3902ca;};const _0x184cf1=a364_0x3902;'use strict';const attributes=require(_0x184cf1('0x1'));module[_0x184cf1('0x0')]=function(_0x1cb320){const _0x16028e=_0x1cb320['define']('IntegrationReport',attributes,{'tableName':'report_integration','paranoid':![],'indexes':[],'timestamps':!![]});return _0x16028e;}; \ No newline at end of file +const a364_0x4da6=['define','./integrationReport.attributes','report_integration','IntegrationReport'];(function(_0x52f7ef,_0x4da63f){const _0x513b2a=function(_0x267c3b){while(--_0x267c3b){_0x52f7ef['push'](_0x52f7ef['shift']());}};_0x513b2a(++_0x4da63f);}(a364_0x4da6,0xd0));const a364_0x513b=function(_0x52f7ef,_0x4da63f){_0x52f7ef=_0x52f7ef-0x0;let _0x513b2a=a364_0x4da6[_0x52f7ef];return _0x513b2a;};const _0xd2a069=a364_0x513b;'use strict';const attributes=require(_0xd2a069('0x1'));module['exports']=function(_0x267c3b){const _0xe488a8=_0xd2a069,_0x449765=_0x267c3b[_0xe488a8('0x0')](_0xe488a8('0x3'),attributes,{'tableName':_0xe488a8('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x449765;}; \ No newline at end of file diff --git a/server/api/interval/index.js b/server/api/interval/index.js index 98ac86e..4742d90 100644 --- a/server/api/interval/index.js +++ b/server/api/interval/index.js @@ -1 +1 @@ -const a365_0x1528=['/:id/sub_intervals','addInterval','addIntervals','delete','index','express','getIntervals','get','update','destroy','../../components/auth/service','./interval.controller','create','isAuthenticated','exports','post','/:id','show','/:id/sub_intervals/create_many'];(function(_0x51ddc8,_0x1528a5){const _0x4fa04a=function(_0x1b2a02){while(--_0x1b2a02){_0x51ddc8['push'](_0x51ddc8['shift']());}};_0x4fa04a(++_0x1528a5);}(a365_0x1528,0xd3));const a365_0x4fa0=function(_0x51ddc8,_0x1528a5){_0x51ddc8=_0x51ddc8-0x0;let _0x4fa04a=a365_0x1528[_0x51ddc8];return _0x4fa04a;};const _0x4ee177=a365_0x4fa0;'use strict';const express=require(_0x4ee177('0x3')),router=express['Router'](),auth=require(_0x4ee177('0x8')),controller=require(_0x4ee177('0x9'));router[_0x4ee177('0x5')]('/',auth[_0x4ee177('0xb')](),controller[_0x4ee177('0x2')]),router['get'](_0x4ee177('0xe'),auth[_0x4ee177('0xb')](),controller[_0x4ee177('0xf')]),router[_0x4ee177('0x5')](_0x4ee177('0x11'),auth[_0x4ee177('0xb')](),controller[_0x4ee177('0x4')]),router[_0x4ee177('0xd')]('/',auth['isAuthenticated'](),controller[_0x4ee177('0xa')]),router['post'](_0x4ee177('0x11'),auth[_0x4ee177('0xb')](),controller[_0x4ee177('0x12')]),router[_0x4ee177('0xd')](_0x4ee177('0x10'),auth[_0x4ee177('0xb')](),controller[_0x4ee177('0x0')]),router['put'](_0x4ee177('0xe'),auth['isAuthenticated'](),controller[_0x4ee177('0x6')]),router[_0x4ee177('0x1')](_0x4ee177('0xe'),auth['isAuthenticated'](),controller[_0x4ee177('0x7')]),module[_0x4ee177('0xc')]=router; \ No newline at end of file +const a365_0x46f2=['post','/:id/sub_intervals/create_many','isAuthenticated','create','/:id','addIntervals','getIntervals','show','get','delete','express','put','/:id/sub_intervals','destroy','exports'];(function(_0x4dae40,_0x46f2f8){const _0x4ee273=function(_0x28ab77){while(--_0x28ab77){_0x4dae40['push'](_0x4dae40['shift']());}};_0x4ee273(++_0x46f2f8);}(a365_0x46f2,0x137));const a365_0x4ee2=function(_0x4dae40,_0x46f2f8){_0x4dae40=_0x4dae40-0x0;let _0x4ee273=a365_0x46f2[_0x4dae40];return _0x4ee273;};const _0x40959d=a365_0x4ee2;'use strict';const express=require(_0x40959d('0xe')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./interval.controller');router['get']('/',auth[_0x40959d('0x6')](),controller['index']),router[_0x40959d('0xc')](_0x40959d('0x8'),auth['isAuthenticated'](),controller[_0x40959d('0xb')]),router['get'](_0x40959d('0x1'),auth[_0x40959d('0x6')](),controller[_0x40959d('0xa')]),router[_0x40959d('0x4')]('/',auth[_0x40959d('0x6')](),controller[_0x40959d('0x7')]),router[_0x40959d('0x4')]('/:id/sub_intervals',auth[_0x40959d('0x6')](),controller['addInterval']),router[_0x40959d('0x4')](_0x40959d('0x5'),auth[_0x40959d('0x6')](),controller[_0x40959d('0x9')]),router[_0x40959d('0x0')](_0x40959d('0x8'),auth[_0x40959d('0x6')](),controller['update']),router[_0x40959d('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x40959d('0x2')]),module[_0x40959d('0x3')]=router; \ No newline at end of file diff --git a/server/api/interval/interval.attributes.js b/server/api/interval/interval.attributes.js index bbce664..25094b1 100644 --- a/server/api/interval/interval.attributes.js +++ b/server/api/interval/interval.attributes.js @@ -1 +1 @@ -const a366_0x123e=['STRING'];(function(_0x4b7a39,_0x123e99){const _0x2e387e=function(_0x4e1a87){while(--_0x4e1a87){_0x4b7a39['push'](_0x4b7a39['shift']());}};_0x2e387e(++_0x123e99);}(a366_0x123e,0xe0));const a366_0x2e38=function(_0x4b7a39,_0x123e99){_0x4b7a39=_0x4b7a39-0x0;let _0x2e387e=a366_0x123e[_0x4b7a39];return _0x2e387e;};const _0x55d650=a366_0x2e38;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x55d650('0x0')]},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x55d650('0x0')],'allowNull':!![]}}; \ No newline at end of file +const a366_0x4da4=['exports','STRING','sequelize'];(function(_0x4b4637,_0x4da46b){const _0x1cadce=function(_0x28dfa9){while(--_0x28dfa9){_0x4b4637['push'](_0x4b4637['shift']());}};_0x1cadce(++_0x4da46b);}(a366_0x4da4,0x6d));const a366_0x1cad=function(_0x4b4637,_0x4da46b){_0x4b4637=_0x4b4637-0x0;let _0x1cadce=a366_0x4da4[_0x4b4637];return _0x1cadce;};const _0x206c90=a366_0x1cad;'use strict';const Sequelize=require(_0x206c90('0x1'));module[_0x206c90('0x2')]={'name':{'type':Sequelize[_0x206c90('0x0')]},'description':{'type':Sequelize[_0x206c90('0x0')]},'interval':{'type':Sequelize[_0x206c90('0x0')],'allowNull':!![]}}; \ No newline at end of file diff --git a/server/api/interval/interval.controller.js b/server/api/interval/interval.controller.js index bed29de..d14d7c6 100644 --- a/server/api/interval/interval.controller.js +++ b/server/api/interval/interval.controller.js @@ -1 +1 @@ -const a367_0x19d9=['lodash','../../components/parsers/qs','create','offset','include','count','length','pick','../../config/logger','addIntervals','../../mysqldb','order','VIRTUAL','findOne','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','limit','stack','merge','destroy','where','json','rawAttributes','attributes','name','intersection','catch','body','set','error','sequelize','api','send','then','includeAll','map','end','filter','Intervals','status','index','keys','Content-Range','user','params','Interval','IntervalId','filters','Unable\x20to\x20retrieve\x20the\x20current\x20user','query','fields','role','get','sort','update','model','type','getIntervals','options','undefined','like','findAll','key','UserProfileResource'];(function(_0x326ac7,_0x19d923){const _0x5a37d4=function(_0x4fa60f){while(--_0x4fa60f){_0x326ac7['push'](_0x326ac7['shift']());}};_0x5a37d4(++_0x19d923);}(a367_0x19d9,0x1e6));const a367_0x5a37=function(_0x326ac7,_0x19d923){_0x326ac7=_0x326ac7-0x0;let _0x5a37d4=a367_0x19d9[_0x326ac7];return _0x5a37d4;};const _0xf3e6ff=a367_0x5a37;'use strict';const _=require(_0xf3e6ff('0x12')),qs=require(_0xf3e6ff('0x13')),logger=require(_0xf3e6ff('0x1a'))(_0xf3e6ff('0x30')),db=require(_0xf3e6ff('0x1c'))['db'],{Op}=require('sequelize');function respondWithResult(_0x4fa60f,_0x2f5624){return _0x2f5624=_0x2f5624||0xc8,function(_0x3343df){const _0xdeaa3c=a367_0x5a37;if(_0x3343df)return _0x4fa60f[_0xdeaa3c('0x38')](_0x2f5624)[_0xdeaa3c('0x26')](_0x3343df);};}function respondWithFilteredResult(_0x4ede78,_0x512f77){return function(_0xdc4bd){const _0x4044d=a367_0x5a37;if(_0xdc4bd){const _0x15135b=_0xdc4bd['count'],_0x3ed4f0=_0x512f77[_0x4044d('0x15')];let _0x161f95=_0x512f77[_0x4044d('0x15')]+_0x512f77[_0x4044d('0x21')],_0x56050e;return _0x161f95>=_0x15135b?(_0x161f95=_0x15135b,_0x56050e=0xc8):_0x56050e=0xce,_0x4ede78['status'](_0x56050e),_0x4ede78[_0x4044d('0x2d')](_0x4044d('0x3b'),_0x3ed4f0+'-'+_0x161f95+'/'+_0x15135b)[_0x4044d('0x26')](_0xdc4bd);}return null;};}function saveUpdates(_0x37cd96){return function(_0x250e82){const _0x24ed03=a367_0x5a37;if(_0x250e82)return _0x250e82[_0x24ed03('0x8')](_0x37cd96)[_0x24ed03('0x32')](function(_0x109e4d){return _0x109e4d;});return null;};}function removeEntity(_0x1b17d1){return function(_0x4151ef){const _0x101c88=a367_0x5a37;if(_0x4151ef)return _0x4151ef[_0x101c88('0x24')]()[_0x101c88('0x32')](function(){const _0xb48688=_0x101c88,_0x3ea81a=_0x4151ef[_0xb48688('0x6')]({'plain':!![]}),_0x208812='Intervals';return db[_0xb48688('0x11')]['destroy']({'where':{'type':_0x208812,'resourceId':_0x3ea81a['id']}})[_0xb48688('0x32')](function(){return _0x4151ef;});})[_0x101c88('0x32')](function(){const _0x39da9c=_0x101c88;_0x1b17d1['status'](0xcc)[_0x39da9c('0x35')]();});};}function handleEntityNotFound(_0x50f50a){return function(_0x45865a){return!_0x45865a&&_0x50f50a['sendStatus'](0x194),_0x45865a;};}function handleError(_0xce4b6e,_0x3d54fe){return _0x3d54fe=_0x3d54fe||0x1f4,function(_0x313ebc){const _0xc0bde6=a367_0x5a37;logger[_0xc0bde6('0x2e')](_0x313ebc[_0xc0bde6('0x22')]),_0x313ebc[_0xc0bde6('0x29')]&&delete _0x313ebc[_0xc0bde6('0x29')],_0xce4b6e[_0xc0bde6('0x38')](_0x3d54fe)[_0xc0bde6('0x31')](_0x313ebc);};}exports[_0xf3e6ff('0x39')]=function(_0xbe1c1f,_0x294665){const _0x17afcb=_0xf3e6ff;let _0x1dc3eb={};const _0x2dfdd3={},_0x1fe690={'count':0x0,'rows':[]},_0xc8aa3c=_['map'](db[_0x17afcb('0x3e')][_0x17afcb('0x27')],function(_0x1a0273){const _0x2f9e5c=_0x17afcb;return{'name':_0x1a0273['fieldName'],'type':_0x1a0273[_0x2f9e5c('0xa')][_0x2f9e5c('0x10')]};});_0x2dfdd3[_0x17afcb('0x9')]=_[_0x17afcb('0x34')](_0xc8aa3c,'name'),_0x2dfdd3['query']=_['keys'](_0xbe1c1f[_0x17afcb('0x3')]),_0x2dfdd3[_0x17afcb('0x1')]=_[_0x17afcb('0x2a')](_0x2dfdd3[_0x17afcb('0x9')],_0x2dfdd3[_0x17afcb('0x3')]),_0x1dc3eb['attributes']=_['intersection'](_0x2dfdd3[_0x17afcb('0x9')],qs[_0x17afcb('0x4')](_0xbe1c1f[_0x17afcb('0x3')][_0x17afcb('0x4')])),_0x1dc3eb[_0x17afcb('0x28')]=_0x1dc3eb[_0x17afcb('0x28')][_0x17afcb('0x18')]?_0x1dc3eb['attributes']:_0x2dfdd3[_0x17afcb('0x9')];typeof _0xbe1c1f[_0x17afcb('0x3')]['nolimit']==='undefined'&&(_0x1dc3eb[_0x17afcb('0x21')]=qs['limit'](_0xbe1c1f['query'][_0x17afcb('0x21')]),_0x1dc3eb[_0x17afcb('0x15')]=qs[_0x17afcb('0x15')](_0xbe1c1f['query'][_0x17afcb('0x15')]));_0x1dc3eb[_0x17afcb('0x1d')]=qs['sort'](_0xbe1c1f[_0x17afcb('0x3')][_0x17afcb('0x7')]),_0x1dc3eb[_0x17afcb('0x25')]=qs[_0x17afcb('0x1')](_[_0x17afcb('0x19')](_0xbe1c1f['query'],_0x2dfdd3[_0x17afcb('0x1')]),_0xc8aa3c);_0xbe1c1f['query'][_0x17afcb('0x36')]&&(_0x1dc3eb[_0x17afcb('0x25')]=_['merge'](_0x1dc3eb['where'],{[Op['or']]:_[_0x17afcb('0x34')](_0xc8aa3c,function(_0x42e4b3){const _0x3c3627=_0x17afcb;if(_0x42e4b3[_0x3c3627('0xa')]!==_0x3c3627('0x1e')){const _0x2bf281={};return _0x2bf281[_0x42e4b3[_0x3c3627('0x29')]]={[Op[_0x3c3627('0xe')]]:'%'+_0xbe1c1f['query'][_0x3c3627('0x36')]+'%'},_0x2bf281;}})}));_0x1dc3eb=_['merge']({},_0x1dc3eb,_0xbe1c1f[_0x17afcb('0xc')]);const _0x202b04={'where':_0x1dc3eb[_0x17afcb('0x25')]};return db[_0x17afcb('0x3e')][_0x17afcb('0x17')](_0x202b04)[_0x17afcb('0x32')](function(_0x138f5b){const _0x4d7222=_0x17afcb;return _0x1fe690['count']=_0x138f5b,_0xbe1c1f[_0x4d7222('0x3')]['includeAll']&&(_0x1dc3eb[_0x4d7222('0x16')]=[{'all':!![]}]),db[_0x4d7222('0x3e')][_0x4d7222('0xf')](_0x1dc3eb);})[_0x17afcb('0x32')](function(_0x16ca77){return _0x1fe690['rows']=_0x16ca77,_0x1fe690;})[_0x17afcb('0x32')](respondWithFilteredResult(_0x294665,_0x1dc3eb))[_0x17afcb('0x2b')](handleError(_0x294665,null));},exports['show']=function(_0xbfcd5c,_0xf72738){const _0x1a2ece=_0xf3e6ff;let _0x36a545={'raw':!![],'where':{'id':_0xbfcd5c['params']['id']}};const _0x1c01a8={};return _0x1c01a8[_0x1a2ece('0x9')]=_[_0x1a2ece('0x3a')](db['Interval'][_0x1a2ece('0x27')]),_0x1c01a8[_0x1a2ece('0x3')]=_['keys'](_0xbfcd5c[_0x1a2ece('0x3')]),_0x1c01a8['filters']=_[_0x1a2ece('0x2a')](_0x1c01a8[_0x1a2ece('0x9')],_0x1c01a8[_0x1a2ece('0x3')]),_0x36a545[_0x1a2ece('0x28')]=_[_0x1a2ece('0x2a')](_0x1c01a8[_0x1a2ece('0x9')],qs[_0x1a2ece('0x4')](_0xbfcd5c[_0x1a2ece('0x3')][_0x1a2ece('0x4')])),_0x36a545[_0x1a2ece('0x28')]=_0x36a545[_0x1a2ece('0x28')][_0x1a2ece('0x18')]?_0x36a545['attributes']:_0x1c01a8[_0x1a2ece('0x9')],_0xbfcd5c['query'][_0x1a2ece('0x33')]&&(_0x36a545[_0x1a2ece('0x16')]=[{'all':!![]}]),_0x36a545=_[_0x1a2ece('0x23')]({},_0x36a545,_0xbfcd5c[_0x1a2ece('0xc')]),db[_0x1a2ece('0x3e')][_0x1a2ece('0x1f')](_0x36a545)['then'](handleEntityNotFound(_0xf72738,null))[_0x1a2ece('0x32')](respondWithResult(_0xf72738,null))['catch'](handleError(_0xf72738,null));},exports[_0xf3e6ff('0x14')]=function(_0x156199,_0x3a2103){const _0xce5c79=_0xf3e6ff;return db['Interval']['create'](_0x156199[_0xce5c79('0x2c')],{})[_0xce5c79('0x32')](function(_0x3956e1){const _0x547127=_0xce5c79,_0x359eca=_0x156199[_0x547127('0x3c')][_0x547127('0x6')]({'plain':!![]});if(!_0x359eca)throw new Error(_0x547127('0x2'));if(_0x359eca[_0x547127('0x5')]===_0x547127('0x3c')){const _0x5aab6d=_0x3956e1[_0x547127('0x6')]({'plain':!![]}),_0x5ce94e=_0x547127('0x37');return db['UserProfileSection'][_0x547127('0x1f')]({'where':{'name':_0x5ce94e,'userProfileId':_0x359eca['userProfileId']},'raw':!![]})[_0x547127('0x32')](function(_0x266808){const _0x48e637=_0x547127;return _0x266808&&_0x266808['autoAssociation']===0x0?db[_0x48e637('0x11')]['create']({'name':_0x5aab6d[_0x48e637('0x29')],'resourceId':_0x5aab6d['id'],'type':_0x266808[_0x48e637('0x29')],'sectionId':_0x266808['id']},{})[_0x48e637('0x32')](function(){return _0x3956e1;}):_0x3956e1;})[_0x547127('0x2b')](function(_0x149c87){const _0x27a1ff=_0x547127;logger[_0x27a1ff('0x2e')](_0x27a1ff('0x20'),_0x149c87);throw _0x149c87;});}return _0x3956e1;})[_0xce5c79('0x32')](respondWithResult(_0x3a2103,0xc9))[_0xce5c79('0x2b')](handleError(_0x3a2103,null));},exports[_0xf3e6ff('0x8')]=function(_0x50c820,_0x45f0f7){const _0x1a0b2d=_0xf3e6ff;return _0x50c820[_0x1a0b2d('0x2c')]['id']&&delete _0x50c820[_0x1a0b2d('0x2c')]['id'],db[_0x1a0b2d('0x3e')][_0x1a0b2d('0x1f')]({'where':{'id':_0x50c820['params']['id']}})[_0x1a0b2d('0x32')](handleEntityNotFound(_0x45f0f7,null))[_0x1a0b2d('0x32')](saveUpdates(_0x50c820[_0x1a0b2d('0x2c')],null))[_0x1a0b2d('0x32')](respondWithResult(_0x45f0f7,null))[_0x1a0b2d('0x2b')](handleError(_0x45f0f7,null));},exports['destroy']=function(_0x2f58ef,_0x523f33){const _0x17af98=_0xf3e6ff;return db[_0x17af98('0x3e')]['findOne']({'where':{'id':_0x2f58ef['params']['id']}})['then'](handleEntityNotFound(_0x523f33,null))[_0x17af98('0x32')](removeEntity(_0x523f33,null))[_0x17af98('0x2b')](handleError(_0x523f33,null));},exports['addInterval']=function(_0x3d7886,_0x3af685){const _0x11d40e=_0xf3e6ff;return _0x3d7886[_0x11d40e('0x2c')]['id']&&delete _0x3d7886[_0x11d40e('0x2c')]['id'],db[_0x11d40e('0x3e')][_0x11d40e('0x1f')]({'where':{'id':_0x3d7886['params']['id']}})[_0x11d40e('0x32')](handleEntityNotFound(_0x3af685,null))['then'](function(_0x2138a3){const _0x408bc7=_0x11d40e;if(_0x2138a3)return _0x3d7886[_0x408bc7('0x2c')][_0x408bc7('0x0')]=_0x2138a3['id'],db[_0x408bc7('0x3e')][_0x408bc7('0x14')](_0x3d7886[_0x408bc7('0x2c')]);})[_0x11d40e('0x32')](respondWithResult(_0x3af685,null))['catch'](handleError(_0x3af685,null));},exports[_0xf3e6ff('0xb')]=function(_0x6db7ca,_0x473bf8){const _0x4c75df=_0xf3e6ff;let _0xe443ed={};const _0x24217d={};let _0x2d7b0f,_0x1527b8;return db['Interval'][_0x4c75df('0x1f')]({'where':{'id':_0x6db7ca[_0x4c75df('0x3d')]['id']}})[_0x4c75df('0x32')](handleEntityNotFound(_0x473bf8,null))[_0x4c75df('0x32')](function(_0x2e8cca){const _0x4914a9=_0x4c75df;if(_0x2e8cca)return _0x2d7b0f=_0x2e8cca,_0x24217d[_0x4914a9('0x9')]=_['keys'](db[_0x4914a9('0x3e')]['rawAttributes']),_0x24217d[_0x4914a9('0x3')]=_[_0x4914a9('0x3a')](_0x6db7ca[_0x4914a9('0x3')]),_0x24217d[_0x4914a9('0x1')]=_['intersection'](_0x24217d[_0x4914a9('0x9')],_0x24217d[_0x4914a9('0x3')]),_0xe443ed[_0x4914a9('0x28')]=_[_0x4914a9('0x2a')](_0x24217d['model'],qs[_0x4914a9('0x4')](_0x6db7ca[_0x4914a9('0x3')][_0x4914a9('0x4')])),_0xe443ed[_0x4914a9('0x28')]=_0xe443ed['attributes'][_0x4914a9('0x18')]?_0xe443ed['attributes']:_0x24217d[_0x4914a9('0x9')],_0xe443ed[_0x4914a9('0x1d')]=qs['sort'](_0x6db7ca[_0x4914a9('0x3')][_0x4914a9('0x7')]),_0xe443ed['where']=qs['filters'](_[_0x4914a9('0x19')](_0x6db7ca[_0x4914a9('0x3')],_0x24217d['filters'])),_0x6db7ca[_0x4914a9('0x3')][_0x4914a9('0x36')]&&(_0xe443ed[_0x4914a9('0x25')]=_['merge'](_0xe443ed[_0x4914a9('0x25')],{[Op['or']]:_[_0x4914a9('0x34')](_0xe443ed[_0x4914a9('0x28')],function(_0xaa3a68){const _0x3c2b86=_0x4914a9,_0x40e420={};return _0x40e420[_0xaa3a68]={[Op[_0x3c2b86('0xe')]]:'%'+_0x6db7ca['query'][_0x3c2b86('0x36')]+'%'},_0x40e420;})})),_0xe443ed=_['merge']({},_0xe443ed,_0x6db7ca[_0x4914a9('0xc')]),_0x2d7b0f[_0x4914a9('0xb')](_0xe443ed);})[_0x4c75df('0x32')](function(_0x4b34b5){const _0x2090c6=_0x4c75df;if(_0x4b34b5)return _0x1527b8=_0x4b34b5[_0x2090c6('0x18')],typeof _0x6db7ca[_0x2090c6('0x3')]['nolimit']===_0x2090c6('0xd')&&(_0xe443ed[_0x2090c6('0x21')]=qs['limit'](_0x6db7ca[_0x2090c6('0x3')][_0x2090c6('0x21')]),_0xe443ed[_0x2090c6('0x15')]=qs['offset'](_0x6db7ca[_0x2090c6('0x3')][_0x2090c6('0x15')])),_0x2d7b0f['getIntervals'](_0xe443ed);})[_0x4c75df('0x32')](function(_0x5c89b0){if(_0x5c89b0)return _0x5c89b0?{'count':_0x1527b8,'rows':_0x5c89b0}:null;})[_0x4c75df('0x32')](respondWithResult(_0x473bf8,null))[_0x4c75df('0x2b')](handleError(_0x473bf8,null));},exports[_0xf3e6ff('0x1b')]=function(_0x51cfc2,_0x569101){const _0x4bd944=_0xf3e6ff;return db[_0x4bd944('0x3e')]['findOne']({'where':{'id':_0x51cfc2['params']['id']}})[_0x4bd944('0x32')](handleEntityNotFound(_0x569101,null))[_0x4bd944('0x32')](function(_0x26994a){const _0x278835=_0x4bd944;if(_0x26994a)return db[_0x278835('0x2f')]['transaction'](function(_0xd4768c){const _0x2a9b5c=_0x278835;return db[_0x2a9b5c('0x3e')][_0x2a9b5c('0x24')]({'where':{'IntervalId':_0x51cfc2[_0x2a9b5c('0x3d')]['id']},'transaction':_0xd4768c})[_0x2a9b5c('0x32')](function(){const _0x2873a9=_0x2a9b5c,_0x29d9b4=_['map'](_0x51cfc2[_0x2873a9('0x2c')],function(_0x34eae2){return delete _0x34eae2['id'],_0x34eae2['IntervalId']=_0x51cfc2['params']['id'],_0x34eae2;});return db[_0x2873a9('0x3e')]['bulkCreate'](_0x29d9b4,{'transaction':_0xd4768c});});})[_0x278835('0x32')](function(){const _0x2cfe90=_0x278835;return db[_0x2cfe90('0x3e')][_0x2cfe90('0xf')]({'where':{'IntervalId':_0x51cfc2[_0x2cfe90('0x3d')]['id']}});});})[_0x4bd944('0x32')](respondWithResult(_0x569101,null))['catch'](handleError(_0x569101,null));}; \ No newline at end of file +const a367_0x1b8a=['create','Interval','count','addInterval','end','model','keys','attributes','offset','type','like','get','../../components/parsers/qs','where','Intervals','VIRTUAL','addIntervals','key','rows','findOne','params','lodash','getIntervals','filter','undefined','show','../../config/logger','length','fields','findAll','userProfileId','name','limit','pick','query','filters','intersection','UserProfileSection','body','stack','sendStatus','fieldName','index','then','set','update','json','destroy','user','role','api','status','includeAll','error','options','rawAttributes','../../mysqldb','send','sequelize','UserProfileResource','nolimit','sort','catch','Content-Range','order','merge','IntervalId','map','include'];(function(_0x3dfc08,_0x1b8a2c){const _0x52596b=function(_0x3f76de){while(--_0x3f76de){_0x3dfc08['push'](_0x3dfc08['shift']());}};_0x52596b(++_0x1b8a2c);}(a367_0x1b8a,0x1bf));const a367_0x5259=function(_0x3dfc08,_0x1b8a2c){_0x3dfc08=_0x3dfc08-0x0;let _0x52596b=a367_0x1b8a[_0x3dfc08];return _0x52596b;};const _0x40403b=a367_0x5259;'use strict';const _=require(_0x40403b('0x39')),qs=require(_0x40403b('0x30')),logger=require(_0x40403b('0x3e'))(_0x40403b('0x11')),db=require(_0x40403b('0x17'))['db'],{Op}=require(_0x40403b('0x19'));function respondWithResult(_0x3f76de,_0x150f88){return _0x150f88=_0x150f88||0xc8,function(_0x61af06){const _0x1de278=a367_0x5259;if(_0x61af06)return _0x3f76de['status'](_0x150f88)[_0x1de278('0xd')](_0x61af06);};}function respondWithFilteredResult(_0x1b091e,_0xa14bc8){return function(_0x30710b){const _0x1acd28=a367_0x5259;if(_0x30710b){const _0x2b30a1=_0x30710b['count'],_0x4a7fa1=_0xa14bc8[_0x1acd28('0x2c')];let _0x1c12d2=_0xa14bc8[_0x1acd28('0x2c')]+_0xa14bc8[_0x1acd28('0x44')],_0x31a232;return _0x1c12d2>=_0x2b30a1?(_0x1c12d2=_0x2b30a1,_0x31a232=0xc8):_0x31a232=0xce,_0x1b091e['status'](_0x31a232),_0x1b091e[_0x1acd28('0xb')](_0x1acd28('0x1e'),_0x4a7fa1+'-'+_0x1c12d2+'/'+_0x2b30a1)[_0x1acd28('0xd')](_0x30710b);}return null;};}function saveUpdates(_0x30aad2){return function(_0x20a9d0){const _0x5cbbce=a367_0x5259;if(_0x20a9d0)return _0x20a9d0[_0x5cbbce('0xc')](_0x30aad2)[_0x5cbbce('0xa')](function(_0x2b4424){return _0x2b4424;});return null;};}function removeEntity(_0x6ef452){return function(_0x329fd5){const _0x29926c=a367_0x5259;if(_0x329fd5)return _0x329fd5[_0x29926c('0xe')]()[_0x29926c('0xa')](function(){const _0x2de14c=_0x29926c,_0x539770=_0x329fd5[_0x2de14c('0x2f')]({'plain':!![]}),_0x198730='Intervals';return db[_0x2de14c('0x1a')]['destroy']({'where':{'type':_0x198730,'resourceId':_0x539770['id']}})[_0x2de14c('0xa')](function(){return _0x329fd5;});})[_0x29926c('0xa')](function(){const _0x5a9714=_0x29926c;_0x6ef452[_0x5a9714('0x12')](0xcc)[_0x5a9714('0x28')]();});};}function handleEntityNotFound(_0x469339){return function(_0x3f1857){const _0x180ac6=a367_0x5259;return!_0x3f1857&&_0x469339[_0x180ac6('0x7')](0x194),_0x3f1857;};}function handleError(_0x349e3c,_0x448381){return _0x448381=_0x448381||0x1f4,function(_0x5afea0){const _0x44101c=a367_0x5259;logger['error'](_0x5afea0[_0x44101c('0x6')]),_0x5afea0[_0x44101c('0x43')]&&delete _0x5afea0[_0x44101c('0x43')],_0x349e3c[_0x44101c('0x12')](_0x448381)[_0x44101c('0x18')](_0x5afea0);};}exports[_0x40403b('0x9')]=function(_0x1ad930,_0x243947){const _0x4f6388=_0x40403b;let _0x210147={};const _0x40590c={},_0x440063={'count':0x0,'rows':[]},_0x5d7301=_['map'](db['Interval'][_0x4f6388('0x16')],function(_0x4dd6c3){const _0x2a8fe2=_0x4f6388;return{'name':_0x4dd6c3[_0x2a8fe2('0x8')],'type':_0x4dd6c3[_0x2a8fe2('0x2d')][_0x2a8fe2('0x35')]};});_0x40590c[_0x4f6388('0x29')]=_[_0x4f6388('0x22')](_0x5d7301,_0x4f6388('0x43')),_0x40590c['query']=_[_0x4f6388('0x2a')](_0x1ad930[_0x4f6388('0x1')]),_0x40590c['filters']=_[_0x4f6388('0x3')](_0x40590c[_0x4f6388('0x29')],_0x40590c[_0x4f6388('0x1')]),_0x210147['attributes']=_[_0x4f6388('0x3')](_0x40590c[_0x4f6388('0x29')],qs[_0x4f6388('0x40')](_0x1ad930[_0x4f6388('0x1')]['fields'])),_0x210147[_0x4f6388('0x2b')]=_0x210147['attributes'][_0x4f6388('0x3f')]?_0x210147['attributes']:_0x40590c[_0x4f6388('0x29')];typeof _0x1ad930['query']['nolimit']===_0x4f6388('0x3c')&&(_0x210147[_0x4f6388('0x44')]=qs['limit'](_0x1ad930[_0x4f6388('0x1')][_0x4f6388('0x44')]),_0x210147[_0x4f6388('0x2c')]=qs[_0x4f6388('0x2c')](_0x1ad930[_0x4f6388('0x1')]['offset']));_0x210147[_0x4f6388('0x1f')]=qs[_0x4f6388('0x1c')](_0x1ad930[_0x4f6388('0x1')][_0x4f6388('0x1c')]),_0x210147[_0x4f6388('0x31')]=qs[_0x4f6388('0x2')](_[_0x4f6388('0x0')](_0x1ad930[_0x4f6388('0x1')],_0x40590c[_0x4f6388('0x2')]),_0x5d7301);_0x1ad930['query'][_0x4f6388('0x3b')]&&(_0x210147[_0x4f6388('0x31')]=_[_0x4f6388('0x20')](_0x210147[_0x4f6388('0x31')],{[Op['or']]:_['map'](_0x5d7301,function(_0x150325){const _0x507778=_0x4f6388;if(_0x150325[_0x507778('0x2d')]!==_0x507778('0x33')){const _0x841b5e={};return _0x841b5e[_0x150325[_0x507778('0x43')]]={[Op[_0x507778('0x2e')]]:'%'+_0x1ad930[_0x507778('0x1')]['filter']+'%'},_0x841b5e;}})}));_0x210147=_[_0x4f6388('0x20')]({},_0x210147,_0x1ad930[_0x4f6388('0x15')]);const _0x4d00d8={'where':_0x210147[_0x4f6388('0x31')]};return db['Interval']['count'](_0x4d00d8)[_0x4f6388('0xa')](function(_0xebd7af){const _0x1a995b=_0x4f6388;return _0x440063[_0x1a995b('0x26')]=_0xebd7af,_0x1ad930[_0x1a995b('0x1')][_0x1a995b('0x13')]&&(_0x210147[_0x1a995b('0x23')]=[{'all':!![]}]),db[_0x1a995b('0x25')][_0x1a995b('0x41')](_0x210147);})['then'](function(_0x2ba8ef){const _0x40e833=_0x4f6388;return _0x440063[_0x40e833('0x36')]=_0x2ba8ef,_0x440063;})[_0x4f6388('0xa')](respondWithFilteredResult(_0x243947,_0x210147))[_0x4f6388('0x1d')](handleError(_0x243947,null));},exports[_0x40403b('0x3d')]=function(_0x1385be,_0x4e8d41){const _0x4ac915=_0x40403b;let _0x42c9d7={'raw':!![],'where':{'id':_0x1385be[_0x4ac915('0x38')]['id']}};const _0x5746bb={};return _0x5746bb[_0x4ac915('0x29')]=_[_0x4ac915('0x2a')](db[_0x4ac915('0x25')][_0x4ac915('0x16')]),_0x5746bb['query']=_[_0x4ac915('0x2a')](_0x1385be[_0x4ac915('0x1')]),_0x5746bb[_0x4ac915('0x2')]=_[_0x4ac915('0x3')](_0x5746bb['model'],_0x5746bb[_0x4ac915('0x1')]),_0x42c9d7[_0x4ac915('0x2b')]=_[_0x4ac915('0x3')](_0x5746bb[_0x4ac915('0x29')],qs[_0x4ac915('0x40')](_0x1385be[_0x4ac915('0x1')]['fields'])),_0x42c9d7[_0x4ac915('0x2b')]=_0x42c9d7['attributes'][_0x4ac915('0x3f')]?_0x42c9d7['attributes']:_0x5746bb['model'],_0x1385be[_0x4ac915('0x1')][_0x4ac915('0x13')]&&(_0x42c9d7['include']=[{'all':!![]}]),_0x42c9d7=_[_0x4ac915('0x20')]({},_0x42c9d7,_0x1385be['options']),db['Interval']['findOne'](_0x42c9d7)['then'](handleEntityNotFound(_0x4e8d41,null))[_0x4ac915('0xa')](respondWithResult(_0x4e8d41,null))[_0x4ac915('0x1d')](handleError(_0x4e8d41,null));},exports[_0x40403b('0x24')]=function(_0x355d50,_0x425717){const _0x16cd51=_0x40403b;return db[_0x16cd51('0x25')][_0x16cd51('0x24')](_0x355d50[_0x16cd51('0x5')],{})[_0x16cd51('0xa')](function(_0xc274f2){const _0x1d2df2=_0x16cd51,_0x439fa7=_0x355d50[_0x1d2df2('0xf')][_0x1d2df2('0x2f')]({'plain':!![]});if(!_0x439fa7)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x439fa7[_0x1d2df2('0x10')]===_0x1d2df2('0xf')){const _0x3b8657=_0xc274f2['get']({'plain':!![]}),_0xcf2bb3=_0x1d2df2('0x32');return db[_0x1d2df2('0x4')][_0x1d2df2('0x37')]({'where':{'name':_0xcf2bb3,'userProfileId':_0x439fa7[_0x1d2df2('0x42')]},'raw':!![]})['then'](function(_0x3f016f){const _0x3cff5f=_0x1d2df2;return _0x3f016f&&_0x3f016f['autoAssociation']===0x0?db[_0x3cff5f('0x1a')][_0x3cff5f('0x24')]({'name':_0x3b8657[_0x3cff5f('0x43')],'resourceId':_0x3b8657['id'],'type':_0x3f016f[_0x3cff5f('0x43')],'sectionId':_0x3f016f['id']},{})[_0x3cff5f('0xa')](function(){return _0xc274f2;}):_0xc274f2;})[_0x1d2df2('0x1d')](function(_0x27cf6c){const _0x3651be=_0x1d2df2;logger[_0x3651be('0x14')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x27cf6c);throw _0x27cf6c;});}return _0xc274f2;})[_0x16cd51('0xa')](respondWithResult(_0x425717,0xc9))[_0x16cd51('0x1d')](handleError(_0x425717,null));},exports[_0x40403b('0xc')]=function(_0x4061bf,_0x46c014){const _0x3ceed5=_0x40403b;return _0x4061bf[_0x3ceed5('0x5')]['id']&&delete _0x4061bf[_0x3ceed5('0x5')]['id'],db[_0x3ceed5('0x25')]['findOne']({'where':{'id':_0x4061bf['params']['id']}})['then'](handleEntityNotFound(_0x46c014,null))['then'](saveUpdates(_0x4061bf[_0x3ceed5('0x5')],null))[_0x3ceed5('0xa')](respondWithResult(_0x46c014,null))[_0x3ceed5('0x1d')](handleError(_0x46c014,null));},exports[_0x40403b('0xe')]=function(_0x1effe9,_0x1d5e4c){const _0x385fb8=_0x40403b;return db[_0x385fb8('0x25')][_0x385fb8('0x37')]({'where':{'id':_0x1effe9['params']['id']}})[_0x385fb8('0xa')](handleEntityNotFound(_0x1d5e4c,null))[_0x385fb8('0xa')](removeEntity(_0x1d5e4c,null))[_0x385fb8('0x1d')](handleError(_0x1d5e4c,null));},exports[_0x40403b('0x27')]=function(_0x4c8c22,_0x1cfaf7){const _0x445aca=_0x40403b;return _0x4c8c22[_0x445aca('0x5')]['id']&&delete _0x4c8c22[_0x445aca('0x5')]['id'],db[_0x445aca('0x25')]['findOne']({'where':{'id':_0x4c8c22[_0x445aca('0x38')]['id']}})[_0x445aca('0xa')](handleEntityNotFound(_0x1cfaf7,null))[_0x445aca('0xa')](function(_0x86ca13){const _0xa598c7=_0x445aca;if(_0x86ca13)return _0x4c8c22[_0xa598c7('0x5')][_0xa598c7('0x21')]=_0x86ca13['id'],db[_0xa598c7('0x25')][_0xa598c7('0x24')](_0x4c8c22[_0xa598c7('0x5')]);})[_0x445aca('0xa')](respondWithResult(_0x1cfaf7,null))[_0x445aca('0x1d')](handleError(_0x1cfaf7,null));},exports[_0x40403b('0x3a')]=function(_0x326685,_0x49d405){const _0x43cb8b=_0x40403b;let _0x3204f3={};const _0x5f2129={};let _0x15fa34,_0x4df3f6;return db[_0x43cb8b('0x25')]['findOne']({'where':{'id':_0x326685['params']['id']}})[_0x43cb8b('0xa')](handleEntityNotFound(_0x49d405,null))[_0x43cb8b('0xa')](function(_0x2ca9d1){const _0x23fc22=_0x43cb8b;if(_0x2ca9d1)return _0x15fa34=_0x2ca9d1,_0x5f2129[_0x23fc22('0x29')]=_[_0x23fc22('0x2a')](db['Interval']['rawAttributes']),_0x5f2129[_0x23fc22('0x1')]=_['keys'](_0x326685['query']),_0x5f2129[_0x23fc22('0x2')]=_[_0x23fc22('0x3')](_0x5f2129[_0x23fc22('0x29')],_0x5f2129[_0x23fc22('0x1')]),_0x3204f3[_0x23fc22('0x2b')]=_['intersection'](_0x5f2129[_0x23fc22('0x29')],qs[_0x23fc22('0x40')](_0x326685['query'][_0x23fc22('0x40')])),_0x3204f3[_0x23fc22('0x2b')]=_0x3204f3[_0x23fc22('0x2b')][_0x23fc22('0x3f')]?_0x3204f3[_0x23fc22('0x2b')]:_0x5f2129[_0x23fc22('0x29')],_0x3204f3[_0x23fc22('0x1f')]=qs['sort'](_0x326685[_0x23fc22('0x1')]['sort']),_0x3204f3['where']=qs[_0x23fc22('0x2')](_['pick'](_0x326685[_0x23fc22('0x1')],_0x5f2129['filters'])),_0x326685['query'][_0x23fc22('0x3b')]&&(_0x3204f3['where']=_[_0x23fc22('0x20')](_0x3204f3['where'],{[Op['or']]:_[_0x23fc22('0x22')](_0x3204f3[_0x23fc22('0x2b')],function(_0x484fd7){const _0x1a8fea=_0x23fc22,_0x4e01b7={};return _0x4e01b7[_0x484fd7]={[Op[_0x1a8fea('0x2e')]]:'%'+_0x326685['query'][_0x1a8fea('0x3b')]+'%'},_0x4e01b7;})})),_0x3204f3=_[_0x23fc22('0x20')]({},_0x3204f3,_0x326685[_0x23fc22('0x15')]),_0x15fa34['getIntervals'](_0x3204f3);})[_0x43cb8b('0xa')](function(_0x72afcd){const _0x13eb3f=_0x43cb8b;if(_0x72afcd)return _0x4df3f6=_0x72afcd['length'],typeof _0x326685[_0x13eb3f('0x1')][_0x13eb3f('0x1b')]===_0x13eb3f('0x3c')&&(_0x3204f3['limit']=qs['limit'](_0x326685[_0x13eb3f('0x1')][_0x13eb3f('0x44')]),_0x3204f3[_0x13eb3f('0x2c')]=qs[_0x13eb3f('0x2c')](_0x326685[_0x13eb3f('0x1')][_0x13eb3f('0x2c')])),_0x15fa34['getIntervals'](_0x3204f3);})['then'](function(_0x2dd622){if(_0x2dd622)return _0x2dd622?{'count':_0x4df3f6,'rows':_0x2dd622}:null;})[_0x43cb8b('0xa')](respondWithResult(_0x49d405,null))['catch'](handleError(_0x49d405,null));},exports[_0x40403b('0x34')]=function(_0x3a836b,_0x44d960){const _0x3f521d=_0x40403b;return db[_0x3f521d('0x25')]['findOne']({'where':{'id':_0x3a836b[_0x3f521d('0x38')]['id']}})[_0x3f521d('0xa')](handleEntityNotFound(_0x44d960,null))[_0x3f521d('0xa')](function(_0xb3f51c){const _0x33a837=_0x3f521d;if(_0xb3f51c)return db[_0x33a837('0x19')]['transaction'](function(_0x239f62){const _0x583d6a=_0x33a837;return db[_0x583d6a('0x25')][_0x583d6a('0xe')]({'where':{'IntervalId':_0x3a836b[_0x583d6a('0x38')]['id']},'transaction':_0x239f62})[_0x583d6a('0xa')](function(){const _0x4f4ff4=_0x583d6a,_0x3fd83d=_[_0x4f4ff4('0x22')](_0x3a836b['body'],function(_0x5bc666){const _0x595171=_0x4f4ff4;return delete _0x5bc666['id'],_0x5bc666['IntervalId']=_0x3a836b[_0x595171('0x38')]['id'],_0x5bc666;});return db[_0x4f4ff4('0x25')]['bulkCreate'](_0x3fd83d,{'transaction':_0x239f62});});})[_0x33a837('0xa')](function(){const _0x1a7f73=_0x33a837;return db[_0x1a7f73('0x25')][_0x1a7f73('0x41')]({'where':{'IntervalId':_0x3a836b[_0x1a7f73('0x38')]['id']}});});})['then'](respondWithResult(_0x44d960,null))[_0x3f521d('0x1d')](handleError(_0x44d960,null));}; \ No newline at end of file diff --git a/server/api/interval/interval.model.js b/server/api/interval/interval.model.js index c115c7a..a2d69bd 100644 --- a/server/api/interval/interval.model.js +++ b/server/api/interval/interval.model.js @@ -1 +1 @@ -const a368_0x300c=['./interval.attributes','tools_intervals','../../components/extensions/rewrite','exports','define','rewrite'];(function(_0x593577,_0x300ce1){const _0xc0e9dc=function(_0x5c81c4){while(--_0x5c81c4){_0x593577['push'](_0x593577['shift']());}};_0xc0e9dc(++_0x300ce1);}(a368_0x300c,0xdd));const a368_0xc0e9=function(_0x593577,_0x300ce1){_0x593577=_0x593577-0x0;let _0xc0e9dc=a368_0x300c[_0x593577];return _0xc0e9dc;};const _0x2077b1=a368_0xc0e9;'use strict';const attributes=require(_0x2077b1('0x1')),extensions=require(_0x2077b1('0x3'));module[_0x2077b1('0x4')]=function(_0x5c81c4){const _0x429add=_0x2077b1,_0x3201bf=_0x5c81c4[_0x429add('0x5')]('Interval',attributes,{'tableName':_0x429add('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x54a451){const _0xeb25d6=_0x429add;extensions[_0xeb25d6('0x0')](_0x5c81c4,_0x54a451);},'afterBulkCreate':function(_0x366a3c){const _0x24427a=_0x429add;extensions[_0x24427a('0x0')](_0x5c81c4,_0x366a3c[0x0]);},'afterUpdate':function(_0x53646b){extensions['rewrite'](_0x5c81c4,_0x53646b);},'afterDestroy':function(_0x31b5bf){const _0x6ba3fa=_0x429add;extensions[_0x6ba3fa('0x0')](_0x5c81c4,_0x31b5bf);}}});return _0x3201bf;}; \ No newline at end of file +const a368_0x33cd=['../../components/extensions/rewrite','Interval','rewrite','tools_intervals','exports','define','./interval.attributes'];(function(_0x4dadc0,_0x33cd8b){const _0x2f0ac7=function(_0x4f5a56){while(--_0x4f5a56){_0x4dadc0['push'](_0x4dadc0['shift']());}};_0x2f0ac7(++_0x33cd8b);}(a368_0x33cd,0x7d));const a368_0x2f0a=function(_0x4dadc0,_0x33cd8b){_0x4dadc0=_0x4dadc0-0x0;let _0x2f0ac7=a368_0x33cd[_0x4dadc0];return _0x2f0ac7;};const _0x15186d=a368_0x2f0a;'use strict';const attributes=require(_0x15186d('0x0')),extensions=require(_0x15186d('0x1'));module[_0x15186d('0x5')]=function(_0x4f5a56){const _0x3b0301=_0x15186d,_0xa98de3=_0x4f5a56[_0x3b0301('0x6')](_0x3b0301('0x2'),attributes,{'tableName':_0x3b0301('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x25d647){const _0x451ff3=_0x3b0301;extensions[_0x451ff3('0x3')](_0x4f5a56,_0x25d647);},'afterBulkCreate':function(_0x509630){extensions['rewrite'](_0x4f5a56,_0x509630[0x0]);},'afterUpdate':function(_0x37c5d2){extensions['rewrite'](_0x4f5a56,_0x37c5d2);},'afterDestroy':function(_0x1d82d6){const _0x52a773=_0x3b0301;extensions[_0x52a773('0x3')](_0x4f5a56,_0x1d82d6);}}});return _0xa98de3;}; \ No newline at end of file diff --git a/server/api/interval/interval.rpc.js b/server/api/interval/interval.rpc.js index 5062ef7..e8c068f 100644 --- a/server/api/interval/interval.rpc.js +++ b/server/api/interval/interval.rpc.js @@ -1 +1 @@ -const a369_0x5482=['where','options','Interval','message','findOne','lodash','ShowInterval','rpc','error','attributes','catch','debug','GetInterval','map','raw','info','model','then','stringify','include'];(function(_0x2a8cc8,_0x5482f8){const _0x307f72=function(_0x2c5adb){while(--_0x2c5adb){_0x2a8cc8['push'](_0x2a8cc8['shift']());}};_0x307f72(++_0x5482f8);}(a369_0x5482,0x71));const a369_0x307f=function(_0x2a8cc8,_0x5482f8){_0x2a8cc8=_0x2a8cc8-0x0;let _0x307f72=a369_0x5482[_0x2a8cc8];return _0x307f72;};const _0x5776c3=a369_0x307f;'use strict';const _=require(_0x5776c3('0xc')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x5776c3('0xe'));exports['GetInterval']=function(_0x2c5adb){const _0x2c060b=this;return new Promise(function(_0x4954d0,_0x499595){const _0x287641=a369_0x307f;return db[_0x287641('0x9')]['findAll']({'raw':_0x2c5adb[_0x287641('0x8')]?_0x2c5adb[_0x287641('0x8')][_0x287641('0x1')]===undefined?!![]:![]:!![],'where':_0x2c5adb[_0x287641('0x8')]?_0x2c5adb[_0x287641('0x8')][_0x287641('0x7')]||null:null,'attributes':_0x2c5adb[_0x287641('0x8')]?_0x2c5adb[_0x287641('0x8')]['attributes']||null:null,'limit':_0x2c5adb['options']?_0x2c5adb[_0x287641('0x8')]['limit']||null:null,'include':_0x2c5adb[_0x287641('0x8')]?_0x2c5adb['options'][_0x287641('0x6')]?_[_0x287641('0x0')](_0x2c5adb['options']['include'],function(_0x9a0de1){const _0xa5be08=_0x287641;return{'model':db[_0x9a0de1[_0xa5be08('0x3')]],'as':_0x9a0de1['as'],'attributes':_0x9a0de1[_0xa5be08('0x10')],'include':_0x9a0de1[_0xa5be08('0x6')]?_[_0xa5be08('0x0')](_0x9a0de1[_0xa5be08('0x6')],function(_0x114da7){const _0x55f093=_0xa5be08;return{'model':db[_0x114da7[_0x55f093('0x3')]],'as':_0x114da7['as'],'attributes':_0x114da7[_0x55f093('0x10')],'include':_0x114da7['include']?_[_0x55f093('0x0')](_0x114da7['include'],function(_0x254017){const _0x1c626d=_0x55f093;return{'model':db[_0x254017['model']],'as':_0x254017['as'],'attributes':_0x254017[_0x1c626d('0x10')]};}):[]};}):[]};}):[]:[]})[_0x287641('0x4')](function(_0x1a2ce0){const _0xfe0e51=_0x287641;logger[_0xfe0e51('0x2')]('GetInterval',_0x2c5adb),logger[_0xfe0e51('0x12')]('GetInterval',_0x2c5adb,JSON[_0xfe0e51('0x5')](_0x1a2ce0)),_0x4954d0(_0x1a2ce0);})[_0x287641('0x11')](function(_0x23b485){const _0x39ade3=_0x287641;logger[_0x39ade3('0xf')](_0x39ade3('0x13'),_0x23b485['message'],_0x2c5adb),_0x499595(_0x2c060b['error'](0x1f4,_0x23b485['message']));});});},exports[_0x5776c3('0xd')]=function(_0x292d4a){const _0x129d54=this;return new Promise(function(_0x48c46f,_0x526ee1){const _0x10fa7c=a369_0x307f;return db[_0x10fa7c('0x9')][_0x10fa7c('0xb')]({'raw':_0x292d4a[_0x10fa7c('0x8')]?_0x292d4a[_0x10fa7c('0x8')][_0x10fa7c('0x1')]===undefined?!![]:![]:!![],'where':_0x292d4a[_0x10fa7c('0x8')]?_0x292d4a[_0x10fa7c('0x8')][_0x10fa7c('0x7')]||null:null,'attributes':_0x292d4a[_0x10fa7c('0x8')]?_0x292d4a['options']['attributes']||null:null,'include':_0x292d4a[_0x10fa7c('0x8')]?_0x292d4a['options']['include']?_['map'](_0x292d4a[_0x10fa7c('0x8')][_0x10fa7c('0x6')],function(_0x1f26e3){const _0x3ba4d2=_0x10fa7c;return{'model':db[_0x1f26e3[_0x3ba4d2('0x3')]],'as':_0x1f26e3['as'],'attributes':_0x1f26e3[_0x3ba4d2('0x10')],'include':_0x1f26e3[_0x3ba4d2('0x6')]?_[_0x3ba4d2('0x0')](_0x1f26e3[_0x3ba4d2('0x6')],function(_0xe29049){const _0x1b9481=_0x3ba4d2;return{'model':db[_0xe29049[_0x1b9481('0x3')]],'as':_0xe29049['as'],'attributes':_0xe29049[_0x1b9481('0x10')],'include':_0xe29049['include']?_['map'](_0xe29049[_0x1b9481('0x6')],function(_0x21cfe6){const _0x39feb6=_0x1b9481;return{'model':db[_0x21cfe6[_0x39feb6('0x3')]],'as':_0x21cfe6['as'],'attributes':_0x21cfe6[_0x39feb6('0x10')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5bbf8e){const _0x3c97a9=_0x10fa7c;logger[_0x3c97a9('0x2')]('ShowInterval',_0x292d4a),logger[_0x3c97a9('0x12')](_0x3c97a9('0xd'),_0x292d4a,JSON[_0x3c97a9('0x5')](_0x5bbf8e)),_0x48c46f(_0x5bbf8e);})[_0x10fa7c('0x11')](function(_0x33005d){const _0x413122=_0x10fa7c;logger['error'](_0x413122('0xd'),_0x33005d[_0x413122('0xa')],_0x292d4a),_0x526ee1(_0x129d54[_0x413122('0xf')](0x1f4,_0x33005d[_0x413122('0xa')]));});});}; \ No newline at end of file +const a369_0xaec7=['GetInterval','info','catch','map','include','attributes','debug','model','Interval','ShowInterval','rpc','error','stringify','findAll','../../mysqldb','lodash','options','raw','../../config/logger','message','then'];(function(_0x29fd73,_0xaec769){const _0x55b0a7=function(_0xcbf2ad){while(--_0xcbf2ad){_0x29fd73['push'](_0x29fd73['shift']());}};_0x55b0a7(++_0xaec769);}(a369_0xaec7,0x119));const a369_0x55b0=function(_0x29fd73,_0xaec769){_0x29fd73=_0x29fd73-0x0;let _0x55b0a7=a369_0xaec7[_0x29fd73];return _0x55b0a7;};const _0x314eec=a369_0x55b0;'use strict';const _=require(_0x314eec('0x7')),db=require(_0x314eec('0x6'))['db'],logger=require(_0x314eec('0xa'))(_0x314eec('0x2'));exports[_0x314eec('0xd')]=function(_0xcbf2ad){const _0x5692a2=this;return new Promise(function(_0x58e745,_0x1aeb4c){const _0x256972=a369_0x55b0;return db[_0x256972('0x0')][_0x256972('0x5')]({'raw':_0xcbf2ad['options']?_0xcbf2ad[_0x256972('0x8')][_0x256972('0x9')]===undefined?!![]:![]:!![],'where':_0xcbf2ad[_0x256972('0x8')]?_0xcbf2ad[_0x256972('0x8')]['where']||null:null,'attributes':_0xcbf2ad[_0x256972('0x8')]?_0xcbf2ad[_0x256972('0x8')][_0x256972('0x12')]||null:null,'limit':_0xcbf2ad[_0x256972('0x8')]?_0xcbf2ad['options']['limit']||null:null,'include':_0xcbf2ad[_0x256972('0x8')]?_0xcbf2ad[_0x256972('0x8')]['include']?_[_0x256972('0x10')](_0xcbf2ad[_0x256972('0x8')][_0x256972('0x11')],function(_0x856c2b){const _0x2ebac4=_0x256972;return{'model':db[_0x856c2b['model']],'as':_0x856c2b['as'],'attributes':_0x856c2b[_0x2ebac4('0x12')],'include':_0x856c2b[_0x2ebac4('0x11')]?_[_0x2ebac4('0x10')](_0x856c2b[_0x2ebac4('0x11')],function(_0x57ae2a){const _0x5ce910=_0x2ebac4;return{'model':db[_0x57ae2a[_0x5ce910('0x14')]],'as':_0x57ae2a['as'],'attributes':_0x57ae2a['attributes'],'include':_0x57ae2a['include']?_['map'](_0x57ae2a[_0x5ce910('0x11')],function(_0x25eb7d){const _0x1b6012=_0x5ce910;return{'model':db[_0x25eb7d[_0x1b6012('0x14')]],'as':_0x25eb7d['as'],'attributes':_0x25eb7d['attributes']};}):[]};}):[]};}):[]:[]})[_0x256972('0xc')](function(_0x31992c){const _0x7cae3=_0x256972;logger[_0x7cae3('0xe')](_0x7cae3('0xd'),_0xcbf2ad),logger[_0x7cae3('0x13')](_0x7cae3('0xd'),_0xcbf2ad,JSON[_0x7cae3('0x4')](_0x31992c)),_0x58e745(_0x31992c);})[_0x256972('0xf')](function(_0x1c3b8b){const _0x39b833=_0x256972;logger[_0x39b833('0x3')]('GetInterval',_0x1c3b8b[_0x39b833('0xb')],_0xcbf2ad),_0x1aeb4c(_0x5692a2[_0x39b833('0x3')](0x1f4,_0x1c3b8b[_0x39b833('0xb')]));});});},exports[_0x314eec('0x1')]=function(_0x580404){const _0xd191b2=this;return new Promise(function(_0x20d7e1,_0xeb96a0){const _0x5a83d6=a369_0x55b0;return db['Interval']['findOne']({'raw':_0x580404[_0x5a83d6('0x8')]?_0x580404[_0x5a83d6('0x8')]['raw']===undefined?!![]:![]:!![],'where':_0x580404[_0x5a83d6('0x8')]?_0x580404[_0x5a83d6('0x8')]['where']||null:null,'attributes':_0x580404[_0x5a83d6('0x8')]?_0x580404[_0x5a83d6('0x8')][_0x5a83d6('0x12')]||null:null,'include':_0x580404['options']?_0x580404[_0x5a83d6('0x8')]['include']?_['map'](_0x580404[_0x5a83d6('0x8')][_0x5a83d6('0x11')],function(_0x2063db){const _0x3d2660=_0x5a83d6;return{'model':db[_0x2063db[_0x3d2660('0x14')]],'as':_0x2063db['as'],'attributes':_0x2063db[_0x3d2660('0x12')],'include':_0x2063db['include']?_[_0x3d2660('0x10')](_0x2063db[_0x3d2660('0x11')],function(_0x4c6cfa){const _0x2bafc8=_0x3d2660;return{'model':db[_0x4c6cfa['model']],'as':_0x4c6cfa['as'],'attributes':_0x4c6cfa['attributes'],'include':_0x4c6cfa[_0x2bafc8('0x11')]?_[_0x2bafc8('0x10')](_0x4c6cfa[_0x2bafc8('0x11')],function(_0x3ff5f2){const _0x4e09f4=_0x2bafc8;return{'model':db[_0x3ff5f2['model']],'as':_0x3ff5f2['as'],'attributes':_0x3ff5f2[_0x4e09f4('0x12')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x54212c){const _0x1cd6d7=_0x5a83d6;logger[_0x1cd6d7('0xe')](_0x1cd6d7('0x1'),_0x580404),logger[_0x1cd6d7('0x13')]('ShowInterval',_0x580404,JSON[_0x1cd6d7('0x4')](_0x54212c)),_0x20d7e1(_0x54212c);})[_0x5a83d6('0xf')](function(_0x13a9cb){const _0x3a9e75=_0x5a83d6;logger[_0x3a9e75('0x3')](_0x3a9e75('0x1'),_0x13a9cb[_0x3a9e75('0xb')],_0x580404),_0xeb96a0(_0xd191b2['error'](0x1f4,_0x13a9cb[_0x3a9e75('0xb')]));});});}; \ No newline at end of file diff --git a/server/api/jira/index.js b/server/api/jira/index.js index ba63d73..df81a8a 100644 --- a/server/api/jira/index.js +++ b/server/api/jira/index.js @@ -1 +1 @@ -const a370_0xf72b=['./jira.controller','isAuthenticated','express','../../components/auth/service','send','post','exports'];(function(_0x360fd7,_0xf72b78){const _0x34a0ff=function(_0x133797){while(--_0x133797){_0x360fd7['push'](_0x360fd7['shift']());}};_0x34a0ff(++_0xf72b78);}(a370_0xf72b,0xfd));const a370_0x34a0=function(_0x360fd7,_0xf72b78){_0x360fd7=_0x360fd7-0x0;let _0x34a0ff=a370_0xf72b[_0x360fd7];return _0x34a0ff;};const _0xe6f50b=a370_0x34a0;'use strict';const express=require(_0xe6f50b('0x1')),router=express['Router'](),auth=require(_0xe6f50b('0x2')),controller=require(_0xe6f50b('0x6'));router[_0xe6f50b('0x4')]('/',auth[_0xe6f50b('0x0')](),controller[_0xe6f50b('0x3')]),module[_0xe6f50b('0x5')]=router; \ No newline at end of file +const a370_0x40cd=['../../components/auth/service','isAuthenticated','send','express','./jira.controller','Router'];(function(_0x40ee60,_0x40cd48){const _0x4b06ce=function(_0x188f8b){while(--_0x188f8b){_0x40ee60['push'](_0x40ee60['shift']());}};_0x4b06ce(++_0x40cd48);}(a370_0x40cd,0x1e3));const a370_0x4b06=function(_0x40ee60,_0x40cd48){_0x40ee60=_0x40ee60-0x0;let _0x4b06ce=a370_0x40cd[_0x40ee60];return _0x4b06ce;};const _0x4cf4b8=a370_0x4b06;'use strict';const express=require(_0x4cf4b8('0x0')),router=express[_0x4cf4b8('0x2')](),auth=require(_0x4cf4b8('0x3')),controller=require(_0x4cf4b8('0x1'));router['post']('/',auth[_0x4cf4b8('0x4')](),controller[_0x4cf4b8('0x5')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/jira/jira.controller.js b/server/api/jira/jira.controller.js index eaac6e3..76a932d 100644 --- a/server/api/jira/jira.controller.js +++ b/server/api/jira/jira.controller.js @@ -1 +1 @@ -const a371_0x742f=['customfield_10102','fields','name','3eAmWpBVP0','statusCode','/rest/api/2/issue','toString','POST','body','Basic\x20','MOTGUI','customfield_11501','\x20from\x20','issuetype','send','from','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','setEncoding','customfield_11504','summary','customfield_11500','connection','stringify','write','status','headers','socket','Bug','newToken','track.xcallymotion.com','openIssue','api.jira','data','json','end','Report','remoteAddress','application/json','base64','https','customfield_11503'];(function(_0x1a313c,_0x742f27){const _0x2e3949=function(_0x3d1a93){while(--_0x3d1a93){_0x1a313c['push'](_0x1a313c['shift']());}};_0x2e3949(++_0x742f27);}(a371_0x742f,0x1c5));const a371_0x2e39=function(_0x1a313c,_0x742f27){_0x1a313c=_0x1a313c-0x0;let _0x2e3949=a371_0x742f[_0x1a313c];return _0x2e3949;};const _0x2a0965=a371_0x2e39;'use strict';const https=require(_0x2a0965('0x25')),USERNAME='support',PASSWORD=_0x2a0965('0x1');function openIssue(_0x3d1a93,_0x4f26a9){const _0x40542d=_0x2a0965,_0xc2c2c9={'fields':{'project':{'key':_0x3d1a93['key']||_0x40542d('0x8')},'summary':(_0x3d1a93[_0x40542d('0x11')]||_0x40542d('0x21'))+_0x40542d('0xa')+_0x3d1a93['ip'],'description':_0x3d1a93['description']||JSON[_0x40542d('0x14')](_0x3d1a93),'issuetype':{'name':_0x3d1a93[_0x40542d('0xb')]||_0x40542d('0x19')}}};_0xc2c2c9[_0x40542d('0x28')][_0x40542d('0x12')]=_0x3d1a93['email'],_0xc2c2c9[_0x40542d('0x28')][_0x40542d('0x9')]=_0x3d1a93['oldToken'],_0xc2c2c9[_0x40542d('0x28')]['customfield_11502']=_0x3d1a93[_0x40542d('0x1a')],_0xc2c2c9[_0x40542d('0x28')][_0x40542d('0x26')]=_0x3d1a93[_0x40542d('0x0')],_0xc2c2c9[_0x40542d('0x28')][_0x40542d('0x10')]=_0x3d1a93['reason'],_0xc2c2c9[_0x40542d('0x28')][_0x40542d('0x27')]=_0x3d1a93['ip'];const _0x166717={'host':_0x40542d('0x1b'),'port':0x1bb,'path':_0x40542d('0x3'),'method':_0x40542d('0x5'),'timeout':0x4e20,'headers':{'Content-Type':_0x40542d('0x23'),'Authorization':_0x40542d('0x7')+Buffer[_0x40542d('0xd')](USERNAME+':'+PASSWORD)[_0x40542d('0x4')](_0x40542d('0x24'))}},_0x544a62=JSON[_0x40542d('0x14')](_0xc2c2c9),_0x4d1cd3=https['request'](_0x166717,function(_0x12ec78){const _0x5a9a50=_0x40542d;_0x12ec78[_0x5a9a50('0xf')]('utf8');let _0x20fc73='';_0x12ec78['on'](_0x5a9a50('0x1e'),function(_0x525618){_0x20fc73+=_0x525618;}),_0x12ec78['on'](_0x5a9a50('0x20'),function(){const _0x33460b=_0x5a9a50;if(_0x4f26a9)return _0x4f26a9['status'](_0x12ec78[_0x33460b('0x2')])[_0x33460b('0x1f')](JSON['parse'](_0x20fc73));});});_0x4d1cd3['on']('error',function(){const _0x5bf898=_0x40542d;if(_0x4f26a9)return _0x4f26a9[_0x5bf898('0x16')](0x1f4)[_0x5bf898('0x1f')]({'errors':[{'message':_0x5bf898('0xe'),'type':_0x5bf898('0x1d')}]});}),_0x4d1cd3[_0x40542d('0x15')](_0x544a62),_0x4d1cd3[_0x40542d('0x20')]();}exports[_0x2a0965('0x1c')]=openIssue,exports[_0x2a0965('0xc')]=function(_0x1ead4b,_0x476187){const _0x279471=_0x2a0965;return _0x1ead4b[_0x279471('0x6')]['ip']=_0x1ead4b[_0x279471('0x17')]['x-forwarded-for']||_0x1ead4b[_0x279471('0x13')][_0x279471('0x22')]||_0x1ead4b[_0x279471('0x18')][_0x279471('0x22')]||_0x1ead4b[_0x279471('0x13')][_0x279471('0x18')][_0x279471('0x22')],openIssue(_0x1ead4b[_0x279471('0x6')],_0x476187);}; \ No newline at end of file +const a371_0x49a3=['name','socket','POST','Bug','x-forwarded-for','request','openIssue','newToken','description','from','/rest/api/2/issue','reason','status','stringify','customfield_11500','summary','3eAmWpBVP0','error','support','customfield_11504','connection','base64','\x20from\x20','email','body','customfield_11503','end','parse','issuetype','MOTGUI','json','Error\x20during\x20license\x20request.\x20Please\x20contact\x20our\x20license\x20team\x20at\x20license@xcally.com\x20with\x20your\x20request','application/json','toString','fields','remoteAddress','api.jira','customfield_10102','track.xcallymotion.com','setEncoding','oldToken','customfield_11502','key'];(function(_0x52f16f,_0x49a386){const _0x528ac3=function(_0x5d3431){while(--_0x5d3431){_0x52f16f['push'](_0x52f16f['shift']());}};_0x528ac3(++_0x49a386);}(a371_0x49a3,0x15d));const a371_0x528a=function(_0x52f16f,_0x49a386){_0x52f16f=_0x52f16f-0x0;let _0x528ac3=a371_0x49a3[_0x52f16f];return _0x528ac3;};const _0x6c8eb6=a371_0x528a;'use strict';const https=require('https'),USERNAME=_0x6c8eb6('0xd'),PASSWORD=_0x6c8eb6('0xb');function openIssue(_0x5d3431,_0x179aba){const _0x351fe1=_0x6c8eb6,_0x12b693={'fields':{'project':{'key':_0x5d3431[_0x351fe1('0x25')]||_0x351fe1('0x18')},'summary':(_0x5d3431[_0x351fe1('0xa')]||'Report')+_0x351fe1('0x11')+_0x5d3431['ip'],'description':_0x5d3431[_0x351fe1('0x3')]||JSON[_0x351fe1('0x8')](_0x5d3431),'issuetype':{'name':_0x5d3431[_0x351fe1('0x17')]||_0x351fe1('0x29')}}};_0x12b693[_0x351fe1('0x1d')][_0x351fe1('0x9')]=_0x5d3431[_0x351fe1('0x12')],_0x12b693['fields']['customfield_11501']=_0x5d3431[_0x351fe1('0x23')],_0x12b693[_0x351fe1('0x1d')][_0x351fe1('0x24')]=_0x5d3431[_0x351fe1('0x2')],_0x12b693[_0x351fe1('0x1d')][_0x351fe1('0x14')]=_0x5d3431[_0x351fe1('0x26')],_0x12b693[_0x351fe1('0x1d')][_0x351fe1('0xe')]=_0x5d3431[_0x351fe1('0x6')],_0x12b693['fields'][_0x351fe1('0x20')]=_0x5d3431['ip'];const _0x5c89a9={'host':_0x351fe1('0x21'),'port':0x1bb,'path':_0x351fe1('0x5'),'method':_0x351fe1('0x28'),'timeout':0x4e20,'headers':{'Content-Type':_0x351fe1('0x1b'),'Authorization':'Basic\x20'+Buffer[_0x351fe1('0x4')](USERNAME+':'+PASSWORD)[_0x351fe1('0x1c')](_0x351fe1('0x10'))}},_0xdbc103=JSON[_0x351fe1('0x8')](_0x12b693),_0x29a35b=https[_0x351fe1('0x0')](_0x5c89a9,function(_0x55f88f){const _0x7f8e1d=_0x351fe1;_0x55f88f[_0x7f8e1d('0x22')]('utf8');let _0x4af9cc='';_0x55f88f['on']('data',function(_0xc5fd1d){_0x4af9cc+=_0xc5fd1d;}),_0x55f88f['on'](_0x7f8e1d('0x15'),function(){const _0x2f11d2=_0x7f8e1d;if(_0x179aba)return _0x179aba[_0x2f11d2('0x7')](_0x55f88f['statusCode'])[_0x2f11d2('0x19')](JSON[_0x2f11d2('0x16')](_0x4af9cc));});});_0x29a35b['on'](_0x351fe1('0xc'),function(){const _0x4ea653=_0x351fe1;if(_0x179aba)return _0x179aba['status'](0x1f4)['json']({'errors':[{'message':_0x4ea653('0x1a'),'type':_0x4ea653('0x1f')}]});}),_0x29a35b['write'](_0xdbc103),_0x29a35b['end']();}exports[_0x6c8eb6('0x1')]=openIssue,exports['send']=function(_0x161912,_0x456757){const _0x397e46=_0x6c8eb6;return _0x161912[_0x397e46('0x13')]['ip']=_0x161912['headers'][_0x397e46('0x2a')]||_0x161912[_0x397e46('0xf')][_0x397e46('0x1e')]||_0x161912[_0x397e46('0x27')][_0x397e46('0x1e')]||_0x161912['connection'][_0x397e46('0x27')][_0x397e46('0x1e')],openIssue(_0x161912[_0x397e46('0x13')],_0x456757);}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/index.js b/server/api/jscriptyAnswerReport/index.js index 7404c2c..09f4aea 100644 --- a/server/api/jscriptyAnswerReport/index.js +++ b/server/api/jscriptyAnswerReport/index.js @@ -1 +1 @@ -const a372_0x474c=['describe','isAuthenticated','create','./jscriptyAnswerReport.controller','delete','Router','index','get','put','show','/:id','exports','express'];(function(_0x160dc2,_0x474c96){const _0x346ed8=function(_0x2e2305){while(--_0x2e2305){_0x160dc2['push'](_0x160dc2['shift']());}};_0x346ed8(++_0x474c96);}(a372_0x474c,0x76));const a372_0x346e=function(_0x160dc2,_0x474c96){_0x160dc2=_0x160dc2-0x0;let _0x346ed8=a372_0x474c[_0x160dc2];return _0x346ed8;};const _0x1e79a7=a372_0x346e;'use strict';const express=require(_0x1e79a7('0xb')),router=express[_0x1e79a7('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x1e79a7('0x2'));router[_0x1e79a7('0x6')]('/',auth[_0x1e79a7('0x0')](),controller[_0x1e79a7('0x5')]),router[_0x1e79a7('0x6')]('/describe',auth['isAuthenticated'](),controller[_0x1e79a7('0xc')]),router[_0x1e79a7('0x6')](_0x1e79a7('0x9'),auth[_0x1e79a7('0x0')](),controller[_0x1e79a7('0x8')]),router['post']('/',auth[_0x1e79a7('0x0')](),controller[_0x1e79a7('0x1')]),router[_0x1e79a7('0x7')](_0x1e79a7('0x9'),auth[_0x1e79a7('0x0')](),controller['update']),router[_0x1e79a7('0x3')](_0x1e79a7('0x9'),auth[_0x1e79a7('0x0')](),controller['destroy']),module[_0x1e79a7('0xa')]=router; \ No newline at end of file +const a372_0x5a28=['put','get','destroy','/:id','isAuthenticated','delete','update','describe','/describe','show','exports','post','./jscriptyAnswerReport.controller','express','Router'];(function(_0x5a80b1,_0x5a288d){const _0x2cf8b4=function(_0x2e9732){while(--_0x2e9732){_0x5a80b1['push'](_0x5a80b1['shift']());}};_0x2cf8b4(++_0x5a288d);}(a372_0x5a28,0x177));const a372_0x2cf8=function(_0x5a80b1,_0x5a288d){_0x5a80b1=_0x5a80b1-0x0;let _0x2cf8b4=a372_0x5a28[_0x5a80b1];return _0x2cf8b4;};const _0xfcf68b=a372_0x2cf8;'use strict';const express=require(_0xfcf68b('0xd')),router=express[_0xfcf68b('0xe')](),auth=require('../../components/auth/service'),controller=require(_0xfcf68b('0xc'));router[_0xfcf68b('0x1')]('/',auth['isAuthenticated'](),controller['index']),router[_0xfcf68b('0x1')](_0xfcf68b('0x8'),auth['isAuthenticated'](),controller[_0xfcf68b('0x7')]),router[_0xfcf68b('0x1')](_0xfcf68b('0x3'),auth['isAuthenticated'](),controller[_0xfcf68b('0x9')]),router[_0xfcf68b('0xb')]('/',auth[_0xfcf68b('0x4')](),controller['create']),router[_0xfcf68b('0x0')](_0xfcf68b('0x3'),auth[_0xfcf68b('0x4')](),controller[_0xfcf68b('0x6')]),router[_0xfcf68b('0x5')](_0xfcf68b('0x3'),auth[_0xfcf68b('0x4')](),controller[_0xfcf68b('0x2')]),module[_0xfcf68b('0xa')]=router; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js index 7038458..b010e0d 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.attributes.js @@ -1 +1 @@ -const a373_0x142c=['exports','STRING','sequelize'];(function(_0x233021,_0x142c53){const _0x357331=function(_0x437968){while(--_0x437968){_0x233021['push'](_0x233021['shift']());}};_0x357331(++_0x142c53);}(a373_0x142c,0xe1));const a373_0x3573=function(_0x233021,_0x142c53){_0x233021=_0x233021-0x0;let _0x357331=a373_0x142c[_0x233021];return _0x357331;};const _0x3cad2d=a373_0x3573;'use strict';const Sequelize=require(_0x3cad2d('0x2'));module[_0x3cad2d('0x0')]={'question':{'type':Sequelize[_0x3cad2d('0x1')]},'answer':{'type':Sequelize['TEXT']('long')},'membername':{'type':Sequelize[_0x3cad2d('0x1')]},'projectname':{'type':Sequelize[_0x3cad2d('0x1')]},'queue':{'type':Sequelize[_0x3cad2d('0x1')]},'uniqueid':{'type':Sequelize[_0x3cad2d('0x1')]},'calleridname':{'type':Sequelize[_0x3cad2d('0x1')]},'calleridnum':{'type':Sequelize[_0x3cad2d('0x1')]},'questionId':{'type':Sequelize[_0x3cad2d('0x1')]}}; \ No newline at end of file +const a373_0x5e2f=['TEXT','long','STRING'];(function(_0x30e13e,_0x5e2fef){const _0x458bd6=function(_0x55d12a){while(--_0x55d12a){_0x30e13e['push'](_0x30e13e['shift']());}};_0x458bd6(++_0x5e2fef);}(a373_0x5e2f,0x14f));const a373_0x458b=function(_0x30e13e,_0x5e2fef){_0x30e13e=_0x30e13e-0x0;let _0x458bd6=a373_0x5e2f[_0x30e13e];return _0x458bd6;};const _0x2dd015=a373_0x458b;'use strict';const Sequelize=require('sequelize');module['exports']={'question':{'type':Sequelize['STRING']},'answer':{'type':Sequelize[_0x2dd015('0x1')](_0x2dd015('0x2'))},'membername':{'type':Sequelize[_0x2dd015('0x0')]},'projectname':{'type':Sequelize[_0x2dd015('0x0')]},'queue':{'type':Sequelize[_0x2dd015('0x0')]},'uniqueid':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x2dd015('0x0')]},'calleridnum':{'type':Sequelize[_0x2dd015('0x0')]},'questionId':{'type':Sequelize[_0x2dd015('0x0')]}}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js index 91ad504..477374d 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.controller.js @@ -1 +1 @@ -const a374_0x5e6a=['count','pick','length','then','where','filter','offset','lodash','body','name','model','findOne','limit','sendStatus','include','status','set','map','type','intersection','merge','params','json','options','fieldName','filters','VIRTUAL','fields','undefined','JscriptyAnswerReport','includeAll','error','sort','index','end','../../components/parsers/qs','show','Content-Range','catch','keys','update','attributes','create','describe','order','send','rows','nolimit','like','query','findAll','rawAttributes'];(function(_0x5cd7cf,_0x5e6a82){const _0x469f18=function(_0x39b4c7){while(--_0x39b4c7){_0x5cd7cf['push'](_0x5cd7cf['shift']());}};_0x469f18(++_0x5e6a82);}(a374_0x5e6a,0xe6));const a374_0x469f=function(_0x5cd7cf,_0x5e6a82){_0x5cd7cf=_0x5cd7cf-0x0;let _0x469f18=a374_0x5e6a[_0x5cd7cf];return _0x469f18;};const _0x387959=a374_0x469f;'use strict';const _=require(_0x387959('0x25')),qs=require(_0x387959('0xd')),logger=require('../../config/logger')('api'),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x39b4c7,_0xffc649){return _0xffc649=_0xffc649||0xc8,function(_0x486f60){const _0x45492b=a374_0x469f;if(_0x486f60)return _0x39b4c7['status'](_0xffc649)[_0x45492b('0x0')](_0x486f60);};}function respondWithFilteredResult(_0x2d0280,_0x24210a){return function(_0x49c98e){const _0x57fd63=a374_0x469f;if(_0x49c98e){const _0x2cb678=_0x49c98e[_0x57fd63('0x1e')],_0x4db826=_0x24210a['offset'];let _0x22a0de=_0x24210a[_0x57fd63('0x24')]+_0x24210a[_0x57fd63('0x2a')],_0xc3282b;return _0x22a0de>=_0x2cb678?(_0x22a0de=_0x2cb678,_0xc3282b=0xc8):_0xc3282b=0xce,_0x2d0280[_0x57fd63('0x2d')](_0xc3282b),_0x2d0280[_0x57fd63('0x2e')](_0x57fd63('0xf'),_0x4db826+'-'+_0x22a0de+'/'+_0x2cb678)[_0x57fd63('0x0')](_0x49c98e);}return null;};}function saveUpdates(_0x2e1182){return function(_0x32c681){const _0x105c71=a374_0x469f;if(_0x32c681)return _0x32c681[_0x105c71('0x12')](_0x2e1182)[_0x105c71('0x21')](function(_0x4e089a){return _0x4e089a;});return null;};}function removeEntity(_0x4a6f35){return function(_0x4302ee){const _0x3e9921=a374_0x469f;if(_0x4302ee)return _0x4302ee['destroy']()[_0x3e9921('0x21')](function(){const _0x4cd42c=_0x3e9921;_0x4a6f35[_0x4cd42c('0x2d')](0xcc)[_0x4cd42c('0xc')]();});};}function handleEntityNotFound(_0x1b7418){return function(_0x332641){const _0x2ff1eb=a374_0x469f;return!_0x332641&&_0x1b7418[_0x2ff1eb('0x2b')](0x194),_0x332641;};}function handleError(_0x47b8e6,_0x146fed){return _0x146fed=_0x146fed||0x1f4,function(_0x2742da){const _0x9760e3=a374_0x469f;logger[_0x9760e3('0x9')](_0x2742da['stack']),_0x2742da['name']&&delete _0x2742da[_0x9760e3('0x27')],_0x47b8e6[_0x9760e3('0x2d')](_0x146fed)[_0x9760e3('0x17')](_0x2742da);};}exports[_0x387959('0xb')]=function(_0x22bcc9,_0x2779e4){const _0x5a3705=_0x387959;let _0x3829ec={};const _0x90794c={},_0x1eb583={'count':0x0,'rows':[]},_0x1ecfe6=_[_0x5a3705('0x2f')](db[_0x5a3705('0x7')][_0x5a3705('0x1d')],function(_0x4f81ce){const _0x1ac69f=_0x5a3705;return{'name':_0x4f81ce[_0x1ac69f('0x2')],'type':_0x4f81ce[_0x1ac69f('0x30')]['key']};});_0x90794c[_0x5a3705('0x28')]=_['map'](_0x1ecfe6,_0x5a3705('0x27')),_0x90794c[_0x5a3705('0x1b')]=_[_0x5a3705('0x11')](_0x22bcc9[_0x5a3705('0x1b')]),_0x90794c[_0x5a3705('0x3')]=_[_0x5a3705('0x31')](_0x90794c['model'],_0x90794c['query']),_0x3829ec[_0x5a3705('0x13')]=_['intersection'](_0x90794c[_0x5a3705('0x28')],qs['fields'](_0x22bcc9[_0x5a3705('0x1b')][_0x5a3705('0x5')])),_0x3829ec[_0x5a3705('0x13')]=_0x3829ec['attributes'][_0x5a3705('0x20')]?_0x3829ec['attributes']:_0x90794c[_0x5a3705('0x28')];typeof _0x22bcc9['query'][_0x5a3705('0x19')]===_0x5a3705('0x6')&&(_0x3829ec[_0x5a3705('0x2a')]=qs[_0x5a3705('0x2a')](_0x22bcc9[_0x5a3705('0x1b')][_0x5a3705('0x2a')]),_0x3829ec[_0x5a3705('0x24')]=qs[_0x5a3705('0x24')](_0x22bcc9[_0x5a3705('0x1b')][_0x5a3705('0x24')]));_0x3829ec[_0x5a3705('0x16')]=qs[_0x5a3705('0xa')](_0x22bcc9[_0x5a3705('0x1b')][_0x5a3705('0xa')]),_0x3829ec['where']=qs[_0x5a3705('0x3')](_[_0x5a3705('0x1f')](_0x22bcc9[_0x5a3705('0x1b')],_0x90794c[_0x5a3705('0x3')]),_0x1ecfe6);_0x22bcc9[_0x5a3705('0x1b')]['filter']&&(_0x3829ec[_0x5a3705('0x22')]=_[_0x5a3705('0x32')](_0x3829ec[_0x5a3705('0x22')],{[Op['or']]:_[_0x5a3705('0x2f')](_0x1ecfe6,function(_0x15a33b){const _0x380c8e=_0x5a3705;if(_0x15a33b[_0x380c8e('0x30')]!==_0x380c8e('0x4')){const _0x367c68={};return _0x367c68[_0x15a33b[_0x380c8e('0x27')]]={[Op[_0x380c8e('0x1a')]]:'%'+_0x22bcc9[_0x380c8e('0x1b')][_0x380c8e('0x23')]+'%'},_0x367c68;}})}));_0x3829ec=_[_0x5a3705('0x32')]({},_0x3829ec,_0x22bcc9[_0x5a3705('0x1')]);const _0x40c10c={'where':_0x3829ec['where']};return db[_0x5a3705('0x7')][_0x5a3705('0x1e')](_0x40c10c)[_0x5a3705('0x21')](function(_0x5e01c8){const _0x5c0554=_0x5a3705;return _0x1eb583[_0x5c0554('0x1e')]=_0x5e01c8,_0x22bcc9['query'][_0x5c0554('0x8')]&&(_0x3829ec[_0x5c0554('0x2c')]=[{'all':!![]}]),db[_0x5c0554('0x7')][_0x5c0554('0x1c')](_0x3829ec);})['then'](function(_0xab75a){const _0xcc32b6=_0x5a3705;return _0x1eb583[_0xcc32b6('0x18')]=_0xab75a,_0x1eb583;})[_0x5a3705('0x21')](respondWithFilteredResult(_0x2779e4,_0x3829ec))[_0x5a3705('0x10')](handleError(_0x2779e4,null));},exports[_0x387959('0xe')]=function(_0x42f937,_0x28721d){const _0x5673a0=_0x387959;let _0x293cd9={'raw':!![],'where':{'id':_0x42f937[_0x5673a0('0x33')]['id']}};const _0x4e19e3={};return _0x4e19e3[_0x5673a0('0x28')]=_[_0x5673a0('0x11')](db['JscriptyAnswerReport'][_0x5673a0('0x1d')]),_0x4e19e3[_0x5673a0('0x1b')]=_[_0x5673a0('0x11')](_0x42f937[_0x5673a0('0x1b')]),_0x4e19e3[_0x5673a0('0x3')]=_['intersection'](_0x4e19e3['model'],_0x4e19e3[_0x5673a0('0x1b')]),_0x293cd9['attributes']=_[_0x5673a0('0x31')](_0x4e19e3[_0x5673a0('0x28')],qs['fields'](_0x42f937[_0x5673a0('0x1b')][_0x5673a0('0x5')])),_0x293cd9['attributes']=_0x293cd9[_0x5673a0('0x13')][_0x5673a0('0x20')]?_0x293cd9[_0x5673a0('0x13')]:_0x4e19e3['model'],_0x42f937['query'][_0x5673a0('0x8')]&&(_0x293cd9[_0x5673a0('0x2c')]=[{'all':!![]}]),_0x293cd9=_[_0x5673a0('0x32')]({},_0x293cd9,_0x42f937[_0x5673a0('0x1')]),db['JscriptyAnswerReport']['findOne'](_0x293cd9)[_0x5673a0('0x21')](handleEntityNotFound(_0x28721d,null))[_0x5673a0('0x21')](respondWithResult(_0x28721d,null))[_0x5673a0('0x10')](handleError(_0x28721d,null));},exports['create']=function(_0x363fe7,_0x1d47cc){const _0x5a83f1=_0x387959;return db[_0x5a83f1('0x7')][_0x5a83f1('0x14')](_0x363fe7[_0x5a83f1('0x26')],{})[_0x5a83f1('0x21')](respondWithResult(_0x1d47cc,0xc9))[_0x5a83f1('0x10')](handleError(_0x1d47cc,null));},exports['update']=function(_0x4a52a3,_0x58a2ea){const _0xe222ce=_0x387959;return _0x4a52a3[_0xe222ce('0x26')]['id']&&delete _0x4a52a3['body']['id'],db[_0xe222ce('0x7')]['findOne']({'where':{'id':_0x4a52a3[_0xe222ce('0x33')]['id']}})[_0xe222ce('0x21')](handleEntityNotFound(_0x58a2ea,null))[_0xe222ce('0x21')](saveUpdates(_0x4a52a3['body'],null))[_0xe222ce('0x21')](respondWithResult(_0x58a2ea,null))[_0xe222ce('0x10')](handleError(_0x58a2ea,null));},exports['destroy']=function(_0x1b7c83,_0x3d160b){const _0x5edaff=_0x387959;return db[_0x5edaff('0x7')][_0x5edaff('0x29')]({'where':{'id':_0x1b7c83['params']['id']}})['then'](handleEntityNotFound(_0x3d160b,null))[_0x5edaff('0x21')](removeEntity(_0x3d160b,null))[_0x5edaff('0x10')](handleError(_0x3d160b,null));},exports['describe']=function(_0x1688ba,_0x2dc47f){const _0x48fe6a=_0x387959;return db[_0x48fe6a('0x7')][_0x48fe6a('0x15')]()['then'](respondWithResult(_0x2dc47f,null))[_0x48fe6a('0x10')](handleError(_0x2dc47f,null));}; \ No newline at end of file +const a374_0x403f=['rawAttributes','findOne','merge','model','params','keys','findAll','end','filters','name','include','VIRTUAL','body','destroy','index','map','query','intersection','fieldName','../../mysqldb','count','attributes','sequelize','set','error','pick','catch','filter','where','show','send','stack','create','sort','../../components/parsers/qs','undefined','order','type','limit','rows','options','fields','json','key','like','then','JscriptyAnswerReport','includeAll','describe','length','status','Content-Range','offset','../../config/logger'];(function(_0x401fbb,_0x403fd9){const _0x150d3e=function(_0x5b078a){while(--_0x5b078a){_0x401fbb['push'](_0x401fbb['shift']());}};_0x150d3e(++_0x403fd9);}(a374_0x403f,0x1ec));const a374_0x150d=function(_0x401fbb,_0x403fd9){_0x401fbb=_0x401fbb-0x0;let _0x150d3e=a374_0x403f[_0x401fbb];return _0x150d3e;};const _0x40cfef=a374_0x150d;'use strict';const _=require('lodash'),qs=require(_0x40cfef('0x1c')),logger=require(_0x40cfef('0x2f'))('api'),db=require(_0x40cfef('0xd'))['db'],{Op}=require(_0x40cfef('0x10'));function respondWithResult(_0x5b078a,_0x52f7c3){return _0x52f7c3=_0x52f7c3||0xc8,function(_0x1c7e0a){const _0x30a828=a374_0x150d;if(_0x1c7e0a)return _0x5b078a[_0x30a828('0x2c')](_0x52f7c3)[_0x30a828('0x24')](_0x1c7e0a);};}function respondWithFilteredResult(_0x3dab2a,_0x46502f){return function(_0x5f3ffb){const _0x339eeb=a374_0x150d;if(_0x5f3ffb){const _0x566cf8=_0x5f3ffb[_0x339eeb('0xe')],_0x20208d=_0x46502f[_0x339eeb('0x2e')];let _0x2140de=_0x46502f['offset']+_0x46502f[_0x339eeb('0x20')],_0x18c9c6;return _0x2140de>=_0x566cf8?(_0x2140de=_0x566cf8,_0x18c9c6=0xc8):_0x18c9c6=0xce,_0x3dab2a[_0x339eeb('0x2c')](_0x18c9c6),_0x3dab2a[_0x339eeb('0x11')](_0x339eeb('0x2d'),_0x20208d+'-'+_0x2140de+'/'+_0x566cf8)[_0x339eeb('0x24')](_0x5f3ffb);}return null;};}function saveUpdates(_0x523f59){return function(_0x14778f){if(_0x14778f)return _0x14778f['update'](_0x523f59)['then'](function(_0x542c95){return _0x542c95;});return null;};}function removeEntity(_0x5ea054){return function(_0x12203e){const _0x43e582=a374_0x150d;if(_0x12203e)return _0x12203e[_0x43e582('0x7')]()[_0x43e582('0x27')](function(){const _0x262dc9=_0x43e582;_0x5ea054[_0x262dc9('0x2c')](0xcc)[_0x262dc9('0x1')]();});};}function handleEntityNotFound(_0x303dc3){return function(_0x51be7b){return!_0x51be7b&&_0x303dc3['sendStatus'](0x194),_0x51be7b;};}function handleError(_0x3a19a8,_0x1c9260){return _0x1c9260=_0x1c9260||0x1f4,function(_0x4f76ba){const _0x195c4f=a374_0x150d;logger[_0x195c4f('0x12')](_0x4f76ba[_0x195c4f('0x19')]),_0x4f76ba[_0x195c4f('0x3')]&&delete _0x4f76ba[_0x195c4f('0x3')],_0x3a19a8[_0x195c4f('0x2c')](_0x1c9260)[_0x195c4f('0x18')](_0x4f76ba);};}exports[_0x40cfef('0x8')]=function(_0x45fd1a,_0x24c79a){const _0x48cc79=_0x40cfef;let _0xee7f25={};const _0x28408f={},_0x828ebb={'count':0x0,'rows':[]},_0x26de14=_[_0x48cc79('0x9')](db[_0x48cc79('0x28')][_0x48cc79('0x30')],function(_0x30d9c7){const _0x14f9f6=_0x48cc79;return{'name':_0x30d9c7[_0x14f9f6('0xc')],'type':_0x30d9c7[_0x14f9f6('0x1f')][_0x14f9f6('0x25')]};});_0x28408f[_0x48cc79('0x33')]=_['map'](_0x26de14,'name'),_0x28408f['query']=_[_0x48cc79('0x35')](_0x45fd1a[_0x48cc79('0xa')]),_0x28408f[_0x48cc79('0x2')]=_['intersection'](_0x28408f[_0x48cc79('0x33')],_0x28408f[_0x48cc79('0xa')]),_0xee7f25[_0x48cc79('0xf')]=_[_0x48cc79('0xb')](_0x28408f[_0x48cc79('0x33')],qs[_0x48cc79('0x23')](_0x45fd1a[_0x48cc79('0xa')][_0x48cc79('0x23')])),_0xee7f25[_0x48cc79('0xf')]=_0xee7f25[_0x48cc79('0xf')][_0x48cc79('0x2b')]?_0xee7f25[_0x48cc79('0xf')]:_0x28408f[_0x48cc79('0x33')];typeof _0x45fd1a[_0x48cc79('0xa')]['nolimit']===_0x48cc79('0x1d')&&(_0xee7f25[_0x48cc79('0x20')]=qs['limit'](_0x45fd1a['query'][_0x48cc79('0x20')]),_0xee7f25[_0x48cc79('0x2e')]=qs['offset'](_0x45fd1a[_0x48cc79('0xa')][_0x48cc79('0x2e')]));_0xee7f25[_0x48cc79('0x1e')]=qs[_0x48cc79('0x1b')](_0x45fd1a['query'][_0x48cc79('0x1b')]),_0xee7f25[_0x48cc79('0x16')]=qs[_0x48cc79('0x2')](_[_0x48cc79('0x13')](_0x45fd1a['query'],_0x28408f['filters']),_0x26de14);_0x45fd1a['query'][_0x48cc79('0x15')]&&(_0xee7f25[_0x48cc79('0x16')]=_[_0x48cc79('0x32')](_0xee7f25[_0x48cc79('0x16')],{[Op['or']]:_[_0x48cc79('0x9')](_0x26de14,function(_0x4c0af5){const _0x2b78a4=_0x48cc79;if(_0x4c0af5[_0x2b78a4('0x1f')]!==_0x2b78a4('0x5')){const _0x24522a={};return _0x24522a[_0x4c0af5[_0x2b78a4('0x3')]]={[Op[_0x2b78a4('0x26')]]:'%'+_0x45fd1a['query'][_0x2b78a4('0x15')]+'%'},_0x24522a;}})}));_0xee7f25=_['merge']({},_0xee7f25,_0x45fd1a[_0x48cc79('0x22')]);const _0x235914={'where':_0xee7f25['where']};return db[_0x48cc79('0x28')][_0x48cc79('0xe')](_0x235914)['then'](function(_0x4ee84b){const _0x47e7fb=_0x48cc79;return _0x828ebb[_0x47e7fb('0xe')]=_0x4ee84b,_0x45fd1a[_0x47e7fb('0xa')][_0x47e7fb('0x29')]&&(_0xee7f25[_0x47e7fb('0x4')]=[{'all':!![]}]),db[_0x47e7fb('0x28')][_0x47e7fb('0x0')](_0xee7f25);})[_0x48cc79('0x27')](function(_0x205974){const _0x7fa83f=_0x48cc79;return _0x828ebb[_0x7fa83f('0x21')]=_0x205974,_0x828ebb;})[_0x48cc79('0x27')](respondWithFilteredResult(_0x24c79a,_0xee7f25))[_0x48cc79('0x14')](handleError(_0x24c79a,null));},exports[_0x40cfef('0x17')]=function(_0x246f2e,_0x4b7151){const _0x15f625=_0x40cfef;let _0x2e0ace={'raw':!![],'where':{'id':_0x246f2e[_0x15f625('0x34')]['id']}};const _0x357aa9={};return _0x357aa9['model']=_[_0x15f625('0x35')](db[_0x15f625('0x28')][_0x15f625('0x30')]),_0x357aa9[_0x15f625('0xa')]=_[_0x15f625('0x35')](_0x246f2e[_0x15f625('0xa')]),_0x357aa9[_0x15f625('0x2')]=_[_0x15f625('0xb')](_0x357aa9[_0x15f625('0x33')],_0x357aa9[_0x15f625('0xa')]),_0x2e0ace['attributes']=_[_0x15f625('0xb')](_0x357aa9[_0x15f625('0x33')],qs[_0x15f625('0x23')](_0x246f2e[_0x15f625('0xa')][_0x15f625('0x23')])),_0x2e0ace[_0x15f625('0xf')]=_0x2e0ace[_0x15f625('0xf')][_0x15f625('0x2b')]?_0x2e0ace[_0x15f625('0xf')]:_0x357aa9[_0x15f625('0x33')],_0x246f2e[_0x15f625('0xa')]['includeAll']&&(_0x2e0ace[_0x15f625('0x4')]=[{'all':!![]}]),_0x2e0ace=_[_0x15f625('0x32')]({},_0x2e0ace,_0x246f2e[_0x15f625('0x22')]),db[_0x15f625('0x28')][_0x15f625('0x31')](_0x2e0ace)[_0x15f625('0x27')](handleEntityNotFound(_0x4b7151,null))[_0x15f625('0x27')](respondWithResult(_0x4b7151,null))['catch'](handleError(_0x4b7151,null));},exports['create']=function(_0x372994,_0x551862){const _0x1743f6=_0x40cfef;return db[_0x1743f6('0x28')][_0x1743f6('0x1a')](_0x372994[_0x1743f6('0x6')],{})[_0x1743f6('0x27')](respondWithResult(_0x551862,0xc9))[_0x1743f6('0x14')](handleError(_0x551862,null));},exports['update']=function(_0x8cc7e1,_0x790d1d){const _0x475c67=_0x40cfef;return _0x8cc7e1['body']['id']&&delete _0x8cc7e1[_0x475c67('0x6')]['id'],db[_0x475c67('0x28')][_0x475c67('0x31')]({'where':{'id':_0x8cc7e1[_0x475c67('0x34')]['id']}})['then'](handleEntityNotFound(_0x790d1d,null))[_0x475c67('0x27')](saveUpdates(_0x8cc7e1[_0x475c67('0x6')],null))[_0x475c67('0x27')](respondWithResult(_0x790d1d,null))[_0x475c67('0x14')](handleError(_0x790d1d,null));},exports[_0x40cfef('0x7')]=function(_0x2bb1cf,_0x31ef9f){const _0x1c75a6=_0x40cfef;return db[_0x1c75a6('0x28')][_0x1c75a6('0x31')]({'where':{'id':_0x2bb1cf[_0x1c75a6('0x34')]['id']}})[_0x1c75a6('0x27')](handleEntityNotFound(_0x31ef9f,null))[_0x1c75a6('0x27')](removeEntity(_0x31ef9f,null))['catch'](handleError(_0x31ef9f,null));},exports[_0x40cfef('0x2a')]=function(_0x5ebe56,_0x3c402d){const _0x170f5f=_0x40cfef;return db[_0x170f5f('0x28')]['describe']()[_0x170f5f('0x27')](respondWithResult(_0x3c402d,null))['catch'](handleError(_0x3c402d,null));}; \ No newline at end of file diff --git a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js index 7709479..308eb29 100644 --- a/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js +++ b/server/api/jscriptyAnswerReport/jscriptyAnswerReport.model.js @@ -1 +1 @@ -const a375_0x39e4=['define','report_jscripty_answers','JscriptyAnswerReport','./jscriptyAnswerReport.attributes'];(function(_0x4b8097,_0x39e41a){const _0x4da410=function(_0x16f5c7){while(--_0x16f5c7){_0x4b8097['push'](_0x4b8097['shift']());}};_0x4da410(++_0x39e41a);}(a375_0x39e4,0x74));const a375_0x4da4=function(_0x4b8097,_0x39e41a){_0x4b8097=_0x4b8097-0x0;let _0x4da410=a375_0x39e4[_0x4b8097];return _0x4da410;};const _0x50db34=a375_0x4da4;'use strict';const attributes=require(_0x50db34('0x3'));module['exports']=function(_0x16f5c7){const _0x8ca5a0=_0x50db34,_0x1d84bc=_0x16f5c7[_0x8ca5a0('0x0')](_0x8ca5a0('0x2'),attributes,{'tableName':_0x8ca5a0('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d84bc;}; \ No newline at end of file +const a375_0x2a03=['report_jscripty_answers','JscriptyAnswerReport','./jscriptyAnswerReport.attributes','define'];(function(_0xf25a96,_0x2a03fd){const _0x3e8dfd=function(_0x2e92fd){while(--_0x2e92fd){_0xf25a96['push'](_0xf25a96['shift']());}};_0x3e8dfd(++_0x2a03fd);}(a375_0x2a03,0xfa));const a375_0x3e8d=function(_0xf25a96,_0x2a03fd){_0xf25a96=_0xf25a96-0x0;let _0x3e8dfd=a375_0x2a03[_0xf25a96];return _0x3e8dfd;};const _0x58545d=a375_0x3e8d;'use strict';const attributes=require(_0x58545d('0x0'));module['exports']=function(_0x2e92fd){const _0x12d527=_0x58545d,_0x5cd39f=_0x2e92fd[_0x12d527('0x1')](_0x12d527('0x3'),attributes,{'tableName':_0x12d527('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5cd39f;}; \ No newline at end of file diff --git a/server/api/jscriptyProject/index.js b/server/api/jscriptyProject/index.js index 052aeed..8a818cf 100644 --- a/server/api/jscriptyProject/index.js +++ b/server/api/jscriptyProject/index.js @@ -1 +1 @@ -const a376_0x2070=['clone','getSummary','update','isAuthenticated','connect-timeout','/:id/summary','/:id','exports','get','getAnswers','/:id/clone','post','delete','express','destroy','/:id/answers'];(function(_0x522b66,_0x2070f4){const _0xfa37f4=function(_0x34d932){while(--_0x34d932){_0x522b66['push'](_0x522b66['shift']());}};_0xfa37f4(++_0x2070f4);}(a376_0x2070,0xe4));const a376_0xfa37=function(_0x522b66,_0x2070f4){_0x522b66=_0x522b66-0x0;let _0xfa37f4=a376_0x2070[_0x522b66];return _0xfa37f4;};const _0x4bcd80=a376_0xfa37;'use strict';const timeout=require(_0x4bcd80('0x0')),express=require(_0x4bcd80('0x9')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./jscriptyProject.controller');router[_0x4bcd80('0x4')]('/',auth[_0x4bcd80('0xf')](),controller['index']),router['get'](_0x4bcd80('0x2'),auth['isAuthenticated'](),controller['show']),router[_0x4bcd80('0x4')]('/:id/sessions',auth[_0x4bcd80('0xf')](),controller['getSessions']),router[_0x4bcd80('0x4')](_0x4bcd80('0xb'),auth[_0x4bcd80('0xf')](),controller[_0x4bcd80('0x5')]),router[_0x4bcd80('0x4')](_0x4bcd80('0x1'),auth['isAuthenticated'](),timeout('30s'),controller[_0x4bcd80('0xd')]),router[_0x4bcd80('0x7')]('/',auth[_0x4bcd80('0xf')](),controller['create']),router[_0x4bcd80('0x7')](_0x4bcd80('0x6'),auth[_0x4bcd80('0xf')](),controller[_0x4bcd80('0xc')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x4bcd80('0xe')]),router[_0x4bcd80('0x8')](_0x4bcd80('0x2'),auth[_0x4bcd80('0xf')](),controller[_0x4bcd80('0xa')]),module[_0x4bcd80('0x3')]=router; \ No newline at end of file +const a376_0x48dd=['destroy','create','post','show','/:id/answers','get','express','getAnswers','connect-timeout','clone','getSummary','./jscriptyProject.controller','/:id/summary','getSessions','delete','isAuthenticated','exports','put','index','30s','../../components/auth/service','Router','/:id'];(function(_0x19ec9f,_0x48ddc0){const _0x94d9b=function(_0x1f4a1c){while(--_0x1f4a1c){_0x19ec9f['push'](_0x19ec9f['shift']());}};_0x94d9b(++_0x48ddc0);}(a376_0x48dd,0xed));const a376_0x94d9=function(_0x19ec9f,_0x48ddc0){_0x19ec9f=_0x19ec9f-0x0;let _0x94d9b=a376_0x48dd[_0x19ec9f];return _0x94d9b;};const _0x1d5d64=a376_0x94d9;'use strict';const timeout=require(_0x1d5d64('0x1')),express=require(_0x1d5d64('0x16')),router=express[_0x1d5d64('0xe')](),auth=require(_0x1d5d64('0xd')),controller=require(_0x1d5d64('0x4'));router[_0x1d5d64('0x15')]('/',auth[_0x1d5d64('0x8')](),controller[_0x1d5d64('0xb')]),router['get'](_0x1d5d64('0xf'),auth[_0x1d5d64('0x8')](),controller[_0x1d5d64('0x13')]),router[_0x1d5d64('0x15')]('/:id/sessions',auth[_0x1d5d64('0x8')](),controller[_0x1d5d64('0x6')]),router[_0x1d5d64('0x15')](_0x1d5d64('0x14'),auth[_0x1d5d64('0x8')](),controller[_0x1d5d64('0x0')]),router['get'](_0x1d5d64('0x5'),auth['isAuthenticated'](),timeout(_0x1d5d64('0xc')),controller[_0x1d5d64('0x3')]),router['post']('/',auth[_0x1d5d64('0x8')](),controller[_0x1d5d64('0x11')]),router[_0x1d5d64('0x12')]('/:id/clone',auth[_0x1d5d64('0x8')](),controller[_0x1d5d64('0x2')]),router[_0x1d5d64('0xa')](_0x1d5d64('0xf'),auth[_0x1d5d64('0x8')](),controller['update']),router[_0x1d5d64('0x7')](_0x1d5d64('0xf'),auth[_0x1d5d64('0x8')](),controller[_0x1d5d64('0x10')]),module[_0x1d5d64('0x9')]=router; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.attributes.js b/server/api/jscriptyProject/jscriptyProject.attributes.js index 97aec6a..33490c1 100644 --- a/server/api/jscriptyProject/jscriptyProject.attributes.js +++ b/server/api/jscriptyProject/jscriptyProject.attributes.js @@ -1 +1 @@ -const a377_0x393b=['{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','formData','STRING','stringify','format','BOOLEAN','exports','isString','getDataValue','util','name','setDataValue'];(function(_0x36e70f,_0x393b9c){const _0x5271d8=function(_0xe203ad){while(--_0xe203ad){_0x36e70f['push'](_0x36e70f['shift']());}};_0x5271d8(++_0x393b9c);}(a377_0x393b,0xc2));const a377_0x5271=function(_0x36e70f,_0x393b9c){_0x36e70f=_0x36e70f-0x0;let _0x5271d8=a377_0x393b[_0x36e70f];return _0x5271d8;};const _0x14972=a377_0x5271;'use strict';const Sequelize=require('sequelize'),_=require('lodash'),util=require(_0x14972('0x7'));module[_0x14972('0x4')]={'name':{'type':Sequelize[_0x14972('0x0')],'unique':_0x14972('0x8')},'description':{'type':Sequelize[_0x14972('0x0')]},'formData':{'type':Sequelize['TEXT']('long'),'set':function(_0xe203ad){const _0x8dd69e=_0x14972;if(_['isObjectLike'](_0xe203ad))this[_0x8dd69e('0x9')](_0x8dd69e('0xb'),JSON[_0x8dd69e('0x1')](_0xe203ad));else _[_0x8dd69e('0x5')](_0xe203ad)?this[_0x8dd69e('0x9')](_0x8dd69e('0xb'),_0xe203ad):this[_0x8dd69e('0x9')]('formData',util[_0x8dd69e('0x2')](_0x8dd69e('0xa'),this[_0x8dd69e('0x6')](_0x8dd69e('0x8'))||'',this[_0x8dd69e('0x6')]('description')||''));}},'enableUncompleteSave':{'type':Sequelize[_0x14972('0x3')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x14972('0x3')],'defaultValue':![]}}; \ No newline at end of file +const a377_0x1c98=['getDataValue','sequelize','util','stringify','format','isObjectLike','isString','{\x22name\x22:\x22%s\x22,\x22description\x22:\x22%s\x22,\x22pages\x22:[]}','TEXT','setDataValue','BOOLEAN','exports','formData','long','name','STRING'];(function(_0x24da4d,_0x1c989a){const _0x5e2340=function(_0x4f8ade){while(--_0x4f8ade){_0x24da4d['push'](_0x24da4d['shift']());}};_0x5e2340(++_0x1c989a);}(a377_0x1c98,0x10b));const a377_0x5e23=function(_0x24da4d,_0x1c989a){_0x24da4d=_0x24da4d-0x0;let _0x5e2340=a377_0x1c98[_0x24da4d];return _0x5e2340;};const _0x6e1e84=a377_0x5e23;'use strict';const Sequelize=require(_0x6e1e84('0x6')),_=require('lodash'),util=require(_0x6e1e84('0x7'));module[_0x6e1e84('0x0')]={'name':{'type':Sequelize[_0x6e1e84('0x4')],'unique':_0x6e1e84('0x3')},'description':{'type':Sequelize['STRING']},'formData':{'type':Sequelize[_0x6e1e84('0xd')](_0x6e1e84('0x2')),'set':function(_0x4f8ade){const _0x529645=_0x6e1e84;if(_[_0x529645('0xa')](_0x4f8ade))this[_0x529645('0xe')]('formData',JSON[_0x529645('0x8')](_0x4f8ade));else _[_0x529645('0xb')](_0x4f8ade)?this[_0x529645('0xe')]('formData',_0x4f8ade):this[_0x529645('0xe')](_0x529645('0x1'),util[_0x529645('0x9')](_0x529645('0xc'),this[_0x529645('0x5')]('name')||'',this['getDataValue']('description')||''));}},'enableUncompleteSave':{'type':Sequelize[_0x6e1e84('0xf')],'defaultValue':!![]},'sendUnpauseOnSubmit':{'type':Sequelize[_0x6e1e84('0xf')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.controller.js b/server/api/jscriptyProject/jscriptyProject.controller.js index 11186dd..dfe9c72 100644 --- a/server/api/jscriptyProject/jscriptyProject.controller.js +++ b/server/api/jscriptyProject/jscriptyProject.controller.js @@ -1 +1 @@ -const a378_0xaef1=['/tmp/Jscripty_Project_%d_Summary_%s.csv','nolimit','ProjectId','name','keys','update','get','map','query','parse','question','json','questionId','findAll','params','then','startTime','model','../../config/logger','body','updatedAt','format','UserProfileResource','getSessions','Content-disposition','create','indexOf','sort','type','set','status','../../mysqldb','JscriptySessionReport','SessionId','download','JscriptyAnswerReport','pick','merge','clone','stack','attributes','key','send','role','Jscripty_Project_%d_Summary_%s.csv','UserProfileSection','undefined','omit','JscriptyProject','filter','fieldName','index','Content-Range','like','rawAttributes','sequelize','VIRTUAL','length','user','getAnswers','rows','count','where','userProfileId','attachment;\x20filename=','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','text/csv','createdAt','Unable\x20to\x20retrieve\x20the\x20current\x20user','catch','isEmpty','includeAll','fromCharCode','offset','Projects','toString','include','options','util','JscriptyQuestionReport','destroy','sendStatus','Content-type','error','answer','autoAssociation','limit','filters','findOne','number','fields','setHeader','intersection','order','moment','starttime'];(function(_0x4bfa0c,_0xaef120){const _0x278dba=function(_0x591337){while(--_0x591337){_0x4bfa0c['push'](_0x4bfa0c['shift']());}};_0x278dba(++_0xaef120);}(a378_0xaef1,0x164));const a378_0x278d=function(_0x4bfa0c,_0xaef120){_0x4bfa0c=_0x4bfa0c-0x0;let _0x278dba=a378_0xaef1[_0x4bfa0c];return _0x278dba;};const _0x574136=a378_0x278d;'use strict';const moment=require(_0x574136('0x1a')),util=require(_0x574136('0xa')),fs=require('fs'),_=require('lodash'),toCsv=require('to-csv'),qs=require('../../components/parsers/qs'),logger=require(_0x574136('0x2e'))('api'),db=require(_0x574136('0x3b'))['db'],{Op}=require(_0x574136('0x53'));function respondWithResult(_0x591337,_0x4fd27d){return _0x4fd27d=_0x4fd27d||0xc8,function(_0x1a9e40){const _0x25f713=a378_0x278d;if(_0x1a9e40)return _0x591337[_0x25f713('0x3a')](_0x4fd27d)[_0x25f713('0x27')](_0x1a9e40);};}function respondWithFilteredResult(_0x207b92,_0x2d9d2d){return function(_0x4c303b){const _0x4b0af3=a378_0x278d;if(_0x4c303b){const _0x2c4863=_0x4c303b[_0x4b0af3('0x59')],_0x2f8341=_0x2d9d2d['offset'];let _0x385cfa=_0x2d9d2d[_0x4b0af3('0x5')]+_0x2d9d2d['limit'],_0x560534;return _0x385cfa>=_0x2c4863?(_0x385cfa=_0x2c4863,_0x560534=0xc8):_0x560534=0xce,_0x207b92[_0x4b0af3('0x3a')](_0x560534),_0x207b92[_0x4b0af3('0x39')](_0x4b0af3('0x50'),_0x2f8341+'-'+_0x385cfa+'/'+_0x2c4863)[_0x4b0af3('0x27')](_0x4c303b);}return null;};}function saveUpdates(_0x1fbd90){return function(_0x4933d1){const _0x51f5f3=a378_0x278d;if(_0x4933d1)return _0x4933d1[_0x51f5f3('0x21')](_0x1fbd90)[_0x51f5f3('0x2b')](function(_0x304b03){return _0x304b03;});return null;};}function removeEntity(_0x45ebc9){return function(_0x20d787){const _0x275440=a378_0x278d;if(_0x20d787)return _0x20d787[_0x275440('0xc')]()[_0x275440('0x2b')](function(){const _0x3901b4=_0x275440,_0x3c5a24=_0x20d787[_0x3901b4('0x22')]({'plain':!![]}),_0x42ec61=_0x3901b4('0x6');return db['UserProfileResource'][_0x3901b4('0xc')]({'where':{'type':_0x42ec61,'resourceId':_0x3c5a24['id']}})['then'](function(){return _0x20d787;});})[_0x275440('0x2b')](function(){_0x45ebc9['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x29cb86){return function(_0x5cad16){const _0xc5c9ca=a378_0x278d;return!_0x5cad16&&_0x29cb86[_0xc5c9ca('0xd')](0x194),_0x5cad16;};}function handleError(_0x231950,_0xecac78){return _0xecac78=_0xecac78||0x1f4,function(_0x4a5533){const _0x4be01e=a378_0x278d;logger[_0x4be01e('0xf')](_0x4a5533[_0x4be01e('0x43')]),_0x4a5533[_0x4be01e('0x1f')]&&delete _0x4a5533[_0x4be01e('0x1f')],_0x231950['status'](_0xecac78)[_0x4be01e('0x46')](_0x4a5533);};}exports[_0x574136('0x4f')]=function(_0x8a0be,_0xccc6f4){const _0x3e733b=_0x574136;let _0x20d19a={};const _0x2e0197={},_0x57cb83={'count':0x0,'rows':[]},_0x17e1e9=_['map'](db[_0x3e733b('0x4c')]['rawAttributes'],function(_0x66e76c){const _0x26ca6f=_0x3e733b;return{'name':_0x66e76c[_0x26ca6f('0x4e')],'type':_0x66e76c[_0x26ca6f('0x38')][_0x26ca6f('0x45')]};});_0x2e0197[_0x3e733b('0x2d')]=_[_0x3e733b('0x23')](_0x17e1e9,_0x3e733b('0x1f')),_0x2e0197['query']=_[_0x3e733b('0x20')](_0x8a0be[_0x3e733b('0x24')]),_0x2e0197['filters']=_['intersection'](_0x2e0197['model'],_0x2e0197[_0x3e733b('0x24')]),_0x20d19a[_0x3e733b('0x44')]=_['intersection'](_0x2e0197[_0x3e733b('0x2d')],qs[_0x3e733b('0x16')](_0x8a0be[_0x3e733b('0x24')]['fields'])),_0x20d19a[_0x3e733b('0x44')]=_0x20d19a[_0x3e733b('0x44')]['length']?_0x20d19a[_0x3e733b('0x44')]:_0x2e0197['model'];typeof _0x8a0be[_0x3e733b('0x24')]['nolimit']===_0x3e733b('0x4a')&&(_0x20d19a[_0x3e733b('0x12')]=qs[_0x3e733b('0x12')](_0x8a0be[_0x3e733b('0x24')][_0x3e733b('0x12')]),_0x20d19a[_0x3e733b('0x5')]=qs[_0x3e733b('0x5')](_0x8a0be[_0x3e733b('0x24')]['offset']));_0x20d19a[_0x3e733b('0x19')]=qs[_0x3e733b('0x37')](_0x8a0be[_0x3e733b('0x24')][_0x3e733b('0x37')]),_0x20d19a[_0x3e733b('0x5a')]=qs[_0x3e733b('0x13')](_[_0x3e733b('0x40')](_0x8a0be[_0x3e733b('0x24')],_0x2e0197[_0x3e733b('0x13')]),_0x17e1e9);_0x8a0be[_0x3e733b('0x24')][_0x3e733b('0x4d')]&&(_0x20d19a[_0x3e733b('0x5a')]=_[_0x3e733b('0x41')](_0x20d19a[_0x3e733b('0x5a')],{[Op['or']]:_[_0x3e733b('0x23')](_0x17e1e9,function(_0x3427f4){const _0x5d82bf=_0x3e733b;if(_0x3427f4[_0x5d82bf('0x38')]!==_0x5d82bf('0x54')){const _0x37f6d3={};return _0x37f6d3[_0x3427f4[_0x5d82bf('0x1f')]]={[Op['like']]:'%'+_0x8a0be[_0x5d82bf('0x24')][_0x5d82bf('0x4d')]+'%'},_0x37f6d3;}})}));_0x20d19a=_['merge']({},_0x20d19a,_0x8a0be[_0x3e733b('0x9')]);const _0x2ac819={'where':_0x20d19a['where']};return db[_0x3e733b('0x4c')][_0x3e733b('0x59')](_0x2ac819)[_0x3e733b('0x2b')](function(_0x53ec9e){const _0x21abe6=_0x3e733b;return _0x57cb83['count']=_0x53ec9e,_0x8a0be[_0x21abe6('0x24')]['includeAll']&&(_0x20d19a['include']=[{'all':!![]}]),db['JscriptyProject'][_0x21abe6('0x29')](_0x20d19a);})[_0x3e733b('0x2b')](function(_0x24e60a){const _0x330fb7=_0x3e733b;return _0x57cb83[_0x330fb7('0x58')]=_0x24e60a,_0x57cb83;})[_0x3e733b('0x2b')](respondWithFilteredResult(_0xccc6f4,_0x20d19a))['catch'](handleError(_0xccc6f4,null));},exports['show']=function(_0x1d2f93,_0x421394){const _0x1ad632=_0x574136;let _0x551f67={'raw':![],'where':{'id':_0x1d2f93[_0x1ad632('0x2a')]['id']}};const _0x338491={};return _0x338491[_0x1ad632('0x2d')]=_[_0x1ad632('0x20')](db[_0x1ad632('0x4c')][_0x1ad632('0x52')]),_0x338491[_0x1ad632('0x24')]=_[_0x1ad632('0x20')](_0x1d2f93[_0x1ad632('0x24')]),_0x338491[_0x1ad632('0x13')]=_[_0x1ad632('0x18')](_0x338491[_0x1ad632('0x2d')],_0x338491['query']),_0x551f67[_0x1ad632('0x44')]=_['intersection'](_0x338491[_0x1ad632('0x2d')],qs[_0x1ad632('0x16')](_0x1d2f93['query'][_0x1ad632('0x16')])),_0x551f67[_0x1ad632('0x44')]=_0x551f67[_0x1ad632('0x44')][_0x1ad632('0x55')]?_0x551f67['attributes']:_0x338491['model'],_0x1d2f93[_0x1ad632('0x24')][_0x1ad632('0x3')]&&(_0x551f67[_0x1ad632('0x8')]=[{'all':!![]}]),_0x551f67=_['merge']({},_0x551f67,_0x1d2f93[_0x1ad632('0x9')]),db[_0x1ad632('0x4c')][_0x1ad632('0x14')](_0x551f67)[_0x1ad632('0x2b')](handleEntityNotFound(_0x421394,null))['then'](respondWithResult(_0x421394,null))[_0x1ad632('0x1')](handleError(_0x421394,null));},exports[_0x574136('0x35')]=function(_0x3a79e4,_0x1315d9){const _0x146c4f=_0x574136;return db[_0x146c4f('0x4c')][_0x146c4f('0x35')](_0x3a79e4[_0x146c4f('0x2f')],{})[_0x146c4f('0x2b')](function(_0x23ee57){const _0x50e02d=_0x146c4f,_0x4d371e=_0x3a79e4[_0x50e02d('0x56')]['get']({'plain':!![]});if(!_0x4d371e)throw new Error(_0x50e02d('0x0'));if(_0x4d371e[_0x50e02d('0x47')]===_0x50e02d('0x56')){const _0x505db8=_0x23ee57['get']({'plain':!![]}),_0x5cc503=_0x50e02d('0x6');return db['UserProfileSection'][_0x50e02d('0x14')]({'where':{'name':_0x5cc503,'userProfileId':_0x4d371e['userProfileId']},'raw':!![]})[_0x50e02d('0x2b')](function(_0x2ad727){const _0xf80603=_0x50e02d;return _0x2ad727&&_0x2ad727[_0xf80603('0x11')]===0x0?db[_0xf80603('0x32')][_0xf80603('0x35')]({'name':_0x505db8[_0xf80603('0x1f')],'resourceId':_0x505db8['id'],'type':_0x2ad727[_0xf80603('0x1f')],'sectionId':_0x2ad727['id']},{})[_0xf80603('0x2b')](function(){return _0x23ee57;}):_0x23ee57;})[_0x50e02d('0x1')](function(_0x44bb9e){const _0x3a5693=_0x50e02d;logger[_0x3a5693('0xf')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x44bb9e);throw _0x44bb9e;});}return _0x23ee57;})[_0x146c4f('0x2b')](respondWithResult(_0x1315d9,0xc9))[_0x146c4f('0x1')](handleError(_0x1315d9,null));},exports[_0x574136('0x42')]=function(_0x1ee0a4,_0x6ee524){const _0x2ef2e0=_0x574136;let _0x34b929={'where':{'id':_0x1ee0a4[_0x2ef2e0('0x2a')]['id']}};const _0x5b1530={};return _0x5b1530[_0x2ef2e0('0x2d')]=_[_0x2ef2e0('0x20')](db['JscriptyProject'][_0x2ef2e0('0x52')]),_0x34b929['attributes']=_['intersection'](_0x5b1530['model'],qs['fields'](_0x1ee0a4[_0x2ef2e0('0x24')][_0x2ef2e0('0x16')])),_0x34b929['attributes']=_0x34b929[_0x2ef2e0('0x44')][_0x2ef2e0('0x55')]?_0x34b929[_0x2ef2e0('0x44')]:_0x5b1530[_0x2ef2e0('0x2d')],_0x1ee0a4[_0x2ef2e0('0x24')][_0x2ef2e0('0x3')]&&(_0x34b929[_0x2ef2e0('0x8')]=[{'all':!![]}]),_0x34b929=_[_0x2ef2e0('0x41')]({},_0x34b929,_0x1ee0a4[_0x2ef2e0('0x9')]),db[_0x2ef2e0('0x4c')]['findOne'](_0x34b929)['then'](handleEntityNotFound(_0x6ee524,null))['then'](function(_0x36a692){const _0x3d9280=_0x2ef2e0;if(_0x36a692){let _0x19f7f1=_0x36a692[_0x3d9280('0x22')]({'plain':!![]});return _0x19f7f1=qs['omit'](_0x19f7f1,['id',_0x3d9280('0x5f'),_0x3d9280('0x30')]),_0x1ee0a4[_0x3d9280('0x2f')]=_[_0x3d9280('0x4b')](_0x1ee0a4['body'],['id',_0x3d9280('0x5f'),_0x3d9280('0x30')]),db[_0x3d9280('0x4c')][_0x3d9280('0x35')](_[_0x3d9280('0x41')](_0x19f7f1,_0x1ee0a4[_0x3d9280('0x2f')]),{'include':_0x1ee0a4[_0x3d9280('0x24')]['includeAll']?[{'all':!![]}]:undefined})['then'](function(_0x3de14e){const _0xb51c1c=_0x3d9280,_0x41cf41=_0x1ee0a4['user'][_0xb51c1c('0x22')]({'plain':!![]});if(!_0x41cf41)throw new Error(_0xb51c1c('0x0'));if(_0x41cf41['role']===_0xb51c1c('0x56')){const _0x3c974d=_0x3de14e['get']({'plain':!![]}),_0x39fe43=_0xb51c1c('0x6');return db[_0xb51c1c('0x49')]['findOne']({'where':{'name':_0x39fe43,'userProfileId':_0x41cf41[_0xb51c1c('0x5b')]},'raw':!![]})[_0xb51c1c('0x2b')](function(_0x430f26){const _0x5219bb=_0xb51c1c;return _0x430f26&&_0x430f26[_0x5219bb('0x11')]===0x0?db[_0x5219bb('0x32')][_0x5219bb('0x35')]({'name':_0x3c974d[_0x5219bb('0x1f')],'resourceId':_0x3c974d['id'],'type':_0x430f26[_0x5219bb('0x1f')],'sectionId':_0x430f26['id']},{})[_0x5219bb('0x2b')](function(){return _0x3de14e;}):_0x3de14e;})[_0xb51c1c('0x1')](function(_0x272fe8){const _0x26134d=_0xb51c1c;logger[_0x26134d('0xf')](_0x26134d('0x5d'),_0x272fe8);throw _0x272fe8;});}return _0x3de14e;});}})[_0x2ef2e0('0x2b')](respondWithResult(_0x6ee524,0xc9))[_0x2ef2e0('0x1')](handleError(_0x6ee524,null));},exports['update']=function(_0x3a1078,_0x6bc333){const _0x2e47da=_0x574136;return _0x3a1078['body']['id']&&delete _0x3a1078['body']['id'],db['JscriptyProject'][_0x2e47da('0x14')]({'where':{'id':_0x3a1078[_0x2e47da('0x2a')]['id']}})[_0x2e47da('0x2b')](handleEntityNotFound(_0x6bc333,null))[_0x2e47da('0x2b')](saveUpdates(_0x3a1078['body'],null))[_0x2e47da('0x2b')](respondWithResult(_0x6bc333,null))[_0x2e47da('0x1')](handleError(_0x6bc333,null));},exports['destroy']=function(_0x318d21,_0x390e75){const _0x4ddb1c=_0x574136;return db[_0x4ddb1c('0x4c')]['findOne']({'where':{'id':_0x318d21[_0x4ddb1c('0x2a')]['id']}})[_0x4ddb1c('0x2b')](handleEntityNotFound(_0x390e75,null))[_0x4ddb1c('0x2b')](removeEntity(_0x390e75,null))[_0x4ddb1c('0x1')](handleError(_0x390e75,null));},exports[_0x574136('0x33')]=function(_0x190126,_0x2328d1){const _0x53debd=_0x574136;let _0x9a8512={'raw':!![],'where':{}};const _0x48192d={},_0x4099fc={'count':0x0,'rows':[]};return db[_0x53debd('0x4c')][_0x53debd('0x14')]({'where':{'id':_0x190126[_0x53debd('0x2a')]['id']}})[_0x53debd('0x2b')](handleEntityNotFound(_0x2328d1,null))[_0x53debd('0x2b')](function(_0x1a8f56){const _0x27d3ea=_0x53debd;if(_0x1a8f56)return _0x48192d[_0x27d3ea('0x2d')]=_['keys'](db[_0x27d3ea('0x3c')][_0x27d3ea('0x52')]),_0x48192d[_0x27d3ea('0x24')]=_['keys'](_0x190126['query']),_0x48192d['filters']=_['intersection'](_0x48192d['model'],_0x48192d['query']),_0x9a8512['attributes']=_['intersection'](_0x48192d[_0x27d3ea('0x2d')],qs['fields'](_0x190126['query']['fields'])),_0x9a8512[_0x27d3ea('0x44')]=_0x9a8512['attributes']['length']?_0x9a8512[_0x27d3ea('0x44')]:_0x48192d[_0x27d3ea('0x2d')],typeof _0x190126[_0x27d3ea('0x24')][_0x27d3ea('0x1d')]==='undefined'&&(_0x9a8512[_0x27d3ea('0x12')]=qs[_0x27d3ea('0x12')](_0x190126[_0x27d3ea('0x24')][_0x27d3ea('0x12')]),_0x9a8512['offset']=qs[_0x27d3ea('0x5')](_0x190126[_0x27d3ea('0x24')]['offset'])),_0x9a8512[_0x27d3ea('0x19')]=qs[_0x27d3ea('0x37')](_0x190126[_0x27d3ea('0x24')][_0x27d3ea('0x37')]),_0x9a8512[_0x27d3ea('0x5a')]=qs['filters'](_[_0x27d3ea('0x40')](_0x190126[_0x27d3ea('0x24')],_0x48192d[_0x27d3ea('0x13')])),_0x9a8512[_0x27d3ea('0x5a')][_0x27d3ea('0x1e')]=_0x1a8f56['id'],_0x190126[_0x27d3ea('0x24')][_0x27d3ea('0x4d')]&&(_0x9a8512[_0x27d3ea('0x5a')]=_[_0x27d3ea('0x41')](_0x9a8512['where'],{[Op['or']]:_[_0x27d3ea('0x23')](_0x9a8512['attributes'],function(_0x3a3315){const _0x51d455=_0x27d3ea,_0x58dfac={};return _0x58dfac[_0x3a3315]={[Op[_0x51d455('0x51')]]:'%'+_0x190126['query'][_0x51d455('0x4d')]+'%'},_0x58dfac;})})),_0x9a8512=_[_0x27d3ea('0x41')]({},_0x9a8512,_0x190126[_0x27d3ea('0x9')]),db[_0x27d3ea('0x3c')][_0x27d3ea('0x59')]({'where':_0x9a8512[_0x27d3ea('0x5a')]})['then'](function(_0x13e3ed){const _0x284717=_0x27d3ea;return _0x4099fc[_0x284717('0x59')]=_0x13e3ed,_0x190126['query'][_0x284717('0x3')]&&(_0x9a8512['include']=[{'all':!![]}]),db[_0x284717('0x3c')][_0x284717('0x29')](_0x9a8512);})[_0x27d3ea('0x2b')](function(_0x1c78a9){return _0x4099fc['rows']=_0x1c78a9,_0x4099fc;});})['then'](respondWithFilteredResult(_0x2328d1,_0x9a8512))['catch'](handleError(_0x2328d1,null));},exports[_0x574136('0x57')]=function(_0x570202,_0x461f64){const _0x3f97ba=_0x574136;let _0x579f64={'raw':!![],'where':{}};const _0x2f1aff={},_0x1e69e2={'count':0x0,'rows':[]};return db['JscriptyProject'][_0x3f97ba('0x14')]({'where':{'id':_0x570202[_0x3f97ba('0x2a')]['id']}})[_0x3f97ba('0x2b')](handleEntityNotFound(_0x461f64,null))[_0x3f97ba('0x2b')](function(_0x36fa73){const _0x4fd229=_0x3f97ba;if(_0x36fa73)return _0x2f1aff['model']=_[_0x4fd229('0x20')](db[_0x4fd229('0x3f')]['rawAttributes']),_0x2f1aff['query']=_['keys'](_0x570202[_0x4fd229('0x24')]),_0x2f1aff[_0x4fd229('0x13')]=_[_0x4fd229('0x18')](_0x2f1aff['model'],_0x2f1aff[_0x4fd229('0x24')]),_0x579f64[_0x4fd229('0x44')]=_[_0x4fd229('0x18')](_0x2f1aff[_0x4fd229('0x2d')],qs[_0x4fd229('0x16')](_0x570202[_0x4fd229('0x24')][_0x4fd229('0x16')])),_0x579f64[_0x4fd229('0x44')]=_0x579f64[_0x4fd229('0x44')]['length']?_0x579f64[_0x4fd229('0x44')]:_0x2f1aff[_0x4fd229('0x2d')],typeof _0x570202[_0x4fd229('0x24')]['nolimit']===_0x4fd229('0x4a')&&(_0x579f64[_0x4fd229('0x12')]=qs[_0x4fd229('0x12')](_0x570202[_0x4fd229('0x24')][_0x4fd229('0x12')]),_0x579f64[_0x4fd229('0x5')]=qs[_0x4fd229('0x5')](_0x570202[_0x4fd229('0x24')][_0x4fd229('0x5')])),_0x579f64[_0x4fd229('0x19')]=qs[_0x4fd229('0x37')](_0x570202['query'][_0x4fd229('0x37')]),_0x579f64[_0x4fd229('0x5a')]=qs['filters'](_[_0x4fd229('0x40')](_0x570202[_0x4fd229('0x24')],_0x2f1aff['filters'])),_0x579f64[_0x4fd229('0x5a')][_0x4fd229('0x1e')]=_0x36fa73['id'],_0x570202[_0x4fd229('0x24')][_0x4fd229('0x4d')]&&(_0x579f64[_0x4fd229('0x5a')]=_[_0x4fd229('0x41')](_0x579f64['where'],{[Op['or']]:_['map'](_0x579f64[_0x4fd229('0x44')],function(_0xe5989a){const _0x5b9aff=_0x4fd229,_0x445582={};return _0x445582[_0xe5989a]={[Op[_0x5b9aff('0x51')]]:'%'+_0x570202[_0x5b9aff('0x24')]['filter']+'%'},_0x445582;})})),_0x579f64=_[_0x4fd229('0x41')]({},_0x579f64,_0x570202[_0x4fd229('0x9')]),db[_0x4fd229('0x3f')]['count']({'where':_0x579f64['where']})[_0x4fd229('0x2b')](function(_0x568d97){const _0x3c67f2=_0x4fd229;return _0x1e69e2[_0x3c67f2('0x59')]=_0x568d97,_0x570202['query'][_0x3c67f2('0x3')]&&(_0x579f64[_0x3c67f2('0x8')]=[{'all':!![]}]),db[_0x3c67f2('0x3f')][_0x3c67f2('0x29')](_0x579f64);})[_0x4fd229('0x2b')](function(_0x49c70c){return _0x1e69e2['rows']=_0x49c70c,_0x1e69e2;});})[_0x3f97ba('0x2b')](respondWithFilteredResult(_0x461f64,_0x579f64))[_0x3f97ba('0x1')](handleError(_0x461f64,null));};function char(_0x22348c){const _0x17cbac=_0x574136;return _0x17cbac('0x15')===typeof _0x22348c?String[_0x17cbac('0x4')]['apply'](null,arguments):_0x22348c;}function needsEncapsulation(_0xa9c6c1){const _0x478b1f=_0x574136;return!!_0xa9c6c1&&(_0xa9c6c1[_0x478b1f('0x7')]()[_0x478b1f('0x36')](char(0xd))>=0x0||_0xa9c6c1[_0x478b1f('0x7')]()[_0x478b1f('0x36')](char(0xa))>=0x0||_0xa9c6c1[_0x478b1f('0x7')]()[_0x478b1f('0x36')](char(0x2c))>=0x0||_0xa9c6c1['toString']()[_0x478b1f('0x36')](char(0x22))>=0x0);}function encapsulate(_0x2189d8){const _0x39f587=_0x574136,_0x229f6a=char(0x22),_0x5b8564='\x5c'+char(0x22),_0x5ec7a5=_0x2189d8[_0x39f587('0x7')]()['replace'](new RegExp(_0x229f6a,'g'),_0x5b8564);return _0x229f6a+_0x5ec7a5+_0x229f6a;}exports['getSummary']=function(_0x40ac12,_0x1b33c8){const _0xa2fede=_0x574136;let _0x127ac4,_0x1bdabe;const _0x3d56db={'where':{'ProjectId':_0x40ac12[_0xa2fede('0x2a')]['id']}};return _0x40ac12[_0xa2fede('0x24')][_0xa2fede('0x2c')]&&(_0x3d56db[_0xa2fede('0x5a')][_0xa2fede('0x1b')]=JSON[_0xa2fede('0x25')](_0x40ac12[_0xa2fede('0x24')][_0xa2fede('0x2c')])),db[_0xa2fede('0x3c')][_0xa2fede('0x29')](_0x3d56db)['then'](handleEntityNotFound(_0x1b33c8,null))['then'](function(_0x2d1077){const _0x14f276=_0xa2fede;if(_0x2d1077)return _0x127ac4=_0x2d1077,db[_0x14f276('0xb')][_0x14f276('0x29')]({'where':{'SessionId':{[Op['in']]:_[_0x14f276('0x23')](_0x127ac4,'id')},'ProjectId':_0x40ac12[_0x14f276('0x2a')]['id']},'order':'-createdAt'});})['then'](handleEntityNotFound(_0x1b33c8,null))[_0xa2fede('0x2b')](function(_0x1670c3){const _0x212534=_0xa2fede;if(_0x1670c3){_0x1bdabe=_0x1670c3;const _0x3b01a3={};for(let _0x2da4d4=0x0,_0x2096a3=_0x1bdabe[_0x212534('0x55')];_0x2da4d4<_0x2096a3;_0x2da4d4++){typeof _0x3b01a3[_0x1bdabe[_0x2da4d4]['questionId']]===_0x212534('0x4a')&&(_0x3b01a3[_0x1bdabe[_0x2da4d4][_0x212534('0x28')]]=needsEncapsulation(_0x1bdabe[_0x2da4d4][_0x212534('0x26')])?encapsulate(_0x1bdabe[_0x2da4d4][_0x212534('0x26')]):_0x1bdabe[_0x2da4d4][_0x212534('0x26')]);}const _0x24c9f6=[];let _0xbf23ec={};for(let _0x4a3992=0x0,_0xfd8655=_0x127ac4['length'];_0x4a3992<_0xfd8655;_0x4a3992++){_0xbf23ec={'ProjectId':_0x40ac12[_0x212534('0x2a')]['id'],'SessionId':_0x127ac4[_0x4a3992]['id'],'StartTime':moment(_0x127ac4[_0x4a3992][_0x212534('0x1b')])['format']('YYYY-MM-DD\x20HH:mm:ss')};for(let _0x57e1b7=0x0,_0x22427e=_0x1bdabe[_0x212534('0x55')];_0x57e1b7<_0x22427e;_0x57e1b7++){_0x1bdabe[_0x57e1b7][_0x212534('0x3d')]===_0x127ac4[_0x4a3992]['id']&&typeof _0x3b01a3[_0x1bdabe[_0x57e1b7][_0x212534('0x28')]]!==_0x212534('0x4a')&&(_0xbf23ec[_0x3b01a3[_0x1bdabe[_0x57e1b7][_0x212534('0x28')]]]=_0x1bdabe[_0x57e1b7][_0x212534('0x10')]);}for(const _0x498a32 in _0x3b01a3){typeof _0xbf23ec[_0x3b01a3[_0x498a32]]===_0x212534('0x4a')&&(_0xbf23ec[_0x3b01a3[_0x498a32]]=null);}_0x24c9f6['push'](_0xbf23ec);}return _0x24c9f6;}})[_0xa2fede('0x2b')](function(_0x50f1c8){const _0x212b0b=_0xa2fede;if(!_[_0x212b0b('0x2')](_0x50f1c8)){const _0x56121a=toCsv(_0x50f1c8),_0x585879=Date['now']();return fs['writeFileSync'](util[_0x212b0b('0x31')](_0x212b0b('0x1c'),_0x40ac12[_0x212b0b('0x2a')]['id'],_0x585879),_0x56121a),_0x1b33c8['setHeader'](_0x212b0b('0x34'),_0x212b0b('0x5c')+util[_0x212b0b('0x31')](_0x212b0b('0x48'),_0x40ac12[_0x212b0b('0x2a')]['id'],_0x585879)),_0x1b33c8[_0x212b0b('0x17')](_0x212b0b('0xe'),_0x212b0b('0x5e')),_0x1b33c8[_0x212b0b('0x3e')](util['format'](_0x212b0b('0x1c'),_0x40ac12['params']['id'],_0x585879));}else return _0x1b33c8[_0x212b0b('0xd')](0xcc);})['catch'](handleError(_0x1b33c8,null));}; \ No newline at end of file +const a378_0x35ff=['format','key','findOne','length','update','-createdAt','body','apply','error','undefined','index','include','toString','VIRTUAL','autoAssociation','UserProfileSection','sendStatus','omit','catch','util','params','name','fromCharCode','number','keys','create','userProfileId','createdAt','destroy','json','Jscripty_Project_%d_Summary_%s.csv','send','query','Content-disposition','text/csv','role','SessionId','Projects','pick','JscriptyProject','offset','questionId','parse','limit','rows','merge','options','includeAll','getSessions','isEmpty','filter','answer','now','order','lodash','intersection','status','type','get','map','to-csv','YYYY-MM-DD\x20HH:mm:ss','UserProfileResource','indexOf','sort','updatedAt','attributes','getSummary','filters','JscriptySessionReport','fields','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../mysqldb','nolimit','where','JscriptyAnswerReport','Content-Range','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','rawAttributes','JscriptyQuestionReport','writeFileSync','then','api','ProjectId','clone','setHeader','startTime','question','count','starttime','like','/tmp/Jscripty_Project_%d_Summary_%s.csv','model','findAll','sequelize'];(function(_0x5c130b,_0x35ff27){const _0x331688=function(_0x196dae){while(--_0x196dae){_0x5c130b['push'](_0x5c130b['shift']());}};_0x331688(++_0x35ff27);}(a378_0x35ff,0xb7));const a378_0x3316=function(_0x5c130b,_0x35ff27){_0x5c130b=_0x5c130b-0x0;let _0x331688=a378_0x35ff[_0x5c130b];return _0x331688;};const _0x4c8777=a378_0x3316;'use strict';const moment=require('moment'),util=require(_0x4c8777('0x1c')),fs=require('fs'),_=require(_0x4c8777('0x3f')),toCsv=require(_0x4c8777('0x45')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x4c8777('0x5c')),db=require(_0x4c8777('0x51'))['db'],{Op}=require(_0x4c8777('0x8'));function respondWithResult(_0x196dae,_0x416e71){return _0x416e71=_0x416e71||0xc8,function(_0x5a5482){const _0x3b31f0=a378_0x3316;if(_0x5a5482)return _0x196dae['status'](_0x416e71)[_0x3b31f0('0x26')](_0x5a5482);};}function respondWithFilteredResult(_0x4c6d96,_0x2c0f84){return function(_0x82561e){const _0x25b9bc=a378_0x3316;if(_0x82561e){const _0x3fabee=_0x82561e[_0x25b9bc('0x2')],_0x46b211=_0x2c0f84[_0x25b9bc('0x31')];let _0x32dbb7=_0x2c0f84['offset']+_0x2c0f84[_0x25b9bc('0x34')],_0xc823bb;return _0x32dbb7>=_0x3fabee?(_0x32dbb7=_0x3fabee,_0xc823bb=0xc8):_0xc823bb=0xce,_0x4c6d96[_0x25b9bc('0x41')](_0xc823bb),_0x4c6d96['set'](_0x25b9bc('0x55'),_0x46b211+'-'+_0x32dbb7+'/'+_0x3fabee)['json'](_0x82561e);}return null;};}function saveUpdates(_0x3adf64){return function(_0x3dd77e){const _0x45e635=a378_0x3316;if(_0x3dd77e)return _0x3dd77e[_0x45e635('0xd')](_0x3adf64)[_0x45e635('0x5b')](function(_0x9a3867){return _0x9a3867;});return null;};}function removeEntity(_0x3a8317){return function(_0x217303){const _0x434202=a378_0x3316;if(_0x217303)return _0x217303[_0x434202('0x25')]()['then'](function(){const _0x225be9=_0x434202,_0x42dec8=_0x217303['get']({'plain':!![]}),_0x13750b=_0x225be9('0x2e');return db[_0x225be9('0x47')][_0x225be9('0x25')]({'where':{'type':_0x13750b,'resourceId':_0x42dec8['id']}})[_0x225be9('0x5b')](function(){return _0x217303;});})[_0x434202('0x5b')](function(){_0x3a8317['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x5d3dd7){return function(_0x11d171){const _0x4e994d=a378_0x3316;return!_0x11d171&&_0x5d3dd7[_0x4e994d('0x19')](0x194),_0x11d171;};}function handleError(_0x15a94b,_0xbe04ab){return _0xbe04ab=_0xbe04ab||0x1f4,function(_0x1514c1){const _0x47eb4e=a378_0x3316;logger[_0x47eb4e('0x11')](_0x1514c1['stack']),_0x1514c1[_0x47eb4e('0x1e')]&&delete _0x1514c1[_0x47eb4e('0x1e')],_0x15a94b['status'](_0xbe04ab)[_0x47eb4e('0x28')](_0x1514c1);};}exports[_0x4c8777('0x13')]=function(_0x3c2c50,_0x2466b7){const _0x206d27=_0x4c8777;let _0x165a20={};const _0x1c100c={},_0x3b6345={'count':0x0,'rows':[]},_0x275212=_['map'](db['JscriptyProject'][_0x206d27('0x58')],function(_0x637128){const _0x4ec6c9=_0x206d27;return{'name':_0x637128['fieldName'],'type':_0x637128[_0x4ec6c9('0x42')][_0x4ec6c9('0xa')]};});_0x1c100c[_0x206d27('0x6')]=_[_0x206d27('0x44')](_0x275212,_0x206d27('0x1e')),_0x1c100c[_0x206d27('0x29')]=_[_0x206d27('0x21')](_0x3c2c50[_0x206d27('0x29')]),_0x1c100c[_0x206d27('0x4d')]=_[_0x206d27('0x40')](_0x1c100c[_0x206d27('0x6')],_0x1c100c['query']),_0x165a20[_0x206d27('0x4b')]=_[_0x206d27('0x40')](_0x1c100c[_0x206d27('0x6')],qs['fields'](_0x3c2c50[_0x206d27('0x29')][_0x206d27('0x4f')])),_0x165a20['attributes']=_0x165a20[_0x206d27('0x4b')][_0x206d27('0xc')]?_0x165a20[_0x206d27('0x4b')]:_0x1c100c[_0x206d27('0x6')];typeof _0x3c2c50['query']['nolimit']===_0x206d27('0x12')&&(_0x165a20[_0x206d27('0x34')]=qs['limit'](_0x3c2c50[_0x206d27('0x29')][_0x206d27('0x34')]),_0x165a20[_0x206d27('0x31')]=qs[_0x206d27('0x31')](_0x3c2c50[_0x206d27('0x29')][_0x206d27('0x31')]));_0x165a20[_0x206d27('0x3e')]=qs[_0x206d27('0x49')](_0x3c2c50[_0x206d27('0x29')][_0x206d27('0x49')]),_0x165a20[_0x206d27('0x53')]=qs['filters'](_[_0x206d27('0x2f')](_0x3c2c50[_0x206d27('0x29')],_0x1c100c[_0x206d27('0x4d')]),_0x275212);_0x3c2c50['query'][_0x206d27('0x3b')]&&(_0x165a20[_0x206d27('0x53')]=_[_0x206d27('0x36')](_0x165a20[_0x206d27('0x53')],{[Op['or']]:_['map'](_0x275212,function(_0x15fce9){const _0x28afe6=_0x206d27;if(_0x15fce9[_0x28afe6('0x42')]!==_0x28afe6('0x16')){const _0x2da989={};return _0x2da989[_0x15fce9[_0x28afe6('0x1e')]]={[Op[_0x28afe6('0x4')]]:'%'+_0x3c2c50[_0x28afe6('0x29')][_0x28afe6('0x3b')]+'%'},_0x2da989;}})}));_0x165a20=_[_0x206d27('0x36')]({},_0x165a20,_0x3c2c50[_0x206d27('0x37')]);const _0x195a66={'where':_0x165a20[_0x206d27('0x53')]};return db[_0x206d27('0x30')][_0x206d27('0x2')](_0x195a66)[_0x206d27('0x5b')](function(_0xcd9ec1){const _0x5202cf=_0x206d27;return _0x3b6345[_0x5202cf('0x2')]=_0xcd9ec1,_0x3c2c50[_0x5202cf('0x29')][_0x5202cf('0x38')]&&(_0x165a20[_0x5202cf('0x14')]=[{'all':!![]}]),db[_0x5202cf('0x30')]['findAll'](_0x165a20);})[_0x206d27('0x5b')](function(_0x424178){const _0x34c4d8=_0x206d27;return _0x3b6345[_0x34c4d8('0x35')]=_0x424178,_0x3b6345;})[_0x206d27('0x5b')](respondWithFilteredResult(_0x2466b7,_0x165a20))[_0x206d27('0x1b')](handleError(_0x2466b7,null));},exports['show']=function(_0x1469ba,_0x2e40c0){const _0x49fbb7=_0x4c8777;let _0x4179d3={'raw':![],'where':{'id':_0x1469ba[_0x49fbb7('0x1d')]['id']}};const _0x216681={};return _0x216681[_0x49fbb7('0x6')]=_[_0x49fbb7('0x21')](db[_0x49fbb7('0x30')][_0x49fbb7('0x58')]),_0x216681[_0x49fbb7('0x29')]=_[_0x49fbb7('0x21')](_0x1469ba['query']),_0x216681[_0x49fbb7('0x4d')]=_[_0x49fbb7('0x40')](_0x216681[_0x49fbb7('0x6')],_0x216681[_0x49fbb7('0x29')]),_0x4179d3[_0x49fbb7('0x4b')]=_[_0x49fbb7('0x40')](_0x216681['model'],qs['fields'](_0x1469ba[_0x49fbb7('0x29')][_0x49fbb7('0x4f')])),_0x4179d3['attributes']=_0x4179d3[_0x49fbb7('0x4b')][_0x49fbb7('0xc')]?_0x4179d3[_0x49fbb7('0x4b')]:_0x216681[_0x49fbb7('0x6')],_0x1469ba[_0x49fbb7('0x29')][_0x49fbb7('0x38')]&&(_0x4179d3[_0x49fbb7('0x14')]=[{'all':!![]}]),_0x4179d3=_[_0x49fbb7('0x36')]({},_0x4179d3,_0x1469ba[_0x49fbb7('0x37')]),db['JscriptyProject'][_0x49fbb7('0xb')](_0x4179d3)[_0x49fbb7('0x5b')](handleEntityNotFound(_0x2e40c0,null))[_0x49fbb7('0x5b')](respondWithResult(_0x2e40c0,null))[_0x49fbb7('0x1b')](handleError(_0x2e40c0,null));},exports[_0x4c8777('0x22')]=function(_0x5dd2a1,_0x26d1a5){const _0x588f6f=_0x4c8777;return db['JscriptyProject'][_0x588f6f('0x22')](_0x5dd2a1['body'],{})[_0x588f6f('0x5b')](function(_0x35d48b){const _0x1784b9=_0x588f6f,_0x5b5a9f=_0x5dd2a1[_0x1784b9('0x56')][_0x1784b9('0x43')]({'plain':!![]});if(!_0x5b5a9f)throw new Error(_0x1784b9('0x57'));if(_0x5b5a9f[_0x1784b9('0x2c')]===_0x1784b9('0x56')){const _0x81fdb8=_0x35d48b[_0x1784b9('0x43')]({'plain':!![]}),_0x5ba604=_0x1784b9('0x2e');return db['UserProfileSection'][_0x1784b9('0xb')]({'where':{'name':_0x5ba604,'userProfileId':_0x5b5a9f[_0x1784b9('0x23')]},'raw':!![]})[_0x1784b9('0x5b')](function(_0x4177fc){const _0xb81b0=_0x1784b9;return _0x4177fc&&_0x4177fc[_0xb81b0('0x17')]===0x0?db[_0xb81b0('0x47')]['create']({'name':_0x81fdb8[_0xb81b0('0x1e')],'resourceId':_0x81fdb8['id'],'type':_0x4177fc['name'],'sectionId':_0x4177fc['id']},{})['then'](function(){return _0x35d48b;}):_0x35d48b;})[_0x1784b9('0x1b')](function(_0x5efefb){const _0x40d2e1=_0x1784b9;logger[_0x40d2e1('0x11')](_0x40d2e1('0x50'),_0x5efefb);throw _0x5efefb;});}return _0x35d48b;})[_0x588f6f('0x5b')](respondWithResult(_0x26d1a5,0xc9))[_0x588f6f('0x1b')](handleError(_0x26d1a5,null));},exports[_0x4c8777('0x5e')]=function(_0x322090,_0x38afab){const _0x4086d4=_0x4c8777;let _0x1a1587={'where':{'id':_0x322090['params']['id']}};const _0x5dccb9={};return _0x5dccb9[_0x4086d4('0x6')]=_[_0x4086d4('0x21')](db['JscriptyProject'][_0x4086d4('0x58')]),_0x1a1587[_0x4086d4('0x4b')]=_[_0x4086d4('0x40')](_0x5dccb9[_0x4086d4('0x6')],qs[_0x4086d4('0x4f')](_0x322090[_0x4086d4('0x29')][_0x4086d4('0x4f')])),_0x1a1587[_0x4086d4('0x4b')]=_0x1a1587[_0x4086d4('0x4b')]['length']?_0x1a1587[_0x4086d4('0x4b')]:_0x5dccb9[_0x4086d4('0x6')],_0x322090['query'][_0x4086d4('0x38')]&&(_0x1a1587[_0x4086d4('0x14')]=[{'all':!![]}]),_0x1a1587=_[_0x4086d4('0x36')]({},_0x1a1587,_0x322090['options']),db[_0x4086d4('0x30')][_0x4086d4('0xb')](_0x1a1587)[_0x4086d4('0x5b')](handleEntityNotFound(_0x38afab,null))['then'](function(_0x1e33a6){const _0x452f22=_0x4086d4;if(_0x1e33a6){let _0x1c122e=_0x1e33a6[_0x452f22('0x43')]({'plain':!![]});return _0x1c122e=qs[_0x452f22('0x1a')](_0x1c122e,['id','createdAt',_0x452f22('0x4a')]),_0x322090[_0x452f22('0xf')]=_[_0x452f22('0x1a')](_0x322090[_0x452f22('0xf')],['id',_0x452f22('0x24'),_0x452f22('0x4a')]),db[_0x452f22('0x30')][_0x452f22('0x22')](_['merge'](_0x1c122e,_0x322090[_0x452f22('0xf')]),{'include':_0x322090['query'][_0x452f22('0x38')]?[{'all':!![]}]:undefined})[_0x452f22('0x5b')](function(_0x52b6d6){const _0x2446f2=_0x452f22,_0x39db81=_0x322090[_0x2446f2('0x56')]['get']({'plain':!![]});if(!_0x39db81)throw new Error(_0x2446f2('0x57'));if(_0x39db81['role']===_0x2446f2('0x56')){const _0x4b5ad5=_0x52b6d6[_0x2446f2('0x43')]({'plain':!![]}),_0x342313=_0x2446f2('0x2e');return db[_0x2446f2('0x18')]['findOne']({'where':{'name':_0x342313,'userProfileId':_0x39db81[_0x2446f2('0x23')]},'raw':!![]})[_0x2446f2('0x5b')](function(_0x277ee8){const _0x5cbf50=_0x2446f2;return _0x277ee8&&_0x277ee8[_0x5cbf50('0x17')]===0x0?db[_0x5cbf50('0x47')][_0x5cbf50('0x22')]({'name':_0x4b5ad5[_0x5cbf50('0x1e')],'resourceId':_0x4b5ad5['id'],'type':_0x277ee8['name'],'sectionId':_0x277ee8['id']},{})['then'](function(){return _0x52b6d6;}):_0x52b6d6;})[_0x2446f2('0x1b')](function(_0xb97072){const _0xaca370=_0x2446f2;logger[_0xaca370('0x11')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xb97072);throw _0xb97072;});}return _0x52b6d6;});}})['then'](respondWithResult(_0x38afab,0xc9))['catch'](handleError(_0x38afab,null));},exports[_0x4c8777('0xd')]=function(_0xf19c11,_0x6e89eb){const _0x1cc0a3=_0x4c8777;return _0xf19c11['body']['id']&&delete _0xf19c11[_0x1cc0a3('0xf')]['id'],db['JscriptyProject'][_0x1cc0a3('0xb')]({'where':{'id':_0xf19c11[_0x1cc0a3('0x1d')]['id']}})[_0x1cc0a3('0x5b')](handleEntityNotFound(_0x6e89eb,null))[_0x1cc0a3('0x5b')](saveUpdates(_0xf19c11['body'],null))['then'](respondWithResult(_0x6e89eb,null))[_0x1cc0a3('0x1b')](handleError(_0x6e89eb,null));},exports['destroy']=function(_0x1121c4,_0x57d4b5){const _0x313830=_0x4c8777;return db[_0x313830('0x30')][_0x313830('0xb')]({'where':{'id':_0x1121c4[_0x313830('0x1d')]['id']}})[_0x313830('0x5b')](handleEntityNotFound(_0x57d4b5,null))[_0x313830('0x5b')](removeEntity(_0x57d4b5,null))['catch'](handleError(_0x57d4b5,null));},exports[_0x4c8777('0x39')]=function(_0x45cb38,_0x446668){const _0x497fcc=_0x4c8777;let _0x22a7e8={'raw':!![],'where':{}};const _0x2b1856={},_0x54789d={'count':0x0,'rows':[]};return db[_0x497fcc('0x30')][_0x497fcc('0xb')]({'where':{'id':_0x45cb38[_0x497fcc('0x1d')]['id']}})[_0x497fcc('0x5b')](handleEntityNotFound(_0x446668,null))[_0x497fcc('0x5b')](function(_0x1031cf){const _0x4904de=_0x497fcc;if(_0x1031cf)return _0x2b1856[_0x4904de('0x6')]=_[_0x4904de('0x21')](db[_0x4904de('0x4e')]['rawAttributes']),_0x2b1856[_0x4904de('0x29')]=_['keys'](_0x45cb38['query']),_0x2b1856[_0x4904de('0x4d')]=_['intersection'](_0x2b1856[_0x4904de('0x6')],_0x2b1856[_0x4904de('0x29')]),_0x22a7e8[_0x4904de('0x4b')]=_[_0x4904de('0x40')](_0x2b1856[_0x4904de('0x6')],qs[_0x4904de('0x4f')](_0x45cb38[_0x4904de('0x29')][_0x4904de('0x4f')])),_0x22a7e8[_0x4904de('0x4b')]=_0x22a7e8[_0x4904de('0x4b')][_0x4904de('0xc')]?_0x22a7e8['attributes']:_0x2b1856[_0x4904de('0x6')],typeof _0x45cb38['query'][_0x4904de('0x52')]==='undefined'&&(_0x22a7e8[_0x4904de('0x34')]=qs[_0x4904de('0x34')](_0x45cb38[_0x4904de('0x29')]['limit']),_0x22a7e8['offset']=qs[_0x4904de('0x31')](_0x45cb38[_0x4904de('0x29')]['offset'])),_0x22a7e8['order']=qs[_0x4904de('0x49')](_0x45cb38[_0x4904de('0x29')][_0x4904de('0x49')]),_0x22a7e8['where']=qs[_0x4904de('0x4d')](_[_0x4904de('0x2f')](_0x45cb38['query'],_0x2b1856[_0x4904de('0x4d')])),_0x22a7e8[_0x4904de('0x53')][_0x4904de('0x5d')]=_0x1031cf['id'],_0x45cb38[_0x4904de('0x29')]['filter']&&(_0x22a7e8[_0x4904de('0x53')]=_['merge'](_0x22a7e8['where'],{[Op['or']]:_[_0x4904de('0x44')](_0x22a7e8['attributes'],function(_0x4e4453){const _0xa0a56e=_0x4904de,_0x1a1bb7={};return _0x1a1bb7[_0x4e4453]={[Op[_0xa0a56e('0x4')]]:'%'+_0x45cb38['query'][_0xa0a56e('0x3b')]+'%'},_0x1a1bb7;})})),_0x22a7e8=_[_0x4904de('0x36')]({},_0x22a7e8,_0x45cb38['options']),db[_0x4904de('0x4e')][_0x4904de('0x2')]({'where':_0x22a7e8[_0x4904de('0x53')]})['then'](function(_0x1a1a8a){const _0x446100=_0x4904de;return _0x54789d[_0x446100('0x2')]=_0x1a1a8a,_0x45cb38[_0x446100('0x29')][_0x446100('0x38')]&&(_0x22a7e8[_0x446100('0x14')]=[{'all':!![]}]),db[_0x446100('0x4e')][_0x446100('0x7')](_0x22a7e8);})['then'](function(_0x13fd4b){const _0x461bc9=_0x4904de;return _0x54789d[_0x461bc9('0x35')]=_0x13fd4b,_0x54789d;});})['then'](respondWithFilteredResult(_0x446668,_0x22a7e8))[_0x497fcc('0x1b')](handleError(_0x446668,null));},exports['getAnswers']=function(_0x3b0a91,_0x3087cd){const _0x438cec=_0x4c8777;let _0x137f14={'raw':!![],'where':{}};const _0x2d9ac3={},_0x34fbd2={'count':0x0,'rows':[]};return db['JscriptyProject'][_0x438cec('0xb')]({'where':{'id':_0x3b0a91[_0x438cec('0x1d')]['id']}})['then'](handleEntityNotFound(_0x3087cd,null))['then'](function(_0x3fdba7){const _0x3e3a88=_0x438cec;if(_0x3fdba7)return _0x2d9ac3[_0x3e3a88('0x6')]=_[_0x3e3a88('0x21')](db['JscriptyAnswerReport'][_0x3e3a88('0x58')]),_0x2d9ac3[_0x3e3a88('0x29')]=_[_0x3e3a88('0x21')](_0x3b0a91['query']),_0x2d9ac3[_0x3e3a88('0x4d')]=_[_0x3e3a88('0x40')](_0x2d9ac3[_0x3e3a88('0x6')],_0x2d9ac3[_0x3e3a88('0x29')]),_0x137f14[_0x3e3a88('0x4b')]=_[_0x3e3a88('0x40')](_0x2d9ac3['model'],qs[_0x3e3a88('0x4f')](_0x3b0a91['query'][_0x3e3a88('0x4f')])),_0x137f14['attributes']=_0x137f14[_0x3e3a88('0x4b')]['length']?_0x137f14[_0x3e3a88('0x4b')]:_0x2d9ac3[_0x3e3a88('0x6')],typeof _0x3b0a91['query'][_0x3e3a88('0x52')]===_0x3e3a88('0x12')&&(_0x137f14[_0x3e3a88('0x34')]=qs[_0x3e3a88('0x34')](_0x3b0a91['query'][_0x3e3a88('0x34')]),_0x137f14[_0x3e3a88('0x31')]=qs[_0x3e3a88('0x31')](_0x3b0a91[_0x3e3a88('0x29')][_0x3e3a88('0x31')])),_0x137f14['order']=qs['sort'](_0x3b0a91[_0x3e3a88('0x29')][_0x3e3a88('0x49')]),_0x137f14[_0x3e3a88('0x53')]=qs[_0x3e3a88('0x4d')](_[_0x3e3a88('0x2f')](_0x3b0a91[_0x3e3a88('0x29')],_0x2d9ac3[_0x3e3a88('0x4d')])),_0x137f14[_0x3e3a88('0x53')][_0x3e3a88('0x5d')]=_0x3fdba7['id'],_0x3b0a91[_0x3e3a88('0x29')][_0x3e3a88('0x3b')]&&(_0x137f14[_0x3e3a88('0x53')]=_[_0x3e3a88('0x36')](_0x137f14[_0x3e3a88('0x53')],{[Op['or']]:_[_0x3e3a88('0x44')](_0x137f14[_0x3e3a88('0x4b')],function(_0x48188e){const _0x4d423a=_0x3e3a88,_0x1e38ac={};return _0x1e38ac[_0x48188e]={[Op[_0x4d423a('0x4')]]:'%'+_0x3b0a91[_0x4d423a('0x29')][_0x4d423a('0x3b')]+'%'},_0x1e38ac;})})),_0x137f14=_[_0x3e3a88('0x36')]({},_0x137f14,_0x3b0a91['options']),db['JscriptyAnswerReport'][_0x3e3a88('0x2')]({'where':_0x137f14[_0x3e3a88('0x53')]})[_0x3e3a88('0x5b')](function(_0x1a1344){const _0x557680=_0x3e3a88;return _0x34fbd2['count']=_0x1a1344,_0x3b0a91[_0x557680('0x29')][_0x557680('0x38')]&&(_0x137f14['include']=[{'all':!![]}]),db[_0x557680('0x54')][_0x557680('0x7')](_0x137f14);})[_0x3e3a88('0x5b')](function(_0x51b402){const _0x11d4de=_0x3e3a88;return _0x34fbd2[_0x11d4de('0x35')]=_0x51b402,_0x34fbd2;});})[_0x438cec('0x5b')](respondWithFilteredResult(_0x3087cd,_0x137f14))['catch'](handleError(_0x3087cd,null));};function char(_0x168ff9){const _0x17d8f7=_0x4c8777;return _0x17d8f7('0x20')===typeof _0x168ff9?String[_0x17d8f7('0x1f')][_0x17d8f7('0x10')](null,arguments):_0x168ff9;}function needsEncapsulation(_0x3da47c){const _0x32863c=_0x4c8777;return!!_0x3da47c&&(_0x3da47c[_0x32863c('0x15')]()['indexOf'](char(0xd))>=0x0||_0x3da47c[_0x32863c('0x15')]()[_0x32863c('0x48')](char(0xa))>=0x0||_0x3da47c['toString']()[_0x32863c('0x48')](char(0x2c))>=0x0||_0x3da47c[_0x32863c('0x15')]()['indexOf'](char(0x22))>=0x0);}function encapsulate(_0x31e815){const _0x3d8cdc=_0x4c8777,_0x33086e=char(0x22),_0x21e1d4='\x5c'+char(0x22),_0x40e809=_0x31e815[_0x3d8cdc('0x15')]()['replace'](new RegExp(_0x33086e,'g'),_0x21e1d4);return _0x33086e+_0x40e809+_0x33086e;}exports[_0x4c8777('0x4c')]=function(_0x56d4a5,_0x42a126){const _0x54e84c=_0x4c8777;let _0x4c4259,_0xbf9b91;const _0x3884db={'where':{'ProjectId':_0x56d4a5['params']['id']}};return _0x56d4a5['query'][_0x54e84c('0x0')]&&(_0x3884db[_0x54e84c('0x53')][_0x54e84c('0x3')]=JSON[_0x54e84c('0x33')](_0x56d4a5[_0x54e84c('0x29')]['startTime'])),db['JscriptySessionReport'][_0x54e84c('0x7')](_0x3884db)[_0x54e84c('0x5b')](handleEntityNotFound(_0x42a126,null))[_0x54e84c('0x5b')](function(_0x459624){const _0x294ebe=_0x54e84c;if(_0x459624)return _0x4c4259=_0x459624,db[_0x294ebe('0x59')][_0x294ebe('0x7')]({'where':{'SessionId':{[Op['in']]:_[_0x294ebe('0x44')](_0x4c4259,'id')},'ProjectId':_0x56d4a5[_0x294ebe('0x1d')]['id']},'order':_0x294ebe('0xe')});})[_0x54e84c('0x5b')](handleEntityNotFound(_0x42a126,null))[_0x54e84c('0x5b')](function(_0x16df4c){const _0x4301ca=_0x54e84c;if(_0x16df4c){_0xbf9b91=_0x16df4c;const _0x3d1b0e={};for(let _0x1256b1=0x0,_0x387c73=_0xbf9b91[_0x4301ca('0xc')];_0x1256b1<_0x387c73;_0x1256b1++){typeof _0x3d1b0e[_0xbf9b91[_0x1256b1][_0x4301ca('0x32')]]===_0x4301ca('0x12')&&(_0x3d1b0e[_0xbf9b91[_0x1256b1][_0x4301ca('0x32')]]=needsEncapsulation(_0xbf9b91[_0x1256b1][_0x4301ca('0x1')])?encapsulate(_0xbf9b91[_0x1256b1][_0x4301ca('0x1')]):_0xbf9b91[_0x1256b1][_0x4301ca('0x1')]);}const _0x3c5092=[];let _0x57c256={};for(let _0x8f031d=0x0,_0xac4431=_0x4c4259[_0x4301ca('0xc')];_0x8f031d<_0xac4431;_0x8f031d++){_0x57c256={'ProjectId':_0x56d4a5['params']['id'],'SessionId':_0x4c4259[_0x8f031d]['id'],'StartTime':moment(_0x4c4259[_0x8f031d][_0x4301ca('0x3')])[_0x4301ca('0x9')](_0x4301ca('0x46'))};for(let _0x5ba590=0x0,_0x17c207=_0xbf9b91[_0x4301ca('0xc')];_0x5ba590<_0x17c207;_0x5ba590++){_0xbf9b91[_0x5ba590][_0x4301ca('0x2d')]===_0x4c4259[_0x8f031d]['id']&&typeof _0x3d1b0e[_0xbf9b91[_0x5ba590]['questionId']]!==_0x4301ca('0x12')&&(_0x57c256[_0x3d1b0e[_0xbf9b91[_0x5ba590][_0x4301ca('0x32')]]]=_0xbf9b91[_0x5ba590][_0x4301ca('0x3c')]);}for(const _0xe24e3c in _0x3d1b0e){typeof _0x57c256[_0x3d1b0e[_0xe24e3c]]===_0x4301ca('0x12')&&(_0x57c256[_0x3d1b0e[_0xe24e3c]]=null);}_0x3c5092['push'](_0x57c256);}return _0x3c5092;}})[_0x54e84c('0x5b')](function(_0x384638){const _0x79ba80=_0x54e84c;if(!_[_0x79ba80('0x3a')](_0x384638)){const _0x34dfd7=toCsv(_0x384638),_0x1878be=Date[_0x79ba80('0x3d')]();return fs[_0x79ba80('0x5a')](util['format']('/tmp/Jscripty_Project_%d_Summary_%s.csv',_0x56d4a5[_0x79ba80('0x1d')]['id'],_0x1878be),_0x34dfd7),_0x42a126[_0x79ba80('0x5f')](_0x79ba80('0x2a'),'attachment;\x20filename='+util[_0x79ba80('0x9')](_0x79ba80('0x27'),_0x56d4a5[_0x79ba80('0x1d')]['id'],_0x1878be)),_0x42a126[_0x79ba80('0x5f')]('Content-type',_0x79ba80('0x2b')),_0x42a126['download'](util[_0x79ba80('0x9')](_0x79ba80('0x5'),_0x56d4a5[_0x79ba80('0x1d')]['id'],_0x1878be));}else return _0x42a126[_0x79ba80('0x19')](0xcc);})['catch'](handleError(_0x42a126,null));}; \ No newline at end of file diff --git a/server/api/jscriptyProject/jscriptyProject.model.js b/server/api/jscriptyProject/jscriptyProject.model.js index 70a1a2a..793da13 100644 --- a/server/api/jscriptyProject/jscriptyProject.model.js +++ b/server/api/jscriptyProject/jscriptyProject.model.js @@ -1 +1 @@ -const a379_0x1891=['JscriptyProject','./jscriptyProject.attributes','define','exports'];(function(_0x5718c2,_0x1891bb){const _0x1e6ba1=function(_0x38322a){while(--_0x38322a){_0x5718c2['push'](_0x5718c2['shift']());}};_0x1e6ba1(++_0x1891bb);}(a379_0x1891,0xe1));const a379_0x1e6b=function(_0x5718c2,_0x1891bb){_0x5718c2=_0x5718c2-0x0;let _0x1e6ba1=a379_0x1891[_0x5718c2];return _0x1e6ba1;};const _0x46dfd1=a379_0x1e6b;'use strict';const attributes=require(_0x46dfd1('0x0'));module[_0x46dfd1('0x2')]=function(_0x38322a){const _0x1ecb68=_0x46dfd1,_0x336b59=_0x38322a[_0x1ecb68('0x1')](_0x1ecb68('0x3'),attributes,{'tableName':'jscripty_projects','paranoid':![],'indexes':[],'timestamps':!![]});return _0x336b59;}; \ No newline at end of file +const a379_0x106e=['define','./jscriptyProject.attributes','JscriptyProject','jscripty_projects'];(function(_0x30c253,_0x106efb){const _0x2dff1a=function(_0x2b03dd){while(--_0x2b03dd){_0x30c253['push'](_0x30c253['shift']());}};_0x2dff1a(++_0x106efb);}(a379_0x106e,0x9c));const a379_0x2dff=function(_0x30c253,_0x106efb){_0x30c253=_0x30c253-0x0;let _0x2dff1a=a379_0x106e[_0x30c253];return _0x2dff1a;};const _0x43acd4=a379_0x2dff;'use strict';const attributes=require(_0x43acd4('0x1'));module['exports']=function(_0x2b03dd){const _0x2cccc8=_0x43acd4,_0x35967d=_0x2b03dd[_0x2cccc8('0x0')](_0x2cccc8('0x2'),attributes,{'tableName':_0x2cccc8('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x35967d;}; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/index.js b/server/api/jscriptyQuestionReport/index.js index cbbe1db..23ebeee 100644 --- a/server/api/jscriptyQuestionReport/index.js +++ b/server/api/jscriptyQuestionReport/index.js @@ -1 +1 @@ -const a380_0x8398=['update','put','delete','destroy','/:id','show','isAuthenticated','Router','describe','./jscriptyQuestionReport.controller','get','../../components/auth/service','express','post','create'];(function(_0x279f68,_0x83980e){const _0x246f57=function(_0x6637bf){while(--_0x6637bf){_0x279f68['push'](_0x279f68['shift']());}};_0x246f57(++_0x83980e);}(a380_0x8398,0x17d));const a380_0x246f=function(_0x279f68,_0x83980e){_0x279f68=_0x279f68-0x0;let _0x246f57=a380_0x8398[_0x279f68];return _0x246f57;};const _0x11ecdd=a380_0x246f;'use strict';const express=require(_0x11ecdd('0x6')),router=express[_0x11ecdd('0x1')](),auth=require(_0x11ecdd('0x5')),controller=require(_0x11ecdd('0x3'));router[_0x11ecdd('0x4')]('/',auth[_0x11ecdd('0x0')](),controller['index']),router[_0x11ecdd('0x4')]('/describe',auth[_0x11ecdd('0x0')](),controller[_0x11ecdd('0x2')]),router[_0x11ecdd('0x4')](_0x11ecdd('0xd'),auth[_0x11ecdd('0x0')](),controller[_0x11ecdd('0xe')]),router[_0x11ecdd('0x7')]('/',auth[_0x11ecdd('0x0')](),controller[_0x11ecdd('0x8')]),router[_0x11ecdd('0xa')](_0x11ecdd('0xd'),auth['isAuthenticated'](),controller[_0x11ecdd('0x9')]),router[_0x11ecdd('0xb')](_0x11ecdd('0xd'),auth[_0x11ecdd('0x0')](),controller[_0x11ecdd('0xc')]),module['exports']=router; \ No newline at end of file +const a380_0x90d2=['get','exports','update','/:id','describe','create','put','destroy','express','index','show','Router','isAuthenticated','post'];(function(_0xc27153,_0x90d2d0){const _0x3edfb7=function(_0xd90a9f){while(--_0xd90a9f){_0xc27153['push'](_0xc27153['shift']());}};_0x3edfb7(++_0x90d2d0);}(a380_0x90d2,0x1b2));const a380_0x3edf=function(_0xc27153,_0x90d2d0){_0xc27153=_0xc27153-0x0;let _0x3edfb7=a380_0x90d2[_0xc27153];return _0x3edfb7;};const _0x51fdb0=a380_0x3edf;'use strict';const express=require(_0x51fdb0('0x8')),router=express[_0x51fdb0('0xb')](),auth=require('../../components/auth/service'),controller=require('./jscriptyQuestionReport.controller');router[_0x51fdb0('0x0')]('/',auth[_0x51fdb0('0xc')](),controller[_0x51fdb0('0x9')]),router[_0x51fdb0('0x0')]('/describe',auth['isAuthenticated'](),controller[_0x51fdb0('0x4')]),router['get'](_0x51fdb0('0x3'),auth[_0x51fdb0('0xc')](),controller[_0x51fdb0('0xa')]),router[_0x51fdb0('0xd')]('/',auth['isAuthenticated'](),controller[_0x51fdb0('0x5')]),router[_0x51fdb0('0x6')]('/:id',auth[_0x51fdb0('0xc')](),controller[_0x51fdb0('0x2')]),router['delete'](_0x51fdb0('0x3'),auth[_0x51fdb0('0xc')](),controller[_0x51fdb0('0x7')]),module[_0x51fdb0('0x1')]=router; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js index dbb25e4..89d7e26 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.attributes.js @@ -1 +1 @@ -const a381_0x15be=['STRING','sequelize','TEXT','exports'];(function(_0x882c0d,_0x15be83){const _0x5e3c56=function(_0x44622a){while(--_0x44622a){_0x882c0d['push'](_0x882c0d['shift']());}};_0x5e3c56(++_0x15be83);}(a381_0x15be,0x188));const a381_0x5e3c=function(_0x882c0d,_0x15be83){_0x882c0d=_0x882c0d-0x0;let _0x5e3c56=a381_0x15be[_0x882c0d];return _0x5e3c56;};const _0x285ddc=a381_0x5e3c;'use strict';const Sequelize=require(_0x285ddc('0x1'));module[_0x285ddc('0x3')]={'question':{'type':Sequelize[_0x285ddc('0x0')]},'answer':{'type':Sequelize[_0x285ddc('0x2')]('long')},'membername':{'type':Sequelize['STRING']},'projectname':{'type':Sequelize[_0x285ddc('0x0')]},'queue':{'type':Sequelize[_0x285ddc('0x0')]},'uniqueid':{'type':Sequelize[_0x285ddc('0x0')]},'calleridname':{'type':Sequelize[_0x285ddc('0x0')]},'calleridnum':{'type':Sequelize[_0x285ddc('0x0')]},'questionId':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a381_0x2ed9=['exports','STRING','TEXT'];(function(_0x10ac38,_0x2ed9a2){const _0x181fab=function(_0x557492){while(--_0x557492){_0x10ac38['push'](_0x10ac38['shift']());}};_0x181fab(++_0x2ed9a2);}(a381_0x2ed9,0xfd));const a381_0x181f=function(_0x10ac38,_0x2ed9a2){_0x10ac38=_0x10ac38-0x0;let _0x181fab=a381_0x2ed9[_0x10ac38];return _0x181fab;};const _0x45d92b=a381_0x181f;'use strict';const Sequelize=require('sequelize');module[_0x45d92b('0x2')]={'question':{'type':Sequelize[_0x45d92b('0x0')]},'answer':{'type':Sequelize[_0x45d92b('0x1')]('long')},'membername':{'type':Sequelize[_0x45d92b('0x0')]},'projectname':{'type':Sequelize[_0x45d92b('0x0')]},'queue':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x45d92b('0x0')]},'calleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x45d92b('0x0')]},'questionId':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js index c3e76a2..3bca244 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.controller.js @@ -1 +1 @@ -const a382_0x2d7f=['JscriptyQuestionReport','describe','body','name','order','include','like','error','length','model','end','sendStatus','api','create','limit','status','filter','merge','fields','update','offset','key','nolimit','rawAttributes','then','send','findOne','../../components/parsers/qs','map','pick','undefined','where','includeAll','query','sort','fieldName','intersection','rows','keys','json','params','catch','stack','options','attributes','filters','findAll','type','destroy','count'];(function(_0x461528,_0x2d7f0c){const _0xb51160=function(_0x23e30c){while(--_0x23e30c){_0x461528['push'](_0x461528['shift']());}};_0xb51160(++_0x2d7f0c);}(a382_0x2d7f,0x1e9));const a382_0xb511=function(_0x461528,_0x2d7f0c){_0x461528=_0x461528-0x0;let _0xb51160=a382_0x2d7f[_0x461528];return _0xb51160;};const _0x3a0fb8=a382_0xb511;'use strict';const _=require('lodash'),qs=require(_0x3a0fb8('0x26')),logger=require('../../config/logger')(_0x3a0fb8('0x17')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x23e30c,_0x809798){return _0x809798=_0x809798||0xc8,function(_0x396441){const _0x5cc06e=a382_0xb511;if(_0x396441)return _0x23e30c[_0x5cc06e('0x1a')](_0x809798)[_0x5cc06e('0x0')](_0x396441);};}function respondWithFilteredResult(_0x32e989,_0x49cdd9){return function(_0x166a21){const _0x23dc96=a382_0xb511;if(_0x166a21){const _0x24f576=_0x166a21['count'],_0x2a6754=_0x49cdd9[_0x23dc96('0x1f')];let _0xc75a57=_0x49cdd9[_0x23dc96('0x1f')]+_0x49cdd9[_0x23dc96('0x19')],_0xa3984f;return _0xc75a57>=_0x24f576?(_0xc75a57=_0x24f576,_0xa3984f=0xc8):_0xa3984f=0xce,_0x32e989[_0x23dc96('0x1a')](_0xa3984f),_0x32e989['set']('Content-Range',_0x2a6754+'-'+_0xc75a57+'/'+_0x24f576)[_0x23dc96('0x0')](_0x166a21);}return null;};}function saveUpdates(_0x2b587e){return function(_0x303a65){const _0x3d2ea1=a382_0xb511;if(_0x303a65)return _0x303a65[_0x3d2ea1('0x1e')](_0x2b587e)[_0x3d2ea1('0x23')](function(_0x440885){return _0x440885;});return null;};}function removeEntity(_0x5f3fa6){return function(_0x47b210){const _0x134939=a382_0xb511;if(_0x47b210)return _0x47b210[_0x134939('0x9')]()[_0x134939('0x23')](function(){const _0x588a7f=_0x134939;_0x5f3fa6[_0x588a7f('0x1a')](0xcc)[_0x588a7f('0x15')]();});};}function handleEntityNotFound(_0x4960a3){return function(_0x47f7b8){const _0x1c64e6=a382_0xb511;return!_0x47f7b8&&_0x4960a3[_0x1c64e6('0x16')](0x194),_0x47f7b8;};}function handleError(_0xa75083,_0xe9c326){return _0xe9c326=_0xe9c326||0x1f4,function(_0xafebc6){const _0x23cb2a=a382_0xb511;logger[_0x23cb2a('0x12')](_0xafebc6[_0x23cb2a('0x3')]),_0xafebc6[_0x23cb2a('0xe')]&&delete _0xafebc6[_0x23cb2a('0xe')],_0xa75083[_0x23cb2a('0x1a')](_0xe9c326)[_0x23cb2a('0x24')](_0xafebc6);};}exports['index']=function(_0x59ee5c,_0x133857){const _0x28457a=_0x3a0fb8;let _0x33f583={};const _0x3871f3={},_0x6864a5={'count':0x0,'rows':[]},_0xa571db=_[_0x28457a('0x27')](db[_0x28457a('0xb')][_0x28457a('0x22')],function(_0x3fd00e){const _0x48b31d=_0x28457a;return{'name':_0x3fd00e[_0x48b31d('0x2e')],'type':_0x3fd00e['type'][_0x48b31d('0x20')]};});_0x3871f3[_0x28457a('0x14')]=_[_0x28457a('0x27')](_0xa571db,_0x28457a('0xe')),_0x3871f3['query']=_[_0x28457a('0x31')](_0x59ee5c[_0x28457a('0x2c')]),_0x3871f3[_0x28457a('0x6')]=_['intersection'](_0x3871f3[_0x28457a('0x14')],_0x3871f3[_0x28457a('0x2c')]),_0x33f583[_0x28457a('0x5')]=_['intersection'](_0x3871f3[_0x28457a('0x14')],qs[_0x28457a('0x1d')](_0x59ee5c['query'][_0x28457a('0x1d')])),_0x33f583[_0x28457a('0x5')]=_0x33f583[_0x28457a('0x5')][_0x28457a('0x13')]?_0x33f583[_0x28457a('0x5')]:_0x3871f3['model'];typeof _0x59ee5c['query'][_0x28457a('0x21')]===_0x28457a('0x29')&&(_0x33f583[_0x28457a('0x19')]=qs[_0x28457a('0x19')](_0x59ee5c[_0x28457a('0x2c')][_0x28457a('0x19')]),_0x33f583['offset']=qs[_0x28457a('0x1f')](_0x59ee5c[_0x28457a('0x2c')][_0x28457a('0x1f')]));_0x33f583[_0x28457a('0xf')]=qs[_0x28457a('0x2d')](_0x59ee5c['query'][_0x28457a('0x2d')]),_0x33f583['where']=qs['filters'](_[_0x28457a('0x28')](_0x59ee5c[_0x28457a('0x2c')],_0x3871f3['filters']),_0xa571db);_0x59ee5c[_0x28457a('0x2c')]['filter']&&(_0x33f583[_0x28457a('0x2a')]=_[_0x28457a('0x1c')](_0x33f583[_0x28457a('0x2a')],{[Op['or']]:_[_0x28457a('0x27')](_0xa571db,function(_0x2a2d1d){const _0xb94d87=_0x28457a;if(_0x2a2d1d[_0xb94d87('0x8')]!=='VIRTUAL'){const _0x2ea6be={};return _0x2ea6be[_0x2a2d1d[_0xb94d87('0xe')]]={[Op[_0xb94d87('0x11')]]:'%'+_0x59ee5c[_0xb94d87('0x2c')][_0xb94d87('0x1b')]+'%'},_0x2ea6be;}})}));_0x33f583=_[_0x28457a('0x1c')]({},_0x33f583,_0x59ee5c[_0x28457a('0x4')]);const _0x38e458={'where':_0x33f583[_0x28457a('0x2a')]};return db[_0x28457a('0xb')][_0x28457a('0xa')](_0x38e458)[_0x28457a('0x23')](function(_0x527e89){const _0x293b4d=_0x28457a;return _0x6864a5[_0x293b4d('0xa')]=_0x527e89,_0x59ee5c[_0x293b4d('0x2c')][_0x293b4d('0x2b')]&&(_0x33f583[_0x293b4d('0x10')]=[{'all':!![]}]),db[_0x293b4d('0xb')][_0x293b4d('0x7')](_0x33f583);})[_0x28457a('0x23')](function(_0x2f91df){const _0x59e869=_0x28457a;return _0x6864a5[_0x59e869('0x30')]=_0x2f91df,_0x6864a5;})[_0x28457a('0x23')](respondWithFilteredResult(_0x133857,_0x33f583))[_0x28457a('0x2')](handleError(_0x133857,null));},exports['show']=function(_0x5c55b8,_0x21f85a){const _0x14981e=_0x3a0fb8;let _0x27f5a1={'raw':!![],'where':{'id':_0x5c55b8[_0x14981e('0x1')]['id']}};const _0x2f4497={};return _0x2f4497['model']=_[_0x14981e('0x31')](db[_0x14981e('0xb')][_0x14981e('0x22')]),_0x2f4497[_0x14981e('0x2c')]=_['keys'](_0x5c55b8['query']),_0x2f4497[_0x14981e('0x6')]=_[_0x14981e('0x2f')](_0x2f4497[_0x14981e('0x14')],_0x2f4497['query']),_0x27f5a1[_0x14981e('0x5')]=_[_0x14981e('0x2f')](_0x2f4497[_0x14981e('0x14')],qs[_0x14981e('0x1d')](_0x5c55b8[_0x14981e('0x2c')][_0x14981e('0x1d')])),_0x27f5a1[_0x14981e('0x5')]=_0x27f5a1['attributes']['length']?_0x27f5a1[_0x14981e('0x5')]:_0x2f4497[_0x14981e('0x14')],_0x5c55b8['query']['includeAll']&&(_0x27f5a1[_0x14981e('0x10')]=[{'all':!![]}]),_0x27f5a1=_['merge']({},_0x27f5a1,_0x5c55b8['options']),db['JscriptyQuestionReport'][_0x14981e('0x25')](_0x27f5a1)[_0x14981e('0x23')](handleEntityNotFound(_0x21f85a,null))[_0x14981e('0x23')](respondWithResult(_0x21f85a,null))['catch'](handleError(_0x21f85a,null));},exports[_0x3a0fb8('0x18')]=function(_0x118684,_0x437834){const _0x232f37=_0x3a0fb8;return db[_0x232f37('0xb')]['create'](_0x118684[_0x232f37('0xd')],{})[_0x232f37('0x23')](respondWithResult(_0x437834,0xc9))[_0x232f37('0x2')](handleError(_0x437834,null));},exports['update']=function(_0x160642,_0x12a157){const _0x457de6=_0x3a0fb8;return _0x160642['body']['id']&&delete _0x160642[_0x457de6('0xd')]['id'],db[_0x457de6('0xb')][_0x457de6('0x25')]({'where':{'id':_0x160642[_0x457de6('0x1')]['id']}})[_0x457de6('0x23')](handleEntityNotFound(_0x12a157,null))['then'](saveUpdates(_0x160642[_0x457de6('0xd')],null))[_0x457de6('0x23')](respondWithResult(_0x12a157,null))[_0x457de6('0x2')](handleError(_0x12a157,null));},exports[_0x3a0fb8('0x9')]=function(_0x5e9b8f,_0x109582){const _0x337e2e=_0x3a0fb8;return db[_0x337e2e('0xb')][_0x337e2e('0x25')]({'where':{'id':_0x5e9b8f['params']['id']}})[_0x337e2e('0x23')](handleEntityNotFound(_0x109582,null))[_0x337e2e('0x23')](removeEntity(_0x109582,null))['catch'](handleError(_0x109582,null));},exports[_0x3a0fb8('0xc')]=function(_0x2a275f,_0x2e34b0){const _0x3fcb16=_0x3a0fb8;return db[_0x3fcb16('0xb')]['describe']()['then'](respondWithResult(_0x2e34b0,null))['catch'](handleError(_0x2e34b0,null));}; \ No newline at end of file +const a382_0x220d=['stack','index','api','sort','pick','include','limit','length','catch','intersection','describe','type','params','merge','findOne','where','rawAttributes','destroy','send','name','show','fields','undefined','count','order','query','then','../../mysqldb','filters','body','attributes','Content-Range','model','options','nolimit','set','keys','map','sendStatus','like','offset','fieldName','rows','create','json','JscriptyQuestionReport','lodash','VIRTUAL','error','includeAll','update','status','filter','sequelize'];(function(_0x3d74a6,_0x220dab){const _0x42b974=function(_0xde7ad9){while(--_0xde7ad9){_0x3d74a6['push'](_0x3d74a6['shift']());}};_0x42b974(++_0x220dab);}(a382_0x220d,0x13c));const a382_0x42b9=function(_0x3d74a6,_0x220dab){_0x3d74a6=_0x3d74a6-0x0;let _0x42b974=a382_0x220d[_0x3d74a6];return _0x42b974;};const _0x2864b1=a382_0x42b9;'use strict';const _=require(_0x2864b1('0x0')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x2864b1('0xa')),db=require(_0x2864b1('0x23'))['db'],{Op}=require(_0x2864b1('0x7'));function respondWithResult(_0xde7ad9,_0x29fd1d){return _0x29fd1d=_0x29fd1d||0xc8,function(_0x92b86b){const _0x2a13b5=a382_0x42b9;if(_0x92b86b)return _0xde7ad9['status'](_0x29fd1d)[_0x2a13b5('0x34')](_0x92b86b);};}function respondWithFilteredResult(_0x1139b0,_0x2ff348){return function(_0x39be9d){const _0x3fe786=a382_0x42b9;if(_0x39be9d){const _0x220528=_0x39be9d[_0x3fe786('0x1f')],_0x2389a3=_0x2ff348[_0x3fe786('0x30')];let _0x26ebdf=_0x2ff348['offset']+_0x2ff348[_0x3fe786('0xe')],_0x7bfe9a;return _0x26ebdf>=_0x220528?(_0x26ebdf=_0x220528,_0x7bfe9a=0xc8):_0x7bfe9a=0xce,_0x1139b0[_0x3fe786('0x5')](_0x7bfe9a),_0x1139b0[_0x3fe786('0x2b')](_0x3fe786('0x27'),_0x2389a3+'-'+_0x26ebdf+'/'+_0x220528)[_0x3fe786('0x34')](_0x39be9d);}return null;};}function saveUpdates(_0x50b808){return function(_0x2c2031){if(_0x2c2031)return _0x2c2031['update'](_0x50b808)['then'](function(_0x171a5e){return _0x171a5e;});return null;};}function removeEntity(_0x3bd2c2){return function(_0x512e0e){const _0x4ef379=a382_0x42b9;if(_0x512e0e)return _0x512e0e[_0x4ef379('0x19')]()[_0x4ef379('0x22')](function(){const _0x11126f=_0x4ef379;_0x3bd2c2[_0x11126f('0x5')](0xcc)['end']();});};}function handleEntityNotFound(_0x1539f5){return function(_0x2d8fa){const _0x2a5909=a382_0x42b9;return!_0x2d8fa&&_0x1539f5[_0x2a5909('0x2e')](0x194),_0x2d8fa;};}function handleError(_0x439fb2,_0x307c93){return _0x307c93=_0x307c93||0x1f4,function(_0x43067e){const _0x123ca2=a382_0x42b9;logger[_0x123ca2('0x2')](_0x43067e[_0x123ca2('0x8')]),_0x43067e[_0x123ca2('0x1b')]&&delete _0x43067e[_0x123ca2('0x1b')],_0x439fb2[_0x123ca2('0x5')](_0x307c93)[_0x123ca2('0x1a')](_0x43067e);};}exports[_0x2864b1('0x9')]=function(_0x255658,_0x462370){const _0x55b486=_0x2864b1;let _0x1e2514={};const _0x25a6d5={},_0x910264={'count':0x0,'rows':[]},_0x50edd0=_['map'](db[_0x55b486('0x35')]['rawAttributes'],function(_0x516435){const _0x15574b=_0x55b486;return{'name':_0x516435[_0x15574b('0x31')],'type':_0x516435[_0x15574b('0x13')]['key']};});_0x25a6d5[_0x55b486('0x28')]=_[_0x55b486('0x2d')](_0x50edd0,_0x55b486('0x1b')),_0x25a6d5[_0x55b486('0x21')]=_['keys'](_0x255658[_0x55b486('0x21')]),_0x25a6d5[_0x55b486('0x24')]=_[_0x55b486('0x11')](_0x25a6d5[_0x55b486('0x28')],_0x25a6d5['query']),_0x1e2514[_0x55b486('0x26')]=_['intersection'](_0x25a6d5[_0x55b486('0x28')],qs[_0x55b486('0x1d')](_0x255658[_0x55b486('0x21')][_0x55b486('0x1d')])),_0x1e2514[_0x55b486('0x26')]=_0x1e2514[_0x55b486('0x26')][_0x55b486('0xf')]?_0x1e2514[_0x55b486('0x26')]:_0x25a6d5['model'];typeof _0x255658[_0x55b486('0x21')][_0x55b486('0x2a')]===_0x55b486('0x1e')&&(_0x1e2514[_0x55b486('0xe')]=qs[_0x55b486('0xe')](_0x255658['query'][_0x55b486('0xe')]),_0x1e2514[_0x55b486('0x30')]=qs['offset'](_0x255658[_0x55b486('0x21')][_0x55b486('0x30')]));_0x1e2514[_0x55b486('0x20')]=qs[_0x55b486('0xb')](_0x255658[_0x55b486('0x21')][_0x55b486('0xb')]),_0x1e2514['where']=qs['filters'](_[_0x55b486('0xc')](_0x255658[_0x55b486('0x21')],_0x25a6d5[_0x55b486('0x24')]),_0x50edd0);_0x255658[_0x55b486('0x21')][_0x55b486('0x6')]&&(_0x1e2514[_0x55b486('0x17')]=_[_0x55b486('0x15')](_0x1e2514[_0x55b486('0x17')],{[Op['or']]:_[_0x55b486('0x2d')](_0x50edd0,function(_0x499e7f){const _0x3c0bef=_0x55b486;if(_0x499e7f[_0x3c0bef('0x13')]!==_0x3c0bef('0x1')){const _0x1dca6a={};return _0x1dca6a[_0x499e7f['name']]={[Op[_0x3c0bef('0x2f')]]:'%'+_0x255658['query']['filter']+'%'},_0x1dca6a;}})}));_0x1e2514=_[_0x55b486('0x15')]({},_0x1e2514,_0x255658['options']);const _0x4a9a28={'where':_0x1e2514[_0x55b486('0x17')]};return db['JscriptyQuestionReport'][_0x55b486('0x1f')](_0x4a9a28)['then'](function(_0x41ad7b){const _0xaae386=_0x55b486;return _0x910264['count']=_0x41ad7b,_0x255658['query'][_0xaae386('0x3')]&&(_0x1e2514[_0xaae386('0xd')]=[{'all':!![]}]),db['JscriptyQuestionReport']['findAll'](_0x1e2514);})[_0x55b486('0x22')](function(_0x1b66ba){const _0x48db8b=_0x55b486;return _0x910264[_0x48db8b('0x32')]=_0x1b66ba,_0x910264;})[_0x55b486('0x22')](respondWithFilteredResult(_0x462370,_0x1e2514))[_0x55b486('0x10')](handleError(_0x462370,null));},exports[_0x2864b1('0x1c')]=function(_0x135004,_0x13fcae){const _0x423dfc=_0x2864b1;let _0x49144b={'raw':!![],'where':{'id':_0x135004['params']['id']}};const _0xbf40d7={};return _0xbf40d7[_0x423dfc('0x28')]=_[_0x423dfc('0x2c')](db[_0x423dfc('0x35')][_0x423dfc('0x18')]),_0xbf40d7[_0x423dfc('0x21')]=_[_0x423dfc('0x2c')](_0x135004[_0x423dfc('0x21')]),_0xbf40d7['filters']=_[_0x423dfc('0x11')](_0xbf40d7[_0x423dfc('0x28')],_0xbf40d7[_0x423dfc('0x21')]),_0x49144b['attributes']=_['intersection'](_0xbf40d7['model'],qs[_0x423dfc('0x1d')](_0x135004[_0x423dfc('0x21')]['fields'])),_0x49144b[_0x423dfc('0x26')]=_0x49144b[_0x423dfc('0x26')][_0x423dfc('0xf')]?_0x49144b[_0x423dfc('0x26')]:_0xbf40d7[_0x423dfc('0x28')],_0x135004[_0x423dfc('0x21')]['includeAll']&&(_0x49144b[_0x423dfc('0xd')]=[{'all':!![]}]),_0x49144b=_['merge']({},_0x49144b,_0x135004[_0x423dfc('0x29')]),db[_0x423dfc('0x35')]['findOne'](_0x49144b)[_0x423dfc('0x22')](handleEntityNotFound(_0x13fcae,null))[_0x423dfc('0x22')](respondWithResult(_0x13fcae,null))[_0x423dfc('0x10')](handleError(_0x13fcae,null));},exports[_0x2864b1('0x33')]=function(_0xcba6d6,_0x39a319){const _0x48e46e=_0x2864b1;return db['JscriptyQuestionReport'][_0x48e46e('0x33')](_0xcba6d6[_0x48e46e('0x25')],{})[_0x48e46e('0x22')](respondWithResult(_0x39a319,0xc9))['catch'](handleError(_0x39a319,null));},exports[_0x2864b1('0x4')]=function(_0x29ed60,_0x427ce0){const _0x1c8d35=_0x2864b1;return _0x29ed60[_0x1c8d35('0x25')]['id']&&delete _0x29ed60['body']['id'],db[_0x1c8d35('0x35')]['findOne']({'where':{'id':_0x29ed60[_0x1c8d35('0x14')]['id']}})[_0x1c8d35('0x22')](handleEntityNotFound(_0x427ce0,null))[_0x1c8d35('0x22')](saveUpdates(_0x29ed60[_0x1c8d35('0x25')],null))['then'](respondWithResult(_0x427ce0,null))[_0x1c8d35('0x10')](handleError(_0x427ce0,null));},exports[_0x2864b1('0x19')]=function(_0x157e09,_0x2d88a2){const _0x2bb17e=_0x2864b1;return db[_0x2bb17e('0x35')][_0x2bb17e('0x16')]({'where':{'id':_0x157e09[_0x2bb17e('0x14')]['id']}})[_0x2bb17e('0x22')](handleEntityNotFound(_0x2d88a2,null))[_0x2bb17e('0x22')](removeEntity(_0x2d88a2,null))[_0x2bb17e('0x10')](handleError(_0x2d88a2,null));},exports[_0x2864b1('0x12')]=function(_0x4320e,_0x5db368){const _0x3bf04b=_0x2864b1;return db[_0x3bf04b('0x35')][_0x3bf04b('0x12')]()[_0x3bf04b('0x22')](respondWithResult(_0x5db368,null))[_0x3bf04b('0x10')](handleError(_0x5db368,null));}; \ No newline at end of file diff --git a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js index df45cfa..bc5e14d 100644 --- a/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js +++ b/server/api/jscriptyQuestionReport/jscriptyQuestionReport.model.js @@ -1 +1 @@ -const a383_0x37a6=['exports','define','report_jscripty_questions','JscriptyQuestionReport','./jscriptyQuestionReport.attributes'];(function(_0x404cb8,_0x37a60c){const _0x4233e1=function(_0x5e6c7c){while(--_0x5e6c7c){_0x404cb8['push'](_0x404cb8['shift']());}};_0x4233e1(++_0x37a60c);}(a383_0x37a6,0x8e));const a383_0x4233=function(_0x404cb8,_0x37a60c){_0x404cb8=_0x404cb8-0x0;let _0x4233e1=a383_0x37a6[_0x404cb8];return _0x4233e1;};const _0x1d5c2d=a383_0x4233;'use strict';const attributes=require(_0x1d5c2d('0x2'));module[_0x1d5c2d('0x3')]=function(_0x5e6c7c){const _0xe78f5a=_0x1d5c2d,_0x204f46=_0x5e6c7c[_0xe78f5a('0x4')](_0xe78f5a('0x1'),attributes,{'tableName':_0xe78f5a('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x204f46;}; \ No newline at end of file +const a383_0x4f33=['./jscriptyQuestionReport.attributes','define','report_jscripty_questions','JscriptyQuestionReport'];(function(_0x31f79e,_0x4f33e8){const _0x5d0599=function(_0x1c8e0c){while(--_0x1c8e0c){_0x31f79e['push'](_0x31f79e['shift']());}};_0x5d0599(++_0x4f33e8);}(a383_0x4f33,0x7f));const a383_0x5d05=function(_0x31f79e,_0x4f33e8){_0x31f79e=_0x31f79e-0x0;let _0x5d0599=a383_0x4f33[_0x31f79e];return _0x5d0599;};const _0x62ef03=a383_0x5d05;'use strict';const attributes=require(_0x62ef03('0x1'));module['exports']=function(_0x1c8e0c){const _0x58d80b=_0x62ef03,_0x240bee=_0x1c8e0c[_0x58d80b('0x2')](_0x58d80b('0x0'),attributes,{'tableName':_0x58d80b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x240bee;}; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/index.js b/server/api/jscriptySessionReport/index.js index 6ee72f9..04efcd6 100644 --- a/server/api/jscriptySessionReport/index.js +++ b/server/api/jscriptySessionReport/index.js @@ -1 +1 @@ -const a384_0x2f72=['post','express','Router','getQuestions','/:id','put','describe','index','show','isAuthenticated','../../components/auth/service','exports','create','delete','update','get','./jscriptySessionReport.controller'];(function(_0x38785c,_0x2f7292){const _0x5e8444=function(_0x1ce63b){while(--_0x1ce63b){_0x38785c['push'](_0x38785c['shift']());}};_0x5e8444(++_0x2f7292);}(a384_0x2f72,0xd1));const a384_0x5e84=function(_0x38785c,_0x2f7292){_0x38785c=_0x38785c-0x0;let _0x5e8444=a384_0x2f72[_0x38785c];return _0x5e8444;};const _0x31034f=a384_0x5e84;'use strict';const express=require(_0x31034f('0xd')),router=express[_0x31034f('0xe')](),auth=require(_0x31034f('0x5')),controller=require(_0x31034f('0xb'));router['get']('/',auth[_0x31034f('0x4')](),controller[_0x31034f('0x2')]),router[_0x31034f('0xa')]('/describe',auth['isAuthenticated'](),controller[_0x31034f('0x1')]),router[_0x31034f('0xa')](_0x31034f('0x10'),auth['isAuthenticated'](),controller[_0x31034f('0x3')]),router[_0x31034f('0xa')]('/:id/questions',auth[_0x31034f('0x4')](),controller[_0x31034f('0xf')]),router[_0x31034f('0xc')]('/',auth[_0x31034f('0x4')](),controller[_0x31034f('0x7')]),router[_0x31034f('0x0')](_0x31034f('0x10'),auth['isAuthenticated'](),controller[_0x31034f('0x9')]),router[_0x31034f('0x8')](_0x31034f('0x10'),auth[_0x31034f('0x4')](),controller['destroy']),module[_0x31034f('0x6')]=router; \ No newline at end of file +const a384_0xab97=['index','/:id','destroy','express','/:id/questions','show','delete','put','get','isAuthenticated','Router','getQuestions','../../components/auth/service','post','describe','/describe','exports','create'];(function(_0x6fb6b7,_0xab9765){const _0x1effab=function(_0x3f4e80){while(--_0x3f4e80){_0x6fb6b7['push'](_0x6fb6b7['shift']());}};_0x1effab(++_0xab9765);}(a384_0xab97,0xad));const a384_0x1eff=function(_0x6fb6b7,_0xab9765){_0x6fb6b7=_0x6fb6b7-0x0;let _0x1effab=a384_0xab97[_0x6fb6b7];return _0x1effab;};const _0x375d3e=a384_0x1eff;'use strict';const express=require(_0x375d3e('0xa')),router=express[_0x375d3e('0x11')](),auth=require(_0x375d3e('0x1')),controller=require('./jscriptySessionReport.controller');router[_0x375d3e('0xf')]('/',auth[_0x375d3e('0x10')](),controller[_0x375d3e('0x7')]),router[_0x375d3e('0xf')](_0x375d3e('0x4'),auth[_0x375d3e('0x10')](),controller[_0x375d3e('0x3')]),router[_0x375d3e('0xf')](_0x375d3e('0x8'),auth[_0x375d3e('0x10')](),controller[_0x375d3e('0xc')]),router[_0x375d3e('0xf')](_0x375d3e('0xb'),auth[_0x375d3e('0x10')](),controller[_0x375d3e('0x0')]),router[_0x375d3e('0x2')]('/',auth['isAuthenticated'](),controller[_0x375d3e('0x6')]),router[_0x375d3e('0xe')]('/:id',auth[_0x375d3e('0x10')](),controller['update']),router[_0x375d3e('0xd')](_0x375d3e('0x8'),auth[_0x375d3e('0x10')](),controller[_0x375d3e('0x9')]),module[_0x375d3e('0x5')]=router; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js index d93ac09..757b276 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.attributes.js @@ -1 +1 @@ -const a385_0x4e5d=['BOOLEAN','STRING','exports','YYYY-MM-DD\x20HH:mm:ss','setDataValue','starttime','DATE','moment','sequelize'];(function(_0x460bcd,_0x4e5de5){const _0xdd73e4=function(_0x434a69){while(--_0x434a69){_0x460bcd['push'](_0x460bcd['shift']());}};_0xdd73e4(++_0x4e5de5);}(a385_0x4e5d,0xae));const a385_0xdd73=function(_0x460bcd,_0x4e5de5){_0x460bcd=_0x460bcd-0x0;let _0xdd73e4=a385_0x4e5d[_0x460bcd];return _0xdd73e4;};const _0x1f8181=a385_0xdd73;'use strict';const moment=require(_0x1f8181('0x4')),Sequelize=require(_0x1f8181('0x5'));module[_0x1f8181('0x8')]={'starttime':{'type':Sequelize[_0x1f8181('0x3')],'set':function(_0x434a69){const _0x23d4d2=_0x1f8181;this[_0x23d4d2('0x1')](_0x23d4d2('0x2'),_0x434a69),this[_0x23d4d2('0x1')]('endtime',moment()['format'](_0x23d4d2('0x0')));}},'endtime':{'type':Sequelize[_0x1f8181('0x3')]},'membername':{'type':Sequelize[_0x1f8181('0x7')]},'projectname':{'type':Sequelize[_0x1f8181('0x7')]},'queue':{'type':Sequelize[_0x1f8181('0x7')]},'uniqueid':{'type':Sequelize[_0x1f8181('0x7')]},'calleridname':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x1f8181('0x7')]},'completed':{'type':Sequelize[_0x1f8181('0x6')],'defaultValue':![]}}; \ No newline at end of file +const a385_0x5e3a=['setDataValue','starttime','moment','exports','STRING','DATE','endtime','YYYY-MM-DD\x20HH:mm:ss','format'];(function(_0x52ff02,_0x5e3a02){const _0x47e5f9=function(_0x5017c5){while(--_0x5017c5){_0x52ff02['push'](_0x52ff02['shift']());}};_0x47e5f9(++_0x5e3a02);}(a385_0x5e3a,0xc8));const a385_0x47e5=function(_0x52ff02,_0x5e3a02){_0x52ff02=_0x52ff02-0x0;let _0x47e5f9=a385_0x5e3a[_0x52ff02];return _0x47e5f9;};const _0x4d37fc=a385_0x47e5;'use strict';const moment=require(_0x4d37fc('0x0')),Sequelize=require('sequelize');module[_0x4d37fc('0x1')]={'starttime':{'type':Sequelize[_0x4d37fc('0x3')],'set':function(_0x5017c5){const _0x4350fa=_0x4d37fc;this[_0x4350fa('0x7')](_0x4350fa('0x8'),_0x5017c5),this[_0x4350fa('0x7')](_0x4350fa('0x4'),moment()[_0x4350fa('0x6')](_0x4350fa('0x5')));}},'endtime':{'type':Sequelize['DATE']},'membername':{'type':Sequelize[_0x4d37fc('0x2')]},'projectname':{'type':Sequelize[_0x4d37fc('0x2')]},'queue':{'type':Sequelize[_0x4d37fc('0x2')]},'uniqueid':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x4d37fc('0x2')]},'calleridnum':{'type':Sequelize[_0x4d37fc('0x2')]},'completed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js index 7c4c4fb..593630a 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.controller.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.controller.js @@ -1 +1 @@ -const a386_0x5818=['model','options','json','../../mysqldb','order','getQuestions','../../components/parsers/qs','nolimit','fieldName','findOne','map','limit','key','query','stack','name','include','length','attributes','then','VIRTUAL','intersection','body','filters','count','status','SessionId','update','where','index','filter','type','findAll','rows','lodash','JscriptyQuestionReport','keys','describe','undefined','includeAll','create','JscriptySessionReport','sendStatus','catch','../../config/logger','params','api','merge','Content-Range','destroy','error','fields','sort','offset'];(function(_0x432111,_0x58188b){const _0x24b09c=function(_0x3cea10){while(--_0x3cea10){_0x432111['push'](_0x432111['shift']());}};_0x24b09c(++_0x58188b);}(a386_0x5818,0xa0));const a386_0x24b0=function(_0x432111,_0x58188b){_0x432111=_0x432111-0x0;let _0x24b09c=a386_0x5818[_0x432111];return _0x24b09c;};const _0x433022=a386_0x24b0;'use strict';const _=require(_0x433022('0x24')),qs=require(_0x433022('0x8')),logger=require(_0x433022('0x2e'))(_0x433022('0x30')),db=require(_0x433022('0x5'))['db'],{Op}=require('sequelize');function respondWithResult(_0x3cea10,_0x5b8dba){return _0x5b8dba=_0x5b8dba||0xc8,function(_0x461b7d){const _0x111e20=a386_0x24b0;if(_0x461b7d)return _0x3cea10['status'](_0x5b8dba)[_0x111e20('0x4')](_0x461b7d);};}function respondWithFilteredResult(_0x50dfeb,_0x4a8ff1){return function(_0x3d1ad0){const _0x2e50a2=a386_0x24b0;if(_0x3d1ad0){const _0xde3ad7=_0x3d1ad0[_0x2e50a2('0x1a')],_0xb1651d=_0x4a8ff1['offset'];let _0x34f1d2=_0x4a8ff1[_0x2e50a2('0x1')]+_0x4a8ff1[_0x2e50a2('0xd')],_0x42f825;return _0x34f1d2>=_0xde3ad7?(_0x34f1d2=_0xde3ad7,_0x42f825=0xc8):_0x42f825=0xce,_0x50dfeb[_0x2e50a2('0x1b')](_0x42f825),_0x50dfeb['set'](_0x2e50a2('0x32'),_0xb1651d+'-'+_0x34f1d2+'/'+_0xde3ad7)['json'](_0x3d1ad0);}return null;};}function saveUpdates(_0x2ea750){return function(_0xfe5ab8){const _0x34795c=a386_0x24b0;if(_0xfe5ab8)return _0xfe5ab8[_0x34795c('0x1d')](_0x2ea750)[_0x34795c('0x15')](function(_0x182385){return _0x182385;});return null;};}function removeEntity(_0x26a98c){return function(_0x5c07c2){const _0x15c383=a386_0x24b0;if(_0x5c07c2)return _0x5c07c2[_0x15c383('0x33')]()['then'](function(){const _0x285f4e=_0x15c383;_0x26a98c[_0x285f4e('0x1b')](0xcc)['end']();});};}function handleEntityNotFound(_0x6fe802){return function(_0x169c2f){const _0x564cf6=a386_0x24b0;return!_0x169c2f&&_0x6fe802[_0x564cf6('0x2c')](0x194),_0x169c2f;};}function handleError(_0x24c31e,_0x413051){return _0x413051=_0x413051||0x1f4,function(_0x26f558){const _0x86fa6a=a386_0x24b0;logger[_0x86fa6a('0x34')](_0x26f558[_0x86fa6a('0x10')]),_0x26f558['name']&&delete _0x26f558[_0x86fa6a('0x11')],_0x24c31e[_0x86fa6a('0x1b')](_0x413051)['send'](_0x26f558);};}exports[_0x433022('0x1f')]=function(_0x5e4a02,_0x2485fc){const _0x4894b2=_0x433022;let _0x3ca95b={};const _0x477d66={},_0x4c8823={'count':0x0,'rows':[]},_0x16ee62=_[_0x4894b2('0xc')](db[_0x4894b2('0x2b')]['rawAttributes'],function(_0xa5ef93){const _0x50c820=_0x4894b2;return{'name':_0xa5ef93[_0x50c820('0xa')],'type':_0xa5ef93[_0x50c820('0x21')][_0x50c820('0xe')]};});_0x477d66[_0x4894b2('0x2')]=_[_0x4894b2('0xc')](_0x16ee62,_0x4894b2('0x11')),_0x477d66[_0x4894b2('0xf')]=_[_0x4894b2('0x26')](_0x5e4a02[_0x4894b2('0xf')]),_0x477d66[_0x4894b2('0x19')]=_[_0x4894b2('0x17')](_0x477d66[_0x4894b2('0x2')],_0x477d66[_0x4894b2('0xf')]),_0x3ca95b[_0x4894b2('0x14')]=_[_0x4894b2('0x17')](_0x477d66['model'],qs[_0x4894b2('0x35')](_0x5e4a02['query'][_0x4894b2('0x35')])),_0x3ca95b['attributes']=_0x3ca95b[_0x4894b2('0x14')]['length']?_0x3ca95b[_0x4894b2('0x14')]:_0x477d66['model'];typeof _0x5e4a02[_0x4894b2('0xf')][_0x4894b2('0x9')]===_0x4894b2('0x28')&&(_0x3ca95b[_0x4894b2('0xd')]=qs['limit'](_0x5e4a02['query'][_0x4894b2('0xd')]),_0x3ca95b[_0x4894b2('0x1')]=qs['offset'](_0x5e4a02[_0x4894b2('0xf')][_0x4894b2('0x1')]));_0x3ca95b[_0x4894b2('0x6')]=qs['sort'](_0x5e4a02['query'][_0x4894b2('0x0')]),_0x3ca95b[_0x4894b2('0x1e')]=qs['filters'](_['pick'](_0x5e4a02[_0x4894b2('0xf')],_0x477d66[_0x4894b2('0x19')]),_0x16ee62);_0x5e4a02['query']['filter']&&(_0x3ca95b['where']=_[_0x4894b2('0x31')](_0x3ca95b[_0x4894b2('0x1e')],{[Op['or']]:_['map'](_0x16ee62,function(_0x2e0f3b){const _0x33fc35=_0x4894b2;if(_0x2e0f3b[_0x33fc35('0x21')]!==_0x33fc35('0x16')){const _0x3364aa={};return _0x3364aa[_0x2e0f3b[_0x33fc35('0x11')]]={[Op['like']]:'%'+_0x5e4a02['query'][_0x33fc35('0x20')]+'%'},_0x3364aa;}})}));_0x3ca95b=_[_0x4894b2('0x31')]({},_0x3ca95b,_0x5e4a02['options']);const _0x5978f4={'where':_0x3ca95b[_0x4894b2('0x1e')]};return db[_0x4894b2('0x2b')][_0x4894b2('0x1a')](_0x5978f4)[_0x4894b2('0x15')](function(_0x53ccd9){const _0x5d025b=_0x4894b2;return _0x4c8823['count']=_0x53ccd9,_0x5e4a02[_0x5d025b('0xf')][_0x5d025b('0x29')]&&(_0x3ca95b[_0x5d025b('0x12')]=[{'all':!![]}]),db['JscriptySessionReport'][_0x5d025b('0x22')](_0x3ca95b);})[_0x4894b2('0x15')](function(_0x4edb59){const _0x2f1a66=_0x4894b2;return _0x4c8823[_0x2f1a66('0x23')]=_0x4edb59,_0x4c8823;})[_0x4894b2('0x15')](respondWithFilteredResult(_0x2485fc,_0x3ca95b))[_0x4894b2('0x2d')](handleError(_0x2485fc,null));},exports['show']=function(_0x2b6d88,_0x17956d){const _0x3e42ce=_0x433022;let _0x57355b={'raw':!![],'where':{'id':_0x2b6d88[_0x3e42ce('0x2f')]['id']}};const _0x352b39={};return _0x352b39['model']=_[_0x3e42ce('0x26')](db[_0x3e42ce('0x2b')]['rawAttributes']),_0x352b39['query']=_[_0x3e42ce('0x26')](_0x2b6d88['query']),_0x352b39[_0x3e42ce('0x19')]=_[_0x3e42ce('0x17')](_0x352b39['model'],_0x352b39[_0x3e42ce('0xf')]),_0x57355b[_0x3e42ce('0x14')]=_[_0x3e42ce('0x17')](_0x352b39[_0x3e42ce('0x2')],qs[_0x3e42ce('0x35')](_0x2b6d88[_0x3e42ce('0xf')][_0x3e42ce('0x35')])),_0x57355b[_0x3e42ce('0x14')]=_0x57355b['attributes'][_0x3e42ce('0x13')]?_0x57355b['attributes']:_0x352b39['model'],_0x2b6d88[_0x3e42ce('0xf')][_0x3e42ce('0x29')]&&(_0x57355b[_0x3e42ce('0x12')]=[{'all':!![]}]),_0x57355b=_[_0x3e42ce('0x31')]({},_0x57355b,_0x2b6d88[_0x3e42ce('0x3')]),db[_0x3e42ce('0x2b')][_0x3e42ce('0xb')](_0x57355b)[_0x3e42ce('0x15')](handleEntityNotFound(_0x17956d,null))[_0x3e42ce('0x15')](respondWithResult(_0x17956d,null))['catch'](handleError(_0x17956d,null));},exports[_0x433022('0x2a')]=function(_0x4f3a02,_0x13062e){const _0x3534ba=_0x433022;return db[_0x3534ba('0x2b')]['create'](_0x4f3a02[_0x3534ba('0x18')],{})[_0x3534ba('0x15')](respondWithResult(_0x13062e,0xc9))['catch'](handleError(_0x13062e,null));},exports[_0x433022('0x1d')]=function(_0x10cf73,_0x2cfa85){const _0x331cfb=_0x433022;return _0x10cf73[_0x331cfb('0x18')]['id']&&delete _0x10cf73[_0x331cfb('0x18')]['id'],db[_0x331cfb('0x2b')][_0x331cfb('0xb')]({'where':{'id':_0x10cf73[_0x331cfb('0x2f')]['id']}})['then'](handleEntityNotFound(_0x2cfa85,null))[_0x331cfb('0x15')](saveUpdates(_0x10cf73[_0x331cfb('0x18')],null))['then'](respondWithResult(_0x2cfa85,null))[_0x331cfb('0x2d')](handleError(_0x2cfa85,null));},exports[_0x433022('0x33')]=function(_0x46a0ad,_0x4e4e0b){const _0x43cc23=_0x433022;return db['JscriptySessionReport'][_0x43cc23('0xb')]({'where':{'id':_0x46a0ad['params']['id']}})[_0x43cc23('0x15')](handleEntityNotFound(_0x4e4e0b,null))[_0x43cc23('0x15')](removeEntity(_0x4e4e0b,null))[_0x43cc23('0x2d')](handleError(_0x4e4e0b,null));},exports[_0x433022('0x27')]=function(_0x3a23ec,_0x4f9e7a){const _0x1828b3=_0x433022;return db[_0x1828b3('0x2b')]['describe']()[_0x1828b3('0x15')](respondWithResult(_0x4f9e7a,null))[_0x1828b3('0x2d')](handleError(_0x4f9e7a,null));},exports[_0x433022('0x7')]=function(_0x28ff63,_0xe1a76b){const _0xd7a852=_0x433022;let _0x4763b0={'raw':!![],'where':{}};const _0xcbee36={},_0x301064={'count':0x0,'rows':[]};return db[_0xd7a852('0x2b')][_0xd7a852('0xb')]({'where':{'id':_0x28ff63[_0xd7a852('0x2f')]['id']}})[_0xd7a852('0x15')](handleEntityNotFound(_0xe1a76b,null))[_0xd7a852('0x15')](function(_0x224c9d){const _0x4327bc=_0xd7a852;if(_0x224c9d)return _0xcbee36[_0x4327bc('0x2')]=_['keys'](db['JscriptyQuestionReport']['rawAttributes']),_0xcbee36[_0x4327bc('0xf')]=_['keys'](_0x28ff63['query']),_0xcbee36[_0x4327bc('0x19')]=_[_0x4327bc('0x17')](_0xcbee36[_0x4327bc('0x2')],_0xcbee36[_0x4327bc('0xf')]),_0x4763b0['attributes']=_[_0x4327bc('0x17')](_0xcbee36[_0x4327bc('0x2')],qs[_0x4327bc('0x35')](_0x28ff63[_0x4327bc('0xf')][_0x4327bc('0x35')])),_0x4763b0[_0x4327bc('0x14')]=_0x4763b0[_0x4327bc('0x14')][_0x4327bc('0x13')]?_0x4763b0[_0x4327bc('0x14')]:_0xcbee36[_0x4327bc('0x2')],typeof _0x28ff63[_0x4327bc('0xf')][_0x4327bc('0x9')]===_0x4327bc('0x28')&&(_0x4763b0[_0x4327bc('0xd')]=qs[_0x4327bc('0xd')](_0x28ff63[_0x4327bc('0xf')]['limit']),_0x4763b0['offset']=qs[_0x4327bc('0x1')](_0x28ff63[_0x4327bc('0xf')]['offset'])),_0x4763b0[_0x4327bc('0x6')]=qs[_0x4327bc('0x0')](_0x28ff63['query'][_0x4327bc('0x0')]),_0x4763b0[_0x4327bc('0x1e')]=qs[_0x4327bc('0x19')](_['pick'](_0x28ff63['query'],_0xcbee36[_0x4327bc('0x19')])),_0x4763b0[_0x4327bc('0x1e')][_0x4327bc('0x1c')]=_0x224c9d['id'],_0x28ff63[_0x4327bc('0xf')]['filter']&&(_0x4763b0[_0x4327bc('0x1e')]=_['merge'](_0x4763b0['where'],{[Op['or']]:_[_0x4327bc('0xc')](_0x4763b0[_0x4327bc('0x14')],function(_0xa287a1){const _0x30cdbc=_0x4327bc,_0x3c6634={};return _0x3c6634[_0xa287a1]={[Op['like']]:'%'+_0x28ff63['query'][_0x30cdbc('0x20')]+'%'},_0x3c6634;})})),_0x4763b0=_[_0x4327bc('0x31')]({},_0x4763b0,_0x28ff63[_0x4327bc('0x3')]),db[_0x4327bc('0x25')][_0x4327bc('0x1a')]({'where':_0x4763b0[_0x4327bc('0x1e')]})[_0x4327bc('0x15')](function(_0x17c16f){const _0x1ca482=_0x4327bc;return _0x301064[_0x1ca482('0x1a')]=_0x17c16f,_0x28ff63[_0x1ca482('0xf')][_0x1ca482('0x29')]&&(_0x4763b0['include']=[{'all':!![]}]),db[_0x1ca482('0x25')][_0x1ca482('0x22')](_0x4763b0);})['then'](function(_0x28a0d2){const _0x3f3095=_0x4327bc;return _0x301064[_0x3f3095('0x23')]=_0x28a0d2,_0x301064;});})[_0xd7a852('0x15')](respondWithFilteredResult(_0xe1a76b,_0x4763b0))[_0xd7a852('0x2d')](handleError(_0xe1a76b,null));}; \ No newline at end of file +const a386_0x28c4=['intersection','type','attributes','json','destroy','includeAll','key','findOne','stack','create','merge','nolimit','api','limit','lodash','catch','send','like','JscriptyQuestionReport','Content-Range','body','order','end','offset','map','findAll','pick','filter','model','describe','sendStatus','length','rawAttributes','set','count','rows','../../mysqldb','filters','include','../../config/logger','JscriptySessionReport','update','error','where','sort','params','../../components/parsers/qs','status','options','then','keys','name','index','sequelize','getQuestions','query','VIRTUAL','fields'];(function(_0x3b6468,_0x28c4d7){const _0x4836bd=function(_0x5ce662){while(--_0x5ce662){_0x3b6468['push'](_0x3b6468['shift']());}};_0x4836bd(++_0x28c4d7);}(a386_0x28c4,0xa3));const a386_0x4836=function(_0x3b6468,_0x28c4d7){_0x3b6468=_0x3b6468-0x0;let _0x4836bd=a386_0x28c4[_0x3b6468];return _0x4836bd;};const _0x318379=a386_0x4836;'use strict';const _=require(_0x318379('0x19')),qs=require(_0x318379('0x39')),logger=require(_0x318379('0x32'))(_0x318379('0x17')),db=require(_0x318379('0x2f'))['db'],{Op}=require(_0x318379('0x6'));function respondWithResult(_0x5ce662,_0x5940e0){return _0x5940e0=_0x5940e0||0xc8,function(_0x30e819){const _0x4c53ed=a386_0x4836;if(_0x30e819)return _0x5ce662[_0x4c53ed('0x0')](_0x5940e0)[_0x4c53ed('0xe')](_0x30e819);};}function respondWithFilteredResult(_0x27fb9d,_0x671362){return function(_0x3880fb){const _0x31db32=a386_0x4836;if(_0x3880fb){const _0x3a13af=_0x3880fb[_0x31db32('0x2d')],_0x3e1b67=_0x671362[_0x31db32('0x22')];let _0x5cf37a=_0x671362[_0x31db32('0x22')]+_0x671362[_0x31db32('0x18')],_0x400aed;return _0x5cf37a>=_0x3a13af?(_0x5cf37a=_0x3a13af,_0x400aed=0xc8):_0x400aed=0xce,_0x27fb9d[_0x31db32('0x0')](_0x400aed),_0x27fb9d[_0x31db32('0x2c')](_0x31db32('0x1e'),_0x3e1b67+'-'+_0x5cf37a+'/'+_0x3a13af)[_0x31db32('0xe')](_0x3880fb);}return null;};}function saveUpdates(_0x371b37){return function(_0x33b9f8){const _0x4c0177=a386_0x4836;if(_0x33b9f8)return _0x33b9f8['update'](_0x371b37)[_0x4c0177('0x2')](function(_0x5d8067){return _0x5d8067;});return null;};}function removeEntity(_0x39724f){return function(_0x45d3bb){const _0x85577e=a386_0x4836;if(_0x45d3bb)return _0x45d3bb['destroy']()[_0x85577e('0x2')](function(){const _0xab7f0e=_0x85577e;_0x39724f[_0xab7f0e('0x0')](0xcc)[_0xab7f0e('0x21')]();});};}function handleEntityNotFound(_0x1fda3f){return function(_0x6c95b2){const _0x182387=a386_0x4836;return!_0x6c95b2&&_0x1fda3f[_0x182387('0x29')](0x194),_0x6c95b2;};}function handleError(_0x7e7036,_0x4390e7){return _0x4390e7=_0x4390e7||0x1f4,function(_0x5c8a16){const _0x4813f0=a386_0x4836;logger[_0x4813f0('0x35')](_0x5c8a16[_0x4813f0('0x13')]),_0x5c8a16['name']&&delete _0x5c8a16[_0x4813f0('0x4')],_0x7e7036['status'](_0x4390e7)[_0x4813f0('0x1b')](_0x5c8a16);};}exports[_0x318379('0x5')]=function(_0x507418,_0x5b266b){const _0x37afc1=_0x318379;let _0x3da9a6={};const _0x526bd5={},_0x18ef56={'count':0x0,'rows':[]},_0x15df6f=_[_0x37afc1('0x23')](db[_0x37afc1('0x33')][_0x37afc1('0x2b')],function(_0x13af6b){const _0x535a47=_0x37afc1;return{'name':_0x13af6b['fieldName'],'type':_0x13af6b['type'][_0x535a47('0x11')]};});_0x526bd5[_0x37afc1('0x27')]=_[_0x37afc1('0x23')](_0x15df6f,_0x37afc1('0x4')),_0x526bd5[_0x37afc1('0x8')]=_[_0x37afc1('0x3')](_0x507418['query']),_0x526bd5[_0x37afc1('0x30')]=_[_0x37afc1('0xb')](_0x526bd5[_0x37afc1('0x27')],_0x526bd5[_0x37afc1('0x8')]),_0x3da9a6[_0x37afc1('0xd')]=_['intersection'](_0x526bd5['model'],qs[_0x37afc1('0xa')](_0x507418[_0x37afc1('0x8')][_0x37afc1('0xa')])),_0x3da9a6['attributes']=_0x3da9a6[_0x37afc1('0xd')]['length']?_0x3da9a6['attributes']:_0x526bd5[_0x37afc1('0x27')];typeof _0x507418[_0x37afc1('0x8')][_0x37afc1('0x16')]==='undefined'&&(_0x3da9a6[_0x37afc1('0x18')]=qs[_0x37afc1('0x18')](_0x507418[_0x37afc1('0x8')]['limit']),_0x3da9a6[_0x37afc1('0x22')]=qs[_0x37afc1('0x22')](_0x507418[_0x37afc1('0x8')]['offset']));_0x3da9a6['order']=qs[_0x37afc1('0x37')](_0x507418[_0x37afc1('0x8')]['sort']),_0x3da9a6[_0x37afc1('0x36')]=qs['filters'](_[_0x37afc1('0x25')](_0x507418[_0x37afc1('0x8')],_0x526bd5['filters']),_0x15df6f);_0x507418[_0x37afc1('0x8')]['filter']&&(_0x3da9a6[_0x37afc1('0x36')]=_['merge'](_0x3da9a6[_0x37afc1('0x36')],{[Op['or']]:_['map'](_0x15df6f,function(_0x10abc4){const _0x295d53=_0x37afc1;if(_0x10abc4[_0x295d53('0xc')]!==_0x295d53('0x9')){const _0x59e8ad={};return _0x59e8ad[_0x10abc4[_0x295d53('0x4')]]={[Op[_0x295d53('0x1c')]]:'%'+_0x507418[_0x295d53('0x8')][_0x295d53('0x26')]+'%'},_0x59e8ad;}})}));_0x3da9a6=_[_0x37afc1('0x15')]({},_0x3da9a6,_0x507418[_0x37afc1('0x1')]);const _0x4cc6b5={'where':_0x3da9a6[_0x37afc1('0x36')]};return db[_0x37afc1('0x33')][_0x37afc1('0x2d')](_0x4cc6b5)[_0x37afc1('0x2')](function(_0x25f996){const _0x25665d=_0x37afc1;return _0x18ef56['count']=_0x25f996,_0x507418[_0x25665d('0x8')][_0x25665d('0x10')]&&(_0x3da9a6[_0x25665d('0x31')]=[{'all':!![]}]),db[_0x25665d('0x33')][_0x25665d('0x24')](_0x3da9a6);})[_0x37afc1('0x2')](function(_0x417ca5){return _0x18ef56['rows']=_0x417ca5,_0x18ef56;})['then'](respondWithFilteredResult(_0x5b266b,_0x3da9a6))[_0x37afc1('0x1a')](handleError(_0x5b266b,null));},exports['show']=function(_0x931087,_0x20ca68){const _0x4b0766=_0x318379;let _0x15f8a0={'raw':!![],'where':{'id':_0x931087[_0x4b0766('0x38')]['id']}};const _0x4ac4ab={};return _0x4ac4ab[_0x4b0766('0x27')]=_[_0x4b0766('0x3')](db[_0x4b0766('0x33')][_0x4b0766('0x2b')]),_0x4ac4ab[_0x4b0766('0x8')]=_[_0x4b0766('0x3')](_0x931087[_0x4b0766('0x8')]),_0x4ac4ab[_0x4b0766('0x30')]=_[_0x4b0766('0xb')](_0x4ac4ab['model'],_0x4ac4ab[_0x4b0766('0x8')]),_0x15f8a0[_0x4b0766('0xd')]=_[_0x4b0766('0xb')](_0x4ac4ab[_0x4b0766('0x27')],qs[_0x4b0766('0xa')](_0x931087[_0x4b0766('0x8')][_0x4b0766('0xa')])),_0x15f8a0[_0x4b0766('0xd')]=_0x15f8a0[_0x4b0766('0xd')]['length']?_0x15f8a0['attributes']:_0x4ac4ab[_0x4b0766('0x27')],_0x931087[_0x4b0766('0x8')][_0x4b0766('0x10')]&&(_0x15f8a0['include']=[{'all':!![]}]),_0x15f8a0=_['merge']({},_0x15f8a0,_0x931087[_0x4b0766('0x1')]),db[_0x4b0766('0x33')][_0x4b0766('0x12')](_0x15f8a0)[_0x4b0766('0x2')](handleEntityNotFound(_0x20ca68,null))[_0x4b0766('0x2')](respondWithResult(_0x20ca68,null))['catch'](handleError(_0x20ca68,null));},exports[_0x318379('0x14')]=function(_0x28a4b5,_0x3fd46c){const _0x4baacc=_0x318379;return db[_0x4baacc('0x33')][_0x4baacc('0x14')](_0x28a4b5['body'],{})[_0x4baacc('0x2')](respondWithResult(_0x3fd46c,0xc9))[_0x4baacc('0x1a')](handleError(_0x3fd46c,null));},exports[_0x318379('0x34')]=function(_0x490040,_0x5f5140){const _0x1876ea=_0x318379;return _0x490040[_0x1876ea('0x1f')]['id']&&delete _0x490040[_0x1876ea('0x1f')]['id'],db[_0x1876ea('0x33')][_0x1876ea('0x12')]({'where':{'id':_0x490040[_0x1876ea('0x38')]['id']}})[_0x1876ea('0x2')](handleEntityNotFound(_0x5f5140,null))[_0x1876ea('0x2')](saveUpdates(_0x490040[_0x1876ea('0x1f')],null))['then'](respondWithResult(_0x5f5140,null))[_0x1876ea('0x1a')](handleError(_0x5f5140,null));},exports[_0x318379('0xf')]=function(_0x4ef245,_0x4a7295){const _0x58b58b=_0x318379;return db[_0x58b58b('0x33')][_0x58b58b('0x12')]({'where':{'id':_0x4ef245[_0x58b58b('0x38')]['id']}})['then'](handleEntityNotFound(_0x4a7295,null))[_0x58b58b('0x2')](removeEntity(_0x4a7295,null))[_0x58b58b('0x1a')](handleError(_0x4a7295,null));},exports[_0x318379('0x28')]=function(_0x275497,_0x4999b2){const _0x4b1385=_0x318379;return db[_0x4b1385('0x33')]['describe']()[_0x4b1385('0x2')](respondWithResult(_0x4999b2,null))['catch'](handleError(_0x4999b2,null));},exports[_0x318379('0x7')]=function(_0x56811c,_0x51ff27){const _0x44b926=_0x318379;let _0x5c2298={'raw':!![],'where':{}};const _0x290118={},_0x3a6fad={'count':0x0,'rows':[]};return db[_0x44b926('0x33')]['findOne']({'where':{'id':_0x56811c[_0x44b926('0x38')]['id']}})['then'](handleEntityNotFound(_0x51ff27,null))[_0x44b926('0x2')](function(_0x5f24d8){const _0xdcef1b=_0x44b926;if(_0x5f24d8)return _0x290118[_0xdcef1b('0x27')]=_[_0xdcef1b('0x3')](db[_0xdcef1b('0x1d')][_0xdcef1b('0x2b')]),_0x290118[_0xdcef1b('0x8')]=_[_0xdcef1b('0x3')](_0x56811c[_0xdcef1b('0x8')]),_0x290118[_0xdcef1b('0x30')]=_[_0xdcef1b('0xb')](_0x290118[_0xdcef1b('0x27')],_0x290118['query']),_0x5c2298[_0xdcef1b('0xd')]=_[_0xdcef1b('0xb')](_0x290118['model'],qs['fields'](_0x56811c[_0xdcef1b('0x8')][_0xdcef1b('0xa')])),_0x5c2298['attributes']=_0x5c2298[_0xdcef1b('0xd')][_0xdcef1b('0x2a')]?_0x5c2298[_0xdcef1b('0xd')]:_0x290118[_0xdcef1b('0x27')],typeof _0x56811c[_0xdcef1b('0x8')][_0xdcef1b('0x16')]==='undefined'&&(_0x5c2298[_0xdcef1b('0x18')]=qs['limit'](_0x56811c[_0xdcef1b('0x8')][_0xdcef1b('0x18')]),_0x5c2298[_0xdcef1b('0x22')]=qs[_0xdcef1b('0x22')](_0x56811c[_0xdcef1b('0x8')][_0xdcef1b('0x22')])),_0x5c2298[_0xdcef1b('0x20')]=qs['sort'](_0x56811c[_0xdcef1b('0x8')][_0xdcef1b('0x37')]),_0x5c2298['where']=qs[_0xdcef1b('0x30')](_[_0xdcef1b('0x25')](_0x56811c[_0xdcef1b('0x8')],_0x290118['filters'])),_0x5c2298['where']['SessionId']=_0x5f24d8['id'],_0x56811c[_0xdcef1b('0x8')][_0xdcef1b('0x26')]&&(_0x5c2298['where']=_['merge'](_0x5c2298[_0xdcef1b('0x36')],{[Op['or']]:_['map'](_0x5c2298['attributes'],function(_0x525485){const _0x23e601=_0xdcef1b,_0x5e2d63={};return _0x5e2d63[_0x525485]={[Op['like']]:'%'+_0x56811c['query'][_0x23e601('0x26')]+'%'},_0x5e2d63;})})),_0x5c2298=_[_0xdcef1b('0x15')]({},_0x5c2298,_0x56811c[_0xdcef1b('0x1')]),db[_0xdcef1b('0x1d')][_0xdcef1b('0x2d')]({'where':_0x5c2298[_0xdcef1b('0x36')]})['then'](function(_0x26783e){const _0x56ce8e=_0xdcef1b;return _0x3a6fad[_0x56ce8e('0x2d')]=_0x26783e,_0x56811c['query']['includeAll']&&(_0x5c2298[_0x56ce8e('0x31')]=[{'all':!![]}]),db[_0x56ce8e('0x1d')][_0x56ce8e('0x24')](_0x5c2298);})[_0xdcef1b('0x2')](function(_0xe9ebcb){const _0x17c646=_0xdcef1b;return _0x3a6fad[_0x17c646('0x2e')]=_0xe9ebcb,_0x3a6fad;});})['then'](respondWithFilteredResult(_0x51ff27,_0x5c2298))[_0x44b926('0x1a')](handleError(_0x51ff27,null));}; \ No newline at end of file diff --git a/server/api/jscriptySessionReport/jscriptySessionReport.model.js b/server/api/jscriptySessionReport/jscriptySessionReport.model.js index 55409a9..09e2b5b 100644 --- a/server/api/jscriptySessionReport/jscriptySessionReport.model.js +++ b/server/api/jscriptySessionReport/jscriptySessionReport.model.js @@ -1 +1 @@ -const a387_0x19f4=['define','exports','./jscriptySessionReport.attributes','JscriptySessionReport','report_jscripty_sessions'];(function(_0x232c45,_0x19f485){const _0x3e0a7c=function(_0x4bf66c){while(--_0x4bf66c){_0x232c45['push'](_0x232c45['shift']());}};_0x3e0a7c(++_0x19f485);}(a387_0x19f4,0x101));const a387_0x3e0a=function(_0x232c45,_0x19f485){_0x232c45=_0x232c45-0x0;let _0x3e0a7c=a387_0x19f4[_0x232c45];return _0x3e0a7c;};const _0x1365a8=a387_0x3e0a;'use strict';const attributes=require(_0x1365a8('0x0'));module[_0x1365a8('0x4')]=function(_0x4bf66c){const _0x3bcb6a=_0x1365a8,_0x236006=_0x4bf66c[_0x3bcb6a('0x3')](_0x3bcb6a('0x1'),attributes,{'tableName':_0x3bcb6a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x236006;}; \ No newline at end of file +const a387_0x47be=['./jscriptySessionReport.attributes','define','JscriptySessionReport','exports'];(function(_0x54e42a,_0x47bee8){const _0x12cbdb=function(_0x32d68a){while(--_0x32d68a){_0x54e42a['push'](_0x54e42a['shift']());}};_0x12cbdb(++_0x47bee8);}(a387_0x47be,0xc0));const a387_0x12cb=function(_0x54e42a,_0x47bee8){_0x54e42a=_0x54e42a-0x0;let _0x12cbdb=a387_0x47be[_0x54e42a];return _0x12cbdb;};const _0x3b380c=a387_0x12cb;'use strict';const attributes=require(_0x3b380c('0x0'));module[_0x3b380c('0x3')]=function(_0x32d68a){const _0xb0171c=_0x3b380c,_0x2ae04f=_0x32d68a[_0xb0171c('0x1')](_0xb0171c('0x2'),attributes,{'tableName':'report_jscripty_sessions','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2ae04f;}; \ No newline at end of file diff --git a/server/api/license/index.js b/server/api/license/index.js index cd7a25b..4cd4ce1 100644 --- a/server/api/license/index.js +++ b/server/api/license/index.js @@ -1 +1 @@ -const a388_0x3dc1=['express','../../components/auth/service','get','/:id','update','isAuthenticated','put','Router'];(function(_0x431a4c,_0x3dc13c){const _0x42d004=function(_0x4edc38){while(--_0x4edc38){_0x431a4c['push'](_0x431a4c['shift']());}};_0x42d004(++_0x3dc13c);}(a388_0x3dc1,0x19e));const a388_0x42d0=function(_0x431a4c,_0x3dc13c){_0x431a4c=_0x431a4c-0x0;let _0x42d004=a388_0x3dc1[_0x431a4c];return _0x42d004;};const _0x39b086=a388_0x42d0;'use strict';const express=require(_0x39b086('0x2')),router=express[_0x39b086('0x1')](),auth=require(_0x39b086('0x3')),controller=require('./license.controller');router[_0x39b086('0x4')]('/',controller['index']),router[_0x39b086('0x0')](_0x39b086('0x5'),auth[_0x39b086('0x7')](),controller[_0x39b086('0x6')]),module['exports']=router; \ No newline at end of file +const a388_0x460a=['put','isAuthenticated','Router','./license.controller','index','/:id','../../components/auth/service','exports','express'];(function(_0x4dafe8,_0x460a5b){const _0x180a27=function(_0x20852c){while(--_0x20852c){_0x4dafe8['push'](_0x4dafe8['shift']());}};_0x180a27(++_0x460a5b);}(a388_0x460a,0x84));const a388_0x180a=function(_0x4dafe8,_0x460a5b){_0x4dafe8=_0x4dafe8-0x0;let _0x180a27=a388_0x460a[_0x4dafe8];return _0x180a27;};const _0x59956d=a388_0x180a;'use strict';const express=require(_0x59956d('0x2')),router=express[_0x59956d('0x5')](),auth=require(_0x59956d('0x0')),controller=require(_0x59956d('0x6'));router['get']('/',controller[_0x59956d('0x7')]),router[_0x59956d('0x3')](_0x59956d('0x8'),auth[_0x59956d('0x4')](),controller['update']),module[_0x59956d('0x1')]=router; \ No newline at end of file diff --git a/server/api/license/license.attributes.js b/server/api/license/license.attributes.js index e1d2ded..73dc2f4 100644 --- a/server/api/license/license.attributes.js +++ b/server/api/license/license.attributes.js @@ -1 +1 @@ -const a389_0x4b87=['STRING','INTEGER','TEXT'];(function(_0x328d6a,_0x4b874d){const _0x5c4628=function(_0x5970b7){while(--_0x5970b7){_0x328d6a['push'](_0x328d6a['shift']());}};_0x5c4628(++_0x4b874d);}(a389_0x4b87,0xd7));const a389_0x5c46=function(_0x328d6a,_0x4b874d){_0x328d6a=_0x328d6a-0x0;let _0x5c4628=a389_0x4b87[_0x328d6a];return _0x5c4628;};const _0x46d2c5=a389_0x5c46;'use strict';const Sequelize=require('sequelize');module['exports']={'license':{'type':Sequelize[_0x46d2c5('0x0')]},'data1':{'type':Sequelize['STRING']},'data2':{'type':Sequelize[_0x46d2c5('0x1')]},'chatLicenseExceeded':{'type':Sequelize[_0x46d2c5('0x2')],'defaultValue':0x0}}; \ No newline at end of file +const a389_0x5b6c=['sequelize','exports','STRING'];(function(_0x16ac87,_0x5b6c4a){const _0x2018d7=function(_0x2e39a4){while(--_0x2e39a4){_0x16ac87['push'](_0x16ac87['shift']());}};_0x2018d7(++_0x5b6c4a);}(a389_0x5b6c,0x1c8));const a389_0x2018=function(_0x16ac87,_0x5b6c4a){_0x16ac87=_0x16ac87-0x0;let _0x2018d7=a389_0x5b6c[_0x16ac87];return _0x2018d7;};const _0x4916d2=a389_0x2018;'use strict';const Sequelize=require(_0x4916d2('0x0'));module[_0x4916d2('0x1')]={'license':{'type':Sequelize['TEXT']},'data1':{'type':Sequelize[_0x4916d2('0x2')]},'data2':{'type':Sequelize[_0x4916d2('0x2')]},'chatLicenseExceeded':{'type':Sequelize['INTEGER'],'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 e1322cc..f19905d 100644 --- a/server/api/license/license.controller.js +++ b/server/api/license/license.controller.js @@ -1 +1 @@ -const a390_0x5932=['then','checkLicense','lodash','attributes','send','model','demo','update','stack','../../config/license/util','index','License','params','../../components/parsers/qs','rawAttributes','../../config/logger','merge','sendStatus','filters','name','getLicense','error','options','query','../../mysqldb','catch','fields','keys','status','length','intersection','findOne'];(function(_0x49e83c,_0x593224){const _0x146318=function(_0x3a2a83){while(--_0x3a2a83){_0x49e83c['push'](_0x49e83c['shift']());}};_0x146318(++_0x593224);}(a390_0x5932,0x12c));const a390_0x1463=function(_0x49e83c,_0x593224){_0x49e83c=_0x49e83c-0x0;let _0x146318=a390_0x5932[_0x49e83c];return _0x146318;};const _0x2752d0=a390_0x1463;'use strict';const _=require(_0x2752d0('0x16')),qs=require(_0x2752d0('0x1')),logger=require(_0x2752d0('0x3'))('api'),db=require(_0x2752d0('0xc'))['db'];function respondWithResult(_0x3a2a83,_0x533ab3){return _0x533ab3=_0x533ab3||0xc8,function(_0x57be73){const _0x5397af=a390_0x1463;if(_0x57be73)return _0x3a2a83[_0x5397af('0x10')](_0x533ab3)['json'](_0x57be73);};}function saveUpdates(_0x24f6d5){return function(_0x375b98){const _0x1bdbe9=a390_0x1463;if(_0x375b98)return _0x375b98[_0x1bdbe9('0x1b')](_0x24f6d5)[_0x1bdbe9('0x14')](function(_0x359375){return _0x359375;});return null;};}function handleEntityNotFound(_0x5297b6){return function(_0x3bf2d0){const _0x4baa2e=a390_0x1463;return!_0x3bf2d0&&_0x5297b6[_0x4baa2e('0x5')](0x194),_0x3bf2d0;};}function handleError(_0x4ae46a,_0x5bdf07){return _0x5bdf07=_0x5bdf07||0x1f4,function(_0x2daa64){const _0x4c13d5=a390_0x1463;logger[_0x4c13d5('0x9')](_0x2daa64[_0x4c13d5('0x1c')]),_0x2daa64['name']&&delete _0x2daa64[_0x4c13d5('0x7')],_0x4ae46a[_0x4c13d5('0x10')](_0x5bdf07)[_0x4c13d5('0x18')](_0x2daa64);};}const utilLicense=require(_0x2752d0('0x1d'));exports[_0x2752d0('0x1e')]=function(_0x181a97,_0xbf80f2){const _0x4b9f5b=_0x2752d0;let _0x2b4aaa={'raw':!![],'where':{'id':0x1}};const _0x3bd129={};return _0x3bd129[_0x4b9f5b('0x19')]=_[_0x4b9f5b('0xf')](db[_0x4b9f5b('0x1f')][_0x4b9f5b('0x2')]),_0x3bd129[_0x4b9f5b('0xb')]=_[_0x4b9f5b('0xf')](_0x181a97[_0x4b9f5b('0xb')]),_0x3bd129[_0x4b9f5b('0x6')]=_[_0x4b9f5b('0x12')](_0x3bd129[_0x4b9f5b('0x19')],_0x3bd129[_0x4b9f5b('0xb')]),_0x2b4aaa[_0x4b9f5b('0x17')]=_['intersection'](_0x3bd129[_0x4b9f5b('0x19')],qs['fields'](_0x181a97[_0x4b9f5b('0xb')][_0x4b9f5b('0xe')])),_0x2b4aaa[_0x4b9f5b('0x17')]=_0x2b4aaa['attributes'][_0x4b9f5b('0x11')]?_0x2b4aaa[_0x4b9f5b('0x17')]:_0x3bd129[_0x4b9f5b('0x19')],_0x2b4aaa=_[_0x4b9f5b('0x4')]({},_0x2b4aaa,_0x181a97[_0x4b9f5b('0xa')]),utilLicense[_0x4b9f5b('0x8')](_0x2b4aaa)[_0x4b9f5b('0x14')](respondWithResult(_0xbf80f2,null))[_0x4b9f5b('0xd')](handleError(_0xbf80f2,null));},exports[_0x2752d0('0x1b')]=function(_0x428fba,_0x23fb95){const _0x220b96=_0x2752d0;return _0x428fba['body']['id']&&delete _0x428fba['body']['id'],db[_0x220b96('0x1f')][_0x220b96('0x13')]({'where':{'id':_0x428fba[_0x220b96('0x0')]['id']}})[_0x220b96('0x14')](handleEntityNotFound(_0x23fb95,null))[_0x220b96('0x14')](function(_0x2c0ffa){const _0x44e8b4=_0x220b96,_0xcdd12b=_0x2c0ffa['get']({'plain':!![]});return utilLicense[_0x44e8b4('0x15')](_0xcdd12b,_0x428fba['body']['key']);})['then'](function(_0x486f00){const _0x90f75e=_0x220b96;if(!_0x486f00[_0x90f75e('0x1a')])return saveUpdates(_0x428fba['body'],null);return _0x486f00;})[_0x220b96('0x14')](respondWithResult(_0x23fb95,null))['catch'](handleError(_0x23fb95,null));}; \ No newline at end of file +const a390_0xf2b2=['then','json','intersection','body','catch','rawAttributes','License','options','keys','error','merge','stack','findOne','../../config/license/util','api','get','query','attributes','../../config/logger','status','index','length','model','filters','getLicense','fields','key','name','sendStatus','update','../../mysqldb','params','lodash'];(function(_0x18351f,_0xf2b2b1){const _0x11c359=function(_0x3908d6){while(--_0x3908d6){_0x18351f['push'](_0x18351f['shift']());}};_0x11c359(++_0xf2b2b1);}(a390_0xf2b2,0x15a));const a390_0x11c3=function(_0x18351f,_0xf2b2b1){_0x18351f=_0x18351f-0x0;let _0x11c359=a390_0xf2b2[_0x18351f];return _0x11c359;};const _0x5356ad=a390_0x11c3;'use strict';const _=require(_0x5356ad('0x10')),qs=require('../../components/parsers/qs'),logger=require(_0x5356ad('0x2'))(_0x5356ad('0x1f')),db=require(_0x5356ad('0xe'))['db'];function respondWithResult(_0x3908d6,_0x414305){return _0x414305=_0x414305||0xc8,function(_0x2b3937){const _0x44f791=a390_0x11c3;if(_0x2b3937)return _0x3908d6[_0x44f791('0x3')](_0x414305)[_0x44f791('0x12')](_0x2b3937);};}function saveUpdates(_0x4f1488){return function(_0x5bca45){const _0x34e93c=a390_0x11c3;if(_0x5bca45)return _0x5bca45[_0x34e93c('0xd')](_0x4f1488)[_0x34e93c('0x11')](function(_0x1d13bf){return _0x1d13bf;});return null;};}function handleEntityNotFound(_0xc80967){return function(_0x84eba2){const _0x214675=a390_0x11c3;return!_0x84eba2&&_0xc80967[_0x214675('0xc')](0x194),_0x84eba2;};}function handleError(_0x2e539f,_0x5264c9){return _0x5264c9=_0x5264c9||0x1f4,function(_0x15cd12){const _0x392cba=a390_0x11c3;logger[_0x392cba('0x1a')](_0x15cd12[_0x392cba('0x1c')]),_0x15cd12[_0x392cba('0xb')]&&delete _0x15cd12[_0x392cba('0xb')],_0x2e539f[_0x392cba('0x3')](_0x5264c9)['send'](_0x15cd12);};}const utilLicense=require(_0x5356ad('0x1e'));exports[_0x5356ad('0x4')]=function(_0x4014c5,_0x134452){const _0x11f4b9=_0x5356ad;let _0x32540e={'raw':!![],'where':{'id':0x1}};const _0x5a0814={};return _0x5a0814[_0x11f4b9('0x6')]=_[_0x11f4b9('0x19')](db[_0x11f4b9('0x17')][_0x11f4b9('0x16')]),_0x5a0814[_0x11f4b9('0x0')]=_['keys'](_0x4014c5[_0x11f4b9('0x0')]),_0x5a0814[_0x11f4b9('0x7')]=_[_0x11f4b9('0x13')](_0x5a0814['model'],_0x5a0814[_0x11f4b9('0x0')]),_0x32540e[_0x11f4b9('0x1')]=_[_0x11f4b9('0x13')](_0x5a0814[_0x11f4b9('0x6')],qs[_0x11f4b9('0x9')](_0x4014c5['query']['fields'])),_0x32540e[_0x11f4b9('0x1')]=_0x32540e[_0x11f4b9('0x1')][_0x11f4b9('0x5')]?_0x32540e['attributes']:_0x5a0814[_0x11f4b9('0x6')],_0x32540e=_[_0x11f4b9('0x1b')]({},_0x32540e,_0x4014c5[_0x11f4b9('0x18')]),utilLicense[_0x11f4b9('0x8')](_0x32540e)[_0x11f4b9('0x11')](respondWithResult(_0x134452,null))[_0x11f4b9('0x15')](handleError(_0x134452,null));},exports[_0x5356ad('0xd')]=function(_0x42088a,_0x266355){const _0x11ae68=_0x5356ad;return _0x42088a[_0x11ae68('0x14')]['id']&&delete _0x42088a[_0x11ae68('0x14')]['id'],db[_0x11ae68('0x17')][_0x11ae68('0x1d')]({'where':{'id':_0x42088a[_0x11ae68('0xf')]['id']}})[_0x11ae68('0x11')](handleEntityNotFound(_0x266355,null))[_0x11ae68('0x11')](function(_0x478ebe){const _0x42eff2=_0x11ae68,_0x21e0ae=_0x478ebe[_0x42eff2('0x20')]({'plain':!![]});return utilLicense['checkLicense'](_0x21e0ae,_0x42088a['body'][_0x42eff2('0xa')]);})[_0x11ae68('0x11')](function(_0x955feb){const _0x2c4570=_0x11ae68;if(!_0x955feb['demo'])return saveUpdates(_0x42088a[_0x2c4570('0x14')],null);return _0x955feb;})[_0x11ae68('0x11')](respondWithResult(_0x266355,null))[_0x11ae68('0x15')](handleError(_0x266355,null));}; \ No newline at end of file diff --git a/server/api/license/license.model.js b/server/api/license/license.model.js index 76f53f7..a434822 100644 --- a/server/api/license/license.model.js +++ b/server/api/license/license.model.js @@ -1 +1 @@ -const a391_0x1000=['License','exports','define','license','./license.attributes'];(function(_0x2b11a0,_0x10002d){const _0x15144c=function(_0x2b1e2f){while(--_0x2b1e2f){_0x2b11a0['push'](_0x2b11a0['shift']());}};_0x15144c(++_0x10002d);}(a391_0x1000,0xc0));const a391_0x1514=function(_0x2b11a0,_0x10002d){_0x2b11a0=_0x2b11a0-0x0;let _0x15144c=a391_0x1000[_0x2b11a0];return _0x15144c;};const _0x38d595=a391_0x1514;'use strict';const attributes=require(_0x38d595('0x2'));module[_0x38d595('0x4')]=function(_0x2b1e2f){const _0x4b3d19=_0x38d595,_0x37143a=_0x2b1e2f[_0x4b3d19('0x0')](_0x4b3d19('0x3'),attributes,{'tableName':_0x4b3d19('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x37143a;}; \ No newline at end of file +const a391_0x4e58=['./license.attributes','license','define','exports'];(function(_0x5626af,_0x4e58aa){const _0x2a3630=function(_0x47d063){while(--_0x47d063){_0x5626af['push'](_0x5626af['shift']());}};_0x2a3630(++_0x4e58aa);}(a391_0x4e58,0x18d));const a391_0x2a36=function(_0x5626af,_0x4e58aa){_0x5626af=_0x5626af-0x0;let _0x2a3630=a391_0x4e58[_0x5626af];return _0x2a3630;};const _0x4fe0ca=a391_0x2a36;'use strict';const attributes=require(_0x4fe0ca('0x3'));module[_0x4fe0ca('0x2')]=function(_0x47d063){const _0x176f9d=_0x4fe0ca,_0x32dec=_0x47d063[_0x176f9d('0x1')]('License',attributes,{'tableName':_0x176f9d('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x32dec;}; \ No newline at end of file diff --git a/server/api/mailAccount/index.js b/server/api/mailAccount/index.js index c9074a7..3e4bc8c 100644 --- a/server/api/mailAccount/index.js +++ b/server/api/mailAccount/index.js @@ -1 +1 @@ -const a392_0x8644=['/:id/messages','destroy','addAgents','addSmtp','/:id/canned_answers','/:id/out_servers','post','/:id/verify','addInteraction','addImap','express','getSmtp','getMessages','/:id/dispositions','getDispositions','/describe','index','removeDispositions','verifySmtp','/:id/in_servers','get','/:id/applications','./mailAccount.controller','/:id/interactions','/:id/send','addDisposition','isAuthenticated','removeImap','Router','../../components/auth/service','send','getImap','removeSmtp','addApplications','/:id','/:id/users','removeAgents','getInteractions','getAnswers','delete'];(function(_0x1b1a6a,_0x8644bf){const _0x36c6ca=function(_0x368b7a){while(--_0x368b7a){_0x1b1a6a['push'](_0x1b1a6a['shift']());}};_0x36c6ca(++_0x8644bf);}(a392_0x8644,0x1da));const a392_0x36c6=function(_0x1b1a6a,_0x8644bf){_0x1b1a6a=_0x1b1a6a-0x0;let _0x36c6ca=a392_0x8644[_0x1b1a6a];return _0x36c6ca;};const _0xdd255f=a392_0x36c6;'use strict';const express=require(_0xdd255f('0x10')),router=express[_0xdd255f('0x22')](),auth=require(_0xdd255f('0x23')),controller=require(_0xdd255f('0x1c'));router['get']('/',auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x16')]),router['get'](_0xdd255f('0x15'),auth[_0xdd255f('0x20')](),controller['describe']),router[_0xdd255f('0x1a')](_0xdd255f('0x0'),auth['isAuthenticated'](),controller['show']),router[_0xdd255f('0x1a')](_0xdd255f('0x13'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x14')]),router[_0xdd255f('0x1a')]('/:id/canned_answers',auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x4')]),router[_0xdd255f('0x1a')]('/:id/in_servers',auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x25')]),router[_0xdd255f('0x1a')](_0xdd255f('0xb'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x11')]),router[_0xdd255f('0x1a')](_0xdd255f('0x1d'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x3')]),router[_0xdd255f('0x1a')](_0xdd255f('0x1b'),auth[_0xdd255f('0x20')](),controller['getApplications']),router[_0xdd255f('0x1a')](_0xdd255f('0x6'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x12')]),router[_0xdd255f('0x1a')](_0xdd255f('0xd'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x18')]),router[_0xdd255f('0x1a')]('/:id/users',auth['isAuthenticated'](),controller['getAgents']),router['post'](_0xdd255f('0x13'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x1f')]),router[_0xdd255f('0xc')](_0xdd255f('0xa'),auth[_0xdd255f('0x20')](),controller['addAnswer']),router[_0xdd255f('0xc')]('/',auth[_0xdd255f('0x20')](),controller['create']),router['post'](_0xdd255f('0x19'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0xf')]),router[_0xdd255f('0xc')]('/:id/out_servers',auth['isAuthenticated'](),controller[_0xdd255f('0x9')]),router['post'](_0xdd255f('0x1d'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0xe')]),router['post'](_0xdd255f('0x1b'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x27')]),router[_0xdd255f('0xc')](_0xdd255f('0x1e'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x24')]),router[_0xdd255f('0xc')](_0xdd255f('0x1'),auth['isAuthenticated'](),controller[_0xdd255f('0x8')]),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router[_0xdd255f('0x5')]('/:id/dispositions',auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x17')]),router[_0xdd255f('0x5')](_0xdd255f('0xa'),auth[_0xdd255f('0x20')](),controller['removeAnswers']),router['delete']('/:id/in_servers',auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x21')]),router[_0xdd255f('0x5')](_0xdd255f('0xb'),auth['isAuthenticated'](),controller[_0xdd255f('0x26')]),router[_0xdd255f('0x5')](_0xdd255f('0x0'),auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x7')]),router[_0xdd255f('0x5')]('/:id/users',auth[_0xdd255f('0x20')](),controller[_0xdd255f('0x2')]),module['exports']=router; \ No newline at end of file +const a392_0x4f1d=['/:id/send','verifySmtp','/:id/verify','get','send','getAnswers','removeDispositions','getApplications','isAuthenticated','destroy','/:id/applications','addDisposition','/:id/dispositions','/:id/messages','index','/:id/canned_answers','/describe','getSmtp','/:id/interactions','/:id','/:id/in_servers','./mailAccount.controller','addSmtp','getMessages','addImap','delete','post','addApplications','/:id/out_servers','create','../../components/auth/service','/:id/users','addAnswer','getAgents','show','addAgents','removeAnswers','express'];(function(_0x52ae95,_0x4f1d9b){const _0x4a0257=function(_0x55bf63){while(--_0x55bf63){_0x52ae95['push'](_0x52ae95['shift']());}};_0x4a0257(++_0x4f1d9b);}(a392_0x4f1d,0xab));const a392_0x4a02=function(_0x52ae95,_0x4f1d9b){_0x52ae95=_0x52ae95-0x0;let _0x4a0257=a392_0x4f1d[_0x52ae95];return _0x4a0257;};const _0x55c0f9=a392_0x4a02;'use strict';const express=require(_0x55c0f9('0x12')),router=express['Router'](),auth=require(_0x55c0f9('0xb')),controller=require(_0x55c0f9('0x2'));router[_0x55c0f9('0x16')]('/',auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x21')]),router[_0x55c0f9('0x16')](_0x55c0f9('0x23'),auth[_0x55c0f9('0x1b')](),controller['describe']),router[_0x55c0f9('0x16')](_0x55c0f9('0x0'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0xf')]),router['get'](_0x55c0f9('0x1f'),auth[_0x55c0f9('0x1b')](),controller['getDispositions']),router[_0x55c0f9('0x16')](_0x55c0f9('0x22'),auth['isAuthenticated'](),controller[_0x55c0f9('0x18')]),router[_0x55c0f9('0x16')](_0x55c0f9('0x1'),auth[_0x55c0f9('0x1b')](),controller['getImap']),router['get'](_0x55c0f9('0x9'),auth['isAuthenticated'](),controller[_0x55c0f9('0x24')]),router['get'](_0x55c0f9('0x25'),auth[_0x55c0f9('0x1b')](),controller['getInteractions']),router[_0x55c0f9('0x16')](_0x55c0f9('0x1d'),auth['isAuthenticated'](),controller[_0x55c0f9('0x1a')]),router[_0x55c0f9('0x16')](_0x55c0f9('0x20'),auth['isAuthenticated'](),controller[_0x55c0f9('0x4')]),router[_0x55c0f9('0x16')](_0x55c0f9('0x15'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x14')]),router['get'](_0x55c0f9('0xc'),auth['isAuthenticated'](),controller[_0x55c0f9('0xe')]),router[_0x55c0f9('0x7')](_0x55c0f9('0x1f'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x1e')]),router[_0x55c0f9('0x7')](_0x55c0f9('0x22'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0xd')]),router['post']('/',auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0xa')]),router[_0x55c0f9('0x7')](_0x55c0f9('0x1'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x5')]),router[_0x55c0f9('0x7')](_0x55c0f9('0x9'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x3')]),router[_0x55c0f9('0x7')]('/:id/interactions',auth[_0x55c0f9('0x1b')](),controller['addInteraction']),router['post'](_0x55c0f9('0x1d'),auth['isAuthenticated'](),controller[_0x55c0f9('0x8')]),router[_0x55c0f9('0x7')](_0x55c0f9('0x13'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x17')]),router[_0x55c0f9('0x7')](_0x55c0f9('0xc'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x10')]),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router['delete'](_0x55c0f9('0x1f'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x19')]),router['delete'](_0x55c0f9('0x22'),auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x11')]),router[_0x55c0f9('0x6')]('/:id/in_servers',auth[_0x55c0f9('0x1b')](),controller['removeImap']),router[_0x55c0f9('0x6')](_0x55c0f9('0x9'),auth[_0x55c0f9('0x1b')](),controller['removeSmtp']),router[_0x55c0f9('0x6')]('/:id',auth[_0x55c0f9('0x1b')](),controller[_0x55c0f9('0x1c')]),router[_0x55c0f9('0x6')]('/:id/users',auth[_0x55c0f9('0x1b')](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.attributes.js b/server/api/mailAccount/mailAccount.attributes.js index 5eba6fa..459e198 100644 --- a/server/api/mailAccount/mailAccount.attributes.js +++ b/server/api/mailAccount/mailAccount.attributes.js @@ -1 +1 @@ -const a393_0x1817=['STRING','TEXT','BOOLEAN','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','exports','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}
Subject\x20:\x20{{message.subject}}','setDataValue','mandatoryDispositionPauseId','INTEGER','Arial,Helvetica,sans-serif','sequelize','mandatoryDisposition'];(function(_0x3366eb,_0x181745){const _0x589ecc=function(_0x5cd73c){while(--_0x5cd73c){_0x3366eb['push'](_0x3366eb['shift']());}};_0x589ecc(++_0x181745);}(a393_0x1817,0xe1));const a393_0x589e=function(_0x3366eb,_0x181745){_0x3366eb=_0x3366eb-0x0;let _0x589ecc=a393_0x1817[_0x3366eb];return _0x589ecc;};const _0x55fd94=a393_0x589e;'use strict';const Sequelize=require(_0x55fd94('0x7'));module[_0x55fd94('0x0')]={'description':{'type':Sequelize['STRING']},'name':{'type':Sequelize[_0x55fd94('0x9')],'allowNull':![]},'service':{'type':Sequelize[_0x55fd94('0xb')],'defaultValue':![]},'email':{'type':Sequelize[_0x55fd94('0x9')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize[_0x55fd94('0xb')],'defaultValue':!![]},'key':{'type':Sequelize[_0x55fd94('0x9')],'allowNull':![]},'template':{'type':Sequelize['TEXT']},'markAsUnread':{'type':Sequelize[_0x55fd94('0xb')],'defaultValue':![]},'fontFamily':{'type':Sequelize[_0x55fd94('0x9')],'allowNull':![],'defaultValue':_0x55fd94('0x6')},'fontSize':{'type':Sequelize[_0x55fd94('0x5')](0x2)['UNSIGNED'],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0x55fd94('0xa')],'defaultValue':function(){const _0x305bc8=_0x55fd94;return _0x305bc8('0x2');}},'notificationSound':{'type':Sequelize[_0x55fd94('0xb')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x55fd94('0xb')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x55fd94('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x55fd94('0xb')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x55fd94('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x55fd94('0xb')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x55fd94('0x5')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x55fd94('0x5')],'allowNull':!![],'defaultValue':null,'comment':_0x55fd94('0x1')},'mandatoryDisposition':{'type':Sequelize[_0x55fd94('0xb')],'defaultValue':![],'comment':_0x55fd94('0xc'),'set':function(_0x5cd73c){const _0x418abe=_0x55fd94;if(!_0x5cd73c)this[_0x418abe('0x3')](_0x418abe('0x4'),null);this['setDataValue'](_0x418abe('0x8'),_0x5cd73c);}}}; \ No newline at end of file +const a393_0x4613=['INTEGER','Arial,Helvetica,sans-serif','sequelize','STRING','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','exports','BOOLEAN','setDataValue','UNSIGNED','TEXT','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}}','mandatoryDisposition','mandatoryDispositionPauseId'];(function(_0x4d6697,_0x461399){const _0x222e13=function(_0x4781b9){while(--_0x4781b9){_0x4d6697['push'](_0x4d6697['shift']());}};_0x222e13(++_0x461399);}(a393_0x4613,0x143));const a393_0x222e=function(_0x4d6697,_0x461399){_0x4d6697=_0x4d6697-0x0;let _0x222e13=a393_0x4613[_0x4d6697];return _0x222e13;};const _0x5a8463=a393_0x222e;'use strict';const Sequelize=require(_0x5a8463('0x1'));module[_0x5a8463('0x4')]={'description':{'type':Sequelize[_0x5a8463('0x2')]},'name':{'type':Sequelize[_0x5a8463('0x2')],'allowNull':![]},'service':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0x5a8463('0x2')],'validate':{'isEmail':!![]}},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'key':{'type':Sequelize['STRING'],'allowNull':![]},'template':{'type':Sequelize[_0x5a8463('0x8')]},'markAsUnread':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'fontFamily':{'type':Sequelize[_0x5a8463('0x2')],'allowNull':![],'defaultValue':_0x5a8463('0x0')},'fontSize':{'type':Sequelize[_0x5a8463('0xd')](0x2)[_0x5a8463('0x7')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}},'notificationTemplate':{'type':Sequelize[_0x5a8463('0x8')],'defaultValue':function(){const _0x377dd0=_0x5a8463;return _0x377dd0('0xa');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x5a8463('0x5')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x5a8463('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x5a8463('0x5')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x5a8463('0xd')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x5a8463('0xd')],'allowNull':!![],'defaultValue':null,'comment':_0x5a8463('0x3')},'mandatoryDisposition':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'comment':_0x5a8463('0x9'),'set':function(_0x4781b9){const _0x592ca7=_0x5a8463;if(!_0x4781b9)this[_0x592ca7('0x6')](_0x592ca7('0xc'),null);this[_0x592ca7('0x6')](_0x592ca7('0xb'),_0x4781b9);}}}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.controller.js b/server/api/mailAccount/mailAccount.controller.js index 1b0de64..73010cd 100644 --- a/server/api/mailAccount/mailAccount.controller.js +++ b/server/api/mailAccount/mailAccount.controller.js @@ -1 +1 @@ -const a394_0x3ee9=['length','filter','updatedAt','../../config/logger','cuser','MailAccountId','VIRTUAL','getInteractions','MailAccount','authentication','Tag','userMailAccount:remove','../../components/parsers/qs','description','bulkCreate','from','service','removeDispositions','active','fieldName','CmContact','root','nolimit','attach','then','join','SendMail','MailAccounts','undefined','fields','count','findAll','attachments','like','lodash','addAnswer','tag','getAnswers','error','describe','keys','basename','MailApplication','attributes','Unable\x20to\x20retrieve\x20the\x20current\x20user','ListId','MailMessage','getApplications','removeAnswers','verifySmtp','name','getImap','cservice','intersection','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','where','Smtp','end','port','message','out','model','addImap','getDispositions','sendMail','debug','Owner','includeAll','isNil','filters','get','removeImap','stack','type','YYYY-MM-DD\x20HH:mm:ss','options','include','pick','MailAccount,\x20%s,\x20%s,\x20%s','$gte','removeAgents','List\x20not\x20found','Contacts','query','transaction','json','defaults','api','getAgents','sendStatus','removeSmtp','MailServerIn','password','request','addAgents','cpassword','key','../../rediscache','MailServerOut','cauthentication','addSmtp','pass','http','ids','addDisposition','Contact','emit','../../config/environment','send','limit','sort','UserProfileResource','path','findOne','catch','register','omit','format','order','result','info','mandatoryDispositionPause','create','rows','DESC','./mailAccount.socket','request\x20sent','merge','VerifySmtp','userProfileId','split','jayson/promise','Imap','body','CmList','userMailAccount:save','util','rawAttributes','subject','map','secure','MailInteraction','Pause','setSmtp','index','update','Messages','user','findAndCountAll','host','MailAccount,\x20%s,\x20%s','addInteraction','User','auth','List','destroy','priority','getMessages','getSmtp','../../mysqldb','offset','status','server/files/attachments','messageId','UserProfileSection','params','CannedAnswer','Disposition','Interaction'];(function(_0x983b61,_0x3ee99b){const _0x16cabe=function(_0x323126){while(--_0x323126){_0x983b61['push'](_0x983b61['shift']());}};_0x16cabe(++_0x3ee99b);}(a394_0x3ee9,0x193));const a394_0x16ca=function(_0x983b61,_0x3ee99b){_0x983b61=_0x983b61-0x0;let _0x16cabe=a394_0x3ee9[_0x983b61];return _0x16cabe;};const _0x31c430=a394_0x16ca;'use strict';const moment=require('moment'),util=require(_0x31c430('0x47')),path=require(_0x31c430('0x2f')),_=require(_0x31c430('0x8a')),{getSocket}=require(_0x31c430('0x20')),socket=getSocket(),qs=require(_0x31c430('0x74')),logger=require(_0x31c430('0x6b'))(_0x31c430('0x16')),config=require(_0x31c430('0x2a')),db=require(_0x31c430('0x5e'))['db'],{Op,ValidationError}=require('sequelize');require(_0x31c430('0x3c'))[_0x31c430('0x32')](socket);const jayson=require(_0x31c430('0x42')),client=jayson['client'][_0x31c430('0x25')]({'port':0x232b});function respondWithRpcPromise(_0x323126,_0x5d3808,_0x3069ff,_0x42a6f6){return new Promise(function(_0x363868,_0xbb2d33){const _0x580cfa=a394_0x16ca,_0x4ead77=_0x42a6f6||client;return _0x4ead77[_0x580cfa('0x1c')](_0x323126,_0x3069ff)[_0x580cfa('0x80')](function(_0x39e82e){const _0x4b0163=_0x580cfa;logger[_0x4b0163('0x37')]('MailAccount,\x20%s,\x20%s',_0x5d3808,'request\x20sent'),logger[_0x4b0163('0x0')](_0x4b0163('0xd'),_0x5d3808,_0x4b0163('0x3d'),JSON['stringify'](_0x39e82e));if(_0x39e82e['error']){if(_0x39e82e[_0x4b0163('0x8e')]['code']===0x1f4)return logger[_0x4b0163('0x8e')](_0x4b0163('0x55'),_0x5d3808,_0x39e82e[_0x4b0163('0x8e')][_0x4b0163('0xa3')]),_0xbb2d33(_0x39e82e[_0x4b0163('0x8e')][_0x4b0163('0xa3')]);return logger[_0x4b0163('0x8e')]('MailAccount,\x20%s,\x20%s',_0x5d3808,_0x39e82e[_0x4b0163('0x8e')][_0x4b0163('0xa3')]),_0x363868(_0x39e82e['error'][_0x4b0163('0xa3')]);}else logger['info'](_0x4b0163('0x55'),_0x5d3808,_0x4b0163('0x3d')),_0x363868(_0x39e82e[_0x4b0163('0x36')][_0x4b0163('0xa3')]);})[_0x580cfa('0x31')](function(_0x2b22c5){const _0x3365ce=_0x580cfa;logger[_0x3365ce('0x8e')]('MailAccount,\x20%s,\x20%s',_0x5d3808,_0x2b22c5),_0xbb2d33(_0x2b22c5);});});}function respondWithStatusCode(_0x2cc1cc,_0x592573){return _0x592573=_0x592573||0xcc,function(_0x43fdfe){const _0x419b73=a394_0x16ca;if(_0x43fdfe)return _0x2cc1cc[_0x419b73('0x18')](_0x592573);return _0x2cc1cc[_0x419b73('0x60')](_0x592573)[_0x419b73('0xa1')]();};}function respondWithResult(_0x3d3374,_0x509e8f){return _0x509e8f=_0x509e8f||0xc8,function(_0x45ec99){const _0x492305=a394_0x16ca;if(_0x45ec99)return _0x3d3374[_0x492305('0x60')](_0x509e8f)['json'](_0x45ec99);};}function respondWithFilteredResult(_0x5c0b3d,_0x50b060){return function(_0x51ca88){const _0x14d17f=a394_0x16ca;if(_0x51ca88){const _0x139040=_0x51ca88[_0x14d17f('0x86')],_0x775542=_0x50b060['offset'];let _0x11ed50=_0x50b060[_0x14d17f('0x5f')]+_0x50b060['limit'],_0x3c0ed4;return _0x11ed50>=_0x139040?(_0x11ed50=_0x139040,_0x3c0ed4=0xc8):_0x3c0ed4=0xce,_0x5c0b3d[_0x14d17f('0x60')](_0x3c0ed4),_0x5c0b3d['set']('Content-Range',_0x775542+'-'+_0x11ed50+'/'+_0x139040)[_0x14d17f('0x14')](_0x51ca88);}return null;};}function saveUpdates(_0x249e80){return function(_0x5403fd){const _0x1c18b4=a394_0x16ca;if(_0x5403fd)return _0x5403fd[_0x1c18b4('0x50')](_0x249e80)['then'](function(_0x578b1b){return _0x578b1b;});return null;};}function removeEntity(_0x421f0a){return function(_0x41741c){const _0x3e6a59=a394_0x16ca;if(_0x41741c)return _0x41741c[_0x3e6a59('0x5a')]()[_0x3e6a59('0x80')](function(){const _0x3df683=_0x3e6a59,_0x40bda3=_0x41741c[_0x3df683('0x5')]({'plain':!![]}),_0x2033e1=_0x3df683('0x83');return db[_0x3df683('0x2e')][_0x3df683('0x5a')]({'where':{'type':_0x2033e1,'resourceId':_0x40bda3['id']}})['then'](function(){return _0x41741c;});})[_0x3e6a59('0x80')](function(){const _0x428277=_0x3e6a59;_0x421f0a['status'](0xcc)[_0x428277('0xa1')]();});};}function handleEntityNotFound(_0x58b9f8){return function(_0x3b90c7){const _0x28c2a9=a394_0x16ca;return!_0x3b90c7&&_0x58b9f8[_0x28c2a9('0x18')](0x194),_0x3b90c7;};}function handleError(_0x27a221,_0x192434){return _0x192434=_0x192434||0x1f4,function(_0x12dfe2){const _0x73d7c2=a394_0x16ca;logger[_0x73d7c2('0x8e')](_0x12dfe2[_0x73d7c2('0x7')]),_0x12dfe2[_0x73d7c2('0x9a')]&&delete _0x12dfe2[_0x73d7c2('0x9a')],_0x27a221[_0x73d7c2('0x60')](_0x192434)[_0x73d7c2('0x2b')](_0x12dfe2);};}exports[_0x31c430('0x4f')]=function(_0x2c2ca2,_0x273b4c){const _0x4814d1=_0x31c430;let _0x460dd3={'include':[{'model':db[_0x4814d1('0x1a')],'as':'Imap'},{'model':db[_0x4814d1('0x21')],'as':_0x4814d1('0xa0')},{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x1d57c2={},_0x4a98bd={'count':0x0,'rows':[]},_0x1ea7aa=_[_0x4814d1('0x4a')](db['MailAccount'][_0x4814d1('0x48')],function(_0x41027a){const _0x1ae5aa=_0x4814d1;return{'name':_0x41027a[_0x1ae5aa('0x7b')],'type':_0x41027a[_0x1ae5aa('0x8')][_0x1ae5aa('0x1f')]};});_0x1d57c2['model']=_[_0x4814d1('0x4a')](_0x1ea7aa,_0x4814d1('0x9a')),_0x1d57c2[_0x4814d1('0x12')]=_[_0x4814d1('0x90')](_0x2c2ca2[_0x4814d1('0x12')]),_0x1d57c2[_0x4814d1('0x4')]=_[_0x4814d1('0x9d')](_0x1d57c2[_0x4814d1('0xa5')],_0x1d57c2[_0x4814d1('0x12')]),_0x460dd3[_0x4814d1('0x93')]=_[_0x4814d1('0x9d')](_0x1d57c2[_0x4814d1('0xa5')],qs[_0x4814d1('0x85')](_0x2c2ca2[_0x4814d1('0x12')]['fields'])),_0x460dd3['attributes']=_0x460dd3[_0x4814d1('0x93')]['length']?_0x460dd3[_0x4814d1('0x93')]:_0x1d57c2[_0x4814d1('0xa5')];typeof _0x2c2ca2['query'][_0x4814d1('0x7e')]===_0x4814d1('0x84')&&(_0x460dd3[_0x4814d1('0x2c')]=qs[_0x4814d1('0x2c')](_0x2c2ca2['query'][_0x4814d1('0x2c')]),_0x460dd3['offset']=qs[_0x4814d1('0x5f')](_0x2c2ca2[_0x4814d1('0x12')][_0x4814d1('0x5f')]));_0x460dd3['order']=qs['sort'](_0x2c2ca2['query'][_0x4814d1('0x2d')]),_0x460dd3[_0x4814d1('0x9f')]=qs['filters'](_['pick'](_0x2c2ca2[_0x4814d1('0x12')],_0x1d57c2['filters']),_0x1ea7aa);_0x2c2ca2[_0x4814d1('0x12')]['filter']&&(_0x460dd3[_0x4814d1('0x9f')]=_[_0x4814d1('0x3e')](_0x460dd3[_0x4814d1('0x9f')],{[Op['or']]:_[_0x4814d1('0x4a')](_0x1ea7aa,function(_0x4b2312){const _0x212003=_0x4814d1;if(_0x4b2312[_0x212003('0x8')]!==_0x212003('0x6e')){const _0x2a8bc0={};return _0x2a8bc0[_0x4b2312['name']]={[Op[_0x212003('0x89')]]:'%'+_0x2c2ca2[_0x212003('0x12')][_0x212003('0x69')]+'%'},_0x2a8bc0;}})}));_0x460dd3=_[_0x4814d1('0x3e')]({},_0x460dd3,_0x2c2ca2[_0x4814d1('0xa')]);const _0x10ca80={'where':_0x460dd3[_0x4814d1('0x9f')]};return db[_0x4814d1('0x70')][_0x4814d1('0x86')](_0x10ca80)[_0x4814d1('0x80')](function(_0x2c67ac){const _0x4a6175=_0x4814d1;return _0x4a98bd[_0x4a6175('0x86')]=_0x2c67ac,_0x2c2ca2[_0x4a6175('0x12')][_0x4a6175('0x2')]&&(_0x460dd3[_0x4a6175('0xb')]=[{'all':!![]}]),db['MailAccount'][_0x4a6175('0x87')](_0x460dd3);})[_0x4814d1('0x80')](function(_0x3ade21){const _0xa321af=_0x4814d1;return _0x4a98bd[_0xa321af('0x3a')]=_0x3ade21,_0x4a98bd;})[_0x4814d1('0x80')](respondWithFilteredResult(_0x273b4c,_0x460dd3))[_0x4814d1('0x31')](handleError(_0x273b4c,null));},exports['show']=function(_0x38895b,_0x18371d){const _0x1fbce4=_0x31c430;let _0x42943a={'raw':![],'where':{'id':_0x38895b[_0x1fbce4('0x64')]['id']},'include':[{'model':db[_0x1fbce4('0x1a')],'as':_0x1fbce4('0x43')},{'model':db[_0x1fbce4('0x21')],'as':_0x1fbce4('0xa0')},{'model':db['Pause'],'as':_0x1fbce4('0x38')}]};const _0x181684={};return _0x181684['model']=_[_0x1fbce4('0x90')](db['MailAccount']['rawAttributes']),_0x181684[_0x1fbce4('0x12')]=_[_0x1fbce4('0x90')](_0x38895b[_0x1fbce4('0x12')]),_0x181684[_0x1fbce4('0x4')]=_['intersection'](_0x181684[_0x1fbce4('0xa5')],_0x181684[_0x1fbce4('0x12')]),_0x42943a[_0x1fbce4('0x93')]=_[_0x1fbce4('0x9d')](_0x181684[_0x1fbce4('0xa5')],qs['fields'](_0x38895b[_0x1fbce4('0x12')][_0x1fbce4('0x85')])),_0x42943a[_0x1fbce4('0x93')]=_0x42943a[_0x1fbce4('0x93')][_0x1fbce4('0x68')]?_0x42943a[_0x1fbce4('0x93')]:_0x181684[_0x1fbce4('0xa5')],_0x38895b[_0x1fbce4('0x12')][_0x1fbce4('0x2')]&&(_0x42943a[_0x1fbce4('0xb')]=[{'all':!![]}]),_0x42943a=_[_0x1fbce4('0x3e')]({},_0x42943a,_0x38895b[_0x1fbce4('0xa')]),db[_0x1fbce4('0x70')][_0x1fbce4('0x30')](_0x42943a)[_0x1fbce4('0x80')](handleEntityNotFound(_0x18371d,null))['then'](respondWithResult(_0x18371d,null))[_0x1fbce4('0x31')](handleError(_0x18371d,null));},exports[_0x31c430('0x50')]=function(_0x151adf,_0x571da7){const _0xb7943f=_0x31c430;return _0x151adf[_0xb7943f('0x44')]['id']&&delete _0x151adf[_0xb7943f('0x44')]['id'],db[_0xb7943f('0x70')][_0xb7943f('0x30')]({'where':{'id':_0x151adf[_0xb7943f('0x64')]['id']},'include':[{'model':db[_0xb7943f('0x1a')],'as':_0xb7943f('0x43')},{'model':db[_0xb7943f('0x21')],'as':_0xb7943f('0xa0')},{'model':db[_0xb7943f('0x4d')],'as':_0xb7943f('0x38')}]})[_0xb7943f('0x80')](handleEntityNotFound(_0x571da7,null))[_0xb7943f('0x80')](saveUpdates(_0x151adf[_0xb7943f('0x44')],null))['then'](function(_0x2a382a){const _0x3ae11f=_0xb7943f;if(_0x2a382a&&_0x151adf[_0x3ae11f('0x44')]['Imap'])return db[_0x3ae11f('0x1a')][_0x3ae11f('0x50')](_0x151adf[_0x3ae11f('0x44')][_0x3ae11f('0x43')],{'where':{'MailAccountId':_0x2a382a['id']}})[_0x3ae11f('0x80')](function(){return _0x2a382a;});return _0x2a382a;})[_0xb7943f('0x80')](function(_0x1df0f3){const _0x15139c=_0xb7943f;if(_0x1df0f3&&_0x151adf[_0x15139c('0x44')]['Smtp'])return db['MailServerOut'][_0x15139c('0x50')](_0x151adf[_0x15139c('0x44')][_0x15139c('0xa0')],{'where':{'MailAccountId':_0x1df0f3['id']}})[_0x15139c('0x80')](function(){return _0x1df0f3;});return _0x1df0f3;})['then'](respondWithResult(_0x571da7,null))['catch'](handleError(_0x571da7,null));},exports[_0x31c430('0x8f')]=function(_0x4f83f6,_0x5c96ef){const _0x7daa43=_0x31c430;return db[_0x7daa43('0x70')][_0x7daa43('0x8f')]()['then'](respondWithResult(_0x5c96ef,null))[_0x7daa43('0x31')](handleError(_0x5c96ef,null));},exports[_0x31c430('0x27')]=function(_0x3a0da1,_0x3b5a9f){const _0xd120fd=_0x31c430;return _0x3a0da1[_0xd120fd('0x44')]['id']&&delete _0x3a0da1['body']['id'],db[_0xd120fd('0x70')][_0xd120fd('0x30')]({'where':{'id':_0x3a0da1[_0xd120fd('0x64')]['id']}})[_0xd120fd('0x80')](handleEntityNotFound(_0x3b5a9f,null))[_0xd120fd('0x80')](function(_0x53b45f){const _0x7e1ac4=_0xd120fd;if(_0x53b45f)return _0x3a0da1[_0x7e1ac4('0x44')]['MailAccountId']=_0x53b45f['id'],db[_0x7e1ac4('0x66')][_0x7e1ac4('0x39')](_0x3a0da1[_0x7e1ac4('0x44')]);})[_0xd120fd('0x80')](respondWithResult(_0x3b5a9f,null))['catch'](handleError(_0x3b5a9f,null));},exports[_0x31c430('0xa7')]=function(_0x35fd65,_0x204405){const _0xda3a3a=_0x31c430;let _0x1e48ad={'raw':![],'where':{}};const _0x2d7f5c={},_0x5b4444={'count':0x0,'rows':[]};return db[_0xda3a3a('0x70')][_0xda3a3a('0x30')]({'where':{'id':_0x35fd65['params']['id']}})[_0xda3a3a('0x80')](handleEntityNotFound(_0x204405,null))[_0xda3a3a('0x80')](function(_0x22b35e){const _0x4e8608=_0xda3a3a;if(_0x22b35e)return _0x2d7f5c['model']=_[_0x4e8608('0x90')](db[_0x4e8608('0x66')][_0x4e8608('0x48')]),_0x2d7f5c['query']=_[_0x4e8608('0x90')](_0x35fd65[_0x4e8608('0x12')]),_0x2d7f5c[_0x4e8608('0x4')]=_[_0x4e8608('0x9d')](_0x2d7f5c[_0x4e8608('0xa5')],_0x2d7f5c[_0x4e8608('0x12')]),_0x1e48ad[_0x4e8608('0x93')]=_[_0x4e8608('0x9d')](_0x2d7f5c[_0x4e8608('0xa5')],qs['fields'](_0x35fd65[_0x4e8608('0x12')][_0x4e8608('0x85')])),_0x1e48ad['attributes']=_0x1e48ad[_0x4e8608('0x93')]['length']?_0x1e48ad['attributes']:_0x2d7f5c['model'],typeof _0x35fd65['query'][_0x4e8608('0x7e')]===_0x4e8608('0x84')&&(_0x1e48ad['limit']=qs[_0x4e8608('0x2c')](_0x35fd65[_0x4e8608('0x12')][_0x4e8608('0x2c')]),_0x1e48ad[_0x4e8608('0x5f')]=qs['offset'](_0x35fd65[_0x4e8608('0x12')]['offset'])),_0x1e48ad[_0x4e8608('0x35')]=qs[_0x4e8608('0x2d')](_0x35fd65[_0x4e8608('0x12')][_0x4e8608('0x2d')]),_0x1e48ad[_0x4e8608('0x9f')]=qs[_0x4e8608('0x4')](_[_0x4e8608('0xc')](_0x35fd65[_0x4e8608('0x12')],_0x2d7f5c['filters'])),_0x1e48ad[_0x4e8608('0x9f')][_0x4e8608('0x6d')]=_0x22b35e['id'],_0x35fd65[_0x4e8608('0x12')][_0x4e8608('0x69')]&&(_0x1e48ad['where']=_[_0x4e8608('0x3e')](_0x1e48ad[_0x4e8608('0x9f')],{[Op['or']]:_[_0x4e8608('0x4a')](_0x1e48ad['attributes'],function(_0x50b336){const _0x355149=_0x4e8608,_0x437754={};return _0x437754[_0x50b336]={[Op[_0x355149('0x89')]]:'%'+_0x35fd65[_0x355149('0x12')]['filter']+'%'},_0x437754;})})),_0x1e48ad=_[_0x4e8608('0x3e')]({},_0x1e48ad,_0x35fd65[_0x4e8608('0xa')]),db['Disposition']['count']({'where':_0x1e48ad[_0x4e8608('0x9f')]})[_0x4e8608('0x80')](function(_0x471430){const _0x1cf157=_0x4e8608;return _0x5b4444[_0x1cf157('0x86')]=_0x471430,_0x35fd65[_0x1cf157('0x12')][_0x1cf157('0x2')]&&(_0x1e48ad[_0x1cf157('0xb')]=[{'all':!![]}]),db['Disposition'][_0x1cf157('0x87')](_0x1e48ad);})[_0x4e8608('0x80')](function(_0x20a73d){const _0x5d7fb8=_0x4e8608;return _0x5b4444[_0x5d7fb8('0x3a')]=_0x20a73d,_0x5b4444;});})[_0xda3a3a('0x80')](respondWithFilteredResult(_0x204405,_0x1e48ad))[_0xda3a3a('0x31')](handleError(_0x204405,null));},exports[_0x31c430('0x79')]=function(_0x5d0fcf,_0xdfe727){const _0x5aa0c7=_0x31c430;return db[_0x5aa0c7('0x70')][_0x5aa0c7('0x30')]({'where':{'id':_0x5d0fcf[_0x5aa0c7('0x64')]['id']}})[_0x5aa0c7('0x80')](handleEntityNotFound(_0xdfe727,null))[_0x5aa0c7('0x80')](function(_0x1fb014){const _0xbbc897=_0x5aa0c7;if(_0x1fb014)return _0x1fb014[_0xbbc897('0x79')](_0x5d0fcf[_0xbbc897('0x12')][_0xbbc897('0x26')]);})['then'](respondWithStatusCode(_0xdfe727,null))[_0x5aa0c7('0x31')](handleError(_0xdfe727,null));},exports[_0x31c430('0x8b')]=function(_0x3262ea,_0x3f5846){const _0x3f0409=_0x31c430;return _0x3262ea[_0x3f0409('0x44')]['id']&&delete _0x3262ea[_0x3f0409('0x44')]['id'],db[_0x3f0409('0x70')][_0x3f0409('0x30')]({'where':{'id':_0x3262ea[_0x3f0409('0x64')]['id']}})[_0x3f0409('0x80')](handleEntityNotFound(_0x3f5846,null))['then'](function(_0x1a3f55){const _0x26b1ce=_0x3f0409;if(_0x1a3f55)return _0x3262ea[_0x26b1ce('0x44')]['MailAccountId']=_0x1a3f55['id'],db['CannedAnswer']['create'](_0x3262ea[_0x26b1ce('0x44')]);})[_0x3f0409('0x80')](respondWithResult(_0x3f5846,null))[_0x3f0409('0x31')](handleError(_0x3f5846,null));},exports[_0x31c430('0x8d')]=function(_0x3e850c,_0x2f2f35){const _0x27ed22=_0x31c430;let _0x6dcfdf={'raw':![],'where':{}};const _0x231739={},_0x45e8e0={'count':0x0,'rows':[]};return db[_0x27ed22('0x70')][_0x27ed22('0x30')]({'where':{'id':_0x3e850c[_0x27ed22('0x64')]['id']}})[_0x27ed22('0x80')](handleEntityNotFound(_0x2f2f35,null))[_0x27ed22('0x80')](function(_0x3e5b6b){const _0x1737d1=_0x27ed22;if(_0x3e5b6b)return _0x231739[_0x1737d1('0xa5')]=_[_0x1737d1('0x90')](db[_0x1737d1('0x65')][_0x1737d1('0x48')]),_0x231739[_0x1737d1('0x12')]=_['keys'](_0x3e850c[_0x1737d1('0x12')]),_0x231739[_0x1737d1('0x4')]=_[_0x1737d1('0x9d')](_0x231739['model'],_0x231739['query']),_0x6dcfdf[_0x1737d1('0x93')]=_[_0x1737d1('0x9d')](_0x231739[_0x1737d1('0xa5')],qs[_0x1737d1('0x85')](_0x3e850c[_0x1737d1('0x12')][_0x1737d1('0x85')])),_0x6dcfdf[_0x1737d1('0x93')]=_0x6dcfdf['attributes'][_0x1737d1('0x68')]?_0x6dcfdf['attributes']:_0x231739['model'],typeof _0x3e850c[_0x1737d1('0x12')][_0x1737d1('0x7e')]===_0x1737d1('0x84')&&(_0x6dcfdf[_0x1737d1('0x2c')]=qs['limit'](_0x3e850c['query'][_0x1737d1('0x2c')]),_0x6dcfdf[_0x1737d1('0x5f')]=qs['offset'](_0x3e850c[_0x1737d1('0x12')][_0x1737d1('0x5f')])),_0x6dcfdf[_0x1737d1('0x35')]=qs[_0x1737d1('0x2d')](_0x3e850c[_0x1737d1('0x12')][_0x1737d1('0x2d')]),_0x6dcfdf['where']=qs[_0x1737d1('0x4')](_[_0x1737d1('0xc')](_0x3e850c[_0x1737d1('0x12')],_0x231739[_0x1737d1('0x4')])),_0x6dcfdf[_0x1737d1('0x9f')][_0x1737d1('0x6d')]=_0x3e5b6b['id'],_0x3e850c[_0x1737d1('0x12')]['filter']&&(_0x6dcfdf[_0x1737d1('0x9f')]=_[_0x1737d1('0x3e')](_0x6dcfdf[_0x1737d1('0x9f')],{[Op['or']]:_[_0x1737d1('0x4a')](_0x6dcfdf[_0x1737d1('0x93')],function(_0x563762){const _0x5b3ff2=_0x1737d1,_0x5b76af={};return _0x5b76af[_0x563762]={[Op[_0x5b3ff2('0x89')]]:'%'+_0x3e850c[_0x5b3ff2('0x12')][_0x5b3ff2('0x69')]+'%'},_0x5b76af;})})),_0x6dcfdf=_[_0x1737d1('0x3e')]({},_0x6dcfdf,_0x3e850c['options']),db[_0x1737d1('0x65')]['count']({'where':_0x6dcfdf[_0x1737d1('0x9f')]})['then'](function(_0x117f36){const _0x967520=_0x1737d1;return _0x45e8e0['count']=_0x117f36,_0x3e850c[_0x967520('0x12')][_0x967520('0x2')]&&(_0x6dcfdf[_0x967520('0xb')]=[{'all':!![]}]),db[_0x967520('0x65')][_0x967520('0x87')](_0x6dcfdf);})[_0x1737d1('0x80')](function(_0x202afe){const _0x51141e=_0x1737d1;return _0x45e8e0[_0x51141e('0x3a')]=_0x202afe,_0x45e8e0;});})[_0x27ed22('0x80')](respondWithFilteredResult(_0x2f2f35,_0x6dcfdf))[_0x27ed22('0x31')](handleError(_0x2f2f35,null));},exports[_0x31c430('0x98')]=function(_0x62b6f9,_0x36e851){const _0x594236=_0x31c430;return db[_0x594236('0x70')][_0x594236('0x30')]({'where':{'id':_0x62b6f9[_0x594236('0x64')]['id']}})['then'](handleEntityNotFound(_0x36e851,null))['then'](function(_0x3d7c30){const _0x317424=_0x594236;if(_0x3d7c30)return _0x3d7c30['removeAnswers'](_0x62b6f9[_0x317424('0x12')]['ids']);})[_0x594236('0x80')](respondWithStatusCode(_0x36e851,null))['catch'](handleError(_0x36e851,null));},exports[_0x31c430('0x39')]=function(_0x42440f,_0x599b40){const _0x35f589=_0x31c430,_0x35f3c0={'name':_0x42440f['body'][_0x35f589('0x9a')],'key':_0x42440f[_0x35f589('0x44')][_0x35f589('0x1f')],'email':_0x42440f[_0x35f589('0x44')]['email'],'ListId':_0x42440f['body'][_0x35f589('0x95')],'active':!_[_0x35f589('0x3')](_0x42440f[_0x35f589('0x44')][_0x35f589('0x7a')])?_0x42440f[_0x35f589('0x44')][_0x35f589('0x7a')]:!![],'description':_0x42440f['body'][_0x35f589('0x75')]||null,'Imap':{},'Smtp':{}};return _[_0x35f589('0x3')](_0x42440f[_0x35f589('0x44')][_0x35f589('0x9c')])?(_0x42440f['body'][_0x35f589('0x22')]?(_0x35f3c0[_0x35f589('0x43')][_0x35f589('0x52')]=_0x42440f[_0x35f589('0x44')][_0x35f589('0x6c')],_0x35f3c0[_0x35f589('0xa0')][_0x35f589('0x52')]=_0x42440f[_0x35f589('0x44')][_0x35f589('0x6c')],_0x35f3c0[_0x35f589('0x43')][_0x35f589('0x1b')]=_0x42440f[_0x35f589('0x44')][_0x35f589('0x1e')],_0x35f3c0[_0x35f589('0xa0')]['pass']=_0x42440f[_0x35f589('0x44')][_0x35f589('0x1e')]):(_0x35f3c0['Imap'][_0x35f589('0x71')]=![],_0x35f3c0[_0x35f589('0xa0')][_0x35f589('0x71')]=![]),_0x35f3c0[_0x35f589('0x43')][_0x35f589('0x54')]=_0x42440f['body'][_0x35f589('0x43')]['host'],_0x35f3c0['Imap'][_0x35f589('0xa2')]=_0x42440f[_0x35f589('0x44')][_0x35f589('0x43')][_0x35f589('0xa2')],_0x35f3c0[_0x35f589('0xa0')][_0x35f589('0x54')]=_0x42440f['body'][_0x35f589('0xa0')]['host'],_0x35f3c0['Smtp'][_0x35f589('0xa2')]=_0x42440f[_0x35f589('0x44')][_0x35f589('0xa0')]['port']):(_0x35f3c0[_0x35f589('0x43')][_0x35f589('0x78')]=_0x42440f[_0x35f589('0x44')][_0x35f589('0x9c')],_0x35f3c0[_0x35f589('0xa0')][_0x35f589('0x78')]=_0x42440f['body']['cservice'],_0x35f3c0[_0x35f589('0x43')][_0x35f589('0x52')]=_0x42440f[_0x35f589('0x44')][_0x35f589('0x6c')],_0x35f3c0[_0x35f589('0xa0')]['user']=_0x42440f[_0x35f589('0x44')]['cuser'],_0x35f3c0[_0x35f589('0x43')]['password']=_0x42440f[_0x35f589('0x44')][_0x35f589('0x1e')],_0x35f3c0['Smtp'][_0x35f589('0x24')]=_0x42440f[_0x35f589('0x44')][_0x35f589('0x1e')]),db[_0x35f589('0x70')][_0x35f589('0x39')](_0x35f3c0,{'include':[{'model':db[_0x35f589('0x21')],'as':_0x35f589('0xa0')},{'model':db['MailServerIn'],'as':_0x35f589('0x43')}]})[_0x35f589('0x80')](function(_0x4fdce4){const _0x2f8bea=_0x35f589,_0x152f7b=_0x42440f[_0x2f8bea('0x52')]['get']({'plain':!![]});if(!_0x152f7b)throw new Error(_0x2f8bea('0x94'));if(_0x152f7b['role']===_0x2f8bea('0x52')){const _0x229065=_0x4fdce4['get']({'plain':!![]});return db[_0x2f8bea('0x63')]['findOne']({'where':{'name':_0x2f8bea('0x83'),'userProfileId':_0x152f7b[_0x2f8bea('0x40')]},'raw':!![]})[_0x2f8bea('0x80')](function(_0x1278a9){const _0x300a2a=_0x2f8bea;return _0x1278a9&&_0x1278a9['autoAssociation']===0x0?db[_0x300a2a('0x2e')][_0x300a2a('0x39')]({'name':_0x229065[_0x300a2a('0x9a')],'resourceId':_0x229065['id'],'type':_0x1278a9[_0x300a2a('0x9a')],'sectionId':_0x1278a9['id']},{})[_0x300a2a('0x80')](function(){return _0x4fdce4;}):_0x4fdce4;})[_0x2f8bea('0x31')](function(_0x17824b){const _0x515683=_0x2f8bea;logger[_0x515683('0x8e')](_0x515683('0x9e'),_0x17824b);throw _0x17824b;});}return _0x4fdce4;})[_0x35f589('0x80')](respondWithResult(_0x599b40,0xc9))[_0x35f589('0x31')](handleError(_0x599b40,null));},exports[_0x31c430('0x9b')]=function(_0x1e0b44,_0x264ab5){const _0x582b28=_0x31c430;return db[_0x582b28('0x70')]['findOne']({'where':{'id':_0x1e0b44[_0x582b28('0x64')]['id']}})[_0x582b28('0x80')](handleEntityNotFound(_0x264ab5,null))[_0x582b28('0x80')](function(_0x2962de){const _0x38f275=_0x582b28;if(_0x2962de)return _0x2962de[_0x38f275('0x9b')]();return null;})['then'](respondWithResult(_0x264ab5,null))[_0x582b28('0x31')](handleError(_0x264ab5,null));},exports[_0x31c430('0xa6')]=function(_0x52d5db,_0x5e6c60){const _0x57026b=_0x31c430;return _0x52d5db[_0x57026b('0x44')]['id']&&delete _0x52d5db[_0x57026b('0x44')]['id'],db[_0x57026b('0x70')][_0x57026b('0x30')]({'where':{'id':_0x52d5db[_0x57026b('0x64')]['id']}})[_0x57026b('0x80')](handleEntityNotFound(_0x5e6c60,null))['then'](function(_0x5c47e4){const _0x1b1d32=_0x57026b;if(_0x5c47e4)return _0x52d5db['body'][_0x1b1d32('0x6d')]=_0x5c47e4['id'],db['MailServerIn'][_0x1b1d32('0x39')](_0x52d5db[_0x1b1d32('0x44')]);})['then'](respondWithResult(_0x5e6c60,null))[_0x57026b('0x31')](handleError(_0x5e6c60,null));},exports[_0x31c430('0x6')]=function(_0x3787f0,_0x50846c){const _0xa429af=_0x31c430;return db[_0xa429af('0x70')][_0xa429af('0x30')]({'where':{'id':_0x3787f0[_0xa429af('0x64')]['id']}})['then'](handleEntityNotFound(_0x50846c,null))['then'](function(_0x132703){if(_0x132703)return _0x132703['setImap'](null);return null;})['then'](respondWithStatusCode(_0x50846c,null))[_0xa429af('0x31')](handleError(_0x50846c,null));},exports[_0x31c430('0x5d')]=function(_0x50b46f,_0x182ef7){const _0x527945=_0x31c430;return db['MailAccount'][_0x527945('0x30')]({'where':{'id':_0x50b46f[_0x527945('0x64')]['id']}})[_0x527945('0x80')](handleEntityNotFound(_0x182ef7,null))[_0x527945('0x80')](function(_0x4c5637){const _0x3a2fbc=_0x527945;if(_0x4c5637)return _0x4c5637[_0x3a2fbc('0x5d')]();return null;})[_0x527945('0x80')](respondWithResult(_0x182ef7,null))[_0x527945('0x31')](handleError(_0x182ef7,null));},exports[_0x31c430('0x23')]=function(_0x283acb,_0x1c4473){const _0x53a6c4=_0x31c430;return _0x283acb[_0x53a6c4('0x44')]['id']&&delete _0x283acb[_0x53a6c4('0x44')]['id'],db['MailAccount'][_0x53a6c4('0x30')]({'where':{'id':_0x283acb[_0x53a6c4('0x64')]['id']}})['then'](handleEntityNotFound(_0x1c4473,null))['then'](function(_0x33af39){const _0x28bf2a=_0x53a6c4;if(_0x33af39)return _0x283acb['body']['MailAccountId']=_0x33af39['id'],db[_0x28bf2a('0x21')][_0x28bf2a('0x39')](_0x283acb['body']);})[_0x53a6c4('0x80')](respondWithResult(_0x1c4473,null))['catch'](handleError(_0x1c4473,null));},exports[_0x31c430('0x19')]=function(_0x37e465,_0x3987d1){const _0x28a660=_0x31c430;return db[_0x28a660('0x70')][_0x28a660('0x30')]({'where':{'id':_0x37e465[_0x28a660('0x64')]['id']}})[_0x28a660('0x80')](handleEntityNotFound(_0x3987d1,null))['then'](function(_0x5532fb){const _0x4fbc56=_0x28a660;if(_0x5532fb)return _0x5532fb[_0x4fbc56('0x4e')](null);return null;})[_0x28a660('0x80')](respondWithStatusCode(_0x3987d1,null))['catch'](handleError(_0x3987d1,null));},exports[_0x31c430('0x56')]=function(_0x225567,_0x3fa2e1){const _0x38f754=_0x31c430;return db[_0x38f754('0x4c')][_0x38f754('0x30')]({'where':{'id':_0x225567[_0x38f754('0x64')]['id']}})[_0x38f754('0x80')](function(_0x367b33){const _0x203b42=_0x38f754;if(_0x367b33)return _0x367b33[_0x203b42('0x56')](_0x225567['body']['ids'],{'through':_['omit'](_0x225567[_0x203b42('0x44')],[_0x203b42('0x26'),'id'])});})[_0x38f754('0x80')](respondWithResult(_0x3fa2e1,null))[_0x38f754('0x31')](handleError(_0x3fa2e1,null));},exports[_0x31c430('0x6f')]=function(_0x20ea7c,_0x530e59){const _0x509fbf=_0x31c430;let _0x2c9200={'raw':![],'where':{}};const _0x3a1aa8={},_0x32fd19={'count':0x0,'rows':[]};return db[_0x509fbf('0x70')][_0x509fbf('0x30')]({'where':{'id':_0x20ea7c[_0x509fbf('0x64')]['id']}})['then'](handleEntityNotFound(_0x530e59,null))[_0x509fbf('0x80')](function(_0x12d958){const _0x50e9e9=_0x509fbf;if(_0x12d958)return _0x3a1aa8[_0x50e9e9('0xa5')]=_[_0x50e9e9('0x90')](db[_0x50e9e9('0x4c')][_0x50e9e9('0x48')]),_0x3a1aa8['query']=_[_0x50e9e9('0x90')](_0x20ea7c[_0x50e9e9('0x12')]),_0x3a1aa8[_0x50e9e9('0x4')]=_[_0x50e9e9('0x9d')](_0x3a1aa8[_0x50e9e9('0xa5')],_0x3a1aa8['query']),_0x2c9200[_0x50e9e9('0x93')]=_[_0x50e9e9('0x9d')](_0x3a1aa8[_0x50e9e9('0xa5')],qs[_0x50e9e9('0x85')](_0x20ea7c[_0x50e9e9('0x12')]['fields'])),_0x2c9200[_0x50e9e9('0x93')]=_0x2c9200[_0x50e9e9('0x93')][_0x50e9e9('0x68')]?_0x2c9200[_0x50e9e9('0x93')]:_0x3a1aa8[_0x50e9e9('0xa5')],typeof _0x20ea7c[_0x50e9e9('0x12')][_0x50e9e9('0x7e')]===_0x50e9e9('0x84')&&(_0x2c9200['limit']=qs[_0x50e9e9('0x2c')](_0x20ea7c[_0x50e9e9('0x12')][_0x50e9e9('0x2c')]),_0x2c9200[_0x50e9e9('0x5f')]=qs[_0x50e9e9('0x5f')](_0x20ea7c[_0x50e9e9('0x12')][_0x50e9e9('0x5f')])),_0x2c9200[_0x50e9e9('0x35')]=qs['sort'](_0x20ea7c[_0x50e9e9('0x12')][_0x50e9e9('0x2d')]),_0x2c9200[_0x50e9e9('0x9f')]=qs[_0x50e9e9('0x4')](_[_0x50e9e9('0xc')](_0x20ea7c[_0x50e9e9('0x12')],_0x3a1aa8[_0x50e9e9('0x4')])),_0x2c9200['where']['MailAccountId']=_0x12d958['id'],_0x20ea7c[_0x50e9e9('0x12')][_0x50e9e9('0x69')]&&(_0x2c9200[_0x50e9e9('0x9f')]=_[_0x50e9e9('0x3e')](_0x2c9200[_0x50e9e9('0x9f')],{[Op['or']]:_[_0x50e9e9('0x4a')](_0x2c9200[_0x50e9e9('0x93')],function(_0x2bf8de){const _0x4a4821=_0x50e9e9,_0x161811={};return _0x161811[_0x2bf8de]={[Op['like']]:'%'+_0x20ea7c[_0x4a4821('0x12')][_0x4a4821('0x69')]+'%'},_0x161811;})})),_0x2c9200=_[_0x50e9e9('0x3e')]({},_0x2c9200,_0x20ea7c['options']),db[_0x50e9e9('0x4c')]['count']({'where':_0x2c9200[_0x50e9e9('0x9f')]})[_0x50e9e9('0x80')](function(_0x3ff738){const _0x5becb8=_0x50e9e9;return _0x32fd19[_0x5becb8('0x86')]=_0x3ff738,_0x20ea7c[_0x5becb8('0x12')][_0x5becb8('0x2')]&&(_0x2c9200[_0x5becb8('0xb')]=[{'model':db[_0x5becb8('0x7c')],'as':_0x5becb8('0x28'),'required':![]},{'model':db[_0x5becb8('0x57')],'as':_0x5becb8('0x1'),'attributes':[_0x5becb8('0x9a'),'fullname','internal'],'required':![]},{'model':db[_0x5becb8('0x72')],'as':'Tags','attributes':['id',_0x5becb8('0x9a'),'color'],'where':_0x20ea7c[_0x5becb8('0x12')][_0x5becb8('0x8c')]?{'id':_0x20ea7c[_0x5becb8('0x12')][_0x5becb8('0x8c')]}:undefined,'required':_0x20ea7c[_0x5becb8('0x12')][_0x5becb8('0x8c')]?!![]:![]}]),db[_0x5becb8('0x4c')][_0x5becb8('0x87')](_0x2c9200);})[_0x50e9e9('0x80')](function(_0xcfd384){const _0x236f9b=_0x50e9e9;return _0x32fd19[_0x236f9b('0x3a')]=_0xcfd384,_0x32fd19;});})[_0x509fbf('0x80')](respondWithFilteredResult(_0x530e59,_0x2c9200))['catch'](handleError(_0x530e59,null));},exports['addApplications']=function(_0x47feaf,_0x42e4f9){const _0x5680a5=_0x31c430;return db['MailAccount']['findOne']({'where':{'id':_0x47feaf[_0x5680a5('0x64')]['id']}})[_0x5680a5('0x80')](handleEntityNotFound(_0x42e4f9,null))['then'](function(_0x360c24){const _0x2a9019=_0x5680a5;if(_0x360c24)return db['sequelize'][_0x2a9019('0x13')](function(_0x436d53){const _0x452939=_0x2a9019;return db[_0x452939('0x92')][_0x452939('0x5a')]({'where':{'MailAccountId':_0x47feaf[_0x452939('0x64')]['id']},'transaction':_0x436d53})[_0x452939('0x80')](function(){const _0x4d6827=_0x452939,_0x17e196=_['map'](_0x47feaf[_0x4d6827('0x44')],function(_0x11ec63){const _0xa7c5cb=_0x4d6827;return _0x11ec63[_0xa7c5cb('0x6d')]=_0x47feaf[_0xa7c5cb('0x64')]['id'],_0x11ec63;});return db[_0x4d6827('0x92')][_0x4d6827('0x76')](_0x17e196,{'transaction':_0x436d53});});})[_0x2a9019('0x80')](function(){const _0x11398b=_0x2a9019;return db[_0x11398b('0x92')][_0x11398b('0x53')]({'where':{'MailAccountId':_0x47feaf['params']['id']},'order':_0x11398b('0x5b')});});})[_0x5680a5('0x80')](respondWithResult(_0x42e4f9,null))[_0x5680a5('0x31')](handleError(_0x42e4f9,null));},exports[_0x31c430('0x97')]=function(_0x5c65ec,_0x2d009a){const _0x5f37e9=_0x31c430;let _0x3a6d88={};const _0x5aefda={};let _0x3442ac,_0x298e65;return db['MailAccount'][_0x5f37e9('0x30')]({'where':{'id':_0x5c65ec[_0x5f37e9('0x64')]['id']}})[_0x5f37e9('0x80')](handleEntityNotFound(_0x2d009a,null))['then'](function(_0x456675){const _0x51d4d5=_0x5f37e9;if(_0x456675)return _0x3442ac=_0x456675,_0x5aefda[_0x51d4d5('0xa5')]=_[_0x51d4d5('0x90')](db['MailApplication'][_0x51d4d5('0x48')]),_0x5aefda['query']=_[_0x51d4d5('0x90')](_0x5c65ec[_0x51d4d5('0x12')]),_0x5aefda[_0x51d4d5('0x4')]=_[_0x51d4d5('0x9d')](_0x5aefda[_0x51d4d5('0xa5')],_0x5aefda[_0x51d4d5('0x12')]),_0x3a6d88[_0x51d4d5('0x93')]=_[_0x51d4d5('0x9d')](_0x5aefda[_0x51d4d5('0xa5')],qs[_0x51d4d5('0x85')](_0x5c65ec[_0x51d4d5('0x12')][_0x51d4d5('0x85')])),_0x3a6d88[_0x51d4d5('0x93')]=_0x3a6d88[_0x51d4d5('0x93')][_0x51d4d5('0x68')]?_0x3a6d88[_0x51d4d5('0x93')]:_0x5aefda[_0x51d4d5('0xa5')],_0x3a6d88['order']=qs[_0x51d4d5('0x2d')](_0x5c65ec[_0x51d4d5('0x12')][_0x51d4d5('0x2d')]),_0x3a6d88[_0x51d4d5('0x9f')]=qs[_0x51d4d5('0x4')](_[_0x51d4d5('0xc')](_0x5c65ec[_0x51d4d5('0x12')],_0x5aefda[_0x51d4d5('0x4')])),_0x5c65ec[_0x51d4d5('0x12')]['filter']&&(_0x3a6d88[_0x51d4d5('0x9f')]=_[_0x51d4d5('0x3e')](_0x3a6d88['where'],{[Op['or']]:_['map'](_0x3a6d88[_0x51d4d5('0x93')],function(_0x22af87){const _0x491f10=_0x51d4d5,_0x7dcbbd={};return _0x7dcbbd[_0x22af87]={[Op[_0x491f10('0x89')]]:'%'+_0x5c65ec[_0x491f10('0x12')][_0x491f10('0x69')]+'%'},_0x7dcbbd;})})),_0x3a6d88=_[_0x51d4d5('0x3e')]({},_0x3a6d88,_0x5c65ec[_0x51d4d5('0xa')]),_0x3442ac[_0x51d4d5('0x97')](_0x3a6d88);})[_0x5f37e9('0x80')](function(_0x51fadb){const _0x2e1b78=_0x5f37e9;if(_0x51fadb)return _0x298e65=_0x51fadb[_0x2e1b78('0x68')],typeof _0x5c65ec['query'][_0x2e1b78('0x7e')]==='undefined'&&(_0x3a6d88[_0x2e1b78('0x2c')]=qs[_0x2e1b78('0x2c')](_0x5c65ec[_0x2e1b78('0x12')]['limit']),_0x3a6d88['offset']=qs[_0x2e1b78('0x5f')](_0x5c65ec[_0x2e1b78('0x12')][_0x2e1b78('0x5f')])),_0x3442ac[_0x2e1b78('0x97')](_0x3a6d88);})[_0x5f37e9('0x80')](function(_0x48a732){if(_0x48a732)return _0x48a732?{'count':_0x298e65,'rows':_0x48a732}:null;})[_0x5f37e9('0x80')](respondWithResult(_0x2d009a,null))[_0x5f37e9('0x31')](handleError(_0x2d009a,null));},exports[_0x31c430('0x5c')]=function(_0x4b7661,_0x1b82cb){const _0x530d4c=_0x31c430;let _0x40e8fc={'raw':!![],'where':{}};const _0x5da547={},_0x3ea190={'count':0x0,'rows':[]};return db[_0x530d4c('0x70')]['findOne']({'where':{'id':_0x4b7661[_0x530d4c('0x64')]['id']}})[_0x530d4c('0x80')](handleEntityNotFound(_0x1b82cb,null))['then'](function(_0x48f10a){const _0x564320=_0x530d4c;if(_0x48f10a){_0x5da547[_0x564320('0xa5')]=_[_0x564320('0x90')](db[_0x564320('0x96')]['rawAttributes']),_0x5da547[_0x564320('0x12')]=_[_0x564320('0x90')](_0x4b7661[_0x564320('0x12')]),_0x5da547[_0x564320('0x4')]=_[_0x564320('0x9d')](_0x5da547['model'],_0x5da547[_0x564320('0x12')]),_0x40e8fc[_0x564320('0x93')]=_[_0x564320('0x9d')](_0x5da547['model'],qs['fields'](_0x4b7661['query']['fields'])),_0x40e8fc[_0x564320('0x93')]=_0x40e8fc[_0x564320('0x93')][_0x564320('0x68')]?_0x40e8fc[_0x564320('0x93')]:_0x5da547['model'];typeof _0x4b7661[_0x564320('0x12')][_0x564320('0x7e')]===_0x564320('0x84')&&(_0x40e8fc[_0x564320('0x2c')]=qs['limit'](_0x4b7661[_0x564320('0x12')][_0x564320('0x2c')]),_0x40e8fc[_0x564320('0x5f')]=qs[_0x564320('0x5f')](_0x4b7661[_0x564320('0x12')][_0x564320('0x5f')]));_0x40e8fc[_0x564320('0x35')]=qs[_0x564320('0x2d')](_0x4b7661[_0x564320('0x12')][_0x564320('0x2d')]),_0x40e8fc[_0x564320('0x9f')]=qs[_0x564320('0x4')](_[_0x564320('0xc')](_0x4b7661[_0x564320('0x12')],_0x5da547['filters'])),_0x40e8fc[_0x564320('0x9f')]['MailAccountId']=_0x48f10a['id'];_0x4b7661[_0x564320('0x12')]['filter']&&(_0x40e8fc[_0x564320('0x9f')]=_['merge'](_0x40e8fc['where'],{[Op['or']]:_[_0x564320('0x4a')](_0x40e8fc[_0x564320('0x93')],function(_0x454db7){const _0x3c5bf2=_0x564320,_0x14fa7d={};return _0x14fa7d[_0x454db7]={[Op[_0x3c5bf2('0x89')]]:'%'+_0x4b7661['query'][_0x3c5bf2('0x69')]+'%'},_0x14fa7d;})}));if(_0x4b7661[_0x564320('0x12')][_0x564320('0xe')]){const _0x193ac3=_0x4b7661[_0x564320('0x12')][_0x564320('0xe')]['split'](','),_0x59d869={};_0x59d869[_0x193ac3[0x0]]={[Op['gte']]:moment(_0x193ac3[0x1])[_0x564320('0x34')](_0x564320('0x9'))},_0x40e8fc[_0x564320('0x9f')]=_[_0x564320('0x3e')](_0x40e8fc['where'],_0x59d869);}return _0x40e8fc=_[_0x564320('0x3e')]({},_0x40e8fc,_0x4b7661['options']),db[_0x564320('0x96')][_0x564320('0x86')]({'where':_0x40e8fc[_0x564320('0x9f')]})[_0x564320('0x80')](function(_0x246343){const _0x2ac390=_0x564320;return _0x3ea190[_0x2ac390('0x86')]=_0x246343,_0x4b7661[_0x2ac390('0x12')][_0x2ac390('0x2')]&&(_0x40e8fc[_0x2ac390('0xb')]=[{'all':!![]}]),db['MailMessage'][_0x2ac390('0x87')](_0x40e8fc);})[_0x564320('0x80')](function(_0x3e87c3){return _0x3ea190['rows']=_0x3e87c3,_0x3ea190;});}})[_0x530d4c('0x80')](respondWithFilteredResult(_0x1b82cb,_0x40e8fc))[_0x530d4c('0x31')](handleError(_0x1b82cb,null));},exports[_0x31c430('0x2b')]=function(_0x2995c4,_0x1b867d){const _0x4883ce=_0x31c430;let _0x5447ad,_0x25d9a3={},_0x437c01;return _0x2995c4[_0x4883ce('0x44')]['to']&&(_0x437c01=_0x2995c4[_0x4883ce('0x44')]['to'][_0x4883ce('0x41')](',')[0x0]),db[_0x4883ce('0x70')][_0x4883ce('0x30')]({'where':{'id':_0x2995c4[_0x4883ce('0x64')]['id']},'include':[{'model':db[_0x4883ce('0x45')],'as':_0x4883ce('0x59'),'include':[{'model':db[_0x4883ce('0x7c')],'as':_0x4883ce('0x11'),'where':{'email':_0x437c01},'limit':0x1,'order':[[_0x4883ce('0x6a'),_0x4883ce('0x3b')]]}]},{'model':db[_0x4883ce('0x21')],'as':_0x4883ce('0xa0'),'raw':!![]}]})[_0x4883ce('0x80')](handleEntityNotFound(_0x1b867d,null))[_0x4883ce('0x80')](function(_0x2e14c7){const _0x21ed82=_0x4883ce;if(_0x2e14c7){_0x5447ad=_0x2e14c7;if(_0x2e14c7[_0x21ed82('0xa0')]){_[_0x21ed82('0x3')](_0x2995c4[_0x21ed82('0x44')]['from'])&&(_0x2995c4[_0x21ed82('0x44')][_0x21ed82('0x77')]=util[_0x21ed82('0x34')]('%s\x20<%s>',_0x2e14c7[_0x21ed82('0x9a')],_0x2e14c7['email']||_0x2e14c7[_0x21ed82('0xa0')][_0x21ed82('0x52')]));if(_0x2995c4[_0x21ed82('0x44')]['attachments']&&_0x2995c4[_0x21ed82('0x44')][_0x21ed82('0x88')]['length'])for(let _0x5c1c62=0x0;_0x5c1c62<_0x2995c4['body'][_0x21ed82('0x88')][_0x21ed82('0x68')];_0x5c1c62+=0x1){_0x2995c4[_0x21ed82('0x44')][_0x21ed82('0x88')][_0x5c1c62]={'filename':_0x2995c4['body']['attachments'][_0x5c1c62][_0x21ed82('0x9a')],'path':path[_0x21ed82('0x81')](config[_0x21ed82('0x7d')],_0x21ed82('0x61'),_0x2995c4['body'][_0x21ed82('0x88')][_0x5c1c62][_0x21ed82('0x91')])};}const _0x5b14ef={'tls':{'rejectUnauthorized':![]}};return _[_0x21ed82('0x3')](_0x2e14c7[_0x21ed82('0xa0')][_0x21ed82('0x78')])?(_0x2e14c7['Smtp'][_0x21ed82('0x71')]&&(_0x5b14ef[_0x21ed82('0x58')]={'user':_0x2e14c7[_0x21ed82('0xa0')][_0x21ed82('0x52')],'pass':_0x2e14c7[_0x21ed82('0xa0')]['pass']}),_0x5b14ef[_0x21ed82('0x54')]=_0x2e14c7[_0x21ed82('0xa0')][_0x21ed82('0x54')],_0x5b14ef[_0x21ed82('0xa2')]=_0x2e14c7[_0x21ed82('0xa0')][_0x21ed82('0xa2')],_0x5b14ef['secure']=_0x2e14c7['Smtp'][_0x21ed82('0x4b')]):(_0x5b14ef[_0x21ed82('0x78')]=_0x2e14c7['Smtp'][_0x21ed82('0x78')],_0x5b14ef['auth']={'user':_0x2e14c7[_0x21ed82('0xa0')][_0x21ed82('0x52')],'pass':_0x2e14c7['Smtp'][_0x21ed82('0x24')]}),respondWithRpcPromise(_0x21ed82('0x82'),_0x21ed82('0xa8'),{'account':_0x5b14ef,'message':_0x2995c4['body']});}else throw new Error('List\x20not\x20found');}})[_0x4883ce('0x80')](function(_0xfda37f){const _0x169aef=_0x4883ce;if(_0xfda37f){_0x25d9a3=_0xfda37f;if(_0x5447ad[_0x169aef('0x59')])return _0x5447ad[_0x169aef('0x59')]['Contacts']['length']?_0x5447ad[_0x169aef('0x59')][_0x169aef('0x11')][0x0]:db[_0x169aef('0x7c')]['create'](_[_0x169aef('0x15')](_0x2995c4[_0x169aef('0x44')],{'firstName':_0x2995c4[_0x169aef('0x44')]['to'],'email':_0x2995c4[_0x169aef('0x44')]['to'],'phone':_0x2995c4['body']['to'],'ListId':_0x5447ad[_0x169aef('0x95')]}));else throw new Error(_0x169aef('0x10'));}})[_0x4883ce('0x80')](function(_0x3dc9db){const _0x654c6c=_0x4883ce;if(_0x3dc9db){let _0x24dda9={'UserId':_0x2995c4['user']['id'],'ContactId':_0x3dc9db['id'],'MailAccountId':_0x5447ad['id'],'inReplyTo':_0x25d9a3[_0x654c6c('0x62')],'to':_0x2995c4[_0x654c6c('0x44')][_0x654c6c('0x77')],'cc':_0x2995c4[_0x654c6c('0x44')]['cc'],'subject':_0x2995c4['body'][_0x654c6c('0x49')],'attach':_0x2995c4[_0x654c6c('0x44')][_0x654c6c('0x7f')],'firstMsgDirection':_0x654c6c('0xa4'),'lastMsgAt':moment()[_0x654c6c('0x34')](_0x654c6c('0x9')),'lastMsgDirection':_0x654c6c('0xa4'),'lastMsgBody':_0x2995c4[_0x654c6c('0x44')][_0x654c6c('0x44')],'Messages':[_[_0x654c6c('0x3e')](_0x2995c4['body'],{'messageId':_0x25d9a3['messageId'],'sentAt':moment()[_0x654c6c('0x34')]('YYYY-MM-DD\x20HH:mm:ss'),'read':!![],'MailAccountId':_0x5447ad['id'],'UserId':_0x2995c4[_0x654c6c('0x52')]['id'],'ContactId':_0x3dc9db['id']})]};return _0x2995c4[_0x654c6c('0x44')][_0x654c6c('0x67')]&&(_0x24dda9=_[_0x654c6c('0x3e')](_0x24dda9,_0x2995c4[_0x654c6c('0x44')][_0x654c6c('0x67')])),db[_0x654c6c('0x4c')][_0x654c6c('0x39')](_0x24dda9,{'include':[{'model':db[_0x654c6c('0x96')],'as':_0x654c6c('0x51')}]});}})[_0x4883ce('0x80')](respondWithResult(_0x1b867d,null))[_0x4883ce('0x31')](handleError(_0x1b867d,null));},exports[_0x31c430('0x99')]=function(_0x476412,_0x4113f1){const _0x3e07dd=_0x31c430;return db['MailAccount'][_0x3e07dd('0x30')]({'where':{'id':_0x476412[_0x3e07dd('0x64')]['id']},'include':[{'model':db['MailServerOut'],'as':_0x3e07dd('0xa0'),'raw':!![]}]})['then'](handleEntityNotFound(_0x4113f1,null))[_0x3e07dd('0x80')](function(_0x45c9d0){const _0x53f0ea=_0x3e07dd;if(_0x45c9d0&&_0x45c9d0[_0x53f0ea('0xa0')]){const _0x5a1c6c={'id':_0x45c9d0['id'],'tls':{'rejectUnauthorized':![]}};return _0x45c9d0['Smtp']['service']?_0x5a1c6c[_0x53f0ea('0x78')]=_0x45c9d0[_0x53f0ea('0xa0')][_0x53f0ea('0x78')]:(_0x5a1c6c[_0x53f0ea('0x54')]=_0x45c9d0[_0x53f0ea('0xa0')]['host'],_0x5a1c6c[_0x53f0ea('0xa2')]=_0x45c9d0[_0x53f0ea('0xa0')][_0x53f0ea('0xa2')],_0x5a1c6c[_0x53f0ea('0x4b')]=_0x45c9d0[_0x53f0ea('0xa0')]['secure']),_0x45c9d0[_0x53f0ea('0xa0')][_0x53f0ea('0x71')]&&(_0x5a1c6c[_0x53f0ea('0x58')]={'user':_0x45c9d0[_0x53f0ea('0xa0')]['user'],'pass':_0x45c9d0[_0x53f0ea('0xa0')][_0x53f0ea('0x24')]}),respondWithRpcPromise(_0x53f0ea('0x3f'),'verifySmtp',{'account':_0x5a1c6c});}})[_0x3e07dd('0x80')](respondWithResult(_0x4113f1,null))[_0x3e07dd('0x31')](handleError(_0x4113f1,null));},exports[_0x31c430('0x5a')]=function(_0x6316d3,_0xf33cd8){const _0x3172cd=_0x31c430;return db[_0x3172cd('0x70')][_0x3172cd('0x30')]({'where':{'id':_0x6316d3['params']['id']}})['then'](handleEntityNotFound(_0xf33cd8,null))['then'](function(_0x185b7b){const _0x4c922c=_0x3172cd;if(_0x185b7b&&_0x185b7b[_0x4c922c('0x78')])throw new ValidationError('You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account');return _0x185b7b;})[_0x3172cd('0x80')](removeEntity(_0xf33cd8,null))['catch'](handleError(_0xf33cd8,null));},exports['addAgents']=function(_0x20c7bf,_0x33dcaf){const _0x59bc81=_0x31c430;return db[_0x59bc81('0x70')][_0x59bc81('0x30')]({'where':{'id':_0x20c7bf[_0x59bc81('0x64')]['id']}})[_0x59bc81('0x80')](function(_0x2f3737){const _0x7e1fa1=_0x59bc81;if(_0x2f3737)return _0x2f3737[_0x7e1fa1('0x1d')](_0x20c7bf[_0x7e1fa1('0x44')][_0x7e1fa1('0x26')],{'through':_[_0x7e1fa1('0x33')](_0x20c7bf[_0x7e1fa1('0x44')],[_0x7e1fa1('0x26'),'id'])})[_0x7e1fa1('0x80')](function(_0x7a9ffb){const _0x2e8226=_0x7e1fa1;for(let _0x27e5d8=0x0;_0x27e5d8<_0x20c7bf[_0x2e8226('0x44')]['ids'][_0x2e8226('0x68')];_0x27e5d8+=0x1){socket[_0x2e8226('0x29')](_0x2e8226('0x46'),{'UserId':_0x20c7bf[_0x2e8226('0x44')][_0x2e8226('0x26')][_0x27e5d8],'MailAccountId':_0x20c7bf[_0x2e8226('0x64')]['id']});}return _0x7a9ffb;});})[_0x59bc81('0x80')](respondWithResult(_0x33dcaf,null))[_0x59bc81('0x31')](handleError(_0x33dcaf,null));},exports['removeAgents']=function(_0x4ac286,_0x5f5bb9){const _0x3d4321=_0x31c430;return db[_0x3d4321('0x70')]['findOne']({'where':{'id':_0x4ac286[_0x3d4321('0x64')]['id']}})['then'](handleEntityNotFound(_0x5f5bb9,null))[_0x3d4321('0x80')](function(_0x4d92c9){const _0x148a8b=_0x3d4321;if(_0x4d92c9)return _0x4d92c9[_0x148a8b('0xf')](_0x4ac286[_0x148a8b('0x12')][_0x148a8b('0x26')])[_0x148a8b('0x80')](function(){const _0x125d88=_0x148a8b;if(_['isArray'](_0x4ac286[_0x125d88('0x12')][_0x125d88('0x26')]))for(let _0xaf8a68=0x0;_0xaf8a68<_0x4ac286[_0x125d88('0x12')][_0x125d88('0x26')][_0x125d88('0x68')];_0xaf8a68+=0x1){socket[_0x125d88('0x29')]('userMailAccount:remove',{'UserId':Number(_0x4ac286[_0x125d88('0x12')][_0x125d88('0x26')][_0xaf8a68]),'MailAccountId':Number(_0x4ac286[_0x125d88('0x64')]['id'])});}else socket[_0x125d88('0x29')](_0x125d88('0x73'),{'UserId':Number(_0x4ac286[_0x125d88('0x12')][_0x125d88('0x26')]),'MailAccountId':Number(_0x4ac286[_0x125d88('0x64')]['id'])});});})['then'](respondWithStatusCode(_0x5f5bb9,null))[_0x3d4321('0x31')](handleError(_0x5f5bb9,null));},exports['getAgents']=function(_0x699c62,_0x5310e4){const _0x355062=_0x31c430;let _0x41b30c={};const _0x8a26ab={};let _0x20f5fd,_0x12ab3c;return db['MailAccount'][_0x355062('0x30')]({'where':{'id':_0x699c62[_0x355062('0x64')]['id']}})[_0x355062('0x80')](handleEntityNotFound(_0x5310e4,null))['then'](function(_0x1abe55){const _0x5ed7ad=_0x355062;if(_0x1abe55)return _0x20f5fd=_0x1abe55,_0x8a26ab[_0x5ed7ad('0xa5')]=_[_0x5ed7ad('0x90')](db[_0x5ed7ad('0x57')][_0x5ed7ad('0x48')]),_0x8a26ab['query']=_[_0x5ed7ad('0x90')](_0x699c62[_0x5ed7ad('0x12')]),_0x8a26ab[_0x5ed7ad('0x4')]=_[_0x5ed7ad('0x9d')](_0x8a26ab['model'],_0x8a26ab[_0x5ed7ad('0x12')]),_0x41b30c[_0x5ed7ad('0x93')]=_[_0x5ed7ad('0x9d')](_0x8a26ab[_0x5ed7ad('0xa5')],qs[_0x5ed7ad('0x85')](_0x699c62[_0x5ed7ad('0x12')]['fields'])),_0x41b30c[_0x5ed7ad('0x93')]=_0x41b30c['attributes']['length']?_0x41b30c[_0x5ed7ad('0x93')]:_0x8a26ab[_0x5ed7ad('0xa5')],_0x41b30c['order']=qs[_0x5ed7ad('0x2d')](_0x699c62[_0x5ed7ad('0x12')][_0x5ed7ad('0x2d')]),_0x41b30c[_0x5ed7ad('0x9f')]=qs['filters'](_[_0x5ed7ad('0xc')](_0x699c62[_0x5ed7ad('0x12')],_0x8a26ab[_0x5ed7ad('0x4')])),_0x699c62[_0x5ed7ad('0x12')][_0x5ed7ad('0x69')]&&(_0x41b30c[_0x5ed7ad('0x9f')]=_[_0x5ed7ad('0x3e')](_0x41b30c[_0x5ed7ad('0x9f')],{[Op['or']]:_[_0x5ed7ad('0x4a')](_0x41b30c['attributes'],function(_0x35168f){const _0x6e0ad4=_0x5ed7ad,_0x2fbbd2={};return _0x2fbbd2[_0x35168f]={[Op[_0x6e0ad4('0x89')]]:'%'+_0x699c62['query'][_0x6e0ad4('0x69')]+'%'},_0x2fbbd2;})})),_0x41b30c=_[_0x5ed7ad('0x3e')]({},_0x41b30c,_0x699c62[_0x5ed7ad('0xa')]),_0x20f5fd[_0x5ed7ad('0x17')](_0x41b30c);})['then'](function(_0x4da25e){const _0x119a98=_0x355062;if(_0x4da25e)return _0x12ab3c=_0x4da25e[_0x119a98('0x68')],typeof _0x699c62[_0x119a98('0x12')][_0x119a98('0x7e')]===_0x119a98('0x84')&&(_0x41b30c[_0x119a98('0x2c')]=qs[_0x119a98('0x2c')](_0x699c62[_0x119a98('0x12')][_0x119a98('0x2c')]),_0x41b30c[_0x119a98('0x5f')]=qs[_0x119a98('0x5f')](_0x699c62[_0x119a98('0x12')]['offset'])),_0x20f5fd[_0x119a98('0x17')](_0x41b30c);})[_0x355062('0x80')](function(_0x4aa116){if(_0x4aa116)return _0x4aa116?{'count':_0x12ab3c,'rows':_0x4aa116}:null;})[_0x355062('0x80')](respondWithResult(_0x5310e4,null))[_0x355062('0x31')](handleError(_0x5310e4,null));}; \ No newline at end of file +const a394_0x39e2=['MailAccount,\x20%s,\x20%s,\x20%s','map','lodash','active','internal','destroy','includeAll','jayson/promise','Messages','merge','catch','user','getAnswers','result','keys','secure','setSmtp','status','addAnswer','show','cuser','offset','MailAccountId','root','Owner','MailMessage','debug','service','%s\x20<%s>','format','setImap','basename','body','removeAnswers','userMailAccount:save','getSmtp','addApplications','split','end','name','filters','ListId','subject','then','out','MailServerIn','stringify','ids','getDispositions','send','error','isArray','messageId','CmList','verifySmtp','cauthentication','key','join','request','code','nolimit','model','UserProfileSection','addDisposition','Smtp','findAll','List\x20not\x20found','omit','sendStatus','util','like','You\x20can\x27t\x20remove\x20the\x20mail\x20service\x20account','from','MailAccount,\x20%s,\x20%s','http','auth','rawAttributes','gte','color','UserProfileResource','info','set','VerifySmtp','getAgents','Unable\x20to\x20retrieve\x20the\x20current\x20user','../../components/parsers/qs','password','defaults','removeAgents','update','VIRTUAL','addInteraction','addSmtp','List','message','YYYY-MM-DD\x20HH:mm:ss','Contact','where','findOne','SendMail','fields','params','MailServerOut','port','create','json','mandatoryDispositionPause','User','email','path','get','MailApplication','transaction','sendMail','cservice','removeDispositions','../../config/logger','../../mysqldb','pass','fieldName','MailAccounts','getMessages','DESC','describe','filter','$gte','api','MailAccount','Imap','MailInteraction','getApplications','host','userProfileId','undefined','emit','Interaction','pick','description','./mailAccount.socket','cpassword','fullname','request\x20sent','intersection','query','isNil','addAgents','sort','limit','type','include','getImap','Contacts','moment','attachments','CmContact','stack','Tags','rows','order','server/files/attachments','Disposition','options','CannedAnswer','length','Pause','attributes','priority','tag','authentication','count'];(function(_0x84170a,_0x39e2c3){const _0x1a9c89=function(_0x39b2d8){while(--_0x39b2d8){_0x84170a['push'](_0x84170a['shift']());}};_0x1a9c89(++_0x39e2c3);}(a394_0x39e2,0x1a0));const a394_0x1a9c=function(_0x84170a,_0x39e2c3){_0x84170a=_0x84170a-0x0;let _0x1a9c89=a394_0x39e2[_0x84170a];return _0x1a9c89;};const _0x2d0a4a=a394_0x1a9c;'use strict';const moment=require(_0x2d0a4a('0x4c')),util=require(_0x2d0a4a('0xa3')),path=require(_0x2d0a4a('0x21')),_=require(_0x2d0a4a('0x60')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x2d0a4a('0x9')),logger=require(_0x2d0a4a('0x28'))(_0x2d0a4a('0x32')),config=require('../../config/environment'),db=require(_0x2d0a4a('0x29'))['db'],{Op,ValidationError}=require('sequelize');require(_0x2d0a4a('0x3e'))['register'](socket);const jayson=require(_0x2d0a4a('0x65')),client=jayson['client'][_0x2d0a4a('0xa8')]({'port':0x232b});function respondWithRpcPromise(_0x39b2d8,_0x2d20f5,_0x52aac1,_0x17a8e5){return new Promise(function(_0x4be8f0,_0x515eb2){const _0xa5c152=a394_0x1a9c,_0x4a6bb7=_0x17a8e5||client;return _0x4a6bb7[_0xa5c152('0x98')](_0x39b2d8,_0x52aac1)[_0xa5c152('0x89')](function(_0x6c1cad){const _0x383c2e=_0xa5c152;logger[_0x383c2e('0x4')]('MailAccount,\x20%s,\x20%s',_0x2d20f5,_0x383c2e('0x41')),logger[_0x383c2e('0x78')](_0x383c2e('0x5e'),_0x2d20f5,_0x383c2e('0x41'),JSON[_0x383c2e('0x8c')](_0x6c1cad));if(_0x6c1cad[_0x383c2e('0x90')]){if(_0x6c1cad[_0x383c2e('0x90')][_0x383c2e('0x99')]===0x1f4)return logger['error'](_0x383c2e('0xa7'),_0x2d20f5,_0x6c1cad[_0x383c2e('0x90')][_0x383c2e('0x12')]),_0x515eb2(_0x6c1cad['error'][_0x383c2e('0x12')]);return logger[_0x383c2e('0x90')]('MailAccount,\x20%s,\x20%s',_0x2d20f5,_0x6c1cad['error'][_0x383c2e('0x12')]),_0x4be8f0(_0x6c1cad[_0x383c2e('0x90')][_0x383c2e('0x12')]);}else logger[_0x383c2e('0x4')](_0x383c2e('0xa7'),_0x2d20f5,'request\x20sent'),_0x4be8f0(_0x6c1cad[_0x383c2e('0x6b')][_0x383c2e('0x12')]);})[_0xa5c152('0x68')](function(_0x12ddb1){const _0x552e9a=_0xa5c152;logger[_0x552e9a('0x90')]('MailAccount,\x20%s,\x20%s',_0x2d20f5,_0x12ddb1),_0x515eb2(_0x12ddb1);});});}function respondWithStatusCode(_0x40c0f5,_0x11221e){return _0x11221e=_0x11221e||0xcc,function(_0x368576){const _0x7949dc=a394_0x1a9c;if(_0x368576)return _0x40c0f5['sendStatus'](_0x11221e);return _0x40c0f5[_0x7949dc('0x6f')](_0x11221e)[_0x7949dc('0x84')]();};}function respondWithResult(_0x305f52,_0x25b3f2){return _0x25b3f2=_0x25b3f2||0xc8,function(_0xa93dfa){const _0x35584f=a394_0x1a9c;if(_0xa93dfa)return _0x305f52[_0x35584f('0x6f')](_0x25b3f2)[_0x35584f('0x1d')](_0xa93dfa);};}function respondWithFilteredResult(_0x476fcf,_0x2302ad){return function(_0x42bcd7){const _0x14a447=a394_0x1a9c;if(_0x42bcd7){const _0x3129a6=_0x42bcd7[_0x14a447('0x5d')],_0x655f75=_0x2302ad[_0x14a447('0x73')];let _0x315121=_0x2302ad[_0x14a447('0x73')]+_0x2302ad['limit'],_0x286782;return _0x315121>=_0x3129a6?(_0x315121=_0x3129a6,_0x286782=0xc8):_0x286782=0xce,_0x476fcf[_0x14a447('0x6f')](_0x286782),_0x476fcf[_0x14a447('0x5')]('Content-Range',_0x655f75+'-'+_0x315121+'/'+_0x3129a6)['json'](_0x42bcd7);}return null;};}function saveUpdates(_0x13ddaf){return function(_0x390cf0){const _0xcafc94=a394_0x1a9c;if(_0x390cf0)return _0x390cf0['update'](_0x13ddaf)[_0xcafc94('0x89')](function(_0x4333f9){return _0x4333f9;});return null;};}function removeEntity(_0x43fcd7){return function(_0x994f2c){const _0x1f65b0=a394_0x1a9c;if(_0x994f2c)return _0x994f2c[_0x1f65b0('0x63')]()[_0x1f65b0('0x89')](function(){const _0x14792a=_0x1f65b0,_0x3df4f9=_0x994f2c[_0x14792a('0x22')]({'plain':!![]}),_0xa6edd2='MailAccounts';return db[_0x14792a('0x3')][_0x14792a('0x63')]({'where':{'type':_0xa6edd2,'resourceId':_0x3df4f9['id']}})['then'](function(){return _0x994f2c;});})[_0x1f65b0('0x89')](function(){const _0x4814c7=_0x1f65b0;_0x43fcd7[_0x4814c7('0x6f')](0xcc)[_0x4814c7('0x84')]();});};}function handleEntityNotFound(_0x445ba2){return function(_0xe890f8){const _0x5e7dd5=a394_0x1a9c;return!_0xe890f8&&_0x445ba2[_0x5e7dd5('0xa2')](0x194),_0xe890f8;};}function handleError(_0x2566f8,_0x2d0ee7){return _0x2d0ee7=_0x2d0ee7||0x1f4,function(_0x5360ad){const _0x4bad44=a394_0x1a9c;logger['error'](_0x5360ad[_0x4bad44('0x4f')]),_0x5360ad[_0x4bad44('0x85')]&&delete _0x5360ad[_0x4bad44('0x85')],_0x2566f8[_0x4bad44('0x6f')](_0x2d0ee7)[_0x4bad44('0x8f')](_0x5360ad);};}exports['index']=function(_0x4c9fc7,_0x5833a1){const _0x42a8b2=_0x2d0a4a;let _0x483b63={'include':[{'model':db['MailServerIn'],'as':'Imap'},{'model':db['MailServerOut'],'as':'Smtp'},{'model':db[_0x42a8b2('0x58')],'as':'mandatoryDispositionPause'}]};const _0x38238f={},_0x49ebab={'count':0x0,'rows':[]},_0x233bdf=_[_0x42a8b2('0x5f')](db[_0x42a8b2('0x33')][_0x42a8b2('0x0')],function(_0x56793d){const _0x5bfee9=_0x42a8b2;return{'name':_0x56793d[_0x5bfee9('0x2b')],'type':_0x56793d[_0x5bfee9('0x48')][_0x5bfee9('0x96')]};});_0x38238f[_0x42a8b2('0x9b')]=_[_0x42a8b2('0x5f')](_0x233bdf,_0x42a8b2('0x85')),_0x38238f[_0x42a8b2('0x43')]=_['keys'](_0x4c9fc7[_0x42a8b2('0x43')]),_0x38238f[_0x42a8b2('0x86')]=_[_0x42a8b2('0x42')](_0x38238f[_0x42a8b2('0x9b')],_0x38238f[_0x42a8b2('0x43')]),_0x483b63['attributes']=_[_0x42a8b2('0x42')](_0x38238f[_0x42a8b2('0x9b')],qs[_0x42a8b2('0x18')](_0x4c9fc7[_0x42a8b2('0x43')][_0x42a8b2('0x18')])),_0x483b63[_0x42a8b2('0x59')]=_0x483b63[_0x42a8b2('0x59')]['length']?_0x483b63['attributes']:_0x38238f[_0x42a8b2('0x9b')];typeof _0x4c9fc7[_0x42a8b2('0x43')][_0x42a8b2('0x9a')]===_0x42a8b2('0x39')&&(_0x483b63[_0x42a8b2('0x47')]=qs[_0x42a8b2('0x47')](_0x4c9fc7[_0x42a8b2('0x43')][_0x42a8b2('0x47')]),_0x483b63[_0x42a8b2('0x73')]=qs[_0x42a8b2('0x73')](_0x4c9fc7['query'][_0x42a8b2('0x73')]));_0x483b63[_0x42a8b2('0x52')]=qs[_0x42a8b2('0x46')](_0x4c9fc7[_0x42a8b2('0x43')][_0x42a8b2('0x46')]),_0x483b63[_0x42a8b2('0x15')]=qs[_0x42a8b2('0x86')](_[_0x42a8b2('0x3c')](_0x4c9fc7['query'],_0x38238f[_0x42a8b2('0x86')]),_0x233bdf);_0x4c9fc7[_0x42a8b2('0x43')][_0x42a8b2('0x30')]&&(_0x483b63[_0x42a8b2('0x15')]=_[_0x42a8b2('0x67')](_0x483b63[_0x42a8b2('0x15')],{[Op['or']]:_[_0x42a8b2('0x5f')](_0x233bdf,function(_0x9b4265){const _0x5349da=_0x42a8b2;if(_0x9b4265['type']!==_0x5349da('0xe')){const _0x196727={};return _0x196727[_0x9b4265[_0x5349da('0x85')]]={[Op[_0x5349da('0xa4')]]:'%'+_0x4c9fc7[_0x5349da('0x43')][_0x5349da('0x30')]+'%'},_0x196727;}})}));_0x483b63=_[_0x42a8b2('0x67')]({},_0x483b63,_0x4c9fc7[_0x42a8b2('0x55')]);const _0x5e7562={'where':_0x483b63['where']};return db[_0x42a8b2('0x33')]['count'](_0x5e7562)[_0x42a8b2('0x89')](function(_0x1c259b){const _0x26639d=_0x42a8b2;return _0x49ebab[_0x26639d('0x5d')]=_0x1c259b,_0x4c9fc7['query']['includeAll']&&(_0x483b63[_0x26639d('0x49')]=[{'all':!![]}]),db[_0x26639d('0x33')][_0x26639d('0x9f')](_0x483b63);})[_0x42a8b2('0x89')](function(_0x424660){const _0x2da1d1=_0x42a8b2;return _0x49ebab[_0x2da1d1('0x51')]=_0x424660,_0x49ebab;})['then'](respondWithFilteredResult(_0x5833a1,_0x483b63))[_0x42a8b2('0x68')](handleError(_0x5833a1,null));},exports[_0x2d0a4a('0x71')]=function(_0x34fb5f,_0x246435){const _0x520992=_0x2d0a4a;let _0x31a573={'raw':![],'where':{'id':_0x34fb5f[_0x520992('0x19')]['id']},'include':[{'model':db[_0x520992('0x8b')],'as':_0x520992('0x34')},{'model':db[_0x520992('0x1a')],'as':'Smtp'},{'model':db['Pause'],'as':_0x520992('0x1e')}]};const _0x5e9d30={};return _0x5e9d30[_0x520992('0x9b')]=_['keys'](db[_0x520992('0x33')][_0x520992('0x0')]),_0x5e9d30[_0x520992('0x43')]=_[_0x520992('0x6c')](_0x34fb5f[_0x520992('0x43')]),_0x5e9d30[_0x520992('0x86')]=_[_0x520992('0x42')](_0x5e9d30[_0x520992('0x9b')],_0x5e9d30['query']),_0x31a573['attributes']=_['intersection'](_0x5e9d30[_0x520992('0x9b')],qs[_0x520992('0x18')](_0x34fb5f[_0x520992('0x43')][_0x520992('0x18')])),_0x31a573[_0x520992('0x59')]=_0x31a573[_0x520992('0x59')][_0x520992('0x57')]?_0x31a573['attributes']:_0x5e9d30[_0x520992('0x9b')],_0x34fb5f[_0x520992('0x43')][_0x520992('0x64')]&&(_0x31a573[_0x520992('0x49')]=[{'all':!![]}]),_0x31a573=_[_0x520992('0x67')]({},_0x31a573,_0x34fb5f[_0x520992('0x55')]),db[_0x520992('0x33')][_0x520992('0x16')](_0x31a573)[_0x520992('0x89')](handleEntityNotFound(_0x246435,null))[_0x520992('0x89')](respondWithResult(_0x246435,null))[_0x520992('0x68')](handleError(_0x246435,null));},exports[_0x2d0a4a('0xd')]=function(_0x1f7063,_0x4cb402){const _0x69ddf8=_0x2d0a4a;return _0x1f7063[_0x69ddf8('0x7e')]['id']&&delete _0x1f7063['body']['id'],db[_0x69ddf8('0x33')][_0x69ddf8('0x16')]({'where':{'id':_0x1f7063[_0x69ddf8('0x19')]['id']},'include':[{'model':db['MailServerIn'],'as':_0x69ddf8('0x34')},{'model':db[_0x69ddf8('0x1a')],'as':_0x69ddf8('0x9e')},{'model':db[_0x69ddf8('0x58')],'as':_0x69ddf8('0x1e')}]})[_0x69ddf8('0x89')](handleEntityNotFound(_0x4cb402,null))[_0x69ddf8('0x89')](saveUpdates(_0x1f7063['body'],null))[_0x69ddf8('0x89')](function(_0x2842ec){const _0x13c3a1=_0x69ddf8;if(_0x2842ec&&_0x1f7063[_0x13c3a1('0x7e')][_0x13c3a1('0x34')])return db[_0x13c3a1('0x8b')]['update'](_0x1f7063[_0x13c3a1('0x7e')][_0x13c3a1('0x34')],{'where':{'MailAccountId':_0x2842ec['id']}})[_0x13c3a1('0x89')](function(){return _0x2842ec;});return _0x2842ec;})['then'](function(_0x1db953){const _0x1ef661=_0x69ddf8;if(_0x1db953&&_0x1f7063[_0x1ef661('0x7e')][_0x1ef661('0x9e')])return db['MailServerOut']['update'](_0x1f7063[_0x1ef661('0x7e')][_0x1ef661('0x9e')],{'where':{'MailAccountId':_0x1db953['id']}})[_0x1ef661('0x89')](function(){return _0x1db953;});return _0x1db953;})[_0x69ddf8('0x89')](respondWithResult(_0x4cb402,null))[_0x69ddf8('0x68')](handleError(_0x4cb402,null));},exports['describe']=function(_0x35f14d,_0x254cba){const _0x171189=_0x2d0a4a;return db[_0x171189('0x33')][_0x171189('0x2f')]()['then'](respondWithResult(_0x254cba,null))[_0x171189('0x68')](handleError(_0x254cba,null));},exports[_0x2d0a4a('0x9d')]=function(_0x3ac736,_0x12ca7c){const _0x50f180=_0x2d0a4a;return _0x3ac736[_0x50f180('0x7e')]['id']&&delete _0x3ac736['body']['id'],db[_0x50f180('0x33')][_0x50f180('0x16')]({'where':{'id':_0x3ac736[_0x50f180('0x19')]['id']}})[_0x50f180('0x89')](handleEntityNotFound(_0x12ca7c,null))[_0x50f180('0x89')](function(_0x5a7023){const _0x133481=_0x50f180;if(_0x5a7023)return _0x3ac736[_0x133481('0x7e')]['MailAccountId']=_0x5a7023['id'],db[_0x133481('0x54')][_0x133481('0x1c')](_0x3ac736[_0x133481('0x7e')]);})['then'](respondWithResult(_0x12ca7c,null))[_0x50f180('0x68')](handleError(_0x12ca7c,null));},exports[_0x2d0a4a('0x8e')]=function(_0x2920ad,_0x456691){const _0x48199b=_0x2d0a4a;let _0x5bc99f={'raw':![],'where':{}};const _0x40463b={},_0xa0ce49={'count':0x0,'rows':[]};return db['MailAccount']['findOne']({'where':{'id':_0x2920ad[_0x48199b('0x19')]['id']}})[_0x48199b('0x89')](handleEntityNotFound(_0x456691,null))[_0x48199b('0x89')](function(_0x58df18){const _0x4890ed=_0x48199b;if(_0x58df18)return _0x40463b['model']=_[_0x4890ed('0x6c')](db[_0x4890ed('0x54')][_0x4890ed('0x0')]),_0x40463b['query']=_[_0x4890ed('0x6c')](_0x2920ad[_0x4890ed('0x43')]),_0x40463b[_0x4890ed('0x86')]=_[_0x4890ed('0x42')](_0x40463b['model'],_0x40463b['query']),_0x5bc99f['attributes']=_['intersection'](_0x40463b[_0x4890ed('0x9b')],qs[_0x4890ed('0x18')](_0x2920ad['query'][_0x4890ed('0x18')])),_0x5bc99f[_0x4890ed('0x59')]=_0x5bc99f[_0x4890ed('0x59')]['length']?_0x5bc99f[_0x4890ed('0x59')]:_0x40463b[_0x4890ed('0x9b')],typeof _0x2920ad[_0x4890ed('0x43')][_0x4890ed('0x9a')]===_0x4890ed('0x39')&&(_0x5bc99f[_0x4890ed('0x47')]=qs[_0x4890ed('0x47')](_0x2920ad[_0x4890ed('0x43')][_0x4890ed('0x47')]),_0x5bc99f[_0x4890ed('0x73')]=qs[_0x4890ed('0x73')](_0x2920ad[_0x4890ed('0x43')][_0x4890ed('0x73')])),_0x5bc99f[_0x4890ed('0x52')]=qs['sort'](_0x2920ad[_0x4890ed('0x43')][_0x4890ed('0x46')]),_0x5bc99f['where']=qs[_0x4890ed('0x86')](_[_0x4890ed('0x3c')](_0x2920ad[_0x4890ed('0x43')],_0x40463b[_0x4890ed('0x86')])),_0x5bc99f['where'][_0x4890ed('0x74')]=_0x58df18['id'],_0x2920ad[_0x4890ed('0x43')]['filter']&&(_0x5bc99f[_0x4890ed('0x15')]=_['merge'](_0x5bc99f[_0x4890ed('0x15')],{[Op['or']]:_['map'](_0x5bc99f['attributes'],function(_0x5575e3){const _0x35e362=_0x4890ed,_0x3ca5e0={};return _0x3ca5e0[_0x5575e3]={[Op['like']]:'%'+_0x2920ad[_0x35e362('0x43')][_0x35e362('0x30')]+'%'},_0x3ca5e0;})})),_0x5bc99f=_[_0x4890ed('0x67')]({},_0x5bc99f,_0x2920ad['options']),db[_0x4890ed('0x54')][_0x4890ed('0x5d')]({'where':_0x5bc99f[_0x4890ed('0x15')]})[_0x4890ed('0x89')](function(_0x261c35){const _0xa677=_0x4890ed;return _0xa0ce49['count']=_0x261c35,_0x2920ad[_0xa677('0x43')]['includeAll']&&(_0x5bc99f['include']=[{'all':!![]}]),db[_0xa677('0x54')]['findAll'](_0x5bc99f);})[_0x4890ed('0x89')](function(_0x41736e){return _0xa0ce49['rows']=_0x41736e,_0xa0ce49;});})[_0x48199b('0x89')](respondWithFilteredResult(_0x456691,_0x5bc99f))[_0x48199b('0x68')](handleError(_0x456691,null));},exports[_0x2d0a4a('0x27')]=function(_0x3d1090,_0x51082e){const _0x38766a=_0x2d0a4a;return db['MailAccount']['findOne']({'where':{'id':_0x3d1090[_0x38766a('0x19')]['id']}})[_0x38766a('0x89')](handleEntityNotFound(_0x51082e,null))[_0x38766a('0x89')](function(_0x213c7d){const _0x5b2e5c=_0x38766a;if(_0x213c7d)return _0x213c7d['removeDispositions'](_0x3d1090['query'][_0x5b2e5c('0x8d')]);})[_0x38766a('0x89')](respondWithStatusCode(_0x51082e,null))[_0x38766a('0x68')](handleError(_0x51082e,null));},exports[_0x2d0a4a('0x70')]=function(_0x927194,_0x53a8cc){const _0x2e7667=_0x2d0a4a;return _0x927194[_0x2e7667('0x7e')]['id']&&delete _0x927194[_0x2e7667('0x7e')]['id'],db[_0x2e7667('0x33')][_0x2e7667('0x16')]({'where':{'id':_0x927194[_0x2e7667('0x19')]['id']}})[_0x2e7667('0x89')](handleEntityNotFound(_0x53a8cc,null))[_0x2e7667('0x89')](function(_0x3029b7){const _0x201753=_0x2e7667;if(_0x3029b7)return _0x927194[_0x201753('0x7e')][_0x201753('0x74')]=_0x3029b7['id'],db['CannedAnswer'][_0x201753('0x1c')](_0x927194[_0x201753('0x7e')]);})['then'](respondWithResult(_0x53a8cc,null))['catch'](handleError(_0x53a8cc,null));},exports[_0x2d0a4a('0x6a')]=function(_0xa43166,_0x350ea9){const _0x356777=_0x2d0a4a;let _0x11febc={'raw':![],'where':{}};const _0x5cc1cd={},_0x30b784={'count':0x0,'rows':[]};return db[_0x356777('0x33')][_0x356777('0x16')]({'where':{'id':_0xa43166[_0x356777('0x19')]['id']}})['then'](handleEntityNotFound(_0x350ea9,null))['then'](function(_0x58aefd){const _0x49e424=_0x356777;if(_0x58aefd)return _0x5cc1cd['model']=_['keys'](db[_0x49e424('0x56')][_0x49e424('0x0')]),_0x5cc1cd[_0x49e424('0x43')]=_['keys'](_0xa43166[_0x49e424('0x43')]),_0x5cc1cd[_0x49e424('0x86')]=_[_0x49e424('0x42')](_0x5cc1cd[_0x49e424('0x9b')],_0x5cc1cd[_0x49e424('0x43')]),_0x11febc[_0x49e424('0x59')]=_[_0x49e424('0x42')](_0x5cc1cd[_0x49e424('0x9b')],qs[_0x49e424('0x18')](_0xa43166[_0x49e424('0x43')][_0x49e424('0x18')])),_0x11febc['attributes']=_0x11febc['attributes']['length']?_0x11febc[_0x49e424('0x59')]:_0x5cc1cd[_0x49e424('0x9b')],typeof _0xa43166[_0x49e424('0x43')][_0x49e424('0x9a')]==='undefined'&&(_0x11febc[_0x49e424('0x47')]=qs['limit'](_0xa43166[_0x49e424('0x43')][_0x49e424('0x47')]),_0x11febc[_0x49e424('0x73')]=qs[_0x49e424('0x73')](_0xa43166[_0x49e424('0x43')][_0x49e424('0x73')])),_0x11febc[_0x49e424('0x52')]=qs['sort'](_0xa43166['query'][_0x49e424('0x46')]),_0x11febc[_0x49e424('0x15')]=qs[_0x49e424('0x86')](_[_0x49e424('0x3c')](_0xa43166['query'],_0x5cc1cd[_0x49e424('0x86')])),_0x11febc[_0x49e424('0x15')]['MailAccountId']=_0x58aefd['id'],_0xa43166[_0x49e424('0x43')][_0x49e424('0x30')]&&(_0x11febc[_0x49e424('0x15')]=_[_0x49e424('0x67')](_0x11febc['where'],{[Op['or']]:_[_0x49e424('0x5f')](_0x11febc[_0x49e424('0x59')],function(_0x4ed82f){const _0x251afa=_0x49e424,_0x5cde22={};return _0x5cde22[_0x4ed82f]={[Op[_0x251afa('0xa4')]]:'%'+_0xa43166['query'][_0x251afa('0x30')]+'%'},_0x5cde22;})})),_0x11febc=_['merge']({},_0x11febc,_0xa43166[_0x49e424('0x55')]),db['CannedAnswer'][_0x49e424('0x5d')]({'where':_0x11febc[_0x49e424('0x15')]})[_0x49e424('0x89')](function(_0x3deb52){const _0x359a6a=_0x49e424;return _0x30b784[_0x359a6a('0x5d')]=_0x3deb52,_0xa43166[_0x359a6a('0x43')][_0x359a6a('0x64')]&&(_0x11febc[_0x359a6a('0x49')]=[{'all':!![]}]),db[_0x359a6a('0x56')][_0x359a6a('0x9f')](_0x11febc);})['then'](function(_0xac74f3){const _0x2039b0=_0x49e424;return _0x30b784[_0x2039b0('0x51')]=_0xac74f3,_0x30b784;});})['then'](respondWithFilteredResult(_0x350ea9,_0x11febc))[_0x356777('0x68')](handleError(_0x350ea9,null));},exports[_0x2d0a4a('0x7f')]=function(_0x2d7ea4,_0x17ac73){const _0x1318cc=_0x2d0a4a;return db[_0x1318cc('0x33')][_0x1318cc('0x16')]({'where':{'id':_0x2d7ea4[_0x1318cc('0x19')]['id']}})[_0x1318cc('0x89')](handleEntityNotFound(_0x17ac73,null))['then'](function(_0x2b80d4){const _0x1a0d9c=_0x1318cc;if(_0x2b80d4)return _0x2b80d4['removeAnswers'](_0x2d7ea4['query'][_0x1a0d9c('0x8d')]);})[_0x1318cc('0x89')](respondWithStatusCode(_0x17ac73,null))[_0x1318cc('0x68')](handleError(_0x17ac73,null));},exports[_0x2d0a4a('0x1c')]=function(_0x10b06d,_0x14a603){const _0x88e65b=_0x2d0a4a,_0x50c8a8={'name':_0x10b06d['body'][_0x88e65b('0x85')],'key':_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x96')],'email':_0x10b06d['body']['email'],'ListId':_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x87')],'active':!_[_0x88e65b('0x44')](_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x61')])?_0x10b06d[_0x88e65b('0x7e')]['active']:!![],'description':_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x3d')]||null,'Imap':{},'Smtp':{}};return _[_0x88e65b('0x44')](_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x26')])?(_0x10b06d['body'][_0x88e65b('0x95')]?(_0x50c8a8[_0x88e65b('0x34')][_0x88e65b('0x69')]=_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x72')],_0x50c8a8[_0x88e65b('0x9e')]['user']=_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x72')],_0x50c8a8['Imap']['password']=_0x10b06d[_0x88e65b('0x7e')]['cpassword'],_0x50c8a8[_0x88e65b('0x9e')]['pass']=_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x3f')]):(_0x50c8a8[_0x88e65b('0x34')]['authentication']=![],_0x50c8a8[_0x88e65b('0x9e')][_0x88e65b('0x5c')]=![]),_0x50c8a8[_0x88e65b('0x34')]['host']=_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x34')]['host'],_0x50c8a8[_0x88e65b('0x34')][_0x88e65b('0x1b')]=_0x10b06d['body']['Imap'][_0x88e65b('0x1b')],_0x50c8a8['Smtp']['host']=_0x10b06d[_0x88e65b('0x7e')]['Smtp'][_0x88e65b('0x37')],_0x50c8a8[_0x88e65b('0x9e')][_0x88e65b('0x1b')]=_0x10b06d['body']['Smtp'][_0x88e65b('0x1b')]):(_0x50c8a8[_0x88e65b('0x34')][_0x88e65b('0x79')]=_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x26')],_0x50c8a8['Smtp'][_0x88e65b('0x79')]=_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x26')],_0x50c8a8['Imap'][_0x88e65b('0x69')]=_0x10b06d['body'][_0x88e65b('0x72')],_0x50c8a8[_0x88e65b('0x9e')][_0x88e65b('0x69')]=_0x10b06d[_0x88e65b('0x7e')]['cuser'],_0x50c8a8[_0x88e65b('0x34')][_0x88e65b('0xa')]=_0x10b06d[_0x88e65b('0x7e')][_0x88e65b('0x3f')],_0x50c8a8[_0x88e65b('0x9e')][_0x88e65b('0x2a')]=_0x10b06d[_0x88e65b('0x7e')]['cpassword']),db['MailAccount'][_0x88e65b('0x1c')](_0x50c8a8,{'include':[{'model':db[_0x88e65b('0x1a')],'as':_0x88e65b('0x9e')},{'model':db[_0x88e65b('0x8b')],'as':_0x88e65b('0x34')}]})[_0x88e65b('0x89')](function(_0x5c1afb){const _0x43a8c5=_0x88e65b,_0x384313=_0x10b06d[_0x43a8c5('0x69')][_0x43a8c5('0x22')]({'plain':!![]});if(!_0x384313)throw new Error(_0x43a8c5('0x8'));if(_0x384313['role']===_0x43a8c5('0x69')){const _0x3a94ca=_0x5c1afb[_0x43a8c5('0x22')]({'plain':!![]});return db[_0x43a8c5('0x9c')][_0x43a8c5('0x16')]({'where':{'name':_0x43a8c5('0x2c'),'userProfileId':_0x384313[_0x43a8c5('0x38')]},'raw':!![]})[_0x43a8c5('0x89')](function(_0x32a386){const _0x32f373=_0x43a8c5;return _0x32a386&&_0x32a386['autoAssociation']===0x0?db[_0x32f373('0x3')]['create']({'name':_0x3a94ca[_0x32f373('0x85')],'resourceId':_0x3a94ca['id'],'type':_0x32a386[_0x32f373('0x85')],'sectionId':_0x32a386['id']},{})['then'](function(){return _0x5c1afb;}):_0x5c1afb;})[_0x43a8c5('0x68')](function(_0x526fef){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x526fef);throw _0x526fef;});}return _0x5c1afb;})[_0x88e65b('0x89')](respondWithResult(_0x14a603,0xc9))['catch'](handleError(_0x14a603,null));},exports[_0x2d0a4a('0x4a')]=function(_0x4a2091,_0x3332c0){const _0x153725=_0x2d0a4a;return db[_0x153725('0x33')][_0x153725('0x16')]({'where':{'id':_0x4a2091[_0x153725('0x19')]['id']}})[_0x153725('0x89')](handleEntityNotFound(_0x3332c0,null))[_0x153725('0x89')](function(_0x402992){if(_0x402992)return _0x402992['getImap']();return null;})[_0x153725('0x89')](respondWithResult(_0x3332c0,null))[_0x153725('0x68')](handleError(_0x3332c0,null));},exports['addImap']=function(_0x2283dd,_0x29b877){const _0x236363=_0x2d0a4a;return _0x2283dd[_0x236363('0x7e')]['id']&&delete _0x2283dd[_0x236363('0x7e')]['id'],db[_0x236363('0x33')]['findOne']({'where':{'id':_0x2283dd[_0x236363('0x19')]['id']}})[_0x236363('0x89')](handleEntityNotFound(_0x29b877,null))[_0x236363('0x89')](function(_0x164f6e){const _0x217aa5=_0x236363;if(_0x164f6e)return _0x2283dd[_0x217aa5('0x7e')]['MailAccountId']=_0x164f6e['id'],db[_0x217aa5('0x8b')][_0x217aa5('0x1c')](_0x2283dd[_0x217aa5('0x7e')]);})[_0x236363('0x89')](respondWithResult(_0x29b877,null))[_0x236363('0x68')](handleError(_0x29b877,null));},exports['removeImap']=function(_0x39a101,_0x5e250a){const _0x1cf057=_0x2d0a4a;return db[_0x1cf057('0x33')][_0x1cf057('0x16')]({'where':{'id':_0x39a101[_0x1cf057('0x19')]['id']}})[_0x1cf057('0x89')](handleEntityNotFound(_0x5e250a,null))[_0x1cf057('0x89')](function(_0x4a3240){const _0x3f7ed1=_0x1cf057;if(_0x4a3240)return _0x4a3240[_0x3f7ed1('0x7c')](null);return null;})[_0x1cf057('0x89')](respondWithStatusCode(_0x5e250a,null))[_0x1cf057('0x68')](handleError(_0x5e250a,null));},exports[_0x2d0a4a('0x81')]=function(_0xaecf64,_0x3f934a){const _0x276a9b=_0x2d0a4a;return db[_0x276a9b('0x33')][_0x276a9b('0x16')]({'where':{'id':_0xaecf64[_0x276a9b('0x19')]['id']}})[_0x276a9b('0x89')](handleEntityNotFound(_0x3f934a,null))[_0x276a9b('0x89')](function(_0x58c376){const _0x62a0e6=_0x276a9b;if(_0x58c376)return _0x58c376[_0x62a0e6('0x81')]();return null;})['then'](respondWithResult(_0x3f934a,null))['catch'](handleError(_0x3f934a,null));},exports[_0x2d0a4a('0x10')]=function(_0x3460fc,_0x42d7b8){const _0x33a3e7=_0x2d0a4a;return _0x3460fc['body']['id']&&delete _0x3460fc[_0x33a3e7('0x7e')]['id'],db[_0x33a3e7('0x33')][_0x33a3e7('0x16')]({'where':{'id':_0x3460fc[_0x33a3e7('0x19')]['id']}})[_0x33a3e7('0x89')](handleEntityNotFound(_0x42d7b8,null))[_0x33a3e7('0x89')](function(_0x4e27e3){const _0x2e31fb=_0x33a3e7;if(_0x4e27e3)return _0x3460fc[_0x2e31fb('0x7e')]['MailAccountId']=_0x4e27e3['id'],db[_0x2e31fb('0x1a')][_0x2e31fb('0x1c')](_0x3460fc[_0x2e31fb('0x7e')]);})['then'](respondWithResult(_0x42d7b8,null))[_0x33a3e7('0x68')](handleError(_0x42d7b8,null));},exports['removeSmtp']=function(_0x150cc6,_0x2ae09a){const _0x1b251e=_0x2d0a4a;return db[_0x1b251e('0x33')][_0x1b251e('0x16')]({'where':{'id':_0x150cc6[_0x1b251e('0x19')]['id']}})[_0x1b251e('0x89')](handleEntityNotFound(_0x2ae09a,null))[_0x1b251e('0x89')](function(_0x57e77f){const _0x136695=_0x1b251e;if(_0x57e77f)return _0x57e77f[_0x136695('0x6e')](null);return null;})[_0x1b251e('0x89')](respondWithStatusCode(_0x2ae09a,null))[_0x1b251e('0x68')](handleError(_0x2ae09a,null));},exports[_0x2d0a4a('0xf')]=function(_0x3c8ecc,_0x19c9ff){const _0x2ff969=_0x2d0a4a;return db[_0x2ff969('0x35')][_0x2ff969('0x16')]({'where':{'id':_0x3c8ecc[_0x2ff969('0x19')]['id']}})[_0x2ff969('0x89')](function(_0x44858c){const _0x4a2629=_0x2ff969;if(_0x44858c)return _0x44858c[_0x4a2629('0xf')](_0x3c8ecc[_0x4a2629('0x7e')][_0x4a2629('0x8d')],{'through':_['omit'](_0x3c8ecc[_0x4a2629('0x7e')],[_0x4a2629('0x8d'),'id'])});})[_0x2ff969('0x89')](respondWithResult(_0x19c9ff,null))[_0x2ff969('0x68')](handleError(_0x19c9ff,null));},exports['getInteractions']=function(_0x2068d2,_0x902da8){const _0x1d2581=_0x2d0a4a;let _0x19b931={'raw':![],'where':{}};const _0x2f6d51={},_0xae1d0={'count':0x0,'rows':[]};return db[_0x1d2581('0x33')][_0x1d2581('0x16')]({'where':{'id':_0x2068d2[_0x1d2581('0x19')]['id']}})[_0x1d2581('0x89')](handleEntityNotFound(_0x902da8,null))[_0x1d2581('0x89')](function(_0x493d53){const _0x36c79c=_0x1d2581;if(_0x493d53)return _0x2f6d51[_0x36c79c('0x9b')]=_[_0x36c79c('0x6c')](db[_0x36c79c('0x35')][_0x36c79c('0x0')]),_0x2f6d51[_0x36c79c('0x43')]=_[_0x36c79c('0x6c')](_0x2068d2[_0x36c79c('0x43')]),_0x2f6d51[_0x36c79c('0x86')]=_['intersection'](_0x2f6d51[_0x36c79c('0x9b')],_0x2f6d51[_0x36c79c('0x43')]),_0x19b931[_0x36c79c('0x59')]=_[_0x36c79c('0x42')](_0x2f6d51[_0x36c79c('0x9b')],qs[_0x36c79c('0x18')](_0x2068d2['query'][_0x36c79c('0x18')])),_0x19b931['attributes']=_0x19b931['attributes'][_0x36c79c('0x57')]?_0x19b931[_0x36c79c('0x59')]:_0x2f6d51[_0x36c79c('0x9b')],typeof _0x2068d2[_0x36c79c('0x43')][_0x36c79c('0x9a')]===_0x36c79c('0x39')&&(_0x19b931['limit']=qs[_0x36c79c('0x47')](_0x2068d2[_0x36c79c('0x43')]['limit']),_0x19b931[_0x36c79c('0x73')]=qs[_0x36c79c('0x73')](_0x2068d2[_0x36c79c('0x43')]['offset'])),_0x19b931[_0x36c79c('0x52')]=qs[_0x36c79c('0x46')](_0x2068d2[_0x36c79c('0x43')][_0x36c79c('0x46')]),_0x19b931[_0x36c79c('0x15')]=qs['filters'](_[_0x36c79c('0x3c')](_0x2068d2[_0x36c79c('0x43')],_0x2f6d51[_0x36c79c('0x86')])),_0x19b931[_0x36c79c('0x15')]['MailAccountId']=_0x493d53['id'],_0x2068d2[_0x36c79c('0x43')]['filter']&&(_0x19b931['where']=_[_0x36c79c('0x67')](_0x19b931[_0x36c79c('0x15')],{[Op['or']]:_[_0x36c79c('0x5f')](_0x19b931['attributes'],function(_0x2f1abe){const _0x24b328=_0x36c79c,_0x131e56={};return _0x131e56[_0x2f1abe]={[Op[_0x24b328('0xa4')]]:'%'+_0x2068d2[_0x24b328('0x43')][_0x24b328('0x30')]+'%'},_0x131e56;})})),_0x19b931=_[_0x36c79c('0x67')]({},_0x19b931,_0x2068d2['options']),db[_0x36c79c('0x35')][_0x36c79c('0x5d')]({'where':_0x19b931[_0x36c79c('0x15')]})['then'](function(_0x26e455){const _0x50eb5f=_0x36c79c;return _0xae1d0[_0x50eb5f('0x5d')]=_0x26e455,_0x2068d2[_0x50eb5f('0x43')][_0x50eb5f('0x64')]&&(_0x19b931[_0x50eb5f('0x49')]=[{'model':db[_0x50eb5f('0x4e')],'as':_0x50eb5f('0x14'),'required':![]},{'model':db[_0x50eb5f('0x1f')],'as':_0x50eb5f('0x76'),'attributes':['name',_0x50eb5f('0x40'),_0x50eb5f('0x62')],'required':![]},{'model':db['Tag'],'as':_0x50eb5f('0x50'),'attributes':['id','name',_0x50eb5f('0x2')],'where':_0x2068d2[_0x50eb5f('0x43')][_0x50eb5f('0x5b')]?{'id':_0x2068d2[_0x50eb5f('0x43')]['tag']}:undefined,'required':_0x2068d2[_0x50eb5f('0x43')][_0x50eb5f('0x5b')]?!![]:![]}]),db['MailInteraction'][_0x50eb5f('0x9f')](_0x19b931);})[_0x36c79c('0x89')](function(_0xf2521b){const _0x232e60=_0x36c79c;return _0xae1d0[_0x232e60('0x51')]=_0xf2521b,_0xae1d0;});})[_0x1d2581('0x89')](respondWithFilteredResult(_0x902da8,_0x19b931))[_0x1d2581('0x68')](handleError(_0x902da8,null));},exports[_0x2d0a4a('0x82')]=function(_0x43422c,_0x225e52){const _0x4c5018=_0x2d0a4a;return db[_0x4c5018('0x33')]['findOne']({'where':{'id':_0x43422c[_0x4c5018('0x19')]['id']}})[_0x4c5018('0x89')](handleEntityNotFound(_0x225e52,null))['then'](function(_0x11391b){const _0x2d69e5=_0x4c5018;if(_0x11391b)return db['sequelize'][_0x2d69e5('0x24')](function(_0x5a4322){const _0xbaadb7=_0x2d69e5;return db[_0xbaadb7('0x23')][_0xbaadb7('0x63')]({'where':{'MailAccountId':_0x43422c[_0xbaadb7('0x19')]['id']},'transaction':_0x5a4322})[_0xbaadb7('0x89')](function(){const _0x1e235e=_0xbaadb7,_0x3a068e=_[_0x1e235e('0x5f')](_0x43422c[_0x1e235e('0x7e')],function(_0x30a4ec){const _0xaa676e=_0x1e235e;return _0x30a4ec[_0xaa676e('0x74')]=_0x43422c[_0xaa676e('0x19')]['id'],_0x30a4ec;});return db[_0x1e235e('0x23')]['bulkCreate'](_0x3a068e,{'transaction':_0x5a4322});});})[_0x2d69e5('0x89')](function(){const _0x17ee1a=_0x2d69e5;return db[_0x17ee1a('0x23')]['findAndCountAll']({'where':{'MailAccountId':_0x43422c['params']['id']},'order':_0x17ee1a('0x5a')});});})[_0x4c5018('0x89')](respondWithResult(_0x225e52,null))['catch'](handleError(_0x225e52,null));},exports[_0x2d0a4a('0x36')]=function(_0x573667,_0x452a92){const _0x581e70=_0x2d0a4a;let _0x518bde={};const _0x3e6673={};let _0x1bee31,_0x453831;return db[_0x581e70('0x33')][_0x581e70('0x16')]({'where':{'id':_0x573667[_0x581e70('0x19')]['id']}})[_0x581e70('0x89')](handleEntityNotFound(_0x452a92,null))['then'](function(_0x27766f){const _0x25c02b=_0x581e70;if(_0x27766f)return _0x1bee31=_0x27766f,_0x3e6673[_0x25c02b('0x9b')]=_[_0x25c02b('0x6c')](db[_0x25c02b('0x23')]['rawAttributes']),_0x3e6673[_0x25c02b('0x43')]=_[_0x25c02b('0x6c')](_0x573667[_0x25c02b('0x43')]),_0x3e6673[_0x25c02b('0x86')]=_[_0x25c02b('0x42')](_0x3e6673[_0x25c02b('0x9b')],_0x3e6673[_0x25c02b('0x43')]),_0x518bde[_0x25c02b('0x59')]=_['intersection'](_0x3e6673[_0x25c02b('0x9b')],qs[_0x25c02b('0x18')](_0x573667[_0x25c02b('0x43')]['fields'])),_0x518bde['attributes']=_0x518bde['attributes'][_0x25c02b('0x57')]?_0x518bde[_0x25c02b('0x59')]:_0x3e6673[_0x25c02b('0x9b')],_0x518bde[_0x25c02b('0x52')]=qs[_0x25c02b('0x46')](_0x573667['query'][_0x25c02b('0x46')]),_0x518bde[_0x25c02b('0x15')]=qs['filters'](_['pick'](_0x573667[_0x25c02b('0x43')],_0x3e6673[_0x25c02b('0x86')])),_0x573667[_0x25c02b('0x43')][_0x25c02b('0x30')]&&(_0x518bde[_0x25c02b('0x15')]=_[_0x25c02b('0x67')](_0x518bde[_0x25c02b('0x15')],{[Op['or']]:_['map'](_0x518bde[_0x25c02b('0x59')],function(_0x21c903){const _0x26eee9=_0x25c02b,_0x2e547b={};return _0x2e547b[_0x21c903]={[Op['like']]:'%'+_0x573667['query'][_0x26eee9('0x30')]+'%'},_0x2e547b;})})),_0x518bde=_['merge']({},_0x518bde,_0x573667[_0x25c02b('0x55')]),_0x1bee31[_0x25c02b('0x36')](_0x518bde);})[_0x581e70('0x89')](function(_0x1681a0){const _0x18c07a=_0x581e70;if(_0x1681a0)return _0x453831=_0x1681a0['length'],typeof _0x573667[_0x18c07a('0x43')][_0x18c07a('0x9a')]===_0x18c07a('0x39')&&(_0x518bde[_0x18c07a('0x47')]=qs[_0x18c07a('0x47')](_0x573667[_0x18c07a('0x43')][_0x18c07a('0x47')]),_0x518bde[_0x18c07a('0x73')]=qs[_0x18c07a('0x73')](_0x573667[_0x18c07a('0x43')][_0x18c07a('0x73')])),_0x1bee31['getApplications'](_0x518bde);})['then'](function(_0x45ee5a){if(_0x45ee5a)return _0x45ee5a?{'count':_0x453831,'rows':_0x45ee5a}:null;})[_0x581e70('0x89')](respondWithResult(_0x452a92,null))[_0x581e70('0x68')](handleError(_0x452a92,null));},exports[_0x2d0a4a('0x2d')]=function(_0x27b969,_0x3df66e){const _0xc9ee99=_0x2d0a4a;let _0x122246={'raw':!![],'where':{}};const _0x202b6b={},_0x29f73c={'count':0x0,'rows':[]};return db[_0xc9ee99('0x33')][_0xc9ee99('0x16')]({'where':{'id':_0x27b969[_0xc9ee99('0x19')]['id']}})[_0xc9ee99('0x89')](handleEntityNotFound(_0x3df66e,null))[_0xc9ee99('0x89')](function(_0x50690d){const _0x202400=_0xc9ee99;if(_0x50690d){_0x202b6b[_0x202400('0x9b')]=_[_0x202400('0x6c')](db[_0x202400('0x77')]['rawAttributes']),_0x202b6b[_0x202400('0x43')]=_[_0x202400('0x6c')](_0x27b969[_0x202400('0x43')]),_0x202b6b[_0x202400('0x86')]=_['intersection'](_0x202b6b[_0x202400('0x9b')],_0x202b6b[_0x202400('0x43')]),_0x122246[_0x202400('0x59')]=_[_0x202400('0x42')](_0x202b6b['model'],qs[_0x202400('0x18')](_0x27b969['query'][_0x202400('0x18')])),_0x122246[_0x202400('0x59')]=_0x122246[_0x202400('0x59')][_0x202400('0x57')]?_0x122246[_0x202400('0x59')]:_0x202b6b['model'];typeof _0x27b969[_0x202400('0x43')]['nolimit']===_0x202400('0x39')&&(_0x122246[_0x202400('0x47')]=qs[_0x202400('0x47')](_0x27b969[_0x202400('0x43')][_0x202400('0x47')]),_0x122246[_0x202400('0x73')]=qs['offset'](_0x27b969[_0x202400('0x43')][_0x202400('0x73')]));_0x122246[_0x202400('0x52')]=qs['sort'](_0x27b969[_0x202400('0x43')]['sort']),_0x122246[_0x202400('0x15')]=qs[_0x202400('0x86')](_[_0x202400('0x3c')](_0x27b969[_0x202400('0x43')],_0x202b6b[_0x202400('0x86')])),_0x122246[_0x202400('0x15')][_0x202400('0x74')]=_0x50690d['id'];_0x27b969['query'][_0x202400('0x30')]&&(_0x122246[_0x202400('0x15')]=_['merge'](_0x122246['where'],{[Op['or']]:_[_0x202400('0x5f')](_0x122246[_0x202400('0x59')],function(_0x2354a4){const _0x5bd9bd=_0x202400,_0x29fffc={};return _0x29fffc[_0x2354a4]={[Op['like']]:'%'+_0x27b969[_0x5bd9bd('0x43')][_0x5bd9bd('0x30')]+'%'},_0x29fffc;})}));if(_0x27b969[_0x202400('0x43')][_0x202400('0x31')]){const _0x543932=_0x27b969['query'][_0x202400('0x31')][_0x202400('0x83')](','),_0x2cd71e={};_0x2cd71e[_0x543932[0x0]]={[Op[_0x202400('0x1')]]:moment(_0x543932[0x1])[_0x202400('0x7b')]('YYYY-MM-DD\x20HH:mm:ss')},_0x122246[_0x202400('0x15')]=_[_0x202400('0x67')](_0x122246[_0x202400('0x15')],_0x2cd71e);}return _0x122246=_[_0x202400('0x67')]({},_0x122246,_0x27b969[_0x202400('0x55')]),db['MailMessage']['count']({'where':_0x122246[_0x202400('0x15')]})[_0x202400('0x89')](function(_0xc618e3){const _0x10152d=_0x202400;return _0x29f73c['count']=_0xc618e3,_0x27b969[_0x10152d('0x43')][_0x10152d('0x64')]&&(_0x122246['include']=[{'all':!![]}]),db['MailMessage']['findAll'](_0x122246);})[_0x202400('0x89')](function(_0x4eaaf4){const _0x765302=_0x202400;return _0x29f73c[_0x765302('0x51')]=_0x4eaaf4,_0x29f73c;});}})[_0xc9ee99('0x89')](respondWithFilteredResult(_0x3df66e,_0x122246))['catch'](handleError(_0x3df66e,null));},exports[_0x2d0a4a('0x8f')]=function(_0x2da6af,_0x45e369){const _0x3ed4da=_0x2d0a4a;let _0x426834,_0xffb218={},_0x213d03;return _0x2da6af[_0x3ed4da('0x7e')]['to']&&(_0x213d03=_0x2da6af['body']['to'][_0x3ed4da('0x83')](',')[0x0]),db[_0x3ed4da('0x33')][_0x3ed4da('0x16')]({'where':{'id':_0x2da6af['params']['id']},'include':[{'model':db[_0x3ed4da('0x93')],'as':'List','include':[{'model':db[_0x3ed4da('0x4e')],'as':'Contacts','where':{'email':_0x213d03},'limit':0x1,'order':[['updatedAt',_0x3ed4da('0x2e')]]}]},{'model':db['MailServerOut'],'as':_0x3ed4da('0x9e'),'raw':!![]}]})[_0x3ed4da('0x89')](handleEntityNotFound(_0x45e369,null))[_0x3ed4da('0x89')](function(_0x375f42){const _0x44e33d=_0x3ed4da;if(_0x375f42){_0x426834=_0x375f42;if(_0x375f42[_0x44e33d('0x9e')]){_['isNil'](_0x2da6af[_0x44e33d('0x7e')][_0x44e33d('0xa6')])&&(_0x2da6af['body']['from']=util[_0x44e33d('0x7b')](_0x44e33d('0x7a'),_0x375f42[_0x44e33d('0x85')],_0x375f42[_0x44e33d('0x20')]||_0x375f42['Smtp'][_0x44e33d('0x69')]));if(_0x2da6af[_0x44e33d('0x7e')][_0x44e33d('0x4d')]&&_0x2da6af[_0x44e33d('0x7e')][_0x44e33d('0x4d')][_0x44e33d('0x57')])for(let _0x43e67a=0x0;_0x43e67a<_0x2da6af['body']['attachments']['length'];_0x43e67a+=0x1){_0x2da6af[_0x44e33d('0x7e')][_0x44e33d('0x4d')][_0x43e67a]={'filename':_0x2da6af[_0x44e33d('0x7e')][_0x44e33d('0x4d')][_0x43e67a][_0x44e33d('0x85')],'path':path[_0x44e33d('0x97')](config[_0x44e33d('0x75')],_0x44e33d('0x53'),_0x2da6af[_0x44e33d('0x7e')][_0x44e33d('0x4d')][_0x43e67a][_0x44e33d('0x7d')])};}const _0xe88d6b={'tls':{'rejectUnauthorized':![]}};return _[_0x44e33d('0x44')](_0x375f42['Smtp'][_0x44e33d('0x79')])?(_0x375f42['Smtp'][_0x44e33d('0x5c')]&&(_0xe88d6b[_0x44e33d('0xa9')]={'user':_0x375f42[_0x44e33d('0x9e')][_0x44e33d('0x69')],'pass':_0x375f42[_0x44e33d('0x9e')][_0x44e33d('0x2a')]}),_0xe88d6b[_0x44e33d('0x37')]=_0x375f42[_0x44e33d('0x9e')][_0x44e33d('0x37')],_0xe88d6b[_0x44e33d('0x1b')]=_0x375f42[_0x44e33d('0x9e')][_0x44e33d('0x1b')],_0xe88d6b[_0x44e33d('0x6d')]=_0x375f42[_0x44e33d('0x9e')][_0x44e33d('0x6d')]):(_0xe88d6b['service']=_0x375f42[_0x44e33d('0x9e')]['service'],_0xe88d6b['auth']={'user':_0x375f42[_0x44e33d('0x9e')][_0x44e33d('0x69')],'pass':_0x375f42[_0x44e33d('0x9e')][_0x44e33d('0x2a')]}),respondWithRpcPromise(_0x44e33d('0x17'),_0x44e33d('0x25'),{'account':_0xe88d6b,'message':_0x2da6af[_0x44e33d('0x7e')]});}else throw new Error(_0x44e33d('0xa0'));}})[_0x3ed4da('0x89')](function(_0x411d6b){const _0x4dcb34=_0x3ed4da;if(_0x411d6b){_0xffb218=_0x411d6b;if(_0x426834[_0x4dcb34('0x11')])return _0x426834[_0x4dcb34('0x11')][_0x4dcb34('0x4b')][_0x4dcb34('0x57')]?_0x426834[_0x4dcb34('0x11')][_0x4dcb34('0x4b')][0x0]:db[_0x4dcb34('0x4e')]['create'](_[_0x4dcb34('0xb')](_0x2da6af['body'],{'firstName':_0x2da6af[_0x4dcb34('0x7e')]['to'],'email':_0x2da6af[_0x4dcb34('0x7e')]['to'],'phone':_0x2da6af[_0x4dcb34('0x7e')]['to'],'ListId':_0x426834[_0x4dcb34('0x87')]}));else throw new Error(_0x4dcb34('0xa0'));}})[_0x3ed4da('0x89')](function(_0x31330c){const _0x478ca5=_0x3ed4da;if(_0x31330c){let _0x2f9cb1={'UserId':_0x2da6af[_0x478ca5('0x69')]['id'],'ContactId':_0x31330c['id'],'MailAccountId':_0x426834['id'],'inReplyTo':_0xffb218[_0x478ca5('0x92')],'to':_0x2da6af[_0x478ca5('0x7e')][_0x478ca5('0xa6')],'cc':_0x2da6af[_0x478ca5('0x7e')]['cc'],'subject':_0x2da6af[_0x478ca5('0x7e')][_0x478ca5('0x88')],'attach':_0x2da6af[_0x478ca5('0x7e')]['attach'],'firstMsgDirection':'out','lastMsgAt':moment()[_0x478ca5('0x7b')](_0x478ca5('0x13')),'lastMsgDirection':_0x478ca5('0x8a'),'lastMsgBody':_0x2da6af[_0x478ca5('0x7e')][_0x478ca5('0x7e')],'Messages':[_['merge'](_0x2da6af['body'],{'messageId':_0xffb218[_0x478ca5('0x92')],'sentAt':moment()[_0x478ca5('0x7b')](_0x478ca5('0x13')),'read':!![],'MailAccountId':_0x426834['id'],'UserId':_0x2da6af[_0x478ca5('0x69')]['id'],'ContactId':_0x31330c['id']})]};return _0x2da6af[_0x478ca5('0x7e')][_0x478ca5('0x3b')]&&(_0x2f9cb1=_[_0x478ca5('0x67')](_0x2f9cb1,_0x2da6af[_0x478ca5('0x7e')][_0x478ca5('0x3b')])),db[_0x478ca5('0x35')][_0x478ca5('0x1c')](_0x2f9cb1,{'include':[{'model':db[_0x478ca5('0x77')],'as':_0x478ca5('0x66')}]});}})[_0x3ed4da('0x89')](respondWithResult(_0x45e369,null))[_0x3ed4da('0x68')](handleError(_0x45e369,null));},exports[_0x2d0a4a('0x94')]=function(_0xd5940b,_0x5d6ec9){const _0x455767=_0x2d0a4a;return db['MailAccount']['findOne']({'where':{'id':_0xd5940b[_0x455767('0x19')]['id']},'include':[{'model':db[_0x455767('0x1a')],'as':_0x455767('0x9e'),'raw':!![]}]})['then'](handleEntityNotFound(_0x5d6ec9,null))[_0x455767('0x89')](function(_0x4c1f66){const _0x4e2dea=_0x455767;if(_0x4c1f66&&_0x4c1f66[_0x4e2dea('0x9e')]){const _0x59684e={'id':_0x4c1f66['id'],'tls':{'rejectUnauthorized':![]}};return _0x4c1f66[_0x4e2dea('0x9e')][_0x4e2dea('0x79')]?_0x59684e[_0x4e2dea('0x79')]=_0x4c1f66[_0x4e2dea('0x9e')][_0x4e2dea('0x79')]:(_0x59684e[_0x4e2dea('0x37')]=_0x4c1f66[_0x4e2dea('0x9e')]['host'],_0x59684e[_0x4e2dea('0x1b')]=_0x4c1f66[_0x4e2dea('0x9e')]['port'],_0x59684e[_0x4e2dea('0x6d')]=_0x4c1f66['Smtp'][_0x4e2dea('0x6d')]),_0x4c1f66[_0x4e2dea('0x9e')][_0x4e2dea('0x5c')]&&(_0x59684e[_0x4e2dea('0xa9')]={'user':_0x4c1f66[_0x4e2dea('0x9e')][_0x4e2dea('0x69')],'pass':_0x4c1f66[_0x4e2dea('0x9e')]['pass']}),respondWithRpcPromise(_0x4e2dea('0x6'),_0x4e2dea('0x94'),{'account':_0x59684e});}})['then'](respondWithResult(_0x5d6ec9,null))[_0x455767('0x68')](handleError(_0x5d6ec9,null));},exports[_0x2d0a4a('0x63')]=function(_0x1e2f58,_0x3876b7){const _0x2a4811=_0x2d0a4a;return db[_0x2a4811('0x33')][_0x2a4811('0x16')]({'where':{'id':_0x1e2f58[_0x2a4811('0x19')]['id']}})[_0x2a4811('0x89')](handleEntityNotFound(_0x3876b7,null))[_0x2a4811('0x89')](function(_0xb6db57){const _0x202e36=_0x2a4811;if(_0xb6db57&&_0xb6db57[_0x202e36('0x79')])throw new ValidationError(_0x202e36('0xa5'));return _0xb6db57;})[_0x2a4811('0x89')](removeEntity(_0x3876b7,null))[_0x2a4811('0x68')](handleError(_0x3876b7,null));},exports['addAgents']=function(_0x428c81,_0x393765){const _0x45fb47=_0x2d0a4a;return db[_0x45fb47('0x33')][_0x45fb47('0x16')]({'where':{'id':_0x428c81[_0x45fb47('0x19')]['id']}})[_0x45fb47('0x89')](function(_0x38cfa0){const _0x40b9a3=_0x45fb47;if(_0x38cfa0)return _0x38cfa0[_0x40b9a3('0x45')](_0x428c81[_0x40b9a3('0x7e')][_0x40b9a3('0x8d')],{'through':_[_0x40b9a3('0xa1')](_0x428c81[_0x40b9a3('0x7e')],[_0x40b9a3('0x8d'),'id'])})[_0x40b9a3('0x89')](function(_0x4e72f8){const _0x3e818f=_0x40b9a3;for(let _0x38c007=0x0;_0x38c007<_0x428c81[_0x3e818f('0x7e')][_0x3e818f('0x8d')][_0x3e818f('0x57')];_0x38c007+=0x1){socket[_0x3e818f('0x3a')](_0x3e818f('0x80'),{'UserId':_0x428c81[_0x3e818f('0x7e')][_0x3e818f('0x8d')][_0x38c007],'MailAccountId':_0x428c81[_0x3e818f('0x19')]['id']});}return _0x4e72f8;});})[_0x45fb47('0x89')](respondWithResult(_0x393765,null))[_0x45fb47('0x68')](handleError(_0x393765,null));},exports[_0x2d0a4a('0xc')]=function(_0x1de495,_0x482745){const _0x1313d0=_0x2d0a4a;return db[_0x1313d0('0x33')][_0x1313d0('0x16')]({'where':{'id':_0x1de495['params']['id']}})[_0x1313d0('0x89')](handleEntityNotFound(_0x482745,null))[_0x1313d0('0x89')](function(_0x269d21){const _0x477a7a=_0x1313d0;if(_0x269d21)return _0x269d21[_0x477a7a('0xc')](_0x1de495[_0x477a7a('0x43')][_0x477a7a('0x8d')])[_0x477a7a('0x89')](function(){const _0x1f5d52=_0x477a7a;if(_[_0x1f5d52('0x91')](_0x1de495['query'][_0x1f5d52('0x8d')]))for(let _0x2c4bfc=0x0;_0x2c4bfc<_0x1de495[_0x1f5d52('0x43')][_0x1f5d52('0x8d')]['length'];_0x2c4bfc+=0x1){socket[_0x1f5d52('0x3a')]('userMailAccount:remove',{'UserId':Number(_0x1de495[_0x1f5d52('0x43')][_0x1f5d52('0x8d')][_0x2c4bfc]),'MailAccountId':Number(_0x1de495[_0x1f5d52('0x19')]['id'])});}else socket[_0x1f5d52('0x3a')]('userMailAccount:remove',{'UserId':Number(_0x1de495[_0x1f5d52('0x43')]['ids']),'MailAccountId':Number(_0x1de495[_0x1f5d52('0x19')]['id'])});});})[_0x1313d0('0x89')](respondWithStatusCode(_0x482745,null))[_0x1313d0('0x68')](handleError(_0x482745,null));},exports[_0x2d0a4a('0x7')]=function(_0x2642c7,_0x4dddf7){const _0x1d7019=_0x2d0a4a;let _0x112f19={};const _0x439a9d={};let _0x514c9c,_0x260e86;return db[_0x1d7019('0x33')][_0x1d7019('0x16')]({'where':{'id':_0x2642c7['params']['id']}})[_0x1d7019('0x89')](handleEntityNotFound(_0x4dddf7,null))[_0x1d7019('0x89')](function(_0x5f0cf5){const _0x43c6e0=_0x1d7019;if(_0x5f0cf5)return _0x514c9c=_0x5f0cf5,_0x439a9d[_0x43c6e0('0x9b')]=_[_0x43c6e0('0x6c')](db[_0x43c6e0('0x1f')][_0x43c6e0('0x0')]),_0x439a9d[_0x43c6e0('0x43')]=_['keys'](_0x2642c7[_0x43c6e0('0x43')]),_0x439a9d[_0x43c6e0('0x86')]=_[_0x43c6e0('0x42')](_0x439a9d[_0x43c6e0('0x9b')],_0x439a9d['query']),_0x112f19['attributes']=_[_0x43c6e0('0x42')](_0x439a9d[_0x43c6e0('0x9b')],qs[_0x43c6e0('0x18')](_0x2642c7[_0x43c6e0('0x43')][_0x43c6e0('0x18')])),_0x112f19['attributes']=_0x112f19[_0x43c6e0('0x59')][_0x43c6e0('0x57')]?_0x112f19[_0x43c6e0('0x59')]:_0x439a9d[_0x43c6e0('0x9b')],_0x112f19['order']=qs[_0x43c6e0('0x46')](_0x2642c7['query'][_0x43c6e0('0x46')]),_0x112f19['where']=qs[_0x43c6e0('0x86')](_[_0x43c6e0('0x3c')](_0x2642c7[_0x43c6e0('0x43')],_0x439a9d[_0x43c6e0('0x86')])),_0x2642c7['query'][_0x43c6e0('0x30')]&&(_0x112f19['where']=_['merge'](_0x112f19[_0x43c6e0('0x15')],{[Op['or']]:_[_0x43c6e0('0x5f')](_0x112f19[_0x43c6e0('0x59')],function(_0x7fc809){const _0x24c044=_0x43c6e0,_0x22a297={};return _0x22a297[_0x7fc809]={[Op[_0x24c044('0xa4')]]:'%'+_0x2642c7['query']['filter']+'%'},_0x22a297;})})),_0x112f19=_[_0x43c6e0('0x67')]({},_0x112f19,_0x2642c7[_0x43c6e0('0x55')]),_0x514c9c['getAgents'](_0x112f19);})[_0x1d7019('0x89')](function(_0x5e3952){const _0x112a0b=_0x1d7019;if(_0x5e3952)return _0x260e86=_0x5e3952['length'],typeof _0x2642c7['query'][_0x112a0b('0x9a')]===_0x112a0b('0x39')&&(_0x112f19[_0x112a0b('0x47')]=qs[_0x112a0b('0x47')](_0x2642c7[_0x112a0b('0x43')]['limit']),_0x112f19[_0x112a0b('0x73')]=qs[_0x112a0b('0x73')](_0x2642c7[_0x112a0b('0x43')][_0x112a0b('0x73')])),_0x514c9c[_0x112a0b('0x7')](_0x112f19);})[_0x1d7019('0x89')](function(_0xf00eae){if(_0xf00eae)return _0xf00eae?{'count':_0x260e86,'rows':_0xf00eae}:null;})[_0x1d7019('0x89')](respondWithResult(_0x4dddf7,null))[_0x1d7019('0x68')](handleError(_0x4dddf7,null));}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.events.js b/server/api/mailAccount/mailAccount.events.js index 0dbe045..2e7246c 100644 --- a/server/api/mailAccount/mailAccount.events.js +++ b/server/api/mailAccount/mailAccount.events.js @@ -1 +1 @@ -const a395_0x516a=['remove','../../mysqldb','undefined','events','save','addHook','setMaxListeners','emit'];(function(_0x2bc5c7,_0x516a1b){const _0x1becd0=function(_0x5d23e1){while(--_0x5d23e1){_0x2bc5c7['push'](_0x2bc5c7['shift']());}};_0x1becd0(++_0x516a1b);}(a395_0x516a,0x1f3));const a395_0x1bec=function(_0x2bc5c7,_0x516a1b){_0x2bc5c7=_0x2bc5c7-0x0;let _0x1becd0=a395_0x516a[_0x2bc5c7];return _0x1becd0;};const _0x31e25e=a395_0x1bec;'use strict';const EventEmitter=require(_0x31e25e('0x0')),MailAccount=require(_0x31e25e('0x6'))['db']['MailAccount'],MailAccountEvents=new EventEmitter();MailAccountEvents[_0x31e25e('0x3')](0x0);const events={'afterCreate':_0x31e25e('0x1'),'afterUpdate':'update','afterDestroy':_0x31e25e('0x5')};function emitEvent(_0x5d23e1){return function(_0x2ebc1a){const _0x5edb6f=a395_0x1bec;MailAccountEvents['emit'](_0x5d23e1+':'+_0x2ebc1a['id'],_0x2ebc1a),MailAccountEvents[_0x5edb6f('0x4')](_0x5d23e1,_0x2ebc1a);};}for(const e in events){if(typeof events[e]!==_0x31e25e('0x7')){const event=events[e];MailAccount[_0x31e25e('0x2')](e,emitEvent(event));}}module['exports']=MailAccountEvents; \ No newline at end of file +const a395_0x2c3b=['../../mysqldb','undefined','save','update','setMaxListeners','addHook','events','emit','MailAccount','remove'];(function(_0x12fb08,_0x2c3b3f){const _0x5c1cf0=function(_0x465771){while(--_0x465771){_0x12fb08['push'](_0x12fb08['shift']());}};_0x5c1cf0(++_0x2c3b3f);}(a395_0x2c3b,0x13e));const a395_0x5c1c=function(_0x12fb08,_0x2c3b3f){_0x12fb08=_0x12fb08-0x0;let _0x5c1cf0=a395_0x2c3b[_0x12fb08];return _0x5c1cf0;};const _0x510b81=a395_0x5c1c;'use strict';const EventEmitter=require(_0x510b81('0x8')),MailAccount=require(_0x510b81('0x2'))['db'][_0x510b81('0x0')],MailAccountEvents=new EventEmitter();MailAccountEvents[_0x510b81('0x6')](0x0);const events={'afterCreate':_0x510b81('0x4'),'afterUpdate':_0x510b81('0x5'),'afterDestroy':_0x510b81('0x1')};function emitEvent(_0x465771){return function(_0x5757ab){const _0x46de12=a395_0x5c1c;MailAccountEvents[_0x46de12('0x9')](_0x465771+':'+_0x5757ab['id'],_0x5757ab),MailAccountEvents[_0x46de12('0x9')](_0x465771,_0x5757ab);};}for(const e in events){if(typeof events[e]!==_0x510b81('0x3')){const event=events[e];MailAccount[_0x510b81('0x7')](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 a498c7d..fb51ea0 100644 --- a/server/api/mailAccount/mailAccount.model.js +++ b/server/api/mailAccount/mailAccount.model.js @@ -1 +1 @@ -const a396_0x186e=['./mailAccount.attributes','exports','mail_accounts','MailAccount'];(function(_0x3f9ddc,_0x186ea6){const _0x52d6c9=function(_0x1508c7){while(--_0x1508c7){_0x3f9ddc['push'](_0x3f9ddc['shift']());}};_0x52d6c9(++_0x186ea6);}(a396_0x186e,0x140));const a396_0x52d6=function(_0x3f9ddc,_0x186ea6){_0x3f9ddc=_0x3f9ddc-0x0;let _0x52d6c9=a396_0x186e[_0x3f9ddc];return _0x52d6c9;};const _0x209f8d=a396_0x52d6;'use strict';const attributes=require(_0x209f8d('0x0'));module[_0x209f8d('0x1')]=function(_0x1508c7){const _0x4ed141=_0x209f8d,_0x41816a=_0x1508c7['define'](_0x4ed141('0x3'),attributes,{'tableName':_0x4ed141('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x41816a;}; \ No newline at end of file +const a396_0x5009=['define','MailAccount','mail_accounts','./mailAccount.attributes','exports'];(function(_0x432381,_0x500968){const _0x2ee2d0=function(_0x33d1c5){while(--_0x33d1c5){_0x432381['push'](_0x432381['shift']());}};_0x2ee2d0(++_0x500968);}(a396_0x5009,0x16e));const a396_0x2ee2=function(_0x432381,_0x500968){_0x432381=_0x432381-0x0;let _0x2ee2d0=a396_0x5009[_0x432381];return _0x2ee2d0;};const _0x41d887=a396_0x2ee2;'use strict';const attributes=require(_0x41d887('0x2'));module[_0x41d887('0x3')]=function(_0x33d1c5){const _0x2280b2=_0x41d887,_0x239657=_0x33d1c5[_0x2280b2('0x4')](_0x2280b2('0x0'),attributes,{'tableName':_0x2280b2('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x239657;}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.rpc.js b/server/api/mailAccount/mailAccount.rpc.js index 9734f93..8705bdd 100644 --- a/server/api/mailAccount/mailAccount.rpc.js +++ b/server/api/mailAccount/mailAccount.rpc.js @@ -1 +1 @@ -const a397_0x28d6=['MailMessage','from','agent','create','randomstring','ShowMailAccount','Messages','Start','../../rediscache','options','inReplyTo','MailInteraction','List\x20not\x20found','stringify','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','client','Contacts','isNil','../../config/logger','MailAccount,\x20%s,\x20%s','CmList','messageId','jayson/promise','generate','get','MailAccount','lodash','from\x20is\x20mandatory','body','model','Attachments','autoclose','updatedAt','request','defaults','debug','where','list','GetMailAccount','findOne','waitForTheAssignedAgent','mapKey','findAll','List','ListId','MailAccount,\x20%s,\x20%s,\x20%s','length','includes','message','created','format','attach','MailServerOut','error','Applications','User','rawAttributes','CompanyId','interaction','NotifyMailAccount','*,*,*,*','unshift','account','../../mysqldb','result','keys','name','CmContact','originTo','catch','Attachment','rpc','limit','request\x20sent','attributes','http','createdAt','include','UserId','contact','difference','./mailAccount.socket','then','bcc','register','orderBy','subject','mail','map','raw','code','close','applications','YYYY-MM-DD\x20HH:mm:ss','update','info'];(function(_0x4f748d,_0x28d64e){const _0x575a6f=function(_0x423a03){while(--_0x423a03){_0x4f748d['push'](_0x4f748d['shift']());}};_0x575a6f(++_0x28d64e);}(a397_0x28d6,0x91));const a397_0x575a=function(_0x4f748d,_0x28d64e){_0x4f748d=_0x4f748d-0x0;let _0x575a6f=a397_0x28d6[_0x4f748d];return _0x575a6f;};const _0xf5c9d2=a397_0x575a;'use strict';const _=require(_0xf5c9d2('0x49')),db=require(_0xf5c9d2('0xe'))['db'],logger=require(_0xf5c9d2('0x41'))(_0xf5c9d2('0x16')),{getSocket}=require(_0xf5c9d2('0x37')),socket=getSocket(),rs=require(_0xf5c9d2('0x33')),moment=require('moment'),jayson=require(_0xf5c9d2('0x45')),client=jayson[_0xf5c9d2('0x3e')][_0xf5c9d2('0x1a')]({'port':0x232c});require(_0xf5c9d2('0x20'))[_0xf5c9d2('0x23')](socket);function respondWithRpcPromise(_0x423a03,_0x41af19,_0x450cbd){return new Promise(function(_0x4742d2,_0x6e299f){const _0x37a52d=a397_0x575a;return client[_0x37a52d('0x50')](_0x423a03,_0x450cbd)[_0x37a52d('0x21')](function(_0x4a0526){const _0x2979df=_0x37a52d;logger[_0x2979df('0x2e')](_0x2979df('0x42'),_0x41af19,_0x2979df('0x18')),logger[_0x2979df('0x52')](_0x2979df('0x5c'),_0x41af19,'request\x20sent',JSON[_0x2979df('0x3c')](_0x4a0526));if(_0x4a0526[_0x2979df('0x4')]){if(_0x4a0526[_0x2979df('0x4')][_0x2979df('0x29')]===0x1f4)return logger[_0x2979df('0x4')](_0x2979df('0x42'),_0x41af19,_0x4a0526['error'][_0x2979df('0x5f')]),_0x6e299f(_0x4a0526['error'][_0x2979df('0x5f')]);return logger[_0x2979df('0x4')](_0x2979df('0x42'),_0x41af19,_0x4a0526[_0x2979df('0x4')]['message']),_0x4742d2(_0x4a0526['error'][_0x2979df('0x5f')]);}else logger['info'](_0x2979df('0x42'),_0x41af19,_0x2979df('0x18')),_0x4742d2(_0x4a0526[_0x2979df('0xf')]['message']);})[_0x37a52d('0x14')](function(_0x4405db){const _0x20c2ed=_0x37a52d;logger[_0x20c2ed('0x4')]('MailAccount,\x20%s,\x20%s',_0x41af19,_0x4405db),_0x6e299f(_0x4405db);});});}exports['GetMailAccount']=function(_0x524aa5){const _0x2d90a9=this;return new Promise(function(_0x1cf2b3,_0x5630a4){const _0x3fb56d=a397_0x575a;return db['MailAccount'][_0x3fb56d('0x59')]({'raw':_0x524aa5[_0x3fb56d('0x38')]?_0x524aa5[_0x3fb56d('0x38')][_0x3fb56d('0x28')]===undefined?!![]:![]:!![],'where':_0x524aa5[_0x3fb56d('0x38')]?_0x524aa5['options'][_0x3fb56d('0x53')]||null:null,'attributes':_0x524aa5[_0x3fb56d('0x38')]?_0x524aa5[_0x3fb56d('0x38')][_0x3fb56d('0x19')]||null:null,'limit':_0x524aa5[_0x3fb56d('0x38')]?_0x524aa5['options'][_0x3fb56d('0x17')]||null:null,'include':_0x524aa5[_0x3fb56d('0x38')]?_0x524aa5[_0x3fb56d('0x38')][_0x3fb56d('0x1c')]?_['map'](_0x524aa5[_0x3fb56d('0x38')]['include'],function(_0x211688){const _0xcfa417=_0x3fb56d;return{'model':db[_0x211688[_0xcfa417('0x4c')]],'as':_0x211688['as'],'attributes':_0x211688[_0xcfa417('0x19')],'include':_0x211688['include']?_[_0xcfa417('0x27')](_0x211688[_0xcfa417('0x1c')],function(_0x44da73){const _0x5e6dc4=_0xcfa417;return{'model':db[_0x44da73['model']],'as':_0x44da73['as'],'attributes':_0x44da73['attributes'],'include':_0x44da73[_0x5e6dc4('0x1c')]?_['map'](_0x44da73['include'],function(_0x2777e3){const _0x4fef95=_0x5e6dc4;return{'model':db[_0x2777e3[_0x4fef95('0x4c')]],'as':_0x2777e3['as'],'attributes':_0x2777e3[_0x4fef95('0x19')]};}):[]};}):[]};}):[]:[]})[_0x3fb56d('0x21')](function(_0x130391){const _0x305eb0=_0x3fb56d;logger[_0x305eb0('0x2e')](_0x305eb0('0x55'),_0x524aa5),logger['debug'](_0x305eb0('0x55'),_0x524aa5,JSON['stringify'](_0x130391)),_0x1cf2b3(_0x130391);})[_0x3fb56d('0x14')](function(_0x18bfb3){const _0x13a79b=_0x3fb56d;logger[_0x13a79b('0x4')](_0x13a79b('0x55'),_0x18bfb3[_0x13a79b('0x5f')],_0x524aa5),_0x5630a4(_0x2d90a9[_0x13a79b('0x4')](0x1f4,_0x18bfb3[_0x13a79b('0x5f')]));});});},exports[_0xf5c9d2('0x34')]=function(_0x364ecb){const _0x4df097=this;return new Promise(function(_0x3cbf74,_0x55963d){const _0x52537f=a397_0x575a;return db[_0x52537f('0x48')]['findOne']({'raw':_0x364ecb[_0x52537f('0x38')]?_0x364ecb[_0x52537f('0x38')][_0x52537f('0x28')]===undefined?!![]:![]:!![],'where':_0x364ecb[_0x52537f('0x38')]?_0x364ecb[_0x52537f('0x38')][_0x52537f('0x53')]||null:null,'attributes':_0x364ecb[_0x52537f('0x38')]?_0x364ecb[_0x52537f('0x38')][_0x52537f('0x19')]||null:null,'include':_0x364ecb['options']?_0x364ecb[_0x52537f('0x38')][_0x52537f('0x1c')]?_['map'](_0x364ecb[_0x52537f('0x38')]['include'],function(_0x16b8f6){const _0x2a8866=_0x52537f;return{'model':db[_0x16b8f6[_0x2a8866('0x4c')]],'as':_0x16b8f6['as'],'attributes':_0x16b8f6[_0x2a8866('0x19')],'include':_0x16b8f6[_0x2a8866('0x1c')]?_[_0x2a8866('0x27')](_0x16b8f6['include'],function(_0x45d067){const _0xaaf519=_0x2a8866;return{'model':db[_0x45d067[_0xaaf519('0x4c')]],'as':_0x45d067['as'],'attributes':_0x45d067[_0xaaf519('0x19')],'include':_0x45d067[_0xaaf519('0x1c')]?_[_0xaaf519('0x27')](_0x45d067[_0xaaf519('0x1c')],function(_0x23d758){const _0x651384=_0xaaf519;return{'model':db[_0x23d758[_0x651384('0x4c')]],'as':_0x23d758['as'],'attributes':_0x23d758['attributes']};}):[]};}):[]};}):[]:[]})[_0x52537f('0x21')](function(_0x4209e8){const _0x3d08da=_0x52537f;logger[_0x3d08da('0x2e')](_0x3d08da('0x34'),_0x364ecb),logger[_0x3d08da('0x52')](_0x3d08da('0x34'),_0x364ecb,JSON['stringify'](_0x4209e8)),_0x3cbf74(_0x4209e8);})['catch'](function(_0x246135){const _0x3a23dd=_0x52537f;logger[_0x3a23dd('0x4')]('ShowMailAccount',_0x246135[_0x3a23dd('0x5f')],_0x364ecb),_0x55963d(_0x4df097[_0x3a23dd('0x4')](0x1f4,_0x246135[_0x3a23dd('0x5f')]));});});},exports[_0xf5c9d2('0xa')]=function(_0x234d9e){const _0x538836=this;return new Promise(function(_0x2b774d,_0x260bb8){const _0x37b203=a397_0x575a,_0xb30ffc={'body':_0x234d9e['body'],'channel':_0x37b203('0x26')},_0x114611=_[_0x37b203('0x1f')](_[_0x37b203('0x10')](db[_0x37b203('0x12')][_0x37b203('0x7')]),[_0x37b203('0x1b'),_0x37b203('0x4f'),_0x37b203('0x8'),_0x37b203('0x5b')]);let _0x3dbd9d=![];_0x234d9e[_0x37b203('0x4b')]['id']&&delete _0x234d9e[_0x37b203('0x4b')]['id'];if(_['isNil'](_0x234d9e[_0x37b203('0x4b')][_0x37b203('0x30')]))return _0x260bb8(_0x538836[_0x37b203('0x4')](0x1f4,_0x37b203('0x4a')));if(_['isNil'](_0x234d9e[_0x37b203('0x4b')]['body'])||_0x234d9e[_0x37b203('0x4b')]['body']==='')return _0x260bb8(_0x538836[_0x37b203('0x4')](0x1f4,'body\x20is\x20mandatory\x20and\x20not\x20empty'));if(_[_0x37b203('0x40')](_0x234d9e[_0x37b203('0x4b')][_0x37b203('0x58')]))return _0x260bb8(_0x538836['error'](0x1f4,_0x37b203('0x3d')+_0x114611));if(!_[_0x37b203('0x5e')](_0x114611,_0x234d9e[_0x37b203('0x4b')][_0x37b203('0x58')]))return _0x260bb8(_0x538836[_0x37b203('0x4')](0x1f4,'mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x114611));const _0x9c5f57={};return _0x9c5f57[_0x234d9e[_0x37b203('0x4b')][_0x37b203('0x58')]]=_0x234d9e[_0x37b203('0x4b')][_0x37b203('0x30')],db['MailAccount'][_0x37b203('0x56')]({'where':{'id':_0x234d9e[_0x37b203('0xd')]['id']},'include':[{'model':db[_0x37b203('0x43')],'as':_0x37b203('0x5a'),'include':[{'model':db['CmContact'],'as':_0x37b203('0x3f'),'where':_0x9c5f57,'limit':0x1,'order':[['updatedAt','DESC']]}]},{'model':db['MailApplication'],'as':_0x37b203('0x5')},{'model':db[_0x37b203('0x3')],'as':'Smtp'}]})[_0x37b203('0x21')](function(_0x412ca0){const _0x14d0f0=_0x37b203;if(_0x412ca0&&_0x412ca0[_0x14d0f0('0x5a')]){const _0x454005=_0x412ca0['get']({'plain':!![]});_0xb30ffc[_0x14d0f0('0xd')]=_['omit'](_0x454005,[_0x14d0f0('0x5'),_0x14d0f0('0x5a')]),_0xb30ffc['applications']=_0x454005['Applications'],_0xb30ffc[_0x14d0f0('0x54')]=_0x454005['List'],_0xb30ffc[_0x14d0f0('0x2b')]=_[_0x14d0f0('0x24')](_0xb30ffc[_0x14d0f0('0x2b')],['priority'],['asc']);_0xb30ffc[_0x14d0f0('0xd')]&&_0xb30ffc[_0x14d0f0('0xd')][_0x14d0f0('0x4e')]&&_0xb30ffc[_0x14d0f0('0x2b')]['push']({'id':0x0,'priority':_0xb30ffc['applications']['length']+0x1,'app':_0x14d0f0('0x2a'),'appdata':_0x14d0f0('0x4e'),'interval':_0x14d0f0('0xb')});_0xb30ffc[_0x14d0f0('0xd')]['Applications']&&delete _0xb30ffc[_0x14d0f0('0xd')][_0x14d0f0('0x5')];_0xb30ffc[_0x14d0f0('0xd')]['List']&&delete _0xb30ffc[_0x14d0f0('0xd')]['List'];if(_0x454005[_0x14d0f0('0x5a')][_0x14d0f0('0x3f')][_0x14d0f0('0x5d')])return _0x454005['List']['Contacts'][0x0];const _0x49d71c=_[_0x14d0f0('0x51')](_0x234d9e[_0x14d0f0('0x4b')],{'firstName':_0x234d9e[_0x14d0f0('0x4b')][_0x14d0f0('0x30')],'ListId':_0x454005[_0x14d0f0('0x5b')]});return _0x49d71c[_0x234d9e[_0x14d0f0('0x4b')][_0x14d0f0('0x58')]]=_0x234d9e[_0x14d0f0('0x4b')][_0x14d0f0('0x30')],db[_0x14d0f0('0x12')][_0x14d0f0('0x32')](_0x49d71c);}else throw new Error(_0x14d0f0('0x3b'));})[_0x37b203('0x21')](function(_0x301dce){const _0x42e444=_0x37b203;_0xb30ffc[_0x42e444('0x1e')]=_0x301dce;if(_0x301dce){!_0x234d9e[_0x42e444('0x4b')][_0x42e444('0x5f')]['messageId']&&(_0x234d9e['body'][_0x42e444('0x5f')][_0x42e444('0x44')]=rs[_0x42e444('0x46')]()+'\x20'+_0x234d9e[_0x42e444('0x4b')]['message'][_0x42e444('0x30')]);const _0x5dd6e2={'ContactId':_0x301dce['id'],'MailAccountId':_0x234d9e[_0x42e444('0xd')]['id'],'inReplyTo':_0x234d9e[_0x42e444('0x4b')][_0x42e444('0x5f')][_0x42e444('0x44')],'to':_0x234d9e[_0x42e444('0x4b')]['message'][_0x42e444('0x30')],'cc':_0x234d9e[_0x42e444('0x4b')]['message']['cc'],'subject':_0x234d9e[_0x42e444('0x4b')][_0x42e444('0x5f')][_0x42e444('0x25')],'attach':_0x234d9e[_0x42e444('0x4b')][_0x42e444('0x5f')]['attach'],'lastMsgAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':'in','lastMsgBody':_0x234d9e[_0x42e444('0x4b')][_0x42e444('0x4b')]};return db[_0x42e444('0x3a')][_0x42e444('0x56')]({'where':{'closed':![],'MailAccountId':_0x234d9e['account']['id']},'include':[{'model':db[_0x42e444('0x2f')],'as':_0x42e444('0x35'),'attributes':[_0x42e444('0x44')],'where':{'messageId':_0x234d9e['body'][_0x42e444('0x5f')][_0x42e444('0x39')]}}]})[_0x42e444('0x21')](function(_0x5b7fb4){const _0x3c95f2=_0x42e444;if(_0x5b7fb4)return[_0x5b7fb4,![]];return db[_0x3c95f2('0x3a')][_0x3c95f2('0x32')](_0x5dd6e2)[_0x3c95f2('0x21')](function(_0x248741){return[_0x248741,!![]];});});}else throw new Error('Contact\x20not\x20found');})[_0x37b203('0x21')](function([_0x412a27,_0x663856]){const _0x10ebef=_0x37b203;if(_0x412a27)return _0x3dbd9d=_0x663856,!_0x663856?_0x412a27[_0x10ebef('0x2d')]({'inReplyTo':_0x234d9e[_0x10ebef('0x4b')]['message'][_0x10ebef('0x44')],'to':_0x234d9e[_0x10ebef('0x4b')]['message'][_0x10ebef('0x30')],'cc':_0x234d9e['body']['message']['cc'],'subject':_0x234d9e['body'][_0x10ebef('0x5f')][_0x10ebef('0x25')],'attach':_0x412a27[_0x10ebef('0x2')]?_0x412a27[_0x10ebef('0x2')]:_0x234d9e[_0x10ebef('0x4b')]['message']['attach'],'substatus':null,'substatusAt':moment()['format'](_0x10ebef('0x2c')),'lastMsgAt':moment()[_0x10ebef('0x1')](_0x10ebef('0x2c')),'lastMsgDirection':'in','lastMsgBody':_0x234d9e['body'][_0x10ebef('0x4b')]}):_0x412a27;})['then'](function(_0x1c661a){const _0x18ed13=_0x37b203;return _0xb30ffc[_0x18ed13('0x9')]=_0x1c661a[_0x18ed13('0x47')]({'plain':!![]}),_0xb30ffc[_0x18ed13('0x9')][_0x18ed13('0x0')]=_0x3dbd9d,db[_0x18ed13('0x2f')][_0x18ed13('0x32')]({'body':_0x234d9e['body'][_0x18ed13('0x4b')],'MailAccountId':_0x234d9e[_0x18ed13('0xd')]['id'],'MailInteractionId':_0x1c661a['id'],'direction':'in','ContactId':_0xb30ffc[_0x18ed13('0x1e')]['id'],'messageId':_0x234d9e['body'][_0x18ed13('0x5f')][_0x18ed13('0x44')],'from':_0x234d9e['body'][_0x18ed13('0x5f')][_0x18ed13('0x30')],'to':_0x234d9e[_0x18ed13('0x4b')]['message']['to'],'cc':_0x234d9e[_0x18ed13('0x4b')][_0x18ed13('0x5f')]['cc'],'subject':_0x234d9e['body'][_0x18ed13('0x5f')]['subject'],'attach':_0x234d9e[_0x18ed13('0x4b')]['message'][_0x18ed13('0x2')],'Attachments':_0x234d9e[_0x18ed13('0x4b')][_0x18ed13('0x5f')]['attachments'],'originTo':_0x234d9e[_0x18ed13('0x4b')][_0x18ed13('0x5f')][_0x18ed13('0x13')],'originCc':_0x234d9e[_0x18ed13('0x4b')][_0x18ed13('0x5f')]['originCc'],'bcc':_0x234d9e[_0x18ed13('0x4b')][_0x18ed13('0x5f')][_0x18ed13('0x22')]},{'include':[{'model':db[_0x18ed13('0x15')],'as':_0x18ed13('0x4d')}]});})[_0x37b203('0x21')](function(_0x487048){const _0x43b74c=_0x37b203;_0xb30ffc[_0x43b74c('0x5f')]=_0x487048;if(_0xb30ffc[_0x43b74c('0x9')][_0x43b74c('0x1d')])return db[_0x43b74c('0x6')][_0x43b74c('0x56')]({'attributes':['id',_0x43b74c('0x11')],'where':{'id':_0xb30ffc[_0x43b74c('0x9')][_0x43b74c('0x1d')]}})[_0x43b74c('0x21')](function(_0x42c5c4){const _0x49c7f6=_0x43b74c;return _0x42c5c4&&_0xb30ffc[_0x49c7f6('0x2b')][_0x49c7f6('0xc')]({'id':0x0,'priority':0x0,'app':_0x49c7f6('0x31'),'appdata':_0x42c5c4['name']+','+(_0xb30ffc['account'][_0x49c7f6('0x57')]||0xa),'interval':'*,*,*,*'}),respondWithRpcPromise('Start','startRouting',_0xb30ffc);});return respondWithRpcPromise(_0x43b74c('0x36'),'startRouting',_0xb30ffc);})[_0x37b203('0x21')](function(_0x146e89){_0x2b774d(_0x146e89);})[_0x37b203('0x14')](function(_0x5a9212){const _0x57a71c=_0x37b203;_0x260bb8(_0x538836[_0x57a71c('0x4')](0x1f4,_0x5a9212[_0x57a71c('0x5f')]));});});}; \ No newline at end of file +const a397_0x2ff0=['./mailAccount.socket','generate','startRouting','MailAccount,\x20%s,\x20%s','CmList','interaction','Applications','message','Attachments','options','omit','Start','where','../../config/logger','keys','priority','originTo','Contact\x20not\x20found','applications','raw','push','client','attach','request','body\x20is\x20mandatory\x20and\x20not\x20empty','randomstring','MailAccount','*,*,*,*','error','lodash','code','MailInteraction','UserId','../../mysqldb','close','MailServerOut','jayson/promise','list','updatedAt','CmContact','isNil','bcc','MailAccount,\x20%s,\x20%s,\x20%s','mail','name','Smtp','created','result','format','messageId','YYYY-MM-DD\x20HH:mm:ss','catch','contact','body','from\x20is\x20mandatory','update','findOne','rpc','moment','http','User','model','autoclose','../../rediscache','waitForTheAssignedAgent','limit','info','register','map','subject','originCc','List','findAll','mapKey','stringify','agent','unshift','DESC','inReplyTo','MailApplication','List\x20not\x20found','then','createdAt','asc','MailMessage','GetMailAccount','debug','attachments','from','orderBy','Attachment','length','ListId','account','difference','include','get','create','ShowMailAccount','attributes','defaults','Contacts','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','request\x20sent','includes'];(function(_0x4a44e4,_0x2ff093){const _0x188155=function(_0x42d211){while(--_0x42d211){_0x4a44e4['push'](_0x4a44e4['shift']());}};_0x188155(++_0x2ff093);}(a397_0x2ff0,0xa6));const a397_0x1881=function(_0x4a44e4,_0x2ff093){_0x4a44e4=_0x4a44e4-0x0;let _0x188155=a397_0x2ff0[_0x4a44e4];return _0x188155;};const _0x3449b2=a397_0x1881;'use strict';const _=require(_0x3449b2('0x49')),db=require(_0x3449b2('0x4d'))['db'],logger=require(_0x3449b2('0x39'))(_0x3449b2('0x65')),{getSocket}=require(_0x3449b2('0x2')),socket=getSocket(),rs=require(_0x3449b2('0x45')),moment=require(_0x3449b2('0x66')),jayson=require(_0x3449b2('0x50')),client=jayson[_0x3449b2('0x41')][_0x3449b2('0x67')]({'port':0x232c});require(_0x3449b2('0x2c'))[_0x3449b2('0x6')](socket);function respondWithRpcPromise(_0x42d211,_0x35be47,_0x4abb1c){return new Promise(function(_0x3b7639,_0x109193){const _0x12f874=a397_0x1881;return client[_0x12f874('0x43')](_0x42d211,_0x4abb1c)[_0x12f874('0x14')](function(_0x452610){const _0x54d1fe=_0x12f874;logger[_0x54d1fe('0x5')](_0x54d1fe('0x2f'),_0x35be47,_0x54d1fe('0x2a')),logger[_0x54d1fe('0x19')](_0x54d1fe('0x56'),_0x35be47,_0x54d1fe('0x2a'),JSON[_0x54d1fe('0xd')](_0x452610));if(_0x452610[_0x54d1fe('0x48')]){if(_0x452610[_0x54d1fe('0x48')][_0x54d1fe('0x4a')]===0x1f4)return logger['error']('MailAccount,\x20%s,\x20%s',_0x35be47,_0x452610[_0x54d1fe('0x48')][_0x54d1fe('0x33')]),_0x109193(_0x452610[_0x54d1fe('0x48')][_0x54d1fe('0x33')]);return logger[_0x54d1fe('0x48')](_0x54d1fe('0x2f'),_0x35be47,_0x452610[_0x54d1fe('0x48')]['message']),_0x3b7639(_0x452610[_0x54d1fe('0x48')][_0x54d1fe('0x33')]);}else logger[_0x54d1fe('0x5')](_0x54d1fe('0x2f'),_0x35be47,_0x54d1fe('0x2a')),_0x3b7639(_0x452610[_0x54d1fe('0x5b')][_0x54d1fe('0x33')]);})[_0x12f874('0x5f')](function(_0x448d85){const _0x46b178=_0x12f874;logger[_0x46b178('0x48')]('MailAccount,\x20%s,\x20%s',_0x35be47,_0x448d85),_0x109193(_0x448d85);});});}exports[_0x3449b2('0x18')]=function(_0x4c2e70){const _0x5a9af8=this;return new Promise(function(_0x50d741,_0x113a77){const _0x579f50=a397_0x1881;return db[_0x579f50('0x46')][_0x579f50('0xb')]({'raw':_0x4c2e70['options']?_0x4c2e70['options'][_0x579f50('0x3f')]===undefined?!![]:![]:!![],'where':_0x4c2e70[_0x579f50('0x35')]?_0x4c2e70[_0x579f50('0x35')][_0x579f50('0x38')]||null:null,'attributes':_0x4c2e70[_0x579f50('0x35')]?_0x4c2e70['options'][_0x579f50('0x26')]||null:null,'limit':_0x4c2e70['options']?_0x4c2e70['options'][_0x579f50('0x4')]||null:null,'include':_0x4c2e70[_0x579f50('0x35')]?_0x4c2e70[_0x579f50('0x35')]['include']?_[_0x579f50('0x7')](_0x4c2e70[_0x579f50('0x35')][_0x579f50('0x22')],function(_0x20654b){const _0x4be40c=_0x579f50;return{'model':db[_0x20654b[_0x4be40c('0x0')]],'as':_0x20654b['as'],'attributes':_0x20654b[_0x4be40c('0x26')],'include':_0x20654b['include']?_[_0x4be40c('0x7')](_0x20654b['include'],function(_0x468527){const _0x5c529f=_0x4be40c;return{'model':db[_0x468527['model']],'as':_0x468527['as'],'attributes':_0x468527['attributes'],'include':_0x468527[_0x5c529f('0x22')]?_['map'](_0x468527[_0x5c529f('0x22')],function(_0x3236f3){const _0x275337=_0x5c529f;return{'model':db[_0x3236f3['model']],'as':_0x3236f3['as'],'attributes':_0x3236f3[_0x275337('0x26')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x9bc1bf){const _0x41fda3=_0x579f50;logger[_0x41fda3('0x5')]('GetMailAccount',_0x4c2e70),logger['debug'](_0x41fda3('0x18'),_0x4c2e70,JSON[_0x41fda3('0xd')](_0x9bc1bf)),_0x50d741(_0x9bc1bf);})[_0x579f50('0x5f')](function(_0x628d53){const _0x1742c6=_0x579f50;logger['error'](_0x1742c6('0x18'),_0x628d53[_0x1742c6('0x33')],_0x4c2e70),_0x113a77(_0x5a9af8[_0x1742c6('0x48')](0x1f4,_0x628d53[_0x1742c6('0x33')]));});});},exports[_0x3449b2('0x25')]=function(_0x7a2ee9){const _0x85aa3b=this;return new Promise(function(_0x5b06df,_0x1157fc){const _0x609505=a397_0x1881;return db[_0x609505('0x46')][_0x609505('0x64')]({'raw':_0x7a2ee9[_0x609505('0x35')]?_0x7a2ee9[_0x609505('0x35')][_0x609505('0x3f')]===undefined?!![]:![]:!![],'where':_0x7a2ee9['options']?_0x7a2ee9[_0x609505('0x35')][_0x609505('0x38')]||null:null,'attributes':_0x7a2ee9[_0x609505('0x35')]?_0x7a2ee9[_0x609505('0x35')][_0x609505('0x26')]||null:null,'include':_0x7a2ee9[_0x609505('0x35')]?_0x7a2ee9['options'][_0x609505('0x22')]?_[_0x609505('0x7')](_0x7a2ee9[_0x609505('0x35')][_0x609505('0x22')],function(_0x12fbda){const _0x18cb0e=_0x609505;return{'model':db[_0x12fbda[_0x18cb0e('0x0')]],'as':_0x12fbda['as'],'attributes':_0x12fbda[_0x18cb0e('0x26')],'include':_0x12fbda['include']?_[_0x18cb0e('0x7')](_0x12fbda[_0x18cb0e('0x22')],function(_0x3ab88a){const _0xf6c013=_0x18cb0e;return{'model':db[_0x3ab88a['model']],'as':_0x3ab88a['as'],'attributes':_0x3ab88a[_0xf6c013('0x26')],'include':_0x3ab88a['include']?_[_0xf6c013('0x7')](_0x3ab88a['include'],function(_0xc24e55){const _0x41ea4f=_0xf6c013;return{'model':db[_0xc24e55[_0x41ea4f('0x0')]],'as':_0xc24e55['as'],'attributes':_0xc24e55[_0x41ea4f('0x26')]};}):[]};}):[]};}):[]:[]})[_0x609505('0x14')](function(_0x51afd8){const _0x4603db=_0x609505;logger['info'](_0x4603db('0x25'),_0x7a2ee9),logger['debug']('ShowMailAccount',_0x7a2ee9,JSON[_0x4603db('0xd')](_0x51afd8)),_0x5b06df(_0x51afd8);})[_0x609505('0x5f')](function(_0x596cef){const _0x198ab6=_0x609505;logger[_0x198ab6('0x48')](_0x198ab6('0x25'),_0x596cef[_0x198ab6('0x33')],_0x7a2ee9),_0x1157fc(_0x85aa3b['error'](0x1f4,_0x596cef[_0x198ab6('0x33')]));});});},exports['NotifyMailAccount']=function(_0x1ff6ea){const _0x42b25e=this;return new Promise(function(_0x1714ff,_0x5ee232){const _0x1a1d70=a397_0x1881,_0x2a0207={'body':_0x1ff6ea[_0x1a1d70('0x61')],'channel':_0x1a1d70('0x57')},_0x522b81=_[_0x1a1d70('0x21')](_[_0x1a1d70('0x3a')](db[_0x1a1d70('0x53')]['rawAttributes']),[_0x1a1d70('0x15'),_0x1a1d70('0x52'),'CompanyId','ListId']);let _0x29f678=![];_0x1ff6ea[_0x1a1d70('0x61')]['id']&&delete _0x1ff6ea[_0x1a1d70('0x61')]['id'];if(_[_0x1a1d70('0x54')](_0x1ff6ea[_0x1a1d70('0x61')][_0x1a1d70('0x1b')]))return _0x5ee232(_0x42b25e[_0x1a1d70('0x48')](0x1f4,_0x1a1d70('0x62')));if(_[_0x1a1d70('0x54')](_0x1ff6ea['body']['body'])||_0x1ff6ea[_0x1a1d70('0x61')]['body']==='')return _0x5ee232(_0x42b25e[_0x1a1d70('0x48')](0x1f4,_0x1a1d70('0x44')));if(_['isNil'](_0x1ff6ea[_0x1a1d70('0x61')][_0x1a1d70('0xc')]))return _0x5ee232(_0x42b25e['error'](0x1f4,'mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x522b81));if(!_[_0x1a1d70('0x2b')](_0x522b81,_0x1ff6ea['body'][_0x1a1d70('0xc')]))return _0x5ee232(_0x42b25e[_0x1a1d70('0x48')](0x1f4,_0x1a1d70('0x29')+_0x522b81));const _0x4b6c0c={};return _0x4b6c0c[_0x1ff6ea[_0x1a1d70('0x61')][_0x1a1d70('0xc')]]=_0x1ff6ea['body'][_0x1a1d70('0x1b')],db[_0x1a1d70('0x46')][_0x1a1d70('0x64')]({'where':{'id':_0x1ff6ea[_0x1a1d70('0x20')]['id']},'include':[{'model':db[_0x1a1d70('0x30')],'as':'List','include':[{'model':db['CmContact'],'as':_0x1a1d70('0x28'),'where':_0x4b6c0c,'limit':0x1,'order':[[_0x1a1d70('0x52'),_0x1a1d70('0x10')]]}]},{'model':db[_0x1a1d70('0x12')],'as':_0x1a1d70('0x32')},{'model':db[_0x1a1d70('0x4f')],'as':_0x1a1d70('0x59')}]})[_0x1a1d70('0x14')](function(_0x1c4990){const _0x5915c9=_0x1a1d70;if(_0x1c4990&&_0x1c4990[_0x5915c9('0xa')]){const _0x544d60=_0x1c4990[_0x5915c9('0x23')]({'plain':!![]});_0x2a0207[_0x5915c9('0x20')]=_[_0x5915c9('0x36')](_0x544d60,[_0x5915c9('0x32'),_0x5915c9('0xa')]),_0x2a0207['applications']=_0x544d60[_0x5915c9('0x32')],_0x2a0207[_0x5915c9('0x51')]=_0x544d60['List'],_0x2a0207[_0x5915c9('0x3e')]=_[_0x5915c9('0x1c')](_0x2a0207[_0x5915c9('0x3e')],[_0x5915c9('0x3b')],[_0x5915c9('0x16')]);_0x2a0207[_0x5915c9('0x20')]&&_0x2a0207[_0x5915c9('0x20')][_0x5915c9('0x1')]&&_0x2a0207[_0x5915c9('0x3e')][_0x5915c9('0x40')]({'id':0x0,'priority':_0x2a0207[_0x5915c9('0x3e')][_0x5915c9('0x1e')]+0x1,'app':_0x5915c9('0x4e'),'appdata':_0x5915c9('0x1'),'interval':_0x5915c9('0x47')});_0x2a0207[_0x5915c9('0x20')][_0x5915c9('0x32')]&&delete _0x2a0207[_0x5915c9('0x20')][_0x5915c9('0x32')];_0x2a0207[_0x5915c9('0x20')][_0x5915c9('0xa')]&&delete _0x2a0207['account'][_0x5915c9('0xa')];if(_0x544d60['List']['Contacts']['length'])return _0x544d60[_0x5915c9('0xa')]['Contacts'][0x0];const _0x2399c1=_[_0x5915c9('0x27')](_0x1ff6ea[_0x5915c9('0x61')],{'firstName':_0x1ff6ea[_0x5915c9('0x61')][_0x5915c9('0x1b')],'ListId':_0x544d60[_0x5915c9('0x1f')]});return _0x2399c1[_0x1ff6ea[_0x5915c9('0x61')][_0x5915c9('0xc')]]=_0x1ff6ea[_0x5915c9('0x61')][_0x5915c9('0x1b')],db[_0x5915c9('0x53')][_0x5915c9('0x24')](_0x2399c1);}else throw new Error(_0x5915c9('0x13'));})['then'](function(_0x1e2cd9){const _0x22c568=_0x1a1d70;_0x2a0207['contact']=_0x1e2cd9;if(_0x1e2cd9){!_0x1ff6ea['body'][_0x22c568('0x33')][_0x22c568('0x5d')]&&(_0x1ff6ea[_0x22c568('0x61')][_0x22c568('0x33')][_0x22c568('0x5d')]=rs[_0x22c568('0x2d')]()+'\x20'+_0x1ff6ea['body'][_0x22c568('0x33')][_0x22c568('0x1b')]);const _0x560b04={'ContactId':_0x1e2cd9['id'],'MailAccountId':_0x1ff6ea[_0x22c568('0x20')]['id'],'inReplyTo':_0x1ff6ea['body'][_0x22c568('0x33')][_0x22c568('0x5d')],'to':_0x1ff6ea[_0x22c568('0x61')]['message'][_0x22c568('0x1b')],'cc':_0x1ff6ea[_0x22c568('0x61')][_0x22c568('0x33')]['cc'],'subject':_0x1ff6ea[_0x22c568('0x61')][_0x22c568('0x33')][_0x22c568('0x8')],'attach':_0x1ff6ea[_0x22c568('0x61')][_0x22c568('0x33')][_0x22c568('0x42')],'lastMsgAt':moment()[_0x22c568('0x5c')]('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgDirection':'in','lastMsgBody':_0x1ff6ea['body'][_0x22c568('0x61')]};return db[_0x22c568('0x4b')][_0x22c568('0x64')]({'where':{'closed':![],'MailAccountId':_0x1ff6ea[_0x22c568('0x20')]['id']},'include':[{'model':db[_0x22c568('0x17')],'as':'Messages','attributes':['messageId'],'where':{'messageId':_0x1ff6ea[_0x22c568('0x61')]['message'][_0x22c568('0x11')]}}]})[_0x22c568('0x14')](function(_0x20cee6){const _0x1a3581=_0x22c568;if(_0x20cee6)return[_0x20cee6,![]];return db[_0x1a3581('0x4b')][_0x1a3581('0x24')](_0x560b04)[_0x1a3581('0x14')](function(_0x4a540e){return[_0x4a540e,!![]];});});}else throw new Error(_0x22c568('0x3d'));})[_0x1a1d70('0x14')](function([_0x5110c2,_0x33b356]){const _0x1d8c09=_0x1a1d70;if(_0x5110c2)return _0x29f678=_0x33b356,!_0x33b356?_0x5110c2[_0x1d8c09('0x63')]({'inReplyTo':_0x1ff6ea[_0x1d8c09('0x61')][_0x1d8c09('0x33')][_0x1d8c09('0x5d')],'to':_0x1ff6ea[_0x1d8c09('0x61')][_0x1d8c09('0x33')][_0x1d8c09('0x1b')],'cc':_0x1ff6ea[_0x1d8c09('0x61')][_0x1d8c09('0x33')]['cc'],'subject':_0x1ff6ea[_0x1d8c09('0x61')][_0x1d8c09('0x33')][_0x1d8c09('0x8')],'attach':_0x5110c2[_0x1d8c09('0x42')]?_0x5110c2[_0x1d8c09('0x42')]:_0x1ff6ea[_0x1d8c09('0x61')][_0x1d8c09('0x33')][_0x1d8c09('0x42')],'substatus':null,'substatusAt':moment()[_0x1d8c09('0x5c')]('YYYY-MM-DD\x20HH:mm:ss'),'lastMsgAt':moment()[_0x1d8c09('0x5c')](_0x1d8c09('0x5e')),'lastMsgDirection':'in','lastMsgBody':_0x1ff6ea[_0x1d8c09('0x61')][_0x1d8c09('0x61')]}):_0x5110c2;})['then'](function(_0x2be1f1){const _0x482b05=_0x1a1d70;return _0x2a0207[_0x482b05('0x31')]=_0x2be1f1[_0x482b05('0x23')]({'plain':!![]}),_0x2a0207[_0x482b05('0x31')][_0x482b05('0x5a')]=_0x29f678,db[_0x482b05('0x17')][_0x482b05('0x24')]({'body':_0x1ff6ea['body'][_0x482b05('0x61')],'MailAccountId':_0x1ff6ea[_0x482b05('0x20')]['id'],'MailInteractionId':_0x2be1f1['id'],'direction':'in','ContactId':_0x2a0207[_0x482b05('0x60')]['id'],'messageId':_0x1ff6ea[_0x482b05('0x61')]['message'][_0x482b05('0x5d')],'from':_0x1ff6ea['body']['message'][_0x482b05('0x1b')],'to':_0x1ff6ea[_0x482b05('0x61')]['message']['to'],'cc':_0x1ff6ea[_0x482b05('0x61')][_0x482b05('0x33')]['cc'],'subject':_0x1ff6ea[_0x482b05('0x61')]['message']['subject'],'attach':_0x1ff6ea['body'][_0x482b05('0x33')][_0x482b05('0x42')],'Attachments':_0x1ff6ea[_0x482b05('0x61')][_0x482b05('0x33')][_0x482b05('0x1a')],'originTo':_0x1ff6ea[_0x482b05('0x61')]['message'][_0x482b05('0x3c')],'originCc':_0x1ff6ea[_0x482b05('0x61')][_0x482b05('0x33')][_0x482b05('0x9')],'bcc':_0x1ff6ea[_0x482b05('0x61')][_0x482b05('0x33')][_0x482b05('0x55')]},{'include':[{'model':db[_0x482b05('0x1d')],'as':_0x482b05('0x34')}]});})[_0x1a1d70('0x14')](function(_0x780d71){const _0x23c03e=_0x1a1d70;_0x2a0207['message']=_0x780d71;if(_0x2a0207[_0x23c03e('0x31')]['UserId'])return db[_0x23c03e('0x68')][_0x23c03e('0x64')]({'attributes':['id','name'],'where':{'id':_0x2a0207[_0x23c03e('0x31')][_0x23c03e('0x4c')]}})[_0x23c03e('0x14')](function(_0x2ed495){const _0x250d69=_0x23c03e;return _0x2ed495&&_0x2a0207['applications'][_0x250d69('0xf')]({'id':0x0,'priority':0x0,'app':_0x250d69('0xe'),'appdata':_0x2ed495[_0x250d69('0x58')]+','+(_0x2a0207[_0x250d69('0x20')][_0x250d69('0x3')]||0xa),'interval':'*,*,*,*'}),respondWithRpcPromise(_0x250d69('0x37'),_0x250d69('0x2e'),_0x2a0207);});return respondWithRpcPromise(_0x23c03e('0x37'),_0x23c03e('0x2e'),_0x2a0207);})[_0x1a1d70('0x14')](function(_0x313cce){_0x1714ff(_0x313cce);})[_0x1a1d70('0x5f')](function(_0x3d0c74){const _0x306ed2=_0x1a1d70;_0x5ee232(_0x42b25e[_0x306ed2('0x48')](0x1f4,_0x3d0c74[_0x306ed2('0x33')]));});});}; \ No newline at end of file diff --git a/server/api/mailAccount/mailAccount.socket.js b/server/api/mailAccount/mailAccount.socket.js index 31b7308..a715553 100644 --- a/server/api/mailAccount/mailAccount.socket.js +++ b/server/api/mailAccount/mailAccount.socket.js @@ -1 +1 @@ -const a398_0x4e32=['mailAccount:','./mailAccount.events','length','register','save','update','remove'];(function(_0xc0195a,_0x4e3248){const _0x239f8b=function(_0x26830f){while(--_0x26830f){_0xc0195a['push'](_0xc0195a['shift']());}};_0x239f8b(++_0x4e3248);}(a398_0x4e32,0x1c3));const a398_0x239f=function(_0xc0195a,_0x4e3248){_0xc0195a=_0xc0195a-0x0;let _0x239f8b=a398_0x4e32[_0xc0195a];return _0x239f8b;};const _0x12e7d9=a398_0x239f;'use strict';const MailAccountEvents=require(_0x12e7d9('0x5')),events=[_0x12e7d9('0x1'),_0x12e7d9('0x3'),_0x12e7d9('0x2')];function createListener(_0x26830f,_0x1467e6){return function(_0x5ca7a8){_0x1467e6['emit'](_0x26830f,_0x5ca7a8);};}exports[_0x12e7d9('0x0')]=function(_0x241026){const _0x3ce1eb=_0x12e7d9;for(let _0x46973f=0x0,_0x4623e5=events[_0x3ce1eb('0x6')];_0x46973f<_0x4623e5;_0x46973f++){const _0x1fea2b=events[_0x46973f],_0x69eefa=createListener(_0x3ce1eb('0x4')+_0x1fea2b,_0x241026);MailAccountEvents['on'](_0x1fea2b,_0x69eefa);}}; \ No newline at end of file +const a398_0x22aa=['register','./mailAccount.events','save','emit','length','remove','mailAccount:'];(function(_0x495884,_0x22aaca){const _0x56e20f=function(_0x23778f){while(--_0x23778f){_0x495884['push'](_0x495884['shift']());}};_0x56e20f(++_0x22aaca);}(a398_0x22aa,0x84));const a398_0x56e2=function(_0x495884,_0x22aaca){_0x495884=_0x495884-0x0;let _0x56e20f=a398_0x22aa[_0x495884];return _0x56e20f;};const _0x3020a7=a398_0x56e2;'use strict';const MailAccountEvents=require(_0x3020a7('0x2')),events=[_0x3020a7('0x3'),_0x3020a7('0x6'),'update'];function createListener(_0x23778f,_0x1313a1){return function(_0x2d2e95){const _0x592d3c=a398_0x56e2;_0x1313a1[_0x592d3c('0x4')](_0x23778f,_0x2d2e95);};}exports[_0x3020a7('0x1')]=function(_0x240979){const _0x26b566=_0x3020a7;for(let _0x14170d=0x0,_0xaacb5e=events[_0x26b566('0x5')];_0x14170d<_0xaacb5e;_0x14170d++){const _0x5b8321=events[_0x14170d],_0x34d2b7=createListener(_0x26b566('0x0')+_0x5b8321,_0x240979);MailAccountEvents['on'](_0x5b8321,_0x34d2b7);}}; \ No newline at end of file diff --git a/server/api/mailApplication/index.js b/server/api/mailApplication/index.js index 154c02a..1658e3f 100644 --- a/server/api/mailApplication/index.js +++ b/server/api/mailApplication/index.js @@ -1 +1 @@ -const a399_0x52a3=['delete','get','Router','destroy','show','/:id','exports','update','isAuthenticated','express','./mailApplication.controller'];(function(_0x1cac95,_0x52a38b){const _0x218dca=function(_0x3bcea3){while(--_0x3bcea3){_0x1cac95['push'](_0x1cac95['shift']());}};_0x218dca(++_0x52a38b);}(a399_0x52a3,0xe3));const a399_0x218d=function(_0x1cac95,_0x52a38b){_0x1cac95=_0x1cac95-0x0;let _0x218dca=a399_0x52a3[_0x1cac95];return _0x218dca;};const _0x59fc8f=a399_0x218d;'use strict';const express=require(_0x59fc8f('0x2')),router=express[_0x59fc8f('0x6')](),auth=require('../../components/auth/service'),controller=require(_0x59fc8f('0x3'));router[_0x59fc8f('0x5')](_0x59fc8f('0x9'),auth[_0x59fc8f('0x1')](),controller[_0x59fc8f('0x8')]),router['put'](_0x59fc8f('0x9'),auth[_0x59fc8f('0x1')](),controller[_0x59fc8f('0x0')]),router[_0x59fc8f('0x4')](_0x59fc8f('0x9'),auth[_0x59fc8f('0x1')](),controller[_0x59fc8f('0x7')]),module[_0x59fc8f('0xa')]=router; \ No newline at end of file +const a399_0x305a=['delete','show','get','../../components/auth/service','isAuthenticated','Router','destroy','update','express','./mailApplication.controller','/:id'];(function(_0x3e4961,_0x305a9d){const _0x54dc46=function(_0x527026){while(--_0x527026){_0x3e4961['push'](_0x3e4961['shift']());}};_0x54dc46(++_0x305a9d);}(a399_0x305a,0x173));const a399_0x54dc=function(_0x3e4961,_0x305a9d){_0x3e4961=_0x3e4961-0x0;let _0x54dc46=a399_0x305a[_0x3e4961];return _0x54dc46;};const _0xf1d31e=a399_0x54dc;'use strict';const express=require(_0xf1d31e('0x0')),router=express[_0xf1d31e('0x8')](),auth=require(_0xf1d31e('0x6')),controller=require(_0xf1d31e('0x1'));router[_0xf1d31e('0x5')](_0xf1d31e('0x2'),auth[_0xf1d31e('0x7')](),controller[_0xf1d31e('0x4')]),router['put'](_0xf1d31e('0x2'),auth['isAuthenticated'](),controller[_0xf1d31e('0xa')]),router[_0xf1d31e('0x3')](_0xf1d31e('0x2'),auth[_0xf1d31e('0x7')](),controller[_0xf1d31e('0x9')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.attributes.js b/server/api/mailApplication/mailApplication.attributes.js index fd70b1f..197df00 100644 --- a/server/api/mailApplication/mailApplication.attributes.js +++ b/server/api/mailApplication/mailApplication.attributes.js @@ -1 +1 @@ -const a400_0x255b=['INTEGER','noop','STRING','TEXT'];(function(_0x34d771,_0x255ba5){const _0x5a8d8e=function(_0x5b6284){while(--_0x5b6284){_0x34d771['push'](_0x34d771['shift']());}};_0x5a8d8e(++_0x255ba5);}(a400_0x255b,0x139));const a400_0x5a8d=function(_0x34d771,_0x255ba5){_0x34d771=_0x34d771-0x0;let _0x5a8d8e=a400_0x255b[_0x34d771];return _0x5a8d8e;};const _0x186b68=a400_0x5a8d;'use strict';const Sequelize=require('sequelize');module['exports']={'priority':{'type':Sequelize[_0x186b68('0x3')],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x186b68('0x0')},'appdata':{'type':Sequelize[_0x186b68('0x2')]()},'description':{'type':Sequelize[_0x186b68('0x1')]},'interval':{'type':Sequelize[_0x186b68('0x1')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +const a400_0x141a=['exports','noop','sequelize','STRING','TEXT'];(function(_0x3dface,_0x141aaf){const _0x465ab7=function(_0x18bdf0){while(--_0x18bdf0){_0x3dface['push'](_0x3dface['shift']());}};_0x465ab7(++_0x141aaf);}(a400_0x141a,0xc1));const a400_0x465a=function(_0x3dface,_0x141aaf){_0x3dface=_0x3dface-0x0;let _0x465ab7=a400_0x141a[_0x3dface];return _0x465ab7;};const _0x24d917=a400_0x465a;'use strict';const Sequelize=require(_0x24d917('0x4'));module[_0x24d917('0x2')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize[_0x24d917('0x0')],'allowNull':![],'defaultValue':_0x24d917('0x3')},'appdata':{'type':Sequelize[_0x24d917('0x1')]()},'description':{'type':Sequelize[_0x24d917('0x0')]},'interval':{'type':Sequelize[_0x24d917('0x0')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.controller.js b/server/api/mailApplication/mailApplication.controller.js index d05008a..8046c90 100644 --- a/server/api/mailApplication/mailApplication.controller.js +++ b/server/api/mailApplication/mailApplication.controller.js @@ -1 +1 @@ -const a401_0x5554=['show','query','../../components/parsers/qs','rawAttributes','keys','attributes','end','update','sendStatus','findOne','options','json','fields','merge','status','then','intersection','lodash','params','model','catch','body','MailApplication','include','stack','filters','length','send','name','destroy','api'];(function(_0x531a1f,_0x5554b2){const _0x801463=function(_0x1212c6){while(--_0x1212c6){_0x531a1f['push'](_0x531a1f['shift']());}};_0x801463(++_0x5554b2);}(a401_0x5554,0x75));const a401_0x8014=function(_0x531a1f,_0x5554b2){_0x531a1f=_0x531a1f-0x0;let _0x801463=a401_0x5554[_0x531a1f];return _0x801463;};const _0x16ccc2=a401_0x8014;'use strict';const _=require(_0x16ccc2('0x18')),qs=require(_0x16ccc2('0x9')),logger=require('../../config/logger')(_0x16ccc2('0x6')),db=require('../../mysqldb')['db'];function respondWithResult(_0x1212c6,_0x50f71e){return _0x50f71e=_0x50f71e||0xc8,function(_0x5c3bd8){const _0x46a5a0=a401_0x8014;if(_0x5c3bd8)return _0x1212c6[_0x46a5a0('0x15')](_0x50f71e)[_0x46a5a0('0x12')](_0x5c3bd8);};}function saveUpdates(_0x1aac72){return function(_0x54397e){const _0x418cd3=a401_0x8014;if(_0x54397e)return _0x54397e[_0x418cd3('0xe')](_0x1aac72)[_0x418cd3('0x16')](function(_0x5e99ee){return _0x5e99ee;});return null;};}function removeEntity(_0x3a1e2b){return function(_0x414382){const _0x1b88f7=a401_0x8014;if(_0x414382)return _0x414382[_0x1b88f7('0x5')]()[_0x1b88f7('0x16')](function(){const _0x7f30e2=_0x1b88f7;_0x3a1e2b['status'](0xcc)[_0x7f30e2('0xd')]();});};}function handleEntityNotFound(_0xca42ad){return function(_0x9e5b92){const _0x35ad39=a401_0x8014;return!_0x9e5b92&&_0xca42ad[_0x35ad39('0xf')](0x194),_0x9e5b92;};}function handleError(_0xcbe10d,_0x1c1f88){return _0x1c1f88=_0x1c1f88||0x1f4,function(_0x14f023){const _0x1b1e89=a401_0x8014;logger['error'](_0x14f023[_0x1b1e89('0x0')]),_0x14f023[_0x1b1e89('0x4')]&&delete _0x14f023[_0x1b1e89('0x4')],_0xcbe10d['status'](_0x1c1f88)[_0x1b1e89('0x3')](_0x14f023);};}exports[_0x16ccc2('0x7')]=function(_0x436f5c,_0x57925c){const _0x42adf0=_0x16ccc2;let _0x3a0f28={'raw':!![],'where':{'id':_0x436f5c['params']['id']}};const _0x1f7e5c={};return _0x1f7e5c[_0x42adf0('0x1a')]=_['keys'](db[_0x42adf0('0x1d')][_0x42adf0('0xa')]),_0x1f7e5c[_0x42adf0('0x8')]=_[_0x42adf0('0xb')](_0x436f5c['query']),_0x1f7e5c[_0x42adf0('0x1')]=_[_0x42adf0('0x17')](_0x1f7e5c[_0x42adf0('0x1a')],_0x1f7e5c['query']),_0x3a0f28['attributes']=_[_0x42adf0('0x17')](_0x1f7e5c['model'],qs[_0x42adf0('0x13')](_0x436f5c[_0x42adf0('0x8')][_0x42adf0('0x13')])),_0x3a0f28['attributes']=_0x3a0f28['attributes'][_0x42adf0('0x2')]?_0x3a0f28[_0x42adf0('0xc')]:_0x1f7e5c[_0x42adf0('0x1a')],_0x436f5c[_0x42adf0('0x8')]['includeAll']&&(_0x3a0f28[_0x42adf0('0x1e')]=[{'all':!![]}]),_0x3a0f28=_[_0x42adf0('0x14')]({},_0x3a0f28,_0x436f5c[_0x42adf0('0x11')]),db[_0x42adf0('0x1d')]['findOne'](_0x3a0f28)[_0x42adf0('0x16')](handleEntityNotFound(_0x57925c,null))[_0x42adf0('0x16')](respondWithResult(_0x57925c,null))[_0x42adf0('0x1b')](handleError(_0x57925c,null));},exports['update']=function(_0x48741a,_0x48a697){const _0x19d4af=_0x16ccc2;return _0x48741a['body']['id']&&delete _0x48741a[_0x19d4af('0x1c')]['id'],db[_0x19d4af('0x1d')][_0x19d4af('0x10')]({'where':{'id':_0x48741a[_0x19d4af('0x19')]['id']}})[_0x19d4af('0x16')](handleEntityNotFound(_0x48a697,null))[_0x19d4af('0x16')](saveUpdates(_0x48741a['body'],null))[_0x19d4af('0x16')](respondWithResult(_0x48a697,null))[_0x19d4af('0x1b')](handleError(_0x48a697,null));},exports[_0x16ccc2('0x5')]=function(_0x41677f,_0x353445){const _0x5f1194=_0x16ccc2;return db[_0x5f1194('0x1d')]['findOne']({'where':{'id':_0x41677f[_0x5f1194('0x19')]['id']}})['then'](handleEntityNotFound(_0x353445,null))[_0x5f1194('0x16')](removeEntity(_0x353445,null))[_0x5f1194('0x1b')](handleError(_0x353445,null));}; \ No newline at end of file +const a401_0x2169=['destroy','lodash','includeAll','json','then','attributes','model','keys','options','findOne','intersection','sendStatus','body','rawAttributes','../../components/parsers/qs','api','send','fields','filters','query','update','MailApplication','catch','include','error','show','../../config/logger','merge','status','name','../../mysqldb','params'];(function(_0x4110e3,_0x2169eb){const _0x11e6d5=function(_0x544993){while(--_0x544993){_0x4110e3['push'](_0x4110e3['shift']());}};_0x11e6d5(++_0x2169eb);}(a401_0x2169,0x13d));const a401_0x11e6=function(_0x4110e3,_0x2169eb){_0x4110e3=_0x4110e3-0x0;let _0x11e6d5=a401_0x2169[_0x4110e3];return _0x11e6d5;};const _0x371d0f=a401_0x11e6;'use strict';const _=require(_0x371d0f('0x4')),qs=require(_0x371d0f('0x11')),logger=require(_0x371d0f('0x1d'))(_0x371d0f('0x12')),db=require(_0x371d0f('0x1'))['db'];function respondWithResult(_0x544993,_0x445aca){return _0x445aca=_0x445aca||0xc8,function(_0x546db1){const _0x3c1bd0=a401_0x11e6;if(_0x546db1)return _0x544993[_0x3c1bd0('0x1f')](_0x445aca)[_0x3c1bd0('0x6')](_0x546db1);};}function saveUpdates(_0xc260cc){return function(_0x45c3c0){const _0x48f156=a401_0x11e6;if(_0x45c3c0)return _0x45c3c0[_0x48f156('0x17')](_0xc260cc)[_0x48f156('0x7')](function(_0x208675){return _0x208675;});return null;};}function removeEntity(_0x1ca887){return function(_0x57754e){const _0x153e99=a401_0x11e6;if(_0x57754e)return _0x57754e[_0x153e99('0x3')]()[_0x153e99('0x7')](function(){const _0x2f6c87=_0x153e99;_0x1ca887[_0x2f6c87('0x1f')](0xcc)['end']();});};}function handleEntityNotFound(_0x2c9b0e){return function(_0x338d81){const _0x272657=a401_0x11e6;return!_0x338d81&&_0x2c9b0e[_0x272657('0xe')](0x194),_0x338d81;};}function handleError(_0x2c96f8,_0x371cb8){return _0x371cb8=_0x371cb8||0x1f4,function(_0x3e831c){const _0x4c762a=a401_0x11e6;logger[_0x4c762a('0x1b')](_0x3e831c['stack']),_0x3e831c[_0x4c762a('0x0')]&&delete _0x3e831c['name'],_0x2c96f8['status'](_0x371cb8)[_0x4c762a('0x13')](_0x3e831c);};}exports[_0x371d0f('0x1c')]=function(_0x2eaf05,_0x1d79aa){const _0x367820=_0x371d0f;let _0x2b5450={'raw':!![],'where':{'id':_0x2eaf05['params']['id']}};const _0x449ca8={};return _0x449ca8[_0x367820('0x9')]=_[_0x367820('0xa')](db[_0x367820('0x18')][_0x367820('0x10')]),_0x449ca8[_0x367820('0x16')]=_[_0x367820('0xa')](_0x2eaf05['query']),_0x449ca8[_0x367820('0x15')]=_[_0x367820('0xd')](_0x449ca8[_0x367820('0x9')],_0x449ca8[_0x367820('0x16')]),_0x2b5450[_0x367820('0x8')]=_['intersection'](_0x449ca8[_0x367820('0x9')],qs[_0x367820('0x14')](_0x2eaf05[_0x367820('0x16')][_0x367820('0x14')])),_0x2b5450[_0x367820('0x8')]=_0x2b5450[_0x367820('0x8')]['length']?_0x2b5450['attributes']:_0x449ca8[_0x367820('0x9')],_0x2eaf05[_0x367820('0x16')][_0x367820('0x5')]&&(_0x2b5450[_0x367820('0x1a')]=[{'all':!![]}]),_0x2b5450=_[_0x367820('0x1e')]({},_0x2b5450,_0x2eaf05[_0x367820('0xb')]),db['MailApplication'][_0x367820('0xc')](_0x2b5450)['then'](handleEntityNotFound(_0x1d79aa,null))[_0x367820('0x7')](respondWithResult(_0x1d79aa,null))[_0x367820('0x19')](handleError(_0x1d79aa,null));},exports['update']=function(_0x1e1690,_0x5804d0){const _0x2eeca8=_0x371d0f;return _0x1e1690[_0x2eeca8('0xf')]['id']&&delete _0x1e1690[_0x2eeca8('0xf')]['id'],db[_0x2eeca8('0x18')][_0x2eeca8('0xc')]({'where':{'id':_0x1e1690[_0x2eeca8('0x2')]['id']}})[_0x2eeca8('0x7')](handleEntityNotFound(_0x5804d0,null))[_0x2eeca8('0x7')](saveUpdates(_0x1e1690[_0x2eeca8('0xf')],null))['then'](respondWithResult(_0x5804d0,null))[_0x2eeca8('0x19')](handleError(_0x5804d0,null));},exports[_0x371d0f('0x3')]=function(_0x28a8e6,_0x3675fe){const _0x5d3a9a=_0x371d0f;return db[_0x5d3a9a('0x18')][_0x5d3a9a('0xc')]({'where':{'id':_0x28a8e6[_0x5d3a9a('0x2')]['id']}})[_0x5d3a9a('0x7')](handleEntityNotFound(_0x3675fe,null))[_0x5d3a9a('0x7')](removeEntity(_0x3675fe,null))['catch'](handleError(_0x3675fe,null));}; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.model.js b/server/api/mailApplication/mailApplication.model.js index 7140fd4..f472a74 100644 --- a/server/api/mailApplication/mailApplication.model.js +++ b/server/api/mailApplication/mailApplication.model.js @@ -1 +1 @@ -const a402_0x1cc6=['mail_applications','./mailApplication.attributes','utf8mb4_unicode_ci','define'];(function(_0xb347c5,_0x1cc69f){const _0x51359f=function(_0x3da2bd){while(--_0x3da2bd){_0xb347c5['push'](_0xb347c5['shift']());}};_0x51359f(++_0x1cc69f);}(a402_0x1cc6,0x140));const a402_0x5135=function(_0xb347c5,_0x1cc69f){_0xb347c5=_0xb347c5-0x0;let _0x51359f=a402_0x1cc6[_0xb347c5];return _0x51359f;};const _0x4d74ef=a402_0x5135;'use strict';const attributes=require(_0x4d74ef('0x1'));module['exports']=function(_0x3da2bd){const _0x4934ca=_0x4d74ef,_0x160101=_0x3da2bd[_0x4934ca('0x3')]('MailApplication',attributes,{'tableName':_0x4934ca('0x0'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x4934ca('0x2')});return _0x160101;}; \ No newline at end of file +const a402_0x522f=['mail_applications','./mailApplication.attributes','exports','utf8mb4_unicode_ci','MailApplication'];(function(_0x527ffb,_0x522f5a){const _0x5210df=function(_0x1dec2a){while(--_0x1dec2a){_0x527ffb['push'](_0x527ffb['shift']());}};_0x5210df(++_0x522f5a);}(a402_0x522f,0x6d));const a402_0x5210=function(_0x527ffb,_0x522f5a){_0x527ffb=_0x527ffb-0x0;let _0x5210df=a402_0x522f[_0x527ffb];return _0x5210df;};const _0x20f3b3=a402_0x5210;'use strict';const attributes=require(_0x20f3b3('0x2'));module[_0x20f3b3('0x3')]=function(_0x1dec2a){const _0x36dee5=_0x20f3b3,_0x3cd167=_0x1dec2a['define'](_0x36dee5('0x0'),attributes,{'tableName':_0x36dee5('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0x36dee5('0x4')});return _0x3cd167;}; \ No newline at end of file diff --git a/server/api/mailApplication/mailApplication.rpc.js b/server/api/mailApplication/mailApplication.rpc.js index 3a5732e..182b3b9 100644 --- a/server/api/mailApplication/mailApplication.rpc.js +++ b/server/api/mailApplication/mailApplication.rpc.js @@ -1 +1 @@ -const a403_0x2df5=['info','update','stringify','raw','where','MailApplication','message','limit','rpc','error','../../mysqldb','options','debug','UpdateMailApplication','catch'];(function(_0x5bb6ea,_0x2df585){const _0x182386=function(_0x50fd6a){while(--_0x50fd6a){_0x5bb6ea['push'](_0x5bb6ea['shift']());}};_0x182386(++_0x2df585);}(a403_0x2df5,0x183));const a403_0x1823=function(_0x5bb6ea,_0x2df585){_0x5bb6ea=_0x5bb6ea-0x0;let _0x182386=a403_0x2df5[_0x5bb6ea];return _0x182386;};const _0x562b0d=a403_0x1823;'use strict';const db=require(_0x562b0d('0xd'))['db'],logger=require('../../config/logger')(_0x562b0d('0xb'));exports[_0x562b0d('0x1')]=function(_0x50fd6a){const _0x1dcb75=this;return new Promise(function(_0x452d86,_0x12bd78){const _0x3a78cb=a403_0x1823;return db[_0x3a78cb('0x8')][_0x3a78cb('0x4')](_0x50fd6a['body'],{'raw':_0x50fd6a[_0x3a78cb('0xe')]?_0x50fd6a['options'][_0x3a78cb('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x50fd6a[_0x3a78cb('0xe')]?_0x50fd6a[_0x3a78cb('0xe')][_0x3a78cb('0x7')]||null:null,'attributes':_0x50fd6a[_0x3a78cb('0xe')]?_0x50fd6a[_0x3a78cb('0xe')]['attributes']||null:null,'limit':_0x50fd6a[_0x3a78cb('0xe')]?_0x50fd6a[_0x3a78cb('0xe')][_0x3a78cb('0xa')]||null:null})['then'](function(_0xf224a6){const _0x1420d8=_0x3a78cb;logger[_0x1420d8('0x3')](_0x1420d8('0x1'),_0x50fd6a),logger[_0x1420d8('0x0')](_0x1420d8('0x1'),_0x50fd6a,JSON[_0x1420d8('0x5')](_0xf224a6)),_0x452d86(_0xf224a6);})[_0x3a78cb('0x2')](function(_0x30d5cb){const _0x38f11a=_0x3a78cb;logger[_0x38f11a('0xc')](_0x38f11a('0x1'),_0x30d5cb[_0x38f11a('0x9')],_0x50fd6a),_0x12bd78(_0x1dcb75[_0x38f11a('0xc')](0x1f4,_0x30d5cb[_0x38f11a('0x9')]));});});}; \ No newline at end of file +const a403_0x91de=['UpdateMailApplication','MailApplication','message','update','where','limit','body','debug','error','options','then','raw','catch','../../config/logger','../../mysqldb','stringify','info'];(function(_0x148816,_0x91deb4){const _0x4da189=function(_0x3b2a62){while(--_0x3b2a62){_0x148816['push'](_0x148816['shift']());}};_0x4da189(++_0x91deb4);}(a403_0x91de,0x11c));const a403_0x4da1=function(_0x148816,_0x91deb4){_0x148816=_0x148816-0x0;let _0x4da189=a403_0x91de[_0x148816];return _0x4da189;};const _0x252a2a=a403_0x4da1;'use strict';const db=require(_0x252a2a('0x2'))['db'],logger=require(_0x252a2a('0x1'))('rpc');exports['UpdateMailApplication']=function(_0x3b2a62){const _0x563c11=this;return new Promise(function(_0x364d02,_0x26c79d){const _0xaef4dc=a403_0x4da1;return db[_0xaef4dc('0x6')][_0xaef4dc('0x8')](_0x3b2a62[_0xaef4dc('0xb')],{'raw':_0x3b2a62[_0xaef4dc('0xe')]?_0x3b2a62[_0xaef4dc('0xe')][_0xaef4dc('0x10')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3b2a62[_0xaef4dc('0xe')]?_0x3b2a62[_0xaef4dc('0xe')][_0xaef4dc('0x9')]||null:null,'attributes':_0x3b2a62[_0xaef4dc('0xe')]?_0x3b2a62[_0xaef4dc('0xe')]['attributes']||null:null,'limit':_0x3b2a62[_0xaef4dc('0xe')]?_0x3b2a62['options'][_0xaef4dc('0xa')]||null:null})[_0xaef4dc('0xf')](function(_0x37d1a4){const _0x2c09b0=_0xaef4dc;logger[_0x2c09b0('0x4')](_0x2c09b0('0x5'),_0x3b2a62),logger[_0x2c09b0('0xc')](_0x2c09b0('0x5'),_0x3b2a62,JSON[_0x2c09b0('0x3')](_0x37d1a4)),_0x364d02(_0x37d1a4);})[_0xaef4dc('0x0')](function(_0x1b3fe4){const _0x1b6b4a=_0xaef4dc;logger['error'](_0x1b6b4a('0x5'),_0x1b3fe4[_0x1b6b4a('0x7')],_0x3b2a62),_0x26c79d(_0x563c11[_0x1b6b4a('0xd')](0x1f4,_0x1b3fe4[_0x1b6b4a('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/mailInteraction/index.js b/server/api/mailInteraction/index.js index c6af792..1afae07 100644 --- a/server/api/mailInteraction/index.js +++ b/server/api/mailInteraction/index.js @@ -1 +1 @@ -const a404_0x4bdd=['Router','addMessage','get','destroy','create','download','show','tracked','mailinteraction:addtags','isAuthenticated','/:id/download','getMessages','/:id/messages','../../components/auth/service','post','/:id/tags','delete','exports','addTags','put','mail','./mailInteraction.controller','mailinteraction:update','index','/:id','mailinteraction:destroy','express'];(function(_0x108aae,_0x4bddbf){const _0x4a48f7=function(_0x2973b4){while(--_0x2973b4){_0x108aae['push'](_0x108aae['shift']());}};_0x4a48f7(++_0x4bddbf);}(a404_0x4bdd,0xb6));const a404_0x4a48=function(_0x108aae,_0x4bddbf){_0x108aae=_0x108aae-0x0;let _0x4a48f7=a404_0x4bdd[_0x108aae];return _0x4a48f7;};const _0x5c5b48=a404_0x4a48;'use strict';const express=require(_0x5c5b48('0x6')),router=express[_0x5c5b48('0x7')](),auth=require(_0x5c5b48('0x14')),interaction=require('../../components/interaction/service'),controller=require(_0x5c5b48('0x1'));router['get']('/',auth[_0x5c5b48('0x10')](),controller[_0x5c5b48('0x3')]),router['get']('/describe',auth[_0x5c5b48('0x10')](),controller['describe']),router[_0x5c5b48('0x9')]('/:id',auth[_0x5c5b48('0x10')](),controller[_0x5c5b48('0xd')]),router[_0x5c5b48('0x9')](_0x5c5b48('0x13'),auth[_0x5c5b48('0x10')](),controller[_0x5c5b48('0x12')]),router[_0x5c5b48('0x9')](_0x5c5b48('0x11'),auth['isAuthenticated'](),controller[_0x5c5b48('0xc')]),router[_0x5c5b48('0x15')]('/',auth[_0x5c5b48('0x10')](),controller[_0x5c5b48('0xb')]),router[_0x5c5b48('0x15')](_0x5c5b48('0x13'),auth[_0x5c5b48('0x10')](),controller[_0x5c5b48('0x8')]),router[_0x5c5b48('0x15')](_0x5c5b48('0x16'),auth[_0x5c5b48('0x10')](),interaction['tracked']('mail',_0x5c5b48('0xf')),controller[_0x5c5b48('0x19')]),router[_0x5c5b48('0x1a')](_0x5c5b48('0x4'),auth[_0x5c5b48('0x10')](),interaction['tracked'](_0x5c5b48('0x0'),_0x5c5b48('0x2')),controller['update']),router[_0x5c5b48('0x17')](_0x5c5b48('0x4'),auth[_0x5c5b48('0x10')](),interaction[_0x5c5b48('0xe')](_0x5c5b48('0x0'),_0x5c5b48('0x5')),controller[_0x5c5b48('0xa')]),router[_0x5c5b48('0x17')](_0x5c5b48('0x16'),auth[_0x5c5b48('0x10')](),controller['removeTags']),module[_0x5c5b48('0x18')]=router; \ No newline at end of file +const a404_0x4066=['download','/:id/messages','/:id','/:id/download','post','destroy','/describe','removeTags','./mailInteraction.controller','express','get','../../components/interaction/service','mailinteraction:destroy','tracked','../../components/auth/service','mailinteraction:addtags','/:id/tags','exports','isAuthenticated','getMessages','addMessage','show','mail'];(function(_0x5bbe53,_0x4066b6){const _0x36f005=function(_0xd9aa5c){while(--_0xd9aa5c){_0x5bbe53['push'](_0x5bbe53['shift']());}};_0x36f005(++_0x4066b6);}(a404_0x4066,0xb9));const a404_0x36f0=function(_0x5bbe53,_0x4066b6){_0x5bbe53=_0x5bbe53-0x0;let _0x36f005=a404_0x4066[_0x5bbe53];return _0x36f005;};const _0x34a379=a404_0x36f0;'use strict';const express=require(_0x34a379('0x8')),router=express['Router'](),auth=require(_0x34a379('0xd')),interaction=require(_0x34a379('0xa')),controller=require(_0x34a379('0x7'));router[_0x34a379('0x9')]('/',auth[_0x34a379('0x11')](),controller['index']),router[_0x34a379('0x9')](_0x34a379('0x5'),auth[_0x34a379('0x11')](),controller['describe']),router[_0x34a379('0x9')](_0x34a379('0x1'),auth[_0x34a379('0x11')](),controller[_0x34a379('0x14')]),router[_0x34a379('0x9')](_0x34a379('0x0'),auth[_0x34a379('0x11')](),controller[_0x34a379('0x12')]),router[_0x34a379('0x9')](_0x34a379('0x2'),auth['isAuthenticated'](),controller[_0x34a379('0x16')]),router[_0x34a379('0x3')]('/',auth[_0x34a379('0x11')](),controller['create']),router[_0x34a379('0x3')](_0x34a379('0x0'),auth['isAuthenticated'](),controller[_0x34a379('0x13')]),router[_0x34a379('0x3')](_0x34a379('0xf'),auth[_0x34a379('0x11')](),interaction[_0x34a379('0xc')](_0x34a379('0x15'),_0x34a379('0xe')),controller['addTags']),router['put'](_0x34a379('0x1'),auth['isAuthenticated'](),interaction[_0x34a379('0xc')](_0x34a379('0x15'),'mailinteraction:update'),controller['update']),router['delete'](_0x34a379('0x1'),auth[_0x34a379('0x11')](),interaction[_0x34a379('0xc')](_0x34a379('0x15'),_0x34a379('0xb')),controller[_0x34a379('0x4')]),router['delete'](_0x34a379('0xf'),auth[_0x34a379('0x11')](),controller[_0x34a379('0x6')]),module[_0x34a379('0x10')]=router; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.attributes.js b/server/api/mailInteraction/mailInteraction.attributes.js index bec3b34..359aed5 100644 --- a/server/api/mailInteraction/mailInteraction.attributes.js +++ b/server/api/mailInteraction/mailInteraction.attributes.js @@ -1 +1 @@ -const a405_0x1fae=['TEXT','BOOLEAN','long','out','ENUM','STRING','DATE','exports'];(function(_0x2dde13,_0x1faed7){const _0x13a3f2=function(_0x5e2f48){while(--_0x5e2f48){_0x2dde13['push'](_0x2dde13['shift']());}};_0x13a3f2(++_0x1faed7);}(a405_0x1fae,0x157));const a405_0x13a3=function(_0x2dde13,_0x1faed7){_0x2dde13=_0x2dde13-0x0;let _0x13a3f2=a405_0x1fae[_0x2dde13];return _0x13a3f2;};const _0x172ea8=a405_0x13a3;'use strict';const Sequelize=require('sequelize');module[_0x172ea8('0x0')]={'closed':{'type':Sequelize[_0x172ea8('0x2')],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x172ea8('0x6')]},'secondDisposition':{'type':Sequelize[_0x172ea8('0x6')]},'thirdDisposition':{'type':Sequelize[_0x172ea8('0x6')]},'note':{'type':Sequelize['STRING']},'inReplyTo':{'type':Sequelize[_0x172ea8('0x6')](0x1fe)},'to':{'type':Sequelize['STRING']},'cc':{'type':Sequelize[_0x172ea8('0x1')](_0x172ea8('0x3'))},'subject':{'type':Sequelize[_0x172ea8('0x1')]()},'attach':{'type':Sequelize[_0x172ea8('0x2')],'defaultValue':![]},'read1stAt':{'type':Sequelize['DATE']},'substatus':{'type':Sequelize['STRING'](0x3c)},'substatusAt':{'type':Sequelize[_0x172ea8('0x7')]},'firstMsgDirection':{'type':Sequelize[_0x172ea8('0x5')]('in',_0x172ea8('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x172ea8('0x7')]},'lastMsgDirection':{'type':Sequelize[_0x172ea8('0x5')]('in',_0x172ea8('0x4')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x172ea8('0x1')](_0x172ea8('0x3'))},'lastMsgText':{'type':Sequelize['TEXT'](_0x172ea8('0x3'))}}; \ No newline at end of file +const a405_0x16ca=['exports','BOOLEAN','TEXT','long','DATE','STRING','ENUM','out'];(function(_0x465027,_0x16cadc){const _0x186398=function(_0x5d8de1){while(--_0x5d8de1){_0x465027['push'](_0x465027['shift']());}};_0x186398(++_0x16cadc);}(a405_0x16ca,0x148));const a405_0x1863=function(_0x465027,_0x16cadc){_0x465027=_0x465027-0x0;let _0x186398=a405_0x16ca[_0x465027];return _0x186398;};const _0x2050b6=a405_0x1863;'use strict';const Sequelize=require('sequelize');module[_0x2050b6('0x0')]={'closed':{'type':Sequelize[_0x2050b6('0x1')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x2050b6('0x4')]},'disposition':{'type':Sequelize[_0x2050b6('0x5')]},'secondDisposition':{'type':Sequelize[_0x2050b6('0x5')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x2050b6('0x5')]},'inReplyTo':{'type':Sequelize[_0x2050b6('0x5')](0x1fe)},'to':{'type':Sequelize[_0x2050b6('0x5')]},'cc':{'type':Sequelize[_0x2050b6('0x2')](_0x2050b6('0x3'))},'subject':{'type':Sequelize[_0x2050b6('0x2')]()},'attach':{'type':Sequelize[_0x2050b6('0x1')],'defaultValue':![]},'read1stAt':{'type':Sequelize[_0x2050b6('0x4')]},'substatus':{'type':Sequelize[_0x2050b6('0x5')](0x3c)},'substatusAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0x2050b6('0x6')]('in',_0x2050b6('0x7')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x2050b6('0x4')]},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x2050b6('0x7')),'defaultValue':'in','allowNull':![]},'lastMsgBody':{'type':Sequelize[_0x2050b6('0x2')](_0x2050b6('0x3'))},'lastMsgText':{'type':Sequelize[_0x2050b6('0x2')]('long')}}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.controller.js b/server/api/mailInteraction/mailInteraction.controller.js index 511fdd1..c7ba42e 100644 --- a/server/api/mailInteraction/mailInteraction.controller.js +++ b/server/api/mailInteraction/mailInteraction.controller.js @@ -1 +1 @@ -const a406_0x1434=['expr','o.fullname','tmp','`\x20=\x200','ui.MailInteractionId','me.MailInteractionId\x20=\x20i.id','query','isEmail','end','plainBody','mail_accounts','i.subject','findOne','c.phone','trimStart','compact','ids','headers','left_join','value','YYYY-MM-DD\x20HH:mm:ss','Bcc','forEach','unix','DESC','rawAttributes','i.thirdDisposition','path','removeTags','i.attach','null','$lte','isArray','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','limit','build','server','intersection','i.id\x20LIKE\x20?','lastMsgText','i.MailAccountId\x20IS\x20NOT\x20NULL','$gte','sequelize','rimraf','log','../../rediscache','c.fax','rows','Contact.lastName','tag','TagIds','Owner.internal','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','update','Contact.firstName','count','c.email\x20LIKE\x20?','html-to-text','u.id','lastMsgBody','create','filters','map','i.disposition','i.id','i.MailAccountId','attributes','join','Tag','i.secondDisposition','Owner.fullname','sqlOperator','Sequelize','where','body','name','i.createdAt','cm_contacts','addTags','describe','from','MailMessage','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','fieldName','Attachment','addMessage','MailInteraction','json','filter','MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','api','some','sort','mail_interaction_has_tags','params','i.lastMsgAt','Users','tools_tags','a.id\x20=\x20i.MailAccountId','c.firstName','moment','model','status','keys','sendStatus','offset','../../components/parsers/qs','o.id\x20=\x20i.UserId','color','i.ContactId','unlinkSync','./mailInteraction.socket','UserId','findAll','clone','fullname','read','createdAt','field','\x20IS\x20NULL','users','Messages','nolimit','getMailAccounts','i.UserId','destroy','buildExpression','Contact','i.substatus','root','files','writeFileSync','select','isEmpty','$substring','bcc','gte','MailAccountId','err','i.lastMsgDirection','catch','a.mandatoryDisposition','fields','attachments','i.closedAt','groupBy','../../components/parsers/advancedSearch','set','replace','keyBy','unreadMessages','toString','getMessages','pick','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','each','`\x20>\x200','register','Account.key','mail_interactions','i.to','split','i.MailAccountId\x20IS\x20NULL','show','having','\x20=\x20?','Setting','journey','find','error','search','type','existsSync','emit','includeAll','index','util','format','text','c.lastName','t.id\x20=\x20it.TagId','getFullTextValue','Tags','readFileSync','c.mobile','`unreadMessages`\x20>\x200','t.id\x20IN\x20?','conditions','merge','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','then','length','Attachments','i.MailAccountId\x20IN\x20?','ContactId','concat','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','Contact.mobile','parseSearch','basename','enableEmailPreview','undefined','all','user','../../config/environment','isNumeric','MailInteractionId','eml-format','it.MailInteractionId\x20=\x20i.id','operator','order','parse','a.key','i.closed','push','send','../../config/logger','omit','QueryTypes','ui.MailInteractionId\x20IN\x20?','start'];(function(_0x332585,_0x1434af){const _0x40befb=function(_0x18705b){while(--_0x18705b){_0x332585['push'](_0x332585['shift']());}};_0x40befb(++_0x1434af);}(a406_0x1434,0x89));const a406_0x40be=function(_0x332585,_0x1434af){_0x332585=_0x332585-0x0;let _0x40befb=a406_0x1434[_0x332585];return _0x40befb;};const _0x4ace3b=a406_0x40be;'use strict';const emlformat=require(_0x4ace3b('0x46')),rimraf=require(_0x4ace3b('0x7f')),zipdir=require('zip-dir'),moment=require(_0x4ace3b('0xb8')),util=require(_0x4ace3b('0x27')),path=require(_0x4ace3b('0x6f')),fs=require('fs'),_=require('lodash'),squel=require('squel'),{htmlToText}=require(_0x4ace3b('0x8d')),{getSocket}=require(_0x4ace3b('0x81')),socket=getSocket(),qs=require(_0x4ace3b('0xbe')),as=require(_0x4ace3b('0x9')),logger=require(_0x4ace3b('0x4f'))(_0x4ace3b('0xae')),config=require(_0x4ace3b('0x43')),db=require('../../mysqldb')['db'],{Op}=require(_0x4ace3b('0x7e'));require(_0x4ace3b('0xc3'))[_0x4ace3b('0x14')](socket);function respondWithStatusCode(_0x18705b,_0x4d6f9a){return _0x4d6f9a=_0x4d6f9a||0xcc,function(_0x1b467e){const _0x304eda=a406_0x40be;if(_0x1b467e)return _0x18705b[_0x304eda('0xbc')](_0x4d6f9a);return _0x18705b[_0x304eda('0xba')](_0x4d6f9a)['end']();};}function respondWithResult(_0x1cd32c,_0x385410){return _0x385410=_0x385410||0xc8,function(_0xd68474){const _0x5da393=a406_0x40be;if(_0xd68474)return _0x1cd32c[_0x5da393('0xba')](_0x385410)[_0x5da393('0xab')](_0xd68474);};}function respondWithFilteredResult(_0x108f6b,_0x19a5f8){return function(_0x4e8f61){const _0x327476=a406_0x40be;if(_0x4e8f61){const _0x324c5a=_0x4e8f61[_0x327476('0x8b')],_0x453c70=_0x19a5f8[_0x327476('0xbd')];let _0x115576=_0x19a5f8[_0x327476('0xbd')]+_0x19a5f8[_0x327476('0x76')],_0x2fd46c;return _0x115576>=_0x324c5a?(_0x115576=_0x324c5a,_0x2fd46c=0xc8):_0x2fd46c=0xce,_0x108f6b[_0x327476('0xba')](_0x2fd46c),_0x108f6b[_0x327476('0xa')]('Content-Range',_0x453c70+'-'+_0x115576+'/'+_0x324c5a)[_0x327476('0xab')](_0x4e8f61);}return null;};}function saveUpdates(_0x3f1cef){return function(_0x5cf92c){const _0x414670=a406_0x40be;if(_0x5cf92c)return _0x5cf92c[_0x414670('0x89')](_0x3f1cef)['then'](function(_0x511ac5){return _0x511ac5;});return null;};}function removeEntity(_0x284e15){return function(_0x41cfa2){const _0x42bf07=a406_0x40be;if(_0x41cfa2)return _0x41cfa2[_0x42bf07('0xd1')]()['then'](function(){const _0x161bac=_0x42bf07;_0x284e15[_0x161bac('0xba')](0xcc)['end']();});};}function handleEntityNotFound(_0x57dd58){return function(_0x3c6efc){const _0x26dbd7=a406_0x40be;return!_0x3c6efc&&_0x57dd58[_0x26dbd7('0xbc')](0x194),_0x3c6efc;};}function handleError(_0x1f947f,_0x50eb3d){return _0x50eb3d=_0x50eb3d||0x1f4,function(_0x1ff9e9){const _0xeeed74=a406_0x40be;logger[_0xeeed74('0x20')](_0x1ff9e9['stack']),_0x1ff9e9[_0xeeed74('0x9f')]&&delete _0x1ff9e9[_0xeeed74('0x9f')],_0x1f947f[_0xeeed74('0xba')](_0x50eb3d)[_0xeeed74('0x4e')](_0x1ff9e9);};}function getInteractionUsers(_0x3b04e8,_0x5c389c){return new Promise(function(_0x4853c7,_0x484f96){const _0x4c06fe=a406_0x40be;try{_0x5c389c[_0x3b04e8['id']]&&(_0x3b04e8[_0x4c06fe('0xb4')]=_[_0x4c06fe('0x92')](_0x5c389c[_0x3b04e8['id']],function(_0x3ccc5b){const _0x1252e1=_0x4c06fe;return{'id':_0x3ccc5b['id'],'fullname':_0x3ccc5b[_0x1252e1('0xc7')]};}));}catch(_0x591a06){_0x484f96(_0x591a06);}_0x4853c7(_0x3b04e8);});}function getInteractionTags(_0x36f6e6,_0x3c6466){return new Promise(function(_0x5d8661,_0x469ae9){const _0x477772=a406_0x40be;try{_0x36f6e6[_0x477772('0x86')]&&(_0x36f6e6['Tags']=[],_0x36f6e6[_0x477772('0x86')]['split'](',')[_0x477772('0x6a')](function(_0x133055){const _0x1ca3ec=_0x477772;_0x36f6e6[_0x1ca3ec('0x2d')][_0x1ca3ec('0x4d')](_0x3c6466[_0x133055]);})),delete _0x36f6e6['TagIds'];}catch(_0xeff62c){_0x469ae9(_0xeff62c);}_0x5d8661(_0x36f6e6);});}function getLastMessageText(_0x1f70c2){return new Promise(function(_0x27146c,_0x11e998){const _0x4b2cf3=a406_0x40be;return db[_0x4b2cf3('0xaa')][_0x4b2cf3('0x60')]({'where':{'id':_0x1f70c2['id']},'attributes':[_0x4b2cf3('0x8f'),'lastMsgText'],'raw':!![]})[_0x4b2cf3('0x35')](function(_0x2b5404){const _0xd29bfc=_0x4b2cf3;!_0x2b5404[_0xd29bfc('0x7b')]?_0x1f70c2[_0xd29bfc('0x7b')]=_[_0xd29bfc('0x62')](htmlToText(_0x2b5404[_0xd29bfc('0x8f')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x1f70c2[_0xd29bfc('0x7b')]=_0x2b5404['lastMsgText'],_0x27146c(_0x1f70c2);})[_0x4b2cf3('0x3')](function(_0x5c00c9){_0x11e998(_0x5c00c9);});});}function updateMailInteraction(_0x53c86e,_0x28adbe,_0x2f8d04,_0x297988){return new Promise(function(_0x4691f9,_0x2070c4){const _0x316ba0=a406_0x40be;return getInteractionUsers(_0x53c86e,_0x2f8d04)[_0x316ba0('0x35')](function(_0x318ac7){return getInteractionTags(_0x318ac7,_0x28adbe);})[_0x316ba0('0x35')](function(_0x456ae3){_0x297988?_0x4691f9(getLastMessageText(_0x456ae3)):_0x4691f9(_0x456ae3);})[_0x316ba0('0x3')](function(_0x48229f){_0x2070c4(_0x48229f);});});}exports[_0x4ace3b('0x26')]=function(_0x506ebc,_0x45295e){const _0x288c92=_0x4ace3b,_0x33d7f3={},_0x2a2a80={},_0x4f1d47={'count':0x0,'rows':[]},_0x580f75=_[_0x288c92('0x92')](db[_0x288c92('0xaa')][_0x288c92('0x6d')],function(_0x305261){const _0x37219d=_0x288c92;return{'name':_0x305261[_0x37219d('0xa7')],'type':_0x305261[_0x37219d('0x22')]['key']};});_0x2a2a80[_0x288c92('0xb9')]=_[_0x288c92('0x92')](_0x580f75,'name'),_0x2a2a80[_0x288c92('0x5a')]=_[_0x288c92('0xbb')](_0x506ebc['query']),_0x2a2a80[_0x288c92('0x91')]=_['intersection'](_0x2a2a80[_0x288c92('0xb9')],_0x2a2a80[_0x288c92('0x5a')]),_0x33d7f3[_0x288c92('0x96')]=_[_0x288c92('0x79')](_0x2a2a80['model'],qs[_0x288c92('0x5')](_0x506ebc[_0x288c92('0x5a')]['fields'])),_0x33d7f3[_0x288c92('0x96')]=_0x33d7f3[_0x288c92('0x96')][_0x288c92('0x36')]?_0x33d7f3['attributes']:_0x2a2a80['model'];typeof _0x506ebc[_0x288c92('0x5a')][_0x288c92('0xce')]===_0x288c92('0x40')&&(_0x33d7f3['limit']=qs['limit'](_0x506ebc[_0x288c92('0x5a')][_0x288c92('0x76')]),_0x33d7f3[_0x288c92('0xbd')]=qs[_0x288c92('0xbd')](_0x506ebc['query'][_0x288c92('0xbd')]));_0x33d7f3[_0x288c92('0x49')]=qs['sort'](_0x506ebc[_0x288c92('0x5a')][_0x288c92('0xb0')]),_0x33d7f3['where']=qs[_0x288c92('0x91')](_['pick'](_0x506ebc[_0x288c92('0x5a')],_0x2a2a80[_0x288c92('0x91')]),_0x580f75);let _0x2da307=[];const _0x50027f=squel[_0x288c92('0xd8')]()[_0x288c92('0xca')]('id')['field'](_0x288c92('0x9f'))['field'](_0x288c92('0xc0'))[_0x288c92('0xa4')](_0x288c92('0xb5')),_0x51d2f1=squel[_0x288c92('0xd8')]()['field'](_0x288c92('0x8e'))['field']('u.fullname')[_0x288c92('0xca')](_0x288c92('0x58'))[_0x288c92('0xa4')]('user_has_mail_interactions','ui')[_0x288c92('0x66')]('users','u','u.id\x20=\x20ui.UserId'),_0x5707a6=squel[_0x288c92('0xd8')]()[_0x288c92('0xa4')](_0x288c92('0x16'),'i')[_0x288c92('0x66')](_0x288c92('0xa1'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')[_0x288c92('0x66')](_0x288c92('0xcc'),'o',_0x288c92('0xbf'))['left_join'](_0x288c92('0x5e'),'a',_0x288c92('0xb6'))[_0x288c92('0x66')]('mail_messages','me',_0x288c92('0x59'))[_0x288c92('0x66')](_0x288c92('0xb1'),'it',_0x288c92('0x47'))[_0x288c92('0x66')]('tools_tags','t',_0x288c92('0x2b')),_0x1a8acc=squel[_0x288c92('0x54')]();let _0x39be71=[];const _0x30d7b9=squel[_0x288c92('0x54')]();let _0x4c4a3b;if(_0x506ebc[_0x288c92('0x5a')][_0x288c92('0x21')]){_0x4c4a3b=as[_0x288c92('0x3d')](_0x506ebc[_0x288c92('0x5a')]['search']);const _0x464540=_0x4c4a3b[_0x288c92('0x9b')];for(let _0x969bfd=0x0;_0x969bfd<_0x4c4a3b[_0x288c92('0x32')][_0x288c92('0x36')];_0x969bfd++){const _0x11d86e=_0x4c4a3b[_0x288c92('0x32')][_0x969bfd],_0x46e8ce='i';let _0x5817a6,_0x4762ba=_[_0x288c92('0x1f')](_0x580f75,[_0x288c92('0x9f'),_0x11d86e['field']]);if(!_0x4762ba)switch(_0x11d86e[_0x288c92('0xca')]){case _0x288c92('0xd'):_0x11d86e[_0x288c92('0x67')]==0x1?_0x5707a6['having']('`'+_0x11d86e['field']+_0x288c92('0x57')):_0x5707a6[_0x288c92('0x1b')]('`'+_0x11d86e[_0x288c92('0xca')]+_0x288c92('0x13'));break;case _0x288c92('0xd3'):if(_0x11d86e[_0x288c92('0x48')]===_0x288c92('0xda')){if(_0x11d86e[_0x288c92('0x67')][_0x288c92('0x18')]('\x20')[_0x288c92('0x36')]>0x1)_0x1a8acc[_0x464540]('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x288c92('0x2c')](_0x11d86e[_0x288c92('0x67')]),null);else{const _0x5db497='%'+_0x11d86e[_0x288c92('0x67')]+'%';_0x1a8acc[_0x464540](_0x288c92('0x34'),_0x5db497,_0x5db497,_0x5db497);}}else _0x4762ba=_[_0x288c92('0x1f')](_0x580f75,[_0x288c92('0x9f'),'ContactId']),_0x11d86e['field']=_0x288c92('0x39'),_0x5817a6=as['buildExpression'](_0x46e8ce,_0x4762ba['type'],_0x11d86e),_0x1a8acc[_0x464540](_0x5817a6[_0x288c92('0x29')],_0x5817a6['value']['start'],_0x5817a6['value']['end']);break;case _0x288c92('0x98'):{const _0xcac9a7=_0x11d86e[_0x288c92('0x67')][_0x288c92('0x18')](',')[_0x288c92('0x92')](function(_0x67caa2){return Number(_0x67caa2);});_0xcac9a7[_0x288c92('0x6a')](function(_0x25c935){const _0x1d003d=_0x288c92;_0x30d7b9['or'](_0x1d003d('0x88'),'%,'+_0x25c935+',%');}),_0x39be71=_['union'](_0x39be71,_0xcac9a7);}break;case'User':_0x11d86e[_0x288c92('0x48')]===_0x288c92('0xda')?_0x1a8acc[_0x464540](_0x288c92('0xa6'),'%'+_0x11d86e[_0x288c92('0x67')]+'%',null):(_0x4762ba=_[_0x288c92('0x1f')](_0x580f75,[_0x288c92('0x9f'),'UserId']),_0x11d86e['field']=_0x288c92('0xc4'),_0x5817a6=as[_0x288c92('0xd2')](_0x46e8ce,_0x4762ba[_0x288c92('0x22')],_0x11d86e),_0x1a8acc[_0x464540](_0x5817a6[_0x288c92('0x29')],_0x5817a6[_0x288c92('0x67')]['start'],_0x5817a6[_0x288c92('0x67')]['end']));break;case _0x288c92('0x5d'):_0x5817a6=as['buildExpression']('me',null,_0x11d86e),_0x1a8acc[_0x464540](_0x5817a6[_0x288c92('0x29')],_0x5817a6[_0x288c92('0x67')][_0x288c92('0x53')],_0x5817a6[_0x288c92('0x67')]['end']);break;}else _0x5817a6=as[_0x288c92('0xd2')](_0x46e8ce,_0x4762ba[_0x288c92('0x22')],_0x11d86e),_0x1a8acc[_0x464540](_0x5817a6['text'],_0x5817a6[_0x288c92('0x67')][_0x288c92('0x53')],_0x5817a6['value'][_0x288c92('0x5c')]);}}else{const _0x16052e=_(_0x506ebc[_0x288c92('0x5a')])[_0x288c92('0xbb')]()[_0x288c92('0x92')](function(_0x22b9fd){const _0x5b889a=_0x288c92;return _[_0x5b889a('0xaf')](_0x580f75,[_0x5b889a('0x9f'),_0x22b9fd])?_0x22b9fd:undefined;})[_0x288c92('0x63')]()['value']();!_[_0x288c92('0xd9')](_0x16052e)&&_0x16052e['forEach'](function(_0x1e742b){const _0x3567d5=_0x288c92;if(_0x1e742b===_0x3567d5('0x0'))_0x5707a6['where']('i.MailAccountId\x20IN\x20?',[][_0x3567d5('0x3a')](_0x506ebc['query'][_0x1e742b]));else{if(_0x1e742b===_0x3567d5('0xc9')){const _0x26565d=JSON[_0x3567d5('0x4a')](_0x506ebc[_0x3567d5('0x5a')][_0x1e742b])['$gte'],_0x18a8dc=JSON['parse'](_0x506ebc[_0x3567d5('0x5a')][_0x1e742b])[_0x3567d5('0x73')];_0x5707a6['where'](_0x3567d5('0x75'),_0x26565d,_0x18a8dc);}else _0x506ebc[_0x3567d5('0x5a')][_0x1e742b]===_0x3567d5('0x72')?_0x5707a6[_0x3567d5('0x9d')]('i.'+_0x1e742b+_0x3567d5('0xcb')):_0x5707a6[_0x3567d5('0x9d')]('i.'+_0x1e742b+_0x3567d5('0x1c'),_0x506ebc[_0x3567d5('0x5a')][_0x1e742b]);}});_0x506ebc[_0x288c92('0x5a')]['read']&&(_0x506ebc['query'][_0x288c92('0xc8')]==0x1?_0x5707a6[_0x288c92('0x1b')]('`unreadMessages`\x20=\x200'):_0x5707a6[_0x288c92('0x1b')](_0x288c92('0x30')));_0x506ebc[_0x288c92('0x5a')][_0x288c92('0x85')]&&(_0x39be71=_[_0x288c92('0x74')](_0x506ebc[_0x288c92('0x5a')][_0x288c92('0x85')])?_0x506ebc[_0x288c92('0x5a')][_0x288c92('0x85')]:new Array(_0x506ebc['query'][_0x288c92('0x85')]),_0x39be71[_0x288c92('0x6a')](function(_0x24a2f5){_0x30d7b9['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x24a2f5+',%');}));if(_0x506ebc['query'][_0x288c92('0xac')]){const _0x40b7cb=_0x506ebc[_0x288c92('0x5a')][_0x288c92('0xac')][_0x288c92('0xb')]('\x5c','\x5c\x5c')['replace']('\x27\x27','\x27\x27\x27\x27');if(qs[_0x288c92('0x44')](_0x40b7cb))_0x1a8acc['or'](_0x288c92('0x7a'),_0x40b7cb+'%');else qs[_0x288c92('0x5b')](_0x40b7cb)?_0x1a8acc['or'](_0x288c92('0x8c'),_0x40b7cb+'%'):_0x1a8acc['or'](_0x288c92('0xad'),qs[_0x288c92('0x2c')](_0x40b7cb))['or'](_0x288c92('0x11'),qs[_0x288c92('0x2c')](_0x40b7cb));}}_0x5707a6['where'](_0x1a8acc),_0x5707a6['group']('i.id');let _0x59df8b={'type':db[_0x288c92('0x9c')][_0x288c92('0x51')]['SELECT'],'raw':!![]};const _0x29fc79=_0x5707a6[_0x288c92('0xc6')]();_0x29fc79['field']('i.id'),_0x29fc79[_0x288c92('0xca')](_0x288c92('0x3b'),_0x288c92('0xd')),_0x33d7f3[_0x288c92('0x49')]&&_0x33d7f3[_0x288c92('0x49')]['forEach'](function(_0x1d3af7){const _0x527039=_0x288c92;_0x5707a6[_0x527039('0x49')]('i.'+_0x1d3af7[0x0],_0x1d3af7[0x1]===_0x527039('0x6c')?![]:!![]);}),!_[_0x288c92('0xd9')](_0x39be71)&&(_0x5707a6[_0x288c92('0x1b')](_0x30d7b9),_0x29fc79[_0x288c92('0x9d')](_0x288c92('0x31'),_0x39be71)),Promise['resolve']()[_0x288c92('0x35')](function(){const _0xdc180c=_0x288c92;if(!_0x4c4a3b){if(_0x506ebc[_0xdc180c('0x5a')][_0xdc180c('0x0')]||_0x506ebc[_0xdc180c('0x5a')][_0xdc180c('0x1e')])return;_0x29fc79[_0xdc180c('0x9d')](_0xdc180c('0x7c')),_0x5707a6['where'](_0xdc180c('0x7c'));return;}return _0x506ebc[_0xdc180c('0x42')][_0xdc180c('0xcf')]({'attributes':['id'],'raw':!![]})['then'](function(_0x4780ef){const _0x1425d4=_0xdc180c;_[_0x1425d4('0xd9')](_0x4780ef)?(_0x29fc79[_0x1425d4('0x9d')](_0x1425d4('0x19')),_0x5707a6[_0x1425d4('0x9d')](_0x1425d4('0x19'))):(_0x29fc79[_0x1425d4('0x9d')](_0x1425d4('0x38'),_[_0x1425d4('0x92')](_0x4780ef,'id')),_0x5707a6[_0x1425d4('0x9d')](_0x1425d4('0x38'),_['map'](_0x4780ef,'id')));});})[_0x288c92('0x35')](function(){const _0x496757=_0x288c92;db[_0x496757('0x7e')][_0x496757('0x5a')](_0x29fc79[_0x496757('0xe')](),_0x59df8b)['then'](function(_0x206245){const _0x547815=_0x496757;_0x4f1d47[_0x547815('0x8b')]=_0x206245[_0x547815('0x36')];if(_0x4f1d47[_0x547815('0x8b')]===0x0)return[];return db[_0x547815('0x7e')]['query'](_0x50027f['toString'](),_0x59df8b)[_0x547815('0x35')](function(_0x795912){const _0x3dc67e=_0x547815;_0x2da307=_[_0x3dc67e('0xc')](_0x795912,'id'),_0x59df8b=_[_0x3dc67e('0x33')](_0x59df8b,{'model':db[_0x3dc67e('0xaa')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x506ebc[_0x3dc67e('0x5a')][_0x3dc67e('0x5')]?_0x33d7f3[_0x3dc67e('0x96')][_0x3dc67e('0x6a')](function(_0x4f756b){const _0x489ea6=_0x3dc67e;_0x5707a6[_0x489ea6('0xca')]('i.'+_0x4f756b);}):(_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x3b'),_0x3dc67e('0xd')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x4b'),_0x3dc67e('0x15')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x4'),'Account.mandatoryDisposition'),_0x5707a6['field'](_0x3dc67e('0x94')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0xa0')),_0x5707a6[_0x3dc67e('0xca')]('i.updatedAt'),_0x5707a6['field'](_0x3dc67e('0x4c')),_0x5707a6['field'](_0x3dc67e('0x7')),_0x5707a6['field'](_0x3dc67e('0x71')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0xb3')),_0x5707a6['field'](_0x3dc67e('0x2')),_0x5707a6['field'](_0x3dc67e('0x5f')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x93')),_0x5707a6['field'](_0x3dc67e('0x99')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x6e')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0xd4')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x17')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0xc1')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x95')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0xd0')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0xb7'),_0x3dc67e('0x8a')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x2a'),_0x3dc67e('0x84')),_0x5707a6[_0x3dc67e('0xca')]('c.email','Contact.email'),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x61'),'Contact.phone'),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x2f'),_0x3dc67e('0x3c')),_0x5707a6[_0x3dc67e('0xca')](_0x3dc67e('0x82'),'Contact.fax'),_0x5707a6['field'](_0x3dc67e('0x55'),_0x3dc67e('0x9a')),_0x5707a6[_0x3dc67e('0xca')]('o.internal',_0x3dc67e('0x87')),_0x5707a6[_0x3dc67e('0xca')]('GROUP_CONCAT(DISTINCT\x20t.id)',_0x3dc67e('0x86')));if(_0x33d7f3['limit'])_0x5707a6['limit'](_0x33d7f3[_0x3dc67e('0x76')]);if(_0x33d7f3[_0x3dc67e('0xbd')])_0x5707a6[_0x3dc67e('0xbd')](_0x33d7f3[_0x3dc67e('0xbd')]);return db['sequelize'][_0x3dc67e('0x5a')](_0x5707a6['toString'](),_0x59df8b);})['then'](function(_0x34f2e4){const _0x2d15d7=_0x547815;return _0x51d2f1['where'](_0x2d15d7('0x52'),_['map'](_0x34f2e4,'id')),db[_0x2d15d7('0x7e')][_0x2d15d7('0x5a')](_0x51d2f1['toString'](),_0x59df8b)['then'](function(_0x5d6e81){const _0x797716=_0x2d15d7,_0x1ce843=_[_0x797716('0x8')](_0x5d6e81,_0x797716('0x45')),_0x1c5866=[];return db[_0x797716('0x1d')]['findOne']({'attributes':[_0x797716('0x3f')],'raw':!![]})['then'](function(_0x52308e){const _0x525338=_0x797716,_0x2cce69=_0x52308e[_0x525338('0x3f')];return _0x34f2e4[_0x525338('0x6a')](function(_0x13ea21){_0x1c5866['push'](updateMailInteraction(_0x13ea21,_0x2da307,_0x1ce843,_0x2cce69));}),Promise[_0x525338('0x41')](_0x1c5866);});});});})[_0x496757('0x35')](function(_0x255549){const _0x5c54e2=_0x496757;return _0x4f1d47[_0x5c54e2('0x83')]=_0x255549,_0x4f1d47;})[_0x496757('0x35')](respondWithFilteredResult(_0x45295e,_0x33d7f3));})[_0x288c92('0x3')](handleError(_0x45295e,null));},exports[_0x4ace3b('0x1a')]=function(_0x16dac7,_0xe9f779){const _0x1a3ced=_0x4ace3b;let _0x2579d2={'raw':![],'where':{'id':_0x16dac7[_0x1a3ced('0xb2')]['id']}};const _0x15a2fd={};return _0x15a2fd[_0x1a3ced('0xb9')]=_['keys'](db[_0x1a3ced('0xaa')][_0x1a3ced('0x6d')]),_0x15a2fd[_0x1a3ced('0x5a')]=_[_0x1a3ced('0xbb')](_0x16dac7['query']),_0x15a2fd[_0x1a3ced('0x91')]=_[_0x1a3ced('0x79')](_0x15a2fd[_0x1a3ced('0xb9')],_0x15a2fd[_0x1a3ced('0x5a')]),_0x2579d2[_0x1a3ced('0x96')]=_[_0x1a3ced('0x79')](_0x15a2fd[_0x1a3ced('0xb9')],qs[_0x1a3ced('0x5')](_0x16dac7[_0x1a3ced('0x5a')]['fields'])),_0x2579d2[_0x1a3ced('0x96')]=_0x2579d2['attributes'][_0x1a3ced('0x36')]?_0x2579d2[_0x1a3ced('0x96')]:_0x15a2fd[_0x1a3ced('0xb9')],_0x16dac7[_0x1a3ced('0x5a')][_0x1a3ced('0x25')]&&(_0x2579d2['include']=[{'all':!![]}]),_0x2579d2=_[_0x1a3ced('0x33')]({},_0x2579d2,_0x16dac7['options']),db['MailInteraction'][_0x1a3ced('0x60')](_0x2579d2)[_0x1a3ced('0x35')](handleEntityNotFound(_0xe9f779,null))['then'](respondWithResult(_0xe9f779,null))['catch'](handleError(_0xe9f779,null));},exports[_0x4ace3b('0x90')]=function(_0x3ade85,_0x21cb54){const _0xdfd9f0=_0x4ace3b;return db[_0xdfd9f0('0xaa')]['create'](_0x3ade85['body'],{})[_0xdfd9f0('0x35')](respondWithResult(_0x21cb54,0xc9))[_0xdfd9f0('0x3')](handleError(_0x21cb54,null));},exports[_0x4ace3b('0x89')]=function(_0x7f4626,_0x4b309d){const _0x7a38be=_0x4ace3b;return _0x7f4626[_0x7a38be('0x9e')]['id']&&delete _0x7f4626[_0x7a38be('0x9e')]['id'],db[_0x7a38be('0xaa')][_0x7a38be('0x60')]({'where':{'id':_0x7f4626[_0x7a38be('0xb2')]['id']}})[_0x7a38be('0x35')](handleEntityNotFound(_0x4b309d,null))[_0x7a38be('0x35')](saveUpdates(_0x7f4626[_0x7a38be('0x9e')],null))['then'](respondWithResult(_0x4b309d,null))[_0x7a38be('0x3')](handleError(_0x4b309d,null));},exports[_0x4ace3b('0xd1')]=function(_0x411bf7,_0xcb2c0b){const _0xf1b3b7=_0x4ace3b;return db[_0xf1b3b7('0xaa')][_0xf1b3b7('0x60')]({'where':{'id':_0x411bf7['params']['id']}})[_0xf1b3b7('0x35')](handleEntityNotFound(_0xcb2c0b,null))[_0xf1b3b7('0x35')](removeEntity(_0xcb2c0b,null))[_0xf1b3b7('0x3')](handleError(_0xcb2c0b,null));},exports['describe']=function(_0x36f537,_0xa53c49){const _0x3319ce=_0x4ace3b;return db['MailInteraction'][_0x3319ce('0xa3')]()[_0x3319ce('0x35')](respondWithResult(_0xa53c49,null))[_0x3319ce('0x3')](handleError(_0xa53c49,null));},exports[_0x4ace3b('0xa9')]=function(_0x1eb2b1,_0x1a9bdf){const _0x48e531=_0x4ace3b;return db[_0x48e531('0xa5')][_0x48e531('0x60')]({'where':{'id':_0x1eb2b1[_0x48e531('0xb2')]['id']}})[_0x48e531('0x35')](function(_0x3fb51b){const _0x26a028=_0x48e531;if(_0x3fb51b)return _0x3fb51b[_0x26a028('0xa9')](_0x1eb2b1[_0x26a028('0x9e')]['ids'],{'through':_[_0x26a028('0x50')](_0x1eb2b1['body'],[_0x26a028('0x64'),'id'])});})[_0x48e531('0x35')](respondWithResult(_0x1a9bdf,null))[_0x48e531('0x3')](handleError(_0x1a9bdf,null));},exports[_0x4ace3b('0xf')]=function(_0x14ed34,_0x585c06){const _0x31c849=_0x4ace3b;let _0x5add4b={'raw':![],'where':{}};const _0x2ddc2e={},_0x2c4ed8={'count':0x0,'rows':[]};return db[_0x31c849('0xaa')][_0x31c849('0x60')]({'where':{'id':_0x14ed34['params']['id']}})[_0x31c849('0x35')](handleEntityNotFound(_0x585c06,null))['then'](function(_0x25c188){const _0xcb3d41=_0x31c849;if(_0x25c188){_0x2ddc2e[_0xcb3d41('0xb9')]=_['keys'](db[_0xcb3d41('0xa5')][_0xcb3d41('0x6d')]),_0x2ddc2e['query']=_[_0xcb3d41('0xbb')](_0x14ed34[_0xcb3d41('0x5a')]),_0x2ddc2e['filters']=_[_0xcb3d41('0x79')](_0x2ddc2e['model'],_0x2ddc2e[_0xcb3d41('0x5a')]),_0x5add4b['attributes']=_[_0xcb3d41('0x79')](_0x2ddc2e['model'],qs[_0xcb3d41('0x5')](_0x14ed34[_0xcb3d41('0x5a')][_0xcb3d41('0x5')])),_0x5add4b[_0xcb3d41('0x96')]=_0x5add4b[_0xcb3d41('0x96')][_0xcb3d41('0x36')]?_0x5add4b['attributes']:_0x2ddc2e[_0xcb3d41('0xb9')];typeof _0x14ed34[_0xcb3d41('0x5a')]['nolimit']===_0xcb3d41('0x40')&&(_0x5add4b['limit']=qs[_0xcb3d41('0x76')](_0x14ed34[_0xcb3d41('0x5a')][_0xcb3d41('0x76')]),_0x5add4b[_0xcb3d41('0xbd')]=qs[_0xcb3d41('0xbd')](_0x14ed34[_0xcb3d41('0x5a')][_0xcb3d41('0xbd')]));_0x5add4b[_0xcb3d41('0x49')]=qs['sort'](_0x14ed34[_0xcb3d41('0x5a')][_0xcb3d41('0xb0')]),_0x5add4b['where']=qs[_0xcb3d41('0x91')](_[_0xcb3d41('0x10')](_0x14ed34[_0xcb3d41('0x5a')],_0x2ddc2e[_0xcb3d41('0x91')])),_0x5add4b[_0xcb3d41('0x9d')]['MailInteractionId']=_0x25c188['id'];_0x14ed34[_0xcb3d41('0x5a')][_0xcb3d41('0xac')]&&(_0x5add4b[_0xcb3d41('0x9d')]=_[_0xcb3d41('0x33')](_0x5add4b[_0xcb3d41('0x9d')],{[Op['or']]:_[_0xcb3d41('0x92')](_0x5add4b['attributes'],function(_0x34d446){const _0x49a1d4=_0xcb3d41,_0x4f3fe6={};return _0x4f3fe6[_0x34d446]={[Op['like']]:'%'+_0x14ed34[_0x49a1d4('0x5a')][_0x49a1d4('0xac')]+'%'},_0x4f3fe6;})}));if(_0x14ed34[_0xcb3d41('0x5a')][_0xcb3d41('0x7d')]){const _0x210ee5=_0x14ed34[_0xcb3d41('0x5a')][_0xcb3d41('0x7d')][_0xcb3d41('0x18')](','),_0x2cc2dd={};_0x2cc2dd[_0x210ee5[0x0]]={[Op[_0xcb3d41('0xdc')]]:moment(_0x210ee5[0x1])[_0xcb3d41('0x28')](_0xcb3d41('0x68'))},_0x5add4b[_0xcb3d41('0x9d')]=_['merge'](_0x5add4b[_0xcb3d41('0x9d')],_0x2cc2dd);}return _0x5add4b=_['merge']({},_0x5add4b,_0x14ed34['options']),db['MailMessage'][_0xcb3d41('0x8b')]({'where':_0x5add4b[_0xcb3d41('0x9d')]})['then'](function(_0x19b038){const _0x45c022=_0xcb3d41;return _0x2c4ed8[_0x45c022('0x8b')]=_0x19b038,_0x14ed34['query'][_0x45c022('0x25')]&&(_0x5add4b['include']=[{'all':!![]}]),db['MailMessage'][_0x45c022('0xc5')](_0x5add4b);})[_0xcb3d41('0x35')](function(_0x206d4a){const _0x4c4125=_0xcb3d41;return _0x2c4ed8[_0x4c4125('0x83')]=_0x206d4a,_0x2c4ed8;});}})[_0x31c849('0x35')](respondWithFilteredResult(_0x585c06,_0x5add4b))[_0x31c849('0x3')](handleError(_0x585c06,null));},exports[_0x4ace3b('0xa2')]=function(_0x6dd07,_0x1d9103){const _0x3d5c76=_0x4ace3b;return db[_0x3d5c76('0xaa')][_0x3d5c76('0x60')]({'where':{'id':_0x6dd07[_0x3d5c76('0xb2')]['id']}})[_0x3d5c76('0x35')](function(_0xebe3b2){const _0x15facb=_0x3d5c76;if(_0xebe3b2)return _0xebe3b2['setTags'](_0x6dd07['body']['ids'],{'through':_[_0x15facb('0x50')](_0x6dd07[_0x15facb('0x9e')],[_0x15facb('0x64'),'id'])})['then'](function(){const _0x3d5bcf=_0x15facb;return db[_0x3d5bcf('0x98')][_0x3d5bcf('0xc5')]({'attributes':['id',_0x3d5bcf('0x9f'),_0x3d5bcf('0xc0')],'where':{'id':_0x6dd07[_0x3d5bcf('0x9e')][_0x3d5bcf('0x64')]}});})['then'](function(_0x184606){const _0x32502e=_0x15facb;return socket[_0x32502e('0x24')]('mailInteractionTags:save',{'id':Number(_0x6dd07[_0x32502e('0xb2')]['id']),'tags':_0x184606||[]}),{'id':Number(_0x6dd07[_0x32502e('0xb2')]['id']),'tags':_0x184606||[]};});})[_0x3d5c76('0x35')](respondWithResult(_0x1d9103,null))[_0x3d5c76('0x3')](handleError(_0x1d9103,null));},exports[_0x4ace3b('0x70')]=function(_0x407f4d,_0x295003){const _0xc33c2c=_0x4ace3b;return db['MailInteraction'][_0xc33c2c('0x60')]({'where':{'id':_0x407f4d[_0xc33c2c('0xb2')]['id']}})[_0xc33c2c('0x35')](handleEntityNotFound(_0x295003,null))[_0xc33c2c('0x35')](function(_0x49c0c3){const _0x453b98=_0xc33c2c;if(_0x49c0c3)return _0x49c0c3[_0x453b98('0x70')](_0x407f4d[_0x453b98('0x5a')][_0x453b98('0x64')]);})['then'](respondWithStatusCode(_0x295003,null))[_0xc33c2c('0x3')](handleError(_0x295003,null));},exports['download']=function(_0x4b0da2,_0x591719){const _0x2cb032=_0x4ace3b,_0x402a73=moment()[_0x2cb032('0x6b')]()[_0x2cb032('0xe')](),_0x1257da=path[_0x2cb032('0x97')](config[_0x2cb032('0xd5')],_0x2cb032('0xd6'),_0x2cb032('0x56')),_0x1310f6=path[_0x2cb032('0x97')](config[_0x2cb032('0xd5')],_0x2cb032('0x78'),_0x2cb032('0xd6'),'attachments'),_0x3816fb=path['join'](_0x1257da,_0x402a73),_0x300d29=util[_0x2cb032('0x28')]('transcript-%d-%s.zip',_0x4b0da2['params']['id'],_0x402a73),_0x51db9d=path[_0x2cb032('0x97')](_0x1257da,_0x300d29),_0x4fa710=[];_0x4b0da2['query'][_0x2cb032('0x6')]&&_0x4fa710['push']({'model':db[_0x2cb032('0xa8')],'as':'Attachments','raw':!![]});const _0x5ef179=[{'model':db[_0x2cb032('0xa5')],'as':_0x2cb032('0xcd'),'attributes':['id',_0x2cb032('0x9e'),_0x2cb032('0xa4'),'to','cc',_0x2cb032('0xdb'),'subject',_0x2cb032('0xc9')],'where':{'secret':![]},'order':qs[_0x2cb032('0xb0')]('id'),'include':_0x4fa710}];return db[_0x2cb032('0xaa')][_0x2cb032('0x60')]({'where':{'id':_0x4b0da2[_0x2cb032('0xb2')]['id']},'include':_0x5ef179})[_0x2cb032('0x35')](handleEntityNotFound(_0x591719,null))[_0x2cb032('0x35')](function(_0x3a86d6){const _0x56dd25=_0x2cb032;if(_0x3a86d6&&_0x3a86d6[_0x56dd25('0xcd')]){const _0x56192c=_0x3a86d6['get']({'plain':!![]});return fs['mkdirSync'](_0x3816fb),Promise[_0x56dd25('0x12')](_0x56192c[_0x56dd25('0xcd')],function(_0x496ff7,_0x330bd0){const _0x2c4e24=_0x56dd25,_0x3201c9={'from':_0x496ff7[_0x2c4e24('0xa4')],'to':_0x496ff7['to'],'subject':_0x496ff7['subject'],'html':_0x496ff7[_0x2c4e24('0x9e')],'headers':{'Date':moment(_0x496ff7['createdAt'])[_0x2c4e24('0x28')]('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x496ff7['cc']&&(_0x3201c9['headers']['Cc']=_0x496ff7['cc']),_0x496ff7[_0x2c4e24('0xdb')]&&(_0x3201c9[_0x2c4e24('0x65')][_0x2c4e24('0x69')]=_0x496ff7[_0x2c4e24('0xdb')]),new Promise(function(_0x3dce6d,_0x91ae5a){const _0x4840c5=_0x2c4e24;if(_0x496ff7['Attachments'])for(let _0x164422=0x0;_0x164422<_0x496ff7[_0x4840c5('0x37')][_0x4840c5('0x36')];_0x164422++){const _0x55774c=_0x496ff7[_0x4840c5('0x37')][_0x164422],_0x312a7e=path[_0x4840c5('0x97')](_0x1310f6,_0x55774c[_0x4840c5('0x3e')]);fs[_0x4840c5('0x23')](_0x312a7e)&&_0x3201c9['attachments'][_0x4840c5('0x4d')]({'name':_0x55774c['name'],'contentType':_0x55774c['type'],'data':fs[_0x4840c5('0x2e')](_0x312a7e)});}emlformat[_0x4840c5('0x77')](_0x3201c9,function(_0x204a79,_0x37dd81){const _0x10e7c3=_0x4840c5;if(_0x204a79)return _0x91ae5a(_0x204a79);return fs[_0x10e7c3('0xd7')](path[_0x10e7c3('0x97')](_0x3816fb,util[_0x10e7c3('0x28')]('message%d.eml',_0x330bd0)),_0x37dd81),_0x3dce6d(_0x37dd81);});});})[_0x56dd25('0x35')](function(){const _0x470faf=_0x56dd25;return new Promise(function(_0x52a05d,_0x3bb648){zipdir(_0x3816fb,{'saveTo':_0x51db9d},function(_0x5c1503,_0x56a36e){if(_0x5c1503)return _0x3bb648(_0x5c1503);return _0x52a05d(_0x56a36e);});})[_0x470faf('0x35')](function(){return new Promise(function(_0x5901a3,_0x3f4406){rimraf(_0x3816fb,function(_0x42b1b4){if(_0x42b1b4)_0x3f4406(_0x42b1b4);return _0x5901a3();});});})[_0x470faf('0x35')](function(){return _0x591719['download'](_0x51db9d,_0x300d29,function(_0x50e113){const _0x406c3f=a406_0x40be;_0x50e113?console[_0x406c3f('0x80')](_0x406c3f('0x1'),_0x50e113):fs[_0x406c3f('0xc2')](_0x51db9d);});});});}else return _0x591719[_0x56dd25('0xbc')](0xc8);})[_0x2cb032('0x3')](handleError(_0x591719,null));}; \ No newline at end of file +const a406_0x56f0=['Contact.fax','operator','\x27\x27\x27\x27','include','resolve','basename','forEach','users','Setting','create','a.id\x20=\x20i.MailAccountId','options','attributes','i.id\x20LIKE\x20?','tag','Contact.firstName','Account.key','c.lastName','omit','stack','api','MailMessage','clone','../../config/environment','`\x20=\x200','null','i.lastMsgAt','$gte','push','gte','SELECT','Contact.mobile','Contact.email','replace','getMailAccounts','Attachments','nolimit','sort','ids','isArray','split','intersection','DESC','limit','order','destroy','existsSync','Owner.internal','plainBody','QueryTypes','user','getMessages','mail_messages','GROUP_CONCAT(DISTINCT\x20t.id)','sendStatus','i.id','toString','model','name','enableEmailPreview','groupBy','body','\x20IS\x20NULL','length','mail_interactions','findOne','pick','a.key','addMessage','o.internal','Tags','each','UserId','includeAll','count','Sequelize','$substring','i.MailAccountId\x20IN\x20?','Tag','c.firstName','isEmpty','u.fullname','get','a.mandatoryDisposition','type','lodash','../../components/parsers/advancedSearch','unlinkSync','download','html-to-text','i.MailAccountId','i.substatus','then','addTags','format','trimStart','../../mysqldb','user_has_mail_interactions','status','join','Account.mandatoryDisposition','rawAttributes','createdAt','MATCH\x20(i.to,\x20i.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','moment','filter','ui.MailInteractionId','color','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','mail_accounts','removeTags','c.fax','i.attach','filters','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','Content-Range','all','it.MailInteractionId\x20=\x20i.id','Contact.lastName','fullname','i.closedAt','c.email','headers','i.updatedAt','register','update','i.createdAt','Messages','show','query','from','like','value','\x20=\x20?','unix','lastMsgBody','journey','union','catch','emit','Owner.fullname','`\x20>\x200','parse','having','bcc','c.phone','rimraf','u.id','subject','i.thirdDisposition','../../config/logger','keys','MATCH\x20(me.plainBody,\x20me.subject)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','../../components/parsers/qs','../../rediscache','read','params','findAll','ui.MailInteractionId\x20IN\x20?','MailAccountId','rows','map','MailInteractionId','field','undefined','find','unreadMessages','util','YYYY-MM-DD\x20HH:mm:ss','buildExpression','`unreadMessages`\x20>\x200','MailInteraction','offset','merge','i.MailAccountId\x20IS\x20NOT\x20NULL','i.secondDisposition','getFullTextValue','select','end','err','json','i.lastMsgDirection','me.MailInteractionId\x20=\x20i.id','keyBy','sqlOperator','sequelize','expr','left_join','ContactId','text','build','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','compact','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','isEmail','fields','log','where','writeFileSync','describe','i.MailAccountId\x20IS\x20NULL','zip-dir','Contact.phone','root','tools_tags','lastMsgText','i.disposition','start','isNumeric','readFileSync','TagIds','files','u.id\x20=\x20ui.UserId','key'];(function(_0x4a3cae,_0x56f0c4){const _0x433535=function(_0x56b4ec){while(--_0x56b4ec){_0x4a3cae['push'](_0x4a3cae['shift']());}};_0x433535(++_0x56f0c4);}(a406_0x56f0,0x1b6));const a406_0x4335=function(_0x4a3cae,_0x56f0c4){_0x4a3cae=_0x4a3cae-0x0;let _0x433535=a406_0x56f0[_0x4a3cae];return _0x433535;};const _0x2d34c4=a406_0x4335;'use strict';const emlformat=require('eml-format'),rimraf=require(_0x2d34c4('0x88')),zipdir=require(_0x2d34c4('0xbf')),moment=require(_0x2d34c4('0x5e')),util=require(_0x2d34c4('0x9d')),path=require('path'),fs=require('fs'),_=require(_0x2d34c4('0x4b')),squel=require('squel'),{htmlToText}=require(_0x2d34c4('0x4f')),{getSocket}=require(_0x2d34c4('0x90')),socket=getSocket(),qs=require(_0x2d34c4('0x8f')),as=require(_0x2d34c4('0x4c')),logger=require(_0x2d34c4('0x8c'))(_0x2d34c4('0xa')),config=require(_0x2d34c4('0xd')),db=require(_0x2d34c4('0x56'))['db'],{Op}=require(_0x2d34c4('0xaf'));require('./mailInteraction.socket')[_0x2d34c4('0x72')](socket);function respondWithStatusCode(_0x56b4ec,_0x17ae28){return _0x17ae28=_0x17ae28||0xcc,function(_0x1815c2){const _0x332399=a406_0x4335;if(_0x1815c2)return _0x56b4ec[_0x332399('0x2c')](_0x17ae28);return _0x56b4ec[_0x332399('0x58')](_0x17ae28)[_0x332399('0xa8')]();};}function respondWithResult(_0x2f87a3,_0x5daac0){return _0x5daac0=_0x5daac0||0xc8,function(_0x561ce6){const _0x2b3e1e=a406_0x4335;if(_0x561ce6)return _0x2f87a3['status'](_0x5daac0)[_0x2b3e1e('0xaa')](_0x561ce6);};}function respondWithFilteredResult(_0x2ebd90,_0x479105){return function(_0x2e125e){const _0x5d7d47=a406_0x4335;if(_0x2e125e){const _0x298399=_0x2e125e[_0x5d7d47('0x40')],_0x2866f1=_0x479105[_0x5d7d47('0xa2')];let _0x23906a=_0x479105['offset']+_0x479105[_0x5d7d47('0x21')],_0x469f7b;return _0x23906a>=_0x298399?(_0x23906a=_0x298399,_0x469f7b=0xc8):_0x469f7b=0xce,_0x2ebd90[_0x5d7d47('0x58')](_0x469f7b),_0x2ebd90['set'](_0x5d7d47('0x69'),_0x2866f1+'-'+_0x23906a+'/'+_0x298399)['json'](_0x2e125e);}return null;};}function saveUpdates(_0x47eff0){return function(_0x1759e2){const _0x32aa80=a406_0x4335;if(_0x1759e2)return _0x1759e2['update'](_0x47eff0)[_0x32aa80('0x52')](function(_0x508879){return _0x508879;});return null;};}function removeEntity(_0x54df72){return function(_0x11af4b){const _0x19dfed=a406_0x4335;if(_0x11af4b)return _0x11af4b[_0x19dfed('0x23')]()['then'](function(){const _0x36e3bb=_0x19dfed;_0x54df72[_0x36e3bb('0x58')](0xcc)[_0x36e3bb('0xa8')]();});};}function handleEntityNotFound(_0x4f021f){return function(_0x19eff0){const _0x59cba6=a406_0x4335;return!_0x19eff0&&_0x4f021f[_0x59cba6('0x2c')](0x194),_0x19eff0;};}function handleError(_0x1feec2,_0x3c5752){return _0x3c5752=_0x3c5752||0x1f4,function(_0x19d451){const _0x4d35b7=a406_0x4335;logger['error'](_0x19d451[_0x4d35b7('0x9')]),_0x19d451[_0x4d35b7('0x30')]&&delete _0x19d451['name'],_0x1feec2[_0x4d35b7('0x58')](_0x3c5752)['send'](_0x19d451);};}function getInteractionUsers(_0x66f2d5,_0x36eef8){return new Promise(function(_0x40328f,_0x56496e){const _0x448f66=a406_0x4335;try{_0x36eef8[_0x66f2d5['id']]&&(_0x66f2d5['Users']=_[_0x448f66('0x97')](_0x36eef8[_0x66f2d5['id']],function(_0x3bd5dd){const _0x3b88de=_0x448f66;return{'id':_0x3bd5dd['id'],'fullname':_0x3bd5dd[_0x3b88de('0x6d')]};}));}catch(_0x234e96){_0x56496e(_0x234e96);}_0x40328f(_0x66f2d5);});}function getInteractionTags(_0x5613cb,_0x2d4c1a){return new Promise(function(_0xb96c75,_0x452487){const _0x35de99=a406_0x4335;try{_0x5613cb[_0x35de99('0xc8')]&&(_0x5613cb['Tags']=[],_0x5613cb[_0x35de99('0xc8')][_0x35de99('0x1e')](',')[_0x35de99('0xd2')](function(_0x3b83d8){const _0x54692b=_0x35de99;_0x5613cb[_0x54692b('0x3c')][_0x54692b('0x12')](_0x2d4c1a[_0x3b83d8]);})),delete _0x5613cb['TagIds'];}catch(_0x549316){_0x452487(_0x549316);}_0xb96c75(_0x5613cb);});}function getLastMessageText(_0x2f9189){return new Promise(function(_0x3a461b,_0x25fc19){const _0x15b70c=a406_0x4335;return db[_0x15b70c('0xa1')][_0x15b70c('0x37')]({'where':{'id':_0x2f9189['id']},'attributes':[_0x15b70c('0x7d'),'lastMsgText'],'raw':!![]})[_0x15b70c('0x52')](function(_0x5edd1d){const _0xc8d3c8=_0x15b70c;!_0x5edd1d[_0xc8d3c8('0xc3')]?_0x2f9189[_0xc8d3c8('0xc3')]=_[_0xc8d3c8('0x55')](htmlToText(_0x5edd1d[_0xc8d3c8('0x7d')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]})):_0x2f9189[_0xc8d3c8('0xc3')]=_0x5edd1d[_0xc8d3c8('0xc3')],_0x3a461b(_0x2f9189);})[_0x15b70c('0x80')](function(_0x858592){_0x25fc19(_0x858592);});});}function updateMailInteraction(_0x38ffa0,_0x34d58e,_0x4ff21b,_0x215934){return new Promise(function(_0x3f0b5b,_0x11e1a1){const _0x58578b=a406_0x4335;return getInteractionUsers(_0x38ffa0,_0x4ff21b)[_0x58578b('0x52')](function(_0x5ac443){return getInteractionTags(_0x5ac443,_0x34d58e);})[_0x58578b('0x52')](function(_0x354d68){_0x215934?_0x3f0b5b(getLastMessageText(_0x354d68)):_0x3f0b5b(_0x354d68);})[_0x58578b('0x80')](function(_0x51a0bc){_0x11e1a1(_0x51a0bc);});});}exports['index']=function(_0x3d4bfc,_0x5b14bc){const _0x441587=_0x2d34c4,_0x108d58={},_0x496d80={},_0x34068f={'count':0x0,'rows':[]},_0x538c1e=_[_0x441587('0x97')](db[_0x441587('0xa1')][_0x441587('0x5b')],function(_0x1a141f){const _0x330a1b=_0x441587;return{'name':_0x1a141f['fieldName'],'type':_0x1a141f['type'][_0x330a1b('0xcb')]};});_0x496d80[_0x441587('0x2f')]=_[_0x441587('0x97')](_0x538c1e,_0x441587('0x30')),_0x496d80[_0x441587('0x77')]=_['keys'](_0x3d4bfc['query']),_0x496d80['filters']=_[_0x441587('0x1f')](_0x496d80['model'],_0x496d80['query']),_0x108d58[_0x441587('0x2')]=_[_0x441587('0x1f')](_0x496d80['model'],qs[_0x441587('0xb9')](_0x3d4bfc[_0x441587('0x77')][_0x441587('0xb9')])),_0x108d58[_0x441587('0x2')]=_0x108d58['attributes'][_0x441587('0x35')]?_0x108d58[_0x441587('0x2')]:_0x496d80['model'];typeof _0x3d4bfc[_0x441587('0x77')][_0x441587('0x1a')]===_0x441587('0x9a')&&(_0x108d58[_0x441587('0x21')]=qs[_0x441587('0x21')](_0x3d4bfc[_0x441587('0x77')]['limit']),_0x108d58[_0x441587('0xa2')]=qs['offset'](_0x3d4bfc[_0x441587('0x77')][_0x441587('0xa2')]));_0x108d58[_0x441587('0x22')]=qs[_0x441587('0x1b')](_0x3d4bfc[_0x441587('0x77')][_0x441587('0x1b')]),_0x108d58[_0x441587('0xbb')]=qs['filters'](_[_0x441587('0x38')](_0x3d4bfc['query'],_0x496d80[_0x441587('0x67')]),_0x538c1e);let _0x1332f6=[];const _0xfe058b=squel[_0x441587('0xa7')]()[_0x441587('0x99')]('id')[_0x441587('0x99')](_0x441587('0x30'))[_0x441587('0x99')](_0x441587('0x61'))[_0x441587('0x78')](_0x441587('0xc2')),_0x5a7810=squel[_0x441587('0xa7')]()[_0x441587('0x99')](_0x441587('0x89'))[_0x441587('0x99')](_0x441587('0x47'))[_0x441587('0x99')](_0x441587('0x60'))[_0x441587('0x78')](_0x441587('0x57'),'ui')['left_join']('users','u',_0x441587('0xca')),_0x4952e8=squel[_0x441587('0xa7')]()[_0x441587('0x78')](_0x441587('0x36'),'i')[_0x441587('0xb1')]('cm_contacts','c',_0x441587('0xb7'))[_0x441587('0xb1')](_0x441587('0xd3'),'o','o.id\x20=\x20i.UserId')[_0x441587('0xb1')](_0x441587('0x63'),'a',_0x441587('0x0'))[_0x441587('0xb1')](_0x441587('0x2a'),'me',_0x441587('0xac'))[_0x441587('0xb1')]('mail_interaction_has_tags','it',_0x441587('0x6b'))[_0x441587('0xb1')](_0x441587('0xc2'),'t','t.id\x20=\x20it.TagId'),_0x1538f5=squel[_0x441587('0xb0')]();let _0x453027=[];const _0x1b8668=squel[_0x441587('0xb0')]();let _0x388437;if(_0x3d4bfc[_0x441587('0x77')]['search']){_0x388437=as['parseSearch'](_0x3d4bfc['query']['search']);const _0x19b8c0=_0x388437[_0x441587('0xae')];for(let _0x1a21f7=0x0;_0x1a21f7<_0x388437['conditions'][_0x441587('0x35')];_0x1a21f7++){const _0x40a520=_0x388437['conditions'][_0x1a21f7],_0x1fed41='i';let _0x2386fe,_0x3b00c8=_[_0x441587('0x9b')](_0x538c1e,[_0x441587('0x30'),_0x40a520[_0x441587('0x99')]]);if(!_0x3b00c8)switch(_0x40a520[_0x441587('0x99')]){case _0x441587('0x9c'):_0x40a520[_0x441587('0x7a')]==0x1?_0x4952e8[_0x441587('0x85')]('`'+_0x40a520[_0x441587('0x99')]+_0x441587('0xe')):_0x4952e8[_0x441587('0x85')]('`'+_0x40a520[_0x441587('0x99')]+_0x441587('0x83'));break;case'Contact':if(_0x40a520['operator']===_0x441587('0x42')){if(_0x40a520['value'][_0x441587('0x1e')]('\x20')['length']>0x1)_0x1538f5[_0x19b8c0]('MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x441587('0xa6')](_0x40a520['value']),null);else{const _0x378dc6='%'+_0x40a520['value']+'%';_0x1538f5[_0x19b8c0](_0x441587('0x68'),_0x378dc6,_0x378dc6,_0x378dc6);}}else _0x3b00c8=_[_0x441587('0x9b')](_0x538c1e,[_0x441587('0x30'),_0x441587('0xb2')]),_0x40a520[_0x441587('0x99')]=_0x441587('0xb2'),_0x2386fe=as[_0x441587('0x9f')](_0x1fed41,_0x3b00c8['type'],_0x40a520),_0x1538f5[_0x19b8c0](_0x2386fe[_0x441587('0xb3')],_0x2386fe[_0x441587('0x7a')][_0x441587('0xc5')],_0x2386fe[_0x441587('0x7a')][_0x441587('0xa8')]);break;case _0x441587('0x44'):{const _0x432a0c=_0x40a520[_0x441587('0x7a')][_0x441587('0x1e')](',')['map'](function(_0x485011){return Number(_0x485011);});_0x432a0c[_0x441587('0xd2')](function(_0xd770fa){const _0x319349=_0x441587;_0x1b8668['or'](_0x319349('0x62'),'%,'+_0xd770fa+',%');}),_0x453027=_[_0x441587('0x7f')](_0x453027,_0x432a0c);}break;case'User':_0x40a520[_0x441587('0xcd')]==='$substring'?_0x1538f5[_0x19b8c0]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x40a520[_0x441587('0x7a')]+'%',null):(_0x3b00c8=_['find'](_0x538c1e,['name',_0x441587('0x3e')]),_0x40a520[_0x441587('0x99')]=_0x441587('0x3e'),_0x2386fe=as[_0x441587('0x9f')](_0x1fed41,_0x3b00c8[_0x441587('0x4a')],_0x40a520),_0x1538f5[_0x19b8c0](_0x2386fe[_0x441587('0xb3')],_0x2386fe[_0x441587('0x7a')][_0x441587('0xc5')],_0x2386fe[_0x441587('0x7a')][_0x441587('0xa8')]));break;case _0x441587('0x26'):_0x2386fe=as['buildExpression']('me',null,_0x40a520),_0x1538f5[_0x19b8c0](_0x2386fe[_0x441587('0xb3')],_0x2386fe[_0x441587('0x7a')][_0x441587('0xc5')],_0x2386fe[_0x441587('0x7a')][_0x441587('0xa8')]);break;}else _0x2386fe=as[_0x441587('0x9f')](_0x1fed41,_0x3b00c8[_0x441587('0x4a')],_0x40a520),_0x1538f5[_0x19b8c0](_0x2386fe[_0x441587('0xb3')],_0x2386fe[_0x441587('0x7a')][_0x441587('0xc5')],_0x2386fe[_0x441587('0x7a')][_0x441587('0xa8')]);}}else{const _0x217304=_(_0x3d4bfc[_0x441587('0x77')])['keys']()[_0x441587('0x97')](function(_0x47f341){return _['some'](_0x538c1e,['name',_0x47f341])?_0x47f341:undefined;})[_0x441587('0xb6')]()[_0x441587('0x7a')]();!_[_0x441587('0x46')](_0x217304)&&_0x217304[_0x441587('0xd2')](function(_0x5570e7){const _0x5d37b8=_0x441587;if(_0x5570e7===_0x5d37b8('0x95'))_0x4952e8[_0x5d37b8('0xbb')](_0x5d37b8('0x43'),[]['concat'](_0x3d4bfc[_0x5d37b8('0x77')][_0x5570e7]));else{if(_0x5570e7===_0x5d37b8('0x5c')){const _0x591112=JSON['parse'](_0x3d4bfc['query'][_0x5570e7])[_0x5d37b8('0x11')],_0x92f0b1=JSON[_0x5d37b8('0x84')](_0x3d4bfc[_0x5d37b8('0x77')][_0x5570e7])['$lte'];_0x4952e8['where']('i.createdAt\x20BETWEEN\x20?\x20AND\x20?',_0x591112,_0x92f0b1);}else _0x3d4bfc[_0x5d37b8('0x77')][_0x5570e7]===_0x5d37b8('0xf')?_0x4952e8[_0x5d37b8('0xbb')]('i.'+_0x5570e7+_0x5d37b8('0x34')):_0x4952e8[_0x5d37b8('0xbb')]('i.'+_0x5570e7+_0x5d37b8('0x7b'),_0x3d4bfc[_0x5d37b8('0x77')][_0x5570e7]);}});_0x3d4bfc[_0x441587('0x77')]['read']&&(_0x3d4bfc[_0x441587('0x77')][_0x441587('0x91')]==0x1?_0x4952e8['having']('`unreadMessages`\x20=\x200'):_0x4952e8['having'](_0x441587('0xa0')));_0x3d4bfc['query'][_0x441587('0x4')]&&(_0x453027=_[_0x441587('0x1d')](_0x3d4bfc[_0x441587('0x77')][_0x441587('0x4')])?_0x3d4bfc[_0x441587('0x77')]['tag']:new Array(_0x3d4bfc[_0x441587('0x77')]['tag']),_0x453027[_0x441587('0xd2')](function(_0x426570){const _0x452cae=_0x441587;_0x1b8668['or'](_0x452cae('0x62'),'%,'+_0x426570+',%');}));if(_0x3d4bfc['query'][_0x441587('0x5f')]){const _0x40bdec=_0x3d4bfc[_0x441587('0x77')]['filter']['replace']('\x5c','\x5c\x5c')[_0x441587('0x17')]('\x27\x27',_0x441587('0xce'));if(qs[_0x441587('0xc6')](_0x40bdec))_0x1538f5['or'](_0x441587('0x3'),_0x40bdec+'%');else qs[_0x441587('0xb8')](_0x40bdec)?_0x1538f5['or']('c.email\x20LIKE\x20?',_0x40bdec+'%'):_0x1538f5['or'](_0x441587('0x5d'),qs[_0x441587('0xa6')](_0x40bdec))['or'](_0x441587('0x8e'),qs[_0x441587('0xa6')](_0x40bdec));}}_0x4952e8[_0x441587('0xbb')](_0x1538f5),_0x4952e8['group'](_0x441587('0x2d'));let _0x4dd29a={'type':db[_0x441587('0x41')][_0x441587('0x27')][_0x441587('0x14')],'raw':!![]};const _0x12be99=_0x4952e8[_0x441587('0xc')]();_0x12be99[_0x441587('0x99')](_0x441587('0x2d')),_0x12be99[_0x441587('0x99')](_0x441587('0xb5'),'unreadMessages'),_0x108d58[_0x441587('0x22')]&&_0x108d58['order']['forEach'](function(_0x1620e8){const _0x2b7208=_0x441587;_0x4952e8[_0x2b7208('0x22')]('i.'+_0x1620e8[0x0],_0x1620e8[0x1]===_0x2b7208('0x20')?![]:!![]);}),!_['isEmpty'](_0x453027)&&(_0x4952e8['having'](_0x1b8668),_0x12be99[_0x441587('0xbb')]('t.id\x20IN\x20?',_0x453027)),Promise[_0x441587('0xd0')]()[_0x441587('0x52')](function(){const _0xe20ea8=_0x441587;if(!_0x388437){if(_0x3d4bfc['query'][_0xe20ea8('0x95')]||_0x3d4bfc[_0xe20ea8('0x77')][_0xe20ea8('0x7e')])return;_0x12be99['where']('i.MailAccountId\x20IS\x20NOT\x20NULL'),_0x4952e8[_0xe20ea8('0xbb')](_0xe20ea8('0xa4'));return;}return _0x3d4bfc[_0xe20ea8('0x28')][_0xe20ea8('0x18')]({'attributes':['id'],'raw':!![]})[_0xe20ea8('0x52')](function(_0x440c34){const _0x8406ca=_0xe20ea8;_[_0x8406ca('0x46')](_0x440c34)?(_0x12be99[_0x8406ca('0xbb')](_0x8406ca('0xbe')),_0x4952e8['where']('i.MailAccountId\x20IS\x20NULL')):(_0x12be99[_0x8406ca('0xbb')](_0x8406ca('0x43'),_[_0x8406ca('0x97')](_0x440c34,'id')),_0x4952e8[_0x8406ca('0xbb')](_0x8406ca('0x43'),_[_0x8406ca('0x97')](_0x440c34,'id')));});})[_0x441587('0x52')](function(){const _0x322d8b=_0x441587;db[_0x322d8b('0xaf')]['query'](_0x12be99[_0x322d8b('0x2e')](),_0x4dd29a)['then'](function(_0x350172){const _0x592d75=_0x322d8b;_0x34068f['count']=_0x350172[_0x592d75('0x35')];if(_0x34068f[_0x592d75('0x40')]===0x0)return[];return db[_0x592d75('0xaf')][_0x592d75('0x77')](_0xfe058b['toString'](),_0x4dd29a)[_0x592d75('0x52')](function(_0x5240ab){const _0x34be73=_0x592d75;_0x1332f6=_[_0x34be73('0xad')](_0x5240ab,'id'),_0x4dd29a=_[_0x34be73('0xa3')](_0x4dd29a,{'model':db[_0x34be73('0xa1')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x3d4bfc[_0x34be73('0x77')]['fields']?_0x108d58[_0x34be73('0x2')][_0x34be73('0xd2')](function(_0x3c87d9){_0x4952e8['field']('i.'+_0x3c87d9);}):(_0x4952e8[_0x34be73('0x99')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x34be73('0x9c')),_0x4952e8['field'](_0x34be73('0x39'),_0x34be73('0x6')),_0x4952e8['field'](_0x34be73('0x49'),_0x34be73('0x5a')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x2d')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x74')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x71')),_0x4952e8['field']('i.closed'),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x6e')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x66')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x10')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0xab')),_0x4952e8['field']('i.subject'),_0x4952e8[_0x34be73('0x99')](_0x34be73('0xc4')),_0x4952e8['field'](_0x34be73('0xa5')),_0x4952e8['field'](_0x34be73('0x8b')),_0x4952e8['field'](_0x34be73('0x51')),_0x4952e8[_0x34be73('0x99')]('i.to'),_0x4952e8['field']('i.ContactId'),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x50')),_0x4952e8[_0x34be73('0x99')]('i.UserId'),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x45'),_0x34be73('0x5')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x7'),_0x34be73('0x6c')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x6f'),_0x34be73('0x16')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x87'),_0x34be73('0xc0')),_0x4952e8[_0x34be73('0x99')]('c.mobile',_0x34be73('0x15')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x65'),_0x34be73('0xcc')),_0x4952e8[_0x34be73('0x99')]('o.fullname',_0x34be73('0x82')),_0x4952e8[_0x34be73('0x99')](_0x34be73('0x3b'),_0x34be73('0x25')),_0x4952e8['field'](_0x34be73('0x2b'),_0x34be73('0xc8')));if(_0x108d58['limit'])_0x4952e8['limit'](_0x108d58[_0x34be73('0x21')]);if(_0x108d58[_0x34be73('0xa2')])_0x4952e8[_0x34be73('0xa2')](_0x108d58[_0x34be73('0xa2')]);return db[_0x34be73('0xaf')][_0x34be73('0x77')](_0x4952e8[_0x34be73('0x2e')](),_0x4dd29a);})[_0x592d75('0x52')](function(_0x855b3){const _0x16256a=_0x592d75;return _0x5a7810[_0x16256a('0xbb')](_0x16256a('0x94'),_['map'](_0x855b3,'id')),db[_0x16256a('0xaf')][_0x16256a('0x77')](_0x5a7810[_0x16256a('0x2e')](),_0x4dd29a)['then'](function(_0x57c931){const _0x3c2313=_0x16256a,_0x2077b1=_[_0x3c2313('0x32')](_0x57c931,_0x3c2313('0x98')),_0x3ee0d5=[];return db[_0x3c2313('0xd4')][_0x3c2313('0x37')]({'attributes':[_0x3c2313('0x31')],'raw':!![]})[_0x3c2313('0x52')](function(_0x21b70f){const _0x33a7a6=_0x3c2313,_0x2a57aa=_0x21b70f[_0x33a7a6('0x31')];return _0x855b3[_0x33a7a6('0xd2')](function(_0x59e519){const _0x4fff65=_0x33a7a6;_0x3ee0d5[_0x4fff65('0x12')](updateMailInteraction(_0x59e519,_0x1332f6,_0x2077b1,_0x2a57aa));}),Promise[_0x33a7a6('0x6a')](_0x3ee0d5);});});});})[_0x322d8b('0x52')](function(_0x1615bb){const _0xc51801=_0x322d8b;return _0x34068f[_0xc51801('0x96')]=_0x1615bb,_0x34068f;})[_0x322d8b('0x52')](respondWithFilteredResult(_0x5b14bc,_0x108d58));})['catch'](handleError(_0x5b14bc,null));},exports[_0x2d34c4('0x76')]=function(_0x30c984,_0x12c470){const _0x4f4461=_0x2d34c4;let _0x4fd24d={'raw':![],'where':{'id':_0x30c984[_0x4f4461('0x92')]['id']}};const _0x33730c={};return _0x33730c[_0x4f4461('0x2f')]=_[_0x4f4461('0x8d')](db[_0x4f4461('0xa1')]['rawAttributes']),_0x33730c[_0x4f4461('0x77')]=_[_0x4f4461('0x8d')](_0x30c984[_0x4f4461('0x77')]),_0x33730c[_0x4f4461('0x67')]=_[_0x4f4461('0x1f')](_0x33730c['model'],_0x33730c[_0x4f4461('0x77')]),_0x4fd24d['attributes']=_[_0x4f4461('0x1f')](_0x33730c[_0x4f4461('0x2f')],qs[_0x4f4461('0xb9')](_0x30c984[_0x4f4461('0x77')]['fields'])),_0x4fd24d[_0x4f4461('0x2')]=_0x4fd24d['attributes'][_0x4f4461('0x35')]?_0x4fd24d[_0x4f4461('0x2')]:_0x33730c[_0x4f4461('0x2f')],_0x30c984[_0x4f4461('0x77')][_0x4f4461('0x3f')]&&(_0x4fd24d[_0x4f4461('0xcf')]=[{'all':!![]}]),_0x4fd24d=_['merge']({},_0x4fd24d,_0x30c984[_0x4f4461('0x1')]),db['MailInteraction'][_0x4f4461('0x37')](_0x4fd24d)['then'](handleEntityNotFound(_0x12c470,null))[_0x4f4461('0x52')](respondWithResult(_0x12c470,null))[_0x4f4461('0x80')](handleError(_0x12c470,null));},exports[_0x2d34c4('0xd5')]=function(_0xb9cb37,_0x55afa5){const _0x4bccbb=_0x2d34c4;return db[_0x4bccbb('0xa1')][_0x4bccbb('0xd5')](_0xb9cb37['body'],{})[_0x4bccbb('0x52')](respondWithResult(_0x55afa5,0xc9))[_0x4bccbb('0x80')](handleError(_0x55afa5,null));},exports[_0x2d34c4('0x73')]=function(_0x515fa4,_0x5a982d){const _0xd7e06f=_0x2d34c4;return _0x515fa4['body']['id']&&delete _0x515fa4[_0xd7e06f('0x33')]['id'],db[_0xd7e06f('0xa1')]['findOne']({'where':{'id':_0x515fa4['params']['id']}})['then'](handleEntityNotFound(_0x5a982d,null))[_0xd7e06f('0x52')](saveUpdates(_0x515fa4[_0xd7e06f('0x33')],null))[_0xd7e06f('0x52')](respondWithResult(_0x5a982d,null))[_0xd7e06f('0x80')](handleError(_0x5a982d,null));},exports[_0x2d34c4('0x23')]=function(_0x12a147,_0x10d9d1){const _0x129145=_0x2d34c4;return db[_0x129145('0xa1')]['findOne']({'where':{'id':_0x12a147[_0x129145('0x92')]['id']}})[_0x129145('0x52')](handleEntityNotFound(_0x10d9d1,null))[_0x129145('0x52')](removeEntity(_0x10d9d1,null))[_0x129145('0x80')](handleError(_0x10d9d1,null));},exports[_0x2d34c4('0xbd')]=function(_0x1f9825,_0x11011b){const _0x18308f=_0x2d34c4;return db[_0x18308f('0xa1')][_0x18308f('0xbd')]()['then'](respondWithResult(_0x11011b,null))[_0x18308f('0x80')](handleError(_0x11011b,null));},exports['addMessage']=function(_0x38c3d7,_0x3a36c9){const _0x473111=_0x2d34c4;return db[_0x473111('0xb')]['findOne']({'where':{'id':_0x38c3d7[_0x473111('0x92')]['id']}})[_0x473111('0x52')](function(_0x33f83d){const _0x3f87d6=_0x473111;if(_0x33f83d)return _0x33f83d[_0x3f87d6('0x3a')](_0x38c3d7[_0x3f87d6('0x33')][_0x3f87d6('0x1c')],{'through':_[_0x3f87d6('0x8')](_0x38c3d7[_0x3f87d6('0x33')],['ids','id'])});})[_0x473111('0x52')](respondWithResult(_0x3a36c9,null))['catch'](handleError(_0x3a36c9,null));},exports[_0x2d34c4('0x29')]=function(_0x707e54,_0x3c59af){const _0x3c5ec2=_0x2d34c4;let _0x4c862d={'raw':![],'where':{}};const _0x6c24e8={},_0x19e589={'count':0x0,'rows':[]};return db[_0x3c5ec2('0xa1')][_0x3c5ec2('0x37')]({'where':{'id':_0x707e54[_0x3c5ec2('0x92')]['id']}})[_0x3c5ec2('0x52')](handleEntityNotFound(_0x3c59af,null))['then'](function(_0x3b2ffa){const _0x58f5a7=_0x3c5ec2;if(_0x3b2ffa){_0x6c24e8[_0x58f5a7('0x2f')]=_[_0x58f5a7('0x8d')](db['MailMessage'][_0x58f5a7('0x5b')]),_0x6c24e8[_0x58f5a7('0x77')]=_[_0x58f5a7('0x8d')](_0x707e54[_0x58f5a7('0x77')]),_0x6c24e8[_0x58f5a7('0x67')]=_[_0x58f5a7('0x1f')](_0x6c24e8[_0x58f5a7('0x2f')],_0x6c24e8[_0x58f5a7('0x77')]),_0x4c862d[_0x58f5a7('0x2')]=_['intersection'](_0x6c24e8[_0x58f5a7('0x2f')],qs['fields'](_0x707e54[_0x58f5a7('0x77')]['fields'])),_0x4c862d[_0x58f5a7('0x2')]=_0x4c862d[_0x58f5a7('0x2')]['length']?_0x4c862d[_0x58f5a7('0x2')]:_0x6c24e8[_0x58f5a7('0x2f')];typeof _0x707e54['query'][_0x58f5a7('0x1a')]==='undefined'&&(_0x4c862d['limit']=qs[_0x58f5a7('0x21')](_0x707e54['query'][_0x58f5a7('0x21')]),_0x4c862d[_0x58f5a7('0xa2')]=qs[_0x58f5a7('0xa2')](_0x707e54[_0x58f5a7('0x77')][_0x58f5a7('0xa2')]));_0x4c862d[_0x58f5a7('0x22')]=qs[_0x58f5a7('0x1b')](_0x707e54[_0x58f5a7('0x77')]['sort']),_0x4c862d['where']=qs[_0x58f5a7('0x67')](_[_0x58f5a7('0x38')](_0x707e54[_0x58f5a7('0x77')],_0x6c24e8[_0x58f5a7('0x67')])),_0x4c862d[_0x58f5a7('0xbb')]['MailInteractionId']=_0x3b2ffa['id'];_0x707e54[_0x58f5a7('0x77')]['filter']&&(_0x4c862d[_0x58f5a7('0xbb')]=_[_0x58f5a7('0xa3')](_0x4c862d['where'],{[Op['or']]:_[_0x58f5a7('0x97')](_0x4c862d['attributes'],function(_0x55596b){const _0x1187a1=_0x58f5a7,_0x592898={};return _0x592898[_0x55596b]={[Op[_0x1187a1('0x79')]]:'%'+_0x707e54[_0x1187a1('0x77')][_0x1187a1('0x5f')]+'%'},_0x592898;})}));if(_0x707e54['query'][_0x58f5a7('0x11')]){const _0x1b8d36=_0x707e54[_0x58f5a7('0x77')][_0x58f5a7('0x11')][_0x58f5a7('0x1e')](','),_0xf98d8e={};_0xf98d8e[_0x1b8d36[0x0]]={[Op[_0x58f5a7('0x13')]]:moment(_0x1b8d36[0x1])[_0x58f5a7('0x54')](_0x58f5a7('0x9e'))},_0x4c862d[_0x58f5a7('0xbb')]=_[_0x58f5a7('0xa3')](_0x4c862d[_0x58f5a7('0xbb')],_0xf98d8e);}return _0x4c862d=_[_0x58f5a7('0xa3')]({},_0x4c862d,_0x707e54[_0x58f5a7('0x1')]),db[_0x58f5a7('0xb')][_0x58f5a7('0x40')]({'where':_0x4c862d[_0x58f5a7('0xbb')]})['then'](function(_0xb118dd){const _0x1ea28c=_0x58f5a7;return _0x19e589['count']=_0xb118dd,_0x707e54['query'][_0x1ea28c('0x3f')]&&(_0x4c862d['include']=[{'all':!![]}]),db[_0x1ea28c('0xb')][_0x1ea28c('0x93')](_0x4c862d);})['then'](function(_0x1fcba){return _0x19e589['rows']=_0x1fcba,_0x19e589;});}})['then'](respondWithFilteredResult(_0x3c59af,_0x4c862d))[_0x3c5ec2('0x80')](handleError(_0x3c59af,null));},exports[_0x2d34c4('0x53')]=function(_0x4053ca,_0x285c92){const _0x1b9375=_0x2d34c4;return db[_0x1b9375('0xa1')]['findOne']({'where':{'id':_0x4053ca[_0x1b9375('0x92')]['id']}})[_0x1b9375('0x52')](function(_0x5c4283){const _0xf185e4=_0x1b9375;if(_0x5c4283)return _0x5c4283['setTags'](_0x4053ca[_0xf185e4('0x33')]['ids'],{'through':_[_0xf185e4('0x8')](_0x4053ca[_0xf185e4('0x33')],[_0xf185e4('0x1c'),'id'])})[_0xf185e4('0x52')](function(){const _0x2dca8f=_0xf185e4;return db['Tag'][_0x2dca8f('0x93')]({'attributes':['id',_0x2dca8f('0x30'),_0x2dca8f('0x61')],'where':{'id':_0x4053ca[_0x2dca8f('0x33')][_0x2dca8f('0x1c')]}});})[_0xf185e4('0x52')](function(_0x1ca3cc){const _0xf27711=_0xf185e4;return socket[_0xf27711('0x81')]('mailInteractionTags:save',{'id':Number(_0x4053ca[_0xf27711('0x92')]['id']),'tags':_0x1ca3cc||[]}),{'id':Number(_0x4053ca[_0xf27711('0x92')]['id']),'tags':_0x1ca3cc||[]};});})['then'](respondWithResult(_0x285c92,null))[_0x1b9375('0x80')](handleError(_0x285c92,null));},exports[_0x2d34c4('0x64')]=function(_0xa4aa93,_0x1a0be2){const _0x3ce1e8=_0x2d34c4;return db[_0x3ce1e8('0xa1')][_0x3ce1e8('0x37')]({'where':{'id':_0xa4aa93[_0x3ce1e8('0x92')]['id']}})[_0x3ce1e8('0x52')](handleEntityNotFound(_0x1a0be2,null))['then'](function(_0x11a2f4){const _0x180af0=_0x3ce1e8;if(_0x11a2f4)return _0x11a2f4['removeTags'](_0xa4aa93['query'][_0x180af0('0x1c')]);})[_0x3ce1e8('0x52')](respondWithStatusCode(_0x1a0be2,null))[_0x3ce1e8('0x80')](handleError(_0x1a0be2,null));},exports[_0x2d34c4('0x4e')]=function(_0x3fc8cb,_0x4a5cf8){const _0x54f566=_0x2d34c4,_0x569fb7=moment()[_0x54f566('0x7c')]()[_0x54f566('0x2e')](),_0x39ce9d=path[_0x54f566('0x59')](config['root'],_0x54f566('0xc9'),'tmp'),_0x23815c=path[_0x54f566('0x59')](config[_0x54f566('0xc1')],'server',_0x54f566('0xc9'),'attachments'),_0x299ad4=path[_0x54f566('0x59')](_0x39ce9d,_0x569fb7),_0x5e1209=util[_0x54f566('0x54')]('transcript-%d-%s.zip',_0x3fc8cb[_0x54f566('0x92')]['id'],_0x569fb7),_0x47c5cb=path['join'](_0x39ce9d,_0x5e1209),_0x36400e=[];_0x3fc8cb[_0x54f566('0x77')]['attachments']&&_0x36400e['push']({'model':db['Attachment'],'as':_0x54f566('0x19'),'raw':!![]});const _0x384d64=[{'model':db[_0x54f566('0xb')],'as':_0x54f566('0x75'),'attributes':['id',_0x54f566('0x33'),_0x54f566('0x78'),'to','cc',_0x54f566('0x86'),_0x54f566('0x8a'),_0x54f566('0x5c')],'where':{'secret':![]},'order':qs[_0x54f566('0x1b')]('id'),'include':_0x36400e}];return db['MailInteraction'][_0x54f566('0x37')]({'where':{'id':_0x3fc8cb['params']['id']},'include':_0x384d64})['then'](handleEntityNotFound(_0x4a5cf8,null))[_0x54f566('0x52')](function(_0x33bc63){const _0x2b27f8=_0x54f566;if(_0x33bc63&&_0x33bc63[_0x2b27f8('0x75')]){const _0x32940f=_0x33bc63[_0x2b27f8('0x48')]({'plain':!![]});return fs['mkdirSync'](_0x299ad4),Promise[_0x2b27f8('0x3d')](_0x32940f[_0x2b27f8('0x75')],function(_0x40735f,_0xea76a5){const _0x3c12da=_0x2b27f8,_0x8ccf7={'from':_0x40735f[_0x3c12da('0x78')],'to':_0x40735f['to'],'subject':_0x40735f[_0x3c12da('0x8a')],'html':_0x40735f[_0x3c12da('0x33')],'headers':{'Date':moment(_0x40735f[_0x3c12da('0x5c')])['format']('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x40735f['cc']&&(_0x8ccf7[_0x3c12da('0x70')]['Cc']=_0x40735f['cc']),_0x40735f[_0x3c12da('0x86')]&&(_0x8ccf7[_0x3c12da('0x70')]['Bcc']=_0x40735f[_0x3c12da('0x86')]),new Promise(function(_0x1ab83b,_0x34eacb){const _0xf162ae=_0x3c12da;if(_0x40735f['Attachments'])for(let _0x40f1ce=0x0;_0x40f1ce<_0x40735f[_0xf162ae('0x19')][_0xf162ae('0x35')];_0x40f1ce++){const _0x2c31f0=_0x40735f['Attachments'][_0x40f1ce],_0x103384=path[_0xf162ae('0x59')](_0x23815c,_0x2c31f0[_0xf162ae('0xd1')]);fs[_0xf162ae('0x24')](_0x103384)&&_0x8ccf7['attachments'][_0xf162ae('0x12')]({'name':_0x2c31f0[_0xf162ae('0x30')],'contentType':_0x2c31f0[_0xf162ae('0x4a')],'data':fs[_0xf162ae('0xc7')](_0x103384)});}emlformat[_0xf162ae('0xb4')](_0x8ccf7,function(_0x5d9b39,_0x3b5e38){const _0x1829e2=_0xf162ae;if(_0x5d9b39)return _0x34eacb(_0x5d9b39);return fs[_0x1829e2('0xbc')](path['join'](_0x299ad4,util['format']('message%d.eml',_0xea76a5)),_0x3b5e38),_0x1ab83b(_0x3b5e38);});});})[_0x2b27f8('0x52')](function(){const _0x101117=_0x2b27f8;return new Promise(function(_0x363e2b,_0x5c8935){zipdir(_0x299ad4,{'saveTo':_0x47c5cb},function(_0x339d5f,_0x4f7c7d){if(_0x339d5f)return _0x5c8935(_0x339d5f);return _0x363e2b(_0x4f7c7d);});})[_0x101117('0x52')](function(){return new Promise(function(_0x477fa8,_0x583e57){rimraf(_0x299ad4,function(_0x18179c){if(_0x18179c)_0x583e57(_0x18179c);return _0x477fa8();});});})['then'](function(){const _0x32630b=_0x101117;return _0x4a5cf8[_0x32630b('0x4e')](_0x47c5cb,_0x5e1209,function(_0x2b0448){const _0x884ff4=_0x32630b;_0x2b0448?console[_0x884ff4('0xba')](_0x884ff4('0xa9'),_0x2b0448):fs[_0x884ff4('0x4d')](_0x47c5cb);});});});}else return _0x4a5cf8[_0x2b27f8('0x2c')](0xc8);})[_0x54f566('0x80')](handleError(_0x4a5cf8,null));}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.events.js b/server/api/mailInteraction/mailInteraction.events.js index 5ba13d9..1972a15 100644 --- a/server/api/mailInteraction/mailInteraction.events.js +++ b/server/api/mailInteraction/mailInteraction.events.js @@ -1 +1 @@ -const a407_0x302f=['findAll','Users','undefined','events','../../mysqldb','getUsers','then','MailInteraction','setMaxListeners','length','catch','MailMessage','exports','map','remove','setDataValue','update','unreadMessages','emit'];(function(_0x1245d2,_0x302f6a){const _0x52d1d1=function(_0x283650){while(--_0x283650){_0x1245d2['push'](_0x1245d2['shift']());}};_0x52d1d1(++_0x302f6a);}(a407_0x302f,0x137));const a407_0x52d1=function(_0x1245d2,_0x302f6a){_0x1245d2=_0x1245d2-0x0;let _0x52d1d1=a407_0x302f[_0x1245d2];return _0x52d1d1;};const _0x4e78df=a407_0x52d1;'use strict';const EventEmitter=require(_0x4e78df('0xf')),MailInteraction=require(_0x4e78df('0x10'))['db'][_0x4e78df('0x0')],MailMessage=require(_0x4e78df('0x10'))['db'][_0x4e78df('0x4')],MailInteractionEvents=new EventEmitter();MailInteractionEvents[_0x4e78df('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x4e78df('0x9'),'afterDestroy':_0x4e78df('0x7')};function emitEvent(_0x283650){return function(_0x27aec1){const _0x24412a=a407_0x52d1;_0x27aec1[_0x24412a('0x11')]({'attributes':['id'],'raw':!![]})[_0x24412a('0x12')](function(_0x48c7c7){const _0x336b6e=_0x24412a;return _0x27aec1['setDataValue'](_0x336b6e('0xd'),_0x48c7c7[_0x336b6e('0x6')](function(_0x40489d){return{'id':_0x40489d['id']};})),MailMessage[_0x336b6e('0xc')]({'where':{'MailInteractionId':_0x27aec1['id'],'direction':'in','read':![]},'raw':!![]});})[_0x24412a('0x12')](function(_0xf0067f){const _0x232827=_0x24412a;_0x27aec1[_0x232827('0x8')](_0x232827('0xa'),_0xf0067f[_0x232827('0x2')]),MailInteractionEvents[_0x232827('0xb')](_0x283650+':'+_0x27aec1['id'],_0x27aec1),MailInteractionEvents[_0x232827('0xb')](_0x283650,_0x27aec1);})[_0x24412a('0x3')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x4e78df('0xe')){const event=events[e];MailInteraction['addHook'](e,emitEvent(event));}}module[_0x4e78df('0x5')]=MailInteractionEvents; \ No newline at end of file +const a407_0x48c1=['then','setMaxListeners','Users','../../mysqldb','length','unreadMessages','exports','MailInteraction','addHook','remove','emit','save','events','setDataValue','MailMessage','undefined','findAll','map'];(function(_0x453b2c,_0x48c1f5){const _0x4fd138=function(_0x1a11c0){while(--_0x1a11c0){_0x453b2c['push'](_0x453b2c['shift']());}};_0x4fd138(++_0x48c1f5);}(a407_0x48c1,0x148));const a407_0x4fd1=function(_0x453b2c,_0x48c1f5){_0x453b2c=_0x453b2c-0x0;let _0x4fd138=a407_0x48c1[_0x453b2c];return _0x4fd138;};const _0xbb4880=a407_0x4fd1;'use strict';const EventEmitter=require(_0xbb4880('0x8')),MailInteraction=require(_0xbb4880('0x11'))['db'][_0xbb4880('0x3')],MailMessage=require(_0xbb4880('0x11'))['db'][_0xbb4880('0xa')],MailInteractionEvents=new EventEmitter();MailInteractionEvents[_0xbb4880('0xf')](0x0);const events={'afterCreate':_0xbb4880('0x7'),'afterUpdate':'update','afterDestroy':_0xbb4880('0x5')};function emitEvent(_0x1a11c0){return function(_0x5541c5){const _0x5382ef=a407_0x4fd1;_0x5541c5['getUsers']({'attributes':['id'],'raw':!![]})[_0x5382ef('0xe')](function(_0x2e73ec){const _0x3cb98e=_0x5382ef;return _0x5541c5[_0x3cb98e('0x9')](_0x3cb98e('0x10'),_0x2e73ec[_0x3cb98e('0xd')](function(_0x3455ea){return{'id':_0x3455ea['id']};})),MailMessage[_0x3cb98e('0xc')]({'where':{'MailInteractionId':_0x5541c5['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x9fa40e){const _0x52914e=_0x5382ef;_0x5541c5[_0x52914e('0x9')](_0x52914e('0x1'),_0x9fa40e[_0x52914e('0x0')]),MailInteractionEvents[_0x52914e('0x6')](_0x1a11c0+':'+_0x5541c5['id'],_0x5541c5),MailInteractionEvents['emit'](_0x1a11c0,_0x5541c5);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!==_0xbb4880('0xb')){const event=events[e];MailInteraction[_0xbb4880('0x4')](e,emitEvent(event));}}module[_0xbb4880('0x2')]=MailInteractionEvents; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.model.js b/server/api/mailInteraction/mailInteraction.model.js index a9883d9..000161d 100644 --- a/server/api/mailInteraction/mailInteraction.model.js +++ b/server/api/mailInteraction/mailInteraction.model.js @@ -1 +1 @@ -const a408_0x1f19=['utf8mb4_unicode_ci','YYYY-MM-DD\x20HH:mm:ss','format','subject','update','substatusAt','MailMessage','moment','substatus','closed','MailInteraction','mail_interactions','closedAt','define','changed','FULLTEXT','exports','utf8mb4','fti_mail_interactions','models','catch'];(function(_0x48548e,_0x1f191b){const _0x33a875=function(_0x5b64d9){while(--_0x5b64d9){_0x48548e['push'](_0x48548e['shift']());}};_0x33a875(++_0x1f191b);}(a408_0x1f19,0x13e));const a408_0x33a8=function(_0x48548e,_0x1f191b){_0x48548e=_0x48548e-0x0;let _0x33a875=a408_0x1f19[_0x48548e];return _0x33a875;};const _0x581f34=a408_0x33a8;'use strict';const moment=require(_0x581f34('0x4')),attributes=require('./mailInteraction.attributes');module[_0x581f34('0xd')]=function(_0x5b64d9){const _0x35a598=_0x581f34,_0x330b62=_0x5b64d9[_0x35a598('0x10')],_0x5f1da0=_0x5b64d9[_0x35a598('0xa')](_0x35a598('0x7'),attributes,{'tableName':_0x35a598('0x8'),'paranoid':![],'indexes':[{'name':_0x35a598('0xf'),'fields':[_0x35a598('0x0'),'to'],'type':_0x35a598('0xc')}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x3f25e1){const _0x153730=_0x35a598;_0x3f25e1[_0x153730('0x5')]&&(_0x3f25e1[_0x153730('0x2')]=moment()[_0x153730('0x14')](_0x153730('0x13'))),_0x3f25e1['closed']&&(_0x3f25e1[_0x153730('0x9')]=moment()[_0x153730('0x14')]('YYYY-MM-DD\x20HH:mm:ss'));},'beforeUpdate':function(_0x2c0ce5){const _0x578af4=_0x35a598;_0x2c0ce5[_0x578af4('0xb')](_0x578af4('0x5'))&&(_0x2c0ce5[_0x578af4('0x2')]=_0x2c0ce5[_0x578af4('0x5')]?moment()[_0x578af4('0x14')](_0x578af4('0x13')):null),_0x2c0ce5[_0x578af4('0xb')](_0x578af4('0x6'))&&(_0x2c0ce5[_0x578af4('0x9')]=moment()[_0x578af4('0x14')](_0x578af4('0x13')),_0x2c0ce5[_0x578af4('0x5')]=null,_0x2c0ce5[_0x578af4('0x2')]=null);},'afterUpdate':function(_0x113bb5){const _0x390868=_0x35a598,_0x2984cb=_0x113bb5['get']({'plain':!![]});if(_0x2984cb['closed'])return _0x330b62[_0x390868('0x3')][_0x390868('0x1')]({'read':!![]},{'where':{'MailInteractionId':_0x2984cb['id']}})[_0x390868('0x11')](function(_0x289c01){return _0x289c01;});}},'charset':_0x35a598('0xe'),'collate':_0x35a598('0x12')});return _0x5f1da0;}; \ No newline at end of file +const a408_0x4d2c=['closedAt','YYYY-MM-DD\x20HH:mm:ss','changed','substatus','exports','utf8mb4','get','subject','mail_interactions','format','substatusAt','models','./mailInteraction.attributes','fti_mail_interactions','MailMessage','moment'];(function(_0xacf789,_0x4d2c55){const _0x1728e3=function(_0x5e01d3){while(--_0x5e01d3){_0xacf789['push'](_0xacf789['shift']());}};_0x1728e3(++_0x4d2c55);}(a408_0x4d2c,0x175));const a408_0x1728=function(_0xacf789,_0x4d2c55){_0xacf789=_0xacf789-0x0;let _0x1728e3=a408_0x4d2c[_0xacf789];return _0x1728e3;};const _0x116127=a408_0x1728;'use strict';const moment=require(_0x116127('0xa')),attributes=require(_0x116127('0x7'));module[_0x116127('0xf')]=function(_0x5e01d3){const _0x1cd876=_0x116127,_0x3bb357=_0x5e01d3[_0x1cd876('0x6')],_0xc0fcc9=_0x5e01d3['define']('MailInteraction',attributes,{'tableName':_0x1cd876('0x3'),'paranoid':![],'indexes':[{'name':_0x1cd876('0x8'),'fields':[_0x1cd876('0x2'),'to'],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x5c98bd){const _0x52e0e6=_0x1cd876;_0x5c98bd[_0x52e0e6('0xe')]&&(_0x5c98bd[_0x52e0e6('0x5')]=moment()[_0x52e0e6('0x4')](_0x52e0e6('0xc'))),_0x5c98bd['closed']&&(_0x5c98bd[_0x52e0e6('0xb')]=moment()[_0x52e0e6('0x4')](_0x52e0e6('0xc')));},'beforeUpdate':function(_0x107d5d){const _0x3ecd8c=_0x1cd876;_0x107d5d['changed'](_0x3ecd8c('0xe'))&&(_0x107d5d[_0x3ecd8c('0x5')]=_0x107d5d[_0x3ecd8c('0xe')]?moment()['format']('YYYY-MM-DD\x20HH:mm:ss'):null),_0x107d5d[_0x3ecd8c('0xd')]('closed')&&(_0x107d5d[_0x3ecd8c('0xb')]=moment()['format'](_0x3ecd8c('0xc')),_0x107d5d[_0x3ecd8c('0xe')]=null,_0x107d5d[_0x3ecd8c('0x5')]=null);},'afterUpdate':function(_0x5d7827){const _0xbeaecd=_0x1cd876,_0xaae3a5=_0x5d7827[_0xbeaecd('0x1')]({'plain':!![]});if(_0xaae3a5['closed'])return _0x3bb357[_0xbeaecd('0x9')]['update']({'read':!![]},{'where':{'MailInteractionId':_0xaae3a5['id']}})['catch'](function(_0x5360b5){return _0x5360b5;});}},'charset':_0x1cd876('0x0'),'collate':'utf8mb4_unicode_ci'});return _0xc0fcc9;}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.rpc.js b/server/api/mailInteraction/mailInteraction.rpc.js index 8badaa8..5127460 100644 --- a/server/api/mailInteraction/mailInteraction.rpc.js +++ b/server/api/mailInteraction/mailInteraction.rpc.js @@ -1 +1 @@ -const a409_0x108e=['body','update','error','limit','findOne','ids','catch','stringify','rpc','AddTags','options','./mailInteraction.socket','omit','debug','register','message','UpdateMailInteraction','raw','lodash','../../mysqldb','../../config/logger','addTags','where','MailInteraction','then'];(function(_0x36d591,_0x108e30){const _0x5730bf=function(_0x5c6737){while(--_0x5c6737){_0x36d591['push'](_0x36d591['shift']());}};_0x5730bf(++_0x108e30);}(a409_0x108e,0x165));const a409_0x5730=function(_0x36d591,_0x108e30){_0x36d591=_0x36d591-0x0;let _0x5730bf=a409_0x108e[_0x36d591];return _0x5730bf;};const _0x12471d=a409_0x5730;'use strict';const _=require(_0x12471d('0xb')),db=require(_0x12471d('0xc'))['db'],logger=require(_0x12471d('0xd'))(_0x12471d('0x1')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x12471d('0x4'))[_0x12471d('0x7')](socket),exports['UpdateMailInteraction']=function(_0x5c6737){const _0x245830=this;return new Promise(function(_0x2619f2,_0x57330b){const _0x13c5ad=a409_0x5730;return db[_0x13c5ad('0x10')][_0x13c5ad('0x13')](_0x5c6737[_0x13c5ad('0x12')],{'raw':_0x5c6737['options']?_0x5c6737['options'][_0x13c5ad('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5c6737[_0x13c5ad('0x3')]?_0x5c6737['options'][_0x13c5ad('0xf')]||null:null,'attributes':_0x5c6737[_0x13c5ad('0x3')]?_0x5c6737['options']['attributes']||null:null,'limit':_0x5c6737[_0x13c5ad('0x3')]?_0x5c6737[_0x13c5ad('0x3')][_0x13c5ad('0x15')]||null:null})[_0x13c5ad('0x11')](function(_0x34bcc3){const _0x49f06a=_0x13c5ad;logger['info'](_0x49f06a('0x9'),_0x5c6737),logger[_0x49f06a('0x6')](_0x49f06a('0x9'),_0x5c6737,JSON[_0x49f06a('0x0')](_0x34bcc3)),_0x2619f2(_0x34bcc3);})['catch'](function(_0xd64819){const _0x24d6bc=_0x13c5ad;logger[_0x24d6bc('0x14')](_0x24d6bc('0x9'),_0xd64819[_0x24d6bc('0x8')],_0x5c6737),_0x57330b(_0x245830[_0x24d6bc('0x14')](0x1f4,_0xd64819[_0x24d6bc('0x8')]));});});},exports['AddTagsToMailInteraction']=function(_0x36bae2){const _0x5b470f=this;return new Promise(function(_0x5ef4b4,_0x16f85d){const _0xbb0d64=a409_0x5730;return db['MailInteraction'][_0xbb0d64('0x16')]({'where':_0x36bae2['options']?_0x36bae2['options'][_0xbb0d64('0xf')]||null:null})[_0xbb0d64('0x11')](function(_0x31ff7e){const _0x339776=_0xbb0d64;if(_0x31ff7e)return _0x31ff7e[_0x339776('0xe')](_0x36bae2[_0x339776('0x12')][_0x339776('0x17')],{'through':_[_0x339776('0x5')](_0x36bae2[_0x339776('0x12')],[_0x339776('0x17'),'id'])});})[_0xbb0d64('0x11')](function([_0x9eca05]){const _0x3332f7=_0xbb0d64;logger['info'](_0x3332f7('0x2'),_0x36bae2),logger['debug'](_0x3332f7('0x2'),_0x36bae2,JSON[_0x3332f7('0x0')](_0x9eca05)),_0x5ef4b4(_0x9eca05);})[_0xbb0d64('0x18')](function(_0x54a2e8){const _0x2893b0=_0xbb0d64;logger[_0x2893b0('0x14')](_0x2893b0('0x2'),_0x54a2e8[_0x2893b0('0x8')],_0x36bae2),_0x16f85d(_0x5b470f['error'](0x1f4,_0x54a2e8[_0x2893b0('0x8')]));});});}; \ No newline at end of file +const a409_0x4358=['AddTagsToMailInteraction','raw','info','where','addTags','error','message','stringify','catch','findOne','UpdateMailInteraction','limit','../../config/logger','rpc','update','../../rediscache','../../mysqldb','then','lodash','options','AddTags','MailInteraction','ids','./mailInteraction.socket','debug','body'];(function(_0x420189,_0x435858){const _0x274b97=function(_0x4a5aff){while(--_0x4a5aff){_0x420189['push'](_0x420189['shift']());}};_0x274b97(++_0x435858);}(a409_0x4358,0x1cb));const a409_0x274b=function(_0x420189,_0x435858){_0x420189=_0x420189-0x0;let _0x274b97=a409_0x4358[_0x420189];return _0x274b97;};const _0x599eda=a409_0x274b;'use strict';const _=require(_0x599eda('0x1')),db=require(_0x599eda('0x19'))['db'],logger=require(_0x599eda('0x15'))(_0x599eda('0x16')),{getSocket}=require(_0x599eda('0x18')),socket=getSocket();require(_0x599eda('0x6'))['register'](socket),exports[_0x599eda('0x13')]=function(_0x4a5aff){const _0x1b38cc=this;return new Promise(function(_0x707228,_0x220d91){const _0x200b18=a409_0x274b;return db[_0x200b18('0x4')][_0x200b18('0x17')](_0x4a5aff['body'],{'raw':_0x4a5aff[_0x200b18('0x2')]?_0x4a5aff[_0x200b18('0x2')][_0x200b18('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4a5aff[_0x200b18('0x2')]?_0x4a5aff['options'][_0x200b18('0xc')]||null:null,'attributes':_0x4a5aff[_0x200b18('0x2')]?_0x4a5aff['options']['attributes']||null:null,'limit':_0x4a5aff['options']?_0x4a5aff[_0x200b18('0x2')][_0x200b18('0x14')]||null:null})['then'](function(_0x181ca8){const _0x317c43=_0x200b18;logger[_0x317c43('0xb')](_0x317c43('0x13'),_0x4a5aff),logger[_0x317c43('0x7')](_0x317c43('0x13'),_0x4a5aff,JSON[_0x317c43('0x10')](_0x181ca8)),_0x707228(_0x181ca8);})[_0x200b18('0x11')](function(_0x448be0){const _0x1b982b=_0x200b18;logger[_0x1b982b('0xe')](_0x1b982b('0x13'),_0x448be0['message'],_0x4a5aff),_0x220d91(_0x1b38cc['error'](0x1f4,_0x448be0[_0x1b982b('0xf')]));});});},exports[_0x599eda('0x9')]=function(_0x3184a5){const _0x55fd6b=this;return new Promise(function(_0x399ee7,_0x1e9748){const _0x4c9487=a409_0x274b;return db['MailInteraction'][_0x4c9487('0x12')]({'where':_0x3184a5[_0x4c9487('0x2')]?_0x3184a5[_0x4c9487('0x2')][_0x4c9487('0xc')]||null:null})[_0x4c9487('0x0')](function(_0x383a6b){const _0x4d59b0=_0x4c9487;if(_0x383a6b)return _0x383a6b[_0x4d59b0('0xd')](_0x3184a5[_0x4d59b0('0x8')]['ids'],{'through':_['omit'](_0x3184a5[_0x4d59b0('0x8')],[_0x4d59b0('0x5'),'id'])});})[_0x4c9487('0x0')](function([_0x46cb5f]){const _0x1b0147=_0x4c9487;logger[_0x1b0147('0xb')](_0x1b0147('0x3'),_0x3184a5),logger['debug'](_0x1b0147('0x3'),_0x3184a5,JSON[_0x1b0147('0x10')](_0x46cb5f)),_0x399ee7(_0x46cb5f);})['catch'](function(_0xa52f7c){const _0x4eb42c=_0x4c9487;logger[_0x4eb42c('0xe')](_0x4eb42c('0x3'),_0xa52f7c[_0x4eb42c('0xf')],_0x3184a5),_0x1e9748(_0x55fd6b[_0x4eb42c('0xe')](0x1f4,_0xa52f7c[_0x4eb42c('0xf')]));});});}; \ No newline at end of file diff --git a/server/api/mailInteraction/mailInteraction.socket.js b/server/api/mailInteraction/mailInteraction.socket.js index 12655e8..3e86fdf 100644 --- a/server/api/mailInteraction/mailInteraction.socket.js +++ b/server/api/mailInteraction/mailInteraction.socket.js @@ -1 +1 @@ -const a410_0x421d=['update','remove','register','./mailInteraction.events'];(function(_0x145144,_0x421d3e){const _0x276544=function(_0x18a025){while(--_0x18a025){_0x145144['push'](_0x145144['shift']());}};_0x276544(++_0x421d3e);}(a410_0x421d,0x129));const a410_0x2765=function(_0x145144,_0x421d3e){_0x145144=_0x145144-0x0;let _0x276544=a410_0x421d[_0x145144];return _0x276544;};const _0xbffda8=a410_0x2765;'use strict';const MailInteractionEvents=require(_0xbffda8('0x2')),events=['save',_0xbffda8('0x0'),_0xbffda8('0x3')];function createListener(_0x18a025,_0x5c36a3){return function(_0x5b27c9){_0x5c36a3['emit'](_0x18a025,_0x5b27c9);};}exports[_0xbffda8('0x1')]=function(_0x253340){for(let _0x3bdd74=0x0,_0x172e4e=events['length'];_0x3bdd74<_0x172e4e;_0x3bdd74++){const _0x189504=events[_0x3bdd74],_0x344e95=createListener('mailInteraction:'+_0x189504,_0x253340);MailInteractionEvents['on'](_0x189504,_0x344e95);}}; \ No newline at end of file +const a410_0x1377=['./mailInteraction.events','length','save','remove','emit'];(function(_0x2efdd7,_0x137758){const _0x2300c3=function(_0x20a3a1){while(--_0x20a3a1){_0x2efdd7['push'](_0x2efdd7['shift']());}};_0x2300c3(++_0x137758);}(a410_0x1377,0x14f));const a410_0x2300=function(_0x2efdd7,_0x137758){_0x2efdd7=_0x2efdd7-0x0;let _0x2300c3=a410_0x1377[_0x2efdd7];return _0x2300c3;};const _0x1d3a01=a410_0x2300;'use strict';const MailInteractionEvents=require(_0x1d3a01('0x0')),events=[_0x1d3a01('0x2'),_0x1d3a01('0x3'),'update'];function createListener(_0x20a3a1,_0x5cacdb){return function(_0x538a4b){const _0x32548c=a410_0x2300;_0x5cacdb[_0x32548c('0x4')](_0x20a3a1,_0x538a4b);};}exports['register']=function(_0x471a02){const _0x4b96f8=_0x1d3a01;for(let _0x3ea593=0x0,_0x33bae7=events[_0x4b96f8('0x1')];_0x3ea593<_0x33bae7;_0x3ea593++){const _0x918c80=events[_0x3ea593],_0x321fd4=createListener('mailInteraction:'+_0x918c80,_0x471a02);MailInteractionEvents['on'](_0x918c80,_0x321fd4);}}; \ No newline at end of file diff --git a/server/api/mailMessage/index.js b/server/api/mailMessage/index.js index 9d9699b..64c8490 100644 --- a/server/api/mailMessage/index.js +++ b/server/api/mailMessage/index.js @@ -1 +1 @@ -const a411_0x3f54=['../../components/interaction/service','create','get','tracked','update','isAuthenticated','./mailMessage.controller','express','/describe','/:id/download','../../components/auth/service','describe','put','post','delete','/:id/reject','download','exports','reject'];(function(_0x5a0184,_0x3f5435){const _0x13c1f7=function(_0x31a284){while(--_0x31a284){_0x5a0184['push'](_0x5a0184['shift']());}};_0x13c1f7(++_0x3f5435);}(a411_0x3f54,0x1c0));const a411_0x13c1=function(_0x5a0184,_0x3f5435){_0x5a0184=_0x5a0184-0x0;let _0x13c1f7=a411_0x3f54[_0x5a0184];return _0x13c1f7;};const _0x486b8a=a411_0x13c1;'use strict';const express=require(_0x486b8a('0xf')),router=express['Router'](),auth=require(_0x486b8a('0x12')),interaction=require(_0x486b8a('0x8')),controller=require(_0x486b8a('0xe'));router[_0x486b8a('0xa')]('/',auth[_0x486b8a('0xd')](),controller['index']),router['get'](_0x486b8a('0x10'),auth['isAuthenticated'](),controller[_0x486b8a('0x0')]),router[_0x486b8a('0xa')]('/:id',auth[_0x486b8a('0xd')](),controller['show']),router[_0x486b8a('0xa')](_0x486b8a('0x11'),auth[_0x486b8a('0xd')](),controller[_0x486b8a('0x5')]),router[_0x486b8a('0x2')]('/',auth['isAuthenticated'](),interaction[_0x486b8a('0xb')]('mail','mailmessage:create'),controller[_0x486b8a('0x9')]),router['put']('/:id',auth[_0x486b8a('0xd')](),controller[_0x486b8a('0xc')]),router[_0x486b8a('0x1')]('/:id/accept',auth['isAuthenticated'](),controller['accept']),router[_0x486b8a('0x1')](_0x486b8a('0x4'),auth[_0x486b8a('0xd')](),controller[_0x486b8a('0x7')]),router[_0x486b8a('0x3')]('/:id',auth[_0x486b8a('0xd')](),controller['destroy']),module[_0x486b8a('0x6')]=router; \ No newline at end of file +const a411_0x53cf=['/:id/accept','get','Router','update','delete','/:id','post','/:id/reject','describe','accept','put','./mailMessage.controller','isAuthenticated','/:id/download','index','download','reject','create','../../components/interaction/service','exports'];(function(_0x29dc48,_0x53cf59){const _0x444e06=function(_0x50eb8c){while(--_0x50eb8c){_0x29dc48['push'](_0x29dc48['shift']());}};_0x444e06(++_0x53cf59);}(a411_0x53cf,0x177));const a411_0x444e=function(_0x29dc48,_0x53cf59){_0x29dc48=_0x29dc48-0x0;let _0x444e06=a411_0x53cf[_0x29dc48];return _0x444e06;};const _0x770f00=a411_0x444e;'use strict';const express=require('express'),router=express[_0x770f00('0x7')](),auth=require('../../components/auth/service'),interaction=require(_0x770f00('0x3')),controller=require(_0x770f00('0x10'));router['get']('/',auth[_0x770f00('0x11')](),controller[_0x770f00('0x13')]),router[_0x770f00('0x6')]('/describe',auth['isAuthenticated'](),controller[_0x770f00('0xd')]),router[_0x770f00('0x6')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x770f00('0x6')](_0x770f00('0x12'),auth[_0x770f00('0x11')](),controller[_0x770f00('0x0')]),router[_0x770f00('0xb')]('/',auth[_0x770f00('0x11')](),interaction['tracked']('mail','mailmessage:create'),controller[_0x770f00('0x2')]),router[_0x770f00('0xf')](_0x770f00('0xa'),auth[_0x770f00('0x11')](),controller[_0x770f00('0x8')]),router['put'](_0x770f00('0x5'),auth[_0x770f00('0x11')](),controller[_0x770f00('0xe')]),router[_0x770f00('0xf')](_0x770f00('0xc'),auth['isAuthenticated'](),controller[_0x770f00('0x1')]),router[_0x770f00('0x9')](_0x770f00('0xa'),auth[_0x770f00('0x11')](),controller['destroy']),module[_0x770f00('0x4')]=router; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.attributes.js b/server/api/mailMessage/mailMessage.attributes.js index 61bde80..7153d66 100644 --- a/server/api/mailMessage/mailMessage.attributes.js +++ b/server/api/mailMessage/mailMessage.attributes.js @@ -1 +1 @@ -const a412_0x4c4c=['exports','INTEGER','BOOLEAN','medium','TEXT','out','long','sequelize','STRING'];(function(_0x569e15,_0x4c4c69){const _0x1ebbea=function(_0x41c1e9){while(--_0x41c1e9){_0x569e15['push'](_0x569e15['shift']());}};_0x1ebbea(++_0x4c4c69);}(a412_0x4c4c,0xe2));const a412_0x1ebb=function(_0x569e15,_0x4c4c69){_0x569e15=_0x569e15-0x0;let _0x1ebbea=a412_0x4c4c[_0x569e15];return _0x1ebbea;};const _0x44cb3=a412_0x1ebb;'use strict';const Sequelize=require(_0x44cb3('0x6'));module[_0x44cb3('0x8')]={'body':{'type':Sequelize[_0x44cb3('0x3')](_0x44cb3('0x5')),'allowNull':![]},'plainBody':{'type':Sequelize[_0x44cb3('0x3')](_0x44cb3('0x2'))},'read':{'type':Sequelize[_0x44cb3('0x1')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x44cb3('0x4')),'defaultValue':_0x44cb3('0x4'),'allowNull':![]},'messageId':{'type':Sequelize[_0x44cb3('0x7')](0x1fe)},'from':{'type':Sequelize[_0x44cb3('0x7')]},'to':{'type':Sequelize[_0x44cb3('0x3')]('long')},'cc':{'type':Sequelize[_0x44cb3('0x3')](_0x44cb3('0x5'))},'bcc':{'type':Sequelize[_0x44cb3('0x3')]('long')},'subject':{'type':Sequelize[_0x44cb3('0x3')]},'sentAt':{'type':Sequelize['DATE']},'attach':{'type':Sequelize[_0x44cb3('0x0')],'defaultValue':0x0},'secret':{'type':Sequelize[_0x44cb3('0x1')],'defaultValue':![]},'readAt':{'type':Sequelize['DATE']},'originTo':{'type':Sequelize[_0x44cb3('0x3')](_0x44cb3('0x5'))},'originCc':{'type':Sequelize[_0x44cb3('0x3')](_0x44cb3('0x5'))}}; \ No newline at end of file +const a412_0x1da2=['out','long','STRING','ENUM','medium','exports','DATE','TEXT','BOOLEAN'];(function(_0x4e5bbc,_0x1da2a7){const _0x40ffa7=function(_0x56539d){while(--_0x56539d){_0x4e5bbc['push'](_0x4e5bbc['shift']());}};_0x40ffa7(++_0x1da2a7);}(a412_0x1da2,0xb6));const a412_0x40ff=function(_0x4e5bbc,_0x1da2a7){_0x4e5bbc=_0x4e5bbc-0x0;let _0x40ffa7=a412_0x1da2[_0x4e5bbc];return _0x40ffa7;};const _0x220623=a412_0x40ff;'use strict';const Sequelize=require('sequelize');module[_0x220623('0x3')]={'body':{'type':Sequelize[_0x220623('0x5')]('long'),'allowNull':![]},'plainBody':{'type':Sequelize[_0x220623('0x5')](_0x220623('0x2'))},'read':{'type':Sequelize[_0x220623('0x6')],'defaultValue':![]},'direction':{'type':Sequelize[_0x220623('0x1')]('in',_0x220623('0x7')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize[_0x220623('0x0')](0x1fe)},'from':{'type':Sequelize['STRING']},'to':{'type':Sequelize['TEXT'](_0x220623('0x8'))},'cc':{'type':Sequelize[_0x220623('0x5')](_0x220623('0x8'))},'bcc':{'type':Sequelize[_0x220623('0x5')](_0x220623('0x8'))},'subject':{'type':Sequelize['TEXT']},'sentAt':{'type':Sequelize[_0x220623('0x4')]},'attach':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'secret':{'type':Sequelize[_0x220623('0x6')],'defaultValue':![]},'readAt':{'type':Sequelize['DATE']},'originTo':{'type':Sequelize[_0x220623('0x5')](_0x220623('0x8'))},'originCc':{'type':Sequelize[_0x220623('0x5')](_0x220623('0x8'))}}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.controller.js b/server/api/mailMessage/mailMessage.controller.js index 8574bd5..d21f249 100644 --- a/server/api/mailMessage/mailMessage.controller.js +++ b/server/api/mailMessage/mailMessage.controller.js @@ -1 +1 @@ -const a413_0x98e0=['lodash','role','jayson/promise','reject','set','manual','root','type','interface','../../config/logger','index','split','catch','port','pick','Contacts','MailInteractionId','stringify','keys','key','debug','secret','unlinkSync','List\x20not\x20found','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','Smtp','channel','order','count','authentication','includeAll','accept','nolimit','SendMail','client','acceptmessage','limit','mail','then','existsSync','./mailMessage.socket','undefined','messageId','isNil','name','from','error','fieldName','sendStatus','query','auth','moment','include','event','server/files/attachments','MailMessage,\x20%s,\x20%s','sequelize','null','register','RejectMessage','basename','../../mysqldb','request\x20sent','readFileSync','pass','attachments','agent','ListId','Contact','download','../../components/parsers/qs','message-%s.eml','tmp','params','MailMessage,\x20%s,\x20%s,\x20%s','host','length','model','request','map','create','build','log','fields','YYYY-MM-DD\x20HH:mm:ss','message','send','read','info','end','SIP/%s','Bcc','AcceptMessage','../../rediscache','status','user','offset','readAt','CmContact','where','MailServerOut','show','body','describe','rejectMessage','filter','attributes','updatedAt','files','http','stack','VIRTUAL','List','sort','EventManager','json','toString','MailAccount','server','Attachments','secure','headers','update','Content-Range','join','Attachment','path','interaction','result','findOne','push','acceptMessage','MailMessage','format','intersection','service','util','CmList','merge','out','eml-format','UserId','rawAttributes','filters','createdAt','mail-interactions','subject','destroy','bcc'];(function(_0x54b119,_0x98e0c4){const _0x4d7c0f=function(_0x3ab673){while(--_0x3ab673){_0x54b119['push'](_0x54b119['shift']());}};_0x4d7c0f(++_0x98e0c4);}(a413_0x98e0,0xde));const a413_0x4d7c=function(_0x54b119,_0x98e0c4){_0x54b119=_0x54b119-0x0;let _0x4d7c0f=a413_0x98e0[_0x54b119];return _0x4d7c0f;};const _0x36cc9a=a413_0x4d7c;'use strict';const emlformat=require(_0x36cc9a('0x43')),moment=require(_0x36cc9a('0x7f')),util=require(_0x36cc9a('0x3f')),path=require(_0x36cc9a('0x35')),fs=require('fs'),_=require(_0x36cc9a('0x4c')),{getSocket}=require(_0x36cc9a('0x14')),socket=getSocket(),qs=require(_0x36cc9a('0x92')),logger=require(_0x36cc9a('0x55'))('api'),config=require('../../config/environment'),interaction_log=require(_0x36cc9a('0x55'))(_0x36cc9a('0x48')),db=require(_0x36cc9a('0x89'))['db'],{Op}=require(_0x36cc9a('0x84'));require(_0x36cc9a('0x74'))[_0x36cc9a('0x86')](socket);const jayson=require(_0x36cc9a('0x4e')),client=jayson['client'][_0x36cc9a('0x24')]({'port':0x232c}),client9003=jayson[_0x36cc9a('0x6e')]['http']({'port':0x232b}),client9002=jayson[_0x36cc9a('0x6e')][_0x36cc9a('0x24')]({'port':0x232a});function respondWithRpcPromise(_0x3ab673,_0x5a97d9,_0x2d26db,_0x11b773){return new Promise(function(_0x21b4bd,_0x1cc011){const _0x3b5846=a413_0x4d7c,_0x6524a0=_0x11b773||client;return _0x6524a0[_0x3b5846('0x5')](_0x3ab673,_0x2d26db)['then'](function(_0xb16cd3){const _0x558f67=_0x3b5846;logger[_0x558f67('0xf')](_0x558f67('0x83'),_0x5a97d9,'request\x20sent'),logger[_0x558f67('0x60')](_0x558f67('0x1'),_0x5a97d9,'request\x20sent',JSON[_0x558f67('0x5d')](_0xb16cd3));if(_0xb16cd3[_0x558f67('0x7a')]){if(_0xb16cd3['error']['code']===0x1f4)return logger['error'](_0x558f67('0x83'),_0x5a97d9,_0xb16cd3[_0x558f67('0x7a')][_0x558f67('0xc')]),_0x1cc011(_0xb16cd3['error']['message']);return logger[_0x558f67('0x7a')](_0x558f67('0x83'),_0x5a97d9,_0xb16cd3[_0x558f67('0x7a')][_0x558f67('0xc')]),_0x21b4bd(_0xb16cd3[_0x558f67('0x7a')]['message']);}else logger[_0x558f67('0xf')](_0x558f67('0x83'),_0x5a97d9,_0x558f67('0x8a')),_0x21b4bd(_0xb16cd3[_0x558f67('0x37')][_0x558f67('0xc')]);})[_0x3b5846('0x58')](function(_0x26e8f2){const _0x2a603f=_0x3b5846;logger[_0x2a603f('0x7a')](_0x2a603f('0x83'),_0x5a97d9,_0x26e8f2),_0x1cc011(_0x26e8f2);});});}function respondWithResult(_0x9c051b,_0x280c98){return _0x280c98=_0x280c98||0xc8,function(_0xb1954e){const _0xd9dac=a413_0x4d7c;if(_0xb1954e)return _0x9c051b['status'](_0x280c98)[_0xd9dac('0x2a')](_0xb1954e);};}function respondWithFilteredResult(_0x340fb4,_0x230999){return function(_0x40ce1e){const _0x36cdde=a413_0x4d7c;if(_0x40ce1e){const _0x489065=_0x40ce1e['count'],_0x127b51=_0x230999['offset'];let _0x4ebad8=_0x230999[_0x36cdde('0x17')]+_0x230999['limit'],_0x2d31b5;return _0x4ebad8>=_0x489065?(_0x4ebad8=_0x489065,_0x2d31b5=0xc8):_0x2d31b5=0xce,_0x340fb4['status'](_0x2d31b5),_0x340fb4[_0x36cdde('0x50')](_0x36cdde('0x32'),_0x127b51+'-'+_0x4ebad8+'/'+_0x489065)[_0x36cdde('0x2a')](_0x40ce1e);}return null;};}function saveUpdates(_0x21e910){return function(_0x205a10){const _0x22eb08=a413_0x4d7c;if(_0x205a10)return _0x205a10[_0x22eb08('0x31')](_0x21e910)['then'](function(_0x2b88a1){return _0x2b88a1;});return null;};}function removeEntity(_0x993734){return function(_0x14d8f8){const _0x4e1828=a413_0x4d7c;if(_0x14d8f8)return _0x14d8f8['destroy']()[_0x4e1828('0x72')](function(){const _0xfd8582=_0x4e1828;_0x993734[_0xfd8582('0x15')](0xcc)[_0xfd8582('0x10')]();});};}function handleEntityNotFound(_0x66f7bd){return function(_0x215aaa){const _0x18857e=a413_0x4d7c;return!_0x215aaa&&_0x66f7bd[_0x18857e('0x7c')](0x194),_0x215aaa;};}function handleError(_0x5d0436,_0x50db1e){return _0x50db1e=_0x50db1e||0x1f4,function(_0x5e5e6a){const _0x1e9ea5=a413_0x4d7c;logger['error'](_0x5e5e6a[_0x1e9ea5('0x25')]),_0x5e5e6a[_0x1e9ea5('0x78')]&&delete _0x5e5e6a[_0x1e9ea5('0x78')],_0x5d0436[_0x1e9ea5('0x15')](_0x50db1e)[_0x1e9ea5('0xd')](_0x5e5e6a);};}exports[_0x36cc9a('0x56')]=function(_0x5567a3,_0x36d428){const _0x549ba1=_0x36cc9a;let _0xee22fe={};const _0x7d47cb={},_0x5edfef={'count':0x0,'rows':[]},_0x44201c=_[_0x549ba1('0x6')](db[_0x549ba1('0x3b')][_0x549ba1('0x45')],function(_0x3510e6){const _0xa5e7cd=_0x549ba1;return{'name':_0x3510e6[_0xa5e7cd('0x7b')],'type':_0x3510e6[_0xa5e7cd('0x53')][_0xa5e7cd('0x5f')]};});_0x7d47cb[_0x549ba1('0x4')]=_[_0x549ba1('0x6')](_0x44201c,_0x549ba1('0x78')),_0x7d47cb['query']=_[_0x549ba1('0x5e')](_0x5567a3['query']),_0x7d47cb[_0x549ba1('0x46')]=_[_0x549ba1('0x3d')](_0x7d47cb[_0x549ba1('0x4')],_0x7d47cb[_0x549ba1('0x7d')]),_0xee22fe[_0x549ba1('0x21')]=_[_0x549ba1('0x3d')](_0x7d47cb[_0x549ba1('0x4')],qs[_0x549ba1('0xa')](_0x5567a3['query'][_0x549ba1('0xa')])),_0xee22fe[_0x549ba1('0x21')]=_0xee22fe[_0x549ba1('0x21')][_0x549ba1('0x3')]?_0xee22fe[_0x549ba1('0x21')]:_0x7d47cb[_0x549ba1('0x4')];typeof _0x5567a3[_0x549ba1('0x7d')][_0x549ba1('0x6c')]===_0x549ba1('0x75')&&(_0xee22fe['limit']=qs[_0x549ba1('0x70')](_0x5567a3[_0x549ba1('0x7d')]['limit']),_0xee22fe['offset']=qs['offset'](_0x5567a3['query'][_0x549ba1('0x17')]));_0xee22fe[_0x549ba1('0x67')]=qs[_0x549ba1('0x28')](_0x5567a3[_0x549ba1('0x7d')]['sort']),_0xee22fe[_0x549ba1('0x1a')]=qs['filters'](_[_0x549ba1('0x5a')](_0x5567a3[_0x549ba1('0x7d')],_0x7d47cb['filters']),_0x44201c);_0x5567a3['query'][_0x549ba1('0x20')]&&(_0xee22fe[_0x549ba1('0x1a')]=_[_0x549ba1('0x41')](_0xee22fe['where'],{[Op['or']]:_[_0x549ba1('0x6')](_0x44201c,function(_0x2e5aeb){const _0x4d0386=_0x549ba1;if(_0x2e5aeb['type']!==_0x4d0386('0x26')){const _0x4c2505={};return _0x4c2505[_0x2e5aeb[_0x4d0386('0x78')]]={[Op['like']]:'%'+_0x5567a3[_0x4d0386('0x7d')][_0x4d0386('0x20')]+'%'},_0x4c2505;}})}));_0xee22fe=_[_0x549ba1('0x41')]({},_0xee22fe,_0x5567a3['options']);const _0x5d439a={'where':_0xee22fe[_0x549ba1('0x1a')]};return db['MailMessage'][_0x549ba1('0x68')](_0x5d439a)[_0x549ba1('0x72')](function(_0x3eb9a6){const _0x495e99=_0x549ba1;return _0x5edfef[_0x495e99('0x68')]=_0x3eb9a6,_0x5567a3[_0x495e99('0x7d')][_0x495e99('0x6a')]&&(_0xee22fe['include']=[{'all':!![]}]),db[_0x495e99('0x3b')]['findAll'](_0xee22fe);})[_0x549ba1('0x72')](function(_0x2310ba){return _0x5edfef['rows']=_0x2310ba,_0x5edfef;})[_0x549ba1('0x72')](respondWithFilteredResult(_0x36d428,_0xee22fe))[_0x549ba1('0x58')](handleError(_0x36d428,null));},exports[_0x36cc9a('0x1c')]=function(_0x46fc50,_0x212dc8){const _0x5ac9ee=_0x36cc9a;let _0x3fe1ba={'raw':!![],'where':{'id':_0x46fc50[_0x5ac9ee('0x0')]['id']}};const _0x330aef={};return _0x330aef['model']=_['keys'](db[_0x5ac9ee('0x3b')][_0x5ac9ee('0x45')]),_0x330aef[_0x5ac9ee('0x7d')]=_[_0x5ac9ee('0x5e')](_0x46fc50[_0x5ac9ee('0x7d')]),_0x330aef['filters']=_[_0x5ac9ee('0x3d')](_0x330aef[_0x5ac9ee('0x4')],_0x330aef[_0x5ac9ee('0x7d')]),_0x3fe1ba['attributes']=_[_0x5ac9ee('0x3d')](_0x330aef[_0x5ac9ee('0x4')],qs[_0x5ac9ee('0xa')](_0x46fc50[_0x5ac9ee('0x7d')]['fields'])),_0x3fe1ba['attributes']=_0x3fe1ba['attributes'][_0x5ac9ee('0x3')]?_0x3fe1ba['attributes']:_0x330aef[_0x5ac9ee('0x4')],_0x46fc50[_0x5ac9ee('0x7d')][_0x5ac9ee('0x6a')]&&(_0x3fe1ba[_0x5ac9ee('0x80')]=[{'all':!![]}]),_0x3fe1ba=_[_0x5ac9ee('0x41')]({},_0x3fe1ba,_0x46fc50['options']),db[_0x5ac9ee('0x3b')][_0x5ac9ee('0x38')](_0x3fe1ba)[_0x5ac9ee('0x72')](handleEntityNotFound(_0x212dc8,null))['then'](respondWithResult(_0x212dc8,null))['catch'](handleError(_0x212dc8,null));},exports[_0x36cc9a('0x31')]=function(_0x4f0102,_0x49492c){const _0x2b94bf=_0x36cc9a;return _0x4f0102[_0x2b94bf('0x1d')]['id']&&delete _0x4f0102[_0x2b94bf('0x1d')]['id'],db[_0x2b94bf('0x3b')][_0x2b94bf('0x38')]({'where':{'id':_0x4f0102[_0x2b94bf('0x0')]['id']}})[_0x2b94bf('0x72')](handleEntityNotFound(_0x49492c,null))[_0x2b94bf('0x72')](saveUpdates(_0x4f0102[_0x2b94bf('0x1d')],null))[_0x2b94bf('0x72')](respondWithResult(_0x49492c,null))[_0x2b94bf('0x58')](handleError(_0x49492c,null));},exports[_0x36cc9a('0x4a')]=function(_0x66a0e3,_0x3b270f){const _0x12fdac=_0x36cc9a;return db[_0x12fdac('0x3b')][_0x12fdac('0x38')]({'where':{'id':_0x66a0e3['params']['id']}})[_0x12fdac('0x72')](handleEntityNotFound(_0x3b270f,null))[_0x12fdac('0x72')](removeEntity(_0x3b270f,null))[_0x12fdac('0x58')](handleError(_0x3b270f,null));},exports['describe']=function(_0x2583b8,_0x1b3483){const _0x48e7cf=_0x36cc9a;return db[_0x48e7cf('0x3b')][_0x48e7cf('0x1e')]()[_0x48e7cf('0x72')](respondWithResult(_0x1b3483,null))['catch'](handleError(_0x1b3483,null));},exports[_0x36cc9a('0x7')]=function(_0x53ad4f,_0x55bb76){const _0x52b1e6=_0x36cc9a;return db[_0x52b1e6('0x3b')][_0x52b1e6('0x7')](_0x53ad4f[_0x52b1e6('0x1d')])[_0x52b1e6('0x72')](function(_0x2505e2){const _0x38c3e4=_0x52b1e6;if(_0x2505e2){if(_0x2505e2['direction']===_0x38c3e4('0x42')&&!_0x2505e2[_0x38c3e4('0x61')]){let _0x4627bd,_0x2af8b9,_0x362903;return _0x53ad4f[_0x38c3e4('0x1d')]['to']&&(_0x2af8b9=_0x53ad4f[_0x38c3e4('0x1d')]['to'][_0x38c3e4('0x57')](',')[0x0]),db[_0x38c3e4('0x2c')][_0x38c3e4('0x38')]({'where':{'id':_0x2505e2['MailAccountId']},'include':[{'model':db[_0x38c3e4('0x40')],'as':'List','include':[{'model':db[_0x38c3e4('0x19')],'as':_0x38c3e4('0x5b'),'where':{'email':_0x2af8b9},'limit':0x1,'order':[[_0x38c3e4('0x22'),'DESC']]}]},{'model':db[_0x38c3e4('0x1b')],'as':_0x38c3e4('0x65'),'raw':!![]}]})[_0x38c3e4('0x72')](function(_0x3490d3){const _0x45de46=_0x38c3e4;_0x4627bd=_0x3490d3;if(_0x4627bd&&_0x4627bd['Smtp']){const _0x1fa1c1={'tls':{'rejectUnauthorized':![]}};_[_0x45de46('0x77')](_0x4627bd[_0x45de46('0x65')][_0x45de46('0x3e')])?(_0x1fa1c1[_0x45de46('0x2')]=_0x4627bd[_0x45de46('0x65')][_0x45de46('0x2')],_0x1fa1c1['port']=_0x4627bd[_0x45de46('0x65')][_0x45de46('0x59')],_0x1fa1c1[_0x45de46('0x2f')]=_0x4627bd['Smtp'][_0x45de46('0x2f')],_0x4627bd[_0x45de46('0x65')][_0x45de46('0x69')]&&(_0x1fa1c1[_0x45de46('0x7e')]={'user':_0x4627bd[_0x45de46('0x65')][_0x45de46('0x16')],'pass':_0x4627bd[_0x45de46('0x65')][_0x45de46('0x8c')]})):(_0x1fa1c1[_0x45de46('0x3e')]=_0x4627bd[_0x45de46('0x65')][_0x45de46('0x3e')],_0x1fa1c1[_0x45de46('0x7e')]={'user':_0x4627bd['Smtp'][_0x45de46('0x16')],'pass':_0x4627bd[_0x45de46('0x65')][_0x45de46('0x8c')]},_0x1fa1c1[_0x45de46('0x2f')]=_0x4627bd[_0x45de46('0x65')][_0x45de46('0x2f')]);if(_0x53ad4f[_0x45de46('0x1d')][_0x45de46('0x8d')]&&_0x53ad4f[_0x45de46('0x1d')][_0x45de46('0x8d')][_0x45de46('0x3')])for(let _0x30026f=0x0;_0x30026f<_0x53ad4f['body'][_0x45de46('0x8d')]['length'];_0x30026f+=0x1){_0x53ad4f[_0x45de46('0x1d')]['attachments'][_0x30026f]={'filename':_0x53ad4f['body'][_0x45de46('0x8d')][_0x30026f][_0x45de46('0x78')],'path':path[_0x45de46('0x33')](config[_0x45de46('0x52')],_0x45de46('0x82'),_0x53ad4f[_0x45de46('0x1d')]['attachments'][_0x30026f][_0x45de46('0x88')])};}_0x362903={'account':_0x1fa1c1,'message':_0x53ad4f['body']};return;}})[_0x38c3e4('0x72')](function(){const _0x1e28be=_0x38c3e4;if(_0x4627bd[_0x1e28be('0x27')])return _0x4627bd[_0x1e28be('0x27')]['Contacts']['length']?_0x4627bd[_0x1e28be('0x27')]['Contacts'][0x0]:db['CmContact'][_0x1e28be('0x7')](_['defaults'](_0x53ad4f['body'],{'firstName':_0x53ad4f['body']['to'],'email':_0x53ad4f[_0x1e28be('0x1d')]['to'],'phone':_0x53ad4f['body']['to'],'ListId':_0x4627bd[_0x1e28be('0x8f')]}));else throw new Error(_0x1e28be('0x63'));})[_0x38c3e4('0x72')](function(){const _0x4bf828=_0x38c3e4;if(_0x362903)return respondWithRpcPromise(_0x4bf828('0x6d'),'sendMail',_0x362903,client9003)[_0x4bf828('0x72')](function(_0x209877){const _0x21180e=_0x4bf828;return _0x2505e2[_0x21180e('0x31')]({'read':!![],'messageId':_0x209877[_0x21180e('0x76')],'sentAt':moment()['format'](_0x21180e('0xb'))});})[_0x4bf828('0x58')](function(_0x5e422d){const _0x315c95=_0x4bf828;return logger[_0x315c95('0x7a')]('%s',JSON[_0x315c95('0x5d')](_0x5e422d)),_0x2505e2;});return _0x2505e2;});}return _0x2505e2;}})[_0x52b1e6('0x72')](respondWithResult(_0x55bb76,0xc9))[_0x52b1e6('0x58')](handleError(_0x55bb76,null));},exports[_0x36cc9a('0x6b')]=function(_0x3ef92c,_0xab995){const _0x3b0d3b=_0x36cc9a,_0x2e5056={'channel':_0x3b0d3b('0x71')};return _0x3ef92c['body']['id']&&delete _0x3ef92c[_0x3b0d3b('0x1d')]['id'],_0x3ef92c[_0x3b0d3b('0x1d')][_0x3b0d3b('0xe')]=!![],_0x3ef92c['body'][_0x3b0d3b('0x18')]=moment()[_0x3b0d3b('0x3c')]('YYYY-MM-DD\x20HH:mm:ss'),_0x3ef92c[_0x3b0d3b('0x1d')][_0x3b0d3b('0x44')]=_0x3ef92c[_0x3b0d3b('0x1d')][_0x3b0d3b('0x44')]||_0x3ef92c[_0x3b0d3b('0x16')]['id'],db[_0x3b0d3b('0x3b')][_0x3b0d3b('0x38')]({'where':{'id':_0x3ef92c[_0x3b0d3b('0x0')]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':_0x3b0d3b('0x90')}]})[_0x3b0d3b('0x72')](handleEntityNotFound(_0xab995,null))[_0x3b0d3b('0x72')](saveUpdates(_0x3ef92c['body'],null))[_0x3b0d3b('0x72')](function(_0x29b435){const _0x4520a7=_0x3b0d3b;if(_0x29b435)return _0x2e5056[_0x4520a7('0xc')]=_0x29b435['get']({'plain':!![]}),db['MailInteraction'][_0x4520a7('0x38')]({'where':{'id':_0x29b435[_0x4520a7('0x5c')]}});return null;})[_0x3b0d3b('0x72')](handleEntityNotFound(_0xab995,null))['then'](function(_0x3aeb3e){const _0x53918f=_0x3b0d3b;if(_0x3aeb3e)return _0x3aeb3e[_0x53918f('0x31')]({'UserId':_0x3ef92c[_0x53918f('0x1d')][_0x53918f('0x44')],'read1stAt':_[_0x53918f('0x77')](_0x3aeb3e['read1stAt'])?moment()[_0x53918f('0x3c')]('YYYY-MM-DD\x20HH:mm:ss'):undefined});return null;})['then'](function(_0x2671c6){const _0x30f812=_0x3b0d3b;if(_0x2671c6)return _0x2e5056['interaction']=_0x2671c6['get']({'plain':!![]}),interaction_log['info'](_0x30f812('0x64'),_0x3ef92c['user']['id'],_0x3ef92c[_0x30f812('0x16')][_0x30f812('0x78')],_0x3ef92c[_0x30f812('0x16')][_0x30f812('0x4d')],_0x2e5056[_0x30f812('0x36')]['id'],_0x3ef92c[_0x30f812('0x1d')]?JSON[_0x30f812('0x5d')](_0x3ef92c[_0x30f812('0x1d')]):_0x30f812('0x85')),respondWithRpcPromise(_0x30f812('0x13'),_0x30f812('0x3a'),_0x2e5056);return null;})['then'](function(_0x3a40e7){const _0x3e1983=_0x3b0d3b;if(_0x3a40e7){if(_0x3ef92c['body'][_0x3e1983('0x51')])return _0x2e5056[_0x3e1983('0xc')][_0x3e1983('0x54')]=util[_0x3e1983('0x3c')](_0x3e1983('0x11'),_0x3ef92c[_0x3e1983('0x16')]['name']),_0x2e5056['message'][_0x3e1983('0x66')]=_0x2e5056[_0x3e1983('0x66')],_0x2e5056[_0x3e1983('0xc')][_0x3e1983('0x81')]=_0x3e1983('0x6b'),respondWithRpcPromise(_0x3e1983('0x29'),_0x3e1983('0x29'),{'event':_0x3e1983('0x6f'),'message':_0x2e5056[_0x3e1983('0xc')]},client9002)[_0x3e1983('0x72')](function(){return _0x2e5056;});return _0x2e5056;}return null;})[_0x3b0d3b('0x72')](respondWithResult(_0xab995,null))['catch'](handleError(_0xab995,null));},exports['reject']=function(_0x59a9c8,_0x3383af){const _0xa23614=_0x36cc9a,_0x521dbe={'agent':{},'channel':_0xa23614('0x71')};return _0x59a9c8['body']['id']&&delete _0x59a9c8['body']['id'],_0x59a9c8['body'][_0xa23614('0x44')]=_0x59a9c8['body'][_0xa23614('0x44')]||_0x59a9c8[_0xa23614('0x16')]['id'],_0x521dbe[_0xa23614('0x8e')]['id']=_0x59a9c8[_0xa23614('0x1d')][_0xa23614('0x44')],db['MailMessage'][_0xa23614('0x38')]({'where':{'id':_0x59a9c8[_0xa23614('0x0')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x3383af,null))[_0xa23614('0x72')](function(_0x22dfc2){const _0x51f5d3=_0xa23614;if(_0x22dfc2)return _0x521dbe[_0x51f5d3('0xc')]=_0x22dfc2['get']({'plain':!![]}),db['MailInteraction']['findOne']({'where':{'id':_0x22dfc2['MailInteractionId']}});return null;})['then'](handleEntityNotFound(_0x3383af,null))[_0xa23614('0x72')](function(_0x30b935){const _0x5a39cb=_0xa23614;if(_0x30b935)return _0x521dbe['interaction']=_0x30b935['get']({'plain':!![]}),interaction_log[_0x5a39cb('0xf')]('[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x59a9c8[_0x5a39cb('0x16')]['id'],_0x59a9c8[_0x5a39cb('0x16')][_0x5a39cb('0x78')],_0x59a9c8[_0x5a39cb('0x16')][_0x5a39cb('0x4d')],_0x521dbe['interaction']['id'],_0x59a9c8[_0x5a39cb('0x1d')]?JSON[_0x5a39cb('0x5d')](_0x59a9c8[_0x5a39cb('0x1d')]):_0x5a39cb('0x85')),respondWithRpcPromise(_0x5a39cb('0x87'),_0x5a39cb('0x1f'),_0x521dbe);return null;})[_0xa23614('0x72')](function(_0x3b8cc2){const _0x1d647c=_0xa23614;if(_0x3b8cc2)return _0x3b8cc2[_0x1d647c('0xc')][_0x1d647c('0x54')]=util['format'](_0x1d647c('0x11'),_0x59a9c8[_0x1d647c('0x16')][_0x1d647c('0x78')]),_0x3b8cc2[_0x1d647c('0xc')]['channel']=_0x521dbe[_0x1d647c('0x66')],_0x3b8cc2[_0x1d647c('0xc')][_0x1d647c('0x81')]=_0x1d647c('0x4f'),respondWithRpcPromise(_0x1d647c('0x29'),_0x1d647c('0x29'),{'event':'rejectmessage','message':_0x3b8cc2[_0x1d647c('0xc')]},client9002),_0x521dbe;return null;})['then'](respondWithResult(_0x3383af,null))[_0xa23614('0x58')](handleError(_0x3383af,null));},exports[_0x36cc9a('0x91')]=function(_0x4cc0ab,_0x353964){const _0x791844=_0x36cc9a,_0x26e653=moment()['unix']()[_0x791844('0x2b')](),_0x11b360=path[_0x791844('0x33')](config[_0x791844('0x52')],_0x791844('0x23'),_0x791844('0x94')),_0x54c793=path['join'](config['root'],_0x791844('0x2d'),_0x791844('0x23'),_0x791844('0x8d')),_0x2d3dae=util[_0x791844('0x3c')](_0x791844('0x93'),_0x26e653);return db[_0x791844('0x3b')][_0x791844('0x38')]({'where':{'id':_0x4cc0ab[_0x791844('0x0')]['id']},'attributes':['id',_0x791844('0x1d'),_0x791844('0x79'),'to','cc',_0x791844('0x4b'),'subject','createdAt'],'include':_0x4cc0ab[_0x791844('0x7d')]['attachments']?[{'model':db[_0x791844('0x34')],'as':_0x791844('0x2e')}]:undefined})['then'](handleEntityNotFound(_0x353964,null))[_0x791844('0x72')](function(_0x241152){const _0x8e085a=_0x791844;if(_0x241152){const _0x501901=_0x241152,_0x1297e0={'from':_0x501901[_0x8e085a('0x79')],'to':_0x501901['to'],'subject':_0x501901[_0x8e085a('0x49')],'html':_0x501901['body'],'headers':{'Date':moment(_0x501901[_0x8e085a('0x47')])[_0x8e085a('0x3c')]('ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ')},'attachments':[]};return _0x241152['cc']&&(_0x1297e0[_0x8e085a('0x30')]['Cc']=_0x241152['cc']),_0x241152[_0x8e085a('0x4b')]&&(_0x1297e0[_0x8e085a('0x30')][_0x8e085a('0x12')]=_0x241152['bcc']),new Promise(function(_0x5d9305,_0x510506){const _0x10616a=_0x8e085a;if(_0x241152[_0x10616a('0x2e')])for(let _0x1fcf16=0x0;_0x1fcf16<_0x241152[_0x10616a('0x2e')][_0x10616a('0x3')];_0x1fcf16++){const _0x4de996=_0x241152[_0x10616a('0x2e')][_0x1fcf16],_0x47a5c2=path['join'](_0x54c793,_0x4de996[_0x10616a('0x88')]);fs[_0x10616a('0x73')](_0x47a5c2)&&_0x1297e0['attachments'][_0x10616a('0x39')]({'name':_0x4de996[_0x10616a('0x78')],'contentType':_0x4de996['type'],'data':fs[_0x10616a('0x8b')](_0x47a5c2)});}emlformat[_0x10616a('0x8')](_0x1297e0,function(_0x25653d,_0x48af61){const _0x221a89=_0x10616a;if(_0x25653d)return _0x510506(_0x25653d);return fs['writeFileSync'](path[_0x221a89('0x33')](_0x11b360,_0x2d3dae),_0x48af61),_0x5d9305(_0x48af61);});});}})[_0x791844('0x72')](function(_0x38d227){const _0x4413e4=_0x791844;if(_0x38d227)return _0x353964[_0x4413e4('0x91')](path[_0x4413e4('0x33')](_0x11b360,_0x2d3dae),_0x2d3dae,function(_0x3fcebc){const _0x42f8a2=_0x4413e4;_0x3fcebc?console[_0x42f8a2('0x9')]('err',_0x3fcebc):fs[_0x42f8a2('0x62')](path[_0x42f8a2('0x33')](_0x11b360,_0x2d3dae));});})[_0x791844('0x58')](handleError(_0x353964,null));}; \ No newline at end of file +const a413_0x8623=['stack','RejectMessage','YYYY-MM-DD\x20HH:mm:ss','join','type','acceptMessage','params','path','MailServerOut','request\x20sent','../../rediscache','length','Smtp','create','name','attachments','sendMail','count','secure','query','messageId','Attachment','existsSync','port','../../config/environment','body','format','rows','pick','intersection','updatedAt','update','server/files/attachments','mail','service','readAt','nolimit','api','out','rawAttributes','accept','DESC','filters','unix','host','auth','MailAccount','stringify','isNil','files','request','authentication','sequelize','tmp','message-%s.eml','pass','offset','ddd,\x20DD\x20MMM\x20YYYY\x20HH:mm:ss\x20ZZ','message','Contacts','interaction','MailInteraction','UserId','../../config/logger','send','sort','code','SIP/%s','get','eml-format','jayson/promise','rejectMessage','MailMessage','Bcc','end','event','index','writeFileSync','../../mysqldb','read','mail-interactions','register','./mailMessage.socket','set','reject','channel','fieldName','destroy','merge','headers','includeAll','MailMessage,\x20%s,\x20%s,\x20%s','error','toString','[MAILMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','options','log','bcc','info','agent','List','../../components/parsers/qs','undefined','model','status','SendMail','VIRTUAL','show','interface','map','CmContact','util','Content-Range','then','keys','AcceptMessage','download','EventManager','Contact','basename','[MAILMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','limit','List\x20not\x20found','MailInteractionId','key','findAll','include','root','client','catch','subject','unlinkSync','attributes','Attachments','read1stAt','findOne','lodash','rejectmessage','http','direction','acceptmessage','json','from','null','fields','role','user','where','MailMessage,\x20%s,\x20%s'];(function(_0x184a5f,_0x86238e){const _0xef2288=function(_0x3fdace){while(--_0x3fdace){_0x184a5f['push'](_0x184a5f['shift']());}};_0xef2288(++_0x86238e);}(a413_0x8623,0x178));const a413_0xef22=function(_0x184a5f,_0x86238e){_0x184a5f=_0x184a5f-0x0;let _0xef2288=a413_0x8623[_0x184a5f];return _0xef2288;};const _0x344574=a413_0xef22;'use strict';const emlformat=require(_0x344574('0x8c')),moment=require('moment'),util=require(_0x344574('0x21')),path=require(_0x344574('0x4e')),fs=require('fs'),_=require(_0x344574('0x3a')),{getSocket}=require(_0x344574('0x51')),socket=getSocket(),qs=require(_0x344574('0x17')),logger=require(_0x344574('0x86'))(_0x344574('0x6c')),config=require(_0x344574('0x5f')),interaction_log=require(_0x344574('0x86'))(_0x344574('0x2')),db=require(_0x344574('0x0'))['db'],{Op}=require(_0x344574('0x7b'));require(_0x344574('0x4'))[_0x344574('0x3')](socket);const jayson=require(_0x344574('0x8d')),client=jayson[_0x344574('0x32')]['http']({'port':0x232c}),client9003=jayson[_0x344574('0x32')][_0x344574('0x3c')]({'port':0x232b}),client9002=jayson[_0x344574('0x32')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3fdace,_0x463c04,_0x48ddf1,_0x41a1aa){return new Promise(function(_0x5509e1,_0x19a87e){const _0xb60249=a413_0xef22,_0x43493e=_0x41a1aa||client;return _0x43493e[_0xb60249('0x79')](_0x3fdace,_0x48ddf1)[_0xb60249('0x23')](function(_0x2d056e){const _0x28c9e4=_0xb60249;logger[_0x28c9e4('0x14')](_0x28c9e4('0x46'),_0x463c04,'request\x20sent'),logger['debug'](_0x28c9e4('0xd'),_0x463c04,_0x28c9e4('0x50'),JSON['stringify'](_0x2d056e));if(_0x2d056e[_0x28c9e4('0xe')]){if(_0x2d056e[_0x28c9e4('0xe')][_0x28c9e4('0x89')]===0x1f4)return logger[_0x28c9e4('0xe')](_0x28c9e4('0x46'),_0x463c04,_0x2d056e[_0x28c9e4('0xe')][_0x28c9e4('0x81')]),_0x19a87e(_0x2d056e[_0x28c9e4('0xe')]['message']);return logger['error']('MailMessage,\x20%s,\x20%s',_0x463c04,_0x2d056e['error'][_0x28c9e4('0x81')]),_0x5509e1(_0x2d056e[_0x28c9e4('0xe')]['message']);}else logger[_0x28c9e4('0x14')]('MailMessage,\x20%s,\x20%s',_0x463c04,_0x28c9e4('0x50')),_0x5509e1(_0x2d056e['result'][_0x28c9e4('0x81')]);})[_0xb60249('0x33')](function(_0x3959cb){const _0x1f782b=_0xb60249;logger[_0x1f782b('0xe')]('MailMessage,\x20%s,\x20%s',_0x463c04,_0x3959cb),_0x19a87e(_0x3959cb);});});}function respondWithResult(_0x36948c,_0x43ee6c){return _0x43ee6c=_0x43ee6c||0xc8,function(_0x3605c2){const _0x473c18=a413_0xef22;if(_0x3605c2)return _0x36948c[_0x473c18('0x1a')](_0x43ee6c)[_0x473c18('0x3f')](_0x3605c2);};}function respondWithFilteredResult(_0x201420,_0xf58750){return function(_0xdc2f3){const _0x2d17d1=a413_0xef22;if(_0xdc2f3){const _0x5eb15d=_0xdc2f3[_0x2d17d1('0x58')],_0x345aa4=_0xf58750['offset'];let _0x39198a=_0xf58750['offset']+_0xf58750[_0x2d17d1('0x2b')],_0x20004b;return _0x39198a>=_0x5eb15d?(_0x39198a=_0x5eb15d,_0x20004b=0xc8):_0x20004b=0xce,_0x201420[_0x2d17d1('0x1a')](_0x20004b),_0x201420[_0x2d17d1('0x5')](_0x2d17d1('0x22'),_0x345aa4+'-'+_0x39198a+'/'+_0x5eb15d)[_0x2d17d1('0x3f')](_0xdc2f3);}return null;};}function saveUpdates(_0x4daa0f){return function(_0x49a3eb){const _0x113078=a413_0xef22;if(_0x49a3eb)return _0x49a3eb[_0x113078('0x66')](_0x4daa0f)[_0x113078('0x23')](function(_0x4f802f){return _0x4f802f;});return null;};}function removeEntity(_0x365862){return function(_0x5985cb){const _0x1df1b7=a413_0xef22;if(_0x5985cb)return _0x5985cb['destroy']()[_0x1df1b7('0x23')](function(){const _0x3ab4f1=_0x1df1b7;_0x365862[_0x3ab4f1('0x1a')](0xcc)[_0x3ab4f1('0x91')]();});};}function handleEntityNotFound(_0x48120e){return function(_0x425d3f){return!_0x425d3f&&_0x48120e['sendStatus'](0x194),_0x425d3f;};}function handleError(_0x5cfec7,_0x11b358){return _0x11b358=_0x11b358||0x1f4,function(_0xca739f){const _0xcd142=a413_0xef22;logger[_0xcd142('0xe')](_0xca739f[_0xcd142('0x47')]),_0xca739f[_0xcd142('0x55')]&&delete _0xca739f['name'],_0x5cfec7[_0xcd142('0x1a')](_0x11b358)[_0xcd142('0x87')](_0xca739f);};}exports[_0x344574('0x93')]=function(_0x3a6707,_0x5dddf4){const _0x1452fe=_0x344574;let _0xb5d8bf={};const _0x541447={},_0x4bf654={'count':0x0,'rows':[]},_0x4d3c4f=_[_0x1452fe('0x1f')](db[_0x1452fe('0x8f')][_0x1452fe('0x6e')],function(_0x1c8685){const _0x4182e6=_0x1452fe;return{'name':_0x1c8685[_0x4182e6('0x8')],'type':_0x1c8685['type'][_0x4182e6('0x2e')]};});_0x541447[_0x1452fe('0x19')]=_[_0x1452fe('0x1f')](_0x4d3c4f,_0x1452fe('0x55')),_0x541447['query']=_['keys'](_0x3a6707['query']),_0x541447[_0x1452fe('0x71')]=_[_0x1452fe('0x64')](_0x541447[_0x1452fe('0x19')],_0x541447[_0x1452fe('0x5a')]),_0xb5d8bf[_0x1452fe('0x36')]=_[_0x1452fe('0x64')](_0x541447[_0x1452fe('0x19')],qs[_0x1452fe('0x42')](_0x3a6707[_0x1452fe('0x5a')][_0x1452fe('0x42')])),_0xb5d8bf['attributes']=_0xb5d8bf[_0x1452fe('0x36')]['length']?_0xb5d8bf[_0x1452fe('0x36')]:_0x541447['model'];typeof _0x3a6707['query'][_0x1452fe('0x6b')]===_0x1452fe('0x18')&&(_0xb5d8bf[_0x1452fe('0x2b')]=qs[_0x1452fe('0x2b')](_0x3a6707[_0x1452fe('0x5a')][_0x1452fe('0x2b')]),_0xb5d8bf[_0x1452fe('0x7f')]=qs[_0x1452fe('0x7f')](_0x3a6707['query'][_0x1452fe('0x7f')]));_0xb5d8bf['order']=qs['sort'](_0x3a6707[_0x1452fe('0x5a')][_0x1452fe('0x88')]),_0xb5d8bf[_0x1452fe('0x45')]=qs[_0x1452fe('0x71')](_[_0x1452fe('0x63')](_0x3a6707[_0x1452fe('0x5a')],_0x541447['filters']),_0x4d3c4f);_0x3a6707['query']['filter']&&(_0xb5d8bf[_0x1452fe('0x45')]=_[_0x1452fe('0xa')](_0xb5d8bf[_0x1452fe('0x45')],{[Op['or']]:_[_0x1452fe('0x1f')](_0x4d3c4f,function(_0x59f0e6){const _0x3abc54=_0x1452fe;if(_0x59f0e6[_0x3abc54('0x4b')]!==_0x3abc54('0x1c')){const _0x5a4832={};return _0x5a4832[_0x59f0e6[_0x3abc54('0x55')]]={[Op['like']]:'%'+_0x3a6707[_0x3abc54('0x5a')]['filter']+'%'},_0x5a4832;}})}));_0xb5d8bf=_[_0x1452fe('0xa')]({},_0xb5d8bf,_0x3a6707[_0x1452fe('0x11')]);const _0x2668d1={'where':_0xb5d8bf[_0x1452fe('0x45')]};return db[_0x1452fe('0x8f')]['count'](_0x2668d1)[_0x1452fe('0x23')](function(_0x1c52da){const _0x3e16fa=_0x1452fe;return _0x4bf654['count']=_0x1c52da,_0x3a6707[_0x3e16fa('0x5a')][_0x3e16fa('0xc')]&&(_0xb5d8bf[_0x3e16fa('0x30')]=[{'all':!![]}]),db[_0x3e16fa('0x8f')][_0x3e16fa('0x2f')](_0xb5d8bf);})[_0x1452fe('0x23')](function(_0xcef909){const _0xc3b534=_0x1452fe;return _0x4bf654[_0xc3b534('0x62')]=_0xcef909,_0x4bf654;})['then'](respondWithFilteredResult(_0x5dddf4,_0xb5d8bf))[_0x1452fe('0x33')](handleError(_0x5dddf4,null));},exports[_0x344574('0x1d')]=function(_0x41ba8c,_0x2a21c3){const _0xc2423e=_0x344574;let _0x105dd7={'raw':!![],'where':{'id':_0x41ba8c[_0xc2423e('0x4d')]['id']}};const _0xd2f1b8={};return _0xd2f1b8[_0xc2423e('0x19')]=_[_0xc2423e('0x24')](db[_0xc2423e('0x8f')][_0xc2423e('0x6e')]),_0xd2f1b8['query']=_[_0xc2423e('0x24')](_0x41ba8c[_0xc2423e('0x5a')]),_0xd2f1b8[_0xc2423e('0x71')]=_[_0xc2423e('0x64')](_0xd2f1b8[_0xc2423e('0x19')],_0xd2f1b8[_0xc2423e('0x5a')]),_0x105dd7[_0xc2423e('0x36')]=_[_0xc2423e('0x64')](_0xd2f1b8['model'],qs[_0xc2423e('0x42')](_0x41ba8c['query'][_0xc2423e('0x42')])),_0x105dd7[_0xc2423e('0x36')]=_0x105dd7[_0xc2423e('0x36')]['length']?_0x105dd7[_0xc2423e('0x36')]:_0xd2f1b8['model'],_0x41ba8c['query']['includeAll']&&(_0x105dd7[_0xc2423e('0x30')]=[{'all':!![]}]),_0x105dd7=_['merge']({},_0x105dd7,_0x41ba8c['options']),db[_0xc2423e('0x8f')][_0xc2423e('0x39')](_0x105dd7)['then'](handleEntityNotFound(_0x2a21c3,null))['then'](respondWithResult(_0x2a21c3,null))[_0xc2423e('0x33')](handleError(_0x2a21c3,null));},exports[_0x344574('0x66')]=function(_0x7f5800,_0x5eccec){const _0x51c9e1=_0x344574;return _0x7f5800[_0x51c9e1('0x60')]['id']&&delete _0x7f5800[_0x51c9e1('0x60')]['id'],db[_0x51c9e1('0x8f')][_0x51c9e1('0x39')]({'where':{'id':_0x7f5800['params']['id']}})[_0x51c9e1('0x23')](handleEntityNotFound(_0x5eccec,null))[_0x51c9e1('0x23')](saveUpdates(_0x7f5800['body'],null))[_0x51c9e1('0x23')](respondWithResult(_0x5eccec,null))[_0x51c9e1('0x33')](handleError(_0x5eccec,null));},exports[_0x344574('0x9')]=function(_0x2c3b5d,_0x193c13){const _0x48f543=_0x344574;return db[_0x48f543('0x8f')]['findOne']({'where':{'id':_0x2c3b5d[_0x48f543('0x4d')]['id']}})['then'](handleEntityNotFound(_0x193c13,null))[_0x48f543('0x23')](removeEntity(_0x193c13,null))[_0x48f543('0x33')](handleError(_0x193c13,null));},exports['describe']=function(_0x4e647d,_0x439f06){const _0x24c184=_0x344574;return db[_0x24c184('0x8f')]['describe']()[_0x24c184('0x23')](respondWithResult(_0x439f06,null))['catch'](handleError(_0x439f06,null));},exports[_0x344574('0x54')]=function(_0x4c2147,_0x3df2e7){const _0x4d35d5=_0x344574;return db[_0x4d35d5('0x8f')][_0x4d35d5('0x54')](_0x4c2147[_0x4d35d5('0x60')])[_0x4d35d5('0x23')](function(_0x57ca96){const _0x56458e=_0x4d35d5;if(_0x57ca96){if(_0x57ca96[_0x56458e('0x3d')]===_0x56458e('0x6d')&&!_0x57ca96['secret']){let _0x34c1b4,_0x346b3e,_0x99aa76;return _0x4c2147[_0x56458e('0x60')]['to']&&(_0x346b3e=_0x4c2147[_0x56458e('0x60')]['to']['split'](',')[0x0]),db[_0x56458e('0x75')][_0x56458e('0x39')]({'where':{'id':_0x57ca96['MailAccountId']},'include':[{'model':db['CmList'],'as':'List','include':[{'model':db[_0x56458e('0x20')],'as':_0x56458e('0x82'),'where':{'email':_0x346b3e},'limit':0x1,'order':[[_0x56458e('0x65'),_0x56458e('0x70')]]}]},{'model':db[_0x56458e('0x4f')],'as':'Smtp','raw':!![]}]})[_0x56458e('0x23')](function(_0x2242b0){const _0x597c9b=_0x56458e;_0x34c1b4=_0x2242b0;if(_0x34c1b4&&_0x34c1b4['Smtp']){const _0x4e5eaf={'tls':{'rejectUnauthorized':![]}};_[_0x597c9b('0x77')](_0x34c1b4['Smtp']['service'])?(_0x4e5eaf[_0x597c9b('0x73')]=_0x34c1b4['Smtp'][_0x597c9b('0x73')],_0x4e5eaf['port']=_0x34c1b4[_0x597c9b('0x53')][_0x597c9b('0x5e')],_0x4e5eaf[_0x597c9b('0x59')]=_0x34c1b4[_0x597c9b('0x53')][_0x597c9b('0x59')],_0x34c1b4[_0x597c9b('0x53')][_0x597c9b('0x7a')]&&(_0x4e5eaf[_0x597c9b('0x74')]={'user':_0x34c1b4[_0x597c9b('0x53')][_0x597c9b('0x44')],'pass':_0x34c1b4[_0x597c9b('0x53')][_0x597c9b('0x7e')]})):(_0x4e5eaf[_0x597c9b('0x69')]=_0x34c1b4[_0x597c9b('0x53')][_0x597c9b('0x69')],_0x4e5eaf[_0x597c9b('0x74')]={'user':_0x34c1b4['Smtp'][_0x597c9b('0x44')],'pass':_0x34c1b4['Smtp'][_0x597c9b('0x7e')]},_0x4e5eaf[_0x597c9b('0x59')]=_0x34c1b4[_0x597c9b('0x53')][_0x597c9b('0x59')]);if(_0x4c2147[_0x597c9b('0x60')][_0x597c9b('0x56')]&&_0x4c2147[_0x597c9b('0x60')]['attachments'][_0x597c9b('0x52')])for(let _0x56cc97=0x0;_0x56cc97<_0x4c2147[_0x597c9b('0x60')]['attachments']['length'];_0x56cc97+=0x1){_0x4c2147['body']['attachments'][_0x56cc97]={'filename':_0x4c2147[_0x597c9b('0x60')][_0x597c9b('0x56')][_0x56cc97]['name'],'path':path[_0x597c9b('0x4a')](config[_0x597c9b('0x31')],_0x597c9b('0x67'),_0x4c2147[_0x597c9b('0x60')][_0x597c9b('0x56')][_0x56cc97][_0x597c9b('0x29')])};}_0x99aa76={'account':_0x4e5eaf,'message':_0x4c2147[_0x597c9b('0x60')]};return;}})[_0x56458e('0x23')](function(){const _0x2ab5e3=_0x56458e;if(_0x34c1b4['List'])return _0x34c1b4[_0x2ab5e3('0x16')][_0x2ab5e3('0x82')]['length']?_0x34c1b4['List'][_0x2ab5e3('0x82')][0x0]:db[_0x2ab5e3('0x20')][_0x2ab5e3('0x54')](_['defaults'](_0x4c2147['body'],{'firstName':_0x4c2147['body']['to'],'email':_0x4c2147['body']['to'],'phone':_0x4c2147['body']['to'],'ListId':_0x34c1b4['ListId']}));else throw new Error(_0x2ab5e3('0x2c'));})[_0x56458e('0x23')](function(){const _0x281b52=_0x56458e;if(_0x99aa76)return respondWithRpcPromise(_0x281b52('0x1b'),_0x281b52('0x57'),_0x99aa76,client9003)['then'](function(_0x4d14d1){const _0x5e039c=_0x281b52;return _0x57ca96[_0x5e039c('0x66')]({'read':!![],'messageId':_0x4d14d1[_0x5e039c('0x5b')],'sentAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss')});})[_0x281b52('0x33')](function(_0x1d2269){return logger['error']('%s',JSON['stringify'](_0x1d2269)),_0x57ca96;});return _0x57ca96;});}return _0x57ca96;}})[_0x4d35d5('0x23')](respondWithResult(_0x3df2e7,0xc9))['catch'](handleError(_0x3df2e7,null));},exports[_0x344574('0x6f')]=function(_0x11fa8a,_0x3dc881){const _0xac98f0=_0x344574,_0x307e6f={'channel':'mail'};return _0x11fa8a[_0xac98f0('0x60')]['id']&&delete _0x11fa8a[_0xac98f0('0x60')]['id'],_0x11fa8a[_0xac98f0('0x60')][_0xac98f0('0x1')]=!![],_0x11fa8a['body'][_0xac98f0('0x6a')]=moment()['format'](_0xac98f0('0x49')),_0x11fa8a[_0xac98f0('0x60')][_0xac98f0('0x85')]=_0x11fa8a[_0xac98f0('0x60')][_0xac98f0('0x85')]||_0x11fa8a[_0xac98f0('0x44')]['id'],db['MailMessage'][_0xac98f0('0x39')]({'where':{'id':_0x11fa8a[_0xac98f0('0x4d')]['id'],'UserId':null},'include':[{'model':db[_0xac98f0('0x20')],'as':_0xac98f0('0x28')}]})[_0xac98f0('0x23')](handleEntityNotFound(_0x3dc881,null))[_0xac98f0('0x23')](saveUpdates(_0x11fa8a[_0xac98f0('0x60')],null))['then'](function(_0xa7ed00){const _0x584d23=_0xac98f0;if(_0xa7ed00)return _0x307e6f[_0x584d23('0x81')]=_0xa7ed00['get']({'plain':!![]}),db[_0x584d23('0x84')]['findOne']({'where':{'id':_0xa7ed00[_0x584d23('0x2d')]}});return null;})[_0xac98f0('0x23')](handleEntityNotFound(_0x3dc881,null))[_0xac98f0('0x23')](function(_0xed281a){const _0x473bd3=_0xac98f0;if(_0xed281a)return _0xed281a['update']({'UserId':_0x11fa8a[_0x473bd3('0x60')][_0x473bd3('0x85')],'read1stAt':_[_0x473bd3('0x77')](_0xed281a[_0x473bd3('0x38')])?moment()[_0x473bd3('0x61')](_0x473bd3('0x49')):undefined});return null;})[_0xac98f0('0x23')](function(_0x4e510e){const _0x521331=_0xac98f0;if(_0x4e510e)return _0x307e6f['interaction']=_0x4e510e[_0x521331('0x8b')]({'plain':!![]}),interaction_log[_0x521331('0x14')](_0x521331('0x2a'),_0x11fa8a['user']['id'],_0x11fa8a[_0x521331('0x44')][_0x521331('0x55')],_0x11fa8a[_0x521331('0x44')][_0x521331('0x43')],_0x307e6f[_0x521331('0x83')]['id'],_0x11fa8a['body']?JSON[_0x521331('0x76')](_0x11fa8a[_0x521331('0x60')]):'null'),respondWithRpcPromise(_0x521331('0x25'),_0x521331('0x4c'),_0x307e6f);return null;})[_0xac98f0('0x23')](function(_0x16298a){const _0x4ec921=_0xac98f0;if(_0x16298a){if(_0x11fa8a[_0x4ec921('0x60')]['manual'])return _0x307e6f['message'][_0x4ec921('0x1e')]=util[_0x4ec921('0x61')](_0x4ec921('0x8a'),_0x11fa8a[_0x4ec921('0x44')][_0x4ec921('0x55')]),_0x307e6f[_0x4ec921('0x81')][_0x4ec921('0x7')]=_0x307e6f[_0x4ec921('0x7')],_0x307e6f['message'][_0x4ec921('0x92')]=_0x4ec921('0x6f'),respondWithRpcPromise(_0x4ec921('0x27'),_0x4ec921('0x27'),{'event':_0x4ec921('0x3e'),'message':_0x307e6f['message']},client9002)[_0x4ec921('0x23')](function(){return _0x307e6f;});return _0x307e6f;}return null;})['then'](respondWithResult(_0x3dc881,null))[_0xac98f0('0x33')](handleError(_0x3dc881,null));},exports[_0x344574('0x6')]=function(_0x26122d,_0x57b2b5){const _0x308767=_0x344574,_0x58ea70={'agent':{},'channel':_0x308767('0x68')};return _0x26122d[_0x308767('0x60')]['id']&&delete _0x26122d[_0x308767('0x60')]['id'],_0x26122d[_0x308767('0x60')][_0x308767('0x85')]=_0x26122d[_0x308767('0x60')][_0x308767('0x85')]||_0x26122d[_0x308767('0x44')]['id'],_0x58ea70[_0x308767('0x15')]['id']=_0x26122d[_0x308767('0x60')][_0x308767('0x85')],db[_0x308767('0x8f')][_0x308767('0x39')]({'where':{'id':_0x26122d[_0x308767('0x4d')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x57b2b5,null))['then'](function(_0x1b8115){const _0x35f5cb=_0x308767;if(_0x1b8115)return _0x58ea70[_0x35f5cb('0x81')]=_0x1b8115[_0x35f5cb('0x8b')]({'plain':!![]}),db[_0x35f5cb('0x84')][_0x35f5cb('0x39')]({'where':{'id':_0x1b8115['MailInteractionId']}});return null;})[_0x308767('0x23')](handleEntityNotFound(_0x57b2b5,null))[_0x308767('0x23')](function(_0x4d4623){const _0x148bbf=_0x308767;if(_0x4d4623)return _0x58ea70[_0x148bbf('0x83')]=_0x4d4623['get']({'plain':!![]}),interaction_log['info'](_0x148bbf('0x10'),_0x26122d[_0x148bbf('0x44')]['id'],_0x26122d['user'][_0x148bbf('0x55')],_0x26122d[_0x148bbf('0x44')]['role'],_0x58ea70[_0x148bbf('0x83')]['id'],_0x26122d[_0x148bbf('0x60')]?JSON['stringify'](_0x26122d[_0x148bbf('0x60')]):_0x148bbf('0x41')),respondWithRpcPromise(_0x148bbf('0x48'),_0x148bbf('0x8e'),_0x58ea70);return null;})['then'](function(_0x2a3715){const _0x39dd86=_0x308767;if(_0x2a3715)return _0x2a3715[_0x39dd86('0x81')][_0x39dd86('0x1e')]=util['format'](_0x39dd86('0x8a'),_0x26122d['user'][_0x39dd86('0x55')]),_0x2a3715[_0x39dd86('0x81')][_0x39dd86('0x7')]=_0x58ea70[_0x39dd86('0x7')],_0x2a3715[_0x39dd86('0x81')][_0x39dd86('0x92')]=_0x39dd86('0x6'),respondWithRpcPromise(_0x39dd86('0x27'),_0x39dd86('0x27'),{'event':_0x39dd86('0x3b'),'message':_0x2a3715[_0x39dd86('0x81')]},client9002),_0x58ea70;return null;})[_0x308767('0x23')](respondWithResult(_0x57b2b5,null))['catch'](handleError(_0x57b2b5,null));},exports[_0x344574('0x26')]=function(_0x1509b1,_0x583844){const _0x4c17f6=_0x344574,_0x409770=moment()[_0x4c17f6('0x72')]()[_0x4c17f6('0xf')](),_0x42a609=path[_0x4c17f6('0x4a')](config[_0x4c17f6('0x31')],_0x4c17f6('0x78'),_0x4c17f6('0x7c')),_0x210bf0=path['join'](config[_0x4c17f6('0x31')],'server','files',_0x4c17f6('0x56')),_0xa73ff7=util[_0x4c17f6('0x61')](_0x4c17f6('0x7d'),_0x409770);return db[_0x4c17f6('0x8f')][_0x4c17f6('0x39')]({'where':{'id':_0x1509b1[_0x4c17f6('0x4d')]['id']},'attributes':['id',_0x4c17f6('0x60'),'from','to','cc',_0x4c17f6('0x13'),_0x4c17f6('0x34'),'createdAt'],'include':_0x1509b1['query']['attachments']?[{'model':db[_0x4c17f6('0x5c')],'as':_0x4c17f6('0x37')}]:undefined})[_0x4c17f6('0x23')](handleEntityNotFound(_0x583844,null))[_0x4c17f6('0x23')](function(_0x480e44){const _0x4524a8=_0x4c17f6;if(_0x480e44){const _0x1f68fe=_0x480e44,_0x22b0b0={'from':_0x1f68fe[_0x4524a8('0x40')],'to':_0x1f68fe['to'],'subject':_0x1f68fe[_0x4524a8('0x34')],'html':_0x1f68fe[_0x4524a8('0x60')],'headers':{'Date':moment(_0x1f68fe['createdAt'])[_0x4524a8('0x61')](_0x4524a8('0x80'))},'attachments':[]};return _0x480e44['cc']&&(_0x22b0b0[_0x4524a8('0xb')]['Cc']=_0x480e44['cc']),_0x480e44[_0x4524a8('0x13')]&&(_0x22b0b0['headers'][_0x4524a8('0x90')]=_0x480e44[_0x4524a8('0x13')]),new Promise(function(_0x3223ee,_0x548c8e){const _0x1901d3=_0x4524a8;if(_0x480e44[_0x1901d3('0x37')])for(let _0xbe10f6=0x0;_0xbe10f6<_0x480e44['Attachments'][_0x1901d3('0x52')];_0xbe10f6++){const _0x3a236c=_0x480e44[_0x1901d3('0x37')][_0xbe10f6],_0x2188d7=path[_0x1901d3('0x4a')](_0x210bf0,_0x3a236c[_0x1901d3('0x29')]);fs[_0x1901d3('0x5d')](_0x2188d7)&&_0x22b0b0[_0x1901d3('0x56')]['push']({'name':_0x3a236c['name'],'contentType':_0x3a236c[_0x1901d3('0x4b')],'data':fs['readFileSync'](_0x2188d7)});}emlformat['build'](_0x22b0b0,function(_0x330c6b,_0x570287){const _0x427016=_0x1901d3;if(_0x330c6b)return _0x548c8e(_0x330c6b);return fs[_0x427016('0x94')](path[_0x427016('0x4a')](_0x42a609,_0xa73ff7),_0x570287),_0x3223ee(_0x570287);});});}})[_0x4c17f6('0x23')](function(_0x3f7c3f){const _0x15c888=_0x4c17f6;if(_0x3f7c3f)return _0x583844['download'](path[_0x15c888('0x4a')](_0x42a609,_0xa73ff7),_0xa73ff7,function(_0xd2cc10){const _0x3e3a09=_0x15c888;_0xd2cc10?console[_0x3e3a09('0x12')]('err',_0xd2cc10):fs[_0x3e3a09('0x35')](path['join'](_0x42a609,_0xa73ff7));});})[_0x4c17f6('0x33')](handleError(_0x583844,null));}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.events.js b/server/api/mailMessage/mailMessage.events.js index 06685bb..fca7e17 100644 --- a/server/api/mailMessage/mailMessage.events.js +++ b/server/api/mailMessage/mailMessage.events.js @@ -1 +1 @@ -const a414_0x3f16=['exports','emit','addHook','undefined','setMaxListeners'];(function(_0x2fd357,_0x3f16e1){const _0x3ecc8a=function(_0x5910b7){while(--_0x5910b7){_0x2fd357['push'](_0x2fd357['shift']());}};_0x3ecc8a(++_0x3f16e1);}(a414_0x3f16,0x87));const a414_0x3ecc=function(_0x2fd357,_0x3f16e1){_0x2fd357=_0x2fd357-0x0;let _0x3ecc8a=a414_0x3f16[_0x2fd357];return _0x3ecc8a;};const _0x2f13a4=a414_0x3ecc;'use strict';const EventEmitter=require('events'),MailMessage=require('../../mysqldb')['db']['MailMessage'],MailMessageEvents=new EventEmitter();MailMessageEvents[_0x2f13a4('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x5910b7){return function(_0x45cb7d){const _0x1a6be7=a414_0x3ecc;MailMessageEvents[_0x1a6be7('0x1')](_0x5910b7+':'+_0x45cb7d['id'],_0x45cb7d),MailMessageEvents['emit'](_0x5910b7,_0x45cb7d);};}for(const e in events){if(typeof events[e]!==_0x2f13a4('0x3')){const event=events[e];MailMessage[_0x2f13a4('0x2')](e,emitEvent(event));}}module[_0x2f13a4('0x0')]=MailMessageEvents; \ No newline at end of file +const a414_0x5326=['setMaxListeners','emit','remove','MailMessage','update','../../mysqldb'];(function(_0x3a88ee,_0x532695){const _0x405ffe=function(_0x1dc055){while(--_0x1dc055){_0x3a88ee['push'](_0x3a88ee['shift']());}};_0x405ffe(++_0x532695);}(a414_0x5326,0x176));const a414_0x405f=function(_0x3a88ee,_0x532695){_0x3a88ee=_0x3a88ee-0x0;let _0x405ffe=a414_0x5326[_0x3a88ee];return _0x405ffe;};const _0x34c06c=a414_0x405f;'use strict';const EventEmitter=require('events'),MailMessage=require(_0x34c06c('0x3'))['db'][_0x34c06c('0x1')],MailMessageEvents=new EventEmitter();MailMessageEvents[_0x34c06c('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':_0x34c06c('0x2'),'afterDestroy':_0x34c06c('0x0')};function emitEvent(_0x1dc055){return function(_0x3593f3){const _0x16e5fa=a414_0x405f;MailMessageEvents[_0x16e5fa('0x5')](_0x1dc055+':'+_0x3593f3['id'],_0x3593f3),MailMessageEvents[_0x16e5fa('0x5')](_0x1dc055,_0x3593f3);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];MailMessage['addHook'](e,emitEvent(event));}}module['exports']=MailMessageEvents; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.model.js b/server/api/mailMessage/mailMessage.model.js index b23da9f..2d71390 100644 --- a/server/api/mailMessage/mailMessage.model.js +++ b/server/api/mailMessage/mailMessage.model.js @@ -1 +1 @@ -const a415_0x315a=['mail_messages','out','MailInteraction','error','fti_mail_messages','utf8mb4','messageId','MailMessage','./mailMessage.attributes','UserId','get','then','catch','findOne','utf8mb4_unicode_ci','html-to-text','createdAt','direction','toLowerCase','subject','body','plainBody','exports','update','models','secret'];(function(_0x21bcb2,_0x315a6e){const _0x594918=function(_0x2ff37d){while(--_0x2ff37d){_0x21bcb2['push'](_0x21bcb2['shift']());}};_0x594918(++_0x315a6e);}(a415_0x315a,0x1e6));const a415_0x5949=function(_0x21bcb2,_0x315a6e){_0x21bcb2=_0x21bcb2-0x0;let _0x594918=a415_0x315a[_0x21bcb2];return _0x594918;};const _0x53a995=a415_0x5949;'use strict';const _=require('lodash'),{htmlToText}=require(_0x53a995('0x17')),attributes=require(_0x53a995('0x10'));module[_0x53a995('0x4')]=function(_0x2ff37d){const _0x1c6206=_0x53a995,_0x312b6b=_0x2ff37d[_0x1c6206('0x6')],_0x208d22=_0x2ff37d['define'](_0x1c6206('0xf'),attributes,{'tableName':_0x1c6206('0x8'),'paranoid':![],'indexes':[{'name':_0x1c6206('0xe'),'fields':[_0x1c6206('0xe')]},{'name':_0x1c6206('0xc'),'fields':[_0x1c6206('0x3'),_0x1c6206('0x1')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x1a2dc3){const _0x2d1c51=_0x1c6206;_0x1a2dc3[_0x2d1c51('0x2')]&&(_0x1a2dc3[_0x2d1c51('0x3')]=htmlToText(_0x1a2dc3[_0x2d1c51('0x2')],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x1a3800){const _0x3fd397=_0x1c6206,_0x25160=_0x1a3800[_0x3fd397('0x12')]({'plain':!![]});(_0x25160[_0x3fd397('0x19')]['toLowerCase']()==='in'||_0x25160[_0x3fd397('0x19')][_0x3fd397('0x0')]()===_0x3fd397('0x9')&&!_0x25160[_0x3fd397('0x7')]&&!_['isNil'](_0x25160[_0x3fd397('0x11')]))&&_0x312b6b[_0x3fd397('0xa')][_0x3fd397('0x15')]({'where':{'id':_0x25160['MailInteractionId']}})[_0x3fd397('0x13')](function(_0x128a5c){const _0x3313cb=_0x3fd397;_0x128a5c&&_0x128a5c[_0x3313cb('0x5')]({'lastMsgAt':_0x25160[_0x3313cb('0x18')],'lastMsgDirection':_0x25160[_0x3313cb('0x19')][_0x3313cb('0x0')](),'lastMsgBody':_0x25160[_0x3313cb('0x2')]});})[_0x3fd397('0x14')](function(_0x232b64){const _0xb4b58a=_0x3fd397;console[_0xb4b58a('0xb')](_0x232b64);});}},'charset':_0x1c6206('0xd'),'collate':_0x1c6206('0x16')});return _0x208d22;}; \ No newline at end of file +const a415_0x20d5=['get','body','MailMessage','lodash','MailInteraction','./mailMessage.attributes','then','plainBody','update','mail_messages','define','subject','toLowerCase','FULLTEXT','messageId','direction','utf8mb4','fti_mail_messages','UserId','catch','error','findOne','MailInteractionId','out','utf8mb4_unicode_ci','isNil'];(function(_0x316499,_0x20d5f9){const _0x1f92b3=function(_0x158b09){while(--_0x158b09){_0x316499['push'](_0x316499['shift']());}};_0x1f92b3(++_0x20d5f9);}(a415_0x20d5,0x148));const a415_0x1f92=function(_0x316499,_0x20d5f9){_0x316499=_0x316499-0x0;let _0x1f92b3=a415_0x20d5[_0x316499];return _0x1f92b3;};const _0x201eba=a415_0x1f92;'use strict';const _=require(_0x201eba('0xd')),{htmlToText}=require('html-to-text'),attributes=require(_0x201eba('0xf'));module['exports']=function(_0x158b09){const _0x103543=_0x201eba,_0x3f884a=_0x158b09['models'],_0x8c8ff4=_0x158b09[_0x103543('0x14')](_0x103543('0xc'),attributes,{'tableName':_0x103543('0x13'),'paranoid':![],'indexes':[{'name':_0x103543('0x18'),'fields':[_0x103543('0x18')]},{'name':_0x103543('0x1'),'fields':[_0x103543('0x11'),_0x103543('0x15')],'type':_0x103543('0x17')}],'timestamps':!![],'hooks':{'beforeCreate':function(_0x214f5c){const _0x3bf51b=_0x103543;_0x214f5c[_0x3bf51b('0xb')]&&(_0x214f5c[_0x3bf51b('0x11')]=htmlToText(_0x214f5c['body'],{'preserveNewlines':!![],'singleNewLineParagraphs':!![],'uppercaseHeadings':![],'noLinkBrackets':!![],'ignoreImage':!![]}));},'afterCreate':function(_0x4510eb){const _0x215828=_0x103543,_0x57f050=_0x4510eb[_0x215828('0xa')]({'plain':!![]});(_0x57f050[_0x215828('0x19')][_0x215828('0x16')]()==='in'||_0x57f050[_0x215828('0x19')][_0x215828('0x16')]()===_0x215828('0x7')&&!_0x57f050['secret']&&!_[_0x215828('0x9')](_0x57f050[_0x215828('0x2')]))&&_0x3f884a[_0x215828('0xe')][_0x215828('0x5')]({'where':{'id':_0x57f050[_0x215828('0x6')]}})[_0x215828('0x10')](function(_0x1270c2){const _0x3a0a1a=_0x215828;_0x1270c2&&_0x1270c2[_0x3a0a1a('0x12')]({'lastMsgAt':_0x57f050['createdAt'],'lastMsgDirection':_0x57f050[_0x3a0a1a('0x19')][_0x3a0a1a('0x16')](),'lastMsgBody':_0x57f050[_0x3a0a1a('0xb')]});})[_0x215828('0x3')](function(_0x44b7ef){const _0x162f78=_0x215828;console[_0x162f78('0x4')](_0x44b7ef);});}},'charset':_0x103543('0x0'),'collate':_0x103543('0x8')});return _0x8c8ff4;}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.rpc.js b/server/api/mailMessage/mailMessage.rpc.js index 52d157b..ab2346b 100644 --- a/server/api/mailMessage/mailMessage.rpc.js +++ b/server/api/mailMessage/mailMessage.rpc.js @@ -1 +1 @@ -const a416_0x1803=['raw','register','CreateMailMessage','options','debug','../../config/logger','then','./mailMessage.socket','error','stringify','../../rediscache','rpc','create','MailMessage','message'];(function(_0x5856d0,_0x180377){const _0x249a61=function(_0x41e81c){while(--_0x41e81c){_0x5856d0['push'](_0x5856d0['shift']());}};_0x249a61(++_0x180377);}(a416_0x1803,0x1b2));const a416_0x249a=function(_0x5856d0,_0x180377){_0x5856d0=_0x5856d0-0x0;let _0x249a61=a416_0x1803[_0x5856d0];return _0x249a61;};const _0x10db3e=a416_0x249a;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x10db3e('0x6'))(_0x10db3e('0xc')),{getSocket}=require(_0x10db3e('0xb')),socket=getSocket();require(_0x10db3e('0x8'))[_0x10db3e('0x2')](socket),exports[_0x10db3e('0x3')]=function(_0x41e81c){const _0xd3ff94=this;return new Promise(function(_0x2b600b,_0x28aa37){const _0x3d9b74=a416_0x249a;return db[_0x3d9b74('0xe')][_0x3d9b74('0xd')](_0x41e81c['body'],{'raw':_0x41e81c[_0x3d9b74('0x4')]?_0x41e81c[_0x3d9b74('0x4')][_0x3d9b74('0x1')]===undefined?!![]:![]:!![]})[_0x3d9b74('0x7')](function(_0x5da866){const _0x22c493=_0x3d9b74;logger['info'](_0x22c493('0x3'),_0x41e81c),logger[_0x22c493('0x5')](_0x22c493('0x3'),_0x41e81c,JSON[_0x22c493('0xa')](_0x5da866)),_0x2b600b(_0x5da866);})['catch'](function(_0x259ec0){const _0x43d3be=_0x3d9b74;logger[_0x43d3be('0x9')](_0x43d3be('0x3'),_0x259ec0['message'],_0x41e81c),_0x28aa37(_0xd3ff94[_0x43d3be('0x9')](0x1f4,_0x259ec0[_0x43d3be('0x0')]));});});}; \ No newline at end of file +const a416_0x3552=['./mailMessage.socket','create','catch','../../config/logger','body','message','../../mysqldb','register','stringify','debug','raw','info','error','options','rpc','CreateMailMessage'];(function(_0x4962b8,_0x355279){const _0x4e1c41=function(_0x5490f6){while(--_0x5490f6){_0x4962b8['push'](_0x4962b8['shift']());}};_0x4e1c41(++_0x355279);}(a416_0x3552,0x1ce));const a416_0x4e1c=function(_0x4962b8,_0x355279){_0x4962b8=_0x4962b8-0x0;let _0x4e1c41=a416_0x3552[_0x4962b8];return _0x4e1c41;};const _0x4c5919=a416_0x4e1c;'use strict';const db=require(_0x4c5919('0x8'))['db'],logger=require(_0x4c5919('0x5'))(_0x4c5919('0x0')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x4c5919('0x2'))[_0x4c5919('0x9')](socket),exports[_0x4c5919('0x1')]=function(_0x5490f6){const _0x530e10=this;return new Promise(function(_0x33d802,_0x34cd2e){const _0x3e1e01=a416_0x4e1c;return db['MailMessage'][_0x3e1e01('0x3')](_0x5490f6[_0x3e1e01('0x6')],{'raw':_0x5490f6['options']?_0x5490f6[_0x3e1e01('0xf')][_0x3e1e01('0xc')]===undefined?!![]:![]:!![]})['then'](function(_0x345fc5){const _0x28022a=_0x3e1e01;logger[_0x28022a('0xd')]('CreateMailMessage',_0x5490f6),logger[_0x28022a('0xb')](_0x28022a('0x1'),_0x5490f6,JSON[_0x28022a('0xa')](_0x345fc5)),_0x33d802(_0x345fc5);})[_0x3e1e01('0x4')](function(_0x25becd){const _0x50c16f=_0x3e1e01;logger[_0x50c16f('0xe')](_0x50c16f('0x1'),_0x25becd[_0x50c16f('0x7')],_0x5490f6),_0x34cd2e(_0x530e10['error'](0x1f4,_0x25becd[_0x50c16f('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/mailMessage/mailMessage.socket.js b/server/api/mailMessage/mailMessage.socket.js index 46eaed0..872269f 100644 --- a/server/api/mailMessage/mailMessage.socket.js +++ b/server/api/mailMessage/mailMessage.socket.js @@ -1 +1 @@ -const a417_0x4f3f=['register','./mailMessage.events','remove','mailMessage:','length','update'];(function(_0x293855,_0x4f3f55){const _0x26f8ad=function(_0x4c0889){while(--_0x4c0889){_0x293855['push'](_0x293855['shift']());}};_0x26f8ad(++_0x4f3f55);}(a417_0x4f3f,0xb3));const a417_0x26f8=function(_0x293855,_0x4f3f55){_0x293855=_0x293855-0x0;let _0x26f8ad=a417_0x4f3f[_0x293855];return _0x26f8ad;};const _0x3a589d=a417_0x26f8;'use strict';const MailMessageEvents=require(_0x3a589d('0x2')),events=['save',_0x3a589d('0x3'),_0x3a589d('0x0')];function createListener(_0x4c0889,_0x54114a){return function(_0x30ad1f){_0x54114a['emit'](_0x4c0889,_0x30ad1f);};}exports[_0x3a589d('0x1')]=function(_0x11eff8){const _0xc5ac2d=_0x3a589d;for(let _0x5529a5=0x0,_0x1e0c87=events[_0xc5ac2d('0x5')];_0x5529a5<_0x1e0c87;_0x5529a5++){const _0x4cc171=events[_0x5529a5],_0x218b4d=createListener(_0xc5ac2d('0x4')+_0x4cc171,_0x11eff8);MailMessageEvents['on'](_0x4cc171,_0x218b4d);}}; \ No newline at end of file +const a417_0x3aec=['save','mailMessage:','register','length','./mailMessage.events','update','emit'];(function(_0x5ca7f9,_0x3aeca2){const _0x426347=function(_0x558777){while(--_0x558777){_0x5ca7f9['push'](_0x5ca7f9['shift']());}};_0x426347(++_0x3aeca2);}(a417_0x3aec,0x85));const a417_0x4263=function(_0x5ca7f9,_0x3aeca2){_0x5ca7f9=_0x5ca7f9-0x0;let _0x426347=a417_0x3aec[_0x5ca7f9];return _0x426347;};const _0x4851b4=a417_0x4263;'use strict';const MailMessageEvents=require(_0x4851b4('0x4')),events=[_0x4851b4('0x0'),'remove',_0x4851b4('0x5')];function createListener(_0x558777,_0x15bafa){return function(_0x509a66){const _0x3a77be=a417_0x4263;_0x15bafa[_0x3a77be('0x6')](_0x558777,_0x509a66);};}exports[_0x4851b4('0x2')]=function(_0x4bf79f){const _0x4bf2c2=_0x4851b4;for(let _0x1b0477=0x0,_0x4c8ada=events[_0x4bf2c2('0x3')];_0x1b0477<_0x4c8ada;_0x1b0477++){const _0xb0f05f=events[_0x1b0477],_0x3c13d5=createListener(_0x4bf2c2('0x1')+_0xb0f05f,_0x4bf79f);MailMessageEvents['on'](_0xb0f05f,_0x3c13d5);}}; \ No newline at end of file diff --git a/server/api/mailQueue/index.js b/server/api/mailQueue/index.js index 8f4cb36..5b2ba01 100644 --- a/server/api/mailQueue/index.js +++ b/server/api/mailQueue/index.js @@ -1 +1 @@ -const a418_0x5b86=['isAuthenticated','update','removeAgents','show','/:id/users','index','Router','describe','destroy','removeTeams','/:id/teams','delete','addAgents','exports','/:id','/:id/members','express','get','post','/describe','put','getTeams'];(function(_0x5154a1,_0x5b8686){const _0x531a17=function(_0x35329a){while(--_0x35329a){_0x5154a1['push'](_0x5154a1['shift']());}};_0x531a17(++_0x5b8686);}(a418_0x5b86,0x8a));const a418_0x531a=function(_0x5154a1,_0x5b8686){_0x5154a1=_0x5154a1-0x0;let _0x531a17=a418_0x5b86[_0x5154a1];return _0x531a17;};const _0x4e69d5=a418_0x531a;'use strict';const express=require(_0x4e69d5('0xa')),router=express[_0x4e69d5('0x0')](),auth=require('../../components/auth/service'),controller=require('./mailQueue.controller');router[_0x4e69d5('0xb')]('/',auth['isAuthenticated'](),controller[_0x4e69d5('0x15')]),router[_0x4e69d5('0xb')](_0x4e69d5('0xd'),auth[_0x4e69d5('0x10')](),controller[_0x4e69d5('0x1')]),router[_0x4e69d5('0xb')](_0x4e69d5('0x8'),auth['isAuthenticated'](),controller[_0x4e69d5('0x13')]),router['get'](_0x4e69d5('0x9'),auth[_0x4e69d5('0x10')](),controller['getMembers']),router[_0x4e69d5('0xb')](_0x4e69d5('0x4'),auth[_0x4e69d5('0x10')](),controller[_0x4e69d5('0xf')]),router[_0x4e69d5('0xb')]('/:id/users',auth[_0x4e69d5('0x10')](),controller['getAgents']),router[_0x4e69d5('0xc')]('/',auth['isAuthenticated'](),controller['create']),router[_0x4e69d5('0xc')]('/:id/teams',auth[_0x4e69d5('0x10')](),controller['addTeams']),router[_0x4e69d5('0xc')](_0x4e69d5('0x14'),auth[_0x4e69d5('0x10')](),controller[_0x4e69d5('0x6')]),router[_0x4e69d5('0xe')](_0x4e69d5('0x8'),auth['isAuthenticated'](),controller[_0x4e69d5('0x11')]),router[_0x4e69d5('0x5')](_0x4e69d5('0x8'),auth[_0x4e69d5('0x10')](),controller[_0x4e69d5('0x2')]),router['delete'](_0x4e69d5('0x4'),auth[_0x4e69d5('0x10')](),controller[_0x4e69d5('0x3')]),router[_0x4e69d5('0x5')](_0x4e69d5('0x14'),auth['isAuthenticated'](),controller[_0x4e69d5('0x12')]),module[_0x4e69d5('0x7')]=router; \ No newline at end of file +const a418_0x33a3=['Router','removeTeams','get','express','removeAgents','getTeams','/:id/users','isAuthenticated','show','getMembers','exports','destroy','put','/:id/teams','/:id','create','getAgents','delete','post'];(function(_0x1f8bb5,_0x33a395){const _0x4fe369=function(_0x28a54a){while(--_0x28a54a){_0x1f8bb5['push'](_0x1f8bb5['shift']());}};_0x4fe369(++_0x33a395);}(a418_0x33a3,0x12b));const a418_0x4fe3=function(_0x1f8bb5,_0x33a395){_0x1f8bb5=_0x1f8bb5-0x0;let _0x4fe369=a418_0x33a3[_0x1f8bb5];return _0x4fe369;};const _0x266c9d=a418_0x4fe3;'use strict';const express=require(_0x266c9d('0x8')),router=express[_0x266c9d('0x5')](),auth=require('../../components/auth/service'),controller=require('./mailQueue.controller');router['get']('/',auth[_0x266c9d('0xc')](),controller['index']),router['get']('/describe',auth['isAuthenticated'](),controller['describe']),router[_0x266c9d('0x7')](_0x266c9d('0x0'),auth[_0x266c9d('0xc')](),controller[_0x266c9d('0xd')]),router[_0x266c9d('0x7')]('/:id/members',auth[_0x266c9d('0xc')](),controller[_0x266c9d('0xe')]),router[_0x266c9d('0x7')](_0x266c9d('0x12'),auth['isAuthenticated'](),controller[_0x266c9d('0xa')]),router[_0x266c9d('0x7')](_0x266c9d('0xb'),auth[_0x266c9d('0xc')](),controller[_0x266c9d('0x2')]),router[_0x266c9d('0x4')]('/',auth[_0x266c9d('0xc')](),controller[_0x266c9d('0x1')]),router[_0x266c9d('0x4')](_0x266c9d('0x12'),auth[_0x266c9d('0xc')](),controller['addTeams']),router['post'](_0x266c9d('0xb'),auth[_0x266c9d('0xc')](),controller['addAgents']),router[_0x266c9d('0x11')](_0x266c9d('0x0'),auth[_0x266c9d('0xc')](),controller['update']),router['delete'](_0x266c9d('0x0'),auth[_0x266c9d('0xc')](),controller[_0x266c9d('0x10')]),router['delete'](_0x266c9d('0x12'),auth['isAuthenticated'](),controller[_0x266c9d('0x6')]),router[_0x266c9d('0x3')](_0x266c9d('0xb'),auth[_0x266c9d('0xc')](),controller[_0x266c9d('0x9')]),module[_0x266c9d('0xf')]=router; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.attributes.js b/server/api/mailQueue/mailQueue.attributes.js index ee8adb6..2f06515 100644 --- a/server/api/mailQueue/mailQueue.attributes.js +++ b/server/api/mailQueue/mailQueue.attributes.js @@ -1 +1 @@ -const a419_0x3443=['roundrobin','sequelize','INTEGER','STRING','name','exports','beepall','ENUM'];(function(_0x47cf66,_0x344386){const _0x5696d0=function(_0x27e8e9){while(--_0x27e8e9){_0x47cf66['push'](_0x47cf66['shift']());}};_0x5696d0(++_0x344386);}(a419_0x3443,0xcf));const a419_0x5696=function(_0x47cf66,_0x344386){_0x47cf66=_0x47cf66-0x0;let _0x5696d0=a419_0x3443[_0x47cf66];return _0x5696d0;};const _0x490d80=a419_0x5696;'use strict';const Sequelize=require(_0x490d80('0x2'));module[_0x490d80('0x6')]={'name':{'type':Sequelize[_0x490d80('0x4')],'unique':_0x490d80('0x5'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x490d80('0x4')]},'timeout':{'type':Sequelize[_0x490d80('0x3')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x490d80('0x0')]('rrmemory',_0x490d80('0x7'),_0x490d80('0x1'))}}; \ No newline at end of file +const a419_0x1574=['name','STRING','rrmemory','exports','sequelize','beepall','INTEGER','roundrobin'];(function(_0x4d255e,_0x157450){const _0x54c074=function(_0x410453){while(--_0x410453){_0x4d255e['push'](_0x4d255e['shift']());}};_0x54c074(++_0x157450);}(a419_0x1574,0x1ab));const a419_0x54c0=function(_0x4d255e,_0x157450){_0x4d255e=_0x4d255e-0x0;let _0x54c074=a419_0x1574[_0x4d255e];return _0x54c074;};const _0x32524f=a419_0x54c0;'use strict';const Sequelize=require(_0x32524f('0x1'));module[_0x32524f('0x0')]={'name':{'type':Sequelize[_0x32524f('0x6')],'unique':_0x32524f('0x5'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x32524f('0x6')]},'timeout':{'type':Sequelize[_0x32524f('0x3')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM'](_0x32524f('0x7'),_0x32524f('0x2'),_0x32524f('0x4'))}}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.controller.js b/server/api/mailQueue/mailQueue.controller.js index 9cf93c5..7d7a3ed 100644 --- a/server/api/mailQueue/mailQueue.controller.js +++ b/server/api/mailQueue/mailQueue.controller.js @@ -1 +1 @@ -const a420_0x3840=['../../mysqldb','then','tq.TeamId','join','field','error','push','SIP','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','name','status','forEach','catch','length','removeTeams','transaction','body','voicePause','sort','findAndCountAll','get','model','pick','rows','autoAssociation','userMailQueue:save','offset','MailQueues','keys','filters','value','findAll','end','flatMap','undefined','online','ut.TeamId\x20=\x20tq.TeamId','json','role','util','mailPause','order','union','user','includes','../../config/logger','like','findOne','show','intersection','fields','sequelize','register','compact','format','User','fieldName','destroy','query','attributes','count','Content-Range','rawAttributes','all','MailQueueId\x20=\x20?','findOrCreate','map','UserId','where','lodash','from','createdAt','emit','userMailQueue:remove','MailQueue','filter','type','VIRTUAL','./mailQueue.socket','TeamId','select','agent','Team','Agents','removeAgents','getAgents','describe','clone','params','getTeams','options','updatedAt','sendStatus','update','UserProfileResource','userProfileId','api','merge','isArray','isEmpty','stack','create','limit','key','every','UserMailQueue','each','ids','nolimit','include'];(function(_0x40bbc7,_0x38406f){const _0x5ec3c1=function(_0x417844){while(--_0x417844){_0x40bbc7['push'](_0x40bbc7['shift']());}};_0x5ec3c1(++_0x38406f);}(a420_0x3840,0x71));const a420_0x5ec3=function(_0x40bbc7,_0x38406f){_0x40bbc7=_0x40bbc7-0x0;let _0x5ec3c1=a420_0x3840[_0x40bbc7];return _0x5ec3c1;};const _0x20aa7f=a420_0x5ec3;'use strict';const util=require(_0x20aa7f('0x24')),_=require(_0x20aa7f('0x42')),squel=require('squel'),qs=require('../../components/parsers/qs'),logger=require(_0x20aa7f('0x2a'))(_0x20aa7f('0x5d')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x20aa7f('0x6b'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x20aa7f('0x4b'))[_0x20aa7f('0x31')](socket);function respondWithStatusCode(_0x417844,_0x1fd1f8){return _0x1fd1f8=_0x1fd1f8||0xcc,function(_0x8029ab){const _0x5197cf=a420_0x5ec3;if(_0x8029ab)return _0x417844[_0x5197cf('0x59')](_0x1fd1f8);return _0x417844[_0x5197cf('0x7')](_0x1fd1f8)[_0x5197cf('0x1d')]();};}function respondWithResult(_0x50d929,_0x32afa5){return _0x32afa5=_0x32afa5||0xc8,function(_0x221025){const _0x50df5e=a420_0x5ec3;if(_0x221025)return _0x50d929[_0x50df5e('0x7')](_0x32afa5)[_0x50df5e('0x22')](_0x221025);};}function respondWithFilteredResult(_0xaa7616,_0x2f1aa7){return function(_0x1b7721){const _0x5249fb=a420_0x5ec3;if(_0x1b7721){const _0x322c90=_0x1b7721['count'],_0x15b3b2=_0x2f1aa7[_0x5249fb('0x17')];let _0x1a550d=_0x2f1aa7[_0x5249fb('0x17')]+_0x2f1aa7[_0x5249fb('0x63')],_0xa43186;return _0x1a550d>=_0x322c90?(_0x1a550d=_0x322c90,_0xa43186=0xc8):_0xa43186=0xce,_0xaa7616[_0x5249fb('0x7')](_0xa43186),_0xaa7616['set'](_0x5249fb('0x3a'),_0x15b3b2+'-'+_0x1a550d+'/'+_0x322c90)[_0x5249fb('0x22')](_0x1b7721);}return null;};}function saveUpdates(_0x50fcf9){return function(_0x4018f5){const _0x4778cb=a420_0x5ec3;if(_0x4018f5)return _0x4018f5[_0x4778cb('0x5a')](_0x50fcf9)[_0x4778cb('0x6c')](function(_0x751c2b){return _0x751c2b;});return null;};}function removeEntity(_0x11d587){return function(_0x2d87e8){const _0x269dc6=a420_0x5ec3;if(_0x2d87e8)return _0x2d87e8[_0x269dc6('0x36')]()[_0x269dc6('0x6c')](function(){const _0x3d1e14=_0x269dc6,_0x755884=_0x2d87e8[_0x3d1e14('0x11')]({'plain':!![]}),_0xe9e96a=_0x3d1e14('0x18');return db[_0x3d1e14('0x5b')][_0x3d1e14('0x36')]({'where':{'type':_0xe9e96a,'resourceId':_0x755884['id']}})['then'](function(){return _0x2d87e8;});})['then'](function(){const _0x1457a6=_0x269dc6;_0x11d587[_0x1457a6('0x7')](0xcc)[_0x1457a6('0x1d')]();});};}function handleEntityNotFound(_0x3fd35d){return function(_0x5c421c){return!_0x5c421c&&_0x3fd35d['sendStatus'](0x194),_0x5c421c;};}function handleError(_0xcc7ccb,_0x4e43e3){return _0x4e43e3=_0x4e43e3||0x1f4,function(_0x186bee){const _0x70d730=a420_0x5ec3;logger[_0x70d730('0x2')](_0x186bee[_0x70d730('0x61')]),_0x186bee[_0x70d730('0x6')]&&delete _0x186bee[_0x70d730('0x6')],_0xcc7ccb[_0x70d730('0x7')](_0x4e43e3)['send'](_0x186bee);};}exports['index']=function(_0x404281,_0x3744ab){const _0x16c1fc=_0x20aa7f;let _0x356ab9={};const _0x5a72e5={},_0x5e6e53={'count':0x0,'rows':[]},_0x535632=_[_0x16c1fc('0x3f')](db[_0x16c1fc('0x47')][_0x16c1fc('0x3b')],function(_0x5b8731){const _0x5138e5=_0x16c1fc;return{'name':_0x5b8731[_0x5138e5('0x35')],'type':_0x5b8731[_0x5138e5('0x49')][_0x5138e5('0x64')]};});_0x5a72e5['model']=_[_0x16c1fc('0x3f')](_0x535632,_0x16c1fc('0x6')),_0x5a72e5['query']=_[_0x16c1fc('0x19')](_0x404281[_0x16c1fc('0x37')]),_0x5a72e5['filters']=_['intersection'](_0x5a72e5['model'],_0x5a72e5[_0x16c1fc('0x37')]),_0x356ab9['attributes']=_['intersection'](_0x5a72e5[_0x16c1fc('0x12')],qs[_0x16c1fc('0x2f')](_0x404281[_0x16c1fc('0x37')][_0x16c1fc('0x2f')])),_0x356ab9[_0x16c1fc('0x38')]=_0x356ab9[_0x16c1fc('0x38')]['length']?_0x356ab9[_0x16c1fc('0x38')]:_0x5a72e5[_0x16c1fc('0x12')];typeof _0x404281[_0x16c1fc('0x37')][_0x16c1fc('0x69')]===_0x16c1fc('0x1f')&&(_0x356ab9['limit']=qs[_0x16c1fc('0x63')](_0x404281[_0x16c1fc('0x37')]['limit']),_0x356ab9['offset']=qs['offset'](_0x404281[_0x16c1fc('0x37')]['offset']));_0x356ab9['order']=qs[_0x16c1fc('0xf')](_0x404281[_0x16c1fc('0x37')][_0x16c1fc('0xf')]),_0x356ab9[_0x16c1fc('0x41')]=qs[_0x16c1fc('0x1a')](_[_0x16c1fc('0x13')](_0x404281[_0x16c1fc('0x37')],_0x5a72e5[_0x16c1fc('0x1a')]),_0x535632);_0x404281['query'][_0x16c1fc('0x48')]&&(_0x356ab9[_0x16c1fc('0x41')]=_['merge'](_0x356ab9[_0x16c1fc('0x41')],{[Op['or']]:_[_0x16c1fc('0x3f')](_0x535632,function(_0x549645){const _0x14ca3a=_0x16c1fc;if(_0x549645[_0x14ca3a('0x49')]!==_0x14ca3a('0x4a')){const _0x20d957={};return _0x20d957[_0x549645['name']]={[Op[_0x14ca3a('0x2b')]]:'%'+_0x404281[_0x14ca3a('0x37')][_0x14ca3a('0x48')]+'%'},_0x20d957;}})}));_0x356ab9=_[_0x16c1fc('0x5e')]({},_0x356ab9,_0x404281['options']);const _0xf1216a={'where':_0x356ab9[_0x16c1fc('0x41')]};return db[_0x16c1fc('0x47')][_0x16c1fc('0x39')](_0xf1216a)['then'](function(_0x3de04c){const _0x199a3c=_0x16c1fc;return _0x5e6e53[_0x199a3c('0x39')]=_0x3de04c,_0x404281[_0x199a3c('0x37')]['includeAll']&&(_0x356ab9[_0x199a3c('0x6a')]=[{'all':!![]}]),db['MailQueue']['findAll'](_0x356ab9);})[_0x16c1fc('0x6c')](function(_0x2c6ad6){const _0xcbd91c=_0x16c1fc;return _0x5e6e53[_0xcbd91c('0x14')]=_0x2c6ad6,_0x5e6e53;})['then'](respondWithFilteredResult(_0x3744ab,_0x356ab9))['catch'](handleError(_0x3744ab,null));},exports[_0x20aa7f('0x2d')]=function(_0x35a915,_0x3ddb71){const _0x5a1cb1=_0x20aa7f;let _0x15c6f7={'raw':!![],'where':{'id':_0x35a915['params']['id']}};const _0x552085={};return _0x552085[_0x5a1cb1('0x12')]=_[_0x5a1cb1('0x19')](db[_0x5a1cb1('0x47')]['rawAttributes']),_0x552085['query']=_[_0x5a1cb1('0x19')](_0x35a915[_0x5a1cb1('0x37')]),_0x552085[_0x5a1cb1('0x1a')]=_[_0x5a1cb1('0x2e')](_0x552085[_0x5a1cb1('0x12')],_0x552085[_0x5a1cb1('0x37')]),_0x15c6f7[_0x5a1cb1('0x38')]=_[_0x5a1cb1('0x2e')](_0x552085[_0x5a1cb1('0x12')],qs[_0x5a1cb1('0x2f')](_0x35a915[_0x5a1cb1('0x37')][_0x5a1cb1('0x2f')])),_0x15c6f7[_0x5a1cb1('0x38')]=_0x15c6f7[_0x5a1cb1('0x38')][_0x5a1cb1('0xa')]?_0x15c6f7[_0x5a1cb1('0x38')]:_0x552085[_0x5a1cb1('0x12')],_0x35a915['query']['includeAll']&&(_0x15c6f7['include']=[{'all':!![]}]),_0x15c6f7=_[_0x5a1cb1('0x5e')]({},_0x15c6f7,_0x35a915[_0x5a1cb1('0x57')]),db['MailQueue'][_0x5a1cb1('0x2c')](_0x15c6f7)['then'](handleEntityNotFound(_0x3ddb71,null))[_0x5a1cb1('0x6c')](respondWithResult(_0x3ddb71,null))['catch'](handleError(_0x3ddb71,null));},exports[_0x20aa7f('0x62')]=function(_0x585b2e,_0x2c8c62){const _0x4e7b68=_0x20aa7f;return db[_0x4e7b68('0x47')][_0x4e7b68('0x62')](_0x585b2e['body'],{})[_0x4e7b68('0x6c')](function(_0x5091e2){const _0x45730a=_0x4e7b68,_0x93715c=_0x585b2e[_0x45730a('0x28')]['get']({'plain':!![]});if(!_0x93715c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x93715c[_0x45730a('0x23')]===_0x45730a('0x28')){const _0x4fa4fa=_0x5091e2[_0x45730a('0x11')]({'plain':!![]}),_0x5bd167=_0x45730a('0x18');return db['UserProfileSection']['findOne']({'where':{'name':_0x5bd167,'userProfileId':_0x93715c[_0x45730a('0x5c')]},'raw':!![]})['then'](function(_0x305e74){const _0x2b4682=_0x45730a;return _0x305e74&&_0x305e74[_0x2b4682('0x15')]===0x0?db[_0x2b4682('0x5b')]['create']({'name':_0x4fa4fa[_0x2b4682('0x6')],'resourceId':_0x4fa4fa['id'],'type':_0x305e74['name'],'sectionId':_0x305e74['id']},{})[_0x2b4682('0x6c')](function(){return _0x5091e2;}):_0x5091e2;})[_0x45730a('0x9')](function(_0x4f7c99){const _0x37c4ab=_0x45730a;logger[_0x37c4ab('0x2')](_0x37c4ab('0x5'),_0x4f7c99);throw _0x4f7c99;});}return _0x5091e2;})[_0x4e7b68('0x6c')](respondWithResult(_0x2c8c62,0xc9))[_0x4e7b68('0x9')](handleError(_0x2c8c62,null));},exports[_0x20aa7f('0x5a')]=function(_0x33c322,_0x38dd1f){const _0x69011b=_0x20aa7f;return _0x33c322['body']['id']&&delete _0x33c322[_0x69011b('0xd')]['id'],db[_0x69011b('0x47')][_0x69011b('0x2c')]({'where':{'id':_0x33c322[_0x69011b('0x55')]['id']}})[_0x69011b('0x6c')](handleEntityNotFound(_0x38dd1f,null))[_0x69011b('0x6c')](saveUpdates(_0x33c322[_0x69011b('0xd')],null))[_0x69011b('0x6c')](respondWithResult(_0x38dd1f,null))[_0x69011b('0x9')](handleError(_0x38dd1f,null));},exports[_0x20aa7f('0x36')]=function(_0x378f07,_0x99e435){const _0x3129fe=_0x20aa7f;return db[_0x3129fe('0x47')][_0x3129fe('0x2c')]({'where':{'id':_0x378f07[_0x3129fe('0x55')]['id']}})[_0x3129fe('0x6c')](handleEntityNotFound(_0x99e435,null))[_0x3129fe('0x6c')](removeEntity(_0x99e435,null))[_0x3129fe('0x9')](handleError(_0x99e435,null));},exports[_0x20aa7f('0x53')]=function(_0x274725,_0x3f731d){const _0x40af0e=_0x20aa7f;return db[_0x40af0e('0x47')][_0x40af0e('0x53')]()[_0x40af0e('0x6c')](respondWithResult(_0x3f731d,null))['catch'](handleError(_0x3f731d,null));},exports['getMembers']=function(_0x35319f,_0x1c1202){const _0x3f109b=_0x20aa7f;let _0x43c3d7={'raw':!![],'where':{}};const _0x42aa0e={};let _0x208c8b;return db[_0x3f109b('0x47')][_0x3f109b('0x2c')]({'where':{'id':_0x35319f[_0x3f109b('0x55')]['id']}})['then'](handleEntityNotFound(_0x1c1202,null))['then'](function(_0x334ce5){const _0x2806db=_0x3f109b;if(_0x334ce5)return _0x208c8b=_0x334ce5[_0x2806db('0x11')]({'plain':!![]}),_0x42aa0e['model']=_['keys'](db[_0x2806db('0x66')]['rawAttributes']),_0x42aa0e[_0x2806db('0x37')]=_[_0x2806db('0x19')](_0x35319f[_0x2806db('0x37')]),_0x42aa0e[_0x2806db('0x1a')]=_['intersection'](_0x42aa0e[_0x2806db('0x12')],_0x42aa0e[_0x2806db('0x37')]),_0x43c3d7[_0x2806db('0x38')]=_[_0x2806db('0x2e')](_0x42aa0e[_0x2806db('0x12')],qs[_0x2806db('0x2f')](_0x35319f[_0x2806db('0x37')]['fields'])),_0x43c3d7[_0x2806db('0x38')]=_0x43c3d7[_0x2806db('0x38')][_0x2806db('0xa')]?_0x43c3d7['attributes']:_0x42aa0e[_0x2806db('0x12')],typeof _0x35319f['query'][_0x2806db('0x69')]===_0x2806db('0x1f')&&(_0x43c3d7[_0x2806db('0x63')]=qs['limit'](_0x35319f['query'][_0x2806db('0x63')]),_0x43c3d7[_0x2806db('0x17')]=qs['offset'](_0x35319f[_0x2806db('0x37')][_0x2806db('0x17')])),_0x43c3d7[_0x2806db('0x26')]=qs[_0x2806db('0xf')](_0x35319f[_0x2806db('0x37')][_0x2806db('0xf')]),_0x43c3d7[_0x2806db('0x41')]=qs[_0x2806db('0x1a')](_[_0x2806db('0x13')](_0x35319f['query'],_0x42aa0e[_0x2806db('0x1a')])),_0x43c3d7[_0x2806db('0x41')]['MailQueueId']=_0x334ce5['id'],_0x35319f[_0x2806db('0x37')][_0x2806db('0x48')]&&(_0x43c3d7[_0x2806db('0x41')]=_['merge'](_0x43c3d7[_0x2806db('0x41')],{[Op['or']]:_[_0x2806db('0x3f')](_0x43c3d7[_0x2806db('0x38')],function(_0x3b026d){const _0x2731f1=_0x2806db,_0x2e9aab={};return _0x2e9aab[_0x3b026d]={[Op[_0x2731f1('0x2b')]]:'%'+_0x35319f['query'][_0x2731f1('0x48')]+'%'},_0x2e9aab;})})),_0x43c3d7=_['merge']({},_0x43c3d7,_0x35319f[_0x2806db('0x57')]),db[_0x2806db('0x66')][_0x2806db('0x1c')](_0x43c3d7);})[_0x3f109b('0x6c')](function(_0x2d02cb){const _0x5b8451=_0x3f109b;if(_0x2d02cb)return db['User'][_0x5b8451('0x10')]({'where':{'id':_[_0x5b8451('0x3f')](_0x2d02cb,_0x5b8451('0x40')),'role':_0x5b8451('0x4e')},'attributes':['id',_0x5b8451('0x6'),'mailPause',_0x5b8451('0x58'),'createdAt']});})['then'](function(_0x15fda8){const _0x2092ba=_0x3f109b;return _0x15fda8?{'count':_0x15fda8[_0x2092ba('0x39')],'rows':_[_0x2092ba('0x3f')](_0x15fda8[_0x2092ba('0x14')],function(_0x4f3b99){const _0x2efd7a=_0x2092ba;return{'membername':_0x4f3b99[_0x2efd7a('0x6')],'UserId':_0x4f3b99['id'],'queue_name':_0x208c8b[_0x2efd7a('0x6')],'MailQueueId':_0x208c8b['id'],'interface':util[_0x2efd7a('0x33')]('%s/%s',_0x2efd7a('0x4'),_0x4f3b99[_0x2efd7a('0x6')]),'penalty':0x0,'paused':_0x4f3b99[_0x2efd7a('0x25')],'createdAt':_0x4f3b99[_0x2efd7a('0x44')],'updatedAt':_0x4f3b99[_0x2efd7a('0x58')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x1c1202,_0x43c3d7))['catch'](handleError(_0x1c1202,null));},exports[_0x20aa7f('0x56')]=function(_0x2aa668,_0x195bf6){const _0x29350f=_0x20aa7f;let _0x204aaf={};const _0x4137c4={};let _0x300de5,_0x2324e3;return db[_0x29350f('0x47')][_0x29350f('0x2c')]({'where':{'id':_0x2aa668[_0x29350f('0x55')]['id']}})[_0x29350f('0x6c')](handleEntityNotFound(_0x195bf6,null))[_0x29350f('0x6c')](function(_0x1406db){const _0x3f3a1e=_0x29350f;if(_0x1406db)return _0x300de5=_0x1406db,_0x4137c4['model']=_[_0x3f3a1e('0x19')](db[_0x3f3a1e('0x4f')]['rawAttributes']),_0x4137c4['query']=_[_0x3f3a1e('0x19')](_0x2aa668[_0x3f3a1e('0x37')]),_0x4137c4[_0x3f3a1e('0x1a')]=_[_0x3f3a1e('0x2e')](_0x4137c4[_0x3f3a1e('0x12')],_0x4137c4[_0x3f3a1e('0x37')]),_0x204aaf[_0x3f3a1e('0x38')]=_['intersection'](_0x4137c4[_0x3f3a1e('0x12')],qs[_0x3f3a1e('0x2f')](_0x2aa668['query'][_0x3f3a1e('0x2f')])),_0x204aaf[_0x3f3a1e('0x38')]=_0x204aaf['attributes'][_0x3f3a1e('0xa')]?_0x204aaf['attributes']:_0x4137c4[_0x3f3a1e('0x12')],_0x204aaf[_0x3f3a1e('0x26')]=qs[_0x3f3a1e('0xf')](_0x2aa668[_0x3f3a1e('0x37')][_0x3f3a1e('0xf')]),_0x204aaf[_0x3f3a1e('0x41')]=qs[_0x3f3a1e('0x1a')](_[_0x3f3a1e('0x13')](_0x2aa668['query'],_0x4137c4['filters'])),_0x2aa668['query']['filter']&&(_0x204aaf['where']=_[_0x3f3a1e('0x5e')](_0x204aaf['where'],{[Op['or']]:_['map'](_0x204aaf[_0x3f3a1e('0x38')],function(_0x484123){const _0x151ec9=_0x3f3a1e,_0x4622b2={};return _0x4622b2[_0x484123]={[Op[_0x151ec9('0x2b')]]:'%'+_0x2aa668[_0x151ec9('0x37')]['filter']+'%'},_0x4622b2;})})),_0x204aaf=_['merge']({},_0x204aaf,_0x2aa668[_0x3f3a1e('0x57')]),_0x300de5[_0x3f3a1e('0x56')](_0x204aaf);})[_0x29350f('0x6c')](function(_0x2407a6){const _0x4fe62c=_0x29350f;if(_0x2407a6)return _0x2324e3=_0x2407a6[_0x4fe62c('0xa')],typeof _0x2aa668[_0x4fe62c('0x37')][_0x4fe62c('0x69')]==='undefined'&&(_0x204aaf['limit']=qs[_0x4fe62c('0x63')](_0x2aa668['query'][_0x4fe62c('0x63')]),_0x204aaf[_0x4fe62c('0x17')]=qs[_0x4fe62c('0x17')](_0x2aa668[_0x4fe62c('0x37')][_0x4fe62c('0x17')])),_0x300de5[_0x4fe62c('0x56')](_0x204aaf);})[_0x29350f('0x6c')](function(_0x28c804){if(_0x28c804)return _0x28c804?{'count':_0x2324e3,'rows':_0x28c804}:null;})[_0x29350f('0x6c')](respondWithResult(_0x195bf6,null))[_0x29350f('0x9')](handleError(_0x195bf6,null));},exports['addTeams']=function(_0x12547c,_0x5ddf62){const _0x454ff6=_0x20aa7f,_0x5f44cc=_0x12547c['body'][_0x454ff6('0x68')];return db[_0x454ff6('0x4f')][_0x454ff6('0x1c')]({'where':{'id':_0x5f44cc},'attributes':['id'],'include':[{'model':db[_0x454ff6('0x34')],'as':_0x454ff6('0x50'),'attributes':['id',_0x454ff6('0x6'),_0x454ff6('0x20'),_0x454ff6('0xe'),'interface'],'raw':!![]}]})[_0x454ff6('0x6c')](function(_0x50e403){const _0x4add0c=_0x454ff6;if(_0x50e403){const _0x2412ca=_[_0x4add0c('0x1e')](_0x50e403,function(_0x1ce7a3){const _0x283def=_0x1ce7a3['get']({'plain':!![]});return _0x283def['Agents'];});return db['MailQueue'][_0x4add0c('0x2c')]({'where':{'id':_0x12547c['params']['id']}})[_0x4add0c('0x6c')](function(_0x43ce19){const _0x3624f9=_0x4add0c;return db[_0x3624f9('0x30')][_0x3624f9('0xc')](function(_0x5e2314){const _0x18d69a=_0x3624f9;return _0x43ce19['addTeams'](_0x5f44cc,{'transaction':_0x5e2314})[_0x18d69a('0x6c')](function(){const _0x4b063c=_0x18d69a;return Promise[_0x4b063c('0x67')](_0x2412ca,function(_0x8a4794){const _0x158632=_0x4b063c;return db[_0x158632('0x66')][_0x158632('0x3e')]({'where':{'UserId':_0x8a4794['id'],'MailQueueId':_0x12547c[_0x158632('0x55')]['id']},'transaction':_0x5e2314});});})[_0x18d69a('0x6c')](function(){const _0x46077d=_0x18d69a;_0x2412ca[_0x46077d('0x8')](function(_0x28dc1a){const _0x5be500=_0x46077d;socket[_0x5be500('0x45')]('userMailQueue:save',{'UserId':_0x28dc1a['id'],'MailQueueId':_0x43ce19['id']});});});});});}})[_0x454ff6('0x6c')](respondWithStatusCode(_0x5ddf62,null))[_0x454ff6('0x9')](handleError(_0x5ddf62,null));},exports['removeTeams']=function(_0x4fb4fa,_0x56a84e){const _0x528af7=_0x20aa7f;return db[_0x528af7('0x4f')][_0x528af7('0x1c')]({'where':{'id':_0x4fb4fa[_0x528af7('0x37')][_0x528af7('0x68')]},'attributes':['id'],'include':[{'model':db[_0x528af7('0x34')],'as':_0x528af7('0x50'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x56a84e,null))[_0x528af7('0x6c')](function(_0x27158f){const _0x3a5c44=_0x528af7,_0x5b493e=_[_0x3a5c44('0x3f')](_0x27158f,'id');let _0x131bc7=[];const _0x509be7=[],_0x1e5b80=squel[_0x3a5c44('0x4d')]();_0x1e5b80[_0x3a5c44('0x1')](_0x3a5c44('0x6d'))[_0x3a5c44('0x43')]('team_has_mail_queues','tq')[_0x3a5c44('0x0')]('user_has_teams','ut',_0x3a5c44('0x21'))[_0x3a5c44('0x41')](_0x3a5c44('0x3d'),_0x4fb4fa[_0x3a5c44('0x55')]['id']);for(let _0x1ccc80=0x0;_0x1ccc80<_0x27158f[_0x3a5c44('0xa')];_0x1ccc80+=0x1){const _0x2880d0=_0x27158f[_0x1ccc80];for(let _0x5d9887=0x0;_0x5d9887<_0x2880d0['Agents'][_0x3a5c44('0xa')];_0x5d9887+=0x1){const _0x529060=_0x2880d0[_0x3a5c44('0x50')][_0x5d9887],_0x494f8d=_0x1e5b80[_0x3a5c44('0x54')]();_0x494f8d[_0x3a5c44('0x41')]('ut.UserId\x20=\x20?',_0x529060['id']),_0x509be7[_0x3a5c44('0x3')](db[_0x3a5c44('0x30')]['query'](_0x494f8d['toString'](),{'type':QueryTypes['SELECT']})[_0x3a5c44('0x6c')](function(_0x4e12ca){const _0x4532f3=_0x3a5c44;if(_0x4e12ca[_0x4532f3('0xa')]===0x1)return _0x529060['id'];else{const _0x51b86d=_[_0x4532f3('0x65')](_['map'](_0x4e12ca,_0x4532f3('0x4c')),function(_0x5da4fa){const _0x23301b=_0x4532f3;return _[_0x23301b('0x29')](_0x5b493e,_0x5da4fa);});if(_0x51b86d)return _0x529060['id'];}}));}}return Promise[_0x3a5c44('0x3c')](_0x509be7)['then'](function(_0x481e72){const _0x364704=_0x3a5c44;return _0x131bc7=_(_0x131bc7)[_0x364704('0x27')](_0x481e72)[_0x364704('0x32')]()[_0x364704('0x1b')](),db['MailQueue'][_0x364704('0x2c')]({'where':{'id':_0x4fb4fa[_0x364704('0x55')]['id']}})[_0x364704('0x6c')](function(_0x18108e){const _0x48541d=_0x364704;return db[_0x48541d('0x30')][_0x48541d('0xc')](function(_0x15e054){const _0x12e845=_0x48541d;return _0x18108e[_0x12e845('0xb')](_0x4fb4fa[_0x12e845('0x37')][_0x12e845('0x68')],{'transaction':_0x15e054})['then'](function(){const _0x1e0443=_0x12e845;if(!_[_0x1e0443('0x60')](_0x131bc7))return _0x18108e[_0x1e0443('0x51')](_0x131bc7,{'transaction':_0x15e054});})[_0x12e845('0x6c')](function(){const _0x3026b4=_0x12e845;_0x131bc7[_0x3026b4('0x8')](function(_0x41f587){const _0x19bb1c=_0x3026b4;socket[_0x19bb1c('0x45')](_0x19bb1c('0x46'),{'UserId':_0x41f587,'MailQueueId':_0x18108e['id']});});});});});});})['then'](respondWithStatusCode(_0x56a84e,null))[_0x528af7('0x9')](handleError(_0x56a84e,null));},exports['addAgents']=function(_0x453bfe,_0x592fa0){const _0x3a1d6a=_0x20aa7f;return db[_0x3a1d6a('0x47')]['findOne']({'where':{'id':_0x453bfe[_0x3a1d6a('0x55')]['id']}})[_0x3a1d6a('0x6c')](function(_0x18e6e1){const _0x2a296c=_0x3a1d6a;if(_0x18e6e1)return _0x18e6e1['addAgents'](_0x453bfe[_0x2a296c('0xd')][_0x2a296c('0x68')],{'through':_['omit'](_0x453bfe['body'],['ids','id'])})[_0x2a296c('0x6c')](function(_0x58dee2){const _0x41a78e=_0x2a296c;for(let _0xd2e60d=0x0;_0xd2e60d<_0x453bfe[_0x41a78e('0xd')][_0x41a78e('0x68')][_0x41a78e('0xa')];_0xd2e60d+=0x1){socket['emit'](_0x41a78e('0x16'),{'UserId':_0x453bfe[_0x41a78e('0xd')][_0x41a78e('0x68')][_0xd2e60d],'MailQueueId':_0x453bfe[_0x41a78e('0x55')]['id']});}return _0x58dee2;});})['then'](respondWithResult(_0x592fa0,null))[_0x3a1d6a('0x9')](handleError(_0x592fa0,null));},exports[_0x20aa7f('0x51')]=function(_0x3b9509,_0x4db096){const _0xa61a73=_0x20aa7f;return db['MailQueue'][_0xa61a73('0x2c')]({'where':{'id':_0x3b9509[_0xa61a73('0x55')]['id']}})['then'](handleEntityNotFound(_0x4db096,null))['then'](function(_0x5499ff){const _0x25d36d=_0xa61a73;if(_0x5499ff)return _0x5499ff['removeAgents'](_0x3b9509[_0x25d36d('0x37')][_0x25d36d('0x68')])['then'](function(){const _0x51b9ce=_0x25d36d;if(_[_0x51b9ce('0x5f')](_0x3b9509[_0x51b9ce('0x37')][_0x51b9ce('0x68')]))for(let _0x2c59a4=0x0;_0x2c59a4<_0x3b9509[_0x51b9ce('0x37')][_0x51b9ce('0x68')][_0x51b9ce('0xa')];_0x2c59a4+=0x1){socket[_0x51b9ce('0x45')](_0x51b9ce('0x46'),{'UserId':Number(_0x3b9509[_0x51b9ce('0x37')][_0x51b9ce('0x68')][_0x2c59a4]),'MailQueueId':Number(_0x3b9509[_0x51b9ce('0x55')]['id'])});}else socket[_0x51b9ce('0x45')](_0x51b9ce('0x46'),{'UserId':Number(_0x3b9509['query']['ids']),'MailQueueId':Number(_0x3b9509['params']['id'])});});})[_0xa61a73('0x6c')](respondWithStatusCode(_0x4db096,null))['catch'](handleError(_0x4db096,null));},exports[_0x20aa7f('0x52')]=function(_0x5cbdb1,_0x457701){const _0x63dc54=_0x20aa7f;let _0x48770f={};const _0x5ad6d2={};let _0x1a1cc7,_0x32077c;return db[_0x63dc54('0x47')][_0x63dc54('0x2c')]({'where':{'id':_0x5cbdb1[_0x63dc54('0x55')]['id']}})[_0x63dc54('0x6c')](handleEntityNotFound(_0x457701,null))['then'](function(_0x52a2af){const _0x41518f=_0x63dc54;if(_0x52a2af)return _0x1a1cc7=_0x52a2af,_0x5ad6d2['model']=_[_0x41518f('0x19')](db[_0x41518f('0x34')]['rawAttributes']),_0x5ad6d2[_0x41518f('0x37')]=_[_0x41518f('0x19')](_0x5cbdb1[_0x41518f('0x37')]),_0x5ad6d2['filters']=_[_0x41518f('0x2e')](_0x5ad6d2[_0x41518f('0x12')],_0x5ad6d2[_0x41518f('0x37')]),_0x48770f[_0x41518f('0x38')]=_[_0x41518f('0x2e')](_0x5ad6d2['model'],qs[_0x41518f('0x2f')](_0x5cbdb1[_0x41518f('0x37')][_0x41518f('0x2f')])),_0x48770f[_0x41518f('0x38')]=_0x48770f['attributes'][_0x41518f('0xa')]?_0x48770f[_0x41518f('0x38')]:_0x5ad6d2[_0x41518f('0x12')],_0x48770f['order']=qs[_0x41518f('0xf')](_0x5cbdb1[_0x41518f('0x37')][_0x41518f('0xf')]),_0x48770f[_0x41518f('0x41')]=qs['filters'](_[_0x41518f('0x13')](_0x5cbdb1[_0x41518f('0x37')],_0x5ad6d2[_0x41518f('0x1a')])),_0x5cbdb1[_0x41518f('0x37')]['filter']&&(_0x48770f[_0x41518f('0x41')]=_[_0x41518f('0x5e')](_0x48770f[_0x41518f('0x41')],{[Op['or']]:_['map'](_0x48770f['attributes'],function(_0x5ba689){const _0x2ba306=_0x41518f,_0x3f9b84={};return _0x3f9b84[_0x5ba689]={[Op[_0x2ba306('0x2b')]]:'%'+_0x5cbdb1[_0x2ba306('0x37')][_0x2ba306('0x48')]+'%'},_0x3f9b84;})})),_0x48770f=_[_0x41518f('0x5e')]({},_0x48770f,_0x5cbdb1['options']),_0x1a1cc7[_0x41518f('0x52')](_0x48770f);})[_0x63dc54('0x6c')](function(_0x38576a){const _0x5a76f5=_0x63dc54;if(_0x38576a)return _0x32077c=_0x38576a[_0x5a76f5('0xa')],typeof _0x5cbdb1[_0x5a76f5('0x37')][_0x5a76f5('0x69')]===_0x5a76f5('0x1f')&&(_0x48770f['limit']=qs[_0x5a76f5('0x63')](_0x5cbdb1['query'][_0x5a76f5('0x63')]),_0x48770f[_0x5a76f5('0x17')]=qs[_0x5a76f5('0x17')](_0x5cbdb1[_0x5a76f5('0x37')][_0x5a76f5('0x17')])),_0x1a1cc7[_0x5a76f5('0x52')](_0x48770f);})[_0x63dc54('0x6c')](function(_0x4824b6){if(_0x4824b6)return _0x4824b6?{'count':_0x32077c,'rows':_0x4824b6}:null;})['then'](respondWithResult(_0x457701,null))[_0x63dc54('0x9')](handleError(_0x457701,null));}; \ No newline at end of file +const a420_0x49d3=['merge','../../config/logger','offset','MailQueues','role','name','nolimit','body','tq.TeamId','filter','Team','./mailQueue.socket','removeTeams','keys','isArray','voicePause','SIP','UserProfileResource','agent','autoAssociation','update','findAndCountAll','from','MailQueue','userMailQueue:save','userProfileId','mailPause','order','UserId','getAgents','attributes','sequelize','query','catch','filters','includeAll','addTeams','transaction','team_has_mail_queues','Unable\x20to\x20retrieve\x20the\x20current\x20user','end','show','length','includes','model','User','select','pick','online','ids','rawAttributes','findAll','../../mysqldb','Content-Range','updatedAt','TeamId','addAgents','index','sendStatus','stack','removeAgents','where','intersection','field','limit','Agents','UserMailQueue','%s/%s','map','undefined','format','fields','status','include','findOne','../../components/parsers/qs','rows','omit','getMembers','count','sort','get','emit','then','clone','util','type','forEach','getTeams','every','like','destroy','register','compact','flatMap','createdAt','UserProfileSection','json','user','api','value','each','fieldName','userMailQueue:remove','ut.UserId\x20=\x20?','toString','set','SELECT','params','options'];(function(_0x1206b6,_0x49d38e){const _0x43b507=function(_0x46bbe7){while(--_0x46bbe7){_0x1206b6['push'](_0x1206b6['shift']());}};_0x43b507(++_0x49d38e);}(a420_0x49d3,0xf7));const a420_0x43b5=function(_0x1206b6,_0x49d38e){_0x1206b6=_0x1206b6-0x0;let _0x43b507=a420_0x49d3[_0x1206b6];return _0x43b507;};const _0x3afb4f=a420_0x43b5;'use strict';const util=require(_0x3afb4f('0x3a')),_=require('lodash'),squel=require('squel'),qs=require(_0x3afb4f('0x30')),logger=require(_0x3afb4f('0x54'))(_0x3afb4f('0x48')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x3afb4f('0x19'))['db'],{Op,QueryTypes}=require(_0x3afb4f('0x4'));require(_0x3afb4f('0x5e'))[_0x3afb4f('0x41')](socket);function respondWithStatusCode(_0x46bbe7,_0xba1d46){return _0xba1d46=_0xba1d46||0xcc,function(_0x5fdd28){const _0x5be6eb=a420_0x43b5;if(_0x5fdd28)return _0x46bbe7[_0x5be6eb('0x1f')](_0xba1d46);return _0x46bbe7['status'](_0xba1d46)[_0x5be6eb('0xd')]();};}function respondWithResult(_0x47283d,_0x117edf){return _0x117edf=_0x117edf||0xc8,function(_0x435697){const _0x27d6df=a420_0x43b5;if(_0x435697)return _0x47283d[_0x27d6df('0x2d')](_0x117edf)[_0x27d6df('0x46')](_0x435697);};}function respondWithFilteredResult(_0xdbe093,_0x12f4ac){return function(_0x306944){const _0x14ff10=a420_0x43b5;if(_0x306944){const _0x3b3cab=_0x306944['count'],_0x420147=_0x12f4ac[_0x14ff10('0x55')];let _0x40f7fa=_0x12f4ac[_0x14ff10('0x55')]+_0x12f4ac[_0x14ff10('0x25')],_0xe29afe;return _0x40f7fa>=_0x3b3cab?(_0x40f7fa=_0x3b3cab,_0xe29afe=0xc8):_0xe29afe=0xce,_0xdbe093[_0x14ff10('0x2d')](_0xe29afe),_0xdbe093[_0x14ff10('0x4f')](_0x14ff10('0x1a'),_0x420147+'-'+_0x40f7fa+'/'+_0x3b3cab)[_0x14ff10('0x46')](_0x306944);}return null;};}function saveUpdates(_0x2ac05f){return function(_0x1dd8a8){const _0x149ae7=a420_0x43b5;if(_0x1dd8a8)return _0x1dd8a8[_0x149ae7('0x67')](_0x2ac05f)['then'](function(_0x24e174){return _0x24e174;});return null;};}function removeEntity(_0x25e09a){return function(_0x1f9761){const _0x2bd8a7=a420_0x43b5;if(_0x1f9761)return _0x1f9761[_0x2bd8a7('0x40')]()[_0x2bd8a7('0x38')](function(){const _0x13ff1d=_0x2bd8a7,_0x61c215=_0x1f9761['get']({'plain':!![]}),_0x2e6939=_0x13ff1d('0x56');return db[_0x13ff1d('0x64')][_0x13ff1d('0x40')]({'where':{'type':_0x2e6939,'resourceId':_0x61c215['id']}})['then'](function(){return _0x1f9761;});})[_0x2bd8a7('0x38')](function(){const _0x426e8f=_0x2bd8a7;_0x25e09a[_0x426e8f('0x2d')](0xcc)['end']();});};}function handleEntityNotFound(_0x2fffb6){return function(_0xa0e5b3){const _0x4c0c6b=a420_0x43b5;return!_0xa0e5b3&&_0x2fffb6[_0x4c0c6b('0x1f')](0x194),_0xa0e5b3;};}function handleError(_0xa03027,_0x584afb){return _0x584afb=_0x584afb||0x1f4,function(_0xd7109a){const _0xe7904=a420_0x43b5;logger['error'](_0xd7109a[_0xe7904('0x20')]),_0xd7109a[_0xe7904('0x58')]&&delete _0xd7109a[_0xe7904('0x58')],_0xa03027['status'](_0x584afb)['send'](_0xd7109a);};}exports[_0x3afb4f('0x1e')]=function(_0x4a6b1c,_0xe9feee){const _0x3c6c37=_0x3afb4f;let _0x3d425a={};const _0x78f250={},_0x289abf={'count':0x0,'rows':[]},_0x3c2204=_[_0x3c6c37('0x29')](db[_0x3c6c37('0x6a')][_0x3c6c37('0x17')],function(_0x1b0706){const _0x5c0710=_0x3c6c37;return{'name':_0x1b0706[_0x5c0710('0x4b')],'type':_0x1b0706[_0x5c0710('0x3b')]['key']};});_0x78f250['model']=_[_0x3c6c37('0x29')](_0x3c2204,_0x3c6c37('0x58')),_0x78f250[_0x3c6c37('0x5')]=_[_0x3c6c37('0x60')](_0x4a6b1c[_0x3c6c37('0x5')]),_0x78f250['filters']=_['intersection'](_0x78f250[_0x3c6c37('0x11')],_0x78f250[_0x3c6c37('0x5')]),_0x3d425a[_0x3c6c37('0x3')]=_[_0x3c6c37('0x23')](_0x78f250[_0x3c6c37('0x11')],qs[_0x3c6c37('0x2c')](_0x4a6b1c['query'][_0x3c6c37('0x2c')])),_0x3d425a[_0x3c6c37('0x3')]=_0x3d425a[_0x3c6c37('0x3')][_0x3c6c37('0xf')]?_0x3d425a['attributes']:_0x78f250[_0x3c6c37('0x11')];typeof _0x4a6b1c[_0x3c6c37('0x5')]['nolimit']===_0x3c6c37('0x2a')&&(_0x3d425a[_0x3c6c37('0x25')]=qs[_0x3c6c37('0x25')](_0x4a6b1c['query'][_0x3c6c37('0x25')]),_0x3d425a['offset']=qs['offset'](_0x4a6b1c[_0x3c6c37('0x5')][_0x3c6c37('0x55')]));_0x3d425a[_0x3c6c37('0x0')]=qs[_0x3c6c37('0x35')](_0x4a6b1c[_0x3c6c37('0x5')]['sort']),_0x3d425a[_0x3c6c37('0x22')]=qs[_0x3c6c37('0x7')](_[_0x3c6c37('0x14')](_0x4a6b1c['query'],_0x78f250['filters']),_0x3c2204);_0x4a6b1c[_0x3c6c37('0x5')][_0x3c6c37('0x5c')]&&(_0x3d425a[_0x3c6c37('0x22')]=_[_0x3c6c37('0x53')](_0x3d425a[_0x3c6c37('0x22')],{[Op['or']]:_[_0x3c6c37('0x29')](_0x3c2204,function(_0x3d4044){const _0x3f89d6=_0x3c6c37;if(_0x3d4044[_0x3f89d6('0x3b')]!=='VIRTUAL'){const _0x88676a={};return _0x88676a[_0x3d4044[_0x3f89d6('0x58')]]={[Op[_0x3f89d6('0x3f')]]:'%'+_0x4a6b1c[_0x3f89d6('0x5')]['filter']+'%'},_0x88676a;}})}));_0x3d425a=_['merge']({},_0x3d425a,_0x4a6b1c[_0x3c6c37('0x52')]);const _0x476ff3={'where':_0x3d425a[_0x3c6c37('0x22')]};return db[_0x3c6c37('0x6a')][_0x3c6c37('0x34')](_0x476ff3)[_0x3c6c37('0x38')](function(_0x38a1b6){const _0x14b8eb=_0x3c6c37;return _0x289abf['count']=_0x38a1b6,_0x4a6b1c[_0x14b8eb('0x5')][_0x14b8eb('0x8')]&&(_0x3d425a[_0x14b8eb('0x2e')]=[{'all':!![]}]),db[_0x14b8eb('0x6a')][_0x14b8eb('0x18')](_0x3d425a);})[_0x3c6c37('0x38')](function(_0x2338c4){const _0x502759=_0x3c6c37;return _0x289abf[_0x502759('0x31')]=_0x2338c4,_0x289abf;})[_0x3c6c37('0x38')](respondWithFilteredResult(_0xe9feee,_0x3d425a))['catch'](handleError(_0xe9feee,null));},exports[_0x3afb4f('0xe')]=function(_0x56858f,_0x1b2045){const _0x57f21e=_0x3afb4f;let _0x3a2f9a={'raw':!![],'where':{'id':_0x56858f[_0x57f21e('0x51')]['id']}};const _0x555ea5={};return _0x555ea5[_0x57f21e('0x11')]=_[_0x57f21e('0x60')](db[_0x57f21e('0x6a')][_0x57f21e('0x17')]),_0x555ea5['query']=_[_0x57f21e('0x60')](_0x56858f[_0x57f21e('0x5')]),_0x555ea5[_0x57f21e('0x7')]=_[_0x57f21e('0x23')](_0x555ea5[_0x57f21e('0x11')],_0x555ea5[_0x57f21e('0x5')]),_0x3a2f9a[_0x57f21e('0x3')]=_[_0x57f21e('0x23')](_0x555ea5['model'],qs[_0x57f21e('0x2c')](_0x56858f[_0x57f21e('0x5')][_0x57f21e('0x2c')])),_0x3a2f9a['attributes']=_0x3a2f9a[_0x57f21e('0x3')]['length']?_0x3a2f9a[_0x57f21e('0x3')]:_0x555ea5[_0x57f21e('0x11')],_0x56858f[_0x57f21e('0x5')][_0x57f21e('0x8')]&&(_0x3a2f9a[_0x57f21e('0x2e')]=[{'all':!![]}]),_0x3a2f9a=_[_0x57f21e('0x53')]({},_0x3a2f9a,_0x56858f[_0x57f21e('0x52')]),db[_0x57f21e('0x6a')][_0x57f21e('0x2f')](_0x3a2f9a)[_0x57f21e('0x38')](handleEntityNotFound(_0x1b2045,null))['then'](respondWithResult(_0x1b2045,null))[_0x57f21e('0x6')](handleError(_0x1b2045,null));},exports['create']=function(_0x5f5d58,_0x268501){const _0x22a47f=_0x3afb4f;return db[_0x22a47f('0x6a')]['create'](_0x5f5d58[_0x22a47f('0x5a')],{})[_0x22a47f('0x38')](function(_0x5016e9){const _0x2ebb5b=_0x22a47f,_0x390b16=_0x5f5d58[_0x2ebb5b('0x47')][_0x2ebb5b('0x36')]({'plain':!![]});if(!_0x390b16)throw new Error(_0x2ebb5b('0xc'));if(_0x390b16[_0x2ebb5b('0x57')]===_0x2ebb5b('0x47')){const _0x3b0feb=_0x5016e9[_0x2ebb5b('0x36')]({'plain':!![]}),_0x563f6e=_0x2ebb5b('0x56');return db[_0x2ebb5b('0x45')][_0x2ebb5b('0x2f')]({'where':{'name':_0x563f6e,'userProfileId':_0x390b16[_0x2ebb5b('0x6c')]},'raw':!![]})[_0x2ebb5b('0x38')](function(_0x4696b7){const _0xbbd7cd=_0x2ebb5b;return _0x4696b7&&_0x4696b7[_0xbbd7cd('0x66')]===0x0?db[_0xbbd7cd('0x64')]['create']({'name':_0x3b0feb[_0xbbd7cd('0x58')],'resourceId':_0x3b0feb['id'],'type':_0x4696b7['name'],'sectionId':_0x4696b7['id']},{})[_0xbbd7cd('0x38')](function(){return _0x5016e9;}):_0x5016e9;})[_0x2ebb5b('0x6')](function(_0x145ea1){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x145ea1);throw _0x145ea1;});}return _0x5016e9;})[_0x22a47f('0x38')](respondWithResult(_0x268501,0xc9))[_0x22a47f('0x6')](handleError(_0x268501,null));},exports[_0x3afb4f('0x67')]=function(_0x4f9317,_0x175872){const _0x3b2192=_0x3afb4f;return _0x4f9317[_0x3b2192('0x5a')]['id']&&delete _0x4f9317[_0x3b2192('0x5a')]['id'],db[_0x3b2192('0x6a')]['findOne']({'where':{'id':_0x4f9317[_0x3b2192('0x51')]['id']}})[_0x3b2192('0x38')](handleEntityNotFound(_0x175872,null))['then'](saveUpdates(_0x4f9317[_0x3b2192('0x5a')],null))[_0x3b2192('0x38')](respondWithResult(_0x175872,null))['catch'](handleError(_0x175872,null));},exports[_0x3afb4f('0x40')]=function(_0x13a700,_0x3a8509){const _0xc2020c=_0x3afb4f;return db[_0xc2020c('0x6a')][_0xc2020c('0x2f')]({'where':{'id':_0x13a700['params']['id']}})['then'](handleEntityNotFound(_0x3a8509,null))[_0xc2020c('0x38')](removeEntity(_0x3a8509,null))[_0xc2020c('0x6')](handleError(_0x3a8509,null));},exports['describe']=function(_0x292776,_0x494202){const _0x353d29=_0x3afb4f;return db[_0x353d29('0x6a')]['describe']()[_0x353d29('0x38')](respondWithResult(_0x494202,null))[_0x353d29('0x6')](handleError(_0x494202,null));},exports[_0x3afb4f('0x33')]=function(_0x50c316,_0x193060){const _0x5c62fb=_0x3afb4f;let _0x3f5885={'raw':!![],'where':{}};const _0x107b4e={};let _0x3a84ae;return db[_0x5c62fb('0x6a')][_0x5c62fb('0x2f')]({'where':{'id':_0x50c316[_0x5c62fb('0x51')]['id']}})[_0x5c62fb('0x38')](handleEntityNotFound(_0x193060,null))[_0x5c62fb('0x38')](function(_0x5b7cf2){const _0x3441f7=_0x5c62fb;if(_0x5b7cf2)return _0x3a84ae=_0x5b7cf2[_0x3441f7('0x36')]({'plain':!![]}),_0x107b4e[_0x3441f7('0x11')]=_['keys'](db[_0x3441f7('0x27')][_0x3441f7('0x17')]),_0x107b4e[_0x3441f7('0x5')]=_['keys'](_0x50c316[_0x3441f7('0x5')]),_0x107b4e[_0x3441f7('0x7')]=_[_0x3441f7('0x23')](_0x107b4e[_0x3441f7('0x11')],_0x107b4e[_0x3441f7('0x5')]),_0x3f5885['attributes']=_[_0x3441f7('0x23')](_0x107b4e[_0x3441f7('0x11')],qs[_0x3441f7('0x2c')](_0x50c316['query']['fields'])),_0x3f5885[_0x3441f7('0x3')]=_0x3f5885[_0x3441f7('0x3')][_0x3441f7('0xf')]?_0x3f5885[_0x3441f7('0x3')]:_0x107b4e[_0x3441f7('0x11')],typeof _0x50c316[_0x3441f7('0x5')][_0x3441f7('0x59')]===_0x3441f7('0x2a')&&(_0x3f5885[_0x3441f7('0x25')]=qs[_0x3441f7('0x25')](_0x50c316[_0x3441f7('0x5')]['limit']),_0x3f5885['offset']=qs[_0x3441f7('0x55')](_0x50c316[_0x3441f7('0x5')][_0x3441f7('0x55')])),_0x3f5885[_0x3441f7('0x0')]=qs['sort'](_0x50c316['query'][_0x3441f7('0x35')]),_0x3f5885[_0x3441f7('0x22')]=qs[_0x3441f7('0x7')](_[_0x3441f7('0x14')](_0x50c316['query'],_0x107b4e[_0x3441f7('0x7')])),_0x3f5885['where']['MailQueueId']=_0x5b7cf2['id'],_0x50c316[_0x3441f7('0x5')][_0x3441f7('0x5c')]&&(_0x3f5885[_0x3441f7('0x22')]=_[_0x3441f7('0x53')](_0x3f5885[_0x3441f7('0x22')],{[Op['or']]:_['map'](_0x3f5885[_0x3441f7('0x3')],function(_0x12d047){const _0x6c0d8a=_0x3441f7,_0x5004cf={};return _0x5004cf[_0x12d047]={[Op['like']]:'%'+_0x50c316[_0x6c0d8a('0x5')][_0x6c0d8a('0x5c')]+'%'},_0x5004cf;})})),_0x3f5885=_[_0x3441f7('0x53')]({},_0x3f5885,_0x50c316['options']),db[_0x3441f7('0x27')][_0x3441f7('0x18')](_0x3f5885);})['then'](function(_0x25bdad){const _0x43ad84=_0x5c62fb;if(_0x25bdad)return db[_0x43ad84('0x12')][_0x43ad84('0x68')]({'where':{'id':_[_0x43ad84('0x29')](_0x25bdad,_0x43ad84('0x1')),'role':_0x43ad84('0x65')},'attributes':['id',_0x43ad84('0x58'),_0x43ad84('0x6d'),_0x43ad84('0x1b'),_0x43ad84('0x44')]});})[_0x5c62fb('0x38')](function(_0xd6efb7){const _0x9f49a3=_0x5c62fb;return _0xd6efb7?{'count':_0xd6efb7['count'],'rows':_[_0x9f49a3('0x29')](_0xd6efb7[_0x9f49a3('0x31')],function(_0x203e8d){const _0x576bfa=_0x9f49a3;return{'membername':_0x203e8d[_0x576bfa('0x58')],'UserId':_0x203e8d['id'],'queue_name':_0x3a84ae[_0x576bfa('0x58')],'MailQueueId':_0x3a84ae['id'],'interface':util[_0x576bfa('0x2b')](_0x576bfa('0x28'),_0x576bfa('0x63'),_0x203e8d[_0x576bfa('0x58')]),'penalty':0x0,'paused':_0x203e8d[_0x576bfa('0x6d')],'createdAt':_0x203e8d[_0x576bfa('0x44')],'updatedAt':_0x203e8d[_0x576bfa('0x1b')]};})}:{'count':0x0,'rows':[]};})[_0x5c62fb('0x38')](respondWithFilteredResult(_0x193060,_0x3f5885))[_0x5c62fb('0x6')](handleError(_0x193060,null));},exports[_0x3afb4f('0x3d')]=function(_0x35a981,_0x10981d){const _0x26c3d8=_0x3afb4f;let _0x41a2c1={};const _0x383c09={};let _0x358410,_0x1ea11e;return db[_0x26c3d8('0x6a')]['findOne']({'where':{'id':_0x35a981['params']['id']}})['then'](handleEntityNotFound(_0x10981d,null))[_0x26c3d8('0x38')](function(_0x2b4afc){const _0x62c59=_0x26c3d8;if(_0x2b4afc)return _0x358410=_0x2b4afc,_0x383c09[_0x62c59('0x11')]=_['keys'](db['Team'][_0x62c59('0x17')]),_0x383c09[_0x62c59('0x5')]=_['keys'](_0x35a981[_0x62c59('0x5')]),_0x383c09['filters']=_[_0x62c59('0x23')](_0x383c09['model'],_0x383c09['query']),_0x41a2c1[_0x62c59('0x3')]=_['intersection'](_0x383c09[_0x62c59('0x11')],qs[_0x62c59('0x2c')](_0x35a981[_0x62c59('0x5')][_0x62c59('0x2c')])),_0x41a2c1[_0x62c59('0x3')]=_0x41a2c1['attributes'][_0x62c59('0xf')]?_0x41a2c1[_0x62c59('0x3')]:_0x383c09['model'],_0x41a2c1['order']=qs[_0x62c59('0x35')](_0x35a981[_0x62c59('0x5')][_0x62c59('0x35')]),_0x41a2c1['where']=qs[_0x62c59('0x7')](_[_0x62c59('0x14')](_0x35a981[_0x62c59('0x5')],_0x383c09['filters'])),_0x35a981[_0x62c59('0x5')]['filter']&&(_0x41a2c1[_0x62c59('0x22')]=_['merge'](_0x41a2c1['where'],{[Op['or']]:_[_0x62c59('0x29')](_0x41a2c1[_0x62c59('0x3')],function(_0x2722a4){const _0x4115f3=_0x62c59,_0x2adb3d={};return _0x2adb3d[_0x2722a4]={[Op[_0x4115f3('0x3f')]]:'%'+_0x35a981[_0x4115f3('0x5')][_0x4115f3('0x5c')]+'%'},_0x2adb3d;})})),_0x41a2c1=_[_0x62c59('0x53')]({},_0x41a2c1,_0x35a981[_0x62c59('0x52')]),_0x358410[_0x62c59('0x3d')](_0x41a2c1);})[_0x26c3d8('0x38')](function(_0x55ebfe){const _0x44303e=_0x26c3d8;if(_0x55ebfe)return _0x1ea11e=_0x55ebfe[_0x44303e('0xf')],typeof _0x35a981['query'][_0x44303e('0x59')]===_0x44303e('0x2a')&&(_0x41a2c1['limit']=qs[_0x44303e('0x25')](_0x35a981[_0x44303e('0x5')][_0x44303e('0x25')]),_0x41a2c1[_0x44303e('0x55')]=qs[_0x44303e('0x55')](_0x35a981['query'][_0x44303e('0x55')])),_0x358410[_0x44303e('0x3d')](_0x41a2c1);})[_0x26c3d8('0x38')](function(_0x303a65){if(_0x303a65)return _0x303a65?{'count':_0x1ea11e,'rows':_0x303a65}:null;})[_0x26c3d8('0x38')](respondWithResult(_0x10981d,null))['catch'](handleError(_0x10981d,null));},exports[_0x3afb4f('0x9')]=function(_0x330af4,_0x2dee40){const _0x4ba14d=_0x3afb4f,_0x421b7e=_0x330af4[_0x4ba14d('0x5a')]['ids'];return db[_0x4ba14d('0x5d')]['findAll']({'where':{'id':_0x421b7e},'attributes':['id'],'include':[{'model':db[_0x4ba14d('0x12')],'as':_0x4ba14d('0x26'),'attributes':['id',_0x4ba14d('0x58'),_0x4ba14d('0x15'),_0x4ba14d('0x62'),'interface'],'raw':!![]}]})[_0x4ba14d('0x38')](function(_0x158bf9){const _0x1a9a19=_0x4ba14d;if(_0x158bf9){const _0x3cfb6a=_[_0x1a9a19('0x43')](_0x158bf9,function(_0x36344d){const _0x328e56=_0x1a9a19,_0x1f1972=_0x36344d[_0x328e56('0x36')]({'plain':!![]});return _0x1f1972[_0x328e56('0x26')];});return db[_0x1a9a19('0x6a')][_0x1a9a19('0x2f')]({'where':{'id':_0x330af4['params']['id']}})[_0x1a9a19('0x38')](function(_0xc8cd4c){const _0x36f7b0=_0x1a9a19;return db[_0x36f7b0('0x4')][_0x36f7b0('0xa')](function(_0xd5e4a3){const _0x1b5c8b=_0x36f7b0;return _0xc8cd4c[_0x1b5c8b('0x9')](_0x421b7e,{'transaction':_0xd5e4a3})['then'](function(){const _0x3623f6=_0x1b5c8b;return Promise[_0x3623f6('0x4a')](_0x3cfb6a,function(_0x3fe810){const _0x30653b=_0x3623f6;return db[_0x30653b('0x27')]['findOrCreate']({'where':{'UserId':_0x3fe810['id'],'MailQueueId':_0x330af4[_0x30653b('0x51')]['id']},'transaction':_0xd5e4a3});});})['then'](function(){const _0x255ad4=_0x1b5c8b;_0x3cfb6a[_0x255ad4('0x3c')](function(_0x4110d1){const _0x7e4d2e=_0x255ad4;socket[_0x7e4d2e('0x37')](_0x7e4d2e('0x6b'),{'UserId':_0x4110d1['id'],'MailQueueId':_0xc8cd4c['id']});});});});});}})[_0x4ba14d('0x38')](respondWithStatusCode(_0x2dee40,null))[_0x4ba14d('0x6')](handleError(_0x2dee40,null));},exports[_0x3afb4f('0x5f')]=function(_0x3820d5,_0x5117eb){const _0x5aebd5=_0x3afb4f;return db[_0x5aebd5('0x5d')][_0x5aebd5('0x18')]({'where':{'id':_0x3820d5[_0x5aebd5('0x5')]['ids']},'attributes':['id'],'include':[{'model':db['User'],'as':_0x5aebd5('0x26'),'attributes':['id'],'raw':!![]}]})[_0x5aebd5('0x38')](handleEntityNotFound(_0x5117eb,null))[_0x5aebd5('0x38')](function(_0x53606d){const _0x1fe74b=_0x5aebd5,_0x3cdf68=_[_0x1fe74b('0x29')](_0x53606d,'id');let _0x24c2ff=[];const _0x3e003e=[],_0x25ce0b=squel[_0x1fe74b('0x13')]();_0x25ce0b[_0x1fe74b('0x24')](_0x1fe74b('0x5b'))[_0x1fe74b('0x69')](_0x1fe74b('0xb'),'tq')['join']('user_has_teams','ut','ut.TeamId\x20=\x20tq.TeamId')[_0x1fe74b('0x22')]('MailQueueId\x20=\x20?',_0x3820d5['params']['id']);for(let _0x3c696d=0x0;_0x3c696d<_0x53606d['length'];_0x3c696d+=0x1){const _0x33859d=_0x53606d[_0x3c696d];for(let _0x7645de=0x0;_0x7645de<_0x33859d['Agents'][_0x1fe74b('0xf')];_0x7645de+=0x1){const _0x34733c=_0x33859d['Agents'][_0x7645de],_0x5b1264=_0x25ce0b[_0x1fe74b('0x39')]();_0x5b1264[_0x1fe74b('0x22')](_0x1fe74b('0x4d'),_0x34733c['id']),_0x3e003e['push'](db[_0x1fe74b('0x4')]['query'](_0x5b1264[_0x1fe74b('0x4e')](),{'type':QueryTypes[_0x1fe74b('0x50')]})['then'](function(_0x2f7542){const _0x236376=_0x1fe74b;if(_0x2f7542[_0x236376('0xf')]===0x1)return _0x34733c['id'];else{const _0x2bda92=_[_0x236376('0x3e')](_['map'](_0x2f7542,_0x236376('0x1c')),function(_0x4b461e){const _0x4dcb99=_0x236376;return _[_0x4dcb99('0x10')](_0x3cdf68,_0x4b461e);});if(_0x2bda92)return _0x34733c['id'];}}));}}return Promise['all'](_0x3e003e)[_0x1fe74b('0x38')](function(_0x1be507){const _0x4c2a5a=_0x1fe74b;return _0x24c2ff=_(_0x24c2ff)['union'](_0x1be507)[_0x4c2a5a('0x42')]()[_0x4c2a5a('0x49')](),db[_0x4c2a5a('0x6a')][_0x4c2a5a('0x2f')]({'where':{'id':_0x3820d5['params']['id']}})[_0x4c2a5a('0x38')](function(_0x27fca3){const _0x249ccf=_0x4c2a5a;return db['sequelize'][_0x249ccf('0xa')](function(_0x36aa0e){const _0x3bd952=_0x249ccf;return _0x27fca3['removeTeams'](_0x3820d5[_0x3bd952('0x5')]['ids'],{'transaction':_0x36aa0e})[_0x3bd952('0x38')](function(){const _0xe5614f=_0x3bd952;if(!_['isEmpty'](_0x24c2ff))return _0x27fca3[_0xe5614f('0x21')](_0x24c2ff,{'transaction':_0x36aa0e});})['then'](function(){const _0x557f2f=_0x3bd952;_0x24c2ff[_0x557f2f('0x3c')](function(_0x3c3f1d){socket['emit']('userMailQueue:remove',{'UserId':_0x3c3f1d,'MailQueueId':_0x27fca3['id']});});});});});});})[_0x5aebd5('0x38')](respondWithStatusCode(_0x5117eb,null))[_0x5aebd5('0x6')](handleError(_0x5117eb,null));},exports[_0x3afb4f('0x1d')]=function(_0x1e1145,_0x56beee){const _0x3e2e7e=_0x3afb4f;return db[_0x3e2e7e('0x6a')][_0x3e2e7e('0x2f')]({'where':{'id':_0x1e1145[_0x3e2e7e('0x51')]['id']}})[_0x3e2e7e('0x38')](function(_0x396488){const _0x13bda2=_0x3e2e7e;if(_0x396488)return _0x396488[_0x13bda2('0x1d')](_0x1e1145[_0x13bda2('0x5a')]['ids'],{'through':_[_0x13bda2('0x32')](_0x1e1145[_0x13bda2('0x5a')],['ids','id'])})[_0x13bda2('0x38')](function(_0x53ac17){const _0x1aed4e=_0x13bda2;for(let _0x1d878e=0x0;_0x1d878e<_0x1e1145['body']['ids']['length'];_0x1d878e+=0x1){socket[_0x1aed4e('0x37')](_0x1aed4e('0x6b'),{'UserId':_0x1e1145[_0x1aed4e('0x5a')][_0x1aed4e('0x16')][_0x1d878e],'MailQueueId':_0x1e1145[_0x1aed4e('0x51')]['id']});}return _0x53ac17;});})[_0x3e2e7e('0x38')](respondWithResult(_0x56beee,null))[_0x3e2e7e('0x6')](handleError(_0x56beee,null));},exports[_0x3afb4f('0x21')]=function(_0x4b2173,_0x527c07){const _0x40a24d=_0x3afb4f;return db[_0x40a24d('0x6a')][_0x40a24d('0x2f')]({'where':{'id':_0x4b2173[_0x40a24d('0x51')]['id']}})[_0x40a24d('0x38')](handleEntityNotFound(_0x527c07,null))[_0x40a24d('0x38')](function(_0xacfb74){const _0x289014=_0x40a24d;if(_0xacfb74)return _0xacfb74[_0x289014('0x21')](_0x4b2173['query'][_0x289014('0x16')])[_0x289014('0x38')](function(){const _0x5630cf=_0x289014;if(_[_0x5630cf('0x61')](_0x4b2173['query'][_0x5630cf('0x16')]))for(let _0x423173=0x0;_0x423173<_0x4b2173[_0x5630cf('0x5')][_0x5630cf('0x16')][_0x5630cf('0xf')];_0x423173+=0x1){socket['emit'](_0x5630cf('0x4c'),{'UserId':Number(_0x4b2173[_0x5630cf('0x5')][_0x5630cf('0x16')][_0x423173]),'MailQueueId':Number(_0x4b2173['params']['id'])});}else socket[_0x5630cf('0x37')](_0x5630cf('0x4c'),{'UserId':Number(_0x4b2173[_0x5630cf('0x5')]['ids']),'MailQueueId':Number(_0x4b2173[_0x5630cf('0x51')]['id'])});});})[_0x40a24d('0x38')](respondWithStatusCode(_0x527c07,null))['catch'](handleError(_0x527c07,null));},exports[_0x3afb4f('0x2')]=function(_0x3e1935,_0x3d7590){const _0x40ae69=_0x3afb4f;let _0x569bfe={};const _0xd5eb7f={};let _0x208947,_0x104012;return db[_0x40ae69('0x6a')][_0x40ae69('0x2f')]({'where':{'id':_0x3e1935[_0x40ae69('0x51')]['id']}})[_0x40ae69('0x38')](handleEntityNotFound(_0x3d7590,null))['then'](function(_0x2a5534){const _0x53d97f=_0x40ae69;if(_0x2a5534)return _0x208947=_0x2a5534,_0xd5eb7f[_0x53d97f('0x11')]=_[_0x53d97f('0x60')](db[_0x53d97f('0x12')][_0x53d97f('0x17')]),_0xd5eb7f[_0x53d97f('0x5')]=_['keys'](_0x3e1935['query']),_0xd5eb7f['filters']=_[_0x53d97f('0x23')](_0xd5eb7f[_0x53d97f('0x11')],_0xd5eb7f[_0x53d97f('0x5')]),_0x569bfe[_0x53d97f('0x3')]=_['intersection'](_0xd5eb7f[_0x53d97f('0x11')],qs[_0x53d97f('0x2c')](_0x3e1935[_0x53d97f('0x5')][_0x53d97f('0x2c')])),_0x569bfe[_0x53d97f('0x3')]=_0x569bfe[_0x53d97f('0x3')][_0x53d97f('0xf')]?_0x569bfe['attributes']:_0xd5eb7f['model'],_0x569bfe['order']=qs['sort'](_0x3e1935[_0x53d97f('0x5')][_0x53d97f('0x35')]),_0x569bfe[_0x53d97f('0x22')]=qs[_0x53d97f('0x7')](_[_0x53d97f('0x14')](_0x3e1935[_0x53d97f('0x5')],_0xd5eb7f[_0x53d97f('0x7')])),_0x3e1935[_0x53d97f('0x5')][_0x53d97f('0x5c')]&&(_0x569bfe['where']=_[_0x53d97f('0x53')](_0x569bfe[_0x53d97f('0x22')],{[Op['or']]:_[_0x53d97f('0x29')](_0x569bfe[_0x53d97f('0x3')],function(_0x28488d){const _0x50b84c=_0x53d97f,_0x36de05={};return _0x36de05[_0x28488d]={[Op['like']]:'%'+_0x3e1935['query'][_0x50b84c('0x5c')]+'%'},_0x36de05;})})),_0x569bfe=_[_0x53d97f('0x53')]({},_0x569bfe,_0x3e1935[_0x53d97f('0x52')]),_0x208947['getAgents'](_0x569bfe);})[_0x40ae69('0x38')](function(_0x2546df){const _0x39bb93=_0x40ae69;if(_0x2546df)return _0x104012=_0x2546df[_0x39bb93('0xf')],typeof _0x3e1935['query'][_0x39bb93('0x59')]===_0x39bb93('0x2a')&&(_0x569bfe['limit']=qs[_0x39bb93('0x25')](_0x3e1935[_0x39bb93('0x5')]['limit']),_0x569bfe[_0x39bb93('0x55')]=qs['offset'](_0x3e1935[_0x39bb93('0x5')]['offset'])),_0x208947['getAgents'](_0x569bfe);})[_0x40ae69('0x38')](function(_0x8646e3){if(_0x8646e3)return _0x8646e3?{'count':_0x104012,'rows':_0x8646e3}:null;})[_0x40ae69('0x38')](respondWithResult(_0x3d7590,null))[_0x40ae69('0x6')](handleError(_0x3d7590,null));}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.events.js b/server/api/mailQueue/mailQueue.events.js index dfe9130..4480f69 100644 --- a/server/api/mailQueue/mailQueue.events.js +++ b/server/api/mailQueue/mailQueue.events.js @@ -1 +1 @@ -const a421_0x2c1a=['../../mysqldb','MailQueue','undefined','update','setMaxListeners','save','addHook','emit','remove'];(function(_0x5eb85e,_0x2c1a3a){const _0x46521d=function(_0xdd80fc){while(--_0xdd80fc){_0x5eb85e['push'](_0x5eb85e['shift']());}};_0x46521d(++_0x2c1a3a);}(a421_0x2c1a,0x1a5));const a421_0x4652=function(_0x5eb85e,_0x2c1a3a){_0x5eb85e=_0x5eb85e-0x0;let _0x46521d=a421_0x2c1a[_0x5eb85e];return _0x46521d;};const _0x26d2db=a421_0x4652;'use strict';const EventEmitter=require('events'),MailQueue=require(_0x26d2db('0x2'))['db'][_0x26d2db('0x3')],MailQueueEvents=new EventEmitter();MailQueueEvents[_0x26d2db('0x6')](0x0);const events={'afterCreate':_0x26d2db('0x7'),'afterUpdate':_0x26d2db('0x5'),'afterDestroy':_0x26d2db('0x1')};function emitEvent(_0xdd80fc){return function(_0x558edb){const _0x324bba=a421_0x4652;MailQueueEvents[_0x324bba('0x0')](_0xdd80fc+':'+_0x558edb['id'],_0x558edb),MailQueueEvents['emit'](_0xdd80fc,_0x558edb);};}for(const e in events){if(typeof events[e]!==_0x26d2db('0x4')){const event=events[e];MailQueue[_0x26d2db('0x8')](e,emitEvent(event));}}module['exports']=MailQueueEvents; \ No newline at end of file +const a421_0x3e60=['setMaxListeners','save','undefined','emit','addHook','update'];(function(_0xf617ac,_0x3e6054){const _0x627974=function(_0x4e42e8){while(--_0x4e42e8){_0xf617ac['push'](_0xf617ac['shift']());}};_0x627974(++_0x3e6054);}(a421_0x3e60,0x13e));const a421_0x6279=function(_0xf617ac,_0x3e6054){_0xf617ac=_0xf617ac-0x0;let _0x627974=a421_0x3e60[_0xf617ac];return _0x627974;};const _0x4be350=a421_0x6279;'use strict';const EventEmitter=require('events'),MailQueue=require('../../mysqldb')['db']['MailQueue'],MailQueueEvents=new EventEmitter();MailQueueEvents[_0x4be350('0x0')](0x0);const events={'afterCreate':_0x4be350('0x1'),'afterUpdate':_0x4be350('0x5'),'afterDestroy':'remove'};function emitEvent(_0x4e42e8){return function(_0x376646){const _0x5901f6=a421_0x6279;MailQueueEvents[_0x5901f6('0x3')](_0x4e42e8+':'+_0x376646['id'],_0x376646),MailQueueEvents[_0x5901f6('0x3')](_0x4e42e8,_0x376646);};}for(const e in events){if(typeof events[e]!==_0x4be350('0x2')){const event=events[e];MailQueue[_0x4be350('0x4')](e,emitEvent(event));}}module['exports']=MailQueueEvents; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.model.js b/server/api/mailQueue/mailQueue.model.js index 41d5612..d38fc9b 100644 --- a/server/api/mailQueue/mailQueue.model.js +++ b/server/api/mailQueue/mailQueue.model.js @@ -1 +1 @@ -const a422_0x366c=['mail_queues','MailQueue','./mailQueue.attributes'];(function(_0x385b46,_0x366ca6){const _0x111e78=function(_0x5ca6c7){while(--_0x5ca6c7){_0x385b46['push'](_0x385b46['shift']());}};_0x111e78(++_0x366ca6);}(a422_0x366c,0xb1));const a422_0x111e=function(_0x385b46,_0x366ca6){_0x385b46=_0x385b46-0x0;let _0x111e78=a422_0x366c[_0x385b46];return _0x111e78;};const _0x4bbaca=a422_0x111e;'use strict';const attributes=require(_0x4bbaca('0x2'));module['exports']=function(_0x5ca6c7){const _0x3b41bc=_0x4bbaca,_0x156d2f=_0x5ca6c7['define'](_0x3b41bc('0x1'),attributes,{'tableName':_0x3b41bc('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x156d2f;}; \ No newline at end of file +const a422_0x504e=['MailQueue','exports','define','mail_queues','./mailQueue.attributes'];(function(_0x29688e,_0x504e60){const _0x4f5dfd=function(_0x18de49){while(--_0x18de49){_0x29688e['push'](_0x29688e['shift']());}};_0x4f5dfd(++_0x504e60);}(a422_0x504e,0x1cb));const a422_0x4f5d=function(_0x29688e,_0x504e60){_0x29688e=_0x29688e-0x0;let _0x4f5dfd=a422_0x504e[_0x29688e];return _0x4f5dfd;};const _0x471051=a422_0x4f5d;'use strict';const attributes=require(_0x471051('0x0'));module[_0x471051('0x2')]=function(_0x18de49){const _0x40fc05=_0x471051,_0xcf607=_0x18de49[_0x40fc05('0x3')](_0x40fc05('0x1'),attributes,{'tableName':_0x40fc05('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xcf607;}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.rpc.js b/server/api/mailQueue/mailQueue.rpc.js index 2f764d3..1d78258 100644 --- a/server/api/mailQueue/mailQueue.rpc.js +++ b/server/api/mailQueue/mailQueue.rpc.js @@ -1 +1 @@ -const a423_0xcbef=['attributes','stringify','debug','GetMailQueue','raw','info','limit','ShowMailQueue','message','where','findOne','MailQueue','error','map','model','../../config/logger','then','include','./mailQueue.socket','catch','../../mysqldb','options'];(function(_0x22a3a3,_0xcbef12){const _0x26274e=function(_0x1eb15a){while(--_0x1eb15a){_0x22a3a3['push'](_0x22a3a3['shift']());}};_0x26274e(++_0xcbef12);}(a423_0xcbef,0x112));const a423_0x2627=function(_0x22a3a3,_0xcbef12){_0x22a3a3=_0x22a3a3-0x0;let _0x26274e=a423_0xcbef[_0x22a3a3];return _0x26274e;};const _0x5464b0=a423_0x2627;'use strict';const _=require('lodash'),db=require(_0x5464b0('0xa'))['db'],logger=require(_0x5464b0('0x5'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x5464b0('0x8'))['register'](socket),exports[_0x5464b0('0xf')]=function(_0x1eb15a){const _0x33a60c=this;return new Promise(function(_0x325743,_0x4fa50c){const _0x2fd172=a423_0x2627;return db[_0x2fd172('0x1')]['findAll']({'raw':_0x1eb15a[_0x2fd172('0xb')]?_0x1eb15a[_0x2fd172('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x1eb15a['options']?_0x1eb15a[_0x2fd172('0xb')][_0x2fd172('0x15')]||null:null,'attributes':_0x1eb15a['options']?_0x1eb15a[_0x2fd172('0xb')][_0x2fd172('0xc')]||null:null,'limit':_0x1eb15a[_0x2fd172('0xb')]?_0x1eb15a[_0x2fd172('0xb')][_0x2fd172('0x12')]||null:null,'include':_0x1eb15a[_0x2fd172('0xb')]?_0x1eb15a['options'][_0x2fd172('0x7')]?_['map'](_0x1eb15a['options'][_0x2fd172('0x7')],function(_0x1b4725){const _0x49e8d7=_0x2fd172;return{'model':db[_0x1b4725[_0x49e8d7('0x4')]],'as':_0x1b4725['as'],'attributes':_0x1b4725[_0x49e8d7('0xc')],'include':_0x1b4725['include']?_[_0x49e8d7('0x3')](_0x1b4725[_0x49e8d7('0x7')],function(_0x15d96b){const _0x257da9=_0x49e8d7;return{'model':db[_0x15d96b[_0x257da9('0x4')]],'as':_0x15d96b['as'],'attributes':_0x15d96b['attributes'],'include':_0x15d96b['include']?_[_0x257da9('0x3')](_0x15d96b['include'],function(_0x58413f){const _0xe7465c=_0x257da9;return{'model':db[_0x58413f[_0xe7465c('0x4')]],'as':_0x58413f['as'],'attributes':_0x58413f['attributes']};}):[]};}):[]};}):[]:[]})[_0x2fd172('0x6')](function(_0x386ded){const _0x158c61=_0x2fd172;logger[_0x158c61('0x11')]('GetMailQueue',_0x1eb15a),logger[_0x158c61('0xe')](_0x158c61('0xf'),_0x1eb15a,JSON[_0x158c61('0xd')](_0x386ded)),_0x325743(_0x386ded);})[_0x2fd172('0x9')](function(_0x29fb81){const _0x2b1ba8=_0x2fd172;logger[_0x2b1ba8('0x2')](_0x2b1ba8('0xf'),_0x29fb81['message'],_0x1eb15a),_0x4fa50c(_0x33a60c['error'](0x1f4,_0x29fb81[_0x2b1ba8('0x14')]));});});},exports[_0x5464b0('0x13')]=function(_0x521342){const _0x44bb7f=this;return new Promise(function(_0x1acd88,_0xe204b4){const _0xba81d2=a423_0x2627;return db['MailQueue'][_0xba81d2('0x0')]({'raw':_0x521342[_0xba81d2('0xb')]?_0x521342['options'][_0xba81d2('0x10')]===undefined?!![]:![]:!![],'where':_0x521342[_0xba81d2('0xb')]?_0x521342[_0xba81d2('0xb')]['where']||null:null,'attributes':_0x521342[_0xba81d2('0xb')]?_0x521342[_0xba81d2('0xb')][_0xba81d2('0xc')]||null:null,'include':_0x521342[_0xba81d2('0xb')]?_0x521342[_0xba81d2('0xb')][_0xba81d2('0x7')]?_['map'](_0x521342[_0xba81d2('0xb')]['include'],function(_0x365a12){const _0x4c6ff1=_0xba81d2;return{'model':db[_0x365a12['model']],'as':_0x365a12['as'],'attributes':_0x365a12[_0x4c6ff1('0xc')],'include':_0x365a12[_0x4c6ff1('0x7')]?_[_0x4c6ff1('0x3')](_0x365a12[_0x4c6ff1('0x7')],function(_0xba08f3){const _0x557800=_0x4c6ff1;return{'model':db[_0xba08f3['model']],'as':_0xba08f3['as'],'attributes':_0xba08f3['attributes'],'include':_0xba08f3['include']?_[_0x557800('0x3')](_0xba08f3[_0x557800('0x7')],function(_0x176707){const _0x51e20a=_0x557800;return{'model':db[_0x176707[_0x51e20a('0x4')]],'as':_0x176707['as'],'attributes':_0x176707[_0x51e20a('0xc')]};}):[]};}):[]};}):[]:[]})[_0xba81d2('0x6')](function(_0x575448){const _0x1fd6e8=_0xba81d2;logger[_0x1fd6e8('0x11')]('ShowMailQueue',_0x521342),logger[_0x1fd6e8('0xe')](_0x1fd6e8('0x13'),_0x521342,JSON['stringify'](_0x575448)),_0x1acd88(_0x575448);})[_0xba81d2('0x9')](function(_0x9eddaf){const _0x2ddc79=_0xba81d2;logger[_0x2ddc79('0x2')](_0x2ddc79('0x13'),_0x9eddaf['message'],_0x521342),_0xe204b4(_0x44bb7f['error'](0x1f4,_0x9eddaf[_0x2ddc79('0x14')]));});});}; \ No newline at end of file +const a423_0x172d=['../../rediscache','limit','message','register','debug','then','ShowMailQueue','catch','options','findAll','GetMailQueue','map','info','./mailQueue.socket','where','error','attributes','stringify','../../config/logger','../../mysqldb','model','rpc','include','raw','findOne','MailQueue'];(function(_0x3d9c0a,_0x172d26){const _0xcc626c=function(_0xdef831){while(--_0xdef831){_0x3d9c0a['push'](_0x3d9c0a['shift']());}};_0xcc626c(++_0x172d26);}(a423_0x172d,0xc6));const a423_0xcc62=function(_0x3d9c0a,_0x172d26){_0x3d9c0a=_0x3d9c0a-0x0;let _0xcc626c=a423_0x172d[_0x3d9c0a];return _0xcc626c;};const _0x47bf24=a423_0xcc62;'use strict';const _=require('lodash'),db=require(_0x47bf24('0x3'))['db'],logger=require(_0x47bf24('0x2'))(_0x47bf24('0x5')),{getSocket}=require(_0x47bf24('0xa')),socket=getSocket();require(_0x47bf24('0x17'))[_0x47bf24('0xd')](socket),exports[_0x47bf24('0x14')]=function(_0xdef831){const _0x48fd93=this;return new Promise(function(_0x48e1f3,_0x205612){const _0x3a31fd=a423_0xcc62;return db[_0x3a31fd('0x9')][_0x3a31fd('0x13')]({'raw':_0xdef831[_0x3a31fd('0x12')]?_0xdef831[_0x3a31fd('0x12')][_0x3a31fd('0x7')]===undefined?!![]:![]:!![],'where':_0xdef831[_0x3a31fd('0x12')]?_0xdef831[_0x3a31fd('0x12')][_0x3a31fd('0x18')]||null:null,'attributes':_0xdef831[_0x3a31fd('0x12')]?_0xdef831[_0x3a31fd('0x12')][_0x3a31fd('0x0')]||null:null,'limit':_0xdef831['options']?_0xdef831[_0x3a31fd('0x12')][_0x3a31fd('0xb')]||null:null,'include':_0xdef831[_0x3a31fd('0x12')]?_0xdef831['options'][_0x3a31fd('0x6')]?_[_0x3a31fd('0x15')](_0xdef831[_0x3a31fd('0x12')][_0x3a31fd('0x6')],function(_0x3e5d8a){const _0x3e9d31=_0x3a31fd;return{'model':db[_0x3e5d8a[_0x3e9d31('0x4')]],'as':_0x3e5d8a['as'],'attributes':_0x3e5d8a[_0x3e9d31('0x0')],'include':_0x3e5d8a['include']?_['map'](_0x3e5d8a[_0x3e9d31('0x6')],function(_0x3ae98b){const _0x34d0c0=_0x3e9d31;return{'model':db[_0x3ae98b['model']],'as':_0x3ae98b['as'],'attributes':_0x3ae98b[_0x34d0c0('0x0')],'include':_0x3ae98b['include']?_[_0x34d0c0('0x15')](_0x3ae98b[_0x34d0c0('0x6')],function(_0x51827c){const _0xe25429=_0x34d0c0;return{'model':db[_0x51827c[_0xe25429('0x4')]],'as':_0x51827c['as'],'attributes':_0x51827c[_0xe25429('0x0')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x304d10){const _0x2f09c8=_0x3a31fd;logger[_0x2f09c8('0x16')]('GetMailQueue',_0xdef831),logger[_0x2f09c8('0xe')]('GetMailQueue',_0xdef831,JSON[_0x2f09c8('0x1')](_0x304d10)),_0x48e1f3(_0x304d10);})[_0x3a31fd('0x11')](function(_0x2c4e4f){const _0x1fd649=_0x3a31fd;logger[_0x1fd649('0x19')](_0x1fd649('0x14'),_0x2c4e4f[_0x1fd649('0xc')],_0xdef831),_0x205612(_0x48fd93['error'](0x1f4,_0x2c4e4f[_0x1fd649('0xc')]));});});},exports[_0x47bf24('0x10')]=function(_0x1e1698){const _0x10e5f7=this;return new Promise(function(_0x31d311,_0x17fd02){const _0x4b57dc=a423_0xcc62;return db['MailQueue'][_0x4b57dc('0x8')]({'raw':_0x1e1698[_0x4b57dc('0x12')]?_0x1e1698[_0x4b57dc('0x12')][_0x4b57dc('0x7')]===undefined?!![]:![]:!![],'where':_0x1e1698['options']?_0x1e1698[_0x4b57dc('0x12')][_0x4b57dc('0x18')]||null:null,'attributes':_0x1e1698[_0x4b57dc('0x12')]?_0x1e1698[_0x4b57dc('0x12')]['attributes']||null:null,'include':_0x1e1698[_0x4b57dc('0x12')]?_0x1e1698['options']['include']?_[_0x4b57dc('0x15')](_0x1e1698[_0x4b57dc('0x12')]['include'],function(_0x4b8cfa){const _0xe546c0=_0x4b57dc;return{'model':db[_0x4b8cfa[_0xe546c0('0x4')]],'as':_0x4b8cfa['as'],'attributes':_0x4b8cfa[_0xe546c0('0x0')],'include':_0x4b8cfa[_0xe546c0('0x6')]?_[_0xe546c0('0x15')](_0x4b8cfa[_0xe546c0('0x6')],function(_0x5ddf64){const _0x19d65e=_0xe546c0;return{'model':db[_0x5ddf64[_0x19d65e('0x4')]],'as':_0x5ddf64['as'],'attributes':_0x5ddf64[_0x19d65e('0x0')],'include':_0x5ddf64['include']?_[_0x19d65e('0x15')](_0x5ddf64[_0x19d65e('0x6')],function(_0x15a149){const _0x389633=_0x19d65e;return{'model':db[_0x15a149[_0x389633('0x4')]],'as':_0x15a149['as'],'attributes':_0x15a149['attributes']};}):[]};}):[]};}):[]:[]})[_0x4b57dc('0xf')](function(_0x117732){const _0x8870a6=_0x4b57dc;logger['info'](_0x8870a6('0x10'),_0x1e1698),logger[_0x8870a6('0xe')](_0x8870a6('0x10'),_0x1e1698,JSON[_0x8870a6('0x1')](_0x117732)),_0x31d311(_0x117732);})[_0x4b57dc('0x11')](function(_0x157d29){const _0x324a83=_0x4b57dc;logger['error'](_0x324a83('0x10'),_0x157d29[_0x324a83('0xc')],_0x1e1698),_0x17fd02(_0x10e5f7[_0x324a83('0x19')](0x1f4,_0x157d29[_0x324a83('0xc')]));});});}; \ No newline at end of file diff --git a/server/api/mailQueue/mailQueue.socket.js b/server/api/mailQueue/mailQueue.socket.js index 4049ca0..883330f 100644 --- a/server/api/mailQueue/mailQueue.socket.js +++ b/server/api/mailQueue/mailQueue.socket.js @@ -1 +1 @@ -const a424_0x4a18=['./mailQueue.events','register','remove','update'];(function(_0x16aa89,_0x4a1827){const _0x5a980e=function(_0x4cb835){while(--_0x4cb835){_0x16aa89['push'](_0x16aa89['shift']());}};_0x5a980e(++_0x4a1827);}(a424_0x4a18,0x191));const a424_0x5a98=function(_0x16aa89,_0x4a1827){_0x16aa89=_0x16aa89-0x0;let _0x5a980e=a424_0x4a18[_0x16aa89];return _0x5a980e;};const _0x7361df=a424_0x5a98;'use strict';const MailQueueEvents=require(_0x7361df('0x3')),events=['save',_0x7361df('0x1'),_0x7361df('0x2')];function createListener(_0x4cb835,_0x428636){return function(_0x144e8e){_0x428636['emit'](_0x4cb835,_0x144e8e);};}exports[_0x7361df('0x0')]=function(_0x32462d){for(let _0x3574d6=0x0,_0x39a7f8=events['length'];_0x3574d6<_0x39a7f8;_0x3574d6++){const _0x7766d8=events[_0x3574d6],_0x2d69cd=createListener('mailQueue:'+_0x7766d8,_0x32462d);MailQueueEvents['on'](_0x7766d8,_0x2d69cd);}}; \ No newline at end of file +const a424_0x4704=['save','remove','length','emit','./mailQueue.events','update','mailQueue:'];(function(_0x23066d,_0x470406){const _0x54f633=function(_0x324a48){while(--_0x324a48){_0x23066d['push'](_0x23066d['shift']());}};_0x54f633(++_0x470406);}(a424_0x4704,0x1c8));const a424_0x54f6=function(_0x23066d,_0x470406){_0x23066d=_0x23066d-0x0;let _0x54f633=a424_0x4704[_0x23066d];return _0x54f633;};const _0x2a0e84=a424_0x54f6;'use strict';const MailQueueEvents=require(_0x2a0e84('0x3')),events=[_0x2a0e84('0x6'),_0x2a0e84('0x0'),_0x2a0e84('0x4')];function createListener(_0x324a48,_0x16c6cb){return function(_0x51c500){const _0x29faf6=a424_0x54f6;_0x16c6cb[_0x29faf6('0x2')](_0x324a48,_0x51c500);};}exports['register']=function(_0x2850e6){const _0x2624a6=_0x2a0e84;for(let _0x20dd94=0x0,_0x477fd9=events[_0x2624a6('0x1')];_0x20dd94<_0x477fd9;_0x20dd94++){const _0x22565e=events[_0x20dd94],_0x59eb4a=createListener(_0x2624a6('0x5')+_0x22565e,_0x2850e6);MailQueueEvents['on'](_0x22565e,_0x59eb4a);}}; \ No newline at end of file diff --git a/server/api/mailQueueReport/index.js b/server/api/mailQueueReport/index.js index e4c9457..da86e46 100644 --- a/server/api/mailQueueReport/index.js +++ b/server/api/mailQueueReport/index.js @@ -1 +1 @@ -const a425_0x3590=['/describe','exports','../../components/auth/service','delete','describe','show','express','/:id','get','Router','post','isAuthenticated','put','update','./mailQueueReport.controller','index'];(function(_0x36a921,_0x359004){const _0xb742dc=function(_0xd75e97){while(--_0xd75e97){_0x36a921['push'](_0x36a921['shift']());}};_0xb742dc(++_0x359004);}(a425_0x3590,0x65));const a425_0xb742=function(_0x36a921,_0x359004){_0x36a921=_0x36a921-0x0;let _0xb742dc=a425_0x3590[_0x36a921];return _0xb742dc;};const _0x19c598=a425_0xb742;'use strict';const express=require(_0x19c598('0x1')),router=express[_0x19c598('0x4')](),auth=require(_0x19c598('0xd')),controller=require(_0x19c598('0x9'));router[_0x19c598('0x3')]('/',auth[_0x19c598('0x6')](),controller[_0x19c598('0xa')]),router[_0x19c598('0x3')](_0x19c598('0xb'),auth[_0x19c598('0x6')](),controller[_0x19c598('0xf')]),router[_0x19c598('0x3')]('/:id',auth[_0x19c598('0x6')](),controller[_0x19c598('0x0')]),router[_0x19c598('0x5')]('/',auth[_0x19c598('0x6')](),controller['create']),router[_0x19c598('0x7')](_0x19c598('0x2'),auth['isAuthenticated'](),controller[_0x19c598('0x8')]),router[_0x19c598('0xe')]('/:id',auth[_0x19c598('0x6')](),controller['destroy']),module[_0x19c598('0xc')]=router; \ No newline at end of file +const a425_0x1226=['exports','Router','put','/:id','post','destroy','delete','get','index','express','describe','/describe','../../components/auth/service','isAuthenticated'];(function(_0x4ff193,_0x1226e0){const _0xbde1c0=function(_0x2b4d6c){while(--_0x2b4d6c){_0x4ff193['push'](_0x4ff193['shift']());}};_0xbde1c0(++_0x1226e0);}(a425_0x1226,0x175));const a425_0xbde1=function(_0x4ff193,_0x1226e0){_0x4ff193=_0x4ff193-0x0;let _0xbde1c0=a425_0x1226[_0x4ff193];return _0xbde1c0;};const _0x4b2e7d=a425_0xbde1;'use strict';const express=require(_0x4b2e7d('0x0')),router=express[_0x4b2e7d('0x6')](),auth=require(_0x4b2e7d('0x3')),controller=require('./mailQueueReport.controller');router[_0x4b2e7d('0xc')]('/',auth['isAuthenticated'](),controller[_0x4b2e7d('0xd')]),router[_0x4b2e7d('0xc')](_0x4b2e7d('0x2'),auth[_0x4b2e7d('0x4')](),controller[_0x4b2e7d('0x1')]),router[_0x4b2e7d('0xc')](_0x4b2e7d('0x8'),auth[_0x4b2e7d('0x4')](),controller['show']),router[_0x4b2e7d('0x9')]('/',auth[_0x4b2e7d('0x4')](),controller['create']),router[_0x4b2e7d('0x7')](_0x4b2e7d('0x8'),auth['isAuthenticated'](),controller['update']),router[_0x4b2e7d('0xb')](_0x4b2e7d('0x8'),auth[_0x4b2e7d('0x4')](),controller[_0x4b2e7d('0xa')]),module[_0x4b2e7d('0x5')]=router; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.attributes.js b/server/api/mailQueueReport/mailQueueReport.attributes.js index 15362ef..475cdf3 100644 --- a/server/api/mailQueueReport/mailQueueReport.attributes.js +++ b/server/api/mailQueueReport/mailQueueReport.attributes.js @@ -1 +1 @@ -const a426_0x22ba=['DATE','STRING'];(function(_0x138ab0,_0x22badb){const _0x303c31=function(_0x5528e9){while(--_0x5528e9){_0x138ab0['push'](_0x138ab0['shift']());}};_0x303c31(++_0x22badb);}(a426_0x22ba,0x129));const a426_0x303c=function(_0x138ab0,_0x22badb){_0x138ab0=_0x138ab0-0x0;let _0x303c31=a426_0x22ba[_0x138ab0];return _0x303c31;};const _0x35d33e=a426_0x303c;'use strict';const Sequelize=require('sequelize');module['exports']={'uniqueid':{'type':Sequelize[_0x35d33e('0x0')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x35d33e('0x1')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize[_0x35d33e('0x1')]},'exitAt':{'type':Sequelize[_0x35d33e('0x1')]},'reason':{'type':Sequelize[_0x35d33e('0x0')]}}; \ No newline at end of file +const a426_0x1fbf=['DATE','exports','STRING'];(function(_0x29507a,_0x1fbff8){const _0x45c394=function(_0x5453b2){while(--_0x5453b2){_0x29507a['push'](_0x29507a['shift']());}};_0x45c394(++_0x1fbff8);}(a426_0x1fbf,0xd4));const a426_0x45c3=function(_0x29507a,_0x1fbff8){_0x29507a=_0x29507a-0x0;let _0x45c394=a426_0x1fbf[_0x29507a];return _0x45c394;};const _0x42d594=a426_0x45c3;'use strict';const Sequelize=require('sequelize');module[_0x42d594('0x2')]={'uniqueid':{'type':Sequelize[_0x42d594('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0x42d594('0x0')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0x42d594('0x1')]},'acceptAt':{'type':Sequelize[_0x42d594('0x1')]},'exitAt':{'type':Sequelize[_0x42d594('0x1')]},'reason':{'type':Sequelize[_0x42d594('0x0')]}}; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.controller.js b/server/api/mailQueueReport/mailQueueReport.controller.js index a0d9487..9f2c005 100644 --- a/server/api/mailQueueReport/mailQueueReport.controller.js +++ b/server/api/mailQueueReport/mailQueueReport.controller.js @@ -1 +1 @@ -const a427_0x569c=['create','where','../../mysqldb','options','merge','order','error','model','findAll','end','filters','catch','sendStatus','destroy','limit','fields','send','../../components/parsers/qs','attributes','update','name','intersection','status','includeAll','rawAttributes','offset','Content-Range','filter','show','fieldName','then','../../config/logger','length','undefined','count','api','map','pick','lodash','MailQueueReport','VIRTUAL','sequelize','type','describe','nolimit','findOne','json','key','include','params','body','stack','query','index'];(function(_0x3e1702,_0x569c8c){const _0x5a325b=function(_0x1c8963){while(--_0x1c8963){_0x3e1702['push'](_0x3e1702['shift']());}};_0x5a325b(++_0x569c8c);}(a427_0x569c,0xc9));const a427_0x5a32=function(_0x3e1702,_0x569c8c){_0x3e1702=_0x3e1702-0x0;let _0x5a325b=a427_0x569c[_0x3e1702];return _0x5a325b;};const _0x69eb6c=a427_0x5a32;'use strict';const _=require(_0x69eb6c('0x35')),qs=require(_0x69eb6c('0x20')),logger=require(_0x69eb6c('0x2e'))(_0x69eb6c('0x32')),db=require(_0x69eb6c('0x11'))['db'],{Op}=require(_0x69eb6c('0x2'));function respondWithResult(_0x1c8963,_0x1120f1){return _0x1120f1=_0x1120f1||0xc8,function(_0x4fa2fe){const _0x36f865=a427_0x5a32;if(_0x4fa2fe)return _0x1c8963[_0x36f865('0x25')](_0x1120f1)[_0x36f865('0x7')](_0x4fa2fe);};}function respondWithFilteredResult(_0x1a034c,_0x13a648){return function(_0x2df144){const _0x402c28=a427_0x5a32;if(_0x2df144){const _0x2c7ccb=_0x2df144['count'],_0x13f787=_0x13a648[_0x402c28('0x28')];let _0x2c6da0=_0x13a648[_0x402c28('0x28')]+_0x13a648[_0x402c28('0x1d')],_0x2faf7c;return _0x2c6da0>=_0x2c7ccb?(_0x2c6da0=_0x2c7ccb,_0x2faf7c=0xc8):_0x2faf7c=0xce,_0x1a034c[_0x402c28('0x25')](_0x2faf7c),_0x1a034c['set'](_0x402c28('0x29'),_0x13f787+'-'+_0x2c6da0+'/'+_0x2c7ccb)[_0x402c28('0x7')](_0x2df144);}return null;};}function saveUpdates(_0x1ae6f8){return function(_0x23eaa2){const _0x166c7b=a427_0x5a32;if(_0x23eaa2)return _0x23eaa2['update'](_0x1ae6f8)[_0x166c7b('0x2d')](function(_0x353c31){return _0x353c31;});return null;};}function removeEntity(_0x51cd55){return function(_0x5d2267){const _0x31fd24=a427_0x5a32;if(_0x5d2267)return _0x5d2267[_0x31fd24('0x1c')]()['then'](function(){const _0x2b9c14=_0x31fd24;_0x51cd55[_0x2b9c14('0x25')](0xcc)[_0x2b9c14('0x18')]();});};}function handleEntityNotFound(_0x523701){return function(_0x4e55d6){const _0x5bb3d0=a427_0x5a32;return!_0x4e55d6&&_0x523701[_0x5bb3d0('0x1b')](0x194),_0x4e55d6;};}function handleError(_0x91128f,_0x186225){return _0x186225=_0x186225||0x1f4,function(_0x2b98d9){const _0x1f8915=a427_0x5a32;logger[_0x1f8915('0x15')](_0x2b98d9[_0x1f8915('0xc')]),_0x2b98d9[_0x1f8915('0x23')]&&delete _0x2b98d9[_0x1f8915('0x23')],_0x91128f[_0x1f8915('0x25')](_0x186225)[_0x1f8915('0x1f')](_0x2b98d9);};}exports[_0x69eb6c('0xe')]=function(_0x23daf8,_0x40beb9){const _0x1e7d17=_0x69eb6c;let _0x457418={};const _0x297c3a={},_0x29b623={'count':0x0,'rows':[]},_0x3d0c0c=_[_0x1e7d17('0x33')](db['MailQueueReport'][_0x1e7d17('0x27')],function(_0xcbd82a){const _0x3173d5=_0x1e7d17;return{'name':_0xcbd82a[_0x3173d5('0x2c')],'type':_0xcbd82a[_0x3173d5('0x3')][_0x3173d5('0x8')]};});_0x297c3a[_0x1e7d17('0x16')]=_[_0x1e7d17('0x33')](_0x3d0c0c,'name'),_0x297c3a[_0x1e7d17('0xd')]=_['keys'](_0x23daf8['query']),_0x297c3a[_0x1e7d17('0x19')]=_[_0x1e7d17('0x24')](_0x297c3a[_0x1e7d17('0x16')],_0x297c3a[_0x1e7d17('0xd')]),_0x457418[_0x1e7d17('0x21')]=_[_0x1e7d17('0x24')](_0x297c3a[_0x1e7d17('0x16')],qs[_0x1e7d17('0x1e')](_0x23daf8[_0x1e7d17('0xd')]['fields'])),_0x457418[_0x1e7d17('0x21')]=_0x457418[_0x1e7d17('0x21')][_0x1e7d17('0x2f')]?_0x457418[_0x1e7d17('0x21')]:_0x297c3a[_0x1e7d17('0x16')];typeof _0x23daf8['query'][_0x1e7d17('0x5')]===_0x1e7d17('0x30')&&(_0x457418[_0x1e7d17('0x1d')]=qs['limit'](_0x23daf8[_0x1e7d17('0xd')][_0x1e7d17('0x1d')]),_0x457418[_0x1e7d17('0x28')]=qs[_0x1e7d17('0x28')](_0x23daf8['query']['offset']));_0x457418[_0x1e7d17('0x14')]=qs['sort'](_0x23daf8[_0x1e7d17('0xd')]['sort']),_0x457418[_0x1e7d17('0x10')]=qs[_0x1e7d17('0x19')](_[_0x1e7d17('0x34')](_0x23daf8['query'],_0x297c3a[_0x1e7d17('0x19')]),_0x3d0c0c);_0x23daf8[_0x1e7d17('0xd')][_0x1e7d17('0x2a')]&&(_0x457418[_0x1e7d17('0x10')]=_['merge'](_0x457418['where'],{[Op['or']]:_[_0x1e7d17('0x33')](_0x3d0c0c,function(_0x28e9bd){const _0x8e84b6=_0x1e7d17;if(_0x28e9bd[_0x8e84b6('0x3')]!==_0x8e84b6('0x1')){const _0x13971b={};return _0x13971b[_0x28e9bd[_0x8e84b6('0x23')]]={[Op['like']]:'%'+_0x23daf8[_0x8e84b6('0xd')][_0x8e84b6('0x2a')]+'%'},_0x13971b;}})}));_0x457418=_[_0x1e7d17('0x13')]({},_0x457418,_0x23daf8[_0x1e7d17('0x12')]);const _0x518350={'where':_0x457418[_0x1e7d17('0x10')]};return db[_0x1e7d17('0x0')][_0x1e7d17('0x31')](_0x518350)[_0x1e7d17('0x2d')](function(_0xce525d){const _0x302bbd=_0x1e7d17;return _0x29b623[_0x302bbd('0x31')]=_0xce525d,_0x23daf8[_0x302bbd('0xd')][_0x302bbd('0x26')]&&(_0x457418['include']=[{'all':!![]}]),db[_0x302bbd('0x0')][_0x302bbd('0x17')](_0x457418);})[_0x1e7d17('0x2d')](function(_0x33b068){return _0x29b623['rows']=_0x33b068,_0x29b623;})[_0x1e7d17('0x2d')](respondWithFilteredResult(_0x40beb9,_0x457418))[_0x1e7d17('0x1a')](handleError(_0x40beb9,null));},exports[_0x69eb6c('0x2b')]=function(_0x2a32aa,_0xed308c){const _0x3be874=_0x69eb6c;let _0x3e9336={'raw':!![],'where':{'id':_0x2a32aa[_0x3be874('0xa')]['id']}};const _0x2a25b9={};return _0x2a25b9[_0x3be874('0x16')]=_['keys'](db[_0x3be874('0x0')][_0x3be874('0x27')]),_0x2a25b9[_0x3be874('0xd')]=_['keys'](_0x2a32aa[_0x3be874('0xd')]),_0x2a25b9[_0x3be874('0x19')]=_['intersection'](_0x2a25b9[_0x3be874('0x16')],_0x2a25b9[_0x3be874('0xd')]),_0x3e9336[_0x3be874('0x21')]=_['intersection'](_0x2a25b9[_0x3be874('0x16')],qs[_0x3be874('0x1e')](_0x2a32aa[_0x3be874('0xd')]['fields'])),_0x3e9336['attributes']=_0x3e9336[_0x3be874('0x21')][_0x3be874('0x2f')]?_0x3e9336[_0x3be874('0x21')]:_0x2a25b9['model'],_0x2a32aa[_0x3be874('0xd')]['includeAll']&&(_0x3e9336[_0x3be874('0x9')]=[{'all':!![]}]),_0x3e9336=_[_0x3be874('0x13')]({},_0x3e9336,_0x2a32aa[_0x3be874('0x12')]),db[_0x3be874('0x0')][_0x3be874('0x6')](_0x3e9336)[_0x3be874('0x2d')](handleEntityNotFound(_0xed308c,null))[_0x3be874('0x2d')](respondWithResult(_0xed308c,null))[_0x3be874('0x1a')](handleError(_0xed308c,null));},exports[_0x69eb6c('0xf')]=function(_0x24e5c9,_0x42f5ea){const _0x2f2f9f=_0x69eb6c;return db['MailQueueReport']['create'](_0x24e5c9[_0x2f2f9f('0xb')],{})[_0x2f2f9f('0x2d')](respondWithResult(_0x42f5ea,0xc9))[_0x2f2f9f('0x1a')](handleError(_0x42f5ea,null));},exports[_0x69eb6c('0x22')]=function(_0x4f628c,_0x7f1f0b){const _0x1b4412=_0x69eb6c;return _0x4f628c['body']['id']&&delete _0x4f628c[_0x1b4412('0xb')]['id'],db['MailQueueReport'][_0x1b4412('0x6')]({'where':{'id':_0x4f628c[_0x1b4412('0xa')]['id']}})[_0x1b4412('0x2d')](handleEntityNotFound(_0x7f1f0b,null))[_0x1b4412('0x2d')](saveUpdates(_0x4f628c['body'],null))[_0x1b4412('0x2d')](respondWithResult(_0x7f1f0b,null))[_0x1b4412('0x1a')](handleError(_0x7f1f0b,null));},exports['destroy']=function(_0x3f8c1b,_0xd7fac0){const _0x3b32d2=_0x69eb6c;return db['MailQueueReport'][_0x3b32d2('0x6')]({'where':{'id':_0x3f8c1b[_0x3b32d2('0xa')]['id']}})[_0x3b32d2('0x2d')](handleEntityNotFound(_0xd7fac0,null))[_0x3b32d2('0x2d')](removeEntity(_0xd7fac0,null))[_0x3b32d2('0x1a')](handleError(_0xd7fac0,null));},exports[_0x69eb6c('0x4')]=function(_0x3c5b5b,_0x40af5e){const _0x442532=_0x69eb6c;return db[_0x442532('0x0')][_0x442532('0x4')]()[_0x442532('0x2d')](respondWithResult(_0x40af5e,null))[_0x442532('0x1a')](handleError(_0x40af5e,null));}; \ No newline at end of file +const a427_0x191d=['pick','destroy','lodash','order','params','json','model','create','findOne','keys','include','length','show','where','describe','set','nolimit','rawAttributes','like','type','fields','name','status','../../components/parsers/qs','filter','body','end','sendStatus','MailQueueReport','sequelize','catch','rows','includeAll','count','../../mysqldb','map','filters','then','update','stack','attributes','offset','query','index','merge','sort','Content-Range','fieldName','undefined','findAll','intersection','send','limit'];(function(_0x14d9cb,_0x191de5){const _0x334a70=function(_0x35424c){while(--_0x35424c){_0x14d9cb['push'](_0x14d9cb['shift']());}};_0x334a70(++_0x191de5);}(a427_0x191d,0xfe));const a427_0x334a=function(_0x14d9cb,_0x191de5){_0x14d9cb=_0x14d9cb-0x0;let _0x334a70=a427_0x191d[_0x14d9cb];return _0x334a70;};const _0x20b4e2=a427_0x334a;'use strict';const _=require(_0x20b4e2('0xd')),qs=require(_0x20b4e2('0x22')),logger=require('../../config/logger')('api'),db=require(_0x20b4e2('0x2d'))['db'],{Op}=require(_0x20b4e2('0x28'));function respondWithResult(_0x35424c,_0x11c1e8){return _0x11c1e8=_0x11c1e8||0xc8,function(_0x2919da){const _0x25c56d=a427_0x334a;if(_0x2919da)return _0x35424c[_0x25c56d('0x21')](_0x11c1e8)[_0x25c56d('0x10')](_0x2919da);};}function respondWithFilteredResult(_0x29cee1,_0x407a83){return function(_0x5bad43){const _0x4c2b39=a427_0x334a;if(_0x5bad43){const _0x5ba7a6=_0x5bad43['count'],_0x2c85d7=_0x407a83[_0x4c2b39('0x34')];let _0x22ab20=_0x407a83[_0x4c2b39('0x34')]+_0x407a83[_0x4c2b39('0xa')],_0x14a12f;return _0x22ab20>=_0x5ba7a6?(_0x22ab20=_0x5ba7a6,_0x14a12f=0xc8):_0x14a12f=0xce,_0x29cee1[_0x4c2b39('0x21')](_0x14a12f),_0x29cee1[_0x4c2b39('0x1a')](_0x4c2b39('0x4'),_0x2c85d7+'-'+_0x22ab20+'/'+_0x5ba7a6)[_0x4c2b39('0x10')](_0x5bad43);}return null;};}function saveUpdates(_0x208bcd){return function(_0x4bfc67){const _0x1b5e77=a427_0x334a;if(_0x4bfc67)return _0x4bfc67[_0x1b5e77('0x31')](_0x208bcd)['then'](function(_0x3244b4){return _0x3244b4;});return null;};}function removeEntity(_0x3600fd){return function(_0x1e5cff){const _0x5872e8=a427_0x334a;if(_0x1e5cff)return _0x1e5cff[_0x5872e8('0xc')]()[_0x5872e8('0x30')](function(){const _0x99a048=_0x5872e8;_0x3600fd[_0x99a048('0x21')](0xcc)[_0x99a048('0x25')]();});};}function handleEntityNotFound(_0x587e81){return function(_0x5111dd){const _0x5e6ae8=a427_0x334a;return!_0x5111dd&&_0x587e81[_0x5e6ae8('0x26')](0x194),_0x5111dd;};}function handleError(_0x362c29,_0x233a36){return _0x233a36=_0x233a36||0x1f4,function(_0x377629){const _0x1be2d2=a427_0x334a;logger['error'](_0x377629[_0x1be2d2('0x32')]),_0x377629[_0x1be2d2('0x20')]&&delete _0x377629[_0x1be2d2('0x20')],_0x362c29[_0x1be2d2('0x21')](_0x233a36)[_0x1be2d2('0x9')](_0x377629);};}exports[_0x20b4e2('0x1')]=function(_0x39f554,_0x364923){const _0x4d8e08=_0x20b4e2;let _0xecd154={};const _0x48f664={},_0x59e342={'count':0x0,'rows':[]},_0x5b986d=_[_0x4d8e08('0x2e')](db[_0x4d8e08('0x27')][_0x4d8e08('0x1c')],function(_0x50704e){const _0x399a17=_0x4d8e08;return{'name':_0x50704e[_0x399a17('0x5')],'type':_0x50704e['type']['key']};});_0x48f664[_0x4d8e08('0x11')]=_[_0x4d8e08('0x2e')](_0x5b986d,_0x4d8e08('0x20')),_0x48f664[_0x4d8e08('0x0')]=_[_0x4d8e08('0x14')](_0x39f554['query']),_0x48f664['filters']=_['intersection'](_0x48f664[_0x4d8e08('0x11')],_0x48f664[_0x4d8e08('0x0')]),_0xecd154[_0x4d8e08('0x33')]=_['intersection'](_0x48f664[_0x4d8e08('0x11')],qs[_0x4d8e08('0x1f')](_0x39f554[_0x4d8e08('0x0')]['fields'])),_0xecd154[_0x4d8e08('0x33')]=_0xecd154[_0x4d8e08('0x33')][_0x4d8e08('0x16')]?_0xecd154[_0x4d8e08('0x33')]:_0x48f664[_0x4d8e08('0x11')];typeof _0x39f554[_0x4d8e08('0x0')][_0x4d8e08('0x1b')]===_0x4d8e08('0x6')&&(_0xecd154[_0x4d8e08('0xa')]=qs[_0x4d8e08('0xa')](_0x39f554[_0x4d8e08('0x0')][_0x4d8e08('0xa')]),_0xecd154[_0x4d8e08('0x34')]=qs[_0x4d8e08('0x34')](_0x39f554[_0x4d8e08('0x0')][_0x4d8e08('0x34')]));_0xecd154[_0x4d8e08('0xe')]=qs['sort'](_0x39f554['query'][_0x4d8e08('0x3')]),_0xecd154[_0x4d8e08('0x18')]=qs[_0x4d8e08('0x2f')](_[_0x4d8e08('0xb')](_0x39f554[_0x4d8e08('0x0')],_0x48f664[_0x4d8e08('0x2f')]),_0x5b986d);_0x39f554['query'][_0x4d8e08('0x23')]&&(_0xecd154[_0x4d8e08('0x18')]=_[_0x4d8e08('0x2')](_0xecd154[_0x4d8e08('0x18')],{[Op['or']]:_['map'](_0x5b986d,function(_0x23eb01){const _0x4429d8=_0x4d8e08;if(_0x23eb01[_0x4429d8('0x1e')]!=='VIRTUAL'){const _0x27644f={};return _0x27644f[_0x23eb01[_0x4429d8('0x20')]]={[Op[_0x4429d8('0x1d')]]:'%'+_0x39f554[_0x4429d8('0x0')]['filter']+'%'},_0x27644f;}})}));_0xecd154=_[_0x4d8e08('0x2')]({},_0xecd154,_0x39f554['options']);const _0x5af456={'where':_0xecd154[_0x4d8e08('0x18')]};return db[_0x4d8e08('0x27')]['count'](_0x5af456)['then'](function(_0x135d6c){const _0x793ee1=_0x4d8e08;return _0x59e342[_0x793ee1('0x2c')]=_0x135d6c,_0x39f554[_0x793ee1('0x0')]['includeAll']&&(_0xecd154[_0x793ee1('0x15')]=[{'all':!![]}]),db[_0x793ee1('0x27')][_0x793ee1('0x7')](_0xecd154);})['then'](function(_0x27db6e){const _0xe6346c=_0x4d8e08;return _0x59e342[_0xe6346c('0x2a')]=_0x27db6e,_0x59e342;})['then'](respondWithFilteredResult(_0x364923,_0xecd154))[_0x4d8e08('0x29')](handleError(_0x364923,null));},exports[_0x20b4e2('0x17')]=function(_0x3699c8,_0x2538ba){const _0x5cb1eb=_0x20b4e2;let _0x7895fd={'raw':!![],'where':{'id':_0x3699c8[_0x5cb1eb('0xf')]['id']}};const _0xbc829b={};return _0xbc829b['model']=_[_0x5cb1eb('0x14')](db[_0x5cb1eb('0x27')][_0x5cb1eb('0x1c')]),_0xbc829b[_0x5cb1eb('0x0')]=_['keys'](_0x3699c8[_0x5cb1eb('0x0')]),_0xbc829b[_0x5cb1eb('0x2f')]=_[_0x5cb1eb('0x8')](_0xbc829b[_0x5cb1eb('0x11')],_0xbc829b[_0x5cb1eb('0x0')]),_0x7895fd[_0x5cb1eb('0x33')]=_[_0x5cb1eb('0x8')](_0xbc829b['model'],qs[_0x5cb1eb('0x1f')](_0x3699c8[_0x5cb1eb('0x0')][_0x5cb1eb('0x1f')])),_0x7895fd[_0x5cb1eb('0x33')]=_0x7895fd[_0x5cb1eb('0x33')][_0x5cb1eb('0x16')]?_0x7895fd[_0x5cb1eb('0x33')]:_0xbc829b[_0x5cb1eb('0x11')],_0x3699c8[_0x5cb1eb('0x0')][_0x5cb1eb('0x2b')]&&(_0x7895fd[_0x5cb1eb('0x15')]=[{'all':!![]}]),_0x7895fd=_['merge']({},_0x7895fd,_0x3699c8['options']),db['MailQueueReport'][_0x5cb1eb('0x13')](_0x7895fd)[_0x5cb1eb('0x30')](handleEntityNotFound(_0x2538ba,null))['then'](respondWithResult(_0x2538ba,null))['catch'](handleError(_0x2538ba,null));},exports[_0x20b4e2('0x12')]=function(_0x227bf5,_0xba5795){const _0x4f2cd8=_0x20b4e2;return db[_0x4f2cd8('0x27')][_0x4f2cd8('0x12')](_0x227bf5[_0x4f2cd8('0x24')],{})[_0x4f2cd8('0x30')](respondWithResult(_0xba5795,0xc9))['catch'](handleError(_0xba5795,null));},exports['update']=function(_0x52bf22,_0x148c3f){const _0x10786d=_0x20b4e2;return _0x52bf22[_0x10786d('0x24')]['id']&&delete _0x52bf22[_0x10786d('0x24')]['id'],db[_0x10786d('0x27')][_0x10786d('0x13')]({'where':{'id':_0x52bf22['params']['id']}})['then'](handleEntityNotFound(_0x148c3f,null))[_0x10786d('0x30')](saveUpdates(_0x52bf22[_0x10786d('0x24')],null))[_0x10786d('0x30')](respondWithResult(_0x148c3f,null))[_0x10786d('0x29')](handleError(_0x148c3f,null));},exports[_0x20b4e2('0xc')]=function(_0x2cd2ae,_0x2966ee){const _0x185474=_0x20b4e2;return db[_0x185474('0x27')]['findOne']({'where':{'id':_0x2cd2ae[_0x185474('0xf')]['id']}})[_0x185474('0x30')](handleEntityNotFound(_0x2966ee,null))[_0x185474('0x30')](removeEntity(_0x2966ee,null))['catch'](handleError(_0x2966ee,null));},exports[_0x20b4e2('0x19')]=function(_0x237e21,_0x198f05){const _0x34be59=_0x20b4e2;return db['MailQueueReport'][_0x34be59('0x19')]()[_0x34be59('0x30')](respondWithResult(_0x198f05,null))[_0x34be59('0x29')](handleError(_0x198f05,null));}; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.model.js b/server/api/mailQueueReport/mailQueueReport.model.js index e937d34..fcbfd73 100644 --- a/server/api/mailQueueReport/mailQueueReport.model.js +++ b/server/api/mailQueueReport/mailQueueReport.model.js @@ -1 +1 @@ -const a428_0x1c38=['exports','./mailQueueReport.attributes','MailQueueReport','define','uniqueid','report_mail_queue'];(function(_0xc96cb4,_0x1c387c){const _0x28439b=function(_0x5cb0fb){while(--_0x5cb0fb){_0xc96cb4['push'](_0xc96cb4['shift']());}};_0x28439b(++_0x1c387c);}(a428_0x1c38,0x175));const a428_0x2843=function(_0xc96cb4,_0x1c387c){_0xc96cb4=_0xc96cb4-0x0;let _0x28439b=a428_0x1c38[_0xc96cb4];return _0x28439b;};const _0x56006a=a428_0x2843;'use strict';const attributes=require(_0x56006a('0x0'));module[_0x56006a('0x5')]=function(_0x5cb0fb){const _0x251c27=_0x56006a,_0x4dee73=_0x5cb0fb[_0x251c27('0x2')](_0x251c27('0x1'),attributes,{'tableName':_0x251c27('0x4'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x251c27('0x3')]}],'timestamps':!![]});return _0x4dee73;}; \ No newline at end of file +const a428_0x32af=['exports','./mailQueueReport.attributes','define','uniqueid','report_mail_queue'];(function(_0x5e40a8,_0x32af69){const _0x3fcad4=function(_0x1f019d){while(--_0x1f019d){_0x5e40a8['push'](_0x5e40a8['shift']());}};_0x3fcad4(++_0x32af69);}(a428_0x32af,0x127));const a428_0x3fca=function(_0x5e40a8,_0x32af69){_0x5e40a8=_0x5e40a8-0x0;let _0x3fcad4=a428_0x32af[_0x5e40a8];return _0x3fcad4;};const _0x35b119=a428_0x3fca;'use strict';const attributes=require(_0x35b119('0x1'));module[_0x35b119('0x0')]=function(_0x1f019d){const _0xcad695=_0x35b119,_0x1e1e9d=_0x1f019d[_0xcad695('0x2')]('MailQueueReport',attributes,{'tableName':_0xcad695('0x4'),'paranoid':![],'indexes':[{'name':_0xcad695('0x3'),'fields':[_0xcad695('0x3')]}],'timestamps':!![]});return _0x1e1e9d;}; \ No newline at end of file diff --git a/server/api/mailQueueReport/mailQueueReport.rpc.js b/server/api/mailQueueReport/mailQueueReport.rpc.js index 542c044..d5fd267 100644 --- a/server/api/mailQueueReport/mailQueueReport.rpc.js +++ b/server/api/mailQueueReport/mailQueueReport.rpc.js @@ -1 +1 @@ -const a429_0x17ca=['debug','CreateMailQueueReport','create','rpc','message','body','MailQueueReport','attributes','where','options','limit','catch','stringify','error','info','raw','../../config/logger','then','UpdateMailQueueReport'];(function(_0x47701f,_0x17ca8a){const _0x49870a=function(_0x13c555){while(--_0x13c555){_0x47701f['push'](_0x47701f['shift']());}};_0x49870a(++_0x17ca8a);}(a429_0x17ca,0x138));const a429_0x4987=function(_0x47701f,_0x17ca8a){_0x47701f=_0x47701f-0x0;let _0x49870a=a429_0x17ca[_0x47701f];return _0x49870a;};const _0x3b27c6=a429_0x4987;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x3b27c6('0x8'))(_0x3b27c6('0xe'));exports[_0x3b27c6('0xc')]=function(_0x13c555){const _0x3b8ea5=this;return new Promise(function(_0x395292,_0x15c787){const _0x42ef63=a429_0x4987;return db['MailQueueReport'][_0x42ef63('0xd')](_0x13c555[_0x42ef63('0x10')],{'raw':_0x13c555[_0x42ef63('0x1')]?_0x13c555[_0x42ef63('0x1')][_0x42ef63('0x7')]===undefined?!![]:![]:!![]})[_0x42ef63('0x9')](function(_0x47e634){const _0x3185ce=_0x42ef63;logger[_0x3185ce('0x6')](_0x3185ce('0xc'),_0x13c555),logger[_0x3185ce('0xb')]('CreateMailQueueReport',_0x13c555,JSON[_0x3185ce('0x4')](_0x47e634)),_0x395292(_0x47e634);})['catch'](function(_0xc45307){const _0xc2ef2=_0x42ef63;logger[_0xc2ef2('0x5')](_0xc2ef2('0xc'),_0xc45307[_0xc2ef2('0xf')],_0x13c555),_0x15c787(_0x3b8ea5['error'](0x1f4,_0xc45307[_0xc2ef2('0xf')]));});});},exports['UpdateMailQueueReport']=function(_0x5276f0){const _0x47e805=this;return new Promise(function(_0x45b99d,_0x47ca29){const _0xe3f4f8=a429_0x4987;return db[_0xe3f4f8('0x11')]['update'](_0x5276f0[_0xe3f4f8('0x10')],{'raw':_0x5276f0[_0xe3f4f8('0x1')]?_0x5276f0[_0xe3f4f8('0x1')][_0xe3f4f8('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5276f0[_0xe3f4f8('0x1')]?_0x5276f0[_0xe3f4f8('0x1')][_0xe3f4f8('0x0')]||null:null,'attributes':_0x5276f0['options']?_0x5276f0[_0xe3f4f8('0x1')][_0xe3f4f8('0x12')]||null:null,'limit':_0x5276f0[_0xe3f4f8('0x1')]?_0x5276f0[_0xe3f4f8('0x1')][_0xe3f4f8('0x2')]||null:null})[_0xe3f4f8('0x9')](function(_0x97c85){const _0x3c54b9=_0xe3f4f8;logger['info'](_0x3c54b9('0xa'),_0x5276f0),logger['debug'](_0x3c54b9('0xa'),_0x5276f0,JSON[_0x3c54b9('0x4')](_0x97c85)),_0x45b99d(_0x97c85);})[_0xe3f4f8('0x3')](function(_0x359bfa){const _0x8424b9=_0xe3f4f8;logger[_0x8424b9('0x5')](_0x8424b9('0xa'),_0x359bfa[_0x8424b9('0xf')],_0x5276f0),_0x47ca29(_0x47e805[_0x8424b9('0x5')](0x1f4,_0x359bfa[_0x8424b9('0xf')]));});});}; \ No newline at end of file +const a429_0x50ab=['UpdateMailQueueReport','create','attributes','message','../../config/logger','../../mysqldb','rpc','then','options','debug','update','limit','stringify','info','where','MailQueueReport','CreateMailQueueReport','catch','raw','body','error'];(function(_0x54838a,_0x50ab75){const _0xf7ee2=function(_0x33db09){while(--_0x33db09){_0x54838a['push'](_0x54838a['shift']());}};_0xf7ee2(++_0x50ab75);}(a429_0x50ab,0x9e));const a429_0xf7ee=function(_0x54838a,_0x50ab75){_0x54838a=_0x54838a-0x0;let _0xf7ee2=a429_0x50ab[_0x54838a];return _0xf7ee2;};const _0x785a39=a429_0xf7ee;'use strict';const db=require(_0x785a39('0xf'))['db'],logger=require(_0x785a39('0xe'))(_0x785a39('0x10'));exports[_0x785a39('0x5')]=function(_0x33db09){const _0x520cc3=this;return new Promise(function(_0x1e5160,_0x1912c6){const _0x4c7ea0=a429_0xf7ee;return db[_0x4c7ea0('0x4')][_0x4c7ea0('0xb')](_0x33db09[_0x4c7ea0('0x8')],{'raw':_0x33db09['options']?_0x33db09['options'][_0x4c7ea0('0x7')]===undefined?!![]:![]:!![]})['then'](function(_0x27070c){const _0x3bdeb2=_0x4c7ea0;logger['info']('CreateMailQueueReport',_0x33db09),logger[_0x3bdeb2('0x13')]('CreateMailQueueReport',_0x33db09,JSON[_0x3bdeb2('0x1')](_0x27070c)),_0x1e5160(_0x27070c);})[_0x4c7ea0('0x6')](function(_0x39d52a){const _0x120a05=_0x4c7ea0;logger[_0x120a05('0x9')](_0x120a05('0x5'),_0x39d52a['message'],_0x33db09),_0x1912c6(_0x520cc3[_0x120a05('0x9')](0x1f4,_0x39d52a[_0x120a05('0xd')]));});});},exports[_0x785a39('0xa')]=function(_0x102e48){const _0x2c0c34=this;return new Promise(function(_0x3ae5cb,_0x42d493){const _0x4d33ed=a429_0xf7ee;return db[_0x4d33ed('0x4')][_0x4d33ed('0x14')](_0x102e48[_0x4d33ed('0x8')],{'raw':_0x102e48[_0x4d33ed('0x12')]?_0x102e48[_0x4d33ed('0x12')][_0x4d33ed('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x102e48['options']?_0x102e48['options'][_0x4d33ed('0x3')]||null:null,'attributes':_0x102e48[_0x4d33ed('0x12')]?_0x102e48['options'][_0x4d33ed('0xc')]||null:null,'limit':_0x102e48[_0x4d33ed('0x12')]?_0x102e48[_0x4d33ed('0x12')][_0x4d33ed('0x0')]||null:null})[_0x4d33ed('0x11')](function(_0xe6e1ef){const _0x56a769=_0x4d33ed;logger[_0x56a769('0x2')](_0x56a769('0xa'),_0x102e48),logger[_0x56a769('0x13')](_0x56a769('0xa'),_0x102e48,JSON[_0x56a769('0x1')](_0xe6e1ef)),_0x3ae5cb(_0xe6e1ef);})['catch'](function(_0x37fb11){const _0x57c735=_0x4d33ed;logger[_0x57c735('0x9')](_0x57c735('0xa'),_0x37fb11[_0x57c735('0xd')],_0x102e48),_0x42d493(_0x2c0c34['error'](0x1f4,_0x37fb11['message']));});});}; \ No newline at end of file diff --git a/server/api/mailServerIn/index.js b/server/api/mailServerIn/index.js index 86dff82..3ef27dd 100644 --- a/server/api/mailServerIn/index.js +++ b/server/api/mailServerIn/index.js @@ -1 +1 @@ -const a430_0x170f=['exports','express','Router'];(function(_0x38f35f,_0x170f4d){const _0x466733=function(_0x2bc86a){while(--_0x2bc86a){_0x38f35f['push'](_0x38f35f['shift']());}};_0x466733(++_0x170f4d);}(a430_0x170f,0x133));const a430_0x4667=function(_0x38f35f,_0x170f4d){_0x38f35f=_0x38f35f-0x0;let _0x466733=a430_0x170f[_0x38f35f];return _0x466733;};const _0xcdceb9=a430_0x4667;'use strict';const express=require(_0xcdceb9('0x0')),router=express[_0xcdceb9('0x1')]();module[_0xcdceb9('0x2')]=router; \ No newline at end of file +const a430_0x3cb7=['Router','exports'];(function(_0x4f69be,_0x3cb7a2){const _0x489b8=function(_0x54223a){while(--_0x54223a){_0x4f69be['push'](_0x4f69be['shift']());}};_0x489b8(++_0x3cb7a2);}(a430_0x3cb7,0x116));const a430_0x489b=function(_0x4f69be,_0x3cb7a2){_0x4f69be=_0x4f69be-0x0;let _0x489b8=a430_0x3cb7[_0x4f69be];return _0x489b8;};const _0x5cb254=a430_0x489b;'use strict';const express=require('express'),router=express[_0x5cb254('0x0')]();module[_0x5cb254('0x1')]=router; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.attributes.js b/server/api/mailServerIn/mailServerIn.attributes.js index acbe106..dbe0d74 100644 --- a/server/api/mailServerIn/mailServerIn.attributes.js +++ b/server/api/mailServerIn/mailServerIn.attributes.js @@ -1 +1 @@ -const a431_0x59bb=['exports','STRING','INTEGER','INBOX','username','BOOLEAN'];(function(_0x153a32,_0x59bbbc){const _0x1b5c5e=function(_0x4d71eb){while(--_0x4d71eb){_0x153a32['push'](_0x153a32['shift']());}};_0x1b5c5e(++_0x59bbbc);}(a431_0x59bb,0x11b));const a431_0x1b5c=function(_0x153a32,_0x59bbbc){_0x153a32=_0x153a32-0x0;let _0x1b5c5e=a431_0x59bb[_0x153a32];return _0x1b5c5e;};const _0x3899e2=a431_0x1b5c;'use strict';const Sequelize=require('sequelize');module[_0x3899e2('0x5')]={'description':{'type':Sequelize[_0x3899e2('0x0')]},'host':{'type':Sequelize[_0x3899e2('0x0')]},'authentication':{'type':Sequelize[_0x3899e2('0x4')],'defaultValue':!![]},'user':{'type':Sequelize[_0x3899e2('0x0')],'unique':_0x3899e2('0x3')},'password':{'type':Sequelize[_0x3899e2('0x0')]},'port':{'type':Sequelize[_0x3899e2('0x1')]},'tls':{'type':Sequelize[_0x3899e2('0x4')],'defaultValue':!![]},'mailbox':{'type':Sequelize[_0x3899e2('0x0')],'defaultValue':_0x3899e2('0x2')},'connTimeout':{'type':Sequelize['INTEGER'],'defaultValue':0xa},'authTimeout':{'type':Sequelize['INTEGER'],'defaultValue':0x5},'service':{'type':Sequelize[_0x3899e2('0x0')]}}; \ No newline at end of file +const a431_0x2104=['STRING','username','sequelize','BOOLEAN','INTEGER'];(function(_0x14430c,_0x2104da){const _0x466e35=function(_0xf6ef63){while(--_0xf6ef63){_0x14430c['push'](_0x14430c['shift']());}};_0x466e35(++_0x2104da);}(a431_0x2104,0x188));const a431_0x466e=function(_0x14430c,_0x2104da){_0x14430c=_0x14430c-0x0;let _0x466e35=a431_0x2104[_0x14430c];return _0x466e35;};const _0x3df4fe=a431_0x466e;'use strict';const Sequelize=require(_0x3df4fe('0x0'));module['exports']={'description':{'type':Sequelize['STRING']},'host':{'type':Sequelize[_0x3df4fe('0x3')]},'authentication':{'type':Sequelize[_0x3df4fe('0x1')],'defaultValue':!![]},'user':{'type':Sequelize[_0x3df4fe('0x3')],'unique':_0x3df4fe('0x4')},'password':{'type':Sequelize['STRING']},'port':{'type':Sequelize['INTEGER']},'tls':{'type':Sequelize[_0x3df4fe('0x1')],'defaultValue':!![]},'mailbox':{'type':Sequelize[_0x3df4fe('0x3')],'defaultValue':'INBOX'},'connTimeout':{'type':Sequelize[_0x3df4fe('0x2')],'defaultValue':0xa},'authTimeout':{'type':Sequelize[_0x3df4fe('0x2')],'defaultValue':0x5},'service':{'type':Sequelize[_0x3df4fe('0x3')]}}; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.model.js b/server/api/mailServerIn/mailServerIn.model.js index f77d3c3..769d997 100644 --- a/server/api/mailServerIn/mailServerIn.model.js +++ b/server/api/mailServerIn/mailServerIn.model.js @@ -1 +1 @@ -const a432_0x3b46=['MailServerIn','exports','define','mail_servers_in'];(function(_0x333753,_0x3b46d4){const _0x5922ca=function(_0x55c500){while(--_0x55c500){_0x333753['push'](_0x333753['shift']());}};_0x5922ca(++_0x3b46d4);}(a432_0x3b46,0xa6));const a432_0x5922=function(_0x333753,_0x3b46d4){_0x333753=_0x333753-0x0;let _0x5922ca=a432_0x3b46[_0x333753];return _0x5922ca;};const _0x301de4=a432_0x5922;'use strict';const attributes=require('./mailServerIn.attributes');module[_0x301de4('0x3')]=function(_0x55c500){const _0x5e69cb=_0x301de4,_0x18724f=_0x55c500[_0x5e69cb('0x0')](_0x5e69cb('0x2'),attributes,{'tableName':_0x5e69cb('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x18724f;}; \ No newline at end of file +const a432_0x31b3=['define','./mailServerIn.attributes','mail_servers_in','MailServerIn','exports'];(function(_0x340bcd,_0x31b314){const _0x5a321e=function(_0x38248d){while(--_0x38248d){_0x340bcd['push'](_0x340bcd['shift']());}};_0x5a321e(++_0x31b314);}(a432_0x31b3,0xd5));const a432_0x5a32=function(_0x340bcd,_0x31b314){_0x340bcd=_0x340bcd-0x0;let _0x5a321e=a432_0x31b3[_0x340bcd];return _0x5a321e;};const _0x24467c=a432_0x5a32;'use strict';const attributes=require(_0x24467c('0x3'));module[_0x24467c('0x1')]=function(_0x38248d){const _0x13361a=_0x24467c,_0xbe505b=_0x38248d[_0x13361a('0x2')](_0x13361a('0x0'),attributes,{'tableName':_0x13361a('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xbe505b;}; \ No newline at end of file diff --git a/server/api/mailServerIn/mailServerIn.rpc.js b/server/api/mailServerIn/mailServerIn.rpc.js index 96656c9..18171e6 100644 --- a/server/api/mailServerIn/mailServerIn.rpc.js +++ b/server/api/mailServerIn/mailServerIn.rpc.js @@ -1 +1 @@ -const a433_0x4480=['MailServerIn','include','catch','rpc','debug','attributes','../../mysqldb','stringify','info','options','map','then','GetMailServerIn','message','model','error','../../config/logger','where'];(function(_0x24c4e4,_0x448074){const _0x327c6d=function(_0x51008c){while(--_0x51008c){_0x24c4e4['push'](_0x24c4e4['shift']());}};_0x327c6d(++_0x448074);}(a433_0x4480,0x73));const a433_0x327c=function(_0x24c4e4,_0x448074){_0x24c4e4=_0x24c4e4-0x0;let _0x327c6d=a433_0x4480[_0x24c4e4];return _0x327c6d;};const _0x116ca3=a433_0x327c;'use strict';const _=require('lodash'),db=require(_0x116ca3('0x11'))['db'],logger=require(_0x116ca3('0x9'))(_0x116ca3('0xe'));exports['GetMailServerIn']=function(_0x51008c){const _0x324b26=this;return new Promise(function(_0x2d02ec,_0x91d368){const _0x41019c=a433_0x327c;return db[_0x41019c('0xb')]['findAll']({'raw':_0x51008c[_0x41019c('0x2')]?_0x51008c[_0x41019c('0x2')]['raw']===undefined?!![]:![]:!![],'where':_0x51008c[_0x41019c('0x2')]?_0x51008c[_0x41019c('0x2')][_0x41019c('0xa')]||null:null,'attributes':_0x51008c[_0x41019c('0x2')]?_0x51008c[_0x41019c('0x2')]['attributes']||null:null,'limit':_0x51008c[_0x41019c('0x2')]?_0x51008c['options']['limit']||null:null,'include':_0x51008c[_0x41019c('0x2')]?_0x51008c[_0x41019c('0x2')][_0x41019c('0xc')]?_[_0x41019c('0x3')](_0x51008c[_0x41019c('0x2')][_0x41019c('0xc')],function(_0x115331){const _0x52d510=_0x41019c;return{'model':db[_0x115331[_0x52d510('0x7')]],'as':_0x115331['as'],'attributes':_0x115331[_0x52d510('0x10')],'include':_0x115331[_0x52d510('0xc')]?_[_0x52d510('0x3')](_0x115331[_0x52d510('0xc')],function(_0x3062ca){const _0x1abacd=_0x52d510;return{'model':db[_0x3062ca[_0x1abacd('0x7')]],'as':_0x3062ca['as'],'attributes':_0x3062ca['attributes'],'include':_0x3062ca['include']?_[_0x1abacd('0x3')](_0x3062ca[_0x1abacd('0xc')],function(_0xdbe913){const _0xbb9129=_0x1abacd;return{'model':db[_0xdbe913[_0xbb9129('0x7')]],'as':_0xdbe913['as'],'attributes':_0xdbe913[_0xbb9129('0x10')]};}):[]};}):[]};}):[]:[]})[_0x41019c('0x4')](function(_0x9d7afc){const _0x271336=_0x41019c;logger[_0x271336('0x1')](_0x271336('0x5'),_0x51008c),logger[_0x271336('0xf')](_0x271336('0x5'),_0x51008c,JSON[_0x271336('0x0')](_0x9d7afc)),_0x2d02ec(_0x9d7afc);})[_0x41019c('0xd')](function(_0x4e5ebc){const _0x1b6bfe=_0x41019c;logger[_0x1b6bfe('0x8')](_0x1b6bfe('0x5'),_0x4e5ebc['message'],_0x51008c),_0x91d368(_0x324b26[_0x1b6bfe('0x8')](0x1f4,_0x4e5ebc[_0x1b6bfe('0x6')]));});});}; \ No newline at end of file +const a433_0x3342=['include','error','findAll','stringify','map','attributes','GetMailServerIn','lodash','message','rpc','raw','then','model','where','debug','options','catch'];(function(_0x28aa10,_0x33428d){const _0x519201=function(_0x474ebc){while(--_0x474ebc){_0x28aa10['push'](_0x28aa10['shift']());}};_0x519201(++_0x33428d);}(a433_0x3342,0xec));const a433_0x5192=function(_0x28aa10,_0x33428d){_0x28aa10=_0x28aa10-0x0;let _0x519201=a433_0x3342[_0x28aa10];return _0x519201;};const _0x191e77=a433_0x5192;'use strict';const _=require(_0x191e77('0x9')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x191e77('0xb'));exports[_0x191e77('0x8')]=function(_0x474ebc){const _0x508b14=this;return new Promise(function(_0x320a69,_0x1080b8){const _0x4de186=a433_0x5192;return db['MailServerIn'][_0x4de186('0x4')]({'raw':_0x474ebc[_0x4de186('0x0')]?_0x474ebc['options'][_0x4de186('0xc')]===undefined?!![]:![]:!![],'where':_0x474ebc['options']?_0x474ebc['options'][_0x4de186('0xf')]||null:null,'attributes':_0x474ebc[_0x4de186('0x0')]?_0x474ebc[_0x4de186('0x0')][_0x4de186('0x7')]||null:null,'limit':_0x474ebc[_0x4de186('0x0')]?_0x474ebc[_0x4de186('0x0')]['limit']||null:null,'include':_0x474ebc[_0x4de186('0x0')]?_0x474ebc[_0x4de186('0x0')][_0x4de186('0x2')]?_[_0x4de186('0x6')](_0x474ebc['options'][_0x4de186('0x2')],function(_0x563d77){const _0x4c8bd6=_0x4de186;return{'model':db[_0x563d77[_0x4c8bd6('0xe')]],'as':_0x563d77['as'],'attributes':_0x563d77[_0x4c8bd6('0x7')],'include':_0x563d77[_0x4c8bd6('0x2')]?_[_0x4c8bd6('0x6')](_0x563d77[_0x4c8bd6('0x2')],function(_0x54ce48){const _0x214a18=_0x4c8bd6;return{'model':db[_0x54ce48[_0x214a18('0xe')]],'as':_0x54ce48['as'],'attributes':_0x54ce48[_0x214a18('0x7')],'include':_0x54ce48['include']?_[_0x214a18('0x6')](_0x54ce48[_0x214a18('0x2')],function(_0x50486e){const _0x15679c=_0x214a18;return{'model':db[_0x50486e[_0x15679c('0xe')]],'as':_0x50486e['as'],'attributes':_0x50486e[_0x15679c('0x7')]};}):[]};}):[]};}):[]:[]})[_0x4de186('0xd')](function(_0x51db82){const _0x5b9d1e=_0x4de186;logger['info'](_0x5b9d1e('0x8'),_0x474ebc),logger[_0x5b9d1e('0x10')](_0x5b9d1e('0x8'),_0x474ebc,JSON[_0x5b9d1e('0x5')](_0x51db82)),_0x320a69(_0x51db82);})[_0x4de186('0x1')](function(_0x7c141c){const _0x23b3ff=_0x4de186;logger[_0x23b3ff('0x3')](_0x23b3ff('0x8'),_0x7c141c[_0x23b3ff('0xa')],_0x474ebc),_0x1080b8(_0x508b14[_0x23b3ff('0x3')](0x1f4,_0x7c141c[_0x23b3ff('0xa')]));});});}; \ No newline at end of file diff --git a/server/api/mailServerOut/index.js b/server/api/mailServerOut/index.js index ca6000b..3ab35e4 100644 --- a/server/api/mailServerOut/index.js +++ b/server/api/mailServerOut/index.js @@ -1 +1 @@ -const a434_0x302e=['isAuthenticated','delete','Router','put','../../components/auth/service','express','index','update','get','/:id','destroy'];(function(_0x4eb862,_0x302e61){const _0x2474e7=function(_0x41d3a6){while(--_0x41d3a6){_0x4eb862['push'](_0x4eb862['shift']());}};_0x2474e7(++_0x302e61);}(a434_0x302e,0xa3));const a434_0x2474=function(_0x4eb862,_0x302e61){_0x4eb862=_0x4eb862-0x0;let _0x2474e7=a434_0x302e[_0x4eb862];return _0x2474e7;};const _0xeabeea=a434_0x2474;'use strict';const express=require(_0xeabeea('0x7')),router=express[_0xeabeea('0x4')](),auth=require(_0xeabeea('0x6')),controller=require('./mailServerOut.controller');router[_0xeabeea('0xa')]('/',auth[_0xeabeea('0x2')](),controller[_0xeabeea('0x8')]),router[_0xeabeea('0xa')](_0xeabeea('0x0'),auth[_0xeabeea('0x2')](),controller['show']),router['post']('/',auth[_0xeabeea('0x2')](),controller['create']),router[_0xeabeea('0x5')](_0xeabeea('0x0'),auth[_0xeabeea('0x2')](),controller[_0xeabeea('0x9')]),router[_0xeabeea('0x3')](_0xeabeea('0x0'),auth[_0xeabeea('0x2')](),controller[_0xeabeea('0x1')]),module['exports']=router; \ No newline at end of file +const a434_0x26dd=['post','isAuthenticated','update','./mailServerOut.controller','put','delete','/:id','destroy','express','../../components/auth/service','get','exports'];(function(_0x440beb,_0x26ddd4){const _0x1820f1=function(_0x17085b){while(--_0x17085b){_0x440beb['push'](_0x440beb['shift']());}};_0x1820f1(++_0x26ddd4);}(a434_0x26dd,0x105));const a434_0x1820=function(_0x440beb,_0x26ddd4){_0x440beb=_0x440beb-0x0;let _0x1820f1=a434_0x26dd[_0x440beb];return _0x1820f1;};const _0x22d4d3=a434_0x1820;'use strict';const express=require(_0x22d4d3('0xb')),router=express['Router'](),auth=require(_0x22d4d3('0x0')),controller=require(_0x22d4d3('0x6'));router[_0x22d4d3('0x1')]('/',auth[_0x22d4d3('0x4')](),controller['index']),router[_0x22d4d3('0x1')](_0x22d4d3('0x9'),auth['isAuthenticated'](),controller['show']),router[_0x22d4d3('0x3')]('/',auth[_0x22d4d3('0x4')](),controller['create']),router[_0x22d4d3('0x7')](_0x22d4d3('0x9'),auth[_0x22d4d3('0x4')](),controller[_0x22d4d3('0x5')]),router[_0x22d4d3('0x8')](_0x22d4d3('0x9'),auth['isAuthenticated'](),controller[_0x22d4d3('0xa')]),module[_0x22d4d3('0x2')]=router; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.attributes.js b/server/api/mailServerOut/mailServerOut.attributes.js index 3b2fcbc..46a01dc 100644 --- a/server/api/mailServerOut/mailServerOut.attributes.js +++ b/server/api/mailServerOut/mailServerOut.attributes.js @@ -1 +1 @@ -const a435_0x36b4=['STRING','BOOLEAN'];(function(_0x2e0264,_0x36b403){const _0x8dcd7=function(_0x569d1f){while(--_0x569d1f){_0x2e0264['push'](_0x2e0264['shift']());}};_0x8dcd7(++_0x36b403);}(a435_0x36b4,0xd9));const a435_0x8dcd=function(_0x2e0264,_0x36b403){_0x2e0264=_0x2e0264-0x0;let _0x8dcd7=a435_0x36b4[_0x2e0264];return _0x8dcd7;};const _0x5a8640=a435_0x8dcd;'use strict';const Sequelize=require('sequelize');module['exports']={'description':{'type':Sequelize[_0x5a8640('0x1')]},'host':{'type':Sequelize[_0x5a8640('0x1')]},'user':{'type':Sequelize[_0x5a8640('0x1')]},'pass':{'type':Sequelize['STRING']},'port':{'type':Sequelize['INTEGER']},'secure':{'type':Sequelize[_0x5a8640('0x0')],'defaultValue':![]},'service':{'type':Sequelize['STRING']},'authentication':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file +const a435_0x5f1f=['BOOLEAN','INTEGER','STRING','sequelize'];(function(_0x3a36f4,_0x5f1fca){const _0x1859d8=function(_0x26c7d3){while(--_0x26c7d3){_0x3a36f4['push'](_0x3a36f4['shift']());}};_0x1859d8(++_0x5f1fca);}(a435_0x5f1f,0x1c9));const a435_0x1859=function(_0x3a36f4,_0x5f1fca){_0x3a36f4=_0x3a36f4-0x0;let _0x1859d8=a435_0x5f1f[_0x3a36f4];return _0x1859d8;};const _0x5e5299=a435_0x1859;'use strict';const Sequelize=require(_0x5e5299('0x2'));module['exports']={'description':{'type':Sequelize[_0x5e5299('0x1')]},'host':{'type':Sequelize['STRING']},'user':{'type':Sequelize[_0x5e5299('0x1')]},'pass':{'type':Sequelize['STRING']},'port':{'type':Sequelize[_0x5e5299('0x0')]},'secure':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'service':{'type':Sequelize['STRING']},'authentication':{'type':Sequelize[_0x5e5299('0x3')],'defaultValue':!![]}}; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.controller.js b/server/api/mailServerOut/mailServerOut.controller.js index d973eb9..05c0d26 100644 --- a/server/api/mailServerOut/mailServerOut.controller.js +++ b/server/api/mailServerOut/mailServerOut.controller.js @@ -1 +1 @@ -const a436_0x310c=['merge','sendStatus','query','then','options','fields','limit','filters','lodash','error','Content-Range','json','pick','destroy','map','params','like','name','sequelize','findOne','intersection','filter','keys','create','where','../../config/logger','index','nolimit','body','set','update','catch','offset','include','attributes','sort','count','findAll','rows','undefined','api','key','status','order','type','includeAll','rawAttributes','MailServerOut','model'];(function(_0x2592a5,_0x310c7f){const _0xa6f9a0=function(_0x1e69d6){while(--_0x1e69d6){_0x2592a5['push'](_0x2592a5['shift']());}};_0xa6f9a0(++_0x310c7f);}(a436_0x310c,0xe9));const a436_0xa6f9=function(_0x2592a5,_0x310c7f){_0x2592a5=_0x2592a5-0x0;let _0xa6f9a0=a436_0x310c[_0x2592a5];return _0xa6f9a0;};const _0x58802d=a436_0xa6f9;'use strict';const _=require(_0x58802d('0x14')),qs=require('../../components/parsers/qs'),logger=require(_0x58802d('0x25'))(_0x58802d('0x3')),db=require('../../mysqldb')['db'],{Op}=require(_0x58802d('0x1e'));function respondWithResult(_0x1e69d6,_0x433b7f){return _0x433b7f=_0x433b7f||0xc8,function(_0x3c2746){const _0x430ef0=a436_0xa6f9;if(_0x3c2746)return _0x1e69d6[_0x430ef0('0x5')](_0x433b7f)[_0x430ef0('0x17')](_0x3c2746);};}function respondWithFilteredResult(_0x55046c,_0x27a4f6){return function(_0x1e6441){const _0x5ca941=a436_0xa6f9;if(_0x1e6441){const _0x2991ed=_0x1e6441[_0x5ca941('0x30')],_0x3605cc=_0x27a4f6[_0x5ca941('0x2c')];let _0x4f7bd=_0x27a4f6[_0x5ca941('0x2c')]+_0x27a4f6[_0x5ca941('0x12')],_0x358b11;return _0x4f7bd>=_0x2991ed?(_0x4f7bd=_0x2991ed,_0x358b11=0xc8):_0x358b11=0xce,_0x55046c[_0x5ca941('0x5')](_0x358b11),_0x55046c[_0x5ca941('0x29')](_0x5ca941('0x16'),_0x3605cc+'-'+_0x4f7bd+'/'+_0x2991ed)['json'](_0x1e6441);}return null;};}function saveUpdates(_0x3bab6d){return function(_0x3b5fa9){const _0x156e93=a436_0xa6f9;if(_0x3b5fa9)return _0x3b5fa9['update'](_0x3bab6d)[_0x156e93('0xf')](function(_0x42ea28){return _0x42ea28;});return null;};}function removeEntity(_0x14e4a1){return function(_0x31a382){const _0x2482b1=a436_0xa6f9;if(_0x31a382)return _0x31a382[_0x2482b1('0x19')]()[_0x2482b1('0xf')](function(){const _0x8201e=_0x2482b1;_0x14e4a1[_0x8201e('0x5')](0xcc)['end']();});};}function handleEntityNotFound(_0x272267){return function(_0xb865e1){const _0x20f60f=a436_0xa6f9;return!_0xb865e1&&_0x272267[_0x20f60f('0xd')](0x194),_0xb865e1;};}function handleError(_0x287b56,_0x56224e){return _0x56224e=_0x56224e||0x1f4,function(_0xe0ec94){const _0x9bfa1c=a436_0xa6f9;logger[_0x9bfa1c('0x15')](_0xe0ec94['stack']),_0xe0ec94[_0x9bfa1c('0x1d')]&&delete _0xe0ec94[_0x9bfa1c('0x1d')],_0x287b56[_0x9bfa1c('0x5')](_0x56224e)['send'](_0xe0ec94);};}exports[_0x58802d('0x26')]=function(_0x1e566c,_0x58baa4){const _0x14afee=_0x58802d;let _0x5244a6={};const _0x221bc1={},_0x4e8ea1={'count':0x0,'rows':[]},_0x3624f2=_[_0x14afee('0x1a')](db['MailServerOut'][_0x14afee('0x9')],function(_0x4e009b){const _0xbf5cfe=_0x14afee;return{'name':_0x4e009b['fieldName'],'type':_0x4e009b[_0xbf5cfe('0x7')][_0xbf5cfe('0x4')]};});_0x221bc1['model']=_[_0x14afee('0x1a')](_0x3624f2,'name'),_0x221bc1[_0x14afee('0xe')]=_[_0x14afee('0x22')](_0x1e566c[_0x14afee('0xe')]),_0x221bc1[_0x14afee('0x13')]=_[_0x14afee('0x20')](_0x221bc1['model'],_0x221bc1[_0x14afee('0xe')]),_0x5244a6[_0x14afee('0x2e')]=_[_0x14afee('0x20')](_0x221bc1[_0x14afee('0xb')],qs[_0x14afee('0x11')](_0x1e566c['query'][_0x14afee('0x11')])),_0x5244a6[_0x14afee('0x2e')]=_0x5244a6[_0x14afee('0x2e')]['length']?_0x5244a6[_0x14afee('0x2e')]:_0x221bc1[_0x14afee('0xb')];typeof _0x1e566c[_0x14afee('0xe')][_0x14afee('0x27')]===_0x14afee('0x2')&&(_0x5244a6[_0x14afee('0x12')]=qs['limit'](_0x1e566c[_0x14afee('0xe')]['limit']),_0x5244a6['offset']=qs[_0x14afee('0x2c')](_0x1e566c[_0x14afee('0xe')][_0x14afee('0x2c')]));_0x5244a6[_0x14afee('0x6')]=qs[_0x14afee('0x2f')](_0x1e566c[_0x14afee('0xe')][_0x14afee('0x2f')]),_0x5244a6[_0x14afee('0x24')]=qs['filters'](_[_0x14afee('0x18')](_0x1e566c[_0x14afee('0xe')],_0x221bc1[_0x14afee('0x13')]),_0x3624f2);_0x1e566c[_0x14afee('0xe')][_0x14afee('0x21')]&&(_0x5244a6[_0x14afee('0x24')]=_[_0x14afee('0xc')](_0x5244a6['where'],{[Op['or']]:_[_0x14afee('0x1a')](_0x3624f2,function(_0xccc649){const _0x587309=_0x14afee;if(_0xccc649[_0x587309('0x7')]!=='VIRTUAL'){const _0x3df317={};return _0x3df317[_0xccc649[_0x587309('0x1d')]]={[Op[_0x587309('0x1c')]]:'%'+_0x1e566c[_0x587309('0xe')][_0x587309('0x21')]+'%'},_0x3df317;}})}));_0x5244a6=_['merge']({},_0x5244a6,_0x1e566c['options']);const _0x11ca26={'where':_0x5244a6['where']};return db[_0x14afee('0xa')][_0x14afee('0x30')](_0x11ca26)['then'](function(_0xe3b3d0){const _0x5427ac=_0x14afee;return _0x4e8ea1[_0x5427ac('0x30')]=_0xe3b3d0,_0x1e566c['query']['includeAll']&&(_0x5244a6[_0x5427ac('0x2d')]=[{'all':!![]}]),db['MailServerOut'][_0x5427ac('0x0')](_0x5244a6);})[_0x14afee('0xf')](function(_0x4eca83){const _0x38d401=_0x14afee;return _0x4e8ea1[_0x38d401('0x1')]=_0x4eca83,_0x4e8ea1;})[_0x14afee('0xf')](respondWithFilteredResult(_0x58baa4,_0x5244a6))[_0x14afee('0x2b')](handleError(_0x58baa4,null));},exports['show']=function(_0x40eced,_0x2e3c13){const _0x8c2450=_0x58802d;let _0xaeb87f={'raw':!![],'where':{'id':_0x40eced[_0x8c2450('0x1b')]['id']}};const _0x53357c={};return _0x53357c[_0x8c2450('0xb')]=_[_0x8c2450('0x22')](db[_0x8c2450('0xa')]['rawAttributes']),_0x53357c[_0x8c2450('0xe')]=_[_0x8c2450('0x22')](_0x40eced['query']),_0x53357c[_0x8c2450('0x13')]=_['intersection'](_0x53357c[_0x8c2450('0xb')],_0x53357c[_0x8c2450('0xe')]),_0xaeb87f[_0x8c2450('0x2e')]=_[_0x8c2450('0x20')](_0x53357c[_0x8c2450('0xb')],qs[_0x8c2450('0x11')](_0x40eced[_0x8c2450('0xe')][_0x8c2450('0x11')])),_0xaeb87f[_0x8c2450('0x2e')]=_0xaeb87f[_0x8c2450('0x2e')]['length']?_0xaeb87f[_0x8c2450('0x2e')]:_0x53357c[_0x8c2450('0xb')],_0x40eced[_0x8c2450('0xe')][_0x8c2450('0x8')]&&(_0xaeb87f[_0x8c2450('0x2d')]=[{'all':!![]}]),_0xaeb87f=_[_0x8c2450('0xc')]({},_0xaeb87f,_0x40eced[_0x8c2450('0x10')]),db[_0x8c2450('0xa')][_0x8c2450('0x1f')](_0xaeb87f)[_0x8c2450('0xf')](handleEntityNotFound(_0x2e3c13,null))[_0x8c2450('0xf')](respondWithResult(_0x2e3c13,null))['catch'](handleError(_0x2e3c13,null));},exports[_0x58802d('0x23')]=function(_0x36eeca,_0x3dfa91){const _0x10c3f1=_0x58802d;return db[_0x10c3f1('0xa')]['create'](_0x36eeca['body'],{})['then'](respondWithResult(_0x3dfa91,0xc9))[_0x10c3f1('0x2b')](handleError(_0x3dfa91,null));},exports[_0x58802d('0x2a')]=function(_0x956e43,_0x427d93){const _0x5bcd59=_0x58802d;return _0x956e43[_0x5bcd59('0x28')]['id']&&delete _0x956e43[_0x5bcd59('0x28')]['id'],db[_0x5bcd59('0xa')][_0x5bcd59('0x1f')]({'where':{'id':_0x956e43['params']['id']}})[_0x5bcd59('0xf')](handleEntityNotFound(_0x427d93,null))[_0x5bcd59('0xf')](saveUpdates(_0x956e43[_0x5bcd59('0x28')],null))[_0x5bcd59('0xf')](respondWithResult(_0x427d93,null))[_0x5bcd59('0x2b')](handleError(_0x427d93,null));},exports[_0x58802d('0x19')]=function(_0x120496,_0x187fbf){const _0x4ded9b=_0x58802d;return db[_0x4ded9b('0xa')]['findOne']({'where':{'id':_0x120496[_0x4ded9b('0x1b')]['id']}})['then'](handleEntityNotFound(_0x187fbf,null))['then'](removeEntity(_0x187fbf,null))[_0x4ded9b('0x2b')](handleError(_0x187fbf,null));}; \ No newline at end of file +const a436_0x5039=['includeAll','count','sequelize','merge','fieldName','rows','model','create','../../config/logger','destroy','sort','length','undefined','params','lodash','index','../../mysqldb','VIRTUAL','status','offset','catch','type','limit','filter','where','update','order','like','json','attributes','query','intersection','Content-Range','../../components/parsers/qs','findOne','then','set','MailServerOut','body','options','map','stack','error','name','send','keys','show','filters','findAll','include','rawAttributes','fields'];(function(_0x189e29,_0x503969){const _0x21f270=function(_0x41ed2e){while(--_0x41ed2e){_0x189e29['push'](_0x189e29['shift']());}};_0x21f270(++_0x503969);}(a436_0x5039,0x1cd));const a436_0x21f2=function(_0x189e29,_0x503969){_0x189e29=_0x189e29-0x0;let _0x21f270=a436_0x5039[_0x189e29];return _0x21f270;};const _0x5f45e2=a436_0x21f2;'use strict';const _=require(_0x5f45e2('0x15')),qs=require(_0x5f45e2('0x28')),logger=require(_0x5f45e2('0xf'))('api'),db=require(_0x5f45e2('0x17'))['db'],{Op}=require(_0x5f45e2('0x9'));function respondWithResult(_0x41ed2e,_0x57fd78){return _0x57fd78=_0x57fd78||0xc8,function(_0xdba4ae){const _0x34e01d=a436_0x21f2;if(_0xdba4ae)return _0x41ed2e[_0x34e01d('0x19')](_0x57fd78)[_0x34e01d('0x23')](_0xdba4ae);};}function respondWithFilteredResult(_0x20e2d3,_0x17745d){return function(_0x499279){const _0x1d123e=a436_0x21f2;if(_0x499279){const _0xd225c9=_0x499279[_0x1d123e('0x8')],_0x44f885=_0x17745d[_0x1d123e('0x1a')];let _0x3a045c=_0x17745d['offset']+_0x17745d['limit'],_0xbc7d2;return _0x3a045c>=_0xd225c9?(_0x3a045c=_0xd225c9,_0xbc7d2=0xc8):_0xbc7d2=0xce,_0x20e2d3['status'](_0xbc7d2),_0x20e2d3[_0x1d123e('0x2b')](_0x1d123e('0x27'),_0x44f885+'-'+_0x3a045c+'/'+_0xd225c9)[_0x1d123e('0x23')](_0x499279);}return null;};}function saveUpdates(_0x3cca8b){return function(_0xdecc59){const _0x15775=a436_0x21f2;if(_0xdecc59)return _0xdecc59[_0x15775('0x20')](_0x3cca8b)[_0x15775('0x2a')](function(_0x3cc155){return _0x3cc155;});return null;};}function removeEntity(_0x59d64c){return function(_0x218ae3){const _0xce37ff=a436_0x21f2;if(_0x218ae3)return _0x218ae3['destroy']()[_0xce37ff('0x2a')](function(){const _0x2613c6=_0xce37ff;_0x59d64c[_0x2613c6('0x19')](0xcc)['end']();});};}function handleEntityNotFound(_0x3e8e3c){return function(_0x30b766){return!_0x30b766&&_0x3e8e3c['sendStatus'](0x194),_0x30b766;};}function handleError(_0x52c231,_0x2f9773){return _0x2f9773=_0x2f9773||0x1f4,function(_0xcb2541){const _0x2379dd=a436_0x21f2;logger[_0x2379dd('0x31')](_0xcb2541[_0x2379dd('0x30')]),_0xcb2541[_0x2379dd('0x32')]&&delete _0xcb2541[_0x2379dd('0x32')],_0x52c231['status'](_0x2f9773)[_0x2379dd('0x33')](_0xcb2541);};}exports[_0x5f45e2('0x16')]=function(_0x402097,_0x53ae4e){const _0x545acd=_0x5f45e2;let _0x9e3b59={};const _0x5cac42={},_0x17b10a={'count':0x0,'rows':[]},_0x5460dd=_[_0x545acd('0x2f')](db[_0x545acd('0x2c')][_0x545acd('0x5')],function(_0x1e5dd3){const _0x18aa3b=_0x545acd;return{'name':_0x1e5dd3[_0x18aa3b('0xb')],'type':_0x1e5dd3['type']['key']};});_0x5cac42['model']=_[_0x545acd('0x2f')](_0x5460dd,_0x545acd('0x32')),_0x5cac42['query']=_[_0x545acd('0x0')](_0x402097[_0x545acd('0x25')]),_0x5cac42['filters']=_[_0x545acd('0x26')](_0x5cac42[_0x545acd('0xd')],_0x5cac42['query']),_0x9e3b59['attributes']=_[_0x545acd('0x26')](_0x5cac42[_0x545acd('0xd')],qs['fields'](_0x402097[_0x545acd('0x25')][_0x545acd('0x6')])),_0x9e3b59[_0x545acd('0x24')]=_0x9e3b59[_0x545acd('0x24')][_0x545acd('0x12')]?_0x9e3b59[_0x545acd('0x24')]:_0x5cac42[_0x545acd('0xd')];typeof _0x402097['query']['nolimit']===_0x545acd('0x13')&&(_0x9e3b59[_0x545acd('0x1d')]=qs[_0x545acd('0x1d')](_0x402097['query'][_0x545acd('0x1d')]),_0x9e3b59[_0x545acd('0x1a')]=qs[_0x545acd('0x1a')](_0x402097['query'][_0x545acd('0x1a')]));_0x9e3b59[_0x545acd('0x21')]=qs[_0x545acd('0x11')](_0x402097[_0x545acd('0x25')]['sort']),_0x9e3b59['where']=qs['filters'](_['pick'](_0x402097[_0x545acd('0x25')],_0x5cac42[_0x545acd('0x2')]),_0x5460dd);_0x402097['query'][_0x545acd('0x1e')]&&(_0x9e3b59[_0x545acd('0x1f')]=_[_0x545acd('0xa')](_0x9e3b59['where'],{[Op['or']]:_[_0x545acd('0x2f')](_0x5460dd,function(_0x6c8c53){const _0x24b7e9=_0x545acd;if(_0x6c8c53[_0x24b7e9('0x1c')]!==_0x24b7e9('0x18')){const _0x55ed04={};return _0x55ed04[_0x6c8c53[_0x24b7e9('0x32')]]={[Op[_0x24b7e9('0x22')]]:'%'+_0x402097[_0x24b7e9('0x25')][_0x24b7e9('0x1e')]+'%'},_0x55ed04;}})}));_0x9e3b59=_[_0x545acd('0xa')]({},_0x9e3b59,_0x402097[_0x545acd('0x2e')]);const _0x1581e3={'where':_0x9e3b59[_0x545acd('0x1f')]};return db[_0x545acd('0x2c')][_0x545acd('0x8')](_0x1581e3)[_0x545acd('0x2a')](function(_0x2c3355){const _0x25e54a=_0x545acd;return _0x17b10a[_0x25e54a('0x8')]=_0x2c3355,_0x402097[_0x25e54a('0x25')][_0x25e54a('0x7')]&&(_0x9e3b59[_0x25e54a('0x4')]=[{'all':!![]}]),db['MailServerOut'][_0x25e54a('0x3')](_0x9e3b59);})['then'](function(_0x24bd7d){const _0x5b5e29=_0x545acd;return _0x17b10a[_0x5b5e29('0xc')]=_0x24bd7d,_0x17b10a;})[_0x545acd('0x2a')](respondWithFilteredResult(_0x53ae4e,_0x9e3b59))[_0x545acd('0x1b')](handleError(_0x53ae4e,null));},exports[_0x5f45e2('0x1')]=function(_0x522489,_0x300e6f){const _0x200188=_0x5f45e2;let _0x2d9d96={'raw':!![],'where':{'id':_0x522489[_0x200188('0x14')]['id']}};const _0x4a65ef={};return _0x4a65ef[_0x200188('0xd')]=_[_0x200188('0x0')](db['MailServerOut'][_0x200188('0x5')]),_0x4a65ef[_0x200188('0x25')]=_['keys'](_0x522489[_0x200188('0x25')]),_0x4a65ef['filters']=_[_0x200188('0x26')](_0x4a65ef[_0x200188('0xd')],_0x4a65ef[_0x200188('0x25')]),_0x2d9d96[_0x200188('0x24')]=_[_0x200188('0x26')](_0x4a65ef[_0x200188('0xd')],qs[_0x200188('0x6')](_0x522489[_0x200188('0x25')]['fields'])),_0x2d9d96['attributes']=_0x2d9d96[_0x200188('0x24')][_0x200188('0x12')]?_0x2d9d96[_0x200188('0x24')]:_0x4a65ef['model'],_0x522489[_0x200188('0x25')][_0x200188('0x7')]&&(_0x2d9d96[_0x200188('0x4')]=[{'all':!![]}]),_0x2d9d96=_[_0x200188('0xa')]({},_0x2d9d96,_0x522489[_0x200188('0x2e')]),db['MailServerOut'][_0x200188('0x29')](_0x2d9d96)[_0x200188('0x2a')](handleEntityNotFound(_0x300e6f,null))[_0x200188('0x2a')](respondWithResult(_0x300e6f,null))[_0x200188('0x1b')](handleError(_0x300e6f,null));},exports[_0x5f45e2('0xe')]=function(_0x372949,_0x5579ea){const _0x331ae0=_0x5f45e2;return db[_0x331ae0('0x2c')][_0x331ae0('0xe')](_0x372949['body'],{})[_0x331ae0('0x2a')](respondWithResult(_0x5579ea,0xc9))[_0x331ae0('0x1b')](handleError(_0x5579ea,null));},exports[_0x5f45e2('0x20')]=function(_0x146618,_0x39f41e){const _0x36b4b2=_0x5f45e2;return _0x146618[_0x36b4b2('0x2d')]['id']&&delete _0x146618[_0x36b4b2('0x2d')]['id'],db['MailServerOut'][_0x36b4b2('0x29')]({'where':{'id':_0x146618[_0x36b4b2('0x14')]['id']}})['then'](handleEntityNotFound(_0x39f41e,null))[_0x36b4b2('0x2a')](saveUpdates(_0x146618[_0x36b4b2('0x2d')],null))[_0x36b4b2('0x2a')](respondWithResult(_0x39f41e,null))[_0x36b4b2('0x1b')](handleError(_0x39f41e,null));},exports[_0x5f45e2('0x10')]=function(_0x20fe5e,_0x177945){const _0x24b3ea=_0x5f45e2;return db[_0x24b3ea('0x2c')][_0x24b3ea('0x29')]({'where':{'id':_0x20fe5e[_0x24b3ea('0x14')]['id']}})['then'](handleEntityNotFound(_0x177945,null))[_0x24b3ea('0x2a')](removeEntity(_0x177945,null))['catch'](handleError(_0x177945,null));}; \ No newline at end of file diff --git a/server/api/mailServerOut/mailServerOut.model.js b/server/api/mailServerOut/mailServerOut.model.js index 2c92adf..fb3c584 100644 --- a/server/api/mailServerOut/mailServerOut.model.js +++ b/server/api/mailServerOut/mailServerOut.model.js @@ -1 +1 @@ -const a437_0x48b3=['MailServerOut','mail_servers_out','define','./mailServerOut.attributes','exports'];(function(_0x3eb6d8,_0x48b391){const _0x1cc794=function(_0x4f5257){while(--_0x4f5257){_0x3eb6d8['push'](_0x3eb6d8['shift']());}};_0x1cc794(++_0x48b391);}(a437_0x48b3,0x189));const a437_0x1cc7=function(_0x3eb6d8,_0x48b391){_0x3eb6d8=_0x3eb6d8-0x0;let _0x1cc794=a437_0x48b3[_0x3eb6d8];return _0x1cc794;};const _0x5d742c=a437_0x1cc7;'use strict';const attributes=require(_0x5d742c('0x0'));module[_0x5d742c('0x1')]=function(_0x4f5257){const _0x9b640f=_0x5d742c,_0x50316c=_0x4f5257[_0x9b640f('0x4')](_0x9b640f('0x2'),attributes,{'tableName':_0x9b640f('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x50316c;}; \ No newline at end of file +const a437_0x5dd9=['mail_servers_out','./mailServerOut.attributes','MailServerOut','exports'];(function(_0x524390,_0x5dd9df){const _0x2a978f=function(_0x121cf5){while(--_0x121cf5){_0x524390['push'](_0x524390['shift']());}};_0x2a978f(++_0x5dd9df);}(a437_0x5dd9,0xc1));const a437_0x2a97=function(_0x524390,_0x5dd9df){_0x524390=_0x524390-0x0;let _0x2a978f=a437_0x5dd9[_0x524390];return _0x2a978f;};const _0x5b83b3=a437_0x2a97;'use strict';const attributes=require(_0x5b83b3('0x0'));module[_0x5b83b3('0x2')]=function(_0x121cf5){const _0x284270=_0x5b83b3,_0x25d845=_0x121cf5['define'](_0x284270('0x1'),attributes,{'tableName':_0x284270('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x25d845;}; \ No newline at end of file diff --git a/server/api/mailSubstatus/index.js b/server/api/mailSubstatus/index.js index 30f314e..f68f20c 100644 --- a/server/api/mailSubstatus/index.js +++ b/server/api/mailSubstatus/index.js @@ -1 +1 @@ -const a438_0x309f=['Router','delete','get','post','show','isAuthenticated','../../components/auth/service','./mailSubstatus.controller','index','/:id','create','describe','update'];(function(_0x4c7b7d,_0x309f44){const _0x1c5404=function(_0x50b3ae){while(--_0x50b3ae){_0x4c7b7d['push'](_0x4c7b7d['shift']());}};_0x1c5404(++_0x309f44);}(a438_0x309f,0x13f));const a438_0x1c54=function(_0x4c7b7d,_0x309f44){_0x4c7b7d=_0x4c7b7d-0x0;let _0x1c5404=a438_0x309f[_0x4c7b7d];return _0x1c5404;};const _0x148e4f=a438_0x1c54;'use strict';const express=require('express'),router=express[_0x148e4f('0x6')](),auth=require(_0x148e4f('0xc')),controller=require(_0x148e4f('0x0'));router[_0x148e4f('0x8')]('/',auth['isAuthenticated'](),controller[_0x148e4f('0x1')]),router[_0x148e4f('0x8')]('/describe',auth[_0x148e4f('0xb')](),controller[_0x148e4f('0x4')]),router['get'](_0x148e4f('0x2'),auth[_0x148e4f('0xb')](),controller[_0x148e4f('0xa')]),router[_0x148e4f('0x9')]('/',auth[_0x148e4f('0xb')](),controller[_0x148e4f('0x3')]),router['put'](_0x148e4f('0x2'),auth['isAuthenticated'](),controller[_0x148e4f('0x5')]),router[_0x148e4f('0x7')]('/:id',auth[_0x148e4f('0xb')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a438_0x3d5a=['put','isAuthenticated','update','../../components/auth/service','Router','/:id','index','/describe','show','get','destroy'];(function(_0x40e7c1,_0x3d5afb){const _0x3a9721=function(_0x4a0e48){while(--_0x4a0e48){_0x40e7c1['push'](_0x40e7c1['shift']());}};_0x3a9721(++_0x3d5afb);}(a438_0x3d5a,0x105));const a438_0x3a97=function(_0x40e7c1,_0x3d5afb){_0x40e7c1=_0x40e7c1-0x0;let _0x3a9721=a438_0x3d5a[_0x40e7c1];return _0x3a9721;};const _0x375f31=a438_0x3a97;'use strict';const express=require('express'),router=express[_0x375f31('0x7')](),auth=require(_0x375f31('0x6')),controller=require('./mailSubstatus.controller');router[_0x375f31('0x1')]('/',auth[_0x375f31('0x4')](),controller[_0x375f31('0x9')]),router[_0x375f31('0x1')](_0x375f31('0xa'),auth['isAuthenticated'](),controller['describe']),router[_0x375f31('0x1')](_0x375f31('0x8'),auth[_0x375f31('0x4')](),controller[_0x375f31('0x0')]),router['post']('/',auth[_0x375f31('0x4')](),controller['create']),router[_0x375f31('0x3')](_0x375f31('0x8'),auth[_0x375f31('0x4')](),controller[_0x375f31('0x5')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x375f31('0x2')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.attributes.js b/server/api/mailSubstatus/mailSubstatus.attributes.js index 74c2ff3..ad5dcdd 100644 --- a/server/api/mailSubstatus/mailSubstatus.attributes.js +++ b/server/api/mailSubstatus/mailSubstatus.attributes.js @@ -1 +1 @@ -const a439_0x2f64=['sequelize','name','STRING'];(function(_0x5b24bd,_0x2f64af){const _0x417ed4=function(_0xaace6d){while(--_0xaace6d){_0x5b24bd['push'](_0x5b24bd['shift']());}};_0x417ed4(++_0x2f64af);}(a439_0x2f64,0x18a));const a439_0x417e=function(_0x5b24bd,_0x2f64af){_0x5b24bd=_0x5b24bd-0x0;let _0x417ed4=a439_0x2f64[_0x5b24bd];return _0x417ed4;};const _0x88d047=a439_0x417e;'use strict';const Sequelize=require(_0x88d047('0x2'));module['exports']={'name':{'type':Sequelize[_0x88d047('0x1')],'unique':_0x88d047('0x0'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x88d047('0x1')]}}; \ No newline at end of file +const a439_0x1ae4=['sequelize','STRING','name'];(function(_0x18a7ba,_0x1ae49c){const _0x299dc2=function(_0x1d5e7c){while(--_0x1d5e7c){_0x18a7ba['push'](_0x18a7ba['shift']());}};_0x299dc2(++_0x1ae49c);}(a439_0x1ae4,0x1c3));const a439_0x299d=function(_0x18a7ba,_0x1ae49c){_0x18a7ba=_0x18a7ba-0x0;let _0x299dc2=a439_0x1ae4[_0x18a7ba];return _0x299dc2;};const _0x2fdf88=a439_0x299d;'use strict';const Sequelize=require(_0x2fdf88('0x2'));module['exports']={'name':{'type':Sequelize['STRING'],'unique':_0x2fdf88('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x2fdf88('0x0')]}}; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.controller.js b/server/api/mailSubstatus/mailSubstatus.controller.js index 62e2ed2..9fa5266 100644 --- a/server/api/mailSubstatus/mailSubstatus.controller.js +++ b/server/api/mailSubstatus/mailSubstatus.controller.js @@ -1 +1 @@ -const a440_0x2935=['fieldName','update','model','intersection','create','filters','status','sequelize','json','findOne','nolimit','map','findAll','include','body','show','api','like','sendStatus','offset','../../components/parsers/qs','error','type','rawAttributes','Content-Range','rows','end','where','VIRTUAL','name','merge','filter','fields','keys','includeAll','describe','query','../../mysqldb','params','key','MailSubstatus','undefined','attributes','count','length','catch','then','lodash','set','destroy','order','limit','pick'];(function(_0x40f34c,_0x29358e){const _0x1c2d42=function(_0x5e56eb){while(--_0x5e56eb){_0x40f34c['push'](_0x40f34c['shift']());}};_0x1c2d42(++_0x29358e);}(a440_0x2935,0x103));const a440_0x1c2d=function(_0x40f34c,_0x29358e){_0x40f34c=_0x40f34c-0x0;let _0x1c2d42=a440_0x2935[_0x40f34c];return _0x1c2d42;};const _0x374f53=a440_0x1c2d;'use strict';const _=require(_0x374f53('0x0')),qs=require(_0x374f53('0x1a')),logger=require('../../config/logger')(_0x374f53('0x16')),db=require(_0x374f53('0x2b'))['db'],{Op}=require(_0x374f53('0xd'));function respondWithResult(_0x5e56eb,_0x2457da){return _0x2457da=_0x2457da||0xc8,function(_0x510124){const _0x7185ac=a440_0x1c2d;if(_0x510124)return _0x5e56eb[_0x7185ac('0xc')](_0x2457da)[_0x7185ac('0xe')](_0x510124);};}function respondWithFilteredResult(_0xf973ea,_0x17b13b){return function(_0x2307bd){const _0x535aa7=a440_0x1c2d;if(_0x2307bd){const _0x22e173=_0x2307bd[_0x535aa7('0x31')],_0x5a0bd6=_0x17b13b[_0x535aa7('0x19')];let _0x17d5e6=_0x17b13b[_0x535aa7('0x19')]+_0x17b13b[_0x535aa7('0x4')],_0x181938;return _0x17d5e6>=_0x22e173?(_0x17d5e6=_0x22e173,_0x181938=0xc8):_0x181938=0xce,_0xf973ea['status'](_0x181938),_0xf973ea[_0x535aa7('0x1')](_0x535aa7('0x1e'),_0x5a0bd6+'-'+_0x17d5e6+'/'+_0x22e173)['json'](_0x2307bd);}return null;};}function saveUpdates(_0x5304ff){return function(_0x5d47e6){const _0x5996dc=a440_0x1c2d;if(_0x5d47e6)return _0x5d47e6['update'](_0x5304ff)[_0x5996dc('0x34')](function(_0x5859f9){return _0x5859f9;});return null;};}function removeEntity(_0x34edcf){return function(_0x1d0ff9){const _0x26990f=a440_0x1c2d;if(_0x1d0ff9)return _0x1d0ff9[_0x26990f('0x2')]()[_0x26990f('0x34')](function(){const _0xa19a83=_0x26990f;_0x34edcf['status'](0xcc)[_0xa19a83('0x20')]();});};}function handleEntityNotFound(_0x3fb6bc){return function(_0xe2bbcb){const _0x540f3b=a440_0x1c2d;return!_0xe2bbcb&&_0x3fb6bc[_0x540f3b('0x18')](0x194),_0xe2bbcb;};}function handleError(_0x3b00a7,_0x60cae2){return _0x60cae2=_0x60cae2||0x1f4,function(_0x58581d){const _0x25ebd9=a440_0x1c2d;logger[_0x25ebd9('0x1b')](_0x58581d['stack']),_0x58581d[_0x25ebd9('0x23')]&&delete _0x58581d[_0x25ebd9('0x23')],_0x3b00a7[_0x25ebd9('0xc')](_0x60cae2)['send'](_0x58581d);};}exports['index']=function(_0xc23e7e,_0x36cfd4){const _0x132fa9=_0x374f53;let _0x470de2={};const _0x566abe={},_0xae6bf7={'count':0x0,'rows':[]},_0x4a95e4=_[_0x132fa9('0x11')](db[_0x132fa9('0x2e')]['rawAttributes'],function(_0xcf636e){const _0x366ad2=_0x132fa9;return{'name':_0xcf636e[_0x366ad2('0x6')],'type':_0xcf636e[_0x366ad2('0x1c')][_0x366ad2('0x2d')]};});_0x566abe[_0x132fa9('0x8')]=_['map'](_0x4a95e4,_0x132fa9('0x23')),_0x566abe[_0x132fa9('0x2a')]=_[_0x132fa9('0x27')](_0xc23e7e[_0x132fa9('0x2a')]),_0x566abe[_0x132fa9('0xb')]=_[_0x132fa9('0x9')](_0x566abe[_0x132fa9('0x8')],_0x566abe[_0x132fa9('0x2a')]),_0x470de2[_0x132fa9('0x30')]=_[_0x132fa9('0x9')](_0x566abe['model'],qs['fields'](_0xc23e7e['query'][_0x132fa9('0x26')])),_0x470de2[_0x132fa9('0x30')]=_0x470de2[_0x132fa9('0x30')][_0x132fa9('0x32')]?_0x470de2[_0x132fa9('0x30')]:_0x566abe[_0x132fa9('0x8')];typeof _0xc23e7e[_0x132fa9('0x2a')][_0x132fa9('0x10')]===_0x132fa9('0x2f')&&(_0x470de2[_0x132fa9('0x4')]=qs[_0x132fa9('0x4')](_0xc23e7e[_0x132fa9('0x2a')][_0x132fa9('0x4')]),_0x470de2['offset']=qs[_0x132fa9('0x19')](_0xc23e7e[_0x132fa9('0x2a')][_0x132fa9('0x19')]));_0x470de2[_0x132fa9('0x3')]=qs['sort'](_0xc23e7e[_0x132fa9('0x2a')]['sort']),_0x470de2[_0x132fa9('0x21')]=qs['filters'](_[_0x132fa9('0x5')](_0xc23e7e[_0x132fa9('0x2a')],_0x566abe[_0x132fa9('0xb')]),_0x4a95e4);_0xc23e7e[_0x132fa9('0x2a')][_0x132fa9('0x25')]&&(_0x470de2[_0x132fa9('0x21')]=_[_0x132fa9('0x24')](_0x470de2[_0x132fa9('0x21')],{[Op['or']]:_[_0x132fa9('0x11')](_0x4a95e4,function(_0x4227a0){const _0x450a49=_0x132fa9;if(_0x4227a0[_0x450a49('0x1c')]!==_0x450a49('0x22')){const _0x5da995={};return _0x5da995[_0x4227a0[_0x450a49('0x23')]]={[Op[_0x450a49('0x17')]]:'%'+_0xc23e7e[_0x450a49('0x2a')][_0x450a49('0x25')]+'%'},_0x5da995;}})}));_0x470de2=_[_0x132fa9('0x24')]({},_0x470de2,_0xc23e7e['options']);const _0x1e1f1d={'where':_0x470de2[_0x132fa9('0x21')]};return db[_0x132fa9('0x2e')][_0x132fa9('0x31')](_0x1e1f1d)['then'](function(_0x2191d7){const _0x589d71=_0x132fa9;return _0xae6bf7[_0x589d71('0x31')]=_0x2191d7,_0xc23e7e[_0x589d71('0x2a')]['includeAll']&&(_0x470de2[_0x589d71('0x13')]=[{'all':!![]}]),db['MailSubstatus'][_0x589d71('0x12')](_0x470de2);})[_0x132fa9('0x34')](function(_0x201c72){const _0x151b94=_0x132fa9;return _0xae6bf7[_0x151b94('0x1f')]=_0x201c72,_0xae6bf7;})['then'](respondWithFilteredResult(_0x36cfd4,_0x470de2))['catch'](handleError(_0x36cfd4,null));},exports[_0x374f53('0x15')]=function(_0x240b46,_0x341858){const _0x5f3715=_0x374f53;let _0x225315={'raw':!![],'where':{'id':_0x240b46[_0x5f3715('0x2c')]['id']}};const _0x648211={};return _0x648211[_0x5f3715('0x8')]=_['keys'](db[_0x5f3715('0x2e')][_0x5f3715('0x1d')]),_0x648211[_0x5f3715('0x2a')]=_[_0x5f3715('0x27')](_0x240b46[_0x5f3715('0x2a')]),_0x648211[_0x5f3715('0xb')]=_['intersection'](_0x648211[_0x5f3715('0x8')],_0x648211[_0x5f3715('0x2a')]),_0x225315[_0x5f3715('0x30')]=_[_0x5f3715('0x9')](_0x648211[_0x5f3715('0x8')],qs['fields'](_0x240b46[_0x5f3715('0x2a')][_0x5f3715('0x26')])),_0x225315[_0x5f3715('0x30')]=_0x225315[_0x5f3715('0x30')][_0x5f3715('0x32')]?_0x225315[_0x5f3715('0x30')]:_0x648211[_0x5f3715('0x8')],_0x240b46[_0x5f3715('0x2a')][_0x5f3715('0x28')]&&(_0x225315[_0x5f3715('0x13')]=[{'all':!![]}]),_0x225315=_[_0x5f3715('0x24')]({},_0x225315,_0x240b46['options']),db[_0x5f3715('0x2e')][_0x5f3715('0xf')](_0x225315)['then'](handleEntityNotFound(_0x341858,null))[_0x5f3715('0x34')](respondWithResult(_0x341858,null))[_0x5f3715('0x33')](handleError(_0x341858,null));},exports[_0x374f53('0xa')]=function(_0x230815,_0x1ed6a3){const _0x560c6a=_0x374f53;return db['MailSubstatus']['create'](_0x230815[_0x560c6a('0x14')],{})[_0x560c6a('0x34')](respondWithResult(_0x1ed6a3,0xc9))[_0x560c6a('0x33')](handleError(_0x1ed6a3,null));},exports[_0x374f53('0x7')]=function(_0x1bb8fb,_0x2e44b9){const _0x40f4ad=_0x374f53;return _0x1bb8fb[_0x40f4ad('0x14')]['id']&&delete _0x1bb8fb[_0x40f4ad('0x14')]['id'],db[_0x40f4ad('0x2e')][_0x40f4ad('0xf')]({'where':{'id':_0x1bb8fb[_0x40f4ad('0x2c')]['id']}})[_0x40f4ad('0x34')](handleEntityNotFound(_0x2e44b9,null))[_0x40f4ad('0x34')](saveUpdates(_0x1bb8fb[_0x40f4ad('0x14')],null))['then'](respondWithResult(_0x2e44b9,null))['catch'](handleError(_0x2e44b9,null));},exports[_0x374f53('0x2')]=function(_0x3a3516,_0x45c075){const _0x2477ee=_0x374f53;return db[_0x2477ee('0x2e')][_0x2477ee('0xf')]({'where':{'id':_0x3a3516[_0x2477ee('0x2c')]['id']}})[_0x2477ee('0x34')](handleEntityNotFound(_0x45c075,null))[_0x2477ee('0x34')](removeEntity(_0x45c075,null))[_0x2477ee('0x33')](handleError(_0x45c075,null));},exports[_0x374f53('0x29')]=function(_0x1e6be5,_0x4c8b06){const _0x37876b=_0x374f53;return db[_0x37876b('0x2e')][_0x37876b('0x29')]()[_0x37876b('0x34')](respondWithResult(_0x4c8b06,null))[_0x37876b('0x33')](handleError(_0x4c8b06,null));}; \ No newline at end of file +const a440_0x4ff0=['query','Content-Range','update','options','intersection','end','catch','stack','findAll','status','then','map','show','findOne','key','length','includeAll','send','like','limit','pick','../../mysqldb','model','offset','keys','MailSubstatus','index','where','fields','sendStatus','body','destroy','api','undefined','set','include','sort','count','sequelize','merge','lodash','attributes','describe','VIRTUAL','filters','nolimit','rawAttributes','filter','json','name','order','params'];(function(_0x432acd,_0x4ff065){const _0x427e42=function(_0x2b2353){while(--_0x2b2353){_0x432acd['push'](_0x432acd['shift']());}};_0x427e42(++_0x4ff065);}(a440_0x4ff0,0xf6));const a440_0x427e=function(_0x432acd,_0x4ff065){_0x432acd=_0x432acd-0x0;let _0x427e42=a440_0x4ff0[_0x432acd];return _0x427e42;};const _0x256195=a440_0x427e;'use strict';const _=require(_0x256195('0x2')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x256195('0x2e')),db=require(_0x256195('0x23'))['db'],{Op}=require(_0x256195('0x0'));function respondWithResult(_0x2b2353,_0x4afab4){return _0x4afab4=_0x4afab4||0xc8,function(_0x18e94d){const _0x254bdc=a440_0x427e;if(_0x18e94d)return _0x2b2353[_0x254bdc('0x17')](_0x4afab4)[_0x254bdc('0xa')](_0x18e94d);};}function respondWithFilteredResult(_0x131e8b,_0x404a25){return function(_0x44d605){const _0x1456fe=a440_0x427e;if(_0x44d605){const _0x5748df=_0x44d605[_0x1456fe('0x33')],_0x15603a=_0x404a25['offset'];let _0x5cca22=_0x404a25['offset']+_0x404a25[_0x1456fe('0x21')],_0xc8d035;return _0x5cca22>=_0x5748df?(_0x5cca22=_0x5748df,_0xc8d035=0xc8):_0xc8d035=0xce,_0x131e8b['status'](_0xc8d035),_0x131e8b[_0x1456fe('0x30')](_0x1456fe('0xf'),_0x15603a+'-'+_0x5cca22+'/'+_0x5748df)['json'](_0x44d605);}return null;};}function saveUpdates(_0x2eafaf){return function(_0x29d16a){const _0x3697e4=a440_0x427e;if(_0x29d16a)return _0x29d16a[_0x3697e4('0x10')](_0x2eafaf)['then'](function(_0x4dafaf){return _0x4dafaf;});return null;};}function removeEntity(_0x4f115c){return function(_0xd2462e){if(_0xd2462e)return _0xd2462e['destroy']()['then'](function(){const _0x20f933=a440_0x427e;_0x4f115c[_0x20f933('0x17')](0xcc)[_0x20f933('0x13')]();});};}function handleEntityNotFound(_0x42e82d){return function(_0xca62d3){const _0x1318ac=a440_0x427e;return!_0xca62d3&&_0x42e82d[_0x1318ac('0x2b')](0x194),_0xca62d3;};}function handleError(_0xa128b3,_0x329eb6){return _0x329eb6=_0x329eb6||0x1f4,function(_0xb7a022){const _0x41a132=a440_0x427e;logger['error'](_0xb7a022[_0x41a132('0x15')]),_0xb7a022[_0x41a132('0xb')]&&delete _0xb7a022[_0x41a132('0xb')],_0xa128b3['status'](_0x329eb6)[_0x41a132('0x1f')](_0xb7a022);};}exports[_0x256195('0x28')]=function(_0x5ae27c,_0x24be5e){const _0x4e4cf4=_0x256195;let _0x520e24={};const _0x303b6c={},_0x472bc3={'count':0x0,'rows':[]},_0x2b2c09=_[_0x4e4cf4('0x19')](db[_0x4e4cf4('0x27')][_0x4e4cf4('0x8')],function(_0x28eae3){const _0x2198e3=_0x4e4cf4;return{'name':_0x28eae3['fieldName'],'type':_0x28eae3['type'][_0x2198e3('0x1c')]};});_0x303b6c['model']=_[_0x4e4cf4('0x19')](_0x2b2c09,_0x4e4cf4('0xb')),_0x303b6c['query']=_[_0x4e4cf4('0x26')](_0x5ae27c[_0x4e4cf4('0xe')]),_0x303b6c['filters']=_[_0x4e4cf4('0x12')](_0x303b6c['model'],_0x303b6c[_0x4e4cf4('0xe')]),_0x520e24['attributes']=_['intersection'](_0x303b6c[_0x4e4cf4('0x24')],qs[_0x4e4cf4('0x2a')](_0x5ae27c[_0x4e4cf4('0xe')][_0x4e4cf4('0x2a')])),_0x520e24[_0x4e4cf4('0x3')]=_0x520e24[_0x4e4cf4('0x3')]['length']?_0x520e24[_0x4e4cf4('0x3')]:_0x303b6c[_0x4e4cf4('0x24')];typeof _0x5ae27c['query'][_0x4e4cf4('0x7')]===_0x4e4cf4('0x2f')&&(_0x520e24[_0x4e4cf4('0x21')]=qs[_0x4e4cf4('0x21')](_0x5ae27c[_0x4e4cf4('0xe')][_0x4e4cf4('0x21')]),_0x520e24['offset']=qs[_0x4e4cf4('0x25')](_0x5ae27c[_0x4e4cf4('0xe')]['offset']));_0x520e24[_0x4e4cf4('0xc')]=qs[_0x4e4cf4('0x32')](_0x5ae27c['query'][_0x4e4cf4('0x32')]),_0x520e24[_0x4e4cf4('0x29')]=qs[_0x4e4cf4('0x6')](_[_0x4e4cf4('0x22')](_0x5ae27c[_0x4e4cf4('0xe')],_0x303b6c[_0x4e4cf4('0x6')]),_0x2b2c09);_0x5ae27c[_0x4e4cf4('0xe')]['filter']&&(_0x520e24[_0x4e4cf4('0x29')]=_[_0x4e4cf4('0x1')](_0x520e24[_0x4e4cf4('0x29')],{[Op['or']]:_['map'](_0x2b2c09,function(_0x2d5113){const _0xb3c2a4=_0x4e4cf4;if(_0x2d5113['type']!==_0xb3c2a4('0x5')){const _0x5244bd={};return _0x5244bd[_0x2d5113[_0xb3c2a4('0xb')]]={[Op[_0xb3c2a4('0x20')]]:'%'+_0x5ae27c[_0xb3c2a4('0xe')][_0xb3c2a4('0x9')]+'%'},_0x5244bd;}})}));_0x520e24=_['merge']({},_0x520e24,_0x5ae27c[_0x4e4cf4('0x11')]);const _0x295ee0={'where':_0x520e24[_0x4e4cf4('0x29')]};return db[_0x4e4cf4('0x27')][_0x4e4cf4('0x33')](_0x295ee0)[_0x4e4cf4('0x18')](function(_0x1cf139){const _0xdb2789=_0x4e4cf4;return _0x472bc3['count']=_0x1cf139,_0x5ae27c[_0xdb2789('0xe')][_0xdb2789('0x1e')]&&(_0x520e24[_0xdb2789('0x31')]=[{'all':!![]}]),db['MailSubstatus'][_0xdb2789('0x16')](_0x520e24);})[_0x4e4cf4('0x18')](function(_0x4ddeca){return _0x472bc3['rows']=_0x4ddeca,_0x472bc3;})[_0x4e4cf4('0x18')](respondWithFilteredResult(_0x24be5e,_0x520e24))[_0x4e4cf4('0x14')](handleError(_0x24be5e,null));},exports[_0x256195('0x1a')]=function(_0x559eb1,_0x121289){const _0x3aa2c7=_0x256195;let _0x33a1e8={'raw':!![],'where':{'id':_0x559eb1[_0x3aa2c7('0xd')]['id']}};const _0x2a927f={};return _0x2a927f[_0x3aa2c7('0x24')]=_[_0x3aa2c7('0x26')](db[_0x3aa2c7('0x27')]['rawAttributes']),_0x2a927f[_0x3aa2c7('0xe')]=_[_0x3aa2c7('0x26')](_0x559eb1['query']),_0x2a927f[_0x3aa2c7('0x6')]=_[_0x3aa2c7('0x12')](_0x2a927f[_0x3aa2c7('0x24')],_0x2a927f[_0x3aa2c7('0xe')]),_0x33a1e8[_0x3aa2c7('0x3')]=_['intersection'](_0x2a927f[_0x3aa2c7('0x24')],qs['fields'](_0x559eb1[_0x3aa2c7('0xe')][_0x3aa2c7('0x2a')])),_0x33a1e8[_0x3aa2c7('0x3')]=_0x33a1e8[_0x3aa2c7('0x3')][_0x3aa2c7('0x1d')]?_0x33a1e8[_0x3aa2c7('0x3')]:_0x2a927f[_0x3aa2c7('0x24')],_0x559eb1[_0x3aa2c7('0xe')][_0x3aa2c7('0x1e')]&&(_0x33a1e8[_0x3aa2c7('0x31')]=[{'all':!![]}]),_0x33a1e8=_[_0x3aa2c7('0x1')]({},_0x33a1e8,_0x559eb1['options']),db[_0x3aa2c7('0x27')][_0x3aa2c7('0x1b')](_0x33a1e8)[_0x3aa2c7('0x18')](handleEntityNotFound(_0x121289,null))[_0x3aa2c7('0x18')](respondWithResult(_0x121289,null))['catch'](handleError(_0x121289,null));},exports['create']=function(_0x352b66,_0x346393){const _0x1dd5fd=_0x256195;return db[_0x1dd5fd('0x27')]['create'](_0x352b66['body'],{})[_0x1dd5fd('0x18')](respondWithResult(_0x346393,0xc9))[_0x1dd5fd('0x14')](handleError(_0x346393,null));},exports['update']=function(_0x599c86,_0x460233){const _0x4378c5=_0x256195;return _0x599c86[_0x4378c5('0x2c')]['id']&&delete _0x599c86['body']['id'],db[_0x4378c5('0x27')]['findOne']({'where':{'id':_0x599c86['params']['id']}})[_0x4378c5('0x18')](handleEntityNotFound(_0x460233,null))[_0x4378c5('0x18')](saveUpdates(_0x599c86[_0x4378c5('0x2c')],null))['then'](respondWithResult(_0x460233,null))[_0x4378c5('0x14')](handleError(_0x460233,null));},exports[_0x256195('0x2d')]=function(_0x437b54,_0x223ff4){const _0x142de8=_0x256195;return db[_0x142de8('0x27')][_0x142de8('0x1b')]({'where':{'id':_0x437b54[_0x142de8('0xd')]['id']}})['then'](handleEntityNotFound(_0x223ff4,null))[_0x142de8('0x18')](removeEntity(_0x223ff4,null))[_0x142de8('0x14')](handleError(_0x223ff4,null));},exports[_0x256195('0x4')]=function(_0x3bddb7,_0x49f2cd){const _0x43592e=_0x256195;return db[_0x43592e('0x27')]['describe']()[_0x43592e('0x18')](respondWithResult(_0x49f2cd,null))[_0x43592e('0x14')](handleError(_0x49f2cd,null));}; \ No newline at end of file diff --git a/server/api/mailSubstatus/mailSubstatus.model.js b/server/api/mailSubstatus/mailSubstatus.model.js index 4092fd4..94a8c44 100644 --- a/server/api/mailSubstatus/mailSubstatus.model.js +++ b/server/api/mailSubstatus/mailSubstatus.model.js @@ -1 +1 @@ -const a441_0x52a1=['./mailSubstatus.attributes','MailSubstatus','exports'];(function(_0xe34cc8,_0x52a108){const _0x4c2fda=function(_0x404619){while(--_0x404619){_0xe34cc8['push'](_0xe34cc8['shift']());}};_0x4c2fda(++_0x52a108);}(a441_0x52a1,0x72));const a441_0x4c2f=function(_0xe34cc8,_0x52a108){_0xe34cc8=_0xe34cc8-0x0;let _0x4c2fda=a441_0x52a1[_0xe34cc8];return _0x4c2fda;};const _0x12ae1d=a441_0x4c2f;'use strict';const attributes=require(_0x12ae1d('0x0'));module[_0x12ae1d('0x2')]=function(_0x404619){const _0x12b0ba=_0x12ae1d,_0x52df87=_0x404619['define'](_0x12b0ba('0x1'),attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![]});return _0x52df87;}; \ No newline at end of file +const a441_0x5050=['MailSubstatus','./mailSubstatus.attributes','exports'];(function(_0x50ba6a,_0x50506a){const _0x2d81d1=function(_0x5d5b2f){while(--_0x5d5b2f){_0x50ba6a['push'](_0x50ba6a['shift']());}};_0x2d81d1(++_0x50506a);}(a441_0x5050,0x141));const a441_0x2d81=function(_0x50ba6a,_0x50506a){_0x50ba6a=_0x50ba6a-0x0;let _0x2d81d1=a441_0x5050[_0x50ba6a];return _0x2d81d1;};const _0x57db4c=a441_0x2d81;'use strict';const attributes=require(_0x57db4c('0x1'));module[_0x57db4c('0x2')]=function(_0x5d5b2f){const _0x3a8bd3=_0x57db4c,_0x57f66e=_0x5d5b2f['define'](_0x3a8bd3('0x0'),attributes,{'tableName':'mail_substatuses','paranoid':![],'indexes':[],'timestamps':!![]});return _0x57f66e;}; \ No newline at end of file diff --git a/server/api/mailTransferReport/index.js b/server/api/mailTransferReport/index.js index d53cbd6..f29a1b4 100644 --- a/server/api/mailTransferReport/index.js +++ b/server/api/mailTransferReport/index.js @@ -1 +1 @@ -const a442_0xe142=['destroy','get','put','/:id','update','/describe','express','Router','./mailTransferReport.controller','describe','delete','exports','post','isAuthenticated','show'];(function(_0x3478f7,_0xe1427e){const _0x356b71=function(_0x307039){while(--_0x307039){_0x3478f7['push'](_0x3478f7['shift']());}};_0x356b71(++_0xe1427e);}(a442_0xe142,0xca));const a442_0x356b=function(_0x3478f7,_0xe1427e){_0x3478f7=_0x3478f7-0x0;let _0x356b71=a442_0xe142[_0x3478f7];return _0x356b71;};const _0x3965fe=a442_0x356b;'use strict';const express=require(_0x3965fe('0xe')),router=express[_0x3965fe('0x0')](),auth=require('../../components/auth/service'),controller=require(_0x3965fe('0x1'));router['get']('/',auth[_0x3965fe('0x6')](),controller['index']),router[_0x3965fe('0x9')](_0x3965fe('0xd'),auth['isAuthenticated'](),controller[_0x3965fe('0x2')]),router['get'](_0x3965fe('0xb'),auth[_0x3965fe('0x6')](),controller[_0x3965fe('0x7')]),router[_0x3965fe('0x5')]('/',auth['isAuthenticated'](),controller['create']),router[_0x3965fe('0xa')](_0x3965fe('0xb'),auth[_0x3965fe('0x6')](),controller[_0x3965fe('0xc')]),router[_0x3965fe('0x3')]('/:id',auth['isAuthenticated'](),controller[_0x3965fe('0x8')]),module[_0x3965fe('0x4')]=router; \ No newline at end of file +const a442_0x3c1b=['express','put','Router','destroy','describe','../../components/auth/service','./mailTransferReport.controller','isAuthenticated','index','delete','show','get','/:id','exports'];(function(_0x366b21,_0x3c1b7c){const _0x3d0360=function(_0x3964dd){while(--_0x3964dd){_0x366b21['push'](_0x366b21['shift']());}};_0x3d0360(++_0x3c1b7c);}(a442_0x3c1b,0x1ea));const a442_0x3d03=function(_0x366b21,_0x3c1b7c){_0x366b21=_0x366b21-0x0;let _0x3d0360=a442_0x3c1b[_0x366b21];return _0x3d0360;};const _0x27ae20=a442_0x3d03;'use strict';const express=require(_0x27ae20('0x0')),router=express[_0x27ae20('0x2')](),auth=require(_0x27ae20('0x5')),controller=require(_0x27ae20('0x6'));router[_0x27ae20('0xb')]('/',auth['isAuthenticated'](),controller[_0x27ae20('0x8')]),router[_0x27ae20('0xb')]('/describe',auth[_0x27ae20('0x7')](),controller[_0x27ae20('0x4')]),router[_0x27ae20('0xb')](_0x27ae20('0xc'),auth[_0x27ae20('0x7')](),controller[_0x27ae20('0xa')]),router['post']('/',auth[_0x27ae20('0x7')](),controller['create']),router[_0x27ae20('0x1')]('/:id',auth[_0x27ae20('0x7')](),controller['update']),router[_0x27ae20('0x9')]('/:id',auth[_0x27ae20('0x7')](),controller[_0x27ae20('0x3')]),module[_0x27ae20('0xd')]=router; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.attributes.js b/server/api/mailTransferReport/mailTransferReport.attributes.js index a6e1027..4865c9d 100644 --- a/server/api/mailTransferReport/mailTransferReport.attributes.js +++ b/server/api/mailTransferReport/mailTransferReport.attributes.js @@ -1 +1 @@ -const a443_0x45a6=['exports','queue','account','ENUM','DATE','agent'];(function(_0x21b16b,_0x45a60a){const _0x27f694=function(_0x5ab257){while(--_0x5ab257){_0x21b16b['push'](_0x21b16b['shift']());}};_0x27f694(++_0x45a60a);}(a443_0x45a6,0xb7));const a443_0x27f6=function(_0x21b16b,_0x45a60a){_0x21b16b=_0x21b16b-0x0;let _0x27f694=a443_0x45a6[_0x21b16b];return _0x27f694;};const _0x53a762=a443_0x27f6;'use strict';const Sequelize=require('sequelize');module[_0x53a762('0x3')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0x53a762('0x0')](_0x53a762('0x5'),_0x53a762('0x2'),'queue'),'allowNull':![],'defaultValue':_0x53a762('0x4')},'transferredAt':{'type':Sequelize[_0x53a762('0x1')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a443_0x58a5=['STRING','NOW','exports','account','ENUM','agent'];(function(_0x423ae8,_0x58a5cc){const _0x59588f=function(_0x5e4cc8){while(--_0x5e4cc8){_0x423ae8['push'](_0x423ae8['shift']());}};_0x59588f(++_0x58a5cc);}(a443_0x58a5,0x146));const a443_0x5958=function(_0x423ae8,_0x58a5cc){_0x423ae8=_0x423ae8-0x0;let _0x59588f=a443_0x58a5[_0x423ae8];return _0x59588f;};const _0x18ca8e=a443_0x5958;'use strict';const Sequelize=require('sequelize');module[_0x18ca8e('0x0')]={'uniqueid':{'type':Sequelize[_0x18ca8e('0x4')],'allowNull':![]},'type':{'type':Sequelize[_0x18ca8e('0x2')](_0x18ca8e('0x1'),_0x18ca8e('0x3'),'queue'),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':Sequelize[_0x18ca8e('0x5')]}}; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.controller.js b/server/api/mailTransferReport/mailTransferReport.controller.js index 8c47403..5e9b7a1 100644 --- a/server/api/mailTransferReport/mailTransferReport.controller.js +++ b/server/api/mailTransferReport/mailTransferReport.controller.js @@ -1 +1 @@ -const a444_0x1477=['show','body','where','rows','catch','name','model','fieldName','order','includeAll','json','map','Content-Range','../../config/logger','error','intersection','keys','attributes','fields','key','count','pick','length','query','end','filter','stack','merge','../../components/parsers/qs','sort','create','lodash','then','type','findOne','include','nolimit','VIRTUAL','describe','index','filters','params','status','MailTransferReport','undefined','../../mysqldb','options','offset','findAll','limit','set','rawAttributes'];(function(_0x4ba782,_0x1477c0){const _0x46748f=function(_0xda7e97){while(--_0xda7e97){_0x4ba782['push'](_0x4ba782['shift']());}};_0x46748f(++_0x1477c0);}(a444_0x1477,0xaf));const a444_0x4674=function(_0x4ba782,_0x1477c0){_0x4ba782=_0x4ba782-0x0;let _0x46748f=a444_0x1477[_0x4ba782];return _0x46748f;};const _0x418294=a444_0x4674;'use strict';const _=require(_0x418294('0xc')),qs=require(_0x418294('0x9')),logger=require(_0x418294('0x2e'))('api'),db=require(_0x418294('0x1a'))['db'],{Op}=require('sequelize');function respondWithResult(_0xda7e97,_0x4dbabc){return _0x4dbabc=_0x4dbabc||0xc8,function(_0x5eb550){const _0x562053=a444_0x4674;if(_0x5eb550)return _0xda7e97[_0x562053('0x17')](_0x4dbabc)[_0x562053('0x2b')](_0x5eb550);};}function respondWithFilteredResult(_0x3a3c7f,_0xf5588c){return function(_0x48cf9c){const _0x140691=a444_0x4674;if(_0x48cf9c){const _0x7412e0=_0x48cf9c[_0x140691('0x1')],_0x2aeedd=_0xf5588c[_0x140691('0x1c')];let _0x4a1b7e=_0xf5588c[_0x140691('0x1c')]+_0xf5588c[_0x140691('0x1e')],_0x31a511;return _0x4a1b7e>=_0x7412e0?(_0x4a1b7e=_0x7412e0,_0x31a511=0xc8):_0x31a511=0xce,_0x3a3c7f['status'](_0x31a511),_0x3a3c7f[_0x140691('0x1f')](_0x140691('0x2d'),_0x2aeedd+'-'+_0x4a1b7e+'/'+_0x7412e0)['json'](_0x48cf9c);}return null;};}function saveUpdates(_0xb8ccb4){return function(_0x21e3e7){const _0xcc9db1=a444_0x4674;if(_0x21e3e7)return _0x21e3e7['update'](_0xb8ccb4)[_0xcc9db1('0xd')](function(_0x283cd7){return _0x283cd7;});return null;};}function removeEntity(_0x1d6c43){return function(_0x5e8208){const _0x41a528=a444_0x4674;if(_0x5e8208)return _0x5e8208['destroy']()[_0x41a528('0xd')](function(){const _0x2a89d5=_0x41a528;_0x1d6c43[_0x2a89d5('0x17')](0xcc)[_0x2a89d5('0x5')]();});};}function handleEntityNotFound(_0x313c0e){return function(_0x19e5d9){return!_0x19e5d9&&_0x313c0e['sendStatus'](0x194),_0x19e5d9;};}function handleError(_0x4c63b2,_0x175e71){return _0x175e71=_0x175e71||0x1f4,function(_0x1814f0){const _0x249ca8=a444_0x4674;logger[_0x249ca8('0x2f')](_0x1814f0[_0x249ca8('0x7')]),_0x1814f0[_0x249ca8('0x26')]&&delete _0x1814f0['name'],_0x4c63b2[_0x249ca8('0x17')](_0x175e71)['send'](_0x1814f0);};}exports[_0x418294('0x14')]=function(_0x52b3d8,_0x4c38dc){const _0x194412=_0x418294;let _0x5bec7f={};const _0xe38dc8={},_0x54f601={'count':0x0,'rows':[]},_0x51d4ed=_['map'](db['MailTransferReport']['rawAttributes'],function(_0x4eb4b4){const _0x21e2e0=a444_0x4674;return{'name':_0x4eb4b4[_0x21e2e0('0x28')],'type':_0x4eb4b4[_0x21e2e0('0xe')][_0x21e2e0('0x0')]};});_0xe38dc8[_0x194412('0x27')]=_['map'](_0x51d4ed,_0x194412('0x26')),_0xe38dc8[_0x194412('0x4')]=_['keys'](_0x52b3d8[_0x194412('0x4')]),_0xe38dc8[_0x194412('0x15')]=_[_0x194412('0x30')](_0xe38dc8['model'],_0xe38dc8[_0x194412('0x4')]),_0x5bec7f[_0x194412('0x32')]=_['intersection'](_0xe38dc8[_0x194412('0x27')],qs[_0x194412('0x33')](_0x52b3d8['query'][_0x194412('0x33')])),_0x5bec7f['attributes']=_0x5bec7f['attributes'][_0x194412('0x3')]?_0x5bec7f['attributes']:_0xe38dc8[_0x194412('0x27')];typeof _0x52b3d8[_0x194412('0x4')][_0x194412('0x11')]===_0x194412('0x19')&&(_0x5bec7f[_0x194412('0x1e')]=qs[_0x194412('0x1e')](_0x52b3d8[_0x194412('0x4')][_0x194412('0x1e')]),_0x5bec7f['offset']=qs[_0x194412('0x1c')](_0x52b3d8[_0x194412('0x4')]['offset']));_0x5bec7f[_0x194412('0x29')]=qs[_0x194412('0xa')](_0x52b3d8[_0x194412('0x4')]['sort']),_0x5bec7f['where']=qs[_0x194412('0x15')](_[_0x194412('0x2')](_0x52b3d8[_0x194412('0x4')],_0xe38dc8[_0x194412('0x15')]),_0x51d4ed);_0x52b3d8[_0x194412('0x4')][_0x194412('0x6')]&&(_0x5bec7f[_0x194412('0x23')]=_[_0x194412('0x8')](_0x5bec7f[_0x194412('0x23')],{[Op['or']]:_[_0x194412('0x2c')](_0x51d4ed,function(_0x32d31d){const _0x5d00b1=_0x194412;if(_0x32d31d[_0x5d00b1('0xe')]!==_0x5d00b1('0x12')){const _0x1cb603={};return _0x1cb603[_0x32d31d[_0x5d00b1('0x26')]]={[Op['like']]:'%'+_0x52b3d8[_0x5d00b1('0x4')][_0x5d00b1('0x6')]+'%'},_0x1cb603;}})}));_0x5bec7f=_[_0x194412('0x8')]({},_0x5bec7f,_0x52b3d8[_0x194412('0x1b')]);const _0x293702={'where':_0x5bec7f['where']};return db['MailTransferReport'][_0x194412('0x1')](_0x293702)[_0x194412('0xd')](function(_0x4e7ac5){const _0x46a3c3=_0x194412;return _0x54f601[_0x46a3c3('0x1')]=_0x4e7ac5,_0x52b3d8['query']['includeAll']&&(_0x5bec7f[_0x46a3c3('0x10')]=[{'all':!![]}]),db[_0x46a3c3('0x18')][_0x46a3c3('0x1d')](_0x5bec7f);})[_0x194412('0xd')](function(_0x53a4a7){const _0x1130bf=_0x194412;return _0x54f601[_0x1130bf('0x24')]=_0x53a4a7,_0x54f601;})['then'](respondWithFilteredResult(_0x4c38dc,_0x5bec7f))[_0x194412('0x25')](handleError(_0x4c38dc,null));},exports[_0x418294('0x21')]=function(_0x69aa1e,_0x2dc471){const _0x52e83d=_0x418294;let _0x1c7058={'raw':!![],'where':{'id':_0x69aa1e['params']['id']}};const _0x53a496={};return _0x53a496['model']=_['keys'](db[_0x52e83d('0x18')][_0x52e83d('0x20')]),_0x53a496[_0x52e83d('0x4')]=_[_0x52e83d('0x31')](_0x69aa1e['query']),_0x53a496[_0x52e83d('0x15')]=_['intersection'](_0x53a496['model'],_0x53a496[_0x52e83d('0x4')]),_0x1c7058[_0x52e83d('0x32')]=_[_0x52e83d('0x30')](_0x53a496[_0x52e83d('0x27')],qs[_0x52e83d('0x33')](_0x69aa1e['query'][_0x52e83d('0x33')])),_0x1c7058[_0x52e83d('0x32')]=_0x1c7058[_0x52e83d('0x32')]['length']?_0x1c7058[_0x52e83d('0x32')]:_0x53a496[_0x52e83d('0x27')],_0x69aa1e[_0x52e83d('0x4')][_0x52e83d('0x2a')]&&(_0x1c7058[_0x52e83d('0x10')]=[{'all':!![]}]),_0x1c7058=_[_0x52e83d('0x8')]({},_0x1c7058,_0x69aa1e[_0x52e83d('0x1b')]),db['MailTransferReport'][_0x52e83d('0xf')](_0x1c7058)['then'](handleEntityNotFound(_0x2dc471,null))['then'](respondWithResult(_0x2dc471,null))['catch'](handleError(_0x2dc471,null));},exports['create']=function(_0x12c621,_0x26ce74){const _0x2b672b=_0x418294;return db['MailTransferReport'][_0x2b672b('0xb')](_0x12c621['body'],{})[_0x2b672b('0xd')](respondWithResult(_0x26ce74,0xc9))['catch'](handleError(_0x26ce74,null));},exports['update']=function(_0x2d1e86,_0x2091d7){const _0x2f6436=_0x418294;return _0x2d1e86[_0x2f6436('0x22')]['id']&&delete _0x2d1e86['body']['id'],db[_0x2f6436('0x18')][_0x2f6436('0xf')]({'where':{'id':_0x2d1e86[_0x2f6436('0x16')]['id']}})['then'](handleEntityNotFound(_0x2091d7,null))[_0x2f6436('0xd')](saveUpdates(_0x2d1e86[_0x2f6436('0x22')],null))[_0x2f6436('0xd')](respondWithResult(_0x2091d7,null))[_0x2f6436('0x25')](handleError(_0x2091d7,null));},exports['destroy']=function(_0x3be39f,_0x5c7c98){const _0x159238=_0x418294;return db['MailTransferReport'][_0x159238('0xf')]({'where':{'id':_0x3be39f['params']['id']}})[_0x159238('0xd')](handleEntityNotFound(_0x5c7c98,null))[_0x159238('0xd')](removeEntity(_0x5c7c98,null))[_0x159238('0x25')](handleError(_0x5c7c98,null));},exports[_0x418294('0x13')]=function(_0x271222,_0x11d74b){const _0x48bc8e=_0x418294;return db[_0x48bc8e('0x18')][_0x48bc8e('0x13')]()[_0x48bc8e('0xd')](respondWithResult(_0x11d74b,null))['catch'](handleError(_0x11d74b,null));}; \ No newline at end of file +const a444_0x5333=['findOne','VIRTUAL','Content-Range','update','where','create','offset','intersection','options','params','model','rawAttributes','pick','type','attributes','include','show','merge','filters','limit','MailTransferReport','sendStatus','../../components/parsers/qs','name','api','like','status','destroy','fields','rows','json','count','map','stack','undefined','query','filter','error','order','length','catch','body','describe','findAll','then','keys','fieldName','includeAll'];(function(_0x162c34,_0x5333e7){const _0x599792=function(_0x7bf658){while(--_0x7bf658){_0x162c34['push'](_0x162c34['shift']());}};_0x599792(++_0x5333e7);}(a444_0x5333,0x6b));const a444_0x5997=function(_0x162c34,_0x5333e7){_0x162c34=_0x162c34-0x0;let _0x599792=a444_0x5333[_0x162c34];return _0x599792;};const _0x2fa8e7=a444_0x5997;'use strict';const _=require('lodash'),qs=require(_0x2fa8e7('0xb')),logger=require('../../config/logger')(_0x2fa8e7('0xd')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x7bf658,_0x1772f5){return _0x1772f5=_0x1772f5||0xc8,function(_0xa3b41b){const _0x1010c1=a444_0x5997;if(_0xa3b41b)return _0x7bf658['status'](_0x1772f5)[_0x1010c1('0x13')](_0xa3b41b);};}function respondWithFilteredResult(_0x2baa02,_0x2ea72c){return function(_0x40f46f){const _0x3997e4=a444_0x5997;if(_0x40f46f){const _0x4aa01c=_0x40f46f[_0x3997e4('0x14')],_0x3ec8b1=_0x2ea72c[_0x3997e4('0x2b')];let _0x550a95=_0x2ea72c['offset']+_0x2ea72c[_0x3997e4('0x8')],_0x8f6a83;return _0x550a95>=_0x4aa01c?(_0x550a95=_0x4aa01c,_0x8f6a83=0xc8):_0x8f6a83=0xce,_0x2baa02[_0x3997e4('0xf')](_0x8f6a83),_0x2baa02['set'](_0x3997e4('0x27'),_0x3ec8b1+'-'+_0x550a95+'/'+_0x4aa01c)[_0x3997e4('0x13')](_0x40f46f);}return null;};}function saveUpdates(_0x3d5aff){return function(_0x362743){const _0x15027c=a444_0x5997;if(_0x362743)return _0x362743[_0x15027c('0x28')](_0x3d5aff)[_0x15027c('0x21')](function(_0x5f02b9){return _0x5f02b9;});return null;};}function removeEntity(_0x32775d){return function(_0x5f3034){const _0x349693=a444_0x5997;if(_0x5f3034)return _0x5f3034[_0x349693('0x10')]()['then'](function(){const _0x1751a3=_0x349693;_0x32775d[_0x1751a3('0xf')](0xcc)['end']();});};}function handleEntityNotFound(_0x1560f5){return function(_0x4aa7ef){const _0x860fa7=a444_0x5997;return!_0x4aa7ef&&_0x1560f5[_0x860fa7('0xa')](0x194),_0x4aa7ef;};}function handleError(_0x178514,_0x29d786){return _0x29d786=_0x29d786||0x1f4,function(_0xf60b32){const _0x4c5f9d=a444_0x5997;logger[_0x4c5f9d('0x1a')](_0xf60b32[_0x4c5f9d('0x16')]),_0xf60b32[_0x4c5f9d('0xc')]&&delete _0xf60b32['name'],_0x178514[_0x4c5f9d('0xf')](_0x29d786)['send'](_0xf60b32);};}exports['index']=function(_0x24fe6d,_0x4d21bd){const _0x783ad7=_0x2fa8e7;let _0x2ec945={};const _0x3124a6={},_0x41d2ac={'count':0x0,'rows':[]},_0x376dee=_[_0x783ad7('0x15')](db[_0x783ad7('0x9')][_0x783ad7('0x0')],function(_0x574993){const _0x3a12f9=_0x783ad7;return{'name':_0x574993[_0x3a12f9('0x23')],'type':_0x574993[_0x3a12f9('0x2')]['key']};});_0x3124a6[_0x783ad7('0x2f')]=_[_0x783ad7('0x15')](_0x376dee,_0x783ad7('0xc')),_0x3124a6[_0x783ad7('0x18')]=_[_0x783ad7('0x22')](_0x24fe6d['query']),_0x3124a6[_0x783ad7('0x7')]=_[_0x783ad7('0x2c')](_0x3124a6[_0x783ad7('0x2f')],_0x3124a6[_0x783ad7('0x18')]),_0x2ec945[_0x783ad7('0x3')]=_[_0x783ad7('0x2c')](_0x3124a6[_0x783ad7('0x2f')],qs['fields'](_0x24fe6d[_0x783ad7('0x18')][_0x783ad7('0x11')])),_0x2ec945[_0x783ad7('0x3')]=_0x2ec945[_0x783ad7('0x3')]['length']?_0x2ec945[_0x783ad7('0x3')]:_0x3124a6[_0x783ad7('0x2f')];typeof _0x24fe6d[_0x783ad7('0x18')]['nolimit']===_0x783ad7('0x17')&&(_0x2ec945[_0x783ad7('0x8')]=qs[_0x783ad7('0x8')](_0x24fe6d[_0x783ad7('0x18')][_0x783ad7('0x8')]),_0x2ec945[_0x783ad7('0x2b')]=qs['offset'](_0x24fe6d[_0x783ad7('0x18')][_0x783ad7('0x2b')]));_0x2ec945[_0x783ad7('0x1b')]=qs['sort'](_0x24fe6d[_0x783ad7('0x18')]['sort']),_0x2ec945['where']=qs['filters'](_[_0x783ad7('0x1')](_0x24fe6d['query'],_0x3124a6[_0x783ad7('0x7')]),_0x376dee);_0x24fe6d[_0x783ad7('0x18')][_0x783ad7('0x19')]&&(_0x2ec945[_0x783ad7('0x29')]=_[_0x783ad7('0x6')](_0x2ec945[_0x783ad7('0x29')],{[Op['or']]:_[_0x783ad7('0x15')](_0x376dee,function(_0x5e0d53){const _0x270808=_0x783ad7;if(_0x5e0d53[_0x270808('0x2')]!==_0x270808('0x26')){const _0x3624e9={};return _0x3624e9[_0x5e0d53[_0x270808('0xc')]]={[Op[_0x270808('0xe')]]:'%'+_0x24fe6d[_0x270808('0x18')][_0x270808('0x19')]+'%'},_0x3624e9;}})}));_0x2ec945=_[_0x783ad7('0x6')]({},_0x2ec945,_0x24fe6d[_0x783ad7('0x2d')]);const _0x41e639={'where':_0x2ec945[_0x783ad7('0x29')]};return db[_0x783ad7('0x9')][_0x783ad7('0x14')](_0x41e639)[_0x783ad7('0x21')](function(_0x197e41){const _0x42d377=_0x783ad7;return _0x41d2ac[_0x42d377('0x14')]=_0x197e41,_0x24fe6d[_0x42d377('0x18')][_0x42d377('0x24')]&&(_0x2ec945[_0x42d377('0x4')]=[{'all':!![]}]),db[_0x42d377('0x9')][_0x42d377('0x20')](_0x2ec945);})['then'](function(_0x5104a8){const _0x1cf5ac=_0x783ad7;return _0x41d2ac[_0x1cf5ac('0x12')]=_0x5104a8,_0x41d2ac;})[_0x783ad7('0x21')](respondWithFilteredResult(_0x4d21bd,_0x2ec945))[_0x783ad7('0x1d')](handleError(_0x4d21bd,null));},exports[_0x2fa8e7('0x5')]=function(_0x3dffbe,_0x4e6b40){const _0x17901f=_0x2fa8e7;let _0x11efcb={'raw':!![],'where':{'id':_0x3dffbe[_0x17901f('0x2e')]['id']}};const _0x39bb05={};return _0x39bb05[_0x17901f('0x2f')]=_[_0x17901f('0x22')](db[_0x17901f('0x9')][_0x17901f('0x0')]),_0x39bb05[_0x17901f('0x18')]=_['keys'](_0x3dffbe[_0x17901f('0x18')]),_0x39bb05['filters']=_[_0x17901f('0x2c')](_0x39bb05[_0x17901f('0x2f')],_0x39bb05[_0x17901f('0x18')]),_0x11efcb[_0x17901f('0x3')]=_[_0x17901f('0x2c')](_0x39bb05['model'],qs[_0x17901f('0x11')](_0x3dffbe[_0x17901f('0x18')][_0x17901f('0x11')])),_0x11efcb['attributes']=_0x11efcb['attributes'][_0x17901f('0x1c')]?_0x11efcb[_0x17901f('0x3')]:_0x39bb05[_0x17901f('0x2f')],_0x3dffbe[_0x17901f('0x18')]['includeAll']&&(_0x11efcb[_0x17901f('0x4')]=[{'all':!![]}]),_0x11efcb=_[_0x17901f('0x6')]({},_0x11efcb,_0x3dffbe['options']),db[_0x17901f('0x9')][_0x17901f('0x25')](_0x11efcb)['then'](handleEntityNotFound(_0x4e6b40,null))[_0x17901f('0x21')](respondWithResult(_0x4e6b40,null))[_0x17901f('0x1d')](handleError(_0x4e6b40,null));},exports[_0x2fa8e7('0x2a')]=function(_0x2f4d26,_0x2e195e){const _0x1a1bcc=_0x2fa8e7;return db[_0x1a1bcc('0x9')]['create'](_0x2f4d26[_0x1a1bcc('0x1e')],{})[_0x1a1bcc('0x21')](respondWithResult(_0x2e195e,0xc9))[_0x1a1bcc('0x1d')](handleError(_0x2e195e,null));},exports[_0x2fa8e7('0x28')]=function(_0x4f512b,_0x4dbecf){const _0x1a9b3e=_0x2fa8e7;return _0x4f512b['body']['id']&&delete _0x4f512b['body']['id'],db['MailTransferReport'][_0x1a9b3e('0x25')]({'where':{'id':_0x4f512b[_0x1a9b3e('0x2e')]['id']}})[_0x1a9b3e('0x21')](handleEntityNotFound(_0x4dbecf,null))[_0x1a9b3e('0x21')](saveUpdates(_0x4f512b['body'],null))[_0x1a9b3e('0x21')](respondWithResult(_0x4dbecf,null))[_0x1a9b3e('0x1d')](handleError(_0x4dbecf,null));},exports[_0x2fa8e7('0x10')]=function(_0x9e8243,_0x2a8ca2){const _0xd9560b=_0x2fa8e7;return db[_0xd9560b('0x9')][_0xd9560b('0x25')]({'where':{'id':_0x9e8243[_0xd9560b('0x2e')]['id']}})[_0xd9560b('0x21')](handleEntityNotFound(_0x2a8ca2,null))[_0xd9560b('0x21')](removeEntity(_0x2a8ca2,null))[_0xd9560b('0x1d')](handleError(_0x2a8ca2,null));},exports[_0x2fa8e7('0x1f')]=function(_0x214f6c,_0x3c12a3){const _0x241345=_0x2fa8e7;return db[_0x241345('0x9')][_0x241345('0x1f')]()[_0x241345('0x21')](respondWithResult(_0x3c12a3,null))[_0x241345('0x1d')](handleError(_0x3c12a3,null));}; \ No newline at end of file diff --git a/server/api/mailTransferReport/mailTransferReport.model.js b/server/api/mailTransferReport/mailTransferReport.model.js index eff5aae..7b87ded 100644 --- a/server/api/mailTransferReport/mailTransferReport.model.js +++ b/server/api/mailTransferReport/mailTransferReport.model.js @@ -1 +1 @@ -const a445_0x5922=['define','exports','uniqueid','./mailTransferReport.attributes','report_mail_transfer','MailTransferReport'];(function(_0x5e5575,_0x592264){const _0x322cef=function(_0x3e419a){while(--_0x3e419a){_0x5e5575['push'](_0x5e5575['shift']());}};_0x322cef(++_0x592264);}(a445_0x5922,0x131));const a445_0x322c=function(_0x5e5575,_0x592264){_0x5e5575=_0x5e5575-0x0;let _0x322cef=a445_0x5922[_0x5e5575];return _0x322cef;};const _0x44f4f2=a445_0x322c;'use strict';const attributes=require(_0x44f4f2('0x4'));module[_0x44f4f2('0x2')]=function(_0x3e419a){const _0x27ba59=_0x44f4f2,_0x278400=_0x3e419a[_0x27ba59('0x1')](_0x27ba59('0x0'),attributes,{'tableName':_0x27ba59('0x5'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x27ba59('0x3')]}],'timestamps':!![]});return _0x278400;}; \ No newline at end of file +const a445_0x75aa=['MailTransferReport','./mailTransferReport.attributes','uniqueid'];(function(_0x3322a7,_0x75aa67){const _0x619f14=function(_0x531f97){while(--_0x531f97){_0x3322a7['push'](_0x3322a7['shift']());}};_0x619f14(++_0x75aa67);}(a445_0x75aa,0xd0));const a445_0x619f=function(_0x3322a7,_0x75aa67){_0x3322a7=_0x3322a7-0x0;let _0x619f14=a445_0x75aa[_0x3322a7];return _0x619f14;};const _0x24fded=a445_0x619f;'use strict';const attributes=require(_0x24fded('0x0'));module['exports']=function(_0x531f97){const _0x51cb3d=_0x24fded,_0x3fc799=_0x531f97['define'](_0x51cb3d('0x2'),attributes,{'tableName':'report_mail_transfer','paranoid':![],'indexes':[{'name':_0x51cb3d('0x1'),'fields':[_0x51cb3d('0x1')]}],'timestamps':!![]});return _0x3fc799;}; \ No newline at end of file diff --git a/server/api/memberReport/index.js b/server/api/memberReport/index.js index f92d347..3b3884d 100644 --- a/server/api/memberReport/index.js +++ b/server/api/memberReport/index.js @@ -1 +1 @@ -const a446_0x1171=['create','Router','get','/:id','index','post','exports','../../components/auth/service','/describe','isAuthenticated','put','destroy'];(function(_0x331681,_0x117169){const _0xf32400=function(_0x591700){while(--_0x591700){_0x331681['push'](_0x331681['shift']());}};_0xf32400(++_0x117169);}(a446_0x1171,0x15d));const a446_0xf324=function(_0x331681,_0x117169){_0x331681=_0x331681-0x0;let _0xf32400=a446_0x1171[_0x331681];return _0xf32400;};const _0x146ce9=a446_0xf324;'use strict';const express=require('express'),router=express[_0x146ce9('0x0')](),auth=require(_0x146ce9('0x6')),controller=require('./memberReport.controller');router['get']('/',auth[_0x146ce9('0x8')](),controller[_0x146ce9('0x3')]),router[_0x146ce9('0x1')](_0x146ce9('0x7'),auth['isAuthenticated'](),controller['describe']),router[_0x146ce9('0x1')](_0x146ce9('0x2'),auth[_0x146ce9('0x8')](),controller['show']),router[_0x146ce9('0x4')]('/',auth[_0x146ce9('0x8')](),controller[_0x146ce9('0xb')]),router[_0x146ce9('0x9')]('/:id',auth['isAuthenticated'](),controller['update']),router['delete'](_0x146ce9('0x2'),auth['isAuthenticated'](),controller[_0x146ce9('0xa')]),module[_0x146ce9('0x5')]=router; \ No newline at end of file +const a446_0x211b=['create','show','/:id','get','exports','./memberReport.controller','Router','destroy','/describe','express','../../components/auth/service','isAuthenticated','post','update','describe'];(function(_0x29ed60,_0x211bd6){const _0x35bb2f=function(_0x1fd02a){while(--_0x1fd02a){_0x29ed60['push'](_0x29ed60['shift']());}};_0x35bb2f(++_0x211bd6);}(a446_0x211b,0x191));const a446_0x35bb=function(_0x29ed60,_0x211bd6){_0x29ed60=_0x29ed60-0x0;let _0x35bb2f=a446_0x211b[_0x29ed60];return _0x35bb2f;};const _0x38a32a=a446_0x35bb;'use strict';const express=require(_0x38a32a('0xd')),router=express[_0x38a32a('0xa')](),auth=require(_0x38a32a('0xe')),controller=require(_0x38a32a('0x9'));router[_0x38a32a('0x7')]('/',auth[_0x38a32a('0x0')](),controller['index']),router[_0x38a32a('0x7')](_0x38a32a('0xc'),auth['isAuthenticated'](),controller[_0x38a32a('0x3')]),router[_0x38a32a('0x7')](_0x38a32a('0x6'),auth[_0x38a32a('0x0')](),controller[_0x38a32a('0x5')]),router[_0x38a32a('0x1')]('/',auth[_0x38a32a('0x0')](),controller[_0x38a32a('0x4')]),router['put']('/:id',auth[_0x38a32a('0x0')](),controller[_0x38a32a('0x2')]),router['delete']('/:id',auth[_0x38a32a('0x0')](),controller[_0x38a32a('0xb')]),module[_0x38a32a('0x8')]=router; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.attributes.js b/server/api/memberReport/memberReport.attributes.js index 5931143..cc99a3d 100644 --- a/server/api/memberReport/memberReport.attributes.js +++ b/server/api/memberReport/memberReport.attributes.js @@ -1 +1 @@ -const a447_0xfa54=['enterAt','moment','exitAt','DATE','talk:[destination]','diff','DEFAULT\x20PAUSE','talk:[start]','duration','LOGIN,\x20PAUSE,\x20TALKING','setDataValue','talk:[queue]','INTEGER','seconds','getDataValue','STRING','exports','sequelize','talk:[inbound,\x20outbound],\x20pause:[reason]'];(function(_0x33b2f4,_0xfa5479){const _0x3f6175=function(_0x20b490){while(--_0x20b490){_0x33b2f4['push'](_0x33b2f4['shift']());}};_0x3f6175(++_0xfa5479);}(a447_0xfa54,0x184));const a447_0x3f61=function(_0x33b2f4,_0xfa5479){_0x33b2f4=_0x33b2f4-0x0;let _0x3f6175=a447_0xfa54[_0x33b2f4];return _0x3f6175;};const _0x4632d5=a447_0x3f61;'use strict';const Sequelize=require(_0x4632d5('0x9')),moment=require(_0x4632d5('0xc'));module[_0x4632d5('0x8')]={'channel':{'type':Sequelize[_0x4632d5('0x7')]},'membername':{'type':Sequelize['STRING']},'interface':{'type':Sequelize[_0x4632d5('0x7')]},'type':{'type':Sequelize[_0x4632d5('0x7')],'defaultValue':_0x4632d5('0x11'),'comment':_0x4632d5('0x1')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0x4632d5('0xe')]},'exitAt':{'type':Sequelize[_0x4632d5('0xe')],'set':function(_0x20b490){const _0x472246=_0x4632d5,_0x5e9cff=moment(_0x20b490),_0xea9cdb=moment(this[_0x472246('0x6')](_0x472246('0xb'))),_0xc40b56=_0x5e9cff[_0x472246('0x10')](_0xea9cdb,_0x472246('0x5'));this[_0x472246('0x2')](_0x472246('0xd'),_0x20b490),this[_0x472246('0x2')](_0x472246('0x0'),_0xc40b56||null);}},'data1':{'type':Sequelize[_0x4632d5('0x7')],'comment':_0x4632d5('0xa')},'data2':{'type':Sequelize['STRING'],'comment':_0x4632d5('0x12')},'data3':{'type':Sequelize[_0x4632d5('0x7')],'comment':_0x4632d5('0xf')},'data4':{'type':Sequelize['STRING'],'comment':'talk:[dial\x20string]'},'data5':{'type':Sequelize['STRING'],'comment':_0x4632d5('0x3')},'role':{'type':Sequelize[_0x4632d5('0x7')]},'internal':{'type':Sequelize[_0x4632d5('0x4')]},'uniqueid':{'type':Sequelize[_0x4632d5('0x7')]}}; \ No newline at end of file +const a447_0x4bac=['talk:[destination]','talk:[start]','setDataValue','INTEGER','STRING','talk:[dial\x20string]','talk:[queue]','getDataValue','seconds','talk:[inbound,\x20outbound],\x20pause:[reason]','diff','enterAt','DATE','LOGIN,\x20PAUSE,\x20TALKING','moment'];(function(_0x310644,_0x4bac20){const _0x127f37=function(_0xad0d93){while(--_0xad0d93){_0x310644['push'](_0x310644['shift']());}};_0x127f37(++_0x4bac20);}(a447_0x4bac,0x85));const a447_0x127f=function(_0x310644,_0x4bac20){_0x310644=_0x310644-0x0;let _0x127f37=a447_0x4bac[_0x310644];return _0x127f37;};const _0x102fa2=a447_0x127f;'use strict';const Sequelize=require('sequelize'),moment=require(_0x102fa2('0x1'));module['exports']={'channel':{'type':Sequelize[_0x102fa2('0x6')]},'membername':{'type':Sequelize[_0x102fa2('0x6')]},'interface':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x102fa2('0x6')],'defaultValue':'DEFAULT\x20PAUSE','comment':_0x102fa2('0x0')},'duration':{'type':Sequelize['INTEGER']},'enterAt':{'type':Sequelize[_0x102fa2('0xe')]},'exitAt':{'type':Sequelize['DATE'],'set':function(_0xad0d93){const _0xbcd6f2=_0x102fa2,_0x2b3d6f=moment(_0xad0d93),_0x40f202=moment(this[_0xbcd6f2('0x9')](_0xbcd6f2('0xd'))),_0x20ddaa=_0x2b3d6f[_0xbcd6f2('0xc')](_0x40f202,_0xbcd6f2('0xa'));this[_0xbcd6f2('0x4')]('exitAt',_0xad0d93),this['setDataValue']('duration',_0x20ddaa||null);}},'data1':{'type':Sequelize[_0x102fa2('0x6')],'comment':_0x102fa2('0xb')},'data2':{'type':Sequelize[_0x102fa2('0x6')],'comment':_0x102fa2('0x3')},'data3':{'type':Sequelize['STRING'],'comment':_0x102fa2('0x2')},'data4':{'type':Sequelize['STRING'],'comment':_0x102fa2('0x7')},'data5':{'type':Sequelize[_0x102fa2('0x6')],'comment':_0x102fa2('0x8')},'role':{'type':Sequelize['STRING']},'internal':{'type':Sequelize[_0x102fa2('0x5')]},'uniqueid':{'type':Sequelize[_0x102fa2('0x6')]}}; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.controller.js b/server/api/memberReport/memberReport.controller.js index 15b9fcc..26eb326 100644 --- a/server/api/memberReport/memberReport.controller.js +++ b/server/api/memberReport/memberReport.controller.js @@ -1 +1 @@ -const a448_0x5477=['body','../../config/logger','limit','type','end','filters','status','merge','../../mysqldb','options','query','fieldName','findAll','map','order','include','api','like','pick','intersection','MemberReport','Content-Range','offset','where','key','attributes','update','undefined','error','set','lodash','then','keys','describe','json','catch','../../components/parsers/qs','index','length','create','count','includeAll','params','destroy','sequelize','findOne','rows','model','fields','nolimit','name'];(function(_0x2e483a,_0x547743){const _0x32b197=function(_0x5d8f1a){while(--_0x5d8f1a){_0x2e483a['push'](_0x2e483a['shift']());}};_0x32b197(++_0x547743);}(a448_0x5477,0xbc));const a448_0x32b1=function(_0x2e483a,_0x547743){_0x2e483a=_0x2e483a-0x0;let _0x32b197=a448_0x5477[_0x2e483a];return _0x32b197;};const _0x10087b=a448_0x32b1;'use strict';const _=require(_0x10087b('0x2e')),qs=require(_0x10087b('0x1')),logger=require(_0x10087b('0x11'))(_0x10087b('0x20')),db=require(_0x10087b('0x18'))['db'],{Op}=require(_0x10087b('0x9'));function respondWithResult(_0x5d8f1a,_0x19d094){return _0x19d094=_0x19d094||0xc8,function(_0x59cea3){const _0x349250=a448_0x32b1;if(_0x59cea3)return _0x5d8f1a[_0x349250('0x16')](_0x19d094)[_0x349250('0x32')](_0x59cea3);};}function respondWithFilteredResult(_0x5f3a6d,_0x2f0a52){return function(_0x535995){const _0x421cef=a448_0x32b1;if(_0x535995){const _0x237efa=_0x535995[_0x421cef('0x5')],_0x248b6a=_0x2f0a52['offset'];let _0x262327=_0x2f0a52[_0x421cef('0x26')]+_0x2f0a52['limit'],_0x5b7c5f;return _0x262327>=_0x237efa?(_0x262327=_0x237efa,_0x5b7c5f=0xc8):_0x5b7c5f=0xce,_0x5f3a6d[_0x421cef('0x16')](_0x5b7c5f),_0x5f3a6d[_0x421cef('0x2d')](_0x421cef('0x25'),_0x248b6a+'-'+_0x262327+'/'+_0x237efa)[_0x421cef('0x32')](_0x535995);}return null;};}function saveUpdates(_0xcf7b29){return function(_0x102945){const _0x97d6f4=a448_0x32b1;if(_0x102945)return _0x102945[_0x97d6f4('0x2a')](_0xcf7b29)[_0x97d6f4('0x2f')](function(_0x204536){return _0x204536;});return null;};}function removeEntity(_0x2e9aa0){return function(_0x24cbb2){const _0x1fea3f=a448_0x32b1;if(_0x24cbb2)return _0x24cbb2[_0x1fea3f('0x8')]()['then'](function(){const _0x4f2fb2=_0x1fea3f;_0x2e9aa0[_0x4f2fb2('0x16')](0xcc)[_0x4f2fb2('0x14')]();});};}function handleEntityNotFound(_0x5b2d78){return function(_0x232dd4){return!_0x232dd4&&_0x5b2d78['sendStatus'](0x194),_0x232dd4;};}function handleError(_0x4efe58,_0x4e8356){return _0x4e8356=_0x4e8356||0x1f4,function(_0x3600e9){const _0xe98c40=a448_0x32b1;logger[_0xe98c40('0x2c')](_0x3600e9['stack']),_0x3600e9['name']&&delete _0x3600e9[_0xe98c40('0xf')],_0x4efe58[_0xe98c40('0x16')](_0x4e8356)['send'](_0x3600e9);};}exports[_0x10087b('0x2')]=function(_0x36b8a1,_0x2aadd1){const _0x2068ca=_0x10087b;let _0x134f2c={};const _0x54267e={},_0x1f46fb={'count':0x0,'rows':[]},_0x4d36c3=_[_0x2068ca('0x1d')](db['MemberReport']['rawAttributes'],function(_0x50cb51){const _0x454e69=_0x2068ca;return{'name':_0x50cb51[_0x454e69('0x1b')],'type':_0x50cb51[_0x454e69('0x13')][_0x454e69('0x28')]};});_0x54267e['model']=_[_0x2068ca('0x1d')](_0x4d36c3,_0x2068ca('0xf')),_0x54267e[_0x2068ca('0x1a')]=_[_0x2068ca('0x30')](_0x36b8a1['query']),_0x54267e[_0x2068ca('0x15')]=_[_0x2068ca('0x23')](_0x54267e[_0x2068ca('0xc')],_0x54267e[_0x2068ca('0x1a')]),_0x134f2c[_0x2068ca('0x29')]=_['intersection'](_0x54267e['model'],qs[_0x2068ca('0xd')](_0x36b8a1[_0x2068ca('0x1a')]['fields'])),_0x134f2c[_0x2068ca('0x29')]=_0x134f2c[_0x2068ca('0x29')][_0x2068ca('0x3')]?_0x134f2c[_0x2068ca('0x29')]:_0x54267e['model'];typeof _0x36b8a1[_0x2068ca('0x1a')][_0x2068ca('0xe')]===_0x2068ca('0x2b')&&(_0x134f2c[_0x2068ca('0x12')]=qs[_0x2068ca('0x12')](_0x36b8a1[_0x2068ca('0x1a')]['limit']),_0x134f2c['offset']=qs[_0x2068ca('0x26')](_0x36b8a1['query'][_0x2068ca('0x26')]));_0x134f2c[_0x2068ca('0x1e')]=qs['sort'](_0x36b8a1[_0x2068ca('0x1a')]['sort']),_0x134f2c[_0x2068ca('0x27')]=qs[_0x2068ca('0x15')](_[_0x2068ca('0x22')](_0x36b8a1['query'],_0x54267e[_0x2068ca('0x15')]),_0x4d36c3);_0x36b8a1[_0x2068ca('0x1a')]['filter']&&(_0x134f2c[_0x2068ca('0x27')]=_[_0x2068ca('0x17')](_0x134f2c[_0x2068ca('0x27')],{[Op['or']]:_['map'](_0x4d36c3,function(_0x1b3fbd){const _0xaeb593=_0x2068ca;if(_0x1b3fbd['type']!=='VIRTUAL'){const _0x27a393={};return _0x27a393[_0x1b3fbd[_0xaeb593('0xf')]]={[Op[_0xaeb593('0x21')]]:'%'+_0x36b8a1[_0xaeb593('0x1a')]['filter']+'%'},_0x27a393;}})}));_0x134f2c=_[_0x2068ca('0x17')]({},_0x134f2c,_0x36b8a1[_0x2068ca('0x19')]);const _0x588cf5={'where':_0x134f2c[_0x2068ca('0x27')]};return db['MemberReport']['count'](_0x588cf5)[_0x2068ca('0x2f')](function(_0x39c8fd){const _0x372d17=_0x2068ca;return _0x1f46fb[_0x372d17('0x5')]=_0x39c8fd,_0x36b8a1[_0x372d17('0x1a')][_0x372d17('0x6')]&&(_0x134f2c[_0x372d17('0x1f')]=[{'all':!![]}]),db[_0x372d17('0x24')][_0x372d17('0x1c')](_0x134f2c);})[_0x2068ca('0x2f')](function(_0x2a5058){const _0x43ba7e=_0x2068ca;return _0x1f46fb[_0x43ba7e('0xb')]=_0x2a5058,_0x1f46fb;})[_0x2068ca('0x2f')](respondWithFilteredResult(_0x2aadd1,_0x134f2c))[_0x2068ca('0x0')](handleError(_0x2aadd1,null));},exports['show']=function(_0x381b06,_0x437dc1){const _0x5039a0=_0x10087b;let _0x440ebc={'raw':!![],'where':{'id':_0x381b06[_0x5039a0('0x7')]['id']}};const _0x288e25={};return _0x288e25[_0x5039a0('0xc')]=_['keys'](db[_0x5039a0('0x24')]['rawAttributes']),_0x288e25[_0x5039a0('0x1a')]=_[_0x5039a0('0x30')](_0x381b06[_0x5039a0('0x1a')]),_0x288e25[_0x5039a0('0x15')]=_['intersection'](_0x288e25[_0x5039a0('0xc')],_0x288e25[_0x5039a0('0x1a')]),_0x440ebc['attributes']=_['intersection'](_0x288e25[_0x5039a0('0xc')],qs['fields'](_0x381b06[_0x5039a0('0x1a')][_0x5039a0('0xd')])),_0x440ebc[_0x5039a0('0x29')]=_0x440ebc[_0x5039a0('0x29')]['length']?_0x440ebc[_0x5039a0('0x29')]:_0x288e25[_0x5039a0('0xc')],_0x381b06[_0x5039a0('0x1a')][_0x5039a0('0x6')]&&(_0x440ebc[_0x5039a0('0x1f')]=[{'all':!![]}]),_0x440ebc=_[_0x5039a0('0x17')]({},_0x440ebc,_0x381b06[_0x5039a0('0x19')]),db[_0x5039a0('0x24')][_0x5039a0('0xa')](_0x440ebc)[_0x5039a0('0x2f')](handleEntityNotFound(_0x437dc1,null))[_0x5039a0('0x2f')](respondWithResult(_0x437dc1,null))[_0x5039a0('0x0')](handleError(_0x437dc1,null));},exports[_0x10087b('0x4')]=function(_0x5bd6a3,_0x216df5){const _0x13f085=_0x10087b;return db[_0x13f085('0x24')]['create'](_0x5bd6a3[_0x13f085('0x10')],{})[_0x13f085('0x2f')](respondWithResult(_0x216df5,0xc9))[_0x13f085('0x0')](handleError(_0x216df5,null));},exports['update']=function(_0x5d9490,_0xb02119){const _0x44f3f0=_0x10087b;return _0x5d9490[_0x44f3f0('0x10')]['id']&&delete _0x5d9490[_0x44f3f0('0x10')]['id'],db[_0x44f3f0('0x24')][_0x44f3f0('0xa')]({'where':{'id':_0x5d9490['params']['id']}})[_0x44f3f0('0x2f')](handleEntityNotFound(_0xb02119,null))['then'](saveUpdates(_0x5d9490[_0x44f3f0('0x10')],null))[_0x44f3f0('0x2f')](respondWithResult(_0xb02119,null))[_0x44f3f0('0x0')](handleError(_0xb02119,null));},exports['destroy']=function(_0x8666b6,_0x19d64e){const _0x3739d6=_0x10087b;return db[_0x3739d6('0x24')][_0x3739d6('0xa')]({'where':{'id':_0x8666b6[_0x3739d6('0x7')]['id']}})['then'](handleEntityNotFound(_0x19d64e,null))[_0x3739d6('0x2f')](removeEntity(_0x19d64e,null))['catch'](handleError(_0x19d64e,null));},exports[_0x10087b('0x31')]=function(_0x5e44fd,_0x1b78e3){const _0x1a25f6=_0x10087b;return db[_0x1a25f6('0x24')][_0x1a25f6('0x31')]()[_0x1a25f6('0x2f')](respondWithResult(_0x1b78e3,null))['catch'](handleError(_0x1b78e3,null));}; \ No newline at end of file +const a448_0x4e1d=['create','includeAll','where','destroy','nolimit','then','filter','filters','intersection','json','../../config/logger','update','length','stack','findOne','attributes','rawAttributes','api','end','sort','describe','type','lodash','query','keys','include','model','../../components/parsers/qs','catch','../../mysqldb','params','body','offset','name','undefined','rows','MemberReport','options','findAll','VIRTUAL','status','fields','merge','pick','like','count','show','limit','map'];(function(_0x257279,_0x4e1d05){const _0x3d5d5a=function(_0x38dbe0){while(--_0x38dbe0){_0x257279['push'](_0x257279['shift']());}};_0x3d5d5a(++_0x4e1d05);}(a448_0x4e1d,0x1bc));const a448_0x3d5d=function(_0x257279,_0x4e1d05){_0x257279=_0x257279-0x0;let _0x3d5d5a=a448_0x4e1d[_0x257279];return _0x3d5d5a;};const _0xd0adab=a448_0x3d5d;'use strict';const _=require(_0xd0adab('0x13')),qs=require(_0xd0adab('0x18')),logger=require(_0xd0adab('0x7'))(_0xd0adab('0xe')),db=require(_0xd0adab('0x1a'))['db'],{Op}=require('sequelize');function respondWithResult(_0x38dbe0,_0x1dd697){return _0x1dd697=_0x1dd697||0xc8,function(_0x2d44f5){const _0x30e95e=a448_0x3d5d;if(_0x2d44f5)return _0x38dbe0[_0x30e95e('0x25')](_0x1dd697)[_0x30e95e('0x6')](_0x2d44f5);};}function respondWithFilteredResult(_0x4d9088,_0x1fa7d1){return function(_0x33de9f){const _0x3c711a=a448_0x3d5d;if(_0x33de9f){const _0x4321cd=_0x33de9f['count'],_0x30c244=_0x1fa7d1['offset'];let _0x90951=_0x1fa7d1[_0x3c711a('0x1d')]+_0x1fa7d1[_0x3c711a('0x2c')],_0x8d5500;return _0x90951>=_0x4321cd?(_0x90951=_0x4321cd,_0x8d5500=0xc8):_0x8d5500=0xce,_0x4d9088[_0x3c711a('0x25')](_0x8d5500),_0x4d9088['set']('Content-Range',_0x30c244+'-'+_0x90951+'/'+_0x4321cd)[_0x3c711a('0x6')](_0x33de9f);}return null;};}function saveUpdates(_0x5bcce1){return function(_0xa91925){const _0x393786=a448_0x3d5d;if(_0xa91925)return _0xa91925[_0x393786('0x8')](_0x5bcce1)[_0x393786('0x2')](function(_0x3bb3b4){return _0x3bb3b4;});return null;};}function removeEntity(_0x401cc5){return function(_0x2f14f9){const _0x41f829=a448_0x3d5d;if(_0x2f14f9)return _0x2f14f9[_0x41f829('0x0')]()[_0x41f829('0x2')](function(){const _0x4442e8=_0x41f829;_0x401cc5['status'](0xcc)[_0x4442e8('0xf')]();});};}function handleEntityNotFound(_0x21b178){return function(_0xdd5bbe){return!_0xdd5bbe&&_0x21b178['sendStatus'](0x194),_0xdd5bbe;};}function handleError(_0x68719a,_0x4cf6c1){return _0x4cf6c1=_0x4cf6c1||0x1f4,function(_0x5a818d){const _0x4e9d09=a448_0x3d5d;logger['error'](_0x5a818d[_0x4e9d09('0xa')]),_0x5a818d[_0x4e9d09('0x1e')]&&delete _0x5a818d[_0x4e9d09('0x1e')],_0x68719a[_0x4e9d09('0x25')](_0x4cf6c1)['send'](_0x5a818d);};}exports['index']=function(_0x5e4fd4,_0x370d26){const _0x9dbd43=_0xd0adab;let _0x29c614={};const _0x216810={},_0x5c0f26={'count':0x0,'rows':[]},_0x331b73=_['map'](db[_0x9dbd43('0x21')]['rawAttributes'],function(_0x4c5141){const _0xe9abad=_0x9dbd43;return{'name':_0x4c5141['fieldName'],'type':_0x4c5141[_0xe9abad('0x12')]['key']};});_0x216810[_0x9dbd43('0x17')]=_[_0x9dbd43('0x2d')](_0x331b73,_0x9dbd43('0x1e')),_0x216810[_0x9dbd43('0x14')]=_[_0x9dbd43('0x15')](_0x5e4fd4['query']),_0x216810[_0x9dbd43('0x4')]=_[_0x9dbd43('0x5')](_0x216810[_0x9dbd43('0x17')],_0x216810[_0x9dbd43('0x14')]),_0x29c614[_0x9dbd43('0xc')]=_[_0x9dbd43('0x5')](_0x216810[_0x9dbd43('0x17')],qs[_0x9dbd43('0x26')](_0x5e4fd4['query'][_0x9dbd43('0x26')])),_0x29c614['attributes']=_0x29c614[_0x9dbd43('0xc')][_0x9dbd43('0x9')]?_0x29c614[_0x9dbd43('0xc')]:_0x216810['model'];typeof _0x5e4fd4[_0x9dbd43('0x14')][_0x9dbd43('0x1')]===_0x9dbd43('0x1f')&&(_0x29c614[_0x9dbd43('0x2c')]=qs['limit'](_0x5e4fd4[_0x9dbd43('0x14')][_0x9dbd43('0x2c')]),_0x29c614['offset']=qs[_0x9dbd43('0x1d')](_0x5e4fd4['query'][_0x9dbd43('0x1d')]));_0x29c614['order']=qs[_0x9dbd43('0x10')](_0x5e4fd4['query'][_0x9dbd43('0x10')]),_0x29c614[_0x9dbd43('0x30')]=qs['filters'](_[_0x9dbd43('0x28')](_0x5e4fd4[_0x9dbd43('0x14')],_0x216810['filters']),_0x331b73);_0x5e4fd4[_0x9dbd43('0x14')][_0x9dbd43('0x3')]&&(_0x29c614[_0x9dbd43('0x30')]=_[_0x9dbd43('0x27')](_0x29c614['where'],{[Op['or']]:_[_0x9dbd43('0x2d')](_0x331b73,function(_0x23a58f){const _0x2d15e6=_0x9dbd43;if(_0x23a58f['type']!==_0x2d15e6('0x24')){const _0x4c7237={};return _0x4c7237[_0x23a58f['name']]={[Op[_0x2d15e6('0x29')]]:'%'+_0x5e4fd4[_0x2d15e6('0x14')][_0x2d15e6('0x3')]+'%'},_0x4c7237;}})}));_0x29c614=_[_0x9dbd43('0x27')]({},_0x29c614,_0x5e4fd4['options']);const _0x1dbcf7={'where':_0x29c614[_0x9dbd43('0x30')]};return db[_0x9dbd43('0x21')][_0x9dbd43('0x2a')](_0x1dbcf7)[_0x9dbd43('0x2')](function(_0x2e8a77){const _0x4edf33=_0x9dbd43;return _0x5c0f26[_0x4edf33('0x2a')]=_0x2e8a77,_0x5e4fd4['query'][_0x4edf33('0x2f')]&&(_0x29c614[_0x4edf33('0x16')]=[{'all':!![]}]),db['MemberReport'][_0x4edf33('0x23')](_0x29c614);})[_0x9dbd43('0x2')](function(_0x49f078){const _0x5f1cc7=_0x9dbd43;return _0x5c0f26[_0x5f1cc7('0x20')]=_0x49f078,_0x5c0f26;})[_0x9dbd43('0x2')](respondWithFilteredResult(_0x370d26,_0x29c614))[_0x9dbd43('0x19')](handleError(_0x370d26,null));},exports[_0xd0adab('0x2b')]=function(_0x180d36,_0x14d434){const _0xf7c51c=_0xd0adab;let _0x8153a0={'raw':!![],'where':{'id':_0x180d36['params']['id']}};const _0x503804={};return _0x503804[_0xf7c51c('0x17')]=_[_0xf7c51c('0x15')](db[_0xf7c51c('0x21')][_0xf7c51c('0xd')]),_0x503804['query']=_[_0xf7c51c('0x15')](_0x180d36['query']),_0x503804[_0xf7c51c('0x4')]=_[_0xf7c51c('0x5')](_0x503804[_0xf7c51c('0x17')],_0x503804[_0xf7c51c('0x14')]),_0x8153a0[_0xf7c51c('0xc')]=_[_0xf7c51c('0x5')](_0x503804[_0xf7c51c('0x17')],qs[_0xf7c51c('0x26')](_0x180d36[_0xf7c51c('0x14')]['fields'])),_0x8153a0[_0xf7c51c('0xc')]=_0x8153a0[_0xf7c51c('0xc')]['length']?_0x8153a0[_0xf7c51c('0xc')]:_0x503804[_0xf7c51c('0x17')],_0x180d36['query']['includeAll']&&(_0x8153a0['include']=[{'all':!![]}]),_0x8153a0=_[_0xf7c51c('0x27')]({},_0x8153a0,_0x180d36[_0xf7c51c('0x22')]),db['MemberReport'][_0xf7c51c('0xb')](_0x8153a0)[_0xf7c51c('0x2')](handleEntityNotFound(_0x14d434,null))['then'](respondWithResult(_0x14d434,null))['catch'](handleError(_0x14d434,null));},exports[_0xd0adab('0x2e')]=function(_0x21b088,_0x2f9675){const _0x3ce609=_0xd0adab;return db[_0x3ce609('0x21')][_0x3ce609('0x2e')](_0x21b088[_0x3ce609('0x1c')],{})[_0x3ce609('0x2')](respondWithResult(_0x2f9675,0xc9))[_0x3ce609('0x19')](handleError(_0x2f9675,null));},exports['update']=function(_0x46fbbf,_0x341193){const _0x1ea686=_0xd0adab;return _0x46fbbf['body']['id']&&delete _0x46fbbf['body']['id'],db['MemberReport'][_0x1ea686('0xb')]({'where':{'id':_0x46fbbf[_0x1ea686('0x1b')]['id']}})['then'](handleEntityNotFound(_0x341193,null))[_0x1ea686('0x2')](saveUpdates(_0x46fbbf[_0x1ea686('0x1c')],null))['then'](respondWithResult(_0x341193,null))[_0x1ea686('0x19')](handleError(_0x341193,null));},exports[_0xd0adab('0x0')]=function(_0x2b0a55,_0x3dbc6b){const _0xb5aefc=_0xd0adab;return db['MemberReport'][_0xb5aefc('0xb')]({'where':{'id':_0x2b0a55[_0xb5aefc('0x1b')]['id']}})[_0xb5aefc('0x2')](handleEntityNotFound(_0x3dbc6b,null))[_0xb5aefc('0x2')](removeEntity(_0x3dbc6b,null))[_0xb5aefc('0x19')](handleError(_0x3dbc6b,null));},exports[_0xd0adab('0x11')]=function(_0x436c98,_0xafdbc4){const _0x358a35=_0xd0adab;return db['MemberReport'][_0x358a35('0x11')]()['then'](respondWithResult(_0xafdbc4,null))['catch'](handleError(_0xafdbc4,null));}; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.model.js b/server/api/memberReport/memberReport.model.js index 999fa80..1921b1b 100644 --- a/server/api/memberReport/memberReport.model.js +++ b/server/api/memberReport/memberReport.model.js @@ -1 +1 @@ -const a449_0x3c3c=['./memberReport.attributes','define','interface','membername_interface','exports','MemberReport','membername','report_member'];(function(_0x2296ca,_0x3c3c50){const _0x3820a4=function(_0x3d5f78){while(--_0x3d5f78){_0x2296ca['push'](_0x2296ca['shift']());}};_0x3820a4(++_0x3c3c50);}(a449_0x3c3c,0x14d));const a449_0x3820=function(_0x2296ca,_0x3c3c50){_0x2296ca=_0x2296ca-0x0;let _0x3820a4=a449_0x3c3c[_0x2296ca];return _0x3820a4;};const _0x18a50c=a449_0x3820;'use strict';const attributes=require(_0x18a50c('0x3'));module[_0x18a50c('0x7')]=function(_0x3d5f78){const _0x3a9740=_0x18a50c,_0x20effd=_0x3d5f78[_0x3a9740('0x4')](_0x3a9740('0x0'),attributes,{'tableName':_0x3a9740('0x2'),'paranoid':![],'indexes':[{'name':_0x3a9740('0x6'),'fields':[_0x3a9740('0x1'),_0x3a9740('0x5')]}],'timestamps':!![]});return _0x20effd;}; \ No newline at end of file +const a449_0x408a=['membername','exports','MemberReport','./memberReport.attributes','report_member','membername_interface'];(function(_0x240e6c,_0x408a18){const _0x2f9647=function(_0x5917fc){while(--_0x5917fc){_0x240e6c['push'](_0x240e6c['shift']());}};_0x2f9647(++_0x408a18);}(a449_0x408a,0xe3));const a449_0x2f96=function(_0x240e6c,_0x408a18){_0x240e6c=_0x240e6c-0x0;let _0x2f9647=a449_0x408a[_0x240e6c];return _0x2f9647;};const _0x3bb0cf=a449_0x2f96;'use strict';const attributes=require(_0x3bb0cf('0x4'));module[_0x3bb0cf('0x2')]=function(_0x5917fc){const _0x382a79=_0x3bb0cf,_0x391264=_0x5917fc['define'](_0x382a79('0x3'),attributes,{'tableName':_0x382a79('0x5'),'paranoid':![],'indexes':[{'name':_0x382a79('0x0'),'fields':[_0x382a79('0x1'),'interface']}],'timestamps':!![]});return _0x391264;}; \ No newline at end of file diff --git a/server/api/memberReport/memberReport.rpc.js b/server/api/memberReport/memberReport.rpc.js index 2ce6d00..47376d8 100644 --- a/server/api/memberReport/memberReport.rpc.js +++ b/server/api/memberReport/memberReport.rpc.js @@ -1 +1 @@ -const a450_0x36fc=['model','message','limit','body','stringify','where','then','CreateMemberReport','options','findAll','info','raw','error','MemberReport','../../mysqldb','attributes','include','update','GetMemberReport','debug','lodash','UpdateMemberReport','map','create','../../config/logger','catch'];(function(_0x728daa,_0x36fc00){const _0x5dc9d2=function(_0x1249d7){while(--_0x1249d7){_0x728daa['push'](_0x728daa['shift']());}};_0x5dc9d2(++_0x36fc00);}(a450_0x36fc,0xf1));const a450_0x5dc9=function(_0x728daa,_0x36fc00){_0x728daa=_0x728daa-0x0;let _0x5dc9d2=a450_0x36fc[_0x728daa];return _0x5dc9d2;};const _0x155032=a450_0x5dc9;'use strict';const _=require(_0x155032('0xd')),db=require(_0x155032('0x7'))['db'],logger=require(_0x155032('0x11'))('rpc');exports['GetMemberReport']=function(_0x1249d7){const _0x368a5c=this;return new Promise(function(_0x9ac148,_0x2b504a){const _0x1357cf=a450_0x5dc9;return db[_0x1357cf('0x6')][_0x1357cf('0x2')]({'raw':_0x1249d7[_0x1357cf('0x1')]?_0x1249d7[_0x1357cf('0x1')][_0x1357cf('0x4')]===undefined?!![]:![]:!![],'where':_0x1249d7[_0x1357cf('0x1')]?_0x1249d7['options'][_0x1357cf('0x18')]||null:null,'attributes':_0x1249d7[_0x1357cf('0x1')]?_0x1249d7['options'][_0x1357cf('0x8')]||null:null,'limit':_0x1249d7[_0x1357cf('0x1')]?_0x1249d7['options'][_0x1357cf('0x15')]||null:null,'include':_0x1249d7['options']?_0x1249d7['options'][_0x1357cf('0x9')]?_[_0x1357cf('0xf')](_0x1249d7[_0x1357cf('0x1')]['include'],function(_0x2d4904){const _0x130968=_0x1357cf;return{'model':db[_0x2d4904[_0x130968('0x13')]],'as':_0x2d4904['as'],'attributes':_0x2d4904[_0x130968('0x8')],'include':_0x2d4904['include']?_['map'](_0x2d4904[_0x130968('0x9')],function(_0x4503e6){const _0x39c74d=_0x130968;return{'model':db[_0x4503e6[_0x39c74d('0x13')]],'as':_0x4503e6['as'],'attributes':_0x4503e6[_0x39c74d('0x8')],'include':_0x4503e6[_0x39c74d('0x9')]?_['map'](_0x4503e6[_0x39c74d('0x9')],function(_0x532088){const _0x5f4b78=_0x39c74d;return{'model':db[_0x532088[_0x5f4b78('0x13')]],'as':_0x532088['as'],'attributes':_0x532088[_0x5f4b78('0x8')]};}):[]};}):[]};}):[]:[]})[_0x1357cf('0x19')](function(_0x1d9633){const _0x1467f2=_0x1357cf;logger[_0x1467f2('0x3')](_0x1467f2('0xb'),_0x1249d7),logger['debug']('GetMemberReport',_0x1249d7,JSON[_0x1467f2('0x17')](_0x1d9633)),_0x9ac148(_0x1d9633);})['catch'](function(_0x14a929){const _0x8e2aba=_0x1357cf;logger['error'](_0x8e2aba('0xb'),_0x14a929[_0x8e2aba('0x14')],_0x1249d7),_0x2b504a(_0x368a5c[_0x8e2aba('0x5')](0x1f4,_0x14a929['message']));});});},exports[_0x155032('0x0')]=function(_0x17a523){const _0x5ae737=this;return new Promise(function(_0x163c24,_0x27f3e7){const _0x1da552=a450_0x5dc9;return db['MemberReport'][_0x1da552('0x10')](_0x17a523[_0x1da552('0x16')],{'raw':_0x17a523[_0x1da552('0x1')]?_0x17a523['options'][_0x1da552('0x4')]===undefined?!![]:![]:!![]})[_0x1da552('0x19')](function(_0x12011f){const _0x1ef2c7=_0x1da552;logger['info'](_0x1ef2c7('0x0'),_0x17a523),logger[_0x1ef2c7('0xc')](_0x1ef2c7('0x0'),_0x17a523,JSON[_0x1ef2c7('0x17')](_0x12011f)),_0x163c24(_0x12011f);})[_0x1da552('0x12')](function(_0x157a55){const _0x47f289=_0x1da552;logger['error']('CreateMemberReport',_0x157a55[_0x47f289('0x14')],_0x17a523),_0x27f3e7(_0x5ae737['error'](0x1f4,_0x157a55['message']));});});},exports['UpdateMemberReport']=function(_0x133ac6){const _0x588c17=this;return new Promise(function(_0x48043a,_0x397a61){const _0x11483f=a450_0x5dc9;return db[_0x11483f('0x6')][_0x11483f('0xa')](_0x133ac6[_0x11483f('0x16')],{'raw':_0x133ac6[_0x11483f('0x1')]?_0x133ac6[_0x11483f('0x1')][_0x11483f('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x133ac6[_0x11483f('0x1')]?_0x133ac6[_0x11483f('0x1')][_0x11483f('0x18')]||null:null,'attributes':_0x133ac6[_0x11483f('0x1')]?_0x133ac6['options'][_0x11483f('0x8')]||null:null,'limit':_0x133ac6[_0x11483f('0x1')]?_0x133ac6[_0x11483f('0x1')][_0x11483f('0x15')]||null:null})[_0x11483f('0x19')](function(_0x1a90c7){const _0x2fa7c8=_0x11483f;logger[_0x2fa7c8('0x3')](_0x2fa7c8('0xe'),_0x133ac6),logger[_0x2fa7c8('0xc')](_0x2fa7c8('0xe'),_0x133ac6,JSON[_0x2fa7c8('0x17')](_0x1a90c7)),_0x48043a(_0x1a90c7);})[_0x11483f('0x12')](function(_0x404b57){const _0x52c300=_0x11483f;logger[_0x52c300('0x5')](_0x52c300('0xe'),_0x404b57[_0x52c300('0x14')],_0x133ac6),_0x397a61(_0x588c17[_0x52c300('0x5')](0x1f4,_0x404b57[_0x52c300('0x14')]));});});}; \ No newline at end of file +const a450_0x564d=['error','../../mysqldb','MemberReport','GetMemberReport','where','map','lodash','debug','limit','../../config/logger','options','stringify','catch','include','rpc','model','info','then','findAll','UpdateMemberReport','message','body','attributes','create','raw','CreateMemberReport'];(function(_0x3df1f0,_0x564da4){const _0x3ce7e6=function(_0x11670c){while(--_0x11670c){_0x3df1f0['push'](_0x3df1f0['shift']());}};_0x3ce7e6(++_0x564da4);}(a450_0x564d,0x10c));const a450_0x3ce7=function(_0x3df1f0,_0x564da4){_0x3df1f0=_0x3df1f0-0x0;let _0x3ce7e6=a450_0x564d[_0x3df1f0];return _0x3ce7e6;};const _0x33cefb=a450_0x3ce7;'use strict';const _=require(_0x33cefb('0x18')),db=require(_0x33cefb('0x13'))['db'],logger=require(_0x33cefb('0x1'))(_0x33cefb('0x6'));exports[_0x33cefb('0x15')]=function(_0x11670c){const _0xda852a=this;return new Promise(function(_0x373954,_0x3b1bd2){const _0x2b2410=a450_0x3ce7;return db[_0x2b2410('0x14')][_0x2b2410('0xa')]({'raw':_0x11670c['options']?_0x11670c[_0x2b2410('0x2')][_0x2b2410('0x10')]===undefined?!![]:![]:!![],'where':_0x11670c[_0x2b2410('0x2')]?_0x11670c['options'][_0x2b2410('0x16')]||null:null,'attributes':_0x11670c[_0x2b2410('0x2')]?_0x11670c[_0x2b2410('0x2')][_0x2b2410('0xe')]||null:null,'limit':_0x11670c[_0x2b2410('0x2')]?_0x11670c[_0x2b2410('0x2')]['limit']||null:null,'include':_0x11670c[_0x2b2410('0x2')]?_0x11670c[_0x2b2410('0x2')]['include']?_['map'](_0x11670c['options'][_0x2b2410('0x5')],function(_0x110459){const _0x166ce6=_0x2b2410;return{'model':db[_0x110459[_0x166ce6('0x7')]],'as':_0x110459['as'],'attributes':_0x110459[_0x166ce6('0xe')],'include':_0x110459[_0x166ce6('0x5')]?_[_0x166ce6('0x17')](_0x110459['include'],function(_0x585771){const _0x1c94c5=_0x166ce6;return{'model':db[_0x585771[_0x1c94c5('0x7')]],'as':_0x585771['as'],'attributes':_0x585771[_0x1c94c5('0xe')],'include':_0x585771['include']?_[_0x1c94c5('0x17')](_0x585771[_0x1c94c5('0x5')],function(_0x3649d8){const _0x10a25d=_0x1c94c5;return{'model':db[_0x3649d8[_0x10a25d('0x7')]],'as':_0x3649d8['as'],'attributes':_0x3649d8[_0x10a25d('0xe')]};}):[]};}):[]};}):[]:[]})['then'](function(_0xb66117){const _0x3c4b39=_0x2b2410;logger[_0x3c4b39('0x8')](_0x3c4b39('0x15'),_0x11670c),logger[_0x3c4b39('0x19')](_0x3c4b39('0x15'),_0x11670c,JSON[_0x3c4b39('0x3')](_0xb66117)),_0x373954(_0xb66117);})[_0x2b2410('0x4')](function(_0x1c91d8){const _0x36b1d9=_0x2b2410;logger['error'](_0x36b1d9('0x15'),_0x1c91d8[_0x36b1d9('0xc')],_0x11670c),_0x3b1bd2(_0xda852a[_0x36b1d9('0x12')](0x1f4,_0x1c91d8['message']));});});},exports[_0x33cefb('0x11')]=function(_0xe39704){const _0x12af02=this;return new Promise(function(_0x2979d2,_0xbd8cda){const _0x1afaf1=a450_0x3ce7;return db['MemberReport'][_0x1afaf1('0xf')](_0xe39704[_0x1afaf1('0xd')],{'raw':_0xe39704['options']?_0xe39704[_0x1afaf1('0x2')][_0x1afaf1('0x10')]===undefined?!![]:![]:!![]})[_0x1afaf1('0x9')](function(_0x51a162){const _0x118213=_0x1afaf1;logger[_0x118213('0x8')](_0x118213('0x11'),_0xe39704),logger[_0x118213('0x19')](_0x118213('0x11'),_0xe39704,JSON['stringify'](_0x51a162)),_0x2979d2(_0x51a162);})[_0x1afaf1('0x4')](function(_0xd13d21){const _0x30ef32=_0x1afaf1;logger[_0x30ef32('0x12')](_0x30ef32('0x11'),_0xd13d21['message'],_0xe39704),_0xbd8cda(_0x12af02[_0x30ef32('0x12')](0x1f4,_0xd13d21[_0x30ef32('0xc')]));});});},exports['UpdateMemberReport']=function(_0x321346){const _0x3e7bf0=this;return new Promise(function(_0x384b52,_0x565f97){const _0x1846e1=a450_0x3ce7;return db[_0x1846e1('0x14')]['update'](_0x321346[_0x1846e1('0xd')],{'raw':_0x321346[_0x1846e1('0x2')]?_0x321346[_0x1846e1('0x2')][_0x1846e1('0x10')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x321346[_0x1846e1('0x2')]?_0x321346['options'][_0x1846e1('0x16')]||null:null,'attributes':_0x321346['options']?_0x321346[_0x1846e1('0x2')][_0x1846e1('0xe')]||null:null,'limit':_0x321346[_0x1846e1('0x2')]?_0x321346[_0x1846e1('0x2')][_0x1846e1('0x0')]||null:null})[_0x1846e1('0x9')](function(_0x313162){const _0x399fea=_0x1846e1;logger['info']('UpdateMemberReport',_0x321346),logger[_0x399fea('0x19')](_0x399fea('0xb'),_0x321346,JSON[_0x399fea('0x3')](_0x313162)),_0x384b52(_0x313162);})[_0x1846e1('0x4')](function(_0x29bc08){const _0xa7348b=_0x1846e1;logger[_0xa7348b('0x12')](_0xa7348b('0xb'),_0x29bc08['message'],_0x321346),_0x565f97(_0x3e7bf0[_0xa7348b('0x12')](0x1f4,_0x29bc08['message']));});});}; \ No newline at end of file diff --git a/server/api/migration/index.js b/server/api/migration/index.js index f297c19..fadd401 100644 --- a/server/api/migration/index.js +++ b/server/api/migration/index.js @@ -1 +1 @@ -const a451_0x58c7=['express','Router','index','exports','get','./migration.controller'];(function(_0x42f466,_0x58c754){const _0x12d63d=function(_0x13fed2){while(--_0x13fed2){_0x42f466['push'](_0x42f466['shift']());}};_0x12d63d(++_0x58c754);}(a451_0x58c7,0xc0));const a451_0x12d6=function(_0x42f466,_0x58c754){_0x42f466=_0x42f466-0x0;let _0x12d63d=a451_0x58c7[_0x42f466];return _0x12d63d;};const _0x56b421=a451_0x12d6;'use strict';const express=require(_0x56b421('0x0')),router=express[_0x56b421('0x1')](),controller=require(_0x56b421('0x5'));router[_0x56b421('0x4')]('/',controller[_0x56b421('0x2')]),module[_0x56b421('0x3')]=router; \ No newline at end of file +const a451_0x2ebb=['./migration.controller','get','Router'];(function(_0x576fcc,_0x2ebbfa){const _0x4af199=function(_0x4e5b3b){while(--_0x4e5b3b){_0x576fcc['push'](_0x576fcc['shift']());}};_0x4af199(++_0x2ebbfa);}(a451_0x2ebb,0x126));const a451_0x4af1=function(_0x576fcc,_0x2ebbfa){_0x576fcc=_0x576fcc-0x0;let _0x4af199=a451_0x2ebb[_0x576fcc];return _0x4af199;};const _0x1d42a0=a451_0x4af1;'use strict';const express=require('express'),router=express[_0x1d42a0('0x2')](),controller=require(_0x1d42a0('0x0'));router[_0x1d42a0('0x1')]('/',controller['index']),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 6fa2c8d..ca08e5d 100644 --- a/server/api/migration/migration.attributes.js +++ b/server/api/migration/migration.attributes.js @@ -1 +1 @@ -const a452_0x170c=['STRING','exports','version'];(function(_0x3c3b31,_0x170c30){const _0x47b8a0=function(_0x4dd5b9){while(--_0x4dd5b9){_0x3c3b31['push'](_0x3c3b31['shift']());}};_0x47b8a0(++_0x170c30);}(a452_0x170c,0x1a5));const a452_0x47b8=function(_0x3c3b31,_0x170c30){_0x3c3b31=_0x3c3b31-0x0;let _0x47b8a0=a452_0x170c[_0x3c3b31];return _0x47b8a0;};const _0x4356c5=a452_0x47b8;'use strict';const Sequelize=require('sequelize');module[_0x4356c5('0x0')]={'version':{'type':Sequelize[_0x4356c5('0x2')],'unique':_0x4356c5('0x1')}}; \ No newline at end of file +const a452_0x51b2=['version','STRING','sequelize'];(function(_0x5547bc,_0x51b27c){const _0x44e883=function(_0xbf7f39){while(--_0xbf7f39){_0x5547bc['push'](_0x5547bc['shift']());}};_0x44e883(++_0x51b27c);}(a452_0x51b2,0x10b));const a452_0x44e8=function(_0x5547bc,_0x51b27c){_0x5547bc=_0x5547bc-0x0;let _0x44e883=a452_0x51b2[_0x5547bc];return _0x44e883;};const _0x3b1699=a452_0x44e8;'use strict';const Sequelize=require(_0x3b1699('0x2'));module['exports']={'version':{'type':Sequelize[_0x3b1699('0x1')],'unique':_0x3b1699('0x0')}}; \ No newline at end of file diff --git a/server/api/migration/migration.controller.js b/server/api/migration/migration.controller.js index cab6bbb..a5ef636 100644 --- a/server/api/migration/migration.controller.js +++ b/server/api/migration/migration.controller.js @@ -1 +1 @@ -const a453_0x2ee6=['filter','like','model','../../components/parsers/qs','limit','send','fields','Migration','api','error','json','includeAll','filters','attributes','undefined','../../mysqldb','name','length','fieldName','lodash','count','index','then','set','findAll','where','include','merge','nolimit','sort','sequelize','intersection','key','Content-Range','options','query','map','catch','status','offset'];(function(_0x4d35c8,_0x2ee6aa){const _0xb0440a=function(_0x40da14){while(--_0x40da14){_0x4d35c8['push'](_0x4d35c8['shift']());}};_0xb0440a(++_0x2ee6aa);}(a453_0x2ee6,0xa9));const a453_0xb044=function(_0x4d35c8,_0x2ee6aa){_0x4d35c8=_0x4d35c8-0x0;let _0xb0440a=a453_0x2ee6[_0x4d35c8];return _0xb0440a;};const _0xe6a954=a453_0xb044;'use strict';const _=require(_0xe6a954('0xa')),qs=require(_0xe6a954('0x22')),logger=require('../../config/logger')(_0xe6a954('0x27')),db=require(_0xe6a954('0x6'))['db'],{Op}=require(_0xe6a954('0x15'));function respondWithFilteredResult(_0x40da14,_0x5217ce){return function(_0x556132){const _0x28604e=a453_0xb044;if(_0x556132){const _0x333c20=_0x556132[_0x28604e('0xb')],_0x1b98d3=_0x5217ce['offset'];let _0x23fbea=_0x5217ce[_0x28604e('0x1e')]+_0x5217ce[_0x28604e('0x23')],_0x52bdfb;return _0x23fbea>=_0x333c20?(_0x23fbea=_0x333c20,_0x52bdfb=0xc8):_0x52bdfb=0xce,_0x40da14[_0x28604e('0x1d')](_0x52bdfb),_0x40da14[_0x28604e('0xe')](_0x28604e('0x18'),_0x1b98d3+'-'+_0x23fbea+'/'+_0x333c20)[_0x28604e('0x1')](_0x556132);}return null;};}function handleError(_0x4a7f5c,_0x36256b){return _0x36256b=_0x36256b||0x1f4,function(_0x269ca9){const _0x3a8ea1=a453_0xb044;logger[_0x3a8ea1('0x0')](_0x269ca9['stack']),_0x269ca9[_0x3a8ea1('0x7')]&&delete _0x269ca9['name'],_0x4a7f5c[_0x3a8ea1('0x1d')](_0x36256b)[_0x3a8ea1('0x24')](_0x269ca9);};}exports[_0xe6a954('0xc')]=function(_0x5658a0,_0x1eab10){const _0x39754e=_0xe6a954;let _0x181e0e={};const _0x5dd38f={},_0x222a33={'count':0x0,'rows':[]},_0x28b87f=_[_0x39754e('0x1b')](db[_0x39754e('0x26')]['rawAttributes'],function(_0x29a156){const _0x1c8d9e=_0x39754e;return{'name':_0x29a156[_0x1c8d9e('0x9')],'type':_0x29a156['type'][_0x1c8d9e('0x17')]};});_0x5dd38f[_0x39754e('0x21')]=_[_0x39754e('0x1b')](_0x28b87f,'name'),_0x5dd38f[_0x39754e('0x1a')]=_['keys'](_0x5658a0['query']),_0x5dd38f['filters']=_[_0x39754e('0x16')](_0x5dd38f[_0x39754e('0x21')],_0x5dd38f['query']),_0x181e0e[_0x39754e('0x4')]=_[_0x39754e('0x16')](_0x5dd38f[_0x39754e('0x21')],qs[_0x39754e('0x25')](_0x5658a0[_0x39754e('0x1a')][_0x39754e('0x25')])),_0x181e0e[_0x39754e('0x4')]=_0x181e0e[_0x39754e('0x4')][_0x39754e('0x8')]?_0x181e0e[_0x39754e('0x4')]:_0x5dd38f[_0x39754e('0x21')];typeof _0x5658a0[_0x39754e('0x1a')][_0x39754e('0x13')]===_0x39754e('0x5')&&(_0x181e0e['limit']=qs['limit'](_0x5658a0[_0x39754e('0x1a')][_0x39754e('0x23')]),_0x181e0e['offset']=qs['offset'](_0x5658a0[_0x39754e('0x1a')][_0x39754e('0x1e')]));_0x181e0e['order']=qs[_0x39754e('0x14')](_0x5658a0[_0x39754e('0x1a')][_0x39754e('0x14')]),_0x181e0e['where']=qs[_0x39754e('0x3')](_['pick'](_0x5658a0[_0x39754e('0x1a')],_0x5dd38f[_0x39754e('0x3')]),_0x28b87f);_0x5658a0['query'][_0x39754e('0x1f')]&&(_0x181e0e[_0x39754e('0x10')]=_[_0x39754e('0x12')](_0x181e0e[_0x39754e('0x10')],{[Op['or']]:_['map'](_0x28b87f,function(_0x2493a0){const _0x5ccf2f=_0x39754e;if(_0x2493a0['type']!=='VIRTUAL'){const _0x43b8a1={};return _0x43b8a1[_0x2493a0[_0x5ccf2f('0x7')]]={[Op[_0x5ccf2f('0x20')]]:'%'+_0x5658a0[_0x5ccf2f('0x1a')][_0x5ccf2f('0x1f')]+'%'},_0x43b8a1;}})}));_0x181e0e=_['merge']({},_0x181e0e,_0x5658a0[_0x39754e('0x19')]);const _0x3d2cb7={'where':_0x181e0e['where']};return db[_0x39754e('0x26')][_0x39754e('0xb')](_0x3d2cb7)['then'](function(_0x38b116){const _0x3a7116=_0x39754e;return _0x222a33['count']=_0x38b116,_0x5658a0[_0x3a7116('0x1a')][_0x3a7116('0x2')]&&(_0x181e0e[_0x3a7116('0x11')]=[{'all':!![]}]),db['Migration'][_0x3a7116('0xf')](_0x181e0e);})[_0x39754e('0xd')](function(_0x46e5fb){return _0x222a33['rows']=_0x46e5fb,_0x222a33;})[_0x39754e('0xd')](respondWithFilteredResult(_0x1eab10,_0x181e0e))[_0x39754e('0x1c')](handleError(_0x1eab10,null));}; \ No newline at end of file +const a453_0x29ab=['merge','where','includeAll','findAll','count','Migration','set','type','limit','intersection','sequelize','api','pick','stack','map','name','keys','json','../../components/parsers/qs','lodash','catch','fields','filter','VIRTUAL','fieldName','index','query','rawAttributes','filters','model','status','options','attributes','sort','rows','nolimit','undefined','offset','then','send','Content-Range','key','../../config/logger'];(function(_0x4e6dee,_0x29ab2b){const _0x3b6626=function(_0x4f76ed){while(--_0x4f76ed){_0x4e6dee['push'](_0x4e6dee['shift']());}};_0x3b6626(++_0x29ab2b);}(a453_0x29ab,0x193));const a453_0x3b66=function(_0x4e6dee,_0x29ab2b){_0x4e6dee=_0x4e6dee-0x0;let _0x3b6626=a453_0x29ab[_0x4e6dee];return _0x3b6626;};const _0x1b7d4d=a453_0x3b66;'use strict';const _=require(_0x1b7d4d('0x3')),qs=require(_0x1b7d4d('0x2')),logger=require(_0x1b7d4d('0x1a'))(_0x1b7d4d('0x26')),db=require('../../mysqldb')['db'],{Op}=require(_0x1b7d4d('0x25'));function respondWithFilteredResult(_0x4f76ed,_0x5f047b){return function(_0x59d06a){const _0x24c98b=a453_0x3b66;if(_0x59d06a){const _0x2ca909=_0x59d06a['count'],_0x427dc8=_0x5f047b[_0x24c98b('0x15')];let _0x56e75b=_0x5f047b[_0x24c98b('0x15')]+_0x5f047b[_0x24c98b('0x23')],_0x550abe;return _0x56e75b>=_0x2ca909?(_0x56e75b=_0x2ca909,_0x550abe=0xc8):_0x550abe=0xce,_0x4f76ed[_0x24c98b('0xe')](_0x550abe),_0x4f76ed[_0x24c98b('0x21')](_0x24c98b('0x18'),_0x427dc8+'-'+_0x56e75b+'/'+_0x2ca909)[_0x24c98b('0x1')](_0x59d06a);}return null;};}function handleError(_0x53f6aa,_0x1bfbbe){return _0x1bfbbe=_0x1bfbbe||0x1f4,function(_0x53e56f){const _0x10abca=a453_0x3b66;logger['error'](_0x53e56f[_0x10abca('0x28')]),_0x53e56f[_0x10abca('0x2a')]&&delete _0x53e56f[_0x10abca('0x2a')],_0x53f6aa[_0x10abca('0xe')](_0x1bfbbe)[_0x10abca('0x17')](_0x53e56f);};}exports[_0x1b7d4d('0x9')]=function(_0x39ae5f,_0x3be8ae){const _0x20c31d=_0x1b7d4d;let _0x2ad7a9={};const _0x32d413={},_0x2f1b1b={'count':0x0,'rows':[]},_0x372e68=_['map'](db['Migration'][_0x20c31d('0xb')],function(_0x4de990){const _0x387baa=_0x20c31d;return{'name':_0x4de990[_0x387baa('0x8')],'type':_0x4de990[_0x387baa('0x22')][_0x387baa('0x19')]};});_0x32d413[_0x20c31d('0xd')]=_[_0x20c31d('0x29')](_0x372e68,_0x20c31d('0x2a')),_0x32d413['query']=_[_0x20c31d('0x0')](_0x39ae5f[_0x20c31d('0xa')]),_0x32d413[_0x20c31d('0xc')]=_[_0x20c31d('0x24')](_0x32d413[_0x20c31d('0xd')],_0x32d413[_0x20c31d('0xa')]),_0x2ad7a9[_0x20c31d('0x10')]=_[_0x20c31d('0x24')](_0x32d413['model'],qs[_0x20c31d('0x5')](_0x39ae5f[_0x20c31d('0xa')][_0x20c31d('0x5')])),_0x2ad7a9[_0x20c31d('0x10')]=_0x2ad7a9['attributes']['length']?_0x2ad7a9[_0x20c31d('0x10')]:_0x32d413[_0x20c31d('0xd')];typeof _0x39ae5f[_0x20c31d('0xa')][_0x20c31d('0x13')]===_0x20c31d('0x14')&&(_0x2ad7a9['limit']=qs[_0x20c31d('0x23')](_0x39ae5f['query'][_0x20c31d('0x23')]),_0x2ad7a9['offset']=qs['offset'](_0x39ae5f[_0x20c31d('0xa')][_0x20c31d('0x15')]));_0x2ad7a9['order']=qs[_0x20c31d('0x11')](_0x39ae5f['query'][_0x20c31d('0x11')]),_0x2ad7a9['where']=qs[_0x20c31d('0xc')](_[_0x20c31d('0x27')](_0x39ae5f['query'],_0x32d413[_0x20c31d('0xc')]),_0x372e68);_0x39ae5f[_0x20c31d('0xa')][_0x20c31d('0x6')]&&(_0x2ad7a9[_0x20c31d('0x1c')]=_[_0x20c31d('0x1b')](_0x2ad7a9['where'],{[Op['or']]:_['map'](_0x372e68,function(_0x774b9){const _0x376872=_0x20c31d;if(_0x774b9[_0x376872('0x22')]!==_0x376872('0x7')){const _0x11a781={};return _0x11a781[_0x774b9[_0x376872('0x2a')]]={[Op['like']]:'%'+_0x39ae5f[_0x376872('0xa')]['filter']+'%'},_0x11a781;}})}));_0x2ad7a9=_['merge']({},_0x2ad7a9,_0x39ae5f[_0x20c31d('0xf')]);const _0x52a356={'where':_0x2ad7a9[_0x20c31d('0x1c')]};return db[_0x20c31d('0x20')]['count'](_0x52a356)[_0x20c31d('0x16')](function(_0x1768bb){const _0x760054=_0x20c31d;return _0x2f1b1b[_0x760054('0x1f')]=_0x1768bb,_0x39ae5f['query'][_0x760054('0x1d')]&&(_0x2ad7a9['include']=[{'all':!![]}]),db[_0x760054('0x20')][_0x760054('0x1e')](_0x2ad7a9);})[_0x20c31d('0x16')](function(_0x21bf6f){const _0x1f211e=_0x20c31d;return _0x2f1b1b[_0x1f211e('0x12')]=_0x21bf6f,_0x2f1b1b;})[_0x20c31d('0x16')](respondWithFilteredResult(_0x3be8ae,_0x2ad7a9))[_0x20c31d('0x4')](handleError(_0x3be8ae,null));}; \ No newline at end of file diff --git a/server/api/migration/migration.model.js b/server/api/migration/migration.model.js index 460018a..62191ed 100644 --- a/server/api/migration/migration.model.js +++ b/server/api/migration/migration.model.js @@ -1 +1 @@ -const a454_0x383c=['Migration','exports','migrations'];(function(_0x17fca2,_0x383c60){const _0xba6dc2=function(_0x5b1d3c){while(--_0x5b1d3c){_0x17fca2['push'](_0x17fca2['shift']());}};_0xba6dc2(++_0x383c60);}(a454_0x383c,0x77));const a454_0xba6d=function(_0x17fca2,_0x383c60){_0x17fca2=_0x17fca2-0x0;let _0xba6dc2=a454_0x383c[_0x17fca2];return _0xba6dc2;};const _0xdd5005=a454_0xba6d;'use strict';const attributes=require('./migration.attributes');module[_0xdd5005('0x2')]=function(_0x5b1d3c){const _0x78e8a0=_0xdd5005,_0x561529=_0x5b1d3c['define'](_0x78e8a0('0x1'),attributes,{'tableName':_0x78e8a0('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x561529;}; \ No newline at end of file +const a454_0x4ee6=['define','./migration.attributes','exports','migrations','Migration'];(function(_0x51aaab,_0x4ee61b){const _0x58bb54=function(_0x50584d){while(--_0x50584d){_0x51aaab['push'](_0x51aaab['shift']());}};_0x58bb54(++_0x4ee61b);}(a454_0x4ee6,0xef));const a454_0x58bb=function(_0x51aaab,_0x4ee61b){_0x51aaab=_0x51aaab-0x0;let _0x58bb54=a454_0x4ee6[_0x51aaab];return _0x58bb54;};const _0x41143b=a454_0x58bb;'use strict';const attributes=require(_0x41143b('0x2'));module[_0x41143b('0x3')]=function(_0x50584d){const _0x4b2e88=_0x41143b,_0x140ccd=_0x50584d[_0x4b2e88('0x1')](_0x4b2e88('0x0'),attributes,{'tableName':_0x4b2e88('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x140ccd;}; \ No newline at end of file diff --git a/server/api/network/index.js b/server/api/network/index.js index 849a054..ea7f68b 100644 --- a/server/api/network/index.js +++ b/server/api/network/index.js @@ -1 +1 @@ -const a455_0x290b=['./network.controller','show','post','isAuthenticated','create','exports','get','update','/:id','Router'];(function(_0x5dbc7b,_0x290ba2){const _0x2d36c9=function(_0x4e51f5){while(--_0x4e51f5){_0x5dbc7b['push'](_0x5dbc7b['shift']());}};_0x2d36c9(++_0x290ba2);}(a455_0x290b,0x1b2));const a455_0x2d36=function(_0x5dbc7b,_0x290ba2){_0x5dbc7b=_0x5dbc7b-0x0;let _0x2d36c9=a455_0x290b[_0x5dbc7b];return _0x2d36c9;};const _0x551256=a455_0x2d36;'use strict';const express=require('express'),router=express[_0x551256('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x551256('0x6'));router[_0x551256('0x2')]('/',auth[_0x551256('0x9')](),controller['index']),router[_0x551256('0x2')](_0x551256('0x4'),auth[_0x551256('0x9')](),controller[_0x551256('0x7')]),router[_0x551256('0x8')]('/',auth[_0x551256('0x9')](),controller[_0x551256('0x0')]),router['put'](_0x551256('0x4'),auth[_0x551256('0x9')](),controller[_0x551256('0x3')]),router['delete']('/:id',auth[_0x551256('0x9')](),controller['destroy']),module[_0x551256('0x1')]=router; \ No newline at end of file +const a455_0x7d06=['../../components/auth/service','delete','express','exports','index','/:id','./network.controller','put','get','isAuthenticated','Router','update'];(function(_0x3c9d76,_0x7d0676){const _0x16c2a7=function(_0x1952fb){while(--_0x1952fb){_0x3c9d76['push'](_0x3c9d76['shift']());}};_0x16c2a7(++_0x7d0676);}(a455_0x7d06,0x1a0));const a455_0x16c2=function(_0x3c9d76,_0x7d0676){_0x3c9d76=_0x3c9d76-0x0;let _0x16c2a7=a455_0x7d06[_0x3c9d76];return _0x16c2a7;};const _0x2ecbd9=a455_0x16c2;'use strict';const express=require(_0x2ecbd9('0x6')),router=express[_0x2ecbd9('0x2')](),auth=require(_0x2ecbd9('0x4')),controller=require(_0x2ecbd9('0xa'));router['get']('/',auth['isAuthenticated'](),controller[_0x2ecbd9('0x8')]),router[_0x2ecbd9('0x0')](_0x2ecbd9('0x9'),auth[_0x2ecbd9('0x1')](),controller['show']),router['post']('/',auth[_0x2ecbd9('0x1')](),controller['create']),router[_0x2ecbd9('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x2ecbd9('0x3')]),router[_0x2ecbd9('0x5')](_0x2ecbd9('0x9'),auth[_0x2ecbd9('0x1')](),controller['destroy']),module[_0x2ecbd9('0x7')]=router; \ No newline at end of file diff --git a/server/api/network/network.attributes.js b/server/api/network/network.attributes.js index 1ed3b63..df2afa2 100644 --- a/server/api/network/network.attributes.js +++ b/server/api/network/network.attributes.js @@ -1 +1 @@ -const a456_0x1531=['ENUM','localnet','stun','turn','sequelize','exports','STRING'];(function(_0x5d0ec7,_0x1531ef){const _0x46f891=function(_0x903ed2){while(--_0x903ed2){_0x5d0ec7['push'](_0x5d0ec7['shift']());}};_0x46f891(++_0x1531ef);}(a456_0x1531,0x1c9));const a456_0x46f8=function(_0x5d0ec7,_0x1531ef){_0x5d0ec7=_0x5d0ec7-0x0;let _0x46f891=a456_0x1531[_0x5d0ec7];return _0x46f891;};const _0x3fcf93=a456_0x46f8;'use strict';const Sequelize=require(_0x3fcf93('0x2'));module[_0x3fcf93('0x3')]={'type':{'type':Sequelize[_0x3fcf93('0x5')](_0x3fcf93('0x6'),'externip',_0x3fcf93('0x0'),_0x3fcf93('0x1'))},'value':{'type':Sequelize[_0x3fcf93('0x4')]},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x3fcf93('0x4')]}}; \ No newline at end of file +const a456_0x24fc=['turn','ENUM','exports','stun','externip','STRING','sequelize'];(function(_0x430001,_0x24fcb5){const _0x4387b0=function(_0x5e78d8){while(--_0x5e78d8){_0x430001['push'](_0x430001['shift']());}};_0x4387b0(++_0x24fcb5);}(a456_0x24fc,0x149));const a456_0x4387=function(_0x430001,_0x24fcb5){_0x430001=_0x430001-0x0;let _0x4387b0=a456_0x24fc[_0x430001];return _0x4387b0;};const _0x25aac4=a456_0x4387;'use strict';const Sequelize=require(_0x25aac4('0x6'));module[_0x25aac4('0x2')]={'type':{'type':Sequelize[_0x25aac4('0x1')]('localnet',_0x25aac4('0x4'),_0x25aac4('0x3'),_0x25aac4('0x0'))},'value':{'type':Sequelize['STRING']},'username':{'type':Sequelize[_0x25aac4('0x5')]},'password':{'type':Sequelize[_0x25aac4('0x5')]}}; \ No newline at end of file diff --git a/server/api/network/network.controller.js b/server/api/network/network.controller.js index fd5801e..986735e 100644 --- a/server/api/network/network.controller.js +++ b/server/api/network/network.controller.js @@ -1 +1 @@ -const a457_0x5ecb=['server/files/templates/turn_multiple.ejs','send','where','request','rows','fields','then','files/templates/stun_multiple.ejs','/etc/asterisk/stun_xcally.conf','limit','offset','/etc/asterisk/sip_xcally_%s.conf','Network,\x20%s,\x20%s','writeFileSync','TURN','info','end','error','destroy','../../mysqldb','chan_sip.so','toLowerCase','VIRTUAL','model','name','/etc/asterisk/turn_xcally.conf','api','query','Network','intersection','create','lodash','Reload','rawAttributes','STUN','readFileSync','stringify','json','render','type','merge','like','request\x20sent','keys','map','sort','attributes','catch','http','message','includeAll','filters','fieldName','../../components/parsers/qs','root','res_stun_monitor.so','format','join','utf8','toUpperCase','show','findOne','key','code','server/files/templates/stun_multiple.ejs','findAll','path','filter','count','options','result','order','Content-Range','set','transaction','include','sequelize','files/templates/turn_multiple.ejs','ejs','status','client','jayson/promise','pick','length','params','files/templates/network.ejs','update','body','sendStatus','stack'];(function(_0x25d32d,_0x5ecbfa){const _0x27faab=function(_0x3a008e){while(--_0x3a008e){_0x25d32d['push'](_0x25d32d['shift']());}};_0x27faab(++_0x5ecbfa);}(a457_0x5ecb,0x172));const a457_0x27fa=function(_0x25d32d,_0x5ecbfa){_0x25d32d=_0x25d32d-0x0;let _0x27faab=a457_0x5ecb[_0x25d32d];return _0x27faab;};const _0x11040a=a457_0x27fa;'use strict';const util=require('util'),path=require(_0x11040a('0x38')),ejs=require(_0x11040a('0x44')),fs=require('fs'),_=require(_0x11040a('0x15')),qs=require(_0x11040a('0x2b')),logger=require('../../config/logger')(_0x11040a('0x10')),config=require('../../config/environment'),db=require(_0x11040a('0x9'))['db'],{Op}=require(_0x11040a('0x42')),jayson=require(_0x11040a('0x47')),client=jayson[_0x11040a('0x46')][_0x11040a('0x26')]({'port':0x232a});function respondWithRpcPromise(_0x3a008e,_0x527777,_0x3d7ffd,_0x54116d){return new Promise(function(_0x51050c,_0x5be74c){const _0x1d8da5=a457_0x27fa,_0x5592e3=_0x54116d||client;return _0x5592e3[_0x1d8da5('0x53')](_0x3a008e,_0x3d7ffd)[_0x1d8da5('0x56')](function(_0x112757){const _0x4f30ab=_0x1d8da5;logger[_0x4f30ab('0x5')](_0x4f30ab('0x2'),_0x527777,_0x4f30ab('0x20')),logger['debug']('Network,\x20%s,\x20%s,\x20%s',_0x527777,_0x4f30ab('0x20'),JSON[_0x4f30ab('0x1a')](_0x112757));if(_0x112757[_0x4f30ab('0x7')]){if(_0x112757[_0x4f30ab('0x7')][_0x4f30ab('0x35')]===0x1f4)return logger[_0x4f30ab('0x7')]('Network,\x20%s,\x20%s',_0x527777,_0x112757['error']['message']),_0x5be74c(_0x112757['error'][_0x4f30ab('0x27')]);return logger[_0x4f30ab('0x7')](_0x4f30ab('0x2'),_0x527777,_0x112757[_0x4f30ab('0x7')][_0x4f30ab('0x27')]),_0x51050c(_0x112757['error']['message']);}else logger['info'](_0x4f30ab('0x2'),_0x527777,_0x4f30ab('0x20')),_0x51050c(_0x112757[_0x4f30ab('0x3c')][_0x4f30ab('0x27')]);})[_0x1d8da5('0x25')](function(_0x29393f){const _0x38c021=_0x1d8da5;logger[_0x38c021('0x7')](_0x38c021('0x2'),_0x527777,_0x29393f),_0x5be74c(_0x29393f);});});}function respondWithResult(_0x960815,_0x5695dc){return _0x5695dc=_0x5695dc||0xc8,function(_0x3134a6){const _0x3c03c5=a457_0x27fa;if(_0x3134a6)return _0x960815[_0x3c03c5('0x45')](_0x5695dc)[_0x3c03c5('0x1b')](_0x3134a6);};}function respondWithFilteredResult(_0xef8be9,_0x288fc1){return function(_0x14cf32){const _0x455663=a457_0x27fa;if(_0x14cf32){const _0x1dbd62=_0x14cf32[_0x455663('0x3a')],_0x3704eb=_0x288fc1['offset'];let _0x1b4d04=_0x288fc1[_0x455663('0x0')]+_0x288fc1[_0x455663('0x59')],_0x39c921;return _0x1b4d04>=_0x1dbd62?(_0x1b4d04=_0x1dbd62,_0x39c921=0xc8):_0x39c921=0xce,_0xef8be9[_0x455663('0x45')](_0x39c921),_0xef8be9[_0x455663('0x3f')](_0x455663('0x3e'),_0x3704eb+'-'+_0x1b4d04+'/'+_0x1dbd62)[_0x455663('0x1b')](_0x14cf32);}return null;};}function saveUpdates(_0x47c52c){return function(_0x4f1055){const _0x270555=a457_0x27fa;if(_0x4f1055)return _0x4f1055[_0x270555('0x4c')](_0x47c52c)[_0x270555('0x56')](function(_0xd320f4){return _0xd320f4;});return null;};}function removeEntity(_0x2e5237){return function(_0xf4f417){const _0x401791=a457_0x27fa;if(_0xf4f417)return _0xf4f417[_0x401791('0x8')]()[_0x401791('0x56')](function(){const _0x337388=_0x401791;_0x2e5237['status'](0xcc)[_0x337388('0x6')]();});};}function handleEntityNotFound(_0x550f67){return function(_0x42bd76){const _0x5bbd48=a457_0x27fa;return!_0x42bd76&&_0x550f67[_0x5bbd48('0x4e')](0x194),_0x42bd76;};}function handleError(_0x41de05,_0x2de022){return _0x2de022=_0x2de022||0x1f4,function(_0x2dec97){const _0x2db86b=a457_0x27fa;logger[_0x2db86b('0x7')](_0x2dec97[_0x2db86b('0x4f')]),_0x2dec97[_0x2db86b('0xe')]&&delete _0x2dec97[_0x2db86b('0xe')],_0x41de05[_0x2db86b('0x45')](_0x2de022)[_0x2db86b('0x51')](_0x2dec97);};}exports['index']=function(_0x4987e7,_0x4516c3){const _0x285b7b=_0x11040a;let _0x581723={};const _0x2bfc61={},_0x441470={'count':0x0,'rows':[]},_0xb8d989=_[_0x285b7b('0x22')](db[_0x285b7b('0x12')]['rawAttributes'],function(_0x3e5eee){const _0x53197a=_0x285b7b;return{'name':_0x3e5eee[_0x53197a('0x2a')],'type':_0x3e5eee['type'][_0x53197a('0x34')]};});_0x2bfc61[_0x285b7b('0xd')]=_['map'](_0xb8d989,_0x285b7b('0xe')),_0x2bfc61[_0x285b7b('0x11')]=_[_0x285b7b('0x21')](_0x4987e7[_0x285b7b('0x11')]),_0x2bfc61[_0x285b7b('0x29')]=_[_0x285b7b('0x13')](_0x2bfc61[_0x285b7b('0xd')],_0x2bfc61[_0x285b7b('0x11')]),_0x581723['attributes']=_[_0x285b7b('0x13')](_0x2bfc61[_0x285b7b('0xd')],qs[_0x285b7b('0x55')](_0x4987e7[_0x285b7b('0x11')]['fields'])),_0x581723['attributes']=_0x581723[_0x285b7b('0x24')][_0x285b7b('0x49')]?_0x581723['attributes']:_0x2bfc61['model'];typeof _0x4987e7[_0x285b7b('0x11')]['nolimit']==='undefined'&&(_0x581723['limit']=qs[_0x285b7b('0x59')](_0x4987e7['query'][_0x285b7b('0x59')]),_0x581723[_0x285b7b('0x0')]=qs[_0x285b7b('0x0')](_0x4987e7['query']['offset']));_0x581723[_0x285b7b('0x3d')]=qs[_0x285b7b('0x23')](_0x4987e7['query'][_0x285b7b('0x23')]),_0x581723[_0x285b7b('0x52')]=qs[_0x285b7b('0x29')](_[_0x285b7b('0x48')](_0x4987e7[_0x285b7b('0x11')],_0x2bfc61[_0x285b7b('0x29')]),_0xb8d989);_0x4987e7[_0x285b7b('0x11')][_0x285b7b('0x39')]&&(_0x581723[_0x285b7b('0x52')]=_[_0x285b7b('0x1e')](_0x581723[_0x285b7b('0x52')],{[Op['or']]:_[_0x285b7b('0x22')](_0xb8d989,function(_0x131147){const _0x151234=_0x285b7b;if(_0x131147[_0x151234('0x1d')]!==_0x151234('0xc')){const _0x27ab9b={};return _0x27ab9b[_0x131147[_0x151234('0xe')]]={[Op[_0x151234('0x1f')]]:'%'+_0x4987e7[_0x151234('0x11')][_0x151234('0x39')]+'%'},_0x27ab9b;}})}));_0x581723=_[_0x285b7b('0x1e')]({},_0x581723,_0x4987e7['options']);const _0x5264a4={'where':_0x581723[_0x285b7b('0x52')]};return db[_0x285b7b('0x12')]['count'](_0x5264a4)[_0x285b7b('0x56')](function(_0x3b35b2){const _0x241df1=_0x285b7b;return _0x441470[_0x241df1('0x3a')]=_0x3b35b2,_0x4987e7[_0x241df1('0x11')][_0x241df1('0x28')]&&(_0x581723[_0x241df1('0x41')]=[{'all':!![]}]),db['Network']['findAll'](_0x581723);})[_0x285b7b('0x56')](function(_0xeabf78){const _0x1e9b17=_0x285b7b;return _0x441470[_0x1e9b17('0x54')]=_0xeabf78,_0x441470;})[_0x285b7b('0x56')](respondWithFilteredResult(_0x4516c3,_0x581723))[_0x285b7b('0x25')](handleError(_0x4516c3,null));},exports[_0x11040a('0x32')]=function(_0x3b7f14,_0x3be593){const _0x459266=_0x11040a;let _0x5d13e7={'raw':!![],'where':{'id':_0x3b7f14[_0x459266('0x4a')]['id']}};const _0xf1195d={};return _0xf1195d[_0x459266('0xd')]=_[_0x459266('0x21')](db['Network'][_0x459266('0x17')]),_0xf1195d[_0x459266('0x11')]=_[_0x459266('0x21')](_0x3b7f14['query']),_0xf1195d['filters']=_[_0x459266('0x13')](_0xf1195d[_0x459266('0xd')],_0xf1195d[_0x459266('0x11')]),_0x5d13e7[_0x459266('0x24')]=_[_0x459266('0x13')](_0xf1195d[_0x459266('0xd')],qs[_0x459266('0x55')](_0x3b7f14[_0x459266('0x11')][_0x459266('0x55')])),_0x5d13e7['attributes']=_0x5d13e7[_0x459266('0x24')][_0x459266('0x49')]?_0x5d13e7[_0x459266('0x24')]:_0xf1195d['model'],_0x3b7f14['query'][_0x459266('0x28')]&&(_0x5d13e7[_0x459266('0x41')]=[{'all':!![]}]),_0x5d13e7=_[_0x459266('0x1e')]({},_0x5d13e7,_0x3b7f14[_0x459266('0x3b')]),db[_0x459266('0x12')][_0x459266('0x33')](_0x5d13e7)[_0x459266('0x56')](handleEntityNotFound(_0x3be593,null))[_0x459266('0x56')](respondWithResult(_0x3be593,null))[_0x459266('0x25')](handleError(_0x3be593,null));},exports[_0x11040a('0x14')]=function(_0x523809,_0x85444b){const _0x4c1b41=_0x11040a;let _0x2bc4e2;return db[_0x4c1b41('0x42')]['transaction'](function(){const _0x2c066c=_0x4c1b41;return db['Network']['create'](_0x523809[_0x2c066c('0x4d')],{'raw':!![]})[_0x2c066c('0x56')](function(_0x17b075){const _0x1562f0=_0x2c066c;return _0x2bc4e2=_0x17b075,db[_0x1562f0('0x12')][_0x1562f0('0x37')]({'where':{'type':_0x523809[_0x1562f0('0x4d')][_0x1562f0('0x1d')]},'raw':!![]});})[_0x2c066c('0x56')](function(_0x1acb96){const _0x5c1fbb=_0x2c066c;if(_0x2bc4e2[_0x5c1fbb('0x1d')][_0x5c1fbb('0x31')]()=='STUN'){const _0x2256a5=fs[_0x5c1fbb('0x19')](path[_0x5c1fbb('0x2f')](config[_0x5c1fbb('0x2c')],'server/files/templates/stun_multiple.ejs'),_0x5c1fbb('0x30')),_0x400c4e=ejs[_0x5c1fbb('0x1c')](_0x2256a5,{'networks':_0x1acb96||[]});return fs[_0x5c1fbb('0x3')](_0x5c1fbb('0x58'),_0x400c4e),respondWithRpcPromise(_0x5c1fbb('0x16'),'create',{'module':_0x5c1fbb('0x2d')});}else{if(_0x2bc4e2['type'][_0x5c1fbb('0x31')]()==_0x5c1fbb('0x4')){const _0x2c3c9d=fs[_0x5c1fbb('0x19')](path[_0x5c1fbb('0x2f')](config['root'],'server/files/templates/turn_multiple.ejs'),_0x5c1fbb('0x30')),_0x4a50fc=ejs['render'](_0x2c3c9d,{'networks':_0x1acb96||[]});return fs[_0x5c1fbb('0x3')](_0x5c1fbb('0xf'),_0x4a50fc),respondWithRpcPromise(_0x5c1fbb('0x16'),_0x5c1fbb('0x14'),{'module':_0x5c1fbb('0x2d')});}else{const _0x1b6d30=fs[_0x5c1fbb('0x19')](path['join'](config['root'],_0x5c1fbb('0x4b')),_0x5c1fbb('0x30')),_0x36f31f=ejs[_0x5c1fbb('0x1c')](_0x1b6d30,{'networks':_0x1acb96||[]});return fs[_0x5c1fbb('0x3')](util['format'](_0x5c1fbb('0x1'),_0x523809[_0x5c1fbb('0x4d')][_0x5c1fbb('0x1d')]['toLowerCase']()),_0x36f31f),respondWithRpcPromise(_0x5c1fbb('0x16'),'create',{'module':'chan_sip.so'});}}})[_0x2c066c('0x56')](function(){return _0x2bc4e2;});})[_0x4c1b41('0x56')](respondWithResult(_0x85444b,0xc9))[_0x4c1b41('0x25')](handleError(_0x85444b,null));},exports[_0x11040a('0x4c')]=function(_0x2332d5,_0x14751f){const _0xcac328=_0x11040a;let _0x200b1b;return db['sequelize'][_0xcac328('0x40')](function(){const _0x3148cf=_0xcac328;return db[_0x3148cf('0x12')][_0x3148cf('0x33')]({'where':{'id':_0x2332d5[_0x3148cf('0x4a')]['id']}})[_0x3148cf('0x56')](handleEntityNotFound(_0x14751f,null))[_0x3148cf('0x56')](saveUpdates(_0x2332d5[_0x3148cf('0x4d')],null))['then'](function(_0x597573){const _0x4b93bb=_0x3148cf;if(_0x597573)return _0x200b1b=_0x597573,db['Network']['findAll']({'where':{'type':_0x200b1b[_0x4b93bb('0x1d')]},'raw':!![]});return null;})[_0x3148cf('0x56')](function(_0x48fe3c){const _0x553cff=_0x3148cf;if(_0x200b1b[_0x553cff('0x1d')][_0x553cff('0x31')]()=='STUN'){const _0x187894=fs[_0x553cff('0x19')](path['join'](config[_0x553cff('0x2c')],_0x553cff('0x36')),_0x553cff('0x30')),_0x2bd48b=ejs[_0x553cff('0x1c')](_0x187894,{'networks':_0x48fe3c||[]});return fs[_0x553cff('0x3')]('/etc/asterisk/stun_xcally.conf',_0x2bd48b),respondWithRpcPromise('Reload','update',{'module':_0x553cff('0x2d')});}else{if(_0x200b1b['type'][_0x553cff('0x31')]()==_0x553cff('0x4')){const _0x56d8b8=fs['readFileSync'](path['join'](config['root'],_0x553cff('0x50')),'utf8'),_0x5ed2a6=ejs['render'](_0x56d8b8,{'networks':_0x48fe3c||[]});return fs[_0x553cff('0x3')](_0x553cff('0xf'),_0x5ed2a6),respondWithRpcPromise(_0x553cff('0x16'),'update',{'module':_0x553cff('0x2d')});}else{const _0x3d6324=fs[_0x553cff('0x19')](path[_0x553cff('0x2f')](config[_0x553cff('0x2c')],_0x553cff('0x4b')),_0x553cff('0x30')),_0x287e5f=ejs['render'](_0x3d6324,{'networks':_0x48fe3c||[]});return fs[_0x553cff('0x3')](util[_0x553cff('0x2e')]('/etc/asterisk/sip_xcally_%s.conf',_0x2332d5[_0x553cff('0x4d')][_0x553cff('0x1d')][_0x553cff('0xb')]()),_0x287e5f),respondWithRpcPromise(_0x553cff('0x16'),_0x553cff('0x4c'),{'module':'chan_sip.so'});}}})[_0x3148cf('0x56')](function(_0x323663){if(_0x323663)return _0x200b1b;return null;});})[_0xcac328('0x56')](respondWithResult(_0x14751f,null))[_0xcac328('0x25')](handleError(_0x14751f,null));},exports[_0x11040a('0x8')]=function(_0x516b0f,_0x3635dc){const _0x506480=_0x11040a;let _0x3a2e17;return db['Network']['findOne']({'where':{'id':_0x516b0f[_0x506480('0x4a')]['id']}})[_0x506480('0x56')](function(_0x4a672d){return _0x3a2e17=_0x4a672d,_0x4a672d;})['then'](handleEntityNotFound(_0x3635dc,null))['then'](removeEntity(_0x3635dc,null))['then'](function(){const _0x43633c=_0x506480;if(_0x3a2e17)return db[_0x43633c('0x12')][_0x43633c('0x37')]({'where':{'type':_0x3a2e17[_0x43633c('0x1d')]},'raw':!![]});})[_0x506480('0x56')](function(_0x4c1422){const _0x3056a6=_0x506480;if(_0x3a2e17[_0x3056a6('0x1d')][_0x3056a6('0x31')]()==_0x3056a6('0x18')){const _0x2caa3b=fs[_0x3056a6('0x19')](path[_0x3056a6('0x2f')](config['root'],_0x3056a6('0x57')),_0x3056a6('0x30')),_0x463642=ejs[_0x3056a6('0x1c')](_0x2caa3b,{'networks':_0x4c1422||[]});return fs[_0x3056a6('0x3')](_0x3056a6('0x58'),_0x463642),respondWithRpcPromise(_0x3056a6('0x16'),_0x3056a6('0x8'),{'module':_0x3056a6('0x2d')});}else{if(_0x3a2e17['type'][_0x3056a6('0x31')]()==_0x3056a6('0x4')){const _0x2b5996=fs['readFileSync'](path[_0x3056a6('0x2f')](config[_0x3056a6('0x2c')],_0x3056a6('0x43')),_0x3056a6('0x30')),_0x2851f9=ejs[_0x3056a6('0x1c')](_0x2b5996,{'networks':_0x4c1422||[]});return fs[_0x3056a6('0x3')]('/etc/asterisk/turn_xcally.conf',_0x2851f9),respondWithRpcPromise('Reload',_0x3056a6('0x8'),{'module':_0x3056a6('0x2d')});}else{const _0x1dbcb4=fs[_0x3056a6('0x19')](path[_0x3056a6('0x2f')](config[_0x3056a6('0x2c')],_0x3056a6('0x4b')),_0x3056a6('0x30')),_0x5df383=ejs['render'](_0x1dbcb4,{'networks':_0x4c1422||[]});return fs[_0x3056a6('0x3')](util[_0x3056a6('0x2e')]('/etc/asterisk/sip_xcally_%s.conf',_0x516b0f['body'][_0x3056a6('0x1d')]['toLowerCase']()),_0x5df383),respondWithRpcPromise(_0x3056a6('0x16'),_0x3056a6('0x8'),{'module':_0x3056a6('0xa')});}}})[_0x506480('0x25')](handleError(_0x3635dc,null));}; \ No newline at end of file +const a457_0x4f03=['Network,\x20%s,\x20%s','stringify','../../config/environment','like','readFileSync','includeAll','res_stun_monitor.so','/etc/asterisk/stun_xcally.conf','body','stack','sendStatus','pick','path','files/templates/turn_multiple.ejs','map','message','fields','server/files/templates/turn_multiple.ejs','request\x20sent','then','set','include','type','attributes','params','json','toUpperCase','/etc/asterisk/turn_xcally.conf','filters','writeFileSync','nolimit','error','status','keys','Network','server/files/templates/stun_multiple.ejs','create','offset','STUN','findAll','transaction','findOne','send','Content-Range','Reload','model','fieldName','order','chan_sip.so','client','undefined','intersection','files/templates/network.ejs','name','show','VIRTUAL','destroy','options','sort','util','format','length','utf8','count','update','where','jayson/promise','sequelize','catch','http','end','../../mysqldb','filter','query','join','merge','info','TURN','limit','render','toLowerCase','/etc/asterisk/sip_xcally_%s.conf','../../config/logger','root','rows'];(function(_0x468c27,_0x4f03bc){const _0x4d67e=function(_0x4cb35a){while(--_0x4cb35a){_0x468c27['push'](_0x468c27['shift']());}};_0x4d67e(++_0x4f03bc);}(a457_0x4f03,0x11d));const a457_0x4d67=function(_0x468c27,_0x4f03bc){_0x468c27=_0x468c27-0x0;let _0x4d67e=a457_0x4f03[_0x468c27];return _0x4d67e;};const _0x5055e0=a457_0x4d67;'use strict';const util=require(_0x5055e0('0x1d')),path=require(_0x5055e0('0x43')),ejs=require('ejs'),fs=require('fs'),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x5055e0('0x34'))('api'),config=require(_0x5055e0('0x39')),db=require(_0x5055e0('0x29'))['db'],{Op}=require(_0x5055e0('0x25')),jayson=require(_0x5055e0('0x24')),client=jayson[_0x5055e0('0x13')][_0x5055e0('0x27')]({'port':0x232a});function respondWithRpcPromise(_0x4cb35a,_0x120f7a,_0x5848df,_0x35ce74){return new Promise(function(_0x32ba0b,_0x16d3ca){const _0x29cf8a=a457_0x4d67,_0x2de7f9=_0x35ce74||client;return _0x2de7f9['request'](_0x4cb35a,_0x5848df)[_0x29cf8a('0x4a')](function(_0x32e1bd){const _0xb9689=_0x29cf8a;logger[_0xb9689('0x2e')]('Network,\x20%s,\x20%s',_0x120f7a,_0xb9689('0x49')),logger['debug']('Network,\x20%s,\x20%s,\x20%s',_0x120f7a,_0xb9689('0x49'),JSON[_0xb9689('0x38')](_0x32e1bd));if(_0x32e1bd['error']){if(_0x32e1bd[_0xb9689('0x1')]['code']===0x1f4)return logger[_0xb9689('0x1')](_0xb9689('0x37'),_0x120f7a,_0x32e1bd[_0xb9689('0x1')]['message']),_0x16d3ca(_0x32e1bd['error'][_0xb9689('0x46')]);return logger[_0xb9689('0x1')](_0xb9689('0x37'),_0x120f7a,_0x32e1bd[_0xb9689('0x1')][_0xb9689('0x46')]),_0x32ba0b(_0x32e1bd[_0xb9689('0x1')][_0xb9689('0x46')]);}else logger[_0xb9689('0x2e')](_0xb9689('0x37'),_0x120f7a,_0xb9689('0x49')),_0x32ba0b(_0x32e1bd['result'][_0xb9689('0x46')]);})[_0x29cf8a('0x26')](function(_0x490207){const _0x12bcf1=_0x29cf8a;logger[_0x12bcf1('0x1')](_0x12bcf1('0x37'),_0x120f7a,_0x490207),_0x16d3ca(_0x490207);});});}function respondWithResult(_0x2be942,_0x19a111){return _0x19a111=_0x19a111||0xc8,function(_0x2f61ce){const _0x3ce5b3=a457_0x4d67;if(_0x2f61ce)return _0x2be942[_0x3ce5b3('0x2')](_0x19a111)[_0x3ce5b3('0x50')](_0x2f61ce);};}function respondWithFilteredResult(_0x2ca97a,_0x12e141){return function(_0x17dd91){const _0x11b9ad=a457_0x4d67;if(_0x17dd91){const _0x5f1ba8=_0x17dd91[_0x11b9ad('0x21')],_0x243340=_0x12e141['offset'];let _0x1a4a0c=_0x12e141[_0x11b9ad('0x7')]+_0x12e141['limit'],_0x4eb2d0;return _0x1a4a0c>=_0x5f1ba8?(_0x1a4a0c=_0x5f1ba8,_0x4eb2d0=0xc8):_0x4eb2d0=0xce,_0x2ca97a[_0x11b9ad('0x2')](_0x4eb2d0),_0x2ca97a[_0x11b9ad('0x4b')](_0x11b9ad('0xd'),_0x243340+'-'+_0x1a4a0c+'/'+_0x5f1ba8)[_0x11b9ad('0x50')](_0x17dd91);}return null;};}function saveUpdates(_0x2a4cb4){return function(_0x1ee7db){const _0x91ec7b=a457_0x4d67;if(_0x1ee7db)return _0x1ee7db[_0x91ec7b('0x22')](_0x2a4cb4)[_0x91ec7b('0x4a')](function(_0x2dd650){return _0x2dd650;});return null;};}function removeEntity(_0x36338b){return function(_0x943649){const _0x41486a=a457_0x4d67;if(_0x943649)return _0x943649[_0x41486a('0x1a')]()['then'](function(){const _0x28361f=_0x41486a;_0x36338b[_0x28361f('0x2')](0xcc)[_0x28361f('0x28')]();});};}function handleEntityNotFound(_0x28954b){return function(_0x3b13e8){const _0x1e8abe=a457_0x4d67;return!_0x3b13e8&&_0x28954b[_0x1e8abe('0x41')](0x194),_0x3b13e8;};}function handleError(_0x225f6c,_0x26268f){return _0x26268f=_0x26268f||0x1f4,function(_0x2851a4){const _0x212cf0=a457_0x4d67;logger[_0x212cf0('0x1')](_0x2851a4[_0x212cf0('0x40')]),_0x2851a4[_0x212cf0('0x17')]&&delete _0x2851a4[_0x212cf0('0x17')],_0x225f6c[_0x212cf0('0x2')](_0x26268f)[_0x212cf0('0xc')](_0x2851a4);};}exports['index']=function(_0xe1214f,_0x5d56c9){const _0x57302f=_0x5055e0;let _0x181ba9={};const _0x4470e3={},_0x509c4c={'count':0x0,'rows':[]},_0x11666b=_[_0x57302f('0x45')](db['Network']['rawAttributes'],function(_0x2b62db){const _0x488d9c=_0x57302f;return{'name':_0x2b62db[_0x488d9c('0x10')],'type':_0x2b62db[_0x488d9c('0x4d')]['key']};});_0x4470e3[_0x57302f('0xf')]=_[_0x57302f('0x45')](_0x11666b,'name'),_0x4470e3[_0x57302f('0x2b')]=_[_0x57302f('0x3')](_0xe1214f[_0x57302f('0x2b')]),_0x4470e3[_0x57302f('0x53')]=_[_0x57302f('0x15')](_0x4470e3[_0x57302f('0xf')],_0x4470e3[_0x57302f('0x2b')]),_0x181ba9['attributes']=_[_0x57302f('0x15')](_0x4470e3[_0x57302f('0xf')],qs[_0x57302f('0x47')](_0xe1214f['query']['fields'])),_0x181ba9['attributes']=_0x181ba9['attributes'][_0x57302f('0x1f')]?_0x181ba9['attributes']:_0x4470e3[_0x57302f('0xf')];typeof _0xe1214f['query'][_0x57302f('0x0')]===_0x57302f('0x14')&&(_0x181ba9[_0x57302f('0x30')]=qs[_0x57302f('0x30')](_0xe1214f[_0x57302f('0x2b')][_0x57302f('0x30')]),_0x181ba9[_0x57302f('0x7')]=qs[_0x57302f('0x7')](_0xe1214f[_0x57302f('0x2b')][_0x57302f('0x7')]));_0x181ba9[_0x57302f('0x11')]=qs[_0x57302f('0x1c')](_0xe1214f[_0x57302f('0x2b')][_0x57302f('0x1c')]),_0x181ba9[_0x57302f('0x23')]=qs['filters'](_[_0x57302f('0x42')](_0xe1214f[_0x57302f('0x2b')],_0x4470e3[_0x57302f('0x53')]),_0x11666b);_0xe1214f['query'][_0x57302f('0x2a')]&&(_0x181ba9[_0x57302f('0x23')]=_[_0x57302f('0x2d')](_0x181ba9['where'],{[Op['or']]:_[_0x57302f('0x45')](_0x11666b,function(_0x211926){const _0x4e7e31=_0x57302f;if(_0x211926['type']!==_0x4e7e31('0x19')){const _0x1fb96b={};return _0x1fb96b[_0x211926[_0x4e7e31('0x17')]]={[Op[_0x4e7e31('0x3a')]]:'%'+_0xe1214f[_0x4e7e31('0x2b')][_0x4e7e31('0x2a')]+'%'},_0x1fb96b;}})}));_0x181ba9=_[_0x57302f('0x2d')]({},_0x181ba9,_0xe1214f[_0x57302f('0x1b')]);const _0x5b6202={'where':_0x181ba9['where']};return db[_0x57302f('0x4')][_0x57302f('0x21')](_0x5b6202)[_0x57302f('0x4a')](function(_0x54a874){const _0x53d949=_0x57302f;return _0x509c4c[_0x53d949('0x21')]=_0x54a874,_0xe1214f[_0x53d949('0x2b')][_0x53d949('0x3c')]&&(_0x181ba9['include']=[{'all':!![]}]),db[_0x53d949('0x4')][_0x53d949('0x9')](_0x181ba9);})[_0x57302f('0x4a')](function(_0x5aa9a8){const _0x284cef=_0x57302f;return _0x509c4c[_0x284cef('0x36')]=_0x5aa9a8,_0x509c4c;})[_0x57302f('0x4a')](respondWithFilteredResult(_0x5d56c9,_0x181ba9))[_0x57302f('0x26')](handleError(_0x5d56c9,null));},exports[_0x5055e0('0x18')]=function(_0x5c89e6,_0x5f7b1d){const _0x1d5487=_0x5055e0;let _0x25b3c1={'raw':!![],'where':{'id':_0x5c89e6['params']['id']}};const _0x321bd2={};return _0x321bd2[_0x1d5487('0xf')]=_[_0x1d5487('0x3')](db[_0x1d5487('0x4')]['rawAttributes']),_0x321bd2[_0x1d5487('0x2b')]=_[_0x1d5487('0x3')](_0x5c89e6[_0x1d5487('0x2b')]),_0x321bd2[_0x1d5487('0x53')]=_[_0x1d5487('0x15')](_0x321bd2[_0x1d5487('0xf')],_0x321bd2[_0x1d5487('0x2b')]),_0x25b3c1[_0x1d5487('0x4e')]=_[_0x1d5487('0x15')](_0x321bd2[_0x1d5487('0xf')],qs[_0x1d5487('0x47')](_0x5c89e6[_0x1d5487('0x2b')]['fields'])),_0x25b3c1[_0x1d5487('0x4e')]=_0x25b3c1[_0x1d5487('0x4e')][_0x1d5487('0x1f')]?_0x25b3c1[_0x1d5487('0x4e')]:_0x321bd2['model'],_0x5c89e6[_0x1d5487('0x2b')][_0x1d5487('0x3c')]&&(_0x25b3c1[_0x1d5487('0x4c')]=[{'all':!![]}]),_0x25b3c1=_[_0x1d5487('0x2d')]({},_0x25b3c1,_0x5c89e6[_0x1d5487('0x1b')]),db[_0x1d5487('0x4')][_0x1d5487('0xb')](_0x25b3c1)['then'](handleEntityNotFound(_0x5f7b1d,null))[_0x1d5487('0x4a')](respondWithResult(_0x5f7b1d,null))['catch'](handleError(_0x5f7b1d,null));},exports['create']=function(_0x42fe73,_0xef8f7b){const _0x126e65=_0x5055e0;let _0x389797;return db[_0x126e65('0x25')][_0x126e65('0xa')](function(){const _0x12e7c5=_0x126e65;return db[_0x12e7c5('0x4')][_0x12e7c5('0x6')](_0x42fe73[_0x12e7c5('0x3f')],{'raw':!![]})[_0x12e7c5('0x4a')](function(_0x5dd57f){const _0x437d5b=_0x12e7c5;return _0x389797=_0x5dd57f,db[_0x437d5b('0x4')][_0x437d5b('0x9')]({'where':{'type':_0x42fe73[_0x437d5b('0x3f')]['type']},'raw':!![]});})['then'](function(_0x1a35c2){const _0x48dbef=_0x12e7c5;if(_0x389797[_0x48dbef('0x4d')][_0x48dbef('0x51')]()==_0x48dbef('0x8')){const _0xe8703=fs['readFileSync'](path[_0x48dbef('0x2c')](config[_0x48dbef('0x35')],_0x48dbef('0x5')),_0x48dbef('0x20')),_0x2f0150=ejs[_0x48dbef('0x31')](_0xe8703,{'networks':_0x1a35c2||[]});return fs[_0x48dbef('0x54')]('/etc/asterisk/stun_xcally.conf',_0x2f0150),respondWithRpcPromise(_0x48dbef('0xe'),'create',{'module':_0x48dbef('0x3d')});}else{if(_0x389797[_0x48dbef('0x4d')][_0x48dbef('0x51')]()==_0x48dbef('0x2f')){const _0xa62cee=fs[_0x48dbef('0x3b')](path[_0x48dbef('0x2c')](config[_0x48dbef('0x35')],_0x48dbef('0x48')),'utf8'),_0x5d49ad=ejs[_0x48dbef('0x31')](_0xa62cee,{'networks':_0x1a35c2||[]});return fs[_0x48dbef('0x54')](_0x48dbef('0x52'),_0x5d49ad),respondWithRpcPromise(_0x48dbef('0xe'),'create',{'module':'res_stun_monitor.so'});}else{const _0x15a7ff=fs['readFileSync'](path[_0x48dbef('0x2c')](config[_0x48dbef('0x35')],_0x48dbef('0x16')),_0x48dbef('0x20')),_0x72e766=ejs[_0x48dbef('0x31')](_0x15a7ff,{'networks':_0x1a35c2||[]});return fs['writeFileSync'](util['format']('/etc/asterisk/sip_xcally_%s.conf',_0x42fe73['body'][_0x48dbef('0x4d')][_0x48dbef('0x32')]()),_0x72e766),respondWithRpcPromise(_0x48dbef('0xe'),_0x48dbef('0x6'),{'module':_0x48dbef('0x12')});}}})[_0x12e7c5('0x4a')](function(){return _0x389797;});})[_0x126e65('0x4a')](respondWithResult(_0xef8f7b,0xc9))['catch'](handleError(_0xef8f7b,null));},exports[_0x5055e0('0x22')]=function(_0x2d26af,_0x2c642a){const _0x2d352d=_0x5055e0;let _0x36234a;return db[_0x2d352d('0x25')]['transaction'](function(){const _0x502db5=_0x2d352d;return db[_0x502db5('0x4')][_0x502db5('0xb')]({'where':{'id':_0x2d26af[_0x502db5('0x4f')]['id']}})['then'](handleEntityNotFound(_0x2c642a,null))[_0x502db5('0x4a')](saveUpdates(_0x2d26af[_0x502db5('0x3f')],null))[_0x502db5('0x4a')](function(_0x7d9878){const _0x2f4d50=_0x502db5;if(_0x7d9878)return _0x36234a=_0x7d9878,db[_0x2f4d50('0x4')]['findAll']({'where':{'type':_0x36234a[_0x2f4d50('0x4d')]},'raw':!![]});return null;})[_0x502db5('0x4a')](function(_0x33634c){const _0x35c535=_0x502db5;if(_0x36234a[_0x35c535('0x4d')]['toUpperCase']()==_0x35c535('0x8')){const _0x3e0803=fs[_0x35c535('0x3b')](path[_0x35c535('0x2c')](config[_0x35c535('0x35')],_0x35c535('0x5')),_0x35c535('0x20')),_0x409072=ejs[_0x35c535('0x31')](_0x3e0803,{'networks':_0x33634c||[]});return fs[_0x35c535('0x54')](_0x35c535('0x3e'),_0x409072),respondWithRpcPromise(_0x35c535('0xe'),_0x35c535('0x22'),{'module':_0x35c535('0x3d')});}else{if(_0x36234a[_0x35c535('0x4d')]['toUpperCase']()==_0x35c535('0x2f')){const _0x12807a=fs[_0x35c535('0x3b')](path[_0x35c535('0x2c')](config['root'],_0x35c535('0x48')),_0x35c535('0x20')),_0x441fc5=ejs[_0x35c535('0x31')](_0x12807a,{'networks':_0x33634c||[]});return fs[_0x35c535('0x54')](_0x35c535('0x52'),_0x441fc5),respondWithRpcPromise(_0x35c535('0xe'),_0x35c535('0x22'),{'module':_0x35c535('0x3d')});}else{const _0x488e08=fs[_0x35c535('0x3b')](path['join'](config[_0x35c535('0x35')],_0x35c535('0x16')),_0x35c535('0x20')),_0x24a9e1=ejs[_0x35c535('0x31')](_0x488e08,{'networks':_0x33634c||[]});return fs['writeFileSync'](util['format'](_0x35c535('0x33'),_0x2d26af['body'][_0x35c535('0x4d')][_0x35c535('0x32')]()),_0x24a9e1),respondWithRpcPromise(_0x35c535('0xe'),_0x35c535('0x22'),{'module':_0x35c535('0x12')});}}})[_0x502db5('0x4a')](function(_0x1e3faf){if(_0x1e3faf)return _0x36234a;return null;});})[_0x2d352d('0x4a')](respondWithResult(_0x2c642a,null))[_0x2d352d('0x26')](handleError(_0x2c642a,null));},exports[_0x5055e0('0x1a')]=function(_0x19a79d,_0x47bcae){const _0x2bd201=_0x5055e0;let _0xaa419b;return db[_0x2bd201('0x4')]['findOne']({'where':{'id':_0x19a79d[_0x2bd201('0x4f')]['id']}})[_0x2bd201('0x4a')](function(_0x140574){return _0xaa419b=_0x140574,_0x140574;})[_0x2bd201('0x4a')](handleEntityNotFound(_0x47bcae,null))[_0x2bd201('0x4a')](removeEntity(_0x47bcae,null))[_0x2bd201('0x4a')](function(){const _0x5b6bdd=_0x2bd201;if(_0xaa419b)return db[_0x5b6bdd('0x4')]['findAll']({'where':{'type':_0xaa419b[_0x5b6bdd('0x4d')]},'raw':!![]});})[_0x2bd201('0x4a')](function(_0x2a300e){const _0x161c3c=_0x2bd201;if(_0xaa419b[_0x161c3c('0x4d')][_0x161c3c('0x51')]()==_0x161c3c('0x8')){const _0x4c4fa4=fs[_0x161c3c('0x3b')](path['join'](config[_0x161c3c('0x35')],'files/templates/stun_multiple.ejs'),_0x161c3c('0x20')),_0x2c19b3=ejs[_0x161c3c('0x31')](_0x4c4fa4,{'networks':_0x2a300e||[]});return fs['writeFileSync']('/etc/asterisk/stun_xcally.conf',_0x2c19b3),respondWithRpcPromise('Reload',_0x161c3c('0x1a'),{'module':_0x161c3c('0x3d')});}else{if(_0xaa419b[_0x161c3c('0x4d')]['toUpperCase']()=='TURN'){const _0xa02534=fs[_0x161c3c('0x3b')](path[_0x161c3c('0x2c')](config[_0x161c3c('0x35')],_0x161c3c('0x44')),_0x161c3c('0x20')),_0x267d97=ejs['render'](_0xa02534,{'networks':_0x2a300e||[]});return fs[_0x161c3c('0x54')](_0x161c3c('0x52'),_0x267d97),respondWithRpcPromise(_0x161c3c('0xe'),_0x161c3c('0x1a'),{'module':_0x161c3c('0x3d')});}else{const _0x208488=fs[_0x161c3c('0x3b')](path[_0x161c3c('0x2c')](config['root'],_0x161c3c('0x16')),_0x161c3c('0x20')),_0x28818f=ejs['render'](_0x208488,{'networks':_0x2a300e||[]});return fs[_0x161c3c('0x54')](util[_0x161c3c('0x1e')](_0x161c3c('0x33'),_0x19a79d[_0x161c3c('0x3f')][_0x161c3c('0x4d')][_0x161c3c('0x32')]()),_0x28818f),respondWithRpcPromise(_0x161c3c('0xe'),'destroy',{'module':_0x161c3c('0x12')});}}})[_0x2bd201('0x26')](handleError(_0x47bcae,null));}; \ No newline at end of file diff --git a/server/api/network/network.model.js b/server/api/network/network.model.js index e5b3854..3f73d30 100644 --- a/server/api/network/network.model.js +++ b/server/api/network/network.model.js @@ -1 +1 @@ -const a458_0x21f4=['./network.attributes','network','Network','exports','define'];(function(_0x461943,_0x21f4bd){const _0x4e0886=function(_0x1146f4){while(--_0x1146f4){_0x461943['push'](_0x461943['shift']());}};_0x4e0886(++_0x21f4bd);}(a458_0x21f4,0x186));const a458_0x4e08=function(_0x461943,_0x21f4bd){_0x461943=_0x461943-0x0;let _0x4e0886=a458_0x21f4[_0x461943];return _0x4e0886;};const _0x395974=a458_0x4e08;'use strict';const attributes=require(_0x395974('0x0'));module[_0x395974('0x3')]=function(_0x1146f4){const _0x2d602f=_0x395974,_0x5931c5=_0x1146f4[_0x2d602f('0x4')](_0x2d602f('0x2'),attributes,{'tableName':_0x2d602f('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5931c5;}; \ No newline at end of file +const a458_0x36bf=['./network.attributes','exports','Network','network','define'];(function(_0x254d80,_0x36bf74){const _0xc50198=function(_0x29bb62){while(--_0x29bb62){_0x254d80['push'](_0x254d80['shift']());}};_0xc50198(++_0x36bf74);}(a458_0x36bf,0xa0));const a458_0xc501=function(_0x254d80,_0x36bf74){_0x254d80=_0x254d80-0x0;let _0xc50198=a458_0x36bf[_0x254d80];return _0xc50198;};const _0x2f033a=a458_0xc501;'use strict';const attributes=require(_0x2f033a('0x0'));module[_0x2f033a('0x1')]=function(_0x29bb62){const _0xc8fb7d=_0x2f033a,_0x2203a6=_0x29bb62[_0xc8fb7d('0x4')](_0xc8fb7d('0x2'),attributes,{'tableName':_0xc8fb7d('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2203a6;}; \ No newline at end of file diff --git a/server/api/notification/index.js b/server/api/notification/index.js index afd33c9..7d89d49 100644 --- a/server/api/notification/index.js +++ b/server/api/notification/index.js @@ -1 +1 @@ -const a459_0x3c9c=['../../components/auth/service','express','Router','isAuthenticated','./notification.controller','post','exports'];(function(_0xec34b4,_0x3c9cd8){const _0x6c0cc7=function(_0x9362cc){while(--_0x9362cc){_0xec34b4['push'](_0xec34b4['shift']());}};_0x6c0cc7(++_0x3c9cd8);}(a459_0x3c9c,0x14a));const a459_0x6c0c=function(_0xec34b4,_0x3c9cd8){_0xec34b4=_0xec34b4-0x0;let _0x6c0cc7=a459_0x3c9c[_0xec34b4];return _0x6c0cc7;};const _0x19f730=a459_0x6c0c;'use strict';const express=require(_0x19f730('0x0')),router=express[_0x19f730('0x1')](),auth=require(_0x19f730('0x6')),controller=require(_0x19f730('0x3'));router[_0x19f730('0x4')]('/',auth[_0x19f730('0x2')](),controller['sendNotification']),module[_0x19f730('0x5')]=router; \ No newline at end of file +const a459_0x2785=['../../components/auth/service','Router','express','./notification.controller','isAuthenticated','sendNotification'];(function(_0x5298b9,_0x278524){const _0x195d5b=function(_0xb22b94){while(--_0xb22b94){_0x5298b9['push'](_0x5298b9['shift']());}};_0x195d5b(++_0x278524);}(a459_0x2785,0x104));const a459_0x195d=function(_0x5298b9,_0x278524){_0x5298b9=_0x5298b9-0x0;let _0x195d5b=a459_0x2785[_0x5298b9];return _0x195d5b;};const _0x12dc93=a459_0x195d;'use strict';const express=require(_0x12dc93('0x0')),router=express[_0x12dc93('0x5')](),auth=require(_0x12dc93('0x4')),controller=require(_0x12dc93('0x1'));router['post']('/',auth[_0x12dc93('0x2')](),controller[_0x12dc93('0x3')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/notification/notification.attributes.js b/server/api/notification/notification.attributes.js index 4a91e33..8bf7d18 100644 --- a/server/api/notification/notification.attributes.js +++ b/server/api/notification/notification.attributes.js @@ -1 +1 @@ -const a460_0x3ffb=['exports','STRING','sequelize','TEXT'];(function(_0x121839,_0x3ffb6b){const _0x3f4179=function(_0x15efe9){while(--_0x15efe9){_0x121839['push'](_0x121839['shift']());}};_0x3f4179(++_0x3ffb6b);}(a460_0x3ffb,0xaf));const a460_0x3f41=function(_0x121839,_0x3ffb6b){_0x121839=_0x121839-0x0;let _0x3f4179=a460_0x3ffb[_0x121839];return _0x3f4179;};const _0x40bdc0=a460_0x3f41;'use strict';const Sequelize=require(_0x40bdc0('0x3'));module[_0x40bdc0('0x1')]={'body':{'type':Sequelize[_0x40bdc0('0x0')]},'senderName':{'type':Sequelize['STRING']},'recipientsId':{'type':Sequelize['TEXT']},'recipientsDescription':{'type':Sequelize[_0x40bdc0('0x2')]},'beep':{'type':Sequelize['BOOLEAN']}}; \ No newline at end of file +const a460_0x4d2a=['sequelize','BOOLEAN','STRING','TEXT'];(function(_0x37549d,_0x4d2ab1){const _0x160293=function(_0x427f6f){while(--_0x427f6f){_0x37549d['push'](_0x37549d['shift']());}};_0x160293(++_0x4d2ab1);}(a460_0x4d2a,0x94));const a460_0x1602=function(_0x37549d,_0x4d2ab1){_0x37549d=_0x37549d-0x0;let _0x160293=a460_0x4d2a[_0x37549d];return _0x160293;};const _0x135a60=a460_0x1602;'use strict';const Sequelize=require(_0x135a60('0x0'));module['exports']={'body':{'type':Sequelize[_0x135a60('0x3')]},'senderName':{'type':Sequelize[_0x135a60('0x2')]},'recipientsId':{'type':Sequelize['TEXT']},'recipientsDescription':{'type':Sequelize['STRING']},'beep':{'type':Sequelize[_0x135a60('0x1')]}}; \ No newline at end of file diff --git a/server/api/notification/notification.controller.js b/server/api/notification/notification.controller.js index dfc7481..6159608 100644 --- a/server/api/notification/notification.controller.js +++ b/server/api/notification/notification.controller.js @@ -1 +1 @@ -const a461_0x1f34=['Missing\x20\x27view\x27\x20parameter','forEach','../../config/logger','Invalid\x20\x27TemplateId\x27\x20parameter','create','chatqueue','some','Missing\x20\x27recipients\x27\x20parameter','Invalid\x20model\x20in\x20\x27recipients\x27\x20object','stack','recipients','whatsappqueue','error','user','union','senderName','join','faxqueue','isEmpty','mailqueue','flatten','TemplateId','name','view','undefined','model','sendNotification','queue','map','catch','parse','team','./notification.socket','openchannelqueue','includes','../../rediscache','voicequeue','User','../../mysqldb','SenderId','register','render','json','beep','send','ids','recipientsDescription','smsqueue','toLowerCase','Template','then','status','body','text','findOne','lodash','sequelize','startCase','push','recipientsId','getAgents','html','mustache'];(function(_0x28a6d7,_0x1f34ec){const _0x3a47af=function(_0x85b5e0){while(--_0x85b5e0){_0x28a6d7['push'](_0x28a6d7['shift']());}};_0x3a47af(++_0x1f34ec);}(a461_0x1f34,0x147));const a461_0x3a47=function(_0x28a6d7,_0x1f34ec){_0x28a6d7=_0x28a6d7-0x0;let _0x3a47af=a461_0x1f34[_0x28a6d7];return _0x3a47af;};const _0x36443c=a461_0x3a47;'use strict';const Mustache=require(_0x36443c('0x32')),_=require(_0x36443c('0x2b')),logger=require(_0x36443c('0x35'))('api'),{getSocket}=require(_0x36443c('0x17')),socket=getSocket(),db=require(_0x36443c('0x1a'))['db'],{ValidationError}=require(_0x36443c('0x2c'));require(_0x36443c('0x14'))[_0x36443c('0x1c')](socket);function respondWithResult(_0x85b5e0,_0x4bf75c){return _0x4bf75c=_0x4bf75c||0xc8,function(_0x111733){const _0x2f0d73=a461_0x3a47;if(_0x111733)return _0x85b5e0['status'](_0x4bf75c)[_0x2f0d73('0x1e')](_0x111733);};}function handleError(_0x5901f5,_0x33e386){return _0x33e386=_0x33e386||0x1f4,function(_0x18df42){const _0x30c930=a461_0x3a47;logger[_0x30c930('0x0')](_0x18df42[_0x30c930('0x3c')]),_0x18df42[_0x30c930('0xa')]&&delete _0x18df42[_0x30c930('0xa')],_0x5901f5[_0x30c930('0x27')](_0x33e386)[_0x30c930('0x20')](_0x18df42);};}exports[_0x36443c('0xe')]=function(_0x311d96,_0x50e27b){const _0x49b884=_0x36443c;let _0x458b4a=[];if(typeof _0x311d96[_0x49b884('0x28')][_0x49b884('0x29')]===_0x49b884('0xc')&&typeof _0x311d96[_0x49b884('0x28')][_0x49b884('0x9')]===_0x49b884('0xc'))throw new ValidationError('Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27');else{if(typeof _0x311d96[_0x49b884('0x28')][_0x49b884('0x9')]!==_0x49b884('0xc')&&typeof _0x311d96[_0x49b884('0x28')][_0x49b884('0xb')]===_0x49b884('0xc'))throw new ValidationError(_0x49b884('0x33'));if(typeof _0x311d96[_0x49b884('0x28')][_0x49b884('0x3d')]==='undefined')throw new ValidationError(_0x49b884('0x3a'));else{try{_0x458b4a=JSON[_0x49b884('0x12')](_0x311d96[_0x49b884('0x28')]['recipients']);}catch(_0x2b6f6f){logger[_0x49b884('0x0')](_0x2b6f6f);throw new ValidationError('Invalid\x20\x27recipients\x27\x20object');}const _0x2dfe65=[_0x49b884('0x38'),_0x49b884('0x5'),_0x49b884('0x7'),_0x49b884('0x15'),_0x49b884('0x23'),_0x49b884('0x18'),_0x49b884('0x3e'),_0x49b884('0x13'),'user'];if(_[_0x49b884('0x39')](_0x458b4a,function(_0xbfc4c8){const _0x33b981=_0x49b884;return!_['includes'](_0x2dfe65,_0xbfc4c8[_0x33b981('0xd')][_0x33b981('0x24')]());}))throw new ValidationError(_0x49b884('0x3b'));}}const _0x3cf762={};return _0x3cf762[_0x49b884('0x3')]=_0x311d96[_0x49b884('0x28')][_0x49b884('0x3')]?_0x311d96['body'][_0x49b884('0x3')]:_0x311d96[_0x49b884('0x1')]['fullname'],_0x3cf762[_0x49b884('0x22')]=_[_0x49b884('0x6')](_0x311d96[_0x49b884('0x28')][_0x49b884('0x22')])?null:_0x311d96[_0x49b884('0x28')][_0x49b884('0x22')],_0x3cf762[_0x49b884('0x1f')]=_0x311d96[_0x49b884('0x28')][_0x49b884('0x1f')]||![],_0x3cf762[_0x49b884('0x1b')]=_0x311d96[_0x49b884('0x1')]['id'],getContent(_0x311d96[_0x49b884('0x28')])[_0x49b884('0x26')](function(_0x130e3a){const _0x3d244d=_0x49b884;return _0x3cf762[_0x3d244d('0x28')]=_0x130e3a,getRecipients(_0x458b4a);})[_0x49b884('0x26')](function(_0x2d6cd0){const _0xb2528d=_0x49b884;return _0x3cf762[_0xb2528d('0x2f')]=_['sortBy'](_0x2d6cd0)[_0xb2528d('0x4')](','),db[_0xb2528d('0x2c')]['transaction'](function(_0x1d113d){const _0x3f41b6=_0xb2528d;return db['Notification'][_0x3f41b6('0x37')](_0x3cf762,{'raw':!![],'transaction':_0x1d113d})[_0x3f41b6('0x26')](function(_0x261746){const _0x5a6194=_0x3f41b6,_0x406fe5={'sender':_0x3cf762[_0x5a6194('0x3')],'description':_0x3cf762['recipientsDescription'],'content':_0x3cf762['body'],'beep':_0x3cf762['beep']};return _0x2d6cd0[_0x5a6194('0x34')](function(_0x2da3f7){_0x406fe5['recipient']=_0x2da3f7,socket['emit']('notification:send',_0x406fe5);}),_0x261746;});});})[_0x49b884('0x26')](respondWithResult(_0x50e27b,0xc9))[_0x49b884('0x11')](handleError(_0x50e27b,null));};function getContent(_0xf34234){return new Promise(function(_0x580028,_0x3084bb){const _0x1c4545=a461_0x3a47;if(_0xf34234[_0x1c4545('0x29')]){_0x580028(_0xf34234[_0x1c4545('0x29')]);return;}return db[_0x1c4545('0x25')][_0x1c4545('0x2a')]({'attributes':[_0x1c4545('0x31')],'where':{'id':_0xf34234['TemplateId']},'raw':!![]})[_0x1c4545('0x26')](function(_0x38d8b8){const _0x519136=_0x1c4545;if(!_0x38d8b8)throw new ValidationError(_0x519136('0x36'));const _0x171c5b=Mustache[_0x519136('0x1d')](_0x38d8b8['html'],_0xf34234['view']);_0x580028(_0x171c5b);})[_0x1c4545('0x11')](function(_0x4550e2){_0x3084bb(_0x4550e2);});});}function getRecipients(_0x36ea82){return new Promise(function(_0x1431cb,_0x4a0a62){const _0x9cad43=a461_0x3a47;let _0x17b954=[];const _0x3a17e5=[];return _0x36ea82[_0x9cad43('0x34')](function(_0x53a115){const _0x33b4f7=_0x9cad43;let _0x5713eb=_[_0x33b4f7('0x2d')](_0x53a115['model'][_0x33b4f7('0x24')]());if(_0x5713eb===_0x33b4f7('0x19'))_0x17b954=_[_0x33b4f7('0x2')](_0x17b954,_0x53a115['ids']);else{if(_[_0x33b4f7('0x16')](_0x5713eb,_0x33b4f7('0xf')))_0x5713eb=_0x5713eb['replace']('queue','Queue');_0x53a115[_0x33b4f7('0x21')][_0x33b4f7('0x34')](function(_0x2c6f75){const _0x31a38c=_0x33b4f7;_0x3a17e5[_0x31a38c('0x2e')](getAgents(_0x5713eb,_0x2c6f75));});}}),Promise['all'](_0x3a17e5)['then'](function(_0x192508){const _0x35ebd0=_0x9cad43;_0x17b954=_[_0x35ebd0('0x2')](_0x17b954,_[_0x35ebd0('0x8')](_0x192508)),_0x1431cb(_0x17b954);})['catch'](function(_0x4e2bb1){_0x4a0a62(_0x4e2bb1);});});}function getAgents(_0x4e8073,_0x4f6fb5){return new Promise(function(_0x247855,_0x219c8c){const _0x3f2fa0=a461_0x3a47;return db[_0x4e8073][_0x3f2fa0('0x2a')]({'where':{'id':_0x4f6fb5}})[_0x3f2fa0('0x26')](function(_0x55fac7){const _0x357bcd=_0x3f2fa0;return _0x55fac7[_0x357bcd('0x30')]({'attributes':['id'],'raw':!![]})[_0x357bcd('0x26')](function(_0x13b921){const _0x2d096b=_0x357bcd,_0x344e1d=_[_0x2d096b('0x10')](_0x13b921,'id');_0x247855(_0x344e1d);});})[_0x3f2fa0('0x11')](function(_0x387144){_0x219c8c(_0x387144);});});} \ No newline at end of file +const a461_0x5e88=['../../mysqldb','push','transaction','then','recipientsDescription','Missing\x20\x27view\x27\x20parameter','ids','../../rediscache','fullname','undefined','User','lodash','notification:send','status','findOne','Notification','Missing\x20\x27recipients\x27\x20parameter','html','union','text','user','flatten','replace','TemplateId','getAgents','Invalid\x20\x27TemplateId\x27\x20parameter','Must\x20specify\x20at\x20least\x20one\x20argument\x20for\x20\x27text\x27\x20or\x20\x27TemplateId\x27','includes','Invalid\x20\x27recipients\x27\x20object','send','sortBy','isEmpty','Template','Invalid\x20model\x20in\x20\x27recipients\x27\x20object','join','json','create','parse','smsqueue','queue','senderName','faxqueue','chatqueue','openchannelqueue','mustache','beep','view','map','recipientsId','error','model','all','toLowerCase','recipients','voicequeue','catch','api','mailqueue','body','forEach','recipient','sendNotification','emit'];(function(_0x29ee04,_0x5e88d8){const _0x333cc2=function(_0x3b72d2){while(--_0x3b72d2){_0x29ee04['push'](_0x29ee04['shift']());}};_0x333cc2(++_0x5e88d8);}(a461_0x5e88,0x1cf));const a461_0x333c=function(_0x29ee04,_0x5e88d8){_0x29ee04=_0x29ee04-0x0;let _0x333cc2=a461_0x5e88[_0x29ee04];return _0x333cc2;};const _0x28b49f=a461_0x333c;'use strict';const Mustache=require(_0x28b49f('0x16')),_=require(_0x28b49f('0x34')),logger=require('../../config/logger')(_0x28b49f('0x22')),{getSocket}=require(_0x28b49f('0x30')),socket=getSocket(),db=require(_0x28b49f('0x29'))['db'],{ValidationError}=require('sequelize');require('./notification.socket')['register'](socket);function respondWithResult(_0x3b72d2,_0xa7b083){return _0xa7b083=_0xa7b083||0xc8,function(_0x1d5500){const _0x2e1adc=a461_0x333c;if(_0x1d5500)return _0x3b72d2[_0x2e1adc('0x36')](_0xa7b083)[_0x2e1adc('0xd')](_0x1d5500);};}function handleError(_0x4c13bc,_0x55194d){return _0x55194d=_0x55194d||0x1f4,function(_0x54bc3f){const _0x1260dc=a461_0x333c;logger['error'](_0x54bc3f['stack']),_0x54bc3f['name']&&delete _0x54bc3f['name'],_0x4c13bc[_0x1260dc('0x36')](_0x55194d)[_0x1260dc('0x7')](_0x54bc3f);};}exports[_0x28b49f('0x27')]=function(_0x31d9a4,_0x508466){const _0x470ee0=_0x28b49f;let _0x362593=[];if(typeof _0x31d9a4[_0x470ee0('0x24')][_0x470ee0('0x3c')]===_0x470ee0('0x32')&&typeof _0x31d9a4[_0x470ee0('0x24')]['TemplateId']===_0x470ee0('0x32'))throw new ValidationError(_0x470ee0('0x4'));else{if(typeof _0x31d9a4['body']['TemplateId']!==_0x470ee0('0x32')&&typeof _0x31d9a4[_0x470ee0('0x24')][_0x470ee0('0x18')]===_0x470ee0('0x32'))throw new ValidationError(_0x470ee0('0x2e'));if(typeof _0x31d9a4[_0x470ee0('0x24')][_0x470ee0('0x1f')]===_0x470ee0('0x32'))throw new ValidationError(_0x470ee0('0x39'));else{try{_0x362593=JSON[_0x470ee0('0xf')](_0x31d9a4[_0x470ee0('0x24')]['recipients']);}catch(_0x3e3486){logger[_0x470ee0('0x1b')](_0x3e3486);throw new ValidationError(_0x470ee0('0x6'));}const _0x2d6387=[_0x470ee0('0x14'),_0x470ee0('0x13'),_0x470ee0('0x23'),_0x470ee0('0x15'),_0x470ee0('0x10'),_0x470ee0('0x20'),'whatsappqueue','team',_0x470ee0('0x3d')];if(_['some'](_0x362593,function(_0x3ade71){const _0x5bbf6d=_0x470ee0;return!_['includes'](_0x2d6387,_0x3ade71[_0x5bbf6d('0x1c')][_0x5bbf6d('0x1e')]());}))throw new ValidationError(_0x470ee0('0xb'));}}const _0x5210d1={};return _0x5210d1[_0x470ee0('0x12')]=_0x31d9a4[_0x470ee0('0x24')][_0x470ee0('0x12')]?_0x31d9a4['body'][_0x470ee0('0x12')]:_0x31d9a4[_0x470ee0('0x3d')][_0x470ee0('0x31')],_0x5210d1[_0x470ee0('0x2d')]=_[_0x470ee0('0x9')](_0x31d9a4['body'][_0x470ee0('0x2d')])?null:_0x31d9a4[_0x470ee0('0x24')][_0x470ee0('0x2d')],_0x5210d1[_0x470ee0('0x17')]=_0x31d9a4[_0x470ee0('0x24')][_0x470ee0('0x17')]||![],_0x5210d1['SenderId']=_0x31d9a4[_0x470ee0('0x3d')]['id'],getContent(_0x31d9a4[_0x470ee0('0x24')])[_0x470ee0('0x2c')](function(_0x5c3d01){return _0x5210d1['body']=_0x5c3d01,getRecipients(_0x362593);})[_0x470ee0('0x2c')](function(_0x4461d9){const _0x225b8a=_0x470ee0;return _0x5210d1[_0x225b8a('0x1a')]=_[_0x225b8a('0x8')](_0x4461d9)[_0x225b8a('0xc')](','),db['sequelize'][_0x225b8a('0x2b')](function(_0x5849b5){const _0x958443=_0x225b8a;return db[_0x958443('0x38')][_0x958443('0xe')](_0x5210d1,{'raw':!![],'transaction':_0x5849b5})[_0x958443('0x2c')](function(_0x31b787){const _0x591502=_0x958443,_0x269957={'sender':_0x5210d1['senderName'],'description':_0x5210d1[_0x591502('0x2d')],'content':_0x5210d1[_0x591502('0x24')],'beep':_0x5210d1[_0x591502('0x17')]};return _0x4461d9['forEach'](function(_0x53d221){const _0x362600=_0x591502;_0x269957[_0x362600('0x26')]=_0x53d221,socket[_0x362600('0x28')](_0x362600('0x35'),_0x269957);}),_0x31b787;});});})[_0x470ee0('0x2c')](respondWithResult(_0x508466,0xc9))[_0x470ee0('0x21')](handleError(_0x508466,null));};function getContent(_0x18f182){return new Promise(function(_0x2e2a29,_0x51f738){const _0x36af12=a461_0x333c;if(_0x18f182[_0x36af12('0x3c')]){_0x2e2a29(_0x18f182[_0x36af12('0x3c')]);return;}return db[_0x36af12('0xa')][_0x36af12('0x37')]({'attributes':[_0x36af12('0x3a')],'where':{'id':_0x18f182[_0x36af12('0x1')]},'raw':!![]})[_0x36af12('0x2c')](function(_0x369f70){const _0x3e0074=_0x36af12;if(!_0x369f70)throw new ValidationError(_0x3e0074('0x3'));const _0x185ce6=Mustache['render'](_0x369f70[_0x3e0074('0x3a')],_0x18f182[_0x3e0074('0x18')]);_0x2e2a29(_0x185ce6);})[_0x36af12('0x21')](function(_0x597997){_0x51f738(_0x597997);});});}function getRecipients(_0x5d783f){return new Promise(function(_0x93ca4e,_0x3a84c){const _0x257d8a=a461_0x333c;let _0x5551a8=[];const _0x1fe741=[];return _0x5d783f['forEach'](function(_0x627cf){const _0x99132b=a461_0x333c;let _0x4b2182=_['startCase'](_0x627cf['model']['toLowerCase']());if(_0x4b2182===_0x99132b('0x33'))_0x5551a8=_[_0x99132b('0x3b')](_0x5551a8,_0x627cf[_0x99132b('0x2f')]);else{if(_[_0x99132b('0x5')](_0x4b2182,'queue'))_0x4b2182=_0x4b2182[_0x99132b('0x0')](_0x99132b('0x11'),'Queue');_0x627cf['ids'][_0x99132b('0x25')](function(_0x55c285){const _0x586b37=_0x99132b;_0x1fe741[_0x586b37('0x2a')](getAgents(_0x4b2182,_0x55c285));});}}),Promise[_0x257d8a('0x1d')](_0x1fe741)[_0x257d8a('0x2c')](function(_0x1c5389){const _0x5ed2cb=_0x257d8a;_0x5551a8=_[_0x5ed2cb('0x3b')](_0x5551a8,_[_0x5ed2cb('0x3e')](_0x1c5389)),_0x93ca4e(_0x5551a8);})['catch'](function(_0x21d63a){_0x3a84c(_0x21d63a);});});}function getAgents(_0x415918,_0x5c3808){return new Promise(function(_0x44d19b,_0x48f4f1){const _0x2ecd95=a461_0x333c;return db[_0x415918][_0x2ecd95('0x37')]({'where':{'id':_0x5c3808}})[_0x2ecd95('0x2c')](function(_0x2ebda5){const _0x5e7531=_0x2ecd95;return _0x2ebda5[_0x5e7531('0x2')]({'attributes':['id'],'raw':!![]})['then'](function(_0x35a465){const _0x3bb654=_0x5e7531,_0x133f59=_[_0x3bb654('0x19')](_0x35a465,'id');_0x44d19b(_0x133f59);});})[_0x2ecd95('0x21')](function(_0x200653){_0x48f4f1(_0x200653);});});} \ No newline at end of file diff --git a/server/api/notification/notification.events.js b/server/api/notification/notification.events.js index dd1918a..b9ca9e4 100644 --- a/server/api/notification/notification.events.js +++ b/server/api/notification/notification.events.js @@ -1 +1 @@ -const a462_0x1961=['emit','exports','remove','Notification','setMaxListeners'];(function(_0x19a48f,_0x1961aa){const _0x21b712=function(_0x38625b){while(--_0x38625b){_0x19a48f['push'](_0x19a48f['shift']());}};_0x21b712(++_0x1961aa);}(a462_0x1961,0x8c));const a462_0x21b7=function(_0x19a48f,_0x1961aa){_0x19a48f=_0x19a48f-0x0;let _0x21b712=a462_0x1961[_0x19a48f];return _0x21b712;};const _0x17808a=a462_0x21b7;'use strict';const EventEmitter=require('events'),Notification=require('../../mysqldb')['db'][_0x17808a('0x3')],NotificationEvents=new EventEmitter();NotificationEvents[_0x17808a('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x17808a('0x2')};function emitEvent(_0x38625b){return function(_0xc75d12){const _0x149f9a=a462_0x21b7;NotificationEvents[_0x149f9a('0x0')](_0x38625b+':'+_0xc75d12['id'],_0xc75d12),NotificationEvents[_0x149f9a('0x0')](_0x38625b,_0xc75d12);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Notification['addHook'](e,emitEvent(event));}}module[_0x17808a('0x1')]=NotificationEvents; \ No newline at end of file +const a462_0xc376=['emit','exports','undefined','addHook','update','Notification','remove','setMaxListeners','save'];(function(_0x2de2a1,_0xc376ef){const _0x3de142=function(_0x36b2ec){while(--_0x36b2ec){_0x2de2a1['push'](_0x2de2a1['shift']());}};_0x3de142(++_0xc376ef);}(a462_0xc376,0x8e));const a462_0x3de1=function(_0x2de2a1,_0xc376ef){_0x2de2a1=_0x2de2a1-0x0;let _0x3de142=a462_0xc376[_0x2de2a1];return _0x3de142;};const _0x31204=a462_0x3de1;'use strict';const EventEmitter=require('events'),Notification=require('../../mysqldb')['db'][_0x31204('0x7')],NotificationEvents=new EventEmitter();NotificationEvents[_0x31204('0x0')](0x0);const events={'afterCreate':_0x31204('0x1'),'afterUpdate':_0x31204('0x6'),'afterDestroy':_0x31204('0x8')};function emitEvent(_0x36b2ec){return function(_0x22c98c){const _0x4f4ba6=a462_0x3de1;NotificationEvents[_0x4f4ba6('0x2')](_0x36b2ec+':'+_0x22c98c['id'],_0x22c98c),NotificationEvents['emit'](_0x36b2ec,_0x22c98c);};}for(const e in events){if(typeof events[e]!==_0x31204('0x4')){const event=events[e];Notification[_0x31204('0x5')](e,emitEvent(event));}}module[_0x31204('0x3')]=NotificationEvents; \ No newline at end of file diff --git a/server/api/notification/notification.model.js b/server/api/notification/notification.model.js index 1fd1598..fa393b1 100644 --- a/server/api/notification/notification.model.js +++ b/server/api/notification/notification.model.js @@ -1 +1 @@ -const a463_0x23b2=['exports','utf8mb4','utf8mb4_unicode_ci','notifications','./notification.attributes'];(function(_0x52312d,_0x23b21e){const _0x18b730=function(_0x3289f3){while(--_0x3289f3){_0x52312d['push'](_0x52312d['shift']());}};_0x18b730(++_0x23b21e);}(a463_0x23b2,0x1b0));const a463_0x18b7=function(_0x52312d,_0x23b21e){_0x52312d=_0x52312d-0x0;let _0x18b730=a463_0x23b2[_0x52312d];return _0x18b730;};const _0x2d8c60=a463_0x18b7;'use strict';const attributes=require(_0x2d8c60('0x2'));module[_0x2d8c60('0x3')]=function(_0x3289f3){const _0x5c155f=_0x2d8c60,_0x279fcb=_0x3289f3['define']('Notification',attributes,{'tableName':_0x5c155f('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x5c155f('0x4'),'collate':_0x5c155f('0x0')});return _0x279fcb;}; \ No newline at end of file +const a463_0x2e85=['notifications','Notification','utf8mb4','define'];(function(_0x488d87,_0x2e85cc){const _0x974395=function(_0x59c705){while(--_0x59c705){_0x488d87['push'](_0x488d87['shift']());}};_0x974395(++_0x2e85cc);}(a463_0x2e85,0x14b));const a463_0x9743=function(_0x488d87,_0x2e85cc){_0x488d87=_0x488d87-0x0;let _0x974395=a463_0x2e85[_0x488d87];return _0x974395;};'use strict';const attributes=require('./notification.attributes');module['exports']=function(_0x59c705){const _0x509fe6=a463_0x9743,_0x37cf26=_0x59c705[_0x509fe6('0x0')](_0x509fe6('0x2'),attributes,{'tableName':_0x509fe6('0x1'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x509fe6('0x3'),'collate':'utf8mb4_unicode_ci'});return _0x37cf26;}; \ No newline at end of file diff --git a/server/api/notification/notification.rpc.js b/server/api/notification/notification.rpc.js index 2ac7a60..14fcad5 100644 --- a/server/api/notification/notification.rpc.js +++ b/server/api/notification/notification.rpc.js @@ -1 +1 @@ -const a464_0x37ae=['register','./notification.socket','../../rediscache'];(function(_0xc4aaf9,_0x37ae47){const _0x147e56=function(_0x91d15e){while(--_0x91d15e){_0xc4aaf9['push'](_0xc4aaf9['shift']());}};_0x147e56(++_0x37ae47);}(a464_0x37ae,0x1a8));const a464_0x147e=function(_0xc4aaf9,_0x37ae47){_0xc4aaf9=_0xc4aaf9-0x0;let _0x147e56=a464_0x37ae[_0xc4aaf9];return _0x147e56;};const _0x2286ff=a464_0x147e;'use strict';const {getSocket}=require(_0x2286ff('0x1')),socket=getSocket();require(_0x2286ff('0x0'))[_0x2286ff('0x2')](socket); \ No newline at end of file +const a464_0x32fc=['register','./notification.socket','../../rediscache'];(function(_0x279db1,_0x32fc9b){const _0x2873e1=function(_0x1fd104){while(--_0x1fd104){_0x279db1['push'](_0x279db1['shift']());}};_0x2873e1(++_0x32fc9b);}(a464_0x32fc,0x1ce));const a464_0x2873=function(_0x279db1,_0x32fc9b){_0x279db1=_0x279db1-0x0;let _0x2873e1=a464_0x32fc[_0x279db1];return _0x2873e1;};const _0x4b063b=a464_0x2873;'use strict';const {getSocket}=require(_0x4b063b('0x2')),socket=getSocket();require(_0x4b063b('0x1'))[_0x4b063b('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 5d14c0d..1796ce3 100644 --- a/server/api/notification/notification.socket.js +++ b/server/api/notification/notification.socket.js @@ -1 +1 @@ -const a465_0x2944=['save','remove','emit','length','update'];(function(_0x79bc5f,_0x29449e){const _0xbe5b24=function(_0x76ade1){while(--_0x76ade1){_0x79bc5f['push'](_0x79bc5f['shift']());}};_0xbe5b24(++_0x29449e);}(a465_0x2944,0xe7));const a465_0xbe5b=function(_0x79bc5f,_0x29449e){_0x79bc5f=_0x79bc5f-0x0;let _0xbe5b24=a465_0x2944[_0x79bc5f];return _0xbe5b24;};const _0x61e475=a465_0xbe5b;'use strict';const NotificationEvents=require('./notification.events'),events=[_0x61e475('0x4'),_0x61e475('0x0'),_0x61e475('0x3')];function createListener(_0x76ade1,_0x275176){return function(_0xdc6491){const _0x198aed=a465_0xbe5b;_0x275176[_0x198aed('0x1')](_0x76ade1,_0xdc6491);};}exports['register']=function(_0x61c823){const _0x56c06e=_0x61e475;for(let _0x22b1eb=0x0,_0x3a8882=events[_0x56c06e('0x2')];_0x22b1eb<_0x3a8882;_0x22b1eb++){const _0x2e60ee=events[_0x22b1eb],_0x3fc6b1=createListener('notification:'+_0x2e60ee,_0x61c823);NotificationEvents['on'](_0x2e60ee,_0x3fc6b1);}}; \ No newline at end of file +const a465_0x1534=['update','notification:','length','./notification.events','save'];(function(_0x10ebd5,_0x1534e0){const _0x1f258d=function(_0xe5fb4a){while(--_0xe5fb4a){_0x10ebd5['push'](_0x10ebd5['shift']());}};_0x1f258d(++_0x1534e0);}(a465_0x1534,0x1de));const a465_0x1f25=function(_0x10ebd5,_0x1534e0){_0x10ebd5=_0x10ebd5-0x0;let _0x1f258d=a465_0x1534[_0x10ebd5];return _0x1f258d;};const _0x401874=a465_0x1f25;'use strict';const NotificationEvents=require(_0x401874('0x0')),events=[_0x401874('0x1'),'remove',_0x401874('0x2')];function createListener(_0xe5fb4a,_0x10c4f6){return function(_0x448e65){_0x10c4f6['emit'](_0xe5fb4a,_0x448e65);};}exports['register']=function(_0x1bbc6c){const _0x41f6fc=_0x401874;for(let _0x5d2b7f=0x0,_0x4bcd5f=events[_0x41f6fc('0x4')];_0x5d2b7f<_0x4bcd5f;_0x5d2b7f++){const _0x59d94a=events[_0x5d2b7f],_0xa7e104=createListener(_0x41f6fc('0x3')+_0x59d94a,_0x1bbc6c);NotificationEvents['on'](_0x59d94a,_0xa7e104);}}; \ No newline at end of file diff --git a/server/api/openchannelAccount/index.js b/server/api/openchannelAccount/index.js index 00d9b01..d2a806b 100644 --- a/server/api/openchannelAccount/index.js +++ b/server/api/openchannelAccount/index.js @@ -1 +1 @@ -const a466_0x3471=['isAuthenticated','removeAnswers','/:id/users','getApplications','removeDispositions','post','Router','/:id/canned_answers','destroy','exports','getAgents','index','delete','./openchannelAccount.controller','/:id/dispositions','express','/:id/applications','getAnswers','get','/:id/send','/:id/notify','update','addDisposition','/:id','/:id/interactions','../../components/auth/service','addAnswer','removeAgents'];(function(_0x497152,_0x34710c){const _0x3b4118=function(_0x158877){while(--_0x158877){_0x497152['push'](_0x497152['shift']());}};_0x3b4118(++_0x34710c);}(a466_0x3471,0x17c));const a466_0x3b41=function(_0x497152,_0x34710c){_0x497152=_0x497152-0x0;let _0x3b4118=a466_0x3471[_0x497152];return _0x3b4118;};const _0x2e1087=a466_0x3b41;'use strict';const express=require(_0x2e1087('0x1b')),router=express[_0x2e1087('0x12')](),auth=require(_0x2e1087('0x9')),controller=require(_0x2e1087('0x19'));router[_0x2e1087('0x2')]('/',auth['isAuthenticated'](),controller[_0x2e1087('0x17')]),router[_0x2e1087('0x2')]('/describe',auth[_0x2e1087('0xc')](),controller['describe']),router['get']('/:id',auth[_0x2e1087('0xc')](),controller['show']),router[_0x2e1087('0x2')]('/:id/dispositions',auth[_0x2e1087('0xc')](),controller['getDispositions']),router[_0x2e1087('0x2')](_0x2e1087('0x13'),auth[_0x2e1087('0xc')](),controller[_0x2e1087('0x1')]),router['get'](_0x2e1087('0x0'),auth[_0x2e1087('0xc')](),controller[_0x2e1087('0xf')]),router[_0x2e1087('0x2')](_0x2e1087('0x8'),auth[_0x2e1087('0xc')](),controller['getInteractions']),router['get']('/:id/users',auth[_0x2e1087('0xc')](),controller[_0x2e1087('0x16')]),router[_0x2e1087('0x11')]('/',auth[_0x2e1087('0xc')](),controller['create']),router[_0x2e1087('0x11')](_0x2e1087('0x1a'),auth[_0x2e1087('0xc')](),controller[_0x2e1087('0x6')]),router[_0x2e1087('0x11')]('/:id/canned_answers',auth[_0x2e1087('0xc')](),controller[_0x2e1087('0xa')]),router[_0x2e1087('0x11')](_0x2e1087('0x4'),controller['notify']),router['post'](_0x2e1087('0x0'),auth[_0x2e1087('0xc')](),controller['addApplications']),router[_0x2e1087('0x11')](_0x2e1087('0xe'),auth[_0x2e1087('0xc')](),controller['addAgents']),router['post'](_0x2e1087('0x3'),auth[_0x2e1087('0xc')](),controller['send']),router['put']('/:id',auth[_0x2e1087('0xc')](),controller[_0x2e1087('0x5')]),router[_0x2e1087('0x18')](_0x2e1087('0x7'),auth['isAuthenticated'](),controller[_0x2e1087('0x14')]),router[_0x2e1087('0x18')](_0x2e1087('0x1a'),auth[_0x2e1087('0xc')](),controller[_0x2e1087('0x10')]),router[_0x2e1087('0x18')](_0x2e1087('0x13'),auth[_0x2e1087('0xc')](),controller[_0x2e1087('0xd')]),router[_0x2e1087('0x18')](_0x2e1087('0xe'),auth[_0x2e1087('0xc')](),controller[_0x2e1087('0xb')]),module[_0x2e1087('0x15')]=router; \ No newline at end of file +const a466_0x7deb=['send','addAnswer','/:id/canned_answers','removeAgents','/:id/applications','/describe','getAgents','removeAnswers','get','Router','delete','addApplications','/:id/send','/:id/dispositions','/:id/users','isAuthenticated','update','index','destroy','getInteractions','show','exports','/:id','addDisposition','put','removeDispositions','describe','express','getApplications','/:id/notify','post','./openchannelAccount.controller','getAnswers','/:id/interactions'];(function(_0x53cd50,_0x7deb75){const _0x5d52e1=function(_0x30da2a){while(--_0x30da2a){_0x53cd50['push'](_0x53cd50['shift']());}};_0x5d52e1(++_0x7deb75);}(a466_0x7deb,0x1b8));const a466_0x5d52=function(_0x53cd50,_0x7deb75){_0x53cd50=_0x53cd50-0x0;let _0x5d52e1=a466_0x7deb[_0x53cd50];return _0x5d52e1;};const _0x45ea62=a466_0x5d52;'use strict';const express=require(_0x45ea62('0x1d')),router=express[_0x45ea62('0xb')](),auth=require('../../components/auth/service'),controller=require(_0x45ea62('0x21'));router[_0x45ea62('0xa')]('/',auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x13')]),router[_0x45ea62('0xa')](_0x45ea62('0x7'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x1c')]),router[_0x45ea62('0xa')]('/:id',auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x16')]),router[_0x45ea62('0xa')](_0x45ea62('0xf'),auth['isAuthenticated'](),controller['getDispositions']),router[_0x45ea62('0xa')](_0x45ea62('0x4'),auth['isAuthenticated'](),controller[_0x45ea62('0x0')]),router[_0x45ea62('0xa')]('/:id/applications',auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x1e')]),router[_0x45ea62('0xa')](_0x45ea62('0x1'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x15')]),router[_0x45ea62('0xa')](_0x45ea62('0x10'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x8')]),router[_0x45ea62('0x20')]('/',auth[_0x45ea62('0x11')](),controller['create']),router['post'](_0x45ea62('0xf'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x19')]),router['post'](_0x45ea62('0x4'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x3')]),router[_0x45ea62('0x20')](_0x45ea62('0x1f'),controller['notify']),router[_0x45ea62('0x20')](_0x45ea62('0x6'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0xd')]),router[_0x45ea62('0x20')](_0x45ea62('0x10'),auth[_0x45ea62('0x11')](),controller['addAgents']),router[_0x45ea62('0x20')](_0x45ea62('0xe'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x2')]),router[_0x45ea62('0x1a')]('/:id',auth['isAuthenticated'](),controller[_0x45ea62('0x12')]),router['delete'](_0x45ea62('0x18'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x14')]),router['delete'](_0x45ea62('0xf'),auth['isAuthenticated'](),controller[_0x45ea62('0x1b')]),router[_0x45ea62('0xc')](_0x45ea62('0x4'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x9')]),router['delete'](_0x45ea62('0x10'),auth[_0x45ea62('0x11')](),controller[_0x45ea62('0x5')]),module[_0x45ea62('0x17')]=router; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.attributes.js b/server/api/openchannelAccount/openchannelAccount.attributes.js index e47eecc..79fb67f 100644 --- a/server/api/openchannelAccount/openchannelAccount.attributes.js +++ b/server/api/openchannelAccount/openchannelAccount.attributes.js @@ -1 +1 @@ -const a467_0x12f6=['sequelize','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','generate','INTEGER','STRING','setDataValue','mandatoryDisposition','exports','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','mandatoryDispositionPauseId','BOOLEAN'];(function(_0xffd4e4,_0x12f617){const _0x39382e=function(_0x90c560){while(--_0x90c560){_0xffd4e4['push'](_0xffd4e4['shift']());}};_0x39382e(++_0x12f617);}(a467_0x12f6,0xa8));const a467_0x3938=function(_0xffd4e4,_0x12f617){_0xffd4e4=_0xffd4e4-0x0;let _0x39382e=a467_0x12f6[_0xffd4e4];return _0x39382e;};const _0x427b77=a467_0x3938;'use strict';const Sequelize=require(_0x427b77('0x8')),rs=require('randomstring');module[_0x427b77('0x4')]={'name':{'type':Sequelize[_0x427b77('0x1')],'unique':'name','allowNull':![]},'description':{'type':Sequelize[_0x427b77('0x1')]},'token':{'type':Sequelize[_0x427b77('0x1')],'defaultValue':function(){const _0xa50bf7=_0x427b77;return rs[_0xa50bf7('0xa')]();}},'replyUri':{'type':Sequelize[_0x427b77('0x1')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x427b77('0x1')],'allowNull':![]},'notificationTemplate':{'type':Sequelize['TEXT'],'defaultValue':function(){const _0x4a1dbd=_0x427b77;return _0x4a1dbd('0x9');}},'notificationSound':{'type':Sequelize[_0x427b77('0x7')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x427b77('0x7')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x427b77('0x1')]},'queueTransfer':{'type':Sequelize[_0x427b77('0x7')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x427b77('0x7')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x427b77('0x0')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x427b77('0x0')],'allowNull':!![],'defaultValue':null,'comment':_0x427b77('0x5')},'mandatoryDisposition':{'type':Sequelize[_0x427b77('0x7')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x90c560){const _0x3829b3=_0x427b77;if(!_0x90c560)this[_0x3829b3('0x2')](_0x3829b3('0x6'),null);this[_0x3829b3('0x2')](_0x3829b3('0x3'),_0x90c560);}}}; \ No newline at end of file +const a467_0x1e7d=['INTEGER','setDataValue','exports','name','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','BOOLEAN','mandatoryDisposition','TEXT','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','STRING'];(function(_0x69816,_0x1e7df6){const _0x7b7ad=function(_0x5676cd){while(--_0x5676cd){_0x69816['push'](_0x69816['shift']());}};_0x7b7ad(++_0x1e7df6);}(a467_0x1e7d,0x1ba));const a467_0x7b7a=function(_0x69816,_0x1e7df6){_0x69816=_0x69816-0x0;let _0x7b7ad=a467_0x1e7d[_0x69816];return _0x7b7ad;};const _0x2c5acb=a467_0x7b7a;'use strict';const Sequelize=require('sequelize'),rs=require('randomstring');module[_0x2c5acb('0x0')]={'name':{'type':Sequelize[_0x2c5acb('0x7')],'unique':_0x2c5acb('0x1'),'allowNull':![]},'description':{'type':Sequelize[_0x2c5acb('0x7')]},'token':{'type':Sequelize[_0x2c5acb('0x7')],'defaultValue':function(){return rs['generate']();}},'replyUri':{'type':Sequelize[_0x2c5acb('0x7')],'validate':{'isUrl':!![]}},'key':{'type':Sequelize[_0x2c5acb('0x7')],'allowNull':![]},'notificationTemplate':{'type':Sequelize[_0x2c5acb('0x5')],'defaultValue':function(){const _0x45c082=_0x2c5acb;return _0x45c082('0x2');}},'notificationSound':{'type':Sequelize[_0x2c5acb('0x3')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x2c5acb('0x3')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'mapKey':{'type':Sequelize[_0x2c5acb('0x7')]},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x2c5acb('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x2c5acb('0x3')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x2c5acb('0x8')],'allowNull':!![],'defaultValue':null,'comment':_0x2c5acb('0x6')},'mandatoryDisposition':{'type':Sequelize[_0x2c5acb('0x3')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x5676cd){const _0x5da5c3=_0x2c5acb;if(!_0x5676cd)this[_0x5da5c3('0x9')]('mandatoryDispositionPauseId',null);this['setDataValue'](_0x5da5c3('0x4'),_0x5676cd);}}}; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.controller.js b/server/api/openchannelAccount/openchannelAccount.controller.js index 6aeccad..d76918b 100644 --- a/server/api/openchannelAccount/openchannelAccount.controller.js +++ b/server/api/openchannelAccount/openchannelAccount.controller.js @@ -1 +1 @@ -const a468_0x4546=['userOpenchannelAccount:remove','getInteractions','updatedAt','CompanyId','getDispositions','unmanaged','orderBy','includes','end','./openchannelAccount.socket','params','UserProfileSection','List','getAgents','role','error','AttachmentId','create','addAnswer','mandatoryDispositionPause','autoclose','close','map','externalUrl','push','firstName','contact','emit','openchannel','show','like','name','CmList','../../config/logger','Tags','difference','account','pick','startRouting','sequelize','ids','list','getAnswers','json','update','set','status','fieldName','notify','removeAgents','intersection','isNil','stack','attributes','ContactId','fields','DESC','*,*,*,*','lodash','CmContact','OpenchannelAccount,\x20%s,\x20%s','applications','asc','../../rediscache','removeDispositions','userOpenchannelAccount:save','OpenchannelApplication','OpenchannelAccountId','client','merge','length','offset','filters','ListId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','OpenchannelInteraction','body','then','Applications','defaults','EventManager','sort','Owner','mapKey','code','agent','OpenchannelAccount','message','OpenchannelAccount,\x20%s,\x20%s,\x20%s','describe','User','destroy','Disposition','UserId','OpenchannelMessage','bulkCreate','from','created','addAgents','count','unshift','threadId','dataValues','user','body\x20is\x20mandatory\x20and\x20not\x20empty','request','send','priority','VIRTUAL','rows','UserProfileResource','include','Pause','sendStatus','includeAll','api','OpenchannelAccounts','rawAttributes','CannedAnswer','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','from\x20is\x20mandatory','info','result','jayson/promise','Contacts','catch','nolimit','filter','type','out','model','messageId','tag','keys','limit','findAndCountAll','where','interaction','undefined','get','order','request\x20sent','removeAnswers','lastName','findOne','getApplications','findAll','options','Messages','query'];(function(_0x50c8cf,_0x454608){const _0x39d3e0=function(_0x524418){while(--_0x524418){_0x50c8cf['push'](_0x50c8cf['shift']());}};_0x39d3e0(++_0x454608);}(a468_0x4546,0x17a));const a468_0x39d3=function(_0x50c8cf,_0x454608){_0x50c8cf=_0x50c8cf-0x0;let _0x39d3e0=a468_0x4546[_0x50c8cf];return _0x39d3e0;};const _0x112ba1=a468_0x39d3;'use strict';const _=require(_0x112ba1('0x82')),qs=require('../../components/parsers/qs'),logger=require(_0x112ba1('0x69'))(_0x112ba1('0x25')),{getSocket}=require(_0x112ba1('0x87')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x112ba1('0x6f'));require(_0x112ba1('0x51'))['register'](socket);const jayson=require(_0x112ba1('0x2d')),client=jayson[_0x112ba1('0x8c')]['http']({'port':0x232c}),client9002=jayson[_0x112ba1('0x8c')]['http']({'port':0x232a});function respondWithRpcPromise(_0x524418,_0x4e5df0,_0x2a1859,_0x416894){return new Promise(function(_0x2d5359,_0x1eeb1b){const _0x33fef0=a468_0x39d3,_0x16656e=_0x416894||client;return _0x16656e[_0x33fef0('0x1b')](_0x524418,_0x2a1859)[_0x33fef0('0x95')](function(_0x5660ce){const _0x27fae8=_0x33fef0;logger[_0x27fae8('0x2b')](_0x27fae8('0x84'),_0x4e5df0,_0x27fae8('0x3f')),logger['debug'](_0x27fae8('0xa'),_0x4e5df0,_0x27fae8('0x3f'),JSON['stringify'](_0x5660ce));if(_0x5660ce[_0x27fae8('0x57')]){if(_0x5660ce[_0x27fae8('0x57')][_0x27fae8('0x6')]===0x1f4)return logger[_0x27fae8('0x57')](_0x27fae8('0x84'),_0x4e5df0,_0x5660ce[_0x27fae8('0x57')][_0x27fae8('0x9')]),_0x1eeb1b(_0x5660ce[_0x27fae8('0x57')][_0x27fae8('0x9')]);return logger[_0x27fae8('0x57')](_0x27fae8('0x84'),_0x4e5df0,_0x5660ce[_0x27fae8('0x57')]['message']),_0x2d5359(_0x5660ce[_0x27fae8('0x57')][_0x27fae8('0x9')]);}else logger[_0x27fae8('0x2b')](_0x27fae8('0x84'),_0x4e5df0,_0x27fae8('0x3f')),_0x2d5359(_0x5660ce[_0x27fae8('0x2c')]['message']);})[_0x33fef0('0x2f')](function(_0x1919e1){const _0x294c9c=_0x33fef0;logger[_0x294c9c('0x57')](_0x294c9c('0x84'),_0x4e5df0,_0x1919e1),_0x1eeb1b(_0x1919e1);});});}function respondWithStatusCode(_0x404400,_0x5755b8){return _0x5755b8=_0x5755b8||0xcc,function(_0x51ae53){const _0x813bf0=a468_0x39d3;if(_0x51ae53)return _0x404400[_0x813bf0('0x23')](_0x5755b8);return _0x404400[_0x813bf0('0x76')](_0x5755b8)[_0x813bf0('0x50')]();};}function respondWithResult(_0x51a475,_0x51810d){return _0x51810d=_0x51810d||0xc8,function(_0x43e66e){const _0x1821e7=a468_0x39d3;if(_0x43e66e)return _0x51a475['status'](_0x51810d)[_0x1821e7('0x73')](_0x43e66e);};}function respondWithFilteredResult(_0x239b11,_0x12f1d9){return function(_0x2cf4c8){const _0x1bf2d5=a468_0x39d3;if(_0x2cf4c8){const _0x55670a=_0x2cf4c8['count'],_0x5344c3=_0x12f1d9['offset'];let _0x53a23c=_0x12f1d9[_0x1bf2d5('0x8f')]+_0x12f1d9[_0x1bf2d5('0x38')],_0x8020ff;return _0x53a23c>=_0x55670a?(_0x53a23c=_0x55670a,_0x8020ff=0xc8):_0x8020ff=0xce,_0x239b11[_0x1bf2d5('0x76')](_0x8020ff),_0x239b11[_0x1bf2d5('0x75')]('Content-Range',_0x5344c3+'-'+_0x53a23c+'/'+_0x55670a)['json'](_0x2cf4c8);}return null;};}function saveUpdates(_0x35a414){return function(_0x1225a8){const _0x44169b=a468_0x39d3;if(_0x1225a8)return _0x1225a8[_0x44169b('0x74')](_0x35a414)[_0x44169b('0x95')](function(_0x5c9713){return _0x5c9713;});return null;};}function removeEntity(_0x1286f8){return function(_0x32e147){const _0x3b4289=a468_0x39d3;if(_0x32e147)return _0x32e147['destroy']()['then'](function(){const _0x4e7902=a468_0x39d3,_0x3751a2=_0x32e147[_0x4e7902('0x3d')]({'plain':!![]}),_0x30a03e=_0x4e7902('0x26');return db['UserProfileResource'][_0x4e7902('0xd')]({'where':{'type':_0x30a03e,'resourceId':_0x3751a2['id']}})[_0x4e7902('0x95')](function(){return _0x32e147;});})[_0x3b4289('0x95')](function(){const _0x4684f7=_0x3b4289;_0x1286f8['status'](0xcc)[_0x4684f7('0x50')]();});};}function handleEntityNotFound(_0x22c1e0){return function(_0x37f0c2){const _0x41ce7f=a468_0x39d3;return!_0x37f0c2&&_0x22c1e0[_0x41ce7f('0x23')](0x194),_0x37f0c2;};}function handleError(_0x31ce13,_0x36a47a){return _0x36a47a=_0x36a47a||0x1f4,function(_0x5a5c2b){const _0x34b6ef=a468_0x39d3;logger[_0x34b6ef('0x57')](_0x5a5c2b[_0x34b6ef('0x7c')]),_0x5a5c2b['name']&&delete _0x5a5c2b[_0x34b6ef('0x67')],_0x31ce13['status'](_0x36a47a)['send'](_0x5a5c2b);};}exports['index']=function(_0x456b20,_0x3a5b36){const _0x186057=_0x112ba1;let _0x2f7439={'include':[{'model':db[_0x186057('0x22')],'as':_0x186057('0x5b')}]};const _0x2e3386={},_0x22d647={'count':0x0,'rows':[]},_0x104680=_[_0x186057('0x5e')](db[_0x186057('0x8')][_0x186057('0x27')],function(_0x162411){const _0x2043c9=_0x186057;return{'name':_0x162411[_0x2043c9('0x77')],'type':_0x162411[_0x2043c9('0x32')]['key']};});_0x2e3386[_0x186057('0x34')]=_[_0x186057('0x5e')](_0x104680,'name'),_0x2e3386['query']=_[_0x186057('0x37')](_0x456b20[_0x186057('0x47')]),_0x2e3386[_0x186057('0x90')]=_[_0x186057('0x7a')](_0x2e3386[_0x186057('0x34')],_0x2e3386[_0x186057('0x47')]),_0x2f7439[_0x186057('0x7d')]=_[_0x186057('0x7a')](_0x2e3386[_0x186057('0x34')],qs[_0x186057('0x7f')](_0x456b20[_0x186057('0x47')][_0x186057('0x7f')])),_0x2f7439[_0x186057('0x7d')]=_0x2f7439[_0x186057('0x7d')][_0x186057('0x8e')]?_0x2f7439[_0x186057('0x7d')]:_0x2e3386[_0x186057('0x34')];typeof _0x456b20['query'][_0x186057('0x30')]===_0x186057('0x3c')&&(_0x2f7439[_0x186057('0x38')]=qs[_0x186057('0x38')](_0x456b20['query'][_0x186057('0x38')]),_0x2f7439[_0x186057('0x8f')]=qs[_0x186057('0x8f')](_0x456b20[_0x186057('0x47')][_0x186057('0x8f')]));_0x2f7439[_0x186057('0x3e')]=qs[_0x186057('0x3')](_0x456b20[_0x186057('0x47')][_0x186057('0x3')]),_0x2f7439[_0x186057('0x3a')]=qs['filters'](_[_0x186057('0x6d')](_0x456b20[_0x186057('0x47')],_0x2e3386[_0x186057('0x90')]),_0x104680);_0x456b20['query'][_0x186057('0x31')]&&(_0x2f7439[_0x186057('0x3a')]=_[_0x186057('0x8d')](_0x2f7439[_0x186057('0x3a')],{[Op['or']]:_['map'](_0x104680,function(_0x5228d0){const _0x450825=_0x186057;if(_0x5228d0[_0x450825('0x32')]!==_0x450825('0x1e')){const _0x10f426={};return _0x10f426[_0x5228d0[_0x450825('0x67')]]={[Op['like']]:'%'+_0x456b20[_0x450825('0x47')][_0x450825('0x31')]+'%'},_0x10f426;}})}));_0x2f7439=_[_0x186057('0x8d')]({},_0x2f7439,_0x456b20[_0x186057('0x45')]);const _0x37cf65={'where':_0x2f7439[_0x186057('0x3a')]};return db[_0x186057('0x8')][_0x186057('0x15')](_0x37cf65)[_0x186057('0x95')](function(_0x1d059f){const _0x2dd3ac=_0x186057;return _0x22d647['count']=_0x1d059f,_0x456b20[_0x2dd3ac('0x47')][_0x2dd3ac('0x24')]&&(_0x2f7439[_0x2dd3ac('0x21')]=[{'all':!![]}]),db['OpenchannelAccount'][_0x2dd3ac('0x44')](_0x2f7439);})[_0x186057('0x95')](function(_0x5a212c){return _0x22d647['rows']=_0x5a212c,_0x22d647;})[_0x186057('0x95')](respondWithFilteredResult(_0x3a5b36,_0x2f7439))[_0x186057('0x2f')](handleError(_0x3a5b36,null));},exports[_0x112ba1('0x65')]=function(_0xd7e808,_0xdadcdc){const _0x41e78e=_0x112ba1;let _0x8856b7={'raw':![],'where':{'id':_0xd7e808[_0x41e78e('0x52')]['id']},'include':[{'model':db['Pause'],'as':_0x41e78e('0x5b')}]};const _0x3b3ea8={};return _0x3b3ea8[_0x41e78e('0x34')]=_[_0x41e78e('0x37')](db[_0x41e78e('0x8')][_0x41e78e('0x27')]),_0x3b3ea8[_0x41e78e('0x47')]=_[_0x41e78e('0x37')](_0xd7e808[_0x41e78e('0x47')]),_0x3b3ea8[_0x41e78e('0x90')]=_[_0x41e78e('0x7a')](_0x3b3ea8[_0x41e78e('0x34')],_0x3b3ea8[_0x41e78e('0x47')]),_0x8856b7[_0x41e78e('0x7d')]=_[_0x41e78e('0x7a')](_0x3b3ea8[_0x41e78e('0x34')],qs[_0x41e78e('0x7f')](_0xd7e808[_0x41e78e('0x47')][_0x41e78e('0x7f')])),_0x8856b7[_0x41e78e('0x7d')]=_0x8856b7[_0x41e78e('0x7d')][_0x41e78e('0x8e')]?_0x8856b7[_0x41e78e('0x7d')]:_0x3b3ea8[_0x41e78e('0x34')],_0xd7e808[_0x41e78e('0x47')][_0x41e78e('0x24')]&&(_0x8856b7[_0x41e78e('0x21')]=[{'all':!![]}]),_0x8856b7=_[_0x41e78e('0x8d')]({},_0x8856b7,_0xd7e808[_0x41e78e('0x45')]),db[_0x41e78e('0x8')][_0x41e78e('0x42')](_0x8856b7)[_0x41e78e('0x95')](handleEntityNotFound(_0xdadcdc,null))['then'](respondWithResult(_0xdadcdc,null))[_0x41e78e('0x2f')](handleError(_0xdadcdc,null));},exports['create']=function(_0x1a6b1b,_0x29ce36){const _0x231d8b=_0x112ba1;return db[_0x231d8b('0x8')]['create'](_0x1a6b1b[_0x231d8b('0x94')],{})[_0x231d8b('0x95')](function(_0x5b69ae){const _0x4cf9e7=_0x231d8b,_0x62cfbd=_0x1a6b1b['user'][_0x4cf9e7('0x3d')]({'plain':!![]});if(!_0x62cfbd)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x62cfbd[_0x4cf9e7('0x56')]==='user'){const _0x126db0=_0x5b69ae[_0x4cf9e7('0x3d')]({'plain':!![]}),_0x1f88cd=_0x4cf9e7('0x26');return db[_0x4cf9e7('0x53')][_0x4cf9e7('0x42')]({'where':{'name':_0x1f88cd,'userProfileId':_0x62cfbd['userProfileId']},'raw':!![]})[_0x4cf9e7('0x95')](function(_0x1d814d){const _0x7a3b7a=_0x4cf9e7;return _0x1d814d&&_0x1d814d['autoAssociation']===0x0?db[_0x7a3b7a('0x20')][_0x7a3b7a('0x59')]({'name':_0x126db0['name'],'resourceId':_0x126db0['id'],'type':_0x1d814d['name'],'sectionId':_0x1d814d['id']},{})[_0x7a3b7a('0x95')](function(){return _0x5b69ae;}):_0x5b69ae;})[_0x4cf9e7('0x2f')](function(_0x2b4a74){const _0x74604f=_0x4cf9e7;logger[_0x74604f('0x57')](_0x74604f('0x92'),_0x2b4a74);throw _0x2b4a74;});}return _0x5b69ae;})[_0x231d8b('0x95')](respondWithResult(_0x29ce36,0xc9))[_0x231d8b('0x2f')](handleError(_0x29ce36,null));},exports['update']=function(_0x259419,_0x1b1d73){const _0x481a62=_0x112ba1;return _0x259419[_0x481a62('0x94')]['id']&&delete _0x259419[_0x481a62('0x94')]['id'],db[_0x481a62('0x8')][_0x481a62('0x42')]({'where':{'id':_0x259419['params']['id']},'include':[{'model':db['Pause'],'as':_0x481a62('0x5b')}]})[_0x481a62('0x95')](handleEntityNotFound(_0x1b1d73,null))[_0x481a62('0x95')](saveUpdates(_0x259419[_0x481a62('0x94')],null))[_0x481a62('0x95')](respondWithResult(_0x1b1d73,null))[_0x481a62('0x2f')](handleError(_0x1b1d73,null));},exports['destroy']=function(_0x55de7f,_0x3ca546){const _0x1ab579=_0x112ba1;return db[_0x1ab579('0x8')]['findOne']({'where':{'id':_0x55de7f[_0x1ab579('0x52')]['id']}})['then'](handleEntityNotFound(_0x3ca546,null))[_0x1ab579('0x95')](removeEntity(_0x3ca546,null))[_0x1ab579('0x2f')](handleError(_0x3ca546,null));},exports[_0x112ba1('0xb')]=function(_0x262730,_0x3978c0){const _0x56276d=_0x112ba1;return db[_0x56276d('0x8')]['describe']()[_0x56276d('0x95')](respondWithResult(_0x3978c0,null))[_0x56276d('0x2f')](handleError(_0x3978c0,null));},exports['addDisposition']=function(_0x49b013,_0x1b0c49){const _0x4bfaca=_0x112ba1;return _0x49b013[_0x4bfaca('0x94')]['id']&&delete _0x49b013[_0x4bfaca('0x94')]['id'],db['OpenchannelAccount'][_0x4bfaca('0x42')]({'where':{'id':_0x49b013[_0x4bfaca('0x52')]['id']}})[_0x4bfaca('0x95')](handleEntityNotFound(_0x1b0c49,null))[_0x4bfaca('0x95')](function(_0x13aced){const _0x59f74c=_0x4bfaca;if(_0x13aced)return _0x49b013[_0x59f74c('0x94')][_0x59f74c('0x8b')]=_0x13aced['id'],db[_0x59f74c('0xe')][_0x59f74c('0x59')](_0x49b013['body']);})[_0x4bfaca('0x95')](respondWithResult(_0x1b0c49,null))[_0x4bfaca('0x2f')](handleError(_0x1b0c49,null));},exports[_0x112ba1('0x4c')]=function(_0x556816,_0x567686){const _0xa3eb70=_0x112ba1;let _0x4c39c2={'raw':![],'where':{}};const _0xb7ea3={},_0x5b5ab6={'count':0x0,'rows':[]};return db[_0xa3eb70('0x8')]['findOne']({'where':{'id':_0x556816[_0xa3eb70('0x52')]['id']}})[_0xa3eb70('0x95')](handleEntityNotFound(_0x567686,null))[_0xa3eb70('0x95')](function(_0x228e22){const _0x3fb722=_0xa3eb70;if(_0x228e22)return _0xb7ea3[_0x3fb722('0x34')]=_['keys'](db['Disposition']['rawAttributes']),_0xb7ea3[_0x3fb722('0x47')]=_['keys'](_0x556816[_0x3fb722('0x47')]),_0xb7ea3[_0x3fb722('0x90')]=_[_0x3fb722('0x7a')](_0xb7ea3[_0x3fb722('0x34')],_0xb7ea3[_0x3fb722('0x47')]),_0x4c39c2[_0x3fb722('0x7d')]=_[_0x3fb722('0x7a')](_0xb7ea3[_0x3fb722('0x34')],qs[_0x3fb722('0x7f')](_0x556816['query']['fields'])),_0x4c39c2['attributes']=_0x4c39c2[_0x3fb722('0x7d')]['length']?_0x4c39c2[_0x3fb722('0x7d')]:_0xb7ea3[_0x3fb722('0x34')],typeof _0x556816[_0x3fb722('0x47')][_0x3fb722('0x30')]===_0x3fb722('0x3c')&&(_0x4c39c2['limit']=qs[_0x3fb722('0x38')](_0x556816[_0x3fb722('0x47')][_0x3fb722('0x38')]),_0x4c39c2['offset']=qs[_0x3fb722('0x8f')](_0x556816[_0x3fb722('0x47')][_0x3fb722('0x8f')])),_0x4c39c2[_0x3fb722('0x3e')]=qs[_0x3fb722('0x3')](_0x556816[_0x3fb722('0x47')][_0x3fb722('0x3')]),_0x4c39c2['where']=qs[_0x3fb722('0x90')](_[_0x3fb722('0x6d')](_0x556816['query'],_0xb7ea3[_0x3fb722('0x90')])),_0x4c39c2[_0x3fb722('0x3a')][_0x3fb722('0x8b')]=_0x228e22['id'],_0x556816[_0x3fb722('0x47')][_0x3fb722('0x31')]&&(_0x4c39c2[_0x3fb722('0x3a')]=_[_0x3fb722('0x8d')](_0x4c39c2[_0x3fb722('0x3a')],{[Op['or']]:_[_0x3fb722('0x5e')](_0x4c39c2[_0x3fb722('0x7d')],function(_0x322504){const _0x1dd311=_0x3fb722,_0x1f4880={};return _0x1f4880[_0x322504]={[Op[_0x1dd311('0x66')]]:'%'+_0x556816['query'][_0x1dd311('0x31')]+'%'},_0x1f4880;})})),_0x4c39c2=_[_0x3fb722('0x8d')]({},_0x4c39c2,_0x556816[_0x3fb722('0x45')]),db['Disposition'][_0x3fb722('0x15')]({'where':_0x4c39c2[_0x3fb722('0x3a')]})[_0x3fb722('0x95')](function(_0x554627){const _0x244ef7=_0x3fb722;return _0x5b5ab6[_0x244ef7('0x15')]=_0x554627,_0x556816[_0x244ef7('0x47')][_0x244ef7('0x24')]&&(_0x4c39c2[_0x244ef7('0x21')]=[{'all':!![]}]),db['Disposition'][_0x244ef7('0x44')](_0x4c39c2);})[_0x3fb722('0x95')](function(_0x2efaed){const _0xe7c3bc=_0x3fb722;return _0x5b5ab6[_0xe7c3bc('0x1f')]=_0x2efaed,_0x5b5ab6;});})[_0xa3eb70('0x95')](respondWithFilteredResult(_0x567686,_0x4c39c2))[_0xa3eb70('0x2f')](handleError(_0x567686,null));},exports['removeDispositions']=function(_0x808313,_0x29073c){const _0xbe17ac=_0x112ba1;return db[_0xbe17ac('0x8')][_0xbe17ac('0x42')]({'where':{'id':_0x808313[_0xbe17ac('0x52')]['id']}})[_0xbe17ac('0x95')](handleEntityNotFound(_0x29073c,null))[_0xbe17ac('0x95')](function(_0x37fc5d){const _0x5491c9=_0xbe17ac;if(_0x37fc5d)return _0x37fc5d[_0x5491c9('0x88')](_0x808313[_0x5491c9('0x47')]['ids']);})[_0xbe17ac('0x95')](respondWithStatusCode(_0x29073c,null))[_0xbe17ac('0x2f')](handleError(_0x29073c,null));},exports[_0x112ba1('0x5a')]=function(_0x28d53a,_0x1c04ce){const _0x550fd5=_0x112ba1;return _0x28d53a['body']['id']&&delete _0x28d53a[_0x550fd5('0x94')]['id'],db[_0x550fd5('0x8')]['findOne']({'where':{'id':_0x28d53a[_0x550fd5('0x52')]['id']}})['then'](handleEntityNotFound(_0x1c04ce,null))['then'](function(_0x336013){const _0x4f0eb0=_0x550fd5;if(_0x336013)return _0x28d53a[_0x4f0eb0('0x94')][_0x4f0eb0('0x8b')]=_0x336013['id'],db[_0x4f0eb0('0x28')][_0x4f0eb0('0x59')](_0x28d53a[_0x4f0eb0('0x94')]);})[_0x550fd5('0x95')](respondWithResult(_0x1c04ce,null))[_0x550fd5('0x2f')](handleError(_0x1c04ce,null));},exports[_0x112ba1('0x72')]=function(_0x28234b,_0x1861e6){const _0x4bcbfa=_0x112ba1;let _0x256379={'raw':![],'where':{}};const _0x5b35e3={},_0x521522={'count':0x0,'rows':[]};return db[_0x4bcbfa('0x8')][_0x4bcbfa('0x42')]({'where':{'id':_0x28234b[_0x4bcbfa('0x52')]['id']}})[_0x4bcbfa('0x95')](handleEntityNotFound(_0x1861e6,null))[_0x4bcbfa('0x95')](function(_0x4152cd){const _0x1e63f4=_0x4bcbfa;if(_0x4152cd)return _0x5b35e3[_0x1e63f4('0x34')]=_[_0x1e63f4('0x37')](db['CannedAnswer']['rawAttributes']),_0x5b35e3[_0x1e63f4('0x47')]=_[_0x1e63f4('0x37')](_0x28234b[_0x1e63f4('0x47')]),_0x5b35e3[_0x1e63f4('0x90')]=_['intersection'](_0x5b35e3[_0x1e63f4('0x34')],_0x5b35e3[_0x1e63f4('0x47')]),_0x256379[_0x1e63f4('0x7d')]=_[_0x1e63f4('0x7a')](_0x5b35e3[_0x1e63f4('0x34')],qs['fields'](_0x28234b[_0x1e63f4('0x47')][_0x1e63f4('0x7f')])),_0x256379[_0x1e63f4('0x7d')]=_0x256379['attributes'][_0x1e63f4('0x8e')]?_0x256379[_0x1e63f4('0x7d')]:_0x5b35e3[_0x1e63f4('0x34')],typeof _0x28234b['query'][_0x1e63f4('0x30')]===_0x1e63f4('0x3c')&&(_0x256379[_0x1e63f4('0x38')]=qs['limit'](_0x28234b[_0x1e63f4('0x47')][_0x1e63f4('0x38')]),_0x256379['offset']=qs[_0x1e63f4('0x8f')](_0x28234b[_0x1e63f4('0x47')][_0x1e63f4('0x8f')])),_0x256379[_0x1e63f4('0x3e')]=qs[_0x1e63f4('0x3')](_0x28234b[_0x1e63f4('0x47')][_0x1e63f4('0x3')]),_0x256379['where']=qs['filters'](_[_0x1e63f4('0x6d')](_0x28234b[_0x1e63f4('0x47')],_0x5b35e3[_0x1e63f4('0x90')])),_0x256379[_0x1e63f4('0x3a')]['OpenchannelAccountId']=_0x4152cd['id'],_0x28234b['query'][_0x1e63f4('0x31')]&&(_0x256379[_0x1e63f4('0x3a')]=_[_0x1e63f4('0x8d')](_0x256379[_0x1e63f4('0x3a')],{[Op['or']]:_[_0x1e63f4('0x5e')](_0x256379[_0x1e63f4('0x7d')],function(_0x4adf37){const _0x196d72=_0x1e63f4,_0x265f3b={};return _0x265f3b[_0x4adf37]={[Op['like']]:'%'+_0x28234b[_0x196d72('0x47')][_0x196d72('0x31')]+'%'},_0x265f3b;})})),_0x256379=_[_0x1e63f4('0x8d')]({},_0x256379,_0x28234b['options']),db[_0x1e63f4('0x28')][_0x1e63f4('0x15')]({'where':_0x256379[_0x1e63f4('0x3a')]})['then'](function(_0x247ccb){const _0x2520fd=_0x1e63f4;return _0x521522['count']=_0x247ccb,_0x28234b['query'][_0x2520fd('0x24')]&&(_0x256379[_0x2520fd('0x21')]=[{'all':!![]}]),db[_0x2520fd('0x28')][_0x2520fd('0x44')](_0x256379);})[_0x1e63f4('0x95')](function(_0x72b9b9){return _0x521522['rows']=_0x72b9b9,_0x521522;});})[_0x4bcbfa('0x95')](respondWithFilteredResult(_0x1861e6,_0x256379))[_0x4bcbfa('0x2f')](handleError(_0x1861e6,null));},exports['removeAnswers']=function(_0x1c1b83,_0xda5a4f){const _0x2e62ca=_0x112ba1;return db[_0x2e62ca('0x8')][_0x2e62ca('0x42')]({'where':{'id':_0x1c1b83[_0x2e62ca('0x52')]['id']}})['then'](handleEntityNotFound(_0xda5a4f,null))[_0x2e62ca('0x95')](function(_0x41cd8f){const _0x698c46=_0x2e62ca;if(_0x41cd8f)return _0x41cd8f[_0x698c46('0x40')](_0x1c1b83['query'][_0x698c46('0x70')]);})[_0x2e62ca('0x95')](respondWithStatusCode(_0xda5a4f,null))[_0x2e62ca('0x2f')](handleError(_0xda5a4f,null));},exports[_0x112ba1('0x78')]=function(_0x4aa617,_0x28fd75){const _0x3cbf34=_0x112ba1,_0x577e35={'body':_0x4aa617[_0x3cbf34('0x94')],'channel':_0x3cbf34('0x64')};let _0x27f1a8=[],_0x40bef4=[];const _0x22ead1={};let _0x3b83c8=![];return db[_0x3cbf34('0x83')]['describe']()[_0x3cbf34('0x95')](function(_0x32e95a){const _0x105892=_0x3cbf34;if(!_0x32e95a)throw new ValidationError('no\x20available\x20attributes');_0x27f1a8=_[_0x105892('0x6b')](_[_0x105892('0x37')](_0x32e95a),['createdAt',_0x105892('0x4a')]),_0x40bef4=_[_0x105892('0x6b')](_[_0x105892('0x37')](_0x32e95a),['createdAt',_0x105892('0x4a'),_0x105892('0x4b'),_0x105892('0x91')]);_0x4aa617['body']['id']&&delete _0x4aa617[_0x105892('0x94')]['id'];if(_[_0x105892('0x7b')](_0x4aa617[_0x105892('0x94')][_0x105892('0x12')]))throw new ValidationError(_0x105892('0x2a'));if(_['isNil'](_0x4aa617[_0x105892('0x94')][_0x105892('0x94')])||_0x4aa617['body'][_0x105892('0x94')]==='')throw new ValidationError(_0x105892('0x1a'));if(_[_0x105892('0x7b')](_0x4aa617[_0x105892('0x94')][_0x105892('0x5')]))throw new ValidationError('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x40bef4);if(!_[_0x105892('0x4f')](_0x40bef4,_0x4aa617[_0x105892('0x94')][_0x105892('0x5')]))throw new ValidationError(_0x105892('0x29')+_0x40bef4);_0x22ead1[_0x4aa617['body'][_0x105892('0x5')]]=_0x4aa617[_0x105892('0x94')][_0x105892('0x12')];})[_0x3cbf34('0x95')](function(){const _0x57615f=_0x3cbf34;return db[_0x57615f('0x8')]['findOne']({'where':{'id':_0x4aa617['params']['id']},'include':[{'model':db[_0x57615f('0x68')],'as':_0x57615f('0x54'),'include':[{'model':db[_0x57615f('0x83')],'as':_0x57615f('0x2e'),'where':_0x22ead1,'limit':0x1,'order':[[_0x57615f('0x4a'),_0x57615f('0x80')]]}]},{'model':db[_0x57615f('0x8a')],'as':_0x57615f('0x0')}]});})['then'](handleEntityNotFound(_0x28fd75,null))[_0x3cbf34('0x95')](function(_0x2919dc){const _0x1d7fbc=_0x3cbf34;if(_0x2919dc&&_0x2919dc[_0x1d7fbc('0x54')]){_0x577e35[_0x1d7fbc('0x6c')]=_0x2919dc,_0x577e35[_0x1d7fbc('0x85')]=_0x2919dc[_0x1d7fbc('0x0')],_0x577e35[_0x1d7fbc('0x71')]=_0x2919dc[_0x1d7fbc('0x54')],_0x577e35[_0x1d7fbc('0x85')]=_[_0x1d7fbc('0x4e')](_0x577e35['applications'],['priority'],[_0x1d7fbc('0x86')]);_0x577e35[_0x1d7fbc('0x6c')]['Applications']&&delete _0x577e35[_0x1d7fbc('0x6c')]['Applications'];if(_0x577e35['account'][_0x1d7fbc('0x54')]&&_0x577e35[_0x1d7fbc('0x6c')][_0x1d7fbc('0x54')]['Contacts']['length'])return _0x577e35[_0x1d7fbc('0x6c')][_0x1d7fbc('0x54')]['Contacts'][0x0];const _0x35bbc4=_[_0x1d7fbc('0x1')](_0x4aa617['body'],{'firstName':_0x4aa617['body'][_0x1d7fbc('0x12')],'ListId':_0x2919dc['ListId']});return _0x35bbc4[_0x4aa617[_0x1d7fbc('0x94')][_0x1d7fbc('0x5')]]=_0x4aa617[_0x1d7fbc('0x94')][_0x1d7fbc('0x12')],db[_0x1d7fbc('0x83')][_0x1d7fbc('0x59')](_0x35bbc4,{'fields':_0x27f1a8,'raw':!![]});}})[_0x3cbf34('0x95')](handleEntityNotFound(_0x28fd75,null))['then'](function(_0x578cc6){const _0x441a5b=_0x3cbf34;_0x577e35[_0x441a5b('0x62')]=_0x578cc6;if(_0x578cc6){const _0x26844c={'ContactId':_0x578cc6['id'],'OpenchannelAccountId':_0x4aa617[_0x441a5b('0x52')]['id'],'from':(_0x578cc6[_0x441a5b('0x61')]||'')+'\x20'+(_0x578cc6['lastName']||'')},_0x1e55a9={'OpenchannelAccountId':_0x4aa617[_0x441a5b('0x52')]['id'],'closed':![]};if(_0x4aa617[_0x441a5b('0x94')]['threadId'])return _0x1e55a9[_0x441a5b('0x17')]=_0x4aa617['body'][_0x441a5b('0x17')],db[_0x441a5b('0x93')]['findOne']({'where':_0x1e55a9})[_0x441a5b('0x95')](function(_0x4f2601){const _0x5c118f=_0x441a5b;if(_0x4f2601)return[_0x4f2601,![]];return _0x26844c[_0x5c118f('0x17')]=_0x4aa617[_0x5c118f('0x94')][_0x5c118f('0x17')],_0x26844c[_0x5c118f('0x5f')]=_0x4aa617[_0x5c118f('0x94')][_0x5c118f('0x5f')],db[_0x5c118f('0x93')][_0x5c118f('0x59')](_0x26844c)[_0x5c118f('0x95')](function(_0x59c267){return[_0x59c267,!![]];});});else _0x1e55a9[_0x441a5b('0x17')]=null;return _0x1e55a9[_0x441a5b('0x7e')]=_0x578cc6['id'],db[_0x441a5b('0x93')][_0x441a5b('0x42')]({'where':_0x1e55a9})[_0x441a5b('0x95')](function(_0x49cab0){const _0x682424=_0x441a5b;if(_0x49cab0)return[_0x49cab0,![]];return db[_0x682424('0x93')][_0x682424('0x59')](_0x26844c)[_0x682424('0x95')](function(_0x36ae89){return[_0x36ae89,!![]];});});}})[_0x3cbf34('0x95')](function([_0x39d0b4,_0x563cf5]){const _0x35cefc=_0x3cbf34;if(_0x39d0b4){_0x3b83c8=_0x563cf5;if(!_0x563cf5){const _0x4c185f={'from':(_0x577e35[_0x35cefc('0x62')][_0x35cefc('0x61')]||'')+'\x20'+(_0x577e35[_0x35cefc('0x62')][_0x35cefc('0x41')]||'')};return _0x4aa617[_0x35cefc('0x94')]['threadId']&&_0x4aa617[_0x35cefc('0x94')]['messageId']&&_0x4aa617[_0x35cefc('0x94')][_0x35cefc('0x17')]!=_0x4aa617['body'][_0x35cefc('0x35')]&&(_0x4c185f['threadId']=_0x4aa617[_0x35cefc('0x94')][_0x35cefc('0x35')]),_0x39d0b4[_0x35cefc('0x74')](_0x4c185f);}else return _0x39d0b4;}})[_0x3cbf34('0x95')](function(_0x117d90){const _0x1b35a7=_0x3cbf34;return _0x577e35['interaction']=_0x117d90[_0x1b35a7('0x3d')]({'plain':!![]}),_0x577e35[_0x1b35a7('0x3b')][_0x1b35a7('0x13')]=_0x3b83c8,_0x577e35[_0x1b35a7('0x3b')]['created']&&(_0x577e35[_0x1b35a7('0x6c')][_0x1b35a7('0x5c')]&&_0x577e35[_0x1b35a7('0x85')][_0x1b35a7('0x60')]({'id':0x0,'priority':_0x577e35[_0x1b35a7('0x85')]['length']+0x1,'app':_0x1b35a7('0x5d'),'appdata':_0x1b35a7('0x4d'),'interval':_0x1b35a7('0x81')})),db[_0x1b35a7('0x10')][_0x1b35a7('0x59')]({'body':_0x4aa617[_0x1b35a7('0x94')][_0x1b35a7('0x94')],'OpenchannelAccountId':_0x4aa617[_0x1b35a7('0x52')]['id'],'OpenchannelInteractionId':_0x117d90['id'],'direction':'in','ContactId':_0x577e35[_0x1b35a7('0x62')]['id'],'AttachmentId':_0x4aa617[_0x1b35a7('0x94')][_0x1b35a7('0x58')]});})[_0x3cbf34('0x95')](function(_0x1fb5d3){const _0x304b69=_0x3cbf34;_0x577e35[_0x304b69('0x9')]=_0x1fb5d3;if(_0x577e35[_0x304b69('0x3b')][_0x304b69('0xf')])return db['User'][_0x304b69('0x42')]({'attributes':['id',_0x304b69('0x67')],'where':{'id':_0x577e35[_0x304b69('0x3b')][_0x304b69('0xf')]}})[_0x304b69('0x95')](function(_0x1bd5ee){const _0x441f15=_0x304b69;return _0x1bd5ee&&(_0x577e35[_0x441f15('0x85')][_0x441f15('0x16')]({'id':0x0,'priority':0x0,'app':_0x441f15('0x7'),'appdata':_0x1bd5ee['name']+','+(_0x577e35['account']['waitForTheAssignedAgent']||0xa),'interval':'*,*,*,*'}),_0x577e35['forcedOwnership']=![]),respondWithRpcPromise('Start','startRouting',_0x577e35);});return respondWithRpcPromise('Start',_0x304b69('0x6e'),_0x577e35);})[_0x3cbf34('0x95')](function(_0x3fb009){const _0x8fc68b=_0x3cbf34;return respondWithRpcPromise(_0x8fc68b('0x2'),_0x8fc68b('0x2'),{'event':_0x8fc68b('0x78'),'message':_0x3fb009},client9002),_0x3fb009;})['then'](respondWithResult(_0x28fd75,null))[_0x3cbf34('0x2f')](handleError(_0x28fd75,null));},exports['addApplications']=function(_0x1614a9,_0x46cceb){const _0x222677=_0x112ba1;return db[_0x222677('0x8')][_0x222677('0x42')]({'where':{'id':_0x1614a9[_0x222677('0x52')]['id']}})[_0x222677('0x95')](handleEntityNotFound(_0x46cceb,null))[_0x222677('0x95')](function(_0x17847f){const _0x3566bd=_0x222677;if(_0x17847f)return db[_0x3566bd('0x6f')]['transaction'](function(_0x29973a){const _0x207620=_0x3566bd;return db[_0x207620('0x8a')][_0x207620('0xd')]({'where':{'OpenchannelAccountId':_0x1614a9[_0x207620('0x52')]['id']},'transaction':_0x29973a})[_0x207620('0x95')](function(){const _0x4c4e31=_0x207620,_0x10cb19=_['map'](_0x1614a9[_0x4c4e31('0x94')],function(_0x498663){const _0x1ef2c7=_0x4c4e31;return _0x498663['OpenchannelAccountId']=_0x1614a9[_0x1ef2c7('0x52')]['id'],_0x498663;});return db['OpenchannelApplication'][_0x4c4e31('0x11')](_0x10cb19,{'transaction':_0x29973a});});})[_0x3566bd('0x95')](function(){const _0xd9862a=_0x3566bd;return db[_0xd9862a('0x8a')][_0xd9862a('0x39')]({'where':{'OpenchannelAccountId':_0x1614a9[_0xd9862a('0x52')]['id']},'order':_0xd9862a('0x1d')});});})['then'](respondWithResult(_0x46cceb,null))[_0x222677('0x2f')](handleError(_0x46cceb,null));},exports[_0x112ba1('0x43')]=function(_0x3dc0ca,_0x50705e){const _0x5e278f=_0x112ba1;let _0x791d43={};const _0x405258={};let _0x9405c7,_0x1416c5;return db['OpenchannelAccount'][_0x5e278f('0x42')]({'where':{'id':_0x3dc0ca[_0x5e278f('0x52')]['id']}})[_0x5e278f('0x95')](handleEntityNotFound(_0x50705e,null))[_0x5e278f('0x95')](function(_0x4bf3c5){const _0x3d40f3=_0x5e278f;if(_0x4bf3c5)return _0x9405c7=_0x4bf3c5,_0x405258[_0x3d40f3('0x34')]=_[_0x3d40f3('0x37')](db[_0x3d40f3('0x8a')][_0x3d40f3('0x27')]),_0x405258[_0x3d40f3('0x47')]=_['keys'](_0x3dc0ca[_0x3d40f3('0x47')]),_0x405258['filters']=_[_0x3d40f3('0x7a')](_0x405258[_0x3d40f3('0x34')],_0x405258[_0x3d40f3('0x47')]),_0x791d43['attributes']=_['intersection'](_0x405258[_0x3d40f3('0x34')],qs[_0x3d40f3('0x7f')](_0x3dc0ca[_0x3d40f3('0x47')]['fields'])),_0x791d43[_0x3d40f3('0x7d')]=_0x791d43[_0x3d40f3('0x7d')][_0x3d40f3('0x8e')]?_0x791d43[_0x3d40f3('0x7d')]:_0x405258[_0x3d40f3('0x34')],_0x791d43['order']=qs[_0x3d40f3('0x3')](_0x3dc0ca['query'][_0x3d40f3('0x3')]),_0x791d43[_0x3d40f3('0x3a')]=qs[_0x3d40f3('0x90')](_[_0x3d40f3('0x6d')](_0x3dc0ca[_0x3d40f3('0x47')],_0x405258[_0x3d40f3('0x90')])),_0x3dc0ca[_0x3d40f3('0x47')]['filter']&&(_0x791d43['where']=_[_0x3d40f3('0x8d')](_0x791d43[_0x3d40f3('0x3a')],{[Op['or']]:_[_0x3d40f3('0x5e')](_0x791d43[_0x3d40f3('0x7d')],function(_0x5ae1d5){const _0x26eda3=_0x3d40f3,_0x569ac6={};return _0x569ac6[_0x5ae1d5]={[Op[_0x26eda3('0x66')]]:'%'+_0x3dc0ca[_0x26eda3('0x47')][_0x26eda3('0x31')]+'%'},_0x569ac6;})})),_0x791d43=_['merge']({},_0x791d43,_0x3dc0ca[_0x3d40f3('0x45')]),_0x9405c7['getApplications'](_0x791d43);})[_0x5e278f('0x95')](function(_0x12d0a6){const _0x4e5306=_0x5e278f;if(_0x12d0a6)return _0x1416c5=_0x12d0a6['length'],typeof _0x3dc0ca['query'][_0x4e5306('0x30')]===_0x4e5306('0x3c')&&(_0x791d43[_0x4e5306('0x38')]=qs[_0x4e5306('0x38')](_0x3dc0ca['query']['limit']),_0x791d43[_0x4e5306('0x8f')]=qs[_0x4e5306('0x8f')](_0x3dc0ca[_0x4e5306('0x47')][_0x4e5306('0x8f')])),_0x9405c7[_0x4e5306('0x43')](_0x791d43);})[_0x5e278f('0x95')](function(_0x2f94ca){if(_0x2f94ca)return _0x2f94ca?{'count':_0x1416c5,'rows':_0x2f94ca}:null;})['then'](respondWithResult(_0x50705e,null))['catch'](handleError(_0x50705e,null));},exports[_0x112ba1('0x49')]=function(_0x1f6df1,_0x4fdb13){const _0x3d516a=_0x112ba1;let _0x56f151={'raw':![],'where':{}};const _0x5c80de={},_0x34a48d={'count':0x0,'rows':[]};return db[_0x3d516a('0x8')][_0x3d516a('0x42')]({'where':{'id':_0x1f6df1[_0x3d516a('0x52')]['id']}})[_0x3d516a('0x95')](handleEntityNotFound(_0x4fdb13,null))[_0x3d516a('0x95')](function(_0x319a51){const _0x1baac2=_0x3d516a;if(_0x319a51)return _0x5c80de['model']=_[_0x1baac2('0x37')](db[_0x1baac2('0x93')][_0x1baac2('0x27')]),_0x5c80de[_0x1baac2('0x47')]=_[_0x1baac2('0x37')](_0x1f6df1['query']),_0x5c80de['filters']=_[_0x1baac2('0x7a')](_0x5c80de['model'],_0x5c80de['query']),_0x56f151[_0x1baac2('0x7d')]=_[_0x1baac2('0x7a')](_0x5c80de['model'],qs[_0x1baac2('0x7f')](_0x1f6df1[_0x1baac2('0x47')][_0x1baac2('0x7f')])),_0x56f151['attributes']=_0x56f151[_0x1baac2('0x7d')][_0x1baac2('0x8e')]?_0x56f151[_0x1baac2('0x7d')]:_0x5c80de[_0x1baac2('0x34')],typeof _0x1f6df1[_0x1baac2('0x47')]['nolimit']===_0x1baac2('0x3c')&&(_0x56f151[_0x1baac2('0x38')]=qs[_0x1baac2('0x38')](_0x1f6df1['query'][_0x1baac2('0x38')]),_0x56f151['offset']=qs['offset'](_0x1f6df1[_0x1baac2('0x47')][_0x1baac2('0x8f')])),_0x56f151[_0x1baac2('0x3e')]=qs[_0x1baac2('0x3')](_0x1f6df1[_0x1baac2('0x47')]['sort']),_0x56f151[_0x1baac2('0x3a')]=qs['filters'](_[_0x1baac2('0x6d')](_0x1f6df1[_0x1baac2('0x47')],_0x5c80de[_0x1baac2('0x90')])),_0x56f151[_0x1baac2('0x3a')][_0x1baac2('0x8b')]=_0x319a51['id'],_0x1f6df1['query'][_0x1baac2('0x31')]&&(_0x56f151['where']=_['merge'](_0x56f151['where'],{[Op['or']]:_[_0x1baac2('0x5e')](_0x56f151[_0x1baac2('0x7d')],function(_0x495bd2){const _0x84d440=_0x1baac2,_0x3a5159={};return _0x3a5159[_0x495bd2]={[Op[_0x84d440('0x66')]]:'%'+_0x1f6df1[_0x84d440('0x47')][_0x84d440('0x31')]+'%'},_0x3a5159;})})),_0x56f151=_[_0x1baac2('0x8d')]({},_0x56f151,_0x1f6df1[_0x1baac2('0x45')]),db[_0x1baac2('0x93')][_0x1baac2('0x15')]({'where':_0x56f151[_0x1baac2('0x3a')]})[_0x1baac2('0x95')](function(_0xb0f020){const _0x32fefb=_0x1baac2;return _0x34a48d[_0x32fefb('0x15')]=_0xb0f020,_0x1f6df1[_0x32fefb('0x47')][_0x32fefb('0x24')]&&(_0x56f151[_0x32fefb('0x21')]=[{'model':db[_0x32fefb('0x83')],'as':'Contact','required':![]},{'model':db[_0x32fefb('0xc')],'as':_0x32fefb('0x4'),'attributes':['name','fullname','internal'],'required':![]},{'model':db['Tag'],'as':_0x32fefb('0x6a'),'attributes':['id',_0x32fefb('0x67'),'color'],'where':_0x1f6df1[_0x32fefb('0x47')][_0x32fefb('0x36')]?{'id':_0x1f6df1['query'][_0x32fefb('0x36')]}:undefined,'required':_0x1f6df1[_0x32fefb('0x47')][_0x32fefb('0x36')]?!![]:![]}]),db[_0x32fefb('0x93')]['findAll'](_0x56f151);})[_0x1baac2('0x95')](function(_0x245d42){return _0x34a48d['rows']=_0x245d42,_0x34a48d;});})[_0x3d516a('0x95')](respondWithFilteredResult(_0x4fdb13,_0x56f151))['catch'](handleError(_0x4fdb13,null));},exports[_0x112ba1('0x14')]=function(_0x32ccad,_0x38bd91){const _0x2d2b12=_0x112ba1;return db[_0x2d2b12('0x8')][_0x2d2b12('0x42')]({'where':{'id':_0x32ccad[_0x2d2b12('0x52')]['id']}})['then'](function(_0x568b05){const _0x9f22=_0x2d2b12;if(_0x568b05)return _0x568b05['addAgents'](_0x32ccad[_0x9f22('0x94')]['ids'],{'through':_['omit'](_0x32ccad['body'],['ids','id'])})['then'](function(_0x2726a7){const _0x36143c=_0x9f22;for(let _0x243772=0x0;_0x243772<_0x32ccad[_0x36143c('0x94')][_0x36143c('0x70')][_0x36143c('0x8e')];_0x243772+=0x1){socket[_0x36143c('0x63')](_0x36143c('0x89'),{'UserId':_0x32ccad['body'][_0x36143c('0x70')][_0x243772],'OpenchannelAccountId':_0x32ccad[_0x36143c('0x52')]['id']});}return _0x2726a7;});})[_0x2d2b12('0x95')](respondWithResult(_0x38bd91,null))[_0x2d2b12('0x2f')](handleError(_0x38bd91,null));},exports[_0x112ba1('0x79')]=function(_0x35052a,_0x1a089b){const _0xafa169=_0x112ba1;return db[_0xafa169('0x8')][_0xafa169('0x42')]({'where':{'id':_0x35052a[_0xafa169('0x52')]['id']}})['then'](handleEntityNotFound(_0x1a089b,null))[_0xafa169('0x95')](function(_0x24b901){const _0x5c53b9=_0xafa169;if(_0x24b901)return _0x24b901[_0x5c53b9('0x79')](_0x35052a[_0x5c53b9('0x47')][_0x5c53b9('0x70')])[_0x5c53b9('0x95')](function(){const _0x215fc5=_0x5c53b9;if(_['isArray'](_0x35052a[_0x215fc5('0x47')][_0x215fc5('0x70')]))for(let _0x3ae9a4=0x0;_0x3ae9a4<_0x35052a[_0x215fc5('0x47')][_0x215fc5('0x70')][_0x215fc5('0x8e')];_0x3ae9a4+=0x1){socket[_0x215fc5('0x63')](_0x215fc5('0x48'),{'UserId':Number(_0x35052a[_0x215fc5('0x47')][_0x215fc5('0x70')][_0x3ae9a4]),'OpenchannelAccountId':Number(_0x35052a['params']['id'])});}else socket['emit']('userOpenchannelAccount:remove',{'UserId':Number(_0x35052a[_0x215fc5('0x47')][_0x215fc5('0x70')]),'OpenchannelAccountId':Number(_0x35052a[_0x215fc5('0x52')]['id'])});});})[_0xafa169('0x95')](respondWithStatusCode(_0x1a089b,null))['catch'](handleError(_0x1a089b,null));},exports[_0x112ba1('0x55')]=function(_0x34ba92,_0x31d22b){const _0x45c088=_0x112ba1;let _0x11f383={};const _0x7eb9a8={};let _0x2baa7d,_0x2cf71b;return db[_0x45c088('0x8')][_0x45c088('0x42')]({'where':{'id':_0x34ba92['params']['id']}})[_0x45c088('0x95')](handleEntityNotFound(_0x31d22b,null))[_0x45c088('0x95')](function(_0x43564d){const _0x4a6759=_0x45c088;if(_0x43564d)return _0x2baa7d=_0x43564d,_0x7eb9a8['model']=_['keys'](db[_0x4a6759('0xc')][_0x4a6759('0x27')]),_0x7eb9a8['query']=_[_0x4a6759('0x37')](_0x34ba92['query']),_0x7eb9a8[_0x4a6759('0x90')]=_[_0x4a6759('0x7a')](_0x7eb9a8[_0x4a6759('0x34')],_0x7eb9a8['query']),_0x11f383[_0x4a6759('0x7d')]=_[_0x4a6759('0x7a')](_0x7eb9a8['model'],qs['fields'](_0x34ba92[_0x4a6759('0x47')][_0x4a6759('0x7f')])),_0x11f383[_0x4a6759('0x7d')]=_0x11f383[_0x4a6759('0x7d')][_0x4a6759('0x8e')]?_0x11f383['attributes']:_0x7eb9a8[_0x4a6759('0x34')],_0x11f383[_0x4a6759('0x3e')]=qs[_0x4a6759('0x3')](_0x34ba92[_0x4a6759('0x47')][_0x4a6759('0x3')]),_0x11f383[_0x4a6759('0x3a')]=qs['filters'](_[_0x4a6759('0x6d')](_0x34ba92[_0x4a6759('0x47')],_0x7eb9a8[_0x4a6759('0x90')])),_0x34ba92[_0x4a6759('0x47')][_0x4a6759('0x31')]&&(_0x11f383[_0x4a6759('0x3a')]=_[_0x4a6759('0x8d')](_0x11f383[_0x4a6759('0x3a')],{[Op['or']]:_[_0x4a6759('0x5e')](_0x11f383[_0x4a6759('0x7d')],function(_0x5ce626){const _0x5f3c0e=_0x4a6759,_0x8eb7f9={};return _0x8eb7f9[_0x5ce626]={[Op['like']]:'%'+_0x34ba92[_0x5f3c0e('0x47')][_0x5f3c0e('0x31')]+'%'},_0x8eb7f9;})})),_0x11f383=_[_0x4a6759('0x8d')]({},_0x11f383,_0x34ba92[_0x4a6759('0x45')]),_0x2baa7d[_0x4a6759('0x55')](_0x11f383);})[_0x45c088('0x95')](function(_0x590da0){const _0xbab8a0=_0x45c088;if(_0x590da0)return _0x2cf71b=_0x590da0['length'],typeof _0x34ba92[_0xbab8a0('0x47')][_0xbab8a0('0x30')]===_0xbab8a0('0x3c')&&(_0x11f383[_0xbab8a0('0x38')]=qs[_0xbab8a0('0x38')](_0x34ba92['query']['limit']),_0x11f383['offset']=qs['offset'](_0x34ba92[_0xbab8a0('0x47')][_0xbab8a0('0x8f')])),_0x2baa7d[_0xbab8a0('0x55')](_0x11f383);})[_0x45c088('0x95')](function(_0x403c52){if(_0x403c52)return _0x403c52?{'count':_0x2cf71b,'rows':_0x403c52}:null;})[_0x45c088('0x95')](respondWithResult(_0x31d22b,null))[_0x45c088('0x2f')](handleError(_0x31d22b,null));},exports[_0x112ba1('0x1c')]=function(_0xfa8bc7,_0x21a770){const _0x12ec3b=_0x112ba1;let _0x3bdfa9,_0xe89cb6;if(_[_0x12ec3b('0x7b')](_0xfa8bc7['body'][_0x12ec3b('0x94')])||_0xfa8bc7[_0x12ec3b('0x94')][_0x12ec3b('0x94')]==='')throw new ValidationError(_0x12ec3b('0x1a'));if(_[_0x12ec3b('0x7b')](_0xfa8bc7['body']['to'])){}const _0x5a50f5=_0xfa8bc7[_0x12ec3b('0x94')]['to'];return db['OpenchannelAccount'][_0x12ec3b('0x42')]({'where':{'id':_0xfa8bc7[_0x12ec3b('0x52')]['id']}})[_0x12ec3b('0x95')](handleEntityNotFound(_0x21a770,null))['then'](function(_0x3f214a){const _0x8faf21=_0x12ec3b;if(_0x3f214a)return db[_0x8faf21('0x8')][_0x8faf21('0x42')]({'where':{'id':_0x3f214a['id']},'include':[{'model':db[_0x8faf21('0x68')],'as':_0x8faf21('0x54'),'include':[{'model':db['CmContact'],'as':'Contacts','where':{[_0x3f214a['mapKey']]:_0x5a50f5},'limit':0x1,'order':[[_0x8faf21('0x4a'),'DESC']]}]}]})[_0x8faf21('0x95')](handleEntityNotFound(_0x21a770,null))[_0x8faf21('0x95')](function(_0x483038){const _0x173141=_0x8faf21;if(_0x483038&&_0x483038['List']){_0x3bdfa9=_0x483038[_0x173141('0x3d')]({'plain':!![]});if(_0x3bdfa9['List']&&_0x3bdfa9[_0x173141('0x54')][_0x173141('0x2e')]['length'])return _0x3bdfa9['List'][_0x173141('0x2e')][0x0];return db[_0x173141('0x83')][_0x173141('0x59')](_[_0x173141('0x1')](_0xfa8bc7[_0x173141('0x94')],{'firstName':_0x5a50f5,[_0x483038['mapKey']]:_0x5a50f5,'phone':_0x5a50f5,'ListId':_0x3bdfa9['ListId']}));}})[_0x8faf21('0x95')](handleEntityNotFound(_0x21a770,null))[_0x8faf21('0x95')](function(_0x7b9cb4){const _0x35985f=_0x8faf21;if(_0x7b9cb4)return _0xe89cb6=_0x7b9cb4,db[_0x35985f('0x93')]['findOne']({'where':{'ContactId':_0xe89cb6['id'],'closed':![],'OpenchannelAccountId':_0x3bdfa9['id']}})[_0x35985f('0x95')](function(_0x20d6a6){const _0x18e5de=_0x35985f;if(_0x20d6a6)return[_0x20d6a6,![]];return db[_0x18e5de('0x93')][_0x18e5de('0x59')]({'UserId':_0xfa8bc7[_0x18e5de('0x19')]['id'],'ContactId':_0xe89cb6['id'],'OpenchannelAccountId':_0x3bdfa9['id'],'lastMsgDirection':_0x18e5de('0x33'),'Messages':[_['merge'](_0xfa8bc7[_0x18e5de('0x94')],{'read':![],'body':_0xfa8bc7[_0x18e5de('0x94')][_0x18e5de('0x94')],'OpenchannelAccountId':_0x3bdfa9['id'],'UserId':_0xfa8bc7[_0x18e5de('0x19')]['id'],'ContactId':_0xe89cb6['id']})]},{'include':[{'model':db[_0x18e5de('0x10')],'as':_0x18e5de('0x46')}]})['then'](function(_0x365b6d){return[_0x365b6d,!![]];});});})[_0x8faf21('0x95')](function([_0xe4d797,_0x4cee68]){const _0x4e2d95=_0x8faf21;if(_0x4cee68)return _0xe4d797;return db[_0x4e2d95('0x10')]['create'](_[_0x4e2d95('0x8d')](_0xfa8bc7[_0x4e2d95('0x94')],{'read':![],'body':_0xfa8bc7[_0x4e2d95('0x94')]['body'],'OpenchannelAccountId':_0x3bdfa9['id'],'OpenchannelInteractionId':_0xe4d797['id'],'UserId':_0xfa8bc7[_0x4e2d95('0x19')]['id'],'ContactId':_0xe89cb6['id']}))['then'](function(_0x2cfd67){const _0x44f6b4=_0x4e2d95;return _0xe4d797[_0x44f6b4('0x18')]['Messages']=[],_0xe4d797[_0x44f6b4('0x18')][_0x44f6b4('0x46')][_0x44f6b4('0x60')](_0x2cfd67['dataValues']),_0xe4d797;});});})['then'](respondWithResult(_0x21a770,null))[_0x12ec3b('0x2f')](handleError(_0x21a770,null));}; \ No newline at end of file +const a468_0x3658=['findAndCountAll','fullname','set','info','no\x20available\x20attributes','update','User','then','CompanyId','request\x20sent','filter','VIRTUAL','omit','where','filters','register','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','Start','*,*,*,*','Contact','length','getInteractions','Pause','createdAt','userOpenchannelAccount:save','offset','push','addDisposition','Owner','findAll','removeAgents','map','body\x20is\x20mandatory\x20and\x20not\x20empty','mandatoryDispositionPause','includes','OpenchannelAccount,\x20%s,\x20%s','Disposition','merge','account','from','unshift','order','mapKey','sort','isNil','./openchannelAccount.socket','threadId','Unable\x20to\x20retrieve\x20the\x20current\x20user','client','../../components/parsers/qs','Contacts','userProfileId','ids','AttachmentId','../../mysqldb','lastName','json','removeDispositions','error','getAgents','role','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','catch','emit','autoAssociation','transaction','params','show','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','rawAttributes','removeAnswers','api','startRouting','messageId','pick','OpenchannelApplication','Applications','describe','destroy','priority','like','jayson/promise','lodash','tag','http','agent','out','body','UserProfileSection','orderBy','Messages','name','limit','firstName','../../rediscache','ListId','getDispositions','CmContact','request','message','OpenchannelInteraction','fields','count','applications','code','openchannel','sequelize','getAnswers','contact','sendStatus','create','updatedAt','undefined','notify','getApplications','status','addApplications','isArray','ContactId','type','externalUrl','from\x20is\x20mandatory','interaction','unmanaged','difference','Tags','OpenchannelAccounts','dataValues','rows','keys','findOne','include','intersection','CannedAnswer','nolimit','addAgents','query','attributes','List','model','color','OpenchannelAccount','userOpenchannelAccount:remove','debug','EventManager','send','OpenchannelMessage','OpenchannelAccountId','key','defaults','includeAll','created','options','get','user','waitForTheAssignedAgent','close','CmList'];(function(_0x2a2f4c,_0x3658f9){const _0x54a141=function(_0x247897){while(--_0x247897){_0x2a2f4c['push'](_0x2a2f4c['shift']());}};_0x54a141(++_0x3658f9);}(a468_0x3658,0x15a));const a468_0x54a1=function(_0x2a2f4c,_0x3658f9){_0x2a2f4c=_0x2a2f4c-0x0;let _0x54a141=a468_0x3658[_0x2a2f4c];return _0x54a141;};const _0x18926e=a468_0x54a1;'use strict';const _=require(_0x18926e('0x34')),qs=require(_0x18926e('0x13')),logger=require('../../config/logger')(_0x18926e('0x29')),{getSocket}=require(_0x18926e('0x40')),socket=getSocket(),db=require(_0x18926e('0x18'))['db'],{Op,ValidationError}=require(_0x18926e('0x4c'));require(_0x18926e('0xf'))[_0x18926e('0x8f')](socket);const jayson=require(_0x18926e('0x33')),client=jayson[_0x18926e('0x12')][_0x18926e('0x36')]({'port':0x232c}),client9002=jayson[_0x18926e('0x12')][_0x18926e('0x36')]({'port':0x232a});function respondWithRpcPromise(_0x247897,_0x59c25c,_0x474cb1,_0x21f238){return new Promise(function(_0x439629,_0x31ca94){const _0x128ca3=a468_0x54a1,_0x4d85e8=_0x21f238||client;return _0x4d85e8[_0x128ca3('0x44')](_0x247897,_0x474cb1)[_0x128ca3('0x87')](function(_0xf5a2c2){const _0x2a05d5=_0x128ca3;logger['info']('OpenchannelAccount,\x20%s,\x20%s',_0x59c25c,_0x2a05d5('0x89')),logger[_0x2a05d5('0x71')]('OpenchannelAccount,\x20%s,\x20%s,\x20%s',_0x59c25c,'request\x20sent',JSON['stringify'](_0xf5a2c2));if(_0xf5a2c2['error']){if(_0xf5a2c2[_0x2a05d5('0x1c')][_0x2a05d5('0x4a')]===0x1f4)return logger[_0x2a05d5('0x1c')]('OpenchannelAccount,\x20%s,\x20%s',_0x59c25c,_0xf5a2c2[_0x2a05d5('0x1c')]['message']),_0x31ca94(_0xf5a2c2['error'][_0x2a05d5('0x45')]);return logger[_0x2a05d5('0x1c')]('OpenchannelAccount,\x20%s,\x20%s',_0x59c25c,_0xf5a2c2[_0x2a05d5('0x1c')]['message']),_0x439629(_0xf5a2c2[_0x2a05d5('0x1c')][_0x2a05d5('0x45')]);}else logger[_0x2a05d5('0x83')](_0x2a05d5('0x5'),_0x59c25c,_0x2a05d5('0x89')),_0x439629(_0xf5a2c2['result']['message']);})['catch'](function(_0x506225){const _0x3278a7=_0x128ca3;logger[_0x3278a7('0x1c')](_0x3278a7('0x5'),_0x59c25c,_0x506225),_0x31ca94(_0x506225);});});}function respondWithStatusCode(_0x714974,_0x2f51c5){return _0x2f51c5=_0x2f51c5||0xcc,function(_0x356ae3){const _0x2efb2e=a468_0x54a1;if(_0x356ae3)return _0x714974[_0x2efb2e('0x4f')](_0x2f51c5);return _0x714974['status'](_0x2f51c5)['end']();};}function respondWithResult(_0x4a5bd5,_0x311af0){return _0x311af0=_0x311af0||0xc8,function(_0x53acfb){const _0x5a2c3b=a468_0x54a1;if(_0x53acfb)return _0x4a5bd5[_0x5a2c3b('0x55')](_0x311af0)[_0x5a2c3b('0x1a')](_0x53acfb);};}function respondWithFilteredResult(_0x54a02e,_0x19aa65){return function(_0x342ea6){const _0x12d483=a468_0x54a1;if(_0x342ea6){const _0x9cf90=_0x342ea6[_0x12d483('0x48')],_0x200f13=_0x19aa65['offset'];let _0x4ce94c=_0x19aa65[_0x12d483('0x99')]+_0x19aa65['limit'],_0x5cef37;return _0x4ce94c>=_0x9cf90?(_0x4ce94c=_0x9cf90,_0x5cef37=0xc8):_0x5cef37=0xce,_0x54a02e['status'](_0x5cef37),_0x54a02e[_0x12d483('0x82')]('Content-Range',_0x200f13+'-'+_0x4ce94c+'/'+_0x9cf90)[_0x12d483('0x1a')](_0x342ea6);}return null;};}function saveUpdates(_0x5725e2){return function(_0x3a15fb){const _0x1ff780=a468_0x54a1;if(_0x3a15fb)return _0x3a15fb[_0x1ff780('0x85')](_0x5725e2)[_0x1ff780('0x87')](function(_0x208051){return _0x208051;});return null;};}function removeEntity(_0x43f318){return function(_0x6b4a95){if(_0x6b4a95)return _0x6b4a95['destroy']()['then'](function(){const _0x360f6b=a468_0x54a1,_0x5b988a=_0x6b4a95[_0x360f6b('0x7b')]({'plain':!![]}),_0x500547=_0x360f6b('0x60');return db['UserProfileResource'][_0x360f6b('0x30')]({'where':{'type':_0x500547,'resourceId':_0x5b988a['id']}})[_0x360f6b('0x87')](function(){return _0x6b4a95;});})['then'](function(){_0x43f318['status'](0xcc)['end']();});};}function handleEntityNotFound(_0xa35868){return function(_0x5e30c3){const _0x38ba96=a468_0x54a1;return!_0x5e30c3&&_0xa35868[_0x38ba96('0x4f')](0x194),_0x5e30c3;};}function handleError(_0x2ec27a,_0x30e65a){return _0x30e65a=_0x30e65a||0x1f4,function(_0x87cc74){const _0x3d5031=a468_0x54a1;logger[_0x3d5031('0x1c')](_0x87cc74['stack']),_0x87cc74[_0x3d5031('0x3d')]&&delete _0x87cc74['name'],_0x2ec27a[_0x3d5031('0x55')](_0x30e65a)[_0x3d5031('0x73')](_0x87cc74);};}exports['index']=function(_0x734ebe,_0x9bf3c0){const _0x55972b=_0x18926e;let _0x2d2bec={'include':[{'model':db['Pause'],'as':_0x55972b('0x3')}]};const _0xd93ffb={},_0x160573={'count':0x0,'rows':[]},_0xaae8a0=_[_0x55972b('0x1')](db[_0x55972b('0x6f')][_0x55972b('0x27')],function(_0x216302){const _0x2db302=_0x55972b;return{'name':_0x216302['fieldName'],'type':_0x216302['type'][_0x2db302('0x76')]};});_0xd93ffb['model']=_[_0x55972b('0x1')](_0xaae8a0,_0x55972b('0x3d')),_0xd93ffb[_0x55972b('0x6a')]=_['keys'](_0x734ebe[_0x55972b('0x6a')]),_0xd93ffb[_0x55972b('0x8e')]=_['intersection'](_0xd93ffb[_0x55972b('0x6d')],_0xd93ffb[_0x55972b('0x6a')]),_0x2d2bec[_0x55972b('0x6b')]=_[_0x55972b('0x66')](_0xd93ffb[_0x55972b('0x6d')],qs[_0x55972b('0x47')](_0x734ebe[_0x55972b('0x6a')][_0x55972b('0x47')])),_0x2d2bec[_0x55972b('0x6b')]=_0x2d2bec['attributes'][_0x55972b('0x94')]?_0x2d2bec['attributes']:_0xd93ffb[_0x55972b('0x6d')];typeof _0x734ebe[_0x55972b('0x6a')][_0x55972b('0x68')]===_0x55972b('0x52')&&(_0x2d2bec[_0x55972b('0x3e')]=qs[_0x55972b('0x3e')](_0x734ebe[_0x55972b('0x6a')]['limit']),_0x2d2bec[_0x55972b('0x99')]=qs['offset'](_0x734ebe[_0x55972b('0x6a')][_0x55972b('0x99')]));_0x2d2bec['order']=qs[_0x55972b('0xd')](_0x734ebe[_0x55972b('0x6a')]['sort']),_0x2d2bec[_0x55972b('0x8d')]=qs[_0x55972b('0x8e')](_[_0x55972b('0x2c')](_0x734ebe[_0x55972b('0x6a')],_0xd93ffb['filters']),_0xaae8a0);_0x734ebe[_0x55972b('0x6a')][_0x55972b('0x8a')]&&(_0x2d2bec[_0x55972b('0x8d')]=_[_0x55972b('0x7')](_0x2d2bec['where'],{[Op['or']]:_[_0x55972b('0x1')](_0xaae8a0,function(_0x44690a){const _0x11f020=_0x55972b;if(_0x44690a[_0x11f020('0x59')]!==_0x11f020('0x8b')){const _0xebf030={};return _0xebf030[_0x44690a['name']]={[Op[_0x11f020('0x32')]]:'%'+_0x734ebe[_0x11f020('0x6a')][_0x11f020('0x8a')]+'%'},_0xebf030;}})}));_0x2d2bec=_[_0x55972b('0x7')]({},_0x2d2bec,_0x734ebe[_0x55972b('0x7a')]);const _0x161a4e={'where':_0x2d2bec[_0x55972b('0x8d')]};return db[_0x55972b('0x6f')][_0x55972b('0x48')](_0x161a4e)['then'](function(_0x519f92){const _0x18f3e0=_0x55972b;return _0x160573[_0x18f3e0('0x48')]=_0x519f92,_0x734ebe[_0x18f3e0('0x6a')]['includeAll']&&(_0x2d2bec[_0x18f3e0('0x65')]=[{'all':!![]}]),db[_0x18f3e0('0x6f')][_0x18f3e0('0x9d')](_0x2d2bec);})[_0x55972b('0x87')](function(_0x47a0ec){return _0x160573['rows']=_0x47a0ec,_0x160573;})[_0x55972b('0x87')](respondWithFilteredResult(_0x9bf3c0,_0x2d2bec))[_0x55972b('0x20')](handleError(_0x9bf3c0,null));},exports[_0x18926e('0x25')]=function(_0x5447ef,_0xd58417){const _0x5cb365=_0x18926e;let _0x5a5933={'raw':![],'where':{'id':_0x5447ef[_0x5cb365('0x24')]['id']},'include':[{'model':db[_0x5cb365('0x96')],'as':_0x5cb365('0x3')}]};const _0x2fe630={};return _0x2fe630[_0x5cb365('0x6d')]=_['keys'](db['OpenchannelAccount']['rawAttributes']),_0x2fe630[_0x5cb365('0x6a')]=_[_0x5cb365('0x63')](_0x5447ef['query']),_0x2fe630[_0x5cb365('0x8e')]=_[_0x5cb365('0x66')](_0x2fe630[_0x5cb365('0x6d')],_0x2fe630[_0x5cb365('0x6a')]),_0x5a5933[_0x5cb365('0x6b')]=_[_0x5cb365('0x66')](_0x2fe630['model'],qs[_0x5cb365('0x47')](_0x5447ef[_0x5cb365('0x6a')][_0x5cb365('0x47')])),_0x5a5933[_0x5cb365('0x6b')]=_0x5a5933[_0x5cb365('0x6b')][_0x5cb365('0x94')]?_0x5a5933[_0x5cb365('0x6b')]:_0x2fe630[_0x5cb365('0x6d')],_0x5447ef[_0x5cb365('0x6a')][_0x5cb365('0x78')]&&(_0x5a5933['include']=[{'all':!![]}]),_0x5a5933=_[_0x5cb365('0x7')]({},_0x5a5933,_0x5447ef[_0x5cb365('0x7a')]),db[_0x5cb365('0x6f')]['findOne'](_0x5a5933)[_0x5cb365('0x87')](handleEntityNotFound(_0xd58417,null))['then'](respondWithResult(_0xd58417,null))['catch'](handleError(_0xd58417,null));},exports['create']=function(_0xba7277,_0x16ddbb){const _0x1d2f39=_0x18926e;return db[_0x1d2f39('0x6f')]['create'](_0xba7277[_0x1d2f39('0x39')],{})[_0x1d2f39('0x87')](function(_0x31ccd3){const _0x5d2dcb=_0x1d2f39,_0x56a2d2=_0xba7277[_0x5d2dcb('0x7c')]['get']({'plain':!![]});if(!_0x56a2d2)throw new Error(_0x5d2dcb('0x11'));if(_0x56a2d2[_0x5d2dcb('0x1e')]==='user'){const _0x2445d2=_0x31ccd3['get']({'plain':!![]}),_0x4b1df4='OpenchannelAccounts';return db[_0x5d2dcb('0x3a')][_0x5d2dcb('0x64')]({'where':{'name':_0x4b1df4,'userProfileId':_0x56a2d2[_0x5d2dcb('0x15')]},'raw':!![]})[_0x5d2dcb('0x87')](function(_0x55789b){const _0x131004=_0x5d2dcb;return _0x55789b&&_0x55789b[_0x131004('0x22')]===0x0?db['UserProfileResource'][_0x131004('0x50')]({'name':_0x2445d2[_0x131004('0x3d')],'resourceId':_0x2445d2['id'],'type':_0x55789b['name'],'sectionId':_0x55789b['id']},{})[_0x131004('0x87')](function(){return _0x31ccd3;}):_0x31ccd3;})[_0x5d2dcb('0x20')](function(_0x10e404){const _0x2c44f6=_0x5d2dcb;logger[_0x2c44f6('0x1c')](_0x2c44f6('0x1f'),_0x10e404);throw _0x10e404;});}return _0x31ccd3;})[_0x1d2f39('0x87')](respondWithResult(_0x16ddbb,0xc9))[_0x1d2f39('0x20')](handleError(_0x16ddbb,null));},exports[_0x18926e('0x85')]=function(_0x16df15,_0x298259){const _0x29114e=_0x18926e;return _0x16df15['body']['id']&&delete _0x16df15[_0x29114e('0x39')]['id'],db[_0x29114e('0x6f')][_0x29114e('0x64')]({'where':{'id':_0x16df15[_0x29114e('0x24')]['id']},'include':[{'model':db[_0x29114e('0x96')],'as':_0x29114e('0x3')}]})[_0x29114e('0x87')](handleEntityNotFound(_0x298259,null))[_0x29114e('0x87')](saveUpdates(_0x16df15[_0x29114e('0x39')],null))[_0x29114e('0x87')](respondWithResult(_0x298259,null))[_0x29114e('0x20')](handleError(_0x298259,null));},exports[_0x18926e('0x30')]=function(_0xdd6f3e,_0x2338e5){const _0x2f43c6=_0x18926e;return db['OpenchannelAccount']['findOne']({'where':{'id':_0xdd6f3e[_0x2f43c6('0x24')]['id']}})[_0x2f43c6('0x87')](handleEntityNotFound(_0x2338e5,null))[_0x2f43c6('0x87')](removeEntity(_0x2338e5,null))[_0x2f43c6('0x20')](handleError(_0x2338e5,null));},exports[_0x18926e('0x2f')]=function(_0x2d0ba0,_0x46d733){const _0x3e942b=_0x18926e;return db[_0x3e942b('0x6f')][_0x3e942b('0x2f')]()['then'](respondWithResult(_0x46d733,null))[_0x3e942b('0x20')](handleError(_0x46d733,null));},exports[_0x18926e('0x9b')]=function(_0x2ba3ad,_0x9194b){const _0x14aa62=_0x18926e;return _0x2ba3ad[_0x14aa62('0x39')]['id']&&delete _0x2ba3ad[_0x14aa62('0x39')]['id'],db[_0x14aa62('0x6f')][_0x14aa62('0x64')]({'where':{'id':_0x2ba3ad['params']['id']}})[_0x14aa62('0x87')](handleEntityNotFound(_0x9194b,null))['then'](function(_0x533e2f){const _0x1addb4=_0x14aa62;if(_0x533e2f)return _0x2ba3ad[_0x1addb4('0x39')][_0x1addb4('0x75')]=_0x533e2f['id'],db[_0x1addb4('0x6')][_0x1addb4('0x50')](_0x2ba3ad[_0x1addb4('0x39')]);})['then'](respondWithResult(_0x9194b,null))[_0x14aa62('0x20')](handleError(_0x9194b,null));},exports[_0x18926e('0x42')]=function(_0x27ffde,_0x10cdc6){const _0x318fb6=_0x18926e;let _0x107c38={'raw':![],'where':{}};const _0x4f0321={},_0x10a553={'count':0x0,'rows':[]};return db[_0x318fb6('0x6f')][_0x318fb6('0x64')]({'where':{'id':_0x27ffde[_0x318fb6('0x24')]['id']}})['then'](handleEntityNotFound(_0x10cdc6,null))['then'](function(_0x4f3854){const _0x57a957=_0x318fb6;if(_0x4f3854)return _0x4f0321[_0x57a957('0x6d')]=_['keys'](db[_0x57a957('0x6')][_0x57a957('0x27')]),_0x4f0321[_0x57a957('0x6a')]=_['keys'](_0x27ffde[_0x57a957('0x6a')]),_0x4f0321['filters']=_[_0x57a957('0x66')](_0x4f0321[_0x57a957('0x6d')],_0x4f0321[_0x57a957('0x6a')]),_0x107c38[_0x57a957('0x6b')]=_[_0x57a957('0x66')](_0x4f0321['model'],qs[_0x57a957('0x47')](_0x27ffde[_0x57a957('0x6a')][_0x57a957('0x47')])),_0x107c38[_0x57a957('0x6b')]=_0x107c38[_0x57a957('0x6b')][_0x57a957('0x94')]?_0x107c38['attributes']:_0x4f0321[_0x57a957('0x6d')],typeof _0x27ffde[_0x57a957('0x6a')]['nolimit']==='undefined'&&(_0x107c38[_0x57a957('0x3e')]=qs[_0x57a957('0x3e')](_0x27ffde[_0x57a957('0x6a')]['limit']),_0x107c38[_0x57a957('0x99')]=qs[_0x57a957('0x99')](_0x27ffde[_0x57a957('0x6a')]['offset'])),_0x107c38[_0x57a957('0xb')]=qs[_0x57a957('0xd')](_0x27ffde[_0x57a957('0x6a')]['sort']),_0x107c38[_0x57a957('0x8d')]=qs[_0x57a957('0x8e')](_[_0x57a957('0x2c')](_0x27ffde[_0x57a957('0x6a')],_0x4f0321['filters'])),_0x107c38[_0x57a957('0x8d')][_0x57a957('0x75')]=_0x4f3854['id'],_0x27ffde[_0x57a957('0x6a')]['filter']&&(_0x107c38[_0x57a957('0x8d')]=_[_0x57a957('0x7')](_0x107c38[_0x57a957('0x8d')],{[Op['or']]:_[_0x57a957('0x1')](_0x107c38[_0x57a957('0x6b')],function(_0x54412a){const _0x22c2db=_0x57a957,_0x2f8827={};return _0x2f8827[_0x54412a]={[Op[_0x22c2db('0x32')]]:'%'+_0x27ffde[_0x22c2db('0x6a')][_0x22c2db('0x8a')]+'%'},_0x2f8827;})})),_0x107c38=_[_0x57a957('0x7')]({},_0x107c38,_0x27ffde['options']),db[_0x57a957('0x6')][_0x57a957('0x48')]({'where':_0x107c38[_0x57a957('0x8d')]})[_0x57a957('0x87')](function(_0x75a67b){const _0x4030df=_0x57a957;return _0x10a553[_0x4030df('0x48')]=_0x75a67b,_0x27ffde['query'][_0x4030df('0x78')]&&(_0x107c38['include']=[{'all':!![]}]),db[_0x4030df('0x6')]['findAll'](_0x107c38);})['then'](function(_0x4177c5){const _0x19d5a7=_0x57a957;return _0x10a553[_0x19d5a7('0x62')]=_0x4177c5,_0x10a553;});})[_0x318fb6('0x87')](respondWithFilteredResult(_0x10cdc6,_0x107c38))[_0x318fb6('0x20')](handleError(_0x10cdc6,null));},exports[_0x18926e('0x1b')]=function(_0x23dc2d,_0x223aea){const _0x280650=_0x18926e;return db['OpenchannelAccount'][_0x280650('0x64')]({'where':{'id':_0x23dc2d[_0x280650('0x24')]['id']}})[_0x280650('0x87')](handleEntityNotFound(_0x223aea,null))[_0x280650('0x87')](function(_0x4748c0){const _0x209809=_0x280650;if(_0x4748c0)return _0x4748c0[_0x209809('0x1b')](_0x23dc2d[_0x209809('0x6a')][_0x209809('0x16')]);})[_0x280650('0x87')](respondWithStatusCode(_0x223aea,null))[_0x280650('0x20')](handleError(_0x223aea,null));},exports['addAnswer']=function(_0x221ac6,_0x445837){const _0x47c4ff=_0x18926e;return _0x221ac6['body']['id']&&delete _0x221ac6[_0x47c4ff('0x39')]['id'],db['OpenchannelAccount'][_0x47c4ff('0x64')]({'where':{'id':_0x221ac6[_0x47c4ff('0x24')]['id']}})[_0x47c4ff('0x87')](handleEntityNotFound(_0x445837,null))[_0x47c4ff('0x87')](function(_0x573841){const _0x43c51e=_0x47c4ff;if(_0x573841)return _0x221ac6['body'][_0x43c51e('0x75')]=_0x573841['id'],db[_0x43c51e('0x67')]['create'](_0x221ac6['body']);})[_0x47c4ff('0x87')](respondWithResult(_0x445837,null))['catch'](handleError(_0x445837,null));},exports[_0x18926e('0x4d')]=function(_0x3e196d,_0x1df8b0){const _0xde83bd=_0x18926e;let _0x508ece={'raw':![],'where':{}};const _0x5bcb50={},_0xe9cc0b={'count':0x0,'rows':[]};return db[_0xde83bd('0x6f')]['findOne']({'where':{'id':_0x3e196d['params']['id']}})[_0xde83bd('0x87')](handleEntityNotFound(_0x1df8b0,null))['then'](function(_0x1db1d6){const _0x3bdffa=_0xde83bd;if(_0x1db1d6)return _0x5bcb50[_0x3bdffa('0x6d')]=_[_0x3bdffa('0x63')](db[_0x3bdffa('0x67')]['rawAttributes']),_0x5bcb50[_0x3bdffa('0x6a')]=_[_0x3bdffa('0x63')](_0x3e196d[_0x3bdffa('0x6a')]),_0x5bcb50['filters']=_[_0x3bdffa('0x66')](_0x5bcb50[_0x3bdffa('0x6d')],_0x5bcb50[_0x3bdffa('0x6a')]),_0x508ece[_0x3bdffa('0x6b')]=_[_0x3bdffa('0x66')](_0x5bcb50[_0x3bdffa('0x6d')],qs[_0x3bdffa('0x47')](_0x3e196d[_0x3bdffa('0x6a')]['fields'])),_0x508ece['attributes']=_0x508ece['attributes']['length']?_0x508ece[_0x3bdffa('0x6b')]:_0x5bcb50[_0x3bdffa('0x6d')],typeof _0x3e196d[_0x3bdffa('0x6a')][_0x3bdffa('0x68')]==='undefined'&&(_0x508ece[_0x3bdffa('0x3e')]=qs[_0x3bdffa('0x3e')](_0x3e196d['query'][_0x3bdffa('0x3e')]),_0x508ece['offset']=qs[_0x3bdffa('0x99')](_0x3e196d['query']['offset'])),_0x508ece[_0x3bdffa('0xb')]=qs[_0x3bdffa('0xd')](_0x3e196d[_0x3bdffa('0x6a')][_0x3bdffa('0xd')]),_0x508ece['where']=qs['filters'](_['pick'](_0x3e196d[_0x3bdffa('0x6a')],_0x5bcb50[_0x3bdffa('0x8e')])),_0x508ece[_0x3bdffa('0x8d')][_0x3bdffa('0x75')]=_0x1db1d6['id'],_0x3e196d[_0x3bdffa('0x6a')][_0x3bdffa('0x8a')]&&(_0x508ece[_0x3bdffa('0x8d')]=_[_0x3bdffa('0x7')](_0x508ece[_0x3bdffa('0x8d')],{[Op['or']]:_[_0x3bdffa('0x1')](_0x508ece[_0x3bdffa('0x6b')],function(_0x45ce5a){const _0x3bec12=_0x3bdffa,_0x4196f9={};return _0x4196f9[_0x45ce5a]={[Op[_0x3bec12('0x32')]]:'%'+_0x3e196d[_0x3bec12('0x6a')][_0x3bec12('0x8a')]+'%'},_0x4196f9;})})),_0x508ece=_[_0x3bdffa('0x7')]({},_0x508ece,_0x3e196d[_0x3bdffa('0x7a')]),db['CannedAnswer']['count']({'where':_0x508ece[_0x3bdffa('0x8d')]})[_0x3bdffa('0x87')](function(_0x34e0b0){const _0x2e28de=_0x3bdffa;return _0xe9cc0b[_0x2e28de('0x48')]=_0x34e0b0,_0x3e196d[_0x2e28de('0x6a')][_0x2e28de('0x78')]&&(_0x508ece['include']=[{'all':!![]}]),db[_0x2e28de('0x67')][_0x2e28de('0x9d')](_0x508ece);})[_0x3bdffa('0x87')](function(_0x1d1c57){return _0xe9cc0b['rows']=_0x1d1c57,_0xe9cc0b;});})[_0xde83bd('0x87')](respondWithFilteredResult(_0x1df8b0,_0x508ece))[_0xde83bd('0x20')](handleError(_0x1df8b0,null));},exports[_0x18926e('0x28')]=function(_0x2aab8d,_0x3f1e5d){const _0x47ae75=_0x18926e;return db['OpenchannelAccount'][_0x47ae75('0x64')]({'where':{'id':_0x2aab8d[_0x47ae75('0x24')]['id']}})[_0x47ae75('0x87')](handleEntityNotFound(_0x3f1e5d,null))[_0x47ae75('0x87')](function(_0x5a41da){const _0x3e808e=_0x47ae75;if(_0x5a41da)return _0x5a41da[_0x3e808e('0x28')](_0x2aab8d[_0x3e808e('0x6a')][_0x3e808e('0x16')]);})['then'](respondWithStatusCode(_0x3f1e5d,null))[_0x47ae75('0x20')](handleError(_0x3f1e5d,null));},exports[_0x18926e('0x53')]=function(_0x1d2da4,_0x75ecdb){const _0xef6a1c=_0x18926e,_0x520f77={'body':_0x1d2da4[_0xef6a1c('0x39')],'channel':_0xef6a1c('0x4b')};let _0x1e4b9=[],_0x17020d=[];const _0x28c862={};let _0x298eef=![];return db[_0xef6a1c('0x43')]['describe']()[_0xef6a1c('0x87')](function(_0x500def){const _0x22ab42=_0xef6a1c;if(!_0x500def)throw new ValidationError(_0x22ab42('0x84'));_0x1e4b9=_[_0x22ab42('0x5e')](_['keys'](_0x500def),[_0x22ab42('0x97'),'updatedAt']),_0x17020d=_[_0x22ab42('0x5e')](_[_0x22ab42('0x63')](_0x500def),[_0x22ab42('0x97'),_0x22ab42('0x51'),_0x22ab42('0x88'),_0x22ab42('0x41')]);_0x1d2da4[_0x22ab42('0x39')]['id']&&delete _0x1d2da4[_0x22ab42('0x39')]['id'];if(_[_0x22ab42('0xe')](_0x1d2da4[_0x22ab42('0x39')][_0x22ab42('0x9')]))throw new ValidationError(_0x22ab42('0x5b'));if(_[_0x22ab42('0xe')](_0x1d2da4[_0x22ab42('0x39')][_0x22ab42('0x39')])||_0x1d2da4[_0x22ab42('0x39')][_0x22ab42('0x39')]==='')throw new ValidationError(_0x22ab42('0x2'));if(_[_0x22ab42('0xe')](_0x1d2da4[_0x22ab42('0x39')][_0x22ab42('0xc')]))throw new ValidationError(_0x22ab42('0x90')+_0x17020d);if(!_[_0x22ab42('0x4')](_0x17020d,_0x1d2da4[_0x22ab42('0x39')][_0x22ab42('0xc')]))throw new ValidationError(_0x22ab42('0x26')+_0x17020d);_0x28c862[_0x1d2da4[_0x22ab42('0x39')][_0x22ab42('0xc')]]=_0x1d2da4[_0x22ab42('0x39')]['from'];})[_0xef6a1c('0x87')](function(){const _0x2fcff0=_0xef6a1c;return db[_0x2fcff0('0x6f')][_0x2fcff0('0x64')]({'where':{'id':_0x1d2da4['params']['id']},'include':[{'model':db['CmList'],'as':_0x2fcff0('0x6c'),'include':[{'model':db['CmContact'],'as':_0x2fcff0('0x14'),'where':_0x28c862,'limit':0x1,'order':[['updatedAt','DESC']]}]},{'model':db[_0x2fcff0('0x2d')],'as':_0x2fcff0('0x2e')}]});})[_0xef6a1c('0x87')](handleEntityNotFound(_0x75ecdb,null))[_0xef6a1c('0x87')](function(_0x4e22ae){const _0x31914a=_0xef6a1c;if(_0x4e22ae&&_0x4e22ae['List']){_0x520f77[_0x31914a('0x8')]=_0x4e22ae,_0x520f77['applications']=_0x4e22ae[_0x31914a('0x2e')],_0x520f77['list']=_0x4e22ae[_0x31914a('0x6c')],_0x520f77[_0x31914a('0x49')]=_[_0x31914a('0x3b')](_0x520f77['applications'],[_0x31914a('0x31')],['asc']);_0x520f77[_0x31914a('0x8')][_0x31914a('0x2e')]&&delete _0x520f77[_0x31914a('0x8')][_0x31914a('0x2e')];if(_0x520f77[_0x31914a('0x8')][_0x31914a('0x6c')]&&_0x520f77['account'][_0x31914a('0x6c')]['Contacts'][_0x31914a('0x94')])return _0x520f77[_0x31914a('0x8')][_0x31914a('0x6c')][_0x31914a('0x14')][0x0];const _0x2ee6e1=_['defaults'](_0x1d2da4[_0x31914a('0x39')],{'firstName':_0x1d2da4['body']['from'],'ListId':_0x4e22ae[_0x31914a('0x41')]});return _0x2ee6e1[_0x1d2da4[_0x31914a('0x39')]['mapKey']]=_0x1d2da4['body'][_0x31914a('0x9')],db[_0x31914a('0x43')][_0x31914a('0x50')](_0x2ee6e1,{'fields':_0x1e4b9,'raw':!![]});}})['then'](handleEntityNotFound(_0x75ecdb,null))[_0xef6a1c('0x87')](function(_0x4517bf){const _0x552136=_0xef6a1c;_0x520f77['contact']=_0x4517bf;if(_0x4517bf){const _0x17a7d3={'ContactId':_0x4517bf['id'],'OpenchannelAccountId':_0x1d2da4[_0x552136('0x24')]['id'],'from':(_0x4517bf['firstName']||'')+'\x20'+(_0x4517bf[_0x552136('0x19')]||'')},_0x113fd4={'OpenchannelAccountId':_0x1d2da4[_0x552136('0x24')]['id'],'closed':![]};if(_0x1d2da4[_0x552136('0x39')][_0x552136('0x10')])return _0x113fd4[_0x552136('0x10')]=_0x1d2da4['body'][_0x552136('0x10')],db[_0x552136('0x46')]['findOne']({'where':_0x113fd4})[_0x552136('0x87')](function(_0x3857c9){const _0x1ab0a5=_0x552136;if(_0x3857c9)return[_0x3857c9,![]];return _0x17a7d3[_0x1ab0a5('0x10')]=_0x1d2da4['body'][_0x1ab0a5('0x10')],_0x17a7d3[_0x1ab0a5('0x5a')]=_0x1d2da4[_0x1ab0a5('0x39')][_0x1ab0a5('0x5a')],db[_0x1ab0a5('0x46')][_0x1ab0a5('0x50')](_0x17a7d3)[_0x1ab0a5('0x87')](function(_0x3025fe){return[_0x3025fe,!![]];});});else _0x113fd4[_0x552136('0x10')]=null;return _0x113fd4[_0x552136('0x58')]=_0x4517bf['id'],db[_0x552136('0x46')]['findOne']({'where':_0x113fd4})[_0x552136('0x87')](function(_0x1e336d){const _0x2d06bf=_0x552136;if(_0x1e336d)return[_0x1e336d,![]];return db[_0x2d06bf('0x46')][_0x2d06bf('0x50')](_0x17a7d3)[_0x2d06bf('0x87')](function(_0x11974f){return[_0x11974f,!![]];});});}})[_0xef6a1c('0x87')](function([_0x22046e,_0x46a5d1]){const _0x43339b=_0xef6a1c;if(_0x22046e){_0x298eef=_0x46a5d1;if(!_0x46a5d1){const _0x1e524c={'from':(_0x520f77[_0x43339b('0x4e')][_0x43339b('0x3f')]||'')+'\x20'+(_0x520f77['contact'][_0x43339b('0x19')]||'')};return _0x1d2da4[_0x43339b('0x39')]['threadId']&&_0x1d2da4[_0x43339b('0x39')][_0x43339b('0x2b')]&&_0x1d2da4[_0x43339b('0x39')][_0x43339b('0x10')]!=_0x1d2da4[_0x43339b('0x39')][_0x43339b('0x2b')]&&(_0x1e524c[_0x43339b('0x10')]=_0x1d2da4['body'][_0x43339b('0x2b')]),_0x22046e[_0x43339b('0x85')](_0x1e524c);}else return _0x22046e;}})[_0xef6a1c('0x87')](function(_0x1795a8){const _0x4eaec5=_0xef6a1c;return _0x520f77[_0x4eaec5('0x5c')]=_0x1795a8[_0x4eaec5('0x7b')]({'plain':!![]}),_0x520f77[_0x4eaec5('0x5c')][_0x4eaec5('0x79')]=_0x298eef,_0x520f77[_0x4eaec5('0x5c')][_0x4eaec5('0x79')]&&(_0x520f77[_0x4eaec5('0x8')]['autoclose']&&_0x520f77['applications'][_0x4eaec5('0x9a')]({'id':0x0,'priority':_0x520f77[_0x4eaec5('0x49')][_0x4eaec5('0x94')]+0x1,'app':_0x4eaec5('0x7e'),'appdata':_0x4eaec5('0x5d'),'interval':_0x4eaec5('0x92')})),db[_0x4eaec5('0x74')]['create']({'body':_0x1d2da4[_0x4eaec5('0x39')][_0x4eaec5('0x39')],'OpenchannelAccountId':_0x1d2da4[_0x4eaec5('0x24')]['id'],'OpenchannelInteractionId':_0x1795a8['id'],'direction':'in','ContactId':_0x520f77[_0x4eaec5('0x4e')]['id'],'AttachmentId':_0x1d2da4['body'][_0x4eaec5('0x17')]});})['then'](function(_0x320946){const _0x5d893c=_0xef6a1c;_0x520f77[_0x5d893c('0x45')]=_0x320946;if(_0x520f77[_0x5d893c('0x5c')]['UserId'])return db[_0x5d893c('0x86')][_0x5d893c('0x64')]({'attributes':['id',_0x5d893c('0x3d')],'where':{'id':_0x520f77[_0x5d893c('0x5c')]['UserId']}})[_0x5d893c('0x87')](function(_0xfc3bdb){const _0x1bf2b9=_0x5d893c;return _0xfc3bdb&&(_0x520f77[_0x1bf2b9('0x49')][_0x1bf2b9('0xa')]({'id':0x0,'priority':0x0,'app':_0x1bf2b9('0x37'),'appdata':_0xfc3bdb[_0x1bf2b9('0x3d')]+','+(_0x520f77['account'][_0x1bf2b9('0x7d')]||0xa),'interval':'*,*,*,*'}),_0x520f77['forcedOwnership']=![]),respondWithRpcPromise(_0x1bf2b9('0x91'),_0x1bf2b9('0x2a'),_0x520f77);});return respondWithRpcPromise('Start','startRouting',_0x520f77);})[_0xef6a1c('0x87')](function(_0x2305cf){const _0x3e4e01=_0xef6a1c;return respondWithRpcPromise('EventManager',_0x3e4e01('0x72'),{'event':_0x3e4e01('0x53'),'message':_0x2305cf},client9002),_0x2305cf;})[_0xef6a1c('0x87')](respondWithResult(_0x75ecdb,null))[_0xef6a1c('0x20')](handleError(_0x75ecdb,null));},exports[_0x18926e('0x56')]=function(_0x2655b4,_0x115606){const _0x5b0cdd=_0x18926e;return db[_0x5b0cdd('0x6f')][_0x5b0cdd('0x64')]({'where':{'id':_0x2655b4[_0x5b0cdd('0x24')]['id']}})[_0x5b0cdd('0x87')](handleEntityNotFound(_0x115606,null))[_0x5b0cdd('0x87')](function(_0x2da9df){const _0x29841a=_0x5b0cdd;if(_0x2da9df)return db['sequelize'][_0x29841a('0x23')](function(_0x33648a){const _0x50e605=_0x29841a;return db[_0x50e605('0x2d')][_0x50e605('0x30')]({'where':{'OpenchannelAccountId':_0x2655b4[_0x50e605('0x24')]['id']},'transaction':_0x33648a})[_0x50e605('0x87')](function(){const _0x305c69=_['map'](_0x2655b4['body'],function(_0x183b3e){const _0xf3e547=a468_0x54a1;return _0x183b3e['OpenchannelAccountId']=_0x2655b4[_0xf3e547('0x24')]['id'],_0x183b3e;});return db['OpenchannelApplication']['bulkCreate'](_0x305c69,{'transaction':_0x33648a});});})['then'](function(){const _0xca8cf7=_0x29841a;return db['OpenchannelApplication'][_0xca8cf7('0x80')]({'where':{'OpenchannelAccountId':_0x2655b4[_0xca8cf7('0x24')]['id']},'order':'priority'});});})[_0x5b0cdd('0x87')](respondWithResult(_0x115606,null))[_0x5b0cdd('0x20')](handleError(_0x115606,null));},exports[_0x18926e('0x54')]=function(_0x2836ea,_0x40d5db){const _0x34b4d7=_0x18926e;let _0x382aaa={};const _0x4a13e4={};let _0x36435b,_0x3ef500;return db[_0x34b4d7('0x6f')][_0x34b4d7('0x64')]({'where':{'id':_0x2836ea[_0x34b4d7('0x24')]['id']}})['then'](handleEntityNotFound(_0x40d5db,null))[_0x34b4d7('0x87')](function(_0x28b1ab){const _0x1f8dfe=_0x34b4d7;if(_0x28b1ab)return _0x36435b=_0x28b1ab,_0x4a13e4['model']=_[_0x1f8dfe('0x63')](db['OpenchannelApplication'][_0x1f8dfe('0x27')]),_0x4a13e4[_0x1f8dfe('0x6a')]=_[_0x1f8dfe('0x63')](_0x2836ea[_0x1f8dfe('0x6a')]),_0x4a13e4['filters']=_['intersection'](_0x4a13e4[_0x1f8dfe('0x6d')],_0x4a13e4[_0x1f8dfe('0x6a')]),_0x382aaa['attributes']=_[_0x1f8dfe('0x66')](_0x4a13e4[_0x1f8dfe('0x6d')],qs[_0x1f8dfe('0x47')](_0x2836ea[_0x1f8dfe('0x6a')][_0x1f8dfe('0x47')])),_0x382aaa[_0x1f8dfe('0x6b')]=_0x382aaa[_0x1f8dfe('0x6b')]['length']?_0x382aaa[_0x1f8dfe('0x6b')]:_0x4a13e4[_0x1f8dfe('0x6d')],_0x382aaa[_0x1f8dfe('0xb')]=qs['sort'](_0x2836ea[_0x1f8dfe('0x6a')][_0x1f8dfe('0xd')]),_0x382aaa['where']=qs[_0x1f8dfe('0x8e')](_[_0x1f8dfe('0x2c')](_0x2836ea[_0x1f8dfe('0x6a')],_0x4a13e4[_0x1f8dfe('0x8e')])),_0x2836ea[_0x1f8dfe('0x6a')][_0x1f8dfe('0x8a')]&&(_0x382aaa[_0x1f8dfe('0x8d')]=_[_0x1f8dfe('0x7')](_0x382aaa[_0x1f8dfe('0x8d')],{[Op['or']]:_['map'](_0x382aaa[_0x1f8dfe('0x6b')],function(_0x5ec501){const _0x505fb5=_0x1f8dfe,_0x45859a={};return _0x45859a[_0x5ec501]={[Op[_0x505fb5('0x32')]]:'%'+_0x2836ea[_0x505fb5('0x6a')][_0x505fb5('0x8a')]+'%'},_0x45859a;})})),_0x382aaa=_[_0x1f8dfe('0x7')]({},_0x382aaa,_0x2836ea['options']),_0x36435b[_0x1f8dfe('0x54')](_0x382aaa);})[_0x34b4d7('0x87')](function(_0x394edb){const _0x31837e=_0x34b4d7;if(_0x394edb)return _0x3ef500=_0x394edb[_0x31837e('0x94')],typeof _0x2836ea[_0x31837e('0x6a')][_0x31837e('0x68')]==='undefined'&&(_0x382aaa['limit']=qs[_0x31837e('0x3e')](_0x2836ea[_0x31837e('0x6a')]['limit']),_0x382aaa[_0x31837e('0x99')]=qs[_0x31837e('0x99')](_0x2836ea['query']['offset'])),_0x36435b[_0x31837e('0x54')](_0x382aaa);})[_0x34b4d7('0x87')](function(_0x1ba7d0){if(_0x1ba7d0)return _0x1ba7d0?{'count':_0x3ef500,'rows':_0x1ba7d0}:null;})[_0x34b4d7('0x87')](respondWithResult(_0x40d5db,null))[_0x34b4d7('0x20')](handleError(_0x40d5db,null));},exports[_0x18926e('0x95')]=function(_0x5a0c3f,_0x1fd482){const _0x2b0801=_0x18926e;let _0x24fb56={'raw':![],'where':{}};const _0x55f72a={},_0x56145f={'count':0x0,'rows':[]};return db['OpenchannelAccount'][_0x2b0801('0x64')]({'where':{'id':_0x5a0c3f['params']['id']}})[_0x2b0801('0x87')](handleEntityNotFound(_0x1fd482,null))['then'](function(_0x117a7f){const _0x405d5b=_0x2b0801;if(_0x117a7f)return _0x55f72a['model']=_[_0x405d5b('0x63')](db['OpenchannelInteraction'][_0x405d5b('0x27')]),_0x55f72a['query']=_[_0x405d5b('0x63')](_0x5a0c3f[_0x405d5b('0x6a')]),_0x55f72a['filters']=_['intersection'](_0x55f72a['model'],_0x55f72a[_0x405d5b('0x6a')]),_0x24fb56[_0x405d5b('0x6b')]=_[_0x405d5b('0x66')](_0x55f72a[_0x405d5b('0x6d')],qs['fields'](_0x5a0c3f[_0x405d5b('0x6a')]['fields'])),_0x24fb56['attributes']=_0x24fb56['attributes'][_0x405d5b('0x94')]?_0x24fb56[_0x405d5b('0x6b')]:_0x55f72a[_0x405d5b('0x6d')],typeof _0x5a0c3f[_0x405d5b('0x6a')][_0x405d5b('0x68')]===_0x405d5b('0x52')&&(_0x24fb56[_0x405d5b('0x3e')]=qs[_0x405d5b('0x3e')](_0x5a0c3f[_0x405d5b('0x6a')][_0x405d5b('0x3e')]),_0x24fb56[_0x405d5b('0x99')]=qs[_0x405d5b('0x99')](_0x5a0c3f[_0x405d5b('0x6a')][_0x405d5b('0x99')])),_0x24fb56[_0x405d5b('0xb')]=qs['sort'](_0x5a0c3f[_0x405d5b('0x6a')]['sort']),_0x24fb56[_0x405d5b('0x8d')]=qs[_0x405d5b('0x8e')](_[_0x405d5b('0x2c')](_0x5a0c3f[_0x405d5b('0x6a')],_0x55f72a['filters'])),_0x24fb56[_0x405d5b('0x8d')]['OpenchannelAccountId']=_0x117a7f['id'],_0x5a0c3f[_0x405d5b('0x6a')]['filter']&&(_0x24fb56[_0x405d5b('0x8d')]=_['merge'](_0x24fb56[_0x405d5b('0x8d')],{[Op['or']]:_[_0x405d5b('0x1')](_0x24fb56[_0x405d5b('0x6b')],function(_0xb7486d){const _0x17b49f=_0x405d5b,_0x1076e2={};return _0x1076e2[_0xb7486d]={[Op[_0x17b49f('0x32')]]:'%'+_0x5a0c3f[_0x17b49f('0x6a')][_0x17b49f('0x8a')]+'%'},_0x1076e2;})})),_0x24fb56=_[_0x405d5b('0x7')]({},_0x24fb56,_0x5a0c3f[_0x405d5b('0x7a')]),db[_0x405d5b('0x46')][_0x405d5b('0x48')]({'where':_0x24fb56[_0x405d5b('0x8d')]})[_0x405d5b('0x87')](function(_0x5f5d63){const _0x4a88f2=_0x405d5b;return _0x56145f['count']=_0x5f5d63,_0x5a0c3f[_0x4a88f2('0x6a')][_0x4a88f2('0x78')]&&(_0x24fb56['include']=[{'model':db['CmContact'],'as':_0x4a88f2('0x93'),'required':![]},{'model':db[_0x4a88f2('0x86')],'as':_0x4a88f2('0x9c'),'attributes':['name',_0x4a88f2('0x81'),'internal'],'required':![]},{'model':db['Tag'],'as':_0x4a88f2('0x5f'),'attributes':['id',_0x4a88f2('0x3d'),_0x4a88f2('0x6e')],'where':_0x5a0c3f[_0x4a88f2('0x6a')][_0x4a88f2('0x35')]?{'id':_0x5a0c3f[_0x4a88f2('0x6a')][_0x4a88f2('0x35')]}:undefined,'required':_0x5a0c3f[_0x4a88f2('0x6a')][_0x4a88f2('0x35')]?!![]:![]}]),db[_0x4a88f2('0x46')][_0x4a88f2('0x9d')](_0x24fb56);})['then'](function(_0x57c824){const _0x5a00d6=_0x405d5b;return _0x56145f[_0x5a00d6('0x62')]=_0x57c824,_0x56145f;});})[_0x2b0801('0x87')](respondWithFilteredResult(_0x1fd482,_0x24fb56))['catch'](handleError(_0x1fd482,null));},exports[_0x18926e('0x69')]=function(_0x4d5361,_0xdaa2c7){const _0x4f2508=_0x18926e;return db['OpenchannelAccount'][_0x4f2508('0x64')]({'where':{'id':_0x4d5361['params']['id']}})[_0x4f2508('0x87')](function(_0x106a91){const _0x15300a=_0x4f2508;if(_0x106a91)return _0x106a91[_0x15300a('0x69')](_0x4d5361['body'][_0x15300a('0x16')],{'through':_[_0x15300a('0x8c')](_0x4d5361[_0x15300a('0x39')],[_0x15300a('0x16'),'id'])})[_0x15300a('0x87')](function(_0x57ecb8){const _0x269ea5=_0x15300a;for(let _0x2b20bd=0x0;_0x2b20bd<_0x4d5361['body']['ids'][_0x269ea5('0x94')];_0x2b20bd+=0x1){socket[_0x269ea5('0x21')](_0x269ea5('0x98'),{'UserId':_0x4d5361[_0x269ea5('0x39')][_0x269ea5('0x16')][_0x2b20bd],'OpenchannelAccountId':_0x4d5361[_0x269ea5('0x24')]['id']});}return _0x57ecb8;});})[_0x4f2508('0x87')](respondWithResult(_0xdaa2c7,null))[_0x4f2508('0x20')](handleError(_0xdaa2c7,null));},exports[_0x18926e('0x0')]=function(_0x53c790,_0x1d6fe1){const _0x12f10b=_0x18926e;return db[_0x12f10b('0x6f')]['findOne']({'where':{'id':_0x53c790[_0x12f10b('0x24')]['id']}})['then'](handleEntityNotFound(_0x1d6fe1,null))[_0x12f10b('0x87')](function(_0x2eab2f){const _0x56f539=_0x12f10b;if(_0x2eab2f)return _0x2eab2f[_0x56f539('0x0')](_0x53c790[_0x56f539('0x6a')][_0x56f539('0x16')])[_0x56f539('0x87')](function(){const _0x1c1049=_0x56f539;if(_[_0x1c1049('0x57')](_0x53c790['query'][_0x1c1049('0x16')]))for(let _0x5cd375=0x0;_0x5cd375<_0x53c790[_0x1c1049('0x6a')][_0x1c1049('0x16')]['length'];_0x5cd375+=0x1){socket[_0x1c1049('0x21')](_0x1c1049('0x70'),{'UserId':Number(_0x53c790[_0x1c1049('0x6a')][_0x1c1049('0x16')][_0x5cd375]),'OpenchannelAccountId':Number(_0x53c790[_0x1c1049('0x24')]['id'])});}else socket[_0x1c1049('0x21')](_0x1c1049('0x70'),{'UserId':Number(_0x53c790[_0x1c1049('0x6a')]['ids']),'OpenchannelAccountId':Number(_0x53c790['params']['id'])});});})[_0x12f10b('0x87')](respondWithStatusCode(_0x1d6fe1,null))[_0x12f10b('0x20')](handleError(_0x1d6fe1,null));},exports[_0x18926e('0x1d')]=function(_0x4c269f,_0x561db6){const _0x3b12fb=_0x18926e;let _0x4dfb2f={};const _0x528aee={};let _0x4c2595,_0x3cadce;return db[_0x3b12fb('0x6f')][_0x3b12fb('0x64')]({'where':{'id':_0x4c269f['params']['id']}})[_0x3b12fb('0x87')](handleEntityNotFound(_0x561db6,null))[_0x3b12fb('0x87')](function(_0x1f74cf){const _0x268e1b=_0x3b12fb;if(_0x1f74cf)return _0x4c2595=_0x1f74cf,_0x528aee[_0x268e1b('0x6d')]=_['keys'](db[_0x268e1b('0x86')]['rawAttributes']),_0x528aee[_0x268e1b('0x6a')]=_['keys'](_0x4c269f['query']),_0x528aee[_0x268e1b('0x8e')]=_[_0x268e1b('0x66')](_0x528aee[_0x268e1b('0x6d')],_0x528aee[_0x268e1b('0x6a')]),_0x4dfb2f[_0x268e1b('0x6b')]=_['intersection'](_0x528aee[_0x268e1b('0x6d')],qs[_0x268e1b('0x47')](_0x4c269f[_0x268e1b('0x6a')][_0x268e1b('0x47')])),_0x4dfb2f['attributes']=_0x4dfb2f[_0x268e1b('0x6b')][_0x268e1b('0x94')]?_0x4dfb2f[_0x268e1b('0x6b')]:_0x528aee[_0x268e1b('0x6d')],_0x4dfb2f[_0x268e1b('0xb')]=qs[_0x268e1b('0xd')](_0x4c269f['query'][_0x268e1b('0xd')]),_0x4dfb2f['where']=qs[_0x268e1b('0x8e')](_['pick'](_0x4c269f[_0x268e1b('0x6a')],_0x528aee[_0x268e1b('0x8e')])),_0x4c269f[_0x268e1b('0x6a')][_0x268e1b('0x8a')]&&(_0x4dfb2f[_0x268e1b('0x8d')]=_[_0x268e1b('0x7')](_0x4dfb2f[_0x268e1b('0x8d')],{[Op['or']]:_[_0x268e1b('0x1')](_0x4dfb2f['attributes'],function(_0x546640){const _0x11db9f=_0x268e1b,_0x292550={};return _0x292550[_0x546640]={[Op[_0x11db9f('0x32')]]:'%'+_0x4c269f[_0x11db9f('0x6a')][_0x11db9f('0x8a')]+'%'},_0x292550;})})),_0x4dfb2f=_[_0x268e1b('0x7')]({},_0x4dfb2f,_0x4c269f[_0x268e1b('0x7a')]),_0x4c2595[_0x268e1b('0x1d')](_0x4dfb2f);})[_0x3b12fb('0x87')](function(_0x1c4d03){const _0x4697da=_0x3b12fb;if(_0x1c4d03)return _0x3cadce=_0x1c4d03[_0x4697da('0x94')],typeof _0x4c269f['query'][_0x4697da('0x68')]===_0x4697da('0x52')&&(_0x4dfb2f[_0x4697da('0x3e')]=qs['limit'](_0x4c269f[_0x4697da('0x6a')]['limit']),_0x4dfb2f[_0x4697da('0x99')]=qs[_0x4697da('0x99')](_0x4c269f['query'][_0x4697da('0x99')])),_0x4c2595[_0x4697da('0x1d')](_0x4dfb2f);})['then'](function(_0x2c800c){if(_0x2c800c)return _0x2c800c?{'count':_0x3cadce,'rows':_0x2c800c}:null;})[_0x3b12fb('0x87')](respondWithResult(_0x561db6,null))[_0x3b12fb('0x20')](handleError(_0x561db6,null));},exports['send']=function(_0x5d1ae5,_0x4cbdaf){const _0x515f01=_0x18926e;let _0x2baae9,_0xdd40f2;if(_['isNil'](_0x5d1ae5[_0x515f01('0x39')]['body'])||_0x5d1ae5[_0x515f01('0x39')]['body']==='')throw new ValidationError(_0x515f01('0x2'));if(_[_0x515f01('0xe')](_0x5d1ae5[_0x515f01('0x39')]['to'])){}const _0x43c76=_0x5d1ae5[_0x515f01('0x39')]['to'];return db['OpenchannelAccount']['findOne']({'where':{'id':_0x5d1ae5[_0x515f01('0x24')]['id']}})[_0x515f01('0x87')](handleEntityNotFound(_0x4cbdaf,null))[_0x515f01('0x87')](function(_0xa3e50e){const _0xa92fe5=_0x515f01;if(_0xa3e50e)return db[_0xa92fe5('0x6f')][_0xa92fe5('0x64')]({'where':{'id':_0xa3e50e['id']},'include':[{'model':db[_0xa92fe5('0x7f')],'as':_0xa92fe5('0x6c'),'include':[{'model':db[_0xa92fe5('0x43')],'as':_0xa92fe5('0x14'),'where':{[_0xa3e50e[_0xa92fe5('0xc')]]:_0x43c76},'limit':0x1,'order':[['updatedAt','DESC']]}]}]})[_0xa92fe5('0x87')](handleEntityNotFound(_0x4cbdaf,null))['then'](function(_0x2f0c43){const _0xc8468f=_0xa92fe5;if(_0x2f0c43&&_0x2f0c43[_0xc8468f('0x6c')]){_0x2baae9=_0x2f0c43[_0xc8468f('0x7b')]({'plain':!![]});if(_0x2baae9['List']&&_0x2baae9[_0xc8468f('0x6c')][_0xc8468f('0x14')][_0xc8468f('0x94')])return _0x2baae9[_0xc8468f('0x6c')][_0xc8468f('0x14')][0x0];return db[_0xc8468f('0x43')]['create'](_[_0xc8468f('0x77')](_0x5d1ae5[_0xc8468f('0x39')],{'firstName':_0x43c76,[_0x2f0c43[_0xc8468f('0xc')]]:_0x43c76,'phone':_0x43c76,'ListId':_0x2baae9[_0xc8468f('0x41')]}));}})[_0xa92fe5('0x87')](handleEntityNotFound(_0x4cbdaf,null))[_0xa92fe5('0x87')](function(_0x685114){const _0x1b8f1f=_0xa92fe5;if(_0x685114)return _0xdd40f2=_0x685114,db[_0x1b8f1f('0x46')][_0x1b8f1f('0x64')]({'where':{'ContactId':_0xdd40f2['id'],'closed':![],'OpenchannelAccountId':_0x2baae9['id']}})[_0x1b8f1f('0x87')](function(_0x3c9bf5){const _0x1ddc0b=_0x1b8f1f;if(_0x3c9bf5)return[_0x3c9bf5,![]];return db['OpenchannelInteraction'][_0x1ddc0b('0x50')]({'UserId':_0x5d1ae5[_0x1ddc0b('0x7c')]['id'],'ContactId':_0xdd40f2['id'],'OpenchannelAccountId':_0x2baae9['id'],'lastMsgDirection':_0x1ddc0b('0x38'),'Messages':[_[_0x1ddc0b('0x7')](_0x5d1ae5[_0x1ddc0b('0x39')],{'read':![],'body':_0x5d1ae5[_0x1ddc0b('0x39')][_0x1ddc0b('0x39')],'OpenchannelAccountId':_0x2baae9['id'],'UserId':_0x5d1ae5[_0x1ddc0b('0x7c')]['id'],'ContactId':_0xdd40f2['id']})]},{'include':[{'model':db['OpenchannelMessage'],'as':_0x1ddc0b('0x3c')}]})['then'](function(_0x112c61){return[_0x112c61,!![]];});});})[_0xa92fe5('0x87')](function([_0x187b8c,_0x294220]){const _0x1a2e51=_0xa92fe5;if(_0x294220)return _0x187b8c;return db[_0x1a2e51('0x74')][_0x1a2e51('0x50')](_[_0x1a2e51('0x7')](_0x5d1ae5[_0x1a2e51('0x39')],{'read':![],'body':_0x5d1ae5[_0x1a2e51('0x39')][_0x1a2e51('0x39')],'OpenchannelAccountId':_0x2baae9['id'],'OpenchannelInteractionId':_0x187b8c['id'],'UserId':_0x5d1ae5[_0x1a2e51('0x7c')]['id'],'ContactId':_0xdd40f2['id']}))['then'](function(_0x42d950){const _0x17a99a=_0x1a2e51;return _0x187b8c['dataValues'][_0x17a99a('0x3c')]=[],_0x187b8c[_0x17a99a('0x61')]['Messages']['push'](_0x42d950['dataValues']),_0x187b8c;});});})[_0x515f01('0x87')](respondWithResult(_0x4cbdaf,null))['catch'](handleError(_0x4cbdaf,null));}; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.events.js b/server/api/openchannelAccount/openchannelAccount.events.js index a6b7d69..93494c6 100644 --- a/server/api/openchannelAccount/openchannelAccount.events.js +++ b/server/api/openchannelAccount/openchannelAccount.events.js @@ -1 +1 @@ -const a469_0x3857=['addHook','setMaxListeners','../../mysqldb','update','OpenchannelAccount','events','undefined'];(function(_0x2c5e5e,_0x3857ff){const _0x40d181=function(_0x3806a7){while(--_0x3806a7){_0x2c5e5e['push'](_0x2c5e5e['shift']());}};_0x40d181(++_0x3857ff);}(a469_0x3857,0xeb));const a469_0x40d1=function(_0x2c5e5e,_0x3857ff){_0x2c5e5e=_0x2c5e5e-0x0;let _0x40d181=a469_0x3857[_0x2c5e5e];return _0x40d181;};const _0x51d7d1=a469_0x40d1;'use strict';const EventEmitter=require(_0x51d7d1('0x1')),OpenchannelAccount=require(_0x51d7d1('0x5'))['db'][_0x51d7d1('0x0')],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[_0x51d7d1('0x4')](0x0);const events={'afterCreate':'save','afterUpdate':_0x51d7d1('0x6'),'afterDestroy':'remove'};function emitEvent(_0x3806a7){return function(_0x285ea9){OpenchannelAccountEvents['emit'](_0x3806a7+':'+_0x285ea9['id'],_0x285ea9),OpenchannelAccountEvents['emit'](_0x3806a7,_0x285ea9);};}for(const e in events){if(typeof events[e]!==_0x51d7d1('0x2')){const event=events[e];OpenchannelAccount[_0x51d7d1('0x3')](e,emitEvent(event));}}module['exports']=OpenchannelAccountEvents; \ No newline at end of file +const a469_0x1279=['undefined','exports','OpenchannelAccount','save','update','addHook','setMaxListeners','events','emit','remove','../../mysqldb'];(function(_0x263429,_0x127975){const _0x328bae=function(_0x560eaa){while(--_0x560eaa){_0x263429['push'](_0x263429['shift']());}};_0x328bae(++_0x127975);}(a469_0x1279,0x186));const a469_0x328b=function(_0x263429,_0x127975){_0x263429=_0x263429-0x0;let _0x328bae=a469_0x1279[_0x263429];return _0x328bae;};const _0x2d12a7=a469_0x328b;'use strict';const EventEmitter=require(_0x2d12a7('0x2')),OpenchannelAccount=require(_0x2d12a7('0x5'))['db'][_0x2d12a7('0x8')],OpenchannelAccountEvents=new EventEmitter();OpenchannelAccountEvents[_0x2d12a7('0x1')](0x0);const events={'afterCreate':_0x2d12a7('0x9'),'afterUpdate':_0x2d12a7('0xa'),'afterDestroy':_0x2d12a7('0x4')};function emitEvent(_0x560eaa){return function(_0x51ba34){const _0x5bc179=a469_0x328b;OpenchannelAccountEvents['emit'](_0x560eaa+':'+_0x51ba34['id'],_0x51ba34),OpenchannelAccountEvents[_0x5bc179('0x3')](_0x560eaa,_0x51ba34);};}for(const e in events){if(typeof events[e]!==_0x2d12a7('0x6')){const event=events[e];OpenchannelAccount[_0x2d12a7('0x0')](e,emitEvent(event));}}module[_0x2d12a7('0x7')]=OpenchannelAccountEvents; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.model.js b/server/api/openchannelAccount/openchannelAccount.model.js index 7c58b13..c29fd88 100644 --- a/server/api/openchannelAccount/openchannelAccount.model.js +++ b/server/api/openchannelAccount/openchannelAccount.model.js @@ -1 +1 @@ -const a470_0x4503=['exports','./openchannelAccount.attributes','define','OpenchannelAccount'];(function(_0x281a44,_0x450359){const _0x24ade7=function(_0x150f7f){while(--_0x150f7f){_0x281a44['push'](_0x281a44['shift']());}};_0x24ade7(++_0x450359);}(a470_0x4503,0x15c));const a470_0x24ad=function(_0x281a44,_0x450359){_0x281a44=_0x281a44-0x0;let _0x24ade7=a470_0x4503[_0x281a44];return _0x24ade7;};const _0x83655d=a470_0x24ad;'use strict';const attributes=require(_0x83655d('0x1'));module[_0x83655d('0x0')]=function(_0x150f7f){const _0x260d27=_0x83655d,_0x2c0d03=_0x150f7f[_0x260d27('0x2')](_0x260d27('0x3'),attributes,{'tableName':'openchannel_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2c0d03;}; \ No newline at end of file +const a470_0x1c7e=['./openchannelAccount.attributes','exports','OpenchannelAccount','openchannel_accounts','define'];(function(_0x16d824,_0x1c7ecf){const _0x273695=function(_0x2015ce){while(--_0x2015ce){_0x16d824['push'](_0x16d824['shift']());}};_0x273695(++_0x1c7ecf);}(a470_0x1c7e,0xe1));const a470_0x2736=function(_0x16d824,_0x1c7ecf){_0x16d824=_0x16d824-0x0;let _0x273695=a470_0x1c7e[_0x16d824];return _0x273695;};const _0xa0d79=a470_0x2736;'use strict';const attributes=require(_0xa0d79('0x0'));module[_0xa0d79('0x1')]=function(_0x2015ce){const _0x4f9b61=_0xa0d79,_0x2810cc=_0x2015ce[_0x4f9b61('0x4')](_0x4f9b61('0x2'),attributes,{'tableName':_0x4f9b61('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2810cc;}; \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.rpc.js b/server/api/openchannelAccount/openchannelAccount.rpc.js index 48a410b..f9ade58 100644 --- a/server/api/openchannelAccount/openchannelAccount.rpc.js +++ b/server/api/openchannelAccount/openchannelAccount.rpc.js @@ -1 +1 @@ -const a471_0x2853=['register'];(function(_0x2b414c,_0x2853b3){const _0x2587d5=function(_0x47e3c4){while(--_0x47e3c4){_0x2b414c['push'](_0x2b414c['shift']());}};_0x2587d5(++_0x2853b3);}(a471_0x2853,0x15c));const a471_0x2587=function(_0x2b414c,_0x2853b3){_0x2b414c=_0x2b414c-0x0;let _0x2587d5=a471_0x2853[_0x2b414c];return _0x2587d5;};const _0x39cd67=a471_0x2587;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require('./openchannelAccount.socket')[_0x39cd67('0x0')](socket); \ No newline at end of file +const a471_0x1846=['../../rediscache','./openchannelAccount.socket'];(function(_0x1eba1b,_0x1846e9){const _0x21c3b7=function(_0x11348d){while(--_0x11348d){_0x1eba1b['push'](_0x1eba1b['shift']());}};_0x21c3b7(++_0x1846e9);}(a471_0x1846,0x12f));const a471_0x21c3=function(_0x1eba1b,_0x1846e9){_0x1eba1b=_0x1eba1b-0x0;let _0x21c3b7=a471_0x1846[_0x1eba1b];return _0x21c3b7;};const _0x2b59e3=a471_0x21c3;'use strict';const {getSocket}=require(_0x2b59e3('0x1')),socket=getSocket();require(_0x2b59e3('0x0'))['register'](socket); \ No newline at end of file diff --git a/server/api/openchannelAccount/openchannelAccount.socket.js b/server/api/openchannelAccount/openchannelAccount.socket.js index ee91b6e..a9885a2 100644 --- a/server/api/openchannelAccount/openchannelAccount.socket.js +++ b/server/api/openchannelAccount/openchannelAccount.socket.js @@ -1 +1 @@ -const a472_0x353b=['save','update','./openchannelAccount.events','openchannelAccount:','length'];(function(_0x29fa41,_0x353b85){const _0x15511c=function(_0x53950f){while(--_0x53950f){_0x29fa41['push'](_0x29fa41['shift']());}};_0x15511c(++_0x353b85);}(a472_0x353b,0xb1));const a472_0x1551=function(_0x29fa41,_0x353b85){_0x29fa41=_0x29fa41-0x0;let _0x15511c=a472_0x353b[_0x29fa41];return _0x15511c;};const _0x3b3617=a472_0x1551;'use strict';const OpenchannelAccountEvents=require(_0x3b3617('0x0')),events=[_0x3b3617('0x3'),'remove',_0x3b3617('0x4')];function createListener(_0x53950f,_0xbcc207){return function(_0x5521b8){_0xbcc207['emit'](_0x53950f,_0x5521b8);};}exports['register']=function(_0x406899){const _0x352f92=_0x3b3617;for(let _0x3aea04=0x0,_0x5bef56=events[_0x352f92('0x2')];_0x3aea04<_0x5bef56;_0x3aea04++){const _0x3f6bbf=events[_0x3aea04],_0x51a57b=createListener(_0x352f92('0x1')+_0x3f6bbf,_0x406899);OpenchannelAccountEvents['on'](_0x3f6bbf,_0x51a57b);}}; \ No newline at end of file +const a472_0x3ab4=['remove','save','./openchannelAccount.events','emit','length','update'];(function(_0x46d8e0,_0x3ab4e1){const _0x34b9f5=function(_0x41ecba){while(--_0x41ecba){_0x46d8e0['push'](_0x46d8e0['shift']());}};_0x34b9f5(++_0x3ab4e1);}(a472_0x3ab4,0x12f));const a472_0x34b9=function(_0x46d8e0,_0x3ab4e1){_0x46d8e0=_0x46d8e0-0x0;let _0x34b9f5=a472_0x3ab4[_0x46d8e0];return _0x34b9f5;};const _0x319da4=a472_0x34b9;'use strict';const OpenchannelAccountEvents=require(_0x319da4('0x5')),events=[_0x319da4('0x4'),_0x319da4('0x3'),_0x319da4('0x2')];function createListener(_0x41ecba,_0x22429b){return function(_0x201dad){const _0x54f873=a472_0x34b9;_0x22429b[_0x54f873('0x0')](_0x41ecba,_0x201dad);};}exports['register']=function(_0x1e79f9){const _0x5bdcc0=_0x319da4;for(let _0x2657e0=0x0,_0x5569c3=events[_0x5bdcc0('0x1')];_0x2657e0<_0x5569c3;_0x2657e0++){const _0x581d24=events[_0x2657e0],_0x5d1e43=createListener('openchannelAccount:'+_0x581d24,_0x1e79f9);OpenchannelAccountEvents['on'](_0x581d24,_0x5d1e43);}}; \ No newline at end of file diff --git a/server/api/openchannelApplication/index.js b/server/api/openchannelApplication/index.js index d6e3a22..e7a89e6 100644 --- a/server/api/openchannelApplication/index.js +++ b/server/api/openchannelApplication/index.js @@ -1 +1 @@ -const a473_0x1579=['get','index','./openchannelApplication.controller','put','delete','post','isAuthenticated','express','update','create','/:id','destroy'];(function(_0x28c132,_0x1579cc){const _0xc668f4=function(_0x190fe3){while(--_0x190fe3){_0x28c132['push'](_0x28c132['shift']());}};_0xc668f4(++_0x1579cc);}(a473_0x1579,0x173));const a473_0xc668=function(_0x28c132,_0x1579cc){_0x28c132=_0x28c132-0x0;let _0xc668f4=a473_0x1579[_0x28c132];return _0xc668f4;};const _0x1193e1=a473_0xc668;'use strict';const express=require(_0x1193e1('0x8')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x1193e1('0x3'));router[_0x1193e1('0x1')]('/',auth['isAuthenticated'](),controller[_0x1193e1('0x2')]),router[_0x1193e1('0x1')](_0x1193e1('0xb'),auth[_0x1193e1('0x7')](),controller['show']),router[_0x1193e1('0x6')]('/',auth[_0x1193e1('0x7')](),controller[_0x1193e1('0xa')]),router[_0x1193e1('0x4')](_0x1193e1('0xb'),auth['isAuthenticated'](),controller[_0x1193e1('0x9')]),router[_0x1193e1('0x5')]('/:id',auth[_0x1193e1('0x7')](),controller[_0x1193e1('0x0')]),module['exports']=router; \ No newline at end of file +const a473_0x8a35=['get','/:id','exports','../../components/auth/service','destroy','index','isAuthenticated','create','post','delete','update','express','./openchannelApplication.controller','Router','put','show'];(function(_0x3622bb,_0x8a3521){const _0x40fa89=function(_0x248f13){while(--_0x248f13){_0x3622bb['push'](_0x3622bb['shift']());}};_0x40fa89(++_0x8a3521);}(a473_0x8a35,0x161));const a473_0x40fa=function(_0x3622bb,_0x8a3521){_0x3622bb=_0x3622bb-0x0;let _0x40fa89=a473_0x8a35[_0x3622bb];return _0x40fa89;};const _0x4c6207=a473_0x40fa;'use strict';const express=require(_0x4c6207('0xa')),router=express[_0x4c6207('0xc')](),auth=require(_0x4c6207('0x2')),controller=require(_0x4c6207('0xb'));router[_0x4c6207('0xf')]('/',auth[_0x4c6207('0x5')](),controller[_0x4c6207('0x4')]),router['get'](_0x4c6207('0x0'),auth[_0x4c6207('0x5')](),controller[_0x4c6207('0xe')]),router[_0x4c6207('0x7')]('/',auth['isAuthenticated'](),controller[_0x4c6207('0x6')]),router[_0x4c6207('0xd')](_0x4c6207('0x0'),auth[_0x4c6207('0x5')](),controller[_0x4c6207('0x9')]),router[_0x4c6207('0x8')](_0x4c6207('0x0'),auth['isAuthenticated'](),controller[_0x4c6207('0x3')]),module[_0x4c6207('0x1')]=router; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.attributes.js b/server/api/openchannelApplication/openchannelApplication.attributes.js index 605334d..7cf8357 100644 --- a/server/api/openchannelApplication/openchannelApplication.attributes.js +++ b/server/api/openchannelApplication/openchannelApplication.attributes.js @@ -1 +1 @@ -const a474_0x24fd=['noop','*,*,*,*','TEXT','STRING','exports'];(function(_0x33db11,_0x24fd27){const _0x4db9b9=function(_0x49253e){while(--_0x49253e){_0x33db11['push'](_0x33db11['shift']());}};_0x4db9b9(++_0x24fd27);}(a474_0x24fd,0xd8));const a474_0x4db9=function(_0x33db11,_0x24fd27){_0x33db11=_0x33db11-0x0;let _0x4db9b9=a474_0x24fd[_0x33db11];return _0x4db9b9;};const _0x36f396=a474_0x4db9;'use strict';const Sequelize=require('sequelize');module[_0x36f396('0x3')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize[_0x36f396('0x2')],'allowNull':![],'defaultValue':_0x36f396('0x4')},'appdata':{'type':Sequelize[_0x36f396('0x1')]()},'description':{'type':Sequelize[_0x36f396('0x2')]},'interval':{'type':Sequelize[_0x36f396('0x2')],'defaultValue':_0x36f396('0x0')}}; \ No newline at end of file +const a474_0x3650=['exports','sequelize','noop','STRING','TEXT','*,*,*,*'];(function(_0x28ae51,_0x36508c){const _0x81d4b0=function(_0xa9587){while(--_0xa9587){_0x28ae51['push'](_0x28ae51['shift']());}};_0x81d4b0(++_0x36508c);}(a474_0x3650,0x142));const a474_0x81d4=function(_0x28ae51,_0x36508c){_0x28ae51=_0x28ae51-0x0;let _0x81d4b0=a474_0x3650[_0x28ae51];return _0x81d4b0;};const _0x473793=a474_0x81d4;'use strict';const Sequelize=require(_0x473793('0x3'));module[_0x473793('0x2')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize[_0x473793('0x5')],'allowNull':![],'defaultValue':_0x473793('0x4')},'appdata':{'type':Sequelize[_0x473793('0x0')]()},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize[_0x473793('0x5')],'defaultValue':_0x473793('0x1')}}; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.controller.js b/server/api/openchannelApplication/openchannelApplication.controller.js index 70a06ae..6488d66 100644 --- a/server/api/openchannelApplication/openchannelApplication.controller.js +++ b/server/api/openchannelApplication/openchannelApplication.controller.js @@ -1 +1 @@ -const a475_0x34f3=['end','attributes','pick','lodash','create','json','name','findAll','stack','length','undefined','sequelize','VIRTUAL','map','index','sort','include','error','type','query','body','params','key','includeAll','../../mysqldb','limit','fields','../../components/parsers/qs','api','filter','show','rows','update','intersection','like','merge','Content-Range','rawAttributes','count','findOne','offset','then','keys','status','where','catch','model','set','filters','order','destroy','OpenchannelApplication'];(function(_0x2f4e59,_0x34f377){const _0x2a62a5=function(_0x10db0b){while(--_0x10db0b){_0x2f4e59['push'](_0x2f4e59['shift']());}};_0x2a62a5(++_0x34f377);}(a475_0x34f3,0x180));const a475_0x2a62=function(_0x2f4e59,_0x34f377){_0x2f4e59=_0x2f4e59-0x0;let _0x2a62a5=a475_0x34f3[_0x2f4e59];return _0x2a62a5;};const _0xa5fe42=a475_0x2a62;'use strict';const _=require(_0xa5fe42('0x23')),qs=require(_0xa5fe42('0x7')),logger=require('../../config/logger')(_0xa5fe42('0x8')),db=require(_0xa5fe42('0x4'))['db'],{Op}=require(_0xa5fe42('0x2b'));function respondWithResult(_0x10db0b,_0x5f5146){return _0x5f5146=_0x5f5146||0xc8,function(_0x452697){const _0x48a3a0=a475_0x2a62;if(_0x452697)return _0x10db0b['status'](_0x5f5146)[_0x48a3a0('0x25')](_0x452697);};}function respondWithFilteredResult(_0x5ae9e3,_0x5a5317){return function(_0x301475){const _0x537307=a475_0x2a62;if(_0x301475){const _0x4d41b3=_0x301475[_0x537307('0x12')],_0x100ab9=_0x5a5317[_0x537307('0x14')];let _0x523bd0=_0x5a5317[_0x537307('0x14')]+_0x5a5317['limit'],_0x333904;return _0x523bd0>=_0x4d41b3?(_0x523bd0=_0x4d41b3,_0x333904=0xc8):_0x333904=0xce,_0x5ae9e3[_0x537307('0x17')](_0x333904),_0x5ae9e3[_0x537307('0x1b')](_0x537307('0x10'),_0x100ab9+'-'+_0x523bd0+'/'+_0x4d41b3)[_0x537307('0x25')](_0x301475);}return null;};}function saveUpdates(_0x3a54f0){return function(_0x86f5d1){const _0xe4a667=a475_0x2a62;if(_0x86f5d1)return _0x86f5d1[_0xe4a667('0xc')](_0x3a54f0)[_0xe4a667('0x15')](function(_0xf323da){return _0xf323da;});return null;};}function removeEntity(_0x222614){return function(_0x51b0bf){const _0x1b98b1=a475_0x2a62;if(_0x51b0bf)return _0x51b0bf[_0x1b98b1('0x1e')]()[_0x1b98b1('0x15')](function(){const _0x10d4be=_0x1b98b1;_0x222614[_0x10d4be('0x17')](0xcc)[_0x10d4be('0x20')]();});};}function handleEntityNotFound(_0xbd733b){return function(_0x4c055f){return!_0x4c055f&&_0xbd733b['sendStatus'](0x194),_0x4c055f;};}function handleError(_0x14ab81,_0x13f1b4){return _0x13f1b4=_0x13f1b4||0x1f4,function(_0x22b5cc){const _0x488e64=a475_0x2a62;logger[_0x488e64('0x31')](_0x22b5cc[_0x488e64('0x28')]),_0x22b5cc[_0x488e64('0x26')]&&delete _0x22b5cc['name'],_0x14ab81[_0x488e64('0x17')](_0x13f1b4)['send'](_0x22b5cc);};}exports[_0xa5fe42('0x2e')]=function(_0x3916a0,_0x2ec726){const _0x1aeb90=_0xa5fe42;let _0x805961={};const _0x61c83e={},_0x2a88e4={'count':0x0,'rows':[]},_0x386022=_[_0x1aeb90('0x2d')](db[_0x1aeb90('0x1f')][_0x1aeb90('0x11')],function(_0xbc9e1b){const _0x58bd11=_0x1aeb90;return{'name':_0xbc9e1b['fieldName'],'type':_0xbc9e1b[_0x58bd11('0x32')][_0x58bd11('0x2')]};});_0x61c83e['model']=_[_0x1aeb90('0x2d')](_0x386022,'name'),_0x61c83e[_0x1aeb90('0x33')]=_[_0x1aeb90('0x16')](_0x3916a0['query']),_0x61c83e[_0x1aeb90('0x1c')]=_['intersection'](_0x61c83e[_0x1aeb90('0x1a')],_0x61c83e[_0x1aeb90('0x33')]),_0x805961['attributes']=_[_0x1aeb90('0xd')](_0x61c83e[_0x1aeb90('0x1a')],qs[_0x1aeb90('0x6')](_0x3916a0['query'][_0x1aeb90('0x6')])),_0x805961['attributes']=_0x805961[_0x1aeb90('0x21')]['length']?_0x805961[_0x1aeb90('0x21')]:_0x61c83e[_0x1aeb90('0x1a')];typeof _0x3916a0[_0x1aeb90('0x33')]['nolimit']===_0x1aeb90('0x2a')&&(_0x805961[_0x1aeb90('0x5')]=qs['limit'](_0x3916a0[_0x1aeb90('0x33')]['limit']),_0x805961[_0x1aeb90('0x14')]=qs[_0x1aeb90('0x14')](_0x3916a0['query']['offset']));_0x805961[_0x1aeb90('0x1d')]=qs['sort'](_0x3916a0[_0x1aeb90('0x33')][_0x1aeb90('0x2f')]),_0x805961[_0x1aeb90('0x18')]=qs[_0x1aeb90('0x1c')](_[_0x1aeb90('0x22')](_0x3916a0[_0x1aeb90('0x33')],_0x61c83e[_0x1aeb90('0x1c')]),_0x386022);_0x3916a0[_0x1aeb90('0x33')][_0x1aeb90('0x9')]&&(_0x805961['where']=_['merge'](_0x805961[_0x1aeb90('0x18')],{[Op['or']]:_['map'](_0x386022,function(_0x4a530b){const _0x1f04c2=_0x1aeb90;if(_0x4a530b[_0x1f04c2('0x32')]!==_0x1f04c2('0x2c')){const _0x344852={};return _0x344852[_0x4a530b[_0x1f04c2('0x26')]]={[Op[_0x1f04c2('0xe')]]:'%'+_0x3916a0['query'][_0x1f04c2('0x9')]+'%'},_0x344852;}})}));_0x805961=_[_0x1aeb90('0xf')]({},_0x805961,_0x3916a0['options']);const _0x5a86ec={'where':_0x805961[_0x1aeb90('0x18')]};return db[_0x1aeb90('0x1f')][_0x1aeb90('0x12')](_0x5a86ec)[_0x1aeb90('0x15')](function(_0x325dc4){const _0x573c04=_0x1aeb90;return _0x2a88e4['count']=_0x325dc4,_0x3916a0[_0x573c04('0x33')][_0x573c04('0x3')]&&(_0x805961['include']=[{'all':!![]}]),db[_0x573c04('0x1f')][_0x573c04('0x27')](_0x805961);})[_0x1aeb90('0x15')](function(_0x34def5){const _0x1ce3e5=_0x1aeb90;return _0x2a88e4[_0x1ce3e5('0xb')]=_0x34def5,_0x2a88e4;})['then'](respondWithFilteredResult(_0x2ec726,_0x805961))['catch'](handleError(_0x2ec726,null));},exports[_0xa5fe42('0xa')]=function(_0x489710,_0x36e151){const _0x35c36a=_0xa5fe42;let _0x1e6dd9={'raw':!![],'where':{'id':_0x489710['params']['id']}};const _0x22ae25={};return _0x22ae25[_0x35c36a('0x1a')]=_[_0x35c36a('0x16')](db['OpenchannelApplication']['rawAttributes']),_0x22ae25['query']=_[_0x35c36a('0x16')](_0x489710[_0x35c36a('0x33')]),_0x22ae25[_0x35c36a('0x1c')]=_[_0x35c36a('0xd')](_0x22ae25[_0x35c36a('0x1a')],_0x22ae25[_0x35c36a('0x33')]),_0x1e6dd9[_0x35c36a('0x21')]=_[_0x35c36a('0xd')](_0x22ae25['model'],qs[_0x35c36a('0x6')](_0x489710[_0x35c36a('0x33')][_0x35c36a('0x6')])),_0x1e6dd9[_0x35c36a('0x21')]=_0x1e6dd9[_0x35c36a('0x21')][_0x35c36a('0x29')]?_0x1e6dd9[_0x35c36a('0x21')]:_0x22ae25[_0x35c36a('0x1a')],_0x489710[_0x35c36a('0x33')]['includeAll']&&(_0x1e6dd9[_0x35c36a('0x30')]=[{'all':!![]}]),_0x1e6dd9=_[_0x35c36a('0xf')]({},_0x1e6dd9,_0x489710['options']),db[_0x35c36a('0x1f')][_0x35c36a('0x13')](_0x1e6dd9)[_0x35c36a('0x15')](handleEntityNotFound(_0x36e151,null))[_0x35c36a('0x15')](respondWithResult(_0x36e151,null))['catch'](handleError(_0x36e151,null));},exports[_0xa5fe42('0x24')]=function(_0x42803a,_0x4faa83){const _0x2e48fb=_0xa5fe42;return db[_0x2e48fb('0x1f')][_0x2e48fb('0x24')](_0x42803a[_0x2e48fb('0x0')],{})['then'](respondWithResult(_0x4faa83,0xc9))[_0x2e48fb('0x19')](handleError(_0x4faa83,null));},exports[_0xa5fe42('0xc')]=function(_0x105e2d,_0x38ac22){const _0xc64584=_0xa5fe42;return _0x105e2d[_0xc64584('0x0')]['id']&&delete _0x105e2d['body']['id'],db[_0xc64584('0x1f')][_0xc64584('0x13')]({'where':{'id':_0x105e2d[_0xc64584('0x1')]['id']}})[_0xc64584('0x15')](handleEntityNotFound(_0x38ac22,null))['then'](saveUpdates(_0x105e2d['body'],null))[_0xc64584('0x15')](respondWithResult(_0x38ac22,null))[_0xc64584('0x19')](handleError(_0x38ac22,null));},exports['destroy']=function(_0x433a0d,_0x384e39){const _0x25cee0=_0xa5fe42;return db[_0x25cee0('0x1f')][_0x25cee0('0x13')]({'where':{'id':_0x433a0d['params']['id']}})[_0x25cee0('0x15')](handleEntityNotFound(_0x384e39,null))[_0x25cee0('0x15')](removeEntity(_0x384e39,null))[_0x25cee0('0x19')](handleError(_0x384e39,null));}; \ No newline at end of file +const a475_0x50d7=['includeAll','json','key','Content-Range','catch','sequelize','options','../../components/parsers/qs','findOne','../../config/logger','map','length','body','params','update','keys','query','rawAttributes','filters','order','attributes','nolimit','../../mysqldb','end','filter','merge','fieldName','offset','fields','status','OpenchannelApplication','sort','lodash','pick','model','set','include','name','where','show','then','error','create','type','index','limit','count','destroy','intersection','api'];(function(_0x2c2cef,_0x50d7c1){const _0x44fa99=function(_0x48a66f){while(--_0x48a66f){_0x2c2cef['push'](_0x2c2cef['shift']());}};_0x44fa99(++_0x50d7c1);}(a475_0x50d7,0x101));const a475_0x44fa=function(_0x2c2cef,_0x50d7c1){_0x2c2cef=_0x2c2cef-0x0;let _0x44fa99=a475_0x50d7[_0x2c2cef];return _0x44fa99;};const _0x4cdc97=a475_0x44fa;'use strict';const _=require(_0x4cdc97('0x19')),qs=require(_0x4cdc97('0x0')),logger=require(_0x4cdc97('0x2'))(_0x4cdc97('0x2a')),db=require(_0x4cdc97('0xf'))['db'],{Op}=require(_0x4cdc97('0x30'));function respondWithResult(_0x48a66f,_0x9512cf){return _0x9512cf=_0x9512cf||0xc8,function(_0x4b4f0e){const _0x398ad7=a475_0x44fa;if(_0x4b4f0e)return _0x48a66f[_0x398ad7('0x16')](_0x9512cf)['json'](_0x4b4f0e);};}function respondWithFilteredResult(_0x1c7164,_0x4d5311){return function(_0x7d66e8){const _0x5e0f3b=a475_0x44fa;if(_0x7d66e8){const _0x5073c8=_0x7d66e8[_0x5e0f3b('0x27')],_0x56d854=_0x4d5311[_0x5e0f3b('0x14')];let _0x28ecfa=_0x4d5311[_0x5e0f3b('0x14')]+_0x4d5311['limit'],_0x416653;return _0x28ecfa>=_0x5073c8?(_0x28ecfa=_0x5073c8,_0x416653=0xc8):_0x416653=0xce,_0x1c7164[_0x5e0f3b('0x16')](_0x416653),_0x1c7164[_0x5e0f3b('0x1c')](_0x5e0f3b('0x2e'),_0x56d854+'-'+_0x28ecfa+'/'+_0x5073c8)[_0x5e0f3b('0x2c')](_0x7d66e8);}return null;};}function saveUpdates(_0x5ea1aa){return function(_0x203c31){const _0x5be999=a475_0x44fa;if(_0x203c31)return _0x203c31[_0x5be999('0x7')](_0x5ea1aa)[_0x5be999('0x21')](function(_0x5c260a){return _0x5c260a;});return null;};}function removeEntity(_0x20d9e7){return function(_0x5475a5){const _0x768acb=a475_0x44fa;if(_0x5475a5)return _0x5475a5[_0x768acb('0x28')]()['then'](function(){const _0x3ab5b5=_0x768acb;_0x20d9e7['status'](0xcc)[_0x3ab5b5('0x10')]();});};}function handleEntityNotFound(_0x256712){return function(_0x7c9615){return!_0x7c9615&&_0x256712['sendStatus'](0x194),_0x7c9615;};}function handleError(_0x2a09df,_0x57b013){return _0x57b013=_0x57b013||0x1f4,function(_0x5e5be9){const _0x34ba33=a475_0x44fa;logger[_0x34ba33('0x22')](_0x5e5be9['stack']),_0x5e5be9[_0x34ba33('0x1e')]&&delete _0x5e5be9[_0x34ba33('0x1e')],_0x2a09df['status'](_0x57b013)['send'](_0x5e5be9);};}exports[_0x4cdc97('0x25')]=function(_0x41806d,_0x2ff394){const _0x155221=_0x4cdc97;let _0x462976={};const _0x2d42af={},_0x36b1d2={'count':0x0,'rows':[]},_0x2f2893=_[_0x155221('0x3')](db[_0x155221('0x17')][_0x155221('0xa')],function(_0x1cb255){const _0x378f95=_0x155221;return{'name':_0x1cb255[_0x378f95('0x13')],'type':_0x1cb255[_0x378f95('0x24')][_0x378f95('0x2d')]};});_0x2d42af['model']=_['map'](_0x2f2893,_0x155221('0x1e')),_0x2d42af[_0x155221('0x9')]=_[_0x155221('0x8')](_0x41806d[_0x155221('0x9')]),_0x2d42af['filters']=_[_0x155221('0x29')](_0x2d42af[_0x155221('0x1b')],_0x2d42af[_0x155221('0x9')]),_0x462976['attributes']=_['intersection'](_0x2d42af[_0x155221('0x1b')],qs['fields'](_0x41806d[_0x155221('0x9')][_0x155221('0x15')])),_0x462976[_0x155221('0xd')]=_0x462976[_0x155221('0xd')][_0x155221('0x4')]?_0x462976[_0x155221('0xd')]:_0x2d42af['model'];typeof _0x41806d[_0x155221('0x9')][_0x155221('0xe')]==='undefined'&&(_0x462976[_0x155221('0x26')]=qs[_0x155221('0x26')](_0x41806d[_0x155221('0x9')][_0x155221('0x26')]),_0x462976[_0x155221('0x14')]=qs[_0x155221('0x14')](_0x41806d['query'][_0x155221('0x14')]));_0x462976[_0x155221('0xc')]=qs[_0x155221('0x18')](_0x41806d[_0x155221('0x9')][_0x155221('0x18')]),_0x462976['where']=qs[_0x155221('0xb')](_[_0x155221('0x1a')](_0x41806d['query'],_0x2d42af[_0x155221('0xb')]),_0x2f2893);_0x41806d['query'][_0x155221('0x11')]&&(_0x462976[_0x155221('0x1f')]=_['merge'](_0x462976['where'],{[Op['or']]:_[_0x155221('0x3')](_0x2f2893,function(_0x434d9d){const _0x52b02d=_0x155221;if(_0x434d9d['type']!=='VIRTUAL'){const _0x5ded4={};return _0x5ded4[_0x434d9d[_0x52b02d('0x1e')]]={[Op['like']]:'%'+_0x41806d[_0x52b02d('0x9')][_0x52b02d('0x11')]+'%'},_0x5ded4;}})}));_0x462976=_['merge']({},_0x462976,_0x41806d[_0x155221('0x31')]);const _0x3db32f={'where':_0x462976[_0x155221('0x1f')]};return db[_0x155221('0x17')][_0x155221('0x27')](_0x3db32f)[_0x155221('0x21')](function(_0x3da73e){const _0xba997a=_0x155221;return _0x36b1d2[_0xba997a('0x27')]=_0x3da73e,_0x41806d[_0xba997a('0x9')]['includeAll']&&(_0x462976['include']=[{'all':!![]}]),db[_0xba997a('0x17')]['findAll'](_0x462976);})[_0x155221('0x21')](function(_0xb5d67a){return _0x36b1d2['rows']=_0xb5d67a,_0x36b1d2;})[_0x155221('0x21')](respondWithFilteredResult(_0x2ff394,_0x462976))[_0x155221('0x2f')](handleError(_0x2ff394,null));},exports[_0x4cdc97('0x20')]=function(_0x3a697c,_0x2ee053){const _0x15f0b9=_0x4cdc97;let _0x4e04be={'raw':!![],'where':{'id':_0x3a697c[_0x15f0b9('0x6')]['id']}};const _0x35377b={};return _0x35377b[_0x15f0b9('0x1b')]=_[_0x15f0b9('0x8')](db[_0x15f0b9('0x17')]['rawAttributes']),_0x35377b['query']=_[_0x15f0b9('0x8')](_0x3a697c[_0x15f0b9('0x9')]),_0x35377b[_0x15f0b9('0xb')]=_['intersection'](_0x35377b['model'],_0x35377b[_0x15f0b9('0x9')]),_0x4e04be[_0x15f0b9('0xd')]=_['intersection'](_0x35377b[_0x15f0b9('0x1b')],qs[_0x15f0b9('0x15')](_0x3a697c[_0x15f0b9('0x9')][_0x15f0b9('0x15')])),_0x4e04be[_0x15f0b9('0xd')]=_0x4e04be[_0x15f0b9('0xd')][_0x15f0b9('0x4')]?_0x4e04be[_0x15f0b9('0xd')]:_0x35377b['model'],_0x3a697c[_0x15f0b9('0x9')][_0x15f0b9('0x2b')]&&(_0x4e04be[_0x15f0b9('0x1d')]=[{'all':!![]}]),_0x4e04be=_[_0x15f0b9('0x12')]({},_0x4e04be,_0x3a697c['options']),db['OpenchannelApplication'][_0x15f0b9('0x1')](_0x4e04be)['then'](handleEntityNotFound(_0x2ee053,null))[_0x15f0b9('0x21')](respondWithResult(_0x2ee053,null))[_0x15f0b9('0x2f')](handleError(_0x2ee053,null));},exports[_0x4cdc97('0x23')]=function(_0x385e51,_0x5e8af9){const _0xe1f30d=_0x4cdc97;return db[_0xe1f30d('0x17')][_0xe1f30d('0x23')](_0x385e51[_0xe1f30d('0x5')],{})[_0xe1f30d('0x21')](respondWithResult(_0x5e8af9,0xc9))[_0xe1f30d('0x2f')](handleError(_0x5e8af9,null));},exports[_0x4cdc97('0x7')]=function(_0x48286a,_0x338508){const _0x47723a=_0x4cdc97;return _0x48286a[_0x47723a('0x5')]['id']&&delete _0x48286a[_0x47723a('0x5')]['id'],db['OpenchannelApplication'][_0x47723a('0x1')]({'where':{'id':_0x48286a[_0x47723a('0x6')]['id']}})[_0x47723a('0x21')](handleEntityNotFound(_0x338508,null))[_0x47723a('0x21')](saveUpdates(_0x48286a['body'],null))[_0x47723a('0x21')](respondWithResult(_0x338508,null))['catch'](handleError(_0x338508,null));},exports['destroy']=function(_0x4f1a89,_0x2e3c6e){const _0x176522=_0x4cdc97;return db[_0x176522('0x17')][_0x176522('0x1')]({'where':{'id':_0x4f1a89[_0x176522('0x6')]['id']}})[_0x176522('0x21')](handleEntityNotFound(_0x2e3c6e,null))[_0x176522('0x21')](removeEntity(_0x2e3c6e,null))[_0x176522('0x2f')](handleError(_0x2e3c6e,null));}; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.model.js b/server/api/openchannelApplication/openchannelApplication.model.js index 05e9884..30a61aa 100644 --- a/server/api/openchannelApplication/openchannelApplication.model.js +++ b/server/api/openchannelApplication/openchannelApplication.model.js @@ -1 +1 @@ -const a476_0x19c8=['utf8mb4','exports','utf8mb4_unicode_ci','openchannel_applications','OpenchannelApplication','define','./openchannelApplication.attributes'];(function(_0x2fb87b,_0x19c805){const _0x31f3d0=function(_0x72133c){while(--_0x72133c){_0x2fb87b['push'](_0x2fb87b['shift']());}};_0x31f3d0(++_0x19c805);}(a476_0x19c8,0xfd));const a476_0x31f3=function(_0x2fb87b,_0x19c805){_0x2fb87b=_0x2fb87b-0x0;let _0x31f3d0=a476_0x19c8[_0x2fb87b];return _0x31f3d0;};const _0x4b6ac6=a476_0x31f3;'use strict';const attributes=require(_0x4b6ac6('0x5'));module[_0x4b6ac6('0x0')]=function(_0x72133c){const _0x127c93=_0x4b6ac6,_0x51b4e2=_0x72133c[_0x127c93('0x4')](_0x127c93('0x3'),attributes,{'tableName':_0x127c93('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x127c93('0x6'),'collate':_0x127c93('0x1')});return _0x51b4e2;}; \ No newline at end of file +const a476_0x4421=['exports','utf8mb4_unicode_ci','OpenchannelApplication','utf8mb4','./openchannelApplication.attributes','define'];(function(_0x47e6ef,_0x4421f0){const _0x37c8c8=function(_0x30c665){while(--_0x30c665){_0x47e6ef['push'](_0x47e6ef['shift']());}};_0x37c8c8(++_0x4421f0);}(a476_0x4421,0x156));const a476_0x37c8=function(_0x47e6ef,_0x4421f0){_0x47e6ef=_0x47e6ef-0x0;let _0x37c8c8=a476_0x4421[_0x47e6ef];return _0x37c8c8;};const _0x820b73=a476_0x37c8;'use strict';const attributes=require(_0x820b73('0x4'));module[_0x820b73('0x0')]=function(_0x30c665){const _0x14b58b=_0x820b73,_0x5eb4ff=_0x30c665[_0x14b58b('0x5')](_0x14b58b('0x2'),attributes,{'tableName':'openchannel_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x14b58b('0x3'),'collate':_0x14b58b('0x1')});return _0x5eb4ff;}; \ No newline at end of file diff --git a/server/api/openchannelApplication/openchannelApplication.rpc.js b/server/api/openchannelApplication/openchannelApplication.rpc.js index 31769e1..79cffc2 100644 --- a/server/api/openchannelApplication/openchannelApplication.rpc.js +++ b/server/api/openchannelApplication/openchannelApplication.rpc.js @@ -1 +1 @@ -const a477_0x4043=['../../mysqldb','debug','limit','OpenchannelApplication','info','error','stringify','body','message','options','UpdateOpenchannelApplication','rpc','catch','where','../../config/logger','raw','then'];(function(_0x2583bf,_0x4043dd){const _0x372a62=function(_0x2fb4be){while(--_0x2fb4be){_0x2583bf['push'](_0x2583bf['shift']());}};_0x372a62(++_0x4043dd);}(a477_0x4043,0x146));const a477_0x372a=function(_0x2583bf,_0x4043dd){_0x2583bf=_0x2583bf-0x0;let _0x372a62=a477_0x4043[_0x2583bf];return _0x372a62;};const _0x283e28=a477_0x372a;'use strict';const db=require(_0x283e28('0xe'))['db'],logger=require(_0x283e28('0xb'))(_0x283e28('0x8'));exports[_0x283e28('0x7')]=function(_0x2fb4be){const _0x40cf2b=this;return new Promise(function(_0x16ce8f,_0x194df3){const _0x7c516=a477_0x372a;return db[_0x7c516('0x0')]['update'](_0x2fb4be[_0x7c516('0x4')],{'raw':_0x2fb4be[_0x7c516('0x6')]?_0x2fb4be[_0x7c516('0x6')][_0x7c516('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x2fb4be[_0x7c516('0x6')]?_0x2fb4be[_0x7c516('0x6')][_0x7c516('0xa')]||null:null,'attributes':_0x2fb4be['options']?_0x2fb4be['options']['attributes']||null:null,'limit':_0x2fb4be[_0x7c516('0x6')]?_0x2fb4be[_0x7c516('0x6')][_0x7c516('0x10')]||null:null})[_0x7c516('0xd')](function(_0x5942d5){const _0x375346=_0x7c516;logger[_0x375346('0x1')](_0x375346('0x7'),_0x2fb4be),logger[_0x375346('0xf')](_0x375346('0x7'),_0x2fb4be,JSON[_0x375346('0x3')](_0x5942d5)),_0x16ce8f(_0x5942d5);})[_0x7c516('0x9')](function(_0x426c9e){const _0x143315=_0x7c516;logger['error'](_0x143315('0x7'),_0x426c9e[_0x143315('0x5')],_0x2fb4be),_0x194df3(_0x40cf2b[_0x143315('0x2')](0x1f4,_0x426c9e[_0x143315('0x5')]));});});}; \ No newline at end of file +const a477_0x2508=['options','where','limit','debug','UpdateOpenchannelApplication','error','body','OpenchannelApplication','stringify','../../mysqldb','then','message','rpc'];(function(_0x5374d8,_0x2508a6){const _0x442da2=function(_0xa8c34f){while(--_0xa8c34f){_0x5374d8['push'](_0x5374d8['shift']());}};_0x442da2(++_0x2508a6);}(a477_0x2508,0xde));const a477_0x442d=function(_0x5374d8,_0x2508a6){_0x5374d8=_0x5374d8-0x0;let _0x442da2=a477_0x2508[_0x5374d8];return _0x442da2;};const _0xca9e7a=a477_0x442d;'use strict';const db=require(_0xca9e7a('0x8'))['db'],logger=require('../../config/logger')(_0xca9e7a('0xb'));exports['UpdateOpenchannelApplication']=function(_0xa8c34f){const _0x53cd20=this;return new Promise(function(_0x343bdf,_0x314b53){const _0x326156=a477_0x442d;return db[_0x326156('0x6')]['update'](_0xa8c34f[_0x326156('0x5')],{'raw':_0xa8c34f[_0x326156('0xc')]?_0xa8c34f[_0x326156('0xc')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xa8c34f['options']?_0xa8c34f[_0x326156('0xc')][_0x326156('0x0')]||null:null,'attributes':_0xa8c34f[_0x326156('0xc')]?_0xa8c34f[_0x326156('0xc')]['attributes']||null:null,'limit':_0xa8c34f[_0x326156('0xc')]?_0xa8c34f[_0x326156('0xc')][_0x326156('0x1')]||null:null})[_0x326156('0x9')](function(_0x3ef7cd){const _0x115a86=_0x326156;logger['info']('UpdateOpenchannelApplication',_0xa8c34f),logger[_0x115a86('0x2')](_0x115a86('0x3'),_0xa8c34f,JSON[_0x115a86('0x7')](_0x3ef7cd)),_0x343bdf(_0x3ef7cd);})['catch'](function(_0x3dc313){const _0x4d122e=_0x326156;logger[_0x4d122e('0x4')](_0x4d122e('0x3'),_0x3dc313[_0x4d122e('0xa')],_0xa8c34f),_0x314b53(_0x53cd20['error'](0x1f4,_0x3dc313['message']));});});}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/index.js b/server/api/openchannelInteraction/index.js index 87d6da2..8e61fb9 100644 --- a/server/api/openchannelInteraction/index.js +++ b/server/api/openchannelInteraction/index.js @@ -1 +1 @@ -const a478_0x3459=['/:id/tags','show','index','tracked','describe','/describe','../../components/auth/service','create','openchannelinteraction:destroy','Router','put','removeTags','addTags','destroy','get','openchannelinteraction:addtags','openchannel','/:id/messages','./openchannelInteraction.controller','download','../../components/interaction/service','/:id','exports','delete','post','/:id/download','isAuthenticated','openchannelinteraction:update','express'];(function(_0x5d689c,_0x3459ed){const _0xc80293=function(_0xef44ea){while(--_0xef44ea){_0x5d689c['push'](_0x5d689c['shift']());}};_0xc80293(++_0x3459ed);}(a478_0x3459,0xdc));const a478_0xc802=function(_0x5d689c,_0x3459ed){_0x5d689c=_0x5d689c-0x0;let _0xc80293=a478_0x3459[_0x5d689c];return _0xc80293;};const _0x456db5=a478_0xc802;'use strict';const express=require(_0x456db5('0xb')),router=express[_0x456db5('0x15')](),auth=require(_0x456db5('0x12')),interaction=require(_0x456db5('0x3')),controller=require(_0x456db5('0x1'));router[_0x456db5('0x1a')]('/',auth[_0x456db5('0x9')](),controller[_0x456db5('0xe')]),router[_0x456db5('0x1a')](_0x456db5('0x11'),auth[_0x456db5('0x9')](),controller[_0x456db5('0x10')]),router[_0x456db5('0x1a')](_0x456db5('0x4'),auth[_0x456db5('0x9')](),controller[_0x456db5('0xd')]),router[_0x456db5('0x1a')](_0x456db5('0x0'),auth[_0x456db5('0x9')](),controller['getMessages']),router[_0x456db5('0x1a')](_0x456db5('0x8'),auth[_0x456db5('0x9')](),controller[_0x456db5('0x2')]),router[_0x456db5('0x7')]('/',auth[_0x456db5('0x9')](),controller[_0x456db5('0x13')]),router[_0x456db5('0x7')](_0x456db5('0x0'),auth[_0x456db5('0x9')](),controller['addMessage']),router[_0x456db5('0x7')](_0x456db5('0xc'),auth['isAuthenticated'](),interaction[_0x456db5('0xf')](_0x456db5('0x1c'),_0x456db5('0x1b')),controller[_0x456db5('0x18')]),router[_0x456db5('0x16')](_0x456db5('0x4'),auth[_0x456db5('0x9')](),interaction[_0x456db5('0xf')](_0x456db5('0x1c'),_0x456db5('0xa')),controller['update']),router['delete'](_0x456db5('0x4'),auth[_0x456db5('0x9')](),interaction[_0x456db5('0xf')]('openchannel',_0x456db5('0x14')),controller[_0x456db5('0x19')]),router[_0x456db5('0x6')](_0x456db5('0xc'),auth[_0x456db5('0x9')](),controller[_0x456db5('0x17')]),module[_0x456db5('0x5')]=router; \ No newline at end of file +const a478_0x15a7=['addMessage','./openchannelInteraction.controller','download','tracked','getMessages','openchannelinteraction:destroy','openchannel','/describe','put','/:id/tags','addTags','isAuthenticated','destroy','/:id','post','../../components/interaction/service','openchannelinteraction:addtags','removeTags','express','index','../../components/auth/service','create','update','describe','/:id/messages','show','get','delete','exports','Router'];(function(_0x189f65,_0x15a730){const _0x591e72=function(_0x387fa0){while(--_0x387fa0){_0x189f65['push'](_0x189f65['shift']());}};_0x591e72(++_0x15a730);}(a478_0x15a7,0x11a));const a478_0x591e=function(_0x189f65,_0x15a730){_0x189f65=_0x189f65-0x0;let _0x591e72=a478_0x15a7[_0x189f65];return _0x591e72;};const _0x1b03ec=a478_0x591e;'use strict';const express=require(_0x1b03ec('0x6')),router=express[_0x1b03ec('0x11')](),auth=require(_0x1b03ec('0x8')),interaction=require(_0x1b03ec('0x3')),controller=require(_0x1b03ec('0x13'));router[_0x1b03ec('0xe')]('/',auth[_0x1b03ec('0x1d')](),controller[_0x1b03ec('0x7')]),router[_0x1b03ec('0xe')](_0x1b03ec('0x19'),auth['isAuthenticated'](),controller[_0x1b03ec('0xb')]),router[_0x1b03ec('0xe')](_0x1b03ec('0x1'),auth[_0x1b03ec('0x1d')](),controller[_0x1b03ec('0xd')]),router[_0x1b03ec('0xe')](_0x1b03ec('0xc'),auth['isAuthenticated'](),controller[_0x1b03ec('0x16')]),router['get']('/:id/download',auth[_0x1b03ec('0x1d')](),controller[_0x1b03ec('0x14')]),router[_0x1b03ec('0x2')]('/',auth[_0x1b03ec('0x1d')](),controller[_0x1b03ec('0x9')]),router[_0x1b03ec('0x2')](_0x1b03ec('0xc'),auth[_0x1b03ec('0x1d')](),controller[_0x1b03ec('0x12')]),router['post']('/:id/tags',auth['isAuthenticated'](),interaction['tracked']('openchannel',_0x1b03ec('0x4')),controller[_0x1b03ec('0x1c')]),router[_0x1b03ec('0x1a')](_0x1b03ec('0x1'),auth[_0x1b03ec('0x1d')](),interaction[_0x1b03ec('0x15')]('openchannel','openchannelinteraction:update'),controller[_0x1b03ec('0xa')]),router[_0x1b03ec('0xf')](_0x1b03ec('0x1'),auth[_0x1b03ec('0x1d')](),interaction['tracked'](_0x1b03ec('0x18'),_0x1b03ec('0x17')),controller[_0x1b03ec('0x0')]),router[_0x1b03ec('0xf')](_0x1b03ec('0x1b'),auth['isAuthenticated'](),controller[_0x1b03ec('0x5')]),module[_0x1b03ec('0x10')]=router; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.attributes.js b/server/api/openchannelInteraction/openchannelInteraction.attributes.js index 3edbd3e..374eeb7 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.attributes.js +++ b/server/api/openchannelInteraction/openchannelInteraction.attributes.js @@ -1 +1 @@ -const a479_0x5629=['sequelize','STRING','BOOLEAN','out','ENUM','DATE'];(function(_0x2a4f0d,_0x5629f1){const _0x8682d6=function(_0x11704a){while(--_0x11704a){_0x2a4f0d['push'](_0x2a4f0d['shift']());}};_0x8682d6(++_0x5629f1);}(a479_0x5629,0xd5));const a479_0x8682=function(_0x2a4f0d,_0x5629f1){_0x2a4f0d=_0x2a4f0d-0x0;let _0x8682d6=a479_0x5629[_0x2a4f0d];return _0x8682d6;};const _0x5da8ed=a479_0x8682;'use strict';const Sequelize=require(_0x5da8ed('0x3'));module['exports']={'closed':{'type':Sequelize[_0x5da8ed('0x5')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x5da8ed('0x2')]},'disposition':{'type':Sequelize[_0x5da8ed('0x4')]},'secondDisposition':{'type':Sequelize[_0x5da8ed('0x4')]},'thirdDisposition':{'type':Sequelize[_0x5da8ed('0x4')]},'note':{'type':Sequelize[_0x5da8ed('0x4')]},'read1stAt':{'type':Sequelize[_0x5da8ed('0x2')]},'threadId':{'type':Sequelize[_0x5da8ed('0x4')]},'externalUrl':{'type':Sequelize[_0x5da8ed('0x4')]},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize[_0x5da8ed('0x1')]('in',_0x5da8ed('0x0')),'defaultValue':'in','allowNull':![]},'from':{'type':Sequelize[_0x5da8ed('0x4')]}}; \ No newline at end of file +const a479_0xa186=['sequelize','ENUM','out','STRING','DATE'];(function(_0x3bb452,_0xa18684){const _0x15c32c=function(_0x14e97b){while(--_0x14e97b){_0x3bb452['push'](_0x3bb452['shift']());}};_0x15c32c(++_0xa18684);}(a479_0xa186,0x80));const a479_0x15c3=function(_0x3bb452,_0xa18684){_0x3bb452=_0x3bb452-0x0;let _0x15c32c=a479_0xa186[_0x3bb452];return _0x15c32c;};const _0x5321f5=a479_0x15c3;'use strict';const Sequelize=require(_0x5321f5('0x2'));module['exports']={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x5321f5('0x1')]},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize[_0x5321f5('0x0')]},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x5321f5('0x0')]},'read1stAt':{'type':Sequelize[_0x5321f5('0x1')]},'threadId':{'type':Sequelize[_0x5321f5('0x0')]},'externalUrl':{'type':Sequelize[_0x5321f5('0x0')]},'lastMsgAt':{'type':Sequelize[_0x5321f5('0x1')]},'lastMsgDirection':{'type':Sequelize[_0x5321f5('0x3')]('in',_0x5321f5('0x4')),'defaultValue':'in','allowNull':![]},'from':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.controller.js b/server/api/openchannelInteraction/openchannelInteraction.controller.js index 03afe06..2e3cf1f 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.controller.js +++ b/server/api/openchannelInteraction/openchannelInteraction.controller.js @@ -1 +1 @@ -const a480_0x4b03=['join','keys','`unreadMessages`\x20>\x200','openchannel_interaction_has_tags','create','mkdirSync','concat','ids','c.firstName','all','group','tag','moment','getOpenchannelAccounts','gte','emit','u.id\x20=\x20ui.UserId','../../config/logger','TagIds','addTags','start','show','secret','Contact.firstName','`\x20=\x200','path','10px','transcript-%d-%s.zip','createdAt','isEmpty','YYYY-MM-DD\x20HH:mm:ss','html-pdf','DESC','c.email','server','t.id\x20IN\x20?','%s\x20#%d','include','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','util','o.internal','filter','closed','OpenchannelAccountId','Account.mandatoryDisposition','i.OpenchannelAccountId\x20IS\x20NULL','OpenchannelInteractionId','filters','t.id\x20=\x20it.TagId','catch','intersection','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','users','transcript-','../../config/environment','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','update','error','threadId','get','unlinkSync','limit','some','select','getMessages','json','map','\x20=\x20?','parseSearch','basename','having','Account.key','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','fieldName','sendStatus','disposition','CmContact','omit','color','null','\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','lastName','split','ContactId','fullname','status','like','forEach','order','out','Owner','createReadStream','field','name','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','includeAll','renderFile','lodash','model','it.OpenchannelInteractionId\x20=\x20i.id','sequelize','value','closedAt','user_has_openchannel_interactions','\x27\x27\x27\x27','Tags','createWriteStream','query','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','Contact.lastName','Account','../../mysqldb','rawAttributes','read','Openchannel','i.*','openchannel_accounts','where','u.fullname','$substring','30px','text','offset','findAll','err','`unreadMessages`\x20=\x200','c.phone','body','parse','Content-Range','length','buildExpression','key','params','YYYY-MM-DD','download','a.key','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','squel','format','./openchannelInteraction.socket','i.id\x20LIKE\x20?','UserId','fields','type','i.OpenchannelAccountId\x20IN\x20?','keyBy','send','User','left_join','.pdf','firstName','cm_contacts','register','o.fullname','toString','operator','search','merge','count','describe','Private','views','c.fax','tools_tags','\x20IS\x20NULL','unix','Owner.fullname','pick','root','options','from','../../components/parsers/qs','files','Contact','i.id','nolimit','../../rediscache','setTags','../../components/parsers/advancedSearch','ui.OpenchannelInteractionId\x20IN\x20?','ui.OpenchannelInteractionId','Contact.fax','tmp','OpenchannelAccount','$gte','Public','user','undefined','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','addMessage','Attachment','c.mobile','OpenchannelMessage','getFullTextValue','openchannel_interactions','direction','a.id\x20=\x20i.OpenchannelAccountId','replace','then','Contact.email','existsSync','push','`\x20>\x200','unreadMessages','a.mandatoryDisposition','resolve','ejs','openchannelInteractionTags:save','OpenchannelInteraction','destroy','rows','Messages','isNumeric','u.id','findOne','isArray','c.lastName','sort','conditions','expr','attributes','o.id\x20=\x20i.UserId','QueryTypes','removeTags','end','openchannel_messages'];(function(_0x461a5d,_0x4b0347){const _0x270637=function(_0x54251e){while(--_0x54251e){_0x461a5d['push'](_0x461a5d['shift']());}};_0x270637(++_0x4b0347);}(a480_0x4b03,0x185));const a480_0x2706=function(_0x461a5d,_0x4b0347){_0x461a5d=_0x461a5d-0x0;let _0x270637=a480_0x4b03[_0x461a5d];return _0x270637;};const _0xbb0031=a480_0x2706;'use strict';const pdf=require(_0xbb0031('0x60')),rimraf=require('rimraf'),zipdir=require('zip-dir'),moment=require(_0xbb0031('0x4d')),util=require(_0xbb0031('0x68')),path=require(_0xbb0031('0x5a')),ejs=require(_0xbb0031('0x2d')),fs=require('fs'),_=require(_0xbb0031('0xa2')),squel=require(_0xbb0031('0xcb')),{getSocket}=require(_0xbb0031('0xf')),socket=getSocket(),qs=require(_0xbb0031('0xa')),as=require(_0xbb0031('0x11')),logger=require(_0xbb0031('0x52'))('api'),config=require(_0xbb0031('0x77')),db=require(_0xbb0031('0xb0'))['db'],{Op}=require(_0xbb0031('0xa5'));require(_0xbb0031('0xcd'))[_0xbb0031('0xda')](socket);function respondWithStatusCode(_0x54251e,_0x30703b){return _0x30703b=_0x30703b||0xcc,function(_0x43c606){const _0x4075ea=a480_0x2706;if(_0x43c606)return _0x54251e['sendStatus'](_0x30703b);return _0x54251e[_0x4075ea('0x96')](_0x30703b)[_0x4075ea('0x3f')]();};}function respondWithResult(_0x553093,_0x438c84){return _0x438c84=_0x438c84||0xc8,function(_0x280e29){const _0x189656=a480_0x2706;if(_0x280e29)return _0x553093[_0x189656('0x96')](_0x438c84)[_0x189656('0x82')](_0x280e29);};}function respondWithFilteredResult(_0x5db5e0,_0x3fee77){return function(_0x54a6f2){const _0x57ef54=a480_0x2706;if(_0x54a6f2){const _0x24d155=_0x54a6f2[_0x57ef54('0xe0')],_0x374f25=_0x3fee77[_0x57ef54('0xbb')];let _0x5eef9c=_0x3fee77[_0x57ef54('0xbb')]+_0x3fee77[_0x57ef54('0x7e')],_0x28af93;return _0x5eef9c>=_0x24d155?(_0x5eef9c=_0x24d155,_0x28af93=0xc8):_0x28af93=0xce,_0x5db5e0[_0x57ef54('0x96')](_0x28af93),_0x5db5e0['set'](_0x57ef54('0xc2'),_0x374f25+'-'+_0x5eef9c+'/'+_0x24d155)['json'](_0x54a6f2);}return null;};}function saveUpdates(_0xd6ddac){return function(_0x52e908){const _0x4764b4=a480_0x2706;if(_0x52e908)return _0x52e908[_0x4764b4('0x79')](_0xd6ddac)[_0x4764b4('0x25')](function(_0x556809){return _0x556809;});return null;};}function removeEntity(_0x4b55d2){return function(_0x5352be){const _0x35dd37=a480_0x2706;if(_0x5352be)return _0x5352be['destroy']()[_0x35dd37('0x25')](function(){const _0x6c4233=_0x35dd37;_0x4b55d2[_0x6c4233('0x96')](0xcc)['end']();});};}function handleEntityNotFound(_0x23c41d){return function(_0xc84bfa){const _0x4b9886=a480_0x2706;return!_0xc84bfa&&_0x23c41d[_0x4b9886('0x8b')](0x194),_0xc84bfa;};}function handleError(_0xde59f5,_0xfe7853){return _0xfe7853=_0xfe7853||0x1f4,function(_0x35de88){const _0x52d1fc=a480_0x2706;logger[_0x52d1fc('0x7a')](_0x35de88['stack']),_0x35de88[_0x52d1fc('0x9e')]&&delete _0x35de88[_0x52d1fc('0x9e')],_0xde59f5['status'](_0xfe7853)[_0x52d1fc('0xd4')](_0x35de88);};}function getInteractionUsers(_0x3d020c,_0x11eff8){return new Promise(function(_0x1fcac6,_0x445ecb){try{_0x11eff8[_0x3d020c['id']]&&(_0x3d020c['Users']=_['map'](_0x11eff8[_0x3d020c['id']],function(_0x5d3911){const _0x227ffa=a480_0x2706;return{'id':_0x5d3911['id'],'fullname':_0x5d3911[_0x227ffa('0x95')]};}));}catch(_0x5686b9){_0x445ecb(_0x5686b9);}_0x1fcac6(_0x3d020c);});}function getInteractionTags(_0x236b20,_0x8d86ae){return new Promise(function(_0x59f306,_0x60dbd5){const _0x572f80=a480_0x2706;try{_0x236b20[_0x572f80('0x53')]&&(_0x236b20[_0x572f80('0xaa')]=[],_0x236b20[_0x572f80('0x53')]['split'](',')[_0x572f80('0x98')](function(_0x2307bf){const _0x32517c=_0x572f80;_0x236b20[_0x32517c('0xaa')][_0x32517c('0x28')](_0x8d86ae[_0x2307bf]);})),delete _0x236b20[_0x572f80('0x53')];}catch(_0x410eb2){_0x60dbd5(_0x410eb2);}_0x59f306(_0x236b20);});}function updateOpenchannelInteraction(_0x4ebde4,_0x3db1ec,_0x3213bd){return new Promise(function(_0x573623,_0x550efc){const _0x9155ac=a480_0x2706;return getInteractionUsers(_0x4ebde4,_0x3213bd)['then'](function(_0x56d2db){return getInteractionTags(_0x56d2db,_0x3db1ec);})[_0x9155ac('0x25')](function(_0x200f73){_0x573623(_0x200f73);})[_0x9155ac('0x72')](function(_0x484d9c){_0x550efc(_0x484d9c);});});}exports['index']=function(_0x8e922c,_0x17b831){const _0x220f8c=_0xbb0031,_0x1570c0={},_0x382ae8={},_0x1dcc0e={'count':0x0,'rows':[]},_0x322fc9=_[_0x220f8c('0x83')](db['OpenchannelInteraction'][_0x220f8c('0xb1')],function(_0x2643b4){const _0x11fe10=_0x220f8c;return{'name':_0x2643b4[_0x11fe10('0x8a')],'type':_0x2643b4['type'][_0x11fe10('0xc5')]};});_0x382ae8[_0x220f8c('0xa3')]=_[_0x220f8c('0x83')](_0x322fc9,_0x220f8c('0x9e')),_0x382ae8[_0x220f8c('0xac')]=_[_0x220f8c('0x42')](_0x8e922c[_0x220f8c('0xac')]),_0x382ae8['filters']=_[_0x220f8c('0x73')](_0x382ae8[_0x220f8c('0xa3')],_0x382ae8[_0x220f8c('0xac')]),_0x1570c0[_0x220f8c('0x3b')]=_['intersection'](_0x382ae8[_0x220f8c('0xa3')],qs[_0x220f8c('0xd0')](_0x8e922c[_0x220f8c('0xac')]['fields'])),_0x1570c0[_0x220f8c('0x3b')]=_0x1570c0[_0x220f8c('0x3b')][_0x220f8c('0xc3')]?_0x1570c0['attributes']:_0x382ae8[_0x220f8c('0xa3')];typeof _0x8e922c['query'][_0x220f8c('0xe')]===_0x220f8c('0x1a')&&(_0x1570c0['limit']=qs[_0x220f8c('0x7e')](_0x8e922c[_0x220f8c('0xac')][_0x220f8c('0x7e')]),_0x1570c0[_0x220f8c('0xbb')]=qs[_0x220f8c('0xbb')](_0x8e922c[_0x220f8c('0xac')]['offset']));_0x1570c0['order']=qs[_0x220f8c('0x38')](_0x8e922c[_0x220f8c('0xac')]['sort']),_0x1570c0[_0x220f8c('0xb6')]=qs['filters'](_[_0x220f8c('0x6')](_0x8e922c[_0x220f8c('0xac')],_0x382ae8[_0x220f8c('0x70')]),_0x322fc9);let _0x163633=[];const _0x2ac275=squel[_0x220f8c('0x80')]()[_0x220f8c('0x9d')]('id')['field']('name')[_0x220f8c('0x9d')](_0x220f8c('0x8f'))['from']('tools_tags'),_0x1f671e=squel[_0x220f8c('0x80')]()[_0x220f8c('0x9d')](_0x220f8c('0x34'))['field'](_0x220f8c('0xb7'))[_0x220f8c('0x9d')](_0x220f8c('0x13'))['from'](_0x220f8c('0xa8'),'ui')[_0x220f8c('0xd6')](_0x220f8c('0x75'),'u',_0x220f8c('0x51')),_0x5ea67f=squel[_0x220f8c('0x80')]()[_0x220f8c('0x9')](_0x220f8c('0x21'),'i')['left_join'](_0x220f8c('0xd9'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')['left_join'](_0x220f8c('0x75'),'o',_0x220f8c('0x3c'))[_0x220f8c('0xd6')](_0x220f8c('0xb5'),'a',_0x220f8c('0x23'))[_0x220f8c('0xd6')](_0x220f8c('0x40'),'me','me.OpenchannelInteractionId\x20=\x20i.id')[_0x220f8c('0xd6')](_0x220f8c('0x44'),'it',_0x220f8c('0xa4'))[_0x220f8c('0xd6')](_0x220f8c('0x2'),'t',_0x220f8c('0x71')),_0x3c4900=squel[_0x220f8c('0x3a')]();let _0xc9a5c4=[];const _0x211439=squel[_0x220f8c('0x3a')]();let _0x4aa7a3;if(_0x8e922c[_0x220f8c('0xac')][_0x220f8c('0xde')]){_0x4aa7a3=as[_0x220f8c('0x85')](_0x8e922c[_0x220f8c('0xac')][_0x220f8c('0xde')]);const _0x2cf8e9=_0x4aa7a3['sqlOperator'];for(let _0x50759f=0x0;_0x50759f<_0x4aa7a3[_0x220f8c('0x39')][_0x220f8c('0xc3')];_0x50759f++){const _0x1326b7=_0x4aa7a3[_0x220f8c('0x39')][_0x50759f],_0x263041='i';let _0x59aa20,_0x1a72c8=_['find'](_0x322fc9,['name',_0x1326b7[_0x220f8c('0x9d')]]);if(!_0x1a72c8)switch(_0x1326b7[_0x220f8c('0x9d')]){case _0x220f8c('0x2a'):_0x1326b7[_0x220f8c('0xa6')]==0x1?_0x5ea67f[_0x220f8c('0x87')]('`'+_0x1326b7[_0x220f8c('0x9d')]+_0x220f8c('0x59')):_0x5ea67f[_0x220f8c('0x87')]('`'+_0x1326b7['field']+_0x220f8c('0x29'));break;case'Contact':if(_0x1326b7[_0x220f8c('0xdd')]===_0x220f8c('0xb8')){if(_0x1326b7['value'][_0x220f8c('0x93')]('\x20')[_0x220f8c('0xc3')]>0x1)_0x3c4900[_0x2cf8e9](_0x220f8c('0x78'),qs[_0x220f8c('0x20')](_0x1326b7[_0x220f8c('0xa6')]),null);else{const _0x36bd18='%'+_0x1326b7['value']+'%';_0x3c4900[_0x2cf8e9]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x36bd18,_0x36bd18,_0x36bd18);}}else _0x1a72c8=_['find'](_0x322fc9,['name',_0x220f8c('0x94')]),_0x1326b7[_0x220f8c('0x9d')]=_0x220f8c('0x94'),_0x59aa20=as[_0x220f8c('0xc4')](_0x263041,_0x1a72c8['type'],_0x1326b7),_0x3c4900[_0x2cf8e9](_0x59aa20[_0x220f8c('0xba')],_0x59aa20[_0x220f8c('0xa6')]['start'],_0x59aa20[_0x220f8c('0xa6')][_0x220f8c('0x3f')]);break;case'Tag':{const _0x50d9e1=_0x1326b7[_0x220f8c('0xa6')][_0x220f8c('0x93')](',')['map'](function(_0xcf7c29){return Number(_0xcf7c29);});_0x50d9e1[_0x220f8c('0x98')](function(_0x215591){const _0x499052=_0x220f8c;_0x211439['or'](_0x499052('0x1b'),'%,'+_0x215591+',%');}),_0xc9a5c4=_['union'](_0xc9a5c4,_0x50d9e1);}break;case'User':_0x1326b7[_0x220f8c('0xdd')]===_0x220f8c('0xb8')?_0x3c4900[_0x2cf8e9](_0x220f8c('0x89'),'%'+_0x1326b7[_0x220f8c('0xa6')]+'%',null):(_0x1a72c8=_['find'](_0x322fc9,['name',_0x220f8c('0xcf')]),_0x1326b7[_0x220f8c('0x9d')]=_0x220f8c('0xcf'),_0x59aa20=as[_0x220f8c('0xc4')](_0x263041,_0x1a72c8[_0x220f8c('0xd1')],_0x1326b7),_0x3c4900[_0x2cf8e9](_0x59aa20['text'],_0x59aa20['value'][_0x220f8c('0x55')],_0x59aa20[_0x220f8c('0xa6')]['end']));break;case _0x220f8c('0xc0'):_0x59aa20=as['buildExpression']('me',null,_0x1326b7),_0x3c4900[_0x2cf8e9](_0x59aa20[_0x220f8c('0xba')],_0x59aa20[_0x220f8c('0xa6')][_0x220f8c('0x55')],_0x59aa20[_0x220f8c('0xa6')][_0x220f8c('0x3f')]);break;}else _0x59aa20=as[_0x220f8c('0xc4')](_0x263041,_0x1a72c8[_0x220f8c('0xd1')],_0x1326b7),_0x3c4900[_0x2cf8e9](_0x59aa20[_0x220f8c('0xba')],_0x59aa20['value'][_0x220f8c('0x55')],_0x59aa20[_0x220f8c('0xa6')][_0x220f8c('0x3f')]);}}else{const _0x56b8aa=_(_0x8e922c[_0x220f8c('0xac')])[_0x220f8c('0x42')]()[_0x220f8c('0x83')](function(_0x4005a){const _0x10654d=_0x220f8c;return _[_0x10654d('0x7f')](_0x322fc9,[_0x10654d('0x9e'),_0x4005a])?_0x4005a:undefined;})['compact']()['value']();!_[_0x220f8c('0x5e')](_0x56b8aa)&&_0x56b8aa[_0x220f8c('0x98')](function(_0x3c5971){const _0x9a38fe=_0x220f8c;if(_0x3c5971==='OpenchannelAccountId')_0x5ea67f[_0x9a38fe('0xb6')](_0x9a38fe('0xd2'),[][_0x9a38fe('0x47')](_0x8e922c[_0x9a38fe('0xac')][_0x3c5971]));else{if(_0x3c5971===_0x9a38fe('0x5d')){const _0x20f744=JSON[_0x9a38fe('0xc1')](_0x8e922c[_0x9a38fe('0xac')][_0x3c5971])[_0x9a38fe('0x17')],_0x39f8a5=JSON[_0x9a38fe('0xc1')](_0x8e922c['query'][_0x3c5971])['$lte'];_0x5ea67f[_0x9a38fe('0xb6')](_0x9a38fe('0x9f'),_0x20f744,_0x39f8a5);}else _0x8e922c[_0x9a38fe('0xac')][_0x3c5971]===_0x9a38fe('0x90')?_0x5ea67f[_0x9a38fe('0xb6')]('i.'+_0x3c5971+_0x9a38fe('0x3')):_0x5ea67f['where']('i.'+_0x3c5971+_0x9a38fe('0x84'),_0x8e922c['query'][_0x3c5971]);}});_0x8e922c['query'][_0x220f8c('0xb2')]&&(_0x8e922c[_0x220f8c('0xac')][_0x220f8c('0xb2')]==0x1?_0x5ea67f['having'](_0x220f8c('0xbe')):_0x5ea67f[_0x220f8c('0x87')](_0x220f8c('0x43')));_0x8e922c['query'][_0x220f8c('0x4c')]&&(_0xc9a5c4=_[_0x220f8c('0x36')](_0x8e922c[_0x220f8c('0xac')][_0x220f8c('0x4c')])?_0x8e922c[_0x220f8c('0xac')]['tag']:new Array(_0x8e922c[_0x220f8c('0xac')][_0x220f8c('0x4c')]),_0xc9a5c4[_0x220f8c('0x98')](function(_0x483dee){_0x211439['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x483dee+',%');}));if(_0x8e922c[_0x220f8c('0xac')][_0x220f8c('0x6a')]){const _0x5b346a=_0x8e922c[_0x220f8c('0xac')]['filter'][_0x220f8c('0x24')]('\x5c','\x5c\x5c')[_0x220f8c('0x24')]('\x27\x27',_0x220f8c('0xa9'));qs[_0x220f8c('0x33')](_0x5b346a)?_0x3c4900['or'](_0x220f8c('0xce'),_0x5b346a+'%'):_0x3c4900['or'](_0x220f8c('0xca'),qs[_0x220f8c('0x20')](_0x5b346a))['or']('i.from\x20LIKE\x20?',_0x5b346a+'%')['or'](_0x220f8c('0x74'),_0x5b346a+'%');}}_0x5ea67f[_0x220f8c('0xb6')](_0x3c4900),_0x5ea67f[_0x220f8c('0x4b')](_0x220f8c('0xd'));let _0xefa4dc={'type':db['Sequelize'][_0x220f8c('0x3d')]['SELECT'],'raw':!![]};const _0xa1117e=_0x5ea67f['clone']();_0xa1117e['field'](_0x220f8c('0xd')),_0xa1117e[_0x220f8c('0x9d')](_0x220f8c('0xad'),_0x220f8c('0x2a')),_0x1570c0[_0x220f8c('0x99')]&&_0x1570c0[_0x220f8c('0x99')]['forEach'](function(_0x3063c9){const _0x207d8=_0x220f8c;_0x5ea67f[_0x207d8('0x99')]('i.'+_0x3063c9[0x0],_0x3063c9[0x1]===_0x207d8('0x61')?![]:!![]);}),!_[_0x220f8c('0x5e')](_0xc9a5c4)&&(_0x5ea67f['having'](_0x211439),_0xa1117e[_0x220f8c('0xb6')](_0x220f8c('0x64'),_0xc9a5c4)),Promise[_0x220f8c('0x2c')]()[_0x220f8c('0x25')](function(){const _0x583e78=_0x220f8c;if(!_0x4aa7a3){if(_0x8e922c[_0x583e78('0xac')][_0x583e78('0x6c')]||_0x8e922c['query']['journey'])return;_0xa1117e[_0x583e78('0xb6')]('i.OpenchannelAccountId\x20IS\x20NOT\x20NULL'),_0x5ea67f['where'](_0x583e78('0x67'));return;}return _0x8e922c[_0x583e78('0x19')][_0x583e78('0x4e')]({'attributes':['id'],'raw':!![]})[_0x583e78('0x25')](function(_0x1e5308){const _0x231be2=_0x583e78;_[_0x231be2('0x5e')](_0x1e5308)?(_0xa1117e[_0x231be2('0xb6')](_0x231be2('0x6e')),_0x5ea67f[_0x231be2('0xb6')](_0x231be2('0x6e'))):(_0xa1117e[_0x231be2('0xb6')](_0x231be2('0xd2'),_[_0x231be2('0x83')](_0x1e5308,'id')),_0x5ea67f['where'](_0x231be2('0xd2'),_['map'](_0x1e5308,'id')));});})[_0x220f8c('0x25')](function(){const _0x3d6b72=_0x220f8c;db['sequelize'][_0x3d6b72('0xac')](_0xa1117e[_0x3d6b72('0xdc')](),_0xefa4dc)[_0x3d6b72('0x25')](function(_0x35c7de){const _0x1a7433=_0x3d6b72;_0x1dcc0e[_0x1a7433('0xe0')]=_0x35c7de[_0x1a7433('0xc3')];if(_0x1dcc0e[_0x1a7433('0xe0')]===0x0)return[];return db[_0x1a7433('0xa5')][_0x1a7433('0xac')](_0x2ac275[_0x1a7433('0xdc')](),_0xefa4dc)[_0x1a7433('0x25')](function(_0x55a815){const _0x246233=_0x1a7433;_0x163633=_[_0x246233('0xd3')](_0x55a815,'id'),_0xefa4dc=_['merge'](_0xefa4dc,{'model':db['OpenchannelInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x8e922c[_0x246233('0xac')]['fields']?_0x1570c0[_0x246233('0x3b')][_0x246233('0x98')](function(_0x318f25){const _0x3b727e=_0x246233;_0x5ea67f[_0x3b727e('0x9d')]('i.'+_0x318f25);}):(_0x5ea67f['field']('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)',_0x246233('0x2a')),_0x5ea67f[_0x246233('0x9d')](_0x246233('0xc9'),_0x246233('0x88')),_0x5ea67f['field'](_0x246233('0x2b'),_0x246233('0x6d')),_0x5ea67f[_0x246233('0x9d')](_0x246233('0xb4')),_0x5ea67f[_0x246233('0x9d')](_0x246233('0x49'),_0x246233('0x58')),_0x5ea67f['field'](_0x246233('0x37'),_0x246233('0xae')),_0x5ea67f[_0x246233('0x9d')](_0x246233('0x62'),_0x246233('0x26')),_0x5ea67f[_0x246233('0x9d')](_0x246233('0xbf'),'Contact.phone'),_0x5ea67f[_0x246233('0x9d')](_0x246233('0x1e'),'Contact.mobile'),_0x5ea67f['field'](_0x246233('0x1'),_0x246233('0x14')),_0x5ea67f[_0x246233('0x9d')](_0x246233('0xdb'),_0x246233('0x5')),_0x5ea67f[_0x246233('0x9d')](_0x246233('0x69'),'Owner.internal'),_0x5ea67f[_0x246233('0x9d')]('GROUP_CONCAT(DISTINCT\x20t.id)',_0x246233('0x53')));if(_0x1570c0[_0x246233('0x7e')])_0x5ea67f[_0x246233('0x7e')](_0x1570c0[_0x246233('0x7e')]);if(_0x1570c0[_0x246233('0xbb')])_0x5ea67f['offset'](_0x1570c0[_0x246233('0xbb')]);return db[_0x246233('0xa5')][_0x246233('0xac')](_0x5ea67f[_0x246233('0xdc')](),_0xefa4dc);})[_0x1a7433('0x25')](function(_0x58b5e1){const _0x97434c=_0x1a7433;return _0x1f671e[_0x97434c('0xb6')](_0x97434c('0x12'),_['map'](_0x58b5e1,'id')),db['sequelize'][_0x97434c('0xac')](_0x1f671e[_0x97434c('0xdc')](),_0xefa4dc)[_0x97434c('0x25')](function(_0x486feb){const _0x37e748=_0x97434c,_0x682a14=_['groupBy'](_0x486feb,_0x37e748('0x6f')),_0x341c61=[];return _0x58b5e1[_0x37e748('0x98')](function(_0x4e3ecd){const _0x1bba56=_0x37e748;_0x341c61[_0x1bba56('0x28')](updateOpenchannelInteraction(_0x4e3ecd,_0x163633,_0x682a14));}),Promise[_0x37e748('0x4a')](_0x341c61);});});})[_0x3d6b72('0x25')](function(_0x146261){const _0x43b87c=_0x3d6b72;return _0x1dcc0e[_0x43b87c('0x31')]=_0x146261,_0x1dcc0e;})[_0x3d6b72('0x25')](respondWithFilteredResult(_0x17b831,_0x1570c0));})[_0x220f8c('0x72')](handleError(_0x17b831,null));},exports[_0xbb0031('0x56')]=function(_0x1c951d,_0x4d6f9c){const _0x552d17=_0xbb0031,_0x345131={};_0x1c951d['query'][_0x552d17('0xd1')]&&_0x1c951d['query']['type']===_0x552d17('0x9')?_0x345131[_0x552d17('0x9')]=_0x1c951d['params']['id']:_0x345131['id']=_0x1c951d[_0x552d17('0xc6')]['id'];let _0x4a7a34={'raw':![],'where':_0x345131};const _0x4ac1a1={};return _0x4ac1a1[_0x552d17('0xa3')]=_[_0x552d17('0x42')](db['OpenchannelInteraction'][_0x552d17('0xb1')]),_0x4ac1a1[_0x552d17('0xac')]=_['keys'](_0x1c951d['query']),_0x4ac1a1[_0x552d17('0x70')]=_['intersection'](_0x4ac1a1[_0x552d17('0xa3')],_0x4ac1a1[_0x552d17('0xac')]),_0x4a7a34['attributes']=_[_0x552d17('0x73')](_0x4ac1a1[_0x552d17('0xa3')],qs[_0x552d17('0xd0')](_0x1c951d[_0x552d17('0xac')]['fields'])),_0x4a7a34[_0x552d17('0x3b')]=_0x4a7a34['attributes'][_0x552d17('0xc3')]?_0x4a7a34[_0x552d17('0x3b')]:_0x4ac1a1[_0x552d17('0xa3')],_0x1c951d[_0x552d17('0xac')][_0x552d17('0xa0')]&&(_0x4a7a34[_0x552d17('0x66')]=[{'all':!![]}]),_0x4a7a34=_['merge']({},_0x4a7a34,_0x1c951d['options']),db[_0x552d17('0x2f')][_0x552d17('0x35')](_0x4a7a34)['then'](handleEntityNotFound(_0x4d6f9c,null))[_0x552d17('0x25')](respondWithResult(_0x4d6f9c,null))[_0x552d17('0x72')](handleError(_0x4d6f9c,null));},exports[_0xbb0031('0x45')]=function(_0x1585c4,_0x5a1025){const _0x2e3358=_0xbb0031;return db[_0x2e3358('0x2f')][_0x2e3358('0x45')](_0x1585c4[_0x2e3358('0xc0')],{})[_0x2e3358('0x25')](respondWithResult(_0x5a1025,0xc9))[_0x2e3358('0x72')](handleError(_0x5a1025,null));},exports[_0xbb0031('0x79')]=function(_0x1eb27f,_0x5bc398){const _0xe86134=_0xbb0031;return _0x1eb27f[_0xe86134('0xc0')]['id']&&delete _0x1eb27f[_0xe86134('0xc0')]['id'],db[_0xe86134('0x2f')][_0xe86134('0x35')]({'where':{'id':_0x1eb27f[_0xe86134('0xc6')]['id']}})[_0xe86134('0x25')](handleEntityNotFound(_0x5bc398,null))[_0xe86134('0x25')](saveUpdates(_0x1eb27f[_0xe86134('0xc0')],null))[_0xe86134('0x25')](respondWithResult(_0x5bc398,null))['catch'](handleError(_0x5bc398,null));},exports[_0xbb0031('0x30')]=function(_0x482948,_0x4d881e){const _0x2ccc1b=_0xbb0031;return db[_0x2ccc1b('0x2f')][_0x2ccc1b('0x35')]({'where':{'id':_0x482948[_0x2ccc1b('0xc6')]['id']}})[_0x2ccc1b('0x25')](handleEntityNotFound(_0x4d881e,null))[_0x2ccc1b('0x25')](removeEntity(_0x4d881e,null))[_0x2ccc1b('0x72')](handleError(_0x4d881e,null));},exports[_0xbb0031('0xe1')]=function(_0x4e8267,_0x721d7c){const _0x190c1c=_0xbb0031;return db[_0x190c1c('0x2f')][_0x190c1c('0xe1')]()['then'](respondWithResult(_0x721d7c,null))['catch'](handleError(_0x721d7c,null));},exports[_0xbb0031('0x1c')]=function(_0x5b9937,_0x28f870){const _0x28d570=_0xbb0031;return db[_0x28d570('0x1f')]['findOne']({'where':{'id':_0x5b9937[_0x28d570('0xc6')]['id']}})[_0x28d570('0x25')](function(_0x112b00){const _0x1971c4=_0x28d570;if(_0x112b00)return _0x112b00[_0x1971c4('0x1c')](_0x5b9937['body']['ids'],{'through':_[_0x1971c4('0x8e')](_0x5b9937[_0x1971c4('0xc0')],[_0x1971c4('0x48'),'id'])});})[_0x28d570('0x25')](respondWithResult(_0x28f870,null))[_0x28d570('0x72')](handleError(_0x28f870,null));},exports[_0xbb0031('0x81')]=function(_0x3b78e2,_0x26b9c6){const _0x32765f=_0xbb0031;let _0x1b0785={'raw':![],'where':{}};const _0x384d26={},_0x4f88b2={'count':0x0,'rows':[]};return db[_0x32765f('0x2f')][_0x32765f('0x35')]({'where':{'id':_0x3b78e2['params']['id']}})[_0x32765f('0x25')](handleEntityNotFound(_0x26b9c6,null))['then'](function(_0xc5e331){const _0x18e358=_0x32765f;if(_0xc5e331){_0x384d26[_0x18e358('0xa3')]=_[_0x18e358('0x42')](db['OpenchannelMessage'][_0x18e358('0xb1')]),_0x384d26[_0x18e358('0xac')]=_['keys'](_0x3b78e2[_0x18e358('0xac')]),_0x384d26[_0x18e358('0x70')]=_[_0x18e358('0x73')](_0x384d26[_0x18e358('0xa3')],_0x384d26[_0x18e358('0xac')]),_0x1b0785[_0x18e358('0x3b')]=_[_0x18e358('0x73')](_0x384d26[_0x18e358('0xa3')],qs[_0x18e358('0xd0')](_0x3b78e2[_0x18e358('0xac')][_0x18e358('0xd0')])),_0x1b0785['attributes']=_0x1b0785[_0x18e358('0x3b')][_0x18e358('0xc3')]?_0x1b0785[_0x18e358('0x3b')]:_0x384d26['model'];typeof _0x3b78e2[_0x18e358('0xac')][_0x18e358('0xe')]===_0x18e358('0x1a')&&(_0x1b0785[_0x18e358('0x7e')]=qs[_0x18e358('0x7e')](_0x3b78e2[_0x18e358('0xac')][_0x18e358('0x7e')]),_0x1b0785[_0x18e358('0xbb')]=qs['offset'](_0x3b78e2[_0x18e358('0xac')]['offset']));_0x1b0785[_0x18e358('0x99')]=qs[_0x18e358('0x38')](_0x3b78e2['query'][_0x18e358('0x38')]),_0x1b0785['where']=qs[_0x18e358('0x70')](_['pick'](_0x3b78e2[_0x18e358('0xac')],_0x384d26[_0x18e358('0x70')])),_0x1b0785[_0x18e358('0xb6')]['OpenchannelInteractionId']=_0xc5e331['id'];_0x3b78e2[_0x18e358('0xac')][_0x18e358('0x6a')]&&(_0x1b0785[_0x18e358('0xb6')]=_['merge'](_0x1b0785[_0x18e358('0xb6')],{[Op['or']]:_[_0x18e358('0x83')](_0x1b0785[_0x18e358('0x3b')],function(_0x4490a4){const _0x16a855=_0x18e358,_0x1f4473={};return _0x1f4473[_0x4490a4]={[Op[_0x16a855('0x97')]]:'%'+_0x3b78e2[_0x16a855('0xac')]['filter']+'%'},_0x1f4473;})}));if(_0x3b78e2[_0x18e358('0xac')][_0x18e358('0x17')]){const _0x1d4506=_0x3b78e2[_0x18e358('0xac')][_0x18e358('0x17')]['split'](','),_0x359a71={};_0x359a71[_0x1d4506[0x0]]={[Op[_0x18e358('0x4f')]]:moment(_0x1d4506[0x1])['format'](_0x18e358('0x5f'))},_0x1b0785[_0x18e358('0xb6')]=_[_0x18e358('0xdf')](_0x1b0785['where'],_0x359a71);}return _0x1b0785=_[_0x18e358('0xdf')]({},_0x1b0785,_0x3b78e2[_0x18e358('0x8')]),db[_0x18e358('0x1f')][_0x18e358('0xe0')]({'where':_0x1b0785[_0x18e358('0xb6')]})[_0x18e358('0x25')](function(_0x22a7e4){const _0x324812=_0x18e358;return _0x4f88b2['count']=_0x22a7e4,_0x3b78e2['query'][_0x324812('0xa0')]&&(_0x1b0785[_0x324812('0x66')]=[{'all':!![]}]),db[_0x324812('0x1f')]['findAll'](_0x1b0785);})['then'](function(_0x5c899e){const _0x271502=_0x18e358;return _0x4f88b2[_0x271502('0x31')]=_0x5c899e,_0x4f88b2;});}})[_0x32765f('0x25')](respondWithFilteredResult(_0x26b9c6,_0x1b0785))['catch'](handleError(_0x26b9c6,null));},exports[_0xbb0031('0x54')]=function(_0x5847b0,_0x4ee86c){const _0x1f4d5f=_0xbb0031;return db[_0x1f4d5f('0x2f')]['findOne']({'where':{'id':_0x5847b0['params']['id']}})[_0x1f4d5f('0x25')](function(_0x546ddc){const _0xe34cd9=_0x1f4d5f;if(_0x546ddc)return _0x546ddc[_0xe34cd9('0x10')](_0x5847b0[_0xe34cd9('0xc0')]['ids'],{'through':_[_0xe34cd9('0x8e')](_0x5847b0[_0xe34cd9('0xc0')],['ids','id'])})[_0xe34cd9('0x25')](function(){const _0x33e582=_0xe34cd9;return db['Tag'][_0x33e582('0xbc')]({'attributes':['id',_0x33e582('0x9e'),_0x33e582('0x8f')],'where':{'id':_0x5847b0[_0x33e582('0xc0')]['ids']}});})['then'](function(_0x19eb41){const _0x421af1=_0xe34cd9;return socket[_0x421af1('0x50')](_0x421af1('0x2e'),{'id':Number(_0x5847b0[_0x421af1('0xc6')]['id']),'tags':_0x19eb41||[]}),{'id':Number(_0x5847b0['params']['id']),'tags':_0x19eb41||[]};});})[_0x1f4d5f('0x25')](respondWithResult(_0x4ee86c,null))[_0x1f4d5f('0x72')](handleError(_0x4ee86c,null));},exports[_0xbb0031('0x3e')]=function(_0x309bb4,_0x36ed13){const _0x5b4c8d=_0xbb0031;return db[_0x5b4c8d('0x2f')][_0x5b4c8d('0x35')]({'where':{'id':_0x309bb4[_0x5b4c8d('0xc6')]['id']}})[_0x5b4c8d('0x25')](handleEntityNotFound(_0x36ed13,null))['then'](function(_0x44550e){const _0x5bda98=_0x5b4c8d;if(_0x44550e)return _0x44550e['removeTags'](_0x309bb4[_0x5bda98('0xac')][_0x5bda98('0x48')]);})[_0x5b4c8d('0x25')](respondWithStatusCode(_0x36ed13,null))['catch'](handleError(_0x36ed13,null));},exports[_0xbb0031('0xc8')]=function(_0x30d600,_0x2799a6){const _0x17fb3f=_0xbb0031,_0x118699=moment()[_0x17fb3f('0x4')]()[_0x17fb3f('0xdc')](),_0x39d7ab=path['join'](config[_0x17fb3f('0x7')],_0x17fb3f('0xb'),_0x17fb3f('0x15')),_0x865973=path['join'](config[_0x17fb3f('0x7')],'server',_0x17fb3f('0xb'),'attachments'),_0x1b67e2=path[_0x17fb3f('0x41')](_0x39d7ab,_0x118699),_0x5ed216=util[_0x17fb3f('0xcc')](_0x17fb3f('0x5c'),_0x30d600[_0x17fb3f('0xc6')]['id'],_0x118699),_0x46ac03=path[_0x17fb3f('0x41')](_0x39d7ab,_0x5ed216),_0x13c8a5=[];_0x13c8a5['push']({'model':db[_0x17fb3f('0xd5')],'as':'User','attributes':['id','fullname'],'raw':!![]}),_0x13c8a5['push']({'model':db[_0x17fb3f('0x8d')],'as':_0x17fb3f('0xc'),'attributes':['id',_0x17fb3f('0xd8'),_0x17fb3f('0x92')],'raw':!![]});_0x30d600[_0x17fb3f('0xac')]['attachments']&&_0x13c8a5[_0x17fb3f('0x28')]({'model':db[_0x17fb3f('0x1d')],'as':_0x17fb3f('0x1d'),'raw':!![]});const _0x4bcbff=[{'model':db['OpenchannelMessage'],'as':_0x17fb3f('0x32'),'attributes':['id',_0x17fb3f('0xc0'),'createdAt','direction',_0x17fb3f('0x57'),_0x17fb3f('0xb2')],'include':_0x13c8a5}];return _0x4bcbff[_0x17fb3f('0x28')]({'model':db[_0x17fb3f('0x16')],'as':_0x17fb3f('0xaf'),'attributes':['id',_0x17fb3f('0x9e')]}),_0x4bcbff[_0x17fb3f('0x28')]({'model':db[_0x17fb3f('0xd5')],'as':_0x17fb3f('0x9b'),'attributes':['id',_0x17fb3f('0x95')]}),db[_0x17fb3f('0x2f')][_0x17fb3f('0x35')]({'where':{'id':_0x30d600[_0x17fb3f('0xc6')]['id']},'include':_0x4bcbff})[_0x17fb3f('0x25')](handleEntityNotFound(_0x2799a6,null))[_0x17fb3f('0x25')](function(_0x154b06){const _0x525232=_0x17fb3f;if(_0x154b06){const _0x31a892=_0x154b06[_0x525232('0x7c')]({'plain':!![]});fs[_0x525232('0x46')](_0x1b67e2);const _0x4cc785={'format':'A4','border':_0x525232('0x5b'),'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':_0x525232('0xb9'),'contents':{'default':util['format'](_0x525232('0x91'),util['format'](_0x525232('0x65'),_0x525232('0xb3'),_0x31a892['id']),moment()[_0x525232('0xcc')](_0x525232('0xc7'))[_0x525232('0xdc')]())}}},_0x4d04b2={'channel':_0x525232('0xb3'),'account':_0x31a892[_0x525232('0xaf')][_0x525232('0x9e')],'agent':_0x31a892['Owner']?_0x31a892[_0x525232('0x9b')][_0x525232('0x95')]:'N.A.','createdAt':moment(_0x31a892['createdAt'])['format'](_0x525232('0x5f'))[_0x525232('0xdc')](),'closedAt':_0x31a892[_0x525232('0x6b')]?moment(_0x31a892[_0x525232('0xa7')])['format'](_0x525232('0x5f'))[_0x525232('0xdc')]():'','disposition':_0x31a892[_0x525232('0x8c')],'visibility':_0x31a892[_0x525232('0x7b')]?_0x525232('0x18'):_0x525232('0xe2'),'messages':_(_0x31a892[_0x525232('0x32')])[_0x525232('0x6a')]({'secret':![]})[_0x525232('0x83')](function(_0x38b1d2){const _0x251074=_0x525232;if(_0x38b1d2['Attachment']){const _0x2d6c28=path[_0x251074('0x41')](_0x865973,_0x38b1d2[_0x251074('0x1d')][_0x251074('0x86')]);fs[_0x251074('0x27')](_0x2d6c28)&&fs[_0x251074('0x9c')](_0x2d6c28)['pipe'](fs[_0x251074('0xab')](path['join'](_0x1b67e2,_0x38b1d2[_0x251074('0x1d')][_0x251074('0x86')])));}return{'date':moment(_0x38b1d2[_0x251074('0x5d')])['format'](_0x251074('0x5f'))[_0x251074('0xdc')](),'sender':_0x38b1d2[_0x251074('0x22')]===_0x251074('0x9a')?_0x38b1d2[_0x251074('0xd5')]?_0x38b1d2['User'][_0x251074('0x95')]:'System':_0x38b1d2[_0x251074('0xc')]['firstName']+(_0x38b1d2[_0x251074('0xc')][_0x251074('0x92')]?'\x20'+_0x38b1d2['Contact'][_0x251074('0x92')]:''),'body':_0x38b1d2[_0x251074('0x1d')]?_0x38b1d2['Attachment'][_0x251074('0x86')]:_0x38b1d2[_0x251074('0xc0')],'direction':_0x38b1d2[_0x251074('0x22')]==='out'?'A':'C','secret':_0x38b1d2['secret'],'read':_0x38b1d2['read'],'attachment':_0x38b1d2[_0x251074('0x1d')]};})[_0x525232('0xa6')]()};return ejs[_0x525232('0xa1')](path[_0x525232('0x41')](config[_0x525232('0x7')],_0x525232('0x63'),_0x525232('0x0'),'downloadInteraction.html'),{'interaction':_0x4d04b2})['then'](function(_0x371251){return new Promise(function(_0x299b6f,_0x134865){const _0x3cbfba=a480_0x2706;pdf[_0x3cbfba('0x45')](_0x371251,_0x4cc785)['toFile'](path[_0x3cbfba('0x41')](_0x1b67e2,_0x3cbfba('0x76')+_0x31a892['id']+'-'+_0x118699+_0x3cbfba('0xd7')),function(_0x20f80c,_0x56e0bf){if(_0x20f80c)return _0x134865(_0x20f80c);_0x299b6f(_0x56e0bf);});});})[_0x525232('0x25')](function(){const _0x38bc87=_0x525232;return new Promise(function(_0x59f715,_0x15f392){zipdir(_0x1b67e2,{'saveTo':_0x46ac03},function(_0x526fcf,_0x5ed723){if(_0x526fcf)return _0x15f392(_0x526fcf);return _0x59f715(_0x5ed723);});})[_0x38bc87('0x25')](function(){return new Promise(function(_0x13ef99,_0x288470){rimraf(_0x1b67e2,function(_0x493790){if(_0x493790)_0x288470(_0x493790);return _0x13ef99();});});})[_0x38bc87('0x25')](function(){const _0x45825a=_0x38bc87;return _0x2799a6[_0x45825a('0xc8')](_0x46ac03,_0x5ed216,function(_0x71c8b4){const _0x1ead5e=_0x45825a;_0x71c8b4?console['log'](_0x1ead5e('0xbd'),_0x71c8b4):fs[_0x1ead5e('0x7d')](_0x46ac03);});});});}else return _0x2799a6['sendStatus'](0xc8);})['catch'](handleError(_0x2799a6,null));}; \ No newline at end of file +const a480_0x514a=['getOpenchannelAccounts','removeTags','o.internal','log','./openchannelInteraction.socket','read','status','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','closed','createReadStream','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','tag','Contact','openchannel_accounts','System','show','\x27\x27\x27\x27','download','Sequelize','OpenchannelMessage','findAll','rows','start','end','api','tmp','\x20IS\x20NULL','i.id','sort','OpenchannelInteractionId','filters','attachments','order','destroy','../../config/environment','isArray','ui.OpenchannelInteractionId\x20IN\x20?','field','rawAttributes','set','setTags','compact','YYYY-MM-DD\x20HH:mm:ss','json','buildExpression','util','c.lastName','parse','sendStatus','User','key','Contact.mobile','GROUP_CONCAT(DISTINCT\x20t.id)','getFullTextValue','`\x20=\x200','intersection','`\x20>\x200','filter','i.*','toString','\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','c.fax','describe','secret','user_has_openchannel_interactions','transcript-','Attachment','operator','where','merge','keys','OpenchannelAccountId','sequelize','offset','Account.mandatoryDisposition','send','left_join','createdAt','isNumeric','addTags','i.from\x20LIKE\x20?','files','fields','root','catch','resolve','YYYY-MM-DD','pick','format','cm_contacts','nolimit','union','existsSync','$substring','body','split','parseSearch','emit','gte','attributes','i.OpenchannelAccountId\x20IS\x20NULL','undefined','Contact.phone','stack','direction','UserId','i.OpenchannelAccountId\x20IN\x20?','Owner.fullname','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','Content-Range','conditions','fullname','length','ids','out','firstName','Openchannel','query','getMessages','u.fullname','o.id\x20=\x20i.UserId','toFile','30px','model','.pdf','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','user','keyBy','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','10px','Tag','../../mysqldb','replace','Account','openchannel_interactions','params','Owner','omit','err','index','Contact.lastName','findOne','threadId','color','includeAll','value','options','expr','DESC','../../config/logger','tools_tags','users','update','Messages','\x20=\x20?','%s\x20#%d','addMessage','c.phone','t.id\x20IN\x20?','sqlOperator','mkdirSync','Tags','isEmpty','disposition','openchannel_interaction_has_tags','html-pdf','forEach','OpenchannelInteraction','select','$gte','server','OpenchannelAccount','a.key','limit','i.id\x20LIKE\x20?','Contact.firstName','../../components/parsers/advancedSearch','createWriteStream','pipe','search','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','`unreadMessages`\x20>\x200','Public','type','Private','Owner.internal','path','lastName','push','u.id\x20=\x20ui.UserId','count','transcript-%d-%s.zip','Contact.fax','find','map','register','lodash','`unreadMessages`\x20=\x200','group','fieldName','TagIds','basename','having','get','closedAt','then','a.id\x20=\x20i.OpenchannelAccountId','Users','QueryTypes','ContactId','join','zip-dir','i.OpenchannelAccountId\x20IS\x20NOT\x20NULL','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','ui.OpenchannelInteractionId','name','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','groupBy','CmContact','unreadMessages','downloadInteraction.html','o.fullname','unix','$lte','squel','from','create'];(function(_0x3c1b10,_0x514a37){const _0x16a469=function(_0x5c2b4d){while(--_0x5c2b4d){_0x3c1b10['push'](_0x3c1b10['shift']());}};_0x16a469(++_0x514a37);}(a480_0x514a,0xb7));const a480_0x16a4=function(_0x3c1b10,_0x514a37){_0x3c1b10=_0x3c1b10-0x0;let _0x16a469=a480_0x514a[_0x3c1b10];return _0x16a469;};const _0x1e5b50=a480_0x16a4;'use strict';const pdf=require(_0x1e5b50('0xd1')),rimraf=require('rimraf'),zipdir=require(_0x1e5b50('0x1c')),moment=require('moment'),util=require(_0x1e5b50('0x59')),path=require(_0x1e5b50('0x3')),ejs=require('ejs'),fs=require('fs'),_=require(_0x1e5b50('0xd')),squel=require(_0x1e5b50('0x29')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require('../../components/parsers/qs'),as=require(_0x1e5b50('0xdc')),logger=require(_0x1e5b50('0xc1'))(_0x1e5b50('0x44')),config=require(_0x1e5b50('0x4e')),db=require(_0x1e5b50('0xaf'))['db'],{Op}=require(_0x1e5b50('0x74'));require(_0x1e5b50('0x30'))[_0x1e5b50('0xc')](socket);function respondWithStatusCode(_0x5c2b4d,_0x3ae962){return _0x3ae962=_0x3ae962||0xcc,function(_0x1d4fb6){const _0x1f5fba=a480_0x16a4;if(_0x1d4fb6)return _0x5c2b4d[_0x1f5fba('0x5c')](_0x3ae962);return _0x5c2b4d[_0x1f5fba('0x32')](_0x3ae962)[_0x1f5fba('0x43')]();};}function respondWithResult(_0x423730,_0x3c3232){return _0x3c3232=_0x3c3232||0xc8,function(_0x44ca8e){const _0x371d5f=a480_0x16a4;if(_0x44ca8e)return _0x423730[_0x371d5f('0x32')](_0x3c3232)['json'](_0x44ca8e);};}function respondWithFilteredResult(_0xbb5bd9,_0x53404f){return function(_0x3a61b3){const _0x30f1a2=a480_0x16a4;if(_0x3a61b3){const _0x425f68=_0x3a61b3[_0x30f1a2('0x7')],_0x49de97=_0x53404f[_0x30f1a2('0x75')];let _0x33bb78=_0x53404f[_0x30f1a2('0x75')]+_0x53404f[_0x30f1a2('0xd9')],_0x3d9560;return _0x33bb78>=_0x425f68?(_0x33bb78=_0x425f68,_0x3d9560=0xc8):_0x3d9560=0xce,_0xbb5bd9[_0x30f1a2('0x32')](_0x3d9560),_0xbb5bd9[_0x30f1a2('0x53')](_0x30f1a2('0x99'),_0x49de97+'-'+_0x33bb78+'/'+_0x425f68)[_0x30f1a2('0x57')](_0x3a61b3);}return null;};}function saveUpdates(_0x11e207){return function(_0x47d486){const _0x2a5593=a480_0x16a4;if(_0x47d486)return _0x47d486['update'](_0x11e207)[_0x2a5593('0x16')](function(_0x2f1567){return _0x2f1567;});return null;};}function removeEntity(_0x565ad2){return function(_0x945c76){const _0x43367e=a480_0x16a4;if(_0x945c76)return _0x945c76[_0x43367e('0x4d')]()[_0x43367e('0x16')](function(){const _0x3de540=_0x43367e;_0x565ad2[_0x3de540('0x32')](0xcc)[_0x3de540('0x43')]();});};}function handleEntityNotFound(_0x21ce1e){return function(_0x1899b8){return!_0x1899b8&&_0x21ce1e['sendStatus'](0x194),_0x1899b8;};}function handleError(_0x5bb2b1,_0x5c71a0){return _0x5c71a0=_0x5c71a0||0x1f4,function(_0x1d518d){const _0x2fa4f1=a480_0x16a4;logger['error'](_0x1d518d[_0x2fa4f1('0x93')]),_0x1d518d[_0x2fa4f1('0x20')]&&delete _0x1d518d[_0x2fa4f1('0x20')],_0x5bb2b1[_0x2fa4f1('0x32')](_0x5c71a0)[_0x2fa4f1('0x77')](_0x1d518d);};}function getInteractionUsers(_0x462544,_0x55b16b){return new Promise(function(_0x2f3dea,_0x42cabc){const _0x3c2228=a480_0x16a4;try{_0x55b16b[_0x462544['id']]&&(_0x462544[_0x3c2228('0x18')]=_[_0x3c2228('0xb')](_0x55b16b[_0x462544['id']],function(_0x48dc38){const _0x4aded4=_0x3c2228;return{'id':_0x48dc38['id'],'fullname':_0x48dc38[_0x4aded4('0x9b')]};}));}catch(_0x287460){_0x42cabc(_0x287460);}_0x2f3dea(_0x462544);});}function getInteractionTags(_0x106fa2,_0x25bba8){return new Promise(function(_0x11f1c1,_0x5dd771){const _0x55f67b=a480_0x16a4;try{_0x106fa2[_0x55f67b('0x11')]&&(_0x106fa2[_0x55f67b('0xcd')]=[],_0x106fa2[_0x55f67b('0x11')]['split'](',')[_0x55f67b('0xd2')](function(_0x45fe91){const _0x1e3cb0=_0x55f67b;_0x106fa2[_0x1e3cb0('0xcd')][_0x1e3cb0('0x5')](_0x25bba8[_0x45fe91]);})),delete _0x106fa2[_0x55f67b('0x11')];}catch(_0x245189){_0x5dd771(_0x245189);}_0x11f1c1(_0x106fa2);});}function updateOpenchannelInteraction(_0x43f824,_0x3ceea2,_0x11291a){return new Promise(function(_0x41cae4,_0x557ab5){const _0xa85b10=a480_0x16a4;return getInteractionUsers(_0x43f824,_0x11291a)['then'](function(_0x47dfc){return getInteractionTags(_0x47dfc,_0x3ceea2);})[_0xa85b10('0x16')](function(_0x89c93b){_0x41cae4(_0x89c93b);})[_0xa85b10('0x80')](function(_0x242fe5){_0x557ab5(_0x242fe5);});});}exports[_0x1e5b50('0xb7')]=function(_0x5b3aa3,_0x177fa1){const _0x1c410d=_0x1e5b50,_0x2cf319={},_0x40dff0={},_0x194fe8={'count':0x0,'rows':[]},_0x1e455e=_[_0x1c410d('0xb')](db[_0x1c410d('0xd3')][_0x1c410d('0x52')],function(_0x55f693){const _0x2e75f4=_0x1c410d;return{'name':_0x55f693[_0x2e75f4('0x10')],'type':_0x55f693[_0x2e75f4('0x0')][_0x2e75f4('0x5e')]};});_0x40dff0['model']=_[_0x1c410d('0xb')](_0x1e455e,'name'),_0x40dff0['query']=_[_0x1c410d('0x72')](_0x5b3aa3[_0x1c410d('0xa1')]),_0x40dff0[_0x1c410d('0x4a')]=_[_0x1c410d('0x63')](_0x40dff0[_0x1c410d('0xa7')],_0x40dff0['query']),_0x2cf319[_0x1c410d('0x8f')]=_[_0x1c410d('0x63')](_0x40dff0[_0x1c410d('0xa7')],qs[_0x1c410d('0x7e')](_0x5b3aa3['query'][_0x1c410d('0x7e')])),_0x2cf319[_0x1c410d('0x8f')]=_0x2cf319['attributes'][_0x1c410d('0x9c')]?_0x2cf319[_0x1c410d('0x8f')]:_0x40dff0[_0x1c410d('0xa7')];typeof _0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0x86')]==='undefined'&&(_0x2cf319['limit']=qs[_0x1c410d('0xd9')](_0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0xd9')]),_0x2cf319[_0x1c410d('0x75')]=qs[_0x1c410d('0x75')](_0x5b3aa3[_0x1c410d('0xa1')]['offset']));_0x2cf319[_0x1c410d('0x4c')]=qs['sort'](_0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0x48')]),_0x2cf319[_0x1c410d('0x70')]=qs[_0x1c410d('0x4a')](_[_0x1c410d('0x83')](_0x5b3aa3[_0x1c410d('0xa1')],_0x40dff0[_0x1c410d('0x4a')]),_0x1e455e);let _0x44730f=[];const _0x36d6a5=squel[_0x1c410d('0xd4')]()['field']('id')['field'](_0x1c410d('0x20'))['field'](_0x1c410d('0xbb'))['from']('tools_tags'),_0x21d8d5=squel[_0x1c410d('0xd4')]()[_0x1c410d('0x51')]('u.id')[_0x1c410d('0x51')](_0x1c410d('0xa3'))[_0x1c410d('0x51')](_0x1c410d('0x1f'))[_0x1c410d('0x2a')](_0x1c410d('0x6c'),'ui')['left_join'](_0x1c410d('0xc3'),'u',_0x1c410d('0x6')),_0x3d66c0=squel[_0x1c410d('0xd4')]()[_0x1c410d('0x2a')](_0x1c410d('0xb2'),'i')['left_join'](_0x1c410d('0x85'),'c',_0x1c410d('0x1e'))[_0x1c410d('0x78')](_0x1c410d('0xc3'),'o',_0x1c410d('0xa4'))['left_join'](_0x1c410d('0x39'),'a',_0x1c410d('0x17'))[_0x1c410d('0x78')]('openchannel_messages','me','me.OpenchannelInteractionId\x20=\x20i.id')[_0x1c410d('0x78')](_0x1c410d('0xd0'),'it','it.OpenchannelInteractionId\x20=\x20i.id')['left_join'](_0x1c410d('0xc2'),'t','t.id\x20=\x20it.TagId'),_0x14f48e=squel['expr']();let _0x3acd29=[];const _0x32bf7d=squel[_0x1c410d('0xbf')]();let _0x380afd;if(_0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0xdf')]){_0x380afd=as[_0x1c410d('0x8c')](_0x5b3aa3['query'][_0x1c410d('0xdf')]);const _0x1503c8=_0x380afd[_0x1c410d('0xcb')];for(let _0x5259e1=0x0;_0x5259e1<_0x380afd[_0x1c410d('0x9a')][_0x1c410d('0x9c')];_0x5259e1++){const _0x216573=_0x380afd[_0x1c410d('0x9a')][_0x5259e1],_0xc1c8e5='i';let _0x4fcbc2,_0x9717d7=_['find'](_0x1e455e,[_0x1c410d('0x20'),_0x216573['field']]);if(!_0x9717d7)switch(_0x216573[_0x1c410d('0x51')]){case _0x1c410d('0x24'):_0x216573[_0x1c410d('0xbd')]==0x1?_0x3d66c0[_0x1c410d('0x13')]('`'+_0x216573['field']+_0x1c410d('0x62')):_0x3d66c0[_0x1c410d('0x13')]('`'+_0x216573['field']+_0x1c410d('0x64'));break;case'Contact':if(_0x216573[_0x1c410d('0x6f')]===_0x1c410d('0x89')){if(_0x216573[_0x1c410d('0xbd')][_0x1c410d('0x8b')]('\x20')[_0x1c410d('0x9c')]>0x1)_0x14f48e[_0x1503c8](_0x1c410d('0xa9'),qs[_0x1c410d('0x61')](_0x216573[_0x1c410d('0xbd')]),null);else{const _0x551db8='%'+_0x216573[_0x1c410d('0xbd')]+'%';_0x14f48e[_0x1503c8](_0x1c410d('0x36'),_0x551db8,_0x551db8,_0x551db8);}}else _0x9717d7=_['find'](_0x1e455e,['name',_0x1c410d('0x1a')]),_0x216573[_0x1c410d('0x51')]=_0x1c410d('0x1a'),_0x4fcbc2=as[_0x1c410d('0x58')](_0xc1c8e5,_0x9717d7[_0x1c410d('0x0')],_0x216573),_0x14f48e[_0x1503c8](_0x4fcbc2['text'],_0x4fcbc2[_0x1c410d('0xbd')][_0x1c410d('0x42')],_0x4fcbc2['value'][_0x1c410d('0x43')]);break;case'Tag':{const _0x3b5bef=_0x216573['value'][_0x1c410d('0x8b')](',')['map'](function(_0x9bd800){return Number(_0x9bd800);});_0x3b5bef['forEach'](function(_0x2a0c43){const _0x370b3a=_0x1c410d;_0x32bf7d['or'](_0x370b3a('0x98'),'%,'+_0x2a0c43+',%');}),_0x3acd29=_[_0x1c410d('0x87')](_0x3acd29,_0x3b5bef);}break;case _0x1c410d('0x5d'):_0x216573[_0x1c410d('0x6f')]===_0x1c410d('0x89')?_0x14f48e[_0x1503c8](_0x1c410d('0x21'),'%'+_0x216573[_0x1c410d('0xbd')]+'%',null):(_0x9717d7=_[_0x1c410d('0xa')](_0x1e455e,[_0x1c410d('0x20'),_0x1c410d('0x95')]),_0x216573[_0x1c410d('0x51')]=_0x1c410d('0x95'),_0x4fcbc2=as[_0x1c410d('0x58')](_0xc1c8e5,_0x9717d7[_0x1c410d('0x0')],_0x216573),_0x14f48e[_0x1503c8](_0x4fcbc2['text'],_0x4fcbc2[_0x1c410d('0xbd')][_0x1c410d('0x42')],_0x4fcbc2[_0x1c410d('0xbd')][_0x1c410d('0x43')]));break;case _0x1c410d('0x8a'):_0x4fcbc2=as['buildExpression']('me',null,_0x216573),_0x14f48e[_0x1503c8](_0x4fcbc2['text'],_0x4fcbc2[_0x1c410d('0xbd')]['start'],_0x4fcbc2[_0x1c410d('0xbd')][_0x1c410d('0x43')]);break;}else _0x4fcbc2=as[_0x1c410d('0x58')](_0xc1c8e5,_0x9717d7['type'],_0x216573),_0x14f48e[_0x1503c8](_0x4fcbc2['text'],_0x4fcbc2[_0x1c410d('0xbd')][_0x1c410d('0x42')],_0x4fcbc2[_0x1c410d('0xbd')][_0x1c410d('0x43')]);}}else{const _0x57b345=_(_0x5b3aa3[_0x1c410d('0xa1')])[_0x1c410d('0x72')]()[_0x1c410d('0xb')](function(_0x58c2c9){const _0x11fa91=_0x1c410d;return _['some'](_0x1e455e,[_0x11fa91('0x20'),_0x58c2c9])?_0x58c2c9:undefined;})[_0x1c410d('0x55')]()['value']();!_[_0x1c410d('0xce')](_0x57b345)&&_0x57b345[_0x1c410d('0xd2')](function(_0x345c94){const _0x1f75fc=_0x1c410d;if(_0x345c94===_0x1f75fc('0x73'))_0x3d66c0['where'](_0x1f75fc('0x96'),[]['concat'](_0x5b3aa3[_0x1f75fc('0xa1')][_0x345c94]));else{if(_0x345c94===_0x1f75fc('0x79')){const _0x2ee890=JSON['parse'](_0x5b3aa3[_0x1f75fc('0xa1')][_0x345c94])[_0x1f75fc('0xd5')],_0x8f5f5b=JSON[_0x1f75fc('0x5b')](_0x5b3aa3[_0x1f75fc('0xa1')][_0x345c94])[_0x1f75fc('0x28')];_0x3d66c0[_0x1f75fc('0x70')](_0x1f75fc('0x33'),_0x2ee890,_0x8f5f5b);}else _0x5b3aa3[_0x1f75fc('0xa1')][_0x345c94]==='null'?_0x3d66c0[_0x1f75fc('0x70')]('i.'+_0x345c94+_0x1f75fc('0x46')):_0x3d66c0[_0x1f75fc('0x70')]('i.'+_0x345c94+_0x1f75fc('0xc6'),_0x5b3aa3['query'][_0x345c94]);}});_0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0x31')]&&(_0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0x31')]==0x1?_0x3d66c0[_0x1c410d('0x13')](_0x1c410d('0xe')):_0x3d66c0[_0x1c410d('0x13')](_0x1c410d('0xe1')));_0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0x37')]&&(_0x3acd29=_[_0x1c410d('0x4f')](_0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0x37')])?_0x5b3aa3[_0x1c410d('0xa1')]['tag']:new Array(_0x5b3aa3[_0x1c410d('0xa1')][_0x1c410d('0x37')]),_0x3acd29[_0x1c410d('0xd2')](function(_0x55b5b5){const _0x3e96f7=_0x1c410d;_0x32bf7d['or'](_0x3e96f7('0x98'),'%,'+_0x55b5b5+',%');}));if(_0x5b3aa3['query']['filter']){const _0x588ed4=_0x5b3aa3['query']['filter'][_0x1c410d('0xb0')]('\x5c','\x5c\x5c')[_0x1c410d('0xb0')]('\x27\x27',_0x1c410d('0x3c'));qs[_0x1c410d('0x7a')](_0x588ed4)?_0x14f48e['or'](_0x1c410d('0xda'),_0x588ed4+'%'):_0x14f48e['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs[_0x1c410d('0x61')](_0x588ed4))['or'](_0x1c410d('0x7c'),_0x588ed4+'%')['or'](_0x1c410d('0xe0'),_0x588ed4+'%');}}_0x3d66c0[_0x1c410d('0x70')](_0x14f48e),_0x3d66c0[_0x1c410d('0xf')](_0x1c410d('0x47'));let _0xbfa487={'type':db[_0x1c410d('0x3e')][_0x1c410d('0x19')]['SELECT'],'raw':!![]};const _0x33b701=_0x3d66c0['clone']();_0x33b701[_0x1c410d('0x51')](_0x1c410d('0x47')),_0x33b701[_0x1c410d('0x51')](_0x1c410d('0xac'),_0x1c410d('0x24')),_0x2cf319[_0x1c410d('0x4c')]&&_0x2cf319[_0x1c410d('0x4c')][_0x1c410d('0xd2')](function(_0x3310c7){const _0x5a476b=_0x1c410d;_0x3d66c0[_0x5a476b('0x4c')]('i.'+_0x3310c7[0x0],_0x3310c7[0x1]===_0x5a476b('0xc0')?![]:!![]);}),!_[_0x1c410d('0xce')](_0x3acd29)&&(_0x3d66c0[_0x1c410d('0x13')](_0x32bf7d),_0x33b701[_0x1c410d('0x70')](_0x1c410d('0xca'),_0x3acd29)),Promise[_0x1c410d('0x81')]()[_0x1c410d('0x16')](function(){const _0xbf10e6=_0x1c410d;if(!_0x380afd){if(_0x5b3aa3[_0xbf10e6('0xa1')]['OpenchannelAccountId']||_0x5b3aa3[_0xbf10e6('0xa1')]['journey'])return;_0x33b701[_0xbf10e6('0x70')](_0xbf10e6('0x1d')),_0x3d66c0[_0xbf10e6('0x70')](_0xbf10e6('0x1d'));return;}return _0x5b3aa3[_0xbf10e6('0xaa')][_0xbf10e6('0x2c')]({'attributes':['id'],'raw':!![]})['then'](function(_0x2dd412){const _0x497415=_0xbf10e6;_[_0x497415('0xce')](_0x2dd412)?(_0x33b701[_0x497415('0x70')](_0x497415('0x90')),_0x3d66c0[_0x497415('0x70')](_0x497415('0x90'))):(_0x33b701[_0x497415('0x70')](_0x497415('0x96'),_[_0x497415('0xb')](_0x2dd412,'id')),_0x3d66c0[_0x497415('0x70')]('i.OpenchannelAccountId\x20IN\x20?',_[_0x497415('0xb')](_0x2dd412,'id')));});})[_0x1c410d('0x16')](function(){const _0x368911=_0x1c410d;db[_0x368911('0x74')][_0x368911('0xa1')](_0x33b701['toString'](),_0xbfa487)[_0x368911('0x16')](function(_0x491f71){const _0x6de89b=_0x368911;_0x194fe8[_0x6de89b('0x7')]=_0x491f71['length'];if(_0x194fe8[_0x6de89b('0x7')]===0x0)return[];return db[_0x6de89b('0x74')][_0x6de89b('0xa1')](_0x36d6a5[_0x6de89b('0x67')](),_0xbfa487)[_0x6de89b('0x16')](function(_0x85713d){const _0x7723c7=_0x6de89b;_0x44730f=_[_0x7723c7('0xab')](_0x85713d,'id'),_0xbfa487=_[_0x7723c7('0x71')](_0xbfa487,{'model':db[_0x7723c7('0xd3')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x5b3aa3[_0x7723c7('0xa1')][_0x7723c7('0x7e')]?_0x2cf319[_0x7723c7('0x8f')]['forEach'](function(_0x26ce75){const _0x29e5b3=_0x7723c7;_0x3d66c0[_0x29e5b3('0x51')]('i.'+_0x26ce75);}):(_0x3d66c0[_0x7723c7('0x51')](_0x7723c7('0xac'),_0x7723c7('0x24')),_0x3d66c0[_0x7723c7('0x51')](_0x7723c7('0xd8'),'Account.key'),_0x3d66c0[_0x7723c7('0x51')]('a.mandatoryDisposition',_0x7723c7('0x76')),_0x3d66c0['field'](_0x7723c7('0x66')),_0x3d66c0[_0x7723c7('0x51')]('c.firstName',_0x7723c7('0xdb')),_0x3d66c0[_0x7723c7('0x51')](_0x7723c7('0x5a'),_0x7723c7('0xb8')),_0x3d66c0[_0x7723c7('0x51')]('c.email','Contact.email'),_0x3d66c0[_0x7723c7('0x51')](_0x7723c7('0xc9'),_0x7723c7('0x92')),_0x3d66c0[_0x7723c7('0x51')]('c.mobile',_0x7723c7('0x5f')),_0x3d66c0[_0x7723c7('0x51')](_0x7723c7('0x69'),_0x7723c7('0x9')),_0x3d66c0['field'](_0x7723c7('0x26'),_0x7723c7('0x97')),_0x3d66c0[_0x7723c7('0x51')](_0x7723c7('0x2e'),_0x7723c7('0x2')),_0x3d66c0[_0x7723c7('0x51')](_0x7723c7('0x60'),_0x7723c7('0x11')));if(_0x2cf319['limit'])_0x3d66c0[_0x7723c7('0xd9')](_0x2cf319['limit']);if(_0x2cf319[_0x7723c7('0x75')])_0x3d66c0[_0x7723c7('0x75')](_0x2cf319[_0x7723c7('0x75')]);return db[_0x7723c7('0x74')][_0x7723c7('0xa1')](_0x3d66c0[_0x7723c7('0x67')](),_0xbfa487);})[_0x6de89b('0x16')](function(_0x38a578){const _0xeee88c=_0x6de89b;return _0x21d8d5['where'](_0xeee88c('0x50'),_[_0xeee88c('0xb')](_0x38a578,'id')),db[_0xeee88c('0x74')][_0xeee88c('0xa1')](_0x21d8d5[_0xeee88c('0x67')](),_0xbfa487)[_0xeee88c('0x16')](function(_0xfd0cf2){const _0x1ab0de=_0xeee88c,_0x4338ab=_[_0x1ab0de('0x22')](_0xfd0cf2,_0x1ab0de('0x49')),_0x585a87=[];return _0x38a578[_0x1ab0de('0xd2')](function(_0x18e3fd){const _0x5d4c37=_0x1ab0de;_0x585a87[_0x5d4c37('0x5')](updateOpenchannelInteraction(_0x18e3fd,_0x44730f,_0x4338ab));}),Promise['all'](_0x585a87);});});})[_0x368911('0x16')](function(_0x41a6f4){const _0x4ab1df=_0x368911;return _0x194fe8[_0x4ab1df('0x41')]=_0x41a6f4,_0x194fe8;})[_0x368911('0x16')](respondWithFilteredResult(_0x177fa1,_0x2cf319));})['catch'](handleError(_0x177fa1,null));},exports[_0x1e5b50('0x3b')]=function(_0x499642,_0x4315cb){const _0xbfd7b1=_0x1e5b50,_0xabcfe3={};_0x499642[_0xbfd7b1('0xa1')][_0xbfd7b1('0x0')]&&_0x499642[_0xbfd7b1('0xa1')]['type']===_0xbfd7b1('0x2a')?_0xabcfe3['from']=_0x499642['params']['id']:_0xabcfe3['id']=_0x499642[_0xbfd7b1('0xb3')]['id'];let _0x560854={'raw':![],'where':_0xabcfe3};const _0x52c71c={};return _0x52c71c[_0xbfd7b1('0xa7')]=_[_0xbfd7b1('0x72')](db[_0xbfd7b1('0xd3')][_0xbfd7b1('0x52')]),_0x52c71c[_0xbfd7b1('0xa1')]=_['keys'](_0x499642['query']),_0x52c71c[_0xbfd7b1('0x4a')]=_['intersection'](_0x52c71c[_0xbfd7b1('0xa7')],_0x52c71c[_0xbfd7b1('0xa1')]),_0x560854[_0xbfd7b1('0x8f')]=_['intersection'](_0x52c71c[_0xbfd7b1('0xa7')],qs[_0xbfd7b1('0x7e')](_0x499642[_0xbfd7b1('0xa1')]['fields'])),_0x560854[_0xbfd7b1('0x8f')]=_0x560854[_0xbfd7b1('0x8f')]['length']?_0x560854[_0xbfd7b1('0x8f')]:_0x52c71c[_0xbfd7b1('0xa7')],_0x499642[_0xbfd7b1('0xa1')][_0xbfd7b1('0xbc')]&&(_0x560854['include']=[{'all':!![]}]),_0x560854=_[_0xbfd7b1('0x71')]({},_0x560854,_0x499642[_0xbfd7b1('0xbe')]),db[_0xbfd7b1('0xd3')][_0xbfd7b1('0xb9')](_0x560854)[_0xbfd7b1('0x16')](handleEntityNotFound(_0x4315cb,null))[_0xbfd7b1('0x16')](respondWithResult(_0x4315cb,null))[_0xbfd7b1('0x80')](handleError(_0x4315cb,null));},exports[_0x1e5b50('0x2b')]=function(_0x771ed8,_0x36369e){const _0x3b187c=_0x1e5b50;return db[_0x3b187c('0xd3')]['create'](_0x771ed8['body'],{})['then'](respondWithResult(_0x36369e,0xc9))['catch'](handleError(_0x36369e,null));},exports[_0x1e5b50('0xc4')]=function(_0x28d4b2,_0x10e81e){const _0x54ad00=_0x1e5b50;return _0x28d4b2[_0x54ad00('0x8a')]['id']&&delete _0x28d4b2[_0x54ad00('0x8a')]['id'],db[_0x54ad00('0xd3')][_0x54ad00('0xb9')]({'where':{'id':_0x28d4b2[_0x54ad00('0xb3')]['id']}})[_0x54ad00('0x16')](handleEntityNotFound(_0x10e81e,null))[_0x54ad00('0x16')](saveUpdates(_0x28d4b2[_0x54ad00('0x8a')],null))[_0x54ad00('0x16')](respondWithResult(_0x10e81e,null))[_0x54ad00('0x80')](handleError(_0x10e81e,null));},exports['destroy']=function(_0x632027,_0x5b4028){const _0x4f06c0=_0x1e5b50;return db[_0x4f06c0('0xd3')][_0x4f06c0('0xb9')]({'where':{'id':_0x632027[_0x4f06c0('0xb3')]['id']}})['then'](handleEntityNotFound(_0x5b4028,null))[_0x4f06c0('0x16')](removeEntity(_0x5b4028,null))[_0x4f06c0('0x80')](handleError(_0x5b4028,null));},exports[_0x1e5b50('0x6a')]=function(_0x50006b,_0x49f93d){const _0x260280=_0x1e5b50;return db[_0x260280('0xd3')][_0x260280('0x6a')]()['then'](respondWithResult(_0x49f93d,null))[_0x260280('0x80')](handleError(_0x49f93d,null));},exports[_0x1e5b50('0xc8')]=function(_0x5d20f9,_0x10a18a){const _0x27096c=_0x1e5b50;return db[_0x27096c('0x3f')][_0x27096c('0xb9')]({'where':{'id':_0x5d20f9['params']['id']}})[_0x27096c('0x16')](function(_0x1c25c6){const _0x1c9b68=_0x27096c;if(_0x1c25c6)return _0x1c25c6['addMessage'](_0x5d20f9[_0x1c9b68('0x8a')]['ids'],{'through':_['omit'](_0x5d20f9['body'],['ids','id'])});})[_0x27096c('0x16')](respondWithResult(_0x10a18a,null))[_0x27096c('0x80')](handleError(_0x10a18a,null));},exports[_0x1e5b50('0xa2')]=function(_0x8c6d97,_0xc4d5c3){const _0x274753=_0x1e5b50;let _0x51495a={'raw':![],'where':{}};const _0x2005d9={},_0x3f8497={'count':0x0,'rows':[]};return db[_0x274753('0xd3')]['findOne']({'where':{'id':_0x8c6d97['params']['id']}})[_0x274753('0x16')](handleEntityNotFound(_0xc4d5c3,null))[_0x274753('0x16')](function(_0x47a372){const _0x408ff5=_0x274753;if(_0x47a372){_0x2005d9[_0x408ff5('0xa7')]=_[_0x408ff5('0x72')](db[_0x408ff5('0x3f')]['rawAttributes']),_0x2005d9[_0x408ff5('0xa1')]=_[_0x408ff5('0x72')](_0x8c6d97['query']),_0x2005d9[_0x408ff5('0x4a')]=_[_0x408ff5('0x63')](_0x2005d9['model'],_0x2005d9['query']),_0x51495a[_0x408ff5('0x8f')]=_[_0x408ff5('0x63')](_0x2005d9['model'],qs['fields'](_0x8c6d97['query'][_0x408ff5('0x7e')])),_0x51495a[_0x408ff5('0x8f')]=_0x51495a[_0x408ff5('0x8f')][_0x408ff5('0x9c')]?_0x51495a[_0x408ff5('0x8f')]:_0x2005d9[_0x408ff5('0xa7')];typeof _0x8c6d97['query'][_0x408ff5('0x86')]===_0x408ff5('0x91')&&(_0x51495a[_0x408ff5('0xd9')]=qs[_0x408ff5('0xd9')](_0x8c6d97[_0x408ff5('0xa1')][_0x408ff5('0xd9')]),_0x51495a[_0x408ff5('0x75')]=qs[_0x408ff5('0x75')](_0x8c6d97[_0x408ff5('0xa1')]['offset']));_0x51495a[_0x408ff5('0x4c')]=qs[_0x408ff5('0x48')](_0x8c6d97[_0x408ff5('0xa1')][_0x408ff5('0x48')]),_0x51495a[_0x408ff5('0x70')]=qs[_0x408ff5('0x4a')](_['pick'](_0x8c6d97[_0x408ff5('0xa1')],_0x2005d9[_0x408ff5('0x4a')])),_0x51495a['where']['OpenchannelInteractionId']=_0x47a372['id'];_0x8c6d97[_0x408ff5('0xa1')][_0x408ff5('0x65')]&&(_0x51495a[_0x408ff5('0x70')]=_[_0x408ff5('0x71')](_0x51495a[_0x408ff5('0x70')],{[Op['or']]:_[_0x408ff5('0xb')](_0x51495a[_0x408ff5('0x8f')],function(_0xf27a10){const _0xa4a54f=_0x408ff5,_0x549a80={};return _0x549a80[_0xf27a10]={[Op['like']]:'%'+_0x8c6d97[_0xa4a54f('0xa1')]['filter']+'%'},_0x549a80;})}));if(_0x8c6d97[_0x408ff5('0xa1')][_0x408ff5('0xd5')]){const _0x539f57=_0x8c6d97['query'][_0x408ff5('0xd5')][_0x408ff5('0x8b')](','),_0x5225c6={};_0x5225c6[_0x539f57[0x0]]={[Op[_0x408ff5('0x8e')]]:moment(_0x539f57[0x1])[_0x408ff5('0x84')](_0x408ff5('0x56'))},_0x51495a[_0x408ff5('0x70')]=_[_0x408ff5('0x71')](_0x51495a[_0x408ff5('0x70')],_0x5225c6);}return _0x51495a=_['merge']({},_0x51495a,_0x8c6d97['options']),db[_0x408ff5('0x3f')]['count']({'where':_0x51495a[_0x408ff5('0x70')]})[_0x408ff5('0x16')](function(_0x52498a){const _0x3fd9cb=_0x408ff5;return _0x3f8497[_0x3fd9cb('0x7')]=_0x52498a,_0x8c6d97[_0x3fd9cb('0xa1')][_0x3fd9cb('0xbc')]&&(_0x51495a['include']=[{'all':!![]}]),db['OpenchannelMessage'][_0x3fd9cb('0x40')](_0x51495a);})[_0x408ff5('0x16')](function(_0x3d6a30){const _0x45250f=_0x408ff5;return _0x3f8497[_0x45250f('0x41')]=_0x3d6a30,_0x3f8497;});}})[_0x274753('0x16')](respondWithFilteredResult(_0xc4d5c3,_0x51495a))[_0x274753('0x80')](handleError(_0xc4d5c3,null));},exports[_0x1e5b50('0x7b')]=function(_0x13249e,_0x4642f4){const _0x4a79e2=_0x1e5b50;return db[_0x4a79e2('0xd3')][_0x4a79e2('0xb9')]({'where':{'id':_0x13249e[_0x4a79e2('0xb3')]['id']}})[_0x4a79e2('0x16')](function(_0x4b7af4){const _0x176c99=_0x4a79e2;if(_0x4b7af4)return _0x4b7af4[_0x176c99('0x54')](_0x13249e[_0x176c99('0x8a')][_0x176c99('0x9d')],{'through':_[_0x176c99('0xb5')](_0x13249e[_0x176c99('0x8a')],[_0x176c99('0x9d'),'id'])})[_0x176c99('0x16')](function(){const _0x702961=_0x176c99;return db[_0x702961('0xae')][_0x702961('0x40')]({'attributes':['id','name',_0x702961('0xbb')],'where':{'id':_0x13249e[_0x702961('0x8a')]['ids']}});})['then'](function(_0x370f3b){const _0x15991f=_0x176c99;return socket[_0x15991f('0x8d')]('openchannelInteractionTags:save',{'id':Number(_0x13249e[_0x15991f('0xb3')]['id']),'tags':_0x370f3b||[]}),{'id':Number(_0x13249e[_0x15991f('0xb3')]['id']),'tags':_0x370f3b||[]};});})[_0x4a79e2('0x16')](respondWithResult(_0x4642f4,null))[_0x4a79e2('0x80')](handleError(_0x4642f4,null));},exports[_0x1e5b50('0x2d')]=function(_0x43f895,_0x1efec9){const _0x456c35=_0x1e5b50;return db[_0x456c35('0xd3')][_0x456c35('0xb9')]({'where':{'id':_0x43f895[_0x456c35('0xb3')]['id']}})['then'](handleEntityNotFound(_0x1efec9,null))[_0x456c35('0x16')](function(_0x4ed25f){const _0x57fff7=_0x456c35;if(_0x4ed25f)return _0x4ed25f[_0x57fff7('0x2d')](_0x43f895[_0x57fff7('0xa1')][_0x57fff7('0x9d')]);})[_0x456c35('0x16')](respondWithStatusCode(_0x1efec9,null))[_0x456c35('0x80')](handleError(_0x1efec9,null));},exports[_0x1e5b50('0x3d')]=function(_0x2dfec7,_0x456ca7){const _0x356437=_0x1e5b50,_0x908c95=moment()[_0x356437('0x27')]()[_0x356437('0x67')](),_0x3be32c=path['join'](config[_0x356437('0x7f')],'files',_0x356437('0x45')),_0x1bd1e2=path['join'](config[_0x356437('0x7f')],_0x356437('0xd6'),_0x356437('0x7d'),_0x356437('0x4b')),_0xea1506=path[_0x356437('0x1b')](_0x3be32c,_0x908c95),_0x1cf09d=util[_0x356437('0x84')](_0x356437('0x8'),_0x2dfec7[_0x356437('0xb3')]['id'],_0x908c95),_0x197448=path[_0x356437('0x1b')](_0x3be32c,_0x1cf09d),_0x355869=[];_0x355869[_0x356437('0x5')]({'model':db[_0x356437('0x5d')],'as':_0x356437('0x5d'),'attributes':['id',_0x356437('0x9b')],'raw':!![]}),_0x355869[_0x356437('0x5')]({'model':db[_0x356437('0x23')],'as':_0x356437('0x38'),'attributes':['id','firstName','lastName'],'raw':!![]});_0x2dfec7[_0x356437('0xa1')][_0x356437('0x4b')]&&_0x355869[_0x356437('0x5')]({'model':db['Attachment'],'as':_0x356437('0x6e'),'raw':!![]});const _0x17f000=[{'model':db['OpenchannelMessage'],'as':_0x356437('0xc5'),'attributes':['id','body',_0x356437('0x79'),_0x356437('0x94'),_0x356437('0x6b'),'read'],'include':_0x355869}];return _0x17f000[_0x356437('0x5')]({'model':db[_0x356437('0xd7')],'as':_0x356437('0xb1'),'attributes':['id',_0x356437('0x20')]}),_0x17f000['push']({'model':db[_0x356437('0x5d')],'as':_0x356437('0xb4'),'attributes':['id',_0x356437('0x9b')]}),db[_0x356437('0xd3')][_0x356437('0xb9')]({'where':{'id':_0x2dfec7[_0x356437('0xb3')]['id']},'include':_0x17f000})[_0x356437('0x16')](handleEntityNotFound(_0x456ca7,null))['then'](function(_0x1e03a7){const _0x35a53e=_0x356437;if(_0x1e03a7){const _0x15b552=_0x1e03a7[_0x35a53e('0x14')]({'plain':!![]});fs[_0x35a53e('0xcc')](_0xea1506);const _0x2608c6={'format':'A4','border':_0x35a53e('0xad'),'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':_0x35a53e('0xa6'),'contents':{'default':util['format'](_0x35a53e('0x68'),util[_0x35a53e('0x84')](_0x35a53e('0xc7'),'Openchannel',_0x15b552['id']),moment()[_0x35a53e('0x84')](_0x35a53e('0x82'))[_0x35a53e('0x67')]())}}},_0x3d9d3a={'channel':_0x35a53e('0xa0'),'account':_0x15b552[_0x35a53e('0xb1')]['name'],'agent':_0x15b552[_0x35a53e('0xb4')]?_0x15b552[_0x35a53e('0xb4')][_0x35a53e('0x9b')]:'N.A.','createdAt':moment(_0x15b552[_0x35a53e('0x79')])[_0x35a53e('0x84')](_0x35a53e('0x56'))[_0x35a53e('0x67')](),'closedAt':_0x15b552[_0x35a53e('0x34')]?moment(_0x15b552[_0x35a53e('0x15')])[_0x35a53e('0x84')](_0x35a53e('0x56'))[_0x35a53e('0x67')]():'','disposition':_0x15b552[_0x35a53e('0xcf')],'visibility':_0x15b552[_0x35a53e('0xba')]?_0x35a53e('0xe2'):_0x35a53e('0x1'),'messages':_(_0x15b552['Messages'])['filter']({'secret':![]})[_0x35a53e('0xb')](function(_0x160ef0){const _0x304b2e=_0x35a53e;if(_0x160ef0[_0x304b2e('0x6e')]){const _0x2f1d6f=path['join'](_0x1bd1e2,_0x160ef0[_0x304b2e('0x6e')][_0x304b2e('0x12')]);fs[_0x304b2e('0x88')](_0x2f1d6f)&&fs[_0x304b2e('0x35')](_0x2f1d6f)[_0x304b2e('0xde')](fs[_0x304b2e('0xdd')](path[_0x304b2e('0x1b')](_0xea1506,_0x160ef0[_0x304b2e('0x6e')][_0x304b2e('0x12')])));}return{'date':moment(_0x160ef0['createdAt'])[_0x304b2e('0x84')](_0x304b2e('0x56'))[_0x304b2e('0x67')](),'sender':_0x160ef0[_0x304b2e('0x94')]==='out'?_0x160ef0[_0x304b2e('0x5d')]?_0x160ef0[_0x304b2e('0x5d')][_0x304b2e('0x9b')]:_0x304b2e('0x3a'):_0x160ef0[_0x304b2e('0x38')][_0x304b2e('0x9f')]+(_0x160ef0['Contact']['lastName']?'\x20'+_0x160ef0[_0x304b2e('0x38')][_0x304b2e('0x4')]:''),'body':_0x160ef0[_0x304b2e('0x6e')]?_0x160ef0[_0x304b2e('0x6e')][_0x304b2e('0x12')]:_0x160ef0[_0x304b2e('0x8a')],'direction':_0x160ef0['direction']===_0x304b2e('0x9e')?'A':'C','secret':_0x160ef0[_0x304b2e('0x6b')],'read':_0x160ef0[_0x304b2e('0x31')],'attachment':_0x160ef0[_0x304b2e('0x6e')]};})[_0x35a53e('0xbd')]()};return ejs['renderFile'](path[_0x35a53e('0x1b')](config[_0x35a53e('0x7f')],_0x35a53e('0xd6'),'views',_0x35a53e('0x25')),{'interaction':_0x3d9d3a})[_0x35a53e('0x16')](function(_0x446cf6){return new Promise(function(_0x5d308c,_0xb90c55){const _0x2dd227=a480_0x16a4;pdf['create'](_0x446cf6,_0x2608c6)[_0x2dd227('0xa5')](path['join'](_0xea1506,_0x2dd227('0x6d')+_0x15b552['id']+'-'+_0x908c95+_0x2dd227('0xa8')),function(_0x5baebb,_0x2f1b55){if(_0x5baebb)return _0xb90c55(_0x5baebb);_0x5d308c(_0x2f1b55);});});})['then'](function(){const _0x575691=_0x35a53e;return new Promise(function(_0x462fdd,_0x12ad07){zipdir(_0xea1506,{'saveTo':_0x197448},function(_0x383a60,_0x31a8de){if(_0x383a60)return _0x12ad07(_0x383a60);return _0x462fdd(_0x31a8de);});})[_0x575691('0x16')](function(){return new Promise(function(_0x4ea09e,_0x371c5f){rimraf(_0xea1506,function(_0x2d7b52){if(_0x2d7b52)_0x371c5f(_0x2d7b52);return _0x4ea09e();});});})['then'](function(){const _0x218484=_0x575691;return _0x456ca7[_0x218484('0x3d')](_0x197448,_0x1cf09d,function(_0x32382b){const _0x5a926c=_0x218484;_0x32382b?console[_0x5a926c('0x2f')](_0x5a926c('0xb6'),_0x32382b):fs['unlinkSync'](_0x197448);});});});}else return _0x456ca7[_0x35a53e('0x5c')](0xc8);})[_0x356437('0x80')](handleError(_0x456ca7,null));}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.events.js b/server/api/openchannelInteraction/openchannelInteraction.events.js index d30d2c5..606cfdb 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.events.js +++ b/server/api/openchannelInteraction/openchannelInteraction.events.js @@ -1 +1 @@ -const a481_0x1590=['emit','length','catch','Users','setMaxListeners','setDataValue','../../mysqldb','undefined','OpenchannelInteraction','map','OpenchannelMessage','save','then','findAll','exports','addHook','remove','update'];(function(_0x2a1fe6,_0x15908a){const _0x3f59fa=function(_0x2ae700){while(--_0x2ae700){_0x2a1fe6['push'](_0x2a1fe6['shift']());}};_0x3f59fa(++_0x15908a);}(a481_0x1590,0x91));const a481_0x3f59=function(_0x2a1fe6,_0x15908a){_0x2a1fe6=_0x2a1fe6-0x0;let _0x3f59fa=a481_0x1590[_0x2a1fe6];return _0x3f59fa;};const _0x65ca74=a481_0x3f59;'use strict';const EventEmitter=require('events'),OpenchannelInteraction=require(_0x65ca74('0x5'))['db'][_0x65ca74('0x7')],OpenchannelMessage=require(_0x65ca74('0x5'))['db'][_0x65ca74('0x9')],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[_0x65ca74('0x3')](0x0);const events={'afterCreate':_0x65ca74('0xa'),'afterUpdate':_0x65ca74('0x10'),'afterDestroy':_0x65ca74('0xf')};function emitEvent(_0x2ae700){return function(_0x2a3eb9){const _0x508c26=a481_0x3f59;_0x2a3eb9['getUsers']({'attributes':['id'],'raw':!![]})[_0x508c26('0xb')](function(_0x5d9f38){const _0x3ffcc5=_0x508c26;return _0x2a3eb9['setDataValue'](_0x3ffcc5('0x2'),_0x5d9f38[_0x3ffcc5('0x8')](function(_0x12303d){return{'id':_0x12303d['id']};})),OpenchannelMessage[_0x3ffcc5('0xc')]({'where':{'OpenchannelInteractionId':_0x2a3eb9['id'],'direction':'in','read':![]},'raw':!![]});})['then'](function(_0x2b4dd1){const _0x56c104=_0x508c26;_0x2a3eb9[_0x56c104('0x4')]('unreadMessages',_0x2b4dd1[_0x56c104('0x0')]),OpenchannelInteractionEvents[_0x56c104('0x11')](_0x2ae700+':'+_0x2a3eb9['id'],_0x2a3eb9),OpenchannelInteractionEvents[_0x56c104('0x11')](_0x2ae700,_0x2a3eb9);})[_0x508c26('0x1')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x65ca74('0x6')){const event=events[e];OpenchannelInteraction[_0x65ca74('0xe')](e,emitEvent(event));}}module[_0x65ca74('0xd')]=OpenchannelInteractionEvents; \ No newline at end of file +const a481_0x10a4=['addHook','setMaxListeners','events','save','../../mysqldb','undefined','OpenchannelMessage','unreadMessages','catch','Users','map','setDataValue','update','getUsers','remove','emit','then','findAll','exports'];(function(_0x3d5ae1,_0x10a4a5){const _0x3cfb6b=function(_0x572926){while(--_0x572926){_0x3d5ae1['push'](_0x3d5ae1['shift']());}};_0x3cfb6b(++_0x10a4a5);}(a481_0x10a4,0x1ab));const a481_0x3cfb=function(_0x3d5ae1,_0x10a4a5){_0x3d5ae1=_0x3d5ae1-0x0;let _0x3cfb6b=a481_0x10a4[_0x3d5ae1];return _0x3cfb6b;};const _0x26c6fb=a481_0x3cfb;'use strict';const EventEmitter=require(_0x26c6fb('0xc')),OpenchannelInteraction=require(_0x26c6fb('0xe'))['db']['OpenchannelInteraction'],OpenchannelMessage=require(_0x26c6fb('0xe'))['db'][_0x26c6fb('0x10')],OpenchannelInteractionEvents=new EventEmitter();OpenchannelInteractionEvents[_0x26c6fb('0xb')](0x0);const events={'afterCreate':_0x26c6fb('0xd'),'afterUpdate':_0x26c6fb('0x3'),'afterDestroy':_0x26c6fb('0x5')};function emitEvent(_0x572926){return function(_0x2d6319){const _0x2accab=a481_0x3cfb;_0x2d6319[_0x2accab('0x4')]({'attributes':['id'],'raw':!![]})[_0x2accab('0x7')](function(_0x2d048f){const _0x11fd97=_0x2accab;return _0x2d6319['setDataValue'](_0x11fd97('0x0'),_0x2d048f[_0x11fd97('0x1')](function(_0x44f591){return{'id':_0x44f591['id']};})),OpenchannelMessage[_0x11fd97('0x8')]({'where':{'OpenchannelInteractionId':_0x2d6319['id'],'direction':'in','read':![]},'raw':!![]});})[_0x2accab('0x7')](function(_0x1a1ed5){const _0x3764ef=_0x2accab;_0x2d6319[_0x3764ef('0x2')](_0x3764ef('0x11'),_0x1a1ed5['length']),OpenchannelInteractionEvents[_0x3764ef('0x6')](_0x572926+':'+_0x2d6319['id'],_0x2d6319),OpenchannelInteractionEvents['emit'](_0x572926,_0x2d6319);})[_0x2accab('0x12')](()=>{});};}for(const e in events){if(typeof events[e]!==_0x26c6fb('0xf')){const event=events[e];OpenchannelInteraction[_0x26c6fb('0xa')](e,emitEvent(event));}}module[_0x26c6fb('0x9')]=OpenchannelInteractionEvents; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.model.js b/server/api/openchannelInteraction/openchannelInteraction.model.js index 94e6232..f95a841 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.model.js +++ b/server/api/openchannelInteraction/openchannelInteraction.model.js @@ -1 +1 @@ -const a482_0x45a9=['format','exports','closed','define','./openchannelInteraction.attributes','openchannel_interactions','closedAt','OpenchannelInteraction'];(function(_0x5c8d57,_0x45a970){const _0x4e98fd=function(_0x26f131){while(--_0x26f131){_0x5c8d57['push'](_0x5c8d57['shift']());}};_0x4e98fd(++_0x45a970);}(a482_0x45a9,0x1b1));const a482_0x4e98=function(_0x5c8d57,_0x45a970){_0x5c8d57=_0x5c8d57-0x0;let _0x4e98fd=a482_0x45a9[_0x5c8d57];return _0x4e98fd;};const _0x7c813d=a482_0x4e98;'use strict';const moment=require('moment'),attributes=require(_0x7c813d('0x3'));module[_0x7c813d('0x0')]=function(_0x26f131){const _0x4cdce6=_0x7c813d,_0x2c9e6f=_0x26f131[_0x4cdce6('0x2')](_0x4cdce6('0x6'),attributes,{'tableName':_0x4cdce6('0x4'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x1bac9a){const _0x48de44=_0x4cdce6;_0x1bac9a['changed'](_0x48de44('0x1'))&&(_0x1bac9a[_0x48de44('0x5')]=moment()[_0x48de44('0x7')]('YYYY-MM-DD\x20HH:mm:ss'));}}});return _0x2c9e6f;}; \ No newline at end of file +const a482_0x4989=['define','closedAt','moment','YYYY-MM-DD\x20HH:mm:ss','exports','./openchannelInteraction.attributes','changed'];(function(_0x48b3fd,_0x49896e){const _0x25e5c4=function(_0x1ff7cb){while(--_0x1ff7cb){_0x48b3fd['push'](_0x48b3fd['shift']());}};_0x25e5c4(++_0x49896e);}(a482_0x4989,0x73));const a482_0x25e5=function(_0x48b3fd,_0x49896e){_0x48b3fd=_0x48b3fd-0x0;let _0x25e5c4=a482_0x4989[_0x48b3fd];return _0x25e5c4;};const _0x38e5a5=a482_0x25e5;'use strict';const moment=require(_0x38e5a5('0x6')),attributes=require(_0x38e5a5('0x2'));module[_0x38e5a5('0x1')]=function(_0x1ff7cb){const _0x5a2bca=_0x38e5a5,_0x16684f=_0x1ff7cb[_0x5a2bca('0x4')]('OpenchannelInteraction',attributes,{'tableName':'openchannel_interactions','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x21ec34){const _0x1c9eeb=_0x5a2bca;_0x21ec34[_0x1c9eeb('0x3')]('closed')&&(_0x21ec34[_0x1c9eeb('0x5')]=moment()['format'](_0x1c9eeb('0x0')));}}});return _0x16684f;}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.rpc.js b/server/api/openchannelInteraction/openchannelInteraction.rpc.js index 5a12c7b..4d26589 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.rpc.js +++ b/server/api/openchannelInteraction/openchannelInteraction.rpc.js @@ -1 +1 @@ -const a483_0x1a27=['omit','../../rediscache','error','message','lodash','catch','./openchannelInteraction.socket','register','body','UpdateOpenchannelInteraction','options','where','limit','update','info','OpenchannelInteraction','AddTagsToOpenchannelInteraction','ids','stringify','then','debug','AddTags','attributes','addTags'];(function(_0x5ad301,_0x1a27f1){const _0x5b36f5=function(_0x1ddb8a){while(--_0x1ddb8a){_0x5ad301['push'](_0x5ad301['shift']());}};_0x5b36f5(++_0x1a27f1);}(a483_0x1a27,0x1f2));const a483_0x5b36=function(_0x5ad301,_0x1a27f1){_0x5ad301=_0x5ad301-0x0;let _0x5b36f5=a483_0x1a27[_0x5ad301];return _0x5b36f5;};const _0x1519ba=a483_0x5b36;'use strict';const _=require(_0x1519ba('0xa')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(_0x1519ba('0x7')),socket=getSocket();require(_0x1519ba('0xc'))[_0x1519ba('0xd')](socket),exports['UpdateOpenchannelInteraction']=function(_0x1ddb8a){const _0xb0e4a8=this;return new Promise(function(_0x5b14bf,_0x1c37be){const _0x53a7df=a483_0x5b36;return db['OpenchannelInteraction'][_0x53a7df('0x13')](_0x1ddb8a[_0x53a7df('0xe')],{'raw':_0x1ddb8a[_0x53a7df('0x10')]?_0x1ddb8a[_0x53a7df('0x10')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1ddb8a[_0x53a7df('0x10')]?_0x1ddb8a['options'][_0x53a7df('0x11')]||null:null,'attributes':_0x1ddb8a['options']?_0x1ddb8a[_0x53a7df('0x10')][_0x53a7df('0x4')]||null:null,'limit':_0x1ddb8a[_0x53a7df('0x10')]?_0x1ddb8a['options'][_0x53a7df('0x12')]||null:null})[_0x53a7df('0x1')](function(_0x52caaa){const _0x1d4e7f=_0x53a7df;logger['info'](_0x1d4e7f('0xf'),_0x1ddb8a),logger[_0x1d4e7f('0x2')](_0x1d4e7f('0xf'),_0x1ddb8a,JSON['stringify'](_0x52caaa)),_0x5b14bf(_0x52caaa);})[_0x53a7df('0xb')](function(_0x1a1d00){const _0x3c1e5b=_0x53a7df;logger['error'](_0x3c1e5b('0xf'),_0x1a1d00[_0x3c1e5b('0x9')],_0x1ddb8a),_0x1c37be(_0xb0e4a8[_0x3c1e5b('0x8')](0x1f4,_0x1a1d00[_0x3c1e5b('0x9')]));});});},exports[_0x1519ba('0x16')]=function(_0x1ac402){const _0x524be9=this;return new Promise(function(_0x3d7573,_0x2537a9){const _0x31b143=a483_0x5b36;return db[_0x31b143('0x15')]['findOne']({'where':_0x1ac402[_0x31b143('0x10')]?_0x1ac402[_0x31b143('0x10')][_0x31b143('0x11')]||null:null})[_0x31b143('0x1')](function(_0x29eced){const _0xbd2e31=_0x31b143;if(_0x29eced)return _0x29eced[_0xbd2e31('0x5')](_0x1ac402[_0xbd2e31('0xe')][_0xbd2e31('0x17')],{'through':_[_0xbd2e31('0x6')](_0x1ac402[_0xbd2e31('0xe')],[_0xbd2e31('0x17'),'id'])});})['then'](function([_0x4f4ef3]){const _0x2def1f=_0x31b143;logger[_0x2def1f('0x14')](_0x2def1f('0x3'),_0x1ac402),logger[_0x2def1f('0x2')]('AddTags',_0x1ac402,JSON[_0x2def1f('0x0')](_0x4f4ef3)),_0x3d7573(_0x4f4ef3);})['catch'](function(_0x4a1adc){const _0x3e9029=_0x31b143;logger[_0x3e9029('0x8')]('AddTags',_0x4a1adc[_0x3e9029('0x9')],_0x1ac402),_0x2537a9(_0x524be9[_0x3e9029('0x8')](0x1f4,_0x4a1adc[_0x3e9029('0x9')]));});});}; \ No newline at end of file +const a483_0x5cae=['findOne','omit','error','debug','options','AddTagsToOpenchannelInteraction','update','catch','where','AddTags','rpc','info','message','then','limit','stringify','body','register','OpenchannelInteraction','attributes','UpdateOpenchannelInteraction','ids','addTags'];(function(_0x1fbd64,_0x5caec7){const _0x4b7cfd=function(_0x5ebc6f){while(--_0x5ebc6f){_0x1fbd64['push'](_0x1fbd64['shift']());}};_0x4b7cfd(++_0x5caec7);}(a483_0x5cae,0x8b));const a483_0x4b7c=function(_0x1fbd64,_0x5caec7){_0x1fbd64=_0x1fbd64-0x0;let _0x4b7cfd=a483_0x5cae[_0x1fbd64];return _0x4b7cfd;};const _0x368d42=a483_0x4b7c;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x368d42('0x9')),{getSocket}=require('../../rediscache'),socket=getSocket();require('./openchannelInteraction.socket')[_0x368d42('0x10')](socket),exports['UpdateOpenchannelInteraction']=function(_0x5ebc6f){const _0x42bbe6=this;return new Promise(function(_0x5cd590,_0x3ebedc){const _0x474b73=a483_0x4b7c;return db[_0x474b73('0x11')][_0x474b73('0x5')](_0x5ebc6f[_0x474b73('0xf')],{'raw':_0x5ebc6f['options']?_0x5ebc6f['options']['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x5ebc6f['options']?_0x5ebc6f[_0x474b73('0x3')][_0x474b73('0x7')]||null:null,'attributes':_0x5ebc6f['options']?_0x5ebc6f[_0x474b73('0x3')][_0x474b73('0x12')]||null:null,'limit':_0x5ebc6f['options']?_0x5ebc6f['options'][_0x474b73('0xd')]||null:null})[_0x474b73('0xc')](function(_0x3cd5ba){const _0x5a6511=_0x474b73;logger['info'](_0x5a6511('0x13'),_0x5ebc6f),logger[_0x5a6511('0x2')](_0x5a6511('0x13'),_0x5ebc6f,JSON[_0x5a6511('0xe')](_0x3cd5ba)),_0x5cd590(_0x3cd5ba);})['catch'](function(_0x4a6cdc){const _0x3a1f97=_0x474b73;logger['error'](_0x3a1f97('0x13'),_0x4a6cdc[_0x3a1f97('0xb')],_0x5ebc6f),_0x3ebedc(_0x42bbe6[_0x3a1f97('0x1')](0x1f4,_0x4a6cdc[_0x3a1f97('0xb')]));});});},exports[_0x368d42('0x4')]=function(_0x1d5b8e){const _0x251364=this;return new Promise(function(_0x10e945,_0x4a1ac7){const _0x4f44f6=a483_0x4b7c;return db[_0x4f44f6('0x11')][_0x4f44f6('0x16')]({'where':_0x1d5b8e[_0x4f44f6('0x3')]?_0x1d5b8e[_0x4f44f6('0x3')][_0x4f44f6('0x7')]||null:null})[_0x4f44f6('0xc')](function(_0x1ceb88){const _0x30337f=_0x4f44f6;if(_0x1ceb88)return _0x1ceb88[_0x30337f('0x15')](_0x1d5b8e[_0x30337f('0xf')][_0x30337f('0x14')],{'through':_[_0x30337f('0x0')](_0x1d5b8e[_0x30337f('0xf')],['ids','id'])});})['then'](function([_0x532409]){const _0x487eb5=_0x4f44f6;logger[_0x487eb5('0xa')]('AddTags',_0x1d5b8e),logger['debug'](_0x487eb5('0x8'),_0x1d5b8e,JSON[_0x487eb5('0xe')](_0x532409)),_0x10e945(_0x532409);})[_0x4f44f6('0x6')](function(_0x327378){const _0x1ab0a9=_0x4f44f6;logger[_0x1ab0a9('0x1')](_0x1ab0a9('0x8'),_0x327378[_0x1ab0a9('0xb')],_0x1d5b8e),_0x4a1ac7(_0x251364[_0x1ab0a9('0x1')](0x1f4,_0x327378['message']));});});}; \ No newline at end of file diff --git a/server/api/openchannelInteraction/openchannelInteraction.socket.js b/server/api/openchannelInteraction/openchannelInteraction.socket.js index af8c20b..13f42db 100644 --- a/server/api/openchannelInteraction/openchannelInteraction.socket.js +++ b/server/api/openchannelInteraction/openchannelInteraction.socket.js @@ -1 +1 @@ -const a484_0x46ed=['update','register','emit','openchannelInteraction:','length','remove'];(function(_0x1de283,_0x46ed73){const _0x463aa3=function(_0x105370){while(--_0x105370){_0x1de283['push'](_0x1de283['shift']());}};_0x463aa3(++_0x46ed73);}(a484_0x46ed,0x7b));const a484_0x463a=function(_0x1de283,_0x46ed73){_0x1de283=_0x1de283-0x0;let _0x463aa3=a484_0x46ed[_0x1de283];return _0x463aa3;};const _0x20ac8d=a484_0x463a;'use strict';const OpenchannelInteractionEvents=require('./openchannelInteraction.events'),events=['save',_0x20ac8d('0x2'),_0x20ac8d('0x3')];function createListener(_0x105370,_0x147335){return function(_0x233647){const _0x4ca8f9=a484_0x463a;_0x147335[_0x4ca8f9('0x5')](_0x105370,_0x233647);};}exports[_0x20ac8d('0x4')]=function(_0x4f436c){const _0x1e1b43=_0x20ac8d;for(let _0xbe2fc5=0x0,_0x5353b8=events[_0x1e1b43('0x1')];_0xbe2fc5<_0x5353b8;_0xbe2fc5++){const _0x59b674=events[_0xbe2fc5],_0x1ad7f1=createListener(_0x1e1b43('0x0')+_0x59b674,_0x4f436c);OpenchannelInteractionEvents['on'](_0x59b674,_0x1ad7f1);}}; \ No newline at end of file +const a484_0x5518=['length','save','remove','openchannelInteraction:','emit','update'];(function(_0x5f36fe,_0x551844){const _0x299881=function(_0x36fa05){while(--_0x36fa05){_0x5f36fe['push'](_0x5f36fe['shift']());}};_0x299881(++_0x551844);}(a484_0x5518,0xdd));const a484_0x2998=function(_0x5f36fe,_0x551844){_0x5f36fe=_0x5f36fe-0x0;let _0x299881=a484_0x5518[_0x5f36fe];return _0x299881;};const _0x1a6aac=a484_0x2998;'use strict';const OpenchannelInteractionEvents=require('./openchannelInteraction.events'),events=[_0x1a6aac('0x2'),_0x1a6aac('0x3'),_0x1a6aac('0x0')];function createListener(_0x36fa05,_0x5b8f97){return function(_0x1ab5fa){const _0x377873=a484_0x2998;_0x5b8f97[_0x377873('0x5')](_0x36fa05,_0x1ab5fa);};}exports['register']=function(_0x5ea54a){const _0x55026a=_0x1a6aac;for(let _0xb126c2=0x0,_0x57ec09=events[_0x55026a('0x1')];_0xb126c2<_0x57ec09;_0xb126c2++){const _0x4c57c5=events[_0xb126c2],_0x5dad6c=createListener(_0x55026a('0x4')+_0x4c57c5,_0x5ea54a);OpenchannelInteractionEvents['on'](_0x4c57c5,_0x5dad6c);}}; \ No newline at end of file diff --git a/server/api/openchannelMessage/index.js b/server/api/openchannelMessage/index.js index 341a65d..2cbacbc 100644 --- a/server/api/openchannelMessage/index.js +++ b/server/api/openchannelMessage/index.js @@ -1 +1 @@ -const a485_0x4744=['show','delete','express','destroy','/:id/accept','tracked','update','openchannelmessage:create','exports','Router','reject','../../components/auth/service','openchannel','/:id','describe','isAuthenticated','put','get','./openchannelMessage.controller','../../components/interaction/service','create'];(function(_0x5628be,_0x474472){const _0x2bbff1=function(_0x44aaf4){while(--_0x44aaf4){_0x5628be['push'](_0x5628be['shift']());}};_0x2bbff1(++_0x474472);}(a485_0x4744,0xa0));const a485_0x2bbf=function(_0x5628be,_0x474472){_0x5628be=_0x5628be-0x0;let _0x2bbff1=a485_0x4744[_0x5628be];return _0x2bbff1;};const _0x106ae0=a485_0x2bbf;'use strict';const express=require(_0x106ae0('0xa')),router=express[_0x106ae0('0x11')](),auth=require(_0x106ae0('0x13')),interaction=require(_0x106ae0('0x6')),controller=require(_0x106ae0('0x5'));router[_0x106ae0('0x4')]('/',auth[_0x106ae0('0x2')](),controller['index']),router['get']('/describe',auth[_0x106ae0('0x2')](),controller[_0x106ae0('0x1')]),router[_0x106ae0('0x4')](_0x106ae0('0x0'),auth[_0x106ae0('0x2')](),controller[_0x106ae0('0x8')]),router['post']('/',auth[_0x106ae0('0x2')](),interaction[_0x106ae0('0xd')](_0x106ae0('0x14'),_0x106ae0('0xf')),controller[_0x106ae0('0x7')]),router[_0x106ae0('0x3')](_0x106ae0('0x0'),auth['isAuthenticated'](),controller[_0x106ae0('0xe')]),router[_0x106ae0('0x3')](_0x106ae0('0xc'),auth['isAuthenticated'](),controller['accept']),router[_0x106ae0('0x3')]('/:id/reject',auth['isAuthenticated'](),controller[_0x106ae0('0x12')]),router[_0x106ae0('0x9')](_0x106ae0('0x0'),auth[_0x106ae0('0x2')](),controller[_0x106ae0('0xb')]),module[_0x106ae0('0x10')]=router; \ No newline at end of file +const a485_0x13ef=['index','express','openchannel','exports','destroy','/describe','/:id/accept','create','./openchannelMessage.controller','../../components/interaction/service','put','describe','reject','Router','openchannelmessage:create','isAuthenticated','update','get','/:id','/:id/reject','post','show','tracked'];(function(_0x1a49e9,_0x13ef1a){const _0x4b7b81=function(_0xd56eba){while(--_0xd56eba){_0x1a49e9['push'](_0x1a49e9['shift']());}};_0x4b7b81(++_0x13ef1a);}(a485_0x13ef,0xf1));const a485_0x4b7b=function(_0x1a49e9,_0x13ef1a){_0x1a49e9=_0x1a49e9-0x0;let _0x4b7b81=a485_0x13ef[_0x1a49e9];return _0x4b7b81;};const _0x22ae55=a485_0x4b7b;'use strict';const express=require(_0x22ae55('0xd')),router=express[_0x22ae55('0x2')](),auth=require('../../components/auth/service'),interaction=require(_0x22ae55('0x15')),controller=require(_0x22ae55('0x14'));router[_0x22ae55('0x6')]('/',auth['isAuthenticated'](),controller[_0x22ae55('0xc')]),router[_0x22ae55('0x6')](_0x22ae55('0x11'),auth[_0x22ae55('0x4')](),controller[_0x22ae55('0x0')]),router[_0x22ae55('0x6')](_0x22ae55('0x7'),auth[_0x22ae55('0x4')](),controller[_0x22ae55('0xa')]),router[_0x22ae55('0x9')]('/',auth[_0x22ae55('0x4')](),interaction[_0x22ae55('0xb')](_0x22ae55('0xe'),_0x22ae55('0x3')),controller[_0x22ae55('0x13')]),router['put']('/:id',auth[_0x22ae55('0x4')](),controller[_0x22ae55('0x5')]),router[_0x22ae55('0x16')](_0x22ae55('0x12'),auth[_0x22ae55('0x4')](),controller['accept']),router[_0x22ae55('0x16')](_0x22ae55('0x8'),auth[_0x22ae55('0x4')](),controller[_0x22ae55('0x1')]),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x22ae55('0x10')]),module[_0x22ae55('0xf')]=router; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.attributes.js b/server/api/openchannelMessage/openchannelMessage.attributes.js index 1fc9d1c..efc2629 100644 --- a/server/api/openchannelMessage/openchannelMessage.attributes.js +++ b/server/api/openchannelMessage/openchannelMessage.attributes.js @@ -1 +1 @@ -const a486_0x3013=['medium','sequelize','BOOLEAN','out','DATE'];(function(_0x3f920c,_0x301315){const _0x1a9679=function(_0x3ff8eb){while(--_0x3ff8eb){_0x3f920c['push'](_0x3f920c['shift']());}};_0x1a9679(++_0x301315);}(a486_0x3013,0x127));const a486_0x1a96=function(_0x3f920c,_0x301315){_0x3f920c=_0x3f920c-0x0;let _0x1a9679=a486_0x3013[_0x3f920c];return _0x1a9679;};const _0x67ba53=a486_0x1a96;'use strict';const Sequelize=require(_0x67ba53('0x1'));module['exports']={'body':{'type':Sequelize['TEXT'](_0x67ba53('0x0')),'allowNull':![]},'read':{'type':Sequelize[_0x67ba53('0x2')],'defaultValue':![]},'secret':{'type':Sequelize[_0x67ba53('0x2')],'defaultValue':![]},'direction':{'type':Sequelize['ENUM']('in',_0x67ba53('0x3')),'defaultValue':'out','allowNull':![]},'readAt':{'type':Sequelize[_0x67ba53('0x4')]}}; \ No newline at end of file +const a486_0x1a9a=['TEXT','exports','ENUM','DATE','out','STRING','sequelize','BOOLEAN','medium'];(function(_0x10158f,_0x1a9abd){const _0x5e0cb5=function(_0x1952e2){while(--_0x1952e2){_0x10158f['push'](_0x10158f['shift']());}};_0x5e0cb5(++_0x1a9abd);}(a486_0x1a9a,0x13f));const a486_0x5e0c=function(_0x10158f,_0x1a9abd){_0x10158f=_0x10158f-0x0;let _0x5e0cb5=a486_0x1a9a[_0x10158f];return _0x5e0cb5;};const _0x3acef0=a486_0x5e0c;'use strict';const Sequelize=require(_0x3acef0('0x2'));module[_0x3acef0('0x6')]={'body':{'type':Sequelize[_0x3acef0('0x5')](_0x3acef0('0x4')),'allowNull':![]},'read':{'type':Sequelize[_0x3acef0('0x3')],'defaultValue':![]},'secret':{'type':Sequelize[_0x3acef0('0x3')],'defaultValue':![]},'direction':{'type':Sequelize[_0x3acef0('0x7')]('in',_0x3acef0('0x0')),'defaultValue':'out','allowNull':![]},'readAt':{'type':Sequelize[_0x3acef0('0x8')]},'providerName':{'type':Sequelize[_0x3acef0('0x1')]},'providerResponse':{'type':Sequelize['TEXT']}}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.controller.js b/server/api/openchannelMessage/openchannelMessage.controller.js index 61cd0a6..794e197 100644 --- a/server/api/openchannelMessage/openchannelMessage.controller.js +++ b/server/api/openchannelMessage/openchannelMessage.controller.js @@ -1 +1 @@ -const a487_0x3c0c=['rejectMessage','limit','role','map','offset','result','create','merge','set','agent','[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','CmContact','fields','OpenchannelMessage','body','request','acceptmessage','SIP/%s','reject','catch','YYYY-MM-DD\x20HH:mm:ss','OpenchannelInteractionId','name','keys','UserId','http','moment','../../config/logger','OpenchannelMessage,\x20%s,\x20%s,\x20%s','then','length','VIRTUAL','query','findOne','message','rejectmessage','manual','OpenchannelMessage,\x20%s,\x20%s','json','sequelize','nolimit','send','attributes','channel','sort','interaction','OpenchannelInteraction','update','key','pick','util','../../components/parsers/qs','describe','RejectMessage','interface','readAt','format','request\x20sent','jayson/promise','stack','end','destroy','AcceptMessage','includeAll','type','acceptMessage','openchannel','count','sendStatus','openchannel-interactions','api','intersection','stringify','Content-Range','[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','register','read1stAt','filters','rawAttributes','./openchannelMessage.socket','lodash','event','info','debug','client','filter','params','model','null','error','index','isNil','where','EventManager','get','../../mysqldb','fieldName','user','show'];(function(_0x86b565,_0x3c0c59){const _0x1702e7=function(_0x2afa3e){while(--_0x2afa3e){_0x86b565['push'](_0x86b565['shift']());}};_0x1702e7(++_0x3c0c59);}(a487_0x3c0c,0x9c));const a487_0x1702=function(_0x86b565,_0x3c0c59){_0x86b565=_0x86b565-0x0;let _0x1702e7=a487_0x3c0c[_0x86b565];return _0x1702e7;};const _0x5ec1c3=a487_0x1702;'use strict';const moment=require(_0x5ec1c3('0x44')),util=require(_0x5ec1c3('0x5c')),_=require(_0x5ec1c3('0x17')),qs=require(_0x5ec1c3('0x5d')),logger=require('../../config/logger')(_0x5ec1c3('0xd')),{getSocket}=require('../../rediscache'),socket=getSocket(),interaction_log=require(_0x5ec1c3('0x45'))(_0x5ec1c3('0xc')),db=require(_0x5ec1c3('0x26'))['db'],{Op}=require(_0x5ec1c3('0x51'));require(_0x5ec1c3('0x16'))[_0x5ec1c3('0x12')](socket);const jayson=require(_0x5ec1c3('0x1')),client=jayson[_0x5ec1c3('0x1b')][_0x5ec1c3('0x43')]({'port':0x232c}),client9002=jayson[_0x5ec1c3('0x1b')][_0x5ec1c3('0x43')]({'port':0x232a});function respondWithRpcPromise(_0x2afa3e,_0x2f3fec,_0x4ce22f,_0x2a9e8d){return new Promise(function(_0x311a99,_0x5239cd){const _0x6c115=a487_0x1702,_0x142bea=_0x2a9e8d||client;return _0x142bea[_0x6c115('0x39')](_0x2afa3e,_0x4ce22f)[_0x6c115('0x47')](function(_0xc34121){const _0x3548c2=_0x6c115;logger[_0x3548c2('0x19')](_0x3548c2('0x4f'),_0x2f3fec,_0x3548c2('0x0')),logger[_0x3548c2('0x1a')](_0x3548c2('0x46'),_0x2f3fec,_0x3548c2('0x0'),JSON['stringify'](_0xc34121));if(_0xc34121['error']){if(_0xc34121[_0x3548c2('0x20')]['code']===0x1f4)return logger[_0x3548c2('0x20')]('OpenchannelMessage,\x20%s,\x20%s',_0x2f3fec,_0xc34121[_0x3548c2('0x20')][_0x3548c2('0x4c')]),_0x5239cd(_0xc34121[_0x3548c2('0x20')]['message']);return logger[_0x3548c2('0x20')](_0x3548c2('0x4f'),_0x2f3fec,_0xc34121['error'][_0x3548c2('0x4c')]),_0x311a99(_0xc34121[_0x3548c2('0x20')][_0x3548c2('0x4c')]);}else logger[_0x3548c2('0x19')](_0x3548c2('0x4f'),_0x2f3fec,_0x3548c2('0x0')),_0x311a99(_0xc34121[_0x3548c2('0x2f')][_0x3548c2('0x4c')]);})[_0x6c115('0x3d')](function(_0x2b0829){const _0x1b73ac=_0x6c115;logger[_0x1b73ac('0x20')](_0x1b73ac('0x4f'),_0x2f3fec,_0x2b0829),_0x5239cd(_0x2b0829);});});}function respondWithResult(_0x252906,_0x594dfa){return _0x594dfa=_0x594dfa||0xc8,function(_0x2be6f3){const _0x4188e4=a487_0x1702;if(_0x2be6f3)return _0x252906['status'](_0x594dfa)[_0x4188e4('0x50')](_0x2be6f3);};}function respondWithFilteredResult(_0x436f5d,_0x1b1958){return function(_0x1e2517){const _0x5df238=a487_0x1702;if(_0x1e2517){const _0xceacd5=_0x1e2517[_0x5df238('0xa')],_0x53184f=_0x1b1958[_0x5df238('0x2e')];let _0x535a73=_0x1b1958['offset']+_0x1b1958['limit'],_0x5a61ad;return _0x535a73>=_0xceacd5?(_0x535a73=_0xceacd5,_0x5a61ad=0xc8):_0x5a61ad=0xce,_0x436f5d['status'](_0x5a61ad),_0x436f5d[_0x5df238('0x32')](_0x5df238('0x10'),_0x53184f+'-'+_0x535a73+'/'+_0xceacd5)[_0x5df238('0x50')](_0x1e2517);}return null;};}function saveUpdates(_0x2ae71a){return function(_0x134d61){if(_0x134d61)return _0x134d61['update'](_0x2ae71a)['then'](function(_0x3980fe){return _0x3980fe;});return null;};}function removeEntity(_0x34daee){return function(_0x4b5680){const _0x399aa4=a487_0x1702;if(_0x4b5680)return _0x4b5680['destroy']()[_0x399aa4('0x47')](function(){const _0x38dbe9=_0x399aa4;_0x34daee['status'](0xcc)[_0x38dbe9('0x3')]();});};}function handleEntityNotFound(_0x5656b8){return function(_0x25127d){const _0x2cd081=a487_0x1702;return!_0x25127d&&_0x5656b8[_0x2cd081('0xb')](0x194),_0x25127d;};}function handleError(_0x33a5e8,_0x94d07f){return _0x94d07f=_0x94d07f||0x1f4,function(_0x362a6f){const _0x2d6280=a487_0x1702;logger[_0x2d6280('0x20')](_0x362a6f[_0x2d6280('0x2')]),_0x362a6f[_0x2d6280('0x40')]&&delete _0x362a6f[_0x2d6280('0x40')],_0x33a5e8['status'](_0x94d07f)[_0x2d6280('0x53')](_0x362a6f);};}exports[_0x5ec1c3('0x21')]=function(_0x360894,_0x32e209){const _0x4ab5db=_0x5ec1c3;let _0x348c4e={};const _0x547aeb={},_0x16ce5c={'count':0x0,'rows':[]},_0x33667e=_[_0x4ab5db('0x2d')](db[_0x4ab5db('0x37')][_0x4ab5db('0x15')],function(_0x171bcc){const _0x11a672=_0x4ab5db;return{'name':_0x171bcc[_0x11a672('0x27')],'type':_0x171bcc[_0x11a672('0x7')][_0x11a672('0x5a')]};});_0x547aeb[_0x4ab5db('0x1e')]=_[_0x4ab5db('0x2d')](_0x33667e,_0x4ab5db('0x40')),_0x547aeb[_0x4ab5db('0x4a')]=_[_0x4ab5db('0x41')](_0x360894[_0x4ab5db('0x4a')]),_0x547aeb[_0x4ab5db('0x14')]=_['intersection'](_0x547aeb['model'],_0x547aeb[_0x4ab5db('0x4a')]),_0x348c4e[_0x4ab5db('0x54')]=_[_0x4ab5db('0xe')](_0x547aeb[_0x4ab5db('0x1e')],qs[_0x4ab5db('0x36')](_0x360894[_0x4ab5db('0x4a')][_0x4ab5db('0x36')])),_0x348c4e['attributes']=_0x348c4e[_0x4ab5db('0x54')]['length']?_0x348c4e[_0x4ab5db('0x54')]:_0x547aeb[_0x4ab5db('0x1e')];typeof _0x360894['query'][_0x4ab5db('0x52')]==='undefined'&&(_0x348c4e[_0x4ab5db('0x2b')]=qs[_0x4ab5db('0x2b')](_0x360894[_0x4ab5db('0x4a')][_0x4ab5db('0x2b')]),_0x348c4e['offset']=qs['offset'](_0x360894[_0x4ab5db('0x4a')][_0x4ab5db('0x2e')]));_0x348c4e['order']=qs[_0x4ab5db('0x56')](_0x360894[_0x4ab5db('0x4a')][_0x4ab5db('0x56')]),_0x348c4e[_0x4ab5db('0x23')]=qs['filters'](_[_0x4ab5db('0x5b')](_0x360894['query'],_0x547aeb[_0x4ab5db('0x14')]),_0x33667e);_0x360894['query'][_0x4ab5db('0x1c')]&&(_0x348c4e[_0x4ab5db('0x23')]=_['merge'](_0x348c4e[_0x4ab5db('0x23')],{[Op['or']]:_[_0x4ab5db('0x2d')](_0x33667e,function(_0x13e596){const _0x530c5a=_0x4ab5db;if(_0x13e596[_0x530c5a('0x7')]!==_0x530c5a('0x49')){const _0x269d24={};return _0x269d24[_0x13e596[_0x530c5a('0x40')]]={[Op['like']]:'%'+_0x360894['query'][_0x530c5a('0x1c')]+'%'},_0x269d24;}})}));_0x348c4e=_[_0x4ab5db('0x31')]({},_0x348c4e,_0x360894['options']);const _0x54ca84={'where':_0x348c4e[_0x4ab5db('0x23')]};return db[_0x4ab5db('0x37')][_0x4ab5db('0xa')](_0x54ca84)[_0x4ab5db('0x47')](function(_0x274968){const _0x1a99fc=_0x4ab5db;return _0x16ce5c[_0x1a99fc('0xa')]=_0x274968,_0x360894[_0x1a99fc('0x4a')][_0x1a99fc('0x6')]&&(_0x348c4e['include']=[{'all':!![]}]),db[_0x1a99fc('0x37')]['findAll'](_0x348c4e);})[_0x4ab5db('0x47')](function(_0x30a929){return _0x16ce5c['rows']=_0x30a929,_0x16ce5c;})['then'](respondWithFilteredResult(_0x32e209,_0x348c4e))[_0x4ab5db('0x3d')](handleError(_0x32e209,null));},exports[_0x5ec1c3('0x29')]=function(_0x1d9eb4,_0x4d1421){const _0x43844f=_0x5ec1c3;let _0xd10d8e={'raw':!![],'where':{'id':_0x1d9eb4[_0x43844f('0x1d')]['id']}};const _0x4bee17={};return _0x4bee17[_0x43844f('0x1e')]=_[_0x43844f('0x41')](db[_0x43844f('0x37')][_0x43844f('0x15')]),_0x4bee17[_0x43844f('0x4a')]=_[_0x43844f('0x41')](_0x1d9eb4[_0x43844f('0x4a')]),_0x4bee17[_0x43844f('0x14')]=_[_0x43844f('0xe')](_0x4bee17[_0x43844f('0x1e')],_0x4bee17[_0x43844f('0x4a')]),_0xd10d8e[_0x43844f('0x54')]=_[_0x43844f('0xe')](_0x4bee17[_0x43844f('0x1e')],qs[_0x43844f('0x36')](_0x1d9eb4[_0x43844f('0x4a')][_0x43844f('0x36')])),_0xd10d8e['attributes']=_0xd10d8e[_0x43844f('0x54')][_0x43844f('0x48')]?_0xd10d8e[_0x43844f('0x54')]:_0x4bee17[_0x43844f('0x1e')],_0x1d9eb4[_0x43844f('0x4a')][_0x43844f('0x6')]&&(_0xd10d8e['include']=[{'all':!![]}]),_0xd10d8e=_['merge']({},_0xd10d8e,_0x1d9eb4['options']),db['OpenchannelMessage'][_0x43844f('0x4b')](_0xd10d8e)['then'](handleEntityNotFound(_0x4d1421,null))[_0x43844f('0x47')](respondWithResult(_0x4d1421,null))['catch'](handleError(_0x4d1421,null));},exports[_0x5ec1c3('0x30')]=function(_0x40202c,_0xbcb801){const _0x543db0=_0x5ec1c3;return db['OpenchannelMessage']['create'](_0x40202c[_0x543db0('0x38')],{})['then'](respondWithResult(_0xbcb801,0xc9))[_0x543db0('0x3d')](handleError(_0xbcb801,null));},exports[_0x5ec1c3('0x59')]=function(_0x1aa7a7,_0xf71d5){const _0x410a0a=_0x5ec1c3;return _0x1aa7a7[_0x410a0a('0x38')]['id']&&delete _0x1aa7a7[_0x410a0a('0x38')]['id'],db[_0x410a0a('0x37')]['findOne']({'where':{'id':_0x1aa7a7[_0x410a0a('0x1d')]['id']}})[_0x410a0a('0x47')](handleEntityNotFound(_0xf71d5,null))[_0x410a0a('0x47')](saveUpdates(_0x1aa7a7[_0x410a0a('0x38')],null))['then'](respondWithResult(_0xf71d5,null))['catch'](handleError(_0xf71d5,null));},exports[_0x5ec1c3('0x4')]=function(_0x3053df,_0x348a9a){const _0x29bf56=_0x5ec1c3;return db[_0x29bf56('0x37')]['findOne']({'where':{'id':_0x3053df['params']['id']}})[_0x29bf56('0x47')](handleEntityNotFound(_0x348a9a,null))[_0x29bf56('0x47')](removeEntity(_0x348a9a,null))[_0x29bf56('0x3d')](handleError(_0x348a9a,null));},exports[_0x5ec1c3('0x5e')]=function(_0x2be39e,_0x5e43f5){const _0x46c069=_0x5ec1c3;return db[_0x46c069('0x37')][_0x46c069('0x5e')]()['then'](respondWithResult(_0x5e43f5,null))[_0x46c069('0x3d')](handleError(_0x5e43f5,null));},exports['accept']=function(_0x4882d0,_0x14a6a1){const _0x99b71c=_0x5ec1c3,_0x366794={'channel':_0x99b71c('0x9')};return _0x4882d0[_0x99b71c('0x38')]['id']&&delete _0x4882d0['body']['id'],_0x4882d0[_0x99b71c('0x38')]['read']=!![],_0x4882d0[_0x99b71c('0x38')][_0x99b71c('0x61')]=moment()[_0x99b71c('0x62')]('YYYY-MM-DD\x20HH:mm:ss'),_0x4882d0['body'][_0x99b71c('0x42')]=_0x4882d0['body'][_0x99b71c('0x42')]||_0x4882d0[_0x99b71c('0x28')]['id'],db[_0x99b71c('0x37')][_0x99b71c('0x4b')]({'where':{'id':_0x4882d0[_0x99b71c('0x1d')]['id'],'UserId':null},'include':[{'model':db[_0x99b71c('0x35')],'as':'Contact'}]})[_0x99b71c('0x47')](handleEntityNotFound(_0x14a6a1,null))[_0x99b71c('0x47')](saveUpdates(_0x4882d0[_0x99b71c('0x38')],null))[_0x99b71c('0x47')](function(_0x41fbc7){const _0x205bac=_0x99b71c;if(_0x41fbc7)return _0x366794[_0x205bac('0x4c')]=_0x41fbc7[_0x205bac('0x25')]({'plain':!![]}),db[_0x205bac('0x58')][_0x205bac('0x4b')]({'where':{'id':_0x41fbc7[_0x205bac('0x3f')]}});return null;})['then'](handleEntityNotFound(_0x14a6a1,null))['then'](function(_0x23deb9){const _0x5209f3=_0x99b71c;if(_0x23deb9)return _0x23deb9[_0x5209f3('0x59')]({'UserId':_0x4882d0['body'][_0x5209f3('0x42')],'read1stAt':_[_0x5209f3('0x22')](_0x23deb9[_0x5209f3('0x13')])?moment()[_0x5209f3('0x62')](_0x5209f3('0x3e')):undefined});return null;})[_0x99b71c('0x47')](function(_0x273adf){const _0x44424b=_0x99b71c;if(_0x273adf)return _0x366794['interaction']=_0x273adf['get']({'plain':!![]}),interaction_log[_0x44424b('0x19')](_0x44424b('0x34'),_0x4882d0[_0x44424b('0x28')]['id'],_0x4882d0['user'][_0x44424b('0x40')],_0x4882d0[_0x44424b('0x28')][_0x44424b('0x2c')],_0x366794[_0x44424b('0x57')]['id'],_0x4882d0[_0x44424b('0x38')]?JSON[_0x44424b('0xf')](_0x4882d0[_0x44424b('0x38')]):'null'),respondWithRpcPromise(_0x44424b('0x5'),_0x44424b('0x8'),_0x366794);return null;})[_0x99b71c('0x47')](function(_0x424156){const _0x4bd9bd=_0x99b71c;if(_0x424156){if(_0x4882d0['body'][_0x4bd9bd('0x4e')])return _0x366794[_0x4bd9bd('0x4c')][_0x4bd9bd('0x60')]=util[_0x4bd9bd('0x62')](_0x4bd9bd('0x3b'),_0x4882d0[_0x4bd9bd('0x28')][_0x4bd9bd('0x40')]),_0x366794[_0x4bd9bd('0x4c')][_0x4bd9bd('0x55')]=_0x366794[_0x4bd9bd('0x55')],_0x366794[_0x4bd9bd('0x4c')][_0x4bd9bd('0x18')]='accept',respondWithRpcPromise('EventManager',_0x4bd9bd('0x24'),{'event':_0x4bd9bd('0x3a'),'message':_0x366794[_0x4bd9bd('0x4c')]},client9002)[_0x4bd9bd('0x47')](function(){return _0x366794;});return _0x366794;}return null;})[_0x99b71c('0x47')](respondWithResult(_0x14a6a1,null))['catch'](handleError(_0x14a6a1,null));},exports['reject']=function(_0x44c009,_0x7d1d66){const _0x254a22=_0x5ec1c3,_0x281cff={'agent':{},'channel':'openchannel'};return _0x44c009[_0x254a22('0x38')]['id']&&delete _0x44c009[_0x254a22('0x38')]['id'],_0x44c009[_0x254a22('0x38')][_0x254a22('0x42')]=_0x44c009[_0x254a22('0x38')]['UserId']||_0x44c009['user']['id'],_0x281cff[_0x254a22('0x33')]['id']=_0x44c009[_0x254a22('0x38')][_0x254a22('0x42')],db['OpenchannelMessage']['findOne']({'where':{'id':_0x44c009[_0x254a22('0x1d')]['id'],'UserId':null}})[_0x254a22('0x47')](handleEntityNotFound(_0x7d1d66,null))['then'](function(_0x26aedb){const _0x394d99=_0x254a22;if(_0x26aedb)return _0x281cff[_0x394d99('0x4c')]=_0x26aedb[_0x394d99('0x25')]({'plain':!![]}),db[_0x394d99('0x58')]['findOne']({'where':{'id':_0x26aedb['OpenchannelInteractionId']}});return null;})['then'](handleEntityNotFound(_0x7d1d66,null))[_0x254a22('0x47')](function(_0x7c9722){const _0x502916=_0x254a22;if(_0x7c9722)return _0x281cff['interaction']=_0x7c9722[_0x502916('0x25')]({'plain':!![]}),interaction_log[_0x502916('0x19')](_0x502916('0x11'),_0x44c009[_0x502916('0x28')]['id'],_0x44c009[_0x502916('0x28')][_0x502916('0x40')],_0x44c009[_0x502916('0x28')][_0x502916('0x2c')],_0x281cff[_0x502916('0x57')]['id'],_0x44c009[_0x502916('0x38')]?JSON[_0x502916('0xf')](_0x44c009[_0x502916('0x38')]):_0x502916('0x1f')),respondWithRpcPromise(_0x502916('0x5f'),_0x502916('0x2a'),_0x281cff);return null;})['then'](function(_0x1baa22){const _0x1a104b=_0x254a22;if(_0x1baa22)return _0x1baa22[_0x1a104b('0x4c')][_0x1a104b('0x60')]=util[_0x1a104b('0x62')](_0x1a104b('0x3b'),_0x44c009[_0x1a104b('0x28')][_0x1a104b('0x40')]),_0x1baa22[_0x1a104b('0x4c')]['channel']=_0x281cff[_0x1a104b('0x55')],_0x1baa22[_0x1a104b('0x4c')]['event']=_0x1a104b('0x3c'),respondWithRpcPromise('EventManager','EventManager',{'event':_0x1a104b('0x4d'),'message':_0x1baa22[_0x1a104b('0x4c')]},client9002),_0x281cff;return null;})[_0x254a22('0x47')](respondWithResult(_0x7d1d66,null))[_0x254a22('0x3d')](handleError(_0x7d1d66,null));}; \ No newline at end of file +const a487_0x2bd4=['limit','filters','OpenchannelInteraction','status','offset','null','format','lodash','stack','destroy','request','reject','VIRTUAL','sort','send','create','key','isNil','query','info','stringify','client','jayson/promise','read1stAt','event','get','moment','interface','map','OpenchannelMessage,\x20%s,\x20%s','OpenchannelMessage,\x20%s,\x20%s,\x20%s','params','result','rejectmessage','fieldName','acceptMessage','end','where','length','readAt','nolimit','rawAttributes','attributes','keys','OpenchannelInteractionId','order','includeAll','YYYY-MM-DD\x20HH:mm:ss','[OPENCHANNELMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','findOne','user','then','merge','channel','RejectMessage','manual','undefined','update','../../config/logger','json','options','OpenchannelMessage','findAll','role','Contact','model','Content-Range','count','error','openchannel-interactions','filter','describe','type','agent','include','name','request\x20sent','body','register','index','CmContact','../../rediscache','rejectMessage','sendStatus','pick','intersection','fields','message','../../components/parsers/qs','openchannel','catch','SIP/%s','interaction','http','AcceptMessage','UserId','EventManager','api','[OPENCHANNELMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s'];(function(_0x45913d,_0x2bd4dc){const _0x28f1d7=function(_0x500737){while(--_0x500737){_0x45913d['push'](_0x45913d['shift']());}};_0x28f1d7(++_0x2bd4dc);}(a487_0x2bd4,0x11e));const a487_0x28f1=function(_0x45913d,_0x2bd4dc){_0x45913d=_0x45913d-0x0;let _0x28f1d7=a487_0x2bd4[_0x45913d];return _0x28f1d7;};const _0x1c7b6d=a487_0x28f1;'use strict';const moment=require(_0x1c7b6d('0x25')),util=require('util'),_=require(_0x1c7b6d('0x12')),qs=require(_0x1c7b6d('0x0')),logger=require(_0x1c7b6d('0x45'))(_0x1c7b6d('0x9')),{getSocket}=require(_0x1c7b6d('0x5c')),socket=getSocket(),interaction_log=require(_0x1c7b6d('0x45'))(_0x1c7b6d('0x50')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require('./openchannelMessage.socket')[_0x1c7b6d('0x59')](socket);const jayson=require(_0x1c7b6d('0x21')),client=jayson[_0x1c7b6d('0x20')]['http']({'port':0x232c}),client9002=jayson[_0x1c7b6d('0x20')][_0x1c7b6d('0x5')]({'port':0x232a});function respondWithRpcPromise(_0x500737,_0x27ff6e,_0xd35767,_0x2d38b4){return new Promise(function(_0xfafbb5,_0x47390b){const _0x2bed1e=a487_0x28f1,_0x1ad2ff=_0x2d38b4||client;return _0x1ad2ff[_0x2bed1e('0x15')](_0x500737,_0xd35767)[_0x2bed1e('0x3e')](function(_0x3a0ff6){const _0x42dd64=_0x2bed1e;logger['info'](_0x42dd64('0x28'),_0x27ff6e,_0x42dd64('0x57')),logger['debug'](_0x42dd64('0x29'),_0x27ff6e,'request\x20sent',JSON['stringify'](_0x3a0ff6));if(_0x3a0ff6[_0x42dd64('0x4f')]){if(_0x3a0ff6[_0x42dd64('0x4f')]['code']===0x1f4)return logger[_0x42dd64('0x4f')](_0x42dd64('0x28'),_0x27ff6e,_0x3a0ff6[_0x42dd64('0x4f')]['message']),_0x47390b(_0x3a0ff6[_0x42dd64('0x4f')][_0x42dd64('0x62')]);return logger[_0x42dd64('0x4f')]('OpenchannelMessage,\x20%s,\x20%s',_0x27ff6e,_0x3a0ff6[_0x42dd64('0x4f')][_0x42dd64('0x62')]),_0xfafbb5(_0x3a0ff6[_0x42dd64('0x4f')][_0x42dd64('0x62')]);}else logger[_0x42dd64('0x1e')](_0x42dd64('0x28'),_0x27ff6e,_0x42dd64('0x57')),_0xfafbb5(_0x3a0ff6[_0x42dd64('0x2b')][_0x42dd64('0x62')]);})['catch'](function(_0xc97570){const _0x495a21=_0x2bed1e;logger[_0x495a21('0x4f')](_0x495a21('0x28'),_0x27ff6e,_0xc97570),_0x47390b(_0xc97570);});});}function respondWithResult(_0x2e81c8,_0x1b3503){return _0x1b3503=_0x1b3503||0xc8,function(_0x1af664){const _0x3975b1=a487_0x28f1;if(_0x1af664)return _0x2e81c8[_0x3975b1('0xe')](_0x1b3503)[_0x3975b1('0x46')](_0x1af664);};}function respondWithFilteredResult(_0x25a649,_0x39f6ad){return function(_0x3f6eec){const _0x2a21e4=a487_0x28f1;if(_0x3f6eec){const _0x2c8515=_0x3f6eec[_0x2a21e4('0x4e')],_0x46ad3f=_0x39f6ad[_0x2a21e4('0xf')];let _0x5958b3=_0x39f6ad['offset']+_0x39f6ad[_0x2a21e4('0xb')],_0x5a9dd4;return _0x5958b3>=_0x2c8515?(_0x5958b3=_0x2c8515,_0x5a9dd4=0xc8):_0x5a9dd4=0xce,_0x25a649[_0x2a21e4('0xe')](_0x5a9dd4),_0x25a649['set'](_0x2a21e4('0x4d'),_0x46ad3f+'-'+_0x5958b3+'/'+_0x2c8515)[_0x2a21e4('0x46')](_0x3f6eec);}return null;};}function saveUpdates(_0x582b62){return function(_0x5b6293){const _0x42e3a4=a487_0x28f1;if(_0x5b6293)return _0x5b6293['update'](_0x582b62)[_0x42e3a4('0x3e')](function(_0x7bdda2){return _0x7bdda2;});return null;};}function removeEntity(_0x2cabc5){return function(_0x19c7bc){const _0x5913d1=a487_0x28f1;if(_0x19c7bc)return _0x19c7bc[_0x5913d1('0x14')]()[_0x5913d1('0x3e')](function(){const _0x57994c=_0x5913d1;_0x2cabc5[_0x57994c('0xe')](0xcc)[_0x57994c('0x2f')]();});};}function handleEntityNotFound(_0xbe0bb4){return function(_0x4a217b){const _0x17ede1=a487_0x28f1;return!_0x4a217b&&_0xbe0bb4[_0x17ede1('0x5e')](0x194),_0x4a217b;};}function handleError(_0x5821d0,_0x204b12){return _0x204b12=_0x204b12||0x1f4,function(_0x52bd14){const _0xbdc44e=a487_0x28f1;logger[_0xbdc44e('0x4f')](_0x52bd14[_0xbdc44e('0x13')]),_0x52bd14['name']&&delete _0x52bd14[_0xbdc44e('0x56')],_0x5821d0[_0xbdc44e('0xe')](_0x204b12)[_0xbdc44e('0x19')](_0x52bd14);};}exports[_0x1c7b6d('0x5a')]=function(_0x5cd020,_0x1701d5){const _0x145d9f=_0x1c7b6d;let _0x116e01={};const _0x45c05b={},_0x21a10b={'count':0x0,'rows':[]},_0x4f1cf7=_[_0x145d9f('0x27')](db[_0x145d9f('0x48')]['rawAttributes'],function(_0x128fdb){const _0x114546=_0x145d9f;return{'name':_0x128fdb[_0x114546('0x2d')],'type':_0x128fdb[_0x114546('0x53')][_0x114546('0x1b')]};});_0x45c05b[_0x145d9f('0x4c')]=_[_0x145d9f('0x27')](_0x4f1cf7,_0x145d9f('0x56')),_0x45c05b[_0x145d9f('0x1d')]=_['keys'](_0x5cd020['query']),_0x45c05b['filters']=_[_0x145d9f('0x60')](_0x45c05b['model'],_0x45c05b[_0x145d9f('0x1d')]),_0x116e01[_0x145d9f('0x35')]=_[_0x145d9f('0x60')](_0x45c05b[_0x145d9f('0x4c')],qs[_0x145d9f('0x61')](_0x5cd020[_0x145d9f('0x1d')][_0x145d9f('0x61')])),_0x116e01['attributes']=_0x116e01[_0x145d9f('0x35')][_0x145d9f('0x31')]?_0x116e01[_0x145d9f('0x35')]:_0x45c05b[_0x145d9f('0x4c')];typeof _0x5cd020['query'][_0x145d9f('0x33')]===_0x145d9f('0x43')&&(_0x116e01[_0x145d9f('0xb')]=qs['limit'](_0x5cd020[_0x145d9f('0x1d')][_0x145d9f('0xb')]),_0x116e01[_0x145d9f('0xf')]=qs[_0x145d9f('0xf')](_0x5cd020[_0x145d9f('0x1d')][_0x145d9f('0xf')]));_0x116e01[_0x145d9f('0x38')]=qs[_0x145d9f('0x18')](_0x5cd020[_0x145d9f('0x1d')][_0x145d9f('0x18')]),_0x116e01[_0x145d9f('0x30')]=qs['filters'](_[_0x145d9f('0x5f')](_0x5cd020[_0x145d9f('0x1d')],_0x45c05b[_0x145d9f('0xc')]),_0x4f1cf7);_0x5cd020[_0x145d9f('0x1d')][_0x145d9f('0x51')]&&(_0x116e01[_0x145d9f('0x30')]=_[_0x145d9f('0x3f')](_0x116e01[_0x145d9f('0x30')],{[Op['or']]:_['map'](_0x4f1cf7,function(_0x2d4165){const _0x194f6b=_0x145d9f;if(_0x2d4165[_0x194f6b('0x53')]!==_0x194f6b('0x17')){const _0x459d8e={};return _0x459d8e[_0x2d4165[_0x194f6b('0x56')]]={[Op['like']]:'%'+_0x5cd020[_0x194f6b('0x1d')][_0x194f6b('0x51')]+'%'},_0x459d8e;}})}));_0x116e01=_[_0x145d9f('0x3f')]({},_0x116e01,_0x5cd020[_0x145d9f('0x47')]);const _0x3cedce={'where':_0x116e01[_0x145d9f('0x30')]};return db[_0x145d9f('0x48')][_0x145d9f('0x4e')](_0x3cedce)[_0x145d9f('0x3e')](function(_0x20f78f){const _0x3f2a0c=_0x145d9f;return _0x21a10b[_0x3f2a0c('0x4e')]=_0x20f78f,_0x5cd020[_0x3f2a0c('0x1d')][_0x3f2a0c('0x39')]&&(_0x116e01[_0x3f2a0c('0x55')]=[{'all':!![]}]),db[_0x3f2a0c('0x48')][_0x3f2a0c('0x49')](_0x116e01);})[_0x145d9f('0x3e')](function(_0x309d31){return _0x21a10b['rows']=_0x309d31,_0x21a10b;})[_0x145d9f('0x3e')](respondWithFilteredResult(_0x1701d5,_0x116e01))['catch'](handleError(_0x1701d5,null));},exports['show']=function(_0x1c0c38,_0x6c28e2){const _0x16a991=_0x1c7b6d;let _0x4cb34c={'raw':!![],'where':{'id':_0x1c0c38[_0x16a991('0x2a')]['id']}};const _0x4bf723={};return _0x4bf723[_0x16a991('0x4c')]=_[_0x16a991('0x36')](db[_0x16a991('0x48')][_0x16a991('0x34')]),_0x4bf723[_0x16a991('0x1d')]=_[_0x16a991('0x36')](_0x1c0c38[_0x16a991('0x1d')]),_0x4bf723[_0x16a991('0xc')]=_['intersection'](_0x4bf723[_0x16a991('0x4c')],_0x4bf723['query']),_0x4cb34c[_0x16a991('0x35')]=_[_0x16a991('0x60')](_0x4bf723[_0x16a991('0x4c')],qs['fields'](_0x1c0c38[_0x16a991('0x1d')][_0x16a991('0x61')])),_0x4cb34c[_0x16a991('0x35')]=_0x4cb34c['attributes'][_0x16a991('0x31')]?_0x4cb34c[_0x16a991('0x35')]:_0x4bf723[_0x16a991('0x4c')],_0x1c0c38[_0x16a991('0x1d')][_0x16a991('0x39')]&&(_0x4cb34c[_0x16a991('0x55')]=[{'all':!![]}]),_0x4cb34c=_['merge']({},_0x4cb34c,_0x1c0c38[_0x16a991('0x47')]),db[_0x16a991('0x48')][_0x16a991('0x3c')](_0x4cb34c)[_0x16a991('0x3e')](handleEntityNotFound(_0x6c28e2,null))[_0x16a991('0x3e')](respondWithResult(_0x6c28e2,null))['catch'](handleError(_0x6c28e2,null));},exports['create']=function(_0x2079d2,_0x1bd66f){const _0x1b8856=_0x1c7b6d;return db[_0x1b8856('0x48')][_0x1b8856('0x1a')](_0x2079d2['body'],{})[_0x1b8856('0x3e')](respondWithResult(_0x1bd66f,0xc9))[_0x1b8856('0x2')](handleError(_0x1bd66f,null));},exports[_0x1c7b6d('0x44')]=function(_0xb574c1,_0x339d78){const _0x12a58d=_0x1c7b6d;return _0xb574c1[_0x12a58d('0x58')]['id']&&delete _0xb574c1[_0x12a58d('0x58')]['id'],db['OpenchannelMessage'][_0x12a58d('0x3c')]({'where':{'id':_0xb574c1[_0x12a58d('0x2a')]['id']}})[_0x12a58d('0x3e')](handleEntityNotFound(_0x339d78,null))['then'](saveUpdates(_0xb574c1['body'],null))[_0x12a58d('0x3e')](respondWithResult(_0x339d78,null))[_0x12a58d('0x2')](handleError(_0x339d78,null));},exports['destroy']=function(_0x50528d,_0x29a841){const _0x285c3c=_0x1c7b6d;return db['OpenchannelMessage'][_0x285c3c('0x3c')]({'where':{'id':_0x50528d[_0x285c3c('0x2a')]['id']}})['then'](handleEntityNotFound(_0x29a841,null))[_0x285c3c('0x3e')](removeEntity(_0x29a841,null))['catch'](handleError(_0x29a841,null));},exports[_0x1c7b6d('0x52')]=function(_0x26761f,_0x2a3072){const _0x32444a=_0x1c7b6d;return db[_0x32444a('0x48')]['describe']()[_0x32444a('0x3e')](respondWithResult(_0x2a3072,null))[_0x32444a('0x2')](handleError(_0x2a3072,null));},exports['accept']=function(_0x2808a2,_0x2abc1b){const _0x21c685=_0x1c7b6d,_0x21707a={'channel':'openchannel'};return _0x2808a2['body']['id']&&delete _0x2808a2[_0x21c685('0x58')]['id'],_0x2808a2['body']['read']=!![],_0x2808a2[_0x21c685('0x58')][_0x21c685('0x32')]=moment()[_0x21c685('0x11')](_0x21c685('0x3a')),_0x2808a2[_0x21c685('0x58')]['UserId']=_0x2808a2['body'][_0x21c685('0x7')]||_0x2808a2[_0x21c685('0x3d')]['id'],db[_0x21c685('0x48')][_0x21c685('0x3c')]({'where':{'id':_0x2808a2['params']['id'],'UserId':null},'include':[{'model':db[_0x21c685('0x5b')],'as':_0x21c685('0x4b')}]})[_0x21c685('0x3e')](handleEntityNotFound(_0x2abc1b,null))[_0x21c685('0x3e')](saveUpdates(_0x2808a2['body'],null))[_0x21c685('0x3e')](function(_0x4b301b){const _0xa24b45=_0x21c685;if(_0x4b301b)return _0x21707a['message']=_0x4b301b[_0xa24b45('0x24')]({'plain':!![]}),db[_0xa24b45('0xd')]['findOne']({'where':{'id':_0x4b301b[_0xa24b45('0x37')]}});return null;})['then'](handleEntityNotFound(_0x2abc1b,null))[_0x21c685('0x3e')](function(_0x45b8a1){const _0x34254f=_0x21c685;if(_0x45b8a1)return _0x45b8a1[_0x34254f('0x44')]({'UserId':_0x2808a2[_0x34254f('0x58')]['UserId'],'read1stAt':_[_0x34254f('0x1c')](_0x45b8a1[_0x34254f('0x22')])?moment()[_0x34254f('0x11')](_0x34254f('0x3a')):undefined});return null;})[_0x21c685('0x3e')](function(_0x333939){const _0x12ebcb=_0x21c685;if(_0x333939)return _0x21707a[_0x12ebcb('0x4')]=_0x333939['get']({'plain':!![]}),interaction_log[_0x12ebcb('0x1e')](_0x12ebcb('0x3b'),_0x2808a2[_0x12ebcb('0x3d')]['id'],_0x2808a2[_0x12ebcb('0x3d')][_0x12ebcb('0x56')],_0x2808a2[_0x12ebcb('0x3d')][_0x12ebcb('0x4a')],_0x21707a[_0x12ebcb('0x4')]['id'],_0x2808a2['body']?JSON['stringify'](_0x2808a2['body']):_0x12ebcb('0x10')),respondWithRpcPromise(_0x12ebcb('0x6'),_0x12ebcb('0x2e'),_0x21707a);return null;})[_0x21c685('0x3e')](function(_0x3d63e8){const _0x527010=_0x21c685;if(_0x3d63e8){if(_0x2808a2[_0x527010('0x58')][_0x527010('0x42')])return _0x21707a[_0x527010('0x62')]['interface']=util[_0x527010('0x11')](_0x527010('0x3'),_0x2808a2[_0x527010('0x3d')]['name']),_0x21707a[_0x527010('0x62')]['channel']=_0x21707a[_0x527010('0x40')],_0x21707a[_0x527010('0x62')]['event']='accept',respondWithRpcPromise(_0x527010('0x8'),_0x527010('0x8'),{'event':'acceptmessage','message':_0x21707a[_0x527010('0x62')]},client9002)['then'](function(){return _0x21707a;});return _0x21707a;}return null;})[_0x21c685('0x3e')](respondWithResult(_0x2abc1b,null))[_0x21c685('0x2')](handleError(_0x2abc1b,null));},exports[_0x1c7b6d('0x16')]=function(_0x20acaa,_0x3adfe2){const _0x2543df=_0x1c7b6d,_0x596146={'agent':{},'channel':_0x2543df('0x1')};return _0x20acaa['body']['id']&&delete _0x20acaa[_0x2543df('0x58')]['id'],_0x20acaa['body'][_0x2543df('0x7')]=_0x20acaa[_0x2543df('0x58')][_0x2543df('0x7')]||_0x20acaa[_0x2543df('0x3d')]['id'],_0x596146[_0x2543df('0x54')]['id']=_0x20acaa[_0x2543df('0x58')][_0x2543df('0x7')],db[_0x2543df('0x48')][_0x2543df('0x3c')]({'where':{'id':_0x20acaa[_0x2543df('0x2a')]['id'],'UserId':null}})[_0x2543df('0x3e')](handleEntityNotFound(_0x3adfe2,null))['then'](function(_0x38e2bb){const _0x17b2c8=_0x2543df;if(_0x38e2bb)return _0x596146['message']=_0x38e2bb[_0x17b2c8('0x24')]({'plain':!![]}),db['OpenchannelInteraction'][_0x17b2c8('0x3c')]({'where':{'id':_0x38e2bb[_0x17b2c8('0x37')]}});return null;})[_0x2543df('0x3e')](handleEntityNotFound(_0x3adfe2,null))[_0x2543df('0x3e')](function(_0xf51b10){const _0x4d5e3c=_0x2543df;if(_0xf51b10)return _0x596146['interaction']=_0xf51b10[_0x4d5e3c('0x24')]({'plain':!![]}),interaction_log[_0x4d5e3c('0x1e')](_0x4d5e3c('0xa'),_0x20acaa['user']['id'],_0x20acaa[_0x4d5e3c('0x3d')][_0x4d5e3c('0x56')],_0x20acaa[_0x4d5e3c('0x3d')][_0x4d5e3c('0x4a')],_0x596146[_0x4d5e3c('0x4')]['id'],_0x20acaa[_0x4d5e3c('0x58')]?JSON[_0x4d5e3c('0x1f')](_0x20acaa[_0x4d5e3c('0x58')]):_0x4d5e3c('0x10')),respondWithRpcPromise(_0x4d5e3c('0x41'),_0x4d5e3c('0x5d'),_0x596146);return null;})[_0x2543df('0x3e')](function(_0x36851e){const _0x5cc066=_0x2543df;if(_0x36851e)return _0x36851e[_0x5cc066('0x62')][_0x5cc066('0x26')]=util['format'](_0x5cc066('0x3'),_0x20acaa[_0x5cc066('0x3d')]['name']),_0x36851e[_0x5cc066('0x62')][_0x5cc066('0x40')]=_0x596146['channel'],_0x36851e['message'][_0x5cc066('0x23')]=_0x5cc066('0x16'),respondWithRpcPromise(_0x5cc066('0x8'),_0x5cc066('0x8'),{'event':_0x5cc066('0x2c'),'message':_0x36851e['message']},client9002),_0x596146;return null;})[_0x2543df('0x3e')](respondWithResult(_0x3adfe2,null))[_0x2543df('0x2')](handleError(_0x3adfe2,null));}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.events.js b/server/api/openchannelMessage/openchannelMessage.events.js index bba1843..dfe2f70 100644 --- a/server/api/openchannelMessage/openchannelMessage.events.js +++ b/server/api/openchannelMessage/openchannelMessage.events.js @@ -1 +1 @@ -const a488_0x68be=['undefined','save','setMaxListeners','update','remove','emit','events','../../mysqldb'];(function(_0x34e2b5,_0x68be61){const _0x2bd545=function(_0x921b3){while(--_0x921b3){_0x34e2b5['push'](_0x34e2b5['shift']());}};_0x2bd545(++_0x68be61);}(a488_0x68be,0x1c9));const a488_0x2bd5=function(_0x34e2b5,_0x68be61){_0x34e2b5=_0x34e2b5-0x0;let _0x2bd545=a488_0x68be[_0x34e2b5];return _0x2bd545;};const _0x599c1b=a488_0x2bd5;'use strict';const EventEmitter=require(_0x599c1b('0x5')),OpenchannelMessage=require(_0x599c1b('0x6'))['db']['OpenchannelMessage'],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents[_0x599c1b('0x1')](0x0);const events={'afterCreate':_0x599c1b('0x0'),'afterUpdate':_0x599c1b('0x2'),'afterDestroy':_0x599c1b('0x3')};function emitEvent(_0x921b3){return function(_0x138cdb){const _0x45a176=a488_0x2bd5;OpenchannelMessageEvents[_0x45a176('0x4')](_0x921b3+':'+_0x138cdb['id'],_0x138cdb),OpenchannelMessageEvents[_0x45a176('0x4')](_0x921b3,_0x138cdb);};}for(const e in events){if(typeof events[e]!==_0x599c1b('0x7')){const event=events[e];OpenchannelMessage['addHook'](e,emitEvent(event));}}module['exports']=OpenchannelMessageEvents; \ No newline at end of file +const a488_0x344e=['exports','emit','events','remove','../../mysqldb','OpenchannelMessage','addHook'];(function(_0x28535e,_0x344e64){const _0x8432=function(_0x3038f2){while(--_0x3038f2){_0x28535e['push'](_0x28535e['shift']());}};_0x8432(++_0x344e64);}(a488_0x344e,0x6d));const a488_0x8432=function(_0x28535e,_0x344e64){_0x28535e=_0x28535e-0x0;let _0x8432=a488_0x344e[_0x28535e];return _0x8432;};const _0x186df0=a488_0x8432;'use strict';const EventEmitter=require(_0x186df0('0x5')),OpenchannelMessage=require(_0x186df0('0x0'))['db'][_0x186df0('0x1')],OpenchannelMessageEvents=new EventEmitter();OpenchannelMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x186df0('0x6')};function emitEvent(_0x3038f2){return function(_0x6f521b){const _0x49b66a=a488_0x8432;OpenchannelMessageEvents[_0x49b66a('0x4')](_0x3038f2+':'+_0x6f521b['id'],_0x6f521b),OpenchannelMessageEvents[_0x49b66a('0x4')](_0x3038f2,_0x6f521b);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelMessage[_0x186df0('0x2')](e,emitEvent(event));}}module[_0x186df0('0x3')]=OpenchannelMessageEvents; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.model.js b/server/api/openchannelMessage/openchannelMessage.model.js index d1a3710..2469068 100644 --- a/server/api/openchannelMessage/openchannelMessage.model.js +++ b/server/api/openchannelMessage/openchannelMessage.model.js @@ -1 +1 @@ -const a489_0x3e4d=['direction','length','keys','Contact','info','OpenchannelAccountId','OpenchannelInteractionId','../../config/logger','omit','threadId','openchannel_messages','OpenchannelAccount','OpenchannelInteraction','toLowerCase','replyUri','catch','then','update','Interaction','inspect','afterCreate','define','secret','findOne','OpenchannelMessage','POST','GET','Forwarding\x20message\x20%d\x20to\x20%s','get','CmContact','exports','models','isNil','utf8mb4_unicode_ci','fti_openchannel_messages','error','method','OpenchannelMessage,\x20%s,\x20%s','body','format','lodash','Interactions','util','FULLTEXT','request-promise-native','out','finally','createdAt'];(function(_0x4afa9c,_0x3e4d47){const _0x5aec1a=function(_0xaad6a6){while(--_0xaad6a6){_0x4afa9c['push'](_0x4afa9c['shift']());}};_0x5aec1a(++_0x3e4d47);}(a489_0x3e4d,0x19d));const a489_0x5aec=function(_0x4afa9c,_0x3e4d47){_0x4afa9c=_0x4afa9c-0x0;let _0x5aec1a=a489_0x3e4d[_0x4afa9c];return _0x5aec1a;};const _0x7ca4c6=a489_0x5aec;'use strict';const _=require(_0x7ca4c6('0xb')),util=require(_0x7ca4c6('0xd')),logger=require(_0x7ca4c6('0x1a'))('api'),rp=require(_0x7ca4c6('0xf')),attributes=require('./openchannelMessage.attributes');module[_0x7ca4c6('0x1')]=function(_0xaad6a6){const _0x3e54c9=_0x7ca4c6,_0x3b77aa=_0xaad6a6[_0x3e54c9('0x2')],_0x191b12=_0xaad6a6[_0x3e54c9('0x28')](_0x3e54c9('0x2b'),attributes,{'tableName':_0x3e54c9('0x1d'),'paranoid':![],'indexes':[{'name':_0x3e54c9('0x5'),'fields':[_0x3e54c9('0x9')],'type':_0x3e54c9('0xe')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x42e876){const _0x454197=_0x3e54c9,_0x25365e=_0x42e876[_0x454197('0x2f')]({'plain':!![]});(_0x25365e['direction'][_0x454197('0x20')]()==='in'||_0x25365e[_0x454197('0x13')][_0x454197('0x20')]()===_0x454197('0x10')&&!_0x25365e[_0x454197('0x29')]&&!_[_0x454197('0x3')](_0x25365e['UserId']))&&_0x3b77aa[_0x454197('0x1f')][_0x454197('0x2a')]({'where':{'id':_0x25365e[_0x454197('0x19')]}})['then'](function(_0x6fdcc1){const _0x4e1da5=_0x454197;_0x6fdcc1&&_0x6fdcc1['update']({'lastMsgAt':_0x25365e[_0x4e1da5('0x12')],'lastMsgDirection':_0x25365e['direction']['toLowerCase']()});})[_0x454197('0x22')](function(_0xcb04ca){const _0x3da233=_0x454197;console[_0x3da233('0x6')](_0xcb04ca);});if(_0x25365e[_0x454197('0x13')]===_0x454197('0x10')&&!_0x25365e[_0x454197('0x29')]){let _0x40c1be;_0x3b77aa[_0x454197('0x0')]['describe']()[_0x454197('0x23')](function(_0x1950dd){const _0xee6ec4=_0x454197;return _0x3b77aa[_0xee6ec4('0x1e')]['findOne']({'where':{'id':_0x25365e[_0xee6ec4('0x18')]},'include':[{'model':_0x3b77aa[_0xee6ec4('0x1f')],'as':_0xee6ec4('0xc'),'where':{'id':_0x25365e[_0xee6ec4('0x19')]},'limit':0x1,'include':[{'model':_0x3b77aa[_0xee6ec4('0x0')],'as':'Contact','attributes':_[_0xee6ec4('0x15')](_0x1950dd)}]}]});})[_0x454197('0x23')](function(_0xa57905){const _0x4a79ac=_0x454197;_0x40c1be=_0xa57905[_0x4a79ac('0x2f')]({'plain':!![]});if(_0x40c1be&&_0x40c1be[_0x4a79ac('0x21')]){logger['info']('OpenchannelMessage,\x20%s,\x20%s','afterCreate',util[_0x4a79ac('0xa')](_0x4a79ac('0x2e'),_0x25365e['id'],_0x40c1be[_0x4a79ac('0x21')]));_0x40c1be[_0x4a79ac('0xc')]&&_0x40c1be['Interactions'][_0x4a79ac('0x14')]&&(_0x25365e[_0x4a79ac('0x25')]=_[_0x4a79ac('0x1b')](_0x40c1be[_0x4a79ac('0xc')][0x0],_0x4a79ac('0x16')),_0x25365e[_0x4a79ac('0x16')]=_0x40c1be['Interactions'][0x0]['Contact']);const _0x23b147={'method':_0x4a79ac('0x2c'),'uri':encodeURI(_0x40c1be[_0x4a79ac('0x21')]),'json':!![],'resolveWithFullResponse':!![]};switch(_0x23b147[_0x4a79ac('0x7')]){case _0x4a79ac('0x2d'):_0x23b147['qs']=_0x25365e;break;case _0x4a79ac('0x2c'):_0x23b147['body']=_0x25365e;break;}return rp(_0x23b147)[_0x4a79ac('0x23')](function(_0x482408){const _0x3a518f=_0x4a79ac;logger[_0x3a518f('0x17')]('OpenchannelMessage,\x20%s,\x20%s','afterCreate',util[_0x3a518f('0xa')]('Message\x20%d\x20forwarded\x20to\x20%s',_0x25365e['id'],_0x40c1be['replyUri']));if(_0x482408[_0x3a518f('0x9')]['threadId']&&_0x482408['body']['threadId']!=_0x25365e['Interaction']['threadId'])return _0x3b77aa['OpenchannelInteraction']['update']({'threadId':_0x482408['body'][_0x3a518f('0x1c')]},{'logging':!![],'where':{'id':_0x25365e[_0x3a518f('0x25')]['id']}});else return;})[_0x4a79ac('0x23')](function(){const _0x40cf77=_0x4a79ac;return _0x42e876[_0x40cf77('0x24')]({'read':!![]});})[_0x4a79ac('0x22')](function(_0x534433){const _0x523285=_0x4a79ac;logger['error'](_0x523285('0x8'),_0x523285('0x27'),util[_0x523285('0x26')](_0x534433,{'showHidden':![],'depth':null}));});}})[_0x454197('0x11')](function(){return null;});}else return null;}},'charset':'utf8mb4','collate':_0x3e54c9('0x4')});return _0x191b12;}; \ No newline at end of file +const a489_0x1c4d=['openchannel_messages','OpenchannelInteractionId','threadId','./openchannelMessage.attributes','error','inspect','direction','Interactions','format','replyUri','info','models','describe','toLowerCase','OpenchannelMessage','Contact','OpenchannelInteraction','fti_openchannel_messages','../../config/logger','OpenchannelAccountId','Message\x20%d\x20forwarded\x20to\x20%s','UserId','keys','define','isNil','secret','createdAt','then','POST','method','exports','OpenchannelMessage,\x20%s,\x20%s','get','out','finally','GET','body','utf8mb4','utf8mb4_unicode_ci','update','CmContact','api','afterCreate','catch','lodash','util','findOne'];(function(_0x254122,_0x1c4dab){const _0x504bc2=function(_0x21ff9d){while(--_0x21ff9d){_0x254122['push'](_0x254122['shift']());}};_0x504bc2(++_0x1c4dab);}(a489_0x1c4d,0x12d));const a489_0x504b=function(_0x254122,_0x1c4dab){_0x254122=_0x254122-0x0;let _0x504bc2=a489_0x1c4d[_0x254122];return _0x504bc2;};const _0x559bac=a489_0x504b;'use strict';const _=require(_0x559bac('0x19')),util=require(_0x559bac('0x1a')),logger=require(_0x559bac('0x2e'))(_0x559bac('0x16')),rp=require('request-promise-native'),attributes=require(_0x559bac('0x1f'));module[_0x559bac('0xb')]=function(_0x21ff9d){const _0x9eb2e=_0x559bac,_0x213fe3=_0x21ff9d[_0x9eb2e('0x27')],_0x15ab31=_0x21ff9d[_0x9eb2e('0x4')](_0x9eb2e('0x2a'),attributes,{'tableName':_0x9eb2e('0x1c'),'paranoid':![],'indexes':[{'name':_0x9eb2e('0x2d'),'fields':[_0x9eb2e('0x11')],'type':'FULLTEXT'}],'timestamps':!![],'hooks':{'afterCreate':function(_0xfe8aee){const _0x1fb27d=_0x9eb2e,_0x3da4c3=_0xfe8aee[_0x1fb27d('0xd')]({'plain':!![]});(_0x3da4c3[_0x1fb27d('0x22')][_0x1fb27d('0x29')]()==='in'||_0x3da4c3['direction'][_0x1fb27d('0x29')]()==='out'&&!_0x3da4c3[_0x1fb27d('0x6')]&&!_[_0x1fb27d('0x5')](_0x3da4c3[_0x1fb27d('0x2')]))&&_0x213fe3[_0x1fb27d('0x2c')][_0x1fb27d('0x1b')]({'where':{'id':_0x3da4c3[_0x1fb27d('0x1d')]}})[_0x1fb27d('0x8')](function(_0x301511){const _0x160510=_0x1fb27d;_0x301511&&_0x301511['update']({'lastMsgAt':_0x3da4c3[_0x160510('0x7')],'lastMsgDirection':_0x3da4c3[_0x160510('0x22')][_0x160510('0x29')]()});})[_0x1fb27d('0x18')](function(_0xf94aca){console['error'](_0xf94aca);});if(_0x3da4c3[_0x1fb27d('0x22')]===_0x1fb27d('0xe')&&!_0x3da4c3[_0x1fb27d('0x6')]){let _0x31a015;_0x213fe3[_0x1fb27d('0x15')][_0x1fb27d('0x28')]()[_0x1fb27d('0x8')](function(_0x50d29b){const _0x35d469=_0x1fb27d;return _0x213fe3['OpenchannelAccount'][_0x35d469('0x1b')]({'where':{'id':_0x3da4c3[_0x35d469('0x0')]},'include':[{'model':_0x213fe3['OpenchannelInteraction'],'as':_0x35d469('0x23'),'where':{'id':_0x3da4c3['OpenchannelInteractionId']},'limit':0x1,'include':[{'model':_0x213fe3['CmContact'],'as':_0x35d469('0x2b'),'attributes':_[_0x35d469('0x3')](_0x50d29b)}]}]});})[_0x1fb27d('0x8')](function(_0x21aa5d){const _0xe911aa=_0x1fb27d;_0x31a015=_0x21aa5d['get']({'plain':!![]});if(_0x31a015&&_0x31a015[_0xe911aa('0x25')]){logger[_0xe911aa('0x26')](_0xe911aa('0xc'),_0xe911aa('0x17'),util[_0xe911aa('0x24')]('Forwarding\x20message\x20%d\x20to\x20%s',_0x3da4c3['id'],_0x31a015['replyUri']));_0x31a015['Interactions']&&_0x31a015['Interactions']['length']&&(_0x3da4c3['Interaction']=_['omit'](_0x31a015[_0xe911aa('0x23')][0x0],_0xe911aa('0x2b')),_0x3da4c3['Contact']=_0x31a015['Interactions'][0x0][_0xe911aa('0x2b')]);const _0x5d9cdf={'method':_0xe911aa('0x9'),'uri':encodeURI(_0x31a015[_0xe911aa('0x25')]),'json':!![],'resolveWithFullResponse':!![]};switch(_0x5d9cdf[_0xe911aa('0xa')]){case _0xe911aa('0x10'):_0x5d9cdf['qs']=_0x3da4c3;break;case _0xe911aa('0x9'):_0x5d9cdf[_0xe911aa('0x11')]=_0x3da4c3;break;}return rp(_0x5d9cdf)['then'](function(_0x57deb6){const _0x36ccb5=_0xe911aa;logger[_0x36ccb5('0x26')](_0x36ccb5('0xc'),'afterCreate',util['format'](_0x36ccb5('0x1'),_0x3da4c3['id'],_0x31a015['replyUri']));if(_0x57deb6[_0x36ccb5('0x11')][_0x36ccb5('0x1e')]&&_0x57deb6[_0x36ccb5('0x11')][_0x36ccb5('0x1e')]!=_0x3da4c3['Interaction'][_0x36ccb5('0x1e')])return _0x213fe3[_0x36ccb5('0x2c')]['update']({'threadId':_0x57deb6['body'][_0x36ccb5('0x1e')]},{'logging':!![],'where':{'id':_0x3da4c3['Interaction']['id']}});else return;})[_0xe911aa('0x8')](function(){const _0x5b0ec1=_0xe911aa;return _0xfe8aee[_0x5b0ec1('0x14')]({'read':!![]});})[_0xe911aa('0x18')](function(_0x58c75e){const _0x2ee7a4=_0xe911aa;logger[_0x2ee7a4('0x20')](_0x2ee7a4('0xc'),_0x2ee7a4('0x17'),util[_0x2ee7a4('0x21')](_0x58c75e,{'showHidden':![],'depth':null}));});}})[_0x1fb27d('0xf')](function(){return null;});}else return null;}},'charset':_0x9eb2e('0x12'),'collate':_0x9eb2e('0x13')});return _0x15ab31;}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.rpc.js b/server/api/openchannelMessage/openchannelMessage.rpc.js index 9b1feef..478c9e1 100644 --- a/server/api/openchannelMessage/openchannelMessage.rpc.js +++ b/server/api/openchannelMessage/openchannelMessage.rpc.js @@ -1 +1 @@ -const a490_0x4a88=['error','../../config/logger','body','debug','info','create','options','register','OpenchannelMessage','./openchannelMessage.socket','then','stringify','catch','rpc','message','CreateOpenchannelMessage'];(function(_0x248403,_0x4a88eb){const _0x6d88ec=function(_0x3169d4){while(--_0x3169d4){_0x248403['push'](_0x248403['shift']());}};_0x6d88ec(++_0x4a88eb);}(a490_0x4a88,0x1d2));const a490_0x6d88=function(_0x248403,_0x4a88eb){_0x248403=_0x248403-0x0;let _0x6d88ec=a490_0x4a88[_0x248403];return _0x6d88ec;};const _0x191b4e=a490_0x6d88;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x191b4e('0xf'))(_0x191b4e('0xb')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x191b4e('0x7'))[_0x191b4e('0x5')](socket),exports[_0x191b4e('0xd')]=function(_0x3169d4){const _0xd61b45=this;return new Promise(function(_0xffe634,_0x418f4a){const _0x270b7e=a490_0x6d88;return db[_0x270b7e('0x6')][_0x270b7e('0x3')](_0x3169d4[_0x270b7e('0x0')],{'raw':_0x3169d4[_0x270b7e('0x4')]?_0x3169d4['options']['raw']===undefined?!![]:![]:!![]})[_0x270b7e('0x8')](function(_0xf2bddc){const _0x18bc69=_0x270b7e;logger[_0x18bc69('0x2')]('CreateOpenchannelMessage',_0x3169d4),logger[_0x18bc69('0x1')](_0x18bc69('0xd'),_0x3169d4,JSON[_0x18bc69('0x9')](_0xf2bddc)),_0xffe634(_0xf2bddc);})[_0x270b7e('0xa')](function(_0x2ee0a5){const _0x289e6c=_0x270b7e;logger[_0x289e6c('0xe')](_0x289e6c('0xd'),_0x2ee0a5['message'],_0x3169d4),_0x418f4a(_0xd61b45[_0x289e6c('0xe')](0x1f4,_0x2ee0a5[_0x289e6c('0xc')]));});});}; \ No newline at end of file +const a490_0x3dcf=['error','create','raw','register','CreateOpenchannelMessage','./openchannelMessage.socket','stringify','debug','options','../../mysqldb','message','OpenchannelMessage','body'];(function(_0x2a0e8a,_0x3dcfd8){const _0x172514=function(_0x5eafc4){while(--_0x5eafc4){_0x2a0e8a['push'](_0x2a0e8a['shift']());}};_0x172514(++_0x3dcfd8);}(a490_0x3dcf,0x139));const a490_0x1725=function(_0x2a0e8a,_0x3dcfd8){_0x2a0e8a=_0x2a0e8a-0x0;let _0x172514=a490_0x3dcf[_0x2a0e8a];return _0x172514;};const _0x183226=a490_0x1725;'use strict';const db=require(_0x183226('0x8'))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x183226('0x4'))[_0x183226('0x2')](socket),exports['CreateOpenchannelMessage']=function(_0x5eafc4){const _0x211448=this;return new Promise(function(_0x595fd2,_0x4b9d0e){const _0x230bca=a490_0x1725;return db[_0x230bca('0xa')][_0x230bca('0x0')](_0x5eafc4[_0x230bca('0xb')],{'raw':_0x5eafc4['options']?_0x5eafc4[_0x230bca('0x7')][_0x230bca('0x1')]===undefined?!![]:![]:!![]})['then'](function(_0x59b603){const _0x3157a5=_0x230bca;logger['info'](_0x3157a5('0x3'),_0x5eafc4),logger[_0x3157a5('0x6')](_0x3157a5('0x3'),_0x5eafc4,JSON[_0x3157a5('0x5')](_0x59b603)),_0x595fd2(_0x59b603);})['catch'](function(_0x46ddae){const _0x49edc7=_0x230bca;logger[_0x49edc7('0xc')](_0x49edc7('0x3'),_0x46ddae[_0x49edc7('0x9')],_0x5eafc4),_0x4b9d0e(_0x211448[_0x49edc7('0xc')](0x1f4,_0x46ddae['message']));});});}; \ No newline at end of file diff --git a/server/api/openchannelMessage/openchannelMessage.socket.js b/server/api/openchannelMessage/openchannelMessage.socket.js index 3c37222..6076628 100644 --- a/server/api/openchannelMessage/openchannelMessage.socket.js +++ b/server/api/openchannelMessage/openchannelMessage.socket.js @@ -1 +1 @@ -const a491_0x7f95=['update','emit','remove','openchannelMessage:','register','./openchannelMessage.events','save','length'];(function(_0x1f5b28,_0x7f9566){const _0x573da2=function(_0x2f4f29){while(--_0x2f4f29){_0x1f5b28['push'](_0x1f5b28['shift']());}};_0x573da2(++_0x7f9566);}(a491_0x7f95,0x185));const a491_0x573d=function(_0x1f5b28,_0x7f9566){_0x1f5b28=_0x1f5b28-0x0;let _0x573da2=a491_0x7f95[_0x1f5b28];return _0x573da2;};const _0x208986=a491_0x573d;'use strict';const OpenchannelMessageEvents=require(_0x208986('0x0')),events=[_0x208986('0x1'),_0x208986('0x5'),_0x208986('0x3')];function createListener(_0x2f4f29,_0x4bf72f){return function(_0x293656){const _0x2a46d1=a491_0x573d;_0x4bf72f[_0x2a46d1('0x4')](_0x2f4f29,_0x293656);};}exports[_0x208986('0x7')]=function(_0x5568a5){const _0x122cf9=_0x208986;for(let _0x122e64=0x0,_0x44aadf=events[_0x122cf9('0x2')];_0x122e64<_0x44aadf;_0x122e64++){const _0x17bbbc=events[_0x122e64],_0x56245e=createListener(_0x122cf9('0x6')+_0x17bbbc,_0x5568a5);OpenchannelMessageEvents['on'](_0x17bbbc,_0x56245e);}}; \ No newline at end of file +const a491_0x5b87=['register','openchannelMessage:','./openchannelMessage.events','remove','emit','length'];(function(_0x569150,_0x5b8700){const _0x1e0120=function(_0x4d281e){while(--_0x4d281e){_0x569150['push'](_0x569150['shift']());}};_0x1e0120(++_0x5b8700);}(a491_0x5b87,0xd1));const a491_0x1e01=function(_0x569150,_0x5b8700){_0x569150=_0x569150-0x0;let _0x1e0120=a491_0x5b87[_0x569150];return _0x1e0120;};const _0x3cc440=a491_0x1e01;'use strict';const OpenchannelMessageEvents=require(_0x3cc440('0x3')),events=['save',_0x3cc440('0x4'),'update'];function createListener(_0x4d281e,_0x2e2fca){return function(_0x5ddda5){const _0x27b684=a491_0x1e01;_0x2e2fca[_0x27b684('0x5')](_0x4d281e,_0x5ddda5);};}exports[_0x3cc440('0x1')]=function(_0x5e1fd8){const _0x38adfd=_0x3cc440;for(let _0x1eeee1=0x0,_0x6f30e1=events[_0x38adfd('0x0')];_0x1eeee1<_0x6f30e1;_0x1eeee1++){const _0x32492f=events[_0x1eeee1],_0x2cf0c3=createListener(_0x38adfd('0x2')+_0x32492f,_0x5e1fd8);OpenchannelMessageEvents['on'](_0x32492f,_0x2cf0c3);}}; \ No newline at end of file diff --git a/server/api/openchannelQueue/index.js b/server/api/openchannelQueue/index.js index ec9ae91..ebac7e4 100644 --- a/server/api/openchannelQueue/index.js +++ b/server/api/openchannelQueue/index.js @@ -1 +1 @@ -const a492_0x2669=['describe','/:id/members','index','removeTeams','put','/:id/users','addAgents','getAgents','create','get','./openchannelQueue.controller','/:id','update','delete','post','/:id/teams','isAuthenticated','getMembers','show','getTeams','removeAgents'];(function(_0x1730a2,_0x266965){const _0xf5bd72=function(_0x4b2256){while(--_0x4b2256){_0x1730a2['push'](_0x1730a2['shift']());}};_0xf5bd72(++_0x266965);}(a492_0x2669,0x1f2));const a492_0xf5bd=function(_0x1730a2,_0x266965){_0x1730a2=_0x1730a2-0x0;let _0xf5bd72=a492_0x2669[_0x1730a2];return _0xf5bd72;};const _0x41523b=a492_0xf5bd;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x41523b('0x10'));router[_0x41523b('0xf')]('/',auth[_0x41523b('0x1')](),controller[_0x41523b('0x8')]),router[_0x41523b('0xf')]('/describe',auth[_0x41523b('0x1')](),controller[_0x41523b('0x6')]),router[_0x41523b('0xf')](_0x41523b('0x11'),auth[_0x41523b('0x1')](),controller[_0x41523b('0x3')]),router[_0x41523b('0xf')](_0x41523b('0x7'),auth[_0x41523b('0x1')](),controller[_0x41523b('0x2')]),router['get'](_0x41523b('0x0'),auth[_0x41523b('0x1')](),controller[_0x41523b('0x4')]),router['get'](_0x41523b('0xb'),auth[_0x41523b('0x1')](),controller[_0x41523b('0xd')]),router[_0x41523b('0x14')]('/',auth[_0x41523b('0x1')](),controller[_0x41523b('0xe')]),router['post'](_0x41523b('0x0'),auth[_0x41523b('0x1')](),controller['addTeams']),router[_0x41523b('0x14')]('/:id/users',auth[_0x41523b('0x1')](),controller[_0x41523b('0xc')]),router[_0x41523b('0xa')]('/:id',auth[_0x41523b('0x1')](),controller[_0x41523b('0x12')]),router[_0x41523b('0x13')]('/:id',auth['isAuthenticated'](),controller['destroy']),router[_0x41523b('0x13')]('/:id/teams',auth[_0x41523b('0x1')](),controller[_0x41523b('0x9')]),router['delete']('/:id/users',auth[_0x41523b('0x1')](),controller[_0x41523b('0x5')]),module['exports']=router; \ No newline at end of file +const a492_0x45f9=['/:id/members','addTeams','isAuthenticated','delete','destroy','index','put','/:id/users','./openchannelQueue.controller','/:id','/:id/teams','express','update','describe','post','addAgents','getAgents','../../components/auth/service','removeTeams','get'];(function(_0xdc28e7,_0x45f98e){const _0x441610=function(_0x33999d){while(--_0x33999d){_0xdc28e7['push'](_0xdc28e7['shift']());}};_0x441610(++_0x45f98e);}(a492_0x45f9,0xd1));const a492_0x4416=function(_0xdc28e7,_0x45f98e){_0xdc28e7=_0xdc28e7-0x0;let _0x441610=a492_0x45f9[_0xdc28e7];return _0x441610;};const _0x5ebb0e=a492_0x4416;'use strict';const express=require(_0x5ebb0e('0x2')),router=express['Router'](),auth=require(_0x5ebb0e('0x8')),controller=require(_0x5ebb0e('0x13'));router[_0x5ebb0e('0xa')]('/',auth[_0x5ebb0e('0xd')](),controller[_0x5ebb0e('0x10')]),router[_0x5ebb0e('0xa')]('/describe',auth['isAuthenticated'](),controller[_0x5ebb0e('0x4')]),router[_0x5ebb0e('0xa')](_0x5ebb0e('0x0'),auth[_0x5ebb0e('0xd')](),controller['show']),router[_0x5ebb0e('0xa')](_0x5ebb0e('0xb'),auth[_0x5ebb0e('0xd')](),controller['getMembers']),router['get'](_0x5ebb0e('0x1'),auth['isAuthenticated'](),controller['getTeams']),router[_0x5ebb0e('0xa')](_0x5ebb0e('0x12'),auth[_0x5ebb0e('0xd')](),controller[_0x5ebb0e('0x7')]),router[_0x5ebb0e('0x5')]('/',auth[_0x5ebb0e('0xd')](),controller['create']),router[_0x5ebb0e('0x5')](_0x5ebb0e('0x1'),auth['isAuthenticated'](),controller[_0x5ebb0e('0xc')]),router['post'](_0x5ebb0e('0x12'),auth[_0x5ebb0e('0xd')](),controller[_0x5ebb0e('0x6')]),router[_0x5ebb0e('0x11')](_0x5ebb0e('0x0'),auth[_0x5ebb0e('0xd')](),controller[_0x5ebb0e('0x3')]),router[_0x5ebb0e('0xe')](_0x5ebb0e('0x0'),auth[_0x5ebb0e('0xd')](),controller[_0x5ebb0e('0xf')]),router[_0x5ebb0e('0xe')]('/:id/teams',auth['isAuthenticated'](),controller[_0x5ebb0e('0x9')]),router['delete'](_0x5ebb0e('0x12'),auth[_0x5ebb0e('0xd')](),controller['removeAgents']),module['exports']=router; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.attributes.js b/server/api/openchannelQueue/openchannelQueue.attributes.js index 577e311..f447df8 100644 --- a/server/api/openchannelQueue/openchannelQueue.attributes.js +++ b/server/api/openchannelQueue/openchannelQueue.attributes.js @@ -1 +1 @@ -const a493_0x1374=['beepall','roundrobin','STRING','exports','sequelize','INTEGER'];(function(_0x59c82f,_0x1374f0){const _0xa7e966=function(_0x22b025){while(--_0x22b025){_0x59c82f['push'](_0x59c82f['shift']());}};_0xa7e966(++_0x1374f0);}(a493_0x1374,0x105));const a493_0xa7e9=function(_0x59c82f,_0x1374f0){_0x59c82f=_0x59c82f-0x0;let _0xa7e966=a493_0x1374[_0x59c82f];return _0xa7e966;};const _0x5dde14=a493_0xa7e9;'use strict';const Sequelize=require(_0x5dde14('0x1'));module[_0x5dde14('0x0')]={'name':{'type':Sequelize[_0x5dde14('0x5')],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x5dde14('0x5')]},'timeout':{'type':Sequelize[_0x5dde14('0x2')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize['ENUM']('rrmemory',_0x5dde14('0x3'),_0x5dde14('0x4'))}}; \ No newline at end of file +const a493_0x4e04=['sequelize','rrmemory','roundrobin','ENUM','exports','beepall'];(function(_0x130196,_0x4e0469){const _0x408864=function(_0x73cdc2){while(--_0x73cdc2){_0x130196['push'](_0x130196['shift']());}};_0x408864(++_0x4e0469);}(a493_0x4e04,0xc1));const a493_0x4088=function(_0x130196,_0x4e0469){_0x130196=_0x130196-0x0;let _0x408864=a493_0x4e04[_0x130196];return _0x408864;};const _0xede748=a493_0x4088;'use strict';const Sequelize=require(_0xede748('0x5'));module[_0xede748('0x3')]={'name':{'type':Sequelize['STRING'],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize['STRING']},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0xede748('0x2')](_0xede748('0x0'),_0xede748('0x4'),_0xede748('0x1'))}}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.controller.js b/server/api/openchannelQueue/openchannelQueue.controller.js index 4294ed2..40d0fa4 100644 --- a/server/api/openchannelQueue/openchannelQueue.controller.js +++ b/server/api/openchannelQueue/openchannelQueue.controller.js @@ -1 +1 @@ -const a494_0x54e6=['emit','clone','squel','each','model','addAgents','query','attributes','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','error','Agents','OpenchannelQueue','%s/%s','voicePause','team_has_openchannel_queues','filters','end','rows','toString','findOne','select','show','user','includeAll','catch','online','autoAssociation','update','getAgents','findAll','UserProfileSection','pick','OpenchannelQueueId','type','openchannelPause','sendStatus','getMembers','Team','offset','ids','userOpenchannelQueue:remove','../../components/parsers/qs','like','TeamId','map','omit','join','index','findAndCountAll','User','length','filter','describe','userOpenchannelQueue:save','UserId','../../config/logger','../../mysqldb','sort','field','findOrCreate','getTeams','status','createdAt','SELECT','ut.UserId\x20=\x20?','updatedAt','limit','tq.TeamId','options','Content-Range','intersection','isArray','nolimit','keys','destroy','includes','util','user_has_teams','transaction','send','api','forEach','body','rawAttributes','undefined','removeTeams','key','then','create','params','merge','lodash','include','name','order','union','interface','agent','fields','removeAgents','SIP','ut.TeamId\x20=\x20tq.TeamId','where','stack','fieldName','count','get','all','UserOpenchannelQueue','sequelize','addTeams'];(function(_0x103acd,_0x54e666){const _0xbdf9af=function(_0x343b82){while(--_0x343b82){_0x103acd['push'](_0x103acd['shift']());}};_0xbdf9af(++_0x54e666);}(a494_0x54e6,0xa0));const a494_0xbdf9=function(_0x103acd,_0x54e666){_0x103acd=_0x103acd-0x0;let _0xbdf9af=a494_0x54e6[_0x103acd];return _0xbdf9af;};const _0x3fc7c6=a494_0xbdf9;'use strict';const util=require(_0x3fc7c6('0x1b')),_=require(_0x3fc7c6('0x2a')),squel=require(_0x3fc7c6('0x40')),qs=require(_0x3fc7c6('0x67')),logger=require(_0x3fc7c6('0x6'))(_0x3fc7c6('0x1f')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x3fc7c6('0x7'))['db'],{Op,QueryTypes}=require(_0x3fc7c6('0x3c'));require('./openchannelQueue.socket')['register'](socket);function respondWithStatusCode(_0x343b82,_0x88380c){return _0x88380c=_0x88380c||0xcc,function(_0x45a563){const _0x36421a=a494_0xbdf9;if(_0x45a563)return _0x343b82[_0x36421a('0x61')](_0x88380c);return _0x343b82[_0x36421a('0xc')](_0x88380c)['end']();};}function respondWithResult(_0x4f438f,_0xc63ea1){return _0xc63ea1=_0xc63ea1||0xc8,function(_0x49c364){const _0x522642=a494_0xbdf9;if(_0x49c364)return _0x4f438f[_0x522642('0xc')](_0xc63ea1)['json'](_0x49c364);};}function respondWithFilteredResult(_0x3d0379,_0x5d043d){return function(_0x5c8bc2){const _0x46e81d=a494_0xbdf9;if(_0x5c8bc2){const _0x381090=_0x5c8bc2['count'],_0x4d496b=_0x5d043d[_0x46e81d('0x64')];let _0x1ef61e=_0x5d043d[_0x46e81d('0x64')]+_0x5d043d['limit'],_0x2b7af9;return _0x1ef61e>=_0x381090?(_0x1ef61e=_0x381090,_0x2b7af9=0xc8):_0x2b7af9=0xce,_0x3d0379[_0x46e81d('0xc')](_0x2b7af9),_0x3d0379['set'](_0x46e81d('0x14'),_0x4d496b+'-'+_0x1ef61e+'/'+_0x381090)['json'](_0x5c8bc2);}return null;};}function saveUpdates(_0x5709d0){return function(_0x582990){const _0x4ec3ea=a494_0xbdf9;if(_0x582990)return _0x582990[_0x4ec3ea('0x59')](_0x5709d0)['then'](function(_0x47eef1){return _0x47eef1;});return null;};}function removeEntity(_0x2be244){return function(_0x143431){const _0xee4a6e=a494_0xbdf9;if(_0x143431)return _0x143431['destroy']()[_0xee4a6e('0x26')](function(){const _0x2bc6ff=_0xee4a6e,_0x382cee=_0x143431[_0x2bc6ff('0x39')]({'plain':!![]}),_0x341a03='OpenchannelQueues';return db['UserProfileResource'][_0x2bc6ff('0x19')]({'where':{'type':_0x341a03,'resourceId':_0x382cee['id']}})['then'](function(){return _0x143431;});})[_0xee4a6e('0x26')](function(){const _0xdf4226=_0xee4a6e;_0x2be244[_0xdf4226('0xc')](0xcc)[_0xdf4226('0x4e')]();});};}function handleEntityNotFound(_0x27000d){return function(_0x385fdb){return!_0x385fdb&&_0x27000d['sendStatus'](0x194),_0x385fdb;};}function handleError(_0x13cd7c,_0x5722d4){return _0x5722d4=_0x5722d4||0x1f4,function(_0x5307b6){const _0x547627=a494_0xbdf9;logger[_0x547627('0x47')](_0x5307b6[_0x547627('0x36')]),_0x5307b6['name']&&delete _0x5307b6['name'],_0x13cd7c[_0x547627('0xc')](_0x5722d4)[_0x547627('0x1e')](_0x5307b6);};}exports[_0x3fc7c6('0x6d')]=function(_0x1e31d6,_0xe5f94f){const _0x3ecb5d=_0x3fc7c6;let _0xa21756={};const _0x1bc441={},_0x581e0e={'count':0x0,'rows':[]},_0x4bf9f0=_[_0x3ecb5d('0x6a')](db[_0x3ecb5d('0x49')][_0x3ecb5d('0x22')],function(_0x1e60f5){const _0x39f512=_0x3ecb5d;return{'name':_0x1e60f5[_0x39f512('0x37')],'type':_0x1e60f5['type'][_0x39f512('0x25')]};});_0x1bc441[_0x3ecb5d('0x42')]=_[_0x3ecb5d('0x6a')](_0x4bf9f0,_0x3ecb5d('0x2c')),_0x1bc441[_0x3ecb5d('0x44')]=_[_0x3ecb5d('0x18')](_0x1e31d6['query']),_0x1bc441[_0x3ecb5d('0x4d')]=_[_0x3ecb5d('0x15')](_0x1bc441[_0x3ecb5d('0x42')],_0x1bc441[_0x3ecb5d('0x44')]),_0xa21756['attributes']=_[_0x3ecb5d('0x15')](_0x1bc441[_0x3ecb5d('0x42')],qs[_0x3ecb5d('0x31')](_0x1e31d6[_0x3ecb5d('0x44')][_0x3ecb5d('0x31')])),_0xa21756[_0x3ecb5d('0x45')]=_0xa21756['attributes']['length']?_0xa21756['attributes']:_0x1bc441['model'];typeof _0x1e31d6[_0x3ecb5d('0x44')]['nolimit']===_0x3ecb5d('0x23')&&(_0xa21756[_0x3ecb5d('0x11')]=qs['limit'](_0x1e31d6[_0x3ecb5d('0x44')][_0x3ecb5d('0x11')]),_0xa21756[_0x3ecb5d('0x64')]=qs[_0x3ecb5d('0x64')](_0x1e31d6[_0x3ecb5d('0x44')]['offset']));_0xa21756['order']=qs['sort'](_0x1e31d6['query'][_0x3ecb5d('0x8')]),_0xa21756[_0x3ecb5d('0x35')]=qs['filters'](_['pick'](_0x1e31d6[_0x3ecb5d('0x44')],_0x1bc441[_0x3ecb5d('0x4d')]),_0x4bf9f0);_0x1e31d6['query']['filter']&&(_0xa21756[_0x3ecb5d('0x35')]=_[_0x3ecb5d('0x29')](_0xa21756['where'],{[Op['or']]:_[_0x3ecb5d('0x6a')](_0x4bf9f0,function(_0x14e871){const _0x1a0d2d=_0x3ecb5d;if(_0x14e871[_0x1a0d2d('0x5f')]!=='VIRTUAL'){const _0x225547={};return _0x225547[_0x14e871[_0x1a0d2d('0x2c')]]={[Op['like']]:'%'+_0x1e31d6[_0x1a0d2d('0x44')][_0x1a0d2d('0x2')]+'%'},_0x225547;}})}));_0xa21756=_[_0x3ecb5d('0x29')]({},_0xa21756,_0x1e31d6['options']);const _0x155502={'where':_0xa21756[_0x3ecb5d('0x35')]};return db[_0x3ecb5d('0x49')][_0x3ecb5d('0x38')](_0x155502)[_0x3ecb5d('0x26')](function(_0x2a2c17){const _0x4d132f=_0x3ecb5d;return _0x581e0e[_0x4d132f('0x38')]=_0x2a2c17,_0x1e31d6['query'][_0x4d132f('0x55')]&&(_0xa21756[_0x4d132f('0x2b')]=[{'all':!![]}]),db['OpenchannelQueue'][_0x4d132f('0x5b')](_0xa21756);})[_0x3ecb5d('0x26')](function(_0x23e2c4){return _0x581e0e['rows']=_0x23e2c4,_0x581e0e;})[_0x3ecb5d('0x26')](respondWithFilteredResult(_0xe5f94f,_0xa21756))['catch'](handleError(_0xe5f94f,null));},exports[_0x3fc7c6('0x53')]=function(_0x1bb731,_0x456b12){const _0xd424b1=_0x3fc7c6;let _0x2fd3d1={'raw':!![],'where':{'id':_0x1bb731[_0xd424b1('0x28')]['id']}};const _0x1901fe={};return _0x1901fe[_0xd424b1('0x42')]=_[_0xd424b1('0x18')](db[_0xd424b1('0x49')]['rawAttributes']),_0x1901fe['query']=_[_0xd424b1('0x18')](_0x1bb731[_0xd424b1('0x44')]),_0x1901fe[_0xd424b1('0x4d')]=_[_0xd424b1('0x15')](_0x1901fe['model'],_0x1901fe[_0xd424b1('0x44')]),_0x2fd3d1[_0xd424b1('0x45')]=_[_0xd424b1('0x15')](_0x1901fe['model'],qs[_0xd424b1('0x31')](_0x1bb731[_0xd424b1('0x44')]['fields'])),_0x2fd3d1['attributes']=_0x2fd3d1['attributes'][_0xd424b1('0x1')]?_0x2fd3d1[_0xd424b1('0x45')]:_0x1901fe[_0xd424b1('0x42')],_0x1bb731['query'][_0xd424b1('0x55')]&&(_0x2fd3d1[_0xd424b1('0x2b')]=[{'all':!![]}]),_0x2fd3d1=_[_0xd424b1('0x29')]({},_0x2fd3d1,_0x1bb731[_0xd424b1('0x13')]),db[_0xd424b1('0x49')]['findOne'](_0x2fd3d1)[_0xd424b1('0x26')](handleEntityNotFound(_0x456b12,null))['then'](respondWithResult(_0x456b12,null))['catch'](handleError(_0x456b12,null));},exports[_0x3fc7c6('0x27')]=function(_0x50d77b,_0x340950){const _0x354f09=_0x3fc7c6;return db[_0x354f09('0x49')][_0x354f09('0x27')](_0x50d77b[_0x354f09('0x21')],{})[_0x354f09('0x26')](function(_0x4da3ce){const _0x35578b=_0x354f09,_0x489715=_0x50d77b[_0x35578b('0x54')][_0x35578b('0x39')]({'plain':!![]});if(!_0x489715)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x489715['role']===_0x35578b('0x54')){const _0x4cc5a7=_0x4da3ce[_0x35578b('0x39')]({'plain':!![]}),_0x3f3456='OpenchannelQueues';return db[_0x35578b('0x5c')][_0x35578b('0x51')]({'where':{'name':_0x3f3456,'userProfileId':_0x489715['userProfileId']},'raw':!![]})['then'](function(_0x2f6a0e){const _0x5ab247=_0x35578b;return _0x2f6a0e&&_0x2f6a0e[_0x5ab247('0x58')]===0x0?db['UserProfileResource']['create']({'name':_0x4cc5a7['name'],'resourceId':_0x4cc5a7['id'],'type':_0x2f6a0e[_0x5ab247('0x2c')],'sectionId':_0x2f6a0e['id']},{})['then'](function(){return _0x4da3ce;}):_0x4da3ce;})['catch'](function(_0x11516a){const _0x567a52=_0x35578b;logger[_0x567a52('0x47')](_0x567a52('0x46'),_0x11516a);throw _0x11516a;});}return _0x4da3ce;})[_0x354f09('0x26')](respondWithResult(_0x340950,0xc9))[_0x354f09('0x56')](handleError(_0x340950,null));},exports[_0x3fc7c6('0x59')]=function(_0x1f3c48,_0x7ebc7e){const _0x3e3336=_0x3fc7c6;return _0x1f3c48[_0x3e3336('0x21')]['id']&&delete _0x1f3c48['body']['id'],db[_0x3e3336('0x49')][_0x3e3336('0x51')]({'where':{'id':_0x1f3c48[_0x3e3336('0x28')]['id']}})[_0x3e3336('0x26')](handleEntityNotFound(_0x7ebc7e,null))[_0x3e3336('0x26')](saveUpdates(_0x1f3c48[_0x3e3336('0x21')],null))[_0x3e3336('0x26')](respondWithResult(_0x7ebc7e,null))[_0x3e3336('0x56')](handleError(_0x7ebc7e,null));},exports[_0x3fc7c6('0x19')]=function(_0x36c6de,_0x5e0db4){const _0x4bea2a=_0x3fc7c6;return db['OpenchannelQueue'][_0x4bea2a('0x51')]({'where':{'id':_0x36c6de[_0x4bea2a('0x28')]['id']}})[_0x4bea2a('0x26')](handleEntityNotFound(_0x5e0db4,null))[_0x4bea2a('0x26')](removeEntity(_0x5e0db4,null))[_0x4bea2a('0x56')](handleError(_0x5e0db4,null));},exports[_0x3fc7c6('0x3')]=function(_0xc8a5ad,_0x5527c4){const _0x109df9=_0x3fc7c6;return db[_0x109df9('0x49')][_0x109df9('0x3')]()['then'](respondWithResult(_0x5527c4,null))[_0x109df9('0x56')](handleError(_0x5527c4,null));},exports[_0x3fc7c6('0x62')]=function(_0x594b11,_0x401b29){const _0x2ba680=_0x3fc7c6;let _0x11c183={'raw':!![],'where':{}};const _0x55c2b8={};let _0x286d64;return db['OpenchannelQueue'][_0x2ba680('0x51')]({'where':{'id':_0x594b11['params']['id']}})[_0x2ba680('0x26')](handleEntityNotFound(_0x401b29,null))[_0x2ba680('0x26')](function(_0xdbe7f){const _0x37407e=_0x2ba680;if(_0xdbe7f)return _0x286d64=_0xdbe7f[_0x37407e('0x39')]({'plain':!![]}),_0x55c2b8['model']=_[_0x37407e('0x18')](db[_0x37407e('0x3b')]['rawAttributes']),_0x55c2b8[_0x37407e('0x44')]=_[_0x37407e('0x18')](_0x594b11[_0x37407e('0x44')]),_0x55c2b8[_0x37407e('0x4d')]=_['intersection'](_0x55c2b8['model'],_0x55c2b8[_0x37407e('0x44')]),_0x11c183[_0x37407e('0x45')]=_[_0x37407e('0x15')](_0x55c2b8[_0x37407e('0x42')],qs[_0x37407e('0x31')](_0x594b11[_0x37407e('0x44')][_0x37407e('0x31')])),_0x11c183['attributes']=_0x11c183[_0x37407e('0x45')][_0x37407e('0x1')]?_0x11c183[_0x37407e('0x45')]:_0x55c2b8[_0x37407e('0x42')],typeof _0x594b11[_0x37407e('0x44')][_0x37407e('0x17')]===_0x37407e('0x23')&&(_0x11c183['limit']=qs['limit'](_0x594b11['query'][_0x37407e('0x11')]),_0x11c183['offset']=qs[_0x37407e('0x64')](_0x594b11[_0x37407e('0x44')][_0x37407e('0x64')])),_0x11c183[_0x37407e('0x2d')]=qs[_0x37407e('0x8')](_0x594b11[_0x37407e('0x44')][_0x37407e('0x8')]),_0x11c183['where']=qs[_0x37407e('0x4d')](_[_0x37407e('0x5d')](_0x594b11[_0x37407e('0x44')],_0x55c2b8[_0x37407e('0x4d')])),_0x11c183[_0x37407e('0x35')][_0x37407e('0x5e')]=_0xdbe7f['id'],_0x594b11[_0x37407e('0x44')][_0x37407e('0x2')]&&(_0x11c183['where']=_['merge'](_0x11c183[_0x37407e('0x35')],{[Op['or']]:_[_0x37407e('0x6a')](_0x11c183['attributes'],function(_0x4bed95){const _0x1301d8=_0x37407e,_0x2119d9={};return _0x2119d9[_0x4bed95]={[Op[_0x1301d8('0x68')]]:'%'+_0x594b11['query'][_0x1301d8('0x2')]+'%'},_0x2119d9;})})),_0x11c183=_['merge']({},_0x11c183,_0x594b11[_0x37407e('0x13')]),db[_0x37407e('0x3b')][_0x37407e('0x5b')](_0x11c183);})['then'](function(_0x37490f){const _0x334808=_0x2ba680;if(_0x37490f)return db['User'][_0x334808('0x6e')]({'where':{'id':_[_0x334808('0x6a')](_0x37490f,_0x334808('0x5')),'role':_0x334808('0x30')},'attributes':['id',_0x334808('0x2c'),_0x334808('0x60'),_0x334808('0x10'),_0x334808('0xd')]});})[_0x2ba680('0x26')](function(_0xd27656){const _0x48c43c=_0x2ba680;return _0xd27656?{'count':_0xd27656['count'],'rows':_[_0x48c43c('0x6a')](_0xd27656[_0x48c43c('0x4f')],function(_0x21b066){const _0x46db3b=_0x48c43c;return{'membername':_0x21b066[_0x46db3b('0x2c')],'UserId':_0x21b066['id'],'queue_name':_0x286d64[_0x46db3b('0x2c')],'OpenchannelQueueId':_0x286d64['id'],'interface':util['format'](_0x46db3b('0x4a'),_0x46db3b('0x33'),_0x21b066[_0x46db3b('0x2c')]),'penalty':0x0,'paused':_0x21b066[_0x46db3b('0x60')],'createdAt':_0x21b066['createdAt'],'updatedAt':_0x21b066[_0x46db3b('0x10')]};})}:{'count':0x0,'rows':[]};})[_0x2ba680('0x26')](respondWithFilteredResult(_0x401b29,_0x11c183))[_0x2ba680('0x56')](handleError(_0x401b29,null));},exports['getTeams']=function(_0x4f3552,_0x40b690){const _0x2b2270=_0x3fc7c6;let _0x4da1e2={};const _0x5721ae={};let _0x131d7d,_0x241cae;return db['OpenchannelQueue'][_0x2b2270('0x51')]({'where':{'id':_0x4f3552[_0x2b2270('0x28')]['id']}})[_0x2b2270('0x26')](handleEntityNotFound(_0x40b690,null))[_0x2b2270('0x26')](function(_0x284558){const _0x5e1898=_0x2b2270;if(_0x284558)return _0x131d7d=_0x284558,_0x5721ae[_0x5e1898('0x42')]=_[_0x5e1898('0x18')](db[_0x5e1898('0x63')][_0x5e1898('0x22')]),_0x5721ae[_0x5e1898('0x44')]=_[_0x5e1898('0x18')](_0x4f3552['query']),_0x5721ae['filters']=_[_0x5e1898('0x15')](_0x5721ae[_0x5e1898('0x42')],_0x5721ae[_0x5e1898('0x44')]),_0x4da1e2['attributes']=_[_0x5e1898('0x15')](_0x5721ae[_0x5e1898('0x42')],qs[_0x5e1898('0x31')](_0x4f3552[_0x5e1898('0x44')][_0x5e1898('0x31')])),_0x4da1e2['attributes']=_0x4da1e2[_0x5e1898('0x45')][_0x5e1898('0x1')]?_0x4da1e2[_0x5e1898('0x45')]:_0x5721ae[_0x5e1898('0x42')],_0x4da1e2[_0x5e1898('0x2d')]=qs[_0x5e1898('0x8')](_0x4f3552[_0x5e1898('0x44')][_0x5e1898('0x8')]),_0x4da1e2['where']=qs[_0x5e1898('0x4d')](_[_0x5e1898('0x5d')](_0x4f3552[_0x5e1898('0x44')],_0x5721ae['filters'])),_0x4f3552[_0x5e1898('0x44')][_0x5e1898('0x2')]&&(_0x4da1e2[_0x5e1898('0x35')]=_['merge'](_0x4da1e2['where'],{[Op['or']]:_['map'](_0x4da1e2[_0x5e1898('0x45')],function(_0x2bc80f){const _0x2c1e64=_0x5e1898,_0x514440={};return _0x514440[_0x2bc80f]={[Op[_0x2c1e64('0x68')]]:'%'+_0x4f3552[_0x2c1e64('0x44')]['filter']+'%'},_0x514440;})})),_0x4da1e2=_[_0x5e1898('0x29')]({},_0x4da1e2,_0x4f3552['options']),_0x131d7d[_0x5e1898('0xb')](_0x4da1e2);})['then'](function(_0x2e81d2){const _0x3962df=_0x2b2270;if(_0x2e81d2)return _0x241cae=_0x2e81d2[_0x3962df('0x1')],typeof _0x4f3552[_0x3962df('0x44')][_0x3962df('0x17')]===_0x3962df('0x23')&&(_0x4da1e2[_0x3962df('0x11')]=qs[_0x3962df('0x11')](_0x4f3552[_0x3962df('0x44')][_0x3962df('0x11')]),_0x4da1e2['offset']=qs['offset'](_0x4f3552[_0x3962df('0x44')][_0x3962df('0x64')])),_0x131d7d['getTeams'](_0x4da1e2);})['then'](function(_0x111036){if(_0x111036)return _0x111036?{'count':_0x241cae,'rows':_0x111036}:null;})[_0x2b2270('0x26')](respondWithResult(_0x40b690,null))[_0x2b2270('0x56')](handleError(_0x40b690,null));},exports[_0x3fc7c6('0x3d')]=function(_0x132761,_0x4236ee){const _0x254991=_0x3fc7c6,_0x1eb3ad=_0x132761[_0x254991('0x21')][_0x254991('0x65')];return db[_0x254991('0x63')][_0x254991('0x5b')]({'where':{'id':_0x1eb3ad},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id','name',_0x254991('0x57'),_0x254991('0x4b'),_0x254991('0x2f')],'raw':!![]}]})[_0x254991('0x26')](function(_0x31254f){const _0xe34253=_0x254991;if(_0x31254f){const _0x51f703=_['flatMap'](_0x31254f,function(_0x156b0c){const _0xa94eeb=a494_0xbdf9,_0x1dd94d=_0x156b0c['get']({'plain':!![]});return _0x1dd94d[_0xa94eeb('0x48')];});return db[_0xe34253('0x49')][_0xe34253('0x51')]({'where':{'id':_0x132761['params']['id']}})[_0xe34253('0x26')](function(_0x2acbeb){const _0x379084=_0xe34253;return db['sequelize'][_0x379084('0x1d')](function(_0x4e7c56){const _0x59bede=_0x379084;return _0x2acbeb[_0x59bede('0x3d')](_0x1eb3ad,{'transaction':_0x4e7c56})[_0x59bede('0x26')](function(){const _0x237842=_0x59bede;return Promise[_0x237842('0x41')](_0x51f703,function(_0xe4a941){const _0x5e4b86=_0x237842;return db[_0x5e4b86('0x3b')][_0x5e4b86('0xa')]({'where':{'UserId':_0xe4a941['id'],'OpenchannelQueueId':_0x132761[_0x5e4b86('0x28')]['id']},'transaction':_0x4e7c56});});})['then'](function(){_0x51f703['forEach'](function(_0x13bbdb){const _0x4ae2f8=a494_0xbdf9;socket[_0x4ae2f8('0x3e')](_0x4ae2f8('0x4'),{'UserId':_0x13bbdb['id'],'OpenchannelQueueId':_0x2acbeb['id']});});});});});}})[_0x254991('0x26')](respondWithStatusCode(_0x4236ee,null))[_0x254991('0x56')](handleError(_0x4236ee,null));},exports[_0x3fc7c6('0x24')]=function(_0x5e8931,_0x541fed){const _0xd9cce7=_0x3fc7c6;return db[_0xd9cce7('0x63')][_0xd9cce7('0x5b')]({'where':{'id':_0x5e8931['query'][_0xd9cce7('0x65')]},'attributes':['id'],'include':[{'model':db['User'],'as':_0xd9cce7('0x48'),'attributes':['id'],'raw':!![]}]})[_0xd9cce7('0x26')](handleEntityNotFound(_0x541fed,null))['then'](function(_0x1b2741){const _0x1a746f=_0xd9cce7,_0x1f1df7=_[_0x1a746f('0x6a')](_0x1b2741,'id');let _0x11e38c=[];const _0x5d5e27=[],_0x33d616=squel[_0x1a746f('0x52')]();_0x33d616[_0x1a746f('0x9')](_0x1a746f('0x12'))['from'](_0x1a746f('0x4c'),'tq')[_0x1a746f('0x6c')](_0x1a746f('0x1c'),'ut',_0x1a746f('0x34'))[_0x1a746f('0x35')]('OpenchannelQueueId\x20=\x20?',_0x5e8931['params']['id']);for(let _0x537dc1=0x0;_0x537dc1<_0x1b2741[_0x1a746f('0x1')];_0x537dc1+=0x1){const _0x3233d6=_0x1b2741[_0x537dc1];for(let _0x3a0ca2=0x0;_0x3a0ca2<_0x3233d6['Agents']['length'];_0x3a0ca2+=0x1){const _0x26dc89=_0x3233d6[_0x1a746f('0x48')][_0x3a0ca2],_0x3c947d=_0x33d616[_0x1a746f('0x3f')]();_0x3c947d[_0x1a746f('0x35')](_0x1a746f('0xf'),_0x26dc89['id']),_0x5d5e27['push'](db['sequelize'][_0x1a746f('0x44')](_0x3c947d[_0x1a746f('0x50')](),{'type':QueryTypes[_0x1a746f('0xe')]})[_0x1a746f('0x26')](function(_0x3deb34){const _0xb56560=_0x1a746f;if(_0x3deb34['length']===0x1)return _0x26dc89['id'];else{const _0x39f9d4=_['every'](_[_0xb56560('0x6a')](_0x3deb34,_0xb56560('0x69')),function(_0x3f14d5){const _0x323eea=_0xb56560;return _[_0x323eea('0x1a')](_0x1f1df7,_0x3f14d5);});if(_0x39f9d4)return _0x26dc89['id'];}}));}}return Promise[_0x1a746f('0x3a')](_0x5d5e27)['then'](function(_0x15e94b){const _0x3dfaf1=_0x1a746f;return _0x11e38c=_(_0x11e38c)[_0x3dfaf1('0x2e')](_0x15e94b)['compact']()['value'](),db[_0x3dfaf1('0x49')]['findOne']({'where':{'id':_0x5e8931[_0x3dfaf1('0x28')]['id']}})[_0x3dfaf1('0x26')](function(_0x30971e){const _0x187745=_0x3dfaf1;return db[_0x187745('0x3c')][_0x187745('0x1d')](function(_0x1be13c){const _0xb5230e=_0x187745;return _0x30971e[_0xb5230e('0x24')](_0x5e8931[_0xb5230e('0x44')]['ids'],{'transaction':_0x1be13c})[_0xb5230e('0x26')](function(){const _0x14ee0e=_0xb5230e;if(!_['isEmpty'](_0x11e38c))return _0x30971e[_0x14ee0e('0x32')](_0x11e38c,{'transaction':_0x1be13c});})[_0xb5230e('0x26')](function(){const _0x1efb64=_0xb5230e;_0x11e38c[_0x1efb64('0x20')](function(_0x29be31){const _0x1894c9=_0x1efb64;socket[_0x1894c9('0x3e')](_0x1894c9('0x66'),{'UserId':_0x29be31,'OpenchannelQueueId':_0x30971e['id']});});});});});});})[_0xd9cce7('0x26')](respondWithStatusCode(_0x541fed,null))[_0xd9cce7('0x56')](handleError(_0x541fed,null));},exports[_0x3fc7c6('0x43')]=function(_0x380c45,_0x44cb6d){const _0x4a7c18=_0x3fc7c6;return db['OpenchannelQueue'][_0x4a7c18('0x51')]({'where':{'id':_0x380c45[_0x4a7c18('0x28')]['id']}})[_0x4a7c18('0x26')](function(_0x32169c){const _0x5c92ef=_0x4a7c18;if(_0x32169c)return _0x32169c[_0x5c92ef('0x43')](_0x380c45[_0x5c92ef('0x21')]['ids'],{'through':_[_0x5c92ef('0x6b')](_0x380c45[_0x5c92ef('0x21')],[_0x5c92ef('0x65'),'id'])})[_0x5c92ef('0x26')](function(_0x4de958){const _0x15cf52=_0x5c92ef;for(let _0x51fdb6=0x0;_0x51fdb6<_0x380c45[_0x15cf52('0x21')][_0x15cf52('0x65')]['length'];_0x51fdb6+=0x1){socket[_0x15cf52('0x3e')](_0x15cf52('0x4'),{'UserId':_0x380c45[_0x15cf52('0x21')][_0x15cf52('0x65')][_0x51fdb6],'OpenchannelQueueId':_0x380c45[_0x15cf52('0x28')]['id']});}return _0x4de958;});})[_0x4a7c18('0x26')](respondWithResult(_0x44cb6d,null))['catch'](handleError(_0x44cb6d,null));},exports[_0x3fc7c6('0x32')]=function(_0x1de4cc,_0x28c4eb){const _0x2c06c7=_0x3fc7c6;return db[_0x2c06c7('0x49')][_0x2c06c7('0x51')]({'where':{'id':_0x1de4cc[_0x2c06c7('0x28')]['id']}})[_0x2c06c7('0x26')](handleEntityNotFound(_0x28c4eb,null))[_0x2c06c7('0x26')](function(_0x14da59){const _0x15807f=_0x2c06c7;if(_0x14da59)return _0x14da59[_0x15807f('0x32')](_0x1de4cc[_0x15807f('0x44')]['ids'])[_0x15807f('0x26')](function(){const _0x18cace=_0x15807f;if(_[_0x18cace('0x16')](_0x1de4cc['query'][_0x18cace('0x65')]))for(let _0x1b4a7b=0x0;_0x1b4a7b<_0x1de4cc[_0x18cace('0x44')][_0x18cace('0x65')][_0x18cace('0x1')];_0x1b4a7b+=0x1){socket['emit'](_0x18cace('0x66'),{'UserId':Number(_0x1de4cc[_0x18cace('0x44')][_0x18cace('0x65')][_0x1b4a7b]),'OpenchannelQueueId':Number(_0x1de4cc['params']['id'])});}else socket['emit'](_0x18cace('0x66'),{'UserId':Number(_0x1de4cc[_0x18cace('0x44')][_0x18cace('0x65')]),'OpenchannelQueueId':Number(_0x1de4cc['params']['id'])});});})[_0x2c06c7('0x26')](respondWithStatusCode(_0x28c4eb,null))[_0x2c06c7('0x56')](handleError(_0x28c4eb,null));},exports['getAgents']=function(_0x5d29be,_0x3190f1){const _0x245d7c=_0x3fc7c6;let _0x46a67e={};const _0x4fb0aa={};let _0x2c9f66,_0x5c6a66;return db[_0x245d7c('0x49')][_0x245d7c('0x51')]({'where':{'id':_0x5d29be[_0x245d7c('0x28')]['id']}})[_0x245d7c('0x26')](handleEntityNotFound(_0x3190f1,null))[_0x245d7c('0x26')](function(_0x4f3316){const _0x3c1d33=_0x245d7c;if(_0x4f3316)return _0x2c9f66=_0x4f3316,_0x4fb0aa[_0x3c1d33('0x42')]=_['keys'](db[_0x3c1d33('0x0')][_0x3c1d33('0x22')]),_0x4fb0aa[_0x3c1d33('0x44')]=_[_0x3c1d33('0x18')](_0x5d29be['query']),_0x4fb0aa[_0x3c1d33('0x4d')]=_[_0x3c1d33('0x15')](_0x4fb0aa[_0x3c1d33('0x42')],_0x4fb0aa[_0x3c1d33('0x44')]),_0x46a67e['attributes']=_['intersection'](_0x4fb0aa[_0x3c1d33('0x42')],qs[_0x3c1d33('0x31')](_0x5d29be[_0x3c1d33('0x44')]['fields'])),_0x46a67e[_0x3c1d33('0x45')]=_0x46a67e[_0x3c1d33('0x45')][_0x3c1d33('0x1')]?_0x46a67e['attributes']:_0x4fb0aa[_0x3c1d33('0x42')],_0x46a67e[_0x3c1d33('0x2d')]=qs['sort'](_0x5d29be['query'][_0x3c1d33('0x8')]),_0x46a67e[_0x3c1d33('0x35')]=qs[_0x3c1d33('0x4d')](_[_0x3c1d33('0x5d')](_0x5d29be[_0x3c1d33('0x44')],_0x4fb0aa[_0x3c1d33('0x4d')])),_0x5d29be[_0x3c1d33('0x44')][_0x3c1d33('0x2')]&&(_0x46a67e[_0x3c1d33('0x35')]=_[_0x3c1d33('0x29')](_0x46a67e[_0x3c1d33('0x35')],{[Op['or']]:_[_0x3c1d33('0x6a')](_0x46a67e[_0x3c1d33('0x45')],function(_0x3c6a05){const _0x39a8db=_0x3c1d33,_0x2150b8={};return _0x2150b8[_0x3c6a05]={[Op[_0x39a8db('0x68')]]:'%'+_0x5d29be['query'][_0x39a8db('0x2')]+'%'},_0x2150b8;})})),_0x46a67e=_[_0x3c1d33('0x29')]({},_0x46a67e,_0x5d29be[_0x3c1d33('0x13')]),_0x2c9f66['getAgents'](_0x46a67e);})[_0x245d7c('0x26')](function(_0x24b62e){const _0x5ac73b=_0x245d7c;if(_0x24b62e)return _0x5c6a66=_0x24b62e['length'],typeof _0x5d29be[_0x5ac73b('0x44')][_0x5ac73b('0x17')]===_0x5ac73b('0x23')&&(_0x46a67e[_0x5ac73b('0x11')]=qs['limit'](_0x5d29be['query'][_0x5ac73b('0x11')]),_0x46a67e[_0x5ac73b('0x64')]=qs[_0x5ac73b('0x64')](_0x5d29be[_0x5ac73b('0x44')][_0x5ac73b('0x64')])),_0x2c9f66[_0x5ac73b('0x5a')](_0x46a67e);})['then'](function(_0x596cd3){if(_0x596cd3)return _0x596cd3?{'count':_0x5c6a66,'rows':_0x596cd3}:null;})[_0x245d7c('0x26')](respondWithResult(_0x3190f1,null))[_0x245d7c('0x56')](handleError(_0x3190f1,null));}; \ No newline at end of file +const a494_0x3f3a=['where','forEach','createdAt','describe','model','findAndCountAll','../../components/parsers/qs','destroy','query','undefined','catch','ids','from','index','offset','UserProfileResource','%s/%s','addAgents','interface','set','online','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Unable\x20to\x20retrieve\x20the\x20current\x20user','ut.TeamId\x20=\x20tq.TeamId','body','SELECT','emit','order','OpenchannelQueue','fieldName','rawAttributes','options','lodash','Content-Range','ut.UserId\x20=\x20?','name','userOpenchannelQueue:save','filter','all','sequelize','attributes','create','filters','./openchannelQueue.socket','omit','user','end','count','stack','includeAll','then','length','getAgents','../../mysqldb','json','pick','error','params','Agents','toString','UserOpenchannelQueue','userOpenchannelQueue:remove','every','push','map','User','removeAgents','tq.TeamId','show','limit','keys','isArray','status','getTeams','join','addTeams','merge','sort','sendStatus','voicePause','openchannelPause','updatedAt','field','role','type','Team','findAll','intersection','select','format','nolimit','include','fields','squel','send','UserId','SIP','removeTeams','isEmpty','findOne','key','like','UserProfileSection','get','transaction','clone','api'];(function(_0x29da8f,_0x3f3a77){const _0x30be79=function(_0x395fa1){while(--_0x395fa1){_0x29da8f['push'](_0x29da8f['shift']());}};_0x30be79(++_0x3f3a77);}(a494_0x3f3a,0xf0));const a494_0x30be=function(_0x29da8f,_0x3f3a77){_0x29da8f=_0x29da8f-0x0;let _0x30be79=a494_0x3f3a[_0x29da8f];return _0x30be79;};const _0x262063=a494_0x30be;'use strict';const util=require('util'),_=require(_0x262063('0x6')),squel=require(_0x262063('0x43')),qs=require(_0x262063('0x57')),logger=require('../../config/logger')(_0x262063('0x50')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x262063('0x1b'))['db'],{Op,QueryTypes}=require(_0x262063('0xd'));require(_0x262063('0x11'))['register'](socket);function respondWithStatusCode(_0x395fa1,_0x2b01ac){return _0x2b01ac=_0x2b01ac||0xcc,function(_0x52c4ee){const _0x127340=a494_0x30be;if(_0x52c4ee)return _0x395fa1[_0x127340('0x34')](_0x2b01ac);return _0x395fa1[_0x127340('0x2e')](_0x2b01ac)['end']();};}function respondWithResult(_0x2aee3d,_0x2da38){return _0x2da38=_0x2da38||0xc8,function(_0x496149){const _0x1313bd=a494_0x30be;if(_0x496149)return _0x2aee3d['status'](_0x2da38)[_0x1313bd('0x1c')](_0x496149);};}function respondWithFilteredResult(_0x2f0e1a,_0x48b16d){return function(_0x200a1e){const _0x29c891=a494_0x30be;if(_0x200a1e){const _0x54c3ab=_0x200a1e[_0x29c891('0x15')],_0x1744b2=_0x48b16d['offset'];let _0x2fb66a=_0x48b16d[_0x29c891('0x5f')]+_0x48b16d[_0x29c891('0x2b')],_0x536347;return _0x2fb66a>=_0x54c3ab?(_0x2fb66a=_0x54c3ab,_0x536347=0xc8):_0x536347=0xce,_0x2f0e1a[_0x29c891('0x2e')](_0x536347),_0x2f0e1a[_0x29c891('0x64')](_0x29c891('0x7'),_0x1744b2+'-'+_0x2fb66a+'/'+_0x54c3ab)[_0x29c891('0x1c')](_0x200a1e);}return null;};}function saveUpdates(_0x38dc7c){return function(_0x32ab63){const _0x4ca6e2=a494_0x30be;if(_0x32ab63)return _0x32ab63['update'](_0x38dc7c)[_0x4ca6e2('0x18')](function(_0x436194){return _0x436194;});return null;};}function removeEntity(_0x36c180){return function(_0x38b2ea){const _0xab20ec=a494_0x30be;if(_0x38b2ea)return _0x38b2ea[_0xab20ec('0x58')]()[_0xab20ec('0x18')](function(){const _0x44f90f=_0xab20ec,_0x4d4469=_0x38b2ea['get']({'plain':!![]}),_0x4d3cde='OpenchannelQueues';return db[_0x44f90f('0x60')][_0x44f90f('0x58')]({'where':{'type':_0x4d3cde,'resourceId':_0x4d4469['id']}})[_0x44f90f('0x18')](function(){return _0x38b2ea;});})[_0xab20ec('0x18')](function(){const _0x27f5bb=_0xab20ec;_0x36c180[_0x27f5bb('0x2e')](0xcc)[_0x27f5bb('0x14')]();});};}function handleEntityNotFound(_0x1e73a5){return function(_0x38d1fe){const _0x49bdf0=a494_0x30be;return!_0x38d1fe&&_0x1e73a5[_0x49bdf0('0x34')](0x194),_0x38d1fe;};}function handleError(_0x4ca5d5,_0x2cf578){return _0x2cf578=_0x2cf578||0x1f4,function(_0x468d33){const _0x312f59=a494_0x30be;logger[_0x312f59('0x1e')](_0x468d33[_0x312f59('0x16')]),_0x468d33[_0x312f59('0x9')]&&delete _0x468d33[_0x312f59('0x9')],_0x4ca5d5[_0x312f59('0x2e')](_0x2cf578)[_0x312f59('0x44')](_0x468d33);};}exports[_0x262063('0x5e')]=function(_0x1eb6bd,_0x260cff){const _0x43f3df=_0x262063;let _0x32a66b={};const _0x2ccd31={},_0x1f9283={'count':0x0,'rows':[]},_0x4d9981=_[_0x43f3df('0x26')](db[_0x43f3df('0x2')]['rawAttributes'],function(_0x281649){const _0x3b149e=_0x43f3df;return{'name':_0x281649[_0x3b149e('0x3')],'type':_0x281649[_0x3b149e('0x3a')][_0x3b149e('0x4a')]};});_0x2ccd31['model']=_[_0x43f3df('0x26')](_0x4d9981,_0x43f3df('0x9')),_0x2ccd31[_0x43f3df('0x59')]=_[_0x43f3df('0x2c')](_0x1eb6bd[_0x43f3df('0x59')]),_0x2ccd31[_0x43f3df('0x10')]=_[_0x43f3df('0x3d')](_0x2ccd31['model'],_0x2ccd31['query']),_0x32a66b[_0x43f3df('0xe')]=_[_0x43f3df('0x3d')](_0x2ccd31[_0x43f3df('0x55')],qs['fields'](_0x1eb6bd['query'][_0x43f3df('0x42')])),_0x32a66b[_0x43f3df('0xe')]=_0x32a66b[_0x43f3df('0xe')][_0x43f3df('0x19')]?_0x32a66b[_0x43f3df('0xe')]:_0x2ccd31[_0x43f3df('0x55')];typeof _0x1eb6bd[_0x43f3df('0x59')][_0x43f3df('0x40')]==='undefined'&&(_0x32a66b[_0x43f3df('0x2b')]=qs[_0x43f3df('0x2b')](_0x1eb6bd[_0x43f3df('0x59')]['limit']),_0x32a66b['offset']=qs[_0x43f3df('0x5f')](_0x1eb6bd['query'][_0x43f3df('0x5f')]));_0x32a66b[_0x43f3df('0x1')]=qs['sort'](_0x1eb6bd[_0x43f3df('0x59')][_0x43f3df('0x33')]),_0x32a66b['where']=qs[_0x43f3df('0x10')](_[_0x43f3df('0x1d')](_0x1eb6bd[_0x43f3df('0x59')],_0x2ccd31[_0x43f3df('0x10')]),_0x4d9981);_0x1eb6bd[_0x43f3df('0x59')][_0x43f3df('0xb')]&&(_0x32a66b['where']=_['merge'](_0x32a66b[_0x43f3df('0x51')],{[Op['or']]:_[_0x43f3df('0x26')](_0x4d9981,function(_0x350d07){const _0x3f2c78=_0x43f3df;if(_0x350d07[_0x3f2c78('0x3a')]!=='VIRTUAL'){const _0x21909c={};return _0x21909c[_0x350d07[_0x3f2c78('0x9')]]={[Op[_0x3f2c78('0x4b')]]:'%'+_0x1eb6bd['query'][_0x3f2c78('0xb')]+'%'},_0x21909c;}})}));_0x32a66b=_[_0x43f3df('0x32')]({},_0x32a66b,_0x1eb6bd[_0x43f3df('0x5')]);const _0x4263a4={'where':_0x32a66b[_0x43f3df('0x51')]};return db['OpenchannelQueue'][_0x43f3df('0x15')](_0x4263a4)[_0x43f3df('0x18')](function(_0x29ab6d){const _0x477eaa=_0x43f3df;return _0x1f9283[_0x477eaa('0x15')]=_0x29ab6d,_0x1eb6bd[_0x477eaa('0x59')][_0x477eaa('0x17')]&&(_0x32a66b['include']=[{'all':!![]}]),db[_0x477eaa('0x2')][_0x477eaa('0x3c')](_0x32a66b);})['then'](function(_0x3db21e){return _0x1f9283['rows']=_0x3db21e,_0x1f9283;})[_0x43f3df('0x18')](respondWithFilteredResult(_0x260cff,_0x32a66b))[_0x43f3df('0x5b')](handleError(_0x260cff,null));},exports[_0x262063('0x2a')]=function(_0x4e10d0,_0x20ab9b){const _0x3b2367=_0x262063;let _0x23c9ab={'raw':!![],'where':{'id':_0x4e10d0[_0x3b2367('0x1f')]['id']}};const _0x2342db={};return _0x2342db['model']=_['keys'](db[_0x3b2367('0x2')]['rawAttributes']),_0x2342db[_0x3b2367('0x59')]=_[_0x3b2367('0x2c')](_0x4e10d0[_0x3b2367('0x59')]),_0x2342db['filters']=_[_0x3b2367('0x3d')](_0x2342db[_0x3b2367('0x55')],_0x2342db[_0x3b2367('0x59')]),_0x23c9ab[_0x3b2367('0xe')]=_['intersection'](_0x2342db[_0x3b2367('0x55')],qs[_0x3b2367('0x42')](_0x4e10d0[_0x3b2367('0x59')][_0x3b2367('0x42')])),_0x23c9ab[_0x3b2367('0xe')]=_0x23c9ab[_0x3b2367('0xe')]['length']?_0x23c9ab[_0x3b2367('0xe')]:_0x2342db['model'],_0x4e10d0[_0x3b2367('0x59')][_0x3b2367('0x17')]&&(_0x23c9ab[_0x3b2367('0x41')]=[{'all':!![]}]),_0x23c9ab=_['merge']({},_0x23c9ab,_0x4e10d0[_0x3b2367('0x5')]),db[_0x3b2367('0x2')][_0x3b2367('0x49')](_0x23c9ab)[_0x3b2367('0x18')](handleEntityNotFound(_0x20ab9b,null))['then'](respondWithResult(_0x20ab9b,null))[_0x3b2367('0x5b')](handleError(_0x20ab9b,null));},exports[_0x262063('0xf')]=function(_0x515db9,_0x34f3e9){const _0x44def8=_0x262063;return db[_0x44def8('0x2')]['create'](_0x515db9[_0x44def8('0x69')],{})[_0x44def8('0x18')](function(_0x324beb){const _0x2f6e32=_0x44def8,_0x416534=_0x515db9[_0x2f6e32('0x13')]['get']({'plain':!![]});if(!_0x416534)throw new Error(_0x2f6e32('0x67'));if(_0x416534[_0x2f6e32('0x39')]===_0x2f6e32('0x13')){const _0x24d19d=_0x324beb[_0x2f6e32('0x4d')]({'plain':!![]}),_0x40161c='OpenchannelQueues';return db[_0x2f6e32('0x4c')][_0x2f6e32('0x49')]({'where':{'name':_0x40161c,'userProfileId':_0x416534['userProfileId']},'raw':!![]})['then'](function(_0x3e1fc0){const _0x30d3e4=_0x2f6e32;return _0x3e1fc0&&_0x3e1fc0['autoAssociation']===0x0?db[_0x30d3e4('0x60')][_0x30d3e4('0xf')]({'name':_0x24d19d[_0x30d3e4('0x9')],'resourceId':_0x24d19d['id'],'type':_0x3e1fc0[_0x30d3e4('0x9')],'sectionId':_0x3e1fc0['id']},{})['then'](function(){return _0x324beb;}):_0x324beb;})[_0x2f6e32('0x5b')](function(_0x269015){const _0x15571c=_0x2f6e32;logger[_0x15571c('0x1e')](_0x15571c('0x66'),_0x269015);throw _0x269015;});}return _0x324beb;})[_0x44def8('0x18')](respondWithResult(_0x34f3e9,0xc9))[_0x44def8('0x5b')](handleError(_0x34f3e9,null));},exports['update']=function(_0x3f5778,_0x4faa79){const _0x53acc3=_0x262063;return _0x3f5778['body']['id']&&delete _0x3f5778[_0x53acc3('0x69')]['id'],db[_0x53acc3('0x2')]['findOne']({'where':{'id':_0x3f5778['params']['id']}})[_0x53acc3('0x18')](handleEntityNotFound(_0x4faa79,null))[_0x53acc3('0x18')](saveUpdates(_0x3f5778[_0x53acc3('0x69')],null))[_0x53acc3('0x18')](respondWithResult(_0x4faa79,null))[_0x53acc3('0x5b')](handleError(_0x4faa79,null));},exports[_0x262063('0x58')]=function(_0x40a461,_0x1f7ea9){const _0x3d1932=_0x262063;return db[_0x3d1932('0x2')][_0x3d1932('0x49')]({'where':{'id':_0x40a461[_0x3d1932('0x1f')]['id']}})[_0x3d1932('0x18')](handleEntityNotFound(_0x1f7ea9,null))[_0x3d1932('0x18')](removeEntity(_0x1f7ea9,null))[_0x3d1932('0x5b')](handleError(_0x1f7ea9,null));},exports['describe']=function(_0x22f840,_0x243a44){const _0x178002=_0x262063;return db[_0x178002('0x2')][_0x178002('0x54')]()[_0x178002('0x18')](respondWithResult(_0x243a44,null))[_0x178002('0x5b')](handleError(_0x243a44,null));},exports['getMembers']=function(_0x16f6a6,_0x4fd0c5){const _0x546195=_0x262063;let _0x3df418={'raw':!![],'where':{}};const _0x404562={};let _0x7c10de;return db['OpenchannelQueue'][_0x546195('0x49')]({'where':{'id':_0x16f6a6['params']['id']}})[_0x546195('0x18')](handleEntityNotFound(_0x4fd0c5,null))[_0x546195('0x18')](function(_0x5f2ed6){const _0x20efc3=_0x546195;if(_0x5f2ed6)return _0x7c10de=_0x5f2ed6['get']({'plain':!![]}),_0x404562[_0x20efc3('0x55')]=_[_0x20efc3('0x2c')](db[_0x20efc3('0x22')][_0x20efc3('0x4')]),_0x404562[_0x20efc3('0x59')]=_[_0x20efc3('0x2c')](_0x16f6a6['query']),_0x404562[_0x20efc3('0x10')]=_[_0x20efc3('0x3d')](_0x404562[_0x20efc3('0x55')],_0x404562[_0x20efc3('0x59')]),_0x3df418[_0x20efc3('0xe')]=_['intersection'](_0x404562[_0x20efc3('0x55')],qs[_0x20efc3('0x42')](_0x16f6a6[_0x20efc3('0x59')][_0x20efc3('0x42')])),_0x3df418[_0x20efc3('0xe')]=_0x3df418[_0x20efc3('0xe')]['length']?_0x3df418[_0x20efc3('0xe')]:_0x404562[_0x20efc3('0x55')],typeof _0x16f6a6[_0x20efc3('0x59')]['nolimit']===_0x20efc3('0x5a')&&(_0x3df418[_0x20efc3('0x2b')]=qs[_0x20efc3('0x2b')](_0x16f6a6[_0x20efc3('0x59')][_0x20efc3('0x2b')]),_0x3df418[_0x20efc3('0x5f')]=qs['offset'](_0x16f6a6['query']['offset'])),_0x3df418['order']=qs[_0x20efc3('0x33')](_0x16f6a6[_0x20efc3('0x59')]['sort']),_0x3df418[_0x20efc3('0x51')]=qs[_0x20efc3('0x10')](_[_0x20efc3('0x1d')](_0x16f6a6[_0x20efc3('0x59')],_0x404562[_0x20efc3('0x10')])),_0x3df418[_0x20efc3('0x51')]['OpenchannelQueueId']=_0x5f2ed6['id'],_0x16f6a6[_0x20efc3('0x59')][_0x20efc3('0xb')]&&(_0x3df418['where']=_[_0x20efc3('0x32')](_0x3df418[_0x20efc3('0x51')],{[Op['or']]:_[_0x20efc3('0x26')](_0x3df418[_0x20efc3('0xe')],function(_0x2d60ef){const _0x429719=_0x20efc3,_0x19f7a5={};return _0x19f7a5[_0x2d60ef]={[Op['like']]:'%'+_0x16f6a6[_0x429719('0x59')][_0x429719('0xb')]+'%'},_0x19f7a5;})})),_0x3df418=_[_0x20efc3('0x32')]({},_0x3df418,_0x16f6a6[_0x20efc3('0x5')]),db[_0x20efc3('0x22')][_0x20efc3('0x3c')](_0x3df418);})['then'](function(_0x176300){const _0x156b87=_0x546195;if(_0x176300)return db[_0x156b87('0x27')][_0x156b87('0x56')]({'where':{'id':_[_0x156b87('0x26')](_0x176300,_0x156b87('0x45')),'role':'agent'},'attributes':['id',_0x156b87('0x9'),_0x156b87('0x36'),_0x156b87('0x37'),_0x156b87('0x53')]});})[_0x546195('0x18')](function(_0x55c62e){const _0x901f41=_0x546195;return _0x55c62e?{'count':_0x55c62e['count'],'rows':_[_0x901f41('0x26')](_0x55c62e['rows'],function(_0x2db30c){const _0x303519=_0x901f41;return{'membername':_0x2db30c[_0x303519('0x9')],'UserId':_0x2db30c['id'],'queue_name':_0x7c10de[_0x303519('0x9')],'OpenchannelQueueId':_0x7c10de['id'],'interface':util[_0x303519('0x3f')](_0x303519('0x61'),_0x303519('0x46'),_0x2db30c[_0x303519('0x9')]),'penalty':0x0,'paused':_0x2db30c[_0x303519('0x36')],'createdAt':_0x2db30c[_0x303519('0x53')],'updatedAt':_0x2db30c[_0x303519('0x37')]};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0x4fd0c5,_0x3df418))[_0x546195('0x5b')](handleError(_0x4fd0c5,null));},exports['getTeams']=function(_0x63b5f5,_0x2c0d40){const _0x2f32bc=_0x262063;let _0x4a0408={};const _0x5091ff={};let _0x518a68,_0x581502;return db[_0x2f32bc('0x2')][_0x2f32bc('0x49')]({'where':{'id':_0x63b5f5[_0x2f32bc('0x1f')]['id']}})[_0x2f32bc('0x18')](handleEntityNotFound(_0x2c0d40,null))[_0x2f32bc('0x18')](function(_0x22dcfe){const _0x50c37f=_0x2f32bc;if(_0x22dcfe)return _0x518a68=_0x22dcfe,_0x5091ff[_0x50c37f('0x55')]=_[_0x50c37f('0x2c')](db['Team'][_0x50c37f('0x4')]),_0x5091ff[_0x50c37f('0x59')]=_[_0x50c37f('0x2c')](_0x63b5f5['query']),_0x5091ff[_0x50c37f('0x10')]=_[_0x50c37f('0x3d')](_0x5091ff[_0x50c37f('0x55')],_0x5091ff[_0x50c37f('0x59')]),_0x4a0408[_0x50c37f('0xe')]=_[_0x50c37f('0x3d')](_0x5091ff[_0x50c37f('0x55')],qs[_0x50c37f('0x42')](_0x63b5f5[_0x50c37f('0x59')][_0x50c37f('0x42')])),_0x4a0408['attributes']=_0x4a0408[_0x50c37f('0xe')][_0x50c37f('0x19')]?_0x4a0408[_0x50c37f('0xe')]:_0x5091ff['model'],_0x4a0408[_0x50c37f('0x1')]=qs[_0x50c37f('0x33')](_0x63b5f5[_0x50c37f('0x59')]['sort']),_0x4a0408[_0x50c37f('0x51')]=qs[_0x50c37f('0x10')](_[_0x50c37f('0x1d')](_0x63b5f5['query'],_0x5091ff[_0x50c37f('0x10')])),_0x63b5f5[_0x50c37f('0x59')][_0x50c37f('0xb')]&&(_0x4a0408['where']=_['merge'](_0x4a0408[_0x50c37f('0x51')],{[Op['or']]:_[_0x50c37f('0x26')](_0x4a0408['attributes'],function(_0x5b4a6b){const _0x1d60a5=_0x50c37f,_0x4ad9eb={};return _0x4ad9eb[_0x5b4a6b]={[Op[_0x1d60a5('0x4b')]]:'%'+_0x63b5f5['query']['filter']+'%'},_0x4ad9eb;})})),_0x4a0408=_[_0x50c37f('0x32')]({},_0x4a0408,_0x63b5f5[_0x50c37f('0x5')]),_0x518a68['getTeams'](_0x4a0408);})[_0x2f32bc('0x18')](function(_0x5ab2b5){const _0x21ebbd=_0x2f32bc;if(_0x5ab2b5)return _0x581502=_0x5ab2b5[_0x21ebbd('0x19')],typeof _0x63b5f5[_0x21ebbd('0x59')][_0x21ebbd('0x40')]==='undefined'&&(_0x4a0408[_0x21ebbd('0x2b')]=qs[_0x21ebbd('0x2b')](_0x63b5f5['query'][_0x21ebbd('0x2b')]),_0x4a0408['offset']=qs[_0x21ebbd('0x5f')](_0x63b5f5['query'][_0x21ebbd('0x5f')])),_0x518a68[_0x21ebbd('0x2f')](_0x4a0408);})[_0x2f32bc('0x18')](function(_0x3a697b){if(_0x3a697b)return _0x3a697b?{'count':_0x581502,'rows':_0x3a697b}:null;})[_0x2f32bc('0x18')](respondWithResult(_0x2c0d40,null))[_0x2f32bc('0x5b')](handleError(_0x2c0d40,null));},exports[_0x262063('0x31')]=function(_0x25ff66,_0x2564e5){const _0x2b5d33=_0x262063,_0x191725=_0x25ff66[_0x2b5d33('0x69')][_0x2b5d33('0x5c')];return db[_0x2b5d33('0x3b')][_0x2b5d33('0x3c')]({'where':{'id':_0x191725},'attributes':['id'],'include':[{'model':db['User'],'as':'Agents','attributes':['id',_0x2b5d33('0x9'),_0x2b5d33('0x65'),_0x2b5d33('0x35'),_0x2b5d33('0x63')],'raw':!![]}]})['then'](function(_0x136794){const _0x1f798b=_0x2b5d33;if(_0x136794){const _0x430369=_['flatMap'](_0x136794,function(_0x318190){const _0x58cacb=a494_0x30be,_0x5a2dab=_0x318190[_0x58cacb('0x4d')]({'plain':!![]});return _0x5a2dab[_0x58cacb('0x20')];});return db['OpenchannelQueue'][_0x1f798b('0x49')]({'where':{'id':_0x25ff66['params']['id']}})['then'](function(_0x1ba13e){const _0x2ba773=_0x1f798b;return db['sequelize'][_0x2ba773('0x4e')](function(_0x31881c){const _0xf2caa8=_0x2ba773;return _0x1ba13e[_0xf2caa8('0x31')](_0x191725,{'transaction':_0x31881c})['then'](function(){return Promise['each'](_0x430369,function(_0x28cbc9){const _0xb74fe7=a494_0x30be;return db[_0xb74fe7('0x22')]['findOrCreate']({'where':{'UserId':_0x28cbc9['id'],'OpenchannelQueueId':_0x25ff66[_0xb74fe7('0x1f')]['id']},'transaction':_0x31881c});});})[_0xf2caa8('0x18')](function(){const _0x1fa630=_0xf2caa8;_0x430369[_0x1fa630('0x52')](function(_0x6467e9){const _0x35f867=_0x1fa630;socket[_0x35f867('0x0')](_0x35f867('0xa'),{'UserId':_0x6467e9['id'],'OpenchannelQueueId':_0x1ba13e['id']});});});});});}})[_0x2b5d33('0x18')](respondWithStatusCode(_0x2564e5,null))[_0x2b5d33('0x5b')](handleError(_0x2564e5,null));},exports[_0x262063('0x47')]=function(_0x4e4f8f,_0x457ffd){const _0x3680f9=_0x262063;return db['Team'][_0x3680f9('0x3c')]({'where':{'id':_0x4e4f8f[_0x3680f9('0x59')][_0x3680f9('0x5c')]},'attributes':['id'],'include':[{'model':db[_0x3680f9('0x27')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x3680f9('0x18')](handleEntityNotFound(_0x457ffd,null))[_0x3680f9('0x18')](function(_0x1d9e32){const _0x21d4aa=_0x3680f9,_0x15c6ab=_[_0x21d4aa('0x26')](_0x1d9e32,'id');let _0x5b4143=[];const _0x57cf2d=[],_0x4574e8=squel[_0x21d4aa('0x3e')]();_0x4574e8[_0x21d4aa('0x38')](_0x21d4aa('0x29'))[_0x21d4aa('0x5d')]('team_has_openchannel_queues','tq')[_0x21d4aa('0x30')]('user_has_teams','ut',_0x21d4aa('0x68'))['where']('OpenchannelQueueId\x20=\x20?',_0x4e4f8f[_0x21d4aa('0x1f')]['id']);for(let _0x355e05=0x0;_0x355e05<_0x1d9e32[_0x21d4aa('0x19')];_0x355e05+=0x1){const _0x2ff7a1=_0x1d9e32[_0x355e05];for(let _0x2cb9cd=0x0;_0x2cb9cd<_0x2ff7a1['Agents'][_0x21d4aa('0x19')];_0x2cb9cd+=0x1){const _0x5d4732=_0x2ff7a1[_0x21d4aa('0x20')][_0x2cb9cd],_0x5b9927=_0x4574e8[_0x21d4aa('0x4f')]();_0x5b9927[_0x21d4aa('0x51')](_0x21d4aa('0x8'),_0x5d4732['id']),_0x57cf2d[_0x21d4aa('0x25')](db['sequelize'][_0x21d4aa('0x59')](_0x5b9927[_0x21d4aa('0x21')](),{'type':QueryTypes[_0x21d4aa('0x6a')]})[_0x21d4aa('0x18')](function(_0x76fe33){const _0x42f7e5=_0x21d4aa;if(_0x76fe33[_0x42f7e5('0x19')]===0x1)return _0x5d4732['id'];else{const _0xae4f24=_[_0x42f7e5('0x24')](_[_0x42f7e5('0x26')](_0x76fe33,'TeamId'),function(_0x2bcbf1){return _['includes'](_0x15c6ab,_0x2bcbf1);});if(_0xae4f24)return _0x5d4732['id'];}}));}}return Promise[_0x21d4aa('0xc')](_0x57cf2d)[_0x21d4aa('0x18')](function(_0x22c1d3){const _0x297110=_0x21d4aa;return _0x5b4143=_(_0x5b4143)['union'](_0x22c1d3)['compact']()['value'](),db[_0x297110('0x2')][_0x297110('0x49')]({'where':{'id':_0x4e4f8f[_0x297110('0x1f')]['id']}})[_0x297110('0x18')](function(_0x3c4ec7){const _0x172870=_0x297110;return db['sequelize'][_0x172870('0x4e')](function(_0x2cdc38){const _0x130024=_0x172870;return _0x3c4ec7[_0x130024('0x47')](_0x4e4f8f[_0x130024('0x59')][_0x130024('0x5c')],{'transaction':_0x2cdc38})['then'](function(){const _0x2ee3a1=_0x130024;if(!_[_0x2ee3a1('0x48')](_0x5b4143))return _0x3c4ec7[_0x2ee3a1('0x28')](_0x5b4143,{'transaction':_0x2cdc38});})[_0x130024('0x18')](function(){const _0x5edb27=_0x130024;_0x5b4143[_0x5edb27('0x52')](function(_0x2a9a40){const _0x221ae3=_0x5edb27;socket[_0x221ae3('0x0')](_0x221ae3('0x23'),{'UserId':_0x2a9a40,'OpenchannelQueueId':_0x3c4ec7['id']});});});});});});})[_0x3680f9('0x18')](respondWithStatusCode(_0x457ffd,null))[_0x3680f9('0x5b')](handleError(_0x457ffd,null));},exports[_0x262063('0x62')]=function(_0x23b30d,_0x44fb0f){const _0x27f1e0=_0x262063;return db[_0x27f1e0('0x2')][_0x27f1e0('0x49')]({'where':{'id':_0x23b30d['params']['id']}})[_0x27f1e0('0x18')](function(_0x439f36){const _0x316c50=_0x27f1e0;if(_0x439f36)return _0x439f36[_0x316c50('0x62')](_0x23b30d[_0x316c50('0x69')][_0x316c50('0x5c')],{'through':_[_0x316c50('0x12')](_0x23b30d[_0x316c50('0x69')],[_0x316c50('0x5c'),'id'])})['then'](function(_0x44b7a9){const _0xc3d572=_0x316c50;for(let _0x210b6e=0x0;_0x210b6e<_0x23b30d[_0xc3d572('0x69')]['ids'][_0xc3d572('0x19')];_0x210b6e+=0x1){socket[_0xc3d572('0x0')](_0xc3d572('0xa'),{'UserId':_0x23b30d[_0xc3d572('0x69')][_0xc3d572('0x5c')][_0x210b6e],'OpenchannelQueueId':_0x23b30d[_0xc3d572('0x1f')]['id']});}return _0x44b7a9;});})[_0x27f1e0('0x18')](respondWithResult(_0x44fb0f,null))['catch'](handleError(_0x44fb0f,null));},exports[_0x262063('0x28')]=function(_0x4b0260,_0x2914da){const _0x36fa84=_0x262063;return db[_0x36fa84('0x2')][_0x36fa84('0x49')]({'where':{'id':_0x4b0260[_0x36fa84('0x1f')]['id']}})[_0x36fa84('0x18')](handleEntityNotFound(_0x2914da,null))[_0x36fa84('0x18')](function(_0x50dbbc){const _0x4aed4e=_0x36fa84;if(_0x50dbbc)return _0x50dbbc['removeAgents'](_0x4b0260['query'][_0x4aed4e('0x5c')])['then'](function(){const _0xe20f2d=_0x4aed4e;if(_[_0xe20f2d('0x2d')](_0x4b0260['query']['ids']))for(let _0x2b8156=0x0;_0x2b8156<_0x4b0260[_0xe20f2d('0x59')][_0xe20f2d('0x5c')][_0xe20f2d('0x19')];_0x2b8156+=0x1){socket[_0xe20f2d('0x0')](_0xe20f2d('0x23'),{'UserId':Number(_0x4b0260[_0xe20f2d('0x59')][_0xe20f2d('0x5c')][_0x2b8156]),'OpenchannelQueueId':Number(_0x4b0260[_0xe20f2d('0x1f')]['id'])});}else socket[_0xe20f2d('0x0')]('userOpenchannelQueue:remove',{'UserId':Number(_0x4b0260['query'][_0xe20f2d('0x5c')]),'OpenchannelQueueId':Number(_0x4b0260[_0xe20f2d('0x1f')]['id'])});});})['then'](respondWithStatusCode(_0x2914da,null))[_0x36fa84('0x5b')](handleError(_0x2914da,null));},exports[_0x262063('0x1a')]=function(_0x31ae29,_0x32ff5b){const _0x299139=_0x262063;let _0x1ffade={};const _0x29718c={};let _0x517dce,_0x6a0f65;return db[_0x299139('0x2')]['findOne']({'where':{'id':_0x31ae29[_0x299139('0x1f')]['id']}})[_0x299139('0x18')](handleEntityNotFound(_0x32ff5b,null))[_0x299139('0x18')](function(_0x493f54){const _0x3040a6=_0x299139;if(_0x493f54)return _0x517dce=_0x493f54,_0x29718c[_0x3040a6('0x55')]=_['keys'](db[_0x3040a6('0x27')]['rawAttributes']),_0x29718c[_0x3040a6('0x59')]=_['keys'](_0x31ae29['query']),_0x29718c[_0x3040a6('0x10')]=_[_0x3040a6('0x3d')](_0x29718c[_0x3040a6('0x55')],_0x29718c[_0x3040a6('0x59')]),_0x1ffade[_0x3040a6('0xe')]=_[_0x3040a6('0x3d')](_0x29718c[_0x3040a6('0x55')],qs[_0x3040a6('0x42')](_0x31ae29[_0x3040a6('0x59')][_0x3040a6('0x42')])),_0x1ffade[_0x3040a6('0xe')]=_0x1ffade[_0x3040a6('0xe')][_0x3040a6('0x19')]?_0x1ffade['attributes']:_0x29718c['model'],_0x1ffade[_0x3040a6('0x1')]=qs[_0x3040a6('0x33')](_0x31ae29['query'][_0x3040a6('0x33')]),_0x1ffade['where']=qs['filters'](_[_0x3040a6('0x1d')](_0x31ae29['query'],_0x29718c[_0x3040a6('0x10')])),_0x31ae29[_0x3040a6('0x59')][_0x3040a6('0xb')]&&(_0x1ffade[_0x3040a6('0x51')]=_[_0x3040a6('0x32')](_0x1ffade['where'],{[Op['or']]:_['map'](_0x1ffade['attributes'],function(_0x5b5eab){const _0x3bba72=_0x3040a6,_0x373ae3={};return _0x373ae3[_0x5b5eab]={[Op[_0x3bba72('0x4b')]]:'%'+_0x31ae29[_0x3bba72('0x59')]['filter']+'%'},_0x373ae3;})})),_0x1ffade=_[_0x3040a6('0x32')]({},_0x1ffade,_0x31ae29[_0x3040a6('0x5')]),_0x517dce[_0x3040a6('0x1a')](_0x1ffade);})[_0x299139('0x18')](function(_0x519705){const _0x2f94fc=_0x299139;if(_0x519705)return _0x6a0f65=_0x519705[_0x2f94fc('0x19')],typeof _0x31ae29[_0x2f94fc('0x59')][_0x2f94fc('0x40')]===_0x2f94fc('0x5a')&&(_0x1ffade[_0x2f94fc('0x2b')]=qs[_0x2f94fc('0x2b')](_0x31ae29['query'][_0x2f94fc('0x2b')]),_0x1ffade['offset']=qs['offset'](_0x31ae29[_0x2f94fc('0x59')][_0x2f94fc('0x5f')])),_0x517dce['getAgents'](_0x1ffade);})['then'](function(_0x29d361){if(_0x29d361)return _0x29d361?{'count':_0x6a0f65,'rows':_0x29d361}:null;})[_0x299139('0x18')](respondWithResult(_0x32ff5b,null))[_0x299139('0x5b')](handleError(_0x32ff5b,null));}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.events.js b/server/api/openchannelQueue/openchannelQueue.events.js index 526cf8c..0437d11 100644 --- a/server/api/openchannelQueue/openchannelQueue.events.js +++ b/server/api/openchannelQueue/openchannelQueue.events.js @@ -1 +1 @@ -const a495_0x3f0d=['../../mysqldb','emit','events','setMaxListeners','exports','update','remove','OpenchannelQueue'];(function(_0x5e1295,_0x3f0d36){const _0x147637=function(_0x3bfab3){while(--_0x3bfab3){_0x5e1295['push'](_0x5e1295['shift']());}};_0x147637(++_0x3f0d36);}(a495_0x3f0d,0x1e9));const a495_0x1476=function(_0x5e1295,_0x3f0d36){_0x5e1295=_0x5e1295-0x0;let _0x147637=a495_0x3f0d[_0x5e1295];return _0x147637;};const _0x5d9a85=a495_0x1476;'use strict';const EventEmitter=require(_0x5d9a85('0x1')),OpenchannelQueue=require(_0x5d9a85('0x7'))['db'][_0x5d9a85('0x6')],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0x5d9a85('0x2')](0x0);const events={'afterCreate':'save','afterUpdate':_0x5d9a85('0x4'),'afterDestroy':_0x5d9a85('0x5')};function emitEvent(_0x3bfab3){return function(_0x1f5215){const _0x21f26a=a495_0x1476;OpenchannelQueueEvents[_0x21f26a('0x0')](_0x3bfab3+':'+_0x1f5215['id'],_0x1f5215),OpenchannelQueueEvents[_0x21f26a('0x0')](_0x3bfab3,_0x1f5215);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];OpenchannelQueue['addHook'](e,emitEvent(event));}}module[_0x5d9a85('0x3')]=OpenchannelQueueEvents; \ No newline at end of file +const a495_0x35c8=['events','addHook','setMaxListeners','OpenchannelQueue','save','exports','emit','undefined','update'];(function(_0x5d26e8,_0x35c882){const _0x2980a8=function(_0x162847){while(--_0x162847){_0x5d26e8['push'](_0x5d26e8['shift']());}};_0x2980a8(++_0x35c882);}(a495_0x35c8,0x140));const a495_0x2980=function(_0x5d26e8,_0x35c882){_0x5d26e8=_0x5d26e8-0x0;let _0x2980a8=a495_0x35c8[_0x5d26e8];return _0x2980a8;};const _0x47e74c=a495_0x2980;'use strict';const EventEmitter=require(_0x47e74c('0x4')),OpenchannelQueue=require('../../mysqldb')['db'][_0x47e74c('0x7')],OpenchannelQueueEvents=new EventEmitter();OpenchannelQueueEvents[_0x47e74c('0x6')](0x0);const events={'afterCreate':_0x47e74c('0x8'),'afterUpdate':_0x47e74c('0x3'),'afterDestroy':'remove'};function emitEvent(_0x162847){return function(_0x37e798){const _0x24bf75=a495_0x2980;OpenchannelQueueEvents['emit'](_0x162847+':'+_0x37e798['id'],_0x37e798),OpenchannelQueueEvents[_0x24bf75('0x1')](_0x162847,_0x37e798);};}for(const e in events){if(typeof events[e]!==_0x47e74c('0x2')){const event=events[e];OpenchannelQueue[_0x47e74c('0x5')](e,emitEvent(event));}}module[_0x47e74c('0x0')]=OpenchannelQueueEvents; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.model.js b/server/api/openchannelQueue/openchannelQueue.model.js index 8e0225c..4489bd3 100644 --- a/server/api/openchannelQueue/openchannelQueue.model.js +++ b/server/api/openchannelQueue/openchannelQueue.model.js @@ -1 +1 @@ -const a496_0x57f8=['OpenchannelQueue','exports','define','openchannel_queues'];(function(_0x45ca16,_0x57f836){const _0x15282f=function(_0xeea098){while(--_0xeea098){_0x45ca16['push'](_0x45ca16['shift']());}};_0x15282f(++_0x57f836);}(a496_0x57f8,0x162));const a496_0x1528=function(_0x45ca16,_0x57f836){_0x45ca16=_0x45ca16-0x0;let _0x15282f=a496_0x57f8[_0x45ca16];return _0x15282f;};const _0x958f13=a496_0x1528;'use strict';const attributes=require('./openchannelQueue.attributes');module[_0x958f13('0x3')]=function(_0xeea098){const _0x248e7f=_0x958f13,_0x32dea1=_0xeea098[_0x248e7f('0x0')](_0x248e7f('0x2'),attributes,{'tableName':_0x248e7f('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x32dea1;}; \ No newline at end of file +const a496_0x5c7d=['exports','openchannel_queues','./openchannelQueue.attributes'];(function(_0x3fd457,_0x5c7d79){const _0x4bdc5a=function(_0x275534){while(--_0x275534){_0x3fd457['push'](_0x3fd457['shift']());}};_0x4bdc5a(++_0x5c7d79);}(a496_0x5c7d,0xee));const a496_0x4bdc=function(_0x3fd457,_0x5c7d79){_0x3fd457=_0x3fd457-0x0;let _0x4bdc5a=a496_0x5c7d[_0x3fd457];return _0x4bdc5a;};const _0x708557=a496_0x4bdc;'use strict';const attributes=require(_0x708557('0x1'));module[_0x708557('0x2')]=function(_0x275534){const _0x3df7b3=_0x708557,_0xcf0ce=_0x275534['define']('OpenchannelQueue',attributes,{'tableName':_0x3df7b3('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xcf0ce;}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.rpc.js b/server/api/openchannelQueue/openchannelQueue.rpc.js index c7f4454..e3ac440 100644 --- a/server/api/openchannelQueue/openchannelQueue.rpc.js +++ b/server/api/openchannelQueue/openchannelQueue.rpc.js @@ -1 +1 @@ -const a497_0x58fb=['ShowOpenchannelQueue','catch','../../config/logger','GetOpenchannelQueue','options','rpc','attributes','findOne','register','limit','message','where','raw','./openchannelQueue.socket','stringify','map','then','include','error','model','info','debug'];(function(_0x1bf602,_0x58fb88){const _0x1467a6=function(_0x2e5477){while(--_0x2e5477){_0x1bf602['push'](_0x1bf602['shift']());}};_0x1467a6(++_0x58fb88);}(a497_0x58fb,0xb6));const a497_0x1467=function(_0x1bf602,_0x58fb88){_0x1bf602=_0x1bf602-0x0;let _0x1467a6=a497_0x58fb[_0x1bf602];return _0x1467a6;};const _0x2f542f=a497_0x1467;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x2f542f('0x12'))(_0x2f542f('0x15')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x2f542f('0x7'))[_0x2f542f('0x2')](socket),exports['GetOpenchannelQueue']=function(_0x2e5477){const _0x1e1d22=this;return new Promise(function(_0x10e7c8,_0x28ce05){const _0x564651=a497_0x1467;return db['OpenchannelQueue']['findAll']({'raw':_0x2e5477[_0x564651('0x14')]?_0x2e5477[_0x564651('0x14')][_0x564651('0x6')]===undefined?!![]:![]:!![],'where':_0x2e5477['options']?_0x2e5477[_0x564651('0x14')][_0x564651('0x5')]||null:null,'attributes':_0x2e5477[_0x564651('0x14')]?_0x2e5477[_0x564651('0x14')][_0x564651('0x0')]||null:null,'limit':_0x2e5477['options']?_0x2e5477[_0x564651('0x14')][_0x564651('0x3')]||null:null,'include':_0x2e5477[_0x564651('0x14')]?_0x2e5477[_0x564651('0x14')]['include']?_['map'](_0x2e5477[_0x564651('0x14')]['include'],function(_0x5c24c){const _0x455e3c=_0x564651;return{'model':db[_0x5c24c[_0x455e3c('0xd')]],'as':_0x5c24c['as'],'attributes':_0x5c24c[_0x455e3c('0x0')],'include':_0x5c24c['include']?_['map'](_0x5c24c[_0x455e3c('0xb')],function(_0x7c86e4){const _0x140d79=_0x455e3c;return{'model':db[_0x7c86e4[_0x140d79('0xd')]],'as':_0x7c86e4['as'],'attributes':_0x7c86e4[_0x140d79('0x0')],'include':_0x7c86e4[_0x140d79('0xb')]?_[_0x140d79('0x9')](_0x7c86e4[_0x140d79('0xb')],function(_0x3c8b70){const _0x3334dc=_0x140d79;return{'model':db[_0x3c8b70[_0x3334dc('0xd')]],'as':_0x3c8b70['as'],'attributes':_0x3c8b70['attributes']};}):[]};}):[]};}):[]:[]})[_0x564651('0xa')](function(_0x5535a0){const _0x15fb12=_0x564651;logger[_0x15fb12('0xe')](_0x15fb12('0x13'),_0x2e5477),logger[_0x15fb12('0xf')]('GetOpenchannelQueue',_0x2e5477,JSON[_0x15fb12('0x8')](_0x5535a0)),_0x10e7c8(_0x5535a0);})[_0x564651('0x11')](function(_0x189429){const _0x50cebf=_0x564651;logger[_0x50cebf('0xc')](_0x50cebf('0x13'),_0x189429[_0x50cebf('0x4')],_0x2e5477),_0x28ce05(_0x1e1d22[_0x50cebf('0xc')](0x1f4,_0x189429[_0x50cebf('0x4')]));});});},exports[_0x2f542f('0x10')]=function(_0x25ccd8){const _0xbe4d94=this;return new Promise(function(_0x41f6c7,_0x174151){const _0x29adac=a497_0x1467;return db['OpenchannelQueue'][_0x29adac('0x1')]({'raw':_0x25ccd8[_0x29adac('0x14')]?_0x25ccd8['options'][_0x29adac('0x6')]===undefined?!![]:![]:!![],'where':_0x25ccd8[_0x29adac('0x14')]?_0x25ccd8[_0x29adac('0x14')][_0x29adac('0x5')]||null:null,'attributes':_0x25ccd8['options']?_0x25ccd8[_0x29adac('0x14')][_0x29adac('0x0')]||null:null,'include':_0x25ccd8['options']?_0x25ccd8[_0x29adac('0x14')][_0x29adac('0xb')]?_['map'](_0x25ccd8[_0x29adac('0x14')][_0x29adac('0xb')],function(_0x260255){const _0x5d11a8=_0x29adac;return{'model':db[_0x260255[_0x5d11a8('0xd')]],'as':_0x260255['as'],'attributes':_0x260255[_0x5d11a8('0x0')],'include':_0x260255[_0x5d11a8('0xb')]?_[_0x5d11a8('0x9')](_0x260255[_0x5d11a8('0xb')],function(_0x2bceec){const _0x146efc=_0x5d11a8;return{'model':db[_0x2bceec[_0x146efc('0xd')]],'as':_0x2bceec['as'],'attributes':_0x2bceec['attributes'],'include':_0x2bceec[_0x146efc('0xb')]?_[_0x146efc('0x9')](_0x2bceec[_0x146efc('0xb')],function(_0x2264f5){const _0x3136af=_0x146efc;return{'model':db[_0x2264f5[_0x3136af('0xd')]],'as':_0x2264f5['as'],'attributes':_0x2264f5['attributes']};}):[]};}):[]};}):[]:[]})[_0x29adac('0xa')](function(_0x391847){const _0x28ad28=_0x29adac;logger[_0x28ad28('0xe')](_0x28ad28('0x10'),_0x25ccd8),logger[_0x28ad28('0xf')]('ShowOpenchannelQueue',_0x25ccd8,JSON[_0x28ad28('0x8')](_0x391847)),_0x41f6c7(_0x391847);})[_0x29adac('0x11')](function(_0x5f402c){const _0x3b6516=_0x29adac;logger[_0x3b6516('0xc')](_0x3b6516('0x10'),_0x5f402c['message'],_0x25ccd8),_0x174151(_0xbe4d94['error'](0x1f4,_0x5f402c['message']));});});}; \ No newline at end of file +const a497_0x2d67=['OpenchannelQueue','error','then','../../config/logger','map','include','ShowOpenchannelQueue','debug','rpc','model','findAll','../../mysqldb','register','raw','message','catch','lodash','limit','info','findOne','GetOpenchannelQueue','attributes','./openchannelQueue.socket','options','stringify'];(function(_0x4395bf,_0x2d671e){const _0x5ba3ed=function(_0x2697e9){while(--_0x2697e9){_0x4395bf['push'](_0x4395bf['shift']());}};_0x5ba3ed(++_0x2d671e);}(a497_0x2d67,0x93));const a497_0x5ba3=function(_0x4395bf,_0x2d671e){_0x4395bf=_0x4395bf-0x0;let _0x5ba3ed=a497_0x2d67[_0x4395bf];return _0x5ba3ed;};const _0x28a5fd=a497_0x5ba3;'use strict';const _=require(_0x28a5fd('0x13')),db=require(_0x28a5fd('0xe'))['db'],logger=require(_0x28a5fd('0x6'))(_0x28a5fd('0xb')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x28a5fd('0x0'))[_0x28a5fd('0xf')](socket),exports['GetOpenchannelQueue']=function(_0x2697e9){const _0x5103ce=this;return new Promise(function(_0x23974e,_0x227083){const _0x5410f9=a497_0x5ba3;return db[_0x5410f9('0x3')][_0x5410f9('0xd')]({'raw':_0x2697e9['options']?_0x2697e9[_0x5410f9('0x1')][_0x5410f9('0x10')]===undefined?!![]:![]:!![],'where':_0x2697e9[_0x5410f9('0x1')]?_0x2697e9['options']['where']||null:null,'attributes':_0x2697e9['options']?_0x2697e9[_0x5410f9('0x1')][_0x5410f9('0x18')]||null:null,'limit':_0x2697e9[_0x5410f9('0x1')]?_0x2697e9[_0x5410f9('0x1')][_0x5410f9('0x14')]||null:null,'include':_0x2697e9[_0x5410f9('0x1')]?_0x2697e9[_0x5410f9('0x1')]['include']?_['map'](_0x2697e9[_0x5410f9('0x1')]['include'],function(_0x71b52e){const _0x4630e1=_0x5410f9;return{'model':db[_0x71b52e[_0x4630e1('0xc')]],'as':_0x71b52e['as'],'attributes':_0x71b52e[_0x4630e1('0x18')],'include':_0x71b52e[_0x4630e1('0x8')]?_[_0x4630e1('0x7')](_0x71b52e[_0x4630e1('0x8')],function(_0x2b791a){const _0x3a7bb9=_0x4630e1;return{'model':db[_0x2b791a[_0x3a7bb9('0xc')]],'as':_0x2b791a['as'],'attributes':_0x2b791a[_0x3a7bb9('0x18')],'include':_0x2b791a[_0x3a7bb9('0x8')]?_['map'](_0x2b791a['include'],function(_0x40c16f){return{'model':db[_0x40c16f['model']],'as':_0x40c16f['as'],'attributes':_0x40c16f['attributes']};}):[]};}):[]};}):[]:[]})[_0x5410f9('0x5')](function(_0x1d41d4){const _0x289a2f=_0x5410f9;logger['info'](_0x289a2f('0x17'),_0x2697e9),logger['debug'](_0x289a2f('0x17'),_0x2697e9,JSON['stringify'](_0x1d41d4)),_0x23974e(_0x1d41d4);})[_0x5410f9('0x12')](function(_0x112fe7){const _0x139381=_0x5410f9;logger[_0x139381('0x4')]('GetOpenchannelQueue',_0x112fe7[_0x139381('0x11')],_0x2697e9),_0x227083(_0x5103ce[_0x139381('0x4')](0x1f4,_0x112fe7['message']));});});},exports[_0x28a5fd('0x9')]=function(_0x41ec28){const _0x2f1363=this;return new Promise(function(_0x978e20,_0x4ef7){const _0xfa00ff=a497_0x5ba3;return db[_0xfa00ff('0x3')][_0xfa00ff('0x16')]({'raw':_0x41ec28[_0xfa00ff('0x1')]?_0x41ec28[_0xfa00ff('0x1')]['raw']===undefined?!![]:![]:!![],'where':_0x41ec28[_0xfa00ff('0x1')]?_0x41ec28[_0xfa00ff('0x1')]['where']||null:null,'attributes':_0x41ec28[_0xfa00ff('0x1')]?_0x41ec28[_0xfa00ff('0x1')][_0xfa00ff('0x18')]||null:null,'include':_0x41ec28[_0xfa00ff('0x1')]?_0x41ec28[_0xfa00ff('0x1')][_0xfa00ff('0x8')]?_[_0xfa00ff('0x7')](_0x41ec28[_0xfa00ff('0x1')][_0xfa00ff('0x8')],function(_0x262a71){const _0x4eaddb=_0xfa00ff;return{'model':db[_0x262a71['model']],'as':_0x262a71['as'],'attributes':_0x262a71[_0x4eaddb('0x18')],'include':_0x262a71[_0x4eaddb('0x8')]?_[_0x4eaddb('0x7')](_0x262a71['include'],function(_0x1c7004){const _0x153433=_0x4eaddb;return{'model':db[_0x1c7004[_0x153433('0xc')]],'as':_0x1c7004['as'],'attributes':_0x1c7004[_0x153433('0x18')],'include':_0x1c7004['include']?_[_0x153433('0x7')](_0x1c7004['include'],function(_0x2b08e2){const _0x5c4987=_0x153433;return{'model':db[_0x2b08e2[_0x5c4987('0xc')]],'as':_0x2b08e2['as'],'attributes':_0x2b08e2[_0x5c4987('0x18')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x297ba3){const _0x1f1759=_0xfa00ff;logger[_0x1f1759('0x15')](_0x1f1759('0x9'),_0x41ec28),logger[_0x1f1759('0xa')](_0x1f1759('0x9'),_0x41ec28,JSON[_0x1f1759('0x2')](_0x297ba3)),_0x978e20(_0x297ba3);})[_0xfa00ff('0x12')](function(_0x449d35){const _0x40240d=_0xfa00ff;logger[_0x40240d('0x4')]('ShowOpenchannelQueue',_0x449d35[_0x40240d('0x11')],_0x41ec28),_0x4ef7(_0x2f1363['error'](0x1f4,_0x449d35[_0x40240d('0x11')]));});});}; \ No newline at end of file diff --git a/server/api/openchannelQueue/openchannelQueue.socket.js b/server/api/openchannelQueue/openchannelQueue.socket.js index beb4448..dd704f7 100644 --- a/server/api/openchannelQueue/openchannelQueue.socket.js +++ b/server/api/openchannelQueue/openchannelQueue.socket.js @@ -1 +1 @@ -const a498_0x54ed=['emit','remove','length','register','./openchannelQueue.events','openchannelQueue:','update','save'];(function(_0x458c9b,_0x54ed09){const _0x5cbd87=function(_0x41d616){while(--_0x41d616){_0x458c9b['push'](_0x458c9b['shift']());}};_0x5cbd87(++_0x54ed09);}(a498_0x54ed,0x1ca));const a498_0x5cbd=function(_0x458c9b,_0x54ed09){_0x458c9b=_0x458c9b-0x0;let _0x5cbd87=a498_0x54ed[_0x458c9b];return _0x5cbd87;};const _0x5902e4=a498_0x5cbd;'use strict';const OpenchannelQueueEvents=require(_0x5902e4('0x2')),events=[_0x5902e4('0x5'),_0x5902e4('0x7'),_0x5902e4('0x4')];function createListener(_0x41d616,_0x53985d){return function(_0x1bffab){const _0x1e44da=a498_0x5cbd;_0x53985d[_0x1e44da('0x6')](_0x41d616,_0x1bffab);};}exports[_0x5902e4('0x1')]=function(_0x5b98a3){const _0x3a7b1c=_0x5902e4;for(let _0xdb2037=0x0,_0x1839f7=events[_0x3a7b1c('0x0')];_0xdb2037<_0x1839f7;_0xdb2037++){const _0x1ac9a7=events[_0xdb2037],_0x449fe5=createListener(_0x3a7b1c('0x3')+_0x1ac9a7,_0x5b98a3);OpenchannelQueueEvents['on'](_0x1ac9a7,_0x449fe5);}}; \ No newline at end of file +const a498_0x44cc=['length','openchannelQueue:','save','register','remove','./openchannelQueue.events'];(function(_0x3e1dc2,_0x44ccdf){const _0x4d6208=function(_0x1356c6){while(--_0x1356c6){_0x3e1dc2['push'](_0x3e1dc2['shift']());}};_0x4d6208(++_0x44ccdf);}(a498_0x44cc,0xea));const a498_0x4d62=function(_0x3e1dc2,_0x44ccdf){_0x3e1dc2=_0x3e1dc2-0x0;let _0x4d6208=a498_0x44cc[_0x3e1dc2];return _0x4d6208;};const _0x42793f=a498_0x4d62;'use strict';const OpenchannelQueueEvents=require(_0x42793f('0x5')),events=[_0x42793f('0x2'),_0x42793f('0x4'),'update'];function createListener(_0x1356c6,_0x163601){return function(_0x257f4c){_0x163601['emit'](_0x1356c6,_0x257f4c);};}exports[_0x42793f('0x3')]=function(_0x92601d){const _0x1e7707=_0x42793f;for(let _0x1e4017=0x0,_0x3f6e46=events[_0x1e7707('0x0')];_0x1e4017<_0x3f6e46;_0x1e4017++){const _0xa4f945=events[_0x1e4017],_0x44bcb3=createListener(_0x1e7707('0x1')+_0xa4f945,_0x92601d);OpenchannelQueueEvents['on'](_0xa4f945,_0x44bcb3);}}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/index.js b/server/api/openchannelQueueReport/index.js index 16a3ae1..e7faf81 100644 --- a/server/api/openchannelQueueReport/index.js +++ b/server/api/openchannelQueueReport/index.js @@ -1 +1 @@ -const a499_0x132b=['destroy','delete','Router','exports','isAuthenticated','./openchannelQueueReport.controller','describe','../../components/auth/service','show','/describe','index','create','get','express','update'];(function(_0x54dc86,_0x132b6a){const _0x3efaed=function(_0x1941f4){while(--_0x1941f4){_0x54dc86['push'](_0x54dc86['shift']());}};_0x3efaed(++_0x132b6a);}(a499_0x132b,0x16c));const a499_0x3efa=function(_0x54dc86,_0x132b6a){_0x54dc86=_0x54dc86-0x0;let _0x3efaed=a499_0x132b[_0x54dc86];return _0x3efaed;};const _0x5ec483=a499_0x3efa;'use strict';const express=require(_0x5ec483('0x9')),router=express[_0x5ec483('0xd')](),auth=require(_0x5ec483('0x3')),controller=require(_0x5ec483('0x1'));router[_0x5ec483('0x8')]('/',auth[_0x5ec483('0x0')](),controller[_0x5ec483('0x6')]),router[_0x5ec483('0x8')](_0x5ec483('0x5'),auth[_0x5ec483('0x0')](),controller[_0x5ec483('0x2')]),router[_0x5ec483('0x8')]('/:id',auth[_0x5ec483('0x0')](),controller[_0x5ec483('0x4')]),router['post']('/',auth[_0x5ec483('0x0')](),controller[_0x5ec483('0x7')]),router['put']('/:id',auth[_0x5ec483('0x0')](),controller[_0x5ec483('0xa')]),router[_0x5ec483('0xc')]('/:id',auth[_0x5ec483('0x0')](),controller[_0x5ec483('0xb')]),module[_0x5ec483('0xe')]=router; \ No newline at end of file +const a499_0x12f3=['create','./openchannelQueueReport.controller','../../components/auth/service','isAuthenticated','put','post','get','describe','/:id','express','Router','update','delete','index','/describe','show'];(function(_0x138b71,_0x12f343){const _0x3c4608=function(_0x42a781){while(--_0x42a781){_0x138b71['push'](_0x138b71['shift']());}};_0x3c4608(++_0x12f343);}(a499_0x12f3,0xb8));const a499_0x3c46=function(_0x138b71,_0x12f343){_0x138b71=_0x138b71-0x0;let _0x3c4608=a499_0x12f3[_0x138b71];return _0x3c4608;};const _0x1893bf=a499_0x3c46;'use strict';const express=require(_0x1893bf('0x1')),router=express[_0x1893bf('0x2')](),auth=require(_0x1893bf('0xa')),controller=require(_0x1893bf('0x9'));router[_0x1893bf('0xe')]('/',auth['isAuthenticated'](),controller[_0x1893bf('0x5')]),router[_0x1893bf('0xe')](_0x1893bf('0x6'),auth[_0x1893bf('0xb')](),controller[_0x1893bf('0xf')]),router['get'](_0x1893bf('0x0'),auth[_0x1893bf('0xb')](),controller[_0x1893bf('0x7')]),router[_0x1893bf('0xd')]('/',auth[_0x1893bf('0xb')](),controller[_0x1893bf('0x8')]),router[_0x1893bf('0xc')]('/:id',auth['isAuthenticated'](),controller[_0x1893bf('0x3')]),router[_0x1893bf('0x4')](_0x1893bf('0x0'),auth[_0x1893bf('0xb')](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js index ca07bcd..e76b7be 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.attributes.js @@ -1 +1 @@ -const a500_0x5126=['STRING','exports','DATE','sequelize'];(function(_0x103e04,_0x51266f){const _0x26287f=function(_0x36f9a9){while(--_0x36f9a9){_0x103e04['push'](_0x103e04['shift']());}};_0x26287f(++_0x51266f);}(a500_0x5126,0x69));const a500_0x2628=function(_0x103e04,_0x51266f){_0x103e04=_0x103e04-0x0;let _0x26287f=a500_0x5126[_0x103e04];return _0x26287f;};const _0x347d1c=a500_0x2628;'use strict';const Sequelize=require(_0x347d1c('0x2'));module[_0x347d1c('0x0')]={'uniqueid':{'type':Sequelize[_0x347d1c('0x3')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x347d1c('0x1')]},'leaveAt':{'type':Sequelize[_0x347d1c('0x1')]},'acceptAt':{'type':Sequelize[_0x347d1c('0x1')]},'exitAt':{'type':Sequelize['DATE']},'reason':{'type':Sequelize[_0x347d1c('0x3')]}}; \ No newline at end of file +const a500_0x43fc=['STRING','sequelize','DATE'];(function(_0x207fbe,_0x43fc55){const _0x3a8d55=function(_0x34a75f){while(--_0x34a75f){_0x207fbe['push'](_0x207fbe['shift']());}};_0x3a8d55(++_0x43fc55);}(a500_0x43fc,0xff));const a500_0x3a8d=function(_0x207fbe,_0x43fc55){_0x207fbe=_0x207fbe-0x0;let _0x3a8d55=a500_0x43fc[_0x207fbe];return _0x3a8d55;};const _0x32cdb0=a500_0x3a8d;'use strict';const Sequelize=require(_0x32cdb0('0x1'));module['exports']={'uniqueid':{'type':Sequelize[_0x32cdb0('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0x32cdb0('0x0')]},'joinAt':{'type':Sequelize[_0x32cdb0('0x2')]},'leaveAt':{'type':Sequelize[_0x32cdb0('0x2')]},'acceptAt':{'type':Sequelize[_0x32cdb0('0x2')]},'exitAt':{'type':Sequelize[_0x32cdb0('0x2')]},'reason':{'type':Sequelize[_0x32cdb0('0x0')]}}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js index 3e11657..1e740cd 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.controller.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.controller.js @@ -1 +1 @@ -const a501_0x334f=['body','../../mysqldb','type','pick','api','rows','fields','VIRTUAL','sendStatus','filters','create','sort','status','then','map','length','catch','describe','merge','params','nolimit','destroy','limit','fieldName','order','../../components/parsers/qs','filter','findAll','query','intersection','json','stack','send','offset','includeAll','show','update','rawAttributes','attributes','undefined','model','where','count','Content-Range','lodash','keys','key','include','index','OpenchannelQueueReport','sequelize','findOne','../../config/logger'];(function(_0x28439c,_0x334f58){const _0x236881=function(_0x38716e){while(--_0x38716e){_0x28439c['push'](_0x28439c['shift']());}};_0x236881(++_0x334f58);}(a501_0x334f,0x12f));const a501_0x2368=function(_0x28439c,_0x334f58){_0x28439c=_0x28439c-0x0;let _0x236881=a501_0x334f[_0x28439c];return _0x236881;};const _0x12f7b1=a501_0x2368;'use strict';const _=require(_0x12f7b1('0x6')),qs=require(_0x12f7b1('0x28')),logger=require(_0x12f7b1('0xe'))(_0x12f7b1('0x13')),db=require(_0x12f7b1('0x10'))['db'],{Op}=require(_0x12f7b1('0xc'));function respondWithResult(_0x38716e,_0x30249d){return _0x30249d=_0x30249d||0xc8,function(_0x2fa622){const _0xbea826=a501_0x2368;if(_0x2fa622)return _0x38716e['status'](_0x30249d)[_0xbea826('0x2d')](_0x2fa622);};}function respondWithFilteredResult(_0x5cdb52,_0x47a7f0){return function(_0x29dd50){const _0x427c96=a501_0x2368;if(_0x29dd50){const _0x2b1a40=_0x29dd50[_0x427c96('0x4')],_0x13c456=_0x47a7f0[_0x427c96('0x30')];let _0x5babfe=_0x47a7f0['offset']+_0x47a7f0['limit'],_0x38302d;return _0x5babfe>=_0x2b1a40?(_0x5babfe=_0x2b1a40,_0x38302d=0xc8):_0x38302d=0xce,_0x5cdb52['status'](_0x38302d),_0x5cdb52['set'](_0x427c96('0x5'),_0x13c456+'-'+_0x5babfe+'/'+_0x2b1a40)[_0x427c96('0x2d')](_0x29dd50);}return null;};}function saveUpdates(_0xbd1c53){return function(_0x22b106){const _0x18bfaa=a501_0x2368;if(_0x22b106)return _0x22b106[_0x18bfaa('0x33')](_0xbd1c53)[_0x18bfaa('0x1c')](function(_0x3b44f7){return _0x3b44f7;});return null;};}function removeEntity(_0x580951){return function(_0x75886){const _0x49a1ed=a501_0x2368;if(_0x75886)return _0x75886[_0x49a1ed('0x24')]()[_0x49a1ed('0x1c')](function(){const _0x540ace=_0x49a1ed;_0x580951[_0x540ace('0x1b')](0xcc)['end']();});};}function handleEntityNotFound(_0x31a734){return function(_0x1bb520){const _0x1d4d57=a501_0x2368;return!_0x1bb520&&_0x31a734[_0x1d4d57('0x17')](0x194),_0x1bb520;};}function handleError(_0x346306,_0x19c063){return _0x19c063=_0x19c063||0x1f4,function(_0x169a78){const _0x109d5f=a501_0x2368;logger['error'](_0x169a78[_0x109d5f('0x2e')]),_0x169a78['name']&&delete _0x169a78['name'],_0x346306[_0x109d5f('0x1b')](_0x19c063)[_0x109d5f('0x2f')](_0x169a78);};}exports[_0x12f7b1('0xa')]=function(_0x543f51,_0x24d38f){const _0x15ebfa=_0x12f7b1;let _0x3e4a59={};const _0x1d0395={},_0x20eeb8={'count':0x0,'rows':[]},_0x1f0351=_['map'](db['OpenchannelQueueReport'][_0x15ebfa('0x34')],function(_0x52450c){const _0x345714=_0x15ebfa;return{'name':_0x52450c[_0x345714('0x26')],'type':_0x52450c[_0x345714('0x11')][_0x345714('0x8')]};});_0x1d0395[_0x15ebfa('0x2')]=_[_0x15ebfa('0x1d')](_0x1f0351,'name'),_0x1d0395[_0x15ebfa('0x2b')]=_[_0x15ebfa('0x7')](_0x543f51[_0x15ebfa('0x2b')]),_0x1d0395[_0x15ebfa('0x18')]=_[_0x15ebfa('0x2c')](_0x1d0395[_0x15ebfa('0x2')],_0x1d0395[_0x15ebfa('0x2b')]),_0x3e4a59[_0x15ebfa('0x0')]=_['intersection'](_0x1d0395[_0x15ebfa('0x2')],qs['fields'](_0x543f51[_0x15ebfa('0x2b')][_0x15ebfa('0x15')])),_0x3e4a59[_0x15ebfa('0x0')]=_0x3e4a59[_0x15ebfa('0x0')][_0x15ebfa('0x1e')]?_0x3e4a59[_0x15ebfa('0x0')]:_0x1d0395[_0x15ebfa('0x2')];typeof _0x543f51[_0x15ebfa('0x2b')][_0x15ebfa('0x23')]===_0x15ebfa('0x1')&&(_0x3e4a59[_0x15ebfa('0x25')]=qs[_0x15ebfa('0x25')](_0x543f51[_0x15ebfa('0x2b')]['limit']),_0x3e4a59['offset']=qs[_0x15ebfa('0x30')](_0x543f51['query'][_0x15ebfa('0x30')]));_0x3e4a59[_0x15ebfa('0x27')]=qs[_0x15ebfa('0x1a')](_0x543f51[_0x15ebfa('0x2b')][_0x15ebfa('0x1a')]),_0x3e4a59[_0x15ebfa('0x3')]=qs[_0x15ebfa('0x18')](_[_0x15ebfa('0x12')](_0x543f51['query'],_0x1d0395[_0x15ebfa('0x18')]),_0x1f0351);_0x543f51[_0x15ebfa('0x2b')][_0x15ebfa('0x29')]&&(_0x3e4a59[_0x15ebfa('0x3')]=_[_0x15ebfa('0x21')](_0x3e4a59[_0x15ebfa('0x3')],{[Op['or']]:_[_0x15ebfa('0x1d')](_0x1f0351,function(_0x290d7e){const _0x4c0186=_0x15ebfa;if(_0x290d7e[_0x4c0186('0x11')]!==_0x4c0186('0x16')){const _0x4905e5={};return _0x4905e5[_0x290d7e['name']]={[Op['like']]:'%'+_0x543f51[_0x4c0186('0x2b')][_0x4c0186('0x29')]+'%'},_0x4905e5;}})}));_0x3e4a59=_[_0x15ebfa('0x21')]({},_0x3e4a59,_0x543f51['options']);const _0x500886={'where':_0x3e4a59[_0x15ebfa('0x3')]};return db[_0x15ebfa('0xb')]['count'](_0x500886)[_0x15ebfa('0x1c')](function(_0x4e1c47){const _0x3ed8ee=_0x15ebfa;return _0x20eeb8['count']=_0x4e1c47,_0x543f51[_0x3ed8ee('0x2b')][_0x3ed8ee('0x31')]&&(_0x3e4a59['include']=[{'all':!![]}]),db[_0x3ed8ee('0xb')][_0x3ed8ee('0x2a')](_0x3e4a59);})['then'](function(_0x3541a8){const _0x545155=_0x15ebfa;return _0x20eeb8[_0x545155('0x14')]=_0x3541a8,_0x20eeb8;})[_0x15ebfa('0x1c')](respondWithFilteredResult(_0x24d38f,_0x3e4a59))['catch'](handleError(_0x24d38f,null));},exports[_0x12f7b1('0x32')]=function(_0x5140ec,_0x433af6){const _0x593457=_0x12f7b1;let _0xce0957={'raw':!![],'where':{'id':_0x5140ec[_0x593457('0x22')]['id']}};const _0x2109cf={};return _0x2109cf[_0x593457('0x2')]=_[_0x593457('0x7')](db[_0x593457('0xb')]['rawAttributes']),_0x2109cf[_0x593457('0x2b')]=_[_0x593457('0x7')](_0x5140ec['query']),_0x2109cf[_0x593457('0x18')]=_[_0x593457('0x2c')](_0x2109cf[_0x593457('0x2')],_0x2109cf[_0x593457('0x2b')]),_0xce0957[_0x593457('0x0')]=_[_0x593457('0x2c')](_0x2109cf['model'],qs[_0x593457('0x15')](_0x5140ec['query']['fields'])),_0xce0957[_0x593457('0x0')]=_0xce0957[_0x593457('0x0')][_0x593457('0x1e')]?_0xce0957[_0x593457('0x0')]:_0x2109cf[_0x593457('0x2')],_0x5140ec[_0x593457('0x2b')][_0x593457('0x31')]&&(_0xce0957[_0x593457('0x9')]=[{'all':!![]}]),_0xce0957=_[_0x593457('0x21')]({},_0xce0957,_0x5140ec['options']),db['OpenchannelQueueReport']['findOne'](_0xce0957)[_0x593457('0x1c')](handleEntityNotFound(_0x433af6,null))['then'](respondWithResult(_0x433af6,null))[_0x593457('0x1f')](handleError(_0x433af6,null));},exports[_0x12f7b1('0x19')]=function(_0x442f42,_0x4bd06){const _0x59c6fe=_0x12f7b1;return db['OpenchannelQueueReport'][_0x59c6fe('0x19')](_0x442f42[_0x59c6fe('0xf')],{})[_0x59c6fe('0x1c')](respondWithResult(_0x4bd06,0xc9))[_0x59c6fe('0x1f')](handleError(_0x4bd06,null));},exports[_0x12f7b1('0x33')]=function(_0xfb8141,_0x659625){const _0x507901=_0x12f7b1;return _0xfb8141['body']['id']&&delete _0xfb8141[_0x507901('0xf')]['id'],db[_0x507901('0xb')][_0x507901('0xd')]({'where':{'id':_0xfb8141[_0x507901('0x22')]['id']}})[_0x507901('0x1c')](handleEntityNotFound(_0x659625,null))[_0x507901('0x1c')](saveUpdates(_0xfb8141[_0x507901('0xf')],null))[_0x507901('0x1c')](respondWithResult(_0x659625,null))[_0x507901('0x1f')](handleError(_0x659625,null));},exports[_0x12f7b1('0x24')]=function(_0x3b55e0,_0x4ca794){const _0x334409=_0x12f7b1;return db[_0x334409('0xb')][_0x334409('0xd')]({'where':{'id':_0x3b55e0[_0x334409('0x22')]['id']}})[_0x334409('0x1c')](handleEntityNotFound(_0x4ca794,null))[_0x334409('0x1c')](removeEntity(_0x4ca794,null))['catch'](handleError(_0x4ca794,null));},exports[_0x12f7b1('0x20')]=function(_0x496f76,_0x5b2ea9){const _0x443dae=_0x12f7b1;return db[_0x443dae('0xb')][_0x443dae('0x20')]()[_0x443dae('0x1c')](respondWithResult(_0x5b2ea9,null))[_0x443dae('0x1f')](handleError(_0x5b2ea9,null));}; \ No newline at end of file +const a501_0x1269=['query','count','create','error','options','params','show','api','sort','fields','body','name','../../mysqldb','findOne','nolimit','describe','sendStatus','then','limit','update','order','rawAttributes','destroy','undefined','like','offset','map','include','../../components/parsers/qs','lodash','merge','includeAll','OpenchannelQueueReport','pick','intersection','filter','../../config/logger','attributes','Content-Range','json','type','filters','catch','status','keys','model','send','length','where'];(function(_0x25eac1,_0x126925){const _0x143c16=function(_0x41d3ee){while(--_0x41d3ee){_0x25eac1['push'](_0x25eac1['shift']());}};_0x143c16(++_0x126925);}(a501_0x1269,0x75));const a501_0x143c=function(_0x25eac1,_0x126925){_0x25eac1=_0x25eac1-0x0;let _0x143c16=a501_0x1269[_0x25eac1];return _0x143c16;};const _0x52f392=a501_0x143c;'use strict';const _=require(_0x52f392('0xa')),qs=require(_0x52f392('0x9')),logger=require(_0x52f392('0x11'))(_0x52f392('0x25')),db=require(_0x52f392('0x2a'))['db'],{Op}=require('sequelize');function respondWithResult(_0x41d3ee,_0x325c92){return _0x325c92=_0x325c92||0xc8,function(_0x5862e8){const _0x1e286a=a501_0x143c;if(_0x5862e8)return _0x41d3ee[_0x1e286a('0x18')](_0x325c92)[_0x1e286a('0x14')](_0x5862e8);};}function respondWithFilteredResult(_0x1c4383,_0x5f121c){return function(_0x1968d1){const _0x280e88=a501_0x143c;if(_0x1968d1){const _0x13d5c8=_0x1968d1['count'],_0x15644b=_0x5f121c[_0x280e88('0x6')];let _0x5263b8=_0x5f121c[_0x280e88('0x6')]+_0x5f121c[_0x280e88('0x30')],_0x4a906f;return _0x5263b8>=_0x13d5c8?(_0x5263b8=_0x13d5c8,_0x4a906f=0xc8):_0x4a906f=0xce,_0x1c4383['status'](_0x4a906f),_0x1c4383['set'](_0x280e88('0x13'),_0x15644b+'-'+_0x5263b8+'/'+_0x13d5c8)['json'](_0x1968d1);}return null;};}function saveUpdates(_0x1e5415){return function(_0x43b297){const _0x2d9164=a501_0x143c;if(_0x43b297)return _0x43b297['update'](_0x1e5415)[_0x2d9164('0x2f')](function(_0x3f4f11){return _0x3f4f11;});return null;};}function removeEntity(_0xca07bd){return function(_0x5da91c){const _0x12ed21=a501_0x143c;if(_0x5da91c)return _0x5da91c[_0x12ed21('0x3')]()[_0x12ed21('0x2f')](function(){const _0x2bc8b3=_0x12ed21;_0xca07bd[_0x2bc8b3('0x18')](0xcc)['end']();});};}function handleEntityNotFound(_0x5e9e82){return function(_0x439175){const _0x4a1c77=a501_0x143c;return!_0x439175&&_0x5e9e82[_0x4a1c77('0x2e')](0x194),_0x439175;};}function handleError(_0x1d6268,_0xd071a1){return _0xd071a1=_0xd071a1||0x1f4,function(_0x352e1d){const _0x4e71d4=a501_0x143c;logger[_0x4e71d4('0x21')](_0x352e1d['stack']),_0x352e1d[_0x4e71d4('0x29')]&&delete _0x352e1d[_0x4e71d4('0x29')],_0x1d6268[_0x4e71d4('0x18')](_0xd071a1)[_0x4e71d4('0x1b')](_0x352e1d);};}exports['index']=function(_0x6e7000,_0x58de22){const _0x273ce2=_0x52f392;let _0x4662a4={};const _0x8f454c={},_0x4d0280={'count':0x0,'rows':[]},_0x517ef5=_[_0x273ce2('0x7')](db['OpenchannelQueueReport'][_0x273ce2('0x2')],function(_0x540f00){const _0x1e8a63=_0x273ce2;return{'name':_0x540f00['fieldName'],'type':_0x540f00[_0x1e8a63('0x15')]['key']};});_0x8f454c['model']=_[_0x273ce2('0x7')](_0x517ef5,'name'),_0x8f454c['query']=_[_0x273ce2('0x19')](_0x6e7000[_0x273ce2('0x1e')]),_0x8f454c[_0x273ce2('0x16')]=_[_0x273ce2('0xf')](_0x8f454c['model'],_0x8f454c[_0x273ce2('0x1e')]),_0x4662a4[_0x273ce2('0x12')]=_[_0x273ce2('0xf')](_0x8f454c[_0x273ce2('0x1a')],qs[_0x273ce2('0x27')](_0x6e7000[_0x273ce2('0x1e')][_0x273ce2('0x27')])),_0x4662a4['attributes']=_0x4662a4[_0x273ce2('0x12')][_0x273ce2('0x1c')]?_0x4662a4[_0x273ce2('0x12')]:_0x8f454c[_0x273ce2('0x1a')];typeof _0x6e7000[_0x273ce2('0x1e')][_0x273ce2('0x2c')]===_0x273ce2('0x4')&&(_0x4662a4[_0x273ce2('0x30')]=qs[_0x273ce2('0x30')](_0x6e7000[_0x273ce2('0x1e')][_0x273ce2('0x30')]),_0x4662a4[_0x273ce2('0x6')]=qs['offset'](_0x6e7000[_0x273ce2('0x1e')][_0x273ce2('0x6')]));_0x4662a4[_0x273ce2('0x1')]=qs[_0x273ce2('0x26')](_0x6e7000[_0x273ce2('0x1e')][_0x273ce2('0x26')]),_0x4662a4['where']=qs['filters'](_[_0x273ce2('0xe')](_0x6e7000[_0x273ce2('0x1e')],_0x8f454c['filters']),_0x517ef5);_0x6e7000[_0x273ce2('0x1e')][_0x273ce2('0x10')]&&(_0x4662a4[_0x273ce2('0x1d')]=_['merge'](_0x4662a4[_0x273ce2('0x1d')],{[Op['or']]:_[_0x273ce2('0x7')](_0x517ef5,function(_0x1336a5){const _0x3a2d36=_0x273ce2;if(_0x1336a5[_0x3a2d36('0x15')]!=='VIRTUAL'){const _0x3dec97={};return _0x3dec97[_0x1336a5[_0x3a2d36('0x29')]]={[Op[_0x3a2d36('0x5')]]:'%'+_0x6e7000['query'][_0x3a2d36('0x10')]+'%'},_0x3dec97;}})}));_0x4662a4=_[_0x273ce2('0xb')]({},_0x4662a4,_0x6e7000[_0x273ce2('0x22')]);const _0x29448e={'where':_0x4662a4[_0x273ce2('0x1d')]};return db['OpenchannelQueueReport'][_0x273ce2('0x1f')](_0x29448e)[_0x273ce2('0x2f')](function(_0x56c74f){const _0x20d5b9=_0x273ce2;return _0x4d0280[_0x20d5b9('0x1f')]=_0x56c74f,_0x6e7000[_0x20d5b9('0x1e')][_0x20d5b9('0xc')]&&(_0x4662a4['include']=[{'all':!![]}]),db[_0x20d5b9('0xd')]['findAll'](_0x4662a4);})['then'](function(_0x2e9bf8){return _0x4d0280['rows']=_0x2e9bf8,_0x4d0280;})[_0x273ce2('0x2f')](respondWithFilteredResult(_0x58de22,_0x4662a4))[_0x273ce2('0x17')](handleError(_0x58de22,null));},exports[_0x52f392('0x24')]=function(_0xb575b5,_0x1c6be9){const _0x3ba21b=_0x52f392;let _0x21c614={'raw':!![],'where':{'id':_0xb575b5[_0x3ba21b('0x23')]['id']}};const _0x5171f3={};return _0x5171f3[_0x3ba21b('0x1a')]=_['keys'](db[_0x3ba21b('0xd')][_0x3ba21b('0x2')]),_0x5171f3[_0x3ba21b('0x1e')]=_[_0x3ba21b('0x19')](_0xb575b5[_0x3ba21b('0x1e')]),_0x5171f3[_0x3ba21b('0x16')]=_[_0x3ba21b('0xf')](_0x5171f3[_0x3ba21b('0x1a')],_0x5171f3[_0x3ba21b('0x1e')]),_0x21c614[_0x3ba21b('0x12')]=_['intersection'](_0x5171f3[_0x3ba21b('0x1a')],qs['fields'](_0xb575b5[_0x3ba21b('0x1e')]['fields'])),_0x21c614[_0x3ba21b('0x12')]=_0x21c614[_0x3ba21b('0x12')][_0x3ba21b('0x1c')]?_0x21c614['attributes']:_0x5171f3[_0x3ba21b('0x1a')],_0xb575b5[_0x3ba21b('0x1e')][_0x3ba21b('0xc')]&&(_0x21c614[_0x3ba21b('0x8')]=[{'all':!![]}]),_0x21c614=_['merge']({},_0x21c614,_0xb575b5[_0x3ba21b('0x22')]),db[_0x3ba21b('0xd')][_0x3ba21b('0x2b')](_0x21c614)[_0x3ba21b('0x2f')](handleEntityNotFound(_0x1c6be9,null))[_0x3ba21b('0x2f')](respondWithResult(_0x1c6be9,null))[_0x3ba21b('0x17')](handleError(_0x1c6be9,null));},exports[_0x52f392('0x20')]=function(_0x1acb5b,_0x5d53ed){const _0x41c9ca=_0x52f392;return db[_0x41c9ca('0xd')][_0x41c9ca('0x20')](_0x1acb5b['body'],{})['then'](respondWithResult(_0x5d53ed,0xc9))['catch'](handleError(_0x5d53ed,null));},exports[_0x52f392('0x0')]=function(_0x4ecbe8,_0x57028f){const _0x27a346=_0x52f392;return _0x4ecbe8['body']['id']&&delete _0x4ecbe8[_0x27a346('0x28')]['id'],db[_0x27a346('0xd')][_0x27a346('0x2b')]({'where':{'id':_0x4ecbe8[_0x27a346('0x23')]['id']}})[_0x27a346('0x2f')](handleEntityNotFound(_0x57028f,null))[_0x27a346('0x2f')](saveUpdates(_0x4ecbe8[_0x27a346('0x28')],null))[_0x27a346('0x2f')](respondWithResult(_0x57028f,null))[_0x27a346('0x17')](handleError(_0x57028f,null));},exports[_0x52f392('0x3')]=function(_0x3259c0,_0x175356){const _0x156ae5=_0x52f392;return db[_0x156ae5('0xd')][_0x156ae5('0x2b')]({'where':{'id':_0x3259c0[_0x156ae5('0x23')]['id']}})[_0x156ae5('0x2f')](handleEntityNotFound(_0x175356,null))[_0x156ae5('0x2f')](removeEntity(_0x175356,null))[_0x156ae5('0x17')](handleError(_0x175356,null));},exports[_0x52f392('0x2d')]=function(_0x133fbb,_0x17a346){const _0x52bb9e=_0x52f392;return db['OpenchannelQueueReport'][_0x52bb9e('0x2d')]()[_0x52bb9e('0x2f')](respondWithResult(_0x17a346,null))['catch'](handleError(_0x17a346,null));}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.model.js b/server/api/openchannelQueueReport/openchannelQueueReport.model.js index 1d4d9f1..eda1896 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.model.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.model.js @@ -1 +1 @@ -const a502_0x517e=['uniqueid','OpenchannelQueueReport','define','report_openchannel_queue','./openchannelQueueReport.attributes'];(function(_0x539576,_0x517e42){const _0x21c0eb=function(_0x48a664){while(--_0x48a664){_0x539576['push'](_0x539576['shift']());}};_0x21c0eb(++_0x517e42);}(a502_0x517e,0xc9));const a502_0x21c0=function(_0x539576,_0x517e42){_0x539576=_0x539576-0x0;let _0x21c0eb=a502_0x517e[_0x539576];return _0x21c0eb;};const _0x510ab3=a502_0x21c0;'use strict';const attributes=require(_0x510ab3('0x3'));module['exports']=function(_0x48a664){const _0x18dcaf=_0x510ab3,_0x455885=_0x48a664[_0x18dcaf('0x1')](_0x18dcaf('0x0'),attributes,{'tableName':_0x18dcaf('0x2'),'paranoid':![],'indexes':[{'name':_0x18dcaf('0x4'),'fields':[_0x18dcaf('0x4')]}],'timestamps':!![]});return _0x455885;}; \ No newline at end of file +const a502_0x3c8d=['./openchannelQueueReport.attributes','OpenchannelQueueReport','exports','define','uniqueid','report_openchannel_queue'];(function(_0x5ef786,_0x3c8dcb){const _0x1d312e=function(_0x852f81){while(--_0x852f81){_0x5ef786['push'](_0x5ef786['shift']());}};_0x1d312e(++_0x3c8dcb);}(a502_0x3c8d,0x1e6));const a502_0x1d31=function(_0x5ef786,_0x3c8dcb){_0x5ef786=_0x5ef786-0x0;let _0x1d312e=a502_0x3c8d[_0x5ef786];return _0x1d312e;};const _0x2e5ef9=a502_0x1d31;'use strict';const attributes=require(_0x2e5ef9('0x0'));module[_0x2e5ef9('0x2')]=function(_0x852f81){const _0x7e7907=_0x2e5ef9,_0x14d278=_0x852f81[_0x7e7907('0x3')](_0x7e7907('0x1'),attributes,{'tableName':_0x7e7907('0x5'),'paranoid':![],'indexes':[{'name':_0x7e7907('0x4'),'fields':[_0x7e7907('0x4')]}],'timestamps':!![]});return _0x14d278;}; \ No newline at end of file diff --git a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js index f93c4ba..ba7e688 100644 --- a/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js +++ b/server/api/openchannelQueueReport/openchannelQueueReport.rpc.js @@ -1 +1 @@ -const a503_0xca7a=['../../mysqldb','CreateOpenchannelQueueReport','then','raw','limit','message','update','options','where','body','error','catch','OpenchannelQueueReport','stringify','debug','UpdateOpenchannelQueueReport','info'];(function(_0x29d399,_0xca7a24){const _0x104d47=function(_0x528feb){while(--_0x528feb){_0x29d399['push'](_0x29d399['shift']());}};_0x104d47(++_0xca7a24);}(a503_0xca7a,0x1ee));const a503_0x104d=function(_0x29d399,_0xca7a24){_0x29d399=_0x29d399-0x0;let _0x104d47=a503_0xca7a[_0x29d399];return _0x104d47;};const _0x294d70=a503_0x104d;'use strict';const db=require(_0x294d70('0x10'))['db'],logger=require('../../config/logger')('rpc');exports[_0x294d70('0x0')]=function(_0x528feb){const _0x6eb294=this;return new Promise(function(_0x2226db,_0x255166){const _0x482005=a503_0x104d;return db[_0x482005('0xb')]['create'](_0x528feb[_0x482005('0x8')],{'raw':_0x528feb[_0x482005('0x6')]?_0x528feb['options']['raw']===undefined?!![]:![]:!![]})[_0x482005('0x1')](function(_0xbc4799){const _0x53d13e=_0x482005;logger[_0x53d13e('0xf')](_0x53d13e('0x0'),_0x528feb),logger[_0x53d13e('0xd')](_0x53d13e('0x0'),_0x528feb,JSON[_0x53d13e('0xc')](_0xbc4799)),_0x2226db(_0xbc4799);})[_0x482005('0xa')](function(_0x359316){const _0x297ac5=_0x482005;logger[_0x297ac5('0x9')](_0x297ac5('0x0'),_0x359316[_0x297ac5('0x4')],_0x528feb),_0x255166(_0x6eb294[_0x297ac5('0x9')](0x1f4,_0x359316[_0x297ac5('0x4')]));});});},exports[_0x294d70('0xe')]=function(_0x13b24f){const _0x224522=this;return new Promise(function(_0x2e8e8b,_0x19355f){const _0x56f2c1=a503_0x104d;return db[_0x56f2c1('0xb')][_0x56f2c1('0x5')](_0x13b24f['body'],{'raw':_0x13b24f[_0x56f2c1('0x6')]?_0x13b24f[_0x56f2c1('0x6')][_0x56f2c1('0x2')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x13b24f['options']?_0x13b24f['options'][_0x56f2c1('0x7')]||null:null,'attributes':_0x13b24f[_0x56f2c1('0x6')]?_0x13b24f[_0x56f2c1('0x6')]['attributes']||null:null,'limit':_0x13b24f[_0x56f2c1('0x6')]?_0x13b24f['options'][_0x56f2c1('0x3')]||null:null})['then'](function(_0x2b1d71){const _0x489eec=_0x56f2c1;logger[_0x489eec('0xf')](_0x489eec('0xe'),_0x13b24f),logger[_0x489eec('0xd')](_0x489eec('0xe'),_0x13b24f,JSON[_0x489eec('0xc')](_0x2b1d71)),_0x2e8e8b(_0x2b1d71);})[_0x56f2c1('0xa')](function(_0x3a9e99){const _0x191978=_0x56f2c1;logger[_0x191978('0x9')](_0x191978('0xe'),_0x3a9e99[_0x191978('0x4')],_0x13b24f),_0x19355f(_0x224522['error'](0x1f4,_0x3a9e99[_0x191978('0x4')]));});});}; \ No newline at end of file +const a503_0xe3ca=['UpdateOpenchannelQueueReport','debug','raw','OpenchannelQueueReport','limit','error','attributes','where','body','catch','update','options','rpc','then','info','../../config/logger','../../mysqldb','CreateOpenchannelQueueReport','stringify','create','message'];(function(_0x5835c1,_0xe3ca4e){const _0x22d29a=function(_0x10b5bb){while(--_0x10b5bb){_0x5835c1['push'](_0x5835c1['shift']());}};_0x22d29a(++_0xe3ca4e);}(a503_0xe3ca,0x109));const a503_0x22d2=function(_0x5835c1,_0xe3ca4e){_0x5835c1=_0x5835c1-0x0;let _0x22d29a=a503_0xe3ca[_0x5835c1];return _0x22d29a;};const _0x2201fa=a503_0x22d2;'use strict';const db=require(_0x2201fa('0x3'))['db'],logger=require(_0x2201fa('0x2'))(_0x2201fa('0x14'));exports[_0x2201fa('0x4')]=function(_0x10b5bb){const _0x2fe216=this;return new Promise(function(_0x183fba,_0x288bce){const _0x182117=a503_0x22d2;return db[_0x182117('0xb')][_0x182117('0x6')](_0x10b5bb[_0x182117('0x10')],{'raw':_0x10b5bb[_0x182117('0x13')]?_0x10b5bb[_0x182117('0x13')][_0x182117('0xa')]===undefined?!![]:![]:!![]})['then'](function(_0x351f5e){const _0x3dae4c=_0x182117;logger[_0x3dae4c('0x1')](_0x3dae4c('0x4'),_0x10b5bb),logger['debug']('CreateOpenchannelQueueReport',_0x10b5bb,JSON[_0x3dae4c('0x5')](_0x351f5e)),_0x183fba(_0x351f5e);})[_0x182117('0x11')](function(_0x49bb78){const _0xe9fdd=_0x182117;logger[_0xe9fdd('0xd')](_0xe9fdd('0x4'),_0x49bb78[_0xe9fdd('0x7')],_0x10b5bb),_0x288bce(_0x2fe216[_0xe9fdd('0xd')](0x1f4,_0x49bb78[_0xe9fdd('0x7')]));});});},exports[_0x2201fa('0x8')]=function(_0x4b190a){const _0x128ea2=this;return new Promise(function(_0x253ada,_0x161a5d){const _0xa352e2=a503_0x22d2;return db[_0xa352e2('0xb')][_0xa352e2('0x12')](_0x4b190a['body'],{'raw':_0x4b190a[_0xa352e2('0x13')]?_0x4b190a['options'][_0xa352e2('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4b190a['options']?_0x4b190a[_0xa352e2('0x13')][_0xa352e2('0xf')]||null:null,'attributes':_0x4b190a[_0xa352e2('0x13')]?_0x4b190a[_0xa352e2('0x13')][_0xa352e2('0xe')]||null:null,'limit':_0x4b190a[_0xa352e2('0x13')]?_0x4b190a['options'][_0xa352e2('0xc')]||null:null})[_0xa352e2('0x0')](function(_0x445ba1){const _0x426e82=_0xa352e2;logger['info'](_0x426e82('0x8'),_0x4b190a),logger[_0x426e82('0x9')](_0x426e82('0x8'),_0x4b190a,JSON['stringify'](_0x445ba1)),_0x253ada(_0x445ba1);})[_0xa352e2('0x11')](function(_0x545a75){const _0x1a2b18=_0xa352e2;logger[_0x1a2b18('0xd')]('UpdateOpenchannelQueueReport',_0x545a75['message'],_0x4b190a),_0x161a5d(_0x128ea2[_0x1a2b18('0xd')](0x1f4,_0x545a75[_0x1a2b18('0x7')]));});});}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/index.js b/server/api/openchannelTransferReport/index.js index a96fbb2..6837cb5 100644 --- a/server/api/openchannelTransferReport/index.js +++ b/server/api/openchannelTransferReport/index.js @@ -1 +1 @@ -const a504_0x3f0a=['create','update','../../components/auth/service','express','isAuthenticated','delete','destroy','./openchannelTransferReport.controller','get','put','describe','index','exports','/describe','/:id'];(function(_0x428d6c,_0x3f0a90){const _0x4949c6=function(_0x3d4fd2){while(--_0x3d4fd2){_0x428d6c['push'](_0x428d6c['shift']());}};_0x4949c6(++_0x3f0a90);}(a504_0x3f0a,0x18b));const a504_0x4949=function(_0x428d6c,_0x3f0a90){_0x428d6c=_0x428d6c-0x0;let _0x4949c6=a504_0x3f0a[_0x428d6c];return _0x4949c6;};const _0xd80487=a504_0x4949;'use strict';const express=require(_0xd80487('0xd')),router=express['Router'](),auth=require(_0xd80487('0xc')),controller=require(_0xd80487('0x2'));router[_0xd80487('0x3')]('/',auth[_0xd80487('0xe')](),controller[_0xd80487('0x6')]),router[_0xd80487('0x3')](_0xd80487('0x8'),auth['isAuthenticated'](),controller[_0xd80487('0x5')]),router[_0xd80487('0x3')](_0xd80487('0x9'),auth['isAuthenticated'](),controller['show']),router['post']('/',auth[_0xd80487('0xe')](),controller[_0xd80487('0xa')]),router[_0xd80487('0x4')](_0xd80487('0x9'),auth[_0xd80487('0xe')](),controller[_0xd80487('0xb')]),router[_0xd80487('0x0')](_0xd80487('0x9'),auth[_0xd80487('0xe')](),controller[_0xd80487('0x1')]),module[_0xd80487('0x7')]=router; \ No newline at end of file +const a504_0x5cc9=['/:id','isAuthenticated','describe','Router','index','./openchannelTransferReport.controller','delete','update','../../components/auth/service','destroy','/describe','show','exports','get'];(function(_0x3e5132,_0x5cc9e3){const _0x447a13=function(_0x47f18f){while(--_0x47f18f){_0x3e5132['push'](_0x3e5132['shift']());}};_0x447a13(++_0x5cc9e3);}(a504_0x5cc9,0x9d));const a504_0x447a=function(_0x3e5132,_0x5cc9e3){_0x3e5132=_0x3e5132-0x0;let _0x447a13=a504_0x5cc9[_0x3e5132];return _0x447a13;};const _0x17d9d2=a504_0x447a;'use strict';const express=require('express'),router=express[_0x17d9d2('0x0')](),auth=require(_0x17d9d2('0x5')),controller=require(_0x17d9d2('0x2'));router[_0x17d9d2('0xa')]('/',auth['isAuthenticated'](),controller[_0x17d9d2('0x1')]),router[_0x17d9d2('0xa')](_0x17d9d2('0x7'),auth[_0x17d9d2('0xc')](),controller[_0x17d9d2('0xd')]),router[_0x17d9d2('0xa')](_0x17d9d2('0xb'),auth[_0x17d9d2('0xc')](),controller[_0x17d9d2('0x8')]),router['post']('/',auth[_0x17d9d2('0xc')](),controller['create']),router['put']('/:id',auth['isAuthenticated'](),controller[_0x17d9d2('0x4')]),router[_0x17d9d2('0x3')](_0x17d9d2('0xb'),auth['isAuthenticated'](),controller[_0x17d9d2('0x6')]),module[_0x17d9d2('0x9')]=router; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js index fa9c7a4..081538e 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.attributes.js @@ -1 +1 @@ -const a505_0x2231=['STRING','exports','ENUM','sequelize','queue'];(function(_0x2fd80e,_0x2231a4){const _0x368b5a=function(_0x1aa4a7){while(--_0x1aa4a7){_0x2fd80e['push'](_0x2fd80e['shift']());}};_0x368b5a(++_0x2231a4);}(a505_0x2231,0x1cf));const a505_0x368b=function(_0x2fd80e,_0x2231a4){_0x2fd80e=_0x2fd80e-0x0;let _0x368b5a=a505_0x2231[_0x2fd80e];return _0x368b5a;};const _0x35f746=a505_0x368b;'use strict';const Sequelize=require(_0x35f746('0x0'));module[_0x35f746('0x3')]={'uniqueid':{'type':Sequelize[_0x35f746('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x35f746('0x4')]('account','agent',_0x35f746('0x1')),'allowNull':![],'defaultValue':_0x35f746('0x1')},'transferredAt':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a505_0x4fbb=['ENUM','STRING','DATE','sequelize','account','agent','NOW'];(function(_0x23218e,_0x4fbb3a){const _0x35d67a=function(_0x23c7ab){while(--_0x23c7ab){_0x23218e['push'](_0x23218e['shift']());}};_0x35d67a(++_0x4fbb3a);}(a505_0x4fbb,0xfe));const a505_0x35d6=function(_0x23218e,_0x4fbb3a){_0x23218e=_0x23218e-0x0;let _0x35d67a=a505_0x4fbb[_0x23218e];return _0x35d67a;};const _0xa72068=a505_0x35d6;'use strict';const Sequelize=require(_0xa72068('0x1'));module['exports']={'uniqueid':{'type':Sequelize[_0xa72068('0x6')],'allowNull':![]},'type':{'type':Sequelize[_0xa72068('0x5')](_0xa72068('0x2'),_0xa72068('0x3'),'queue'),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize[_0xa72068('0x0')],'allowNull':![],'defaultValue':Sequelize[_0xa72068('0x4')]}}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js index 30b1c51..d3a7306 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.controller.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.controller.js @@ -1 +1 @@ -const a506_0x318d=['end','filters','set','where','create','keys','../../mysqldb','index','map','type','query','like','filter','includeAll','Content-Range','undefined','length','fields','model','stack','key','catch','attributes','findAll','lodash','then','body','error','json','fieldName','OpenchannelTransferReport','intersection','sort','params','sequelize','name','offset','../../config/logger','merge','options','limit','destroy','rawAttributes','api','rows','count','include','sendStatus','findOne','order','describe','status','../../components/parsers/qs','send','show','nolimit'];(function(_0x4a3ed3,_0x318d1b){const _0x38f8b8=function(_0x50cf3d){while(--_0x50cf3d){_0x4a3ed3['push'](_0x4a3ed3['shift']());}};_0x38f8b8(++_0x318d1b);}(a506_0x318d,0xa5));const a506_0x38f8=function(_0x4a3ed3,_0x318d1b){_0x4a3ed3=_0x4a3ed3-0x0;let _0x38f8b8=a506_0x318d[_0x4a3ed3];return _0x38f8b8;};const _0x3bba81=a506_0x38f8;'use strict';const _=require(_0x3bba81('0x1b')),qs=require(_0x3bba81('0x37')),logger=require(_0x3bba81('0x28'))(_0x3bba81('0x2e')),db=require(_0x3bba81('0x9'))['db'],{Op}=require(_0x3bba81('0x25'));function respondWithResult(_0x50cf3d,_0x15e82e){return _0x15e82e=_0x15e82e||0xc8,function(_0x3af9ab){const _0xfff195=a506_0x38f8;if(_0x3af9ab)return _0x50cf3d[_0xfff195('0x36')](_0x15e82e)[_0xfff195('0x1f')](_0x3af9ab);};}function respondWithFilteredResult(_0x462864,_0x364080){return function(_0x189d32){const _0x4784a0=a506_0x38f8;if(_0x189d32){const _0x11abe4=_0x189d32['count'],_0x45dbec=_0x364080[_0x4784a0('0x27')];let _0x192828=_0x364080[_0x4784a0('0x27')]+_0x364080[_0x4784a0('0x2b')],_0x199dc7;return _0x192828>=_0x11abe4?(_0x192828=_0x11abe4,_0x199dc7=0xc8):_0x199dc7=0xce,_0x462864[_0x4784a0('0x36')](_0x199dc7),_0x462864[_0x4784a0('0x5')](_0x4784a0('0x11'),_0x45dbec+'-'+_0x192828+'/'+_0x11abe4)[_0x4784a0('0x1f')](_0x189d32);}return null;};}function saveUpdates(_0x5045e2){return function(_0xebcb3c){const _0x474fd7=a506_0x38f8;if(_0xebcb3c)return _0xebcb3c['update'](_0x5045e2)[_0x474fd7('0x1c')](function(_0xc936c2){return _0xc936c2;});return null;};}function removeEntity(_0xb58a14){return function(_0x2b7a53){const _0x3f234c=a506_0x38f8;if(_0x2b7a53)return _0x2b7a53[_0x3f234c('0x2c')]()[_0x3f234c('0x1c')](function(){const _0x10ad58=_0x3f234c;_0xb58a14['status'](0xcc)[_0x10ad58('0x3')]();});};}function handleEntityNotFound(_0x41298c){return function(_0x581fc2){const _0x747dcf=a506_0x38f8;return!_0x581fc2&&_0x41298c[_0x747dcf('0x32')](0x194),_0x581fc2;};}function handleError(_0x175f55,_0x29cc77){return _0x29cc77=_0x29cc77||0x1f4,function(_0x2579b7){const _0x790b38=a506_0x38f8;logger[_0x790b38('0x1e')](_0x2579b7[_0x790b38('0x16')]),_0x2579b7[_0x790b38('0x26')]&&delete _0x2579b7[_0x790b38('0x26')],_0x175f55['status'](_0x29cc77)[_0x790b38('0x0')](_0x2579b7);};}exports[_0x3bba81('0xa')]=function(_0x4ec64c,_0x46f7df){const _0x390c6e=_0x3bba81;let _0x55735d={};const _0x3e8c3f={},_0x4cf9f6={'count':0x0,'rows':[]},_0x140792=_[_0x390c6e('0xb')](db[_0x390c6e('0x21')][_0x390c6e('0x2d')],function(_0x1e01da){const _0x794312=_0x390c6e;return{'name':_0x1e01da[_0x794312('0x20')],'type':_0x1e01da[_0x794312('0xc')][_0x794312('0x17')]};});_0x3e8c3f[_0x390c6e('0x15')]=_[_0x390c6e('0xb')](_0x140792,'name'),_0x3e8c3f[_0x390c6e('0xd')]=_[_0x390c6e('0x8')](_0x4ec64c[_0x390c6e('0xd')]),_0x3e8c3f['filters']=_[_0x390c6e('0x22')](_0x3e8c3f[_0x390c6e('0x15')],_0x3e8c3f[_0x390c6e('0xd')]),_0x55735d['attributes']=_[_0x390c6e('0x22')](_0x3e8c3f[_0x390c6e('0x15')],qs[_0x390c6e('0x14')](_0x4ec64c[_0x390c6e('0xd')][_0x390c6e('0x14')])),_0x55735d[_0x390c6e('0x19')]=_0x55735d[_0x390c6e('0x19')][_0x390c6e('0x13')]?_0x55735d[_0x390c6e('0x19')]:_0x3e8c3f[_0x390c6e('0x15')];typeof _0x4ec64c[_0x390c6e('0xd')][_0x390c6e('0x2')]===_0x390c6e('0x12')&&(_0x55735d['limit']=qs[_0x390c6e('0x2b')](_0x4ec64c[_0x390c6e('0xd')]['limit']),_0x55735d[_0x390c6e('0x27')]=qs['offset'](_0x4ec64c[_0x390c6e('0xd')][_0x390c6e('0x27')]));_0x55735d[_0x390c6e('0x34')]=qs[_0x390c6e('0x23')](_0x4ec64c[_0x390c6e('0xd')][_0x390c6e('0x23')]),_0x55735d[_0x390c6e('0x6')]=qs[_0x390c6e('0x4')](_['pick'](_0x4ec64c['query'],_0x3e8c3f[_0x390c6e('0x4')]),_0x140792);_0x4ec64c['query'][_0x390c6e('0xf')]&&(_0x55735d[_0x390c6e('0x6')]=_[_0x390c6e('0x29')](_0x55735d[_0x390c6e('0x6')],{[Op['or']]:_[_0x390c6e('0xb')](_0x140792,function(_0x110ff8){const _0x226f7a=_0x390c6e;if(_0x110ff8[_0x226f7a('0xc')]!=='VIRTUAL'){const _0x51d6e5={};return _0x51d6e5[_0x110ff8[_0x226f7a('0x26')]]={[Op[_0x226f7a('0xe')]]:'%'+_0x4ec64c['query'][_0x226f7a('0xf')]+'%'},_0x51d6e5;}})}));_0x55735d=_[_0x390c6e('0x29')]({},_0x55735d,_0x4ec64c[_0x390c6e('0x2a')]);const _0x39358b={'where':_0x55735d[_0x390c6e('0x6')]};return db[_0x390c6e('0x21')][_0x390c6e('0x30')](_0x39358b)['then'](function(_0x300f7e){const _0x30048a=_0x390c6e;return _0x4cf9f6[_0x30048a('0x30')]=_0x300f7e,_0x4ec64c[_0x30048a('0xd')][_0x30048a('0x10')]&&(_0x55735d[_0x30048a('0x31')]=[{'all':!![]}]),db[_0x30048a('0x21')][_0x30048a('0x1a')](_0x55735d);})['then'](function(_0x436e70){const _0x42b848=_0x390c6e;return _0x4cf9f6[_0x42b848('0x2f')]=_0x436e70,_0x4cf9f6;})[_0x390c6e('0x1c')](respondWithFilteredResult(_0x46f7df,_0x55735d))[_0x390c6e('0x18')](handleError(_0x46f7df,null));},exports[_0x3bba81('0x1')]=function(_0x1f67a0,_0x4d7f9d){const _0x26952f=_0x3bba81;let _0x5de98f={'raw':!![],'where':{'id':_0x1f67a0[_0x26952f('0x24')]['id']}};const _0xaa692a={};return _0xaa692a[_0x26952f('0x15')]=_['keys'](db[_0x26952f('0x21')][_0x26952f('0x2d')]),_0xaa692a[_0x26952f('0xd')]=_['keys'](_0x1f67a0[_0x26952f('0xd')]),_0xaa692a[_0x26952f('0x4')]=_['intersection'](_0xaa692a[_0x26952f('0x15')],_0xaa692a[_0x26952f('0xd')]),_0x5de98f[_0x26952f('0x19')]=_[_0x26952f('0x22')](_0xaa692a['model'],qs['fields'](_0x1f67a0[_0x26952f('0xd')]['fields'])),_0x5de98f['attributes']=_0x5de98f[_0x26952f('0x19')][_0x26952f('0x13')]?_0x5de98f[_0x26952f('0x19')]:_0xaa692a[_0x26952f('0x15')],_0x1f67a0[_0x26952f('0xd')][_0x26952f('0x10')]&&(_0x5de98f[_0x26952f('0x31')]=[{'all':!![]}]),_0x5de98f=_[_0x26952f('0x29')]({},_0x5de98f,_0x1f67a0['options']),db[_0x26952f('0x21')][_0x26952f('0x33')](_0x5de98f)[_0x26952f('0x1c')](handleEntityNotFound(_0x4d7f9d,null))['then'](respondWithResult(_0x4d7f9d,null))['catch'](handleError(_0x4d7f9d,null));},exports[_0x3bba81('0x7')]=function(_0x281a03,_0x166da7){const _0x3399e7=_0x3bba81;return db[_0x3399e7('0x21')][_0x3399e7('0x7')](_0x281a03[_0x3399e7('0x1d')],{})[_0x3399e7('0x1c')](respondWithResult(_0x166da7,0xc9))[_0x3399e7('0x18')](handleError(_0x166da7,null));},exports['update']=function(_0x4c1a28,_0x39f2dd){const _0x1ad5ea=_0x3bba81;return _0x4c1a28['body']['id']&&delete _0x4c1a28[_0x1ad5ea('0x1d')]['id'],db[_0x1ad5ea('0x21')][_0x1ad5ea('0x33')]({'where':{'id':_0x4c1a28['params']['id']}})[_0x1ad5ea('0x1c')](handleEntityNotFound(_0x39f2dd,null))[_0x1ad5ea('0x1c')](saveUpdates(_0x4c1a28['body'],null))[_0x1ad5ea('0x1c')](respondWithResult(_0x39f2dd,null))[_0x1ad5ea('0x18')](handleError(_0x39f2dd,null));},exports[_0x3bba81('0x2c')]=function(_0x39cc48,_0x241e6d){const _0x304e00=_0x3bba81;return db[_0x304e00('0x21')][_0x304e00('0x33')]({'where':{'id':_0x39cc48[_0x304e00('0x24')]['id']}})['then'](handleEntityNotFound(_0x241e6d,null))[_0x304e00('0x1c')](removeEntity(_0x241e6d,null))[_0x304e00('0x18')](handleError(_0x241e6d,null));},exports[_0x3bba81('0x35')]=function(_0x217a4a,_0x1cd079){const _0x2a633a=_0x3bba81;return db['OpenchannelTransferReport'][_0x2a633a('0x35')]()[_0x2a633a('0x1c')](respondWithResult(_0x1cd079,null))[_0x2a633a('0x18')](handleError(_0x1cd079,null));}; \ No newline at end of file +const a506_0x4614=['api','set','type','findOne','findAll','options','body','params','fieldName','Content-Range','update','error','like','rows','sequelize','filters','destroy','includeAll','json','intersection','describe','include','where','limit','key','undefined','attributes','order','index','offset','../../components/parsers/qs','OpenchannelTransferReport','filter','rawAttributes','fields','query','sort','name','pick','create','nolimit','then','keys','merge','stack','model','end','status','count','map','length','catch'];(function(_0x2107b4,_0x4614b8){const _0x15df4e=function(_0x4f7b81){while(--_0x4f7b81){_0x2107b4['push'](_0x2107b4['shift']());}};_0x15df4e(++_0x4614b8);}(a506_0x4614,0x108));const a506_0x15df=function(_0x2107b4,_0x4614b8){_0x2107b4=_0x2107b4-0x0;let _0x15df4e=a506_0x4614[_0x2107b4];return _0x15df4e;};const _0x25ff6c=a506_0x15df;'use strict';const _=require('lodash'),qs=require(_0x25ff6c('0x1a')),logger=require('../../config/logger')(_0x25ff6c('0x30')),db=require('../../mysqldb')['db'],{Op}=require(_0x25ff6c('0xa'));function respondWithResult(_0x4f7b81,_0x475be5){return _0x475be5=_0x475be5||0xc8,function(_0x453207){const _0x252087=a506_0x15df;if(_0x453207)return _0x4f7b81[_0x252087('0x2b')](_0x475be5)[_0x252087('0xe')](_0x453207);};}function respondWithFilteredResult(_0xcc81c6,_0x58daf4){return function(_0x1f3de6){const _0x366cae=a506_0x15df;if(_0x1f3de6){const _0x1a907e=_0x1f3de6[_0x366cae('0x2c')],_0x2c4bef=_0x58daf4[_0x366cae('0x19')];let _0x19ac34=_0x58daf4[_0x366cae('0x19')]+_0x58daf4[_0x366cae('0x13')],_0x1ba3fa;return _0x19ac34>=_0x1a907e?(_0x19ac34=_0x1a907e,_0x1ba3fa=0xc8):_0x1ba3fa=0xce,_0xcc81c6[_0x366cae('0x2b')](_0x1ba3fa),_0xcc81c6[_0x366cae('0x31')](_0x366cae('0x5'),_0x2c4bef+'-'+_0x19ac34+'/'+_0x1a907e)[_0x366cae('0xe')](_0x1f3de6);}return null;};}function saveUpdates(_0x155f64){return function(_0x3338bc){const _0x1781be=a506_0x15df;if(_0x3338bc)return _0x3338bc[_0x1781be('0x6')](_0x155f64)[_0x1781be('0x25')](function(_0xe9ea2d){return _0xe9ea2d;});return null;};}function removeEntity(_0x6919a3){return function(_0x2a3003){const _0x45a9c8=a506_0x15df;if(_0x2a3003)return _0x2a3003[_0x45a9c8('0xc')]()[_0x45a9c8('0x25')](function(){const _0x522736=_0x45a9c8;_0x6919a3[_0x522736('0x2b')](0xcc)[_0x522736('0x2a')]();});};}function handleEntityNotFound(_0x2d0b2d){return function(_0x16d5b6){return!_0x16d5b6&&_0x2d0b2d['sendStatus'](0x194),_0x16d5b6;};}function handleError(_0x471b21,_0x4f676e){return _0x4f676e=_0x4f676e||0x1f4,function(_0x269b2a){const _0x26c99c=a506_0x15df;logger[_0x26c99c('0x7')](_0x269b2a[_0x26c99c('0x28')]),_0x269b2a[_0x26c99c('0x21')]&&delete _0x269b2a[_0x26c99c('0x21')],_0x471b21[_0x26c99c('0x2b')](_0x4f676e)['send'](_0x269b2a);};}exports[_0x25ff6c('0x18')]=function(_0x489cfe,_0x554dfe){const _0x2c262c=_0x25ff6c;let _0x6c7010={};const _0x53e8dc={},_0x1d2218={'count':0x0,'rows':[]},_0x66bdef=_[_0x2c262c('0x2d')](db['OpenchannelTransferReport'][_0x2c262c('0x1d')],function(_0x3ff2a7){const _0x239e65=_0x2c262c;return{'name':_0x3ff2a7[_0x239e65('0x4')],'type':_0x3ff2a7['type'][_0x239e65('0x14')]};});_0x53e8dc[_0x2c262c('0x29')]=_[_0x2c262c('0x2d')](_0x66bdef,'name'),_0x53e8dc[_0x2c262c('0x1f')]=_[_0x2c262c('0x26')](_0x489cfe[_0x2c262c('0x1f')]),_0x53e8dc['filters']=_[_0x2c262c('0xf')](_0x53e8dc[_0x2c262c('0x29')],_0x53e8dc[_0x2c262c('0x1f')]),_0x6c7010[_0x2c262c('0x16')]=_['intersection'](_0x53e8dc[_0x2c262c('0x29')],qs[_0x2c262c('0x1e')](_0x489cfe[_0x2c262c('0x1f')][_0x2c262c('0x1e')])),_0x6c7010[_0x2c262c('0x16')]=_0x6c7010['attributes'][_0x2c262c('0x2e')]?_0x6c7010[_0x2c262c('0x16')]:_0x53e8dc[_0x2c262c('0x29')];typeof _0x489cfe[_0x2c262c('0x1f')][_0x2c262c('0x24')]===_0x2c262c('0x15')&&(_0x6c7010['limit']=qs[_0x2c262c('0x13')](_0x489cfe[_0x2c262c('0x1f')]['limit']),_0x6c7010[_0x2c262c('0x19')]=qs[_0x2c262c('0x19')](_0x489cfe[_0x2c262c('0x1f')][_0x2c262c('0x19')]));_0x6c7010[_0x2c262c('0x17')]=qs[_0x2c262c('0x20')](_0x489cfe[_0x2c262c('0x1f')][_0x2c262c('0x20')]),_0x6c7010[_0x2c262c('0x12')]=qs[_0x2c262c('0xb')](_[_0x2c262c('0x22')](_0x489cfe[_0x2c262c('0x1f')],_0x53e8dc[_0x2c262c('0xb')]),_0x66bdef);_0x489cfe[_0x2c262c('0x1f')][_0x2c262c('0x1c')]&&(_0x6c7010['where']=_[_0x2c262c('0x27')](_0x6c7010[_0x2c262c('0x12')],{[Op['or']]:_['map'](_0x66bdef,function(_0x5bb69b){const _0x2717a8=_0x2c262c;if(_0x5bb69b[_0x2717a8('0x32')]!=='VIRTUAL'){const _0x2d3510={};return _0x2d3510[_0x5bb69b[_0x2717a8('0x21')]]={[Op[_0x2717a8('0x8')]]:'%'+_0x489cfe['query'][_0x2717a8('0x1c')]+'%'},_0x2d3510;}})}));_0x6c7010=_['merge']({},_0x6c7010,_0x489cfe[_0x2c262c('0x1')]);const _0x4904cb={'where':_0x6c7010[_0x2c262c('0x12')]};return db[_0x2c262c('0x1b')]['count'](_0x4904cb)[_0x2c262c('0x25')](function(_0x52bbe4){const _0xb3c0f=_0x2c262c;return _0x1d2218[_0xb3c0f('0x2c')]=_0x52bbe4,_0x489cfe[_0xb3c0f('0x1f')][_0xb3c0f('0xd')]&&(_0x6c7010[_0xb3c0f('0x11')]=[{'all':!![]}]),db[_0xb3c0f('0x1b')][_0xb3c0f('0x0')](_0x6c7010);})[_0x2c262c('0x25')](function(_0x12671f){const _0x4acbe5=_0x2c262c;return _0x1d2218[_0x4acbe5('0x9')]=_0x12671f,_0x1d2218;})[_0x2c262c('0x25')](respondWithFilteredResult(_0x554dfe,_0x6c7010))[_0x2c262c('0x2f')](handleError(_0x554dfe,null));},exports['show']=function(_0xd01b4f,_0x2e02cb){const _0x589a5d=_0x25ff6c;let _0x565222={'raw':!![],'where':{'id':_0xd01b4f['params']['id']}};const _0xe7613e={};return _0xe7613e[_0x589a5d('0x29')]=_[_0x589a5d('0x26')](db[_0x589a5d('0x1b')][_0x589a5d('0x1d')]),_0xe7613e[_0x589a5d('0x1f')]=_['keys'](_0xd01b4f[_0x589a5d('0x1f')]),_0xe7613e['filters']=_[_0x589a5d('0xf')](_0xe7613e[_0x589a5d('0x29')],_0xe7613e[_0x589a5d('0x1f')]),_0x565222[_0x589a5d('0x16')]=_[_0x589a5d('0xf')](_0xe7613e[_0x589a5d('0x29')],qs[_0x589a5d('0x1e')](_0xd01b4f[_0x589a5d('0x1f')][_0x589a5d('0x1e')])),_0x565222[_0x589a5d('0x16')]=_0x565222[_0x589a5d('0x16')][_0x589a5d('0x2e')]?_0x565222[_0x589a5d('0x16')]:_0xe7613e['model'],_0xd01b4f[_0x589a5d('0x1f')]['includeAll']&&(_0x565222['include']=[{'all':!![]}]),_0x565222=_['merge']({},_0x565222,_0xd01b4f[_0x589a5d('0x1')]),db['OpenchannelTransferReport'][_0x589a5d('0x33')](_0x565222)[_0x589a5d('0x25')](handleEntityNotFound(_0x2e02cb,null))['then'](respondWithResult(_0x2e02cb,null))[_0x589a5d('0x2f')](handleError(_0x2e02cb,null));},exports[_0x25ff6c('0x23')]=function(_0x3900fa,_0x5975c0){const _0x51d5a7=_0x25ff6c;return db[_0x51d5a7('0x1b')][_0x51d5a7('0x23')](_0x3900fa[_0x51d5a7('0x2')],{})[_0x51d5a7('0x25')](respondWithResult(_0x5975c0,0xc9))[_0x51d5a7('0x2f')](handleError(_0x5975c0,null));},exports[_0x25ff6c('0x6')]=function(_0x4cc2bd,_0x3c25f2){const _0x11a9e0=_0x25ff6c;return _0x4cc2bd[_0x11a9e0('0x2')]['id']&&delete _0x4cc2bd[_0x11a9e0('0x2')]['id'],db[_0x11a9e0('0x1b')][_0x11a9e0('0x33')]({'where':{'id':_0x4cc2bd[_0x11a9e0('0x3')]['id']}})[_0x11a9e0('0x25')](handleEntityNotFound(_0x3c25f2,null))[_0x11a9e0('0x25')](saveUpdates(_0x4cc2bd['body'],null))['then'](respondWithResult(_0x3c25f2,null))[_0x11a9e0('0x2f')](handleError(_0x3c25f2,null));},exports[_0x25ff6c('0xc')]=function(_0x4a8032,_0x41784d){const _0x3b4e80=_0x25ff6c;return db['OpenchannelTransferReport']['findOne']({'where':{'id':_0x4a8032['params']['id']}})[_0x3b4e80('0x25')](handleEntityNotFound(_0x41784d,null))[_0x3b4e80('0x25')](removeEntity(_0x41784d,null))[_0x3b4e80('0x2f')](handleError(_0x41784d,null));},exports[_0x25ff6c('0x10')]=function(_0x546eb7,_0xb0f49a){const _0x4caf20=_0x25ff6c;return db['OpenchannelTransferReport'][_0x4caf20('0x10')]()[_0x4caf20('0x25')](respondWithResult(_0xb0f49a,null))['catch'](handleError(_0xb0f49a,null));}; \ No newline at end of file diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.model.js b/server/api/openchannelTransferReport/openchannelTransferReport.model.js index e812675..270fde6 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.model.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.model.js @@ -1 +1 @@ -const a507_0x20c7=['define','./openchannelTransferReport.attributes','uniqueid','report_openchannel_transfer'];(function(_0x5aedcc,_0x20c784){const _0x1d4c37=function(_0x5b570c){while(--_0x5b570c){_0x5aedcc['push'](_0x5aedcc['shift']());}};_0x1d4c37(++_0x20c784);}(a507_0x20c7,0x1d5));const a507_0x1d4c=function(_0x5aedcc,_0x20c784){_0x5aedcc=_0x5aedcc-0x0;let _0x1d4c37=a507_0x20c7[_0x5aedcc];return _0x1d4c37;};const _0x2af750=a507_0x1d4c;'use strict';const attributes=require(_0x2af750('0x0'));module['exports']=function(_0x5b570c){const _0x3b5a46=_0x2af750,_0x4357e4=_0x5b570c[_0x3b5a46('0x3')]('OpenchannelTransferReport',attributes,{'tableName':_0x3b5a46('0x2'),'paranoid':![],'indexes':[{'name':_0x3b5a46('0x1'),'fields':[_0x3b5a46('0x1')]}],'timestamps':!![]});return _0x4357e4;}; \ No newline at end of file +const a507_0x4a48=['define','exports','report_openchannel_transfer','OpenchannelTransferReport'];(function(_0x10481a,_0x4a4891){const _0x3b6c54=function(_0x3dd139){while(--_0x3dd139){_0x10481a['push'](_0x10481a['shift']());}};_0x3b6c54(++_0x4a4891);}(a507_0x4a48,0x106));const a507_0x3b6c=function(_0x10481a,_0x4a4891){_0x10481a=_0x10481a-0x0;let _0x3b6c54=a507_0x4a48[_0x10481a];return _0x3b6c54;};const _0x21a4e2=a507_0x3b6c;'use strict';const attributes=require('./openchannelTransferReport.attributes');module[_0x21a4e2('0x3')]=function(_0x3dd139){const _0x650155=_0x21a4e2,_0xc567b2=_0x3dd139[_0x650155('0x2')](_0x650155('0x1'),attributes,{'tableName':_0x650155('0x0'),'paranoid':![],'indexes':[{'name':'uniqueid','fields':['uniqueid']}],'timestamps':!![]});return _0xc567b2;}; \ No newline at end of file diff --git a/server/api/pause/index.js b/server/api/pause/index.js index 5782bb8..3f44864 100644 --- a/server/api/pause/index.js +++ b/server/api/pause/index.js @@ -1 +1 @@ -const a508_0x4440=['Router','./pause.controller','exports','destroy','show','post','get','isAuthenticated','put','express','update','/:id'];(function(_0x493106,_0x44401){const _0x2eb45f=function(_0x322d31){while(--_0x322d31){_0x493106['push'](_0x493106['shift']());}};_0x2eb45f(++_0x44401);}(a508_0x4440,0xe6));const a508_0x2eb4=function(_0x493106,_0x44401){_0x493106=_0x493106-0x0;let _0x2eb45f=a508_0x4440[_0x493106];return _0x2eb45f;};const _0xa485b1=a508_0x2eb4;'use strict';const express=require(_0xa485b1('0x7')),router=express[_0xa485b1('0xa')](),auth=require('../../components/auth/service'),controller=require(_0xa485b1('0xb'));router[_0xa485b1('0x4')]('/',auth['isAuthenticated'](),controller['index']),router[_0xa485b1('0x4')](_0xa485b1('0x9'),auth['isAuthenticated'](),controller[_0xa485b1('0x2')]),router[_0xa485b1('0x3')]('/',auth[_0xa485b1('0x5')](),controller['create']),router[_0xa485b1('0x6')](_0xa485b1('0x9'),auth['isAuthenticated'](),controller[_0xa485b1('0x8')]),router['delete'](_0xa485b1('0x9'),auth[_0xa485b1('0x5')](),controller[_0xa485b1('0x1')]),module[_0xa485b1('0x0')]=router; \ No newline at end of file +const a508_0x4d08=['./pause.controller','/:id','get','exports','put','show','isAuthenticated','express','index','destroy','delete','update','../../components/auth/service','Router'];(function(_0x5b825b,_0x4d084c){const _0x1db5f4=function(_0x3e0f9d){while(--_0x3e0f9d){_0x5b825b['push'](_0x5b825b['shift']());}};_0x1db5f4(++_0x4d084c);}(a508_0x4d08,0x12d));const a508_0x1db5=function(_0x5b825b,_0x4d084c){_0x5b825b=_0x5b825b-0x0;let _0x1db5f4=a508_0x4d08[_0x5b825b];return _0x1db5f4;};const _0x5b1bf8=a508_0x1db5;'use strict';const express=require(_0x5b1bf8('0x0')),router=express[_0x5b1bf8('0x6')](),auth=require(_0x5b1bf8('0x5')),controller=require(_0x5b1bf8('0x7'));router[_0x5b1bf8('0x9')]('/',auth['isAuthenticated'](),controller[_0x5b1bf8('0x1')]),router[_0x5b1bf8('0x9')]('/:id',auth[_0x5b1bf8('0xd')](),controller[_0x5b1bf8('0xc')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router[_0x5b1bf8('0xb')](_0x5b1bf8('0x8'),auth[_0x5b1bf8('0xd')](),controller[_0x5b1bf8('0x4')]),router[_0x5b1bf8('0x3')](_0x5b1bf8('0x8'),auth['isAuthenticated'](),controller[_0x5b1bf8('0x2')]),module[_0x5b1bf8('0xa')]=router; \ No newline at end of file diff --git a/server/api/pause/pause.attributes.js b/server/api/pause/pause.attributes.js index 90d0eb6..fe00426 100644 --- a/server/api/pause/pause.attributes.js +++ b/server/api/pause/pause.attributes.js @@ -1 +1 @@ -const a509_0x5134=['exports'];(function(_0x36dbb8,_0x513407){const _0x3541cd=function(_0x5d9e11){while(--_0x5d9e11){_0x36dbb8['push'](_0x36dbb8['shift']());}};_0x3541cd(++_0x513407);}(a509_0x5134,0xe4));const a509_0x3541=function(_0x36dbb8,_0x513407){_0x36dbb8=_0x36dbb8-0x0;let _0x3541cd=a509_0x5134[_0x36dbb8];return _0x3541cd;};const _0x175a44=a509_0x3541;'use strict';const Sequelize=require('sequelize');module[_0x175a44('0x0')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a509_0x8c6e=['STRING','exports','name'];(function(_0x4bd597,_0x8c6ede){const _0x46ec8f=function(_0x5303b2){while(--_0x5303b2){_0x4bd597['push'](_0x4bd597['shift']());}};_0x46ec8f(++_0x8c6ede);}(a509_0x8c6e,0x7c));const a509_0x46ec=function(_0x4bd597,_0x8c6ede){_0x4bd597=_0x4bd597-0x0;let _0x46ec8f=a509_0x8c6e[_0x4bd597];return _0x46ec8f;};const _0x108280=a509_0x46ec;'use strict';const Sequelize=require('sequelize');module[_0x108280('0x0')]={'name':{'type':Sequelize[_0x108280('0x2')],'unique':_0x108280('0x1'),'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 72141a9..40a9473 100644 --- a/server/api/pause/pause.controller.js +++ b/server/api/pause/pause.controller.js @@ -1 +1 @@ -const a510_0x5cea=['undefined','limit','role','where','intersection','set','sendStatus','send','findOne','name','include','query','findAll','user','Pauses','Content-Range','filters','Pause','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','then','show','status','keys','filter','userProfileId','Unable\x20to\x20retrieve\x20the\x20current\x20user','catch','UserProfileResource','rows','UserProfileSection','options','body','autoAssociation','../../config/logger','merge','VIRTUAL','fieldName','lodash','fields','rawAttributes','end','update','key','map','attributes','order','index','nolimit','offset','create','json','../../components/parsers/qs','model','api','type','count','sort','params','pick','get','length','destroy','like','error','includeAll'];(function(_0x399c4b,_0x5cea36){const _0x2a22ff=function(_0x2ccc73){while(--_0x2ccc73){_0x399c4b['push'](_0x399c4b['shift']());}};_0x2a22ff(++_0x5cea36);}(a510_0x5cea,0x6b));const a510_0x2a22=function(_0x399c4b,_0x5cea36){_0x399c4b=_0x399c4b-0x0;let _0x2a22ff=a510_0x5cea[_0x399c4b];return _0x2a22ff;};const _0xa893a2=a510_0x2a22;'use strict';const _=require(_0xa893a2('0x3c')),qs=require(_0xa893a2('0x9')),logger=require(_0xa893a2('0x38'))(_0xa893a2('0xb')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x2ccc73,_0x382603){return _0x382603=_0x382603||0xc8,function(_0xafbff5){const _0x3937f9=a510_0x2a22;if(_0xafbff5)return _0x2ccc73[_0x3937f9('0x2c')](_0x382603)['json'](_0xafbff5);};}function respondWithFilteredResult(_0x27a456,_0x24528e){return function(_0x56fe59){const _0x4e6816=a510_0x2a22;if(_0x56fe59){const _0x14ce02=_0x56fe59[_0x4e6816('0xd')],_0x59d4be=_0x24528e[_0x4e6816('0x6')];let _0x2a2483=_0x24528e[_0x4e6816('0x6')]+_0x24528e['limit'],_0x2cb3e5;return _0x2a2483>=_0x14ce02?(_0x2a2483=_0x14ce02,_0x2cb3e5=0xc8):_0x2cb3e5=0xce,_0x27a456[_0x4e6816('0x2c')](_0x2cb3e5),_0x27a456[_0x4e6816('0x1c')](_0x4e6816('0x26'),_0x59d4be+'-'+_0x2a2483+'/'+_0x14ce02)[_0x4e6816('0x8')](_0x56fe59);}return null;};}function saveUpdates(_0x570a77){return function(_0x79dccd){const _0x26d245=a510_0x2a22;if(_0x79dccd)return _0x79dccd[_0x26d245('0x40')](_0x570a77)[_0x26d245('0x2a')](function(_0x5522d2){return _0x5522d2;});return null;};}function removeEntity(_0x4da59b){return function(_0x54aefd){const _0x4121e6=a510_0x2a22;if(_0x54aefd)return _0x54aefd[_0x4121e6('0x13')]()[_0x4121e6('0x2a')](function(){const _0x1ea30e=_0x4121e6,_0x587350=_0x54aefd[_0x1ea30e('0x11')]({'plain':!![]}),_0x3d42c6='Pauses';return db[_0x1ea30e('0x32')][_0x1ea30e('0x13')]({'where':{'type':_0x3d42c6,'resourceId':_0x587350['id']}})['then'](function(){return _0x54aefd;});})[_0x4121e6('0x2a')](function(){const _0x40f1dd=_0x4121e6;_0x4da59b['status'](0xcc)[_0x40f1dd('0x3f')]();});};}function handleEntityNotFound(_0x1f581d){return function(_0xb09128){const _0x784d8=a510_0x2a22;return!_0xb09128&&_0x1f581d[_0x784d8('0x1d')](0x194),_0xb09128;};}function handleError(_0x3b4c84,_0x3b2ebf){return _0x3b2ebf=_0x3b2ebf||0x1f4,function(_0x54686e){const _0x31208d=a510_0x2a22;logger[_0x31208d('0x15')](_0x54686e['stack']),_0x54686e[_0x31208d('0x20')]&&delete _0x54686e[_0x31208d('0x20')],_0x3b4c84[_0x31208d('0x2c')](_0x3b2ebf)[_0x31208d('0x1e')](_0x54686e);};}exports[_0xa893a2('0x4')]=function(_0x28edee,_0x4124e8){const _0x4c1a90=_0xa893a2;let _0x4f717d={};const _0x386789={},_0x2fba47={'count':0x0,'rows':[]},_0x55d3be=_[_0x4c1a90('0x1')](db[_0x4c1a90('0x28')][_0x4c1a90('0x3e')],function(_0x1a1a47){const _0x311ed0=_0x4c1a90;return{'name':_0x1a1a47[_0x311ed0('0x3b')],'type':_0x1a1a47[_0x311ed0('0xc')][_0x311ed0('0x0')]};});_0x386789[_0x4c1a90('0xa')]=_[_0x4c1a90('0x1')](_0x55d3be,'name'),_0x386789['query']=_['keys'](_0x28edee[_0x4c1a90('0x22')]),_0x386789[_0x4c1a90('0x27')]=_[_0x4c1a90('0x1b')](_0x386789[_0x4c1a90('0xa')],_0x386789[_0x4c1a90('0x22')]),_0x4f717d[_0x4c1a90('0x2')]=_['intersection'](_0x386789[_0x4c1a90('0xa')],qs[_0x4c1a90('0x3d')](_0x28edee[_0x4c1a90('0x22')][_0x4c1a90('0x3d')])),_0x4f717d['attributes']=_0x4f717d[_0x4c1a90('0x2')][_0x4c1a90('0x12')]?_0x4f717d[_0x4c1a90('0x2')]:_0x386789[_0x4c1a90('0xa')];typeof _0x28edee[_0x4c1a90('0x22')][_0x4c1a90('0x5')]===_0x4c1a90('0x17')&&(_0x4f717d['limit']=qs['limit'](_0x28edee[_0x4c1a90('0x22')][_0x4c1a90('0x18')]),_0x4f717d['offset']=qs[_0x4c1a90('0x6')](_0x28edee[_0x4c1a90('0x22')]['offset']));_0x4f717d[_0x4c1a90('0x3')]=qs['sort'](_0x28edee[_0x4c1a90('0x22')][_0x4c1a90('0xe')]),_0x4f717d[_0x4c1a90('0x1a')]=qs[_0x4c1a90('0x27')](_[_0x4c1a90('0x10')](_0x28edee[_0x4c1a90('0x22')],_0x386789['filters']),_0x55d3be);_0x28edee[_0x4c1a90('0x22')][_0x4c1a90('0x2e')]&&(_0x4f717d['where']=_[_0x4c1a90('0x39')](_0x4f717d[_0x4c1a90('0x1a')],{[Op['or']]:_['map'](_0x55d3be,function(_0x3ffe2c){const _0x3cbc3a=_0x4c1a90;if(_0x3ffe2c[_0x3cbc3a('0xc')]!==_0x3cbc3a('0x3a')){const _0x46141e={};return _0x46141e[_0x3ffe2c[_0x3cbc3a('0x20')]]={[Op[_0x3cbc3a('0x14')]]:'%'+_0x28edee[_0x3cbc3a('0x22')][_0x3cbc3a('0x2e')]+'%'},_0x46141e;}})}));_0x4f717d=_[_0x4c1a90('0x39')]({},_0x4f717d,_0x28edee[_0x4c1a90('0x35')]);const _0x5e1101={'where':_0x4f717d[_0x4c1a90('0x1a')]};return db['Pause'][_0x4c1a90('0xd')](_0x5e1101)[_0x4c1a90('0x2a')](function(_0x56bffd){const _0x5417b0=_0x4c1a90;return _0x2fba47['count']=_0x56bffd,_0x28edee[_0x5417b0('0x22')][_0x5417b0('0x16')]&&(_0x4f717d['include']=[{'all':!![]}]),db[_0x5417b0('0x28')][_0x5417b0('0x23')](_0x4f717d);})[_0x4c1a90('0x2a')](function(_0x4cb034){const _0x109f02=_0x4c1a90;return _0x2fba47[_0x109f02('0x33')]=_0x4cb034,_0x2fba47;})['then'](respondWithFilteredResult(_0x4124e8,_0x4f717d))[_0x4c1a90('0x31')](handleError(_0x4124e8,null));},exports[_0xa893a2('0x2b')]=function(_0x5b8be2,_0x3d4c2a){const _0x261d9c=_0xa893a2;let _0x4bd976={'raw':!![],'where':{'id':_0x5b8be2[_0x261d9c('0xf')]['id']}};const _0x54caf0={};return _0x54caf0[_0x261d9c('0xa')]=_[_0x261d9c('0x2d')](db[_0x261d9c('0x28')][_0x261d9c('0x3e')]),_0x54caf0[_0x261d9c('0x22')]=_['keys'](_0x5b8be2[_0x261d9c('0x22')]),_0x54caf0['filters']=_[_0x261d9c('0x1b')](_0x54caf0[_0x261d9c('0xa')],_0x54caf0[_0x261d9c('0x22')]),_0x4bd976[_0x261d9c('0x2')]=_[_0x261d9c('0x1b')](_0x54caf0[_0x261d9c('0xa')],qs[_0x261d9c('0x3d')](_0x5b8be2[_0x261d9c('0x22')][_0x261d9c('0x3d')])),_0x4bd976[_0x261d9c('0x2')]=_0x4bd976[_0x261d9c('0x2')][_0x261d9c('0x12')]?_0x4bd976[_0x261d9c('0x2')]:_0x54caf0['model'],_0x5b8be2[_0x261d9c('0x22')][_0x261d9c('0x16')]&&(_0x4bd976[_0x261d9c('0x21')]=[{'all':!![]}]),_0x4bd976=_[_0x261d9c('0x39')]({},_0x4bd976,_0x5b8be2[_0x261d9c('0x35')]),db['Pause'][_0x261d9c('0x1f')](_0x4bd976)[_0x261d9c('0x2a')](handleEntityNotFound(_0x3d4c2a,null))[_0x261d9c('0x2a')](respondWithResult(_0x3d4c2a,null))[_0x261d9c('0x31')](handleError(_0x3d4c2a,null));},exports['create']=function(_0x3bc9ee,_0x328754){const _0x2200c9=_0xa893a2;return db[_0x2200c9('0x28')][_0x2200c9('0x7')](_0x3bc9ee[_0x2200c9('0x36')],{})[_0x2200c9('0x2a')](function(_0x31f41c){const _0x4e91d2=_0x2200c9,_0x44e868=_0x3bc9ee[_0x4e91d2('0x24')][_0x4e91d2('0x11')]({'plain':!![]});if(!_0x44e868)throw new Error(_0x4e91d2('0x30'));if(_0x44e868[_0x4e91d2('0x19')]===_0x4e91d2('0x24')){const _0x5ec168=_0x31f41c[_0x4e91d2('0x11')]({'plain':!![]}),_0x19ce61=_0x4e91d2('0x25');return db[_0x4e91d2('0x34')][_0x4e91d2('0x1f')]({'where':{'name':_0x19ce61,'userProfileId':_0x44e868[_0x4e91d2('0x2f')]},'raw':!![]})[_0x4e91d2('0x2a')](function(_0x2edb2e){const _0x1b2d0d=_0x4e91d2;return _0x2edb2e&&_0x2edb2e[_0x1b2d0d('0x37')]===0x0?db[_0x1b2d0d('0x32')][_0x1b2d0d('0x7')]({'name':_0x5ec168[_0x1b2d0d('0x20')],'resourceId':_0x5ec168['id'],'type':_0x2edb2e['name'],'sectionId':_0x2edb2e['id']},{})[_0x1b2d0d('0x2a')](function(){return _0x31f41c;}):_0x31f41c;})['catch'](function(_0x5efe52){const _0x2642d4=_0x4e91d2;logger[_0x2642d4('0x15')](_0x2642d4('0x29'),_0x5efe52);throw _0x5efe52;});}return _0x31f41c;})['then'](respondWithResult(_0x328754,0xc9))[_0x2200c9('0x31')](handleError(_0x328754,null));},exports[_0xa893a2('0x40')]=function(_0x623b29,_0x7e4c64){const _0x26b2ce=_0xa893a2;return _0x623b29[_0x26b2ce('0x36')]['id']&&delete _0x623b29[_0x26b2ce('0x36')]['id'],db[_0x26b2ce('0x28')][_0x26b2ce('0x1f')]({'where':{'id':_0x623b29['params']['id']}})[_0x26b2ce('0x2a')](handleEntityNotFound(_0x7e4c64,null))['then'](saveUpdates(_0x623b29['body'],null))[_0x26b2ce('0x2a')](respondWithResult(_0x7e4c64,null))[_0x26b2ce('0x31')](handleError(_0x7e4c64,null));},exports[_0xa893a2('0x13')]=function(_0x322c32,_0xd18091){const _0x208597=_0xa893a2;return db[_0x208597('0x28')][_0x208597('0x1f')]({'where':{'id':_0x322c32['params']['id']}})[_0x208597('0x2a')](handleEntityNotFound(_0xd18091,null))['then'](removeEntity(_0xd18091,null))[_0x208597('0x31')](handleError(_0xd18091,null));}; \ No newline at end of file +const a510_0x5d4d=['findAll','rows','Content-Range','destroy','catch','show','status','filter','offset','get','query','../../mysqldb','type','create','api','rawAttributes','include','map','send','user','Pauses','sequelize','Pause','options','findOne','json','UserProfileResource','body','where','model','params','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','includeAll','limit','keys','pick','index','order','attributes','count','VIRTUAL','filters','nolimit','../../config/logger','role','fields','Unable\x20to\x20retrieve\x20the\x20current\x20user','then','length','sort','../../components/parsers/qs','sendStatus','merge','set','error','like','update','name','intersection'];(function(_0x189574,_0x5d4dc5){const _0x4db837=function(_0x16e552){while(--_0x16e552){_0x189574['push'](_0x189574['shift']());}};_0x4db837(++_0x5d4dc5);}(a510_0x5d4d,0x10e));const a510_0x4db8=function(_0x189574,_0x5d4dc5){_0x189574=_0x189574-0x0;let _0x4db837=a510_0x5d4d[_0x189574];return _0x4db837;};const _0xd608c0=a510_0x4db8;'use strict';const _=require('lodash'),qs=require(_0xd608c0('0x10')),logger=require(_0xd608c0('0x9'))(_0xd608c0('0x27')),db=require(_0xd608c0('0x24'))['db'],{Op}=require(_0xd608c0('0x2e'));function respondWithResult(_0x16e552,_0x5ca76e){return _0x5ca76e=_0x5ca76e||0xc8,function(_0x93b118){const _0x525bbb=a510_0x4db8;if(_0x93b118)return _0x16e552[_0x525bbb('0x1f')](_0x5ca76e)[_0x525bbb('0x32')](_0x93b118);};}function respondWithFilteredResult(_0x141ec3,_0x1010a8){return function(_0x118024){const _0x124069=a510_0x4db8;if(_0x118024){const _0xe9a9ea=_0x118024[_0x124069('0x5')],_0x1b38e2=_0x1010a8[_0x124069('0x21')];let _0x3e7548=_0x1010a8['offset']+_0x1010a8[_0x124069('0x3a')],_0x3515b2;return _0x3e7548>=_0xe9a9ea?(_0x3e7548=_0xe9a9ea,_0x3515b2=0xc8):_0x3515b2=0xce,_0x141ec3[_0x124069('0x1f')](_0x3515b2),_0x141ec3[_0x124069('0x13')](_0x124069('0x1b'),_0x1b38e2+'-'+_0x3e7548+'/'+_0xe9a9ea)[_0x124069('0x32')](_0x118024);}return null;};}function saveUpdates(_0xad9822){return function(_0x1e4da4){const _0x277dcb=a510_0x4db8;if(_0x1e4da4)return _0x1e4da4[_0x277dcb('0x16')](_0xad9822)[_0x277dcb('0xd')](function(_0x501140){return _0x501140;});return null;};}function removeEntity(_0x3389ef){return function(_0x2758d5){const _0x4e6147=a510_0x4db8;if(_0x2758d5)return _0x2758d5['destroy']()['then'](function(){const _0x56bb44=a510_0x4db8,_0x44ad26=_0x2758d5[_0x56bb44('0x22')]({'plain':!![]}),_0x447295=_0x56bb44('0x2d');return db['UserProfileResource'][_0x56bb44('0x1c')]({'where':{'type':_0x447295,'resourceId':_0x44ad26['id']}})[_0x56bb44('0xd')](function(){return _0x2758d5;});})[_0x4e6147('0xd')](function(){_0x3389ef['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x56e85b){return function(_0x238c06){const _0xc4a3c7=a510_0x4db8;return!_0x238c06&&_0x56e85b[_0xc4a3c7('0x11')](0x194),_0x238c06;};}function handleError(_0xf82328,_0x452a9f){return _0x452a9f=_0x452a9f||0x1f4,function(_0x53e385){const _0x557337=a510_0x4db8;logger[_0x557337('0x14')](_0x53e385['stack']),_0x53e385[_0x557337('0x17')]&&delete _0x53e385[_0x557337('0x17')],_0xf82328[_0x557337('0x1f')](_0x452a9f)[_0x557337('0x2b')](_0x53e385);};}exports[_0xd608c0('0x2')]=function(_0x516d57,_0x2068e4){const _0xe880c3=_0xd608c0;let _0x481b7a={};const _0xfb2e2={},_0xb24be2={'count':0x0,'rows':[]},_0x4a9eb8=_[_0xe880c3('0x2a')](db[_0xe880c3('0x2f')][_0xe880c3('0x28')],function(_0x498e49){const _0x54570a=_0xe880c3;return{'name':_0x498e49['fieldName'],'type':_0x498e49[_0x54570a('0x25')]['key']};});_0xfb2e2['model']=_[_0xe880c3('0x2a')](_0x4a9eb8,_0xe880c3('0x17')),_0xfb2e2[_0xe880c3('0x23')]=_[_0xe880c3('0x0')](_0x516d57['query']),_0xfb2e2[_0xe880c3('0x7')]=_[_0xe880c3('0x18')](_0xfb2e2['model'],_0xfb2e2[_0xe880c3('0x23')]),_0x481b7a[_0xe880c3('0x4')]=_[_0xe880c3('0x18')](_0xfb2e2[_0xe880c3('0x36')],qs[_0xe880c3('0xb')](_0x516d57[_0xe880c3('0x23')][_0xe880c3('0xb')])),_0x481b7a[_0xe880c3('0x4')]=_0x481b7a[_0xe880c3('0x4')][_0xe880c3('0xe')]?_0x481b7a[_0xe880c3('0x4')]:_0xfb2e2['model'];typeof _0x516d57[_0xe880c3('0x23')][_0xe880c3('0x8')]==='undefined'&&(_0x481b7a['limit']=qs['limit'](_0x516d57['query']['limit']),_0x481b7a[_0xe880c3('0x21')]=qs[_0xe880c3('0x21')](_0x516d57[_0xe880c3('0x23')][_0xe880c3('0x21')]));_0x481b7a[_0xe880c3('0x3')]=qs[_0xe880c3('0xf')](_0x516d57['query']['sort']),_0x481b7a[_0xe880c3('0x35')]=qs['filters'](_[_0xe880c3('0x1')](_0x516d57[_0xe880c3('0x23')],_0xfb2e2[_0xe880c3('0x7')]),_0x4a9eb8);_0x516d57[_0xe880c3('0x23')][_0xe880c3('0x20')]&&(_0x481b7a[_0xe880c3('0x35')]=_[_0xe880c3('0x12')](_0x481b7a[_0xe880c3('0x35')],{[Op['or']]:_['map'](_0x4a9eb8,function(_0x9ab79b){const _0x4b840c=_0xe880c3;if(_0x9ab79b[_0x4b840c('0x25')]!==_0x4b840c('0x6')){const _0x1a467f={};return _0x1a467f[_0x9ab79b[_0x4b840c('0x17')]]={[Op[_0x4b840c('0x15')]]:'%'+_0x516d57[_0x4b840c('0x23')][_0x4b840c('0x20')]+'%'},_0x1a467f;}})}));_0x481b7a=_[_0xe880c3('0x12')]({},_0x481b7a,_0x516d57[_0xe880c3('0x30')]);const _0xbf84e6={'where':_0x481b7a[_0xe880c3('0x35')]};return db[_0xe880c3('0x2f')][_0xe880c3('0x5')](_0xbf84e6)[_0xe880c3('0xd')](function(_0x4d78db){const _0x200029=_0xe880c3;return _0xb24be2[_0x200029('0x5')]=_0x4d78db,_0x516d57['query'][_0x200029('0x39')]&&(_0x481b7a[_0x200029('0x29')]=[{'all':!![]}]),db[_0x200029('0x2f')][_0x200029('0x19')](_0x481b7a);})[_0xe880c3('0xd')](function(_0x2f76d8){const _0x4b2322=_0xe880c3;return _0xb24be2[_0x4b2322('0x1a')]=_0x2f76d8,_0xb24be2;})[_0xe880c3('0xd')](respondWithFilteredResult(_0x2068e4,_0x481b7a))[_0xe880c3('0x1d')](handleError(_0x2068e4,null));},exports[_0xd608c0('0x1e')]=function(_0x533791,_0x50abcb){const _0x23e3d1=_0xd608c0;let _0x259c64={'raw':!![],'where':{'id':_0x533791[_0x23e3d1('0x37')]['id']}};const _0x1a83de={};return _0x1a83de[_0x23e3d1('0x36')]=_[_0x23e3d1('0x0')](db[_0x23e3d1('0x2f')][_0x23e3d1('0x28')]),_0x1a83de[_0x23e3d1('0x23')]=_[_0x23e3d1('0x0')](_0x533791[_0x23e3d1('0x23')]),_0x1a83de[_0x23e3d1('0x7')]=_[_0x23e3d1('0x18')](_0x1a83de[_0x23e3d1('0x36')],_0x1a83de[_0x23e3d1('0x23')]),_0x259c64[_0x23e3d1('0x4')]=_[_0x23e3d1('0x18')](_0x1a83de[_0x23e3d1('0x36')],qs['fields'](_0x533791[_0x23e3d1('0x23')]['fields'])),_0x259c64[_0x23e3d1('0x4')]=_0x259c64[_0x23e3d1('0x4')][_0x23e3d1('0xe')]?_0x259c64['attributes']:_0x1a83de['model'],_0x533791[_0x23e3d1('0x23')][_0x23e3d1('0x39')]&&(_0x259c64[_0x23e3d1('0x29')]=[{'all':!![]}]),_0x259c64=_['merge']({},_0x259c64,_0x533791[_0x23e3d1('0x30')]),db['Pause'][_0x23e3d1('0x31')](_0x259c64)[_0x23e3d1('0xd')](handleEntityNotFound(_0x50abcb,null))[_0x23e3d1('0xd')](respondWithResult(_0x50abcb,null))[_0x23e3d1('0x1d')](handleError(_0x50abcb,null));},exports[_0xd608c0('0x26')]=function(_0x2e7650,_0x261bbb){const _0x2a7e4a=_0xd608c0;return db['Pause'][_0x2a7e4a('0x26')](_0x2e7650[_0x2a7e4a('0x34')],{})['then'](function(_0x158759){const _0x5daf10=_0x2a7e4a,_0x4bf3ce=_0x2e7650[_0x5daf10('0x2c')][_0x5daf10('0x22')]({'plain':!![]});if(!_0x4bf3ce)throw new Error(_0x5daf10('0xc'));if(_0x4bf3ce[_0x5daf10('0xa')]===_0x5daf10('0x2c')){const _0x14e468=_0x158759['get']({'plain':!![]}),_0x19c8c2=_0x5daf10('0x2d');return db['UserProfileSection'][_0x5daf10('0x31')]({'where':{'name':_0x19c8c2,'userProfileId':_0x4bf3ce['userProfileId']},'raw':!![]})[_0x5daf10('0xd')](function(_0x511dda){const _0x4c89fa=_0x5daf10;return _0x511dda&&_0x511dda['autoAssociation']===0x0?db[_0x4c89fa('0x33')][_0x4c89fa('0x26')]({'name':_0x14e468['name'],'resourceId':_0x14e468['id'],'type':_0x511dda['name'],'sectionId':_0x511dda['id']},{})[_0x4c89fa('0xd')](function(){return _0x158759;}):_0x158759;})[_0x5daf10('0x1d')](function(_0x4e19b2){const _0x17791e=_0x5daf10;logger[_0x17791e('0x14')](_0x17791e('0x38'),_0x4e19b2);throw _0x4e19b2;});}return _0x158759;})[_0x2a7e4a('0xd')](respondWithResult(_0x261bbb,0xc9))[_0x2a7e4a('0x1d')](handleError(_0x261bbb,null));},exports[_0xd608c0('0x16')]=function(_0x3453f3,_0x51a04b){const _0x198c38=_0xd608c0;return _0x3453f3[_0x198c38('0x34')]['id']&&delete _0x3453f3[_0x198c38('0x34')]['id'],db['Pause']['findOne']({'where':{'id':_0x3453f3[_0x198c38('0x37')]['id']}})[_0x198c38('0xd')](handleEntityNotFound(_0x51a04b,null))[_0x198c38('0xd')](saveUpdates(_0x3453f3[_0x198c38('0x34')],null))['then'](respondWithResult(_0x51a04b,null))[_0x198c38('0x1d')](handleError(_0x51a04b,null));},exports[_0xd608c0('0x1c')]=function(_0x38ba8a,_0x344a30){const _0x35cec3=_0xd608c0;return db[_0x35cec3('0x2f')][_0x35cec3('0x31')]({'where':{'id':_0x38ba8a[_0x35cec3('0x37')]['id']}})[_0x35cec3('0xd')](handleEntityNotFound(_0x344a30,null))[_0x35cec3('0xd')](removeEntity(_0x344a30,null))[_0x35cec3('0x1d')](handleError(_0x344a30,null));}; \ No newline at end of file diff --git a/server/api/pause/pause.model.js b/server/api/pause/pause.model.js index 64f66ef..f38e7ca 100644 --- a/server/api/pause/pause.model.js +++ b/server/api/pause/pause.model.js @@ -1 +1 @@ -const a511_0x1560=['define','exports'];(function(_0x4acc4a,_0x156081){const _0x3e516a=function(_0x7fcd19){while(--_0x7fcd19){_0x4acc4a['push'](_0x4acc4a['shift']());}};_0x3e516a(++_0x156081);}(a511_0x1560,0x10b));const a511_0x3e51=function(_0x4acc4a,_0x156081){_0x4acc4a=_0x4acc4a-0x0;let _0x3e516a=a511_0x1560[_0x4acc4a];return _0x3e516a;};const _0x38bfb3=a511_0x3e51;'use strict';const attributes=require('./pause.attributes');module[_0x38bfb3('0x0')]=function(_0x7fcd19){const _0x38f0b5=_0x38bfb3,_0x330c68=_0x7fcd19[_0x38f0b5('0x1')]('Pause',attributes,{'tableName':'tools_pauses','paranoid':![],'indexes':[],'timestamps':!![]});return _0x330c68;}; \ No newline at end of file +const a511_0x581b=['tools_pauses','exports','./pause.attributes','Pause','define'];(function(_0x38b3d7,_0x581bf3){const _0x94d53c=function(_0x189b58){while(--_0x189b58){_0x38b3d7['push'](_0x38b3d7['shift']());}};_0x94d53c(++_0x581bf3);}(a511_0x581b,0x152));const a511_0x94d5=function(_0x38b3d7,_0x581bf3){_0x38b3d7=_0x38b3d7-0x0;let _0x94d53c=a511_0x581b[_0x38b3d7];return _0x94d53c;};const _0x327973=a511_0x94d5;'use strict';const attributes=require(_0x327973('0x4'));module[_0x327973('0x3')]=function(_0x189b58){const _0x2a3f23=_0x327973,_0x195dec=_0x189b58[_0x2a3f23('0x1')](_0x2a3f23('0x0'),attributes,{'tableName':_0x2a3f23('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x195dec;}; \ No newline at end of file diff --git a/server/api/pause/pause.rpc.js b/server/api/pause/pause.rpc.js index 51dd9a8..dbc82fa 100644 --- a/server/api/pause/pause.rpc.js +++ b/server/api/pause/pause.rpc.js @@ -1 +1 @@ -const a512_0x14ab=['then','debug','../../config/logger','findOne','map','rpc','stringify','Pause','options','../../mysqldb','error','model','where','attributes','ShowPause','lodash','raw','message','include'];(function(_0x49d295,_0x14abc2){const _0x57e9ba=function(_0x159b04){while(--_0x159b04){_0x49d295['push'](_0x49d295['shift']());}};_0x57e9ba(++_0x14abc2);}(a512_0x14ab,0xe9));const a512_0x57e9=function(_0x49d295,_0x14abc2){_0x49d295=_0x49d295-0x0;let _0x57e9ba=a512_0x14ab[_0x49d295];return _0x57e9ba;};const _0xe37da4=a512_0x57e9;'use strict';const db=require(_0xe37da4('0x4'))['db'],logger=require(_0xe37da4('0x10'))(_0xe37da4('0x0')),_=require(_0xe37da4('0xa'));exports[_0xe37da4('0x9')]=function(_0x159b04){const _0x55b2fa=this;return new Promise(function(_0x2c0029,_0x5c3dc6){const _0xd81575=a512_0x57e9;return db[_0xd81575('0x2')][_0xd81575('0x11')]({'raw':_0x159b04[_0xd81575('0x3')]?_0x159b04[_0xd81575('0x3')][_0xd81575('0xb')]===undefined?!![]:![]:!![],'where':_0x159b04['options']?_0x159b04[_0xd81575('0x3')][_0xd81575('0x7')]||null:null,'attributes':_0x159b04['options']?_0x159b04[_0xd81575('0x3')][_0xd81575('0x8')]||null:null,'include':_0x159b04[_0xd81575('0x3')]?_0x159b04[_0xd81575('0x3')][_0xd81575('0xd')]?_[_0xd81575('0x12')](_0x159b04['options']['include'],function(_0x25fde0){const _0x528c9d=_0xd81575;return{'model':db[_0x25fde0['model']],'as':_0x25fde0['as'],'attributes':_0x25fde0[_0x528c9d('0x8')],'include':_0x25fde0[_0x528c9d('0xd')]?_[_0x528c9d('0x12')](_0x25fde0['include'],function(_0x2b56f5){const _0x2614e0=_0x528c9d;return{'model':db[_0x2b56f5[_0x2614e0('0x6')]],'as':_0x2b56f5['as'],'attributes':_0x2b56f5[_0x2614e0('0x8')],'include':_0x2b56f5[_0x2614e0('0xd')]?_[_0x2614e0('0x12')](_0x2b56f5[_0x2614e0('0xd')],function(_0x311113){const _0x2a0247=_0x2614e0;return{'model':db[_0x311113[_0x2a0247('0x6')]],'as':_0x311113['as'],'attributes':_0x311113['attributes']};}):[]};}):[]};}):[]:[]})[_0xd81575('0xe')](function(_0x47f4f2){const _0x10e55c=_0xd81575;logger['info']('ShowPause',_0x159b04),logger[_0x10e55c('0xf')](_0x10e55c('0x9'),_0x159b04,JSON[_0x10e55c('0x1')](_0x47f4f2)),_0x2c0029(_0x47f4f2);})['catch'](function(_0x2fbb5f){const _0xbc20f8=_0xd81575;logger[_0xbc20f8('0x5')]('ShowPause',_0x2fbb5f[_0xbc20f8('0xc')],_0x159b04),_0x5c3dc6(_0x55b2fa[_0xbc20f8('0x5')](0x1f4,_0x2fbb5f[_0xbc20f8('0xc')]));});});}; \ No newline at end of file +const a512_0x87fc=['ShowPause','findOne','debug','options','then','raw','../../config/logger','model','lodash','Pause','stringify','catch','error','message','include','info','map','rpc','attributes'];(function(_0x531dcb,_0x87fc21){const _0x1f647a=function(_0x1f4354){while(--_0x1f4354){_0x531dcb['push'](_0x531dcb['shift']());}};_0x1f647a(++_0x87fc21);}(a512_0x87fc,0x19c));const a512_0x1f64=function(_0x531dcb,_0x87fc21){_0x531dcb=_0x531dcb-0x0;let _0x1f647a=a512_0x87fc[_0x531dcb];return _0x1f647a;};const _0x53b47c=a512_0x1f64;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x53b47c('0xc'))(_0x53b47c('0x4')),_=require(_0x53b47c('0xe'));exports['ShowPause']=function(_0x1f4354){const _0x364613=this;return new Promise(function(_0x139469,_0x467494){const _0x528b6e=a512_0x1f64;return db[_0x528b6e('0xf')][_0x528b6e('0x7')]({'raw':_0x1f4354[_0x528b6e('0x9')]?_0x1f4354[_0x528b6e('0x9')][_0x528b6e('0xb')]===undefined?!![]:![]:!![],'where':_0x1f4354['options']?_0x1f4354[_0x528b6e('0x9')]['where']||null:null,'attributes':_0x1f4354[_0x528b6e('0x9')]?_0x1f4354[_0x528b6e('0x9')][_0x528b6e('0x5')]||null:null,'include':_0x1f4354[_0x528b6e('0x9')]?_0x1f4354[_0x528b6e('0x9')]['include']?_['map'](_0x1f4354[_0x528b6e('0x9')][_0x528b6e('0x1')],function(_0x5b0b18){const _0x196cb4=_0x528b6e;return{'model':db[_0x5b0b18[_0x196cb4('0xd')]],'as':_0x5b0b18['as'],'attributes':_0x5b0b18[_0x196cb4('0x5')],'include':_0x5b0b18[_0x196cb4('0x1')]?_[_0x196cb4('0x3')](_0x5b0b18['include'],function(_0x53cbbe){const _0x192fd8=_0x196cb4;return{'model':db[_0x53cbbe[_0x192fd8('0xd')]],'as':_0x53cbbe['as'],'attributes':_0x53cbbe[_0x192fd8('0x5')],'include':_0x53cbbe['include']?_[_0x192fd8('0x3')](_0x53cbbe['include'],function(_0xb0f6de){return{'model':db[_0xb0f6de['model']],'as':_0xb0f6de['as'],'attributes':_0xb0f6de['attributes']};}):[]};}):[]};}):[]:[]})[_0x528b6e('0xa')](function(_0x5209d8){const _0x53e2fb=_0x528b6e;logger[_0x53e2fb('0x2')](_0x53e2fb('0x6'),_0x1f4354),logger[_0x53e2fb('0x8')]('ShowPause',_0x1f4354,JSON[_0x53e2fb('0x10')](_0x5209d8)),_0x139469(_0x5209d8);})[_0x528b6e('0x11')](function(_0x3e3559){const _0x4a42de=_0x528b6e;logger[_0x4a42de('0x12')]('ShowPause',_0x3e3559[_0x4a42de('0x0')],_0x1f4354),_0x467494(_0x364613[_0x4a42de('0x12')](0x1f4,_0x3e3559[_0x4a42de('0x0')]));});});}; \ No newline at end of file diff --git a/server/api/plugin/index.js b/server/api/plugin/index.js index c53793c..82ba645 100644 --- a/server/api/plugin/index.js +++ b/server/api/plugin/index.js @@ -1 +1 @@ -const a513_0x2964=['post','update','format','single','multer','originalname','/webhook','root','path','/:id','get','/:id/download','extname','../../config/environment','./plugin.controller','download','files/plugins','exports','Router','delete','put','file','webhookPost','replace','util','isAuthenticated','%s-%s%s','express','now'];(function(_0x24e791,_0x296432){const _0x3fc795=function(_0x428c6f){while(--_0x428c6f){_0x24e791['push'](_0x24e791['shift']());}};_0x3fc795(++_0x296432);}(a513_0x2964,0x185));const a513_0x3fc7=function(_0x24e791,_0x296432){_0x24e791=_0x24e791-0x0;let _0x3fc795=a513_0x2964[_0x24e791];return _0x3fc795;};const _0x598dad=a513_0x3fc7;'use strict';const multer=require(_0x598dad('0x15')),util=require(_0x598dad('0xc')),path=require(_0x598dad('0x19')),express=require(_0x598dad('0xf')),router=express[_0x598dad('0x6')](),auth=require('../../components/auth/service'),config=require(_0x598dad('0x1')),controller=require(_0x598dad('0x2'));router['get']('/',auth[_0x598dad('0xd')](),controller['index']),router[_0x598dad('0x1b')](_0x598dad('0x17'),controller['webhookGet']),router['get'](_0x598dad('0x1a'),auth[_0x598dad('0xd')](),controller['show']),router['get'](_0x598dad('0x1c'),auth[_0x598dad('0xd')](),controller[_0x598dad('0x3')]);const upload=multer({'storage':multer['diskStorage']({'destination':function(_0x428c6f,_0xcf4e97,_0xfa6932){const _0x1cf524=_0x598dad;_0xfa6932(null,path['join'](config[_0x1cf524('0x18')],_0x1cf524('0x4')));},'filename':function(_0x25f803,_0x19a0b9,_0x2ec524){const _0x362f80=_0x598dad;_0x19a0b9[_0x362f80('0x16')]=_0x19a0b9[_0x362f80('0x16')][_0x362f80('0xb')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x2ec524(null,util[_0x362f80('0x13')](_0x362f80('0xe'),path['basename'](_0x19a0b9['originalname'],path[_0x362f80('0x0')](_0x19a0b9['originalname'])),Date[_0x362f80('0x10')](),path[_0x362f80('0x0')](_0x19a0b9[_0x362f80('0x16')])));}})});router[_0x598dad('0x11')]('/',upload[_0x598dad('0x14')](_0x598dad('0x9')),controller['upload']),router['post'](_0x598dad('0x17'),controller[_0x598dad('0xa')]),router[_0x598dad('0x8')](_0x598dad('0x1a'),auth['isAuthenticated'](),controller[_0x598dad('0x12')]),router[_0x598dad('0x7')](_0x598dad('0x1a'),auth[_0x598dad('0xd')](),controller[_0x598dad('0x7')]),module[_0x598dad('0x5')]=router; \ No newline at end of file +const a513_0x241d=['exports','single','diskStorage','webhookPost','extname','express','webhookGet','replace','util','index','delete','get','file','../../config/environment','path','/:id','isAuthenticated','/webhook','join','root','originalname','../../components/auth/service','files/plugins','download','upload','put','multer','Router','show','post','update'];(function(_0x14b25d,_0x241d7d){const _0x5677bd=function(_0x7ceae7){while(--_0x7ceae7){_0x14b25d['push'](_0x14b25d['shift']());}};_0x5677bd(++_0x241d7d);}(a513_0x241d,0x9c));const a513_0x5677=function(_0x14b25d,_0x241d7d){_0x14b25d=_0x14b25d-0x0;let _0x5677bd=a513_0x241d[_0x14b25d];return _0x5677bd;};const _0x2a6367=a513_0x5677;'use strict';const multer=require(_0x2a6367('0x19')),util=require(_0x2a6367('0x7')),path=require(_0x2a6367('0xd')),express=require(_0x2a6367('0x4')),router=express[_0x2a6367('0x1a')](),auth=require(_0x2a6367('0x14')),config=require(_0x2a6367('0xc')),controller=require('./plugin.controller');router[_0x2a6367('0xa')]('/',auth['isAuthenticated'](),controller[_0x2a6367('0x8')]),router[_0x2a6367('0xa')](_0x2a6367('0x10'),controller[_0x2a6367('0x5')]),router[_0x2a6367('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x2a6367('0x1b')]),router['get']('/:id/download',auth[_0x2a6367('0xf')](),controller[_0x2a6367('0x16')]);const upload=multer({'storage':multer[_0x2a6367('0x1')]({'destination':function(_0x7ceae7,_0x12c4ff,_0x16116){const _0x796744=_0x2a6367;_0x16116(null,path[_0x796744('0x11')](config[_0x796744('0x12')],_0x796744('0x15')));},'filename':function(_0x405557,_0x3de7bc,_0x899d83){const _0xeef459=_0x2a6367;_0x3de7bc['originalname']=_0x3de7bc[_0xeef459('0x13')][_0xeef459('0x6')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x899d83(null,util['format']('%s-%s%s',path['basename'](_0x3de7bc[_0xeef459('0x13')],path[_0xeef459('0x3')](_0x3de7bc[_0xeef459('0x13')])),Date['now'](),path[_0xeef459('0x3')](_0x3de7bc['originalname'])));}})});router[_0x2a6367('0x1c')]('/',upload[_0x2a6367('0x0')](_0x2a6367('0xb')),controller[_0x2a6367('0x17')]),router['post'](_0x2a6367('0x10'),controller[_0x2a6367('0x2')]),router[_0x2a6367('0x18')](_0x2a6367('0xe'),auth[_0x2a6367('0xf')](),controller[_0x2a6367('0x1d')]),router[_0x2a6367('0x9')](_0x2a6367('0xe'),auth['isAuthenticated'](),controller[_0x2a6367('0x9')]),module[_0x2a6367('0x1e')]=router; \ No newline at end of file diff --git a/server/api/plugin/plugin.attributes.js b/server/api/plugin/plugin.attributes.js index 79e52e6..2fbda67 100644 --- a/server/api/plugin/plugin.attributes.js +++ b/server/api/plugin/plugin.attributes.js @@ -1 +1 @@ -const a514_0x40b4=['html','exports','always','TEXT','never','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.','script','ENUM','STRING','Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.','sequelize','Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.','adminOnly','agentOnly'];(function(_0x2fb90e,_0x40b40a){const _0x2092a0=function(_0x4420e6){while(--_0x4420e6){_0x2fb90e['push'](_0x2fb90e['shift']());}};_0x2092a0(++_0x40b40a);}(a514_0x40b4,0xd3));const a514_0x2092=function(_0x2fb90e,_0x40b40a){_0x2fb90e=_0x2fb90e-0x0;let _0x2092a0=a514_0x40b4[_0x2fb90e];return _0x2092a0;};const _0x448ce3=a514_0x2092;'use strict';const Sequelize=require(_0x448ce3('0x9'));module[_0x448ce3('0x0')]={'name':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x448ce3('0x6')](_0x448ce3('0xd'),_0x448ce3('0x5'))},'description':{'type':Sequelize[_0x448ce3('0x2')]},'version':{'type':Sequelize[_0x448ce3('0x2')]},'path':{'type':Sequelize[_0x448ce3('0x7')],'comment':_0x448ce3('0x4')},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x448ce3('0xa')},'sidebar':{'type':Sequelize[_0x448ce3('0x6')](_0x448ce3('0xb'),_0x448ce3('0xc'),_0x448ce3('0x1'),_0x448ce3('0x3')),'defaultValue':_0x448ce3('0x1'),'comment':_0x448ce3('0x8')},'icon':{'type':Sequelize[_0x448ce3('0x7')]},'adminUrl':{'type':Sequelize[_0x448ce3('0x7')]},'agentUrl':{'type':Sequelize[_0x448ce3('0x7')]},'scriptName':{'type':Sequelize[_0x448ce3('0x7')]},'scriptPath':{'type':Sequelize[_0x448ce3('0x7')]}}; \ No newline at end of file +const a514_0x4b0c=['always','sequelize','script','TEXT','ENUM','html','never','The\x20physical\x20path\x20where\x20the\x20plugin\x20is\x20stored.','STRING'];(function(_0x1f3e9a,_0x4b0c49){const _0x4f425b=function(_0x2518e1){while(--_0x2518e1){_0x1f3e9a['push'](_0x1f3e9a['shift']());}};_0x4f425b(++_0x4b0c49);}(a514_0x4b0c,0x14c));const a514_0x4f42=function(_0x1f3e9a,_0x4b0c49){_0x1f3e9a=_0x1f3e9a-0x0;let _0x4f425b=a514_0x4b0c[_0x1f3e9a];return _0x4f425b;};const _0x3f6f05=a514_0x4f42;'use strict';const Sequelize=require(_0x3f6f05('0x2'));module['exports']={'name':{'type':Sequelize[_0x3f6f05('0x0')]},'type':{'type':Sequelize['ENUM'](_0x3f6f05('0x6'),_0x3f6f05('0x3'))},'description':{'type':Sequelize[_0x3f6f05('0x4')]},'version':{'type':Sequelize[_0x3f6f05('0x4')]},'path':{'type':Sequelize[_0x3f6f05('0x0')],'comment':_0x3f6f05('0x8')},'active':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':'Indicates\x20whether\x20the\x20plugin\x20is\x20installed.\x20Updated\x20when\x20the\x20plugin\x20is\x20installed/uninstalled.'},'sidebar':{'type':Sequelize[_0x3f6f05('0x5')]('adminOnly','agentOnly',_0x3f6f05('0x1'),_0x3f6f05('0x7')),'defaultValue':_0x3f6f05('0x1'),'comment':'Indicates\x20whether\x20to\x20display\x20the\x20plugin\x20in\x20the\x20sidebar.'},'icon':{'type':Sequelize[_0x3f6f05('0x0')]},'adminUrl':{'type':Sequelize[_0x3f6f05('0x0')]},'agentUrl':{'type':Sequelize['STRING']},'scriptName':{'type':Sequelize[_0x3f6f05('0x0')]},'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 70c1285..19be1ce 100644 --- a/server/api/plugin/plugin.controller.js +++ b/server/api/plugin/plugin.controller.js @@ -1 +1 @@ -const a515_0x3ff5=['scriptName','filters','request-promise-native','admin','Plugins','../../config/logger','isFile','intersection','filter','version','unlinkSync','Plugin\x20upload\x20destination:\x20%s','Zip\x20archive\x20removed','files/plugins','role','error','warning','Warning:\x20admin\x20view\x20not\x20specified','Invalid\x20plugin\x20structure','Invalid\x20manifest:\x20script\x20name\x20missing','chmodSync','util','**/*','extname','merge','sendStatus','user','isDirectory','autoAssociation','hostname','Plugin','./plugin.socket','Error\x20while\x20generating\x20the\x20zip\x20archive','Unable\x20to\x20retrieve\x20the\x20current\x20user','catch','glob','filename','Invalid\x20manifest:\x20name\x20missing','pick','webhookGet','test','headers','views','api','map','icon','status','set','download','content-type','http://localhost:','description','Invalid\x20manifest:\x20parameters\x20missing','update','destroy','offset','get','format','manifest.json','model','fields','length','findAll','script','delete','UserProfileResource','parameters','json','rawAttributes','Invalid\x20manifest:\x20type\x20missing','type','close','sort','\x27PATH\x27\x20parameter\x20not\x20specified','Plugin\x20manifest\x20missing','Invalid\x20manifest:\x20no\x20view\x20specified','icon-apps','includeAll','../../components/parsers/qs','root','create','order','statusCode','end','html','Invalid\x20manifest:\x20version\x20not\x20specified','Extracted\x20folder\x20removed','basename','readdirSync','Error','../../mysqldb','existsSync','name','rows','%s.zip','Temporary\x20file\x20removed','lodash','Invalid\x20manifest:\x20script\x20path\x20missing','nolimit','../../rediscache','file','keys','findOne','createWriteStream','stack','sidebar','body','info','join','include','port','sequelize','scriptPath','where','params','attributes','lstatSync','show','plugins','then','index','options','code','method','undefined','rimraf','server/files/plugins','readFileSync','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','ENOENT','send','count','path','Error\x20while\x20downloading\x20the\x20plugin','limit','Plugin\x20not\x20found','%s%s','resolve','Invalid\x20manifest:\x20views\x20missing','Invalid\x20manifest:\x20invalid\x20type','query','\x27PORT\x27\x20parameter\x20not\x20specified','always','content-length','userProfileId','agent','UserProfileSection','Sequelize','dirname','encoding'];(function(_0x4d9fe7,_0x3ff54d){const _0x106bf4=function(_0xcb9755){while(--_0xcb9755){_0x4d9fe7['push'](_0x4d9fe7['shift']());}};_0x106bf4(++_0x3ff54d);}(a515_0x3ff5,0x15c));const a515_0x106b=function(_0x4d9fe7,_0x3ff54d){_0x4d9fe7=_0x4d9fe7-0x0;let _0x106bf4=a515_0x3ff5[_0x4d9fe7];return _0x106bf4;};const _0x3e0ef8=a515_0x106b;'use strict';const rp=require(_0x3e0ef8('0x68')),util=require(_0x3e0ef8('0x7b')),path=require(_0x3e0ef8('0x54')),fs=require('fs'),_=require(_0x3e0ef8('0x30')),extract=require('extract-zip'),rimraf=require(_0x3e0ef8('0x4d')),archiver=require('archiver'),{getSocket}=require(_0x3e0ef8('0x33')),socket=getSocket(),qs=require(_0x3e0ef8('0x1e')),logger=require(_0x3e0ef8('0x6b'))(_0x3e0ef8('0x91')),config=require('../../config/environment'),db=require(_0x3e0ef8('0x2a'))['db'],{Op}=require(_0x3e0ef8('0x3f'));require(_0x3e0ef8('0x85'))['register'](socket);function respondWithStatusCode(_0xcb9755,_0x5a3db3){return _0x5a3db3=_0x5a3db3||0xcc,function(_0x4050b7){const _0x35678c=a515_0x106b;if(_0x4050b7)return _0xcb9755['sendStatus'](_0x5a3db3);return _0xcb9755[_0x35678c('0x94')](_0x5a3db3)[_0x35678c('0x23')]();};}function respondWithResult(_0x227d93,_0x661e4f){return _0x661e4f=_0x661e4f||0xc8,function(_0x3378ff){const _0x5079e5=a515_0x106b;if(_0x3378ff)return _0x227d93[_0x5079e5('0x94')](_0x661e4f)[_0x5079e5('0x13')](_0x3378ff);};}function respondWithFilteredResult(_0x15a37b,_0x494712){return function(_0x550769){const _0x563a8e=a515_0x106b;if(_0x550769){const _0x35ebf6=_0x550769[_0x563a8e('0x53')],_0x125a44=_0x494712[_0x563a8e('0x7')];let _0x395624=_0x494712['offset']+_0x494712[_0x563a8e('0x56')],_0x26c975;return _0x395624>=_0x35ebf6?(_0x395624=_0x35ebf6,_0x26c975=0xc8):_0x26c975=0xce,_0x15a37b['status'](_0x26c975),_0x15a37b[_0x563a8e('0x95')]('Content-Range',_0x125a44+'-'+_0x395624+'/'+_0x35ebf6)['json'](_0x550769);}return null;};}function saveUpdates(_0x4048b1){return function(_0x394d35){const _0x7f11c6=a515_0x106b;if(_0x394d35)return _0x394d35['update'](_0x4048b1)[_0x7f11c6('0x47')](function(_0x5a711a){return _0x5a711a;});return null;};}function handleEntityNotFound(_0x3a8b60){return function(_0x219d78){const _0x1e1201=a515_0x106b;return!_0x219d78&&_0x3a8b60[_0x1e1201('0x7f')](0x194),_0x219d78;};}function handleError(_0x2acd52,_0x41ec20){return _0x41ec20=_0x41ec20||0x1f4,function(_0x98ea5){const _0x1ccbb0=a515_0x106b;logger[_0x1ccbb0('0x75')](_0x98ea5[_0x1ccbb0('0x38')]),_0x98ea5['name']&&delete _0x98ea5['name'],_0x2acd52['status'](_0x41ec20)[_0x1ccbb0('0x52')](_0x98ea5);};}exports[_0x3e0ef8('0x48')]=function(_0x583e49,_0x24861f){const _0x37294e=_0x3e0ef8;let _0x24b0d7={};const _0x40bdc0={},_0x575c52={'count':0x0,'rows':[]},_0x3fd5d9=_['map'](db[_0x37294e('0x84')][_0x37294e('0x14')],function(_0x3995e4){const _0x53c24f=_0x37294e;return{'name':_0x3995e4['fieldName'],'type':_0x3995e4[_0x53c24f('0x16')]['key']};});_0x40bdc0[_0x37294e('0xb')]=_['map'](_0x3fd5d9,_0x37294e('0x2c')),_0x40bdc0['query']=_['keys'](_0x583e49['query']),_0x40bdc0[_0x37294e('0x67')]=_['intersection'](_0x40bdc0[_0x37294e('0xb')],_0x40bdc0[_0x37294e('0x5c')]),_0x24b0d7[_0x37294e('0x43')]=_[_0x37294e('0x6d')](_0x40bdc0[_0x37294e('0xb')],qs[_0x37294e('0xc')](_0x583e49['query']['fields'])),_0x24b0d7[_0x37294e('0x43')]=_0x24b0d7[_0x37294e('0x43')][_0x37294e('0xd')]?_0x24b0d7[_0x37294e('0x43')]:_0x40bdc0[_0x37294e('0xb')];typeof _0x583e49['query'][_0x37294e('0x32')]==='undefined'&&(_0x24b0d7[_0x37294e('0x56')]=qs[_0x37294e('0x56')](_0x583e49[_0x37294e('0x5c')][_0x37294e('0x56')]),_0x24b0d7[_0x37294e('0x7')]=qs[_0x37294e('0x7')](_0x583e49[_0x37294e('0x5c')][_0x37294e('0x7')]));_0x24b0d7[_0x37294e('0x21')]=qs['sort'](_0x583e49['query'][_0x37294e('0x18')]),_0x24b0d7[_0x37294e('0x41')]=qs['filters'](_[_0x37294e('0x8c')](_0x583e49['query'],_0x40bdc0[_0x37294e('0x67')]),_0x3fd5d9);_0x583e49['query'][_0x37294e('0x6e')]&&(_0x24b0d7[_0x37294e('0x41')]=_['merge'](_0x24b0d7[_0x37294e('0x41')],{[Op['or']]:_[_0x37294e('0x92')](_0x3fd5d9,function(_0x1b28c5){const _0x679071=_0x37294e;if(_0x1b28c5[_0x679071('0x16')]!=='VIRTUAL'){const _0xb0183a={};return _0xb0183a[_0x1b28c5['name']]={[Op['like']]:'%'+_0x583e49['query']['filter']+'%'},_0xb0183a;}})}));_0x24b0d7=_[_0x37294e('0x7e')]({},_0x24b0d7,_0x583e49[_0x37294e('0x49')]);const _0x550880={'where':_0x24b0d7['where']};return db[_0x37294e('0x84')][_0x37294e('0x53')](_0x550880)[_0x37294e('0x47')](function(_0x29420d){const _0xaf9006=_0x37294e;return _0x575c52[_0xaf9006('0x53')]=_0x29420d,_0x583e49[_0xaf9006('0x5c')][_0xaf9006('0x1d')]&&(_0x24b0d7[_0xaf9006('0x3d')]=[{'all':!![]}]),db['Plugin'][_0xaf9006('0xe')](_0x24b0d7);})[_0x37294e('0x47')](function(_0xf84990){const _0x1046d3=_0x37294e;return _0x575c52[_0x1046d3('0x2d')]=_0xf84990,_0x575c52;})[_0x37294e('0x47')](respondWithFilteredResult(_0x24861f,_0x24b0d7))[_0x37294e('0x88')](handleError(_0x24861f,null));},exports[_0x3e0ef8('0x45')]=function(_0x10954d,_0x49b639){const _0x14b365=_0x3e0ef8;let _0x13f882={'raw':!![],'where':{'id':_0x10954d[_0x14b365('0x42')]['id']}};const _0x18e302={};return _0x18e302[_0x14b365('0xb')]=_[_0x14b365('0x35')](db['Plugin'][_0x14b365('0x14')]),_0x18e302[_0x14b365('0x5c')]=_[_0x14b365('0x35')](_0x10954d[_0x14b365('0x5c')]),_0x18e302[_0x14b365('0x67')]=_[_0x14b365('0x6d')](_0x18e302[_0x14b365('0xb')],_0x18e302[_0x14b365('0x5c')]),_0x13f882[_0x14b365('0x43')]=_['intersection'](_0x18e302[_0x14b365('0xb')],qs[_0x14b365('0xc')](_0x10954d['query'][_0x14b365('0xc')])),_0x13f882[_0x14b365('0x43')]=_0x13f882[_0x14b365('0x43')][_0x14b365('0xd')]?_0x13f882['attributes']:_0x18e302['model'],_0x10954d['query']['includeAll']&&(_0x13f882[_0x14b365('0x3d')]=[{'all':!![]}]),_0x13f882=_['merge']({},_0x13f882,_0x10954d[_0x14b365('0x49')]),db['Plugin']['findOne'](_0x13f882)[_0x14b365('0x47')](handleEntityNotFound(_0x49b639))['then'](respondWithResult(_0x49b639,null))[_0x14b365('0x88')](handleError(_0x49b639,null));},exports['download']=function(_0x4627af,_0x153b3d){const _0x16f907=_0x3e0ef8;return db['Plugin'][_0x16f907('0x36')]({'where':{'id':_0x4627af[_0x16f907('0x42')]['id']},'attributes':[_0x16f907('0x2c'),_0x16f907('0x54')],'raw':!![]})[_0x16f907('0x47')](handleEntityNotFound(_0x153b3d))[_0x16f907('0x47')](function(_0x3a3864){const _0x1e15f6=_0x16f907;if(_0x3a3864){const _0x226cc0=path[_0x1e15f6('0x3c')](config[_0x1e15f6('0x1f')],_0x1e15f6('0x4e'),util[_0x1e15f6('0x9')](_0x1e15f6('0x2e'),path[_0x1e15f6('0x27')](_0x3a3864['path']))),_0xfc766c=fs[_0x1e15f6('0x37')](_0x226cc0),_0x1d8b3b=archiver('zip',{'zlib':{'level':0x9}});_0x1d8b3b['on'](_0x1e15f6('0x76'),function(_0x686b0e){const _0x54aa6e=_0x1e15f6;if(_0x686b0e[_0x54aa6e('0x4a')]===_0x54aa6e('0x51'))logger[_0x54aa6e('0x75')](_0x686b0e);else throw new db['Sequelize'][(_0x54aa6e('0x29'))](_0x54aa6e('0x86'));}),_0x1d8b3b['on'](_0x1e15f6('0x75'),function(){const _0x2f9478=_0x1e15f6;throw new db['Sequelize'][(_0x2f9478('0x29'))](_0x2f9478('0x86'));}),_0x1d8b3b['pipe'](_0xfc766c),_0x1d8b3b[_0x1e15f6('0x89')](_0x1e15f6('0x7c'),{'cwd':path[_0x1e15f6('0x3c')](config[_0x1e15f6('0x1f')],'server/files/plugins',path[_0x1e15f6('0x64')](_0x3a3864['path'])),'ignore':[path[_0x1e15f6('0x3c')](path[_0x1e15f6('0x27')](_0x3a3864[_0x1e15f6('0x54')]),'node_modules/**/*'),path[_0x1e15f6('0x3c')](path['basename'](_0x3a3864[_0x1e15f6('0x54')]),'attachments/**/*')],'nodir':!![]})['finalize'](),_0xfc766c['on'](_0x1e15f6('0x17'),function(){const _0x1d1a33=_0x1e15f6;if(!fs[_0x1d1a33('0x2b')](_0x226cc0))throw new db[(_0x1d1a33('0x63'))][(_0x1d1a33('0x29'))](_0x1d1a33('0x57'));return _0x153b3d[_0x1d1a33('0x0')](_0x226cc0,util[_0x1d1a33('0x9')](_0x1d1a33('0x2e'),path[_0x1d1a33('0x27')](_0x3a3864['path'])),function(_0x2a2824){const _0x209e11=_0x1d1a33;if(_0x2a2824)throw new db['Sequelize'][(_0x209e11('0x29'))](_0x209e11('0x55'));fs[_0x209e11('0x70')](_0x226cc0),logger[_0x209e11('0x3b')]('Download\x20completed'),logger[_0x209e11('0x3b')](_0x209e11('0x2f'));});});}return null;})[_0x16f907('0x88')](handleError(_0x153b3d,null));},exports['upload']=function(_0x3100a6,_0x5fa30f,_0x1a4dfb){const _0x10a359=_0x3e0ef8,_0x1d1365=path[_0x10a359('0x27')](_0x3100a6[_0x10a359('0x34')][_0x10a359('0x8a')],path[_0x10a359('0x7d')](_0x3100a6[_0x10a359('0x34')][_0x10a359('0x8a')])),_0x27adea=path[_0x10a359('0x3c')](config['root'],_0x10a359('0x4e'),_0x3100a6['file'][_0x10a359('0x8a')]),_0x4b01b2=path[_0x10a359('0x3c')](config[_0x10a359('0x1f')],_0x10a359('0x73'),_0x1d1365);logger['info']('Plugin\x20upload\x20filepath:\x20%s',_0x27adea),logger['info'](_0x10a359('0x71'),_0x4b01b2);try{fs[_0x10a359('0x7a')](_0x27adea,parseInt('0777',0x8)),extract(_0x27adea,{'dir':_0x4b01b2},function(_0x2a2230){const _0x590d51=_0x10a359;_0x2a2230&&(logger[_0x590d51('0x75')](_0x2a2230),handleError(_0x2a2230,!![]));const _0x1ec237=fs[_0x590d51('0x28')](_0x4b01b2);if(_0x1ec237[_0x590d51('0xd')]>0x1)return removeReferences(_0x27adea,_0x4b01b2),logger['error'](_0x590d51('0x78')),_0x1a4dfb(new Error(_0x590d51('0x78')));const _0x868b92=fs[_0x590d51('0x44')](path[_0x590d51('0x3c')](_0x4b01b2,_0x1ec237[0x0]));if(_0x868b92[_0x590d51('0x6c')]())return removeReferences(_0x27adea,_0x4b01b2),logger['error'](_0x590d51('0x78')),_0x1a4dfb(new Error(_0x590d51('0x78')));if(_0x868b92[_0x590d51('0x81')]()){const _0x2aaf49=fs['readdirSync'](path['join'](_0x4b01b2,_0x1ec237[0x0]));if(_0x2aaf49['length']===0x0)return removeReferences(_0x27adea,_0x4b01b2),logger[_0x590d51('0x75')](_0x590d51('0x78')),_0x1a4dfb(new Error(_0x590d51('0x78')));const _0x465c2a=_0x2aaf49['some'](function(_0x4c7608){const _0x5333e9=_0x590d51;return _0x4c7608===_0x5333e9('0xa');});if(!_0x465c2a)return _0x1a4dfb(new Error(_0x590d51('0x1a')));const _0x2a636e=fs[_0x590d51('0x4f')](path[_0x590d51('0x3c')](_0x4b01b2,_0x1ec237[0x0],_0x590d51('0xa'))),_0x59c609=JSON['parse'](_0x2a636e);if(_0x590d51('0x4c')==typeof _0x59c609['name'])return _0x1a4dfb(new Error(_0x590d51('0x8b')));if(_0x590d51('0x4c')==typeof _0x59c609['type'])return _0x1a4dfb(new Error(_0x590d51('0x15')));if(_0x590d51('0x4c')==typeof _0x59c609[_0x590d51('0x6f')])return _0x1a4dfb(new Error(_0x590d51('0x25')));if('undefined'==typeof _0x59c609[_0x590d51('0x12')])return _0x1a4dfb(new Error(_0x590d51('0x4')));if(_0x59c609[_0x590d51('0x16')]===_0x590d51('0x24')){if('undefined'==typeof _0x59c609[_0x590d51('0x12')][_0x590d51('0x90')])return _0x1a4dfb(new Error(_0x590d51('0x5a')));if(_0x590d51('0x4c')==typeof _0x59c609[_0x590d51('0x12')][_0x590d51('0x90')][_0x590d51('0x69')]&&_0x590d51('0x4c')==typeof _0x59c609[_0x590d51('0x12')][_0x590d51('0x90')]['agent'])return _0x1a4dfb(new Error(_0x590d51('0x1b')));}else{if(_0x59c609['type']===_0x590d51('0xf')){if(_0x590d51('0x4c')==typeof _0x59c609[_0x590d51('0x12')]['scriptName'])return _0x1a4dfb(new Error(_0x590d51('0x79')));if(_0x590d51('0x4c')==typeof _0x59c609[_0x590d51('0x12')][_0x590d51('0x40')])return _0x1a4dfb(new Error(_0x590d51('0x31')));}else return _0x1a4dfb(new Error(_0x590d51('0x5b')));}const _0x23d903=_0x59c609[_0x590d51('0x2c')],_0xd4e5fc=_0x59c609[_0x590d51('0x3')],_0x3e7695=_0x59c609[_0x590d51('0x16')],_0x546847=_0x59c609[_0x590d51('0x39')]?_0x59c609[_0x590d51('0x39')]:_0x590d51('0x5e'),_0x443298=_0x59c609['icon']?_0x59c609[_0x590d51('0x93')]:_0x590d51('0x1c');let _0x19f56e='',_0x2365df='',_0x35b41c='',_0x58b9ec='';const _0x5456ec=_0x59c609['version'];if(_0x3e7695===_0x590d51('0x24')){if('undefined'!=typeof _0x59c609[_0x590d51('0x12')][_0x590d51('0x90')][_0x590d51('0x69')]){const _0x3d6fd0=_0x59c609['parameters'][_0x590d51('0x90')][_0x590d51('0x69')];!/^(f|ht)tps?:\/\//i[_0x590d51('0x8e')](_0x3d6fd0)?_0x19f56e=path[_0x590d51('0x3c')](_0x590d51('0x46'),_0x1d1365,_0x1ec237[0x0],_0x3d6fd0):_0x19f56e=_0x3d6fd0;}else logger[_0x590d51('0x3b')](_0x590d51('0x77'));if(_0x590d51('0x4c')!=typeof _0x59c609['parameters']['views'][_0x590d51('0x61')]){const _0x254c48=_0x59c609[_0x590d51('0x12')][_0x590d51('0x90')][_0x590d51('0x61')];!/^(f|ht)tps?:\/\//i[_0x590d51('0x8e')](_0x254c48)?_0x2365df=path[_0x590d51('0x3c')](_0x590d51('0x46'),_0x1d1365,_0x1ec237[0x0],_0x254c48):_0x2365df=_0x254c48;}else logger[_0x590d51('0x3b')]('Warning:\x20agent\x20view\x20not\x20specified');}else{if(_0x3e7695===_0x590d51('0xf')){_0x35b41c=_0x59c609[_0x590d51('0x12')][_0x590d51('0x66')],_0x58b9ec=_0x59c609[_0x590d51('0x12')]['scriptPath'];if(_0x590d51('0x4c')!=typeof _0x59c609[_0x590d51('0x12')]['views']){if(_0x590d51('0x4c')!=typeof _0x59c609[_0x590d51('0x12')]['views']['admin']){const _0x209a5d=_0x59c609[_0x590d51('0x12')][_0x590d51('0x90')]['admin'];!/^(f|ht)tps?:\/\//i[_0x590d51('0x8e')](_0x209a5d)?_0x19f56e=path[_0x590d51('0x3c')](_0x590d51('0x46'),_0x1d1365,_0x1ec237[0x0],_0x209a5d):_0x19f56e=_0x209a5d;}if(_0x590d51('0x4c')!=typeof _0x59c609[_0x590d51('0x12')][_0x590d51('0x90')][_0x590d51('0x61')]){const _0x45bd5c=_0x59c609[_0x590d51('0x12')][_0x590d51('0x90')]['agent'];!/^(f|ht)tps?:\/\//i[_0x590d51('0x8e')](_0x45bd5c)?_0x2365df=path[_0x590d51('0x3c')](_0x590d51('0x46'),_0x1d1365,_0x1ec237[0x0],_0x45bd5c):_0x2365df=_0x45bd5c;}}}}const _0x465724={'name':_0x23d903,'description':_0xd4e5fc,'path':path[_0x590d51('0x3c')](_0x1d1365,_0x1ec237[0x0]),'type':_0x3e7695,'sidebar':_0x546847,'icon':_0x443298,'adminUrl':_0x19f56e,'agentUrl':_0x2365df,'scriptName':_0x35b41c,'scriptPath':_0x58b9ec,'version':_0x5456ec};return removeReferences(_0x27adea,null),db[_0x590d51('0x84')]['create'](_0x465724)[_0x590d51('0x47')](function(_0x31037c){const _0x1ba8b0=_0x590d51,_0x498781={'role':_0x3100a6[_0x1ba8b0('0x3a')][_0x1ba8b0('0x74')],'userProfileId':_0x3100a6[_0x1ba8b0('0x3a')][_0x1ba8b0('0x60')]};if(!_0x498781)throw new Error(_0x1ba8b0('0x87'));if(_0x498781[_0x1ba8b0('0x74')]===_0x1ba8b0('0x80')){const _0xce118d=_0x31037c[_0x1ba8b0('0x8')]({'plain':!![]});return db[_0x1ba8b0('0x62')][_0x1ba8b0('0x36')]({'where':{'name':_0x1ba8b0('0x6a'),'userProfileId':_0x498781[_0x1ba8b0('0x60')]},'raw':!![]})[_0x1ba8b0('0x47')](function(_0x1377d1){const _0x320bbf=_0x1ba8b0;return _0x1377d1&&_0x1377d1[_0x320bbf('0x82')]===0x0?db[_0x320bbf('0x11')][_0x320bbf('0x20')]({'name':_0xce118d[_0x320bbf('0x2c')],'resourceId':_0xce118d['id'],'type':_0x1377d1[_0x320bbf('0x2c')],'sectionId':_0x1377d1['id']},{})[_0x320bbf('0x47')](function(){return _0x31037c;}):_0x31037c;})['catch'](function(_0x3e59ef){const _0x5d93e3=_0x1ba8b0;logger[_0x5d93e3('0x75')](_0x5d93e3('0x50'),_0x3e59ef);throw _0x3e59ef;});}return _0x31037c;})[_0x590d51('0x47')](respondWithResult(_0x5fa30f,null))[_0x590d51('0x88')](handleError(_0x5fa30f,null));}});}catch(_0x468aac){_0x5fa30f[_0x10a359('0x94')](0x1f4)['send'](_0x468aac);}};function removeReferences(_0x547cf2,_0x2804c9){const _0x2a7771=_0x3e0ef8;try{_0x547cf2&&(fs[_0x2a7771('0x70')](_0x547cf2),logger[_0x2a7771('0x3b')](_0x2a7771('0x72'))),_0x2804c9&&(rimraf(_0x2804c9,function(){}),logger[_0x2a7771('0x3b')](_0x2a7771('0x26')));}catch(_0xa19679){logger[_0x2a7771('0x75')](_0xa19679);}}exports[_0x3e0ef8('0x5')]=function(_0x403f76,_0xce3973){const _0x41c1d7=_0x3e0ef8;return db[_0x41c1d7('0x84')]['findOne']({'where':{'id':_0x403f76[_0x41c1d7('0x42')]['id']}})[_0x41c1d7('0x47')](handleEntityNotFound(_0xce3973))['then'](saveUpdates(_0x403f76['body']))['then'](respondWithResult(_0xce3973,null))['catch'](handleError(_0xce3973,null));},exports[_0x3e0ef8('0x10')]=function(_0x30c2af,_0x3e5ea1){const _0x323925=_0x3e0ef8;return db[_0x323925('0x84')][_0x323925('0x36')]({'where':{'id':_0x30c2af['params']['id']}})[_0x323925('0x47')](function(_0x537f35){const _0x5cb6f4=_0x323925;if(_0x537f35)return _0x537f35[_0x5cb6f4('0x6')]();})[_0x323925('0x47')](function(_0x4b10d1){const _0x4ed4b2=_0x323925;return rimraf(path[_0x4ed4b2('0x3c')](config[_0x4ed4b2('0x1f')],_0x4ed4b2('0x4e'),path[_0x4ed4b2('0x64')](_0x4b10d1[_0x4ed4b2('0x54')])),function(){}),_0x4b10d1;})['then'](handleEntityNotFound(_0x3e5ea1))[_0x323925('0x47')](respondWithStatusCode(_0x3e5ea1,null))[_0x323925('0x88')](handleError(_0x3e5ea1,null));},exports[_0x3e0ef8('0x8d')]=function(_0x165973,_0x17371a){const _0x570891=_0x3e0ef8;return Promise[_0x570891('0x59')]()[_0x570891('0x47')](function(){const _0x3e0215=_0x570891;if(!_0x165973[_0x3e0215('0x5c')][_0x3e0215('0x54')])throw new Error(_0x3e0215('0x19'));if(!_0x165973[_0x3e0215('0x5c')][_0x3e0215('0x3e')])throw new Error(_0x3e0215('0x5d'));const _0x2bd380=_0x165973[_0x3e0215('0x5c')][_0x3e0215('0x83')]?_0x165973[_0x3e0215('0x5c')][_0x3e0215('0x83')]+':'+_0x165973['query'][_0x3e0215('0x3e')]:_0x3e0215('0x2')+_0x165973[_0x3e0215('0x5c')]['port'],_0x14171a=_0x165973[_0x3e0215('0x5c')][_0x3e0215('0x13')]?_0x165973[_0x3e0215('0x5c')][_0x3e0215('0x13')]:!![],_0x3974c6=_0x165973['query']['encoding']?_0x165973[_0x3e0215('0x5c')][_0x3e0215('0x65')]:null,_0x8a27c2={'method':_0x165973[_0x3e0215('0x4b')],'uri':util[_0x3e0215('0x9')]('%s%s',_0x2bd380,_0x165973[_0x3e0215('0x5c')]['path']),'json':_0x14171a,'resolveWithFullResponse':!![],'encoding':_0x3974c6,'qs':_0x165973[_0x3e0215('0x5c')]};return _0x165973[_0x3e0215('0x8f')]&&(_0x8a27c2['headers']=_0x165973[_0x3e0215('0x8f')],_0x8a27c2[_0x3e0215('0x8f')]['content-length']&&delete _0x8a27c2[_0x3e0215('0x8f')][_0x3e0215('0x5f')]),_0x8a27c2[_0x3e0215('0x8f')]['content-type']&&delete _0x8a27c2[_0x3e0215('0x8f')][_0x3e0215('0x1')],rp(_0x8a27c2);})[_0x570891('0x47')](function(_0x3ad068){const _0x1cbbb7=_0x570891;return _0x3ad068?(_0x17371a[_0x1cbbb7('0x95')](_0x3ad068[_0x1cbbb7('0x8f')]),logger[_0x1cbbb7('0x3b')](_0x3ad068['body']),_['endsWith'](_0x165973['query']['path'],'download')&&_0x3ad068['statusCode']==0x1f4?_0x17371a[_0x1cbbb7('0x7f')](_0x3ad068['statusCode']):_0x17371a[_0x1cbbb7('0x94')](_0x3ad068[_0x1cbbb7('0x22')])[_0x1cbbb7('0x52')](_0x3ad068['body'])):_0x17371a[_0x1cbbb7('0x7f')](0xc8);})['catch'](handleError(_0x17371a,null));},exports['webhookPost']=function(_0x357fe9,_0x2f5364){const _0x48f8eb=_0x3e0ef8;return Promise[_0x48f8eb('0x59')]()[_0x48f8eb('0x47')](function(){const _0x19e6f4=_0x48f8eb;if(!_0x357fe9[_0x19e6f4('0x5c')][_0x19e6f4('0x54')])throw new Error('\x27PATH\x27\x20parameter\x20not\x20specified');if(!_0x357fe9[_0x19e6f4('0x5c')]['port'])throw new Error(_0x19e6f4('0x5d'));const _0x4ec0a0=_0x357fe9[_0x19e6f4('0x5c')][_0x19e6f4('0x83')]?_0x357fe9[_0x19e6f4('0x5c')][_0x19e6f4('0x83')]+':'+_0x357fe9[_0x19e6f4('0x5c')][_0x19e6f4('0x3e')]:'http://localhost:'+_0x357fe9[_0x19e6f4('0x5c')][_0x19e6f4('0x3e')],_0xc488a2=_0x357fe9[_0x19e6f4('0x5c')]['json']?_0x357fe9[_0x19e6f4('0x5c')][_0x19e6f4('0x13')]:!![],_0x5a36ee=_0x357fe9[_0x19e6f4('0x5c')][_0x19e6f4('0x65')]?_0x357fe9[_0x19e6f4('0x5c')]['encoding']:null,_0x5c0594={'method':_0x357fe9[_0x19e6f4('0x4b')],'uri':util['format'](_0x19e6f4('0x58'),_0x4ec0a0,_0x357fe9[_0x19e6f4('0x5c')][_0x19e6f4('0x54')]),'json':_0xc488a2,'resolveWithFullResponse':!![],'encoding':_0x5a36ee,'body':_0x357fe9[_0x19e6f4('0x3a')]};return _0x357fe9[_0x19e6f4('0x8f')]&&(_0x5c0594[_0x19e6f4('0x8f')]=_0x357fe9[_0x19e6f4('0x8f')],_0x5c0594[_0x19e6f4('0x8f')][_0x19e6f4('0x5f')]&&delete _0x5c0594[_0x19e6f4('0x8f')][_0x19e6f4('0x5f')]),_0x5c0594[_0x19e6f4('0x8f')][_0x19e6f4('0x1')]&&delete _0x5c0594[_0x19e6f4('0x8f')][_0x19e6f4('0x1')],rp(_0x5c0594);})['then'](function(_0x307bb1){const _0x59d525=_0x48f8eb;return _0x307bb1?(_0x2f5364['set'](_0x307bb1[_0x59d525('0x8f')]),logger[_0x59d525('0x3b')](_0x307bb1[_0x59d525('0x3a')]),_0x2f5364[_0x59d525('0x94')](_0x307bb1[_0x59d525('0x22')])[_0x59d525('0x52')](_0x307bb1[_0x59d525('0x3a')])):_0x2f5364[_0x59d525('0x7f')](0xc8);})['catch'](handleError(_0x2f5364,null));}; \ No newline at end of file +const a515_0x506f=['\x27PORT\x27\x20parameter\x20not\x20specified','method','order','Invalid\x20manifest:\x20views\x20missing','length','Invalid\x20manifest:\x20parameters\x20missing','Plugin\x20upload\x20filepath:\x20%s','root','webhookPost','autoAssociation','readdirSync','Unable\x20to\x20retrieve\x20the\x20current\x20user','filter','create','admin','query','catch','join','params','Invalid\x20plugin\x20structure','delete','sort','destroy','rawAttributes','attachments/**/*','plugins','server/files/plugins','content-length','info','Error','existsSync','manifest.json','script','ENOENT','agent','sendStatus','name','icon-apps','user','html','always','json','Content-Range','node_modules/**/*','UserProfileSection','model','intersection','merge','Plugin\x20manifest\x20missing','upload','rows','Invalid\x20manifest:\x20type\x20missing','readFileSync','chmodSync','send','download','file','index','Invalid\x20manifest:\x20no\x20view\x20specified','show','\x27PATH\x27\x20parameter\x20not\x20specified','resolve','rimraf','Invalid\x20manifest:\x20name\x20missing','**/*','pick','filename','test','attributes','Invalid\x20manifest:\x20script\x20path\x20missing','sequelize','finalize','format','nolimit','filters','Download\x20completed','fields','userProfileId','encoding','offset','body','unlinkSync','views','Plugin','statusCode','keys','Error\x20while\x20generating\x20the\x20zip\x20archive','glob','webhookGet','sidebar','api','Sequelize','path','include','../../config/logger','UserProfileResource','./plugin.socket','isFile','Invalid\x20manifest:\x20version\x20not\x20specified','port','request-promise-native','then','findOne','count','set','archiver','headers','description','findAll','files/plugins','content-type','endsWith','key','parse','basename','Plugin\x20not\x20found','hostname','../../rediscache','0777','code','type','update','version','error','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','zip','Error\x20while\x20downloading\x20the\x20plugin','%s.zip','status','parameters','like','options','dirname','../../components/parsers/qs','map','scriptPath','includeAll','icon','http://localhost:','undefined','scriptName','%s%s','end','where','extract-zip','Invalid\x20manifest:\x20script\x20name\x20missing','warning','../../config/environment','Temporary\x20file\x20removed','role','register'];(function(_0x4a1897,_0x506fbf){const _0x44c6ea=function(_0x756ea1){while(--_0x756ea1){_0x4a1897['push'](_0x4a1897['shift']());}};_0x44c6ea(++_0x506fbf);}(a515_0x506f,0x178));const a515_0x44c6=function(_0x4a1897,_0x506fbf){_0x4a1897=_0x4a1897-0x0;let _0x44c6ea=a515_0x506f[_0x4a1897];return _0x44c6ea;};const _0x52fef7=a515_0x44c6;'use strict';const rp=require(_0x52fef7('0x1a')),util=require('util'),path=require(_0x52fef7('0x12')),fs=require('fs'),_=require('lodash'),extract=require(_0x52fef7('0x46')),rimraf=require(_0x52fef7('0x8b')),archiver=require(_0x52fef7('0x1f')),{getSocket}=require(_0x52fef7('0x2b')),socket=getSocket(),qs=require(_0x52fef7('0x3b')),logger=require(_0x52fef7('0x14'))(_0x52fef7('0x10')),config=require(_0x52fef7('0x49')),db=require('../../mysqldb')['db'],{Op}=require(_0x52fef7('0x93'));require(_0x52fef7('0x16'))[_0x52fef7('0x4c')](socket);function respondWithStatusCode(_0x756ea1,_0x372b66){return _0x372b66=_0x372b66||0xcc,function(_0x321ee7){const _0x2f0078=a515_0x44c6;if(_0x321ee7)return _0x756ea1['sendStatus'](_0x372b66);return _0x756ea1[_0x2f0078('0x36')](_0x372b66)[_0x2f0078('0x44')]();};}function respondWithResult(_0x33b347,_0xf018dc){return _0xf018dc=_0xf018dc||0xc8,function(_0x39c521){const _0xdd235c=a515_0x44c6;if(_0x39c521)return _0x33b347[_0xdd235c('0x36')](_0xf018dc)[_0xdd235c('0x76')](_0x39c521);};}function respondWithFilteredResult(_0x128766,_0x2b5221){return function(_0x17113b){const _0xe9e51f=a515_0x44c6;if(_0x17113b){const _0x41241b=_0x17113b[_0xe9e51f('0x1d')],_0x3c348f=_0x2b5221[_0xe9e51f('0x5')];let _0x329221=_0x2b5221[_0xe9e51f('0x5')]+_0x2b5221['limit'],_0x9f529c;return _0x329221>=_0x41241b?(_0x329221=_0x41241b,_0x9f529c=0xc8):_0x9f529c=0xce,_0x128766[_0xe9e51f('0x36')](_0x9f529c),_0x128766[_0xe9e51f('0x1e')](_0xe9e51f('0x77'),_0x3c348f+'-'+_0x329221+'/'+_0x41241b)[_0xe9e51f('0x76')](_0x17113b);}return null;};}function saveUpdates(_0x3bcbe9){return function(_0x387a96){const _0x1308c8=a515_0x44c6;if(_0x387a96)return _0x387a96[_0x1308c8('0x2f')](_0x3bcbe9)[_0x1308c8('0x1b')](function(_0x5344c7){return _0x5344c7;});return null;};}function handleEntityNotFound(_0x3e2048){return function(_0x2c4cde){const _0x37df22=a515_0x44c6;return!_0x2c4cde&&_0x3e2048[_0x37df22('0x70')](0x194),_0x2c4cde;};}function handleError(_0x3a365e,_0x19fdde){return _0x19fdde=_0x19fdde||0x1f4,function(_0x3e6843){const _0x4a4058=a515_0x44c6;logger['error'](_0x3e6843['stack']),_0x3e6843[_0x4a4058('0x71')]&&delete _0x3e6843['name'],_0x3a365e[_0x4a4058('0x36')](_0x19fdde)[_0x4a4058('0x83')](_0x3e6843);};}exports[_0x52fef7('0x86')]=function(_0x71bc00,_0x1505e0){const _0x4927e3=_0x52fef7;let _0x4ccc77={};const _0x391494={},_0x19259e={'count':0x0,'rows':[]},_0x11e347=_['map'](db['Plugin'][_0x4927e3('0x64')],function(_0x5381aa){const _0x75902=_0x4927e3;return{'name':_0x5381aa['fieldName'],'type':_0x5381aa[_0x75902('0x2e')][_0x75902('0x26')]};});_0x391494[_0x4927e3('0x7a')]=_['map'](_0x11e347,'name'),_0x391494[_0x4927e3('0x5c')]=_[_0x4927e3('0xb')](_0x71bc00[_0x4927e3('0x5c')]),_0x391494['filters']=_[_0x4927e3('0x7b')](_0x391494[_0x4927e3('0x7a')],_0x391494[_0x4927e3('0x5c')]),_0x4ccc77['attributes']=_[_0x4927e3('0x7b')](_0x391494[_0x4927e3('0x7a')],qs[_0x4927e3('0x2')](_0x71bc00[_0x4927e3('0x5c')][_0x4927e3('0x2')])),_0x4ccc77[_0x4927e3('0x91')]=_0x4ccc77['attributes'][_0x4927e3('0x51')]?_0x4ccc77[_0x4927e3('0x91')]:_0x391494[_0x4927e3('0x7a')];typeof _0x71bc00[_0x4927e3('0x5c')][_0x4927e3('0x96')]===_0x4927e3('0x41')&&(_0x4ccc77['limit']=qs['limit'](_0x71bc00[_0x4927e3('0x5c')]['limit']),_0x4ccc77['offset']=qs['offset'](_0x71bc00[_0x4927e3('0x5c')][_0x4927e3('0x5')]));_0x4ccc77[_0x4927e3('0x4f')]=qs[_0x4927e3('0x62')](_0x71bc00[_0x4927e3('0x5c')][_0x4927e3('0x62')]),_0x4ccc77['where']=qs[_0x4927e3('0x0')](_[_0x4927e3('0x8e')](_0x71bc00[_0x4927e3('0x5c')],_0x391494[_0x4927e3('0x0')]),_0x11e347);_0x71bc00['query']['filter']&&(_0x4ccc77['where']=_[_0x4927e3('0x7c')](_0x4ccc77[_0x4927e3('0x45')],{[Op['or']]:_[_0x4927e3('0x3c')](_0x11e347,function(_0x2c94ac){const _0x2d8614=_0x4927e3;if(_0x2c94ac[_0x2d8614('0x2e')]!=='VIRTUAL'){const _0x1a5ab8={};return _0x1a5ab8[_0x2c94ac['name']]={[Op[_0x2d8614('0x38')]]:'%'+_0x71bc00[_0x2d8614('0x5c')][_0x2d8614('0x59')]+'%'},_0x1a5ab8;}})}));_0x4ccc77=_[_0x4927e3('0x7c')]({},_0x4ccc77,_0x71bc00[_0x4927e3('0x39')]);const _0x472ad8={'where':_0x4ccc77[_0x4927e3('0x45')]};return db[_0x4927e3('0x9')][_0x4927e3('0x1d')](_0x472ad8)[_0x4927e3('0x1b')](function(_0x49f1ed){const _0x483927=_0x4927e3;return _0x19259e[_0x483927('0x1d')]=_0x49f1ed,_0x71bc00[_0x483927('0x5c')][_0x483927('0x3e')]&&(_0x4ccc77[_0x483927('0x13')]=[{'all':!![]}]),db['Plugin'][_0x483927('0x22')](_0x4ccc77);})[_0x4927e3('0x1b')](function(_0x345fd8){const _0x369fb8=_0x4927e3;return _0x19259e[_0x369fb8('0x7f')]=_0x345fd8,_0x19259e;})['then'](respondWithFilteredResult(_0x1505e0,_0x4ccc77))[_0x4927e3('0x5d')](handleError(_0x1505e0,null));},exports[_0x52fef7('0x88')]=function(_0x4c3333,_0x4dcf94){const _0x16f947=_0x52fef7;let _0x311632={'raw':!![],'where':{'id':_0x4c3333[_0x16f947('0x5f')]['id']}};const _0x403515={};return _0x403515['model']=_['keys'](db['Plugin'][_0x16f947('0x64')]),_0x403515[_0x16f947('0x5c')]=_[_0x16f947('0xb')](_0x4c3333['query']),_0x403515[_0x16f947('0x0')]=_[_0x16f947('0x7b')](_0x403515[_0x16f947('0x7a')],_0x403515[_0x16f947('0x5c')]),_0x311632[_0x16f947('0x91')]=_['intersection'](_0x403515['model'],qs['fields'](_0x4c3333[_0x16f947('0x5c')][_0x16f947('0x2')])),_0x311632[_0x16f947('0x91')]=_0x311632[_0x16f947('0x91')][_0x16f947('0x51')]?_0x311632['attributes']:_0x403515['model'],_0x4c3333[_0x16f947('0x5c')][_0x16f947('0x3e')]&&(_0x311632[_0x16f947('0x13')]=[{'all':!![]}]),_0x311632=_['merge']({},_0x311632,_0x4c3333[_0x16f947('0x39')]),db[_0x16f947('0x9')][_0x16f947('0x1c')](_0x311632)[_0x16f947('0x1b')](handleEntityNotFound(_0x4dcf94))[_0x16f947('0x1b')](respondWithResult(_0x4dcf94,null))[_0x16f947('0x5d')](handleError(_0x4dcf94,null));},exports[_0x52fef7('0x84')]=function(_0x38d03f,_0x23ef39){const _0x39c649=_0x52fef7;return db[_0x39c649('0x9')][_0x39c649('0x1c')]({'where':{'id':_0x38d03f['params']['id']},'attributes':[_0x39c649('0x71'),_0x39c649('0x12')],'raw':!![]})[_0x39c649('0x1b')](handleEntityNotFound(_0x23ef39))[_0x39c649('0x1b')](function(_0x1af51b){const _0x446d2d=_0x39c649;if(_0x1af51b){const _0x2bc6d0=path['join'](config['root'],'server/files/plugins',util['format']('%s.zip',path[_0x446d2d('0x28')](_0x1af51b[_0x446d2d('0x12')]))),_0x367cbf=fs['createWriteStream'](_0x2bc6d0),_0x287390=archiver(_0x446d2d('0x33'),{'zlib':{'level':0x9}});_0x287390['on'](_0x446d2d('0x48'),function(_0x44f3df){const _0x11acdd=_0x446d2d;if(_0x44f3df[_0x11acdd('0x2d')]===_0x11acdd('0x6e'))logger[_0x11acdd('0x31')](_0x44f3df);else throw new db['Sequelize'][(_0x11acdd('0x6a'))](_0x11acdd('0xc'));}),_0x287390['on'](_0x446d2d('0x31'),function(){const _0x32f39a=_0x446d2d;throw new db[(_0x32f39a('0x11'))][(_0x32f39a('0x6a'))](_0x32f39a('0xc'));}),_0x287390['pipe'](_0x367cbf),_0x287390[_0x446d2d('0xd')](_0x446d2d('0x8d'),{'cwd':path['join'](config['root'],_0x446d2d('0x67'),path[_0x446d2d('0x3a')](_0x1af51b['path'])),'ignore':[path[_0x446d2d('0x5e')](path[_0x446d2d('0x28')](_0x1af51b['path']),_0x446d2d('0x78')),path[_0x446d2d('0x5e')](path[_0x446d2d('0x28')](_0x1af51b[_0x446d2d('0x12')]),_0x446d2d('0x65'))],'nodir':!![]})[_0x446d2d('0x94')](),_0x367cbf['on']('close',function(){const _0x30a197=_0x446d2d;if(!fs[_0x30a197('0x6b')](_0x2bc6d0))throw new db[(_0x30a197('0x11'))][(_0x30a197('0x6a'))](_0x30a197('0x29'));return _0x23ef39[_0x30a197('0x84')](_0x2bc6d0,util[_0x30a197('0x95')](_0x30a197('0x35'),path[_0x30a197('0x28')](_0x1af51b[_0x30a197('0x12')])),function(_0x1918f1){const _0x1f673f=_0x30a197;if(_0x1918f1)throw new db[(_0x1f673f('0x11'))][(_0x1f673f('0x6a'))](_0x1f673f('0x34'));fs[_0x1f673f('0x7')](_0x2bc6d0),logger[_0x1f673f('0x69')](_0x1f673f('0x1')),logger[_0x1f673f('0x69')](_0x1f673f('0x4a'));});});}return null;})[_0x39c649('0x5d')](handleError(_0x23ef39,null));},exports[_0x52fef7('0x7e')]=function(_0x43b62d,_0x47b0dd,_0x1a7e25){const _0x3740fe=_0x52fef7,_0x286ecd=path[_0x3740fe('0x28')](_0x43b62d[_0x3740fe('0x85')]['filename'],path['extname'](_0x43b62d[_0x3740fe('0x85')][_0x3740fe('0x8f')])),_0x545dba=path[_0x3740fe('0x5e')](config['root'],_0x3740fe('0x67'),_0x43b62d[_0x3740fe('0x85')][_0x3740fe('0x8f')]),_0x145f4c=path[_0x3740fe('0x5e')](config['root'],_0x3740fe('0x23'),_0x286ecd);logger['info'](_0x3740fe('0x53'),_0x545dba),logger[_0x3740fe('0x69')]('Plugin\x20upload\x20destination:\x20%s',_0x145f4c);try{fs[_0x3740fe('0x82')](_0x545dba,parseInt(_0x3740fe('0x2c'),0x8)),extract(_0x545dba,{'dir':_0x145f4c},function(_0x436fd4){const _0x2d7b61=_0x3740fe;_0x436fd4&&(logger[_0x2d7b61('0x31')](_0x436fd4),handleError(_0x436fd4,!![]));const _0x43cd96=fs[_0x2d7b61('0x57')](_0x145f4c);if(_0x43cd96[_0x2d7b61('0x51')]>0x1)return removeReferences(_0x545dba,_0x145f4c),logger[_0x2d7b61('0x31')](_0x2d7b61('0x60')),_0x1a7e25(new Error(_0x2d7b61('0x60')));const _0xb76610=fs['lstatSync'](path[_0x2d7b61('0x5e')](_0x145f4c,_0x43cd96[0x0]));if(_0xb76610[_0x2d7b61('0x17')]())return removeReferences(_0x545dba,_0x145f4c),logger[_0x2d7b61('0x31')]('Invalid\x20plugin\x20structure'),_0x1a7e25(new Error('Invalid\x20plugin\x20structure'));if(_0xb76610['isDirectory']()){const _0x1ba21d=fs[_0x2d7b61('0x57')](path[_0x2d7b61('0x5e')](_0x145f4c,_0x43cd96[0x0]));if(_0x1ba21d['length']===0x0)return removeReferences(_0x545dba,_0x145f4c),logger['error'](_0x2d7b61('0x60')),_0x1a7e25(new Error(_0x2d7b61('0x60')));const _0x5e4107=_0x1ba21d['some'](function(_0x222881){return _0x222881==='manifest.json';});if(!_0x5e4107)return _0x1a7e25(new Error(_0x2d7b61('0x7d')));const _0x12b6c0=fs[_0x2d7b61('0x81')](path['join'](_0x145f4c,_0x43cd96[0x0],_0x2d7b61('0x6c'))),_0x22796c=JSON[_0x2d7b61('0x27')](_0x12b6c0);if(_0x2d7b61('0x41')==typeof _0x22796c[_0x2d7b61('0x71')])return _0x1a7e25(new Error(_0x2d7b61('0x8c')));if('undefined'==typeof _0x22796c[_0x2d7b61('0x2e')])return _0x1a7e25(new Error(_0x2d7b61('0x80')));if(_0x2d7b61('0x41')==typeof _0x22796c[_0x2d7b61('0x30')])return _0x1a7e25(new Error(_0x2d7b61('0x18')));if('undefined'==typeof _0x22796c[_0x2d7b61('0x37')])return _0x1a7e25(new Error(_0x2d7b61('0x52')));if(_0x22796c[_0x2d7b61('0x2e')]===_0x2d7b61('0x74')){if(_0x2d7b61('0x41')==typeof _0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x8')])return _0x1a7e25(new Error(_0x2d7b61('0x50')));if(_0x2d7b61('0x41')==typeof _0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x8')][_0x2d7b61('0x5b')]&&_0x2d7b61('0x41')==typeof _0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x8')][_0x2d7b61('0x6f')])return _0x1a7e25(new Error(_0x2d7b61('0x87')));}else{if(_0x22796c[_0x2d7b61('0x2e')]===_0x2d7b61('0x6d')){if(_0x2d7b61('0x41')==typeof _0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x42')])return _0x1a7e25(new Error(_0x2d7b61('0x47')));if(_0x2d7b61('0x41')==typeof _0x22796c['parameters'][_0x2d7b61('0x3d')])return _0x1a7e25(new Error(_0x2d7b61('0x92')));}else return _0x1a7e25(new Error('Invalid\x20manifest:\x20invalid\x20type'));}const _0x48379c=_0x22796c[_0x2d7b61('0x71')],_0x1a93c0=_0x22796c[_0x2d7b61('0x21')],_0x4bb3e1=_0x22796c[_0x2d7b61('0x2e')],_0x4c1edf=_0x22796c[_0x2d7b61('0xf')]?_0x22796c['sidebar']:_0x2d7b61('0x75'),_0x1a514b=_0x22796c['icon']?_0x22796c[_0x2d7b61('0x3f')]:_0x2d7b61('0x72');let _0x274ac6='',_0x3e0c06='',_0x8b9194='',_0x1d3b72='';const _0x20be81=_0x22796c['version'];if(_0x4bb3e1===_0x2d7b61('0x74')){if(_0x2d7b61('0x41')!=typeof _0x22796c['parameters'][_0x2d7b61('0x8')][_0x2d7b61('0x5b')]){const _0x455eaa=_0x22796c[_0x2d7b61('0x37')]['views']['admin'];!/^(f|ht)tps?:\/\//i[_0x2d7b61('0x90')](_0x455eaa)?_0x274ac6=path[_0x2d7b61('0x5e')](_0x2d7b61('0x66'),_0x286ecd,_0x43cd96[0x0],_0x455eaa):_0x274ac6=_0x455eaa;}else logger[_0x2d7b61('0x69')]('Warning:\x20admin\x20view\x20not\x20specified');if(_0x2d7b61('0x41')!=typeof _0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x8')][_0x2d7b61('0x6f')]){const _0x31ff9e=_0x22796c['parameters'][_0x2d7b61('0x8')]['agent'];!/^(f|ht)tps?:\/\//i['test'](_0x31ff9e)?_0x3e0c06=path[_0x2d7b61('0x5e')](_0x2d7b61('0x66'),_0x286ecd,_0x43cd96[0x0],_0x31ff9e):_0x3e0c06=_0x31ff9e;}else logger[_0x2d7b61('0x69')]('Warning:\x20agent\x20view\x20not\x20specified');}else{if(_0x4bb3e1===_0x2d7b61('0x6d')){_0x8b9194=_0x22796c['parameters'][_0x2d7b61('0x42')],_0x1d3b72=_0x22796c[_0x2d7b61('0x37')]['scriptPath'];if(_0x2d7b61('0x41')!=typeof _0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x8')]){if(_0x2d7b61('0x41')!=typeof _0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x8')][_0x2d7b61('0x5b')]){const _0x537684=_0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x8')][_0x2d7b61('0x5b')];!/^(f|ht)tps?:\/\//i[_0x2d7b61('0x90')](_0x537684)?_0x274ac6=path[_0x2d7b61('0x5e')](_0x2d7b61('0x66'),_0x286ecd,_0x43cd96[0x0],_0x537684):_0x274ac6=_0x537684;}if('undefined'!=typeof _0x22796c['parameters'][_0x2d7b61('0x8')][_0x2d7b61('0x6f')]){const _0x78716=_0x22796c[_0x2d7b61('0x37')][_0x2d7b61('0x8')]['agent'];!/^(f|ht)tps?:\/\//i[_0x2d7b61('0x90')](_0x78716)?_0x3e0c06=path[_0x2d7b61('0x5e')](_0x2d7b61('0x66'),_0x286ecd,_0x43cd96[0x0],_0x78716):_0x3e0c06=_0x78716;}}}}const _0x1b3027={'name':_0x48379c,'description':_0x1a93c0,'path':path[_0x2d7b61('0x5e')](_0x286ecd,_0x43cd96[0x0]),'type':_0x4bb3e1,'sidebar':_0x4c1edf,'icon':_0x1a514b,'adminUrl':_0x274ac6,'agentUrl':_0x3e0c06,'scriptName':_0x8b9194,'scriptPath':_0x1d3b72,'version':_0x20be81};return removeReferences(_0x545dba,null),db[_0x2d7b61('0x9')][_0x2d7b61('0x5a')](_0x1b3027)[_0x2d7b61('0x1b')](function(_0x29ad8c){const _0x1b7588=_0x2d7b61,_0x1e2b75={'role':_0x43b62d[_0x1b7588('0x6')][_0x1b7588('0x4b')],'userProfileId':_0x43b62d[_0x1b7588('0x6')][_0x1b7588('0x3')]};if(!_0x1e2b75)throw new Error(_0x1b7588('0x58'));if(_0x1e2b75[_0x1b7588('0x4b')]===_0x1b7588('0x73')){const _0x5e3b99=_0x29ad8c['get']({'plain':!![]});return db[_0x1b7588('0x79')][_0x1b7588('0x1c')]({'where':{'name':'Plugins','userProfileId':_0x1e2b75[_0x1b7588('0x3')]},'raw':!![]})[_0x1b7588('0x1b')](function(_0x2e6c3a){const _0x8bfd78=_0x1b7588;return _0x2e6c3a&&_0x2e6c3a[_0x8bfd78('0x56')]===0x0?db[_0x8bfd78('0x15')][_0x8bfd78('0x5a')]({'name':_0x5e3b99[_0x8bfd78('0x71')],'resourceId':_0x5e3b99['id'],'type':_0x2e6c3a[_0x8bfd78('0x71')],'sectionId':_0x2e6c3a['id']},{})['then'](function(){return _0x29ad8c;}):_0x29ad8c;})[_0x1b7588('0x5d')](function(_0x2a1a52){const _0xa9b8f9=_0x1b7588;logger['error'](_0xa9b8f9('0x32'),_0x2a1a52);throw _0x2a1a52;});}return _0x29ad8c;})['then'](respondWithResult(_0x47b0dd,null))[_0x2d7b61('0x5d')](handleError(_0x47b0dd,null));}});}catch(_0x28747f){_0x47b0dd[_0x3740fe('0x36')](0x1f4)[_0x3740fe('0x83')](_0x28747f);}};function removeReferences(_0x220d40,_0x4615c3){const _0x402d17=_0x52fef7;try{_0x220d40&&(fs[_0x402d17('0x7')](_0x220d40),logger['info']('Zip\x20archive\x20removed')),_0x4615c3&&(rimraf(_0x4615c3,function(){}),logger[_0x402d17('0x69')]('Extracted\x20folder\x20removed'));}catch(_0x42d925){logger[_0x402d17('0x31')](_0x42d925);}}exports[_0x52fef7('0x2f')]=function(_0x310c10,_0x48b9f1){const _0x29f18a=_0x52fef7;return db[_0x29f18a('0x9')]['findOne']({'where':{'id':_0x310c10[_0x29f18a('0x5f')]['id']}})['then'](handleEntityNotFound(_0x48b9f1))[_0x29f18a('0x1b')](saveUpdates(_0x310c10[_0x29f18a('0x6')]))[_0x29f18a('0x1b')](respondWithResult(_0x48b9f1,null))[_0x29f18a('0x5d')](handleError(_0x48b9f1,null));},exports[_0x52fef7('0x61')]=function(_0x3b5d76,_0x20bdce){const _0x85a0f8=_0x52fef7;return db[_0x85a0f8('0x9')][_0x85a0f8('0x1c')]({'where':{'id':_0x3b5d76[_0x85a0f8('0x5f')]['id']}})[_0x85a0f8('0x1b')](function(_0xf68ca2){const _0x5e80b5=_0x85a0f8;if(_0xf68ca2)return _0xf68ca2[_0x5e80b5('0x63')]();})[_0x85a0f8('0x1b')](function(_0x75c8c2){const _0x37ca10=_0x85a0f8;return rimraf(path[_0x37ca10('0x5e')](config[_0x37ca10('0x54')],_0x37ca10('0x67'),path['dirname'](_0x75c8c2[_0x37ca10('0x12')])),function(){}),_0x75c8c2;})[_0x85a0f8('0x1b')](handleEntityNotFound(_0x20bdce))['then'](respondWithStatusCode(_0x20bdce,null))['catch'](handleError(_0x20bdce,null));},exports[_0x52fef7('0xe')]=function(_0x14f0c7,_0x1c0331){const _0x537852=_0x52fef7;return Promise[_0x537852('0x8a')]()['then'](function(){const _0x2634ff=_0x537852;if(!_0x14f0c7[_0x2634ff('0x5c')][_0x2634ff('0x12')])throw new Error(_0x2634ff('0x89'));if(!_0x14f0c7['query']['port'])throw new Error(_0x2634ff('0x4d'));const _0x152e73=_0x14f0c7['query'][_0x2634ff('0x2a')]?_0x14f0c7[_0x2634ff('0x5c')][_0x2634ff('0x2a')]+':'+_0x14f0c7['query']['port']:_0x2634ff('0x40')+_0x14f0c7['query'][_0x2634ff('0x19')],_0x599d58=_0x14f0c7[_0x2634ff('0x5c')][_0x2634ff('0x76')]?_0x14f0c7[_0x2634ff('0x5c')]['json']:!![],_0x50a61e=_0x14f0c7[_0x2634ff('0x5c')][_0x2634ff('0x4')]?_0x14f0c7[_0x2634ff('0x5c')][_0x2634ff('0x4')]:null,_0x356990={'method':_0x14f0c7[_0x2634ff('0x4e')],'uri':util['format']('%s%s',_0x152e73,_0x14f0c7[_0x2634ff('0x5c')][_0x2634ff('0x12')]),'json':_0x599d58,'resolveWithFullResponse':!![],'encoding':_0x50a61e,'qs':_0x14f0c7['query']};return _0x14f0c7['headers']&&(_0x356990[_0x2634ff('0x20')]=_0x14f0c7[_0x2634ff('0x20')],_0x356990[_0x2634ff('0x20')][_0x2634ff('0x68')]&&delete _0x356990[_0x2634ff('0x20')][_0x2634ff('0x68')]),_0x356990[_0x2634ff('0x20')]['content-type']&&delete _0x356990[_0x2634ff('0x20')][_0x2634ff('0x24')],rp(_0x356990);})[_0x537852('0x1b')](function(_0x5ed127){const _0x25430c=_0x537852;return _0x5ed127?(_0x1c0331[_0x25430c('0x1e')](_0x5ed127[_0x25430c('0x20')]),logger[_0x25430c('0x69')](_0x5ed127[_0x25430c('0x6')]),_[_0x25430c('0x25')](_0x14f0c7[_0x25430c('0x5c')][_0x25430c('0x12')],_0x25430c('0x84'))&&_0x5ed127[_0x25430c('0xa')]==0x1f4?_0x1c0331[_0x25430c('0x70')](_0x5ed127['statusCode']):_0x1c0331[_0x25430c('0x36')](_0x5ed127['statusCode'])[_0x25430c('0x83')](_0x5ed127['body'])):_0x1c0331[_0x25430c('0x70')](0xc8);})[_0x537852('0x5d')](handleError(_0x1c0331,null));},exports[_0x52fef7('0x55')]=function(_0x5e157a,_0x35955f){const _0x5ee45b=_0x52fef7;return Promise['resolve']()[_0x5ee45b('0x1b')](function(){const _0x1c33c8=_0x5ee45b;if(!_0x5e157a[_0x1c33c8('0x5c')][_0x1c33c8('0x12')])throw new Error(_0x1c33c8('0x89'));if(!_0x5e157a['query']['port'])throw new Error('\x27PORT\x27\x20parameter\x20not\x20specified');const _0x164ad1=_0x5e157a[_0x1c33c8('0x5c')][_0x1c33c8('0x2a')]?_0x5e157a[_0x1c33c8('0x5c')]['hostname']+':'+_0x5e157a[_0x1c33c8('0x5c')][_0x1c33c8('0x19')]:'http://localhost:'+_0x5e157a[_0x1c33c8('0x5c')]['port'],_0x7a47f5=_0x5e157a[_0x1c33c8('0x5c')][_0x1c33c8('0x76')]?_0x5e157a[_0x1c33c8('0x5c')][_0x1c33c8('0x76')]:!![],_0xb5b535=_0x5e157a[_0x1c33c8('0x5c')][_0x1c33c8('0x4')]?_0x5e157a[_0x1c33c8('0x5c')]['encoding']:null,_0x29075e={'method':_0x5e157a[_0x1c33c8('0x4e')],'uri':util['format'](_0x1c33c8('0x43'),_0x164ad1,_0x5e157a[_0x1c33c8('0x5c')]['path']),'json':_0x7a47f5,'resolveWithFullResponse':!![],'encoding':_0xb5b535,'body':_0x5e157a[_0x1c33c8('0x6')]};return _0x5e157a[_0x1c33c8('0x20')]&&(_0x29075e['headers']=_0x5e157a[_0x1c33c8('0x20')],_0x29075e[_0x1c33c8('0x20')]['content-length']&&delete _0x29075e[_0x1c33c8('0x20')]['content-length']),_0x29075e[_0x1c33c8('0x20')][_0x1c33c8('0x24')]&&delete _0x29075e[_0x1c33c8('0x20')]['content-type'],rp(_0x29075e);})[_0x5ee45b('0x1b')](function(_0x8464e7){const _0xc01851=_0x5ee45b;return _0x8464e7?(_0x35955f[_0xc01851('0x1e')](_0x8464e7[_0xc01851('0x20')]),logger[_0xc01851('0x69')](_0x8464e7['body']),_0x35955f[_0xc01851('0x36')](_0x8464e7[_0xc01851('0xa')])[_0xc01851('0x83')](_0x8464e7[_0xc01851('0x6')])):_0x35955f[_0xc01851('0x70')](0xc8);})[_0x5ee45b('0x5d')](handleError(_0x35955f,null));}; \ No newline at end of file diff --git a/server/api/plugin/plugin.events.js b/server/api/plugin/plugin.events.js index 3012072..0041dad 100644 --- a/server/api/plugin/plugin.events.js +++ b/server/api/plugin/plugin.events.js @@ -1 +1 @@ -const a516_0x2053=['addHook','emit','setMaxListeners','remove','undefined','Plugin','exports','save','events'];(function(_0x31e682,_0x2053b8){const _0x29803a=function(_0x37c5d8){while(--_0x37c5d8){_0x31e682['push'](_0x31e682['shift']());}};_0x29803a(++_0x2053b8);}(a516_0x2053,0xeb));const a516_0x2980=function(_0x31e682,_0x2053b8){_0x31e682=_0x31e682-0x0;let _0x29803a=a516_0x2053[_0x31e682];return _0x29803a;};const _0x3231ad=a516_0x2980;'use strict';const EventEmitter=require(_0x3231ad('0x7')),Plugin=require('../../mysqldb')['db'][_0x3231ad('0x4')],PluginEvents=new EventEmitter();PluginEvents[_0x3231ad('0x1')](0x0);const events={'afterCreate':_0x3231ad('0x6'),'afterUpdate':'update','afterDestroy':_0x3231ad('0x2')};function emitEvent(_0x37c5d8){return function(_0x1acb32){const _0x339d4a=a516_0x2980;PluginEvents[_0x339d4a('0x0')](_0x37c5d8+':'+_0x1acb32['id'],_0x1acb32),PluginEvents['emit'](_0x37c5d8,_0x1acb32);};}for(const e in events){if(typeof events[e]!==_0x3231ad('0x3')){const event=events[e];Plugin[_0x3231ad('0x8')](e,emitEvent(event));}}module[_0x3231ad('0x5')]=PluginEvents; \ No newline at end of file +const a516_0x5b25=['emit','setMaxListeners','undefined','exports','save','addHook','remove','../../mysqldb'];(function(_0x1fcc04,_0x5b2575){const _0x1f3d62=function(_0x473c38){while(--_0x473c38){_0x1fcc04['push'](_0x1fcc04['shift']());}};_0x1f3d62(++_0x5b2575);}(a516_0x5b25,0x19f));const a516_0x1f3d=function(_0x1fcc04,_0x5b2575){_0x1fcc04=_0x1fcc04-0x0;let _0x1f3d62=a516_0x5b25[_0x1fcc04];return _0x1f3d62;};const _0x20fe28=a516_0x1f3d;'use strict';const EventEmitter=require('events'),Plugin=require(_0x20fe28('0x0'))['db']['Plugin'],PluginEvents=new EventEmitter();PluginEvents[_0x20fe28('0x2')](0x0);const events={'afterCreate':_0x20fe28('0x5'),'afterUpdate':'update','afterDestroy':_0x20fe28('0x7')};function emitEvent(_0x473c38){return function(_0x704986){const _0xc400df=a516_0x1f3d;PluginEvents[_0xc400df('0x1')](_0x473c38+':'+_0x704986['id'],_0x704986),PluginEvents[_0xc400df('0x1')](_0x473c38,_0x704986);};}for(const e in events){if(typeof events[e]!==_0x20fe28('0x3')){const event=events[e];Plugin[_0x20fe28('0x6')](e,emitEvent(event));}}module[_0x20fe28('0x4')]=PluginEvents; \ No newline at end of file diff --git a/server/api/plugin/plugin.model.js b/server/api/plugin/plugin.model.js index 1bd1dfd..c8aa378 100644 --- a/server/api/plugin/plugin.model.js +++ b/server/api/plugin/plugin.model.js @@ -1 +1 @@ -const a517_0x6cb8=['plugins','exports','Plugin','define'];(function(_0x5d8939,_0x6cb8c){const _0x23f69a=function(_0x3fa10f){while(--_0x3fa10f){_0x5d8939['push'](_0x5d8939['shift']());}};_0x23f69a(++_0x6cb8c);}(a517_0x6cb8,0x6d));const a517_0x23f6=function(_0x5d8939,_0x6cb8c){_0x5d8939=_0x5d8939-0x0;let _0x23f69a=a517_0x6cb8[_0x5d8939];return _0x23f69a;};const _0x307867=a517_0x23f6;'use strict';const attributes=require('./plugin.attributes');module[_0x307867('0x0')]=function(_0x3fa10f){const _0xbf1192=_0x307867,_0x41fceb=_0x3fa10f[_0xbf1192('0x2')](_0xbf1192('0x1'),attributes,{'tableName':_0xbf1192('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x41fceb;}; \ No newline at end of file +const a517_0x1cee=['Plugin','./plugin.attributes','exports'];(function(_0x42d2d9,_0x1ceeef){const _0x5c97a9=function(_0x4923c5){while(--_0x4923c5){_0x42d2d9['push'](_0x42d2d9['shift']());}};_0x5c97a9(++_0x1ceeef);}(a517_0x1cee,0x86));const a517_0x5c97=function(_0x42d2d9,_0x1ceeef){_0x42d2d9=_0x42d2d9-0x0;let _0x5c97a9=a517_0x1cee[_0x42d2d9];return _0x5c97a9;};const _0x1b12c4=a517_0x5c97;'use strict';const attributes=require(_0x1b12c4('0x2'));module[_0x1b12c4('0x0')]=function(_0x4923c5){const _0x79ed78=_0x1b12c4,_0x2890ff=_0x4923c5['define'](_0x79ed78('0x1'),attributes,{'tableName':'plugins','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2890ff;}; \ No newline at end of file diff --git a/server/api/plugin/plugin.rpc.js b/server/api/plugin/plugin.rpc.js index 58bce41..c447596 100644 --- a/server/api/plugin/plugin.rpc.js +++ b/server/api/plugin/plugin.rpc.js @@ -1 +1 @@ -const a518_0xee70=['debug','error','create','raw','info','body','message','rpc','CreatePlugin','../../rediscache','./plugin.socket','Plugin','then','options'];(function(_0x48baf7,_0xee7034){const _0x340e68=function(_0x170faf){while(--_0x170faf){_0x48baf7['push'](_0x48baf7['shift']());}};_0x340e68(++_0xee7034);}(a518_0xee70,0xc3));const a518_0x340e=function(_0x48baf7,_0xee7034){_0x48baf7=_0x48baf7-0x0;let _0x340e68=a518_0xee70[_0x48baf7];return _0x340e68;};const _0x26d5c5=a518_0x340e;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x26d5c5('0x8')),{getSocket}=require(_0x26d5c5('0xa')),socket=getSocket();require(_0x26d5c5('0xb'))['register'](socket),exports[_0x26d5c5('0x9')]=function(_0x170faf){const _0x354d7e=this;return new Promise(function(_0xb436a8,_0x5452e4){const _0x5c2dc5=a518_0x340e;return db[_0x5c2dc5('0xc')][_0x5c2dc5('0x3')](_0x170faf[_0x5c2dc5('0x6')],{'raw':_0x170faf['options']?_0x170faf[_0x5c2dc5('0x0')][_0x5c2dc5('0x4')]===undefined?!![]:![]:!![]})[_0x5c2dc5('0xd')](function(_0x32e729){const _0x584e45=_0x5c2dc5;logger[_0x584e45('0x5')](_0x584e45('0x9'),_0x170faf),logger[_0x584e45('0x1')](_0x584e45('0x9'),_0x170faf,JSON['stringify'](_0x32e729)),_0xb436a8(_0x32e729);})['catch'](function(_0x46979e){const _0x593062=_0x5c2dc5;logger[_0x593062('0x2')](_0x593062('0x9'),_0x46979e[_0x593062('0x7')],_0x170faf),_0x5452e4(_0x354d7e[_0x593062('0x2')](0x1f4,_0x46979e['message']));});});}; \ No newline at end of file +const a518_0x35d4=['body','../../config/logger','Plugin','options','info','../../rediscache','catch','stringify','create','then','../../mysqldb','register','message','CreatePlugin','debug','rpc','error'];(function(_0x23a136,_0x35d4f1){const _0x33a340=function(_0x49643e){while(--_0x49643e){_0x23a136['push'](_0x23a136['shift']());}};_0x33a340(++_0x35d4f1);}(a518_0x35d4,0x1ab));const a518_0x33a3=function(_0x23a136,_0x35d4f1){_0x23a136=_0x23a136-0x0;let _0x33a340=a518_0x35d4[_0x23a136];return _0x33a340;};const _0x5afa5e=a518_0x33a3;'use strict';const db=require(_0x5afa5e('0x8'))['db'],logger=require(_0x5afa5e('0x10'))(_0x5afa5e('0xd')),{getSocket}=require(_0x5afa5e('0x3')),socket=getSocket();require('./plugin.socket')[_0x5afa5e('0x9')](socket),exports[_0x5afa5e('0xb')]=function(_0x49643e){const _0x3779f0=this;return new Promise(function(_0x12f465,_0x33e0ad){const _0x59fcda=a518_0x33a3;return db[_0x59fcda('0x0')][_0x59fcda('0x6')](_0x49643e[_0x59fcda('0xf')],{'raw':_0x49643e[_0x59fcda('0x1')]?_0x49643e[_0x59fcda('0x1')]['raw']===undefined?!![]:![]:!![]})[_0x59fcda('0x7')](function(_0x486293){const _0x31beb5=_0x59fcda;logger[_0x31beb5('0x2')](_0x31beb5('0xb'),_0x49643e),logger[_0x31beb5('0xc')](_0x31beb5('0xb'),_0x49643e,JSON[_0x31beb5('0x5')](_0x486293)),_0x12f465(_0x486293);})[_0x59fcda('0x4')](function(_0x3bd21f){const _0x5d77be=_0x59fcda;logger[_0x5d77be('0xe')](_0x5d77be('0xb'),_0x3bd21f['message'],_0x49643e),_0x33e0ad(_0x3779f0[_0x5d77be('0xe')](0x1f4,_0x3bd21f[_0x5d77be('0xa')]));});});}; \ No newline at end of file diff --git a/server/api/plugin/plugin.socket.js b/server/api/plugin/plugin.socket.js index aba6151..1f8c105 100644 --- a/server/api/plugin/plugin.socket.js +++ b/server/api/plugin/plugin.socket.js @@ -1 +1 @@ -const a519_0x5300=['emit','plugin:','register','save','remove','update','./plugin.events'];(function(_0xbcdaa9,_0x530036){const _0x2b200c=function(_0x1a3ea7){while(--_0x1a3ea7){_0xbcdaa9['push'](_0xbcdaa9['shift']());}};_0x2b200c(++_0x530036);}(a519_0x5300,0x1dd));const a519_0x2b20=function(_0xbcdaa9,_0x530036){_0xbcdaa9=_0xbcdaa9-0x0;let _0x2b200c=a519_0x5300[_0xbcdaa9];return _0x2b200c;};const _0x43f582=a519_0x2b20;'use strict';const PluginEvents=require(_0x43f582('0x5')),events=[_0x43f582('0x2'),_0x43f582('0x3'),_0x43f582('0x4')];function createListener(_0x1a3ea7,_0x44316e){return function(_0x42e151){const _0x39d44d=a519_0x2b20;_0x44316e[_0x39d44d('0x6')](_0x1a3ea7,_0x42e151);};}exports[_0x43f582('0x1')]=function(_0x48d502){const _0x7553c0=_0x43f582;for(let _0x81c09f=0x0,_0x257c35=events['length'];_0x81c09f<_0x257c35;_0x81c09f++){const _0x1ee832=events[_0x81c09f],_0x91b43f=createListener(_0x7553c0('0x0')+_0x1ee832,_0x48d502);PluginEvents['on'](_0x1ee832,_0x91b43f);}}; \ No newline at end of file +const a519_0x53d2=['update','plugin:','save','length','register','remove'];(function(_0x2d914d,_0x53d24d){const _0x7fdbb6=function(_0x30d913){while(--_0x30d913){_0x2d914d['push'](_0x2d914d['shift']());}};_0x7fdbb6(++_0x53d24d);}(a519_0x53d2,0x155));const a519_0x7fdb=function(_0x2d914d,_0x53d24d){_0x2d914d=_0x2d914d-0x0;let _0x7fdbb6=a519_0x53d2[_0x2d914d];return _0x7fdbb6;};const _0x2ee61a=a519_0x7fdb;'use strict';const PluginEvents=require('./plugin.events'),events=[_0x2ee61a('0x3'),_0x2ee61a('0x0'),_0x2ee61a('0x1')];function createListener(_0x30d913,_0xfe6cc){return function(_0xb7464e){_0xfe6cc['emit'](_0x30d913,_0xb7464e);};}exports[_0x2ee61a('0x5')]=function(_0x4bc069){const _0x1ad4d8=_0x2ee61a;for(let _0x1c8c8d=0x0,_0x587dbd=events[_0x1ad4d8('0x4')];_0x1c8c8d<_0x587dbd;_0x1c8c8d++){const _0x5e0b34=events[_0x1c8c8d],_0x43dade=createListener(_0x1ad4d8('0x2')+_0x5e0b34,_0x4bc069);PluginEvents['on'](_0x5e0b34,_0x43dade);}}; \ No newline at end of file diff --git a/server/api/pm2/index.js b/server/api/pm2/index.js index c913110..b1cf633 100644 --- a/server/api/pm2/index.js +++ b/server/api/pm2/index.js @@ -1 +1 @@ -const a520_0x17a2=['get','../../components/auth/service','exports','index','post','destroy','put','/:id','create','update','delete','show','isAuthenticated','express','Router'];(function(_0x4597ea,_0x17a2a0){const _0x4153e1=function(_0x87eb73){while(--_0x87eb73){_0x4597ea['push'](_0x4597ea['shift']());}};_0x4153e1(++_0x17a2a0);}(a520_0x17a2,0xac));const a520_0x4153=function(_0x4597ea,_0x17a2a0){_0x4597ea=_0x4597ea-0x0;let _0x4153e1=a520_0x17a2[_0x4597ea];return _0x4153e1;};const _0x169b5b=a520_0x4153;'use strict';const express=require(_0x169b5b('0x6')),router=express[_0x169b5b('0x7')](),auth=require(_0x169b5b('0x9')),controller=require('./pm2.controller');router[_0x169b5b('0x8')]('/',auth['isAuthenticated'](),controller[_0x169b5b('0xb')]),router[_0x169b5b('0x8')](_0x169b5b('0x0'),auth[_0x169b5b('0x5')](),controller[_0x169b5b('0x4')]),router[_0x169b5b('0xc')]('/',auth[_0x169b5b('0x5')](),controller[_0x169b5b('0x1')]),router[_0x169b5b('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x169b5b('0x2')]),router[_0x169b5b('0x3')](_0x169b5b('0x0'),auth[_0x169b5b('0x5')](),controller[_0x169b5b('0xd')]),module[_0x169b5b('0xa')]=router; \ No newline at end of file +const a520_0x2265=['../../components/auth/service','create','./pm2.controller','exports','/:id','show','delete','put','isAuthenticated','get','express','post','Router','update','destroy'];(function(_0x260fd1,_0x2265d8){const _0x1f4306=function(_0xc73b50){while(--_0xc73b50){_0x260fd1['push'](_0x260fd1['shift']());}};_0x1f4306(++_0x2265d8);}(a520_0x2265,0x1de));const a520_0x1f43=function(_0x260fd1,_0x2265d8){_0x260fd1=_0x260fd1-0x0;let _0x1f4306=a520_0x2265[_0x260fd1];return _0x1f4306;};const _0x25262b=a520_0x1f43;'use strict';const express=require(_0x25262b('0xc')),router=express[_0x25262b('0xe')](),auth=require(_0x25262b('0x2')),controller=require(_0x25262b('0x4'));router[_0x25262b('0xb')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x25262b('0x6'),auth['isAuthenticated'](),controller[_0x25262b('0x7')]),router[_0x25262b('0xd')]('/',auth[_0x25262b('0xa')](),controller[_0x25262b('0x3')]),router[_0x25262b('0x9')](_0x25262b('0x6'),auth[_0x25262b('0xa')](),controller[_0x25262b('0x0')]),router[_0x25262b('0x8')](_0x25262b('0x6'),auth['isAuthenticated'](),controller[_0x25262b('0x1')]),module[_0x25262b('0x5')]=router; \ No newline at end of file diff --git a/server/api/pm2/pm2.controller.js b/server/api/pm2/pm2.controller.js index 4ba2af1..92002d3 100644 --- a/server/api/pm2/pm2.controller.js +++ b/server/api/pm2/pm2.controller.js @@ -1 +1 @@ -const a521_0x3a75=['chdir','show','Unknown\x20status','error','../../files/plugins','sendStatus','Unknown\x20id','stack','api','undefined','name','dirname','script','child_process','reject','then','stop','exec','express','send','catch','status','../../config/logger','start','create','body','length','lodash','cwd','info','params','list','path','Missing\x20name\x20and/or\x20path','update','json','delete'];(function(_0x512668,_0x3a75cc){const _0x1ec362=function(_0x27152f){while(--_0x27152f){_0x512668['push'](_0x512668['shift']());}};_0x1ec362(++_0x3a75cc);}(a521_0x3a75,0x88));const a521_0x1ec3=function(_0x512668,_0x3a75cc){_0x512668=_0x512668-0x0;let _0x1ec362=a521_0x3a75[_0x512668];return _0x1ec362;};const _0x36e897=a521_0x1ec3;'use strict';const _=require(_0x36e897('0x2')),pm2=require('../../config/pm2'),logger=require(_0x36e897('0x22'))(_0x36e897('0x14')),path=require(_0x36e897('0x7')),exec=require(_0x36e897('0x19'))[_0x36e897('0x1d')];function handleEntityNotFound(_0x27152f){return function(_0x26d4bd){const _0x1f58e1=a521_0x1ec3;return!_0x26d4bd&&_0x27152f[_0x1f58e1('0x11')](0x194),_0x26d4bd;};}function respondWithResult(_0x2b6695,_0x4a9a1a){return _0x4a9a1a=_0x4a9a1a||0xc8,function(_0x2be233){const _0xd3609f=a521_0x1ec3;if(_0x2be233)return _0x2b6695[_0xd3609f('0x21')](_0x4a9a1a)[_0xd3609f('0xa')](_0x2be233);return null;};}function handleError(_0x45f009,_0x5541f6){return _0x5541f6=_0x5541f6||0x1f4,function(_0x2500e3){const _0x379298=a521_0x1ec3;logger[_0x379298('0xf')](_0x2500e3[_0x379298('0x13')]),_0x2500e3[_0x379298('0x16')]&&delete _0x2500e3[_0x379298('0x16')],_0x45f009[_0x379298('0x21')](_0x5541f6)[_0x379298('0x1f')](_0x2500e3);};}function execChildProcess(){return new Promise(function(_0xb0f411,_0x58276b){exec('npm\x20install',function(_0x4806f0,_0x7f2b4e,_0x206e50){const _0x572ac6=a521_0x1ec3;logger[_0x572ac6('0x4')](_0x7f2b4e),logger[_0x572ac6('0x4')](_0x206e50);if(_0x4806f0)return logger[_0x572ac6('0xf')](_0x4806f0),_0x58276b(_0x4806f0);return _0xb0f411(_0x7f2b4e);});});}exports['index']=function(_0x30ca80,_0x3fd0eb){const _0x5cf63e=_0x36e897;return pm2[_0x5cf63e('0x6')]()[_0x5cf63e('0x1b')](function(_0x3092fa){const _0x296b79=_0x5cf63e;if(_0x3092fa){const _0x141245=_[_0x296b79('0x1a')](_0x3092fa,function(_0x2f79c0){const _0x3d94de=_0x296b79;return _0x2f79c0[_0x3d94de('0x16')]===_0x3d94de('0x1e')||_0x2f79c0['name']==='motion2';});return{'rows':_0x141245,'count':_0x141245[_0x296b79('0x1')]};}return null;})['then'](respondWithResult(_0x3fd0eb,null))[_0x5cf63e('0x20')](handleError(_0x3fd0eb,null));},exports[_0x36e897('0xd')]=function(_0xdb62a4,_0x16195c){const _0x2a98fc=_0x36e897;return pm2['describe'](_0xdb62a4[_0x2a98fc('0x5')]['id'])[_0x2a98fc('0x1b')](respondWithResult(_0x16195c,null))[_0x2a98fc('0x1b')](handleEntityNotFound(_0x16195c,null))['catch'](handleError(_0x16195c,null));},exports[_0x36e897('0x24')]=function(_0x5e1a09,_0xd31d6e){const _0x4a77b2=_0x36e897;if(_0x5e1a09[_0x4a77b2('0x0')][_0x4a77b2('0x16')]&&_0x5e1a09[_0x4a77b2('0x0')]['script']){const _0x25b4d0=path['join'](__dirname,_0x4a77b2('0x10'),_0x5e1a09['body'][_0x4a77b2('0x18')]),_0x4d1555=process[_0x4a77b2('0x3')]();return process[_0x4a77b2('0xc')](path[_0x4a77b2('0x17')](_0x25b4d0)),execChildProcess()[_0x4a77b2('0x1b')](function(){const _0x39c8bc=_0x4a77b2;return process[_0x39c8bc('0xc')](_0x4d1555),pm2[_0x39c8bc('0x23')]({'name':_0x5e1a09[_0x39c8bc('0x0')][_0x39c8bc('0x16')],'script':_0x25b4d0});})[_0x4a77b2('0x1b')](function(_0x1e850f){return pm2['dump'](),_0x1e850f[0x0];})[_0x4a77b2('0x1b')](respondWithResult(_0xd31d6e,0xc9))['catch'](handleError(_0xd31d6e,null));}else return _0xd31d6e['status'](0x1f4)[_0x4a77b2('0x1f')]({'message':_0x4a77b2('0x8')});},exports[_0x36e897('0x9')]=function(_0x378c01,_0x31b3e0){const _0x333d23=_0x36e897;_0x378c01[_0x333d23('0x0')]['id']&&delete _0x378c01[_0x333d23('0x0')]['id'];const _0x3bd285={'online':'restart','stopped':_0x333d23('0x1c')};return typeof _0x3bd285[_0x378c01['body'][_0x333d23('0x21')]]!==_0x333d23('0x15')?pm2[_0x3bd285[_0x378c01['body'][_0x333d23('0x21')]]](_0x378c01[_0x333d23('0x5')]['id'])[_0x333d23('0x1b')](respondWithResult(_0x31b3e0,0xc8))[_0x333d23('0x20')](handleError(_0x31b3e0,null)):_0x31b3e0[_0x333d23('0x21')](0x1f4)[_0x333d23('0x1f')]({'message':_0x333d23('0xe')});},exports['destroy']=function(_0x4e913c,_0x197a47){const _0x534205=_0x36e897;return _0x4e913c[_0x534205('0x0')]['id']&&delete _0x4e913c[_0x534205('0x0')]['id'],_0x4e913c[_0x534205('0x5')]['id']?pm2[_0x534205('0xb')](_0x4e913c[_0x534205('0x5')]['id'])[_0x534205('0x1b')](function(_0x143052){return pm2['dump'](),_0x143052[0x0];})[_0x534205('0x1b')](respondWithResult(_0x197a47,null))['catch'](handleError(_0x197a47,null)):_0x197a47[_0x534205('0x21')](0x1f4)[_0x534205('0x1f')]({'message':_0x534205('0x12')});}; \ No newline at end of file +const a521_0x5cc6=['exec','express','child_process','stack','status','describe','then','params','create','../../config/logger','update','../../files/plugins','cwd','api','list','destroy','name','Unknown\x20id','json','catch','join','script','chdir','Unknown\x20status','info','start','stop','npm\x20install','../../config/pm2','body','index','error','Missing\x20name\x20and/or\x20path','sendStatus','undefined','reject','send','motion2','dump'];(function(_0x563540,_0x5cc612){const _0x57e9ad=function(_0x32f0f3){while(--_0x32f0f3){_0x563540['push'](_0x563540['shift']());}};_0x57e9ad(++_0x5cc612);}(a521_0x5cc6,0xea));const a521_0x57e9=function(_0x563540,_0x5cc612){_0x563540=_0x563540-0x0;let _0x57e9ad=a521_0x5cc6[_0x563540];return _0x57e9ad;};const _0x212499=a521_0x57e9;'use strict';const _=require('lodash'),pm2=require(_0x212499('0x1c')),logger=require(_0x212499('0x9'))(_0x212499('0xd')),path=require('path'),exec=require(_0x212499('0x2'))[_0x212499('0x0')];function handleEntityNotFound(_0x32f0f3){return function(_0x147c50){const _0xd9657f=a521_0x57e9;return!_0x147c50&&_0x32f0f3[_0xd9657f('0x21')](0x194),_0x147c50;};}function respondWithResult(_0x62cb6d,_0x42e9f8){return _0x42e9f8=_0x42e9f8||0xc8,function(_0x2bbd0b){const _0xaa7b91=a521_0x57e9;if(_0x2bbd0b)return _0x62cb6d[_0xaa7b91('0x4')](_0x42e9f8)[_0xaa7b91('0x12')](_0x2bbd0b);return null;};}function handleError(_0x601e31,_0x44f1da){return _0x44f1da=_0x44f1da||0x1f4,function(_0x14f7bd){const _0x18de9c=a521_0x57e9;logger[_0x18de9c('0x1f')](_0x14f7bd[_0x18de9c('0x3')]),_0x14f7bd[_0x18de9c('0x10')]&&delete _0x14f7bd['name'],_0x601e31[_0x18de9c('0x4')](_0x44f1da)[_0x18de9c('0x24')](_0x14f7bd);};}function execChildProcess(){return new Promise(function(_0xb6ff81,_0x381c26){const _0x25c82b=a521_0x57e9;exec(_0x25c82b('0x1b'),function(_0x49ea5d,_0xc0b4ef,_0x5d9908){const _0x2dfcf4=_0x25c82b;logger[_0x2dfcf4('0x18')](_0xc0b4ef),logger[_0x2dfcf4('0x18')](_0x5d9908);if(_0x49ea5d)return logger[_0x2dfcf4('0x1f')](_0x49ea5d),_0x381c26(_0x49ea5d);return _0xb6ff81(_0xc0b4ef);});});}exports[_0x212499('0x1e')]=function(_0x1200fd,_0x1552a4){const _0x26d439=_0x212499;return pm2[_0x26d439('0xe')]()[_0x26d439('0x6')](function(_0x520134){const _0x2469c6=_0x26d439;if(_0x520134){const _0x5d4192=_[_0x2469c6('0x23')](_0x520134,function(_0x33790f){const _0x1ed3ad=_0x2469c6;return _0x33790f[_0x1ed3ad('0x10')]===_0x1ed3ad('0x1')||_0x33790f['name']===_0x1ed3ad('0x25');});return{'rows':_0x5d4192,'count':_0x5d4192['length']};}return null;})[_0x26d439('0x6')](respondWithResult(_0x1552a4,null))[_0x26d439('0x13')](handleError(_0x1552a4,null));},exports['show']=function(_0x55c4e6,_0x502b73){const _0x32d53a=_0x212499;return pm2[_0x32d53a('0x5')](_0x55c4e6[_0x32d53a('0x7')]['id'])[_0x32d53a('0x6')](respondWithResult(_0x502b73,null))[_0x32d53a('0x6')](handleEntityNotFound(_0x502b73,null))[_0x32d53a('0x13')](handleError(_0x502b73,null));},exports[_0x212499('0x8')]=function(_0x592da2,_0x2771f4){const _0xd771f2=_0x212499;if(_0x592da2[_0xd771f2('0x1d')]['name']&&_0x592da2['body']['script']){const _0xac3e14=path[_0xd771f2('0x14')](__dirname,_0xd771f2('0xb'),_0x592da2['body'][_0xd771f2('0x15')]),_0x118421=process[_0xd771f2('0xc')]();return process[_0xd771f2('0x16')](path['dirname'](_0xac3e14)),execChildProcess()[_0xd771f2('0x6')](function(){const _0x2a2c38=_0xd771f2;return process[_0x2a2c38('0x16')](_0x118421),pm2[_0x2a2c38('0x19')]({'name':_0x592da2[_0x2a2c38('0x1d')][_0x2a2c38('0x10')],'script':_0xac3e14});})['then'](function(_0x13038c){return pm2['dump'](),_0x13038c[0x0];})[_0xd771f2('0x6')](respondWithResult(_0x2771f4,0xc9))[_0xd771f2('0x13')](handleError(_0x2771f4,null));}else return _0x2771f4[_0xd771f2('0x4')](0x1f4)[_0xd771f2('0x24')]({'message':_0xd771f2('0x20')});},exports[_0x212499('0xa')]=function(_0x1029b9,_0x227e1f){const _0x366373=_0x212499;_0x1029b9[_0x366373('0x1d')]['id']&&delete _0x1029b9['body']['id'];const _0x1954b1={'online':'restart','stopped':_0x366373('0x1a')};return typeof _0x1954b1[_0x1029b9['body'][_0x366373('0x4')]]!==_0x366373('0x22')?pm2[_0x1954b1[_0x1029b9[_0x366373('0x1d')]['status']]](_0x1029b9[_0x366373('0x7')]['id'])[_0x366373('0x6')](respondWithResult(_0x227e1f,0xc8))['catch'](handleError(_0x227e1f,null)):_0x227e1f[_0x366373('0x4')](0x1f4)[_0x366373('0x24')]({'message':_0x366373('0x17')});},exports[_0x212499('0xf')]=function(_0x10d7c8,_0x27d259){const _0x745168=_0x212499;return _0x10d7c8[_0x745168('0x1d')]['id']&&delete _0x10d7c8['body']['id'],_0x10d7c8[_0x745168('0x7')]['id']?pm2['delete'](_0x10d7c8['params']['id'])[_0x745168('0x6')](function(_0x44e2bf){const _0x12c3af=_0x745168;return pm2[_0x12c3af('0x26')](),_0x44e2bf[0x0];})['then'](respondWithResult(_0x27d259,null))['catch'](handleError(_0x27d259,null)):_0x27d259[_0x745168('0x4')](0x1f4)[_0x745168('0x24')]({'message':_0x745168('0x11')});}; \ No newline at end of file diff --git a/server/api/reportAgentPreview/index.js b/server/api/reportAgentPreview/index.js index 5f36640..005c94b 100644 --- a/server/api/reportAgentPreview/index.js +++ b/server/api/reportAgentPreview/index.js @@ -1 +1 @@ -const a522_0x5d59=['exports','Router','express'];(function(_0x10b88a,_0x5d59ef){const _0x1a04ba=function(_0x23855c){while(--_0x23855c){_0x10b88a['push'](_0x10b88a['shift']());}};_0x1a04ba(++_0x5d59ef);}(a522_0x5d59,0x1d9));const a522_0x1a04=function(_0x10b88a,_0x5d59ef){_0x10b88a=_0x10b88a-0x0;let _0x1a04ba=a522_0x5d59[_0x10b88a];return _0x1a04ba;};const _0x27bd1d=a522_0x1a04;'use strict';const express=require(_0x27bd1d('0x0')),router=express[_0x27bd1d('0x2')]();module[_0x27bd1d('0x1')]=router; \ No newline at end of file +const a522_0xb6db=['exports','express'];(function(_0x3c0774,_0xb6dbb5){const _0x5de6e0=function(_0x14b635){while(--_0x14b635){_0x3c0774['push'](_0x3c0774['shift']());}};_0x5de6e0(++_0xb6dbb5);}(a522_0xb6db,0xd5));const a522_0x5de6=function(_0x3c0774,_0xb6dbb5){_0x3c0774=_0x3c0774-0x0;let _0x5de6e0=a522_0xb6db[_0x3c0774];return _0x5de6e0;};const _0x58103d=a522_0x5de6;'use strict';const express=require(_0x58103d('0x0')),router=express['Router']();module[_0x58103d('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 790e111..862840d 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.attributes.js +++ b/server/api/reportAgentPreview/reportAgentPreview.attributes.js @@ -1 +1 @@ -const a523_0x34dc=['STRING','DATE'];(function(_0x5b17ca,_0x34dce9){const _0x1a1ec9=function(_0x50c948){while(--_0x50c948){_0x5b17ca['push'](_0x5b17ca['shift']());}};_0x1a1ec9(++_0x34dce9);}(a523_0x34dc,0x1d7));const a523_0x1a1e=function(_0x5b17ca,_0x34dce9){_0x5b17ca=_0x5b17ca-0x0;let _0x1a1ec9=a523_0x34dc[_0x5b17ca];return _0x1a1ec9;};const _0x39a8d0=a523_0x1a1e;'use strict';const Sequelize=require('sequelize');module['exports']={'state':{'type':Sequelize['INTEGER'](0x2)},'statedesc':{'type':Sequelize[_0x39a8d0('0x1')]},'scheduledat':{'type':Sequelize[_0x39a8d0('0x0')]},'uniqueid':{'type':Sequelize['STRING']},'starttime':{'type':Sequelize[_0x39a8d0('0x0')]},'responsetime':{'type':Sequelize[_0x39a8d0('0x0')]},'ringtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'campaign':{'type':Sequelize[_0x39a8d0('0x1')]},'campaigntype':{'type':Sequelize['STRING']},'membername':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a523_0x3c79=['STRING','DATE','exports','INTEGER','sequelize'];(function(_0x2d9396,_0x3c7917){const _0x7a5649=function(_0x1f07cf){while(--_0x1f07cf){_0x2d9396['push'](_0x2d9396['shift']());}};_0x7a5649(++_0x3c7917);}(a523_0x3c79,0x7b));const a523_0x7a56=function(_0x2d9396,_0x3c7917){_0x2d9396=_0x2d9396-0x0;let _0x7a5649=a523_0x3c79[_0x2d9396];return _0x7a5649;};const _0x330bb1=a523_0x7a56;'use strict';const Sequelize=require(_0x330bb1('0x1'));module[_0x330bb1('0x4')]={'state':{'type':Sequelize[_0x330bb1('0x0')](0x2)},'statedesc':{'type':Sequelize['STRING']},'scheduledat':{'type':Sequelize[_0x330bb1('0x3')]},'uniqueid':{'type':Sequelize[_0x330bb1('0x2')]},'starttime':{'type':Sequelize[_0x330bb1('0x3')]},'responsetime':{'type':Sequelize[_0x330bb1('0x3')]},'ringtime':{'type':Sequelize[_0x330bb1('0x0')],'defaultValue':0x0},'campaign':{'type':Sequelize[_0x330bb1('0x2')]},'campaigntype':{'type':Sequelize[_0x330bb1('0x2')]},'membername':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.model.js b/server/api/reportAgentPreview/reportAgentPreview.model.js index 34e9eef..f2a1f5d 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.model.js +++ b/server/api/reportAgentPreview/reportAgentPreview.model.js @@ -1 +1 @@ -const a524_0x12b9=['./reportAgentPreview.attributes','report_agent_preview','define','ReportAgentPreview','exports'];(function(_0x1f73a9,_0x12b9cf){const _0x5d87a5=function(_0x336e2e){while(--_0x336e2e){_0x1f73a9['push'](_0x1f73a9['shift']());}};_0x5d87a5(++_0x12b9cf);}(a524_0x12b9,0x1df));const a524_0x5d87=function(_0x1f73a9,_0x12b9cf){_0x1f73a9=_0x1f73a9-0x0;let _0x5d87a5=a524_0x12b9[_0x1f73a9];return _0x5d87a5;};const _0x22da3b=a524_0x5d87;'use strict';const attributes=require(_0x22da3b('0x1'));module[_0x22da3b('0x0')]=function(_0x336e2e){const _0x172458=_0x22da3b,_0x5f4ef8=_0x336e2e[_0x172458('0x3')](_0x172458('0x4'),attributes,{'tableName':_0x172458('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5f4ef8;}; \ No newline at end of file +const a524_0x1fa4=['./reportAgentPreview.attributes','report_agent_preview','define','ReportAgentPreview','exports'];(function(_0x2c1182,_0x1fa4fe){const _0x536b82=function(_0x1952fe){while(--_0x1952fe){_0x2c1182['push'](_0x2c1182['shift']());}};_0x536b82(++_0x1fa4fe);}(a524_0x1fa4,0xd1));const a524_0x536b=function(_0x2c1182,_0x1fa4fe){_0x2c1182=_0x2c1182-0x0;let _0x536b82=a524_0x1fa4[_0x2c1182];return _0x536b82;};const _0x358114=a524_0x536b;'use strict';const attributes=require(_0x358114('0x1'));module[_0x358114('0x0')]=function(_0x1952fe){const _0x19e4a5=_0x358114,_0x33aac7=_0x1952fe[_0x19e4a5('0x3')](_0x19e4a5('0x4'),attributes,{'tableName':_0x19e4a5('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x33aac7;}; \ No newline at end of file diff --git a/server/api/reportAgentPreview/reportAgentPreview.rpc.js b/server/api/reportAgentPreview/reportAgentPreview.rpc.js index 6b4a599..76b297a 100644 --- a/server/api/reportAgentPreview/reportAgentPreview.rpc.js +++ b/server/api/reportAgentPreview/reportAgentPreview.rpc.js @@ -1 +1 @@ -const a525_0x4c42=['error','debug','info','rpc','../../config/logger','../../mysqldb','catch','raw','create','options','message','CreateReportAgentPreview','body'];(function(_0x5c5761,_0x4c42ac){const _0x1c1ea5=function(_0x2fd388){while(--_0x2fd388){_0x5c5761['push'](_0x5c5761['shift']());}};_0x1c1ea5(++_0x4c42ac);}(a525_0x4c42,0x1ea));const a525_0x1c1e=function(_0x5c5761,_0x4c42ac){_0x5c5761=_0x5c5761-0x0;let _0x1c1ea5=a525_0x4c42[_0x5c5761];return _0x1c1ea5;};const _0x347df6=a525_0x1c1e;'use strict';const db=require(_0x347df6('0x9'))['db'],logger=require(_0x347df6('0x8'))(_0x347df6('0x7'));exports[_0x347df6('0x2')]=function(_0x2fd388){const _0x1979c5=this;return new Promise(function(_0xc9b720,_0x525647){const _0x2a48df=a525_0x1c1e;return db['ReportAgentPreview'][_0x2a48df('0xc')](_0x2fd388[_0x2a48df('0x3')],{'raw':_0x2fd388['options']?_0x2fd388[_0x2a48df('0x0')][_0x2a48df('0xb')]===undefined?!![]:![]:!![]})['then'](function(_0x5b196c){const _0x2b262b=_0x2a48df;logger[_0x2b262b('0x6')](_0x2b262b('0x2'),_0x2fd388),logger[_0x2b262b('0x5')]('CreateReportAgentPreview',_0x2fd388,JSON['stringify'](_0x5b196c)),_0xc9b720(_0x5b196c);})[_0x2a48df('0xa')](function(_0x418604){const _0x530a34=_0x2a48df;logger[_0x530a34('0x4')](_0x530a34('0x2'),_0x418604['message'],_0x2fd388),_0x525647(_0x1979c5[_0x530a34('0x4')](0x1f4,_0x418604[_0x530a34('0x1')]));});});}; \ No newline at end of file +const a525_0x3dfe=['body','error','info','create','rpc','options','CreateReportAgentPreview','debug','catch','message','raw','stringify','ReportAgentPreview','../../config/logger'];(function(_0x58f320,_0x3dfe81){const _0x1091e0=function(_0x3f6688){while(--_0x3f6688){_0x58f320['push'](_0x58f320['shift']());}};_0x1091e0(++_0x3dfe81);}(a525_0x3dfe,0xb0));const a525_0x1091=function(_0x58f320,_0x3dfe81){_0x58f320=_0x58f320-0x0;let _0x1091e0=a525_0x3dfe[_0x58f320];return _0x1091e0;};const _0x219681=a525_0x1091;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x219681('0x5'))(_0x219681('0xa'));exports[_0x219681('0xc')]=function(_0x3f6688){const _0x321538=this;return new Promise(function(_0x130cd1,_0x11a6f8){const _0x5c214c=a525_0x1091;return db[_0x5c214c('0x4')][_0x5c214c('0x9')](_0x3f6688[_0x5c214c('0x6')],{'raw':_0x3f6688['options']?_0x3f6688[_0x5c214c('0xb')][_0x5c214c('0x2')]===undefined?!![]:![]:!![]})['then'](function(_0x4935d2){const _0x11dcd7=_0x5c214c;logger[_0x11dcd7('0x8')](_0x11dcd7('0xc'),_0x3f6688),logger[_0x11dcd7('0xd')](_0x11dcd7('0xc'),_0x3f6688,JSON[_0x11dcd7('0x3')](_0x4935d2)),_0x130cd1(_0x4935d2);})[_0x5c214c('0x0')](function(_0x48a638){const _0x213dc=_0x5c214c;logger[_0x213dc('0x7')](_0x213dc('0xc'),_0x48a638[_0x213dc('0x1')],_0x3f6688),_0x11a6f8(_0x321538[_0x213dc('0x7')](0x1f4,_0x48a638['message']));});});}; \ No newline at end of file diff --git a/server/api/rpc/index.js b/server/api/rpc/index.js index 086d661..76c2d06 100644 --- a/server/api/rpc/index.js +++ b/server/api/rpc/index.js @@ -1 +1 @@ -const a526_0x1666=['/fax/queues/:id','mailQueuesWaitingInteractions','voiceQueuesChannelRedirect','showMailQueues','voiceChannelMixMonitor','agentCapacity','post','/sms/queues','/mail/queues/waitinginteractions','/outbound','faxQueuesWaitingInteractions','/chat/queues/waitinginteractions','showSmsQueues','openchannel','/fax/queues/waitinginteractions','/openchannel/queues/:id/waitinginteractions','whatsapp','/fax/queues','/fax/accounts','/voice/queues/channels/:uniqueid/hangup','/chat/queues/:id','telephones','../../components/auth/service','voiceQueuesChannels','/voice/channels/:uniqueid/mixmonitor','smsQueues','voiceChannelStopMixMonitor','Router','showOpenchannelQueues','/outbound/channels','mailQueues','agentNotify','exports','/mail/accounts','voiceQueuesChannel','showVoiceQueues','openchannelQueuesIdWaitingInteractions','/voice/queues/channels/:uniqueid','voiceChannels','/whatsapp/queues/:id','showWhatsappQueues','chatQueuesWaitingInteractions','/chat/queues','queueNotify','/agents','faxQueues','/sms/queues/:id/notify','./rpc.controller','voiceQueues','/voice/queues','put','/openchannel/queues','/whatsapp/queues/:id/notify','/voice/queues/:id','showFaxQueues','/telephones','chatQueues','/whatsapp/queues','showChatQueues','mailAccounts','/sms/queues/:id','/openchannel/queues/waitinginteractions','/agents/:id/notify','voiceQueuesPreview','campaigns','/voice/channels','/openchannel/queues/:id','/openchannel/queues/:id/notify','/chat/queues/:id/notify','/fax/queues/:id/notify','agents','/trunks','/mail/queues/:id/notify','whatsappQueuesWaitingInteractions','voiceQueuesChannelHangup','fax','/campaigns','openchannelQueuesWaitingInteractions','/mail/queues/:id','/sms/queues/waitinginteractions','trunks','get','isAuthenticated','outbound','/voice/queues/preview/:id','express'];(function(_0x15b180,_0x166644){const _0x1b2819=function(_0x4a1da6){while(--_0x4a1da6){_0x15b180['push'](_0x15b180['shift']());}};_0x1b2819(++_0x166644);}(a526_0x1666,0x1b5));const a526_0x1b28=function(_0x15b180,_0x166644){_0x15b180=_0x15b180-0x0;let _0x1b2819=a526_0x1666[_0x15b180];return _0x1b2819;};const _0x3679b0=a526_0x1b28;'use strict';const express=require(_0x3679b0('0x4e')),router=express[_0x3679b0('0x14')](),auth=require(_0x3679b0('0xf')),controller=require(_0x3679b0('0x28'));router[_0x3679b0('0x4a')](_0x3679b0('0x3a'),auth['isAuthenticated'](),controller[_0x3679b0('0x1f')]),router['get'](_0x3679b0('0x11'),auth['isAuthenticated'](),controller[_0x3679b0('0x53')]),router[_0x3679b0('0x4a')]('/voice/channels/:uniqueid/stopmixmonitor',auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x13')]),router[_0x3679b0('0x4a')](_0x3679b0('0x2a'),auth['isAuthenticated'](),controller[_0x3679b0('0x29')]),router[_0x3679b0('0x4a')](_0x3679b0('0x23'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x31')]),router[_0x3679b0('0x4a')]('/mail/queues',auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x17')]),router['get'](_0x3679b0('0x1a'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x34')]),router[_0x3679b0('0x4a')](_0x3679b0('0x2c'),auth[_0x3679b0('0x4b')](),controller['openchannelQueues']),router[_0x3679b0('0x4a')](_0x3679b0('0x0'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x12')]),router[_0x3679b0('0x4a')](_0x3679b0('0x32'),auth[_0x3679b0('0x4b')](),controller['whatsappQueues']),router[_0x3679b0('0x4a')](_0x3679b0('0xa'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x26')]),router[_0x3679b0('0x4a')](_0x3679b0('0x4d'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x38')]),router[_0x3679b0('0x4a')]('/voice/queues/channels',auth['isAuthenticated'](),controller[_0x3679b0('0x10')]),router[_0x3679b0('0x4a')](_0x3679b0('0x1e'),auth['isAuthenticated'](),controller[_0x3679b0('0x1b')]),router[_0x3679b0('0x4a')](_0x3679b0('0xc'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x43')]),router[_0x3679b0('0x4a')]('/voice/queues/channels/:uniqueid/redirect/:exten',auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x51')]),router['get'](_0x3679b0('0x2e'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x1c')]),router['get'](_0x3679b0('0x2'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x4c')]),router[_0x3679b0('0x4a')](_0x3679b0('0x16'),auth[_0x3679b0('0x4b')](),controller['outboundChannels']),router[_0x3679b0('0x4a')](_0x3679b0('0x25'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x3f')]),router[_0x3679b0('0x2b')]('/agents/:id/capacity',auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x54')]),router[_0x3679b0('0x4a')](_0x3679b0('0x30'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0xe')]),router[_0x3679b0('0x4a')](_0x3679b0('0x40'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x49')]),router[_0x3679b0('0x4a')](_0x3679b0('0x45'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x39')]),router[_0x3679b0('0x4a')](_0x3679b0('0xb'),auth[_0x3679b0('0x4b')](),controller['faxAccounts']),router[_0x3679b0('0x4a')](_0x3679b0('0x4'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x22')]),router[_0x3679b0('0x4a')](_0x3679b0('0x1'),auth['isAuthenticated'](),controller[_0x3679b0('0x50')]),router[_0x3679b0('0x4a')](_0x3679b0('0x36'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x46')]),router[_0x3679b0('0x4a')](_0x3679b0('0x8'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x1d')]),router[_0x3679b0('0x4a')](_0x3679b0('0x48'),auth[_0x3679b0('0x4b')](),controller['smsQueuesWaitingInteractions']),router['get']('/whatsapp/queues/waitinginteractions',auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x42')]),router[_0x3679b0('0x4a')](_0x3679b0('0x7'),auth['isAuthenticated'](),controller[_0x3679b0('0x3')]),router['post'](_0x3679b0('0x41'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x24')]('mail')),router['get'](_0x3679b0('0x47'),auth['isAuthenticated'](),controller[_0x3679b0('0x52')]),router[_0x3679b0('0x55')](_0x3679b0('0x3d'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x24')]('chat')),router[_0x3679b0('0x4a')](_0x3679b0('0xd'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x33')]),router['post'](_0x3679b0('0x3e'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x24')](_0x3679b0('0x44'))),router[_0x3679b0('0x4a')](_0x3679b0('0x4f'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x2f')]),router['post'](_0x3679b0('0x3c'),auth[_0x3679b0('0x4b')](),controller['queueNotify'](_0x3679b0('0x6'))),router[_0x3679b0('0x4a')](_0x3679b0('0x3b'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x15')]),router[_0x3679b0('0x55')](_0x3679b0('0x27'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x24')]('sms')),router[_0x3679b0('0x55')](_0x3679b0('0x2d'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x24')](_0x3679b0('0x9'))),router[_0x3679b0('0x4a')](_0x3679b0('0x35'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x5')]),router[_0x3679b0('0x4a')](_0x3679b0('0x20'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x21')]),router[_0x3679b0('0x55')](_0x3679b0('0x37'),auth[_0x3679b0('0x4b')](),controller[_0x3679b0('0x18')]),module[_0x3679b0('0x19')]=router; \ No newline at end of file +const a526_0x101c=['/mail/queues/:id','faxAccounts','/sms/queues','/whatsapp/queues/:id','/agents/:id/notify','voiceQueuesChannelRedirect','chat','/openchannel/queues/waitinginteractions','/sms/queues/:id','/openchannel/queues/:id/waitinginteractions','./rpc.controller','/voice/queues/channels/:uniqueid/redirect/:exten','/chat/queues/:id','/mail/queues/waitinginteractions','/fax/accounts','showSmsQueues','trunks','voiceQueues','showWhatsappQueues','/whatsapp/queues','/chat/queues/waitinginteractions','openchannel','whatsappQueuesWaitingInteractions','voiceQueuesPreview','/mail/accounts','mailQueues','/voice/channels/:uniqueid/mixmonitor','telephones','agentCapacity','/voice/queues','smsQueues','/agents','mail','/agents/:id/capacity','/outbound/channels','faxQueues','post','outbound','showMailQueues','outboundChannels','/whatsapp/queues/:id/notify','/fax/queues/waitinginteractions','voiceQueuesChannels','/chat/queues','sms','mailAccounts','isAuthenticated','voiceChannels','queueNotify','chatQueuesWaitingInteractions','fax','openchannelQueues','voiceChannelMixMonitor','whatsapp','whatsappQueues','agentNotify','faxQueuesWaitingInteractions','/chat/queues/:id/notify','/mail/queues/:id/notify','mailQueuesWaitingInteractions','openchannelQueuesIdWaitingInteractions','/voice/queues/channels/:uniqueid/hangup','/campaigns','/trunks','/mail/queues','/fax/queues','/voice/queues/preview/:id','put','agents','get','/voice/queues/channels/:uniqueid','/openchannel/queues/:id/notify','/openchannel/queues','voiceQueuesChannel','/voice/queues/:id','/voice/queues/channels'];(function(_0x22dd57,_0x101c5e){const _0x21f265=function(_0x4dd965){while(--_0x4dd965){_0x22dd57['push'](_0x22dd57['shift']());}};_0x21f265(++_0x101c5e);}(a526_0x101c,0x8f));const a526_0x21f2=function(_0x22dd57,_0x101c5e){_0x22dd57=_0x22dd57-0x0;let _0x21f265=a526_0x101c[_0x22dd57];return _0x21f265;};const _0x304448=a526_0x21f2;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x304448('0x13'));router[_0x304448('0x2')]('/voice/channels',auth[_0x304448('0x37')](),controller[_0x304448('0x38')]),router[_0x304448('0x2')](_0x304448('0x23'),auth[_0x304448('0x37')](),controller[_0x304448('0x3d')]),router[_0x304448('0x2')]('/voice/channels/:uniqueid/stopmixmonitor',auth[_0x304448('0x37')](),controller['voiceChannelStopMixMonitor']),router[_0x304448('0x2')](_0x304448('0x26'),auth['isAuthenticated'](),controller[_0x304448('0x1a')]),router[_0x304448('0x2')](_0x304448('0x34'),auth[_0x304448('0x37')](),controller['chatQueues']),router[_0x304448('0x2')](_0x304448('0x49'),auth[_0x304448('0x37')](),controller[_0x304448('0x22')]),router[_0x304448('0x2')](_0x304448('0x21'),auth[_0x304448('0x37')](),controller[_0x304448('0x36')]),router['get'](_0x304448('0x5'),auth[_0x304448('0x37')](),controller[_0x304448('0x3c')]),router['get'](_0x304448('0xb'),auth[_0x304448('0x37')](),controller[_0x304448('0x27')]),router['get'](_0x304448('0x1c'),auth[_0x304448('0x37')](),controller[_0x304448('0x3f')]),router[_0x304448('0x2')](_0x304448('0x4a'),auth['isAuthenticated'](),controller[_0x304448('0x2c')]),router[_0x304448('0x2')](_0x304448('0x4b'),auth[_0x304448('0x37')](),controller[_0x304448('0x20')]),router[_0x304448('0x2')](_0x304448('0x8'),auth[_0x304448('0x37')](),controller[_0x304448('0x33')]),router['get'](_0x304448('0x3'),auth['isAuthenticated'](),controller[_0x304448('0x6')]),router[_0x304448('0x2')](_0x304448('0x46'),auth['isAuthenticated'](),controller['voiceQueuesChannelHangup']),router[_0x304448('0x2')](_0x304448('0x14'),auth[_0x304448('0x37')](),controller[_0x304448('0xe')]),router[_0x304448('0x2')](_0x304448('0x7'),auth['isAuthenticated'](),controller['showVoiceQueues']),router[_0x304448('0x2')]('/outbound',auth[_0x304448('0x37')](),controller[_0x304448('0x2e')]),router['get'](_0x304448('0x2b'),auth['isAuthenticated'](),controller[_0x304448('0x30')]),router[_0x304448('0x2')](_0x304448('0x28'),auth['isAuthenticated'](),controller[_0x304448('0x1')]),router[_0x304448('0x0')](_0x304448('0x2a'),auth['isAuthenticated'](),controller[_0x304448('0x25')]),router[_0x304448('0x2')]('/telephones',auth[_0x304448('0x37')](),controller[_0x304448('0x24')]),router[_0x304448('0x2')](_0x304448('0x48'),auth[_0x304448('0x37')](),controller[_0x304448('0x19')]),router['get'](_0x304448('0x47'),auth[_0x304448('0x37')](),controller['campaigns']),router[_0x304448('0x2')](_0x304448('0x17'),auth[_0x304448('0x37')](),controller[_0x304448('0xa')]),router[_0x304448('0x2')](_0x304448('0x1d'),auth[_0x304448('0x37')](),controller[_0x304448('0x3a')]),router[_0x304448('0x2')](_0x304448('0x16'),auth['isAuthenticated'](),controller[_0x304448('0x44')]),router[_0x304448('0x2')](_0x304448('0x10'),auth[_0x304448('0x37')](),controller['openchannelQueuesWaitingInteractions']),router['get'](_0x304448('0x12'),auth[_0x304448('0x37')](),controller[_0x304448('0x45')]),router[_0x304448('0x2')]('/sms/queues/waitinginteractions',auth[_0x304448('0x37')](),controller['smsQueuesWaitingInteractions']),router[_0x304448('0x2')]('/whatsapp/queues/waitinginteractions',auth[_0x304448('0x37')](),controller[_0x304448('0x1f')]),router[_0x304448('0x2')](_0x304448('0x32'),auth['isAuthenticated'](),controller[_0x304448('0x41')]),router[_0x304448('0x2d')](_0x304448('0x43'),auth['isAuthenticated'](),controller[_0x304448('0x39')](_0x304448('0x29'))),router[_0x304448('0x2')](_0x304448('0x9'),auth[_0x304448('0x37')](),controller[_0x304448('0x2f')]),router['post'](_0x304448('0x42'),auth[_0x304448('0x37')](),controller['queueNotify'](_0x304448('0xf'))),router[_0x304448('0x2')](_0x304448('0x15'),auth[_0x304448('0x37')](),controller['showChatQueues']),router[_0x304448('0x2d')]('/fax/queues/:id/notify',auth[_0x304448('0x37')](),controller['queueNotify'](_0x304448('0x3b'))),router[_0x304448('0x2')]('/fax/queues/:id',auth['isAuthenticated'](),controller['showFaxQueues']),router[_0x304448('0x2d')](_0x304448('0x4'),auth[_0x304448('0x37')](),controller[_0x304448('0x39')](_0x304448('0x1e'))),router[_0x304448('0x2')]('/openchannel/queues/:id',auth[_0x304448('0x37')](),controller['showOpenchannelQueues']),router['post']('/sms/queues/:id/notify',auth[_0x304448('0x37')](),controller[_0x304448('0x39')](_0x304448('0x35'))),router[_0x304448('0x2d')](_0x304448('0x31'),auth['isAuthenticated'](),controller['queueNotify'](_0x304448('0x3e'))),router[_0x304448('0x2')](_0x304448('0x11'),auth[_0x304448('0x37')](),controller[_0x304448('0x18')]),router[_0x304448('0x2')](_0x304448('0xc'),auth[_0x304448('0x37')](),controller[_0x304448('0x1b')]),router[_0x304448('0x2d')](_0x304448('0xd'),auth['isAuthenticated'](),controller[_0x304448('0x40')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/rpc/rpc.controller.js b/server/api/rpc/rpc.controller.js index 63139ed..7cf1984 100644 --- a/server/api/rpc/rpc.controller.js +++ b/server/api/rpc/rpc.controller.js @@ -1 +1 @@ -const a527_0x7b0f=['voiceChannels','Account','Agent\x20not\x20found','capitalize','agents','showWhatsappQueues','rows','util','findOne','merge','Queue','then','capacity','Interaction','MemberReport','FaxAccounts','indexOf','jayson/promise','YYYY-MM-DD\x20HH:mm:ss','Website','smsQueuesWaitingInteractions','User','value','openchannelQueuesIdWaitingInteractions','mailQueuesWaitingInteractions','telephones','trunks','client','whatsappQueuesWaitingInteractions','voiceQueuesChannels','From','WhatsappQueues','body','filter','error','moment','VoiceQueuesChannels','FaxQueuesWaitingInteractions','interface','channel','showFaxQueues','notIn','agent','query','chatQueues','stack','mailQueues','outbound','faxQueues','Start','chatQueuesWaitingInteractions','user','message','showSmsQueues','catch','lodash','InteractionId','findAll','openchannelQueues','Outbound','map','voiceChannelStopMixMonitor','smsQueues','Agents','type','VoiceQueuesChannelRedirect','MailQueues','Telephones','http','SmsQueuesWaitingInteractions','MessageId','agentTransferTimeout','AgentCapacity','create','update','SmsQueues','agentCapacity','chat','Channel\x20field\x20is\x20mandatory','MailQueuesWaitingInteractions','mailAccounts','format','uniq','VoiceQueuesChannel','result','*,*,*,*','isNil','length','../../config/logger','OpenchannelQueuesWaitingInteractions','\x20Message\x20not\x20found','FaxQueues','showMailQueues','VoiceQueues','VoiceChannelStopMixMonitor','params','voiceQueuesChannelHangup','outboundChannels','OpenchannelQueues','voiceQueuesChannelRedirect','status','api','internal','messageId','../../mysqldb','Trunks','Message','faxAccounts','undefined','voiceQueuesPreview','TransferReport','sendStatus','Campaigns','VoiceChannelMixMonitor','request','campaigns','interaction','openchannelQueuesWaitingInteractions','findOrCreate','INTERACTION','showVoiceQueues','find','send','queue','queue_id','name','VoiceQueuesChannelHangup'];(function(_0x3df850,_0x7b0fba){const _0x2524ff=function(_0x15e440){while(--_0x15e440){_0x3df850['push'](_0x3df850['shift']());}};_0x2524ff(++_0x7b0fba);}(a527_0x7b0f,0x161));const a527_0x2524=function(_0x3df850,_0x7b0fba){_0x3df850=_0x3df850-0x0;let _0x2524ff=a527_0x7b0f[_0x3df850];return _0x2524ff;};const _0x433ccd=a527_0x2524;'use strict';const moment=require(_0x433ccd('0x3f')),_=require(_0x433ccd('0x53')),util=require(_0x433ccd('0x23')),db=require(_0x433ccd('0x5'))['db'],{Op}=require('sequelize'),logger=require(_0x433ccd('0x74'))(_0x433ccd('0x2')),jayson=require(_0x433ccd('0x2d')),amiClient=jayson['client'][_0x433ccd('0x60')]({'port':0x232a}),mailClient=jayson[_0x433ccd('0x37')]['http']({'port':0x232b}),routingClient=jayson['client'][_0x433ccd('0x60')]({'port':0x232c});function respondWithRpcPromise(_0x15e440,_0xa8bb58,_0x1bc7d9){return new Promise(function(_0x5846e5,_0x11faa1){const _0x349f0d=a527_0x2524,_0x50d342=_0x1bc7d9?_0x1bc7d9:amiClient;return _0x50d342[_0x349f0d('0xf')](_0x15e440,_0xa8bb58)[_0x349f0d('0x27')](function(_0xabed87){const _0x1c0e58=_0x349f0d;if(_0xabed87[_0x1c0e58('0x3e')]){if(_0xabed87[_0x1c0e58('0x3e')]['code']===0x1f4)return _0x11faa1(_0xabed87[_0x1c0e58('0x3e')][_0x1c0e58('0x50')]);return _0x5846e5(_0xabed87[_0x1c0e58('0x3e')][_0x1c0e58('0x50')]);}else _0x5846e5(_0xabed87[_0x1c0e58('0x70')]);})[_0x349f0d('0x52')](function(_0x1300fe){_0x11faa1(_0x1300fe);});});}function respondWithResult(_0x984949,_0x4ae8e5){return _0x4ae8e5=_0x4ae8e5||0xc8,function(_0xb5127){const _0x308a7d=a527_0x2524;if(_0xb5127)return _0x984949[_0x308a7d('0x1')](_0x4ae8e5)['json'](_0xb5127);return _0x984949[_0x308a7d('0xc')](0x194);};}function handleError(_0x1d044b,_0x141d4a){return _0x141d4a=_0x141d4a||0x1f4,function(_0x680d93){const _0x3f3646=a527_0x2524;logger[_0x3f3646('0x3e')](_0x680d93[_0x3f3646('0x49')]),_0x680d93['name']&&delete _0x680d93[_0x3f3646('0x1a')],_0x1d044b[_0x3f3646('0x1')](_0x141d4a)[_0x3f3646('0x17')](_0x680d93);};}function findById(_0x3059ca){return function(_0x2b8dec){const _0x5a1bb6=a527_0x2524;if(!_[_0x5a1bb6('0x72')](_0x3059ca)&&!_[_0x5a1bb6('0x72')](_0x2b8dec)&&!_[_0x5a1bb6('0x72')](_0x2b8dec[_0x5a1bb6('0x22')]))return _[_0x5a1bb6('0x16')](_0x2b8dec[_0x5a1bb6('0x22')],function(_0xe3f225){return _0xe3f225['id']==_0x3059ca;});return null;};}exports[_0x433ccd('0x1c')]=function(_0x2a3bd5,_0x26df9a){const _0x563baa=_0x433ccd;return respondWithRpcPromise('VoiceChannels',_0x2a3bd5[_0x563baa('0x47')])[_0x563baa('0x27')](respondWithResult(_0x26df9a,null))['catch'](handleError(_0x26df9a,null));},exports['voiceChannelMixMonitor']=function(_0x433aa1,_0x45d729){const _0x3d38f4=_0x433ccd;return respondWithRpcPromise(_0x3d38f4('0xe'),_[_0x3d38f4('0x25')](_0x433aa1['query'],_0x433aa1[_0x3d38f4('0x7b')]))[_0x3d38f4('0x27')](respondWithResult(_0x45d729,null))['catch'](handleError(_0x45d729,null));},exports[_0x433ccd('0x59')]=function(_0x345261,_0x45b0b5){const _0x2f5316=_0x433ccd;return respondWithRpcPromise(_0x2f5316('0x7a'),_[_0x2f5316('0x25')](_0x345261[_0x2f5316('0x47')],_0x345261[_0x2f5316('0x7b')]))[_0x2f5316('0x27')](respondWithResult(_0x45b0b5,null))[_0x2f5316('0x52')](handleError(_0x45b0b5,null));},exports['voiceQueues']=function(_0x4e7f20,_0x5e4b11){const _0x55aaa8=_0x433ccd;return respondWithRpcPromise(_0x55aaa8('0x79'),_0x4e7f20['query'])[_0x55aaa8('0x27')](respondWithResult(_0x5e4b11,null))[_0x55aaa8('0x52')](handleError(_0x5e4b11,null));},exports[_0x433ccd('0x15')]=function(_0x20b006,_0x136b68){const _0x11c614=_0x433ccd;return respondWithRpcPromise(_0x11c614('0x79'),_0x20b006[_0x11c614('0x47')])['then'](findById(_0x20b006[_0x11c614('0x7b')]['id']))[_0x11c614('0x27')](respondWithResult(_0x136b68,null))[_0x11c614('0x52')](handleError(_0x136b68,null));},exports[_0x433ccd('0xa')]=function(_0x3a5711,_0x39aa6f){const _0x12b9e1=_0x433ccd;return respondWithRpcPromise('VoiceQueuesPreview',_[_0x12b9e1('0x25')](_0x3a5711['query'],_0x3a5711[_0x12b9e1('0x7b')]))[_0x12b9e1('0x27')](respondWithResult(_0x39aa6f,null))[_0x12b9e1('0x52')](handleError(_0x39aa6f,null));},exports[_0x433ccd('0x39')]=function(_0x17654e,_0x5664cb){const _0x1fdc71=_0x433ccd;return respondWithRpcPromise(_0x1fdc71('0x40'),_0x17654e[_0x1fdc71('0x47')])['then'](respondWithResult(_0x5664cb,null))[_0x1fdc71('0x52')](handleError(_0x5664cb,null));},exports['voiceQueuesChannel']=function(_0x5dd141,_0x2d667f){const _0x4ad4c2=_0x433ccd;return respondWithRpcPromise(_0x4ad4c2('0x6f'),_['merge'](_0x5dd141[_0x4ad4c2('0x47')],_0x5dd141[_0x4ad4c2('0x7b')]))['then'](respondWithResult(_0x2d667f,null))[_0x4ad4c2('0x52')](handleError(_0x2d667f,null));},exports[_0x433ccd('0x7c')]=function(_0x2f67ac,_0x36b0e0){const _0x45f9b0=_0x433ccd;return respondWithRpcPromise(_0x45f9b0('0x1b'),_[_0x45f9b0('0x25')](_0x2f67ac[_0x45f9b0('0x47')],_0x2f67ac[_0x45f9b0('0x7b')]))[_0x45f9b0('0x27')](respondWithResult(_0x36b0e0,null))['catch'](handleError(_0x36b0e0,null));},exports[_0x433ccd('0x0')]=function(_0x43df25,_0x450c2d){const _0x5b56ed=_0x433ccd;return respondWithRpcPromise(_0x5b56ed('0x5d'),_['merge'](_0x43df25[_0x5b56ed('0x47')],_0x43df25[_0x5b56ed('0x7b')]))[_0x5b56ed('0x27')](respondWithResult(_0x450c2d,null))[_0x5b56ed('0x52')](handleError(_0x450c2d,null));},exports[_0x433ccd('0x4b')]=function(_0x195c38,_0x36839d){const _0x317194=_0x433ccd;return respondWithRpcPromise(_0x317194('0x57'),_0x195c38[_0x317194('0x47')])[_0x317194('0x27')](respondWithResult(_0x36839d,null))[_0x317194('0x52')](handleError(_0x36839d,null));},exports[_0x433ccd('0x7d')]=function(_0x43e130,_0x42fe24){const _0x4c84ce=_0x433ccd;return respondWithRpcPromise('OutboundChannels',_0x43e130[_0x4c84ce('0x47')])[_0x4c84ce('0x27')](respondWithResult(_0x42fe24,null))[_0x4c84ce('0x52')](handleError(_0x42fe24,null));},exports[_0x433ccd('0x20')]=function(_0x14de36,_0x24d18b){const _0x35dbb7=_0x433ccd;let _0x45f647;return respondWithRpcPromise(_0x35dbb7('0x5b'),_0x14de36['query'])[_0x35dbb7('0x27')](function(_0x372e4f){const _0x55c655=_0x35dbb7;return _0x45f647=_0x372e4f,respondWithRpcPromise(_0x55c655('0x5b'),_0x14de36[_0x55c655('0x47')],routingClient);})[_0x35dbb7('0x27')](function(_0x387aba){const _0x27b004=_0x35dbb7;return _[_0x27b004('0x25')]({},_0x387aba,_0x45f647);})[_0x35dbb7('0x27')](respondWithResult(_0x24d18b,null))[_0x35dbb7('0x52')](handleError(_0x24d18b,null));},exports[_0x433ccd('0x68')]=function(_0x2a10cd,_0x5eb801){const _0x181d99=_0x433ccd;if(_0x2a10cd[_0x181d99('0x3c')]&&_0x2a10cd[_0x181d99('0x3c')][_0x181d99('0x11')]&&_0x2a10cd[_0x181d99('0x4f')]&&_0x2a10cd[_0x181d99('0x4f')]['name'])for(const _0x271f06 in _0x2a10cd[_0x181d99('0x3c')]['interaction']){if(typeof _0x2a10cd[_0x181d99('0x3c')][_0x181d99('0x11')][_0x271f06]!==_0x181d99('0x9')){db[_0x181d99('0x2a')][_0x181d99('0x55')]({'where':{'channel':_0x271f06,'membername':_0x2a10cd[_0x181d99('0x4f')][_0x181d99('0x1a')],'type':'INTERACTION','exitAt':null,'uniqueid':_0x2a10cd[_0x181d99('0x3c')][_0x181d99('0x11')][_0x271f06]&&_0x2a10cd[_0x181d99('0x3c')][_0x181d99('0x11')][_0x271f06][_0x181d99('0x73')]?{[Op[_0x181d99('0x45')]]:_0x2a10cd['body'][_0x181d99('0x11')][_0x271f06]}:{[Op['ne']]:null}}})['then'](function(_0x326128){const _0x5a399a=_0x181d99,_0x2db5e2=moment()[_0x5a399a('0x6d')](_0x5a399a('0x2e'));for(let _0x428c66=0x0,_0x200483=_0x326128[_0x5a399a('0x73')];_0x428c66<_0x200483;_0x428c66+=0x1){_0x326128[_0x428c66][_0x5a399a('0x66')]({'exitAt':_0x2db5e2});}});for(let _0x16eab0=0x0;_0x16eab0<_0x2a10cd['body'][_0x181d99('0x11')][_0x271f06][_0x181d99('0x73')];_0x16eab0+=0x1){db[_0x181d99('0x2a')][_0x181d99('0x13')]({'where':{'channel':_0x271f06,'membername':_0x2a10cd[_0x181d99('0x4f')][_0x181d99('0x1a')],'type':_0x181d99('0x14'),'uniqueid':_0x2a10cd[_0x181d99('0x3c')][_0x181d99('0x11')][_0x271f06][_0x16eab0],'exitAt':null},'defaults':{'channel':_0x271f06,'membername':_0x2a10cd[_0x181d99('0x4f')][_0x181d99('0x1a')],'interface':_['isNil'](_0x2a10cd['user'][_0x181d99('0x42')])?util[_0x181d99('0x6d')]('SIP/%s',_0x2a10cd[_0x181d99('0x4f')][_0x181d99('0x1a')]):_0x2a10cd[_0x181d99('0x4f')][_0x181d99('0x42')],'type':_0x181d99('0x14'),'enterAt':moment()[_0x181d99('0x6d')](_0x181d99('0x2e')),'role':'agent','internal':_0x2a10cd[_0x181d99('0x4f')][_0x181d99('0x3')],'uniqueid':_0x2a10cd[_0x181d99('0x3c')][_0x181d99('0x11')][_0x271f06][_0x16eab0]}});}}}return respondWithRpcPromise(_0x181d99('0x64'),{'id':_0x2a10cd[_0x181d99('0x7b')]['id'],'capacity':_0x2a10cd[_0x181d99('0x3c')][_0x181d99('0x28')]},routingClient)['then'](respondWithResult(_0x5eb801,null))['catch'](handleError(_0x5eb801,null));},exports[_0x433ccd('0x35')]=function(_0x58f0eb,_0x1b7b5b){const _0x4d6e3c=_0x433ccd;return respondWithRpcPromise(_0x4d6e3c('0x5f'),_0x58f0eb[_0x4d6e3c('0x47')])['then'](respondWithResult(_0x1b7b5b,null))[_0x4d6e3c('0x52')](handleError(_0x1b7b5b,null));},exports[_0x433ccd('0x36')]=function(_0x318731,_0x5c0119){const _0x2778a6=_0x433ccd;return respondWithRpcPromise(_0x2778a6('0x6'),_0x318731[_0x2778a6('0x47')])[_0x2778a6('0x27')](respondWithResult(_0x5c0119,null))[_0x2778a6('0x52')](handleError(_0x5c0119,null));},exports[_0x433ccd('0x10')]=function(_0x138123,_0x3c5748){const _0x401985=_0x433ccd;return respondWithRpcPromise(_0x401985('0xd'),_0x138123[_0x401985('0x47')])[_0x401985('0x27')](respondWithResult(_0x3c5748,null))[_0x401985('0x52')](handleError(_0x3c5748,null));},exports[_0x433ccd('0x48')]=function(_0x34a952,_0x3a795b){const _0x4dc5b8=_0x433ccd;return respondWithRpcPromise('ChatQueues',_0x34a952['query'],routingClient)[_0x4dc5b8('0x27')](respondWithResult(_0x3a795b,null))[_0x4dc5b8('0x52')](handleError(_0x3a795b,null));},exports['showChatQueues']=function(_0x3b254e,_0x3a9903){const _0x402371=_0x433ccd;return respondWithRpcPromise('ChatQueues',_0x3b254e[_0x402371('0x47')],routingClient)['then'](findById(_0x3b254e[_0x402371('0x7b')]['id']))['then'](respondWithResult(_0x3a9903,null))[_0x402371('0x52')](handleError(_0x3a9903,null));},exports[_0x433ccd('0x4a')]=function(_0x10491b,_0x548cd7){const _0x1e9c6e=_0x433ccd;return respondWithRpcPromise(_0x1e9c6e('0x5e'),_0x10491b['query'],routingClient)[_0x1e9c6e('0x27')](respondWithResult(_0x548cd7,null))[_0x1e9c6e('0x52')](handleError(_0x548cd7,null));},exports[_0x433ccd('0x78')]=function(_0x35fde1,_0x3f8490){const _0x4c66c2=_0x433ccd;return respondWithRpcPromise(_0x4c66c2('0x5e'),_0x35fde1['query'],routingClient)[_0x4c66c2('0x27')](findById(_0x35fde1[_0x4c66c2('0x7b')]['id']))[_0x4c66c2('0x27')](respondWithResult(_0x3f8490,null))[_0x4c66c2('0x52')](handleError(_0x3f8490,null));},exports[_0x433ccd('0x6c')]=function(_0x3f9963,_0x365c10){const _0xd88115=_0x433ccd;return respondWithRpcPromise('MailAccounts',_0x3f9963['query'],mailClient)[_0xd88115('0x27')](respondWithResult(_0x365c10,null))[_0xd88115('0x52')](handleError(_0x365c10,null));},exports[_0x433ccd('0x56')]=function(_0x2143e1,_0xa10fe){const _0x85d086=_0x433ccd;return respondWithRpcPromise(_0x85d086('0x7e'),_0x2143e1['query'],routingClient)[_0x85d086('0x27')](respondWithResult(_0xa10fe,null))[_0x85d086('0x52')](handleError(_0xa10fe,null));},exports['showOpenchannelQueues']=function(_0x18c8fc,_0x5272cb){const _0x13af09=_0x433ccd;return respondWithRpcPromise('OpenchannelQueues',_0x18c8fc['query'],routingClient)[_0x13af09('0x27')](findById(_0x18c8fc[_0x13af09('0x7b')]['id']))[_0x13af09('0x27')](respondWithResult(_0x5272cb,null))[_0x13af09('0x52')](handleError(_0x5272cb,null));},exports[_0x433ccd('0x5a')]=function(_0x3d5730,_0x28bea7){const _0x46067e=_0x433ccd;return respondWithRpcPromise(_0x46067e('0x67'),_0x3d5730['query'],routingClient)[_0x46067e('0x27')](respondWithResult(_0x28bea7,null))[_0x46067e('0x52')](handleError(_0x28bea7,null));},exports[_0x433ccd('0x51')]=function(_0x1614fd,_0x233612){const _0x4c8d5d=_0x433ccd;return respondWithRpcPromise('SmsQueues',_0x1614fd['query'],routingClient)[_0x4c8d5d('0x27')](findById(_0x1614fd[_0x4c8d5d('0x7b')]['id']))[_0x4c8d5d('0x27')](respondWithResult(_0x233612,null))[_0x4c8d5d('0x52')](handleError(_0x233612,null));},exports['whatsappQueues']=function(_0x3b82d0,_0x2096b2){const _0x5e3608=_0x433ccd;return respondWithRpcPromise(_0x5e3608('0x3b'),_0x3b82d0[_0x5e3608('0x47')],routingClient)[_0x5e3608('0x27')](respondWithResult(_0x2096b2,null))['catch'](handleError(_0x2096b2,null));},exports[_0x433ccd('0x21')]=function(_0x3cd107,_0x57ada0){const _0x562857=_0x433ccd;return respondWithRpcPromise(_0x562857('0x3b'),_0x3cd107[_0x562857('0x47')],routingClient)['then'](findById(_0x3cd107[_0x562857('0x7b')]['id']))[_0x562857('0x27')](respondWithResult(_0x57ada0,null))[_0x562857('0x52')](handleError(_0x57ada0,null));},exports[_0x433ccd('0x4c')]=function(_0x575fc4,_0x5f1a21){const _0x45ccbf=_0x433ccd;return respondWithRpcPromise(_0x45ccbf('0x77'),_0x575fc4[_0x45ccbf('0x47')],routingClient)[_0x45ccbf('0x27')](respondWithResult(_0x5f1a21,null))[_0x45ccbf('0x52')](handleError(_0x5f1a21,null));},exports[_0x433ccd('0x44')]=function(_0x27892c,_0xa94836){const _0x3c39d6=_0x433ccd;return respondWithRpcPromise('FaxQueues',_0x27892c['query'],routingClient)['then'](findById(_0x27892c['params']['id']))[_0x3c39d6('0x27')](respondWithResult(_0xa94836,null))['catch'](handleError(_0xa94836,null));},exports[_0x433ccd('0x8')]=function(_0x3d016c,_0x26d954){const _0x226bad=_0x433ccd;return respondWithRpcPromise(_0x226bad('0x2b'),_0x3d016c[_0x226bad('0x47')])['then'](respondWithResult(_0x26d954,null))[_0x226bad('0x52')](handleError(_0x26d954,null));},exports[_0x433ccd('0x4e')]=function(_0x5ba4aa,_0x59efa7){const _0x27c033=_0x433ccd;return respondWithRpcPromise('ChatQueuesWaitingInteractions',_0x5ba4aa[_0x27c033('0x47')],routingClient)[_0x27c033('0x27')](respondWithResult(_0x59efa7,null))[_0x27c033('0x52')](handleError(_0x59efa7,null));},exports[_0x433ccd('0x34')]=function(_0x5e17a4,_0x3ac777){const _0x508ef2=_0x433ccd;return respondWithRpcPromise(_0x508ef2('0x6b'),_0x5e17a4[_0x508ef2('0x47')],routingClient)['then'](respondWithResult(_0x3ac777,null))[_0x508ef2('0x52')](handleError(_0x3ac777,null));},exports[_0x433ccd('0x12')]=function(_0x80d98e,_0x38f7a9){const _0x26415d=_0x433ccd;return respondWithRpcPromise(_0x26415d('0x75'),_0x80d98e[_0x26415d('0x47')],routingClient)[_0x26415d('0x27')](respondWithResult(_0x38f7a9,null))[_0x26415d('0x52')](handleError(_0x38f7a9,null));},exports[_0x433ccd('0x33')]=function(_0x1852cd,_0x46bf1f){const _0x66ba92=_0x433ccd;return respondWithRpcPromise(_0x66ba92('0x75'),_0x1852cd[_0x66ba92('0x47')],routingClient)[_0x66ba92('0x27')](function(_0x1ab28c){const _0x2c0b16=_0x66ba92;if(_0x1852cd[_0x2c0b16('0x47')]['type']!==undefined){const _0x34c38d=_(_0x1ab28c['rows'])[_0x2c0b16('0x3d')]([_0x1852cd['query'][_0x2c0b16('0x5c')],_0x1852cd[_0x2c0b16('0x7b')]['id']])[_0x2c0b16('0x58')](_0x2c0b16('0x19'))[_0x2c0b16('0x6e')]()[_0x2c0b16('0x32')]();return _0x1ab28c[_0x2c0b16('0x22')][_0x2c0b16('0x3d')](function(_0x4d4563){const _0x50bcd5=_0x2c0b16;return _0x34c38d[_0x50bcd5('0x2c')](_0x4d4563[_0x50bcd5('0x19')])>-0x1;});}else return _0x1ab28c[_0x2c0b16('0x22')]['filter'](function(_0x3493cf){const _0x262d8d=_0x2c0b16;return _0x3493cf[_0x262d8d('0x19')]===parseInt(_0x1852cd[_0x262d8d('0x7b')]['id']);});})[_0x66ba92('0x27')](respondWithResult(_0x46bf1f,null))['catch'](handleError(_0x46bf1f,null));},exports[_0x433ccd('0x30')]=function(_0x27eca9,_0xd6a394){const _0x4b142e=_0x433ccd;return respondWithRpcPromise(_0x4b142e('0x61'),_0x27eca9[_0x4b142e('0x47')],routingClient)[_0x4b142e('0x27')](respondWithResult(_0xd6a394,null))['catch'](handleError(_0xd6a394,null));},exports[_0x433ccd('0x38')]=function(_0x2e96eb,_0x273244){const _0x3c638c=_0x433ccd;return respondWithRpcPromise('WhatsappQueuesWaitingInteractions',_0x2e96eb[_0x3c638c('0x47')],routingClient)[_0x3c638c('0x27')](respondWithResult(_0x273244,null))[_0x3c638c('0x52')](handleError(_0x273244,null));},exports['faxQueuesWaitingInteractions']=function(_0x45e76b,_0x50916a){const _0x4599b1=_0x433ccd;return respondWithRpcPromise(_0x4599b1('0x41'),_0x45e76b[_0x4599b1('0x47')],routingClient)[_0x4599b1('0x27')](respondWithResult(_0x50916a,null))[_0x4599b1('0x52')](handleError(_0x50916a,null));},exports['queueNotify']=function(_0x8acba9){return function(_0x442096,_0x51d3ec){const _0x5d4ca8=a527_0x2524;let _0x43e70b,_0x1efc11;const _0x386522=_['capitalize'](_0x8acba9),_0x4a86ad=_0x8acba9===_0x5d4ca8('0x69')?'Website':'Account';return db[_0x386522+_0x5d4ca8('0x26')][_0x5d4ca8('0x24')]({'raw':!![],'where':{'id':_0x442096[_0x5d4ca8('0x7b')]['id']}})[_0x5d4ca8('0x27')](function(_0x71f2ac){const _0x16100b=_0x5d4ca8;if(_[_0x16100b('0x72')](_0x71f2ac))throw new Error(_0x386522+'\x20Queue\x20not\x20found');return _0x43e70b=_0x71f2ac,db[_0x386522+'Message'][_0x16100b('0x24')]({'where':{'id':_0x442096[_0x16100b('0x3c')][_0x16100b('0x4')]},'include':[{'model':db[_0x386522+'Interaction'],'as':'Interaction'},{'model':db[_0x386522+_0x4a86ad],'as':'Account'}]});})[_0x5d4ca8('0x27')](function(_0xc6e0bd){const _0x3dc069=_0x5d4ca8;if(_[_0x3dc069('0x72')](_0xc6e0bd))throw new Error(_0x386522+_0x3dc069('0x76'));return _0x1efc11=_0xc6e0bd,_0xc6e0bd[_0x3dc069('0x66')]({'read':0x0,'readAt':null,'UserId':null});})[_0x5d4ca8('0x27')](function(){const _0x4e58a0=_0x5d4ca8,_0x188229={'uniqueid':_0x8acba9+'.'+_0x1efc11['id']+'.'+_0x1efc11[_0x4e58a0('0x29')]['id'],'FromUserId':_0x442096[_0x4e58a0('0x4f')]['id'],'type':'queue'};return _0x188229[_0x386522+_0x4e58a0('0x62')]=_0x1efc11['id'],_0x188229[_0x386522+_0x4e58a0('0x54')]=_0x1efc11[_0x4e58a0('0x29')]['id'],_0x188229[_0x4e58a0('0x3a')+_0x386522+_0x4a86ad+'Id']=_0x1efc11[_0x4e58a0('0x1d')]['id'],_0x188229['To'+_0x386522+'QueueId']=_0x43e70b['id'],db[_0x386522+_0x4e58a0('0xb')][_0x4e58a0('0x65')](_0x188229);})[_0x5d4ca8('0x27')](function(){const _0x578de0=_0x5d4ca8;return respondWithRpcPromise(_0x578de0('0x4d'),{'channel':_0x8acba9,'interaction':_0x1efc11[_0x578de0('0x29')],'message':_0x1efc11,'account':_0x1efc11[_0x578de0('0x1d')],'applications':[{'id':0x0,'priority':0x1,'app':_0x578de0('0x18'),'appdata':_0x43e70b['name']+','+(_0x1efc11[_0x578de0('0x1d')]['queueTransferTimeout']||0x12c),'interval':_0x578de0('0x71')}]},routingClient);})[_0x5d4ca8('0x27')](respondWithResult(_0x51d3ec,null))[_0x5d4ca8('0x52')](handleError(_0x51d3ec,null));};},exports['agentNotify']=function(_0x2703c6,_0xd5d054){const _0x4c1323=_0x433ccd;let _0x31f35d,_0x5d59d0;if(_[_0x4c1323('0x72')](_0x2703c6['body'][_0x4c1323('0x43')]))throw new Error(_0x4c1323('0x6a'));const _0x221ea9=_0x2703c6['body'][_0x4c1323('0x43')],_0x51f1e2=_[_0x4c1323('0x1f')](_0x221ea9),_0x15c6ef=_0x221ea9===_0x4c1323('0x69')?_0x4c1323('0x2f'):_0x4c1323('0x1d');return db[_0x4c1323('0x31')][_0x4c1323('0x24')]({'raw':!![],'where':{'id':_0x2703c6['params']['id'],'role':_0x4c1323('0x46')}})[_0x4c1323('0x27')](function(_0x2270fa){const _0x5b920b=_0x4c1323;if(_[_0x5b920b('0x72')](_0x2270fa))throw new Error(_0x5b920b('0x1e'));return _0x31f35d=_0x2270fa,db[_0x51f1e2+_0x5b920b('0x7')]['findOne']({'where':{'id':_0x2703c6[_0x5b920b('0x3c')]['messageId']},'include':[{'model':db[_0x51f1e2+'Interaction'],'as':'Interaction'},{'model':db[_0x51f1e2+_0x15c6ef],'as':_0x5b920b('0x1d')}]});})[_0x4c1323('0x27')](function(_0x4fa9b1){const _0x1b1cc8=_0x4c1323;if(_['isNil'](_0x4fa9b1))throw new Error(_0x51f1e2+_0x1b1cc8('0x76'));return _0x5d59d0=_0x4fa9b1,_0x4fa9b1['update']({'read':0x0,'readAt':null,'UserId':null});})['then'](function(){const _0x3b4ac2=_0x4c1323,_0x62f737={'uniqueid':_0x221ea9+'.'+_0x5d59d0['id']+'.'+_0x5d59d0['Interaction']['id'],'FromUserId':_0x2703c6['user']['id'],'type':'queue','ToUserId':_0x31f35d['id']};return _0x62f737[_0x51f1e2+_0x3b4ac2('0x62')]=_0x5d59d0['id'],_0x62f737[_0x51f1e2+_0x3b4ac2('0x54')]=_0x5d59d0['Interaction']['id'],_0x62f737[_0x3b4ac2('0x3a')+_0x51f1e2+_0x15c6ef+'Id']=_0x5d59d0[_0x3b4ac2('0x1d')]['id'],db[_0x51f1e2+_0x3b4ac2('0xb')][_0x3b4ac2('0x65')](_0x62f737);})[_0x4c1323('0x27')](function(){const _0x5d09e7=_0x4c1323;return respondWithRpcPromise('Start',{'channel':_0x221ea9,'interaction':_0x5d59d0[_0x5d09e7('0x29')],'message':_0x5d59d0,'account':_0x5d59d0[_0x5d09e7('0x1d')],'applications':[{'id':0x0,'priority':0x1,'app':_0x5d09e7('0x46'),'appdata':_0x31f35d[_0x5d09e7('0x1a')]+','+(_0x5d59d0[_0x5d09e7('0x1d')][_0x5d09e7('0x63')]||0x12c),'interval':_0x5d09e7('0x71')}]},routingClient);})[_0x4c1323('0x27')](respondWithResult(_0xd5d054,null))[_0x4c1323('0x52')](handleError(_0xd5d054,null));}; \ No newline at end of file +const a527_0x49b1=['name','notIn','internal','Trunks','VoiceQueuesChannelHangup','sendStatus','WhatsappQueues','rows','messageId','Queue','filter','../../config/logger','queueTransferTimeout','WhatsappQueuesWaitingInteractions','agentTransferTimeout','indexOf','outbound','AgentCapacity','mailQueuesWaitingInteractions','whatsappQueuesWaitingInteractions','Website','mailQueues','SIP/%s','voiceQueues','chatQueues','stack','VoiceChannelMixMonitor','queue_id','voiceQueuesChannelRedirect','voiceQueuesChannelHangup','OutboundChannels','ChatQueues','SmsQueuesWaitingInteractions','smsQueues','FaxQueues','Telephones','merge','catch','create','request','length','VoiceChannels','client','Outbound','User','user','then','agentNotify','outboundChannels','Campaigns','*,*,*,*','api','trunks','Message','type','interaction','MessageId','openchannelQueuesIdWaitingInteractions','json','chat','util','OpenchannelQueues','findAll','body','result','chatQueuesWaitingInteractions','format','Channel\x20field\x20is\x20mandatory','query','agents','OpenchannelQueuesWaitingInteractions','openchannelQueuesWaitingInteractions','VoiceQueues','SmsQueues','Agent\x20not\x20found','findOne','MailQueues','queue','showFaxQueues','capacity','telephones','showVoiceQueues','\x20Queue\x20not\x20found','Start','code','showOpenchannelQueues','params','voiceQueuesPreview','whatsappQueues','MailAccounts','faxAccounts','../../mysqldb','smsQueuesWaitingInteractions','InteractionId','faxQueuesWaitingInteractions','error','update','agent','showMailQueues','http','YYYY-MM-DD\x20HH:mm:ss','\x20Message\x20not\x20found','MailQueuesWaitingInteractions','voiceChannelMixMonitor','agentCapacity','TransferReport','message','INTERACTION','voiceQueuesChannel','VoiceQueuesChannels','VoiceChannelStopMixMonitor','channel','status','uniq','From','undefined','jayson/promise','mailAccounts','QueueId','voiceQueuesChannels','value','interface','capitalize','FaxQueuesWaitingInteractions','isNil','Account','send','Interaction','find','campaigns','VoiceQueuesPreview','VoiceQueuesChannel'];(function(_0x499166,_0x49b1d6){const _0x5bfb7b=function(_0x36c39c){while(--_0x36c39c){_0x499166['push'](_0x499166['shift']());}};_0x5bfb7b(++_0x49b1d6);}(a527_0x49b1,0x12a));const a527_0x5bfb=function(_0x499166,_0x49b1d6){_0x499166=_0x499166-0x0;let _0x5bfb7b=a527_0x49b1[_0x499166];return _0x5bfb7b;};const _0xc5c125=a527_0x5bfb;'use strict';const moment=require('moment'),_=require('lodash'),util=require(_0xc5c125('0x1a')),db=require(_0xc5c125('0x39'))['db'],{Op}=require('sequelize'),logger=require(_0xc5c125('0x6d'))(_0xc5c125('0x11')),jayson=require(_0xc5c125('0x52')),amiClient=jayson[_0xc5c125('0x8')][_0xc5c125('0x41')]({'port':0x232a}),mailClient=jayson[_0xc5c125('0x8')][_0xc5c125('0x41')]({'port':0x232b}),routingClient=jayson['client']['http']({'port':0x232c});function respondWithRpcPromise(_0x36c39c,_0x35ac3c,_0x328f03){return new Promise(function(_0x5a65f9,_0x26192f){const _0x556665=a527_0x5bfb,_0x3164bb=_0x328f03?_0x328f03:amiClient;return _0x3164bb[_0x556665('0x5')](_0x36c39c,_0x35ac3c)['then'](function(_0x4c5bed){const _0x4bd6c4=_0x556665;if(_0x4c5bed['error']){if(_0x4c5bed[_0x4bd6c4('0x3d')][_0x4bd6c4('0x32')]===0x1f4)return _0x26192f(_0x4c5bed[_0x4bd6c4('0x3d')][_0x4bd6c4('0x48')]);return _0x5a65f9(_0x4c5bed[_0x4bd6c4('0x3d')][_0x4bd6c4('0x48')]);}else _0x5a65f9(_0x4c5bed[_0x4bd6c4('0x1e')]);})[_0x556665('0x3')](function(_0x4315ab){_0x26192f(_0x4315ab);});});}function respondWithResult(_0x498524,_0x177ed8){return _0x177ed8=_0x177ed8||0xc8,function(_0x5ddd2){const _0x49dbc8=a527_0x5bfb;if(_0x5ddd2)return _0x498524[_0x49dbc8('0x4e')](_0x177ed8)[_0x49dbc8('0x18')](_0x5ddd2);return _0x498524[_0x49dbc8('0x67')](0x194);};}function handleError(_0x304f07,_0x4b301e){return _0x4b301e=_0x4b301e||0x1f4,function(_0x1af45c){const _0x368770=a527_0x5bfb;logger[_0x368770('0x3d')](_0x1af45c[_0x368770('0x7b')]),_0x1af45c[_0x368770('0x62')]&&delete _0x1af45c[_0x368770('0x62')],_0x304f07[_0x368770('0x4e')](_0x4b301e)[_0x368770('0x5c')](_0x1af45c);};}function findById(_0x245617){return function(_0x82a9da){const _0x1e8300=a527_0x5bfb;if(!_[_0x1e8300('0x5a')](_0x245617)&&!_[_0x1e8300('0x5a')](_0x82a9da)&&!_[_0x1e8300('0x5a')](_0x82a9da['rows']))return _[_0x1e8300('0x5e')](_0x82a9da[_0x1e8300('0x69')],function(_0x158a10){return _0x158a10['id']==_0x245617;});return null;};}exports['voiceChannels']=function(_0x4119fa,_0x42a988){const _0x2dafc2=_0xc5c125;return respondWithRpcPromise(_0x2dafc2('0x7'),_0x4119fa[_0x2dafc2('0x22')])[_0x2dafc2('0xc')](respondWithResult(_0x42a988,null))[_0x2dafc2('0x3')](handleError(_0x42a988,null));},exports[_0xc5c125('0x45')]=function(_0x39d713,_0x286ccf){const _0x470a17=_0xc5c125;return respondWithRpcPromise(_0x470a17('0x7c'),_[_0x470a17('0x2')](_0x39d713['query'],_0x39d713[_0x470a17('0x34')]))[_0x470a17('0xc')](respondWithResult(_0x286ccf,null))[_0x470a17('0x3')](handleError(_0x286ccf,null));},exports['voiceChannelStopMixMonitor']=function(_0x3760de,_0x43f1cd){const _0x3bd5c5=_0xc5c125;return respondWithRpcPromise(_0x3bd5c5('0x4c'),_[_0x3bd5c5('0x2')](_0x3760de[_0x3bd5c5('0x22')],_0x3760de[_0x3bd5c5('0x34')]))[_0x3bd5c5('0xc')](respondWithResult(_0x43f1cd,null))[_0x3bd5c5('0x3')](handleError(_0x43f1cd,null));},exports[_0xc5c125('0x79')]=function(_0x2fc287,_0x47bcff){const _0x4aa7d3=_0xc5c125;return respondWithRpcPromise(_0x4aa7d3('0x26'),_0x2fc287[_0x4aa7d3('0x22')])[_0x4aa7d3('0xc')](respondWithResult(_0x47bcff,null))[_0x4aa7d3('0x3')](handleError(_0x47bcff,null));},exports[_0xc5c125('0x2f')]=function(_0x1d057c,_0x255a98){const _0x344cc4=_0xc5c125;return respondWithRpcPromise('VoiceQueues',_0x1d057c[_0x344cc4('0x22')])['then'](findById(_0x1d057c[_0x344cc4('0x34')]['id']))[_0x344cc4('0xc')](respondWithResult(_0x255a98,null))[_0x344cc4('0x3')](handleError(_0x255a98,null));},exports[_0xc5c125('0x35')]=function(_0x5b5ab9,_0x18a402){const _0x534b58=_0xc5c125;return respondWithRpcPromise(_0x534b58('0x60'),_[_0x534b58('0x2')](_0x5b5ab9[_0x534b58('0x22')],_0x5b5ab9[_0x534b58('0x34')]))['then'](respondWithResult(_0x18a402,null))[_0x534b58('0x3')](handleError(_0x18a402,null));},exports[_0xc5c125('0x55')]=function(_0x17cc2e,_0x1f010d){const _0x57aa7a=_0xc5c125;return respondWithRpcPromise(_0x57aa7a('0x4b'),_0x17cc2e[_0x57aa7a('0x22')])['then'](respondWithResult(_0x1f010d,null))[_0x57aa7a('0x3')](handleError(_0x1f010d,null));},exports[_0xc5c125('0x4a')]=function(_0x550195,_0x14f5ba){const _0x1b25ff=_0xc5c125;return respondWithRpcPromise(_0x1b25ff('0x61'),_[_0x1b25ff('0x2')](_0x550195['query'],_0x550195[_0x1b25ff('0x34')]))['then'](respondWithResult(_0x14f5ba,null))[_0x1b25ff('0x3')](handleError(_0x14f5ba,null));},exports[_0xc5c125('0x7f')]=function(_0x25445d,_0x310a0a){const _0x5844cf=_0xc5c125;return respondWithRpcPromise(_0x5844cf('0x66'),_[_0x5844cf('0x2')](_0x25445d['query'],_0x25445d[_0x5844cf('0x34')]))[_0x5844cf('0xc')](respondWithResult(_0x310a0a,null))['catch'](handleError(_0x310a0a,null));},exports[_0xc5c125('0x7e')]=function(_0x2a340b,_0x332e22){const _0x582389=_0xc5c125;return respondWithRpcPromise('VoiceQueuesChannelRedirect',_[_0x582389('0x2')](_0x2a340b[_0x582389('0x22')],_0x2a340b[_0x582389('0x34')]))[_0x582389('0xc')](respondWithResult(_0x332e22,null))[_0x582389('0x3')](handleError(_0x332e22,null));},exports[_0xc5c125('0x72')]=function(_0x5d9f93,_0xc0a653){const _0x9e9ea7=_0xc5c125;return respondWithRpcPromise(_0x9e9ea7('0x9'),_0x5d9f93[_0x9e9ea7('0x22')])[_0x9e9ea7('0xc')](respondWithResult(_0xc0a653,null))[_0x9e9ea7('0x3')](handleError(_0xc0a653,null));},exports[_0xc5c125('0xe')]=function(_0x4aeebd,_0x3c9805){const _0x3adb70=_0xc5c125;return respondWithRpcPromise(_0x3adb70('0x80'),_0x4aeebd[_0x3adb70('0x22')])[_0x3adb70('0xc')](respondWithResult(_0x3c9805,null))['catch'](handleError(_0x3c9805,null));},exports[_0xc5c125('0x23')]=function(_0x25c7d9,_0xa79995){const _0x47dd57=_0xc5c125;let _0x576369;return respondWithRpcPromise('Agents',_0x25c7d9[_0x47dd57('0x22')])[_0x47dd57('0xc')](function(_0x9e9a36){const _0x4f82f3=_0x47dd57;return _0x576369=_0x9e9a36,respondWithRpcPromise('Agents',_0x25c7d9[_0x4f82f3('0x22')],routingClient);})[_0x47dd57('0xc')](function(_0x147261){const _0x2839d2=_0x47dd57;return _[_0x2839d2('0x2')]({},_0x147261,_0x576369);})['then'](respondWithResult(_0xa79995,null))[_0x47dd57('0x3')](handleError(_0xa79995,null));},exports[_0xc5c125('0x46')]=function(_0x48d83e,_0x5039fe){const _0x411442=_0xc5c125;if(_0x48d83e['body']&&_0x48d83e['body'][_0x411442('0x15')]&&_0x48d83e['user']&&_0x48d83e[_0x411442('0xb')]['name'])for(const _0x3c945b in _0x48d83e[_0x411442('0x1d')][_0x411442('0x15')]){if(typeof _0x48d83e[_0x411442('0x1d')][_0x411442('0x15')][_0x3c945b]!==_0x411442('0x51')){db['MemberReport'][_0x411442('0x1c')]({'where':{'channel':_0x3c945b,'membername':_0x48d83e['user'][_0x411442('0x62')],'type':_0x411442('0x49'),'exitAt':null,'uniqueid':_0x48d83e[_0x411442('0x1d')][_0x411442('0x15')][_0x3c945b]&&_0x48d83e[_0x411442('0x1d')][_0x411442('0x15')][_0x3c945b][_0x411442('0x6')]?{[Op[_0x411442('0x63')]]:_0x48d83e[_0x411442('0x1d')][_0x411442('0x15')][_0x3c945b]}:{[Op['ne']]:null}}})[_0x411442('0xc')](function(_0x13bfb0){const _0x157e0a=_0x411442,_0x2958fe=moment()[_0x157e0a('0x20')](_0x157e0a('0x42'));for(let _0xb91276=0x0,_0x222ee3=_0x13bfb0['length'];_0xb91276<_0x222ee3;_0xb91276+=0x1){_0x13bfb0[_0xb91276][_0x157e0a('0x3e')]({'exitAt':_0x2958fe});}});for(let _0x21a2cb=0x0;_0x21a2cb<_0x48d83e[_0x411442('0x1d')]['interaction'][_0x3c945b][_0x411442('0x6')];_0x21a2cb+=0x1){db['MemberReport']['findOrCreate']({'where':{'channel':_0x3c945b,'membername':_0x48d83e[_0x411442('0xb')][_0x411442('0x62')],'type':'INTERACTION','uniqueid':_0x48d83e[_0x411442('0x1d')][_0x411442('0x15')][_0x3c945b][_0x21a2cb],'exitAt':null},'defaults':{'channel':_0x3c945b,'membername':_0x48d83e[_0x411442('0xb')][_0x411442('0x62')],'interface':_[_0x411442('0x5a')](_0x48d83e[_0x411442('0xb')]['interface'])?util[_0x411442('0x20')](_0x411442('0x78'),_0x48d83e[_0x411442('0xb')][_0x411442('0x62')]):_0x48d83e[_0x411442('0xb')][_0x411442('0x57')],'type':'INTERACTION','enterAt':moment()['format'](_0x411442('0x42')),'role':_0x411442('0x3f'),'internal':_0x48d83e[_0x411442('0xb')][_0x411442('0x64')],'uniqueid':_0x48d83e[_0x411442('0x1d')]['interaction'][_0x3c945b][_0x21a2cb]}});}}}return respondWithRpcPromise(_0x411442('0x73'),{'id':_0x48d83e[_0x411442('0x34')]['id'],'capacity':_0x48d83e[_0x411442('0x1d')][_0x411442('0x2d')]},routingClient)[_0x411442('0xc')](respondWithResult(_0x5039fe,null))[_0x411442('0x3')](handleError(_0x5039fe,null));},exports[_0xc5c125('0x2e')]=function(_0x300db8,_0x5b025e){const _0x5f17f0=_0xc5c125;return respondWithRpcPromise(_0x5f17f0('0x1'),_0x300db8['query'])['then'](respondWithResult(_0x5b025e,null))['catch'](handleError(_0x5b025e,null));},exports[_0xc5c125('0x12')]=function(_0xb83eb8,_0x4fe2de){const _0x3abd70=_0xc5c125;return respondWithRpcPromise(_0x3abd70('0x65'),_0xb83eb8[_0x3abd70('0x22')])[_0x3abd70('0xc')](respondWithResult(_0x4fe2de,null))[_0x3abd70('0x3')](handleError(_0x4fe2de,null));},exports[_0xc5c125('0x5f')]=function(_0x24024c,_0xdbde5a){const _0x325a90=_0xc5c125;return respondWithRpcPromise(_0x325a90('0xf'),_0x24024c[_0x325a90('0x22')])['then'](respondWithResult(_0xdbde5a,null))[_0x325a90('0x3')](handleError(_0xdbde5a,null));},exports[_0xc5c125('0x7a')]=function(_0x55e44e,_0x5e1d8c){const _0x358b7c=_0xc5c125;return respondWithRpcPromise(_0x358b7c('0x81'),_0x55e44e[_0x358b7c('0x22')],routingClient)[_0x358b7c('0xc')](respondWithResult(_0x5e1d8c,null))[_0x358b7c('0x3')](handleError(_0x5e1d8c,null));},exports['showChatQueues']=function(_0x44cc86,_0x35885c){const _0x29b259=_0xc5c125;return respondWithRpcPromise(_0x29b259('0x81'),_0x44cc86[_0x29b259('0x22')],routingClient)['then'](findById(_0x44cc86[_0x29b259('0x34')]['id']))[_0x29b259('0xc')](respondWithResult(_0x35885c,null))[_0x29b259('0x3')](handleError(_0x35885c,null));},exports[_0xc5c125('0x77')]=function(_0x515023,_0x4e36fe){const _0x2b877d=_0xc5c125;return respondWithRpcPromise(_0x2b877d('0x2a'),_0x515023[_0x2b877d('0x22')],routingClient)[_0x2b877d('0xc')](respondWithResult(_0x4e36fe,null))[_0x2b877d('0x3')](handleError(_0x4e36fe,null));},exports[_0xc5c125('0x40')]=function(_0x1951a2,_0x53ea69){const _0x4d0671=_0xc5c125;return respondWithRpcPromise('MailQueues',_0x1951a2[_0x4d0671('0x22')],routingClient)['then'](findById(_0x1951a2[_0x4d0671('0x34')]['id']))[_0x4d0671('0xc')](respondWithResult(_0x53ea69,null))[_0x4d0671('0x3')](handleError(_0x53ea69,null));},exports[_0xc5c125('0x53')]=function(_0x81fcf,_0x4c9858){const _0xe9f15f=_0xc5c125;return respondWithRpcPromise(_0xe9f15f('0x37'),_0x81fcf[_0xe9f15f('0x22')],mailClient)['then'](respondWithResult(_0x4c9858,null))[_0xe9f15f('0x3')](handleError(_0x4c9858,null));},exports['openchannelQueues']=function(_0x383f9f,_0x45f3e8){const _0x533ebd=_0xc5c125;return respondWithRpcPromise(_0x533ebd('0x1b'),_0x383f9f[_0x533ebd('0x22')],routingClient)[_0x533ebd('0xc')](respondWithResult(_0x45f3e8,null))[_0x533ebd('0x3')](handleError(_0x45f3e8,null));},exports[_0xc5c125('0x33')]=function(_0x104b51,_0x720ffd){const _0x4f50b0=_0xc5c125;return respondWithRpcPromise(_0x4f50b0('0x1b'),_0x104b51['query'],routingClient)[_0x4f50b0('0xc')](findById(_0x104b51[_0x4f50b0('0x34')]['id']))['then'](respondWithResult(_0x720ffd,null))[_0x4f50b0('0x3')](handleError(_0x720ffd,null));},exports[_0xc5c125('0x83')]=function(_0x13675d,_0x479692){const _0x4f422f=_0xc5c125;return respondWithRpcPromise('SmsQueues',_0x13675d[_0x4f422f('0x22')],routingClient)[_0x4f422f('0xc')](respondWithResult(_0x479692,null))[_0x4f422f('0x3')](handleError(_0x479692,null));},exports['showSmsQueues']=function(_0x21048d,_0x233314){const _0x5c1fbd=_0xc5c125;return respondWithRpcPromise(_0x5c1fbd('0x27'),_0x21048d[_0x5c1fbd('0x22')],routingClient)[_0x5c1fbd('0xc')](findById(_0x21048d[_0x5c1fbd('0x34')]['id']))['then'](respondWithResult(_0x233314,null))[_0x5c1fbd('0x3')](handleError(_0x233314,null));},exports[_0xc5c125('0x36')]=function(_0x22f76e,_0x5258c7){const _0x2322e4=_0xc5c125;return respondWithRpcPromise(_0x2322e4('0x68'),_0x22f76e['query'],routingClient)[_0x2322e4('0xc')](respondWithResult(_0x5258c7,null))[_0x2322e4('0x3')](handleError(_0x5258c7,null));},exports['showWhatsappQueues']=function(_0xb79089,_0x111043){const _0x19da77=_0xc5c125;return respondWithRpcPromise('WhatsappQueues',_0xb79089[_0x19da77('0x22')],routingClient)['then'](findById(_0xb79089[_0x19da77('0x34')]['id']))['then'](respondWithResult(_0x111043,null))['catch'](handleError(_0x111043,null));},exports['faxQueues']=function(_0x3b639d,_0x4c8ece){return respondWithRpcPromise('FaxQueues',_0x3b639d['query'],routingClient)['then'](respondWithResult(_0x4c8ece,null))['catch'](handleError(_0x4c8ece,null));},exports[_0xc5c125('0x2c')]=function(_0x467715,_0x558639){const _0x4f6388=_0xc5c125;return respondWithRpcPromise(_0x4f6388('0x0'),_0x467715[_0x4f6388('0x22')],routingClient)[_0x4f6388('0xc')](findById(_0x467715[_0x4f6388('0x34')]['id']))[_0x4f6388('0xc')](respondWithResult(_0x558639,null))[_0x4f6388('0x3')](handleError(_0x558639,null));},exports[_0xc5c125('0x38')]=function(_0x1ba4b2,_0x4a08d5){const _0x57d0c6=_0xc5c125;return respondWithRpcPromise('FaxAccounts',_0x1ba4b2[_0x57d0c6('0x22')])[_0x57d0c6('0xc')](respondWithResult(_0x4a08d5,null))[_0x57d0c6('0x3')](handleError(_0x4a08d5,null));},exports[_0xc5c125('0x1f')]=function(_0x3b160e,_0x5dff43){const _0x43da44=_0xc5c125;return respondWithRpcPromise('ChatQueuesWaitingInteractions',_0x3b160e['query'],routingClient)[_0x43da44('0xc')](respondWithResult(_0x5dff43,null))[_0x43da44('0x3')](handleError(_0x5dff43,null));},exports[_0xc5c125('0x74')]=function(_0x4310a5,_0x2fad7d){const _0x3cf971=_0xc5c125;return respondWithRpcPromise(_0x3cf971('0x44'),_0x4310a5[_0x3cf971('0x22')],routingClient)[_0x3cf971('0xc')](respondWithResult(_0x2fad7d,null))[_0x3cf971('0x3')](handleError(_0x2fad7d,null));},exports[_0xc5c125('0x25')]=function(_0x264cb3,_0x1b2507){const _0x72f073=_0xc5c125;return respondWithRpcPromise(_0x72f073('0x24'),_0x264cb3['query'],routingClient)[_0x72f073('0xc')](respondWithResult(_0x1b2507,null))[_0x72f073('0x3')](handleError(_0x1b2507,null));},exports[_0xc5c125('0x17')]=function(_0x590d8b,_0x313f27){const _0x5c7730=_0xc5c125;return respondWithRpcPromise(_0x5c7730('0x24'),_0x590d8b['query'],routingClient)[_0x5c7730('0xc')](function(_0x5e32bc){const _0x5cf7f8=_0x5c7730;if(_0x590d8b[_0x5cf7f8('0x22')][_0x5cf7f8('0x14')]!==undefined){const _0x62cd0d=_(_0x5e32bc[_0x5cf7f8('0x69')])[_0x5cf7f8('0x6c')]([_0x590d8b[_0x5cf7f8('0x22')][_0x5cf7f8('0x14')],_0x590d8b[_0x5cf7f8('0x34')]['id']])['map'](_0x5cf7f8('0x7d'))[_0x5cf7f8('0x4f')]()[_0x5cf7f8('0x56')]();return _0x5e32bc[_0x5cf7f8('0x69')][_0x5cf7f8('0x6c')](function(_0x28e985){const _0x6c40d=_0x5cf7f8;return _0x62cd0d[_0x6c40d('0x71')](_0x28e985[_0x6c40d('0x7d')])>-0x1;});}else return _0x5e32bc[_0x5cf7f8('0x69')][_0x5cf7f8('0x6c')](function(_0xdf9310){const _0x49bd6d=_0x5cf7f8;return _0xdf9310['queue_id']===parseInt(_0x590d8b[_0x49bd6d('0x34')]['id']);});})['then'](respondWithResult(_0x313f27,null))['catch'](handleError(_0x313f27,null));},exports[_0xc5c125('0x3a')]=function(_0x425718,_0x5b5e8d){const _0x572acf=_0xc5c125;return respondWithRpcPromise(_0x572acf('0x82'),_0x425718[_0x572acf('0x22')],routingClient)[_0x572acf('0xc')](respondWithResult(_0x5b5e8d,null))[_0x572acf('0x3')](handleError(_0x5b5e8d,null));},exports[_0xc5c125('0x75')]=function(_0x22408d,_0x394a55){const _0x15bdc5=_0xc5c125;return respondWithRpcPromise(_0x15bdc5('0x6f'),_0x22408d['query'],routingClient)[_0x15bdc5('0xc')](respondWithResult(_0x394a55,null))[_0x15bdc5('0x3')](handleError(_0x394a55,null));},exports[_0xc5c125('0x3c')]=function(_0x3523b1,_0x35c342){const _0xeab229=_0xc5c125;return respondWithRpcPromise(_0xeab229('0x59'),_0x3523b1['query'],routingClient)[_0xeab229('0xc')](respondWithResult(_0x35c342,null))[_0xeab229('0x3')](handleError(_0x35c342,null));},exports['queueNotify']=function(_0x1b0886){return function(_0x257730,_0x4ab280){const _0xfff766=a527_0x5bfb;let _0x472130,_0x2a5551;const _0x3af610=_['capitalize'](_0x1b0886),_0x1bf015=_0x1b0886===_0xfff766('0x19')?_0xfff766('0x76'):'Account';return db[_0x3af610+_0xfff766('0x6b')][_0xfff766('0x29')]({'raw':!![],'where':{'id':_0x257730['params']['id']}})['then'](function(_0x5e4e7f){const _0x4c52a7=_0xfff766;if(_[_0x4c52a7('0x5a')](_0x5e4e7f))throw new Error(_0x3af610+_0x4c52a7('0x30'));return _0x472130=_0x5e4e7f,db[_0x3af610+_0x4c52a7('0x13')][_0x4c52a7('0x29')]({'where':{'id':_0x257730[_0x4c52a7('0x1d')][_0x4c52a7('0x6a')]},'include':[{'model':db[_0x3af610+_0x4c52a7('0x5d')],'as':'Interaction'},{'model':db[_0x3af610+_0x1bf015],'as':_0x4c52a7('0x5b')}]});})[_0xfff766('0xc')](function(_0x3b527f){const _0xe168b3=_0xfff766;if(_[_0xe168b3('0x5a')](_0x3b527f))throw new Error(_0x3af610+_0xe168b3('0x43'));return _0x2a5551=_0x3b527f,_0x3b527f[_0xe168b3('0x3e')]({'read':0x0,'readAt':null,'UserId':null});})[_0xfff766('0xc')](function(){const _0x1a8958=_0xfff766,_0x29d480={'uniqueid':_0x1b0886+'.'+_0x2a5551['id']+'.'+_0x2a5551['Interaction']['id'],'FromUserId':_0x257730[_0x1a8958('0xb')]['id'],'type':_0x1a8958('0x2b')};return _0x29d480[_0x3af610+_0x1a8958('0x16')]=_0x2a5551['id'],_0x29d480[_0x3af610+'InteractionId']=_0x2a5551[_0x1a8958('0x5d')]['id'],_0x29d480[_0x1a8958('0x50')+_0x3af610+_0x1bf015+'Id']=_0x2a5551[_0x1a8958('0x5b')]['id'],_0x29d480['To'+_0x3af610+_0x1a8958('0x54')]=_0x472130['id'],db[_0x3af610+_0x1a8958('0x47')][_0x1a8958('0x4')](_0x29d480);})['then'](function(){const _0x1c1360=_0xfff766;return respondWithRpcPromise(_0x1c1360('0x31'),{'channel':_0x1b0886,'interaction':_0x2a5551[_0x1c1360('0x5d')],'message':_0x2a5551,'account':_0x2a5551[_0x1c1360('0x5b')],'applications':[{'id':0x0,'priority':0x1,'app':_0x1c1360('0x2b'),'appdata':_0x472130['name']+','+(_0x2a5551[_0x1c1360('0x5b')][_0x1c1360('0x6e')]||0x12c),'interval':'*,*,*,*'}]},routingClient);})[_0xfff766('0xc')](respondWithResult(_0x4ab280,null))['catch'](handleError(_0x4ab280,null));};},exports[_0xc5c125('0xd')]=function(_0x51a44d,_0x4ff2dc){const _0x39d52d=_0xc5c125;let _0x26abd2,_0x1d9d2c;if(_[_0x39d52d('0x5a')](_0x51a44d[_0x39d52d('0x1d')]['channel']))throw new Error(_0x39d52d('0x21'));const _0x4c68fc=_0x51a44d[_0x39d52d('0x1d')][_0x39d52d('0x4d')],_0x566c8c=_[_0x39d52d('0x58')](_0x4c68fc),_0x5ba2c7=_0x4c68fc===_0x39d52d('0x19')?'Website':_0x39d52d('0x5b');return db[_0x39d52d('0xa')]['findOne']({'raw':!![],'where':{'id':_0x51a44d[_0x39d52d('0x34')]['id'],'role':_0x39d52d('0x3f')}})[_0x39d52d('0xc')](function(_0x343568){const _0x390428=_0x39d52d;if(_[_0x390428('0x5a')](_0x343568))throw new Error(_0x390428('0x28'));return _0x26abd2=_0x343568,db[_0x566c8c+_0x390428('0x13')][_0x390428('0x29')]({'where':{'id':_0x51a44d['body'][_0x390428('0x6a')]},'include':[{'model':db[_0x566c8c+_0x390428('0x5d')],'as':_0x390428('0x5d')},{'model':db[_0x566c8c+_0x5ba2c7],'as':_0x390428('0x5b')}]});})[_0x39d52d('0xc')](function(_0x5aa1e5){const _0x307275=_0x39d52d;if(_[_0x307275('0x5a')](_0x5aa1e5))throw new Error(_0x566c8c+_0x307275('0x43'));return _0x1d9d2c=_0x5aa1e5,_0x5aa1e5[_0x307275('0x3e')]({'read':0x0,'readAt':null,'UserId':null});})[_0x39d52d('0xc')](function(){const _0x389092=_0x39d52d,_0x2cb674={'uniqueid':_0x4c68fc+'.'+_0x1d9d2c['id']+'.'+_0x1d9d2c[_0x389092('0x5d')]['id'],'FromUserId':_0x51a44d[_0x389092('0xb')]['id'],'type':_0x389092('0x2b'),'ToUserId':_0x26abd2['id']};return _0x2cb674[_0x566c8c+_0x389092('0x16')]=_0x1d9d2c['id'],_0x2cb674[_0x566c8c+_0x389092('0x3b')]=_0x1d9d2c[_0x389092('0x5d')]['id'],_0x2cb674['From'+_0x566c8c+_0x5ba2c7+'Id']=_0x1d9d2c[_0x389092('0x5b')]['id'],db[_0x566c8c+_0x389092('0x47')][_0x389092('0x4')](_0x2cb674);})['then'](function(){const _0x1f62c2=_0x39d52d;return respondWithRpcPromise(_0x1f62c2('0x31'),{'channel':_0x4c68fc,'interaction':_0x1d9d2c['Interaction'],'message':_0x1d9d2c,'account':_0x1d9d2c['Account'],'applications':[{'id':0x0,'priority':0x1,'app':_0x1f62c2('0x3f'),'appdata':_0x26abd2['name']+','+(_0x1d9d2c[_0x1f62c2('0x5b')][_0x1f62c2('0x70')]||0x12c),'interval':_0x1f62c2('0x10')}]},routingClient);})[_0x39d52d('0xc')](respondWithResult(_0x4ff2dc,null))[_0x39d52d('0x3')](handleError(_0x4ff2dc,null));}; \ No newline at end of file diff --git a/server/api/schedule/index.js b/server/api/schedule/index.js index 47da85f..1ab708a 100644 --- a/server/api/schedule/index.js +++ b/server/api/schedule/index.js @@ -1 +1 @@ -const a528_0x5bf2=['Router','isAuthenticated','express','/:id','put','delete','create','run','post','update','exports','index','/:id/run','get'];(function(_0x3db258,_0x5bf23c){const _0x519e74=function(_0x57b4b4){while(--_0x57b4b4){_0x3db258['push'](_0x3db258['shift']());}};_0x519e74(++_0x5bf23c);}(a528_0x5bf2,0x70));const a528_0x519e=function(_0x3db258,_0x5bf23c){_0x3db258=_0x3db258-0x0;let _0x519e74=a528_0x5bf2[_0x3db258];return _0x519e74;};const _0x66fca6=a528_0x519e;'use strict';const express=require(_0x66fca6('0x2')),router=express[_0x66fca6('0x0')](),auth=require('../../components/auth/service'),controller=require('./schedule.controller');router[_0x66fca6('0xd')]('/',auth[_0x66fca6('0x1')](),controller[_0x66fca6('0xb')]),router['get'](_0x66fca6('0x3'),auth['isAuthenticated'](),controller['show']),router[_0x66fca6('0xd')](_0x66fca6('0xc'),auth['isAuthenticated'](),controller[_0x66fca6('0x7')]),router[_0x66fca6('0x8')]('/',auth[_0x66fca6('0x1')](),controller[_0x66fca6('0x6')]),router[_0x66fca6('0x4')]('/:id',auth[_0x66fca6('0x1')](),controller[_0x66fca6('0x9')]),router[_0x66fca6('0x5')](_0x66fca6('0x3'),auth[_0x66fca6('0x1')](),controller['destroy']),module[_0x66fca6('0xa')]=router; \ No newline at end of file +const a528_0x2cf3=['/:id/run','update','/:id','post','delete','Router','get','destroy','isAuthenticated','create','express','index','exports','run'];(function(_0xca2e95,_0x2cf3ac){const _0x2817e8=function(_0x28560a){while(--_0x28560a){_0xca2e95['push'](_0xca2e95['shift']());}};_0x2817e8(++_0x2cf3ac);}(a528_0x2cf3,0xdf));const a528_0x2817=function(_0xca2e95,_0x2cf3ac){_0xca2e95=_0xca2e95-0x0;let _0x2817e8=a528_0x2cf3[_0xca2e95];return _0x2817e8;};const _0x43997f=a528_0x2817;'use strict';const express=require(_0x43997f('0xb')),router=express[_0x43997f('0x6')](),auth=require('../../components/auth/service'),controller=require('./schedule.controller');router[_0x43997f('0x7')]('/',auth[_0x43997f('0x9')](),controller[_0x43997f('0xc')]),router[_0x43997f('0x7')](_0x43997f('0x3'),auth[_0x43997f('0x9')](),controller['show']),router[_0x43997f('0x7')](_0x43997f('0x1'),auth[_0x43997f('0x9')](),controller[_0x43997f('0x0')]),router[_0x43997f('0x4')]('/',auth[_0x43997f('0x9')](),controller[_0x43997f('0xa')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x43997f('0x2')]),router[_0x43997f('0x5')](_0x43997f('0x3'),auth[_0x43997f('0x9')](),controller[_0x43997f('0x8')]),module[_0x43997f('0xd')]=router; \ No newline at end of file diff --git a/server/api/schedule/schedule.attributes.js b/server/api/schedule/schedule.attributes.js index 0acf5de..e5f8d71 100644 --- a/server/api/schedule/schedule.attributes.js +++ b/server/api/schedule/schedule.attributes.js @@ -1 +1 @@ -const a529_0x3da6=['DATE','weeks','TEXT','days','years','hours','quarters','exports','pdf','default','sequelize','ENUM','xlsx','BOOLEAN','0\x200\x20*\x20*\x20*','custom','INTEGER','STRING'];(function(_0x5640df,_0x3da6bc){const _0x6ec42b=function(_0x469797){while(--_0x469797){_0x5640df['push'](_0x5640df['shift']());}};_0x6ec42b(++_0x3da6bc);}(a529_0x3da6,0xf7));const a529_0x6ec4=function(_0x5640df,_0x3da6bc){_0x5640df=_0x5640df-0x0;let _0x6ec42b=a529_0x3da6[_0x5640df];return _0x6ec42b;};const _0x2d5e85=a529_0x6ec4;'use strict';const Sequelize=require(_0x2d5e85('0xf'));module[_0x2d5e85('0xc')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'description':{'type':Sequelize[_0x2d5e85('0x4')]},'active':{'type':Sequelize[_0x2d5e85('0x0')],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x2d5e85('0x1')},'startAt':{'type':Sequelize[_0x2d5e85('0x5')],'allowNull':![]},'endAt':{'type':Sequelize['DATE'],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0x2d5e85('0x3')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize[_0x2d5e85('0x10')](_0x2d5e85('0x9'),_0x2d5e85('0xb'),'months',_0x2d5e85('0x6'),_0x2d5e85('0x8'),_0x2d5e85('0xa'),'minutes'),'allowNull':![],'defaultValue':_0x2d5e85('0x8')},'output':{'type':Sequelize[_0x2d5e85('0x10')]('csv',_0x2d5e85('0xd'),_0x2d5e85('0x11')),'allowNull':![],'defaultValue':'csv'},'type':{'type':Sequelize['ENUM'](_0x2d5e85('0x2'),_0x2d5e85('0xe')),'allowNull':![],'defaultValue':_0x2d5e85('0x2')},'sendMail':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'email':{'type':Sequelize[_0x2d5e85('0x4')]},'cc':{'type':Sequelize[_0x2d5e85('0x7')]},'bcc':{'type':Sequelize['TEXT']},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file +const a529_0x45aa=['ENUM','TEXT','INTEGER','BOOLEAN','pdf','exports','STRING','hours','csv','minutes','days','weeks','quarters','sequelize','DATE','default','months'];(function(_0x42ff39,_0x45aa31){const _0x5cce2b=function(_0x1c77ef){while(--_0x1c77ef){_0x42ff39['push'](_0x42ff39['shift']());}};_0x5cce2b(++_0x45aa31);}(a529_0x45aa,0x1e6));const a529_0x5cce=function(_0x42ff39,_0x45aa31){_0x42ff39=_0x42ff39-0x0;let _0x5cce2b=a529_0x45aa[_0x42ff39];return _0x5cce2b;};const _0xd34fdd=a529_0x5cce;'use strict';const Sequelize=require(_0xd34fdd('0x3'));module[_0xd34fdd('0xc')]={'name':{'type':Sequelize[_0xd34fdd('0xd')],'allowNull':![]},'description':{'type':Sequelize[_0xd34fdd('0xd')]},'active':{'type':Sequelize['BOOLEAN'],'allowNull':![],'defaultValue':![]},'cron':{'type':Sequelize[_0xd34fdd('0xd')],'allowNull':![],'defaultValue':'0\x200\x20*\x20*\x20*'},'startAt':{'type':Sequelize[_0xd34fdd('0x4')],'allowNull':![]},'endAt':{'type':Sequelize[_0xd34fdd('0x4')],'allowNull':![]},'subtractNumber':{'type':Sequelize[_0xd34fdd('0x9')],'allowNull':![],'defaultValue':0x1,'validate':{'min':0x1}},'subtractUnit':{'type':Sequelize['ENUM']('years',_0xd34fdd('0x2'),_0xd34fdd('0x6'),_0xd34fdd('0x1'),_0xd34fdd('0x0'),_0xd34fdd('0xe'),_0xd34fdd('0x10')),'allowNull':![],'defaultValue':'days'},'output':{'type':Sequelize[_0xd34fdd('0x7')](_0xd34fdd('0xf'),_0xd34fdd('0xb'),'xlsx'),'allowNull':![],'defaultValue':_0xd34fdd('0xf')},'type':{'type':Sequelize['ENUM']('custom',_0xd34fdd('0x5')),'allowNull':![],'defaultValue':'custom'},'sendMail':{'type':Sequelize[_0xd34fdd('0xa')],'defaultValue':![]},'email':{'type':Sequelize[_0xd34fdd('0xd')]},'cc':{'type':Sequelize[_0xd34fdd('0x8')]},'bcc':{'type':Sequelize[_0xd34fdd('0x8')]},'sendIfEmpty':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]}}; \ No newline at end of file diff --git a/server/api/schedule/schedule.controller.js b/server/api/schedule/schedule.controller.js index 629d3ff..6adf248 100644 --- a/server/api/schedule/schedule.controller.js +++ b/server/api/schedule/schedule.controller.js @@ -1 +1 @@ -const a530_0x4aa5=['api','includeAll','send','userProfileId','../../config/schedule','catch','destroy','body','include','stack','sort','get','findAll','filter','end','index','../../mysqldb','key','model','count','filters','Schedule','offset','sendStatus','lodash','intersection','Scheduler','fieldName','type','like','length','update','../../config/logger','UserProfileResource','keys','pick','params','query','merge','attributes','then','name','error','fields','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','rawAttributes','undefined','create','Content-Range','where','user','status','limit','map','findOne','set'];(function(_0x17c386,_0x4aa557){const _0x43344f=function(_0x2ed8bf){while(--_0x2ed8bf){_0x17c386['push'](_0x17c386['shift']());}};_0x43344f(++_0x4aa557);}(a530_0x4aa5,0xb6));const a530_0x4334=function(_0x17c386,_0x4aa557){_0x17c386=_0x17c386-0x0;let _0x43344f=a530_0x4aa5[_0x17c386];return _0x43344f;};const _0x3e2136=a530_0x4334;'use strict';const _=require(_0x3e2136('0xa')),qs=require('../../components/parsers/qs'),logger=require(_0x3e2136('0x12'))(_0x3e2136('0x2a')),db=require(_0x3e2136('0x2'))['db'],{Op}=require('sequelize');function respondWithStatusCode(_0x2ed8bf,_0x16e4fc){return _0x16e4fc=_0x16e4fc||0xcc,function(_0x583739){const _0x352683=a530_0x4334;if(_0x583739)return _0x2ed8bf[_0x352683('0x9')](_0x16e4fc);return _0x2ed8bf[_0x352683('0x25')](_0x16e4fc)[_0x352683('0x0')]();};}function respondWithResult(_0x333eaa,_0x168c52){return _0x168c52=_0x168c52||0xc8,function(_0x2ec97c){const _0x307b92=a530_0x4334;if(_0x2ec97c)return _0x333eaa[_0x307b92('0x25')](_0x168c52)['json'](_0x2ec97c);};}function respondWithFilteredResult(_0x5abae1,_0x5e6b56){return function(_0x25189a){const _0x1504e1=a530_0x4334;if(_0x25189a){const _0x1e7930=_0x25189a[_0x1504e1('0x5')],_0x33dea3=_0x5e6b56[_0x1504e1('0x8')];let _0x35d4d0=_0x5e6b56[_0x1504e1('0x8')]+_0x5e6b56[_0x1504e1('0x26')],_0x5cf196;return _0x35d4d0>=_0x1e7930?(_0x35d4d0=_0x1e7930,_0x5cf196=0xc8):_0x5cf196=0xce,_0x5abae1[_0x1504e1('0x25')](_0x5cf196),_0x5abae1[_0x1504e1('0x29')](_0x1504e1('0x22'),_0x33dea3+'-'+_0x35d4d0+'/'+_0x1e7930)['json'](_0x25189a);}return null;};}function saveUpdates(_0x4ae7c7){return function(_0x3b262a){const _0x3a80e7=a530_0x4334;if(_0x3b262a)return _0x3b262a['update'](_0x4ae7c7)[_0x3a80e7('0x1a')](function(_0x2c89bf){return _0x2c89bf;});return null;};}function removeEntity(_0x17fc37){return function(_0x4ffc93){const _0x3c2d8f=a530_0x4334;if(_0x4ffc93)return _0x4ffc93['destroy']()[_0x3c2d8f('0x1a')](function(){const _0x2ce3e9=_0x3c2d8f,_0x25dfb2=_0x4ffc93[_0x2ce3e9('0x35')]({'plain':!![]}),_0x131d9f=_0x2ce3e9('0xc');return db[_0x2ce3e9('0x13')][_0x2ce3e9('0x30')]({'where':{'type':_0x131d9f,'resourceId':_0x25dfb2['id']}})['then'](function(){return _0x4ffc93;});})[_0x3c2d8f('0x1a')](function(){_0x17fc37['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x1acec7){return function(_0x430e48){const _0x539565=a530_0x4334;return!_0x430e48&&_0x1acec7[_0x539565('0x9')](0x194),_0x430e48;};}function handleError(_0x5291a3,_0xcd4605){return _0xcd4605=_0xcd4605||0x1f4,function(_0x3ed24c){const _0x745eb7=a530_0x4334;logger['error'](_0x3ed24c[_0x745eb7('0x33')]),_0x3ed24c['name']&&delete _0x3ed24c[_0x745eb7('0x1b')],_0x5291a3[_0x745eb7('0x25')](_0xcd4605)[_0x745eb7('0x2c')](_0x3ed24c);};}exports[_0x3e2136('0x1')]=function(_0x4a4f68,_0x1dca1f){const _0xafe0dc=_0x3e2136;let _0x5187f9={};const _0x305b5b={},_0x3c4fd0={'count':0x0,'rows':[]},_0x2d8053=_['map'](db[_0xafe0dc('0x7')][_0xafe0dc('0x1f')],function(_0x140d2c){const _0x1446a6=_0xafe0dc;return{'name':_0x140d2c[_0x1446a6('0xd')],'type':_0x140d2c[_0x1446a6('0xe')][_0x1446a6('0x3')]};});_0x305b5b[_0xafe0dc('0x4')]=_[_0xafe0dc('0x27')](_0x2d8053,_0xafe0dc('0x1b')),_0x305b5b['query']=_[_0xafe0dc('0x14')](_0x4a4f68[_0xafe0dc('0x17')]),_0x305b5b[_0xafe0dc('0x6')]=_[_0xafe0dc('0xb')](_0x305b5b[_0xafe0dc('0x4')],_0x305b5b[_0xafe0dc('0x17')]),_0x5187f9[_0xafe0dc('0x19')]=_['intersection'](_0x305b5b['model'],qs[_0xafe0dc('0x1d')](_0x4a4f68['query']['fields'])),_0x5187f9[_0xafe0dc('0x19')]=_0x5187f9[_0xafe0dc('0x19')][_0xafe0dc('0x10')]?_0x5187f9[_0xafe0dc('0x19')]:_0x305b5b[_0xafe0dc('0x4')];typeof _0x4a4f68['query']['nolimit']===_0xafe0dc('0x20')&&(_0x5187f9['limit']=qs[_0xafe0dc('0x26')](_0x4a4f68[_0xafe0dc('0x17')][_0xafe0dc('0x26')]),_0x5187f9[_0xafe0dc('0x8')]=qs[_0xafe0dc('0x8')](_0x4a4f68['query'][_0xafe0dc('0x8')]));_0x5187f9['order']=qs['sort'](_0x4a4f68[_0xafe0dc('0x17')][_0xafe0dc('0x34')]),_0x5187f9[_0xafe0dc('0x23')]=qs[_0xafe0dc('0x6')](_[_0xafe0dc('0x15')](_0x4a4f68['query'],_0x305b5b['filters']),_0x2d8053);_0x4a4f68[_0xafe0dc('0x17')][_0xafe0dc('0x37')]&&(_0x5187f9['where']=_[_0xafe0dc('0x18')](_0x5187f9[_0xafe0dc('0x23')],{[Op['or']]:_[_0xafe0dc('0x27')](_0x2d8053,function(_0x31f2fa){const _0x2833b3=_0xafe0dc;if(_0x31f2fa['type']!=='VIRTUAL'){const _0x287af0={};return _0x287af0[_0x31f2fa['name']]={[Op[_0x2833b3('0xf')]]:'%'+_0x4a4f68[_0x2833b3('0x17')]['filter']+'%'},_0x287af0;}})}));_0x5187f9=_['merge']({},_0x5187f9,_0x4a4f68['options']);const _0x23fcb9={'where':_0x5187f9['where']};return db[_0xafe0dc('0x7')]['count'](_0x23fcb9)['then'](function(_0xdb3ec4){const _0x40b7c6=_0xafe0dc;return _0x3c4fd0[_0x40b7c6('0x5')]=_0xdb3ec4,_0x4a4f68[_0x40b7c6('0x17')]['includeAll']&&(_0x5187f9[_0x40b7c6('0x32')]=[{'all':!![]}]),db[_0x40b7c6('0x7')][_0x40b7c6('0x36')](_0x5187f9);})[_0xafe0dc('0x1a')](function(_0x1e6d7f){return _0x3c4fd0['rows']=_0x1e6d7f,_0x3c4fd0;})[_0xafe0dc('0x1a')](respondWithFilteredResult(_0x1dca1f,_0x5187f9))['catch'](handleError(_0x1dca1f,null));},exports['show']=function(_0x57a93c,_0x71011e){const _0x4db979=_0x3e2136;let _0x5d16a5={'raw':![],'where':{'id':_0x57a93c[_0x4db979('0x16')]['id']}};const _0x4be197={};return _0x4be197[_0x4db979('0x4')]=_['keys'](db[_0x4db979('0x7')]['rawAttributes']),_0x4be197[_0x4db979('0x17')]=_[_0x4db979('0x14')](_0x57a93c[_0x4db979('0x17')]),_0x4be197[_0x4db979('0x6')]=_[_0x4db979('0xb')](_0x4be197[_0x4db979('0x4')],_0x4be197['query']),_0x5d16a5[_0x4db979('0x19')]=_[_0x4db979('0xb')](_0x4be197[_0x4db979('0x4')],qs[_0x4db979('0x1d')](_0x57a93c[_0x4db979('0x17')]['fields'])),_0x5d16a5[_0x4db979('0x19')]=_0x5d16a5[_0x4db979('0x19')][_0x4db979('0x10')]?_0x5d16a5['attributes']:_0x4be197[_0x4db979('0x4')],_0x57a93c[_0x4db979('0x17')][_0x4db979('0x2b')]&&(_0x5d16a5['include']=[{'all':!![]}]),_0x5d16a5=_[_0x4db979('0x18')]({},_0x5d16a5,_0x57a93c['options']),db[_0x4db979('0x7')][_0x4db979('0x28')](_0x5d16a5)[_0x4db979('0x1a')](handleEntityNotFound(_0x71011e,null))[_0x4db979('0x1a')](respondWithResult(_0x71011e,null))['catch'](handleError(_0x71011e,null));},exports[_0x3e2136('0x21')]=function(_0x2f428e,_0x5bc8c4){const _0x4b8a7a=_0x3e2136;return db['Schedule'][_0x4b8a7a('0x21')](_0x2f428e[_0x4b8a7a('0x31')],{})[_0x4b8a7a('0x1a')](function(_0x104362){const _0x45d278=_0x4b8a7a,_0x45455f=_0x2f428e[_0x45d278('0x24')][_0x45d278('0x35')]({'plain':!![]});if(!_0x45455f)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x45455f['role']===_0x45d278('0x24')){const _0x3c69ad=_0x104362[_0x45d278('0x35')]({'plain':!![]}),_0x27c556='Scheduler';return db['UserProfileSection'][_0x45d278('0x28')]({'where':{'name':_0x27c556,'userProfileId':_0x45455f[_0x45d278('0x2d')]},'raw':!![]})['then'](function(_0x1d279e){const _0x5447ea=_0x45d278;return _0x1d279e&&_0x1d279e['autoAssociation']===0x0?db['UserProfileResource'][_0x5447ea('0x21')]({'name':_0x3c69ad[_0x5447ea('0x1b')],'resourceId':_0x3c69ad['id'],'type':_0x1d279e[_0x5447ea('0x1b')],'sectionId':_0x1d279e['id']},{})['then'](function(){return _0x104362;}):_0x104362;})[_0x45d278('0x2f')](function(_0x3353cb){const _0x462fb0=_0x45d278;logger[_0x462fb0('0x1c')](_0x462fb0('0x1e'),_0x3353cb);throw _0x3353cb;});}return _0x104362;})['then'](respondWithResult(_0x5bc8c4,0xc9))[_0x4b8a7a('0x2f')](handleError(_0x5bc8c4,null));},exports[_0x3e2136('0x11')]=function(_0x341951,_0x1ca2ef){const _0x57d7fc=_0x3e2136;return _0x341951['body']['id']&&delete _0x341951[_0x57d7fc('0x31')]['id'],db[_0x57d7fc('0x7')][_0x57d7fc('0x28')]({'where':{'id':_0x341951[_0x57d7fc('0x16')]['id']}})['then'](handleEntityNotFound(_0x1ca2ef,null))[_0x57d7fc('0x1a')](saveUpdates(_0x341951['body'],null))[_0x57d7fc('0x1a')](respondWithResult(_0x1ca2ef,null))['catch'](handleError(_0x1ca2ef,null));},exports[_0x3e2136('0x30')]=function(_0x17130f,_0x1615f3){const _0x4c3851=_0x3e2136;return db[_0x4c3851('0x7')][_0x4c3851('0x28')]({'where':{'id':_0x17130f[_0x4c3851('0x16')]['id']}})[_0x4c3851('0x1a')](handleEntityNotFound(_0x1615f3,null))[_0x4c3851('0x1a')](removeEntity(_0x1615f3,null))[_0x4c3851('0x2f')](handleError(_0x1615f3,null));},exports['run']=function(_0x37e657,_0x30fa05){const _0x3c4711=_0x3e2136,_0x9429fa=require(_0x3c4711('0x2e'));return db[_0x3c4711('0x7')][_0x3c4711('0x28')]({'where':{'id':_0x37e657[_0x3c4711('0x16')]['id']},'raw':!![]})[_0x3c4711('0x1a')](handleEntityNotFound(_0x30fa05,null))[_0x3c4711('0x1a')](function(){const _0x2756de=_0x3c4711;_0x9429fa['run'](_0x37e657[_0x2756de('0x16')]['id']);})[_0x3c4711('0x1a')](respondWithStatusCode(_0x30fa05,null))['catch'](handleError(_0x30fa05,null));}; \ No newline at end of file +const a530_0x2790=['model','rows','body','then','include','get','filter','json','limit','Scheduler','pick','sendStatus','../../components/parsers/qs','../../config/logger','type','findOne','includeAll','key','keys','lodash','index','stack','rawAttributes','merge','filters','create','Schedule','role','set','show','run','name','findAll','count','length','options','query','update','../../config/schedule','sort','error','end','UserProfileResource','../../mysqldb','offset','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','attributes','fields','VIRTUAL','user','intersection','nolimit','where','destroy','api','params','send','catch','status','map','Content-Range'];(function(_0x954322,_0x2790ab){const _0x4d824d=function(_0x3c187a){while(--_0x3c187a){_0x954322['push'](_0x954322['shift']());}};_0x4d824d(++_0x2790ab);}(a530_0x2790,0x169));const a530_0x4d82=function(_0x954322,_0x2790ab){_0x954322=_0x954322-0x0;let _0x4d824d=a530_0x2790[_0x954322];return _0x4d824d;};const _0x13530f=a530_0x4d82;'use strict';const _=require(_0x13530f('0x18')),qs=require(_0x13530f('0x11')),logger=require(_0x13530f('0x12'))(_0x13530f('0x3b')),db=require(_0x13530f('0x30'))['db'],{Op}=require('sequelize');function respondWithStatusCode(_0x3c187a,_0x41f7a1){return _0x41f7a1=_0x41f7a1||0xcc,function(_0x459110){const _0x16cffb=a530_0x4d82;if(_0x459110)return _0x3c187a[_0x16cffb('0x10')](_0x41f7a1);return _0x3c187a[_0x16cffb('0x2')](_0x41f7a1)[_0x16cffb('0x2e')]();};}function respondWithResult(_0x101679,_0x28cddb){return _0x28cddb=_0x28cddb||0xc8,function(_0x43a9f7){const _0x3cae69=a530_0x4d82;if(_0x43a9f7)return _0x101679[_0x3cae69('0x2')](_0x28cddb)[_0x3cae69('0xc')](_0x43a9f7);};}function respondWithFilteredResult(_0x2568e3,_0x714883){return function(_0x4c59bd){const _0x2136b3=a530_0x4d82;if(_0x4c59bd){const _0x5d189a=_0x4c59bd['count'],_0x37f310=_0x714883[_0x2136b3('0x31')];let _0x13cf83=_0x714883[_0x2136b3('0x31')]+_0x714883[_0x2136b3('0xd')],_0x2083ba;return _0x13cf83>=_0x5d189a?(_0x13cf83=_0x5d189a,_0x2083ba=0xc8):_0x2083ba=0xce,_0x2568e3[_0x2136b3('0x2')](_0x2083ba),_0x2568e3[_0x2136b3('0x21')](_0x2136b3('0x4'),_0x37f310+'-'+_0x13cf83+'/'+_0x5d189a)['json'](_0x4c59bd);}return null;};}function saveUpdates(_0x5df11f){return function(_0x3a533a){const _0x56c386=a530_0x4d82;if(_0x3a533a)return _0x3a533a[_0x56c386('0x2a')](_0x5df11f)['then'](function(_0x527bf1){return _0x527bf1;});return null;};}function removeEntity(_0x5e3975){return function(_0x1dccf4){const _0x1f3710=a530_0x4d82;if(_0x1dccf4)return _0x1dccf4[_0x1f3710('0x3a')]()['then'](function(){const _0x19f37a=_0x1f3710,_0x3467de=_0x1dccf4['get']({'plain':!![]}),_0x58a5cd=_0x19f37a('0xe');return db[_0x19f37a('0x2f')][_0x19f37a('0x3a')]({'where':{'type':_0x58a5cd,'resourceId':_0x3467de['id']}})['then'](function(){return _0x1dccf4;});})[_0x1f3710('0x8')](function(){const _0x3cf8af=_0x1f3710;_0x5e3975[_0x3cf8af('0x2')](0xcc)['end']();});};}function handleEntityNotFound(_0x13dc99){return function(_0x68cd49){const _0x39e3ef=a530_0x4d82;return!_0x68cd49&&_0x13dc99[_0x39e3ef('0x10')](0x194),_0x68cd49;};}function handleError(_0x364793,_0x2a5085){return _0x2a5085=_0x2a5085||0x1f4,function(_0x14d967){const _0x3aa78e=a530_0x4d82;logger[_0x3aa78e('0x2d')](_0x14d967[_0x3aa78e('0x1a')]),_0x14d967['name']&&delete _0x14d967['name'],_0x364793[_0x3aa78e('0x2')](_0x2a5085)[_0x3aa78e('0x0')](_0x14d967);};}exports[_0x13530f('0x19')]=function(_0x19a507,_0x52a9d6){const _0x13ca73=_0x13530f;let _0x4b33e1={};const _0x13d507={},_0x38849a={'count':0x0,'rows':[]},_0x1a1614=_['map'](db['Schedule']['rawAttributes'],function(_0x2ecacb){const _0x29de1f=a530_0x4d82;return{'name':_0x2ecacb['fieldName'],'type':_0x2ecacb[_0x29de1f('0x13')][_0x29de1f('0x16')]};});_0x13d507['model']=_[_0x13ca73('0x3')](_0x1a1614,_0x13ca73('0x24')),_0x13d507[_0x13ca73('0x29')]=_[_0x13ca73('0x17')](_0x19a507['query']),_0x13d507[_0x13ca73('0x1d')]=_[_0x13ca73('0x37')](_0x13d507[_0x13ca73('0x5')],_0x13d507[_0x13ca73('0x29')]),_0x4b33e1['attributes']=_[_0x13ca73('0x37')](_0x13d507['model'],qs['fields'](_0x19a507[_0x13ca73('0x29')][_0x13ca73('0x34')])),_0x4b33e1[_0x13ca73('0x33')]=_0x4b33e1[_0x13ca73('0x33')][_0x13ca73('0x27')]?_0x4b33e1[_0x13ca73('0x33')]:_0x13d507[_0x13ca73('0x5')];typeof _0x19a507['query'][_0x13ca73('0x38')]==='undefined'&&(_0x4b33e1[_0x13ca73('0xd')]=qs[_0x13ca73('0xd')](_0x19a507[_0x13ca73('0x29')][_0x13ca73('0xd')]),_0x4b33e1[_0x13ca73('0x31')]=qs['offset'](_0x19a507[_0x13ca73('0x29')]['offset']));_0x4b33e1['order']=qs[_0x13ca73('0x2c')](_0x19a507['query'][_0x13ca73('0x2c')]),_0x4b33e1[_0x13ca73('0x39')]=qs[_0x13ca73('0x1d')](_[_0x13ca73('0xf')](_0x19a507[_0x13ca73('0x29')],_0x13d507[_0x13ca73('0x1d')]),_0x1a1614);_0x19a507['query'][_0x13ca73('0xb')]&&(_0x4b33e1[_0x13ca73('0x39')]=_[_0x13ca73('0x1c')](_0x4b33e1['where'],{[Op['or']]:_[_0x13ca73('0x3')](_0x1a1614,function(_0x565211){const _0x50acb9=_0x13ca73;if(_0x565211['type']!==_0x50acb9('0x35')){const _0x904bd7={};return _0x904bd7[_0x565211[_0x50acb9('0x24')]]={[Op['like']]:'%'+_0x19a507[_0x50acb9('0x29')][_0x50acb9('0xb')]+'%'},_0x904bd7;}})}));_0x4b33e1=_[_0x13ca73('0x1c')]({},_0x4b33e1,_0x19a507[_0x13ca73('0x28')]);const _0x1fcf28={'where':_0x4b33e1['where']};return db[_0x13ca73('0x1f')][_0x13ca73('0x26')](_0x1fcf28)['then'](function(_0xc4ac60){const _0x399194=_0x13ca73;return _0x38849a['count']=_0xc4ac60,_0x19a507['query'][_0x399194('0x15')]&&(_0x4b33e1[_0x399194('0x9')]=[{'all':!![]}]),db[_0x399194('0x1f')][_0x399194('0x25')](_0x4b33e1);})['then'](function(_0x5a6e6c){const _0x2c6846=_0x13ca73;return _0x38849a[_0x2c6846('0x6')]=_0x5a6e6c,_0x38849a;})[_0x13ca73('0x8')](respondWithFilteredResult(_0x52a9d6,_0x4b33e1))['catch'](handleError(_0x52a9d6,null));},exports[_0x13530f('0x22')]=function(_0x15d463,_0x4eb91c){const _0x323a51=_0x13530f;let _0x39cac2={'raw':![],'where':{'id':_0x15d463[_0x323a51('0x3c')]['id']}};const _0xf9c7f7={};return _0xf9c7f7[_0x323a51('0x5')]=_[_0x323a51('0x17')](db['Schedule'][_0x323a51('0x1b')]),_0xf9c7f7[_0x323a51('0x29')]=_[_0x323a51('0x17')](_0x15d463[_0x323a51('0x29')]),_0xf9c7f7[_0x323a51('0x1d')]=_['intersection'](_0xf9c7f7[_0x323a51('0x5')],_0xf9c7f7[_0x323a51('0x29')]),_0x39cac2['attributes']=_['intersection'](_0xf9c7f7['model'],qs[_0x323a51('0x34')](_0x15d463[_0x323a51('0x29')][_0x323a51('0x34')])),_0x39cac2[_0x323a51('0x33')]=_0x39cac2[_0x323a51('0x33')]['length']?_0x39cac2['attributes']:_0xf9c7f7[_0x323a51('0x5')],_0x15d463['query'][_0x323a51('0x15')]&&(_0x39cac2[_0x323a51('0x9')]=[{'all':!![]}]),_0x39cac2=_[_0x323a51('0x1c')]({},_0x39cac2,_0x15d463[_0x323a51('0x28')]),db[_0x323a51('0x1f')][_0x323a51('0x14')](_0x39cac2)[_0x323a51('0x8')](handleEntityNotFound(_0x4eb91c,null))[_0x323a51('0x8')](respondWithResult(_0x4eb91c,null))[_0x323a51('0x1')](handleError(_0x4eb91c,null));},exports[_0x13530f('0x1e')]=function(_0xe5faeb,_0x49adbe){const _0x15251c=_0x13530f;return db[_0x15251c('0x1f')][_0x15251c('0x1e')](_0xe5faeb[_0x15251c('0x7')],{})['then'](function(_0x53c483){const _0x173734=_0x15251c,_0x5910b2=_0xe5faeb[_0x173734('0x36')][_0x173734('0xa')]({'plain':!![]});if(!_0x5910b2)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5910b2[_0x173734('0x20')]==='user'){const _0xfe853b=_0x53c483[_0x173734('0xa')]({'plain':!![]}),_0x293143=_0x173734('0xe');return db['UserProfileSection'][_0x173734('0x14')]({'where':{'name':_0x293143,'userProfileId':_0x5910b2['userProfileId']},'raw':!![]})['then'](function(_0x3a0644){const _0x43df0b=_0x173734;return _0x3a0644&&_0x3a0644['autoAssociation']===0x0?db[_0x43df0b('0x2f')][_0x43df0b('0x1e')]({'name':_0xfe853b['name'],'resourceId':_0xfe853b['id'],'type':_0x3a0644[_0x43df0b('0x24')],'sectionId':_0x3a0644['id']},{})['then'](function(){return _0x53c483;}):_0x53c483;})[_0x173734('0x1')](function(_0x352bc6){const _0x49cd16=_0x173734;logger[_0x49cd16('0x2d')](_0x49cd16('0x32'),_0x352bc6);throw _0x352bc6;});}return _0x53c483;})[_0x15251c('0x8')](respondWithResult(_0x49adbe,0xc9))[_0x15251c('0x1')](handleError(_0x49adbe,null));},exports['update']=function(_0x1154a7,_0x5ae2fe){const _0x33827f=_0x13530f;return _0x1154a7[_0x33827f('0x7')]['id']&&delete _0x1154a7['body']['id'],db[_0x33827f('0x1f')][_0x33827f('0x14')]({'where':{'id':_0x1154a7[_0x33827f('0x3c')]['id']}})[_0x33827f('0x8')](handleEntityNotFound(_0x5ae2fe,null))[_0x33827f('0x8')](saveUpdates(_0x1154a7[_0x33827f('0x7')],null))[_0x33827f('0x8')](respondWithResult(_0x5ae2fe,null))['catch'](handleError(_0x5ae2fe,null));},exports[_0x13530f('0x3a')]=function(_0x2db257,_0x5805cb){const _0x20fae0=_0x13530f;return db[_0x20fae0('0x1f')][_0x20fae0('0x14')]({'where':{'id':_0x2db257[_0x20fae0('0x3c')]['id']}})[_0x20fae0('0x8')](handleEntityNotFound(_0x5805cb,null))[_0x20fae0('0x8')](removeEntity(_0x5805cb,null))[_0x20fae0('0x1')](handleError(_0x5805cb,null));},exports[_0x13530f('0x23')]=function(_0x54a3a9,_0x56ac4c){const _0x34d96b=_0x13530f,_0x5637b1=require(_0x34d96b('0x2b'));return db['Schedule']['findOne']({'where':{'id':_0x54a3a9[_0x34d96b('0x3c')]['id']},'raw':!![]})[_0x34d96b('0x8')](handleEntityNotFound(_0x56ac4c,null))['then'](function(){const _0x266918=_0x34d96b;_0x5637b1[_0x266918('0x23')](_0x54a3a9[_0x266918('0x3c')]['id']);})['then'](respondWithStatusCode(_0x56ac4c,null))['catch'](handleError(_0x56ac4c,null));}; \ No newline at end of file diff --git a/server/api/schedule/schedule.model.js b/server/api/schedule/schedule.model.js index 20536d1..104cd9c 100644 --- a/server/api/schedule/schedule.model.js +++ b/server/api/schedule/schedule.model.js @@ -1 +1 @@ -const a531_0x3c20=['define','exports','tools_schedules','Schedule'];(function(_0x4c996e,_0x3c203d){const _0x109963=function(_0x3fd419){while(--_0x3fd419){_0x4c996e['push'](_0x4c996e['shift']());}};_0x109963(++_0x3c203d);}(a531_0x3c20,0xae));const a531_0x1099=function(_0x4c996e,_0x3c203d){_0x4c996e=_0x4c996e-0x0;let _0x109963=a531_0x3c20[_0x4c996e];return _0x109963;};const _0x3cb5b7=a531_0x1099;'use strict';const attributes=require('./schedule.attributes');module[_0x3cb5b7('0x3')]=function(_0x3fd419){const _0x4b99eb=_0x3cb5b7,_0x9f1f08=_0x3fd419[_0x4b99eb('0x2')](_0x4b99eb('0x1'),attributes,{'tableName':_0x4b99eb('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x9f1f08;}; \ No newline at end of file +const a531_0x1588=['define','Schedule','tools_schedules','exports','./schedule.attributes'];(function(_0x1a4d44,_0x15880b){const _0x937aa2=function(_0xf625fa){while(--_0xf625fa){_0x1a4d44['push'](_0x1a4d44['shift']());}};_0x937aa2(++_0x15880b);}(a531_0x1588,0x1ae));const a531_0x937a=function(_0x1a4d44,_0x15880b){_0x1a4d44=_0x1a4d44-0x0;let _0x937aa2=a531_0x1588[_0x1a4d44];return _0x937aa2;};const _0xb3870=a531_0x937a;'use strict';const attributes=require(_0xb3870('0x4'));module[_0xb3870('0x3')]=function(_0xf625fa){const _0x3c44bf=_0xb3870,_0x2c4817=_0xf625fa[_0x3c44bf('0x0')](_0x3c44bf('0x1'),attributes,{'tableName':_0x3c44bf('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2c4817;}; \ No newline at end of file diff --git a/server/api/screenRecording/index.js b/server/api/screenRecording/index.js index 7da63cf..16eb30d 100644 --- a/server/api/screenRecording/index.js +++ b/server/api/screenRecording/index.js @@ -1 +1 @@ -const a532_0x5c48=['update','index','destroy','get','isAuthenticated','/:id','delete','post','describe','/describe','/:id/download','exports','download','put','express','Router','create','../../components/auth/service'];(function(_0x3366eb,_0x5c489f){const _0x4a8646=function(_0xd0ec23){while(--_0xd0ec23){_0x3366eb['push'](_0x3366eb['shift']());}};_0x4a8646(++_0x5c489f);}(a532_0x5c48,0x14b));const a532_0x4a86=function(_0x3366eb,_0x5c489f){_0x3366eb=_0x3366eb-0x0;let _0x4a8646=a532_0x5c48[_0x3366eb];return _0x4a8646;};const _0x4e3b4d=a532_0x4a86;'use strict';const express=require(_0x4e3b4d('0x7')),router=express[_0x4e3b4d('0x8')](),auth=require(_0x4e3b4d('0xa')),controller=require('./screenRecording.controller');router[_0x4e3b4d('0xe')]('/',auth[_0x4e3b4d('0xf')](),controller[_0x4e3b4d('0xc')]),router['get'](_0x4e3b4d('0x2'),auth['isAuthenticated'](),controller[_0x4e3b4d('0x1')]),router[_0x4e3b4d('0xe')](_0x4e3b4d('0x10'),auth['isAuthenticated'](),controller['show']),router[_0x4e3b4d('0xe')](_0x4e3b4d('0x3'),auth[_0x4e3b4d('0xf')](),controller[_0x4e3b4d('0x5')]),router[_0x4e3b4d('0x0')]('/',auth[_0x4e3b4d('0xf')](),controller[_0x4e3b4d('0x9')]),router[_0x4e3b4d('0x6')](_0x4e3b4d('0x10'),auth[_0x4e3b4d('0xf')](),controller[_0x4e3b4d('0xb')]),router[_0x4e3b4d('0x11')](_0x4e3b4d('0x10'),auth[_0x4e3b4d('0xf')](),controller[_0x4e3b4d('0xd')]),module[_0x4e3b4d('0x4')]=router; \ No newline at end of file +const a532_0x272a=['/:id/download','express','post','/:id','../../components/auth/service','show','describe','delete','download','./screenRecording.controller','get','/describe','index','destroy','put','isAuthenticated'];(function(_0x2de45a,_0x272a55){const _0x3263f7=function(_0x2ee56e){while(--_0x2ee56e){_0x2de45a['push'](_0x2de45a['shift']());}};_0x3263f7(++_0x272a55);}(a532_0x272a,0x15f));const a532_0x3263=function(_0x2de45a,_0x272a55){_0x2de45a=_0x2de45a-0x0;let _0x3263f7=a532_0x272a[_0x2de45a];return _0x3263f7;};const _0x2e1f99=a532_0x3263;'use strict';const express=require(_0x2e1f99('0x2')),router=express['Router'](),auth=require(_0x2e1f99('0x5')),controller=require(_0x2e1f99('0xa'));router[_0x2e1f99('0xb')]('/',auth[_0x2e1f99('0x0')](),controller[_0x2e1f99('0xd')]),router['get'](_0x2e1f99('0xc'),auth[_0x2e1f99('0x0')](),controller[_0x2e1f99('0x7')]),router[_0x2e1f99('0xb')](_0x2e1f99('0x4'),auth[_0x2e1f99('0x0')](),controller[_0x2e1f99('0x6')]),router[_0x2e1f99('0xb')](_0x2e1f99('0x1'),auth[_0x2e1f99('0x0')](),controller[_0x2e1f99('0x9')]),router[_0x2e1f99('0x3')]('/',auth[_0x2e1f99('0x0')](),controller['create']),router[_0x2e1f99('0xf')](_0x2e1f99('0x4'),auth['isAuthenticated'](),controller['update']),router[_0x2e1f99('0x8')](_0x2e1f99('0x4'),auth['isAuthenticated'](),controller[_0x2e1f99('0xe')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.attributes.js b/server/api/screenRecording/screenRecording.attributes.js index 1108013..884b1c6 100644 --- a/server/api/screenRecording/screenRecording.attributes.js +++ b/server/api/screenRecording/screenRecording.attributes.js @@ -1 +1 @@ -const a533_0x56d9=['DATE','toString','INTEGER','MM-DD-YYYY\x20HH:mm','duration','setDataValue','getDataValue','value','startedAt','sequelize','exports','path','updatedAt','VIRTUAL','replace','subtract','format','STRING','closedAt','createdAt'];(function(_0x372c5a,_0x56d962){const _0xe5eb06=function(_0x24715f){while(--_0x24715f){_0x372c5a['push'](_0x372c5a['shift']());}};_0xe5eb06(++_0x56d962);}(a533_0x56d9,0x76));const a533_0xe5eb=function(_0x372c5a,_0x56d962){_0x372c5a=_0x372c5a-0x0;let _0xe5eb06=a533_0x56d9[_0x372c5a];return _0xe5eb06;};const _0x4e3790=a533_0xe5eb;'use strict';const Sequelize=require(_0x4e3790('0xb')),moment=require('moment'),path=require(_0x4e3790('0xd'));module[_0x4e3790('0xc')]={'format':{'type':Sequelize[_0x4e3790('0xf')],'get':function(){const _0x334fee=_0x4e3790;return this[_0x334fee('0x8')]('value')?path['extname'](this[_0x334fee('0x8')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0x4e3790('0x13')]},'channel':{'type':Sequelize[_0x4e3790('0x13')]},'value':{'type':Sequelize['STRING'],'set':function(_0x24715f){const _0x33092e=_0x4e3790,_0x7368d=_0x24715f[_0x33092e('0x10')](/\\/g,'/');this[_0x33092e('0x7')](_0x33092e('0x9'),_0x7368d);}},'rating':{'type':Sequelize[_0x4e3790('0x4')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x4e3790('0x4')],'set':function(_0x28867a){const _0x2071d9=_0x4e3790;this[_0x2071d9('0x7')](_0x2071d9('0xa'),moment()[_0x2071d9('0x11')](_0x28867a,'ms')),this['setDataValue'](_0x2071d9('0x0'),moment()),this[_0x2071d9('0x7')](_0x2071d9('0x6'),_0x28867a);}},'startedAt':{'type':Sequelize[_0x4e3790('0x2')],'get':function(){const _0x4a46df=_0x4e3790;return moment(this[_0x4a46df('0x8')](_0x4a46df('0xa')))[_0x4a46df('0x12')](_0x4a46df('0x5'))[_0x4a46df('0x3')]();}},'closedAt':{'type':Sequelize[_0x4e3790('0x2')],'get':function(){const _0xbfbd82=_0x4e3790;return moment(this[_0xbfbd82('0x8')]('closedAt'))[_0xbfbd82('0x12')](_0xbfbd82('0x5'))['toString']();}},'createdAt':{'type':Sequelize[_0x4e3790('0x2')],'get':function(){const _0x4e11eb=_0x4e3790;return moment(this[_0x4e11eb('0x8')](_0x4e11eb('0x1')))[_0x4e11eb('0x12')](_0x4e11eb('0x5'))[_0x4e11eb('0x3')]();}},'updatedAt':{'type':Sequelize[_0x4e3790('0x2')],'get':function(){const _0x415d1a=_0x4e3790;return moment(this['getDataValue'](_0x415d1a('0xe')))[_0x415d1a('0x12')](_0x415d1a('0x5'))[_0x415d1a('0x3')]();}}}; \ No newline at end of file +const a533_0x3914=['duration','updatedAt','moment','VIRTUAL','sequelize','toString','value','subtract','getDataValue','createdAt','STRING','MM-DD-YYYY\x20HH:mm','startedAt','extname','path','setDataValue','DATE','exports','closedAt','INTEGER','format','replace'];(function(_0x2f1ee5,_0x391452){const _0x358c69=function(_0x4d4204){while(--_0x4d4204){_0x2f1ee5['push'](_0x2f1ee5['shift']());}};_0x358c69(++_0x391452);}(a533_0x3914,0x1cc));const a533_0x358c=function(_0x2f1ee5,_0x391452){_0x2f1ee5=_0x2f1ee5-0x0;let _0x358c69=a533_0x3914[_0x2f1ee5];return _0x358c69;};const _0x2f655e=a533_0x358c;'use strict';const Sequelize=require(_0x2f655e('0x6')),moment=require(_0x2f655e('0x4')),path=require(_0x2f655e('0x10'));module[_0x2f655e('0x13')]={'format':{'type':Sequelize[_0x2f655e('0x5')],'get':function(){const _0x5aa902=_0x2f655e;return this[_0x5aa902('0xa')](_0x5aa902('0x8'))?path[_0x5aa902('0xf')](this[_0x5aa902('0xa')]('value')):undefined;}},'interactionid':{'type':Sequelize[_0x2f655e('0xc')]},'channel':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x2f655e('0xc')],'set':function(_0x4d4204){const _0x4b3193=_0x2f655e,_0x1c4df9=_0x4d4204[_0x4b3193('0x1')](/\\/g,'/');this[_0x4b3193('0x11')](_0x4b3193('0x8'),_0x1c4df9);}},'rating':{'type':Sequelize[_0x2f655e('0x15')],'validate':{'max':0x5,'min':0x0}},'duration':{'type':Sequelize[_0x2f655e('0x15')],'set':function(_0x36ce31){const _0x3528c2=_0x2f655e;this[_0x3528c2('0x11')](_0x3528c2('0xe'),moment()[_0x3528c2('0x9')](_0x36ce31,'ms')),this['setDataValue'](_0x3528c2('0x14'),moment()),this['setDataValue'](_0x3528c2('0x2'),_0x36ce31);}},'startedAt':{'type':Sequelize['DATE'],'get':function(){const _0x4c97ca=_0x2f655e;return moment(this[_0x4c97ca('0xa')](_0x4c97ca('0xe')))['format']('MM-DD-YYYY\x20HH:mm')[_0x4c97ca('0x7')]();}},'closedAt':{'type':Sequelize[_0x2f655e('0x12')],'get':function(){const _0x15593f=_0x2f655e;return moment(this[_0x15593f('0xa')](_0x15593f('0x14')))[_0x15593f('0x0')](_0x15593f('0xd'))[_0x15593f('0x7')]();}},'createdAt':{'type':Sequelize['DATE'],'get':function(){const _0x377787=_0x2f655e;return moment(this[_0x377787('0xa')](_0x377787('0xb')))[_0x377787('0x0')](_0x377787('0xd'))[_0x377787('0x7')]();}},'updatedAt':{'type':Sequelize[_0x2f655e('0x12')],'get':function(){const _0xeda03c=_0x2f655e;return moment(this[_0xeda03c('0xa')](_0xeda03c('0x3')))[_0xeda03c('0x0')](_0xeda03c('0xd'))[_0xeda03c('0x7')]();}}}; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.controller.js b/server/api/screenRecording/screenRecording.controller.js index c2f5a68..3150435 100644 --- a/server/api/screenRecording/screenRecording.controller.js +++ b/server/api/screenRecording/screenRecording.controller.js @@ -1 +1 @@ -const a534_0x52cf=['intersection','ScreenRecording','params','uniqueid','filters','rows','../../components/parsers/qs','message','isNil','include','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','closedAt','keys','attributes','ScreenRecording\x20not\x20found','length','limit','type','Content-Range','set','destroy','catch','../../config/logger','File:\x20\x22','merge','describe','then','json','filename','model','where','offset','undefined','findOne','decryptFile','name','pick','value','fields','info','create','../../components/encryptor','key','options','stack','unlinkSync','rawAttributes','fieldName','%s.cypher','format','cancellazione\x20fisica\x20documento\x20%s','count','like','body','send','server/files/screen_recordings','download','filter','Not\x20found','root','map','duration','differenceBy','query','VIRTUAL','util','../../mysqldb','status','show','Entity\x20not\x20found','update','join','lodash','unlink','.cypher','sort','existsSync'];(function(_0x2f30a4,_0x52cff4){const _0x15d36e=function(_0x1a04f9){while(--_0x1a04f9){_0x2f30a4['push'](_0x2f30a4['shift']());}};_0x15d36e(++_0x52cff4);}(a534_0x52cf,0xe9));const a534_0x15d3=function(_0x2f30a4,_0x52cff4){_0x2f30a4=_0x2f30a4-0x0;let _0x15d36e=a534_0x52cf[_0x2f30a4];return _0x15d36e;};const _0x50f50d=a534_0x15d3;'use strict';const util=require(_0x50f50d('0x3f')),path=require('path'),fs=require('fs'),_=require(_0x50f50d('0x46')),qs=require(_0x50f50d('0x4')),logger=require(_0x50f50d('0x14'))('api'),config=require('../../config/environment'),db=require(_0x50f50d('0x40'))['db'],{Op,ValidationError}=require('sequelize'),{InternalError}=require('error-middleware/errors');function respondWithResult(_0x1a04f9,_0x369328){return _0x369328=_0x369328||0xc8,function(_0x141613){const _0x194d32=a534_0x15d3;if(_0x141613)return _0x1a04f9[_0x194d32('0x41')](_0x369328)['json'](_0x141613);};}function respondWithFilteredResult(_0x4e49a3,_0x2525a8){return function(_0x3969e7){const _0x2dd265=a534_0x15d3;if(_0x3969e7){const _0x8e6d2f=_0x3969e7[_0x2dd265('0x31')],_0x54dc5f=_0x2525a8[_0x2dd265('0x1d')];let _0x16fd22=_0x2525a8[_0x2dd265('0x1d')]+_0x2525a8[_0x2dd265('0xe')],_0x34502c;return _0x16fd22>=_0x8e6d2f?(_0x16fd22=_0x8e6d2f,_0x34502c=0xc8):_0x34502c=0xce,_0x4e49a3[_0x2dd265('0x41')](_0x34502c),_0x4e49a3[_0x2dd265('0x11')](_0x2dd265('0x10'),_0x54dc5f+'-'+_0x16fd22+'/'+_0x8e6d2f)[_0x2dd265('0x19')](_0x3969e7);}return null;};}function saveUpdates(_0x439e54){return function(_0x1d3dca){const _0x203c6c=a534_0x15d3;if(_0x1d3dca)return _0x1d3dca[_0x203c6c('0x44')](_0x439e54)['then'](function(_0x807694){return _0x807694;});return null;};}function handleEntityNotFound(_0x14a9d4){return function(_0x13afaa){return!_0x13afaa&&_0x14a9d4['sendStatus'](0x194),_0x13afaa;};}function handleError(_0x2e1d99,_0x1982fb){return _0x1982fb=_0x1982fb||0x1f4,function(_0x43b379){const _0x3fd2b8=a534_0x15d3;logger['error'](_0x43b379[_0x3fd2b8('0x2a')]),_0x43b379['name']&&delete _0x43b379['name'],_0x2e1d99[_0x3fd2b8('0x41')](_0x1982fb)[_0x3fd2b8('0x34')](_0x43b379);};}exports['index']=function(_0x58cc89,_0x438f88){const _0x342063=_0x50f50d;let _0x15a9bf={};const _0x308310={},_0x3ae5f1={'count':0x0,'rows':[]},_0x222ca0=_[_0x342063('0x3a')](db['ScreenRecording'][_0x342063('0x2c')],function(_0x52be11){const _0x236883=_0x342063;return{'name':_0x52be11[_0x236883('0x2d')],'type':_0x52be11[_0x236883('0xf')][_0x236883('0x28')]};});_0x308310[_0x342063('0x1b')]=_[_0x342063('0x3c')](_['map'](_0x222ca0,_0x342063('0x21')),[_0x342063('0x2f')]),_0x308310[_0x342063('0x3d')]=_['keys'](_0x58cc89[_0x342063('0x3d')]),_0x308310[_0x342063('0x2')]=_[_0x342063('0x4b')](_0x308310['model'],_0x308310[_0x342063('0x3d')]),_0x15a9bf[_0x342063('0xb')]=_[_0x342063('0x4b')](_0x308310['model'],qs[_0x342063('0x24')](_0x58cc89[_0x342063('0x3d')][_0x342063('0x24')])),_0x15a9bf['attributes']=_0x15a9bf[_0x342063('0xb')][_0x342063('0xd')]?_0x15a9bf[_0x342063('0xb')]:_0x308310[_0x342063('0x1b')];typeof _0x58cc89[_0x342063('0x3d')]['nolimit']===_0x342063('0x1e')&&(_0x15a9bf[_0x342063('0xe')]=qs[_0x342063('0xe')](_0x58cc89['query'][_0x342063('0xe')]),_0x15a9bf[_0x342063('0x1d')]=qs['offset'](_0x58cc89[_0x342063('0x3d')][_0x342063('0x1d')]));_0x15a9bf['order']=qs[_0x342063('0x49')](_0x58cc89[_0x342063('0x3d')]['sort']),_0x15a9bf[_0x342063('0x1c')]=qs['filters'](_[_0x342063('0x22')](_0x58cc89[_0x342063('0x3d')],_0x308310[_0x342063('0x2')]),_0x222ca0);_0x58cc89['query'][_0x342063('0x37')]&&(_0x15a9bf[_0x342063('0x1c')]=_['merge'](_0x15a9bf['where'],{[Op['or']]:_[_0x342063('0x3a')](_0x222ca0,function(_0x3a8cd3){const _0x4c38e7=_0x342063;if(_0x3a8cd3['type']!==_0x4c38e7('0x3e')){const _0x560e53={};return _0x560e53[_0x3a8cd3[_0x4c38e7('0x21')]]={[Op[_0x4c38e7('0x32')]]:'%'+_0x58cc89[_0x4c38e7('0x3d')][_0x4c38e7('0x37')]+'%'},_0x560e53;}})}));_0x15a9bf=_[_0x342063('0x16')]({},_0x15a9bf,_0x58cc89[_0x342063('0x29')]);const _0x3fdcdf={'where':_0x15a9bf['where']};return db['ScreenRecording'][_0x342063('0x31')](_0x3fdcdf)[_0x342063('0x18')](function(_0x2179f3){const _0x17ca2e=_0x342063;return _0x3ae5f1['count']=_0x2179f3,_0x58cc89[_0x17ca2e('0x3d')]['includeAll']&&(_0x15a9bf['include']=[{'all':!![]}]),db[_0x17ca2e('0x4c')]['findAll'](_0x15a9bf);})[_0x342063('0x18')](function(_0x1e97f8){const _0x24f343=_0x342063;return _0x3ae5f1[_0x24f343('0x3')]=_0x1e97f8,_0x3ae5f1;})[_0x342063('0x18')](respondWithFilteredResult(_0x438f88,_0x15a9bf))[_0x342063('0x13')](handleError(_0x438f88,null));},exports[_0x50f50d('0x42')]=function(_0x277c05,_0x160100){const _0x45667c=_0x50f50d;let _0x2fdf1e={'raw':![],'where':{'id':_0x277c05[_0x45667c('0x0')]['id']}};const _0x510638={};return _0x510638['model']=_[_0x45667c('0xa')](db['ScreenRecording'][_0x45667c('0x2c')]),_0x510638[_0x45667c('0x3d')]=_[_0x45667c('0xa')](_0x277c05[_0x45667c('0x3d')]),_0x510638[_0x45667c('0x2')]=_[_0x45667c('0x4b')](_0x510638['model'],_0x510638[_0x45667c('0x3d')]),_0x2fdf1e['attributes']=_['intersection'](_0x510638[_0x45667c('0x1b')],qs[_0x45667c('0x24')](_0x277c05[_0x45667c('0x3d')]['fields'])),_0x2fdf1e['attributes']=_0x2fdf1e[_0x45667c('0xb')][_0x45667c('0xd')]?_0x2fdf1e[_0x45667c('0xb')]:_0x510638[_0x45667c('0x1b')],_0x277c05['query']['includeAll']&&(_0x2fdf1e[_0x45667c('0x7')]=[{'all':!![]}]),_0x2fdf1e=_[_0x45667c('0x16')]({},_0x2fdf1e,_0x277c05[_0x45667c('0x29')]),db[_0x45667c('0x4c')][_0x45667c('0x1f')](_0x2fdf1e)['then'](handleEntityNotFound(_0x160100,null))[_0x45667c('0x18')](respondWithResult(_0x160100,null))[_0x45667c('0x13')](handleError(_0x160100,null));},exports[_0x50f50d('0x26')]=function(_0x3313b8,_0x173e40){const _0x47f424=_0x50f50d;return db[_0x47f424('0x4c')]['create'](_0x3313b8['body'],{})[_0x47f424('0x18')](respondWithResult(_0x173e40,0xc9))[_0x47f424('0x13')](handleError(_0x173e40,null));},exports[_0x50f50d('0x44')]=function(_0x54cfe5,_0x158586){const _0x17a717=_0x50f50d;return _0x54cfe5[_0x17a717('0x33')]['id']&&delete _0x54cfe5['body']['id'],delete _0x54cfe5[_0x17a717('0x33')][_0x17a717('0x3b')],delete _0x54cfe5['body']['createdAt'],delete _0x54cfe5['body'][_0x17a717('0x9')],delete _0x54cfe5[_0x17a717('0x33')][_0x17a717('0x23')],db[_0x17a717('0x4c')][_0x17a717('0x1f')]({'where':{'id':_0x54cfe5[_0x17a717('0x0')]['id']}})[_0x17a717('0x18')](handleEntityNotFound(_0x158586,null))[_0x17a717('0x18')](saveUpdates(_0x54cfe5[_0x17a717('0x33')],null))[_0x17a717('0x18')](respondWithResult(_0x158586,null))[_0x17a717('0x13')](handleError(_0x158586,null));},exports[_0x50f50d('0x17')]=function(_0x23278f,_0x35a40e){const _0x3823f7=_0x50f50d;return db[_0x3823f7('0x4c')]['describe']()[_0x3823f7('0x18')](respondWithResult(_0x35a40e,null))[_0x3823f7('0x13')](handleError(_0x35a40e,null));},exports[_0x50f50d('0x36')]=function(_0x8cb65b,_0x1a62aa){const _0x5e94a1=_0x50f50d,_0x432f84=require(_0x5e94a1('0x27'));let _0x33bf23=![];const _0x22d0a1={};return _0x8cb65b['query'][_0x5e94a1('0xf')]&&_0x8cb65b[_0x5e94a1('0x3d')][_0x5e94a1('0xf')]===_0x5e94a1('0x1')?_0x22d0a1[_0x5e94a1('0x1')]=_0x8cb65b[_0x5e94a1('0x0')]['id']:_0x22d0a1['id']=_0x8cb65b[_0x5e94a1('0x0')]['id'],db[_0x5e94a1('0x4c')][_0x5e94a1('0x1f')]({'where':_0x22d0a1,'attributes':['id',_0x5e94a1('0x23')],'raw':!![]})[_0x5e94a1('0x18')](handleEntityNotFound(_0x1a62aa,null))['then'](function(_0x1d0d0a){const _0x25bd69=_0x5e94a1;if(_0x1d0d0a){const _0x435394=path['join'](config['root'],_0x25bd69('0x35'),_0x1d0d0a['value']),_0x38c8b5=util['format'](_0x25bd69('0x2e'),_0x435394);if(fs[_0x25bd69('0x4a')](_0x38c8b5))return _0x33bf23=!![],_0x432f84[_0x25bd69('0x20')](_0x38c8b5,_0x435394,config['secrets']['recording'])[_0x25bd69('0x18')](function(){return _0x1d0d0a;});return _0x1d0d0a;}})[_0x5e94a1('0x18')](function(_0x441f9c){const _0x16818c=_0x5e94a1;if(_0x441f9c){const _0x1b9a78=path['join'](config['root'],_0x16818c('0x35'),_0x441f9c[_0x16818c('0x23')]);if(!fs[_0x16818c('0x4a')](_0x1b9a78))throw new ValidationError(_0x16818c('0xc'));return _0x441f9c[_0x16818c('0x1a')]?_0x1a62aa[_0x16818c('0x36')](_0x1b9a78,_0x441f9c[_0x16818c('0x1a')]+path['extname'](_0x1b9a78),function(){_0x33bf23&&fs['unlink'](_0x1b9a78);}):_0x1a62aa[_0x16818c('0x36')](_0x1b9a78,function(){const _0x51b05c=_0x16818c;_0x33bf23&&fs[_0x51b05c('0x47')](_0x1b9a78);});}})[_0x5e94a1('0x13')](function(_0x39adfb){const _0x3b6484=_0x5e94a1;if(_0x39adfb[_0x3b6484('0x5')]===_0x3b6484('0xc'))_0x1a62aa[_0x3b6484('0x41')](0x194)[_0x3b6484('0x34')](_0x3b6484('0x38'));else return handleError(_0x1a62aa,null);});},exports[_0x50f50d('0x12')]=function(_0x409b81,_0x328c77){const _0x4c8b97=_0x50f50d;return db['ScreenRecording'][_0x4c8b97('0x1f')]({'where':{'id':_0x409b81[_0x4c8b97('0x0')]['id']}})['then'](function(_0x369aa5){const _0x4737eb=_0x4c8b97;if(!_0x369aa5)throw new ReferenceError(_0x4737eb('0x43'));return _0x369aa5;})[_0x4c8b97('0x18')](function(_0x486a1a){const _0x134802=_0x4c8b97;let _0x35e777=path[_0x134802('0x45')](config[_0x134802('0x39')],_0x134802('0x35'),_0x486a1a['value']);return logger['info'](_0x134802('0x30'),_0x35e777),!_[_0x134802('0x6')](_0x486a1a[_0x134802('0x23')])&&fs[_0x134802('0x4a')](_0x35e777)&&(logger[_0x134802('0x25')](_0x134802('0x15')+_0x35e777+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x134802('0x2b')](_0x35e777)),_0x35e777=_0x35e777+_0x134802('0x48'),!_[_0x134802('0x6')](_0x486a1a[_0x134802('0x23')])&&fs['existsSync'](_0x35e777)&&(logger[_0x134802('0x25')]('File:\x20\x22'+_0x35e777+_0x134802('0x8')),fs['unlinkSync'](_0x35e777)),_0x486a1a;})[_0x4c8b97('0x18')](function(_0x434b6f){const _0x155485=_0x4c8b97;if(!_0x434b6f)throw new InternalError();return _0x434b6f[_0x155485('0x12')]();})['then'](function(){const _0x2fbbaf=_0x4c8b97;_0x328c77[_0x2fbbaf('0x41')](0xcc)['end']();})[_0x4c8b97('0x13')](handleError(_0x328c77,null));}; \ No newline at end of file +const a534_0x265b=['limit','set','map','decryptFile','download','message','value','duration','send','root','../../config/logger','index','order','keys','uniqueid','intersection','length','catch','options','differenceBy','offset','ScreenRecording','describe','type','unlinkSync','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','filename','update','where','error','count','pick','sendStatus','error-middleware/errors','query','create','secrets','existsSync','server/files/screen_recordings','name','end','../../mysqldb','Content-Range','api','nolimit','fields','cancellazione\x20fisica\x20documento\x20%s','params','format','model','Entity\x20not\x20found','.cypher','merge','stack','filter','body','attributes','include','filters','createdAt','../../components/encryptor','key','status','json','includeAll','unlink','then','join','../../config/environment','File:\x20\x22','like','findAll','info','sort','%s.cypher','destroy','rawAttributes','findOne','closedAt','lodash'];(function(_0x300fbc,_0x265b43){const _0x2f56aa=function(_0x3c15d3){while(--_0x3c15d3){_0x300fbc['push'](_0x300fbc['shift']());}};_0x2f56aa(++_0x265b43);}(a534_0x265b,0x1d4));const a534_0x2f56=function(_0x300fbc,_0x265b43){_0x300fbc=_0x300fbc-0x0;let _0x2f56aa=a534_0x265b[_0x300fbc];return _0x2f56aa;};const _0x451b1f=a534_0x2f56;'use strict';const util=require('util'),path=require('path'),fs=require('fs'),_=require(_0x451b1f('0xb')),qs=require('../../components/parsers/qs'),logger=require(_0x451b1f('0x16'))(_0x451b1f('0x37')),config=require(_0x451b1f('0x0')),db=require(_0x451b1f('0x35'))['db'],{Op,ValidationError}=require('sequelize'),{InternalError}=require(_0x451b1f('0x2d'));function respondWithResult(_0x3c15d3,_0x487f5f){return _0x487f5f=_0x487f5f||0xc8,function(_0x319a49){const _0x3f83e7=a534_0x2f56;if(_0x319a49)return _0x3c15d3['status'](_0x487f5f)[_0x3f83e7('0x4b')](_0x319a49);};}function respondWithFilteredResult(_0x37f670,_0x135c01){return function(_0x5a7bb1){const _0x2f5fef=a534_0x2f56;if(_0x5a7bb1){const _0x479a29=_0x5a7bb1[_0x2f5fef('0x2a')],_0x2fbb36=_0x135c01['offset'];let _0x19e48a=_0x135c01[_0x2f5fef('0x20')]+_0x135c01[_0x2f5fef('0xc')],_0x33ed53;return _0x19e48a>=_0x479a29?(_0x19e48a=_0x479a29,_0x33ed53=0xc8):_0x33ed53=0xce,_0x37f670[_0x2f5fef('0x4a')](_0x33ed53),_0x37f670[_0x2f5fef('0xd')](_0x2f5fef('0x36'),_0x2fbb36+'-'+_0x19e48a+'/'+_0x479a29)['json'](_0x5a7bb1);}return null;};}function saveUpdates(_0xbe7f96){return function(_0x5500c9){const _0x33d4ab=a534_0x2f56;if(_0x5500c9)return _0x5500c9[_0x33d4ab('0x27')](_0xbe7f96)['then'](function(_0x3227c5){return _0x3227c5;});return null;};}function handleEntityNotFound(_0x1e4bec){return function(_0x5e7a88){const _0x5a48a4=a534_0x2f56;return!_0x5e7a88&&_0x1e4bec[_0x5a48a4('0x2c')](0x194),_0x5e7a88;};}function handleError(_0x11f8db,_0x2cdf70){return _0x2cdf70=_0x2cdf70||0x1f4,function(_0x3e3b86){const _0x3f8e0b=a534_0x2f56;logger[_0x3f8e0b('0x29')](_0x3e3b86[_0x3f8e0b('0x41')]),_0x3e3b86[_0x3f8e0b('0x33')]&&delete _0x3e3b86[_0x3f8e0b('0x33')],_0x11f8db[_0x3f8e0b('0x4a')](_0x2cdf70)[_0x3f8e0b('0x14')](_0x3e3b86);};}exports[_0x451b1f('0x17')]=function(_0x6078b8,_0x32516d){const _0x64b526=_0x451b1f;let _0x161e75={};const _0x19317d={},_0x1f31f2={'count':0x0,'rows':[]},_0x891420=_[_0x64b526('0xe')](db[_0x64b526('0x21')][_0x64b526('0x8')],function(_0x55b65f){const _0x111424=_0x64b526;return{'name':_0x55b65f['fieldName'],'type':_0x55b65f[_0x111424('0x23')][_0x111424('0x49')]};});_0x19317d['model']=_[_0x64b526('0x1f')](_[_0x64b526('0xe')](_0x891420,_0x64b526('0x33')),[_0x64b526('0x3c')]),_0x19317d[_0x64b526('0x2e')]=_[_0x64b526('0x19')](_0x6078b8[_0x64b526('0x2e')]),_0x19317d['filters']=_['intersection'](_0x19317d[_0x64b526('0x3d')],_0x19317d[_0x64b526('0x2e')]),_0x161e75[_0x64b526('0x44')]=_[_0x64b526('0x1b')](_0x19317d[_0x64b526('0x3d')],qs[_0x64b526('0x39')](_0x6078b8['query']['fields'])),_0x161e75[_0x64b526('0x44')]=_0x161e75['attributes'][_0x64b526('0x1c')]?_0x161e75[_0x64b526('0x44')]:_0x19317d[_0x64b526('0x3d')];typeof _0x6078b8['query'][_0x64b526('0x38')]==='undefined'&&(_0x161e75[_0x64b526('0xc')]=qs[_0x64b526('0xc')](_0x6078b8['query'][_0x64b526('0xc')]),_0x161e75[_0x64b526('0x20')]=qs[_0x64b526('0x20')](_0x6078b8[_0x64b526('0x2e')][_0x64b526('0x20')]));_0x161e75[_0x64b526('0x18')]=qs['sort'](_0x6078b8[_0x64b526('0x2e')][_0x64b526('0x5')]),_0x161e75['where']=qs[_0x64b526('0x46')](_[_0x64b526('0x2b')](_0x6078b8[_0x64b526('0x2e')],_0x19317d[_0x64b526('0x46')]),_0x891420);_0x6078b8[_0x64b526('0x2e')]['filter']&&(_0x161e75[_0x64b526('0x28')]=_[_0x64b526('0x40')](_0x161e75[_0x64b526('0x28')],{[Op['or']]:_[_0x64b526('0xe')](_0x891420,function(_0x172a4b){const _0x3c2815=_0x64b526;if(_0x172a4b[_0x3c2815('0x23')]!=='VIRTUAL'){const _0x4f5cbd={};return _0x4f5cbd[_0x172a4b[_0x3c2815('0x33')]]={[Op[_0x3c2815('0x2')]]:'%'+_0x6078b8[_0x3c2815('0x2e')][_0x3c2815('0x42')]+'%'},_0x4f5cbd;}})}));_0x161e75=_[_0x64b526('0x40')]({},_0x161e75,_0x6078b8[_0x64b526('0x1e')]);const _0x371803={'where':_0x161e75[_0x64b526('0x28')]};return db[_0x64b526('0x21')][_0x64b526('0x2a')](_0x371803)['then'](function(_0x1c76f5){const _0x31d6a8=_0x64b526;return _0x1f31f2['count']=_0x1c76f5,_0x6078b8[_0x31d6a8('0x2e')][_0x31d6a8('0x4c')]&&(_0x161e75[_0x31d6a8('0x45')]=[{'all':!![]}]),db['ScreenRecording'][_0x31d6a8('0x3')](_0x161e75);})[_0x64b526('0x4e')](function(_0x4ba34b){return _0x1f31f2['rows']=_0x4ba34b,_0x1f31f2;})[_0x64b526('0x4e')](respondWithFilteredResult(_0x32516d,_0x161e75))[_0x64b526('0x1d')](handleError(_0x32516d,null));},exports['show']=function(_0x1c4ec8,_0x5c464e){const _0x228ea7=_0x451b1f;let _0x3f8c3b={'raw':![],'where':{'id':_0x1c4ec8[_0x228ea7('0x3b')]['id']}};const _0x311831={};return _0x311831['model']=_[_0x228ea7('0x19')](db[_0x228ea7('0x21')][_0x228ea7('0x8')]),_0x311831[_0x228ea7('0x2e')]=_['keys'](_0x1c4ec8[_0x228ea7('0x2e')]),_0x311831[_0x228ea7('0x46')]=_[_0x228ea7('0x1b')](_0x311831[_0x228ea7('0x3d')],_0x311831[_0x228ea7('0x2e')]),_0x3f8c3b[_0x228ea7('0x44')]=_[_0x228ea7('0x1b')](_0x311831['model'],qs[_0x228ea7('0x39')](_0x1c4ec8[_0x228ea7('0x2e')][_0x228ea7('0x39')])),_0x3f8c3b[_0x228ea7('0x44')]=_0x3f8c3b[_0x228ea7('0x44')][_0x228ea7('0x1c')]?_0x3f8c3b['attributes']:_0x311831[_0x228ea7('0x3d')],_0x1c4ec8[_0x228ea7('0x2e')][_0x228ea7('0x4c')]&&(_0x3f8c3b[_0x228ea7('0x45')]=[{'all':!![]}]),_0x3f8c3b=_[_0x228ea7('0x40')]({},_0x3f8c3b,_0x1c4ec8[_0x228ea7('0x1e')]),db[_0x228ea7('0x21')]['findOne'](_0x3f8c3b)['then'](handleEntityNotFound(_0x5c464e,null))[_0x228ea7('0x4e')](respondWithResult(_0x5c464e,null))['catch'](handleError(_0x5c464e,null));},exports[_0x451b1f('0x2f')]=function(_0x26e58f,_0x13d0f9){const _0x38f611=_0x451b1f;return db[_0x38f611('0x21')]['create'](_0x26e58f[_0x38f611('0x43')],{})['then'](respondWithResult(_0x13d0f9,0xc9))[_0x38f611('0x1d')](handleError(_0x13d0f9,null));},exports['update']=function(_0x391103,_0x16a06d){const _0xb567c1=_0x451b1f;return _0x391103[_0xb567c1('0x43')]['id']&&delete _0x391103[_0xb567c1('0x43')]['id'],delete _0x391103[_0xb567c1('0x43')][_0xb567c1('0x13')],delete _0x391103[_0xb567c1('0x43')][_0xb567c1('0x47')],delete _0x391103[_0xb567c1('0x43')][_0xb567c1('0xa')],delete _0x391103[_0xb567c1('0x43')]['value'],db[_0xb567c1('0x21')][_0xb567c1('0x9')]({'where':{'id':_0x391103[_0xb567c1('0x3b')]['id']}})['then'](handleEntityNotFound(_0x16a06d,null))[_0xb567c1('0x4e')](saveUpdates(_0x391103[_0xb567c1('0x43')],null))[_0xb567c1('0x4e')](respondWithResult(_0x16a06d,null))[_0xb567c1('0x1d')](handleError(_0x16a06d,null));},exports[_0x451b1f('0x22')]=function(_0x474d25,_0xd5bbd0){const _0x59cf7b=_0x451b1f;return db[_0x59cf7b('0x21')][_0x59cf7b('0x22')]()[_0x59cf7b('0x4e')](respondWithResult(_0xd5bbd0,null))['catch'](handleError(_0xd5bbd0,null));},exports[_0x451b1f('0x10')]=function(_0x278072,_0x143cc2){const _0x3cd0eb=_0x451b1f,_0x1125f0=require(_0x3cd0eb('0x48'));let _0x5631a2=![];const _0x300af5={};return _0x278072[_0x3cd0eb('0x2e')][_0x3cd0eb('0x23')]&&_0x278072[_0x3cd0eb('0x2e')][_0x3cd0eb('0x23')]==='uniqueid'?_0x300af5[_0x3cd0eb('0x1a')]=_0x278072[_0x3cd0eb('0x3b')]['id']:_0x300af5['id']=_0x278072[_0x3cd0eb('0x3b')]['id'],db[_0x3cd0eb('0x21')]['findOne']({'where':_0x300af5,'attributes':['id','value'],'raw':!![]})[_0x3cd0eb('0x4e')](handleEntityNotFound(_0x143cc2,null))[_0x3cd0eb('0x4e')](function(_0x10540e){const _0x5e5d68=_0x3cd0eb;if(_0x10540e){const _0x1ce89e=path[_0x5e5d68('0x4f')](config[_0x5e5d68('0x15')],_0x5e5d68('0x32'),_0x10540e['value']),_0x511713=util[_0x5e5d68('0x3c')](_0x5e5d68('0x6'),_0x1ce89e);if(fs[_0x5e5d68('0x31')](_0x511713))return _0x5631a2=!![],_0x1125f0[_0x5e5d68('0xf')](_0x511713,_0x1ce89e,config[_0x5e5d68('0x30')]['recording'])['then'](function(){return _0x10540e;});return _0x10540e;}})[_0x3cd0eb('0x4e')](function(_0x32dd58){const _0x65ea32=_0x3cd0eb;if(_0x32dd58){const _0x17fd84=path[_0x65ea32('0x4f')](config[_0x65ea32('0x15')],'server/files/screen_recordings',_0x32dd58['value']);if(!fs[_0x65ea32('0x31')](_0x17fd84))throw new ValidationError('ScreenRecording\x20not\x20found');return _0x32dd58[_0x65ea32('0x26')]?_0x143cc2[_0x65ea32('0x10')](_0x17fd84,_0x32dd58['filename']+path['extname'](_0x17fd84),function(){const _0x4b9535=_0x65ea32;_0x5631a2&&fs[_0x4b9535('0x4d')](_0x17fd84);}):_0x143cc2[_0x65ea32('0x10')](_0x17fd84,function(){const _0x1d5b20=_0x65ea32;_0x5631a2&&fs[_0x1d5b20('0x4d')](_0x17fd84);});}})[_0x3cd0eb('0x1d')](function(_0x1eff53){const _0x55f438=_0x3cd0eb;if(_0x1eff53[_0x55f438('0x11')]==='ScreenRecording\x20not\x20found')_0x143cc2['status'](0x194)['send']('Not\x20found');else return handleError(_0x143cc2,null);});},exports[_0x451b1f('0x7')]=function(_0x123faf,_0x4148ac){const _0xa6753f=_0x451b1f;return db[_0xa6753f('0x21')][_0xa6753f('0x9')]({'where':{'id':_0x123faf[_0xa6753f('0x3b')]['id']}})[_0xa6753f('0x4e')](function(_0x1340f2){const _0x579503=_0xa6753f;if(!_0x1340f2)throw new ReferenceError(_0x579503('0x3e'));return _0x1340f2;})['then'](function(_0x1d0a9e){const _0x27fbf1=_0xa6753f;let _0x287f2f=path['join'](config[_0x27fbf1('0x15')],'server/files/screen_recordings',_0x1d0a9e[_0x27fbf1('0x12')]);return logger['info'](_0x27fbf1('0x3a'),_0x287f2f),!_['isNil'](_0x1d0a9e['value'])&&fs['existsSync'](_0x287f2f)&&(logger['info']('File:\x20\x22'+_0x287f2f+_0x27fbf1('0x25')),fs[_0x27fbf1('0x24')](_0x287f2f)),_0x287f2f=_0x287f2f+_0x27fbf1('0x3f'),!_['isNil'](_0x1d0a9e[_0x27fbf1('0x12')])&&fs['existsSync'](_0x287f2f)&&(logger[_0x27fbf1('0x4')](_0x27fbf1('0x1')+_0x287f2f+_0x27fbf1('0x25')),fs[_0x27fbf1('0x24')](_0x287f2f)),_0x1d0a9e;})[_0xa6753f('0x4e')](function(_0x4e042e){if(!_0x4e042e)throw new InternalError();return _0x4e042e['destroy']();})[_0xa6753f('0x4e')](function(){const _0x31137d=_0xa6753f;_0x4148ac[_0x31137d('0x4a')](0xcc)[_0x31137d('0x34')]();})[_0xa6753f('0x1d')](handleError(_0x4148ac,null));}; \ No newline at end of file diff --git a/server/api/screenRecording/screenRecording.model.js b/server/api/screenRecording/screenRecording.model.js index cbe70e2..3874b82 100644 --- a/server/api/screenRecording/screenRecording.model.js +++ b/server/api/screenRecording/screenRecording.model.js @@ -1 +1 @@ -const a535_0x2631=['interactionid','screen_recordings','exports','./screenRecording.attributes'];(function(_0x527c12,_0x26317d){const _0x5ea320=function(_0x39bd2f){while(--_0x39bd2f){_0x527c12['push'](_0x527c12['shift']());}};_0x5ea320(++_0x26317d);}(a535_0x2631,0x17c));const a535_0x5ea3=function(_0x527c12,_0x26317d){_0x527c12=_0x527c12-0x0;let _0x5ea320=a535_0x2631[_0x527c12];return _0x5ea320;};const _0x498883=a535_0x5ea3;'use strict';const attributes=require(_0x498883('0x3'));module[_0x498883('0x2')]=function(_0x39bd2f){const _0x5341b6=_0x498883,_0x2a6f8d=_0x39bd2f['define']('ScreenRecording',attributes,{'tableName':_0x5341b6('0x1'),'paranoid':![],'indexes':[{'name':_0x5341b6('0x0'),'fields':[_0x5341b6('0x0')]}],'timestamps':!![]});return _0x2a6f8d;}; \ No newline at end of file +const a535_0x31c6=['screen_recordings','interactionid','ScreenRecording','exports','define'];(function(_0x11028c,_0x31c616){const _0x40b023=function(_0xad4e64){while(--_0xad4e64){_0x11028c['push'](_0x11028c['shift']());}};_0x40b023(++_0x31c616);}(a535_0x31c6,0xf9));const a535_0x40b0=function(_0x11028c,_0x31c616){_0x11028c=_0x11028c-0x0;let _0x40b023=a535_0x31c6[_0x11028c];return _0x40b023;};const _0x50629a=a535_0x40b0;'use strict';const attributes=require('./screenRecording.attributes');module[_0x50629a('0x4')]=function(_0xad4e64){const _0x42d6f6=_0x50629a,_0x360a2a=_0xad4e64[_0x42d6f6('0x0')](_0x42d6f6('0x3'),attributes,{'tableName':_0x42d6f6('0x1'),'paranoid':![],'indexes':[{'name':_0x42d6f6('0x2'),'fields':[_0x42d6f6('0x2')]}],'timestamps':!![]});return _0x360a2a;}; \ No newline at end of file diff --git a/server/api/setting/index.js b/server/api/setting/index.js index 21448f3..b1ca9ac 100644 --- a/server/api/setting/index.js +++ b/server/api/setting/index.js @@ -1 +1 @@ -const a536_0x267e=['isAuthenticated','favicon','post','root','getLogo','show','/:id/logo_login','exports','originalname','express','addLogoLogin','util','addLogo','logo','../../config/environment','/:id/preferred','file','put','index','addPreferred','get','format','gdpr','logologin','./setting.controller','/:id/favicon','multer','diskStorage','/:id/logo','Router','getLogoLogin','getFavicon','files/images/logos/','single'];(function(_0x404622,_0x267ef4){const _0x27485c=function(_0x10ea0b){while(--_0x10ea0b){_0x404622['push'](_0x404622['shift']());}};_0x27485c(++_0x267ef4);}(a536_0x267e,0xda));const a536_0x2748=function(_0x404622,_0x267ef4){_0x404622=_0x404622-0x0;let _0x27485c=a536_0x267e[_0x404622];return _0x27485c;};const _0x462b92=a536_0x2748;'use strict';const multer=require(_0x462b92('0xc')),util=require(_0x462b92('0x1f')),path=require('path'),express=require(_0x462b92('0x1d')),router=express[_0x462b92('0xf')](),auth=require('../../components/auth/service'),config=require(_0x462b92('0x0')),controller=require(_0x462b92('0xa')),upload=_0x10ea0b=>multer({'storage':multer[_0x462b92('0xd')]({'destination':function(_0x40dd4b,_0x423bd8,_0x29c875){const _0x2e5243=_0x462b92;_0x29c875(null,path['join'](config[_0x2e5243('0x17')],_0x2e5243('0x12')));},'filename':function(_0x388c32,_0x593973,_0x3f0efe){const _0x55e40b=_0x462b92;_0x3f0efe(null,util[_0x55e40b('0x7')]('%s%s',_0x10ea0b,path['extname'](_0x593973[_0x55e40b('0x1c')])));}})});router[_0x462b92('0x6')]('/',auth[_0x462b92('0x14')](),controller[_0x462b92('0x4')]),router[_0x462b92('0x6')]('/:id',controller[_0x462b92('0x19')]),router[_0x462b92('0x6')](_0x462b92('0xe'),controller[_0x462b92('0x18')]),router[_0x462b92('0x6')](_0x462b92('0x1a'),controller[_0x462b92('0x10')]),router[_0x462b92('0x6')]('/:id/gdpr',controller[_0x462b92('0x8')]),router[_0x462b92('0x6')](_0x462b92('0x1'),controller['getPreferred']),router[_0x462b92('0x6')](_0x462b92('0xb'),controller[_0x462b92('0x11')]),router[_0x462b92('0x16')](_0x462b92('0xe'),upload(_0x462b92('0x21'))[_0x462b92('0x13')](_0x462b92('0x2')),controller[_0x462b92('0x20')]),router[_0x462b92('0x16')](_0x462b92('0x1a'),upload(_0x462b92('0x9'))[_0x462b92('0x13')](_0x462b92('0x2')),controller[_0x462b92('0x1e')]),router['post'](_0x462b92('0x1'),upload('preferred')[_0x462b92('0x13')](_0x462b92('0x2')),controller[_0x462b92('0x5')]),router['post'](_0x462b92('0xb'),upload(_0x462b92('0x15'))[_0x462b92('0x13')](_0x462b92('0x2')),controller['addFavicon']),router[_0x462b92('0x3')]('/:id',auth['isAuthenticated'](),controller['update']),module[_0x462b92('0x1b')]=router; \ No newline at end of file +const a536_0x1def=['logologin','diskStorage','update','post','/:id','/:id/gdpr','put','/:id/favicon','extname','/:id/logo_login','root','logo','file','getLogo','exports','../../config/environment','single','addLogoLogin','path','format','addFavicon','files/images/logos/','index','originalname','/:id/logo','multer','/:id/preferred','get','getLogoLogin','getPreferred','isAuthenticated','addPreferred','Router'];(function(_0x3e4243,_0x1defe6){const _0x27ba3e=function(_0x905ef0){while(--_0x905ef0){_0x3e4243['push'](_0x3e4243['shift']());}};_0x27ba3e(++_0x1defe6);}(a536_0x1def,0x8a));const a536_0x27ba=function(_0x3e4243,_0x1defe6){_0x3e4243=_0x3e4243-0x0;let _0x27ba3e=a536_0x1def[_0x3e4243];return _0x27ba3e;};const _0x39b626=a536_0x27ba;'use strict';const multer=require(_0x39b626('0x13')),util=require('util'),path=require(_0x39b626('0xc')),express=require('express'),router=express[_0x39b626('0x1a')](),auth=require('../../components/auth/service'),config=require(_0x39b626('0x9')),controller=require('./setting.controller'),upload=_0x905ef0=>multer({'storage':multer[_0x39b626('0x1c')]({'destination':function(_0x48a82b,_0x409f07,_0x2c1611){const _0x300efe=_0x39b626;_0x2c1611(null,path['join'](config[_0x300efe('0x4')],_0x300efe('0xf')));},'filename':function(_0x3d0637,_0x544ed6,_0x5b1ca2){const _0x368e88=_0x39b626;_0x5b1ca2(null,util[_0x368e88('0xd')]('%s%s',_0x905ef0,path[_0x368e88('0x2')](_0x544ed6[_0x368e88('0x11')])));}})});router[_0x39b626('0x15')]('/',auth[_0x39b626('0x18')](),controller[_0x39b626('0x10')]),router['get'](_0x39b626('0x1f'),controller['show']),router['get'](_0x39b626('0x12'),controller[_0x39b626('0x7')]),router[_0x39b626('0x15')](_0x39b626('0x3'),controller[_0x39b626('0x16')]),router['get'](_0x39b626('0x20'),controller['gdpr']),router[_0x39b626('0x15')](_0x39b626('0x14'),controller[_0x39b626('0x17')]),router[_0x39b626('0x15')]('/:id/favicon',controller['getFavicon']),router[_0x39b626('0x1e')](_0x39b626('0x12'),upload(_0x39b626('0x5'))[_0x39b626('0xa')]('file'),controller['addLogo']),router[_0x39b626('0x1e')](_0x39b626('0x3'),upload(_0x39b626('0x1b'))[_0x39b626('0xa')]('file'),controller[_0x39b626('0xb')]),router[_0x39b626('0x1e')]('/:id/preferred',upload('preferred')[_0x39b626('0xa')](_0x39b626('0x6')),controller[_0x39b626('0x19')]),router[_0x39b626('0x1e')](_0x39b626('0x1'),upload('favicon')['single']('file'),controller[_0x39b626('0xe')]),router[_0x39b626('0x0')](_0x39b626('0x1f'),auth[_0x39b626('0x18')](),controller[_0x39b626('0x1d')]),module[_0x39b626('0x8')]=router; \ No newline at end of file diff --git a/server/api/setting/setting.attributes.js b/server/api/setting/setting.attributes.js index 5682c01..12fcbc9 100644 --- a/server/api/setting/setting.attributes.js +++ b/server/api/setting/setting.attributes.js @@ -1 +1 @@ -const a537_0x5885=['INTEGER','UNSIGNED','BOOLEAN','min_internal','STRING','alternate','/var/opt/motion2/server/files/sounds/converted','min_mailbox'];(function(_0x4dd262,_0x588522){const _0x9e8534=function(_0x53151b){while(--_0x53151b){_0x4dd262['push'](_0x4dd262['shift']());}};_0x9e8534(++_0x588522);}(a537_0x5885,0x163));const a537_0x9e85=function(_0x4dd262,_0x588522){_0x4dd262=_0x4dd262-0x0;let _0x9e8534=a537_0x5885[_0x4dd262];return _0x9e8534;};const _0xa64371=a537_0x9e85;'use strict';const Sequelize=require('sequelize');module['exports']={'min_internal':{'type':Sequelize[_0xa64371('0x5')](0xb),'unique':_0xa64371('0x0'),'defaultValue':0x3e8},'min_mailbox':{'type':Sequelize['INTEGER'](0xb),'unique':_0xa64371('0x4'),'defaultValue':0x3e8},'agi_port':{'type':Sequelize[_0xa64371('0x5')](0xb),'defaultValue':0x11dd},'soundPath':{'type':Sequelize['STRING'],'defaultValue':_0xa64371('0x3')},'logo':{'type':Sequelize[_0xa64371('0x1')]},'defaultLogo':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'loginLogo':{'type':Sequelize[_0xa64371('0x1')]},'defaultLoginLogo':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'headerWhiteLabel':{'type':Sequelize[_0xa64371('0x1')]},'defaultHeaderWhiteLabel':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'securePassword':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'firstSetup':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'stunaddr':{'type':Sequelize[_0xa64371('0x1')]},'turnaddr':{'type':Sequelize['STRING']},'turnusername':{'type':Sequelize[_0xa64371('0x1')]},'turnpassword':{'type':Sequelize[_0xa64371('0x1')]},'pageTitle':{'type':Sequelize[_0xa64371('0x1')]},'defaultPageTitle':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'callRecordingEncryption':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'passwordExpiresDays':{'type':Sequelize[_0xa64371('0x5')](0xb),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':Sequelize[_0xa64371('0x1')],'defaultValue':'https://www.xcally.com/bar/phonebar/autoupdater.xml'},'enableEmailPreview':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':![]},'split':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'splitSizeCsv':{'type':Sequelize[_0xa64371('0x5')],'defaultValue':0x1388},'splitSizePdf':{'type':Sequelize[_0xa64371('0x5')],'defaultValue':0x1388},'splitSizeXlsx':{'type':Sequelize['INTEGER'],'defaultValue':0x1388},'messagesAlignment':{'type':Sequelize['STRING'],'defaultValue':_0xa64371('0x2')},'chatTimeout':{'type':Sequelize[_0xa64371('0x5')],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'preferred':{'type':Sequelize[_0xa64371('0x1')]},'defaultPreferred':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'rtlSupport':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':![]},'defaultScreenRecordingPath':{'type':Sequelize[_0xa64371('0x1')]},'allowedLoginAttempts':{'type':Sequelize[_0xa64371('0x5')],'defaultValue':0x5},'blockDuration':{'type':Sequelize[_0xa64371('0x5')],'defaultValue':0xa},'favicon':{'type':Sequelize[_0xa64371('0x1')]},'defaultFavicon':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'loginMailFrequency':{'type':Sequelize['INTEGER'],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':![]},'automaticTranscribe':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transcribeAccountId':{'type':Sequelize['INTEGER']},'transcribeRegion':{'type':Sequelize[_0xa64371('0x1')]},'sentiment':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':![]},'automaticSentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'sentimentAccountId':{'type':Sequelize['INTEGER']},'sentimentRegion':{'type':Sequelize[_0xa64371('0x1')]},'language':{'type':Sequelize['STRING']},'bucket':{'type':Sequelize[_0xa64371('0x1')]},'googleSsoEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enforcePasswordHistory':{'type':Sequelize[_0xa64371('0x7')],'defaultValue':!![]},'passwordHistoryLimit':{'type':Sequelize[_0xa64371('0x5')](0x2)[_0xa64371('0x6')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}}; \ No newline at end of file +const a537_0x3dc5=['alternate','min_internal','min_mailbox','exports','https://www.xcally.com/bar/phonebar/autoupdater.xml','STRING','BOOLEAN','INTEGER','UNSIGNED','/var/opt/motion2/server/files/sounds/converted','sequelize'];(function(_0x48646c,_0x3dc5f7){const _0x21322e=function(_0x143c4b){while(--_0x143c4b){_0x48646c['push'](_0x48646c['shift']());}};_0x21322e(++_0x3dc5f7);}(a537_0x3dc5,0x136));const a537_0x2132=function(_0x48646c,_0x3dc5f7){_0x48646c=_0x48646c-0x0;let _0x21322e=a537_0x3dc5[_0x48646c];return _0x21322e;};const _0x5d9689=a537_0x2132;'use strict';const Sequelize=require(_0x5d9689('0x8'));module[_0x5d9689('0x1')]={'min_internal':{'type':Sequelize[_0x5d9689('0x5')](0xb),'unique':_0x5d9689('0xa'),'defaultValue':0x3e8},'min_mailbox':{'type':Sequelize[_0x5d9689('0x5')](0xb),'unique':_0x5d9689('0x0'),'defaultValue':0x3e8},'agi_port':{'type':Sequelize[_0x5d9689('0x5')](0xb),'defaultValue':0x11dd},'soundPath':{'type':Sequelize[_0x5d9689('0x3')],'defaultValue':_0x5d9689('0x7')},'logo':{'type':Sequelize['STRING']},'defaultLogo':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':!![]},'loginLogo':{'type':Sequelize['STRING']},'defaultLoginLogo':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'headerWhiteLabel':{'type':Sequelize[_0x5d9689('0x3')]},'defaultHeaderWhiteLabel':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':!![]},'securePassword':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'firstSetup':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':!![]},'stunaddr':{'type':Sequelize[_0x5d9689('0x3')]},'turnaddr':{'type':Sequelize[_0x5d9689('0x3')]},'turnusername':{'type':Sequelize[_0x5d9689('0x3')]},'turnpassword':{'type':Sequelize['STRING']},'pageTitle':{'type':Sequelize[_0x5d9689('0x3')]},'defaultPageTitle':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':!![]},'callRecordingEncryption':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'passwordExpiresDays':{'type':Sequelize[_0x5d9689('0x5')](0xb),'defaultValue':0x5a},'phoneBarAutoUpdater':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':!![]},'phoneBarAutoUpdaterUrl':{'type':Sequelize[_0x5d9689('0x3')],'defaultValue':_0x5d9689('0x2')},'enableEmailPreview':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':![]},'split':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':!![]},'splitSizeCsv':{'type':Sequelize[_0x5d9689('0x5')],'defaultValue':0x1388},'splitSizePdf':{'type':Sequelize[_0x5d9689('0x5')],'defaultValue':0x1388},'splitSizeXlsx':{'type':Sequelize['INTEGER'],'defaultValue':0x1388},'messagesAlignment':{'type':Sequelize[_0x5d9689('0x3')],'defaultValue':_0x5d9689('0x9')},'chatTimeout':{'type':Sequelize[_0x5d9689('0x5')],'defaultValue':0x1e},'phoneBarRememberMeEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'preferred':{'type':Sequelize[_0x5d9689('0x3')]},'defaultPreferred':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'rtlSupport':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'defaultScreenRecordingPath':{'type':Sequelize[_0x5d9689('0x3')]},'allowedLoginAttempts':{'type':Sequelize[_0x5d9689('0x5')],'defaultValue':0x5},'blockDuration':{'type':Sequelize[_0x5d9689('0x5')],'defaultValue':0xa},'favicon':{'type':Sequelize['STRING']},'defaultFavicon':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':!![]},'loginMailFrequency':{'type':Sequelize[_0x5d9689('0x5')],'defaultValue':0xa,'validate':{'min':0xa}},'transcribe':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':![]},'automaticTranscribe':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':![]},'transcribeAccountId':{'type':Sequelize[_0x5d9689('0x5')]},'transcribeRegion':{'type':Sequelize[_0x5d9689('0x3')]},'sentiment':{'type':Sequelize[_0x5d9689('0x4')],'defaultValue':![]},'automaticSentiment':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'sentimentAccountId':{'type':Sequelize[_0x5d9689('0x5')]},'sentimentRegion':{'type':Sequelize[_0x5d9689('0x3')]},'language':{'type':Sequelize[_0x5d9689('0x3')]},'bucket':{'type':Sequelize[_0x5d9689('0x3')]},'googleSsoEnabled':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'enforcePasswordHistory':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'passwordHistoryLimit':{'type':Sequelize[_0x5d9689('0x5')](0x2)[_0x5d9689('0x6')],'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 a201ab8..9937613 100644 --- a/server/api/setting/setting.controller.js +++ b/server/api/setting/setting.controller.js @@ -1 +1 @@ -const a538_0xaa93=['preferred','sendStatus','VIRTUAL','addLogoLogin','offset','like','existsSync','file','keys','addLogo','send','getLicense','custom','getLogo','filename','filter','rows','includeAll','model','merge','favicon','default_favicon.ico','index','files/images/logos','default_preferred.png','sequelize','download','logo','nolimit','show','intersection','Setting','../../config/license/util','count','map','order','root','upperFirst','fields','path','include','sort','json','length','getPreferred','addFavicon','fieldName','\x20not\x20found','defaultLoginLogo','undefined','status','join','attributes','loginLogo','getLogoLogin','name','body','../../components/parsers/qs','pick','api','default_loginLogo.svg','toLower','update','getFavicon','query','lodash','defaultPreferred','set','type','default','defaultFavicon','securePassword','then','limit','Content-Range','filters','key','options','where','catch','defaultLogo','findOne','error','params'];(function(_0xdf88a,_0xaa9347){const _0x3e82df=function(_0x3cc0f0){while(--_0x3cc0f0){_0xdf88a['push'](_0xdf88a['shift']());}};_0x3e82df(++_0xaa9347);}(a538_0xaa93,0x163));const a538_0x3e82=function(_0xdf88a,_0xaa9347){_0xdf88a=_0xdf88a-0x0;let _0x3e82df=a538_0xaa93[_0xdf88a];return _0x3e82df;};const _0x1b37d9=a538_0x3e82;'use strict';const path=require(_0x1b37d9('0x14')),fs=require('fs'),_=require(_0x1b37d9('0x2e')),qs=require(_0x1b37d9('0x26')),logger=require('../../config/logger')(_0x1b37d9('0x28')),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x1b37d9('0x6')),utilLicense=require(_0x1b37d9('0xd'));function respondWithResult(_0x3cc0f0,_0x423647){return _0x423647=_0x423647||0xc8,function(_0x231e74){const _0x2e128a=a538_0x3e82;if(_0x231e74)return _0x3cc0f0[_0x2e128a('0x1f')](_0x423647)[_0x2e128a('0x17')](_0x231e74);};}function respondWithFilteredResult(_0x261f7e,_0x590f60){return function(_0x34044a){const _0x369efa=a538_0x3e82;if(_0x34044a){const _0x2fd54d=_0x34044a['count'],_0x5d6b0c=_0x590f60[_0x369efa('0x45')];let _0x46dfb8=_0x590f60[_0x369efa('0x45')]+_0x590f60['limit'],_0x51a888;return _0x46dfb8>=_0x2fd54d?(_0x46dfb8=_0x2fd54d,_0x51a888=0xc8):_0x51a888=0xce,_0x261f7e[_0x369efa('0x1f')](_0x51a888),_0x261f7e[_0x369efa('0x30')](_0x369efa('0x37'),_0x5d6b0c+'-'+_0x46dfb8+'/'+_0x2fd54d)[_0x369efa('0x17')](_0x34044a);}return null;};}function saveUpdates(_0x568640){return function(_0xfaa2d2){const _0x4ff4da=a538_0x3e82;if(_0xfaa2d2)return _0xfaa2d2[_0x4ff4da('0x2b')](_0x568640)[_0x4ff4da('0x35')](function(_0x3a3ff3){return _0x3a3ff3;});return null;};}function handleEntityNotFound(_0x1afd5a){return function(_0x68710d){const _0x2f0515=a538_0x3e82;return!_0x68710d&&_0x1afd5a[_0x2f0515('0x42')](0x194),_0x68710d;};}function handleError(_0x4f3e1a,_0xa95545){return _0xa95545=_0xa95545||0x1f4,function(_0x2b7d40){const _0x1ee66f=a538_0x3e82;logger[_0x1ee66f('0x3f')](_0x2b7d40['stack']),_0x2b7d40[_0x1ee66f('0x24')]&&delete _0x2b7d40[_0x1ee66f('0x24')],_0x4f3e1a[_0x1ee66f('0x1f')](_0xa95545)[_0x1ee66f('0x4b')](_0x2b7d40);};}exports[_0x1b37d9('0x3')]=function(_0x86529c,_0x1b1330){const _0x3440af=_0x1b37d9;let _0x4e68d5={};const _0xbbf2f9={},_0x1474a4={'count':0x0,'rows':[]},_0x5150a4=_[_0x3440af('0xf')](db[_0x3440af('0xc')]['rawAttributes'],function(_0x173887){const _0x229ae5=_0x3440af;return{'name':_0x173887[_0x229ae5('0x1b')],'type':_0x173887[_0x229ae5('0x31')][_0x229ae5('0x39')]};});_0xbbf2f9[_0x3440af('0x53')]=_[_0x3440af('0xf')](_0x5150a4,_0x3440af('0x24')),_0xbbf2f9[_0x3440af('0x2d')]=_[_0x3440af('0x49')](_0x86529c[_0x3440af('0x2d')]),_0xbbf2f9[_0x3440af('0x38')]=_[_0x3440af('0xb')](_0xbbf2f9[_0x3440af('0x53')],_0xbbf2f9['query']),_0x4e68d5['attributes']=_['intersection'](_0xbbf2f9[_0x3440af('0x53')],qs[_0x3440af('0x13')](_0x86529c[_0x3440af('0x2d')][_0x3440af('0x13')])),_0x4e68d5[_0x3440af('0x21')]=_0x4e68d5[_0x3440af('0x21')][_0x3440af('0x18')]?_0x4e68d5[_0x3440af('0x21')]:_0xbbf2f9['model'];typeof _0x86529c[_0x3440af('0x2d')][_0x3440af('0x9')]===_0x3440af('0x1e')&&(_0x4e68d5[_0x3440af('0x36')]=qs['limit'](_0x86529c[_0x3440af('0x2d')][_0x3440af('0x36')]),_0x4e68d5[_0x3440af('0x45')]=qs[_0x3440af('0x45')](_0x86529c['query']['offset']));_0x4e68d5[_0x3440af('0x10')]=qs[_0x3440af('0x16')](_0x86529c[_0x3440af('0x2d')]['sort']),_0x4e68d5[_0x3440af('0x3b')]=qs[_0x3440af('0x38')](_[_0x3440af('0x27')](_0x86529c[_0x3440af('0x2d')],_0xbbf2f9[_0x3440af('0x38')]),_0x5150a4);_0x86529c[_0x3440af('0x2d')][_0x3440af('0x50')]&&(_0x4e68d5[_0x3440af('0x3b')]=_[_0x3440af('0x0')](_0x4e68d5['where'],{[Op['or']]:_[_0x3440af('0xf')](_0x5150a4,function(_0x5416b8){const _0xafc3a1=_0x3440af;if(_0x5416b8[_0xafc3a1('0x31')]!==_0xafc3a1('0x43')){const _0x1e65be={};return _0x1e65be[_0x5416b8['name']]={[Op[_0xafc3a1('0x46')]]:'%'+_0x86529c['query'][_0xafc3a1('0x50')]+'%'},_0x1e65be;}})}));_0x4e68d5=_[_0x3440af('0x0')]({},_0x4e68d5,_0x86529c[_0x3440af('0x3a')]);const _0x49b472={'where':_0x4e68d5[_0x3440af('0x3b')]};return db['Setting'][_0x3440af('0xe')](_0x49b472)['then'](function(_0x191efa){const _0x487204=_0x3440af;return _0x1474a4[_0x487204('0xe')]=_0x191efa,_0x86529c['query'][_0x487204('0x52')]&&(_0x4e68d5[_0x487204('0x15')]=[{'all':!![]}]),db[_0x487204('0xc')]['findAll'](_0x4e68d5);})['then'](function(_0x5881d7){const _0x4a69b6=_0x3440af;return _0x1474a4[_0x4a69b6('0x51')]=_0x5881d7,_0x1474a4;})[_0x3440af('0x35')](respondWithFilteredResult(_0x1b1330,_0x4e68d5))['catch'](handleError(_0x1b1330,null));},exports[_0x1b37d9('0xa')]=function(_0x54d7b2,_0x704b1d){const _0x5d21a7=_0x1b37d9;let _0x39f23d={'raw':![],'where':{'id':_0x54d7b2[_0x5d21a7('0x40')]['id']}};const _0x335739={};return _0x335739[_0x5d21a7('0x53')]=_[_0x5d21a7('0x49')](db['Setting']['rawAttributes']),_0x335739[_0x5d21a7('0x2d')]=_[_0x5d21a7('0x49')](_0x54d7b2[_0x5d21a7('0x2d')]),_0x335739['filters']=_['intersection'](_0x335739[_0x5d21a7('0x53')],_0x335739[_0x5d21a7('0x2d')]),_0x39f23d[_0x5d21a7('0x21')]=_[_0x5d21a7('0xb')](_0x335739['model'],qs['fields'](_0x54d7b2['query']['fields'])),_0x39f23d[_0x5d21a7('0x21')]=_0x39f23d[_0x5d21a7('0x21')]['length']?_0x39f23d['attributes']:_0x335739[_0x5d21a7('0x53')],_0x54d7b2['query']['includeAll']&&(_0x39f23d[_0x5d21a7('0x15')]=[{'all':!![]}]),_0x39f23d=_[_0x5d21a7('0x0')]({},_0x39f23d,_0x54d7b2['options']),db[_0x5d21a7('0xc')][_0x5d21a7('0x3e')](_0x39f23d)[_0x5d21a7('0x35')](handleEntityNotFound(_0x704b1d,null))[_0x5d21a7('0x35')](respondWithResult(_0x704b1d,null))[_0x5d21a7('0x3c')](handleError(_0x704b1d,null));},exports[_0x1b37d9('0x2b')]=function(_0x342b8e,_0xd5eacf){const _0x223ae3=_0x1b37d9;return _0x342b8e[_0x223ae3('0x25')]['id']&&delete _0x342b8e['body']['id'],db[_0x223ae3('0xc')][_0x223ae3('0x3e')]({'where':{'id':_0x342b8e[_0x223ae3('0x40')]['id']}})[_0x223ae3('0x35')](handleEntityNotFound(_0xd5eacf,null))[_0x223ae3('0x35')](saveUpdates(_0x342b8e[_0x223ae3('0x25')],null))[_0x223ae3('0x35')](respondWithResult(_0xd5eacf,null))[_0x223ae3('0x3c')](handleError(_0xd5eacf,null));},exports[_0x1b37d9('0x4a')]=function(_0x5e1241,_0x374686){const _0x381653=_0x1b37d9;return _0x5e1241[_0x381653('0x48')]&&_0x5e1241['file'][_0x381653('0x4f')]&&(_0x5e1241[_0x381653('0x25')][_0x381653('0x8')]=_0x5e1241[_0x381653('0x48')]['filename']),db[_0x381653('0xc')][_0x381653('0x3e')]({'where':{'id':_0x5e1241[_0x381653('0x40')]['id']}})[_0x381653('0x35')](handleEntityNotFound(_0x374686,null))[_0x381653('0x35')](saveUpdates(_0x5e1241['body'],null))[_0x381653('0x35')](respondWithResult(_0x374686,null))[_0x381653('0x3c')](handleError(_0x374686,null));},exports[_0x1b37d9('0x44')]=function(_0x3080cd,_0x4cd4f8){const _0x364e33=_0x1b37d9;return _0x3080cd[_0x364e33('0x48')]&&_0x3080cd[_0x364e33('0x48')][_0x364e33('0x4f')]&&(_0x3080cd[_0x364e33('0x25')][_0x364e33('0x22')]=_0x3080cd['file'][_0x364e33('0x4f')]),db[_0x364e33('0xc')]['findOne']({'where':{'id':_0x3080cd[_0x364e33('0x40')]['id']}})['then'](handleEntityNotFound(_0x4cd4f8,null))['then'](saveUpdates(_0x3080cd[_0x364e33('0x25')],null))['then'](respondWithResult(_0x4cd4f8,null))['catch'](handleError(_0x4cd4f8,null));},exports[_0x1b37d9('0x4e')]=function(_0x451ef7,_0xe6a5a4){const _0x4b59e0=_0x1b37d9,_0x224ca7=path[_0x4b59e0('0x20')](config[_0x4b59e0('0x11')],_0x4b59e0('0x4'));let _0x2926cf={'custom':![]};return utilLicense['getLicense']()['then'](function(_0x70fe57){const _0x543b94=_0x4b59e0;return _0x70fe57&&(_0x2926cf=_0x70fe57),db['Setting'][_0x543b94('0x3e')]({'where':{'id':_0x451ef7[_0x543b94('0x40')]['id']},'attributes':[_0x543b94('0x8'),_0x543b94('0x22'),'preferred','favicon',_0x543b94('0x3d'),_0x543b94('0x1d'),'defaultPreferred','defaultFavicon'],'raw':!![]});})['then'](handleEntityNotFound(_0xe6a5a4,null))['then'](function(_0x2ba1bc){const _0x29dc07=_0x4b59e0;if(_0x2ba1bc){let _0x5b37fa=_0x2ba1bc[_0x29dc07('0x8')]&&fs[_0x29dc07('0x47')](path['join'](_0x224ca7,_[_0x29dc07('0x2a')](_0x2ba1bc[_0x29dc07('0x8')])))?path[_0x29dc07('0x20')](_0x224ca7,_[_0x29dc07('0x2a')](_0x2ba1bc[_0x29dc07('0x8')])):path['join'](_0x224ca7,_['toLower']('default_logo.svg'));const _0x15b092=_0x29dc07('0x32')+_[_0x29dc07('0x12')]('logo');(_0x2ba1bc[_0x15b092]||!_0x2926cf[_0x29dc07('0x4d')])&&(_0x5b37fa=path['join'](_0x224ca7,_[_0x29dc07('0x2a')]('default_logo.svg')));if(!fs[_0x29dc07('0x47')](_0x5b37fa))throw new ValidationError(_[_0x29dc07('0x12')](_0x29dc07('0x8'))+_0x29dc07('0x1c'));return _0xe6a5a4[_0x29dc07('0x7')](_0x5b37fa);}})[_0x4b59e0('0x3c')](handleError(_0xe6a5a4,null));},exports[_0x1b37d9('0x23')]=function(_0x6abdc1,_0x4bb32d){const _0x5f472f=_0x1b37d9,_0x257a0a=path[_0x5f472f('0x20')](config[_0x5f472f('0x11')],_0x5f472f('0x4'));let _0x561963={'custom':![]};return utilLicense[_0x5f472f('0x4c')]()['then'](function(_0x24782e){const _0xaf9206=_0x5f472f;return _0x24782e&&(_0x561963=_0x24782e),db[_0xaf9206('0xc')][_0xaf9206('0x3e')]({'where':{'id':_0x6abdc1[_0xaf9206('0x40')]['id']},'attributes':['logo',_0xaf9206('0x22'),'preferred',_0xaf9206('0x1'),_0xaf9206('0x3d'),_0xaf9206('0x1d'),_0xaf9206('0x2f'),_0xaf9206('0x33')],'raw':!![]});})[_0x5f472f('0x35')](handleEntityNotFound(_0x4bb32d,null))['then'](function(_0x1fc4f2){const _0xb31dc3=_0x5f472f;if(_0x1fc4f2){let _0x18f43e=_0x1fc4f2[_0xb31dc3('0x22')]&&fs[_0xb31dc3('0x47')](path[_0xb31dc3('0x20')](_0x257a0a,_[_0xb31dc3('0x2a')](_0x1fc4f2[_0xb31dc3('0x22')])))?path[_0xb31dc3('0x20')](_0x257a0a,_[_0xb31dc3('0x2a')](_0x1fc4f2[_0xb31dc3('0x22')])):path[_0xb31dc3('0x20')](_0x257a0a,_[_0xb31dc3('0x2a')](_0xb31dc3('0x29')));const _0x116226=_0xb31dc3('0x32')+_['upperFirst'](_0xb31dc3('0x22'));(_0x1fc4f2[_0x116226]||!_0x561963[_0xb31dc3('0x4d')])&&(_0x18f43e=path['join'](_0x257a0a,_[_0xb31dc3('0x2a')](_0xb31dc3('0x29'))));if(!fs['existsSync'](_0x18f43e))throw new ValidationError(_[_0xb31dc3('0x12')]('loginLogo')+_0xb31dc3('0x1c'));return _0x4bb32d['download'](_0x18f43e);}})[_0x5f472f('0x3c')](handleError(_0x4bb32d,null));},exports['gdpr']=function(_0x2d4270,_0x5577df){const _0x56447d=_0x1b37d9;return db['Setting'][_0x56447d('0x3e')]({'where':{'id':_0x2d4270[_0x56447d('0x40')]['id']},'attributes':[_0x56447d('0x34')]})['then'](respondWithResult(_0x5577df,null))[_0x56447d('0x3c')](handleError(_0x5577df,null));},exports['addPreferred']=function(_0x158278,_0xf5099c){const _0x248713=_0x1b37d9;return _0x158278['file']&&_0x158278[_0x248713('0x48')][_0x248713('0x4f')]&&(_0x158278[_0x248713('0x25')][_0x248713('0x41')]=_0x158278['file']['filename']),db[_0x248713('0xc')][_0x248713('0x3e')]({'where':{'id':_0x158278['params']['id']}})[_0x248713('0x35')](handleEntityNotFound(_0xf5099c,null))[_0x248713('0x35')](saveUpdates(_0x158278[_0x248713('0x25')],null))[_0x248713('0x35')](respondWithResult(_0xf5099c,null))[_0x248713('0x3c')](handleError(_0xf5099c,null));},exports[_0x1b37d9('0x19')]=function(_0xda9c2b,_0x4381b6){const _0x2e35c8=_0x1b37d9,_0x3a1dd5=path[_0x2e35c8('0x20')](config['root'],'files/images/logos');let _0x1d5cea={'custom':![]};return utilLicense[_0x2e35c8('0x4c')]()[_0x2e35c8('0x35')](function(_0x264b03){const _0x2ede5f=_0x2e35c8;return _0x264b03&&(_0x1d5cea=_0x264b03),db['Setting']['findOne']({'where':{'id':_0xda9c2b[_0x2ede5f('0x40')]['id']},'attributes':['logo',_0x2ede5f('0x22'),_0x2ede5f('0x41'),_0x2ede5f('0x1'),_0x2ede5f('0x3d'),_0x2ede5f('0x1d'),'defaultPreferred',_0x2ede5f('0x33')],'raw':!![]});})[_0x2e35c8('0x35')](handleEntityNotFound(_0x4381b6,null))['then'](function(_0x5b4d53){const _0x1a9a88=_0x2e35c8;if(_0x5b4d53){let _0x3c2ab4=_0x5b4d53[_0x1a9a88('0x41')]&&fs[_0x1a9a88('0x47')](path[_0x1a9a88('0x20')](_0x3a1dd5,_[_0x1a9a88('0x2a')](_0x5b4d53[_0x1a9a88('0x41')])))?path[_0x1a9a88('0x20')](_0x3a1dd5,_[_0x1a9a88('0x2a')](_0x5b4d53['preferred'])):path[_0x1a9a88('0x20')](_0x3a1dd5,_['toLower']('default_preferred.png'));const _0x53d113=_0x1a9a88('0x32')+_[_0x1a9a88('0x12')](_0x1a9a88('0x41'));(_0x5b4d53[_0x53d113]||!_0x1d5cea[_0x1a9a88('0x4d')]||!_0x1d5cea[_0x1a9a88('0x41')])&&(_0x3c2ab4=path['join'](_0x3a1dd5,_[_0x1a9a88('0x2a')](_0x1a9a88('0x5'))));if(!fs['existsSync'](_0x3c2ab4))throw new ValidationError(_[_0x1a9a88('0x12')](_0x1a9a88('0x41'))+'\x20not\x20found');return _0x4381b6[_0x1a9a88('0x7')](_0x3c2ab4);}})['catch'](handleError(_0x4381b6,null));},exports[_0x1b37d9('0x1a')]=function(_0x476250,_0x42ec21){const _0x1a1549=_0x1b37d9;return _0x476250['file']&&_0x476250['file'][_0x1a1549('0x4f')]&&(_0x476250['body'][_0x1a1549('0x1')]=_0x476250['file'][_0x1a1549('0x4f')]),db['Setting'][_0x1a1549('0x3e')]({'where':{'id':_0x476250[_0x1a1549('0x40')]['id']}})[_0x1a1549('0x35')](handleEntityNotFound(_0x42ec21,null))['then'](saveUpdates(_0x476250['body'],null))[_0x1a1549('0x35')](respondWithResult(_0x42ec21,null))[_0x1a1549('0x3c')](handleError(_0x42ec21,null));},exports[_0x1b37d9('0x2c')]=function(_0x4ead16,_0x3c1069){const _0x217006=_0x1b37d9,_0x5d2fd2=path[_0x217006('0x20')](config[_0x217006('0x11')],'files/images/logos');let _0x4cd3ec={'custom':![]};return utilLicense[_0x217006('0x4c')]()[_0x217006('0x35')](function(_0x2dc839){const _0x184bcc=_0x217006;return _0x2dc839&&(_0x4cd3ec=_0x2dc839),db[_0x184bcc('0xc')][_0x184bcc('0x3e')]({'where':{'id':_0x4ead16[_0x184bcc('0x40')]['id']},'attributes':[_0x184bcc('0x8'),_0x184bcc('0x22'),_0x184bcc('0x41'),_0x184bcc('0x1'),_0x184bcc('0x3d'),_0x184bcc('0x1d'),'defaultPreferred',_0x184bcc('0x33')],'raw':!![]});})[_0x217006('0x35')](handleEntityNotFound(_0x3c1069,null))[_0x217006('0x35')](function(_0xe365f3){const _0x50fc0b=_0x217006;if(_0xe365f3){let _0x49b3a1=_0xe365f3[_0x50fc0b('0x1')]&&fs[_0x50fc0b('0x47')](path['join'](_0x5d2fd2,_[_0x50fc0b('0x2a')](_0xe365f3[_0x50fc0b('0x1')])))?path[_0x50fc0b('0x20')](_0x5d2fd2,_['toLower'](_0xe365f3[_0x50fc0b('0x1')])):path[_0x50fc0b('0x20')](_0x5d2fd2,_[_0x50fc0b('0x2a')](_0x50fc0b('0x2')));const _0x30a837=_0x50fc0b('0x32')+_[_0x50fc0b('0x12')](_0x50fc0b('0x1'));(_0xe365f3[_0x30a837]||!_0x4cd3ec[_0x50fc0b('0x4d')])&&(_0x49b3a1=path['join'](_0x5d2fd2,_[_0x50fc0b('0x2a')](_0x50fc0b('0x2'))));if(!fs[_0x50fc0b('0x47')](_0x49b3a1))throw new ValidationError(_['upperFirst'](_0x50fc0b('0x1'))+_0x50fc0b('0x1c'));return _0x3c1069['download'](_0x49b3a1);}})['catch'](handleError(_0x3c1069,null));}; \ No newline at end of file +const a538_0x394c=['includeAll','download','undefined','attributes','getLogo','update','toLower','api','\x20not\x20found','preferred','Content-Range','custom','pick','defaultPreferred','default_favicon.ico','nolimit','gdpr','sort','addFavicon','where','body','sequelize','type','join','../../mysqldb','findOne','existsSync','filter','order','json','VIRTUAL','path','findAll','default_logo.svg','../../components/parsers/qs','map','upperFirst','params','status','then','favicon','addLogo','getLicense','default_loginLogo.svg','securePassword','loginLogo','default','set','offset','Setting','default_preferred.png','defaultLoginLogo','model','defaultFavicon','logo','include','getLogoLogin','catch','fields','rows','fieldName','root','intersection','send','limit','merge','error','getPreferred','name','count','../../config/environment','query','key','sendStatus','defaultLogo','files/images/logos','rawAttributes','filename','filters','keys','options','file','addPreferred'];(function(_0x1b9d66,_0x394c88){const _0x441f18=function(_0x4a1847){while(--_0x4a1847){_0x1b9d66['push'](_0x1b9d66['shift']());}};_0x441f18(++_0x394c88);}(a538_0x394c,0x175));const a538_0x441f=function(_0x1b9d66,_0x394c88){_0x1b9d66=_0x1b9d66-0x0;let _0x441f18=a538_0x394c[_0x1b9d66];return _0x441f18;};const _0x21738=a538_0x441f;'use strict';const path=require(_0x21738('0x49')),fs=require('fs'),_=require('lodash'),qs=require(_0x21738('0x4c')),logger=require('../../config/logger')(_0x21738('0x31')),config=require(_0x21738('0x1d')),db=require(_0x21738('0x42'))['db'],{Op,ValidationError}=require(_0x21738('0x3f')),utilLicense=require('../../config/license/util');function respondWithResult(_0x4a1847,_0x2a4c0d){return _0x2a4c0d=_0x2a4c0d||0xc8,function(_0x594dfe){const _0x11bb88=a538_0x441f;if(_0x594dfe)return _0x4a1847['status'](_0x2a4c0d)[_0x11bb88('0x47')](_0x594dfe);};}function respondWithFilteredResult(_0x27b65f,_0x3168b4){return function(_0x586cbc){const _0x3be46f=a538_0x441f;if(_0x586cbc){const _0x10d58f=_0x586cbc['count'],_0x3323c0=_0x3168b4['offset'];let _0x591b7b=_0x3168b4['offset']+_0x3168b4[_0x3be46f('0x17')],_0x41eaff;return _0x591b7b>=_0x10d58f?(_0x591b7b=_0x10d58f,_0x41eaff=0xc8):_0x41eaff=0xce,_0x27b65f[_0x3be46f('0x50')](_0x41eaff),_0x27b65f[_0x3be46f('0x6')](_0x3be46f('0x34'),_0x3323c0+'-'+_0x591b7b+'/'+_0x10d58f)[_0x3be46f('0x47')](_0x586cbc);}return null;};}function saveUpdates(_0x38801e){return function(_0x103068){const _0x225dac=a538_0x441f;if(_0x103068)return _0x103068[_0x225dac('0x2f')](_0x38801e)[_0x225dac('0x51')](function(_0x4d18e4){return _0x4d18e4;});return null;};}function handleEntityNotFound(_0x2758e0){return function(_0x429d47){const _0x2b2c2b=a538_0x441f;return!_0x429d47&&_0x2758e0[_0x2b2c2b('0x20')](0x194),_0x429d47;};}function handleError(_0x109f64,_0x24778f){return _0x24778f=_0x24778f||0x1f4,function(_0x372f83){const _0x50cbef=a538_0x441f;logger[_0x50cbef('0x19')](_0x372f83['stack']),_0x372f83[_0x50cbef('0x1b')]&&delete _0x372f83[_0x50cbef('0x1b')],_0x109f64[_0x50cbef('0x50')](_0x24778f)[_0x50cbef('0x16')](_0x372f83);};}exports['index']=function(_0x52eeae,_0x4e2a6a){const _0x2449d6=_0x21738;let _0x3d8fab={};const _0x2d6278={},_0x22724a={'count':0x0,'rows':[]},_0xd8492e=_[_0x2449d6('0x4d')](db['Setting']['rawAttributes'],function(_0xdcbd17){const _0x3cbeed=_0x2449d6;return{'name':_0xdcbd17[_0x3cbeed('0x13')],'type':_0xdcbd17[_0x3cbeed('0x40')][_0x3cbeed('0x1f')]};});_0x2d6278[_0x2449d6('0xb')]=_['map'](_0xd8492e,_0x2449d6('0x1b')),_0x2d6278[_0x2449d6('0x1e')]=_['keys'](_0x52eeae[_0x2449d6('0x1e')]),_0x2d6278[_0x2449d6('0x25')]=_[_0x2449d6('0x15')](_0x2d6278[_0x2449d6('0xb')],_0x2d6278[_0x2449d6('0x1e')]),_0x3d8fab['attributes']=_[_0x2449d6('0x15')](_0x2d6278[_0x2449d6('0xb')],qs[_0x2449d6('0x11')](_0x52eeae[_0x2449d6('0x1e')][_0x2449d6('0x11')])),_0x3d8fab[_0x2449d6('0x2d')]=_0x3d8fab['attributes']['length']?_0x3d8fab['attributes']:_0x2d6278[_0x2449d6('0xb')];typeof _0x52eeae['query'][_0x2449d6('0x39')]===_0x2449d6('0x2c')&&(_0x3d8fab[_0x2449d6('0x17')]=qs['limit'](_0x52eeae[_0x2449d6('0x1e')][_0x2449d6('0x17')]),_0x3d8fab['offset']=qs[_0x2449d6('0x7')](_0x52eeae[_0x2449d6('0x1e')][_0x2449d6('0x7')]));_0x3d8fab[_0x2449d6('0x46')]=qs['sort'](_0x52eeae[_0x2449d6('0x1e')][_0x2449d6('0x3b')]),_0x3d8fab[_0x2449d6('0x3d')]=qs[_0x2449d6('0x25')](_[_0x2449d6('0x36')](_0x52eeae[_0x2449d6('0x1e')],_0x2d6278[_0x2449d6('0x25')]),_0xd8492e);_0x52eeae['query'][_0x2449d6('0x45')]&&(_0x3d8fab[_0x2449d6('0x3d')]=_['merge'](_0x3d8fab[_0x2449d6('0x3d')],{[Op['or']]:_['map'](_0xd8492e,function(_0x3523d8){const _0x1aca87=_0x2449d6;if(_0x3523d8['type']!==_0x1aca87('0x48')){const _0x134fbd={};return _0x134fbd[_0x3523d8[_0x1aca87('0x1b')]]={[Op['like']]:'%'+_0x52eeae[_0x1aca87('0x1e')][_0x1aca87('0x45')]+'%'},_0x134fbd;}})}));_0x3d8fab=_[_0x2449d6('0x18')]({},_0x3d8fab,_0x52eeae[_0x2449d6('0x27')]);const _0x30bf32={'where':_0x3d8fab['where']};return db[_0x2449d6('0x8')][_0x2449d6('0x1c')](_0x30bf32)[_0x2449d6('0x51')](function(_0x413f4c){const _0xd273d0=_0x2449d6;return _0x22724a[_0xd273d0('0x1c')]=_0x413f4c,_0x52eeae[_0xd273d0('0x1e')][_0xd273d0('0x2a')]&&(_0x3d8fab[_0xd273d0('0xe')]=[{'all':!![]}]),db[_0xd273d0('0x8')][_0xd273d0('0x4a')](_0x3d8fab);})['then'](function(_0x1eddf2){const _0x417fd6=_0x2449d6;return _0x22724a[_0x417fd6('0x12')]=_0x1eddf2,_0x22724a;})[_0x2449d6('0x51')](respondWithFilteredResult(_0x4e2a6a,_0x3d8fab))['catch'](handleError(_0x4e2a6a,null));},exports['show']=function(_0x48aeda,_0x34ae36){const _0x3c581b=_0x21738;let _0x10ffc8={'raw':![],'where':{'id':_0x48aeda[_0x3c581b('0x4f')]['id']}};const _0x5802c6={};return _0x5802c6[_0x3c581b('0xb')]=_[_0x3c581b('0x26')](db[_0x3c581b('0x8')][_0x3c581b('0x23')]),_0x5802c6[_0x3c581b('0x1e')]=_[_0x3c581b('0x26')](_0x48aeda[_0x3c581b('0x1e')]),_0x5802c6['filters']=_[_0x3c581b('0x15')](_0x5802c6[_0x3c581b('0xb')],_0x5802c6['query']),_0x10ffc8['attributes']=_['intersection'](_0x5802c6[_0x3c581b('0xb')],qs[_0x3c581b('0x11')](_0x48aeda[_0x3c581b('0x1e')]['fields'])),_0x10ffc8[_0x3c581b('0x2d')]=_0x10ffc8['attributes']['length']?_0x10ffc8[_0x3c581b('0x2d')]:_0x5802c6['model'],_0x48aeda['query'][_0x3c581b('0x2a')]&&(_0x10ffc8['include']=[{'all':!![]}]),_0x10ffc8=_[_0x3c581b('0x18')]({},_0x10ffc8,_0x48aeda[_0x3c581b('0x27')]),db[_0x3c581b('0x8')][_0x3c581b('0x43')](_0x10ffc8)[_0x3c581b('0x51')](handleEntityNotFound(_0x34ae36,null))[_0x3c581b('0x51')](respondWithResult(_0x34ae36,null))[_0x3c581b('0x10')](handleError(_0x34ae36,null));},exports[_0x21738('0x2f')]=function(_0x11fb8,_0x553df5){const _0x3474f2=_0x21738;return _0x11fb8[_0x3474f2('0x3e')]['id']&&delete _0x11fb8[_0x3474f2('0x3e')]['id'],db['Setting'][_0x3474f2('0x43')]({'where':{'id':_0x11fb8[_0x3474f2('0x4f')]['id']}})[_0x3474f2('0x51')](handleEntityNotFound(_0x553df5,null))[_0x3474f2('0x51')](saveUpdates(_0x11fb8[_0x3474f2('0x3e')],null))[_0x3474f2('0x51')](respondWithResult(_0x553df5,null))[_0x3474f2('0x10')](handleError(_0x553df5,null));},exports[_0x21738('0x0')]=function(_0x24a615,_0x20ade8){const _0x5c94eb=_0x21738;return _0x24a615[_0x5c94eb('0x28')]&&_0x24a615[_0x5c94eb('0x28')][_0x5c94eb('0x24')]&&(_0x24a615[_0x5c94eb('0x3e')]['logo']=_0x24a615['file'][_0x5c94eb('0x24')]),db[_0x5c94eb('0x8')][_0x5c94eb('0x43')]({'where':{'id':_0x24a615['params']['id']}})[_0x5c94eb('0x51')](handleEntityNotFound(_0x20ade8,null))['then'](saveUpdates(_0x24a615['body'],null))['then'](respondWithResult(_0x20ade8,null))[_0x5c94eb('0x10')](handleError(_0x20ade8,null));},exports['addLogoLogin']=function(_0x50c580,_0x483177){const _0x2b7bbe=_0x21738;return _0x50c580['file']&&_0x50c580[_0x2b7bbe('0x28')][_0x2b7bbe('0x24')]&&(_0x50c580[_0x2b7bbe('0x3e')][_0x2b7bbe('0x4')]=_0x50c580['file'][_0x2b7bbe('0x24')]),db[_0x2b7bbe('0x8')][_0x2b7bbe('0x43')]({'where':{'id':_0x50c580[_0x2b7bbe('0x4f')]['id']}})['then'](handleEntityNotFound(_0x483177,null))[_0x2b7bbe('0x51')](saveUpdates(_0x50c580['body'],null))[_0x2b7bbe('0x51')](respondWithResult(_0x483177,null))[_0x2b7bbe('0x10')](handleError(_0x483177,null));},exports[_0x21738('0x2e')]=function(_0x3151ff,_0x29f88a){const _0x5a03a5=_0x21738,_0x27bf08=path[_0x5a03a5('0x41')](config[_0x5a03a5('0x14')],_0x5a03a5('0x22'));let _0x42d05b={'custom':![]};return utilLicense[_0x5a03a5('0x1')]()[_0x5a03a5('0x51')](function(_0x1e37e8){const _0x59e5af=_0x5a03a5;return _0x1e37e8&&(_0x42d05b=_0x1e37e8),db[_0x59e5af('0x8')][_0x59e5af('0x43')]({'where':{'id':_0x3151ff[_0x59e5af('0x4f')]['id']},'attributes':[_0x59e5af('0xd'),_0x59e5af('0x4'),_0x59e5af('0x33'),_0x59e5af('0x52'),_0x59e5af('0x21'),'defaultLoginLogo','defaultPreferred',_0x59e5af('0xc')],'raw':!![]});})[_0x5a03a5('0x51')](handleEntityNotFound(_0x29f88a,null))[_0x5a03a5('0x51')](function(_0x4993f6){const _0x5e3b83=_0x5a03a5;if(_0x4993f6){let _0x29e843=_0x4993f6[_0x5e3b83('0xd')]&&fs[_0x5e3b83('0x44')](path['join'](_0x27bf08,_[_0x5e3b83('0x30')](_0x4993f6[_0x5e3b83('0xd')])))?path[_0x5e3b83('0x41')](_0x27bf08,_['toLower'](_0x4993f6['logo'])):path[_0x5e3b83('0x41')](_0x27bf08,_[_0x5e3b83('0x30')](_0x5e3b83('0x4b')));const _0x266cb1=_0x5e3b83('0x5')+_['upperFirst'](_0x5e3b83('0xd'));(_0x4993f6[_0x266cb1]||!_0x42d05b['custom'])&&(_0x29e843=path[_0x5e3b83('0x41')](_0x27bf08,_[_0x5e3b83('0x30')](_0x5e3b83('0x4b'))));if(!fs['existsSync'](_0x29e843))throw new ValidationError(_['upperFirst'](_0x5e3b83('0xd'))+_0x5e3b83('0x32'));return _0x29f88a['download'](_0x29e843);}})[_0x5a03a5('0x10')](handleError(_0x29f88a,null));},exports[_0x21738('0xf')]=function(_0x52bdf6,_0x27b7ee){const _0x46273b=_0x21738,_0x228872=path[_0x46273b('0x41')](config[_0x46273b('0x14')],_0x46273b('0x22'));let _0x44c364={'custom':![]};return utilLicense[_0x46273b('0x1')]()[_0x46273b('0x51')](function(_0xba10f8){const _0x2bcd7d=_0x46273b;return _0xba10f8&&(_0x44c364=_0xba10f8),db[_0x2bcd7d('0x8')][_0x2bcd7d('0x43')]({'where':{'id':_0x52bdf6[_0x2bcd7d('0x4f')]['id']},'attributes':['logo','loginLogo',_0x2bcd7d('0x33'),_0x2bcd7d('0x52'),_0x2bcd7d('0x21'),_0x2bcd7d('0xa'),_0x2bcd7d('0x37'),_0x2bcd7d('0xc')],'raw':!![]});})[_0x46273b('0x51')](handleEntityNotFound(_0x27b7ee,null))[_0x46273b('0x51')](function(_0x1f36cc){const _0x2e930c=_0x46273b;if(_0x1f36cc){let _0x57d591=_0x1f36cc[_0x2e930c('0x4')]&&fs['existsSync'](path[_0x2e930c('0x41')](_0x228872,_['toLower'](_0x1f36cc[_0x2e930c('0x4')])))?path[_0x2e930c('0x41')](_0x228872,_[_0x2e930c('0x30')](_0x1f36cc[_0x2e930c('0x4')])):path[_0x2e930c('0x41')](_0x228872,_['toLower']('default_loginLogo.svg'));const _0x11ac91=_0x2e930c('0x5')+_[_0x2e930c('0x4e')]('loginLogo');(_0x1f36cc[_0x11ac91]||!_0x44c364[_0x2e930c('0x35')])&&(_0x57d591=path[_0x2e930c('0x41')](_0x228872,_[_0x2e930c('0x30')](_0x2e930c('0x2'))));if(!fs[_0x2e930c('0x44')](_0x57d591))throw new ValidationError(_[_0x2e930c('0x4e')]('loginLogo')+_0x2e930c('0x32'));return _0x27b7ee[_0x2e930c('0x2b')](_0x57d591);}})[_0x46273b('0x10')](handleError(_0x27b7ee,null));},exports[_0x21738('0x3a')]=function(_0x5ee2b8,_0x43a704){const _0x494c4b=_0x21738;return db[_0x494c4b('0x8')][_0x494c4b('0x43')]({'where':{'id':_0x5ee2b8[_0x494c4b('0x4f')]['id']},'attributes':[_0x494c4b('0x3')]})[_0x494c4b('0x51')](respondWithResult(_0x43a704,null))['catch'](handleError(_0x43a704,null));},exports[_0x21738('0x29')]=function(_0x3bfb8f,_0x2fe792){const _0x1f66ae=_0x21738;return _0x3bfb8f['file']&&_0x3bfb8f[_0x1f66ae('0x28')][_0x1f66ae('0x24')]&&(_0x3bfb8f['body'][_0x1f66ae('0x33')]=_0x3bfb8f[_0x1f66ae('0x28')][_0x1f66ae('0x24')]),db['Setting'][_0x1f66ae('0x43')]({'where':{'id':_0x3bfb8f[_0x1f66ae('0x4f')]['id']}})['then'](handleEntityNotFound(_0x2fe792,null))[_0x1f66ae('0x51')](saveUpdates(_0x3bfb8f[_0x1f66ae('0x3e')],null))[_0x1f66ae('0x51')](respondWithResult(_0x2fe792,null))[_0x1f66ae('0x10')](handleError(_0x2fe792,null));},exports[_0x21738('0x1a')]=function(_0x4a92f6,_0x682dd3){const _0x35f4b7=_0x21738,_0x534ffd=path['join'](config[_0x35f4b7('0x14')],_0x35f4b7('0x22'));let _0x1e983a={'custom':![]};return utilLicense['getLicense']()['then'](function(_0x1465be){const _0x473295=_0x35f4b7;return _0x1465be&&(_0x1e983a=_0x1465be),db[_0x473295('0x8')]['findOne']({'where':{'id':_0x4a92f6[_0x473295('0x4f')]['id']},'attributes':[_0x473295('0xd'),'loginLogo',_0x473295('0x33'),_0x473295('0x52'),_0x473295('0x21'),_0x473295('0xa'),_0x473295('0x37'),_0x473295('0xc')],'raw':!![]});})['then'](handleEntityNotFound(_0x682dd3,null))[_0x35f4b7('0x51')](function(_0xe4474a){const _0x42e44f=_0x35f4b7;if(_0xe4474a){let _0x3dd4c7=_0xe4474a[_0x42e44f('0x33')]&&fs[_0x42e44f('0x44')](path[_0x42e44f('0x41')](_0x534ffd,_[_0x42e44f('0x30')](_0xe4474a[_0x42e44f('0x33')])))?path[_0x42e44f('0x41')](_0x534ffd,_[_0x42e44f('0x30')](_0xe4474a[_0x42e44f('0x33')])):path[_0x42e44f('0x41')](_0x534ffd,_[_0x42e44f('0x30')](_0x42e44f('0x9')));const _0x4b13db=_0x42e44f('0x5')+_[_0x42e44f('0x4e')](_0x42e44f('0x33'));(_0xe4474a[_0x4b13db]||!_0x1e983a[_0x42e44f('0x35')]||!_0x1e983a[_0x42e44f('0x33')])&&(_0x3dd4c7=path['join'](_0x534ffd,_[_0x42e44f('0x30')](_0x42e44f('0x9'))));if(!fs['existsSync'](_0x3dd4c7))throw new ValidationError(_[_0x42e44f('0x4e')](_0x42e44f('0x33'))+_0x42e44f('0x32'));return _0x682dd3[_0x42e44f('0x2b')](_0x3dd4c7);}})[_0x35f4b7('0x10')](handleError(_0x682dd3,null));},exports[_0x21738('0x3c')]=function(_0x1a14e8,_0x545a9b){const _0x4de178=_0x21738;return _0x1a14e8['file']&&_0x1a14e8[_0x4de178('0x28')][_0x4de178('0x24')]&&(_0x1a14e8['body']['favicon']=_0x1a14e8[_0x4de178('0x28')][_0x4de178('0x24')]),db[_0x4de178('0x8')][_0x4de178('0x43')]({'where':{'id':_0x1a14e8[_0x4de178('0x4f')]['id']}})[_0x4de178('0x51')](handleEntityNotFound(_0x545a9b,null))[_0x4de178('0x51')](saveUpdates(_0x1a14e8[_0x4de178('0x3e')],null))['then'](respondWithResult(_0x545a9b,null))[_0x4de178('0x10')](handleError(_0x545a9b,null));},exports['getFavicon']=function(_0xcd8463,_0x6ca38b){const _0x396646=_0x21738,_0x2e577a=path[_0x396646('0x41')](config[_0x396646('0x14')],_0x396646('0x22'));let _0x236350={'custom':![]};return utilLicense['getLicense']()[_0x396646('0x51')](function(_0x4a2ec1){const _0x3a8d85=_0x396646;return _0x4a2ec1&&(_0x236350=_0x4a2ec1),db[_0x3a8d85('0x8')][_0x3a8d85('0x43')]({'where':{'id':_0xcd8463[_0x3a8d85('0x4f')]['id']},'attributes':['logo',_0x3a8d85('0x4'),_0x3a8d85('0x33'),_0x3a8d85('0x52'),_0x3a8d85('0x21'),'defaultLoginLogo','defaultPreferred','defaultFavicon'],'raw':!![]});})['then'](handleEntityNotFound(_0x6ca38b,null))[_0x396646('0x51')](function(_0x55ffad){const _0x9cc810=_0x396646;if(_0x55ffad){let _0x468d04=_0x55ffad[_0x9cc810('0x52')]&&fs[_0x9cc810('0x44')](path[_0x9cc810('0x41')](_0x2e577a,_[_0x9cc810('0x30')](_0x55ffad['favicon'])))?path['join'](_0x2e577a,_[_0x9cc810('0x30')](_0x55ffad['favicon'])):path[_0x9cc810('0x41')](_0x2e577a,_[_0x9cc810('0x30')](_0x9cc810('0x38')));const _0x14771c=_0x9cc810('0x5')+_[_0x9cc810('0x4e')](_0x9cc810('0x52'));(_0x55ffad[_0x14771c]||!_0x236350[_0x9cc810('0x35')])&&(_0x468d04=path[_0x9cc810('0x41')](_0x2e577a,_[_0x9cc810('0x30')](_0x9cc810('0x38'))));if(!fs[_0x9cc810('0x44')](_0x468d04))throw new ValidationError(_['upperFirst'](_0x9cc810('0x52'))+_0x9cc810('0x32'));return _0x6ca38b[_0x9cc810('0x2b')](_0x468d04);}})[_0x396646('0x10')](handleError(_0x6ca38b,null));}; \ No newline at end of file diff --git a/server/api/setting/setting.model.js b/server/api/setting/setting.model.js index ceab2dc..836de4a 100644 --- a/server/api/setting/setting.model.js +++ b/server/api/setting/setting.model.js @@ -1 +1 @@ -const a539_0x2c9a=['./setting.attributes','Setting','exports','define'];(function(_0x181fed,_0x2c9a68){const _0xd4d196=function(_0x4b4ab6){while(--_0x4b4ab6){_0x181fed['push'](_0x181fed['shift']());}};_0xd4d196(++_0x2c9a68);}(a539_0x2c9a,0x120));const a539_0xd4d1=function(_0x181fed,_0x2c9a68){_0x181fed=_0x181fed-0x0;let _0xd4d196=a539_0x2c9a[_0x181fed];return _0xd4d196;};const _0x3b62b5=a539_0xd4d1;'use strict';const attributes=require(_0x3b62b5('0x0'));module[_0x3b62b5('0x2')]=function(_0x4b4ab6){const _0x1687c2=_0x3b62b5,_0x1d4324=_0x4b4ab6[_0x1687c2('0x3')](_0x1687c2('0x1'),attributes,{'tableName':'settings','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d4324;}; \ No newline at end of file +const a539_0x42b3=['./setting.attributes','Setting'];(function(_0x3dba72,_0x42b3a7){const _0x168b74=function(_0x4d1662){while(--_0x4d1662){_0x3dba72['push'](_0x3dba72['shift']());}};_0x168b74(++_0x42b3a7);}(a539_0x42b3,0xc6));const a539_0x168b=function(_0x3dba72,_0x42b3a7){_0x3dba72=_0x3dba72-0x0;let _0x168b74=a539_0x42b3[_0x3dba72];return _0x168b74;};const _0x340e41=a539_0x168b;'use strict';const attributes=require(_0x340e41('0x0'));module['exports']=function(_0x4d1662){const _0x5c2292=_0x340e41,_0x4b1097=_0x4d1662['define'](_0x5c2292('0x1'),attributes,{'tableName':'settings','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4b1097;}; \ No newline at end of file diff --git a/server/api/smsAccount/index.js b/server/api/smsAccount/index.js index 714627d..4dc79e6 100644 --- a/server/api/smsAccount/index.js +++ b/server/api/smsAccount/index.js @@ -1 +1 @@ -const a540_0x5b8a=['/:id/users','delete','addDisposition','removeDispositions','./smsAccount.controller','update','getInteractions','/:id/applications','isAuthenticated','/:id/canned_answers','index','destroy','removeAgents','/:id/dispositions','addAgents','getAnswers','status','show','../../components/auth/service','/describe','exports','/:id','statusGet','post','express','get','/:id/status','/:id/interactions'];(function(_0x4fe0b3,_0x5b8a5e){const _0x4a22be=function(_0xed8166){while(--_0xed8166){_0x4fe0b3['push'](_0x4fe0b3['shift']());}};_0x4a22be(++_0x5b8a5e);}(a540_0x5b8a,0xc2));const a540_0x4a22=function(_0x4fe0b3,_0x5b8a5e){_0x4fe0b3=_0x4fe0b3-0x0;let _0x4a22be=a540_0x5b8a[_0x4fe0b3];return _0x4a22be;};const _0x310604=a540_0x4a22;'use strict';const express=require(_0x310604('0x1a')),router=express['Router'](),auth=require(_0x310604('0x14')),controller=require(_0x310604('0x6'));router[_0x310604('0x1b')]('/',auth['isAuthenticated'](),controller[_0x310604('0xc')]),router[_0x310604('0x1b')](_0x310604('0x15'),auth['isAuthenticated'](),controller['describe']),router[_0x310604('0x1b')]('/:id',auth['isAuthenticated'](),controller[_0x310604('0x13')]),router['get'](_0x310604('0xf'),auth[_0x310604('0xa')](),controller['getDispositions']),router[_0x310604('0x1b')](_0x310604('0xb'),auth[_0x310604('0xa')](),controller[_0x310604('0x11')]),router[_0x310604('0x1b')](_0x310604('0x9'),auth['isAuthenticated'](),controller['getApplications']),router['get'](_0x310604('0x1'),auth[_0x310604('0xa')](),controller[_0x310604('0x8')]),router['get'](_0x310604('0x0'),controller[_0x310604('0x18')]),router[_0x310604('0x1b')](_0x310604('0x2'),auth[_0x310604('0xa')](),controller['getAgents']),router[_0x310604('0x19')]('/',auth['isAuthenticated'](),controller['create']),router[_0x310604('0x19')]('/:id/dispositions',auth[_0x310604('0xa')](),controller[_0x310604('0x4')]),router[_0x310604('0x19')]('/:id/canned_answers',auth['isAuthenticated'](),controller['addAnswer']),router[_0x310604('0x19')]('/:id/notify',controller['notify']),router['post']('/:id/applications',auth[_0x310604('0xa')](),controller['addApplications']),router['post']('/:id/send',auth[_0x310604('0xa')](),controller['send']),router[_0x310604('0x19')](_0x310604('0x0'),controller[_0x310604('0x12')]),router[_0x310604('0x19')](_0x310604('0x2'),auth[_0x310604('0xa')](),controller[_0x310604('0x10')]),router['put'](_0x310604('0x17'),auth['isAuthenticated'](),controller[_0x310604('0x7')]),router[_0x310604('0x3')](_0x310604('0x17'),auth[_0x310604('0xa')](),controller[_0x310604('0xd')]),router[_0x310604('0x3')](_0x310604('0xf'),auth[_0x310604('0xa')](),controller[_0x310604('0x5')]),router[_0x310604('0x3')]('/:id/canned_answers',auth[_0x310604('0xa')](),controller['removeAnswers']),router[_0x310604('0x3')](_0x310604('0x2'),auth[_0x310604('0xa')](),controller[_0x310604('0xe')]),module[_0x310604('0x16')]=router; \ No newline at end of file +const a540_0x4228=['getAnswers','/:id/status','addApplications','get','update','/:id/notify','create','/describe','statusGet','describe','/:id/send','delete','/:id/users','/:id/interactions','status','getAgents','getInteractions','../../components/auth/service','getDispositions','destroy','Router','put','removeAnswers','/:id/applications','addDisposition','/:id','getApplications','exports','/:id/canned_answers','isAuthenticated','post','./smsAccount.controller','/:id/dispositions','express','show','removeDispositions','notify','send','removeAgents'];(function(_0x2de167,_0x422863){const _0x41c6d0=function(_0x21a0fa){while(--_0x21a0fa){_0x2de167['push'](_0x2de167['shift']());}};_0x41c6d0(++_0x422863);}(a540_0x4228,0xb3));const a540_0x41c6=function(_0x2de167,_0x422863){_0x2de167=_0x2de167-0x0;let _0x41c6d0=a540_0x4228[_0x2de167];return _0x41c6d0;};const _0x37aa70=a540_0x41c6;'use strict';const express=require(_0x37aa70('0xa')),router=express[_0x37aa70('0x24')](),auth=require(_0x37aa70('0x21')),controller=require(_0x37aa70('0x8'));router['get']('/',auth[_0x37aa70('0x6')](),controller['index']),router['get'](_0x37aa70('0x17'),auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x19')]),router[_0x37aa70('0x13')]('/:id',auth['isAuthenticated'](),controller[_0x37aa70('0xb')]),router[_0x37aa70('0x13')](_0x37aa70('0x9'),auth['isAuthenticated'](),controller[_0x37aa70('0x22')]),router['get'](_0x37aa70('0x5'),auth['isAuthenticated'](),controller[_0x37aa70('0x10')]),router[_0x37aa70('0x13')](_0x37aa70('0x0'),auth['isAuthenticated'](),controller[_0x37aa70('0x3')]),router[_0x37aa70('0x13')](_0x37aa70('0x1d'),auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x20')]),router[_0x37aa70('0x13')](_0x37aa70('0x11'),controller[_0x37aa70('0x18')]),router['get'](_0x37aa70('0x1c'),auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x1f')]),router[_0x37aa70('0x7')]('/',auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x16')]),router['post'](_0x37aa70('0x9'),auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x1')]),router['post'](_0x37aa70('0x5'),auth[_0x37aa70('0x6')](),controller['addAnswer']),router['post'](_0x37aa70('0x15'),controller[_0x37aa70('0xd')]),router['post'](_0x37aa70('0x0'),auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x12')]),router[_0x37aa70('0x7')](_0x37aa70('0x1a'),auth[_0x37aa70('0x6')](),controller[_0x37aa70('0xe')]),router[_0x37aa70('0x7')](_0x37aa70('0x11'),controller[_0x37aa70('0x1e')]),router[_0x37aa70('0x7')](_0x37aa70('0x1c'),auth['isAuthenticated'](),controller['addAgents']),router[_0x37aa70('0x25')](_0x37aa70('0x2'),auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x14')]),router[_0x37aa70('0x1b')](_0x37aa70('0x2'),auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x23')]),router['delete']('/:id/dispositions',auth[_0x37aa70('0x6')](),controller[_0x37aa70('0xc')]),router[_0x37aa70('0x1b')]('/:id/canned_answers',auth[_0x37aa70('0x6')](),controller[_0x37aa70('0x26')]),router[_0x37aa70('0x1b')]('/:id/users',auth[_0x37aa70('0x6')](),controller[_0x37aa70('0xf')]),module[_0x37aa70('0x4')]=router; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.attributes.js b/server/api/smsAccount/smsAccount.attributes.js index 3c1f76d..93d14c7 100644 --- a/server/api/smsAccount/smsAccount.attributes.js +++ b/server/api/smsAccount/smsAccount.attributes.js @@ -1 +1 @@ -const a541_0x4d81=['TEXT','randomstring','setDataValue','plivo','infobip','generate','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','clickatell','sequelize','connectel','twilio','STRING','name','mandatoryDisposition','INTEGER','intelepeer','exports','clicksend','BOOLEAN'];(function(_0x2ab76f,_0x4d819d){const _0x1e239f=function(_0x7f61f6){while(--_0x7f61f6){_0x2ab76f['push'](_0x2ab76f['shift']());}};_0x1e239f(++_0x4d819d);}(a541_0x4d81,0xc1));const a541_0x1e23=function(_0x2ab76f,_0x4d819d){_0x2ab76f=_0x2ab76f-0x0;let _0x1e239f=a541_0x4d81[_0x2ab76f];return _0x1e239f;};const _0x4be59b=a541_0x1e23;'use strict';const Sequelize=require(_0x4be59b('0x5')),rs=require(_0x4be59b('0x11'));module[_0x4be59b('0xd')]={'name':{'type':Sequelize[_0x4be59b('0x8')],'unique':_0x4be59b('0x9'),'allowNull':![]},'key':{'type':Sequelize[_0x4be59b('0x8')],'allowNull':![]},'remote':{'type':Sequelize[_0x4be59b('0x8')],'allowNull':![]},'token':{'type':Sequelize[_0x4be59b('0x8')],'defaultValue':function(){const _0x27cb63=_0x4be59b;return rs[_0x27cb63('0x2')]();}},'phone':{'type':Sequelize[_0x4be59b('0x8')]},'type':{'type':Sequelize['ENUM'](_0x4be59b('0x7'),'skebby',_0x4be59b('0x6'),_0x4be59b('0xe'),_0x4be59b('0x0'),_0x4be59b('0x4'),'csc',_0x4be59b('0x1'),_0x4be59b('0xc'))},'accountSid':{'type':Sequelize['STRING']},'authId':{'type':Sequelize['STRING']},'authToken':{'type':Sequelize['STRING']},'smsMethod':{'type':Sequelize['ENUM']('SI','TI','GP')},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize[_0x4be59b('0x8')]},'apiKey':{'type':Sequelize[_0x4be59b('0x8')]},'senderString':{'type':Sequelize['STRING']},'deliveryReport':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'description':{'type':Sequelize['STRING']},'notificationTemplate':{'type':Sequelize[_0x4be59b('0x10')],'defaultValue':function(){return'Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}';}},'notificationSound':{'type':Sequelize[_0x4be59b('0xf')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x4be59b('0xf')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x4be59b('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x4be59b('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x4be59b('0xf')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x4be59b('0xb')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x4be59b('0x8')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x4be59b('0xb')],'comment':_0x4be59b('0x3')},'mandatoryDisposition':{'type':Sequelize[_0x4be59b('0xf')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x7f61f6){const _0x6e2e76=_0x4be59b;if(!_0x7f61f6)this['setDataValue']('mandatoryDispositionPauseId',null);this[_0x6e2e76('0x12')](_0x6e2e76('0xa'),_0x7f61f6);}}}; \ No newline at end of file +const a541_0x3ff5=['plivo','STRING','generate','mandatoryDisposition','name','twilio','INTEGER','ENUM','exports','intelepeer','csc','mandatoryDispositionPauseId','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','infobip','connectel','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','clicksend','TEXT','skebby','sequelize','BOOLEAN'];(function(_0x59eb71,_0x3ff5e8){const _0x4c83a9=function(_0x126008){while(--_0x126008){_0x59eb71['push'](_0x59eb71['shift']());}};_0x4c83a9(++_0x3ff5e8);}(a541_0x3ff5,0x131));const a541_0x4c83=function(_0x59eb71,_0x3ff5e8){_0x59eb71=_0x59eb71-0x0;let _0x4c83a9=a541_0x3ff5[_0x59eb71];return _0x4c83a9;};const _0x16a5aa=a541_0x4c83;'use strict';const Sequelize=require(_0x16a5aa('0x8')),rs=require('randomstring');module[_0x16a5aa('0x12')]={'name':{'type':Sequelize[_0x16a5aa('0xb')],'unique':_0x16a5aa('0xe'),'allowNull':![]},'key':{'type':Sequelize[_0x16a5aa('0xb')],'allowNull':![]},'remote':{'type':Sequelize[_0x16a5aa('0xb')],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){const _0x19f19c=_0x16a5aa;return rs[_0x19f19c('0xc')]();}},'phone':{'type':Sequelize[_0x16a5aa('0xb')]},'type':{'type':Sequelize[_0x16a5aa('0x11')](_0x16a5aa('0xf'),_0x16a5aa('0x7'),_0x16a5aa('0x3'),_0x16a5aa('0x5'),_0x16a5aa('0xa'),'clickatell',_0x16a5aa('0x14'),_0x16a5aa('0x2'),_0x16a5aa('0x13'))},'accountSid':{'type':Sequelize[_0x16a5aa('0xb')]},'authId':{'type':Sequelize[_0x16a5aa('0xb')]},'authToken':{'type':Sequelize[_0x16a5aa('0xb')]},'smsMethod':{'type':Sequelize[_0x16a5aa('0x11')]('SI','TI','GP')},'username':{'type':Sequelize['STRING']},'password':{'type':Sequelize['STRING']},'apiKey':{'type':Sequelize[_0x16a5aa('0xb')]},'senderString':{'type':Sequelize[_0x16a5aa('0xb')]},'deliveryReport':{'type':Sequelize[_0x16a5aa('0x9')],'defaultValue':![]},'description':{'type':Sequelize[_0x16a5aa('0xb')]},'notificationTemplate':{'type':Sequelize[_0x16a5aa('0x6')],'defaultValue':function(){const _0x3c8f1e=_0x16a5aa;return _0x3c8f1e('0x1');}},'notificationSound':{'type':Sequelize[_0x16a5aa('0x9')],'defaultValue':!![]},'notificationShake':{'type':Sequelize[_0x16a5aa('0x9')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x16a5aa('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x16a5aa('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize[_0x16a5aa('0x10')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'baseUrl':{'type':Sequelize[_0x16a5aa('0xb')]},'mandatoryDispositionPauseId':{'type':Sequelize[_0x16a5aa('0x10')],'comment':_0x16a5aa('0x4')},'mandatoryDisposition':{'type':Sequelize[_0x16a5aa('0x9')],'defaultValue':![],'comment':'Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','set':function(_0x126008){const _0x3a86bd=_0x16a5aa;if(!_0x126008)this['setDataValue'](_0x3a86bd('0x0'),null);this['setDataValue'](_0x3a86bd('0xd'),_0x126008);}}}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.controller.js b/server/api/smsAccount/smsAccount.controller.js index 6a73a1d..707e32a 100644 --- a/server/api/smsAccount/smsAccount.controller.js +++ b/server/api/smsAccount/smsAccount.controller.js @@ -1 +1 @@ -const a542_0x1be7=['Start','emit','connectel','created','UserProfileSection','options','../../rediscache','index','SmsApplication','user','log','register','tag','plivo','limit','ListId','from\x20is\x20mandatory','orderBy','priority','where','removeDispositions','segmentedMessage','getApplications','message_id','MessageSid','Contacts','debug','code','findAndCountAll','send','redif','SmsAccount,\x20%s,\x20%s','addDisposition','role','Applications','model','fields','account','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','Text','updatedAt','create','includeAll','internal','addApplications','catch','clicksend','destroy','User','Content-Type','no\x20available\x20attributes','CannedAnswer','Tags','api','fullname','mobile','pick','inspect','\x0a','groupName','message','bulkCreate','SmsAccount,\x20%s,\x20%s,\x20%s','intelepeer','Tag','CompanyId','csc','Owner','state','findOne','stringify','receiveMessage','SmsAccountId','messageId','interaction','../../mysqldb','include','status_code','filter','stack','status','sequelize','sendStatus','out','SmsInteraction','includes','refid','*,*,*,*','DELIVRD','infobip','fromNumber','merge','requestid','isArray','get','push','name','SmsAccount','addAgents','findAll','defaults','createdAt','CmList','userProfileId','difference','ACCEPTD','ids','describe','DELIVERED','text/xml','length','twilio','Content-Range','omit','body','end','received\x20delivery\x20report\x20from','nolimit','message-id','UserProfileResource','client','removeAnswers','getAnswers','sort','error','from','skebby','type','skebby_dispatch_id','asc','intersection','dataValues','transaction','Disposition','Pause','info','List','filters','removeAgents','VIRTUAL','waitForTheAssignedAgent','unmanaged','isNil','Messages','attributes','unshift','offset','map','SmsAccounts','result','endpoint\x20/status\x20POST\x20/','util','key','close','DESC','clickatell','sms','../../config/logger','to\x20is\x20mandatory','params','getAgents','applications','set','userSmsAccount:remove','fieldName','rows','addAnswer','update','request\x20sent','originatingAddress','text','rawAttributes','count','order','Unable\x20to\x20retrieve\x20the\x20current\x20user','statusInt','Body','SmsMessage','results','body\x20is\x20mandatory\x20and\x20not\x20empty','error_code','then','like','AttachmentId','keys','entity\x20found','CmContact','contact','mapKey','undefined','query','DELIVERED_TO_GATEWAY','SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s','ContactId','mandatoryDispositionPause','userSmsAccount:save','startRouting','json'];(function(_0x55e4f5,_0x1be72c){const _0x409dc4=function(_0x20a9d3){while(--_0x20a9d3){_0x55e4f5['push'](_0x55e4f5['shift']());}};_0x409dc4(++_0x1be72c);}(a542_0x1be7,0x1dd));const a542_0x409d=function(_0x55e4f5,_0x1be72c){_0x55e4f5=_0x55e4f5-0x0;let _0x409dc4=a542_0x1be7[_0x55e4f5];return _0x409dc4;};const _0x2c6885=a542_0x409d;'use strict';const util=require(_0x2c6885('0x46')),_=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x2c6885('0x4c'))(_0x2c6885('0xaa')),{getSocket}=require(_0x2c6885('0x7b')),socket=getSocket(),db=require(_0x2c6885('0xc0'))['db'],{Op,ValidationError}=require(_0x2c6885('0x0'));require('./smsAccount.socket')[_0x2c6885('0x80')](socket);const jayson=require('jayson/promise'),client=jayson[_0x2c6885('0x27')]['http']({'port':0x232c});function respondWithRpcPromise(_0x20a9d3,_0x4b27be,_0x1324b0,_0x1269c2){return new Promise(function(_0x4b7c9a,_0x31dc35){const _0x1e80dd=a542_0x409d,_0x42b9b0=_0x1269c2||client;return _0x42b9b0['request'](_0x20a9d3,_0x1324b0)[_0x1e80dd('0x64')](function(_0x99ae2d){const _0x8b2865=_0x1e80dd;logger[_0x8b2865('0x36')](_0x8b2865('0x94'),_0x4b27be,'request\x20sent'),logger[_0x8b2865('0x8f')](_0x8b2865('0xb3'),_0x4b27be,'request\x20sent',JSON[_0x8b2865('0xbb')](_0x99ae2d));if(_0x99ae2d[_0x8b2865('0x2b')]){if(_0x99ae2d[_0x8b2865('0x2b')][_0x8b2865('0x90')]===0x1f4)return logger[_0x8b2865('0x2b')]('SmsAccount,\x20%s,\x20%s',_0x4b27be,_0x99ae2d[_0x8b2865('0x2b')]['message']),_0x31dc35(_0x99ae2d[_0x8b2865('0x2b')][_0x8b2865('0xb1')]);return logger['error'](_0x8b2865('0x94'),_0x4b27be,_0x99ae2d['error']['message']),_0x4b7c9a(_0x99ae2d[_0x8b2865('0x2b')][_0x8b2865('0xb1')]);}else logger[_0x8b2865('0x36')](_0x8b2865('0x94'),_0x4b27be,_0x8b2865('0x57')),_0x4b7c9a(_0x99ae2d[_0x8b2865('0x44')][_0x8b2865('0xb1')]);})[_0x1e80dd('0xa2')](function(_0xdd25cf){const _0x4e38ae=_0x1e80dd;logger['error'](_0x4e38ae('0x94'),_0x4b27be,_0xdd25cf),_0x31dc35(_0xdd25cf);});});}function respondWithStatusCode(_0x210446,_0x121d06){return _0x121d06=_0x121d06||0xcc,function(_0x2ceff4){const _0x5f03cc=a542_0x409d;if(_0x2ceff4)return _0x210446[_0x5f03cc('0x1')](_0x121d06);return _0x210446[_0x5f03cc('0xc5')](_0x121d06)['end']();};}function respondWithResult(_0xf91490,_0x3f6321){return _0x3f6321=_0x3f6321||0xc8,function(_0x5ed627){const _0x31db34=a542_0x409d;if(_0x5ed627)return _0xf91490[_0x31db34('0xc5')](_0x3f6321)['json'](_0x5ed627);};}function respondWithFilteredResult(_0xb0fb85,_0x22cb4f){return function(_0x588db0){const _0x3531ee=a542_0x409d;if(_0x588db0){const _0x17a79f=_0x588db0[_0x3531ee('0x5b')],_0xab91e5=_0x22cb4f['offset'];let _0x3a23a1=_0x22cb4f[_0x3531ee('0x41')]+_0x22cb4f[_0x3531ee('0x83')],_0x20ee99;return _0x3a23a1>=_0x17a79f?(_0x3a23a1=_0x17a79f,_0x20ee99=0xc8):_0x20ee99=0xce,_0xb0fb85[_0x3531ee('0xc5')](_0x20ee99),_0xb0fb85[_0x3531ee('0x51')](_0x3531ee('0x1f'),_0xab91e5+'-'+_0x3a23a1+'/'+_0x17a79f)[_0x3531ee('0x74')](_0x588db0);}return null;};}function saveUpdates(_0x4f67ef){return function(_0x61d03f){if(_0x61d03f)return _0x61d03f['update'](_0x4f67ef)['then'](function(_0x198465){return _0x198465;});return null;};}function removeEntity(_0x3032cb){return function(_0x48c4e3){const _0x290ced=a542_0x409d;if(_0x48c4e3)return _0x48c4e3['destroy']()[_0x290ced('0x64')](function(){const _0x3800ef=_0x290ced,_0x111265=_0x48c4e3['get']({'plain':!![]}),_0x41ff39=_0x3800ef('0x43');return db[_0x3800ef('0x26')][_0x3800ef('0xa4')]({'where':{'type':_0x41ff39,'resourceId':_0x111265['id']}})[_0x3800ef('0x64')](function(){return _0x48c4e3;});})[_0x290ced('0x64')](function(){const _0x4f5142=_0x290ced;_0x3032cb[_0x4f5142('0xc5')](0xcc)[_0x4f5142('0x22')]();});};}function handleEntityNotFound(_0x55e5e2){return function(_0x3e49d7){const _0x4fe2de=a542_0x409d;return!_0x3e49d7&&_0x55e5e2[_0x4fe2de('0x1')](0x194),_0x3e49d7;};}function handleError(_0x4f5cf7,_0x44aa5c){return _0x44aa5c=_0x44aa5c||0x1f4,function(_0x45d142){const _0x585773=a542_0x409d;logger[_0x585773('0x2b')](_0x45d142[_0x585773('0xc4')]),_0x45d142[_0x585773('0xf')]&&delete _0x45d142[_0x585773('0xf')],_0x4f5cf7[_0x585773('0xc5')](_0x44aa5c)[_0x585773('0x92')](_0x45d142);};}exports[_0x2c6885('0x7c')]=function(_0x153a5d,_0x96f7dc){const _0x4bdd57=_0x2c6885;let _0x48029e={'include':[{'model':db[_0x4bdd57('0x35')],'as':_0x4bdd57('0x71')}]};const _0xa7adcf={},_0x361c75={'count':0x0,'rows':[]},_0x569ae6=_[_0x4bdd57('0x42')](db[_0x4bdd57('0x10')]['rawAttributes'],function(_0x696c79){const _0x9459a6=_0x4bdd57;return{'name':_0x696c79[_0x9459a6('0x53')],'type':_0x696c79['type'][_0x9459a6('0x47')]};});_0xa7adcf[_0x4bdd57('0x98')]=_[_0x4bdd57('0x42')](_0x569ae6,'name'),_0xa7adcf[_0x4bdd57('0x6d')]=_['keys'](_0x153a5d[_0x4bdd57('0x6d')]),_0xa7adcf[_0x4bdd57('0x38')]=_['intersection'](_0xa7adcf['model'],_0xa7adcf[_0x4bdd57('0x6d')]),_0x48029e[_0x4bdd57('0x3f')]=_[_0x4bdd57('0x31')](_0xa7adcf[_0x4bdd57('0x98')],qs[_0x4bdd57('0x99')](_0x153a5d[_0x4bdd57('0x6d')][_0x4bdd57('0x99')])),_0x48029e[_0x4bdd57('0x3f')]=_0x48029e[_0x4bdd57('0x3f')][_0x4bdd57('0x1d')]?_0x48029e[_0x4bdd57('0x3f')]:_0xa7adcf[_0x4bdd57('0x98')];typeof _0x153a5d[_0x4bdd57('0x6d')][_0x4bdd57('0x24')]===_0x4bdd57('0x6c')&&(_0x48029e[_0x4bdd57('0x83')]=qs[_0x4bdd57('0x83')](_0x153a5d['query'][_0x4bdd57('0x83')]),_0x48029e['offset']=qs[_0x4bdd57('0x41')](_0x153a5d[_0x4bdd57('0x6d')]['offset']));_0x48029e[_0x4bdd57('0x5c')]=qs[_0x4bdd57('0x2a')](_0x153a5d[_0x4bdd57('0x6d')][_0x4bdd57('0x2a')]),_0x48029e[_0x4bdd57('0x88')]=qs[_0x4bdd57('0x38')](_[_0x4bdd57('0xad')](_0x153a5d[_0x4bdd57('0x6d')],_0xa7adcf[_0x4bdd57('0x38')]),_0x569ae6);_0x153a5d[_0x4bdd57('0x6d')][_0x4bdd57('0xc3')]&&(_0x48029e[_0x4bdd57('0x88')]=_['merge'](_0x48029e[_0x4bdd57('0x88')],{[Op['or']]:_[_0x4bdd57('0x42')](_0x569ae6,function(_0x38787d){const _0x287d15=_0x4bdd57;if(_0x38787d[_0x287d15('0x2e')]!==_0x287d15('0x3a')){const _0x357640={};return _0x357640[_0x38787d[_0x287d15('0xf')]]={[Op[_0x287d15('0x65')]]:'%'+_0x153a5d[_0x287d15('0x6d')][_0x287d15('0xc3')]+'%'},_0x357640;}})}));_0x48029e=_['merge']({},_0x48029e,_0x153a5d[_0x4bdd57('0x7a')]);const _0x196eb2={'where':_0x48029e[_0x4bdd57('0x88')]};return db['SmsAccount'][_0x4bdd57('0x5b')](_0x196eb2)[_0x4bdd57('0x64')](function(_0x4aaa72){const _0x5c7686=_0x4bdd57;return _0x361c75[_0x5c7686('0x5b')]=_0x4aaa72,_0x153a5d[_0x5c7686('0x6d')]['includeAll']&&(_0x48029e[_0x5c7686('0xc1')]=[{'all':!![]}]),db[_0x5c7686('0x10')][_0x5c7686('0x12')](_0x48029e);})[_0x4bdd57('0x64')](function(_0x5417d4){const _0x44ad4f=_0x4bdd57;return _0x361c75[_0x44ad4f('0x54')]=_0x5417d4,_0x361c75;})[_0x4bdd57('0x64')](respondWithFilteredResult(_0x96f7dc,_0x48029e))[_0x4bdd57('0xa2')](handleError(_0x96f7dc,null));},exports['show']=function(_0x2fe4bd,_0x4c6c22){const _0xb95235=_0x2c6885;let _0x5eda0a={'raw':![],'where':{'id':_0x2fe4bd[_0xb95235('0x4e')]['id']},'include':[{'model':db[_0xb95235('0x35')],'as':_0xb95235('0x71')}]};const _0x32b615={};return _0x32b615[_0xb95235('0x98')]=_['keys'](db['SmsAccount'][_0xb95235('0x5a')]),_0x32b615[_0xb95235('0x6d')]=_[_0xb95235('0x67')](_0x2fe4bd[_0xb95235('0x6d')]),_0x32b615[_0xb95235('0x38')]=_[_0xb95235('0x31')](_0x32b615[_0xb95235('0x98')],_0x32b615['query']),_0x5eda0a[_0xb95235('0x3f')]=_[_0xb95235('0x31')](_0x32b615['model'],qs[_0xb95235('0x99')](_0x2fe4bd[_0xb95235('0x6d')][_0xb95235('0x99')])),_0x5eda0a[_0xb95235('0x3f')]=_0x5eda0a['attributes'][_0xb95235('0x1d')]?_0x5eda0a[_0xb95235('0x3f')]:_0x32b615[_0xb95235('0x98')],_0x2fe4bd[_0xb95235('0x6d')][_0xb95235('0x9f')]&&(_0x5eda0a[_0xb95235('0xc1')]=[{'all':!![]}]),_0x5eda0a=_[_0xb95235('0xa')]({},_0x5eda0a,_0x2fe4bd['options']),db[_0xb95235('0x10')][_0xb95235('0xba')](_0x5eda0a)['then'](handleEntityNotFound(_0x4c6c22,null))[_0xb95235('0x64')](respondWithResult(_0x4c6c22,null))[_0xb95235('0xa2')](handleError(_0x4c6c22,null));},exports[_0x2c6885('0x9e')]=function(_0x128f42,_0x5505c2){const _0x50940d=_0x2c6885;return db[_0x50940d('0x10')][_0x50940d('0x9e')](_0x128f42[_0x50940d('0x21')],{})[_0x50940d('0x64')](function(_0x5451d1){const _0x55700f=_0x50940d,_0x5effca=_0x128f42[_0x55700f('0x7e')][_0x55700f('0xd')]({'plain':!![]});if(!_0x5effca)throw new Error(_0x55700f('0x5d'));if(_0x5effca[_0x55700f('0x96')]===_0x55700f('0x7e')){const _0x2a9b42=_0x5451d1['get']({'plain':!![]}),_0x11a94f=_0x55700f('0x43');return db[_0x55700f('0x79')][_0x55700f('0xba')]({'where':{'name':_0x11a94f,'userProfileId':_0x5effca[_0x55700f('0x16')]},'raw':!![]})[_0x55700f('0x64')](function(_0x4c8979){const _0x3bd8d7=_0x55700f;return _0x4c8979&&_0x4c8979['autoAssociation']===0x0?db[_0x3bd8d7('0x26')][_0x3bd8d7('0x9e')]({'name':_0x2a9b42[_0x3bd8d7('0xf')],'resourceId':_0x2a9b42['id'],'type':_0x4c8979['name'],'sectionId':_0x4c8979['id']},{})[_0x3bd8d7('0x64')](function(){return _0x5451d1;}):_0x5451d1;})[_0x55700f('0xa2')](function(_0x13f6f3){const _0x1099fd=_0x55700f;logger[_0x1099fd('0x2b')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x13f6f3);throw _0x13f6f3;});}return _0x5451d1;})[_0x50940d('0x64')](respondWithResult(_0x5505c2,0xc9))[_0x50940d('0xa2')](handleError(_0x5505c2,null));},exports['update']=function(_0x38a0e3,_0x18f18c){const _0x26a3b5=_0x2c6885;return _0x38a0e3[_0x26a3b5('0x21')]['id']&&delete _0x38a0e3[_0x26a3b5('0x21')]['id'],db[_0x26a3b5('0x10')][_0x26a3b5('0xba')]({'where':{'id':_0x38a0e3['params']['id']},'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]})[_0x26a3b5('0x64')](handleEntityNotFound(_0x18f18c,null))[_0x26a3b5('0x64')](saveUpdates(_0x38a0e3[_0x26a3b5('0x21')],null))[_0x26a3b5('0x64')](respondWithResult(_0x18f18c,null))[_0x26a3b5('0xa2')](handleError(_0x18f18c,null));},exports[_0x2c6885('0xa4')]=function(_0x3cb376,_0x57e415){const _0x11b64c=_0x2c6885;return db[_0x11b64c('0x10')][_0x11b64c('0xba')]({'where':{'id':_0x3cb376[_0x11b64c('0x4e')]['id']}})['then'](handleEntityNotFound(_0x57e415,null))[_0x11b64c('0x64')](removeEntity(_0x57e415,null))['catch'](handleError(_0x57e415,null));},exports[_0x2c6885('0x1a')]=function(_0xb2989c,_0x551366){const _0x5c552a=_0x2c6885;return db[_0x5c552a('0x10')][_0x5c552a('0x1a')]()['then'](respondWithResult(_0x551366,null))[_0x5c552a('0xa2')](handleError(_0x551366,null));},exports[_0x2c6885('0x95')]=function(_0x22d185,_0x269772){const _0x5db9fe=_0x2c6885;return _0x22d185['body']['id']&&delete _0x22d185[_0x5db9fe('0x21')]['id'],db['SmsAccount'][_0x5db9fe('0xba')]({'where':{'id':_0x22d185[_0x5db9fe('0x4e')]['id']}})[_0x5db9fe('0x64')](handleEntityNotFound(_0x269772,null))['then'](function(_0x4035b8){const _0x3ad0c2=_0x5db9fe;if(_0x4035b8)return _0x22d185[_0x3ad0c2('0x21')][_0x3ad0c2('0xbd')]=_0x4035b8['id'],db[_0x3ad0c2('0x34')][_0x3ad0c2('0x9e')](_0x22d185[_0x3ad0c2('0x21')]);})[_0x5db9fe('0x64')](respondWithResult(_0x269772,null))[_0x5db9fe('0xa2')](handleError(_0x269772,null));},exports['getDispositions']=function(_0x590001,_0x5237c5){const _0x2d5918=_0x2c6885;let _0x4b6d7c={'raw':![],'where':{}};const _0x579ccf={},_0x577647={'count':0x0,'rows':[]};return db[_0x2d5918('0x10')]['findOne']({'where':{'id':_0x590001[_0x2d5918('0x4e')]['id']}})[_0x2d5918('0x64')](handleEntityNotFound(_0x5237c5,null))['then'](function(_0x526a9b){const _0x483054=_0x2d5918;if(_0x526a9b)return _0x579ccf[_0x483054('0x98')]=_[_0x483054('0x67')](db[_0x483054('0x34')]['rawAttributes']),_0x579ccf[_0x483054('0x6d')]=_['keys'](_0x590001[_0x483054('0x6d')]),_0x579ccf['filters']=_[_0x483054('0x31')](_0x579ccf[_0x483054('0x98')],_0x579ccf[_0x483054('0x6d')]),_0x4b6d7c['attributes']=_[_0x483054('0x31')](_0x579ccf['model'],qs['fields'](_0x590001[_0x483054('0x6d')][_0x483054('0x99')])),_0x4b6d7c[_0x483054('0x3f')]=_0x4b6d7c['attributes'][_0x483054('0x1d')]?_0x4b6d7c[_0x483054('0x3f')]:_0x579ccf[_0x483054('0x98')],typeof _0x590001['query'][_0x483054('0x24')]==='undefined'&&(_0x4b6d7c[_0x483054('0x83')]=qs[_0x483054('0x83')](_0x590001['query'][_0x483054('0x83')]),_0x4b6d7c[_0x483054('0x41')]=qs['offset'](_0x590001[_0x483054('0x6d')][_0x483054('0x41')])),_0x4b6d7c[_0x483054('0x5c')]=qs[_0x483054('0x2a')](_0x590001['query']['sort']),_0x4b6d7c[_0x483054('0x88')]=qs[_0x483054('0x38')](_[_0x483054('0xad')](_0x590001[_0x483054('0x6d')],_0x579ccf[_0x483054('0x38')])),_0x4b6d7c[_0x483054('0x88')][_0x483054('0xbd')]=_0x526a9b['id'],_0x590001[_0x483054('0x6d')][_0x483054('0xc3')]&&(_0x4b6d7c[_0x483054('0x88')]=_[_0x483054('0xa')](_0x4b6d7c['where'],{[Op['or']]:_[_0x483054('0x42')](_0x4b6d7c[_0x483054('0x3f')],function(_0x55638b){const _0x4e730f=_0x483054,_0x47a594={};return _0x47a594[_0x55638b]={[Op[_0x4e730f('0x65')]]:'%'+_0x590001['query'][_0x4e730f('0xc3')]+'%'},_0x47a594;})})),_0x4b6d7c=_[_0x483054('0xa')]({},_0x4b6d7c,_0x590001[_0x483054('0x7a')]),db[_0x483054('0x34')][_0x483054('0x5b')]({'where':_0x4b6d7c[_0x483054('0x88')]})[_0x483054('0x64')](function(_0x439bd1){const _0x26cd46=_0x483054;return _0x577647[_0x26cd46('0x5b')]=_0x439bd1,_0x590001[_0x26cd46('0x6d')][_0x26cd46('0x9f')]&&(_0x4b6d7c[_0x26cd46('0xc1')]=[{'all':!![]}]),db[_0x26cd46('0x34')][_0x26cd46('0x12')](_0x4b6d7c);})[_0x483054('0x64')](function(_0x5ba322){const _0x1eaf67=_0x483054;return _0x577647[_0x1eaf67('0x54')]=_0x5ba322,_0x577647;});})[_0x2d5918('0x64')](respondWithFilteredResult(_0x5237c5,_0x4b6d7c))[_0x2d5918('0xa2')](handleError(_0x5237c5,null));},exports[_0x2c6885('0x89')]=function(_0x1dfda1,_0x4cf2cd){const _0x96c022=_0x2c6885;return db['SmsAccount'][_0x96c022('0xba')]({'where':{'id':_0x1dfda1['params']['id']}})[_0x96c022('0x64')](handleEntityNotFound(_0x4cf2cd,null))[_0x96c022('0x64')](function(_0x3393d0){const _0x291ffb=_0x96c022;if(_0x3393d0)return _0x3393d0[_0x291ffb('0x89')](_0x1dfda1['query'][_0x291ffb('0x19')]);})[_0x96c022('0x64')](respondWithStatusCode(_0x4cf2cd,null))[_0x96c022('0xa2')](handleError(_0x4cf2cd,null));},exports[_0x2c6885('0x55')]=function(_0x17733d,_0x5eca23){const _0x304545=_0x2c6885;return _0x17733d[_0x304545('0x21')]['id']&&delete _0x17733d[_0x304545('0x21')]['id'],db[_0x304545('0x10')]['findOne']({'where':{'id':_0x17733d[_0x304545('0x4e')]['id']}})['then'](handleEntityNotFound(_0x5eca23,null))[_0x304545('0x64')](function(_0x398196){const _0x34f547=_0x304545;if(_0x398196)return _0x17733d[_0x34f547('0x21')][_0x34f547('0xbd')]=_0x398196['id'],db[_0x34f547('0xa8')]['create'](_0x17733d[_0x34f547('0x21')]);})['then'](respondWithResult(_0x5eca23,null))[_0x304545('0xa2')](handleError(_0x5eca23,null));},exports[_0x2c6885('0x29')]=function(_0x2723b5,_0x298aea){const _0x5a74c9=_0x2c6885;let _0x37e133={'raw':![],'where':{}};const _0xd699f3={},_0x2e7602={'count':0x0,'rows':[]};return db['SmsAccount'][_0x5a74c9('0xba')]({'where':{'id':_0x2723b5['params']['id']}})[_0x5a74c9('0x64')](handleEntityNotFound(_0x298aea,null))['then'](function(_0x5ab46e){const _0xa5fd39=_0x5a74c9;if(_0x5ab46e)return _0xd699f3['model']=_['keys'](db[_0xa5fd39('0xa8')][_0xa5fd39('0x5a')]),_0xd699f3['query']=_[_0xa5fd39('0x67')](_0x2723b5[_0xa5fd39('0x6d')]),_0xd699f3[_0xa5fd39('0x38')]=_[_0xa5fd39('0x31')](_0xd699f3[_0xa5fd39('0x98')],_0xd699f3[_0xa5fd39('0x6d')]),_0x37e133[_0xa5fd39('0x3f')]=_[_0xa5fd39('0x31')](_0xd699f3[_0xa5fd39('0x98')],qs[_0xa5fd39('0x99')](_0x2723b5['query'][_0xa5fd39('0x99')])),_0x37e133[_0xa5fd39('0x3f')]=_0x37e133[_0xa5fd39('0x3f')][_0xa5fd39('0x1d')]?_0x37e133[_0xa5fd39('0x3f')]:_0xd699f3[_0xa5fd39('0x98')],typeof _0x2723b5[_0xa5fd39('0x6d')]['nolimit']===_0xa5fd39('0x6c')&&(_0x37e133['limit']=qs['limit'](_0x2723b5[_0xa5fd39('0x6d')][_0xa5fd39('0x83')]),_0x37e133[_0xa5fd39('0x41')]=qs['offset'](_0x2723b5[_0xa5fd39('0x6d')][_0xa5fd39('0x41')])),_0x37e133[_0xa5fd39('0x5c')]=qs[_0xa5fd39('0x2a')](_0x2723b5[_0xa5fd39('0x6d')]['sort']),_0x37e133[_0xa5fd39('0x88')]=qs['filters'](_['pick'](_0x2723b5[_0xa5fd39('0x6d')],_0xd699f3['filters'])),_0x37e133[_0xa5fd39('0x88')][_0xa5fd39('0xbd')]=_0x5ab46e['id'],_0x2723b5[_0xa5fd39('0x6d')][_0xa5fd39('0xc3')]&&(_0x37e133[_0xa5fd39('0x88')]=_[_0xa5fd39('0xa')](_0x37e133[_0xa5fd39('0x88')],{[Op['or']]:_[_0xa5fd39('0x42')](_0x37e133[_0xa5fd39('0x3f')],function(_0x2628ac){const _0x2e684b=_0xa5fd39,_0x4f0cc8={};return _0x4f0cc8[_0x2628ac]={[Op[_0x2e684b('0x65')]]:'%'+_0x2723b5['query'][_0x2e684b('0xc3')]+'%'},_0x4f0cc8;})})),_0x37e133=_['merge']({},_0x37e133,_0x2723b5[_0xa5fd39('0x7a')]),db[_0xa5fd39('0xa8')][_0xa5fd39('0x5b')]({'where':_0x37e133[_0xa5fd39('0x88')]})[_0xa5fd39('0x64')](function(_0x3e2148){const _0x487d1f=_0xa5fd39;return _0x2e7602[_0x487d1f('0x5b')]=_0x3e2148,_0x2723b5[_0x487d1f('0x6d')][_0x487d1f('0x9f')]&&(_0x37e133['include']=[{'all':!![]}]),db[_0x487d1f('0xa8')][_0x487d1f('0x12')](_0x37e133);})[_0xa5fd39('0x64')](function(_0x37cd8f){const _0xc6081e=_0xa5fd39;return _0x2e7602[_0xc6081e('0x54')]=_0x37cd8f,_0x2e7602;});})[_0x5a74c9('0x64')](respondWithFilteredResult(_0x298aea,_0x37e133))[_0x5a74c9('0xa2')](handleError(_0x298aea,null));},exports['removeAnswers']=function(_0x1feb8e,_0x185a2b){const _0x26ebec=_0x2c6885;return db[_0x26ebec('0x10')][_0x26ebec('0xba')]({'where':{'id':_0x1feb8e[_0x26ebec('0x4e')]['id']}})[_0x26ebec('0x64')](handleEntityNotFound(_0x185a2b,null))[_0x26ebec('0x64')](function(_0x214838){const _0x41261f=_0x26ebec;if(_0x214838)return _0x214838[_0x41261f('0x28')](_0x1feb8e[_0x41261f('0x6d')][_0x41261f('0x19')]);})[_0x26ebec('0x64')](respondWithStatusCode(_0x185a2b,null))[_0x26ebec('0xa2')](handleError(_0x185a2b,null));},exports['notify']=function(_0x405d6d,_0x55b32b){const _0x524aa2=_0x2c6885,_0x3c8a72={'channel':_0x524aa2('0x4b')};let _0x259933=[],_0x3aa09d=[];const _0x1f98db={};return db[_0x524aa2('0x10')][_0x524aa2('0xba')]({'where':{'id':_0x405d6d[_0x524aa2('0x4e')]['id']},'include':[{'model':db['SmsApplication'],'as':_0x524aa2('0x97')}]})[_0x524aa2('0x64')](handleEntityNotFound(_0x55b32b,null))['then'](function(_0x341658){const _0x40d8d6=_0x524aa2;return _0x3c8a72[_0x40d8d6('0x9a')]=_0x341658,_0x3c8a72[_0x40d8d6('0x50')]=_[_0x40d8d6('0x86')](_0x341658[_0x40d8d6('0x97')],[_0x40d8d6('0x87')],[_0x40d8d6('0x30')]),_0x3c8a72[_0x40d8d6('0x9a')]['Applications']&&delete _0x3c8a72[_0x40d8d6('0x9a')][_0x40d8d6('0x97')],db[_0x40d8d6('0x69')][_0x40d8d6('0x1a')]();})[_0x524aa2('0x64')](function(_0x57264a){const _0x3bc616=_0x524aa2;if(!_0x57264a)throw new ValidationError(_0x3bc616('0xa7'));_0x259933=_[_0x3bc616('0x17')](_[_0x3bc616('0x67')](_0x57264a),[_0x3bc616('0x14'),'updatedAt']),_0x3aa09d=_[_0x3bc616('0x17')](_[_0x3bc616('0x67')](_0x57264a),[_0x3bc616('0x14'),_0x3bc616('0x9d'),_0x3bc616('0xb6'),_0x3bc616('0x84')]),_0x3c8a72[_0x3bc616('0x21')]={'mapKey':_0x3bc616('0xac')};if(_0x3c8a72[_0x3bc616('0x9a')]['type'])switch(_0x3c8a72[_0x3bc616('0x9a')]['type']){case _0x3bc616('0x1e'):_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x2c')]=_0x405d6d[_0x3bc616('0x21')]['From'],_0x3c8a72[_0x3bc616('0x21')]['body']=_0x405d6d['body'][_0x3bc616('0x5f')],_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0xbe')]=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x8d')];break;case _0x3bc616('0x2d'):_0x3c8a72['body']['from']='+'+_0x405d6d[_0x3bc616('0x21')]['sender'],_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x21')]=_0x405d6d['body'][_0x3bc616('0x59')];break;case _0x3bc616('0x77'):_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x2c')]=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x2c')],_0x3c8a72[_0x3bc616('0x21')]['body']=_0x405d6d[_0x3bc616('0x21')]['message'];break;case'clicksend':_0x3c8a72['body'][_0x3bc616('0x2c')]=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x2c')],_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x21')]=_0x405d6d[_0x3bc616('0x21')]['body'],_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0xbe')]=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x8c')];break;case _0x3bc616('0x82'):_0x3c8a72[_0x3bc616('0x21')]['from']=_0x405d6d[_0x3bc616('0x21')]['From'],_0x3c8a72[_0x3bc616('0x21')]['body']=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x9c')],_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0xbe')]=_0x405d6d[_0x3bc616('0x21')]['MessageUUID'];break;case'infobip':_0x3c8a72['body'][_0x3bc616('0x2c')]='+'+_0x405d6d[_0x3bc616('0x21')]['results'][0x0][_0x3bc616('0x2c')],_0x3c8a72['body']['body']=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x61')][0x0][_0x3bc616('0x59')],_0x3c8a72[_0x3bc616('0x21')]['messageId']=_0x405d6d['body'][_0x3bc616('0x61')][0x0][_0x3bc616('0xbe')];break;case'csc':_0x3c8a72[_0x3bc616('0x21')]['from']=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x58')],_0x3c8a72[_0x3bc616('0x21')]['body']=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x8a')][_0x3bc616('0xb1')];break;case _0x3bc616('0x4a'):_0x3c8a72['body']['from']=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x9')],_0x3c8a72[_0x3bc616('0x21')]['body']=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x59')],_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0xbe')]=_0x405d6d['body']['replyMessageId'];break;case _0x3bc616('0xb4'):_0x3c8a72[_0x3bc616('0x21')]['from']=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x2c')],_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x21')]=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0xb1')],_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0xbe')]=_0x405d6d[_0x3bc616('0x21')][_0x3bc616('0x5')];break;}_0x3c8a72[_0x3bc616('0x21')]['id']&&delete _0x3c8a72[_0x3bc616('0x21')]['id'];if(_[_0x3bc616('0x3d')](_0x3c8a72[_0x3bc616('0x21')]['from']))throw new ValidationError(_0x3bc616('0x85'));if(_[_0x3bc616('0x3d')](_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x21')])||_0x3c8a72[_0x3bc616('0x21')]['body']==='')throw new ValidationError(_0x3bc616('0x62'));if(_[_0x3bc616('0x3d')](_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x6b')]))throw new ValidationError(_0x3bc616('0x9b')+_0x3aa09d);if(!_[_0x3bc616('0x4')](_0x3aa09d,_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x6b')]))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x3aa09d);return _0x1f98db[_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x6b')]]=_0x3c8a72[_0x3bc616('0x21')][_0x3bc616('0x2c')],db['CmList'][_0x3bc616('0xba')]({'where':{'id':_0x3c8a72[_0x3bc616('0x9a')][_0x3bc616('0x84')]},'include':[{'model':db[_0x3bc616('0x69')],'as':'Contacts','where':_0x1f98db,'limit':0x1,'order':[[_0x3bc616('0x9d'),_0x3bc616('0x49')]]}]});})[_0x524aa2('0x64')](handleEntityNotFound(_0x55b32b,null))['then'](function(_0x41e6de){const _0xd55d67=_0x524aa2;if(_0x41e6de){_0x3c8a72['list']=_[_0xd55d67('0x20')](_0x41e6de,[_0xd55d67('0x8e')]);if(_0x41e6de[_0xd55d67('0x8e')][_0xd55d67('0x1d')])return _0x41e6de[_0xd55d67('0x8e')][0x0];const _0x38b552=_['defaults'](_0x3c8a72[_0xd55d67('0x21')],{'firstName':_0x3c8a72[_0xd55d67('0x21')][_0xd55d67('0x2c')],'ListId':_0x41e6de['id']});return _0x38b552[_0x3c8a72[_0xd55d67('0x21')]['mapKey']]=_0x3c8a72[_0xd55d67('0x21')]['from'],db[_0xd55d67('0x69')][_0xd55d67('0x9e')](_0x38b552,{'fields':_0x259933,'raw':!![]});}})[_0x524aa2('0x64')](handleEntityNotFound(_0x55b32b,null))['then'](function(_0x63e860){const _0x5e70b1=_0x524aa2;if(_0x63e860){_0x3c8a72[_0x5e70b1('0x6a')]=_0x63e860;const _0x22c220={'ContactId':_0x63e860['id'],'phone':_0x3c8a72[_0x5e70b1('0x21')][_0x5e70b1('0x2c')],'SmsAccountId':_0x405d6d[_0x5e70b1('0x4e')]['id']},_0x18e0c3={'ContactId':_0x63e860['id'],'SmsAccountId':_0x405d6d[_0x5e70b1('0x4e')]['id'],'closed':![]};return db[_0x5e70b1('0x3')][_0x5e70b1('0xba')]({'where':_0x18e0c3})[_0x5e70b1('0x64')](function(_0x26880c){const _0x1fc59b=_0x5e70b1;if(_0x26880c)return[_0x26880c,![]];return db[_0x1fc59b('0x3')]['create'](_0x22c220)['then'](function(_0x9b31ff){return[_0x9b31ff,!![]];});});}})[_0x524aa2('0x64')](function([_0x2a4eb9,_0x52cc09]){const _0xa13fc7=_0x524aa2;return _0x3c8a72[_0xa13fc7('0xbf')]=_0x2a4eb9['get']({'plain':!![]}),_0x3c8a72['interaction'][_0xa13fc7('0x78')]=![],_0x52cc09&&(_0x3c8a72[_0xa13fc7('0x9a')]['autoclose']&&_0x3c8a72[_0xa13fc7('0x50')][_0xa13fc7('0xe')]({'id':0x0,'priority':_0x3c8a72[_0xa13fc7('0x50')][_0xa13fc7('0x1d')]+0x1,'app':_0xa13fc7('0x48'),'appdata':_0xa13fc7('0x3c'),'interval':_0xa13fc7('0x6')}),_0x3c8a72[_0xa13fc7('0xbf')][_0xa13fc7('0x78')]=!![]),db[_0xa13fc7('0x60')]['create']({'phone':_0x3c8a72[_0xa13fc7('0x21')][_0xa13fc7('0x2c')],'messageId':_0x3c8a72[_0xa13fc7('0x21')]['messageId'],'body':_0x3c8a72[_0xa13fc7('0x21')][_0xa13fc7('0x21')],'SmsAccountId':_0x405d6d[_0xa13fc7('0x4e')]['id'],'SmsInteractionId':_0x2a4eb9['id'],'direction':'in','ContactId':_0x2a4eb9[_0xa13fc7('0x70')],'AttachmentId':_0x3c8a72[_0xa13fc7('0x21')][_0xa13fc7('0x66')]});})[_0x524aa2('0x64')](function(_0x1c036f){const _0x356674=_0x524aa2;_0x3c8a72[_0x356674('0xb1')]=_0x1c036f;if(_0x3c8a72[_0x356674('0xbf')]['UserId'])return db['User'][_0x356674('0xba')]({'attributes':['id',_0x356674('0xf')],'where':{'id':_0x3c8a72[_0x356674('0xbf')]['UserId']}})['then'](function(_0x257456){const _0x34ba7c=_0x356674;return _0x257456&&_0x3c8a72['applications'][_0x34ba7c('0x40')]({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x257456[_0x34ba7c('0xf')]+','+(_0x3c8a72[_0x34ba7c('0x9a')][_0x34ba7c('0x3b')]||0xa),'interval':_0x34ba7c('0x6')}),respondWithRpcPromise('Start',_0x34ba7c('0x73'),_0x3c8a72);});return respondWithRpcPromise(_0x356674('0x75'),'startRouting',_0x3c8a72);})[_0x524aa2('0x64')](function(_0x150c15){const _0x3583eb=_0x524aa2;if(_0x150c15){const _0x3d8f04=0xc8,_0x3f0cce=_0x3583eb('0xbc');return logger[_0x3583eb('0x36')](_0x3583eb('0xb3'),_0x3f0cce,_0x3d8f04,_0x3583eb('0x68')),logger['debug'](_0x3583eb('0x6f'),_0x3f0cce,_0x3d8f04,_0x3583eb('0x68'),JSON[_0x3583eb('0xbb')](_0x150c15)),_0x3c8a72['account']['type']==='twilio'?_0x55b32b[_0x3583eb('0xc5')](_0x3d8f04)[_0x3583eb('0x51')](_0x3583eb('0xa6'),_0x3583eb('0x1c'))['send'](_0x3583eb('0xaf')):_0x55b32b[_0x3583eb('0xc5')](_0x3d8f04)[_0x3583eb('0x74')](_0x150c15);}})[_0x524aa2('0xa2')](handleError(_0x55b32b,null));},exports[_0x2c6885('0xa1')]=function(_0x415976,_0x2bcf20){const _0x6e60c8=_0x2c6885;return db[_0x6e60c8('0x10')][_0x6e60c8('0xba')]({'where':{'id':_0x415976[_0x6e60c8('0x4e')]['id']}})[_0x6e60c8('0x64')](handleEntityNotFound(_0x2bcf20,null))['then'](function(_0x48fd5a){const _0x119183=_0x6e60c8;if(_0x48fd5a)return db['sequelize'][_0x119183('0x33')](function(_0x24976c){const _0x59eed1=_0x119183;return db[_0x59eed1('0x7d')][_0x59eed1('0xa4')]({'where':{'SmsAccountId':_0x415976[_0x59eed1('0x4e')]['id']},'transaction':_0x24976c})[_0x59eed1('0x64')](function(){const _0x5ab7cd=_0x59eed1,_0x1bf873=_[_0x5ab7cd('0x42')](_0x415976['body'],function(_0x2a1d14){const _0x4a27a5=_0x5ab7cd;return _0x2a1d14[_0x4a27a5('0xbd')]=_0x415976[_0x4a27a5('0x4e')]['id'],_0x2a1d14;});return db['SmsApplication'][_0x5ab7cd('0xb2')](_0x1bf873,{'transaction':_0x24976c});});})[_0x119183('0x64')](function(){const _0x23d84e=_0x119183;return db[_0x23d84e('0x7d')][_0x23d84e('0x91')]({'where':{'SmsAccountId':_0x415976[_0x23d84e('0x4e')]['id']},'order':_0x23d84e('0x87')});});})[_0x6e60c8('0x64')](respondWithResult(_0x2bcf20,null))[_0x6e60c8('0xa2')](handleError(_0x2bcf20,null));},exports['getApplications']=function(_0x71b71,_0x1905d5){const _0xf83eb5=_0x2c6885;let _0x223692={};const _0x4e3f07={};let _0x48fee6,_0x3a2681;return db[_0xf83eb5('0x10')][_0xf83eb5('0xba')]({'where':{'id':_0x71b71['params']['id']}})['then'](handleEntityNotFound(_0x1905d5,null))[_0xf83eb5('0x64')](function(_0x116b27){const _0x329018=_0xf83eb5;if(_0x116b27)return _0x48fee6=_0x116b27,_0x4e3f07[_0x329018('0x98')]=_[_0x329018('0x67')](db[_0x329018('0x7d')]['rawAttributes']),_0x4e3f07['query']=_[_0x329018('0x67')](_0x71b71[_0x329018('0x6d')]),_0x4e3f07[_0x329018('0x38')]=_[_0x329018('0x31')](_0x4e3f07[_0x329018('0x98')],_0x4e3f07[_0x329018('0x6d')]),_0x223692['attributes']=_[_0x329018('0x31')](_0x4e3f07[_0x329018('0x98')],qs[_0x329018('0x99')](_0x71b71[_0x329018('0x6d')][_0x329018('0x99')])),_0x223692['attributes']=_0x223692[_0x329018('0x3f')][_0x329018('0x1d')]?_0x223692['attributes']:_0x4e3f07[_0x329018('0x98')],_0x223692[_0x329018('0x5c')]=qs['sort'](_0x71b71[_0x329018('0x6d')]['sort']),_0x223692[_0x329018('0x88')]=qs[_0x329018('0x38')](_[_0x329018('0xad')](_0x71b71[_0x329018('0x6d')],_0x4e3f07[_0x329018('0x38')])),_0x71b71[_0x329018('0x6d')]['filter']&&(_0x223692[_0x329018('0x88')]=_[_0x329018('0xa')](_0x223692[_0x329018('0x88')],{[Op['or']]:_[_0x329018('0x42')](_0x223692[_0x329018('0x3f')],function(_0x14b352){const _0x241801=_0x329018,_0x5d7f2e={};return _0x5d7f2e[_0x14b352]={[Op[_0x241801('0x65')]]:'%'+_0x71b71[_0x241801('0x6d')]['filter']+'%'},_0x5d7f2e;})})),_0x223692=_[_0x329018('0xa')]({},_0x223692,_0x71b71[_0x329018('0x7a')]),_0x48fee6[_0x329018('0x8b')](_0x223692);})[_0xf83eb5('0x64')](function(_0x23bc98){const _0x1dd773=_0xf83eb5;if(_0x23bc98)return _0x3a2681=_0x23bc98[_0x1dd773('0x1d')],typeof _0x71b71['query'][_0x1dd773('0x24')]===_0x1dd773('0x6c')&&(_0x223692[_0x1dd773('0x83')]=qs[_0x1dd773('0x83')](_0x71b71['query'][_0x1dd773('0x83')]),_0x223692[_0x1dd773('0x41')]=qs[_0x1dd773('0x41')](_0x71b71['query'][_0x1dd773('0x41')])),_0x48fee6['getApplications'](_0x223692);})[_0xf83eb5('0x64')](function(_0x52ec74){if(_0x52ec74)return _0x52ec74?{'count':_0x3a2681,'rows':_0x52ec74}:null;})['then'](respondWithResult(_0x1905d5,null))[_0xf83eb5('0xa2')](handleError(_0x1905d5,null));},exports['getInteractions']=function(_0x806528,_0x408819){const _0x2ae6cc=_0x2c6885;let _0x4b2127={'raw':![],'where':{}};const _0x44074a={},_0x197cc3={'count':0x0,'rows':[]};return db['SmsAccount'][_0x2ae6cc('0xba')]({'where':{'id':_0x806528[_0x2ae6cc('0x4e')]['id']}})[_0x2ae6cc('0x64')](handleEntityNotFound(_0x408819,null))[_0x2ae6cc('0x64')](function(_0x5eba09){const _0x2f828f=_0x2ae6cc;if(_0x5eba09)return _0x44074a[_0x2f828f('0x98')]=_[_0x2f828f('0x67')](db[_0x2f828f('0x3')][_0x2f828f('0x5a')]),_0x44074a[_0x2f828f('0x6d')]=_['keys'](_0x806528['query']),_0x44074a[_0x2f828f('0x38')]=_[_0x2f828f('0x31')](_0x44074a[_0x2f828f('0x98')],_0x44074a[_0x2f828f('0x6d')]),_0x4b2127[_0x2f828f('0x3f')]=_[_0x2f828f('0x31')](_0x44074a[_0x2f828f('0x98')],qs['fields'](_0x806528['query']['fields'])),_0x4b2127[_0x2f828f('0x3f')]=_0x4b2127['attributes']['length']?_0x4b2127['attributes']:_0x44074a[_0x2f828f('0x98')],typeof _0x806528['query'][_0x2f828f('0x24')]===_0x2f828f('0x6c')&&(_0x4b2127[_0x2f828f('0x83')]=qs['limit'](_0x806528[_0x2f828f('0x6d')][_0x2f828f('0x83')]),_0x4b2127[_0x2f828f('0x41')]=qs['offset'](_0x806528[_0x2f828f('0x6d')][_0x2f828f('0x41')])),_0x4b2127[_0x2f828f('0x5c')]=qs[_0x2f828f('0x2a')](_0x806528[_0x2f828f('0x6d')][_0x2f828f('0x2a')]),_0x4b2127[_0x2f828f('0x88')]=qs[_0x2f828f('0x38')](_[_0x2f828f('0xad')](_0x806528['query'],_0x44074a['filters'])),_0x4b2127[_0x2f828f('0x88')]['SmsAccountId']=_0x5eba09['id'],_0x806528[_0x2f828f('0x6d')][_0x2f828f('0xc3')]&&(_0x4b2127[_0x2f828f('0x88')]=_[_0x2f828f('0xa')](_0x4b2127[_0x2f828f('0x88')],{[Op['or']]:_['map'](_0x4b2127[_0x2f828f('0x3f')],function(_0x7caad){const _0xf1d93e={};return _0xf1d93e[_0x7caad]={[Op['like']]:'%'+_0x806528['query']['filter']+'%'},_0xf1d93e;})})),_0x4b2127=_[_0x2f828f('0xa')]({},_0x4b2127,_0x806528['options']),db[_0x2f828f('0x3')][_0x2f828f('0x5b')]({'where':_0x4b2127[_0x2f828f('0x88')]})[_0x2f828f('0x64')](function(_0x8bc53d){const _0x26b72b=_0x2f828f;return _0x197cc3[_0x26b72b('0x5b')]=_0x8bc53d,_0x806528[_0x26b72b('0x6d')]['includeAll']&&(_0x4b2127[_0x26b72b('0xc1')]=[{'model':db['CmContact'],'as':'Contact','required':![]},{'model':db[_0x26b72b('0xa5')],'as':_0x26b72b('0xb8'),'attributes':[_0x26b72b('0xf'),_0x26b72b('0xab'),_0x26b72b('0xa0')],'required':![]},{'model':db[_0x26b72b('0xb5')],'as':_0x26b72b('0xa9'),'attributes':['id','name','color'],'where':_0x806528['query'][_0x26b72b('0x81')]?{'id':_0x806528['query'][_0x26b72b('0x81')]}:undefined,'required':_0x806528[_0x26b72b('0x6d')]['tag']?!![]:![]}]),db['SmsInteraction']['findAll'](_0x4b2127);})[_0x2f828f('0x64')](function(_0x43ae0d){const _0x39274b=_0x2f828f;return _0x197cc3[_0x39274b('0x54')]=_0x43ae0d,_0x197cc3;});})[_0x2ae6cc('0x64')](respondWithFilteredResult(_0x408819,_0x4b2127))[_0x2ae6cc('0xa2')](handleError(_0x408819,null));},exports[_0x2c6885('0x92')]=function(_0x1d1d46,_0x1d2008){const _0x55b084=_0x2c6885;let _0x2b15f2,_0x137d89;if(_['isNil'](_0x1d1d46['body'][_0x55b084('0x21')])||_0x1d1d46[_0x55b084('0x21')][_0x55b084('0x21')]==='')throw new ValidationError(_0x55b084('0x62'));if(_[_0x55b084('0x3d')](_0x1d1d46[_0x55b084('0x21')]['to']))throw new ValidationError(_0x55b084('0x4d'));const _0x4f4d08=_0x1d1d46['body']['to'];return db[_0x55b084('0x10')]['findOne']({'where':{'id':_0x1d1d46[_0x55b084('0x4e')]['id']},'include':[{'model':db[_0x55b084('0x15')],'as':_0x55b084('0x37'),'include':[{'model':db[_0x55b084('0x69')],'as':_0x55b084('0x8e'),'where':{'mobile':_0x4f4d08},'limit':0x1,'order':[[_0x55b084('0x9d'),'DESC']]}]}]})['then'](handleEntityNotFound(_0x1d2008,null))[_0x55b084('0x64')](function(_0x33f971){const _0x1accff=_0x55b084;if(_0x33f971&&_0x33f971[_0x1accff('0x37')]){_0x2b15f2=_0x33f971[_0x1accff('0xd')]({'plain':!![]});if(_0x2b15f2[_0x1accff('0x37')]&&_0x2b15f2[_0x1accff('0x37')][_0x1accff('0x8e')][_0x1accff('0x1d')])return _0x2b15f2[_0x1accff('0x37')][_0x1accff('0x8e')][0x0];return db['CmContact'][_0x1accff('0x9e')](_[_0x1accff('0x13')](_0x1d1d46[_0x1accff('0x21')],{'firstName':_0x4f4d08,'mobile':_0x4f4d08,'phone':_0x4f4d08,'ListId':_0x2b15f2['ListId']}));}})[_0x55b084('0x64')](handleEntityNotFound(_0x1d2008,null))[_0x55b084('0x64')](function(_0x4e9fd2){const _0x13eeb7=_0x55b084;if(_0x4e9fd2)return _0x137d89=_0x4e9fd2,db[_0x13eeb7('0x3')][_0x13eeb7('0xba')]({'where':{'ContactId':_0x137d89['id'],'closed':![],'SmsAccountId':_0x2b15f2['id']}})['then'](function(_0x2e4b85){const _0x46b252=_0x13eeb7;if(_0x2e4b85)return[_0x2e4b85,![]];return db[_0x46b252('0x3')][_0x46b252('0x9e')]({'UserId':_0x1d1d46[_0x46b252('0x7e')]['id'],'ContactId':_0x137d89['id'],'SmsAccountId':_0x2b15f2['id'],'phone':_0x4f4d08,'firstMsgDirection':_0x46b252('0x2'),'Messages':[_[_0x46b252('0xa')](_0x1d1d46[_0x46b252('0x21')],{'read':![],'body':_0x1d1d46[_0x46b252('0x21')][_0x46b252('0x21')],'phone':_0x4f4d08,'SmsAccountId':_0x2b15f2['id'],'UserId':_0x1d1d46['user']['id'],'ContactId':_0x137d89['id']})]},{'include':[{'model':db[_0x46b252('0x60')],'as':'Messages'}]})[_0x46b252('0x64')](function(_0x292f7b){return[_0x292f7b,!![]];});});})['then'](function([_0x10ad21,_0x187e14]){const _0x438e60=_0x55b084;if(_0x187e14)return _0x10ad21;return db[_0x438e60('0x60')][_0x438e60('0x9e')](_['merge'](_0x1d1d46[_0x438e60('0x21')],{'read':![],'body':_0x1d1d46['body'][_0x438e60('0x21')],'phone':_0x4f4d08,'SmsAccountId':_0x2b15f2['id'],'SmsInteractionId':_0x10ad21['id'],'UserId':_0x1d1d46[_0x438e60('0x7e')]['id'],'ContactId':_0x137d89['id']}))[_0x438e60('0x64')](function(_0x179d15){const _0x3ab1a9=_0x438e60;return _0x10ad21[_0x3ab1a9('0x32')]['Messages']=[],_0x10ad21[_0x3ab1a9('0x32')][_0x3ab1a9('0x3e')]['push'](_0x179d15[_0x3ab1a9('0x32')]),_0x10ad21;});})['then'](respondWithResult(_0x1d2008,null))[_0x55b084('0xa2')](handleError(_0x1d2008,null));},exports[_0x2c6885('0xc5')]=function(_0x42a4f6,_0x33f9c2){const _0x33fa5f=_0x2c6885;_0x42a4f6['body']['id']&&delete _0x42a4f6['body']['id'];console[_0x33fa5f('0x7f')](_0x33fa5f('0x45'),_0x42a4f6[_0x33fa5f('0x21')]);let _0x2e0663,_0x3c7e72,_0x2cdd79;return db[_0x33fa5f('0x10')]['findOne']({'where':{'id':_0x42a4f6['params']['id']}})['then'](handleEntityNotFound(_0x33f9c2,null))[_0x33fa5f('0x64')](function(_0x2c79e9){const _0x40fecc=_0x33fa5f;if(_0x2c79e9){_0x2cdd79=_0x2c79e9,logger['debug'](_0x40fecc('0xb3'),_0x40fecc('0xc5'),_0x40fecc('0x23'),_0x2c79e9[_0x40fecc('0x2e')],util['inspect'](_0x42a4f6['body'],{'showHidden':![],'depth':null}));switch(_0x2c79e9[_0x40fecc('0x2e')]){case _0x40fecc('0x2d'):if(_0x42a4f6[_0x40fecc('0x21')]['skebby_dispatch_id']&&_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0xc5')])return _0x3c7e72=_0x42a4f6[_0x40fecc('0x21')]['status'],db['SmsMessage'][_0x40fecc('0xba')]({'where':{'messageId':_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0x2f')]}});break;case _0x40fecc('0x77'):if(_0x42a4f6[_0x40fecc('0x21')]['requestid']&&_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0x5e')])return _0x3c7e72=_0x42a4f6['body'][_0x40fecc('0x5e')],db[_0x40fecc('0x60')][_0x40fecc('0xba')]({'where':{'messageId':_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0xb')]}});break;case _0x40fecc('0xa3'):if(_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0x8c')]&&_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0xc2')])return _0x3c7e72=_0x42a4f6['body'][_0x40fecc('0xc2')],db['SmsMessage'][_0x40fecc('0xba')]({'where':{'messageId':_0x42a4f6['body'][_0x40fecc('0x8c')]}});break;case _0x40fecc('0x8'):{const _0x3497f0=_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0x61')][0x0];if(_0x3497f0['messageId']&&_0x3497f0['status'][_0x40fecc('0xb0')]===_0x40fecc('0x1b'))return _0x3c7e72=_0x3497f0[_0x40fecc('0xc5')][_0x40fecc('0xb0')],db[_0x40fecc('0x60')][_0x40fecc('0xba')]({'where':{'messageId':_0x3497f0[_0x40fecc('0xbe')]}});}break;case'clickatell':if(_0x42a4f6['body'][_0x40fecc('0xbe')]&&_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0xc5')])return _0x3c7e72=_0x42a4f6['body'][_0x40fecc('0xc5')],db[_0x40fecc('0x60')][_0x40fecc('0xba')]({'where':{'messageId':_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0xbe')]}});break;case _0x40fecc('0xb4'):if(_0x42a4f6['body'][_0x40fecc('0x93')]&&_0x42a4f6[_0x40fecc('0x21')]['status'])return _0x3c7e72=_0x42a4f6[_0x40fecc('0x21')][_0x40fecc('0xc5')],db['SmsMessage'][_0x40fecc('0xba')]({'where':{'messageId':_0x42a4f6['body'][_0x40fecc('0x93')]}});break;}}})[_0x33fa5f('0x64')](handleEntityNotFound(_0x33f9c2,null))['then'](function(_0x24ab84){const _0x2e1a3a=_0x33fa5f;if(_0x24ab84){_0x2e0663=_0x24ab84;switch(_0x2cdd79['type']){case _0x2e1a3a('0x2d'):if(_0x3c7e72===_0x2e1a3a('0x1b'))return _0x2e0663[_0x2e1a3a('0x56')]({'read':!![]});else logger[_0x2e1a3a('0x2b')](_0x2e1a3a('0xb3'),_0x2e1a3a('0xc5'),_0x2e1a3a('0x2d'),util[_0x2e1a3a('0xae')](_0x42a4f6[_0x2e1a3a('0x21')],{'showHidden':![],'depth':null}));break;case'connectel':if(_0x3c7e72==='1')return _0x2e0663['update']({'read':!![]});else logger[_0x2e1a3a('0x2b')](_0x2e1a3a('0xb3'),'status','skebby',util[_0x2e1a3a('0xae')](_0x42a4f6[_0x2e1a3a('0x21')],{'showHidden':![],'depth':null}));break;case _0x2e1a3a('0xa3'):if(!_0x42a4f6[_0x2e1a3a('0x21')][_0x2e1a3a('0x63')]&&_0x3c7e72>=0xc8&&_0x3c7e72<=0xce)return _0x2e0663[_0x2e1a3a('0x56')]({'read':!![]});else logger['error']('SmsAccount,\x20%s,\x20%s,\x20%s',_0x2e1a3a('0xc5'),'clicksend',util['inspect'](_0x42a4f6[_0x2e1a3a('0x21')],{'showHidden':![],'depth':null}));break;case _0x2e1a3a('0x8'):{const _0x1ac722=_0x42a4f6[_0x2e1a3a('0x21')][_0x2e1a3a('0x61')][0x0];if(_0x1ac722[_0x2e1a3a('0xc5')]['groupName']===_0x2e1a3a('0x1b'))return _0x2e0663[_0x2e1a3a('0x56')]({'read':!![]});else logger[_0x2e1a3a('0x2b')](_0x2e1a3a('0xb3'),_0x2e1a3a('0xc5'),_0x2e1a3a('0x8'),util[_0x2e1a3a('0xae')](_0x42a4f6[_0x2e1a3a('0x21')],{'showHidden':![],'depth':null}));}break;case _0x2e1a3a('0x4a'):if(_0x3c7e72==_0x2e1a3a('0x6e')||_0x3c7e72=='RECEIVED_BY_RECIPIENT')return _0x2e0663[_0x2e1a3a('0x56')]({'read':!![]});else logger[_0x2e1a3a('0x2b')](_0x2e1a3a('0xb3'),'status',_0x2e1a3a('0x4a'),util[_0x2e1a3a('0xae')](_0x42a4f6[_0x2e1a3a('0x21')],{'showHidden':![],'depth':null}));break;case _0x2e1a3a('0xb4'):if(_0x3c7e72===_0x2e1a3a('0x7')||_0x3c7e72===_0x2e1a3a('0x18'))return _0x2e0663[_0x2e1a3a('0x56')]({'read':!![]});else logger['error'](_0x2e1a3a('0xb3'),_0x2e1a3a('0xc5'),'intelepeer',util[_0x2e1a3a('0xae')](_0x42a4f6[_0x2e1a3a('0x21')],{'showHidden':![],'depth':null}));break;}return _0x2e0663;}})[_0x33fa5f('0x64')](respondWithResult(_0x33f9c2,null))['catch'](handleError(_0x33f9c2,null));},exports['statusGet']=function(_0x3d819e,_0x351ad8){const _0x58f46d=_0x2c6885;let _0x34a2ca,_0x3367af,_0x1d5cef;return db['SmsAccount']['findOne']({'where':{'id':_0x3d819e[_0x58f46d('0x4e')]['id']}})[_0x58f46d('0x64')](handleEntityNotFound(_0x351ad8,null))[_0x58f46d('0x64')](function(_0x115ba0){const _0x478b2f=_0x58f46d;if(_0x115ba0){_0x1d5cef=_0x115ba0,logger[_0x478b2f('0x8f')](_0x478b2f('0xb3'),_0x478b2f('0xc5'),_0x478b2f('0x23'),_0x115ba0[_0x478b2f('0x2e')],util[_0x478b2f('0xae')](_0x3d819e[_0x478b2f('0x6d')],{'showHidden':![],'depth':null}));switch(_0x115ba0[_0x478b2f('0x2e')]){case'csc':if(_0x3d819e[_0x478b2f('0x6d')][_0x478b2f('0x25')]&&_0x3d819e['query'][_0x478b2f('0xb9')])return _0x3367af=_0x3d819e[_0x478b2f('0x6d')][_0x478b2f('0xb9')],db[_0x478b2f('0x60')][_0x478b2f('0xba')]({'where':{'messageId':_0x3d819e['query']['message-id']}});break;}}})[_0x58f46d('0x64')](handleEntityNotFound(_0x351ad8,null))[_0x58f46d('0x64')](function(_0x1054cd){const _0x224228=_0x58f46d;if(_0x1054cd){_0x34a2ca=_0x1054cd;switch(_0x1d5cef[_0x224228('0x2e')]){case _0x224228('0xb7'):if(_0x3367af==='2'||_0x3367af==='6')return _0x34a2ca[_0x224228('0x56')]({'read':!![]});else logger['error'](_0x224228('0xb3'),_0x224228('0xc5'),_0x224228('0xb7'),util[_0x224228('0xae')](_0x3d819e['query'],{'showHidden':![],'depth':null}));break;}return _0x34a2ca;}})['then'](respondWithResult(_0x351ad8,null))[_0x58f46d('0xa2')](handleError(_0x351ad8,null));},exports[_0x2c6885('0x11')]=function(_0x23ba03,_0x53ea90){const _0x5b381a=_0x2c6885;return db[_0x5b381a('0x10')][_0x5b381a('0xba')]({'where':{'id':_0x23ba03[_0x5b381a('0x4e')]['id']}})['then'](function(_0x50a094){const _0x3dc616=_0x5b381a;if(_0x50a094)return _0x50a094[_0x3dc616('0x11')](_0x23ba03[_0x3dc616('0x21')][_0x3dc616('0x19')],{'through':_['omit'](_0x23ba03[_0x3dc616('0x21')],[_0x3dc616('0x19'),'id'])})[_0x3dc616('0x64')](function(_0x44bc98){const _0x17b568=_0x3dc616;for(let _0x240820=0x0;_0x240820<_0x23ba03[_0x17b568('0x21')]['ids'][_0x17b568('0x1d')];_0x240820+=0x1){socket[_0x17b568('0x76')](_0x17b568('0x72'),{'UserId':_0x23ba03[_0x17b568('0x21')]['ids'][_0x240820],'SmsAccountId':_0x23ba03[_0x17b568('0x4e')]['id']});}return _0x44bc98;});})['then'](respondWithResult(_0x53ea90,null))[_0x5b381a('0xa2')](handleError(_0x53ea90,null));},exports[_0x2c6885('0x39')]=function(_0x5ce3b6,_0x27c605){const _0x45c292=_0x2c6885;return db['SmsAccount'][_0x45c292('0xba')]({'where':{'id':_0x5ce3b6[_0x45c292('0x4e')]['id']}})['then'](handleEntityNotFound(_0x27c605,null))[_0x45c292('0x64')](function(_0x55b839){const _0x51766e=_0x45c292;if(_0x55b839)return _0x55b839[_0x51766e('0x39')](_0x5ce3b6[_0x51766e('0x6d')][_0x51766e('0x19')])[_0x51766e('0x64')](function(){const _0x2244a3=_0x51766e;if(_[_0x2244a3('0xc')](_0x5ce3b6[_0x2244a3('0x6d')][_0x2244a3('0x19')]))for(let _0x3db242=0x0;_0x3db242<_0x5ce3b6[_0x2244a3('0x6d')][_0x2244a3('0x19')][_0x2244a3('0x1d')];_0x3db242+=0x1){socket[_0x2244a3('0x76')](_0x2244a3('0x52'),{'UserId':Number(_0x5ce3b6[_0x2244a3('0x6d')][_0x2244a3('0x19')][_0x3db242]),'SmsAccountId':Number(_0x5ce3b6[_0x2244a3('0x4e')]['id'])});}else socket[_0x2244a3('0x76')](_0x2244a3('0x52'),{'UserId':Number(_0x5ce3b6[_0x2244a3('0x6d')][_0x2244a3('0x19')]),'SmsAccountId':Number(_0x5ce3b6[_0x2244a3('0x4e')]['id'])});});})[_0x45c292('0x64')](respondWithStatusCode(_0x27c605,null))[_0x45c292('0xa2')](handleError(_0x27c605,null));},exports[_0x2c6885('0x4f')]=function(_0x1803ed,_0x364db4){const _0xf934b9=_0x2c6885;let _0x3b94cc={};const _0x39fdb1={};let _0x16181d,_0x424c49;return db['SmsAccount']['findOne']({'where':{'id':_0x1803ed['params']['id']}})[_0xf934b9('0x64')](handleEntityNotFound(_0x364db4,null))[_0xf934b9('0x64')](function(_0x3f69ca){const _0x32da20=_0xf934b9;if(_0x3f69ca)return _0x16181d=_0x3f69ca,_0x39fdb1['model']=_[_0x32da20('0x67')](db[_0x32da20('0xa5')]['rawAttributes']),_0x39fdb1[_0x32da20('0x6d')]=_[_0x32da20('0x67')](_0x1803ed[_0x32da20('0x6d')]),_0x39fdb1[_0x32da20('0x38')]=_[_0x32da20('0x31')](_0x39fdb1[_0x32da20('0x98')],_0x39fdb1[_0x32da20('0x6d')]),_0x3b94cc[_0x32da20('0x3f')]=_[_0x32da20('0x31')](_0x39fdb1[_0x32da20('0x98')],qs[_0x32da20('0x99')](_0x1803ed[_0x32da20('0x6d')][_0x32da20('0x99')])),_0x3b94cc['attributes']=_0x3b94cc[_0x32da20('0x3f')][_0x32da20('0x1d')]?_0x3b94cc['attributes']:_0x39fdb1['model'],_0x3b94cc[_0x32da20('0x5c')]=qs[_0x32da20('0x2a')](_0x1803ed['query'][_0x32da20('0x2a')]),_0x3b94cc[_0x32da20('0x88')]=qs[_0x32da20('0x38')](_['pick'](_0x1803ed[_0x32da20('0x6d')],_0x39fdb1[_0x32da20('0x38')])),_0x1803ed[_0x32da20('0x6d')][_0x32da20('0xc3')]&&(_0x3b94cc[_0x32da20('0x88')]=_[_0x32da20('0xa')](_0x3b94cc['where'],{[Op['or']]:_[_0x32da20('0x42')](_0x3b94cc['attributes'],function(_0x449eb1){const _0x4e8142=_0x32da20,_0x16d48c={};return _0x16d48c[_0x449eb1]={[Op[_0x4e8142('0x65')]]:'%'+_0x1803ed[_0x4e8142('0x6d')][_0x4e8142('0xc3')]+'%'},_0x16d48c;})})),_0x3b94cc=_['merge']({},_0x3b94cc,_0x1803ed[_0x32da20('0x7a')]),_0x16181d['getAgents'](_0x3b94cc);})[_0xf934b9('0x64')](function(_0x5ed88f){const _0x33b024=_0xf934b9;if(_0x5ed88f)return _0x424c49=_0x5ed88f[_0x33b024('0x1d')],typeof _0x1803ed[_0x33b024('0x6d')][_0x33b024('0x24')]==='undefined'&&(_0x3b94cc[_0x33b024('0x83')]=qs[_0x33b024('0x83')](_0x1803ed['query'][_0x33b024('0x83')]),_0x3b94cc['offset']=qs['offset'](_0x1803ed['query']['offset'])),_0x16181d[_0x33b024('0x4f')](_0x3b94cc);})['then'](function(_0x48daa1){if(_0x48daa1)return _0x48daa1?{'count':_0x424c49,'rows':_0x48daa1}:null;})['then'](respondWithResult(_0x364db4,null))[_0xf934b9('0xa2')](handleError(_0x364db4,null));}; \ No newline at end of file +const a542_0x48a1=['sender','defaults','CmContact','query','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','message_id','isNil','connectel','ContactId','../../components/parsers/qs','CannedAnswer','addAnswer','results','like','From','includeAll','send','sendStatus','merge','SmsMessage','set','isArray','Contact','priority','transaction','messageId','error','key','addAgents','../../rediscache','SmsAccount,\x20%s,\x20%s','addApplications','List','getDispositions','tag','Start','describe','ids','mobile','filters','findOne','attributes','getAgents','destroy','state','request','infobip','pick','name','dataValues','asc','sms','orderBy','interaction','result','rawAttributes','push','code','userProfileId','Messages','error_code','then','rows','out','stack','status_code','mapKey','intersection','contact','applications','lodash','SmsInteraction','SmsAccount','DELIVRD','DELIVERED_TO_GATEWAY','nolimit','intelepeer','where','plivo','DESC','includes','updatedAt','body','unshift','catch','internal','ListId','UserProfileResource','from\x20is\x20mandatory','Applications','entity\x20found','filter','bulkCreate','startRouting','update','text','SmsAccount,\x20%s,\x20%s,\x20%s','status','AttachmentId','include','userSmsAccount:remove','Body','stringify','params','clicksend','SmsAccount,\x20%s,\x20%s,\x20%s,\x20%s','message-id','refid','findAndCountAll','no\x20available\x20attributes','VIRTUAL','Content-Type','../../mysqldb','fromNumber','close','difference','SmsAccountId','endpoint\x20/status\x20POST\x20/','csc','debug','./smsAccount.socket','register','replyMessageId','length','removeAgents','SmsAccounts','fieldName','groupName','user','redif','from','waitForTheAssignedAgent','request\x20sent','mandatoryDispositionPause','removeDispositions','unmanaged','sequelize','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','Tags','removeAnswers','list','client','util','User','CompanyId','order','Unable\x20to\x20retrieve\x20the\x20current\x20user','findAll','options','info','limit','Content-Range','created','model','skebby_dispatch_id','Tag','MessageUUID','skebby','originatingAddress','to\x20is\x20mandatory','keys','undefined','clickatell','CmList','userSmsAccount:save','role','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','map','account','UserId','index','requestid','Disposition','api','agent','*,*,*,*','offset','createdAt','count','sort','RECEIVED_BY_RECIPIENT','show','SmsApplication','message','getApplications','Text','UserProfileSection','get','emit','type','autoAssociation','json','addDisposition','fields','autoclose','statusInt','Contacts','create','received\x20delivery\x20report\x20from','inspect','notify'];(function(_0x32d08e,_0x48a1ef){const _0x3ebfd2=function(_0x3798c9){while(--_0x3798c9){_0x32d08e['push'](_0x32d08e['shift']());}};_0x3ebfd2(++_0x48a1ef);}(a542_0x48a1,0xba));const a542_0x3ebf=function(_0x32d08e,_0x48a1ef){_0x32d08e=_0x32d08e-0x0;let _0x3ebfd2=a542_0x48a1[_0x32d08e];return _0x3ebfd2;};const _0x194392=a542_0x3ebf;'use strict';const util=require(_0x194392('0x9d')),_=require(_0x194392('0x55')),qs=require(_0x194392('0x18')),logger=require('../../config/logger')(_0x194392('0xbc')),{getSocket}=require(_0x194392('0x2c')),socket=getSocket(),db=require(_0x194392('0x7f'))['db'],{Op,ValidationError}=require(_0x194392('0x97'));require(_0x194392('0x87'))[_0x194392('0x88')](socket);const jayson=require('jayson/promise'),client=jayson[_0x194392('0x9c')]['http']({'port':0x232c});function respondWithRpcPromise(_0x3798c9,_0x5f3692,_0x75051d,_0x2071cc){return new Promise(function(_0x463853,_0x52f145){const _0x31723d=a542_0x3ebf,_0x4daba8=_0x2071cc||client;return _0x4daba8[_0x31723d('0x3c')](_0x3798c9,_0x75051d)['then'](function(_0x3f6ad8){const _0x2edd84=_0x31723d;logger[_0x2edd84('0xa4')](_0x2edd84('0x2d'),_0x5f3692,_0x2edd84('0x93')),logger[_0x2edd84('0x86')](_0x2edd84('0x6f'),_0x5f3692,_0x2edd84('0x93'),JSON['stringify'](_0x3f6ad8));if(_0x3f6ad8['error']){if(_0x3f6ad8['error'][_0x2edd84('0x48')]===0x1f4)return logger[_0x2edd84('0x29')](_0x2edd84('0x2d'),_0x5f3692,_0x3f6ad8[_0x2edd84('0x29')]['message']),_0x52f145(_0x3f6ad8['error'][_0x2edd84('0xc6')]);return logger[_0x2edd84('0x29')](_0x2edd84('0x2d'),_0x5f3692,_0x3f6ad8[_0x2edd84('0x29')][_0x2edd84('0xc6')]),_0x463853(_0x3f6ad8[_0x2edd84('0x29')][_0x2edd84('0xc6')]);}else logger[_0x2edd84('0xa4')](_0x2edd84('0x2d'),_0x5f3692,_0x2edd84('0x93')),_0x463853(_0x3f6ad8[_0x2edd84('0x45')][_0x2edd84('0xc6')]);})[_0x31723d('0x63')](function(_0x352031){const _0x5c470b=_0x31723d;logger[_0x5c470b('0x29')](_0x5c470b('0x2d'),_0x5f3692,_0x352031),_0x52f145(_0x352031);});});}function respondWithStatusCode(_0x315977,_0x4e8188){return _0x4e8188=_0x4e8188||0xcc,function(_0x2fe88e){const _0x29a027=a542_0x3ebf;if(_0x2fe88e)return _0x315977[_0x29a027('0x20')](_0x4e8188);return _0x315977['status'](_0x4e8188)['end']();};}function respondWithResult(_0x3841e4,_0x3c49c0){return _0x3c49c0=_0x3c49c0||0xc8,function(_0x468137){const _0x45c7ee=a542_0x3ebf;if(_0x468137)return _0x3841e4['status'](_0x3c49c0)[_0x45c7ee('0x5')](_0x468137);};}function respondWithFilteredResult(_0xf2b827,_0x161ffc){return function(_0x3e91b1){const _0xdbdaf8=a542_0x3ebf;if(_0x3e91b1){const _0x2991e2=_0x3e91b1[_0xdbdaf8('0xc1')],_0x247d3a=_0x161ffc['offset'];let _0x226ea6=_0x161ffc[_0xdbdaf8('0xbf')]+_0x161ffc[_0xdbdaf8('0xa5')],_0x356c63;return _0x226ea6>=_0x2991e2?(_0x226ea6=_0x2991e2,_0x356c63=0xc8):_0x356c63=0xce,_0xf2b827[_0xdbdaf8('0x70')](_0x356c63),_0xf2b827['set'](_0xdbdaf8('0xa6'),_0x247d3a+'-'+_0x226ea6+'/'+_0x2991e2)[_0xdbdaf8('0x5')](_0x3e91b1);}return null;};}function saveUpdates(_0x345e85){return function(_0x3eda99){const _0x56f84f=a542_0x3ebf;if(_0x3eda99)return _0x3eda99[_0x56f84f('0x6d')](_0x345e85)['then'](function(_0x13ad95){return _0x13ad95;});return null;};}function removeEntity(_0xae7c20){return function(_0x445008){const _0x29e8ae=a542_0x3ebf;if(_0x445008)return _0x445008[_0x29e8ae('0x3a')]()[_0x29e8ae('0x4c')](function(){const _0x3a89bd=_0x29e8ae,_0x33727a=_0x445008['get']({'plain':!![]}),_0x3fe5d9=_0x3a89bd('0x8c');return db[_0x3a89bd('0x66')][_0x3a89bd('0x3a')]({'where':{'type':_0x3fe5d9,'resourceId':_0x33727a['id']}})['then'](function(){return _0x445008;});})[_0x29e8ae('0x4c')](function(){const _0x3876d9=_0x29e8ae;_0xae7c20[_0x3876d9('0x70')](0xcc)['end']();});};}function handleEntityNotFound(_0x4f1a34){return function(_0x395b4f){return!_0x395b4f&&_0x4f1a34['sendStatus'](0x194),_0x395b4f;};}function handleError(_0x236567,_0x5065f9){return _0x5065f9=_0x5065f9||0x1f4,function(_0x157852){const _0x55bdfb=a542_0x3ebf;logger[_0x55bdfb('0x29')](_0x157852[_0x55bdfb('0x4f')]),_0x157852['name']&&delete _0x157852['name'],_0x236567[_0x55bdfb('0x70')](_0x5065f9)[_0x55bdfb('0x1f')](_0x157852);};}exports[_0x194392('0xb9')]=function(_0xf3acaf,_0x5c5721){const _0x116b55=_0x194392;let _0x2068e5={'include':[{'model':db['Pause'],'as':_0x116b55('0x94')}]};const _0x5cf1d6={},_0x3c9878={'count':0x0,'rows':[]},_0x453768=_[_0x116b55('0xb6')](db[_0x116b55('0x57')][_0x116b55('0x46')],function(_0x5971ec){const _0x2ed117=_0x116b55;return{'name':_0x5971ec[_0x2ed117('0x8d')],'type':_0x5971ec[_0x2ed117('0x3')][_0x2ed117('0x2a')]};});_0x5cf1d6['model']=_[_0x116b55('0xb6')](_0x453768,_0x116b55('0x3f')),_0x5cf1d6['query']=_[_0x116b55('0xaf')](_0xf3acaf[_0x116b55('0x12')]),_0x5cf1d6[_0x116b55('0x36')]=_[_0x116b55('0x52')](_0x5cf1d6[_0x116b55('0xa8')],_0x5cf1d6[_0x116b55('0x12')]),_0x2068e5['attributes']=_[_0x116b55('0x52')](_0x5cf1d6[_0x116b55('0xa8')],qs['fields'](_0xf3acaf[_0x116b55('0x12')][_0x116b55('0x7')])),_0x2068e5[_0x116b55('0x38')]=_0x2068e5[_0x116b55('0x38')][_0x116b55('0x8a')]?_0x2068e5[_0x116b55('0x38')]:_0x5cf1d6[_0x116b55('0xa8')];typeof _0xf3acaf[_0x116b55('0x12')][_0x116b55('0x5a')]===_0x116b55('0xb0')&&(_0x2068e5[_0x116b55('0xa5')]=qs[_0x116b55('0xa5')](_0xf3acaf['query'][_0x116b55('0xa5')]),_0x2068e5[_0x116b55('0xbf')]=qs[_0x116b55('0xbf')](_0xf3acaf[_0x116b55('0x12')][_0x116b55('0xbf')]));_0x2068e5[_0x116b55('0xa0')]=qs[_0x116b55('0xc2')](_0xf3acaf[_0x116b55('0x12')][_0x116b55('0xc2')]),_0x2068e5[_0x116b55('0x5c')]=qs[_0x116b55('0x36')](_['pick'](_0xf3acaf['query'],_0x5cf1d6['filters']),_0x453768);_0xf3acaf[_0x116b55('0x12')]['filter']&&(_0x2068e5[_0x116b55('0x5c')]=_[_0x116b55('0x21')](_0x2068e5[_0x116b55('0x5c')],{[Op['or']]:_[_0x116b55('0xb6')](_0x453768,function(_0x3cdf84){const _0x3a7fc5=_0x116b55;if(_0x3cdf84[_0x3a7fc5('0x3')]!==_0x3a7fc5('0x7d')){const _0x23e5e4={};return _0x23e5e4[_0x3cdf84[_0x3a7fc5('0x3f')]]={[Op[_0x3a7fc5('0x1c')]]:'%'+_0xf3acaf[_0x3a7fc5('0x12')][_0x3a7fc5('0x6a')]+'%'},_0x23e5e4;}})}));_0x2068e5=_[_0x116b55('0x21')]({},_0x2068e5,_0xf3acaf['options']);const _0x370c6b={'where':_0x2068e5[_0x116b55('0x5c')]};return db[_0x116b55('0x57')]['count'](_0x370c6b)[_0x116b55('0x4c')](function(_0x3bb86e){const _0x5a6ca8=_0x116b55;return _0x3c9878[_0x5a6ca8('0xc1')]=_0x3bb86e,_0xf3acaf[_0x5a6ca8('0x12')][_0x5a6ca8('0x1e')]&&(_0x2068e5[_0x5a6ca8('0x72')]=[{'all':!![]}]),db[_0x5a6ca8('0x57')][_0x5a6ca8('0xa2')](_0x2068e5);})[_0x116b55('0x4c')](function(_0x2cbe10){const _0x4df5b2=_0x116b55;return _0x3c9878[_0x4df5b2('0x4d')]=_0x2cbe10,_0x3c9878;})['then'](respondWithFilteredResult(_0x5c5721,_0x2068e5))[_0x116b55('0x63')](handleError(_0x5c5721,null));},exports[_0x194392('0xc4')]=function(_0x34bf28,_0xa1b787){const _0x41e497=_0x194392;let _0xcde19f={'raw':![],'where':{'id':_0x34bf28[_0x41e497('0x76')]['id']},'include':[{'model':db['Pause'],'as':_0x41e497('0x94')}]};const _0xe986bd={};return _0xe986bd[_0x41e497('0xa8')]=_[_0x41e497('0xaf')](db[_0x41e497('0x57')][_0x41e497('0x46')]),_0xe986bd[_0x41e497('0x12')]=_[_0x41e497('0xaf')](_0x34bf28[_0x41e497('0x12')]),_0xe986bd[_0x41e497('0x36')]=_['intersection'](_0xe986bd['model'],_0xe986bd[_0x41e497('0x12')]),_0xcde19f['attributes']=_['intersection'](_0xe986bd[_0x41e497('0xa8')],qs[_0x41e497('0x7')](_0x34bf28[_0x41e497('0x12')]['fields'])),_0xcde19f[_0x41e497('0x38')]=_0xcde19f[_0x41e497('0x38')]['length']?_0xcde19f[_0x41e497('0x38')]:_0xe986bd[_0x41e497('0xa8')],_0x34bf28['query'][_0x41e497('0x1e')]&&(_0xcde19f[_0x41e497('0x72')]=[{'all':!![]}]),_0xcde19f=_[_0x41e497('0x21')]({},_0xcde19f,_0x34bf28[_0x41e497('0xa3')]),db['SmsAccount'][_0x41e497('0x37')](_0xcde19f)['then'](handleEntityNotFound(_0xa1b787,null))[_0x41e497('0x4c')](respondWithResult(_0xa1b787,null))[_0x41e497('0x63')](handleError(_0xa1b787,null));},exports[_0x194392('0xb')]=function(_0x2434e9,_0x389313){const _0x28286e=_0x194392;return db[_0x28286e('0x57')][_0x28286e('0xb')](_0x2434e9[_0x28286e('0x61')],{})[_0x28286e('0x4c')](function(_0x4e75e1){const _0x18adc5=_0x28286e,_0x2df238=_0x2434e9[_0x18adc5('0x8f')]['get']({'plain':!![]});if(!_0x2df238)throw new Error(_0x18adc5('0xa1'));if(_0x2df238[_0x18adc5('0xb4')]==='user'){const _0x46a757=_0x4e75e1[_0x18adc5('0x1')]({'plain':!![]}),_0x3fe21b=_0x18adc5('0x8c');return db[_0x18adc5('0x0')]['findOne']({'where':{'name':_0x3fe21b,'userProfileId':_0x2df238[_0x18adc5('0x49')]},'raw':!![]})[_0x18adc5('0x4c')](function(_0x4bfcf3){const _0xbce264=_0x18adc5;return _0x4bfcf3&&_0x4bfcf3[_0xbce264('0x4')]===0x0?db[_0xbce264('0x66')]['create']({'name':_0x46a757[_0xbce264('0x3f')],'resourceId':_0x46a757['id'],'type':_0x4bfcf3[_0xbce264('0x3f')],'sectionId':_0x4bfcf3['id']},{})[_0xbce264('0x4c')](function(){return _0x4e75e1;}):_0x4e75e1;})[_0x18adc5('0x63')](function(_0x1bd2ed){const _0x27fa76=_0x18adc5;logger[_0x27fa76('0x29')](_0x27fa76('0xb5'),_0x1bd2ed);throw _0x1bd2ed;});}return _0x4e75e1;})[_0x28286e('0x4c')](respondWithResult(_0x389313,0xc9))[_0x28286e('0x63')](handleError(_0x389313,null));},exports['update']=function(_0x231212,_0x26910a){const _0x392dda=_0x194392;return _0x231212[_0x392dda('0x61')]['id']&&delete _0x231212['body']['id'],db[_0x392dda('0x57')][_0x392dda('0x37')]({'where':{'id':_0x231212[_0x392dda('0x76')]['id']},'include':[{'model':db['Pause'],'as':_0x392dda('0x94')}]})[_0x392dda('0x4c')](handleEntityNotFound(_0x26910a,null))['then'](saveUpdates(_0x231212[_0x392dda('0x61')],null))[_0x392dda('0x4c')](respondWithResult(_0x26910a,null))[_0x392dda('0x63')](handleError(_0x26910a,null));},exports[_0x194392('0x3a')]=function(_0x414830,_0x5f3e18){const _0x20750a=_0x194392;return db[_0x20750a('0x57')][_0x20750a('0x37')]({'where':{'id':_0x414830[_0x20750a('0x76')]['id']}})[_0x20750a('0x4c')](handleEntityNotFound(_0x5f3e18,null))[_0x20750a('0x4c')](removeEntity(_0x5f3e18,null))['catch'](handleError(_0x5f3e18,null));},exports[_0x194392('0x33')]=function(_0x2741c5,_0x5ee636){const _0x32e998=_0x194392;return db[_0x32e998('0x57')][_0x32e998('0x33')]()[_0x32e998('0x4c')](respondWithResult(_0x5ee636,null))[_0x32e998('0x63')](handleError(_0x5ee636,null));},exports[_0x194392('0x6')]=function(_0x27facc,_0x5c488c){const _0xf6fe54=_0x194392;return _0x27facc['body']['id']&&delete _0x27facc['body']['id'],db['SmsAccount'][_0xf6fe54('0x37')]({'where':{'id':_0x27facc[_0xf6fe54('0x76')]['id']}})[_0xf6fe54('0x4c')](handleEntityNotFound(_0x5c488c,null))['then'](function(_0x150b7a){const _0x1ab3b2=_0xf6fe54;if(_0x150b7a)return _0x27facc[_0x1ab3b2('0x61')][_0x1ab3b2('0x83')]=_0x150b7a['id'],db[_0x1ab3b2('0xbb')][_0x1ab3b2('0xb')](_0x27facc[_0x1ab3b2('0x61')]);})[_0xf6fe54('0x4c')](respondWithResult(_0x5c488c,null))[_0xf6fe54('0x63')](handleError(_0x5c488c,null));},exports[_0x194392('0x30')]=function(_0x469add,_0x5568d6){const _0xb418d7=_0x194392;let _0x10d423={'raw':![],'where':{}};const _0x33bc57={},_0x43c463={'count':0x0,'rows':[]};return db[_0xb418d7('0x57')][_0xb418d7('0x37')]({'where':{'id':_0x469add[_0xb418d7('0x76')]['id']}})['then'](handleEntityNotFound(_0x5568d6,null))[_0xb418d7('0x4c')](function(_0xe24dd3){const _0x50aa58=_0xb418d7;if(_0xe24dd3)return _0x33bc57[_0x50aa58('0xa8')]=_['keys'](db[_0x50aa58('0xbb')][_0x50aa58('0x46')]),_0x33bc57[_0x50aa58('0x12')]=_[_0x50aa58('0xaf')](_0x469add['query']),_0x33bc57[_0x50aa58('0x36')]=_[_0x50aa58('0x52')](_0x33bc57[_0x50aa58('0xa8')],_0x33bc57['query']),_0x10d423['attributes']=_[_0x50aa58('0x52')](_0x33bc57[_0x50aa58('0xa8')],qs[_0x50aa58('0x7')](_0x469add['query']['fields'])),_0x10d423[_0x50aa58('0x38')]=_0x10d423[_0x50aa58('0x38')][_0x50aa58('0x8a')]?_0x10d423[_0x50aa58('0x38')]:_0x33bc57[_0x50aa58('0xa8')],typeof _0x469add[_0x50aa58('0x12')][_0x50aa58('0x5a')]==='undefined'&&(_0x10d423[_0x50aa58('0xa5')]=qs[_0x50aa58('0xa5')](_0x469add[_0x50aa58('0x12')][_0x50aa58('0xa5')]),_0x10d423[_0x50aa58('0xbf')]=qs['offset'](_0x469add[_0x50aa58('0x12')][_0x50aa58('0xbf')])),_0x10d423[_0x50aa58('0xa0')]=qs[_0x50aa58('0xc2')](_0x469add['query']['sort']),_0x10d423[_0x50aa58('0x5c')]=qs['filters'](_[_0x50aa58('0x3e')](_0x469add[_0x50aa58('0x12')],_0x33bc57['filters'])),_0x10d423[_0x50aa58('0x5c')][_0x50aa58('0x83')]=_0xe24dd3['id'],_0x469add[_0x50aa58('0x12')][_0x50aa58('0x6a')]&&(_0x10d423['where']=_[_0x50aa58('0x21')](_0x10d423[_0x50aa58('0x5c')],{[Op['or']]:_[_0x50aa58('0xb6')](_0x10d423['attributes'],function(_0x54ef71){const _0x33acfb={};return _0x33acfb[_0x54ef71]={[Op['like']]:'%'+_0x469add['query']['filter']+'%'},_0x33acfb;})})),_0x10d423=_[_0x50aa58('0x21')]({},_0x10d423,_0x469add[_0x50aa58('0xa3')]),db[_0x50aa58('0xbb')][_0x50aa58('0xc1')]({'where':_0x10d423[_0x50aa58('0x5c')]})['then'](function(_0x15f4e9){const _0x304ca2=_0x50aa58;return _0x43c463[_0x304ca2('0xc1')]=_0x15f4e9,_0x469add['query'][_0x304ca2('0x1e')]&&(_0x10d423['include']=[{'all':!![]}]),db[_0x304ca2('0xbb')][_0x304ca2('0xa2')](_0x10d423);})[_0x50aa58('0x4c')](function(_0x21fd25){const _0x2e7593=_0x50aa58;return _0x43c463[_0x2e7593('0x4d')]=_0x21fd25,_0x43c463;});})[_0xb418d7('0x4c')](respondWithFilteredResult(_0x5568d6,_0x10d423))[_0xb418d7('0x63')](handleError(_0x5568d6,null));},exports['removeDispositions']=function(_0x243425,_0x401765){const _0x2a8e14=_0x194392;return db[_0x2a8e14('0x57')][_0x2a8e14('0x37')]({'where':{'id':_0x243425[_0x2a8e14('0x76')]['id']}})[_0x2a8e14('0x4c')](handleEntityNotFound(_0x401765,null))[_0x2a8e14('0x4c')](function(_0x3bfaeb){const _0x334155=_0x2a8e14;if(_0x3bfaeb)return _0x3bfaeb[_0x334155('0x95')](_0x243425['query']['ids']);})[_0x2a8e14('0x4c')](respondWithStatusCode(_0x401765,null))[_0x2a8e14('0x63')](handleError(_0x401765,null));},exports[_0x194392('0x1a')]=function(_0x34c9e9,_0x3bc799){const _0x127564=_0x194392;return _0x34c9e9[_0x127564('0x61')]['id']&&delete _0x34c9e9['body']['id'],db[_0x127564('0x57')][_0x127564('0x37')]({'where':{'id':_0x34c9e9['params']['id']}})['then'](handleEntityNotFound(_0x3bc799,null))['then'](function(_0x183cf7){const _0x54fd19=_0x127564;if(_0x183cf7)return _0x34c9e9[_0x54fd19('0x61')][_0x54fd19('0x83')]=_0x183cf7['id'],db[_0x54fd19('0x19')]['create'](_0x34c9e9[_0x54fd19('0x61')]);})[_0x127564('0x4c')](respondWithResult(_0x3bc799,null))[_0x127564('0x63')](handleError(_0x3bc799,null));},exports['getAnswers']=function(_0x587513,_0x16e127){const _0x465896=_0x194392;let _0x1397db={'raw':![],'where':{}};const _0x23738e={},_0x4f6c54={'count':0x0,'rows':[]};return db[_0x465896('0x57')][_0x465896('0x37')]({'where':{'id':_0x587513[_0x465896('0x76')]['id']}})[_0x465896('0x4c')](handleEntityNotFound(_0x16e127,null))[_0x465896('0x4c')](function(_0x3879ef){const _0x3aad35=_0x465896;if(_0x3879ef)return _0x23738e[_0x3aad35('0xa8')]=_[_0x3aad35('0xaf')](db[_0x3aad35('0x19')][_0x3aad35('0x46')]),_0x23738e['query']=_['keys'](_0x587513[_0x3aad35('0x12')]),_0x23738e['filters']=_['intersection'](_0x23738e[_0x3aad35('0xa8')],_0x23738e[_0x3aad35('0x12')]),_0x1397db['attributes']=_['intersection'](_0x23738e[_0x3aad35('0xa8')],qs[_0x3aad35('0x7')](_0x587513[_0x3aad35('0x12')][_0x3aad35('0x7')])),_0x1397db[_0x3aad35('0x38')]=_0x1397db[_0x3aad35('0x38')]['length']?_0x1397db['attributes']:_0x23738e['model'],typeof _0x587513[_0x3aad35('0x12')]['nolimit']==='undefined'&&(_0x1397db['limit']=qs['limit'](_0x587513[_0x3aad35('0x12')][_0x3aad35('0xa5')]),_0x1397db['offset']=qs[_0x3aad35('0xbf')](_0x587513['query']['offset'])),_0x1397db[_0x3aad35('0xa0')]=qs[_0x3aad35('0xc2')](_0x587513[_0x3aad35('0x12')][_0x3aad35('0xc2')]),_0x1397db[_0x3aad35('0x5c')]=qs[_0x3aad35('0x36')](_[_0x3aad35('0x3e')](_0x587513[_0x3aad35('0x12')],_0x23738e[_0x3aad35('0x36')])),_0x1397db['where'][_0x3aad35('0x83')]=_0x3879ef['id'],_0x587513[_0x3aad35('0x12')][_0x3aad35('0x6a')]&&(_0x1397db[_0x3aad35('0x5c')]=_[_0x3aad35('0x21')](_0x1397db['where'],{[Op['or']]:_[_0x3aad35('0xb6')](_0x1397db[_0x3aad35('0x38')],function(_0x78c7a8){const _0x9d6624=_0x3aad35,_0x3127d2={};return _0x3127d2[_0x78c7a8]={[Op['like']]:'%'+_0x587513['query'][_0x9d6624('0x6a')]+'%'},_0x3127d2;})})),_0x1397db=_[_0x3aad35('0x21')]({},_0x1397db,_0x587513[_0x3aad35('0xa3')]),db['CannedAnswer'][_0x3aad35('0xc1')]({'where':_0x1397db['where']})[_0x3aad35('0x4c')](function(_0x576b2e){const _0x47f7b1=_0x3aad35;return _0x4f6c54[_0x47f7b1('0xc1')]=_0x576b2e,_0x587513[_0x47f7b1('0x12')][_0x47f7b1('0x1e')]&&(_0x1397db[_0x47f7b1('0x72')]=[{'all':!![]}]),db['CannedAnswer'][_0x47f7b1('0xa2')](_0x1397db);})[_0x3aad35('0x4c')](function(_0xefac3f){const _0x2066e7=_0x3aad35;return _0x4f6c54[_0x2066e7('0x4d')]=_0xefac3f,_0x4f6c54;});})[_0x465896('0x4c')](respondWithFilteredResult(_0x16e127,_0x1397db))[_0x465896('0x63')](handleError(_0x16e127,null));},exports[_0x194392('0x9a')]=function(_0x3e6659,_0xf625ad){const _0x361437=_0x194392;return db[_0x361437('0x57')][_0x361437('0x37')]({'where':{'id':_0x3e6659[_0x361437('0x76')]['id']}})[_0x361437('0x4c')](handleEntityNotFound(_0xf625ad,null))[_0x361437('0x4c')](function(_0x421fbc){const _0x5bd324=_0x361437;if(_0x421fbc)return _0x421fbc[_0x5bd324('0x9a')](_0x3e6659[_0x5bd324('0x12')][_0x5bd324('0x34')]);})['then'](respondWithStatusCode(_0xf625ad,null))[_0x361437('0x63')](handleError(_0xf625ad,null));},exports[_0x194392('0xe')]=function(_0x18e4c9,_0x2d41e7){const _0x40ef66=_0x194392,_0x58772f={'channel':_0x40ef66('0x42')};let _0x96bcd1=[],_0x470e55=[];const _0x11935f={};return db[_0x40ef66('0x57')][_0x40ef66('0x37')]({'where':{'id':_0x18e4c9['params']['id']},'include':[{'model':db[_0x40ef66('0xc5')],'as':_0x40ef66('0x68')}]})[_0x40ef66('0x4c')](handleEntityNotFound(_0x2d41e7,null))[_0x40ef66('0x4c')](function(_0x1d055e){const _0x3a2a50=_0x40ef66;return _0x58772f[_0x3a2a50('0xb7')]=_0x1d055e,_0x58772f[_0x3a2a50('0x54')]=_[_0x3a2a50('0x43')](_0x1d055e['Applications'],[_0x3a2a50('0x26')],[_0x3a2a50('0x41')]),_0x58772f[_0x3a2a50('0xb7')][_0x3a2a50('0x68')]&&delete _0x58772f[_0x3a2a50('0xb7')]['Applications'],db['CmContact'][_0x3a2a50('0x33')]();})[_0x40ef66('0x4c')](function(_0x235a16){const _0x5f0164=_0x40ef66;if(!_0x235a16)throw new ValidationError(_0x5f0164('0x7c'));_0x96bcd1=_[_0x5f0164('0x82')](_[_0x5f0164('0xaf')](_0x235a16),[_0x5f0164('0xc0'),_0x5f0164('0x60')]),_0x470e55=_[_0x5f0164('0x82')](_[_0x5f0164('0xaf')](_0x235a16),['createdAt',_0x5f0164('0x60'),_0x5f0164('0x9f'),_0x5f0164('0x65')]),_0x58772f[_0x5f0164('0x61')]={'mapKey':_0x5f0164('0x35')};if(_0x58772f[_0x5f0164('0xb7')][_0x5f0164('0x3')])switch(_0x58772f[_0x5f0164('0xb7')][_0x5f0164('0x3')]){case'twilio':_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x91')]=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x1d')],_0x58772f['body'][_0x5f0164('0x61')]=_0x18e4c9['body'][_0x5f0164('0x74')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x28')]=_0x18e4c9[_0x5f0164('0x61')]['MessageSid'];break;case _0x5f0164('0xac'):_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x91')]='+'+_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0xf')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x61')]=_0x18e4c9[_0x5f0164('0x61')]['text'];break;case _0x5f0164('0x16'):_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x91')]=_0x18e4c9['body'][_0x5f0164('0x91')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x61')]=_0x18e4c9['body']['message'];break;case _0x5f0164('0x77'):_0x58772f[_0x5f0164('0x61')]['from']=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x91')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x61')]=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x61')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x28')]=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x14')];break;case _0x5f0164('0x5d'):_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x91')]=_0x18e4c9['body'][_0x5f0164('0x1d')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x61')]=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0xc8')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x28')]=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0xab')];break;case'infobip':_0x58772f['body'][_0x5f0164('0x91')]='+'+_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x1b')][0x0]['from'],_0x58772f['body'][_0x5f0164('0x61')]=_0x18e4c9[_0x5f0164('0x61')]['results'][0x0]['text'],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x28')]=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x1b')][0x0][_0x5f0164('0x28')];break;case _0x5f0164('0x85'):_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x91')]=_0x18e4c9['body'][_0x5f0164('0xad')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x61')]=_0x18e4c9[_0x5f0164('0x61')]['segmentedMessage'][_0x5f0164('0xc6')];break;case _0x5f0164('0xb1'):_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x91')]=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x80')],_0x58772f[_0x5f0164('0x61')]['body']=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x6e')],_0x58772f[_0x5f0164('0x61')]['messageId']=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x89')];break;case _0x5f0164('0x5b'):_0x58772f[_0x5f0164('0x61')]['from']=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x91')],_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x61')]=_0x18e4c9['body'][_0x5f0164('0xc6')],_0x58772f['body']['messageId']=_0x18e4c9[_0x5f0164('0x61')][_0x5f0164('0x7a')];break;}_0x58772f['body']['id']&&delete _0x58772f[_0x5f0164('0x61')]['id'];if(_['isNil'](_0x58772f['body']['from']))throw new ValidationError(_0x5f0164('0x67'));if(_[_0x5f0164('0x15')](_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x61')])||_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x61')]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_['isNil'](_0x58772f[_0x5f0164('0x61')][_0x5f0164('0x51')]))throw new ValidationError(_0x5f0164('0x98')+_0x470e55);if(!_[_0x5f0164('0x5f')](_0x470e55,_0x58772f[_0x5f0164('0x61')]['mapKey']))throw new ValidationError(_0x5f0164('0x13')+_0x470e55);return _0x11935f[_0x58772f['body']['mapKey']]=_0x58772f['body'][_0x5f0164('0x91')],db[_0x5f0164('0xb2')][_0x5f0164('0x37')]({'where':{'id':_0x58772f[_0x5f0164('0xb7')]['ListId']},'include':[{'model':db['CmContact'],'as':_0x5f0164('0xa'),'where':_0x11935f,'limit':0x1,'order':[['updatedAt',_0x5f0164('0x5e')]]}]});})[_0x40ef66('0x4c')](handleEntityNotFound(_0x2d41e7,null))[_0x40ef66('0x4c')](function(_0x51cb5b){const _0x150e83=_0x40ef66;if(_0x51cb5b){_0x58772f[_0x150e83('0x9b')]=_['omit'](_0x51cb5b,['Contacts']);if(_0x51cb5b[_0x150e83('0xa')][_0x150e83('0x8a')])return _0x51cb5b[_0x150e83('0xa')][0x0];const _0x36f2f3=_[_0x150e83('0x10')](_0x58772f[_0x150e83('0x61')],{'firstName':_0x58772f[_0x150e83('0x61')][_0x150e83('0x91')],'ListId':_0x51cb5b['id']});return _0x36f2f3[_0x58772f[_0x150e83('0x61')][_0x150e83('0x51')]]=_0x58772f['body'][_0x150e83('0x91')],db['CmContact']['create'](_0x36f2f3,{'fields':_0x96bcd1,'raw':!![]});}})[_0x40ef66('0x4c')](handleEntityNotFound(_0x2d41e7,null))[_0x40ef66('0x4c')](function(_0x453730){const _0x2402d8=_0x40ef66;if(_0x453730){_0x58772f[_0x2402d8('0x53')]=_0x453730;const _0x5667be={'ContactId':_0x453730['id'],'phone':_0x58772f[_0x2402d8('0x61')][_0x2402d8('0x91')],'SmsAccountId':_0x18e4c9[_0x2402d8('0x76')]['id']},_0x7e9472={'ContactId':_0x453730['id'],'SmsAccountId':_0x18e4c9[_0x2402d8('0x76')]['id'],'closed':![]};return db[_0x2402d8('0x56')]['findOne']({'where':_0x7e9472})[_0x2402d8('0x4c')](function(_0x4df0c6){const _0x1417a7=_0x2402d8;if(_0x4df0c6)return[_0x4df0c6,![]];return db[_0x1417a7('0x56')][_0x1417a7('0xb')](_0x5667be)[_0x1417a7('0x4c')](function(_0x1f5b8e){return[_0x1f5b8e,!![]];});});}})['then'](function([_0x16414e,_0x41d000]){const _0x45e4f3=_0x40ef66;return _0x58772f[_0x45e4f3('0x44')]=_0x16414e[_0x45e4f3('0x1')]({'plain':!![]}),_0x58772f[_0x45e4f3('0x44')][_0x45e4f3('0xa7')]=![],_0x41d000&&(_0x58772f[_0x45e4f3('0xb7')][_0x45e4f3('0x8')]&&_0x58772f['applications']['push']({'id':0x0,'priority':_0x58772f[_0x45e4f3('0x54')][_0x45e4f3('0x8a')]+0x1,'app':_0x45e4f3('0x81'),'appdata':_0x45e4f3('0x96'),'interval':'*,*,*,*'}),_0x58772f[_0x45e4f3('0x44')][_0x45e4f3('0xa7')]=!![]),db[_0x45e4f3('0x22')][_0x45e4f3('0xb')]({'phone':_0x58772f[_0x45e4f3('0x61')][_0x45e4f3('0x91')],'messageId':_0x58772f[_0x45e4f3('0x61')][_0x45e4f3('0x28')],'body':_0x58772f[_0x45e4f3('0x61')]['body'],'SmsAccountId':_0x18e4c9[_0x45e4f3('0x76')]['id'],'SmsInteractionId':_0x16414e['id'],'direction':'in','ContactId':_0x16414e[_0x45e4f3('0x17')],'AttachmentId':_0x58772f[_0x45e4f3('0x61')][_0x45e4f3('0x71')]});})[_0x40ef66('0x4c')](function(_0x204e35){const _0x43d52c=_0x40ef66;_0x58772f[_0x43d52c('0xc6')]=_0x204e35;if(_0x58772f['interaction'][_0x43d52c('0xb8')])return db[_0x43d52c('0x9e')][_0x43d52c('0x37')]({'attributes':['id','name'],'where':{'id':_0x58772f[_0x43d52c('0x44')][_0x43d52c('0xb8')]}})[_0x43d52c('0x4c')](function(_0x583d2f){const _0x435ebc=_0x43d52c;return _0x583d2f&&_0x58772f[_0x435ebc('0x54')][_0x435ebc('0x62')]({'id':0x0,'priority':0x0,'app':_0x435ebc('0xbd'),'appdata':_0x583d2f['name']+','+(_0x58772f['account'][_0x435ebc('0x92')]||0xa),'interval':_0x435ebc('0xbe')}),respondWithRpcPromise(_0x435ebc('0x32'),_0x435ebc('0x6c'),_0x58772f);});return respondWithRpcPromise(_0x43d52c('0x32'),_0x43d52c('0x6c'),_0x58772f);})['then'](function(_0x185548){const _0x92151a=_0x40ef66;if(_0x185548){const _0x54ec0a=0xc8,_0x39217f='receiveMessage';return logger[_0x92151a('0xa4')](_0x92151a('0x6f'),_0x39217f,_0x54ec0a,_0x92151a('0x69')),logger[_0x92151a('0x86')](_0x92151a('0x78'),_0x39217f,_0x54ec0a,_0x92151a('0x69'),JSON[_0x92151a('0x75')](_0x185548)),_0x58772f[_0x92151a('0xb7')]['type']==='twilio'?_0x2d41e7['status'](_0x54ec0a)[_0x92151a('0x23')](_0x92151a('0x7e'),'text/xml')['send']('\x0a'):_0x2d41e7[_0x92151a('0x70')](_0x54ec0a)['json'](_0x185548);}})[_0x40ef66('0x63')](handleError(_0x2d41e7,null));},exports[_0x194392('0x2e')]=function(_0x281f5f,_0x459087){const _0x42a83a=_0x194392;return db[_0x42a83a('0x57')][_0x42a83a('0x37')]({'where':{'id':_0x281f5f[_0x42a83a('0x76')]['id']}})['then'](handleEntityNotFound(_0x459087,null))[_0x42a83a('0x4c')](function(_0x9ff1cc){const _0x4f2ad4=_0x42a83a;if(_0x9ff1cc)return db['sequelize'][_0x4f2ad4('0x27')](function(_0x1258bc){const _0x44ec82=_0x4f2ad4;return db[_0x44ec82('0xc5')][_0x44ec82('0x3a')]({'where':{'SmsAccountId':_0x281f5f[_0x44ec82('0x76')]['id']},'transaction':_0x1258bc})[_0x44ec82('0x4c')](function(){const _0x4ca1f6=_0x44ec82,_0x44dbe1=_['map'](_0x281f5f[_0x4ca1f6('0x61')],function(_0x5774b6){const _0x590146=_0x4ca1f6;return _0x5774b6[_0x590146('0x83')]=_0x281f5f[_0x590146('0x76')]['id'],_0x5774b6;});return db[_0x4ca1f6('0xc5')][_0x4ca1f6('0x6b')](_0x44dbe1,{'transaction':_0x1258bc});});})['then'](function(){const _0x1fe104=_0x4f2ad4;return db[_0x1fe104('0xc5')][_0x1fe104('0x7b')]({'where':{'SmsAccountId':_0x281f5f[_0x1fe104('0x76')]['id']},'order':'priority'});});})[_0x42a83a('0x4c')](respondWithResult(_0x459087,null))[_0x42a83a('0x63')](handleError(_0x459087,null));},exports[_0x194392('0xc7')]=function(_0x1dc266,_0x5e0546){const _0x3b6329=_0x194392;let _0x188273={};const _0x41f11c={};let _0x215666,_0x451d38;return db[_0x3b6329('0x57')][_0x3b6329('0x37')]({'where':{'id':_0x1dc266[_0x3b6329('0x76')]['id']}})['then'](handleEntityNotFound(_0x5e0546,null))[_0x3b6329('0x4c')](function(_0x2a2e15){const _0x4813d2=_0x3b6329;if(_0x2a2e15)return _0x215666=_0x2a2e15,_0x41f11c[_0x4813d2('0xa8')]=_[_0x4813d2('0xaf')](db['SmsApplication'][_0x4813d2('0x46')]),_0x41f11c[_0x4813d2('0x12')]=_[_0x4813d2('0xaf')](_0x1dc266['query']),_0x41f11c[_0x4813d2('0x36')]=_[_0x4813d2('0x52')](_0x41f11c[_0x4813d2('0xa8')],_0x41f11c[_0x4813d2('0x12')]),_0x188273[_0x4813d2('0x38')]=_[_0x4813d2('0x52')](_0x41f11c[_0x4813d2('0xa8')],qs[_0x4813d2('0x7')](_0x1dc266[_0x4813d2('0x12')][_0x4813d2('0x7')])),_0x188273[_0x4813d2('0x38')]=_0x188273[_0x4813d2('0x38')][_0x4813d2('0x8a')]?_0x188273[_0x4813d2('0x38')]:_0x41f11c[_0x4813d2('0xa8')],_0x188273[_0x4813d2('0xa0')]=qs['sort'](_0x1dc266[_0x4813d2('0x12')][_0x4813d2('0xc2')]),_0x188273[_0x4813d2('0x5c')]=qs[_0x4813d2('0x36')](_[_0x4813d2('0x3e')](_0x1dc266[_0x4813d2('0x12')],_0x41f11c[_0x4813d2('0x36')])),_0x1dc266[_0x4813d2('0x12')][_0x4813d2('0x6a')]&&(_0x188273[_0x4813d2('0x5c')]=_[_0x4813d2('0x21')](_0x188273[_0x4813d2('0x5c')],{[Op['or']]:_[_0x4813d2('0xb6')](_0x188273[_0x4813d2('0x38')],function(_0x3b3e7){const _0x3620b8=_0x4813d2,_0x3deef3={};return _0x3deef3[_0x3b3e7]={[Op[_0x3620b8('0x1c')]]:'%'+_0x1dc266['query'][_0x3620b8('0x6a')]+'%'},_0x3deef3;})})),_0x188273=_[_0x4813d2('0x21')]({},_0x188273,_0x1dc266[_0x4813d2('0xa3')]),_0x215666[_0x4813d2('0xc7')](_0x188273);})[_0x3b6329('0x4c')](function(_0x365fe9){const _0x420714=_0x3b6329;if(_0x365fe9)return _0x451d38=_0x365fe9[_0x420714('0x8a')],typeof _0x1dc266[_0x420714('0x12')][_0x420714('0x5a')]===_0x420714('0xb0')&&(_0x188273[_0x420714('0xa5')]=qs['limit'](_0x1dc266['query'][_0x420714('0xa5')]),_0x188273['offset']=qs[_0x420714('0xbf')](_0x1dc266[_0x420714('0x12')][_0x420714('0xbf')])),_0x215666[_0x420714('0xc7')](_0x188273);})[_0x3b6329('0x4c')](function(_0x5aca05){if(_0x5aca05)return _0x5aca05?{'count':_0x451d38,'rows':_0x5aca05}:null;})[_0x3b6329('0x4c')](respondWithResult(_0x5e0546,null))[_0x3b6329('0x63')](handleError(_0x5e0546,null));},exports['getInteractions']=function(_0x2b759b,_0x5c060e){const _0xd6bb11=_0x194392;let _0x4af1f={'raw':![],'where':{}};const _0x449979={},_0x9b1e9f={'count':0x0,'rows':[]};return db[_0xd6bb11('0x57')]['findOne']({'where':{'id':_0x2b759b['params']['id']}})[_0xd6bb11('0x4c')](handleEntityNotFound(_0x5c060e,null))['then'](function(_0x546d57){const _0x1771cf=_0xd6bb11;if(_0x546d57)return _0x449979[_0x1771cf('0xa8')]=_[_0x1771cf('0xaf')](db[_0x1771cf('0x56')][_0x1771cf('0x46')]),_0x449979[_0x1771cf('0x12')]=_[_0x1771cf('0xaf')](_0x2b759b['query']),_0x449979[_0x1771cf('0x36')]=_[_0x1771cf('0x52')](_0x449979[_0x1771cf('0xa8')],_0x449979[_0x1771cf('0x12')]),_0x4af1f[_0x1771cf('0x38')]=_[_0x1771cf('0x52')](_0x449979[_0x1771cf('0xa8')],qs[_0x1771cf('0x7')](_0x2b759b['query'][_0x1771cf('0x7')])),_0x4af1f[_0x1771cf('0x38')]=_0x4af1f['attributes'][_0x1771cf('0x8a')]?_0x4af1f[_0x1771cf('0x38')]:_0x449979[_0x1771cf('0xa8')],typeof _0x2b759b[_0x1771cf('0x12')][_0x1771cf('0x5a')]==='undefined'&&(_0x4af1f[_0x1771cf('0xa5')]=qs[_0x1771cf('0xa5')](_0x2b759b[_0x1771cf('0x12')][_0x1771cf('0xa5')]),_0x4af1f[_0x1771cf('0xbf')]=qs[_0x1771cf('0xbf')](_0x2b759b[_0x1771cf('0x12')][_0x1771cf('0xbf')])),_0x4af1f[_0x1771cf('0xa0')]=qs['sort'](_0x2b759b[_0x1771cf('0x12')][_0x1771cf('0xc2')]),_0x4af1f['where']=qs['filters'](_[_0x1771cf('0x3e')](_0x2b759b['query'],_0x449979[_0x1771cf('0x36')])),_0x4af1f['where'][_0x1771cf('0x83')]=_0x546d57['id'],_0x2b759b[_0x1771cf('0x12')][_0x1771cf('0x6a')]&&(_0x4af1f['where']=_[_0x1771cf('0x21')](_0x4af1f['where'],{[Op['or']]:_['map'](_0x4af1f[_0x1771cf('0x38')],function(_0x4a040a){const _0x536264=_0x1771cf,_0x287cc4={};return _0x287cc4[_0x4a040a]={[Op[_0x536264('0x1c')]]:'%'+_0x2b759b[_0x536264('0x12')][_0x536264('0x6a')]+'%'},_0x287cc4;})})),_0x4af1f=_[_0x1771cf('0x21')]({},_0x4af1f,_0x2b759b[_0x1771cf('0xa3')]),db['SmsInteraction'][_0x1771cf('0xc1')]({'where':_0x4af1f['where']})['then'](function(_0x2b1875){const _0xaa8920=_0x1771cf;return _0x9b1e9f[_0xaa8920('0xc1')]=_0x2b1875,_0x2b759b[_0xaa8920('0x12')][_0xaa8920('0x1e')]&&(_0x4af1f['include']=[{'model':db[_0xaa8920('0x11')],'as':_0xaa8920('0x25'),'required':![]},{'model':db[_0xaa8920('0x9e')],'as':'Owner','attributes':['name','fullname',_0xaa8920('0x64')],'required':![]},{'model':db[_0xaa8920('0xaa')],'as':_0xaa8920('0x99'),'attributes':['id',_0xaa8920('0x3f'),'color'],'where':_0x2b759b[_0xaa8920('0x12')]['tag']?{'id':_0x2b759b[_0xaa8920('0x12')][_0xaa8920('0x31')]}:undefined,'required':_0x2b759b[_0xaa8920('0x12')][_0xaa8920('0x31')]?!![]:![]}]),db[_0xaa8920('0x56')][_0xaa8920('0xa2')](_0x4af1f);})[_0x1771cf('0x4c')](function(_0x146e39){const _0x835eac=_0x1771cf;return _0x9b1e9f[_0x835eac('0x4d')]=_0x146e39,_0x9b1e9f;});})['then'](respondWithFilteredResult(_0x5c060e,_0x4af1f))['catch'](handleError(_0x5c060e,null));},exports['send']=function(_0x5a8cc1,_0x171b9b){const _0x1ae41a=_0x194392;let _0x563747,_0x13c1aa;if(_[_0x1ae41a('0x15')](_0x5a8cc1['body'][_0x1ae41a('0x61')])||_0x5a8cc1[_0x1ae41a('0x61')][_0x1ae41a('0x61')]==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_[_0x1ae41a('0x15')](_0x5a8cc1[_0x1ae41a('0x61')]['to']))throw new ValidationError(_0x1ae41a('0xae'));const _0x4ae842=_0x5a8cc1[_0x1ae41a('0x61')]['to'];return db[_0x1ae41a('0x57')][_0x1ae41a('0x37')]({'where':{'id':_0x5a8cc1[_0x1ae41a('0x76')]['id']},'include':[{'model':db[_0x1ae41a('0xb2')],'as':_0x1ae41a('0x2f'),'include':[{'model':db['CmContact'],'as':_0x1ae41a('0xa'),'where':{'mobile':_0x4ae842},'limit':0x1,'order':[[_0x1ae41a('0x60'),_0x1ae41a('0x5e')]]}]}]})[_0x1ae41a('0x4c')](handleEntityNotFound(_0x171b9b,null))[_0x1ae41a('0x4c')](function(_0x4737d2){const _0x48bc16=_0x1ae41a;if(_0x4737d2&&_0x4737d2[_0x48bc16('0x2f')]){_0x563747=_0x4737d2[_0x48bc16('0x1')]({'plain':!![]});if(_0x563747[_0x48bc16('0x2f')]&&_0x563747[_0x48bc16('0x2f')][_0x48bc16('0xa')][_0x48bc16('0x8a')])return _0x563747[_0x48bc16('0x2f')][_0x48bc16('0xa')][0x0];return db['CmContact'][_0x48bc16('0xb')](_[_0x48bc16('0x10')](_0x5a8cc1[_0x48bc16('0x61')],{'firstName':_0x4ae842,'mobile':_0x4ae842,'phone':_0x4ae842,'ListId':_0x563747[_0x48bc16('0x65')]}));}})[_0x1ae41a('0x4c')](handleEntityNotFound(_0x171b9b,null))[_0x1ae41a('0x4c')](function(_0x1fd1de){const _0x12d0bb=_0x1ae41a;if(_0x1fd1de)return _0x13c1aa=_0x1fd1de,db[_0x12d0bb('0x56')][_0x12d0bb('0x37')]({'where':{'ContactId':_0x13c1aa['id'],'closed':![],'SmsAccountId':_0x563747['id']}})[_0x12d0bb('0x4c')](function(_0x3b1a8d){const _0x2a2f6a=_0x12d0bb;if(_0x3b1a8d)return[_0x3b1a8d,![]];return db[_0x2a2f6a('0x56')]['create']({'UserId':_0x5a8cc1[_0x2a2f6a('0x8f')]['id'],'ContactId':_0x13c1aa['id'],'SmsAccountId':_0x563747['id'],'phone':_0x4ae842,'firstMsgDirection':_0x2a2f6a('0x4e'),'Messages':[_['merge'](_0x5a8cc1[_0x2a2f6a('0x61')],{'read':![],'body':_0x5a8cc1['body'][_0x2a2f6a('0x61')],'phone':_0x4ae842,'SmsAccountId':_0x563747['id'],'UserId':_0x5a8cc1['user']['id'],'ContactId':_0x13c1aa['id']})]},{'include':[{'model':db[_0x2a2f6a('0x22')],'as':'Messages'}]})[_0x2a2f6a('0x4c')](function(_0x1cde0f){return[_0x1cde0f,!![]];});});})['then'](function([_0x172e13,_0x4c1f06]){const _0x3b78c3=_0x1ae41a;if(_0x4c1f06)return _0x172e13;return db['SmsMessage'][_0x3b78c3('0xb')](_[_0x3b78c3('0x21')](_0x5a8cc1['body'],{'read':![],'body':_0x5a8cc1[_0x3b78c3('0x61')]['body'],'phone':_0x4ae842,'SmsAccountId':_0x563747['id'],'SmsInteractionId':_0x172e13['id'],'UserId':_0x5a8cc1[_0x3b78c3('0x8f')]['id'],'ContactId':_0x13c1aa['id']}))['then'](function(_0x17977a){const _0x540514=_0x3b78c3;return _0x172e13['dataValues']['Messages']=[],_0x172e13['dataValues'][_0x540514('0x4a')][_0x540514('0x47')](_0x17977a[_0x540514('0x40')]),_0x172e13;});})['then'](respondWithResult(_0x171b9b,null))[_0x1ae41a('0x63')](handleError(_0x171b9b,null));},exports[_0x194392('0x70')]=function(_0x2daf89,_0x5088f6){const _0x4316da=_0x194392;_0x2daf89[_0x4316da('0x61')]['id']&&delete _0x2daf89[_0x4316da('0x61')]['id'];console['log'](_0x4316da('0x84'),_0x2daf89[_0x4316da('0x61')]);let _0x314b40,_0x1dc433,_0x712881;return db[_0x4316da('0x57')]['findOne']({'where':{'id':_0x2daf89[_0x4316da('0x76')]['id']}})[_0x4316da('0x4c')](handleEntityNotFound(_0x5088f6,null))[_0x4316da('0x4c')](function(_0x5ec904){const _0x10c64e=_0x4316da;if(_0x5ec904){_0x712881=_0x5ec904,logger[_0x10c64e('0x86')](_0x10c64e('0x6f'),'status',_0x10c64e('0xc'),_0x5ec904['type'],util[_0x10c64e('0xd')](_0x2daf89[_0x10c64e('0x61')],{'showHidden':![],'depth':null}));switch(_0x5ec904[_0x10c64e('0x3')]){case _0x10c64e('0xac'):if(_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0xa9')]&&_0x2daf89['body'][_0x10c64e('0x70')])return _0x1dc433=_0x2daf89['body'][_0x10c64e('0x70')],db[_0x10c64e('0x22')]['findOne']({'where':{'messageId':_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0xa9')]}});break;case'connectel':if(_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0xba')]&&_0x2daf89['body']['statusInt'])return _0x1dc433=_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x9')],db['SmsMessage'][_0x10c64e('0x37')]({'where':{'messageId':_0x2daf89[_0x10c64e('0x61')]['requestid']}});break;case _0x10c64e('0x77'):if(_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x14')]&&_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x50')])return _0x1dc433=_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x50')],db[_0x10c64e('0x22')]['findOne']({'where':{'messageId':_0x2daf89['body'][_0x10c64e('0x14')]}});break;case _0x10c64e('0x3d'):{const _0x5ee995=_0x2daf89[_0x10c64e('0x61')]['results'][0x0];if(_0x5ee995[_0x10c64e('0x28')]&&_0x5ee995[_0x10c64e('0x70')]['groupName']==='DELIVERED')return _0x1dc433=_0x5ee995[_0x10c64e('0x70')][_0x10c64e('0x8e')],db[_0x10c64e('0x22')]['findOne']({'where':{'messageId':_0x5ee995[_0x10c64e('0x28')]}});}break;case _0x10c64e('0xb1'):if(_0x2daf89['body'][_0x10c64e('0x28')]&&_0x2daf89[_0x10c64e('0x61')]['status'])return _0x1dc433=_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x70')],db['SmsMessage']['findOne']({'where':{'messageId':_0x2daf89['body'][_0x10c64e('0x28')]}});break;case _0x10c64e('0x5b'):if(_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x90')]&&_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x70')])return _0x1dc433=_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x70')],db[_0x10c64e('0x22')]['findOne']({'where':{'messageId':_0x2daf89[_0x10c64e('0x61')][_0x10c64e('0x90')]}});break;}}})[_0x4316da('0x4c')](handleEntityNotFound(_0x5088f6,null))[_0x4316da('0x4c')](function(_0x28f34a){const _0x24e99a=_0x4316da;if(_0x28f34a){_0x314b40=_0x28f34a;switch(_0x712881[_0x24e99a('0x3')]){case'skebby':if(_0x1dc433==='DELIVERED')return _0x314b40[_0x24e99a('0x6d')]({'read':!![]});else logger['error']('SmsAccount,\x20%s,\x20%s,\x20%s',_0x24e99a('0x70'),_0x24e99a('0xac'),util[_0x24e99a('0xd')](_0x2daf89[_0x24e99a('0x61')],{'showHidden':![],'depth':null}));break;case _0x24e99a('0x16'):if(_0x1dc433==='1')return _0x314b40[_0x24e99a('0x6d')]({'read':!![]});else logger[_0x24e99a('0x29')](_0x24e99a('0x6f'),_0x24e99a('0x70'),'skebby',util[_0x24e99a('0xd')](_0x2daf89[_0x24e99a('0x61')],{'showHidden':![],'depth':null}));break;case _0x24e99a('0x77'):if(!_0x2daf89[_0x24e99a('0x61')][_0x24e99a('0x4b')]&&_0x1dc433>=0xc8&&_0x1dc433<=0xce)return _0x314b40['update']({'read':!![]});else logger[_0x24e99a('0x29')](_0x24e99a('0x6f'),'status','clicksend',util['inspect'](_0x2daf89[_0x24e99a('0x61')],{'showHidden':![],'depth':null}));break;case _0x24e99a('0x3d'):{const _0x31ee26=_0x2daf89[_0x24e99a('0x61')][_0x24e99a('0x1b')][0x0];if(_0x31ee26['status'][_0x24e99a('0x8e')]==='DELIVERED')return _0x314b40['update']({'read':!![]});else logger[_0x24e99a('0x29')]('SmsAccount,\x20%s,\x20%s,\x20%s','status',_0x24e99a('0x3d'),util[_0x24e99a('0xd')](_0x2daf89[_0x24e99a('0x61')],{'showHidden':![],'depth':null}));}break;case _0x24e99a('0xb1'):if(_0x1dc433==_0x24e99a('0x59')||_0x1dc433==_0x24e99a('0xc3'))return _0x314b40[_0x24e99a('0x6d')]({'read':!![]});else logger[_0x24e99a('0x29')](_0x24e99a('0x6f'),'status',_0x24e99a('0xb1'),util[_0x24e99a('0xd')](_0x2daf89[_0x24e99a('0x61')],{'showHidden':![],'depth':null}));break;case _0x24e99a('0x5b'):if(_0x1dc433===_0x24e99a('0x58')||_0x1dc433==='ACCEPTD')return _0x314b40[_0x24e99a('0x6d')]({'read':!![]});else logger['error']('SmsAccount,\x20%s,\x20%s,\x20%s',_0x24e99a('0x70'),_0x24e99a('0x5b'),util[_0x24e99a('0xd')](_0x2daf89['body'],{'showHidden':![],'depth':null}));break;}return _0x314b40;}})[_0x4316da('0x4c')](respondWithResult(_0x5088f6,null))[_0x4316da('0x63')](handleError(_0x5088f6,null));},exports['statusGet']=function(_0x578f1d,_0x594d3e){const _0x28f9ad=_0x194392;let _0x5c910e,_0xbe2c6f,_0x3d4707;return db[_0x28f9ad('0x57')][_0x28f9ad('0x37')]({'where':{'id':_0x578f1d[_0x28f9ad('0x76')]['id']}})[_0x28f9ad('0x4c')](handleEntityNotFound(_0x594d3e,null))[_0x28f9ad('0x4c')](function(_0x4138d5){const _0x4175e5=_0x28f9ad;if(_0x4138d5){_0x3d4707=_0x4138d5,logger[_0x4175e5('0x86')](_0x4175e5('0x6f'),_0x4175e5('0x70'),_0x4175e5('0xc'),_0x4138d5[_0x4175e5('0x3')],util['inspect'](_0x578f1d['query'],{'showHidden':![],'depth':null}));switch(_0x4138d5[_0x4175e5('0x3')]){case _0x4175e5('0x85'):if(_0x578f1d['query'][_0x4175e5('0x79')]&&_0x578f1d[_0x4175e5('0x12')][_0x4175e5('0x3b')])return _0xbe2c6f=_0x578f1d[_0x4175e5('0x12')][_0x4175e5('0x3b')],db[_0x4175e5('0x22')][_0x4175e5('0x37')]({'where':{'messageId':_0x578f1d[_0x4175e5('0x12')][_0x4175e5('0x79')]}});break;}}})[_0x28f9ad('0x4c')](handleEntityNotFound(_0x594d3e,null))[_0x28f9ad('0x4c')](function(_0x524047){const _0x4903a5=_0x28f9ad;if(_0x524047){_0x5c910e=_0x524047;switch(_0x3d4707['type']){case _0x4903a5('0x85'):if(_0xbe2c6f==='2'||_0xbe2c6f==='6')return _0x5c910e[_0x4903a5('0x6d')]({'read':!![]});else logger['error'](_0x4903a5('0x6f'),_0x4903a5('0x70'),_0x4903a5('0x85'),util[_0x4903a5('0xd')](_0x578f1d['query'],{'showHidden':![],'depth':null}));break;}return _0x5c910e;}})[_0x28f9ad('0x4c')](respondWithResult(_0x594d3e,null))[_0x28f9ad('0x63')](handleError(_0x594d3e,null));},exports[_0x194392('0x2b')]=function(_0x53c6ad,_0x33c47d){const _0x3a308d=_0x194392;return db[_0x3a308d('0x57')]['findOne']({'where':{'id':_0x53c6ad[_0x3a308d('0x76')]['id']}})['then'](function(_0x549e66){const _0x151989=_0x3a308d;if(_0x549e66)return _0x549e66[_0x151989('0x2b')](_0x53c6ad[_0x151989('0x61')][_0x151989('0x34')],{'through':_['omit'](_0x53c6ad[_0x151989('0x61')],[_0x151989('0x34'),'id'])})[_0x151989('0x4c')](function(_0x5cb00a){const _0x4ea5f0=_0x151989;for(let _0x216a80=0x0;_0x216a80<_0x53c6ad[_0x4ea5f0('0x61')][_0x4ea5f0('0x34')][_0x4ea5f0('0x8a')];_0x216a80+=0x1){socket[_0x4ea5f0('0x2')](_0x4ea5f0('0xb3'),{'UserId':_0x53c6ad[_0x4ea5f0('0x61')]['ids'][_0x216a80],'SmsAccountId':_0x53c6ad[_0x4ea5f0('0x76')]['id']});}return _0x5cb00a;});})[_0x3a308d('0x4c')](respondWithResult(_0x33c47d,null))[_0x3a308d('0x63')](handleError(_0x33c47d,null));},exports['removeAgents']=function(_0xefcdd8,_0x26c4ea){const _0x472b04=_0x194392;return db['SmsAccount']['findOne']({'where':{'id':_0xefcdd8[_0x472b04('0x76')]['id']}})[_0x472b04('0x4c')](handleEntityNotFound(_0x26c4ea,null))[_0x472b04('0x4c')](function(_0xb61070){const _0x20bd5=_0x472b04;if(_0xb61070)return _0xb61070[_0x20bd5('0x8b')](_0xefcdd8[_0x20bd5('0x12')]['ids'])[_0x20bd5('0x4c')](function(){const _0x43dc3f=_0x20bd5;if(_[_0x43dc3f('0x24')](_0xefcdd8[_0x43dc3f('0x12')][_0x43dc3f('0x34')]))for(let _0xe9dee9=0x0;_0xe9dee9<_0xefcdd8[_0x43dc3f('0x12')][_0x43dc3f('0x34')][_0x43dc3f('0x8a')];_0xe9dee9+=0x1){socket[_0x43dc3f('0x2')](_0x43dc3f('0x73'),{'UserId':Number(_0xefcdd8[_0x43dc3f('0x12')]['ids'][_0xe9dee9]),'SmsAccountId':Number(_0xefcdd8['params']['id'])});}else socket[_0x43dc3f('0x2')](_0x43dc3f('0x73'),{'UserId':Number(_0xefcdd8[_0x43dc3f('0x12')][_0x43dc3f('0x34')]),'SmsAccountId':Number(_0xefcdd8[_0x43dc3f('0x76')]['id'])});});})['then'](respondWithStatusCode(_0x26c4ea,null))['catch'](handleError(_0x26c4ea,null));},exports['getAgents']=function(_0x3fa6b4,_0x3af776){const _0x317ce5=_0x194392;let _0x269da0={};const _0x30eb13={};let _0x353abe,_0x51854d;return db[_0x317ce5('0x57')][_0x317ce5('0x37')]({'where':{'id':_0x3fa6b4[_0x317ce5('0x76')]['id']}})[_0x317ce5('0x4c')](handleEntityNotFound(_0x3af776,null))[_0x317ce5('0x4c')](function(_0x5e1c5d){const _0x33a274=_0x317ce5;if(_0x5e1c5d)return _0x353abe=_0x5e1c5d,_0x30eb13[_0x33a274('0xa8')]=_[_0x33a274('0xaf')](db['User'][_0x33a274('0x46')]),_0x30eb13[_0x33a274('0x12')]=_[_0x33a274('0xaf')](_0x3fa6b4['query']),_0x30eb13[_0x33a274('0x36')]=_[_0x33a274('0x52')](_0x30eb13[_0x33a274('0xa8')],_0x30eb13[_0x33a274('0x12')]),_0x269da0[_0x33a274('0x38')]=_[_0x33a274('0x52')](_0x30eb13[_0x33a274('0xa8')],qs[_0x33a274('0x7')](_0x3fa6b4[_0x33a274('0x12')][_0x33a274('0x7')])),_0x269da0['attributes']=_0x269da0[_0x33a274('0x38')][_0x33a274('0x8a')]?_0x269da0[_0x33a274('0x38')]:_0x30eb13[_0x33a274('0xa8')],_0x269da0['order']=qs[_0x33a274('0xc2')](_0x3fa6b4[_0x33a274('0x12')][_0x33a274('0xc2')]),_0x269da0[_0x33a274('0x5c')]=qs[_0x33a274('0x36')](_[_0x33a274('0x3e')](_0x3fa6b4[_0x33a274('0x12')],_0x30eb13[_0x33a274('0x36')])),_0x3fa6b4['query'][_0x33a274('0x6a')]&&(_0x269da0[_0x33a274('0x5c')]=_[_0x33a274('0x21')](_0x269da0[_0x33a274('0x5c')],{[Op['or']]:_[_0x33a274('0xb6')](_0x269da0[_0x33a274('0x38')],function(_0x23c822){const _0x45324d=_0x33a274,_0x1a5598={};return _0x1a5598[_0x23c822]={[Op[_0x45324d('0x1c')]]:'%'+_0x3fa6b4[_0x45324d('0x12')][_0x45324d('0x6a')]+'%'},_0x1a5598;})})),_0x269da0=_[_0x33a274('0x21')]({},_0x269da0,_0x3fa6b4[_0x33a274('0xa3')]),_0x353abe[_0x33a274('0x39')](_0x269da0);})['then'](function(_0x560fc9){const _0x5dadee=_0x317ce5;if(_0x560fc9)return _0x51854d=_0x560fc9[_0x5dadee('0x8a')],typeof _0x3fa6b4[_0x5dadee('0x12')]['nolimit']==='undefined'&&(_0x269da0['limit']=qs[_0x5dadee('0xa5')](_0x3fa6b4[_0x5dadee('0x12')][_0x5dadee('0xa5')]),_0x269da0[_0x5dadee('0xbf')]=qs[_0x5dadee('0xbf')](_0x3fa6b4[_0x5dadee('0x12')][_0x5dadee('0xbf')])),_0x353abe[_0x5dadee('0x39')](_0x269da0);})[_0x317ce5('0x4c')](function(_0x19cc01){if(_0x19cc01)return _0x19cc01?{'count':_0x51854d,'rows':_0x19cc01}:null;})[_0x317ce5('0x4c')](respondWithResult(_0x3af776,null))[_0x317ce5('0x63')](handleError(_0x3af776,null));}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.events.js b/server/api/smsAccount/smsAccount.events.js index 9bd382a..52ca547 100644 --- a/server/api/smsAccount/smsAccount.events.js +++ b/server/api/smsAccount/smsAccount.events.js @@ -1 +1 @@ -const a543_0xf30a=['undefined','addHook','SmsAccount','events','remove','update','../../mysqldb','exports','emit','setMaxListeners'];(function(_0x75b268,_0xf30a02){const _0x4b7aea=function(_0x5efe3c){while(--_0x5efe3c){_0x75b268['push'](_0x75b268['shift']());}};_0x4b7aea(++_0xf30a02);}(a543_0xf30a,0x17a));const a543_0x4b7a=function(_0x75b268,_0xf30a02){_0x75b268=_0x75b268-0x0;let _0x4b7aea=a543_0xf30a[_0x75b268];return _0x4b7aea;};const _0x2b7291=a543_0x4b7a;'use strict';const EventEmitter=require(_0x2b7291('0x5')),SmsAccount=require(_0x2b7291('0x8'))['db'][_0x2b7291('0x4')],SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x2b7291('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x2b7291('0x7'),'afterDestroy':_0x2b7291('0x6')};function emitEvent(_0x5efe3c){return function(_0x59c189){const _0x5f2d06=a543_0x4b7a;SmsAccountEvents[_0x5f2d06('0x0')](_0x5efe3c+':'+_0x59c189['id'],_0x59c189),SmsAccountEvents[_0x5f2d06('0x0')](_0x5efe3c,_0x59c189);};}for(const e in events){if(typeof events[e]!==_0x2b7291('0x2')){const event=events[e];SmsAccount[_0x2b7291('0x3')](e,emitEvent(event));}}module[_0x2b7291('0x9')]=SmsAccountEvents; \ No newline at end of file +const a543_0x6b63=['../../mysqldb','emit','undefined','setMaxListeners','events','SmsAccount','addHook','exports'];(function(_0x26f5ed,_0x6b63a2){const _0x2733af=function(_0x1ec887){while(--_0x1ec887){_0x26f5ed['push'](_0x26f5ed['shift']());}};_0x2733af(++_0x6b63a2);}(a543_0x6b63,0x1bd));const a543_0x2733=function(_0x26f5ed,_0x6b63a2){_0x26f5ed=_0x26f5ed-0x0;let _0x2733af=a543_0x6b63[_0x26f5ed];return _0x2733af;};const _0x2dc691=a543_0x2733;'use strict';const EventEmitter=require(_0x2dc691('0x7')),SmsAccount=require(_0x2dc691('0x3'))['db'][_0x2dc691('0x0')],SmsAccountEvents=new EventEmitter();SmsAccountEvents[_0x2dc691('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0x1ec887){return function(_0x1746cc){const _0x56ecba=a543_0x2733;SmsAccountEvents['emit'](_0x1ec887+':'+_0x1746cc['id'],_0x1746cc),SmsAccountEvents[_0x56ecba('0x4')](_0x1ec887,_0x1746cc);};}for(const e in events){if(typeof events[e]!==_0x2dc691('0x5')){const event=events[e];SmsAccount[_0x2dc691('0x1')](e,emitEvent(event));}}module[_0x2dc691('0x2')]=SmsAccountEvents; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.model.js b/server/api/smsAccount/smsAccount.model.js index 3570a21..c8758bd 100644 --- a/server/api/smsAccount/smsAccount.model.js +++ b/server/api/smsAccount/smsAccount.model.js @@ -1 +1 @@ -const a544_0x1ce9=['SmsAccount','exports','./smsAccount.attributes','sms_accounts','define'];(function(_0x32454e,_0x1ce9e4){const _0x506896=function(_0x26c115){while(--_0x26c115){_0x32454e['push'](_0x32454e['shift']());}};_0x506896(++_0x1ce9e4);}(a544_0x1ce9,0x89));const a544_0x5068=function(_0x32454e,_0x1ce9e4){_0x32454e=_0x32454e-0x0;let _0x506896=a544_0x1ce9[_0x32454e];return _0x506896;};const _0x1e5d50=a544_0x5068;'use strict';const attributes=require(_0x1e5d50('0x0'));module[_0x1e5d50('0x4')]=function(_0x26c115){const _0xc970de=_0x1e5d50,_0x3c170b=_0x26c115[_0xc970de('0x2')](_0xc970de('0x3'),attributes,{'tableName':_0xc970de('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3c170b;}; \ No newline at end of file +const a544_0x4ad3=['sms_accounts','./smsAccount.attributes','SmsAccount','exports','define'];(function(_0x2a17b8,_0x4ad38a){const _0x30b545=function(_0x4e2905){while(--_0x4e2905){_0x2a17b8['push'](_0x2a17b8['shift']());}};_0x30b545(++_0x4ad38a);}(a544_0x4ad3,0x16c));const a544_0x30b5=function(_0x2a17b8,_0x4ad38a){_0x2a17b8=_0x2a17b8-0x0;let _0x30b545=a544_0x4ad3[_0x2a17b8];return _0x30b545;};const _0x469263=a544_0x30b5;'use strict';const attributes=require(_0x469263('0x2'));module[_0x469263('0x4')]=function(_0x4e2905){const _0x3efec0=_0x469263,_0x547147=_0x4e2905[_0x3efec0('0x0')](_0x3efec0('0x3'),attributes,{'tableName':_0x3efec0('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x547147;}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.rpc.js b/server/api/smsAccount/smsAccount.rpc.js index c966b45..3ca7c6e 100644 --- a/server/api/smsAccount/smsAccount.rpc.js +++ b/server/api/smsAccount/smsAccount.rpc.js @@ -1 +1 @@ -const a545_0x2e93=['attributes','ShowSmsAccount','../../config/logger','include','rpc','../../mysqldb','message','debug','../../rediscache','stringify','./smsAccount.socket','map','raw','register','catch','error','options','model','info','where'];(function(_0x5d0cf8,_0x2e9321){const _0x16d8c6=function(_0x1edc94){while(--_0x1edc94){_0x5d0cf8['push'](_0x5d0cf8['shift']());}};_0x16d8c6(++_0x2e9321);}(a545_0x2e93,0x139));const a545_0x16d8=function(_0x5d0cf8,_0x2e9321){_0x5d0cf8=_0x5d0cf8-0x0;let _0x16d8c6=a545_0x2e93[_0x5d0cf8];return _0x16d8c6;};const _0x1fcb82=a545_0x16d8;'use strict';const db=require(_0x1fcb82('0xc'))['db'],logger=require(_0x1fcb82('0x9'))(_0x1fcb82('0xb')),_=require('lodash'),{getSocket}=require(_0x1fcb82('0xf')),socket=getSocket();require(_0x1fcb82('0x11'))[_0x1fcb82('0x0')](socket),exports[_0x1fcb82('0x8')]=function(_0x1edc94){const _0x493c3c=this;return new Promise(function(_0x4c3789,_0x5a0c0b){const _0x21367f=a545_0x16d8;return db['SmsAccount']['findOne']({'raw':_0x1edc94['options']?_0x1edc94[_0x21367f('0x3')][_0x21367f('0x13')]===undefined?!![]:![]:!![],'where':_0x1edc94[_0x21367f('0x3')]?_0x1edc94[_0x21367f('0x3')][_0x21367f('0x6')]||null:null,'attributes':_0x1edc94[_0x21367f('0x3')]?_0x1edc94['options'][_0x21367f('0x7')]||null:null,'include':_0x1edc94[_0x21367f('0x3')]?_0x1edc94[_0x21367f('0x3')][_0x21367f('0xa')]?_[_0x21367f('0x12')](_0x1edc94[_0x21367f('0x3')][_0x21367f('0xa')],function(_0x577414){const _0x4f0b4=_0x21367f;return{'model':db[_0x577414[_0x4f0b4('0x4')]],'as':_0x577414['as'],'attributes':_0x577414[_0x4f0b4('0x7')],'include':_0x577414[_0x4f0b4('0xa')]?_[_0x4f0b4('0x12')](_0x577414[_0x4f0b4('0xa')],function(_0x17627a){const _0xb47b75=_0x4f0b4;return{'model':db[_0x17627a[_0xb47b75('0x4')]],'as':_0x17627a['as'],'attributes':_0x17627a[_0xb47b75('0x7')],'include':_0x17627a['include']?_['map'](_0x17627a[_0xb47b75('0xa')],function(_0x4dd146){const _0x4b2bbf=_0xb47b75;return{'model':db[_0x4dd146[_0x4b2bbf('0x4')]],'as':_0x4dd146['as'],'attributes':_0x4dd146[_0x4b2bbf('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x59a861){const _0x4cabe3=_0x21367f;logger[_0x4cabe3('0x5')]('ShowSmsAccount',_0x1edc94),logger[_0x4cabe3('0xe')]('ShowSmsAccount',_0x1edc94,JSON[_0x4cabe3('0x10')](_0x59a861)),_0x4c3789(_0x59a861);})[_0x21367f('0x1')](function(_0x2b62a3){const _0x5c0ad8=_0x21367f;logger[_0x5c0ad8('0x2')](_0x5c0ad8('0x8'),_0x2b62a3[_0x5c0ad8('0xd')],_0x1edc94),_0x5a0c0b(_0x493c3c[_0x5c0ad8('0x2')](0x1f4,_0x2b62a3[_0x5c0ad8('0xd')]));});});}; \ No newline at end of file +const a545_0x47d6=['findOne','include','map','attributes','../../config/logger','raw','lodash','SmsAccount','catch','message','options','./smsAccount.socket','where','model','stringify','info','rpc','../../mysqldb','ShowSmsAccount','debug','then','error'];(function(_0x152a6c,_0x47d692){const _0x1885fe=function(_0x5aa764){while(--_0x5aa764){_0x152a6c['push'](_0x152a6c['shift']());}};_0x1885fe(++_0x47d692);}(a545_0x47d6,0xcb));const a545_0x1885=function(_0x152a6c,_0x47d692){_0x152a6c=_0x152a6c-0x0;let _0x1885fe=a545_0x47d6[_0x152a6c];return _0x1885fe;};const _0xcaf785=a545_0x1885;'use strict';const db=require(_0xcaf785('0xc'))['db'],logger=require(_0xcaf785('0x15'))(_0xcaf785('0xb')),_=require(_0xcaf785('0x1')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0xcaf785('0x6'))['register'](socket),exports[_0xcaf785('0xd')]=function(_0x5aa764){const _0x40a1c3=this;return new Promise(function(_0x28f3f5,_0x30650f){const _0x2cadaf=a545_0x1885;return db[_0x2cadaf('0x2')][_0x2cadaf('0x11')]({'raw':_0x5aa764[_0x2cadaf('0x5')]?_0x5aa764['options'][_0x2cadaf('0x0')]===undefined?!![]:![]:!![],'where':_0x5aa764[_0x2cadaf('0x5')]?_0x5aa764['options'][_0x2cadaf('0x7')]||null:null,'attributes':_0x5aa764[_0x2cadaf('0x5')]?_0x5aa764[_0x2cadaf('0x5')][_0x2cadaf('0x14')]||null:null,'include':_0x5aa764[_0x2cadaf('0x5')]?_0x5aa764[_0x2cadaf('0x5')]['include']?_[_0x2cadaf('0x13')](_0x5aa764['options'][_0x2cadaf('0x12')],function(_0x4c0cb9){const _0x513484=_0x2cadaf;return{'model':db[_0x4c0cb9['model']],'as':_0x4c0cb9['as'],'attributes':_0x4c0cb9[_0x513484('0x14')],'include':_0x4c0cb9[_0x513484('0x12')]?_[_0x513484('0x13')](_0x4c0cb9[_0x513484('0x12')],function(_0x470c35){const _0x481cb5=_0x513484;return{'model':db[_0x470c35[_0x481cb5('0x8')]],'as':_0x470c35['as'],'attributes':_0x470c35[_0x481cb5('0x14')],'include':_0x470c35[_0x481cb5('0x12')]?_['map'](_0x470c35[_0x481cb5('0x12')],function(_0x16a1eb){const _0x6a600b=_0x481cb5;return{'model':db[_0x16a1eb[_0x6a600b('0x8')]],'as':_0x16a1eb['as'],'attributes':_0x16a1eb[_0x6a600b('0x14')]};}):[]};}):[]};}):[]:[]})[_0x2cadaf('0xf')](function(_0x3810ae){const _0x5c4153=_0x2cadaf;logger[_0x5c4153('0xa')]('ShowSmsAccount',_0x5aa764),logger[_0x5c4153('0xe')](_0x5c4153('0xd'),_0x5aa764,JSON[_0x5c4153('0x9')](_0x3810ae)),_0x28f3f5(_0x3810ae);})[_0x2cadaf('0x3')](function(_0x4ca476){const _0x48baeb=_0x2cadaf;logger[_0x48baeb('0x10')]('ShowSmsAccount',_0x4ca476[_0x48baeb('0x4')],_0x5aa764),_0x30650f(_0x40a1c3[_0x48baeb('0x10')](0x1f4,_0x4ca476[_0x48baeb('0x4')]));});});}; \ No newline at end of file diff --git a/server/api/smsAccount/smsAccount.socket.js b/server/api/smsAccount/smsAccount.socket.js index da83eb9..8777a35 100644 --- a/server/api/smsAccount/smsAccount.socket.js +++ b/server/api/smsAccount/smsAccount.socket.js @@ -1 +1 @@ -const a546_0x460f=['remove','emit','register','smsAccount:','length','save','./smsAccount.events','update'];(function(_0x41803a,_0x460fbf){const _0x1289d5=function(_0x68fbcd){while(--_0x68fbcd){_0x41803a['push'](_0x41803a['shift']());}};_0x1289d5(++_0x460fbf);}(a546_0x460f,0x6c));const a546_0x1289=function(_0x41803a,_0x460fbf){_0x41803a=_0x41803a-0x0;let _0x1289d5=a546_0x460f[_0x41803a];return _0x1289d5;};const _0x2f5c7c=a546_0x1289;'use strict';const SmsAccountEvents=require(_0x2f5c7c('0x2')),events=[_0x2f5c7c('0x1'),_0x2f5c7c('0x4'),_0x2f5c7c('0x3')];function createListener(_0x68fbcd,_0x4a890b){return function(_0x38623f){const _0x2e431d=a546_0x1289;_0x4a890b[_0x2e431d('0x5')](_0x68fbcd,_0x38623f);};}exports[_0x2f5c7c('0x6')]=function(_0x3c7865){const _0x12b779=_0x2f5c7c;for(let _0x5ee928=0x0,_0x5cccc7=events[_0x12b779('0x0')];_0x5ee928<_0x5cccc7;_0x5ee928++){const _0x2a5d95=events[_0x5ee928],_0x4960b9=createListener(_0x12b779('0x7')+_0x2a5d95,_0x3c7865);SmsAccountEvents['on'](_0x2a5d95,_0x4960b9);}}; \ No newline at end of file +const a546_0x539c=['./smsAccount.events','remove','save','emit','register'];(function(_0x227148,_0x539c27){const _0x3c5f3f=function(_0x295c61){while(--_0x295c61){_0x227148['push'](_0x227148['shift']());}};_0x3c5f3f(++_0x539c27);}(a546_0x539c,0x18e));const a546_0x3c5f=function(_0x227148,_0x539c27){_0x227148=_0x227148-0x0;let _0x3c5f3f=a546_0x539c[_0x227148];return _0x3c5f3f;};const _0x28732d=a546_0x3c5f;'use strict';const SmsAccountEvents=require(_0x28732d('0x2')),events=[_0x28732d('0x4'),_0x28732d('0x3'),'update'];function createListener(_0x295c61,_0x3ebefc){return function(_0x13fc95){const _0x4fb17d=a546_0x3c5f;_0x3ebefc[_0x4fb17d('0x0')](_0x295c61,_0x13fc95);};}exports[_0x28732d('0x1')]=function(_0x5d0f65){for(let _0x2c8b63=0x0,_0x13c4ac=events['length'];_0x2c8b63<_0x13c4ac;_0x2c8b63++){const _0x5d7bbd=events[_0x2c8b63],_0x5a50e9=createListener('smsAccount:'+_0x5d7bbd,_0x5d0f65);SmsAccountEvents['on'](_0x5d7bbd,_0x5a50e9);}}; \ No newline at end of file diff --git a/server/api/smsApplication/index.js b/server/api/smsApplication/index.js index adcdb56..7aaa293 100644 --- a/server/api/smsApplication/index.js +++ b/server/api/smsApplication/index.js @@ -1 +1 @@ -const a547_0x2081=['index','exports','delete','get','/:id','isAuthenticated','../../components/auth/service','./smsApplication.controller','create','put','post'];(function(_0x4c1886,_0x20813d){const _0x38e859=function(_0x4add29){while(--_0x4add29){_0x4c1886['push'](_0x4c1886['shift']());}};_0x38e859(++_0x20813d);}(a547_0x2081,0xcf));const a547_0x38e8=function(_0x4c1886,_0x20813d){_0x4c1886=_0x4c1886-0x0;let _0x38e859=a547_0x2081[_0x4c1886];return _0x38e859;};const _0x3f7046=a547_0x38e8;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x3f7046('0x8')),controller=require(_0x3f7046('0x9'));router[_0x3f7046('0x5')]('/',auth['isAuthenticated'](),controller[_0x3f7046('0x2')]),router[_0x3f7046('0x5')](_0x3f7046('0x6'),auth[_0x3f7046('0x7')](),controller['show']),router[_0x3f7046('0x1')]('/',auth[_0x3f7046('0x7')](),controller[_0x3f7046('0xa')]),router[_0x3f7046('0x0')](_0x3f7046('0x6'),auth[_0x3f7046('0x7')](),controller['update']),router[_0x3f7046('0x4')](_0x3f7046('0x6'),auth[_0x3f7046('0x7')](),controller['destroy']),module[_0x3f7046('0x3')]=router; \ No newline at end of file +const a547_0x3fb4=['create','../../components/auth/service','post','express','destroy','exports','isAuthenticated','./smsApplication.controller','index','put','/:id','get','show','Router','update'];(function(_0x2d6aa5,_0x3fb40c){const _0xfd8eb5=function(_0x340585){while(--_0x340585){_0x2d6aa5['push'](_0x2d6aa5['shift']());}};_0xfd8eb5(++_0x3fb40c);}(a547_0x3fb4,0xbf));const a547_0xfd8e=function(_0x2d6aa5,_0x3fb40c){_0x2d6aa5=_0x2d6aa5-0x0;let _0xfd8eb5=a547_0x3fb4[_0x2d6aa5];return _0xfd8eb5;};const _0x99b678=a547_0xfd8e;'use strict';const express=require(_0x99b678('0x7')),router=express[_0x99b678('0x2')](),auth=require(_0x99b678('0x5')),controller=require(_0x99b678('0xb'));router['get']('/',auth[_0x99b678('0xa')](),controller[_0x99b678('0xc')]),router[_0x99b678('0x0')](_0x99b678('0xe'),auth['isAuthenticated'](),controller[_0x99b678('0x1')]),router[_0x99b678('0x6')]('/',auth[_0x99b678('0xa')](),controller[_0x99b678('0x4')]),router[_0x99b678('0xd')](_0x99b678('0xe'),auth[_0x99b678('0xa')](),controller[_0x99b678('0x3')]),router['delete']('/:id',auth[_0x99b678('0xa')](),controller[_0x99b678('0x8')]),module[_0x99b678('0x9')]=router; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.attributes.js b/server/api/smsApplication/smsApplication.attributes.js index b4d18e7..86dee6c 100644 --- a/server/api/smsApplication/smsApplication.attributes.js +++ b/server/api/smsApplication/smsApplication.attributes.js @@ -1 +1 @@ -const a548_0x4ef5=['INTEGER','TEXT','exports','STRING'];(function(_0x1233de,_0x4ef55a){const _0x506abd=function(_0x5e8d85){while(--_0x5e8d85){_0x1233de['push'](_0x1233de['shift']());}};_0x506abd(++_0x4ef55a);}(a548_0x4ef5,0x1c0));const a548_0x506a=function(_0x1233de,_0x4ef55a){_0x1233de=_0x1233de-0x0;let _0x506abd=a548_0x4ef5[_0x1233de];return _0x506abd;};const _0x24c748=a548_0x506a;'use strict';const Sequelize=require('sequelize');module[_0x24c748('0x2')]={'priority':{'type':Sequelize[_0x24c748('0x0')],'allowNull':![]},'app':{'type':Sequelize[_0x24c748('0x3')],'allowNull':![],'defaultValue':'noop'},'appdata':{'type':Sequelize[_0x24c748('0x1')]()},'description':{'type':Sequelize[_0x24c748('0x3')]},'interval':{'type':Sequelize[_0x24c748('0x3')],'defaultValue':'*,*,*,*'}}; \ No newline at end of file +const a548_0x22d0=['INTEGER','exports','sequelize','STRING','noop'];(function(_0x1a7481,_0x22d0fb){const _0x44b40b=function(_0x21963f){while(--_0x21963f){_0x1a7481['push'](_0x1a7481['shift']());}};_0x44b40b(++_0x22d0fb);}(a548_0x22d0,0x11b));const a548_0x44b4=function(_0x1a7481,_0x22d0fb){_0x1a7481=_0x1a7481-0x0;let _0x44b40b=a548_0x22d0[_0x1a7481];return _0x44b40b;};const _0x4c55de=a548_0x44b4;'use strict';const Sequelize=require(_0x4c55de('0x4'));module[_0x4c55de('0x3')]={'priority':{'type':Sequelize[_0x4c55de('0x2')],'allowNull':![]},'app':{'type':Sequelize[_0x4c55de('0x0')],'allowNull':![],'defaultValue':_0x4c55de('0x1')},'appdata':{'type':Sequelize['TEXT']()},'description':{'type':Sequelize[_0x4c55de('0x0')]},'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 3af57d4..1e4f278 100644 --- a/server/api/smsApplication/smsApplication.controller.js +++ b/server/api/smsApplication/smsApplication.controller.js @@ -1 +1 @@ -const a549_0x4345=['SmsApplication','sendStatus','../../components/parsers/qs','stack','merge','intersection','params','json','../../config/logger','body','attributes','sort','offset','error','rawAttributes','name','end','sequelize','send','index','findOne','undefined','filters','lodash','set','map','model','keys','count','like','include','catch','destroy','../../mysqldb','rows','update','fieldName','type','includeAll','nolimit','VIRTUAL','limit','length','create','fields','key','status','options','where','Content-Range','query','then'];(function(_0x4e4088,_0x434575){const _0x459ba8=function(_0x563340){while(--_0x563340){_0x4e4088['push'](_0x4e4088['shift']());}};_0x459ba8(++_0x434575);}(a549_0x4345,0xd8));const a549_0x459b=function(_0x4e4088,_0x434575){_0x4e4088=_0x4e4088-0x0;let _0x459ba8=a549_0x4345[_0x4e4088];return _0x459ba8;};const _0x3376c0=a549_0x459b;'use strict';const _=require(_0x3376c0('0xf')),qs=require(_0x3376c0('0x2e')),logger=require(_0x3376c0('0x0'))('api'),db=require(_0x3376c0('0x19'))['db'],{Op}=require(_0x3376c0('0x9'));function respondWithResult(_0x563340,_0x4e5a51){return _0x4e5a51=_0x4e5a51||0xc8,function(_0x40b6bf){const _0x2ccbbd=a549_0x459b;if(_0x40b6bf)return _0x563340[_0x2ccbbd('0x26')](_0x4e5a51)['json'](_0x40b6bf);};}function respondWithFilteredResult(_0x597a90,_0x4c47a0){return function(_0x5cbc70){const _0x1a1555=a549_0x459b;if(_0x5cbc70){const _0x95a10e=_0x5cbc70[_0x1a1555('0x14')],_0x45702b=_0x4c47a0[_0x1a1555('0x4')];let _0x411561=_0x4c47a0['offset']+_0x4c47a0[_0x1a1555('0x21')],_0x3bc833;return _0x411561>=_0x95a10e?(_0x411561=_0x95a10e,_0x3bc833=0xc8):_0x3bc833=0xce,_0x597a90[_0x1a1555('0x26')](_0x3bc833),_0x597a90[_0x1a1555('0x10')](_0x1a1555('0x29'),_0x45702b+'-'+_0x411561+'/'+_0x95a10e)[_0x1a1555('0x33')](_0x5cbc70);}return null;};}function saveUpdates(_0xdf1307){return function(_0x18533b){const _0x4ea3de=a549_0x459b;if(_0x18533b)return _0x18533b[_0x4ea3de('0x1b')](_0xdf1307)[_0x4ea3de('0x2b')](function(_0xfc82e8){return _0xfc82e8;});return null;};}function removeEntity(_0x2949d5){return function(_0x21b02a){const _0x34cd08=a549_0x459b;if(_0x21b02a)return _0x21b02a[_0x34cd08('0x18')]()[_0x34cd08('0x2b')](function(){const _0x603c5a=_0x34cd08;_0x2949d5[_0x603c5a('0x26')](0xcc)[_0x603c5a('0x8')]();});};}function handleEntityNotFound(_0x50ac24){return function(_0x1115c7){const _0x41de1e=a549_0x459b;return!_0x1115c7&&_0x50ac24[_0x41de1e('0x2d')](0x194),_0x1115c7;};}function handleError(_0x5332a6,_0x1b5bef){return _0x1b5bef=_0x1b5bef||0x1f4,function(_0x130339){const _0x3ffd34=a549_0x459b;logger[_0x3ffd34('0x5')](_0x130339[_0x3ffd34('0x2f')]),_0x130339[_0x3ffd34('0x7')]&&delete _0x130339['name'],_0x5332a6['status'](_0x1b5bef)[_0x3ffd34('0xa')](_0x130339);};}exports[_0x3376c0('0xb')]=function(_0x3d4828,_0x537b0e){const _0x32251f=_0x3376c0;let _0x523ed6={};const _0x585669={},_0x537acd={'count':0x0,'rows':[]},_0x4c563f=_[_0x32251f('0x11')](db[_0x32251f('0x2c')][_0x32251f('0x6')],function(_0x562519){const _0x6d1b72=_0x32251f;return{'name':_0x562519[_0x6d1b72('0x1c')],'type':_0x562519[_0x6d1b72('0x1d')][_0x6d1b72('0x25')]};});_0x585669[_0x32251f('0x12')]=_['map'](_0x4c563f,_0x32251f('0x7')),_0x585669[_0x32251f('0x2a')]=_['keys'](_0x3d4828['query']),_0x585669['filters']=_['intersection'](_0x585669[_0x32251f('0x12')],_0x585669[_0x32251f('0x2a')]),_0x523ed6[_0x32251f('0x2')]=_['intersection'](_0x585669[_0x32251f('0x12')],qs[_0x32251f('0x24')](_0x3d4828[_0x32251f('0x2a')][_0x32251f('0x24')])),_0x523ed6['attributes']=_0x523ed6['attributes'][_0x32251f('0x22')]?_0x523ed6['attributes']:_0x585669['model'];typeof _0x3d4828['query'][_0x32251f('0x1f')]===_0x32251f('0xd')&&(_0x523ed6['limit']=qs[_0x32251f('0x21')](_0x3d4828[_0x32251f('0x2a')][_0x32251f('0x21')]),_0x523ed6['offset']=qs[_0x32251f('0x4')](_0x3d4828['query'][_0x32251f('0x4')]));_0x523ed6['order']=qs['sort'](_0x3d4828[_0x32251f('0x2a')][_0x32251f('0x3')]),_0x523ed6[_0x32251f('0x28')]=qs[_0x32251f('0xe')](_['pick'](_0x3d4828[_0x32251f('0x2a')],_0x585669[_0x32251f('0xe')]),_0x4c563f);_0x3d4828[_0x32251f('0x2a')]['filter']&&(_0x523ed6['where']=_[_0x32251f('0x30')](_0x523ed6[_0x32251f('0x28')],{[Op['or']]:_[_0x32251f('0x11')](_0x4c563f,function(_0x4d5f21){const _0x25637d=_0x32251f;if(_0x4d5f21[_0x25637d('0x1d')]!==_0x25637d('0x20')){const _0x295091={};return _0x295091[_0x4d5f21['name']]={[Op[_0x25637d('0x15')]]:'%'+_0x3d4828[_0x25637d('0x2a')]['filter']+'%'},_0x295091;}})}));_0x523ed6=_[_0x32251f('0x30')]({},_0x523ed6,_0x3d4828[_0x32251f('0x27')]);const _0x261860={'where':_0x523ed6[_0x32251f('0x28')]};return db[_0x32251f('0x2c')][_0x32251f('0x14')](_0x261860)['then'](function(_0x1fb18f){const _0x30500f=_0x32251f;return _0x537acd[_0x30500f('0x14')]=_0x1fb18f,_0x3d4828[_0x30500f('0x2a')][_0x30500f('0x1e')]&&(_0x523ed6[_0x30500f('0x16')]=[{'all':!![]}]),db[_0x30500f('0x2c')]['findAll'](_0x523ed6);})['then'](function(_0x42a8c7){const _0x26130a=_0x32251f;return _0x537acd[_0x26130a('0x1a')]=_0x42a8c7,_0x537acd;})[_0x32251f('0x2b')](respondWithFilteredResult(_0x537b0e,_0x523ed6))[_0x32251f('0x17')](handleError(_0x537b0e,null));},exports['show']=function(_0x59d48d,_0x171136){const _0x120c1a=_0x3376c0;let _0x3b8d1e={'raw':!![],'where':{'id':_0x59d48d[_0x120c1a('0x32')]['id']}};const _0x41437f={};return _0x41437f['model']=_[_0x120c1a('0x13')](db[_0x120c1a('0x2c')][_0x120c1a('0x6')]),_0x41437f['query']=_[_0x120c1a('0x13')](_0x59d48d[_0x120c1a('0x2a')]),_0x41437f['filters']=_['intersection'](_0x41437f[_0x120c1a('0x12')],_0x41437f[_0x120c1a('0x2a')]),_0x3b8d1e[_0x120c1a('0x2')]=_[_0x120c1a('0x31')](_0x41437f[_0x120c1a('0x12')],qs['fields'](_0x59d48d[_0x120c1a('0x2a')][_0x120c1a('0x24')])),_0x3b8d1e[_0x120c1a('0x2')]=_0x3b8d1e[_0x120c1a('0x2')][_0x120c1a('0x22')]?_0x3b8d1e[_0x120c1a('0x2')]:_0x41437f['model'],_0x59d48d[_0x120c1a('0x2a')][_0x120c1a('0x1e')]&&(_0x3b8d1e['include']=[{'all':!![]}]),_0x3b8d1e=_[_0x120c1a('0x30')]({},_0x3b8d1e,_0x59d48d[_0x120c1a('0x27')]),db['SmsApplication'][_0x120c1a('0xc')](_0x3b8d1e)[_0x120c1a('0x2b')](handleEntityNotFound(_0x171136,null))['then'](respondWithResult(_0x171136,null))[_0x120c1a('0x17')](handleError(_0x171136,null));},exports[_0x3376c0('0x23')]=function(_0x17593a,_0x8167ae){const _0x2433e2=_0x3376c0;return db['SmsApplication']['create'](_0x17593a['body'],{})[_0x2433e2('0x2b')](respondWithResult(_0x8167ae,0xc9))[_0x2433e2('0x17')](handleError(_0x8167ae,null));},exports['update']=function(_0x4c4652,_0x4af628){const _0x353240=_0x3376c0;return _0x4c4652[_0x353240('0x1')]['id']&&delete _0x4c4652[_0x353240('0x1')]['id'],db[_0x353240('0x2c')][_0x353240('0xc')]({'where':{'id':_0x4c4652[_0x353240('0x32')]['id']}})[_0x353240('0x2b')](handleEntityNotFound(_0x4af628,null))[_0x353240('0x2b')](saveUpdates(_0x4c4652[_0x353240('0x1')],null))[_0x353240('0x2b')](respondWithResult(_0x4af628,null))['catch'](handleError(_0x4af628,null));},exports[_0x3376c0('0x18')]=function(_0x8a90c6,_0x174800){const _0x43cc59=_0x3376c0;return db[_0x43cc59('0x2c')]['findOne']({'where':{'id':_0x8a90c6[_0x43cc59('0x32')]['id']}})[_0x43cc59('0x2b')](handleEntityNotFound(_0x174800,null))[_0x43cc59('0x2b')](removeEntity(_0x174800,null))[_0x43cc59('0x17')](handleError(_0x174800,null));}; \ No newline at end of file +const a549_0x57a1=['findOne','rawAttributes','VIRTUAL','params','order','set','attributes','model','stack','key','body','index','nolimit','where','type','fields','include','query','includeAll','fieldName','filters','lodash','findAll','../../config/logger','keys','offset','show','name','create','error','filter','SmsApplication','end','then','status','sequelize','catch','send','merge','json','undefined','count','intersection','destroy','limit','api','map','../../mysqldb','length','update'];(function(_0x29e8a4,_0x57a1fb){const _0xe564af=function(_0x5c0e68){while(--_0x5c0e68){_0x29e8a4['push'](_0x29e8a4['shift']());}};_0xe564af(++_0x57a1fb);}(a549_0x57a1,0x15a));const a549_0xe564=function(_0x29e8a4,_0x57a1fb){_0x29e8a4=_0x29e8a4-0x0;let _0xe564af=a549_0x57a1[_0x29e8a4];return _0xe564af;};const _0x2d23bc=a549_0xe564;'use strict';const _=require(_0x2d23bc('0x19')),qs=require('../../components/parsers/qs'),logger=require(_0x2d23bc('0x1b'))(_0x2d23bc('0x31')),db=require(_0x2d23bc('0x1'))['db'],{Op}=require(_0x2d23bc('0x27'));function respondWithResult(_0x5c0e68,_0x134aca){return _0x134aca=_0x134aca||0xc8,function(_0x537f8e){const _0x5a00fd=a549_0xe564;if(_0x537f8e)return _0x5c0e68[_0x5a00fd('0x26')](_0x134aca)[_0x5a00fd('0x2b')](_0x537f8e);};}function respondWithFilteredResult(_0x191f6e,_0x55e06f){return function(_0x9f2a4a){const _0x14b298=a549_0xe564;if(_0x9f2a4a){const _0x1f1912=_0x9f2a4a[_0x14b298('0x2d')],_0x5919c9=_0x55e06f[_0x14b298('0x1d')];let _0x2f19d9=_0x55e06f['offset']+_0x55e06f[_0x14b298('0x30')],_0xbd9ca5;return _0x2f19d9>=_0x1f1912?(_0x2f19d9=_0x1f1912,_0xbd9ca5=0xc8):_0xbd9ca5=0xce,_0x191f6e[_0x14b298('0x26')](_0xbd9ca5),_0x191f6e[_0x14b298('0x9')]('Content-Range',_0x5919c9+'-'+_0x2f19d9+'/'+_0x1f1912)[_0x14b298('0x2b')](_0x9f2a4a);}return null;};}function saveUpdates(_0xb114f7){return function(_0x5c9a2a){const _0x24edd8=a549_0xe564;if(_0x5c9a2a)return _0x5c9a2a[_0x24edd8('0x3')](_0xb114f7)[_0x24edd8('0x25')](function(_0x100818){return _0x100818;});return null;};}function removeEntity(_0x2fc2d8){return function(_0x19a89f){const _0x2ccad1=a549_0xe564;if(_0x19a89f)return _0x19a89f[_0x2ccad1('0x2f')]()[_0x2ccad1('0x25')](function(){const _0x16a137=_0x2ccad1;_0x2fc2d8[_0x16a137('0x26')](0xcc)[_0x16a137('0x24')]();});};}function handleEntityNotFound(_0x2087fc){return function(_0x129992){return!_0x129992&&_0x2087fc['sendStatus'](0x194),_0x129992;};}function handleError(_0x99e242,_0x241ba0){return _0x241ba0=_0x241ba0||0x1f4,function(_0x2b2566){const _0x26d25e=a549_0xe564;logger[_0x26d25e('0x21')](_0x2b2566[_0x26d25e('0xc')]),_0x2b2566[_0x26d25e('0x1f')]&&delete _0x2b2566['name'],_0x99e242[_0x26d25e('0x26')](_0x241ba0)[_0x26d25e('0x29')](_0x2b2566);};}exports[_0x2d23bc('0xf')]=function(_0x228f85,_0x3576ed){const _0x506ce5=_0x2d23bc;let _0x16afd={};const _0x2cd8f2={},_0x36a2c9={'count':0x0,'rows':[]},_0x12e1d0=_[_0x506ce5('0x0')](db[_0x506ce5('0x23')][_0x506ce5('0x5')],function(_0x21bfdf){const _0x38f2cf=_0x506ce5;return{'name':_0x21bfdf[_0x38f2cf('0x17')],'type':_0x21bfdf[_0x38f2cf('0x12')][_0x38f2cf('0xd')]};});_0x2cd8f2[_0x506ce5('0xb')]=_['map'](_0x12e1d0,_0x506ce5('0x1f')),_0x2cd8f2[_0x506ce5('0x15')]=_['keys'](_0x228f85['query']),_0x2cd8f2[_0x506ce5('0x18')]=_[_0x506ce5('0x2e')](_0x2cd8f2['model'],_0x2cd8f2[_0x506ce5('0x15')]),_0x16afd[_0x506ce5('0xa')]=_['intersection'](_0x2cd8f2[_0x506ce5('0xb')],qs[_0x506ce5('0x13')](_0x228f85[_0x506ce5('0x15')][_0x506ce5('0x13')])),_0x16afd[_0x506ce5('0xa')]=_0x16afd[_0x506ce5('0xa')][_0x506ce5('0x2')]?_0x16afd[_0x506ce5('0xa')]:_0x2cd8f2['model'];typeof _0x228f85['query'][_0x506ce5('0x10')]===_0x506ce5('0x2c')&&(_0x16afd[_0x506ce5('0x30')]=qs[_0x506ce5('0x30')](_0x228f85[_0x506ce5('0x15')][_0x506ce5('0x30')]),_0x16afd['offset']=qs[_0x506ce5('0x1d')](_0x228f85['query'][_0x506ce5('0x1d')]));_0x16afd[_0x506ce5('0x8')]=qs['sort'](_0x228f85[_0x506ce5('0x15')]['sort']),_0x16afd['where']=qs['filters'](_['pick'](_0x228f85['query'],_0x2cd8f2[_0x506ce5('0x18')]),_0x12e1d0);_0x228f85[_0x506ce5('0x15')]['filter']&&(_0x16afd[_0x506ce5('0x11')]=_['merge'](_0x16afd[_0x506ce5('0x11')],{[Op['or']]:_['map'](_0x12e1d0,function(_0x530034){const _0x276ddf=_0x506ce5;if(_0x530034[_0x276ddf('0x12')]!==_0x276ddf('0x6')){const _0x183667={};return _0x183667[_0x530034[_0x276ddf('0x1f')]]={[Op['like']]:'%'+_0x228f85[_0x276ddf('0x15')][_0x276ddf('0x22')]+'%'},_0x183667;}})}));_0x16afd=_[_0x506ce5('0x2a')]({},_0x16afd,_0x228f85['options']);const _0x9e461a={'where':_0x16afd[_0x506ce5('0x11')]};return db[_0x506ce5('0x23')][_0x506ce5('0x2d')](_0x9e461a)[_0x506ce5('0x25')](function(_0x122411){const _0xef8f68=_0x506ce5;return _0x36a2c9[_0xef8f68('0x2d')]=_0x122411,_0x228f85[_0xef8f68('0x15')][_0xef8f68('0x16')]&&(_0x16afd[_0xef8f68('0x14')]=[{'all':!![]}]),db[_0xef8f68('0x23')][_0xef8f68('0x1a')](_0x16afd);})[_0x506ce5('0x25')](function(_0xbee112){return _0x36a2c9['rows']=_0xbee112,_0x36a2c9;})['then'](respondWithFilteredResult(_0x3576ed,_0x16afd))[_0x506ce5('0x28')](handleError(_0x3576ed,null));},exports[_0x2d23bc('0x1e')]=function(_0x55ab59,_0x3e378f){const _0x3facb5=_0x2d23bc;let _0x2973c4={'raw':!![],'where':{'id':_0x55ab59[_0x3facb5('0x7')]['id']}};const _0x2b8333={};return _0x2b8333['model']=_[_0x3facb5('0x1c')](db[_0x3facb5('0x23')]['rawAttributes']),_0x2b8333[_0x3facb5('0x15')]=_['keys'](_0x55ab59[_0x3facb5('0x15')]),_0x2b8333['filters']=_['intersection'](_0x2b8333[_0x3facb5('0xb')],_0x2b8333[_0x3facb5('0x15')]),_0x2973c4[_0x3facb5('0xa')]=_[_0x3facb5('0x2e')](_0x2b8333[_0x3facb5('0xb')],qs[_0x3facb5('0x13')](_0x55ab59[_0x3facb5('0x15')][_0x3facb5('0x13')])),_0x2973c4[_0x3facb5('0xa')]=_0x2973c4[_0x3facb5('0xa')]['length']?_0x2973c4[_0x3facb5('0xa')]:_0x2b8333[_0x3facb5('0xb')],_0x55ab59['query'][_0x3facb5('0x16')]&&(_0x2973c4[_0x3facb5('0x14')]=[{'all':!![]}]),_0x2973c4=_[_0x3facb5('0x2a')]({},_0x2973c4,_0x55ab59['options']),db[_0x3facb5('0x23')][_0x3facb5('0x4')](_0x2973c4)[_0x3facb5('0x25')](handleEntityNotFound(_0x3e378f,null))[_0x3facb5('0x25')](respondWithResult(_0x3e378f,null))[_0x3facb5('0x28')](handleError(_0x3e378f,null));},exports['create']=function(_0x404359,_0x421820){const _0x325e3f=_0x2d23bc;return db[_0x325e3f('0x23')][_0x325e3f('0x20')](_0x404359[_0x325e3f('0xe')],{})[_0x325e3f('0x25')](respondWithResult(_0x421820,0xc9))['catch'](handleError(_0x421820,null));},exports[_0x2d23bc('0x3')]=function(_0xbd2c0a,_0x5b4fc9){const _0x588104=_0x2d23bc;return _0xbd2c0a[_0x588104('0xe')]['id']&&delete _0xbd2c0a[_0x588104('0xe')]['id'],db[_0x588104('0x23')][_0x588104('0x4')]({'where':{'id':_0xbd2c0a['params']['id']}})[_0x588104('0x25')](handleEntityNotFound(_0x5b4fc9,null))['then'](saveUpdates(_0xbd2c0a['body'],null))[_0x588104('0x25')](respondWithResult(_0x5b4fc9,null))[_0x588104('0x28')](handleError(_0x5b4fc9,null));},exports['destroy']=function(_0x53461b,_0x3322c5){const _0x2dae49=_0x2d23bc;return db[_0x2dae49('0x23')]['findOne']({'where':{'id':_0x53461b[_0x2dae49('0x7')]['id']}})[_0x2dae49('0x25')](handleEntityNotFound(_0x3322c5,null))[_0x2dae49('0x25')](removeEntity(_0x3322c5,null))['catch'](handleError(_0x3322c5,null));}; \ No newline at end of file diff --git a/server/api/smsApplication/smsApplication.model.js b/server/api/smsApplication/smsApplication.model.js index 0ea42b2..c286e39 100644 --- a/server/api/smsApplication/smsApplication.model.js +++ b/server/api/smsApplication/smsApplication.model.js @@ -1 +1 @@ -const a550_0xcf0c=['utf8mb4_unicode_ci','sms_applications','./smsApplication.attributes','exports','utf8mb4'];(function(_0x5f588b,_0xcf0ca1){const _0x2ca542=function(_0x3a9c16){while(--_0x3a9c16){_0x5f588b['push'](_0x5f588b['shift']());}};_0x2ca542(++_0xcf0ca1);}(a550_0xcf0c,0x1da));const a550_0x2ca5=function(_0x5f588b,_0xcf0ca1){_0x5f588b=_0x5f588b-0x0;let _0x2ca542=a550_0xcf0c[_0x5f588b];return _0x2ca542;};const _0x4f81c9=a550_0x2ca5;'use strict';const attributes=require(_0x4f81c9('0x3'));module[_0x4f81c9('0x4')]=function(_0x3a9c16){const _0x54501c=_0x4f81c9,_0x290e24=_0x3a9c16['define']('SmsApplication',attributes,{'tableName':_0x54501c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x54501c('0x0'),'collate':_0x54501c('0x1')});return _0x290e24;}; \ No newline at end of file +const a550_0x355a=['exports','SmsApplication','define','./smsApplication.attributes','utf8mb4_unicode_ci','utf8mb4','sms_applications'];(function(_0x5e32a6,_0x355ab7){const _0x4cff10=function(_0xb258a8){while(--_0xb258a8){_0x5e32a6['push'](_0x5e32a6['shift']());}};_0x4cff10(++_0x355ab7);}(a550_0x355a,0xf2));const a550_0x4cff=function(_0x5e32a6,_0x355ab7){_0x5e32a6=_0x5e32a6-0x0;let _0x4cff10=a550_0x355a[_0x5e32a6];return _0x4cff10;};const _0x55c1f7=a550_0x4cff;'use strict';const attributes=require(_0x55c1f7('0x6'));module[_0x55c1f7('0x3')]=function(_0xb258a8){const _0x460aa8=_0x55c1f7,_0x1aa8f6=_0xb258a8[_0x460aa8('0x5')](_0x460aa8('0x4'),attributes,{'tableName':_0x460aa8('0x2'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x460aa8('0x1'),'collate':_0x460aa8('0x0')});return _0x1aa8f6;}; \ No newline at end of file diff --git a/server/api/smsInteraction/index.js b/server/api/smsInteraction/index.js index 21b70f6..4404b05 100644 --- a/server/api/smsInteraction/index.js +++ b/server/api/smsInteraction/index.js @@ -1 +1 @@ -const a551_0x2215=['removeTags','getMessages','get','addMessage','tracked','addTags','destroy','/:id/tags','./smsInteraction.controller','post','delete','index','describe','download','/:id/messages','smsinteraction:addtags','express','/:id','/:id/download','put','sms','isAuthenticated','show','smsinteraction:update','/describe','smsinteraction:destroy','update'];(function(_0x17bbaf,_0x221591){const _0x2c10e7=function(_0xac28b5){while(--_0xac28b5){_0x17bbaf['push'](_0x17bbaf['shift']());}};_0x2c10e7(++_0x221591);}(a551_0x2215,0x6c));const a551_0x2c10=function(_0x17bbaf,_0x221591){_0x17bbaf=_0x17bbaf-0x0;let _0x2c10e7=a551_0x2215[_0x17bbaf];return _0x2c10e7;};const _0x20f6c2=a551_0x2c10;'use strict';const express=require(_0x20f6c2('0x10')),router=express['Router'](),auth=require('../../components/auth/service'),interaction=require('../../components/interaction/service'),controller=require(_0x20f6c2('0x8'));router[_0x20f6c2('0x2')]('/',auth['isAuthenticated'](),controller[_0x20f6c2('0xb')]),router[_0x20f6c2('0x2')](_0x20f6c2('0x18'),auth[_0x20f6c2('0x15')](),controller[_0x20f6c2('0xc')]),router[_0x20f6c2('0x2')](_0x20f6c2('0x11'),auth[_0x20f6c2('0x15')](),controller[_0x20f6c2('0x16')]),router[_0x20f6c2('0x2')]('/:id/messages',auth[_0x20f6c2('0x15')](),controller[_0x20f6c2('0x1')]),router[_0x20f6c2('0x2')](_0x20f6c2('0x12'),auth['isAuthenticated'](),controller[_0x20f6c2('0xd')]),router[_0x20f6c2('0x9')]('/',auth[_0x20f6c2('0x15')](),controller['create']),router[_0x20f6c2('0x9')](_0x20f6c2('0xe'),auth[_0x20f6c2('0x15')](),controller[_0x20f6c2('0x3')]),router[_0x20f6c2('0x9')](_0x20f6c2('0x7'),auth[_0x20f6c2('0x15')](),interaction[_0x20f6c2('0x4')](_0x20f6c2('0x14'),_0x20f6c2('0xf')),controller[_0x20f6c2('0x5')]),router[_0x20f6c2('0x13')](_0x20f6c2('0x11'),auth[_0x20f6c2('0x15')](),interaction['tracked'](_0x20f6c2('0x14'),_0x20f6c2('0x17')),controller[_0x20f6c2('0x1a')]),router[_0x20f6c2('0xa')](_0x20f6c2('0x11'),auth[_0x20f6c2('0x15')](),interaction[_0x20f6c2('0x4')](_0x20f6c2('0x14'),_0x20f6c2('0x19')),controller[_0x20f6c2('0x6')]),router[_0x20f6c2('0xa')](_0x20f6c2('0x7'),auth[_0x20f6c2('0x15')](),controller[_0x20f6c2('0x0')]),module['exports']=router; \ No newline at end of file +const a551_0x154a=['/:id/download','express','smsinteraction:addtags','create','update','./smsInteraction.controller','addMessage','/:id','destroy','Router','show','sms','isAuthenticated','get','delete','tracked','/describe','post','/:id/messages','getMessages','addTags','index','removeTags','download','exports','smsinteraction:update'];(function(_0x9b9fbf,_0x154a2c){const _0x58cb94=function(_0x352fe1){while(--_0x352fe1){_0x9b9fbf['push'](_0x9b9fbf['shift']());}};_0x58cb94(++_0x154a2c);}(a551_0x154a,0xb6));const a551_0x58cb=function(_0x9b9fbf,_0x154a2c){_0x9b9fbf=_0x9b9fbf-0x0;let _0x58cb94=a551_0x154a[_0x9b9fbf];return _0x58cb94;};const _0x271083=a551_0x58cb;'use strict';const express=require(_0x271083('0x1')),router=express[_0x271083('0x9')](),auth=require('../../components/auth/service'),interaction=require('../../components/interaction/service'),controller=require(_0x271083('0x5'));router[_0x271083('0xd')]('/',auth[_0x271083('0xc')](),controller[_0x271083('0x15')]),router[_0x271083('0xd')](_0x271083('0x10'),auth['isAuthenticated'](),controller['describe']),router[_0x271083('0xd')](_0x271083('0x7'),auth[_0x271083('0xc')](),controller[_0x271083('0xa')]),router[_0x271083('0xd')](_0x271083('0x12'),auth[_0x271083('0xc')](),controller[_0x271083('0x13')]),router['get'](_0x271083('0x0'),auth[_0x271083('0xc')](),controller[_0x271083('0x17')]),router[_0x271083('0x11')]('/',auth[_0x271083('0xc')](),controller[_0x271083('0x3')]),router[_0x271083('0x11')](_0x271083('0x12'),auth[_0x271083('0xc')](),controller[_0x271083('0x6')]),router[_0x271083('0x11')]('/:id/tags',auth[_0x271083('0xc')](),interaction['tracked'](_0x271083('0xb'),_0x271083('0x2')),controller[_0x271083('0x14')]),router['put'](_0x271083('0x7'),auth['isAuthenticated'](),interaction[_0x271083('0xf')](_0x271083('0xb'),_0x271083('0x19')),controller[_0x271083('0x4')]),router[_0x271083('0xe')](_0x271083('0x7'),auth[_0x271083('0xc')](),interaction[_0x271083('0xf')](_0x271083('0xb'),'smsinteraction:destroy'),controller[_0x271083('0x8')]),router[_0x271083('0xe')]('/:id/tags',auth['isAuthenticated'](),controller[_0x271083('0x16')]),module[_0x271083('0x18')]=router; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.attributes.js b/server/api/smsInteraction/smsInteraction.attributes.js index 5c6026c..4b7914c 100644 --- a/server/api/smsInteraction/smsInteraction.attributes.js +++ b/server/api/smsInteraction/smsInteraction.attributes.js @@ -1 +1 @@ -const a552_0x4c12=['exports','ENUM','DATE','STRING','out','sequelize','BOOLEAN'];(function(_0x37b6fc,_0x4c12f7){const _0x450dcd=function(_0x4473bd){while(--_0x4473bd){_0x37b6fc['push'](_0x37b6fc['shift']());}};_0x450dcd(++_0x4c12f7);}(a552_0x4c12,0x95));const a552_0x450d=function(_0x37b6fc,_0x4c12f7){_0x37b6fc=_0x37b6fc-0x0;let _0x450dcd=a552_0x4c12[_0x37b6fc];return _0x450dcd;};const _0x595ef4=a552_0x450d;'use strict';const Sequelize=require(_0x595ef4('0x3'));module[_0x595ef4('0x5')]={'closed':{'type':Sequelize[_0x595ef4('0x4')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x595ef4('0x0')]},'disposition':{'type':Sequelize[_0x595ef4('0x1')]},'secondDisposition':{'type':Sequelize[_0x595ef4('0x1')]},'thirdDisposition':{'type':Sequelize[_0x595ef4('0x1')]},'note':{'type':Sequelize[_0x595ef4('0x1')]},'phone':{'type':Sequelize[_0x595ef4('0x1')]},'read1stAt':{'type':Sequelize[_0x595ef4('0x0')]},'firstMsgDirection':{'type':Sequelize[_0x595ef4('0x6')]('in',_0x595ef4('0x2')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x595ef4('0x0')]},'lastMsgDirection':{'type':Sequelize[_0x595ef4('0x6')]('in',_0x595ef4('0x2')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a552_0x5c51=['sequelize','exports','out','STRING','ENUM'];(function(_0x16fe91,_0x5c51e1){const _0x5b7366=function(_0x27dec6){while(--_0x27dec6){_0x16fe91['push'](_0x16fe91['shift']());}};_0x5b7366(++_0x5c51e1);}(a552_0x5c51,0xea));const a552_0x5b73=function(_0x16fe91,_0x5c51e1){_0x16fe91=_0x16fe91-0x0;let _0x5b7366=a552_0x5c51[_0x16fe91];return _0x5b7366;};const _0x653865=a552_0x5b73;'use strict';const Sequelize=require(_0x653865('0x1'));module[_0x653865('0x2')]={'closed':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'closedAt':{'type':Sequelize['DATE']},'disposition':{'type':Sequelize[_0x653865('0x4')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x653865('0x4')]},'note':{'type':Sequelize[_0x653865('0x4')]},'phone':{'type':Sequelize[_0x653865('0x4')]},'read1stAt':{'type':Sequelize['DATE']},'firstMsgDirection':{'type':Sequelize[_0x653865('0x0')]('in',_0x653865('0x3')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize['DATE']},'lastMsgDirection':{'type':Sequelize['ENUM']('in',_0x653865('0x3')),'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 4e8cc41..3ce3e71 100644 --- a/server/api/smsInteraction/smsInteraction.controller.js +++ b/server/api/smsInteraction/smsInteraction.controller.js @@ -1 +1 @@ -const a553_0x42fd=['limit','text','Account.key','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','search','sms_interactions','isArray','util','it.SmsInteractionId\x20=\x20i.id','concat','undefined','u.id\x20=\x20ui.UserId','resolve','root','type','zip-dir','Contact.email','mkdirSync','select','log','create','direction','having','renderFile','compact','sendStatus','lodash','index','null','closedAt','`unreadMessages`\x20>\x200','group','read','transcript-%d-%s.zip','me.SmsInteractionId\x20=\x20i.id','SmsInteractionId','TagIds','tmp','Tags','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','merge','toFile','SmsAccount','../../config/logger','c.firstName','removeTags','out','get','sms_interaction_has_tags','like','getFullTextValue','emit','json','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','offset','show','40px','left_join','journey','end','u.id','`unreadMessages`\x20=\x200','SmsMessage','$gte','parse','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','sequelize','api','User','o.fullname','Owner.internal','body','ui.SmsInteractionId','ContactId','t.id\x20=\x20it.TagId','format','buildExpression','model','c.fax','%s\x20#%d','tag','findOne','rows','push','value','count','include','user','unlinkSync','UserId','../../components/parsers/qs','keys','toString','\x20IS\x20NULL','SmsAccountId','o.id\x20=\x20i.UserId','YYYY-MM-DD','keyBy','start','groupBy','fieldName','`\x20=\x200','replace','i.phone\x20LIKE\x20?','setTags','isEmpty','i.SmsAccountId\x20IS\x20NULL','ejs','c.email','unreadMessages','$lte','server','Contact','download','sms_accounts','nolimit','key','conditions','filter','createdAt','options','CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','split','query','$substring','describe','length','err','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','Sms','t.id\x20IN\x20?','../../mysqldb','then','omit','fields','findAll','rimraf','Contact.mobile','unix','10px','join','some','\x27\x27\x27\x27','smsInteractionTags:save','where','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','sms_messages','color','set','SmsInteraction','i.id','order','\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','tools_tags','from','a.mandatoryDisposition','Account','includeAll','a.key','name','isNumeric','ids','`\x20>\x200','field','status','GROUP_CONCAT(DISTINCT\x20t.id)','Messages','update','30px','../../components/parsers/advancedSearch','forEach','System','squel','path','filters','Owner.fullname','params','c.lastName','Tag','intersection','expr','downloadInteraction.html','Owner','c.phone','a.id\x20=\x20i.SmsAccountId','i.SmsAccountId\x20IN\x20?','\x20=\x20?','addMessage','find','destroy','error','QueryTypes','firstName','cm_contacts','html-pdf','YYYY-MM-DD\x20HH:mm:ss','fullname','catch','secret','sort','map','Contact.fax','gte','clone','lastName','pick','operator','files','user_has_sms_interactions','attributes','c.mobile'];(function(_0x5da53d,_0x42fd7e){const _0x1025e0=function(_0x53e26c){while(--_0x53e26c){_0x5da53d['push'](_0x5da53d['shift']());}};_0x1025e0(++_0x42fd7e);}(a553_0x42fd,0x190));const a553_0x1025=function(_0x5da53d,_0x42fd7e){_0x5da53d=_0x5da53d-0x0;let _0x1025e0=a553_0x42fd[_0x5da53d];return _0x1025e0;};const _0x1c65e4=a553_0x1025;'use strict';const pdf=require(_0x1c65e4('0x7')),rimraf=require(_0x1c65e4('0xa0')),zipdir=require(_0x1c65e4('0x27')),moment=require('moment'),util=require(_0x1c65e4('0x1f')),path=require(_0x1c65e4('0xc6')),ejs=require(_0x1c65e4('0x83')),fs=require('fs'),_=require(_0x1c65e4('0x32')),squel=require(_0x1c65e4('0xc5')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x1c65e4('0x72')),as=require(_0x1c65e4('0xc2')),logger=require(_0x1c65e4('0x43'))(_0x1c65e4('0x5b')),config=require('../../config/environment'),db=require(_0x1c65e4('0x9b'))['db'],{Op}=require(_0x1c65e4('0x5a'));require('./smsInteraction.socket')['register'](socket);function respondWithStatusCode(_0x53e26c,_0x5ba07f){return _0x5ba07f=_0x5ba07f||0xcc,function(_0x3cbced){const _0x2069be=a553_0x1025;if(_0x3cbced)return _0x53e26c['sendStatus'](_0x5ba07f);return _0x53e26c[_0x2069be('0xbd')](_0x5ba07f)[_0x2069be('0x53')]();};}function respondWithResult(_0x2299db,_0xcb0856){return _0xcb0856=_0xcb0856||0xc8,function(_0x4637ff){const _0x5a4f8e=a553_0x1025;if(_0x4637ff)return _0x2299db['status'](_0xcb0856)[_0x5a4f8e('0x4c')](_0x4637ff);};}function respondWithFilteredResult(_0x3d8397,_0x34200a){return function(_0x27f284){const _0xad90d=a553_0x1025;if(_0x27f284){const _0x4437d8=_0x27f284[_0xad90d('0x6d')],_0x1654c1=_0x34200a[_0xad90d('0x4e')];let _0x437a96=_0x34200a[_0xad90d('0x4e')]+_0x34200a['limit'],_0x4d1c20;return _0x437a96>=_0x4437d8?(_0x437a96=_0x4437d8,_0x4d1c20=0xc8):_0x4d1c20=0xce,_0x3d8397[_0xad90d('0xbd')](_0x4d1c20),_0x3d8397[_0xad90d('0xac')]('Content-Range',_0x1654c1+'-'+_0x437a96+'/'+_0x4437d8)[_0xad90d('0x4c')](_0x27f284);}return null;};}function saveUpdates(_0x2fda98){return function(_0x5cdde5){const _0x49f0a0=a553_0x1025;if(_0x5cdde5)return _0x5cdde5[_0x49f0a0('0xc0')](_0x2fda98)[_0x49f0a0('0x9c')](function(_0x2dc736){return _0x2dc736;});return null;};}function removeEntity(_0x1b21bb){return function(_0x3cf516){const _0x2f6f3e=a553_0x1025;if(_0x3cf516)return _0x3cf516[_0x2f6f3e('0x2')]()[_0x2f6f3e('0x9c')](function(){const _0x28f22b=_0x2f6f3e;_0x1b21bb[_0x28f22b('0xbd')](0xcc)[_0x28f22b('0x53')]();});};}function handleEntityNotFound(_0x595443){return function(_0x24e558){const _0x4ee015=a553_0x1025;return!_0x24e558&&_0x595443[_0x4ee015('0x31')](0x194),_0x24e558;};}function handleError(_0x2b681d,_0xcdf0d0){return _0xcdf0d0=_0xcdf0d0||0x1f4,function(_0x10d794){const _0x565994=a553_0x1025;logger[_0x565994('0x3')](_0x10d794['stack']),_0x10d794[_0x565994('0xb8')]&&delete _0x10d794[_0x565994('0xb8')],_0x2b681d[_0x565994('0xbd')](_0xcdf0d0)['send'](_0x10d794);};}function getInteractionUsers(_0x4cebcf,_0x4a8611){return new Promise(function(_0x205b70,_0x3a765f){const _0x5ccc7a=a553_0x1025;try{_0x4a8611[_0x4cebcf['id']]&&(_0x4cebcf['Users']=_[_0x5ccc7a('0xd')](_0x4a8611[_0x4cebcf['id']],function(_0x586ade){const _0x7f1821=_0x5ccc7a;return{'id':_0x586ade['id'],'fullname':_0x586ade[_0x7f1821('0x9')]};}));}catch(_0x16f884){_0x3a765f(_0x16f884);}_0x205b70(_0x4cebcf);});}function getInteractionTags(_0x58c7b2,_0x5424d2){return new Promise(function(_0x145b05,_0x209a2a){const _0x287801=a553_0x1025;try{_0x58c7b2[_0x287801('0x3c')]&&(_0x58c7b2[_0x287801('0x3e')]=[],_0x58c7b2[_0x287801('0x3c')][_0x287801('0x92')](',')[_0x287801('0xc3')](function(_0x24af83){const _0x2e4a68=_0x287801;_0x58c7b2[_0x2e4a68('0x3e')][_0x2e4a68('0x6b')](_0x5424d2[_0x24af83]);})),delete _0x58c7b2[_0x287801('0x3c')];}catch(_0x48fe22){_0x209a2a(_0x48fe22);}_0x145b05(_0x58c7b2);});}function updateSmsInteraction(_0x29f6d2,_0x519ae8,_0x456c56){return new Promise(function(_0x49be7a,_0x25f3bb){const _0x10b846=a553_0x1025;return getInteractionUsers(_0x29f6d2,_0x456c56)[_0x10b846('0x9c')](function(_0x4ff432){return getInteractionTags(_0x4ff432,_0x519ae8);})[_0x10b846('0x9c')](function(_0x12e490){_0x49be7a(_0x12e490);})[_0x10b846('0xa')](function(_0xb14fa2){_0x25f3bb(_0xb14fa2);});});}exports[_0x1c65e4('0x33')]=function(_0x56ba65,_0x1a5ff5){const _0x511652=_0x1c65e4,_0x54aaeb={},_0x49e947={},_0xb7b2c={'count':0x0,'rows':[]},_0x988a11=_[_0x511652('0xd')](db[_0x511652('0xad')]['rawAttributes'],function(_0x50e3cb){const _0x4b7678=_0x511652;return{'name':_0x50e3cb[_0x4b7678('0x7c')],'type':_0x50e3cb[_0x4b7678('0x26')][_0x4b7678('0x8c')]};});_0x49e947['model']=_[_0x511652('0xd')](_0x988a11,'name'),_0x49e947[_0x511652('0x93')]=_[_0x511652('0x73')](_0x56ba65[_0x511652('0x93')]),_0x49e947[_0x511652('0xc7')]=_[_0x511652('0xcc')](_0x49e947[_0x511652('0x65')],_0x49e947['query']),_0x54aaeb[_0x511652('0x16')]=_[_0x511652('0xcc')](_0x49e947[_0x511652('0x65')],qs[_0x511652('0x9e')](_0x56ba65[_0x511652('0x93')][_0x511652('0x9e')])),_0x54aaeb[_0x511652('0x16')]=_0x54aaeb[_0x511652('0x16')][_0x511652('0x96')]?_0x54aaeb[_0x511652('0x16')]:_0x49e947['model'];typeof _0x56ba65[_0x511652('0x93')][_0x511652('0x8b')]===_0x511652('0x22')&&(_0x54aaeb[_0x511652('0x18')]=qs[_0x511652('0x18')](_0x56ba65[_0x511652('0x93')][_0x511652('0x18')]),_0x54aaeb['offset']=qs[_0x511652('0x4e')](_0x56ba65[_0x511652('0x93')][_0x511652('0x4e')]));_0x54aaeb[_0x511652('0xaf')]=qs['sort'](_0x56ba65[_0x511652('0x93')]['sort']),_0x54aaeb[_0x511652('0xa8')]=qs[_0x511652('0xc7')](_['pick'](_0x56ba65[_0x511652('0x93')],_0x49e947['filters']),_0x988a11);let _0x4b2f0e=[];const _0x3d90cd=squel['select']()[_0x511652('0xbc')]('id')['field'](_0x511652('0xb8'))[_0x511652('0xbc')](_0x511652('0xab'))[_0x511652('0xb3')](_0x511652('0xb2')),_0x39e18c=squel[_0x511652('0x2a')]()[_0x511652('0xbc')](_0x511652('0x54'))[_0x511652('0xbc')]('u.fullname')[_0x511652('0xbc')](_0x511652('0x60'))[_0x511652('0xb3')](_0x511652('0x15'),'ui')[_0x511652('0x51')]('users','u',_0x511652('0x23')),_0x537da8=squel[_0x511652('0x2a')]()[_0x511652('0xb3')](_0x511652('0x1d'),'i')[_0x511652('0x51')](_0x511652('0x6'),'c',_0x511652('0x3f'))[_0x511652('0x51')]('users','o',_0x511652('0x77'))[_0x511652('0x51')](_0x511652('0x8a'),'a',_0x511652('0xd1'))[_0x511652('0x51')](_0x511652('0xaa'),'me',_0x511652('0x3a'))[_0x511652('0x51')](_0x511652('0x48'),'it',_0x511652('0x20'))[_0x511652('0x51')](_0x511652('0xb2'),'t',_0x511652('0x62')),_0x4058f3=squel[_0x511652('0xcd')]();let _0x3aeb09=[];const _0x527efa=squel[_0x511652('0xcd')]();let _0x578158;if(_0x56ba65[_0x511652('0x93')]['search']){_0x578158=as['parseSearch'](_0x56ba65[_0x511652('0x93')][_0x511652('0x1c')]);const _0x491482=_0x578158['sqlOperator'];for(let _0x147350=0x0;_0x147350<_0x578158[_0x511652('0x8d')][_0x511652('0x96')];_0x147350++){const _0x32cc6a=_0x578158[_0x511652('0x8d')][_0x147350],_0x2761d1='i';let _0x3d2e2d,_0x78da9e=_['find'](_0x988a11,[_0x511652('0xb8'),_0x32cc6a[_0x511652('0xbc')]]);if(!_0x78da9e)switch(_0x32cc6a[_0x511652('0xbc')]){case _0x511652('0x85'):_0x32cc6a[_0x511652('0x6c')]==0x1?_0x537da8[_0x511652('0x2e')]('`'+_0x32cc6a[_0x511652('0xbc')]+_0x511652('0x7d')):_0x537da8[_0x511652('0x2e')]('`'+_0x32cc6a[_0x511652('0xbc')]+_0x511652('0xbb'));break;case'Contact':if(_0x32cc6a['operator']==='$substring'){if(_0x32cc6a['value'][_0x511652('0x92')]('\x20')[_0x511652('0x96')]>0x1)_0x4058f3[_0x491482](_0x511652('0xa9'),qs[_0x511652('0x4a')](_0x32cc6a[_0x511652('0x6c')]),null);else{const _0x2bc1ec='%'+_0x32cc6a[_0x511652('0x6c')]+'%';_0x4058f3[_0x491482]('c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?',_0x2bc1ec,_0x2bc1ec,_0x2bc1ec);}}else _0x78da9e=_[_0x511652('0x1')](_0x988a11,[_0x511652('0xb8'),_0x511652('0x61')]),_0x32cc6a[_0x511652('0xbc')]=_0x511652('0x61'),_0x3d2e2d=as['buildExpression'](_0x2761d1,_0x78da9e[_0x511652('0x26')],_0x32cc6a),_0x4058f3[_0x491482](_0x3d2e2d[_0x511652('0x19')],_0x3d2e2d[_0x511652('0x6c')][_0x511652('0x7a')],_0x3d2e2d[_0x511652('0x6c')][_0x511652('0x53')]);break;case _0x511652('0xcb'):{const _0x318ca6=_0x32cc6a[_0x511652('0x6c')][_0x511652('0x92')](',')['map'](function(_0x3897f2){return Number(_0x3897f2);});_0x318ca6[_0x511652('0xc3')](function(_0xd71575){const _0x475ea1=_0x511652;_0x527efa['or'](_0x475ea1('0x4d'),'%,'+_0xd71575+',%');}),_0x3aeb09=_['union'](_0x3aeb09,_0x318ca6);}break;case'User':_0x32cc6a[_0x511652('0x13')]===_0x511652('0x94')?_0x4058f3[_0x491482](_0x511652('0x91'),'%'+_0x32cc6a[_0x511652('0x6c')]+'%',null):(_0x78da9e=_[_0x511652('0x1')](_0x988a11,[_0x511652('0xb8'),_0x511652('0x71')]),_0x32cc6a[_0x511652('0xbc')]=_0x511652('0x71'),_0x3d2e2d=as[_0x511652('0x64')](_0x2761d1,_0x78da9e[_0x511652('0x26')],_0x32cc6a),_0x4058f3[_0x491482](_0x3d2e2d[_0x511652('0x19')],_0x3d2e2d[_0x511652('0x6c')][_0x511652('0x7a')],_0x3d2e2d[_0x511652('0x6c')][_0x511652('0x53')]));break;case _0x511652('0x5f'):_0x3d2e2d=as[_0x511652('0x64')]('me',null,_0x32cc6a),_0x4058f3[_0x491482](_0x3d2e2d['text'],_0x3d2e2d[_0x511652('0x6c')][_0x511652('0x7a')],_0x3d2e2d['value'][_0x511652('0x53')]);break;}else _0x3d2e2d=as[_0x511652('0x64')](_0x2761d1,_0x78da9e[_0x511652('0x26')],_0x32cc6a),_0x4058f3[_0x491482](_0x3d2e2d[_0x511652('0x19')],_0x3d2e2d[_0x511652('0x6c')][_0x511652('0x7a')],_0x3d2e2d[_0x511652('0x6c')][_0x511652('0x53')]);}}else{const _0x2e0cff=_(_0x56ba65[_0x511652('0x93')])[_0x511652('0x73')]()[_0x511652('0xd')](function(_0x34ad51){const _0x5d5201=_0x511652;return _[_0x5d5201('0xa5')](_0x988a11,['name',_0x34ad51])?_0x34ad51:undefined;})[_0x511652('0x30')]()[_0x511652('0x6c')]();!_[_0x511652('0x81')](_0x2e0cff)&&_0x2e0cff[_0x511652('0xc3')](function(_0x16c083){const _0x3ffa5c=_0x511652;if(_0x16c083===_0x3ffa5c('0x76'))_0x537da8[_0x3ffa5c('0xa8')](_0x3ffa5c('0xd2'),[][_0x3ffa5c('0x21')](_0x56ba65[_0x3ffa5c('0x93')][_0x16c083]));else{if(_0x16c083===_0x3ffa5c('0x8f')){const _0x541ad2=JSON[_0x3ffa5c('0x58')](_0x56ba65[_0x3ffa5c('0x93')][_0x16c083])[_0x3ffa5c('0x57')],_0x2eb10c=JSON['parse'](_0x56ba65[_0x3ffa5c('0x93')][_0x16c083])[_0x3ffa5c('0x86')];_0x537da8[_0x3ffa5c('0xa8')](_0x3ffa5c('0x59'),_0x541ad2,_0x2eb10c);}else _0x56ba65[_0x3ffa5c('0x93')][_0x16c083]===_0x3ffa5c('0x34')?_0x537da8[_0x3ffa5c('0xa8')]('i.'+_0x16c083+_0x3ffa5c('0x75')):_0x537da8[_0x3ffa5c('0xa8')]('i.'+_0x16c083+_0x3ffa5c('0xd3'),_0x56ba65['query'][_0x16c083]);}});_0x56ba65[_0x511652('0x93')][_0x511652('0x38')]&&(_0x56ba65[_0x511652('0x93')][_0x511652('0x38')]==0x1?_0x537da8['having'](_0x511652('0x55')):_0x537da8[_0x511652('0x2e')](_0x511652('0x36')));_0x56ba65[_0x511652('0x93')][_0x511652('0x68')]&&(_0x3aeb09=_[_0x511652('0x1e')](_0x56ba65[_0x511652('0x93')][_0x511652('0x68')])?_0x56ba65[_0x511652('0x93')]['tag']:new Array(_0x56ba65['query']['tag']),_0x3aeb09[_0x511652('0xc3')](function(_0x5f17ea){const _0x497d90=_0x511652;_0x527efa['or'](_0x497d90('0x4d'),'%,'+_0x5f17ea+',%');}));if(_0x56ba65[_0x511652('0x93')][_0x511652('0x8e')]){const _0x488402=_0x56ba65[_0x511652('0x93')][_0x511652('0x8e')][_0x511652('0x7e')]('\x5c','\x5c\x5c')['replace']('\x27\x27',_0x511652('0xa6'));qs[_0x511652('0xb9')](_0x488402)?_0x4058f3['or']('i.id\x20LIKE\x20?',_0x488402+'%')['or'](_0x511652('0x7f'),_0x488402+'%'):_0x4058f3['or'](_0x511652('0x1b'),qs[_0x511652('0x4a')](_0x488402))['or'](_0x511652('0x98'),_0x488402+'%');}}_0x537da8[_0x511652('0xa8')](_0x4058f3),_0x537da8[_0x511652('0x37')](_0x511652('0xae'));let _0xb46643={'type':db[_0x511652('0xb1')][_0x511652('0x4')]['SELECT'],'raw':!![]};const _0x4067de=_0x537da8[_0x511652('0x10')]();_0x4067de['field'](_0x511652('0xae')),_0x4067de[_0x511652('0xbc')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x54aaeb[_0x511652('0xaf')]&&_0x54aaeb[_0x511652('0xaf')]['forEach'](function(_0x459914){_0x537da8['order']('i.'+_0x459914[0x0],_0x459914[0x1]==='DESC'?![]:!![]);}),!_[_0x511652('0x81')](_0x3aeb09)&&(_0x537da8[_0x511652('0x2e')](_0x527efa),_0x4067de[_0x511652('0xa8')](_0x511652('0x9a'),_0x3aeb09)),Promise[_0x511652('0x24')]()['then'](function(){const _0x53998d=_0x511652;if(!_0x578158){if(_0x56ba65[_0x53998d('0x93')][_0x53998d('0x76')]||_0x56ba65[_0x53998d('0x93')][_0x53998d('0x52')])return;_0x4067de['where']('i.SmsAccountId\x20IS\x20NOT\x20NULL'),_0x537da8['where']('i.SmsAccountId\x20IS\x20NOT\x20NULL');return;}return _0x56ba65[_0x53998d('0x6f')]['getSmsAccounts']({'attributes':['id'],'raw':!![]})[_0x53998d('0x9c')](function(_0x572b86){const _0x47c40b=_0x53998d;_[_0x47c40b('0x81')](_0x572b86)?(_0x4067de[_0x47c40b('0xa8')](_0x47c40b('0x82')),_0x537da8[_0x47c40b('0xa8')](_0x47c40b('0x82'))):(_0x4067de[_0x47c40b('0xa8')]('i.SmsAccountId\x20IN\x20?',_[_0x47c40b('0xd')](_0x572b86,'id')),_0x537da8['where'](_0x47c40b('0xd2'),_['map'](_0x572b86,'id')));});})['then'](function(){const _0x1f0b32=_0x511652;db['sequelize']['query'](_0x4067de[_0x1f0b32('0x74')](),_0xb46643)['then'](function(_0x2a56e6){const _0x4c2858=_0x1f0b32;_0xb7b2c['count']=_0x2a56e6[_0x4c2858('0x96')];if(_0xb7b2c[_0x4c2858('0x6d')]===0x0)return[];return db[_0x4c2858('0x5a')][_0x4c2858('0x93')](_0x3d90cd['toString'](),_0xb46643)['then'](function(_0xe85f9c){const _0x58a293=_0x4c2858;_0x4b2f0e=_[_0x58a293('0x79')](_0xe85f9c,'id'),_0xb46643=_[_0x58a293('0x40')](_0xb46643,{'model':db['SmsInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x56ba65['query'][_0x58a293('0x9e')]?_0x54aaeb[_0x58a293('0x16')][_0x58a293('0xc3')](function(_0x35e53f){const _0x53c2ac=_0x58a293;_0x537da8[_0x53c2ac('0xbc')]('i.'+_0x35e53f);}):(_0x537da8[_0x58a293('0xbc')]('SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','unreadMessages'),_0x537da8['field'](_0x58a293('0xb7'),_0x58a293('0x1a')),_0x537da8[_0x58a293('0xbc')](_0x58a293('0xb4'),'Account.mandatoryDisposition'),_0x537da8[_0x58a293('0xbc')]('i.*'),_0x537da8[_0x58a293('0xbc')](_0x58a293('0x44'),'Contact.firstName'),_0x537da8[_0x58a293('0xbc')](_0x58a293('0xca'),'Contact.lastName'),_0x537da8['field'](_0x58a293('0x84'),_0x58a293('0x28')),_0x537da8[_0x58a293('0xbc')](_0x58a293('0xd0'),'Contact.phone'),_0x537da8[_0x58a293('0xbc')](_0x58a293('0x17'),_0x58a293('0xa1')),_0x537da8[_0x58a293('0xbc')](_0x58a293('0x66'),_0x58a293('0xe')),_0x537da8[_0x58a293('0xbc')](_0x58a293('0x5d'),_0x58a293('0xc8')),_0x537da8['field']('o.internal',_0x58a293('0x5e')),_0x537da8[_0x58a293('0xbc')](_0x58a293('0xbe'),'TagIds'));if(_0x54aaeb[_0x58a293('0x18')])_0x537da8[_0x58a293('0x18')](_0x54aaeb[_0x58a293('0x18')]);if(_0x54aaeb[_0x58a293('0x4e')])_0x537da8[_0x58a293('0x4e')](_0x54aaeb[_0x58a293('0x4e')]);return db['sequelize'][_0x58a293('0x93')](_0x537da8[_0x58a293('0x74')](),_0xb46643);})[_0x4c2858('0x9c')](function(_0x1e18ec){const _0x467630=_0x4c2858;return _0x39e18c[_0x467630('0xa8')]('ui.SmsInteractionId\x20IN\x20?',_[_0x467630('0xd')](_0x1e18ec,'id')),db[_0x467630('0x5a')]['query'](_0x39e18c[_0x467630('0x74')](),_0xb46643)[_0x467630('0x9c')](function(_0x424671){const _0x2e297c=_0x467630,_0x10693e=_[_0x2e297c('0x7b')](_0x424671,_0x2e297c('0x3b')),_0x4233d3=[];return _0x1e18ec['forEach'](function(_0x525c17){const _0x222baa=_0x2e297c;_0x4233d3[_0x222baa('0x6b')](updateSmsInteraction(_0x525c17,_0x4b2f0e,_0x10693e));}),Promise['all'](_0x4233d3);});});})['then'](function(_0x5c8822){return _0xb7b2c['rows']=_0x5c8822,_0xb7b2c;})[_0x1f0b32('0x9c')](respondWithFilteredResult(_0x1a5ff5,_0x54aaeb));})[_0x511652('0xa')](handleError(_0x1a5ff5,null));},exports[_0x1c65e4('0x4f')]=function(_0x35220c,_0x5504b8){const _0x2d2f40=_0x1c65e4;let _0x2cb541={'raw':![],'where':{'id':_0x35220c[_0x2d2f40('0xc9')]['id']}};const _0x3622f4={};return _0x3622f4[_0x2d2f40('0x65')]=_[_0x2d2f40('0x73')](db['SmsInteraction']['rawAttributes']),_0x3622f4[_0x2d2f40('0x93')]=_['keys'](_0x35220c[_0x2d2f40('0x93')]),_0x3622f4[_0x2d2f40('0xc7')]=_[_0x2d2f40('0xcc')](_0x3622f4[_0x2d2f40('0x65')],_0x3622f4[_0x2d2f40('0x93')]),_0x2cb541['attributes']=_[_0x2d2f40('0xcc')](_0x3622f4[_0x2d2f40('0x65')],qs[_0x2d2f40('0x9e')](_0x35220c['query'][_0x2d2f40('0x9e')])),_0x2cb541[_0x2d2f40('0x16')]=_0x2cb541[_0x2d2f40('0x16')][_0x2d2f40('0x96')]?_0x2cb541[_0x2d2f40('0x16')]:_0x3622f4[_0x2d2f40('0x65')],_0x35220c['query'][_0x2d2f40('0xb6')]&&(_0x2cb541[_0x2d2f40('0x6e')]=[{'all':!![]}]),_0x2cb541=_['merge']({},_0x2cb541,_0x35220c[_0x2d2f40('0x90')]),db[_0x2d2f40('0xad')][_0x2d2f40('0x69')](_0x2cb541)[_0x2d2f40('0x9c')](handleEntityNotFound(_0x5504b8,null))[_0x2d2f40('0x9c')](respondWithResult(_0x5504b8,null))[_0x2d2f40('0xa')](handleError(_0x5504b8,null));},exports[_0x1c65e4('0x2c')]=function(_0x281446,_0x3a4edc){const _0x5a2a78=_0x1c65e4;return db[_0x5a2a78('0xad')][_0x5a2a78('0x2c')](_0x281446['body'],{})[_0x5a2a78('0x9c')](respondWithResult(_0x3a4edc,0xc9))[_0x5a2a78('0xa')](handleError(_0x3a4edc,null));},exports[_0x1c65e4('0xc0')]=function(_0x368ca4,_0x5847ff){const _0x364da7=_0x1c65e4;return _0x368ca4[_0x364da7('0x5f')]['id']&&delete _0x368ca4[_0x364da7('0x5f')]['id'],db[_0x364da7('0xad')][_0x364da7('0x69')]({'where':{'id':_0x368ca4[_0x364da7('0xc9')]['id']}})[_0x364da7('0x9c')](handleEntityNotFound(_0x5847ff,null))['then'](saveUpdates(_0x368ca4['body'],null))[_0x364da7('0x9c')](respondWithResult(_0x5847ff,null))[_0x364da7('0xa')](handleError(_0x5847ff,null));},exports[_0x1c65e4('0x2')]=function(_0x3a02f0,_0x22e4c5){const _0x17fad0=_0x1c65e4;return db[_0x17fad0('0xad')][_0x17fad0('0x69')]({'where':{'id':_0x3a02f0['params']['id']}})[_0x17fad0('0x9c')](handleEntityNotFound(_0x22e4c5,null))[_0x17fad0('0x9c')](removeEntity(_0x22e4c5,null))[_0x17fad0('0xa')](handleError(_0x22e4c5,null));},exports['describe']=function(_0x2217b8,_0x5d22d8){const _0x284bfa=_0x1c65e4;return db['SmsInteraction'][_0x284bfa('0x95')]()[_0x284bfa('0x9c')](respondWithResult(_0x5d22d8,null))[_0x284bfa('0xa')](handleError(_0x5d22d8,null));},exports[_0x1c65e4('0x0')]=function(_0x15813c,_0x57a85e){const _0x1734c4=_0x1c65e4;return db[_0x1734c4('0x56')][_0x1734c4('0x69')]({'where':{'id':_0x15813c['params']['id']}})[_0x1734c4('0x9c')](function(_0x419af0){const _0x55ccb2=_0x1734c4;if(_0x419af0)return _0x419af0[_0x55ccb2('0x0')](_0x15813c['body']['ids'],{'through':_[_0x55ccb2('0x9d')](_0x15813c[_0x55ccb2('0x5f')],[_0x55ccb2('0xba'),'id'])});})[_0x1734c4('0x9c')](respondWithResult(_0x57a85e,null))[_0x1734c4('0xa')](handleError(_0x57a85e,null));},exports['getMessages']=function(_0x28e7b7,_0x58a516){const _0x505262=_0x1c65e4;let _0x2416d7={'raw':![],'where':{}};const _0x35e316={},_0x20a8f0={'count':0x0,'rows':[]};return db[_0x505262('0xad')][_0x505262('0x69')]({'where':{'id':_0x28e7b7[_0x505262('0xc9')]['id']}})[_0x505262('0x9c')](handleEntityNotFound(_0x58a516,null))[_0x505262('0x9c')](function(_0x1b9c20){const _0x3d9aa2=_0x505262;if(_0x1b9c20){_0x35e316[_0x3d9aa2('0x65')]=_[_0x3d9aa2('0x73')](db[_0x3d9aa2('0x56')]['rawAttributes']),_0x35e316[_0x3d9aa2('0x93')]=_['keys'](_0x28e7b7['query']),_0x35e316['filters']=_[_0x3d9aa2('0xcc')](_0x35e316[_0x3d9aa2('0x65')],_0x35e316[_0x3d9aa2('0x93')]),_0x2416d7[_0x3d9aa2('0x16')]=_[_0x3d9aa2('0xcc')](_0x35e316[_0x3d9aa2('0x65')],qs[_0x3d9aa2('0x9e')](_0x28e7b7[_0x3d9aa2('0x93')][_0x3d9aa2('0x9e')])),_0x2416d7[_0x3d9aa2('0x16')]=_0x2416d7[_0x3d9aa2('0x16')][_0x3d9aa2('0x96')]?_0x2416d7[_0x3d9aa2('0x16')]:_0x35e316[_0x3d9aa2('0x65')];typeof _0x28e7b7['query']['nolimit']===_0x3d9aa2('0x22')&&(_0x2416d7[_0x3d9aa2('0x18')]=qs[_0x3d9aa2('0x18')](_0x28e7b7['query'][_0x3d9aa2('0x18')]),_0x2416d7[_0x3d9aa2('0x4e')]=qs[_0x3d9aa2('0x4e')](_0x28e7b7['query'][_0x3d9aa2('0x4e')]));_0x2416d7[_0x3d9aa2('0xaf')]=qs[_0x3d9aa2('0xc')](_0x28e7b7['query'][_0x3d9aa2('0xc')]),_0x2416d7[_0x3d9aa2('0xa8')]=qs[_0x3d9aa2('0xc7')](_[_0x3d9aa2('0x12')](_0x28e7b7[_0x3d9aa2('0x93')],_0x35e316[_0x3d9aa2('0xc7')])),_0x2416d7[_0x3d9aa2('0xa8')][_0x3d9aa2('0x3b')]=_0x1b9c20['id'];_0x28e7b7[_0x3d9aa2('0x93')][_0x3d9aa2('0x8e')]&&(_0x2416d7[_0x3d9aa2('0xa8')]=_[_0x3d9aa2('0x40')](_0x2416d7['where'],{[Op['or']]:_['map'](_0x2416d7[_0x3d9aa2('0x16')],function(_0x31c54b){const _0x17442e=_0x3d9aa2,_0x4f82b3={};return _0x4f82b3[_0x31c54b]={[Op[_0x17442e('0x49')]]:'%'+_0x28e7b7[_0x17442e('0x93')][_0x17442e('0x8e')]+'%'},_0x4f82b3;})}));if(_0x28e7b7[_0x3d9aa2('0x93')][_0x3d9aa2('0x57')]){const _0x587995=_0x28e7b7[_0x3d9aa2('0x93')][_0x3d9aa2('0x57')][_0x3d9aa2('0x92')](','),_0xd3681={};_0xd3681[_0x587995[0x0]]={[Op[_0x3d9aa2('0xf')]]:moment(_0x587995[0x1])[_0x3d9aa2('0x63')]('YYYY-MM-DD\x20HH:mm:ss')},_0x2416d7['where']=_[_0x3d9aa2('0x40')](_0x2416d7['where'],_0xd3681);}return _0x2416d7=_['merge']({},_0x2416d7,_0x28e7b7[_0x3d9aa2('0x90')]),db[_0x3d9aa2('0x56')]['count']({'where':_0x2416d7[_0x3d9aa2('0xa8')]})[_0x3d9aa2('0x9c')](function(_0x508205){const _0x17092d=_0x3d9aa2;return _0x20a8f0[_0x17092d('0x6d')]=_0x508205,_0x28e7b7['query'][_0x17092d('0xb6')]&&(_0x2416d7[_0x17092d('0x6e')]=[{'all':!![]}]),db[_0x17092d('0x56')]['findAll'](_0x2416d7);})[_0x3d9aa2('0x9c')](function(_0x5c1cf6){const _0x5f2912=_0x3d9aa2;return _0x20a8f0[_0x5f2912('0x6a')]=_0x5c1cf6,_0x20a8f0;});}})[_0x505262('0x9c')](respondWithFilteredResult(_0x58a516,_0x2416d7))['catch'](handleError(_0x58a516,null));},exports['addTags']=function(_0x431a64,_0x1667f6){const _0xf10289=_0x1c65e4;return db['SmsInteraction'][_0xf10289('0x69')]({'where':{'id':_0x431a64['params']['id']}})[_0xf10289('0x9c')](function(_0x572347){const _0x3dfdc1=_0xf10289;if(_0x572347)return _0x572347[_0x3dfdc1('0x80')](_0x431a64[_0x3dfdc1('0x5f')][_0x3dfdc1('0xba')],{'through':_[_0x3dfdc1('0x9d')](_0x431a64['body'],['ids','id'])})[_0x3dfdc1('0x9c')](function(){const _0x52547c=_0x3dfdc1;return db[_0x52547c('0xcb')][_0x52547c('0x9f')]({'attributes':['id',_0x52547c('0xb8'),_0x52547c('0xab')],'where':{'id':_0x431a64['body']['ids']}});})[_0x3dfdc1('0x9c')](function(_0x26a823){const _0x3bf4f7=_0x3dfdc1;return socket[_0x3bf4f7('0x4b')](_0x3bf4f7('0xa7'),{'id':Number(_0x431a64[_0x3bf4f7('0xc9')]['id']),'tags':_0x26a823||[]}),{'id':Number(_0x431a64['params']['id']),'tags':_0x26a823||[]};});})[_0xf10289('0x9c')](respondWithResult(_0x1667f6,null))[_0xf10289('0xa')](handleError(_0x1667f6,null));},exports[_0x1c65e4('0x45')]=function(_0x1cf833,_0x43eabe){const _0x2485fd=_0x1c65e4;return db[_0x2485fd('0xad')][_0x2485fd('0x69')]({'where':{'id':_0x1cf833['params']['id']}})[_0x2485fd('0x9c')](handleEntityNotFound(_0x43eabe,null))['then'](function(_0x814247){if(_0x814247)return _0x814247['removeTags'](_0x1cf833['query']['ids']);})[_0x2485fd('0x9c')](respondWithStatusCode(_0x43eabe,null))[_0x2485fd('0xa')](handleError(_0x43eabe,null));},exports[_0x1c65e4('0x89')]=function(_0x144bcb,_0x4a1e5a){const _0x217b13=_0x1c65e4,_0x1f8810=moment()[_0x217b13('0xa2')]()[_0x217b13('0x74')](),_0x7d19a=path[_0x217b13('0xa4')](config['root'],_0x217b13('0x14'),_0x217b13('0x3d')),_0x32fab8=path[_0x217b13('0xa4')](_0x7d19a,_0x1f8810),_0x3c6be7=util[_0x217b13('0x63')](_0x217b13('0x39'),_0x144bcb['params']['id'],_0x1f8810),_0x4d3c99=path['join'](_0x7d19a,_0x3c6be7),_0x1d65b1=[];_0x1d65b1[_0x217b13('0x6b')]({'model':db[_0x217b13('0x5c')],'as':_0x217b13('0x5c'),'attributes':['id','fullname'],'raw':!![]}),_0x1d65b1[_0x217b13('0x6b')]({'model':db['CmContact'],'as':_0x217b13('0x88'),'attributes':['id','firstName','lastName'],'raw':!![]});const _0x1554ea=[{'model':db[_0x217b13('0x56')],'as':_0x217b13('0xbf'),'attributes':['id',_0x217b13('0x5f'),_0x217b13('0x8f'),'direction','secret',_0x217b13('0x38')],'include':_0x1d65b1}];return _0x1554ea[_0x217b13('0x6b')]({'model':db[_0x217b13('0x42')],'as':_0x217b13('0xb5'),'attributes':['id',_0x217b13('0xb8')]}),_0x1554ea[_0x217b13('0x6b')]({'model':db[_0x217b13('0x5c')],'as':_0x217b13('0xcf'),'attributes':['id',_0x217b13('0x9')]}),db[_0x217b13('0xad')][_0x217b13('0x69')]({'where':{'id':_0x144bcb[_0x217b13('0xc9')]['id']},'include':_0x1554ea})[_0x217b13('0x9c')](handleEntityNotFound(_0x4a1e5a,null))[_0x217b13('0x9c')](function(_0x34c2a6){const _0x15d910=_0x217b13;if(_0x34c2a6){const _0x1c2748=_0x34c2a6[_0x15d910('0x47')]({'plain':!![]});fs[_0x15d910('0x29')](_0x32fab8);const _0x4b7e51={'format':'A4','border':_0x15d910('0xa3'),'header':{'height':_0x15d910('0x50'),'contents':{'first':_0x15d910('0xb0')}},'footer':{'height':_0x15d910('0xc1'),'contents':{'default':util[_0x15d910('0x63')]('\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[_0x15d910('0x63')](_0x15d910('0x67'),'Sms',_0x1c2748['id']),moment()['format'](_0x15d910('0x78'))[_0x15d910('0x74')]())}}},_0x4fdb98={'channel':_0x15d910('0x99'),'account':_0x1c2748[_0x15d910('0xb5')][_0x15d910('0xb8')],'agent':_0x1c2748[_0x15d910('0xcf')]?_0x1c2748[_0x15d910('0xcf')][_0x15d910('0x9')]:'N.A.','createdAt':moment(_0x1c2748['createdAt'])['format']('YYYY-MM-DD\x20HH:mm:ss')[_0x15d910('0x74')](),'closedAt':_0x1c2748['closed']?moment(_0x1c2748[_0x15d910('0x35')])[_0x15d910('0x63')](_0x15d910('0x8'))[_0x15d910('0x74')]():'','disposition':_0x1c2748['disposition'],'messages':_(_0x1c2748[_0x15d910('0xbf')])[_0x15d910('0x8e')]({'secret':![]})[_0x15d910('0xd')](function(_0x414d7b){const _0x4c5198=_0x15d910;return{'date':moment(_0x414d7b[_0x4c5198('0x8f')])[_0x4c5198('0x63')]('YYYY-MM-DD\x20HH:mm:ss')[_0x4c5198('0x74')](),'sender':_0x414d7b['direction']===_0x4c5198('0x46')?_0x414d7b[_0x4c5198('0x5c')]?_0x414d7b['User'][_0x4c5198('0x9')]:_0x4c5198('0xc4'):_0x414d7b['Contact'][_0x4c5198('0x5')]+(_0x414d7b['Contact'][_0x4c5198('0x11')]?'\x20'+_0x414d7b[_0x4c5198('0x88')][_0x4c5198('0x11')]:''),'body':_0x414d7b[_0x4c5198('0x5f')],'direction':_0x414d7b[_0x4c5198('0x2d')]==='out'?'A':'C','secret':_0x414d7b[_0x4c5198('0xb')],'read':_0x414d7b['read']};})[_0x15d910('0x6c')]()};return ejs[_0x15d910('0x2f')](path[_0x15d910('0xa4')](config[_0x15d910('0x25')],_0x15d910('0x87'),'views',_0x15d910('0xce')),{'interaction':_0x4fdb98})['then'](function(_0x52d6cb){return new Promise(function(_0x1b648b,_0x141aad){const _0x2c6f67=a553_0x1025;pdf[_0x2c6f67('0x2c')](_0x52d6cb,_0x4b7e51)[_0x2c6f67('0x41')](path['join'](_0x32fab8,'transcript-'+_0x1c2748['id']+'-'+_0x1f8810+'.pdf'),function(_0x50f3a2,_0x13db2a){if(_0x50f3a2)return _0x141aad(_0x50f3a2);_0x1b648b(_0x13db2a);});});})[_0x15d910('0x9c')](function(){const _0xa6c191=_0x15d910;return new Promise(function(_0x56293e,_0x4110af){zipdir(_0x32fab8,{'saveTo':_0x4d3c99},function(_0x933868,_0x52a859){if(_0x933868)return _0x4110af(_0x933868);return _0x56293e(_0x52a859);});})[_0xa6c191('0x9c')](function(){return new Promise(function(_0x1a5af2,_0x57eb14){rimraf(_0x32fab8,function(_0x249816){if(_0x249816)_0x57eb14(_0x249816);return _0x1a5af2();});});})['then'](function(){const _0x58f815=_0xa6c191;return _0x4a1e5a[_0x58f815('0x89')](_0x4d3c99,_0x3c6be7,function(_0x3e22d6){const _0x4432ae=_0x58f815;_0x3e22d6?console[_0x4432ae('0x2b')](_0x4432ae('0x97'),_0x3e22d6):fs[_0x4432ae('0x70')](_0x4d3c99);});});});}else return _0x4a1e5a[_0x15d910('0x31')](0xc8);})[_0x217b13('0xa')](handleError(_0x4a1e5a,null));}; \ No newline at end of file +const a553_0x47c2=['N.A.','../../mysqldb','format','read','clone','`unreadMessages`\x20=\x200','YYYY-MM-DD','select','omit','merge','Contact.email','findOne','sms_interactions','c.phone','40px','$substring','Account.mandatoryDisposition','ejs','u.id','sms_accounts','Account','sms_messages','\x27\x27\x27\x27','User','nolimit','i.SmsAccountId\x20IN\x20?','Tag','removeTags','resolve','closed','SmsInteraction','union','index','Contact','\x20IS\x20NULL','`unreadMessages`\x20>\x200','findAll','c.mobile','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','user_has_sms_interactions','i.*','name','parseSearch','root','status','sendStatus','u.id\x20=\x20ui.UserId','limit','sqlOperator','user','undefined','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','smsInteractionTags:save','register','\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','setTags','c.firstName','download','c.email','lastName','left_join','buildExpression','firstName','SmsAccountId','ui.SmsInteractionId\x20IN\x20?','CmContact','secret','Contact.lastName','expr','SmsMessage','query','ContactId','Sequelize','null','me.SmsInteractionId\x20=\x20i.id','out','rawAttributes','unix','fields','update','then','model','find','type','../../components/parsers/qs','$gte','intersection','YYYY-MM-DD\x20HH:mm:ss','i.id','util','keys','join','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','log','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','end','json','rimraf','body','toFile','getMessages','transcript-','disposition','Tags','../../rediscache','tools_tags','Owner','length','text','createdAt','Contact.mobile','../../config/logger','emit','squel','a.key','create','Owner.internal','ids','search','UserId','isEmpty','tmp','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','Contact.fax','transcript-%d-%s.zip','SELECT','../../components/parsers/advancedSearch','compact','order','attributes','SmsAccount','keyBy','having','c.fax','Contact.phone','send','tag','describe','html-pdf','TagIds','field','i.phone\x20LIKE\x20?','t.id\x20IN\x20?','SmsInteractionId','Messages','params','getFullTextValue','replace','QueryTypes','pick','Sms','cm_contacts','`\x20>\x200','unreadMessages','toString','users','concat','\x20=\x20?','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','../../config/environment','catch','count','from','getSmsAccounts','stack','30px','map','GROUP_CONCAT(DISTINCT\x20t.id)','rows','direction','value','Account.key','filters','operator','sequelize','closedAt','options','some','offset','color','addMessage','server','start','err','sort','Owner.fullname','path','forEach','parse','files','i.SmsAccountId\x20IS\x20NULL','filter','error','key','groupBy','Users','group','\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','split','$lte','views','all','push','o.internal','api','conditions','System','destroy','./smsInteraction.socket','includeAll','where','%s\x20#%d','fullname','fieldName'];(function(_0xbc04e8,_0x47c293){const _0x4ab7ce=function(_0x3207cf){while(--_0x3207cf){_0xbc04e8['push'](_0xbc04e8['shift']());}};_0x4ab7ce(++_0x47c293);}(a553_0x47c2,0xd1));const a553_0x4ab7=function(_0xbc04e8,_0x47c293){_0xbc04e8=_0xbc04e8-0x0;let _0x4ab7ce=a553_0x47c2[_0xbc04e8];return _0x4ab7ce;};const _0x369c82=a553_0x4ab7;'use strict';const pdf=require(_0x369c82('0x8f')),rimraf=require(_0x369c82('0x66')),zipdir=require('zip-dir'),moment=require('moment'),util=require(_0x369c82('0x5e')),path=require(_0x369c82('0xbf')),ejs=require(_0x369c82('0x16')),fs=require('fs'),_=require('lodash'),squel=require(_0x369c82('0x76')),{getSocket}=require(_0x369c82('0x6d')),socket=getSocket(),qs=require(_0x369c82('0x59')),as=require(_0x369c82('0x83')),logger=require(_0x369c82('0x74'))(_0x369c82('0xd1')),config=require(_0x369c82('0xa4')),db=require(_0x369c82('0x6'))['db'],{Op}=require(_0x369c82('0xb3'));require(_0x369c82('0xd5'))[_0x369c82('0x3a')](socket);function respondWithStatusCode(_0x3207cf,_0x1e0c1f){return _0x1e0c1f=_0x1e0c1f||0xcc,function(_0x87f35){const _0x50fa9f=a553_0x4ab7;if(_0x87f35)return _0x3207cf[_0x50fa9f('0x32')](_0x1e0c1f);return _0x3207cf[_0x50fa9f('0x31')](_0x1e0c1f)['end']();};}function respondWithResult(_0x30a302,_0x4c0ca9){return _0x4c0ca9=_0x4c0ca9||0xc8,function(_0x31a421){const _0x5269cb=a553_0x4ab7;if(_0x31a421)return _0x30a302['status'](_0x4c0ca9)[_0x5269cb('0x65')](_0x31a421);};}function respondWithFilteredResult(_0x2acaec,_0x1397db){return function(_0x244e55){const _0x1c96f4=a553_0x4ab7;if(_0x244e55){const _0x306ff5=_0x244e55['count'],_0x1f00e7=_0x1397db[_0x1c96f4('0xb7')];let _0x1ba935=_0x1397db['offset']+_0x1397db[_0x1c96f4('0x34')],_0x8ca572;return _0x1ba935>=_0x306ff5?(_0x1ba935=_0x306ff5,_0x8ca572=0xc8):_0x8ca572=0xce,_0x2acaec[_0x1c96f4('0x31')](_0x8ca572),_0x2acaec['set']('Content-Range',_0x1f00e7+'-'+_0x1ba935+'/'+_0x306ff5)[_0x1c96f4('0x65')](_0x244e55);}return null;};}function saveUpdates(_0x4c4bac){return function(_0x4a3c22){const _0x3ce53a=a553_0x4ab7;if(_0x4a3c22)return _0x4a3c22['update'](_0x4c4bac)[_0x3ce53a('0x55')](function(_0x340388){return _0x340388;});return null;};}function removeEntity(_0x38d2a2){return function(_0x25df52){if(_0x25df52)return _0x25df52['destroy']()['then'](function(){const _0x2f4b0f=a553_0x4ab7;_0x38d2a2[_0x2f4b0f('0x31')](0xcc)[_0x2f4b0f('0x64')]();});};}function handleEntityNotFound(_0x2d94d5){return function(_0xb35b02){const _0x3e8d97=a553_0x4ab7;return!_0xb35b02&&_0x2d94d5[_0x3e8d97('0x32')](0x194),_0xb35b02;};}function handleError(_0x5e146b,_0x3cc53e){return _0x3cc53e=_0x3cc53e||0x1f4,function(_0xbb2362){const _0x4733b8=a553_0x4ab7;logger[_0x4733b8('0xc5')](_0xbb2362[_0x4733b8('0xa9')]),_0xbb2362[_0x4733b8('0x2e')]&&delete _0xbb2362['name'],_0x5e146b['status'](_0x3cc53e)[_0x4733b8('0x8c')](_0xbb2362);};}function getInteractionUsers(_0x573bad,_0x5d640b){return new Promise(function(_0x4a06be,_0x1b036a){const _0x4d285f=a553_0x4ab7;try{_0x5d640b[_0x573bad['id']]&&(_0x573bad[_0x4d285f('0xc8')]=_[_0x4d285f('0xab')](_0x5d640b[_0x573bad['id']],function(_0x209190){const _0x42a03b=_0x4d285f;return{'id':_0x209190['id'],'fullname':_0x209190[_0x42a03b('0x3')]};}));}catch(_0x415570){_0x1b036a(_0x415570);}_0x4a06be(_0x573bad);});}function getInteractionTags(_0xf00403,_0x411a61){return new Promise(function(_0x458352,_0x4d61fb){const _0x4fafb8=a553_0x4ab7;try{_0xf00403[_0x4fafb8('0x90')]&&(_0xf00403[_0x4fafb8('0x6c')]=[],_0xf00403[_0x4fafb8('0x90')][_0x4fafb8('0xcb')](',')[_0x4fafb8('0xc0')](function(_0x19ed2f){const _0x45d274=_0x4fafb8;_0xf00403[_0x45d274('0x6c')][_0x45d274('0xcf')](_0x411a61[_0x19ed2f]);})),delete _0xf00403[_0x4fafb8('0x90')];}catch(_0x527d77){_0x4d61fb(_0x527d77);}_0x458352(_0xf00403);});}function updateSmsInteraction(_0x1d2f76,_0x207f70,_0x209cec){return new Promise(function(_0x2ad6dd,_0x54fe80){const _0x3ff052=a553_0x4ab7;return getInteractionUsers(_0x1d2f76,_0x209cec)['then'](function(_0x43ad7a){return getInteractionTags(_0x43ad7a,_0x207f70);})['then'](function(_0x2becf1){_0x2ad6dd(_0x2becf1);})[_0x3ff052('0xa5')](function(_0x349e79){_0x54fe80(_0x349e79);});});}exports[_0x369c82('0x25')]=function(_0x185e64,_0x3d78da){const _0x326f6d=_0x369c82,_0x102de4={},_0x591349={},_0x4c49bd={'count':0x0,'rows':[]},_0x2a5b60=_[_0x326f6d('0xab')](db[_0x326f6d('0x23')][_0x326f6d('0x51')],function(_0x1bed09){const _0x59d316=_0x326f6d;return{'name':_0x1bed09[_0x59d316('0x4')],'type':_0x1bed09['type'][_0x59d316('0xc6')]};});_0x591349[_0x326f6d('0x56')]=_['map'](_0x2a5b60,_0x326f6d('0x2e')),_0x591349[_0x326f6d('0x4b')]=_[_0x326f6d('0x5f')](_0x185e64[_0x326f6d('0x4b')]),_0x591349[_0x326f6d('0xb1')]=_[_0x326f6d('0x5b')](_0x591349['model'],_0x591349[_0x326f6d('0x4b')]),_0x102de4[_0x326f6d('0x86')]=_['intersection'](_0x591349[_0x326f6d('0x56')],qs[_0x326f6d('0x53')](_0x185e64['query'][_0x326f6d('0x53')])),_0x102de4[_0x326f6d('0x86')]=_0x102de4[_0x326f6d('0x86')][_0x326f6d('0x70')]?_0x102de4[_0x326f6d('0x86')]:_0x591349[_0x326f6d('0x56')];typeof _0x185e64[_0x326f6d('0x4b')]['nolimit']===_0x326f6d('0x37')&&(_0x102de4['limit']=qs[_0x326f6d('0x34')](_0x185e64[_0x326f6d('0x4b')][_0x326f6d('0x34')]),_0x102de4[_0x326f6d('0xb7')]=qs['offset'](_0x185e64[_0x326f6d('0x4b')]['offset']));_0x102de4[_0x326f6d('0x85')]=qs['sort'](_0x185e64[_0x326f6d('0x4b')][_0x326f6d('0xbd')]),_0x102de4[_0x326f6d('0x1')]=qs[_0x326f6d('0xb1')](_[_0x326f6d('0x9a')](_0x185e64[_0x326f6d('0x4b')],_0x591349[_0x326f6d('0xb1')]),_0x2a5b60);let _0x689a86=[];const _0x58ab98=squel['select']()[_0x326f6d('0x91')]('id')['field'](_0x326f6d('0x2e'))[_0x326f6d('0x91')](_0x326f6d('0xb8'))[_0x326f6d('0xa7')](_0x326f6d('0x6e')),_0x1837e4=squel[_0x326f6d('0xc')]()[_0x326f6d('0x91')](_0x326f6d('0x17'))[_0x326f6d('0x91')]('u.fullname')[_0x326f6d('0x91')]('ui.SmsInteractionId')[_0x326f6d('0xa7')](_0x326f6d('0x2c'),'ui')[_0x326f6d('0x41')]('users','u',_0x326f6d('0x33')),_0x48bc06=squel['select']()[_0x326f6d('0xa7')](_0x326f6d('0x11'),'i')[_0x326f6d('0x41')](_0x326f6d('0x9c'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')['left_join'](_0x326f6d('0xa0'),'o','o.id\x20=\x20i.UserId')[_0x326f6d('0x41')](_0x326f6d('0x18'),'a','a.id\x20=\x20i.SmsAccountId')[_0x326f6d('0x41')](_0x326f6d('0x1a'),'me',_0x326f6d('0x4f'))[_0x326f6d('0x41')]('sms_interaction_has_tags','it','it.SmsInteractionId\x20=\x20i.id')[_0x326f6d('0x41')](_0x326f6d('0x6e'),'t','t.id\x20=\x20it.TagId'),_0x46140a=squel[_0x326f6d('0x49')]();let _0x30bde1=[];const _0x48c2e1=squel[_0x326f6d('0x49')]();let _0xaf052f;if(_0x185e64['query'][_0x326f6d('0x7b')]){_0xaf052f=as[_0x326f6d('0x2f')](_0x185e64[_0x326f6d('0x4b')][_0x326f6d('0x7b')]);const _0x581388=_0xaf052f[_0x326f6d('0x35')];for(let _0x18af2f=0x0;_0x18af2f<_0xaf052f[_0x326f6d('0xd2')][_0x326f6d('0x70')];_0x18af2f++){const _0x2151fc=_0xaf052f['conditions'][_0x18af2f],_0x2a4906='i';let _0x16de41,_0x501f79=_[_0x326f6d('0x57')](_0x2a5b60,[_0x326f6d('0x2e'),_0x2151fc[_0x326f6d('0x91')]]);if(!_0x501f79)switch(_0x2151fc[_0x326f6d('0x91')]){case _0x326f6d('0x9e'):_0x2151fc[_0x326f6d('0xaf')]==0x1?_0x48bc06[_0x326f6d('0x89')]('`'+_0x2151fc['field']+'`\x20=\x200'):_0x48bc06[_0x326f6d('0x89')]('`'+_0x2151fc[_0x326f6d('0x91')]+_0x326f6d('0x9d'));break;case _0x326f6d('0x26'):if(_0x2151fc[_0x326f6d('0xb2')]===_0x326f6d('0x14')){if(_0x2151fc['value'][_0x326f6d('0xcb')]('\x20')[_0x326f6d('0x70')]>0x1)_0x46140a[_0x581388](_0x326f6d('0x2b'),qs[_0x326f6d('0x97')](_0x2151fc[_0x326f6d('0xaf')]),null);else{const _0x2df1ca='%'+_0x2151fc['value']+'%';_0x46140a[_0x581388](_0x326f6d('0x63'),_0x2df1ca,_0x2df1ca,_0x2df1ca);}}else _0x501f79=_[_0x326f6d('0x57')](_0x2a5b60,[_0x326f6d('0x2e'),_0x326f6d('0x4c')]),_0x2151fc[_0x326f6d('0x91')]=_0x326f6d('0x4c'),_0x16de41=as['buildExpression'](_0x2a4906,_0x501f79[_0x326f6d('0x58')],_0x2151fc),_0x46140a[_0x581388](_0x16de41[_0x326f6d('0x71')],_0x16de41['value'][_0x326f6d('0xbb')],_0x16de41[_0x326f6d('0xaf')]['end']);break;case _0x326f6d('0x1f'):{const _0x5f0fbc=_0x2151fc[_0x326f6d('0xaf')][_0x326f6d('0xcb')](',')[_0x326f6d('0xab')](function(_0xd467b4){return Number(_0xd467b4);});_0x5f0fbc[_0x326f6d('0xc0')](function(_0x59045c){const _0x53f944=_0x326f6d;_0x48c2e1['or'](_0x53f944('0x61'),'%,'+_0x59045c+',%');}),_0x30bde1=_[_0x326f6d('0x24')](_0x30bde1,_0x5f0fbc);}break;case'User':_0x2151fc[_0x326f6d('0xb2')]===_0x326f6d('0x14')?_0x46140a[_0x581388]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x2151fc[_0x326f6d('0xaf')]+'%',null):(_0x501f79=_[_0x326f6d('0x57')](_0x2a5b60,[_0x326f6d('0x2e'),_0x326f6d('0x7c')]),_0x2151fc[_0x326f6d('0x91')]=_0x326f6d('0x7c'),_0x16de41=as['buildExpression'](_0x2a4906,_0x501f79[_0x326f6d('0x58')],_0x2151fc),_0x46140a[_0x581388](_0x16de41['text'],_0x16de41[_0x326f6d('0xaf')]['start'],_0x16de41[_0x326f6d('0xaf')][_0x326f6d('0x64')]));break;case _0x326f6d('0x67'):_0x16de41=as[_0x326f6d('0x42')]('me',null,_0x2151fc),_0x46140a[_0x581388](_0x16de41[_0x326f6d('0x71')],_0x16de41[_0x326f6d('0xaf')][_0x326f6d('0xbb')],_0x16de41[_0x326f6d('0xaf')][_0x326f6d('0x64')]);break;}else _0x16de41=as['buildExpression'](_0x2a4906,_0x501f79['type'],_0x2151fc),_0x46140a[_0x581388](_0x16de41[_0x326f6d('0x71')],_0x16de41[_0x326f6d('0xaf')][_0x326f6d('0xbb')],_0x16de41[_0x326f6d('0xaf')][_0x326f6d('0x64')]);}}else{const _0x4924ee=_(_0x185e64['query'])[_0x326f6d('0x5f')]()[_0x326f6d('0xab')](function(_0x1a1b61){const _0x31af2c=_0x326f6d;return _[_0x31af2c('0xb6')](_0x2a5b60,['name',_0x1a1b61])?_0x1a1b61:undefined;})[_0x326f6d('0x84')]()[_0x326f6d('0xaf')]();!_[_0x326f6d('0x7d')](_0x4924ee)&&_0x4924ee[_0x326f6d('0xc0')](function(_0x5329de){const _0x4c150b=_0x326f6d;if(_0x5329de==='SmsAccountId')_0x48bc06[_0x4c150b('0x1')](_0x4c150b('0x1e'),[][_0x4c150b('0xa1')](_0x185e64[_0x4c150b('0x4b')][_0x5329de]));else{if(_0x5329de===_0x4c150b('0x72')){const _0x3d28ff=JSON[_0x4c150b('0xc1')](_0x185e64[_0x4c150b('0x4b')][_0x5329de])[_0x4c150b('0x5a')],_0x108415=JSON[_0x4c150b('0xc1')](_0x185e64['query'][_0x5329de])[_0x4c150b('0xcc')];_0x48bc06[_0x4c150b('0x1')](_0x4c150b('0xa3'),_0x3d28ff,_0x108415);}else _0x185e64[_0x4c150b('0x4b')][_0x5329de]===_0x4c150b('0x4e')?_0x48bc06[_0x4c150b('0x1')]('i.'+_0x5329de+_0x4c150b('0x27')):_0x48bc06[_0x4c150b('0x1')]('i.'+_0x5329de+_0x4c150b('0xa2'),_0x185e64[_0x4c150b('0x4b')][_0x5329de]);}});_0x185e64['query'][_0x326f6d('0x8')]&&(_0x185e64[_0x326f6d('0x4b')][_0x326f6d('0x8')]==0x1?_0x48bc06[_0x326f6d('0x89')](_0x326f6d('0xa')):_0x48bc06[_0x326f6d('0x89')](_0x326f6d('0x28')));_0x185e64['query'][_0x326f6d('0x8d')]&&(_0x30bde1=_['isArray'](_0x185e64[_0x326f6d('0x4b')]['tag'])?_0x185e64[_0x326f6d('0x4b')]['tag']:new Array(_0x185e64[_0x326f6d('0x4b')]['tag']),_0x30bde1[_0x326f6d('0xc0')](function(_0x406566){const _0x231f5f=_0x326f6d;_0x48c2e1['or'](_0x231f5f('0x61'),'%,'+_0x406566+',%');}));if(_0x185e64['query'][_0x326f6d('0xc4')]){const _0x4ebedc=_0x185e64[_0x326f6d('0x4b')][_0x326f6d('0xc4')][_0x326f6d('0x98')]('\x5c','\x5c\x5c')[_0x326f6d('0x98')]('\x27\x27',_0x326f6d('0x1b'));qs['isNumeric'](_0x4ebedc)?_0x46140a['or']('i.id\x20LIKE\x20?',_0x4ebedc+'%')['or'](_0x326f6d('0x92'),_0x4ebedc+'%'):_0x46140a['or']('MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)',qs['getFullTextValue'](_0x4ebedc))['or'](_0x326f6d('0x7f'),_0x4ebedc+'%');}}_0x48bc06[_0x326f6d('0x1')](_0x46140a),_0x48bc06[_0x326f6d('0xc9')](_0x326f6d('0x5d'));let _0x3a4c2f={'type':db[_0x326f6d('0x4d')][_0x326f6d('0x99')][_0x326f6d('0x82')],'raw':!![]};const _0x540ab2=_0x48bc06[_0x326f6d('0x9')]();_0x540ab2[_0x326f6d('0x91')]('i.id'),_0x540ab2[_0x326f6d('0x91')](_0x326f6d('0x38'),_0x326f6d('0x9e')),_0x102de4[_0x326f6d('0x85')]&&_0x102de4['order'][_0x326f6d('0xc0')](function(_0x4459f3){const _0xe33d3b=_0x326f6d;_0x48bc06[_0xe33d3b('0x85')]('i.'+_0x4459f3[0x0],_0x4459f3[0x1]==='DESC'?![]:!![]);}),!_[_0x326f6d('0x7d')](_0x30bde1)&&(_0x48bc06['having'](_0x48c2e1),_0x540ab2[_0x326f6d('0x1')](_0x326f6d('0x93'),_0x30bde1)),Promise[_0x326f6d('0x21')]()[_0x326f6d('0x55')](function(){const _0x493d5c=_0x326f6d;if(!_0xaf052f){if(_0x185e64[_0x493d5c('0x4b')][_0x493d5c('0x44')]||_0x185e64['query']['journey'])return;_0x540ab2[_0x493d5c('0x1')]('i.SmsAccountId\x20IS\x20NOT\x20NULL'),_0x48bc06[_0x493d5c('0x1')]('i.SmsAccountId\x20IS\x20NOT\x20NULL');return;}return _0x185e64[_0x493d5c('0x36')][_0x493d5c('0xa8')]({'attributes':['id'],'raw':!![]})[_0x493d5c('0x55')](function(_0x4dd739){const _0x1c12ac=_0x493d5c;_['isEmpty'](_0x4dd739)?(_0x540ab2[_0x1c12ac('0x1')]('i.SmsAccountId\x20IS\x20NULL'),_0x48bc06[_0x1c12ac('0x1')](_0x1c12ac('0xc3'))):(_0x540ab2[_0x1c12ac('0x1')]('i.SmsAccountId\x20IN\x20?',_['map'](_0x4dd739,'id')),_0x48bc06[_0x1c12ac('0x1')](_0x1c12ac('0x1e'),_[_0x1c12ac('0xab')](_0x4dd739,'id')));});})[_0x326f6d('0x55')](function(){const _0x27f9e8=_0x326f6d;db[_0x27f9e8('0xb3')][_0x27f9e8('0x4b')](_0x540ab2[_0x27f9e8('0x9f')](),_0x3a4c2f)[_0x27f9e8('0x55')](function(_0x1f97c8){const _0x35ec93=_0x27f9e8;_0x4c49bd[_0x35ec93('0xa6')]=_0x1f97c8[_0x35ec93('0x70')];if(_0x4c49bd[_0x35ec93('0xa6')]===0x0)return[];return db[_0x35ec93('0xb3')]['query'](_0x58ab98[_0x35ec93('0x9f')](),_0x3a4c2f)[_0x35ec93('0x55')](function(_0x52b4eb){const _0x34325d=_0x35ec93;_0x689a86=_[_0x34325d('0x88')](_0x52b4eb,'id'),_0x3a4c2f=_[_0x34325d('0xe')](_0x3a4c2f,{'model':db[_0x34325d('0x23')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x185e64[_0x34325d('0x4b')][_0x34325d('0x53')]?_0x102de4['attributes'][_0x34325d('0xc0')](function(_0xed7a4f){_0x48bc06['field']('i.'+_0xed7a4f);}):(_0x48bc06[_0x34325d('0x91')](_0x34325d('0x38'),'unreadMessages'),_0x48bc06[_0x34325d('0x91')](_0x34325d('0x77'),_0x34325d('0xb0')),_0x48bc06['field']('a.mandatoryDisposition',_0x34325d('0x15')),_0x48bc06[_0x34325d('0x91')](_0x34325d('0x2d')),_0x48bc06[_0x34325d('0x91')](_0x34325d('0x3d'),'Contact.firstName'),_0x48bc06['field']('c.lastName',_0x34325d('0x48')),_0x48bc06[_0x34325d('0x91')](_0x34325d('0x3f'),_0x34325d('0xf')),_0x48bc06[_0x34325d('0x91')](_0x34325d('0x12'),_0x34325d('0x8b')),_0x48bc06[_0x34325d('0x91')](_0x34325d('0x2a'),_0x34325d('0x73')),_0x48bc06[_0x34325d('0x91')](_0x34325d('0x8a'),_0x34325d('0x80')),_0x48bc06[_0x34325d('0x91')]('o.fullname',_0x34325d('0xbe')),_0x48bc06['field'](_0x34325d('0xd0'),_0x34325d('0x79')),_0x48bc06[_0x34325d('0x91')](_0x34325d('0xac'),_0x34325d('0x90')));if(_0x102de4[_0x34325d('0x34')])_0x48bc06[_0x34325d('0x34')](_0x102de4['limit']);if(_0x102de4[_0x34325d('0xb7')])_0x48bc06[_0x34325d('0xb7')](_0x102de4[_0x34325d('0xb7')]);return db[_0x34325d('0xb3')][_0x34325d('0x4b')](_0x48bc06[_0x34325d('0x9f')](),_0x3a4c2f);})[_0x35ec93('0x55')](function(_0x263498){const _0x168533=_0x35ec93;return _0x1837e4['where'](_0x168533('0x45'),_[_0x168533('0xab')](_0x263498,'id')),db['sequelize'][_0x168533('0x4b')](_0x1837e4[_0x168533('0x9f')](),_0x3a4c2f)[_0x168533('0x55')](function(_0x5ec503){const _0x31735e=_0x168533,_0x2180bf=_[_0x31735e('0xc7')](_0x5ec503,_0x31735e('0x94')),_0x56be06=[];return _0x263498[_0x31735e('0xc0')](function(_0x546560){_0x56be06['push'](updateSmsInteraction(_0x546560,_0x689a86,_0x2180bf));}),Promise[_0x31735e('0xce')](_0x56be06);});});})[_0x27f9e8('0x55')](function(_0x524357){return _0x4c49bd['rows']=_0x524357,_0x4c49bd;})[_0x27f9e8('0x55')](respondWithFilteredResult(_0x3d78da,_0x102de4));})[_0x326f6d('0xa5')](handleError(_0x3d78da,null));},exports['show']=function(_0x174224,_0x1d615b){const _0x1e0d32=_0x369c82;let _0x140fd9={'raw':![],'where':{'id':_0x174224['params']['id']}};const _0x2c66f4={};return _0x2c66f4[_0x1e0d32('0x56')]=_['keys'](db[_0x1e0d32('0x23')]['rawAttributes']),_0x2c66f4[_0x1e0d32('0x4b')]=_[_0x1e0d32('0x5f')](_0x174224[_0x1e0d32('0x4b')]),_0x2c66f4['filters']=_['intersection'](_0x2c66f4['model'],_0x2c66f4[_0x1e0d32('0x4b')]),_0x140fd9[_0x1e0d32('0x86')]=_[_0x1e0d32('0x5b')](_0x2c66f4[_0x1e0d32('0x56')],qs[_0x1e0d32('0x53')](_0x174224[_0x1e0d32('0x4b')][_0x1e0d32('0x53')])),_0x140fd9[_0x1e0d32('0x86')]=_0x140fd9[_0x1e0d32('0x86')][_0x1e0d32('0x70')]?_0x140fd9[_0x1e0d32('0x86')]:_0x2c66f4[_0x1e0d32('0x56')],_0x174224['query']['includeAll']&&(_0x140fd9['include']=[{'all':!![]}]),_0x140fd9=_[_0x1e0d32('0xe')]({},_0x140fd9,_0x174224[_0x1e0d32('0xb5')]),db['SmsInteraction'][_0x1e0d32('0x10')](_0x140fd9)['then'](handleEntityNotFound(_0x1d615b,null))[_0x1e0d32('0x55')](respondWithResult(_0x1d615b,null))['catch'](handleError(_0x1d615b,null));},exports[_0x369c82('0x78')]=function(_0x498378,_0x3080ef){const _0x162c78=_0x369c82;return db[_0x162c78('0x23')][_0x162c78('0x78')](_0x498378['body'],{})[_0x162c78('0x55')](respondWithResult(_0x3080ef,0xc9))['catch'](handleError(_0x3080ef,null));},exports[_0x369c82('0x54')]=function(_0x33746c,_0xc6b812){const _0x2e6eec=_0x369c82;return _0x33746c[_0x2e6eec('0x67')]['id']&&delete _0x33746c[_0x2e6eec('0x67')]['id'],db['SmsInteraction'][_0x2e6eec('0x10')]({'where':{'id':_0x33746c[_0x2e6eec('0x96')]['id']}})['then'](handleEntityNotFound(_0xc6b812,null))[_0x2e6eec('0x55')](saveUpdates(_0x33746c[_0x2e6eec('0x67')],null))[_0x2e6eec('0x55')](respondWithResult(_0xc6b812,null))['catch'](handleError(_0xc6b812,null));},exports[_0x369c82('0xd4')]=function(_0x295f49,_0x2f62f2){const _0x5e8e33=_0x369c82;return db[_0x5e8e33('0x23')][_0x5e8e33('0x10')]({'where':{'id':_0x295f49[_0x5e8e33('0x96')]['id']}})[_0x5e8e33('0x55')](handleEntityNotFound(_0x2f62f2,null))['then'](removeEntity(_0x2f62f2,null))[_0x5e8e33('0xa5')](handleError(_0x2f62f2,null));},exports[_0x369c82('0x8e')]=function(_0x4266a8,_0x2a8c60){const _0x2902aa=_0x369c82;return db[_0x2902aa('0x23')]['describe']()[_0x2902aa('0x55')](respondWithResult(_0x2a8c60,null))[_0x2902aa('0xa5')](handleError(_0x2a8c60,null));},exports['addMessage']=function(_0xac1497,_0x21cc0b){const _0x2862d8=_0x369c82;return db[_0x2862d8('0x4a')][_0x2862d8('0x10')]({'where':{'id':_0xac1497['params']['id']}})[_0x2862d8('0x55')](function(_0x3a455d){const _0x3619df=_0x2862d8;if(_0x3a455d)return _0x3a455d[_0x3619df('0xb9')](_0xac1497['body']['ids'],{'through':_[_0x3619df('0xd')](_0xac1497[_0x3619df('0x67')],['ids','id'])});})[_0x2862d8('0x55')](respondWithResult(_0x21cc0b,null))[_0x2862d8('0xa5')](handleError(_0x21cc0b,null));},exports[_0x369c82('0x69')]=function(_0x1add95,_0x44891e){const _0x1d8567=_0x369c82;let _0x3e95d0={'raw':![],'where':{}};const _0x17b18e={},_0x4fbadc={'count':0x0,'rows':[]};return db[_0x1d8567('0x23')][_0x1d8567('0x10')]({'where':{'id':_0x1add95['params']['id']}})['then'](handleEntityNotFound(_0x44891e,null))[_0x1d8567('0x55')](function(_0x5679be){const _0x162713=_0x1d8567;if(_0x5679be){_0x17b18e[_0x162713('0x56')]=_[_0x162713('0x5f')](db[_0x162713('0x4a')][_0x162713('0x51')]),_0x17b18e['query']=_[_0x162713('0x5f')](_0x1add95[_0x162713('0x4b')]),_0x17b18e[_0x162713('0xb1')]=_[_0x162713('0x5b')](_0x17b18e[_0x162713('0x56')],_0x17b18e[_0x162713('0x4b')]),_0x3e95d0[_0x162713('0x86')]=_['intersection'](_0x17b18e[_0x162713('0x56')],qs['fields'](_0x1add95['query'][_0x162713('0x53')])),_0x3e95d0[_0x162713('0x86')]=_0x3e95d0[_0x162713('0x86')]['length']?_0x3e95d0[_0x162713('0x86')]:_0x17b18e[_0x162713('0x56')];typeof _0x1add95['query'][_0x162713('0x1d')]==='undefined'&&(_0x3e95d0['limit']=qs[_0x162713('0x34')](_0x1add95[_0x162713('0x4b')][_0x162713('0x34')]),_0x3e95d0[_0x162713('0xb7')]=qs[_0x162713('0xb7')](_0x1add95[_0x162713('0x4b')][_0x162713('0xb7')]));_0x3e95d0[_0x162713('0x85')]=qs[_0x162713('0xbd')](_0x1add95[_0x162713('0x4b')]['sort']),_0x3e95d0[_0x162713('0x1')]=qs[_0x162713('0xb1')](_[_0x162713('0x9a')](_0x1add95['query'],_0x17b18e[_0x162713('0xb1')])),_0x3e95d0['where']['SmsInteractionId']=_0x5679be['id'];_0x1add95[_0x162713('0x4b')][_0x162713('0xc4')]&&(_0x3e95d0[_0x162713('0x1')]=_[_0x162713('0xe')](_0x3e95d0[_0x162713('0x1')],{[Op['or']]:_[_0x162713('0xab')](_0x3e95d0[_0x162713('0x86')],function(_0x1b5ffa){const _0x290654=_0x162713,_0x509675={};return _0x509675[_0x1b5ffa]={[Op['like']]:'%'+_0x1add95['query'][_0x290654('0xc4')]+'%'},_0x509675;})}));if(_0x1add95['query'][_0x162713('0x5a')]){const _0x386528=_0x1add95[_0x162713('0x4b')][_0x162713('0x5a')]['split'](','),_0x33626c={};_0x33626c[_0x386528[0x0]]={[Op['gte']]:moment(_0x386528[0x1])[_0x162713('0x7')](_0x162713('0x5c'))},_0x3e95d0[_0x162713('0x1')]=_[_0x162713('0xe')](_0x3e95d0[_0x162713('0x1')],_0x33626c);}return _0x3e95d0=_['merge']({},_0x3e95d0,_0x1add95[_0x162713('0xb5')]),db[_0x162713('0x4a')][_0x162713('0xa6')]({'where':_0x3e95d0[_0x162713('0x1')]})['then'](function(_0x33b678){const _0x1deaac=_0x162713;return _0x4fbadc['count']=_0x33b678,_0x1add95[_0x1deaac('0x4b')][_0x1deaac('0x0')]&&(_0x3e95d0['include']=[{'all':!![]}]),db[_0x1deaac('0x4a')]['findAll'](_0x3e95d0);})['then'](function(_0x1d91a5){const _0x367be2=_0x162713;return _0x4fbadc[_0x367be2('0xad')]=_0x1d91a5,_0x4fbadc;});}})[_0x1d8567('0x55')](respondWithFilteredResult(_0x44891e,_0x3e95d0))[_0x1d8567('0xa5')](handleError(_0x44891e,null));},exports['addTags']=function(_0x28f754,_0x1a6e2e){const _0x50355b=_0x369c82;return db[_0x50355b('0x23')][_0x50355b('0x10')]({'where':{'id':_0x28f754['params']['id']}})[_0x50355b('0x55')](function(_0x12723d){const _0x483386=_0x50355b;if(_0x12723d)return _0x12723d[_0x483386('0x3c')](_0x28f754[_0x483386('0x67')][_0x483386('0x7a')],{'through':_[_0x483386('0xd')](_0x28f754[_0x483386('0x67')],['ids','id'])})[_0x483386('0x55')](function(){const _0x532661=_0x483386;return db['Tag'][_0x532661('0x29')]({'attributes':['id',_0x532661('0x2e'),_0x532661('0xb8')],'where':{'id':_0x28f754[_0x532661('0x67')][_0x532661('0x7a')]}});})['then'](function(_0x47d4c5){const _0x159456=_0x483386;return socket[_0x159456('0x75')](_0x159456('0x39'),{'id':Number(_0x28f754[_0x159456('0x96')]['id']),'tags':_0x47d4c5||[]}),{'id':Number(_0x28f754[_0x159456('0x96')]['id']),'tags':_0x47d4c5||[]};});})[_0x50355b('0x55')](respondWithResult(_0x1a6e2e,null))[_0x50355b('0xa5')](handleError(_0x1a6e2e,null));},exports[_0x369c82('0x20')]=function(_0x35b0d1,_0x389921){const _0x1d9433=_0x369c82;return db['SmsInteraction'][_0x1d9433('0x10')]({'where':{'id':_0x35b0d1[_0x1d9433('0x96')]['id']}})[_0x1d9433('0x55')](handleEntityNotFound(_0x389921,null))[_0x1d9433('0x55')](function(_0x4df111){const _0x51fd3b=_0x1d9433;if(_0x4df111)return _0x4df111[_0x51fd3b('0x20')](_0x35b0d1[_0x51fd3b('0x4b')][_0x51fd3b('0x7a')]);})[_0x1d9433('0x55')](respondWithStatusCode(_0x389921,null))[_0x1d9433('0xa5')](handleError(_0x389921,null));},exports[_0x369c82('0x3e')]=function(_0xd23ab2,_0x3d6c11){const _0x354e72=_0x369c82,_0x10a895=moment()[_0x354e72('0x52')]()[_0x354e72('0x9f')](),_0x593c20=path[_0x354e72('0x60')](config['root'],_0x354e72('0xc2'),_0x354e72('0x7e')),_0x20efe0=path[_0x354e72('0x60')](_0x593c20,_0x10a895),_0x3710c0=util[_0x354e72('0x7')](_0x354e72('0x81'),_0xd23ab2[_0x354e72('0x96')]['id'],_0x10a895),_0x4ca502=path[_0x354e72('0x60')](_0x593c20,_0x3710c0),_0x4a1d24=[];_0x4a1d24['push']({'model':db[_0x354e72('0x1c')],'as':_0x354e72('0x1c'),'attributes':['id','fullname'],'raw':!![]}),_0x4a1d24['push']({'model':db[_0x354e72('0x46')],'as':_0x354e72('0x26'),'attributes':['id',_0x354e72('0x43'),_0x354e72('0x40')],'raw':!![]});const _0x1af846=[{'model':db[_0x354e72('0x4a')],'as':_0x354e72('0x95'),'attributes':['id',_0x354e72('0x67'),_0x354e72('0x72'),_0x354e72('0xae'),_0x354e72('0x47'),_0x354e72('0x8')],'include':_0x4a1d24}];return _0x1af846[_0x354e72('0xcf')]({'model':db[_0x354e72('0x87')],'as':'Account','attributes':['id','name']}),_0x1af846[_0x354e72('0xcf')]({'model':db[_0x354e72('0x1c')],'as':_0x354e72('0x6f'),'attributes':['id',_0x354e72('0x3')]}),db['SmsInteraction'][_0x354e72('0x10')]({'where':{'id':_0xd23ab2['params']['id']},'include':_0x1af846})[_0x354e72('0x55')](handleEntityNotFound(_0x3d6c11,null))[_0x354e72('0x55')](function(_0x12dffc){const _0x4b02bc=_0x354e72;if(_0x12dffc){const _0x30ed88=_0x12dffc['get']({'plain':!![]});fs['mkdirSync'](_0x20efe0);const _0x1af999={'format':'A4','border':'10px','header':{'height':_0x4b02bc('0x13'),'contents':{'first':_0x4b02bc('0x3b')}},'footer':{'height':_0x4b02bc('0xaa'),'contents':{'default':util[_0x4b02bc('0x7')](_0x4b02bc('0xca'),util[_0x4b02bc('0x7')](_0x4b02bc('0x2'),_0x4b02bc('0x9b'),_0x30ed88['id']),moment()[_0x4b02bc('0x7')](_0x4b02bc('0xb'))[_0x4b02bc('0x9f')]())}}},_0x3650b3={'channel':_0x4b02bc('0x9b'),'account':_0x30ed88[_0x4b02bc('0x19')][_0x4b02bc('0x2e')],'agent':_0x30ed88['Owner']?_0x30ed88[_0x4b02bc('0x6f')]['fullname']:_0x4b02bc('0x5'),'createdAt':moment(_0x30ed88[_0x4b02bc('0x72')])[_0x4b02bc('0x7')](_0x4b02bc('0x5c'))[_0x4b02bc('0x9f')](),'closedAt':_0x30ed88[_0x4b02bc('0x22')]?moment(_0x30ed88[_0x4b02bc('0xb4')])[_0x4b02bc('0x7')](_0x4b02bc('0x5c'))[_0x4b02bc('0x9f')]():'','disposition':_0x30ed88[_0x4b02bc('0x6b')],'messages':_(_0x30ed88['Messages'])[_0x4b02bc('0xc4')]({'secret':![]})[_0x4b02bc('0xab')](function(_0x19c959){const _0xb2e97d=_0x4b02bc;return{'date':moment(_0x19c959[_0xb2e97d('0x72')])[_0xb2e97d('0x7')](_0xb2e97d('0x5c'))['toString'](),'sender':_0x19c959['direction']===_0xb2e97d('0x50')?_0x19c959[_0xb2e97d('0x1c')]?_0x19c959[_0xb2e97d('0x1c')][_0xb2e97d('0x3')]:_0xb2e97d('0xd3'):_0x19c959[_0xb2e97d('0x26')]['firstName']+(_0x19c959[_0xb2e97d('0x26')][_0xb2e97d('0x40')]?'\x20'+_0x19c959['Contact'][_0xb2e97d('0x40')]:''),'body':_0x19c959[_0xb2e97d('0x67')],'direction':_0x19c959[_0xb2e97d('0xae')]===_0xb2e97d('0x50')?'A':'C','secret':_0x19c959[_0xb2e97d('0x47')],'read':_0x19c959[_0xb2e97d('0x8')]};})[_0x4b02bc('0xaf')]()};return ejs['renderFile'](path[_0x4b02bc('0x60')](config[_0x4b02bc('0x30')],_0x4b02bc('0xba'),_0x4b02bc('0xcd'),'downloadInteraction.html'),{'interaction':_0x3650b3})['then'](function(_0xbfa6ac){return new Promise(function(_0x662c34,_0x7c2720){const _0x3098d1=a553_0x4ab7;pdf[_0x3098d1('0x78')](_0xbfa6ac,_0x1af999)[_0x3098d1('0x68')](path[_0x3098d1('0x60')](_0x20efe0,_0x3098d1('0x6a')+_0x30ed88['id']+'-'+_0x10a895+'.pdf'),function(_0x2b2eec,_0x29aa11){if(_0x2b2eec)return _0x7c2720(_0x2b2eec);_0x662c34(_0x29aa11);});});})[_0x4b02bc('0x55')](function(){const _0x1a587b=_0x4b02bc;return new Promise(function(_0x74036a,_0x222b1c){zipdir(_0x20efe0,{'saveTo':_0x4ca502},function(_0xc64274,_0x331741){if(_0xc64274)return _0x222b1c(_0xc64274);return _0x74036a(_0x331741);});})['then'](function(){return new Promise(function(_0x4f2ddb,_0x3cde44){rimraf(_0x20efe0,function(_0xa3d029){if(_0xa3d029)_0x3cde44(_0xa3d029);return _0x4f2ddb();});});})[_0x1a587b('0x55')](function(){return _0x3d6c11['download'](_0x4ca502,_0x3710c0,function(_0x1f8afd){const _0x1e4cac=a553_0x4ab7;_0x1f8afd?console[_0x1e4cac('0x62')](_0x1e4cac('0xbc'),_0x1f8afd):fs['unlinkSync'](_0x4ca502);});});});}else return _0x3d6c11['sendStatus'](0xc8);})[_0x354e72('0xa5')](handleError(_0x3d6c11,null));}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.events.js b/server/api/smsInteraction/smsInteraction.events.js index 7859519..61dcdad 100644 --- a/server/api/smsInteraction/smsInteraction.events.js +++ b/server/api/smsInteraction/smsInteraction.events.js @@ -1 +1 @@ -const a554_0x390e=['findAll','../../mysqldb','then','addHook','update','Users','getUsers','exports','remove','SmsMessage','setMaxListeners','SmsInteraction','setDataValue','catch','emit'];(function(_0x20894d,_0x390e4f){const _0x5f4f6a=function(_0x273a6e){while(--_0x273a6e){_0x20894d['push'](_0x20894d['shift']());}};_0x5f4f6a(++_0x390e4f);}(a554_0x390e,0x17e));const a554_0x5f4f=function(_0x20894d,_0x390e4f){_0x20894d=_0x20894d-0x0;let _0x5f4f6a=a554_0x390e[_0x20894d];return _0x5f4f6a;};const _0x2a6cbc=a554_0x5f4f;'use strict';const EventEmitter=require('events'),SmsInteraction=require(_0x2a6cbc('0x9'))['db'][_0x2a6cbc('0x4')],SmsMessage=require(_0x2a6cbc('0x9'))['db'][_0x2a6cbc('0x2')],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents[_0x2a6cbc('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':_0x2a6cbc('0xc'),'afterDestroy':_0x2a6cbc('0x1')};function emitEvent(_0x273a6e){return function(_0x31233f){const _0x4ed0ac=a554_0x5f4f;_0x31233f[_0x4ed0ac('0xe')]({'attributes':['id'],'raw':!![]})[_0x4ed0ac('0xa')](function(_0x2da360){const _0x426af5=_0x4ed0ac;return _0x31233f[_0x426af5('0x5')](_0x426af5('0xd'),_0x2da360['map'](function(_0x22b09c){return{'id':_0x22b09c['id']};})),SmsMessage[_0x426af5('0x8')]({'where':{'SmsInteractionId':_0x31233f['id'],'direction':'in','read':![]},'raw':!![]});})[_0x4ed0ac('0xa')](function(_0x56db62){const _0x19e920=_0x4ed0ac;_0x31233f[_0x19e920('0x5')]('unreadMessages',_0x56db62['length']),SmsInteractionEvents[_0x19e920('0x7')](_0x273a6e+':'+_0x31233f['id'],_0x31233f),SmsInteractionEvents[_0x19e920('0x7')](_0x273a6e,_0x31233f);})[_0x4ed0ac('0x6')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsInteraction[_0x2a6cbc('0xb')](e,emitEvent(event));}}module[_0x2a6cbc('0x0')]=SmsInteractionEvents; \ No newline at end of file +const a554_0xab11=['../../mysqldb','update','setMaxListeners','addHook','unreadMessages','getUsers','remove','catch','save','SmsMessage','emit','then','length','setDataValue','Users','SmsInteraction','map'];(function(_0x3c29f6,_0xab110d){const _0x129b3d=function(_0x1310e5){while(--_0x1310e5){_0x3c29f6['push'](_0x3c29f6['shift']());}};_0x129b3d(++_0xab110d);}(a554_0xab11,0x1cf));const a554_0x129b=function(_0x3c29f6,_0xab110d){_0x3c29f6=_0x3c29f6-0x0;let _0x129b3d=a554_0xab11[_0x3c29f6];return _0x129b3d;};const _0x175f0d=a554_0x129b;'use strict';const EventEmitter=require('events'),SmsInteraction=require(_0x175f0d('0xd'))['db'][_0x175f0d('0xb')],SmsMessage=require(_0x175f0d('0xd'))['db'][_0x175f0d('0x5')],SmsInteractionEvents=new EventEmitter();SmsInteractionEvents[_0x175f0d('0xf')](0x0);const events={'afterCreate':_0x175f0d('0x4'),'afterUpdate':_0x175f0d('0xe'),'afterDestroy':_0x175f0d('0x2')};function emitEvent(_0x1310e5){return function(_0x1814a6){const _0x367e68=a554_0x129b;_0x1814a6[_0x367e68('0x1')]({'attributes':['id'],'raw':!![]})[_0x367e68('0x7')](function(_0x1a316a){const _0x1f61f4=_0x367e68;return _0x1814a6[_0x1f61f4('0x9')](_0x1f61f4('0xa'),_0x1a316a[_0x1f61f4('0xc')](function(_0x198955){return{'id':_0x198955['id']};})),SmsMessage['findAll']({'where':{'SmsInteractionId':_0x1814a6['id'],'direction':'in','read':![]},'raw':!![]});})[_0x367e68('0x7')](function(_0xbc87e7){const _0x4b8f1e=_0x367e68;_0x1814a6[_0x4b8f1e('0x9')](_0x4b8f1e('0x0'),_0xbc87e7[_0x4b8f1e('0x8')]),SmsInteractionEvents[_0x4b8f1e('0x6')](_0x1310e5+':'+_0x1814a6['id'],_0x1814a6),SmsInteractionEvents[_0x4b8f1e('0x6')](_0x1310e5,_0x1814a6);})[_0x367e68('0x3')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsInteraction[_0x175f0d('0x10')](e,emitEvent(event));}}module['exports']=SmsInteractionEvents; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.model.js b/server/api/smsInteraction/smsInteraction.model.js index a698f4e..0daa816 100644 --- a/server/api/smsInteraction/smsInteraction.model.js +++ b/server/api/smsInteraction/smsInteraction.model.js @@ -1 +1 @@ -const a555_0x2bc0=['moment','exports','define','sms_interactions','format','YYYY-MM-DD\x20HH:mm:ss','./smsInteraction.attributes','closed','changed','closedAt','SmsInteraction'];(function(_0x5f30d,_0x2bc01f){const _0xbe3ef0=function(_0x3b8081){while(--_0x3b8081){_0x5f30d['push'](_0x5f30d['shift']());}};_0xbe3ef0(++_0x2bc01f);}(a555_0x2bc0,0xc4));const a555_0xbe3e=function(_0x5f30d,_0x2bc01f){_0x5f30d=_0x5f30d-0x0;let _0xbe3ef0=a555_0x2bc0[_0x5f30d];return _0xbe3ef0;};const _0x331490=a555_0xbe3e;'use strict';const moment=require(_0x331490('0x2')),attributes=require(_0x331490('0x8'));module[_0x331490('0x3')]=function(_0x3b8081){const _0x156ed1=_0x331490,_0xcaed1=_0x3b8081[_0x156ed1('0x4')](_0x156ed1('0x1'),attributes,{'tableName':_0x156ed1('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0xecb99b){const _0x4b036a=_0x156ed1;_0xecb99b[_0x4b036a('0xa')](_0x4b036a('0x9'))&&(_0xecb99b[_0x4b036a('0x0')]=moment()[_0x4b036a('0x6')](_0x4b036a('0x7')));}}});return _0xcaed1;}; \ No newline at end of file +const a555_0x2aca=['sms_interactions','moment','YYYY-MM-DD\x20HH:mm:ss','closed','./smsInteraction.attributes','changed','closedAt','exports','format','define'];(function(_0x182202,_0x2acaf6){const _0x289fd6=function(_0xce2d60){while(--_0xce2d60){_0x182202['push'](_0x182202['shift']());}};_0x289fd6(++_0x2acaf6);}(a555_0x2aca,0x11d));const a555_0x289f=function(_0x182202,_0x2acaf6){_0x182202=_0x182202-0x0;let _0x289fd6=a555_0x2aca[_0x182202];return _0x289fd6;};const _0x3aabd2=a555_0x289f;'use strict';const moment=require(_0x3aabd2('0x6')),attributes=require(_0x3aabd2('0x9'));module[_0x3aabd2('0x2')]=function(_0xce2d60){const _0x43669f=_0x3aabd2,_0x6b1463=_0xce2d60[_0x43669f('0x4')]('SmsInteraction',attributes,{'tableName':_0x43669f('0x5'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x578e14){const _0x3507b7=_0x43669f;_0x578e14[_0x3507b7('0x0')](_0x3507b7('0x8'))&&(_0x578e14[_0x3507b7('0x1')]=moment()[_0x3507b7('0x3')](_0x3507b7('0x7')));}}});return _0x6b1463;}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.rpc.js b/server/api/smsInteraction/smsInteraction.rpc.js index 58a33fd..515039d 100644 --- a/server/api/smsInteraction/smsInteraction.rpc.js +++ b/server/api/smsInteraction/smsInteraction.rpc.js @@ -1 +1 @@ -const a556_0x455e=['body','update','error','message','stringify','rpc','ids','debug','omit','UpdateSmsInteraction','../../mysqldb','findOne','raw','where','then','AddTags','addTags','SmsInteraction','./smsInteraction.socket','options','../../config/logger','info'];(function(_0x55fdf4,_0x455eb5){const _0x298e0c=function(_0x1eef03){while(--_0x1eef03){_0x55fdf4['push'](_0x55fdf4['shift']());}};_0x298e0c(++_0x455eb5);}(a556_0x455e,0xaa));const a556_0x298e=function(_0x55fdf4,_0x455eb5){_0x55fdf4=_0x55fdf4-0x0;let _0x298e0c=a556_0x455e[_0x55fdf4];return _0x298e0c;};const _0x1a8c49=a556_0x298e;'use strict';const _=require('lodash'),db=require(_0x1a8c49('0x10'))['db'],logger=require(_0x1a8c49('0x4'))(_0x1a8c49('0xb')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x1a8c49('0x2'))['register'](socket),exports[_0x1a8c49('0xf')]=function(_0x1eef03){const _0x46b58b=this;return new Promise(function(_0x4d5f38,_0x5ea250){const _0x1a33f7=a556_0x298e;return db[_0x1a33f7('0x1')][_0x1a33f7('0x7')](_0x1eef03[_0x1a33f7('0x6')],{'raw':_0x1eef03['options']?_0x1eef03[_0x1a33f7('0x3')][_0x1a33f7('0x12')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1eef03[_0x1a33f7('0x3')]?_0x1eef03[_0x1a33f7('0x3')][_0x1a33f7('0x13')]||null:null,'attributes':_0x1eef03[_0x1a33f7('0x3')]?_0x1eef03[_0x1a33f7('0x3')]['attributes']||null:null,'limit':_0x1eef03[_0x1a33f7('0x3')]?_0x1eef03[_0x1a33f7('0x3')]['limit']||null:null})['then'](function(_0x560b58){const _0x17465f=_0x1a33f7;logger['info'](_0x17465f('0xf'),_0x1eef03),logger['debug']('UpdateSmsInteraction',_0x1eef03,JSON[_0x17465f('0xa')](_0x560b58)),_0x4d5f38(_0x560b58);})['catch'](function(_0xcf6e9c){const _0x2e0248=_0x1a33f7;logger[_0x2e0248('0x8')](_0x2e0248('0xf'),_0xcf6e9c[_0x2e0248('0x9')],_0x1eef03),_0x5ea250(_0x46b58b[_0x2e0248('0x8')](0x1f4,_0xcf6e9c[_0x2e0248('0x9')]));});});},exports['AddTagsToSmsInteraction']=function(_0x28b3f0){const _0x236c1f=this;return new Promise(function(_0x49ee06,_0x37c96e){const _0x34383c=a556_0x298e;return db[_0x34383c('0x1')][_0x34383c('0x11')]({'where':_0x28b3f0[_0x34383c('0x3')]?_0x28b3f0[_0x34383c('0x3')][_0x34383c('0x13')]||null:null})[_0x34383c('0x14')](function(_0x43ae96){const _0x1b324a=_0x34383c;if(_0x43ae96)return _0x43ae96[_0x1b324a('0x0')](_0x28b3f0['body'][_0x1b324a('0xc')],{'through':_[_0x1b324a('0xe')](_0x28b3f0[_0x1b324a('0x6')],[_0x1b324a('0xc'),'id'])});})[_0x34383c('0x14')](function([_0xb02971]){const _0x176b22=_0x34383c;logger[_0x176b22('0x5')](_0x176b22('0x15'),_0x28b3f0),logger[_0x176b22('0xd')](_0x176b22('0x15'),_0x28b3f0,JSON[_0x176b22('0xa')](_0xb02971)),_0x49ee06(_0xb02971);})['catch'](function(_0x20be06){const _0x23d6a1=_0x34383c;logger[_0x23d6a1('0x8')]('AddTags',_0x20be06[_0x23d6a1('0x9')],_0x28b3f0),_0x37c96e(_0x236c1f['error'](0x1f4,_0x20be06['message']));});});}; \ No newline at end of file +const a556_0x3294=['ids','attributes','findOne','where','raw','info','options','AddTags','../../mysqldb','debug','error','body','then','./smsInteraction.socket','message','omit','stringify','update','addTags','../../rediscache','AddTagsToSmsInteraction','limit','register','SmsInteraction','catch','UpdateSmsInteraction'];(function(_0xd8bb7d,_0x329454){const _0x473f88=function(_0x3f9085){while(--_0x3f9085){_0xd8bb7d['push'](_0xd8bb7d['shift']());}};_0x473f88(++_0x329454);}(a556_0x3294,0x19f));const a556_0x473f=function(_0xd8bb7d,_0x329454){_0xd8bb7d=_0xd8bb7d-0x0;let _0x473f88=a556_0x3294[_0xd8bb7d];return _0x473f88;};const _0x18c9e8=a556_0x473f;'use strict';const _=require('lodash'),db=require(_0x18c9e8('0x9'))['db'],logger=require('../../config/logger')('rpc'),{getSocket}=require(_0x18c9e8('0x14')),socket=getSocket();require(_0x18c9e8('0xe'))[_0x18c9e8('0x17')](socket),exports[_0x18c9e8('0x0')]=function(_0x3f9085){const _0x427578=this;return new Promise(function(_0xe55697,_0xef30bf){const _0x2c1bcd=a556_0x473f;return db['SmsInteraction'][_0x2c1bcd('0x12')](_0x3f9085[_0x2c1bcd('0xc')],{'raw':_0x3f9085[_0x2c1bcd('0x7')]?_0x3f9085['options'][_0x2c1bcd('0x5')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3f9085[_0x2c1bcd('0x7')]?_0x3f9085[_0x2c1bcd('0x7')][_0x2c1bcd('0x4')]||null:null,'attributes':_0x3f9085['options']?_0x3f9085[_0x2c1bcd('0x7')][_0x2c1bcd('0x2')]||null:null,'limit':_0x3f9085[_0x2c1bcd('0x7')]?_0x3f9085[_0x2c1bcd('0x7')][_0x2c1bcd('0x16')]||null:null})[_0x2c1bcd('0xd')](function(_0x25da6d){const _0x13b9af=_0x2c1bcd;logger[_0x13b9af('0x6')]('UpdateSmsInteraction',_0x3f9085),logger[_0x13b9af('0xa')]('UpdateSmsInteraction',_0x3f9085,JSON[_0x13b9af('0x11')](_0x25da6d)),_0xe55697(_0x25da6d);})['catch'](function(_0x12aba8){const _0x4eb1b3=_0x2c1bcd;logger[_0x4eb1b3('0xb')]('UpdateSmsInteraction',_0x12aba8['message'],_0x3f9085),_0xef30bf(_0x427578['error'](0x1f4,_0x12aba8[_0x4eb1b3('0xf')]));});});},exports[_0x18c9e8('0x15')]=function(_0x764f45){const _0x34f137=this;return new Promise(function(_0x284ab8,_0x39b290){const _0x53f20e=a556_0x473f;return db[_0x53f20e('0x18')][_0x53f20e('0x3')]({'where':_0x764f45[_0x53f20e('0x7')]?_0x764f45[_0x53f20e('0x7')][_0x53f20e('0x4')]||null:null})[_0x53f20e('0xd')](function(_0x490af6){const _0x9c04f7=_0x53f20e;if(_0x490af6)return _0x490af6[_0x9c04f7('0x13')](_0x764f45[_0x9c04f7('0xc')][_0x9c04f7('0x1')],{'through':_[_0x9c04f7('0x10')](_0x764f45[_0x9c04f7('0xc')],[_0x9c04f7('0x1'),'id'])});})[_0x53f20e('0xd')](function([_0x1424b1]){const _0x5aa5e0=_0x53f20e;logger[_0x5aa5e0('0x6')](_0x5aa5e0('0x8'),_0x764f45),logger['debug'](_0x5aa5e0('0x8'),_0x764f45,JSON[_0x5aa5e0('0x11')](_0x1424b1)),_0x284ab8(_0x1424b1);})[_0x53f20e('0x19')](function(_0x1382ab){const _0x4a8ebf=_0x53f20e;logger[_0x4a8ebf('0xb')](_0x4a8ebf('0x8'),_0x1382ab[_0x4a8ebf('0xf')],_0x764f45),_0x39b290(_0x34f137[_0x4a8ebf('0xb')](0x1f4,_0x1382ab[_0x4a8ebf('0xf')]));});});}; \ No newline at end of file diff --git a/server/api/smsInteraction/smsInteraction.socket.js b/server/api/smsInteraction/smsInteraction.socket.js index ddafd7c..6ba4a46 100644 --- a/server/api/smsInteraction/smsInteraction.socket.js +++ b/server/api/smsInteraction/smsInteraction.socket.js @@ -1 +1 @@ -const a557_0x1354=['update','register','length','smsInteraction:','save','emit','remove'];(function(_0x3e750d,_0x135406){const _0x1142f7=function(_0x5bf551){while(--_0x5bf551){_0x3e750d['push'](_0x3e750d['shift']());}};_0x1142f7(++_0x135406);}(a557_0x1354,0x126));const a557_0x1142=function(_0x3e750d,_0x135406){_0x3e750d=_0x3e750d-0x0;let _0x1142f7=a557_0x1354[_0x3e750d];return _0x1142f7;};const _0x1734ab=a557_0x1142;'use strict';const SmsInteractionEvents=require('./smsInteraction.events'),events=[_0x1734ab('0x4'),_0x1734ab('0x6'),_0x1734ab('0x0')];function createListener(_0x5bf551,_0x118173){return function(_0x337b96){const _0x1bf8e8=a557_0x1142;_0x118173[_0x1bf8e8('0x5')](_0x5bf551,_0x337b96);};}exports[_0x1734ab('0x1')]=function(_0x401265){const _0x16b4f8=_0x1734ab;for(let _0x307346=0x0,_0x37f51d=events[_0x16b4f8('0x2')];_0x307346<_0x37f51d;_0x307346++){const _0x37924b=events[_0x307346],_0x4a9a49=createListener(_0x16b4f8('0x3')+_0x37924b,_0x401265);SmsInteractionEvents['on'](_0x37924b,_0x4a9a49);}}; \ No newline at end of file +const a557_0x20b8=['smsInteraction:','remove','save','register','update','./smsInteraction.events'];(function(_0x4205cd,_0x20b8ac){const _0x216bd7=function(_0x445164){while(--_0x445164){_0x4205cd['push'](_0x4205cd['shift']());}};_0x216bd7(++_0x20b8ac);}(a557_0x20b8,0xc9));const a557_0x216b=function(_0x4205cd,_0x20b8ac){_0x4205cd=_0x4205cd-0x0;let _0x216bd7=a557_0x20b8[_0x4205cd];return _0x216bd7;};const _0x5a8b3e=a557_0x216b;'use strict';const SmsInteractionEvents=require(_0x5a8b3e('0x2')),events=[_0x5a8b3e('0x5'),_0x5a8b3e('0x4'),_0x5a8b3e('0x1')];function createListener(_0x445164,_0x23ecf8){return function(_0x38464f){_0x23ecf8['emit'](_0x445164,_0x38464f);};}exports[_0x5a8b3e('0x0')]=function(_0x1635ff){const _0x2bbcf3=_0x5a8b3e;for(let _0x869896=0x0,_0x3ab06a=events['length'];_0x869896<_0x3ab06a;_0x869896++){const _0x51ca9a=events[_0x869896],_0x10f36d=createListener(_0x2bbcf3('0x3')+_0x51ca9a,_0x1635ff);SmsInteractionEvents['on'](_0x51ca9a,_0x10f36d);}}; \ No newline at end of file diff --git a/server/api/smsMessage/index.js b/server/api/smsMessage/index.js index 74e87bc..fe59e65 100644 --- a/server/api/smsMessage/index.js +++ b/server/api/smsMessage/index.js @@ -1 +1 @@ -const a558_0x486b=['/:id','/:id/reject','sms','./smsMessage.controller','Router','smsmessage:create','isAuthenticated','accept','post','tracked','exports','put','update','get','delete','describe','express','../../components/auth/service','destroy','create','status','/:id/status'];(function(_0x15e2e7,_0x486bf0){const _0x52cdc1=function(_0x31b8f0){while(--_0x31b8f0){_0x15e2e7['push'](_0x15e2e7['shift']());}};_0x52cdc1(++_0x486bf0);}(a558_0x486b,0xfc));const a558_0x52cd=function(_0x15e2e7,_0x486bf0){_0x15e2e7=_0x15e2e7-0x0;let _0x52cdc1=a558_0x486b[_0x15e2e7];return _0x52cdc1;};const _0xcc7a06=a558_0x52cd;'use strict';const express=require(_0xcc7a06('0x6')),router=express[_0xcc7a06('0x10')](),auth=require(_0xcc7a06('0x7')),interaction=require('../../components/interaction/service'),controller=require(_0xcc7a06('0xf'));router[_0xcc7a06('0x3')]('/',auth[_0xcc7a06('0x12')](),controller['index']),router[_0xcc7a06('0x3')]('/describe',auth['isAuthenticated'](),controller[_0xcc7a06('0x5')]),router['get'](_0xcc7a06('0xc'),auth[_0xcc7a06('0x12')](),controller['show']),router[_0xcc7a06('0x14')]('/',auth[_0xcc7a06('0x12')](),interaction[_0xcc7a06('0x15')](_0xcc7a06('0xe'),_0xcc7a06('0x11')),controller[_0xcc7a06('0x9')]),router[_0xcc7a06('0x14')](_0xcc7a06('0xb'),controller[_0xcc7a06('0xa')]),router[_0xcc7a06('0x1')](_0xcc7a06('0xc'),auth[_0xcc7a06('0x12')](),controller[_0xcc7a06('0x2')]),router[_0xcc7a06('0x1')]('/:id/accept',auth[_0xcc7a06('0x12')](),controller[_0xcc7a06('0x13')]),router[_0xcc7a06('0x1')](_0xcc7a06('0xd'),auth[_0xcc7a06('0x12')](),controller['reject']),router[_0xcc7a06('0x4')](_0xcc7a06('0xc'),auth[_0xcc7a06('0x12')](),controller[_0xcc7a06('0x8')]),module[_0xcc7a06('0x0')]=router; \ No newline at end of file +const a558_0x4d81=['put','index','delete','/:id/status','/:id/accept','accept','show','post','reject','/:id','Router','express','isAuthenticated','/describe','/:id/reject','smsmessage:create','../../components/auth/service','status','../../components/interaction/service','get','destroy'];(function(_0x3856b9,_0x4d81cf){const _0x397146=function(_0x28140a){while(--_0x28140a){_0x3856b9['push'](_0x3856b9['shift']());}};_0x397146(++_0x4d81cf);}(a558_0x4d81,0x97));const a558_0x3971=function(_0x3856b9,_0x4d81cf){_0x3856b9=_0x3856b9-0x0;let _0x397146=a558_0x4d81[_0x3856b9];return _0x397146;};const _0x1755c7=a558_0x3971;'use strict';const express=require(_0x1755c7('0x7')),router=express[_0x1755c7('0x6')](),auth=require(_0x1755c7('0xc')),interaction=require(_0x1755c7('0xe')),controller=require('./smsMessage.controller');router[_0x1755c7('0xf')]('/',auth[_0x1755c7('0x8')](),controller[_0x1755c7('0x12')]),router[_0x1755c7('0xf')](_0x1755c7('0x9'),auth[_0x1755c7('0x8')](),controller['describe']),router['get'](_0x1755c7('0x5'),auth[_0x1755c7('0x8')](),controller[_0x1755c7('0x2')]),router[_0x1755c7('0x3')]('/',auth[_0x1755c7('0x8')](),interaction['tracked']('sms',_0x1755c7('0xb')),controller['create']),router[_0x1755c7('0x3')](_0x1755c7('0x14'),controller[_0x1755c7('0xd')]),router['put'](_0x1755c7('0x5'),auth[_0x1755c7('0x8')](),controller['update']),router['put'](_0x1755c7('0x0'),auth['isAuthenticated'](),controller[_0x1755c7('0x1')]),router[_0x1755c7('0x11')](_0x1755c7('0xa'),auth[_0x1755c7('0x8')](),controller[_0x1755c7('0x4')]),router[_0x1755c7('0x13')](_0x1755c7('0x5'),auth[_0x1755c7('0x8')](),controller[_0x1755c7('0x10')]),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 f5a0b4a..2174568 100644 --- a/server/api/smsMessage/smsMessage.attributes.js +++ b/server/api/smsMessage/smsMessage.attributes.js @@ -1 +1 @@ -const a559_0x2ed3=['TEXT','sequelize','BOOLEAN','out','ENUM','medium','exports','STRING','DATE'];(function(_0x445851,_0x2ed32c){const _0x130110=function(_0x21dc53){while(--_0x21dc53){_0x445851['push'](_0x445851['shift']());}};_0x130110(++_0x2ed32c);}(a559_0x2ed3,0x103));const a559_0x1301=function(_0x445851,_0x2ed32c){_0x445851=_0x445851-0x0;let _0x130110=a559_0x2ed3[_0x445851];return _0x130110;};const _0x361972=a559_0x1301;'use strict';const Sequelize=require(_0x361972('0x3'));module[_0x361972('0x8')]={'body':{'type':Sequelize[_0x361972('0x2')](_0x361972('0x7')),'allowNull':![]},'read':{'type':Sequelize[_0x361972('0x4')],'defaultValue':![]},'direction':{'type':Sequelize[_0x361972('0x6')]('in',_0x361972('0x5')),'defaultValue':_0x361972('0x5'),'allowNull':![]},'messageId':{'type':Sequelize[_0x361972('0x0')](0xbe)},'phone':{'type':Sequelize[_0x361972('0x0')]},'readAt':{'type':Sequelize[_0x361972('0x1')]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]}}; \ No newline at end of file +const a559_0x429f=['DATE','exports','TEXT','ENUM','sequelize','STRING','out','BOOLEAN','medium'];(function(_0x16f078,_0x429ffa){const _0x3cacff=function(_0xba7319){while(--_0xba7319){_0x16f078['push'](_0x16f078['shift']());}};_0x3cacff(++_0x429ffa);}(a559_0x429f,0x195));const a559_0x3cac=function(_0x16f078,_0x429ffa){_0x16f078=_0x16f078-0x0;let _0x3cacff=a559_0x429f[_0x16f078];return _0x3cacff;};const _0x2cca78=a559_0x3cac;'use strict';const Sequelize=require(_0x2cca78('0x4'));module[_0x2cca78('0x1')]={'body':{'type':Sequelize[_0x2cca78('0x2')](_0x2cca78('0x8')),'allowNull':![]},'read':{'type':Sequelize[_0x2cca78('0x7')],'defaultValue':![]},'direction':{'type':Sequelize[_0x2cca78('0x3')]('in','out'),'defaultValue':_0x2cca78('0x6'),'allowNull':![]},'messageId':{'type':Sequelize['STRING'](0xbe)},'phone':{'type':Sequelize[_0x2cca78('0x5')]},'readAt':{'type':Sequelize[_0x2cca78('0x0')]},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'providerName':{'type':Sequelize[_0x2cca78('0x5')]},'providerResponse':{'type':Sequelize[_0x2cca78('0x2')]}}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.controller.js b/server/api/smsMessage/smsMessage.controller.js index 6300b94..c7ce090 100644 --- a/server/api/smsMessage/smsMessage.controller.js +++ b/server/api/smsMessage/smsMessage.controller.js @@ -1 +1 @@ -const a560_0x5b7a=['twilio','SmsAccount','event','role','status','pick','groupName','params','attributes','rawAttributes','then','channel','accept','fields','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','request\x20sent','read','register','sequelize','fieldName','end','SmsAccount,\x20%s,\x20%s,\x20%s','request','sms','query','SmsInteractionId','util','SmsMessage,\x20%s,\x20%s','body','show','sent','EventManager','SmsInteraction','messageId','infobip','filters','findOne','plivio','error','YYYY-MM-DD\x20HH:mm:ss','SmsMessage,\x20%s,\x20%s,\x20%s','sendStatus','limit','Contact','model','client','include','undefined','../../rediscache','moment','jayson/promise','key','index','length','acceptMessage','rejectMessage','../../mysqldb','results','Content-Range','[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','interface','MessageSid','type','read1stAt','count','../../config/logger','intersection','http','offset','map','debug','SIP/%s','MessageUUID','agent','where','SmsAccountId','UserId','catch','./smsMessage.socket','inspect','stringify','get','describe','json','destroy','interaction','includeAll','create','result','api','CmContact','sms-interactions','info','sort','SmsMessage','null','filter','update','message','format','like','../../components/parsers/qs','reject','options','plivo','delivered','received\x20delivery\x20report\x20from','keys','name','merge','user','lodash','readAt'];(function(_0x6b5ca,_0x5b7a4a){const _0x49d671=function(_0x552564){while(--_0x552564){_0x6b5ca['push'](_0x6b5ca['shift']());}};_0x49d671(++_0x5b7a4a);}(a560_0x5b7a,0xc9));const a560_0x49d6=function(_0x6b5ca,_0x5b7a4a){_0x6b5ca=_0x6b5ca-0x0;let _0x49d671=a560_0x5b7a[_0x6b5ca];return _0x49d671;};const _0x32d245=a560_0x49d6;'use strict';const moment=require(_0x32d245('0x4a')),util=require(_0x32d245('0x33')),_=require(_0x32d245('0x17')),qs=require(_0x32d245('0xd')),logger=require('../../config/logger')(_0x32d245('0x1')),{getSocket}=require(_0x32d245('0x49')),socket=getSocket(),db=require(_0x32d245('0x51'))['db'],{Op}=require(_0x32d245('0x2b')),interaction_log=require(_0x32d245('0x5a'))(_0x32d245('0x3'));require(_0x32d245('0x67'))[_0x32d245('0x2a')](socket);const jayson=require(_0x32d245('0x4b')),client=jayson[_0x32d245('0x46')][_0x32d245('0x5c')]({'port':0x232c}),client9002=jayson[_0x32d245('0x46')]['http']({'port':0x232a});function respondWithRpcPromise(_0x552564,_0x9d04e,_0x195cef,_0x190720){return new Promise(function(_0x2969d9,_0x4b60ac){const _0x1c2d8c=a560_0x49d6,_0x4b12d6=_0x190720||client;return _0x4b12d6[_0x1c2d8c('0x2f')](_0x552564,_0x195cef)[_0x1c2d8c('0x23')](function(_0x31d675){const _0x429474=_0x1c2d8c;logger[_0x429474('0x4')](_0x429474('0x34'),_0x9d04e,_0x429474('0x28')),logger[_0x429474('0x5f')](_0x429474('0x41'),_0x9d04e,_0x429474('0x28'),JSON['stringify'](_0x31d675));if(_0x31d675[_0x429474('0x3f')]){if(_0x31d675[_0x429474('0x3f')]['code']===0x1f4)return logger[_0x429474('0x3f')](_0x429474('0x34'),_0x9d04e,_0x31d675[_0x429474('0x3f')][_0x429474('0xa')]),_0x4b60ac(_0x31d675[_0x429474('0x3f')][_0x429474('0xa')]);return logger[_0x429474('0x3f')](_0x429474('0x34'),_0x9d04e,_0x31d675[_0x429474('0x3f')][_0x429474('0xa')]),_0x2969d9(_0x31d675[_0x429474('0x3f')]['message']);}else logger[_0x429474('0x4')](_0x429474('0x34'),_0x9d04e,'request\x20sent'),_0x2969d9(_0x31d675[_0x429474('0x0')][_0x429474('0xa')]);})[_0x1c2d8c('0x66')](function(_0x16043a){const _0x34eedd=_0x1c2d8c;logger[_0x34eedd('0x3f')]('SmsMessage,\x20%s,\x20%s',_0x9d04e,_0x16043a),_0x4b60ac(_0x16043a);});});}function respondWithResult(_0x420fbf,_0x1a8635){return _0x1a8635=_0x1a8635||0xc8,function(_0x113694){const _0x396c2c=a560_0x49d6;if(_0x113694)return _0x420fbf['status'](_0x1a8635)[_0x396c2c('0x6c')](_0x113694);};}function respondWithFilteredResult(_0x5a819f,_0x435bd5){return function(_0x5a8e97){const _0x47e2e5=a560_0x49d6;if(_0x5a8e97){const _0x5a2107=_0x5a8e97[_0x47e2e5('0x59')],_0x596ba8=_0x435bd5[_0x47e2e5('0x5d')];let _0xe94e2f=_0x435bd5[_0x47e2e5('0x5d')]+_0x435bd5[_0x47e2e5('0x43')],_0x22d9ca;return _0xe94e2f>=_0x5a2107?(_0xe94e2f=_0x5a2107,_0x22d9ca=0xc8):_0x22d9ca=0xce,_0x5a819f[_0x47e2e5('0x1d')](_0x22d9ca),_0x5a819f['set'](_0x47e2e5('0x53'),_0x596ba8+'-'+_0xe94e2f+'/'+_0x5a2107)['json'](_0x5a8e97);}return null;};}function saveUpdates(_0x1fe622){return function(_0x36ef02){const _0x318aeb=a560_0x49d6;if(_0x36ef02)return _0x36ef02[_0x318aeb('0x9')](_0x1fe622)[_0x318aeb('0x23')](function(_0x4f2535){return _0x4f2535;});return null;};}function removeEntity(_0x1ed60f){return function(_0x39d372){const _0x3ad1c8=a560_0x49d6;if(_0x39d372)return _0x39d372[_0x3ad1c8('0x6d')]()[_0x3ad1c8('0x23')](function(){const _0x5b5409=_0x3ad1c8;_0x1ed60f[_0x5b5409('0x1d')](0xcc)[_0x5b5409('0x2d')]();});};}function handleEntityNotFound(_0x573dfe){return function(_0x11f3d0){const _0x231c6a=a560_0x49d6;return!_0x11f3d0&&_0x573dfe[_0x231c6a('0x42')](0x194),_0x11f3d0;};}function handleError(_0x43f669,_0x1c0db4){return _0x1c0db4=_0x1c0db4||0x1f4,function(_0x4ccc86){const _0x5b6f09=a560_0x49d6;logger['error'](_0x4ccc86['stack']),_0x4ccc86[_0x5b6f09('0x14')]&&delete _0x4ccc86[_0x5b6f09('0x14')],_0x43f669[_0x5b6f09('0x1d')](_0x1c0db4)['send'](_0x4ccc86);};}exports[_0x32d245('0x4d')]=function(_0x4a650b,_0x11e70c){const _0x108092=_0x32d245;let _0x51eea8={};const _0x5401a2={},_0x3953af={'count':0x0,'rows':[]},_0x356428=_['map'](db[_0x108092('0x6')][_0x108092('0x22')],function(_0x5e3173){const _0x5019f1=_0x108092;return{'name':_0x5e3173[_0x5019f1('0x2c')],'type':_0x5e3173[_0x5019f1('0x57')][_0x5019f1('0x4c')]};});_0x5401a2['model']=_['map'](_0x356428,_0x108092('0x14')),_0x5401a2[_0x108092('0x31')]=_[_0x108092('0x13')](_0x4a650b['query']),_0x5401a2['filters']=_[_0x108092('0x5b')](_0x5401a2[_0x108092('0x45')],_0x5401a2[_0x108092('0x31')]),_0x51eea8[_0x108092('0x21')]=_[_0x108092('0x5b')](_0x5401a2[_0x108092('0x45')],qs[_0x108092('0x26')](_0x4a650b[_0x108092('0x31')]['fields'])),_0x51eea8[_0x108092('0x21')]=_0x51eea8['attributes'][_0x108092('0x4e')]?_0x51eea8[_0x108092('0x21')]:_0x5401a2[_0x108092('0x45')];typeof _0x4a650b[_0x108092('0x31')]['nolimit']===_0x108092('0x48')&&(_0x51eea8[_0x108092('0x43')]=qs['limit'](_0x4a650b[_0x108092('0x31')]['limit']),_0x51eea8[_0x108092('0x5d')]=qs[_0x108092('0x5d')](_0x4a650b[_0x108092('0x31')][_0x108092('0x5d')]));_0x51eea8['order']=qs[_0x108092('0x5')](_0x4a650b['query'][_0x108092('0x5')]),_0x51eea8[_0x108092('0x63')]=qs[_0x108092('0x3c')](_[_0x108092('0x1e')](_0x4a650b['query'],_0x5401a2[_0x108092('0x3c')]),_0x356428);_0x4a650b[_0x108092('0x31')]['filter']&&(_0x51eea8[_0x108092('0x63')]=_[_0x108092('0x15')](_0x51eea8[_0x108092('0x63')],{[Op['or']]:_[_0x108092('0x5e')](_0x356428,function(_0x28a9c2){const _0x182adb=_0x108092;if(_0x28a9c2['type']!=='VIRTUAL'){const _0x4fdd36={};return _0x4fdd36[_0x28a9c2[_0x182adb('0x14')]]={[Op[_0x182adb('0xc')]]:'%'+_0x4a650b[_0x182adb('0x31')][_0x182adb('0x8')]+'%'},_0x4fdd36;}})}));_0x51eea8=_[_0x108092('0x15')]({},_0x51eea8,_0x4a650b[_0x108092('0xf')]);const _0x43216e={'where':_0x51eea8[_0x108092('0x63')]};return db[_0x108092('0x6')][_0x108092('0x59')](_0x43216e)['then'](function(_0xc1f051){const _0x35526d=_0x108092;return _0x3953af[_0x35526d('0x59')]=_0xc1f051,_0x4a650b[_0x35526d('0x31')]['includeAll']&&(_0x51eea8[_0x35526d('0x47')]=[{'all':!![]}]),db['SmsMessage']['findAll'](_0x51eea8);})['then'](function(_0x2a9720){return _0x3953af['rows']=_0x2a9720,_0x3953af;})[_0x108092('0x23')](respondWithFilteredResult(_0x11e70c,_0x51eea8))[_0x108092('0x66')](handleError(_0x11e70c,null));},exports[_0x32d245('0x36')]=function(_0x4107e6,_0x5aabdc){const _0x3b7f4d=_0x32d245;let _0x1fd133={'raw':!![],'where':{'id':_0x4107e6['params']['id']}};const _0x519a07={};return _0x519a07[_0x3b7f4d('0x45')]=_[_0x3b7f4d('0x13')](db['SmsMessage'][_0x3b7f4d('0x22')]),_0x519a07[_0x3b7f4d('0x31')]=_['keys'](_0x4107e6[_0x3b7f4d('0x31')]),_0x519a07[_0x3b7f4d('0x3c')]=_[_0x3b7f4d('0x5b')](_0x519a07[_0x3b7f4d('0x45')],_0x519a07[_0x3b7f4d('0x31')]),_0x1fd133[_0x3b7f4d('0x21')]=_[_0x3b7f4d('0x5b')](_0x519a07[_0x3b7f4d('0x45')],qs[_0x3b7f4d('0x26')](_0x4107e6['query'][_0x3b7f4d('0x26')])),_0x1fd133['attributes']=_0x1fd133[_0x3b7f4d('0x21')]['length']?_0x1fd133[_0x3b7f4d('0x21')]:_0x519a07[_0x3b7f4d('0x45')],_0x4107e6['query'][_0x3b7f4d('0x6f')]&&(_0x1fd133['include']=[{'all':!![]}]),_0x1fd133=_[_0x3b7f4d('0x15')]({},_0x1fd133,_0x4107e6[_0x3b7f4d('0xf')]),db[_0x3b7f4d('0x6')][_0x3b7f4d('0x3d')](_0x1fd133)[_0x3b7f4d('0x23')](handleEntityNotFound(_0x5aabdc,null))[_0x3b7f4d('0x23')](respondWithResult(_0x5aabdc,null))[_0x3b7f4d('0x66')](handleError(_0x5aabdc,null));},exports[_0x32d245('0x70')]=function(_0x40f15b,_0x32518b){const _0x127c5c=_0x32d245;return db[_0x127c5c('0x6')][_0x127c5c('0x70')](_0x40f15b[_0x127c5c('0x35')],{})[_0x127c5c('0x23')](respondWithResult(_0x32518b,0xc9))[_0x127c5c('0x66')](handleError(_0x32518b,null));},exports['update']=function(_0xd3f297,_0x40fb9b){const _0x5bb8ef=_0x32d245;return _0xd3f297[_0x5bb8ef('0x35')]['id']&&delete _0xd3f297['body']['id'],db[_0x5bb8ef('0x6')][_0x5bb8ef('0x3d')]({'where':{'id':_0xd3f297[_0x5bb8ef('0x20')]['id']}})[_0x5bb8ef('0x23')](handleEntityNotFound(_0x40fb9b,null))[_0x5bb8ef('0x23')](saveUpdates(_0xd3f297['body'],null))[_0x5bb8ef('0x23')](respondWithResult(_0x40fb9b,null))[_0x5bb8ef('0x66')](handleError(_0x40fb9b,null));},exports[_0x32d245('0x6d')]=function(_0x221528,_0x58961f){const _0x198f65=_0x32d245;return db[_0x198f65('0x6')][_0x198f65('0x3d')]({'where':{'id':_0x221528['params']['id']}})['then'](handleEntityNotFound(_0x58961f,null))['then'](removeEntity(_0x58961f,null))[_0x198f65('0x66')](handleError(_0x58961f,null));},exports[_0x32d245('0x6b')]=function(_0x5c4fa4,_0x95ebd){const _0x49c7c4=_0x32d245;return db[_0x49c7c4('0x6')][_0x49c7c4('0x6b')]()['then'](respondWithResult(_0x95ebd,null))['catch'](handleError(_0x95ebd,null));},exports[_0x32d245('0x25')]=function(_0x2bfb5e,_0xf21724){const _0x3a9d6b=_0x32d245,_0x189596={'channel':_0x3a9d6b('0x30')};return _0x2bfb5e[_0x3a9d6b('0x35')]['id']&&delete _0x2bfb5e[_0x3a9d6b('0x35')]['id'],_0x2bfb5e[_0x3a9d6b('0x35')][_0x3a9d6b('0x29')]=!![],_0x2bfb5e[_0x3a9d6b('0x35')][_0x3a9d6b('0x18')]=moment()[_0x3a9d6b('0xb')](_0x3a9d6b('0x40')),_0x2bfb5e[_0x3a9d6b('0x35')]['UserId']=_0x2bfb5e[_0x3a9d6b('0x35')]['UserId']||_0x2bfb5e[_0x3a9d6b('0x16')]['id'],db[_0x3a9d6b('0x6')][_0x3a9d6b('0x3d')]({'where':{'id':_0x2bfb5e[_0x3a9d6b('0x20')]['id'],'UserId':null},'include':[{'model':db[_0x3a9d6b('0x2')],'as':_0x3a9d6b('0x44')}]})[_0x3a9d6b('0x23')](handleEntityNotFound(_0xf21724,null))[_0x3a9d6b('0x23')](saveUpdates(_0x2bfb5e[_0x3a9d6b('0x35')],null))[_0x3a9d6b('0x23')](function(_0x449fa0){const _0x454e69=_0x3a9d6b;if(_0x449fa0)return _0x189596['message']=_0x449fa0[_0x454e69('0x6a')]({'plain':!![]}),db[_0x454e69('0x39')][_0x454e69('0x3d')]({'where':{'id':_0x449fa0[_0x454e69('0x32')]}});return null;})[_0x3a9d6b('0x23')](handleEntityNotFound(_0xf21724,null))[_0x3a9d6b('0x23')](function(_0xd50b22){const _0x185e7e=_0x3a9d6b;if(_0xd50b22)return _0xd50b22[_0x185e7e('0x9')]({'UserId':_0x2bfb5e[_0x185e7e('0x35')][_0x185e7e('0x65')],'read1stAt':_['isNil'](_0xd50b22[_0x185e7e('0x58')])?moment()['format'](_0x185e7e('0x40')):undefined});return null;})[_0x3a9d6b('0x23')](function(_0x297dc1){const _0x3c09fa=_0x3a9d6b;if(_0x297dc1)return _0x189596[_0x3c09fa('0x6e')]=_0x297dc1[_0x3c09fa('0x6a')]({'plain':!![]}),interaction_log[_0x3c09fa('0x4')](_0x3c09fa('0x54'),_0x2bfb5e[_0x3c09fa('0x16')]['id'],_0x2bfb5e[_0x3c09fa('0x16')][_0x3c09fa('0x14')],_0x2bfb5e[_0x3c09fa('0x16')]['role'],_0x189596[_0x3c09fa('0x6e')]['id'],_0x2bfb5e[_0x3c09fa('0x35')]?JSON['stringify'](_0x2bfb5e[_0x3c09fa('0x35')]):_0x3c09fa('0x7')),respondWithRpcPromise('AcceptMessage',_0x3c09fa('0x4f'),_0x189596);return null;})[_0x3a9d6b('0x23')](function(_0x225675){const _0x2d304a=_0x3a9d6b;if(_0x225675){if(_0x2bfb5e[_0x2d304a('0x35')]['manual'])return _0x189596[_0x2d304a('0xa')][_0x2d304a('0x55')]=util[_0x2d304a('0xb')]('SIP/%s',_0x2bfb5e['user'][_0x2d304a('0x14')]),_0x189596[_0x2d304a('0xa')]['channel']=_0x189596['channel'],_0x189596[_0x2d304a('0xa')][_0x2d304a('0x1b')]=_0x2d304a('0x25'),respondWithRpcPromise(_0x2d304a('0x38'),'EventManager',{'event':'acceptmessage','message':_0x189596[_0x2d304a('0xa')]},client9002)['then'](function(){return _0x189596;});return _0x189596;}return null;})[_0x3a9d6b('0x23')](respondWithResult(_0xf21724,null))[_0x3a9d6b('0x66')](handleError(_0xf21724,null));},exports[_0x32d245('0xe')]=function(_0x100b2e,_0x2be731){const _0x4937c2=_0x32d245,_0x2d2b76={'agent':{},'channel':_0x4937c2('0x30')};return _0x100b2e[_0x4937c2('0x35')]['id']&&delete _0x100b2e[_0x4937c2('0x35')]['id'],_0x100b2e[_0x4937c2('0x35')][_0x4937c2('0x65')]=_0x100b2e[_0x4937c2('0x35')][_0x4937c2('0x65')]||_0x100b2e[_0x4937c2('0x16')]['id'],_0x2d2b76[_0x4937c2('0x62')]['id']=_0x100b2e['body']['UserId'],db[_0x4937c2('0x6')][_0x4937c2('0x3d')]({'where':{'id':_0x100b2e[_0x4937c2('0x20')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x2be731,null))[_0x4937c2('0x23')](function(_0x12f281){const _0x5b8da9=_0x4937c2;if(_0x12f281)return _0x2d2b76[_0x5b8da9('0xa')]=_0x12f281[_0x5b8da9('0x6a')]({'plain':!![]}),db[_0x5b8da9('0x39')]['findOne']({'where':{'id':_0x12f281[_0x5b8da9('0x32')]}});return null;})[_0x4937c2('0x23')](handleEntityNotFound(_0x2be731,null))['then'](function(_0x10b1f5){const _0x34afe4=_0x4937c2;if(_0x10b1f5)return _0x2d2b76[_0x34afe4('0x6e')]=_0x10b1f5[_0x34afe4('0x6a')]({'plain':!![]}),interaction_log['info'](_0x34afe4('0x27'),_0x100b2e[_0x34afe4('0x16')]['id'],_0x100b2e[_0x34afe4('0x16')][_0x34afe4('0x14')],_0x100b2e['user'][_0x34afe4('0x1c')],_0x2d2b76[_0x34afe4('0x6e')]['id'],_0x100b2e['body']?JSON[_0x34afe4('0x69')](_0x100b2e[_0x34afe4('0x35')]):_0x34afe4('0x7')),respondWithRpcPromise('RejectMessage',_0x34afe4('0x50'),_0x2d2b76);return null;})[_0x4937c2('0x23')](function(_0x2e0547){const _0x1b3699=_0x4937c2;if(_0x2e0547)return _0x2e0547[_0x1b3699('0xa')][_0x1b3699('0x55')]=util[_0x1b3699('0xb')](_0x1b3699('0x60'),_0x100b2e[_0x1b3699('0x16')][_0x1b3699('0x14')]),_0x2e0547[_0x1b3699('0xa')][_0x1b3699('0x24')]=_0x2d2b76[_0x1b3699('0x24')],_0x2e0547['message'][_0x1b3699('0x1b')]='reject',respondWithRpcPromise(_0x1b3699('0x38'),'EventManager',{'event':'rejectmessage','message':_0x2e0547['message']},client9002),_0x2d2b76;return null;})[_0x4937c2('0x23')](respondWithResult(_0x2be731,null))['catch'](handleError(_0x2be731,null));},exports['status']=function(_0x3d9142,_0x25a01c){const _0xedb7ce=_0x32d245;_0x3d9142['body']['id']&&delete _0x3d9142[_0xedb7ce('0x35')]['id'];let _0x17f48;return db['SmsMessage'][_0xedb7ce('0x3d')]({'where':{'id':_0x3d9142[_0xedb7ce('0x20')]['id']}})['then'](handleEntityNotFound(_0x25a01c,null))[_0xedb7ce('0x23')](function(_0x1ee613){const _0x5a29a9=_0xedb7ce;if(_0x1ee613)return _0x17f48=_0x1ee613,db[_0x5a29a9('0x1a')]['findOne']({'where':{'id':_0x1ee613[_0x5a29a9('0x64')]}});})[_0xedb7ce('0x23')](handleEntityNotFound(_0x25a01c,null))[_0xedb7ce('0x23')](function(_0x2ee7e4){const _0x4e9a67=_0xedb7ce;if(_0x2ee7e4){logger['debug'](_0x4e9a67('0x41'),_0x4e9a67('0x1d'),_0x4e9a67('0x12'),_0x2ee7e4[_0x4e9a67('0x57')],util[_0x4e9a67('0x68')](_0x3d9142['body'],{'showHidden':![],'depth':null}));switch(_0x2ee7e4['type']){case _0x4e9a67('0x19'):if(_0x3d9142[_0x4e9a67('0x35')][_0x4e9a67('0x56')]&&_0x3d9142[_0x4e9a67('0x35')][_0x4e9a67('0x56')]===_0x17f48['messageId'])return _0x17f48[_0x4e9a67('0x9')]({'read':!![]});else logger[_0x4e9a67('0x3f')](_0x4e9a67('0x2e'),_0x4e9a67('0x1d'),_0x4e9a67('0x19'),util[_0x4e9a67('0x68')](_0x3d9142[_0x4e9a67('0x35')],{'showHidden':![],'depth':null}));break;case _0x4e9a67('0x10'):if(_0x3d9142[_0x4e9a67('0x35')][_0x4e9a67('0x61')]&&_0x3d9142[_0x4e9a67('0x35')]['MessageUUID']===_0x17f48[_0x4e9a67('0x3a')]&&_['indexOf']([_0x4e9a67('0x37'),_0x4e9a67('0x11')],_0x3d9142[_0x4e9a67('0x35')]['Status'])>=0x0)return _0x17f48['update']({'read':!![]});else logger['error'](_0x4e9a67('0x2e'),_0x4e9a67('0x1d'),_0x4e9a67('0x3e'),util[_0x4e9a67('0x68')](_0x3d9142['body'],{'showHidden':![],'depth':null}));break;case'infobip':{const _0x49f7a=_0x3d9142[_0x4e9a67('0x35')][_0x4e9a67('0x52')][0x0];if(_0x49f7a['status'][_0x4e9a67('0x1f')]==='DELIVERED')return _0x17f48['update']({'read':!![]});else logger[_0x4e9a67('0x3f')](_0x4e9a67('0x2e'),_0x4e9a67('0x1d'),_0x4e9a67('0x3b'),util[_0x4e9a67('0x68')](_0x3d9142[_0x4e9a67('0x35')],{'showHidden':![],'depth':null}));}break;}return _0x17f48;}})[_0xedb7ce('0x23')](respondWithResult(_0x25a01c,null))['catch'](handleError(_0x25a01c,null));}; \ No newline at end of file +const a560_0x5e78=['sms','pick','like','rows','role','filter','options','sent','acceptmessage','rejectmessage','http','../../components/parsers/qs','EventManager','offset','delivered','SmsAccountId','SmsAccount','[SMSMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','../../rediscache','SmsMessage,\x20%s,\x20%s','key','messageId','lodash','read','order','reject','describe','message','rawAttributes','inspect','body','attributes','interface','UserId','user','create','acceptMessage','YYYY-MM-DD\x20HH:mm:ss','format','name','util','manual','sequelize','limit','get','SmsAccount,\x20%s,\x20%s,\x20%s','moment','params','./smsMessage.socket','agent','set','include','filters','where','includeAll','VIRTUAL','then','json','map','status','MessageSid','twilio','request','debug','count','../../mysqldb','intersection','fields','findOne','event','type','plivo','nolimit','keys','accept','indexOf','catch','query','interaction','SIP/%s','update','channel','rejectMessage','MessageUUID','length','model','show','results','readAt','../../config/logger','merge','error','destroy','isNil','Content-Range','SmsInteractionId','Status','AcceptMessage','client','SmsInteraction','register','request\x20sent','sendStatus','stringify','SmsMessage','SmsMessage,\x20%s,\x20%s,\x20%s','api','infobip','null','info'];(function(_0x56934e,_0x5e78f5){const _0x161d22=function(_0x4870fb){while(--_0x4870fb){_0x56934e['push'](_0x56934e['shift']());}};_0x161d22(++_0x5e78f5);}(a560_0x5e78,0x8f));const a560_0x161d=function(_0x56934e,_0x5e78f5){_0x56934e=_0x56934e-0x0;let _0x161d22=a560_0x5e78[_0x56934e];return _0x161d22;};const _0x3150bd=a560_0x161d;'use strict';const moment=require(_0x3150bd('0xd')),util=require(_0x3150bd('0x7')),_=require(_0x3150bd('0x63')),qs=require(_0x3150bd('0x58')),logger=require('../../config/logger')(_0x3150bd('0x49')),{getSocket}=require(_0x3150bd('0x5f')),socket=getSocket(),db=require(_0x3150bd('0x20'))['db'],{Op}=require(_0x3150bd('0x9')),interaction_log=require(_0x3150bd('0x38'))('sms-interactions');require(_0x3150bd('0xf'))[_0x3150bd('0x43')](socket);const jayson=require('jayson/promise'),client=jayson[_0x3150bd('0x41')][_0x3150bd('0x57')]({'port':0x232c}),client9002=jayson[_0x3150bd('0x41')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4870fb,_0x120719,_0x229f5e,_0x4dca8d){return new Promise(function(_0x3386ed,_0x48e3fa){const _0x511402=a560_0x161d,_0x5e3595=_0x4dca8d||client;return _0x5e3595[_0x511402('0x1d')](_0x4870fb,_0x229f5e)[_0x511402('0x17')](function(_0x172574){const _0x32af78=_0x511402;logger[_0x32af78('0x4c')](_0x32af78('0x60'),_0x120719,'request\x20sent'),logger[_0x32af78('0x1e')](_0x32af78('0x48'),_0x120719,_0x32af78('0x44'),JSON['stringify'](_0x172574));if(_0x172574[_0x32af78('0x3a')]){if(_0x172574[_0x32af78('0x3a')]['code']===0x1f4)return logger[_0x32af78('0x3a')]('SmsMessage,\x20%s,\x20%s',_0x120719,_0x172574[_0x32af78('0x3a')][_0x32af78('0x68')]),_0x48e3fa(_0x172574['error'][_0x32af78('0x68')]);return logger[_0x32af78('0x3a')]('SmsMessage,\x20%s,\x20%s',_0x120719,_0x172574[_0x32af78('0x3a')]['message']),_0x3386ed(_0x172574[_0x32af78('0x3a')][_0x32af78('0x68')]);}else logger[_0x32af78('0x4c')](_0x32af78('0x60'),_0x120719,_0x32af78('0x44')),_0x3386ed(_0x172574['result']['message']);})[_0x511402('0x2b')](function(_0x48aa01){const _0x139471=_0x511402;logger[_0x139471('0x3a')](_0x139471('0x60'),_0x120719,_0x48aa01),_0x48e3fa(_0x48aa01);});});}function respondWithResult(_0x30fdb1,_0x4acf68){return _0x4acf68=_0x4acf68||0xc8,function(_0xb0a7d8){const _0x10ebcf=a560_0x161d;if(_0xb0a7d8)return _0x30fdb1[_0x10ebcf('0x1a')](_0x4acf68)[_0x10ebcf('0x18')](_0xb0a7d8);};}function respondWithFilteredResult(_0x125f17,_0x4be168){return function(_0x490390){const _0x265772=a560_0x161d;if(_0x490390){const _0x3b1ffe=_0x490390['count'],_0x397f8b=_0x4be168[_0x265772('0x5a')];let _0x3f9f5a=_0x4be168[_0x265772('0x5a')]+_0x4be168['limit'],_0x398311;return _0x3f9f5a>=_0x3b1ffe?(_0x3f9f5a=_0x3b1ffe,_0x398311=0xc8):_0x398311=0xce,_0x125f17[_0x265772('0x1a')](_0x398311),_0x125f17[_0x265772('0x11')](_0x265772('0x3d'),_0x397f8b+'-'+_0x3f9f5a+'/'+_0x3b1ffe)['json'](_0x490390);}return null;};}function saveUpdates(_0x35af15){return function(_0x10df80){const _0x5c4960=a560_0x161d;if(_0x10df80)return _0x10df80[_0x5c4960('0x2f')](_0x35af15)[_0x5c4960('0x17')](function(_0xa25339){return _0xa25339;});return null;};}function removeEntity(_0x36dffa){return function(_0x551792){const _0x4a57e5=a560_0x161d;if(_0x551792)return _0x551792[_0x4a57e5('0x3b')]()[_0x4a57e5('0x17')](function(){const _0x1e9ab9=_0x4a57e5;_0x36dffa[_0x1e9ab9('0x1a')](0xcc)['end']();});};}function handleEntityNotFound(_0x28465c){return function(_0x191f0d){const _0x5d7953=a560_0x161d;return!_0x191f0d&&_0x28465c[_0x5d7953('0x45')](0x194),_0x191f0d;};}function handleError(_0x1760a5,_0x44cba0){return _0x44cba0=_0x44cba0||0x1f4,function(_0x47ae34){const _0x4c6772=a560_0x161d;logger['error'](_0x47ae34['stack']),_0x47ae34[_0x4c6772('0x6')]&&delete _0x47ae34[_0x4c6772('0x6')],_0x1760a5[_0x4c6772('0x1a')](_0x44cba0)['send'](_0x47ae34);};}exports['index']=function(_0xc35f2c,_0x3c8784){const _0x1cbfd1=_0x3150bd;let _0x53a63a={};const _0x4d91f6={},_0x545a20={'count':0x0,'rows':[]},_0x1693e9=_[_0x1cbfd1('0x19')](db[_0x1cbfd1('0x47')]['rawAttributes'],function(_0x41ede6){const _0x8b1df4=_0x1cbfd1;return{'name':_0x41ede6['fieldName'],'type':_0x41ede6['type'][_0x8b1df4('0x61')]};});_0x4d91f6[_0x1cbfd1('0x34')]=_[_0x1cbfd1('0x19')](_0x1693e9,_0x1cbfd1('0x6')),_0x4d91f6[_0x1cbfd1('0x2c')]=_[_0x1cbfd1('0x28')](_0xc35f2c[_0x1cbfd1('0x2c')]),_0x4d91f6[_0x1cbfd1('0x13')]=_['intersection'](_0x4d91f6['model'],_0x4d91f6[_0x1cbfd1('0x2c')]),_0x53a63a[_0x1cbfd1('0x6c')]=_['intersection'](_0x4d91f6[_0x1cbfd1('0x34')],qs['fields'](_0xc35f2c['query']['fields'])),_0x53a63a[_0x1cbfd1('0x6c')]=_0x53a63a[_0x1cbfd1('0x6c')][_0x1cbfd1('0x33')]?_0x53a63a[_0x1cbfd1('0x6c')]:_0x4d91f6['model'];typeof _0xc35f2c[_0x1cbfd1('0x2c')][_0x1cbfd1('0x27')]==='undefined'&&(_0x53a63a['limit']=qs[_0x1cbfd1('0xa')](_0xc35f2c[_0x1cbfd1('0x2c')]['limit']),_0x53a63a[_0x1cbfd1('0x5a')]=qs['offset'](_0xc35f2c[_0x1cbfd1('0x2c')][_0x1cbfd1('0x5a')]));_0x53a63a[_0x1cbfd1('0x65')]=qs['sort'](_0xc35f2c[_0x1cbfd1('0x2c')]['sort']),_0x53a63a[_0x1cbfd1('0x14')]=qs[_0x1cbfd1('0x13')](_[_0x1cbfd1('0x4e')](_0xc35f2c[_0x1cbfd1('0x2c')],_0x4d91f6['filters']),_0x1693e9);_0xc35f2c[_0x1cbfd1('0x2c')]['filter']&&(_0x53a63a['where']=_['merge'](_0x53a63a[_0x1cbfd1('0x14')],{[Op['or']]:_[_0x1cbfd1('0x19')](_0x1693e9,function(_0x1e621a){const _0x9fb009=_0x1cbfd1;if(_0x1e621a[_0x9fb009('0x25')]!==_0x9fb009('0x16')){const _0x1b7bce={};return _0x1b7bce[_0x1e621a['name']]={[Op[_0x9fb009('0x4f')]]:'%'+_0xc35f2c[_0x9fb009('0x2c')][_0x9fb009('0x52')]+'%'},_0x1b7bce;}})}));_0x53a63a=_[_0x1cbfd1('0x39')]({},_0x53a63a,_0xc35f2c[_0x1cbfd1('0x53')]);const _0x5a2bbe={'where':_0x53a63a[_0x1cbfd1('0x14')]};return db[_0x1cbfd1('0x47')][_0x1cbfd1('0x1f')](_0x5a2bbe)[_0x1cbfd1('0x17')](function(_0x441477){const _0xa43ed4=_0x1cbfd1;return _0x545a20[_0xa43ed4('0x1f')]=_0x441477,_0xc35f2c[_0xa43ed4('0x2c')][_0xa43ed4('0x15')]&&(_0x53a63a['include']=[{'all':!![]}]),db['SmsMessage']['findAll'](_0x53a63a);})[_0x1cbfd1('0x17')](function(_0x6dfa3c){const _0x5ad8c5=_0x1cbfd1;return _0x545a20[_0x5ad8c5('0x50')]=_0x6dfa3c,_0x545a20;})[_0x1cbfd1('0x17')](respondWithFilteredResult(_0x3c8784,_0x53a63a))[_0x1cbfd1('0x2b')](handleError(_0x3c8784,null));},exports[_0x3150bd('0x35')]=function(_0x59a5fe,_0x5ef884){const _0x31009c=_0x3150bd;let _0x44c1e0={'raw':!![],'where':{'id':_0x59a5fe[_0x31009c('0xe')]['id']}};const _0x4bd050={};return _0x4bd050[_0x31009c('0x34')]=_[_0x31009c('0x28')](db['SmsMessage'][_0x31009c('0x69')]),_0x4bd050['query']=_[_0x31009c('0x28')](_0x59a5fe[_0x31009c('0x2c')]),_0x4bd050['filters']=_[_0x31009c('0x21')](_0x4bd050['model'],_0x4bd050[_0x31009c('0x2c')]),_0x44c1e0['attributes']=_[_0x31009c('0x21')](_0x4bd050[_0x31009c('0x34')],qs['fields'](_0x59a5fe[_0x31009c('0x2c')][_0x31009c('0x22')])),_0x44c1e0[_0x31009c('0x6c')]=_0x44c1e0['attributes'][_0x31009c('0x33')]?_0x44c1e0[_0x31009c('0x6c')]:_0x4bd050[_0x31009c('0x34')],_0x59a5fe[_0x31009c('0x2c')][_0x31009c('0x15')]&&(_0x44c1e0[_0x31009c('0x12')]=[{'all':!![]}]),_0x44c1e0=_[_0x31009c('0x39')]({},_0x44c1e0,_0x59a5fe[_0x31009c('0x53')]),db[_0x31009c('0x47')][_0x31009c('0x23')](_0x44c1e0)[_0x31009c('0x17')](handleEntityNotFound(_0x5ef884,null))[_0x31009c('0x17')](respondWithResult(_0x5ef884,null))[_0x31009c('0x2b')](handleError(_0x5ef884,null));},exports[_0x3150bd('0x2')]=function(_0x7dde9a,_0x5b018e){const _0x8a2e40=_0x3150bd;return db[_0x8a2e40('0x47')]['create'](_0x7dde9a[_0x8a2e40('0x6b')],{})[_0x8a2e40('0x17')](respondWithResult(_0x5b018e,0xc9))[_0x8a2e40('0x2b')](handleError(_0x5b018e,null));},exports[_0x3150bd('0x2f')]=function(_0x2d1eee,_0x24bd5d){const _0x299072=_0x3150bd;return _0x2d1eee[_0x299072('0x6b')]['id']&&delete _0x2d1eee[_0x299072('0x6b')]['id'],db[_0x299072('0x47')][_0x299072('0x23')]({'where':{'id':_0x2d1eee[_0x299072('0xe')]['id']}})[_0x299072('0x17')](handleEntityNotFound(_0x24bd5d,null))[_0x299072('0x17')](saveUpdates(_0x2d1eee[_0x299072('0x6b')],null))[_0x299072('0x17')](respondWithResult(_0x24bd5d,null))[_0x299072('0x2b')](handleError(_0x24bd5d,null));},exports[_0x3150bd('0x3b')]=function(_0x1bb969,_0x40c805){const _0x558128=_0x3150bd;return db[_0x558128('0x47')][_0x558128('0x23')]({'where':{'id':_0x1bb969['params']['id']}})[_0x558128('0x17')](handleEntityNotFound(_0x40c805,null))['then'](removeEntity(_0x40c805,null))[_0x558128('0x2b')](handleError(_0x40c805,null));},exports[_0x3150bd('0x67')]=function(_0x4ef145,_0x491293){const _0x4a6472=_0x3150bd;return db['SmsMessage']['describe']()[_0x4a6472('0x17')](respondWithResult(_0x491293,null))[_0x4a6472('0x2b')](handleError(_0x491293,null));},exports['accept']=function(_0x27a2ad,_0x4fadc9){const _0x43217e=_0x3150bd,_0x18c04d={'channel':'sms'};return _0x27a2ad[_0x43217e('0x6b')]['id']&&delete _0x27a2ad[_0x43217e('0x6b')]['id'],_0x27a2ad[_0x43217e('0x6b')][_0x43217e('0x64')]=!![],_0x27a2ad[_0x43217e('0x6b')][_0x43217e('0x37')]=moment()[_0x43217e('0x5')](_0x43217e('0x4')),_0x27a2ad['body'][_0x43217e('0x0')]=_0x27a2ad['body'][_0x43217e('0x0')]||_0x27a2ad['user']['id'],db['SmsMessage'][_0x43217e('0x23')]({'where':{'id':_0x27a2ad[_0x43217e('0xe')]['id'],'UserId':null},'include':[{'model':db['CmContact'],'as':'Contact'}]})[_0x43217e('0x17')](handleEntityNotFound(_0x4fadc9,null))[_0x43217e('0x17')](saveUpdates(_0x27a2ad['body'],null))[_0x43217e('0x17')](function(_0x54a899){const _0xbfa06a=_0x43217e;if(_0x54a899)return _0x18c04d[_0xbfa06a('0x68')]=_0x54a899[_0xbfa06a('0xb')]({'plain':!![]}),db[_0xbfa06a('0x42')][_0xbfa06a('0x23')]({'where':{'id':_0x54a899[_0xbfa06a('0x3e')]}});return null;})['then'](handleEntityNotFound(_0x4fadc9,null))[_0x43217e('0x17')](function(_0x11be05){const _0xd0ce95=_0x43217e;if(_0x11be05)return _0x11be05[_0xd0ce95('0x2f')]({'UserId':_0x27a2ad['body']['UserId'],'read1stAt':_[_0xd0ce95('0x3c')](_0x11be05['read1stAt'])?moment()[_0xd0ce95('0x5')](_0xd0ce95('0x4')):undefined});return null;})[_0x43217e('0x17')](function(_0x1ccc3a){const _0x2ec5dc=_0x43217e;if(_0x1ccc3a)return _0x18c04d[_0x2ec5dc('0x2d')]=_0x1ccc3a['get']({'plain':!![]}),interaction_log[_0x2ec5dc('0x4c')]('[SMSMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x27a2ad[_0x2ec5dc('0x1')]['id'],_0x27a2ad[_0x2ec5dc('0x1')][_0x2ec5dc('0x6')],_0x27a2ad['user'][_0x2ec5dc('0x51')],_0x18c04d[_0x2ec5dc('0x2d')]['id'],_0x27a2ad[_0x2ec5dc('0x6b')]?JSON['stringify'](_0x27a2ad[_0x2ec5dc('0x6b')]):_0x2ec5dc('0x4b')),respondWithRpcPromise(_0x2ec5dc('0x40'),_0x2ec5dc('0x3'),_0x18c04d);return null;})[_0x43217e('0x17')](function(_0x3d3c1c){const _0x5c269d=_0x43217e;if(_0x3d3c1c){if(_0x27a2ad['body'][_0x5c269d('0x8')])return _0x18c04d[_0x5c269d('0x68')]['interface']=util[_0x5c269d('0x5')](_0x5c269d('0x2e'),_0x27a2ad[_0x5c269d('0x1')][_0x5c269d('0x6')]),_0x18c04d[_0x5c269d('0x68')]['channel']=_0x18c04d[_0x5c269d('0x30')],_0x18c04d[_0x5c269d('0x68')][_0x5c269d('0x24')]=_0x5c269d('0x29'),respondWithRpcPromise(_0x5c269d('0x59'),_0x5c269d('0x59'),{'event':_0x5c269d('0x55'),'message':_0x18c04d[_0x5c269d('0x68')]},client9002)[_0x5c269d('0x17')](function(){return _0x18c04d;});return _0x18c04d;}return null;})[_0x43217e('0x17')](respondWithResult(_0x4fadc9,null))[_0x43217e('0x2b')](handleError(_0x4fadc9,null));},exports['reject']=function(_0x27b3b9,_0x5ce11a){const _0x1e4002=_0x3150bd,_0x18b46c={'agent':{},'channel':_0x1e4002('0x4d')};return _0x27b3b9['body']['id']&&delete _0x27b3b9[_0x1e4002('0x6b')]['id'],_0x27b3b9[_0x1e4002('0x6b')][_0x1e4002('0x0')]=_0x27b3b9[_0x1e4002('0x6b')][_0x1e4002('0x0')]||_0x27b3b9[_0x1e4002('0x1')]['id'],_0x18b46c[_0x1e4002('0x10')]['id']=_0x27b3b9['body']['UserId'],db['SmsMessage']['findOne']({'where':{'id':_0x27b3b9[_0x1e4002('0xe')]['id'],'UserId':null}})[_0x1e4002('0x17')](handleEntityNotFound(_0x5ce11a,null))[_0x1e4002('0x17')](function(_0x1fb46f){const _0x5906d0=_0x1e4002;if(_0x1fb46f)return _0x18b46c[_0x5906d0('0x68')]=_0x1fb46f[_0x5906d0('0xb')]({'plain':!![]}),db['SmsInteraction'][_0x5906d0('0x23')]({'where':{'id':_0x1fb46f[_0x5906d0('0x3e')]}});return null;})[_0x1e4002('0x17')](handleEntityNotFound(_0x5ce11a,null))[_0x1e4002('0x17')](function(_0x3d3fa8){const _0x155ead=_0x1e4002;if(_0x3d3fa8)return _0x18b46c[_0x155ead('0x2d')]=_0x3d3fa8['get']({'plain':!![]}),interaction_log[_0x155ead('0x4c')](_0x155ead('0x5e'),_0x27b3b9[_0x155ead('0x1')]['id'],_0x27b3b9[_0x155ead('0x1')][_0x155ead('0x6')],_0x27b3b9[_0x155ead('0x1')][_0x155ead('0x51')],_0x18b46c[_0x155ead('0x2d')]['id'],_0x27b3b9['body']?JSON[_0x155ead('0x46')](_0x27b3b9['body']):_0x155ead('0x4b')),respondWithRpcPromise('RejectMessage',_0x155ead('0x31'),_0x18b46c);return null;})[_0x1e4002('0x17')](function(_0x332ba){const _0x58209a=_0x1e4002;if(_0x332ba)return _0x332ba[_0x58209a('0x68')][_0x58209a('0x6d')]=util[_0x58209a('0x5')](_0x58209a('0x2e'),_0x27b3b9[_0x58209a('0x1')][_0x58209a('0x6')]),_0x332ba[_0x58209a('0x68')][_0x58209a('0x30')]=_0x18b46c[_0x58209a('0x30')],_0x332ba['message'][_0x58209a('0x24')]=_0x58209a('0x66'),respondWithRpcPromise(_0x58209a('0x59'),'EventManager',{'event':_0x58209a('0x56'),'message':_0x332ba['message']},client9002),_0x18b46c;return null;})[_0x1e4002('0x17')](respondWithResult(_0x5ce11a,null))[_0x1e4002('0x2b')](handleError(_0x5ce11a,null));},exports['status']=function(_0x5849e8,_0x23217e){const _0x2f6f71=_0x3150bd;_0x5849e8['body']['id']&&delete _0x5849e8['body']['id'];let _0x11806f;return db[_0x2f6f71('0x47')]['findOne']({'where':{'id':_0x5849e8[_0x2f6f71('0xe')]['id']}})[_0x2f6f71('0x17')](handleEntityNotFound(_0x23217e,null))['then'](function(_0x161813){const _0x393124=_0x2f6f71;if(_0x161813)return _0x11806f=_0x161813,db[_0x393124('0x5d')][_0x393124('0x23')]({'where':{'id':_0x161813[_0x393124('0x5c')]}});})[_0x2f6f71('0x17')](handleEntityNotFound(_0x23217e,null))[_0x2f6f71('0x17')](function(_0x11cf8c){const _0x5640c9=_0x2f6f71;if(_0x11cf8c){logger[_0x5640c9('0x1e')](_0x5640c9('0x48'),'status','received\x20delivery\x20report\x20from',_0x11cf8c[_0x5640c9('0x25')],util[_0x5640c9('0x6a')](_0x5849e8[_0x5640c9('0x6b')],{'showHidden':![],'depth':null}));switch(_0x11cf8c['type']){case _0x5640c9('0x1c'):if(_0x5849e8[_0x5640c9('0x6b')][_0x5640c9('0x1b')]&&_0x5849e8[_0x5640c9('0x6b')][_0x5640c9('0x1b')]===_0x11806f[_0x5640c9('0x62')])return _0x11806f['update']({'read':!![]});else logger['error'](_0x5640c9('0xc'),'status',_0x5640c9('0x1c'),util[_0x5640c9('0x6a')](_0x5849e8[_0x5640c9('0x6b')],{'showHidden':![],'depth':null}));break;case _0x5640c9('0x26'):if(_0x5849e8[_0x5640c9('0x6b')][_0x5640c9('0x32')]&&_0x5849e8[_0x5640c9('0x6b')][_0x5640c9('0x32')]===_0x11806f[_0x5640c9('0x62')]&&_[_0x5640c9('0x2a')]([_0x5640c9('0x54'),_0x5640c9('0x5b')],_0x5849e8[_0x5640c9('0x6b')][_0x5640c9('0x3f')])>=0x0)return _0x11806f[_0x5640c9('0x2f')]({'read':!![]});else logger['error'](_0x5640c9('0xc'),_0x5640c9('0x1a'),'plivio',util[_0x5640c9('0x6a')](_0x5849e8[_0x5640c9('0x6b')],{'showHidden':![],'depth':null}));break;case _0x5640c9('0x4a'):{const _0xd627e=_0x5849e8['body'][_0x5640c9('0x36')][0x0];if(_0xd627e[_0x5640c9('0x1a')]['groupName']==='DELIVERED')return _0x11806f[_0x5640c9('0x2f')]({'read':!![]});else logger[_0x5640c9('0x3a')]('SmsAccount,\x20%s,\x20%s,\x20%s',_0x5640c9('0x1a'),'infobip',util['inspect'](_0x5849e8['body'],{'showHidden':![],'depth':null}));}break;}return _0x11806f;}})[_0x2f6f71('0x17')](respondWithResult(_0x23217e,null))[_0x2f6f71('0x2b')](handleError(_0x23217e,null));}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.events.js b/server/api/smsMessage/smsMessage.events.js index 2c90ccd..6caae27 100644 --- a/server/api/smsMessage/smsMessage.events.js +++ b/server/api/smsMessage/smsMessage.events.js @@ -1 +1 @@ -const a561_0x4495=['SmsMessage','remove','emit','exports','save','update','undefined','setMaxListeners','events'];(function(_0x5506d2,_0x449582){const _0x2f3115=function(_0x36fa99){while(--_0x36fa99){_0x5506d2['push'](_0x5506d2['shift']());}};_0x2f3115(++_0x449582);}(a561_0x4495,0x140));const a561_0x2f31=function(_0x5506d2,_0x449582){_0x5506d2=_0x5506d2-0x0;let _0x2f3115=a561_0x4495[_0x5506d2];return _0x2f3115;};const _0xcf3c79=a561_0x2f31;'use strict';const EventEmitter=require(_0xcf3c79('0x3')),SmsMessage=require('../../mysqldb')['db'][_0xcf3c79('0x4')],SmsMessageEvents=new EventEmitter();SmsMessageEvents[_0xcf3c79('0x2')](0x0);const events={'afterCreate':_0xcf3c79('0x8'),'afterUpdate':_0xcf3c79('0x0'),'afterDestroy':_0xcf3c79('0x5')};function emitEvent(_0x36fa99){return function(_0x44c990){const _0x53aeb5=a561_0x2f31;SmsMessageEvents['emit'](_0x36fa99+':'+_0x44c990['id'],_0x44c990),SmsMessageEvents[_0x53aeb5('0x6')](_0x36fa99,_0x44c990);};}for(const e in events){if(typeof events[e]!==_0xcf3c79('0x1')){const event=events[e];SmsMessage['addHook'](e,emitEvent(event));}}module[_0xcf3c79('0x7')]=SmsMessageEvents; \ No newline at end of file +const a561_0x331c=['SmsMessage','addHook','events','exports','save','../../mysqldb','emit'];(function(_0x2b5c39,_0x331c7d){const _0x3536cd=function(_0xf5bcf6){while(--_0xf5bcf6){_0x2b5c39['push'](_0x2b5c39['shift']());}};_0x3536cd(++_0x331c7d);}(a561_0x331c,0x10b));const a561_0x3536=function(_0x2b5c39,_0x331c7d){_0x2b5c39=_0x2b5c39-0x0;let _0x3536cd=a561_0x331c[_0x2b5c39];return _0x3536cd;};const _0x2f50dc=a561_0x3536;'use strict';const EventEmitter=require(_0x2f50dc('0x1')),SmsMessage=require(_0x2f50dc('0x4'))['db'][_0x2f50dc('0x6')],SmsMessageEvents=new EventEmitter();SmsMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x2f50dc('0x3'),'afterUpdate':'update','afterDestroy':'remove'};function emitEvent(_0xf5bcf6){return function(_0x3c861d){const _0x321d0f=a561_0x3536;SmsMessageEvents[_0x321d0f('0x5')](_0xf5bcf6+':'+_0x3c861d['id'],_0x3c861d),SmsMessageEvents[_0x321d0f('0x5')](_0xf5bcf6,_0x3c861d);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsMessage[_0x2f50dc('0x0')](e,emitEvent(event));}}module[_0x2f50dc('0x2')]=SmsMessageEvents; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.model.js b/server/api/smsMessage/smsMessage.model.js index 0f8021b..70d982e 100644 --- a/server/api/smsMessage/smsMessage.model.js +++ b/server/api/smsMessage/smsMessage.model.js @@ -1 +1 @@ -const a562_0x6c09=['base64','Basic\x20%s','format','uuid','Missing\x20parameters:\x20authId,\x20authToken','https://rest.clicksend.com/v3/sms/send','split','crypto','phone','skebby','twilio','fti_sms_messages','Bearer\x20','POST','http_code','/status?token=','clickSend','then','read','toLowerCase','keys','../../config/logger','https://api.intelepeer.com/_rest/v4/app/sms/send','sender','createdAt','total_sent','error','username','smsMethod','get','connectel','out','signature=','internal_order_id','UserId','request-promise-native','login','baseUrl','sort','token','./smsMessage.attributes','messageId','queued_count','deliveryReport','UTF-8','remote','SmsAccountId','finally','catch','body','authId','from','messages','message_uuid','clickatell','/api/sms/messages/','apiKey','clicksend','/sms/2/text/advanced','SmsAccount','sms_messages','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','FULLTEXT','SmsMessage,\x20%s,\x20%s,\x20%s','toString','secret','createHash','findOne','data','models','status','requestid','&password=','/external/get/send.php?','isNil','https://platform.clickatell.com/messages','hex','password','Missing\x20parameters:\x20authToken','type','csc','Missing\x20parameters:\x20apiKey','update','%s:%s','user_key','message_id','GET','head','afterCreate','define','inspect','/auth/1/session','infobip','create','authToken','Missing\x20parameters:\x20username,\x20password','SmsInteraction','SmsMessage','plivo','intelepeer','message','direction','https://smsapi.connectel.se/api/v2/send/','accountSid','session_key','refid','id_sms','senderString','md5','api','application/json'];(function(_0x5c4a49,_0x6c095e){const _0x4b6967=function(_0x4b1dd0){while(--_0x4b1dd0){_0x5c4a49['push'](_0x5c4a49['shift']());}};_0x4b6967(++_0x6c095e);}(a562_0x6c09,0xf7));const a562_0x4b69=function(_0x5c4a49,_0x6c095e){_0x5c4a49=_0x5c4a49-0x0;let _0x4b6967=a562_0x6c09[_0x5c4a49];return _0x4b6967;};const _0x39de8a=a562_0x4b69;'use strict';const _=require('lodash'),util=require('util'),logger=require(_0x39de8a('0x6b'))(_0x39de8a('0x54')),rp=require(_0x39de8a('0xa')),attributes=require(_0x39de8a('0xf'));module['exports']=function(_0x4b1dd0){const _0x5e98d0=_0x39de8a,_0x159382=_0x4b1dd0[_0x5e98d0('0x2c')],_0x2788f6=_0x4b1dd0[_0x5e98d0('0x40')](_0x5e98d0('0x48'),attributes,{'tableName':_0x5e98d0('0x23'),'paranoid':![],'indexes':[{'name':_0x5e98d0('0x10'),'fields':[_0x5e98d0('0x10')]},{'name':_0x5e98d0('0x61'),'fields':[_0x5e98d0('0x18')],'type':_0x5e98d0('0x25')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x8cea76){const _0x67476a=_0x5e98d0,_0x57b253=_0x8cea76[_0x67476a('0x4')]({'plain':!![]});(_0x57b253[_0x67476a('0x4c')][_0x67476a('0x69')]()==='in'||_0x57b253['direction']['toLowerCase']()===_0x67476a('0x6')&&!_0x57b253[_0x67476a('0x28')]&&!_[_0x67476a('0x31')](_0x57b253[_0x67476a('0x9')]))&&_0x159382[_0x67476a('0x47')][_0x67476a('0x2a')]({'where':{'id':_0x57b253['SmsInteractionId']}})[_0x67476a('0x67')](function(_0x44fb46){const _0x15d436=_0x67476a;_0x44fb46&&_0x44fb46['update']({'lastMsgAt':_0x57b253[_0x15d436('0x6e')],'lastMsgDirection':_0x57b253[_0x15d436('0x4c')]['toLowerCase']()});})['catch'](function(_0x17b9da){console['error'](_0x17b9da);});if(_0x57b253[_0x67476a('0x4c')]==='out'&&!_0x57b253[_0x67476a('0x28')]){let _0x58e568;_0x159382[_0x67476a('0x22')]['findOne']({'where':{'id':_0x57b253[_0x67476a('0x15')]},'raw':!![]})[_0x67476a('0x67')](function(_0x222831){const _0x1a443f=_0x67476a;_0x58e568=_0x222831;if(_0x58e568&&_0x58e568[_0x1a443f('0x36')])switch(_0x58e568[_0x1a443f('0x36')]){case _0x1a443f('0x60'):{const _0x42e782=require(_0x1a443f('0x60'));if(_0x58e568[_0x1a443f('0x4e')]&&_0x58e568[_0x1a443f('0x45')]&&_0x58e568[_0x1a443f('0x5e')]){const _0x39ac20=new _0x42e782(_0x58e568[_0x1a443f('0x4e')],_0x58e568[_0x1a443f('0x45')]);_0x39ac20[_0x1a443f('0x1b')][_0x1a443f('0x44')]({'body':_0x57b253[_0x1a443f('0x18')],'to':_0x57b253['phone'],'from':_0x58e568[_0x1a443f('0x5e')],'statusCallback':_0x58e568['remote']+_0x1a443f('0x1e')+_0x57b253['id']+'/status?token='+_0x58e568[_0x1a443f('0xe')]})['then'](function(_0x31c286){const _0x1b6518=_0x1a443f;if(_0x31c286['sid'])return _0x8cea76[_0x1b6518('0x39')]({'messageId':_0x31c286['sid']});})[_0x1a443f('0x17')](function(_0xeabae1){const _0xecedef=_0x1a443f;logger[_0xecedef('0x1')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0xecedef('0x3f'),'twilio',util[_0xecedef('0x41')](_0xeabae1,{'showHidden':![],'depth':null}));});}else logger[_0x1a443f('0x1')](_0x1a443f('0x26'),_0x1a443f('0x3f'),_0x1a443f('0x60'),_0x1a443f('0x24'));break;}case _0x1a443f('0x5f'):{const _0x2a3afb='https://api.skebby.it/API/v1.0/REST/';if(_0x58e568[_0x1a443f('0x2')]&&_0x58e568[_0x1a443f('0x34')]){const _0x3a5cad={'recipient':[_0x57b253[_0x1a443f('0x5e')]],'message':_0x57b253[_0x1a443f('0x18')],'message_type':_0x58e568[_0x1a443f('0x3')]};_0x58e568[_0x1a443f('0x3')]&&_0x58e568[_0x1a443f('0x3')]!=='SI'&&(_0x3a5cad[_0x1a443f('0x6d')]=_0x58e568[_0x1a443f('0x5e')]);let _0x43c0f1={'url':_0x2a3afb+'login?username='+_0x58e568[_0x1a443f('0x2')]+_0x1a443f('0x2f')+_0x58e568[_0x1a443f('0x34')],'method':_0x1a443f('0x3d')};rp(_0x43c0f1)[_0x1a443f('0x67')](function(_0xe3dbd8){const _0x32fe65=_0x1a443f,_0x6cfb5=_0xe3dbd8[_0x32fe65('0x5c')](';'),_0x20fa25={'user_key':_0x6cfb5[0x0],'session_key':_0x6cfb5[0x1]};return _0x43c0f1={'url':_0x2a3afb+'sms','method':_0x32fe65('0x63'),'headers':{'user_key':_0x20fa25[_0x32fe65('0x3b')],'Session_key':_0x20fa25[_0x32fe65('0x4f')]},'json':!![],'body':_0x3a5cad},rp(_0x43c0f1);})['then'](function(_0x454800){const _0x8ba3b9=_0x1a443f;if(_0x454800[_0x8ba3b9('0x0')]>=0x1){const _0x1e1cfc={'messageId':_0x454800[_0x8ba3b9('0x8')]};return(_0x58e568['smsMethod']!=='GP'||!_0x58e568[_0x8ba3b9('0x12')])&&(_0x1e1cfc[_0x8ba3b9('0x68')]=!![]),_0x8cea76[_0x8ba3b9('0x39')](_0x1e1cfc);}else return logger[_0x8ba3b9('0x1')](_0x8ba3b9('0x26'),_0x8ba3b9('0x3f'),_0x8ba3b9('0x5f'),util['inspect'](_0x454800,{'showHidden':![],'depth':null}));})[_0x1a443f('0x17')](function(_0x63a8ca){const _0x4d3c2b=_0x1a443f;return logger['error'](_0x4d3c2b('0x26'),_0x4d3c2b('0x3f'),_0x4d3c2b('0x5f'),util[_0x4d3c2b('0x41')](_0x63a8ca,{'showHidden':![],'depth':null}));});}else logger['error'](_0x1a443f('0x26'),_0x1a443f('0x3f'),_0x1a443f('0x5f'),'Missing\x20parameters:\x20username,\x20password');break;}case _0x1a443f('0x5'):{if(_0x58e568[_0x1a443f('0x45')]){const _0x33bad1={'recipient':_0x57b253['phone'],'message':_0x57b253[_0x1a443f('0x18')],'sender':_0x58e568[_0x1a443f('0x52')]||_0x58e568[_0x1a443f('0x5e')],'authorization':_0x58e568['authToken']},_0x933bb6={'method':_0x1a443f('0x63'),'uri':_0x1a443f('0x4d'),'body':_0x33bad1,'json':!![]};rp(_0x933bb6)['then'](function(_0x3ec645){const _0x73b1c3=_0x1a443f,_0x5801ec={'messageId':_0x3ec645[_0x73b1c3('0x2e')]};return!_0x58e568['deliveryReport']&&(_0x5801ec[_0x73b1c3('0x68')]=!![]),_0x8cea76['update'](_0x5801ec);})[_0x1a443f('0x17')](function(_0x31a342){const _0x345fc6=_0x1a443f;logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x345fc6('0x5'),util[_0x345fc6('0x41')](_0x31a342,{'showHidden':![],'depth':null}));});}else logger[_0x1a443f('0x1')](_0x1a443f('0x26'),_0x1a443f('0x3f'),_0x1a443f('0x5'),_0x1a443f('0x35'));break;}case _0x1a443f('0x20'):{if(_0x58e568['username']&&_0x58e568[_0x1a443f('0x34')]){const _0x1cad34={'messages':[{'source':'xCALLY\x20Motion','to':_0x57b253[_0x1a443f('0x5e')],'body':_0x57b253[_0x1a443f('0x18')],'from':_0x58e568[_0x1a443f('0x52')]||_0x58e568[_0x1a443f('0x5e')]}]},_0x2d2429=util[_0x1a443f('0x58')](_0x1a443f('0x3a'),_0x58e568[_0x1a443f('0x2')],_0x58e568[_0x1a443f('0x34')]),_0x4f0c96={'method':_0x1a443f('0x63'),'uri':_0x1a443f('0x5b'),'body':_0x1cad34,'headers':{'Authorization':util[_0x1a443f('0x58')]('Basic\x20%s',Buffer[_0x1a443f('0x1a')](_0x2d2429)['toString'](_0x1a443f('0x56')))},'json':!![]};rp(_0x4f0c96)['then'](function(_0x487246){const _0x3a656b=_0x1a443f;if(_0x487246[_0x3a656b('0x64')]>=0xc8&&_0x487246['http_code']<=0xce){if(_0x487246[_0x3a656b('0x2b')]&&_0x487246[_0x3a656b('0x2b')][_0x3a656b('0x11')]>0x0){const _0x1ec610=_[_0x3a656b('0x3e')](_0x487246[_0x3a656b('0x2b')]['messages']),_0x28ad1b={'messageId':_0x1ec610[_0x3a656b('0x3c')]};return!_0x58e568['deliveryReport']&&(_0x28ad1b[_0x3a656b('0x68')]=!![]),_0x8cea76[_0x3a656b('0x39')](_0x28ad1b);}else logger[_0x3a656b('0x1')](_0x3a656b('0x26'),_0x3a656b('0x3f'),_0x3a656b('0x66'),util['inspect'](_0x487246,{'showHidden':![],'depth':null}));}else logger[_0x3a656b('0x1')](_0x3a656b('0x26'),_0x3a656b('0x3f'),'clickSend',util['inspect'](_0x487246,{'showHidden':![],'depth':null}));})[_0x1a443f('0x17')](function(_0x3d54df){const _0x2e6ee7=_0x1a443f;logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x2e6ee7('0x3f'),'clickSend',util[_0x2e6ee7('0x41')](_0x3d54df,{'showHidden':![],'depth':null}));});}else logger[_0x1a443f('0x1')](_0x1a443f('0x26'),_0x1a443f('0x3f'),_0x1a443f('0x66'),_0x1a443f('0x46'));break;}case _0x1a443f('0x49'):{if(_0x58e568[_0x1a443f('0x19')]&&_0x58e568[_0x1a443f('0x45')]){const _0x175b95={'dst':_0x57b253[_0x1a443f('0x5e')],'text':_0x57b253[_0x1a443f('0x18')],'src':_0x58e568[_0x1a443f('0x52')]||_0x58e568['phone'],'url':_0x58e568[_0x1a443f('0x14')]+_0x1a443f('0x1e')+_0x57b253['id']+'/status?token='+_0x58e568['token']},_0x36fb5a=util[_0x1a443f('0x58')](_0x1a443f('0x3a'),_0x58e568[_0x1a443f('0x19')],_0x58e568[_0x1a443f('0x45')]),_0x2c60ed={'method':_0x1a443f('0x63'),'uri':util[_0x1a443f('0x58')]('https://api.plivo.com/v1/Account/%s/Message/',_0x58e568[_0x1a443f('0x19')]),'body':_0x175b95,'headers':{'Authorization':util[_0x1a443f('0x58')](_0x1a443f('0x57'),Buffer[_0x1a443f('0x1a')](_0x36fb5a)[_0x1a443f('0x27')]('base64'))},'json':!![]};rp(_0x2c60ed)[_0x1a443f('0x67')](function(_0x338960){const _0x474474=_0x1a443f,_0x41e912={'messageId':_0x338960[_0x474474('0x1c')][0x0]};return _0x8cea76[_0x474474('0x39')](_0x41e912);})[_0x1a443f('0x17')](function(_0xab3f6e){const _0x209917=_0x1a443f;logger[_0x209917('0x1')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x209917('0x3f'),_0x209917('0x49'),util['inspect'](_0xab3f6e,{'showHidden':![],'depth':null}));});}else logger[_0x1a443f('0x1')](_0x1a443f('0x26'),_0x1a443f('0x3f'),_0x1a443f('0x49'),_0x1a443f('0x5a'));break;}case'infobip':{if(_0x58e568[_0x1a443f('0x2')]&&_0x58e568[_0x1a443f('0x34')]){if(_0x58e568[_0x1a443f('0xc')]){const _0x3619a8={'method':'POST','uri':_0x58e568['baseUrl']+_0x1a443f('0x42'),'body':{'username':_0x58e568['username'],'password':_0x58e568[_0x1a443f('0x34')]},'json':!![]};return rp(_0x3619a8)['then'](function(_0x12bc23){const _0x108fb9=_0x1a443f,_0xf9b5e9={'method':_0x108fb9('0x63'),'uri':_0x58e568[_0x108fb9('0xc')]+_0x108fb9('0x21'),'body':{'messages':[{'from':_0x58e568[_0x108fb9('0x5e')],'destinations':[{'to':_0x57b253[_0x108fb9('0x5e')]}],'text':_0x57b253[_0x108fb9('0x18')],'notifyUrl':_0x58e568[_0x108fb9('0x14')]+_0x108fb9('0x1e')+_0x57b253['id']+_0x108fb9('0x65')+_0x58e568[_0x108fb9('0xe')],'notifyContentType':'application/json','callbackData':_0x58e568['phone']+';'+_0x57b253[_0x108fb9('0x18')]}]},'headers':{'Authorization':'IBSSO\x20'+_0x12bc23['token']},'json':!![]};return rp(_0xf9b5e9)[_0x108fb9('0x67')](function(_0x28462b){const _0x4471a0=_0x108fb9;if(_0x28462b['messages']){const _0x2736bb={'messageId':_0x28462b[_0x4471a0('0x1b')][0x0]['messageId']};return!_0x58e568[_0x4471a0('0x12')]&&(_0x2736bb['read']=!![]),_0x8cea76[_0x4471a0('0x39')](_0x2736bb);}else return logger[_0x4471a0('0x1')](_0x4471a0('0x26'),_0x4471a0('0x3f'),_0x4471a0('0x43'),util[_0x4471a0('0x41')](_0x28462b,{'showHidden':![],'depth':null}));});})[_0x1a443f('0x17')](function(_0x569235){const _0x2cc736=_0x1a443f;return logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s',_0x2cc736('0x3f'),_0x2cc736('0x43'),util[_0x2cc736('0x41')](_0x569235,{'showHidden':![],'depth':null}));});}else logger[_0x1a443f('0x1')](_0x1a443f('0x26'),_0x1a443f('0x3f'),'infobip','Missing\x20parameters:\x20base_url');}else logger['error']('SmsMessage,\x20%s,\x20%s,\x20%s','afterCreate',_0x1a443f('0x43'),_0x1a443f('0x46'));break;}case _0x1a443f('0x37'):{const _0x2d45a4=require(_0x1a443f('0x5d'));if(_0x58e568[_0x1a443f('0x1f')]){const _0x2e533a={};_0x2e533a[_0x1a443f('0xb')]=_0x58e568[_0x1a443f('0x2')],_0x2e533a['phone']=_0x57b253['phone'],_0x2e533a[_0x1a443f('0x6d')]=_0x58e568[_0x1a443f('0x5e')],_0x2e533a['text']=_0x57b253['body'],_0x2e533a['timestamp']=+new Date();let _0x57aa35='',_0x153d1d='';const _0xe059b1=Object[_0x1a443f('0x6a')](_0x2e533a);_0xe059b1[_0x1a443f('0xd')]();for(let _0x4ce1d2=0x0;_0x4ce1d2<_0xe059b1['length'];_0x4ce1d2++){_0x57aa35!=''&&(_0x57aa35+='&'),_0x57aa35+=_0xe059b1[_0x4ce1d2]+'='+encodeURIComponent(_0x2e533a[_0xe059b1[_0x4ce1d2]]),_0x153d1d+=_0x2e533a[_0xe059b1[_0x4ce1d2]];}_0x153d1d+=_0x58e568[_0x1a443f('0x1f')],_0x153d1d=_0x2d45a4[_0x1a443f('0x29')](_0x1a443f('0x53'))[_0x1a443f('0x39')](_0x153d1d)['digest'](_0x1a443f('0x33'));_0x57aa35!==''&&(_0x57aa35+='&');_0x57aa35+=_0x1a443f('0x7')+_0x153d1d;const _0x4d62d8={'method':'GET','uri':_0x58e568['baseUrl']+_0x1a443f('0x30')+_0x57aa35,'json':!![]};return rp(_0x4d62d8)[_0x1a443f('0x67')](function(_0xe0c06e){const _0x122d04=_0x1a443f,_0x8d33ca=Object[_0x122d04('0x6a')](_0xe0c06e);if(_0xe0c06e[_0x8d33ca[0x0]][_0x122d04('0x1')]&&parseInt(_0xe0c06e[_0x8d33ca[0x0]]['error'])===0x0){const _0x7a3bda={'messageId':_0xe0c06e[_0x8d33ca[0x0]][_0x122d04('0x51')]};return!_0x58e568[_0x122d04('0x12')]&&(_0x7a3bda['read']=!![]),_0x8cea76[_0x122d04('0x39')](_0x7a3bda);}else return logger[_0x122d04('0x1')](_0x122d04('0x26'),_0x122d04('0x3f'),_0x122d04('0x37'),util[_0x122d04('0x41')](_0xe0c06e[_0x122d04('0x1')],{'showHidden':![],'depth':null}));})[_0x1a443f('0x17')](function(_0x59043a){const _0x49074f=_0x1a443f;return logger[_0x49074f('0x1')](_0x49074f('0x26'),'afterCreate',_0x49074f('0x37'),util[_0x49074f('0x41')](_0x59043a,{'showHidden':![],'depth':null}));});}else logger[_0x1a443f('0x1')](_0x1a443f('0x26'),_0x1a443f('0x3f'),_0x1a443f('0x37'),_0x1a443f('0x38'));break;}case _0x1a443f('0x1d'):{if(_0x58e568[_0x1a443f('0x1f')]){const _0x5918ff={'method':_0x1a443f('0x63'),'uri':_0x1a443f('0x32'),'headers':{'Authorization':_0x58e568[_0x1a443f('0x1f')]},'body':{'content':_0x57b253[_0x1a443f('0x18')],'to':[_0x57b253[_0x1a443f('0x5e')]],'from':_0x58e568[_0x1a443f('0x5e')],'binary':![],'clientMessageId':_0x1a443f('0x59'),'charset':_0x1a443f('0x13')},'json':!![]};rp(_0x5918ff)[_0x1a443f('0x67')](function(_0xfb53e){const _0x30df81=_0x1a443f;if(!_0xfb53e[_0x30df81('0x1')]){const _0x84f13c={'messageId':_0xfb53e[_0x30df81('0x1b')][0x0]['apiMessageId']};return!_0x58e568[_0x30df81('0x12')]&&(_0x84f13c[_0x30df81('0x68')]=!![]),_0x8cea76[_0x30df81('0x39')](_0x84f13c);}else return logger['error'](_0x30df81('0x26'),'afterCreate',_0x30df81('0x1d'),util[_0x30df81('0x41')](_0xfb53e['error'],{'showHidden':![],'depth':null}));})[_0x1a443f('0x17')](function(_0xf2c1bd){const _0x5a9c45=_0x1a443f;return logger['error'](_0x5a9c45('0x26'),'afterCreate',_0x5a9c45('0x1d'),util[_0x5a9c45('0x41')](_0xf2c1bd,{'showHidden':![],'depth':null}));});}else logger[_0x1a443f('0x1')](_0x1a443f('0x26'),_0x1a443f('0x3f'),'clickatell',_0x1a443f('0x38'));break;}case'intelepeer':if(_0x58e568['apiKey']){const _0x153d87={},_0x280f43={'method':_0x1a443f('0x63'),'uri':_0x1a443f('0x6c'),'headers':{'Authorization':_0x1a443f('0x62')+_0x58e568[_0x1a443f('0x1f')],'Content-Type':_0x1a443f('0x55')},'body':{'from':_0x58e568[_0x1a443f('0x5e')],'to':_0x57b253[_0x1a443f('0x5e')],'text':_0x57b253[_0x1a443f('0x18')]},'json':!![]};return rp(_0x280f43)[_0x1a443f('0x67')](function(_0x39f5bf){const _0x54d5e7=_0x1a443f;if(_0x39f5bf['code']==0xca){_0x153d87[_0x54d5e7('0x4b')]=_0x39f5bf;const _0x37c301={'method':'POST','uri':'https://api.intelepeer.com/_rest/v4/app/sms/mdr','headers':{'Authorization':_0x54d5e7('0x62')+_0x58e568[_0x54d5e7('0x1f')],'Content-Type':_0x54d5e7('0x55')},'body':{'refid':_0x153d87[_0x54d5e7('0x4b')][_0x54d5e7('0x50')]},'json':!![]};return rp(_0x37c301)['then'](function(_0x187964){const _0x2579df=_0x54d5e7;_0x153d87[_0x2579df('0x2d')]=_0x187964;const _0x56a71e={'messageId':_0x153d87[_0x2579df('0x4b')]['refid'],'read':!![]};return _0x8cea76[_0x2579df('0x39')](_0x56a71e);});}else return logger[_0x54d5e7('0x1')](_0x54d5e7('0x26'),_0x54d5e7('0x3f'),_0x54d5e7('0x4a'),util[_0x54d5e7('0x41')](_0x39f5bf,{'showHidden':![],'depth':null}));})[_0x1a443f('0x17')](function(_0x539574){const _0x25c07b=_0x1a443f;return logger[_0x25c07b('0x1')](_0x25c07b('0x26'),'afterCreate','intelepeer',util['inspect'](_0x539574,{'showHidden':![],'depth':null}));});}else return logger[_0x1a443f('0x1')](_0x1a443f('0x26'),_0x1a443f('0x3f'),_0x1a443f('0x4a'),'Token\x20not\x20received');}})[_0x67476a('0x16')](function(){return null;});}else return null;}},'charset':'utf8mb4','collate':'utf8mb4_unicode_ci'});return _0x2788f6;}; \ No newline at end of file +const a562_0x5d9c=['/external/get/send.php?','then','%s:%s','https://api.plivo.com/v1/Account/%s/Message/','remote','length','findOne','intelepeer','clickatell','total_sent','smsMethod','read','models','SmsAccountId','https://rest.clicksend.com/v3/sms/send','messages','/api/sms/messages/','error','login','https://platform.clickatell.com/messages','signature=','UserId','SmsInteractionId','refid','request-promise-native','message_id','requestid','createHash','queued_count','plivo','get','authId','hex','username','isNil','/auth/1/session','SmsMessage,\x20%s,\x20%s,\x20%s','Missing\x20parameters:\x20apiKey','https://api.intelepeer.com/_rest/v4/app/sms/send','IBSSO\x20','direction','digest','connectel','status','sms_messages','utf8mb4','password','keys','https://api.skebby.it/API/v1.0/REST/','code','user_key','from','POST','messageId','session_key','afterCreate','accountSid','./smsMessage.attributes','catch','/status?token=','application/json','twilio','deliveryReport','data','https://api.intelepeer.com/_rest/v4/app/sms/mdr','format','apiKey','type','sid','GET','&password=','FULLTEXT','phone','Missing\x20parameters:\x20base_url','body','toLowerCase','md5','../../config/logger','Token\x20not\x20received','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','sms','finally','clicksend','base64','internal_order_id','csc','/sms/2/text/advanced','message','authToken','uuid','crypto','define','update','split','inspect','https://smsapi.connectel.se/api/v2/send/','baseUrl','lodash','infobip','sender','token','toString','clickSend','out','fti_sms_messages','skebby','secret','http_code','exports','Bearer\x20','Missing\x20parameters:\x20username,\x20password','Basic\x20%s','util'];(function(_0x3c571a,_0x5d9cfc){const _0x571738=function(_0x130a7b){while(--_0x130a7b){_0x3c571a['push'](_0x3c571a['shift']());}};_0x571738(++_0x5d9cfc);}(a562_0x5d9c,0x11c));const a562_0x5717=function(_0x3c571a,_0x5d9cfc){_0x3c571a=_0x3c571a-0x0;let _0x571738=a562_0x5d9c[_0x3c571a];return _0x571738;};const _0x4dc92f=a562_0x5717;'use strict';const _=require(_0x4dc92f('0x27')),util=require(_0x4dc92f('0x36')),logger=require(_0x4dc92f('0x13'))('api'),rp=require(_0x4dc92f('0x4f')),attributes=require(_0x4dc92f('0x70'));module[_0x4dc92f('0x32')]=function(_0x130a7b){const _0x365ac1=_0x4dc92f,_0x41d752=_0x130a7b[_0x365ac1('0x43')],_0x2498fa=_0x130a7b[_0x365ac1('0x21')]('SmsMessage',attributes,{'tableName':_0x365ac1('0x63'),'paranoid':![],'indexes':[{'name':_0x365ac1('0x6c'),'fields':['messageId']},{'name':_0x365ac1('0x2e'),'fields':[_0x365ac1('0x10')],'type':_0x365ac1('0xd')}],'timestamps':!![],'hooks':{'afterCreate':function(_0xe29538){const _0xd7b0f5=_0x365ac1,_0x32cd02=_0xe29538[_0xd7b0f5('0x55')]({'plain':!![]});(_0x32cd02[_0xd7b0f5('0x5f')][_0xd7b0f5('0x11')]()==='in'||_0x32cd02[_0xd7b0f5('0x5f')]['toLowerCase']()===_0xd7b0f5('0x2d')&&!_0x32cd02[_0xd7b0f5('0x30')]&&!_[_0xd7b0f5('0x59')](_0x32cd02[_0xd7b0f5('0x4c')]))&&_0x41d752['SmsInteraction'][_0xd7b0f5('0x3d')]({'where':{'id':_0x32cd02[_0xd7b0f5('0x4d')]}})[_0xd7b0f5('0x38')](function(_0xe46a66){const _0x1ee009=_0xd7b0f5;_0xe46a66&&_0xe46a66['update']({'lastMsgAt':_0x32cd02['createdAt'],'lastMsgDirection':_0x32cd02[_0x1ee009('0x5f')]['toLowerCase']()});})['catch'](function(_0x362388){const _0x54e3e3=_0xd7b0f5;console[_0x54e3e3('0x48')](_0x362388);});if(_0x32cd02[_0xd7b0f5('0x5f')]==='out'&&!_0x32cd02[_0xd7b0f5('0x30')]){let _0x404771;_0x41d752['SmsAccount']['findOne']({'where':{'id':_0x32cd02[_0xd7b0f5('0x44')]},'raw':!![]})[_0xd7b0f5('0x38')](function(_0x45b78b){const _0x173264=_0xd7b0f5;_0x404771=_0x45b78b;if(_0x404771&&_0x404771['type'])switch(_0x404771[_0x173264('0x9')]){case'twilio':{const _0x2610a1=require('twilio');if(_0x404771[_0x173264('0x6f')]&&_0x404771[_0x173264('0x1e')]&&_0x404771[_0x173264('0xe')]){const _0x372fd1=new _0x2610a1(_0x404771[_0x173264('0x6f')],_0x404771[_0x173264('0x1e')]);_0x372fd1[_0x173264('0x46')]['create']({'body':_0x32cd02[_0x173264('0x10')],'to':_0x32cd02[_0x173264('0xe')],'from':_0x404771[_0x173264('0xe')],'statusCallback':_0x404771[_0x173264('0x3b')]+_0x173264('0x47')+_0x32cd02['id']+_0x173264('0x1')+_0x404771[_0x173264('0x2a')]})[_0x173264('0x38')](function(_0x16486c){const _0x5b053e=_0x173264;if(_0x16486c[_0x5b053e('0xa')])return _0xe29538[_0x5b053e('0x22')]({'messageId':_0x16486c[_0x5b053e('0xa')]});})[_0x173264('0x0')](function(_0x48bab3){const _0x5f4296=_0x173264;logger[_0x5f4296('0x48')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x5f4296('0x6e'),_0x5f4296('0x3'),util[_0x5f4296('0x24')](_0x48bab3,{'showHidden':![],'depth':null}));});}else logger[_0x173264('0x48')](_0x173264('0x5b'),_0x173264('0x6e'),_0x173264('0x3'),_0x173264('0x15'));break;}case _0x173264('0x2f'):{const _0x1eaa61=_0x173264('0x67');if(_0x404771[_0x173264('0x58')]&&_0x404771['password']){const _0x36d4a4={'recipient':[_0x32cd02[_0x173264('0xe')]],'message':_0x32cd02[_0x173264('0x10')],'message_type':_0x404771[_0x173264('0x41')]};_0x404771['smsMethod']&&_0x404771['smsMethod']!=='SI'&&(_0x36d4a4['sender']=_0x404771[_0x173264('0xe')]);let _0xb036bf={'url':_0x1eaa61+'login?username='+_0x404771['username']+_0x173264('0xc')+_0x404771['password'],'method':_0x173264('0xb')};rp(_0xb036bf)[_0x173264('0x38')](function(_0x2c0df0){const _0x62d0d7=_0x173264,_0x3a5645=_0x2c0df0[_0x62d0d7('0x23')](';'),_0x2b836c={'user_key':_0x3a5645[0x0],'session_key':_0x3a5645[0x1]};return _0xb036bf={'url':_0x1eaa61+_0x62d0d7('0x16'),'method':_0x62d0d7('0x6b'),'headers':{'user_key':_0x2b836c[_0x62d0d7('0x69')],'Session_key':_0x2b836c[_0x62d0d7('0x6d')]},'json':!![],'body':_0x36d4a4},rp(_0xb036bf);})['then'](function(_0x580be9){const _0x47620c=_0x173264;if(_0x580be9[_0x47620c('0x40')]>=0x1){const _0x1fe152={'messageId':_0x580be9[_0x47620c('0x1a')]};return(_0x404771['smsMethod']!=='GP'||!_0x404771[_0x47620c('0x4')])&&(_0x1fe152['read']=!![]),_0xe29538[_0x47620c('0x22')](_0x1fe152);}else return logger[_0x47620c('0x48')](_0x47620c('0x5b'),'afterCreate','skebby',util[_0x47620c('0x24')](_0x580be9,{'showHidden':![],'depth':null}));})['catch'](function(_0x4679b9){const _0x281c50=_0x173264;return logger[_0x281c50('0x48')](_0x281c50('0x5b'),_0x281c50('0x6e'),_0x281c50('0x2f'),util[_0x281c50('0x24')](_0x4679b9,{'showHidden':![],'depth':null}));});}else logger[_0x173264('0x48')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x173264('0x6e'),_0x173264('0x2f'),'Missing\x20parameters:\x20username,\x20password');break;}case _0x173264('0x61'):{if(_0x404771[_0x173264('0x1e')]){const _0x566edb={'recipient':_0x32cd02['phone'],'message':_0x32cd02['body'],'sender':_0x404771['senderString']||_0x404771[_0x173264('0xe')],'authorization':_0x404771[_0x173264('0x1e')]},_0xffebd2={'method':'POST','uri':_0x173264('0x25'),'body':_0x566edb,'json':!![]};rp(_0xffebd2)[_0x173264('0x38')](function(_0x1738cc){const _0x14057b=_0x173264,_0x4d25e4={'messageId':_0x1738cc[_0x14057b('0x51')]};return!_0x404771['deliveryReport']&&(_0x4d25e4['read']=!![]),_0xe29538[_0x14057b('0x22')](_0x4d25e4);})[_0x173264('0x0')](function(_0x4fadc7){const _0x269849=_0x173264;logger[_0x269849('0x48')](_0x269849('0x5b'),_0x269849('0x6e'),_0x269849('0x61'),util[_0x269849('0x24')](_0x4fadc7,{'showHidden':![],'depth':null}));});}else logger[_0x173264('0x48')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x173264('0x6e'),'connectel','Missing\x20parameters:\x20authToken');break;}case _0x173264('0x18'):{if(_0x404771['username']&&_0x404771[_0x173264('0x65')]){const _0x3517b6={'messages':[{'source':'xCALLY\x20Motion','to':_0x32cd02[_0x173264('0xe')],'body':_0x32cd02['body'],'from':_0x404771['senderString']||_0x404771[_0x173264('0xe')]}]},_0x53afd9=util[_0x173264('0x7')](_0x173264('0x39'),_0x404771[_0x173264('0x58')],_0x404771[_0x173264('0x65')]),_0x293299={'method':'POST','uri':_0x173264('0x45'),'body':_0x3517b6,'headers':{'Authorization':util[_0x173264('0x7')](_0x173264('0x35'),Buffer[_0x173264('0x6a')](_0x53afd9)[_0x173264('0x2b')](_0x173264('0x19')))},'json':!![]};rp(_0x293299)[_0x173264('0x38')](function(_0xb073db){const _0x3b2ea6=_0x173264;if(_0xb073db[_0x3b2ea6('0x31')]>=0xc8&&_0xb073db['http_code']<=0xce){if(_0xb073db[_0x3b2ea6('0x5')]&&_0xb073db[_0x3b2ea6('0x5')][_0x3b2ea6('0x53')]>0x0){const _0x359680=_['head'](_0xb073db[_0x3b2ea6('0x5')][_0x3b2ea6('0x46')]),_0x49a945={'messageId':_0x359680[_0x3b2ea6('0x50')]};return!_0x404771[_0x3b2ea6('0x4')]&&(_0x49a945[_0x3b2ea6('0x42')]=!![]),_0xe29538[_0x3b2ea6('0x22')](_0x49a945);}else logger[_0x3b2ea6('0x48')](_0x3b2ea6('0x5b'),_0x3b2ea6('0x6e'),_0x3b2ea6('0x2c'),util[_0x3b2ea6('0x24')](_0xb073db,{'showHidden':![],'depth':null}));}else logger['error'](_0x3b2ea6('0x5b'),_0x3b2ea6('0x6e'),'clickSend',util[_0x3b2ea6('0x24')](_0xb073db,{'showHidden':![],'depth':null}));})[_0x173264('0x0')](function(_0x1ad842){const _0x33c09a=_0x173264;logger[_0x33c09a('0x48')](_0x33c09a('0x5b'),'afterCreate',_0x33c09a('0x2c'),util['inspect'](_0x1ad842,{'showHidden':![],'depth':null}));});}else logger[_0x173264('0x48')](_0x173264('0x5b'),_0x173264('0x6e'),_0x173264('0x2c'),_0x173264('0x34'));break;}case'plivo':{if(_0x404771[_0x173264('0x56')]&&_0x404771[_0x173264('0x1e')]){const _0xaeafe0={'dst':_0x32cd02[_0x173264('0xe')],'text':_0x32cd02[_0x173264('0x10')],'src':_0x404771['senderString']||_0x404771[_0x173264('0xe')],'url':_0x404771['remote']+_0x173264('0x47')+_0x32cd02['id']+'/status?token='+_0x404771['token']},_0x1e7a3f=util[_0x173264('0x7')](_0x173264('0x39'),_0x404771['authId'],_0x404771[_0x173264('0x1e')]),_0x5b298a={'method':_0x173264('0x6b'),'uri':util['format'](_0x173264('0x3a'),_0x404771['authId']),'body':_0xaeafe0,'headers':{'Authorization':util[_0x173264('0x7')](_0x173264('0x35'),Buffer[_0x173264('0x6a')](_0x1e7a3f)[_0x173264('0x2b')](_0x173264('0x19')))},'json':!![]};rp(_0x5b298a)[_0x173264('0x38')](function(_0x2cb808){const _0x4f50fb=_0x173264,_0x5175a7={'messageId':_0x2cb808['message_uuid'][0x0]};return _0xe29538[_0x4f50fb('0x22')](_0x5175a7);})['catch'](function(_0x5092f9){const _0x23e610=_0x173264;logger['error'](_0x23e610('0x5b'),_0x23e610('0x6e'),'plivo',util[_0x23e610('0x24')](_0x5092f9,{'showHidden':![],'depth':null}));});}else logger[_0x173264('0x48')](_0x173264('0x5b'),_0x173264('0x6e'),_0x173264('0x54'),'Missing\x20parameters:\x20authId,\x20authToken');break;}case _0x173264('0x28'):{if(_0x404771[_0x173264('0x58')]&&_0x404771['password']){if(_0x404771[_0x173264('0x26')]){const _0x1865f0={'method':_0x173264('0x6b'),'uri':_0x404771[_0x173264('0x26')]+_0x173264('0x5a'),'body':{'username':_0x404771[_0x173264('0x58')],'password':_0x404771[_0x173264('0x65')]},'json':!![]};return rp(_0x1865f0)[_0x173264('0x38')](function(_0x4e163c){const _0x9337b5=_0x173264,_0x4b71c1={'method':_0x9337b5('0x6b'),'uri':_0x404771[_0x9337b5('0x26')]+_0x9337b5('0x1c'),'body':{'messages':[{'from':_0x404771['phone'],'destinations':[{'to':_0x32cd02['phone']}],'text':_0x32cd02[_0x9337b5('0x10')],'notifyUrl':_0x404771['remote']+_0x9337b5('0x47')+_0x32cd02['id']+'/status?token='+_0x404771[_0x9337b5('0x2a')],'notifyContentType':_0x9337b5('0x2'),'callbackData':_0x404771[_0x9337b5('0xe')]+';'+_0x32cd02['body']}]},'headers':{'Authorization':_0x9337b5('0x5e')+_0x4e163c['token']},'json':!![]};return rp(_0x4b71c1)[_0x9337b5('0x38')](function(_0xc5fecb){const _0x59d8a7=_0x9337b5;if(_0xc5fecb[_0x59d8a7('0x46')]){const _0x5df170={'messageId':_0xc5fecb[_0x59d8a7('0x46')][0x0][_0x59d8a7('0x6c')]};return!_0x404771[_0x59d8a7('0x4')]&&(_0x5df170[_0x59d8a7('0x42')]=!![]),_0xe29538[_0x59d8a7('0x22')](_0x5df170);}else return logger['error'](_0x59d8a7('0x5b'),_0x59d8a7('0x6e'),_0x59d8a7('0x28'),util['inspect'](_0xc5fecb,{'showHidden':![],'depth':null}));});})['catch'](function(_0x1f61c0){const _0x343eb4=_0x173264;return logger[_0x343eb4('0x48')](_0x343eb4('0x5b'),'afterCreate',_0x343eb4('0x28'),util[_0x343eb4('0x24')](_0x1f61c0,{'showHidden':![],'depth':null}));});}else logger[_0x173264('0x48')](_0x173264('0x5b'),_0x173264('0x6e'),_0x173264('0x28'),_0x173264('0xf'));}else logger[_0x173264('0x48')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x173264('0x6e'),_0x173264('0x28'),_0x173264('0x34'));break;}case _0x173264('0x1b'):{const _0xcc1e96=require(_0x173264('0x20'));if(_0x404771['apiKey']){const _0x3e8a08={};_0x3e8a08[_0x173264('0x49')]=_0x404771['username'],_0x3e8a08[_0x173264('0xe')]=_0x32cd02['phone'],_0x3e8a08[_0x173264('0x29')]=_0x404771['phone'],_0x3e8a08['text']=_0x32cd02[_0x173264('0x10')],_0x3e8a08['timestamp']=+new Date();let _0x553d43='',_0x39b7ae='';const _0x15dcbc=Object[_0x173264('0x66')](_0x3e8a08);_0x15dcbc['sort']();for(let _0x44b22b=0x0;_0x44b22b<_0x15dcbc[_0x173264('0x3c')];_0x44b22b++){_0x553d43!=''&&(_0x553d43+='&'),_0x553d43+=_0x15dcbc[_0x44b22b]+'='+encodeURIComponent(_0x3e8a08[_0x15dcbc[_0x44b22b]]),_0x39b7ae+=_0x3e8a08[_0x15dcbc[_0x44b22b]];}_0x39b7ae+=_0x404771[_0x173264('0x8')],_0x39b7ae=_0xcc1e96[_0x173264('0x52')](_0x173264('0x12'))[_0x173264('0x22')](_0x39b7ae)[_0x173264('0x60')](_0x173264('0x57'));_0x553d43!==''&&(_0x553d43+='&');_0x553d43+=_0x173264('0x4b')+_0x39b7ae;const _0x34851d={'method':_0x173264('0xb'),'uri':_0x404771['baseUrl']+_0x173264('0x37')+_0x553d43,'json':!![]};return rp(_0x34851d)[_0x173264('0x38')](function(_0x373fc7){const _0x4e9834=_0x173264,_0xb629b6=Object[_0x4e9834('0x66')](_0x373fc7);if(_0x373fc7[_0xb629b6[0x0]]['error']&&parseInt(_0x373fc7[_0xb629b6[0x0]][_0x4e9834('0x48')])===0x0){const _0x29c2ea={'messageId':_0x373fc7[_0xb629b6[0x0]]['id_sms']};return!_0x404771[_0x4e9834('0x4')]&&(_0x29c2ea[_0x4e9834('0x42')]=!![]),_0xe29538[_0x4e9834('0x22')](_0x29c2ea);}else return logger[_0x4e9834('0x48')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x4e9834('0x6e'),_0x4e9834('0x1b'),util['inspect'](_0x373fc7['error'],{'showHidden':![],'depth':null}));})[_0x173264('0x0')](function(_0x23c738){const _0x33ac9d=_0x173264;return logger[_0x33ac9d('0x48')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x33ac9d('0x6e'),'csc',util[_0x33ac9d('0x24')](_0x23c738,{'showHidden':![],'depth':null}));});}else logger['error'](_0x173264('0x5b'),_0x173264('0x6e'),_0x173264('0x1b'),_0x173264('0x5c'));break;}case _0x173264('0x3f'):{if(_0x404771['apiKey']){const _0x396402={'method':'POST','uri':_0x173264('0x4a'),'headers':{'Authorization':_0x404771['apiKey']},'body':{'content':_0x32cd02[_0x173264('0x10')],'to':[_0x32cd02[_0x173264('0xe')]],'from':_0x404771['phone'],'binary':![],'clientMessageId':_0x173264('0x1f'),'charset':'UTF-8'},'json':!![]};rp(_0x396402)[_0x173264('0x38')](function(_0x1dbfe3){const _0x5a2713=_0x173264;if(!_0x1dbfe3[_0x5a2713('0x48')]){const _0x1ed069={'messageId':_0x1dbfe3[_0x5a2713('0x46')][0x0]['apiMessageId']};return!_0x404771[_0x5a2713('0x4')]&&(_0x1ed069[_0x5a2713('0x42')]=!![]),_0xe29538['update'](_0x1ed069);}else return logger[_0x5a2713('0x48')](_0x5a2713('0x5b'),_0x5a2713('0x6e'),_0x5a2713('0x3f'),util[_0x5a2713('0x24')](_0x1dbfe3[_0x5a2713('0x48')],{'showHidden':![],'depth':null}));})['catch'](function(_0x2f6a82){const _0x269c8b=_0x173264;return logger['error'](_0x269c8b('0x5b'),'afterCreate','clickatell',util[_0x269c8b('0x24')](_0x2f6a82,{'showHidden':![],'depth':null}));});}else logger[_0x173264('0x48')](_0x173264('0x5b'),_0x173264('0x6e'),_0x173264('0x3f'),'Missing\x20parameters:\x20apiKey');break;}case _0x173264('0x3e'):if(_0x404771[_0x173264('0x8')]){const _0x378beb={},_0x4e3158={'method':_0x173264('0x6b'),'uri':_0x173264('0x5d'),'headers':{'Authorization':_0x173264('0x33')+_0x404771[_0x173264('0x8')],'Content-Type':'application/json'},'body':{'from':_0x404771[_0x173264('0xe')],'to':_0x32cd02[_0x173264('0xe')],'text':_0x32cd02[_0x173264('0x10')]},'json':!![]};return rp(_0x4e3158)['then'](function(_0x4e318e){const _0x22b559=_0x173264;if(_0x4e318e[_0x22b559('0x68')]==0xca){_0x378beb[_0x22b559('0x1d')]=_0x4e318e;const _0x21ec78={'method':_0x22b559('0x6b'),'uri':_0x22b559('0x6'),'headers':{'Authorization':'Bearer\x20'+_0x404771[_0x22b559('0x8')],'Content-Type':_0x22b559('0x2')},'body':{'refid':_0x378beb[_0x22b559('0x1d')][_0x22b559('0x4e')]},'json':!![]};return rp(_0x21ec78)['then'](function(_0x322ad6){const _0x5d88e3=_0x22b559;_0x378beb[_0x5d88e3('0x62')]=_0x322ad6;const _0x1356ec={'messageId':_0x378beb[_0x5d88e3('0x1d')][_0x5d88e3('0x4e')],'read':!![]};return _0xe29538['update'](_0x1356ec);});}else return logger[_0x22b559('0x48')](_0x22b559('0x5b'),'afterCreate',_0x22b559('0x3e'),util[_0x22b559('0x24')](_0x4e318e,{'showHidden':![],'depth':null}));})[_0x173264('0x0')](function(_0x53ecd2){const _0x89c370=_0x173264;return logger[_0x89c370('0x48')]('SmsMessage,\x20%s,\x20%s,\x20%s',_0x89c370('0x6e'),_0x89c370('0x3e'),util[_0x89c370('0x24')](_0x53ecd2,{'showHidden':![],'depth':null}));});}else return logger[_0x173264('0x48')](_0x173264('0x5b'),_0x173264('0x6e'),_0x173264('0x3e'),_0x173264('0x14'));}})[_0xd7b0f5('0x17')](function(){return null;});}else return null;}},'charset':_0x365ac1('0x64'),'collate':'utf8mb4_unicode_ci'});return _0x2498fa;}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.rpc.js b/server/api/smsMessage/smsMessage.rpc.js index 5ac85ab..77ff78e 100644 --- a/server/api/smsMessage/smsMessage.rpc.js +++ b/server/api/smsMessage/smsMessage.rpc.js @@ -1 +1 @@ -const a563_0x1e1f=['CreateSmsMessage','body','SmsMessage','debug','message','../../rediscache','create','./smsMessage.socket','stringify','then','options','error','register','rpc','catch','../../mysqldb','info','raw'];(function(_0x43b0ca,_0x1e1f3f){const _0xa90aaf=function(_0x18872a){while(--_0x18872a){_0x43b0ca['push'](_0x43b0ca['shift']());}};_0xa90aaf(++_0x1e1f3f);}(a563_0x1e1f,0xdf));const a563_0xa90a=function(_0x43b0ca,_0x1e1f3f){_0x43b0ca=_0x43b0ca-0x0;let _0xa90aaf=a563_0x1e1f[_0x43b0ca];return _0xa90aaf;};const _0x3301de=a563_0xa90a;'use strict';const db=require(_0x3301de('0x8'))['db'],logger=require('../../config/logger')(_0x3301de('0x6')),{getSocket}=require(_0x3301de('0x10')),socket=getSocket();require(_0x3301de('0x0'))[_0x3301de('0x5')](socket),exports[_0x3301de('0xb')]=function(_0x18872a){const _0x415f75=this;return new Promise(function(_0x1476f6,_0x4146a9){const _0x471c92=a563_0xa90a;return db[_0x471c92('0xd')][_0x471c92('0x11')](_0x18872a[_0x471c92('0xc')],{'raw':_0x18872a[_0x471c92('0x3')]?_0x18872a[_0x471c92('0x3')][_0x471c92('0xa')]===undefined?!![]:![]:!![]})[_0x471c92('0x2')](function(_0x519a78){const _0x3bd19e=_0x471c92;logger[_0x3bd19e('0x9')](_0x3bd19e('0xb'),_0x18872a),logger[_0x3bd19e('0xe')](_0x3bd19e('0xb'),_0x18872a,JSON[_0x3bd19e('0x1')](_0x519a78)),_0x1476f6(_0x519a78);})[_0x471c92('0x7')](function(_0x4278c2){const _0x54c5cc=_0x471c92;logger[_0x54c5cc('0x4')](_0x54c5cc('0xb'),_0x4278c2[_0x54c5cc('0xf')],_0x18872a),_0x4146a9(_0x415f75[_0x54c5cc('0x4')](0x1f4,_0x4278c2['message']));});});}; \ No newline at end of file +const a563_0x5117=['stringify','../../config/logger','error','./smsMessage.socket','create','../../mysqldb','rpc','options','raw','../../rediscache','register','message','catch','then','SmsMessage','CreateSmsMessage'];(function(_0x1dbad8,_0x511707){const _0x48417a=function(_0x9467ac){while(--_0x9467ac){_0x1dbad8['push'](_0x1dbad8['shift']());}};_0x48417a(++_0x511707);}(a563_0x5117,0x15f));const a563_0x4841=function(_0x1dbad8,_0x511707){_0x1dbad8=_0x1dbad8-0x0;let _0x48417a=a563_0x5117[_0x1dbad8];return _0x48417a;};const _0x34e1fb=a563_0x4841;'use strict';const db=require(_0x34e1fb('0x6'))['db'],logger=require(_0x34e1fb('0x2'))(_0x34e1fb('0x7')),{getSocket}=require(_0x34e1fb('0xa')),socket=getSocket();require(_0x34e1fb('0x4'))[_0x34e1fb('0xb')](socket),exports[_0x34e1fb('0x0')]=function(_0x9467ac){const _0x5c676d=this;return new Promise(function(_0x1955fd,_0x4077a4){const _0x11fd28=a563_0x4841;return db[_0x11fd28('0xf')][_0x11fd28('0x5')](_0x9467ac['body'],{'raw':_0x9467ac['options']?_0x9467ac[_0x11fd28('0x8')][_0x11fd28('0x9')]===undefined?!![]:![]:!![]})[_0x11fd28('0xe')](function(_0x5bcb0b){const _0x5ce023=_0x11fd28;logger['info'](_0x5ce023('0x0'),_0x9467ac),logger['debug'](_0x5ce023('0x0'),_0x9467ac,JSON[_0x5ce023('0x1')](_0x5bcb0b)),_0x1955fd(_0x5bcb0b);})[_0x11fd28('0xd')](function(_0x241467){const _0x5ecef7=_0x11fd28;logger['error'](_0x5ecef7('0x0'),_0x241467[_0x5ecef7('0xc')],_0x9467ac),_0x4077a4(_0x5c676d[_0x5ecef7('0x3')](0x1f4,_0x241467[_0x5ecef7('0xc')]));});});}; \ No newline at end of file diff --git a/server/api/smsMessage/smsMessage.socket.js b/server/api/smsMessage/smsMessage.socket.js index 77f9376..7e7b624 100644 --- a/server/api/smsMessage/smsMessage.socket.js +++ b/server/api/smsMessage/smsMessage.socket.js @@ -1 +1 @@ -const a564_0xba46=['emit','update','length','smsMessage:','remove','./smsMessage.events'];(function(_0x4399b4,_0xba460a){const _0x1a8795=function(_0x465fbf){while(--_0x465fbf){_0x4399b4['push'](_0x4399b4['shift']());}};_0x1a8795(++_0xba460a);}(a564_0xba46,0x182));const a564_0x1a87=function(_0x4399b4,_0xba460a){_0x4399b4=_0x4399b4-0x0;let _0x1a8795=a564_0xba46[_0x4399b4];return _0x1a8795;};const _0xd0cf01=a564_0x1a87;'use strict';const SmsMessageEvents=require(_0xd0cf01('0x3')),events=['save',_0xd0cf01('0x2'),_0xd0cf01('0x5')];function createListener(_0x465fbf,_0x42a6fb){return function(_0xcdda1b){const _0x3b27a0=a564_0x1a87;_0x42a6fb[_0x3b27a0('0x4')](_0x465fbf,_0xcdda1b);};}exports['register']=function(_0x168182){const _0x2cac08=_0xd0cf01;for(let _0x5b918f=0x0,_0x5dce46=events[_0x2cac08('0x0')];_0x5b918f<_0x5dce46;_0x5b918f++){const _0x57933e=events[_0x5b918f],_0x4a8760=createListener(_0x2cac08('0x1')+_0x57933e,_0x168182);SmsMessageEvents['on'](_0x57933e,_0x4a8760);}}; \ No newline at end of file +const a564_0x6c97=['emit','length','update','smsMessage:','save','register','./smsMessage.events'];(function(_0x3f9750,_0x6c973e){const _0x221576=function(_0x1e9352){while(--_0x1e9352){_0x3f9750['push'](_0x3f9750['shift']());}};_0x221576(++_0x6c973e);}(a564_0x6c97,0x1dc));const a564_0x2215=function(_0x3f9750,_0x6c973e){_0x3f9750=_0x3f9750-0x0;let _0x221576=a564_0x6c97[_0x3f9750];return _0x221576;};const _0x36cfae=a564_0x2215;'use strict';const SmsMessageEvents=require(_0x36cfae('0x6')),events=[_0x36cfae('0x4'),'remove',_0x36cfae('0x2')];function createListener(_0x1e9352,_0x3fc3ea){return function(_0xde8a13){const _0x1596d0=a564_0x2215;_0x3fc3ea[_0x1596d0('0x0')](_0x1e9352,_0xde8a13);};}exports[_0x36cfae('0x5')]=function(_0x1577a2){const _0xf6d028=_0x36cfae;for(let _0x3e41ed=0x0,_0x3e11ee=events[_0xf6d028('0x1')];_0x3e41ed<_0x3e11ee;_0x3e41ed++){const _0x221eed=events[_0x3e41ed],_0x2bb32a=createListener(_0xf6d028('0x3')+_0x221eed,_0x1577a2);SmsMessageEvents['on'](_0x221eed,_0x2bb32a);}}; \ No newline at end of file diff --git a/server/api/smsQueue/index.js b/server/api/smsQueue/index.js index e47cc6a..37eaa9d 100644 --- a/server/api/smsQueue/index.js +++ b/server/api/smsQueue/index.js @@ -1 +1 @@ -const a565_0x5ccc=['removeAgents','/:id/members','../../components/auth/service','removeTeams','getMembers','index','/:id/users','Router','describe','addAgents','put','delete','/:id','express','post','isAuthenticated','create','/:id/teams','destroy','exports','getAgents','./smsQueue.controller','addTeams','getTeams','get','update'];(function(_0x152326,_0x5ccc24){const _0x1d28d5=function(_0x3ece60){while(--_0x3ece60){_0x152326['push'](_0x152326['shift']());}};_0x1d28d5(++_0x5ccc24);}(a565_0x5ccc,0x17e));const a565_0x1d28=function(_0x152326,_0x5ccc24){_0x152326=_0x152326-0x0;let _0x1d28d5=a565_0x5ccc[_0x152326];return _0x1d28d5;};const _0x48973d=a565_0x1d28;'use strict';const express=require(_0x48973d('0x15')),router=express[_0x48973d('0xf')](),auth=require(_0x48973d('0xa')),controller=require(_0x48973d('0x3'));router[_0x48973d('0x6')]('/',auth['isAuthenticated'](),controller[_0x48973d('0xd')]),router[_0x48973d('0x6')]('/describe',auth[_0x48973d('0x17')](),controller[_0x48973d('0x10')]),router[_0x48973d('0x6')](_0x48973d('0x14'),auth[_0x48973d('0x17')](),controller['show']),router[_0x48973d('0x6')](_0x48973d('0x9'),auth[_0x48973d('0x17')](),controller[_0x48973d('0xc')]),router['get'](_0x48973d('0x19'),auth[_0x48973d('0x17')](),controller[_0x48973d('0x5')]),router[_0x48973d('0x6')](_0x48973d('0xe'),auth[_0x48973d('0x17')](),controller[_0x48973d('0x2')]),router[_0x48973d('0x16')]('/',auth['isAuthenticated'](),controller[_0x48973d('0x18')]),router['post']('/:id/teams',auth[_0x48973d('0x17')](),controller[_0x48973d('0x4')]),router[_0x48973d('0x16')](_0x48973d('0xe'),auth['isAuthenticated'](),controller[_0x48973d('0x11')]),router[_0x48973d('0x12')](_0x48973d('0x14'),auth[_0x48973d('0x17')](),controller[_0x48973d('0x7')]),router[_0x48973d('0x13')](_0x48973d('0x14'),auth[_0x48973d('0x17')](),controller[_0x48973d('0x0')]),router['delete']('/:id/teams',auth['isAuthenticated'](),controller[_0x48973d('0xb')]),router[_0x48973d('0x13')](_0x48973d('0xe'),auth[_0x48973d('0x17')](),controller[_0x48973d('0x8')]),module[_0x48973d('0x1')]=router; \ No newline at end of file +const a565_0x33fd=['delete','/:id/users','../../components/auth/service','/:id/teams','get','removeAgents','create','post','addTeams','destroy','getMembers','describe','index','getAgents','express','show','isAuthenticated','/:id/members','update','getTeams'];(function(_0x5c0129,_0x33fde6){const _0xbf7c33=function(_0x36f216){while(--_0x36f216){_0x5c0129['push'](_0x5c0129['shift']());}};_0xbf7c33(++_0x33fde6);}(a565_0x33fd,0x77));const a565_0xbf7c=function(_0x5c0129,_0x33fde6){_0x5c0129=_0x5c0129-0x0;let _0xbf7c33=a565_0x33fd[_0x5c0129];return _0xbf7c33;};const _0x2634f4=a565_0xbf7c;'use strict';const express=require(_0x2634f4('0xf')),router=express['Router'](),auth=require(_0x2634f4('0x3')),controller=require('./smsQueue.controller');router[_0x2634f4('0x5')]('/',auth[_0x2634f4('0x11')](),controller[_0x2634f4('0xd')]),router['get']('/describe',auth[_0x2634f4('0x11')](),controller[_0x2634f4('0xc')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x2634f4('0x10')]),router['get'](_0x2634f4('0x12'),auth[_0x2634f4('0x11')](),controller[_0x2634f4('0xb')]),router[_0x2634f4('0x5')](_0x2634f4('0x4'),auth['isAuthenticated'](),controller[_0x2634f4('0x0')]),router[_0x2634f4('0x5')](_0x2634f4('0x2'),auth[_0x2634f4('0x11')](),controller[_0x2634f4('0xe')]),router[_0x2634f4('0x8')]('/',auth[_0x2634f4('0x11')](),controller[_0x2634f4('0x7')]),router['post'](_0x2634f4('0x4'),auth[_0x2634f4('0x11')](),controller[_0x2634f4('0x9')]),router[_0x2634f4('0x8')]('/:id/users',auth[_0x2634f4('0x11')](),controller['addAgents']),router['put']('/:id',auth['isAuthenticated'](),controller[_0x2634f4('0x13')]),router[_0x2634f4('0x1')]('/:id',auth[_0x2634f4('0x11')](),controller[_0x2634f4('0xa')]),router[_0x2634f4('0x1')]('/:id/teams',auth['isAuthenticated'](),controller['removeTeams']),router['delete']('/:id/users',auth[_0x2634f4('0x11')](),controller[_0x2634f4('0x6')]),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 58e762f..deeaf63 100644 --- a/server/api/smsQueue/smsQueue.attributes.js +++ b/server/api/smsQueue/smsQueue.attributes.js @@ -1 +1 @@ -const a566_0x4dff=['rrmemory','name','ENUM','roundrobin','sequelize','beepall','INTEGER','exports','STRING'];(function(_0x346b4c,_0x4dffac){const _0x5d47f4=function(_0x35ee94){while(--_0x35ee94){_0x346b4c['push'](_0x346b4c['shift']());}};_0x5d47f4(++_0x4dffac);}(a566_0x4dff,0x145));const a566_0x5d47=function(_0x346b4c,_0x4dffac){_0x346b4c=_0x346b4c-0x0;let _0x5d47f4=a566_0x4dff[_0x346b4c];return _0x5d47f4;};const _0x56ca16=a566_0x5d47;'use strict';const Sequelize=require(_0x56ca16('0x3'));module[_0x56ca16('0x6')]={'name':{'type':Sequelize[_0x56ca16('0x7')],'unique':_0x56ca16('0x0'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x56ca16('0x7')]},'timeout':{'type':Sequelize[_0x56ca16('0x5')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x56ca16('0x1')](_0x56ca16('0x8'),_0x56ca16('0x4'),_0x56ca16('0x2'))}}; \ No newline at end of file +const a566_0x382d=['name','rrmemory','ENUM','STRING','roundrobin','INTEGER','exports','beepall','sequelize'];(function(_0x56e132,_0x382dfc){const _0x1b1934=function(_0x8b4f4d){while(--_0x8b4f4d){_0x56e132['push'](_0x56e132['shift']());}};_0x1b1934(++_0x382dfc);}(a566_0x382d,0xbc));const a566_0x1b19=function(_0x56e132,_0x382dfc){_0x56e132=_0x56e132-0x0;let _0x1b1934=a566_0x382d[_0x56e132];return _0x1b1934;};const _0x3f33ac=a566_0x1b19;'use strict';const Sequelize=require(_0x3f33ac('0x0'));module[_0x3f33ac('0x7')]={'name':{'type':Sequelize[_0x3f33ac('0x4')],'unique':_0x3f33ac('0x1'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'description':{'type':Sequelize[_0x3f33ac('0x4')]},'timeout':{'type':Sequelize[_0x3f33ac('0x6')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x3f33ac('0x3')](_0x3f33ac('0x2'),_0x3f33ac('0x8'),_0x3f33ac('0x5'))}}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.controller.js b/server/api/smsQueue/smsQueue.controller.js index b46630c..39df087 100644 --- a/server/api/smsQueue/smsQueue.controller.js +++ b/server/api/smsQueue/smsQueue.controller.js @@ -1 +1 @@ -const a567_0x4411=['intersection','error','findAll','userSmsQueue:remove','order','Team','updatedAt','user','query','ids','sort','UserProfileResource','SIP','pick','like','removeAgents','isEmpty','forEach','index','lodash','model','SmsQueues','options','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','register','show','map','UserProfileSection','includes','join','every','../../components/parsers/qs','clone','findOne','compact','length','team_has_sms_queues','user_has_teams','autoAssociation','TeamId','stack','field','../../config/logger','filter','removeTeams','filters','addAgents','SmsQueue','keys','update','rawAttributes','online','findOrCreate','nolimit','catch','body','../../mysqldb','send','status','fields','interface','isArray','ut.TeamId\x20=\x20tq.TeamId','Agents','toString','end','get','all','userSmsQueue:save','count','key','merge','User','type','createdAt','ut.UserId\x20=\x20?','squel','create','offset','getMembers','api','getAgents','%s/%s','include','UserId','VIRTUAL','where','sequelize','tq.TeamId','attributes','role','each','json','Unable\x20to\x20retrieve\x20the\x20current\x20user','SmsQueueId','SELECT','sendStatus','userProfileId','UserSmsQueue','addTeams','params','getTeams','name','limit','transaction','describe','then','destroy','set','smsPause','union','emit','includeAll','undefined'];(function(_0x4050b6,_0x441195){const _0x3695a6=function(_0x27889b){while(--_0x27889b){_0x4050b6['push'](_0x4050b6['shift']());}};_0x3695a6(++_0x441195);}(a567_0x4411,0x129));const a567_0x3695=function(_0x4050b6,_0x441195){_0x4050b6=_0x4050b6-0x0;let _0x3695a6=a567_0x4411[_0x4050b6];return _0x3695a6;};const _0x24fd06=a567_0x3695;'use strict';const util=require('util'),_=require(_0x24fd06('0x40')),squel=require(_0x24fd06('0x7')),qs=require(_0x24fd06('0x4c')),logger=require(_0x24fd06('0x57'))(_0x24fd06('0xb')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x24fd06('0x65'))['db'],{Op,QueryTypes}=require(_0x24fd06('0x12'));require('./smsQueue.socket')[_0x24fd06('0x45')](socket);function respondWithStatusCode(_0x27889b,_0x4abfbe){return _0x4abfbe=_0x4abfbe||0xcc,function(_0x47a4b8){const _0x1eb53f=a567_0x3695;if(_0x47a4b8)return _0x27889b[_0x1eb53f('0x1b')](_0x4abfbe);return _0x27889b['status'](_0x4abfbe)[_0x1eb53f('0x6e')]();};}function respondWithResult(_0xd5960d,_0x11660f){return _0x11660f=_0x11660f||0xc8,function(_0x36b0e3){const _0x17673e=a567_0x3695;if(_0x36b0e3)return _0xd5960d[_0x17673e('0x67')](_0x11660f)[_0x17673e('0x17')](_0x36b0e3);};}function respondWithFilteredResult(_0x5f5405,_0xbc14e3){return function(_0x3d86d0){const _0x4f0256=a567_0x3695;if(_0x3d86d0){const _0x24226b=_0x3d86d0[_0x4f0256('0x0')],_0x5b98dd=_0xbc14e3[_0x4f0256('0x9')];let _0x58501a=_0xbc14e3[_0x4f0256('0x9')]+_0xbc14e3[_0x4f0256('0x22')],_0x5e8973;return _0x58501a>=_0x24226b?(_0x58501a=_0x24226b,_0x5e8973=0xc8):_0x5e8973=0xce,_0x5f5405[_0x4f0256('0x67')](_0x5e8973),_0x5f5405[_0x4f0256('0x27')]('Content-Range',_0x5b98dd+'-'+_0x58501a+'/'+_0x24226b)[_0x4f0256('0x17')](_0x3d86d0);}return null;};}function saveUpdates(_0x4e0bd1){return function(_0x84f794){const _0x5b9eb6=a567_0x3695;if(_0x84f794)return _0x84f794[_0x5b9eb6('0x5e')](_0x4e0bd1)[_0x5b9eb6('0x25')](function(_0x3a0625){return _0x3a0625;});return null;};}function removeEntity(_0xa07981){return function(_0x5cb22a){if(_0x5cb22a)return _0x5cb22a['destroy']()['then'](function(){const _0x10d65c=a567_0x3695,_0x16c3d3=_0x5cb22a[_0x10d65c('0x6f')]({'plain':!![]}),_0x4a08e2=_0x10d65c('0x42');return db[_0x10d65c('0x38')]['destroy']({'where':{'type':_0x4a08e2,'resourceId':_0x16c3d3['id']}})['then'](function(){return _0x5cb22a;});})['then'](function(){const _0x143e4c=a567_0x3695;_0xa07981[_0x143e4c('0x67')](0xcc)[_0x143e4c('0x6e')]();});};}function handleEntityNotFound(_0x467baa){return function(_0x5b873b){const _0xe1e163=a567_0x3695;return!_0x5b873b&&_0x467baa[_0xe1e163('0x1b')](0x194),_0x5b873b;};}function handleError(_0x3cedb6,_0x2b8b34){return _0x2b8b34=_0x2b8b34||0x1f4,function(_0x2d5ed8){const _0x499da1=a567_0x3695;logger[_0x499da1('0x2e')](_0x2d5ed8[_0x499da1('0x55')]),_0x2d5ed8['name']&&delete _0x2d5ed8['name'],_0x3cedb6[_0x499da1('0x67')](_0x2b8b34)[_0x499da1('0x66')](_0x2d5ed8);};}exports[_0x24fd06('0x3f')]=function(_0x27e8b8,_0x570563){const _0x33a2d6=_0x24fd06;let _0x29db6d={};const _0x1477d4={},_0x50572c={'count':0x0,'rows':[]},_0x32cdaf=_[_0x33a2d6('0x47')](db[_0x33a2d6('0x5c')][_0x33a2d6('0x5f')],function(_0x300e12){const _0xe25dcb=_0x33a2d6;return{'name':_0x300e12['fieldName'],'type':_0x300e12[_0xe25dcb('0x4')][_0xe25dcb('0x1')]};});_0x1477d4[_0x33a2d6('0x41')]=_[_0x33a2d6('0x47')](_0x32cdaf,_0x33a2d6('0x21')),_0x1477d4[_0x33a2d6('0x35')]=_[_0x33a2d6('0x5d')](_0x27e8b8[_0x33a2d6('0x35')]),_0x1477d4[_0x33a2d6('0x5a')]=_[_0x33a2d6('0x2d')](_0x1477d4[_0x33a2d6('0x41')],_0x1477d4[_0x33a2d6('0x35')]),_0x29db6d[_0x33a2d6('0x14')]=_[_0x33a2d6('0x2d')](_0x1477d4[_0x33a2d6('0x41')],qs[_0x33a2d6('0x68')](_0x27e8b8['query'][_0x33a2d6('0x68')])),_0x29db6d[_0x33a2d6('0x14')]=_0x29db6d[_0x33a2d6('0x14')]['length']?_0x29db6d['attributes']:_0x1477d4[_0x33a2d6('0x41')];typeof _0x27e8b8['query'][_0x33a2d6('0x62')]===_0x33a2d6('0x2c')&&(_0x29db6d['limit']=qs[_0x33a2d6('0x22')](_0x27e8b8[_0x33a2d6('0x35')]['limit']),_0x29db6d['offset']=qs[_0x33a2d6('0x9')](_0x27e8b8[_0x33a2d6('0x35')]['offset']));_0x29db6d[_0x33a2d6('0x31')]=qs['sort'](_0x27e8b8['query']['sort']),_0x29db6d['where']=qs[_0x33a2d6('0x5a')](_[_0x33a2d6('0x3a')](_0x27e8b8['query'],_0x1477d4[_0x33a2d6('0x5a')]),_0x32cdaf);_0x27e8b8[_0x33a2d6('0x35')][_0x33a2d6('0x58')]&&(_0x29db6d[_0x33a2d6('0x11')]=_[_0x33a2d6('0x2')](_0x29db6d['where'],{[Op['or']]:_['map'](_0x32cdaf,function(_0x21ebcc){const _0x289d75=_0x33a2d6;if(_0x21ebcc['type']!==_0x289d75('0x10')){const _0x4f6999={};return _0x4f6999[_0x21ebcc[_0x289d75('0x21')]]={[Op['like']]:'%'+_0x27e8b8[_0x289d75('0x35')][_0x289d75('0x58')]+'%'},_0x4f6999;}})}));_0x29db6d=_[_0x33a2d6('0x2')]({},_0x29db6d,_0x27e8b8[_0x33a2d6('0x43')]);const _0x2a783d={'where':_0x29db6d[_0x33a2d6('0x11')]};return db[_0x33a2d6('0x5c')][_0x33a2d6('0x0')](_0x2a783d)[_0x33a2d6('0x25')](function(_0x149063){const _0x27e21a=_0x33a2d6;return _0x50572c['count']=_0x149063,_0x27e8b8[_0x27e21a('0x35')][_0x27e21a('0x2b')]&&(_0x29db6d[_0x27e21a('0xe')]=[{'all':!![]}]),db[_0x27e21a('0x5c')][_0x27e21a('0x2f')](_0x29db6d);})['then'](function(_0x19dfb0){return _0x50572c['rows']=_0x19dfb0,_0x50572c;})[_0x33a2d6('0x25')](respondWithFilteredResult(_0x570563,_0x29db6d))[_0x33a2d6('0x63')](handleError(_0x570563,null));},exports[_0x24fd06('0x46')]=function(_0x4adbae,_0x5d1558){const _0x3eed31=_0x24fd06;let _0x3dfe01={'raw':!![],'where':{'id':_0x4adbae[_0x3eed31('0x1f')]['id']}};const _0x589d6a={};return _0x589d6a[_0x3eed31('0x41')]=_[_0x3eed31('0x5d')](db[_0x3eed31('0x5c')][_0x3eed31('0x5f')]),_0x589d6a[_0x3eed31('0x35')]=_[_0x3eed31('0x5d')](_0x4adbae[_0x3eed31('0x35')]),_0x589d6a[_0x3eed31('0x5a')]=_[_0x3eed31('0x2d')](_0x589d6a['model'],_0x589d6a[_0x3eed31('0x35')]),_0x3dfe01[_0x3eed31('0x14')]=_[_0x3eed31('0x2d')](_0x589d6a['model'],qs[_0x3eed31('0x68')](_0x4adbae[_0x3eed31('0x35')][_0x3eed31('0x68')])),_0x3dfe01[_0x3eed31('0x14')]=_0x3dfe01[_0x3eed31('0x14')][_0x3eed31('0x50')]?_0x3dfe01[_0x3eed31('0x14')]:_0x589d6a[_0x3eed31('0x41')],_0x4adbae[_0x3eed31('0x35')][_0x3eed31('0x2b')]&&(_0x3dfe01[_0x3eed31('0xe')]=[{'all':!![]}]),_0x3dfe01=_[_0x3eed31('0x2')]({},_0x3dfe01,_0x4adbae[_0x3eed31('0x43')]),db['SmsQueue'][_0x3eed31('0x4e')](_0x3dfe01)[_0x3eed31('0x25')](handleEntityNotFound(_0x5d1558,null))[_0x3eed31('0x25')](respondWithResult(_0x5d1558,null))[_0x3eed31('0x63')](handleError(_0x5d1558,null));},exports['create']=function(_0x49915c,_0x2e064a){const _0x131921=_0x24fd06;return db[_0x131921('0x5c')][_0x131921('0x8')](_0x49915c[_0x131921('0x64')],{})[_0x131921('0x25')](function(_0x45c6aa){const _0x201fab=_0x131921,_0x33f3cc=_0x49915c[_0x201fab('0x34')][_0x201fab('0x6f')]({'plain':!![]});if(!_0x33f3cc)throw new Error(_0x201fab('0x18'));if(_0x33f3cc[_0x201fab('0x15')]===_0x201fab('0x34')){const _0x116daa=_0x45c6aa[_0x201fab('0x6f')]({'plain':!![]}),_0x1c58d5=_0x201fab('0x42');return db[_0x201fab('0x48')][_0x201fab('0x4e')]({'where':{'name':_0x1c58d5,'userProfileId':_0x33f3cc[_0x201fab('0x1c')]},'raw':!![]})[_0x201fab('0x25')](function(_0x17d867){const _0x2d182b=_0x201fab;return _0x17d867&&_0x17d867[_0x2d182b('0x53')]===0x0?db[_0x2d182b('0x38')]['create']({'name':_0x116daa[_0x2d182b('0x21')],'resourceId':_0x116daa['id'],'type':_0x17d867[_0x2d182b('0x21')],'sectionId':_0x17d867['id']},{})[_0x2d182b('0x25')](function(){return _0x45c6aa;}):_0x45c6aa;})[_0x201fab('0x63')](function(_0x17bbc1){const _0x35d13a=_0x201fab;logger[_0x35d13a('0x2e')](_0x35d13a('0x44'),_0x17bbc1);throw _0x17bbc1;});}return _0x45c6aa;})[_0x131921('0x25')](respondWithResult(_0x2e064a,0xc9))[_0x131921('0x63')](handleError(_0x2e064a,null));},exports[_0x24fd06('0x5e')]=function(_0x3f5353,_0x10a6a8){const _0x1eda68=_0x24fd06;return _0x3f5353['body']['id']&&delete _0x3f5353[_0x1eda68('0x64')]['id'],db[_0x1eda68('0x5c')]['findOne']({'where':{'id':_0x3f5353[_0x1eda68('0x1f')]['id']}})['then'](handleEntityNotFound(_0x10a6a8,null))[_0x1eda68('0x25')](saveUpdates(_0x3f5353[_0x1eda68('0x64')],null))[_0x1eda68('0x25')](respondWithResult(_0x10a6a8,null))[_0x1eda68('0x63')](handleError(_0x10a6a8,null));},exports[_0x24fd06('0x26')]=function(_0x3ec259,_0x1d078c){const _0x9576eb=_0x24fd06;return db[_0x9576eb('0x5c')][_0x9576eb('0x4e')]({'where':{'id':_0x3ec259[_0x9576eb('0x1f')]['id']}})[_0x9576eb('0x25')](handleEntityNotFound(_0x1d078c,null))[_0x9576eb('0x25')](removeEntity(_0x1d078c,null))[_0x9576eb('0x63')](handleError(_0x1d078c,null));},exports[_0x24fd06('0x24')]=function(_0x14a667,_0x5587f0){const _0x19e0b1=_0x24fd06;return db[_0x19e0b1('0x5c')][_0x19e0b1('0x24')]()[_0x19e0b1('0x25')](respondWithResult(_0x5587f0,null))[_0x19e0b1('0x63')](handleError(_0x5587f0,null));},exports[_0x24fd06('0xa')]=function(_0x351369,_0x33fa30){const _0x5bee82=_0x24fd06;let _0xe702b4={'raw':!![],'where':{}};const _0x1a59d1={};let _0x2bce44;return db[_0x5bee82('0x5c')][_0x5bee82('0x4e')]({'where':{'id':_0x351369['params']['id']}})[_0x5bee82('0x25')](handleEntityNotFound(_0x33fa30,null))[_0x5bee82('0x25')](function(_0x22fb93){const _0x382207=_0x5bee82;if(_0x22fb93)return _0x2bce44=_0x22fb93[_0x382207('0x6f')]({'plain':!![]}),_0x1a59d1[_0x382207('0x41')]=_[_0x382207('0x5d')](db['UserSmsQueue']['rawAttributes']),_0x1a59d1['query']=_[_0x382207('0x5d')](_0x351369['query']),_0x1a59d1[_0x382207('0x5a')]=_[_0x382207('0x2d')](_0x1a59d1[_0x382207('0x41')],_0x1a59d1['query']),_0xe702b4[_0x382207('0x14')]=_[_0x382207('0x2d')](_0x1a59d1[_0x382207('0x41')],qs['fields'](_0x351369['query'][_0x382207('0x68')])),_0xe702b4[_0x382207('0x14')]=_0xe702b4['attributes'][_0x382207('0x50')]?_0xe702b4[_0x382207('0x14')]:_0x1a59d1['model'],typeof _0x351369[_0x382207('0x35')][_0x382207('0x62')]===_0x382207('0x2c')&&(_0xe702b4['limit']=qs[_0x382207('0x22')](_0x351369['query'][_0x382207('0x22')]),_0xe702b4[_0x382207('0x9')]=qs[_0x382207('0x9')](_0x351369[_0x382207('0x35')][_0x382207('0x9')])),_0xe702b4[_0x382207('0x31')]=qs[_0x382207('0x37')](_0x351369[_0x382207('0x35')][_0x382207('0x37')]),_0xe702b4[_0x382207('0x11')]=qs[_0x382207('0x5a')](_[_0x382207('0x3a')](_0x351369[_0x382207('0x35')],_0x1a59d1[_0x382207('0x5a')])),_0xe702b4[_0x382207('0x11')][_0x382207('0x19')]=_0x22fb93['id'],_0x351369[_0x382207('0x35')][_0x382207('0x58')]&&(_0xe702b4['where']=_[_0x382207('0x2')](_0xe702b4['where'],{[Op['or']]:_[_0x382207('0x47')](_0xe702b4[_0x382207('0x14')],function(_0x174174){const _0x5e2721=_0x382207,_0x5024b5={};return _0x5024b5[_0x174174]={[Op['like']]:'%'+_0x351369[_0x5e2721('0x35')][_0x5e2721('0x58')]+'%'},_0x5024b5;})})),_0xe702b4=_[_0x382207('0x2')]({},_0xe702b4,_0x351369['options']),db[_0x382207('0x1d')]['findAll'](_0xe702b4);})['then'](function(_0x5d8812){const _0x9f20ac=_0x5bee82;if(_0x5d8812)return db[_0x9f20ac('0x3')]['findAndCountAll']({'where':{'id':_[_0x9f20ac('0x47')](_0x5d8812,_0x9f20ac('0xf')),'role':'agent'},'attributes':['id',_0x9f20ac('0x21'),_0x9f20ac('0x28'),_0x9f20ac('0x33'),'createdAt']});})[_0x5bee82('0x25')](function(_0x144171){const _0x1da1ef=_0x5bee82;return _0x144171?{'count':_0x144171['count'],'rows':_[_0x1da1ef('0x47')](_0x144171['rows'],function(_0x461358){const _0x535f24=_0x1da1ef;return{'membername':_0x461358['name'],'UserId':_0x461358['id'],'queue_name':_0x2bce44['name'],'SmsQueueId':_0x2bce44['id'],'interface':util['format'](_0x535f24('0xd'),_0x535f24('0x39'),_0x461358['name']),'penalty':0x0,'paused':_0x461358[_0x535f24('0x28')],'createdAt':_0x461358[_0x535f24('0x5')],'updatedAt':_0x461358[_0x535f24('0x33')]};})}:{'count':0x0,'rows':[]};})[_0x5bee82('0x25')](respondWithFilteredResult(_0x33fa30,_0xe702b4))['catch'](handleError(_0x33fa30,null));},exports[_0x24fd06('0x20')]=function(_0x3051ef,_0x1a63c1){const _0x5ef2e2=_0x24fd06;let _0x13e53c={};const _0x12b2ff={};let _0x3e57b6,_0x100f27;return db['SmsQueue'][_0x5ef2e2('0x4e')]({'where':{'id':_0x3051ef[_0x5ef2e2('0x1f')]['id']}})[_0x5ef2e2('0x25')](handleEntityNotFound(_0x1a63c1,null))[_0x5ef2e2('0x25')](function(_0x2551cc){const _0x1855ad=_0x5ef2e2;if(_0x2551cc)return _0x3e57b6=_0x2551cc,_0x12b2ff['model']=_[_0x1855ad('0x5d')](db[_0x1855ad('0x32')]['rawAttributes']),_0x12b2ff[_0x1855ad('0x35')]=_[_0x1855ad('0x5d')](_0x3051ef[_0x1855ad('0x35')]),_0x12b2ff[_0x1855ad('0x5a')]=_[_0x1855ad('0x2d')](_0x12b2ff['model'],_0x12b2ff[_0x1855ad('0x35')]),_0x13e53c[_0x1855ad('0x14')]=_[_0x1855ad('0x2d')](_0x12b2ff['model'],qs[_0x1855ad('0x68')](_0x3051ef[_0x1855ad('0x35')][_0x1855ad('0x68')])),_0x13e53c[_0x1855ad('0x14')]=_0x13e53c[_0x1855ad('0x14')][_0x1855ad('0x50')]?_0x13e53c[_0x1855ad('0x14')]:_0x12b2ff[_0x1855ad('0x41')],_0x13e53c['order']=qs[_0x1855ad('0x37')](_0x3051ef[_0x1855ad('0x35')]['sort']),_0x13e53c[_0x1855ad('0x11')]=qs[_0x1855ad('0x5a')](_[_0x1855ad('0x3a')](_0x3051ef[_0x1855ad('0x35')],_0x12b2ff[_0x1855ad('0x5a')])),_0x3051ef[_0x1855ad('0x35')][_0x1855ad('0x58')]&&(_0x13e53c[_0x1855ad('0x11')]=_['merge'](_0x13e53c['where'],{[Op['or']]:_[_0x1855ad('0x47')](_0x13e53c['attributes'],function(_0x56aef5){const _0x436340=_0x1855ad,_0x2df4b2={};return _0x2df4b2[_0x56aef5]={[Op[_0x436340('0x3b')]]:'%'+_0x3051ef[_0x436340('0x35')][_0x436340('0x58')]+'%'},_0x2df4b2;})})),_0x13e53c=_[_0x1855ad('0x2')]({},_0x13e53c,_0x3051ef['options']),_0x3e57b6['getTeams'](_0x13e53c);})[_0x5ef2e2('0x25')](function(_0x205e4f){const _0xc8ee6c=_0x5ef2e2;if(_0x205e4f)return _0x100f27=_0x205e4f[_0xc8ee6c('0x50')],typeof _0x3051ef[_0xc8ee6c('0x35')][_0xc8ee6c('0x62')]==='undefined'&&(_0x13e53c['limit']=qs[_0xc8ee6c('0x22')](_0x3051ef[_0xc8ee6c('0x35')][_0xc8ee6c('0x22')]),_0x13e53c[_0xc8ee6c('0x9')]=qs['offset'](_0x3051ef[_0xc8ee6c('0x35')]['offset'])),_0x3e57b6[_0xc8ee6c('0x20')](_0x13e53c);})[_0x5ef2e2('0x25')](function(_0x5c6ff4){if(_0x5c6ff4)return _0x5c6ff4?{'count':_0x100f27,'rows':_0x5c6ff4}:null;})[_0x5ef2e2('0x25')](respondWithResult(_0x1a63c1,null))[_0x5ef2e2('0x63')](handleError(_0x1a63c1,null));},exports[_0x24fd06('0x1e')]=function(_0x3d4c26,_0x1a8350){const _0x3a18bf=_0x24fd06,_0x402d2e=_0x3d4c26[_0x3a18bf('0x64')]['ids'];return db[_0x3a18bf('0x32')][_0x3a18bf('0x2f')]({'where':{'id':_0x402d2e},'attributes':['id'],'include':[{'model':db[_0x3a18bf('0x3')],'as':_0x3a18bf('0x6c'),'attributes':['id','name',_0x3a18bf('0x60'),'voicePause',_0x3a18bf('0x69')],'raw':!![]}]})['then'](function(_0x637e50){const _0x5cf85b=_0x3a18bf;if(_0x637e50){const _0x4cc365=_['flatMap'](_0x637e50,function(_0x4251f9){const _0xc19d1e=a567_0x3695,_0x538b78=_0x4251f9[_0xc19d1e('0x6f')]({'plain':!![]});return _0x538b78['Agents'];});return db['SmsQueue'][_0x5cf85b('0x4e')]({'where':{'id':_0x3d4c26[_0x5cf85b('0x1f')]['id']}})[_0x5cf85b('0x25')](function(_0x2ade88){const _0x650b7=_0x5cf85b;return db[_0x650b7('0x12')][_0x650b7('0x23')](function(_0xc99773){const _0x185084=_0x650b7;return _0x2ade88[_0x185084('0x1e')](_0x402d2e,{'transaction':_0xc99773})[_0x185084('0x25')](function(){const _0x2cb252=_0x185084;return Promise[_0x2cb252('0x16')](_0x4cc365,function(_0x3d8db9){const _0x3d9d89=_0x2cb252;return db['UserSmsQueue'][_0x3d9d89('0x61')]({'where':{'UserId':_0x3d8db9['id'],'SmsQueueId':_0x3d4c26[_0x3d9d89('0x1f')]['id']},'transaction':_0xc99773});});})[_0x185084('0x25')](function(){_0x4cc365['forEach'](function(_0x105c07){const _0x5843ef=a567_0x3695;socket[_0x5843ef('0x2a')](_0x5843ef('0x71'),{'UserId':_0x105c07['id'],'SmsQueueId':_0x2ade88['id']});});});});});}})[_0x3a18bf('0x25')](respondWithStatusCode(_0x1a8350,null))['catch'](handleError(_0x1a8350,null));},exports[_0x24fd06('0x59')]=function(_0x424c6f,_0x50ba09){const _0x9d25da=_0x24fd06;return db[_0x9d25da('0x32')][_0x9d25da('0x2f')]({'where':{'id':_0x424c6f['query'][_0x9d25da('0x36')]},'attributes':['id'],'include':[{'model':db[_0x9d25da('0x3')],'as':'Agents','attributes':['id'],'raw':!![]}]})[_0x9d25da('0x25')](handleEntityNotFound(_0x50ba09,null))[_0x9d25da('0x25')](function(_0x2c443c){const _0xe4520a=_0x9d25da,_0x34e6d4=_[_0xe4520a('0x47')](_0x2c443c,'id');let _0x30624f=[];const _0x24e55f=[],_0x453b03=squel['select']();_0x453b03[_0xe4520a('0x56')](_0xe4520a('0x13'))['from'](_0xe4520a('0x51'),'tq')[_0xe4520a('0x4a')](_0xe4520a('0x52'),'ut',_0xe4520a('0x6b'))[_0xe4520a('0x11')]('SmsQueueId\x20=\x20?',_0x424c6f[_0xe4520a('0x1f')]['id']);for(let _0x33ce98=0x0;_0x33ce98<_0x2c443c[_0xe4520a('0x50')];_0x33ce98+=0x1){const _0x46df85=_0x2c443c[_0x33ce98];for(let _0x14cb70=0x0;_0x14cb70<_0x46df85[_0xe4520a('0x6c')][_0xe4520a('0x50')];_0x14cb70+=0x1){const _0x36d71a=_0x46df85[_0xe4520a('0x6c')][_0x14cb70],_0x536c06=_0x453b03[_0xe4520a('0x4d')]();_0x536c06[_0xe4520a('0x11')](_0xe4520a('0x6'),_0x36d71a['id']),_0x24e55f['push'](db[_0xe4520a('0x12')]['query'](_0x536c06[_0xe4520a('0x6d')](),{'type':QueryTypes[_0xe4520a('0x1a')]})[_0xe4520a('0x25')](function(_0x469414){const _0x1a3bd6=_0xe4520a;if(_0x469414[_0x1a3bd6('0x50')]===0x1)return _0x36d71a['id'];else{const _0x39586e=_[_0x1a3bd6('0x4b')](_[_0x1a3bd6('0x47')](_0x469414,_0x1a3bd6('0x54')),function(_0x117df1){const _0x38eb99=_0x1a3bd6;return _[_0x38eb99('0x49')](_0x34e6d4,_0x117df1);});if(_0x39586e)return _0x36d71a['id'];}}));}}return Promise[_0xe4520a('0x70')](_0x24e55f)[_0xe4520a('0x25')](function(_0x3ec017){const _0x1ffc1b=_0xe4520a;return _0x30624f=_(_0x30624f)[_0x1ffc1b('0x29')](_0x3ec017)[_0x1ffc1b('0x4f')]()['value'](),db[_0x1ffc1b('0x5c')][_0x1ffc1b('0x4e')]({'where':{'id':_0x424c6f[_0x1ffc1b('0x1f')]['id']}})[_0x1ffc1b('0x25')](function(_0x841a84){const _0x250b33=_0x1ffc1b;return db[_0x250b33('0x12')]['transaction'](function(_0x391c4b){const _0xcd8f6=_0x250b33;return _0x841a84['removeTeams'](_0x424c6f[_0xcd8f6('0x35')][_0xcd8f6('0x36')],{'transaction':_0x391c4b})[_0xcd8f6('0x25')](function(){const _0x31b81e=_0xcd8f6;if(!_[_0x31b81e('0x3d')](_0x30624f))return _0x841a84[_0x31b81e('0x3c')](_0x30624f,{'transaction':_0x391c4b});})[_0xcd8f6('0x25')](function(){const _0x56b0e8=_0xcd8f6;_0x30624f[_0x56b0e8('0x3e')](function(_0x360795){const _0x39cd40=_0x56b0e8;socket[_0x39cd40('0x2a')](_0x39cd40('0x30'),{'UserId':_0x360795,'SmsQueueId':_0x841a84['id']});});});});});});})[_0x9d25da('0x25')](respondWithStatusCode(_0x50ba09,null))[_0x9d25da('0x63')](handleError(_0x50ba09,null));},exports[_0x24fd06('0x5b')]=function(_0x5aa9e2,_0x26a1ca){const _0x80ac13=_0x24fd06;return db['SmsQueue'][_0x80ac13('0x4e')]({'where':{'id':_0x5aa9e2[_0x80ac13('0x1f')]['id']}})[_0x80ac13('0x25')](function(_0x4e4664){const _0x41fdf9=_0x80ac13;if(_0x4e4664)return _0x4e4664[_0x41fdf9('0x5b')](_0x5aa9e2['body'][_0x41fdf9('0x36')],{'through':_['omit'](_0x5aa9e2[_0x41fdf9('0x64')],[_0x41fdf9('0x36'),'id'])})[_0x41fdf9('0x25')](function(_0xc5a63a){const _0x52b83b=_0x41fdf9;for(let _0x2e12d5=0x0;_0x2e12d5<_0x5aa9e2['body']['ids'][_0x52b83b('0x50')];_0x2e12d5+=0x1){socket[_0x52b83b('0x2a')](_0x52b83b('0x71'),{'UserId':_0x5aa9e2[_0x52b83b('0x64')][_0x52b83b('0x36')][_0x2e12d5],'SmsQueueId':_0x5aa9e2[_0x52b83b('0x1f')]['id']});}return _0xc5a63a;});})[_0x80ac13('0x25')](respondWithResult(_0x26a1ca,null))[_0x80ac13('0x63')](handleError(_0x26a1ca,null));},exports[_0x24fd06('0x3c')]=function(_0x15700b,_0x374570){const _0x56eacb=_0x24fd06;return db[_0x56eacb('0x5c')][_0x56eacb('0x4e')]({'where':{'id':_0x15700b['params']['id']}})[_0x56eacb('0x25')](handleEntityNotFound(_0x374570,null))[_0x56eacb('0x25')](function(_0x1d29eb){const _0x204e7e=_0x56eacb;if(_0x1d29eb)return _0x1d29eb[_0x204e7e('0x3c')](_0x15700b[_0x204e7e('0x35')][_0x204e7e('0x36')])[_0x204e7e('0x25')](function(){const _0x2df8d5=_0x204e7e;if(_[_0x2df8d5('0x6a')](_0x15700b[_0x2df8d5('0x35')][_0x2df8d5('0x36')]))for(let _0x22ffae=0x0;_0x22ffae<_0x15700b['query']['ids']['length'];_0x22ffae+=0x1){socket['emit']('userSmsQueue:remove',{'UserId':Number(_0x15700b[_0x2df8d5('0x35')][_0x2df8d5('0x36')][_0x22ffae]),'SmsQueueId':Number(_0x15700b[_0x2df8d5('0x1f')]['id'])});}else socket[_0x2df8d5('0x2a')](_0x2df8d5('0x30'),{'UserId':Number(_0x15700b['query'][_0x2df8d5('0x36')]),'SmsQueueId':Number(_0x15700b[_0x2df8d5('0x1f')]['id'])});});})[_0x56eacb('0x25')](respondWithStatusCode(_0x374570,null))[_0x56eacb('0x63')](handleError(_0x374570,null));},exports['getAgents']=function(_0x15eda3,_0x13bcd8){const _0x850ca4=_0x24fd06;let _0x4eb1ef={};const _0x41db6a={};let _0x57b8cf,_0x41906e;return db[_0x850ca4('0x5c')][_0x850ca4('0x4e')]({'where':{'id':_0x15eda3[_0x850ca4('0x1f')]['id']}})['then'](handleEntityNotFound(_0x13bcd8,null))[_0x850ca4('0x25')](function(_0x447f2c){const _0x1f1b79=_0x850ca4;if(_0x447f2c)return _0x57b8cf=_0x447f2c,_0x41db6a[_0x1f1b79('0x41')]=_[_0x1f1b79('0x5d')](db['User'][_0x1f1b79('0x5f')]),_0x41db6a[_0x1f1b79('0x35')]=_[_0x1f1b79('0x5d')](_0x15eda3['query']),_0x41db6a[_0x1f1b79('0x5a')]=_[_0x1f1b79('0x2d')](_0x41db6a[_0x1f1b79('0x41')],_0x41db6a[_0x1f1b79('0x35')]),_0x4eb1ef[_0x1f1b79('0x14')]=_[_0x1f1b79('0x2d')](_0x41db6a[_0x1f1b79('0x41')],qs[_0x1f1b79('0x68')](_0x15eda3[_0x1f1b79('0x35')][_0x1f1b79('0x68')])),_0x4eb1ef[_0x1f1b79('0x14')]=_0x4eb1ef[_0x1f1b79('0x14')]['length']?_0x4eb1ef[_0x1f1b79('0x14')]:_0x41db6a[_0x1f1b79('0x41')],_0x4eb1ef[_0x1f1b79('0x31')]=qs[_0x1f1b79('0x37')](_0x15eda3[_0x1f1b79('0x35')]['sort']),_0x4eb1ef[_0x1f1b79('0x11')]=qs['filters'](_[_0x1f1b79('0x3a')](_0x15eda3[_0x1f1b79('0x35')],_0x41db6a[_0x1f1b79('0x5a')])),_0x15eda3[_0x1f1b79('0x35')][_0x1f1b79('0x58')]&&(_0x4eb1ef[_0x1f1b79('0x11')]=_[_0x1f1b79('0x2')](_0x4eb1ef['where'],{[Op['or']]:_[_0x1f1b79('0x47')](_0x4eb1ef[_0x1f1b79('0x14')],function(_0x12a6e7){const _0x4a1a1f=_0x1f1b79,_0x280a69={};return _0x280a69[_0x12a6e7]={[Op[_0x4a1a1f('0x3b')]]:'%'+_0x15eda3[_0x4a1a1f('0x35')][_0x4a1a1f('0x58')]+'%'},_0x280a69;})})),_0x4eb1ef=_[_0x1f1b79('0x2')]({},_0x4eb1ef,_0x15eda3[_0x1f1b79('0x43')]),_0x57b8cf[_0x1f1b79('0xc')](_0x4eb1ef);})[_0x850ca4('0x25')](function(_0x16910e){const _0x5d41b6=_0x850ca4;if(_0x16910e)return _0x41906e=_0x16910e['length'],typeof _0x15eda3[_0x5d41b6('0x35')]['nolimit']===_0x5d41b6('0x2c')&&(_0x4eb1ef[_0x5d41b6('0x22')]=qs[_0x5d41b6('0x22')](_0x15eda3[_0x5d41b6('0x35')][_0x5d41b6('0x22')]),_0x4eb1ef[_0x5d41b6('0x9')]=qs['offset'](_0x15eda3['query'][_0x5d41b6('0x9')])),_0x57b8cf['getAgents'](_0x4eb1ef);})[_0x850ca4('0x25')](function(_0xf70061){if(_0xf70061)return _0xf70061?{'count':_0x41906e,'rows':_0xf70061}:null;})[_0x850ca4('0x25')](respondWithResult(_0x13bcd8,null))[_0x850ca4('0x63')](handleError(_0x13bcd8,null));}; \ No newline at end of file +const a567_0x3373=['compact','ut.TeamId\x20=\x20tq.TeamId','each','user','count','emit','end','SmsQueue','Team','options','create','UserSmsQueue','keys','update','removeAgents','sequelize','join','pick','describe','getTeams','omit','forEach','SmsQueueId\x20=\x20?','where','field','map','key','filters','../../config/logger','fieldName','findAndCountAll','catch','User','fields','destroy','SmsQueueId','removeTeams','sort','ids','error','role','lodash','undefined','Content-Range','model','intersection','createdAt','body','name','./smsQueue.socket','attributes','rawAttributes','includeAll','userSmsQueue:remove','limit','clone','register','order','online','transaction','flatMap','addTeams','include','updatedAt','autoAssociation','Agents','agent','type','select','union','tq.TeamId','smsPause','send','SmsQueues','voicePause','UserProfileSection','user_has_teams','length','userSmsQueue:save','get','includes','findAll','query','status','getAgents','nolimit','then','SIP','set','UserId','TeamId','team_has_sms_queues','interface','UserProfileResource','findOne','toString','format','userProfileId','squel','sendStatus','filter','every','params','like','merge','offset','json','value','SELECT'];(function(_0x565be1,_0x337361){const _0x460625=function(_0x344321){while(--_0x344321){_0x565be1['push'](_0x565be1['shift']());}};_0x460625(++_0x337361);}(a567_0x3373,0xca));const a567_0x4606=function(_0x565be1,_0x337361){_0x565be1=_0x565be1-0x0;let _0x460625=a567_0x3373[_0x565be1];return _0x460625;};const _0x12c156=a567_0x4606;'use strict';const util=require('util'),_=require(_0x12c156('0x39')),squel=require(_0x12c156('0x5')),qs=require('../../components/parsers/qs'),logger=require(_0x12c156('0x2c'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,QueryTypes}=require('sequelize');require(_0x12c156('0x41'))[_0x12c156('0x48')](socket);function respondWithStatusCode(_0x344321,_0x3b5af9){return _0x3b5af9=_0x3b5af9||0xcc,function(_0xfae860){const _0x4a8b3f=a567_0x4606;if(_0xfae860)return _0x344321[_0x4a8b3f('0x6')](_0x3b5af9);return _0x344321[_0x4a8b3f('0x63')](_0x3b5af9)[_0x4a8b3f('0x16')]();};}function respondWithResult(_0x3929ca,_0x1bc47b){return _0x1bc47b=_0x1bc47b||0xc8,function(_0x2cb2b4){const _0x475c32=a567_0x4606;if(_0x2cb2b4)return _0x3929ca[_0x475c32('0x63')](_0x1bc47b)[_0x475c32('0xd')](_0x2cb2b4);};}function respondWithFilteredResult(_0x1608d5,_0x1f81fc){return function(_0x1116a3){const _0xad6d26=a567_0x4606;if(_0x1116a3){const _0x20d33f=_0x1116a3[_0xad6d26('0x14')],_0x1db9dd=_0x1f81fc[_0xad6d26('0xc')];let _0x176482=_0x1f81fc[_0xad6d26('0xc')]+_0x1f81fc['limit'],_0x5ac929;return _0x176482>=_0x20d33f?(_0x176482=_0x20d33f,_0x5ac929=0xc8):_0x5ac929=0xce,_0x1608d5[_0xad6d26('0x63')](_0x5ac929),_0x1608d5[_0xad6d26('0x68')](_0xad6d26('0x3b'),_0x1db9dd+'-'+_0x176482+'/'+_0x20d33f)[_0xad6d26('0xd')](_0x1116a3);}return null;};}function saveUpdates(_0x5bbb01){return function(_0x2d913c){const _0x34f29c=a567_0x4606;if(_0x2d913c)return _0x2d913c[_0x34f29c('0x1d')](_0x5bbb01)[_0x34f29c('0x66')](function(_0x9c7616){return _0x9c7616;});return null;};}function removeEntity(_0x5bb437){return function(_0x11d3f1){const _0x39ff50=a567_0x4606;if(_0x11d3f1)return _0x11d3f1[_0x39ff50('0x32')]()[_0x39ff50('0x66')](function(){const _0x30fa0d=_0x39ff50,_0x258539=_0x11d3f1[_0x30fa0d('0x5f')]({'plain':!![]}),_0x19b4fb=_0x30fa0d('0x59');return db[_0x30fa0d('0x0')]['destroy']({'where':{'type':_0x19b4fb,'resourceId':_0x258539['id']}})['then'](function(){return _0x11d3f1;});})[_0x39ff50('0x66')](function(){const _0x131cee=_0x39ff50;_0x5bb437[_0x131cee('0x63')](0xcc)[_0x131cee('0x16')]();});};}function handleEntityNotFound(_0x3cad8f){return function(_0x30e475){const _0x2cfc8a=a567_0x4606;return!_0x30e475&&_0x3cad8f[_0x2cfc8a('0x6')](0x194),_0x30e475;};}function handleError(_0x34a41d,_0x36362c){return _0x36362c=_0x36362c||0x1f4,function(_0x47a570){const _0x512f2e=a567_0x4606;logger['error'](_0x47a570['stack']),_0x47a570[_0x512f2e('0x40')]&&delete _0x47a570[_0x512f2e('0x40')],_0x34a41d[_0x512f2e('0x63')](_0x36362c)[_0x512f2e('0x58')](_0x47a570);};}exports['index']=function(_0x26a0a2,_0x13fea0){const _0x5af262=_0x12c156;let _0x3a89f7={};const _0x3a9e4a={},_0x31c85e={'count':0x0,'rows':[]},_0x797f3e=_['map'](db['SmsQueue'][_0x5af262('0x43')],function(_0x4e4cb2){const _0x468dda=_0x5af262;return{'name':_0x4e4cb2[_0x468dda('0x2d')],'type':_0x4e4cb2[_0x468dda('0x53')][_0x468dda('0x2a')]};});_0x3a9e4a[_0x5af262('0x3c')]=_[_0x5af262('0x29')](_0x797f3e,_0x5af262('0x40')),_0x3a9e4a[_0x5af262('0x62')]=_[_0x5af262('0x1c')](_0x26a0a2[_0x5af262('0x62')]),_0x3a9e4a['filters']=_[_0x5af262('0x3d')](_0x3a9e4a[_0x5af262('0x3c')],_0x3a9e4a[_0x5af262('0x62')]),_0x3a89f7[_0x5af262('0x42')]=_['intersection'](_0x3a9e4a[_0x5af262('0x3c')],qs[_0x5af262('0x31')](_0x26a0a2[_0x5af262('0x62')]['fields'])),_0x3a89f7[_0x5af262('0x42')]=_0x3a89f7[_0x5af262('0x42')][_0x5af262('0x5d')]?_0x3a89f7[_0x5af262('0x42')]:_0x3a9e4a[_0x5af262('0x3c')];typeof _0x26a0a2['query'][_0x5af262('0x65')]==='undefined'&&(_0x3a89f7[_0x5af262('0x46')]=qs[_0x5af262('0x46')](_0x26a0a2[_0x5af262('0x62')][_0x5af262('0x46')]),_0x3a89f7['offset']=qs[_0x5af262('0xc')](_0x26a0a2['query'][_0x5af262('0xc')]));_0x3a89f7['order']=qs[_0x5af262('0x35')](_0x26a0a2[_0x5af262('0x62')]['sort']),_0x3a89f7[_0x5af262('0x27')]=qs[_0x5af262('0x2b')](_[_0x5af262('0x21')](_0x26a0a2['query'],_0x3a9e4a['filters']),_0x797f3e);_0x26a0a2['query']['filter']&&(_0x3a89f7[_0x5af262('0x27')]=_[_0x5af262('0xb')](_0x3a89f7[_0x5af262('0x27')],{[Op['or']]:_[_0x5af262('0x29')](_0x797f3e,function(_0x28694c){const _0x5c0b01=_0x5af262;if(_0x28694c[_0x5c0b01('0x53')]!=='VIRTUAL'){const _0x1e2f47={};return _0x1e2f47[_0x28694c['name']]={[Op[_0x5c0b01('0xa')]]:'%'+_0x26a0a2[_0x5c0b01('0x62')]['filter']+'%'},_0x1e2f47;}})}));_0x3a89f7=_[_0x5af262('0xb')]({},_0x3a89f7,_0x26a0a2[_0x5af262('0x19')]);const _0x46a92f={'where':_0x3a89f7['where']};return db['SmsQueue'][_0x5af262('0x14')](_0x46a92f)['then'](function(_0x1f975d){const _0x57b4b0=_0x5af262;return _0x31c85e['count']=_0x1f975d,_0x26a0a2['query']['includeAll']&&(_0x3a89f7[_0x57b4b0('0x4e')]=[{'all':!![]}]),db[_0x57b4b0('0x17')][_0x57b4b0('0x61')](_0x3a89f7);})[_0x5af262('0x66')](function(_0x293d89){return _0x31c85e['rows']=_0x293d89,_0x31c85e;})[_0x5af262('0x66')](respondWithFilteredResult(_0x13fea0,_0x3a89f7))[_0x5af262('0x2f')](handleError(_0x13fea0,null));},exports['show']=function(_0x3b6dc0,_0x505484){const _0x4812b0=_0x12c156;let _0x1419e6={'raw':!![],'where':{'id':_0x3b6dc0[_0x4812b0('0x9')]['id']}};const _0x3d46e5={};return _0x3d46e5['model']=_['keys'](db['SmsQueue']['rawAttributes']),_0x3d46e5[_0x4812b0('0x62')]=_[_0x4812b0('0x1c')](_0x3b6dc0[_0x4812b0('0x62')]),_0x3d46e5[_0x4812b0('0x2b')]=_[_0x4812b0('0x3d')](_0x3d46e5[_0x4812b0('0x3c')],_0x3d46e5[_0x4812b0('0x62')]),_0x1419e6['attributes']=_[_0x4812b0('0x3d')](_0x3d46e5[_0x4812b0('0x3c')],qs[_0x4812b0('0x31')](_0x3b6dc0[_0x4812b0('0x62')][_0x4812b0('0x31')])),_0x1419e6[_0x4812b0('0x42')]=_0x1419e6[_0x4812b0('0x42')][_0x4812b0('0x5d')]?_0x1419e6['attributes']:_0x3d46e5[_0x4812b0('0x3c')],_0x3b6dc0[_0x4812b0('0x62')][_0x4812b0('0x44')]&&(_0x1419e6[_0x4812b0('0x4e')]=[{'all':!![]}]),_0x1419e6=_[_0x4812b0('0xb')]({},_0x1419e6,_0x3b6dc0[_0x4812b0('0x19')]),db['SmsQueue']['findOne'](_0x1419e6)[_0x4812b0('0x66')](handleEntityNotFound(_0x505484,null))[_0x4812b0('0x66')](respondWithResult(_0x505484,null))[_0x4812b0('0x2f')](handleError(_0x505484,null));},exports[_0x12c156('0x1a')]=function(_0x3b87a3,_0x325457){const _0x5f05a9=_0x12c156;return db['SmsQueue'][_0x5f05a9('0x1a')](_0x3b87a3[_0x5f05a9('0x3f')],{})[_0x5f05a9('0x66')](function(_0x6cf28e){const _0x421aa2=_0x5f05a9,_0x131ade=_0x3b87a3[_0x421aa2('0x13')]['get']({'plain':!![]});if(!_0x131ade)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x131ade[_0x421aa2('0x38')]===_0x421aa2('0x13')){const _0x3a5f7c=_0x6cf28e[_0x421aa2('0x5f')]({'plain':!![]}),_0x2d50f3=_0x421aa2('0x59');return db[_0x421aa2('0x5b')][_0x421aa2('0x1')]({'where':{'name':_0x2d50f3,'userProfileId':_0x131ade[_0x421aa2('0x4')]},'raw':!![]})[_0x421aa2('0x66')](function(_0x4347d9){const _0x320572=_0x421aa2;return _0x4347d9&&_0x4347d9[_0x320572('0x50')]===0x0?db[_0x320572('0x0')]['create']({'name':_0x3a5f7c[_0x320572('0x40')],'resourceId':_0x3a5f7c['id'],'type':_0x4347d9[_0x320572('0x40')],'sectionId':_0x4347d9['id']},{})['then'](function(){return _0x6cf28e;}):_0x6cf28e;})[_0x421aa2('0x2f')](function(_0xc2d290){const _0x1c9904=_0x421aa2;logger[_0x1c9904('0x37')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0xc2d290);throw _0xc2d290;});}return _0x6cf28e;})[_0x5f05a9('0x66')](respondWithResult(_0x325457,0xc9))[_0x5f05a9('0x2f')](handleError(_0x325457,null));},exports['update']=function(_0x3119b4,_0x176085){const _0x2babee=_0x12c156;return _0x3119b4[_0x2babee('0x3f')]['id']&&delete _0x3119b4[_0x2babee('0x3f')]['id'],db['SmsQueue'][_0x2babee('0x1')]({'where':{'id':_0x3119b4[_0x2babee('0x9')]['id']}})[_0x2babee('0x66')](handleEntityNotFound(_0x176085,null))[_0x2babee('0x66')](saveUpdates(_0x3119b4[_0x2babee('0x3f')],null))['then'](respondWithResult(_0x176085,null))[_0x2babee('0x2f')](handleError(_0x176085,null));},exports[_0x12c156('0x32')]=function(_0x14e44c,_0x8193e1){const _0x5ef420=_0x12c156;return db['SmsQueue'][_0x5ef420('0x1')]({'where':{'id':_0x14e44c[_0x5ef420('0x9')]['id']}})[_0x5ef420('0x66')](handleEntityNotFound(_0x8193e1,null))[_0x5ef420('0x66')](removeEntity(_0x8193e1,null))[_0x5ef420('0x2f')](handleError(_0x8193e1,null));},exports['describe']=function(_0x2c59df,_0x4a9d3f){const _0x2df0b4=_0x12c156;return db['SmsQueue'][_0x2df0b4('0x22')]()[_0x2df0b4('0x66')](respondWithResult(_0x4a9d3f,null))[_0x2df0b4('0x2f')](handleError(_0x4a9d3f,null));},exports['getMembers']=function(_0x366f7e,_0xfb18c9){const _0x514374=_0x12c156;let _0x3d9d0c={'raw':!![],'where':{}};const _0x225aab={};let _0x463a2d;return db['SmsQueue'][_0x514374('0x1')]({'where':{'id':_0x366f7e[_0x514374('0x9')]['id']}})[_0x514374('0x66')](handleEntityNotFound(_0xfb18c9,null))['then'](function(_0x4f23ea){const _0x182ca2=_0x514374;if(_0x4f23ea)return _0x463a2d=_0x4f23ea['get']({'plain':!![]}),_0x225aab[_0x182ca2('0x3c')]=_[_0x182ca2('0x1c')](db[_0x182ca2('0x1b')][_0x182ca2('0x43')]),_0x225aab['query']=_[_0x182ca2('0x1c')](_0x366f7e[_0x182ca2('0x62')]),_0x225aab[_0x182ca2('0x2b')]=_[_0x182ca2('0x3d')](_0x225aab['model'],_0x225aab[_0x182ca2('0x62')]),_0x3d9d0c[_0x182ca2('0x42')]=_[_0x182ca2('0x3d')](_0x225aab['model'],qs[_0x182ca2('0x31')](_0x366f7e[_0x182ca2('0x62')][_0x182ca2('0x31')])),_0x3d9d0c[_0x182ca2('0x42')]=_0x3d9d0c[_0x182ca2('0x42')][_0x182ca2('0x5d')]?_0x3d9d0c['attributes']:_0x225aab['model'],typeof _0x366f7e[_0x182ca2('0x62')]['nolimit']===_0x182ca2('0x3a')&&(_0x3d9d0c['limit']=qs['limit'](_0x366f7e[_0x182ca2('0x62')][_0x182ca2('0x46')]),_0x3d9d0c['offset']=qs[_0x182ca2('0xc')](_0x366f7e[_0x182ca2('0x62')][_0x182ca2('0xc')])),_0x3d9d0c[_0x182ca2('0x49')]=qs[_0x182ca2('0x35')](_0x366f7e[_0x182ca2('0x62')][_0x182ca2('0x35')]),_0x3d9d0c['where']=qs[_0x182ca2('0x2b')](_[_0x182ca2('0x21')](_0x366f7e['query'],_0x225aab[_0x182ca2('0x2b')])),_0x3d9d0c[_0x182ca2('0x27')][_0x182ca2('0x33')]=_0x4f23ea['id'],_0x366f7e[_0x182ca2('0x62')]['filter']&&(_0x3d9d0c[_0x182ca2('0x27')]=_[_0x182ca2('0xb')](_0x3d9d0c[_0x182ca2('0x27')],{[Op['or']]:_[_0x182ca2('0x29')](_0x3d9d0c[_0x182ca2('0x42')],function(_0x40f8df){const _0x3979a4=_0x182ca2,_0xd66b13={};return _0xd66b13[_0x40f8df]={[Op[_0x3979a4('0xa')]]:'%'+_0x366f7e[_0x3979a4('0x62')]['filter']+'%'},_0xd66b13;})})),_0x3d9d0c=_['merge']({},_0x3d9d0c,_0x366f7e[_0x182ca2('0x19')]),db[_0x182ca2('0x1b')][_0x182ca2('0x61')](_0x3d9d0c);})['then'](function(_0x40a082){const _0x5743ac=_0x514374;if(_0x40a082)return db[_0x5743ac('0x30')][_0x5743ac('0x2e')]({'where':{'id':_['map'](_0x40a082,_0x5743ac('0x69')),'role':_0x5743ac('0x52')},'attributes':['id',_0x5743ac('0x40'),_0x5743ac('0x57'),_0x5743ac('0x4f'),_0x5743ac('0x3e')]});})[_0x514374('0x66')](function(_0x291ec4){const _0x1ae0a3=_0x514374;return _0x291ec4?{'count':_0x291ec4['count'],'rows':_[_0x1ae0a3('0x29')](_0x291ec4['rows'],function(_0xdb60ae){const _0x2ad464=_0x1ae0a3;return{'membername':_0xdb60ae['name'],'UserId':_0xdb60ae['id'],'queue_name':_0x463a2d[_0x2ad464('0x40')],'SmsQueueId':_0x463a2d['id'],'interface':util[_0x2ad464('0x3')]('%s/%s',_0x2ad464('0x67'),_0xdb60ae['name']),'penalty':0x0,'paused':_0xdb60ae[_0x2ad464('0x57')],'createdAt':_0xdb60ae['createdAt'],'updatedAt':_0xdb60ae['updatedAt']};})}:{'count':0x0,'rows':[]};})['then'](respondWithFilteredResult(_0xfb18c9,_0x3d9d0c))[_0x514374('0x2f')](handleError(_0xfb18c9,null));},exports[_0x12c156('0x23')]=function(_0x1a62de,_0x5bc155){const _0x51560c=_0x12c156;let _0x3ee198={};const _0x56f118={};let _0x4bf49f,_0x305509;return db[_0x51560c('0x17')][_0x51560c('0x1')]({'where':{'id':_0x1a62de['params']['id']}})['then'](handleEntityNotFound(_0x5bc155,null))[_0x51560c('0x66')](function(_0x11a83a){const _0x36cf4e=_0x51560c;if(_0x11a83a)return _0x4bf49f=_0x11a83a,_0x56f118['model']=_[_0x36cf4e('0x1c')](db[_0x36cf4e('0x18')][_0x36cf4e('0x43')]),_0x56f118[_0x36cf4e('0x62')]=_[_0x36cf4e('0x1c')](_0x1a62de[_0x36cf4e('0x62')]),_0x56f118[_0x36cf4e('0x2b')]=_[_0x36cf4e('0x3d')](_0x56f118[_0x36cf4e('0x3c')],_0x56f118[_0x36cf4e('0x62')]),_0x3ee198[_0x36cf4e('0x42')]=_[_0x36cf4e('0x3d')](_0x56f118[_0x36cf4e('0x3c')],qs[_0x36cf4e('0x31')](_0x1a62de[_0x36cf4e('0x62')][_0x36cf4e('0x31')])),_0x3ee198[_0x36cf4e('0x42')]=_0x3ee198['attributes'][_0x36cf4e('0x5d')]?_0x3ee198[_0x36cf4e('0x42')]:_0x56f118['model'],_0x3ee198[_0x36cf4e('0x49')]=qs[_0x36cf4e('0x35')](_0x1a62de[_0x36cf4e('0x62')][_0x36cf4e('0x35')]),_0x3ee198[_0x36cf4e('0x27')]=qs[_0x36cf4e('0x2b')](_[_0x36cf4e('0x21')](_0x1a62de['query'],_0x56f118[_0x36cf4e('0x2b')])),_0x1a62de[_0x36cf4e('0x62')][_0x36cf4e('0x7')]&&(_0x3ee198[_0x36cf4e('0x27')]=_[_0x36cf4e('0xb')](_0x3ee198['where'],{[Op['or']]:_[_0x36cf4e('0x29')](_0x3ee198[_0x36cf4e('0x42')],function(_0x3b000a){const _0x4f9b37=_0x36cf4e,_0x401917={};return _0x401917[_0x3b000a]={[Op['like']]:'%'+_0x1a62de[_0x4f9b37('0x62')][_0x4f9b37('0x7')]+'%'},_0x401917;})})),_0x3ee198=_['merge']({},_0x3ee198,_0x1a62de[_0x36cf4e('0x19')]),_0x4bf49f[_0x36cf4e('0x23')](_0x3ee198);})['then'](function(_0x1a0bf9){const _0x3d2999=_0x51560c;if(_0x1a0bf9)return _0x305509=_0x1a0bf9[_0x3d2999('0x5d')],typeof _0x1a62de[_0x3d2999('0x62')]['nolimit']===_0x3d2999('0x3a')&&(_0x3ee198[_0x3d2999('0x46')]=qs[_0x3d2999('0x46')](_0x1a62de['query'][_0x3d2999('0x46')]),_0x3ee198[_0x3d2999('0xc')]=qs[_0x3d2999('0xc')](_0x1a62de['query']['offset'])),_0x4bf49f[_0x3d2999('0x23')](_0x3ee198);})[_0x51560c('0x66')](function(_0x4e8073){if(_0x4e8073)return _0x4e8073?{'count':_0x305509,'rows':_0x4e8073}:null;})[_0x51560c('0x66')](respondWithResult(_0x5bc155,null))[_0x51560c('0x2f')](handleError(_0x5bc155,null));},exports[_0x12c156('0x4d')]=function(_0x355c80,_0xebd2eb){const _0x340217=_0x12c156,_0x5aba38=_0x355c80['body'][_0x340217('0x36')];return db[_0x340217('0x18')][_0x340217('0x61')]({'where':{'id':_0x5aba38},'attributes':['id'],'include':[{'model':db[_0x340217('0x30')],'as':_0x340217('0x51'),'attributes':['id','name',_0x340217('0x4a'),_0x340217('0x5a'),_0x340217('0x6c')],'raw':!![]}]})[_0x340217('0x66')](function(_0x54b02f){const _0x1bb8aa=_0x340217;if(_0x54b02f){const _0x1f0391=_[_0x1bb8aa('0x4c')](_0x54b02f,function(_0x4f1696){const _0x31d883=_0x1bb8aa,_0x460ef7=_0x4f1696[_0x31d883('0x5f')]({'plain':!![]});return _0x460ef7['Agents'];});return db[_0x1bb8aa('0x17')]['findOne']({'where':{'id':_0x355c80[_0x1bb8aa('0x9')]['id']}})['then'](function(_0x112e0b){const _0x2bbe65=_0x1bb8aa;return db[_0x2bbe65('0x1f')][_0x2bbe65('0x4b')](function(_0x4fdc0f){const _0x455871=_0x2bbe65;return _0x112e0b[_0x455871('0x4d')](_0x5aba38,{'transaction':_0x4fdc0f})[_0x455871('0x66')](function(){const _0x365a0c=_0x455871;return Promise[_0x365a0c('0x12')](_0x1f0391,function(_0x577f70){const _0x25d2a6=_0x365a0c;return db[_0x25d2a6('0x1b')]['findOrCreate']({'where':{'UserId':_0x577f70['id'],'SmsQueueId':_0x355c80['params']['id']},'transaction':_0x4fdc0f});});})[_0x455871('0x66')](function(){_0x1f0391['forEach'](function(_0x545758){socket['emit']('userSmsQueue:save',{'UserId':_0x545758['id'],'SmsQueueId':_0x112e0b['id']});});});});});}})['then'](respondWithStatusCode(_0xebd2eb,null))[_0x340217('0x2f')](handleError(_0xebd2eb,null));},exports[_0x12c156('0x34')]=function(_0x3dcd65,_0x27b4bc){const _0x434c32=_0x12c156;return db['Team'][_0x434c32('0x61')]({'where':{'id':_0x3dcd65[_0x434c32('0x62')]['ids']},'attributes':['id'],'include':[{'model':db[_0x434c32('0x30')],'as':_0x434c32('0x51'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x27b4bc,null))['then'](function(_0x1958a5){const _0x261ced=_0x434c32,_0x2aa04d=_[_0x261ced('0x29')](_0x1958a5,'id');let _0x366d3a=[];const _0x4007e0=[],_0x45af54=squel[_0x261ced('0x54')]();_0x45af54[_0x261ced('0x28')](_0x261ced('0x56'))['from'](_0x261ced('0x6b'),'tq')[_0x261ced('0x20')](_0x261ced('0x5c'),'ut',_0x261ced('0x11'))[_0x261ced('0x27')](_0x261ced('0x26'),_0x3dcd65['params']['id']);for(let _0x1c7ca5=0x0;_0x1c7ca5<_0x1958a5[_0x261ced('0x5d')];_0x1c7ca5+=0x1){const _0x5c1464=_0x1958a5[_0x1c7ca5];for(let _0x1290a3=0x0;_0x1290a3<_0x5c1464['Agents'][_0x261ced('0x5d')];_0x1290a3+=0x1){const _0x44e08c=_0x5c1464[_0x261ced('0x51')][_0x1290a3],_0x3cec85=_0x45af54[_0x261ced('0x47')]();_0x3cec85[_0x261ced('0x27')]('ut.UserId\x20=\x20?',_0x44e08c['id']),_0x4007e0['push'](db[_0x261ced('0x1f')]['query'](_0x3cec85[_0x261ced('0x2')](),{'type':QueryTypes[_0x261ced('0xf')]})[_0x261ced('0x66')](function(_0x4c6fef){const _0x184f69=_0x261ced;if(_0x4c6fef['length']===0x1)return _0x44e08c['id'];else{const _0x50b487=_[_0x184f69('0x8')](_[_0x184f69('0x29')](_0x4c6fef,_0x184f69('0x6a')),function(_0xac1c9f){const _0x50b721=_0x184f69;return _[_0x50b721('0x60')](_0x2aa04d,_0xac1c9f);});if(_0x50b487)return _0x44e08c['id'];}}));}}return Promise['all'](_0x4007e0)[_0x261ced('0x66')](function(_0x2bef96){const _0x250e7e=_0x261ced;return _0x366d3a=_(_0x366d3a)[_0x250e7e('0x55')](_0x2bef96)[_0x250e7e('0x10')]()[_0x250e7e('0xe')](),db['SmsQueue'][_0x250e7e('0x1')]({'where':{'id':_0x3dcd65[_0x250e7e('0x9')]['id']}})['then'](function(_0x25594b){const _0x42ba20=_0x250e7e;return db[_0x42ba20('0x1f')][_0x42ba20('0x4b')](function(_0xf71819){const _0x632481=_0x42ba20;return _0x25594b[_0x632481('0x34')](_0x3dcd65['query'][_0x632481('0x36')],{'transaction':_0xf71819})[_0x632481('0x66')](function(){if(!_['isEmpty'](_0x366d3a))return _0x25594b['removeAgents'](_0x366d3a,{'transaction':_0xf71819});})[_0x632481('0x66')](function(){const _0x3fa5a6=_0x632481;_0x366d3a[_0x3fa5a6('0x25')](function(_0x415be1){const _0x459216=_0x3fa5a6;socket[_0x459216('0x15')](_0x459216('0x45'),{'UserId':_0x415be1,'SmsQueueId':_0x25594b['id']});});});});});});})[_0x434c32('0x66')](respondWithStatusCode(_0x27b4bc,null))['catch'](handleError(_0x27b4bc,null));},exports['addAgents']=function(_0xc54b14,_0x49fa3f){const _0x2438f5=_0x12c156;return db[_0x2438f5('0x17')]['findOne']({'where':{'id':_0xc54b14[_0x2438f5('0x9')]['id']}})[_0x2438f5('0x66')](function(_0x3d051c){const _0x2c418b=_0x2438f5;if(_0x3d051c)return _0x3d051c['addAgents'](_0xc54b14['body'][_0x2c418b('0x36')],{'through':_[_0x2c418b('0x24')](_0xc54b14[_0x2c418b('0x3f')],['ids','id'])})[_0x2c418b('0x66')](function(_0x165def){const _0x1d736f=_0x2c418b;for(let _0x48e037=0x0;_0x48e037<_0xc54b14['body'][_0x1d736f('0x36')][_0x1d736f('0x5d')];_0x48e037+=0x1){socket['emit'](_0x1d736f('0x5e'),{'UserId':_0xc54b14[_0x1d736f('0x3f')][_0x1d736f('0x36')][_0x48e037],'SmsQueueId':_0xc54b14['params']['id']});}return _0x165def;});})[_0x2438f5('0x66')](respondWithResult(_0x49fa3f,null))[_0x2438f5('0x2f')](handleError(_0x49fa3f,null));},exports[_0x12c156('0x1e')]=function(_0xe8fbf9,_0x2bc41c){const _0x228c44=_0x12c156;return db[_0x228c44('0x17')][_0x228c44('0x1')]({'where':{'id':_0xe8fbf9[_0x228c44('0x9')]['id']}})['then'](handleEntityNotFound(_0x2bc41c,null))['then'](function(_0x24ba40){const _0x3807e8=_0x228c44;if(_0x24ba40)return _0x24ba40[_0x3807e8('0x1e')](_0xe8fbf9[_0x3807e8('0x62')][_0x3807e8('0x36')])['then'](function(){const _0x400604=_0x3807e8;if(_['isArray'](_0xe8fbf9[_0x400604('0x62')][_0x400604('0x36')]))for(let _0x295d46=0x0;_0x295d46<_0xe8fbf9[_0x400604('0x62')][_0x400604('0x36')][_0x400604('0x5d')];_0x295d46+=0x1){socket[_0x400604('0x15')]('userSmsQueue:remove',{'UserId':Number(_0xe8fbf9[_0x400604('0x62')]['ids'][_0x295d46]),'SmsQueueId':Number(_0xe8fbf9[_0x400604('0x9')]['id'])});}else socket['emit']('userSmsQueue:remove',{'UserId':Number(_0xe8fbf9[_0x400604('0x62')]['ids']),'SmsQueueId':Number(_0xe8fbf9['params']['id'])});});})[_0x228c44('0x66')](respondWithStatusCode(_0x2bc41c,null))[_0x228c44('0x2f')](handleError(_0x2bc41c,null));},exports[_0x12c156('0x64')]=function(_0x4de219,_0xf97a79){const _0x3c33e7=_0x12c156;let _0x29b96a={};const _0x33adf8={};let _0x468c59,_0xfc9a82;return db[_0x3c33e7('0x17')]['findOne']({'where':{'id':_0x4de219[_0x3c33e7('0x9')]['id']}})[_0x3c33e7('0x66')](handleEntityNotFound(_0xf97a79,null))['then'](function(_0x1db0c2){const _0x1a7abd=_0x3c33e7;if(_0x1db0c2)return _0x468c59=_0x1db0c2,_0x33adf8[_0x1a7abd('0x3c')]=_[_0x1a7abd('0x1c')](db[_0x1a7abd('0x30')][_0x1a7abd('0x43')]),_0x33adf8[_0x1a7abd('0x62')]=_['keys'](_0x4de219['query']),_0x33adf8[_0x1a7abd('0x2b')]=_[_0x1a7abd('0x3d')](_0x33adf8['model'],_0x33adf8[_0x1a7abd('0x62')]),_0x29b96a[_0x1a7abd('0x42')]=_[_0x1a7abd('0x3d')](_0x33adf8['model'],qs[_0x1a7abd('0x31')](_0x4de219[_0x1a7abd('0x62')][_0x1a7abd('0x31')])),_0x29b96a['attributes']=_0x29b96a['attributes'][_0x1a7abd('0x5d')]?_0x29b96a[_0x1a7abd('0x42')]:_0x33adf8[_0x1a7abd('0x3c')],_0x29b96a[_0x1a7abd('0x49')]=qs[_0x1a7abd('0x35')](_0x4de219[_0x1a7abd('0x62')][_0x1a7abd('0x35')]),_0x29b96a['where']=qs[_0x1a7abd('0x2b')](_[_0x1a7abd('0x21')](_0x4de219['query'],_0x33adf8[_0x1a7abd('0x2b')])),_0x4de219[_0x1a7abd('0x62')][_0x1a7abd('0x7')]&&(_0x29b96a[_0x1a7abd('0x27')]=_[_0x1a7abd('0xb')](_0x29b96a[_0x1a7abd('0x27')],{[Op['or']]:_['map'](_0x29b96a['attributes'],function(_0x487319){const _0x424a97=_0x1a7abd,_0x317a7a={};return _0x317a7a[_0x487319]={[Op[_0x424a97('0xa')]]:'%'+_0x4de219[_0x424a97('0x62')][_0x424a97('0x7')]+'%'},_0x317a7a;})})),_0x29b96a=_[_0x1a7abd('0xb')]({},_0x29b96a,_0x4de219['options']),_0x468c59['getAgents'](_0x29b96a);})['then'](function(_0x4cbc8b){const _0x22ba47=_0x3c33e7;if(_0x4cbc8b)return _0xfc9a82=_0x4cbc8b[_0x22ba47('0x5d')],typeof _0x4de219[_0x22ba47('0x62')][_0x22ba47('0x65')]===_0x22ba47('0x3a')&&(_0x29b96a[_0x22ba47('0x46')]=qs[_0x22ba47('0x46')](_0x4de219[_0x22ba47('0x62')][_0x22ba47('0x46')]),_0x29b96a[_0x22ba47('0xc')]=qs[_0x22ba47('0xc')](_0x4de219[_0x22ba47('0x62')][_0x22ba47('0xc')])),_0x468c59[_0x22ba47('0x64')](_0x29b96a);})[_0x3c33e7('0x66')](function(_0x3eee76){if(_0x3eee76)return _0x3eee76?{'count':_0xfc9a82,'rows':_0x3eee76}:null;})[_0x3c33e7('0x66')](respondWithResult(_0xf97a79,null))['catch'](handleError(_0xf97a79,null));}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.events.js b/server/api/smsQueue/smsQueue.events.js index a06c188..f19a9f4 100644 --- a/server/api/smsQueue/smsQueue.events.js +++ b/server/api/smsQueue/smsQueue.events.js @@ -1 +1 @@ -const a568_0x45b9=['../../mysqldb','events','emit','setMaxListeners','save','update','remove','SmsQueue','addHook','undefined'];(function(_0x170294,_0x45b913){const _0xafe3aa=function(_0x505b18){while(--_0x505b18){_0x170294['push'](_0x170294['shift']());}};_0xafe3aa(++_0x45b913);}(a568_0x45b9,0xe3));const a568_0xafe3=function(_0x170294,_0x45b913){_0x170294=_0x170294-0x0;let _0xafe3aa=a568_0x45b9[_0x170294];return _0xafe3aa;};const _0xce417b=a568_0xafe3;'use strict';const EventEmitter=require(_0xce417b('0x4')),SmsQueue=require(_0xce417b('0x3'))['db'][_0xce417b('0x0')],SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0xce417b('0x6')](0x0);const events={'afterCreate':_0xce417b('0x7'),'afterUpdate':_0xce417b('0x8'),'afterDestroy':_0xce417b('0x9')};function emitEvent(_0x505b18){return function(_0x19eabb){const _0x1647b6=a568_0xafe3;SmsQueueEvents[_0x1647b6('0x5')](_0x505b18+':'+_0x19eabb['id'],_0x19eabb),SmsQueueEvents[_0x1647b6('0x5')](_0x505b18,_0x19eabb);};}for(const e in events){if(typeof events[e]!==_0xce417b('0x2')){const event=events[e];SmsQueue[_0xce417b('0x1')](e,emitEvent(event));}}module['exports']=SmsQueueEvents; \ No newline at end of file +const a568_0x9e5f=['addHook','save','setMaxListeners','exports','update','../../mysqldb','remove','emit'];(function(_0x529371,_0x9e5fe4){const _0x23deb2=function(_0x2e5a95){while(--_0x2e5a95){_0x529371['push'](_0x529371['shift']());}};_0x23deb2(++_0x9e5fe4);}(a568_0x9e5f,0x13b));const a568_0x23de=function(_0x529371,_0x9e5fe4){_0x529371=_0x529371-0x0;let _0x23deb2=a568_0x9e5f[_0x529371];return _0x23deb2;};const _0x541771=a568_0x23de;'use strict';const EventEmitter=require('events'),SmsQueue=require(_0x541771('0x2'))['db']['SmsQueue'],SmsQueueEvents=new EventEmitter();SmsQueueEvents[_0x541771('0x7')](0x0);const events={'afterCreate':_0x541771('0x6'),'afterUpdate':_0x541771('0x1'),'afterDestroy':_0x541771('0x3')};function emitEvent(_0x2e5a95){return function(_0x72c185){const _0x3bc007=a568_0x23de;SmsQueueEvents['emit'](_0x2e5a95+':'+_0x72c185['id'],_0x72c185),SmsQueueEvents[_0x3bc007('0x4')](_0x2e5a95,_0x72c185);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];SmsQueue[_0x541771('0x5')](e,emitEvent(event));}}module[_0x541771('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 ffdecb1..0209006 100644 --- a/server/api/smsQueue/smsQueue.model.js +++ b/server/api/smsQueue/smsQueue.model.js @@ -1 +1 @@ -const a569_0x1ae6=['exports','define','SmsQueue','./smsQueue.attributes'];(function(_0x307337,_0x1ae625){const _0x1673c9=function(_0x499912){while(--_0x499912){_0x307337['push'](_0x307337['shift']());}};_0x1673c9(++_0x1ae625);}(a569_0x1ae6,0x1a4));const a569_0x1673=function(_0x307337,_0x1ae625){_0x307337=_0x307337-0x0;let _0x1673c9=a569_0x1ae6[_0x307337];return _0x1673c9;};const _0x4d7f01=a569_0x1673;'use strict';const attributes=require(_0x4d7f01('0x3'));module[_0x4d7f01('0x0')]=function(_0x499912){const _0x2bffa4=_0x4d7f01,_0x54600d=_0x499912[_0x2bffa4('0x1')](_0x2bffa4('0x2'),attributes,{'tableName':'sms_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x54600d;}; \ No newline at end of file +const a569_0x4c88=['SmsQueue','./smsQueue.attributes','exports','define'];(function(_0x3dd615,_0x4c8883){const _0x5cc45b=function(_0x527a47){while(--_0x527a47){_0x3dd615['push'](_0x3dd615['shift']());}};_0x5cc45b(++_0x4c8883);}(a569_0x4c88,0xed));const a569_0x5cc4=function(_0x3dd615,_0x4c8883){_0x3dd615=_0x3dd615-0x0;let _0x5cc45b=a569_0x4c88[_0x3dd615];return _0x5cc45b;};const _0x337b25=a569_0x5cc4;'use strict';const attributes=require(_0x337b25('0x0'));module[_0x337b25('0x1')]=function(_0x527a47){const _0x581bac=_0x337b25,_0x51ec73=_0x527a47[_0x581bac('0x2')](_0x581bac('0x3'),attributes,{'tableName':'sms_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x51ec73;}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.rpc.js b/server/api/smsQueue/smsQueue.rpc.js index e3ee3f8..01ba2aa 100644 --- a/server/api/smsQueue/smsQueue.rpc.js +++ b/server/api/smsQueue/smsQueue.rpc.js @@ -1 +1 @@ -const a570_0x2b37=['GetSmsQueue','catch','../../rediscache','info','raw','then','SmsQueue','findOne','ShowSmsQueue','../../mysqldb','lodash','options','where','register','include','findAll','error','message','limit','map','stringify','attributes','debug','model','../../config/logger'];(function(_0x4a77aa,_0x2b3795){const _0x18ce94=function(_0x3800af){while(--_0x3800af){_0x4a77aa['push'](_0x4a77aa['shift']());}};_0x18ce94(++_0x2b3795);}(a570_0x2b37,0x1d2));const a570_0x18ce=function(_0x4a77aa,_0x2b3795){_0x4a77aa=_0x4a77aa-0x0;let _0x18ce94=a570_0x2b37[_0x4a77aa];return _0x18ce94;};const _0x2b8a5b=a570_0x18ce;'use strict';const _=require(_0x2b8a5b('0x13')),db=require(_0x2b8a5b('0x12'))['db'],logger=require(_0x2b8a5b('0x8'))('rpc'),{getSocket}=require(_0x2b8a5b('0xb')),socket=getSocket();require('./smsQueue.socket')[_0x2b8a5b('0x16')](socket),exports[_0x2b8a5b('0x9')]=function(_0x3800af){const _0x563955=this;return new Promise(function(_0x456d00,_0xa305e){const _0x36635f=a570_0x18ce;return db[_0x36635f('0xf')][_0x36635f('0x18')]({'raw':_0x3800af[_0x36635f('0x14')]?_0x3800af['options'][_0x36635f('0xd')]===undefined?!![]:![]:!![],'where':_0x3800af['options']?_0x3800af[_0x36635f('0x14')][_0x36635f('0x15')]||null:null,'attributes':_0x3800af[_0x36635f('0x14')]?_0x3800af[_0x36635f('0x14')][_0x36635f('0x5')]||null:null,'limit':_0x3800af[_0x36635f('0x14')]?_0x3800af[_0x36635f('0x14')][_0x36635f('0x2')]||null:null,'include':_0x3800af[_0x36635f('0x14')]?_0x3800af[_0x36635f('0x14')]['include']?_[_0x36635f('0x3')](_0x3800af['options'][_0x36635f('0x17')],function(_0x3785b7){const _0x5689ac=_0x36635f;return{'model':db[_0x3785b7[_0x5689ac('0x7')]],'as':_0x3785b7['as'],'attributes':_0x3785b7[_0x5689ac('0x5')],'include':_0x3785b7[_0x5689ac('0x17')]?_['map'](_0x3785b7[_0x5689ac('0x17')],function(_0x4e7ea8){const _0x5582e8=_0x5689ac;return{'model':db[_0x4e7ea8['model']],'as':_0x4e7ea8['as'],'attributes':_0x4e7ea8[_0x5582e8('0x5')],'include':_0x4e7ea8[_0x5582e8('0x17')]?_[_0x5582e8('0x3')](_0x4e7ea8[_0x5582e8('0x17')],function(_0x3535be){return{'model':db[_0x3535be['model']],'as':_0x3535be['as'],'attributes':_0x3535be['attributes']};}):[]};}):[]};}):[]:[]})[_0x36635f('0xe')](function(_0x8e5919){const _0x595d90=_0x36635f;logger[_0x595d90('0xc')]('GetSmsQueue',_0x3800af),logger[_0x595d90('0x6')](_0x595d90('0x9'),_0x3800af,JSON[_0x595d90('0x4')](_0x8e5919)),_0x456d00(_0x8e5919);})[_0x36635f('0xa')](function(_0x5d7cd7){const _0x4f5529=_0x36635f;logger[_0x4f5529('0x0')](_0x4f5529('0x9'),_0x5d7cd7[_0x4f5529('0x1')],_0x3800af),_0xa305e(_0x563955[_0x4f5529('0x0')](0x1f4,_0x5d7cd7['message']));});});},exports['ShowSmsQueue']=function(_0x5c58a5){const _0x4e5dcf=this;return new Promise(function(_0x2af85a,_0x1ae082){const _0x1c83f3=a570_0x18ce;return db['SmsQueue'][_0x1c83f3('0x10')]({'raw':_0x5c58a5[_0x1c83f3('0x14')]?_0x5c58a5[_0x1c83f3('0x14')][_0x1c83f3('0xd')]===undefined?!![]:![]:!![],'where':_0x5c58a5[_0x1c83f3('0x14')]?_0x5c58a5['options'][_0x1c83f3('0x15')]||null:null,'attributes':_0x5c58a5[_0x1c83f3('0x14')]?_0x5c58a5[_0x1c83f3('0x14')][_0x1c83f3('0x5')]||null:null,'include':_0x5c58a5[_0x1c83f3('0x14')]?_0x5c58a5['options'][_0x1c83f3('0x17')]?_[_0x1c83f3('0x3')](_0x5c58a5[_0x1c83f3('0x14')]['include'],function(_0x4d4937){const _0x591a3d=_0x1c83f3;return{'model':db[_0x4d4937[_0x591a3d('0x7')]],'as':_0x4d4937['as'],'attributes':_0x4d4937['attributes'],'include':_0x4d4937[_0x591a3d('0x17')]?_[_0x591a3d('0x3')](_0x4d4937[_0x591a3d('0x17')],function(_0x3e9c6b){const _0xc3c13d=_0x591a3d;return{'model':db[_0x3e9c6b[_0xc3c13d('0x7')]],'as':_0x3e9c6b['as'],'attributes':_0x3e9c6b[_0xc3c13d('0x5')],'include':_0x3e9c6b[_0xc3c13d('0x17')]?_['map'](_0x3e9c6b[_0xc3c13d('0x17')],function(_0x1f0c90){const _0x5c3da3=_0xc3c13d;return{'model':db[_0x1f0c90[_0x5c3da3('0x7')]],'as':_0x1f0c90['as'],'attributes':_0x1f0c90['attributes']};}):[]};}):[]};}):[]:[]})[_0x1c83f3('0xe')](function(_0x209640){const _0x5f034a=_0x1c83f3;logger[_0x5f034a('0xc')](_0x5f034a('0x11'),_0x5c58a5),logger[_0x5f034a('0x6')](_0x5f034a('0x11'),_0x5c58a5,JSON[_0x5f034a('0x4')](_0x209640)),_0x2af85a(_0x209640);})[_0x1c83f3('0xa')](function(_0x2ff39f){const _0xe688e6=_0x1c83f3;logger[_0xe688e6('0x0')](_0xe688e6('0x11'),_0x2ff39f['message'],_0x5c58a5),_0x1ae082(_0x4e5dcf[_0xe688e6('0x0')](0x1f4,_0x2ff39f[_0xe688e6('0x1')]));});});}; \ No newline at end of file +const a570_0x286b=['where','debug','ShowSmsQueue','map','attributes','GetSmsQueue','options','message','./smsQueue.socket','info','include','catch','../../mysqldb','model','findAll','findOne','lodash','../../config/logger','register','limit','stringify','SmsQueue','raw','../../rediscache','error'];(function(_0x3e56e2,_0x286bda){const _0x541410=function(_0x2fdcb1){while(--_0x2fdcb1){_0x3e56e2['push'](_0x3e56e2['shift']());}};_0x541410(++_0x286bda);}(a570_0x286b,0xa7));const a570_0x5414=function(_0x3e56e2,_0x286bda){_0x3e56e2=_0x3e56e2-0x0;let _0x541410=a570_0x286b[_0x3e56e2];return _0x541410;};const _0x40e7ba=a570_0x5414;'use strict';const _=require(_0x40e7ba('0x18')),db=require(_0x40e7ba('0x14'))['db'],logger=require(_0x40e7ba('0x0'))('rpc'),{getSocket}=require(_0x40e7ba('0x6')),socket=getSocket();require(_0x40e7ba('0x10'))[_0x40e7ba('0x1')](socket),exports[_0x40e7ba('0xd')]=function(_0x2fdcb1){const _0x265b75=this;return new Promise(function(_0x256118,_0x29705b){const _0xb24d33=a570_0x5414;return db[_0xb24d33('0x4')][_0xb24d33('0x16')]({'raw':_0x2fdcb1[_0xb24d33('0xe')]?_0x2fdcb1[_0xb24d33('0xe')][_0xb24d33('0x5')]===undefined?!![]:![]:!![],'where':_0x2fdcb1['options']?_0x2fdcb1['options']['where']||null:null,'attributes':_0x2fdcb1['options']?_0x2fdcb1[_0xb24d33('0xe')][_0xb24d33('0xc')]||null:null,'limit':_0x2fdcb1['options']?_0x2fdcb1[_0xb24d33('0xe')][_0xb24d33('0x2')]||null:null,'include':_0x2fdcb1[_0xb24d33('0xe')]?_0x2fdcb1[_0xb24d33('0xe')]['include']?_[_0xb24d33('0xb')](_0x2fdcb1[_0xb24d33('0xe')][_0xb24d33('0x12')],function(_0xd0a74e){const _0x3c1cc4=_0xb24d33;return{'model':db[_0xd0a74e[_0x3c1cc4('0x15')]],'as':_0xd0a74e['as'],'attributes':_0xd0a74e[_0x3c1cc4('0xc')],'include':_0xd0a74e[_0x3c1cc4('0x12')]?_[_0x3c1cc4('0xb')](_0xd0a74e['include'],function(_0x22b237){const _0x3c7a76=_0x3c1cc4;return{'model':db[_0x22b237[_0x3c7a76('0x15')]],'as':_0x22b237['as'],'attributes':_0x22b237[_0x3c7a76('0xc')],'include':_0x22b237['include']?_[_0x3c7a76('0xb')](_0x22b237[_0x3c7a76('0x12')],function(_0x2e4c02){return{'model':db[_0x2e4c02['model']],'as':_0x2e4c02['as'],'attributes':_0x2e4c02['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x2d1655){const _0x1a9490=_0xb24d33;logger['info'](_0x1a9490('0xd'),_0x2fdcb1),logger[_0x1a9490('0x9')](_0x1a9490('0xd'),_0x2fdcb1,JSON['stringify'](_0x2d1655)),_0x256118(_0x2d1655);})[_0xb24d33('0x13')](function(_0x1588e3){const _0x23ba0b=_0xb24d33;logger[_0x23ba0b('0x7')](_0x23ba0b('0xd'),_0x1588e3[_0x23ba0b('0xf')],_0x2fdcb1),_0x29705b(_0x265b75[_0x23ba0b('0x7')](0x1f4,_0x1588e3[_0x23ba0b('0xf')]));});});},exports[_0x40e7ba('0xa')]=function(_0x1cc368){const _0x154872=this;return new Promise(function(_0x3d9e33,_0x3b6023){const _0x4fae50=a570_0x5414;return db['SmsQueue'][_0x4fae50('0x17')]({'raw':_0x1cc368[_0x4fae50('0xe')]?_0x1cc368['options'][_0x4fae50('0x5')]===undefined?!![]:![]:!![],'where':_0x1cc368['options']?_0x1cc368[_0x4fae50('0xe')][_0x4fae50('0x8')]||null:null,'attributes':_0x1cc368[_0x4fae50('0xe')]?_0x1cc368['options'][_0x4fae50('0xc')]||null:null,'include':_0x1cc368[_0x4fae50('0xe')]?_0x1cc368[_0x4fae50('0xe')][_0x4fae50('0x12')]?_[_0x4fae50('0xb')](_0x1cc368['options'][_0x4fae50('0x12')],function(_0x483244){const _0x1eef5d=_0x4fae50;return{'model':db[_0x483244[_0x1eef5d('0x15')]],'as':_0x483244['as'],'attributes':_0x483244[_0x1eef5d('0xc')],'include':_0x483244[_0x1eef5d('0x12')]?_['map'](_0x483244[_0x1eef5d('0x12')],function(_0x8ddcbd){const _0x1b2f38=_0x1eef5d;return{'model':db[_0x8ddcbd[_0x1b2f38('0x15')]],'as':_0x8ddcbd['as'],'attributes':_0x8ddcbd[_0x1b2f38('0xc')],'include':_0x8ddcbd[_0x1b2f38('0x12')]?_[_0x1b2f38('0xb')](_0x8ddcbd[_0x1b2f38('0x12')],function(_0x25ea21){const _0x4d2850=_0x1b2f38;return{'model':db[_0x25ea21[_0x4d2850('0x15')]],'as':_0x25ea21['as'],'attributes':_0x25ea21[_0x4d2850('0xc')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x3d4074){const _0xd442d9=_0x4fae50;logger[_0xd442d9('0x11')](_0xd442d9('0xa'),_0x1cc368),logger['debug']('ShowSmsQueue',_0x1cc368,JSON[_0xd442d9('0x3')](_0x3d4074)),_0x3d9e33(_0x3d4074);})[_0x4fae50('0x13')](function(_0x4342dc){const _0x400e76=_0x4fae50;logger['error'](_0x400e76('0xa'),_0x4342dc[_0x400e76('0xf')],_0x1cc368),_0x3b6023(_0x154872['error'](0x1f4,_0x4342dc['message']));});});}; \ No newline at end of file diff --git a/server/api/smsQueue/smsQueue.socket.js b/server/api/smsQueue/smsQueue.socket.js index c3c80ba..d7d0c5d 100644 --- a/server/api/smsQueue/smsQueue.socket.js +++ b/server/api/smsQueue/smsQueue.socket.js @@ -1 +1 @@ -const a571_0x3143=['length','register','./smsQueue.events'];(function(_0x238f2b,_0x314333){const _0x416b7e=function(_0x508c18){while(--_0x508c18){_0x238f2b['push'](_0x238f2b['shift']());}};_0x416b7e(++_0x314333);}(a571_0x3143,0x15e));const a571_0x416b=function(_0x238f2b,_0x314333){_0x238f2b=_0x238f2b-0x0;let _0x416b7e=a571_0x3143[_0x238f2b];return _0x416b7e;};const _0x1eec4d=a571_0x416b;'use strict';const SmsQueueEvents=require(_0x1eec4d('0x0')),events=['save','remove','update'];function createListener(_0x508c18,_0x1b3afa){return function(_0x1fcfda){_0x1b3afa['emit'](_0x508c18,_0x1fcfda);};}exports[_0x1eec4d('0x2')]=function(_0x23925e){const _0x3a3dba=_0x1eec4d;for(let _0x3bc352=0x0,_0x54d5b6=events[_0x3a3dba('0x1')];_0x3bc352<_0x54d5b6;_0x3bc352++){const _0x1f4eb5=events[_0x3bc352],_0x44f9ce=createListener('smsQueue:'+_0x1f4eb5,_0x23925e);SmsQueueEvents['on'](_0x1f4eb5,_0x44f9ce);}}; \ No newline at end of file +const a571_0x3a8c=['emit','remove','smsQueue:','length','save'];(function(_0x3ee426,_0x3a8cc2){const _0x1f6c7f=function(_0x3e3318){while(--_0x3e3318){_0x3ee426['push'](_0x3ee426['shift']());}};_0x1f6c7f(++_0x3a8cc2);}(a571_0x3a8c,0x194));const a571_0x1f6c=function(_0x3ee426,_0x3a8cc2){_0x3ee426=_0x3ee426-0x0;let _0x1f6c7f=a571_0x3a8c[_0x3ee426];return _0x1f6c7f;};const _0x4b13ae=a571_0x1f6c;'use strict';const SmsQueueEvents=require('./smsQueue.events'),events=[_0x4b13ae('0x0'),_0x4b13ae('0x2'),'update'];function createListener(_0x3e3318,_0x260575){return function(_0x5435e5){const _0x13a131=a571_0x1f6c;_0x260575[_0x13a131('0x1')](_0x3e3318,_0x5435e5);};}exports['register']=function(_0x3f8504){const _0x11f960=_0x4b13ae;for(let _0x1e510f=0x0,_0x4e94d8=events[_0x11f960('0x4')];_0x1e510f<_0x4e94d8;_0x1e510f++){const _0x257d0d=events[_0x1e510f],_0x4dbc55=createListener(_0x11f960('0x3')+_0x257d0d,_0x3f8504);SmsQueueEvents['on'](_0x257d0d,_0x4dbc55);}}; \ No newline at end of file diff --git a/server/api/smsQueueReport/index.js b/server/api/smsQueueReport/index.js index 0ae2f35..fef9cbf 100644 --- a/server/api/smsQueueReport/index.js +++ b/server/api/smsQueueReport/index.js @@ -1 +1 @@ -const a572_0x3b7a=['Router','destroy','isAuthenticated','create','delete','describe','/describe','get','post','/:id','show','./smsQueueReport.controller','index','../../components/auth/service'];(function(_0x113f72,_0x3b7a9d){const _0x4b1c7a=function(_0x553b0a){while(--_0x553b0a){_0x113f72['push'](_0x113f72['shift']());}};_0x4b1c7a(++_0x3b7a9d);}(a572_0x3b7a,0xc7));const a572_0x4b1c=function(_0x113f72,_0x3b7a9d){_0x113f72=_0x113f72-0x0;let _0x4b1c7a=a572_0x3b7a[_0x113f72];return _0x4b1c7a;};const _0x438cb6=a572_0x4b1c;'use strict';const express=require('express'),router=express[_0x438cb6('0xb')](),auth=require(_0x438cb6('0xa')),controller=require(_0x438cb6('0x8'));router['get']('/',auth[_0x438cb6('0xd')](),controller[_0x438cb6('0x9')]),router[_0x438cb6('0x4')](_0x438cb6('0x3'),auth['isAuthenticated'](),controller[_0x438cb6('0x2')]),router[_0x438cb6('0x4')](_0x438cb6('0x6'),auth[_0x438cb6('0xd')](),controller[_0x438cb6('0x7')]),router[_0x438cb6('0x5')]('/',auth[_0x438cb6('0xd')](),controller[_0x438cb6('0x0')]),router['put'](_0x438cb6('0x6'),auth[_0x438cb6('0xd')](),controller['update']),router[_0x438cb6('0x1')](_0x438cb6('0x6'),auth[_0x438cb6('0xd')](),controller[_0x438cb6('0xc')]),module['exports']=router; \ No newline at end of file +const a572_0x3aa8=['isAuthenticated','post','../../components/auth/service','update','./smsQueueReport.controller','put','get','exports','show','destroy','delete','/:id','describe'];(function(_0x2c6043,_0x3aa875){const _0x35f54e=function(_0x5368e9){while(--_0x5368e9){_0x2c6043['push'](_0x2c6043['shift']());}};_0x35f54e(++_0x3aa875);}(a572_0x3aa8,0x72));const a572_0x35f5=function(_0x2c6043,_0x3aa875){_0x2c6043=_0x2c6043-0x0;let _0x35f54e=a572_0x3aa8[_0x2c6043];return _0x35f54e;};const _0xe169f3=a572_0x35f5;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0xe169f3('0x5')),controller=require(_0xe169f3('0x7'));router[_0xe169f3('0x9')]('/',auth[_0xe169f3('0x3')](),controller['index']),router['get']('/describe',auth['isAuthenticated'](),controller[_0xe169f3('0x2')]),router[_0xe169f3('0x9')](_0xe169f3('0x1'),auth[_0xe169f3('0x3')](),controller[_0xe169f3('0xb')]),router[_0xe169f3('0x4')]('/',auth[_0xe169f3('0x3')](),controller['create']),router[_0xe169f3('0x8')]('/:id',auth[_0xe169f3('0x3')](),controller[_0xe169f3('0x6')]),router[_0xe169f3('0x0')](_0xe169f3('0x1'),auth[_0xe169f3('0x3')](),controller[_0xe169f3('0xc')]),module[_0xe169f3('0xa')]=router; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.attributes.js b/server/api/smsQueueReport/smsQueueReport.attributes.js index 6b6ec7d..4189cb6 100644 --- a/server/api/smsQueueReport/smsQueueReport.attributes.js +++ b/server/api/smsQueueReport/smsQueueReport.attributes.js @@ -1 +1 @@ -const a573_0x1869=['exports','sequelize','DATE','STRING'];(function(_0xa20325,_0x18695e){const _0x12e2e5=function(_0x2e9ff3){while(--_0x2e9ff3){_0xa20325['push'](_0xa20325['shift']());}};_0x12e2e5(++_0x18695e);}(a573_0x1869,0xf9));const a573_0x12e2=function(_0xa20325,_0x18695e){_0xa20325=_0xa20325-0x0;let _0x12e2e5=a573_0x1869[_0xa20325];return _0x12e2e5;};const _0x4597aa=a573_0x12e2;'use strict';const Sequelize=require(_0x4597aa('0x0'));module[_0x4597aa('0x3')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize[_0x4597aa('0x2')]},'joinAt':{'type':Sequelize['DATE']},'leaveAt':{'type':Sequelize[_0x4597aa('0x1')]},'acceptAt':{'type':Sequelize[_0x4597aa('0x1')]},'exitAt':{'type':Sequelize[_0x4597aa('0x1')]},'reason':{'type':Sequelize[_0x4597aa('0x2')]}}; \ No newline at end of file +const a573_0x843e=['sequelize','DATE','STRING'];(function(_0x2b9dbe,_0x843edd){const _0x8032b5=function(_0x2bca48){while(--_0x2bca48){_0x2b9dbe['push'](_0x2b9dbe['shift']());}};_0x8032b5(++_0x843edd);}(a573_0x843e,0x153));const a573_0x8032=function(_0x2b9dbe,_0x843edd){_0x2b9dbe=_0x2b9dbe-0x0;let _0x8032b5=a573_0x843e[_0x2b9dbe];return _0x8032b5;};const _0x334818=a573_0x8032;'use strict';const Sequelize=require(_0x334818('0x0'));module['exports']={'uniqueid':{'type':Sequelize[_0x334818('0x2')],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x334818('0x1')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x334818('0x1')]},'reason':{'type':Sequelize[_0x334818('0x2')]}}; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.controller.js b/server/api/smsQueueReport/smsQueueReport.controller.js index 54092cc..7c7bcf6 100644 --- a/server/api/smsQueueReport/smsQueueReport.controller.js +++ b/server/api/smsQueueReport/smsQueueReport.controller.js @@ -1 +1 @@ -const a574_0xf4c5=['VIRTUAL','sequelize','options','sendStatus','stack','end','count','filter','name','fields','show','lodash','json','../../config/logger','api','set','describe','send','SmsQueueReport','includeAll','params','findAll','query','include','sort','map','type','destroy','attributes','filters','then','where','rawAttributes','status','rows','catch','limit','model','update','pick','length','merge','create','keys','fieldName','intersection','../../mysqldb','body','findOne','error','offset','Content-Range','nolimit'];(function(_0x126de0,_0xf4c5c6){const _0x3650b0=function(_0x25d463){while(--_0x25d463){_0x126de0['push'](_0x126de0['shift']());}};_0x3650b0(++_0xf4c5c6);}(a574_0xf4c5,0x130));const a574_0x3650=function(_0x126de0,_0xf4c5c6){_0x126de0=_0x126de0-0x0;let _0x3650b0=a574_0xf4c5[_0x126de0];return _0x3650b0;};const _0x34c1ca=a574_0x3650;'use strict';const _=require(_0x34c1ca('0x19')),qs=require('../../components/parsers/qs'),logger=require(_0x34c1ca('0x1b'))(_0x34c1ca('0x1c')),db=require(_0x34c1ca('0x7'))['db'],{Op}=require(_0x34c1ca('0xf'));function respondWithResult(_0x25d463,_0x49b8f7){return _0x49b8f7=_0x49b8f7||0xc8,function(_0x139ad9){const _0x2e7a15=a574_0x3650;if(_0x139ad9)return _0x25d463[_0x2e7a15('0x2f')](_0x49b8f7)[_0x2e7a15('0x1a')](_0x139ad9);};}function respondWithFilteredResult(_0x327d00,_0x287609){return function(_0x430629){const _0xe65d97=a574_0x3650;if(_0x430629){const _0x7c6657=_0x430629[_0xe65d97('0x14')],_0x1eb0ec=_0x287609[_0xe65d97('0xb')];let _0x3cd1f5=_0x287609['offset']+_0x287609[_0xe65d97('0x32')],_0x238b0e;return _0x3cd1f5>=_0x7c6657?(_0x3cd1f5=_0x7c6657,_0x238b0e=0xc8):_0x238b0e=0xce,_0x327d00[_0xe65d97('0x2f')](_0x238b0e),_0x327d00[_0xe65d97('0x1d')](_0xe65d97('0xc'),_0x1eb0ec+'-'+_0x3cd1f5+'/'+_0x7c6657)[_0xe65d97('0x1a')](_0x430629);}return null;};}function saveUpdates(_0x4f890f){return function(_0x2b6ad7){const _0x315719=a574_0x3650;if(_0x2b6ad7)return _0x2b6ad7[_0x315719('0x34')](_0x4f890f)[_0x315719('0x2c')](function(_0x31c2cb){return _0x31c2cb;});return null;};}function removeEntity(_0x137a20){return function(_0x25024e){const _0xc86b71=a574_0x3650;if(_0x25024e)return _0x25024e['destroy']()[_0xc86b71('0x2c')](function(){const _0x1faad9=_0xc86b71;_0x137a20[_0x1faad9('0x2f')](0xcc)[_0x1faad9('0x13')]();});};}function handleEntityNotFound(_0x11b0e1){return function(_0x228038){const _0x349153=a574_0x3650;return!_0x228038&&_0x11b0e1[_0x349153('0x11')](0x194),_0x228038;};}function handleError(_0x193431,_0x2c4ba8){return _0x2c4ba8=_0x2c4ba8||0x1f4,function(_0xf57212){const _0x2f16ca=a574_0x3650;logger[_0x2f16ca('0xa')](_0xf57212[_0x2f16ca('0x12')]),_0xf57212[_0x2f16ca('0x16')]&&delete _0xf57212[_0x2f16ca('0x16')],_0x193431[_0x2f16ca('0x2f')](_0x2c4ba8)[_0x2f16ca('0x1f')](_0xf57212);};}exports['index']=function(_0x3dc1fb,_0xbe3ea){const _0x364f93=_0x34c1ca;let _0x5d0b2e={};const _0x4f6b19={},_0x27e1f7={'count':0x0,'rows':[]},_0x5e2781=_[_0x364f93('0x27')](db['SmsQueueReport'][_0x364f93('0x2e')],function(_0x4c1b52){const _0x8a58c5=_0x364f93;return{'name':_0x4c1b52[_0x8a58c5('0x5')],'type':_0x4c1b52[_0x8a58c5('0x28')]['key']};});_0x4f6b19['model']=_[_0x364f93('0x27')](_0x5e2781,_0x364f93('0x16')),_0x4f6b19[_0x364f93('0x24')]=_[_0x364f93('0x4')](_0x3dc1fb['query']),_0x4f6b19[_0x364f93('0x2b')]=_[_0x364f93('0x6')](_0x4f6b19[_0x364f93('0x33')],_0x4f6b19[_0x364f93('0x24')]),_0x5d0b2e['attributes']=_['intersection'](_0x4f6b19[_0x364f93('0x33')],qs['fields'](_0x3dc1fb[_0x364f93('0x24')][_0x364f93('0x17')])),_0x5d0b2e['attributes']=_0x5d0b2e[_0x364f93('0x2a')][_0x364f93('0x1')]?_0x5d0b2e[_0x364f93('0x2a')]:_0x4f6b19[_0x364f93('0x33')];typeof _0x3dc1fb[_0x364f93('0x24')][_0x364f93('0xd')]==='undefined'&&(_0x5d0b2e[_0x364f93('0x32')]=qs[_0x364f93('0x32')](_0x3dc1fb[_0x364f93('0x24')]['limit']),_0x5d0b2e[_0x364f93('0xb')]=qs[_0x364f93('0xb')](_0x3dc1fb[_0x364f93('0x24')]['offset']));_0x5d0b2e['order']=qs[_0x364f93('0x26')](_0x3dc1fb[_0x364f93('0x24')]['sort']),_0x5d0b2e[_0x364f93('0x2d')]=qs[_0x364f93('0x2b')](_[_0x364f93('0x0')](_0x3dc1fb[_0x364f93('0x24')],_0x4f6b19[_0x364f93('0x2b')]),_0x5e2781);_0x3dc1fb[_0x364f93('0x24')][_0x364f93('0x15')]&&(_0x5d0b2e[_0x364f93('0x2d')]=_[_0x364f93('0x2')](_0x5d0b2e[_0x364f93('0x2d')],{[Op['or']]:_['map'](_0x5e2781,function(_0x162def){const _0x759599=_0x364f93;if(_0x162def['type']!==_0x759599('0xe')){const _0x5cb445={};return _0x5cb445[_0x162def[_0x759599('0x16')]]={[Op['like']]:'%'+_0x3dc1fb[_0x759599('0x24')][_0x759599('0x15')]+'%'},_0x5cb445;}})}));_0x5d0b2e=_[_0x364f93('0x2')]({},_0x5d0b2e,_0x3dc1fb[_0x364f93('0x10')]);const _0x465e30={'where':_0x5d0b2e[_0x364f93('0x2d')]};return db[_0x364f93('0x20')][_0x364f93('0x14')](_0x465e30)['then'](function(_0x4f3480){const _0x12fdc5=_0x364f93;return _0x27e1f7['count']=_0x4f3480,_0x3dc1fb[_0x12fdc5('0x24')]['includeAll']&&(_0x5d0b2e[_0x12fdc5('0x25')]=[{'all':!![]}]),db[_0x12fdc5('0x20')][_0x12fdc5('0x23')](_0x5d0b2e);})[_0x364f93('0x2c')](function(_0x33d161){const _0x41ad5e=_0x364f93;return _0x27e1f7[_0x41ad5e('0x30')]=_0x33d161,_0x27e1f7;})[_0x364f93('0x2c')](respondWithFilteredResult(_0xbe3ea,_0x5d0b2e))['catch'](handleError(_0xbe3ea,null));},exports[_0x34c1ca('0x18')]=function(_0xb91bcc,_0x3d7cac){const _0x120289=_0x34c1ca;let _0x23a251={'raw':!![],'where':{'id':_0xb91bcc[_0x120289('0x22')]['id']}};const _0x40df08={};return _0x40df08['model']=_[_0x120289('0x4')](db['SmsQueueReport'][_0x120289('0x2e')]),_0x40df08[_0x120289('0x24')]=_['keys'](_0xb91bcc[_0x120289('0x24')]),_0x40df08[_0x120289('0x2b')]=_[_0x120289('0x6')](_0x40df08[_0x120289('0x33')],_0x40df08[_0x120289('0x24')]),_0x23a251['attributes']=_[_0x120289('0x6')](_0x40df08[_0x120289('0x33')],qs[_0x120289('0x17')](_0xb91bcc[_0x120289('0x24')][_0x120289('0x17')])),_0x23a251[_0x120289('0x2a')]=_0x23a251[_0x120289('0x2a')][_0x120289('0x1')]?_0x23a251[_0x120289('0x2a')]:_0x40df08[_0x120289('0x33')],_0xb91bcc[_0x120289('0x24')][_0x120289('0x21')]&&(_0x23a251[_0x120289('0x25')]=[{'all':!![]}]),_0x23a251=_[_0x120289('0x2')]({},_0x23a251,_0xb91bcc[_0x120289('0x10')]),db['SmsQueueReport'][_0x120289('0x9')](_0x23a251)[_0x120289('0x2c')](handleEntityNotFound(_0x3d7cac,null))[_0x120289('0x2c')](respondWithResult(_0x3d7cac,null))[_0x120289('0x31')](handleError(_0x3d7cac,null));},exports[_0x34c1ca('0x3')]=function(_0x5c9065,_0x3d5c00){const _0xb1f2b=_0x34c1ca;return db[_0xb1f2b('0x20')][_0xb1f2b('0x3')](_0x5c9065['body'],{})[_0xb1f2b('0x2c')](respondWithResult(_0x3d5c00,0xc9))[_0xb1f2b('0x31')](handleError(_0x3d5c00,null));},exports[_0x34c1ca('0x34')]=function(_0x44ccf9,_0x15e384){const _0x5b8f0d=_0x34c1ca;return _0x44ccf9[_0x5b8f0d('0x8')]['id']&&delete _0x44ccf9[_0x5b8f0d('0x8')]['id'],db['SmsQueueReport'][_0x5b8f0d('0x9')]({'where':{'id':_0x44ccf9[_0x5b8f0d('0x22')]['id']}})[_0x5b8f0d('0x2c')](handleEntityNotFound(_0x15e384,null))[_0x5b8f0d('0x2c')](saveUpdates(_0x44ccf9[_0x5b8f0d('0x8')],null))[_0x5b8f0d('0x2c')](respondWithResult(_0x15e384,null))[_0x5b8f0d('0x31')](handleError(_0x15e384,null));},exports[_0x34c1ca('0x29')]=function(_0x4295e1,_0xf5dae4){const _0x48efc1=_0x34c1ca;return db[_0x48efc1('0x20')]['findOne']({'where':{'id':_0x4295e1[_0x48efc1('0x22')]['id']}})[_0x48efc1('0x2c')](handleEntityNotFound(_0xf5dae4,null))[_0x48efc1('0x2c')](removeEntity(_0xf5dae4,null))['catch'](handleError(_0xf5dae4,null));},exports[_0x34c1ca('0x1e')]=function(_0x47317c,_0x2c7826){const _0x39bf76=_0x34c1ca;return db[_0x39bf76('0x20')][_0x39bf76('0x1e')]()[_0x39bf76('0x2c')](respondWithResult(_0x2c7826,null))[_0x39bf76('0x31')](handleError(_0x2c7826,null));}; \ No newline at end of file +const a574_0x4347=['update','filters','stack','keys','SmsQueueReport','order','filter','length','rows','params','type','describe','name','index','limit','VIRTUAL','status','model','include','attributes','json','../../config/logger','merge','Content-Range','offset','like','api','fieldName','map','../../components/parsers/qs','query','error','pick','count','includeAll','then','send','create','lodash','body','options','intersection','sequelize','nolimit','sendStatus','show','findAll','catch','end','sort','where','fields','destroy','findOne','rawAttributes','undefined'];(function(_0x1e695f,_0x434798){const _0xab20a8=function(_0x4b7192){while(--_0x4b7192){_0x1e695f['push'](_0x1e695f['shift']());}};_0xab20a8(++_0x434798);}(a574_0x4347,0x135));const a574_0xab20=function(_0x1e695f,_0x434798){_0x1e695f=_0x1e695f-0x0;let _0xab20a8=a574_0x4347[_0x1e695f];return _0xab20a8;};const _0x575756=a574_0xab20;'use strict';const _=require(_0x575756('0x9')),qs=require(_0x575756('0x0')),logger=require(_0x575756('0x30'))(_0x575756('0x35')),db=require('../../mysqldb')['db'],{Op}=require(_0x575756('0xd'));function respondWithResult(_0x4b7192,_0x5298b6){return _0x5298b6=_0x5298b6||0xc8,function(_0x3b7c95){const _0x47cbce=a574_0xab20;if(_0x3b7c95)return _0x4b7192[_0x47cbce('0x2b')](_0x5298b6)[_0x47cbce('0x2f')](_0x3b7c95);};}function respondWithFilteredResult(_0xe1718e,_0x2c51b8){return function(_0xdcb62c){const _0x573400=a574_0xab20;if(_0xdcb62c){const _0x26df21=_0xdcb62c[_0x573400('0x4')],_0x18809a=_0x2c51b8[_0x573400('0x33')];let _0x34cc91=_0x2c51b8['offset']+_0x2c51b8[_0x573400('0x29')],_0x592abc;return _0x34cc91>=_0x26df21?(_0x34cc91=_0x26df21,_0x592abc=0xc8):_0x592abc=0xce,_0xe1718e[_0x573400('0x2b')](_0x592abc),_0xe1718e['set'](_0x573400('0x32'),_0x18809a+'-'+_0x34cc91+'/'+_0x26df21)[_0x573400('0x2f')](_0xdcb62c);}return null;};}function saveUpdates(_0x45464e){return function(_0x757a2e){const _0x2bdda9=a574_0xab20;if(_0x757a2e)return _0x757a2e[_0x2bdda9('0x1b')](_0x45464e)[_0x2bdda9('0x6')](function(_0x506a81){return _0x506a81;});return null;};}function removeEntity(_0x2265d9){return function(_0x34124c){const _0x1a255c=a574_0xab20;if(_0x34124c)return _0x34124c[_0x1a255c('0x17')]()[_0x1a255c('0x6')](function(){const _0x1cee67=_0x1a255c;_0x2265d9['status'](0xcc)[_0x1cee67('0x13')]();});};}function handleEntityNotFound(_0xb499dc){return function(_0x52eba7){const _0x2cc49d=a574_0xab20;return!_0x52eba7&&_0xb499dc[_0x2cc49d('0xf')](0x194),_0x52eba7;};}function handleError(_0xcef819,_0x23943a){return _0x23943a=_0x23943a||0x1f4,function(_0x2f4bd8){const _0x1eb5a2=a574_0xab20;logger[_0x1eb5a2('0x2')](_0x2f4bd8[_0x1eb5a2('0x1d')]),_0x2f4bd8['name']&&delete _0x2f4bd8[_0x1eb5a2('0x27')],_0xcef819[_0x1eb5a2('0x2b')](_0x23943a)[_0x1eb5a2('0x7')](_0x2f4bd8);};}exports[_0x575756('0x28')]=function(_0x5f4b06,_0x2c0ebf){const _0x210ea9=_0x575756;let _0x2e385a={};const _0x25adee={},_0x203af8={'count':0x0,'rows':[]},_0x5afc26=_[_0x210ea9('0x37')](db['SmsQueueReport'][_0x210ea9('0x19')],function(_0x2b4343){const _0x1a754f=_0x210ea9;return{'name':_0x2b4343[_0x1a754f('0x36')],'type':_0x2b4343[_0x1a754f('0x25')]['key']};});_0x25adee[_0x210ea9('0x2c')]=_[_0x210ea9('0x37')](_0x5afc26,'name'),_0x25adee[_0x210ea9('0x1')]=_[_0x210ea9('0x1e')](_0x5f4b06[_0x210ea9('0x1')]),_0x25adee[_0x210ea9('0x1c')]=_[_0x210ea9('0xc')](_0x25adee[_0x210ea9('0x2c')],_0x25adee['query']),_0x2e385a[_0x210ea9('0x2e')]=_['intersection'](_0x25adee[_0x210ea9('0x2c')],qs[_0x210ea9('0x16')](_0x5f4b06['query'][_0x210ea9('0x16')])),_0x2e385a[_0x210ea9('0x2e')]=_0x2e385a[_0x210ea9('0x2e')][_0x210ea9('0x22')]?_0x2e385a[_0x210ea9('0x2e')]:_0x25adee[_0x210ea9('0x2c')];typeof _0x5f4b06['query'][_0x210ea9('0xe')]===_0x210ea9('0x1a')&&(_0x2e385a['limit']=qs[_0x210ea9('0x29')](_0x5f4b06[_0x210ea9('0x1')][_0x210ea9('0x29')]),_0x2e385a[_0x210ea9('0x33')]=qs[_0x210ea9('0x33')](_0x5f4b06[_0x210ea9('0x1')][_0x210ea9('0x33')]));_0x2e385a[_0x210ea9('0x20')]=qs['sort'](_0x5f4b06[_0x210ea9('0x1')][_0x210ea9('0x14')]),_0x2e385a[_0x210ea9('0x15')]=qs['filters'](_[_0x210ea9('0x3')](_0x5f4b06[_0x210ea9('0x1')],_0x25adee[_0x210ea9('0x1c')]),_0x5afc26);_0x5f4b06[_0x210ea9('0x1')][_0x210ea9('0x21')]&&(_0x2e385a['where']=_[_0x210ea9('0x31')](_0x2e385a[_0x210ea9('0x15')],{[Op['or']]:_[_0x210ea9('0x37')](_0x5afc26,function(_0x314e46){const _0x3dab70=_0x210ea9;if(_0x314e46['type']!==_0x3dab70('0x2a')){const _0x325dee={};return _0x325dee[_0x314e46['name']]={[Op[_0x3dab70('0x34')]]:'%'+_0x5f4b06['query'][_0x3dab70('0x21')]+'%'},_0x325dee;}})}));_0x2e385a=_[_0x210ea9('0x31')]({},_0x2e385a,_0x5f4b06[_0x210ea9('0xb')]);const _0x3fc9d4={'where':_0x2e385a[_0x210ea9('0x15')]};return db[_0x210ea9('0x1f')][_0x210ea9('0x4')](_0x3fc9d4)['then'](function(_0x197d50){const _0x274179=_0x210ea9;return _0x203af8['count']=_0x197d50,_0x5f4b06['query'][_0x274179('0x5')]&&(_0x2e385a[_0x274179('0x2d')]=[{'all':!![]}]),db[_0x274179('0x1f')][_0x274179('0x11')](_0x2e385a);})['then'](function(_0x193374){const _0x1105df=_0x210ea9;return _0x203af8[_0x1105df('0x23')]=_0x193374,_0x203af8;})['then'](respondWithFilteredResult(_0x2c0ebf,_0x2e385a))[_0x210ea9('0x12')](handleError(_0x2c0ebf,null));},exports[_0x575756('0x10')]=function(_0x700ba4,_0xf82033){const _0x54ece2=_0x575756;let _0xfba86d={'raw':!![],'where':{'id':_0x700ba4[_0x54ece2('0x24')]['id']}};const _0x473edf={};return _0x473edf[_0x54ece2('0x2c')]=_['keys'](db[_0x54ece2('0x1f')][_0x54ece2('0x19')]),_0x473edf[_0x54ece2('0x1')]=_[_0x54ece2('0x1e')](_0x700ba4['query']),_0x473edf['filters']=_[_0x54ece2('0xc')](_0x473edf[_0x54ece2('0x2c')],_0x473edf[_0x54ece2('0x1')]),_0xfba86d[_0x54ece2('0x2e')]=_['intersection'](_0x473edf[_0x54ece2('0x2c')],qs[_0x54ece2('0x16')](_0x700ba4['query'][_0x54ece2('0x16')])),_0xfba86d[_0x54ece2('0x2e')]=_0xfba86d[_0x54ece2('0x2e')][_0x54ece2('0x22')]?_0xfba86d[_0x54ece2('0x2e')]:_0x473edf[_0x54ece2('0x2c')],_0x700ba4[_0x54ece2('0x1')][_0x54ece2('0x5')]&&(_0xfba86d[_0x54ece2('0x2d')]=[{'all':!![]}]),_0xfba86d=_['merge']({},_0xfba86d,_0x700ba4['options']),db[_0x54ece2('0x1f')]['findOne'](_0xfba86d)['then'](handleEntityNotFound(_0xf82033,null))[_0x54ece2('0x6')](respondWithResult(_0xf82033,null))[_0x54ece2('0x12')](handleError(_0xf82033,null));},exports[_0x575756('0x8')]=function(_0x1c5194,_0x4f1495){const _0x3665a2=_0x575756;return db[_0x3665a2('0x1f')][_0x3665a2('0x8')](_0x1c5194[_0x3665a2('0xa')],{})[_0x3665a2('0x6')](respondWithResult(_0x4f1495,0xc9))['catch'](handleError(_0x4f1495,null));},exports['update']=function(_0x5d3f7e,_0x5c7b00){const _0x22bbfc=_0x575756;return _0x5d3f7e['body']['id']&&delete _0x5d3f7e[_0x22bbfc('0xa')]['id'],db['SmsQueueReport'][_0x22bbfc('0x18')]({'where':{'id':_0x5d3f7e['params']['id']}})[_0x22bbfc('0x6')](handleEntityNotFound(_0x5c7b00,null))[_0x22bbfc('0x6')](saveUpdates(_0x5d3f7e[_0x22bbfc('0xa')],null))[_0x22bbfc('0x6')](respondWithResult(_0x5c7b00,null))[_0x22bbfc('0x12')](handleError(_0x5c7b00,null));},exports[_0x575756('0x17')]=function(_0x289cef,_0x2cddb1){const _0x37ecad=_0x575756;return db[_0x37ecad('0x1f')][_0x37ecad('0x18')]({'where':{'id':_0x289cef[_0x37ecad('0x24')]['id']}})[_0x37ecad('0x6')](handleEntityNotFound(_0x2cddb1,null))[_0x37ecad('0x6')](removeEntity(_0x2cddb1,null))[_0x37ecad('0x12')](handleError(_0x2cddb1,null));},exports[_0x575756('0x26')]=function(_0x26cbaa,_0x496dab){const _0xfd65f2=_0x575756;return db[_0xfd65f2('0x1f')][_0xfd65f2('0x26')]()[_0xfd65f2('0x6')](respondWithResult(_0x496dab,null))[_0xfd65f2('0x12')](handleError(_0x496dab,null));}; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.model.js b/server/api/smsQueueReport/smsQueueReport.model.js index da0f48a..0403d5b 100644 --- a/server/api/smsQueueReport/smsQueueReport.model.js +++ b/server/api/smsQueueReport/smsQueueReport.model.js @@ -1 +1 @@ -const a575_0x430e=['define','uniqueid','report_sms_queue','./smsQueueReport.attributes'];(function(_0x3380d9,_0x430ead){const _0x4edf2b=function(_0x4d9c76){while(--_0x4d9c76){_0x3380d9['push'](_0x3380d9['shift']());}};_0x4edf2b(++_0x430ead);}(a575_0x430e,0x102));const a575_0x4edf=function(_0x3380d9,_0x430ead){_0x3380d9=_0x3380d9-0x0;let _0x4edf2b=a575_0x430e[_0x3380d9];return _0x4edf2b;};const _0x502a50=a575_0x4edf;'use strict';const attributes=require(_0x502a50('0x1'));module['exports']=function(_0x4d9c76){const _0x5055fa=_0x502a50,_0x224f14=_0x4d9c76[_0x5055fa('0x2')]('SmsQueueReport',attributes,{'tableName':_0x5055fa('0x0'),'paranoid':![],'indexes':[{'name':_0x5055fa('0x3'),'fields':[_0x5055fa('0x3')]}],'timestamps':!![]});return _0x224f14;}; \ No newline at end of file +const a575_0x31cc=['uniqueid','report_sms_queue','exports'];(function(_0x128870,_0x31cc6d){const _0x773c65=function(_0x5221ee){while(--_0x5221ee){_0x128870['push'](_0x128870['shift']());}};_0x773c65(++_0x31cc6d);}(a575_0x31cc,0x17d));const a575_0x773c=function(_0x128870,_0x31cc6d){_0x128870=_0x128870-0x0;let _0x773c65=a575_0x31cc[_0x128870];return _0x773c65;};const _0x4300fb=a575_0x773c;'use strict';const attributes=require('./smsQueueReport.attributes');module[_0x4300fb('0x2')]=function(_0x5221ee){const _0x311898=_0x4300fb,_0x48e67d=_0x5221ee['define']('SmsQueueReport',attributes,{'tableName':_0x311898('0x1'),'paranoid':![],'indexes':[{'name':_0x311898('0x0'),'fields':['uniqueid']}],'timestamps':!![]});return _0x48e67d;}; \ No newline at end of file diff --git a/server/api/smsQueueReport/smsQueueReport.rpc.js b/server/api/smsQueueReport/smsQueueReport.rpc.js index efeab37..2c824ed 100644 --- a/server/api/smsQueueReport/smsQueueReport.rpc.js +++ b/server/api/smsQueueReport/smsQueueReport.rpc.js @@ -1 +1 @@ -const a576_0x3dc0=['debug','message','raw','stringify','CreateSmsQueueReport','info','body','error','UpdateSmsQueueReport','catch','options','create','limit','../../mysqldb','then','attributes','update','SmsQueueReport'];(function(_0x509132,_0x3dc057){const _0x1222f6=function(_0x261535){while(--_0x261535){_0x509132['push'](_0x509132['shift']());}};_0x1222f6(++_0x3dc057);}(a576_0x3dc0,0xc0));const a576_0x1222=function(_0x509132,_0x3dc057){_0x509132=_0x509132-0x0;let _0x1222f6=a576_0x3dc0[_0x509132];return _0x1222f6;};const _0x19f286=a576_0x1222;'use strict';const db=require(_0x19f286('0x1'))['db'],logger=require('../../config/logger')('rpc');exports[_0x19f286('0xa')]=function(_0x261535){const _0x4310a4=this;return new Promise(function(_0x354824,_0x181640){const _0x315d68=a576_0x1222;return db[_0x315d68('0x5')][_0x315d68('0x11')](_0x261535['body'],{'raw':_0x261535[_0x315d68('0x10')]?_0x261535['options'][_0x315d68('0x8')]===undefined?!![]:![]:!![]})[_0x315d68('0x2')](function(_0xf74ea8){const _0x32b058=_0x315d68;logger[_0x32b058('0xb')](_0x32b058('0xa'),_0x261535),logger['debug'](_0x32b058('0xa'),_0x261535,JSON[_0x32b058('0x9')](_0xf74ea8)),_0x354824(_0xf74ea8);})[_0x315d68('0xf')](function(_0x228958){const _0x753848=_0x315d68;logger[_0x753848('0xd')]('CreateSmsQueueReport',_0x228958['message'],_0x261535),_0x181640(_0x4310a4[_0x753848('0xd')](0x1f4,_0x228958[_0x753848('0x7')]));});});},exports[_0x19f286('0xe')]=function(_0x4e9b9b){const _0x4a56c5=this;return new Promise(function(_0x5ec8a2,_0x29afe4){const _0x3905fc=a576_0x1222;return db[_0x3905fc('0x5')][_0x3905fc('0x4')](_0x4e9b9b[_0x3905fc('0xc')],{'raw':_0x4e9b9b[_0x3905fc('0x10')]?_0x4e9b9b[_0x3905fc('0x10')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4e9b9b[_0x3905fc('0x10')]?_0x4e9b9b[_0x3905fc('0x10')]['where']||null:null,'attributes':_0x4e9b9b['options']?_0x4e9b9b[_0x3905fc('0x10')][_0x3905fc('0x3')]||null:null,'limit':_0x4e9b9b['options']?_0x4e9b9b['options'][_0x3905fc('0x0')]||null:null})['then'](function(_0x4b99fe){const _0x18f1b9=_0x3905fc;logger[_0x18f1b9('0xb')](_0x18f1b9('0xe'),_0x4e9b9b),logger[_0x18f1b9('0x6')](_0x18f1b9('0xe'),_0x4e9b9b,JSON[_0x18f1b9('0x9')](_0x4b99fe)),_0x5ec8a2(_0x4b99fe);})[_0x3905fc('0xf')](function(_0x59d484){const _0x395191=_0x3905fc;logger[_0x395191('0xd')](_0x395191('0xe'),_0x59d484[_0x395191('0x7')],_0x4e9b9b),_0x29afe4(_0x4a56c5[_0x395191('0xd')](0x1f4,_0x59d484[_0x395191('0x7')]));});});}; \ No newline at end of file +const a576_0x2528=['stringify','where','info','attributes','debug','options','rpc','update','raw','../../mysqldb','error','SmsQueueReport','message','then','CreateSmsQueueReport','create','../../config/logger','catch','UpdateSmsQueueReport','body'];(function(_0x16e9ad,_0x25286e){const _0x5e57d1=function(_0x44e1e5){while(--_0x44e1e5){_0x16e9ad['push'](_0x16e9ad['shift']());}};_0x5e57d1(++_0x25286e);}(a576_0x2528,0xa1));const a576_0x5e57=function(_0x16e9ad,_0x25286e){_0x16e9ad=_0x16e9ad-0x0;let _0x5e57d1=a576_0x2528[_0x16e9ad];return _0x5e57d1;};const _0x2d36bf=a576_0x5e57;'use strict';const db=require(_0x2d36bf('0x8'))['db'],logger=require(_0x2d36bf('0xf'))(_0x2d36bf('0x5'));exports[_0x2d36bf('0xd')]=function(_0x44e1e5){const _0x280001=this;return new Promise(function(_0x4111f8,_0x23230b){const _0x435629=a576_0x5e57;return db[_0x435629('0xa')][_0x435629('0xe')](_0x44e1e5[_0x435629('0x12')],{'raw':_0x44e1e5[_0x435629('0x4')]?_0x44e1e5['options'][_0x435629('0x7')]===undefined?!![]:![]:!![]})[_0x435629('0xc')](function(_0x4528a9){const _0x2cada8=_0x435629;logger[_0x2cada8('0x1')]('CreateSmsQueueReport',_0x44e1e5),logger[_0x2cada8('0x3')](_0x2cada8('0xd'),_0x44e1e5,JSON[_0x2cada8('0x13')](_0x4528a9)),_0x4111f8(_0x4528a9);})[_0x435629('0x10')](function(_0x41788f){const _0x3c4f76=_0x435629;logger[_0x3c4f76('0x9')]('CreateSmsQueueReport',_0x41788f[_0x3c4f76('0xb')],_0x44e1e5),_0x23230b(_0x280001[_0x3c4f76('0x9')](0x1f4,_0x41788f[_0x3c4f76('0xb')]));});});},exports[_0x2d36bf('0x11')]=function(_0x1b7afb){const _0x570e78=this;return new Promise(function(_0x2d636f,_0x595170){const _0x193666=a576_0x5e57;return db['SmsQueueReport'][_0x193666('0x6')](_0x1b7afb['body'],{'raw':_0x1b7afb[_0x193666('0x4')]?_0x1b7afb[_0x193666('0x4')][_0x193666('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1b7afb[_0x193666('0x4')]?_0x1b7afb[_0x193666('0x4')][_0x193666('0x0')]||null:null,'attributes':_0x1b7afb[_0x193666('0x4')]?_0x1b7afb[_0x193666('0x4')][_0x193666('0x2')]||null:null,'limit':_0x1b7afb[_0x193666('0x4')]?_0x1b7afb[_0x193666('0x4')]['limit']||null:null})[_0x193666('0xc')](function(_0x27d2a9){const _0x5a3707=_0x193666;logger['info'](_0x5a3707('0x11'),_0x1b7afb),logger[_0x5a3707('0x3')](_0x5a3707('0x11'),_0x1b7afb,JSON[_0x5a3707('0x13')](_0x27d2a9)),_0x2d636f(_0x27d2a9);})['catch'](function(_0x5c780e){const _0x364c1e=_0x193666;logger[_0x364c1e('0x9')](_0x364c1e('0x11'),_0x5c780e[_0x364c1e('0xb')],_0x1b7afb),_0x595170(_0x570e78[_0x364c1e('0x9')](0x1f4,_0x5c780e['message']));});});}; \ No newline at end of file diff --git a/server/api/smsTransferReport/index.js b/server/api/smsTransferReport/index.js index e73a9f8..2319ff4 100644 --- a/server/api/smsTransferReport/index.js +++ b/server/api/smsTransferReport/index.js @@ -1 +1 @@ -const a577_0x32f9=['update','index','delete','post','create','show','./smsTransferReport.controller','../../components/auth/service','destroy','/describe','Router','put','describe','express','/:id','get','isAuthenticated'];(function(_0x269b71,_0x32f9f2){const _0x3dd75f=function(_0x452be7){while(--_0x452be7){_0x269b71['push'](_0x269b71['shift']());}};_0x3dd75f(++_0x32f9f2);}(a577_0x32f9,0x1bf));const a577_0x3dd7=function(_0x269b71,_0x32f9f2){_0x269b71=_0x269b71-0x0;let _0x3dd75f=a577_0x32f9[_0x269b71];return _0x3dd75f;};const _0x2a09a6=a577_0x3dd7;'use strict';const express=require(_0x2a09a6('0x8')),router=express[_0x2a09a6('0x5')](),auth=require(_0x2a09a6('0x2')),controller=require(_0x2a09a6('0x1'));router[_0x2a09a6('0xa')]('/',auth[_0x2a09a6('0xb')](),controller[_0x2a09a6('0xd')]),router[_0x2a09a6('0xa')](_0x2a09a6('0x4'),auth[_0x2a09a6('0xb')](),controller[_0x2a09a6('0x7')]),router[_0x2a09a6('0xa')](_0x2a09a6('0x9'),auth[_0x2a09a6('0xb')](),controller[_0x2a09a6('0x0')]),router[_0x2a09a6('0xf')]('/',auth[_0x2a09a6('0xb')](),controller[_0x2a09a6('0x10')]),router[_0x2a09a6('0x6')]('/:id',auth[_0x2a09a6('0xb')](),controller[_0x2a09a6('0xc')]),router[_0x2a09a6('0xe')](_0x2a09a6('0x9'),auth['isAuthenticated'](),controller[_0x2a09a6('0x3')]),module['exports']=router; \ No newline at end of file +const a577_0x3d7d=['/:id','get','delete','index','create','show','express','/describe','isAuthenticated','../../components/auth/service','Router'];(function(_0x2d87ec,_0x3d7d53){const _0x3acda3=function(_0x838758){while(--_0x838758){_0x2d87ec['push'](_0x2d87ec['shift']());}};_0x3acda3(++_0x3d7d53);}(a577_0x3d7d,0x1e3));const a577_0x3acd=function(_0x2d87ec,_0x3d7d53){_0x2d87ec=_0x2d87ec-0x0;let _0x3acda3=a577_0x3d7d[_0x2d87ec];return _0x3acda3;};const _0x43a402=a577_0x3acd;'use strict';const express=require(_0x43a402('0x7')),router=express[_0x43a402('0x0')](),auth=require(_0x43a402('0xa')),controller=require('./smsTransferReport.controller');router[_0x43a402('0x2')]('/',auth['isAuthenticated'](),controller[_0x43a402('0x4')]),router[_0x43a402('0x2')](_0x43a402('0x8'),auth['isAuthenticated'](),controller['describe']),router[_0x43a402('0x2')](_0x43a402('0x1'),auth[_0x43a402('0x9')](),controller[_0x43a402('0x6')]),router['post']('/',auth[_0x43a402('0x9')](),controller[_0x43a402('0x5')]),router['put'](_0x43a402('0x1'),auth['isAuthenticated'](),controller['update']),router[_0x43a402('0x3')](_0x43a402('0x1'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.attributes.js b/server/api/smsTransferReport/smsTransferReport.attributes.js index 7c24a7f..029c495 100644 --- a/server/api/smsTransferReport/smsTransferReport.attributes.js +++ b/server/api/smsTransferReport/smsTransferReport.attributes.js @@ -1 +1 @@ -const a578_0x53dd=['account','sequelize','ENUM','agent','DATE','STRING'];(function(_0x30af65,_0x53ddb1){const _0x20c4e8=function(_0x2b3065){while(--_0x2b3065){_0x30af65['push'](_0x30af65['shift']());}};_0x20c4e8(++_0x53ddb1);}(a578_0x53dd,0x8d));const a578_0x20c4=function(_0x30af65,_0x53ddb1){_0x30af65=_0x30af65-0x0;let _0x20c4e8=a578_0x53dd[_0x30af65];return _0x20c4e8;};const _0x59c998=a578_0x20c4;'use strict';const Sequelize=require(_0x59c998('0x4'));module['exports']={'uniqueid':{'type':Sequelize[_0x59c998('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x59c998('0x5')](_0x59c998('0x3'),_0x59c998('0x0'),'queue'),'allowNull':![],'defaultValue':'queue'},'transferredAt':{'type':Sequelize[_0x59c998('0x1')],'allowNull':![],'defaultValue':Sequelize['NOW']}}; \ No newline at end of file +const a578_0x1433=['STRING','DATE','agent','sequelize','queue','NOW','account'];(function(_0x40eed9,_0x14332e){const _0x572cd4=function(_0x2cea88){while(--_0x2cea88){_0x40eed9['push'](_0x40eed9['shift']());}};_0x572cd4(++_0x14332e);}(a578_0x1433,0x190));const a578_0x572c=function(_0x40eed9,_0x14332e){_0x40eed9=_0x40eed9-0x0;let _0x572cd4=a578_0x1433[_0x40eed9];return _0x572cd4;};const _0xc4bc60=a578_0x572c;'use strict';const Sequelize=require(_0xc4bc60('0x2'));module['exports']={'uniqueid':{'type':Sequelize[_0xc4bc60('0x6')],'allowNull':![]},'type':{'type':Sequelize['ENUM'](_0xc4bc60('0x5'),_0xc4bc60('0x1'),_0xc4bc60('0x3')),'allowNull':![],'defaultValue':_0xc4bc60('0x3')},'transferredAt':{'type':Sequelize[_0xc4bc60('0x0')],'allowNull':![],'defaultValue':Sequelize[_0xc4bc60('0x4')]}}; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.controller.js b/server/api/smsTransferReport/smsTransferReport.controller.js index e01034d..b9028a4 100644 --- a/server/api/smsTransferReport/smsTransferReport.controller.js +++ b/server/api/smsTransferReport/smsTransferReport.controller.js @@ -1 +1 @@ -const a579_0x55dd=['order','pick','filters','then','status','SmsTransferReport','create','params','limit','include','like','undefined','describe','sort','VIRTUAL','body','update','sequelize','rawAttributes','findAll','index','options','attributes','keys','sendStatus','type','where','count','intersection','../../components/parsers/qs','set','../../mysqldb','query','end','Content-Range','catch','fields','model','length','key','merge','map','includeAll','rows','findOne','json','error','send','offset','nolimit','name','fieldName','destroy'];(function(_0x573bde,_0x55ddf7){const _0x1d036c=function(_0x98a70d){while(--_0x98a70d){_0x573bde['push'](_0x573bde['shift']());}};_0x1d036c(++_0x55ddf7);}(a579_0x55dd,0x155));const a579_0x1d03=function(_0x573bde,_0x55ddf7){_0x573bde=_0x573bde-0x0;let _0x1d036c=a579_0x55dd[_0x573bde];return _0x1d036c;};const _0x3867d7=a579_0x1d03;'use strict';const _=require('lodash'),qs=require(_0x3867d7('0x6')),logger=require('../../config/logger')('api'),db=require(_0x3867d7('0x8'))['db'],{Op}=require(_0x3867d7('0x2f'));function respondWithResult(_0x98a70d,_0x515fbf){return _0x515fbf=_0x515fbf||0xc8,function(_0x5e05a3){const _0x416693=a579_0x1d03;if(_0x5e05a3)return _0x98a70d[_0x416693('0x22')](_0x515fbf)[_0x416693('0x16')](_0x5e05a3);};}function respondWithFilteredResult(_0x55fbf5,_0x4d0af4){return function(_0x193fb6){const _0x24236a=a579_0x1d03;if(_0x193fb6){const _0x37a297=_0x193fb6['count'],_0x3c595c=_0x4d0af4['offset'];let _0x46509a=_0x4d0af4[_0x24236a('0x19')]+_0x4d0af4[_0x24236a('0x26')],_0x2c07c1;return _0x46509a>=_0x37a297?(_0x46509a=_0x37a297,_0x2c07c1=0xc8):_0x2c07c1=0xce,_0x55fbf5[_0x24236a('0x22')](_0x2c07c1),_0x55fbf5[_0x24236a('0x7')](_0x24236a('0xb'),_0x3c595c+'-'+_0x46509a+'/'+_0x37a297)[_0x24236a('0x16')](_0x193fb6);}return null;};}function saveUpdates(_0x2aaf5b){return function(_0x20641){const _0x2c265f=a579_0x1d03;if(_0x20641)return _0x20641[_0x2c265f('0x2e')](_0x2aaf5b)['then'](function(_0x40a95a){return _0x40a95a;});return null;};}function removeEntity(_0x1f53ed){return function(_0x126e2c){const _0x444564=a579_0x1d03;if(_0x126e2c)return _0x126e2c[_0x444564('0x1d')]()[_0x444564('0x21')](function(){const _0x10d037=_0x444564;_0x1f53ed['status'](0xcc)[_0x10d037('0xa')]();});};}function handleEntityNotFound(_0x4ebd89){return function(_0x5cc925){const _0xecac89=a579_0x1d03;return!_0x5cc925&&_0x4ebd89[_0xecac89('0x1')](0x194),_0x5cc925;};}function handleError(_0x159b00,_0x11bb1){return _0x11bb1=_0x11bb1||0x1f4,function(_0x371a70){const _0x575d3a=a579_0x1d03;logger[_0x575d3a('0x17')](_0x371a70['stack']),_0x371a70[_0x575d3a('0x1b')]&&delete _0x371a70[_0x575d3a('0x1b')],_0x159b00[_0x575d3a('0x22')](_0x11bb1)[_0x575d3a('0x18')](_0x371a70);};}exports[_0x3867d7('0x32')]=function(_0x29bb5c,_0x337c6e){const _0x348950=_0x3867d7;let _0x22e324={};const _0xf9fb25={},_0x41e29b={'count':0x0,'rows':[]},_0x404ee7=_[_0x348950('0x12')](db[_0x348950('0x23')][_0x348950('0x30')],function(_0x3f3ab2){const _0x4633b7=_0x348950;return{'name':_0x3f3ab2[_0x4633b7('0x1c')],'type':_0x3f3ab2[_0x4633b7('0x2')][_0x4633b7('0x10')]};});_0xf9fb25[_0x348950('0xe')]=_[_0x348950('0x12')](_0x404ee7,_0x348950('0x1b')),_0xf9fb25[_0x348950('0x9')]=_['keys'](_0x29bb5c[_0x348950('0x9')]),_0xf9fb25[_0x348950('0x20')]=_[_0x348950('0x5')](_0xf9fb25['model'],_0xf9fb25['query']),_0x22e324['attributes']=_[_0x348950('0x5')](_0xf9fb25[_0x348950('0xe')],qs[_0x348950('0xd')](_0x29bb5c[_0x348950('0x9')][_0x348950('0xd')])),_0x22e324[_0x348950('0x34')]=_0x22e324[_0x348950('0x34')][_0x348950('0xf')]?_0x22e324[_0x348950('0x34')]:_0xf9fb25['model'];typeof _0x29bb5c[_0x348950('0x9')][_0x348950('0x1a')]===_0x348950('0x29')&&(_0x22e324['limit']=qs[_0x348950('0x26')](_0x29bb5c[_0x348950('0x9')][_0x348950('0x26')]),_0x22e324[_0x348950('0x19')]=qs['offset'](_0x29bb5c[_0x348950('0x9')][_0x348950('0x19')]));_0x22e324[_0x348950('0x1e')]=qs[_0x348950('0x2b')](_0x29bb5c[_0x348950('0x9')]['sort']),_0x22e324['where']=qs['filters'](_[_0x348950('0x1f')](_0x29bb5c[_0x348950('0x9')],_0xf9fb25[_0x348950('0x20')]),_0x404ee7);_0x29bb5c[_0x348950('0x9')]['filter']&&(_0x22e324['where']=_[_0x348950('0x11')](_0x22e324['where'],{[Op['or']]:_[_0x348950('0x12')](_0x404ee7,function(_0x523649){const _0x38dd02=_0x348950;if(_0x523649[_0x38dd02('0x2')]!==_0x38dd02('0x2c')){const _0xfea39c={};return _0xfea39c[_0x523649[_0x38dd02('0x1b')]]={[Op[_0x38dd02('0x28')]]:'%'+_0x29bb5c[_0x38dd02('0x9')]['filter']+'%'},_0xfea39c;}})}));_0x22e324=_[_0x348950('0x11')]({},_0x22e324,_0x29bb5c[_0x348950('0x33')]);const _0x482f8a={'where':_0x22e324[_0x348950('0x3')]};return db[_0x348950('0x23')]['count'](_0x482f8a)[_0x348950('0x21')](function(_0x174f0d){const _0x5ce765=_0x348950;return _0x41e29b[_0x5ce765('0x4')]=_0x174f0d,_0x29bb5c[_0x5ce765('0x9')][_0x5ce765('0x13')]&&(_0x22e324[_0x5ce765('0x27')]=[{'all':!![]}]),db['SmsTransferReport'][_0x5ce765('0x31')](_0x22e324);})[_0x348950('0x21')](function(_0x3b7ff7){const _0x54b524=_0x348950;return _0x41e29b[_0x54b524('0x14')]=_0x3b7ff7,_0x41e29b;})['then'](respondWithFilteredResult(_0x337c6e,_0x22e324))[_0x348950('0xc')](handleError(_0x337c6e,null));},exports['show']=function(_0x135ff9,_0x4a819a){const _0x39e51a=_0x3867d7;let _0x977bfa={'raw':!![],'where':{'id':_0x135ff9[_0x39e51a('0x25')]['id']}};const _0x3ea80f={};return _0x3ea80f['model']=_[_0x39e51a('0x0')](db[_0x39e51a('0x23')][_0x39e51a('0x30')]),_0x3ea80f[_0x39e51a('0x9')]=_['keys'](_0x135ff9[_0x39e51a('0x9')]),_0x3ea80f[_0x39e51a('0x20')]=_[_0x39e51a('0x5')](_0x3ea80f[_0x39e51a('0xe')],_0x3ea80f['query']),_0x977bfa[_0x39e51a('0x34')]=_[_0x39e51a('0x5')](_0x3ea80f['model'],qs[_0x39e51a('0xd')](_0x135ff9[_0x39e51a('0x9')][_0x39e51a('0xd')])),_0x977bfa[_0x39e51a('0x34')]=_0x977bfa['attributes'][_0x39e51a('0xf')]?_0x977bfa[_0x39e51a('0x34')]:_0x3ea80f['model'],_0x135ff9['query']['includeAll']&&(_0x977bfa[_0x39e51a('0x27')]=[{'all':!![]}]),_0x977bfa=_['merge']({},_0x977bfa,_0x135ff9[_0x39e51a('0x33')]),db[_0x39e51a('0x23')][_0x39e51a('0x15')](_0x977bfa)[_0x39e51a('0x21')](handleEntityNotFound(_0x4a819a,null))[_0x39e51a('0x21')](respondWithResult(_0x4a819a,null))[_0x39e51a('0xc')](handleError(_0x4a819a,null));},exports[_0x3867d7('0x24')]=function(_0x55013d,_0x4340ad){const _0x33caf4=_0x3867d7;return db[_0x33caf4('0x23')][_0x33caf4('0x24')](_0x55013d[_0x33caf4('0x2d')],{})['then'](respondWithResult(_0x4340ad,0xc9))[_0x33caf4('0xc')](handleError(_0x4340ad,null));},exports[_0x3867d7('0x2e')]=function(_0x71461b,_0x2c4100){const _0x260c86=_0x3867d7;return _0x71461b[_0x260c86('0x2d')]['id']&&delete _0x71461b['body']['id'],db[_0x260c86('0x23')]['findOne']({'where':{'id':_0x71461b[_0x260c86('0x25')]['id']}})[_0x260c86('0x21')](handleEntityNotFound(_0x2c4100,null))[_0x260c86('0x21')](saveUpdates(_0x71461b['body'],null))['then'](respondWithResult(_0x2c4100,null))[_0x260c86('0xc')](handleError(_0x2c4100,null));},exports[_0x3867d7('0x1d')]=function(_0x2da691,_0x1cd7e1){const _0x2ab1f2=_0x3867d7;return db[_0x2ab1f2('0x23')][_0x2ab1f2('0x15')]({'where':{'id':_0x2da691[_0x2ab1f2('0x25')]['id']}})[_0x2ab1f2('0x21')](handleEntityNotFound(_0x1cd7e1,null))[_0x2ab1f2('0x21')](removeEntity(_0x1cd7e1,null))['catch'](handleError(_0x1cd7e1,null));},exports[_0x3867d7('0x2a')]=function(_0x2c738c,_0x20e38d){const _0x1a774d=_0x3867d7;return db[_0x1a774d('0x23')]['describe']()[_0x1a774d('0x21')](respondWithResult(_0x20e38d,null))[_0x1a774d('0xc')](handleError(_0x20e38d,null));}; \ No newline at end of file +const a579_0x4d94=['SmsTransferReport','rawAttributes','offset','nolimit','include','options','../../mysqldb','catch','where','../../components/parsers/qs','destroy','query','../../config/logger','status','params','name','sendStatus','type','merge','keys','fields','rows','filter','Content-Range','then','like','describe','error','sequelize','filters','count','includeAll','intersection','create','json','body','findAll','update','end','send','pick','model','api','key','length','sort','findOne','order','map','stack','attributes','limit'];(function(_0x65e3d6,_0x4d94a9){const _0x38d52a=function(_0x20b45a){while(--_0x20b45a){_0x65e3d6['push'](_0x65e3d6['shift']());}};_0x38d52a(++_0x4d94a9);}(a579_0x4d94,0x89));const a579_0x38d5=function(_0x65e3d6,_0x4d94a9){_0x65e3d6=_0x65e3d6-0x0;let _0x38d52a=a579_0x4d94[_0x65e3d6];return _0x38d52a;};const _0x5a94b1=a579_0x38d5;'use strict';const _=require('lodash'),qs=require(_0x5a94b1('0x1c')),logger=require(_0x5a94b1('0x1f'))(_0x5a94b1('0x9')),db=require(_0x5a94b1('0x19'))['db'],{Op}=require(_0x5a94b1('0x2f'));function respondWithResult(_0x20b45a,_0x566dd7){return _0x566dd7=_0x566dd7||0xc8,function(_0x4b05b8){const _0x32d7ec=a579_0x38d5;if(_0x4b05b8)return _0x20b45a[_0x32d7ec('0x20')](_0x566dd7)[_0x32d7ec('0x1')](_0x4b05b8);};}function respondWithFilteredResult(_0x4ca3a2,_0x3f4b94){return function(_0x6a71ce){const _0x5188a6=a579_0x38d5;if(_0x6a71ce){const _0x5a6148=_0x6a71ce[_0x5188a6('0x31')],_0xa44216=_0x3f4b94['offset'];let _0x209a89=_0x3f4b94[_0x5188a6('0x15')]+_0x3f4b94['limit'],_0x3de247;return _0x209a89>=_0x5a6148?(_0x209a89=_0x5a6148,_0x3de247=0xc8):_0x3de247=0xce,_0x4ca3a2['status'](_0x3de247),_0x4ca3a2['set'](_0x5188a6('0x2a'),_0xa44216+'-'+_0x209a89+'/'+_0x5a6148)['json'](_0x6a71ce);}return null;};}function saveUpdates(_0x1a6148){return function(_0x251b89){const _0x13dfc4=a579_0x38d5;if(_0x251b89)return _0x251b89[_0x13dfc4('0x4')](_0x1a6148)[_0x13dfc4('0x2b')](function(_0x1e1e8c){return _0x1e1e8c;});return null;};}function removeEntity(_0x86957e){return function(_0x5c02cf){const _0x345826=a579_0x38d5;if(_0x5c02cf)return _0x5c02cf[_0x345826('0x1d')]()['then'](function(){const _0x351f29=_0x345826;_0x86957e[_0x351f29('0x20')](0xcc)[_0x351f29('0x5')]();});};}function handleEntityNotFound(_0x119f8c){return function(_0x15ab70){const _0x3f6443=a579_0x38d5;return!_0x15ab70&&_0x119f8c[_0x3f6443('0x23')](0x194),_0x15ab70;};}function handleError(_0x38d955,_0x4fd63b){return _0x4fd63b=_0x4fd63b||0x1f4,function(_0x11d9d8){const _0x1723e1=a579_0x38d5;logger[_0x1723e1('0x2e')](_0x11d9d8[_0x1723e1('0x10')]),_0x11d9d8[_0x1723e1('0x22')]&&delete _0x11d9d8[_0x1723e1('0x22')],_0x38d955['status'](_0x4fd63b)[_0x1723e1('0x6')](_0x11d9d8);};}exports['index']=function(_0x4d6bfb,_0x387993){const _0x13a44a=_0x5a94b1;let _0x1dceb5={};const _0x689e02={},_0x2f7a58={'count':0x0,'rows':[]},_0x33f59c=_[_0x13a44a('0xf')](db[_0x13a44a('0x13')][_0x13a44a('0x14')],function(_0x4c94da){const _0x387857=_0x13a44a;return{'name':_0x4c94da['fieldName'],'type':_0x4c94da[_0x387857('0x24')][_0x387857('0xa')]};});_0x689e02['model']=_['map'](_0x33f59c,'name'),_0x689e02['query']=_[_0x13a44a('0x26')](_0x4d6bfb[_0x13a44a('0x1e')]),_0x689e02[_0x13a44a('0x30')]=_[_0x13a44a('0x33')](_0x689e02[_0x13a44a('0x8')],_0x689e02[_0x13a44a('0x1e')]),_0x1dceb5[_0x13a44a('0x11')]=_[_0x13a44a('0x33')](_0x689e02['model'],qs[_0x13a44a('0x27')](_0x4d6bfb[_0x13a44a('0x1e')][_0x13a44a('0x27')])),_0x1dceb5[_0x13a44a('0x11')]=_0x1dceb5[_0x13a44a('0x11')]['length']?_0x1dceb5[_0x13a44a('0x11')]:_0x689e02['model'];typeof _0x4d6bfb['query'][_0x13a44a('0x16')]==='undefined'&&(_0x1dceb5[_0x13a44a('0x12')]=qs[_0x13a44a('0x12')](_0x4d6bfb['query'][_0x13a44a('0x12')]),_0x1dceb5[_0x13a44a('0x15')]=qs['offset'](_0x4d6bfb[_0x13a44a('0x1e')]['offset']));_0x1dceb5[_0x13a44a('0xe')]=qs[_0x13a44a('0xc')](_0x4d6bfb['query']['sort']),_0x1dceb5[_0x13a44a('0x1b')]=qs[_0x13a44a('0x30')](_[_0x13a44a('0x7')](_0x4d6bfb[_0x13a44a('0x1e')],_0x689e02[_0x13a44a('0x30')]),_0x33f59c);_0x4d6bfb['query'][_0x13a44a('0x29')]&&(_0x1dceb5[_0x13a44a('0x1b')]=_[_0x13a44a('0x25')](_0x1dceb5[_0x13a44a('0x1b')],{[Op['or']]:_[_0x13a44a('0xf')](_0x33f59c,function(_0x45ed13){const _0x181b83=_0x13a44a;if(_0x45ed13[_0x181b83('0x24')]!=='VIRTUAL'){const _0x376280={};return _0x376280[_0x45ed13[_0x181b83('0x22')]]={[Op[_0x181b83('0x2c')]]:'%'+_0x4d6bfb[_0x181b83('0x1e')]['filter']+'%'},_0x376280;}})}));_0x1dceb5=_[_0x13a44a('0x25')]({},_0x1dceb5,_0x4d6bfb['options']);const _0x5754ba={'where':_0x1dceb5[_0x13a44a('0x1b')]};return db['SmsTransferReport'][_0x13a44a('0x31')](_0x5754ba)[_0x13a44a('0x2b')](function(_0x5e6818){const _0x44ca04=_0x13a44a;return _0x2f7a58[_0x44ca04('0x31')]=_0x5e6818,_0x4d6bfb['query'][_0x44ca04('0x32')]&&(_0x1dceb5[_0x44ca04('0x17')]=[{'all':!![]}]),db[_0x44ca04('0x13')][_0x44ca04('0x3')](_0x1dceb5);})[_0x13a44a('0x2b')](function(_0x32f708){const _0x4e91bf=_0x13a44a;return _0x2f7a58[_0x4e91bf('0x28')]=_0x32f708,_0x2f7a58;})[_0x13a44a('0x2b')](respondWithFilteredResult(_0x387993,_0x1dceb5))[_0x13a44a('0x1a')](handleError(_0x387993,null));},exports['show']=function(_0x171319,_0x16e77a){const _0x42a32c=_0x5a94b1;let _0x3ed2ba={'raw':!![],'where':{'id':_0x171319[_0x42a32c('0x21')]['id']}};const _0x1906ec={};return _0x1906ec['model']=_[_0x42a32c('0x26')](db[_0x42a32c('0x13')][_0x42a32c('0x14')]),_0x1906ec[_0x42a32c('0x1e')]=_[_0x42a32c('0x26')](_0x171319['query']),_0x1906ec[_0x42a32c('0x30')]=_[_0x42a32c('0x33')](_0x1906ec[_0x42a32c('0x8')],_0x1906ec[_0x42a32c('0x1e')]),_0x3ed2ba[_0x42a32c('0x11')]=_['intersection'](_0x1906ec['model'],qs['fields'](_0x171319[_0x42a32c('0x1e')]['fields'])),_0x3ed2ba['attributes']=_0x3ed2ba['attributes'][_0x42a32c('0xb')]?_0x3ed2ba[_0x42a32c('0x11')]:_0x1906ec[_0x42a32c('0x8')],_0x171319[_0x42a32c('0x1e')]['includeAll']&&(_0x3ed2ba['include']=[{'all':!![]}]),_0x3ed2ba=_[_0x42a32c('0x25')]({},_0x3ed2ba,_0x171319[_0x42a32c('0x18')]),db[_0x42a32c('0x13')][_0x42a32c('0xd')](_0x3ed2ba)['then'](handleEntityNotFound(_0x16e77a,null))[_0x42a32c('0x2b')](respondWithResult(_0x16e77a,null))['catch'](handleError(_0x16e77a,null));},exports[_0x5a94b1('0x0')]=function(_0x368cef,_0x5a61eb){const _0x48b3d8=_0x5a94b1;return db[_0x48b3d8('0x13')][_0x48b3d8('0x0')](_0x368cef[_0x48b3d8('0x2')],{})[_0x48b3d8('0x2b')](respondWithResult(_0x5a61eb,0xc9))[_0x48b3d8('0x1a')](handleError(_0x5a61eb,null));},exports[_0x5a94b1('0x4')]=function(_0x1da82c,_0x4f4e43){const _0x3aa352=_0x5a94b1;return _0x1da82c['body']['id']&&delete _0x1da82c[_0x3aa352('0x2')]['id'],db[_0x3aa352('0x13')][_0x3aa352('0xd')]({'where':{'id':_0x1da82c['params']['id']}})[_0x3aa352('0x2b')](handleEntityNotFound(_0x4f4e43,null))[_0x3aa352('0x2b')](saveUpdates(_0x1da82c['body'],null))['then'](respondWithResult(_0x4f4e43,null))['catch'](handleError(_0x4f4e43,null));},exports[_0x5a94b1('0x1d')]=function(_0x49a24c,_0xe27ad){const _0x1a920c=_0x5a94b1;return db[_0x1a920c('0x13')][_0x1a920c('0xd')]({'where':{'id':_0x49a24c['params']['id']}})['then'](handleEntityNotFound(_0xe27ad,null))[_0x1a920c('0x2b')](removeEntity(_0xe27ad,null))[_0x1a920c('0x1a')](handleError(_0xe27ad,null));},exports[_0x5a94b1('0x2d')]=function(_0x560284,_0x4e7635){const _0x32ebd6=_0x5a94b1;return db[_0x32ebd6('0x13')]['describe']()[_0x32ebd6('0x2b')](respondWithResult(_0x4e7635,null))[_0x32ebd6('0x1a')](handleError(_0x4e7635,null));}; \ No newline at end of file diff --git a/server/api/smsTransferReport/smsTransferReport.model.js b/server/api/smsTransferReport/smsTransferReport.model.js index e981e4f..ec1032a 100644 --- a/server/api/smsTransferReport/smsTransferReport.model.js +++ b/server/api/smsTransferReport/smsTransferReport.model.js @@ -1 +1 @@ -const a580_0x2d34=['exports','SmsTransferReport','report_sms_transfer','define','uniqueid'];(function(_0xf0708f,_0x2d3485){const _0x405142=function(_0x30ac12){while(--_0x30ac12){_0xf0708f['push'](_0xf0708f['shift']());}};_0x405142(++_0x2d3485);}(a580_0x2d34,0xda));const a580_0x4051=function(_0xf0708f,_0x2d3485){_0xf0708f=_0xf0708f-0x0;let _0x405142=a580_0x2d34[_0xf0708f];return _0x405142;};const _0x5978d9=a580_0x4051;'use strict';const attributes=require('./smsTransferReport.attributes');module[_0x5978d9('0x2')]=function(_0x30ac12){const _0x4f15da=_0x5978d9,_0x56d736=_0x30ac12[_0x4f15da('0x0')](_0x4f15da('0x3'),attributes,{'tableName':_0x4f15da('0x4'),'paranoid':![],'indexes':[{'name':_0x4f15da('0x1'),'fields':['uniqueid']}],'timestamps':!![]});return _0x56d736;}; \ No newline at end of file +const a580_0x56be=['exports','./smsTransferReport.attributes','uniqueid','SmsTransferReport','define'];(function(_0xaaadff,_0x56bef1){const _0x5bf413=function(_0x178bc6){while(--_0x178bc6){_0xaaadff['push'](_0xaaadff['shift']());}};_0x5bf413(++_0x56bef1);}(a580_0x56be,0xc3));const a580_0x5bf4=function(_0xaaadff,_0x56bef1){_0xaaadff=_0xaaadff-0x0;let _0x5bf413=a580_0x56be[_0xaaadff];return _0x5bf413;};const _0x42ddbb=a580_0x5bf4;'use strict';const attributes=require(_0x42ddbb('0x1'));module[_0x42ddbb('0x0')]=function(_0x178bc6){const _0x1dd15a=_0x42ddbb,_0x588350=_0x178bc6[_0x1dd15a('0x4')](_0x1dd15a('0x3'),attributes,{'tableName':'report_sms_transfer','paranoid':![],'indexes':[{'name':'uniqueid','fields':[_0x1dd15a('0x2')]}],'timestamps':!![]});return _0x588350;}; \ No newline at end of file diff --git a/server/api/sound/index.js b/server/api/sound/index.js index fa84ac8..25c0d7f 100644 --- a/server/api/sound/index.js +++ b/server/api/sound/index.js @@ -1 +1 @@ -const a581_0x518e=['put','file','../../components/auth/service','%s-%s%s','../../config/environment','/:id/download','/:id','exports','index','diskStorage','extname','delete','show','express','single','join','util','download','get','files/sounds/original/','replace','originalname','isAuthenticated','multer','path'];(function(_0x5def6f,_0x518e88){const _0x24fd88=function(_0x4eb2cd){while(--_0x4eb2cd){_0x5def6f['push'](_0x5def6f['shift']());}};_0x24fd88(++_0x518e88);}(a581_0x518e,0x9c));const a581_0x24fd=function(_0x5def6f,_0x518e88){_0x5def6f=_0x5def6f-0x0;let _0x24fd88=a581_0x518e[_0x5def6f];return _0x24fd88;};const _0x1913d9=a581_0x24fd;'use strict';const multer=require(_0x1913d9('0x11')),util=require(_0x1913d9('0xa')),path=require(_0x1913d9('0x12')),express=require(_0x1913d9('0x7')),router=express['Router'](),auth=require(_0x1913d9('0x15')),config=require(_0x1913d9('0x17')),controller=require('./sound.controller');router[_0x1913d9('0xc')]('/',auth['isAuthenticated'](),controller[_0x1913d9('0x2')]),router[_0x1913d9('0xc')](_0x1913d9('0x0'),auth[_0x1913d9('0x10')](),controller[_0x1913d9('0x6')]),router[_0x1913d9('0xc')](_0x1913d9('0x18'),auth['isAuthenticated'](),controller[_0x1913d9('0xb')]);const upload=multer({'storage':multer[_0x1913d9('0x3')]({'destination':function(_0x4eb2cd,_0x4431e7,_0x297e41){const _0x3d85b7=_0x1913d9;_0x297e41(null,path[_0x3d85b7('0x9')](config['root'],_0x3d85b7('0xd')));},'filename':function(_0x1ce18c,_0x736b54,_0x1ca373){const _0x5ca1c9=_0x1913d9;_0x736b54['originalname']=_0x736b54[_0x5ca1c9('0xf')][_0x5ca1c9('0xe')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x1ca373(null,util['format'](_0x5ca1c9('0x16'),path['basename'](_0x736b54['originalname'],path[_0x5ca1c9('0x4')](_0x736b54[_0x5ca1c9('0xf')])),Date['now'](),path['extname'](_0x736b54[_0x5ca1c9('0xf')])));}})});router['post']('/',upload[_0x1913d9('0x8')](_0x1913d9('0x14')),controller['create']),router[_0x1913d9('0x13')](_0x1913d9('0x0'),auth[_0x1913d9('0x10')](),controller['update']),router[_0x1913d9('0x5')](_0x1913d9('0x0'),auth[_0x1913d9('0x10')](),controller[_0x1913d9('0x5')]),module[_0x1913d9('0x1')]=router; \ No newline at end of file +const a581_0x5d07=['isAuthenticated','update','Router','./sound.controller','root','originalname','multer','/:id','extname','index','exports','show','join','diskStorage','download','create','/:id/download','get','delete','single','replace','format','file','basename'];(function(_0x546ce5,_0x5d07ce){const _0x126ddf=function(_0x4d66d7){while(--_0x4d66d7){_0x546ce5['push'](_0x546ce5['shift']());}};_0x126ddf(++_0x5d07ce);}(a581_0x5d07,0x1cb));const a581_0x126d=function(_0x546ce5,_0x5d07ce){_0x546ce5=_0x546ce5-0x0;let _0x126ddf=a581_0x5d07[_0x546ce5];return _0x126ddf;};const _0xf8199a=a581_0x126d;'use strict';const multer=require(_0xf8199a('0x3')),util=require('util'),path=require('path'),express=require('express'),router=express[_0xf8199a('0x17')](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require(_0xf8199a('0x0'));router['get']('/',auth[_0xf8199a('0x15')](),controller[_0xf8199a('0x6')]),router[_0xf8199a('0xe')](_0xf8199a('0x4'),auth['isAuthenticated'](),controller[_0xf8199a('0x8')]),router['get'](_0xf8199a('0xd'),auth[_0xf8199a('0x15')](),controller[_0xf8199a('0xb')]);const upload=multer({'storage':multer[_0xf8199a('0xa')]({'destination':function(_0x4d66d7,_0x1b050d,_0x3029e7){const _0x31d2cc=_0xf8199a;_0x3029e7(null,path[_0x31d2cc('0x9')](config[_0x31d2cc('0x1')],'files/sounds/original/'));},'filename':function(_0x1a8204,_0x1839fa,_0x335fbc){const _0x58ee04=_0xf8199a;_0x1839fa[_0x58ee04('0x2')]=_0x1839fa['originalname'][_0x58ee04('0x11')](/[+@&/\\#,+()$~%'":*?<>{}\s\\|]/g,'-'),_0x335fbc(null,util[_0x58ee04('0x12')]('%s-%s%s',path[_0x58ee04('0x14')](_0x1839fa[_0x58ee04('0x2')],path[_0x58ee04('0x5')](_0x1839fa[_0x58ee04('0x2')])),Date['now'](),path['extname'](_0x1839fa['originalname'])));}})});router['post']('/',upload[_0xf8199a('0x10')](_0xf8199a('0x13')),controller[_0xf8199a('0xc')]),router['put'](_0xf8199a('0x4'),auth[_0xf8199a('0x15')](),controller[_0xf8199a('0x16')]),router[_0xf8199a('0xf')]('/:id',auth[_0xf8199a('0x15')](),controller['delete']),module[_0xf8199a('0x7')]=router; \ No newline at end of file diff --git a/server/api/sound/sound.attributes.js b/server/api/sound/sound.attributes.js index 7e88979..6308efb 100644 --- a/server/api/sound/sound.attributes.js +++ b/server/api/sound/sound.attributes.js @@ -1 +1 @@ -const a582_0x2403=['exports','INTEGER','STRING','FLOAT','BIGINT'];(function(_0xd1f720,_0x240329){const _0x15b7bc=function(_0x4b0eb0){while(--_0x4b0eb0){_0xd1f720['push'](_0xd1f720['shift']());}};_0x15b7bc(++_0x240329);}(a582_0x2403,0x14c));const a582_0x15b7=function(_0xd1f720,_0x240329){_0xd1f720=_0xd1f720-0x0;let _0x15b7bc=a582_0x2403[_0xd1f720];return _0x15b7bc;};const _0x5124ba=a582_0x15b7;'use strict';const Sequelize=require('sequelize');module[_0x5124ba('0x3')]={'name':{'type':Sequelize['STRING'],'unique':'name','allowNull':![]},'save_name':{'type':Sequelize[_0x5124ba('0x0')]},'display_name':{'type':Sequelize['STRING'],'defaultValue':''},'description':{'type':Sequelize[_0x5124ba('0x0')]},'original_format':{'type':Sequelize[_0x5124ba('0x0')]},'original_duration':{'type':Sequelize[_0x5124ba('0x1')]},'original_sampleCount':{'type':Sequelize[_0x5124ba('0x2')]},'original_channelCount':{'type':Sequelize[_0x5124ba('0x4')]},'original_bitRate':{'type':Sequelize[_0x5124ba('0x2')]},'original_sampleRate':{'type':Sequelize[_0x5124ba('0x4')]},'converted_format':{'type':Sequelize['STRING']},'converted_duration':{'type':Sequelize[_0x5124ba('0x1')]},'converted_sampleCount':{'type':Sequelize[_0x5124ba('0x2')]},'converted_channelCount':{'type':Sequelize[_0x5124ba('0x4')]},'converted_bitRate':{'type':Sequelize[_0x5124ba('0x2')]},'converted_sampleRate':{'type':Sequelize[_0x5124ba('0x4')]}}; \ No newline at end of file +const a582_0x3c51=['STRING','INTEGER','BIGINT','FLOAT'];(function(_0x5545b7,_0x3c5113){const _0x6d7404=function(_0x597cf4){while(--_0x597cf4){_0x5545b7['push'](_0x5545b7['shift']());}};_0x6d7404(++_0x3c5113);}(a582_0x3c51,0x106));const a582_0x6d74=function(_0x5545b7,_0x3c5113){_0x5545b7=_0x5545b7-0x0;let _0x6d7404=a582_0x3c51[_0x5545b7];return _0x6d7404;};const _0x310014=a582_0x6d74;'use strict';const Sequelize=require('sequelize');module['exports']={'name':{'type':Sequelize[_0x310014('0x2')],'unique':'name','allowNull':![]},'save_name':{'type':Sequelize[_0x310014('0x2')]},'display_name':{'type':Sequelize[_0x310014('0x2')],'defaultValue':''},'description':{'type':Sequelize[_0x310014('0x2')]},'original_format':{'type':Sequelize[_0x310014('0x2')]},'original_duration':{'type':Sequelize[_0x310014('0x1')]},'original_sampleCount':{'type':Sequelize[_0x310014('0x0')]},'original_channelCount':{'type':Sequelize[_0x310014('0x3')]},'original_bitRate':{'type':Sequelize[_0x310014('0x0')]},'original_sampleRate':{'type':Sequelize[_0x310014('0x3')]},'converted_format':{'type':Sequelize[_0x310014('0x2')]},'converted_duration':{'type':Sequelize[_0x310014('0x1')]},'converted_sampleCount':{'type':Sequelize[_0x310014('0x0')]},'converted_channelCount':{'type':Sequelize[_0x310014('0x3')]},'converted_bitRate':{'type':Sequelize[_0x310014('0x0')]},'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 6f6999f..0901b9a 100644 --- a/server/api/sound/sound.controller.js +++ b/server/api/sound/sound.controller.js @@ -1 +1 @@ -const a583_0x1d66=['nolimit','keys','limit','converted_format','undefined','Sound\x20upload\x20filepath:\x20%s','Sound\x20not\x20found','chmodSync','get','path','src','original_sampleCount','error','filters','Sound\x20upload\x20destination:\x20%s','key','info','server/files/sounds/original','userProfileId','description','offset','body','includeAll','status','converted_duration','substring','api','VIRTUAL','merge','originalname','findAll','root','start','converted_bitRate','intersection','converted_sampleCount','fields','download','filename','original_bitRate','transcode','save_name','sox','catch','unlinkSync','pick','findOne','sampleCount','create','../../mysqldb','wav','stack','options','attributes','server/files/sounds/converted','rawAttributes','end','original_duration','name','fieldName','format','converted_channelCount','order','sort','user','filter','UserProfileSection','index','length','UserProfileResource','../../config/logger','sampleRate','update','0777','where','send','original_sampleRate','include','basename','map','bitRate','join','../../config/environment','set','delete','model','show','sequelize','duration','Sounds','params','lodash','channelCount','Unable\x20to\x20retrieve\x20the\x20current\x20user','json','count','extname','then','%s.%s','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Sound','query','file'];(function(_0x848928,_0x1d66f6){const _0x36ebb8=function(_0x2c02f4){while(--_0x2c02f4){_0x848928['push'](_0x848928['shift']());}};_0x36ebb8(++_0x1d66f6);}(a583_0x1d66,0x70));const a583_0x36eb=function(_0x848928,_0x1d66f6){_0x848928=_0x848928-0x0;let _0x36ebb8=a583_0x1d66[_0x848928];return _0x36ebb8;};const _0x454748=a583_0x36eb;'use strict';const util=require('util'),path=require(_0x454748('0x0')),sox=require(_0x454748('0x21')),fs=require('fs'),_=require(_0x454748('0x52')),qs=require('../../components/parsers/qs'),logger=require(_0x454748('0x3d'))(_0x454748('0x11')),config=require(_0x454748('0x49')),db=require(_0x454748('0x28'))['db'],{Op,ValidationError}=require(_0x454748('0x4e'));function respondWithResult(_0x2c02f4,_0x3c03b9){return _0x3c03b9=_0x3c03b9||0xc8,function(_0x49ff25){const _0x3e7bd0=a583_0x36eb;if(_0x49ff25)return _0x2c02f4[_0x3e7bd0('0xe')](_0x3c03b9)[_0x3e7bd0('0x55')](_0x49ff25);};}function respondWithFilteredResult(_0x2429cf,_0x517fb2){return function(_0x3eaae0){const _0x1a12ef=a583_0x36eb;if(_0x3eaae0){const _0x29577b=_0x3eaae0['count'],_0x335c74=_0x517fb2['offset'];let _0x4c21ca=_0x517fb2[_0x1a12ef('0xb')]+_0x517fb2[_0x1a12ef('0x60')],_0x54d445;return _0x4c21ca>=_0x29577b?(_0x4c21ca=_0x29577b,_0x54d445=0xc8):_0x54d445=0xce,_0x2429cf[_0x1a12ef('0xe')](_0x54d445),_0x2429cf[_0x1a12ef('0x4a')]('Content-Range',_0x335c74+'-'+_0x4c21ca+'/'+_0x29577b)[_0x1a12ef('0x55')](_0x3eaae0);}return null;};}function saveUpdates(_0x4e9788){return function(_0x41c84a){const _0x2a19f5=a583_0x36eb;if(_0x41c84a)return _0x41c84a[_0x2a19f5('0x3f')](_0x4e9788)[_0x2a19f5('0x58')](function(_0x2777af){return _0x2777af;});return null;};}function handleEntityNotFound(_0x5914b3){return function(_0x5c7fba){return!_0x5c7fba&&_0x5914b3['sendStatus'](0x194),_0x5c7fba;};}function handleError(_0x4d5894,_0x53d031){return _0x53d031=_0x53d031||0x1f4,function(_0x4645bf){const _0x4302d8=a583_0x36eb;logger[_0x4302d8('0x3')](_0x4645bf[_0x4302d8('0x2a')]),_0x4645bf[_0x4302d8('0x31')]&&delete _0x4645bf[_0x4302d8('0x31')],_0x4d5894[_0x4302d8('0xe')](_0x53d031)['send'](_0x4645bf);};}exports[_0x454748('0x3a')]=function(_0x36be1f,_0x168c48){const _0x5143bc=_0x454748;let _0xf070f2={};const _0x277385={},_0x27418d={'count':0x0,'rows':[]},_0x928225=_[_0x5143bc('0x46')](db[_0x5143bc('0x5b')][_0x5143bc('0x2e')],function(_0x3f2e69){const _0x4c76cd=_0x5143bc;return{'name':_0x3f2e69[_0x4c76cd('0x32')],'type':_0x3f2e69['type'][_0x4c76cd('0x6')]};});_0x277385[_0x5143bc('0x4c')]=_[_0x5143bc('0x46')](_0x928225,_0x5143bc('0x31')),_0x277385[_0x5143bc('0x5c')]=_[_0x5143bc('0x5f')](_0x36be1f[_0x5143bc('0x5c')]),_0x277385[_0x5143bc('0x4')]=_[_0x5143bc('0x19')](_0x277385[_0x5143bc('0x4c')],_0x277385[_0x5143bc('0x5c')]),_0xf070f2[_0x5143bc('0x2c')]=_[_0x5143bc('0x19')](_0x277385[_0x5143bc('0x4c')],qs[_0x5143bc('0x1b')](_0x36be1f[_0x5143bc('0x5c')][_0x5143bc('0x1b')])),_0xf070f2[_0x5143bc('0x2c')]=_0xf070f2[_0x5143bc('0x2c')][_0x5143bc('0x3b')]?_0xf070f2[_0x5143bc('0x2c')]:_0x277385[_0x5143bc('0x4c')];typeof _0x36be1f[_0x5143bc('0x5c')][_0x5143bc('0x5e')]===_0x5143bc('0x62')&&(_0xf070f2[_0x5143bc('0x60')]=qs[_0x5143bc('0x60')](_0x36be1f[_0x5143bc('0x5c')][_0x5143bc('0x60')]),_0xf070f2[_0x5143bc('0xb')]=qs[_0x5143bc('0xb')](_0x36be1f[_0x5143bc('0x5c')]['offset']));_0xf070f2[_0x5143bc('0x35')]=qs[_0x5143bc('0x36')](_0x36be1f[_0x5143bc('0x5c')][_0x5143bc('0x36')]),_0xf070f2['where']=qs['filters'](_[_0x5143bc('0x24')](_0x36be1f[_0x5143bc('0x5c')],_0x277385[_0x5143bc('0x4')]),_0x928225);_0x36be1f[_0x5143bc('0x5c')][_0x5143bc('0x38')]&&(_0xf070f2['where']=_[_0x5143bc('0x13')](_0xf070f2[_0x5143bc('0x41')],{[Op['or']]:_[_0x5143bc('0x46')](_0x928225,function(_0x21276a){const _0x15873d=_0x5143bc;if(_0x21276a['type']!==_0x15873d('0x12')){const _0x4ac194={};return _0x4ac194[_0x21276a[_0x15873d('0x31')]]={[Op['like']]:'%'+_0x36be1f[_0x15873d('0x5c')]['filter']+'%'},_0x4ac194;}})}));_0xf070f2=_['merge']({},_0xf070f2,_0x36be1f[_0x5143bc('0x2b')]);const _0x1f09c0={'where':_0xf070f2[_0x5143bc('0x41')]};return db[_0x5143bc('0x5b')][_0x5143bc('0x56')](_0x1f09c0)[_0x5143bc('0x58')](function(_0x3dd924){const _0x38d5f0=_0x5143bc;return _0x27418d[_0x38d5f0('0x56')]=_0x3dd924,_0x36be1f['query'][_0x38d5f0('0xd')]&&(_0xf070f2[_0x38d5f0('0x44')]=[{'all':!![]}]),db[_0x38d5f0('0x5b')][_0x38d5f0('0x15')](_0xf070f2);})[_0x5143bc('0x58')](function(_0x4013d5){return _0x27418d['rows']=_0x4013d5,_0x27418d;})[_0x5143bc('0x58')](respondWithFilteredResult(_0x168c48,_0xf070f2))[_0x5143bc('0x22')](handleError(_0x168c48,null));},exports[_0x454748('0x4d')]=function(_0x130c66,_0x2979d7){const _0x5c7a0d=_0x454748;let _0x1cb48={'raw':!![],'where':{'id':_0x130c66['params']['id']}};const _0xed04ae={};return _0xed04ae[_0x5c7a0d('0x4c')]=_['keys'](db[_0x5c7a0d('0x5b')][_0x5c7a0d('0x2e')]),_0xed04ae[_0x5c7a0d('0x5c')]=_[_0x5c7a0d('0x5f')](_0x130c66[_0x5c7a0d('0x5c')]),_0xed04ae[_0x5c7a0d('0x4')]=_[_0x5c7a0d('0x19')](_0xed04ae['model'],_0xed04ae[_0x5c7a0d('0x5c')]),_0x1cb48[_0x5c7a0d('0x2c')]=_[_0x5c7a0d('0x19')](_0xed04ae[_0x5c7a0d('0x4c')],qs['fields'](_0x130c66[_0x5c7a0d('0x5c')][_0x5c7a0d('0x1b')])),_0x1cb48['attributes']=_0x1cb48[_0x5c7a0d('0x2c')]['length']?_0x1cb48[_0x5c7a0d('0x2c')]:_0xed04ae[_0x5c7a0d('0x4c')],_0x130c66[_0x5c7a0d('0x5c')][_0x5c7a0d('0xd')]&&(_0x1cb48[_0x5c7a0d('0x44')]=[{'all':!![]}]),_0x1cb48=_[_0x5c7a0d('0x13')]({},_0x1cb48,_0x130c66[_0x5c7a0d('0x2b')]),db[_0x5c7a0d('0x5b')]['findOne'](_0x1cb48)[_0x5c7a0d('0x58')](handleEntityNotFound(_0x2979d7,null))[_0x5c7a0d('0x58')](respondWithResult(_0x2979d7,null))['catch'](handleError(_0x2979d7,null));},exports[_0x454748('0x1c')]=function(_0x4a106f,_0x5d4e23){const _0x268416=_0x454748;return db[_0x268416('0x5b')][_0x268416('0x25')]({'where':{'id':_0x4a106f['params']['id']},'attributes':[_0x268416('0x31'),_0x268416('0x20'),_0x268416('0x61')],'raw':!![]})[_0x268416('0x58')](handleEntityNotFound(_0x5d4e23,null))[_0x268416('0x58')](function(_0x148cfe){const _0x350a7e=_0x268416;if(_0x148cfe){if(!fs['existsSync'](path[_0x350a7e('0x48')](config[_0x350a7e('0x16')],_0x350a7e('0x2d'),_0x148cfe['save_name']+'.'+_0x148cfe[_0x350a7e('0x61')])))throw new ValidationError(_0x350a7e('0x64'));return _0x5d4e23[_0x350a7e('0x1c')](path[_0x350a7e('0x48')](config[_0x350a7e('0x16')],_0x350a7e('0x2d'),util['format']('%s.%s',_0x148cfe[_0x350a7e('0x20')],_0x148cfe[_0x350a7e('0x61')])),util[_0x350a7e('0x33')](_0x350a7e('0x59'),_0x148cfe[_0x350a7e('0x31')],_0x148cfe[_0x350a7e('0x61')]));}return null;})[_0x268416('0x22')](handleError(_0x5d4e23,null));},exports[_0x454748('0x27')]=function(_0x5e308a,_0x52ba2e){const _0x59409e=_0x454748,_0x125698={'name':path[_0x59409e('0x45')](_0x5e308a[_0x59409e('0x5d')][_0x59409e('0x14')],path['extname'](_0x5e308a[_0x59409e('0x5d')][_0x59409e('0x14')])),'save_name':path['basename'](_0x5e308a['file'][_0x59409e('0x1d')],path[_0x59409e('0x57')](_0x5e308a[_0x59409e('0x5d')][_0x59409e('0x1d')])),'original_format':path[_0x59409e('0x57')](_0x5e308a[_0x59409e('0x5d')][_0x59409e('0x14')])[_0x59409e('0x10')](0x1),'converted_format':_0x59409e('0x29')},_0x3e10cc=path[_0x59409e('0x48')](config[_0x59409e('0x16')],_0x59409e('0x8'),_0x5e308a[_0x59409e('0x5d')]['filename']),_0x2ba259=path[_0x59409e('0x48')](config[_0x59409e('0x16')],_0x59409e('0x2d'),util[_0x59409e('0x33')]('%s.%s',path[_0x59409e('0x45')](_0x5e308a[_0x59409e('0x5d')][_0x59409e('0x1d')],path[_0x59409e('0x57')](_0x5e308a[_0x59409e('0x5d')]['filename'])),_0x125698[_0x59409e('0x61')]));logger[_0x59409e('0x7')](_0x59409e('0x63'),_0x3e10cc),logger['info'](_0x59409e('0x5'),_0x2ba259);try{fs['chmodSync'](_0x3e10cc,parseInt(_0x59409e('0x40'),0x8));const _0x44da49=sox[_0x59409e('0x1f')](_0x3e10cc,_0x2ba259,{'sampleRate':0x1f40,'format':_0x59409e('0x29'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x44da49['on']('error',function(_0x391a6c){const _0x431b3=_0x59409e;fs[_0x431b3('0x23')](_0x3e10cc),_0x52ba2e[_0x431b3('0xe')](0x1f4)[_0x431b3('0x42')](_0x391a6c);}),_0x44da49['on'](_0x59409e('0x1'),function(_0x502971){const _0x38cab5=_0x59409e;_0x125698[_0x38cab5('0x30')]=isNaN(_0x502971[_0x38cab5('0x4f')])?null:_0x502971[_0x38cab5('0x4f')]*0x3e8,_0x125698[_0x38cab5('0x2')]=isNaN(_0x502971['sampleCount'])?null:_0x502971[_0x38cab5('0x26')],_0x125698['original_channelCount']=isNaN(_0x502971[_0x38cab5('0x53')])?null:_0x502971[_0x38cab5('0x53')],_0x125698[_0x38cab5('0x1e')]=isNaN(_0x502971[_0x38cab5('0x47')])?null:_0x502971[_0x38cab5('0x47')],_0x125698[_0x38cab5('0x43')]=isNaN(_0x502971[_0x38cab5('0x3e')])?null:_0x502971[_0x38cab5('0x3e')];}),_0x44da49['on']('dest',function(_0x41620b){const _0x27f595=_0x59409e;_0x125698[_0x27f595('0xf')]=isNaN(_0x41620b[_0x27f595('0x4f')])?null:_0x41620b[_0x27f595('0x4f')]*0x3e8,_0x125698[_0x27f595('0x1a')]=isNaN(_0x41620b['sampleCount'])?null:_0x41620b['sampleCount'],_0x125698[_0x27f595('0x34')]=isNaN(_0x41620b[_0x27f595('0x53')])?null:_0x41620b[_0x27f595('0x53')],_0x125698[_0x27f595('0x18')]=isNaN(_0x41620b[_0x27f595('0x47')])?null:_0x41620b[_0x27f595('0x47')],_0x125698['converted_sampleRate']=isNaN(_0x41620b[_0x27f595('0x3e')])?null:_0x41620b[_0x27f595('0x3e')];}),_0x44da49['on'](_0x59409e('0x2f'),function(){const _0x16380a=_0x59409e;return fs[_0x16380a('0x65')](_0x2ba259,parseInt(_0x16380a('0x40'),0x8)),db[_0x16380a('0x5b')]['create'](_0x125698)[_0x16380a('0x58')](function(_0x2e7b2a){const _0x49a0a5=_0x16380a,_0x5cdf97={'role':_0x5e308a['body']['role'],'userProfileId':_0x5e308a[_0x49a0a5('0xc')][_0x49a0a5('0x9')]};if(!_0x5cdf97)throw new Error(_0x49a0a5('0x54'));if(_0x5cdf97['role']===_0x49a0a5('0x37')){const _0x3d13cc=_0x2e7b2a[_0x49a0a5('0x66')]({'plain':!![]});return db[_0x49a0a5('0x39')][_0x49a0a5('0x25')]({'where':{'name':_0x49a0a5('0x50'),'userProfileId':_0x5cdf97[_0x49a0a5('0x9')]},'raw':!![]})[_0x49a0a5('0x58')](function(_0x4149be){const _0x1f9853=_0x49a0a5;return _0x4149be&&_0x4149be['autoAssociation']===0x0?db[_0x1f9853('0x3c')]['create']({'name':_0x3d13cc[_0x1f9853('0x31')],'resourceId':_0x3d13cc['id'],'type':_0x4149be[_0x1f9853('0x31')],'sectionId':_0x4149be['id']},{})['then'](function(){return _0x2e7b2a;}):_0x2e7b2a;})[_0x49a0a5('0x22')](function(_0x5079eb){const _0x2ea1e2=_0x49a0a5;logger['error'](_0x2ea1e2('0x5a'),_0x5079eb);throw _0x5079eb;});}return _0x2e7b2a;})[_0x16380a('0x58')](respondWithResult(_0x52ba2e,null))['catch'](handleError(_0x52ba2e,null));}),_0x44da49[_0x59409e('0x17')]();}catch(_0x45a832){_0x52ba2e[_0x59409e('0xe')](0x1f4)['send'](_0x45a832);}},exports['update']=function(_0x1e90ed,_0x44e6c8){const _0x8613c5=_0x454748;return db[_0x8613c5('0x5b')][_0x8613c5('0x25')]({'where':{'id':_0x1e90ed['params']['id']}})[_0x8613c5('0x58')](handleEntityNotFound(_0x44e6c8,null))[_0x8613c5('0x58')](saveUpdates(_['pick'](_0x1e90ed[_0x8613c5('0xc')],[_0x8613c5('0x31'),_0x8613c5('0xa')]),null))['then'](respondWithResult(_0x44e6c8,null))['catch'](handleError(_0x44e6c8,null));},exports[_0x454748('0x4b')]=function(_0x4943c5,_0x593a6b){const _0x2a7b86=_0x454748;return db[_0x2a7b86('0x5b')][_0x2a7b86('0x25')]({'where':{'id':_0x4943c5[_0x2a7b86('0x51')]['id']}})[_0x2a7b86('0x58')](function(_0x2ae5f6){if(_0x2ae5f6)return _0x2ae5f6['destroy']();})[_0x2a7b86('0x58')](function(_0x373a6e){const _0x5c299f=_0x2a7b86,_0x5b9b14=path[_0x5c299f('0x48')](config['root'],'server/files/sounds/original',util[_0x5c299f('0x33')](_0x5c299f('0x59'),_0x373a6e[_0x5c299f('0x20')],_0x373a6e['original_format'])),_0x1b80fb=path[_0x5c299f('0x48')](config[_0x5c299f('0x16')],_0x5c299f('0x2d'),util[_0x5c299f('0x33')](_0x5c299f('0x59'),_0x373a6e['save_name'],_0x373a6e['converted_format']));return fs[_0x5c299f('0x23')](_0x5b9b14),fs['unlinkSync'](_0x1b80fb),_0x373a6e;})[_0x2a7b86('0x58')](function(_0x3254c9){const _0xa20903=_0x2a7b86;if(_0x3254c9)return _0x593a6b[_0xa20903('0xe')](0xcc)[_0xa20903('0x2f')]();})[_0x2a7b86('0x58')](handleEntityNotFound(_0x593a6b,null))['catch'](handleError(_0x593a6b,null));}; \ No newline at end of file +const a583_0x44c1=['bitRate','0777','body','original_sampleRate','original_sampleCount','filters','like','catch','error','Sound\x20upload\x20destination:\x20%s','params','Sounds','includeAll','findOne','status','filename','where','key','stack','role','sendStatus','intersection','rawAttributes','sampleCount','pick','UserProfileSection','../../components/parsers/qs','fields','file','merge','../../mysqldb','sequelize','keys','model','filter','save_name','info','query','limit','undefined','sampleRate','set','update','count','substring','Sound\x20upload\x20filepath:\x20%s','Content-Range','order','include','then','%s.%s','userProfileId','duration','Sound\x20not\x20found','offset','channelCount','original_duration','name','converted_format','basename','create','Sound','transcode','root','dest','unlinkSync','type','server/files/sounds/converted','length','attributes','path','show','original_channelCount','server/files/sounds/original','converted_sampleRate','get','util','wav','join','map','originalname','fieldName','json','chmodSync','format','extname','send','download','options'];(function(_0xf720d7,_0x44c175){const _0x175607=function(_0x53ce4c){while(--_0x53ce4c){_0xf720d7['push'](_0xf720d7['shift']());}};_0x175607(++_0x44c175);}(a583_0x44c1,0x17f));const a583_0x1756=function(_0xf720d7,_0x44c175){_0xf720d7=_0xf720d7-0x0;let _0x175607=a583_0x44c1[_0xf720d7];return _0x175607;};const _0x388c54=a583_0x1756;'use strict';const util=require(_0x388c54('0x31')),path=require(_0x388c54('0x2b')),sox=require('sox'),fs=require('fs'),_=require('lodash'),qs=require(_0x388c54('0x58')),logger=require('../../config/logger')('api'),config=require('../../config/environment'),db=require(_0x388c54('0x3'))['db'],{Op,ValidationError}=require(_0x388c54('0x4'));function respondWithResult(_0x53ce4c,_0xa4ff25){return _0xa4ff25=_0xa4ff25||0xc8,function(_0x127e73){const _0x47c105=a583_0x1756;if(_0x127e73)return _0x53ce4c[_0x47c105('0x4c')](_0xa4ff25)[_0x47c105('0x37')](_0x127e73);};}function respondWithFilteredResult(_0x5cf12c,_0xf37d3e){return function(_0x4a045e){const _0xef2b63=a583_0x1756;if(_0x4a045e){const _0x194d04=_0x4a045e[_0xef2b63('0x10')],_0x47d7fd=_0xf37d3e[_0xef2b63('0x1b')];let _0x3ac2ac=_0xf37d3e[_0xef2b63('0x1b')]+_0xf37d3e['limit'],_0xe7cc99;return _0x3ac2ac>=_0x194d04?(_0x3ac2ac=_0x194d04,_0xe7cc99=0xc8):_0xe7cc99=0xce,_0x5cf12c[_0xef2b63('0x4c')](_0xe7cc99),_0x5cf12c[_0xef2b63('0xe')](_0xef2b63('0x13'),_0x47d7fd+'-'+_0x3ac2ac+'/'+_0x194d04)[_0xef2b63('0x37')](_0x4a045e);}return null;};}function saveUpdates(_0x11385b){return function(_0x28f057){const _0x142ed1=a583_0x1756;if(_0x28f057)return _0x28f057[_0x142ed1('0xf')](_0x11385b)[_0x142ed1('0x16')](function(_0x1db157){return _0x1db157;});return null;};}function handleEntityNotFound(_0x2957fc){return function(_0x1885e3){const _0x495489=a583_0x1756;return!_0x1885e3&&_0x2957fc[_0x495489('0x52')](0x194),_0x1885e3;};}function handleError(_0x352ad3,_0x25e452){return _0x25e452=_0x25e452||0x1f4,function(_0x3f9eda){const _0x12ecb5=a583_0x1756;logger[_0x12ecb5('0x46')](_0x3f9eda[_0x12ecb5('0x50')]),_0x3f9eda['name']&&delete _0x3f9eda[_0x12ecb5('0x1e')],_0x352ad3[_0x12ecb5('0x4c')](_0x25e452)[_0x12ecb5('0x3b')](_0x3f9eda);};}exports['index']=function(_0x1db88d,_0x350f05){const _0x25b99b=_0x388c54;let _0x511af0={};const _0x250a06={},_0x149081={'count':0x0,'rows':[]},_0x16aa01=_[_0x25b99b('0x34')](db[_0x25b99b('0x22')][_0x25b99b('0x54')],function(_0x27ac33){const _0x3444e0=_0x25b99b;return{'name':_0x27ac33[_0x3444e0('0x36')],'type':_0x27ac33['type'][_0x3444e0('0x4f')]};});_0x250a06[_0x25b99b('0x6')]=_['map'](_0x16aa01,_0x25b99b('0x1e')),_0x250a06[_0x25b99b('0xa')]=_[_0x25b99b('0x5')](_0x1db88d[_0x25b99b('0xa')]),_0x250a06['filters']=_[_0x25b99b('0x53')](_0x250a06[_0x25b99b('0x6')],_0x250a06[_0x25b99b('0xa')]),_0x511af0[_0x25b99b('0x2a')]=_['intersection'](_0x250a06['model'],qs[_0x25b99b('0x0')](_0x1db88d[_0x25b99b('0xa')][_0x25b99b('0x0')])),_0x511af0[_0x25b99b('0x2a')]=_0x511af0[_0x25b99b('0x2a')][_0x25b99b('0x29')]?_0x511af0[_0x25b99b('0x2a')]:_0x250a06[_0x25b99b('0x6')];typeof _0x1db88d[_0x25b99b('0xa')]['nolimit']===_0x25b99b('0xc')&&(_0x511af0[_0x25b99b('0xb')]=qs[_0x25b99b('0xb')](_0x1db88d['query'][_0x25b99b('0xb')]),_0x511af0[_0x25b99b('0x1b')]=qs[_0x25b99b('0x1b')](_0x1db88d[_0x25b99b('0xa')][_0x25b99b('0x1b')]));_0x511af0[_0x25b99b('0x14')]=qs['sort'](_0x1db88d['query']['sort']),_0x511af0[_0x25b99b('0x4e')]=qs['filters'](_['pick'](_0x1db88d[_0x25b99b('0xa')],_0x250a06[_0x25b99b('0x43')]),_0x16aa01);_0x1db88d[_0x25b99b('0xa')][_0x25b99b('0x7')]&&(_0x511af0[_0x25b99b('0x4e')]=_['merge'](_0x511af0['where'],{[Op['or']]:_[_0x25b99b('0x34')](_0x16aa01,function(_0xd7609){const _0x20dbe1=_0x25b99b;if(_0xd7609[_0x20dbe1('0x27')]!=='VIRTUAL'){const _0x379aa4={};return _0x379aa4[_0xd7609['name']]={[Op[_0x20dbe1('0x44')]]:'%'+_0x1db88d['query'][_0x20dbe1('0x7')]+'%'},_0x379aa4;}})}));_0x511af0=_['merge']({},_0x511af0,_0x1db88d[_0x25b99b('0x3d')]);const _0xeb8981={'where':_0x511af0['where']};return db[_0x25b99b('0x22')][_0x25b99b('0x10')](_0xeb8981)['then'](function(_0x418add){const _0x23d994=_0x25b99b;return _0x149081['count']=_0x418add,_0x1db88d['query'][_0x23d994('0x4a')]&&(_0x511af0[_0x23d994('0x15')]=[{'all':!![]}]),db[_0x23d994('0x22')]['findAll'](_0x511af0);})[_0x25b99b('0x16')](function(_0x2ccb20){return _0x149081['rows']=_0x2ccb20,_0x149081;})['then'](respondWithFilteredResult(_0x350f05,_0x511af0))[_0x25b99b('0x45')](handleError(_0x350f05,null));},exports[_0x388c54('0x2c')]=function(_0x5441d1,_0x3b22fe){const _0x483c35=_0x388c54;let _0x317425={'raw':!![],'where':{'id':_0x5441d1['params']['id']}};const _0x53600b={};return _0x53600b[_0x483c35('0x6')]=_[_0x483c35('0x5')](db['Sound'][_0x483c35('0x54')]),_0x53600b[_0x483c35('0xa')]=_['keys'](_0x5441d1['query']),_0x53600b[_0x483c35('0x43')]=_[_0x483c35('0x53')](_0x53600b[_0x483c35('0x6')],_0x53600b[_0x483c35('0xa')]),_0x317425[_0x483c35('0x2a')]=_['intersection'](_0x53600b['model'],qs[_0x483c35('0x0')](_0x5441d1[_0x483c35('0xa')][_0x483c35('0x0')])),_0x317425[_0x483c35('0x2a')]=_0x317425[_0x483c35('0x2a')][_0x483c35('0x29')]?_0x317425[_0x483c35('0x2a')]:_0x53600b[_0x483c35('0x6')],_0x5441d1[_0x483c35('0xa')][_0x483c35('0x4a')]&&(_0x317425[_0x483c35('0x15')]=[{'all':!![]}]),_0x317425=_[_0x483c35('0x2')]({},_0x317425,_0x5441d1[_0x483c35('0x3d')]),db['Sound'][_0x483c35('0x4b')](_0x317425)['then'](handleEntityNotFound(_0x3b22fe,null))['then'](respondWithResult(_0x3b22fe,null))[_0x483c35('0x45')](handleError(_0x3b22fe,null));},exports[_0x388c54('0x3c')]=function(_0x377ff3,_0x121242){const _0xd675f2=_0x388c54;return db[_0xd675f2('0x22')][_0xd675f2('0x4b')]({'where':{'id':_0x377ff3[_0xd675f2('0x48')]['id']},'attributes':[_0xd675f2('0x1e'),'save_name',_0xd675f2('0x1f')],'raw':!![]})[_0xd675f2('0x16')](handleEntityNotFound(_0x121242,null))[_0xd675f2('0x16')](function(_0x3af8d3){const _0x54c04d=_0xd675f2;if(_0x3af8d3){if(!fs['existsSync'](path[_0x54c04d('0x33')](config[_0x54c04d('0x24')],_0x54c04d('0x28'),_0x3af8d3[_0x54c04d('0x8')]+'.'+_0x3af8d3[_0x54c04d('0x1f')])))throw new ValidationError(_0x54c04d('0x1a'));return _0x121242[_0x54c04d('0x3c')](path[_0x54c04d('0x33')](config[_0x54c04d('0x24')],_0x54c04d('0x28'),util['format'](_0x54c04d('0x17'),_0x3af8d3[_0x54c04d('0x8')],_0x3af8d3[_0x54c04d('0x1f')])),util[_0x54c04d('0x39')](_0x54c04d('0x17'),_0x3af8d3[_0x54c04d('0x1e')],_0x3af8d3[_0x54c04d('0x1f')]));}return null;})[_0xd675f2('0x45')](handleError(_0x121242,null));},exports[_0x388c54('0x21')]=function(_0x2b7737,_0x5750c8){const _0x1655d7=_0x388c54,_0x4a59fb={'name':path[_0x1655d7('0x20')](_0x2b7737[_0x1655d7('0x1')][_0x1655d7('0x35')],path[_0x1655d7('0x3a')](_0x2b7737[_0x1655d7('0x1')][_0x1655d7('0x35')])),'save_name':path[_0x1655d7('0x20')](_0x2b7737['file'][_0x1655d7('0x4d')],path[_0x1655d7('0x3a')](_0x2b7737[_0x1655d7('0x1')]['filename'])),'original_format':path['extname'](_0x2b7737['file'][_0x1655d7('0x35')])[_0x1655d7('0x11')](0x1),'converted_format':_0x1655d7('0x32')},_0x351fa2=path[_0x1655d7('0x33')](config[_0x1655d7('0x24')],_0x1655d7('0x2e'),_0x2b7737[_0x1655d7('0x1')][_0x1655d7('0x4d')]),_0x20fe02=path[_0x1655d7('0x33')](config[_0x1655d7('0x24')],_0x1655d7('0x28'),util['format'](_0x1655d7('0x17'),path['basename'](_0x2b7737['file'][_0x1655d7('0x4d')],path[_0x1655d7('0x3a')](_0x2b7737[_0x1655d7('0x1')][_0x1655d7('0x4d')])),_0x4a59fb[_0x1655d7('0x1f')]));logger['info'](_0x1655d7('0x12'),_0x351fa2),logger[_0x1655d7('0x9')](_0x1655d7('0x47'),_0x20fe02);try{fs['chmodSync'](_0x351fa2,parseInt(_0x1655d7('0x3f'),0x8));const _0x155192=sox[_0x1655d7('0x23')](_0x351fa2,_0x20fe02,{'sampleRate':0x1f40,'format':_0x1655d7('0x32'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x155192['on'](_0x1655d7('0x46'),function(_0x275b7a){const _0x185f44=_0x1655d7;fs[_0x185f44('0x26')](_0x351fa2),_0x5750c8['status'](0x1f4)['send'](_0x275b7a);}),_0x155192['on']('src',function(_0x6a4248){const _0x4032b8=_0x1655d7;_0x4a59fb[_0x4032b8('0x1d')]=isNaN(_0x6a4248['duration'])?null:_0x6a4248[_0x4032b8('0x19')]*0x3e8,_0x4a59fb[_0x4032b8('0x42')]=isNaN(_0x6a4248[_0x4032b8('0x55')])?null:_0x6a4248['sampleCount'],_0x4a59fb[_0x4032b8('0x2d')]=isNaN(_0x6a4248[_0x4032b8('0x1c')])?null:_0x6a4248[_0x4032b8('0x1c')],_0x4a59fb['original_bitRate']=isNaN(_0x6a4248['bitRate'])?null:_0x6a4248[_0x4032b8('0x3e')],_0x4a59fb[_0x4032b8('0x41')]=isNaN(_0x6a4248['sampleRate'])?null:_0x6a4248['sampleRate'];}),_0x155192['on'](_0x1655d7('0x25'),function(_0x1d1a9a){const _0x4054c9=_0x1655d7;_0x4a59fb['converted_duration']=isNaN(_0x1d1a9a[_0x4054c9('0x19')])?null:_0x1d1a9a[_0x4054c9('0x19')]*0x3e8,_0x4a59fb['converted_sampleCount']=isNaN(_0x1d1a9a['sampleCount'])?null:_0x1d1a9a['sampleCount'],_0x4a59fb['converted_channelCount']=isNaN(_0x1d1a9a['channelCount'])?null:_0x1d1a9a[_0x4054c9('0x1c')],_0x4a59fb['converted_bitRate']=isNaN(_0x1d1a9a[_0x4054c9('0x3e')])?null:_0x1d1a9a[_0x4054c9('0x3e')],_0x4a59fb[_0x4054c9('0x2f')]=isNaN(_0x1d1a9a[_0x4054c9('0xd')])?null:_0x1d1a9a[_0x4054c9('0xd')];}),_0x155192['on']('end',function(){const _0x66130b=_0x1655d7;return fs[_0x66130b('0x38')](_0x20fe02,parseInt(_0x66130b('0x3f'),0x8)),db[_0x66130b('0x22')][_0x66130b('0x21')](_0x4a59fb)[_0x66130b('0x16')](function(_0x2bf208){const _0x39e1bf=_0x66130b,_0x42e4b1={'role':_0x2b7737[_0x39e1bf('0x40')][_0x39e1bf('0x51')],'userProfileId':_0x2b7737[_0x39e1bf('0x40')][_0x39e1bf('0x18')]};if(!_0x42e4b1)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x42e4b1[_0x39e1bf('0x51')]==='user'){const _0x593353=_0x2bf208[_0x39e1bf('0x30')]({'plain':!![]});return db[_0x39e1bf('0x57')][_0x39e1bf('0x4b')]({'where':{'name':_0x39e1bf('0x49'),'userProfileId':_0x42e4b1[_0x39e1bf('0x18')]},'raw':!![]})[_0x39e1bf('0x16')](function(_0x192da1){const _0x2125ab=_0x39e1bf;return _0x192da1&&_0x192da1['autoAssociation']===0x0?db['UserProfileResource']['create']({'name':_0x593353['name'],'resourceId':_0x593353['id'],'type':_0x192da1[_0x2125ab('0x1e')],'sectionId':_0x192da1['id']},{})['then'](function(){return _0x2bf208;}):_0x2bf208;})[_0x39e1bf('0x45')](function(_0x503869){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x503869);throw _0x503869;});}return _0x2bf208;})[_0x66130b('0x16')](respondWithResult(_0x5750c8,null))['catch'](handleError(_0x5750c8,null));}),_0x155192['start']();}catch(_0x218cbc){_0x5750c8['status'](0x1f4)['send'](_0x218cbc);}},exports[_0x388c54('0xf')]=function(_0x43df87,_0x716048){const _0x3b6b4e=_0x388c54;return db['Sound'][_0x3b6b4e('0x4b')]({'where':{'id':_0x43df87[_0x3b6b4e('0x48')]['id']}})['then'](handleEntityNotFound(_0x716048,null))[_0x3b6b4e('0x16')](saveUpdates(_[_0x3b6b4e('0x56')](_0x43df87[_0x3b6b4e('0x40')],[_0x3b6b4e('0x1e'),'description']),null))[_0x3b6b4e('0x16')](respondWithResult(_0x716048,null))[_0x3b6b4e('0x45')](handleError(_0x716048,null));},exports['delete']=function(_0x3eb7bc,_0x51ac2f){const _0x31ff76=_0x388c54;return db[_0x31ff76('0x22')][_0x31ff76('0x4b')]({'where':{'id':_0x3eb7bc['params']['id']}})[_0x31ff76('0x16')](function(_0x17d102){if(_0x17d102)return _0x17d102['destroy']();})[_0x31ff76('0x16')](function(_0x186d1e){const _0xd6400f=_0x31ff76,_0x1a07b3=path[_0xd6400f('0x33')](config[_0xd6400f('0x24')],'server/files/sounds/original',util[_0xd6400f('0x39')](_0xd6400f('0x17'),_0x186d1e['save_name'],_0x186d1e['original_format'])),_0x5b0867=path[_0xd6400f('0x33')](config[_0xd6400f('0x24')],_0xd6400f('0x28'),util['format'](_0xd6400f('0x17'),_0x186d1e[_0xd6400f('0x8')],_0x186d1e[_0xd6400f('0x1f')]));return fs[_0xd6400f('0x26')](_0x1a07b3),fs['unlinkSync'](_0x5b0867),_0x186d1e;})[_0x31ff76('0x16')](function(_0x13595c){const _0x34e99e=_0x31ff76;if(_0x13595c)return _0x51ac2f[_0x34e99e('0x4c')](0xcc)['end']();})[_0x31ff76('0x16')](handleEntityNotFound(_0x51ac2f,null))[_0x31ff76('0x45')](handleError(_0x51ac2f,null));}; \ No newline at end of file diff --git a/server/api/sound/sound.model.js b/server/api/sound/sound.model.js index 6a47107..2c8d799 100644 --- a/server/api/sound/sound.model.js +++ b/server/api/sound/sound.model.js @@ -1 +1 @@ -const a584_0x456b=['define','Sound','./sound.attributes'];(function(_0x269457,_0x456b4e){const _0x52dbaf=function(_0x11064b){while(--_0x11064b){_0x269457['push'](_0x269457['shift']());}};_0x52dbaf(++_0x456b4e);}(a584_0x456b,0xee));const a584_0x52db=function(_0x269457,_0x456b4e){_0x269457=_0x269457-0x0;let _0x52dbaf=a584_0x456b[_0x269457];return _0x52dbaf;};const _0x5a5c44=a584_0x52db;'use strict';const attributes=require(_0x5a5c44('0x1'));module['exports']=function(_0x11064b){const _0x607b7e=_0x5a5c44,_0x4c5914=_0x11064b[_0x607b7e('0x2')](_0x607b7e('0x0'),attributes,{'tableName':'tools_sounds','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c5914;}; \ No newline at end of file +const a584_0x2db5=['./sound.attributes','Sound','exports','tools_sounds'];(function(_0x5b1a8a,_0x2db5ec){const _0x35f889=function(_0x476b42){while(--_0x476b42){_0x5b1a8a['push'](_0x5b1a8a['shift']());}};_0x35f889(++_0x2db5ec);}(a584_0x2db5,0x1a5));const a584_0x35f8=function(_0x5b1a8a,_0x2db5ec){_0x5b1a8a=_0x5b1a8a-0x0;let _0x35f889=a584_0x2db5[_0x5b1a8a];return _0x35f889;};const _0x206af1=a584_0x35f8;'use strict';const attributes=require(_0x206af1('0x3'));module[_0x206af1('0x1')]=function(_0x476b42){const _0x57719f=_0x206af1,_0x3623ae=_0x476b42['define'](_0x57719f('0x0'),attributes,{'tableName':_0x57719f('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3623ae;}; \ No newline at end of file diff --git a/server/api/sound/sound.rpc.js b/server/api/sound/sound.rpc.js index 8868f4a..32e4225 100644 --- a/server/api/sound/sound.rpc.js +++ b/server/api/sound/sound.rpc.js @@ -1 +1 @@ -const a585_0x4dc1=['../../mysqldb','error','rpc','debug','attributes','Sound','../../config/logger','include','catch','message','findOne','raw','model','where','map','options','ShowSound','stringify'];(function(_0x40411e,_0x4dc1af){const _0xef01f2=function(_0x26bf46){while(--_0x26bf46){_0x40411e['push'](_0x40411e['shift']());}};_0xef01f2(++_0x4dc1af);}(a585_0x4dc1,0x18f));const a585_0xef01=function(_0x40411e,_0x4dc1af){_0x40411e=_0x40411e-0x0;let _0xef01f2=a585_0x4dc1[_0x40411e];return _0xef01f2;};const _0x363406=a585_0xef01;'use strict';const db=require(_0x363406('0xf'))['db'],logger=require(_0x363406('0x3'))(_0x363406('0x11')),_=require('lodash');exports[_0x363406('0xd')]=function(_0x26bf46){const _0x27b8f1=this;return new Promise(function(_0x13d5d3,_0x2c1e63){const _0x198ddb=a585_0xef01;return db[_0x198ddb('0x2')][_0x198ddb('0x7')]({'raw':_0x26bf46[_0x198ddb('0xc')]?_0x26bf46[_0x198ddb('0xc')][_0x198ddb('0x8')]===undefined?!![]:![]:!![],'where':_0x26bf46[_0x198ddb('0xc')]?_0x26bf46[_0x198ddb('0xc')][_0x198ddb('0xa')]||null:null,'attributes':_0x26bf46[_0x198ddb('0xc')]?_0x26bf46[_0x198ddb('0xc')][_0x198ddb('0x1')]||null:null,'include':_0x26bf46[_0x198ddb('0xc')]?_0x26bf46[_0x198ddb('0xc')][_0x198ddb('0x4')]?_[_0x198ddb('0xb')](_0x26bf46[_0x198ddb('0xc')][_0x198ddb('0x4')],function(_0x1d26fb){const _0x1fd51a=_0x198ddb;return{'model':db[_0x1d26fb[_0x1fd51a('0x9')]],'as':_0x1d26fb['as'],'attributes':_0x1d26fb[_0x1fd51a('0x1')],'include':_0x1d26fb[_0x1fd51a('0x4')]?_[_0x1fd51a('0xb')](_0x1d26fb['include'],function(_0x3d1837){const _0x17ef10=_0x1fd51a;return{'model':db[_0x3d1837[_0x17ef10('0x9')]],'as':_0x3d1837['as'],'attributes':_0x3d1837[_0x17ef10('0x1')],'include':_0x3d1837[_0x17ef10('0x4')]?_[_0x17ef10('0xb')](_0x3d1837[_0x17ef10('0x4')],function(_0x3fbd96){const _0x4ca5b2=_0x17ef10;return{'model':db[_0x3fbd96[_0x4ca5b2('0x9')]],'as':_0x3fbd96['as'],'attributes':_0x3fbd96[_0x4ca5b2('0x1')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x248633){const _0x5e92c1=_0x198ddb;logger['info']('ShowSound',_0x26bf46),logger[_0x5e92c1('0x0')](_0x5e92c1('0xd'),_0x26bf46,JSON[_0x5e92c1('0xe')](_0x248633)),_0x13d5d3(_0x248633);})[_0x198ddb('0x5')](function(_0x5c0fe8){const _0x5f425b=_0x198ddb;logger[_0x5f425b('0x10')](_0x5f425b('0xd'),_0x5c0fe8[_0x5f425b('0x6')],_0x26bf46),_0x2c1e63(_0x27b8f1[_0x5f425b('0x10')](0x1f4,_0x5c0fe8['message']));});});}; \ No newline at end of file +const a585_0x1808=['ShowSound','findOne','error','rpc','stringify','map','attributes','include','info','model','debug','message','raw','options','where','Sound','lodash','../../config/logger'];(function(_0x41d520,_0x180837){const _0x388ccb=function(_0x1cb169){while(--_0x1cb169){_0x41d520['push'](_0x41d520['shift']());}};_0x388ccb(++_0x180837);}(a585_0x1808,0x151));const a585_0x388c=function(_0x41d520,_0x180837){_0x41d520=_0x41d520-0x0;let _0x388ccb=a585_0x1808[_0x41d520];return _0x388ccb;};const _0x170ce3=a585_0x388c;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x170ce3('0x4'))(_0x170ce3('0x8')),_=require(_0x170ce3('0x3'));exports[_0x170ce3('0x5')]=function(_0x1cb169){const _0x129a50=this;return new Promise(function(_0xc3572b,_0x434c8c){const _0x1f646b=a585_0x388c;return db[_0x1f646b('0x2')][_0x1f646b('0x6')]({'raw':_0x1cb169[_0x1f646b('0x0')]?_0x1cb169[_0x1f646b('0x0')][_0x1f646b('0x11')]===undefined?!![]:![]:!![],'where':_0x1cb169[_0x1f646b('0x0')]?_0x1cb169[_0x1f646b('0x0')][_0x1f646b('0x1')]||null:null,'attributes':_0x1cb169[_0x1f646b('0x0')]?_0x1cb169[_0x1f646b('0x0')][_0x1f646b('0xb')]||null:null,'include':_0x1cb169[_0x1f646b('0x0')]?_0x1cb169[_0x1f646b('0x0')][_0x1f646b('0xc')]?_[_0x1f646b('0xa')](_0x1cb169[_0x1f646b('0x0')]['include'],function(_0x55b083){const _0xa3694a=_0x1f646b;return{'model':db[_0x55b083['model']],'as':_0x55b083['as'],'attributes':_0x55b083[_0xa3694a('0xb')],'include':_0x55b083[_0xa3694a('0xc')]?_[_0xa3694a('0xa')](_0x55b083[_0xa3694a('0xc')],function(_0x48f2cc){const _0x41ea0e=_0xa3694a;return{'model':db[_0x48f2cc[_0x41ea0e('0xe')]],'as':_0x48f2cc['as'],'attributes':_0x48f2cc[_0x41ea0e('0xb')],'include':_0x48f2cc[_0x41ea0e('0xc')]?_[_0x41ea0e('0xa')](_0x48f2cc[_0x41ea0e('0xc')],function(_0x19b68a){const _0x14a135=_0x41ea0e;return{'model':db[_0x19b68a[_0x14a135('0xe')]],'as':_0x19b68a['as'],'attributes':_0x19b68a[_0x14a135('0xb')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x38a6bf){const _0x382d22=_0x1f646b;logger[_0x382d22('0xd')](_0x382d22('0x5'),_0x1cb169),logger[_0x382d22('0xf')](_0x382d22('0x5'),_0x1cb169,JSON[_0x382d22('0x9')](_0x38a6bf)),_0xc3572b(_0x38a6bf);})['catch'](function(_0x5efadf){const _0x4fb1e6=_0x1f646b;logger[_0x4fb1e6('0x7')]('ShowSound',_0x5efadf[_0x4fb1e6('0x10')],_0x1cb169),_0x434c8c(_0x129a50['error'](0x1f4,_0x5efadf[_0x4fb1e6('0x10')]));});});}; \ No newline at end of file diff --git a/server/api/squareMessage/index.js b/server/api/squareMessage/index.js index 723c89d..e4d54f8 100644 --- a/server/api/squareMessage/index.js +++ b/server/api/squareMessage/index.js @@ -1 +1 @@ -const a586_0x5be5=['get','/:id','put','show','../../components/auth/service','Router','index','destroy','post','./squareMessage.controller','delete','isAuthenticated'];(function(_0x5d4082,_0x5be5b6){const _0x1a2e69=function(_0x56bda6){while(--_0x56bda6){_0x5d4082['push'](_0x5d4082['shift']());}};_0x1a2e69(++_0x5be5b6);}(a586_0x5be5,0x178));const a586_0x1a2e=function(_0x5d4082,_0x5be5b6){_0x5d4082=_0x5d4082-0x0;let _0x1a2e69=a586_0x5be5[_0x5d4082];return _0x1a2e69;};const _0x59310f=a586_0x1a2e;'use strict';const express=require('express'),router=express[_0x59310f('0x1')](),auth=require(_0x59310f('0x0')),controller=require(_0x59310f('0x5'));router['get']('/',auth[_0x59310f('0x7')](),controller[_0x59310f('0x2')]),router[_0x59310f('0x8')]('/:id',auth[_0x59310f('0x7')](),controller[_0x59310f('0xb')]),router[_0x59310f('0x4')]('/',auth['isAuthenticated'](),controller['create']),router[_0x59310f('0xa')](_0x59310f('0x9'),auth[_0x59310f('0x7')](),controller['update']),router[_0x59310f('0x6')]('/:id',auth[_0x59310f('0x7')](),controller[_0x59310f('0x3')]),module['exports']=router; \ No newline at end of file +const a586_0x21a3=['isAuthenticated','express','Router','/:id','exports','put','destroy','get','./squareMessage.controller','update','delete','post','../../components/auth/service','show'];(function(_0x5d4468,_0x21a308){const _0x2d568e=function(_0x1e1c1f){while(--_0x1e1c1f){_0x5d4468['push'](_0x5d4468['shift']());}};_0x2d568e(++_0x21a308);}(a586_0x21a3,0x1e7));const a586_0x2d56=function(_0x5d4468,_0x21a308){_0x5d4468=_0x5d4468-0x0;let _0x2d568e=a586_0x21a3[_0x5d4468];return _0x2d568e;};const _0x562ce1=a586_0x2d56;'use strict';const express=require(_0x562ce1('0x4')),router=express[_0x562ce1('0x5')](),auth=require(_0x562ce1('0x1')),controller=require(_0x562ce1('0xb'));router[_0x562ce1('0xa')]('/',auth['isAuthenticated'](),controller['index']),router[_0x562ce1('0xa')](_0x562ce1('0x6'),auth[_0x562ce1('0x3')](),controller[_0x562ce1('0x2')]),router[_0x562ce1('0x0')]('/',auth['isAuthenticated'](),controller['create']),router[_0x562ce1('0x8')](_0x562ce1('0x6'),auth[_0x562ce1('0x3')](),controller[_0x562ce1('0xc')]),router[_0x562ce1('0xd')](_0x562ce1('0x6'),auth[_0x562ce1('0x3')](),controller[_0x562ce1('0x9')]),module[_0x562ce1('0x7')]=router; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.attributes.js b/server/api/squareMessage/squareMessage.attributes.js index 3448c03..800216b 100644 --- a/server/api/squareMessage/squareMessage.attributes.js +++ b/server/api/squareMessage/squareMessage.attributes.js @@ -1 +1 @@ -const a587_0x5367=['medium','out','ENUM','TEXT','exports'];(function(_0x7c015b,_0x5367dc){const _0x72c6cc=function(_0x5688a6){while(--_0x5688a6){_0x7c015b['push'](_0x7c015b['shift']());}};_0x72c6cc(++_0x5367dc);}(a587_0x5367,0x1f1));const a587_0x72c6=function(_0x7c015b,_0x5367dc){_0x7c015b=_0x7c015b-0x0;let _0x72c6cc=a587_0x5367[_0x7c015b];return _0x72c6cc;};const _0x295fdf=a587_0x72c6;'use strict';const Sequelize=require('sequelize');module[_0x295fdf('0x2')]={'uniqueid':{'type':Sequelize['STRING']},'body':{'type':Sequelize[_0x295fdf('0x1')](_0x295fdf('0x3')),'allowNull':![]},'direction':{'type':Sequelize[_0x295fdf('0x0')]('in',_0x295fdf('0x4')),'defaultValue':_0x295fdf('0x4'),'allowNull':![]}}; \ No newline at end of file +const a587_0x15fe=['out','STRING','medium','TEXT','ENUM','exports'];(function(_0x3f4ca9,_0x15fe48){const _0x5f504d=function(_0x4f5f30){while(--_0x4f5f30){_0x3f4ca9['push'](_0x3f4ca9['shift']());}};_0x5f504d(++_0x15fe48);}(a587_0x15fe,0xb6));const a587_0x5f50=function(_0x3f4ca9,_0x15fe48){_0x3f4ca9=_0x3f4ca9-0x0;let _0x5f504d=a587_0x15fe[_0x3f4ca9];return _0x5f504d;};const _0x567dc6=a587_0x5f50;'use strict';const Sequelize=require('sequelize');module[_0x567dc6('0x3')]={'uniqueid':{'type':Sequelize['STRING']},'body':{'type':Sequelize[_0x567dc6('0x1')](_0x567dc6('0x0')),'allowNull':![]},'direction':{'type':Sequelize[_0x567dc6('0x2')]('in',_0x567dc6('0x4')),'defaultValue':_0x567dc6('0x4'),'allowNull':![]},'providerName':{'type':Sequelize[_0x567dc6('0x5')]},'providerResponse':{'type':Sequelize[_0x567dc6('0x1')]}}; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.controller.js b/server/api/squareMessage/squareMessage.controller.js index 2782c74..f4e6af8 100644 --- a/server/api/squareMessage/squareMessage.controller.js +++ b/server/api/squareMessage/squareMessage.controller.js @@ -1 +1 @@ -const a588_0x4359=['error','includeAll','attributes','../../config/logger','findOne','then','api','catch','fields','params','Content-Range','where','sequelize','index','type','include','pick','offset','keys','map','fieldName','query','VIRTUAL','sendStatus','rows','sort','destroy','model','set','json','rawAttributes','merge','limit','filters','stack','findAll','status','update','end','send','like','filter','name','show','length','SquareMessage','body','order','options','count','lodash','intersection','undefined'];(function(_0x58fb85,_0x435950){const _0x2a0d33=function(_0x30d5ed){while(--_0x30d5ed){_0x58fb85['push'](_0x58fb85['shift']());}};_0x2a0d33(++_0x435950);}(a588_0x4359,0x162));const a588_0x2a0d=function(_0x58fb85,_0x435950){_0x58fb85=_0x58fb85-0x0;let _0x2a0d33=a588_0x4359[_0x58fb85];return _0x2a0d33;};const _0x1cbb0c=a588_0x2a0d;'use strict';const _=require(_0x1cbb0c('0xe')),qs=require('../../components/parsers/qs'),logger=require(_0x1cbb0c('0x14'))(_0x1cbb0c('0x17')),db=require('../../mysqldb')['db'],{Op}=require(_0x1cbb0c('0x1d'));function respondWithResult(_0x30d5ed,_0x26630f){return _0x26630f=_0x26630f||0xc8,function(_0xd282ce){const _0x385f64=a588_0x2a0d;if(_0xd282ce)return _0x30d5ed[_0x385f64('0x0')](_0x26630f)[_0x385f64('0x2e')](_0xd282ce);};}function respondWithFilteredResult(_0x29f521,_0x254cfa){return function(_0x2b9306){const _0x355f96=a588_0x2a0d;if(_0x2b9306){const _0xef6c0a=_0x2b9306['count'],_0x55e30b=_0x254cfa[_0x355f96('0x22')];let _0x142c03=_0x254cfa[_0x355f96('0x22')]+_0x254cfa['limit'],_0x13827a;return _0x142c03>=_0xef6c0a?(_0x142c03=_0xef6c0a,_0x13827a=0xc8):_0x13827a=0xce,_0x29f521[_0x355f96('0x0')](_0x13827a),_0x29f521[_0x355f96('0x2d')](_0x355f96('0x1b'),_0x55e30b+'-'+_0x142c03+'/'+_0xef6c0a)[_0x355f96('0x2e')](_0x2b9306);}return null;};}function saveUpdates(_0x4f7eaf){return function(_0x2a23d7){const _0x5bd513=a588_0x2a0d;if(_0x2a23d7)return _0x2a23d7['update'](_0x4f7eaf)[_0x5bd513('0x16')](function(_0x186796){return _0x186796;});return null;};}function removeEntity(_0x336ab9){return function(_0x26b9c9){const _0x29a237=a588_0x2a0d;if(_0x26b9c9)return _0x26b9c9[_0x29a237('0x2b')]()[_0x29a237('0x16')](function(){const _0xf27d6c=_0x29a237;_0x336ab9[_0xf27d6c('0x0')](0xcc)[_0xf27d6c('0x2')]();});};}function handleEntityNotFound(_0x23f2bf){return function(_0x4283e7){const _0x3f01bc=a588_0x2a0d;return!_0x4283e7&&_0x23f2bf[_0x3f01bc('0x28')](0x194),_0x4283e7;};}function handleError(_0x3d958e,_0x34b46d){return _0x34b46d=_0x34b46d||0x1f4,function(_0x4a6727){const _0x3852a5=a588_0x2a0d;logger[_0x3852a5('0x11')](_0x4a6727[_0x3852a5('0x33')]),_0x4a6727[_0x3852a5('0x6')]&&delete _0x4a6727['name'],_0x3d958e[_0x3852a5('0x0')](_0x34b46d)[_0x3852a5('0x3')](_0x4a6727);};}exports[_0x1cbb0c('0x1e')]=function(_0x1b8673,_0x4c9e39){const _0x10c135=_0x1cbb0c;let _0x5f10c4={};const _0xaffee6={},_0x1990f1={'count':0x0,'rows':[]},_0x567ba8=_[_0x10c135('0x24')](db[_0x10c135('0x9')][_0x10c135('0x2f')],function(_0x2047f0){const _0x496238=_0x10c135;return{'name':_0x2047f0[_0x496238('0x25')],'type':_0x2047f0['type']['key']};});_0xaffee6['model']=_['map'](_0x567ba8,'name'),_0xaffee6['query']=_[_0x10c135('0x23')](_0x1b8673[_0x10c135('0x26')]),_0xaffee6['filters']=_[_0x10c135('0xf')](_0xaffee6[_0x10c135('0x2c')],_0xaffee6[_0x10c135('0x26')]),_0x5f10c4['attributes']=_['intersection'](_0xaffee6[_0x10c135('0x2c')],qs[_0x10c135('0x19')](_0x1b8673[_0x10c135('0x26')][_0x10c135('0x19')])),_0x5f10c4[_0x10c135('0x13')]=_0x5f10c4[_0x10c135('0x13')][_0x10c135('0x8')]?_0x5f10c4[_0x10c135('0x13')]:_0xaffee6[_0x10c135('0x2c')];typeof _0x1b8673[_0x10c135('0x26')]['nolimit']===_0x10c135('0x10')&&(_0x5f10c4[_0x10c135('0x31')]=qs[_0x10c135('0x31')](_0x1b8673[_0x10c135('0x26')][_0x10c135('0x31')]),_0x5f10c4[_0x10c135('0x22')]=qs[_0x10c135('0x22')](_0x1b8673[_0x10c135('0x26')][_0x10c135('0x22')]));_0x5f10c4[_0x10c135('0xb')]=qs[_0x10c135('0x2a')](_0x1b8673[_0x10c135('0x26')][_0x10c135('0x2a')]),_0x5f10c4[_0x10c135('0x1c')]=qs[_0x10c135('0x32')](_[_0x10c135('0x21')](_0x1b8673['query'],_0xaffee6[_0x10c135('0x32')]),_0x567ba8);_0x1b8673[_0x10c135('0x26')][_0x10c135('0x5')]&&(_0x5f10c4[_0x10c135('0x1c')]=_[_0x10c135('0x30')](_0x5f10c4[_0x10c135('0x1c')],{[Op['or']]:_[_0x10c135('0x24')](_0x567ba8,function(_0x3428ad){const _0x1c120b=_0x10c135;if(_0x3428ad[_0x1c120b('0x1f')]!==_0x1c120b('0x27')){const _0x3f99da={};return _0x3f99da[_0x3428ad[_0x1c120b('0x6')]]={[Op[_0x1c120b('0x4')]]:'%'+_0x1b8673['query'][_0x1c120b('0x5')]+'%'},_0x3f99da;}})}));_0x5f10c4=_[_0x10c135('0x30')]({},_0x5f10c4,_0x1b8673[_0x10c135('0xc')]);const _0xdb831d={'where':_0x5f10c4[_0x10c135('0x1c')]};return db['SquareMessage'][_0x10c135('0xd')](_0xdb831d)['then'](function(_0x3d4235){const _0x445f52=_0x10c135;return _0x1990f1[_0x445f52('0xd')]=_0x3d4235,_0x1b8673[_0x445f52('0x26')][_0x445f52('0x12')]&&(_0x5f10c4[_0x445f52('0x20')]=[{'all':!![]}]),db['SquareMessage'][_0x445f52('0x34')](_0x5f10c4);})[_0x10c135('0x16')](function(_0x17668b){const _0x27dab5=_0x10c135;return _0x1990f1[_0x27dab5('0x29')]=_0x17668b,_0x1990f1;})['then'](respondWithFilteredResult(_0x4c9e39,_0x5f10c4))[_0x10c135('0x18')](handleError(_0x4c9e39,null));},exports[_0x1cbb0c('0x7')]=function(_0x19ddcb,_0x2e98e5){const _0x5641a5=_0x1cbb0c;let _0x4f46de={'raw':!![],'where':{'id':_0x19ddcb[_0x5641a5('0x1a')]['id']}};const _0xdf4a2b={};return _0xdf4a2b[_0x5641a5('0x2c')]=_[_0x5641a5('0x23')](db[_0x5641a5('0x9')]['rawAttributes']),_0xdf4a2b[_0x5641a5('0x26')]=_['keys'](_0x19ddcb['query']),_0xdf4a2b[_0x5641a5('0x32')]=_[_0x5641a5('0xf')](_0xdf4a2b[_0x5641a5('0x2c')],_0xdf4a2b[_0x5641a5('0x26')]),_0x4f46de[_0x5641a5('0x13')]=_[_0x5641a5('0xf')](_0xdf4a2b['model'],qs[_0x5641a5('0x19')](_0x19ddcb['query'][_0x5641a5('0x19')])),_0x4f46de['attributes']=_0x4f46de[_0x5641a5('0x13')][_0x5641a5('0x8')]?_0x4f46de[_0x5641a5('0x13')]:_0xdf4a2b[_0x5641a5('0x2c')],_0x19ddcb[_0x5641a5('0x26')][_0x5641a5('0x12')]&&(_0x4f46de[_0x5641a5('0x20')]=[{'all':!![]}]),_0x4f46de=_[_0x5641a5('0x30')]({},_0x4f46de,_0x19ddcb[_0x5641a5('0xc')]),db['SquareMessage'][_0x5641a5('0x15')](_0x4f46de)['then'](handleEntityNotFound(_0x2e98e5,null))[_0x5641a5('0x16')](respondWithResult(_0x2e98e5,null))[_0x5641a5('0x18')](handleError(_0x2e98e5,null));},exports['create']=function(_0x4c947c,_0x5a8a7e){const _0xe77d56=_0x1cbb0c;return db['SquareMessage']['create'](_0x4c947c[_0xe77d56('0xa')],{})['then'](respondWithResult(_0x5a8a7e,0xc9))[_0xe77d56('0x18')](handleError(_0x5a8a7e,null));},exports[_0x1cbb0c('0x1')]=function(_0x379c12,_0x263b23){const _0xbce85d=_0x1cbb0c;return _0x379c12[_0xbce85d('0xa')]['id']&&delete _0x379c12[_0xbce85d('0xa')]['id'],db[_0xbce85d('0x9')]['findOne']({'where':{'id':_0x379c12[_0xbce85d('0x1a')]['id']}})[_0xbce85d('0x16')](handleEntityNotFound(_0x263b23,null))[_0xbce85d('0x16')](saveUpdates(_0x379c12['body'],null))[_0xbce85d('0x16')](respondWithResult(_0x263b23,null))['catch'](handleError(_0x263b23,null));},exports[_0x1cbb0c('0x2b')]=function(_0x1107a2,_0x335966){const _0x1f5a22=_0x1cbb0c;return db[_0x1f5a22('0x9')][_0x1f5a22('0x15')]({'where':{'id':_0x1107a2[_0x1f5a22('0x1a')]['id']}})[_0x1f5a22('0x16')](handleEntityNotFound(_0x335966,null))[_0x1f5a22('0x16')](removeEntity(_0x335966,null))[_0x1f5a22('0x18')](handleError(_0x335966,null));}; \ No newline at end of file +const a588_0x857f=['../../components/parsers/qs','key','VIRTUAL','../../config/logger','length','nolimit','json','order','findOne','destroy','fields','create','attributes','api','type','count','SquareMessage','sequelize','sort','include','then','intersection','limit','offset','keys','findAll','model','merge','name','rows','query','rawAttributes','update','options','where','index','sendStatus','status','map','includeAll','catch','filters','../../mysqldb','like','body','set'];(function(_0x3e8964,_0x857f2b){const _0x2f7270=function(_0xbe37a3){while(--_0xbe37a3){_0x3e8964['push'](_0x3e8964['shift']());}};_0x2f7270(++_0x857f2b);}(a588_0x857f,0x1d1));const a588_0x2f72=function(_0x3e8964,_0x857f2b){_0x3e8964=_0x3e8964-0x0;let _0x2f7270=a588_0x857f[_0x3e8964];return _0x2f7270;};const _0x33edcb=a588_0x2f72;'use strict';const _=require('lodash'),qs=require(_0x33edcb('0x29')),logger=require(_0x33edcb('0x2c'))(_0x33edcb('0x8')),db=require(_0x33edcb('0x25'))['db'],{Op}=require(_0x33edcb('0xc'));function respondWithResult(_0xbe37a3,_0x56cd9f){return _0x56cd9f=_0x56cd9f||0xc8,function(_0x1a140e){const _0x27b10b=a588_0x2f72;if(_0x1a140e)return _0xbe37a3[_0x27b10b('0x20')](_0x56cd9f)[_0x27b10b('0x1')](_0x1a140e);};}function respondWithFilteredResult(_0x64d568,_0x3e54c0){return function(_0x1e39c8){const _0x106a48=a588_0x2f72;if(_0x1e39c8){const _0x29e328=_0x1e39c8['count'],_0x122454=_0x3e54c0['offset'];let _0x98b228=_0x3e54c0[_0x106a48('0x12')]+_0x3e54c0[_0x106a48('0x11')],_0x268407;return _0x98b228>=_0x29e328?(_0x98b228=_0x29e328,_0x268407=0xc8):_0x268407=0xce,_0x64d568[_0x106a48('0x20')](_0x268407),_0x64d568[_0x106a48('0x28')]('Content-Range',_0x122454+'-'+_0x98b228+'/'+_0x29e328)[_0x106a48('0x1')](_0x1e39c8);}return null;};}function saveUpdates(_0x69bffe){return function(_0x3f1ee3){const _0x8b7c77=a588_0x2f72;if(_0x3f1ee3)return _0x3f1ee3[_0x8b7c77('0x1b')](_0x69bffe)[_0x8b7c77('0xf')](function(_0x1670bf){return _0x1670bf;});return null;};}function removeEntity(_0x1de135){return function(_0x4d9c8e){const _0x2ded04=a588_0x2f72;if(_0x4d9c8e)return _0x4d9c8e[_0x2ded04('0x4')]()['then'](function(){const _0x1a7b9a=_0x2ded04;_0x1de135[_0x1a7b9a('0x20')](0xcc)['end']();});};}function handleEntityNotFound(_0x4179ba){return function(_0xe0a13b){const _0x3cfcc7=a588_0x2f72;return!_0xe0a13b&&_0x4179ba[_0x3cfcc7('0x1f')](0x194),_0xe0a13b;};}function handleError(_0x4fd18c,_0x46fa61){return _0x46fa61=_0x46fa61||0x1f4,function(_0x21e2ba){const _0x305542=a588_0x2f72;logger['error'](_0x21e2ba['stack']),_0x21e2ba[_0x305542('0x17')]&&delete _0x21e2ba[_0x305542('0x17')],_0x4fd18c[_0x305542('0x20')](_0x46fa61)['send'](_0x21e2ba);};}exports[_0x33edcb('0x1e')]=function(_0x1c530b,_0x461e56){const _0x2c7195=_0x33edcb;let _0x3bdf14={};const _0x130f73={},_0xbd8810={'count':0x0,'rows':[]},_0x5d6f78=_['map'](db[_0x2c7195('0xb')][_0x2c7195('0x1a')],function(_0x22076c){const _0x88c758=_0x2c7195;return{'name':_0x22076c['fieldName'],'type':_0x22076c[_0x88c758('0x9')][_0x88c758('0x2a')]};});_0x130f73['model']=_[_0x2c7195('0x21')](_0x5d6f78,_0x2c7195('0x17')),_0x130f73[_0x2c7195('0x19')]=_[_0x2c7195('0x13')](_0x1c530b['query']),_0x130f73[_0x2c7195('0x24')]=_[_0x2c7195('0x10')](_0x130f73[_0x2c7195('0x15')],_0x130f73[_0x2c7195('0x19')]),_0x3bdf14[_0x2c7195('0x7')]=_['intersection'](_0x130f73[_0x2c7195('0x15')],qs[_0x2c7195('0x5')](_0x1c530b[_0x2c7195('0x19')]['fields'])),_0x3bdf14['attributes']=_0x3bdf14[_0x2c7195('0x7')]['length']?_0x3bdf14['attributes']:_0x130f73[_0x2c7195('0x15')];typeof _0x1c530b['query'][_0x2c7195('0x0')]==='undefined'&&(_0x3bdf14[_0x2c7195('0x11')]=qs[_0x2c7195('0x11')](_0x1c530b[_0x2c7195('0x19')][_0x2c7195('0x11')]),_0x3bdf14[_0x2c7195('0x12')]=qs[_0x2c7195('0x12')](_0x1c530b[_0x2c7195('0x19')][_0x2c7195('0x12')]));_0x3bdf14[_0x2c7195('0x2')]=qs[_0x2c7195('0xd')](_0x1c530b['query'][_0x2c7195('0xd')]),_0x3bdf14['where']=qs[_0x2c7195('0x24')](_['pick'](_0x1c530b[_0x2c7195('0x19')],_0x130f73[_0x2c7195('0x24')]),_0x5d6f78);_0x1c530b[_0x2c7195('0x19')]['filter']&&(_0x3bdf14['where']=_[_0x2c7195('0x16')](_0x3bdf14[_0x2c7195('0x1d')],{[Op['or']]:_[_0x2c7195('0x21')](_0x5d6f78,function(_0x4d8681){const _0x3876bb=_0x2c7195;if(_0x4d8681[_0x3876bb('0x9')]!==_0x3876bb('0x2b')){const _0x41c8bb={};return _0x41c8bb[_0x4d8681[_0x3876bb('0x17')]]={[Op[_0x3876bb('0x26')]]:'%'+_0x1c530b[_0x3876bb('0x19')]['filter']+'%'},_0x41c8bb;}})}));_0x3bdf14=_[_0x2c7195('0x16')]({},_0x3bdf14,_0x1c530b[_0x2c7195('0x1c')]);const _0x46c51d={'where':_0x3bdf14['where']};return db[_0x2c7195('0xb')][_0x2c7195('0xa')](_0x46c51d)['then'](function(_0x16baed){const _0x51e33e=_0x2c7195;return _0xbd8810[_0x51e33e('0xa')]=_0x16baed,_0x1c530b[_0x51e33e('0x19')]['includeAll']&&(_0x3bdf14[_0x51e33e('0xe')]=[{'all':!![]}]),db[_0x51e33e('0xb')][_0x51e33e('0x14')](_0x3bdf14);})[_0x2c7195('0xf')](function(_0x5e7c16){const _0x385b90=_0x2c7195;return _0xbd8810[_0x385b90('0x18')]=_0x5e7c16,_0xbd8810;})[_0x2c7195('0xf')](respondWithFilteredResult(_0x461e56,_0x3bdf14))[_0x2c7195('0x23')](handleError(_0x461e56,null));},exports['show']=function(_0x968e8c,_0x4c931f){const _0x914bba=_0x33edcb;let _0x4d0d7b={'raw':!![],'where':{'id':_0x968e8c['params']['id']}};const _0x4db7c6={};return _0x4db7c6[_0x914bba('0x15')]=_[_0x914bba('0x13')](db[_0x914bba('0xb')][_0x914bba('0x1a')]),_0x4db7c6['query']=_[_0x914bba('0x13')](_0x968e8c['query']),_0x4db7c6[_0x914bba('0x24')]=_['intersection'](_0x4db7c6[_0x914bba('0x15')],_0x4db7c6[_0x914bba('0x19')]),_0x4d0d7b[_0x914bba('0x7')]=_[_0x914bba('0x10')](_0x4db7c6[_0x914bba('0x15')],qs[_0x914bba('0x5')](_0x968e8c[_0x914bba('0x19')][_0x914bba('0x5')])),_0x4d0d7b[_0x914bba('0x7')]=_0x4d0d7b[_0x914bba('0x7')][_0x914bba('0x2d')]?_0x4d0d7b[_0x914bba('0x7')]:_0x4db7c6[_0x914bba('0x15')],_0x968e8c[_0x914bba('0x19')][_0x914bba('0x22')]&&(_0x4d0d7b['include']=[{'all':!![]}]),_0x4d0d7b=_['merge']({},_0x4d0d7b,_0x968e8c['options']),db['SquareMessage'][_0x914bba('0x3')](_0x4d0d7b)[_0x914bba('0xf')](handleEntityNotFound(_0x4c931f,null))[_0x914bba('0xf')](respondWithResult(_0x4c931f,null))[_0x914bba('0x23')](handleError(_0x4c931f,null));},exports[_0x33edcb('0x6')]=function(_0x1377f4,_0x53b779){const _0x4591ef=_0x33edcb;return db[_0x4591ef('0xb')][_0x4591ef('0x6')](_0x1377f4['body'],{})[_0x4591ef('0xf')](respondWithResult(_0x53b779,0xc9))['catch'](handleError(_0x53b779,null));},exports['update']=function(_0x990932,_0x3a6135){const _0x37e2aa=_0x33edcb;return _0x990932[_0x37e2aa('0x27')]['id']&&delete _0x990932['body']['id'],db[_0x37e2aa('0xb')][_0x37e2aa('0x3')]({'where':{'id':_0x990932['params']['id']}})[_0x37e2aa('0xf')](handleEntityNotFound(_0x3a6135,null))['then'](saveUpdates(_0x990932[_0x37e2aa('0x27')],null))[_0x37e2aa('0xf')](respondWithResult(_0x3a6135,null))[_0x37e2aa('0x23')](handleError(_0x3a6135,null));},exports['destroy']=function(_0x3a1799,_0x4da6df){const _0x785455=_0x33edcb;return db[_0x785455('0xb')][_0x785455('0x3')]({'where':{'id':_0x3a1799['params']['id']}})[_0x785455('0xf')](handleEntityNotFound(_0x4da6df,null))[_0x785455('0xf')](removeEntity(_0x4da6df,null))[_0x785455('0x23')](handleError(_0x4da6df,null));}; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.model.js b/server/api/squareMessage/squareMessage.model.js index 89befd3..bd446f2 100644 --- a/server/api/squareMessage/squareMessage.model.js +++ b/server/api/squareMessage/squareMessage.model.js @@ -1 +1 @@ -const a589_0x1127=['define','./squareMessage.attributes','exports'];(function(_0x1c2af8,_0x112772){const _0x35a124=function(_0xdd826c){while(--_0xdd826c){_0x1c2af8['push'](_0x1c2af8['shift']());}};_0x35a124(++_0x112772);}(a589_0x1127,0x175));const a589_0x35a1=function(_0x1c2af8,_0x112772){_0x1c2af8=_0x1c2af8-0x0;let _0x35a124=a589_0x1127[_0x1c2af8];return _0x35a124;};const _0x62a959=a589_0x35a1;'use strict';const attributes=require(_0x62a959('0x0'));module[_0x62a959('0x1')]=function(_0xdd826c){const _0x29beea=_0x62a959,_0x43a51=_0xdd826c[_0x29beea('0x2')]('SquareMessage',attributes,{'tableName':'square_messages','paranoid':![],'indexes':[],'timestamps':!![]});return _0x43a51;}; \ No newline at end of file +const a589_0x3a94=['exports','define','square_messages','./squareMessage.attributes','SquareMessage'];(function(_0x22d78f,_0x3a94b5){const _0x1b7441=function(_0x2d357e){while(--_0x2d357e){_0x22d78f['push'](_0x22d78f['shift']());}};_0x1b7441(++_0x3a94b5);}(a589_0x3a94,0xad));const a589_0x1b74=function(_0x22d78f,_0x3a94b5){_0x22d78f=_0x22d78f-0x0;let _0x1b7441=a589_0x3a94[_0x22d78f];return _0x1b7441;};const _0x583c92=a589_0x1b74;'use strict';const attributes=require(_0x583c92('0x0'));module[_0x583c92('0x2')]=function(_0x2d357e){const _0x4304e5=_0x583c92,_0x4439c7=_0x2d357e[_0x4304e5('0x3')](_0x4304e5('0x1'),attributes,{'tableName':_0x4304e5('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4439c7;}; \ No newline at end of file diff --git a/server/api/squareMessage/squareMessage.rpc.js b/server/api/squareMessage/squareMessage.rpc.js index 826808a..6c2bd77 100644 --- a/server/api/squareMessage/squareMessage.rpc.js +++ b/server/api/squareMessage/squareMessage.rpc.js @@ -1 +1 @@ -const a590_0x6252=['create','stringify','then','../../config/logger','options','error','SquareMessage','body','message','raw','CreateSquareMessage'];(function(_0x3842df,_0x62525){const _0x3a87cb=function(_0x5e4dc3){while(--_0x5e4dc3){_0x3842df['push'](_0x3842df['shift']());}};_0x3a87cb(++_0x62525);}(a590_0x6252,0xc8));const a590_0x3a87=function(_0x3842df,_0x62525){_0x3842df=_0x3842df-0x0;let _0x3a87cb=a590_0x6252[_0x3842df];return _0x3a87cb;};const _0x274a88=a590_0x3a87;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x274a88('0x1'))('rpc');exports[_0x274a88('0x8')]=function(_0x5e4dc3){const _0xefaf9f=this;return new Promise(function(_0x40b71c,_0x2d98d7){const _0x368766=a590_0x3a87;return db[_0x368766('0x4')][_0x368766('0x9')](_0x5e4dc3[_0x368766('0x5')],{'raw':_0x5e4dc3[_0x368766('0x2')]?_0x5e4dc3[_0x368766('0x2')][_0x368766('0x7')]===undefined?!![]:![]:!![]})[_0x368766('0x0')](function(_0x29ceec){const _0x1b9c96=_0x368766;logger['info'](_0x1b9c96('0x8'),_0x5e4dc3),logger['debug'](_0x1b9c96('0x8'),_0x5e4dc3,JSON[_0x1b9c96('0xa')](_0x29ceec)),_0x40b71c(_0x29ceec);})['catch'](function(_0x10d34f){const _0x116983=_0x368766;logger['error'](_0x116983('0x8'),_0x10d34f[_0x116983('0x6')],_0x5e4dc3),_0x2d98d7(_0xefaf9f[_0x116983('0x3')](0x1f4,_0x10d34f[_0x116983('0x6')]));});});}; \ No newline at end of file +const a590_0x5427=['message','info','../../mysqldb','options','../../config/logger','body','SquareMessage','raw','CreateSquareMessage','then','create','debug','error'];(function(_0xe8f58c,_0x54277d){const _0x572ca3=function(_0x36d9f4){while(--_0x36d9f4){_0xe8f58c['push'](_0xe8f58c['shift']());}};_0x572ca3(++_0x54277d);}(a590_0x5427,0x125));const a590_0x572c=function(_0xe8f58c,_0x54277d){_0xe8f58c=_0xe8f58c-0x0;let _0x572ca3=a590_0x5427[_0xe8f58c];return _0x572ca3;};const _0x4b6b94=a590_0x572c;'use strict';const db=require(_0x4b6b94('0x8'))['db'],logger=require(_0x4b6b94('0xa'))('rpc');exports[_0x4b6b94('0x1')]=function(_0x36d9f4){const _0x4e8e46=this;return new Promise(function(_0x5623c6,_0x4c6f03){const _0x250eb7=a590_0x572c;return db[_0x250eb7('0xc')][_0x250eb7('0x3')](_0x36d9f4[_0x250eb7('0xb')],{'raw':_0x36d9f4[_0x250eb7('0x9')]?_0x36d9f4['options'][_0x250eb7('0x0')]===undefined?!![]:![]:!![]})[_0x250eb7('0x2')](function(_0x3421fa){const _0x519e36=_0x250eb7;logger[_0x519e36('0x7')](_0x519e36('0x1'),_0x36d9f4),logger[_0x519e36('0x4')](_0x519e36('0x1'),_0x36d9f4,JSON['stringify'](_0x3421fa)),_0x5623c6(_0x3421fa);})['catch'](function(_0x32c350){const _0x2d1378=_0x250eb7;logger[_0x2d1378('0x5')]('CreateSquareMessage',_0x32c350[_0x2d1378('0x6')],_0x36d9f4),_0x4c6f03(_0x4e8e46['error'](0x1f4,_0x32c350[_0x2d1378('0x6')]));});});}; \ No newline at end of file diff --git a/server/api/squareOdbc/index.js b/server/api/squareOdbc/index.js index b77aac8..ddbb236 100644 --- a/server/api/squareOdbc/index.js +++ b/server/api/squareOdbc/index.js @@ -1 +1 @@ -const a591_0x22fb=['put','get','Router','./squareOdbc.controller','destroy','/:id/test','test','15s','index','connect-timeout','isAuthenticated','update','/:id','../../components/auth/service'];(function(_0x2e2c06,_0x22fbf4){const _0x463d41=function(_0x858a43){while(--_0x858a43){_0x2e2c06['push'](_0x2e2c06['shift']());}};_0x463d41(++_0x22fbf4);}(a591_0x22fb,0x1c6));const a591_0x463d=function(_0x2e2c06,_0x22fbf4){_0x2e2c06=_0x2e2c06-0x0;let _0x463d41=a591_0x22fb[_0x2e2c06];return _0x463d41;};const _0x1fd417=a591_0x463d;'use strict';const timeout=require(_0x1fd417('0x3')),express=require('express'),router=express[_0x1fd417('0xa')](),auth=require(_0x1fd417('0x7')),controller=require(_0x1fd417('0xb'));router[_0x1fd417('0x9')]('/',auth[_0x1fd417('0x4')](),controller[_0x1fd417('0x2')]),router[_0x1fd417('0x9')](_0x1fd417('0x6'),auth[_0x1fd417('0x4')](),controller['show']),router[_0x1fd417('0x9')](_0x1fd417('0xd'),auth[_0x1fd417('0x4')](),timeout(_0x1fd417('0x1')),controller[_0x1fd417('0x0')]),router['post']('/',auth[_0x1fd417('0x4')](),controller['create']),router[_0x1fd417('0x8')](_0x1fd417('0x6'),auth['isAuthenticated'](),controller[_0x1fd417('0x5')]),router['delete'](_0x1fd417('0x6'),auth[_0x1fd417('0x4')](),controller[_0x1fd417('0xc')]),module['exports']=router; \ No newline at end of file +const a591_0x3cf6=['show','create','/:id','isAuthenticated','exports','destroy','delete','Router','../../components/auth/service','connect-timeout','put','/:id/test','15s','update','index','post'];(function(_0x2d36cc,_0x3cf6af){const _0x227c20=function(_0x2d9ef7){while(--_0x2d9ef7){_0x2d36cc['push'](_0x2d36cc['shift']());}};_0x227c20(++_0x3cf6af);}(a591_0x3cf6,0x18c));const a591_0x227c=function(_0x2d36cc,_0x3cf6af){_0x2d36cc=_0x2d36cc-0x0;let _0x227c20=a591_0x3cf6[_0x2d36cc];return _0x227c20;};const _0x1ee022=a591_0x227c;'use strict';const timeout=require(_0x1ee022('0xd')),express=require('express'),router=express[_0x1ee022('0xb')](),auth=require(_0x1ee022('0xc')),controller=require('./squareOdbc.controller');router['get']('/',auth[_0x1ee022('0x7')](),controller[_0x1ee022('0x2')]),router['get']('/:id',auth['isAuthenticated'](),controller[_0x1ee022('0x4')]),router['get'](_0x1ee022('0xf'),auth['isAuthenticated'](),timeout(_0x1ee022('0x0')),controller['test']),router[_0x1ee022('0x3')]('/',auth[_0x1ee022('0x7')](),controller[_0x1ee022('0x5')]),router[_0x1ee022('0xe')]('/:id',auth[_0x1ee022('0x7')](),controller[_0x1ee022('0x1')]),router[_0x1ee022('0xa')](_0x1ee022('0x6'),auth[_0x1ee022('0x7')](),controller[_0x1ee022('0x9')]),module[_0x1ee022('0x8')]=router; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.attributes.js b/server/api/squareOdbc/squareOdbc.attributes.js index 38c3244..b20b0f1 100644 --- a/server/api/squareOdbc/squareOdbc.attributes.js +++ b/server/api/squareOdbc/squareOdbc.attributes.js @@ -1 +1 @@ -const a592_0x7e7e=['sequelize','STRING','name'];(function(_0x449837,_0x7e7eb1){const _0x310fbe=function(_0x10baf0){while(--_0x10baf0){_0x449837['push'](_0x449837['shift']());}};_0x310fbe(++_0x7e7eb1);}(a592_0x7e7e,0xfe));const a592_0x310f=function(_0x449837,_0x7e7eb1){_0x449837=_0x449837-0x0;let _0x310fbe=a592_0x7e7e[_0x449837];return _0x310fbe;};const _0x163bbc=a592_0x310f;'use strict';const Sequelize=require(_0x163bbc('0x1'));module['exports']={'name':{'type':Sequelize[_0x163bbc('0x2')],'unique':_0x163bbc('0x0'),'allowNull':![]},'dsn':{'type':Sequelize[_0x163bbc('0x2')]},'description':{'type':Sequelize[_0x163bbc('0x2')]}}; \ No newline at end of file +const a592_0xd58c=['exports','sequelize','STRING'];(function(_0x31215b,_0xd58c18){const _0x1e0e4c=function(_0x35a0a7){while(--_0x35a0a7){_0x31215b['push'](_0x31215b['shift']());}};_0x1e0e4c(++_0xd58c18);}(a592_0xd58c,0x72));const a592_0x1e0e=function(_0x31215b,_0xd58c18){_0x31215b=_0x31215b-0x0;let _0x1e0e4c=a592_0xd58c[_0x31215b];return _0x1e0e4c;};const _0x31cb79=a592_0x1e0e;'use strict';const Sequelize=require(_0x31cb79('0x1'));module[_0x31cb79('0x0')]={'name':{'type':Sequelize[_0x31cb79('0x2')],'unique':'name','allowNull':![]},'dsn':{'type':Sequelize[_0x31cb79('0x2')]},'description':{'type':Sequelize[_0x31cb79('0x2')]}}; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.controller.js b/server/api/squareOdbc/squareOdbc.controller.js index 8b099e4..c96b2d5 100644 --- a/server/api/squareOdbc/squareOdbc.controller.js +++ b/server/api/squareOdbc/squareOdbc.controller.js @@ -1 +1 @@ -const a593_0x2b19=['dsn','VIRTUAL','intersection','user','show','closeSync','../../config/logger','SquareOdbc','destroy','catch','merge','name','model','findOne','autoAssociation','include','../../components/parsers/qs','length','like','options','type','includeAll','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','query','error','UserProfileSection','sequelize','create','get','index','params','role','filter','../../mysqldb','send','update','keys','limit','Unable\x20to\x20retrieve\x20the\x20current\x20user','rows','UserProfileResource','sendStatus','Content-Range','set','map','rawAttributes','pick','fieldName','test','lodash','ODBC','attributes','sort','filters','count','order','odbc','end','json','then','where','status','body','fields','offset','api','key'];(function(_0xb35746,_0x2b1985){const _0x4d460e=function(_0x15f609){while(--_0x15f609){_0xb35746['push'](_0xb35746['shift']());}};_0x4d460e(++_0x2b1985);}(a593_0x2b19,0xe3));const a593_0x4d46=function(_0xb35746,_0x2b1985){_0xb35746=_0xb35746-0x0;let _0x4d460e=a593_0x2b19[_0xb35746];return _0x4d460e;};const _0x306114=a593_0x4d46;'use strict';const _=require(_0x306114('0x17')),qs=require(_0x306114('0x39')),logger=require(_0x306114('0x2f'))(_0x306114('0x27')),db=require(_0x306114('0x7'))['db'],{Op}=require(_0x306114('0x0'));function respondWithResult(_0x15f609,_0x291292){return _0x291292=_0x291292||0xc8,function(_0x16515b){const _0x185d00=a593_0x4d46;if(_0x16515b)return _0x15f609[_0x185d00('0x23')](_0x291292)[_0x185d00('0x20')](_0x16515b);};}function respondWithFilteredResult(_0x5844e8,_0x3839db){return function(_0x397789){const _0x27bf8f=a593_0x4d46;if(_0x397789){const _0x3c6e58=_0x397789[_0x27bf8f('0x1c')],_0x18fd92=_0x3839db[_0x27bf8f('0x26')];let _0x426fcb=_0x3839db[_0x27bf8f('0x26')]+_0x3839db[_0x27bf8f('0xb')],_0x52df05;return _0x426fcb>=_0x3c6e58?(_0x426fcb=_0x3c6e58,_0x52df05=0xc8):_0x52df05=0xce,_0x5844e8['status'](_0x52df05),_0x5844e8[_0x27bf8f('0x11')](_0x27bf8f('0x10'),_0x18fd92+'-'+_0x426fcb+'/'+_0x3c6e58)[_0x27bf8f('0x20')](_0x397789);}return null;};}function saveUpdates(_0x37ece5){return function(_0x2f0be4){const _0x1dcd56=a593_0x4d46;if(_0x2f0be4)return _0x2f0be4[_0x1dcd56('0x9')](_0x37ece5)[_0x1dcd56('0x21')](function(_0x573402){return _0x573402;});return null;};}function removeEntity(_0x2225b9){return function(_0x29ce2f){const _0x2263a0=a593_0x4d46;if(_0x29ce2f)return _0x29ce2f[_0x2263a0('0x31')]()[_0x2263a0('0x21')](function(){const _0x4d9b47=_0x2263a0,_0x597b66=_0x29ce2f['get']({'plain':!![]}),_0x73861c=_0x4d9b47('0x18');return db[_0x4d9b47('0xe')][_0x4d9b47('0x31')]({'where':{'type':_0x73861c,'resourceId':_0x597b66['id']}})['then'](function(){return _0x29ce2f;});})['then'](function(){const _0x389ff2=_0x2263a0;_0x2225b9[_0x389ff2('0x23')](0xcc)[_0x389ff2('0x1f')]();});};}function handleEntityNotFound(_0x557f3b){return function(_0x509356){const _0x27447c=a593_0x4d46;return!_0x509356&&_0x557f3b[_0x27447c('0xf')](0x194),_0x509356;};}function handleError(_0x4685cc,_0x382ea8){return _0x382ea8=_0x382ea8||0x1f4,function(_0x42d0a9){const _0x249816=a593_0x4d46;logger[_0x249816('0x41')](_0x42d0a9['stack']),_0x42d0a9['name']&&delete _0x42d0a9['name'],_0x4685cc[_0x249816('0x23')](_0x382ea8)[_0x249816('0x8')](_0x42d0a9);};}exports[_0x306114('0x3')]=function(_0x11ee68,_0x169ba0){const _0xa9659=_0x306114;let _0x78149e={};const _0x5a0e94={},_0x179507={'count':0x0,'rows':[]},_0x2d4e93=_[_0xa9659('0x12')](db['SquareOdbc'][_0xa9659('0x13')],function(_0x597db1){const _0x21f960=_0xa9659;return{'name':_0x597db1[_0x21f960('0x15')],'type':_0x597db1[_0x21f960('0x3d')][_0x21f960('0x28')]};});_0x5a0e94['model']=_[_0xa9659('0x12')](_0x2d4e93,_0xa9659('0x34')),_0x5a0e94[_0xa9659('0x40')]=_[_0xa9659('0xa')](_0x11ee68[_0xa9659('0x40')]),_0x5a0e94['filters']=_[_0xa9659('0x2b')](_0x5a0e94[_0xa9659('0x35')],_0x5a0e94[_0xa9659('0x40')]),_0x78149e[_0xa9659('0x19')]=_[_0xa9659('0x2b')](_0x5a0e94[_0xa9659('0x35')],qs[_0xa9659('0x25')](_0x11ee68[_0xa9659('0x40')][_0xa9659('0x25')])),_0x78149e[_0xa9659('0x19')]=_0x78149e[_0xa9659('0x19')][_0xa9659('0x3a')]?_0x78149e[_0xa9659('0x19')]:_0x5a0e94[_0xa9659('0x35')];typeof _0x11ee68['query']['nolimit']==='undefined'&&(_0x78149e[_0xa9659('0xb')]=qs[_0xa9659('0xb')](_0x11ee68['query']['limit']),_0x78149e[_0xa9659('0x26')]=qs[_0xa9659('0x26')](_0x11ee68[_0xa9659('0x40')][_0xa9659('0x26')]));_0x78149e[_0xa9659('0x1d')]=qs['sort'](_0x11ee68[_0xa9659('0x40')][_0xa9659('0x1a')]),_0x78149e[_0xa9659('0x22')]=qs[_0xa9659('0x1b')](_[_0xa9659('0x14')](_0x11ee68[_0xa9659('0x40')],_0x5a0e94[_0xa9659('0x1b')]),_0x2d4e93);_0x11ee68['query'][_0xa9659('0x6')]&&(_0x78149e[_0xa9659('0x22')]=_[_0xa9659('0x33')](_0x78149e['where'],{[Op['or']]:_['map'](_0x2d4e93,function(_0xdb28d0){const _0x24fad6=_0xa9659;if(_0xdb28d0[_0x24fad6('0x3d')]!==_0x24fad6('0x2a')){const _0x12cc91={};return _0x12cc91[_0xdb28d0[_0x24fad6('0x34')]]={[Op[_0x24fad6('0x3b')]]:'%'+_0x11ee68[_0x24fad6('0x40')][_0x24fad6('0x6')]+'%'},_0x12cc91;}})}));_0x78149e=_[_0xa9659('0x33')]({},_0x78149e,_0x11ee68[_0xa9659('0x3c')]);const _0x481394={'where':_0x78149e[_0xa9659('0x22')]};return db[_0xa9659('0x30')][_0xa9659('0x1c')](_0x481394)[_0xa9659('0x21')](function(_0x396b1d){const _0x398c45=_0xa9659;return _0x179507['count']=_0x396b1d,_0x11ee68['query']['includeAll']&&(_0x78149e[_0x398c45('0x38')]=[{'all':!![]}]),db[_0x398c45('0x30')]['findAll'](_0x78149e);})[_0xa9659('0x21')](function(_0x331b71){const _0x5625b4=_0xa9659;return _0x179507[_0x5625b4('0xd')]=_0x331b71,_0x179507;})[_0xa9659('0x21')](respondWithFilteredResult(_0x169ba0,_0x78149e))[_0xa9659('0x32')](handleError(_0x169ba0,null));},exports[_0x306114('0x2d')]=function(_0x376d92,_0x3068aa){const _0xc80fcf=_0x306114;let _0x519ec3={'raw':!![],'where':{'id':_0x376d92[_0xc80fcf('0x4')]['id']}};const _0x30ce30={};return _0x30ce30[_0xc80fcf('0x35')]=_[_0xc80fcf('0xa')](db['SquareOdbc'][_0xc80fcf('0x13')]),_0x30ce30[_0xc80fcf('0x40')]=_[_0xc80fcf('0xa')](_0x376d92['query']),_0x30ce30[_0xc80fcf('0x1b')]=_[_0xc80fcf('0x2b')](_0x30ce30[_0xc80fcf('0x35')],_0x30ce30[_0xc80fcf('0x40')]),_0x519ec3[_0xc80fcf('0x19')]=_['intersection'](_0x30ce30[_0xc80fcf('0x35')],qs[_0xc80fcf('0x25')](_0x376d92[_0xc80fcf('0x40')][_0xc80fcf('0x25')])),_0x519ec3[_0xc80fcf('0x19')]=_0x519ec3[_0xc80fcf('0x19')][_0xc80fcf('0x3a')]?_0x519ec3[_0xc80fcf('0x19')]:_0x30ce30[_0xc80fcf('0x35')],_0x376d92[_0xc80fcf('0x40')][_0xc80fcf('0x3e')]&&(_0x519ec3[_0xc80fcf('0x38')]=[{'all':!![]}]),_0x519ec3=_[_0xc80fcf('0x33')]({},_0x519ec3,_0x376d92[_0xc80fcf('0x3c')]),db[_0xc80fcf('0x30')]['findOne'](_0x519ec3)[_0xc80fcf('0x21')](handleEntityNotFound(_0x3068aa,null))[_0xc80fcf('0x21')](respondWithResult(_0x3068aa,null))[_0xc80fcf('0x32')](handleError(_0x3068aa,null));},exports[_0x306114('0x1')]=function(_0x34a8c5,_0x227c75){const _0x34ce4d=_0x306114;return db[_0x34ce4d('0x30')][_0x34ce4d('0x1')](_0x34a8c5[_0x34ce4d('0x24')],{})[_0x34ce4d('0x21')](function(_0x1015d9){const _0x3910b3=_0x34ce4d,_0x4c712a=_0x34a8c5['user'][_0x3910b3('0x2')]({'plain':!![]});if(!_0x4c712a)throw new Error(_0x3910b3('0xc'));if(_0x4c712a[_0x3910b3('0x5')]===_0x3910b3('0x2c')){const _0x51d336=_0x1015d9['get']({'plain':!![]}),_0x1aa99d=_0x3910b3('0x18');return db[_0x3910b3('0x42')][_0x3910b3('0x36')]({'where':{'name':_0x1aa99d,'userProfileId':_0x4c712a['userProfileId']},'raw':!![]})[_0x3910b3('0x21')](function(_0x4c1b5c){const _0x529d81=_0x3910b3;return _0x4c1b5c&&_0x4c1b5c[_0x529d81('0x37')]===0x0?db['UserProfileResource'][_0x529d81('0x1')]({'name':_0x51d336[_0x529d81('0x34')],'resourceId':_0x51d336['id'],'type':_0x4c1b5c['name'],'sectionId':_0x4c1b5c['id']},{})[_0x529d81('0x21')](function(){return _0x1015d9;}):_0x1015d9;})[_0x3910b3('0x32')](function(_0x28763e){const _0x4226ce=_0x3910b3;logger[_0x4226ce('0x41')](_0x4226ce('0x3f'),_0x28763e);throw _0x28763e;});}return _0x1015d9;})[_0x34ce4d('0x21')](respondWithResult(_0x227c75,0xc9))[_0x34ce4d('0x32')](handleError(_0x227c75,null));},exports[_0x306114('0x9')]=function(_0x42a6af,_0x876cd0){const _0x3b2f42=_0x306114;return _0x42a6af[_0x3b2f42('0x24')]['id']&&delete _0x42a6af['body']['id'],db[_0x3b2f42('0x30')][_0x3b2f42('0x36')]({'where':{'id':_0x42a6af['params']['id']}})['then'](handleEntityNotFound(_0x876cd0,null))[_0x3b2f42('0x21')](saveUpdates(_0x42a6af[_0x3b2f42('0x24')],null))[_0x3b2f42('0x21')](respondWithResult(_0x876cd0,null))['catch'](handleError(_0x876cd0,null));},exports[_0x306114('0x31')]=function(_0xfa22ff,_0x320dc1){const _0x4a27f7=_0x306114;return db['SquareOdbc'][_0x4a27f7('0x36')]({'where':{'id':_0xfa22ff[_0x4a27f7('0x4')]['id']}})[_0x4a27f7('0x21')](handleEntityNotFound(_0x320dc1,null))['then'](removeEntity(_0x320dc1,null))[_0x4a27f7('0x32')](handleError(_0x320dc1,null));},exports[_0x306114('0x16')]=function(_0x4bbca6,_0x1272b8){const _0x40f9ae=_0x306114;return db[_0x40f9ae('0x30')][_0x40f9ae('0x36')]({'where':{'id':_0x4bbca6[_0x40f9ae('0x4')]['id']},'attributes':['id',_0x40f9ae('0x29')]})[_0x40f9ae('0x21')](handleEntityNotFound(_0x1272b8,null))['then'](function(_0x5c53d2){const _0x1db903=_0x40f9ae;if(_0x5c53d2){const _0x14323e=require(_0x1db903('0x1e'))();return _0x14323e['openSync'](_0x5c53d2['dsn']),_0x14323e[_0x1db903('0x2e')](),_0x5c53d2;}})[_0x40f9ae('0x21')](respondWithResult(_0x1272b8,null))['catch'](handleError(_0x1272b8,null));}; \ No newline at end of file +const a593_0x22cb=['include','autoAssociation','test','ODBC','findOne','length','SquareOdbc','update','openSync','offset','body','Unable\x20to\x20retrieve\x20the\x20current\x20user','model','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','options','limit','findAll','keys','intersection','filter','map','attributes','sort','create','filters','user','api','count','where','UserProfileResource','status','like','VIRTUAL','then','fields','userProfileId','params','lodash','key','name','get','nolimit','dsn','odbc','type','UserProfileSection','rows','stack','sequelize','fieldName','destroy','set','order','Content-Range','merge','catch','../../components/parsers/qs','includeAll','send','query','../../mysqldb','json','error'];(function(_0x48658b,_0x22cbcd){const _0x122a1d=function(_0x519ab0){while(--_0x519ab0){_0x48658b['push'](_0x48658b['shift']());}};_0x122a1d(++_0x22cbcd);}(a593_0x22cb,0xcd));const a593_0x122a=function(_0x48658b,_0x22cbcd){_0x48658b=_0x48658b-0x0;let _0x122a1d=a593_0x22cb[_0x48658b];return _0x122a1d;};const _0x130d8c=a593_0x122a;'use strict';const _=require(_0x130d8c('0x15')),qs=require(_0x130d8c('0x28')),logger=require('../../config/logger')(_0x130d8c('0xa')),db=require(_0x130d8c('0x2c'))['db'],{Op}=require(_0x130d8c('0x20'));function respondWithResult(_0x519ab0,_0x4bce12){return _0x4bce12=_0x4bce12||0xc8,function(_0x249d9f){const _0x45f196=a593_0x122a;if(_0x249d9f)return _0x519ab0[_0x45f196('0xe')](_0x4bce12)[_0x45f196('0x2d')](_0x249d9f);};}function respondWithFilteredResult(_0x510bd0,_0x848e67){return function(_0x29243c){const _0x2a8bc9=a593_0x122a;if(_0x29243c){const _0x14ac0b=_0x29243c[_0x2a8bc9('0xb')],_0x104eee=_0x848e67[_0x2a8bc9('0x38')];let _0x56e8c8=_0x848e67[_0x2a8bc9('0x38')]+_0x848e67[_0x2a8bc9('0x3e')],_0x4c98ee;return _0x56e8c8>=_0x14ac0b?(_0x56e8c8=_0x14ac0b,_0x4c98ee=0xc8):_0x4c98ee=0xce,_0x510bd0[_0x2a8bc9('0xe')](_0x4c98ee),_0x510bd0[_0x2a8bc9('0x23')](_0x2a8bc9('0x25'),_0x104eee+'-'+_0x56e8c8+'/'+_0x14ac0b)[_0x2a8bc9('0x2d')](_0x29243c);}return null;};}function saveUpdates(_0x67c85f){return function(_0x4df00c){const _0x25b68a=a593_0x122a;if(_0x4df00c)return _0x4df00c[_0x25b68a('0x36')](_0x67c85f)['then'](function(_0x29d067){return _0x29d067;});return null;};}function removeEntity(_0x2ef8cd){return function(_0x15c5e0){const _0x22095f=a593_0x122a;if(_0x15c5e0)return _0x15c5e0[_0x22095f('0x22')]()['then'](function(){const _0x14e06b=_0x22095f,_0x10adcb=_0x15c5e0[_0x14e06b('0x18')]({'plain':!![]}),_0x4894ca=_0x14e06b('0x32');return db[_0x14e06b('0xd')][_0x14e06b('0x22')]({'where':{'type':_0x4894ca,'resourceId':_0x10adcb['id']}})[_0x14e06b('0x11')](function(){return _0x15c5e0;});})[_0x22095f('0x11')](function(){const _0x39bdef=_0x22095f;_0x2ef8cd[_0x39bdef('0xe')](0xcc)['end']();});};}function handleEntityNotFound(_0x350ce7){return function(_0x14ba4e){return!_0x14ba4e&&_0x350ce7['sendStatus'](0x194),_0x14ba4e;};}function handleError(_0x5d918c,_0x5e20cf){return _0x5e20cf=_0x5e20cf||0x1f4,function(_0x39d1bb){const _0x171c51=a593_0x122a;logger[_0x171c51('0x2e')](_0x39d1bb[_0x171c51('0x1f')]),_0x39d1bb[_0x171c51('0x17')]&&delete _0x39d1bb[_0x171c51('0x17')],_0x5d918c[_0x171c51('0xe')](_0x5e20cf)[_0x171c51('0x2a')](_0x39d1bb);};}exports['index']=function(_0x143503,_0x3cd79d){const _0x1db959=_0x130d8c;let _0x5093de={};const _0x3da8b8={},_0x274706={'count':0x0,'rows':[]},_0x222e76=_[_0x1db959('0x4')](db[_0x1db959('0x35')]['rawAttributes'],function(_0xbe3c66){const _0x2bf904=_0x1db959;return{'name':_0xbe3c66[_0x2bf904('0x21')],'type':_0xbe3c66[_0x2bf904('0x1c')][_0x2bf904('0x16')]};});_0x3da8b8[_0x1db959('0x3b')]=_[_0x1db959('0x4')](_0x222e76,_0x1db959('0x17')),_0x3da8b8['query']=_[_0x1db959('0x1')](_0x143503[_0x1db959('0x2b')]),_0x3da8b8[_0x1db959('0x8')]=_[_0x1db959('0x2')](_0x3da8b8[_0x1db959('0x3b')],_0x3da8b8['query']),_0x5093de[_0x1db959('0x5')]=_['intersection'](_0x3da8b8[_0x1db959('0x3b')],qs['fields'](_0x143503['query']['fields'])),_0x5093de[_0x1db959('0x5')]=_0x5093de[_0x1db959('0x5')][_0x1db959('0x34')]?_0x5093de[_0x1db959('0x5')]:_0x3da8b8['model'];typeof _0x143503[_0x1db959('0x2b')][_0x1db959('0x19')]==='undefined'&&(_0x5093de[_0x1db959('0x3e')]=qs['limit'](_0x143503[_0x1db959('0x2b')][_0x1db959('0x3e')]),_0x5093de[_0x1db959('0x38')]=qs[_0x1db959('0x38')](_0x143503[_0x1db959('0x2b')][_0x1db959('0x38')]));_0x5093de[_0x1db959('0x24')]=qs[_0x1db959('0x6')](_0x143503[_0x1db959('0x2b')][_0x1db959('0x6')]),_0x5093de[_0x1db959('0xc')]=qs[_0x1db959('0x8')](_['pick'](_0x143503['query'],_0x3da8b8[_0x1db959('0x8')]),_0x222e76);_0x143503[_0x1db959('0x2b')]['filter']&&(_0x5093de['where']=_[_0x1db959('0x26')](_0x5093de[_0x1db959('0xc')],{[Op['or']]:_['map'](_0x222e76,function(_0x127496){const _0x2cf77b=_0x1db959;if(_0x127496[_0x2cf77b('0x1c')]!==_0x2cf77b('0x10')){const _0x4cfe4c={};return _0x4cfe4c[_0x127496[_0x2cf77b('0x17')]]={[Op[_0x2cf77b('0xf')]]:'%'+_0x143503['query'][_0x2cf77b('0x3')]+'%'},_0x4cfe4c;}})}));_0x5093de=_[_0x1db959('0x26')]({},_0x5093de,_0x143503[_0x1db959('0x3d')]);const _0x412b34={'where':_0x5093de['where']};return db[_0x1db959('0x35')][_0x1db959('0xb')](_0x412b34)['then'](function(_0x5c8b55){const _0x257112=_0x1db959;return _0x274706['count']=_0x5c8b55,_0x143503[_0x257112('0x2b')]['includeAll']&&(_0x5093de[_0x257112('0x2f')]=[{'all':!![]}]),db[_0x257112('0x35')][_0x257112('0x0')](_0x5093de);})[_0x1db959('0x11')](function(_0xc031b7){const _0x518d9d=_0x1db959;return _0x274706[_0x518d9d('0x1e')]=_0xc031b7,_0x274706;})['then'](respondWithFilteredResult(_0x3cd79d,_0x5093de))['catch'](handleError(_0x3cd79d,null));},exports['show']=function(_0x16dcde,_0x38203a){const _0x2c21a9=_0x130d8c;let _0x1f1075={'raw':!![],'where':{'id':_0x16dcde[_0x2c21a9('0x14')]['id']}};const _0x2e8d75={};return _0x2e8d75['model']=_[_0x2c21a9('0x1')](db[_0x2c21a9('0x35')]['rawAttributes']),_0x2e8d75[_0x2c21a9('0x2b')]=_['keys'](_0x16dcde[_0x2c21a9('0x2b')]),_0x2e8d75[_0x2c21a9('0x8')]=_[_0x2c21a9('0x2')](_0x2e8d75[_0x2c21a9('0x3b')],_0x2e8d75[_0x2c21a9('0x2b')]),_0x1f1075['attributes']=_[_0x2c21a9('0x2')](_0x2e8d75['model'],qs[_0x2c21a9('0x12')](_0x16dcde[_0x2c21a9('0x2b')]['fields'])),_0x1f1075[_0x2c21a9('0x5')]=_0x1f1075[_0x2c21a9('0x5')][_0x2c21a9('0x34')]?_0x1f1075[_0x2c21a9('0x5')]:_0x2e8d75[_0x2c21a9('0x3b')],_0x16dcde[_0x2c21a9('0x2b')][_0x2c21a9('0x29')]&&(_0x1f1075['include']=[{'all':!![]}]),_0x1f1075=_[_0x2c21a9('0x26')]({},_0x1f1075,_0x16dcde['options']),db[_0x2c21a9('0x35')][_0x2c21a9('0x33')](_0x1f1075)['then'](handleEntityNotFound(_0x38203a,null))[_0x2c21a9('0x11')](respondWithResult(_0x38203a,null))[_0x2c21a9('0x27')](handleError(_0x38203a,null));},exports[_0x130d8c('0x7')]=function(_0x2e22a7,_0x297bd1){const _0x3e6873=_0x130d8c;return db[_0x3e6873('0x35')][_0x3e6873('0x7')](_0x2e22a7[_0x3e6873('0x39')],{})[_0x3e6873('0x11')](function(_0x1819f4){const _0x5b604c=_0x3e6873,_0x35dff1=_0x2e22a7[_0x5b604c('0x9')][_0x5b604c('0x18')]({'plain':!![]});if(!_0x35dff1)throw new Error(_0x5b604c('0x3a'));if(_0x35dff1['role']===_0x5b604c('0x9')){const _0x2ba687=_0x1819f4[_0x5b604c('0x18')]({'plain':!![]}),_0x2ff71e=_0x5b604c('0x32');return db[_0x5b604c('0x1d')][_0x5b604c('0x33')]({'where':{'name':_0x2ff71e,'userProfileId':_0x35dff1[_0x5b604c('0x13')]},'raw':!![]})[_0x5b604c('0x11')](function(_0x238e6e){const _0x4fc478=_0x5b604c;return _0x238e6e&&_0x238e6e[_0x4fc478('0x30')]===0x0?db['UserProfileResource'][_0x4fc478('0x7')]({'name':_0x2ba687[_0x4fc478('0x17')],'resourceId':_0x2ba687['id'],'type':_0x238e6e[_0x4fc478('0x17')],'sectionId':_0x238e6e['id']},{})[_0x4fc478('0x11')](function(){return _0x1819f4;}):_0x1819f4;})[_0x5b604c('0x27')](function(_0x28af9c){const _0x2ef407=_0x5b604c;logger[_0x2ef407('0x2e')](_0x2ef407('0x3c'),_0x28af9c);throw _0x28af9c;});}return _0x1819f4;})[_0x3e6873('0x11')](respondWithResult(_0x297bd1,0xc9))[_0x3e6873('0x27')](handleError(_0x297bd1,null));},exports[_0x130d8c('0x36')]=function(_0x42cdee,_0x17c135){const _0xa58197=_0x130d8c;return _0x42cdee[_0xa58197('0x39')]['id']&&delete _0x42cdee[_0xa58197('0x39')]['id'],db[_0xa58197('0x35')][_0xa58197('0x33')]({'where':{'id':_0x42cdee['params']['id']}})[_0xa58197('0x11')](handleEntityNotFound(_0x17c135,null))[_0xa58197('0x11')](saveUpdates(_0x42cdee[_0xa58197('0x39')],null))['then'](respondWithResult(_0x17c135,null))[_0xa58197('0x27')](handleError(_0x17c135,null));},exports[_0x130d8c('0x22')]=function(_0x384324,_0x2df61c){const _0x427c94=_0x130d8c;return db[_0x427c94('0x35')]['findOne']({'where':{'id':_0x384324['params']['id']}})['then'](handleEntityNotFound(_0x2df61c,null))[_0x427c94('0x11')](removeEntity(_0x2df61c,null))[_0x427c94('0x27')](handleError(_0x2df61c,null));},exports[_0x130d8c('0x31')]=function(_0x10ff80,_0x5ea391){const _0x4c8abe=_0x130d8c;return db[_0x4c8abe('0x35')]['findOne']({'where':{'id':_0x10ff80[_0x4c8abe('0x14')]['id']},'attributes':['id',_0x4c8abe('0x1a')]})[_0x4c8abe('0x11')](handleEntityNotFound(_0x5ea391,null))['then'](function(_0x4bf707){const _0x22e701=_0x4c8abe;if(_0x4bf707){const _0x332e9e=require(_0x22e701('0x1b'))();return _0x332e9e[_0x22e701('0x37')](_0x4bf707[_0x22e701('0x1a')]),_0x332e9e['closeSync'](),_0x4bf707;}})[_0x4c8abe('0x11')](respondWithResult(_0x5ea391,null))[_0x4c8abe('0x27')](handleError(_0x5ea391,null));}; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.model.js b/server/api/squareOdbc/squareOdbc.model.js index 60aeb5c..6a4fcab 100644 --- a/server/api/squareOdbc/squareOdbc.model.js +++ b/server/api/squareOdbc/squareOdbc.model.js @@ -1 +1 @@ -const a594_0x521c=['./squareOdbc.attributes','SquareOdbc'];(function(_0x5371e2,_0x521ca0){const _0xe1d955=function(_0x20bd69){while(--_0x20bd69){_0x5371e2['push'](_0x5371e2['shift']());}};_0xe1d955(++_0x521ca0);}(a594_0x521c,0x8b));const a594_0xe1d9=function(_0x5371e2,_0x521ca0){_0x5371e2=_0x5371e2-0x0;let _0xe1d955=a594_0x521c[_0x5371e2];return _0xe1d955;};const _0x3f4c0b=a594_0xe1d9;'use strict';const attributes=require(_0x3f4c0b('0x1'));module['exports']=function(_0x20bd69){const _0x3de076=_0x3f4c0b,_0x2d02d9=_0x20bd69['define'](_0x3de076('0x0'),attributes,{'tableName':'square_odbc','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2d02d9;}; \ No newline at end of file +const a594_0x15cf=['square_odbc','define','./squareOdbc.attributes','SquareOdbc','exports'];(function(_0x487488,_0x15cf2a){const _0x440d96=function(_0x189afc){while(--_0x189afc){_0x487488['push'](_0x487488['shift']());}};_0x440d96(++_0x15cf2a);}(a594_0x15cf,0x132));const a594_0x440d=function(_0x487488,_0x15cf2a){_0x487488=_0x487488-0x0;let _0x440d96=a594_0x15cf[_0x487488];return _0x440d96;};const _0x172f51=a594_0x440d;'use strict';const attributes=require(_0x172f51('0x1'));module[_0x172f51('0x3')]=function(_0x189afc){const _0x3fe373=_0x172f51,_0x2a4406=_0x189afc[_0x3fe373('0x0')](_0x3fe373('0x2'),attributes,{'tableName':_0x3fe373('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2a4406;}; \ No newline at end of file diff --git a/server/api/squareOdbc/squareOdbc.rpc.js b/server/api/squareOdbc/squareOdbc.rpc.js index cdc9d71..f1ceb1a 100644 --- a/server/api/squareOdbc/squareOdbc.rpc.js +++ b/server/api/squareOdbc/squareOdbc.rpc.js @@ -1 +1 @@ -const a595_0x5c39=['raw','message','include','attributes','model','map','options','where','ShowSquareOdbc','../../config/logger','lodash','then','error','../../mysqldb'];(function(_0x116209,_0x5c39ea){const _0x4f90b2=function(_0x57f03d){while(--_0x57f03d){_0x116209['push'](_0x116209['shift']());}};_0x4f90b2(++_0x5c39ea);}(a595_0x5c39,0x11f));const a595_0x4f90=function(_0x116209,_0x5c39ea){_0x116209=_0x116209-0x0;let _0x4f90b2=a595_0x5c39[_0x116209];return _0x4f90b2;};const _0x293465=a595_0x4f90;'use strict';const db=require(_0x293465('0x6'))['db'],logger=require(_0x293465('0x2'))('rpc'),_=require(_0x293465('0x3'));exports[_0x293465('0x1')]=function(_0x57f03d){const _0x28e932=this;return new Promise(function(_0xc39f38,_0x188905){const _0x4eb3cd=a595_0x4f90;return db['SquareOdbc']['findOne']({'raw':_0x57f03d[_0x4eb3cd('0xd')]?_0x57f03d[_0x4eb3cd('0xd')][_0x4eb3cd('0x7')]===undefined?!![]:![]:!![],'where':_0x57f03d[_0x4eb3cd('0xd')]?_0x57f03d[_0x4eb3cd('0xd')][_0x4eb3cd('0x0')]||null:null,'attributes':_0x57f03d[_0x4eb3cd('0xd')]?_0x57f03d[_0x4eb3cd('0xd')][_0x4eb3cd('0xa')]||null:null,'include':_0x57f03d[_0x4eb3cd('0xd')]?_0x57f03d[_0x4eb3cd('0xd')][_0x4eb3cd('0x9')]?_[_0x4eb3cd('0xc')](_0x57f03d[_0x4eb3cd('0xd')][_0x4eb3cd('0x9')],function(_0x204c90){const _0x5a1636=_0x4eb3cd;return{'model':db[_0x204c90['model']],'as':_0x204c90['as'],'attributes':_0x204c90[_0x5a1636('0xa')],'include':_0x204c90['include']?_[_0x5a1636('0xc')](_0x204c90[_0x5a1636('0x9')],function(_0xd60de){const _0x441aac=_0x5a1636;return{'model':db[_0xd60de[_0x441aac('0xb')]],'as':_0xd60de['as'],'attributes':_0xd60de[_0x441aac('0xa')],'include':_0xd60de[_0x441aac('0x9')]?_[_0x441aac('0xc')](_0xd60de[_0x441aac('0x9')],function(_0x23e0fa){const _0x3ee22d=_0x441aac;return{'model':db[_0x23e0fa['model']],'as':_0x23e0fa['as'],'attributes':_0x23e0fa[_0x3ee22d('0xa')]};}):[]};}):[]};}):[]:[]})[_0x4eb3cd('0x4')](function(_0x119330){const _0x52d440=_0x4eb3cd;logger['info']('ShowSquareOdbc',_0x57f03d),logger['debug'](_0x52d440('0x1'),_0x57f03d,JSON['stringify'](_0x119330)),_0xc39f38(_0x119330);})['catch'](function(_0xee84a6){const _0xe0b0e5=_0x4eb3cd;logger[_0xe0b0e5('0x5')](_0xe0b0e5('0x1'),_0xee84a6[_0xe0b0e5('0x8')],_0x57f03d),_0x188905(_0x28e932['error'](0x1f4,_0xee84a6[_0xe0b0e5('0x8')]));});});}; \ No newline at end of file +const a595_0x2537=['findOne','lodash','error','model','ShowSquareOdbc','catch','debug','then','../../mysqldb','options','../../config/logger','attributes','map','include','rpc','raw','where'];(function(_0x5c9573,_0x2537a4){const _0x1c7414=function(_0x14cf10){while(--_0x14cf10){_0x5c9573['push'](_0x5c9573['shift']());}};_0x1c7414(++_0x2537a4);}(a595_0x2537,0x138));const a595_0x1c74=function(_0x5c9573,_0x2537a4){_0x5c9573=_0x5c9573-0x0;let _0x1c7414=a595_0x2537[_0x5c9573];return _0x1c7414;};const _0x5801ee=a595_0x1c74;'use strict';const db=require(_0x5801ee('0x2'))['db'],logger=require(_0x5801ee('0x4'))(_0x5801ee('0x8')),_=require(_0x5801ee('0xc'));exports[_0x5801ee('0xf')]=function(_0x14cf10){const _0x3fa3d1=this;return new Promise(function(_0x3948cf,_0x4d034b){const _0x31f785=a595_0x1c74;return db['SquareOdbc'][_0x31f785('0xb')]({'raw':_0x14cf10[_0x31f785('0x3')]?_0x14cf10['options'][_0x31f785('0x9')]===undefined?!![]:![]:!![],'where':_0x14cf10['options']?_0x14cf10[_0x31f785('0x3')][_0x31f785('0xa')]||null:null,'attributes':_0x14cf10['options']?_0x14cf10[_0x31f785('0x3')][_0x31f785('0x5')]||null:null,'include':_0x14cf10[_0x31f785('0x3')]?_0x14cf10[_0x31f785('0x3')][_0x31f785('0x7')]?_[_0x31f785('0x6')](_0x14cf10[_0x31f785('0x3')][_0x31f785('0x7')],function(_0x3a42b6){const _0x436f34=_0x31f785;return{'model':db[_0x3a42b6['model']],'as':_0x3a42b6['as'],'attributes':_0x3a42b6[_0x436f34('0x5')],'include':_0x3a42b6[_0x436f34('0x7')]?_[_0x436f34('0x6')](_0x3a42b6[_0x436f34('0x7')],function(_0x4ac9db){const _0x28efd9=_0x436f34;return{'model':db[_0x4ac9db[_0x28efd9('0xe')]],'as':_0x4ac9db['as'],'attributes':_0x4ac9db[_0x28efd9('0x5')],'include':_0x4ac9db[_0x28efd9('0x7')]?_[_0x28efd9('0x6')](_0x4ac9db[_0x28efd9('0x7')],function(_0xee34fa){const _0x40a634=_0x28efd9;return{'model':db[_0xee34fa[_0x40a634('0xe')]],'as':_0xee34fa['as'],'attributes':_0xee34fa[_0x40a634('0x5')]};}):[]};}):[]};}):[]:[]})[_0x31f785('0x1')](function(_0x196590){const _0x2e8cb8=_0x31f785;logger['info'](_0x2e8cb8('0xf'),_0x14cf10),logger[_0x2e8cb8('0x0')](_0x2e8cb8('0xf'),_0x14cf10,JSON['stringify'](_0x196590)),_0x3948cf(_0x196590);})[_0x31f785('0x10')](function(_0x3f1651){const _0x1b058a=_0x31f785;logger['error'](_0x1b058a('0xf'),_0x3f1651['message'],_0x14cf10),_0x4d034b(_0x3fa3d1[_0x1b058a('0xd')](0x1f4,_0x3f1651['message']));});});}; \ No newline at end of file diff --git a/server/api/squareProject/index.js b/server/api/squareProject/index.js index 2866f80..a09ae2b 100644 --- a/server/api/squareProject/index.js +++ b/server/api/squareProject/index.js @@ -1 +1 @@ -const a596_0x50db=['delete','update','get','addUsers','removeUsers','index','put','./squareProject.controller','/:id/users','create','post','isAuthenticated','/:id','getUsers'];(function(_0x322893,_0x50db09){const _0x188684=function(_0x57e14c){while(--_0x57e14c){_0x322893['push'](_0x322893['shift']());}};_0x188684(++_0x50db09);}(a596_0x50db,0x1be));const a596_0x1886=function(_0x322893,_0x50db09){_0x322893=_0x322893-0x0;let _0x188684=a596_0x50db[_0x322893];return _0x188684;};const _0xe61469=a596_0x1886;'use strict';const express=require('express'),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0xe61469('0x9'));router['get']('/',auth[_0xe61469('0xd')](),controller[_0xe61469('0x7')]),router[_0xe61469('0x4')](_0xe61469('0x0'),auth[_0xe61469('0xd')](),controller['show']),router[_0xe61469('0x4')](_0xe61469('0xa'),auth[_0xe61469('0xd')](),controller[_0xe61469('0x1')]),router[_0xe61469('0xc')]('/',auth[_0xe61469('0xd')](),controller[_0xe61469('0xb')]),router[_0xe61469('0xc')](_0xe61469('0xa'),auth[_0xe61469('0xd')](),controller[_0xe61469('0x5')]),router[_0xe61469('0x8')](_0xe61469('0x0'),auth['isAuthenticated'](),controller[_0xe61469('0x3')]),router[_0xe61469('0x2')](_0xe61469('0x0'),auth['isAuthenticated'](),controller['destroy']),router[_0xe61469('0x2')]('/:id/users',auth[_0xe61469('0xd')](),controller[_0xe61469('0x6')]),module['exports']=router; \ No newline at end of file +const a596_0x18f6=['show','put','removeUsers','isAuthenticated','./squareProject.controller','post','/:id/users','index','update','exports','get','addUsers','create','../../components/auth/service','express','destroy','getUsers','/:id'];(function(_0xc09975,_0x18f61a){const _0x3ec78f=function(_0x1adcfd){while(--_0x1adcfd){_0xc09975['push'](_0xc09975['shift']());}};_0x3ec78f(++_0x18f61a);}(a596_0x18f6,0x102));const a596_0x3ec7=function(_0xc09975,_0x18f61a){_0xc09975=_0xc09975-0x0;let _0x3ec78f=a596_0x18f6[_0xc09975];return _0x3ec78f;};const _0x370777=a596_0x3ec7;'use strict';const express=require(_0x370777('0x8')),router=express['Router'](),auth=require(_0x370777('0x7')),controller=require(_0x370777('0x10'));router['get']('/',auth[_0x370777('0xf')](),controller[_0x370777('0x1')]),router[_0x370777('0x4')]('/:id',auth[_0x370777('0xf')](),controller[_0x370777('0xc')]),router[_0x370777('0x4')](_0x370777('0x0'),auth[_0x370777('0xf')](),controller[_0x370777('0xa')]),router[_0x370777('0x11')]('/',auth[_0x370777('0xf')](),controller[_0x370777('0x6')]),router[_0x370777('0x11')](_0x370777('0x0'),auth['isAuthenticated'](),controller[_0x370777('0x5')]),router[_0x370777('0xd')](_0x370777('0xb'),auth[_0x370777('0xf')](),controller[_0x370777('0x2')]),router['delete'](_0x370777('0xb'),auth[_0x370777('0xf')](),controller[_0x370777('0x9')]),router['delete'](_0x370777('0x0'),auth[_0x370777('0xf')](),controller[_0x370777('0xe')]),module[_0x370777('0x3')]=router; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.attributes.js b/server/api/squareProject/squareProject.attributes.js index a25c72f..027866e 100644 --- a/server/api/squareProject/squareProject.attributes.js +++ b/server/api/squareProject/squareProject.attributes.js @@ -1 +1 @@ -const a597_0x3371=['STRING','utf8','preproduction','toString','BLOB','getDataValue','TEXT','sequelize','long','production','exports'];(function(_0x25675c,_0x3371bc){const _0x3de94f=function(_0x2a7582){while(--_0x2a7582){_0x25675c['push'](_0x25675c['shift']());}};_0x3de94f(++_0x3371bc);}(a597_0x3371,0x68));const a597_0x3de9=function(_0x25675c,_0x3371bc){_0x25675c=_0x25675c-0x0;let _0x3de94f=a597_0x3371[_0x25675c];return _0x3de94f;};const _0x581ae2=a597_0x3de9;'use strict';const Sequelize=require(_0x581ae2('0x2'));module[_0x581ae2('0x5')]={'name':{'type':Sequelize[_0x581ae2('0x6')],'unique':'name','allowNull':![]},'description':{'type':Sequelize[_0x581ae2('0x6')]},'notes':{'type':Sequelize[_0x581ae2('0x1')]},'preproduction':{'type':Sequelize[_0x581ae2('0xa')](_0x581ae2('0x3')),'get':function(){const _0x48a46d=_0x581ae2;if(this['getDataValue'](_0x48a46d('0x8')))return this[_0x48a46d('0x0')](_0x48a46d('0x8'))[_0x48a46d('0x9')](_0x48a46d('0x7'));}},'production':{'type':Sequelize[_0x581ae2('0xa')](_0x581ae2('0x3')),'get':function(){const _0x1cfdb0=_0x581ae2;if(this[_0x1cfdb0('0x0')](_0x1cfdb0('0x4')))return this[_0x1cfdb0('0x0')](_0x1cfdb0('0x4'))['toString'](_0x1cfdb0('0x7'));}}}; \ No newline at end of file +const a597_0x3520=['STRING','utf8','preproduction','sequelize','getDataValue','exports','name','production','BLOB','TEXT','long'];(function(_0x7f692a,_0x352063){const _0x9cb684=function(_0x3dfb4f){while(--_0x3dfb4f){_0x7f692a['push'](_0x7f692a['shift']());}};_0x9cb684(++_0x352063);}(a597_0x3520,0x165));const a597_0x9cb6=function(_0x7f692a,_0x352063){_0x7f692a=_0x7f692a-0x0;let _0x9cb684=a597_0x3520[_0x7f692a];return _0x9cb684;};const _0x30183f=a597_0x9cb6;'use strict';const Sequelize=require(_0x30183f('0x9'));module[_0x30183f('0x0')]={'name':{'type':Sequelize[_0x30183f('0x6')],'unique':_0x30183f('0x1'),'allowNull':![]},'description':{'type':Sequelize['STRING']},'notes':{'type':Sequelize[_0x30183f('0x4')]},'preproduction':{'type':Sequelize['BLOB'](_0x30183f('0x5')),'get':function(){const _0x30aff5=_0x30183f;if(this[_0x30aff5('0xa')](_0x30aff5('0x8')))return this[_0x30aff5('0xa')](_0x30aff5('0x8'))['toString'](_0x30aff5('0x7'));}},'production':{'type':Sequelize[_0x30183f('0x3')](_0x30183f('0x5')),'get':function(){const _0xcbd7d6=_0x30183f;if(this['getDataValue'](_0xcbd7d6('0x2')))return this['getDataValue'](_0xcbd7d6('0x2'))['toString'](_0xcbd7d6('0x7'));}}}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.controller.js b/server/api/squareProject/squareProject.controller.js index dc07b79..653f646 100644 --- a/server/api/squareProject/squareProject.controller.js +++ b/server/api/squareProject/squareProject.controller.js @@ -1 +1 @@ -const a598_0x4ced=['filters','../../rediscache','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','stack','../../mysqldb','set','order','removeUsers','create','where','body','limit','user','model','rawAttributes','sendStatus','Content-Range','intersection','name','nolimit','get','VIRTUAL','sort','status','fields','params','index','SquareProjects','getUsers','findOne','count','UserProfileSection','offset','ids','sequelize','type','SquareProject','error','emit','userSquareProject:remove','undefined','fieldName','merge','json','rows','UserProfileResource','../../components/parsers/qs','filter','map','Unable\x20to\x20retrieve\x20the\x20current\x20user','include','end','show','then','options','lodash','length','addUsers','like','catch','userProfileId','update','api','destroy','findAll','includeAll','attributes','role','omit','isArray','query','./squareProject.socket','keys'];(function(_0x5221b1,_0x4ceda1){const _0x279907=function(_0x4a0599){while(--_0x4a0599){_0x5221b1['push'](_0x5221b1['shift']());}};_0x279907(++_0x4ceda1);}(a598_0x4ced,0x64));const a598_0x2799=function(_0x5221b1,_0x4ceda1){_0x5221b1=_0x5221b1-0x0;let _0x279907=a598_0x4ced[_0x5221b1];return _0x279907;};const _0x663921=a598_0x2799;'use strict';const _=require(_0x663921('0x1c')),qs=require(_0x663921('0x13')),logger=require('../../config/logger')(_0x663921('0x23')),{getSocket}=require(_0x663921('0x2f')),socket=getSocket(),db=require(_0x663921('0x32'))['db'],{Op}=require(_0x663921('0x7'));require(_0x663921('0x2c'))['register'](socket);function respondWithStatusCode(_0x4a0599,_0xc6a5c1){return _0xc6a5c1=_0xc6a5c1||0xcc,function(_0x41b69a){const _0x220e5d=a598_0x2799;if(_0x41b69a)return _0x4a0599[_0x220e5d('0x3d')](_0xc6a5c1);return _0x4a0599[_0x220e5d('0x45')](_0xc6a5c1)[_0x220e5d('0x18')]();};}function respondWithResult(_0x367c31,_0xe80074){return _0xe80074=_0xe80074||0xc8,function(_0x478434){const _0x4f4c43=a598_0x2799;if(_0x478434)return _0x367c31[_0x4f4c43('0x45')](_0xe80074)[_0x4f4c43('0x10')](_0x478434);};}function respondWithFilteredResult(_0x35e215,_0x4e2070){return function(_0x6d35ad){const _0x1d6200=a598_0x2799;if(_0x6d35ad){const _0x5703a5=_0x6d35ad[_0x1d6200('0x3')],_0x437c37=_0x4e2070[_0x1d6200('0x5')];let _0x1a1a3d=_0x4e2070['offset']+_0x4e2070['limit'],_0x53a0ce;return _0x1a1a3d>=_0x5703a5?(_0x1a1a3d=_0x5703a5,_0x53a0ce=0xc8):_0x53a0ce=0xce,_0x35e215[_0x1d6200('0x45')](_0x53a0ce),_0x35e215[_0x1d6200('0x33')](_0x1d6200('0x3e'),_0x437c37+'-'+_0x1a1a3d+'/'+_0x5703a5)[_0x1d6200('0x10')](_0x6d35ad);}return null;};}function saveUpdates(_0x4ae4d1){return function(_0xd4a355){const _0x53b1d9=a598_0x2799;if(_0xd4a355)return _0xd4a355['update'](_0x4ae4d1)[_0x53b1d9('0x1a')](function(_0x43c5af){return _0x43c5af;});return null;};}function removeEntity(_0x4757d0){return function(_0x33e6f3){const _0x4eb0ae=a598_0x2799;if(_0x33e6f3)return _0x33e6f3['destroy']()[_0x4eb0ae('0x1a')](function(){const _0x5b60ef=_0x4eb0ae,_0x18a72f=_0x33e6f3[_0x5b60ef('0x42')]({'plain':!![]}),_0x426772=_0x5b60ef('0x0');return db[_0x5b60ef('0x12')][_0x5b60ef('0x24')]({'where':{'type':_0x426772,'resourceId':_0x18a72f['id']}})[_0x5b60ef('0x1a')](function(){return _0x33e6f3;});})[_0x4eb0ae('0x1a')](function(){const _0x59897c=_0x4eb0ae;_0x4757d0[_0x59897c('0x45')](0xcc)['end']();});};}function handleEntityNotFound(_0x2b4b9b){return function(_0x338c1b){const _0x1021b8=a598_0x2799;return!_0x338c1b&&_0x2b4b9b[_0x1021b8('0x3d')](0x194),_0x338c1b;};}function handleError(_0x45d35f,_0x233778){return _0x233778=_0x233778||0x1f4,function(_0x2d96c4){const _0x204a32=a598_0x2799;logger[_0x204a32('0xa')](_0x2d96c4[_0x204a32('0x31')]),_0x2d96c4[_0x204a32('0x40')]&&delete _0x2d96c4[_0x204a32('0x40')],_0x45d35f[_0x204a32('0x45')](_0x233778)['send'](_0x2d96c4);};}exports[_0x663921('0x48')]=function(_0x53de63,_0x44d8dc){const _0x30c7e7=_0x663921;let _0x84ada1={};const _0x38f0d9={},_0x213c8b={'count':0x0,'rows':[]},_0x1e8f52=_[_0x30c7e7('0x15')](db[_0x30c7e7('0x9')][_0x30c7e7('0x3c')],function(_0x3264b1){const _0x4c31b2=_0x30c7e7;return{'name':_0x3264b1[_0x4c31b2('0xe')],'type':_0x3264b1[_0x4c31b2('0x8')]['key']};});_0x38f0d9['model']=_[_0x30c7e7('0x15')](_0x1e8f52,_0x30c7e7('0x40')),_0x38f0d9['query']=_[_0x30c7e7('0x2d')](_0x53de63[_0x30c7e7('0x2b')]),_0x38f0d9[_0x30c7e7('0x2e')]=_[_0x30c7e7('0x3f')](_0x38f0d9[_0x30c7e7('0x3b')],_0x38f0d9[_0x30c7e7('0x2b')]),_0x84ada1[_0x30c7e7('0x27')]=_[_0x30c7e7('0x3f')](_0x38f0d9[_0x30c7e7('0x3b')],qs[_0x30c7e7('0x46')](_0x53de63['query'][_0x30c7e7('0x46')])),_0x84ada1[_0x30c7e7('0x27')]=_0x84ada1['attributes'][_0x30c7e7('0x1d')]?_0x84ada1['attributes']:_0x38f0d9[_0x30c7e7('0x3b')];typeof _0x53de63[_0x30c7e7('0x2b')][_0x30c7e7('0x41')]==='undefined'&&(_0x84ada1[_0x30c7e7('0x39')]=qs['limit'](_0x53de63[_0x30c7e7('0x2b')][_0x30c7e7('0x39')]),_0x84ada1[_0x30c7e7('0x5')]=qs[_0x30c7e7('0x5')](_0x53de63[_0x30c7e7('0x2b')][_0x30c7e7('0x5')]));_0x84ada1[_0x30c7e7('0x34')]=qs[_0x30c7e7('0x44')](_0x53de63['query'][_0x30c7e7('0x44')]),_0x84ada1[_0x30c7e7('0x37')]=qs['filters'](_['pick'](_0x53de63[_0x30c7e7('0x2b')],_0x38f0d9[_0x30c7e7('0x2e')]),_0x1e8f52);_0x53de63[_0x30c7e7('0x2b')]['filter']&&(_0x84ada1[_0x30c7e7('0x37')]=_[_0x30c7e7('0xf')](_0x84ada1['where'],{[Op['or']]:_[_0x30c7e7('0x15')](_0x1e8f52,function(_0xce6f9f){const _0x3ebcce=_0x30c7e7;if(_0xce6f9f[_0x3ebcce('0x8')]!==_0x3ebcce('0x43')){const _0x774fc2={};return _0x774fc2[_0xce6f9f[_0x3ebcce('0x40')]]={[Op['like']]:'%'+_0x53de63[_0x3ebcce('0x2b')]['filter']+'%'},_0x774fc2;}})}));_0x84ada1=_['merge']({},_0x84ada1,_0x53de63[_0x30c7e7('0x1b')]);const _0xf0f6f0={'where':_0x84ada1[_0x30c7e7('0x37')]};return db[_0x30c7e7('0x9')][_0x30c7e7('0x3')](_0xf0f6f0)[_0x30c7e7('0x1a')](function(_0x247676){const _0x578a8e=_0x30c7e7;return _0x213c8b[_0x578a8e('0x3')]=_0x247676,_0x53de63[_0x578a8e('0x2b')][_0x578a8e('0x26')]&&(_0x84ada1[_0x578a8e('0x17')]=[{'all':!![]}]),db[_0x578a8e('0x9')][_0x578a8e('0x25')](_0x84ada1);})['then'](function(_0x2e1c60){const _0x20e10e=_0x30c7e7;return _0x213c8b[_0x20e10e('0x11')]=_0x2e1c60,_0x213c8b;})[_0x30c7e7('0x1a')](respondWithFilteredResult(_0x44d8dc,_0x84ada1))['catch'](handleError(_0x44d8dc,null));},exports[_0x663921('0x19')]=function(_0x2c5a3f,_0x156720){const _0x378719=_0x663921;let _0x2bed52={'raw':![],'where':{'id':_0x2c5a3f['params']['id']}};const _0x10771c={};return _0x10771c[_0x378719('0x3b')]=_['keys'](db[_0x378719('0x9')][_0x378719('0x3c')]),_0x10771c[_0x378719('0x2b')]=_[_0x378719('0x2d')](_0x2c5a3f['query']),_0x10771c[_0x378719('0x2e')]=_[_0x378719('0x3f')](_0x10771c[_0x378719('0x3b')],_0x10771c[_0x378719('0x2b')]),_0x2bed52[_0x378719('0x27')]=_[_0x378719('0x3f')](_0x10771c[_0x378719('0x3b')],qs[_0x378719('0x46')](_0x2c5a3f[_0x378719('0x2b')][_0x378719('0x46')])),_0x2bed52[_0x378719('0x27')]=_0x2bed52[_0x378719('0x27')][_0x378719('0x1d')]?_0x2bed52['attributes']:_0x10771c[_0x378719('0x3b')],_0x2c5a3f['query'][_0x378719('0x26')]&&(_0x2bed52[_0x378719('0x17')]=[{'all':!![]}]),_0x2bed52=_['merge']({},_0x2bed52,_0x2c5a3f[_0x378719('0x1b')]),db[_0x378719('0x9')]['findOne'](_0x2bed52)[_0x378719('0x1a')](handleEntityNotFound(_0x156720,null))[_0x378719('0x1a')](respondWithResult(_0x156720,null))[_0x378719('0x20')](handleError(_0x156720,null));},exports[_0x663921('0x36')]=function(_0x13e18a,_0x5901ec){const _0x37e0c9=_0x663921;return db[_0x37e0c9('0x9')]['create'](_0x13e18a[_0x37e0c9('0x38')],{})[_0x37e0c9('0x1a')](function(_0x45b1be){const _0x3c158b=_0x37e0c9,_0x1b38c1=_0x13e18a[_0x3c158b('0x3a')][_0x3c158b('0x42')]({'plain':!![]});if(!_0x1b38c1)throw new Error(_0x3c158b('0x16'));if(_0x1b38c1[_0x3c158b('0x28')]===_0x3c158b('0x3a')){const _0x5a9706=_0x45b1be[_0x3c158b('0x42')]({'plain':!![]}),_0x4dfc20='SquareProjects';return db[_0x3c158b('0x4')][_0x3c158b('0x2')]({'where':{'name':_0x4dfc20,'userProfileId':_0x1b38c1[_0x3c158b('0x21')]},'raw':!![]})['then'](function(_0xaca9c){const _0x34ba57=_0x3c158b;return _0xaca9c&&_0xaca9c['autoAssociation']===0x0?db['UserProfileResource'][_0x34ba57('0x36')]({'name':_0x5a9706[_0x34ba57('0x40')],'resourceId':_0x5a9706['id'],'type':_0xaca9c[_0x34ba57('0x40')],'sectionId':_0xaca9c['id']},{})[_0x34ba57('0x1a')](function(){return _0x45b1be;}):_0x45b1be;})['catch'](function(_0x462df5){const _0x421169=_0x3c158b;logger['error'](_0x421169('0x30'),_0x462df5);throw _0x462df5;});}return _0x45b1be;})[_0x37e0c9('0x1a')](respondWithResult(_0x5901ec,0xc9))[_0x37e0c9('0x20')](handleError(_0x5901ec,null));},exports[_0x663921('0x22')]=function(_0xca248c,_0x24e2d8){const _0x3800c0=_0x663921;return _0xca248c[_0x3800c0('0x38')]['id']&&delete _0xca248c[_0x3800c0('0x38')]['id'],db[_0x3800c0('0x9')]['findOne']({'where':{'id':_0xca248c[_0x3800c0('0x47')]['id']}})[_0x3800c0('0x1a')](handleEntityNotFound(_0x24e2d8,null))[_0x3800c0('0x1a')](saveUpdates(_0xca248c[_0x3800c0('0x38')],null))[_0x3800c0('0x1a')](respondWithResult(_0x24e2d8,null))[_0x3800c0('0x20')](handleError(_0x24e2d8,null));},exports[_0x663921('0x24')]=function(_0x93901c,_0x19ecd9){const _0x18b3ef=_0x663921;return db[_0x18b3ef('0x9')][_0x18b3ef('0x2')]({'where':{'id':_0x93901c[_0x18b3ef('0x47')]['id']}})[_0x18b3ef('0x1a')](handleEntityNotFound(_0x19ecd9,null))['then'](removeEntity(_0x19ecd9,null))[_0x18b3ef('0x20')](handleError(_0x19ecd9,null));},exports[_0x663921('0x1e')]=function(_0x3f3e73,_0x994f0b){const _0x533929=_0x663921;return db[_0x533929('0x9')][_0x533929('0x2')]({'where':{'id':_0x3f3e73[_0x533929('0x47')]['id']}})[_0x533929('0x1a')](function(_0x57311e){const _0x483dec=_0x533929;if(_0x57311e)return _0x57311e[_0x483dec('0x1e')](_0x3f3e73[_0x483dec('0x38')]['ids'],{'through':_[_0x483dec('0x29')](_0x3f3e73[_0x483dec('0x38')],[_0x483dec('0x6'),'id'])});})[_0x533929('0x1a')](respondWithResult(_0x994f0b,null))[_0x533929('0x20')](handleError(_0x994f0b,null));},exports[_0x663921('0x35')]=function(_0x274467,_0x2260b8){const _0x1addf3=_0x663921;return db[_0x1addf3('0x9')][_0x1addf3('0x2')]({'where':{'id':_0x274467[_0x1addf3('0x47')]['id']}})[_0x1addf3('0x1a')](handleEntityNotFound(_0x2260b8,null))[_0x1addf3('0x1a')](function(_0x442d16){const _0x11b5a9=_0x1addf3;if(_0x442d16)return _0x442d16[_0x11b5a9('0x35')](_0x274467[_0x11b5a9('0x2b')][_0x11b5a9('0x6')])[_0x11b5a9('0x1a')](function(){const _0xd47f90=_0x11b5a9;if(_[_0xd47f90('0x2a')](_0x274467[_0xd47f90('0x2b')][_0xd47f90('0x6')]))for(let _0x4bcace=0x0;_0x4bcace<_0x274467[_0xd47f90('0x2b')]['ids'][_0xd47f90('0x1d')];_0x4bcace+=0x1){socket[_0xd47f90('0xb')](_0xd47f90('0xc'),{'UserId':Number(_0x274467[_0xd47f90('0x2b')]['ids'][_0x4bcace]),'SquareProjectId':Number(_0x274467[_0xd47f90('0x47')]['id'])});}else socket['emit'](_0xd47f90('0xc'),{'UserId':Number(_0x274467[_0xd47f90('0x2b')][_0xd47f90('0x6')]),'SquareProjectId':Number(_0x274467['params']['id'])});});})[_0x1addf3('0x1a')](respondWithStatusCode(_0x2260b8,null))['catch'](handleError(_0x2260b8,null));},exports['getUsers']=function(_0x2919fa,_0x5efbee){const _0x1d3020=_0x663921;let _0x482a7b={};const _0x382da9={};let _0x5e3670,_0x346864;return db[_0x1d3020('0x9')]['findOne']({'where':{'id':_0x2919fa['params']['id']}})[_0x1d3020('0x1a')](handleEntityNotFound(_0x5efbee,null))[_0x1d3020('0x1a')](function(_0x23dc1a){const _0x419219=_0x1d3020;if(_0x23dc1a)return _0x5e3670=_0x23dc1a,_0x382da9[_0x419219('0x3b')]=_[_0x419219('0x2d')](db['User']['rawAttributes']),_0x382da9[_0x419219('0x2b')]=_[_0x419219('0x2d')](_0x2919fa[_0x419219('0x2b')]),_0x382da9['filters']=_[_0x419219('0x3f')](_0x382da9[_0x419219('0x3b')],_0x382da9[_0x419219('0x2b')]),_0x482a7b[_0x419219('0x27')]=_[_0x419219('0x3f')](_0x382da9[_0x419219('0x3b')],qs[_0x419219('0x46')](_0x2919fa['query'][_0x419219('0x46')])),_0x482a7b[_0x419219('0x27')]=_0x482a7b['attributes'][_0x419219('0x1d')]?_0x482a7b[_0x419219('0x27')]:_0x382da9[_0x419219('0x3b')],_0x482a7b[_0x419219('0x34')]=qs['sort'](_0x2919fa['query'][_0x419219('0x44')]),_0x482a7b[_0x419219('0x37')]=qs['filters'](_['pick'](_0x2919fa[_0x419219('0x2b')],_0x382da9[_0x419219('0x2e')])),_0x2919fa[_0x419219('0x2b')]['filter']&&(_0x482a7b[_0x419219('0x37')]=_[_0x419219('0xf')](_0x482a7b[_0x419219('0x37')],{[Op['or']]:_[_0x419219('0x15')](_0x482a7b['attributes'],function(_0x5e3494){const _0x1bd525=_0x419219,_0x4783c3={};return _0x4783c3[_0x5e3494]={[Op[_0x1bd525('0x1f')]]:'%'+_0x2919fa['query'][_0x1bd525('0x14')]+'%'},_0x4783c3;})})),_0x482a7b=_[_0x419219('0xf')]({},_0x482a7b,_0x2919fa[_0x419219('0x1b')]),_0x5e3670['getUsers'](_0x482a7b);})[_0x1d3020('0x1a')](function(_0x1c3b70){const _0x4d0f83=_0x1d3020;if(_0x1c3b70)return _0x346864=_0x1c3b70[_0x4d0f83('0x1d')],typeof _0x2919fa[_0x4d0f83('0x2b')][_0x4d0f83('0x41')]===_0x4d0f83('0xd')&&(_0x482a7b[_0x4d0f83('0x39')]=qs[_0x4d0f83('0x39')](_0x2919fa[_0x4d0f83('0x2b')][_0x4d0f83('0x39')]),_0x482a7b['offset']=qs[_0x4d0f83('0x5')](_0x2919fa[_0x4d0f83('0x2b')][_0x4d0f83('0x5')])),_0x5e3670[_0x4d0f83('0x1')](_0x482a7b);})['then'](function(_0x325174){if(_0x325174)return _0x325174?{'count':_0x346864,'rows':_0x325174}:null;})['then'](respondWithResult(_0x5efbee,null))[_0x1d3020('0x20')](handleError(_0x5efbee,null));}; \ No newline at end of file +const a598_0x38a3=['user','limit','query','filter','include','keys','where','status','send','SquareProject','catch','order','body','addUsers','../../components/parsers/qs','../../config/logger','name','fields','merge','getUsers','offset','set','findOne','then','destroy','error','type','model','includeAll','userSquareProject:remove','findAll','options','nolimit','rawAttributes','params','VIRTUAL','ids','emit','length','isArray','role','register','intersection','lodash','SquareProjects','key','removeUsers','index','../../rediscache','attributes','show','like','map','autoAssociation','update','Unable\x20to\x20retrieve\x20the\x20current\x20user','end','get','Content-Range','filters','./squareProject.socket','rows','pick','json','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','omit','sort'];(function(_0x320a5b,_0x38a390){const _0x2de796=function(_0x4499d9){while(--_0x4499d9){_0x320a5b['push'](_0x320a5b['shift']());}};_0x2de796(++_0x38a390);}(a598_0x38a3,0x167));const a598_0x2de7=function(_0x320a5b,_0x38a390){_0x320a5b=_0x320a5b-0x0;let _0x2de796=a598_0x38a3[_0x320a5b];return _0x2de796;};const _0x34bf1d=a598_0x2de7;'use strict';const _=require(_0x34bf1d('0x13')),qs=require(_0x34bf1d('0x39')),logger=require(_0x34bf1d('0x3a'))('api'),{getSocket}=require(_0x34bf1d('0x18')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x34bf1d('0x24'))[_0x34bf1d('0x11')](socket);function respondWithStatusCode(_0x4499d9,_0xda925b){return _0xda925b=_0xda925b||0xcc,function(_0x3cd95d){const _0x2a6105=a598_0x2de7;if(_0x3cd95d)return _0x4499d9['sendStatus'](_0xda925b);return _0x4499d9[_0x2a6105('0x32')](_0xda925b)[_0x2a6105('0x20')]();};}function respondWithResult(_0xa0d894,_0x338350){return _0x338350=_0x338350||0xc8,function(_0x30b6e6){const _0x555a72=a598_0x2de7;if(_0x30b6e6)return _0xa0d894[_0x555a72('0x32')](_0x338350)[_0x555a72('0x27')](_0x30b6e6);};}function respondWithFilteredResult(_0x50e840,_0x51fd0e){return function(_0x2aa346){const _0x3f2a6c=a598_0x2de7;if(_0x2aa346){const _0x505973=_0x2aa346['count'],_0x1c40cc=_0x51fd0e[_0x3f2a6c('0x3f')];let _0x388c3f=_0x51fd0e[_0x3f2a6c('0x3f')]+_0x51fd0e[_0x3f2a6c('0x2c')],_0x5b7c13;return _0x388c3f>=_0x505973?(_0x388c3f=_0x505973,_0x5b7c13=0xc8):_0x5b7c13=0xce,_0x50e840[_0x3f2a6c('0x32')](_0x5b7c13),_0x50e840[_0x3f2a6c('0x40')](_0x3f2a6c('0x22'),_0x1c40cc+'-'+_0x388c3f+'/'+_0x505973)[_0x3f2a6c('0x27')](_0x2aa346);}return null;};}function saveUpdates(_0xc7293f){return function(_0x3f27a3){const _0x388ed0=a598_0x2de7;if(_0x3f27a3)return _0x3f27a3[_0x388ed0('0x1e')](_0xc7293f)[_0x388ed0('0x42')](function(_0xd07b2){return _0xd07b2;});return null;};}function removeEntity(_0xb48c0f){return function(_0x48174e){const _0x7b4d1a=a598_0x2de7;if(_0x48174e)return _0x48174e[_0x7b4d1a('0x0')]()['then'](function(){const _0x1228ca=_0x7b4d1a,_0x57bd12=_0x48174e['get']({'plain':!![]}),_0x977e6=_0x1228ca('0x14');return db['UserProfileResource'][_0x1228ca('0x0')]({'where':{'type':_0x977e6,'resourceId':_0x57bd12['id']}})[_0x1228ca('0x42')](function(){return _0x48174e;});})['then'](function(){const _0x3b8242=_0x7b4d1a;_0xb48c0f[_0x3b8242('0x32')](0xcc)[_0x3b8242('0x20')]();});};}function handleEntityNotFound(_0x453cec){return function(_0x3d1e3a){return!_0x3d1e3a&&_0x453cec['sendStatus'](0x194),_0x3d1e3a;};}function handleError(_0x1db3c4,_0x104f77){return _0x104f77=_0x104f77||0x1f4,function(_0x4a1f9c){const _0x1caa2d=a598_0x2de7;logger[_0x1caa2d('0x1')](_0x4a1f9c['stack']),_0x4a1f9c[_0x1caa2d('0x3b')]&&delete _0x4a1f9c['name'],_0x1db3c4[_0x1caa2d('0x32')](_0x104f77)[_0x1caa2d('0x33')](_0x4a1f9c);};}exports[_0x34bf1d('0x17')]=function(_0x3cf42f,_0x7df942){const _0x248816=_0x34bf1d;let _0xeb14ba={};const _0x19d0ec={},_0x24c35={'count':0x0,'rows':[]},_0x519080=_[_0x248816('0x1c')](db[_0x248816('0x34')][_0x248816('0x9')],function(_0x48262f){const _0x3c8a40=_0x248816;return{'name':_0x48262f['fieldName'],'type':_0x48262f[_0x3c8a40('0x2')][_0x3c8a40('0x15')]};});_0x19d0ec[_0x248816('0x3')]=_[_0x248816('0x1c')](_0x519080,_0x248816('0x3b')),_0x19d0ec[_0x248816('0x2d')]=_['keys'](_0x3cf42f[_0x248816('0x2d')]),_0x19d0ec[_0x248816('0x23')]=_[_0x248816('0x12')](_0x19d0ec[_0x248816('0x3')],_0x19d0ec[_0x248816('0x2d')]),_0xeb14ba['attributes']=_[_0x248816('0x12')](_0x19d0ec['model'],qs[_0x248816('0x3c')](_0x3cf42f['query'][_0x248816('0x3c')])),_0xeb14ba['attributes']=_0xeb14ba[_0x248816('0x19')][_0x248816('0xe')]?_0xeb14ba[_0x248816('0x19')]:_0x19d0ec['model'];typeof _0x3cf42f[_0x248816('0x2d')]['nolimit']==='undefined'&&(_0xeb14ba['limit']=qs['limit'](_0x3cf42f[_0x248816('0x2d')][_0x248816('0x2c')]),_0xeb14ba[_0x248816('0x3f')]=qs[_0x248816('0x3f')](_0x3cf42f[_0x248816('0x2d')][_0x248816('0x3f')]));_0xeb14ba[_0x248816('0x36')]=qs['sort'](_0x3cf42f['query'][_0x248816('0x2a')]),_0xeb14ba['where']=qs[_0x248816('0x23')](_[_0x248816('0x26')](_0x3cf42f[_0x248816('0x2d')],_0x19d0ec[_0x248816('0x23')]),_0x519080);_0x3cf42f[_0x248816('0x2d')]['filter']&&(_0xeb14ba['where']=_[_0x248816('0x3d')](_0xeb14ba[_0x248816('0x31')],{[Op['or']]:_[_0x248816('0x1c')](_0x519080,function(_0x34c98d){const _0x5dffad=_0x248816;if(_0x34c98d[_0x5dffad('0x2')]!==_0x5dffad('0xb')){const _0x268501={};return _0x268501[_0x34c98d['name']]={[Op[_0x5dffad('0x1b')]]:'%'+_0x3cf42f['query'][_0x5dffad('0x2e')]+'%'},_0x268501;}})}));_0xeb14ba=_['merge']({},_0xeb14ba,_0x3cf42f[_0x248816('0x7')]);const _0x3a5a35={'where':_0xeb14ba[_0x248816('0x31')]};return db['SquareProject']['count'](_0x3a5a35)[_0x248816('0x42')](function(_0x203923){const _0x401e87=_0x248816;return _0x24c35['count']=_0x203923,_0x3cf42f[_0x401e87('0x2d')]['includeAll']&&(_0xeb14ba[_0x401e87('0x2f')]=[{'all':!![]}]),db['SquareProject'][_0x401e87('0x6')](_0xeb14ba);})[_0x248816('0x42')](function(_0x31aff7){const _0x2ea602=_0x248816;return _0x24c35[_0x2ea602('0x25')]=_0x31aff7,_0x24c35;})[_0x248816('0x42')](respondWithFilteredResult(_0x7df942,_0xeb14ba))[_0x248816('0x35')](handleError(_0x7df942,null));},exports[_0x34bf1d('0x1a')]=function(_0x1ce2f4,_0x1d0321){const _0x1a9790=_0x34bf1d;let _0x463b92={'raw':![],'where':{'id':_0x1ce2f4['params']['id']}};const _0x2d28bc={};return _0x2d28bc[_0x1a9790('0x3')]=_['keys'](db[_0x1a9790('0x34')][_0x1a9790('0x9')]),_0x2d28bc[_0x1a9790('0x2d')]=_[_0x1a9790('0x30')](_0x1ce2f4['query']),_0x2d28bc[_0x1a9790('0x23')]=_['intersection'](_0x2d28bc[_0x1a9790('0x3')],_0x2d28bc[_0x1a9790('0x2d')]),_0x463b92['attributes']=_[_0x1a9790('0x12')](_0x2d28bc['model'],qs[_0x1a9790('0x3c')](_0x1ce2f4['query']['fields'])),_0x463b92[_0x1a9790('0x19')]=_0x463b92[_0x1a9790('0x19')][_0x1a9790('0xe')]?_0x463b92[_0x1a9790('0x19')]:_0x2d28bc[_0x1a9790('0x3')],_0x1ce2f4['query'][_0x1a9790('0x4')]&&(_0x463b92[_0x1a9790('0x2f')]=[{'all':!![]}]),_0x463b92=_[_0x1a9790('0x3d')]({},_0x463b92,_0x1ce2f4[_0x1a9790('0x7')]),db[_0x1a9790('0x34')][_0x1a9790('0x41')](_0x463b92)[_0x1a9790('0x42')](handleEntityNotFound(_0x1d0321,null))[_0x1a9790('0x42')](respondWithResult(_0x1d0321,null))[_0x1a9790('0x35')](handleError(_0x1d0321,null));},exports['create']=function(_0x1e88e9,_0x1c28eb){const _0x4b8857=_0x34bf1d;return db[_0x4b8857('0x34')]['create'](_0x1e88e9[_0x4b8857('0x37')],{})[_0x4b8857('0x42')](function(_0x41952b){const _0x1976b0=_0x4b8857,_0x185ae5=_0x1e88e9['user'][_0x1976b0('0x21')]({'plain':!![]});if(!_0x185ae5)throw new Error(_0x1976b0('0x1f'));if(_0x185ae5[_0x1976b0('0x10')]===_0x1976b0('0x2b')){const _0xe052bd=_0x41952b['get']({'plain':!![]}),_0x9e1b75='SquareProjects';return db['UserProfileSection'][_0x1976b0('0x41')]({'where':{'name':_0x9e1b75,'userProfileId':_0x185ae5['userProfileId']},'raw':!![]})[_0x1976b0('0x42')](function(_0x18b5d3){const _0xb67aa=_0x1976b0;return _0x18b5d3&&_0x18b5d3[_0xb67aa('0x1d')]===0x0?db['UserProfileResource']['create']({'name':_0xe052bd['name'],'resourceId':_0xe052bd['id'],'type':_0x18b5d3[_0xb67aa('0x3b')],'sectionId':_0x18b5d3['id']},{})['then'](function(){return _0x41952b;}):_0x41952b;})['catch'](function(_0x288584){const _0x904b6d=_0x1976b0;logger[_0x904b6d('0x1')](_0x904b6d('0x28'),_0x288584);throw _0x288584;});}return _0x41952b;})['then'](respondWithResult(_0x1c28eb,0xc9))[_0x4b8857('0x35')](handleError(_0x1c28eb,null));},exports['update']=function(_0x4d4b93,_0x2edf17){const _0xb22f30=_0x34bf1d;return _0x4d4b93[_0xb22f30('0x37')]['id']&&delete _0x4d4b93[_0xb22f30('0x37')]['id'],db[_0xb22f30('0x34')][_0xb22f30('0x41')]({'where':{'id':_0x4d4b93[_0xb22f30('0xa')]['id']}})[_0xb22f30('0x42')](handleEntityNotFound(_0x2edf17,null))['then'](saveUpdates(_0x4d4b93[_0xb22f30('0x37')],null))[_0xb22f30('0x42')](respondWithResult(_0x2edf17,null))['catch'](handleError(_0x2edf17,null));},exports[_0x34bf1d('0x0')]=function(_0x4c80fb,_0x2736ee){const _0x2abe85=_0x34bf1d;return db[_0x2abe85('0x34')][_0x2abe85('0x41')]({'where':{'id':_0x4c80fb[_0x2abe85('0xa')]['id']}})[_0x2abe85('0x42')](handleEntityNotFound(_0x2736ee,null))[_0x2abe85('0x42')](removeEntity(_0x2736ee,null))[_0x2abe85('0x35')](handleError(_0x2736ee,null));},exports['addUsers']=function(_0x1ee227,_0x597bab){const _0x306cd1=_0x34bf1d;return db['SquareProject'][_0x306cd1('0x41')]({'where':{'id':_0x1ee227[_0x306cd1('0xa')]['id']}})['then'](function(_0xa873bd){const _0x1a27d4=_0x306cd1;if(_0xa873bd)return _0xa873bd[_0x1a27d4('0x38')](_0x1ee227['body'][_0x1a27d4('0xc')],{'through':_[_0x1a27d4('0x29')](_0x1ee227[_0x1a27d4('0x37')],[_0x1a27d4('0xc'),'id'])});})['then'](respondWithResult(_0x597bab,null))[_0x306cd1('0x35')](handleError(_0x597bab,null));},exports[_0x34bf1d('0x16')]=function(_0x369ed8,_0x4ba05a){const _0x3d3fa4=_0x34bf1d;return db['SquareProject'][_0x3d3fa4('0x41')]({'where':{'id':_0x369ed8[_0x3d3fa4('0xa')]['id']}})[_0x3d3fa4('0x42')](handleEntityNotFound(_0x4ba05a,null))[_0x3d3fa4('0x42')](function(_0x2e603b){const _0x258300=_0x3d3fa4;if(_0x2e603b)return _0x2e603b[_0x258300('0x16')](_0x369ed8[_0x258300('0x2d')][_0x258300('0xc')])[_0x258300('0x42')](function(){const _0x2096b7=_0x258300;if(_[_0x2096b7('0xf')](_0x369ed8[_0x2096b7('0x2d')][_0x2096b7('0xc')]))for(let _0x5942d7=0x0;_0x5942d7<_0x369ed8[_0x2096b7('0x2d')][_0x2096b7('0xc')][_0x2096b7('0xe')];_0x5942d7+=0x1){socket['emit'](_0x2096b7('0x5'),{'UserId':Number(_0x369ed8[_0x2096b7('0x2d')][_0x2096b7('0xc')][_0x5942d7]),'SquareProjectId':Number(_0x369ed8[_0x2096b7('0xa')]['id'])});}else socket[_0x2096b7('0xd')](_0x2096b7('0x5'),{'UserId':Number(_0x369ed8[_0x2096b7('0x2d')]['ids']),'SquareProjectId':Number(_0x369ed8[_0x2096b7('0xa')]['id'])});});})[_0x3d3fa4('0x42')](respondWithStatusCode(_0x4ba05a,null))[_0x3d3fa4('0x35')](handleError(_0x4ba05a,null));},exports[_0x34bf1d('0x3e')]=function(_0x931b4d,_0x5b94b9){const _0x1e733d=_0x34bf1d;let _0x20d9a={};const _0x3d3ad4={};let _0x1cca09,_0x409217;return db[_0x1e733d('0x34')][_0x1e733d('0x41')]({'where':{'id':_0x931b4d['params']['id']}})['then'](handleEntityNotFound(_0x5b94b9,null))['then'](function(_0x5bbbed){const _0x48934c=_0x1e733d;if(_0x5bbbed)return _0x1cca09=_0x5bbbed,_0x3d3ad4[_0x48934c('0x3')]=_['keys'](db['User'][_0x48934c('0x9')]),_0x3d3ad4[_0x48934c('0x2d')]=_[_0x48934c('0x30')](_0x931b4d['query']),_0x3d3ad4[_0x48934c('0x23')]=_[_0x48934c('0x12')](_0x3d3ad4[_0x48934c('0x3')],_0x3d3ad4[_0x48934c('0x2d')]),_0x20d9a[_0x48934c('0x19')]=_['intersection'](_0x3d3ad4[_0x48934c('0x3')],qs[_0x48934c('0x3c')](_0x931b4d['query'][_0x48934c('0x3c')])),_0x20d9a[_0x48934c('0x19')]=_0x20d9a[_0x48934c('0x19')]['length']?_0x20d9a[_0x48934c('0x19')]:_0x3d3ad4[_0x48934c('0x3')],_0x20d9a[_0x48934c('0x36')]=qs[_0x48934c('0x2a')](_0x931b4d[_0x48934c('0x2d')]['sort']),_0x20d9a[_0x48934c('0x31')]=qs[_0x48934c('0x23')](_[_0x48934c('0x26')](_0x931b4d[_0x48934c('0x2d')],_0x3d3ad4['filters'])),_0x931b4d['query'][_0x48934c('0x2e')]&&(_0x20d9a[_0x48934c('0x31')]=_[_0x48934c('0x3d')](_0x20d9a[_0x48934c('0x31')],{[Op['or']]:_[_0x48934c('0x1c')](_0x20d9a[_0x48934c('0x19')],function(_0xd59e88){const _0xb375a=_0x48934c,_0x4cbc2c={};return _0x4cbc2c[_0xd59e88]={[Op['like']]:'%'+_0x931b4d[_0xb375a('0x2d')][_0xb375a('0x2e')]+'%'},_0x4cbc2c;})})),_0x20d9a=_[_0x48934c('0x3d')]({},_0x20d9a,_0x931b4d[_0x48934c('0x7')]),_0x1cca09[_0x48934c('0x3e')](_0x20d9a);})[_0x1e733d('0x42')](function(_0xad5317){const _0x28e25f=_0x1e733d;if(_0xad5317)return _0x409217=_0xad5317[_0x28e25f('0xe')],typeof _0x931b4d[_0x28e25f('0x2d')][_0x28e25f('0x8')]==='undefined'&&(_0x20d9a['limit']=qs[_0x28e25f('0x2c')](_0x931b4d[_0x28e25f('0x2d')][_0x28e25f('0x2c')]),_0x20d9a[_0x28e25f('0x3f')]=qs[_0x28e25f('0x3f')](_0x931b4d[_0x28e25f('0x2d')][_0x28e25f('0x3f')])),_0x1cca09['getUsers'](_0x20d9a);})[_0x1e733d('0x42')](function(_0xaa537c){if(_0xaa537c)return _0xaa537c?{'count':_0x409217,'rows':_0xaa537c}:null;})[_0x1e733d('0x42')](respondWithResult(_0x5b94b9,null))['catch'](handleError(_0x5b94b9,null));}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.events.js b/server/api/squareProject/squareProject.events.js index f82f1a9..f6f541e 100644 --- a/server/api/squareProject/squareProject.events.js +++ b/server/api/squareProject/squareProject.events.js @@ -1 +1 @@ -const a599_0x1507=['update','setMaxListeners','addHook','events','../../mysqldb','SquareProject','undefined','save','remove'];(function(_0x204610,_0x150724){const _0x1a444e=function(_0x1948bd){while(--_0x1948bd){_0x204610['push'](_0x204610['shift']());}};_0x1a444e(++_0x150724);}(a599_0x1507,0x110));const a599_0x1a44=function(_0x204610,_0x150724){_0x204610=_0x204610-0x0;let _0x1a444e=a599_0x1507[_0x204610];return _0x1a444e;};const _0x342dbe=a599_0x1a44;'use strict';const EventEmitter=require(_0x342dbe('0x1')),SquareProject=require(_0x342dbe('0x2'))['db'][_0x342dbe('0x3')],SquareProjectEvents=new EventEmitter();SquareProjectEvents[_0x342dbe('0x8')](0x0);const events={'afterCreate':_0x342dbe('0x5'),'afterUpdate':_0x342dbe('0x7'),'afterDestroy':_0x342dbe('0x6')};function emitEvent(_0x1948bd){return function(_0x33220f){SquareProjectEvents['emit'](_0x1948bd+':'+_0x33220f['id'],_0x33220f),SquareProjectEvents['emit'](_0x1948bd,_0x33220f);};}for(const e in events){if(typeof events[e]!==_0x342dbe('0x4')){const event=events[e];SquareProject[_0x342dbe('0x0')](e,emitEvent(event));}}module['exports']=SquareProjectEvents; \ No newline at end of file +const a599_0x32d7=['remove','addHook','../../mysqldb','update','undefined','emit','SquareProject','save'];(function(_0x207d54,_0x32d725){const _0xb3a62f=function(_0x2aee77){while(--_0x2aee77){_0x207d54['push'](_0x207d54['shift']());}};_0xb3a62f(++_0x32d725);}(a599_0x32d7,0x174));const a599_0xb3a6=function(_0x207d54,_0x32d725){_0x207d54=_0x207d54-0x0;let _0xb3a62f=a599_0x32d7[_0x207d54];return _0xb3a62f;};const _0x49506e=a599_0xb3a6;'use strict';const EventEmitter=require('events'),SquareProject=require(_0x49506e('0x6'))['db'][_0x49506e('0x2')],SquareProjectEvents=new EventEmitter();SquareProjectEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x49506e('0x3'),'afterUpdate':_0x49506e('0x7'),'afterDestroy':_0x49506e('0x4')};function emitEvent(_0x2aee77){return function(_0x17c211){const _0x1910c0=a599_0xb3a6;SquareProjectEvents[_0x1910c0('0x1')](_0x2aee77+':'+_0x17c211['id'],_0x17c211),SquareProjectEvents[_0x1910c0('0x1')](_0x2aee77,_0x17c211);};}for(const e in events){if(typeof events[e]!==_0x49506e('0x0')){const event=events[e];SquareProject[_0x49506e('0x5')](e,emitEvent(event));}}module['exports']=SquareProjectEvents; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.model.js b/server/api/squareProject/squareProject.model.js index 7929a7e..690a167 100644 --- a/server/api/squareProject/squareProject.model.js +++ b/server/api/squareProject/squareProject.model.js @@ -1 +1 @@ -const a600_0x34ca=['define','exports','./squareProject.attributes'];(function(_0x2e5656,_0x34ca27){const _0x38f3ab=function(_0x2769f3){while(--_0x2769f3){_0x2e5656['push'](_0x2e5656['shift']());}};_0x38f3ab(++_0x34ca27);}(a600_0x34ca,0xff));const a600_0x38f3=function(_0x2e5656,_0x34ca27){_0x2e5656=_0x2e5656-0x0;let _0x38f3ab=a600_0x34ca[_0x2e5656];return _0x38f3ab;};const _0x4a03aa=a600_0x38f3;'use strict';const attributes=require(_0x4a03aa('0x2'));module[_0x4a03aa('0x1')]=function(_0x2769f3){const _0x4ed6fb=_0x4a03aa,_0x2ee87d=_0x2769f3[_0x4ed6fb('0x0')]('SquareProject',attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2ee87d;}; \ No newline at end of file +const a600_0x1db3=['./squareProject.attributes','define','SquareProject'];(function(_0x9303bc,_0x1db30f){const _0x1c5e86=function(_0x1e2bd8){while(--_0x1e2bd8){_0x9303bc['push'](_0x9303bc['shift']());}};_0x1c5e86(++_0x1db30f);}(a600_0x1db3,0x1db));const a600_0x1c5e=function(_0x9303bc,_0x1db30f){_0x9303bc=_0x9303bc-0x0;let _0x1c5e86=a600_0x1db3[_0x9303bc];return _0x1c5e86;};const _0xfca8d8=a600_0x1c5e;'use strict';const attributes=require(_0xfca8d8('0x2'));module['exports']=function(_0x1e2bd8){const _0xaeaec0=_0xfca8d8,_0x2d6f26=_0x1e2bd8[_0xaeaec0('0x0')](_0xaeaec0('0x1'),attributes,{'tableName':'square_projects','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2d6f26;}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.rpc.js b/server/api/squareProject/squareProject.rpc.js index 849c7c9..21f6843 100644 --- a/server/api/squareProject/squareProject.rpc.js +++ b/server/api/squareProject/squareProject.rpc.js @@ -1 +1 @@ -const a601_0x4408=['error','ShowSquareProject','map','./squareProject.socket','../../mysqldb','stringify','include','attributes','../../rediscache','message','debug','register','model','then','raw','lodash','catch','where','options','info','rpc'];(function(_0x4f1b7f,_0x4408dd){const _0x452e09=function(_0x5ec9e2){while(--_0x5ec9e2){_0x4f1b7f['push'](_0x4f1b7f['shift']());}};_0x452e09(++_0x4408dd);}(a601_0x4408,0x1d1));const a601_0x452e=function(_0x4f1b7f,_0x4408dd){_0x4f1b7f=_0x4f1b7f-0x0;let _0x452e09=a601_0x4408[_0x4f1b7f];return _0x452e09;};const _0x32e3fd=a601_0x452e;'use strict';const db=require(_0x32e3fd('0x1'))['db'],logger=require('../../config/logger')(_0x32e3fd('0x11')),_=require(_0x32e3fd('0xc')),{getSocket}=require(_0x32e3fd('0x5')),socket=getSocket();require(_0x32e3fd('0x0'))[_0x32e3fd('0x8')](socket),exports['ShowSquareProject']=function(_0x5ec9e2){const _0x5a89db=this;return new Promise(function(_0x42f533,_0x10c376){const _0x31e2cd=a601_0x452e;return db['SquareProject']['findOne']({'raw':_0x5ec9e2[_0x31e2cd('0xf')]?_0x5ec9e2[_0x31e2cd('0xf')][_0x31e2cd('0xb')]===undefined?!![]:![]:!![],'where':_0x5ec9e2['options']?_0x5ec9e2[_0x31e2cd('0xf')][_0x31e2cd('0xe')]||null:null,'attributes':_0x5ec9e2['options']?_0x5ec9e2[_0x31e2cd('0xf')][_0x31e2cd('0x4')]||null:null,'include':_0x5ec9e2['options']?_0x5ec9e2[_0x31e2cd('0xf')][_0x31e2cd('0x3')]?_[_0x31e2cd('0x14')](_0x5ec9e2[_0x31e2cd('0xf')][_0x31e2cd('0x3')],function(_0x5f5068){const _0x3c2095=_0x31e2cd;return{'model':db[_0x5f5068[_0x3c2095('0x9')]],'as':_0x5f5068['as'],'attributes':_0x5f5068[_0x3c2095('0x4')],'include':_0x5f5068['include']?_[_0x3c2095('0x14')](_0x5f5068['include'],function(_0x4c121a){const _0x15f8cc=_0x3c2095;return{'model':db[_0x4c121a[_0x15f8cc('0x9')]],'as':_0x4c121a['as'],'attributes':_0x4c121a[_0x15f8cc('0x4')],'include':_0x4c121a[_0x15f8cc('0x3')]?_['map'](_0x4c121a[_0x15f8cc('0x3')],function(_0x32f436){const _0x2a88ac=_0x15f8cc;return{'model':db[_0x32f436[_0x2a88ac('0x9')]],'as':_0x32f436['as'],'attributes':_0x32f436[_0x2a88ac('0x4')]};}):[]};}):[]};}):[]:[]})[_0x31e2cd('0xa')](function(_0x2ca068){const _0x24e983=_0x31e2cd;logger[_0x24e983('0x10')](_0x24e983('0x13'),_0x5ec9e2),logger[_0x24e983('0x7')](_0x24e983('0x13'),_0x5ec9e2,JSON[_0x24e983('0x2')](_0x2ca068)),_0x42f533(_0x2ca068);})[_0x31e2cd('0xd')](function(_0x48201b){const _0x15bfb9=_0x31e2cd;logger[_0x15bfb9('0x12')](_0x15bfb9('0x13'),_0x48201b[_0x15bfb9('0x6')],_0x5ec9e2),_0x10c376(_0x5a89db[_0x15bfb9('0x12')](0x1f4,_0x48201b[_0x15bfb9('0x6')]));});});}; \ No newline at end of file +const a601_0x5962=['stringify','rpc','catch','ShowSquareProject','error','map','then','include','../../config/logger','../../rediscache','model','options','register','SquareProject','./squareProject.socket','attributes','where','message','debug'];(function(_0x238af3,_0x5962b2){const _0x5d11d9=function(_0x166599){while(--_0x166599){_0x238af3['push'](_0x238af3['shift']());}};_0x5d11d9(++_0x5962b2);}(a601_0x5962,0xa9));const a601_0x5d11=function(_0x238af3,_0x5962b2){_0x238af3=_0x238af3-0x0;let _0x5d11d9=a601_0x5962[_0x238af3];return _0x5d11d9;};const _0x396307=a601_0x5d11;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x396307('0xa'))(_0x396307('0x3')),_=require('lodash'),{getSocket}=require(_0x396307('0xb')),socket=getSocket();require(_0x396307('0x10'))[_0x396307('0xe')](socket),exports[_0x396307('0x5')]=function(_0x166599){const _0x18d925=this;return new Promise(function(_0x4243b4,_0x463ce5){const _0x17095d=a601_0x5d11;return db[_0x17095d('0xf')]['findOne']({'raw':_0x166599[_0x17095d('0xd')]?_0x166599['options']['raw']===undefined?!![]:![]:!![],'where':_0x166599[_0x17095d('0xd')]?_0x166599[_0x17095d('0xd')][_0x17095d('0x12')]||null:null,'attributes':_0x166599[_0x17095d('0xd')]?_0x166599['options']['attributes']||null:null,'include':_0x166599[_0x17095d('0xd')]?_0x166599[_0x17095d('0xd')][_0x17095d('0x9')]?_['map'](_0x166599[_0x17095d('0xd')][_0x17095d('0x9')],function(_0x298e99){const _0x599076=_0x17095d;return{'model':db[_0x298e99[_0x599076('0xc')]],'as':_0x298e99['as'],'attributes':_0x298e99[_0x599076('0x11')],'include':_0x298e99[_0x599076('0x9')]?_['map'](_0x298e99[_0x599076('0x9')],function(_0x246cb7){const _0x3598c0=_0x599076;return{'model':db[_0x246cb7['model']],'as':_0x246cb7['as'],'attributes':_0x246cb7['attributes'],'include':_0x246cb7[_0x3598c0('0x9')]?_[_0x3598c0('0x7')](_0x246cb7[_0x3598c0('0x9')],function(_0x386b2f){const _0x4d5fb1=_0x3598c0;return{'model':db[_0x386b2f[_0x4d5fb1('0xc')]],'as':_0x386b2f['as'],'attributes':_0x386b2f['attributes']};}):[]};}):[]};}):[]:[]})[_0x17095d('0x8')](function(_0x493bb6){const _0x509b83=_0x17095d;logger['info'](_0x509b83('0x5'),_0x166599),logger[_0x509b83('0x1')](_0x509b83('0x5'),_0x166599,JSON[_0x509b83('0x2')](_0x493bb6)),_0x4243b4(_0x493bb6);})[_0x17095d('0x4')](function(_0x21e8f5){const _0x3e0a4e=_0x17095d;logger[_0x3e0a4e('0x6')]('ShowSquareProject',_0x21e8f5[_0x3e0a4e('0x0')],_0x166599),_0x463ce5(_0x18d925[_0x3e0a4e('0x6')](0x1f4,_0x21e8f5[_0x3e0a4e('0x0')]));});});}; \ No newline at end of file diff --git a/server/api/squareProject/squareProject.socket.js b/server/api/squareProject/squareProject.socket.js index c46425e..b9d05e9 100644 --- a/server/api/squareProject/squareProject.socket.js +++ b/server/api/squareProject/squareProject.socket.js @@ -1 +1 @@ -const a602_0x456e=['save','remove','./squareProject.events','emit','register','update'];(function(_0x16c034,_0x456e3c){const _0x4c9f4e=function(_0x3c6f06){while(--_0x3c6f06){_0x16c034['push'](_0x16c034['shift']());}};_0x4c9f4e(++_0x456e3c);}(a602_0x456e,0x19d));const a602_0x4c9f=function(_0x16c034,_0x456e3c){_0x16c034=_0x16c034-0x0;let _0x4c9f4e=a602_0x456e[_0x16c034];return _0x4c9f4e;};const _0x106057=a602_0x4c9f;'use strict';const SquareProjectEvents=require(_0x106057('0x3')),events=[_0x106057('0x1'),_0x106057('0x2'),_0x106057('0x0')];function createListener(_0x3c6f06,_0x637304){return function(_0x232cb6){const _0xb85e33=a602_0x4c9f;_0x637304[_0xb85e33('0x4')](_0x3c6f06,_0x232cb6);};}exports[_0x106057('0x5')]=function(_0x3faaad){for(let _0x2a67a0=0x0,_0xfbfb2c=events['length'];_0x2a67a0<_0xfbfb2c;_0x2a67a0++){const _0x2ed2bb=events[_0x2a67a0],_0x16ec3e=createListener('squareProject:'+_0x2ed2bb,_0x3faaad);SquareProjectEvents['on'](_0x2ed2bb,_0x16ec3e);}}; \ No newline at end of file +const a602_0xfc0e=['emit','length','update','save','squareProject:'];(function(_0x2db885,_0xfc0e74){const _0x3eda8a=function(_0x3a8a39){while(--_0x3a8a39){_0x2db885['push'](_0x2db885['shift']());}};_0x3eda8a(++_0xfc0e74);}(a602_0xfc0e,0x16d));const a602_0x3eda=function(_0x2db885,_0xfc0e74){_0x2db885=_0x2db885-0x0;let _0x3eda8a=a602_0xfc0e[_0x2db885];return _0x3eda8a;};const _0x4e2ff7=a602_0x3eda;'use strict';const SquareProjectEvents=require('./squareProject.events'),events=[_0x4e2ff7('0x3'),'remove',_0x4e2ff7('0x2')];function createListener(_0x3a8a39,_0x2efef1){return function(_0x422ce4){const _0x423381=a602_0x3eda;_0x2efef1[_0x423381('0x0')](_0x3a8a39,_0x422ce4);};}exports['register']=function(_0x129ac4){const _0x412b6b=_0x4e2ff7;for(let _0x4ceec3=0x0,_0x158818=events[_0x412b6b('0x1')];_0x4ceec3<_0x158818;_0x4ceec3++){const _0x498020=events[_0x4ceec3],_0x4d4cc3=createListener(_0x412b6b('0x4')+_0x498020,_0x129ac4);SquareProjectEvents['on'](_0x498020,_0x4d4cc3);}}; \ No newline at end of file diff --git a/server/api/squareRecording/index.js b/server/api/squareRecording/index.js index cf6e667..d5200ee 100644 --- a/server/api/squareRecording/index.js +++ b/server/api/squareRecording/index.js @@ -1 +1 @@ -const a603_0x3209=['../../components/auth/service','/:id/delete','index','destroy','download','isAuthenticated','delete','express','exports','./squareRecording.controller','/:id','get','create','post','update','/:id/download','show'];(function(_0x4be516,_0x3209a1){const _0x58171d=function(_0x334168){while(--_0x334168){_0x4be516['push'](_0x4be516['shift']());}};_0x58171d(++_0x3209a1);}(a603_0x3209,0x11c));const a603_0x5817=function(_0x4be516,_0x3209a1){_0x4be516=_0x4be516-0x0;let _0x58171d=a603_0x3209[_0x4be516];return _0x58171d;};const _0x5ef95e=a603_0x5817;'use strict';const express=require(_0x5ef95e('0xc')),router=express['Router'](),auth=require(_0x5ef95e('0x5')),controller=require(_0x5ef95e('0xe'));router['get']('/',auth[_0x5ef95e('0xa')](),controller[_0x5ef95e('0x7')]),router[_0x5ef95e('0x10')]('/:id',auth[_0x5ef95e('0xa')](),controller[_0x5ef95e('0x4')]),router[_0x5ef95e('0x10')](_0x5ef95e('0x3'),auth[_0x5ef95e('0xa')](),controller[_0x5ef95e('0x9')]),router[_0x5ef95e('0x1')]('/',auth[_0x5ef95e('0xa')](),controller[_0x5ef95e('0x0')]),router['put'](_0x5ef95e('0xf'),auth[_0x5ef95e('0xa')](),controller[_0x5ef95e('0x2')]),router[_0x5ef95e('0xb')](_0x5ef95e('0x6'),auth[_0x5ef95e('0xa')](),controller[_0x5ef95e('0x8')]),module[_0x5ef95e('0xd')]=router; \ No newline at end of file +const a603_0x371d=['put','../../components/auth/service','express','create','/:id/download','download','destroy','delete','show','update','get','exports','/:id','isAuthenticated','/:id/delete','index'];(function(_0x5ee8e4,_0x371d91){const _0x1ac3bf=function(_0xfab1b4){while(--_0xfab1b4){_0x5ee8e4['push'](_0x5ee8e4['shift']());}};_0x1ac3bf(++_0x371d91);}(a603_0x371d,0xe2));const a603_0x1ac3=function(_0x5ee8e4,_0x371d91){_0x5ee8e4=_0x5ee8e4-0x0;let _0x1ac3bf=a603_0x371d[_0x5ee8e4];return _0x1ac3bf;};const _0x522e88=a603_0x1ac3;'use strict';const express=require(_0x522e88('0x0')),router=express['Router'](),auth=require(_0x522e88('0xf')),controller=require('./squareRecording.controller');router['get']('/',auth[_0x522e88('0xb')](),controller[_0x522e88('0xd')]),router['get'](_0x522e88('0xa'),auth[_0x522e88('0xb')](),controller[_0x522e88('0x6')]),router[_0x522e88('0x8')](_0x522e88('0x2'),auth[_0x522e88('0xb')](),controller[_0x522e88('0x3')]),router['post']('/',auth[_0x522e88('0xb')](),controller[_0x522e88('0x1')]),router[_0x522e88('0xe')](_0x522e88('0xa'),auth[_0x522e88('0xb')](),controller[_0x522e88('0x7')]),router[_0x522e88('0x5')](_0x522e88('0xc'),auth[_0x522e88('0xb')](),controller[_0x522e88('0x4')]),module[_0x522e88('0x9')]=router; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.attributes.js b/server/api/squareRecording/squareRecording.attributes.js index 72aef2b..b10bf86 100644 --- a/server/api/squareRecording/squareRecording.attributes.js +++ b/server/api/squareRecording/squareRecording.attributes.js @@ -1 +1 @@ -const a604_0xfa4d=['exports','lastIndexOf','savePath','STRING'];(function(_0x4a4587,_0xfa4d73){const _0xb27319=function(_0x18d2fc){while(--_0x18d2fc){_0x4a4587['push'](_0x4a4587['shift']());}};_0xb27319(++_0xfa4d73);}(a604_0xfa4d,0xaf));const a604_0xb273=function(_0x4a4587,_0xfa4d73){_0x4a4587=_0x4a4587-0x0;let _0xb27319=a604_0xfa4d[_0x4a4587];return _0xb27319;};const _0x32ed8c=a604_0xb273;'use strict';const Sequelize=require('sequelize');module[_0x32ed8c('0x1')]={'uniqueid':{'type':Sequelize[_0x32ed8c('0x0')]},'callerid':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x32ed8c('0x0')]},'context':{'type':Sequelize[_0x32ed8c('0x0')]},'extension':{'type':Sequelize[_0x32ed8c('0x0')]},'priority':{'type':Sequelize[_0x32ed8c('0x0')]},'accountcode':{'type':Sequelize[_0x32ed8c('0x0')]},'dnid':{'type':Sequelize[_0x32ed8c('0x0')]},'projectName':{'type':Sequelize[_0x32ed8c('0x0')]},'saveName':{'type':Sequelize[_0x32ed8c('0x0')]},'filename':{'type':Sequelize['STRING']},'savePath':{'type':Sequelize[_0x32ed8c('0x0')]},'format':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x1defc1=_0x32ed8c;let _0x18d2fc='';const _0x156eff=this['getDataValue'](_0x1defc1('0x3'));return _0x156eff&&(_0x18d2fc=_0x156eff['substring'](_0x156eff[_0x1defc1('0x2')]('.'))),_0x18d2fc;}}}; \ No newline at end of file +const a604_0x340a=['exports','STRING','getDataValue','sequelize','savePath','substring'];(function(_0x49c27c,_0x340a35){const _0x3e5bb7=function(_0x209858){while(--_0x209858){_0x49c27c['push'](_0x49c27c['shift']());}};_0x3e5bb7(++_0x340a35);}(a604_0x340a,0x11d));const a604_0x3e5b=function(_0x49c27c,_0x340a35){_0x49c27c=_0x49c27c-0x0;let _0x3e5bb7=a604_0x340a[_0x49c27c];return _0x3e5bb7;};const _0x284c6b=a604_0x3e5b;'use strict';const Sequelize=require(_0x284c6b('0x0'));module[_0x284c6b('0x3')]={'uniqueid':{'type':Sequelize[_0x284c6b('0x4')]},'callerid':{'type':Sequelize[_0x284c6b('0x4')]},'calleridname':{'type':Sequelize[_0x284c6b('0x4')]},'context':{'type':Sequelize['STRING']},'extension':{'type':Sequelize[_0x284c6b('0x4')]},'priority':{'type':Sequelize[_0x284c6b('0x4')]},'accountcode':{'type':Sequelize['STRING']},'dnid':{'type':Sequelize[_0x284c6b('0x4')]},'projectName':{'type':Sequelize['STRING']},'saveName':{'type':Sequelize[_0x284c6b('0x4')]},'filename':{'type':Sequelize['STRING']},'savePath':{'type':Sequelize['STRING']},'format':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x30b5ef=_0x284c6b;let _0x209858='';const _0x2a9e8d=this[_0x30b5ef('0x5')](_0x30b5ef('0x1'));return _0x2a9e8d&&(_0x209858=_0x2a9e8d[_0x30b5ef('0x2')](_0x2a9e8d['lastIndexOf']('.'))),_0x209858;}}}; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.controller.js b/server/api/squareRecording/squareRecording.controller.js index 7fec153..9eafc74 100644 --- a/server/api/squareRecording/squareRecording.controller.js +++ b/server/api/squareRecording/squareRecording.controller.js @@ -1 +1 @@ -const a605_0x608c=['filter','type','unlink','options','decryptFile','status','message','filename','File:\x20\x22','update','rawAttributes','rows','isNil','create','secrets','existsSync','length','Not\x20found','savePath','unlinkSync','then','SquareRecording','offset','../../config/logger','%s.cypher','where','findOne','attributes','extname','sequelize','util','query','includeAll','download','.cypher','catch','lodash','../../components/parsers/qs','format','send','uniqueid','undefined','Content-Range','api','cancellazione\x20fisica\x20documento\x20%s','filters','like','key','limit','sort','error','fieldName','pick','name','index','fields','body','Entity\x20not\x20found','include','map','params','info','VIRTUAL','model','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','merge','recording','intersection','end','count','error-middleware/errors','findAll','json','sendStatus','set','SquareRecording\x20not\x20found','keys','destroy','nolimit'];(function(_0x2c63b7,_0x608cfd){const _0x4023ea=function(_0x4e6118){while(--_0x4e6118){_0x2c63b7['push'](_0x2c63b7['shift']());}};_0x4023ea(++_0x608cfd);}(a605_0x608c,0x193));const a605_0x4023=function(_0x2c63b7,_0x608cfd){_0x2c63b7=_0x2c63b7-0x0;let _0x4023ea=a605_0x608c[_0x2c63b7];return _0x4023ea;};const _0x218c4e=a605_0x4023;'use strict';const util=require(_0x218c4e('0x16')),path=require('path'),fs=require('fs'),_=require(_0x218c4e('0x1c')),qs=require(_0x218c4e('0x1d')),logger=require(_0x218c4e('0xf'))(_0x218c4e('0x23')),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x218c4e('0x15')),{InternalError}=require(_0x218c4e('0x3e'));function respondWithResult(_0x4e6118,_0x319bbd){return _0x319bbd=_0x319bbd||0xc8,function(_0x3b3481){const _0x4aa68b=a605_0x4023;if(_0x3b3481)return _0x4e6118['status'](_0x319bbd)[_0x4aa68b('0x40')](_0x3b3481);};}function respondWithFilteredResult(_0x176153,_0x5e34f3){return function(_0xa8455c){const _0xedc242=a605_0x4023;if(_0xa8455c){const _0x25a4a0=_0xa8455c[_0xedc242('0x3d')],_0x54fc4f=_0x5e34f3[_0xedc242('0xe')];let _0x32e90f=_0x5e34f3['offset']+_0x5e34f3[_0xedc242('0x28')],_0x3f7c3f;return _0x32e90f>=_0x25a4a0?(_0x32e90f=_0x25a4a0,_0x3f7c3f=0xc8):_0x3f7c3f=0xce,_0x176153[_0xedc242('0x4c')](_0x3f7c3f),_0x176153[_0xedc242('0x42')](_0xedc242('0x22'),_0x54fc4f+'-'+_0x32e90f+'/'+_0x25a4a0)[_0xedc242('0x40')](_0xa8455c);}return null;};}function saveUpdates(_0x35f772){return function(_0x2b460e){const _0x247657=a605_0x4023;if(_0x2b460e)return _0x2b460e[_0x247657('0x1')](_0x35f772)['then'](function(_0x1f1940){return _0x1f1940;});return null;};}function handleEntityNotFound(_0x588fb1){return function(_0x57341d){const _0x5284a9=a605_0x4023;return!_0x57341d&&_0x588fb1[_0x5284a9('0x41')](0x194),_0x57341d;};}function handleError(_0x90ee71,_0x89b802){return _0x89b802=_0x89b802||0x1f4,function(_0x298652){const _0x526228=a605_0x4023;logger[_0x526228('0x2a')](_0x298652['stack']),_0x298652['name']&&delete _0x298652[_0x526228('0x2d')],_0x90ee71[_0x526228('0x4c')](_0x89b802)[_0x526228('0x1f')](_0x298652);};}exports[_0x218c4e('0x2e')]=function(_0x528520,_0x324f9b){const _0x28d529=_0x218c4e;let _0x39ce16={};const _0x5258e1={},_0x1f5971={'count':0x0,'rows':[]},_0x32badd=_['map'](db['SquareRecording'][_0x28d529('0x2')],function(_0x35c80f){const _0x5eed64=_0x28d529;return{'name':_0x35c80f[_0x5eed64('0x2b')],'type':_0x35c80f[_0x5eed64('0x48')][_0x5eed64('0x27')]};});_0x5258e1[_0x28d529('0x37')]=_[_0x28d529('0x33')](_0x32badd,'name'),_0x5258e1[_0x28d529('0x17')]=_['keys'](_0x528520['query']),_0x5258e1[_0x28d529('0x25')]=_['intersection'](_0x5258e1[_0x28d529('0x37')],_0x5258e1[_0x28d529('0x17')]),_0x39ce16[_0x28d529('0x13')]=_[_0x28d529('0x3b')](_0x5258e1[_0x28d529('0x37')],qs['fields'](_0x528520[_0x28d529('0x17')][_0x28d529('0x2f')])),_0x39ce16[_0x28d529('0x13')]=_0x39ce16[_0x28d529('0x13')][_0x28d529('0x8')]?_0x39ce16[_0x28d529('0x13')]:_0x5258e1[_0x28d529('0x37')];typeof _0x528520[_0x28d529('0x17')][_0x28d529('0x46')]===_0x28d529('0x21')&&(_0x39ce16[_0x28d529('0x28')]=qs[_0x28d529('0x28')](_0x528520[_0x28d529('0x17')][_0x28d529('0x28')]),_0x39ce16[_0x28d529('0xe')]=qs['offset'](_0x528520[_0x28d529('0x17')][_0x28d529('0xe')]));_0x39ce16['order']=qs[_0x28d529('0x29')](_0x528520[_0x28d529('0x17')][_0x28d529('0x29')]),_0x39ce16['where']=qs[_0x28d529('0x25')](_[_0x28d529('0x2c')](_0x528520['query'],_0x5258e1[_0x28d529('0x25')]),_0x32badd);_0x528520[_0x28d529('0x17')][_0x28d529('0x47')]&&(_0x39ce16[_0x28d529('0x11')]=_['merge'](_0x39ce16[_0x28d529('0x11')],{[Op['or']]:_[_0x28d529('0x33')](_0x32badd,function(_0x3a190f){const _0xb3096e=_0x28d529;if(_0x3a190f[_0xb3096e('0x48')]!==_0xb3096e('0x36')){const _0x5f09e5={};return _0x5f09e5[_0x3a190f['name']]={[Op[_0xb3096e('0x26')]]:'%'+_0x528520['query'][_0xb3096e('0x47')]+'%'},_0x5f09e5;}})}));_0x39ce16=_[_0x28d529('0x39')]({},_0x39ce16,_0x528520['options']);const _0x33eef8={'where':_0x39ce16[_0x28d529('0x11')]};return db[_0x28d529('0xd')][_0x28d529('0x3d')](_0x33eef8)[_0x28d529('0xc')](function(_0x5579d9){const _0x5bfa74=_0x28d529;return _0x1f5971[_0x5bfa74('0x3d')]=_0x5579d9,_0x528520[_0x5bfa74('0x17')][_0x5bfa74('0x18')]&&(_0x39ce16[_0x5bfa74('0x32')]=[{'all':!![]}]),db[_0x5bfa74('0xd')][_0x5bfa74('0x3f')](_0x39ce16);})[_0x28d529('0xc')](function(_0x58b4bf){const _0x8b3789=_0x28d529;return _0x1f5971[_0x8b3789('0x3')]=_0x58b4bf,_0x1f5971;})[_0x28d529('0xc')](respondWithFilteredResult(_0x324f9b,_0x39ce16))['catch'](handleError(_0x324f9b,null));},exports['show']=function(_0x6f01a2,_0x2ebc7b){const _0x154d7b=_0x218c4e;let _0x136898={'raw':!![],'where':{'id':_0x6f01a2[_0x154d7b('0x34')]['id']}};const _0x3fb9f0={};return _0x3fb9f0[_0x154d7b('0x37')]=_[_0x154d7b('0x44')](db['SquareRecording']['rawAttributes']),_0x3fb9f0[_0x154d7b('0x17')]=_[_0x154d7b('0x44')](_0x6f01a2[_0x154d7b('0x17')]),_0x3fb9f0[_0x154d7b('0x25')]=_[_0x154d7b('0x3b')](_0x3fb9f0[_0x154d7b('0x37')],_0x3fb9f0[_0x154d7b('0x17')]),_0x136898[_0x154d7b('0x13')]=_['intersection'](_0x3fb9f0['model'],qs[_0x154d7b('0x2f')](_0x6f01a2[_0x154d7b('0x17')][_0x154d7b('0x2f')])),_0x136898[_0x154d7b('0x13')]=_0x136898['attributes'][_0x154d7b('0x8')]?_0x136898['attributes']:_0x3fb9f0[_0x154d7b('0x37')],_0x6f01a2[_0x154d7b('0x17')][_0x154d7b('0x18')]&&(_0x136898[_0x154d7b('0x32')]=[{'all':!![]}]),_0x136898=_[_0x154d7b('0x39')]({},_0x136898,_0x6f01a2[_0x154d7b('0x4a')]),db[_0x154d7b('0xd')][_0x154d7b('0x12')](_0x136898)['then'](handleEntityNotFound(_0x2ebc7b,null))[_0x154d7b('0xc')](respondWithResult(_0x2ebc7b,null))['catch'](handleError(_0x2ebc7b,null));},exports['create']=function(_0x49455d,_0x48e795){const _0x17cdc9=_0x218c4e;return db[_0x17cdc9('0xd')][_0x17cdc9('0x5')](_0x49455d[_0x17cdc9('0x30')],{})[_0x17cdc9('0xc')](respondWithResult(_0x48e795,0xc9))[_0x17cdc9('0x1b')](handleError(_0x48e795,null));},exports[_0x218c4e('0x1')]=function(_0x4b1cba,_0xe32985){const _0x55bc65=_0x218c4e;return _0x4b1cba[_0x55bc65('0x30')]['id']&&delete _0x4b1cba[_0x55bc65('0x30')]['id'],db[_0x55bc65('0xd')]['findOne']({'where':{'id':_0x4b1cba[_0x55bc65('0x34')]['id']}})[_0x55bc65('0xc')](handleEntityNotFound(_0xe32985,null))[_0x55bc65('0xc')](saveUpdates(_0x4b1cba[_0x55bc65('0x30')],null))[_0x55bc65('0xc')](respondWithResult(_0xe32985,null))[_0x55bc65('0x1b')](handleError(_0xe32985,null));},exports[_0x218c4e('0x19')]=function(_0x273c66,_0x48454c){const _0x2c2ebd=_0x218c4e,_0x7fc7d8=require('../../components/encryptor');let _0x559fa7=![];const _0x5defac={};return _0x273c66[_0x2c2ebd('0x17')][_0x2c2ebd('0x48')]&&_0x273c66[_0x2c2ebd('0x17')][_0x2c2ebd('0x48')]==='uniqueid'?_0x5defac[_0x2c2ebd('0x20')]=_0x273c66['params']['id']:_0x5defac['id']=_0x273c66['params']['id'],db[_0x2c2ebd('0xd')]['findOne']({'where':_0x5defac,'attributes':['id',_0x2c2ebd('0xa'),'filename'],'raw':!![]})[_0x2c2ebd('0xc')](handleEntityNotFound(_0x48454c,null))[_0x2c2ebd('0xc')](function(_0x35c468){const _0x10e5d9=_0x2c2ebd;if(_0x35c468){const _0xe53aed=_0x35c468['savePath'],_0x510189=util[_0x10e5d9('0x1e')](_0x10e5d9('0x10'),_0xe53aed);if(fs[_0x10e5d9('0x7')](_0x510189))return _0x559fa7=!![],_0x7fc7d8[_0x10e5d9('0x4b')](_0x510189,_0xe53aed,config[_0x10e5d9('0x6')][_0x10e5d9('0x3a')])[_0x10e5d9('0xc')](function(){return _0x35c468;});return _0x35c468;}})['then'](function(_0x21fca6){const _0x3e4cbd=_0x2c2ebd;if(_0x21fca6){const _0x59d739=_0x21fca6['savePath'];if(!fs[_0x3e4cbd('0x7')](_0x59d739))throw new ValidationError(_0x3e4cbd('0x43'));return _0x21fca6[_0x3e4cbd('0x4e')]?_0x48454c[_0x3e4cbd('0x19')](_0x59d739,_0x21fca6[_0x3e4cbd('0x4e')]+path[_0x3e4cbd('0x14')](_0x59d739),function(){const _0x562b13=_0x3e4cbd;_0x559fa7&&fs[_0x562b13('0x49')](_0x59d739);}):_0x48454c[_0x3e4cbd('0x19')](_0x59d739,function(){const _0x301db8=_0x3e4cbd;_0x559fa7&&fs[_0x301db8('0x49')](_0x59d739);});}})[_0x2c2ebd('0x1b')](function(_0x25f267){const _0x4975ab=_0x2c2ebd;if(_0x25f267[_0x4975ab('0x4d')]==='SquareRecording\x20not\x20found')_0x48454c[_0x4975ab('0x4c')](0x194)['send'](_0x4975ab('0x9'));else return handleError(_0x48454c,null);});},exports[_0x218c4e('0x45')]=function(_0x3888aa,_0x456411){const _0x3dceb7=_0x218c4e;return db[_0x3dceb7('0xd')]['findOne']({'where':{'id':_0x3888aa[_0x3dceb7('0x34')]['id']}})[_0x3dceb7('0xc')](function(_0x433900){const _0x7ad392=_0x3dceb7;if(!_0x433900)throw new ReferenceError(_0x7ad392('0x31'));return _0x433900;})[_0x3dceb7('0xc')](function(_0x384e5a){const _0x48366f=_0x3dceb7;let _0x287e14=_0x384e5a['savePath'];return logger['info'](_0x48366f('0x24'),_0x287e14),!_[_0x48366f('0x4')](_0x384e5a[_0x48366f('0xa')])&&fs[_0x48366f('0x7')](_0x287e14)&&(logger[_0x48366f('0x35')](_0x48366f('0x0')+_0x287e14+_0x48366f('0x38')),fs[_0x48366f('0xb')](_0x287e14)),_0x287e14=_0x287e14+_0x48366f('0x1a'),!_[_0x48366f('0x4')](_0x384e5a[_0x48366f('0xa')])&&fs[_0x48366f('0x7')](_0x287e14)&&(logger[_0x48366f('0x35')]('File:\x20\x22'+_0x287e14+_0x48366f('0x38')),fs['unlinkSync'](_0x287e14)),_0x384e5a;})['then'](function(_0x1aa8af){if(!_0x1aa8af)throw new InternalError();return _0x1aa8af['destroy']();})[_0x3dceb7('0xc')](function(){const _0x21949b=_0x3dceb7;_0x456411[_0x21949b('0x4c')](0xcc)[_0x21949b('0x3c')]();})['catch'](handleError(_0x456411,null));}; \ No newline at end of file +const a605_0xabb4=['stack','error-middleware/errors','create','../../components/encryptor','File:\x20\x22','set','findOne','error','sendStatus','intersection','download','query','index','offset','unlinkSync','model','SquareRecording\x20not\x20found','unlink','format','destroy','fields','keys','name','options','status','length','map','../../mysqldb','show','Content-Range','../../config/logger','attributes','catch','send','existsSync','then','info','uniqueid','pick','end','fieldName','filter','params','../../config/environment','like','api','message','filters','body','rawAttributes','.cypher','lodash','includeAll','util','sort','decryptFile','extname','savePath','filename','SquareRecording','json','type','where','recording','count','limit','include','path','isNil','merge','update'];(function(_0x110b75,_0xabb46e){const _0x1f3caf=function(_0x357c58){while(--_0x357c58){_0x110b75['push'](_0x110b75['shift']());}};_0x1f3caf(++_0xabb46e);}(a605_0xabb4,0x1bb));const a605_0x1f3c=function(_0x110b75,_0xabb46e){_0x110b75=_0x110b75-0x0;let _0x1f3caf=a605_0xabb4[_0x110b75];return _0x1f3caf;};const _0x5e1f28=a605_0x1f3c;'use strict';const util=require(_0x5e1f28('0x24')),path=require(_0x5e1f28('0x32')),fs=require('fs'),_=require(_0x5e1f28('0x22')),qs=require('../../components/parsers/qs'),logger=require(_0x5e1f28('0xd'))(_0x5e1f28('0x1c')),config=require(_0x5e1f28('0x1a')),db=require(_0x5e1f28('0xa'))['db'],{Op,ValidationError}=require('sequelize'),{InternalError}=require(_0x5e1f28('0x37'));function respondWithResult(_0x357c58,_0x487d33){return _0x487d33=_0x487d33||0xc8,function(_0x531d35){const _0x5ae22c=a605_0x1f3c;if(_0x531d35)return _0x357c58[_0x5ae22c('0x7')](_0x487d33)[_0x5ae22c('0x2b')](_0x531d35);};}function respondWithFilteredResult(_0xf97c36,_0x4ea1f3){return function(_0xc7438f){const _0x186533=a605_0x1f3c;if(_0xc7438f){const _0xfb111c=_0xc7438f[_0x186533('0x2f')],_0x4b7fdf=_0x4ea1f3[_0x186533('0x43')];let _0xe11d4a=_0x4ea1f3[_0x186533('0x43')]+_0x4ea1f3[_0x186533('0x30')],_0x16407f;return _0xe11d4a>=_0xfb111c?(_0xe11d4a=_0xfb111c,_0x16407f=0xc8):_0x16407f=0xce,_0xf97c36['status'](_0x16407f),_0xf97c36[_0x186533('0x3b')](_0x186533('0xc'),_0x4b7fdf+'-'+_0xe11d4a+'/'+_0xfb111c)['json'](_0xc7438f);}return null;};}function saveUpdates(_0x9d09e3){return function(_0x16fa6d){const _0x1bf76e=a605_0x1f3c;if(_0x16fa6d)return _0x16fa6d[_0x1bf76e('0x35')](_0x9d09e3)[_0x1bf76e('0x12')](function(_0x3c6e62){return _0x3c6e62;});return null;};}function handleEntityNotFound(_0x25649b){return function(_0x517c31){const _0x47ea4f=a605_0x1f3c;return!_0x517c31&&_0x25649b[_0x47ea4f('0x3e')](0x194),_0x517c31;};}function handleError(_0x2b05ec,_0x166931){return _0x166931=_0x166931||0x1f4,function(_0x1fedce){const _0x313d9c=a605_0x1f3c;logger[_0x313d9c('0x3d')](_0x1fedce[_0x313d9c('0x36')]),_0x1fedce[_0x313d9c('0x5')]&&delete _0x1fedce[_0x313d9c('0x5')],_0x2b05ec['status'](_0x166931)[_0x313d9c('0x10')](_0x1fedce);};}exports[_0x5e1f28('0x42')]=function(_0x1390d9,_0x35726e){const _0x40c0fa=_0x5e1f28;let _0x32a6f2={};const _0x1ee78f={},_0x159945={'count':0x0,'rows':[]},_0x429bc8=_['map'](db[_0x40c0fa('0x2a')][_0x40c0fa('0x20')],function(_0x37d12b){const _0x49f45f=_0x40c0fa;return{'name':_0x37d12b[_0x49f45f('0x17')],'type':_0x37d12b[_0x49f45f('0x2c')]['key']};});_0x1ee78f[_0x40c0fa('0x45')]=_[_0x40c0fa('0x9')](_0x429bc8,_0x40c0fa('0x5')),_0x1ee78f['query']=_[_0x40c0fa('0x4')](_0x1390d9[_0x40c0fa('0x41')]),_0x1ee78f[_0x40c0fa('0x1e')]=_[_0x40c0fa('0x3f')](_0x1ee78f[_0x40c0fa('0x45')],_0x1ee78f[_0x40c0fa('0x41')]),_0x32a6f2['attributes']=_['intersection'](_0x1ee78f[_0x40c0fa('0x45')],qs['fields'](_0x1390d9[_0x40c0fa('0x41')][_0x40c0fa('0x3')])),_0x32a6f2['attributes']=_0x32a6f2[_0x40c0fa('0xe')][_0x40c0fa('0x8')]?_0x32a6f2[_0x40c0fa('0xe')]:_0x1ee78f[_0x40c0fa('0x45')];typeof _0x1390d9[_0x40c0fa('0x41')]['nolimit']==='undefined'&&(_0x32a6f2['limit']=qs[_0x40c0fa('0x30')](_0x1390d9[_0x40c0fa('0x41')][_0x40c0fa('0x30')]),_0x32a6f2[_0x40c0fa('0x43')]=qs['offset'](_0x1390d9[_0x40c0fa('0x41')][_0x40c0fa('0x43')]));_0x32a6f2['order']=qs['sort'](_0x1390d9[_0x40c0fa('0x41')][_0x40c0fa('0x25')]),_0x32a6f2[_0x40c0fa('0x2d')]=qs[_0x40c0fa('0x1e')](_[_0x40c0fa('0x15')](_0x1390d9[_0x40c0fa('0x41')],_0x1ee78f['filters']),_0x429bc8);_0x1390d9['query']['filter']&&(_0x32a6f2[_0x40c0fa('0x2d')]=_[_0x40c0fa('0x34')](_0x32a6f2[_0x40c0fa('0x2d')],{[Op['or']]:_[_0x40c0fa('0x9')](_0x429bc8,function(_0x4a35f2){const _0x25905a=_0x40c0fa;if(_0x4a35f2['type']!=='VIRTUAL'){const _0x31c688={};return _0x31c688[_0x4a35f2[_0x25905a('0x5')]]={[Op[_0x25905a('0x1b')]]:'%'+_0x1390d9[_0x25905a('0x41')][_0x25905a('0x18')]+'%'},_0x31c688;}})}));_0x32a6f2=_[_0x40c0fa('0x34')]({},_0x32a6f2,_0x1390d9[_0x40c0fa('0x6')]);const _0x5b574f={'where':_0x32a6f2[_0x40c0fa('0x2d')]};return db[_0x40c0fa('0x2a')]['count'](_0x5b574f)[_0x40c0fa('0x12')](function(_0x1242e7){const _0x26ffeb=_0x40c0fa;return _0x159945[_0x26ffeb('0x2f')]=_0x1242e7,_0x1390d9[_0x26ffeb('0x41')][_0x26ffeb('0x23')]&&(_0x32a6f2['include']=[{'all':!![]}]),db['SquareRecording']['findAll'](_0x32a6f2);})['then'](function(_0x2bde30){return _0x159945['rows']=_0x2bde30,_0x159945;})['then'](respondWithFilteredResult(_0x35726e,_0x32a6f2))['catch'](handleError(_0x35726e,null));},exports[_0x5e1f28('0xb')]=function(_0x3e62a0,_0x593ef1){const _0x36f78b=_0x5e1f28;let _0x4aa9ba={'raw':!![],'where':{'id':_0x3e62a0[_0x36f78b('0x19')]['id']}};const _0xc755d7={};return _0xc755d7[_0x36f78b('0x45')]=_[_0x36f78b('0x4')](db[_0x36f78b('0x2a')][_0x36f78b('0x20')]),_0xc755d7[_0x36f78b('0x41')]=_[_0x36f78b('0x4')](_0x3e62a0[_0x36f78b('0x41')]),_0xc755d7[_0x36f78b('0x1e')]=_['intersection'](_0xc755d7[_0x36f78b('0x45')],_0xc755d7[_0x36f78b('0x41')]),_0x4aa9ba[_0x36f78b('0xe')]=_['intersection'](_0xc755d7[_0x36f78b('0x45')],qs[_0x36f78b('0x3')](_0x3e62a0[_0x36f78b('0x41')][_0x36f78b('0x3')])),_0x4aa9ba[_0x36f78b('0xe')]=_0x4aa9ba[_0x36f78b('0xe')][_0x36f78b('0x8')]?_0x4aa9ba['attributes']:_0xc755d7[_0x36f78b('0x45')],_0x3e62a0[_0x36f78b('0x41')]['includeAll']&&(_0x4aa9ba[_0x36f78b('0x31')]=[{'all':!![]}]),_0x4aa9ba=_[_0x36f78b('0x34')]({},_0x4aa9ba,_0x3e62a0['options']),db['SquareRecording']['findOne'](_0x4aa9ba)[_0x36f78b('0x12')](handleEntityNotFound(_0x593ef1,null))[_0x36f78b('0x12')](respondWithResult(_0x593ef1,null))['catch'](handleError(_0x593ef1,null));},exports[_0x5e1f28('0x38')]=function(_0x345a40,_0x24380c){const _0x5ab94b=_0x5e1f28;return db['SquareRecording'][_0x5ab94b('0x38')](_0x345a40['body'],{})['then'](respondWithResult(_0x24380c,0xc9))[_0x5ab94b('0xf')](handleError(_0x24380c,null));},exports[_0x5e1f28('0x35')]=function(_0x26b859,_0x48dfc3){const _0x2b5dc5=_0x5e1f28;return _0x26b859[_0x2b5dc5('0x1f')]['id']&&delete _0x26b859[_0x2b5dc5('0x1f')]['id'],db[_0x2b5dc5('0x2a')][_0x2b5dc5('0x3c')]({'where':{'id':_0x26b859['params']['id']}})['then'](handleEntityNotFound(_0x48dfc3,null))[_0x2b5dc5('0x12')](saveUpdates(_0x26b859[_0x2b5dc5('0x1f')],null))[_0x2b5dc5('0x12')](respondWithResult(_0x48dfc3,null))[_0x2b5dc5('0xf')](handleError(_0x48dfc3,null));},exports[_0x5e1f28('0x40')]=function(_0x4c7a51,_0x35eaa3){const _0x4aeb8c=_0x5e1f28,_0x56a289=require(_0x4aeb8c('0x39'));let _0x45ab56=![];const _0x80905e={};return _0x4c7a51[_0x4aeb8c('0x41')]['type']&&_0x4c7a51[_0x4aeb8c('0x41')][_0x4aeb8c('0x2c')]===_0x4aeb8c('0x14')?_0x80905e[_0x4aeb8c('0x14')]=_0x4c7a51['params']['id']:_0x80905e['id']=_0x4c7a51[_0x4aeb8c('0x19')]['id'],db[_0x4aeb8c('0x2a')][_0x4aeb8c('0x3c')]({'where':_0x80905e,'attributes':['id',_0x4aeb8c('0x28'),_0x4aeb8c('0x29')],'raw':!![]})[_0x4aeb8c('0x12')](handleEntityNotFound(_0x35eaa3,null))[_0x4aeb8c('0x12')](function(_0x35797d){const _0x3f1a9f=_0x4aeb8c;if(_0x35797d){const _0x46a0e6=_0x35797d['savePath'],_0xee5ec6=util[_0x3f1a9f('0x1')]('%s.cypher',_0x46a0e6);if(fs[_0x3f1a9f('0x11')](_0xee5ec6))return _0x45ab56=!![],_0x56a289[_0x3f1a9f('0x26')](_0xee5ec6,_0x46a0e6,config['secrets'][_0x3f1a9f('0x2e')])[_0x3f1a9f('0x12')](function(){return _0x35797d;});return _0x35797d;}})[_0x4aeb8c('0x12')](function(_0x2756f0){const _0x5eac22=_0x4aeb8c;if(_0x2756f0){const _0x274908=_0x2756f0[_0x5eac22('0x28')];if(!fs[_0x5eac22('0x11')](_0x274908))throw new ValidationError(_0x5eac22('0x46'));return _0x2756f0['filename']?_0x35eaa3[_0x5eac22('0x40')](_0x274908,_0x2756f0[_0x5eac22('0x29')]+path[_0x5eac22('0x27')](_0x274908),function(){const _0x494295=_0x5eac22;_0x45ab56&&fs[_0x494295('0x0')](_0x274908);}):_0x35eaa3[_0x5eac22('0x40')](_0x274908,function(){const _0x325fa0=_0x5eac22;_0x45ab56&&fs[_0x325fa0('0x0')](_0x274908);});}})[_0x4aeb8c('0xf')](function(_0x17b0d3){const _0x3595f7=_0x4aeb8c;if(_0x17b0d3[_0x3595f7('0x1d')]==='SquareRecording\x20not\x20found')_0x35eaa3[_0x3595f7('0x7')](0x194)[_0x3595f7('0x10')]('Not\x20found');else return handleError(_0x35eaa3,null);});},exports[_0x5e1f28('0x2')]=function(_0x37383c,_0x37569a){const _0x1538d6=_0x5e1f28;return db[_0x1538d6('0x2a')]['findOne']({'where':{'id':_0x37383c['params']['id']}})[_0x1538d6('0x12')](function(_0xe81efc){if(!_0xe81efc)throw new ReferenceError('Entity\x20not\x20found');return _0xe81efc;})[_0x1538d6('0x12')](function(_0x58d3a9){const _0x6c1519=_0x1538d6;let _0x3249d0=_0x58d3a9[_0x6c1519('0x28')];return logger[_0x6c1519('0x13')]('cancellazione\x20fisica\x20documento\x20%s',_0x3249d0),!_[_0x6c1519('0x33')](_0x58d3a9[_0x6c1519('0x28')])&&fs[_0x6c1519('0x11')](_0x3249d0)&&(logger[_0x6c1519('0x13')]('File:\x20\x22'+_0x3249d0+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x6c1519('0x44')](_0x3249d0)),_0x3249d0=_0x3249d0+_0x6c1519('0x21'),!_['isNil'](_0x58d3a9[_0x6c1519('0x28')])&&fs[_0x6c1519('0x11')](_0x3249d0)&&(logger[_0x6c1519('0x13')](_0x6c1519('0x3a')+_0x3249d0+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x6c1519('0x44')](_0x3249d0)),_0x58d3a9;})['then'](function(_0x42ea6e){const _0x3c0ae3=_0x1538d6;if(!_0x42ea6e)throw new InternalError();return _0x42ea6e[_0x3c0ae3('0x2')]();})['then'](function(){const _0x361f1a=_0x1538d6;_0x37569a[_0x361f1a('0x7')](0xcc)[_0x361f1a('0x16')]();})[_0x1538d6('0xf')](handleError(_0x37569a,null));}; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.model.js b/server/api/squareRecording/squareRecording.model.js index 6c8bb83..91a316e 100644 --- a/server/api/squareRecording/squareRecording.model.js +++ b/server/api/squareRecording/squareRecording.model.js @@ -1 +1 @@ -const a606_0x2c97=['square_recordings','define','exports','SquareRecording','./squareRecording.attributes'];(function(_0x486b44,_0x2c978c){const _0x595762=function(_0x4cac85){while(--_0x4cac85){_0x486b44['push'](_0x486b44['shift']());}};_0x595762(++_0x2c978c);}(a606_0x2c97,0x7e));const a606_0x5957=function(_0x486b44,_0x2c978c){_0x486b44=_0x486b44-0x0;let _0x595762=a606_0x2c97[_0x486b44];return _0x595762;};const _0x35cf29=a606_0x5957;'use strict';const attributes=require(_0x35cf29('0x3'));module[_0x35cf29('0x1')]=function(_0x4cac85){const _0x263b6=_0x35cf29,_0x3f01b4=_0x4cac85[_0x263b6('0x0')](_0x263b6('0x2'),attributes,{'tableName':_0x263b6('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3f01b4;}; \ No newline at end of file +const a606_0x4e29=['exports','SquareRecording','define','square_recordings'];(function(_0xd70abf,_0x4e293c){const _0x4b28b6=function(_0x42a39a){while(--_0x42a39a){_0xd70abf['push'](_0xd70abf['shift']());}};_0x4b28b6(++_0x4e293c);}(a606_0x4e29,0xe2));const a606_0x4b28=function(_0xd70abf,_0x4e293c){_0xd70abf=_0xd70abf-0x0;let _0x4b28b6=a606_0x4e29[_0xd70abf];return _0x4b28b6;};const _0x510da0=a606_0x4b28;'use strict';const attributes=require('./squareRecording.attributes');module[_0x510da0('0x2')]=function(_0x42a39a){const _0x327641=_0x510da0,_0x29f88d=_0x42a39a[_0x327641('0x0')](_0x327641('0x3'),attributes,{'tableName':_0x327641('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x29f88d;}; \ No newline at end of file diff --git a/server/api/squareRecording/squareRecording.rpc.js b/server/api/squareRecording/squareRecording.rpc.js index afd93a5..3deadf1 100644 --- a/server/api/squareRecording/squareRecording.rpc.js +++ b/server/api/squareRecording/squareRecording.rpc.js @@ -1 +1 @@ -const a607_0x4b4c=['options','stringify','error','catch','message','CreateSquareRecording','create','SquareRecording','rpc','then','../../config/logger'];(function(_0x1441b8,_0x4b4cef){const _0xb43704=function(_0x56eea4){while(--_0x56eea4){_0x1441b8['push'](_0x1441b8['shift']());}};_0xb43704(++_0x4b4cef);}(a607_0x4b4c,0xeb));const a607_0xb437=function(_0x1441b8,_0x4b4cef){_0x1441b8=_0x1441b8-0x0;let _0xb43704=a607_0x4b4c[_0x1441b8];return _0xb43704;};const _0x40b2a1=a607_0xb437;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x40b2a1('0x6'))(_0x40b2a1('0x4'));exports['CreateSquareRecording']=function(_0x56eea4){const _0x5385eb=this;return new Promise(function(_0x280bcb,_0x5dcf93){const _0x4fab91=a607_0xb437;return db[_0x4fab91('0x3')][_0x4fab91('0x2')](_0x56eea4['body'],{'raw':_0x56eea4[_0x4fab91('0x7')]?_0x56eea4[_0x4fab91('0x7')]['raw']===undefined?!![]:![]:!![]})[_0x4fab91('0x5')](function(_0x449ff7){const _0x25bfb1=_0x4fab91;logger['info']('CreateSquareRecording',_0x56eea4),logger['debug'](_0x25bfb1('0x1'),_0x56eea4,JSON[_0x25bfb1('0x8')](_0x449ff7)),_0x280bcb(_0x449ff7);})[_0x4fab91('0xa')](function(_0x209465){const _0x360d05=_0x4fab91;logger[_0x360d05('0x9')](_0x360d05('0x1'),_0x209465['message'],_0x56eea4),_0x5dcf93(_0x5385eb[_0x360d05('0x9')](0x1f4,_0x209465[_0x360d05('0x0')]));});});}; \ No newline at end of file +const a607_0x1d6d=['debug','../../config/logger','info','message','CreateSquareRecording','catch','error','../../mysqldb','create','body','rpc','options','stringify'];(function(_0x4acf28,_0x1d6db9){const _0x4ff881=function(_0x9cc57b){while(--_0x9cc57b){_0x4acf28['push'](_0x4acf28['shift']());}};_0x4ff881(++_0x1d6db9);}(a607_0x1d6d,0xdb));const a607_0x4ff8=function(_0x4acf28,_0x1d6db9){_0x4acf28=_0x4acf28-0x0;let _0x4ff881=a607_0x1d6d[_0x4acf28];return _0x4ff881;};const _0x57217b=a607_0x4ff8;'use strict';const db=require(_0x57217b('0x9'))['db'],logger=require(_0x57217b('0x3'))(_0x57217b('0xc'));exports[_0x57217b('0x6')]=function(_0x9cc57b){const _0x4d2af9=this;return new Promise(function(_0x1adc95,_0x1eeb3d){const _0x3c1737=a607_0x4ff8;return db['SquareRecording'][_0x3c1737('0xa')](_0x9cc57b[_0x3c1737('0xb')],{'raw':_0x9cc57b['options']?_0x9cc57b[_0x3c1737('0x0')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x2946bd){const _0x458526=_0x3c1737;logger[_0x458526('0x4')]('CreateSquareRecording',_0x9cc57b),logger[_0x458526('0x2')]('CreateSquareRecording',_0x9cc57b,JSON[_0x458526('0x1')](_0x2946bd)),_0x1adc95(_0x2946bd);})[_0x3c1737('0x7')](function(_0x5c06eb){const _0x4a38b1=_0x3c1737;logger[_0x4a38b1('0x8')](_0x4a38b1('0x6'),_0x5c06eb[_0x4a38b1('0x5')],_0x9cc57b),_0x1eeb3d(_0x4d2af9[_0x4a38b1('0x8')](0x1f4,_0x5c06eb['message']));});});}; \ No newline at end of file diff --git a/server/api/squareReport/index.js b/server/api/squareReport/index.js index 496234e..d743869 100644 --- a/server/api/squareReport/index.js +++ b/server/api/squareReport/index.js @@ -1 +1 @@ -const a608_0x2ec4=['destroy','create','show','exports','delete','isAuthenticated','put','/:id','./squareReport.controller','express','post','Router','get','update','../../components/auth/service','/describe'];(function(_0x3da321,_0x2ec41f){const _0x55182f=function(_0x290aa9){while(--_0x290aa9){_0x3da321['push'](_0x3da321['shift']());}};_0x55182f(++_0x2ec41f);}(a608_0x2ec4,0x141));const a608_0x5518=function(_0x3da321,_0x2ec41f){_0x3da321=_0x3da321-0x0;let _0x55182f=a608_0x2ec4[_0x3da321];return _0x55182f;};const _0x46b448=a608_0x5518;'use strict';const express=require(_0x46b448('0x8')),router=express[_0x46b448('0xa')](),auth=require(_0x46b448('0xd')),controller=require(_0x46b448('0x7'));router[_0x46b448('0xb')]('/',auth[_0x46b448('0x4')](),controller['index']),router[_0x46b448('0xb')](_0x46b448('0xe'),auth[_0x46b448('0x4')](),controller['describe']),router[_0x46b448('0xb')]('/:id',auth['isAuthenticated'](),controller[_0x46b448('0x1')]),router[_0x46b448('0x9')]('/',auth[_0x46b448('0x4')](),controller[_0x46b448('0x0')]),router[_0x46b448('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x46b448('0xc')]),router[_0x46b448('0x3')](_0x46b448('0x6'),auth[_0x46b448('0x4')](),controller[_0x46b448('0xf')]),module[_0x46b448('0x2')]=router; \ No newline at end of file +const a608_0x1e43=['describe','Router','get','update','/:id','show','isAuthenticated','../../components/auth/service','destroy','put','post','index','express','create','exports','/describe','delete','./squareReport.controller'];(function(_0x309ff0,_0x1e4302){const _0x4c1447=function(_0xbafd3e){while(--_0xbafd3e){_0x309ff0['push'](_0x309ff0['shift']());}};_0x4c1447(++_0x1e4302);}(a608_0x1e43,0x1b9));const a608_0x4c14=function(_0x309ff0,_0x1e4302){_0x309ff0=_0x309ff0-0x0;let _0x4c1447=a608_0x1e43[_0x309ff0];return _0x4c1447;};const _0x1b2828=a608_0x4c14;'use strict';const express=require(_0x1b2828('0x3')),router=express[_0x1b2828('0xa')](),auth=require(_0x1b2828('0x10')),controller=require(_0x1b2828('0x8'));router[_0x1b2828('0xb')]('/',auth[_0x1b2828('0xf')](),controller[_0x1b2828('0x2')]),router[_0x1b2828('0xb')](_0x1b2828('0x6'),auth['isAuthenticated'](),controller[_0x1b2828('0x9')]),router[_0x1b2828('0xb')](_0x1b2828('0xd'),auth[_0x1b2828('0xf')](),controller[_0x1b2828('0xe')]),router[_0x1b2828('0x1')]('/',auth[_0x1b2828('0xf')](),controller[_0x1b2828('0x4')]),router[_0x1b2828('0x0')](_0x1b2828('0xd'),auth['isAuthenticated'](),controller[_0x1b2828('0xc')]),router[_0x1b2828('0x7')](_0x1b2828('0xd'),auth[_0x1b2828('0xf')](),controller[_0x1b2828('0x11')]),module[_0x1b2828('0x5')]=router; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.attributes.js b/server/api/squareReport/squareReport.attributes.js index a646896..273b991 100644 --- a/server/api/squareReport/squareReport.attributes.js +++ b/server/api/squareReport/squareReport.attributes.js @@ -1 +1 @@ -const a609_0x1101=['BOOLEAN','sequelize','exports','DATE','STRING'];(function(_0x13e25c,_0x1101ba){const _0x2d025f=function(_0x41db74){while(--_0x41db74){_0x13e25c['push'](_0x13e25c['shift']());}};_0x2d025f(++_0x1101ba);}(a609_0x1101,0xb0));const a609_0x2d02=function(_0x13e25c,_0x1101ba){_0x13e25c=_0x13e25c-0x0;let _0x2d025f=a609_0x1101[_0x13e25c];return _0x2d025f;};const _0x5a6dcd=a609_0x2d02;'use strict';const Sequelize=require(_0x5a6dcd('0x0'));module[_0x5a6dcd('0x1')]={'network':{'type':Sequelize[_0x5a6dcd('0x3')]},'network_script':{'type':Sequelize[_0x5a6dcd('0x3')]},'request':{'type':Sequelize[_0x5a6dcd('0x3')]},'channel':{'type':Sequelize[_0x5a6dcd('0x3')]},'language':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x5a6dcd('0x3')]},'uniqueid':{'type':Sequelize[_0x5a6dcd('0x3')]},'version':{'type':Sequelize[_0x5a6dcd('0x3')]},'callerid':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize[_0x5a6dcd('0x3')]},'callingpres':{'type':Sequelize[_0x5a6dcd('0x3')]},'callingani2':{'type':Sequelize[_0x5a6dcd('0x3')]},'callington':{'type':Sequelize[_0x5a6dcd('0x3')]},'callingtns':{'type':Sequelize[_0x5a6dcd('0x3')]},'dnid':{'type':Sequelize[_0x5a6dcd('0x3')]},'rdnis':{'type':Sequelize[_0x5a6dcd('0x3')]},'context':{'type':Sequelize[_0x5a6dcd('0x3')]},'extension':{'type':Sequelize[_0x5a6dcd('0x3')]},'priority':{'type':Sequelize[_0x5a6dcd('0x3')]},'enhanced':{'type':Sequelize[_0x5a6dcd('0x3')]},'accountcode':{'type':Sequelize['STRING']},'threadid':{'type':Sequelize[_0x5a6dcd('0x3')]},'project_name':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x5a6dcd('0x2')]},'leaveAt':{'type':Sequelize['DATE']},'bot':{'type':Sequelize[_0x5a6dcd('0x4')],'defaultValue':![]}}; \ No newline at end of file +const a609_0xe93d=['DATE','sequelize','STRING','BOOLEAN','exports'];(function(_0x19a85b,_0xe93d02){const _0x183baf=function(_0x259583){while(--_0x259583){_0x19a85b['push'](_0x19a85b['shift']());}};_0x183baf(++_0xe93d02);}(a609_0xe93d,0x92));const a609_0x183b=function(_0x19a85b,_0xe93d02){_0x19a85b=_0x19a85b-0x0;let _0x183baf=a609_0xe93d[_0x19a85b];return _0x183baf;};const _0x7ec758=a609_0x183b;'use strict';const Sequelize=require(_0x7ec758('0x0'));module[_0x7ec758('0x3')]={'network':{'type':Sequelize[_0x7ec758('0x1')]},'network_script':{'type':Sequelize[_0x7ec758('0x1')]},'request':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x7ec758('0x1')]},'language':{'type':Sequelize[_0x7ec758('0x1')]},'type':{'type':Sequelize['STRING']},'uniqueid':{'type':Sequelize[_0x7ec758('0x1')]},'version':{'type':Sequelize[_0x7ec758('0x1')]},'callerid':{'type':Sequelize[_0x7ec758('0x1')]},'calleridname':{'type':Sequelize[_0x7ec758('0x1')]},'callingpres':{'type':Sequelize['STRING']},'callingani2':{'type':Sequelize[_0x7ec758('0x1')]},'callington':{'type':Sequelize[_0x7ec758('0x1')]},'callingtns':{'type':Sequelize[_0x7ec758('0x1')]},'dnid':{'type':Sequelize[_0x7ec758('0x1')]},'rdnis':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0x7ec758('0x1')]},'extension':{'type':Sequelize[_0x7ec758('0x1')]},'priority':{'type':Sequelize['STRING']},'enhanced':{'type':Sequelize[_0x7ec758('0x1')]},'accountcode':{'type':Sequelize['STRING']},'threadid':{'type':Sequelize[_0x7ec758('0x1')]},'project_name':{'type':Sequelize[_0x7ec758('0x1')]},'joinAt':{'type':Sequelize[_0x7ec758('0x4')]},'leaveAt':{'type':Sequelize[_0x7ec758('0x4')]},'bot':{'type':Sequelize[_0x7ec758('0x2')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.controller.js b/server/api/squareReport/squareReport.controller.js index fc0f782..2d02b02 100644 --- a/server/api/squareReport/squareReport.controller.js +++ b/server/api/squareReport/squareReport.controller.js @@ -1 +1 @@ -const a610_0x47b6=['SquareReport','type','where','limit','key','catch','offset','show','stack','rawAttributes','../../components/parsers/qs','destroy','rows','count','sequelize','fields','json','filters','nolimit','merge','intersection','body','describe','options','sort','query','Content-Range','VIRTUAL','index','fieldName','attributes','findAll','model','create','pick','status','name','api','send','error','set','length','includeAll','findOne','keys','like','map','params','../../config/logger','../../mysqldb','update','include','then','lodash'];(function(_0x2b8f2c,_0x47b6fe){const _0x14274e=function(_0xc730a1){while(--_0xc730a1){_0x2b8f2c['push'](_0x2b8f2c['shift']());}};_0x14274e(++_0x47b6fe);}(a610_0x47b6,0x171));const a610_0x1427=function(_0x2b8f2c,_0x47b6fe){_0x2b8f2c=_0x2b8f2c-0x0;let _0x14274e=a610_0x47b6[_0x2b8f2c];return _0x14274e;};const _0x4b8283=a610_0x1427;'use strict';const _=require(_0x4b8283('0x8')),qs=require(_0x4b8283('0x13')),logger=require(_0x4b8283('0x3'))(_0x4b8283('0x2e')),db=require(_0x4b8283('0x4'))['db'],{Op}=require(_0x4b8283('0x17'));function respondWithResult(_0xc730a1,_0x594713){return _0x594713=_0x594713||0xc8,function(_0x2acf69){const _0x432908=a610_0x1427;if(_0x2acf69)return _0xc730a1[_0x432908('0x2c')](_0x594713)[_0x432908('0x19')](_0x2acf69);};}function respondWithFilteredResult(_0x5935f4,_0x321e44){return function(_0x1f8869){const _0x57c096=a610_0x1427;if(_0x1f8869){const _0x1e95eb=_0x1f8869['count'],_0x9f7a4e=_0x321e44[_0x57c096('0xf')];let _0x5eff7e=_0x321e44[_0x57c096('0xf')]+_0x321e44['limit'],_0x739ffa;return _0x5eff7e>=_0x1e95eb?(_0x5eff7e=_0x1e95eb,_0x739ffa=0xc8):_0x739ffa=0xce,_0x5935f4[_0x57c096('0x2c')](_0x739ffa),_0x5935f4[_0x57c096('0x31')](_0x57c096('0x23'),_0x9f7a4e+'-'+_0x5eff7e+'/'+_0x1e95eb)[_0x57c096('0x19')](_0x1f8869);}return null;};}function saveUpdates(_0x525fdb){return function(_0xf77a3){if(_0xf77a3)return _0xf77a3['update'](_0x525fdb)['then'](function(_0x3de407){return _0x3de407;});return null;};}function removeEntity(_0x9091c7){return function(_0x4c7cad){const _0x5bc308=a610_0x1427;if(_0x4c7cad)return _0x4c7cad[_0x5bc308('0x14')]()[_0x5bc308('0x7')](function(){_0x9091c7['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x5cb158){return function(_0x68136a){return!_0x68136a&&_0x5cb158['sendStatus'](0x194),_0x68136a;};}function handleError(_0x2959e2,_0x34fbbb){return _0x34fbbb=_0x34fbbb||0x1f4,function(_0x2c625e){const _0x375855=a610_0x1427;logger[_0x375855('0x30')](_0x2c625e[_0x375855('0x11')]),_0x2c625e['name']&&delete _0x2c625e[_0x375855('0x2d')],_0x2959e2[_0x375855('0x2c')](_0x34fbbb)[_0x375855('0x2f')](_0x2c625e);};}exports[_0x4b8283('0x25')]=function(_0x28df0d,_0x4d544a){const _0x41461e=_0x4b8283;let _0x431ec8={};const _0x22e8d3={},_0x36daad={'count':0x0,'rows':[]},_0x4ae662=_[_0x41461e('0x1')](db[_0x41461e('0x9')][_0x41461e('0x12')],function(_0xd9c64){const _0x46bcaa=_0x41461e;return{'name':_0xd9c64[_0x46bcaa('0x26')],'type':_0xd9c64[_0x46bcaa('0xa')][_0x46bcaa('0xd')]};});_0x22e8d3[_0x41461e('0x29')]=_['map'](_0x4ae662,_0x41461e('0x2d')),_0x22e8d3['query']=_[_0x41461e('0x35')](_0x28df0d[_0x41461e('0x22')]),_0x22e8d3[_0x41461e('0x1a')]=_[_0x41461e('0x1d')](_0x22e8d3[_0x41461e('0x29')],_0x22e8d3['query']),_0x431ec8[_0x41461e('0x27')]=_[_0x41461e('0x1d')](_0x22e8d3[_0x41461e('0x29')],qs[_0x41461e('0x18')](_0x28df0d[_0x41461e('0x22')][_0x41461e('0x18')])),_0x431ec8[_0x41461e('0x27')]=_0x431ec8[_0x41461e('0x27')]['length']?_0x431ec8[_0x41461e('0x27')]:_0x22e8d3[_0x41461e('0x29')];typeof _0x28df0d[_0x41461e('0x22')][_0x41461e('0x1b')]==='undefined'&&(_0x431ec8[_0x41461e('0xc')]=qs['limit'](_0x28df0d[_0x41461e('0x22')][_0x41461e('0xc')]),_0x431ec8[_0x41461e('0xf')]=qs[_0x41461e('0xf')](_0x28df0d[_0x41461e('0x22')]['offset']));_0x431ec8['order']=qs[_0x41461e('0x21')](_0x28df0d['query'][_0x41461e('0x21')]),_0x431ec8[_0x41461e('0xb')]=qs[_0x41461e('0x1a')](_[_0x41461e('0x2b')](_0x28df0d[_0x41461e('0x22')],_0x22e8d3[_0x41461e('0x1a')]),_0x4ae662);_0x28df0d[_0x41461e('0x22')]['filter']&&(_0x431ec8[_0x41461e('0xb')]=_[_0x41461e('0x1c')](_0x431ec8[_0x41461e('0xb')],{[Op['or']]:_[_0x41461e('0x1')](_0x4ae662,function(_0x2c43ea){const _0x51c2f4=_0x41461e;if(_0x2c43ea[_0x51c2f4('0xa')]!==_0x51c2f4('0x24')){const _0x4130f1={};return _0x4130f1[_0x2c43ea['name']]={[Op[_0x51c2f4('0x0')]]:'%'+_0x28df0d[_0x51c2f4('0x22')]['filter']+'%'},_0x4130f1;}})}));_0x431ec8=_['merge']({},_0x431ec8,_0x28df0d['options']);const _0x3affba={'where':_0x431ec8[_0x41461e('0xb')]};return db[_0x41461e('0x9')][_0x41461e('0x16')](_0x3affba)[_0x41461e('0x7')](function(_0x137929){const _0x5c7b23=_0x41461e;return _0x36daad['count']=_0x137929,_0x28df0d[_0x5c7b23('0x22')][_0x5c7b23('0x33')]&&(_0x431ec8['include']=[{'all':!![]}]),db[_0x5c7b23('0x9')][_0x5c7b23('0x28')](_0x431ec8);})[_0x41461e('0x7')](function(_0x5059fa){const _0x2737ff=_0x41461e;return _0x36daad[_0x2737ff('0x15')]=_0x5059fa,_0x36daad;})[_0x41461e('0x7')](respondWithFilteredResult(_0x4d544a,_0x431ec8))[_0x41461e('0xe')](handleError(_0x4d544a,null));},exports[_0x4b8283('0x10')]=function(_0xdf8555,_0x56db84){const _0xbd1a2e=_0x4b8283;let _0x5cf7f0={'raw':!![],'where':{'id':_0xdf8555[_0xbd1a2e('0x2')]['id']}};const _0x597270={};return _0x597270[_0xbd1a2e('0x29')]=_[_0xbd1a2e('0x35')](db['SquareReport']['rawAttributes']),_0x597270[_0xbd1a2e('0x22')]=_[_0xbd1a2e('0x35')](_0xdf8555[_0xbd1a2e('0x22')]),_0x597270[_0xbd1a2e('0x1a')]=_[_0xbd1a2e('0x1d')](_0x597270[_0xbd1a2e('0x29')],_0x597270[_0xbd1a2e('0x22')]),_0x5cf7f0['attributes']=_[_0xbd1a2e('0x1d')](_0x597270[_0xbd1a2e('0x29')],qs[_0xbd1a2e('0x18')](_0xdf8555[_0xbd1a2e('0x22')][_0xbd1a2e('0x18')])),_0x5cf7f0[_0xbd1a2e('0x27')]=_0x5cf7f0[_0xbd1a2e('0x27')][_0xbd1a2e('0x32')]?_0x5cf7f0['attributes']:_0x597270[_0xbd1a2e('0x29')],_0xdf8555[_0xbd1a2e('0x22')][_0xbd1a2e('0x33')]&&(_0x5cf7f0[_0xbd1a2e('0x6')]=[{'all':!![]}]),_0x5cf7f0=_[_0xbd1a2e('0x1c')]({},_0x5cf7f0,_0xdf8555[_0xbd1a2e('0x20')]),db[_0xbd1a2e('0x9')][_0xbd1a2e('0x34')](_0x5cf7f0)[_0xbd1a2e('0x7')](handleEntityNotFound(_0x56db84,null))['then'](respondWithResult(_0x56db84,null))[_0xbd1a2e('0xe')](handleError(_0x56db84,null));},exports[_0x4b8283('0x2a')]=function(_0x834c94,_0x3ba4f0){const _0x5defa2=_0x4b8283;return db[_0x5defa2('0x9')][_0x5defa2('0x2a')](_0x834c94[_0x5defa2('0x1e')],{})[_0x5defa2('0x7')](respondWithResult(_0x3ba4f0,0xc9))[_0x5defa2('0xe')](handleError(_0x3ba4f0,null));},exports[_0x4b8283('0x5')]=function(_0x1f199e,_0x15d9a2){const _0x30c138=_0x4b8283;return _0x1f199e[_0x30c138('0x1e')]['id']&&delete _0x1f199e[_0x30c138('0x1e')]['id'],db[_0x30c138('0x9')]['findOne']({'where':{'id':_0x1f199e[_0x30c138('0x2')]['id']}})[_0x30c138('0x7')](handleEntityNotFound(_0x15d9a2,null))[_0x30c138('0x7')](saveUpdates(_0x1f199e['body'],null))[_0x30c138('0x7')](respondWithResult(_0x15d9a2,null))[_0x30c138('0xe')](handleError(_0x15d9a2,null));},exports[_0x4b8283('0x14')]=function(_0x328af5,_0x24c8b0){const _0x9ae1dc=_0x4b8283;return db[_0x9ae1dc('0x9')][_0x9ae1dc('0x34')]({'where':{'id':_0x328af5[_0x9ae1dc('0x2')]['id']}})[_0x9ae1dc('0x7')](handleEntityNotFound(_0x24c8b0,null))[_0x9ae1dc('0x7')](removeEntity(_0x24c8b0,null))['catch'](handleError(_0x24c8b0,null));},exports[_0x4b8283('0x1f')]=function(_0x3a9ef7,_0x19bae7){const _0x336efd=_0x4b8283;return db[_0x336efd('0x9')][_0x336efd('0x1f')]()['then'](respondWithResult(_0x19bae7,null))['catch'](handleError(_0x19bae7,null));}; \ No newline at end of file +const a610_0x627b=['where','end','map','create','filters','set','SquareReport','lodash','type','rawAttributes','key','then','query','../../config/logger','filter','sort','sendStatus','../../components/parsers/qs','stack','fieldName','destroy','sequelize','order','attributes','like','length','count','send','keys','includeAll','model','fields','offset','index','VIRTUAL','options','status','nolimit','intersection','name','findOne','json','catch','limit','merge','api','describe','undefined','findAll','body','params','Content-Range'];(function(_0x21f3fc,_0x627b30){const _0x9326a2=function(_0x3bb486){while(--_0x3bb486){_0x21f3fc['push'](_0x21f3fc['shift']());}};_0x9326a2(++_0x627b30);}(a610_0x627b,0xa4));const a610_0x9326=function(_0x21f3fc,_0x627b30){_0x21f3fc=_0x21f3fc-0x0;let _0x9326a2=a610_0x627b[_0x21f3fc];return _0x9326a2;};const _0x3ac26c=a610_0x9326;'use strict';const _=require(_0x3ac26c('0x33')),qs=require(_0x3ac26c('0x9')),logger=require(_0x3ac26c('0x5'))(_0x3ac26c('0x25')),db=require('../../mysqldb')['db'],{Op}=require(_0x3ac26c('0xd'));function respondWithResult(_0x3bb486,_0x3affc6){return _0x3affc6=_0x3affc6||0xc8,function(_0x2d3966){const _0x5e7403=a610_0x9326;if(_0x2d3966)return _0x3bb486[_0x5e7403('0x1c')](_0x3affc6)[_0x5e7403('0x21')](_0x2d3966);};}function respondWithFilteredResult(_0x13719d,_0x4af47e){return function(_0x33a312){const _0x3de8ae=a610_0x9326;if(_0x33a312){const _0xe4fd0b=_0x33a312[_0x3de8ae('0x12')],_0x12621e=_0x4af47e[_0x3de8ae('0x18')];let _0x5ef44a=_0x4af47e['offset']+_0x4af47e['limit'],_0x215d18;return _0x5ef44a>=_0xe4fd0b?(_0x5ef44a=_0xe4fd0b,_0x215d18=0xc8):_0x215d18=0xce,_0x13719d[_0x3de8ae('0x1c')](_0x215d18),_0x13719d[_0x3de8ae('0x31')](_0x3de8ae('0x2b'),_0x12621e+'-'+_0x5ef44a+'/'+_0xe4fd0b)[_0x3de8ae('0x21')](_0x33a312);}return null;};}function saveUpdates(_0xd9149e){return function(_0x5f4ae3){const _0x580d25=a610_0x9326;if(_0x5f4ae3)return _0x5f4ae3['update'](_0xd9149e)[_0x580d25('0x3')](function(_0x469172){return _0x469172;});return null;};}function removeEntity(_0x595a22){return function(_0x4506e6){if(_0x4506e6)return _0x4506e6['destroy']()['then'](function(){const _0x51f640=a610_0x9326;_0x595a22[_0x51f640('0x1c')](0xcc)[_0x51f640('0x2d')]();});};}function handleEntityNotFound(_0x29f2c5){return function(_0x796146){const _0x232e82=a610_0x9326;return!_0x796146&&_0x29f2c5[_0x232e82('0x8')](0x194),_0x796146;};}function handleError(_0x5afec5,_0x1586f9){return _0x1586f9=_0x1586f9||0x1f4,function(_0x512211){const _0x28eec3=a610_0x9326;logger['error'](_0x512211[_0x28eec3('0xa')]),_0x512211['name']&&delete _0x512211[_0x28eec3('0x1f')],_0x5afec5[_0x28eec3('0x1c')](_0x1586f9)[_0x28eec3('0x13')](_0x512211);};}exports[_0x3ac26c('0x19')]=function(_0x646330,_0x3e9d06){const _0x175b59=_0x3ac26c;let _0x4d1359={};const _0x2512f6={},_0x451d44={'count':0x0,'rows':[]},_0x56893a=_['map'](db[_0x175b59('0x32')][_0x175b59('0x1')],function(_0x40d02c){const _0x4f0243=_0x175b59;return{'name':_0x40d02c[_0x4f0243('0xb')],'type':_0x40d02c[_0x4f0243('0x0')][_0x4f0243('0x2')]};});_0x2512f6[_0x175b59('0x16')]=_[_0x175b59('0x2e')](_0x56893a,_0x175b59('0x1f')),_0x2512f6[_0x175b59('0x4')]=_['keys'](_0x646330[_0x175b59('0x4')]),_0x2512f6[_0x175b59('0x30')]=_[_0x175b59('0x1e')](_0x2512f6[_0x175b59('0x16')],_0x2512f6[_0x175b59('0x4')]),_0x4d1359[_0x175b59('0xf')]=_[_0x175b59('0x1e')](_0x2512f6[_0x175b59('0x16')],qs[_0x175b59('0x17')](_0x646330[_0x175b59('0x4')][_0x175b59('0x17')])),_0x4d1359[_0x175b59('0xf')]=_0x4d1359[_0x175b59('0xf')][_0x175b59('0x11')]?_0x4d1359['attributes']:_0x2512f6[_0x175b59('0x16')];typeof _0x646330[_0x175b59('0x4')][_0x175b59('0x1d')]===_0x175b59('0x27')&&(_0x4d1359[_0x175b59('0x23')]=qs[_0x175b59('0x23')](_0x646330[_0x175b59('0x4')]['limit']),_0x4d1359[_0x175b59('0x18')]=qs['offset'](_0x646330[_0x175b59('0x4')][_0x175b59('0x18')]));_0x4d1359[_0x175b59('0xe')]=qs[_0x175b59('0x7')](_0x646330[_0x175b59('0x4')][_0x175b59('0x7')]),_0x4d1359[_0x175b59('0x2c')]=qs[_0x175b59('0x30')](_['pick'](_0x646330[_0x175b59('0x4')],_0x2512f6[_0x175b59('0x30')]),_0x56893a);_0x646330[_0x175b59('0x4')][_0x175b59('0x6')]&&(_0x4d1359['where']=_[_0x175b59('0x24')](_0x4d1359['where'],{[Op['or']]:_[_0x175b59('0x2e')](_0x56893a,function(_0x150cec){const _0x2abef8=_0x175b59;if(_0x150cec['type']!==_0x2abef8('0x1a')){const _0x1eadeb={};return _0x1eadeb[_0x150cec[_0x2abef8('0x1f')]]={[Op[_0x2abef8('0x10')]]:'%'+_0x646330[_0x2abef8('0x4')][_0x2abef8('0x6')]+'%'},_0x1eadeb;}})}));_0x4d1359=_['merge']({},_0x4d1359,_0x646330[_0x175b59('0x1b')]);const _0xdae078={'where':_0x4d1359['where']};return db['SquareReport'][_0x175b59('0x12')](_0xdae078)[_0x175b59('0x3')](function(_0x1d25d9){const _0x17c5e8=_0x175b59;return _0x451d44[_0x17c5e8('0x12')]=_0x1d25d9,_0x646330['query'][_0x17c5e8('0x15')]&&(_0x4d1359['include']=[{'all':!![]}]),db[_0x17c5e8('0x32')][_0x17c5e8('0x28')](_0x4d1359);})[_0x175b59('0x3')](function(_0x19d145){return _0x451d44['rows']=_0x19d145,_0x451d44;})['then'](respondWithFilteredResult(_0x3e9d06,_0x4d1359))[_0x175b59('0x22')](handleError(_0x3e9d06,null));},exports['show']=function(_0x1b3c88,_0x58a01f){const _0x75a224=_0x3ac26c;let _0x506186={'raw':!![],'where':{'id':_0x1b3c88[_0x75a224('0x2a')]['id']}};const _0x48351e={};return _0x48351e[_0x75a224('0x16')]=_[_0x75a224('0x14')](db[_0x75a224('0x32')]['rawAttributes']),_0x48351e['query']=_[_0x75a224('0x14')](_0x1b3c88['query']),_0x48351e[_0x75a224('0x30')]=_['intersection'](_0x48351e[_0x75a224('0x16')],_0x48351e[_0x75a224('0x4')]),_0x506186[_0x75a224('0xf')]=_[_0x75a224('0x1e')](_0x48351e[_0x75a224('0x16')],qs['fields'](_0x1b3c88[_0x75a224('0x4')][_0x75a224('0x17')])),_0x506186[_0x75a224('0xf')]=_0x506186[_0x75a224('0xf')][_0x75a224('0x11')]?_0x506186[_0x75a224('0xf')]:_0x48351e[_0x75a224('0x16')],_0x1b3c88['query'][_0x75a224('0x15')]&&(_0x506186['include']=[{'all':!![]}]),_0x506186=_[_0x75a224('0x24')]({},_0x506186,_0x1b3c88[_0x75a224('0x1b')]),db['SquareReport']['findOne'](_0x506186)[_0x75a224('0x3')](handleEntityNotFound(_0x58a01f,null))[_0x75a224('0x3')](respondWithResult(_0x58a01f,null))[_0x75a224('0x22')](handleError(_0x58a01f,null));},exports[_0x3ac26c('0x2f')]=function(_0x40ae92,_0x38f85b){const _0x291af8=_0x3ac26c;return db[_0x291af8('0x32')]['create'](_0x40ae92[_0x291af8('0x29')],{})['then'](respondWithResult(_0x38f85b,0xc9))['catch'](handleError(_0x38f85b,null));},exports['update']=function(_0x56d144,_0x4858b8){const _0x233c4d=_0x3ac26c;return _0x56d144[_0x233c4d('0x29')]['id']&&delete _0x56d144[_0x233c4d('0x29')]['id'],db[_0x233c4d('0x32')][_0x233c4d('0x20')]({'where':{'id':_0x56d144[_0x233c4d('0x2a')]['id']}})[_0x233c4d('0x3')](handleEntityNotFound(_0x4858b8,null))[_0x233c4d('0x3')](saveUpdates(_0x56d144['body'],null))[_0x233c4d('0x3')](respondWithResult(_0x4858b8,null))[_0x233c4d('0x22')](handleError(_0x4858b8,null));},exports[_0x3ac26c('0xc')]=function(_0x2d493b,_0x149c43){const _0x4dfaaf=_0x3ac26c;return db[_0x4dfaaf('0x32')][_0x4dfaaf('0x20')]({'where':{'id':_0x2d493b[_0x4dfaaf('0x2a')]['id']}})[_0x4dfaaf('0x3')](handleEntityNotFound(_0x149c43,null))[_0x4dfaaf('0x3')](removeEntity(_0x149c43,null))[_0x4dfaaf('0x22')](handleError(_0x149c43,null));},exports[_0x3ac26c('0x26')]=function(_0x3dad9d,_0x1dda0b){const _0x480977=_0x3ac26c;return db['SquareReport'][_0x480977('0x26')]()[_0x480977('0x3')](respondWithResult(_0x1dda0b,null))[_0x480977('0x22')](handleError(_0x1dda0b,null));}; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.model.js b/server/api/squareReport/squareReport.model.js index 93cc65d..fef60dc 100644 --- a/server/api/squareReport/squareReport.model.js +++ b/server/api/squareReport/squareReport.model.js @@ -1 +1 @@ -const a611_0x210c=['SquareReport','leaveAt','uniqueid','define','project_name','exports','report_square'];(function(_0x4d5207,_0x210c1e){const _0x579cc2=function(_0x4ffa33){while(--_0x4ffa33){_0x4d5207['push'](_0x4d5207['shift']());}};_0x579cc2(++_0x210c1e);}(a611_0x210c,0x1af));const a611_0x579c=function(_0x4d5207,_0x210c1e){_0x4d5207=_0x4d5207-0x0;let _0x579cc2=a611_0x210c[_0x4d5207];return _0x579cc2;};const _0x19464b=a611_0x579c;'use strict';const attributes=require('./squareReport.attributes');module[_0x19464b('0x1')]=function(_0x4ffa33){const _0x1ce69d=_0x19464b,_0x2fa0b2=_0x4ffa33[_0x1ce69d('0x6')](_0x1ce69d('0x3'),attributes,{'tableName':_0x1ce69d('0x2'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x1ce69d('0x5'),_0x1ce69d('0x0')]},{'name':_0x1ce69d('0x4'),'fields':['leaveAt']}],'timestamps':!![]});return _0x2fa0b2;}; \ No newline at end of file +const a611_0x28b4=['uid_pname','report_square','leaveAt','uniqueid','SquareReport'];(function(_0x4dcf70,_0x28b433){const _0x33763b=function(_0x528855){while(--_0x528855){_0x4dcf70['push'](_0x4dcf70['shift']());}};_0x33763b(++_0x28b433);}(a611_0x28b4,0x65));const a611_0x3376=function(_0x4dcf70,_0x28b433){_0x4dcf70=_0x4dcf70-0x0;let _0x33763b=a611_0x28b4[_0x4dcf70];return _0x33763b;};'use strict';const attributes=require('./squareReport.attributes');module['exports']=function(_0x528855){const _0x7cd585=a611_0x3376,_0x397b34=_0x528855['define'](_0x7cd585('0x3'),attributes,{'tableName':_0x7cd585('0x0'),'paranoid':![],'indexes':[{'name':_0x7cd585('0x4'),'fields':[_0x7cd585('0x2'),'project_name']},{'name':_0x7cd585('0x1'),'fields':['leaveAt']}],'timestamps':!![]});return _0x397b34;}; \ No newline at end of file diff --git a/server/api/squareReport/squareReport.rpc.js b/server/api/squareReport/squareReport.rpc.js index ddde87c..78ba596 100644 --- a/server/api/squareReport/squareReport.rpc.js +++ b/server/api/squareReport/squareReport.rpc.js @@ -1 +1 @@ -const a612_0x763e=['../../config/logger','body','then','CreateSquareReport','catch','../../mysqldb','info','options','attributes','debug','SquareReport','limit','error','stringify','UpdateSquareReport','raw','update','message'];(function(_0x51b623,_0x763e13){const _0x40fb55=function(_0x1bb0fd){while(--_0x1bb0fd){_0x51b623['push'](_0x51b623['shift']());}};_0x40fb55(++_0x763e13);}(a612_0x763e,0xdd));const a612_0x40fb=function(_0x51b623,_0x763e13){_0x51b623=_0x51b623-0x0;let _0x40fb55=a612_0x763e[_0x51b623];return _0x40fb55;};const _0xecc90a=a612_0x40fb;'use strict';const db=require(_0xecc90a('0x0'))['db'],logger=require(_0xecc90a('0xd'))('rpc');exports[_0xecc90a('0x10')]=function(_0x1bb0fd){const _0x45aa4d=this;return new Promise(function(_0x5beb90,_0x27b418){const _0x426546=a612_0x40fb;return db[_0x426546('0x5')]['create'](_0x1bb0fd[_0x426546('0xe')],{'raw':_0x1bb0fd[_0x426546('0x2')]?_0x1bb0fd['options'][_0x426546('0xa')]===undefined?!![]:![]:!![]})[_0x426546('0xf')](function(_0x2f8baa){const _0xa87ce2=_0x426546;logger['info'](_0xa87ce2('0x10'),_0x1bb0fd),logger[_0xa87ce2('0x4')](_0xa87ce2('0x10'),_0x1bb0fd,JSON['stringify'](_0x2f8baa)),_0x5beb90(_0x2f8baa);})['catch'](function(_0xc2fe59){const _0xe81bc1=_0x426546;logger[_0xe81bc1('0x7')](_0xe81bc1('0x10'),_0xc2fe59[_0xe81bc1('0xc')],_0x1bb0fd),_0x27b418(_0x45aa4d[_0xe81bc1('0x7')](0x1f4,_0xc2fe59[_0xe81bc1('0xc')]));});});},exports[_0xecc90a('0x9')]=function(_0x1f913d){const _0x56dfa8=this;return new Promise(function(_0x32345e,_0x37da4f){const _0x2524a7=a612_0x40fb;return db[_0x2524a7('0x5')][_0x2524a7('0xb')](_0x1f913d[_0x2524a7('0xe')],{'raw':_0x1f913d[_0x2524a7('0x2')]?_0x1f913d[_0x2524a7('0x2')][_0x2524a7('0xa')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1f913d[_0x2524a7('0x2')]?_0x1f913d[_0x2524a7('0x2')]['where']||null:null,'attributes':_0x1f913d[_0x2524a7('0x2')]?_0x1f913d[_0x2524a7('0x2')][_0x2524a7('0x3')]||null:null,'limit':_0x1f913d['options']?_0x1f913d[_0x2524a7('0x2')][_0x2524a7('0x6')]||null:null})[_0x2524a7('0xf')](function(_0x35027d){const _0x55e342=_0x2524a7;logger[_0x55e342('0x1')](_0x55e342('0x9'),_0x1f913d),logger[_0x55e342('0x4')](_0x55e342('0x9'),_0x1f913d,JSON[_0x55e342('0x8')](_0x35027d)),_0x32345e(_0x35027d);})[_0x2524a7('0x11')](function(_0x1c505b){const _0xac0682=_0x2524a7;logger['error']('UpdateSquareReport',_0x1c505b[_0xac0682('0xc')],_0x1f913d),_0x37da4f(_0x56dfa8[_0xac0682('0x7')](0x1f4,_0x1c505b['message']));});});}; \ No newline at end of file +const a612_0x44aa=['body','stringify','message','CreateSquareReport','debug','../../config/logger','update','UpdateSquareReport','create','error','limit','where','SquareReport','attributes','../../mysqldb','rpc','raw','info','options','then','catch'];(function(_0x257bf1,_0x44aa4e){const _0x80e1a0=function(_0x17ce1d){while(--_0x17ce1d){_0x257bf1['push'](_0x257bf1['shift']());}};_0x80e1a0(++_0x44aa4e);}(a612_0x44aa,0xf1));const a612_0x80e1=function(_0x257bf1,_0x44aa4e){_0x257bf1=_0x257bf1-0x0;let _0x80e1a0=a612_0x44aa[_0x257bf1];return _0x80e1a0;};const _0x4afde9=a612_0x80e1;'use strict';const db=require(_0x4afde9('0x4'))['db'],logger=require(_0x4afde9('0x10'))(_0x4afde9('0x5'));exports[_0x4afde9('0xe')]=function(_0x17ce1d){const _0x4e9796=this;return new Promise(function(_0x154784,_0x51c2b1){const _0x170d7b=a612_0x80e1;return db[_0x170d7b('0x2')][_0x170d7b('0x13')](_0x17ce1d[_0x170d7b('0xb')],{'raw':_0x17ce1d[_0x170d7b('0x8')]?_0x17ce1d[_0x170d7b('0x8')][_0x170d7b('0x6')]===undefined?!![]:![]:!![]})[_0x170d7b('0x9')](function(_0x36bb04){const _0x597a5e=_0x170d7b;logger['info']('CreateSquareReport',_0x17ce1d),logger[_0x597a5e('0xf')](_0x597a5e('0xe'),_0x17ce1d,JSON[_0x597a5e('0xc')](_0x36bb04)),_0x154784(_0x36bb04);})[_0x170d7b('0xa')](function(_0x53b374){const _0x24217a=_0x170d7b;logger[_0x24217a('0x14')]('CreateSquareReport',_0x53b374[_0x24217a('0xd')],_0x17ce1d),_0x51c2b1(_0x4e9796['error'](0x1f4,_0x53b374[_0x24217a('0xd')]));});});},exports['UpdateSquareReport']=function(_0x51a3e5){const _0x41c148=this;return new Promise(function(_0x440cfb,_0x384e69){const _0x4bf6ea=a612_0x80e1;return db[_0x4bf6ea('0x2')][_0x4bf6ea('0x11')](_0x51a3e5[_0x4bf6ea('0xb')],{'raw':_0x51a3e5[_0x4bf6ea('0x8')]?_0x51a3e5[_0x4bf6ea('0x8')][_0x4bf6ea('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x51a3e5[_0x4bf6ea('0x8')]?_0x51a3e5[_0x4bf6ea('0x8')][_0x4bf6ea('0x1')]||null:null,'attributes':_0x51a3e5[_0x4bf6ea('0x8')]?_0x51a3e5['options'][_0x4bf6ea('0x3')]||null:null,'limit':_0x51a3e5[_0x4bf6ea('0x8')]?_0x51a3e5[_0x4bf6ea('0x8')][_0x4bf6ea('0x0')]||null:null})[_0x4bf6ea('0x9')](function(_0x5e1eaa){const _0x5db4c9=_0x4bf6ea;logger[_0x5db4c9('0x7')](_0x5db4c9('0x12'),_0x51a3e5),logger[_0x5db4c9('0xf')]('UpdateSquareReport',_0x51a3e5,JSON[_0x5db4c9('0xc')](_0x5e1eaa)),_0x440cfb(_0x5e1eaa);})['catch'](function(_0x1cd9ad){const _0x4a8273=_0x4bf6ea;logger['error'](_0x4a8273('0x12'),_0x1cd9ad[_0x4a8273('0xd')],_0x51a3e5),_0x384e69(_0x41c148[_0x4a8273('0x14')](0x1f4,_0x1cd9ad[_0x4a8273('0xd')]));});});}; \ No newline at end of file diff --git a/server/api/squareReportDetail/index.js b/server/api/squareReportDetail/index.js index 96f4b4b..ab7bedb 100644 --- a/server/api/squareReportDetail/index.js +++ b/server/api/squareReportDetail/index.js @@ -1 +1 @@ -const a613_0x2949=['isAuthenticated','describe','update','destroy','get','express','put','/:id','/describe','post','create','../../components/auth/service','Router','./squareReportDetail.controller'];(function(_0x4b4842,_0x2949f3){const _0x14a030=function(_0x388d53){while(--_0x388d53){_0x4b4842['push'](_0x4b4842['shift']());}};_0x14a030(++_0x2949f3);}(a613_0x2949,0xc7));const a613_0x14a0=function(_0x4b4842,_0x2949f3){_0x4b4842=_0x4b4842-0x0;let _0x14a030=a613_0x2949[_0x4b4842];return _0x14a030;};const _0x100a6f=a613_0x14a0;'use strict';const express=require(_0x100a6f('0x2')),router=express[_0x100a6f('0x9')](),auth=require(_0x100a6f('0x8')),controller=require(_0x100a6f('0xa'));router[_0x100a6f('0x1')]('/',auth[_0x100a6f('0xb')](),controller['index']),router['get'](_0x100a6f('0x5'),auth[_0x100a6f('0xb')](),controller[_0x100a6f('0xc')]),router[_0x100a6f('0x1')](_0x100a6f('0x4'),auth[_0x100a6f('0xb')](),controller['show']),router[_0x100a6f('0x6')]('/',auth[_0x100a6f('0xb')](),controller[_0x100a6f('0x7')]),router[_0x100a6f('0x3')](_0x100a6f('0x4'),auth[_0x100a6f('0xb')](),controller[_0x100a6f('0xd')]),router['delete'](_0x100a6f('0x4'),auth[_0x100a6f('0xb')](),controller[_0x100a6f('0x0')]),module['exports']=router; \ No newline at end of file +const a613_0x5390=['express','create','/describe','get','put','exports','show','isAuthenticated','Router','update','describe','/:id','./squareReportDetail.controller','../../components/auth/service','destroy'];(function(_0x503db9,_0x539059){const _0x1cb688=function(_0x603f61){while(--_0x603f61){_0x503db9['push'](_0x503db9['shift']());}};_0x1cb688(++_0x539059);}(a613_0x5390,0xa4));const a613_0x1cb6=function(_0x503db9,_0x539059){_0x503db9=_0x503db9-0x0;let _0x1cb688=a613_0x5390[_0x503db9];return _0x1cb688;};const _0x49e345=a613_0x1cb6;'use strict';const express=require(_0x49e345('0x1')),router=express[_0x49e345('0x9')](),auth=require(_0x49e345('0xe')),controller=require(_0x49e345('0xd'));router[_0x49e345('0x4')]('/',auth['isAuthenticated'](),controller['index']),router[_0x49e345('0x4')](_0x49e345('0x3'),auth[_0x49e345('0x8')](),controller[_0x49e345('0xb')]),router['get'](_0x49e345('0xc'),auth[_0x49e345('0x8')](),controller[_0x49e345('0x7')]),router['post']('/',auth[_0x49e345('0x8')](),controller[_0x49e345('0x2')]),router[_0x49e345('0x5')](_0x49e345('0xc'),auth['isAuthenticated'](),controller[_0x49e345('0xa')]),router['delete'](_0x49e345('0xc'),auth[_0x49e345('0x8')](),controller[_0x49e345('0x0')]),module[_0x49e345('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 cedb9c3..c51809e 100644 --- a/server/api/squareReportDetail/squareReportDetail.attributes.js +++ b/server/api/squareReportDetail/squareReportDetail.attributes.js @@ -1 +1 @@ -const a614_0x214a=['exports','STRING','sequelize'];(function(_0x3db6d2,_0x214abd){const _0x11bc56=function(_0xc645d4){while(--_0xc645d4){_0x3db6d2['push'](_0x3db6d2['shift']());}};_0x11bc56(++_0x214abd);}(a614_0x214a,0xe8));const a614_0x11bc=function(_0x3db6d2,_0x214abd){_0x3db6d2=_0x3db6d2-0x0;let _0x11bc56=a614_0x214a[_0x3db6d2];return _0x11bc56;};const _0x4a1e9a=a614_0x11bc;'use strict';const Sequelize=require(_0x4a1e9a('0x1'));module[_0x4a1e9a('0x2')]={'uniqueid':{'type':Sequelize[_0x4a1e9a('0x0')]},'node':{'type':Sequelize[_0x4a1e9a('0x0')]},'application':{'type':Sequelize[_0x4a1e9a('0x0')]},'data':{'type':Sequelize['TEXT']},'project_name':{'type':Sequelize[_0x4a1e9a('0x0')]},'callerid':{'type':Sequelize[_0x4a1e9a('0x0')]}}; \ No newline at end of file +const a614_0x49cb=['sequelize','TEXT','STRING'];(function(_0x1aaf56,_0x49cb8b){const _0x339309=function(_0x31a125){while(--_0x31a125){_0x1aaf56['push'](_0x1aaf56['shift']());}};_0x339309(++_0x49cb8b);}(a614_0x49cb,0x1a4));const a614_0x3393=function(_0x1aaf56,_0x49cb8b){_0x1aaf56=_0x1aaf56-0x0;let _0x339309=a614_0x49cb[_0x1aaf56];return _0x339309;};const _0x36caaf=a614_0x3393;'use strict';const Sequelize=require(_0x36caaf('0x0'));module['exports']={'uniqueid':{'type':Sequelize['STRING']},'node':{'type':Sequelize[_0x36caaf('0x2')]},'application':{'type':Sequelize[_0x36caaf('0x2')]},'data':{'type':Sequelize[_0x36caaf('0x1')]},'project_name':{'type':Sequelize[_0x36caaf('0x2')]},'callerid':{'type':Sequelize[_0x36caaf('0x2')]}}; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.controller.js b/server/api/squareReportDetail/squareReportDetail.controller.js index 605368f..b55260a 100644 --- a/server/api/squareReportDetail/squareReportDetail.controller.js +++ b/server/api/squareReportDetail/squareReportDetail.controller.js @@ -1 +1 @@ -const a615_0x3d8b=['where','limit','destroy','undefined','then','create','query','name','count','nolimit','fields','includeAll','catch','sequelize','body','../../mysqldb','findOne','filter','model','lodash','index','attributes','map','describe','length','../../config/logger','rows','rawAttributes','params','findAll','type','update','status','VIRTUAL','options','fieldName','merge','include','intersection','SquareDetailsReport','key','error','sendStatus','end','../../components/parsers/qs','sort','filters','show','keys','json','offset'];(function(_0x3d6d8b,_0x3d8bc4){const _0x671c4f=function(_0x13b2cc){while(--_0x13b2cc){_0x3d6d8b['push'](_0x3d6d8b['shift']());}};_0x671c4f(++_0x3d8bc4);}(a615_0x3d8b,0x1a7));const a615_0x671c=function(_0x3d6d8b,_0x3d8bc4){_0x3d6d8b=_0x3d6d8b-0x0;let _0x671c4f=a615_0x3d8b[_0x3d6d8b];return _0x671c4f;};const _0x1d4edd=a615_0x671c;'use strict';const _=require(_0x1d4edd('0x4')),qs=require(_0x1d4edd('0x1d')),logger=require(_0x1d4edd('0xa'))('api'),db=require(_0x1d4edd('0x0'))['db'],{Op}=require(_0x1d4edd('0x31'));function respondWithResult(_0x13b2cc,_0x1fbd86){return _0x1fbd86=_0x1fbd86||0xc8,function(_0xbfdf08){const _0x54c2e4=a615_0x671c;if(_0xbfdf08)return _0x13b2cc[_0x54c2e4('0x11')](_0x1fbd86)[_0x54c2e4('0x22')](_0xbfdf08);};}function respondWithFilteredResult(_0x488921,_0x134c34){return function(_0x4c4612){const _0x587359=a615_0x671c;if(_0x4c4612){const _0xfdbb28=_0x4c4612['count'],_0x5ac119=_0x134c34['offset'];let _0xf8f375=_0x134c34['offset']+_0x134c34[_0x587359('0x25')],_0x38df31;return _0xf8f375>=_0xfdbb28?(_0xf8f375=_0xfdbb28,_0x38df31=0xc8):_0x38df31=0xce,_0x488921[_0x587359('0x11')](_0x38df31),_0x488921['set']('Content-Range',_0x5ac119+'-'+_0xf8f375+'/'+_0xfdbb28)[_0x587359('0x22')](_0x4c4612);}return null;};}function saveUpdates(_0x499bc9){return function(_0x18ee74){const _0x45b728=a615_0x671c;if(_0x18ee74)return _0x18ee74[_0x45b728('0x10')](_0x499bc9)['then'](function(_0x124ee8){return _0x124ee8;});return null;};}function removeEntity(_0x154aac){return function(_0x4811a5){const _0x4595cb=a615_0x671c;if(_0x4811a5)return _0x4811a5['destroy']()[_0x4595cb('0x28')](function(){const _0x5dd722=_0x4595cb;_0x154aac['status'](0xcc)[_0x5dd722('0x1c')]();});};}function handleEntityNotFound(_0xcb74f3){return function(_0x3fe0cb){const _0x40e55f=a615_0x671c;return!_0x3fe0cb&&_0xcb74f3[_0x40e55f('0x1b')](0x194),_0x3fe0cb;};}function handleError(_0x29d1e4,_0x3088e4){return _0x3088e4=_0x3088e4||0x1f4,function(_0x366256){const _0x50dfc9=a615_0x671c;logger[_0x50dfc9('0x1a')](_0x366256['stack']),_0x366256[_0x50dfc9('0x2b')]&&delete _0x366256[_0x50dfc9('0x2b')],_0x29d1e4['status'](_0x3088e4)['send'](_0x366256);};}exports[_0x1d4edd('0x5')]=function(_0x2b947a,_0x4ad6af){const _0x25bcd2=_0x1d4edd;let _0xee6b34={};const _0x5d4cb8={},_0x4eec54={'count':0x0,'rows':[]},_0x39b2d3=_[_0x25bcd2('0x7')](db[_0x25bcd2('0x18')][_0x25bcd2('0xc')],function(_0xa22bb){const _0x3e6898=_0x25bcd2;return{'name':_0xa22bb[_0x3e6898('0x14')],'type':_0xa22bb[_0x3e6898('0xf')][_0x3e6898('0x19')]};});_0x5d4cb8[_0x25bcd2('0x3')]=_[_0x25bcd2('0x7')](_0x39b2d3,_0x25bcd2('0x2b')),_0x5d4cb8[_0x25bcd2('0x2a')]=_[_0x25bcd2('0x21')](_0x2b947a[_0x25bcd2('0x2a')]),_0x5d4cb8[_0x25bcd2('0x1f')]=_[_0x25bcd2('0x17')](_0x5d4cb8[_0x25bcd2('0x3')],_0x5d4cb8[_0x25bcd2('0x2a')]),_0xee6b34['attributes']=_[_0x25bcd2('0x17')](_0x5d4cb8[_0x25bcd2('0x3')],qs[_0x25bcd2('0x2e')](_0x2b947a['query'][_0x25bcd2('0x2e')])),_0xee6b34['attributes']=_0xee6b34[_0x25bcd2('0x6')][_0x25bcd2('0x9')]?_0xee6b34[_0x25bcd2('0x6')]:_0x5d4cb8[_0x25bcd2('0x3')];typeof _0x2b947a['query'][_0x25bcd2('0x2d')]===_0x25bcd2('0x27')&&(_0xee6b34[_0x25bcd2('0x25')]=qs[_0x25bcd2('0x25')](_0x2b947a['query'][_0x25bcd2('0x25')]),_0xee6b34[_0x25bcd2('0x23')]=qs[_0x25bcd2('0x23')](_0x2b947a[_0x25bcd2('0x2a')][_0x25bcd2('0x23')]));_0xee6b34['order']=qs['sort'](_0x2b947a['query'][_0x25bcd2('0x1e')]),_0xee6b34[_0x25bcd2('0x24')]=qs[_0x25bcd2('0x1f')](_['pick'](_0x2b947a[_0x25bcd2('0x2a')],_0x5d4cb8[_0x25bcd2('0x1f')]),_0x39b2d3);_0x2b947a['query'][_0x25bcd2('0x2')]&&(_0xee6b34[_0x25bcd2('0x24')]=_[_0x25bcd2('0x15')](_0xee6b34[_0x25bcd2('0x24')],{[Op['or']]:_['map'](_0x39b2d3,function(_0x6c90f8){const _0x3df0b7=_0x25bcd2;if(_0x6c90f8[_0x3df0b7('0xf')]!==_0x3df0b7('0x12')){const _0xa38acf={};return _0xa38acf[_0x6c90f8['name']]={[Op['like']]:'%'+_0x2b947a['query'][_0x3df0b7('0x2')]+'%'},_0xa38acf;}})}));_0xee6b34=_[_0x25bcd2('0x15')]({},_0xee6b34,_0x2b947a[_0x25bcd2('0x13')]);const _0x1f1624={'where':_0xee6b34[_0x25bcd2('0x24')]};return db[_0x25bcd2('0x18')][_0x25bcd2('0x2c')](_0x1f1624)[_0x25bcd2('0x28')](function(_0x311f17){const _0x2cbeaa=_0x25bcd2;return _0x4eec54[_0x2cbeaa('0x2c')]=_0x311f17,_0x2b947a[_0x2cbeaa('0x2a')][_0x2cbeaa('0x2f')]&&(_0xee6b34[_0x2cbeaa('0x16')]=[{'all':!![]}]),db[_0x2cbeaa('0x18')][_0x2cbeaa('0xe')](_0xee6b34);})[_0x25bcd2('0x28')](function(_0x5eac5c){const _0x3958cf=_0x25bcd2;return _0x4eec54[_0x3958cf('0xb')]=_0x5eac5c,_0x4eec54;})[_0x25bcd2('0x28')](respondWithFilteredResult(_0x4ad6af,_0xee6b34))[_0x25bcd2('0x30')](handleError(_0x4ad6af,null));},exports[_0x1d4edd('0x20')]=function(_0x380d40,_0x5efac0){const _0x567d43=_0x1d4edd;let _0x91b13f={'raw':!![],'where':{'id':_0x380d40[_0x567d43('0xd')]['id']}};const _0x2bb392={};return _0x2bb392[_0x567d43('0x3')]=_[_0x567d43('0x21')](db[_0x567d43('0x18')][_0x567d43('0xc')]),_0x2bb392[_0x567d43('0x2a')]=_['keys'](_0x380d40['query']),_0x2bb392[_0x567d43('0x1f')]=_['intersection'](_0x2bb392[_0x567d43('0x3')],_0x2bb392[_0x567d43('0x2a')]),_0x91b13f[_0x567d43('0x6')]=_['intersection'](_0x2bb392[_0x567d43('0x3')],qs[_0x567d43('0x2e')](_0x380d40['query']['fields'])),_0x91b13f[_0x567d43('0x6')]=_0x91b13f[_0x567d43('0x6')]['length']?_0x91b13f['attributes']:_0x2bb392[_0x567d43('0x3')],_0x380d40[_0x567d43('0x2a')][_0x567d43('0x2f')]&&(_0x91b13f['include']=[{'all':!![]}]),_0x91b13f=_[_0x567d43('0x15')]({},_0x91b13f,_0x380d40[_0x567d43('0x13')]),db[_0x567d43('0x18')][_0x567d43('0x1')](_0x91b13f)['then'](handleEntityNotFound(_0x5efac0,null))[_0x567d43('0x28')](respondWithResult(_0x5efac0,null))[_0x567d43('0x30')](handleError(_0x5efac0,null));},exports[_0x1d4edd('0x29')]=function(_0x56608c,_0x37368f){const _0x5de360=_0x1d4edd;return db[_0x5de360('0x18')][_0x5de360('0x29')](_0x56608c[_0x5de360('0x32')],{})[_0x5de360('0x28')](respondWithResult(_0x37368f,0xc9))['catch'](handleError(_0x37368f,null));},exports[_0x1d4edd('0x10')]=function(_0x34c420,_0x374f6f){const _0x5dacaa=_0x1d4edd;return _0x34c420[_0x5dacaa('0x32')]['id']&&delete _0x34c420[_0x5dacaa('0x32')]['id'],db['SquareDetailsReport'][_0x5dacaa('0x1')]({'where':{'id':_0x34c420[_0x5dacaa('0xd')]['id']}})['then'](handleEntityNotFound(_0x374f6f,null))[_0x5dacaa('0x28')](saveUpdates(_0x34c420[_0x5dacaa('0x32')],null))[_0x5dacaa('0x28')](respondWithResult(_0x374f6f,null))[_0x5dacaa('0x30')](handleError(_0x374f6f,null));},exports[_0x1d4edd('0x26')]=function(_0xe18f12,_0x5eb64e){const _0x5c18f9=_0x1d4edd;return db[_0x5c18f9('0x18')][_0x5c18f9('0x1')]({'where':{'id':_0xe18f12[_0x5c18f9('0xd')]['id']}})['then'](handleEntityNotFound(_0x5eb64e,null))[_0x5c18f9('0x28')](removeEntity(_0x5eb64e,null))[_0x5c18f9('0x30')](handleError(_0x5eb64e,null));},exports[_0x1d4edd('0x8')]=function(_0x7aac47,_0x1d5d98){const _0x2ea4e2=_0x1d4edd;return db[_0x2ea4e2('0x18')][_0x2ea4e2('0x8')]()[_0x2ea4e2('0x28')](respondWithResult(_0x1d5d98,null))['catch'](handleError(_0x1d5d98,null));}; \ No newline at end of file +const a615_0x3f6d=['offset','../../mysqldb','name','keys','filter','count','../../components/parsers/qs','attributes','undefined','stack','show','update','api','body','order','limit','../../config/logger','SquareDetailsReport','merge','lodash','error','like','describe','rows','json','Content-Range','fields','rawAttributes','query','catch','index','include','intersection','status','filters','create','nolimit','pick','then','where','includeAll','sort','length','type','send','params','findOne','destroy','map','model'];(function(_0x34aeee,_0x3f6d80){const _0xfd3141=function(_0x32136f){while(--_0x32136f){_0x34aeee['push'](_0x34aeee['shift']());}};_0xfd3141(++_0x3f6d80);}(a615_0x3f6d,0xa7));const a615_0xfd31=function(_0x34aeee,_0x3f6d80){_0x34aeee=_0x34aeee-0x0;let _0xfd3141=a615_0x3f6d[_0x34aeee];return _0xfd3141;};const _0x4c5392=a615_0xfd31;'use strict';const _=require(_0x4c5392('0x2')),qs=require(_0x4c5392('0x27')),logger=require(_0x4c5392('0x31'))(_0x4c5392('0x2d')),db=require(_0x4c5392('0x22'))['db'],{Op}=require('sequelize');function respondWithResult(_0x32136f,_0x49e634){return _0x49e634=_0x49e634||0xc8,function(_0x3e2731){const _0x573a3e=a615_0xfd31;if(_0x3e2731)return _0x32136f[_0x573a3e('0x10')](_0x49e634)[_0x573a3e('0x7')](_0x3e2731);};}function respondWithFilteredResult(_0x1f80c7,_0x1f619e){return function(_0x2a12ab){const _0xefcdca=a615_0xfd31;if(_0x2a12ab){const _0x1b200a=_0x2a12ab['count'],_0x5eb4e3=_0x1f619e['offset'];let _0x56fb5e=_0x1f619e[_0xefcdca('0x21')]+_0x1f619e[_0xefcdca('0x30')],_0x3d2561;return _0x56fb5e>=_0x1b200a?(_0x56fb5e=_0x1b200a,_0x3d2561=0xc8):_0x3d2561=0xce,_0x1f80c7[_0xefcdca('0x10')](_0x3d2561),_0x1f80c7['set'](_0xefcdca('0x8'),_0x5eb4e3+'-'+_0x56fb5e+'/'+_0x1b200a)['json'](_0x2a12ab);}return null;};}function saveUpdates(_0x551bcc){return function(_0x57ed68){const _0x22d3e5=a615_0xfd31;if(_0x57ed68)return _0x57ed68[_0x22d3e5('0x2c')](_0x551bcc)[_0x22d3e5('0x15')](function(_0x5c1714){return _0x5c1714;});return null;};}function removeEntity(_0x4d7bc5){return function(_0x2937e7){const _0x335002=a615_0xfd31;if(_0x2937e7)return _0x2937e7[_0x335002('0x1e')]()['then'](function(){const _0x2150ca=_0x335002;_0x4d7bc5[_0x2150ca('0x10')](0xcc)['end']();});};}function handleEntityNotFound(_0x72a246){return function(_0x2c56f3){return!_0x2c56f3&&_0x72a246['sendStatus'](0x194),_0x2c56f3;};}function handleError(_0xe8bda6,_0x1fd333){return _0x1fd333=_0x1fd333||0x1f4,function(_0x16ae78){const _0x491ec2=a615_0xfd31;logger[_0x491ec2('0x3')](_0x16ae78[_0x491ec2('0x2a')]),_0x16ae78[_0x491ec2('0x23')]&&delete _0x16ae78[_0x491ec2('0x23')],_0xe8bda6['status'](_0x1fd333)[_0x491ec2('0x1b')](_0x16ae78);};}exports[_0x4c5392('0xd')]=function(_0x40a993,_0x2dd476){const _0x1b8ed7=_0x4c5392;let _0x4cbcb1={};const _0x49906f={},_0x4efab5={'count':0x0,'rows':[]},_0x5b9eef=_[_0x1b8ed7('0x1f')](db[_0x1b8ed7('0x0')][_0x1b8ed7('0xa')],function(_0x5dfd04){const _0x57bc73=_0x1b8ed7;return{'name':_0x5dfd04['fieldName'],'type':_0x5dfd04[_0x57bc73('0x1a')]['key']};});_0x49906f['model']=_[_0x1b8ed7('0x1f')](_0x5b9eef,'name'),_0x49906f[_0x1b8ed7('0xb')]=_[_0x1b8ed7('0x24')](_0x40a993[_0x1b8ed7('0xb')]),_0x49906f[_0x1b8ed7('0x11')]=_[_0x1b8ed7('0xf')](_0x49906f[_0x1b8ed7('0x20')],_0x49906f[_0x1b8ed7('0xb')]),_0x4cbcb1[_0x1b8ed7('0x28')]=_[_0x1b8ed7('0xf')](_0x49906f[_0x1b8ed7('0x20')],qs[_0x1b8ed7('0x9')](_0x40a993[_0x1b8ed7('0xb')][_0x1b8ed7('0x9')])),_0x4cbcb1[_0x1b8ed7('0x28')]=_0x4cbcb1[_0x1b8ed7('0x28')][_0x1b8ed7('0x19')]?_0x4cbcb1['attributes']:_0x49906f[_0x1b8ed7('0x20')];typeof _0x40a993[_0x1b8ed7('0xb')][_0x1b8ed7('0x13')]===_0x1b8ed7('0x29')&&(_0x4cbcb1['limit']=qs[_0x1b8ed7('0x30')](_0x40a993[_0x1b8ed7('0xb')][_0x1b8ed7('0x30')]),_0x4cbcb1[_0x1b8ed7('0x21')]=qs[_0x1b8ed7('0x21')](_0x40a993[_0x1b8ed7('0xb')][_0x1b8ed7('0x21')]));_0x4cbcb1[_0x1b8ed7('0x2f')]=qs[_0x1b8ed7('0x18')](_0x40a993[_0x1b8ed7('0xb')][_0x1b8ed7('0x18')]),_0x4cbcb1['where']=qs[_0x1b8ed7('0x11')](_[_0x1b8ed7('0x14')](_0x40a993['query'],_0x49906f[_0x1b8ed7('0x11')]),_0x5b9eef);_0x40a993[_0x1b8ed7('0xb')][_0x1b8ed7('0x25')]&&(_0x4cbcb1['where']=_[_0x1b8ed7('0x1')](_0x4cbcb1['where'],{[Op['or']]:_[_0x1b8ed7('0x1f')](_0x5b9eef,function(_0x1f1f26){const _0x28f667=_0x1b8ed7;if(_0x1f1f26[_0x28f667('0x1a')]!=='VIRTUAL'){const _0x4b73f8={};return _0x4b73f8[_0x1f1f26[_0x28f667('0x23')]]={[Op[_0x28f667('0x4')]]:'%'+_0x40a993['query'][_0x28f667('0x25')]+'%'},_0x4b73f8;}})}));_0x4cbcb1=_['merge']({},_0x4cbcb1,_0x40a993['options']);const _0x467cf7={'where':_0x4cbcb1[_0x1b8ed7('0x16')]};return db[_0x1b8ed7('0x0')][_0x1b8ed7('0x26')](_0x467cf7)['then'](function(_0x2b553c){const _0x481617=_0x1b8ed7;return _0x4efab5[_0x481617('0x26')]=_0x2b553c,_0x40a993[_0x481617('0xb')][_0x481617('0x17')]&&(_0x4cbcb1[_0x481617('0xe')]=[{'all':!![]}]),db[_0x481617('0x0')]['findAll'](_0x4cbcb1);})[_0x1b8ed7('0x15')](function(_0xe9a4c9){const _0x1c63e2=_0x1b8ed7;return _0x4efab5[_0x1c63e2('0x6')]=_0xe9a4c9,_0x4efab5;})[_0x1b8ed7('0x15')](respondWithFilteredResult(_0x2dd476,_0x4cbcb1))[_0x1b8ed7('0xc')](handleError(_0x2dd476,null));},exports[_0x4c5392('0x2b')]=function(_0x15ebe0,_0x421a6a){const _0x9b4ef5=_0x4c5392;let _0x6f3087={'raw':!![],'where':{'id':_0x15ebe0[_0x9b4ef5('0x1c')]['id']}};const _0x2933a3={};return _0x2933a3[_0x9b4ef5('0x20')]=_[_0x9b4ef5('0x24')](db['SquareDetailsReport'][_0x9b4ef5('0xa')]),_0x2933a3[_0x9b4ef5('0xb')]=_[_0x9b4ef5('0x24')](_0x15ebe0[_0x9b4ef5('0xb')]),_0x2933a3[_0x9b4ef5('0x11')]=_[_0x9b4ef5('0xf')](_0x2933a3['model'],_0x2933a3[_0x9b4ef5('0xb')]),_0x6f3087['attributes']=_[_0x9b4ef5('0xf')](_0x2933a3[_0x9b4ef5('0x20')],qs['fields'](_0x15ebe0['query'][_0x9b4ef5('0x9')])),_0x6f3087[_0x9b4ef5('0x28')]=_0x6f3087[_0x9b4ef5('0x28')][_0x9b4ef5('0x19')]?_0x6f3087[_0x9b4ef5('0x28')]:_0x2933a3['model'],_0x15ebe0[_0x9b4ef5('0xb')][_0x9b4ef5('0x17')]&&(_0x6f3087[_0x9b4ef5('0xe')]=[{'all':!![]}]),_0x6f3087=_[_0x9b4ef5('0x1')]({},_0x6f3087,_0x15ebe0['options']),db[_0x9b4ef5('0x0')][_0x9b4ef5('0x1d')](_0x6f3087)[_0x9b4ef5('0x15')](handleEntityNotFound(_0x421a6a,null))['then'](respondWithResult(_0x421a6a,null))[_0x9b4ef5('0xc')](handleError(_0x421a6a,null));},exports[_0x4c5392('0x12')]=function(_0x4fc491,_0x1db240){const _0x1f7761=_0x4c5392;return db[_0x1f7761('0x0')]['create'](_0x4fc491[_0x1f7761('0x2e')],{})[_0x1f7761('0x15')](respondWithResult(_0x1db240,0xc9))[_0x1f7761('0xc')](handleError(_0x1db240,null));},exports[_0x4c5392('0x2c')]=function(_0x1a1acc,_0x386538){const _0x542ffd=_0x4c5392;return _0x1a1acc[_0x542ffd('0x2e')]['id']&&delete _0x1a1acc[_0x542ffd('0x2e')]['id'],db[_0x542ffd('0x0')][_0x542ffd('0x1d')]({'where':{'id':_0x1a1acc['params']['id']}})['then'](handleEntityNotFound(_0x386538,null))[_0x542ffd('0x15')](saveUpdates(_0x1a1acc['body'],null))[_0x542ffd('0x15')](respondWithResult(_0x386538,null))[_0x542ffd('0xc')](handleError(_0x386538,null));},exports[_0x4c5392('0x1e')]=function(_0x18846e,_0x568363){const _0x49a563=_0x4c5392;return db[_0x49a563('0x0')][_0x49a563('0x1d')]({'where':{'id':_0x18846e['params']['id']}})[_0x49a563('0x15')](handleEntityNotFound(_0x568363,null))[_0x49a563('0x15')](removeEntity(_0x568363,null))['catch'](handleError(_0x568363,null));},exports[_0x4c5392('0x5')]=function(_0x25b9b6,_0x2330ad){const _0x3c29d9=_0x4c5392;return db['SquareDetailsReport'][_0x3c29d9('0x5')]()[_0x3c29d9('0x15')](respondWithResult(_0x2330ad,null))[_0x3c29d9('0xc')](handleError(_0x2330ad,null));}; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.model.js b/server/api/squareReportDetail/squareReportDetail.model.js index d25bfb8..d5ed939 100644 --- a/server/api/squareReportDetail/squareReportDetail.model.js +++ b/server/api/squareReportDetail/squareReportDetail.model.js @@ -1 +1 @@ -const a616_0x567e=['exports','report_square_details','SquareDetailsReport'];(function(_0xc9a914,_0x567ec5){const _0x182794=function(_0x191b5b){while(--_0x191b5b){_0xc9a914['push'](_0xc9a914['shift']());}};_0x182794(++_0x567ec5);}(a616_0x567e,0x124));const a616_0x1827=function(_0xc9a914,_0x567ec5){_0xc9a914=_0xc9a914-0x0;let _0x182794=a616_0x567e[_0xc9a914];return _0x182794;};const _0x2f0acd=a616_0x1827;'use strict';const attributes=require('./squareReportDetail.attributes');module[_0x2f0acd('0x2')]=function(_0x191b5b){const _0x18eae6=_0x2f0acd,_0x129675=_0x191b5b['define'](_0x18eae6('0x1'),attributes,{'tableName':_0x18eae6('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x129675;}; \ No newline at end of file +const a616_0x527b=['report_square_details','exports','define','SquareDetailsReport'];(function(_0x16b32c,_0x527b8e){const _0x1c23f2=function(_0x13f564){while(--_0x13f564){_0x16b32c['push'](_0x16b32c['shift']());}};_0x1c23f2(++_0x527b8e);}(a616_0x527b,0xd0));const a616_0x1c23=function(_0x16b32c,_0x527b8e){_0x16b32c=_0x16b32c-0x0;let _0x1c23f2=a616_0x527b[_0x16b32c];return _0x1c23f2;};const _0x26d56=a616_0x1c23;'use strict';const attributes=require('./squareReportDetail.attributes');module[_0x26d56('0x1')]=function(_0x13f564){const _0x2e94a2=_0x26d56,_0x308370=_0x13f564[_0x2e94a2('0x2')](_0x2e94a2('0x3'),attributes,{'tableName':_0x2e94a2('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x308370;}; \ No newline at end of file diff --git a/server/api/squareReportDetail/squareReportDetail.rpc.js b/server/api/squareReportDetail/squareReportDetail.rpc.js index 132bf49..008c552 100644 --- a/server/api/squareReportDetail/squareReportDetail.rpc.js +++ b/server/api/squareReportDetail/squareReportDetail.rpc.js @@ -1 +1 @@ -const a617_0x2acb=['create','body','error','then','options','message','catch','debug','../../mysqldb','raw','SquareDetailsReport','CreateSquareDetailsReport'];(function(_0x3a7102,_0x2acb5d){const _0x3ef8eb=function(_0x3fa258){while(--_0x3fa258){_0x3a7102['push'](_0x3a7102['shift']());}};_0x3ef8eb(++_0x2acb5d);}(a617_0x2acb,0x14d));const a617_0x3ef8=function(_0x3a7102,_0x2acb5d){_0x3a7102=_0x3a7102-0x0;let _0x3ef8eb=a617_0x2acb[_0x3a7102];return _0x3ef8eb;};const _0x138056=a617_0x3ef8;'use strict';const db=require(_0x138056('0xb'))['db'],logger=require('../../config/logger')('rpc');exports[_0x138056('0x2')]=function(_0x3fa258){const _0x4d6d52=this;return new Promise(function(_0x4b9ef4,_0xd04ceb){const _0xd0483b=a617_0x3ef8;return db[_0xd0483b('0x1')][_0xd0483b('0x3')](_0x3fa258[_0xd0483b('0x4')],{'raw':_0x3fa258[_0xd0483b('0x7')]?_0x3fa258[_0xd0483b('0x7')][_0xd0483b('0x0')]===undefined?!![]:![]:!![]})[_0xd0483b('0x6')](function(_0x1464ad){const _0x423eab=_0xd0483b;logger['info']('CreateSquareDetailsReport',_0x3fa258),logger[_0x423eab('0xa')](_0x423eab('0x2'),_0x3fa258,JSON['stringify'](_0x1464ad)),_0x4b9ef4(_0x1464ad);})[_0xd0483b('0x9')](function(_0x55d048){const _0x41a6b4=_0xd0483b;logger['error'](_0x41a6b4('0x2'),_0x55d048[_0x41a6b4('0x8')],_0x3fa258),_0xd04ceb(_0x4d6d52[_0x41a6b4('0x5')](0x1f4,_0x55d048[_0x41a6b4('0x8')]));});});}; \ No newline at end of file +const a617_0x5ec4=['catch','stringify','CreateSquareDetailsReport','../../mysqldb','rpc','message','raw','../../config/logger','error','create','body','info','options','debug'];(function(_0x4a7a54,_0x5ec474){const _0xcf1de1=function(_0x133387){while(--_0x133387){_0x4a7a54['push'](_0x4a7a54['shift']());}};_0xcf1de1(++_0x5ec474);}(a617_0x5ec4,0x101));const a617_0xcf1d=function(_0x4a7a54,_0x5ec474){_0x4a7a54=_0x4a7a54-0x0;let _0xcf1de1=a617_0x5ec4[_0x4a7a54];return _0xcf1de1;};const _0x27d66a=a617_0xcf1d;'use strict';const db=require(_0x27d66a('0xc'))['db'],logger=require(_0x27d66a('0x2'))(_0x27d66a('0xd'));exports['CreateSquareDetailsReport']=function(_0x133387){const _0x1559fc=this;return new Promise(function(_0x5b5e5c,_0x8c465e){const _0x1890ac=a617_0xcf1d;return db['SquareDetailsReport'][_0x1890ac('0x4')](_0x133387[_0x1890ac('0x5')],{'raw':_0x133387[_0x1890ac('0x7')]?_0x133387[_0x1890ac('0x7')][_0x1890ac('0x1')]===undefined?!![]:![]:!![]})['then'](function(_0x18485f){const _0x59445d=_0x1890ac;logger[_0x59445d('0x6')](_0x59445d('0xb'),_0x133387),logger[_0x59445d('0x8')](_0x59445d('0xb'),_0x133387,JSON[_0x59445d('0xa')](_0x18485f)),_0x5b5e5c(_0x18485f);})[_0x1890ac('0x9')](function(_0xc105bb){const _0x2c9b0f=_0x1890ac;logger[_0x2c9b0f('0x3')](_0x2c9b0f('0xb'),_0xc105bb[_0x2c9b0f('0x0')],_0x133387),_0x8c465e(_0x1559fc['error'](0x1f4,_0xc105bb[_0x2c9b0f('0x0')]));});});}; \ No newline at end of file diff --git a/server/api/system/index.js b/server/api/system/index.js index 99015ca..bf9d071 100644 --- a/server/api/system/index.js +++ b/server/api/system/index.js @@ -1 +1 @@ -const a618_0x3947=['isAuthenticated','exports','killProcess','get','express','./system.controller','/process/:pid/kill','Router'];(function(_0x21cdb8,_0x394755){const _0x27d31e=function(_0x1e6118){while(--_0x1e6118){_0x21cdb8['push'](_0x21cdb8['shift']());}};_0x27d31e(++_0x394755);}(a618_0x3947,0xc6));const a618_0x27d3=function(_0x21cdb8,_0x394755){_0x21cdb8=_0x21cdb8-0x0;let _0x27d31e=a618_0x3947[_0x21cdb8];return _0x27d31e;};const _0x234ecb=a618_0x27d3;'use strict';const express=require(_0x234ecb('0x6')),router=express[_0x234ecb('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x234ecb('0x7'));router['get']('/',auth[_0x234ecb('0x2')](),controller['index']),router[_0x234ecb('0x5')](_0x234ecb('0x0'),auth['isAuthenticated'](),controller[_0x234ecb('0x4')]),module[_0x234ecb('0x3')]=router; \ No newline at end of file +const a618_0x1996=['Router','killProcess','./system.controller','isAuthenticated','/process/:pid/kill','../../components/auth/service','get','index'];(function(_0x506027,_0x1996f2){const _0x1c8970=function(_0x48ec7f){while(--_0x48ec7f){_0x506027['push'](_0x506027['shift']());}};_0x1c8970(++_0x1996f2);}(a618_0x1996,0x16c));const a618_0x1c89=function(_0x506027,_0x1996f2){_0x506027=_0x506027-0x0;let _0x1c8970=a618_0x1996[_0x506027];return _0x1c8970;};const _0x3c733e=a618_0x1c89;'use strict';const express=require('express'),router=express[_0x3c733e('0x4')](),auth=require(_0x3c733e('0x1')),controller=require(_0x3c733e('0x6'));router[_0x3c733e('0x2')]('/',auth[_0x3c733e('0x7')](),controller[_0x3c733e('0x3')]),router[_0x3c733e('0x2')](_0x3c733e('0x0'),auth['isAuthenticated'](),controller[_0x3c733e('0x5')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/system/system.controller.js b/server/api/system/system.controller.js index e41f05c..d0cfa0a 100644 --- a/server/api/system/system.controller.js +++ b/server/api/system/system.controller.js @@ -1 +1 @@ -const a619_0x2b4a=['index','pid','send','format','then','params','util','getAllData','api','systeminformation','indexOf','Process\x20with\x20pid\x20%s\x20not\x20found!','exec','<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s','inspect','../../config/logger','catch','status','ps\x20-p\x20%s\x20-ww\x20-o\x20args','SIGINT','name','components/import/cm','json','killProcess'];(function(_0x101c11,_0x2b4a3e){const _0x27319e=function(_0x1ac9d3){while(--_0x1ac9d3){_0x101c11['push'](_0x101c11['shift']());}};_0x27319e(++_0x2b4a3e);}(a619_0x2b4a,0xb1));const a619_0x2731=function(_0x101c11,_0x2b4a3e){_0x101c11=_0x101c11-0x0;let _0x27319e=a619_0x2b4a[_0x101c11];return _0x27319e;};const _0x4fcabb=a619_0x2731;'use strict';const info=require(_0x4fcabb('0x0')),exec=require('child_process')[_0x4fcabb('0x3')],logger=require(_0x4fcabb('0x6'))(_0x4fcabb('0x17')),util=require(_0x4fcabb('0x15'));function handleError(_0x1ac9d3,_0x40fa45,_0x33ad73){return _0x40fa45=_0x40fa45||0x1f4,function(_0x3b4214){const _0x4b2edb=a619_0x2731;logger['error'](_0x4b2edb('0x4'),_0x33ad73,_0x40fa45,util[_0x4b2edb('0x5')](_0x3b4214,{'showHidden':![],'depth':null})),delete _0x3b4214[_0x4b2edb('0xb')],_0x1ac9d3[_0x4b2edb('0x8')](_0x40fa45)[_0x4b2edb('0x11')](_0x3b4214);};}exports[_0x4fcabb('0xf')]=function(_0x12865d,_0x575004){const _0x163478=_0x4fcabb;return info[_0x163478('0x16')]()[_0x163478('0x13')](function(_0x22b4e8){return _0x575004['status'](0xc8)['json'](_0x22b4e8);})[_0x163478('0x7')](function(_0x21df46){const _0x446bcc=_0x163478;return _0x575004[_0x446bcc('0x8')](0x1f4)['json'](_0x21df46);});},exports[_0x4fcabb('0xe')]=function(_0x5bf866,_0x34a66b){const _0x5ce030=_0x4fcabb,_0xe95b47=[_0x5ce030('0xc')];return new Promise(function(_0x30ba84,_0x1935da){const _0x54bb65=_0x5ce030;return exec(util[_0x54bb65('0x12')](_0x54bb65('0x9'),_0x5bf866['params']['pid']),function(_0x5cf6b1,_0x4c1b1d){if(_0x5cf6b1)return _0x1935da(_0x5cf6b1);return _0x30ba84(_0x4c1b1d);});})[_0x5ce030('0x13')](function(_0x52f4e4){const _0x4e4b9a=_0x5ce030;let _0x463a6=![];for(let _0x8f144b=0x0,_0x376a3a=_0xe95b47['length'];_0x8f144b<_0x376a3a,_0x463a6===![];_0x8f144b+=0x1){_0x52f4e4[_0x4e4b9a('0x1')](_0xe95b47[_0x8f144b])>=0x0&&(_0x463a6=!![]);}if(!_0x463a6)throw new Error(util[_0x4e4b9a('0x12')](_0x4e4b9a('0x2'),_0x5bf866[_0x4e4b9a('0x14')]['pid']));return process['kill'](_0x5bf866[_0x4e4b9a('0x14')][_0x4e4b9a('0x10')],_0x4e4b9a('0xa')),_0x34a66b[_0x4e4b9a('0x8')](0xc8)[_0x4e4b9a('0xd')]({'message':util[_0x4e4b9a('0x12')]('Process\x20with\x20pid\x20%s\x20killed\x20correctly',_0x5bf866[_0x4e4b9a('0x14')][_0x4e4b9a('0x10')])});})[_0x5ce030('0x7')](handleError(_0x34a66b,null,_0x5ce030('0xe')));}; \ No newline at end of file +const a619_0x4ae0=['kill','name','systeminformation','child_process','json','pid','ps\x20-p\x20%s\x20-ww\x20-o\x20args','error','params','Process\x20with\x20pid\x20%s\x20not\x20found!','then','status','index','indexOf','components/import/cm','util','catch','exec','killProcess','format'];(function(_0x1bf527,_0x4ae0ee){const _0x2046bc=function(_0x57aeb9){while(--_0x57aeb9){_0x1bf527['push'](_0x1bf527['shift']());}};_0x2046bc(++_0x4ae0ee);}(a619_0x4ae0,0xfa));const a619_0x2046=function(_0x1bf527,_0x4ae0ee){_0x1bf527=_0x1bf527-0x0;let _0x2046bc=a619_0x4ae0[_0x1bf527];return _0x2046bc;};const _0x9a0dd2=a619_0x2046;'use strict';const info=require(_0x9a0dd2('0xc')),exec=require(_0x9a0dd2('0xd'))[_0x9a0dd2('0x7')],logger=require('../../config/logger')('api'),util=require(_0x9a0dd2('0x5'));function handleError(_0x57aeb9,_0x127804,_0x13655b){return _0x127804=_0x127804||0x1f4,function(_0x5a73b9){const _0x2375b7=a619_0x2046;logger[_0x2375b7('0x11')]('<%-\x20name\x20%>,\x20%s,\x20%s,\x20%s',_0x13655b,_0x127804,util['inspect'](_0x5a73b9,{'showHidden':![],'depth':null})),delete _0x5a73b9[_0x2375b7('0xb')],_0x57aeb9['status'](_0x127804)['send'](_0x5a73b9);};}exports[_0x9a0dd2('0x2')]=function(_0x5934e5,_0x3715f8){const _0x237be9=_0x9a0dd2;return info['getAllData']()[_0x237be9('0x0')](function(_0x1e2dff){const _0x4f805b=_0x237be9;return _0x3715f8[_0x4f805b('0x1')](0xc8)['json'](_0x1e2dff);})[_0x237be9('0x6')](function(_0x4852e0){const _0x42f46f=_0x237be9;return _0x3715f8[_0x42f46f('0x1')](0x1f4)[_0x42f46f('0xe')](_0x4852e0);});},exports[_0x9a0dd2('0x8')]=function(_0x49eeb5,_0x4cdffc){const _0x4db842=_0x9a0dd2,_0x1b09a1=[_0x4db842('0x4')];return new Promise(function(_0x1b6665,_0x1981e9){const _0x3204c1=_0x4db842;return exec(util[_0x3204c1('0x9')](_0x3204c1('0x10'),_0x49eeb5[_0x3204c1('0x12')]['pid']),function(_0x1d4a68,_0x392732){if(_0x1d4a68)return _0x1981e9(_0x1d4a68);return _0x1b6665(_0x392732);});})[_0x4db842('0x0')](function(_0x36acc8){const _0x455b11=_0x4db842;let _0xdb3445=![];for(let _0x3469c2=0x0,_0x43bf3e=_0x1b09a1['length'];_0x3469c2<_0x43bf3e,_0xdb3445===![];_0x3469c2+=0x1){_0x36acc8[_0x455b11('0x3')](_0x1b09a1[_0x3469c2])>=0x0&&(_0xdb3445=!![]);}if(!_0xdb3445)throw new Error(util[_0x455b11('0x9')](_0x455b11('0x13'),_0x49eeb5['params'][_0x455b11('0xf')]));return process[_0x455b11('0xa')](_0x49eeb5['params']['pid'],'SIGINT'),_0x4cdffc['status'](0xc8)[_0x455b11('0xe')]({'message':util[_0x455b11('0x9')]('Process\x20with\x20pid\x20%s\x20killed\x20correctly',_0x49eeb5[_0x455b11('0x12')]['pid'])});})[_0x4db842('0x6')](handleError(_0x4cdffc,null,_0x4db842('0x8')));}; \ No newline at end of file diff --git a/server/api/tag/index.js b/server/api/tag/index.js index a54888a..ef98ca1 100644 --- a/server/api/tag/index.js +++ b/server/api/tag/index.js @@ -1 +1 @@ -const a620_0x591b=['isAuthenticated','Router','create','post','destroy','../../components/auth/service','express','delete','exports','/:id','get'];(function(_0x350f3b,_0x591bdb){const _0x3993d5=function(_0x1f5c82){while(--_0x1f5c82){_0x350f3b['push'](_0x350f3b['shift']());}};_0x3993d5(++_0x591bdb);}(a620_0x591b,0x155));const a620_0x3993=function(_0x350f3b,_0x591bdb){_0x350f3b=_0x350f3b-0x0;let _0x3993d5=a620_0x591b[_0x350f3b];return _0x3993d5;};const _0x5efadd=a620_0x3993;'use strict';const express=require(_0x5efadd('0x6')),router=express[_0x5efadd('0x1')](),auth=require(_0x5efadd('0x5')),controller=require('./tag.controller');router[_0x5efadd('0xa')]('/',auth[_0x5efadd('0x0')](),controller['index']),router[_0x5efadd('0xa')]('/:id',auth[_0x5efadd('0x0')](),controller['show']),router[_0x5efadd('0x3')]('/',auth[_0x5efadd('0x0')](),controller[_0x5efadd('0x2')]),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router[_0x5efadd('0x7')](_0x5efadd('0x9'),auth[_0x5efadd('0x0')](),controller[_0x5efadd('0x4')]),module[_0x5efadd('0x8')]=router; \ No newline at end of file +const a620_0x4fb3=['express','exports','create','delete','post','Router','isAuthenticated','destroy','../../components/auth/service','show','/:id','get','put','update','./tag.controller'];(function(_0x2547f9,_0x4fb3a2){const _0x3e6569=function(_0x13b057){while(--_0x13b057){_0x2547f9['push'](_0x2547f9['shift']());}};_0x3e6569(++_0x4fb3a2);}(a620_0x4fb3,0x10d));const a620_0x3e65=function(_0x2547f9,_0x4fb3a2){_0x2547f9=_0x2547f9-0x0;let _0x3e6569=a620_0x4fb3[_0x2547f9];return _0x3e6569;};const _0x2fcda6=a620_0x3e65;'use strict';const express=require(_0x2fcda6('0x1')),router=express[_0x2fcda6('0x6')](),auth=require(_0x2fcda6('0x9')),controller=require(_0x2fcda6('0x0'));router[_0x2fcda6('0xc')]('/',auth[_0x2fcda6('0x7')](),controller['index']),router[_0x2fcda6('0xc')](_0x2fcda6('0xb'),auth['isAuthenticated'](),controller[_0x2fcda6('0xa')]),router[_0x2fcda6('0x5')]('/',auth['isAuthenticated'](),controller[_0x2fcda6('0x3')]),router[_0x2fcda6('0xd')]('/:id',auth[_0x2fcda6('0x7')](),controller[_0x2fcda6('0xe')]),router[_0x2fcda6('0x4')](_0x2fcda6('0xb'),auth['isAuthenticated'](),controller[_0x2fcda6('0x8')]),module[_0x2fcda6('0x2')]=router; \ No newline at end of file diff --git a/server/api/tag/tag.attributes.js b/server/api/tag/tag.attributes.js index 129175b..72b99a8 100644 --- a/server/api/tag/tag.attributes.js +++ b/server/api/tag/tag.attributes.js @@ -1 +1 @@ -const a621_0x4bd0=['sequelize','name','#0091EA','STRING'];(function(_0x284c0e,_0x4bd0dd){const _0x581a60=function(_0x20d84a){while(--_0x20d84a){_0x284c0e['push'](_0x284c0e['shift']());}};_0x581a60(++_0x4bd0dd);}(a621_0x4bd0,0x134));const a621_0x581a=function(_0x284c0e,_0x4bd0dd){_0x284c0e=_0x284c0e-0x0;let _0x581a60=a621_0x4bd0[_0x284c0e];return _0x581a60;};const _0x548969=a621_0x581a;'use strict';const Sequelize=require(_0x548969('0x0'));module['exports']={'name':{'type':Sequelize[_0x548969('0x3')],'unique':_0x548969('0x1'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':Sequelize['STRING'],'defaultValue':_0x548969('0x2')},'description':{'type':Sequelize[_0x548969('0x3')]}}; \ No newline at end of file +const a621_0xbb69=['name','STRING','sequelize'];(function(_0x5d6ff7,_0xbb692d){const _0x14b56e=function(_0x3e0acf){while(--_0x3e0acf){_0x5d6ff7['push'](_0x5d6ff7['shift']());}};_0x14b56e(++_0xbb692d);}(a621_0xbb69,0x1a0));const a621_0x14b5=function(_0x5d6ff7,_0xbb692d){_0x5d6ff7=_0x5d6ff7-0x0;let _0x14b56e=a621_0xbb69[_0x5d6ff7];return _0x14b56e;};const _0x90b846=a621_0x14b5;'use strict';const Sequelize=require(_0x90b846('0x0'));module['exports']={'name':{'type':Sequelize[_0x90b846('0x2')],'unique':_0x90b846('0x1'),'allowNull':![],'validate':{'is':/[A-Za-z0-9._\\+*!-]+/,'notEmpty':!![]}},'color':{'type':Sequelize[_0x90b846('0x2')],'defaultValue':'#0091EA'},'description':{'type':Sequelize[_0x90b846('0x2')]}}; \ No newline at end of file diff --git a/server/api/tag/tag.controller.js b/server/api/tag/tag.controller.js index 40ee89a..2853a52 100644 --- a/server/api/tag/tag.controller.js +++ b/server/api/tag/tag.controller.js @@ -1 +1 @@ -const a622_0x2a11=['options','userProfileId','limit','model','then','order','lodash','destroy','undefined','rawAttributes','fields','api','count','rows','merge','offset','filters','../../config/logger','pick','get','name','status','../../mysqldb','UserProfileSection','show','error','findAll','autoAssociation','catch','sort','where','Tags','user','role','index','query','Tag','type','attributes','includeAll','update','create','Unable\x20to\x20retrieve\x20the\x20current\x20user','findOne','intersection','stack','sendStatus','end','Content-Range','map','nolimit','keys','UserProfileResource','length','body','fieldName','VIRTUAL','../../components/parsers/qs','sequelize','params','send','include','filter'];(function(_0x56990e,_0x2a114b){const _0x2798ee=function(_0x1b53eb){while(--_0x1b53eb){_0x56990e['push'](_0x56990e['shift']());}};_0x2798ee(++_0x2a114b);}(a622_0x2a11,0xdc));const a622_0x2798=function(_0x56990e,_0x2a114b){_0x56990e=_0x56990e-0x0;let _0x2798ee=a622_0x2a11[_0x56990e];return _0x2798ee;};const _0x341eea=a622_0x2798;'use strict';const _=require(_0x341eea('0x26')),qs=require(_0x341eea('0x1a')),logger=require(_0x341eea('0x31'))(_0x341eea('0x2b')),db=require(_0x341eea('0x36'))['db'],{Op}=require(_0x341eea('0x1b'));function respondWithResult(_0x1b53eb,_0x5360c5){return _0x5360c5=_0x5360c5||0xc8,function(_0x336de4){const _0x376058=a622_0x2798;if(_0x336de4)return _0x1b53eb[_0x376058('0x35')](_0x5360c5)['json'](_0x336de4);};}function respondWithFilteredResult(_0x5ab8f8,_0x36a53c){return function(_0x3f6346){const _0x4c481a=a622_0x2798;if(_0x3f6346){const _0x33265c=_0x3f6346[_0x4c481a('0x2c')],_0xdb7381=_0x36a53c[_0x4c481a('0x2f')];let _0x15de75=_0x36a53c[_0x4c481a('0x2f')]+_0x36a53c['limit'],_0x17c59a;return _0x15de75>=_0x33265c?(_0x15de75=_0x33265c,_0x17c59a=0xc8):_0x17c59a=0xce,_0x5ab8f8[_0x4c481a('0x35')](_0x17c59a),_0x5ab8f8['set'](_0x4c481a('0x11'),_0xdb7381+'-'+_0x15de75+'/'+_0x33265c)['json'](_0x3f6346);}return null;};}function saveUpdates(_0x46ec7c){return function(_0x3a661f){const _0x273cd2=a622_0x2798;if(_0x3a661f)return _0x3a661f[_0x273cd2('0x9')](_0x46ec7c)[_0x273cd2('0x24')](function(_0x5998c7){return _0x5998c7;});return null;};}function removeEntity(_0x3d5d2f){return function(_0x518534){const _0x3bd1d6=a622_0x2798;if(_0x518534)return _0x518534[_0x3bd1d6('0x27')]()[_0x3bd1d6('0x24')](function(){const _0x4ee834=_0x3bd1d6,_0x4cf9e4=_0x518534[_0x4ee834('0x33')]({'plain':!![]}),_0x9b7115='Tags';return db[_0x4ee834('0x15')][_0x4ee834('0x27')]({'where':{'type':_0x9b7115,'resourceId':_0x4cf9e4['id']}})[_0x4ee834('0x24')](function(){return _0x518534;});})['then'](function(){const _0x5c961a=_0x3bd1d6;_0x3d5d2f[_0x5c961a('0x35')](0xcc)[_0x5c961a('0x10')]();});};}function handleEntityNotFound(_0x343dfd){return function(_0x4e3c3a){const _0x1fd4cb=a622_0x2798;return!_0x4e3c3a&&_0x343dfd[_0x1fd4cb('0xf')](0x194),_0x4e3c3a;};}function handleError(_0x12ab89,_0x3d34a9){return _0x3d34a9=_0x3d34a9||0x1f4,function(_0x2cb7e2){const _0x54e0de=a622_0x2798;logger[_0x54e0de('0x39')](_0x2cb7e2[_0x54e0de('0xe')]),_0x2cb7e2['name']&&delete _0x2cb7e2['name'],_0x12ab89[_0x54e0de('0x35')](_0x3d34a9)[_0x54e0de('0x1d')](_0x2cb7e2);};}exports[_0x341eea('0x3')]=function(_0x5dd9e8,_0xb9a96c){const _0x5ace29=_0x341eea;let _0x7a14a1={};const _0xb98fbf={},_0xf9cf89={'count':0x0,'rows':[]},_0x54ef8c=_[_0x5ace29('0x12')](db['Tag'][_0x5ace29('0x29')],function(_0x9b2934){const _0x10b638=_0x5ace29;return{'name':_0x9b2934[_0x10b638('0x18')],'type':_0x9b2934[_0x10b638('0x6')]['key']};});_0xb98fbf[_0x5ace29('0x23')]=_[_0x5ace29('0x12')](_0x54ef8c,_0x5ace29('0x34')),_0xb98fbf[_0x5ace29('0x4')]=_[_0x5ace29('0x14')](_0x5dd9e8[_0x5ace29('0x4')]),_0xb98fbf[_0x5ace29('0x30')]=_[_0x5ace29('0xd')](_0xb98fbf[_0x5ace29('0x23')],_0xb98fbf[_0x5ace29('0x4')]),_0x7a14a1['attributes']=_[_0x5ace29('0xd')](_0xb98fbf[_0x5ace29('0x23')],qs[_0x5ace29('0x2a')](_0x5dd9e8['query'][_0x5ace29('0x2a')])),_0x7a14a1[_0x5ace29('0x7')]=_0x7a14a1[_0x5ace29('0x7')][_0x5ace29('0x16')]?_0x7a14a1[_0x5ace29('0x7')]:_0xb98fbf['model'];typeof _0x5dd9e8[_0x5ace29('0x4')][_0x5ace29('0x13')]===_0x5ace29('0x28')&&(_0x7a14a1[_0x5ace29('0x22')]=qs['limit'](_0x5dd9e8[_0x5ace29('0x4')][_0x5ace29('0x22')]),_0x7a14a1[_0x5ace29('0x2f')]=qs['offset'](_0x5dd9e8[_0x5ace29('0x4')]['offset']));_0x7a14a1[_0x5ace29('0x25')]=qs[_0x5ace29('0x3d')](_0x5dd9e8[_0x5ace29('0x4')][_0x5ace29('0x3d')]),_0x7a14a1['where']=qs[_0x5ace29('0x30')](_[_0x5ace29('0x32')](_0x5dd9e8[_0x5ace29('0x4')],_0xb98fbf['filters']),_0x54ef8c);_0x5dd9e8['query'][_0x5ace29('0x1f')]&&(_0x7a14a1[_0x5ace29('0x3e')]=_[_0x5ace29('0x2e')](_0x7a14a1['where'],{[Op['or']]:_[_0x5ace29('0x12')](_0x54ef8c,function(_0x14e3e3){const _0x2bfbf7=_0x5ace29;if(_0x14e3e3[_0x2bfbf7('0x6')]!==_0x2bfbf7('0x19')){const _0x2b22e5={};return _0x2b22e5[_0x14e3e3[_0x2bfbf7('0x34')]]={[Op['like']]:'%'+_0x5dd9e8[_0x2bfbf7('0x4')][_0x2bfbf7('0x1f')]+'%'},_0x2b22e5;}})}));_0x7a14a1=_[_0x5ace29('0x2e')]({},_0x7a14a1,_0x5dd9e8['options']);const _0x5df792={'where':_0x7a14a1[_0x5ace29('0x3e')]};return db[_0x5ace29('0x5')][_0x5ace29('0x2c')](_0x5df792)[_0x5ace29('0x24')](function(_0x882130){const _0x3e0feb=_0x5ace29;return _0xf9cf89['count']=_0x882130,_0x5dd9e8[_0x3e0feb('0x4')]['includeAll']&&(_0x7a14a1[_0x3e0feb('0x1e')]=[{'all':!![]}]),db[_0x3e0feb('0x5')][_0x3e0feb('0x3a')](_0x7a14a1);})[_0x5ace29('0x24')](function(_0x1a4a38){const _0x46dc74=_0x5ace29;return _0xf9cf89[_0x46dc74('0x2d')]=_0x1a4a38,_0xf9cf89;})['then'](respondWithFilteredResult(_0xb9a96c,_0x7a14a1))['catch'](handleError(_0xb9a96c,null));},exports[_0x341eea('0x38')]=function(_0x51b608,_0x1b1afe){const _0x231c07=_0x341eea;let _0x2b53d3={'raw':!![],'where':{'id':_0x51b608['params']['id']}};const _0xd7edd3={};return _0xd7edd3['model']=_[_0x231c07('0x14')](db[_0x231c07('0x5')]['rawAttributes']),_0xd7edd3[_0x231c07('0x4')]=_[_0x231c07('0x14')](_0x51b608[_0x231c07('0x4')]),_0xd7edd3[_0x231c07('0x30')]=_['intersection'](_0xd7edd3[_0x231c07('0x23')],_0xd7edd3[_0x231c07('0x4')]),_0x2b53d3[_0x231c07('0x7')]=_[_0x231c07('0xd')](_0xd7edd3['model'],qs['fields'](_0x51b608[_0x231c07('0x4')][_0x231c07('0x2a')])),_0x2b53d3['attributes']=_0x2b53d3[_0x231c07('0x7')][_0x231c07('0x16')]?_0x2b53d3['attributes']:_0xd7edd3[_0x231c07('0x23')],_0x51b608[_0x231c07('0x4')][_0x231c07('0x8')]&&(_0x2b53d3['include']=[{'all':!![]}]),_0x2b53d3=_[_0x231c07('0x2e')]({},_0x2b53d3,_0x51b608[_0x231c07('0x20')]),db[_0x231c07('0x5')][_0x231c07('0xc')](_0x2b53d3)[_0x231c07('0x24')](handleEntityNotFound(_0x1b1afe,null))['then'](respondWithResult(_0x1b1afe,null))[_0x231c07('0x3c')](handleError(_0x1b1afe,null));},exports[_0x341eea('0xa')]=function(_0x3db5b0,_0x2cbbb8){const _0x4fb2ec=_0x341eea;return db[_0x4fb2ec('0x5')]['create'](_0x3db5b0[_0x4fb2ec('0x17')],{})['then'](function(_0xd9e06){const _0x28f9c3=_0x4fb2ec,_0x29d8ca=_0x3db5b0[_0x28f9c3('0x1')]['get']({'plain':!![]});if(!_0x29d8ca)throw new Error(_0x28f9c3('0xb'));if(_0x29d8ca[_0x28f9c3('0x2')]===_0x28f9c3('0x1')){const _0x4da787=_0xd9e06[_0x28f9c3('0x33')]({'plain':!![]}),_0x59e1e9=_0x28f9c3('0x0');return db[_0x28f9c3('0x37')][_0x28f9c3('0xc')]({'where':{'name':_0x59e1e9,'userProfileId':_0x29d8ca[_0x28f9c3('0x21')]},'raw':!![]})[_0x28f9c3('0x24')](function(_0x4cc1b7){const _0x4afe69=_0x28f9c3;return _0x4cc1b7&&_0x4cc1b7[_0x4afe69('0x3b')]===0x0?db[_0x4afe69('0x15')][_0x4afe69('0xa')]({'name':_0x4da787['name'],'resourceId':_0x4da787['id'],'type':_0x4cc1b7[_0x4afe69('0x34')],'sectionId':_0x4cc1b7['id']},{})[_0x4afe69('0x24')](function(){return _0xd9e06;}):_0xd9e06;})[_0x28f9c3('0x3c')](function(_0x51f34d){const _0x1821a9=_0x28f9c3;logger[_0x1821a9('0x39')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x51f34d);throw _0x51f34d;});}return _0xd9e06;})[_0x4fb2ec('0x24')](respondWithResult(_0x2cbbb8,0xc9))[_0x4fb2ec('0x3c')](handleError(_0x2cbbb8,null));},exports[_0x341eea('0x9')]=function(_0x4996d0,_0x2bd476){const _0x242d08=_0x341eea;return _0x4996d0['body']['id']&&delete _0x4996d0[_0x242d08('0x17')]['id'],db[_0x242d08('0x5')][_0x242d08('0xc')]({'where':{'id':_0x4996d0['params']['id']}})[_0x242d08('0x24')](handleEntityNotFound(_0x2bd476,null))[_0x242d08('0x24')](saveUpdates(_0x4996d0[_0x242d08('0x17')],null))['then'](respondWithResult(_0x2bd476,null))[_0x242d08('0x3c')](handleError(_0x2bd476,null));},exports[_0x341eea('0x27')]=function(_0x100351,_0x1a48dc){const _0x4bf3c9=_0x341eea;return db[_0x4bf3c9('0x5')]['findOne']({'where':{'id':_0x100351[_0x4bf3c9('0x1c')]['id']}})[_0x4bf3c9('0x24')](handleEntityNotFound(_0x1a48dc,null))[_0x4bf3c9('0x24')](removeEntity(_0x1a48dc,null))[_0x4bf3c9('0x3c')](handleError(_0x1a48dc,null));}; \ No newline at end of file +const a622_0x103c=['UserProfileSection','name','filter','set','where','../../components/parsers/qs','nolimit','map','key','index','sort','offset','role','intersection','pick','fields','Tags','catch','Content-Range','../../config/logger','undefined','UserProfileResource','keys','error','send','json','includeAll','get','Unable\x20to\x20retrieve\x20the\x20current\x20user','rows','query','model','options','create','length','body','limit','lodash','order','attributes','destroy','merge','sequelize','../../mysqldb','end','params','autoAssociation','then','Tag','like','show','api','findOne','count','user','include','rawAttributes','stack','filters','status','userProfileId','type'];(function(_0x15dff5,_0x103c93){const _0x86cdfb=function(_0x2f028c){while(--_0x2f028c){_0x15dff5['push'](_0x15dff5['shift']());}};_0x86cdfb(++_0x103c93);}(a622_0x103c,0x1d8));const a622_0x86cd=function(_0x15dff5,_0x103c93){_0x15dff5=_0x15dff5-0x0;let _0x86cdfb=a622_0x103c[_0x15dff5];return _0x86cdfb;};const _0x4f7749=a622_0x86cd;'use strict';const _=require(_0x4f7749('0x3d')),qs=require(_0x4f7749('0x1d')),logger=require(_0x4f7749('0x2b'))(_0x4f7749('0xd')),db=require(_0x4f7749('0x5'))['db'],{Op}=require(_0x4f7749('0x4'));function respondWithResult(_0x2f028c,_0x411219){return _0x411219=_0x411219||0xc8,function(_0xe59a0e){const _0x5e8c08=a622_0x86cd;if(_0xe59a0e)return _0x2f028c['status'](_0x411219)[_0x5e8c08('0x31')](_0xe59a0e);};}function respondWithFilteredResult(_0x4c4cd5,_0x396748){return function(_0x392afa){const _0x4c6cce=a622_0x86cd;if(_0x392afa){const _0x4a62a5=_0x392afa[_0x4c6cce('0xf')],_0x539f44=_0x396748['offset'];let _0x3f6f29=_0x396748[_0x4c6cce('0x23')]+_0x396748['limit'],_0x5aab5a;return _0x3f6f29>=_0x4a62a5?(_0x3f6f29=_0x4a62a5,_0x5aab5a=0xc8):_0x5aab5a=0xce,_0x4c4cd5[_0x4c6cce('0x15')](_0x5aab5a),_0x4c4cd5[_0x4c6cce('0x1b')](_0x4c6cce('0x2a'),_0x539f44+'-'+_0x3f6f29+'/'+_0x4a62a5)[_0x4c6cce('0x31')](_0x392afa);}return null;};}function saveUpdates(_0x2299e7){return function(_0x5bb255){const _0x47b443=a622_0x86cd;if(_0x5bb255)return _0x5bb255['update'](_0x2299e7)[_0x47b443('0x9')](function(_0x36857d){return _0x36857d;});return null;};}function removeEntity(_0xe4fbd7){return function(_0x24c2b0){const _0x5685d5=a622_0x86cd;if(_0x24c2b0)return _0x24c2b0[_0x5685d5('0x2')]()['then'](function(){const _0x542ef1=_0x5685d5,_0x476dc7=_0x24c2b0[_0x542ef1('0x33')]({'plain':!![]}),_0x1c62c3=_0x542ef1('0x28');return db[_0x542ef1('0x2d')][_0x542ef1('0x2')]({'where':{'type':_0x1c62c3,'resourceId':_0x476dc7['id']}})[_0x542ef1('0x9')](function(){return _0x24c2b0;});})[_0x5685d5('0x9')](function(){const _0x1ac24f=_0x5685d5;_0xe4fbd7[_0x1ac24f('0x15')](0xcc)[_0x1ac24f('0x6')]();});};}function handleEntityNotFound(_0x1b6f69){return function(_0x3c6044){return!_0x3c6044&&_0x1b6f69['sendStatus'](0x194),_0x3c6044;};}function handleError(_0x3bce88,_0x7c3ca1){return _0x7c3ca1=_0x7c3ca1||0x1f4,function(_0x541acb){const _0xbb5f36=a622_0x86cd;logger[_0xbb5f36('0x2f')](_0x541acb[_0xbb5f36('0x13')]),_0x541acb[_0xbb5f36('0x19')]&&delete _0x541acb[_0xbb5f36('0x19')],_0x3bce88[_0xbb5f36('0x15')](_0x7c3ca1)[_0xbb5f36('0x30')](_0x541acb);};}exports[_0x4f7749('0x21')]=function(_0x27e1ff,_0x4b6b7c){const _0x721add=_0x4f7749;let _0x10ef9f={};const _0x2931f7={},_0x350495={'count':0x0,'rows':[]},_0x4dae47=_[_0x721add('0x1f')](db[_0x721add('0xa')][_0x721add('0x12')],function(_0x2f3232){const _0x528200=_0x721add;return{'name':_0x2f3232['fieldName'],'type':_0x2f3232[_0x528200('0x17')][_0x528200('0x20')]};});_0x2931f7[_0x721add('0x37')]=_[_0x721add('0x1f')](_0x4dae47,_0x721add('0x19')),_0x2931f7[_0x721add('0x36')]=_[_0x721add('0x2e')](_0x27e1ff[_0x721add('0x36')]),_0x2931f7[_0x721add('0x14')]=_[_0x721add('0x25')](_0x2931f7['model'],_0x2931f7['query']),_0x10ef9f[_0x721add('0x1')]=_[_0x721add('0x25')](_0x2931f7[_0x721add('0x37')],qs['fields'](_0x27e1ff[_0x721add('0x36')]['fields'])),_0x10ef9f[_0x721add('0x1')]=_0x10ef9f[_0x721add('0x1')][_0x721add('0x3a')]?_0x10ef9f[_0x721add('0x1')]:_0x2931f7[_0x721add('0x37')];typeof _0x27e1ff['query'][_0x721add('0x1e')]===_0x721add('0x2c')&&(_0x10ef9f[_0x721add('0x3c')]=qs[_0x721add('0x3c')](_0x27e1ff[_0x721add('0x36')][_0x721add('0x3c')]),_0x10ef9f['offset']=qs[_0x721add('0x23')](_0x27e1ff[_0x721add('0x36')]['offset']));_0x10ef9f[_0x721add('0x0')]=qs[_0x721add('0x22')](_0x27e1ff[_0x721add('0x36')]['sort']),_0x10ef9f[_0x721add('0x1c')]=qs[_0x721add('0x14')](_[_0x721add('0x26')](_0x27e1ff[_0x721add('0x36')],_0x2931f7[_0x721add('0x14')]),_0x4dae47);_0x27e1ff[_0x721add('0x36')][_0x721add('0x1a')]&&(_0x10ef9f[_0x721add('0x1c')]=_['merge'](_0x10ef9f[_0x721add('0x1c')],{[Op['or']]:_[_0x721add('0x1f')](_0x4dae47,function(_0x2e29db){const _0xeca48e=_0x721add;if(_0x2e29db[_0xeca48e('0x17')]!=='VIRTUAL'){const _0x3751a6={};return _0x3751a6[_0x2e29db['name']]={[Op[_0xeca48e('0xb')]]:'%'+_0x27e1ff[_0xeca48e('0x36')][_0xeca48e('0x1a')]+'%'},_0x3751a6;}})}));_0x10ef9f=_[_0x721add('0x3')]({},_0x10ef9f,_0x27e1ff[_0x721add('0x38')]);const _0x137313={'where':_0x10ef9f[_0x721add('0x1c')]};return db[_0x721add('0xa')]['count'](_0x137313)[_0x721add('0x9')](function(_0x4c53b6){const _0x39a97b=_0x721add;return _0x350495['count']=_0x4c53b6,_0x27e1ff[_0x39a97b('0x36')]['includeAll']&&(_0x10ef9f[_0x39a97b('0x11')]=[{'all':!![]}]),db[_0x39a97b('0xa')]['findAll'](_0x10ef9f);})[_0x721add('0x9')](function(_0x2f4e7d){const _0x29796e=_0x721add;return _0x350495[_0x29796e('0x35')]=_0x2f4e7d,_0x350495;})[_0x721add('0x9')](respondWithFilteredResult(_0x4b6b7c,_0x10ef9f))[_0x721add('0x29')](handleError(_0x4b6b7c,null));},exports[_0x4f7749('0xc')]=function(_0x58e61b,_0x4153b9){const _0x355691=_0x4f7749;let _0x2bf1b2={'raw':!![],'where':{'id':_0x58e61b['params']['id']}};const _0x438f89={};return _0x438f89['model']=_[_0x355691('0x2e')](db[_0x355691('0xa')]['rawAttributes']),_0x438f89[_0x355691('0x36')]=_[_0x355691('0x2e')](_0x58e61b['query']),_0x438f89['filters']=_[_0x355691('0x25')](_0x438f89[_0x355691('0x37')],_0x438f89[_0x355691('0x36')]),_0x2bf1b2['attributes']=_['intersection'](_0x438f89[_0x355691('0x37')],qs[_0x355691('0x27')](_0x58e61b[_0x355691('0x36')]['fields'])),_0x2bf1b2['attributes']=_0x2bf1b2[_0x355691('0x1')]['length']?_0x2bf1b2[_0x355691('0x1')]:_0x438f89[_0x355691('0x37')],_0x58e61b['query'][_0x355691('0x32')]&&(_0x2bf1b2[_0x355691('0x11')]=[{'all':!![]}]),_0x2bf1b2=_[_0x355691('0x3')]({},_0x2bf1b2,_0x58e61b[_0x355691('0x38')]),db[_0x355691('0xa')]['findOne'](_0x2bf1b2)['then'](handleEntityNotFound(_0x4153b9,null))[_0x355691('0x9')](respondWithResult(_0x4153b9,null))[_0x355691('0x29')](handleError(_0x4153b9,null));},exports[_0x4f7749('0x39')]=function(_0x72cc77,_0x28de73){const _0x5226c6=_0x4f7749;return db[_0x5226c6('0xa')][_0x5226c6('0x39')](_0x72cc77[_0x5226c6('0x3b')],{})['then'](function(_0x1c70f1){const _0x50023a=_0x5226c6,_0x54d6be=_0x72cc77[_0x50023a('0x10')]['get']({'plain':!![]});if(!_0x54d6be)throw new Error(_0x50023a('0x34'));if(_0x54d6be[_0x50023a('0x24')]===_0x50023a('0x10')){const _0x13cced=_0x1c70f1[_0x50023a('0x33')]({'plain':!![]}),_0x18d141=_0x50023a('0x28');return db[_0x50023a('0x18')][_0x50023a('0xe')]({'where':{'name':_0x18d141,'userProfileId':_0x54d6be[_0x50023a('0x16')]},'raw':!![]})[_0x50023a('0x9')](function(_0x4adcff){const _0x523612=_0x50023a;return _0x4adcff&&_0x4adcff[_0x523612('0x8')]===0x0?db['UserProfileResource']['create']({'name':_0x13cced[_0x523612('0x19')],'resourceId':_0x13cced['id'],'type':_0x4adcff[_0x523612('0x19')],'sectionId':_0x4adcff['id']},{})[_0x523612('0x9')](function(){return _0x1c70f1;}):_0x1c70f1;})[_0x50023a('0x29')](function(_0x404d7b){const _0x41b5a7=_0x50023a;logger[_0x41b5a7('0x2f')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x404d7b);throw _0x404d7b;});}return _0x1c70f1;})['then'](respondWithResult(_0x28de73,0xc9))['catch'](handleError(_0x28de73,null));},exports['update']=function(_0x3ede70,_0x27f739){const _0x1445c8=_0x4f7749;return _0x3ede70[_0x1445c8('0x3b')]['id']&&delete _0x3ede70[_0x1445c8('0x3b')]['id'],db[_0x1445c8('0xa')]['findOne']({'where':{'id':_0x3ede70[_0x1445c8('0x7')]['id']}})[_0x1445c8('0x9')](handleEntityNotFound(_0x27f739,null))[_0x1445c8('0x9')](saveUpdates(_0x3ede70[_0x1445c8('0x3b')],null))[_0x1445c8('0x9')](respondWithResult(_0x27f739,null))['catch'](handleError(_0x27f739,null));},exports[_0x4f7749('0x2')]=function(_0x3efde5,_0x1390c6){const _0x52475b=_0x4f7749;return db[_0x52475b('0xa')][_0x52475b('0xe')]({'where':{'id':_0x3efde5[_0x52475b('0x7')]['id']}})[_0x52475b('0x9')](handleEntityNotFound(_0x1390c6,null))[_0x52475b('0x9')](removeEntity(_0x1390c6,null))[_0x52475b('0x29')](handleError(_0x1390c6,null));}; \ No newline at end of file diff --git a/server/api/tag/tag.model.js b/server/api/tag/tag.model.js index 44482fa..b287dfa 100644 --- a/server/api/tag/tag.model.js +++ b/server/api/tag/tag.model.js @@ -1 +1 @@ -const a623_0x3451=['./tag.attributes','define','Tag'];(function(_0x1e3b8a,_0x3451e1){const _0x133275=function(_0x1a077d){while(--_0x1a077d){_0x1e3b8a['push'](_0x1e3b8a['shift']());}};_0x133275(++_0x3451e1);}(a623_0x3451,0x163));const a623_0x1332=function(_0x1e3b8a,_0x3451e1){_0x1e3b8a=_0x1e3b8a-0x0;let _0x133275=a623_0x3451[_0x1e3b8a];return _0x133275;};const _0x44e2db=a623_0x1332;'use strict';const attributes=require(_0x44e2db('0x2'));module['exports']=function(_0x1a077d){const _0x34a80b=_0x44e2db,_0x438a7e=_0x1a077d[_0x34a80b('0x0')](_0x34a80b('0x1'),attributes,{'tableName':'tools_tags','paranoid':![],'indexes':[],'timestamps':!![]});return _0x438a7e;}; \ No newline at end of file +const a623_0x3c99=['define','./tag.attributes','tools_tags','exports','Tag'];(function(_0x72686d,_0x3c9906){const _0x5bb612=function(_0x26c1db){while(--_0x26c1db){_0x72686d['push'](_0x72686d['shift']());}};_0x5bb612(++_0x3c9906);}(a623_0x3c99,0x1e3));const a623_0x5bb6=function(_0x72686d,_0x3c9906){_0x72686d=_0x72686d-0x0;let _0x5bb612=a623_0x3c99[_0x72686d];return _0x5bb612;};const _0xfaae46=a623_0x5bb6;'use strict';const attributes=require(_0xfaae46('0x3'));module[_0xfaae46('0x0')]=function(_0x26c1db){const _0x397190=_0xfaae46,_0x259de3=_0x26c1db[_0x397190('0x2')](_0x397190('0x1'),attributes,{'tableName':_0x397190('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x259de3;}; \ No newline at end of file diff --git a/server/api/team/index.js b/server/api/team/index.js index 714b3fb..75e7ce2 100644 --- a/server/api/team/index.js +++ b/server/api/team/index.js @@ -1 +1 @@ -const a624_0x5a87=['removeQueues','getQueues','get','Router','/:id/queues','isAuthenticated','express','addQueues','delete','removeAgents','getAgents','exports','put','destroy','post','/:id','update','index','/:id/users','./team.controller','../../components/auth/service','create'];(function(_0x15d865,_0x5a871a){const _0x30422b=function(_0x1d259d){while(--_0x1d259d){_0x15d865['push'](_0x15d865['shift']());}};_0x30422b(++_0x5a871a);}(a624_0x5a87,0x76));const a624_0x3042=function(_0x15d865,_0x5a871a){_0x15d865=_0x15d865-0x0;let _0x30422b=a624_0x5a87[_0x15d865];return _0x30422b;};const _0x11e42a=a624_0x3042;'use strict';const express=require(_0x11e42a('0x14')),router=express[_0x11e42a('0x11')](),auth=require(_0x11e42a('0xc')),controller=require(_0x11e42a('0xb'));router[_0x11e42a('0x10')]('/',auth[_0x11e42a('0x13')](),controller[_0x11e42a('0x9')]),router[_0x11e42a('0x10')](_0x11e42a('0x7'),auth[_0x11e42a('0x13')](),controller['show']),router[_0x11e42a('0x10')]('/:id/queues',auth[_0x11e42a('0x13')](),controller[_0x11e42a('0xf')]),router[_0x11e42a('0x10')](_0x11e42a('0xa'),auth['isAuthenticated'](),controller[_0x11e42a('0x2')]),router[_0x11e42a('0x6')]('/',auth[_0x11e42a('0x13')](),controller[_0x11e42a('0xd')]),router[_0x11e42a('0x6')](_0x11e42a('0x12'),auth[_0x11e42a('0x13')](),controller[_0x11e42a('0x15')]),router[_0x11e42a('0x6')](_0x11e42a('0xa'),auth['isAuthenticated'](),controller['addAgents']),router[_0x11e42a('0x4')](_0x11e42a('0x7'),auth[_0x11e42a('0x13')](),controller[_0x11e42a('0x8')]),router['delete']('/:id',auth[_0x11e42a('0x13')](),controller[_0x11e42a('0x5')]),router['delete'](_0x11e42a('0x12'),auth[_0x11e42a('0x13')](),controller[_0x11e42a('0xe')]),router[_0x11e42a('0x0')](_0x11e42a('0xa'),auth[_0x11e42a('0x13')](),controller[_0x11e42a('0x1')]),module[_0x11e42a('0x3')]=router; \ No newline at end of file +const a624_0x1b90=['destroy','/:id','delete','exports','post','get','update','/:id/users','../../components/auth/service','isAuthenticated','create','/:id/queues','getAgents','Router','addQueues','addAgents','index','removeAgents','./team.controller','getQueues'];(function(_0xcc4f64,_0x1b90db){const _0x281aec=function(_0x485803){while(--_0x485803){_0xcc4f64['push'](_0xcc4f64['shift']());}};_0x281aec(++_0x1b90db);}(a624_0x1b90,0x11f));const a624_0x281a=function(_0xcc4f64,_0x1b90db){_0xcc4f64=_0xcc4f64-0x0;let _0x281aec=a624_0x1b90[_0xcc4f64];return _0x281aec;};const _0x3dae0a=a624_0x281a;'use strict';const express=require('express'),router=express[_0x3dae0a('0x6')](),auth=require(_0x3dae0a('0x1')),controller=require(_0x3dae0a('0xb'));router[_0x3dae0a('0x12')]('/',auth['isAuthenticated'](),controller[_0x3dae0a('0x9')]),router[_0x3dae0a('0x12')](_0x3dae0a('0xe'),auth[_0x3dae0a('0x2')](),controller['show']),router[_0x3dae0a('0x12')](_0x3dae0a('0x4'),auth[_0x3dae0a('0x2')](),controller[_0x3dae0a('0xc')]),router[_0x3dae0a('0x12')](_0x3dae0a('0x0'),auth['isAuthenticated'](),controller[_0x3dae0a('0x5')]),router[_0x3dae0a('0x11')]('/',auth[_0x3dae0a('0x2')](),controller[_0x3dae0a('0x3')]),router['post'](_0x3dae0a('0x4'),auth['isAuthenticated'](),controller[_0x3dae0a('0x7')]),router['post'](_0x3dae0a('0x0'),auth[_0x3dae0a('0x2')](),controller[_0x3dae0a('0x8')]),router['put'](_0x3dae0a('0xe'),auth[_0x3dae0a('0x2')](),controller[_0x3dae0a('0x13')]),router[_0x3dae0a('0xf')](_0x3dae0a('0xe'),auth[_0x3dae0a('0x2')](),controller[_0x3dae0a('0xd')]),router['delete'](_0x3dae0a('0x4'),auth[_0x3dae0a('0x2')](),controller['removeQueues']),router['delete']('/:id/users',auth[_0x3dae0a('0x2')](),controller[_0x3dae0a('0xa')]),module[_0x3dae0a('0x10')]=router; \ No newline at end of file diff --git a/server/api/team/team.attributes.js b/server/api/team/team.attributes.js index 16f7dc5..6e96a84 100644 --- a/server/api/team/team.attributes.js +++ b/server/api/team/team.attributes.js @@ -1 +1 @@ -const a625_0x1ab8=['exports','STRING'];(function(_0x196223,_0x1ab831){const _0x21207f=function(_0x57489c){while(--_0x57489c){_0x196223['push'](_0x196223['shift']());}};_0x21207f(++_0x1ab831);}(a625_0x1ab8,0x80));const a625_0x2120=function(_0x196223,_0x1ab831){_0x196223=_0x196223-0x0;let _0x21207f=a625_0x1ab8[_0x196223];return _0x21207f;};const _0xf64b80=a625_0x2120;'use strict';const Sequelize=require('sequelize');module[_0xf64b80('0x0')]={'name':{'type':Sequelize['STRING'],'allowNull':![],'unique':'name'},'description':{'type':Sequelize[_0xf64b80('0x1')]}}; \ No newline at end of file +const a625_0x45bf=['sequelize','STRING','exports'];(function(_0x52437a,_0x45bf8a){const _0x2b3732=function(_0x41be59){while(--_0x41be59){_0x52437a['push'](_0x52437a['shift']());}};_0x2b3732(++_0x45bf8a);}(a625_0x45bf,0x119));const a625_0x2b37=function(_0x52437a,_0x45bf8a){_0x52437a=_0x52437a-0x0;let _0x2b3732=a625_0x45bf[_0x52437a];return _0x2b3732;};const _0x5bd409=a625_0x2b37;'use strict';const Sequelize=require(_0x5bd409('0x1'));module[_0x5bd409('0x0')]={'name':{'type':Sequelize[_0x5bd409('0x2')],'allowNull':![],'unique':'name'},'description':{'type':Sequelize[_0x5bd409('0x2')]}}; \ No newline at end of file diff --git a/server/api/team/team.controller.js b/server/api/team/team.controller.js index f225471..0ef2dc8 100644 --- a/server/api/team/team.controller.js +++ b/server/api/team/team.controller.js @@ -1 +1 @@ -const a626_0x58a2=['end','chat','query','sendStatus','capitalize','UserProfileResource','sequelize','filter','sort','../../config/utils','fieldName','findAll','keys','nolimit','sms','offset','Team','addQueues','Chat','limit','Fax','length','isNil','Whatsapp','then','findOne','whatsapp','rawAttributes','register','key','body','removeQueues','attributes','get','Openchannel','like','mail','fields','options','count','show','voice','emit','channel','map','includeAll','each','send','params','Unable\x20to\x20retrieve\x20the\x20current\x20user','filters','Mail','UserProfileSection','destroy','userTeam:remove','create','Queue','name','Teams','where','Voice','isValidChannel','voicePause','merge','undefined','intersection','omit','getQueues','catch','update','addAgents','remove','userTeam:save','UserVoiceQueueRt','userProfileId','include','lodash','Content-Range','ids','autoAssociation','online','model','user','../../components/parsers/qs','order','error','getAgents','util','User','Unknown\x20channel','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','../../rediscache','rows','Queues','interface','toLowerCase','json','isArray','format','status','pick','upsert','stack','../../mysqldb','removeAgents'];(function(_0x10a0df,_0x58a20f){const _0x5cc750=function(_0x5eddb4){while(--_0x5eddb4){_0x10a0df['push'](_0x10a0df['shift']());}};_0x5cc750(++_0x58a20f);}(a626_0x58a2,0x1f0));const a626_0x5cc7=function(_0x10a0df,_0x58a20f){_0x10a0df=_0x10a0df-0x0;let _0x5cc750=a626_0x58a2[_0x10a0df];return _0x5cc750;};const _0x33f346=a626_0x5cc7;'use strict';const util=require(_0x33f346('0xb')),_=require(_0x33f346('0x0')),qs=require(_0x33f346('0x7')),logger=require('../../config/logger')('api'),utils=require(_0x33f346('0x26')),{getSocket}=require(_0x33f346('0xf')),socket=getSocket(),db=require(_0x33f346('0x1b'))['db'],{Op,ValidationError}=require(_0x33f346('0x23'));require('./team.socket')[_0x33f346('0x39')](socket);function respondWithStatusCode(_0x5eddb4,_0x3edcde){return _0x3edcde=_0x3edcde||0xcc,function(_0x2a7d37){const _0x4c258b=a626_0x5cc7;if(_0x2a7d37)return _0x5eddb4[_0x4c258b('0x20')](_0x3edcde);return _0x5eddb4[_0x4c258b('0x17')](_0x3edcde)[_0x4c258b('0x1d')]();};}function respondWithResult(_0x27bda4,_0xd85aa0){return _0xd85aa0=_0xd85aa0||0xc8,function(_0x500f7b){const _0x9b26d9=a626_0x5cc7;if(_0x500f7b)return _0x27bda4[_0x9b26d9('0x17')](_0xd85aa0)[_0x9b26d9('0x14')](_0x500f7b);};}function respondWithFilteredResult(_0x26bdb7,_0x42f0dc){return function(_0x500c8b){const _0x1daa84=a626_0x5cc7;if(_0x500c8b){const _0x3432b0=_0x500c8b[_0x1daa84('0x44')],_0x559576=_0x42f0dc[_0x1daa84('0x2c')];let _0x48bde8=_0x42f0dc[_0x1daa84('0x2c')]+_0x42f0dc[_0x1daa84('0x30')],_0x27cfe8;return _0x48bde8>=_0x3432b0?(_0x48bde8=_0x3432b0,_0x27cfe8=0xc8):_0x27cfe8=0xce,_0x26bdb7[_0x1daa84('0x17')](_0x27cfe8),_0x26bdb7['set'](_0x1daa84('0x1'),_0x559576+'-'+_0x48bde8+'/'+_0x3432b0)[_0x1daa84('0x14')](_0x500c8b);}return null;};}function saveUpdates(_0xb1f41c){return function(_0x4f04bc){const _0x41b5c2=a626_0x5cc7;if(_0x4f04bc)return _0x4f04bc[_0x41b5c2('0x62')](_0xb1f41c)[_0x41b5c2('0x35')](function(_0x5c26bc){return _0x5c26bc;});return null;};}function removeEntity(_0x3c280f){return function(_0x499c0f){const _0x166b54=a626_0x5cc7;if(_0x499c0f)return _0x499c0f[_0x166b54('0x52')]()[_0x166b54('0x35')](function(){const _0x13f2a3=_0x166b54,_0x3a7529=_0x499c0f[_0x13f2a3('0x3e')]({'plain':!![]}),_0x1ec76e=_0x13f2a3('0x57');return db[_0x13f2a3('0x22')]['destroy']({'where':{'type':_0x1ec76e,'resourceId':_0x3a7529['id']}})[_0x13f2a3('0x35')](function(){return _0x499c0f;});})[_0x166b54('0x35')](function(){const _0x42e2f7=_0x166b54;_0x3c280f[_0x42e2f7('0x17')](0xcc)[_0x42e2f7('0x1d')]();});};}function handleEntityNotFound(_0xb6c978){return function(_0x3db4b3){const _0x1dca29=a626_0x5cc7;return!_0x3db4b3&&_0xb6c978[_0x1dca29('0x20')](0x194),_0x3db4b3;};}function handleError(_0x4d7baa,_0x56d538){return _0x56d538=_0x56d538||0x1f4,function(_0x12f3ff){const _0x188675=a626_0x5cc7;logger[_0x188675('0x9')](_0x12f3ff[_0x188675('0x1a')]),_0x12f3ff[_0x188675('0x56')]&&delete _0x12f3ff[_0x188675('0x56')],_0x4d7baa['status'](_0x56d538)[_0x188675('0x4c')](_0x12f3ff);};}exports['index']=function(_0x5b7235,_0x47533a){const _0x9593a3=_0x33f346;let _0x4ba10a={};const _0x29f225={},_0x240c06={'count':0x0,'rows':[]},_0x9ffd06=_[_0x9593a3('0x49')](db['Team']['rawAttributes'],function(_0x93da3b){const _0xf1197d=_0x9593a3;return{'name':_0x93da3b[_0xf1197d('0x27')],'type':_0x93da3b['type'][_0xf1197d('0x3a')]};});_0x29f225[_0x9593a3('0x5')]=_[_0x9593a3('0x49')](_0x9ffd06,_0x9593a3('0x56')),_0x29f225['query']=_[_0x9593a3('0x29')](_0x5b7235[_0x9593a3('0x1f')]),_0x29f225['filters']=_['intersection'](_0x29f225[_0x9593a3('0x5')],_0x29f225[_0x9593a3('0x1f')]),_0x4ba10a[_0x9593a3('0x3d')]=_[_0x9593a3('0x5e')](_0x29f225[_0x9593a3('0x5')],qs[_0x9593a3('0x42')](_0x5b7235[_0x9593a3('0x1f')][_0x9593a3('0x42')])),_0x4ba10a[_0x9593a3('0x3d')]=_0x4ba10a[_0x9593a3('0x3d')][_0x9593a3('0x32')]?_0x4ba10a[_0x9593a3('0x3d')]:_0x29f225['model'];typeof _0x5b7235[_0x9593a3('0x1f')][_0x9593a3('0x2a')]===_0x9593a3('0x5d')&&(_0x4ba10a['limit']=qs[_0x9593a3('0x30')](_0x5b7235[_0x9593a3('0x1f')][_0x9593a3('0x30')]),_0x4ba10a[_0x9593a3('0x2c')]=qs[_0x9593a3('0x2c')](_0x5b7235[_0x9593a3('0x1f')][_0x9593a3('0x2c')]));_0x4ba10a[_0x9593a3('0x8')]=qs[_0x9593a3('0x25')](_0x5b7235[_0x9593a3('0x1f')][_0x9593a3('0x25')]),_0x4ba10a['where']=qs[_0x9593a3('0x4f')](_[_0x9593a3('0x18')](_0x5b7235[_0x9593a3('0x1f')],_0x29f225['filters']),_0x9ffd06);_0x5b7235[_0x9593a3('0x1f')][_0x9593a3('0x24')]&&(_0x4ba10a['where']=_[_0x9593a3('0x5c')](_0x4ba10a[_0x9593a3('0x58')],{[Op['or']]:_['map'](_0x9ffd06,function(_0x5528b3){const _0x519b31=_0x9593a3;if(_0x5528b3['type']!=='VIRTUAL'){const _0x5e2694={};return _0x5e2694[_0x5528b3[_0x519b31('0x56')]]={[Op[_0x519b31('0x40')]]:'%'+_0x5b7235[_0x519b31('0x1f')][_0x519b31('0x24')]+'%'},_0x5e2694;}})}));_0x4ba10a=_[_0x9593a3('0x5c')]({},_0x4ba10a,_0x5b7235[_0x9593a3('0x43')]);const _0x3c3961={'where':_0x4ba10a[_0x9593a3('0x58')]};return db[_0x9593a3('0x2d')][_0x9593a3('0x44')](_0x3c3961)['then'](function(_0x5cd985){const _0x532401=_0x9593a3;return _0x240c06[_0x532401('0x44')]=_0x5cd985,_0x5b7235[_0x532401('0x1f')][_0x532401('0x4a')]&&(_0x4ba10a[_0x532401('0x68')]=[{'all':!![]}]),db[_0x532401('0x2d')][_0x532401('0x28')](_0x4ba10a);})[_0x9593a3('0x35')](function(_0x4e2092){const _0x1dc4c8=_0x9593a3;return _0x240c06[_0x1dc4c8('0x10')]=_0x4e2092,_0x240c06;})[_0x9593a3('0x35')](respondWithFilteredResult(_0x47533a,_0x4ba10a))[_0x9593a3('0x61')](handleError(_0x47533a,null));},exports[_0x33f346('0x45')]=function(_0x4fe45f,_0x47f57b){const _0x16907f=_0x33f346;let _0x1adbc8={'raw':![],'where':{'id':_0x4fe45f[_0x16907f('0x4d')]['id']}};const _0x590504={};return _0x590504[_0x16907f('0x5')]=_['keys'](db[_0x16907f('0x2d')][_0x16907f('0x38')]),_0x590504[_0x16907f('0x1f')]=_['keys'](_0x4fe45f[_0x16907f('0x1f')]),_0x590504[_0x16907f('0x4f')]=_[_0x16907f('0x5e')](_0x590504[_0x16907f('0x5')],_0x590504[_0x16907f('0x1f')]),_0x1adbc8[_0x16907f('0x3d')]=_[_0x16907f('0x5e')](_0x590504[_0x16907f('0x5')],qs['fields'](_0x4fe45f[_0x16907f('0x1f')][_0x16907f('0x42')])),_0x1adbc8['attributes']=_0x1adbc8[_0x16907f('0x3d')][_0x16907f('0x32')]?_0x1adbc8[_0x16907f('0x3d')]:_0x590504[_0x16907f('0x5')],_0x4fe45f[_0x16907f('0x1f')][_0x16907f('0x4a')]&&(_0x1adbc8[_0x16907f('0x68')]=[{'all':!![]}]),_0x1adbc8=_[_0x16907f('0x5c')]({},_0x1adbc8,_0x4fe45f[_0x16907f('0x43')]),db['Team'][_0x16907f('0x36')](_0x1adbc8)[_0x16907f('0x35')](handleEntityNotFound(_0x47f57b,null))[_0x16907f('0x35')](respondWithResult(_0x47f57b,null))[_0x16907f('0x61')](handleError(_0x47f57b,null));},exports['create']=function(_0x363ea3,_0x4f884d){const _0x5952f5=_0x33f346;return db[_0x5952f5('0x2d')][_0x5952f5('0x54')](_0x363ea3['body'],{})[_0x5952f5('0x35')](function(_0x35ab85){const _0x49b2b1=_0x5952f5,_0x4848e9=_0x363ea3[_0x49b2b1('0x6')]['get']({'plain':!![]});if(!_0x4848e9)throw new Error(_0x49b2b1('0x4e'));if(_0x4848e9['role']===_0x49b2b1('0x6')){const _0x1bd8fe=_0x35ab85[_0x49b2b1('0x3e')]({'plain':!![]}),_0x3d3fe5=_0x49b2b1('0x57');return db[_0x49b2b1('0x51')][_0x49b2b1('0x36')]({'where':{'name':_0x3d3fe5,'userProfileId':_0x4848e9[_0x49b2b1('0x67')]},'raw':!![]})[_0x49b2b1('0x35')](function(_0x320ec0){const _0x16451d=_0x49b2b1;return _0x320ec0&&_0x320ec0[_0x16451d('0x3')]===0x0?db['UserProfileResource'][_0x16451d('0x54')]({'name':_0x1bd8fe[_0x16451d('0x56')],'resourceId':_0x1bd8fe['id'],'type':_0x320ec0['name'],'sectionId':_0x320ec0['id']},{})[_0x16451d('0x35')](function(){return _0x35ab85;}):_0x35ab85;})[_0x49b2b1('0x61')](function(_0x25c61f){const _0x2e3ba8=_0x49b2b1;logger['error'](_0x2e3ba8('0xe'),_0x25c61f);throw _0x25c61f;});}return _0x35ab85;})[_0x5952f5('0x35')](respondWithResult(_0x4f884d,0xc9))[_0x5952f5('0x61')](handleError(_0x4f884d,null));},exports[_0x33f346('0x62')]=function(_0x3eadef,_0x528777){const _0x249555=_0x33f346;return _0x3eadef['body']['id']&&delete _0x3eadef['body']['id'],db[_0x249555('0x2d')][_0x249555('0x36')]({'where':{'id':_0x3eadef['params']['id']}})[_0x249555('0x35')](handleEntityNotFound(_0x528777,null))[_0x249555('0x35')](saveUpdates(_0x3eadef[_0x249555('0x3b')],null))['then'](respondWithResult(_0x528777,null))[_0x249555('0x61')](handleError(_0x528777,null));},exports[_0x33f346('0x52')]=function(_0x1ed500,_0x46ffed){const _0x4ca5d9=_0x33f346;return db[_0x4ca5d9('0x2d')][_0x4ca5d9('0x36')]({'where':{'id':_0x1ed500[_0x4ca5d9('0x4d')]['id']}})[_0x4ca5d9('0x35')](handleEntityNotFound(_0x46ffed,null))[_0x4ca5d9('0x35')](removeEntity(_0x46ffed,null))[_0x4ca5d9('0x61')](handleError(_0x46ffed,null));},exports[_0x33f346('0x60')]=function(_0x2ed981,_0x140046){const _0x33e773=_0x33f346;return db[_0x33e773('0x2d')][_0x33e773('0x36')]({'where':{'id':_0x2ed981[_0x33e773('0x4d')]['id']}})[_0x33e773('0x35')](handleEntityNotFound(_0x140046,null))['then'](function(_0xa8356e){const _0x283c77=_0x33e773;if(!_0x2ed981['query']['channel']||!utils[_0x283c77('0x5a')](_0x2ed981[_0x283c77('0x1f')][_0x283c77('0x48')]))throw new ValidationError(_0x283c77('0xd'));let _0x3a4596={};const _0x42e19d={};return _0x42e19d[_0x283c77('0x5')]=_[_0x283c77('0x29')](db[_[_0x283c77('0x21')](_0x2ed981['query'][_0x283c77('0x48')][_0x283c77('0x13')]())+_0x283c77('0x55')][_0x283c77('0x38')]),_0x42e19d[_0x283c77('0x1f')]=_[_0x283c77('0x29')](_0x2ed981['query']),_0x42e19d[_0x283c77('0x4f')]=_[_0x283c77('0x5e')](_0x42e19d[_0x283c77('0x5')],_0x42e19d[_0x283c77('0x1f')]),_0x3a4596[_0x283c77('0x3d')]=_[_0x283c77('0x5e')](_0x42e19d[_0x283c77('0x5')],qs[_0x283c77('0x42')](_0x2ed981['query'][_0x283c77('0x42')])),_0x3a4596['attributes']=_0x3a4596['attributes'][_0x283c77('0x32')]?_0x3a4596[_0x283c77('0x3d')]:_0x42e19d[_0x283c77('0x5')],_0x3a4596[_0x283c77('0x30')]=qs[_0x283c77('0x30')](_0x2ed981[_0x283c77('0x1f')][_0x283c77('0x30')]),_0x3a4596['offset']=qs['offset'](_0x2ed981[_0x283c77('0x1f')][_0x283c77('0x2c')]),_0x3a4596[_0x283c77('0x8')]=qs[_0x283c77('0x25')](_0x2ed981[_0x283c77('0x1f')][_0x283c77('0x25')]),_0x3a4596[_0x283c77('0x58')]=qs[_0x283c77('0x4f')](_[_0x283c77('0x18')](_0x2ed981['query'],_0x42e19d['filters'])),_0x3a4596=_[_0x283c77('0x5c')]({},_0x3a4596,_0x2ed981[_0x283c77('0x43')]),_0xa8356e['get'+_['capitalize'](_0x2ed981['query'][_0x283c77('0x48')][_0x283c77('0x13')]())+_0x283c77('0x11')](_0x3a4596);})[_0x33e773('0x35')](respondWithResult(_0x140046,null))[_0x33e773('0x61')](handleError(_0x140046,null));},exports[_0x33f346('0x2e')]=function(_0x159169,_0x355af0){const _0x306b97=_0x33f346;return db[_0x306b97('0x2d')][_0x306b97('0x36')]({'where':{'id':_0x159169[_0x306b97('0x4d')]['id']}})[_0x306b97('0x35')](function(_0x134ffd){const _0x110cb9=_0x306b97;if(_0x134ffd){if(!_0x159169['body'][_0x110cb9('0x48')]||!utils[_0x110cb9('0x5a')](_0x159169[_0x110cb9('0x3b')][_0x110cb9('0x48')]))throw new ValidationError(_0x110cb9('0xd'));return _0x134ffd['add'+_['capitalize'](_0x159169['body'][_0x110cb9('0x48')][_0x110cb9('0x13')]())+_0x110cb9('0x11')](_0x159169['body']['ids']);}return null;})[_0x306b97('0x35')](handleEntityNotFound(_0x355af0,null))[_0x306b97('0x35')](respondWithStatusCode(_0x355af0,null))[_0x306b97('0x61')](handleError(_0x355af0,null));},exports[_0x33f346('0x3c')]=function(_0x3ea2e2,_0xf0ef73){const _0x223958=_0x33f346;return db['Team'][_0x223958('0x36')]({'where':{'id':_0x3ea2e2[_0x223958('0x4d')]['id']}})[_0x223958('0x35')](function(_0x126a71){const _0x3f0050=_0x223958;if(_0x126a71){if(!_0x3ea2e2[_0x3f0050('0x1f')][_0x3f0050('0x48')]||!utils[_0x3f0050('0x5a')](_0x3ea2e2[_0x3f0050('0x1f')][_0x3f0050('0x48')]))throw new ValidationError(_0x3f0050('0xd'));return _0x126a71[_0x3f0050('0x64')+_['capitalize'](_0x3ea2e2[_0x3f0050('0x1f')][_0x3f0050('0x48')][_0x3f0050('0x13')]())+_0x3f0050('0x11')](_0x3ea2e2[_0x3f0050('0x1f')][_0x3f0050('0x2')]);}return null;})[_0x223958('0x35')](handleEntityNotFound(_0xf0ef73,null))[_0x223958('0x35')](respondWithStatusCode(_0xf0ef73,null))[_0x223958('0x61')](handleError(_0xf0ef73,null));},exports[_0x33f346('0x63')]=function(_0x8a1da5,_0x1f60e0){const _0x42210c=_0x33f346;return db[_0x42210c('0x2d')][_0x42210c('0x36')]({'where':{'id':_0x8a1da5[_0x42210c('0x4d')]['id']}})[_0x42210c('0x35')](function(_0x15ea91){const _0x2ef82d=_0x42210c;if(_0x15ea91){const _0x4f231f=[_0x2ef82d('0x59'),_0x2ef82d('0x2f'),_0x2ef82d('0x50'),'Sms',_0x2ef82d('0x31'),_0x2ef82d('0x3f'),_0x2ef82d('0x34')];return Promise[_0x2ef82d('0x4b')](_0x4f231f,function(_0x9737d5){const _0x548467=_0x2ef82d;return _0x15ea91[_0x548467('0x3e')+_0x9737d5+_0x548467('0x11')]({'attributes':['id',_0x548467('0x56')]})[_0x548467('0x35')](function(_0x3ab37a){const _0x4a9040=_0x548467;return Promise[_0x4a9040('0x4b')](_0x3ab37a,function(_0x3562f3){const _0x53f526=_0x4a9040;return _0x3562f3['addAgents'](_0x8a1da5['body']['ids'])[_0x53f526('0x35')](function(){const _0x38a0e3=_0x53f526;if(_0x9737d5===_0x38a0e3('0x59'))return db[_0x38a0e3('0xc')][_0x38a0e3('0x28')]({'where':{'id':_0x8a1da5[_0x38a0e3('0x3b')][_0x38a0e3('0x2')]},'attributes':['id',_0x38a0e3('0x56'),_0x38a0e3('0x4'),_0x38a0e3('0x5b'),_0x38a0e3('0x12')],'raw':!![]})[_0x38a0e3('0x35')](function(_0x5e0310){const _0x32cfc2=_0x38a0e3;return Promise[_0x32cfc2('0x4b')](_[_0x32cfc2('0x24')](_0x5e0310,{'online':0x1}),function(_0x1b8e78){const _0x521097=_0x32cfc2;return db[_0x521097('0x66')][_0x521097('0x19')]({'membername':_0x1b8e78[_0x521097('0x56')],'UserId':_0x1b8e78['id'],'queue_name':_0x3562f3[_0x521097('0x56')],'VoiceQueueId':_0x3562f3['id'],'interface':_[_0x521097('0x33')](_0x1b8e78['interface'])?util[_0x521097('0x16')]('SIP/%s',_0x1b8e78[_0x521097('0x56')]):_0x1b8e78['interface'],'paused':_0x1b8e78['voicePause']||![],'penalty':0x0});});});});});})['then'](function(){return _0x15ea91;});})['then'](function(){return _0x15ea91;});}})[_0x42210c('0x35')](function(_0x118566){const _0x3fec16=_0x42210c;if(_0x118566)return _0x118566['addAgents'](_0x8a1da5[_0x3fec16('0x3b')][_0x3fec16('0x2')],{'through':_[_0x3fec16('0x5f')](_0x8a1da5[_0x3fec16('0x3b')],[_0x3fec16('0x2'),'id'])})[_0x3fec16('0x35')](function(_0x3c2630){const _0x83f28f=_0x3fec16;for(let _0x482ffa=0x0;_0x482ffa<_0x8a1da5[_0x83f28f('0x3b')][_0x83f28f('0x2')]['length'];_0x482ffa+=0x1){socket['emit'](_0x83f28f('0x65'),{'UserId':_0x8a1da5[_0x83f28f('0x3b')]['ids'][_0x482ffa],'TeamId':_0x8a1da5[_0x83f28f('0x4d')]['id']});}return _0x3c2630;});})[_0x42210c('0x35')](respondWithResult(_0x1f60e0,null))[_0x42210c('0x61')](handleError(_0x1f60e0,null));},exports[_0x33f346('0x1c')]=function(_0xf7b236,_0x320fa5){const _0x3003d6=_0x33f346;return db[_0x3003d6('0x2d')][_0x3003d6('0x36')]({'where':{'id':_0xf7b236[_0x3003d6('0x4d')]['id']}})[_0x3003d6('0x35')](handleEntityNotFound(_0x320fa5,null))['then'](function(_0x27eed0){const _0x593711=_0x3003d6;if(_0x27eed0)return Promise['each']([_0x593711('0x46'),_0x593711('0x1e'),_0x593711('0x41'),_0x593711('0x2b'),'fax','openchannel',_0x593711('0x37')],function(_0x2a9661){const _0x36652d=_0x593711;return _0x27eed0[_0x36652d('0x3e')+_[_0x36652d('0x21')](_0x2a9661)+_0x36652d('0x11')]({'attributes':['id',_0x36652d('0x56')]})[_0x36652d('0x35')](function(_0x195237){const _0x1be94c=_0x36652d;return Promise[_0x1be94c('0x4b')](_0x195237,function(_0x21dfbd){const _0x1d2b3a=_0x1be94c;return _0x21dfbd['removeAgents'](_0xf7b236[_0x1d2b3a('0x1f')]['ids'])[_0x1d2b3a('0x35')](function(){const _0x4e6729=_0x1d2b3a;if(_0x2a9661===_0x4e6729('0x46'))return db['UserVoiceQueueRt'][_0x4e6729('0x52')]({'where':{'VoiceQueueId':_0x21dfbd['id'],'UserId':_0xf7b236[_0x4e6729('0x1f')][_0x4e6729('0x2')]}});});});})[_0x36652d('0x35')](function(){return _0x27eed0;});})[_0x593711('0x35')](function(){return _0x27eed0;});})[_0x3003d6('0x35')](function(_0x1b9ed7){const _0xa16b45=_0x3003d6;if(_0x1b9ed7)return _0x1b9ed7[_0xa16b45('0x1c')](_0xf7b236[_0xa16b45('0x1f')]['ids'])[_0xa16b45('0x35')](function(){const _0x4ba934=_0xa16b45;if(_[_0x4ba934('0x15')](_0xf7b236[_0x4ba934('0x1f')][_0x4ba934('0x2')]))for(let _0x503213=0x0;_0x503213<_0xf7b236['query'][_0x4ba934('0x2')][_0x4ba934('0x32')];_0x503213+=0x1){socket[_0x4ba934('0x47')]('userTeam:remove',{'UserId':Number(_0xf7b236[_0x4ba934('0x1f')][_0x4ba934('0x2')][_0x503213]),'TeamId':Number(_0xf7b236[_0x4ba934('0x4d')]['id'])});}else socket['emit'](_0x4ba934('0x53'),{'UserId':Number(_0xf7b236[_0x4ba934('0x1f')][_0x4ba934('0x2')]),'TeamId':Number(_0xf7b236[_0x4ba934('0x4d')]['id'])});});})[_0x3003d6('0x35')](respondWithStatusCode(_0x320fa5,null))[_0x3003d6('0x61')](handleError(_0x320fa5,null));},exports[_0x33f346('0xa')]=function(_0x1a12ab,_0x53cc9d){const _0x2ab3e3=_0x33f346;let _0x775ed6={};const _0x42c2f2={};let _0x34ddc9,_0x38607f;return db['Team'][_0x2ab3e3('0x36')]({'where':{'id':_0x1a12ab[_0x2ab3e3('0x4d')]['id']}})[_0x2ab3e3('0x35')](handleEntityNotFound(_0x53cc9d,null))[_0x2ab3e3('0x35')](function(_0x2f6029){const _0x3534c0=_0x2ab3e3;if(_0x2f6029)return _0x34ddc9=_0x2f6029,_0x42c2f2[_0x3534c0('0x5')]=_[_0x3534c0('0x29')](db[_0x3534c0('0xc')][_0x3534c0('0x38')]),_0x42c2f2['query']=_['keys'](_0x1a12ab[_0x3534c0('0x1f')]),_0x42c2f2[_0x3534c0('0x4f')]=_[_0x3534c0('0x5e')](_0x42c2f2[_0x3534c0('0x5')],_0x42c2f2[_0x3534c0('0x1f')]),_0x775ed6[_0x3534c0('0x3d')]=_[_0x3534c0('0x5e')](_0x42c2f2[_0x3534c0('0x5')],qs['fields'](_0x1a12ab[_0x3534c0('0x1f')][_0x3534c0('0x42')])),_0x775ed6['attributes']=_0x775ed6['attributes'][_0x3534c0('0x32')]?_0x775ed6[_0x3534c0('0x3d')]:_0x42c2f2[_0x3534c0('0x5')],_0x775ed6[_0x3534c0('0x8')]=qs[_0x3534c0('0x25')](_0x1a12ab['query'][_0x3534c0('0x25')]),_0x775ed6['where']=qs[_0x3534c0('0x4f')](_[_0x3534c0('0x18')](_0x1a12ab['query'],_0x42c2f2['filters'])),_0x1a12ab[_0x3534c0('0x1f')][_0x3534c0('0x24')]&&(_0x775ed6[_0x3534c0('0x58')]=_[_0x3534c0('0x5c')](_0x775ed6[_0x3534c0('0x58')],{[Op['or']]:_[_0x3534c0('0x49')](_0x775ed6['attributes'],function(_0x3657b1){const _0x2e9004=_0x3534c0,_0x5eaa59={};return _0x5eaa59[_0x3657b1]={[Op[_0x2e9004('0x40')]]:'%'+_0x1a12ab[_0x2e9004('0x1f')][_0x2e9004('0x24')]+'%'},_0x5eaa59;})})),_0x775ed6=_[_0x3534c0('0x5c')]({},_0x775ed6,_0x1a12ab[_0x3534c0('0x43')]),_0x34ddc9[_0x3534c0('0xa')](_0x775ed6);})['then'](function(_0x2da0bc){const _0x1878e3=_0x2ab3e3;if(_0x2da0bc)return _0x38607f=_0x2da0bc['length'],typeof _0x1a12ab[_0x1878e3('0x1f')][_0x1878e3('0x2a')]===_0x1878e3('0x5d')&&(_0x775ed6['limit']=qs[_0x1878e3('0x30')](_0x1a12ab['query'][_0x1878e3('0x30')]),_0x775ed6['offset']=qs['offset'](_0x1a12ab[_0x1878e3('0x1f')]['offset'])),_0x34ddc9['getAgents'](_0x775ed6);})['then'](function(_0x2b9c5e){if(_0x2b9c5e)return _0x2b9c5e?{'count':_0x38607f,'rows':_0x2b9c5e}:null;})[_0x2ab3e3('0x35')](respondWithResult(_0x53cc9d,null))[_0x2ab3e3('0x61')](handleError(_0x53cc9d,null));}; \ No newline at end of file +const a626_0x43ba=['Voice','capitalize','remove','sendStatus','fieldName','Team','model','../../mysqldb','rows','attributes','UserVoiceQueueRt','interface','sort','api','upsert','addQueues','removeQueues','voicePause','userTeam:save','lodash','VIRTUAL','end','options','destroy','Sms','ids','User','limit','params','online','sms','Fax','filter','../../components/parsers/qs','create','map','toLowerCase','send','addAgents','../../rediscache','Whatsapp','voice','body','mail','role','set','order','channel','get','length','fields','merge','offset','emit','then','./team.socket','Mail','format','Unknown\x20channel','Unable\x20to\x20retrieve\x20the\x20current\x20user','includeAll','findAll','catch','include','keys','../../config/logger','pick','type','error','intersection','Queues','removeAgents','show','../../config/utils','Queue','index','isArray','Openchannel','isNil','update','json','status','add','Teams','query','each','UserProfileResource','getAgents','undefined','name','userTeam:remove','where','count','filters','user','findOne','rawAttributes','Chat','nolimit','chat'];(function(_0x514a44,_0x43ba6c){const _0x13b06e=function(_0x4c5b34){while(--_0x4c5b34){_0x514a44['push'](_0x514a44['shift']());}};_0x13b06e(++_0x43ba6c);}(a626_0x43ba,0xe6));const a626_0x13b0=function(_0x514a44,_0x43ba6c){_0x514a44=_0x514a44-0x0;let _0x13b06e=a626_0x43ba[_0x514a44];return _0x13b06e;};const _0x272286=a626_0x13b0;'use strict';const util=require('util'),_=require(_0x272286('0x59')),qs=require(_0x272286('0x3')),logger=require(_0x272286('0x23'))(_0x272286('0x53')),utils=require(_0x272286('0x2b')),{getSocket}=require(_0x272286('0x9')),socket=getSocket(),db=require(_0x272286('0x4d'))['db'],{Op,ValidationError}=require('sequelize');require(_0x272286('0x19'))['register'](socket);function respondWithStatusCode(_0x4c5b34,_0x52631b){return _0x52631b=_0x52631b||0xcc,function(_0x1cfbee){const _0x35e7ce=a626_0x13b0;if(_0x1cfbee)return _0x4c5b34['sendStatus'](_0x52631b);return _0x4c5b34[_0x35e7ce('0x33')](_0x52631b)[_0x35e7ce('0x5b')]();};}function respondWithResult(_0x46b088,_0x23f33d){return _0x23f33d=_0x23f33d||0xc8,function(_0x444935){const _0x5d95e6=a626_0x13b0;if(_0x444935)return _0x46b088[_0x5d95e6('0x33')](_0x23f33d)[_0x5d95e6('0x32')](_0x444935);};}function respondWithFilteredResult(_0x4c7386,_0x4c30a0){return function(_0x2e8ba9){const _0x491e67=a626_0x13b0;if(_0x2e8ba9){const _0x13ed0f=_0x2e8ba9['count'],_0x2899c8=_0x4c30a0[_0x491e67('0x16')];let _0x635ceb=_0x4c30a0[_0x491e67('0x16')]+_0x4c30a0[_0x491e67('0x61')],_0x367c20;return _0x635ceb>=_0x13ed0f?(_0x635ceb=_0x13ed0f,_0x367c20=0xc8):_0x367c20=0xce,_0x4c7386[_0x491e67('0x33')](_0x367c20),_0x4c7386[_0x491e67('0xf')]('Content-Range',_0x2899c8+'-'+_0x635ceb+'/'+_0x13ed0f)['json'](_0x2e8ba9);}return null;};}function saveUpdates(_0x1eb985){return function(_0x3c6151){const _0x46b538=a626_0x13b0;if(_0x3c6151)return _0x3c6151['update'](_0x1eb985)[_0x46b538('0x18')](function(_0x214f5b){return _0x214f5b;});return null;};}function removeEntity(_0x1ad95a){return function(_0x54bec9){const _0x228a79=a626_0x13b0;if(_0x54bec9)return _0x54bec9['destroy']()['then'](function(){const _0x2226cc=a626_0x13b0,_0x3b53fa=_0x54bec9[_0x2226cc('0x12')]({'plain':!![]}),_0x2231ba=_0x2226cc('0x35');return db[_0x2226cc('0x38')][_0x2226cc('0x5d')]({'where':{'type':_0x2231ba,'resourceId':_0x3b53fa['id']}})[_0x2226cc('0x18')](function(){return _0x54bec9;});})[_0x228a79('0x18')](function(){const _0x567211=_0x228a79;_0x1ad95a['status'](0xcc)[_0x567211('0x5b')]();});};}function handleEntityNotFound(_0x239842){return function(_0x22c2ff){const _0x4295bf=a626_0x13b0;return!_0x22c2ff&&_0x239842[_0x4295bf('0x49')](0x194),_0x22c2ff;};}function handleError(_0x4f61e7,_0x55cfed){return _0x55cfed=_0x55cfed||0x1f4,function(_0x5e64c2){const _0x168e9f=a626_0x13b0;logger[_0x168e9f('0x26')](_0x5e64c2['stack']),_0x5e64c2[_0x168e9f('0x3b')]&&delete _0x5e64c2[_0x168e9f('0x3b')],_0x4f61e7[_0x168e9f('0x33')](_0x55cfed)[_0x168e9f('0x7')](_0x5e64c2);};}exports[_0x272286('0x2d')]=function(_0x435cf4,_0x13d93a){const _0x254741=_0x272286;let _0x3f0439={};const _0x30156d={},_0x44efea={'count':0x0,'rows':[]},_0x58db1e=_[_0x254741('0x5')](db[_0x254741('0x4b')][_0x254741('0x42')],function(_0x3a73e9){const _0x39d53c=_0x254741;return{'name':_0x3a73e9[_0x39d53c('0x4a')],'type':_0x3a73e9[_0x39d53c('0x25')]['key']};});_0x30156d[_0x254741('0x4c')]=_[_0x254741('0x5')](_0x58db1e,_0x254741('0x3b')),_0x30156d[_0x254741('0x36')]=_['keys'](_0x435cf4['query']),_0x30156d[_0x254741('0x3f')]=_['intersection'](_0x30156d[_0x254741('0x4c')],_0x30156d['query']),_0x3f0439[_0x254741('0x4f')]=_[_0x254741('0x27')](_0x30156d[_0x254741('0x4c')],qs[_0x254741('0x14')](_0x435cf4['query'][_0x254741('0x14')])),_0x3f0439['attributes']=_0x3f0439[_0x254741('0x4f')]['length']?_0x3f0439['attributes']:_0x30156d['model'];typeof _0x435cf4[_0x254741('0x36')]['nolimit']==='undefined'&&(_0x3f0439[_0x254741('0x61')]=qs[_0x254741('0x61')](_0x435cf4[_0x254741('0x36')][_0x254741('0x61')]),_0x3f0439[_0x254741('0x16')]=qs[_0x254741('0x16')](_0x435cf4[_0x254741('0x36')][_0x254741('0x16')]));_0x3f0439[_0x254741('0x10')]=qs[_0x254741('0x52')](_0x435cf4[_0x254741('0x36')][_0x254741('0x52')]),_0x3f0439[_0x254741('0x3d')]=qs[_0x254741('0x3f')](_['pick'](_0x435cf4[_0x254741('0x36')],_0x30156d[_0x254741('0x3f')]),_0x58db1e);_0x435cf4[_0x254741('0x36')][_0x254741('0x2')]&&(_0x3f0439['where']=_[_0x254741('0x15')](_0x3f0439[_0x254741('0x3d')],{[Op['or']]:_[_0x254741('0x5')](_0x58db1e,function(_0x8a6550){const _0x1350e8=_0x254741;if(_0x8a6550[_0x1350e8('0x25')]!==_0x1350e8('0x5a')){const _0x2d99e6={};return _0x2d99e6[_0x8a6550['name']]={[Op['like']]:'%'+_0x435cf4[_0x1350e8('0x36')][_0x1350e8('0x2')]+'%'},_0x2d99e6;}})}));_0x3f0439=_['merge']({},_0x3f0439,_0x435cf4[_0x254741('0x5c')]);const _0x157515={'where':_0x3f0439[_0x254741('0x3d')]};return db[_0x254741('0x4b')][_0x254741('0x3e')](_0x157515)[_0x254741('0x18')](function(_0x5dad05){const _0x425534=_0x254741;return _0x44efea[_0x425534('0x3e')]=_0x5dad05,_0x435cf4[_0x425534('0x36')]['includeAll']&&(_0x3f0439[_0x425534('0x21')]=[{'all':!![]}]),db['Team'][_0x425534('0x1f')](_0x3f0439);})[_0x254741('0x18')](function(_0x445be8){const _0x427d95=_0x254741;return _0x44efea[_0x427d95('0x4e')]=_0x445be8,_0x44efea;})[_0x254741('0x18')](respondWithFilteredResult(_0x13d93a,_0x3f0439))[_0x254741('0x20')](handleError(_0x13d93a,null));},exports[_0x272286('0x2a')]=function(_0x404d3f,_0x46bb34){const _0x1e3e39=_0x272286;let _0x3d2ce8={'raw':![],'where':{'id':_0x404d3f[_0x1e3e39('0x62')]['id']}};const _0x5db454={};return _0x5db454[_0x1e3e39('0x4c')]=_['keys'](db['Team']['rawAttributes']),_0x5db454[_0x1e3e39('0x36')]=_[_0x1e3e39('0x22')](_0x404d3f['query']),_0x5db454['filters']=_[_0x1e3e39('0x27')](_0x5db454['model'],_0x5db454['query']),_0x3d2ce8[_0x1e3e39('0x4f')]=_['intersection'](_0x5db454['model'],qs['fields'](_0x404d3f[_0x1e3e39('0x36')]['fields'])),_0x3d2ce8[_0x1e3e39('0x4f')]=_0x3d2ce8['attributes'][_0x1e3e39('0x13')]?_0x3d2ce8[_0x1e3e39('0x4f')]:_0x5db454[_0x1e3e39('0x4c')],_0x404d3f[_0x1e3e39('0x36')][_0x1e3e39('0x1e')]&&(_0x3d2ce8[_0x1e3e39('0x21')]=[{'all':!![]}]),_0x3d2ce8=_[_0x1e3e39('0x15')]({},_0x3d2ce8,_0x404d3f['options']),db[_0x1e3e39('0x4b')][_0x1e3e39('0x41')](_0x3d2ce8)['then'](handleEntityNotFound(_0x46bb34,null))['then'](respondWithResult(_0x46bb34,null))[_0x1e3e39('0x20')](handleError(_0x46bb34,null));},exports[_0x272286('0x4')]=function(_0x1c93f6,_0x3d558f){const _0x289572=_0x272286;return db[_0x289572('0x4b')][_0x289572('0x4')](_0x1c93f6[_0x289572('0xc')],{})[_0x289572('0x18')](function(_0x7c1d0a){const _0x3531f6=_0x289572,_0x3f0bc1=_0x1c93f6[_0x3531f6('0x40')][_0x3531f6('0x12')]({'plain':!![]});if(!_0x3f0bc1)throw new Error(_0x3531f6('0x1d'));if(_0x3f0bc1[_0x3531f6('0xe')]===_0x3531f6('0x40')){const _0x2b1515=_0x7c1d0a[_0x3531f6('0x12')]({'plain':!![]}),_0x1d3cea=_0x3531f6('0x35');return db['UserProfileSection'][_0x3531f6('0x41')]({'where':{'name':_0x1d3cea,'userProfileId':_0x3f0bc1['userProfileId']},'raw':!![]})[_0x3531f6('0x18')](function(_0x7cc7e0){const _0x25d9aa=_0x3531f6;return _0x7cc7e0&&_0x7cc7e0['autoAssociation']===0x0?db[_0x25d9aa('0x38')][_0x25d9aa('0x4')]({'name':_0x2b1515[_0x25d9aa('0x3b')],'resourceId':_0x2b1515['id'],'type':_0x7cc7e0['name'],'sectionId':_0x7cc7e0['id']},{})[_0x25d9aa('0x18')](function(){return _0x7c1d0a;}):_0x7c1d0a;})['catch'](function(_0x41b8e0){const _0x4ddc9f=_0x3531f6;logger[_0x4ddc9f('0x26')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x41b8e0);throw _0x41b8e0;});}return _0x7c1d0a;})['then'](respondWithResult(_0x3d558f,0xc9))[_0x289572('0x20')](handleError(_0x3d558f,null));},exports[_0x272286('0x31')]=function(_0x914e10,_0x10141){const _0x330c18=_0x272286;return _0x914e10[_0x330c18('0xc')]['id']&&delete _0x914e10[_0x330c18('0xc')]['id'],db['Team']['findOne']({'where':{'id':_0x914e10[_0x330c18('0x62')]['id']}})[_0x330c18('0x18')](handleEntityNotFound(_0x10141,null))[_0x330c18('0x18')](saveUpdates(_0x914e10['body'],null))[_0x330c18('0x18')](respondWithResult(_0x10141,null))[_0x330c18('0x20')](handleError(_0x10141,null));},exports[_0x272286('0x5d')]=function(_0x306176,_0x18e01d){const _0x3266f6=_0x272286;return db['Team'][_0x3266f6('0x41')]({'where':{'id':_0x306176['params']['id']}})[_0x3266f6('0x18')](handleEntityNotFound(_0x18e01d,null))[_0x3266f6('0x18')](removeEntity(_0x18e01d,null))[_0x3266f6('0x20')](handleError(_0x18e01d,null));},exports['getQueues']=function(_0x42ae41,_0x15a25f){const _0x2fed6b=_0x272286;return db[_0x2fed6b('0x4b')][_0x2fed6b('0x41')]({'where':{'id':_0x42ae41['params']['id']}})[_0x2fed6b('0x18')](handleEntityNotFound(_0x15a25f,null))[_0x2fed6b('0x18')](function(_0x2ce43a){const _0x581134=_0x2fed6b;if(!_0x42ae41[_0x581134('0x36')][_0x581134('0x11')]||!utils['isValidChannel'](_0x42ae41[_0x581134('0x36')][_0x581134('0x11')]))throw new ValidationError(_0x581134('0x1c'));let _0x40d265={};const _0x575b5e={};return _0x575b5e[_0x581134('0x4c')]=_[_0x581134('0x22')](db[_[_0x581134('0x47')](_0x42ae41[_0x581134('0x36')][_0x581134('0x11')][_0x581134('0x6')]())+_0x581134('0x2c')][_0x581134('0x42')]),_0x575b5e['query']=_[_0x581134('0x22')](_0x42ae41[_0x581134('0x36')]),_0x575b5e[_0x581134('0x3f')]=_['intersection'](_0x575b5e[_0x581134('0x4c')],_0x575b5e[_0x581134('0x36')]),_0x40d265[_0x581134('0x4f')]=_[_0x581134('0x27')](_0x575b5e['model'],qs[_0x581134('0x14')](_0x42ae41['query'][_0x581134('0x14')])),_0x40d265[_0x581134('0x4f')]=_0x40d265['attributes'][_0x581134('0x13')]?_0x40d265[_0x581134('0x4f')]:_0x575b5e['model'],_0x40d265[_0x581134('0x61')]=qs['limit'](_0x42ae41[_0x581134('0x36')][_0x581134('0x61')]),_0x40d265['offset']=qs[_0x581134('0x16')](_0x42ae41['query'][_0x581134('0x16')]),_0x40d265[_0x581134('0x10')]=qs[_0x581134('0x52')](_0x42ae41[_0x581134('0x36')][_0x581134('0x52')]),_0x40d265[_0x581134('0x3d')]=qs[_0x581134('0x3f')](_['pick'](_0x42ae41[_0x581134('0x36')],_0x575b5e['filters'])),_0x40d265=_['merge']({},_0x40d265,_0x42ae41['options']),_0x2ce43a['get'+_[_0x581134('0x47')](_0x42ae41[_0x581134('0x36')][_0x581134('0x11')]['toLowerCase']())+'Queues'](_0x40d265);})[_0x2fed6b('0x18')](respondWithResult(_0x15a25f,null))[_0x2fed6b('0x20')](handleError(_0x15a25f,null));},exports[_0x272286('0x55')]=function(_0xe6414d,_0x3d7549){const _0x51e6e0=_0x272286;return db[_0x51e6e0('0x4b')]['findOne']({'where':{'id':_0xe6414d[_0x51e6e0('0x62')]['id']}})[_0x51e6e0('0x18')](function(_0x983387){const _0x36276d=_0x51e6e0;if(_0x983387){if(!_0xe6414d['body']['channel']||!utils['isValidChannel'](_0xe6414d[_0x36276d('0xc')][_0x36276d('0x11')]))throw new ValidationError(_0x36276d('0x1c'));return _0x983387[_0x36276d('0x34')+_[_0x36276d('0x47')](_0xe6414d['body'][_0x36276d('0x11')][_0x36276d('0x6')]())+'Queues'](_0xe6414d[_0x36276d('0xc')]['ids']);}return null;})['then'](handleEntityNotFound(_0x3d7549,null))['then'](respondWithStatusCode(_0x3d7549,null))[_0x51e6e0('0x20')](handleError(_0x3d7549,null));},exports[_0x272286('0x56')]=function(_0x2da849,_0x59f698){const _0x85849a=_0x272286;return db[_0x85849a('0x4b')][_0x85849a('0x41')]({'where':{'id':_0x2da849['params']['id']}})['then'](function(_0xdeb9fa){const _0x243465=_0x85849a;if(_0xdeb9fa){if(!_0x2da849['query'][_0x243465('0x11')]||!utils['isValidChannel'](_0x2da849['query'][_0x243465('0x11')]))throw new ValidationError(_0x243465('0x1c'));return _0xdeb9fa[_0x243465('0x48')+_[_0x243465('0x47')](_0x2da849['query'][_0x243465('0x11')][_0x243465('0x6')]())+'Queues'](_0x2da849[_0x243465('0x36')][_0x243465('0x5f')]);}return null;})[_0x85849a('0x18')](handleEntityNotFound(_0x59f698,null))[_0x85849a('0x18')](respondWithStatusCode(_0x59f698,null))[_0x85849a('0x20')](handleError(_0x59f698,null));},exports[_0x272286('0x8')]=function(_0x3a99a8,_0x3d04b2){const _0x566391=_0x272286;return db[_0x566391('0x4b')]['findOne']({'where':{'id':_0x3a99a8['params']['id']}})[_0x566391('0x18')](function(_0x16fab7){const _0x5ec3a4=_0x566391;if(_0x16fab7){const _0xd78cff=[_0x5ec3a4('0x46'),_0x5ec3a4('0x43'),_0x5ec3a4('0x1a'),_0x5ec3a4('0x5e'),_0x5ec3a4('0x1'),_0x5ec3a4('0x2f'),_0x5ec3a4('0xa')];return Promise[_0x5ec3a4('0x37')](_0xd78cff,function(_0x1e34e1){const _0x52ef31=_0x5ec3a4;return _0x16fab7[_0x52ef31('0x12')+_0x1e34e1+_0x52ef31('0x28')]({'attributes':['id',_0x52ef31('0x3b')]})[_0x52ef31('0x18')](function(_0x4c022a){const _0x5a2380=_0x52ef31;return Promise[_0x5a2380('0x37')](_0x4c022a,function(_0x529428){const _0x2379b7=_0x5a2380;return _0x529428['addAgents'](_0x3a99a8['body']['ids'])[_0x2379b7('0x18')](function(){const _0x251a67=_0x2379b7;if(_0x1e34e1===_0x251a67('0x46'))return db[_0x251a67('0x60')]['findAll']({'where':{'id':_0x3a99a8['body']['ids']},'attributes':['id',_0x251a67('0x3b'),_0x251a67('0x63'),_0x251a67('0x57'),_0x251a67('0x51')],'raw':!![]})[_0x251a67('0x18')](function(_0x281bd7){const _0x242bd8=_0x251a67;return Promise[_0x242bd8('0x37')](_['filter'](_0x281bd7,{'online':0x1}),function(_0x49e527){const _0x67ee57=_0x242bd8;return db['UserVoiceQueueRt'][_0x67ee57('0x54')]({'membername':_0x49e527[_0x67ee57('0x3b')],'UserId':_0x49e527['id'],'queue_name':_0x529428['name'],'VoiceQueueId':_0x529428['id'],'interface':_[_0x67ee57('0x30')](_0x49e527[_0x67ee57('0x51')])?util[_0x67ee57('0x1b')]('SIP/%s',_0x49e527[_0x67ee57('0x3b')]):_0x49e527[_0x67ee57('0x51')],'paused':_0x49e527[_0x67ee57('0x57')]||![],'penalty':0x0});});});});});})[_0x52ef31('0x18')](function(){return _0x16fab7;});})[_0x5ec3a4('0x18')](function(){return _0x16fab7;});}})[_0x566391('0x18')](function(_0x376342){const _0x48fad6=_0x566391;if(_0x376342)return _0x376342[_0x48fad6('0x8')](_0x3a99a8[_0x48fad6('0xc')][_0x48fad6('0x5f')],{'through':_['omit'](_0x3a99a8[_0x48fad6('0xc')],[_0x48fad6('0x5f'),'id'])})['then'](function(_0x307d8e){const _0x31d10d=_0x48fad6;for(let _0x320f0c=0x0;_0x320f0c<_0x3a99a8['body']['ids'][_0x31d10d('0x13')];_0x320f0c+=0x1){socket[_0x31d10d('0x17')](_0x31d10d('0x58'),{'UserId':_0x3a99a8[_0x31d10d('0xc')][_0x31d10d('0x5f')][_0x320f0c],'TeamId':_0x3a99a8[_0x31d10d('0x62')]['id']});}return _0x307d8e;});})[_0x566391('0x18')](respondWithResult(_0x3d04b2,null))[_0x566391('0x20')](handleError(_0x3d04b2,null));},exports[_0x272286('0x29')]=function(_0x563170,_0x58fefc){const _0x570d00=_0x272286;return db[_0x570d00('0x4b')]['findOne']({'where':{'id':_0x563170[_0x570d00('0x62')]['id']}})[_0x570d00('0x18')](handleEntityNotFound(_0x58fefc,null))['then'](function(_0x49eae0){const _0x55b316=_0x570d00;if(_0x49eae0)return Promise['each']([_0x55b316('0xb'),_0x55b316('0x45'),_0x55b316('0xd'),_0x55b316('0x0'),'fax','openchannel','whatsapp'],function(_0x47003d){const _0x5a72ab=_0x55b316;return _0x49eae0[_0x5a72ab('0x12')+_[_0x5a72ab('0x47')](_0x47003d)+_0x5a72ab('0x28')]({'attributes':['id',_0x5a72ab('0x3b')]})[_0x5a72ab('0x18')](function(_0x3d8361){const _0xbf2ec6=_0x5a72ab;return Promise[_0xbf2ec6('0x37')](_0x3d8361,function(_0x25caf7){const _0x3a791b=_0xbf2ec6;return _0x25caf7[_0x3a791b('0x29')](_0x563170[_0x3a791b('0x36')]['ids'])[_0x3a791b('0x18')](function(){const _0x5de1b5=_0x3a791b;if(_0x47003d===_0x5de1b5('0xb'))return db[_0x5de1b5('0x50')]['destroy']({'where':{'VoiceQueueId':_0x25caf7['id'],'UserId':_0x563170[_0x5de1b5('0x36')]['ids']}});});});})[_0x5a72ab('0x18')](function(){return _0x49eae0;});})[_0x55b316('0x18')](function(){return _0x49eae0;});})['then'](function(_0x23cf55){const _0x113335=_0x570d00;if(_0x23cf55)return _0x23cf55['removeAgents'](_0x563170[_0x113335('0x36')][_0x113335('0x5f')])[_0x113335('0x18')](function(){const _0x1498d7=_0x113335;if(_[_0x1498d7('0x2e')](_0x563170['query']['ids']))for(let _0x280afa=0x0;_0x280afa<_0x563170[_0x1498d7('0x36')][_0x1498d7('0x5f')]['length'];_0x280afa+=0x1){socket[_0x1498d7('0x17')](_0x1498d7('0x3c'),{'UserId':Number(_0x563170[_0x1498d7('0x36')]['ids'][_0x280afa]),'TeamId':Number(_0x563170[_0x1498d7('0x62')]['id'])});}else socket['emit'](_0x1498d7('0x3c'),{'UserId':Number(_0x563170[_0x1498d7('0x36')][_0x1498d7('0x5f')]),'TeamId':Number(_0x563170[_0x1498d7('0x62')]['id'])});});})[_0x570d00('0x18')](respondWithStatusCode(_0x58fefc,null))[_0x570d00('0x20')](handleError(_0x58fefc,null));},exports[_0x272286('0x39')]=function(_0x17f7f0,_0x53c64b){const _0x5d48b5=_0x272286;let _0x1f8b50={};const _0xc8c44b={};let _0x5218fc,_0x27c0b0;return db['Team'][_0x5d48b5('0x41')]({'where':{'id':_0x17f7f0[_0x5d48b5('0x62')]['id']}})[_0x5d48b5('0x18')](handleEntityNotFound(_0x53c64b,null))[_0x5d48b5('0x18')](function(_0x17c409){const _0x2e0035=_0x5d48b5;if(_0x17c409)return _0x5218fc=_0x17c409,_0xc8c44b[_0x2e0035('0x4c')]=_[_0x2e0035('0x22')](db[_0x2e0035('0x60')][_0x2e0035('0x42')]),_0xc8c44b[_0x2e0035('0x36')]=_[_0x2e0035('0x22')](_0x17f7f0[_0x2e0035('0x36')]),_0xc8c44b[_0x2e0035('0x3f')]=_[_0x2e0035('0x27')](_0xc8c44b['model'],_0xc8c44b['query']),_0x1f8b50[_0x2e0035('0x4f')]=_[_0x2e0035('0x27')](_0xc8c44b['model'],qs[_0x2e0035('0x14')](_0x17f7f0['query'][_0x2e0035('0x14')])),_0x1f8b50[_0x2e0035('0x4f')]=_0x1f8b50[_0x2e0035('0x4f')]['length']?_0x1f8b50[_0x2e0035('0x4f')]:_0xc8c44b[_0x2e0035('0x4c')],_0x1f8b50[_0x2e0035('0x10')]=qs[_0x2e0035('0x52')](_0x17f7f0[_0x2e0035('0x36')][_0x2e0035('0x52')]),_0x1f8b50[_0x2e0035('0x3d')]=qs[_0x2e0035('0x3f')](_[_0x2e0035('0x24')](_0x17f7f0[_0x2e0035('0x36')],_0xc8c44b[_0x2e0035('0x3f')])),_0x17f7f0[_0x2e0035('0x36')][_0x2e0035('0x2')]&&(_0x1f8b50[_0x2e0035('0x3d')]=_[_0x2e0035('0x15')](_0x1f8b50[_0x2e0035('0x3d')],{[Op['or']]:_[_0x2e0035('0x5')](_0x1f8b50[_0x2e0035('0x4f')],function(_0x13d22a){const _0x228a3d=_0x2e0035,_0x47ebb4={};return _0x47ebb4[_0x13d22a]={[Op['like']]:'%'+_0x17f7f0['query'][_0x228a3d('0x2')]+'%'},_0x47ebb4;})})),_0x1f8b50=_[_0x2e0035('0x15')]({},_0x1f8b50,_0x17f7f0[_0x2e0035('0x5c')]),_0x5218fc[_0x2e0035('0x39')](_0x1f8b50);})['then'](function(_0x3733db){const _0x3c4c07=_0x5d48b5;if(_0x3733db)return _0x27c0b0=_0x3733db[_0x3c4c07('0x13')],typeof _0x17f7f0[_0x3c4c07('0x36')][_0x3c4c07('0x44')]===_0x3c4c07('0x3a')&&(_0x1f8b50[_0x3c4c07('0x61')]=qs[_0x3c4c07('0x61')](_0x17f7f0['query']['limit']),_0x1f8b50[_0x3c4c07('0x16')]=qs[_0x3c4c07('0x16')](_0x17f7f0['query']['offset'])),_0x5218fc[_0x3c4c07('0x39')](_0x1f8b50);})[_0x5d48b5('0x18')](function(_0x22be32){if(_0x22be32)return _0x22be32?{'count':_0x27c0b0,'rows':_0x22be32}:null;})[_0x5d48b5('0x18')](respondWithResult(_0x53c64b,null))[_0x5d48b5('0x20')](handleError(_0x53c64b,null));}; \ No newline at end of file diff --git a/server/api/team/team.events.js b/server/api/team/team.events.js index 53ec948..56d19fa 100644 --- a/server/api/team/team.events.js +++ b/server/api/team/team.events.js @@ -1 +1 @@ -const a627_0x32b3=['undefined','events','emit','../../mysqldb','remove','Team','setMaxListeners','save','update','addHook'];(function(_0x53ee41,_0x32b36d){const _0x40a5c9=function(_0x3b3c29){while(--_0x3b3c29){_0x53ee41['push'](_0x53ee41['shift']());}};_0x40a5c9(++_0x32b36d);}(a627_0x32b3,0xf3));const a627_0x40a5=function(_0x53ee41,_0x32b36d){_0x53ee41=_0x53ee41-0x0;let _0x40a5c9=a627_0x32b3[_0x53ee41];return _0x40a5c9;};const _0x1c9c0d=a627_0x40a5;'use strict';const EventEmitter=require(_0x1c9c0d('0x8')),Team=require(_0x1c9c0d('0x0'))['db'][_0x1c9c0d('0x2')],TeamEvents=new EventEmitter();TeamEvents[_0x1c9c0d('0x3')](0x0);const events={'afterCreate':_0x1c9c0d('0x4'),'afterUpdate':_0x1c9c0d('0x5'),'afterDestroy':_0x1c9c0d('0x1')};function emitEvent(_0x3b3c29){return function(_0x43c939){const _0x4723c3=a627_0x40a5;TeamEvents[_0x4723c3('0x9')](_0x3b3c29+':'+_0x43c939['id'],_0x43c939),TeamEvents[_0x4723c3('0x9')](_0x3b3c29,_0x43c939);};}for(const e in events){if(typeof events[e]!==_0x1c9c0d('0x7')){const event=events[e];Team[_0x1c9c0d('0x6')](e,emitEvent(event));}}module['exports']=TeamEvents; \ No newline at end of file +const a627_0x5401=['remove','Team','setMaxListeners','emit','exports','update'];(function(_0x5519da,_0x54011a){const _0x4919d0=function(_0x17ec82){while(--_0x17ec82){_0x5519da['push'](_0x5519da['shift']());}};_0x4919d0(++_0x54011a);}(a627_0x5401,0x1af));const a627_0x4919=function(_0x5519da,_0x54011a){_0x5519da=_0x5519da-0x0;let _0x4919d0=a627_0x5401[_0x5519da];return _0x4919d0;};const _0x5c813d=a627_0x4919;'use strict';const EventEmitter=require('events'),Team=require('../../mysqldb')['db'][_0x5c813d('0x2')],TeamEvents=new EventEmitter();TeamEvents[_0x5c813d('0x3')](0x0);const events={'afterCreate':'save','afterUpdate':_0x5c813d('0x0'),'afterDestroy':_0x5c813d('0x1')};function emitEvent(_0x17ec82){return function(_0x900d51){const _0x8b7cae=a627_0x4919;TeamEvents[_0x8b7cae('0x4')](_0x17ec82+':'+_0x900d51['id'],_0x900d51),TeamEvents[_0x8b7cae('0x4')](_0x17ec82,_0x900d51);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];Team['addHook'](e,emitEvent(event));}}module[_0x5c813d('0x5')]=TeamEvents; \ No newline at end of file diff --git a/server/api/team/team.model.js b/server/api/team/team.model.js index f9ddaaf..b5e26d6 100644 --- a/server/api/team/team.model.js +++ b/server/api/team/team.model.js @@ -1 +1 @@ -const a628_0x4d43=['teams','exports','define','./team.attributes'];(function(_0x20cc4a,_0x4d4317){const _0x370a26=function(_0x3e7249){while(--_0x3e7249){_0x20cc4a['push'](_0x20cc4a['shift']());}};_0x370a26(++_0x4d4317);}(a628_0x4d43,0x6e));const a628_0x370a=function(_0x20cc4a,_0x4d4317){_0x20cc4a=_0x20cc4a-0x0;let _0x370a26=a628_0x4d43[_0x20cc4a];return _0x370a26;};const _0x846e52=a628_0x370a;'use strict';const attributes=require(_0x846e52('0x1'));module[_0x846e52('0x3')]=function(_0x3e7249){const _0x5d60ce=_0x846e52,_0xa456bc=_0x3e7249[_0x5d60ce('0x0')]('Team',attributes,{'tableName':_0x5d60ce('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0xa456bc;}; \ No newline at end of file +const a628_0x50dc=['teams','./team.attributes','define'];(function(_0x148c45,_0x50dc84){const _0x408265=function(_0x5a5a0b){while(--_0x5a5a0b){_0x148c45['push'](_0x148c45['shift']());}};_0x408265(++_0x50dc84);}(a628_0x50dc,0xda));const a628_0x4082=function(_0x148c45,_0x50dc84){_0x148c45=_0x148c45-0x0;let _0x408265=a628_0x50dc[_0x148c45];return _0x408265;};const _0x29fb3b=a628_0x4082;'use strict';const attributes=require(_0x29fb3b('0x2'));module['exports']=function(_0x5a5a0b){const _0xaa411=_0x29fb3b,_0x327058=_0x5a5a0b[_0xaa411('0x0')]('Team',attributes,{'tableName':_0xaa411('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x327058;}; \ No newline at end of file diff --git a/server/api/team/team.rpc.js b/server/api/team/team.rpc.js index 0ac4dae..f1918d7 100644 --- a/server/api/team/team.rpc.js +++ b/server/api/team/team.rpc.js @@ -1 +1 @@ -const a629_0x171a=['../../rediscache','./team.socket','register'];(function(_0x163af2,_0x171a13){const _0xd7ab=function(_0x2fb43d){while(--_0x2fb43d){_0x163af2['push'](_0x163af2['shift']());}};_0xd7ab(++_0x171a13);}(a629_0x171a,0x6d));const a629_0xd7ab=function(_0x163af2,_0x171a13){_0x163af2=_0x163af2-0x0;let _0xd7ab=a629_0x171a[_0x163af2];return _0xd7ab;};const _0x393d95=a629_0xd7ab;'use strict';const {getSocket}=require(_0x393d95('0x2')),socket=getSocket();require(_0x393d95('0x0'))[_0x393d95('0x1')](socket); \ No newline at end of file +const a629_0x3d37=['../../rediscache'];(function(_0x3e6ed7,_0x3d3782){const _0x358dae=function(_0x3110c5){while(--_0x3110c5){_0x3e6ed7['push'](_0x3e6ed7['shift']());}};_0x358dae(++_0x3d3782);}(a629_0x3d37,0x112));const a629_0x358d=function(_0x3e6ed7,_0x3d3782){_0x3e6ed7=_0x3e6ed7-0x0;let _0x358dae=a629_0x3d37[_0x3e6ed7];return _0x358dae;};const _0x466e79=a629_0x358d;'use strict';const {getSocket}=require(_0x466e79('0x0')),socket=getSocket();require('./team.socket')['register'](socket); \ No newline at end of file diff --git a/server/api/team/team.socket.js b/server/api/team/team.socket.js index 6956813..066b07d 100644 --- a/server/api/team/team.socket.js +++ b/server/api/team/team.socket.js @@ -1 +1 @@ -const a630_0x2c4d=['save','update','./team.events','team:','remove','emit','register','length'];(function(_0x4f268d,_0x2c4d8d){const _0x6082b6=function(_0x86495c){while(--_0x86495c){_0x4f268d['push'](_0x4f268d['shift']());}};_0x6082b6(++_0x2c4d8d);}(a630_0x2c4d,0x12e));const a630_0x6082=function(_0x4f268d,_0x2c4d8d){_0x4f268d=_0x4f268d-0x0;let _0x6082b6=a630_0x2c4d[_0x4f268d];return _0x6082b6;};const _0x1ae5b0=a630_0x6082;'use strict';const TeamEvents=require(_0x1ae5b0('0x4')),events=[_0x1ae5b0('0x2'),_0x1ae5b0('0x6'),_0x1ae5b0('0x3')];function createListener(_0x86495c,_0x431bfc){return function(_0x23fe0a){const _0x4cdebd=a630_0x6082;_0x431bfc[_0x4cdebd('0x7')](_0x86495c,_0x23fe0a);};}exports[_0x1ae5b0('0x0')]=function(_0x4e7cbe){const _0x35f0e5=_0x1ae5b0;for(let _0x372b18=0x0,_0x543354=events[_0x35f0e5('0x1')];_0x372b18<_0x543354;_0x372b18++){const _0x102de3=events[_0x372b18],_0x29219d=createListener(_0x35f0e5('0x5')+_0x102de3,_0x4e7cbe);TeamEvents['on'](_0x102de3,_0x29219d);}}; \ No newline at end of file +const a630_0x36ae=['remove','emit','register','save'];(function(_0x4e54ff,_0x36ae2e){const _0x5eaf19=function(_0x294c13){while(--_0x294c13){_0x4e54ff['push'](_0x4e54ff['shift']());}};_0x5eaf19(++_0x36ae2e);}(a630_0x36ae,0xd8));const a630_0x5eaf=function(_0x4e54ff,_0x36ae2e){_0x4e54ff=_0x4e54ff-0x0;let _0x5eaf19=a630_0x36ae[_0x4e54ff];return _0x5eaf19;};const _0x426f45=a630_0x5eaf;'use strict';const TeamEvents=require('./team.events'),events=[_0x426f45('0x3'),_0x426f45('0x0'),'update'];function createListener(_0x294c13,_0x58d977){return function(_0x304d2e){const _0x1b43a6=a630_0x5eaf;_0x58d977[_0x1b43a6('0x1')](_0x294c13,_0x304d2e);};}exports[_0x426f45('0x2')]=function(_0x5f0627){for(let _0x7ee5c1=0x0,_0x13d00d=events['length'];_0x7ee5c1<_0x13d00d;_0x7ee5c1++){const _0x407b27=events[_0x7ee5c1],_0x48b892=createListener('team:'+_0x407b27,_0x5f0627);TeamEvents['on'](_0x407b27,_0x48b892);}}; \ No newline at end of file diff --git a/server/api/template/index.js b/server/api/template/index.js index 96b03c0..29a5787 100644 --- a/server/api/template/index.js +++ b/server/api/template/index.js @@ -1 +1 @@ -const a631_0x3368=['../../components/auth/service','index','destroy','post','isAuthenticated','/:id','get','put','update','express','Router'];(function(_0x25abd7,_0x336892){const _0x59b17c=function(_0x43f2dc){while(--_0x43f2dc){_0x25abd7['push'](_0x25abd7['shift']());}};_0x59b17c(++_0x336892);}(a631_0x3368,0x16a));const a631_0x59b1=function(_0x25abd7,_0x336892){_0x25abd7=_0x25abd7-0x0;let _0x59b17c=a631_0x3368[_0x25abd7];return _0x59b17c;};const _0xcc778d=a631_0x59b1;'use strict';const express=require(_0xcc778d('0xa')),router=express[_0xcc778d('0x0')](),auth=require(_0xcc778d('0x1')),controller=require('./template.controller');router[_0xcc778d('0x7')]('/',auth[_0xcc778d('0x5')](),controller[_0xcc778d('0x2')]),router['get'](_0xcc778d('0x6'),auth[_0xcc778d('0x5')](),controller['show']),router[_0xcc778d('0x4')]('/',auth[_0xcc778d('0x5')](),controller['create']),router[_0xcc778d('0x8')](_0xcc778d('0x6'),auth[_0xcc778d('0x5')](),controller[_0xcc778d('0x9')]),router['delete'](_0xcc778d('0x6'),auth[_0xcc778d('0x5')](),controller[_0xcc778d('0x3')]),module['exports']=router; \ No newline at end of file +const a631_0x351f=['index','get','delete','put','./template.controller','exports','express','isAuthenticated','show','update'];(function(_0x315415,_0x351f8b){const _0x3bee90=function(_0xa37d8){while(--_0xa37d8){_0x315415['push'](_0x315415['shift']());}};_0x3bee90(++_0x351f8b);}(a631_0x351f,0xc5));const a631_0x3bee=function(_0x315415,_0x351f8b){_0x315415=_0x315415-0x0;let _0x3bee90=a631_0x351f[_0x315415];return _0x3bee90;};const _0x141a91=a631_0x3bee;'use strict';const express=require(_0x141a91('0x9')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x141a91('0x7'));router[_0x141a91('0x4')]('/',auth[_0x141a91('0x0')](),controller[_0x141a91('0x3')]),router[_0x141a91('0x4')]('/:id',auth['isAuthenticated'](),controller[_0x141a91('0x1')]),router['post']('/',auth[_0x141a91('0x0')](),controller['create']),router[_0x141a91('0x6')]('/:id',auth[_0x141a91('0x0')](),controller[_0x141a91('0x2')]),router[_0x141a91('0x5')]('/:id',auth[_0x141a91('0x0')](),controller['destroy']),module[_0x141a91('0x8')]=router; \ No newline at end of file diff --git a/server/api/template/template.attributes.js b/server/api/template/template.attributes.js index a94c821..5c1bb56 100644 --- a/server/api/template/template.attributes.js +++ b/server/api/template/template.attributes.js @@ -1 +1 @@ -const a632_0x5e2e=['sequelize','TEXT','STRING'];(function(_0x40c617,_0x5e2e50){const _0x37874c=function(_0x1c1146){while(--_0x1c1146){_0x40c617['push'](_0x40c617['shift']());}};_0x37874c(++_0x5e2e50);}(a632_0x5e2e,0x83));const a632_0x3787=function(_0x40c617,_0x5e2e50){_0x40c617=_0x40c617-0x0;let _0x37874c=a632_0x5e2e[_0x40c617];return _0x37874c;};const _0x42f389=a632_0x3787;'use strict';const Sequelize=require(_0x42f389('0x1'));module['exports']={'name':{'type':Sequelize[_0x42f389('0x0')]},'description':{'type':Sequelize[_0x42f389('0x0')]},'html':{'type':Sequelize[_0x42f389('0x2')]}}; \ No newline at end of file +const a632_0x54ec=['STRING','TEXT','exports'];(function(_0x383632,_0x54ecc9){const _0x38b110=function(_0x522b49){while(--_0x522b49){_0x383632['push'](_0x383632['shift']());}};_0x38b110(++_0x54ecc9);}(a632_0x54ec,0x7d));const a632_0x38b1=function(_0x383632,_0x54ecc9){_0x383632=_0x383632-0x0;let _0x38b110=a632_0x54ec[_0x383632];return _0x38b110;};const _0x5663ca=a632_0x38b1;'use strict';const Sequelize=require('sequelize');module[_0x5663ca('0x0')]={'name':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x5663ca('0x1')]},'html':{'type':Sequelize[_0x5663ca('0x2')]}}; \ No newline at end of file diff --git a/server/api/template/template.controller.js b/server/api/template/template.controller.js index a361992..c663ee3 100644 --- a/server/api/template/template.controller.js +++ b/server/api/template/template.controller.js @@ -1 +1 @@ -const a633_0x5cce=['Unable\x20to\x20retrieve\x20the\x20current\x20user','destroy','filters','includeAll','userProfileId','nolimit','findAll','rawAttributes','sendStatus','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','merge','intersection','offset','json','then','autoAssociation','../../mysqldb','sort','query','status','index','body','count','like','catch','model','get','order','fields','create','type','name','Template','update','findOne','filter','rows','sequelize','../../components/parsers/qs','UserProfileSection','pick','user','fieldName','key','params','length','attributes','Templates','keys','show','undefined','include','limit','where','map','UserProfileResource'];(function(_0xe4c720,_0x5ccec6){const _0x328eb7=function(_0x48c98f){while(--_0x48c98f){_0xe4c720['push'](_0xe4c720['shift']());}};_0x328eb7(++_0x5ccec6);}(a633_0x5cce,0xf2));const a633_0x328e=function(_0xe4c720,_0x5ccec6){_0xe4c720=_0xe4c720-0x0;let _0x328eb7=a633_0x5cce[_0xe4c720];return _0x328eb7;};const _0x309707=a633_0x328e;'use strict';const _=require('lodash'),qs=require(_0x309707('0x14')),logger=require('../../config/logger')('api'),db=require(_0x309707('0x36'))['db'],{Op}=require(_0x309707('0x13'));function respondWithResult(_0x48c98f,_0x356f6a){return _0x356f6a=_0x356f6a||0xc8,function(_0x72ccf2){const _0x3ee18=a633_0x328e;if(_0x72ccf2)return _0x48c98f[_0x3ee18('0x1')](_0x356f6a)[_0x3ee18('0x33')](_0x72ccf2);};}function respondWithFilteredResult(_0x4e0bf2,_0x31a241){return function(_0x3e5e20){const _0x3a596c=a633_0x328e;if(_0x3e5e20){const _0x4b10dd=_0x3e5e20['count'],_0x3f4f2e=_0x31a241[_0x3a596c('0x32')];let _0x1263fa=_0x31a241[_0x3a596c('0x32')]+_0x31a241[_0x3a596c('0x22')],_0x3b7429;return _0x1263fa>=_0x4b10dd?(_0x1263fa=_0x4b10dd,_0x3b7429=0xc8):_0x3b7429=0xce,_0x4e0bf2[_0x3a596c('0x1')](_0x3b7429),_0x4e0bf2['set']('Content-Range',_0x3f4f2e+'-'+_0x1263fa+'/'+_0x4b10dd)[_0x3a596c('0x33')](_0x3e5e20);}return null;};}function saveUpdates(_0x179523){return function(_0x3a41cc){const _0x1b29ca=a633_0x328e;if(_0x3a41cc)return _0x3a41cc[_0x1b29ca('0xf')](_0x179523)['then'](function(_0x5e6fd2){return _0x5e6fd2;});return null;};}function removeEntity(_0x561af3){return function(_0x43e743){const _0x1d54af=a633_0x328e;if(_0x43e743)return _0x43e743[_0x1d54af('0x27')]()['then'](function(){const _0x58c83b=_0x1d54af,_0x570e10=_0x43e743[_0x58c83b('0x8')]({'plain':!![]}),_0x26707d=_0x58c83b('0x1d');return db[_0x58c83b('0x25')]['destroy']({'where':{'type':_0x26707d,'resourceId':_0x570e10['id']}})[_0x58c83b('0x34')](function(){return _0x43e743;});})[_0x1d54af('0x34')](function(){const _0x1f96d0=_0x1d54af;_0x561af3[_0x1f96d0('0x1')](0xcc)['end']();});};}function handleEntityNotFound(_0x4b69bb){return function(_0x3da05a){const _0x331818=a633_0x328e;return!_0x3da05a&&_0x4b69bb[_0x331818('0x2e')](0x194),_0x3da05a;};}function handleError(_0x56a397,_0x3882b8){return _0x3882b8=_0x3882b8||0x1f4,function(_0x3b9b2f){const _0x2e74f1=a633_0x328e;logger['error'](_0x3b9b2f['stack']),_0x3b9b2f['name']&&delete _0x3b9b2f['name'],_0x56a397[_0x2e74f1('0x1')](_0x3882b8)['send'](_0x3b9b2f);};}exports[_0x309707('0x2')]=function(_0x3e88db,_0x285862){const _0x24628c=_0x309707;let _0x47fafc={};const _0x4d70d8={},_0x2701c8={'count':0x0,'rows':[]},_0xdb52ed=_['map'](db[_0x24628c('0xe')]['rawAttributes'],function(_0x470676){const _0x470563=_0x24628c;return{'name':_0x470676[_0x470563('0x18')],'type':_0x470676[_0x470563('0xc')][_0x470563('0x19')]};});_0x4d70d8['model']=_['map'](_0xdb52ed,_0x24628c('0xd')),_0x4d70d8['query']=_['keys'](_0x3e88db[_0x24628c('0x0')]),_0x4d70d8[_0x24628c('0x28')]=_[_0x24628c('0x31')](_0x4d70d8['model'],_0x4d70d8[_0x24628c('0x0')]),_0x47fafc[_0x24628c('0x1c')]=_[_0x24628c('0x31')](_0x4d70d8[_0x24628c('0x7')],qs[_0x24628c('0xa')](_0x3e88db[_0x24628c('0x0')][_0x24628c('0xa')])),_0x47fafc[_0x24628c('0x1c')]=_0x47fafc[_0x24628c('0x1c')][_0x24628c('0x1b')]?_0x47fafc['attributes']:_0x4d70d8['model'];typeof _0x3e88db[_0x24628c('0x0')][_0x24628c('0x2b')]===_0x24628c('0x20')&&(_0x47fafc[_0x24628c('0x22')]=qs[_0x24628c('0x22')](_0x3e88db[_0x24628c('0x0')][_0x24628c('0x22')]),_0x47fafc[_0x24628c('0x32')]=qs[_0x24628c('0x32')](_0x3e88db['query'][_0x24628c('0x32')]));_0x47fafc[_0x24628c('0x9')]=qs[_0x24628c('0x37')](_0x3e88db[_0x24628c('0x0')][_0x24628c('0x37')]),_0x47fafc[_0x24628c('0x23')]=qs[_0x24628c('0x28')](_[_0x24628c('0x16')](_0x3e88db[_0x24628c('0x0')],_0x4d70d8[_0x24628c('0x28')]),_0xdb52ed);_0x3e88db[_0x24628c('0x0')][_0x24628c('0x11')]&&(_0x47fafc[_0x24628c('0x23')]=_[_0x24628c('0x30')](_0x47fafc[_0x24628c('0x23')],{[Op['or']]:_[_0x24628c('0x24')](_0xdb52ed,function(_0x380460){const _0x3116ea=_0x24628c;if(_0x380460[_0x3116ea('0xc')]!=='VIRTUAL'){const _0x49310e={};return _0x49310e[_0x380460['name']]={[Op[_0x3116ea('0x5')]]:'%'+_0x3e88db[_0x3116ea('0x0')][_0x3116ea('0x11')]+'%'},_0x49310e;}})}));_0x47fafc=_[_0x24628c('0x30')]({},_0x47fafc,_0x3e88db['options']);const _0x3b5e01={'where':_0x47fafc[_0x24628c('0x23')]};return db[_0x24628c('0xe')][_0x24628c('0x4')](_0x3b5e01)['then'](function(_0x4a187c){const _0x51bc3c=_0x24628c;return _0x2701c8[_0x51bc3c('0x4')]=_0x4a187c,_0x3e88db[_0x51bc3c('0x0')][_0x51bc3c('0x29')]&&(_0x47fafc[_0x51bc3c('0x21')]=[{'all':!![]}]),db[_0x51bc3c('0xe')][_0x51bc3c('0x2c')](_0x47fafc);})[_0x24628c('0x34')](function(_0x4032a0){const _0x47a37a=_0x24628c;return _0x2701c8[_0x47a37a('0x12')]=_0x4032a0,_0x2701c8;})[_0x24628c('0x34')](respondWithFilteredResult(_0x285862,_0x47fafc))[_0x24628c('0x6')](handleError(_0x285862,null));},exports[_0x309707('0x1f')]=function(_0x4d23f0,_0x35d139){const _0xed345d=_0x309707;let _0x2a487d={'raw':!![],'where':{'id':_0x4d23f0[_0xed345d('0x1a')]['id']}};const _0x8d8d4b={};return _0x8d8d4b[_0xed345d('0x7')]=_[_0xed345d('0x1e')](db[_0xed345d('0xe')][_0xed345d('0x2d')]),_0x8d8d4b[_0xed345d('0x0')]=_[_0xed345d('0x1e')](_0x4d23f0[_0xed345d('0x0')]),_0x8d8d4b[_0xed345d('0x28')]=_['intersection'](_0x8d8d4b[_0xed345d('0x7')],_0x8d8d4b[_0xed345d('0x0')]),_0x2a487d[_0xed345d('0x1c')]=_[_0xed345d('0x31')](_0x8d8d4b[_0xed345d('0x7')],qs[_0xed345d('0xa')](_0x4d23f0['query'][_0xed345d('0xa')])),_0x2a487d['attributes']=_0x2a487d[_0xed345d('0x1c')][_0xed345d('0x1b')]?_0x2a487d[_0xed345d('0x1c')]:_0x8d8d4b[_0xed345d('0x7')],_0x4d23f0[_0xed345d('0x0')]['includeAll']&&(_0x2a487d[_0xed345d('0x21')]=[{'all':!![]}]),_0x2a487d=_[_0xed345d('0x30')]({},_0x2a487d,_0x4d23f0['options']),db[_0xed345d('0xe')]['findOne'](_0x2a487d)[_0xed345d('0x34')](handleEntityNotFound(_0x35d139,null))[_0xed345d('0x34')](respondWithResult(_0x35d139,null))[_0xed345d('0x6')](handleError(_0x35d139,null));},exports[_0x309707('0xb')]=function(_0x47cc92,_0x406ef4){const _0x12598f=_0x309707;return db[_0x12598f('0xe')]['create'](_0x47cc92[_0x12598f('0x3')],{})[_0x12598f('0x34')](function(_0x58a583){const _0x58eed7=_0x12598f,_0x280d71=_0x47cc92[_0x58eed7('0x17')][_0x58eed7('0x8')]({'plain':!![]});if(!_0x280d71)throw new Error(_0x58eed7('0x26'));if(_0x280d71['role']==='user'){const _0x179538=_0x58a583[_0x58eed7('0x8')]({'plain':!![]}),_0x4f63d4='Templates';return db[_0x58eed7('0x15')][_0x58eed7('0x10')]({'where':{'name':_0x4f63d4,'userProfileId':_0x280d71[_0x58eed7('0x2a')]},'raw':!![]})['then'](function(_0x2c3249){const _0x44dee2=_0x58eed7;return _0x2c3249&&_0x2c3249[_0x44dee2('0x35')]===0x0?db[_0x44dee2('0x25')]['create']({'name':_0x179538[_0x44dee2('0xd')],'resourceId':_0x179538['id'],'type':_0x2c3249[_0x44dee2('0xd')],'sectionId':_0x2c3249['id']},{})[_0x44dee2('0x34')](function(){return _0x58a583;}):_0x58a583;})['catch'](function(_0x4d11a6){const _0x5b8a02=_0x58eed7;logger['error'](_0x5b8a02('0x2f'),_0x4d11a6);throw _0x4d11a6;});}return _0x58a583;})[_0x12598f('0x34')](respondWithResult(_0x406ef4,0xc9))['catch'](handleError(_0x406ef4,null));},exports[_0x309707('0xf')]=function(_0x5bc868,_0x35e9b5){const _0xda891c=_0x309707;return _0x5bc868[_0xda891c('0x3')]['id']&&delete _0x5bc868[_0xda891c('0x3')]['id'],db[_0xda891c('0xe')][_0xda891c('0x10')]({'where':{'id':_0x5bc868[_0xda891c('0x1a')]['id']}})[_0xda891c('0x34')](handleEntityNotFound(_0x35e9b5,null))[_0xda891c('0x34')](saveUpdates(_0x5bc868[_0xda891c('0x3')],null))[_0xda891c('0x34')](respondWithResult(_0x35e9b5,null))[_0xda891c('0x6')](handleError(_0x35e9b5,null));},exports[_0x309707('0x27')]=function(_0x4b984b,_0x43938e){const _0x1a7e83=_0x309707;return db[_0x1a7e83('0xe')][_0x1a7e83('0x10')]({'where':{'id':_0x4b984b['params']['id']}})[_0x1a7e83('0x34')](handleEntityNotFound(_0x43938e,null))['then'](removeEntity(_0x43938e,null))[_0x1a7e83('0x6')](handleError(_0x43938e,null));}; \ No newline at end of file +const a633_0x12af=['count','then','index','pick','limit','../../config/logger','model','../../mysqldb','type','userProfileId','rawAttributes','merge','includeAll','json','key','options','undefined','where','sort','update','user','order','role','findOne','attributes','intersection','params','offset','../../components/parsers/qs','body','like','fieldName','stack','name','length','error','findAll','Content-Range','create','Template','fields','catch','show','UserProfileSection','get','autoAssociation','destroy','UserProfileResource','sequelize','nolimit','include','filter','Templates','Unable\x20to\x20retrieve\x20the\x20current\x20user','status','map','query','filters','keys'];(function(_0x48e6ca,_0x12aff3){const _0x5bd5ca=function(_0xb00960){while(--_0xb00960){_0x48e6ca['push'](_0x48e6ca['shift']());}};_0x5bd5ca(++_0x12aff3);}(a633_0x12af,0x167));const a633_0x5bd5=function(_0x48e6ca,_0x12aff3){_0x48e6ca=_0x48e6ca-0x0;let _0x5bd5ca=a633_0x12af[_0x48e6ca];return _0x5bd5ca;};const _0x1f5c63=a633_0x5bd5;'use strict';const _=require('lodash'),qs=require(_0x1f5c63('0x17')),logger=require(_0x1f5c63('0x0'))('api'),db=require(_0x1f5c63('0x2'))['db'],{Op}=require(_0x1f5c63('0x2b'));function respondWithResult(_0xb00960,_0x18efd7){return _0x18efd7=_0x18efd7||0xc8,function(_0x3de748){const _0x314473=a633_0x5bd5;if(_0x3de748)return _0xb00960[_0x314473('0x31')](_0x18efd7)[_0x314473('0x8')](_0x3de748);};}function respondWithFilteredResult(_0x27f3d3,_0x4bfa5e){return function(_0x4f747d){const _0x4c6254=a633_0x5bd5;if(_0x4f747d){const _0x18e98f=_0x4f747d[_0x4c6254('0x36')],_0x405289=_0x4bfa5e[_0x4c6254('0x16')];let _0x4a045a=_0x4bfa5e[_0x4c6254('0x16')]+_0x4bfa5e[_0x4c6254('0x3a')],_0x24178f;return _0x4a045a>=_0x18e98f?(_0x4a045a=_0x18e98f,_0x24178f=0xc8):_0x24178f=0xce,_0x27f3d3['status'](_0x24178f),_0x27f3d3['set'](_0x4c6254('0x20'),_0x405289+'-'+_0x4a045a+'/'+_0x18e98f)['json'](_0x4f747d);}return null;};}function saveUpdates(_0x159496){return function(_0x434256){const _0x3e47f2=a633_0x5bd5;if(_0x434256)return _0x434256['update'](_0x159496)[_0x3e47f2('0x37')](function(_0x4d0d4e){return _0x4d0d4e;});return null;};}function removeEntity(_0x1695be){return function(_0x4dcc16){const _0x2405cf=a633_0x5bd5;if(_0x4dcc16)return _0x4dcc16[_0x2405cf('0x29')]()[_0x2405cf('0x37')](function(){const _0x3a2377=_0x2405cf,_0x2a8ebd=_0x4dcc16[_0x3a2377('0x27')]({'plain':!![]}),_0x41f0d6='Templates';return db[_0x3a2377('0x2a')][_0x3a2377('0x29')]({'where':{'type':_0x41f0d6,'resourceId':_0x2a8ebd['id']}})[_0x3a2377('0x37')](function(){return _0x4dcc16;});})[_0x2405cf('0x37')](function(){_0x1695be['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x13670d){return function(_0x4c9574){return!_0x4c9574&&_0x13670d['sendStatus'](0x194),_0x4c9574;};}function handleError(_0x3992fd,_0x305079){return _0x305079=_0x305079||0x1f4,function(_0x5df961){const _0x5eb783=a633_0x5bd5;logger['error'](_0x5df961[_0x5eb783('0x1b')]),_0x5df961['name']&&delete _0x5df961['name'],_0x3992fd[_0x5eb783('0x31')](_0x305079)['send'](_0x5df961);};}exports[_0x1f5c63('0x38')]=function(_0x47f90c,_0x40894c){const _0x1b4e85=_0x1f5c63;let _0x4c2c2a={};const _0x24e9e3={},_0x20c094={'count':0x0,'rows':[]},_0x2f2633=_[_0x1b4e85('0x32')](db[_0x1b4e85('0x22')][_0x1b4e85('0x5')],function(_0x5a9304){const _0x49fdce=_0x1b4e85;return{'name':_0x5a9304[_0x49fdce('0x1a')],'type':_0x5a9304['type'][_0x49fdce('0x9')]};});_0x24e9e3[_0x1b4e85('0x1')]=_[_0x1b4e85('0x32')](_0x2f2633,_0x1b4e85('0x1c')),_0x24e9e3[_0x1b4e85('0x33')]=_[_0x1b4e85('0x35')](_0x47f90c[_0x1b4e85('0x33')]),_0x24e9e3[_0x1b4e85('0x34')]=_['intersection'](_0x24e9e3[_0x1b4e85('0x1')],_0x24e9e3[_0x1b4e85('0x33')]),_0x4c2c2a[_0x1b4e85('0x13')]=_['intersection'](_0x24e9e3['model'],qs['fields'](_0x47f90c['query'][_0x1b4e85('0x23')])),_0x4c2c2a[_0x1b4e85('0x13')]=_0x4c2c2a[_0x1b4e85('0x13')]['length']?_0x4c2c2a[_0x1b4e85('0x13')]:_0x24e9e3[_0x1b4e85('0x1')];typeof _0x47f90c['query'][_0x1b4e85('0x2c')]===_0x1b4e85('0xb')&&(_0x4c2c2a[_0x1b4e85('0x3a')]=qs[_0x1b4e85('0x3a')](_0x47f90c[_0x1b4e85('0x33')]['limit']),_0x4c2c2a[_0x1b4e85('0x16')]=qs[_0x1b4e85('0x16')](_0x47f90c['query']['offset']));_0x4c2c2a[_0x1b4e85('0x10')]=qs[_0x1b4e85('0xd')](_0x47f90c[_0x1b4e85('0x33')]['sort']),_0x4c2c2a[_0x1b4e85('0xc')]=qs[_0x1b4e85('0x34')](_[_0x1b4e85('0x39')](_0x47f90c['query'],_0x24e9e3['filters']),_0x2f2633);_0x47f90c[_0x1b4e85('0x33')][_0x1b4e85('0x2e')]&&(_0x4c2c2a[_0x1b4e85('0xc')]=_['merge'](_0x4c2c2a[_0x1b4e85('0xc')],{[Op['or']]:_[_0x1b4e85('0x32')](_0x2f2633,function(_0x537049){const _0x5da80d=_0x1b4e85;if(_0x537049[_0x5da80d('0x3')]!=='VIRTUAL'){const _0xf2c0af={};return _0xf2c0af[_0x537049['name']]={[Op[_0x5da80d('0x19')]]:'%'+_0x47f90c[_0x5da80d('0x33')]['filter']+'%'},_0xf2c0af;}})}));_0x4c2c2a=_[_0x1b4e85('0x6')]({},_0x4c2c2a,_0x47f90c['options']);const _0xdda017={'where':_0x4c2c2a[_0x1b4e85('0xc')]};return db[_0x1b4e85('0x22')][_0x1b4e85('0x36')](_0xdda017)[_0x1b4e85('0x37')](function(_0x164b42){const _0x279f4b=_0x1b4e85;return _0x20c094[_0x279f4b('0x36')]=_0x164b42,_0x47f90c[_0x279f4b('0x33')][_0x279f4b('0x7')]&&(_0x4c2c2a[_0x279f4b('0x2d')]=[{'all':!![]}]),db[_0x279f4b('0x22')][_0x279f4b('0x1f')](_0x4c2c2a);})[_0x1b4e85('0x37')](function(_0x47255e){return _0x20c094['rows']=_0x47255e,_0x20c094;})[_0x1b4e85('0x37')](respondWithFilteredResult(_0x40894c,_0x4c2c2a))[_0x1b4e85('0x24')](handleError(_0x40894c,null));},exports[_0x1f5c63('0x25')]=function(_0x4ef549,_0x581a62){const _0x28569b=_0x1f5c63;let _0x4480f5={'raw':!![],'where':{'id':_0x4ef549[_0x28569b('0x15')]['id']}};const _0x228d8e={};return _0x228d8e[_0x28569b('0x1')]=_[_0x28569b('0x35')](db['Template'][_0x28569b('0x5')]),_0x228d8e[_0x28569b('0x33')]=_['keys'](_0x4ef549[_0x28569b('0x33')]),_0x228d8e[_0x28569b('0x34')]=_['intersection'](_0x228d8e[_0x28569b('0x1')],_0x228d8e['query']),_0x4480f5[_0x28569b('0x13')]=_[_0x28569b('0x14')](_0x228d8e[_0x28569b('0x1')],qs[_0x28569b('0x23')](_0x4ef549[_0x28569b('0x33')][_0x28569b('0x23')])),_0x4480f5[_0x28569b('0x13')]=_0x4480f5[_0x28569b('0x13')][_0x28569b('0x1d')]?_0x4480f5[_0x28569b('0x13')]:_0x228d8e['model'],_0x4ef549[_0x28569b('0x33')]['includeAll']&&(_0x4480f5[_0x28569b('0x2d')]=[{'all':!![]}]),_0x4480f5=_[_0x28569b('0x6')]({},_0x4480f5,_0x4ef549[_0x28569b('0xa')]),db[_0x28569b('0x22')][_0x28569b('0x12')](_0x4480f5)[_0x28569b('0x37')](handleEntityNotFound(_0x581a62,null))[_0x28569b('0x37')](respondWithResult(_0x581a62,null))[_0x28569b('0x24')](handleError(_0x581a62,null));},exports[_0x1f5c63('0x21')]=function(_0x4401e3,_0x5d09f5){const _0x21a244=_0x1f5c63;return db[_0x21a244('0x22')][_0x21a244('0x21')](_0x4401e3[_0x21a244('0x18')],{})[_0x21a244('0x37')](function(_0x520ad8){const _0x4b3209=_0x21a244,_0xdec219=_0x4401e3['user'][_0x4b3209('0x27')]({'plain':!![]});if(!_0xdec219)throw new Error(_0x4b3209('0x30'));if(_0xdec219[_0x4b3209('0x11')]===_0x4b3209('0xf')){const _0x4aebc3=_0x520ad8[_0x4b3209('0x27')]({'plain':!![]}),_0x49a7da=_0x4b3209('0x2f');return db[_0x4b3209('0x26')][_0x4b3209('0x12')]({'where':{'name':_0x49a7da,'userProfileId':_0xdec219[_0x4b3209('0x4')]},'raw':!![]})['then'](function(_0x5437fd){const _0x1a6b76=_0x4b3209;return _0x5437fd&&_0x5437fd[_0x1a6b76('0x28')]===0x0?db[_0x1a6b76('0x2a')]['create']({'name':_0x4aebc3['name'],'resourceId':_0x4aebc3['id'],'type':_0x5437fd['name'],'sectionId':_0x5437fd['id']},{})[_0x1a6b76('0x37')](function(){return _0x520ad8;}):_0x520ad8;})[_0x4b3209('0x24')](function(_0x21c1c9){const _0x3e13aa=_0x4b3209;logger[_0x3e13aa('0x1e')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x21c1c9);throw _0x21c1c9;});}return _0x520ad8;})[_0x21a244('0x37')](respondWithResult(_0x5d09f5,0xc9))[_0x21a244('0x24')](handleError(_0x5d09f5,null));},exports[_0x1f5c63('0xe')]=function(_0x52a7dd,_0x59bdc3){const _0x40ea7e=_0x1f5c63;return _0x52a7dd['body']['id']&&delete _0x52a7dd['body']['id'],db[_0x40ea7e('0x22')][_0x40ea7e('0x12')]({'where':{'id':_0x52a7dd[_0x40ea7e('0x15')]['id']}})['then'](handleEntityNotFound(_0x59bdc3,null))[_0x40ea7e('0x37')](saveUpdates(_0x52a7dd[_0x40ea7e('0x18')],null))['then'](respondWithResult(_0x59bdc3,null))[_0x40ea7e('0x24')](handleError(_0x59bdc3,null));},exports[_0x1f5c63('0x29')]=function(_0xb1ff71,_0x402012){const _0x4f0ea5=_0x1f5c63;return db[_0x4f0ea5('0x22')][_0x4f0ea5('0x12')]({'where':{'id':_0xb1ff71[_0x4f0ea5('0x15')]['id']}})[_0x4f0ea5('0x37')](handleEntityNotFound(_0x402012,null))[_0x4f0ea5('0x37')](removeEntity(_0x402012,null))[_0x4f0ea5('0x24')](handleError(_0x402012,null));}; \ No newline at end of file diff --git a/server/api/template/template.model.js b/server/api/template/template.model.js index 6decd80..2788aaf 100644 --- a/server/api/template/template.model.js +++ b/server/api/template/template.model.js @@ -1 +1 @@ -const a634_0x5486=['exports','define','tools_templates'];(function(_0x19b27d,_0x54860a){const _0x213f9c=function(_0x3c441f){while(--_0x3c441f){_0x19b27d['push'](_0x19b27d['shift']());}};_0x213f9c(++_0x54860a);}(a634_0x5486,0x1cd));const a634_0x213f=function(_0x19b27d,_0x54860a){_0x19b27d=_0x19b27d-0x0;let _0x213f9c=a634_0x5486[_0x19b27d];return _0x213f9c;};const _0x446c64=a634_0x213f;'use strict';const attributes=require('./template.attributes');module[_0x446c64('0x1')]=function(_0x3c441f){const _0x268d94=_0x446c64,_0x4e7811=_0x3c441f[_0x268d94('0x2')]('Template',attributes,{'tableName':_0x268d94('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4e7811;}; \ No newline at end of file +const a634_0x5f37=['tools_templates','./template.attributes','Template','define','exports'];(function(_0x2ef546,_0x5f37b5){const _0x5f1a9f=function(_0x30c65c){while(--_0x30c65c){_0x2ef546['push'](_0x2ef546['shift']());}};_0x5f1a9f(++_0x5f37b5);}(a634_0x5f37,0xd2));const a634_0x5f1a=function(_0x2ef546,_0x5f37b5){_0x2ef546=_0x2ef546-0x0;let _0x5f1a9f=a634_0x5f37[_0x2ef546];return _0x5f1a9f;};const _0x34a9ab=a634_0x5f1a;'use strict';const attributes=require(_0x34a9ab('0x1'));module[_0x34a9ab('0x4')]=function(_0x30c65c){const _0x540615=_0x34a9ab,_0x574cae=_0x30c65c[_0x540615('0x3')](_0x540615('0x2'),attributes,{'tableName':_0x540615('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x574cae;}; \ No newline at end of file diff --git a/server/api/template/template.rpc.js b/server/api/template/template.rpc.js index fadc785..9af747b 100644 --- a/server/api/template/template.rpc.js +++ b/server/api/template/template.rpc.js @@ -1 +1 @@ -const a635_0x3b75=['findAll','info','../../mysqldb','stringify','limit','model','map','error','debug','include','Template','catch','rpc','options','attributes','where','../../config/logger','lodash','GetTemplate','then'];(function(_0x399ba0,_0x3b7594){const _0x1c576e=function(_0x4ca69f){while(--_0x4ca69f){_0x399ba0['push'](_0x399ba0['shift']());}};_0x1c576e(++_0x3b7594);}(a635_0x3b75,0x1a7));const a635_0x1c57=function(_0x399ba0,_0x3b7594){_0x399ba0=_0x399ba0-0x0;let _0x1c576e=a635_0x3b75[_0x399ba0];return _0x1c576e;};const _0x47c76a=a635_0x1c57;'use strict';const _=require(_0x47c76a('0xe')),db=require(_0x47c76a('0x13'))['db'],logger=require(_0x47c76a('0xd'))(_0x47c76a('0x9'));exports['GetTemplate']=function(_0x4ca69f){const _0x3f0f9c=this;return new Promise(function(_0x463ef3,_0x264400){const _0x4e6faf=a635_0x1c57;return db[_0x4e6faf('0x7')][_0x4e6faf('0x11')]({'raw':_0x4ca69f[_0x4e6faf('0xa')]?_0x4ca69f['options']['raw']===undefined?!![]:![]:!![],'where':_0x4ca69f[_0x4e6faf('0xa')]?_0x4ca69f[_0x4e6faf('0xa')][_0x4e6faf('0xc')]||null:null,'attributes':_0x4ca69f[_0x4e6faf('0xa')]?_0x4ca69f[_0x4e6faf('0xa')][_0x4e6faf('0xb')]||null:null,'limit':_0x4ca69f[_0x4e6faf('0xa')]?_0x4ca69f['options'][_0x4e6faf('0x1')]||null:null,'include':_0x4ca69f[_0x4e6faf('0xa')]?_0x4ca69f[_0x4e6faf('0xa')][_0x4e6faf('0x6')]?_[_0x4e6faf('0x3')](_0x4ca69f['options'][_0x4e6faf('0x6')],function(_0x1db24b){const _0x58884f=_0x4e6faf;return{'model':db[_0x1db24b[_0x58884f('0x2')]],'as':_0x1db24b['as'],'attributes':_0x1db24b['attributes'],'include':_0x1db24b[_0x58884f('0x6')]?_[_0x58884f('0x3')](_0x1db24b[_0x58884f('0x6')],function(_0x48ca1e){const _0xd2e8db=_0x58884f;return{'model':db[_0x48ca1e[_0xd2e8db('0x2')]],'as':_0x48ca1e['as'],'attributes':_0x48ca1e[_0xd2e8db('0xb')],'include':_0x48ca1e[_0xd2e8db('0x6')]?_['map'](_0x48ca1e[_0xd2e8db('0x6')],function(_0x461806){const _0xa38910=_0xd2e8db;return{'model':db[_0x461806[_0xa38910('0x2')]],'as':_0x461806['as'],'attributes':_0x461806['attributes']};}):[]};}):[]};}):[]:[]})[_0x4e6faf('0x10')](function(_0x3c509c){const _0x478c3b=_0x4e6faf;logger[_0x478c3b('0x12')]('GetTemplate',_0x4ca69f),logger[_0x478c3b('0x5')]('GetTemplate',_0x4ca69f,JSON[_0x478c3b('0x0')](_0x3c509c)),_0x463ef3(_0x3c509c);})[_0x4e6faf('0x8')](function(_0x19f1d7){const _0x13a7dd=_0x4e6faf;logger[_0x13a7dd('0x4')](_0x13a7dd('0xf'),_0x19f1d7['message'],_0x4ca69f),_0x264400(_0x3f0f9c[_0x13a7dd('0x4')](0x1f4,_0x19f1d7['message']));});});}; \ No newline at end of file +const a635_0x3761=['raw','stringify','message','map','then','options','where','attributes','Template','GetTemplate','model','lodash','info','error','include','debug','../../mysqldb','findAll','limit'];(function(_0x3601de,_0x376101){const _0x2fc458=function(_0x5c849d){while(--_0x5c849d){_0x3601de['push'](_0x3601de['shift']());}};_0x2fc458(++_0x376101);}(a635_0x3761,0xe7));const a635_0x2fc4=function(_0x3601de,_0x376101){_0x3601de=_0x3601de-0x0;let _0x2fc458=a635_0x3761[_0x3601de];return _0x2fc458;};const _0x2ad980=a635_0x2fc4;'use strict';const _=require(_0x2ad980('0x8')),db=require(_0x2ad980('0xd'))['db'],logger=require('../../config/logger')('rpc');exports['GetTemplate']=function(_0x5c849d){const _0x1baf21=this;return new Promise(function(_0x288b8a,_0x2adbc6){const _0x29cc1d=a635_0x2fc4;return db[_0x29cc1d('0x5')][_0x29cc1d('0xe')]({'raw':_0x5c849d[_0x29cc1d('0x2')]?_0x5c849d[_0x29cc1d('0x2')][_0x29cc1d('0x10')]===undefined?!![]:![]:!![],'where':_0x5c849d[_0x29cc1d('0x2')]?_0x5c849d[_0x29cc1d('0x2')][_0x29cc1d('0x3')]||null:null,'attributes':_0x5c849d[_0x29cc1d('0x2')]?_0x5c849d[_0x29cc1d('0x2')][_0x29cc1d('0x4')]||null:null,'limit':_0x5c849d[_0x29cc1d('0x2')]?_0x5c849d['options'][_0x29cc1d('0xf')]||null:null,'include':_0x5c849d[_0x29cc1d('0x2')]?_0x5c849d[_0x29cc1d('0x2')][_0x29cc1d('0xb')]?_['map'](_0x5c849d['options']['include'],function(_0x42d48f){const _0x459145=_0x29cc1d;return{'model':db[_0x42d48f['model']],'as':_0x42d48f['as'],'attributes':_0x42d48f['attributes'],'include':_0x42d48f[_0x459145('0xb')]?_[_0x459145('0x0')](_0x42d48f[_0x459145('0xb')],function(_0x20fd92){const _0x51472d=_0x459145;return{'model':db[_0x20fd92['model']],'as':_0x20fd92['as'],'attributes':_0x20fd92[_0x51472d('0x4')],'include':_0x20fd92[_0x51472d('0xb')]?_[_0x51472d('0x0')](_0x20fd92['include'],function(_0x1a77b1){const _0x3c05a1=_0x51472d;return{'model':db[_0x1a77b1[_0x3c05a1('0x7')]],'as':_0x1a77b1['as'],'attributes':_0x1a77b1[_0x3c05a1('0x4')]};}):[]};}):[]};}):[]:[]})[_0x29cc1d('0x1')](function(_0x6a33b5){const _0xada059=_0x29cc1d;logger[_0xada059('0x9')](_0xada059('0x6'),_0x5c849d),logger[_0xada059('0xc')](_0xada059('0x6'),_0x5c849d,JSON[_0xada059('0x11')](_0x6a33b5)),_0x288b8a(_0x6a33b5);})['catch'](function(_0x3ff9f0){const _0x2104d1=_0x29cc1d;logger[_0x2104d1('0xa')](_0x2104d1('0x6'),_0x3ff9f0[_0x2104d1('0x12')],_0x5c849d),_0x2adbc6(_0x1baf21[_0x2104d1('0xa')](0x1f4,_0x3ff9f0[_0x2104d1('0x12')]));});});}; \ No newline at end of file diff --git a/server/api/trigger/index.js b/server/api/trigger/index.js index 44074d4..997b8fb 100644 --- a/server/api/trigger/index.js +++ b/server/api/trigger/index.js @@ -1 +1 @@ -const a636_0x53e8=['delete','update','./trigger.controller','post','addAnyCondition','create','destroy','/:id/all_conditions','exports','/:id/any_conditions','addAllCondition','/:id/actions','Router','getAllConditions','../../components/auth/service','isAuthenticated','get','/:id','getAnyConditions'];(function(_0x3d2485,_0x53e80a){const _0x941d09=function(_0x565650){while(--_0x565650){_0x3d2485['push'](_0x3d2485['shift']());}};_0x941d09(++_0x53e80a);}(a636_0x53e8,0x1af));const a636_0x941d=function(_0x3d2485,_0x53e80a){_0x3d2485=_0x3d2485-0x0;let _0x941d09=a636_0x53e8[_0x3d2485];return _0x941d09;};const _0x3c534a=a636_0x941d;'use strict';const express=require('express'),router=express[_0x3c534a('0x12')](),auth=require(_0x3c534a('0x1')),controller=require(_0x3c534a('0x8'));router[_0x3c534a('0x3')]('/',auth['isAuthenticated'](),controller['index']),router['get'](_0x3c534a('0x4'),auth[_0x3c534a('0x2')](),controller['show']),router[_0x3c534a('0x3')](_0x3c534a('0xd'),auth[_0x3c534a('0x2')](),controller[_0x3c534a('0x0')]),router['get'](_0x3c534a('0xf'),auth[_0x3c534a('0x2')](),controller[_0x3c534a('0x5')]),router[_0x3c534a('0x3')](_0x3c534a('0x11'),auth[_0x3c534a('0x2')](),controller['getActions']),router[_0x3c534a('0x9')]('/',auth[_0x3c534a('0x2')](),controller[_0x3c534a('0xb')]),router['post'](_0x3c534a('0xd'),auth[_0x3c534a('0x2')](),controller[_0x3c534a('0x10')]),router[_0x3c534a('0x9')](_0x3c534a('0xf'),auth['isAuthenticated'](),controller[_0x3c534a('0xa')]),router[_0x3c534a('0x9')](_0x3c534a('0x11'),auth['isAuthenticated'](),controller['addAction']),router['put'](_0x3c534a('0x4'),auth[_0x3c534a('0x2')](),controller[_0x3c534a('0x7')]),router[_0x3c534a('0x6')]('/:id',auth[_0x3c534a('0x2')](),controller[_0x3c534a('0xc')]),module[_0x3c534a('0xe')]=router; \ No newline at end of file +const a636_0x5475=['post','getAnyConditions','Router','../../components/auth/service','put','/:id/all_conditions','/:id/actions','delete','/:id/any_conditions','exports','isAuthenticated','create','update','get','/:id','show','index','addAllCondition','getActions'];(function(_0x5b9bec,_0x54757a){const _0xe68415=function(_0x57cc00){while(--_0x57cc00){_0x5b9bec['push'](_0x5b9bec['shift']());}};_0xe68415(++_0x54757a);}(a636_0x5475,0x1a8));const a636_0xe684=function(_0x5b9bec,_0x54757a){_0x5b9bec=_0x5b9bec-0x0;let _0xe68415=a636_0x5475[_0x5b9bec];return _0xe68415;};const _0x2162b2=a636_0xe684;'use strict';const express=require('express'),router=express[_0x2162b2('0xf')](),auth=require(_0x2162b2('0x10')),controller=require('./trigger.controller');router[_0x2162b2('0x7')]('/',auth[_0x2162b2('0x4')](),controller[_0x2162b2('0xa')]),router[_0x2162b2('0x7')](_0x2162b2('0x8'),auth[_0x2162b2('0x4')](),controller[_0x2162b2('0x9')]),router[_0x2162b2('0x7')](_0x2162b2('0x12'),auth[_0x2162b2('0x4')](),controller['getAllConditions']),router[_0x2162b2('0x7')](_0x2162b2('0x2'),auth[_0x2162b2('0x4')](),controller[_0x2162b2('0xe')]),router['get'](_0x2162b2('0x0'),auth['isAuthenticated'](),controller[_0x2162b2('0xc')]),router['post']('/',auth[_0x2162b2('0x4')](),controller[_0x2162b2('0x5')]),router['post'](_0x2162b2('0x12'),auth[_0x2162b2('0x4')](),controller[_0x2162b2('0xb')]),router[_0x2162b2('0xd')]('/:id/any_conditions',auth[_0x2162b2('0x4')](),controller['addAnyCondition']),router[_0x2162b2('0xd')](_0x2162b2('0x0'),auth[_0x2162b2('0x4')](),controller['addAction']),router[_0x2162b2('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x2162b2('0x6')]),router[_0x2162b2('0x1')](_0x2162b2('0x8'),auth[_0x2162b2('0x4')](),controller['destroy']),module[_0x2162b2('0x3')]=router; \ No newline at end of file diff --git a/server/api/trigger/trigger.attributes.js b/server/api/trigger/trigger.attributes.js index 2be7404..5cd0cd1 100644 --- a/server/api/trigger/trigger.attributes.js +++ b/server/api/trigger/trigger.attributes.js @@ -1 +1 @@ -const a637_0xcdfd=['STRING','BOOLEAN','sequelize'];(function(_0x1c2544,_0xcdfd8a){const _0x5e2fa7=function(_0x27cb13){while(--_0x27cb13){_0x1c2544['push'](_0x1c2544['shift']());}};_0x5e2fa7(++_0xcdfd8a);}(a637_0xcdfd,0x6f));const a637_0x5e2f=function(_0x1c2544,_0xcdfd8a){_0x1c2544=_0x1c2544-0x0;let _0x5e2fa7=a637_0xcdfd[_0x1c2544];return _0x5e2fa7;};const _0x304f20=a637_0x5e2f;'use strict';const Sequelize=require(_0x304f20('0x2'));module['exports']={'name':{'type':Sequelize[_0x304f20('0x0')]},'channel':{'type':Sequelize[_0x304f20('0x0')]},'description':{'type':Sequelize[_0x304f20('0x0')]},'status':{'type':Sequelize[_0x304f20('0x1')],'defaultValue':![]}}; \ No newline at end of file +const a637_0x4efa=['exports','STRING','BOOLEAN','sequelize'];(function(_0x17bfd0,_0x4efa01){const _0x23f4df=function(_0x17ee6f){while(--_0x17ee6f){_0x17bfd0['push'](_0x17bfd0['shift']());}};_0x23f4df(++_0x4efa01);}(a637_0x4efa,0x1f2));const a637_0x23f4=function(_0x17bfd0,_0x4efa01){_0x17bfd0=_0x17bfd0-0x0;let _0x23f4df=a637_0x4efa[_0x17bfd0];return _0x23f4df;};const _0x5c37b8=a637_0x23f4;'use strict';const Sequelize=require(_0x5c37b8('0x1'));module[_0x5c37b8('0x2')]={'name':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x5c37b8('0x3')]},'description':{'type':Sequelize[_0x5c37b8('0x3')]},'status':{'type':Sequelize[_0x5c37b8('0x0')],'defaultValue':![]}}; \ No newline at end of file diff --git a/server/api/trigger/trigger.controller.js b/server/api/trigger/trigger.controller.js index f7ce3ba..14f3944 100644 --- a/server/api/trigger/trigger.controller.js +++ b/server/api/trigger/trigger.controller.js @@ -1 +1 @@ -const a638_0x2437=['UserProfileSection','limit','merge','type','Unable\x20to\x20retrieve\x20the\x20current\x20user','intersection','query','Trigger','Condition','getAllConditions','order','where','attributes','sort','sequelize','send','offset','fieldName','include','count','undefined','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','json','body','model','getAnyConditions','fields','Action','then','error','update','findOne','user','autoAssociation','get','end','options','params','name','rawAttributes','status','includeAll','TriggerAllId','VIRTUAL','like','rows','create','getActions','Content-Range','map','pick','set','nolimit','filters','keys','api','destroy','addAction','UserProfileResource','../../mysqldb','TriggerId','stack','catch','lodash','key','Triggers','length','filter'];(function(_0x2f8076,_0x2437fe){const _0x5da817=function(_0x2e71ce){while(--_0x2e71ce){_0x2f8076['push'](_0x2f8076['shift']());}};_0x5da817(++_0x2437fe);}(a638_0x2437,0xda));const a638_0x5da8=function(_0x2f8076,_0x2437fe){_0x2f8076=_0x2f8076-0x0;let _0x5da817=a638_0x2437[_0x2f8076];return _0x5da817;};const _0x2bd065=a638_0x5da8;'use strict';const _=require(_0x2bd065('0x31')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x2bd065('0x29')),db=require(_0x2bd065('0x2d'))['db'],{Op}=require(_0x2bd065('0x0'));function respondWithResult(_0x2e71ce,_0x10c8af){return _0x10c8af=_0x10c8af||0xc8,function(_0x57c5f1){const _0x578f92=a638_0x5da8;if(_0x57c5f1)return _0x2e71ce['status'](_0x10c8af)[_0x578f92('0x8')](_0x57c5f1);};}function respondWithFilteredResult(_0x36f586,_0x26ff38){return function(_0x37e0e1){const _0x6805da=a638_0x5da8;if(_0x37e0e1){const _0x382151=_0x37e0e1[_0x6805da('0x5')],_0x2dd51b=_0x26ff38[_0x6805da('0x2')];let _0xeac555=_0x26ff38['offset']+_0x26ff38[_0x6805da('0x37')],_0x48aa0b;return _0xeac555>=_0x382151?(_0xeac555=_0x382151,_0x48aa0b=0xc8):_0x48aa0b=0xce,_0x36f586[_0x6805da('0x1a')](_0x48aa0b),_0x36f586[_0x6805da('0x25')](_0x6805da('0x22'),_0x2dd51b+'-'+_0xeac555+'/'+_0x382151)[_0x6805da('0x8')](_0x37e0e1);}return null;};}function saveUpdates(_0x5ec65a){return function(_0x23fcf2){const _0x58316a=a638_0x5da8;if(_0x23fcf2)return _0x23fcf2[_0x58316a('0x10')](_0x5ec65a)['then'](function(_0x2ef466){return _0x2ef466;});return null;};}function removeEntity(_0x4af403){return function(_0x57dc63){const _0x94c689=a638_0x5da8;if(_0x57dc63)return _0x57dc63['destroy']()[_0x94c689('0xe')](function(){const _0x5c8d41=_0x94c689,_0x513e59=_0x57dc63['get']({'plain':!![]}),_0x44a605=_0x5c8d41('0x33');return db[_0x5c8d41('0x2c')][_0x5c8d41('0x2a')]({'where':{'type':_0x44a605,'resourceId':_0x513e59['id']}})[_0x5c8d41('0xe')](function(){return _0x57dc63;});})[_0x94c689('0xe')](function(){const _0x52844f=_0x94c689;_0x4af403[_0x52844f('0x1a')](0xcc)[_0x52844f('0x15')]();});};}function handleEntityNotFound(_0x2662e4){return function(_0xf2bf12){return!_0xf2bf12&&_0x2662e4['sendStatus'](0x194),_0xf2bf12;};}function handleError(_0x557172,_0x615ac9){return _0x615ac9=_0x615ac9||0x1f4,function(_0xcd6613){const _0x5d97df=a638_0x5da8;logger[_0x5d97df('0xf')](_0xcd6613[_0x5d97df('0x2f')]),_0xcd6613[_0x5d97df('0x18')]&&delete _0xcd6613[_0x5d97df('0x18')],_0x557172['status'](_0x615ac9)[_0x5d97df('0x1')](_0xcd6613);};}exports['index']=function(_0x8ca413,_0xc31f16){const _0x39c9ac=_0x2bd065;let _0x3d98f4={};const _0x15803d={},_0x199492={'count':0x0,'rows':[]},_0x514d44=_[_0x39c9ac('0x23')](db['Trigger'][_0x39c9ac('0x19')],function(_0x4bcb47){const _0x22d5c1=_0x39c9ac;return{'name':_0x4bcb47[_0x22d5c1('0x3')],'type':_0x4bcb47[_0x22d5c1('0x39')][_0x22d5c1('0x32')]};});_0x15803d[_0x39c9ac('0xa')]=_['map'](_0x514d44,'name'),_0x15803d[_0x39c9ac('0x3c')]=_[_0x39c9ac('0x28')](_0x8ca413[_0x39c9ac('0x3c')]),_0x15803d[_0x39c9ac('0x27')]=_['intersection'](_0x15803d[_0x39c9ac('0xa')],_0x15803d[_0x39c9ac('0x3c')]),_0x3d98f4[_0x39c9ac('0x42')]=_['intersection'](_0x15803d['model'],qs[_0x39c9ac('0xc')](_0x8ca413[_0x39c9ac('0x3c')]['fields'])),_0x3d98f4[_0x39c9ac('0x42')]=_0x3d98f4[_0x39c9ac('0x42')]['length']?_0x3d98f4[_0x39c9ac('0x42')]:_0x15803d[_0x39c9ac('0xa')];typeof _0x8ca413[_0x39c9ac('0x3c')]['nolimit']===_0x39c9ac('0x6')&&(_0x3d98f4[_0x39c9ac('0x37')]=qs[_0x39c9ac('0x37')](_0x8ca413[_0x39c9ac('0x3c')]['limit']),_0x3d98f4[_0x39c9ac('0x2')]=qs[_0x39c9ac('0x2')](_0x8ca413['query']['offset']));_0x3d98f4[_0x39c9ac('0x40')]=qs[_0x39c9ac('0x43')](_0x8ca413[_0x39c9ac('0x3c')][_0x39c9ac('0x43')]),_0x3d98f4['where']=qs[_0x39c9ac('0x27')](_['pick'](_0x8ca413[_0x39c9ac('0x3c')],_0x15803d[_0x39c9ac('0x27')]),_0x514d44);_0x8ca413['query'][_0x39c9ac('0x35')]&&(_0x3d98f4['where']=_[_0x39c9ac('0x38')](_0x3d98f4[_0x39c9ac('0x41')],{[Op['or']]:_[_0x39c9ac('0x23')](_0x514d44,function(_0x342238){const _0xf287b7=_0x39c9ac;if(_0x342238[_0xf287b7('0x39')]!==_0xf287b7('0x1d')){const _0x3fe851={};return _0x3fe851[_0x342238[_0xf287b7('0x18')]]={[Op[_0xf287b7('0x1e')]]:'%'+_0x8ca413['query']['filter']+'%'},_0x3fe851;}})}));_0x3d98f4=_[_0x39c9ac('0x38')]({},_0x3d98f4,_0x8ca413[_0x39c9ac('0x16')]);const _0x3ba59f={'where':_0x3d98f4[_0x39c9ac('0x41')]};return db[_0x39c9ac('0x3d')][_0x39c9ac('0x5')](_0x3ba59f)[_0x39c9ac('0xe')](function(_0x546f0b){const _0x2fed1d=_0x39c9ac;return _0x199492[_0x2fed1d('0x5')]=_0x546f0b,_0x8ca413[_0x2fed1d('0x3c')][_0x2fed1d('0x1b')]&&(_0x3d98f4[_0x2fed1d('0x4')]=[{'all':!![]}]),db[_0x2fed1d('0x3d')]['findAll'](_0x3d98f4);})[_0x39c9ac('0xe')](function(_0x181b8e){const _0x5b10c9=_0x39c9ac;return _0x199492[_0x5b10c9('0x1f')]=_0x181b8e,_0x199492;})[_0x39c9ac('0xe')](respondWithFilteredResult(_0xc31f16,_0x3d98f4))[_0x39c9ac('0x30')](handleError(_0xc31f16,null));},exports['show']=function(_0x35b449,_0x4076ae){const _0x382a4c=_0x2bd065;let _0x1426d1={'raw':![],'where':{'id':_0x35b449[_0x382a4c('0x17')]['id']}};const _0x1e7ace={};return _0x1e7ace[_0x382a4c('0xa')]=_[_0x382a4c('0x28')](db[_0x382a4c('0x3d')][_0x382a4c('0x19')]),_0x1e7ace[_0x382a4c('0x3c')]=_['keys'](_0x35b449[_0x382a4c('0x3c')]),_0x1e7ace[_0x382a4c('0x27')]=_['intersection'](_0x1e7ace['model'],_0x1e7ace[_0x382a4c('0x3c')]),_0x1426d1[_0x382a4c('0x42')]=_[_0x382a4c('0x3b')](_0x1e7ace['model'],qs[_0x382a4c('0xc')](_0x35b449['query'][_0x382a4c('0xc')])),_0x1426d1[_0x382a4c('0x42')]=_0x1426d1['attributes'][_0x382a4c('0x34')]?_0x1426d1[_0x382a4c('0x42')]:_0x1e7ace[_0x382a4c('0xa')],_0x35b449['query'][_0x382a4c('0x1b')]&&(_0x1426d1[_0x382a4c('0x4')]=[{'all':!![]}]),_0x1426d1=_[_0x382a4c('0x38')]({},_0x1426d1,_0x35b449['options']),db[_0x382a4c('0x3d')][_0x382a4c('0x11')](_0x1426d1)[_0x382a4c('0xe')](handleEntityNotFound(_0x4076ae,null))[_0x382a4c('0xe')](respondWithResult(_0x4076ae,null))['catch'](handleError(_0x4076ae,null));},exports['create']=function(_0x336fe1,_0x5bf963){const _0x52f300=_0x2bd065;return db[_0x52f300('0x3d')][_0x52f300('0x20')](_0x336fe1[_0x52f300('0x9')],{})[_0x52f300('0xe')](function(_0x1696cc){const _0x5671f9=_0x52f300,_0x372f95=_0x336fe1[_0x5671f9('0x12')][_0x5671f9('0x14')]({'plain':!![]});if(!_0x372f95)throw new Error(_0x5671f9('0x3a'));if(_0x372f95['role']===_0x5671f9('0x12')){const _0x39b274=_0x1696cc[_0x5671f9('0x14')]({'plain':!![]}),_0x7780c1=_0x5671f9('0x33');return db[_0x5671f9('0x36')][_0x5671f9('0x11')]({'where':{'name':_0x7780c1,'userProfileId':_0x372f95['userProfileId']},'raw':!![]})['then'](function(_0x4d3531){const _0x139898=_0x5671f9;return _0x4d3531&&_0x4d3531[_0x139898('0x13')]===0x0?db[_0x139898('0x2c')][_0x139898('0x20')]({'name':_0x39b274[_0x139898('0x18')],'resourceId':_0x39b274['id'],'type':_0x4d3531[_0x139898('0x18')],'sectionId':_0x4d3531['id']},{})[_0x139898('0xe')](function(){return _0x1696cc;}):_0x1696cc;})[_0x5671f9('0x30')](function(_0x5b45ad){const _0x2f9489=_0x5671f9;logger['error'](_0x2f9489('0x7'),_0x5b45ad);throw _0x5b45ad;});}return _0x1696cc;})[_0x52f300('0xe')](respondWithResult(_0x5bf963,0xc9))[_0x52f300('0x30')](handleError(_0x5bf963,null));},exports[_0x2bd065('0x10')]=function(_0x512b5c,_0x204531){const _0x299dda=_0x2bd065;return _0x512b5c[_0x299dda('0x9')]['id']&&delete _0x512b5c[_0x299dda('0x9')]['id'],db[_0x299dda('0x3d')][_0x299dda('0x11')]({'where':{'id':_0x512b5c[_0x299dda('0x17')]['id']}})['then'](handleEntityNotFound(_0x204531,null))[_0x299dda('0xe')](saveUpdates(_0x512b5c[_0x299dda('0x9')],null))[_0x299dda('0xe')](respondWithResult(_0x204531,null))[_0x299dda('0x30')](handleError(_0x204531,null));},exports['destroy']=function(_0x26af41,_0x276b5f){const _0x47d65b=_0x2bd065;return db[_0x47d65b('0x3d')][_0x47d65b('0x11')]({'where':{'id':_0x26af41['params']['id']}})[_0x47d65b('0xe')](handleEntityNotFound(_0x276b5f,null))[_0x47d65b('0xe')](removeEntity(_0x276b5f,null))[_0x47d65b('0x30')](handleError(_0x276b5f,null));},exports['addAllCondition']=function(_0x46e5a1,_0x54c4dd){const _0x4af1bc=_0x2bd065;return _0x46e5a1['body']['id']&&delete _0x46e5a1[_0x4af1bc('0x9')]['id'],db['Trigger'][_0x4af1bc('0x11')]({'where':{'id':_0x46e5a1[_0x4af1bc('0x17')]['id']}})[_0x4af1bc('0xe')](handleEntityNotFound(_0x54c4dd,null))[_0x4af1bc('0xe')](function(_0x3e7a94){const _0x19fea5=_0x4af1bc;if(_0x3e7a94)return _0x46e5a1['body'][_0x19fea5('0x1c')]=_0x3e7a94['id'],db['Condition'][_0x19fea5('0x20')](_0x46e5a1[_0x19fea5('0x9')]);})[_0x4af1bc('0xe')](respondWithResult(_0x54c4dd,null))[_0x4af1bc('0x30')](handleError(_0x54c4dd,null));},exports['addAnyCondition']=function(_0x31955b,_0x5cc1cc){const _0x147237=_0x2bd065;return _0x31955b['body']['id']&&delete _0x31955b[_0x147237('0x9')]['id'],db[_0x147237('0x3d')]['findOne']({'where':{'id':_0x31955b[_0x147237('0x17')]['id']}})[_0x147237('0xe')](handleEntityNotFound(_0x5cc1cc,null))['then'](function(_0x3b4ac9){const _0x21cc7d=_0x147237;if(_0x3b4ac9)return _0x31955b[_0x21cc7d('0x9')]['TriggerAnyId']=_0x3b4ac9['id'],db[_0x21cc7d('0x3e')][_0x21cc7d('0x20')](_0x31955b['body']);})['then'](respondWithResult(_0x5cc1cc,null))[_0x147237('0x30')](handleError(_0x5cc1cc,null));},exports['getAllConditions']=function(_0x2a11c3,_0x36cbd3){const _0x4b9b14=_0x2bd065;let _0x1d13d5={};const _0x3d00dc={};let _0x3be6f4,_0x1439e4;return db['Trigger'][_0x4b9b14('0x11')]({'where':{'id':_0x2a11c3[_0x4b9b14('0x17')]['id']}})[_0x4b9b14('0xe')](handleEntityNotFound(_0x36cbd3,null))[_0x4b9b14('0xe')](function(_0x5f4c51){const _0xd2383d=_0x4b9b14;if(_0x5f4c51)return _0x3be6f4=_0x5f4c51,_0x3d00dc[_0xd2383d('0xa')]=_[_0xd2383d('0x28')](db[_0xd2383d('0x3e')][_0xd2383d('0x19')]),_0x3d00dc[_0xd2383d('0x3c')]=_[_0xd2383d('0x28')](_0x2a11c3[_0xd2383d('0x3c')]),_0x3d00dc[_0xd2383d('0x27')]=_[_0xd2383d('0x3b')](_0x3d00dc[_0xd2383d('0xa')],_0x3d00dc[_0xd2383d('0x3c')]),_0x1d13d5[_0xd2383d('0x42')]=_['intersection'](_0x3d00dc['model'],qs['fields'](_0x2a11c3[_0xd2383d('0x3c')][_0xd2383d('0xc')])),_0x1d13d5[_0xd2383d('0x42')]=_0x1d13d5[_0xd2383d('0x42')]['length']?_0x1d13d5['attributes']:_0x3d00dc[_0xd2383d('0xa')],_0x1d13d5['order']=qs[_0xd2383d('0x43')](_0x2a11c3[_0xd2383d('0x3c')][_0xd2383d('0x43')]),_0x1d13d5[_0xd2383d('0x41')]=qs[_0xd2383d('0x27')](_[_0xd2383d('0x24')](_0x2a11c3['query'],_0x3d00dc[_0xd2383d('0x27')])),_0x2a11c3['query']['filter']&&(_0x1d13d5['where']=_[_0xd2383d('0x38')](_0x1d13d5[_0xd2383d('0x41')],{[Op['or']]:_[_0xd2383d('0x23')](_0x1d13d5[_0xd2383d('0x42')],function(_0x53711c){const _0x17f893=_0xd2383d,_0x2bd631={};return _0x2bd631[_0x53711c]={[Op[_0x17f893('0x1e')]]:'%'+_0x2a11c3[_0x17f893('0x3c')][_0x17f893('0x35')]+'%'},_0x2bd631;})})),_0x1d13d5=_['merge']({},_0x1d13d5,_0x2a11c3[_0xd2383d('0x16')]),_0x3be6f4['getAllConditions'](_0x1d13d5);})[_0x4b9b14('0xe')](function(_0x2d2a14){const _0x397f96=_0x4b9b14;if(_0x2d2a14)return _0x1439e4=_0x2d2a14[_0x397f96('0x34')],typeof _0x2a11c3[_0x397f96('0x3c')][_0x397f96('0x26')]===_0x397f96('0x6')&&(_0x1d13d5['limit']=qs[_0x397f96('0x37')](_0x2a11c3[_0x397f96('0x3c')][_0x397f96('0x37')]),_0x1d13d5[_0x397f96('0x2')]=qs[_0x397f96('0x2')](_0x2a11c3[_0x397f96('0x3c')][_0x397f96('0x2')])),_0x3be6f4[_0x397f96('0x3f')](_0x1d13d5);})[_0x4b9b14('0xe')](function(_0x5bdfd1){if(_0x5bdfd1)return _0x5bdfd1?{'count':_0x1439e4,'rows':_0x5bdfd1}:null;})[_0x4b9b14('0xe')](respondWithResult(_0x36cbd3,null))['catch'](handleError(_0x36cbd3,null));},exports[_0x2bd065('0xb')]=function(_0xe3503e,_0x73e2f9){const _0xb5713f=_0x2bd065;let _0x4110cf={};const _0x56a4b4={};let _0xb85da6,_0x118752;return db[_0xb5713f('0x3d')][_0xb5713f('0x11')]({'where':{'id':_0xe3503e[_0xb5713f('0x17')]['id']}})['then'](handleEntityNotFound(_0x73e2f9,null))[_0xb5713f('0xe')](function(_0x18a323){const _0x5dea52=_0xb5713f;if(_0x18a323)return _0xb85da6=_0x18a323,_0x56a4b4[_0x5dea52('0xa')]=_[_0x5dea52('0x28')](db['Condition']['rawAttributes']),_0x56a4b4['query']=_[_0x5dea52('0x28')](_0xe3503e['query']),_0x56a4b4[_0x5dea52('0x27')]=_[_0x5dea52('0x3b')](_0x56a4b4[_0x5dea52('0xa')],_0x56a4b4[_0x5dea52('0x3c')]),_0x4110cf['attributes']=_[_0x5dea52('0x3b')](_0x56a4b4[_0x5dea52('0xa')],qs[_0x5dea52('0xc')](_0xe3503e['query'][_0x5dea52('0xc')])),_0x4110cf[_0x5dea52('0x42')]=_0x4110cf[_0x5dea52('0x42')][_0x5dea52('0x34')]?_0x4110cf[_0x5dea52('0x42')]:_0x56a4b4[_0x5dea52('0xa')],_0x4110cf[_0x5dea52('0x40')]=qs[_0x5dea52('0x43')](_0xe3503e[_0x5dea52('0x3c')][_0x5dea52('0x43')]),_0x4110cf[_0x5dea52('0x41')]=qs[_0x5dea52('0x27')](_[_0x5dea52('0x24')](_0xe3503e['query'],_0x56a4b4[_0x5dea52('0x27')])),_0xe3503e[_0x5dea52('0x3c')][_0x5dea52('0x35')]&&(_0x4110cf['where']=_[_0x5dea52('0x38')](_0x4110cf[_0x5dea52('0x41')],{[Op['or']]:_['map'](_0x4110cf[_0x5dea52('0x42')],function(_0x50f91e){const _0x49cec2=_0x5dea52,_0x317d41={};return _0x317d41[_0x50f91e]={[Op[_0x49cec2('0x1e')]]:'%'+_0xe3503e[_0x49cec2('0x3c')]['filter']+'%'},_0x317d41;})})),_0x4110cf=_[_0x5dea52('0x38')]({},_0x4110cf,_0xe3503e[_0x5dea52('0x16')]),_0xb85da6[_0x5dea52('0xb')](_0x4110cf);})[_0xb5713f('0xe')](function(_0xd79f97){const _0x4b0497=_0xb5713f;if(_0xd79f97)return _0x118752=_0xd79f97[_0x4b0497('0x34')],typeof _0xe3503e['query'][_0x4b0497('0x26')]==='undefined'&&(_0x4110cf[_0x4b0497('0x37')]=qs['limit'](_0xe3503e['query'][_0x4b0497('0x37')]),_0x4110cf[_0x4b0497('0x2')]=qs[_0x4b0497('0x2')](_0xe3503e[_0x4b0497('0x3c')]['offset'])),_0xb85da6['getAnyConditions'](_0x4110cf);})[_0xb5713f('0xe')](function(_0x5dd9b1){if(_0x5dd9b1)return _0x5dd9b1?{'count':_0x118752,'rows':_0x5dd9b1}:null;})[_0xb5713f('0xe')](respondWithResult(_0x73e2f9,null))[_0xb5713f('0x30')](handleError(_0x73e2f9,null));},exports[_0x2bd065('0x2b')]=function(_0x409ad7,_0x4d9904){const _0x3af2b0=_0x2bd065;return _0x409ad7[_0x3af2b0('0x9')]['id']&&delete _0x409ad7[_0x3af2b0('0x9')]['id'],db['Trigger'][_0x3af2b0('0x11')]({'where':{'id':_0x409ad7[_0x3af2b0('0x17')]['id']}})[_0x3af2b0('0xe')](handleEntityNotFound(_0x4d9904,null))[_0x3af2b0('0xe')](function(_0x507716){const _0x31d184=_0x3af2b0;if(_0x507716)return _0x409ad7['body'][_0x31d184('0x2e')]=_0x507716['id'],db[_0x31d184('0xd')][_0x31d184('0x20')](_0x409ad7['body']);})[_0x3af2b0('0xe')](respondWithResult(_0x4d9904,null))['catch'](handleError(_0x4d9904,null));},exports['getActions']=function(_0x5df8e9,_0x40bd11){const _0x532753=_0x2bd065;let _0x3a19b6={};const _0x25a1ab={};let _0x2e13a8,_0x1973e8;return db[_0x532753('0x3d')][_0x532753('0x11')]({'where':{'id':_0x5df8e9[_0x532753('0x17')]['id']}})[_0x532753('0xe')](handleEntityNotFound(_0x40bd11,null))[_0x532753('0xe')](function(_0x3a130e){const _0x1a3134=_0x532753;if(_0x3a130e)return _0x2e13a8=_0x3a130e,_0x25a1ab[_0x1a3134('0xa')]=_[_0x1a3134('0x28')](db[_0x1a3134('0xd')][_0x1a3134('0x19')]),_0x25a1ab[_0x1a3134('0x3c')]=_[_0x1a3134('0x28')](_0x5df8e9[_0x1a3134('0x3c')]),_0x25a1ab[_0x1a3134('0x27')]=_[_0x1a3134('0x3b')](_0x25a1ab[_0x1a3134('0xa')],_0x25a1ab[_0x1a3134('0x3c')]),_0x3a19b6['attributes']=_['intersection'](_0x25a1ab[_0x1a3134('0xa')],qs[_0x1a3134('0xc')](_0x5df8e9[_0x1a3134('0x3c')]['fields'])),_0x3a19b6[_0x1a3134('0x42')]=_0x3a19b6[_0x1a3134('0x42')][_0x1a3134('0x34')]?_0x3a19b6[_0x1a3134('0x42')]:_0x25a1ab[_0x1a3134('0xa')],_0x3a19b6[_0x1a3134('0x40')]=qs[_0x1a3134('0x43')](_0x5df8e9[_0x1a3134('0x3c')][_0x1a3134('0x43')]),_0x3a19b6[_0x1a3134('0x41')]=qs[_0x1a3134('0x27')](_[_0x1a3134('0x24')](_0x5df8e9[_0x1a3134('0x3c')],_0x25a1ab[_0x1a3134('0x27')])),_0x5df8e9[_0x1a3134('0x3c')]['filter']&&(_0x3a19b6['where']=_['merge'](_0x3a19b6[_0x1a3134('0x41')],{[Op['or']]:_[_0x1a3134('0x23')](_0x3a19b6['attributes'],function(_0x4b654a){const _0x2a1b3c=_0x1a3134,_0x15069a={};return _0x15069a[_0x4b654a]={[Op[_0x2a1b3c('0x1e')]]:'%'+_0x5df8e9[_0x2a1b3c('0x3c')][_0x2a1b3c('0x35')]+'%'},_0x15069a;})})),_0x3a19b6=_[_0x1a3134('0x38')]({},_0x3a19b6,_0x5df8e9[_0x1a3134('0x16')]),_0x2e13a8[_0x1a3134('0x21')](_0x3a19b6);})['then'](function(_0x452bb0){const _0x2b1c6c=_0x532753;if(_0x452bb0)return _0x1973e8=_0x452bb0[_0x2b1c6c('0x34')],typeof _0x5df8e9[_0x2b1c6c('0x3c')][_0x2b1c6c('0x26')]===_0x2b1c6c('0x6')&&(_0x3a19b6[_0x2b1c6c('0x37')]=qs[_0x2b1c6c('0x37')](_0x5df8e9['query'][_0x2b1c6c('0x37')]),_0x3a19b6[_0x2b1c6c('0x2')]=qs[_0x2b1c6c('0x2')](_0x5df8e9[_0x2b1c6c('0x3c')][_0x2b1c6c('0x2')])),_0x2e13a8['getActions'](_0x3a19b6);})['then'](function(_0x5866e6){if(_0x5866e6)return _0x5866e6?{'count':_0x1973e8,'rows':_0x5866e6}:null;})[_0x532753('0xe')](respondWithResult(_0x40bd11,null))[_0x532753('0x30')](handleError(_0x40bd11,null));}; \ No newline at end of file +const a638_0x4c6c=['userProfileId','sequelize','../../components/parsers/qs','TriggerAllId','key','query','offset','rawAttributes','lodash','Unable\x20to\x20retrieve\x20the\x20current\x20user','destroy','order','addAllCondition','stack','addAnyCondition','rows','intersection','name','merge','Action','UserProfileResource','Content-Range','fieldName','filters','nolimit','limit','catch','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','like','pick','keys','../../mysqldb','set','get','Condition','fields','Triggers','getActions','undefined','UserProfileSection','map','sendStatus','findOne','getAllConditions','create','api','length','filter','includeAll','sort','options','model','params','then','status','getAnyConditions','json','Trigger','TriggerAnyId','where','send','role','end','findAll','addAction','user','type','VIRTUAL','../../config/logger','count','body','attributes','update','error'];(function(_0x556ed5,_0x4c6c15){const _0x3d473f=function(_0xeb935){while(--_0xeb935){_0x556ed5['push'](_0x556ed5['shift']());}};_0x3d473f(++_0x4c6c15);}(a638_0x4c6c,0x7d));const a638_0x3d47=function(_0x556ed5,_0x4c6c15){_0x556ed5=_0x556ed5-0x0;let _0x3d473f=a638_0x4c6c[_0x556ed5];return _0x3d473f;};const _0x31926a=a638_0x3d47;'use strict';const _=require(_0x31926a('0x1f')),qs=require(_0x31926a('0x19')),logger=require(_0x31926a('0x11'))(_0x31926a('0x44')),db=require(_0x31926a('0x36'))['db'],{Op}=require(_0x31926a('0x18'));function respondWithResult(_0xeb935,_0x1b3b6f){return _0x1b3b6f=_0x1b3b6f||0xc8,function(_0x57a308){const _0x3e1391=a638_0x3d47;if(_0x57a308)return _0xeb935[_0x3e1391('0x3')](_0x1b3b6f)[_0x3e1391('0x5')](_0x57a308);};}function respondWithFilteredResult(_0x2bb836,_0xd52d16){return function(_0x232405){const _0x1a3c95=a638_0x3d47;if(_0x232405){const _0xbd16f6=_0x232405['count'],_0xc7ac5c=_0xd52d16['offset'];let _0x301a0e=_0xd52d16[_0x1a3c95('0x1d')]+_0xd52d16[_0x1a3c95('0x30')],_0x5b6d3d;return _0x301a0e>=_0xbd16f6?(_0x301a0e=_0xbd16f6,_0x5b6d3d=0xc8):_0x5b6d3d=0xce,_0x2bb836[_0x1a3c95('0x3')](_0x5b6d3d),_0x2bb836[_0x1a3c95('0x37')](_0x1a3c95('0x2c'),_0xc7ac5c+'-'+_0x301a0e+'/'+_0xbd16f6)[_0x1a3c95('0x5')](_0x232405);}return null;};}function saveUpdates(_0x1ef7b1){return function(_0x4922b3){const _0x41f515=a638_0x3d47;if(_0x4922b3)return _0x4922b3[_0x41f515('0x15')](_0x1ef7b1)[_0x41f515('0x2')](function(_0xd69ecc){return _0xd69ecc;});return null;};}function removeEntity(_0x593979){return function(_0x17a80e){const _0xe1e1b2=a638_0x3d47;if(_0x17a80e)return _0x17a80e[_0xe1e1b2('0x21')]()[_0xe1e1b2('0x2')](function(){const _0x1fb0d2=_0x17a80e['get']({'plain':!![]}),_0x1e6144='Triggers';return db['UserProfileResource']['destroy']({'where':{'type':_0x1e6144,'resourceId':_0x1fb0d2['id']}})['then'](function(){return _0x17a80e;});})[_0xe1e1b2('0x2')](function(){const _0x43300d=_0xe1e1b2;_0x593979[_0x43300d('0x3')](0xcc)[_0x43300d('0xb')]();});};}function handleEntityNotFound(_0x49a312){return function(_0x36cd7b){const _0xa986d1=a638_0x3d47;return!_0x36cd7b&&_0x49a312[_0xa986d1('0x40')](0x194),_0x36cd7b;};}function handleError(_0x4fd662,_0x35af7f){return _0x35af7f=_0x35af7f||0x1f4,function(_0x2f094e){const _0x3a5e56=a638_0x3d47;logger[_0x3a5e56('0x16')](_0x2f094e[_0x3a5e56('0x24')]),_0x2f094e[_0x3a5e56('0x28')]&&delete _0x2f094e[_0x3a5e56('0x28')],_0x4fd662[_0x3a5e56('0x3')](_0x35af7f)[_0x3a5e56('0x9')](_0x2f094e);};}exports['index']=function(_0xc70cb4,_0xbdb700){const _0x1c286a=_0x31926a;let _0xa1db58={};const _0x185048={},_0x32b938={'count':0x0,'rows':[]},_0x3b9f0e=_[_0x1c286a('0x3f')](db['Trigger'][_0x1c286a('0x1e')],function(_0x278d62){const _0x2f8371=_0x1c286a;return{'name':_0x278d62[_0x2f8371('0x2d')],'type':_0x278d62[_0x2f8371('0xf')][_0x2f8371('0x1b')]};});_0x185048['model']=_['map'](_0x3b9f0e,_0x1c286a('0x28')),_0x185048[_0x1c286a('0x1c')]=_['keys'](_0xc70cb4['query']),_0x185048[_0x1c286a('0x2e')]=_['intersection'](_0x185048[_0x1c286a('0x0')],_0x185048['query']),_0xa1db58[_0x1c286a('0x14')]=_[_0x1c286a('0x27')](_0x185048[_0x1c286a('0x0')],qs[_0x1c286a('0x3a')](_0xc70cb4[_0x1c286a('0x1c')][_0x1c286a('0x3a')])),_0xa1db58['attributes']=_0xa1db58[_0x1c286a('0x14')][_0x1c286a('0x45')]?_0xa1db58[_0x1c286a('0x14')]:_0x185048[_0x1c286a('0x0')];typeof _0xc70cb4[_0x1c286a('0x1c')][_0x1c286a('0x2f')]==='undefined'&&(_0xa1db58[_0x1c286a('0x30')]=qs[_0x1c286a('0x30')](_0xc70cb4[_0x1c286a('0x1c')][_0x1c286a('0x30')]),_0xa1db58['offset']=qs[_0x1c286a('0x1d')](_0xc70cb4['query']['offset']));_0xa1db58['order']=qs[_0x1c286a('0x48')](_0xc70cb4[_0x1c286a('0x1c')][_0x1c286a('0x48')]),_0xa1db58[_0x1c286a('0x8')]=qs[_0x1c286a('0x2e')](_[_0x1c286a('0x34')](_0xc70cb4[_0x1c286a('0x1c')],_0x185048[_0x1c286a('0x2e')]),_0x3b9f0e);_0xc70cb4['query'][_0x1c286a('0x46')]&&(_0xa1db58[_0x1c286a('0x8')]=_[_0x1c286a('0x29')](_0xa1db58[_0x1c286a('0x8')],{[Op['or']]:_[_0x1c286a('0x3f')](_0x3b9f0e,function(_0xcccec3){const _0x54e2d7=_0x1c286a;if(_0xcccec3[_0x54e2d7('0xf')]!==_0x54e2d7('0x10')){const _0x2002f6={};return _0x2002f6[_0xcccec3[_0x54e2d7('0x28')]]={[Op[_0x54e2d7('0x33')]]:'%'+_0xc70cb4[_0x54e2d7('0x1c')][_0x54e2d7('0x46')]+'%'},_0x2002f6;}})}));_0xa1db58=_[_0x1c286a('0x29')]({},_0xa1db58,_0xc70cb4[_0x1c286a('0x49')]);const _0x1db22e={'where':_0xa1db58[_0x1c286a('0x8')]};return db['Trigger'][_0x1c286a('0x12')](_0x1db22e)['then'](function(_0x3039e6){const _0x15d8f5=_0x1c286a;return _0x32b938[_0x15d8f5('0x12')]=_0x3039e6,_0xc70cb4[_0x15d8f5('0x1c')][_0x15d8f5('0x47')]&&(_0xa1db58['include']=[{'all':!![]}]),db[_0x15d8f5('0x6')][_0x15d8f5('0xc')](_0xa1db58);})[_0x1c286a('0x2')](function(_0x3b395d){const _0x54f1b6=_0x1c286a;return _0x32b938[_0x54f1b6('0x26')]=_0x3b395d,_0x32b938;})['then'](respondWithFilteredResult(_0xbdb700,_0xa1db58))[_0x1c286a('0x31')](handleError(_0xbdb700,null));},exports['show']=function(_0x569531,_0x57aba7){const _0x45970f=_0x31926a;let _0x412a1a={'raw':![],'where':{'id':_0x569531[_0x45970f('0x1')]['id']}};const _0xe76483={};return _0xe76483[_0x45970f('0x0')]=_[_0x45970f('0x35')](db[_0x45970f('0x6')][_0x45970f('0x1e')]),_0xe76483[_0x45970f('0x1c')]=_[_0x45970f('0x35')](_0x569531[_0x45970f('0x1c')]),_0xe76483[_0x45970f('0x2e')]=_[_0x45970f('0x27')](_0xe76483['model'],_0xe76483[_0x45970f('0x1c')]),_0x412a1a[_0x45970f('0x14')]=_[_0x45970f('0x27')](_0xe76483[_0x45970f('0x0')],qs[_0x45970f('0x3a')](_0x569531['query'][_0x45970f('0x3a')])),_0x412a1a[_0x45970f('0x14')]=_0x412a1a[_0x45970f('0x14')][_0x45970f('0x45')]?_0x412a1a[_0x45970f('0x14')]:_0xe76483[_0x45970f('0x0')],_0x569531[_0x45970f('0x1c')][_0x45970f('0x47')]&&(_0x412a1a['include']=[{'all':!![]}]),_0x412a1a=_['merge']({},_0x412a1a,_0x569531[_0x45970f('0x49')]),db['Trigger'][_0x45970f('0x41')](_0x412a1a)[_0x45970f('0x2')](handleEntityNotFound(_0x57aba7,null))[_0x45970f('0x2')](respondWithResult(_0x57aba7,null))['catch'](handleError(_0x57aba7,null));},exports[_0x31926a('0x43')]=function(_0x17fa39,_0x4cd7e5){const _0x5ce405=_0x31926a;return db[_0x5ce405('0x6')]['create'](_0x17fa39['body'],{})['then'](function(_0x82181f){const _0x2c9242=_0x5ce405,_0x20f6ab=_0x17fa39[_0x2c9242('0xe')][_0x2c9242('0x38')]({'plain':!![]});if(!_0x20f6ab)throw new Error(_0x2c9242('0x20'));if(_0x20f6ab[_0x2c9242('0xa')]===_0x2c9242('0xe')){const _0x27872b=_0x82181f[_0x2c9242('0x38')]({'plain':!![]}),_0x516e0e=_0x2c9242('0x3b');return db[_0x2c9242('0x3e')][_0x2c9242('0x41')]({'where':{'name':_0x516e0e,'userProfileId':_0x20f6ab[_0x2c9242('0x17')]},'raw':!![]})['then'](function(_0x1a2545){const _0x434fd3=_0x2c9242;return _0x1a2545&&_0x1a2545['autoAssociation']===0x0?db[_0x434fd3('0x2b')]['create']({'name':_0x27872b[_0x434fd3('0x28')],'resourceId':_0x27872b['id'],'type':_0x1a2545['name'],'sectionId':_0x1a2545['id']},{})[_0x434fd3('0x2')](function(){return _0x82181f;}):_0x82181f;})[_0x2c9242('0x31')](function(_0x333f7a){const _0x28ce0b=_0x2c9242;logger['error'](_0x28ce0b('0x32'),_0x333f7a);throw _0x333f7a;});}return _0x82181f;})[_0x5ce405('0x2')](respondWithResult(_0x4cd7e5,0xc9))[_0x5ce405('0x31')](handleError(_0x4cd7e5,null));},exports[_0x31926a('0x15')]=function(_0x6487b4,_0x257e34){const _0x1821ec=_0x31926a;return _0x6487b4[_0x1821ec('0x13')]['id']&&delete _0x6487b4[_0x1821ec('0x13')]['id'],db[_0x1821ec('0x6')][_0x1821ec('0x41')]({'where':{'id':_0x6487b4[_0x1821ec('0x1')]['id']}})[_0x1821ec('0x2')](handleEntityNotFound(_0x257e34,null))['then'](saveUpdates(_0x6487b4['body'],null))[_0x1821ec('0x2')](respondWithResult(_0x257e34,null))[_0x1821ec('0x31')](handleError(_0x257e34,null));},exports[_0x31926a('0x21')]=function(_0x45184e,_0x294706){const _0x282585=_0x31926a;return db[_0x282585('0x6')][_0x282585('0x41')]({'where':{'id':_0x45184e[_0x282585('0x1')]['id']}})[_0x282585('0x2')](handleEntityNotFound(_0x294706,null))[_0x282585('0x2')](removeEntity(_0x294706,null))[_0x282585('0x31')](handleError(_0x294706,null));},exports[_0x31926a('0x23')]=function(_0x45d331,_0x4c2d19){const _0x3acb2d=_0x31926a;return _0x45d331[_0x3acb2d('0x13')]['id']&&delete _0x45d331[_0x3acb2d('0x13')]['id'],db[_0x3acb2d('0x6')]['findOne']({'where':{'id':_0x45d331['params']['id']}})['then'](handleEntityNotFound(_0x4c2d19,null))[_0x3acb2d('0x2')](function(_0x1bfef9){const _0x430478=_0x3acb2d;if(_0x1bfef9)return _0x45d331[_0x430478('0x13')][_0x430478('0x1a')]=_0x1bfef9['id'],db[_0x430478('0x39')]['create'](_0x45d331[_0x430478('0x13')]);})[_0x3acb2d('0x2')](respondWithResult(_0x4c2d19,null))[_0x3acb2d('0x31')](handleError(_0x4c2d19,null));},exports[_0x31926a('0x25')]=function(_0x68c9a4,_0x1c27c6){const _0x300fb5=_0x31926a;return _0x68c9a4['body']['id']&&delete _0x68c9a4[_0x300fb5('0x13')]['id'],db['Trigger'][_0x300fb5('0x41')]({'where':{'id':_0x68c9a4[_0x300fb5('0x1')]['id']}})['then'](handleEntityNotFound(_0x1c27c6,null))['then'](function(_0x1c3e1a){const _0x5b7c1f=_0x300fb5;if(_0x1c3e1a)return _0x68c9a4['body'][_0x5b7c1f('0x7')]=_0x1c3e1a['id'],db[_0x5b7c1f('0x39')][_0x5b7c1f('0x43')](_0x68c9a4[_0x5b7c1f('0x13')]);})['then'](respondWithResult(_0x1c27c6,null))[_0x300fb5('0x31')](handleError(_0x1c27c6,null));},exports[_0x31926a('0x42')]=function(_0x58936e,_0x589734){const _0x35cdac=_0x31926a;let _0x5582a9={};const _0x2fca71={};let _0x399476,_0x325fae;return db[_0x35cdac('0x6')][_0x35cdac('0x41')]({'where':{'id':_0x58936e[_0x35cdac('0x1')]['id']}})[_0x35cdac('0x2')](handleEntityNotFound(_0x589734,null))[_0x35cdac('0x2')](function(_0x112c90){const _0x141806=_0x35cdac;if(_0x112c90)return _0x399476=_0x112c90,_0x2fca71['model']=_[_0x141806('0x35')](db[_0x141806('0x39')][_0x141806('0x1e')]),_0x2fca71[_0x141806('0x1c')]=_[_0x141806('0x35')](_0x58936e[_0x141806('0x1c')]),_0x2fca71['filters']=_[_0x141806('0x27')](_0x2fca71[_0x141806('0x0')],_0x2fca71[_0x141806('0x1c')]),_0x5582a9[_0x141806('0x14')]=_[_0x141806('0x27')](_0x2fca71[_0x141806('0x0')],qs[_0x141806('0x3a')](_0x58936e[_0x141806('0x1c')][_0x141806('0x3a')])),_0x5582a9[_0x141806('0x14')]=_0x5582a9[_0x141806('0x14')][_0x141806('0x45')]?_0x5582a9[_0x141806('0x14')]:_0x2fca71[_0x141806('0x0')],_0x5582a9['order']=qs[_0x141806('0x48')](_0x58936e[_0x141806('0x1c')][_0x141806('0x48')]),_0x5582a9[_0x141806('0x8')]=qs[_0x141806('0x2e')](_[_0x141806('0x34')](_0x58936e['query'],_0x2fca71[_0x141806('0x2e')])),_0x58936e[_0x141806('0x1c')][_0x141806('0x46')]&&(_0x5582a9[_0x141806('0x8')]=_[_0x141806('0x29')](_0x5582a9[_0x141806('0x8')],{[Op['or']]:_[_0x141806('0x3f')](_0x5582a9[_0x141806('0x14')],function(_0xdd99){const _0x10943f=_0x141806,_0x5abb8e={};return _0x5abb8e[_0xdd99]={[Op[_0x10943f('0x33')]]:'%'+_0x58936e[_0x10943f('0x1c')]['filter']+'%'},_0x5abb8e;})})),_0x5582a9=_['merge']({},_0x5582a9,_0x58936e[_0x141806('0x49')]),_0x399476['getAllConditions'](_0x5582a9);})[_0x35cdac('0x2')](function(_0xdb24bd){const _0x48cff2=_0x35cdac;if(_0xdb24bd)return _0x325fae=_0xdb24bd[_0x48cff2('0x45')],typeof _0x58936e['query'][_0x48cff2('0x2f')]===_0x48cff2('0x3d')&&(_0x5582a9[_0x48cff2('0x30')]=qs[_0x48cff2('0x30')](_0x58936e['query']['limit']),_0x5582a9[_0x48cff2('0x1d')]=qs[_0x48cff2('0x1d')](_0x58936e['query'][_0x48cff2('0x1d')])),_0x399476[_0x48cff2('0x42')](_0x5582a9);})[_0x35cdac('0x2')](function(_0x32155e){if(_0x32155e)return _0x32155e?{'count':_0x325fae,'rows':_0x32155e}:null;})[_0x35cdac('0x2')](respondWithResult(_0x589734,null))['catch'](handleError(_0x589734,null));},exports[_0x31926a('0x4')]=function(_0x5b9a70,_0x279fd1){const _0x4b5a6b=_0x31926a;let _0x2327e2={};const _0x14782b={};let _0x47e05d,_0x36c446;return db[_0x4b5a6b('0x6')][_0x4b5a6b('0x41')]({'where':{'id':_0x5b9a70[_0x4b5a6b('0x1')]['id']}})[_0x4b5a6b('0x2')](handleEntityNotFound(_0x279fd1,null))[_0x4b5a6b('0x2')](function(_0x4f1e06){const _0x12b632=_0x4b5a6b;if(_0x4f1e06)return _0x47e05d=_0x4f1e06,_0x14782b['model']=_['keys'](db[_0x12b632('0x39')][_0x12b632('0x1e')]),_0x14782b[_0x12b632('0x1c')]=_[_0x12b632('0x35')](_0x5b9a70[_0x12b632('0x1c')]),_0x14782b[_0x12b632('0x2e')]=_['intersection'](_0x14782b[_0x12b632('0x0')],_0x14782b[_0x12b632('0x1c')]),_0x2327e2[_0x12b632('0x14')]=_[_0x12b632('0x27')](_0x14782b['model'],qs[_0x12b632('0x3a')](_0x5b9a70['query'][_0x12b632('0x3a')])),_0x2327e2[_0x12b632('0x14')]=_0x2327e2['attributes']['length']?_0x2327e2[_0x12b632('0x14')]:_0x14782b[_0x12b632('0x0')],_0x2327e2[_0x12b632('0x22')]=qs[_0x12b632('0x48')](_0x5b9a70['query'][_0x12b632('0x48')]),_0x2327e2['where']=qs[_0x12b632('0x2e')](_[_0x12b632('0x34')](_0x5b9a70[_0x12b632('0x1c')],_0x14782b[_0x12b632('0x2e')])),_0x5b9a70[_0x12b632('0x1c')][_0x12b632('0x46')]&&(_0x2327e2[_0x12b632('0x8')]=_[_0x12b632('0x29')](_0x2327e2[_0x12b632('0x8')],{[Op['or']]:_['map'](_0x2327e2['attributes'],function(_0xd0efb2){const _0x218129=_0x12b632,_0x1efb83={};return _0x1efb83[_0xd0efb2]={[Op[_0x218129('0x33')]]:'%'+_0x5b9a70[_0x218129('0x1c')][_0x218129('0x46')]+'%'},_0x1efb83;})})),_0x2327e2=_[_0x12b632('0x29')]({},_0x2327e2,_0x5b9a70[_0x12b632('0x49')]),_0x47e05d['getAnyConditions'](_0x2327e2);})[_0x4b5a6b('0x2')](function(_0x181d67){const _0x26f532=_0x4b5a6b;if(_0x181d67)return _0x36c446=_0x181d67[_0x26f532('0x45')],typeof _0x5b9a70['query']['nolimit']===_0x26f532('0x3d')&&(_0x2327e2[_0x26f532('0x30')]=qs[_0x26f532('0x30')](_0x5b9a70['query'][_0x26f532('0x30')]),_0x2327e2[_0x26f532('0x1d')]=qs[_0x26f532('0x1d')](_0x5b9a70[_0x26f532('0x1c')][_0x26f532('0x1d')])),_0x47e05d['getAnyConditions'](_0x2327e2);})[_0x4b5a6b('0x2')](function(_0x1294d6){if(_0x1294d6)return _0x1294d6?{'count':_0x36c446,'rows':_0x1294d6}:null;})['then'](respondWithResult(_0x279fd1,null))[_0x4b5a6b('0x31')](handleError(_0x279fd1,null));},exports[_0x31926a('0xd')]=function(_0x5b3faf,_0x10e85e){const _0x3f3e03=_0x31926a;return _0x5b3faf[_0x3f3e03('0x13')]['id']&&delete _0x5b3faf['body']['id'],db[_0x3f3e03('0x6')][_0x3f3e03('0x41')]({'where':{'id':_0x5b3faf[_0x3f3e03('0x1')]['id']}})[_0x3f3e03('0x2')](handleEntityNotFound(_0x10e85e,null))[_0x3f3e03('0x2')](function(_0x4eaadd){const _0x36ade7=_0x3f3e03;if(_0x4eaadd)return _0x5b3faf[_0x36ade7('0x13')]['TriggerId']=_0x4eaadd['id'],db[_0x36ade7('0x2a')][_0x36ade7('0x43')](_0x5b3faf['body']);})[_0x3f3e03('0x2')](respondWithResult(_0x10e85e,null))[_0x3f3e03('0x31')](handleError(_0x10e85e,null));},exports[_0x31926a('0x3c')]=function(_0x545867,_0x5e396f){const _0x3376cb=_0x31926a;let _0x467576={};const _0x1d69d4={};let _0x1f8636,_0x23f5ae;return db[_0x3376cb('0x6')][_0x3376cb('0x41')]({'where':{'id':_0x545867[_0x3376cb('0x1')]['id']}})[_0x3376cb('0x2')](handleEntityNotFound(_0x5e396f,null))['then'](function(_0x21ac52){const _0x531a5a=_0x3376cb;if(_0x21ac52)return _0x1f8636=_0x21ac52,_0x1d69d4['model']=_['keys'](db[_0x531a5a('0x2a')][_0x531a5a('0x1e')]),_0x1d69d4['query']=_[_0x531a5a('0x35')](_0x545867['query']),_0x1d69d4[_0x531a5a('0x2e')]=_[_0x531a5a('0x27')](_0x1d69d4[_0x531a5a('0x0')],_0x1d69d4[_0x531a5a('0x1c')]),_0x467576[_0x531a5a('0x14')]=_['intersection'](_0x1d69d4[_0x531a5a('0x0')],qs[_0x531a5a('0x3a')](_0x545867[_0x531a5a('0x1c')]['fields'])),_0x467576[_0x531a5a('0x14')]=_0x467576[_0x531a5a('0x14')][_0x531a5a('0x45')]?_0x467576[_0x531a5a('0x14')]:_0x1d69d4[_0x531a5a('0x0')],_0x467576['order']=qs['sort'](_0x545867[_0x531a5a('0x1c')][_0x531a5a('0x48')]),_0x467576[_0x531a5a('0x8')]=qs[_0x531a5a('0x2e')](_[_0x531a5a('0x34')](_0x545867[_0x531a5a('0x1c')],_0x1d69d4['filters'])),_0x545867['query'][_0x531a5a('0x46')]&&(_0x467576[_0x531a5a('0x8')]=_[_0x531a5a('0x29')](_0x467576[_0x531a5a('0x8')],{[Op['or']]:_['map'](_0x467576[_0x531a5a('0x14')],function(_0x473e43){const _0x4dfb71=_0x531a5a,_0x13bd53={};return _0x13bd53[_0x473e43]={[Op[_0x4dfb71('0x33')]]:'%'+_0x545867[_0x4dfb71('0x1c')][_0x4dfb71('0x46')]+'%'},_0x13bd53;})})),_0x467576=_[_0x531a5a('0x29')]({},_0x467576,_0x545867[_0x531a5a('0x49')]),_0x1f8636[_0x531a5a('0x3c')](_0x467576);})[_0x3376cb('0x2')](function(_0x4c9788){const _0x2b4df7=_0x3376cb;if(_0x4c9788)return _0x23f5ae=_0x4c9788[_0x2b4df7('0x45')],typeof _0x545867[_0x2b4df7('0x1c')]['nolimit']===_0x2b4df7('0x3d')&&(_0x467576[_0x2b4df7('0x30')]=qs[_0x2b4df7('0x30')](_0x545867['query'][_0x2b4df7('0x30')]),_0x467576[_0x2b4df7('0x1d')]=qs[_0x2b4df7('0x1d')](_0x545867['query'][_0x2b4df7('0x1d')])),_0x1f8636[_0x2b4df7('0x3c')](_0x467576);})[_0x3376cb('0x2')](function(_0x174f57){if(_0x174f57)return _0x174f57?{'count':_0x23f5ae,'rows':_0x174f57}:null;})[_0x3376cb('0x2')](respondWithResult(_0x5e396f,null))[_0x3376cb('0x31')](handleError(_0x5e396f,null));}; \ No newline at end of file diff --git a/server/api/trigger/trigger.model.js b/server/api/trigger/trigger.model.js index 9d57ada..7f1371d 100644 --- a/server/api/trigger/trigger.model.js +++ b/server/api/trigger/trigger.model.js @@ -1 +1 @@ -const a639_0x3c35=['./trigger.attributes','exports','tools_triggers','Trigger'];(function(_0x21ff5d,_0x3c35a3){const _0x7fcaf8=function(_0x222500){while(--_0x222500){_0x21ff5d['push'](_0x21ff5d['shift']());}};_0x7fcaf8(++_0x3c35a3);}(a639_0x3c35,0xf1));const a639_0x7fca=function(_0x21ff5d,_0x3c35a3){_0x21ff5d=_0x21ff5d-0x0;let _0x7fcaf8=a639_0x3c35[_0x21ff5d];return _0x7fcaf8;};const _0xc42624=a639_0x7fca;'use strict';const attributes=require(_0xc42624('0x3'));module[_0xc42624('0x0')]=function(_0x222500){const _0xe48f60=_0xc42624,_0x12316b=_0x222500['define'](_0xe48f60('0x2'),attributes,{'tableName':_0xe48f60('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x12316b;}; \ No newline at end of file +const a639_0x3009=['exports','Trigger','tools_triggers','define'];(function(_0x3bc058,_0x30098b){const _0x303991=function(_0x25bc8f){while(--_0x25bc8f){_0x3bc058['push'](_0x3bc058['shift']());}};_0x303991(++_0x30098b);}(a639_0x3009,0x1eb));const a639_0x3039=function(_0x3bc058,_0x30098b){_0x3bc058=_0x3bc058-0x0;let _0x303991=a639_0x3009[_0x3bc058];return _0x303991;};const _0x50177c=a639_0x3039;'use strict';const attributes=require('./trigger.attributes');module[_0x50177c('0x1')]=function(_0x25bc8f){const _0x30f862=_0x50177c,_0x1d63bb=_0x25bc8f[_0x30f862('0x0')](_0x30f862('0x2'),attributes,{'tableName':_0x30f862('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d63bb;}; \ No newline at end of file diff --git a/server/api/trigger/trigger.rpc.js b/server/api/trigger/trigger.rpc.js index a205467..9673f80 100644 --- a/server/api/trigger/trigger.rpc.js +++ b/server/api/trigger/trigger.rpc.js @@ -1 +1 @@ -const a640_0x8ec2=['lodash','model','where','Trigger','include','GetTrigger','then','../../config/logger','../../mysqldb','error','findOne','attributes','message','options','stringify','catch','raw','map','ShowTrigger','findAll','limit','rpc','debug','info'];(function(_0x4202fe,_0x8ec2c9){const _0x5cde09=function(_0x493338){while(--_0x493338){_0x4202fe['push'](_0x4202fe['shift']());}};_0x5cde09(++_0x8ec2c9);}(a640_0x8ec2,0x152));const a640_0x5cde=function(_0x4202fe,_0x8ec2c9){_0x4202fe=_0x4202fe-0x0;let _0x5cde09=a640_0x8ec2[_0x4202fe];return _0x5cde09;};const _0x37ff3e=a640_0x5cde;'use strict';const _=require(_0x37ff3e('0x16')),db=require(_0x37ff3e('0x6'))['db'],logger=require(_0x37ff3e('0x5'))(_0x37ff3e('0x13'));exports[_0x37ff3e('0x3')]=function(_0x493338){const _0x333e61=this;return new Promise(function(_0x5edc72,_0xe5402){const _0x4075f3=a640_0x5cde;return db[_0x4075f3('0x1')][_0x4075f3('0x11')]({'raw':_0x493338['options']?_0x493338[_0x4075f3('0xb')]['raw']===undefined?!![]:![]:!![],'where':_0x493338[_0x4075f3('0xb')]?_0x493338[_0x4075f3('0xb')][_0x4075f3('0x0')]||null:null,'attributes':_0x493338[_0x4075f3('0xb')]?_0x493338[_0x4075f3('0xb')][_0x4075f3('0x9')]||null:null,'limit':_0x493338[_0x4075f3('0xb')]?_0x493338[_0x4075f3('0xb')][_0x4075f3('0x12')]||null:null,'include':_0x493338['options']?_0x493338['options'][_0x4075f3('0x2')]?_[_0x4075f3('0xf')](_0x493338[_0x4075f3('0xb')][_0x4075f3('0x2')],function(_0x27e344){const _0x1694e1=_0x4075f3;return{'model':db[_0x27e344[_0x1694e1('0x17')]],'as':_0x27e344['as'],'attributes':_0x27e344[_0x1694e1('0x9')],'include':_0x27e344[_0x1694e1('0x2')]?_[_0x1694e1('0xf')](_0x27e344[_0x1694e1('0x2')],function(_0x211e6e){const _0xbec17f=_0x1694e1;return{'model':db[_0x211e6e[_0xbec17f('0x17')]],'as':_0x211e6e['as'],'attributes':_0x211e6e[_0xbec17f('0x9')],'include':_0x211e6e[_0xbec17f('0x2')]?_[_0xbec17f('0xf')](_0x211e6e['include'],function(_0x4f39fa){const _0x4253f8=_0xbec17f;return{'model':db[_0x4f39fa[_0x4253f8('0x17')]],'as':_0x4f39fa['as'],'attributes':_0x4f39fa[_0x4253f8('0x9')]};}):[]};}):[]};}):[]:[]})[_0x4075f3('0x4')](function(_0x3d2041){const _0xbf74eb=_0x4075f3;logger[_0xbf74eb('0x15')]('GetTrigger',_0x493338),logger[_0xbf74eb('0x14')](_0xbf74eb('0x3'),_0x493338,JSON[_0xbf74eb('0xc')](_0x3d2041)),_0x5edc72(_0x3d2041);})[_0x4075f3('0xd')](function(_0x34a049){const _0x33194c=_0x4075f3;logger[_0x33194c('0x7')](_0x33194c('0x3'),_0x34a049['message'],_0x493338),_0xe5402(_0x333e61[_0x33194c('0x7')](0x1f4,_0x34a049[_0x33194c('0xa')]));});});},exports['ShowTrigger']=function(_0x3e0c2d){const _0x4d015f=this;return new Promise(function(_0x349bd2,_0xed16d0){const _0x2f0720=a640_0x5cde;return db[_0x2f0720('0x1')][_0x2f0720('0x8')]({'raw':_0x3e0c2d[_0x2f0720('0xb')]?_0x3e0c2d['options'][_0x2f0720('0xe')]===undefined?!![]:![]:!![],'where':_0x3e0c2d[_0x2f0720('0xb')]?_0x3e0c2d[_0x2f0720('0xb')]['where']||null:null,'attributes':_0x3e0c2d['options']?_0x3e0c2d['options'][_0x2f0720('0x9')]||null:null,'include':_0x3e0c2d[_0x2f0720('0xb')]?_0x3e0c2d['options'][_0x2f0720('0x2')]?_[_0x2f0720('0xf')](_0x3e0c2d[_0x2f0720('0xb')]['include'],function(_0x415d54){const _0x50acf7=_0x2f0720;return{'model':db[_0x415d54[_0x50acf7('0x17')]],'as':_0x415d54['as'],'attributes':_0x415d54[_0x50acf7('0x9')],'include':_0x415d54[_0x50acf7('0x2')]?_[_0x50acf7('0xf')](_0x415d54[_0x50acf7('0x2')],function(_0x1535cb){const _0x35723e=_0x50acf7;return{'model':db[_0x1535cb[_0x35723e('0x17')]],'as':_0x1535cb['as'],'attributes':_0x1535cb[_0x35723e('0x9')],'include':_0x1535cb[_0x35723e('0x2')]?_[_0x35723e('0xf')](_0x1535cb[_0x35723e('0x2')],function(_0x3a664c){const _0xbb2223=_0x35723e;return{'model':db[_0x3a664c[_0xbb2223('0x17')]],'as':_0x3a664c['as'],'attributes':_0x3a664c[_0xbb2223('0x9')]};}):[]};}):[]};}):[]:[]})[_0x2f0720('0x4')](function(_0x47a420){const _0xa7418a=_0x2f0720;logger[_0xa7418a('0x15')](_0xa7418a('0x10'),_0x3e0c2d),logger[_0xa7418a('0x14')](_0xa7418a('0x10'),_0x3e0c2d,JSON['stringify'](_0x47a420)),_0x349bd2(_0x47a420);})['catch'](function(_0x456150){const _0x4119b4=_0x2f0720;logger[_0x4119b4('0x7')]('ShowTrigger',_0x456150[_0x4119b4('0xa')],_0x3e0c2d),_0xed16d0(_0x4d015f[_0x4119b4('0x7')](0x1f4,_0x456150[_0x4119b4('0xa')]));});});}; \ No newline at end of file +const a640_0x4a2d=['Trigger','GetTrigger','model','include','ShowTrigger','options','then','stringify','../../config/logger','debug','limit','error','where','map','attributes','message','raw','findOne','catch'];(function(_0x284001,_0x4a2dd1){const _0x1e6fd7=function(_0x5b2214){while(--_0x5b2214){_0x284001['push'](_0x284001['shift']());}};_0x1e6fd7(++_0x4a2dd1);}(a640_0x4a2d,0xe9));const a640_0x1e6f=function(_0x284001,_0x4a2dd1){_0x284001=_0x284001-0x0;let _0x1e6fd7=a640_0x4a2d[_0x284001];return _0x1e6fd7;};const _0x3b4732=a640_0x1e6f;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],logger=require(_0x3b4732('0x3'))('rpc');exports['GetTrigger']=function(_0x5b2214){const _0x3583bc=this;return new Promise(function(_0x34ded4,_0x8ed121){const _0x92e564=a640_0x1e6f;return db[_0x92e564('0xe')]['findAll']({'raw':_0x5b2214[_0x92e564('0x0')]?_0x5b2214['options'][_0x92e564('0xb')]===undefined?!![]:![]:!![],'where':_0x5b2214[_0x92e564('0x0')]?_0x5b2214[_0x92e564('0x0')][_0x92e564('0x7')]||null:null,'attributes':_0x5b2214[_0x92e564('0x0')]?_0x5b2214['options']['attributes']||null:null,'limit':_0x5b2214[_0x92e564('0x0')]?_0x5b2214[_0x92e564('0x0')][_0x92e564('0x5')]||null:null,'include':_0x5b2214[_0x92e564('0x0')]?_0x5b2214[_0x92e564('0x0')][_0x92e564('0x11')]?_[_0x92e564('0x8')](_0x5b2214['options'][_0x92e564('0x11')],function(_0x580874){const _0x55a784=_0x92e564;return{'model':db[_0x580874[_0x55a784('0x10')]],'as':_0x580874['as'],'attributes':_0x580874[_0x55a784('0x9')],'include':_0x580874[_0x55a784('0x11')]?_[_0x55a784('0x8')](_0x580874[_0x55a784('0x11')],function(_0x36ac60){const _0x12f665=_0x55a784;return{'model':db[_0x36ac60[_0x12f665('0x10')]],'as':_0x36ac60['as'],'attributes':_0x36ac60['attributes'],'include':_0x36ac60[_0x12f665('0x11')]?_[_0x12f665('0x8')](_0x36ac60[_0x12f665('0x11')],function(_0x47f51c){const _0x2976aa=_0x12f665;return{'model':db[_0x47f51c[_0x2976aa('0x10')]],'as':_0x47f51c['as'],'attributes':_0x47f51c[_0x2976aa('0x9')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x44563a){const _0x678da2=_0x92e564;logger['info'](_0x678da2('0xf'),_0x5b2214),logger[_0x678da2('0x4')](_0x678da2('0xf'),_0x5b2214,JSON[_0x678da2('0x2')](_0x44563a)),_0x34ded4(_0x44563a);})['catch'](function(_0x333b94){const _0x11dc07=_0x92e564;logger[_0x11dc07('0x6')](_0x11dc07('0xf'),_0x333b94['message'],_0x5b2214),_0x8ed121(_0x3583bc[_0x11dc07('0x6')](0x1f4,_0x333b94[_0x11dc07('0xa')]));});});},exports[_0x3b4732('0x12')]=function(_0x27dedc){const _0xf4cde6=this;return new Promise(function(_0xbe6394,_0x3508f8){const _0x210373=a640_0x1e6f;return db['Trigger'][_0x210373('0xc')]({'raw':_0x27dedc[_0x210373('0x0')]?_0x27dedc['options'][_0x210373('0xb')]===undefined?!![]:![]:!![],'where':_0x27dedc[_0x210373('0x0')]?_0x27dedc[_0x210373('0x0')][_0x210373('0x7')]||null:null,'attributes':_0x27dedc[_0x210373('0x0')]?_0x27dedc[_0x210373('0x0')]['attributes']||null:null,'include':_0x27dedc[_0x210373('0x0')]?_0x27dedc[_0x210373('0x0')]['include']?_[_0x210373('0x8')](_0x27dedc[_0x210373('0x0')][_0x210373('0x11')],function(_0x30e882){const _0x51d0b1=_0x210373;return{'model':db[_0x30e882[_0x51d0b1('0x10')]],'as':_0x30e882['as'],'attributes':_0x30e882['attributes'],'include':_0x30e882['include']?_[_0x51d0b1('0x8')](_0x30e882[_0x51d0b1('0x11')],function(_0x1bdcde){const _0x1a2011=_0x51d0b1;return{'model':db[_0x1bdcde[_0x1a2011('0x10')]],'as':_0x1bdcde['as'],'attributes':_0x1bdcde[_0x1a2011('0x9')],'include':_0x1bdcde[_0x1a2011('0x11')]?_[_0x1a2011('0x8')](_0x1bdcde[_0x1a2011('0x11')],function(_0x11ad11){const _0x43b805=_0x1a2011;return{'model':db[_0x11ad11[_0x43b805('0x10')]],'as':_0x11ad11['as'],'attributes':_0x11ad11['attributes']};}):[]};}):[]};}):[]:[]})[_0x210373('0x1')](function(_0x42a594){const _0x23a9cb=_0x210373;logger['info']('ShowTrigger',_0x27dedc),logger[_0x23a9cb('0x4')](_0x23a9cb('0x12'),_0x27dedc,JSON[_0x23a9cb('0x2')](_0x42a594)),_0xbe6394(_0x42a594);})[_0x210373('0xd')](function(_0x540285){const _0x31fa4f=_0x210373;logger['error'](_0x31fa4f('0x12'),_0x540285[_0x31fa4f('0xa')],_0x27dedc),_0x3508f8(_0xf4cde6['error'](0x1f4,_0x540285[_0x31fa4f('0xa')]));});});}; \ No newline at end of file diff --git a/server/api/trunk/index.js b/server/api/trunk/index.js index cfa6234..f3fe9da 100644 --- a/server/api/trunk/index.js +++ b/server/api/trunk/index.js @@ -1 +1 @@ -const a641_0x10a5=['isAuthenticated','clone','express','create','exports','destroy','/:id','/:id/clone','get','./trunk.controller','../../components/auth/service','update','put','post','show','delete'];(function(_0x449a80,_0x10a530){const _0x129136=function(_0x4440f3){while(--_0x4440f3){_0x449a80['push'](_0x449a80['shift']());}};_0x129136(++_0x10a530);}(a641_0x10a5,0xf6));const a641_0x1291=function(_0x449a80,_0x10a530){_0x449a80=_0x449a80-0x0;let _0x129136=a641_0x10a5[_0x449a80];return _0x129136;};const _0xec9af7=a641_0x1291;'use strict';const express=require(_0xec9af7('0xc')),router=express['Router'](),auth=require(_0xec9af7('0x4')),controller=require(_0xec9af7('0x3'));router[_0xec9af7('0x2')]('/',auth[_0xec9af7('0xa')](),controller['index']),router[_0xec9af7('0x2')](_0xec9af7('0x0'),auth['isAuthenticated'](),controller[_0xec9af7('0x8')]),router[_0xec9af7('0x7')](_0xec9af7('0x1'),auth['isAuthenticated'](),controller[_0xec9af7('0xb')]),router[_0xec9af7('0x7')]('/',auth[_0xec9af7('0xa')](),controller[_0xec9af7('0xd')]),router[_0xec9af7('0x6')]('/:id',auth['isAuthenticated'](),controller[_0xec9af7('0x5')]),router[_0xec9af7('0x9')](_0xec9af7('0x0'),auth[_0xec9af7('0xa')](),controller[_0xec9af7('0xf')]),module[_0xec9af7('0xe')]=router; \ No newline at end of file +const a641_0x103c=['Router','update','exports','put','../../components/auth/service','index','show','get','./trunk.controller','post','clone','/:id','isAuthenticated'];(function(_0x1db81c,_0x103ca1){const _0x6769ee=function(_0x4794e2){while(--_0x4794e2){_0x1db81c['push'](_0x1db81c['shift']());}};_0x6769ee(++_0x103ca1);}(a641_0x103c,0x83));const a641_0x6769=function(_0x1db81c,_0x103ca1){_0x1db81c=_0x1db81c-0x0;let _0x6769ee=a641_0x103c[_0x1db81c];return _0x6769ee;};const _0x5c0b4b=a641_0x6769;'use strict';const express=require('express'),router=express[_0x5c0b4b('0xc')](),auth=require(_0x5c0b4b('0x3')),controller=require(_0x5c0b4b('0x7'));router[_0x5c0b4b('0x6')]('/',auth[_0x5c0b4b('0xb')](),controller[_0x5c0b4b('0x4')]),router['get'](_0x5c0b4b('0xa'),auth[_0x5c0b4b('0xb')](),controller[_0x5c0b4b('0x5')]),router[_0x5c0b4b('0x8')]('/:id/clone',auth[_0x5c0b4b('0xb')](),controller[_0x5c0b4b('0x9')]),router[_0x5c0b4b('0x8')]('/',auth[_0x5c0b4b('0xb')](),controller['create']),router[_0x5c0b4b('0x2')](_0x5c0b4b('0xa'),auth[_0x5c0b4b('0xb')](),controller[_0x5c0b4b('0x0')]),router['delete'](_0x5c0b4b('0xa'),auth['isAuthenticated'](),controller['destroy']),module[_0x5c0b4b('0x1')]=router; \ No newline at end of file diff --git a/server/api/trunk/trunk.attributes.js b/server/api/trunk/trunk.attributes.js index 6564364..44eb505 100644 --- a/server/api/trunk/trunk.attributes.js +++ b/server/api/trunk/trunk.attributes.js @@ -1 +1 @@ -const a642_0x2087=['\x22\x22\x20<>','split','INTEGER','update,nonat','getDataValue','sequelize','outgoing','uac','BOOLEAN','join','refuse','uas','insecure','update','allow','friend','pai','yes','force_rport,comedia','udp','STRING','exports','PROHIB_PASSED_SCREEN','rfc2833','always','user','dynamic','never','shortinfo','setDataValue','ALLOWED','ALLOWED_PASSED_SCREEN','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','inband','ENUM','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]','info','accept','port,invite','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','transport','nat'];(function(_0x4f7afc,_0x2087b7){const _0x2708cc=function(_0x2bce81){while(--_0x2bce81){_0x4f7afc['push'](_0x4f7afc['shift']());}};_0x2708cc(++_0x2087b7);}(a642_0x2087,0x144));const a642_0x2708=function(_0x4f7afc,_0x2087b7){_0x4f7afc=_0x4f7afc-0x0;let _0x2708cc=a642_0x2087[_0x4f7afc];return _0x2708cc;};const _0x392321=a642_0x2708;'use strict';const Sequelize=require(_0x392321('0x11'));module[_0x392321('0x21')]={'name':{'type':Sequelize[_0x392321('0x20')],'allowNull':![],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1b'),_0x392321('0x25'),'peer'),'allowNull':![],'defaultValue':'friend'},'context':{'type':Sequelize[_0x392321('0x20')],'allowNull':![],'defaultValue':'from-voip-provider'},'callingpres':{'type':Sequelize['ENUM']('ALLOWED_NOT_SCREENED',_0x392321('0x1'),'ALLOWED_FAILED_SCREEN',_0x392321('0x0'),'PROHIB_NOT_SCREENED',_0x392321('0x22'),'PROHIB_FAILED_SCREEN','PROHIB')},'deny':{'type':Sequelize[_0x392321('0x20')]},'permit':{'type':Sequelize[_0x392321('0x20')]},'secret':{'type':Sequelize[_0x392321('0x20')]},'md5secret':{'type':Sequelize['STRING']},'remotesecret':{'type':Sequelize['STRING']},'transport':{'type':Sequelize[_0x392321('0x20')],'defaultValue':_0x392321('0x1f'),'set':function(_0x2bce81){const _0x6de26e=_0x392321;this['setDataValue'](_0x6de26e('0xa'),_0x2bce81?_0x2bce81[_0x6de26e('0x15')](','):null);},'get':function(){const _0x41d380=_0x392321;return this[_0x41d380('0x10')]('transport')?this[_0x41d380('0x10')](_0x41d380('0xa'))[_0x41d380('0xd')](','):null;},'comment':_0x392321('0x2')},'dtmfmode':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x23'),_0x392321('0x6'),_0x392321('0x28'),_0x392321('0x3'),'auto'),'defaultValue':_0x392321('0x23')},'directmedia':{'type':Sequelize['ENUM'](_0x392321('0x1d'),'no','nonat',_0x392321('0x19'),_0x392321('0x12')),'defaultValue':'no'},'directrtpsetup':{'type':Sequelize['ENUM'](_0x392321('0x1d'),'no'),'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x392321('0x20')]},'directmediadeny':{'type':Sequelize[_0x392321('0x20')]},'nat':{'type':Sequelize['STRING'],'defaultValue':_0x392321('0x1e'),'set':function(_0x5823bd){const _0x1887d1=_0x392321;this['setDataValue']('nat',_0x5823bd?_0x5823bd[_0x1887d1('0x15')](','):null);},'get':function(){const _0x2a26bc=_0x392321;return this[_0x2a26bc('0x10')]('nat')?this[_0x2a26bc('0x10')](_0x2a26bc('0xb'))['split'](','):null;},'comment':_0x392321('0x9')},'callgroup':{'type':Sequelize[_0x392321('0x20')]},'namedcallgroup':{'type':Sequelize['STRING']},'pickupgroup':{'type':Sequelize[_0x392321('0x20')]},'namedpickupgroup':{'type':Sequelize[_0x392321('0x20')]},'language':{'type':Sequelize[_0x392321('0x20')],'defaultValue':'en'},'tonezone':{'type':Sequelize['STRING'],'allowNull':!![]},'disallow':{'type':Sequelize[_0x392321('0x20')],'defaultValue':'all'},'allow':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'ulaw;alaw;gsm','set':function(_0x369cb6){const _0x54d14a=_0x392321;this[_0x54d14a('0x29')]('allow',_0x369cb6?_0x369cb6[_0x54d14a('0x15')](';'):'ulaw;alaw;gsm');},'get':function(){const _0x40548b=_0x392321;return this[_0x40548b('0x10')]('allow')?this['getDataValue'](_0x40548b('0x1a'))[_0x40548b('0xd')](';'):null;},'comment':_0x392321('0x5')},'autoframing':{'type':Sequelize['ENUM']('yes','no')},'insecure':{'type':Sequelize[_0x392321('0x20')],'defaultValue':_0x392321('0x8'),'set':function(_0x4f4315){const _0x2588ec=_0x392321;this[_0x2588ec('0x29')](_0x2588ec('0x18'),_0x4f4315?_0x4f4315['join'](','):null);},'get':function(){const _0x5424ee=_0x392321;return this['getDataValue'](_0x5424ee('0x18'))?this[_0x5424ee('0x10')]('insecure')[_0x5424ee('0xd')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]'},'trustrpid':{'type':Sequelize[_0x392321('0x4')]('yes','no'),'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no'),'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x392321('0x4')]('yes','no',_0x392321('0x27'))},'promiscredir':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no')},'useclientcode':{'type':Sequelize[_0x392321('0x4')]('yes','no')},'accountcode':{'type':Sequelize['INTEGER'](0xb)},'setvar':{'type':Sequelize[_0x392321('0x20')]},'callerid':{'type':Sequelize[_0x392321('0x20')],'defaultValue':_0x392321('0xc')},'amaflags':{'type':Sequelize[_0x392321('0x20')]},'callcounter':{'type':Sequelize['ENUM'](_0x392321('0x1d'),'no'),'defaultValue':_0x392321('0x1d')},'busylevel':{'type':Sequelize['INTEGER'](0xb)},'allowoverlap':{'type':Sequelize['ENUM'](_0x392321('0x1d'),'no')},'allowsubscribe':{'type':Sequelize[_0x392321('0x4')]('yes','no')},'allowtransfer':{'type':Sequelize[_0x392321('0x4')]('yes','no')},'ignoresdpversion':{'type':Sequelize[_0x392321('0x4')]('yes','no')},'subscribecontext':{'type':Sequelize[_0x392321('0x20')]},'template':{'type':Sequelize[_0x392321('0x20')]},'videosupport':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no',_0x392321('0x24')),'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x392321('0xe')](0xb)},'rfc2833compensate':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no')},'mailbox':{'type':Sequelize['STRING']},'session_timers':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x7'),_0x392321('0x16'),'originate')},'session_expires':{'type':Sequelize[_0x392321('0xe')](0xb)},'session_minse':{'type':Sequelize[_0x392321('0xe')](0xb)},'session_refresher':{'type':Sequelize['ENUM'](_0x392321('0x13'),_0x392321('0x17')),'defaultValue':_0x392321('0x17')},'t38pt_usertpsource':{'type':Sequelize[_0x392321('0x20')]},'regexten':{'type':Sequelize['STRING']},'fromdomain':{'type':Sequelize[_0x392321('0x20')]},'fromuser':{'type':Sequelize['STRING']},'port':{'type':Sequelize[_0x392321('0xe')](0x5)},'qualify':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no'),'defaultValue':_0x392321('0x1d')},'keepalive':{'type':Sequelize['INTEGER'](0xb)},'defaultip':{'type':Sequelize[_0x392321('0x20')]},'defaultuser':{'type':Sequelize['STRING']},'rtptimeout':{'type':Sequelize['INTEGER'](0xb)},'rtpholdtimeout':{'type':Sequelize[_0x392321('0xe')](0xb)},'rtpkeepalive':{'type':Sequelize[_0x392321('0xe')](0xb)},'sendrpid':{'type':Sequelize[_0x392321('0x4')]('yes','no',_0x392321('0x1c')),'defaultValue':'no'},'outboundproxy':{'type':Sequelize['STRING']},'callbackextension':{'type':Sequelize[_0x392321('0x20')]},'timert1':{'type':Sequelize[_0x392321('0xe')](0xb)},'timerb':{'type':Sequelize[_0x392321('0xe')](0xb)},'qualifyfreq':{'type':Sequelize[_0x392321('0xe')](0xb)},'contactpermit':{'type':Sequelize['STRING']},'contactdeny':{'type':Sequelize['STRING']},'contactacl':{'type':Sequelize[_0x392321('0x20')]},'unsolicited_mailbox':{'type':Sequelize[_0x392321('0x20')]},'use_q850_reason':{'type':Sequelize[_0x392321('0x20')]},'maxforwards':{'type':Sequelize[_0x392321('0xe')](0xb)},'encryption':{'type':Sequelize[_0x392321('0x4')]('yes','no'),'defaultValue':'no'},'avpf':{'type':Sequelize[_0x392321('0x4')]('yes','no')},'force_avp':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no')},'icesupport':{'type':Sequelize['ENUM']('yes','no')},'dtlsenable':{'type':Sequelize[_0x392321('0x4')]('yes','no')},'dtlsverify':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no','fingerprint','certificate')},'dtlsrekey':{'type':Sequelize[_0x392321('0xe')](0xb)},'dtlscertfile':{'type':Sequelize['STRING']},'dtlsprivatekey':{'type':Sequelize[_0x392321('0x20')]},'dtlscipher':{'type':Sequelize[_0x392321('0x20')]},'dtlscafile':{'type':Sequelize[_0x392321('0x20')]},'dtlscapath':{'type':Sequelize[_0x392321('0x20')]},'dtlssetup':{'type':Sequelize[_0x392321('0x4')]('active','passive','actpass'),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize['STRING']},'usereqphone':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no'),'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x392321('0x20')]},'recordofffeature':{'type':Sequelize[_0x392321('0x20')]},'call_limit':{'type':Sequelize[_0x392321('0xe')](0xb),'defaultValue':0x3e8},'registertrying':{'type':Sequelize['ENUM'](_0x392321('0x1d'),'no')},'subscribemwi':{'type':Sequelize['ENUM'](_0x392321('0x1d'),'no')},'vmexten':{'type':Sequelize[_0x392321('0x20')]},'mohinterpret':{'type':Sequelize[_0x392321('0x20')]},'mohsuggest':{'type':Sequelize['STRING']},'parkinglot':{'type':Sequelize[_0x392321('0x20')]},'description':{'type':Sequelize[_0x392321('0x20')]},'host':{'type':Sequelize[_0x392321('0x20')],'defaultValue':_0x392321('0x26')},'canreinvite':{'type':Sequelize[_0x392321('0x4')](_0x392321('0x1d'),'no','nonat',_0x392321('0x19'),_0x392321('0xf')),'defaultValue':'no'},'registry':{'type':Sequelize[_0x392321('0x20')]},'otherFields':{'type':Sequelize[_0x392321('0x20')]},'active':{'type':Sequelize[_0x392321('0x14')],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':Sequelize[_0x392321('0x20')],'defaultValue':'no'}}; \ No newline at end of file +const a642_0x239f=['transport','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','name','ALLOWED_PASSED_SCREEN','yes','uas','join','port,invite','update','nonat','ALLOWED_NOT_SCREENED','auto','pai','peer','info','active','ALLOWED_FAILED_SCREEN','uac','PROHIB_PASSED_SCREEN','never','INTEGER','certificate','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22alaw\x22]','allow','force_rport,comedia','\x22\x22\x20<>','split','BOOLEAN','getDataValue','dynamic','friend','setDataValue','accept','rfc2833','insecure','STRING','nat','ulaw;alaw;gsm','refuse','update,nonat','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','actpass','passive','inband','always','ENUM','ALLOWED','PROHIB','sequelize','all'];(function(_0x10e45e,_0x239fe2){const _0x135c0f=function(_0x3f230d){while(--_0x3f230d){_0x10e45e['push'](_0x10e45e['shift']());}};_0x135c0f(++_0x239fe2);}(a642_0x239f,0x187));const a642_0x135c=function(_0x10e45e,_0x239fe2){_0x10e45e=_0x10e45e-0x0;let _0x135c0f=a642_0x239f[_0x10e45e];return _0x135c0f;};const _0x18b136=a642_0x135c;'use strict';const Sequelize=require(_0x18b136('0x7'));module['exports']={'name':{'type':Sequelize[_0x18b136('0x2c')],'allowNull':![],'unique':_0x18b136('0xb'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0x27'),'user',_0x18b136('0x16')),'allowNull':![],'defaultValue':_0x18b136('0x27')},'context':{'type':Sequelize[_0x18b136('0x2c')],'allowNull':![],'defaultValue':'from-voip-provider'},'callingpres':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0x13'),_0x18b136('0xc'),_0x18b136('0x19'),_0x18b136('0x5'),'PROHIB_NOT_SCREENED',_0x18b136('0x1b'),'PROHIB_FAILED_SCREEN',_0x18b136('0x6'))},'deny':{'type':Sequelize[_0x18b136('0x2c')]},'permit':{'type':Sequelize['STRING']},'secret':{'type':Sequelize['STRING']},'md5secret':{'type':Sequelize[_0x18b136('0x2c')]},'remotesecret':{'type':Sequelize[_0x18b136('0x2c')]},'transport':{'type':Sequelize[_0x18b136('0x2c')],'defaultValue':'udp','set':function(_0x3f230d){const _0x5ebf58=_0x18b136;this[_0x5ebf58('0x28')]('transport',_0x3f230d?_0x3f230d['join'](','):null);},'get':function(){const _0x555116=_0x18b136;return this[_0x555116('0x25')](_0x555116('0x9'))?this[_0x555116('0x25')](_0x555116('0x9'))[_0x555116('0x23')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]'},'dtmfmode':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0x2a'),_0x18b136('0x17'),'shortinfo',_0x18b136('0x2'),_0x18b136('0x14')),'defaultValue':'rfc2833'},'directmedia':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no','nonat',_0x18b136('0x11'),'outgoing'),'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x18b136('0x4')]('yes','no'),'defaultValue':'no'},'directmediapermit':{'type':Sequelize['STRING']},'directmediadeny':{'type':Sequelize[_0x18b136('0x2c')]},'nat':{'type':Sequelize['STRING'],'defaultValue':_0x18b136('0x21'),'set':function(_0x8e966b){const _0x568491=_0x18b136;this[_0x568491('0x28')](_0x568491('0x2d'),_0x8e966b?_0x8e966b['join'](','):null);},'get':function(){const _0x3e677f=_0x18b136;return this[_0x3e677f('0x25')](_0x3e677f('0x2d'))?this[_0x3e677f('0x25')](_0x3e677f('0x2d'))['split'](','):null;},'comment':_0x18b136('0xa')},'callgroup':{'type':Sequelize[_0x18b136('0x2c')]},'namedcallgroup':{'type':Sequelize[_0x18b136('0x2c')]},'pickupgroup':{'type':Sequelize[_0x18b136('0x2c')]},'namedpickupgroup':{'type':Sequelize[_0x18b136('0x2c')]},'language':{'type':Sequelize[_0x18b136('0x2c')],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x18b136('0x2c')],'allowNull':!![]},'disallow':{'type':Sequelize[_0x18b136('0x2c')],'defaultValue':_0x18b136('0x8')},'allow':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x18b136('0x2e'),'set':function(_0x395c17){const _0x2c56da=_0x18b136;this['setDataValue'](_0x2c56da('0x20'),_0x395c17?_0x395c17[_0x2c56da('0xf')](';'):'ulaw;alaw;gsm');},'get':function(){const _0x125d02=_0x18b136;return this[_0x125d02('0x25')](_0x125d02('0x20'))?this[_0x125d02('0x25')](_0x125d02('0x20'))['split'](';'):null;},'comment':_0x18b136('0x1f')},'autoframing':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no')},'insecure':{'type':Sequelize['STRING'],'defaultValue':_0x18b136('0x10'),'set':function(_0x452e8e){const _0x347935=_0x18b136;this[_0x347935('0x28')](_0x347935('0x2b'),_0x452e8e?_0x452e8e[_0x347935('0xf')](','):null);},'get':function(){const _0x572cc4=_0x18b136;return this[_0x572cc4('0x25')](_0x572cc4('0x2b'))?this[_0x572cc4('0x25')]('insecure')[_0x572cc4('0x23')](','):null;},'comment':_0x18b136('0x31')},'trustrpid':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no'),'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no'),'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x18b136('0x4')]('yes','no',_0x18b136('0x1c'))},'promiscredir':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no')},'useclientcode':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no')},'accountcode':{'type':Sequelize['INTEGER'](0xb)},'setvar':{'type':Sequelize[_0x18b136('0x2c')]},'callerid':{'type':Sequelize[_0x18b136('0x2c')],'defaultValue':_0x18b136('0x22')},'amaflags':{'type':Sequelize['STRING']},'callcounter':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no'),'defaultValue':_0x18b136('0xd')},'busylevel':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'allowoverlap':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no')},'allowsubscribe':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no')},'allowtransfer':{'type':Sequelize['ENUM'](_0x18b136('0xd'),'no')},'ignoresdpversion':{'type':Sequelize[_0x18b136('0x4')]('yes','no')},'subscribecontext':{'type':Sequelize[_0x18b136('0x2c')]},'template':{'type':Sequelize['STRING']},'videosupport':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no',_0x18b136('0x3')),'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'rfc2833compensate':{'type':Sequelize[_0x18b136('0x4')]('yes','no')},'mailbox':{'type':Sequelize[_0x18b136('0x2c')]},'session_timers':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0x29'),_0x18b136('0x2f'),'originate')},'session_expires':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'session_minse':{'type':Sequelize['INTEGER'](0xb)},'session_refresher':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0x1a'),_0x18b136('0xe')),'defaultValue':_0x18b136('0xe')},'t38pt_usertpsource':{'type':Sequelize[_0x18b136('0x2c')]},'regexten':{'type':Sequelize['STRING']},'fromdomain':{'type':Sequelize[_0x18b136('0x2c')]},'fromuser':{'type':Sequelize[_0x18b136('0x2c')]},'port':{'type':Sequelize[_0x18b136('0x1d')](0x5)},'qualify':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no'),'defaultValue':_0x18b136('0xd')},'keepalive':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'defaultip':{'type':Sequelize['STRING']},'defaultuser':{'type':Sequelize[_0x18b136('0x2c')]},'rtptimeout':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'rtpholdtimeout':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'rtpkeepalive':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'sendrpid':{'type':Sequelize['ENUM'](_0x18b136('0xd'),'no',_0x18b136('0x15')),'defaultValue':'no'},'outboundproxy':{'type':Sequelize['STRING']},'callbackextension':{'type':Sequelize[_0x18b136('0x2c')]},'timert1':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'timerb':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'qualifyfreq':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'contactpermit':{'type':Sequelize[_0x18b136('0x2c')]},'contactdeny':{'type':Sequelize[_0x18b136('0x2c')]},'contactacl':{'type':Sequelize['STRING']},'unsolicited_mailbox':{'type':Sequelize[_0x18b136('0x2c')]},'use_q850_reason':{'type':Sequelize[_0x18b136('0x2c')]},'maxforwards':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'encryption':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no'),'defaultValue':'no'},'avpf':{'type':Sequelize['ENUM'](_0x18b136('0xd'),'no')},'force_avp':{'type':Sequelize['ENUM'](_0x18b136('0xd'),'no')},'icesupport':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no')},'dtlsenable':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no')},'dtlsverify':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no','fingerprint',_0x18b136('0x1e'))},'dtlsrekey':{'type':Sequelize[_0x18b136('0x1d')](0xb)},'dtlscertfile':{'type':Sequelize[_0x18b136('0x2c')]},'dtlsprivatekey':{'type':Sequelize[_0x18b136('0x2c')]},'dtlscipher':{'type':Sequelize[_0x18b136('0x2c')]},'dtlscafile':{'type':Sequelize[_0x18b136('0x2c')]},'dtlscapath':{'type':Sequelize[_0x18b136('0x2c')]},'dtlssetup':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0x18'),_0x18b136('0x1'),_0x18b136('0x0')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x18b136('0x2c')]},'usereqphone':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no'),'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x18b136('0x2c')]},'recordofffeature':{'type':Sequelize[_0x18b136('0x2c')]},'call_limit':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x3e8},'registertrying':{'type':Sequelize[_0x18b136('0x4')](_0x18b136('0xd'),'no')},'subscribemwi':{'type':Sequelize[_0x18b136('0x4')]('yes','no')},'vmexten':{'type':Sequelize[_0x18b136('0x2c')]},'mohinterpret':{'type':Sequelize[_0x18b136('0x2c')]},'mohsuggest':{'type':Sequelize[_0x18b136('0x2c')]},'parkinglot':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x18b136('0x2c')]},'host':{'type':Sequelize['STRING'],'defaultValue':_0x18b136('0x26')},'canreinvite':{'type':Sequelize['ENUM'](_0x18b136('0xd'),'no',_0x18b136('0x12'),'update',_0x18b136('0x30')),'defaultValue':'no'},'registry':{'type':Sequelize['STRING']},'otherFields':{'type':Sequelize[_0x18b136('0x2c')]},'active':{'type':Sequelize[_0x18b136('0x24')],'allowNull':![],'defaultValue':!![]},'t38pt_udptl':{'type':Sequelize[_0x18b136('0x2c')],'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 a9e2cc5..9987407 100644 --- a/server/api/trunk/trunk.controller.js +++ b/server/api/trunk/trunk.controller.js @@ -1 +1 @@ -const a643_0x27a9=['filters','writeFileSync','stack','autoAssociation','Content-Range','UserProfileSection','/etc/asterisk/sip_xcally_registers.conf','includeAll','type','request\x20sent','omit','include','limit','utf8','../../config/environment','debug','jayson/promise','sort','createdAt','create','request','path','api','params','intersection','user','Unable\x20to\x20retrieve\x20the\x20current\x20user','chan_sip.so','Trunk','update','code','query','merge','like','stringify','key','files/templates/trunk.ejs','options','keys','Trunk,\x20%s,\x20%s,\x20%s','../../components/parsers/qs','join','Trunks','Reload','fieldName','where','/etc/asterisk/sip_xcally_trunks.conf','registry','status','rows','info','length','destroy','catch','readFileSync','files/templates/registry.ejs','pick','fields','render','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','root','then','Trunk,\x20%s,\x20%s','userProfileId','offset','map','findAll','order','updatedAt','model','result','UserProfileResource','name','json','get','error','body','findOne','count','nolimit','role','show','rawAttributes','message','attributes'];(function(_0x249374,_0x27a9e5){const _0x10d57d=function(_0x5b5e9b){while(--_0x5b5e9b){_0x249374['push'](_0x249374['shift']());}};_0x10d57d(++_0x27a9e5);}(a643_0x27a9,0x1bd));const a643_0x10d5=function(_0x249374,_0x27a9e5){_0x249374=_0x249374-0x0;let _0x10d57d=a643_0x27a9[_0x249374];return _0x10d57d;};const _0x1540fd=a643_0x10d5;'use strict';const path=require(_0x1540fd('0x1')),ejs=require('ejs'),fs=require('fs'),_=require('lodash'),qs=require(_0x1540fd('0x14')),logger=require('../../config/logger')(_0x1540fd('0x2')),config=require(_0x1540fd('0x4f')),db=require('../../mysqldb')['db'],{Op}=require('sequelize'),jayson=require(_0x1540fd('0x51')),client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x5b5e9b,_0x5f0133,_0x5a23ea,_0x141f32){return new Promise(function(_0x12f787,_0x489f16){const _0x5216c0=a643_0x10d5,_0xc5a296=_0x141f32||client;return _0xc5a296[_0x5216c0('0x0')](_0x5b5e9b,_0x5a23ea)[_0x5216c0('0x29')](function(_0x360a98){const _0x8d56ad=_0x5216c0;logger[_0x8d56ad('0x1e')](_0x8d56ad('0x2a'),_0x5f0133,_0x8d56ad('0x4a')),logger[_0x8d56ad('0x50')](_0x8d56ad('0x13'),_0x5f0133,_0x8d56ad('0x4a'),JSON[_0x8d56ad('0xe')](_0x360a98));if(_0x360a98['error']){if(_0x360a98[_0x8d56ad('0x37')][_0x8d56ad('0xa')]===0x1f4)return logger[_0x8d56ad('0x37')]('Trunk,\x20%s,\x20%s',_0x5f0133,_0x360a98['error'][_0x8d56ad('0x3f')]),_0x489f16(_0x360a98[_0x8d56ad('0x37')]['message']);return logger[_0x8d56ad('0x37')](_0x8d56ad('0x2a'),_0x5f0133,_0x360a98['error']['message']),_0x12f787(_0x360a98['error'][_0x8d56ad('0x3f')]);}else logger['info'](_0x8d56ad('0x2a'),_0x5f0133,'request\x20sent'),_0x12f787(_0x360a98[_0x8d56ad('0x32')][_0x8d56ad('0x3f')]);})[_0x5216c0('0x21')](function(_0x40deee){const _0x4ec0f9=_0x5216c0;logger[_0x4ec0f9('0x37')](_0x4ec0f9('0x2a'),_0x5f0133,_0x40deee),_0x489f16(_0x40deee);});});}function respondWithResult(_0x1dae83,_0x35b5a9){return _0x35b5a9=_0x35b5a9||0xc8,function(_0x201b0f){const _0x244dd9=a643_0x10d5;if(_0x201b0f)return _0x1dae83[_0x244dd9('0x1c')](_0x35b5a9)[_0x244dd9('0x35')](_0x201b0f);};}function respondWithFilteredResult(_0x3b331d,_0x38bd42){return function(_0x1600af){const _0x1c55e8=a643_0x10d5;if(_0x1600af){const _0xbb56f1=_0x1600af[_0x1c55e8('0x3a')],_0x13cbeb=_0x38bd42[_0x1c55e8('0x2c')];let _0x2fcca5=_0x38bd42[_0x1c55e8('0x2c')]+_0x38bd42[_0x1c55e8('0x4d')],_0x5b9f67;return _0x2fcca5>=_0xbb56f1?(_0x2fcca5=_0xbb56f1,_0x5b9f67=0xc8):_0x5b9f67=0xce,_0x3b331d['status'](_0x5b9f67),_0x3b331d['set'](_0x1c55e8('0x45'),_0x13cbeb+'-'+_0x2fcca5+'/'+_0xbb56f1)[_0x1c55e8('0x35')](_0x1600af);}return null;};}function saveUpdates(_0x546fa3){return function(_0x6b0e11){const _0x3faeac=a643_0x10d5;if(_0x6b0e11)return _0x6b0e11[_0x3faeac('0x9')](_0x546fa3)[_0x3faeac('0x29')](function(_0x3753cc){return _0x3753cc;});return null;};}function removeEntity(_0x1067ca){return function(_0x1391c4){const _0x20404c=a643_0x10d5;if(_0x1391c4)return _0x1391c4[_0x20404c('0x20')]()[_0x20404c('0x29')](function(){const _0x4694f0=_0x20404c,_0x1b60fd=_0x1391c4[_0x4694f0('0x36')]({'plain':!![]}),_0x5aa454=_0x4694f0('0x16');return db[_0x4694f0('0x33')][_0x4694f0('0x20')]({'where':{'type':_0x5aa454,'resourceId':_0x1b60fd['id']}})[_0x4694f0('0x29')](function(){return _0x1391c4;});})[_0x20404c('0x29')](function(){const _0x3384f7=_0x20404c;_0x1067ca[_0x3384f7('0x1c')](0xcc)['end']();});};}function handleEntityNotFound(_0x1a320f){return function(_0x17bda2){return!_0x17bda2&&_0x1a320f['sendStatus'](0x194),_0x17bda2;};}function handleError(_0x3b7e25,_0x407fc9){return _0x407fc9=_0x407fc9||0x1f4,function(_0x4d192c){const _0x3710e1=a643_0x10d5;logger[_0x3710e1('0x37')](_0x4d192c[_0x3710e1('0x43')]),_0x4d192c['name']&&delete _0x4d192c[_0x3710e1('0x34')],_0x3b7e25[_0x3710e1('0x1c')](_0x407fc9)['send'](_0x4d192c);};}exports['index']=function(_0x53d665,_0x1f17ce){const _0x50adf3=_0x1540fd;let _0x148a0a={};const _0x48771e={},_0x1ba198={'count':0x0,'rows':[]},_0x27156e=_[_0x50adf3('0x2d')](db[_0x50adf3('0x8')]['rawAttributes'],function(_0x5a58a3){const _0x12ea9a=_0x50adf3;return{'name':_0x5a58a3[_0x12ea9a('0x18')],'type':_0x5a58a3[_0x12ea9a('0x49')][_0x12ea9a('0xf')]};});_0x48771e[_0x50adf3('0x31')]=_[_0x50adf3('0x2d')](_0x27156e,_0x50adf3('0x34')),_0x48771e['query']=_[_0x50adf3('0x12')](_0x53d665[_0x50adf3('0xb')]),_0x48771e[_0x50adf3('0x41')]=_[_0x50adf3('0x4')](_0x48771e[_0x50adf3('0x31')],_0x48771e['query']),_0x148a0a[_0x50adf3('0x40')]=_[_0x50adf3('0x4')](_0x48771e[_0x50adf3('0x31')],qs[_0x50adf3('0x25')](_0x53d665[_0x50adf3('0xb')][_0x50adf3('0x25')])),_0x148a0a[_0x50adf3('0x40')]=_0x148a0a[_0x50adf3('0x40')][_0x50adf3('0x1f')]?_0x148a0a[_0x50adf3('0x40')]:_0x48771e['model'];typeof _0x53d665[_0x50adf3('0xb')][_0x50adf3('0x3b')]==='undefined'&&(_0x148a0a['limit']=qs[_0x50adf3('0x4d')](_0x53d665['query']['limit']),_0x148a0a['offset']=qs[_0x50adf3('0x2c')](_0x53d665[_0x50adf3('0xb')][_0x50adf3('0x2c')]));_0x148a0a[_0x50adf3('0x2f')]=qs[_0x50adf3('0x52')](_0x53d665[_0x50adf3('0xb')]['sort']),_0x148a0a[_0x50adf3('0x19')]=qs[_0x50adf3('0x41')](_[_0x50adf3('0x24')](_0x53d665['query'],_0x48771e[_0x50adf3('0x41')]),_0x27156e);_0x53d665[_0x50adf3('0xb')]['filter']&&(_0x148a0a['where']=_[_0x50adf3('0xc')](_0x148a0a[_0x50adf3('0x19')],{[Op['or']]:_[_0x50adf3('0x2d')](_0x27156e,function(_0x3117eb){const _0xb58fdc=_0x50adf3;if(_0x3117eb['type']!=='VIRTUAL'){const _0x414416={};return _0x414416[_0x3117eb[_0xb58fdc('0x34')]]={[Op[_0xb58fdc('0xd')]]:'%'+_0x53d665[_0xb58fdc('0xb')]['filter']+'%'},_0x414416;}})}));_0x148a0a=_[_0x50adf3('0xc')]({},_0x148a0a,_0x53d665[_0x50adf3('0x11')]);const _0x37ddf={'where':_0x148a0a[_0x50adf3('0x19')]};return db['Trunk']['count'](_0x37ddf)[_0x50adf3('0x29')](function(_0x508c52){const _0x516890=_0x50adf3;return _0x1ba198['count']=_0x508c52,_0x53d665[_0x516890('0xb')]['includeAll']&&(_0x148a0a[_0x516890('0x4c')]=[{'all':!![]}]),db[_0x516890('0x8')][_0x516890('0x2e')](_0x148a0a);})[_0x50adf3('0x29')](function(_0x30b0e6){const _0x1f076b=_0x50adf3;return _0x1ba198[_0x1f076b('0x1d')]=_0x30b0e6,_0x1ba198;})[_0x50adf3('0x29')](respondWithFilteredResult(_0x1f17ce,_0x148a0a))[_0x50adf3('0x21')](handleError(_0x1f17ce,null));},exports[_0x1540fd('0x3d')]=function(_0x37bc66,_0x25da6e){const _0x511c70=_0x1540fd;let _0x2c453e={'raw':![],'where':{'id':_0x37bc66[_0x511c70('0x3')]['id']}};const _0x336bf5={};return _0x336bf5[_0x511c70('0x31')]=_[_0x511c70('0x12')](db[_0x511c70('0x8')][_0x511c70('0x3e')]),_0x336bf5[_0x511c70('0xb')]=_[_0x511c70('0x12')](_0x37bc66[_0x511c70('0xb')]),_0x336bf5[_0x511c70('0x41')]=_[_0x511c70('0x4')](_0x336bf5[_0x511c70('0x31')],_0x336bf5[_0x511c70('0xb')]),_0x2c453e['attributes']=_[_0x511c70('0x4')](_0x336bf5['model'],qs[_0x511c70('0x25')](_0x37bc66[_0x511c70('0xb')][_0x511c70('0x25')])),_0x2c453e[_0x511c70('0x40')]=_0x2c453e[_0x511c70('0x40')][_0x511c70('0x1f')]?_0x2c453e[_0x511c70('0x40')]:_0x336bf5['model'],_0x37bc66[_0x511c70('0xb')]['includeAll']&&(_0x2c453e[_0x511c70('0x4c')]=[{'all':!![]}]),_0x2c453e=_[_0x511c70('0xc')]({},_0x2c453e,_0x37bc66[_0x511c70('0x11')]),db[_0x511c70('0x8')]['findOne'](_0x2c453e)[_0x511c70('0x29')](handleEntityNotFound(_0x25da6e,null))[_0x511c70('0x29')](respondWithResult(_0x25da6e,null))['catch'](handleError(_0x25da6e,null));},exports['clone']=function(_0x4cdca8,_0x28da86){const _0xd6c50e=_0x1540fd;let _0x2d8728={'where':{'id':_0x4cdca8['params']['id']}};const _0x53103c={};return _0x53103c[_0xd6c50e('0x31')]=_[_0xd6c50e('0x12')](db[_0xd6c50e('0x8')][_0xd6c50e('0x3e')]),_0x2d8728[_0xd6c50e('0x40')]=_[_0xd6c50e('0x4')](_0x53103c[_0xd6c50e('0x31')],qs['fields'](_0x4cdca8[_0xd6c50e('0xb')][_0xd6c50e('0x25')])),_0x2d8728[_0xd6c50e('0x40')]=_0x2d8728[_0xd6c50e('0x40')][_0xd6c50e('0x1f')]?_0x2d8728['attributes']:_0x53103c[_0xd6c50e('0x31')],_0x4cdca8[_0xd6c50e('0xb')][_0xd6c50e('0x48')]&&(_0x2d8728[_0xd6c50e('0x4c')]=[{'all':!![]}]),_0x2d8728=_[_0xd6c50e('0xc')]({},_0x2d8728,_0x4cdca8[_0xd6c50e('0x11')]),db[_0xd6c50e('0x8')][_0xd6c50e('0x39')](_0x2d8728)[_0xd6c50e('0x29')](handleEntityNotFound(_0x28da86,null))['then'](function(_0x59396e){const _0x477f1c=_0xd6c50e;if(_0x59396e){let _0x1c1410=_0x59396e[_0x477f1c('0x36')]({'plain':!![]});return _0x1c1410=qs[_0x477f1c('0x4b')](_0x1c1410,['id','createdAt',_0x477f1c('0x30')]),_0x4cdca8[_0x477f1c('0x38')]=_['omit'](_0x4cdca8[_0x477f1c('0x38')],['id',_0x477f1c('0x53'),'updatedAt']),db[_0x477f1c('0x8')][_0x477f1c('0x54')](_[_0x477f1c('0xc')](_0x1c1410,_0x4cdca8[_0x477f1c('0x38')]),{'include':_0x4cdca8[_0x477f1c('0xb')][_0x477f1c('0x48')]?[{'all':!![]}]:undefined})[_0x477f1c('0x29')](function(_0x4dd692){const _0x28b0e2=_0x477f1c,_0x5af1ea=_0x4cdca8[_0x28b0e2('0x5')][_0x28b0e2('0x36')]({'plain':!![]});if(!_0x5af1ea)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5af1ea['role']==='user'){const _0x1897b4=_0x4dd692[_0x28b0e2('0x36')]({'plain':!![]}),_0x408e08=_0x28b0e2('0x16');return db[_0x28b0e2('0x46')]['findOne']({'where':{'name':_0x408e08,'userProfileId':_0x5af1ea[_0x28b0e2('0x2b')]},'raw':!![]})[_0x28b0e2('0x29')](function(_0x1c6110){const _0x370a61=_0x28b0e2;return _0x1c6110&&_0x1c6110['autoAssociation']===0x0?db[_0x370a61('0x33')][_0x370a61('0x54')]({'name':_0x1897b4[_0x370a61('0x34')],'resourceId':_0x1897b4['id'],'type':_0x1c6110[_0x370a61('0x34')],'sectionId':_0x1c6110['id']},{})[_0x370a61('0x29')](function(){return _0x4dd692;}):_0x4dd692;})[_0x28b0e2('0x21')](function(_0x171cd1){const _0x328026=_0x28b0e2;logger[_0x328026('0x37')](_0x328026('0x27'),_0x171cd1);throw _0x171cd1;});}return _0x4dd692;});}})[_0xd6c50e('0x29')](respondWithResult(_0x28da86,0xc9))[_0xd6c50e('0x21')](handleError(_0x28da86,null));},exports[_0x1540fd('0x54')]=function(_0x28bd14,_0x579f73){const _0x44fc7d=_0x1540fd;let _0x27c127;return db[_0x44fc7d('0x8')][_0x44fc7d('0x54')](_0x28bd14[_0x44fc7d('0x38')],{'raw':!![]})['then'](function(_0xcbf626){const _0x4827c4=_0x44fc7d;return _0x27c127=_0xcbf626,db[_0x4827c4('0x8')]['findAll']({'raw':!![]});})[_0x44fc7d('0x29')](function(_0x2f834b){const _0x3acc25=_0x44fc7d,_0x5bc399=fs[_0x3acc25('0x22')](path[_0x3acc25('0x15')](config[_0x3acc25('0x28')],'files/templates/trunk.ejs'),_0x3acc25('0x4e')),_0x486f13=fs[_0x3acc25('0x22')](path[_0x3acc25('0x15')](config[_0x3acc25('0x28')],_0x3acc25('0x23')),_0x3acc25('0x4e')),_0x5ae992=ejs['render'](_0x5bc399,{'trunks':_0x2f834b||[]});fs[_0x3acc25('0x42')](_0x3acc25('0x1a'),_0x5ae992);if(_0x27c127[_0x3acc25('0x1b')]){const _0x5eec59=ejs[_0x3acc25('0x26')](_0x486f13,{'trunks':_0x2f834b||[]});fs['writeFileSync'](_0x3acc25('0x47'),_0x5eec59);}})[_0x44fc7d('0x29')](function(){const _0x122c14=_0x44fc7d;return respondWithRpcPromise('Reload',_0x122c14('0x54'),{'module':_0x122c14('0x7')});})[_0x44fc7d('0x29')](function(){const _0x457e45=_0x44fc7d,_0x3ebb95=_0x28bd14[_0x457e45('0x5')][_0x457e45('0x36')]({'plain':!![]});if(!_0x3ebb95)throw new Error(_0x457e45('0x6'));if(_0x3ebb95[_0x457e45('0x3c')]===_0x457e45('0x5')){const _0x4ac21f=_0x27c127['get']({'plain':!![]});return db[_0x457e45('0x46')][_0x457e45('0x39')]({'where':{'name':_0x457e45('0x16'),'userProfileId':_0x3ebb95[_0x457e45('0x2b')]},'raw':!![]})[_0x457e45('0x29')](function(_0x474c43){const _0x17644b=_0x457e45;return _0x474c43&&_0x474c43[_0x17644b('0x44')]===0x0?db[_0x17644b('0x33')][_0x17644b('0x54')]({'name':_0x4ac21f[_0x17644b('0x34')],'resourceId':_0x4ac21f['id'],'type':_0x474c43[_0x17644b('0x34')],'sectionId':_0x474c43['id']},{})['then'](function(){return _0x27c127;}):_0x27c127;})[_0x457e45('0x21')](function(_0x3e54c6){const _0x42b9fe=_0x457e45;logger[_0x42b9fe('0x37')](_0x42b9fe('0x27'),_0x3e54c6);throw _0x3e54c6;});}return _0x27c127;})[_0x44fc7d('0x29')](respondWithResult(_0x579f73,0xc9))[_0x44fc7d('0x21')](handleError(_0x579f73,null));},exports[_0x1540fd('0x9')]=function(_0xa8eb1e,_0x511947){const _0x5795a7=_0x1540fd;let _0x16eede;return db['Trunk'][_0x5795a7('0x39')]({'where':{'id':_0xa8eb1e[_0x5795a7('0x3')]['id']}})[_0x5795a7('0x29')](handleEntityNotFound(_0x511947,null))[_0x5795a7('0x29')](saveUpdates(_0xa8eb1e[_0x5795a7('0x38')],null))['then'](function(_0x39fb9e){const _0x10735c=_0x5795a7;if(_0x39fb9e)return _0x16eede=_0x39fb9e,db['Trunk'][_0x10735c('0x2e')]({'raw':!![]});})[_0x5795a7('0x29')](function(_0xfaa247){const _0x59d9c3=_0x5795a7;if(_0xfaa247){const _0x39fb38=fs['readFileSync'](path[_0x59d9c3('0x15')](config[_0x59d9c3('0x28')],_0x59d9c3('0x10')),'utf8'),_0x90eab7=fs[_0x59d9c3('0x22')](path[_0x59d9c3('0x15')](config[_0x59d9c3('0x28')],_0x59d9c3('0x23')),_0x59d9c3('0x4e')),_0x53c582=ejs[_0x59d9c3('0x26')](_0x39fb38,{'trunks':_0xfaa247||[]});fs[_0x59d9c3('0x42')](_0x59d9c3('0x1a'),_0x53c582);const _0x5a7a16=ejs[_0x59d9c3('0x26')](_0x90eab7,{'trunks':_0xfaa247||[]});return fs[_0x59d9c3('0x42')](_0x59d9c3('0x47'),_0x5a7a16),respondWithRpcPromise('Reload',_0x59d9c3('0x9'),{'module':_0x59d9c3('0x7')});}return null;})['then'](function(_0x3a479){if(_0x3a479)return _0x16eede;})[_0x5795a7('0x29')](respondWithResult(_0x511947,null))['catch'](handleError(_0x511947,null));},exports[_0x1540fd('0x20')]=function(_0x53bcf7,_0x2c889){const _0x18ae31=_0x1540fd;return db[_0x18ae31('0x8')][_0x18ae31('0x39')]({'where':{'id':_0x53bcf7[_0x18ae31('0x3')]['id']}})[_0x18ae31('0x29')](handleEntityNotFound(_0x2c889,null))['then'](removeEntity(_0x2c889,null))[_0x18ae31('0x29')](function(){const _0x1de23f=_0x18ae31;return db[_0x1de23f('0x8')]['findAll']({'raw':!![]});})[_0x18ae31('0x29')](function(_0x309fd0){const _0x362362=_0x18ae31,_0x1a77aa=fs[_0x362362('0x22')](path['join'](config[_0x362362('0x28')],_0x362362('0x10')),_0x362362('0x4e')),_0x1c2eec=fs['readFileSync'](path[_0x362362('0x15')](config[_0x362362('0x28')],_0x362362('0x23')),_0x362362('0x4e')),_0x33b64b=ejs['render'](_0x1a77aa,{'trunks':_0x309fd0}),_0x3c1ac4=ejs[_0x362362('0x26')](_0x1c2eec,{'trunks':_0x309fd0});return fs[_0x362362('0x42')]('/etc/asterisk/sip_xcally_trunks.conf',_0x33b64b),fs[_0x362362('0x42')](_0x362362('0x47'),_0x3c1ac4),respondWithRpcPromise(_0x362362('0x17'),_0x362362('0x20'),{'module':'chan_sip.so'});})[_0x18ae31('0x21')](handleError(_0x2c889,null));}; \ No newline at end of file +const a643_0x1269=['include','autoAssociation','destroy','request\x20sent','stack','nolimit','Unable\x20to\x20retrieve\x20the\x20current\x20user','get','body','rawAttributes','includeAll','jayson/promise','error','params','send','../../config/environment','keys','Trunk,\x20%s,\x20%s','attributes','fields','limit','undefined','filter','update','filters','role','clone','files/templates/registry.ejs','key','options','root','then','findAll','files/templates/trunk.ejs','user','count','Content-Range','client','order','query','message','rows','UserProfileResource','ejs','name','intersection','api','/etc/asterisk/sip_xcally_trunks.conf','map','sequelize','render','offset','../../mysqldb','create','updatedAt','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','status','userProfileId','writeFileSync','fieldName','length','request','readFileSync','findOne','info','VIRTUAL','Reload','join','pick','/etc/asterisk/sip_xcally_registers.conf','index','end','Trunk','omit','merge','model','UserProfileSection','json','chan_sip.so','like','registry','utf8','sort','catch','sendStatus','debug','Trunks','result','where','show','createdAt','../../components/parsers/qs'];(function(_0x301605,_0x1269ad){const _0x4dbb21=function(_0x242e7a){while(--_0x242e7a){_0x301605['push'](_0x301605['shift']());}};_0x4dbb21(++_0x1269ad);}(a643_0x1269,0x1e4));const a643_0x4dbb=function(_0x301605,_0x1269ad){_0x301605=_0x301605-0x0;let _0x4dbb21=a643_0x1269[_0x301605];return _0x4dbb21;};const _0x1d758c=a643_0x4dbb;'use strict';const path=require('path'),ejs=require(_0x1d758c('0x13')),fs=require('fs'),_=require('lodash'),qs=require(_0x1d758c('0x43')),logger=require('../../config/logger')(_0x1d758c('0x16')),config=require(_0x1d758c('0x53')),db=require(_0x1d758c('0x1c'))['db'],{Op}=require(_0x1d758c('0x19')),jayson=require(_0x1d758c('0x4f')),client=jayson[_0x1d758c('0xd')]['http']({'port':0x232a});function respondWithRpcPromise(_0x242e7a,_0x8f1c36,_0x575577,_0x10d646){return new Promise(function(_0x2adf6f,_0x4a9819){const _0x561e44=a643_0x4dbb,_0x392ce5=_0x10d646||client;return _0x392ce5[_0x561e44('0x25')](_0x242e7a,_0x575577)[_0x561e44('0x7')](function(_0x46fd6c){const _0x1da1cf=_0x561e44;logger[_0x1da1cf('0x28')]('Trunk,\x20%s,\x20%s',_0x8f1c36,_0x1da1cf('0x47')),logger[_0x1da1cf('0x3d')]('Trunk,\x20%s,\x20%s,\x20%s',_0x8f1c36,_0x1da1cf('0x47'),JSON['stringify'](_0x46fd6c));if(_0x46fd6c[_0x1da1cf('0x50')]){if(_0x46fd6c['error']['code']===0x1f4)return logger[_0x1da1cf('0x50')](_0x1da1cf('0x55'),_0x8f1c36,_0x46fd6c['error'][_0x1da1cf('0x10')]),_0x4a9819(_0x46fd6c['error']['message']);return logger['error'](_0x1da1cf('0x55'),_0x8f1c36,_0x46fd6c[_0x1da1cf('0x50')]['message']),_0x2adf6f(_0x46fd6c[_0x1da1cf('0x50')][_0x1da1cf('0x10')]);}else logger[_0x1da1cf('0x28')](_0x1da1cf('0x55'),_0x8f1c36,_0x1da1cf('0x47')),_0x2adf6f(_0x46fd6c[_0x1da1cf('0x3f')][_0x1da1cf('0x10')]);})['catch'](function(_0x2a5068){const _0x397592=_0x561e44;logger['error'](_0x397592('0x55'),_0x8f1c36,_0x2a5068),_0x4a9819(_0x2a5068);});});}function respondWithResult(_0x43e5c3,_0x53daf1){return _0x53daf1=_0x53daf1||0xc8,function(_0x2aaefb){const _0x42c998=a643_0x4dbb;if(_0x2aaefb)return _0x43e5c3[_0x42c998('0x20')](_0x53daf1)[_0x42c998('0x35')](_0x2aaefb);};}function respondWithFilteredResult(_0x3d0216,_0x83577f){return function(_0x42dd2e){const _0x4288e1=a643_0x4dbb;if(_0x42dd2e){const _0x34e954=_0x42dd2e[_0x4288e1('0xb')],_0xe0cefc=_0x83577f[_0x4288e1('0x1b')];let _0xb4776a=_0x83577f[_0x4288e1('0x1b')]+_0x83577f[_0x4288e1('0x58')],_0x103f4b;return _0xb4776a>=_0x34e954?(_0xb4776a=_0x34e954,_0x103f4b=0xc8):_0x103f4b=0xce,_0x3d0216[_0x4288e1('0x20')](_0x103f4b),_0x3d0216['set'](_0x4288e1('0xc'),_0xe0cefc+'-'+_0xb4776a+'/'+_0x34e954)[_0x4288e1('0x35')](_0x42dd2e);}return null;};}function saveUpdates(_0x1adce8){return function(_0x2a470b){const _0x55d84f=a643_0x4dbb;if(_0x2a470b)return _0x2a470b[_0x55d84f('0x5b')](_0x1adce8)[_0x55d84f('0x7')](function(_0x466e7d){return _0x466e7d;});return null;};}function removeEntity(_0x47dc99){return function(_0x36eaa3){const _0x1b2f76=a643_0x4dbb;if(_0x36eaa3)return _0x36eaa3[_0x1b2f76('0x46')]()[_0x1b2f76('0x7')](function(){const _0x483da3=_0x1b2f76,_0x168e5e=_0x36eaa3[_0x483da3('0x4b')]({'plain':!![]}),_0x522855='Trunks';return db[_0x483da3('0x12')][_0x483da3('0x46')]({'where':{'type':_0x522855,'resourceId':_0x168e5e['id']}})[_0x483da3('0x7')](function(){return _0x36eaa3;});})[_0x1b2f76('0x7')](function(){const _0x353f37=_0x1b2f76;_0x47dc99[_0x353f37('0x20')](0xcc)[_0x353f37('0x2f')]();});};}function handleEntityNotFound(_0x292c77){return function(_0x5eb1bc){const _0xfa0ced=a643_0x4dbb;return!_0x5eb1bc&&_0x292c77[_0xfa0ced('0x3c')](0x194),_0x5eb1bc;};}function handleError(_0x520c56,_0x4c1730){return _0x4c1730=_0x4c1730||0x1f4,function(_0x1d637a){const _0x436118=a643_0x4dbb;logger['error'](_0x1d637a[_0x436118('0x48')]),_0x1d637a[_0x436118('0x14')]&&delete _0x1d637a[_0x436118('0x14')],_0x520c56[_0x436118('0x20')](_0x4c1730)[_0x436118('0x52')](_0x1d637a);};}exports[_0x1d758c('0x2e')]=function(_0xbd0431,_0x5cf5d5){const _0x1154a0=_0x1d758c;let _0x1baa8c={};const _0x3bce72={},_0x5ade50={'count':0x0,'rows':[]},_0x344803=_[_0x1154a0('0x18')](db['Trunk']['rawAttributes'],function(_0x4bfdfc){const _0x124e49=_0x1154a0;return{'name':_0x4bfdfc[_0x124e49('0x23')],'type':_0x4bfdfc['type'][_0x124e49('0x4')]};});_0x3bce72[_0x1154a0('0x33')]=_[_0x1154a0('0x18')](_0x344803,_0x1154a0('0x14')),_0x3bce72[_0x1154a0('0xf')]=_[_0x1154a0('0x54')](_0xbd0431[_0x1154a0('0xf')]),_0x3bce72[_0x1154a0('0x0')]=_['intersection'](_0x3bce72['model'],_0x3bce72[_0x1154a0('0xf')]),_0x1baa8c[_0x1154a0('0x56')]=_[_0x1154a0('0x15')](_0x3bce72[_0x1154a0('0x33')],qs['fields'](_0xbd0431[_0x1154a0('0xf')][_0x1154a0('0x57')])),_0x1baa8c['attributes']=_0x1baa8c[_0x1154a0('0x56')][_0x1154a0('0x24')]?_0x1baa8c[_0x1154a0('0x56')]:_0x3bce72[_0x1154a0('0x33')];typeof _0xbd0431[_0x1154a0('0xf')][_0x1154a0('0x49')]===_0x1154a0('0x59')&&(_0x1baa8c[_0x1154a0('0x58')]=qs[_0x1154a0('0x58')](_0xbd0431['query']['limit']),_0x1baa8c[_0x1154a0('0x1b')]=qs[_0x1154a0('0x1b')](_0xbd0431['query']['offset']));_0x1baa8c[_0x1154a0('0xe')]=qs['sort'](_0xbd0431[_0x1154a0('0xf')][_0x1154a0('0x3a')]),_0x1baa8c[_0x1154a0('0x40')]=qs[_0x1154a0('0x0')](_[_0x1154a0('0x2c')](_0xbd0431[_0x1154a0('0xf')],_0x3bce72['filters']),_0x344803);_0xbd0431['query'][_0x1154a0('0x5a')]&&(_0x1baa8c['where']=_[_0x1154a0('0x32')](_0x1baa8c['where'],{[Op['or']]:_[_0x1154a0('0x18')](_0x344803,function(_0xb25521){const _0x16cc80=_0x1154a0;if(_0xb25521['type']!==_0x16cc80('0x29')){const _0x7880fa={};return _0x7880fa[_0xb25521[_0x16cc80('0x14')]]={[Op[_0x16cc80('0x37')]]:'%'+_0xbd0431[_0x16cc80('0xf')][_0x16cc80('0x5a')]+'%'},_0x7880fa;}})}));_0x1baa8c=_[_0x1154a0('0x32')]({},_0x1baa8c,_0xbd0431[_0x1154a0('0x5')]);const _0x928bbd={'where':_0x1baa8c[_0x1154a0('0x40')]};return db['Trunk'][_0x1154a0('0xb')](_0x928bbd)[_0x1154a0('0x7')](function(_0x574a87){const _0x14e4de=_0x1154a0;return _0x5ade50[_0x14e4de('0xb')]=_0x574a87,_0xbd0431[_0x14e4de('0xf')]['includeAll']&&(_0x1baa8c['include']=[{'all':!![]}]),db[_0x14e4de('0x30')][_0x14e4de('0x8')](_0x1baa8c);})[_0x1154a0('0x7')](function(_0x1d5cfa){const _0x3b776c=_0x1154a0;return _0x5ade50[_0x3b776c('0x11')]=_0x1d5cfa,_0x5ade50;})['then'](respondWithFilteredResult(_0x5cf5d5,_0x1baa8c))[_0x1154a0('0x3b')](handleError(_0x5cf5d5,null));},exports[_0x1d758c('0x41')]=function(_0xaf7ec2,_0x13565f){const _0x28af75=_0x1d758c;let _0x27fd90={'raw':![],'where':{'id':_0xaf7ec2[_0x28af75('0x51')]['id']}};const _0x1f0e89={};return _0x1f0e89[_0x28af75('0x33')]=_['keys'](db[_0x28af75('0x30')][_0x28af75('0x4d')]),_0x1f0e89[_0x28af75('0xf')]=_['keys'](_0xaf7ec2['query']),_0x1f0e89['filters']=_[_0x28af75('0x15')](_0x1f0e89[_0x28af75('0x33')],_0x1f0e89[_0x28af75('0xf')]),_0x27fd90[_0x28af75('0x56')]=_[_0x28af75('0x15')](_0x1f0e89['model'],qs[_0x28af75('0x57')](_0xaf7ec2['query'][_0x28af75('0x57')])),_0x27fd90['attributes']=_0x27fd90[_0x28af75('0x56')][_0x28af75('0x24')]?_0x27fd90[_0x28af75('0x56')]:_0x1f0e89[_0x28af75('0x33')],_0xaf7ec2[_0x28af75('0xf')][_0x28af75('0x4e')]&&(_0x27fd90[_0x28af75('0x44')]=[{'all':!![]}]),_0x27fd90=_[_0x28af75('0x32')]({},_0x27fd90,_0xaf7ec2[_0x28af75('0x5')]),db[_0x28af75('0x30')]['findOne'](_0x27fd90)['then'](handleEntityNotFound(_0x13565f,null))[_0x28af75('0x7')](respondWithResult(_0x13565f,null))['catch'](handleError(_0x13565f,null));},exports[_0x1d758c('0x2')]=function(_0x4d85aa,_0x545b5e){const _0x556561=_0x1d758c;let _0x2214ea={'where':{'id':_0x4d85aa['params']['id']}};const _0x532e67={};return _0x532e67[_0x556561('0x33')]=_[_0x556561('0x54')](db[_0x556561('0x30')][_0x556561('0x4d')]),_0x2214ea[_0x556561('0x56')]=_[_0x556561('0x15')](_0x532e67['model'],qs[_0x556561('0x57')](_0x4d85aa[_0x556561('0xf')][_0x556561('0x57')])),_0x2214ea[_0x556561('0x56')]=_0x2214ea[_0x556561('0x56')][_0x556561('0x24')]?_0x2214ea[_0x556561('0x56')]:_0x532e67[_0x556561('0x33')],_0x4d85aa[_0x556561('0xf')]['includeAll']&&(_0x2214ea['include']=[{'all':!![]}]),_0x2214ea=_['merge']({},_0x2214ea,_0x4d85aa[_0x556561('0x5')]),db[_0x556561('0x30')][_0x556561('0x27')](_0x2214ea)[_0x556561('0x7')](handleEntityNotFound(_0x545b5e,null))[_0x556561('0x7')](function(_0x30a86a){const _0x2b9c70=_0x556561;if(_0x30a86a){let _0x17b493=_0x30a86a[_0x2b9c70('0x4b')]({'plain':!![]});return _0x17b493=qs[_0x2b9c70('0x31')](_0x17b493,['id',_0x2b9c70('0x42'),_0x2b9c70('0x1e')]),_0x4d85aa[_0x2b9c70('0x4c')]=_[_0x2b9c70('0x31')](_0x4d85aa['body'],['id',_0x2b9c70('0x42'),'updatedAt']),db[_0x2b9c70('0x30')]['create'](_[_0x2b9c70('0x32')](_0x17b493,_0x4d85aa['body']),{'include':_0x4d85aa[_0x2b9c70('0xf')][_0x2b9c70('0x4e')]?[{'all':!![]}]:undefined})['then'](function(_0x29bd2c){const _0xe3fa46=_0x2b9c70,_0x161f19=_0x4d85aa['user']['get']({'plain':!![]});if(!_0x161f19)throw new Error(_0xe3fa46('0x4a'));if(_0x161f19[_0xe3fa46('0x1')]==='user'){const _0x15a580=_0x29bd2c[_0xe3fa46('0x4b')]({'plain':!![]}),_0x5ee8a6=_0xe3fa46('0x3e');return db[_0xe3fa46('0x34')][_0xe3fa46('0x27')]({'where':{'name':_0x5ee8a6,'userProfileId':_0x161f19[_0xe3fa46('0x21')]},'raw':!![]})[_0xe3fa46('0x7')](function(_0x134cbb){const _0x567ec1=_0xe3fa46;return _0x134cbb&&_0x134cbb[_0x567ec1('0x45')]===0x0?db[_0x567ec1('0x12')]['create']({'name':_0x15a580['name'],'resourceId':_0x15a580['id'],'type':_0x134cbb[_0x567ec1('0x14')],'sectionId':_0x134cbb['id']},{})[_0x567ec1('0x7')](function(){return _0x29bd2c;}):_0x29bd2c;})[_0xe3fa46('0x3b')](function(_0x350226){const _0x7dc040=_0xe3fa46;logger[_0x7dc040('0x50')](_0x7dc040('0x1f'),_0x350226);throw _0x350226;});}return _0x29bd2c;});}})[_0x556561('0x7')](respondWithResult(_0x545b5e,0xc9))[_0x556561('0x3b')](handleError(_0x545b5e,null));},exports[_0x1d758c('0x1d')]=function(_0x77a978,_0x46cb01){const _0x231b35=_0x1d758c;let _0x356b59;return db[_0x231b35('0x30')][_0x231b35('0x1d')](_0x77a978['body'],{'raw':!![]})[_0x231b35('0x7')](function(_0x2c4ca2){const _0xa8803b=_0x231b35;return _0x356b59=_0x2c4ca2,db[_0xa8803b('0x30')][_0xa8803b('0x8')]({'raw':!![]});})['then'](function(_0xb37d1){const _0x4f337c=_0x231b35,_0x2a7683=fs[_0x4f337c('0x26')](path['join'](config[_0x4f337c('0x6')],_0x4f337c('0x9')),'utf8'),_0x2af692=fs[_0x4f337c('0x26')](path[_0x4f337c('0x2b')](config[_0x4f337c('0x6')],_0x4f337c('0x3')),'utf8'),_0x9a2d8b=ejs[_0x4f337c('0x1a')](_0x2a7683,{'trunks':_0xb37d1||[]});fs['writeFileSync'](_0x4f337c('0x17'),_0x9a2d8b);if(_0x356b59[_0x4f337c('0x38')]){const _0x44f1c6=ejs[_0x4f337c('0x1a')](_0x2af692,{'trunks':_0xb37d1||[]});fs['writeFileSync'](_0x4f337c('0x2d'),_0x44f1c6);}})[_0x231b35('0x7')](function(){const _0x527a00=_0x231b35;return respondWithRpcPromise(_0x527a00('0x2a'),_0x527a00('0x1d'),{'module':_0x527a00('0x36')});})[_0x231b35('0x7')](function(){const _0xa4aed1=_0x231b35,_0x3c477e=_0x77a978[_0xa4aed1('0xa')][_0xa4aed1('0x4b')]({'plain':!![]});if(!_0x3c477e)throw new Error(_0xa4aed1('0x4a'));if(_0x3c477e[_0xa4aed1('0x1')]===_0xa4aed1('0xa')){const _0xa501a1=_0x356b59['get']({'plain':!![]});return db[_0xa4aed1('0x34')][_0xa4aed1('0x27')]({'where':{'name':_0xa4aed1('0x3e'),'userProfileId':_0x3c477e[_0xa4aed1('0x21')]},'raw':!![]})[_0xa4aed1('0x7')](function(_0x583146){const _0x3a9d1f=_0xa4aed1;return _0x583146&&_0x583146[_0x3a9d1f('0x45')]===0x0?db[_0x3a9d1f('0x12')][_0x3a9d1f('0x1d')]({'name':_0xa501a1['name'],'resourceId':_0xa501a1['id'],'type':_0x583146[_0x3a9d1f('0x14')],'sectionId':_0x583146['id']},{})[_0x3a9d1f('0x7')](function(){return _0x356b59;}):_0x356b59;})[_0xa4aed1('0x3b')](function(_0x5aab82){const _0x55f281=_0xa4aed1;logger[_0x55f281('0x50')](_0x55f281('0x1f'),_0x5aab82);throw _0x5aab82;});}return _0x356b59;})[_0x231b35('0x7')](respondWithResult(_0x46cb01,0xc9))['catch'](handleError(_0x46cb01,null));},exports[_0x1d758c('0x5b')]=function(_0x2d17ba,_0xbc291a){const _0x14504c=_0x1d758c;let _0x4509b4;return db[_0x14504c('0x30')]['findOne']({'where':{'id':_0x2d17ba[_0x14504c('0x51')]['id']}})[_0x14504c('0x7')](handleEntityNotFound(_0xbc291a,null))[_0x14504c('0x7')](saveUpdates(_0x2d17ba[_0x14504c('0x4c')],null))[_0x14504c('0x7')](function(_0x5ef61a){const _0x1bc404=_0x14504c;if(_0x5ef61a)return _0x4509b4=_0x5ef61a,db[_0x1bc404('0x30')][_0x1bc404('0x8')]({'raw':!![]});})[_0x14504c('0x7')](function(_0x56058a){const _0x20d225=_0x14504c;if(_0x56058a){const _0xf26db3=fs[_0x20d225('0x26')](path[_0x20d225('0x2b')](config[_0x20d225('0x6')],'files/templates/trunk.ejs'),_0x20d225('0x39')),_0x3d1ccc=fs[_0x20d225('0x26')](path[_0x20d225('0x2b')](config[_0x20d225('0x6')],_0x20d225('0x3')),_0x20d225('0x39')),_0x4c9b88=ejs['render'](_0xf26db3,{'trunks':_0x56058a||[]});fs[_0x20d225('0x22')](_0x20d225('0x17'),_0x4c9b88);const _0x52c459=ejs[_0x20d225('0x1a')](_0x3d1ccc,{'trunks':_0x56058a||[]});return fs[_0x20d225('0x22')]('/etc/asterisk/sip_xcally_registers.conf',_0x52c459),respondWithRpcPromise('Reload',_0x20d225('0x5b'),{'module':_0x20d225('0x36')});}return null;})[_0x14504c('0x7')](function(_0x5c83d7){if(_0x5c83d7)return _0x4509b4;})['then'](respondWithResult(_0xbc291a,null))['catch'](handleError(_0xbc291a,null));},exports['destroy']=function(_0x445c9a,_0x25e93e){const _0x44b35b=_0x1d758c;return db[_0x44b35b('0x30')][_0x44b35b('0x27')]({'where':{'id':_0x445c9a['params']['id']}})[_0x44b35b('0x7')](handleEntityNotFound(_0x25e93e,null))[_0x44b35b('0x7')](removeEntity(_0x25e93e,null))[_0x44b35b('0x7')](function(){const _0x3516a1=_0x44b35b;return db[_0x3516a1('0x30')][_0x3516a1('0x8')]({'raw':!![]});})[_0x44b35b('0x7')](function(_0x29c264){const _0x5a7265=_0x44b35b,_0x323b8b=fs[_0x5a7265('0x26')](path[_0x5a7265('0x2b')](config['root'],_0x5a7265('0x9')),'utf8'),_0x560fc4=fs[_0x5a7265('0x26')](path[_0x5a7265('0x2b')](config[_0x5a7265('0x6')],_0x5a7265('0x3')),_0x5a7265('0x39')),_0x316338=ejs[_0x5a7265('0x1a')](_0x323b8b,{'trunks':_0x29c264}),_0x41f76d=ejs[_0x5a7265('0x1a')](_0x560fc4,{'trunks':_0x29c264});return fs[_0x5a7265('0x22')](_0x5a7265('0x17'),_0x316338),fs['writeFileSync']('/etc/asterisk/sip_xcally_registers.conf',_0x41f76d),respondWithRpcPromise(_0x5a7265('0x2a'),_0x5a7265('0x46'),{'module':_0x5a7265('0x36')});})['catch'](handleError(_0x25e93e,null));}; \ No newline at end of file diff --git a/server/api/trunk/trunk.model.js b/server/api/trunk/trunk.model.js index cc7d89b..85a9f1f 100644 --- a/server/api/trunk/trunk.model.js +++ b/server/api/trunk/trunk.model.js @@ -1 +1 @@ -const a644_0x168d=['tools_trunks','./trunk.attributes','Trunk','exports','define'];(function(_0x523953,_0x168de0){const _0x353c72=function(_0x5c900c){while(--_0x5c900c){_0x523953['push'](_0x523953['shift']());}};_0x353c72(++_0x168de0);}(a644_0x168d,0x11b));const a644_0x353c=function(_0x523953,_0x168de0){_0x523953=_0x523953-0x0;let _0x353c72=a644_0x168d[_0x523953];return _0x353c72;};const _0x1f4009=a644_0x353c;'use strict';const attributes=require(_0x1f4009('0x3'));module[_0x1f4009('0x0')]=function(_0x5c900c){const _0x4a33a3=_0x1f4009,_0x54c3fb=_0x5c900c[_0x4a33a3('0x1')](_0x4a33a3('0x4'),attributes,{'tableName':_0x4a33a3('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x54c3fb;}; \ No newline at end of file +const a644_0x5a76=['tools_trunks','./trunk.attributes','exports','Trunk'];(function(_0x38825f,_0x5a7634){const _0x12177f=function(_0x2f0478){while(--_0x2f0478){_0x38825f['push'](_0x38825f['shift']());}};_0x12177f(++_0x5a7634);}(a644_0x5a76,0x19d));const a644_0x1217=function(_0x38825f,_0x5a7634){_0x38825f=_0x38825f-0x0;let _0x12177f=a644_0x5a76[_0x38825f];return _0x12177f;};const _0x29916f=a644_0x1217;'use strict';const attributes=require(_0x29916f('0x0'));module[_0x29916f('0x1')]=function(_0x2f0478){const _0xd4deef=_0x29916f,_0x519694=_0x2f0478['define'](_0xd4deef('0x2'),attributes,{'tableName':_0xd4deef('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x519694;}; \ No newline at end of file diff --git a/server/api/trunk/trunk.rpc.js b/server/api/trunk/trunk.rpc.js index 42dde09..6a77337 100644 --- a/server/api/trunk/trunk.rpc.js +++ b/server/api/trunk/trunk.rpc.js @@ -1 +1 @@ -const a645_0x2425=['limit','model','rpc','debug','then','ShowTrunk','raw','map','info','findOne','lodash','stringify','catch','attributes','findAll','include','Trunk','where','message','GetTrunk','options','error'];(function(_0x43aa4a,_0x242574){const _0x5a969c=function(_0x33ed9f){while(--_0x33ed9f){_0x43aa4a['push'](_0x43aa4a['shift']());}};_0x5a969c(++_0x242574);}(a645_0x2425,0xd6));const a645_0x5a96=function(_0x43aa4a,_0x242574){_0x43aa4a=_0x43aa4a-0x0;let _0x5a969c=a645_0x2425[_0x43aa4a];return _0x5a969c;};const _0x406db5=a645_0x5a96;'use strict';const _=require(_0x406db5('0x10')),db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x406db5('0x8'));exports[_0x406db5('0x3')]=function(_0x33ed9f){const _0x5a1765=this;return new Promise(function(_0x5e0429,_0x170d87){const _0x4f44ee=a645_0x5a96;return db[_0x4f44ee('0x0')][_0x4f44ee('0x14')]({'raw':_0x33ed9f[_0x4f44ee('0x4')]?_0x33ed9f[_0x4f44ee('0x4')][_0x4f44ee('0xc')]===undefined?!![]:![]:!![],'where':_0x33ed9f[_0x4f44ee('0x4')]?_0x33ed9f[_0x4f44ee('0x4')][_0x4f44ee('0x1')]||null:null,'attributes':_0x33ed9f[_0x4f44ee('0x4')]?_0x33ed9f[_0x4f44ee('0x4')][_0x4f44ee('0x13')]||null:null,'limit':_0x33ed9f[_0x4f44ee('0x4')]?_0x33ed9f[_0x4f44ee('0x4')][_0x4f44ee('0x6')]||null:null,'include':_0x33ed9f[_0x4f44ee('0x4')]?_0x33ed9f[_0x4f44ee('0x4')][_0x4f44ee('0x15')]?_[_0x4f44ee('0xd')](_0x33ed9f['options'][_0x4f44ee('0x15')],function(_0x46d124){const _0x5c1f96=_0x4f44ee;return{'model':db[_0x46d124['model']],'as':_0x46d124['as'],'attributes':_0x46d124[_0x5c1f96('0x13')],'include':_0x46d124[_0x5c1f96('0x15')]?_['map'](_0x46d124[_0x5c1f96('0x15')],function(_0x24d69f){const _0x501486=_0x5c1f96;return{'model':db[_0x24d69f['model']],'as':_0x24d69f['as'],'attributes':_0x24d69f[_0x501486('0x13')],'include':_0x24d69f[_0x501486('0x15')]?_[_0x501486('0xd')](_0x24d69f[_0x501486('0x15')],function(_0x3be2b1){const _0x354be8=_0x501486;return{'model':db[_0x3be2b1['model']],'as':_0x3be2b1['as'],'attributes':_0x3be2b1[_0x354be8('0x13')]};}):[]};}):[]};}):[]:[]})[_0x4f44ee('0xa')](function(_0x397f02){const _0x46eec1=_0x4f44ee;logger[_0x46eec1('0xe')](_0x46eec1('0x3'),_0x33ed9f),logger[_0x46eec1('0x9')](_0x46eec1('0x3'),_0x33ed9f,JSON[_0x46eec1('0x11')](_0x397f02)),_0x5e0429(_0x397f02);})[_0x4f44ee('0x12')](function(_0x341a27){const _0x29eaa0=_0x4f44ee;logger[_0x29eaa0('0x5')](_0x29eaa0('0x3'),_0x341a27[_0x29eaa0('0x2')],_0x33ed9f),_0x170d87(_0x5a1765[_0x29eaa0('0x5')](0x1f4,_0x341a27[_0x29eaa0('0x2')]));});});},exports[_0x406db5('0xb')]=function(_0x2e00ba){const _0x2ddfcf=this;return new Promise(function(_0x59cd09,_0x546188){const _0x40eca2=a645_0x5a96;return db['Trunk'][_0x40eca2('0xf')]({'raw':_0x2e00ba[_0x40eca2('0x4')]?_0x2e00ba[_0x40eca2('0x4')]['raw']===undefined?!![]:![]:!![],'where':_0x2e00ba['options']?_0x2e00ba[_0x40eca2('0x4')]['where']||null:null,'attributes':_0x2e00ba[_0x40eca2('0x4')]?_0x2e00ba['options'][_0x40eca2('0x13')]||null:null,'include':_0x2e00ba[_0x40eca2('0x4')]?_0x2e00ba[_0x40eca2('0x4')][_0x40eca2('0x15')]?_[_0x40eca2('0xd')](_0x2e00ba['options'][_0x40eca2('0x15')],function(_0x4ec654){const _0x4e6ef2=_0x40eca2;return{'model':db[_0x4ec654[_0x4e6ef2('0x7')]],'as':_0x4ec654['as'],'attributes':_0x4ec654['attributes'],'include':_0x4ec654[_0x4e6ef2('0x15')]?_[_0x4e6ef2('0xd')](_0x4ec654[_0x4e6ef2('0x15')],function(_0x554067){const _0x188f0e=_0x4e6ef2;return{'model':db[_0x554067[_0x188f0e('0x7')]],'as':_0x554067['as'],'attributes':_0x554067[_0x188f0e('0x13')],'include':_0x554067['include']?_[_0x188f0e('0xd')](_0x554067[_0x188f0e('0x15')],function(_0x15263d){const _0x3e927a=_0x188f0e;return{'model':db[_0x15263d['model']],'as':_0x15263d['as'],'attributes':_0x15263d[_0x3e927a('0x13')]};}):[]};}):[]};}):[]:[]})[_0x40eca2('0xa')](function(_0x3abd66){const _0x33128d=_0x40eca2;logger[_0x33128d('0xe')]('ShowTrunk',_0x2e00ba),logger[_0x33128d('0x9')](_0x33128d('0xb'),_0x2e00ba,JSON[_0x33128d('0x11')](_0x3abd66)),_0x59cd09(_0x3abd66);})['catch'](function(_0x444c5c){const _0x771c20=_0x40eca2;logger[_0x771c20('0x5')](_0x771c20('0xb'),_0x444c5c[_0x771c20('0x2')],_0x2e00ba),_0x546188(_0x2ddfcf['error'](0x1f4,_0x444c5c['message']));});});}; \ No newline at end of file +const a645_0x56b3=['stringify','rpc','debug','ShowTrunk','raw','map','attributes','include','catch','error','message','where','then','findOne','lodash','findAll','info','limit','../../mysqldb','model','../../config/logger','options','GetTrunk','Trunk'];(function(_0x4890d3,_0x56b397){const _0x303aad=function(_0x2ed252){while(--_0x2ed252){_0x4890d3['push'](_0x4890d3['shift']());}};_0x303aad(++_0x56b397);}(a645_0x56b3,0x9e));const a645_0x303a=function(_0x4890d3,_0x56b397){_0x4890d3=_0x4890d3-0x0;let _0x303aad=a645_0x56b3[_0x4890d3];return _0x303aad;};const _0x289f0f=a645_0x303a;'use strict';const _=require(_0x289f0f('0x0')),db=require(_0x289f0f('0x4'))['db'],logger=require(_0x289f0f('0x6'))(_0x289f0f('0xb'));exports[_0x289f0f('0x8')]=function(_0x2ed252){const _0x315535=this;return new Promise(function(_0x5cd31e,_0x3aa8ac){const _0x358d6b=a645_0x303a;return db[_0x358d6b('0x9')][_0x358d6b('0x1')]({'raw':_0x2ed252['options']?_0x2ed252[_0x358d6b('0x7')][_0x358d6b('0xe')]===undefined?!![]:![]:!![],'where':_0x2ed252[_0x358d6b('0x7')]?_0x2ed252[_0x358d6b('0x7')][_0x358d6b('0x15')]||null:null,'attributes':_0x2ed252['options']?_0x2ed252[_0x358d6b('0x7')]['attributes']||null:null,'limit':_0x2ed252[_0x358d6b('0x7')]?_0x2ed252[_0x358d6b('0x7')][_0x358d6b('0x3')]||null:null,'include':_0x2ed252[_0x358d6b('0x7')]?_0x2ed252[_0x358d6b('0x7')][_0x358d6b('0x11')]?_[_0x358d6b('0xf')](_0x2ed252[_0x358d6b('0x7')][_0x358d6b('0x11')],function(_0x4a74df){const _0x3e7f3f=_0x358d6b;return{'model':db[_0x4a74df[_0x3e7f3f('0x5')]],'as':_0x4a74df['as'],'attributes':_0x4a74df[_0x3e7f3f('0x10')],'include':_0x4a74df['include']?_[_0x3e7f3f('0xf')](_0x4a74df[_0x3e7f3f('0x11')],function(_0x11c38e){const _0x1e132b=_0x3e7f3f;return{'model':db[_0x11c38e[_0x1e132b('0x5')]],'as':_0x11c38e['as'],'attributes':_0x11c38e['attributes'],'include':_0x11c38e[_0x1e132b('0x11')]?_[_0x1e132b('0xf')](_0x11c38e[_0x1e132b('0x11')],function(_0x5a06fd){const _0x4581aa=_0x1e132b;return{'model':db[_0x5a06fd[_0x4581aa('0x5')]],'as':_0x5a06fd['as'],'attributes':_0x5a06fd[_0x4581aa('0x10')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x34c738){const _0x5bbaa1=_0x358d6b;logger['info'](_0x5bbaa1('0x8'),_0x2ed252),logger[_0x5bbaa1('0xc')](_0x5bbaa1('0x8'),_0x2ed252,JSON[_0x5bbaa1('0xa')](_0x34c738)),_0x5cd31e(_0x34c738);})[_0x358d6b('0x12')](function(_0x18f15){const _0x244f13=_0x358d6b;logger[_0x244f13('0x13')](_0x244f13('0x8'),_0x18f15['message'],_0x2ed252),_0x3aa8ac(_0x315535['error'](0x1f4,_0x18f15[_0x244f13('0x14')]));});});},exports['ShowTrunk']=function(_0x51b00a){const _0x2518fa=this;return new Promise(function(_0x269302,_0x50ba8f){const _0x41d33e=a645_0x303a;return db[_0x41d33e('0x9')][_0x41d33e('0x17')]({'raw':_0x51b00a['options']?_0x51b00a[_0x41d33e('0x7')]['raw']===undefined?!![]:![]:!![],'where':_0x51b00a['options']?_0x51b00a[_0x41d33e('0x7')][_0x41d33e('0x15')]||null:null,'attributes':_0x51b00a[_0x41d33e('0x7')]?_0x51b00a[_0x41d33e('0x7')][_0x41d33e('0x10')]||null:null,'include':_0x51b00a[_0x41d33e('0x7')]?_0x51b00a[_0x41d33e('0x7')]['include']?_[_0x41d33e('0xf')](_0x51b00a[_0x41d33e('0x7')]['include'],function(_0x244f22){const _0x58ab00=_0x41d33e;return{'model':db[_0x244f22[_0x58ab00('0x5')]],'as':_0x244f22['as'],'attributes':_0x244f22[_0x58ab00('0x10')],'include':_0x244f22[_0x58ab00('0x11')]?_[_0x58ab00('0xf')](_0x244f22[_0x58ab00('0x11')],function(_0x27d9a0){const _0x3aa7c0=_0x58ab00;return{'model':db[_0x27d9a0[_0x3aa7c0('0x5')]],'as':_0x27d9a0['as'],'attributes':_0x27d9a0[_0x3aa7c0('0x10')],'include':_0x27d9a0['include']?_['map'](_0x27d9a0[_0x3aa7c0('0x11')],function(_0xfa18e1){const _0x3dae06=_0x3aa7c0;return{'model':db[_0xfa18e1[_0x3dae06('0x5')]],'as':_0xfa18e1['as'],'attributes':_0xfa18e1[_0x3dae06('0x10')]};}):[]};}):[]};}):[]:[]})[_0x41d33e('0x16')](function(_0x32386d){const _0x5186ff=_0x41d33e;logger[_0x5186ff('0x2')](_0x5186ff('0xd'),_0x51b00a),logger[_0x5186ff('0xc')](_0x5186ff('0xd'),_0x51b00a,JSON['stringify'](_0x32386d)),_0x269302(_0x32386d);})[_0x41d33e('0x12')](function(_0x139b06){const _0x96f2bc=_0x41d33e;logger[_0x96f2bc('0x13')]('ShowTrunk',_0x139b06['message'],_0x51b00a),_0x50ba8f(_0x2518fa[_0x96f2bc('0x13')](0x1f4,_0x139b06[_0x96f2bc('0x14')]));});});}; \ No newline at end of file diff --git a/server/api/user/index.js b/server/api/user/index.js index 4a71f43..3af2e45 100644 --- a/server/api/user/index.js +++ b/server/api/user/index.js @@ -1 +1 @@ -const a646_0x29a4=['post','get','addChatInteractions','/:id/password','/:id/square_projects','/:id/queues','getOpenchannelInteractions','/:id/scheduled_calls','/:id/lists','put','diskStorage','addSmsInteractions','/:id/sms_accounts','/:id/groups','addWhatsappAccounts','removeFaxInteractions','/:id/unpause','/describe','getApiKey','removeQueues','/:id/sms_interactions','getWhatsappAccounts','addFaxAccounts','/:id','/:id/fax_interactions','addTeams','update','getFaxInteractions','express','getAvatar','getAgents','/:id/login','path','unpause','removeWhatsappAccounts','/:id/api_key','removeSmsAccounts','addOpenchannelInteractions','multer','changePassword','getContacts','getSmsAccounts','delete','removeMailInteractions','/:id/openchannel_accounts','addAvatar','/:id/fax/interactions','exports','/:id/pause','login','/:id/whatsapp/interactions','root','logout','getScheduledCalls','getQueues','/create_many','show','addContacts','getScreenRecordings','format','/:id/agents','getMailAccounts','removeApiKey','removeChatInteractions','/:id/recordings','/:id/mail_accounts','addOpenchannelAccounts','/:id/mail_interactions','removeWhatsappInteractions','/:id/openchannel/interactions','describe','/:id/whatsapp_accounts','/:id/screen_recordings','addWhatsappInteractions','getVoiceQueuesRt','destroy','create','getSquareProjects','removeOpenchannelAccounts','addQueues','util','getVoicePrefixes','/:id/sms/interactions','getTeams','/:id/avatar','index','file','removeSquareProjects','addChatWebsites','removeTeams','/:id/whatsapp_interactions','/:id/chat_websites','isAuthenticated','/:id/fax_accounts','originalname','/:id/openchannel_interactions','getFaxAccounts','/:id/teams','Router','join','getChatWebsites','./user.controller','bulkCreate','pause','addMailInteractions','/whoami','removeOpenchannelInteractions','/:id/contacts','addFaxInteractions'];(function(_0x215b1c,_0x29a493){const _0x327e42=function(_0x29a81e){while(--_0x29a81e){_0x215b1c['push'](_0x215b1c['shift']());}};_0x327e42(++_0x29a493);}(a646_0x29a4,0x126));const a646_0x327e=function(_0x215b1c,_0x29a493){_0x215b1c=_0x215b1c-0x0;let _0x327e42=a646_0x29a4[_0x215b1c];return _0x327e42;};const _0x208906=a646_0x327e;'use strict';const multer=require(_0x208906('0x47')),util=require(_0x208906('0x4')),path=require(_0x208906('0x41')),express=require(_0x208906('0x3d')),router=express[_0x208906('0x16')](),auth=require('../../components/auth/service'),config=require('../../config/environment'),controller=require(_0x208906('0x19'));router[_0x208906('0x22')]('/',auth[_0x208906('0x10')](),controller[_0x208906('0x9')]),router[_0x208906('0x22')](_0x208906('0x32'),auth[_0x208906('0x10')](),controller[_0x208906('0x67')]),router[_0x208906('0x22')](_0x208906('0x1d'),auth[_0x208906('0x10')](),controller['whoami']),router[_0x208906('0x22')](_0x208906('0x38'),auth[_0x208906('0x10')](),controller[_0x208906('0x59')]),router[_0x208906('0x22')]('/:id/avatar',controller[_0x208906('0x3e')]),router[_0x208906('0x22')](_0x208906('0x1f'),auth[_0x208906('0x10')](),controller[_0x208906('0x49')]),router[_0x208906('0x22')](_0x208906('0x26'),auth[_0x208906('0x10')](),controller[_0x208906('0x57')]),router[_0x208906('0x22')]('/:id/queues_rt',auth['isAuthenticated'](),controller[_0x208906('0x6b')]),router[_0x208906('0x22')](_0x208906('0x2e'),auth['isAuthenticated'](),controller['getGroups']),router['get'](_0x208906('0x61'),auth[_0x208906('0x10')](),controller['getRecordings']),router[_0x208906('0x22')](_0x208906('0x69'),auth[_0x208906('0x10')](),controller[_0x208906('0x5b')]),router[_0x208906('0x22')]('/:id/chat/interactions',auth[_0x208906('0x10')](),controller['getChatInteractions']),router[_0x208906('0x22')](_0x208906('0x66'),auth['isAuthenticated'](),controller[_0x208906('0x27')]),router['get']('/:id/mail/interactions',auth[_0x208906('0x10')](),controller['getMailInteractions']),router[_0x208906('0x22')](_0x208906('0x6'),auth[_0x208906('0x10')](),controller['getSmsInteractions']),router['get'](_0x208906('0x4f'),auth['isAuthenticated'](),controller[_0x208906('0x3c')]),router['get'](_0x208906('0x53'),auth['isAuthenticated'](),controller['getWhatsappInteractions']),router[_0x208906('0x22')](_0x208906('0x15'),auth[_0x208906('0x10')](),controller[_0x208906('0x7')]),router[_0x208906('0x22')](_0x208906('0x29'),auth[_0x208906('0x10')](),controller['getLists']),router[_0x208906('0x22')](_0x208906('0x5d'),auth['isAuthenticated'](),controller[_0x208906('0x3f')]),router[_0x208906('0x22')]('/:id/prefixes',auth[_0x208906('0x10')](),controller[_0x208906('0x5')]),router[_0x208906('0x22')](_0x208906('0x11'),auth['isAuthenticated'](),controller[_0x208906('0x14')]),router[_0x208906('0x22')](_0x208906('0x62'),auth['isAuthenticated'](),controller[_0x208906('0x5e')]),router[_0x208906('0x22')](_0x208906('0x4d'),auth[_0x208906('0x10')](),controller['getOpenchannelAccounts']),router[_0x208906('0x22')]('/:id/sms_accounts',auth[_0x208906('0x10')](),controller[_0x208906('0x4a')]),router[_0x208906('0x22')]('/:id/chat_websites',auth['isAuthenticated'](),controller[_0x208906('0x18')]),router['get'](_0x208906('0x68'),auth['isAuthenticated'](),controller[_0x208906('0x36')]),router[_0x208906('0x22')](_0x208906('0x25'),auth[_0x208906('0x10')](),controller[_0x208906('0x1')]),router[_0x208906('0x22')](_0x208906('0x28'),auth[_0x208906('0x10')](),controller[_0x208906('0x56')]),router['get']('/:id/api_key',auth[_0x208906('0x10')](),controller[_0x208906('0x33')]),router[_0x208906('0x21')](_0x208906('0x1f'),auth[_0x208906('0x10')](),controller[_0x208906('0x5a')]),router[_0x208906('0x21')]('/',auth[_0x208906('0x10')](),controller[_0x208906('0x0')]),router[_0x208906('0x21')](_0x208906('0x58'),auth[_0x208906('0x10')](),controller[_0x208906('0x1a')]),router[_0x208906('0x21')](_0x208906('0x26'),auth[_0x208906('0x10')](),controller[_0x208906('0x3')]);const upload=multer({'storage':multer[_0x208906('0x2b')]({'destination':function(_0x29a81e,_0x5e082a,_0xfc8993){const _0x12f5a2=_0x208906;_0xfc8993(null,path[_0x12f5a2('0x17')](config[_0x12f5a2('0x54')],'files/images/'));},'filename':function(_0xe53eee,_0x12e6d7,_0x4f18d5){const _0x49a557=_0x208906;_0x4f18d5(null,util[_0x49a557('0x5c')]('%s-%s',Date['now'](),_0x12e6d7[_0x49a557('0x12')]));}})});router[_0x208906('0x21')](_0x208906('0x8'),upload['single'](_0x208906('0xa')),controller[_0x208906('0x4e')]),router[_0x208906('0x21')](_0x208906('0x40'),auth['isAuthenticated'](),controller[_0x208906('0x52')]),router[_0x208906('0x21')]('/:id/logout',auth[_0x208906('0x10')](),controller[_0x208906('0x55')]),router[_0x208906('0x21')](_0x208906('0x51'),auth[_0x208906('0x10')](),controller[_0x208906('0x1b')]),router['post'](_0x208906('0x31'),auth['isAuthenticated'](),controller[_0x208906('0x42')]),router[_0x208906('0x21')](_0x208906('0x15'),auth[_0x208906('0x10')](),controller[_0x208906('0x3a')]),router['post']('/:id/chat_interactions',auth[_0x208906('0x10')](),controller[_0x208906('0x23')]),router[_0x208906('0x21')](_0x208906('0x64'),auth['isAuthenticated'](),controller[_0x208906('0x1c')]),router[_0x208906('0x21')](_0x208906('0x39'),auth[_0x208906('0x10')](),controller[_0x208906('0x20')]),router['post'](_0x208906('0x35'),auth['isAuthenticated'](),controller[_0x208906('0x2c')]),router[_0x208906('0x21')](_0x208906('0x13'),auth[_0x208906('0x10')](),controller[_0x208906('0x46')]),router[_0x208906('0x21')](_0x208906('0xe'),auth[_0x208906('0x10')](),controller[_0x208906('0x6a')]),router[_0x208906('0x21')](_0x208906('0x11'),auth[_0x208906('0x10')](),controller[_0x208906('0x37')]),router[_0x208906('0x21')](_0x208906('0x62'),auth[_0x208906('0x10')](),controller['addMailAccounts']),router[_0x208906('0x21')](_0x208906('0x4d'),auth[_0x208906('0x10')](),controller[_0x208906('0x63')]),router['post']('/:id/sms_accounts',auth[_0x208906('0x10')](),controller['addSmsAccounts']),router[_0x208906('0x21')](_0x208906('0xf'),auth[_0x208906('0x10')](),controller[_0x208906('0xc')]),router[_0x208906('0x21')](_0x208906('0x68'),auth[_0x208906('0x10')](),controller[_0x208906('0x2f')]),router[_0x208906('0x21')](_0x208906('0x25'),auth['isAuthenticated'](),controller['addSquareProjects']),router['post']('/:id/api_key',auth[_0x208906('0x10')](),controller['createApiKey']),router[_0x208906('0x2a')](_0x208906('0x38'),auth['isAuthenticated'](),controller[_0x208906('0x3b')]),router[_0x208906('0x2a')](_0x208906('0x24'),auth[_0x208906('0x10')](),controller[_0x208906('0x48')]),router[_0x208906('0x4b')](_0x208906('0x26'),auth[_0x208906('0x10')](),controller[_0x208906('0x34')]),router[_0x208906('0x4b')](_0x208906('0x15'),auth['isAuthenticated'](),controller[_0x208906('0xd')]),router['delete'](_0x208906('0x38'),auth['isAuthenticated'](),controller[_0x208906('0x6c')]),router[_0x208906('0x4b')]('/:id/chat_interactions',auth[_0x208906('0x10')](),controller[_0x208906('0x60')]),router[_0x208906('0x4b')](_0x208906('0x64'),auth['isAuthenticated'](),controller[_0x208906('0x4c')]),router['delete'](_0x208906('0x39'),auth[_0x208906('0x10')](),controller[_0x208906('0x30')]),router[_0x208906('0x4b')]('/:id/sms_interactions',auth[_0x208906('0x10')](),controller['removeSmsInteractions']),router[_0x208906('0x4b')]('/:id/openchannel_interactions',auth[_0x208906('0x10')](),controller[_0x208906('0x1e')]),router[_0x208906('0x4b')](_0x208906('0xe'),auth[_0x208906('0x10')](),controller[_0x208906('0x65')]),router[_0x208906('0x4b')](_0x208906('0x11'),auth[_0x208906('0x10')](),controller['removeFaxAccounts']),router[_0x208906('0x4b')](_0x208906('0x62'),auth['isAuthenticated'](),controller['removeMailAccounts']),router[_0x208906('0x4b')](_0x208906('0x4d'),auth['isAuthenticated'](),controller[_0x208906('0x2')]),router['delete'](_0x208906('0x2d'),auth['isAuthenticated'](),controller[_0x208906('0x45')]),router['delete']('/:id/chat_websites',auth[_0x208906('0x10')](),controller['removeChatWebsites']),router[_0x208906('0x4b')]('/:id/whatsapp_accounts',auth[_0x208906('0x10')](),controller[_0x208906('0x43')]),router[_0x208906('0x4b')](_0x208906('0x25'),auth[_0x208906('0x10')](),controller[_0x208906('0xb')]),router[_0x208906('0x4b')](_0x208906('0x44'),auth[_0x208906('0x10')](),controller[_0x208906('0x5f')]),module[_0x208906('0x50')]=router; \ No newline at end of file +const a646_0x39b8=['removeSmsAccounts','/create_many','/:id/screen_recordings','/:id/pause','/:id/queues','getTeams','removeChatInteractions','/:id/mail_interactions','/:id/whatsapp_accounts','addOpenchannelInteractions','addOpenchannelAccounts','removeWhatsappInteractions','/:id/chat_websites','single','addSquareProjects','show','removeMailInteractions','removeSmsInteractions','/:id/teams','addChatInteractions','./user.controller','/:id/scheduled_calls','getAvatar','now','path','/:id/groups','getWhatsappAccounts','create','isAuthenticated','/:id/mail_accounts','removeMailAccounts','getSmsInteractions','format','login','getFaxInteractions','/:id/whatsapp/interactions','post','index','getSmsAccounts','getApiKey','diskStorage','/:id/avatar','../../components/auth/service','removeOpenchannelInteractions','removeSquareProjects','/:id/login','/:id/password','addFaxAccounts','addChatWebsites','removeTeams','getQueues','/:id/fax_interactions','/:id/square_projects','getOpenchannelAccounts','addMailInteractions','root','exports','removeFaxAccounts','/:id/openchannel_interactions','removeOpenchannelAccounts','/:id/chat_interactions','createApiKey','/:id/contacts','/:id/whatsapp_interactions','/:id/unpause','addQueues','getMailInteractions','/:id/logout','removeChatWebsites','/:id/openchannel_accounts','/:id/sms/interactions','addFaxInteractions','addAvatar','getMailAccounts','join','getChatInteractions','bulkCreate','/:id/recordings','getChatWebsites','getOpenchannelInteractions','/:id/agents','/:id/chat/interactions','getVoiceQueuesRt','describe','logout','changePassword','/:id/mail/interactions','../../config/environment','addWhatsappAccounts','addMailAccounts','removeWhatsappAccounts','getContacts','/:id/sms_interactions','getSquareProjects','getGroups','getLists','/:id','destroy','util','get','addContacts','/:id/queues_rt','/whoami','getVoicePrefixes','/:id/fax/interactions','/:id/api_key','/:id/fax_accounts','delete','%s-%s','/describe','Router'];(function(_0x9c381f,_0x39b8fe){const _0x1b79d5=function(_0x3a7485){while(--_0x3a7485){_0x9c381f['push'](_0x9c381f['shift']());}};_0x1b79d5(++_0x39b8fe);}(a646_0x39b8,0x82));const a646_0x1b79=function(_0x9c381f,_0x39b8fe){_0x9c381f=_0x9c381f-0x0;let _0x1b79d5=a646_0x39b8[_0x9c381f];return _0x1b79d5;};const _0x106547=a646_0x1b79;'use strict';const multer=require('multer'),util=require(_0x106547('0x4f')),path=require(_0x106547('0x5')),express=require('express'),router=express[_0x106547('0x5b')](),auth=require(_0x106547('0x17')),config=require(_0x106547('0x44')),controller=require(_0x106547('0x1'));router['get']('/',auth[_0x106547('0x9')](),controller[_0x106547('0x12')]),router[_0x106547('0x50')](_0x106547('0x5a'),auth[_0x106547('0x9')](),controller[_0x106547('0x40')]),router[_0x106547('0x50')](_0x106547('0x53'),auth['isAuthenticated'](),controller['whoami']),router['get']('/:id',auth[_0x106547('0x9')](),controller[_0x106547('0x6b')]),router[_0x106547('0x50')](_0x106547('0x16'),controller[_0x106547('0x3')]),router['get']('/:id/contacts',auth[_0x106547('0x9')](),controller[_0x106547('0x48')]),router[_0x106547('0x50')](_0x106547('0x60'),auth[_0x106547('0x9')](),controller[_0x106547('0x1f')]),router[_0x106547('0x50')](_0x106547('0x52'),auth[_0x106547('0x9')](),controller[_0x106547('0x3f')]),router[_0x106547('0x50')](_0x106547('0x6'),auth[_0x106547('0x9')](),controller[_0x106547('0x4b')]),router[_0x106547('0x50')](_0x106547('0x3a'),auth[_0x106547('0x9')](),controller['getRecordings']),router['get'](_0x106547('0x5e'),auth[_0x106547('0x9')](),controller['getScreenRecordings']),router[_0x106547('0x50')](_0x106547('0x3e'),auth[_0x106547('0x9')](),controller[_0x106547('0x38')]),router[_0x106547('0x50')]('/:id/openchannel/interactions',auth[_0x106547('0x9')](),controller[_0x106547('0x3c')]),router[_0x106547('0x50')](_0x106547('0x43'),auth[_0x106547('0x9')](),controller[_0x106547('0x2f')]),router['get'](_0x106547('0x33'),auth[_0x106547('0x9')](),controller[_0x106547('0xc')]),router[_0x106547('0x50')](_0x106547('0x55'),auth[_0x106547('0x9')](),controller[_0x106547('0xf')]),router[_0x106547('0x50')](_0x106547('0x10'),auth[_0x106547('0x9')](),controller['getWhatsappInteractions']),router['get'](_0x106547('0x6e'),auth['isAuthenticated'](),controller[_0x106547('0x61')]),router['get']('/:id/lists',auth['isAuthenticated'](),controller[_0x106547('0x4c')]),router[_0x106547('0x50')](_0x106547('0x3d'),auth[_0x106547('0x9')](),controller['getAgents']),router[_0x106547('0x50')]('/:id/prefixes',auth[_0x106547('0x9')](),controller[_0x106547('0x54')]),router[_0x106547('0x50')](_0x106547('0x57'),auth[_0x106547('0x9')](),controller['getFaxAccounts']),router[_0x106547('0x50')]('/:id/mail_accounts',auth[_0x106547('0x9')](),controller[_0x106547('0x36')]),router['get']('/:id/openchannel_accounts',auth[_0x106547('0x9')](),controller[_0x106547('0x22')]),router[_0x106547('0x50')]('/:id/sms_accounts',auth[_0x106547('0x9')](),controller[_0x106547('0x13')]),router[_0x106547('0x50')]('/:id/chat_websites',auth['isAuthenticated'](),controller[_0x106547('0x3b')]),router[_0x106547('0x50')](_0x106547('0x64'),auth[_0x106547('0x9')](),controller[_0x106547('0x7')]),router[_0x106547('0x50')](_0x106547('0x21'),auth[_0x106547('0x9')](),controller[_0x106547('0x4a')]),router[_0x106547('0x50')](_0x106547('0x2'),auth[_0x106547('0x9')](),controller['getScheduledCalls']),router['get']('/:id/api_key',auth['isAuthenticated'](),controller[_0x106547('0x14')]),router[_0x106547('0x11')](_0x106547('0x2b'),auth['isAuthenticated'](),controller[_0x106547('0x51')]),router[_0x106547('0x11')]('/',auth['isAuthenticated'](),controller[_0x106547('0x8')]),router[_0x106547('0x11')](_0x106547('0x5d'),auth[_0x106547('0x9')](),controller[_0x106547('0x39')]),router[_0x106547('0x11')](_0x106547('0x60'),auth[_0x106547('0x9')](),controller[_0x106547('0x2e')]);const upload=multer({'storage':multer[_0x106547('0x15')]({'destination':function(_0x3a7485,_0x5ba49b,_0x38cd48){const _0x3f9bf7=_0x106547;_0x38cd48(null,path[_0x3f9bf7('0x37')](config[_0x3f9bf7('0x24')],'files/images/'));},'filename':function(_0x4f58f6,_0x314623,_0xe541cf){const _0x2751ce=_0x106547;_0xe541cf(null,util[_0x2751ce('0xd')](_0x2751ce('0x59'),Date[_0x2751ce('0x4')](),_0x314623['originalname']));}})});router[_0x106547('0x11')](_0x106547('0x16'),upload[_0x106547('0x69')]('file'),controller[_0x106547('0x35')]),router[_0x106547('0x11')](_0x106547('0x1a'),auth[_0x106547('0x9')](),controller[_0x106547('0xe')]),router[_0x106547('0x11')](_0x106547('0x30'),auth[_0x106547('0x9')](),controller[_0x106547('0x41')]),router['post'](_0x106547('0x5f'),auth['isAuthenticated'](),controller['pause']),router['post'](_0x106547('0x2d'),auth[_0x106547('0x9')](),controller['unpause']),router[_0x106547('0x11')](_0x106547('0x6e'),auth[_0x106547('0x9')](),controller['addTeams']),router[_0x106547('0x11')](_0x106547('0x29'),auth[_0x106547('0x9')](),controller[_0x106547('0x0')]),router[_0x106547('0x11')]('/:id/mail_interactions',auth['isAuthenticated'](),controller[_0x106547('0x23')]),router[_0x106547('0x11')](_0x106547('0x20'),auth[_0x106547('0x9')](),controller[_0x106547('0x34')]),router[_0x106547('0x11')]('/:id/sms_interactions',auth[_0x106547('0x9')](),controller['addSmsInteractions']),router[_0x106547('0x11')]('/:id/openchannel_interactions',auth['isAuthenticated'](),controller[_0x106547('0x65')]),router['post'](_0x106547('0x2c'),auth[_0x106547('0x9')](),controller['addWhatsappInteractions']),router[_0x106547('0x11')](_0x106547('0x57'),auth[_0x106547('0x9')](),controller[_0x106547('0x1c')]),router[_0x106547('0x11')](_0x106547('0xa'),auth[_0x106547('0x9')](),controller[_0x106547('0x46')]),router['post'](_0x106547('0x32'),auth['isAuthenticated'](),controller[_0x106547('0x66')]),router[_0x106547('0x11')]('/:id/sms_accounts',auth[_0x106547('0x9')](),controller['addSmsAccounts']),router['post'](_0x106547('0x68'),auth[_0x106547('0x9')](),controller[_0x106547('0x1d')]),router[_0x106547('0x11')]('/:id/whatsapp_accounts',auth[_0x106547('0x9')](),controller[_0x106547('0x45')]),router[_0x106547('0x11')](_0x106547('0x21'),auth[_0x106547('0x9')](),controller[_0x106547('0x6a')]),router[_0x106547('0x11')](_0x106547('0x56'),auth[_0x106547('0x9')](),controller[_0x106547('0x2a')]),router['put'](_0x106547('0x4d'),auth[_0x106547('0x9')](),controller['update']),router['put'](_0x106547('0x1b'),auth[_0x106547('0x9')](),controller[_0x106547('0x42')]),router[_0x106547('0x58')](_0x106547('0x60'),auth[_0x106547('0x9')](),controller['removeQueues']),router[_0x106547('0x58')]('/:id/teams',auth[_0x106547('0x9')](),controller[_0x106547('0x1e')]),router[_0x106547('0x58')]('/:id',auth[_0x106547('0x9')](),controller[_0x106547('0x4e')]),router['delete']('/:id/chat_interactions',auth['isAuthenticated'](),controller[_0x106547('0x62')]),router[_0x106547('0x58')](_0x106547('0x63'),auth[_0x106547('0x9')](),controller[_0x106547('0x6c')]),router[_0x106547('0x58')]('/:id/fax_interactions',auth['isAuthenticated'](),controller['removeFaxInteractions']),router[_0x106547('0x58')](_0x106547('0x49'),auth[_0x106547('0x9')](),controller[_0x106547('0x6d')]),router[_0x106547('0x58')](_0x106547('0x27'),auth[_0x106547('0x9')](),controller[_0x106547('0x18')]),router[_0x106547('0x58')](_0x106547('0x2c'),auth[_0x106547('0x9')](),controller[_0x106547('0x67')]),router['delete']('/:id/fax_accounts',auth[_0x106547('0x9')](),controller[_0x106547('0x26')]),router[_0x106547('0x58')](_0x106547('0xa'),auth[_0x106547('0x9')](),controller[_0x106547('0xb')]),router[_0x106547('0x58')](_0x106547('0x32'),auth[_0x106547('0x9')](),controller[_0x106547('0x28')]),router['delete']('/:id/sms_accounts',auth[_0x106547('0x9')](),controller[_0x106547('0x5c')]),router[_0x106547('0x58')](_0x106547('0x68'),auth[_0x106547('0x9')](),controller[_0x106547('0x31')]),router[_0x106547('0x58')](_0x106547('0x64'),auth['isAuthenticated'](),controller[_0x106547('0x47')]),router[_0x106547('0x58')](_0x106547('0x21'),auth[_0x106547('0x9')](),controller[_0x106547('0x19')]),router[_0x106547('0x58')]('/:id/api_key',auth[_0x106547('0x9')](),controller['removeApiKey']),module[_0x106547('0x25')]=router; \ No newline at end of file diff --git a/server/api/user/user.attributes.js b/server/api/user/user.attributes.js index 6d65277..35aad58 100644 --- a/server/api/user/user.attributes.js +++ b/server/api/user/user.attributes.js @@ -1 +1 @@ -const a647_0x4936=['name','actpass','sequelize','screenrecording','ALLOWED_FAILED_SCREEN','yes','uas','false','fingerprint','allow','telephone','PROHIB','agent','inband','split','ALLOWED','active','util','exports','nonat','map','defaultuser','nat','permissions','update,nonat','showWebBar','ALLOWED_PASSED_SCREEN','internal','uac','dtlscertfile','encryption','loginAttempts','dtlsverify','rfc2833','setDataValue','/etc/pki/tls/certs/motion.crt','ALLOWED_NOT_SCREENED','passive','shortinfo','never','blockedAt','rtcp_mux','getDataValue','format','phoneBarEnableScreenRecordingByAgent','\x22\x22\x20<>','outgoing','friend','PROHIB_PASSED_SCREEN','fullname','wss','auto','force_rport,comedia','peer','info','/etc/pki/tls/private/motion.key','STRING','lodash','isArray','join','DATE','refuse','dtlsenable','local','all','true','INTEGER','callerid','force_avp','accountcode','BOOLEAN','moment','blocked','dtlsprivatekey','insecure','transport','dtlssetup','email','icesupport','PROHIB_FAILED_SCREEN','update','get','ENUM','\x22%s\x22\x20<%s>','ulaw;alaw;gsm','DEFAULT\x20PAUSE','udp','toLowerCase','The\x20name\x20of\x20the\x20user','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','TEXT'];(function(_0x18b6cd,_0x49366c){const _0x29ca61=function(_0x531a3f){while(--_0x531a3f){_0x18b6cd['push'](_0x18b6cd['shift']());}};_0x29ca61(++_0x49366c);}(a647_0x4936,0x10d));const a647_0x29ca=function(_0x18b6cd,_0x49366c){_0x18b6cd=_0x18b6cd-0x0;let _0x29ca61=a647_0x4936[_0x18b6cd];return _0x29ca61;};const _0x50ecfa=a647_0x29ca;'use strict';const Sequelize=require(_0x50ecfa('0x9')),moment=require(_0x50ecfa('0x4e')),util=require(_0x50ecfa('0x18')),_=require(_0x50ecfa('0x40'));module[_0x50ecfa('0x19')]={'name':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':![],'unique':_0x50ecfa('0x7'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x531a3f){const _0xa1d4d7=_0x50ecfa;this['setDataValue'](_0xa1d4d7('0x7'),_0x531a3f),this[_0xa1d4d7('0x29')](_0xa1d4d7('0x1c'),_0x531a3f);},'comment':_0x50ecfa('0x3')},'fullname':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':![],'set':function(_0xc03967){const _0x11ae69=_0x50ecfa;this[_0x11ae69('0x29')](_0x11ae69('0x38'),_0xc03967),this[_0x11ae69('0x29')]('callerid',util[_0x11ae69('0x32')](_0x11ae69('0x5a'),_0xc03967,this[_0x11ae69('0x31')](_0x11ae69('0x22'))));}},'alias':{'type':Sequelize[_0x50ecfa('0x3f')]},'email':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':![],'unique':_0x50ecfa('0x54'),'validate':{'isEmail':!![]},'set':function(_0x29fd0b){const _0x12f382=_0x50ecfa;_0x29fd0b&&this[_0x12f382('0x29')](_0x12f382('0x54'),_0x29fd0b[_0x12f382('0x2')]());}},'role':{'type':Sequelize[_0x50ecfa('0x59')]('admin','user',_0x50ecfa('0x13'),_0x50ecfa('0x11')),'allowNull':![]},'password':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':Sequelize['STRING'],'defaultValue':_0x50ecfa('0x46')},'internal':{'type':Sequelize['INTEGER'](0xb),'allowNull':![],'unique':_0x50ecfa('0x22'),'set':function(_0x4245b2){const _0xdc69d1=_0x50ecfa;this[_0xdc69d1('0x29')](_0xdc69d1('0x22'),_0x4245b2),this['setDataValue'](_0xdc69d1('0x4c'),_0x4245b2),this[_0xdc69d1('0x29')](_0xdc69d1('0x4a'),util['format'](_0xdc69d1('0x5a'),this['getDataValue']('fullname'),_0x4245b2));}},'salt':{'type':Sequelize[_0x50ecfa('0x3f')]},'phone':{'type':Sequelize['STRING']},'mobile':{'type':Sequelize[_0x50ecfa('0x3f')]},'address':{'type':Sequelize[_0x50ecfa('0x3f')]},'zipcode':{'type':Sequelize[_0x50ecfa('0x3f')]},'userpic':{'type':Sequelize[_0x50ecfa('0x3f')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize['STRING']},'online':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'lastLoginAt':{'type':Sequelize[_0x50ecfa('0x43')]},'voicePause':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'chatPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'mailPause':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'faxPause':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'smsPause':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'whatsappPause':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'openchannelPause':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'pauseType':{'type':Sequelize['STRING'],'defaultValue':_0x50ecfa('0x0')},'lastPauseAt':{'type':Sequelize[_0x50ecfa('0x43')]},'chatCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'mailCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'faxCapacity':{'type':Sequelize[_0x50ecfa('0x49')],'defaultValue':0x0},'smsCapacity':{'type':Sequelize[_0x50ecfa('0x49')],'defaultValue':0x0},'whatsappCapacity':{'type':Sequelize[_0x50ecfa('0x49')],'defaultValue':0x0},'openchannelCapacity':{'type':Sequelize[_0x50ecfa('0x49')],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarEnableSettings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarListenPort':{'type':Sequelize[_0x50ecfa('0x49')](0x5),'defaultValue':0x1428},'phoneBarExpires':{'type':Sequelize[_0x50ecfa('0x49')](0x5),'defaultValue':0x78},'phoneBarRemoteControl':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':Sequelize[_0x50ecfa('0x49')],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarRingInUse':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'chanspy':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'description':{'type':Sequelize['STRING'],'allowNull':!![]},'host':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![],'defaultValue':'dynamic'},'ipaddr':{'type':Sequelize['STRING'],'allowNull':!![]},'port':{'type':Sequelize[_0x50ecfa('0x49')](0x5),'allowNull':!![]},'regseconds':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'fullcontact':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'regserver':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'useragent':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'lastms':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'type':{'type':Sequelize[_0x50ecfa('0x59')]('friend','user',_0x50ecfa('0x3c')),'allowNull':!![],'defaultValue':_0x50ecfa('0x36')},'context':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![],'defaultValue':'from-sip'},'callingpres':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0x2b'),_0x50ecfa('0x21'),_0x50ecfa('0xb'),_0x50ecfa('0x16'),'PROHIB_NOT_SCREENED',_0x50ecfa('0x37'),_0x50ecfa('0x56'),_0x50ecfa('0x12')),'allowNull':!![]},'deny':{'type':Sequelize['STRING'],'allowNull':!![]},'permit':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'secret':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'md5secret':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'remotesecret':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'transport':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':_0x50ecfa('0x1'),'set':function(_0x8196f8){const _0x5041c7=_0x50ecfa;this['setDataValue'](_0x5041c7('0x52'),_0x8196f8?_0x8196f8['join'](','):null);},'get':function(){const _0xaf5dd7=_0x50ecfa;return this[_0xaf5dd7('0x31')](_0xaf5dd7('0x52'))?this[_0xaf5dd7('0x31')]('transport')[_0xaf5dd7('0x15')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]'},'dtmfmode':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0x28'),_0x50ecfa('0x3d'),_0x50ecfa('0x2d'),_0x50ecfa('0x14'),_0x50ecfa('0x3a')),'allowNull':!![],'defaultValue':_0x50ecfa('0x28')},'directmedia':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no',_0x50ecfa('0x1a'),_0x50ecfa('0x57'),_0x50ecfa('0x35')),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'directmediadeny':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'nat':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![],'defaultValue':_0x50ecfa('0x3b'),'set':function(_0x47a201){const _0x46c0cc=_0x50ecfa;this[_0x46c0cc('0x29')](_0x46c0cc('0x1d'),_0x47a201?_0x47a201[_0x46c0cc('0x42')](','):null);},'get':function(){const _0x2a0834=_0x50ecfa;return this['getDataValue'](_0x2a0834('0x1d'))?this[_0x2a0834('0x31')](_0x2a0834('0x1d'))[_0x2a0834('0x15')](','):null;},'comment':'String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]'},'callgroup':{'type':Sequelize[_0x50ecfa('0x3f')]},'namedcallgroup':{'type':Sequelize[_0x50ecfa('0x3f')]},'pickupgroup':{'type':Sequelize[_0x50ecfa('0x3f')]},'namedpickupgroup':{'type':Sequelize[_0x50ecfa('0x3f')]},'language':{'type':Sequelize['STRING'],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x50ecfa('0x3f')]},'disallow':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':![],'defaultValue':_0x50ecfa('0x47')},'allow':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'ulaw;alaw;gsm','set':function(_0x1537c7){const _0x1180d6=_0x50ecfa;this[_0x1180d6('0x29')](_0x1180d6('0x10'),_0x1537c7?_0x1537c7[_0x1180d6('0x42')](';'):_0x1180d6('0x5b'));},'get':function(){const _0xc96566=_0x50ecfa;return this['getDataValue'](_0xc96566('0x10'))?this[_0xc96566('0x31')](_0xc96566('0x10'))[_0xc96566('0x15')](';'):null;},'comment':_0x50ecfa('0x5')},'autoframing':{'type':Sequelize['ENUM'](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'insecure':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![],'set':function(_0x583313){const _0x356082=_0x50ecfa;this[_0x356082('0x29')]('insecure',_0x583313?_0x583313[_0x356082('0x42')](','):null);},'get':function(){const _0x61647e=_0x50ecfa;return this['getDataValue'](_0x61647e('0x51'))?this['getDataValue'](_0x61647e('0x51'))[_0x61647e('0x15')](','):null;},'comment':_0x50ecfa('0x4')},'trustrpid':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no',_0x50ecfa('0x2e')),'allowNull':!![]},'promiscredir':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'useclientcode':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'accountcode':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'setvar':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'callerid':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![],'defaultValue':_0x50ecfa('0x34')},'amaflags':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'callcounter':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no'),'allowNull':!![],'defaultValue':_0x50ecfa('0xc')},'busylevel':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'allowoverlap':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'allowsubscribe':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'allowtransfer':{'type':Sequelize['ENUM'](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'ignoresdpversion':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no'),'allowNull':!![]},'subscribecontext':{'type':Sequelize['STRING'],'allowNull':!![]},'template':{'type':Sequelize['STRING'],'allowNull':!![]},'videosupport':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no','always'),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'rfc2833compensate':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'mailbox':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'session_timers':{'type':Sequelize['ENUM']('accept',_0x50ecfa('0x44'),'originate'),'allowNull':!![]},'session_expires':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'session_minse':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'session_refresher':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0x23'),'uas'),'allowNull':!![],'defaultValue':_0x50ecfa('0xd')},'t38pt_usertpsource':{'type':Sequelize['STRING'],'allowNull':!![]},'regexten':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'fromdomain':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'fromuser':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'qualify':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no'),'allowNull':!![],'defaultValue':_0x50ecfa('0xc')},'keepalive':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'defaultip':{'type':Sequelize['STRING'],'allowNull':!![]},'defaultuser':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'rtptimeout':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'rtpholdtimeout':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'rtpkeepalive':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'sendrpid':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':Sequelize['STRING'],'allowNull':!![]},'callbackextension':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'timert1':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'timerb':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'qualifyfreq':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'contactpermit':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'contactdeny':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'contactacl':{'type':Sequelize['STRING'],'allowNull':!![]},'unsolicited_mailbox':{'type':Sequelize['STRING'],'allowNull':!![]},'use_q850_reason':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'maxforwards':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'encryption':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no'),'allowNull':!![]},'force_avp':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no'),'allowNull':!![]},'icesupport':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'dtlsenable':{'type':Sequelize['ENUM'](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'dtlsverify':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no',_0x50ecfa('0xf'),'certificate'),'allowNull':!![]},'dtlsrekey':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![]},'dtlscertfile':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'dtlsprivatekey':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlscipher':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'dtlscafile':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlscapath':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'dtlssetup':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0x17'),_0x50ecfa('0x2c'),_0x50ecfa('0x8')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'usereqphone':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'recordofffeature':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'call_limit':{'type':Sequelize[_0x50ecfa('0x49')](0xb),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no'),'allowNull':!![]},'subscribemwi':{'type':Sequelize[_0x50ecfa('0x59')](_0x50ecfa('0xc'),'no'),'allowNull':!![]},'vmexten':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'mohinterpret':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'mohsuggest':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'parkinglot':{'type':Sequelize[_0x50ecfa('0x3f')],'allowNull':!![]},'canreinvite':{'type':Sequelize[_0x50ecfa('0x59')]('yes','no',_0x50ecfa('0x1a'),'update',_0x50ecfa('0x1f')),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'resetPasswordToken':{'type':Sequelize['STRING']},'resetPasswordExpires':{'type':Sequelize['DATE']},'passwordResetAt':{'type':Sequelize[_0x50ecfa('0x43')],'defaultValue':null},'previousPasswords':{'type':Sequelize[_0x50ecfa('0x3f')]},'showWebBar':{'type':Sequelize[_0x50ecfa('0x49')],'defaultValue':0x0,'set':function(_0x4d3209){const _0xe1ac8b=_0x50ecfa;this[_0xe1ac8b('0x29')](_0xe1ac8b('0x20'),_0x4d3209);const _0x358fdf=this[_0xe1ac8b('0x58')]({'plain':!![]});switch(_0x4d3209){case 0x0:case 0x1:{let _0x557e15=_0x358fdf['transport']?_[_0xe1ac8b('0x41')](_0x358fdf[_0xe1ac8b('0x52')])?_0x358fdf[_0xe1ac8b('0x52')][_0xe1ac8b('0x42')]():_0x358fdf[_0xe1ac8b('0x52')]:'udp';_0x557e15===_0xe1ac8b('0x39')&&(_0x557e15=_0xe1ac8b('0x1')),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x52'),_0x557e15),this['setDataValue'](_0xe1ac8b('0x25'),'no'),this[_0xe1ac8b('0x29')]('avpf',null),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x4b'),null),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x55'),null),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x45'),null),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x27'),null),this['setDataValue'](_0xe1ac8b('0x53'),null),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x24'),null),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x50'),null),this['setDataValue'](_0xe1ac8b('0x30'),'no');}break;case 0x2:this[_0xe1ac8b('0x29')](_0xe1ac8b('0x52'),_0xe1ac8b('0x39')),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x25'),_0xe1ac8b('0xc')),this[_0xe1ac8b('0x29')]('avpf',_0xe1ac8b('0xc')),this[_0xe1ac8b('0x29')]('force_avp','yes'),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x55'),_0xe1ac8b('0xc')),this['setDataValue'](_0xe1ac8b('0x45'),_0xe1ac8b('0xc')),this['setDataValue'](_0xe1ac8b('0x27'),'no'),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x53'),_0xe1ac8b('0x8')),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x24'),_0x358fdf[_0xe1ac8b('0x24')]||_0xe1ac8b('0x2a')),this['setDataValue']('dtlsprivatekey',_0x358fdf[_0xe1ac8b('0x50')]||_0xe1ac8b('0x3e')),this[_0xe1ac8b('0x29')](_0xe1ac8b('0x30'),_0xe1ac8b('0xc'));break;default:}}},'permissions':{'type':Sequelize[_0x50ecfa('0x6')],'set':function(_0x51aa6f){const _0x12470b=_0x50ecfa;this[_0x12470b('0x29')]('permissions',_0x51aa6f?_0x51aa6f[_0x12470b('0x42')](','):[]);},'get':function(){const _0xe84c2e=_0x50ecfa;return this['getDataValue'](_0xe84c2e('0x1e'))?_[_0xe84c2e('0x1b')](this[_0xe84c2e('0x31')]('permissions')[_0xe84c2e('0x15')](','),function(_0x2675ee){return parseInt(_0x2675ee,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':Sequelize[_0x50ecfa('0x3f')]},'phoneBarNoReplyNumber':{'type':Sequelize[_0x50ecfa('0x3f')]},'phoneBarBusyNumber':{'type':Sequelize[_0x50ecfa('0x3f')]},'phoneBarUnconditional':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarNoReply':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarBusy':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarDnd':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':Sequelize[_0x50ecfa('0x49')],'defaultValue':0x0},'extensionMonitor':{'type':Sequelize[_0x50ecfa('0x3f')],'defaultValue':''},'crudPermissions':{'type':Sequelize[_0x50ecfa('0x49')],'defaultValue':0x0},'rtcp_mux':{'type':Sequelize['ENUM'](_0x50ecfa('0xc'),'no'),'defaultValue':'no'},'allowmessenger':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':Sequelize[_0x50ecfa('0x3f')]},'phoneBarEnableJaws':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x29ec6c=_0x50ecfa;return this['getDataValue'](_0x29ec6c('0x33'))?this['getDataValue'](_0x29ec6c('0x33')):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'phoneBarPrefixRequired':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'hotdesk':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'interface':{'type':Sequelize[_0x50ecfa('0x3f')],'defaultValue':null},'privacyEnabled':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'apiKeyNonce':{'type':Sequelize['STRING'],'allowNull':!![]},'apiKeyIat':{'type':Sequelize['STRING'],'allowNull':!![]},'screenrecording':{'type':Sequelize['BOOLEAN'],'defaultValue':![],'set':function(_0x11bbe5){const _0x2d1b8f=_0x50ecfa;if(typeof _0x11bbe5==='string'){const _0x1bf100=_0x11bbe5==='1'?!![]:_0x11bbe5==='0'?![]:_0x11bbe5===_0x2d1b8f('0x48')?!![]:_0x11bbe5===_0x2d1b8f('0xe')?![]:![];this['setDataValue'](_0x2d1b8f('0xa'),_0x1bf100);}else this[_0x2d1b8f('0x29')](_0x2d1b8f('0xa'),_0x11bbe5);}},'blocked':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![],'set':function(_0x213878){const _0x34ce42=_0x50ecfa;this[_0x34ce42('0x29')](_0x34ce42('0x4f'),_0x213878),_0x213878===!![]?(this['setDataValue'](_0x34ce42('0x2f'),moment()),this[_0x34ce42('0x29')](_0x34ce42('0x26'),0x0)):this['setDataValue'](_0x34ce42('0x2f'),null);}},'blockedAt':{'type':Sequelize[_0x50ecfa('0x43')],'defaultValue':null},'loginAttempts':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'disabled':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':![]},'settingsEnabled':{'type':Sequelize[_0x50ecfa('0x4d')],'defaultValue':!![]}}; \ No newline at end of file +const a647_0x5952=['dtlsverify','info','util','yes','email','\x22\x22\x20<>','force_rport,comedia','true','screenrecording','dtlsprivatekey','icesupport','nat','ulaw;alaw;gsm','admin','always','phoneBarEnableScreenRecordingByAgent','getDataValue','\x22%s\x22\x20<%s>','rtcp_mux','dynamic','dtlscertfile','showWebBar','setDataValue','refuse','get','BOOLEAN','peer','encryption','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22force_rport\x22,\x20\x22comedia\x22]','allow','from-sip','avpf','ALLOWED','actpass','ALLOWED_PASSED_SCREEN','/etc/pki/tls/private/motion.key','dtlsenable','ENUM','callerid','name','PROHIB','udp','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22udp\x22,\x20\x22tcp\x22]','nonat','insecure','map','update','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22ulaw\x22,\x20\x22alaw\x22,\x20\x22gsm\x22]','lodash','String\x20is\x20deprecated.\x20Please\x20use\x20an\x20Array\x20as\x20[\x22port\x22,\x20\x22invite\x22]','join','split','uas','permissions','false','shortinfo','force_avp','accept','update,nonat','internal','agent','VIRTUAL','passive','outgoing','rfc2833','telephone','user','INTEGER','format','wss','STRING','friend','PROHIB_FAILED_SCREEN','TEXT','active','string','dtlssetup','ALLOWED_FAILED_SCREEN','ALLOWED_NOT_SCREENED','sequelize','toLowerCase','accountcode','isArray','certificate','uac','The\x20name\x20of\x20the\x20user','blockedAt','PROHIB_NOT_SCREENED','transport','DATE'];(function(_0x56819d,_0x595211){const _0x5aea91=function(_0x22a8e6){while(--_0x22a8e6){_0x56819d['push'](_0x56819d['shift']());}};_0x5aea91(++_0x595211);}(a647_0x5952,0x6f));const a647_0x5aea=function(_0x56819d,_0x595211){_0x56819d=_0x56819d-0x0;let _0x5aea91=a647_0x5952[_0x56819d];return _0x5aea91;};const _0x3ca547=a647_0x5aea;'use strict';const Sequelize=require(_0x3ca547('0x3a')),moment=require('moment'),util=require(_0x3ca547('0x47')),_=require(_0x3ca547('0x1b'));module['exports']={'name':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':![],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i},'set':function(_0x22a8e6){const _0x3c6bdf=_0x3ca547;this[_0x3c6bdf('0x1')](_0x3c6bdf('0x12'),_0x22a8e6),this[_0x3c6bdf('0x1')]('defaultuser',_0x22a8e6);},'comment':_0x3ca547('0x40')},'fullname':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':![],'set':function(_0xcb38fd){const _0x541cd0=_0x3ca547;this['setDataValue']('fullname',_0xcb38fd),this[_0x541cd0('0x1')]('callerid',util[_0x541cd0('0x2f')](_0x541cd0('0x56'),_0xcb38fd,this[_0x541cd0('0x55')](_0x541cd0('0x26'))));}},'alias':{'type':Sequelize[_0x3ca547('0x31')]},'email':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':![],'unique':_0x3ca547('0x49'),'validate':{'isEmail':!![]},'set':function(_0x4f40c6){const _0x338499=_0x3ca547;_0x4f40c6&&this[_0x338499('0x1')](_0x338499('0x49'),_0x4f40c6[_0x338499('0x3b')]());}},'role':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x52'),_0x3ca547('0x2d'),_0x3ca547('0x27'),_0x3ca547('0x2c')),'allowNull':![]},'password':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':![],'validate':{'notEmpty':!![]}},'provider':{'type':Sequelize[_0x3ca547('0x31')],'defaultValue':'local'},'internal':{'type':Sequelize['INTEGER'](0xb),'allowNull':![],'unique':_0x3ca547('0x26'),'set':function(_0x1f4193){const _0x1f8d62=_0x3ca547;this['setDataValue'](_0x1f8d62('0x26'),_0x1f4193),this['setDataValue'](_0x1f8d62('0x3c'),_0x1f4193),this['setDataValue'](_0x1f8d62('0x11'),util[_0x1f8d62('0x2f')](_0x1f8d62('0x56'),this[_0x1f8d62('0x55')]('fullname'),_0x1f4193));}},'salt':{'type':Sequelize[_0x3ca547('0x31')]},'phone':{'type':Sequelize[_0x3ca547('0x31')]},'mobile':{'type':Sequelize[_0x3ca547('0x31')]},'address':{'type':Sequelize[_0x3ca547('0x31')]},'zipcode':{'type':Sequelize[_0x3ca547('0x31')]},'userpic':{'type':Sequelize[_0x3ca547('0x31')]},'city':{'type':Sequelize['STRING']},'country':{'type':Sequelize[_0x3ca547('0x31')]},'online':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'lastLoginAt':{'type':Sequelize[_0x3ca547('0x44')]},'voicePause':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'chatPause':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'mailPause':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'faxPause':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'smsPause':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'whatsappPause':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'openchannelPause':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'pauseType':{'type':Sequelize[_0x3ca547('0x31')],'defaultValue':'DEFAULT\x20PAUSE'},'lastPauseAt':{'type':Sequelize[_0x3ca547('0x44')]},'chatCapacity':{'type':Sequelize[_0x3ca547('0x2e')],'defaultValue':0x0},'mailCapacity':{'type':Sequelize[_0x3ca547('0x2e')],'defaultValue':0x0},'faxCapacity':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'smsCapacity':{'type':Sequelize[_0x3ca547('0x2e')],'defaultValue':0x0},'whatsappCapacity':{'type':Sequelize[_0x3ca547('0x2e')],'defaultValue':0x0},'openchannelCapacity':{'type':Sequelize[_0x3ca547('0x2e')],'defaultValue':0x0},'phoneBarAutoAnswer':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'phoneBarEnableSettings':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'phoneBarListenPort':{'type':Sequelize[_0x3ca547('0x2e')](0x5),'defaultValue':0x1428},'phoneBarExpires':{'type':Sequelize[_0x3ca547('0x2e')](0x5),'defaultValue':0x78},'phoneBarRemoteControl':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'phoneBarRemoteControlPort':{'type':Sequelize['INTEGER'],'defaultValue':0x26a0},'phoneBarEnableRecording':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarRingInUse':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'chanspy':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'description':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'host':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![],'defaultValue':_0x3ca547('0x58')},'ipaddr':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'port':{'type':Sequelize[_0x3ca547('0x2e')](0x5),'allowNull':!![]},'regseconds':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'fullcontact':{'type':Sequelize['STRING'],'allowNull':!![]},'regserver':{'type':Sequelize['STRING'],'allowNull':!![]},'useragent':{'type':Sequelize['STRING'],'allowNull':!![]},'lastms':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'type':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x32'),_0x3ca547('0x2d'),_0x3ca547('0x5')),'allowNull':!![],'defaultValue':_0x3ca547('0x32')},'context':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![],'defaultValue':_0x3ca547('0x9')},'callingpres':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x39'),_0x3ca547('0xd'),_0x3ca547('0x38'),_0x3ca547('0xb'),_0x3ca547('0x42'),'PROHIB_PASSED_SCREEN',_0x3ca547('0x33'),_0x3ca547('0x13')),'allowNull':!![]},'deny':{'type':Sequelize['STRING'],'allowNull':!![]},'permit':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'secret':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'md5secret':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'remotesecret':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'transport':{'type':Sequelize['STRING'],'allowNull':!![],'defaultValue':_0x3ca547('0x14'),'set':function(_0x4afb82){const _0x32d8a5=_0x3ca547;this[_0x32d8a5('0x1')]('transport',_0x4afb82?_0x4afb82['join'](','):null);},'get':function(){const _0x3022d5=_0x3ca547;return this[_0x3022d5('0x55')](_0x3022d5('0x43'))?this[_0x3022d5('0x55')](_0x3022d5('0x43'))['split'](','):null;},'comment':_0x3ca547('0x15')},'dtmfmode':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x2b'),_0x3ca547('0x46'),_0x3ca547('0x22'),'inband','auto'),'allowNull':!![],'defaultValue':_0x3ca547('0x2b')},'directmedia':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no',_0x3ca547('0x16'),_0x3ca547('0x19'),_0x3ca547('0x2a')),'allowNull':!![],'defaultValue':'no'},'directrtpsetup':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![],'defaultValue':'no'},'directmediapermit':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'directmediadeny':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'nat':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![],'defaultValue':_0x3ca547('0x4b'),'set':function(_0x221f82){const _0x2173be=_0x3ca547;this[_0x2173be('0x1')](_0x2173be('0x50'),_0x221f82?_0x221f82[_0x2173be('0x1d')](','):null);},'get':function(){const _0x26261b=_0x3ca547;return this[_0x26261b('0x55')]('nat')?this['getDataValue'](_0x26261b('0x50'))[_0x26261b('0x1e')](','):null;},'comment':_0x3ca547('0x7')},'callgroup':{'type':Sequelize[_0x3ca547('0x31')]},'namedcallgroup':{'type':Sequelize['STRING']},'pickupgroup':{'type':Sequelize['STRING']},'namedpickupgroup':{'type':Sequelize[_0x3ca547('0x31')]},'language':{'type':Sequelize[_0x3ca547('0x31')],'defaultValue':'en'},'tonezone':{'type':Sequelize[_0x3ca547('0x31')]},'disallow':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'all'},'allow':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x3ca547('0x51'),'set':function(_0x5d90be){const _0x1caaff=_0x3ca547;this[_0x1caaff('0x1')](_0x1caaff('0x8'),_0x5d90be?_0x5d90be[_0x1caaff('0x1d')](';'):_0x1caaff('0x51'));},'get':function(){const _0x5d167d=_0x3ca547;return this[_0x5d167d('0x55')]('allow')?this[_0x5d167d('0x55')]('allow')[_0x5d167d('0x1e')](';'):null;},'comment':_0x3ca547('0x1a')},'autoframing':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'insecure':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![],'set':function(_0x274d2d){const _0x157487=_0x3ca547;this[_0x157487('0x1')]('insecure',_0x274d2d?_0x274d2d[_0x157487('0x1d')](','):null);},'get':function(){const _0x28f421=_0x3ca547;return this[_0x28f421('0x55')](_0x28f421('0x17'))?this[_0x28f421('0x55')](_0x28f421('0x17'))[_0x28f421('0x1e')](','):null;},'comment':_0x3ca547('0x1c')},'trustrpid':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![],'defaultValue':'no'},'trust_id_outbound':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![],'defaultValue':'no'},'progressinband':{'type':Sequelize[_0x3ca547('0x10')]('yes','no','never'),'allowNull':!![]},'promiscredir':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'useclientcode':{'type':Sequelize['ENUM'](_0x3ca547('0x48'),'no'),'allowNull':!![]},'accountcode':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'setvar':{'type':Sequelize['STRING'],'allowNull':!![]},'callerid':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![],'defaultValue':_0x3ca547('0x4a')},'amaflags':{'type':Sequelize['STRING'],'allowNull':!![]},'callcounter':{'type':Sequelize[_0x3ca547('0x10')]('yes','no'),'allowNull':!![],'defaultValue':_0x3ca547('0x48')},'busylevel':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'allowoverlap':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'allowsubscribe':{'type':Sequelize['ENUM'](_0x3ca547('0x48'),'no'),'allowNull':!![]},'allowtransfer':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'ignoresdpversion':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'subscribecontext':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'template':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'videosupport':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no',_0x3ca547('0x53')),'allowNull':!![],'defaultValue':'no'},'maxcallbitrate':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'rfc2833compensate':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'mailbox':{'type':Sequelize['STRING'],'allowNull':!![]},'session_timers':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x24'),_0x3ca547('0x2'),'originate'),'allowNull':!![]},'session_expires':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'session_minse':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'session_refresher':{'type':Sequelize['ENUM'](_0x3ca547('0x3f'),_0x3ca547('0x1f')),'allowNull':!![],'defaultValue':_0x3ca547('0x1f')},'t38pt_usertpsource':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'regexten':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'fromdomain':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'fromuser':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'qualify':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![],'defaultValue':_0x3ca547('0x48')},'keepalive':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'defaultip':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'defaultuser':{'type':Sequelize['STRING'],'allowNull':!![]},'rtptimeout':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'rtpholdtimeout':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'rtpkeepalive':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'sendrpid':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![],'defaultValue':'no'},'outboundproxy':{'type':Sequelize['STRING'],'allowNull':!![]},'callbackextension':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'timert1':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'timerb':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'qualifyfreq':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'contactpermit':{'type':Sequelize['STRING'],'allowNull':!![]},'contactdeny':{'type':Sequelize['STRING'],'allowNull':!![]},'contactacl':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'unsolicited_mailbox':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'use_q850_reason':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'maxforwards':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![]},'encryption':{'type':Sequelize[_0x3ca547('0x10')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'avpf':{'type':Sequelize['ENUM']('yes','no'),'allowNull':!![]},'force_avp':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'icesupport':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'dtlsenable':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'dtlsverify':{'type':Sequelize['ENUM']('yes','no','fingerprint',_0x3ca547('0x3e')),'allowNull':!![]},'dtlsrekey':{'type':Sequelize['INTEGER'](0xb),'allowNull':!![]},'dtlscertfile':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlsprivatekey':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'dtlscipher':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'dtlscafile':{'type':Sequelize['STRING'],'allowNull':!![]},'dtlscapath':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'dtlssetup':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x35'),_0x3ca547('0x29'),_0x3ca547('0xc')),'allowNull':!![]},'dtlsfingerprint':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'usereqphone':{'type':Sequelize[_0x3ca547('0x10')]('yes','no'),'allowNull':!![],'defaultValue':'no'},'recordonfeature':{'type':Sequelize['STRING'],'allowNull':!![]},'recordofffeature':{'type':Sequelize['STRING'],'allowNull':!![]},'call_limit':{'type':Sequelize[_0x3ca547('0x2e')](0xb),'allowNull':!![],'defaultValue':0xa},'registertrying':{'type':Sequelize['ENUM'](_0x3ca547('0x48'),'no'),'allowNull':!![]},'subscribemwi':{'type':Sequelize[_0x3ca547('0x10')](_0x3ca547('0x48'),'no'),'allowNull':!![]},'vmexten':{'type':Sequelize['STRING'],'allowNull':!![]},'mohinterpret':{'type':Sequelize['STRING'],'allowNull':!![]},'mohsuggest':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'parkinglot':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'canreinvite':{'type':Sequelize['ENUM'](_0x3ca547('0x48'),'no',_0x3ca547('0x16'),_0x3ca547('0x19'),_0x3ca547('0x25')),'allowNull':!![],'defaultValue':'no'},'loginInPause':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'resetPasswordToken':{'type':Sequelize[_0x3ca547('0x31')]},'resetPasswordExpires':{'type':Sequelize[_0x3ca547('0x44')]},'passwordResetAt':{'type':Sequelize[_0x3ca547('0x44')],'defaultValue':null},'previousPasswords':{'type':Sequelize[_0x3ca547('0x31')]},'showWebBar':{'type':Sequelize[_0x3ca547('0x2e')],'defaultValue':0x0,'set':function(_0x253cff){const _0x89f961=_0x3ca547;this['setDataValue'](_0x89f961('0x0'),_0x253cff);const _0x332ece=this[_0x89f961('0x3')]({'plain':!![]});switch(_0x253cff){case 0x0:case 0x1:{let _0x19b6cc=_0x332ece[_0x89f961('0x43')]?_[_0x89f961('0x3d')](_0x332ece[_0x89f961('0x43')])?_0x332ece[_0x89f961('0x43')]['join']():_0x332ece[_0x89f961('0x43')]:'udp';_0x19b6cc===_0x89f961('0x30')&&(_0x19b6cc=_0x89f961('0x14')),this['setDataValue'](_0x89f961('0x43'),_0x19b6cc),this[_0x89f961('0x1')](_0x89f961('0x6'),'no'),this[_0x89f961('0x1')](_0x89f961('0xa'),null),this['setDataValue'](_0x89f961('0x23'),null),this[_0x89f961('0x1')]('icesupport',null),this[_0x89f961('0x1')](_0x89f961('0xf'),null),this[_0x89f961('0x1')](_0x89f961('0x45'),null),this[_0x89f961('0x1')](_0x89f961('0x37'),null),this['setDataValue'](_0x89f961('0x59'),null),this[_0x89f961('0x1')](_0x89f961('0x4e'),null),this[_0x89f961('0x1')]('rtcp_mux','no');}break;case 0x2:this[_0x89f961('0x1')](_0x89f961('0x43'),_0x89f961('0x30')),this[_0x89f961('0x1')](_0x89f961('0x6'),_0x89f961('0x48')),this['setDataValue'](_0x89f961('0xa'),_0x89f961('0x48')),this['setDataValue'](_0x89f961('0x23'),_0x89f961('0x48')),this[_0x89f961('0x1')](_0x89f961('0x4f'),_0x89f961('0x48')),this['setDataValue'](_0x89f961('0xf'),_0x89f961('0x48')),this[_0x89f961('0x1')](_0x89f961('0x45'),'no'),this[_0x89f961('0x1')]('dtlssetup',_0x89f961('0xc')),this['setDataValue'](_0x89f961('0x59'),_0x332ece[_0x89f961('0x59')]||'/etc/pki/tls/certs/motion.crt'),this[_0x89f961('0x1')](_0x89f961('0x4e'),_0x332ece[_0x89f961('0x4e')]||_0x89f961('0xe')),this[_0x89f961('0x1')](_0x89f961('0x57'),_0x89f961('0x48'));break;default:}}},'permissions':{'type':Sequelize[_0x3ca547('0x34')],'set':function(_0xfb66c0){const _0x1b2758=_0x3ca547;this[_0x1b2758('0x1')](_0x1b2758('0x20'),_0xfb66c0?_0xfb66c0[_0x1b2758('0x1d')](','):[]);},'get':function(){const _0x48a990=_0x3ca547;return this[_0x48a990('0x55')](_0x48a990('0x20'))?_[_0x48a990('0x18')](this[_0x48a990('0x55')](_0x48a990('0x20'))[_0x48a990('0x1e')](','),function(_0x2e8193){return parseInt(_0x2e8193,0xa);}):[];}},'phoneBarUnconditionalNumber':{'type':Sequelize[_0x3ca547('0x31')]},'phoneBarNoReplyNumber':{'type':Sequelize[_0x3ca547('0x31')]},'phoneBarBusyNumber':{'type':Sequelize[_0x3ca547('0x31')]},'phoneBarUnconditional':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'phoneBarNoReply':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarBusy':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'phoneBarDnd':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':!![]},'phoneBarUnansweredCallBadge':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':!![]},'phoneBarEnableDtmfTone':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'phoneBarAutoAnswerDelay':{'type':Sequelize[_0x3ca547('0x2e')],'defaultValue':0x0},'extensionMonitor':{'type':Sequelize[_0x3ca547('0x31')],'defaultValue':''},'crudPermissions':{'type':Sequelize[_0x3ca547('0x2e')],'defaultValue':0x0},'rtcp_mux':{'type':Sequelize[_0x3ca547('0x10')]('yes','no'),'defaultValue':'no'},'allowmessenger':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':!![]},'phoneBarOutboundProxy':{'type':Sequelize[_0x3ca547('0x31')]},'phoneBarEnableJaws':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'phoneBarEnableScreenRecordingByAgent':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'phoneBarEnableVideoRecording':{'type':Sequelize[_0x3ca547('0x28')],'get':function(){const _0x28b553=_0x3ca547;return this[_0x28b553('0x55')](_0x28b553('0x54'))?this[_0x28b553('0x55')](_0x28b553('0x54')):![];}},'phoneBarEnableAutomaticScreenRecording':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'phoneBarPrefixRequired':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'hotdesk':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'interface':{'type':Sequelize[_0x3ca547('0x31')],'defaultValue':null},'privacyEnabled':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'apiKeyNonce':{'type':Sequelize[_0x3ca547('0x31')],'allowNull':!![]},'apiKeyIat':{'type':Sequelize['STRING'],'allowNull':!![]},'screenrecording':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![],'set':function(_0x345265){const _0x53f7bb=_0x3ca547;if(typeof _0x345265===_0x53f7bb('0x36')){const _0x1cb727=_0x345265==='1'?!![]:_0x345265==='0'?![]:_0x345265===_0x53f7bb('0x4c')?!![]:_0x345265===_0x53f7bb('0x21')?![]:![];this[_0x53f7bb('0x1')]('screenrecording',_0x1cb727);}else this[_0x53f7bb('0x1')](_0x53f7bb('0x4d'),_0x345265);}},'blocked':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![],'set':function(_0x37bee8){const _0x186488=_0x3ca547;this[_0x186488('0x1')]('blocked',_0x37bee8),_0x37bee8===!![]?(this[_0x186488('0x1')]('blockedAt',moment()),this[_0x186488('0x1')]('loginAttempts',0x0)):this['setDataValue'](_0x186488('0x41'),null);}},'blockedAt':{'type':Sequelize[_0x3ca547('0x44')],'defaultValue':null},'loginAttempts':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'disabled':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':![]},'settingsEnabled':{'type':Sequelize[_0x3ca547('0x4')],'defaultValue':!![]}}; \ No newline at end of file diff --git a/server/api/user/user.controller.js b/server/api/user/user.controller.js index 059f91a..ffef166 100644 --- a/server/api/user/user.controller.js +++ b/server/api/user/user.controller.js @@ -1 +1 @@ -const a648_0x5725=['removeSmsInteractions','intrf','$lt','ChatWebsite','New\x20password\x20must\x20be\x20different\x20from\x20old\x20password','name','getContacts','max','filter','api','concat','generateApiKey','enforcePasswordHistory','CmList','oldPassword','attributes','getSmsAccounts','./user.socket','user_has_mail_interactions:remove','openchannelPause','and','addFaxAccounts','retrieveApiKey','106','apiKeyNonce','userpic','removeAgent','user_has_chat_interactions:remove','CmContact','addOpenchannelInteractions','then','lower','sms','min_internal','stringify','getSmsQueues','getGroups','intersection','SmsInteraction','MailInteraction','voice','user_has_sms_interactions:remove','rawAttributes','role','Team','capitalize','user_has_chat_interactions:save','resolve','isMiddleware','filters','addSmsInteractions','getScheduledCalls','removeFaxInteractions','undefined','destroy','getOpenchannelQueues','removeChatInteractions','$and','getMailAccounts','count','VoiceRecording','json','transaction','pauseType','getFaxAccounts','send','flatten','Queues','addFaxInteractions','format','$not','Unauthorized','Setting','Queue:save','download','like','sequelize','permissions','tag','end','salt','$contains','file','includeAll','You\x20can\x27t\x20delete\x20yourself','apiKeyIat','loginInPause','status','map','from','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user','getChatInteractions','values','interface','show','sendStatus','online','removeSmsAccounts','addMailAccounts','isNil','getAvatar','user_has_fax_interactions:save','getMailQueues','OpenchannelInteraction','Unknown\x20role','addContacts','110','describe','index','User','forEach','omit','pause','find','UserProfileSection','OpenchannelAccount','CmHopper','error','util','UserVoiceQueue.penalty','type','../../rediscache','channel','all','length','removeMailInteractions','ids','root','../../config/license/util','firstName','LOGININPAUSE','isValidChannel','getWhatsappInteractions','keys','phone','107','user_has_sms_interactions:save','ignore','111','internal','VoicePrefix','server/files/images/logos/default_profile.png','pick','%s%s','removeOpenchannelAccounts','user_has_fax_interactions:remove','addAgent','getApiKey','getOpenchannelAccounts','remoteAddress','ChatInteraction','result','addOpenchannelAccounts','YYYY-MM-DD\x20HH:mm:ss','mail','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','passwordHistoryLimit','PAUSE','getVoicePrefixes','offset','some','Contact','add','List','code','$notILike','compact','mobile','value','user','join','Agents','../../config/utils','SIP/%s','setDataValue','rows','addTeams','removeWhatsappAccounts','dialActive','103','device','$notLike','user_has_openchannel_interactions:remove','where','checkUserLimits','Unknown\x20channel','getSquareProjects','Tags','newPassword','mailbox','existsSync','limit','addSmsAccounts','request','Whatsapp','get','DEFAULT\x20PAUSE','Invalid\x20body\x20format.\x20Use\x20newPassword','autoAssociation','x-forwarded-for','removeSquareProjects','query','set','Openchannel','getWhatsappAccounts','include','options','update','User,\x20%s,\x20%s,\x20%s','User\x20not\x20found\x20or\x20not\x20allowed\x20to\x20perform\x20login\x20method','addChatWebsites','removeChatWebsites','findByPk','order','socket','findAll','$gt','Sms','http','ScreenRecording','Voice','upsert','UserProfileResource','params','getLists','removeTeams','catch','addMailInteractions','113','connection','manual','MemberReport','register','includes','$in','sort','removeFaxAccounts','WhatsappAccount','agent','telephone','emit','$lte','smsPause','isArray','VoiceQueue','validatePasswordPattern','QueuePause','stack','SmsAccount','Queue','You\x20don\x27t\x20have\x20sufficient\x20privileges\x20to\x20access\x20this\x20resource.','Use','Mail','info','model','$notIn','FaxInteraction','faxPause','unpause','merge','Wrong\x20credentials','user_has_mail_interactions:save','UserId','message','removeOpenchannelInteractions','../../mysqldb','getTeams','nonce','findOne','../../components/parsers/qs','remove','email','fax','getSmsInteractions','109','securePassword','getDataValue','create','voicePause','$or','removeWhatsappInteractions','getChatQueues','Pause','updatePasswordsHistory','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)','lodash','ChatGroup','user_has_openchannel_interactions:save','differenceBy','mailPause','bulkCreate','getChatWebsites','openchannel','VIRTUAL','toLowerCase','VoiceMail','QueueId','password','getVoiceQueuesRt','UserVoiceQueueRt','Queue:remove','user:%s','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20another\x20administrator','getFaxQueues','path','nolimit','authenticate','getChannels','User,\x20%s,\x20%s','addWhatsappInteractions','Unable\x20to\x20retrieve\x20the\x20current\x20user','whoami','penalty','addWhatsappAccounts','Content-Range','whatsapp','userProfileId','$contained','getScreenRecordings','iat','previousPasswords','chatPause','fieldName','FaxAccount','fields','changePassword','../../config/environment','$between','getWhatsappQueues','101','push','Telephones','login','Fax','getVoiceQueues','body','$like','removeQueues','each','admin','getFaxInteractions','getOpenchannelInteractions','105','MailAccount','request\x20sent','user_has_whatsapp_interactions:save','$eq','Chat','SquareProject','$ne','whatsapppause','Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20administrator','removeMailAccounts'];(function(_0xff00e7,_0x572594){const _0x59379d=function(_0x3745cf){while(--_0x3745cf){_0xff00e7['push'](_0xff00e7['shift']());}};_0x59379d(++_0x572594);}(a648_0x5725,0xea));const a648_0x5937=function(_0xff00e7,_0x572594){_0xff00e7=_0xff00e7-0x0;let _0x59379d=a648_0x5725[_0xff00e7];return _0x59379d;};const _0x2f8f80=a648_0x5937;'use strict';const moment=require('moment'),util=require(_0x2f8f80('0xed')),path=require(_0x2f8f80('0x46')),fs=require('fs'),_=require(_0x2f8f80('0x33')),{getSocket}=require(_0x2f8f80('0xf0')),socket=getSocket(),authService=require('../../components/auth/service'),qs=require(_0x2f8f80('0x23')),logger=require('../../config/logger')(_0x2f8f80('0x80')),utils=require(_0x2f8f80('0x123')),config=require(_0x2f8f80('0x5c')),db=require(_0x2f8f80('0x1f'))['db'],{Op,QueryTypes,fn,col,where,ValidationError}=require(_0x2f8f80('0xc3')),licenseUtil=require(_0x2f8f80('0xf7'));require(_0x2f8f80('0x88'))[_0x2f8f80('0x15f')](socket);const jayson=require('jayson/promise'),client=jayson['client'][_0x2f8f80('0x151')]({'port':0x232a});function respondWithRpcPromise(_0x3745cf,_0x4e08d9,_0x5bc23e,_0x5785ea){return new Promise(function(_0x188a30,_0x1abfc5){const _0x299c76=a648_0x5937,_0x4d297f=_0x5785ea||client;return _0x4d297f[_0x299c76('0x138')](_0x3745cf,_0x5bc23e)['then'](function(_0x42ea2e){const _0x561d22=_0x299c76;logger[_0x561d22('0x13')]('User,\x20%s,\x20%s',_0x4e08d9,_0x561d22('0x6e')),logger['debug'](_0x561d22('0x147'),_0x4e08d9,_0x561d22('0x6e'),JSON[_0x561d22('0x99')](_0x42ea2e));if(_0x42ea2e[_0x561d22('0xec')]){if(_0x42ea2e[_0x561d22('0xec')][_0x561d22('0x11b')]===0x1f4)return logger['error'](_0x561d22('0x4a'),_0x4e08d9,_0x42ea2e[_0x561d22('0xec')][_0x561d22('0x1d')]),_0x1abfc5(_0x42ea2e[_0x561d22('0xec')]['message']);return logger[_0x561d22('0xec')]('User,\x20%s,\x20%s',_0x4e08d9,_0x42ea2e[_0x561d22('0xec')][_0x561d22('0x1d')]),_0x188a30(_0x42ea2e[_0x561d22('0xec')][_0x561d22('0x1d')]);}else logger[_0x561d22('0x13')](_0x561d22('0x4a'),_0x4e08d9,_0x561d22('0x6e')),_0x188a30(_0x42ea2e[_0x561d22('0x10e')]['message']);})[_0x299c76('0x159')](function(_0xfc122f){const _0x1f6651=_0x299c76;logger[_0x1f6651('0xec')](_0x1f6651('0x4a'),_0x4e08d9,_0xfc122f),_0x1abfc5(_0xfc122f);});});}function respondWithStatusCode(_0x120961,_0x306443){return _0x306443=_0x306443||0xcc,function(_0x14f9e1){const _0x4506e4=a648_0x5937;if(_0x14f9e1)return _0x120961['sendStatus'](_0x306443);return _0x120961['status'](_0x306443)[_0x4506e4('0xc6')]();};}function respondWithResult(_0x4ebebd,_0x34ca78){return _0x34ca78=_0x34ca78||0xc8,function(_0x1cec40){const _0x518a5d=a648_0x5937;if(_0x1cec40)return _0x4ebebd[_0x518a5d('0xce')](_0x34ca78)[_0x518a5d('0xb4')](_0x1cec40);};}function respondWithFilteredResult(_0x5f3b47,_0x32ee05){return function(_0x2f0071){const _0x334ebc=a648_0x5937;if(_0x2f0071){const _0x1817fb=_0x2f0071[_0x334ebc('0xb2')],_0x5b30fd=_0x32ee05['offset'];let _0x4082e5=_0x32ee05[_0x334ebc('0x116')]+_0x32ee05['limit'],_0x73c0ea;return _0x4082e5>=_0x1817fb?(_0x4082e5=_0x1817fb,_0x73c0ea=0xc8):_0x73c0ea=0xce,_0x5f3b47['status'](_0x73c0ea),_0x5f3b47[_0x334ebc('0x141')](_0x334ebc('0x50'),_0x5b30fd+'-'+_0x4082e5+'/'+_0x1817fb)[_0x334ebc('0xb4')](_0x2f0071);}return null;};}function saveUpdates(_0x3674a2){return function(_0x1908f7){const _0x381e36=a648_0x5937;if(_0x1908f7)return _0x1908f7[_0x381e36('0x146')](_0x3674a2)[_0x381e36('0x95')](function(_0x32e921){return _0x32e921;});return null;};}function removeEntity(_0x1331a2){return function(_0x1c8c23){const _0x39dca2=a648_0x5937;if(_0x1c8c23)return _0x1c8c23['destroy']()[_0x39dca2('0x95')](function(){const _0x184190=_0x39dca2,_0x4df5b8=_0x1c8c23[_0x184190('0x13a')]({'plain':!![]});if(_0x4df5b8[_0x184190('0xa2')]==='admin')return;const _0x33e385=[{'name':'Users','value':_0x184190('0x120'),'ignore':!![]},{'name':_0x184190('0x122'),'value':_0x184190('0x4'),'ignore':![]},{'name':'Telephones','value':_0x184190('0x5'),'ignore':![]}],_0x58e242=_(_0x33e385)[_0x184190('0x7f')](_0x184190('0x100'))[_0x184190('0xcf')](_0x184190('0x11f'))['value']();if(_[_0x184190('0x160')](_0x58e242,_0x4df5b8[_0x184190('0xa2')]))return;const _0x129c1f=_[_0x184190('0xe8')](_0x33e385,['value',_0x4df5b8[_0x184190('0xa2')]])[_0x184190('0x7c')];return db[_0x184190('0x155')]['destroy']({'where':{'type':_0x129c1f,'resourceId':_0x4df5b8['id']}})[_0x184190('0x95')](function(){return _0x1c8c23;});})[_0x39dca2('0x95')](function(){const _0xebabf3=_0x39dca2;_0x1331a2[_0xebabf3('0xce')](0xcc)[_0xebabf3('0xc6')]();});};}function handleEntityNotFound(_0x2a7c09){return function(_0x1bd161){const _0x55737d=a648_0x5937;return!_0x1bd161&&_0x2a7c09[_0x55737d('0xd6')](0x194),_0x1bd161;};}function handleError(_0x55aa9e,_0x24b97a){return _0x24b97a=_0x24b97a||0x1f4,function(_0x254411){const _0x2ed058=a648_0x5937;logger[_0x2ed058('0xec')](_0x254411[_0x2ed058('0xd')]),_0x254411[_0x2ed058('0x7c')]&&delete _0x254411[_0x2ed058('0x7c')],_0x55aa9e[_0x2ed058('0xce')](_0x24b97a)[_0x2ed058('0xb8')](_0x254411);};}function validateUser(_0x4233ce){return new Promise(function(_0x42d47e,_0x1b372b){const _0x518a43=a648_0x5937;if(_0x4233ce[_0x518a43('0x102')])return _0x42d47e(_0x4233ce);return db[_0x518a43('0xbf')][_0x518a43('0x14b')](0x1)[_0x518a43('0x95')](function(_0xa17ffa){const _0x33f607=_0x518a43;if(_0xa17ffa[_0x33f607('0x29')])authService['validatePasswordPattern'](_0x4233ce[_0x33f607('0x3f')]);db[_0x33f607('0xe4')][_0x33f607('0x7e')](_0x33f607('0x102'))[_0x33f607('0x95')](function(_0x108a9f){const _0x222d61=_0x33f607;if(_[_0x222d61('0xda')](_0x108a9f)){_0x4233ce[_0x222d61('0x102')]=_0xa17ffa[_0x222d61('0x98')]||0x1;return;}if(_['isNil'](_0xa17ffa[_0x222d61('0x98')])||_0xa17ffa[_0x222d61('0x98')]===_0x108a9f){_0x4233ce[_0x222d61('0x102')]=_0x108a9f+0x1;return;}if(_0xa17ffa[_0x222d61('0x98')]>_0x108a9f){_0x4233ce[_0x222d61('0x102')]=_0xa17ffa[_0x222d61('0x98')];return;}return db[_0x222d61('0xc3')][_0x222d61('0x140')](_0x222d61('0x32'),{'type':QueryTypes['SELECT']})[_0x222d61('0x95')](function(_0x4b8205){const _0x2ee7f2=_0x222d61;if(_0x4b8205&&_0x4b8205[_0x2ee7f2('0xf3')])for(let _0xa78062=0x0,_0x5c2b85=_0x4b8205[_0x2ee7f2('0xf3')];_0xa78062<_0x5c2b85&&_[_0x2ee7f2('0xda')](_0x4233ce[_0x2ee7f2('0x102')]);_0xa78062++){if(_0xa17ffa[_0x2ee7f2('0x98')]<=_0x4b8205[_0xa78062][_0x2ee7f2('0xd0')])_0x4233ce[_0x2ee7f2('0x102')]=_0x4b8205[_0xa78062][_0x2ee7f2('0xd0')];else _0xa17ffa[_0x2ee7f2('0x98')]>_0x4b8205[_0xa78062][_0x2ee7f2('0xd0')]&&_0xa17ffa[_0x2ee7f2('0x98')]<=_0x4b8205[_0xa78062]['to']&&(_0x4233ce[_0x2ee7f2('0x102')]=_0xa17ffa[_0x2ee7f2('0x98')]);}return _[_0x2ee7f2('0xda')](_0x4233ce[_0x2ee7f2('0x102')])&&(_0x4233ce['internal']=_0x108a9f+0x1),_0x42d47e(_0x4233ce);});});})[_0x518a43('0x159')](function(_0x10988c){_0x1b372b(_0x10988c);});});}function updateUser(_0x43986d){return new Promise(function(_0x2f8959,_0x42e58d){const _0x7bead7=a648_0x5937;try{_0x43986d['voicemail']&&(_0x43986d[_0x7bead7('0x134')]=_0x43986d[_0x7bead7('0x102')],_0x43986d[_0x7bead7('0x3d')]={'mailbox':_0x43986d['internal'],'password':_0x43986d[_0x7bead7('0x3f')],'fullname':_0x43986d['fullname'],'email':_0x43986d[_0x7bead7('0x25')]});if(_0x43986d[_0x7bead7('0xa2')]===_0x7bead7('0x4')){if(!_0x43986d[_0x7bead7('0xc4')])_0x43986d['permissions']=[_0x7bead7('0x5f'),'102',_0x7bead7('0x12a'),_0x7bead7('0x15b'),_0x7bead7('0xe1'),'104',_0x7bead7('0x6c'),_0x7bead7('0x8e'),_0x7bead7('0xfe'),'108',_0x7bead7('0x28'),'100',_0x7bead7('0x101'),'114'];}_0x2f8959(_0x43986d);}catch(_0x1c6d86){_0x42e58d(_0x1c6d86);}});}exports[_0x2f8f80('0xe3')]=function(_0x5a3c2a,_0x1add6d){const _0x712b4b=_0x2f8f80;let _0x2cc621={};const _0x5d2252={},_0x3f3e5f={'count':0x0,'rows':[]},_0x118ee4=_['map'](db[_0x712b4b('0xe4')][_0x712b4b('0xa1')],function(_0x14e34d){const _0x518df8=_0x712b4b;return{'name':_0x14e34d[_0x518df8('0x58')],'type':_0x14e34d['type']['key']};});_0x5d2252['model']=_['differenceBy'](_['map'](_0x118ee4,_0x712b4b('0x7c')),[_0x712b4b('0x3f'),_0x712b4b('0xc7')]),_0x5d2252[_0x712b4b('0x140')]=_[_0x712b4b('0xfc')](_0x5a3c2a[_0x712b4b('0x140')]),_0x5d2252[_0x712b4b('0xa8')]=_[_0x712b4b('0x9c')](_0x5d2252[_0x712b4b('0x14')],_0x5d2252[_0x712b4b('0x140')]),_0x2cc621['attributes']=_[_0x712b4b('0x9c')](_0x5d2252[_0x712b4b('0x14')],qs[_0x712b4b('0x5a')](_0x5a3c2a[_0x712b4b('0x140')]['fields'])),_0x2cc621['attributes']=_0x2cc621[_0x712b4b('0x86')][_0x712b4b('0xf3')]?_0x2cc621['attributes']:_0x5d2252['model'];typeof _0x5a3c2a[_0x712b4b('0x140')][_0x712b4b('0x47')]===_0x712b4b('0xac')&&(_0x2cc621[_0x712b4b('0x136')]=qs[_0x712b4b('0x136')](_0x5a3c2a[_0x712b4b('0x140')]['limit']),_0x2cc621[_0x712b4b('0x116')]=qs[_0x712b4b('0x116')](_0x5a3c2a[_0x712b4b('0x140')][_0x712b4b('0x116')]));_0x2cc621[_0x712b4b('0x14c')]=qs[_0x712b4b('0x1')](_0x5a3c2a[_0x712b4b('0x140')][_0x712b4b('0x1')]),_0x2cc621[_0x712b4b('0x12e')]=qs[_0x712b4b('0xa8')](_[_0x712b4b('0x105')](_0x5a3c2a['query'],_0x5d2252[_0x712b4b('0xa8')]),_0x118ee4);_0x5a3c2a[_0x712b4b('0x140')][_0x712b4b('0x7f')]&&(_0x2cc621['where']=_[_0x712b4b('0x19')](_0x2cc621[_0x712b4b('0x12e')],{[Op['or']]:_['map'](_0x118ee4,function(_0x4120fb){const _0x25e8a0=_0x712b4b;if(_0x4120fb[_0x25e8a0('0xef')]!==_0x25e8a0('0x3b'))return where(fn(_0x25e8a0('0x96'),col(_0x4120fb['name'])),{'$like':fn(_0x25e8a0('0x96'),'%'+_0x5a3c2a[_0x25e8a0('0x140')][_0x25e8a0('0x7f')]+'%')});})}));_0x2cc621=_[_0x712b4b('0x19')]({},_0x2cc621,_0x5a3c2a[_0x712b4b('0x145')]);const _0xe3cfc6={'where':_0x2cc621[_0x712b4b('0x12e')]};return db[_0x712b4b('0xe4')][_0x712b4b('0xb2')](_0xe3cfc6)[_0x712b4b('0x95')](function(_0x46591e){const _0x59e79=_0x712b4b;return _0x3f3e5f[_0x59e79('0xb2')]=_0x46591e,typeof _0x5a3c2a[_0x59e79('0x140')][_0x59e79('0xca')]!==_0x59e79('0xac')&&(_0x2cc621['include']=[{'all':!![]}]),db['User'][_0x59e79('0x14e')](_0x2cc621);})[_0x712b4b('0x95')](function(_0xa21515){const _0x231e92=_0x712b4b;return _0x3f3e5f[_0x231e92('0x126')]=_0xa21515,_0x3f3e5f;})[_0x712b4b('0x95')](respondWithFilteredResult(_0x1add6d,_0x2cc621))['catch'](handleError(_0x1add6d,null));},exports[_0x2f8f80('0xd5')]=function(_0x14843a,_0x3814aa){const _0x4c5121=_0x2f8f80;let _0x4b7870={'raw':![],'where':{'id':_0x14843a['params']['id']}};const _0x1bc241={};return _0x1bc241[_0x4c5121('0x14')]=_[_0x4c5121('0x36')](_[_0x4c5121('0xfc')](db[_0x4c5121('0xe4')][_0x4c5121('0xa1')]),[_0x4c5121('0x3f'),_0x4c5121('0xc7')]),_0x1bc241[_0x4c5121('0x140')]=_[_0x4c5121('0xfc')](_0x14843a[_0x4c5121('0x140')]),_0x1bc241[_0x4c5121('0xa8')]=_[_0x4c5121('0x9c')](_0x1bc241[_0x4c5121('0x14')],_0x1bc241[_0x4c5121('0x140')]),_0x4b7870[_0x4c5121('0x86')]=_[_0x4c5121('0x9c')](_0x1bc241['model'],qs[_0x4c5121('0x5a')](_0x14843a[_0x4c5121('0x140')][_0x4c5121('0x5a')])),_0x4b7870[_0x4c5121('0x86')]=_0x4b7870[_0x4c5121('0x86')][_0x4c5121('0xf3')]?_0x4b7870[_0x4c5121('0x86')]:_0x1bc241[_0x4c5121('0x14')],_0x14843a[_0x4c5121('0x140')][_0x4c5121('0xca')]&&(_0x4b7870[_0x4c5121('0x144')]=[{'all':!![]}]),_0x4b7870=_[_0x4c5121('0x19')]({},_0x4b7870,_0x14843a[_0x4c5121('0x145')]),db[_0x4c5121('0xe4')][_0x4c5121('0x22')](_0x4b7870)[_0x4c5121('0x95')](handleEntityNotFound(_0x3814aa,null))[_0x4c5121('0x95')](respondWithResult(_0x3814aa,null))[_0x4c5121('0x159')](handleError(_0x3814aa,null));},exports[_0x2f8f80('0x38')]=function(_0x108fa0,_0x850e64){const _0x4ba8cf=_0x2f8f80,_0x1e1c9a=_0x108fa0[_0x4ba8cf('0x65')];let _0x56aff7=[];if(_0x108fa0[_0x4ba8cf('0x120')][_0x4ba8cf('0xa2')]==='agent')throw new Error(_0x4ba8cf('0xbe'));if(_['some'](_0x1e1c9a,[_0x4ba8cf('0xa2'),'user'])&&_0x108fa0[_0x4ba8cf('0x120')][_0x4ba8cf('0xa2')]!==_0x4ba8cf('0x69'))throw new Error('Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20user');if(_[_0x4ba8cf('0x117')](_0x1e1c9a,[_0x4ba8cf('0xa2'),'admin'])&&_0x108fa0['user'][_0x4ba8cf('0xa2')]!==_0x4ba8cf('0x69'))throw new Error(_0x4ba8cf('0x75'));return licenseUtil[_0x4ba8cf('0x12f')](_0x1e1c9a)[_0x4ba8cf('0x95')](function(){return validateUser(_0x1e1c9a[0x0]);})['then'](function(){const _0x5efdfe=_0x4ba8cf;for(let _0x41d0d5=0x1;_0x41d0d5<_0x1e1c9a[_0x5efdfe('0xf3')];_0x41d0d5++){const _0xd5e476=_0x1e1c9a[_0x41d0d5-0x1]['internal'];if(!_0x1e1c9a[_0x41d0d5][_0x5efdfe('0x102')])_0x1e1c9a[_0x41d0d5]['internal']=_0xd5e476+0x1;_0x56aff7[_0x5efdfe('0x60')](validateUser(_0x1e1c9a[_0x41d0d5]));}return Promise[_0x5efdfe('0xf2')](_0x56aff7);})['then'](function(){const _0x15f948=_0x4ba8cf;_0x56aff7=[];for(let _0x4d12cd=0x0;_0x4d12cd<_0x1e1c9a['length'];_0x4d12cd++){_0x56aff7[_0x15f948('0x60')](updateUser(_0x1e1c9a[_0x4d12cd]));}return Promise[_0x15f948('0xf2')](_0x56aff7);})[_0x4ba8cf('0x95')](function(){const _0x1941e3=_0x4ba8cf;return _0x56aff7=_0x1e1c9a[_0x1941e3('0xcf')](_0x168436=>{const _0x3a79f4=_0x1941e3;return db['User'][_0x3a79f4('0x2b')](_0x168436,{'include':[{'model':db[_0x3a79f4('0x3d')],'as':'VoiceMail'}]})[_0x3a79f4('0x95')](function(_0x5641da){return _0x168436['id']=_0x5641da['id'],_0x168436;});}),Promise['all'](_0x56aff7);})['then'](function(_0x1f8577){const _0x5a675c=_0x4ba8cf;if(_0x108fa0['body'][_0x5a675c('0xa2')]==='user')return _0x1f8577;if(_0x108fa0[_0x5a675c('0x120')][_0x5a675c('0xa2')]!==_0x5a675c('0x120'))return _0x1f8577;const _0x57170f=_[_0x5a675c('0x117')](_0x1f8577,function(_0x3ffe44){const _0x2a6684=_0x5a675c;return _0x3ffe44[_0x2a6684('0xa2')]===_0x2a6684('0x4')||_0x3ffe44[_0x2a6684('0xa2')]===_0x2a6684('0x5');});if(!_0x57170f)return _0x1f8577;return db['UserProfileSection'][_0x5a675c('0x14e')]({'where':{'name':{[Op['or']]:[_0x5a675c('0x122'),_0x5a675c('0x61')]},'userProfileId':_0x108fa0[_0x5a675c('0x120')]['userProfileId']},'raw':!![]})['then'](function(_0x42e9a1){const _0x2f3302=_0x5a675c;if(_['isEmpty'](_0x42e9a1)||!_[_0x2f3302('0x117')](_0x42e9a1,['autoAssociation',0x0]))return _0x1f8577;_0x56aff7=[];const _0x277fbe=_(_0x42e9a1)[_0x2f3302('0xcf')](function(_0x310543){const _0x3f6d3a=_0x2f3302;if(_0x310543[_0x3f6d3a('0x13d')]===0x1)return;return _0x310543[_0x3f6d3a('0x7c')]===_0x3f6d3a('0x122')?_0x3f6d3a('0x4'):_0x3f6d3a('0x5');})[_0x2f3302('0x11d')]()[_0x2f3302('0x11f')]();for(let _0x21cbf3=0x0;_0x21cbf3<_0x1f8577[_0x2f3302('0xf3')];_0x21cbf3++){if(!_[_0x2f3302('0x160')](_0x277fbe,_0x1f8577[_0x21cbf3]['role']))return;const _0x122fbf=_0x1f8577[_0x21cbf3][_0x2f3302('0xa2')]===_0x2f3302('0x4')?'Agents':_0x2f3302('0x61');_0x56aff7[_0x2f3302('0x60')](db['UserProfileResource'][_0x2f3302('0x2b')]({'name':_0x1f8577[_0x21cbf3][_0x2f3302('0x7c')],'resourceId':_0x1f8577[_0x21cbf3]['id'],'type':_0x122fbf,'sectionId':_[_0x2f3302('0xe8')](_0x42e9a1,['name',_0x122fbf])['id']},{}));}return Promise[_0x2f3302('0xf2')](_0x56aff7);});})[_0x4ba8cf('0x95')](respondWithResult(_0x850e64,0xc9))[_0x4ba8cf('0x159')](handleError(_0x850e64,null));},exports[_0x2f8f80('0x146')]=function(_0x232c14,_0x5b29a7){const _0x2f6225=_0x2f8f80;return _0x232c14[_0x2f6225('0x65')]['id']&&delete _0x232c14['body']['id'],delete _0x232c14['body'][_0x2f6225('0xa2')],db['User']['findOne']({'where':{'id':_0x232c14[_0x2f6225('0x156')]['id']}})[_0x2f6225('0x95')](handleEntityNotFound(_0x5b29a7,null))[_0x2f6225('0x95')](saveUpdates(_0x232c14[_0x2f6225('0x65')],null))[_0x2f6225('0x95')](respondWithResult(_0x5b29a7,null))[_0x2f6225('0x159')](handleError(_0x5b29a7,null));},exports[_0x2f8f80('0xe2')]=function(_0xc0d5b3,_0x4903da){const _0x2cf90f=_0x2f8f80;return db[_0x2cf90f('0xe4')][_0x2cf90f('0xe2')]()['then'](respondWithResult(_0x4903da,null))[_0x2cf90f('0x159')](handleError(_0x4903da,null));},exports[_0x2f8f80('0xe0')]=function(_0x1d115e,_0xc1fbc2){const _0x564385=_0x2f8f80;return db[_0x564385('0xe4')]['findOne']({'where':{'id':_0x1d115e[_0x564385('0x156')]['id']}})['then'](handleEntityNotFound(_0xc1fbc2,null))[_0x564385('0x95')](function(_0xbda657){const _0x17c05f=_0x564385;if(_0xbda657)return _0xbda657['addContacts'](_0x1d115e[_0x17c05f('0x65')][_0x17c05f('0xf5')],{'through':_[_0x17c05f('0xe6')](_0x1d115e['body'],['ids','id'])});})[_0x564385('0x95')](respondWithResult(_0xc1fbc2,null))[_0x564385('0x159')](handleError(_0xc1fbc2,null));},exports['create']=function(_0x4fe0bb,_0x511529){const _0x115544=_0x2f8f80;if(_0x4fe0bb[_0x115544('0x120')][_0x115544('0xa2')]===_0x115544('0x4'))throw new Error(_0x115544('0xbe'));if(_0x4fe0bb['body'][_0x115544('0xa2')]===_0x115544('0x120')&&_0x4fe0bb[_0x115544('0x120')][_0x115544('0xa2')]!==_0x115544('0x69'))throw new Error(_0x115544('0xd1'));if(_0x4fe0bb[_0x115544('0x65')]['role']===_0x115544('0x69')&&_0x4fe0bb[_0x115544('0x120')][_0x115544('0xa2')]!==_0x115544('0x69'))throw new Error(_0x115544('0x44'));return licenseUtil['checkUserLimits']([_0x4fe0bb[_0x115544('0x65')]])[_0x115544('0x95')](function(){return validateUser(_0x4fe0bb['body']);})[_0x115544('0x95')](function(_0x166c03){const _0x2c6b89=_0x115544;return updateUser(_0x166c03)[_0x2c6b89('0x95')](function(_0x1c1c22){const _0xa1e1b3=_0x2c6b89;return _0x1c1c22['role']==='admin'&&(_0x1c1c22['settingsEnabled']=_0x4fe0bb[_0xa1e1b3('0x120')]['settingsEnabled'],delete _0x1c1c22['userProfileId']),_0x1c1c22;});})[_0x115544('0x95')](function(_0x9ee982){const _0x4e02ac=_0x115544;return db['User']['create'](_0x9ee982,{'include':[{'model':db[_0x4e02ac('0x3d')],'as':_0x4e02ac('0x3d')}]});})[_0x115544('0x95')](function(_0x58477a){const _0x162f1a=_0x115544;if(_0x4fe0bb[_0x162f1a('0x65')][_0x162f1a('0xa2')]===_0x162f1a('0x120'))return _0x58477a;if(_0x4fe0bb[_0x162f1a('0x120')][_0x162f1a('0xa2')]!==_0x162f1a('0x120'))return _0x58477a;return db[_0x162f1a('0xe9')][_0x162f1a('0x22')]({'where':{'name':_0x58477a['role']==='agent'?_0x162f1a('0x122'):_0x162f1a('0x61'),'userProfileId':_0x4fe0bb[_0x162f1a('0x120')][_0x162f1a('0x52')]},'raw':!![]})[_0x162f1a('0x95')](function(_0x7d614d){const _0x3da6c6=_0x162f1a;if(!_0x7d614d||_0x7d614d[_0x3da6c6('0x13d')]!=0x0)return _0x58477a;return db[_0x3da6c6('0x155')][_0x3da6c6('0x2b')]({'name':_0x58477a[_0x3da6c6('0x7c')],'resourceId':_0x58477a['id'],'type':_0x7d614d[_0x3da6c6('0x7c')],'sectionId':_0x7d614d['id']},{})[_0x3da6c6('0x95')](function(){return _0x58477a;});})['catch'](function(_0x5075be){const _0x14018e=_0x162f1a;logger['error'](_0x14018e('0x112'),_0x5075be);throw _0x5075be;});})[_0x115544('0x95')](respondWithResult(_0x511529,0xc9))[_0x115544('0x159')](handleError(_0x511529,null));},exports[_0x2f8f80('0x5b')]=function(_0x1b8613,_0x338d44){const _0x133e11=_0x2f8f80;if(_0x1b8613['body']['id'])delete _0x1b8613[_0x133e11('0x65')]['id'];return db[_0x133e11('0xe4')]['findOne']({'where':{'id':_0x1b8613['params']['id']}})[_0x133e11('0x95')](function(_0x2881b1){const _0x537f2e=_0x133e11;if(!_0x2881b1)return null;if(_0x2881b1['id']===_0x1b8613[_0x537f2e('0x120')]['id']){if(!_0x1b8613['body']['oldPassword']||!_0x1b8613[_0x537f2e('0x65')][_0x537f2e('0x133')])throw new ValidationError('Invalid\x20body\x20format.\x20Use\x20oldPassword\x20and\x20newPassword');if(!_0x2881b1[_0x537f2e('0x48')](_0x1b8613[_0x537f2e('0x65')][_0x537f2e('0x85')]))throw new ValidationError(_0x537f2e('0x1a'));if(_0x1b8613['body'][_0x537f2e('0x85')]===_0x1b8613[_0x537f2e('0x65')][_0x537f2e('0x133')])throw new ValidationError(_0x537f2e('0x7b'));}else{if(_0x1b8613['user']['role']===_0x537f2e('0x69')){if(!_0x1b8613[_0x537f2e('0x65')][_0x537f2e('0x133')])throw new ValidationError(_0x537f2e('0x13c'));}else{if(_0x1b8613[_0x537f2e('0x120')][_0x537f2e('0xa2')]===_0x537f2e('0x120')){if(!_0x1b8613[_0x537f2e('0x65')][_0x537f2e('0x133')])throw new ValidationError(_0x537f2e('0x13c'));if(_0x2881b1[_0x537f2e('0xa2')]!==_0x537f2e('0x4'))throw new ValidationError('Unauthorized');}else throw new ValidationError(_0x537f2e('0xbe'));}}return _0x2881b1;})[_0x133e11('0x95')](handleEntityNotFound(_0x338d44,null))[_0x133e11('0x95')](function(_0x2a41dc){const _0x5e84a7=_0x133e11;return db['Setting'][_0x5e84a7('0x22')]({'attributes':['id',_0x5e84a7('0x29'),_0x5e84a7('0x83'),_0x5e84a7('0x113')]})[_0x5e84a7('0x95')](function(_0x45bc6d){const _0x2dbcde=_0x5e84a7;if(_0x45bc6d[_0x2dbcde('0x29')])authService[_0x2dbcde('0xb')](_0x1b8613['body']['newPassword']);if(!_0x45bc6d[_0x2dbcde('0x83')]||!_0x2a41dc[_0x2dbcde('0x56')])return _0x2a41dc;return authService['validatePasswordHistory'](_0x1b8613['body'][_0x2dbcde('0x133')],_0x2a41dc[_0x2dbcde('0x56')],_0x45bc6d[_0x2dbcde('0x113')]),_0x2a41dc;})[_0x5e84a7('0x95')](saveUpdates({'password':_0x1b8613[_0x5e84a7('0x65')][_0x5e84a7('0x133')],'passwordResetAt':_0x1b8613[_0x5e84a7('0x120')]['id']==_0x1b8613[_0x5e84a7('0x156')]['id']?moment():null,'previousPasswords':authService[_0x5e84a7('0x31')](_0x1b8613[_0x5e84a7('0x65')][_0x5e84a7('0x133')],_0x2a41dc[_0x5e84a7('0x56')])},null));})[_0x133e11('0x95')](respondWithResult(_0x338d44,null))[_0x133e11('0x159')](handleError(_0x338d44,null));},exports['addQueues']=function(_0x152083,_0x2a818e){const _0x4ec46=_0x2f8f80,_0x2cf4f1=_0x152083[_0x4ec46('0x65')][_0x4ec46('0xf1')];return db[_0x4ec46('0xe4')][_0x4ec46('0x22')]({'where':{'id':_0x152083[_0x4ec46('0x156')]['id']},'attributes':['id',_0x4ec46('0x7c'),_0x4ec46('0xa2'),_0x4ec46('0xd7'),_0x4ec46('0xcd'),_0x4ec46('0x2c'),_0x4ec46('0xd4')]})['then'](handleEntityNotFound(_0x2a818e,null))['then'](function(_0x3f420c){const _0x462392=_0x4ec46;if(_0x3f420c){if(!utils['isValidChannel'](_0x2cf4f1))throw new ValidationError(_0x462392('0x130'));return _0x3f420c[_0x462392('0x119')+_[_0x462392('0xa4')](_0x2cf4f1['toLowerCase']())+'Queues'](_0x152083[_0x462392('0x65')][_0x462392('0xf5')],{'through':{'penalty':_0x152083[_0x462392('0x65')][_0x462392('0x4e')]||0x0}})['then'](function(_0x20bb2e){const _0x395e6d=_0x462392;for(let _0x48ca5c=0x0;_0x48ca5c<_0x152083[_0x395e6d('0x65')][_0x395e6d('0xf5')][_0x395e6d('0xf3')];_0x48ca5c+=0x1){const _0x5aa498={'UserId':_0x152083[_0x395e6d('0x156')]['id']};_0x5aa498[_[_0x395e6d('0xa4')](_0x2cf4f1['toLowerCase']())+_0x395e6d('0x3e')]=_0x152083['body'][_0x395e6d('0xf5')][_0x48ca5c],socket[_0x395e6d('0x6')]('user'+_[_0x395e6d('0xa4')](_0x2cf4f1[_0x395e6d('0x3c')]())+'Queue:save',_0x5aa498);}return _0x20bb2e;})['then'](function(){const _0x195b92=_0x462392;if(_0x2cf4f1==='voice')return db[_0x195b92('0xa')]['findAll']({'where':{'id':_0x152083[_0x195b92('0x65')]['ids']||[]},'raw':!![],'attributes':['id',_0x195b92('0x7c')]});})['then'](function(_0x7e7e0f){const _0x12c674=_0x462392,_0x55d832=_0x3f420c[_0x12c674('0x13a')]({'plain':!![]}),_0x389569=[];if(_0x2cf4f1===_0x12c674('0x9f')&&_0x55d832[_0x12c674('0xa2')]===_0x12c674('0x4')&&_0x55d832[_0x12c674('0xd7')]){for(let _0x1304ca=0x0;_0x1304ca<_0x7e7e0f[_0x12c674('0xf3')];_0x1304ca+=0x1){_0x389569['push']({'membername':_0x55d832[_0x12c674('0x7c')],'UserId':_0x55d832['id'],'queue_name':_0x7e7e0f[_0x1304ca]['name'],'VoiceQueueId':_0x7e7e0f[_0x1304ca]['id'],'interface':_[_0x12c674('0xda')](_0x55d832[_0x12c674('0xd4')])?util[_0x12c674('0xbc')](_0x12c674('0x124'),_0x55d832[_0x12c674('0x7c')]):_0x55d832[_0x12c674('0xd4')],'paused':_0x55d832[_0x12c674('0x2c')]||![],'penalty':_0x152083[_0x12c674('0x65')]['penalty']||0x0});}return Promise[_0x12c674('0x68')](_0x389569,function(_0x4e2f8b){const _0x3dbc60=_0x12c674;return db[_0x3dbc60('0x41')][_0x3dbc60('0x154')](_0x4e2f8b);});}return _0x3f420c;});}})[_0x4ec46('0x95')](respondWithStatusCode(_0x2a818e,null))[_0x4ec46('0x159')](handleError(_0x2a818e,null));},exports[_0x2f8f80('0x67')]=function(_0x30876a,_0x3b1459){const _0x593133=_0x2f8f80;let _0x4ab420;return db[_0x593133('0xe4')][_0x593133('0x22')]({'where':{'id':_0x30876a[_0x593133('0x156')]['id']},'attributes':['id',_0x593133('0x7c'),_0x593133('0xa2')]})[_0x593133('0x95')](handleEntityNotFound(_0x3b1459,null))[_0x593133('0x95')](function(_0x23ec9e){const _0x20e2fd=_0x593133;if(_0x23ec9e){_0x4ab420=_0x23ec9e;if(!_0x30876a[_0x20e2fd('0x140')][_0x20e2fd('0xf1')]||!utils[_0x20e2fd('0xfa')](_0x30876a[_0x20e2fd('0x140')][_0x20e2fd('0xf1')]))throw new ValidationError(_0x20e2fd('0x130'));return _0x23ec9e[_0x20e2fd('0x24')+_[_0x20e2fd('0xa4')](_0x30876a[_0x20e2fd('0x140')][_0x20e2fd('0xf1')][_0x20e2fd('0x3c')]())+_0x20e2fd('0xba')](_0x30876a['query'][_0x20e2fd('0xf5')]);}})[_0x593133('0x95')](function(_0x50943b){const _0x10ce6b=_0x593133;for(let _0x3c0e57=0x0;_0x3c0e57<_0x30876a['query'][_0x10ce6b('0xf5')][_0x10ce6b('0xf3')];_0x3c0e57+=0x1){const _0x1697eb={'UserId':_0x30876a['params']['id']};_0x1697eb[_[_0x10ce6b('0xa4')](_0x30876a[_0x10ce6b('0x140')]['channel'][_0x10ce6b('0x3c')]())+'QueueId']=_0x30876a['query'][_0x10ce6b('0xf5')][_0x3c0e57],socket[_0x10ce6b('0x6')](_0x10ce6b('0x120')+_['capitalize'](_0x30876a[_0x10ce6b('0x140')]['channel'][_0x10ce6b('0x3c')]())+_0x10ce6b('0x42'),_0x1697eb);}return _0x50943b;})[_0x593133('0x95')](function(){const _0x2caf48=_0x593133;if(_0x30876a[_0x2caf48('0x140')]['channel']===_0x2caf48('0x9f'))return db[_0x2caf48('0x41')][_0x2caf48('0xad')]({'where':{'UserId':_0x30876a[_0x2caf48('0x156')]['id'],'VoiceQueueId':_0x30876a[_0x2caf48('0x140')]['ids']},'individualHooks':!![]})[_0x2caf48('0x95')](function(){return _0x4ab420;});return _0x4ab420;})[_0x593133('0x95')](respondWithStatusCode(_0x3b1459,null))[_0x593133('0x159')](handleError(_0x3b1459,null));},exports['addAvatar']=function(_0x3aa48f,_0x10aed1){const _0x4f05b7=_0x2f8f80;return _0x3aa48f[_0x4f05b7('0x65')][_0x4f05b7('0x90')]=_0x3aa48f[_0x4f05b7('0xc9')]['filename'],db['User']['findOne']({'where':{'id':_0x3aa48f[_0x4f05b7('0x156')]['id']}})[_0x4f05b7('0x95')](handleEntityNotFound(_0x10aed1,null))[_0x4f05b7('0x95')](saveUpdates(_0x3aa48f[_0x4f05b7('0x65')],null))[_0x4f05b7('0x95')](respondWithResult(_0x10aed1,null))['catch'](handleError(_0x10aed1,null));},exports[_0x2f8f80('0xdb')]=function(_0x503028,_0x439d61){const _0x4fe739=_0x2f8f80,_0x4dc425=path['join'](config['root'],_0x4fe739('0x104'));return db[_0x4fe739('0xe4')][_0x4fe739('0x22')]({'where':{'id':_0x503028[_0x4fe739('0x156')]['id']},'attributes':['id',_0x4fe739('0x90')],'raw':!![]})['then'](handleEntityNotFound(_0x439d61,null))['then'](function(_0xd85002){const _0x824d2a=_0x4fe739;if(_0xd85002){if(_['isNil'](_0xd85002['userpic']))return _0x439d61[_0x824d2a('0xc1')](_0x4dc425);else{if(!fs[_0x824d2a('0x135')](path['join'](config[_0x824d2a('0xf6')],'files/images/',_0xd85002['userpic'])))return _0x439d61[_0x824d2a('0xc1')](_0x4dc425);return _0x439d61[_0x824d2a('0xc1')](path[_0x824d2a('0x121')](config['root'],'files/images/',_0xd85002[_0x824d2a('0x90')]));}}})[_0x4fe739('0x159')](handleError(_0x439d61,null));},exports[_0x2f8f80('0x7d')]=function(_0x4e07e7,_0x5b6580){const _0x2a5ccf=_0x2f8f80;let _0x3acd37={};const _0x5a3efa={};let _0x2b2168,_0x51df8b;return db[_0x2a5ccf('0xe4')][_0x2a5ccf('0x22')]({'where':{'id':_0x4e07e7[_0x2a5ccf('0x156')]['id']}})[_0x2a5ccf('0x95')](handleEntityNotFound(_0x5b6580,null))[_0x2a5ccf('0x95')](function(_0x42c690){const _0x1fb625=_0x2a5ccf;if(_0x42c690)return _0x2b2168=_0x42c690,_0x5a3efa[_0x1fb625('0x14')]=_[_0x1fb625('0xfc')](db[_0x1fb625('0x93')][_0x1fb625('0xa1')]),_0x5a3efa[_0x1fb625('0x140')]=_['keys'](_0x4e07e7[_0x1fb625('0x140')]),_0x5a3efa[_0x1fb625('0xa8')]=_[_0x1fb625('0x9c')](_0x5a3efa[_0x1fb625('0x14')],_0x5a3efa[_0x1fb625('0x140')]),_0x3acd37[_0x1fb625('0x86')]=_[_0x1fb625('0x9c')](_0x5a3efa['model'],qs[_0x1fb625('0x5a')](_0x4e07e7[_0x1fb625('0x140')][_0x1fb625('0x5a')])),_0x3acd37[_0x1fb625('0x86')]=_0x3acd37[_0x1fb625('0x86')][_0x1fb625('0xf3')]?_0x3acd37['attributes']:_0x5a3efa[_0x1fb625('0x14')],_0x3acd37[_0x1fb625('0x14c')]=qs[_0x1fb625('0x1')](_0x4e07e7[_0x1fb625('0x140')]['sort']),_0x3acd37['where']=qs[_0x1fb625('0xa8')](_[_0x1fb625('0x105')](_0x4e07e7['query'],_0x5a3efa[_0x1fb625('0xa8')])),_0x4e07e7[_0x1fb625('0x140')][_0x1fb625('0x7f')]&&(_0x3acd37['where']=_['merge'](_0x3acd37[_0x1fb625('0x12e')],{[Op['or']]:_[_0x1fb625('0xcf')](_0x3acd37[_0x1fb625('0x86')],function(_0x161fc1){const _0x4b6d24=_0x1fb625,_0x14101a={};return _0x14101a[_0x161fc1]={[Op[_0x4b6d24('0xc2')]]:'%'+_0x4e07e7[_0x4b6d24('0x140')][_0x4b6d24('0x7f')]+'%'},_0x14101a;})})),_0x3acd37=_[_0x1fb625('0x19')]({},_0x3acd37,_0x4e07e7[_0x1fb625('0x145')]),_0x2b2168[_0x1fb625('0x7d')](_0x3acd37);})[_0x2a5ccf('0x95')](function(_0x383773){const _0x2a3158=_0x2a5ccf;if(_0x383773)return _0x51df8b=_0x383773[_0x2a3158('0xf3')],typeof _0x4e07e7['query'][_0x2a3158('0xca')]!=='undefined'&&(_0x3acd37[_0x2a3158('0x144')]=[{'model':db[_0x2a3158('0x84')],'as':_0x2a3158('0x11a'),'required':![]},{'model':db['Tag'],'as':_0x2a3158('0x132'),'attributes':['id',_0x2a3158('0x7c'),'color'],'where':_0x4e07e7[_0x2a3158('0x140')][_0x2a3158('0xc5')]?{'id':_0x4e07e7[_0x2a3158('0x140')]['tag']}:undefined,'required':_0x4e07e7[_0x2a3158('0x140')][_0x2a3158('0xc5')]?!![]:![]}]),typeof _0x4e07e7[_0x2a3158('0x140')]['nolimit']===_0x2a3158('0xac')&&(_0x3acd37[_0x2a3158('0x136')]=qs[_0x2a3158('0x136')](_0x4e07e7[_0x2a3158('0x140')][_0x2a3158('0x136')]),_0x3acd37[_0x2a3158('0x116')]=qs[_0x2a3158('0x116')](_0x4e07e7[_0x2a3158('0x140')][_0x2a3158('0x116')])),_0x2b2168[_0x2a3158('0x7d')](_0x3acd37);})[_0x2a5ccf('0x95')](function(_0x2c7b86){if(_0x2c7b86)return _0x2c7b86?{'count':_0x51df8b,'rows':_0x2c7b86}:null;})[_0x2a5ccf('0x95')](respondWithResult(_0x5b6580,null))[_0x2a5ccf('0x159')](handleError(_0x5b6580,null));},exports['getQueues']=function(_0x33db74,_0x4eae8a){const _0x54869f=_0x2f8f80;let _0x4c65bb,_0x3d930d={},_0x166056;return db[_0x54869f('0xe4')][_0x54869f('0x22')]({'where':{'id':_0x33db74[_0x54869f('0x156')]['id']},'attributes':['id',_0x54869f('0x7c'),_0x54869f('0xa2')]})[_0x54869f('0x95')](handleEntityNotFound(_0x4eae8a,null))[_0x54869f('0x95')](function(_0x301438){const _0x1eb607=_0x54869f;if(!utils['isValidChannel'](_0x33db74[_0x1eb607('0x140')][_0x1eb607('0xf1')]))throw new ValidationError(_0x1eb607('0x130'));_0x4c65bb=_0x301438;const _0x3b1579={};_0x3b1579['model']=_[_0x1eb607('0xfc')](db[_['capitalize'](_0x33db74[_0x1eb607('0x140')][_0x1eb607('0xf1')])+_0x1eb607('0xf')][_0x1eb607('0xa1')]),_0x3b1579[_0x1eb607('0x140')]=_[_0x1eb607('0xfc')](_0x33db74[_0x1eb607('0x140')]),_0x3b1579[_0x1eb607('0xa8')]=_['intersection'](_0x3b1579['model'],_0x3b1579[_0x1eb607('0x140')]),_0x3d930d[_0x1eb607('0x86')]=_[_0x1eb607('0x9c')](_0x3b1579['model'],qs[_0x1eb607('0x5a')](_0x33db74['query'][_0x1eb607('0x5a')])),_0x3d930d[_0x1eb607('0x86')]=_0x3d930d[_0x1eb607('0x86')][_0x1eb607('0xf3')]?_0x3d930d[_0x1eb607('0x86')]:_0x3b1579[_0x1eb607('0x14')],_0x3d930d[_0x1eb607('0x14c')]=qs[_0x1eb607('0x1')](_0x33db74['query'][_0x1eb607('0x1')]),_0x3d930d[_0x1eb607('0x12e')]=qs['filters'](_[_0x1eb607('0x105')](_0x33db74[_0x1eb607('0x140')],_0x3b1579[_0x1eb607('0xa8')]));_0x33db74[_0x1eb607('0x140')]['filter']&&(_0x3d930d[_0x1eb607('0x12e')]=_['merge'](_0x3d930d['where'],{[Op['or']]:_[_0x1eb607('0xcf')](_0x3d930d[_0x1eb607('0x86')],function(_0x56d2ef){const _0x1d4f40=_0x1eb607,_0x4b1c39={};return _0x4b1c39[_0x56d2ef]={[Op[_0x1d4f40('0xc2')]]:'%'+_0x33db74[_0x1d4f40('0x140')]['filter']+'%'},_0x4b1c39;})}));_0x3d930d=_[_0x1eb607('0x19')]({},_0x3d930d,_0x33db74[_0x1eb607('0x145')]);switch(_0x4c65bb[_0x1eb607('0xa2')]){case'admin':return db[_['capitalize'](_0x33db74[_0x1eb607('0x140')][_0x1eb607('0xf1')])+_0x1eb607('0xf')]['findAll'](_0x3d930d);case _0x1eb607('0x120'):case _0x1eb607('0x4'):return _0x4c65bb[_0x1eb607('0x13a')+_[_0x1eb607('0xa4')](_0x33db74[_0x1eb607('0x140')]['channel'])+'Queues'](_0x3d930d);default:throw new ValidationError(_0x1eb607('0xdf'));}})[_0x54869f('0x95')](function(_0x4e98bc){const _0x1b48e0=_0x54869f;_0x166056=_0x4e98bc['length'];typeof _0x33db74['query']['nolimit']==='undefined'&&(_0x3d930d['limit']=qs[_0x1b48e0('0x136')](_0x33db74[_0x1b48e0('0x140')][_0x1b48e0('0x136')]),_0x3d930d[_0x1b48e0('0x116')]=qs['offset'](_0x33db74[_0x1b48e0('0x140')][_0x1b48e0('0x116')]));switch(_0x4c65bb[_0x1b48e0('0xa2')]){case _0x1b48e0('0x69'):return db[_[_0x1b48e0('0xa4')](_0x33db74['query'][_0x1b48e0('0xf1')])+_0x1b48e0('0xf')]['findAll'](_0x3d930d);case'user':case _0x1b48e0('0x4'):return _0x4c65bb['get'+_[_0x1b48e0('0xa4')](_0x33db74[_0x1b48e0('0x140')][_0x1b48e0('0xf1')])+_0x1b48e0('0xba')](_0x3d930d);}})[_0x54869f('0x95')](function(_0x59b20d){return{'count':_0x166056,'rows':_0x59b20d};})[_0x54869f('0x95')](respondWithResult(_0x4eae8a,null))[_0x54869f('0x159')](handleError(_0x4eae8a,null));},exports[_0x2f8f80('0x40')]=function(_0x4c40fb,_0x53822d){const _0x358a14=_0x2f8f80;let _0x1c59f9={};const _0x360088={};let _0x43e7f6,_0x5d6d81;return db[_0x358a14('0xe4')]['findOne']({'where':{'id':_0x4c40fb[_0x358a14('0x156')]['id']}})[_0x358a14('0x95')](handleEntityNotFound(_0x53822d,null))['then'](function(_0x226740){const _0x225a9f=_0x358a14;if(_0x226740)return _0x43e7f6=_0x226740,_0x360088[_0x225a9f('0x14')]=_[_0x225a9f('0xfc')](db[_0x225a9f('0x41')][_0x225a9f('0xa1')]),_0x360088['query']=_[_0x225a9f('0xfc')](_0x4c40fb[_0x225a9f('0x140')]),_0x360088['filters']=_['intersection'](_0x360088[_0x225a9f('0x14')],_0x360088[_0x225a9f('0x140')]),_0x1c59f9['attributes']=_[_0x225a9f('0x9c')](_0x360088['model'],qs[_0x225a9f('0x5a')](_0x4c40fb[_0x225a9f('0x140')][_0x225a9f('0x5a')])),_0x1c59f9['attributes']=_0x1c59f9[_0x225a9f('0x86')][_0x225a9f('0xf3')]?_0x1c59f9[_0x225a9f('0x86')]:_0x360088[_0x225a9f('0x14')],_0x1c59f9['order']=qs[_0x225a9f('0x1')](_0x4c40fb['query'][_0x225a9f('0x1')]),_0x1c59f9[_0x225a9f('0x12e')]=qs['filters'](_[_0x225a9f('0x105')](_0x4c40fb['query'],_0x360088[_0x225a9f('0xa8')])),_0x4c40fb[_0x225a9f('0x140')][_0x225a9f('0x7f')]&&(_0x1c59f9[_0x225a9f('0x12e')]=_[_0x225a9f('0x19')](_0x1c59f9[_0x225a9f('0x12e')],{[Op['or']]:_['map'](_0x1c59f9[_0x225a9f('0x86')],function(_0x52887d){const _0x45a97e=_0x225a9f,_0x2dfe80={};return _0x2dfe80[_0x52887d]={[Op[_0x45a97e('0xc2')]]:'%'+_0x4c40fb[_0x45a97e('0x140')]['filter']+'%'},_0x2dfe80;})})),_0x1c59f9=_[_0x225a9f('0x19')]({},_0x1c59f9,_0x4c40fb[_0x225a9f('0x145')]),_0x43e7f6[_0x225a9f('0x40')](_0x1c59f9);})[_0x358a14('0x95')](function(_0xa671f3){const _0x3be255=_0x358a14;if(_0xa671f3)return _0x5d6d81=_0xa671f3[_0x3be255('0xf3')],typeof _0x4c40fb[_0x3be255('0x140')][_0x3be255('0x47')]==='undefined'&&(_0x1c59f9[_0x3be255('0x136')]=qs[_0x3be255('0x136')](_0x4c40fb[_0x3be255('0x140')][_0x3be255('0x136')]),_0x1c59f9[_0x3be255('0x116')]=qs[_0x3be255('0x116')](_0x4c40fb[_0x3be255('0x140')][_0x3be255('0x116')])),_0x43e7f6[_0x3be255('0x40')](_0x1c59f9);})[_0x358a14('0x95')](function(_0x5f4a23){if(_0x5f4a23)return _0x5f4a23?{'count':_0x5d6d81,'rows':_0x5f4a23}:null;})[_0x358a14('0x95')](respondWithResult(_0x53822d,null))[_0x358a14('0x159')](handleError(_0x53822d,null));},exports[_0x2f8f80('0x9b')]=function(_0x1bee38,_0x4724e2){const _0x2e4cfd=_0x2f8f80;let _0x4735cf={};const _0x27ed08={};let _0x409972,_0x1d06e4;return db['User'][_0x2e4cfd('0x22')]({'where':{'id':_0x1bee38[_0x2e4cfd('0x156')]['id']}})['then'](handleEntityNotFound(_0x4724e2,null))['then'](function(_0x362e20){const _0x21d4dd=_0x2e4cfd;if(_0x362e20)return _0x409972=_0x362e20,_0x27ed08['model']=_['keys'](db[_0x21d4dd('0x34')][_0x21d4dd('0xa1')]),_0x27ed08[_0x21d4dd('0x140')]=_[_0x21d4dd('0xfc')](_0x1bee38[_0x21d4dd('0x140')]),_0x27ed08[_0x21d4dd('0xa8')]=_['intersection'](_0x27ed08[_0x21d4dd('0x14')],_0x27ed08['query']),_0x4735cf[_0x21d4dd('0x86')]=_[_0x21d4dd('0x9c')](_0x27ed08[_0x21d4dd('0x14')],qs[_0x21d4dd('0x5a')](_0x1bee38[_0x21d4dd('0x140')][_0x21d4dd('0x5a')])),_0x4735cf['attributes']=_0x4735cf[_0x21d4dd('0x86')][_0x21d4dd('0xf3')]?_0x4735cf[_0x21d4dd('0x86')]:_0x27ed08[_0x21d4dd('0x14')],_0x4735cf['order']=qs['sort'](_0x1bee38[_0x21d4dd('0x140')][_0x21d4dd('0x1')]),_0x4735cf['where']=qs[_0x21d4dd('0xa8')](_[_0x21d4dd('0x105')](_0x1bee38[_0x21d4dd('0x140')],_0x27ed08[_0x21d4dd('0xa8')])),_0x1bee38[_0x21d4dd('0x140')][_0x21d4dd('0x7f')]&&(_0x4735cf[_0x21d4dd('0x12e')]=_['merge'](_0x4735cf['where'],{[Op['or']]:_[_0x21d4dd('0xcf')](_0x4735cf[_0x21d4dd('0x86')],function(_0x34633d){const _0x19dd7b=_0x21d4dd,_0x18cc01={};return _0x18cc01[_0x34633d]={[Op['like']]:'%'+_0x1bee38[_0x19dd7b('0x140')]['filter']+'%'},_0x18cc01;})})),_0x4735cf=_['merge']({},_0x4735cf,_0x1bee38['options']),_0x409972['getGroups'](_0x4735cf);})[_0x2e4cfd('0x95')](function(_0x51ff6b){const _0x2ba98c=_0x2e4cfd;if(_0x51ff6b)return _0x1d06e4=_0x51ff6b[_0x2ba98c('0xf3')],typeof _0x1bee38[_0x2ba98c('0x140')][_0x2ba98c('0x47')]===_0x2ba98c('0xac')&&(_0x4735cf['limit']=qs[_0x2ba98c('0x136')](_0x1bee38['query']['limit']),_0x4735cf['offset']=qs['offset'](_0x1bee38[_0x2ba98c('0x140')][_0x2ba98c('0x116')])),_0x409972['getGroups'](_0x4735cf);})[_0x2e4cfd('0x95')](function(_0x5d5c0e){if(_0x5d5c0e)return _0x5d5c0e?{'count':_0x1d06e4,'rows':_0x5d5c0e}:null;})['then'](respondWithResult(_0x4724e2,null))[_0x2e4cfd('0x159')](handleError(_0x4724e2,null));},exports['getRecordings']=function(_0xbd4e47,_0x7123f3){const _0x11ea27=_0x2f8f80;let _0x563176={'raw':!![],'where':{}};const _0x44a643={},_0xb24463={'count':0x0,'rows':[]};return db[_0x11ea27('0xe4')][_0x11ea27('0x22')]({'where':{'id':_0xbd4e47['params']['id']}})['then'](handleEntityNotFound(_0x7123f3,null))[_0x11ea27('0x95')](function(_0x46bc74){const _0x7f5b1c=_0x11ea27;if(_0x46bc74)return _0x44a643['model']=_['keys'](db[_0x7f5b1c('0xb3')][_0x7f5b1c('0xa1')]),_0x44a643[_0x7f5b1c('0x140')]=_[_0x7f5b1c('0xfc')](_0xbd4e47['query']),_0x44a643['filters']=_[_0x7f5b1c('0x9c')](_0x44a643[_0x7f5b1c('0x14')],_0x44a643[_0x7f5b1c('0x140')]),_0x563176['attributes']=_['intersection'](_0x44a643[_0x7f5b1c('0x14')],qs[_0x7f5b1c('0x5a')](_0xbd4e47[_0x7f5b1c('0x140')][_0x7f5b1c('0x5a')])),_0x563176[_0x7f5b1c('0x86')]=_0x563176[_0x7f5b1c('0x86')][_0x7f5b1c('0xf3')]?_0x563176['attributes']:_0x44a643[_0x7f5b1c('0x14')],typeof _0xbd4e47[_0x7f5b1c('0x140')][_0x7f5b1c('0x47')]===_0x7f5b1c('0xac')&&(_0x563176[_0x7f5b1c('0x136')]=qs[_0x7f5b1c('0x136')](_0xbd4e47[_0x7f5b1c('0x140')]['limit']),_0x563176[_0x7f5b1c('0x116')]=qs['offset'](_0xbd4e47['query']['offset'])),_0x563176['order']=qs[_0x7f5b1c('0x1')](_0xbd4e47[_0x7f5b1c('0x140')]['sort']),_0x563176[_0x7f5b1c('0x12e')]=qs['filters'](_[_0x7f5b1c('0x105')](_0xbd4e47[_0x7f5b1c('0x140')],_0x44a643[_0x7f5b1c('0xa8')])),_0x563176['where'][_0x7f5b1c('0x1c')]=_0x46bc74['id'],_0xbd4e47['query'][_0x7f5b1c('0x7f')]&&(_0x563176[_0x7f5b1c('0x12e')]=_[_0x7f5b1c('0x19')](_0x563176[_0x7f5b1c('0x12e')],{[Op['or']]:_['map'](_0x563176[_0x7f5b1c('0x86')],function(_0x49db52){const _0xde9d80=_0x7f5b1c,_0x4626fd={};return _0x4626fd[_0x49db52]={[Op['like']]:'%'+_0xbd4e47[_0xde9d80('0x140')][_0xde9d80('0x7f')]+'%'},_0x4626fd;})})),_0x563176=_[_0x7f5b1c('0x19')]({},_0x563176,_0xbd4e47[_0x7f5b1c('0x145')]),db[_0x7f5b1c('0xb3')][_0x7f5b1c('0xb2')]({'where':_0x563176[_0x7f5b1c('0x12e')]})[_0x7f5b1c('0x95')](function(_0x35a1b2){const _0x5c77d1=_0x7f5b1c;return _0xb24463[_0x5c77d1('0xb2')]=_0x35a1b2,_0xbd4e47[_0x5c77d1('0x140')][_0x5c77d1('0xca')]&&(_0x563176['include']=[{'all':!![]}]),db[_0x5c77d1('0xb3')]['findAll'](_0x563176);})[_0x7f5b1c('0x95')](function(_0x1df198){return _0xb24463['rows']=_0x1df198,_0xb24463;});})[_0x11ea27('0x95')](respondWithFilteredResult(_0x7123f3,_0x563176))['catch'](handleError(_0x7123f3,null));},exports[_0x2f8f80('0x54')]=function(_0x266896,_0xd0da50){const _0x32be62=_0x2f8f80;let _0x82ad01={'raw':!![],'where':{}};const _0x548156={},_0x2b649b={'count':0x0,'rows':[]};return db[_0x32be62('0xe4')][_0x32be62('0x22')]({'where':{'id':_0x266896[_0x32be62('0x156')]['id']}})['then'](handleEntityNotFound(_0xd0da50,null))[_0x32be62('0x95')](function(_0x30b51b){const _0xc9ea3f=_0x32be62;if(_0x30b51b)return _0x548156['model']=_[_0xc9ea3f('0xfc')](db[_0xc9ea3f('0x152')]['rawAttributes']),_0x548156[_0xc9ea3f('0x140')]=_[_0xc9ea3f('0xfc')](_0x266896[_0xc9ea3f('0x140')]),_0x548156[_0xc9ea3f('0xa8')]=_['intersection'](_0x548156[_0xc9ea3f('0x14')],_0x548156[_0xc9ea3f('0x140')]),_0x82ad01[_0xc9ea3f('0x86')]=_['intersection'](_0x548156[_0xc9ea3f('0x14')],qs[_0xc9ea3f('0x5a')](_0x266896['query'][_0xc9ea3f('0x5a')])),_0x82ad01[_0xc9ea3f('0x86')]=_0x82ad01['attributes'][_0xc9ea3f('0xf3')]?_0x82ad01[_0xc9ea3f('0x86')]:_0x548156['model'],typeof _0x266896[_0xc9ea3f('0x140')][_0xc9ea3f('0x47')]==='undefined'&&(_0x82ad01[_0xc9ea3f('0x136')]=qs[_0xc9ea3f('0x136')](_0x266896[_0xc9ea3f('0x140')]['limit']),_0x82ad01[_0xc9ea3f('0x116')]=qs[_0xc9ea3f('0x116')](_0x266896[_0xc9ea3f('0x140')][_0xc9ea3f('0x116')])),_0x82ad01[_0xc9ea3f('0x14c')]=qs[_0xc9ea3f('0x1')](_0x266896['query']['sort']),_0x82ad01[_0xc9ea3f('0x12e')]=qs['filters'](_[_0xc9ea3f('0x105')](_0x266896[_0xc9ea3f('0x140')],_0x548156['filters'])),_0x82ad01[_0xc9ea3f('0x12e')][_0xc9ea3f('0x1c')]=_0x30b51b['id'],_0x266896['query'][_0xc9ea3f('0x7f')]&&(_0x82ad01[_0xc9ea3f('0x12e')]=_[_0xc9ea3f('0x19')](_0x82ad01[_0xc9ea3f('0x12e')],{[Op['or']]:_[_0xc9ea3f('0xcf')](_0x82ad01['attributes'],function(_0x2973b6){const _0x41c050=_0xc9ea3f,_0x4615c4={};return _0x4615c4[_0x2973b6]={[Op[_0x41c050('0xc2')]]:'%'+_0x266896[_0x41c050('0x140')][_0x41c050('0x7f')]+'%'},_0x4615c4;})})),_0x82ad01=_[_0xc9ea3f('0x19')]({},_0x82ad01,_0x266896[_0xc9ea3f('0x145')]),db[_0xc9ea3f('0x152')]['count']({'where':_0x82ad01[_0xc9ea3f('0x12e')]})[_0xc9ea3f('0x95')](function(_0x48df75){const _0x3b3746=_0xc9ea3f;return _0x2b649b['count']=_0x48df75,_0x266896['query'][_0x3b3746('0xca')]&&(_0x82ad01[_0x3b3746('0x144')]=[{'all':!![]}]),db[_0x3b3746('0x152')][_0x3b3746('0x14e')](_0x82ad01);})[_0xc9ea3f('0x95')](function(_0x2f5019){const _0x413d12=_0xc9ea3f;return _0x2b649b[_0x413d12('0x126')]=_0x2f5019,_0x2b649b;});})[_0x32be62('0x95')](respondWithFilteredResult(_0xd0da50,_0x82ad01))[_0x32be62('0x159')](handleError(_0xd0da50,null));},exports[_0x2f8f80('0xd2')]=function(_0x2324ca,_0x4a1315){const _0x744236=_0x2f8f80;let _0x3e5d5c={};const _0x3800c6={};let _0x775d99,_0x32994b;return db['User']['findOne']({'where':{'id':_0x2324ca['params']['id']}})[_0x744236('0x95')](handleEntityNotFound(_0x4a1315,null))[_0x744236('0x95')](function(_0x22022c){const _0x1e0971=_0x744236;if(_0x22022c)return _0x775d99=_0x22022c,_0x3800c6['model']=_[_0x1e0971('0xfc')](db[_0x1e0971('0x10d')]['rawAttributes']),_0x3800c6[_0x1e0971('0x140')]=_[_0x1e0971('0xfc')](_0x2324ca[_0x1e0971('0x140')]),_0x3800c6[_0x1e0971('0xa8')]=_[_0x1e0971('0x9c')](_0x3800c6['model'],_0x3800c6[_0x1e0971('0x140')]),_0x3e5d5c[_0x1e0971('0x86')]=_[_0x1e0971('0x9c')](_0x3800c6[_0x1e0971('0x14')],qs[_0x1e0971('0x5a')](_0x2324ca[_0x1e0971('0x140')]['fields'])),_0x3e5d5c[_0x1e0971('0x86')]=_0x3e5d5c[_0x1e0971('0x86')][_0x1e0971('0xf3')]?_0x3e5d5c['attributes']:_0x3800c6[_0x1e0971('0x14')],_0x3e5d5c['order']=qs['sort'](_0x2324ca[_0x1e0971('0x140')]['sort']),_0x3e5d5c[_0x1e0971('0x12e')]=qs['filters'](_[_0x1e0971('0x105')](_0x2324ca['query'],_0x3800c6['filters'])),_0x2324ca['query'][_0x1e0971('0x7f')]&&(_0x3e5d5c[_0x1e0971('0x12e')]=_[_0x1e0971('0x19')](_0x3e5d5c[_0x1e0971('0x12e')],{[Op['or']]:_[_0x1e0971('0xcf')](_0x3e5d5c[_0x1e0971('0x86')],function(_0xf262c7){const _0x323286=_0x1e0971,_0x21f406={};return _0x21f406[_0xf262c7]={[Op[_0x323286('0xc2')]]:'%'+_0x2324ca[_0x323286('0x140')][_0x323286('0x7f')]+'%'},_0x21f406;})})),_0x3e5d5c=_[_0x1e0971('0x19')]({},_0x3e5d5c,_0x2324ca[_0x1e0971('0x145')]),_0x775d99['getChatInteractions'](_0x3e5d5c);})[_0x744236('0x95')](function(_0x3df0af){const _0x15dccb=_0x744236;if(_0x3df0af)return _0x32994b=_0x3df0af[_0x15dccb('0xf3')],typeof _0x2324ca[_0x15dccb('0x140')][_0x15dccb('0x47')]===_0x15dccb('0xac')&&(_0x3e5d5c['limit']=qs[_0x15dccb('0x136')](_0x2324ca[_0x15dccb('0x140')][_0x15dccb('0x136')]),_0x3e5d5c[_0x15dccb('0x116')]=qs[_0x15dccb('0x116')](_0x2324ca['query'][_0x15dccb('0x116')])),_0x775d99[_0x15dccb('0xd2')](_0x3e5d5c);})[_0x744236('0x95')](function(_0x1814f){if(_0x1814f)return _0x1814f?{'count':_0x32994b,'rows':_0x1814f}:null;})[_0x744236('0x95')](respondWithResult(_0x4a1315,null))[_0x744236('0x159')](handleError(_0x4a1315,null));},exports[_0x2f8f80('0x6b')]=function(_0x3c012e,_0x532afe){const _0x42abb6=_0x2f8f80;let _0x3d1a14={};const _0x40260c={};let _0x11227b,_0x3e8882;return db[_0x42abb6('0xe4')][_0x42abb6('0x22')]({'where':{'id':_0x3c012e[_0x42abb6('0x156')]['id']}})[_0x42abb6('0x95')](handleEntityNotFound(_0x532afe,null))[_0x42abb6('0x95')](function(_0x3fc2e9){const _0x323647=_0x42abb6;if(_0x3fc2e9)return _0x11227b=_0x3fc2e9,_0x40260c[_0x323647('0x14')]=_['keys'](db[_0x323647('0xde')][_0x323647('0xa1')]),_0x40260c['query']=_['keys'](_0x3c012e[_0x323647('0x140')]),_0x40260c[_0x323647('0xa8')]=_[_0x323647('0x9c')](_0x40260c['model'],_0x40260c['query']),_0x3d1a14[_0x323647('0x86')]=_[_0x323647('0x9c')](_0x40260c[_0x323647('0x14')],qs[_0x323647('0x5a')](_0x3c012e[_0x323647('0x140')][_0x323647('0x5a')])),_0x3d1a14[_0x323647('0x86')]=_0x3d1a14[_0x323647('0x86')][_0x323647('0xf3')]?_0x3d1a14[_0x323647('0x86')]:_0x40260c['model'],_0x3d1a14[_0x323647('0x14c')]=qs['sort'](_0x3c012e['query'][_0x323647('0x1')]),_0x3d1a14[_0x323647('0x12e')]=qs[_0x323647('0xa8')](_[_0x323647('0x105')](_0x3c012e[_0x323647('0x140')],_0x40260c[_0x323647('0xa8')])),_0x3c012e[_0x323647('0x140')][_0x323647('0x7f')]&&(_0x3d1a14[_0x323647('0x12e')]=_[_0x323647('0x19')](_0x3d1a14[_0x323647('0x12e')],{[Op['or']]:_[_0x323647('0xcf')](_0x3d1a14[_0x323647('0x86')],function(_0x7d01a2){const _0x572459=_0x323647,_0x17036c={};return _0x17036c[_0x7d01a2]={[Op[_0x572459('0xc2')]]:'%'+_0x3c012e[_0x572459('0x140')][_0x572459('0x7f')]+'%'},_0x17036c;})})),_0x3d1a14=_[_0x323647('0x19')]({},_0x3d1a14,_0x3c012e[_0x323647('0x145')]),_0x11227b['getOpenchannelInteractions'](_0x3d1a14);})[_0x42abb6('0x95')](function(_0x92c2e3){const _0x14206f=_0x42abb6;if(_0x92c2e3)return _0x3e8882=_0x92c2e3[_0x14206f('0xf3')],typeof _0x3c012e['query']['nolimit']===_0x14206f('0xac')&&(_0x3d1a14[_0x14206f('0x136')]=qs['limit'](_0x3c012e[_0x14206f('0x140')][_0x14206f('0x136')]),_0x3d1a14[_0x14206f('0x116')]=qs[_0x14206f('0x116')](_0x3c012e[_0x14206f('0x140')][_0x14206f('0x116')])),_0x11227b['getOpenchannelInteractions'](_0x3d1a14);})[_0x42abb6('0x95')](function(_0xcaef54){if(_0xcaef54)return _0xcaef54?{'count':_0x3e8882,'rows':_0xcaef54}:null;})['then'](respondWithResult(_0x532afe,null))[_0x42abb6('0x159')](handleError(_0x532afe,null));},exports['getMailInteractions']=function(_0x5a36a5,_0x2eaf80){const _0x1b4470=_0x2f8f80;let _0x47ffe7={'raw':!![],'where':{}};const _0x3e0840={},_0x890578={'count':0x0,'rows':[]};return db[_0x1b4470('0xe4')]['findOne']({'where':{'id':_0x5a36a5[_0x1b4470('0x156')]['id']}})['then'](handleEntityNotFound(_0x2eaf80,null))['then'](function(_0x20fe64){const _0x3ff797=_0x1b4470;if(_0x20fe64)return _0x3e0840[_0x3ff797('0x14')]=_[_0x3ff797('0xfc')](db[_0x3ff797('0x9e')][_0x3ff797('0xa1')]),_0x3e0840[_0x3ff797('0x140')]=_[_0x3ff797('0xfc')](_0x5a36a5[_0x3ff797('0x140')]),_0x3e0840[_0x3ff797('0xa8')]=_['intersection'](_0x3e0840[_0x3ff797('0x14')],_0x3e0840[_0x3ff797('0x140')]),_0x47ffe7[_0x3ff797('0x86')]=_['intersection'](_0x3e0840[_0x3ff797('0x14')],qs[_0x3ff797('0x5a')](_0x5a36a5[_0x3ff797('0x140')][_0x3ff797('0x5a')])),_0x47ffe7[_0x3ff797('0x86')]=_0x47ffe7[_0x3ff797('0x86')]['length']?_0x47ffe7['attributes']:_0x3e0840[_0x3ff797('0x14')],typeof _0x5a36a5[_0x3ff797('0x140')][_0x3ff797('0x47')]===_0x3ff797('0xac')&&(_0x47ffe7['limit']=qs[_0x3ff797('0x136')](_0x5a36a5[_0x3ff797('0x140')][_0x3ff797('0x136')]),_0x47ffe7[_0x3ff797('0x116')]=qs[_0x3ff797('0x116')](_0x5a36a5['query'][_0x3ff797('0x116')])),_0x47ffe7['order']=qs[_0x3ff797('0x1')](_0x5a36a5['query']['sort']),_0x47ffe7[_0x3ff797('0x12e')]=qs[_0x3ff797('0xa8')](_['pick'](_0x5a36a5[_0x3ff797('0x140')],_0x3e0840[_0x3ff797('0xa8')])),_0x47ffe7[_0x3ff797('0x12e')][_0x3ff797('0x1c')]=_0x20fe64['id'],_0x5a36a5[_0x3ff797('0x140')][_0x3ff797('0x7f')]&&(_0x47ffe7[_0x3ff797('0x12e')]=_[_0x3ff797('0x19')](_0x47ffe7[_0x3ff797('0x12e')],{[Op['or']]:_[_0x3ff797('0xcf')](_0x47ffe7[_0x3ff797('0x86')],function(_0x2e6d12){const _0x4ca256=_0x3ff797,_0x24afb1={};return _0x24afb1[_0x2e6d12]={[Op['like']]:'%'+_0x5a36a5[_0x4ca256('0x140')][_0x4ca256('0x7f')]+'%'},_0x24afb1;})})),_0x47ffe7=_[_0x3ff797('0x19')]({},_0x47ffe7,_0x5a36a5[_0x3ff797('0x145')]),db[_0x3ff797('0x9e')][_0x3ff797('0xb2')]({'where':_0x47ffe7[_0x3ff797('0x12e')]})[_0x3ff797('0x95')](function(_0x87af7d){const _0x331688=_0x3ff797;return _0x890578[_0x331688('0xb2')]=_0x87af7d,_0x5a36a5[_0x331688('0x140')]['includeAll']&&(_0x47ffe7[_0x331688('0x144')]=[{'all':!![]}]),db[_0x331688('0x9e')]['findAll'](_0x47ffe7);})[_0x3ff797('0x95')](function(_0xf1e308){const _0xb3436a=_0x3ff797;return _0x890578[_0xb3436a('0x126')]=_0xf1e308,_0x890578;});})[_0x1b4470('0x95')](respondWithFilteredResult(_0x2eaf80,_0x47ffe7))[_0x1b4470('0x159')](handleError(_0x2eaf80,null));},exports[_0x2f8f80('0x27')]=function(_0x5a5f85,_0x24c5d9){const _0x15255d=_0x2f8f80;let _0x19c4a0={};const _0xce69b={};let _0x185d5b,_0x52128c;return db[_0x15255d('0xe4')]['findOne']({'where':{'id':_0x5a5f85[_0x15255d('0x156')]['id']}})[_0x15255d('0x95')](handleEntityNotFound(_0x24c5d9,null))[_0x15255d('0x95')](function(_0x1440a1){const _0x5e8324=_0x15255d;if(_0x1440a1)return _0x185d5b=_0x1440a1,_0xce69b[_0x5e8324('0x14')]=_[_0x5e8324('0xfc')](db[_0x5e8324('0x9d')][_0x5e8324('0xa1')]),_0xce69b[_0x5e8324('0x140')]=_['keys'](_0x5a5f85['query']),_0xce69b[_0x5e8324('0xa8')]=_['intersection'](_0xce69b[_0x5e8324('0x14')],_0xce69b[_0x5e8324('0x140')]),_0x19c4a0['attributes']=_[_0x5e8324('0x9c')](_0xce69b[_0x5e8324('0x14')],qs[_0x5e8324('0x5a')](_0x5a5f85[_0x5e8324('0x140')][_0x5e8324('0x5a')])),_0x19c4a0[_0x5e8324('0x86')]=_0x19c4a0[_0x5e8324('0x86')][_0x5e8324('0xf3')]?_0x19c4a0[_0x5e8324('0x86')]:_0xce69b[_0x5e8324('0x14')],_0x19c4a0[_0x5e8324('0x14c')]=qs[_0x5e8324('0x1')](_0x5a5f85['query']['sort']),_0x19c4a0['where']=qs[_0x5e8324('0xa8')](_[_0x5e8324('0x105')](_0x5a5f85[_0x5e8324('0x140')],_0xce69b[_0x5e8324('0xa8')])),_0x5a5f85[_0x5e8324('0x140')][_0x5e8324('0x7f')]&&(_0x19c4a0[_0x5e8324('0x12e')]=_['merge'](_0x19c4a0[_0x5e8324('0x12e')],{[Op['or']]:_[_0x5e8324('0xcf')](_0x19c4a0[_0x5e8324('0x86')],function(_0x3f32f3){const _0x24449b=_0x5e8324,_0x4c0ef2={};return _0x4c0ef2[_0x3f32f3]={[Op[_0x24449b('0xc2')]]:'%'+_0x5a5f85['query'][_0x24449b('0x7f')]+'%'},_0x4c0ef2;})})),_0x19c4a0=_['merge']({},_0x19c4a0,_0x5a5f85[_0x5e8324('0x145')]),_0x185d5b[_0x5e8324('0x27')](_0x19c4a0);})[_0x15255d('0x95')](function(_0x4fa245){const _0x5aec3a=_0x15255d;if(_0x4fa245)return _0x52128c=_0x4fa245[_0x5aec3a('0xf3')],typeof _0x5a5f85[_0x5aec3a('0x140')][_0x5aec3a('0x47')]==='undefined'&&(_0x19c4a0[_0x5aec3a('0x136')]=qs[_0x5aec3a('0x136')](_0x5a5f85[_0x5aec3a('0x140')][_0x5aec3a('0x136')]),_0x19c4a0[_0x5aec3a('0x116')]=qs['offset'](_0x5a5f85[_0x5aec3a('0x140')][_0x5aec3a('0x116')])),_0x185d5b[_0x5aec3a('0x27')](_0x19c4a0);})[_0x15255d('0x95')](function(_0x242d23){if(_0x242d23)return _0x242d23?{'count':_0x52128c,'rows':_0x242d23}:null;})[_0x15255d('0x95')](respondWithResult(_0x24c5d9,null))['catch'](handleError(_0x24c5d9,null));},exports[_0x2f8f80('0x6a')]=function(_0x3b1cca,_0x3c689f){const _0x3110b9=_0x2f8f80;let _0x17bd36={};const _0x107c1c={};let _0x4f1848,_0x1f12fb;return db[_0x3110b9('0xe4')][_0x3110b9('0x22')]({'where':{'id':_0x3b1cca[_0x3110b9('0x156')]['id']}})[_0x3110b9('0x95')](handleEntityNotFound(_0x3c689f,null))[_0x3110b9('0x95')](function(_0x3d8670){const _0x4642b2=_0x3110b9;if(_0x3d8670)return _0x4f1848=_0x3d8670,_0x107c1c[_0x4642b2('0x14')]=_[_0x4642b2('0xfc')](db[_0x4642b2('0x16')][_0x4642b2('0xa1')]),_0x107c1c[_0x4642b2('0x140')]=_[_0x4642b2('0xfc')](_0x3b1cca[_0x4642b2('0x140')]),_0x107c1c[_0x4642b2('0xa8')]=_[_0x4642b2('0x9c')](_0x107c1c[_0x4642b2('0x14')],_0x107c1c['query']),_0x17bd36[_0x4642b2('0x86')]=_[_0x4642b2('0x9c')](_0x107c1c[_0x4642b2('0x14')],qs[_0x4642b2('0x5a')](_0x3b1cca[_0x4642b2('0x140')][_0x4642b2('0x5a')])),_0x17bd36[_0x4642b2('0x86')]=_0x17bd36[_0x4642b2('0x86')][_0x4642b2('0xf3')]?_0x17bd36[_0x4642b2('0x86')]:_0x107c1c[_0x4642b2('0x14')],_0x17bd36[_0x4642b2('0x14c')]=qs[_0x4642b2('0x1')](_0x3b1cca['query']['sort']),_0x17bd36[_0x4642b2('0x12e')]=qs[_0x4642b2('0xa8')](_[_0x4642b2('0x105')](_0x3b1cca[_0x4642b2('0x140')],_0x107c1c['filters'])),_0x3b1cca['query'][_0x4642b2('0x7f')]&&(_0x17bd36['where']=_[_0x4642b2('0x19')](_0x17bd36[_0x4642b2('0x12e')],{[Op['or']]:_[_0x4642b2('0xcf')](_0x17bd36[_0x4642b2('0x86')],function(_0x5ca208){const _0x511119={};return _0x511119[_0x5ca208]={[Op['like']]:'%'+_0x3b1cca['query']['filter']+'%'},_0x511119;})})),_0x17bd36=_[_0x4642b2('0x19')]({},_0x17bd36,_0x3b1cca[_0x4642b2('0x145')]),_0x4f1848[_0x4642b2('0x6a')](_0x17bd36);})[_0x3110b9('0x95')](function(_0x3212b0){const _0x26f285=_0x3110b9;if(_0x3212b0)return _0x1f12fb=_0x3212b0['length'],typeof _0x3b1cca[_0x26f285('0x140')]['nolimit']===_0x26f285('0xac')&&(_0x17bd36[_0x26f285('0x136')]=qs[_0x26f285('0x136')](_0x3b1cca['query'][_0x26f285('0x136')]),_0x17bd36[_0x26f285('0x116')]=qs['offset'](_0x3b1cca[_0x26f285('0x140')][_0x26f285('0x116')])),_0x4f1848[_0x26f285('0x6a')](_0x17bd36);})[_0x3110b9('0x95')](function(_0x2cd530){if(_0x2cd530)return _0x2cd530?{'count':_0x1f12fb,'rows':_0x2cd530}:null;})[_0x3110b9('0x95')](respondWithResult(_0x3c689f,null))['catch'](handleError(_0x3c689f,null));},exports[_0x2f8f80('0xfb')]=function(_0x94daee,_0x40d937){const _0x300064=_0x2f8f80;let _0x425e8e={};const _0x1c5d83={};let _0x2ba714,_0x2830dc;return db[_0x300064('0xe4')][_0x300064('0x22')]({'where':{'id':_0x94daee['params']['id']}})['then'](handleEntityNotFound(_0x40d937,null))[_0x300064('0x95')](function(_0x5d547d){const _0x2d6fff=_0x300064;if(_0x5d547d)return _0x2ba714=_0x5d547d,_0x1c5d83['model']=_[_0x2d6fff('0xfc')](db['WhatsappInteraction'][_0x2d6fff('0xa1')]),_0x1c5d83[_0x2d6fff('0x140')]=_[_0x2d6fff('0xfc')](_0x94daee['query']),_0x1c5d83[_0x2d6fff('0xa8')]=_['intersection'](_0x1c5d83[_0x2d6fff('0x14')],_0x1c5d83['query']),_0x425e8e[_0x2d6fff('0x86')]=_['intersection'](_0x1c5d83[_0x2d6fff('0x14')],qs[_0x2d6fff('0x5a')](_0x94daee[_0x2d6fff('0x140')][_0x2d6fff('0x5a')])),_0x425e8e[_0x2d6fff('0x86')]=_0x425e8e[_0x2d6fff('0x86')][_0x2d6fff('0xf3')]?_0x425e8e['attributes']:_0x1c5d83['model'],_0x425e8e[_0x2d6fff('0x14c')]=qs[_0x2d6fff('0x1')](_0x94daee['query'][_0x2d6fff('0x1')]),_0x425e8e['where']=qs[_0x2d6fff('0xa8')](_[_0x2d6fff('0x105')](_0x94daee['query'],_0x1c5d83[_0x2d6fff('0xa8')])),_0x94daee['query'][_0x2d6fff('0x7f')]&&(_0x425e8e[_0x2d6fff('0x12e')]=_[_0x2d6fff('0x19')](_0x425e8e[_0x2d6fff('0x12e')],{[Op['or']]:_[_0x2d6fff('0xcf')](_0x425e8e[_0x2d6fff('0x86')],function(_0x12bf05){const _0x328efa=_0x2d6fff,_0x542fc8={};return _0x542fc8[_0x12bf05]={[Op['like']]:'%'+_0x94daee[_0x328efa('0x140')][_0x328efa('0x7f')]+'%'},_0x542fc8;})})),_0x425e8e=_['merge']({},_0x425e8e,_0x94daee[_0x2d6fff('0x145')]),_0x2ba714[_0x2d6fff('0xfb')](_0x425e8e);})[_0x300064('0x95')](function(_0x28fc1f){const _0x3d279e=_0x300064;if(_0x28fc1f)return _0x2830dc=_0x28fc1f['length'],typeof _0x94daee[_0x3d279e('0x140')][_0x3d279e('0x47')]===_0x3d279e('0xac')&&(_0x425e8e[_0x3d279e('0x136')]=qs['limit'](_0x94daee[_0x3d279e('0x140')][_0x3d279e('0x136')]),_0x425e8e['offset']=qs['offset'](_0x94daee[_0x3d279e('0x140')]['offset'])),_0x2ba714[_0x3d279e('0xfb')](_0x425e8e);})['then'](function(_0x21d2e4){if(_0x21d2e4)return _0x21d2e4?{'count':_0x2830dc,'rows':_0x21d2e4}:null;})['then'](respondWithResult(_0x40d937,null))['catch'](handleError(_0x40d937,null));},exports[_0x2f8f80('0x62')]=function(_0x6641cf,_0x44ae04,_0x2a1cf7){const _0x3427cf=_0x2f8f80;let _0x49f395,_0x4e9b74,_0x339dc4;const _0x26ccec=!_[_0x3427cf('0xda')](_0x6641cf[_0x3427cf('0x156')]['id'])?_0x6641cf['params']['id']:!_['isNil'](_0x6641cf[_0x3427cf('0x120')]['id'])?_0x6641cf['user']['id']:null;return db['User'][_0x3427cf('0x22')]({'where':{'id':_0x26ccec,'role':{[Op['or']]:[_0x3427cf('0x69'),_0x3427cf('0x120'),_0x3427cf('0x4')]}},'attributes':['id',_0x3427cf('0x7c'),_0x3427cf('0xfd'),_0x3427cf('0x11e'),_0x3427cf('0xa2'),_0x3427cf('0x102'),_0x3427cf('0xcd')]})[_0x3427cf('0x95')](function(_0x18ced8){const _0x5d550b=_0x3427cf;if(_0x18ced8){if(_0x18ced8[_0x5d550b('0xa2')]===_0x5d550b('0x4')){_0x49f395=_0x18ced8;if(_0x6641cf['body'][_0x5d550b('0xd4')])_0x339dc4=util['format']('LOCAL/%s@from-sip/n',_0x49f395[_0x6641cf[_0x5d550b('0x65')][_0x5d550b('0xd4')]]);else _0x6641cf[_0x5d550b('0x65')]['intrf']?_0x339dc4=util[_0x5d550b('0xbc')](_0x5d550b('0x124'),_0x6641cf[_0x5d550b('0x65')][_0x5d550b('0x78')]):_0x339dc4=util['format'](_0x5d550b('0x124'),_0x49f395[_0x5d550b('0x7c')]);return socket['to'](util[_0x5d550b('0xbc')](_0x5d550b('0x43'),_0x49f395[_0x5d550b('0x7c')]))[_0x5d550b('0x6')]('user:forcelogout',{'ip':_0x6641cf['headers'][_0x5d550b('0x13e')]||_0x6641cf[_0x5d550b('0x15c')][_0x5d550b('0x10c')]||_0x6641cf[_0x5d550b('0x14d')][_0x5d550b('0x10c')]||_0x6641cf[_0x5d550b('0x15c')]['socket'][_0x5d550b('0x10c')]}),db['UserVoiceQueueRt'][_0x5d550b('0xad')]({'where':{'membername':_0x49f395[_0x5d550b('0x7c')]},'individualHooks':!![]});}}else throw new ValidationError(_0x5d550b('0x148'));})['then'](function(){const _0x443cc7=_0x3427cf;if(_0x49f395)return _0x49f395[_0x443cc7('0x64')]({'raw':!![]});})[_0x3427cf('0x95')](function(_0x13943d){const _0x1c7f7d=_0x3427cf;if(_0x49f395){if(_0x13943d){_0x4e9b74=_0x13943d;if(_0x4e9b74[_0x1c7f7d('0xf3')]){const _0x18a221=_0x4e9b74[_0x1c7f7d('0xcf')](_0x53c18c=>{const _0x1e18e3=_0x1c7f7d,_0x5e713f={'membername':_0x49f395['name'],'UserId':_0x49f395['id'],'queue_name':_0x53c18c[_0x1e18e3('0x7c')],'VoiceQueueId':_0x53c18c['id'],'interface':_0x339dc4,'paused':_0x49f395[_0x1e18e3('0xcd')]||![],'penalty':_0x53c18c[_0x1e18e3('0xee')]||0x0};return db['UserVoiceQueueRt'][_0x1e18e3('0x154')](_0x5e713f);});return Promise[_0x1c7f7d('0xf2')](_0x18a221);}}}})[_0x3427cf('0x95')](function(){const _0x13c87e=_0x3427cf;if(_0x49f395)return db[_0x13c87e('0x15e')][_0x13c87e('0x14e')]({'where':{'membername':_0x49f395[_0x13c87e('0x7c')],'exitAt':null}});})[_0x3427cf('0x95')](function(_0x21cde4){const _0x4f0daf=_0x3427cf;if(_0x49f395){const _0x598c41=[];return _0x21cde4[_0x4f0daf('0xe5')](function(_0x2c8ee9){const _0x59822d=_0x4f0daf;_0x598c41[_0x59822d('0x60')](_0x2c8ee9[_0x59822d('0x146')]({'exitAt':moment()[_0x59822d('0xbc')](_0x59822d('0x110'))}));}),Promise['all'](_0x598c41);}})[_0x3427cf('0x95')](function(){const _0x1ce885=_0x3427cf;if(_0x49f395){const _0x2ea1a3=[],_0x41d2fd=[],_0x3d02c5=utils[_0x1ce885('0x49')](),_0x155130={'membername':_0x49f395['name'],'interface':_0x339dc4,'enterAt':moment()[_0x1ce885('0xbc')](_0x1ce885('0x110')),'role':_0x49f395[_0x1ce885('0xa2')],'internal':_0x49f395[_0x1ce885('0x102')]};return _0x3d02c5[_0x1ce885('0xe5')](function(_0x491ffa){const _0x1f4f1c=_0x1ce885;_0x2ea1a3[_0x1f4f1c('0x60')](_[_0x1f4f1c('0x19')]({'channel':_0x491ffa,'type':'LOGIN','data1':_0x6641cf['body'][_0x1f4f1c('0x12b')],'data2':_0x339dc4},_0x155130)),_0x49f395[_0x1f4f1c('0xcd')]&&_0x41d2fd[_0x1f4f1c('0x60')](_['merge']({'channel':_0x491ffa,'type':_0x1f4f1c('0x114'),'data1':_0x1f4f1c('0xf9')},_0x155130));}),db[_0x1ce885('0x15e')][_0x1ce885('0x38')](_0x2ea1a3[_0x1ce885('0x81')](_0x41d2fd),{'individualHooks':!![]});}})[_0x3427cf('0x95')](function(){const _0x480682=_0x3427cf;if(_0x49f395)return _0x49f395[_0x480682('0x146')]({'online':!![],'lastLoginAt':moment()[_0x480682('0xbc')](_0x480682('0x110')),'voicePause':_0x49f395['loginInPause']||![],'mailPause':_0x49f395[_0x480682('0xcd')]||![],'chatPause':_0x49f395[_0x480682('0xcd')]||![],'faxPause':_0x49f395[_0x480682('0xcd')]||![],'smsPause':_0x49f395[_0x480682('0xcd')]||![],'openchannelPause':_0x49f395[_0x480682('0xcd')]||![],'whatsappPause':_0x49f395['loginInPause']||![],'pauseType':_0x49f395[_0x480682('0xcd')]?_0x480682('0xf9'):null,'interface':_0x339dc4,'lastPauseAt':moment()[_0x480682('0xbc')]('YYYY-MM-DD\x20HH:mm:ss')});})[_0x3427cf('0x95')](function(_0x1845be){const _0x49cff6=_0x3427cf;return _0x6641cf[_0x49cff6('0xa7')]?_0x2a1cf7():Promise[_0x49cff6('0xa6')](_0x1845be)['then'](respondWithResult(_0x44ae04,null));})[_0x3427cf('0x159')](handleError(_0x44ae04,null));},exports['logout']=function(_0x54aaab,_0x1069ca){const _0x29efad=_0x2f8f80;let _0x3f9d83;return db[_0x29efad('0xe4')][_0x29efad('0x22')]({'where':{'id':_0x54aaab['params']['id'],'role':_0x29efad('0x4')},'attributes':['id',_0x29efad('0x7c'),_0x29efad('0xa2')]})[_0x29efad('0x95')](handleEntityNotFound(_0x1069ca,null))[_0x29efad('0x95')](function(_0x57ed9d){const _0x37826a=_0x29efad;if(_0x57ed9d)return _0x3f9d83=_0x57ed9d,db['UserVoiceQueueRt'][_0x37826a('0xad')]({'where':{'membername':_0x3f9d83[_0x37826a('0x7c')]},'individualHooks':!![]});})[_0x29efad('0x95')](function(){const _0x3f6b3c=_0x29efad;return db[_0x3f6b3c('0x15e')]['findAll']({'where':{'membername':_0x3f9d83['name'],'exitAt':null}});})[_0x29efad('0x95')](function(_0x4f7411){const _0x316ee=_0x29efad,_0x172178=[];return _0x4f7411[_0x316ee('0xe5')](function(_0x353480){const _0x3e4210=_0x316ee;_0x172178[_0x3e4210('0x60')](_0x353480['update']({'exitAt':moment()[_0x3e4210('0xbc')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise['all'](_0x172178);})[_0x29efad('0x95')](function(){const _0x1aa7d5=_0x29efad;return _0x3f9d83[_0x1aa7d5('0x146')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})['then'](respondWithResult(_0x1069ca,null))[_0x29efad('0x159')](handleError(_0x1069ca,null));},exports[_0x2f8f80('0xe7')]=function(_0x26cbf8,_0x4753bd){const _0x3ddad1=_0x2f8f80;let _0x1446c6;return db[_0x3ddad1('0x41')][_0x3ddad1('0x146')]({'paused':0x1},{'where':{'UserId':_0x26cbf8[_0x3ddad1('0x156')]['id']},'individualHooks':!![]})['then'](function(){const _0x36c8ea=_0x3ddad1;return db['User']['findOne']({'where':{'id':_0x26cbf8[_0x36c8ea('0x156')]['id'],'role':_0x36c8ea('0x4')},'attributes':['id','name',_0x36c8ea('0xa2'),_0x36c8ea('0x102'),_0x36c8ea('0xd4')]});})['then'](handleEntityNotFound(_0x4753bd,null))[_0x3ddad1('0x95')](function(_0x2bb802){const _0x33ea1a=_0x3ddad1;if(_0x2bb802)return _0x1446c6=_0x2bb802,respondWithRpcPromise(_0x33ea1a('0xc'),_0x33ea1a('0xe7'),{'id':_0x1446c6['id'],'name':_0x1446c6[_0x33ea1a('0x7c')],'pause':!![]});})[_0x3ddad1('0x95')](function(){const _0x389e38=_0x3ddad1;if(_0x1446c6)return db[_0x389e38('0x15e')][_0x389e38('0x14e')]({'where':{'membername':_0x1446c6['name'],'type':_0x389e38('0x114'),'exitAt':null}});})[_0x3ddad1('0x95')](function(_0x14ed88){const _0x19d25c=_0x3ddad1;if(_0x14ed88[_0x19d25c('0xf3')]){const _0x42d56e=moment()[_0x19d25c('0xbc')](_0x19d25c('0x110'));for(let _0x5edec3=0x0,_0x586455=_0x14ed88[_0x19d25c('0xf3')];_0x5edec3<_0x586455;_0x5edec3++){_0x14ed88[_0x5edec3]['update']({'exitAt':_0x42d56e});}}})['then'](function(){const _0x45144c=_0x3ddad1,_0x5684b8=[],_0x58c959=utils[_0x45144c('0x49')]();return _0x58c959['forEach'](function(_0x57e913){const _0x20eadf=_0x45144c;_0x5684b8[_0x20eadf('0x60')]({'channel':_0x57e913,'membername':_0x1446c6[_0x20eadf('0x7c')],'interface':_[_0x20eadf('0xda')](_0x1446c6[_0x20eadf('0xd4')])?util[_0x20eadf('0xbc')](_0x20eadf('0x124'),_0x1446c6['name']):_0x1446c6[_0x20eadf('0xd4')],'type':'PAUSE','enterAt':moment()['format'](_0x20eadf('0x110')),'data1':_0x26cbf8['body']['type']||_0x20eadf('0x13b'),'role':_0x1446c6[_0x20eadf('0xa2')],'internal':_0x1446c6['internal']});}),db[_0x45144c('0x15e')][_0x45144c('0x38')](_0x5684b8,{'individualHooks':!![]});})[_0x3ddad1('0x95')](function(){const _0x3c9a75=_0x3ddad1;return _0x1446c6[_0x3c9a75('0x146')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x26cbf8[_0x3c9a75('0x65')]['type']||'DEFAULT\x20PAUSE','lastPauseAt':moment()[_0x3c9a75('0xbc')](_0x3c9a75('0x110'))});})[_0x3ddad1('0x95')](respondWithResult(_0x4753bd,null))[_0x3ddad1('0x159')](handleError(_0x4753bd,null));},exports['unpause']=function(_0x4ace7c,_0x5119b3){const _0x17e942=_0x2f8f80;let _0x35a1e1;return db[_0x17e942('0xe4')][_0x17e942('0x22')]({'where':{'id':_0x4ace7c[_0x17e942('0x156')]['id']},'attributes':['id',_0x17e942('0x7c'),_0x17e942('0xa2'),'voicePause',_0x17e942('0x37'),_0x17e942('0x57'),_0x17e942('0x17'),_0x17e942('0x8a'),_0x17e942('0x8'),_0x17e942('0x74'),_0x17e942('0xb6'),'lastPauseAt']})['then'](handleEntityNotFound(_0x5119b3,null))[_0x17e942('0x95')](function(_0x38ab7a){const _0x1f147e=_0x17e942;if(_0x38ab7a){_0x35a1e1=_0x38ab7a;if(_0x4ace7c[_0x1f147e('0x65')][_0x1f147e('0xf1')]&&!utils['isValidChannel'](_0x4ace7c['body']['channel']))throw new ValidationError('Unknown\x20channel');switch(_0x4ace7c[_0x1f147e('0x65')][_0x1f147e('0xf1')]){case _0x1f147e('0x9f'):return respondWithRpcPromise(_0x1f147e('0xc'),'unpause',{'id':_0x35a1e1['id'],'name':_0x35a1e1[_0x1f147e('0x7c')],'pause':![]})[_0x1f147e('0x95')](function(){const _0x3992b5=_0x1f147e;return db[_0x3992b5('0x41')][_0x3992b5('0x146')]({'paused':0x0},{'where':{'UserId':_0x35a1e1['id']},'individualHooks':!![]});})[_0x1f147e('0x95')](function(){const _0x583c12=_0x1f147e;return db[_0x583c12('0x15e')][_0x583c12('0x22')]({'where':{'channel':_0x4ace7c[_0x583c12('0x65')][_0x583c12('0xf1')],'membername':_0x35a1e1['name'],'type':'PAUSE','exitAt':null}});})[_0x1f147e('0x95')](function(_0x28ccc0){const _0x48f28a=_0x1f147e;if(_0x28ccc0)return _0x28ccc0[_0x48f28a('0x146')]({'exitAt':moment()['format'](_0x48f28a('0x110')),'data2':_0x48f28a('0x15d')},{'individualHooks':!![]});return null;})['then'](function(){const _0x26cc4a=_0x1f147e;return _0x35a1e1[_0x26cc4a('0x146')]({'voicePause':![]});});case _0x1f147e('0x111'):case'chat':case _0x1f147e('0x26'):case _0x1f147e('0x97'):case _0x1f147e('0x51'):case _0x1f147e('0x3a'):return db[_0x1f147e('0x15e')][_0x1f147e('0x22')]({'where':{'channel':_0x4ace7c[_0x1f147e('0x65')][_0x1f147e('0xf1')],'membername':_0x35a1e1['name'],'type':_0x1f147e('0x114'),'exitAt':null}})[_0x1f147e('0x95')](function(_0x2a61ce){const _0x2d1642=_0x1f147e;if(_0x2a61ce)return _0x2a61ce[_0x2d1642('0x146')]({'exitAt':moment()[_0x2d1642('0xbc')](_0x2d1642('0x110')),'data2':'manual'},{'individualHooks':!![]});return null;})[_0x1f147e('0x95')](function(){const _0x5ab83e=_0x1f147e,_0x3968aa={};return _['set'](_0x3968aa,util[_0x5ab83e('0xbc')](_0x5ab83e('0x106'),_0x4ace7c[_0x5ab83e('0x65')]['channel'],_0x5ab83e('0x30')),![]),_0x35a1e1[_0x5ab83e('0x146')](_0x3968aa);});default:return respondWithRpcPromise('QueuePause',_0x1f147e('0x18'),{'id':_0x35a1e1['id'],'name':_0x35a1e1[_0x1f147e('0x7c')],'pause':![]})[_0x1f147e('0x95')](function(){const _0x21dde0=_0x1f147e;return db[_0x21dde0('0x41')]['update']({'paused':0x0},{'where':{'UserId':_0x35a1e1['id']}});})[_0x1f147e('0x95')](function(){const _0x56e91e=_0x1f147e;return db['MemberReport'][_0x56e91e('0x14e')]({'where':{'membername':_0x35a1e1[_0x56e91e('0x7c')],'type':_0x56e91e('0x114'),'exitAt':null}});})[_0x1f147e('0x95')](function(_0x45207e){const _0x58d04f=_0x1f147e,_0x3b5990=[];return _0x45207e[_0x58d04f('0xe5')](function(_0x4f257b){const _0x5675f3=_0x58d04f;_0x3b5990[_0x5675f3('0x60')](_0x4f257b['update']({'exitAt':moment()[_0x5675f3('0xbc')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x5675f3('0x15d')}));}),Promise[_0x58d04f('0xf2')](_0x3b5990);})[_0x1f147e('0x95')](function(){return _0x35a1e1['update']({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})['then'](respondWithResult(_0x5119b3,null))['catch'](handleError(_0x5119b3,null));},exports[_0x2f8f80('0x20')]=function(_0x1d8439,_0x1d0ad3){const _0x15d700=_0x2f8f80;let _0x2d1f74={};const _0xc09ca5={};let _0x1ca391,_0x22e210;return db['User'][_0x15d700('0x22')]({'where':{'id':_0x1d8439[_0x15d700('0x156')]['id']}})[_0x15d700('0x95')](handleEntityNotFound(_0x1d0ad3,null))[_0x15d700('0x95')](function(_0x2f3aff){const _0x2935db=_0x15d700;if(_0x2f3aff)return _0x1ca391=_0x2f3aff,_0xc09ca5[_0x2935db('0x14')]=_[_0x2935db('0xfc')](db['Team'][_0x2935db('0xa1')]),_0xc09ca5['query']=_[_0x2935db('0xfc')](_0x1d8439[_0x2935db('0x140')]),_0xc09ca5[_0x2935db('0xa8')]=_[_0x2935db('0x9c')](_0xc09ca5['model'],_0xc09ca5['query']),_0x2d1f74[_0x2935db('0x86')]=_['intersection'](_0xc09ca5['model'],qs[_0x2935db('0x5a')](_0x1d8439[_0x2935db('0x140')][_0x2935db('0x5a')])),_0x2d1f74['attributes']=_0x2d1f74[_0x2935db('0x86')]['length']?_0x2d1f74[_0x2935db('0x86')]:_0xc09ca5[_0x2935db('0x14')],_0x2d1f74[_0x2935db('0x14c')]=qs[_0x2935db('0x1')](_0x1d8439[_0x2935db('0x140')][_0x2935db('0x1')]),_0x2d1f74['where']=qs[_0x2935db('0xa8')](_['pick'](_0x1d8439[_0x2935db('0x140')],_0xc09ca5[_0x2935db('0xa8')])),_0x1d8439[_0x2935db('0x140')]['filter']&&(_0x2d1f74[_0x2935db('0x12e')]=_[_0x2935db('0x19')](_0x2d1f74[_0x2935db('0x12e')],{[Op['or']]:_[_0x2935db('0xcf')](_0x2d1f74[_0x2935db('0x86')],function(_0x448d70){const _0x401b49=_0x2935db,_0x1bc5cf={};return _0x1bc5cf[_0x448d70]={[Op[_0x401b49('0xc2')]]:'%'+_0x1d8439[_0x401b49('0x140')][_0x401b49('0x7f')]+'%'},_0x1bc5cf;})})),_0x2d1f74=_[_0x2935db('0x19')]({},_0x2d1f74,_0x1d8439[_0x2935db('0x145')]),_0x1ca391[_0x2935db('0x20')](_0x2d1f74);})[_0x15d700('0x95')](function(_0x2f82dd){const _0x44a89d=_0x15d700;if(_0x2f82dd)return _0x22e210=_0x2f82dd[_0x44a89d('0xf3')],typeof _0x1d8439[_0x44a89d('0x140')][_0x44a89d('0x47')]==='undefined'&&(_0x2d1f74[_0x44a89d('0x136')]=qs[_0x44a89d('0x136')](_0x1d8439[_0x44a89d('0x140')][_0x44a89d('0x136')]),_0x2d1f74[_0x44a89d('0x116')]=qs['offset'](_0x1d8439[_0x44a89d('0x140')][_0x44a89d('0x116')])),_0x1ca391['getTeams'](_0x2d1f74);})[_0x15d700('0x95')](function(_0x1e7fbc){if(_0x1e7fbc)return _0x1e7fbc?{'count':_0x22e210,'rows':_0x1e7fbc}:null;})['then'](respondWithResult(_0x1d0ad3,null))[_0x15d700('0x159')](handleError(_0x1d0ad3,null));},exports[_0x2f8f80('0x127')]=function(_0x35b1f3,_0xccccd9){const _0x1eb1e4=_0x2f8f80;return db[_0x1eb1e4('0xe4')][_0x1eb1e4('0x22')]({'where':{'id':_0x35b1f3[_0x1eb1e4('0x156')]['id']}})[_0x1eb1e4('0x95')](handleEntityNotFound(_0xccccd9,null))[_0x1eb1e4('0x95')](function(_0x15b677){const _0x12bf54=_0x1eb1e4;if(_0x15b677){const _0x2bfcc1=_0x15b677[_0x12bf54('0x13a')]({'plain':!![]});return _0x15b677[_0x12bf54('0x127')](_0x35b1f3['body']['ids'],_[_0x12bf54('0xe6')](_0x35b1f3[_0x12bf54('0x65')],[_0x12bf54('0xf5'),'id'])||{})[_0x12bf54('0x95')](function(){const _0x5ef6b5=_0x12bf54;for(let _0x41d4b9=0x0;_0x41d4b9<_0x35b1f3[_0x5ef6b5('0x65')][_0x5ef6b5('0xf5')][_0x5ef6b5('0xf3')];_0x41d4b9++){let _0x14a9ea=[];db['Team'][_0x5ef6b5('0x22')]({'where':{'id':_0x35b1f3['body'][_0x5ef6b5('0xf5')][_0x41d4b9]}})[_0x5ef6b5('0x95')](function(_0x5a5bad){const _0x3112ec=_0x5ef6b5;return _0x14a9ea['push'](_0x5a5bad['getVoiceQueues']()['then'](function(_0x8c2d3){const _0x5095b2=a648_0x5937;for(let _0x4f5881=0x0;_0x4f5881<_0x8c2d3[_0x5095b2('0xf3')];_0x4f5881++){_0x8c2d3[_0x4f5881][_0x5095b2('0x125')]('channel',_0x5095b2('0x153'));}return _0x8c2d3;})),_0x14a9ea[_0x3112ec('0x60')](_0x5a5bad[_0x3112ec('0x2f')]()[_0x3112ec('0x95')](function(_0x1f96ff){const _0x458a15=_0x3112ec;for(let _0x1f0d4e=0x0;_0x1f0d4e<_0x1f96ff[_0x458a15('0xf3')];_0x1f0d4e++){_0x1f96ff[_0x1f0d4e][_0x458a15('0x125')](_0x458a15('0xf1'),_0x458a15('0x71'));}return _0x1f96ff;})),_0x14a9ea[_0x3112ec('0x60')](_0x5a5bad[_0x3112ec('0xdd')]()[_0x3112ec('0x95')](function(_0x51a315){const _0x582fb7=_0x3112ec;for(let _0x3f22dc=0x0;_0x3f22dc<_0x51a315[_0x582fb7('0xf3')];_0x3f22dc++){_0x51a315[_0x3f22dc][_0x582fb7('0x125')](_0x582fb7('0xf1'),_0x582fb7('0x12'));}return _0x51a315;})),_0x14a9ea[_0x3112ec('0x60')](_0x5a5bad[_0x3112ec('0x9a')]()['then'](function(_0x52cb52){const _0x3793a7=_0x3112ec;for(let _0x2189d3=0x0;_0x2189d3<_0x52cb52[_0x3793a7('0xf3')];_0x2189d3++){_0x52cb52[_0x2189d3][_0x3793a7('0x125')](_0x3793a7('0xf1'),_0x3793a7('0x150'));}return _0x52cb52;})),_0x14a9ea['push'](_0x5a5bad[_0x3112ec('0x5e')]()['then'](function(_0x4e7c9c){const _0x33e9ed=_0x3112ec;for(let _0x236514=0x0;_0x236514<_0x4e7c9c['length'];_0x236514++){_0x4e7c9c[_0x236514][_0x33e9ed('0x125')](_0x33e9ed('0xf1'),_0x33e9ed('0x139'));}return _0x4e7c9c;})),_0x14a9ea[_0x3112ec('0x60')](_0x5a5bad[_0x3112ec('0x45')]()['then'](function(_0x23c78b){const _0x17e28f=_0x3112ec;for(let _0x1a8cdd=0x0;_0x1a8cdd<_0x23c78b['length'];_0x1a8cdd++){_0x23c78b[_0x1a8cdd]['setDataValue'](_0x17e28f('0xf1'),_0x17e28f('0x63'));}return _0x23c78b;})),_0x14a9ea[_0x3112ec('0x60')](_0x5a5bad[_0x3112ec('0xae')]()[_0x3112ec('0x95')](function(_0x4cda88){const _0x102283=_0x3112ec;for(let _0x377755=0x0;_0x377755<_0x4cda88[_0x102283('0xf3')];_0x377755++){_0x4cda88[_0x377755][_0x102283('0x125')](_0x102283('0xf1'),'Openchannel');}return _0x4cda88;})),Promise[_0x3112ec('0xf2')](_0x14a9ea);})[_0x5ef6b5('0x95')](function(_0x163a84){const _0x1d7349=_0x5ef6b5,_0x57ef00=_[_0x1d7349('0xb9')](_0x163a84);return _0x14a9ea=[],db[_0x1d7349('0xc3')][_0x1d7349('0xb5')](function(_0x230b6a){const _0x73820f=_0x1d7349;for(let _0x24a88d=0x0;_0x24a88d<_0x57ef00[_0x73820f('0xf3')];_0x24a88d++){_0x14a9ea[_0x73820f('0x60')](_0x57ef00[_0x24a88d][_0x73820f('0x109')](_0x2bfcc1['id']),{'transaction':_0x230b6a});}return Promise[_0x73820f('0xf2')](_0x14a9ea)['then'](function(){const _0x55a7b4=_0x73820f;if(_0x2bfcc1['online'])return Promise[_0x55a7b4('0x68')](_[_0x55a7b4('0x7f')](_0x57ef00,function(_0x399e94){const _0x57a5a9=_0x55a7b4;return _0x399e94['getDataValue'](_0x57a5a9('0xf1'))===_0x57a5a9('0x153');}),function(_0x5087f8){const _0x7cc5ef=_0x55a7b4;return db[_0x7cc5ef('0x41')][_0x7cc5ef('0x154')]({'membername':_0x2bfcc1[_0x7cc5ef('0x7c')],'UserId':_0x2bfcc1['id'],'queue_name':_0x5087f8['name'],'VoiceQueueId':_0x5087f8['id'],'interface':_['isNil'](_0x2bfcc1['interface'])?util[_0x7cc5ef('0xbc')]('SIP/%s',_0x2bfcc1[_0x7cc5ef('0x7c')]):_0x2bfcc1['interface'],'paused':_0x2bfcc1[_0x7cc5ef('0x2c')]||![],'penalty':_0x2bfcc1[_0x7cc5ef('0x4e')]},{'transaction':_0x230b6a});});else return;})[_0x73820f('0x95')](function(){const _0x52fb23=_0x73820f;for(let _0x36a548=0x0;_0x36a548<_0x57ef00['length'];_0x36a548++){const _0x286a8a=_0x57ef00[_0x36a548][_0x52fb23('0x2a')](_0x52fb23('0xf1')),_0x525634=_0x286a8a+_0x52fb23('0x3e');socket[_0x52fb23('0x6')](_0x52fb23('0x120')+_0x286a8a+_0x52fb23('0xc0'),{'UserId':_0x2bfcc1['id'],[_0x525634]:_0x57ef00[_0x36a548]['id']});}});});});}});}})[_0x1eb1e4('0x95')](respondWithStatusCode(_0xccccd9,null))[_0x1eb1e4('0x159')](handleError(_0xccccd9,null));},exports[_0x2f8f80('0x158')]=function(_0x4e3d36,_0x1d72f4){const _0x291736=_0x2f8f80;return db[_0x291736('0xe4')][_0x291736('0x22')]({'where':{'id':_0x4e3d36[_0x291736('0x156')]['id']}})[_0x291736('0x95')](handleEntityNotFound(_0x1d72f4,null))[_0x291736('0x95')](function(_0xe1dbf9){const _0x4d7187=_0x291736;if(_0xe1dbf9){const _0x2708bc=_0xe1dbf9['get']({'plain':!![]}),_0x475a57=_0x4e3d36['query'][_0x4d7187('0xf5')];return _0xe1dbf9[_0x4d7187('0x158')](_0x475a57)[_0x4d7187('0x95')](function(){const _0x2f913f=_0x4d7187;for(let _0x4ff451=0x0;_0x4ff451<_0x475a57[_0x2f913f('0xf3')];_0x4ff451++){let _0x336542=[];db[_0x2f913f('0xa3')][_0x2f913f('0x22')]({'where':{'id':_0x475a57[_0x4ff451]}})[_0x2f913f('0x95')](function(_0x142348){const _0x4223b8=_0x2f913f;return _0x336542[_0x4223b8('0x60')](_0x142348[_0x4223b8('0x64')]()[_0x4223b8('0x95')](function(_0x9b17b2){const _0x494823=_0x4223b8;for(let _0x2f157a=0x0;_0x2f157a<_0x9b17b2[_0x494823('0xf3')];_0x2f157a++){_0x9b17b2[_0x2f157a][_0x494823('0x125')](_0x494823('0xf1'),'Voice');}return _0x9b17b2;})),_0x336542[_0x4223b8('0x60')](_0x142348['getChatQueues']()[_0x4223b8('0x95')](function(_0x48a663){const _0x118c2d=_0x4223b8;for(let _0x2e63d0=0x0;_0x2e63d0<_0x48a663[_0x118c2d('0xf3')];_0x2e63d0++){_0x48a663[_0x2e63d0][_0x118c2d('0x125')](_0x118c2d('0xf1'),_0x118c2d('0x71'));}return _0x48a663;})),_0x336542['push'](_0x142348[_0x4223b8('0xdd')]()['then'](function(_0x5d16f4){const _0x6e7668=_0x4223b8;for(let _0x39d98f=0x0;_0x39d98f<_0x5d16f4[_0x6e7668('0xf3')];_0x39d98f++){_0x5d16f4[_0x39d98f]['setDataValue']('channel','Mail');}return _0x5d16f4;})),_0x336542['push'](_0x142348[_0x4223b8('0x9a')]()['then'](function(_0x1b1bd3){const _0x42e605=_0x4223b8;for(let _0x4af57d=0x0;_0x4af57d<_0x1b1bd3[_0x42e605('0xf3')];_0x4af57d++){_0x1b1bd3[_0x4af57d]['setDataValue'](_0x42e605('0xf1'),_0x42e605('0x150'));}return _0x1b1bd3;})),_0x336542[_0x4223b8('0x60')](_0x142348[_0x4223b8('0x5e')]()[_0x4223b8('0x95')](function(_0x3500b0){const _0x3a27fb=_0x4223b8;for(let _0x25862a=0x0;_0x25862a<_0x3500b0[_0x3a27fb('0xf3')];_0x25862a++){_0x3500b0[_0x25862a][_0x3a27fb('0x125')]('channel',_0x3a27fb('0x139'));}return _0x3500b0;})),_0x336542[_0x4223b8('0x60')](_0x142348[_0x4223b8('0x45')]()[_0x4223b8('0x95')](function(_0x1c6dc0){const _0x3af0f7=_0x4223b8;for(let _0xf4f487=0x0;_0xf4f487<_0x1c6dc0[_0x3af0f7('0xf3')];_0xf4f487++){_0x1c6dc0[_0xf4f487][_0x3af0f7('0x125')](_0x3af0f7('0xf1'),_0x3af0f7('0x63'));}return _0x1c6dc0;})),_0x336542[_0x4223b8('0x60')](_0x142348[_0x4223b8('0xae')]()[_0x4223b8('0x95')](function(_0x12c78c){const _0x3ae3bb=_0x4223b8;for(let _0x782c17=0x0;_0x782c17<_0x12c78c['length'];_0x782c17++){_0x12c78c[_0x782c17][_0x3ae3bb('0x125')](_0x3ae3bb('0xf1'),_0x3ae3bb('0x142'));}return _0x12c78c;})),Promise[_0x4223b8('0xf2')](_0x336542);})['then'](function(_0x57c8d7){const _0x81ece8=_0x2f913f,_0x403ccd=_[_0x81ece8('0xb9')](_0x57c8d7);return _0x336542=[],db[_0x81ece8('0xc3')][_0x81ece8('0xb5')](function(_0x54ed44){const _0x5f4d5c=_0x81ece8;for(let _0x3b9379=0x0;_0x3b9379<_0x403ccd[_0x5f4d5c('0xf3')];_0x3b9379++){_0x336542['push'](_0x403ccd[_0x3b9379][_0x5f4d5c('0x91')](_0x2708bc['id']),{'transaction':_0x54ed44});}return Promise[_0x5f4d5c('0xf2')](_0x336542)[_0x5f4d5c('0x95')](function(){const _0x2bda92=_0x5f4d5c;if(_0x2708bc[_0x2bda92('0xd7')])return Promise['each'](_[_0x2bda92('0x7f')](_0x403ccd,function(_0x27e53a){const _0x4a5035=_0x2bda92;return _0x27e53a['getDataValue']('channel')===_0x4a5035('0x153');}),function(_0x53e297){const _0x112078=_0x2bda92;return db[_0x112078('0x41')]['destroy']({'where':{'VoiceQueueId':_0x53e297['id'],'UserId':_0x2708bc['id']},'transaction':_0x54ed44});});else return;})['then'](function(){const _0x434bf6=_0x5f4d5c;for(let _0x4d5cb3=0x0;_0x4d5cb3<_0x403ccd[_0x434bf6('0xf3')];_0x4d5cb3++){const _0x5c2515=_0x403ccd[_0x4d5cb3]['getDataValue'](_0x434bf6('0xf1')),_0x173067=_0x5c2515+_0x434bf6('0x3e');socket[_0x434bf6('0x6')](_0x434bf6('0x120')+_0x5c2515+'Queue:remove',{'UserId':_0x2708bc['id'],[_0x173067]:_0x403ccd[_0x4d5cb3]['id']});}});});});}});}})[_0x291736('0x95')](respondWithStatusCode(_0x1d72f4,null))[_0x291736('0x159')](handleError(_0x1d72f4,null));},exports[_0x2f8f80('0x157')]=function(_0x191e9a,_0x3a8bfd){const _0x2792a3=_0x2f8f80;let _0x13f47b={};const _0x3e907e={};let _0xaf0bf1,_0x2046cb;return db[_0x2792a3('0xe4')][_0x2792a3('0x22')]({'where':{'id':_0x191e9a[_0x2792a3('0x156')]['id']}})[_0x2792a3('0x95')](handleEntityNotFound(_0x3a8bfd,null))[_0x2792a3('0x95')](function(_0x2160ea){const _0x5c4781=_0x2792a3;if(_0x2160ea)return _0xaf0bf1=_0x2160ea,_0x3e907e['model']=_[_0x5c4781('0xfc')](db['CmList'][_0x5c4781('0xa1')]),_0x3e907e[_0x5c4781('0x140')]=_['keys'](_0x191e9a[_0x5c4781('0x140')]),_0x3e907e[_0x5c4781('0xa8')]=_[_0x5c4781('0x9c')](_0x3e907e['model'],_0x3e907e['query']),_0x13f47b[_0x5c4781('0x86')]=_[_0x5c4781('0x9c')](_0x3e907e[_0x5c4781('0x14')],qs[_0x5c4781('0x5a')](_0x191e9a['query']['fields'])),_0x13f47b['attributes']=_0x13f47b['attributes'][_0x5c4781('0xf3')]?_0x13f47b[_0x5c4781('0x86')]:_0x3e907e[_0x5c4781('0x14')],_0x13f47b[_0x5c4781('0x14c')]=qs[_0x5c4781('0x1')](_0x191e9a['query'][_0x5c4781('0x1')]),_0x13f47b[_0x5c4781('0x12e')]=qs['filters'](_['pick'](_0x191e9a[_0x5c4781('0x140')],_0x3e907e[_0x5c4781('0xa8')])),_0x191e9a[_0x5c4781('0x140')][_0x5c4781('0x7f')]&&(_0x13f47b['where']=_[_0x5c4781('0x19')](_0x13f47b[_0x5c4781('0x12e')],{[Op['or']]:_[_0x5c4781('0xcf')](_0x13f47b[_0x5c4781('0x86')],function(_0x58affb){const _0x3e72c5=_0x5c4781,_0x394ceb={};return _0x394ceb[_0x58affb]={[Op[_0x3e72c5('0xc2')]]:'%'+_0x191e9a[_0x3e72c5('0x140')]['filter']+'%'},_0x394ceb;})})),_0x13f47b=_['merge']({},_0x13f47b,_0x191e9a['options']),_0xaf0bf1[_0x5c4781('0x157')](_0x13f47b);})[_0x2792a3('0x95')](function(_0x514a88){const _0xd36923=_0x2792a3;if(_0x514a88)return _0x2046cb=_0x514a88[_0xd36923('0xf3')],typeof _0x191e9a[_0xd36923('0x140')][_0xd36923('0x47')]===_0xd36923('0xac')&&(_0x13f47b[_0xd36923('0x136')]=qs[_0xd36923('0x136')](_0x191e9a[_0xd36923('0x140')][_0xd36923('0x136')]),_0x13f47b[_0xd36923('0x116')]=qs['offset'](_0x191e9a[_0xd36923('0x140')][_0xd36923('0x116')])),_0xaf0bf1[_0xd36923('0x157')](_0x13f47b);})['then'](function(_0x20e2a5){if(_0x20e2a5)return _0x20e2a5?{'count':_0x2046cb,'rows':_0x20e2a5}:null;})[_0x2792a3('0x95')](respondWithResult(_0x3a8bfd,null))['catch'](handleError(_0x3a8bfd,null));},exports['getAgents']=function(_0x37fc2a,_0x19202f){const _0x24af69=_0x2f8f80;let _0x1b7c41={};const _0x38c1f3={};let _0x21b6ce;return db[_0x24af69('0xe4')][_0x24af69('0x22')]({'where':{'id':_0x37fc2a[_0x24af69('0x156')]['id']}})['then'](handleEntityNotFound(_0x19202f,null))['then'](function(_0x4529bb){const _0x5a858d=_0x24af69;if(_0x4529bb)return _0x21b6ce=_0x4529bb,_0x38c1f3['model']=_[_0x5a858d('0xfc')](db[_0x5a858d('0xe4')][_0x5a858d('0xa1')]),_0x38c1f3['query']=_[_0x5a858d('0xfc')](_0x37fc2a['query']),_0x38c1f3[_0x5a858d('0xa8')]=_[_0x5a858d('0x9c')](_0x38c1f3[_0x5a858d('0x14')],_0x38c1f3['query']),_0x1b7c41[_0x5a858d('0x86')]=_[_0x5a858d('0x9c')](_0x38c1f3[_0x5a858d('0x14')],qs[_0x5a858d('0x5a')](_0x37fc2a[_0x5a858d('0x140')][_0x5a858d('0x5a')])),_0x1b7c41[_0x5a858d('0x86')]=_0x1b7c41[_0x5a858d('0x86')][_0x5a858d('0xf3')]?_0x1b7c41[_0x5a858d('0x86')]:_0x38c1f3[_0x5a858d('0x14')],_0x1b7c41[_0x5a858d('0x14c')]=qs[_0x5a858d('0x1')](_0x37fc2a[_0x5a858d('0x140')][_0x5a858d('0x1')]),_0x1b7c41[_0x5a858d('0x12e')]=qs[_0x5a858d('0xa8')](_[_0x5a858d('0x105')](_0x37fc2a[_0x5a858d('0x140')],_0x38c1f3[_0x5a858d('0xa8')])),_0x37fc2a[_0x5a858d('0x140')][_0x5a858d('0x7f')]&&(_0x1b7c41[_0x5a858d('0x12e')]=_[_0x5a858d('0x19')](_0x1b7c41['where'],{[Op['or']]:_[_0x5a858d('0xcf')](_0x1b7c41[_0x5a858d('0x86')],function(_0x5a676a){const _0x1381ea=_0x5a858d,_0xc7b286={};return _0xc7b286[_0x5a676a]={[Op['like']]:'%'+_0x37fc2a['query'][_0x1381ea('0x7f')]+'%'},_0xc7b286;})})),_0x1b7c41[_0x5a858d('0x14')]=db[_0x5a858d('0xe4')],_0x1b7c41['as']=_0x5a858d('0x122'),_0x1b7c41=_[_0x5a858d('0x19')]({},_0x1b7c41,_0x37fc2a[_0x5a858d('0x145')]),_0x21b6ce[_0x5a858d('0x64')]({'include':[_0x1b7c41]});})['then'](function(_0x20c2b5){const _0x3ea803=_0x24af69;if(_0x20c2b5){let _0x37a7ae={};const _0x263f48=[];for(let _0x151c9f=0x0;_0x151c9f<_0x20c2b5[_0x3ea803('0xf3')];_0x151c9f+=0x1){for(let _0x125e1e=0x0,_0x9899fd;_0x125e1e<_0x20c2b5[_0x151c9f][_0x3ea803('0x122')][_0x3ea803('0xf3')];_0x125e1e+=0x1){_0x9899fd=_0x20c2b5[_0x151c9f]['Agents'][_0x125e1e]['get']({'plain':!![]}),_0x37a7ae[_0x9899fd['id']]=_0x9899fd;}}_0x37a7ae=_[_0x3ea803('0xd3')](_0x37a7ae);for(let _0x4ed809=qs['offset'](_0x37fc2a['query'][_0x3ea803('0x116')]);_0x4ed809<_0x37a7ae[_0x3ea803('0xf3')]&&_0x263f48[_0x3ea803('0xf3')]=_0x3130a2?(_0x495e89=_0x3130a2,_0x12dabd=0xc8):_0x12dabd=0xce,_0x2377f3[_0x406044('0x5d')](_0x12dabd),_0x2377f3[_0x406044('0xe6')](_0x406044('0x27'),_0x1d372a+'-'+_0x495e89+'/'+_0x3130a2)[_0x406044('0x133')](_0x16761f);}return null;};}function saveUpdates(_0x4bc834){return function(_0x29656c){const _0x35ea1d=a648_0x1757;if(_0x29656c)return _0x29656c[_0x35ea1d('0x57')](_0x4bc834)[_0x35ea1d('0x94')](function(_0x19e863){return _0x19e863;});return null;};}function removeEntity(_0x393bdb){return function(_0x51343f){const _0x277d9f=a648_0x1757;if(_0x51343f)return _0x51343f[_0x277d9f('0x5c')]()[_0x277d9f('0x94')](function(){const _0x45b935=_0x277d9f,_0xa80722=_0x51343f[_0x45b935('0x67')]({'plain':!![]});if(_0xa80722[_0x45b935('0x65')]===_0x45b935('0x13c'))return;const _0x2bb61f=[{'name':_0x45b935('0x5e'),'value':_0x45b935('0x113'),'ignore':!![]},{'name':_0x45b935('0xae'),'value':_0x45b935('0xc1'),'ignore':![]},{'name':_0x45b935('0xa6'),'value':_0x45b935('0x82'),'ignore':![]}],_0x1f0c3e=_(_0x2bb61f)[_0x45b935('0x1a')](_0x45b935('0x7c'))[_0x45b935('0x140')](_0x45b935('0x69'))[_0x45b935('0x69')]();if(_['includes'](_0x1f0c3e,_0xa80722[_0x45b935('0x65')]))return;const _0xf41488=_[_0x45b935('0x10d')](_0x2bb61f,[_0x45b935('0x69'),_0xa80722[_0x45b935('0x65')]])['name'];return db[_0x45b935('0x62')][_0x45b935('0x5c')]({'where':{'type':_0xf41488,'resourceId':_0xa80722['id']}})[_0x45b935('0x94')](function(){return _0x51343f;});})['then'](function(){const _0x5ac375=_0x277d9f;_0x393bdb[_0x5ac375('0x5d')](0xcc)[_0x5ac375('0x84')]();});};}function handleEntityNotFound(_0x2f7c45){return function(_0x590310){return!_0x590310&&_0x2f7c45['sendStatus'](0x194),_0x590310;};}function handleError(_0x33a58b,_0x31136b){return _0x31136b=_0x31136b||0x1f4,function(_0x302e6f){const _0x1c948f=a648_0x1757;logger['error'](_0x302e6f[_0x1c948f('0x107')]),_0x302e6f[_0x1c948f('0x73')]&&delete _0x302e6f[_0x1c948f('0x73')],_0x33a58b[_0x1c948f('0x5d')](_0x31136b)['send'](_0x302e6f);};}function validateUser(_0x156dc9){return new Promise(function(_0x3ee756,_0x35849e){const _0x4b8f54=a648_0x1757;if(_0x156dc9[_0x4b8f54('0x4c')])return _0x3ee756(_0x156dc9);return db['Setting']['findByPk'](0x1)[_0x4b8f54('0x94')](function(_0x9dcc80){const _0x3cfbb4=_0x4b8f54;if(_0x9dcc80['securePassword'])authService[_0x3cfbb4('0x7f')](_0x156dc9['password']);db[_0x3cfbb4('0x7a')][_0x3cfbb4('0x100')](_0x3cfbb4('0x4c'))[_0x3cfbb4('0x94')](function(_0x3ae891){const _0x898b34=_0x3cfbb4;if(_[_0x898b34('0xaa')](_0x3ae891)){_0x156dc9['internal']=_0x9dcc80['min_internal']||0x1;return;}if(_['isNil'](_0x9dcc80[_0x898b34('0x142')])||_0x9dcc80['min_internal']===_0x3ae891){_0x156dc9[_0x898b34('0x4c')]=_0x3ae891+0x1;return;}if(_0x9dcc80[_0x898b34('0x142')]>_0x3ae891){_0x156dc9[_0x898b34('0x4c')]=_0x9dcc80[_0x898b34('0x142')];return;}return db[_0x898b34('0xb3')][_0x898b34('0x71')](_0x898b34('0x13d'),{'type':QueryTypes[_0x898b34('0x114')]})[_0x898b34('0x94')](function(_0x50da19){const _0x330c55=_0x898b34;if(_0x50da19&&_0x50da19[_0x330c55('0x32')])for(let _0x266183=0x0,_0x1e2af0=_0x50da19[_0x330c55('0x32')];_0x266183<_0x1e2af0&&_['isNil'](_0x156dc9['internal']);_0x266183++){if(_0x9dcc80[_0x330c55('0x142')]<=_0x50da19[_0x266183][_0x330c55('0x15')])_0x156dc9[_0x330c55('0x4c')]=_0x50da19[_0x266183]['from'];else _0x9dcc80[_0x330c55('0x142')]>_0x50da19[_0x266183][_0x330c55('0x15')]&&_0x9dcc80[_0x330c55('0x142')]<=_0x50da19[_0x266183]['to']&&(_0x156dc9[_0x330c55('0x4c')]=_0x9dcc80[_0x330c55('0x142')]);}return _['isNil'](_0x156dc9['internal'])&&(_0x156dc9[_0x330c55('0x4c')]=_0x3ae891+0x1),_0x3ee756(_0x156dc9);});});})[_0x4b8f54('0x2e')](function(_0x40cfc5){_0x35849e(_0x40cfc5);});});}function updateUser(_0x39df59){return new Promise(function(_0xb6642a,_0x1da67b){const _0x167137=a648_0x1757;try{_0x39df59[_0x167137('0x112')]&&(_0x39df59[_0x167137('0x86')]=_0x39df59[_0x167137('0x4c')],_0x39df59[_0x167137('0xce')]={'mailbox':_0x39df59[_0x167137('0x4c')],'password':_0x39df59[_0x167137('0xa4')],'fullname':_0x39df59[_0x167137('0xc')],'email':_0x39df59[_0x167137('0x26')]});if(_0x39df59[_0x167137('0x65')]===_0x167137('0xc1')){if(!_0x39df59[_0x167137('0xfc')])_0x39df59['permissions']=[_0x167137('0x28'),'102',_0x167137('0x13'),_0x167137('0xac'),_0x167137('0x79'),_0x167137('0x1b'),_0x167137('0x137'),_0x167137('0x4a'),_0x167137('0x8d'),_0x167137('0x60'),'109',_0x167137('0xad'),'111',_0x167137('0x54')];}_0xb6642a(_0x39df59);}catch(_0x3bdd46){_0x1da67b(_0x3bdd46);}});}exports[_0x2cfc45('0x154')]=function(_0x356fa5,_0x26fd07){const _0x4cc0c3=_0x2cfc45;let _0x3ba106={};const _0xba5f43={},_0x5b153c={'count':0x0,'rows':[]},_0x27bf59=_['map'](db[_0x4cc0c3('0x7a')]['rawAttributes'],function(_0x30e1cb){const _0x5bc293=_0x4cc0c3;return{'name':_0x30e1cb[_0x5bc293('0xa8')],'type':_0x30e1cb[_0x5bc293('0x98')][_0x5bc293('0x58')]};});_0xba5f43[_0x4cc0c3('0x101')]=_[_0x4cc0c3('0x12b')](_[_0x4cc0c3('0x140')](_0x27bf59,_0x4cc0c3('0x73')),[_0x4cc0c3('0xa4'),_0x4cc0c3('0xf9')]),_0xba5f43['query']=_[_0x4cc0c3('0x111')](_0x356fa5[_0x4cc0c3('0x71')]),_0xba5f43['filters']=_[_0x4cc0c3('0x81')](_0xba5f43['model'],_0xba5f43['query']),_0x3ba106[_0x4cc0c3('0x6c')]=_[_0x4cc0c3('0x81')](_0xba5f43['model'],qs['fields'](_0x356fa5['query'][_0x4cc0c3('0x3')])),_0x3ba106[_0x4cc0c3('0x6c')]=_0x3ba106['attributes'][_0x4cc0c3('0x32')]?_0x3ba106[_0x4cc0c3('0x6c')]:_0xba5f43[_0x4cc0c3('0x101')];typeof _0x356fa5['query']['nolimit']===_0x4cc0c3('0xe2')&&(_0x3ba106['limit']=qs[_0x4cc0c3('0x48')](_0x356fa5['query']['limit']),_0x3ba106[_0x4cc0c3('0x145')]=qs[_0x4cc0c3('0x145')](_0x356fa5[_0x4cc0c3('0x71')][_0x4cc0c3('0x145')]));_0x3ba106[_0x4cc0c3('0x15b')]=qs[_0x4cc0c3('0xeb')](_0x356fa5[_0x4cc0c3('0x71')][_0x4cc0c3('0xeb')]),_0x3ba106[_0x4cc0c3('0xf5')]=qs[_0x4cc0c3('0xb2')](_[_0x4cc0c3('0x6')](_0x356fa5['query'],_0xba5f43[_0x4cc0c3('0xb2')]),_0x27bf59);_0x356fa5[_0x4cc0c3('0x71')][_0x4cc0c3('0x1a')]&&(_0x3ba106[_0x4cc0c3('0xf5')]=_[_0x4cc0c3('0x14a')](_0x3ba106[_0x4cc0c3('0xf5')],{[Op['or']]:_['map'](_0x27bf59,function(_0x9a21bd){const _0x3faeb1=_0x4cc0c3;if(_0x9a21bd['type']!=='VIRTUAL')return where(fn(_0x3faeb1('0xe7'),col(_0x9a21bd[_0x3faeb1('0x73')])),{'$like':fn(_0x3faeb1('0xe7'),'%'+_0x356fa5['query'][_0x3faeb1('0x1a')]+'%')});})}));_0x3ba106=_['merge']({},_0x3ba106,_0x356fa5[_0x4cc0c3('0x36')]);const _0x33011d={'where':_0x3ba106[_0x4cc0c3('0xf5')]};return db['User']['count'](_0x33011d)[_0x4cc0c3('0x94')](function(_0x115feb){const _0x3320ac=_0x4cc0c3;return _0x5b153c[_0x3320ac('0x158')]=_0x115feb,typeof _0x356fa5[_0x3320ac('0x71')]['includeAll']!==_0x3320ac('0xe2')&&(_0x3ba106['include']=[{'all':!![]}]),db[_0x3320ac('0x7a')][_0x3320ac('0x4')](_0x3ba106);})[_0x4cc0c3('0x94')](function(_0x249d60){const _0x340316=_0x4cc0c3;return _0x5b153c[_0x340316('0x23')]=_0x249d60,_0x5b153c;})[_0x4cc0c3('0x94')](respondWithFilteredResult(_0x26fd07,_0x3ba106))['catch'](handleError(_0x26fd07,null));},exports[_0x2cfc45('0xee')]=function(_0x330930,_0x121e77){const _0x1383c0=_0x2cfc45;let _0x444032={'raw':![],'where':{'id':_0x330930[_0x1383c0('0x102')]['id']}};const _0xfe15af={};return _0xfe15af[_0x1383c0('0x101')]=_[_0x1383c0('0x12b')](_[_0x1383c0('0x111')](db[_0x1383c0('0x7a')]['rawAttributes']),[_0x1383c0('0xa4'),_0x1383c0('0xf9')]),_0xfe15af[_0x1383c0('0x71')]=_[_0x1383c0('0x111')](_0x330930[_0x1383c0('0x71')]),_0xfe15af[_0x1383c0('0xb2')]=_[_0x1383c0('0x81')](_0xfe15af['model'],_0xfe15af[_0x1383c0('0x71')]),_0x444032[_0x1383c0('0x6c')]=_[_0x1383c0('0x81')](_0xfe15af[_0x1383c0('0x101')],qs['fields'](_0x330930[_0x1383c0('0x71')][_0x1383c0('0x3')])),_0x444032[_0x1383c0('0x6c')]=_0x444032['attributes'][_0x1383c0('0x32')]?_0x444032[_0x1383c0('0x6c')]:_0xfe15af[_0x1383c0('0x101')],_0x330930[_0x1383c0('0x71')][_0x1383c0('0x43')]&&(_0x444032[_0x1383c0('0xe3')]=[{'all':!![]}]),_0x444032=_['merge']({},_0x444032,_0x330930['options']),db['User'][_0x1383c0('0x1d')](_0x444032)[_0x1383c0('0x94')](handleEntityNotFound(_0x121e77,null))[_0x1383c0('0x94')](respondWithResult(_0x121e77,null))[_0x1383c0('0x2e')](handleError(_0x121e77,null));},exports['bulkCreate']=function(_0x4769de,_0x53f25a){const _0x2308aa=_0x2cfc45,_0x4c86f5=_0x4769de[_0x2308aa('0xda')];let _0x20d59b=[];if(_0x4769de[_0x2308aa('0x113')][_0x2308aa('0x65')]===_0x2308aa('0xc1'))throw new Error('Unauthorized');if(_['some'](_0x4c86f5,[_0x2308aa('0x65'),_0x2308aa('0x113')])&&_0x4769de['user'][_0x2308aa('0x65')]!=='admin')throw new Error(_0x2308aa('0x119'));if(_['some'](_0x4c86f5,[_0x2308aa('0x65'),_0x2308aa('0x13c')])&&_0x4769de['user'][_0x2308aa('0x65')]!=='admin')throw new Error('Unauthorized.\x20You\x20must\x20be\x20an\x20administrator\x20in\x20order\x20to\x20create\x20an\x20administrator');return licenseUtil[_0x2308aa('0xa')](_0x4c86f5)['then'](function(){return validateUser(_0x4c86f5[0x0]);})[_0x2308aa('0x94')](function(){const _0x462523=_0x2308aa;for(let _0x3484ec=0x1;_0x3484ec<_0x4c86f5[_0x462523('0x32')];_0x3484ec++){const _0x376e30=_0x4c86f5[_0x3484ec-0x1][_0x462523('0x4c')];if(!_0x4c86f5[_0x3484ec]['internal'])_0x4c86f5[_0x3484ec][_0x462523('0x4c')]=_0x376e30+0x1;_0x20d59b[_0x462523('0xc4')](validateUser(_0x4c86f5[_0x3484ec]));}return Promise[_0x462523('0xd9')](_0x20d59b);})[_0x2308aa('0x94')](function(){const _0x153723=_0x2308aa;_0x20d59b=[];for(let _0x1c29d1=0x0;_0x1c29d1<_0x4c86f5['length'];_0x1c29d1++){_0x20d59b[_0x153723('0xc4')](updateUser(_0x4c86f5[_0x1c29d1]));}return Promise['all'](_0x20d59b);})[_0x2308aa('0x94')](function(){const _0x460f2a=_0x2308aa;return _0x20d59b=_0x4c86f5[_0x460f2a('0x140')](_0xd7c550=>{const _0x1607e0=_0x460f2a;return db[_0x1607e0('0x7a')][_0x1607e0('0x144')](_0xd7c550,{'include':[{'model':db[_0x1607e0('0xce')],'as':_0x1607e0('0xce')}]})[_0x1607e0('0x94')](function(_0x412138){return _0xd7c550['id']=_0x412138['id'],_0xd7c550;});}),Promise['all'](_0x20d59b);})[_0x2308aa('0x94')](function(_0x45fe95){const _0xbe5a4f=_0x2308aa;if(_0x4769de[_0xbe5a4f('0xda')][_0xbe5a4f('0x65')]==='user')return _0x45fe95;if(_0x4769de[_0xbe5a4f('0x113')][_0xbe5a4f('0x65')]!==_0xbe5a4f('0x113'))return _0x45fe95;const _0x2df79b=_[_0xbe5a4f('0x56')](_0x45fe95,function(_0x53fe98){const _0x25093b=_0xbe5a4f;return _0x53fe98[_0x25093b('0x65')]===_0x25093b('0xc1')||_0x53fe98['role']===_0x25093b('0x82');});if(!_0x2df79b)return _0x45fe95;return db['UserProfileSection'][_0xbe5a4f('0x4')]({'where':{'name':{[Op['or']]:[_0xbe5a4f('0xae'),_0xbe5a4f('0xa6')]},'userProfileId':_0x4769de['user'][_0xbe5a4f('0x59')]},'raw':!![]})[_0xbe5a4f('0x94')](function(_0x55d8d5){const _0x416452=_0xbe5a4f;if(_[_0x416452('0x10a')](_0x55d8d5)||!_[_0x416452('0x56')](_0x55d8d5,['autoAssociation',0x0]))return _0x45fe95;_0x20d59b=[];const _0x1ebdf2=_(_0x55d8d5)[_0x416452('0x140')](function(_0x22f074){const _0x2e9293=_0x416452;if(_0x22f074['autoAssociation']===0x1)return;return _0x22f074[_0x2e9293('0x73')]===_0x2e9293('0xae')?_0x2e9293('0xc1'):_0x2e9293('0x82');})[_0x416452('0x3d')]()[_0x416452('0x69')]();for(let _0x3fb83f=0x0;_0x3fb83f<_0x45fe95['length'];_0x3fb83f++){if(!_['includes'](_0x1ebdf2,_0x45fe95[_0x3fb83f][_0x416452('0x65')]))return;const _0x4f98b0=_0x45fe95[_0x3fb83f]['role']===_0x416452('0xc1')?_0x416452('0xae'):'Telephones';_0x20d59b[_0x416452('0xc4')](db[_0x416452('0x62')][_0x416452('0x144')]({'name':_0x45fe95[_0x3fb83f]['name'],'resourceId':_0x45fe95[_0x3fb83f]['id'],'type':_0x4f98b0,'sectionId':_[_0x416452('0x10d')](_0x55d8d5,[_0x416452('0x73'),_0x4f98b0])['id']},{}));}return Promise[_0x416452('0xd9')](_0x20d59b);});})[_0x2308aa('0x94')](respondWithResult(_0x53f25a,0xc9))['catch'](handleError(_0x53f25a,null));},exports['update']=function(_0x18837c,_0x5ed62b){const _0x3b894c=_0x2cfc45;return _0x18837c[_0x3b894c('0xda')]['id']&&delete _0x18837c['body']['id'],delete _0x18837c['body'][_0x3b894c('0x65')],db[_0x3b894c('0x7a')][_0x3b894c('0x1d')]({'where':{'id':_0x18837c[_0x3b894c('0x102')]['id']}})[_0x3b894c('0x94')](handleEntityNotFound(_0x5ed62b,null))['then'](saveUpdates(_0x18837c['body'],null))[_0x3b894c('0x94')](respondWithResult(_0x5ed62b,null))['catch'](handleError(_0x5ed62b,null));},exports[_0x2cfc45('0xf7')]=function(_0x34eb7e,_0x59d018){const _0x5444af=_0x2cfc45;return db[_0x5444af('0x7a')][_0x5444af('0xf7')]()[_0x5444af('0x94')](respondWithResult(_0x59d018,null))['catch'](handleError(_0x59d018,null));},exports['addContacts']=function(_0x397d3f,_0x4abca5){const _0x113b06=_0x2cfc45;return db[_0x113b06('0x7a')][_0x113b06('0x1d')]({'where':{'id':_0x397d3f[_0x113b06('0x102')]['id']}})[_0x113b06('0x94')](handleEntityNotFound(_0x4abca5,null))[_0x113b06('0x94')](function(_0x2fe49b){const _0x32d2d0=_0x113b06;if(_0x2fe49b)return _0x2fe49b['addContacts'](_0x397d3f[_0x32d2d0('0xda')]['ids'],{'through':_[_0x32d2d0('0xbd')](_0x397d3f[_0x32d2d0('0xda')],[_0x32d2d0('0x157'),'id'])});})[_0x113b06('0x94')](respondWithResult(_0x4abca5,null))[_0x113b06('0x2e')](handleError(_0x4abca5,null));},exports[_0x2cfc45('0x144')]=function(_0x388df6,_0x2568eb){const _0x17ec16=_0x2cfc45;if(_0x388df6[_0x17ec16('0x113')][_0x17ec16('0x65')]===_0x17ec16('0xc1'))throw new Error(_0x17ec16('0x85'));if(_0x388df6[_0x17ec16('0xda')][_0x17ec16('0x65')]===_0x17ec16('0x113')&&_0x388df6[_0x17ec16('0x113')][_0x17ec16('0x65')]!==_0x17ec16('0x13c'))throw new Error(_0x17ec16('0x119'));if(_0x388df6[_0x17ec16('0xda')][_0x17ec16('0x65')]==='admin'&&_0x388df6['user'][_0x17ec16('0x65')]!==_0x17ec16('0x13c'))throw new Error(_0x17ec16('0x104'));return licenseUtil[_0x17ec16('0xa')]([_0x388df6[_0x17ec16('0xda')]])['then'](function(){const _0x45aca2=_0x17ec16;return validateUser(_0x388df6[_0x45aca2('0xda')]);})['then'](function(_0x523b84){const _0x21c769=_0x17ec16;return updateUser(_0x523b84)[_0x21c769('0x94')](function(_0x874eb6){const _0x45b216=_0x21c769;return _0x874eb6[_0x45b216('0x65')]===_0x45b216('0x13c')&&(_0x874eb6[_0x45b216('0x97')]=_0x388df6[_0x45b216('0x113')][_0x45b216('0x97')],delete _0x874eb6[_0x45b216('0x59')]),_0x874eb6;});})[_0x17ec16('0x94')](function(_0x652d2b){const _0x2f7193=_0x17ec16;return db[_0x2f7193('0x7a')]['create'](_0x652d2b,{'include':[{'model':db[_0x2f7193('0xce')],'as':_0x2f7193('0xce')}]});})['then'](function(_0x32d591){const _0x9de49a=_0x17ec16;if(_0x388df6['body']['role']===_0x9de49a('0x113'))return _0x32d591;if(_0x388df6[_0x9de49a('0x113')][_0x9de49a('0x65')]!==_0x9de49a('0x113'))return _0x32d591;return db[_0x9de49a('0xe8')][_0x9de49a('0x1d')]({'where':{'name':_0x32d591[_0x9de49a('0x65')]==='agent'?_0x9de49a('0xae'):'Telephones','userProfileId':_0x388df6[_0x9de49a('0x113')][_0x9de49a('0x59')]},'raw':!![]})[_0x9de49a('0x94')](function(_0x21c5a5){const _0xa3101a=_0x9de49a;if(!_0x21c5a5||_0x21c5a5[_0xa3101a('0x117')]!=0x0)return _0x32d591;return db[_0xa3101a('0x62')]['create']({'name':_0x32d591['name'],'resourceId':_0x32d591['id'],'type':_0x21c5a5[_0xa3101a('0x73')],'sectionId':_0x21c5a5['id']},{})['then'](function(){return _0x32d591;});})[_0x9de49a('0x2e')](function(_0xf8ef67){const _0x372177=_0x9de49a;logger['error'](_0x372177('0x146'),_0xf8ef67);throw _0xf8ef67;});})[_0x17ec16('0x94')](respondWithResult(_0x2568eb,0xc9))[_0x17ec16('0x2e')](handleError(_0x2568eb,null));},exports[_0x2cfc45('0xdb')]=function(_0x1b643b,_0x245171){const _0xbfb275=_0x2cfc45;if(_0x1b643b[_0xbfb275('0xda')]['id'])delete _0x1b643b[_0xbfb275('0xda')]['id'];return db['User'][_0xbfb275('0x1d')]({'where':{'id':_0x1b643b[_0xbfb275('0x102')]['id']}})[_0xbfb275('0x94')](function(_0x3e58f9){const _0x2d8d81=_0xbfb275;if(!_0x3e58f9)return null;if(_0x3e58f9['id']===_0x1b643b[_0x2d8d81('0x113')]['id']){if(!_0x1b643b[_0x2d8d81('0xda')]['oldPassword']||!_0x1b643b[_0x2d8d81('0xda')][_0x2d8d81('0x7')])throw new ValidationError(_0x2d8d81('0xfa'));if(!_0x3e58f9[_0x2d8d81('0x50')](_0x1b643b[_0x2d8d81('0xda')][_0x2d8d81('0xf6')]))throw new ValidationError('Wrong\x20credentials');if(_0x1b643b[_0x2d8d81('0xda')][_0x2d8d81('0xf6')]===_0x1b643b[_0x2d8d81('0xda')][_0x2d8d81('0x7')])throw new ValidationError(_0x2d8d81('0x120'));}else{if(_0x1b643b[_0x2d8d81('0x113')]['role']===_0x2d8d81('0x13c')){if(!_0x1b643b[_0x2d8d81('0xda')][_0x2d8d81('0x7')])throw new ValidationError(_0x2d8d81('0x5b'));}else{if(_0x1b643b[_0x2d8d81('0x113')][_0x2d8d81('0x65')]===_0x2d8d81('0x113')){if(!_0x1b643b[_0x2d8d81('0xda')]['newPassword'])throw new ValidationError('Invalid\x20body\x20format.\x20Use\x20newPassword');if(_0x3e58f9[_0x2d8d81('0x65')]!==_0x2d8d81('0xc1'))throw new ValidationError(_0x2d8d81('0x85'));}else throw new ValidationError(_0x2d8d81('0x85'));}}return _0x3e58f9;})[_0xbfb275('0x94')](handleEntityNotFound(_0x245171,null))[_0xbfb275('0x94')](function(_0x4db5e0){const _0x579335=_0xbfb275;return db[_0x579335('0x161')][_0x579335('0x1d')]({'attributes':['id',_0x579335('0x31'),'enforcePasswordHistory','passwordHistoryLimit']})[_0x579335('0x94')](function(_0x1068ee){const _0x397081=_0x579335;if(_0x1068ee[_0x397081('0x31')])authService[_0x397081('0x7f')](_0x1b643b[_0x397081('0xda')]['newPassword']);if(!_0x1068ee['enforcePasswordHistory']||!_0x4db5e0[_0x397081('0xa2')])return _0x4db5e0;return authService[_0x397081('0xba')](_0x1b643b[_0x397081('0xda')][_0x397081('0x7')],_0x4db5e0[_0x397081('0xa2')],_0x1068ee['passwordHistoryLimit']),_0x4db5e0;})[_0x579335('0x94')](saveUpdates({'password':_0x1b643b[_0x579335('0xda')]['newPassword'],'passwordResetAt':_0x1b643b[_0x579335('0x113')]['id']==_0x1b643b[_0x579335('0x102')]['id']?moment():null,'previousPasswords':authService['updatePasswordsHistory'](_0x1b643b[_0x579335('0xda')]['newPassword'],_0x4db5e0[_0x579335('0xa2')])},null));})['then'](respondWithResult(_0x245171,null))[_0xbfb275('0x2e')](handleError(_0x245171,null));},exports['addQueues']=function(_0x31b376,_0xf50440){const _0x4f46e8=_0x2cfc45,_0x192404=_0x31b376[_0x4f46e8('0xda')][_0x4f46e8('0x121')];return db[_0x4f46e8('0x7a')]['findOne']({'where':{'id':_0x31b376[_0x4f46e8('0x102')]['id']},'attributes':['id',_0x4f46e8('0x73'),_0x4f46e8('0x65'),'online','loginInPause','voicePause',_0x4f46e8('0x20')]})[_0x4f46e8('0x94')](handleEntityNotFound(_0xf50440,null))[_0x4f46e8('0x94')](function(_0x3c9609){const _0x5a1a2e=_0x4f46e8;if(_0x3c9609){if(!utils[_0x5a1a2e('0x153')](_0x192404))throw new ValidationError(_0x5a1a2e('0x16'));return _0x3c9609['add'+_['capitalize'](_0x192404['toLowerCase']())+'Queues'](_0x31b376[_0x5a1a2e('0xda')][_0x5a1a2e('0x157')],{'through':{'penalty':_0x31b376['body'][_0x5a1a2e('0x92')]||0x0}})[_0x5a1a2e('0x94')](function(_0x585db4){const _0x1c1e53=_0x5a1a2e;for(let _0x3dac4f=0x0;_0x3dac4f<_0x31b376[_0x1c1e53('0xda')][_0x1c1e53('0x157')][_0x1c1e53('0x32')];_0x3dac4f+=0x1){const _0x4ec497={'UserId':_0x31b376[_0x1c1e53('0x102')]['id']};_0x4ec497[_[_0x1c1e53('0xf2')](_0x192404['toLowerCase']())+'QueueId']=_0x31b376[_0x1c1e53('0xda')][_0x1c1e53('0x157')][_0x3dac4f],socket[_0x1c1e53('0x14e')](_0x1c1e53('0x113')+_['capitalize'](_0x192404[_0x1c1e53('0xc3')]())+_0x1c1e53('0x90'),_0x4ec497);}return _0x585db4;})[_0x5a1a2e('0x94')](function(){const _0x108227=_0x5a1a2e;if(_0x192404===_0x108227('0xd2'))return db[_0x108227('0x3c')][_0x108227('0x4')]({'where':{'id':_0x31b376[_0x108227('0xda')][_0x108227('0x157')]||[]},'raw':!![],'attributes':['id',_0x108227('0x73')]});})[_0x5a1a2e('0x94')](function(_0x52cc95){const _0x249c9d=_0x5a1a2e,_0xfed4da=_0x3c9609['get']({'plain':!![]}),_0x4f48fc=[];if(_0x192404==='voice'&&_0xfed4da[_0x249c9d('0x65')]==='agent'&&_0xfed4da[_0x249c9d('0x89')]){for(let _0x2ed68e=0x0;_0x2ed68e<_0x52cc95['length'];_0x2ed68e+=0x1){_0x4f48fc[_0x249c9d('0xc4')]({'membername':_0xfed4da[_0x249c9d('0x73')],'UserId':_0xfed4da['id'],'queue_name':_0x52cc95[_0x2ed68e][_0x249c9d('0x73')],'VoiceQueueId':_0x52cc95[_0x2ed68e]['id'],'interface':_['isNil'](_0xfed4da[_0x249c9d('0x20')])?util[_0x249c9d('0x1')](_0x249c9d('0x155'),_0xfed4da[_0x249c9d('0x73')]):_0xfed4da[_0x249c9d('0x20')],'paused':_0xfed4da[_0x249c9d('0xef')]||![],'penalty':_0x31b376[_0x249c9d('0xda')][_0x249c9d('0x92')]||0x0});}return Promise[_0x249c9d('0x10c')](_0x4f48fc,function(_0x8c9ff6){const _0x47b120=_0x249c9d;return db[_0x47b120('0x9d')][_0x47b120('0x25')](_0x8c9ff6);});}return _0x3c9609;});}})[_0x4f46e8('0x94')](respondWithStatusCode(_0xf50440,null))[_0x4f46e8('0x2e')](handleError(_0xf50440,null));},exports[_0x2cfc45('0x37')]=function(_0x1f7ea0,_0x1b3b2e){const _0x15aaf7=_0x2cfc45;let _0xd5ec58;return db[_0x15aaf7('0x7a')][_0x15aaf7('0x1d')]({'where':{'id':_0x1f7ea0[_0x15aaf7('0x102')]['id']},'attributes':['id','name',_0x15aaf7('0x65')]})['then'](handleEntityNotFound(_0x1b3b2e,null))['then'](function(_0x587568){const _0x555234=_0x15aaf7;if(_0x587568){_0xd5ec58=_0x587568;if(!_0x1f7ea0[_0x555234('0x71')][_0x555234('0x121')]||!utils[_0x555234('0x153')](_0x1f7ea0[_0x555234('0x71')][_0x555234('0x121')]))throw new ValidationError(_0x555234('0x16'));return _0x587568['remove'+_['capitalize'](_0x1f7ea0['query'][_0x555234('0x121')]['toLowerCase']())+_0x555234('0x9b')](_0x1f7ea0[_0x555234('0x71')][_0x555234('0x157')]);}})[_0x15aaf7('0x94')](function(_0x3c2771){const _0x28c225=_0x15aaf7;for(let _0x1d29bc=0x0;_0x1d29bc<_0x1f7ea0['query'][_0x28c225('0x157')][_0x28c225('0x32')];_0x1d29bc+=0x1){const _0x3d0542={'UserId':_0x1f7ea0['params']['id']};_0x3d0542[_[_0x28c225('0xf2')](_0x1f7ea0['query'][_0x28c225('0x121')][_0x28c225('0xc3')]())+'QueueId']=_0x1f7ea0[_0x28c225('0x71')][_0x28c225('0x157')][_0x1d29bc],socket[_0x28c225('0x14e')](_0x28c225('0x113')+_[_0x28c225('0xf2')](_0x1f7ea0['query'][_0x28c225('0x121')][_0x28c225('0xc3')]())+'Queue:remove',_0x3d0542);}return _0x3c2771;})[_0x15aaf7('0x94')](function(){const _0x2d00c5=_0x15aaf7;if(_0x1f7ea0[_0x2d00c5('0x71')][_0x2d00c5('0x121')]===_0x2d00c5('0xd2'))return db[_0x2d00c5('0x9d')]['destroy']({'where':{'UserId':_0x1f7ea0[_0x2d00c5('0x102')]['id'],'VoiceQueueId':_0x1f7ea0[_0x2d00c5('0x71')][_0x2d00c5('0x157')]},'individualHooks':!![]})[_0x2d00c5('0x94')](function(){return _0xd5ec58;});return _0xd5ec58;})[_0x15aaf7('0x94')](respondWithStatusCode(_0x1b3b2e,null))['catch'](handleError(_0x1b3b2e,null));},exports[_0x2cfc45('0x9f')]=function(_0x18f94a,_0x200dcd){const _0x2acd1b=_0x2cfc45;return _0x18f94a['body'][_0x2acd1b('0x74')]=_0x18f94a[_0x2acd1b('0x136')]['filename'],db[_0x2acd1b('0x7a')][_0x2acd1b('0x1d')]({'where':{'id':_0x18f94a['params']['id']}})[_0x2acd1b('0x94')](handleEntityNotFound(_0x200dcd,null))[_0x2acd1b('0x94')](saveUpdates(_0x18f94a['body'],null))[_0x2acd1b('0x94')](respondWithResult(_0x200dcd,null))[_0x2acd1b('0x2e')](handleError(_0x200dcd,null));},exports[_0x2cfc45('0xc9')]=function(_0x231301,_0x4d16a1){const _0x586f76=_0x2cfc45,_0x4724ea=path[_0x586f76('0xb1')](config[_0x586f76('0x52')],_0x586f76('0x18'));return db[_0x586f76('0x7a')]['findOne']({'where':{'id':_0x231301[_0x586f76('0x102')]['id']},'attributes':['id',_0x586f76('0x74')],'raw':!![]})[_0x586f76('0x94')](handleEntityNotFound(_0x4d16a1,null))['then'](function(_0x58aabd){const _0x20ee79=_0x586f76;if(_0x58aabd){if(_[_0x20ee79('0xaa')](_0x58aabd['userpic']))return _0x4d16a1['download'](_0x4724ea);else{if(!fs[_0x20ee79('0xab')](path[_0x20ee79('0xb1')](config[_0x20ee79('0x52')],_0x20ee79('0x11f'),_0x58aabd[_0x20ee79('0x74')])))return _0x4d16a1['download'](_0x4724ea);return _0x4d16a1['download'](path[_0x20ee79('0xb1')](config['root'],_0x20ee79('0x11f'),_0x58aabd[_0x20ee79('0x74')]));}}})[_0x586f76('0x2e')](handleError(_0x4d16a1,null));},exports['getContacts']=function(_0x55dc06,_0x37c0e0){const _0x15fc4b=_0x2cfc45;let _0x564831={};const _0x1b5017={};let _0x3c9087,_0x3c9b1e;return db[_0x15fc4b('0x7a')]['findOne']({'where':{'id':_0x55dc06['params']['id']}})[_0x15fc4b('0x94')](handleEntityNotFound(_0x37c0e0,null))[_0x15fc4b('0x94')](function(_0x3478c0){const _0x39c775=_0x15fc4b;if(_0x3478c0)return _0x3c9087=_0x3478c0,_0x1b5017[_0x39c775('0x101')]=_[_0x39c775('0x111')](db[_0x39c775('0xd1')]['rawAttributes']),_0x1b5017[_0x39c775('0x71')]=_['keys'](_0x55dc06[_0x39c775('0x71')]),_0x1b5017[_0x39c775('0xb2')]=_[_0x39c775('0x81')](_0x1b5017['model'],_0x1b5017[_0x39c775('0x71')]),_0x564831['attributes']=_[_0x39c775('0x81')](_0x1b5017[_0x39c775('0x101')],qs['fields'](_0x55dc06['query'][_0x39c775('0x3')])),_0x564831[_0x39c775('0x6c')]=_0x564831[_0x39c775('0x6c')][_0x39c775('0x32')]?_0x564831[_0x39c775('0x6c')]:_0x1b5017['model'],_0x564831['order']=qs[_0x39c775('0xeb')](_0x55dc06[_0x39c775('0x71')]['sort']),_0x564831[_0x39c775('0xf5')]=qs[_0x39c775('0xb2')](_[_0x39c775('0x6')](_0x55dc06[_0x39c775('0x71')],_0x1b5017[_0x39c775('0xb2')])),_0x55dc06['query'][_0x39c775('0x1a')]&&(_0x564831[_0x39c775('0xf5')]=_[_0x39c775('0x14a')](_0x564831['where'],{[Op['or']]:_[_0x39c775('0x140')](_0x564831['attributes'],function(_0x40a971){const _0x2f7867=_0x39c775,_0x4121e2={};return _0x4121e2[_0x40a971]={[Op['like']]:'%'+_0x55dc06[_0x2f7867('0x71')][_0x2f7867('0x1a')]+'%'},_0x4121e2;})})),_0x564831=_['merge']({},_0x564831,_0x55dc06[_0x39c775('0x36')]),_0x3c9087[_0x39c775('0x14d')](_0x564831);})['then'](function(_0xd024c6){const _0x311024=_0x15fc4b;if(_0xd024c6)return _0x3c9b1e=_0xd024c6[_0x311024('0x32')],typeof _0x55dc06[_0x311024('0x71')][_0x311024('0x43')]!==_0x311024('0xe2')&&(_0x564831['include']=[{'model':db['CmList'],'as':'List','required':![]},{'model':db[_0x311024('0x64')],'as':_0x311024('0x3b'),'attributes':['id',_0x311024('0x73'),_0x311024('0x10b')],'where':_0x55dc06['query'][_0x311024('0x47')]?{'id':_0x55dc06[_0x311024('0x71')]['tag']}:undefined,'required':_0x55dc06[_0x311024('0x71')][_0x311024('0x47')]?!![]:![]}]),typeof _0x55dc06['query'][_0x311024('0x6a')]===_0x311024('0xe2')&&(_0x564831['limit']=qs[_0x311024('0x48')](_0x55dc06[_0x311024('0x71')][_0x311024('0x48')]),_0x564831[_0x311024('0x145')]=qs['offset'](_0x55dc06[_0x311024('0x71')][_0x311024('0x145')])),_0x3c9087[_0x311024('0x14d')](_0x564831);})[_0x15fc4b('0x94')](function(_0x1f5358){if(_0x1f5358)return _0x1f5358?{'count':_0x3c9b1e,'rows':_0x1f5358}:null;})['then'](respondWithResult(_0x37c0e0,null))['catch'](handleError(_0x37c0e0,null));},exports[_0x2cfc45('0x19')]=function(_0x206825,_0x193f53){const _0x2f1bce=_0x2cfc45;let _0xa894f5,_0x2f3695={},_0x4c06e3;return db[_0x2f1bce('0x7a')]['findOne']({'where':{'id':_0x206825[_0x2f1bce('0x102')]['id']},'attributes':['id',_0x2f1bce('0x73'),_0x2f1bce('0x65')]})[_0x2f1bce('0x94')](handleEntityNotFound(_0x193f53,null))[_0x2f1bce('0x94')](function(_0x5178c9){const _0x17ea8e=_0x2f1bce;if(!utils[_0x17ea8e('0x153')](_0x206825['query']['channel']))throw new ValidationError(_0x17ea8e('0x16'));_0xa894f5=_0x5178c9;const _0x173445={};_0x173445[_0x17ea8e('0x101')]=_[_0x17ea8e('0x111')](db[_[_0x17ea8e('0xf2')](_0x206825[_0x17ea8e('0x71')][_0x17ea8e('0x121')])+_0x17ea8e('0xe')]['rawAttributes']),_0x173445[_0x17ea8e('0x71')]=_[_0x17ea8e('0x111')](_0x206825[_0x17ea8e('0x71')]),_0x173445['filters']=_[_0x17ea8e('0x81')](_0x173445[_0x17ea8e('0x101')],_0x173445[_0x17ea8e('0x71')]),_0x2f3695['attributes']=_['intersection'](_0x173445[_0x17ea8e('0x101')],qs[_0x17ea8e('0x3')](_0x206825[_0x17ea8e('0x71')][_0x17ea8e('0x3')])),_0x2f3695[_0x17ea8e('0x6c')]=_0x2f3695[_0x17ea8e('0x6c')][_0x17ea8e('0x32')]?_0x2f3695[_0x17ea8e('0x6c')]:_0x173445[_0x17ea8e('0x101')],_0x2f3695[_0x17ea8e('0x15b')]=qs[_0x17ea8e('0xeb')](_0x206825['query'][_0x17ea8e('0xeb')]),_0x2f3695[_0x17ea8e('0xf5')]=qs[_0x17ea8e('0xb2')](_[_0x17ea8e('0x6')](_0x206825['query'],_0x173445[_0x17ea8e('0xb2')]));_0x206825['query'][_0x17ea8e('0x1a')]&&(_0x2f3695[_0x17ea8e('0xf5')]=_['merge'](_0x2f3695[_0x17ea8e('0xf5')],{[Op['or']]:_[_0x17ea8e('0x140')](_0x2f3695[_0x17ea8e('0x6c')],function(_0xeac787){const _0x53c8e3={};return _0x53c8e3[_0xeac787]={[Op['like']]:'%'+_0x206825['query']['filter']+'%'},_0x53c8e3;})}));_0x2f3695=_[_0x17ea8e('0x14a')]({},_0x2f3695,_0x206825[_0x17ea8e('0x36')]);switch(_0xa894f5[_0x17ea8e('0x65')]){case _0x17ea8e('0x13c'):return db[_[_0x17ea8e('0xf2')](_0x206825[_0x17ea8e('0x71')]['channel'])+_0x17ea8e('0xe')][_0x17ea8e('0x4')](_0x2f3695);case _0x17ea8e('0x113'):case _0x17ea8e('0xc1'):return _0xa894f5[_0x17ea8e('0x67')+_[_0x17ea8e('0xf2')](_0x206825['query'][_0x17ea8e('0x121')])+'Queues'](_0x2f3695);default:throw new ValidationError('Unknown\x20role');}})[_0x2f1bce('0x94')](function(_0x2a88b9){const _0x3c9b16=_0x2f1bce;_0x4c06e3=_0x2a88b9[_0x3c9b16('0x32')];typeof _0x206825[_0x3c9b16('0x71')][_0x3c9b16('0x6a')]==='undefined'&&(_0x2f3695[_0x3c9b16('0x48')]=qs['limit'](_0x206825[_0x3c9b16('0x71')]['limit']),_0x2f3695['offset']=qs[_0x3c9b16('0x145')](_0x206825[_0x3c9b16('0x71')]['offset']));switch(_0xa894f5[_0x3c9b16('0x65')]){case _0x3c9b16('0x13c'):return db[_[_0x3c9b16('0xf2')](_0x206825[_0x3c9b16('0x71')][_0x3c9b16('0x121')])+_0x3c9b16('0xe')][_0x3c9b16('0x4')](_0x2f3695);case'user':case _0x3c9b16('0xc1'):return _0xa894f5['get'+_[_0x3c9b16('0xf2')](_0x206825['query'][_0x3c9b16('0x121')])+_0x3c9b16('0x9b')](_0x2f3695);}})[_0x2f1bce('0x94')](function(_0x34c1e6){return{'count':_0x4c06e3,'rows':_0x34c1e6};})['then'](respondWithResult(_0x193f53,null))['catch'](handleError(_0x193f53,null));},exports[_0x2cfc45('0x1f')]=function(_0x19d577,_0x5a1681){const _0x4dff19=_0x2cfc45;let _0x25f49e={};const _0x56111c={};let _0x51af4d,_0x2dc0e3;return db[_0x4dff19('0x7a')][_0x4dff19('0x1d')]({'where':{'id':_0x19d577[_0x4dff19('0x102')]['id']}})[_0x4dff19('0x94')](handleEntityNotFound(_0x5a1681,null))[_0x4dff19('0x94')](function(_0x266717){const _0x26f714=_0x4dff19;if(_0x266717)return _0x51af4d=_0x266717,_0x56111c[_0x26f714('0x101')]=_[_0x26f714('0x111')](db[_0x26f714('0x9d')][_0x26f714('0x66')]),_0x56111c[_0x26f714('0x71')]=_[_0x26f714('0x111')](_0x19d577['query']),_0x56111c[_0x26f714('0xb2')]=_[_0x26f714('0x81')](_0x56111c[_0x26f714('0x101')],_0x56111c[_0x26f714('0x71')]),_0x25f49e[_0x26f714('0x6c')]=_[_0x26f714('0x81')](_0x56111c[_0x26f714('0x101')],qs[_0x26f714('0x3')](_0x19d577[_0x26f714('0x71')][_0x26f714('0x3')])),_0x25f49e['attributes']=_0x25f49e[_0x26f714('0x6c')][_0x26f714('0x32')]?_0x25f49e['attributes']:_0x56111c['model'],_0x25f49e[_0x26f714('0x15b')]=qs[_0x26f714('0xeb')](_0x19d577['query']['sort']),_0x25f49e[_0x26f714('0xf5')]=qs['filters'](_['pick'](_0x19d577[_0x26f714('0x71')],_0x56111c[_0x26f714('0xb2')])),_0x19d577[_0x26f714('0x71')]['filter']&&(_0x25f49e[_0x26f714('0xf5')]=_['merge'](_0x25f49e[_0x26f714('0xf5')],{[Op['or']]:_[_0x26f714('0x140')](_0x25f49e[_0x26f714('0x6c')],function(_0x39cf59){const _0x5ac747=_0x26f714,_0x202a93={};return _0x202a93[_0x39cf59]={[Op[_0x5ac747('0x156')]]:'%'+_0x19d577[_0x5ac747('0x71')][_0x5ac747('0x1a')]+'%'},_0x202a93;})})),_0x25f49e=_[_0x26f714('0x14a')]({},_0x25f49e,_0x19d577[_0x26f714('0x36')]),_0x51af4d[_0x26f714('0x1f')](_0x25f49e);})[_0x4dff19('0x94')](function(_0x588005){const _0x2ad5b6=_0x4dff19;if(_0x588005)return _0x2dc0e3=_0x588005[_0x2ad5b6('0x32')],typeof _0x19d577[_0x2ad5b6('0x71')][_0x2ad5b6('0x6a')]===_0x2ad5b6('0xe2')&&(_0x25f49e[_0x2ad5b6('0x48')]=qs[_0x2ad5b6('0x48')](_0x19d577[_0x2ad5b6('0x71')][_0x2ad5b6('0x48')]),_0x25f49e[_0x2ad5b6('0x145')]=qs['offset'](_0x19d577[_0x2ad5b6('0x71')][_0x2ad5b6('0x145')])),_0x51af4d[_0x2ad5b6('0x1f')](_0x25f49e);})['then'](function(_0x337ceb){if(_0x337ceb)return _0x337ceb?{'count':_0x2dc0e3,'rows':_0x337ceb}:null;})[_0x4dff19('0x94')](respondWithResult(_0x5a1681,null))[_0x4dff19('0x2e')](handleError(_0x5a1681,null));},exports['getGroups']=function(_0x21d871,_0x918463){const _0x44a1de=_0x2cfc45;let _0x524b01={};const _0xd0ba36={};let _0x1a8b55,_0x38b593;return db[_0x44a1de('0x7a')]['findOne']({'where':{'id':_0x21d871[_0x44a1de('0x102')]['id']}})[_0x44a1de('0x94')](handleEntityNotFound(_0x918463,null))[_0x44a1de('0x94')](function(_0x43649b){const _0x2320ff=_0x44a1de;if(_0x43649b)return _0x1a8b55=_0x43649b,_0xd0ba36[_0x2320ff('0x101')]=_[_0x2320ff('0x111')](db[_0x2320ff('0xd3')][_0x2320ff('0x66')]),_0xd0ba36[_0x2320ff('0x71')]=_[_0x2320ff('0x111')](_0x21d871[_0x2320ff('0x71')]),_0xd0ba36[_0x2320ff('0xb2')]=_['intersection'](_0xd0ba36[_0x2320ff('0x101')],_0xd0ba36[_0x2320ff('0x71')]),_0x524b01['attributes']=_['intersection'](_0xd0ba36[_0x2320ff('0x101')],qs[_0x2320ff('0x3')](_0x21d871[_0x2320ff('0x71')][_0x2320ff('0x3')])),_0x524b01[_0x2320ff('0x6c')]=_0x524b01['attributes'][_0x2320ff('0x32')]?_0x524b01['attributes']:_0xd0ba36[_0x2320ff('0x101')],_0x524b01[_0x2320ff('0x15b')]=qs[_0x2320ff('0xeb')](_0x21d871[_0x2320ff('0x71')][_0x2320ff('0xeb')]),_0x524b01[_0x2320ff('0xf5')]=qs[_0x2320ff('0xb2')](_['pick'](_0x21d871[_0x2320ff('0x71')],_0xd0ba36['filters'])),_0x21d871['query'][_0x2320ff('0x1a')]&&(_0x524b01[_0x2320ff('0xf5')]=_['merge'](_0x524b01['where'],{[Op['or']]:_[_0x2320ff('0x140')](_0x524b01[_0x2320ff('0x6c')],function(_0x40bc95){const _0x162390=_0x2320ff,_0x4771f7={};return _0x4771f7[_0x40bc95]={[Op[_0x162390('0x156')]]:'%'+_0x21d871['query']['filter']+'%'},_0x4771f7;})})),_0x524b01=_[_0x2320ff('0x14a')]({},_0x524b01,_0x21d871[_0x2320ff('0x36')]),_0x1a8b55['getGroups'](_0x524b01);})[_0x44a1de('0x94')](function(_0x37a852){const _0x55e2e5=_0x44a1de;if(_0x37a852)return _0x38b593=_0x37a852[_0x55e2e5('0x32')],typeof _0x21d871[_0x55e2e5('0x71')]['nolimit']==='undefined'&&(_0x524b01[_0x55e2e5('0x48')]=qs['limit'](_0x21d871[_0x55e2e5('0x71')]['limit']),_0x524b01['offset']=qs[_0x55e2e5('0x145')](_0x21d871['query'][_0x55e2e5('0x145')])),_0x1a8b55['getGroups'](_0x524b01);})[_0x44a1de('0x94')](function(_0x1c262e){if(_0x1c262e)return _0x1c262e?{'count':_0x38b593,'rows':_0x1c262e}:null;})[_0x44a1de('0x94')](respondWithResult(_0x918463,null))[_0x44a1de('0x2e')](handleError(_0x918463,null));},exports[_0x2cfc45('0x33')]=function(_0x15d994,_0x536f9d){const _0x5b1479=_0x2cfc45;let _0x2f10e2={'raw':!![],'where':{}};const _0x21fbed={},_0x1d5715={'count':0x0,'rows':[]};return db[_0x5b1479('0x7a')]['findOne']({'where':{'id':_0x15d994['params']['id']}})[_0x5b1479('0x94')](handleEntityNotFound(_0x536f9d,null))[_0x5b1479('0x94')](function(_0x2a4d73){const _0x23214d=_0x5b1479;if(_0x2a4d73)return _0x21fbed['model']=_[_0x23214d('0x111')](db[_0x23214d('0xfb')][_0x23214d('0x66')]),_0x21fbed['query']=_[_0x23214d('0x111')](_0x15d994[_0x23214d('0x71')]),_0x21fbed[_0x23214d('0xb2')]=_[_0x23214d('0x81')](_0x21fbed[_0x23214d('0x101')],_0x21fbed['query']),_0x2f10e2[_0x23214d('0x6c')]=_[_0x23214d('0x81')](_0x21fbed[_0x23214d('0x101')],qs['fields'](_0x15d994['query'][_0x23214d('0x3')])),_0x2f10e2[_0x23214d('0x6c')]=_0x2f10e2[_0x23214d('0x6c')][_0x23214d('0x32')]?_0x2f10e2[_0x23214d('0x6c')]:_0x21fbed[_0x23214d('0x101')],typeof _0x15d994[_0x23214d('0x71')][_0x23214d('0x6a')]==='undefined'&&(_0x2f10e2['limit']=qs[_0x23214d('0x48')](_0x15d994[_0x23214d('0x71')]['limit']),_0x2f10e2[_0x23214d('0x145')]=qs['offset'](_0x15d994[_0x23214d('0x71')]['offset'])),_0x2f10e2['order']=qs[_0x23214d('0xeb')](_0x15d994[_0x23214d('0x71')][_0x23214d('0xeb')]),_0x2f10e2[_0x23214d('0xf5')]=qs['filters'](_[_0x23214d('0x6')](_0x15d994[_0x23214d('0x71')],_0x21fbed['filters'])),_0x2f10e2[_0x23214d('0xf5')][_0x23214d('0x106')]=_0x2a4d73['id'],_0x15d994[_0x23214d('0x71')]['filter']&&(_0x2f10e2[_0x23214d('0xf5')]=_[_0x23214d('0x14a')](_0x2f10e2[_0x23214d('0xf5')],{[Op['or']]:_[_0x23214d('0x140')](_0x2f10e2[_0x23214d('0x6c')],function(_0x33dc4f){const _0x8a066=_0x23214d,_0x5dc8ef={};return _0x5dc8ef[_0x33dc4f]={[Op[_0x8a066('0x156')]]:'%'+_0x15d994[_0x8a066('0x71')][_0x8a066('0x1a')]+'%'},_0x5dc8ef;})})),_0x2f10e2=_[_0x23214d('0x14a')]({},_0x2f10e2,_0x15d994[_0x23214d('0x36')]),db[_0x23214d('0xfb')][_0x23214d('0x158')]({'where':_0x2f10e2[_0x23214d('0xf5')]})['then'](function(_0x5e8572){const _0x4b22d7=_0x23214d;return _0x1d5715[_0x4b22d7('0x158')]=_0x5e8572,_0x15d994[_0x4b22d7('0x71')][_0x4b22d7('0x43')]&&(_0x2f10e2[_0x4b22d7('0xe3')]=[{'all':!![]}]),db[_0x4b22d7('0xfb')][_0x4b22d7('0x4')](_0x2f10e2);})[_0x23214d('0x94')](function(_0xd5a28e){const _0x53a310=_0x23214d;return _0x1d5715[_0x53a310('0x23')]=_0xd5a28e,_0x1d5715;});})['then'](respondWithFilteredResult(_0x536f9d,_0x2f10e2))[_0x5b1479('0x2e')](handleError(_0x536f9d,null));},exports[_0x2cfc45('0xb6')]=function(_0x4f9dbe,_0x28cb97){const _0xe25bab=_0x2cfc45;let _0x5c5039={'raw':!![],'where':{}};const _0xb2e579={},_0x436d8e={'count':0x0,'rows':[]};return db[_0xe25bab('0x7a')][_0xe25bab('0x1d')]({'where':{'id':_0x4f9dbe[_0xe25bab('0x102')]['id']}})[_0xe25bab('0x94')](handleEntityNotFound(_0x28cb97,null))[_0xe25bab('0x94')](function(_0x13d508){const _0x3e6a65=_0xe25bab;if(_0x13d508)return _0xb2e579[_0x3e6a65('0x101')]=_['keys'](db[_0x3e6a65('0x11c')][_0x3e6a65('0x66')]),_0xb2e579['query']=_[_0x3e6a65('0x111')](_0x4f9dbe[_0x3e6a65('0x71')]),_0xb2e579[_0x3e6a65('0xb2')]=_[_0x3e6a65('0x81')](_0xb2e579[_0x3e6a65('0x101')],_0xb2e579[_0x3e6a65('0x71')]),_0x5c5039['attributes']=_[_0x3e6a65('0x81')](_0xb2e579[_0x3e6a65('0x101')],qs['fields'](_0x4f9dbe[_0x3e6a65('0x71')][_0x3e6a65('0x3')])),_0x5c5039[_0x3e6a65('0x6c')]=_0x5c5039[_0x3e6a65('0x6c')]['length']?_0x5c5039[_0x3e6a65('0x6c')]:_0xb2e579[_0x3e6a65('0x101')],typeof _0x4f9dbe[_0x3e6a65('0x71')]['nolimit']===_0x3e6a65('0xe2')&&(_0x5c5039[_0x3e6a65('0x48')]=qs[_0x3e6a65('0x48')](_0x4f9dbe[_0x3e6a65('0x71')]['limit']),_0x5c5039[_0x3e6a65('0x145')]=qs['offset'](_0x4f9dbe[_0x3e6a65('0x71')]['offset'])),_0x5c5039[_0x3e6a65('0x15b')]=qs['sort'](_0x4f9dbe[_0x3e6a65('0x71')]['sort']),_0x5c5039[_0x3e6a65('0xf5')]=qs[_0x3e6a65('0xb2')](_[_0x3e6a65('0x6')](_0x4f9dbe['query'],_0xb2e579['filters'])),_0x5c5039[_0x3e6a65('0xf5')][_0x3e6a65('0x106')]=_0x13d508['id'],_0x4f9dbe[_0x3e6a65('0x71')][_0x3e6a65('0x1a')]&&(_0x5c5039[_0x3e6a65('0xf5')]=_[_0x3e6a65('0x14a')](_0x5c5039[_0x3e6a65('0xf5')],{[Op['or']]:_[_0x3e6a65('0x140')](_0x5c5039[_0x3e6a65('0x6c')],function(_0x490639){const _0x1d77cb=_0x3e6a65,_0x5b33de={};return _0x5b33de[_0x490639]={[Op[_0x1d77cb('0x156')]]:'%'+_0x4f9dbe[_0x1d77cb('0x71')]['filter']+'%'},_0x5b33de;})})),_0x5c5039=_['merge']({},_0x5c5039,_0x4f9dbe[_0x3e6a65('0x36')]),db[_0x3e6a65('0x11c')][_0x3e6a65('0x158')]({'where':_0x5c5039[_0x3e6a65('0xf5')]})[_0x3e6a65('0x94')](function(_0x1e2f99){const _0x55978d=_0x3e6a65;return _0x436d8e[_0x55978d('0x158')]=_0x1e2f99,_0x4f9dbe[_0x55978d('0x71')][_0x55978d('0x43')]&&(_0x5c5039['include']=[{'all':!![]}]),db['ScreenRecording']['findAll'](_0x5c5039);})[_0x3e6a65('0x94')](function(_0x7c2fe7){return _0x436d8e['rows']=_0x7c2fe7,_0x436d8e;});})['then'](respondWithFilteredResult(_0x28cb97,_0x5c5039))['catch'](handleError(_0x28cb97,null));},exports[_0x2cfc45('0xc8')]=function(_0xa548f8,_0x395667){const _0x40446a=_0x2cfc45;let _0x11dc56={};const _0x53dddb={};let _0x35e9f5,_0x512fe8;return db['User']['findOne']({'where':{'id':_0xa548f8[_0x40446a('0x102')]['id']}})['then'](handleEntityNotFound(_0x395667,null))[_0x40446a('0x94')](function(_0x2087b9){const _0x70dba9=_0x40446a;if(_0x2087b9)return _0x35e9f5=_0x2087b9,_0x53dddb[_0x70dba9('0x101')]=_['keys'](db['ChatInteraction'][_0x70dba9('0x66')]),_0x53dddb[_0x70dba9('0x71')]=_[_0x70dba9('0x111')](_0xa548f8[_0x70dba9('0x71')]),_0x53dddb[_0x70dba9('0xb2')]=_[_0x70dba9('0x81')](_0x53dddb[_0x70dba9('0x101')],_0x53dddb[_0x70dba9('0x71')]),_0x11dc56[_0x70dba9('0x6c')]=_['intersection'](_0x53dddb['model'],qs[_0x70dba9('0x3')](_0xa548f8[_0x70dba9('0x71')]['fields'])),_0x11dc56['attributes']=_0x11dc56[_0x70dba9('0x6c')][_0x70dba9('0x32')]?_0x11dc56[_0x70dba9('0x6c')]:_0x53dddb[_0x70dba9('0x101')],_0x11dc56[_0x70dba9('0x15b')]=qs['sort'](_0xa548f8['query']['sort']),_0x11dc56['where']=qs[_0x70dba9('0xb2')](_['pick'](_0xa548f8[_0x70dba9('0x71')],_0x53dddb[_0x70dba9('0xb2')])),_0xa548f8[_0x70dba9('0x71')]['filter']&&(_0x11dc56[_0x70dba9('0xf5')]=_['merge'](_0x11dc56[_0x70dba9('0xf5')],{[Op['or']]:_[_0x70dba9('0x140')](_0x11dc56[_0x70dba9('0x6c')],function(_0x54d05b){const _0x3a4089=_0x70dba9,_0x26097d={};return _0x26097d[_0x54d05b]={[Op[_0x3a4089('0x156')]]:'%'+_0xa548f8[_0x3a4089('0x71')][_0x3a4089('0x1a')]+'%'},_0x26097d;})})),_0x11dc56=_[_0x70dba9('0x14a')]({},_0x11dc56,_0xa548f8[_0x70dba9('0x36')]),_0x35e9f5[_0x70dba9('0xc8')](_0x11dc56);})['then'](function(_0x39e90c){const _0x487ea2=_0x40446a;if(_0x39e90c)return _0x512fe8=_0x39e90c[_0x487ea2('0x32')],typeof _0xa548f8[_0x487ea2('0x71')][_0x487ea2('0x6a')]===_0x487ea2('0xe2')&&(_0x11dc56['limit']=qs[_0x487ea2('0x48')](_0xa548f8[_0x487ea2('0x71')]['limit']),_0x11dc56[_0x487ea2('0x145')]=qs['offset'](_0xa548f8['query'][_0x487ea2('0x145')])),_0x35e9f5[_0x487ea2('0xc8')](_0x11dc56);})['then'](function(_0x1e2bb4){if(_0x1e2bb4)return _0x1e2bb4?{'count':_0x512fe8,'rows':_0x1e2bb4}:null;})['then'](respondWithResult(_0x395667,null))['catch'](handleError(_0x395667,null));},exports['getOpenchannelInteractions']=function(_0x524013,_0x135a05){const _0x1d42d3=_0x2cfc45;let _0x52ec9f={};const _0x4654fe={};let _0x1542db,_0x11a7d4;return db[_0x1d42d3('0x7a')][_0x1d42d3('0x1d')]({'where':{'id':_0x524013[_0x1d42d3('0x102')]['id']}})[_0x1d42d3('0x94')](handleEntityNotFound(_0x135a05,null))[_0x1d42d3('0x94')](function(_0xeeca90){const _0x547f15=_0x1d42d3;if(_0xeeca90)return _0x1542db=_0xeeca90,_0x4654fe['model']=_[_0x547f15('0x111')](db[_0x547f15('0x24')][_0x547f15('0x66')]),_0x4654fe[_0x547f15('0x71')]=_[_0x547f15('0x111')](_0x524013[_0x547f15('0x71')]),_0x4654fe[_0x547f15('0xb2')]=_['intersection'](_0x4654fe[_0x547f15('0x101')],_0x4654fe[_0x547f15('0x71')]),_0x52ec9f[_0x547f15('0x6c')]=_[_0x547f15('0x81')](_0x4654fe[_0x547f15('0x101')],qs[_0x547f15('0x3')](_0x524013['query']['fields'])),_0x52ec9f[_0x547f15('0x6c')]=_0x52ec9f[_0x547f15('0x6c')][_0x547f15('0x32')]?_0x52ec9f[_0x547f15('0x6c')]:_0x4654fe[_0x547f15('0x101')],_0x52ec9f[_0x547f15('0x15b')]=qs[_0x547f15('0xeb')](_0x524013[_0x547f15('0x71')][_0x547f15('0xeb')]),_0x52ec9f[_0x547f15('0xf5')]=qs[_0x547f15('0xb2')](_[_0x547f15('0x6')](_0x524013[_0x547f15('0x71')],_0x4654fe['filters'])),_0x524013['query'][_0x547f15('0x1a')]&&(_0x52ec9f[_0x547f15('0xf5')]=_[_0x547f15('0x14a')](_0x52ec9f[_0x547f15('0xf5')],{[Op['or']]:_[_0x547f15('0x140')](_0x52ec9f[_0x547f15('0x6c')],function(_0x493ab0){const _0x293004=_0x547f15,_0x2a6539={};return _0x2a6539[_0x493ab0]={[Op[_0x293004('0x156')]]:'%'+_0x524013['query']['filter']+'%'},_0x2a6539;})})),_0x52ec9f=_[_0x547f15('0x14a')]({},_0x52ec9f,_0x524013['options']),_0x1542db[_0x547f15('0xbb')](_0x52ec9f);})[_0x1d42d3('0x94')](function(_0x3a8394){const _0x4a29f5=_0x1d42d3;if(_0x3a8394)return _0x11a7d4=_0x3a8394[_0x4a29f5('0x32')],typeof _0x524013[_0x4a29f5('0x71')][_0x4a29f5('0x6a')]===_0x4a29f5('0xe2')&&(_0x52ec9f[_0x4a29f5('0x48')]=qs[_0x4a29f5('0x48')](_0x524013['query'][_0x4a29f5('0x48')]),_0x52ec9f['offset']=qs[_0x4a29f5('0x145')](_0x524013[_0x4a29f5('0x71')]['offset'])),_0x1542db['getOpenchannelInteractions'](_0x52ec9f);})[_0x1d42d3('0x94')](function(_0x323674){if(_0x323674)return _0x323674?{'count':_0x11a7d4,'rows':_0x323674}:null;})[_0x1d42d3('0x94')](respondWithResult(_0x135a05,null))[_0x1d42d3('0x2e')](handleError(_0x135a05,null));},exports[_0x2cfc45('0x68')]=function(_0x36aa27,_0x5cdac0){const _0x26fa79=_0x2cfc45;let _0x23be02={'raw':!![],'where':{}};const _0x3156a4={},_0x204a56={'count':0x0,'rows':[]};return db[_0x26fa79('0x7a')][_0x26fa79('0x1d')]({'where':{'id':_0x36aa27[_0x26fa79('0x102')]['id']}})['then'](handleEntityNotFound(_0x5cdac0,null))[_0x26fa79('0x94')](function(_0x461553){const _0x49c251=_0x26fa79;if(_0x461553)return _0x3156a4[_0x49c251('0x101')]=_['keys'](db[_0x49c251('0x110')]['rawAttributes']),_0x3156a4[_0x49c251('0x71')]=_['keys'](_0x36aa27[_0x49c251('0x71')]),_0x3156a4[_0x49c251('0xb2')]=_['intersection'](_0x3156a4['model'],_0x3156a4[_0x49c251('0x71')]),_0x23be02[_0x49c251('0x6c')]=_[_0x49c251('0x81')](_0x3156a4['model'],qs[_0x49c251('0x3')](_0x36aa27[_0x49c251('0x71')][_0x49c251('0x3')])),_0x23be02[_0x49c251('0x6c')]=_0x23be02[_0x49c251('0x6c')][_0x49c251('0x32')]?_0x23be02[_0x49c251('0x6c')]:_0x3156a4[_0x49c251('0x101')],typeof _0x36aa27[_0x49c251('0x71')][_0x49c251('0x6a')]===_0x49c251('0xe2')&&(_0x23be02[_0x49c251('0x48')]=qs[_0x49c251('0x48')](_0x36aa27[_0x49c251('0x71')][_0x49c251('0x48')]),_0x23be02[_0x49c251('0x145')]=qs[_0x49c251('0x145')](_0x36aa27[_0x49c251('0x71')][_0x49c251('0x145')])),_0x23be02[_0x49c251('0x15b')]=qs[_0x49c251('0xeb')](_0x36aa27['query']['sort']),_0x23be02[_0x49c251('0xf5')]=qs[_0x49c251('0xb2')](_[_0x49c251('0x6')](_0x36aa27['query'],_0x3156a4['filters'])),_0x23be02[_0x49c251('0xf5')][_0x49c251('0x106')]=_0x461553['id'],_0x36aa27[_0x49c251('0x71')][_0x49c251('0x1a')]&&(_0x23be02[_0x49c251('0xf5')]=_[_0x49c251('0x14a')](_0x23be02[_0x49c251('0xf5')],{[Op['or']]:_[_0x49c251('0x140')](_0x23be02[_0x49c251('0x6c')],function(_0x345862){const _0x3d8f64=_0x49c251,_0x47d545={};return _0x47d545[_0x345862]={[Op[_0x3d8f64('0x156')]]:'%'+_0x36aa27[_0x3d8f64('0x71')]['filter']+'%'},_0x47d545;})})),_0x23be02=_[_0x49c251('0x14a')]({},_0x23be02,_0x36aa27[_0x49c251('0x36')]),db[_0x49c251('0x110')]['count']({'where':_0x23be02['where']})[_0x49c251('0x94')](function(_0xb2b5d2){const _0x25ef70=_0x49c251;return _0x204a56[_0x25ef70('0x158')]=_0xb2b5d2,_0x36aa27[_0x25ef70('0x71')][_0x25ef70('0x43')]&&(_0x23be02['include']=[{'all':!![]}]),db[_0x25ef70('0x110')][_0x25ef70('0x4')](_0x23be02);})[_0x49c251('0x94')](function(_0xf5037e){const _0x130720=_0x49c251;return _0x204a56[_0x130720('0x23')]=_0xf5037e,_0x204a56;});})[_0x26fa79('0x94')](respondWithFilteredResult(_0x5cdac0,_0x23be02))[_0x26fa79('0x2e')](handleError(_0x5cdac0,null));},exports[_0x2cfc45('0xe5')]=function(_0x41a2b9,_0x5431d5){const _0x3063c7=_0x2cfc45;let _0x24b7d8={};const _0x56bd26={};let _0x430f33,_0x59128c;return db['User'][_0x3063c7('0x1d')]({'where':{'id':_0x41a2b9[_0x3063c7('0x102')]['id']}})[_0x3063c7('0x94')](handleEntityNotFound(_0x5431d5,null))['then'](function(_0x2f0b86){const _0x326cb3=_0x3063c7;if(_0x2f0b86)return _0x430f33=_0x2f0b86,_0x56bd26['model']=_[_0x326cb3('0x111')](db[_0x326cb3('0x95')][_0x326cb3('0x66')]),_0x56bd26[_0x326cb3('0x71')]=_[_0x326cb3('0x111')](_0x41a2b9[_0x326cb3('0x71')]),_0x56bd26[_0x326cb3('0xb2')]=_[_0x326cb3('0x81')](_0x56bd26[_0x326cb3('0x101')],_0x56bd26[_0x326cb3('0x71')]),_0x24b7d8['attributes']=_[_0x326cb3('0x81')](_0x56bd26[_0x326cb3('0x101')],qs[_0x326cb3('0x3')](_0x41a2b9[_0x326cb3('0x71')][_0x326cb3('0x3')])),_0x24b7d8['attributes']=_0x24b7d8['attributes'][_0x326cb3('0x32')]?_0x24b7d8[_0x326cb3('0x6c')]:_0x56bd26['model'],_0x24b7d8[_0x326cb3('0x15b')]=qs[_0x326cb3('0xeb')](_0x41a2b9['query'][_0x326cb3('0xeb')]),_0x24b7d8[_0x326cb3('0xf5')]=qs[_0x326cb3('0xb2')](_[_0x326cb3('0x6')](_0x41a2b9[_0x326cb3('0x71')],_0x56bd26['filters'])),_0x41a2b9[_0x326cb3('0x71')][_0x326cb3('0x1a')]&&(_0x24b7d8[_0x326cb3('0xf5')]=_[_0x326cb3('0x14a')](_0x24b7d8[_0x326cb3('0xf5')],{[Op['or']]:_[_0x326cb3('0x140')](_0x24b7d8[_0x326cb3('0x6c')],function(_0x5bb97b){const _0x55933b=_0x326cb3,_0x59047e={};return _0x59047e[_0x5bb97b]={[Op[_0x55933b('0x156')]]:'%'+_0x41a2b9[_0x55933b('0x71')]['filter']+'%'},_0x59047e;})})),_0x24b7d8=_[_0x326cb3('0x14a')]({},_0x24b7d8,_0x41a2b9[_0x326cb3('0x36')]),_0x430f33['getSmsInteractions'](_0x24b7d8);})[_0x3063c7('0x94')](function(_0x55e08d){const _0x35b7c8=_0x3063c7;if(_0x55e08d)return _0x59128c=_0x55e08d[_0x35b7c8('0x32')],typeof _0x41a2b9[_0x35b7c8('0x71')][_0x35b7c8('0x6a')]===_0x35b7c8('0xe2')&&(_0x24b7d8[_0x35b7c8('0x48')]=qs[_0x35b7c8('0x48')](_0x41a2b9['query']['limit']),_0x24b7d8['offset']=qs['offset'](_0x41a2b9[_0x35b7c8('0x71')][_0x35b7c8('0x145')])),_0x430f33[_0x35b7c8('0xe5')](_0x24b7d8);})[_0x3063c7('0x94')](function(_0x5d5ffe){if(_0x5d5ffe)return _0x5d5ffe?{'count':_0x59128c,'rows':_0x5d5ffe}:null;})[_0x3063c7('0x94')](respondWithResult(_0x5431d5,null))[_0x3063c7('0x2e')](handleError(_0x5431d5,null));},exports[_0x2cfc45('0x8e')]=function(_0x4da7d5,_0x4c8687){const _0x4733d1=_0x2cfc45;let _0x749669={};const _0x37aaf1={};let _0x52d799,_0x53909b;return db[_0x4733d1('0x7a')][_0x4733d1('0x1d')]({'where':{'id':_0x4da7d5[_0x4733d1('0x102')]['id']}})[_0x4733d1('0x94')](handleEntityNotFound(_0x4c8687,null))['then'](function(_0x3ab304){const _0x2445c7=_0x4733d1;if(_0x3ab304)return _0x52d799=_0x3ab304,_0x37aaf1['model']=_[_0x2445c7('0x111')](db['FaxInteraction'][_0x2445c7('0x66')]),_0x37aaf1[_0x2445c7('0x71')]=_[_0x2445c7('0x111')](_0x4da7d5['query']),_0x37aaf1[_0x2445c7('0xb2')]=_['intersection'](_0x37aaf1[_0x2445c7('0x101')],_0x37aaf1[_0x2445c7('0x71')]),_0x749669[_0x2445c7('0x6c')]=_[_0x2445c7('0x81')](_0x37aaf1[_0x2445c7('0x101')],qs[_0x2445c7('0x3')](_0x4da7d5['query'][_0x2445c7('0x3')])),_0x749669[_0x2445c7('0x6c')]=_0x749669[_0x2445c7('0x6c')][_0x2445c7('0x32')]?_0x749669[_0x2445c7('0x6c')]:_0x37aaf1['model'],_0x749669[_0x2445c7('0x15b')]=qs[_0x2445c7('0xeb')](_0x4da7d5[_0x2445c7('0x71')][_0x2445c7('0xeb')]),_0x749669[_0x2445c7('0xf5')]=qs[_0x2445c7('0xb2')](_[_0x2445c7('0x6')](_0x4da7d5[_0x2445c7('0x71')],_0x37aaf1['filters'])),_0x4da7d5[_0x2445c7('0x71')][_0x2445c7('0x1a')]&&(_0x749669['where']=_[_0x2445c7('0x14a')](_0x749669[_0x2445c7('0xf5')],{[Op['or']]:_[_0x2445c7('0x140')](_0x749669[_0x2445c7('0x6c')],function(_0x22fe18){const _0x48e321=_0x2445c7,_0x3aae63={};return _0x3aae63[_0x22fe18]={[Op[_0x48e321('0x156')]]:'%'+_0x4da7d5[_0x48e321('0x71')][_0x48e321('0x1a')]+'%'},_0x3aae63;})})),_0x749669=_[_0x2445c7('0x14a')]({},_0x749669,_0x4da7d5[_0x2445c7('0x36')]),_0x52d799[_0x2445c7('0x8e')](_0x749669);})['then'](function(_0x11bb37){const _0x4a8b58=_0x4733d1;if(_0x11bb37)return _0x53909b=_0x11bb37[_0x4a8b58('0x32')],typeof _0x4da7d5['query'][_0x4a8b58('0x6a')]===_0x4a8b58('0xe2')&&(_0x749669[_0x4a8b58('0x48')]=qs['limit'](_0x4da7d5[_0x4a8b58('0x71')]['limit']),_0x749669[_0x4a8b58('0x145')]=qs[_0x4a8b58('0x145')](_0x4da7d5['query'][_0x4a8b58('0x145')])),_0x52d799['getFaxInteractions'](_0x749669);})[_0x4733d1('0x94')](function(_0x311ef8){if(_0x311ef8)return _0x311ef8?{'count':_0x53909b,'rows':_0x311ef8}:null;})['then'](respondWithResult(_0x4c8687,null))[_0x4733d1('0x2e')](handleError(_0x4c8687,null));},exports[_0x2cfc45('0x44')]=function(_0x7b2c73,_0x16381d){const _0x13c451=_0x2cfc45;let _0xd292e0={};const _0x14249a={};let _0x108430,_0x2aee64;return db['User'][_0x13c451('0x1d')]({'where':{'id':_0x7b2c73[_0x13c451('0x102')]['id']}})['then'](handleEntityNotFound(_0x16381d,null))[_0x13c451('0x94')](function(_0x2356f0){const _0x409938=_0x13c451;if(_0x2356f0)return _0x108430=_0x2356f0,_0x14249a[_0x409938('0x101')]=_[_0x409938('0x111')](db[_0x409938('0xe0')][_0x409938('0x66')]),_0x14249a[_0x409938('0x71')]=_[_0x409938('0x111')](_0x7b2c73[_0x409938('0x71')]),_0x14249a[_0x409938('0xb2')]=_[_0x409938('0x81')](_0x14249a[_0x409938('0x101')],_0x14249a[_0x409938('0x71')]),_0xd292e0[_0x409938('0x6c')]=_[_0x409938('0x81')](_0x14249a[_0x409938('0x101')],qs['fields'](_0x7b2c73[_0x409938('0x71')][_0x409938('0x3')])),_0xd292e0[_0x409938('0x6c')]=_0xd292e0[_0x409938('0x6c')]['length']?_0xd292e0[_0x409938('0x6c')]:_0x14249a[_0x409938('0x101')],_0xd292e0[_0x409938('0x15b')]=qs[_0x409938('0xeb')](_0x7b2c73['query'][_0x409938('0xeb')]),_0xd292e0[_0x409938('0xf5')]=qs['filters'](_[_0x409938('0x6')](_0x7b2c73[_0x409938('0x71')],_0x14249a[_0x409938('0xb2')])),_0x7b2c73['query']['filter']&&(_0xd292e0['where']=_['merge'](_0xd292e0[_0x409938('0xf5')],{[Op['or']]:_[_0x409938('0x140')](_0xd292e0[_0x409938('0x6c')],function(_0x49eb39){const _0x25464c=_0x409938,_0xffb6b3={};return _0xffb6b3[_0x49eb39]={[Op[_0x25464c('0x156')]]:'%'+_0x7b2c73[_0x25464c('0x71')][_0x25464c('0x1a')]+'%'},_0xffb6b3;})})),_0xd292e0=_[_0x409938('0x14a')]({},_0xd292e0,_0x7b2c73[_0x409938('0x36')]),_0x108430['getWhatsappInteractions'](_0xd292e0);})[_0x13c451('0x94')](function(_0x4e772d){const _0x593bf3=_0x13c451;if(_0x4e772d)return _0x2aee64=_0x4e772d[_0x593bf3('0x32')],typeof _0x7b2c73['query'][_0x593bf3('0x6a')]===_0x593bf3('0xe2')&&(_0xd292e0[_0x593bf3('0x48')]=qs[_0x593bf3('0x48')](_0x7b2c73[_0x593bf3('0x71')][_0x593bf3('0x48')]),_0xd292e0['offset']=qs[_0x593bf3('0x145')](_0x7b2c73[_0x593bf3('0x71')][_0x593bf3('0x145')])),_0x108430[_0x593bf3('0x44')](_0xd292e0);})['then'](function(_0x9b0a7){if(_0x9b0a7)return _0x9b0a7?{'count':_0x2aee64,'rows':_0x9b0a7}:null;})[_0x13c451('0x94')](respondWithResult(_0x16381d,null))[_0x13c451('0x2e')](handleError(_0x16381d,null));},exports[_0x2cfc45('0x51')]=function(_0x63b87c,_0x3c8736,_0x11a8ff){const _0x262932=_0x2cfc45;let _0x5a347c,_0x4ce17c,_0x13a735;const _0x327c0d=!_[_0x262932('0xaa')](_0x63b87c[_0x262932('0x102')]['id'])?_0x63b87c[_0x262932('0x102')]['id']:!_[_0x262932('0xaa')](_0x63b87c[_0x262932('0x113')]['id'])?_0x63b87c['user']['id']:null;return db[_0x262932('0x7a')]['findOne']({'where':{'id':_0x327c0d,'role':{[Op['or']]:[_0x262932('0x13c'),_0x262932('0x113'),'agent']}},'attributes':['id',_0x262932('0x73'),_0x262932('0x1c'),_0x262932('0xb0'),'role',_0x262932('0x4c'),_0x262932('0x148')]})[_0x262932('0x94')](function(_0x22a8e8){const _0x415a18=_0x262932;if(_0x22a8e8){if(_0x22a8e8[_0x415a18('0x65')]===_0x415a18('0xc1')){_0x5a347c=_0x22a8e8;if(_0x63b87c[_0x415a18('0xda')][_0x415a18('0x20')])_0x13a735=util['format'](_0x415a18('0x138'),_0x5a347c[_0x63b87c[_0x415a18('0xda')]['interface']]);else _0x63b87c['body'][_0x415a18('0x40')]?_0x13a735=util['format'](_0x415a18('0x155'),_0x63b87c['body'][_0x415a18('0x40')]):_0x13a735=util[_0x415a18('0x1')]('SIP/%s',_0x5a347c[_0x415a18('0x73')]);return socket['to'](util['format']('user:%s',_0x5a347c[_0x415a18('0x73')]))['emit']('user:forcelogout',{'ip':_0x63b87c[_0x415a18('0x118')]['x-forwarded-for']||_0x63b87c['connection'][_0x415a18('0x11e')]||_0x63b87c[_0x415a18('0x8c')]['remoteAddress']||_0x63b87c[_0x415a18('0x12a')][_0x415a18('0x8c')][_0x415a18('0x11e')]}),db['UserVoiceQueueRt'][_0x415a18('0x5c')]({'where':{'membername':_0x5a347c[_0x415a18('0x73')]},'individualHooks':!![]});}}else throw new ValidationError(_0x415a18('0x109'));})['then'](function(){const _0x25d405=_0x262932;if(_0x5a347c)return _0x5a347c[_0x25d405('0x9c')]({'raw':!![]});})[_0x262932('0x94')](function(_0x3a3e89){const _0x503c81=_0x262932;if(_0x5a347c){if(_0x3a3e89){_0x4ce17c=_0x3a3e89;if(_0x4ce17c[_0x503c81('0x32')]){const _0x50116e=_0x4ce17c[_0x503c81('0x140')](_0x1cd2af=>{const _0x3b5359=_0x503c81,_0x4b6822={'membername':_0x5a347c[_0x3b5359('0x73')],'UserId':_0x5a347c['id'],'queue_name':_0x1cd2af[_0x3b5359('0x73')],'VoiceQueueId':_0x1cd2af['id'],'interface':_0x13a735,'paused':_0x5a347c['loginInPause']||![],'penalty':_0x1cd2af[_0x3b5359('0x10f')]||0x0};return db['UserVoiceQueueRt'][_0x3b5359('0x25')](_0x4b6822);});return Promise[_0x503c81('0xd9')](_0x50116e);}}}})[_0x262932('0x94')](function(){const _0x171b47=_0x262932;if(_0x5a347c)return db['MemberReport'][_0x171b47('0x4')]({'where':{'membername':_0x5a347c[_0x171b47('0x73')],'exitAt':null}});})[_0x262932('0x94')](function(_0x5c2f83){const _0x5907d6=_0x262932;if(_0x5a347c){const _0x61f4b4=[];return _0x5c2f83[_0x5907d6('0x13b')](function(_0x3e9f5d){const _0x5b52f0=_0x5907d6;_0x61f4b4[_0x5b52f0('0xc4')](_0x3e9f5d[_0x5b52f0('0x57')]({'exitAt':moment()[_0x5b52f0('0x1')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x5907d6('0xd9')](_0x61f4b4);}})[_0x262932('0x94')](function(){const _0x449c51=_0x262932;if(_0x5a347c){const _0x493706=[],_0x433fa8=[],_0x560ef9=utils['getChannels'](),_0xa839e8={'membername':_0x5a347c[_0x449c51('0x73')],'interface':_0x13a735,'enterAt':moment()[_0x449c51('0x1')](_0x449c51('0xed')),'role':_0x5a347c[_0x449c51('0x65')],'internal':_0x5a347c[_0x449c51('0x4c')]};return _0x560ef9[_0x449c51('0x13b')](function(_0x2112e7){const _0x3c0812=_0x449c51;_0x493706['push'](_['merge']({'channel':_0x2112e7,'type':_0x3c0812('0xc2'),'data1':_0x63b87c['body'][_0x3c0812('0x96')],'data2':_0x13a735},_0xa839e8)),_0x5a347c[_0x3c0812('0x148')]&&_0x433fa8[_0x3c0812('0xc4')](_[_0x3c0812('0x14a')]({'channel':_0x2112e7,'type':_0x3c0812('0xfd'),'data1':_0x3c0812('0xcd')},_0xa839e8));}),db['MemberReport']['bulkCreate'](_0x493706[_0x449c51('0x159')](_0x433fa8),{'individualHooks':!![]});}})[_0x262932('0x94')](function(){const _0x3e794a=_0x262932;if(_0x5a347c)return _0x5a347c[_0x3e794a('0x57')]({'online':!![],'lastLoginAt':moment()[_0x3e794a('0x1')]('YYYY-MM-DD\x20HH:mm:ss'),'voicePause':_0x5a347c[_0x3e794a('0x148')]||![],'mailPause':_0x5a347c[_0x3e794a('0x148')]||![],'chatPause':_0x5a347c[_0x3e794a('0x148')]||![],'faxPause':_0x5a347c['loginInPause']||![],'smsPause':_0x5a347c[_0x3e794a('0x148')]||![],'openchannelPause':_0x5a347c['loginInPause']||![],'whatsappPause':_0x5a347c['loginInPause']||![],'pauseType':_0x5a347c['loginInPause']?'LOGININPAUSE':null,'interface':_0x13a735,'lastPauseAt':moment()[_0x3e794a('0x1')]('YYYY-MM-DD\x20HH:mm:ss')});})['then'](function(_0x2dad2){const _0x4aebb2=_0x262932;return _0x63b87c[_0x4aebb2('0x38')]?_0x11a8ff():Promise[_0x4aebb2('0x4f')](_0x2dad2)['then'](respondWithResult(_0x3c8736,null));})[_0x262932('0x2e')](handleError(_0x3c8736,null));},exports[_0x2cfc45('0xa9')]=function(_0x175adc,_0x478a44){const _0x1f51db=_0x2cfc45;let _0x35646f;return db['User'][_0x1f51db('0x1d')]({'where':{'id':_0x175adc[_0x1f51db('0x102')]['id'],'role':_0x1f51db('0xc1')},'attributes':['id','name',_0x1f51db('0x65')]})[_0x1f51db('0x94')](handleEntityNotFound(_0x478a44,null))[_0x1f51db('0x94')](function(_0x364c14){const _0x470542=_0x1f51db;if(_0x364c14)return _0x35646f=_0x364c14,db['UserVoiceQueueRt']['destroy']({'where':{'membername':_0x35646f[_0x470542('0x73')]},'individualHooks':!![]});})[_0x1f51db('0x94')](function(){const _0x12d40e=_0x1f51db;return db[_0x12d40e('0x130')]['findAll']({'where':{'membername':_0x35646f['name'],'exitAt':null}});})[_0x1f51db('0x94')](function(_0x376377){const _0x1779c2=_0x1f51db,_0x5ea364=[];return _0x376377[_0x1779c2('0x13b')](function(_0xe579f8){const _0x53a365=_0x1779c2;_0x5ea364['push'](_0xe579f8[_0x53a365('0x57')]({'exitAt':moment()[_0x53a365('0x1')](_0x53a365('0xed'))}));}),Promise['all'](_0x5ea364);})['then'](function(){const _0x1cb8e6=_0x1f51db;return _0x35646f[_0x1cb8e6('0x57')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![],'whatsappPause':![],'interface':null});})[_0x1f51db('0x94')](respondWithResult(_0x478a44,null))[_0x1f51db('0x2e')](handleError(_0x478a44,null));},exports['pause']=function(_0x471ca2,_0x3c0133){const _0xc37483=_0x2cfc45;let _0xe4d905;return db['UserVoiceQueueRt']['update']({'paused':0x1},{'where':{'UserId':_0x471ca2[_0xc37483('0x102')]['id']},'individualHooks':!![]})[_0xc37483('0x94')](function(){const _0x55a1a9=_0xc37483;return db[_0x55a1a9('0x7a')]['findOne']({'where':{'id':_0x471ca2['params']['id'],'role':'agent'},'attributes':['id','name','role',_0x55a1a9('0x4c'),_0x55a1a9('0x20')]});})[_0xc37483('0x94')](handleEntityNotFound(_0x3c0133,null))[_0xc37483('0x94')](function(_0x29bb64){const _0x3d17dc=_0xc37483;if(_0x29bb64)return _0xe4d905=_0x29bb64,respondWithRpcPromise(_0x3d17dc('0x2'),_0x3d17dc('0x39'),{'id':_0xe4d905['id'],'name':_0xe4d905[_0x3d17dc('0x73')],'pause':!![]});})['then'](function(){const _0x3bc743=_0xc37483;if(_0xe4d905)return db[_0x3bc743('0x130')][_0x3bc743('0x4')]({'where':{'membername':_0xe4d905[_0x3bc743('0x73')],'type':'PAUSE','exitAt':null}});})[_0xc37483('0x94')](function(_0x2a244b){const _0x4776c6=_0xc37483;if(_0x2a244b[_0x4776c6('0x32')]){const _0x20e184=moment()[_0x4776c6('0x1')]('YYYY-MM-DD\x20HH:mm:ss');for(let _0x13c0c3=0x0,_0x5b466a=_0x2a244b[_0x4776c6('0x32')];_0x13c0c3<_0x5b466a;_0x13c0c3++){_0x2a244b[_0x13c0c3][_0x4776c6('0x57')]({'exitAt':_0x20e184});}}})[_0xc37483('0x94')](function(){const _0x20ebdc=_0xc37483,_0x3cc43=[],_0x543b61=utils[_0x20ebdc('0xa0')]();return _0x543b61['forEach'](function(_0x379d4a){const _0x4bbb17=_0x20ebdc;_0x3cc43['push']({'channel':_0x379d4a,'membername':_0xe4d905['name'],'interface':_[_0x4bbb17('0xaa')](_0xe4d905[_0x4bbb17('0x20')])?util['format']('SIP/%s',_0xe4d905[_0x4bbb17('0x73')]):_0xe4d905[_0x4bbb17('0x20')],'type':_0x4bbb17('0xfd'),'enterAt':moment()[_0x4bbb17('0x1')](_0x4bbb17('0xed')),'data1':_0x471ca2[_0x4bbb17('0xda')][_0x4bbb17('0x98')]||_0x4bbb17('0x160'),'role':_0xe4d905['role'],'internal':_0xe4d905[_0x4bbb17('0x4c')]});}),db['MemberReport']['bulkCreate'](_0x3cc43,{'individualHooks':!![]});})[_0xc37483('0x94')](function(){const _0x63091a=_0xc37483;return _0xe4d905[_0x63091a('0x57')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'whatsappPause':!![],'openchannelPause':!![],'pauseType':_0x471ca2['body'][_0x63091a('0x98')]||'DEFAULT\x20PAUSE','lastPauseAt':moment()[_0x63091a('0x1')](_0x63091a('0xed'))});})[_0xc37483('0x94')](respondWithResult(_0x3c0133,null))[_0xc37483('0x2e')](handleError(_0x3c0133,null));},exports[_0x2cfc45('0xd6')]=function(_0x3daa44,_0x99b56c){const _0x5eb7ba=_0x2cfc45;let _0x40e5da;return db[_0x5eb7ba('0x7a')]['findOne']({'where':{'id':_0x3daa44['params']['id']},'attributes':['id',_0x5eb7ba('0x73'),_0x5eb7ba('0x65'),'voicePause',_0x5eb7ba('0x6f'),_0x5eb7ba('0x116'),_0x5eb7ba('0x6e'),_0x5eb7ba('0xc5'),_0x5eb7ba('0xf4'),'whatsapppause',_0x5eb7ba('0x49'),_0x5eb7ba('0x76')]})[_0x5eb7ba('0x94')](handleEntityNotFound(_0x99b56c,null))[_0x5eb7ba('0x94')](function(_0x9d1aa3){const _0x205c6c=_0x5eb7ba;if(_0x9d1aa3){_0x40e5da=_0x9d1aa3;if(_0x3daa44[_0x205c6c('0xda')][_0x205c6c('0x121')]&&!utils['isValidChannel'](_0x3daa44[_0x205c6c('0xda')][_0x205c6c('0x121')]))throw new ValidationError(_0x205c6c('0x16'));switch(_0x3daa44[_0x205c6c('0xda')][_0x205c6c('0x121')]){case'voice':return respondWithRpcPromise('QueuePause',_0x205c6c('0xd6'),{'id':_0x40e5da['id'],'name':_0x40e5da[_0x205c6c('0x73')],'pause':![]})[_0x205c6c('0x94')](function(){const _0x304c1b=_0x205c6c;return db[_0x304c1b('0x9d')][_0x304c1b('0x57')]({'paused':0x0},{'where':{'UserId':_0x40e5da['id']},'individualHooks':!![]});})[_0x205c6c('0x94')](function(){const _0xd95911=_0x205c6c;return db[_0xd95911('0x130')]['findOne']({'where':{'channel':_0x3daa44['body']['channel'],'membername':_0x40e5da[_0xd95911('0x73')],'type':_0xd95911('0xfd'),'exitAt':null}});})[_0x205c6c('0x94')](function(_0x5ec4e1){const _0x443511=_0x205c6c;if(_0x5ec4e1)return _0x5ec4e1[_0x443511('0x57')]({'exitAt':moment()[_0x443511('0x1')](_0x443511('0xed')),'data2':_0x443511('0x35')},{'individualHooks':!![]});return null;})[_0x205c6c('0x94')](function(){return _0x40e5da['update']({'voicePause':![]});});case _0x205c6c('0xa5'):case'chat':case'fax':case _0x205c6c('0xb7'):case _0x205c6c('0xbc'):case _0x205c6c('0xb4'):return db[_0x205c6c('0x130')][_0x205c6c('0x1d')]({'where':{'channel':_0x3daa44[_0x205c6c('0xda')]['channel'],'membername':_0x40e5da['name'],'type':_0x205c6c('0xfd'),'exitAt':null}})[_0x205c6c('0x94')](function(_0x1a7dfd){const _0x359251=_0x205c6c;if(_0x1a7dfd)return _0x1a7dfd[_0x359251('0x57')]({'exitAt':moment()['format'](_0x359251('0xed')),'data2':_0x359251('0x35')},{'individualHooks':!![]});return null;})[_0x205c6c('0x94')](function(){const _0x2e3a6a=_0x205c6c,_0x567373={};return _[_0x2e3a6a('0xe6')](_0x567373,util[_0x2e3a6a('0x1')](_0x2e3a6a('0x45'),_0x3daa44[_0x2e3a6a('0xda')][_0x2e3a6a('0x121')],_0x2e3a6a('0x4b')),![]),_0x40e5da[_0x2e3a6a('0x57')](_0x567373);});default:return respondWithRpcPromise('QueuePause',_0x205c6c('0xd6'),{'id':_0x40e5da['id'],'name':_0x40e5da[_0x205c6c('0x73')],'pause':![]})[_0x205c6c('0x94')](function(){const _0x516113=_0x205c6c;return db['UserVoiceQueueRt'][_0x516113('0x57')]({'paused':0x0},{'where':{'UserId':_0x40e5da['id']}});})['then'](function(){const _0x45d64a=_0x205c6c;return db['MemberReport'][_0x45d64a('0x4')]({'where':{'membername':_0x40e5da[_0x45d64a('0x73')],'type':_0x45d64a('0xfd'),'exitAt':null}});})[_0x205c6c('0x94')](function(_0x2e2561){const _0xc8de2=_0x205c6c,_0x5e0a58=[];return _0x2e2561[_0xc8de2('0x13b')](function(_0x538d3f){const _0x57032c=_0xc8de2;_0x5e0a58['push'](_0x538d3f[_0x57032c('0x57')]({'exitAt':moment()[_0x57032c('0x1')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x57032c('0x35')}));}),Promise[_0xc8de2('0xd9')](_0x5e0a58);})['then'](function(){const _0x460871=_0x205c6c;return _0x40e5da[_0x460871('0x57')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'whatsappPause':![],'openchannelPause':![]});});}}})[_0x5eb7ba('0x94')](respondWithResult(_0x99b56c,null))[_0x5eb7ba('0x2e')](handleError(_0x99b56c,null));},exports[_0x2cfc45('0x61')]=function(_0x32a5bc,_0x573868){const _0x743869=_0x2cfc45;let _0x2a43a2={};const _0x225f6c={};let _0x4b7a1b,_0x2ac16f;return db['User'][_0x743869('0x1d')]({'where':{'id':_0x32a5bc[_0x743869('0x102')]['id']}})['then'](handleEntityNotFound(_0x573868,null))[_0x743869('0x94')](function(_0x578021){const _0xc5f54f=_0x743869;if(_0x578021)return _0x4b7a1b=_0x578021,_0x225f6c['model']=_[_0xc5f54f('0x111')](db[_0xc5f54f('0xe9')]['rawAttributes']),_0x225f6c[_0xc5f54f('0x71')]=_[_0xc5f54f('0x111')](_0x32a5bc[_0xc5f54f('0x71')]),_0x225f6c[_0xc5f54f('0xb2')]=_[_0xc5f54f('0x81')](_0x225f6c[_0xc5f54f('0x101')],_0x225f6c[_0xc5f54f('0x71')]),_0x2a43a2[_0xc5f54f('0x6c')]=_[_0xc5f54f('0x81')](_0x225f6c[_0xc5f54f('0x101')],qs[_0xc5f54f('0x3')](_0x32a5bc[_0xc5f54f('0x71')][_0xc5f54f('0x3')])),_0x2a43a2[_0xc5f54f('0x6c')]=_0x2a43a2[_0xc5f54f('0x6c')]['length']?_0x2a43a2['attributes']:_0x225f6c[_0xc5f54f('0x101')],_0x2a43a2[_0xc5f54f('0x15b')]=qs[_0xc5f54f('0xeb')](_0x32a5bc['query'][_0xc5f54f('0xeb')]),_0x2a43a2[_0xc5f54f('0xf5')]=qs[_0xc5f54f('0xb2')](_[_0xc5f54f('0x6')](_0x32a5bc[_0xc5f54f('0x71')],_0x225f6c['filters'])),_0x32a5bc[_0xc5f54f('0x71')][_0xc5f54f('0x1a')]&&(_0x2a43a2[_0xc5f54f('0xf5')]=_[_0xc5f54f('0x14a')](_0x2a43a2[_0xc5f54f('0xf5')],{[Op['or']]:_[_0xc5f54f('0x140')](_0x2a43a2[_0xc5f54f('0x6c')],function(_0x57644e){const _0x1e6328=_0xc5f54f,_0x6344b7={};return _0x6344b7[_0x57644e]={[Op[_0x1e6328('0x156')]]:'%'+_0x32a5bc[_0x1e6328('0x71')][_0x1e6328('0x1a')]+'%'},_0x6344b7;})})),_0x2a43a2=_[_0xc5f54f('0x14a')]({},_0x2a43a2,_0x32a5bc[_0xc5f54f('0x36')]),_0x4b7a1b['getTeams'](_0x2a43a2);})[_0x743869('0x94')](function(_0x546553){const _0x3fff00=_0x743869;if(_0x546553)return _0x2ac16f=_0x546553[_0x3fff00('0x32')],typeof _0x32a5bc['query']['nolimit']===_0x3fff00('0xe2')&&(_0x2a43a2['limit']=qs[_0x3fff00('0x48')](_0x32a5bc[_0x3fff00('0x71')]['limit']),_0x2a43a2['offset']=qs['offset'](_0x32a5bc[_0x3fff00('0x71')][_0x3fff00('0x145')])),_0x4b7a1b['getTeams'](_0x2a43a2);})[_0x743869('0x94')](function(_0x30e005){if(_0x30e005)return _0x30e005?{'count':_0x2ac16f,'rows':_0x30e005}:null;})[_0x743869('0x94')](respondWithResult(_0x573868,null))['catch'](handleError(_0x573868,null));},exports['addTeams']=function(_0x1f4e6e,_0x469d44){const _0x35b1de=_0x2cfc45;return db[_0x35b1de('0x7a')][_0x35b1de('0x1d')]({'where':{'id':_0x1f4e6e['params']['id']}})[_0x35b1de('0x94')](handleEntityNotFound(_0x469d44,null))[_0x35b1de('0x94')](function(_0x5b1c4a){const _0x65d8e9=_0x35b1de;if(_0x5b1c4a){const _0x2253d8=_0x5b1c4a[_0x65d8e9('0x67')]({'plain':!![]});return _0x5b1c4a[_0x65d8e9('0x129')](_0x1f4e6e[_0x65d8e9('0xda')][_0x65d8e9('0x157')],_['omit'](_0x1f4e6e[_0x65d8e9('0xda')],['ids','id'])||{})['then'](function(){const _0x3483e6=_0x65d8e9;for(let _0x4e81b8=0x0;_0x4e81b8<_0x1f4e6e[_0x3483e6('0xda')][_0x3483e6('0x157')][_0x3483e6('0x32')];_0x4e81b8++){let _0x53bf57=[];db[_0x3483e6('0xe9')]['findOne']({'where':{'id':_0x1f4e6e[_0x3483e6('0xda')]['ids'][_0x4e81b8]}})[_0x3483e6('0x94')](function(_0x427f8){const _0xedd767=_0x3483e6;return _0x53bf57[_0xedd767('0xc4')](_0x427f8[_0xedd767('0x9c')]()[_0xedd767('0x94')](function(_0x17b62c){const _0x19fd70=_0xedd767;for(let _0x5e01fc=0x0;_0x5e01fc<_0x17b62c[_0x19fd70('0x32')];_0x5e01fc++){_0x17b62c[_0x5e01fc][_0x19fd70('0x105')](_0x19fd70('0x121'),_0x19fd70('0x41'));}return _0x17b62c;})),_0x53bf57[_0xedd767('0xc4')](_0x427f8['getChatQueues']()[_0xedd767('0x94')](function(_0x55c095){const _0x530c8a=_0xedd767;for(let _0x323efd=0x0;_0x323efd<_0x55c095[_0x530c8a('0x32')];_0x323efd++){_0x55c095[_0x323efd][_0x530c8a('0x105')]('channel',_0x530c8a('0x3a'));}return _0x55c095;})),_0x53bf57['push'](_0x427f8[_0xedd767('0x11d')]()[_0xedd767('0x94')](function(_0x16a0bd){const _0x5dd2a5=_0xedd767;for(let _0xac2adf=0x0;_0xac2adf<_0x16a0bd[_0x5dd2a5('0x32')];_0xac2adf++){_0x16a0bd[_0xac2adf][_0x5dd2a5('0x105')](_0x5dd2a5('0x121'),'Mail');}return _0x16a0bd;})),_0x53bf57[_0xedd767('0xc4')](_0x427f8[_0xedd767('0x1e')]()[_0xedd767('0x94')](function(_0x50ac06){const _0x1ea69b=_0xedd767;for(let _0x3a46b1=0x0;_0x3a46b1<_0x50ac06[_0x1ea69b('0x32')];_0x3a46b1++){_0x50ac06[_0x3a46b1][_0x1ea69b('0x105')](_0x1ea69b('0x121'),'Sms');}return _0x50ac06;})),_0x53bf57[_0xedd767('0xc4')](_0x427f8[_0xedd767('0x14c')]()['then'](function(_0x37fddb){const _0x5df272=_0xedd767;for(let _0x3b1da2=0x0;_0x3b1da2<_0x37fddb['length'];_0x3b1da2++){_0x37fddb[_0x3b1da2][_0x5df272('0x105')](_0x5df272('0x121'),_0x5df272('0xcc'));}return _0x37fddb;})),_0x53bf57['push'](_0x427f8[_0xedd767('0x152')]()[_0xedd767('0x94')](function(_0x186815){const _0x265a9d=_0xedd767;for(let _0x73af9e=0x0;_0x73af9e<_0x186815['length'];_0x73af9e++){_0x186815[_0x73af9e]['setDataValue'](_0x265a9d('0x121'),_0x265a9d('0xf'));}return _0x186815;})),_0x53bf57[_0xedd767('0xc4')](_0x427f8[_0xedd767('0xe1')]()[_0xedd767('0x94')](function(_0xcfa4cb){const _0x54a3d0=_0xedd767;for(let _0x2af8c2=0x0;_0x2af8c2<_0xcfa4cb[_0x54a3d0('0x32')];_0x2af8c2++){_0xcfa4cb[_0x2af8c2][_0x54a3d0('0x105')](_0x54a3d0('0x121'),_0x54a3d0('0x12'));}return _0xcfa4cb;})),Promise[_0xedd767('0xd9')](_0x53bf57);})[_0x3483e6('0x94')](function(_0x4775db){const _0x18cb32=_0x3483e6,_0x233e45=_[_0x18cb32('0xea')](_0x4775db);return _0x53bf57=[],db[_0x18cb32('0xb3')][_0x18cb32('0x70')](function(_0x30f4c7){const _0x399676=_0x18cb32;for(let _0x42f03a=0x0;_0x42f03a<_0x233e45[_0x399676('0x32')];_0x42f03a++){_0x53bf57['push'](_0x233e45[_0x42f03a][_0x399676('0xe4')](_0x2253d8['id']),{'transaction':_0x30f4c7});}return Promise['all'](_0x53bf57)[_0x399676('0x94')](function(){const _0x563524=_0x399676;if(_0x2253d8[_0x563524('0x89')])return Promise[_0x563524('0x10c')](_[_0x563524('0x1a')](_0x233e45,function(_0x375c71){const _0x37d1e2=_0x563524;return _0x375c71[_0x37d1e2('0x127')]('channel')===_0x37d1e2('0x41');}),function(_0x27b83d){const _0x3d0c1d=_0x563524;return db[_0x3d0c1d('0x9d')][_0x3d0c1d('0x25')]({'membername':_0x2253d8[_0x3d0c1d('0x73')],'UserId':_0x2253d8['id'],'queue_name':_0x27b83d[_0x3d0c1d('0x73')],'VoiceQueueId':_0x27b83d['id'],'interface':_['isNil'](_0x2253d8[_0x3d0c1d('0x20')])?util[_0x3d0c1d('0x1')](_0x3d0c1d('0x155'),_0x2253d8[_0x3d0c1d('0x73')]):_0x2253d8[_0x3d0c1d('0x20')],'paused':_0x2253d8[_0x3d0c1d('0xef')]||![],'penalty':_0x2253d8[_0x3d0c1d('0x92')]},{'transaction':_0x30f4c7});});else return;})[_0x399676('0x94')](function(){const _0x4b9833=_0x399676;for(let _0x37537e=0x0;_0x37537e<_0x233e45[_0x4b9833('0x32')];_0x37537e++){const _0x4c952f=_0x233e45[_0x37537e][_0x4b9833('0x127')](_0x4b9833('0x121')),_0x3967f7=_0x4c952f+'QueueId';socket[_0x4b9833('0x14e')](_0x4b9833('0x113')+_0x4c952f+_0x4b9833('0x90'),{'UserId':_0x2253d8['id'],[_0x3967f7]:_0x233e45[_0x37537e]['id']});}});});});}});}})[_0x35b1de('0x94')](respondWithStatusCode(_0x469d44,null))[_0x35b1de('0x2e')](handleError(_0x469d44,null));},exports[_0x2cfc45('0x125')]=function(_0x4a9abd,_0x4c2ff6){const _0x4d6aef=_0x2cfc45;return db['User']['findOne']({'where':{'id':_0x4a9abd[_0x4d6aef('0x102')]['id']}})[_0x4d6aef('0x94')](handleEntityNotFound(_0x4c2ff6,null))[_0x4d6aef('0x94')](function(_0x1ba507){const _0x1627c1=_0x4d6aef;if(_0x1ba507){const _0x491cf3=_0x1ba507[_0x1627c1('0x67')]({'plain':!![]}),_0x546997=_0x4a9abd['query'][_0x1627c1('0x157')];return _0x1ba507[_0x1627c1('0x125')](_0x546997)[_0x1627c1('0x94')](function(){const _0x2cf4e1=_0x1627c1;for(let _0x394b18=0x0;_0x394b18<_0x546997[_0x2cf4e1('0x32')];_0x394b18++){let _0x4953a7=[];db[_0x2cf4e1('0xe9')][_0x2cf4e1('0x1d')]({'where':{'id':_0x546997[_0x394b18]}})[_0x2cf4e1('0x94')](function(_0x5cea8c){const _0x2434bd=_0x2cf4e1;return _0x4953a7['push'](_0x5cea8c[_0x2434bd('0x9c')]()[_0x2434bd('0x94')](function(_0x9e8e14){const _0x5365c=_0x2434bd;for(let _0x3a7de7=0x0;_0x3a7de7<_0x9e8e14[_0x5365c('0x32')];_0x3a7de7++){_0x9e8e14[_0x3a7de7]['setDataValue'](_0x5365c('0x121'),_0x5365c('0x41'));}return _0x9e8e14;})),_0x4953a7['push'](_0x5cea8c[_0x2434bd('0xd4')]()[_0x2434bd('0x94')](function(_0x75cceb){const _0x50f20e=_0x2434bd;for(let _0x2b38c7=0x0;_0x2b38c7<_0x75cceb[_0x50f20e('0x32')];_0x2b38c7++){_0x75cceb[_0x2b38c7][_0x50f20e('0x105')]('channel',_0x50f20e('0x3a'));}return _0x75cceb;})),_0x4953a7['push'](_0x5cea8c[_0x2434bd('0x11d')]()[_0x2434bd('0x94')](function(_0xbb74dd){const _0x24bd3f=_0x2434bd;for(let _0x3c16ac=0x0;_0x3c16ac<_0xbb74dd[_0x24bd3f('0x32')];_0x3c16ac++){_0xbb74dd[_0x3c16ac][_0x24bd3f('0x105')](_0x24bd3f('0x121'),_0x24bd3f('0xf3'));}return _0xbb74dd;})),_0x4953a7['push'](_0x5cea8c[_0x2434bd('0x1e')]()[_0x2434bd('0x94')](function(_0x1275b9){const _0x4bf60f=_0x2434bd;for(let _0x36b2c7=0x0;_0x36b2c7<_0x1275b9[_0x4bf60f('0x32')];_0x36b2c7++){_0x1275b9[_0x36b2c7][_0x4bf60f('0x105')](_0x4bf60f('0x121'),_0x4bf60f('0x124'));}return _0x1275b9;})),_0x4953a7[_0x2434bd('0xc4')](_0x5cea8c[_0x2434bd('0x14c')]()[_0x2434bd('0x94')](function(_0x3cf4a8){const _0x2db74a=_0x2434bd;for(let _0x53e30a=0x0;_0x53e30a<_0x3cf4a8[_0x2db74a('0x32')];_0x53e30a++){_0x3cf4a8[_0x53e30a]['setDataValue']('channel','Whatsapp');}return _0x3cf4a8;})),_0x4953a7[_0x2434bd('0xc4')](_0x5cea8c['getFaxQueues']()[_0x2434bd('0x94')](function(_0x1a9332){const _0x239635=_0x2434bd;for(let _0x294fea=0x0;_0x294fea<_0x1a9332['length'];_0x294fea++){_0x1a9332[_0x294fea][_0x239635('0x105')](_0x239635('0x121'),_0x239635('0xf'));}return _0x1a9332;})),_0x4953a7[_0x2434bd('0xc4')](_0x5cea8c[_0x2434bd('0xe1')]()['then'](function(_0x25385b){const _0x2c0cf8=_0x2434bd;for(let _0x58e5c2=0x0;_0x58e5c2<_0x25385b[_0x2c0cf8('0x32')];_0x58e5c2++){_0x25385b[_0x58e5c2]['setDataValue'](_0x2c0cf8('0x121'),_0x2c0cf8('0x12'));}return _0x25385b;})),Promise[_0x2434bd('0xd9')](_0x4953a7);})[_0x2cf4e1('0x94')](function(_0x292960){const _0x1316df=_0x2cf4e1,_0x23a57e=_[_0x1316df('0xea')](_0x292960);return _0x4953a7=[],db['sequelize'][_0x1316df('0x70')](function(_0x187c9e){const _0xfff396=_0x1316df;for(let _0x1584d3=0x0;_0x1584d3<_0x23a57e[_0xfff396('0x32')];_0x1584d3++){_0x4953a7[_0xfff396('0xc4')](_0x23a57e[_0x1584d3]['removeAgent'](_0x491cf3['id']),{'transaction':_0x187c9e});}return Promise[_0xfff396('0xd9')](_0x4953a7)[_0xfff396('0x94')](function(){const _0x131c50=_0xfff396;if(_0x491cf3[_0x131c50('0x89')])return Promise['each'](_[_0x131c50('0x1a')](_0x23a57e,function(_0x27cf62){const _0x1c7281=_0x131c50;return _0x27cf62[_0x1c7281('0x127')](_0x1c7281('0x121'))==='Voice';}),function(_0x187667){return db['UserVoiceQueueRt']['destroy']({'where':{'VoiceQueueId':_0x187667['id'],'UserId':_0x491cf3['id']},'transaction':_0x187c9e});});else return;})['then'](function(){const _0x12e36f=_0xfff396;for(let _0x49eac9=0x0;_0x49eac9<_0x23a57e[_0x12e36f('0x32')];_0x49eac9++){const _0x23550d=_0x23a57e[_0x49eac9]['getDataValue'](_0x12e36f('0x121')),_0x6479ea=_0x23550d+_0x12e36f('0x147');socket[_0x12e36f('0x14e')](_0x12e36f('0x113')+_0x23550d+_0x12e36f('0x5'),{'UserId':_0x491cf3['id'],[_0x6479ea]:_0x23a57e[_0x49eac9]['id']});}});});});}});}})[_0x4d6aef('0x94')](respondWithStatusCode(_0x4c2ff6,null))[_0x4d6aef('0x2e')](handleError(_0x4c2ff6,null));},exports[_0x2cfc45('0x11')]=function(_0x2300dd,_0x1bc6b7){const _0x42fb38=_0x2cfc45;let _0x4df8fe={};const _0x5952e0={};let _0x3c2ab5,_0x3c2aaa;return db[_0x42fb38('0x7a')]['findOne']({'where':{'id':_0x2300dd[_0x42fb38('0x102')]['id']}})[_0x42fb38('0x94')](handleEntityNotFound(_0x1bc6b7,null))[_0x42fb38('0x94')](function(_0x188c13){const _0xa13fa1=_0x42fb38;if(_0x188c13)return _0x3c2ab5=_0x188c13,_0x5952e0[_0xa13fa1('0x101')]=_[_0xa13fa1('0x111')](db['CmList'][_0xa13fa1('0x66')]),_0x5952e0['query']=_[_0xa13fa1('0x111')](_0x2300dd[_0xa13fa1('0x71')]),_0x5952e0[_0xa13fa1('0xb2')]=_[_0xa13fa1('0x81')](_0x5952e0[_0xa13fa1('0x101')],_0x5952e0[_0xa13fa1('0x71')]),_0x4df8fe[_0xa13fa1('0x6c')]=_['intersection'](_0x5952e0[_0xa13fa1('0x101')],qs[_0xa13fa1('0x3')](_0x2300dd[_0xa13fa1('0x71')]['fields'])),_0x4df8fe['attributes']=_0x4df8fe[_0xa13fa1('0x6c')][_0xa13fa1('0x32')]?_0x4df8fe['attributes']:_0x5952e0['model'],_0x4df8fe['order']=qs[_0xa13fa1('0xeb')](_0x2300dd[_0xa13fa1('0x71')][_0xa13fa1('0xeb')]),_0x4df8fe[_0xa13fa1('0xf5')]=qs[_0xa13fa1('0xb2')](_['pick'](_0x2300dd[_0xa13fa1('0x71')],_0x5952e0['filters'])),_0x2300dd[_0xa13fa1('0x71')][_0xa13fa1('0x1a')]&&(_0x4df8fe[_0xa13fa1('0xf5')]=_[_0xa13fa1('0x14a')](_0x4df8fe[_0xa13fa1('0xf5')],{[Op['or']]:_[_0xa13fa1('0x140')](_0x4df8fe['attributes'],function(_0x9af2a7){const _0x1f2569=_0xa13fa1,_0x5d73cb={};return _0x5d73cb[_0x9af2a7]={[Op['like']]:'%'+_0x2300dd[_0x1f2569('0x71')]['filter']+'%'},_0x5d73cb;})})),_0x4df8fe=_[_0xa13fa1('0x14a')]({},_0x4df8fe,_0x2300dd[_0xa13fa1('0x36')]),_0x3c2ab5[_0xa13fa1('0x11')](_0x4df8fe);})['then'](function(_0x1b6782){const _0x170d75=_0x42fb38;if(_0x1b6782)return _0x3c2aaa=_0x1b6782[_0x170d75('0x32')],typeof _0x2300dd[_0x170d75('0x71')]['nolimit']==='undefined'&&(_0x4df8fe['limit']=qs[_0x170d75('0x48')](_0x2300dd['query'][_0x170d75('0x48')]),_0x4df8fe[_0x170d75('0x145')]=qs[_0x170d75('0x145')](_0x2300dd[_0x170d75('0x71')][_0x170d75('0x145')])),_0x3c2ab5[_0x170d75('0x11')](_0x4df8fe);})[_0x42fb38('0x94')](function(_0xc6b389){if(_0xc6b389)return _0xc6b389?{'count':_0x3c2aaa,'rows':_0xc6b389}:null;})['then'](respondWithResult(_0x1bc6b7,null))[_0x42fb38('0x2e')](handleError(_0x1bc6b7,null));},exports[_0x2cfc45('0x8')]=function(_0x160294,_0x84fee5){const _0x18684d=_0x2cfc45;let _0x27403d={};const _0x32a37a={};let _0x2bfc18;return db['User']['findOne']({'where':{'id':_0x160294['params']['id']}})[_0x18684d('0x94')](handleEntityNotFound(_0x84fee5,null))[_0x18684d('0x94')](function(_0x376a6e){const _0x3da6db=_0x18684d;if(_0x376a6e)return _0x2bfc18=_0x376a6e,_0x32a37a[_0x3da6db('0x101')]=_[_0x3da6db('0x111')](db[_0x3da6db('0x7a')][_0x3da6db('0x66')]),_0x32a37a[_0x3da6db('0x71')]=_['keys'](_0x160294[_0x3da6db('0x71')]),_0x32a37a[_0x3da6db('0xb2')]=_[_0x3da6db('0x81')](_0x32a37a[_0x3da6db('0x101')],_0x32a37a['query']),_0x27403d[_0x3da6db('0x6c')]=_[_0x3da6db('0x81')](_0x32a37a[_0x3da6db('0x101')],qs[_0x3da6db('0x3')](_0x160294[_0x3da6db('0x71')][_0x3da6db('0x3')])),_0x27403d[_0x3da6db('0x6c')]=_0x27403d[_0x3da6db('0x6c')][_0x3da6db('0x32')]?_0x27403d[_0x3da6db('0x6c')]:_0x32a37a[_0x3da6db('0x101')],_0x27403d[_0x3da6db('0x15b')]=qs['sort'](_0x160294['query'][_0x3da6db('0xeb')]),_0x27403d['where']=qs[_0x3da6db('0xb2')](_[_0x3da6db('0x6')](_0x160294['query'],_0x32a37a[_0x3da6db('0xb2')])),_0x160294[_0x3da6db('0x71')]['filter']&&(_0x27403d[_0x3da6db('0xf5')]=_[_0x3da6db('0x14a')](_0x27403d[_0x3da6db('0xf5')],{[Op['or']]:_[_0x3da6db('0x140')](_0x27403d[_0x3da6db('0x6c')],function(_0xf74ce2){const _0x4a8e11=_0x3da6db,_0x1879eb={};return _0x1879eb[_0xf74ce2]={[Op[_0x4a8e11('0x156')]]:'%'+_0x160294[_0x4a8e11('0x71')]['filter']+'%'},_0x1879eb;})})),_0x27403d['model']=db[_0x3da6db('0x7a')],_0x27403d['as']=_0x3da6db('0xae'),_0x27403d=_['merge']({},_0x27403d,_0x160294[_0x3da6db('0x36')]),_0x2bfc18['getVoiceQueues']({'include':[_0x27403d]});})[_0x18684d('0x94')](function(_0x2cccf7){const _0x391cde=_0x18684d;if(_0x2cccf7){let _0x237809={};const _0x113d44=[];for(let _0x32e042=0x0;_0x32e042<_0x2cccf7['length'];_0x32e042+=0x1){for(let _0xb42ce5=0x0,_0x404239;_0xb42ce5<_0x2cccf7[_0x32e042]['Agents'][_0x391cde('0x32')];_0xb42ce5+=0x1){_0x404239=_0x2cccf7[_0x32e042][_0x391cde('0xae')][_0xb42ce5][_0x391cde('0x67')]({'plain':!![]}),_0x237809[_0x404239['id']]=_0x404239;}}_0x237809=_['values'](_0x237809);for(let _0x390eec=qs[_0x391cde('0x145')](_0x160294[_0x391cde('0x71')][_0x391cde('0x145')]);_0x390eec<_0x237809[_0x391cde('0x32')]&&_0x113d44['length']{const _0x2612a4=a650_0x184b;crypto[_0x2612a4('0x39')](_0x5cb9f7,function(_0x507cc5,_0x5e6c3a){const _0x598658=_0x2612a4;return _0x507cc5&&_0x15a4f7(_0x507cc5),_0x3f1ea0(_0x5e6c3a[_0x598658('0x3c')]('base64'));});});},_0x4d47fe[_0x55c910('0x41')][_0x55c910('0xf')]=function(_0x3b0378,_0x1eb2ee){const _0x465032=_0x55c910;if(!_0x3b0378||!this[_0x465032('0x2')])return _0x1eb2ee?_0x1eb2ee(null):null;const _0x245a80=0x2710,_0x381ed4=0x40,_0x557c18=Buffer[_0x465032('0x21')](this[_0x465032('0x2')],_0x465032('0x22'));if(!_0x1eb2ee)return crypto['pbkdf2Sync'](_0x3b0378,_0x557c18,_0x245a80,_0x381ed4,_0x465032('0x3d'))[_0x465032('0x3c')](_0x465032('0x22'));return crypto[_0x465032('0x19')](_0x3b0378,_0x557c18,_0x245a80,_0x381ed4,_0x465032('0x3d'),function(_0x5c6511,_0x46b8c2){const _0x1777b9=_0x465032;return _0x5c6511&&_0x1eb2ee(_0x5c6511),_0x1eb2ee(null,_0x46b8c2[_0x1777b9('0x3c')](_0x1777b9('0x22')));});},_0x4d47fe['prototype'][_0x55c910('0x29')]=async function(){const _0x197e07=_0x55c910;if(!this[_0x197e07('0x1f')])return null;if(!_[_0x197e07('0x42')](this['password'])&&authTypes[_0x197e07('0x3f')](this[_0x197e07('0x20')])===-0x1)throw new Error(_0x197e07('0x2c'));return this[_0x197e07('0x2')]=await this['makeSaltAsync'](),new Promise((_0x28275b,_0x422888)=>{const _0xef106d=_0x197e07;this[_0xef106d('0xf')](this[_0xef106d('0x1f')],(_0x562c25,_0x4445b0)=>{const _0x5a2ef1=_0xef106d;_0x562c25?_0x422888(_0x562c25):(this[_0x5a2ef1('0x1f')]=_0x4445b0,_0x28275b());});});},_0x4d47fe[_0x55c910('0x41')]['updateMd5Password']=function(){const _0x19f5c5=_0x55c910;this[_0x19f5c5('0x46')]=md5(this[_0x19f5c5('0x3')]+_0x19f5c5('0x31')+this[_0x19f5c5('0x1f')]);},_0x4d47fe;}; \ No newline at end of file +const a650_0x21ac=['./user.attributes','toString','destroy','internal','updateMd5Password','isEmpty','prefix','priority','salt','join','context','SIP/%s,,tTxXU(xcally-mixmonitor-context)','indexOf','resolve','%s%s','record','from-sip','Dial','chanspy','VoiceExtension','password','length','catch','SIP/%s,,tTxX','then','push','updatePassword','Hangup','recordingFormat','findAll','bulkCreate','exports','Authenticate','SIP/%s,%s','Set','gsm','base64','changed','format','User','makeSalt','Invalid\x20password','authenticate','provider','util','system','local','CDR(type)=%s','StopMixMonitor','utf8',':asterisk:','define','function','from','users','prototype','lodash','WAV','defaults','MixMonitor','Missing\x20Callback','sha1','crypto','randomBytes','encryptPassword','name','makeSaltAsync','auth','includes','_XCALLY_MIXMONITOR_FORMAT=%s','options','utf8_bin','merge','VoiceChanSpy','extensionMonitor','concat'];(function(_0x24e6b5,_0x21ac95){const _0x29f5ca=function(_0x45733b){while(--_0x45733b){_0x24e6b5['push'](_0x24e6b5['shift']());}};_0x29f5ca(++_0x21ac95);}(a650_0x21ac,0x71));const a650_0x29f5=function(_0x24e6b5,_0x21ac95){_0x24e6b5=_0x24e6b5-0x0;let _0x29f5ca=a650_0x21ac[_0x24e6b5];return _0x29f5ca;};const _0xebd815=a650_0x29f5;'use strict';const _=require(_0xebd815('0x13')),util=require(_0xebd815('0x7')),crypto=require(_0xebd815('0x19')),md5=require('md5'),sequelize=require('sequelize'),{Op}=sequelize,attributes=require(_0xebd815('0x27')),addUserApplication=function(_0x45733b,_0x267c5e){const _0x369764=_0xebd815,_0x5cea7d=['wav',_0x369764('0x14'),_0x369764('0x4a')],_0x4fc69b={'context':_0x45733b[_0x369764('0x31')]||_0x369764('0x37'),'exten':_0x267c5e,'type':_0x369764('0x8'),'isApp':![],'UserId':_0x45733b['id']},_0x45be23=[{'app':_0x369764('0x49'),'appdata':'CDR(type)=internal'}];_0x45733b[_0x369764('0x25')]&&_[_0x369764('0x1f')](_0x5cea7d,_0x45733b[_0x369764('0x25')])?(_0x45be23[_0x369764('0x40')]({'app':_0x369764('0x49'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}'}),_0x45be23[_0x369764('0x40')]({'app':_0x369764('0x49'),'appdata':util[_0x369764('0x1')](_0x369764('0x20'),_0x45733b[_0x369764('0x25')])}),_0x45be23[_0x369764('0x40')]({'app':_0x369764('0x38'),'appdata':util['format'](_0x369764('0x32'),_0x45733b[_0x369764('0x1c')])})):_0x45be23['push']({'app':_0x369764('0x38'),'appdata':util['format'](_0x369764('0x3e'),_0x45733b['name'])});_0x45be23['push']({'app':_0x369764('0x42')});for(let _0xfe0280=0x0;_0xfe0280<_0x45be23[_0x369764('0x3c')];_0xfe0280++){_0x45be23[_0xfe0280][_0x369764('0x2e')]=_0xfe0280+0x1,_0x45be23[_0xfe0280]=_[_0x369764('0x15')](_0x45be23[_0xfe0280],_0x4fc69b);}return _0x45be23;},addChanSpyApplications=function(_0x4a37a9,_0xec9c53,_0x4783a9){const _0xa3f9e1=_0xebd815,_0x2feea8={'context':_0x4a37a9['context']||_0xa3f9e1('0x37'),'type':_0xa3f9e1('0x8'),'isApp':![],'UserId':_0x4a37a9['id']},_0x873514=[];for(let _0x44bddd=0x0,_0x192acc=0x1;_0x44bddd<_0x4783a9[_0xa3f9e1('0x3c')];_0x44bddd++,_0x192acc=0x1){const _0x368859={'exten':util[_0xa3f9e1('0x1')](_0xa3f9e1('0x35'),_0x4783a9[_0x44bddd][_0xa3f9e1('0x2d')],_0xec9c53),'ChanSpyId':_0x4783a9[_0x44bddd]['id']};_0x873514['push'](_[_0xa3f9e1('0x23')]({'app':_0xa3f9e1('0x49'),'appdata':util[_0xa3f9e1('0x1')](_0xa3f9e1('0xa'),'chanspy'),'priority':_0x192acc++},_0x2feea8,_0x368859)),_0x4783a9[_0x44bddd][_0xa3f9e1('0x36')]&&_0x873514[_0xa3f9e1('0x40')](_['merge']({'app':_0xa3f9e1('0x16'),'appdata':util[_0xa3f9e1('0x1')]('${UNIQUEID}.%s,ab',_0x4783a9[_0x44bddd][_0xa3f9e1('0x43')]),'priority':_0x192acc++},_0x2feea8,_0x368859)),_0x4783a9[_0x44bddd][_0xa3f9e1('0x1e')]&&_0x873514[_0xa3f9e1('0x40')](_[_0xa3f9e1('0x23')]({'app':_0xa3f9e1('0x47'),'appdata':_0x4783a9[_0x44bddd]['password'],'priority':_0x192acc++},_0x2feea8,_0x368859)),_0x873514['push'](_['merge']({'app':'ChanSpy','appdata':util[_0xa3f9e1('0x1')](_0xa3f9e1('0x48'),_0x4a37a9[_0xa3f9e1('0x1c')],_0x4783a9[_0x44bddd]['options']?_0x4783a9[_0x44bddd][_0xa3f9e1('0x21')][_0xa3f9e1('0x30')](''):''),'priority':_0x192acc++},_0x2feea8,_0x368859)),_0x4783a9[_0x44bddd]['record']&&_0x873514[_0xa3f9e1('0x40')](_['merge']({'app':_0xa3f9e1('0xb'),'priority':_0x192acc++},_0x2feea8,_0x368859));}return _0x873514;},getChanSpy=function(_0x3768fe,_0x5b628c){return new Promise(function(_0x2154d1,_0x587e96){const _0x216776=a650_0x29f5;return _0x3768fe[_0x216776('0x24')][_0x216776('0x44')]()[_0x216776('0x3f')](function(_0x4ad0c4){const _0x1075ff=_0x216776;if(_0x4ad0c4){let _0x2d3740=addChanSpyApplications(_0x5b628c,_0x5b628c['internal'],_0x4ad0c4);return _0x5b628c['internal']!=_0x5b628c[_0x1075ff('0x1c')]&&(_0x2d3740=_0x2d3740[_0x1075ff('0x26')](addChanSpyApplications(_0x5b628c,_0x5b628c[_0x1075ff('0x1c')],_0x4ad0c4))),_0x2154d1(_0x2d3740);}return _0x2154d1([]);})['catch'](function(_0x529302){_0x587e96(_0x529302);});});},authTypes=['google',_0xebd815('0x9')];module[_0xebd815('0x46')]=function(_0x43a1d7){const _0x25cb8f=_0xebd815,_0x57f02f=_0x43a1d7['models'],_0x2a9dba=_0x43a1d7[_0x25cb8f('0xe')](_0x25cb8f('0x2'),attributes,{'tableName':_0x25cb8f('0x11'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeCreate':function(_0x2a5357){const _0x4a0d18=_0x25cb8f;return _0x2a5357[_0x4a0d18('0x2b')](),_0x2a5357[_0x4a0d18('0x41')]();},'beforeUpdate':function(_0xd63d04){const _0x29919f=_0x25cb8f;return _0xd63d04['changed']('password')?(_0xd63d04[_0x29919f('0x2b')](),_0xd63d04[_0x29919f('0x41')]()):Promise[_0x29919f('0x34')]();},'afterCreate':function(_0x25378b){const _0x3456fd=_0x25cb8f;let _0x1b9cd8=addUserApplication(_0x25378b,_0x25378b[_0x3456fd('0x2a')]);return _0x25378b['internal']!=_0x25378b['name']&&(_0x1b9cd8=_0x1b9cd8[_0x3456fd('0x26')](addUserApplication(_0x25378b,_0x25378b['name']))),_0x57f02f['VoiceExtension'][_0x3456fd('0x45')](_0x1b9cd8)[_0x3456fd('0x3f')](function(){const _0x16e6df=_0x3456fd;if(_0x25378b[_0x16e6df('0x39')])return getChanSpy(_0x57f02f,_0x25378b);})[_0x3456fd('0x3f')](function(_0x7b9fc2){const _0x105142=_0x3456fd;return _0x7b9fc2&&_0x7b9fc2[_0x105142('0x3c')]?_0x57f02f[_0x105142('0x3a')][_0x105142('0x45')](_0x7b9fc2):null;})[_0x3456fd('0x3d')](function(_0x5e23ce){return _0x5e23ce;});},'afterUpdate':function(_0x5f265){const _0x219815=_0x25cb8f;return Promise[_0x219815('0x34')]()[_0x219815('0x3f')](function(){const _0x4984d6=_0x219815;if(_0x5f265[_0x4984d6('0x0')](_0x4984d6('0x39'))||_0x5f265[_0x4984d6('0x0')](_0x4984d6('0x31')))return _0x57f02f[_0x4984d6('0x3a')][_0x4984d6('0x29')]({'where':{'UserId':_0x5f265['id'],'type':_0x4984d6('0x8'),'ChanSpyId':{[Op['ne']]:null}}})[_0x4984d6('0x3f')](function(){const _0x109281=_0x4984d6;if(_0x5f265[_0x109281('0x39')])return getChanSpy(_0x57f02f,_0x5f265)[_0x109281('0x3f')](function(_0x574eba){const _0x1f62b8=_0x109281;if(_0x574eba&&_0x574eba['length'])return _0x57f02f[_0x1f62b8('0x3a')][_0x1f62b8('0x45')](_0x574eba);});});})['then'](function(){const _0x5598a5=_0x219815;return _0x5f265['changed'](_0x5598a5('0x25'))||_0x5f265[_0x5598a5('0x0')](_0x5598a5('0x31'))?_0x57f02f[_0x5598a5('0x3a')]['destroy']({'where':{'UserId':_0x5f265['id'],'type':'system','ChanSpyId':null}})['then'](function(){const _0x3b488b=_0x5598a5;let _0x23fa99=addUserApplication(_0x5f265,_0x5f265[_0x3b488b('0x2a')]);return _0x5f265[_0x3b488b('0x2a')]!=_0x5f265[_0x3b488b('0x1c')]&&(_0x23fa99=_0x23fa99[_0x3b488b('0x26')](addUserApplication(_0x5f265,_0x5f265[_0x3b488b('0x1c')]))),_0x57f02f[_0x3b488b('0x3a')][_0x3b488b('0x45')](_0x23fa99);}):null;})[_0x219815('0x3d')](function(_0x1e962e){return _0x1e962e;});},'afterDestroy':function(_0x17f96b){const _0x3ff437=_0x25cb8f;return _0x57f02f[_0x3ff437('0x3a')][_0x3ff437('0x29')]({'where':{'UserId':_0x17f96b['id'],'type':'system'}});}},'charset':_0x25cb8f('0xc'),'collate':_0x25cb8f('0x22')});return _0x2a9dba['prototype'][_0x25cb8f('0x5')]=function(_0x458181,_0x1f280d){const _0x18d052=_0x25cb8f;if(!_0x1f280d)return this[_0x18d052('0x3b')]===this[_0x18d052('0x1b')](_0x458181);const _0xef75f=this;this[_0x18d052('0x1b')](_0x458181,function(_0x540950,_0x40430a){const _0x278d49=_0x18d052;_0x540950&&_0x1f280d(_0x540950),_0xef75f[_0x278d49('0x3b')]===_0x40430a?_0x1f280d(null,!![]):_0x1f280d(null,![]);});},_0x2a9dba[_0x25cb8f('0x12')][_0x25cb8f('0x3')]=function(_0x312412,_0x35043c){const _0x55f73d=_0x25cb8f,_0x2722cf=0x10;if(typeof arguments[0x0]===_0x55f73d('0xf'))_0x35043c=arguments[0x0],_0x312412=_0x2722cf;else{if(typeof arguments[0x1]==='function')_0x35043c=arguments[0x1];else throw new Error(_0x55f73d('0x17'));}return!_0x312412&&(_0x312412=_0x2722cf),crypto[_0x55f73d('0x1a')](_0x312412,function(_0x4a123c,_0x35e3c3){return _0x4a123c&&_0x35043c(_0x4a123c),_0x35043c(null,_0x35e3c3['toString']('base64'));});},_0x2a9dba['prototype'][_0x25cb8f('0x1d')]=async function(_0x8068bd=0x10){return new Promise((_0x2f5e1a,_0x1e988b)=>{const _0x2d70fb=a650_0x29f5;crypto[_0x2d70fb('0x1a')](_0x8068bd,function(_0x1b61b3,_0x5168bd){const _0x18ebfd=_0x2d70fb;return _0x1b61b3&&_0x1e988b(_0x1b61b3),_0x2f5e1a(_0x5168bd[_0x18ebfd('0x28')](_0x18ebfd('0x4b')));});});},_0x2a9dba[_0x25cb8f('0x12')][_0x25cb8f('0x1b')]=function(_0x547bf6,_0x58cd45){const _0x5ce4c3=_0x25cb8f;if(!_0x547bf6||!this[_0x5ce4c3('0x2f')])return _0x58cd45?_0x58cd45(null):null;const _0x35dbf7=0x2710,_0x5da4d4=0x40,_0x55e5d1=Buffer[_0x5ce4c3('0x10')](this[_0x5ce4c3('0x2f')],_0x5ce4c3('0x4b'));if(!_0x58cd45)return crypto['pbkdf2Sync'](_0x547bf6,_0x55e5d1,_0x35dbf7,_0x5da4d4,_0x5ce4c3('0x18'))[_0x5ce4c3('0x28')]('base64');return crypto['pbkdf2'](_0x547bf6,_0x55e5d1,_0x35dbf7,_0x5da4d4,_0x5ce4c3('0x18'),function(_0x2c7a7d,_0x2d58cd){const _0xbb9f93=_0x5ce4c3;return _0x2c7a7d&&_0x58cd45(_0x2c7a7d),_0x58cd45(null,_0x2d58cd[_0xbb9f93('0x28')](_0xbb9f93('0x4b')));});},_0x2a9dba[_0x25cb8f('0x12')][_0x25cb8f('0x41')]=async function(){const _0xdf8b2d=_0x25cb8f;if(!this['password'])return null;if(!_[_0xdf8b2d('0x2c')](this['password'])&&authTypes[_0xdf8b2d('0x33')](this[_0xdf8b2d('0x6')])===-0x1)throw new Error(_0xdf8b2d('0x4'));return this[_0xdf8b2d('0x2f')]=await this[_0xdf8b2d('0x1d')](),new Promise((_0x12cfa4,_0x53b126)=>{const _0xf8982b=_0xdf8b2d;this[_0xf8982b('0x1b')](this[_0xf8982b('0x3b')],(_0x50ab98,_0x4eb1ea)=>{const _0xe4eff=_0xf8982b;_0x50ab98?_0x53b126(_0x50ab98):(this[_0xe4eff('0x3b')]=_0x4eb1ea,_0x12cfa4());});});},_0x2a9dba[_0x25cb8f('0x12')]['updateMd5Password']=function(){const _0x17c5a5=_0x25cb8f;this['md5secret']=md5(this[_0x17c5a5('0x1c')]+_0x17c5a5('0xd')+this[_0x17c5a5('0x3b')]);},_0x2a9dba;}; \ No newline at end of file diff --git a/server/api/user/user.rpc.js b/server/api/user/user.rpc.js index 59317cb..e1fee39 100644 --- a/server/api/user/user.rpc.js +++ b/server/api/user/user.rpc.js @@ -1 +1 @@ -const a651_0x1cf8=['debug','GetUser','sequelize','%s%s','system','role','../../config/license/util','catch','channel','getChannels','DEFAULT\x20PAUSE','merge','error','isNil','../../config/utils','interface','Unknown\x20channel','UserVoiceQueueRt','uniqueid','SIP/%s','isValidChannel','../../mysqldb','ShowUser','lodash','all','sms','set','name','YYYY-MM-DD\x20HH:mm:ss','voice','update','length','../../rediscache','format','util','chat','type','LOGIN','loginInPause','include','push','LogoutUser','UserVoiceQueue.penalty','count','limit','where','forEach','options','PAUSE','map','then','body','MemberReport','mail','getLicense','register','mobile','findOne','LoginUser','message','internal','concat','agents','findAll','User','destroy','attributes','stringify','model','LOGININPAUSE','moment','upsert','info'];(function(_0x27a0eb,_0x1cf82b){const _0x4b8377=function(_0x189ad3){while(--_0x189ad3){_0x27a0eb['push'](_0x27a0eb['shift']());}};_0x4b8377(++_0x1cf82b);}(a651_0x1cf8,0x169));const a651_0x4b83=function(_0x27a0eb,_0x1cf82b){_0x27a0eb=_0x27a0eb-0x0;let _0x4b8377=a651_0x1cf8[_0x27a0eb];return _0x4b8377;};const _0x30f56c=a651_0x4b83;'use strict';const _=require(_0x30f56c('0x1b')),util=require(_0x30f56c('0x26')),db=require(_0x30f56c('0x19'))['db'],logger=require('../../config/logger')('rpc'),moment=require(_0x30f56c('0x1')),utils=require(_0x30f56c('0x12')),{getSocket}=require(_0x30f56c('0x24')),socket=getSocket(),sequelize=require(_0x30f56c('0x6')),{Op}=sequelize;require('./user.socket')[_0x30f56c('0x3b')](socket),exports[_0x30f56c('0x5')]=function(_0x189ad3){const _0xe831dc=this;return new Promise(function(_0x641e53,_0x879149){const _0x484a01=a651_0x4b83;return db[_0x484a01('0x44')]['findAll']({'raw':_0x189ad3[_0x484a01('0x33')]?_0x189ad3[_0x484a01('0x33')]['raw']===undefined?!![]:![]:!![],'where':_0x189ad3[_0x484a01('0x33')]?_0x189ad3[_0x484a01('0x33')][_0x484a01('0x31')]||null:null,'attributes':_0x189ad3[_0x484a01('0x33')]?_0x189ad3['options'][_0x484a01('0x46')]||null:null,'limit':_0x189ad3[_0x484a01('0x33')]?_0x189ad3[_0x484a01('0x33')][_0x484a01('0x30')]||null:null,'include':_0x189ad3[_0x484a01('0x33')]?_0x189ad3[_0x484a01('0x33')]['include']?_[_0x484a01('0x35')](_0x189ad3[_0x484a01('0x33')][_0x484a01('0x2b')],function(_0x18e1e3){const _0x5a9020=_0x484a01;return{'model':db[_0x18e1e3[_0x5a9020('0x48')]],'as':_0x18e1e3['as'],'attributes':_0x18e1e3[_0x5a9020('0x46')],'include':_0x18e1e3['include']?_['map'](_0x18e1e3[_0x5a9020('0x2b')],function(_0x635ea6){const _0x14340e=_0x5a9020;return{'model':db[_0x635ea6[_0x14340e('0x48')]],'as':_0x635ea6['as'],'attributes':_0x635ea6[_0x14340e('0x46')],'include':_0x635ea6[_0x14340e('0x2b')]?_[_0x14340e('0x35')](_0x635ea6[_0x14340e('0x2b')],function(_0x5a9f60){const _0x1ada9d=_0x14340e;return{'model':db[_0x5a9f60[_0x1ada9d('0x48')]],'as':_0x5a9f60['as'],'attributes':_0x5a9f60[_0x1ada9d('0x46')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x210779){const _0x585435=_0x484a01;logger[_0x585435('0x3')](_0x585435('0x5'),_0x189ad3),logger['debug']('GetUser',_0x189ad3,JSON[_0x585435('0x47')](_0x210779)),_0x641e53(_0x210779);})['catch'](function(_0x23c99f){const _0x3ddd66=_0x484a01;logger[_0x3ddd66('0x10')](_0x3ddd66('0x5'),_0x23c99f[_0x3ddd66('0x3f')],_0x189ad3),_0x879149(_0xe831dc[_0x3ddd66('0x10')](0x1f4,_0x23c99f[_0x3ddd66('0x3f')]));});});},exports[_0x30f56c('0x1a')]=function(_0x472f41){const _0xa0485f=this;return new Promise(function(_0x167b4,_0xc8ae){const _0x204831=a651_0x4b83;return db[_0x204831('0x44')]['findOne']({'raw':_0x472f41['options']?_0x472f41[_0x204831('0x33')]['raw']===undefined?!![]:![]:!![],'where':_0x472f41['options']?_0x472f41['options'][_0x204831('0x31')]||null:null,'attributes':_0x472f41[_0x204831('0x33')]?_0x472f41[_0x204831('0x33')][_0x204831('0x46')]||null:null,'include':_0x472f41[_0x204831('0x33')]?_0x472f41[_0x204831('0x33')][_0x204831('0x2b')]?_[_0x204831('0x35')](_0x472f41[_0x204831('0x33')][_0x204831('0x2b')],function(_0x4a35e9){const _0x43f9c8=_0x204831;return{'model':db[_0x4a35e9[_0x43f9c8('0x48')]],'as':_0x4a35e9['as'],'attributes':_0x4a35e9['attributes'],'include':_0x4a35e9[_0x43f9c8('0x2b')]?_[_0x43f9c8('0x35')](_0x4a35e9[_0x43f9c8('0x2b')],function(_0x2d3a10){const _0x12a72b=_0x43f9c8;return{'model':db[_0x2d3a10[_0x12a72b('0x48')]],'as':_0x2d3a10['as'],'attributes':_0x2d3a10[_0x12a72b('0x46')],'include':_0x2d3a10[_0x12a72b('0x2b')]?_['map'](_0x2d3a10[_0x12a72b('0x2b')],function(_0x3d9e85){return{'model':db[_0x3d9e85['model']],'as':_0x3d9e85['as'],'attributes':_0x3d9e85['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x38c470){const _0x3363b9=_0x204831;logger[_0x3363b9('0x3')](_0x3363b9('0x1a'),_0x472f41),logger[_0x3363b9('0x4')](_0x3363b9('0x1a'),_0x472f41,JSON[_0x3363b9('0x47')](_0x38c470)),_0x167b4(_0x38c470);})[_0x204831('0xb')](function(_0x1c0eb5){const _0x1ab0ea=_0x204831;logger[_0x1ab0ea('0x10')]('ShowUser',_0x1c0eb5['message'],_0x472f41),_0xc8ae(_0xa0485f[_0x1ab0ea('0x10')](0x1f4,_0x1c0eb5['message']));});});},exports['PauseUser']=function(_0xc78d69){const _0x403a0d=this;return new Promise(function(_0x1db044,_0x201fef){const _0x3f5bc9=a651_0x4b83;let _0x73f41e;return db[_0x3f5bc9('0x44')]['findOne']({'where':_0xc78d69[_0x3f5bc9('0x33')][_0x3f5bc9('0x31')]||{},'attributes':['id',_0x3f5bc9('0x1f'),_0x3f5bc9('0x9'),'internal','interface']})[_0x3f5bc9('0x36')](function(_0x45d4f3){const _0x38887e=_0x3f5bc9;if(_0x45d4f3)return _0x73f41e=_0x45d4f3,db[_0x38887e('0x15')][_0x38887e('0x22')]({'paused':0x1},{'where':{'UserId':_0x73f41e['id']},'individualHooks':!![]});})[_0x3f5bc9('0x36')](function(){const _0x4c9d19=_0x3f5bc9;if(_0x73f41e)return db[_0x4c9d19('0x38')][_0x4c9d19('0x43')]({'where':{'membername':_0x73f41e[_0x4c9d19('0x1f')],'type':'PAUSE','exitAt':null}});})['then'](function(_0x139285){const _0x5381dd=_0x3f5bc9;if(_0x73f41e){if(_0x139285&&_0x139285[_0x5381dd('0x23')]){const _0x194452=moment()[_0x5381dd('0x25')](_0x5381dd('0x20'));for(let _0x161197=0x0,_0x1230bd=_0x139285[_0x5381dd('0x23')];_0x161197<_0x1230bd;_0x161197++){_0x139285[_0x161197][_0x5381dd('0x22')]({'exitAt':_0x194452});}}}})[_0x3f5bc9('0x36')](function(){const _0x240dd4=_0x3f5bc9;if(_0x73f41e){const _0x3eeb26=[],_0x5283df=utils[_0x240dd4('0xd')]();return _0x5283df['forEach'](function(_0x264da6){const _0x2e00b6=_0x240dd4;_0x3eeb26[_0x2e00b6('0x2c')]({'channel':_0x264da6,'membername':_0x73f41e['name'],'interface':_[_0x2e00b6('0x11')](_0x73f41e[_0x2e00b6('0x13')])?util[_0x2e00b6('0x25')](_0x2e00b6('0x17'),_0x73f41e[_0x2e00b6('0x1f')]):_0x73f41e['interface'],'type':_0x2e00b6('0x34'),'enterAt':moment()['format'](_0x2e00b6('0x20')),'data1':_0xc78d69[_0x2e00b6('0x37')]['type']||'DEFAULT\x20PAUSE','role':_0x73f41e['role'],'internal':_0x73f41e[_0x2e00b6('0x40')],'uniqueid':_0xc78d69[_0x2e00b6('0x37')][_0x2e00b6('0x16')]||null});}),db[_0x240dd4('0x38')]['bulkCreate'](_0x3eeb26,{'individualHooks':!![]});}})['then'](function(){const _0x49c0e4=_0x3f5bc9;if(_0x73f41e)return _0x73f41e[_0x49c0e4('0x22')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'pauseType':_0xc78d69[_0x49c0e4('0x37')][_0x49c0e4('0x28')]||_0x49c0e4('0xe'),'lastPauseAt':moment()[_0x49c0e4('0x25')](_0x49c0e4('0x20'))});})['then'](function(_0x420e44){_0x1db044(_0x420e44);})[_0x3f5bc9('0xb')](function(_0x58092e){const _0x1980f1=_0x3f5bc9;_0x201fef(_0x403a0d[_0x1980f1('0x10')](0x1f4,_0x58092e[_0x1980f1('0x3f')]));});});},exports['UnpauseUser']=function(_0x2a3438){const _0x573c62=this;return new Promise(function(_0x36f558,_0x507dfe){const _0x29ac93=a651_0x4b83;let _0x1f4dc0;return db[_0x29ac93('0x44')][_0x29ac93('0x3d')]({'where':_0x2a3438[_0x29ac93('0x33')][_0x29ac93('0x31')]||{},'attributes':['id',_0x29ac93('0x1f')]})['then'](function(_0x3d23f0){const _0xf86737=_0x29ac93;if(_0x3d23f0){_0x1f4dc0=_0x3d23f0;if(_0x2a3438[_0xf86737('0x37')]['channel']&&!utils[_0xf86737('0x18')](_0x2a3438['body'][_0xf86737('0xc')]))throw new Error(_0xf86737('0x14'));switch(_0x2a3438[_0xf86737('0x37')][_0xf86737('0xc')]){case _0xf86737('0x21'):return db['UserVoiceQueueRt'][_0xf86737('0x22')]({'paused':0x0},{'where':{'UserId':_0x1f4dc0['id']}})[_0xf86737('0x36')](function(){const _0xa8653d=_0xf86737;return db[_0xa8653d('0x38')]['findOne']({'where':{'channel':_0x2a3438[_0xa8653d('0x37')]['channel'],'membername':_0x1f4dc0[_0xa8653d('0x1f')],'type':_0xa8653d('0x34'),'exitAt':null}});})[_0xf86737('0x36')](function(_0x13853f){const _0x4ea209=_0xf86737;if(_0x13853f)return _0x13853f[_0x4ea209('0x22')]({'exitAt':moment()[_0x4ea209('0x25')](_0x4ea209('0x20')),'data2':_0x4ea209('0x8')},{'individualHooks':!![]});return null;})[_0xf86737('0x36')](function(){const _0x1cd9fd=_0xf86737;return _0x1f4dc0[_0x1cd9fd('0x22')]({'voicePause':![]});});case _0xf86737('0x39'):case _0xf86737('0x27'):case'fax':case _0xf86737('0x1d'):case'openchannel':return db[_0xf86737('0x38')][_0xf86737('0x3d')]({'where':{'channel':_0x2a3438[_0xf86737('0x37')]['channel'],'membername':_0x1f4dc0[_0xf86737('0x1f')],'type':_0xf86737('0x34'),'exitAt':null}})[_0xf86737('0x36')](function(_0x5d493c){const _0x3e356a=_0xf86737;return _0x5d493c[_0x3e356a('0x22')]({'exitAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'data2':'system'},{'individualHooks':!![]});})['then'](function(){const _0x50db9d=_0xf86737,_0x84b9df={};return _[_0x50db9d('0x1e')](_0x84b9df,util['format'](_0x50db9d('0x7'),_0x2a3438[_0x50db9d('0x37')]['channel'],'Pause'),![]),_0x1f4dc0[_0x50db9d('0x22')](_0x84b9df);});default:return db[_0xf86737('0x15')][_0xf86737('0x22')]({'paused':0x0},{'where':{'UserId':_0x1f4dc0['id']}})['then'](function(){const _0xf688e7=_0xf86737;return db[_0xf688e7('0x38')][_0xf688e7('0x43')]({'where':{'membername':_0x1f4dc0['name'],'type':_0xf688e7('0x34'),'exitAt':null}});})['then'](function(_0x219277){const _0x2409fc=_0xf86737,_0x1f0e50=[];return _0x219277[_0x2409fc('0x32')](function(_0x58ae74){const _0x44b95a=_0x2409fc;_0x1f0e50[_0x44b95a('0x2c')](_0x58ae74[_0x44b95a('0x22')]({'exitAt':moment()[_0x44b95a('0x25')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x44b95a('0x8')}));}),Promise[_0x2409fc('0x1c')](_0x1f0e50);})[_0xf86737('0x36')](function(){return _0x1f4dc0['update']({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});});}}})[_0x29ac93('0x36')](function(_0x66042){_0x36f558(_0x66042);})[_0x29ac93('0xb')](function(_0xd5c371){const _0x3e1ecd=_0x29ac93;_0x507dfe(_0x573c62[_0x3e1ecd('0x10')](0x1f4,_0xd5c371['message']));});});},exports[_0x30f56c('0x2d')]=function(_0x1f53c3){const _0x43dbfc=this;return new Promise(function(_0x233415,_0x4940f7){const _0x152526=a651_0x4b83;let _0x4985ef;return db[_0x152526('0x44')][_0x152526('0x3d')]({'where':_0x1f53c3[_0x152526('0x33')]['where']||{},'attributes':['id',_0x152526('0x1f')]})[_0x152526('0x36')](function(_0x4395dc){const _0xc9d935=_0x152526;if(_0x4395dc)return _0x4985ef=_0x4395dc,db[_0xc9d935('0x15')][_0xc9d935('0x45')]({'where':{'membername':_0x4985ef[_0xc9d935('0x1f')]},'individualHooks':!![]});})[_0x152526('0x36')](function(){const _0x1a200e=_0x152526;if(_0x4985ef)return db[_0x1a200e('0x38')]['findAll']({'where':{'membername':_0x4985ef['name'],'exitAt':null}});})['then'](function(_0x24cdf2){const _0x2031af=_0x152526;if(_0x4985ef){if(_0x24cdf2&&_0x24cdf2[_0x2031af('0x23')]){const _0x5e7489=[];return _0x24cdf2[_0x2031af('0x32')](function(_0x11b6f){const _0x3ee6f3=_0x2031af;_0x5e7489[_0x3ee6f3('0x2c')](_0x11b6f['update']({'exitAt':moment()['format'](_0x3ee6f3('0x20'))}));}),Promise[_0x2031af('0x1c')](_0x5e7489);}}})[_0x152526('0x36')](function(){const _0x3b080d=_0x152526;if(_0x4985ef)return _0x4985ef[_0x3b080d('0x22')]({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})['then'](function(_0x26e417){_0x233415(_0x26e417);})[_0x152526('0xb')](function(_0x4b7e53){const _0x1081e7=_0x152526;_0x4940f7(_0x43dbfc[_0x1081e7('0x10')](0x1f4,_0x4b7e53[_0x1081e7('0x3f')]));});});},exports[_0x30f56c('0x3e')]=function(_0x3e0ecd){const _0x35acdb=this;return new Promise(function(_0x26bcfa,_0x5cd645){const _0x5dcab4=a651_0x4b83;let _0x2835b6,_0x1f9aa2,_0x451f70,_0x1a066b;return db[_0x5dcab4('0x44')][_0x5dcab4('0x3d')]({'where':_0x3e0ecd[_0x5dcab4('0x33')][_0x5dcab4('0x31')]||{},'attributes':['id','name',_0x5dcab4('0x9'),_0x5dcab4('0x3c'),'phone',_0x5dcab4('0x40'),_0x5dcab4('0x2a'),_0x5dcab4('0x13')]})['then'](function(_0x23565b){const _0x1cf4ef=_0x5dcab4;if(_0x23565b)return _0x2835b6=_0x23565b,_0x1a066b=_0x3e0ecd[_0x1cf4ef('0x37')][_0x1cf4ef('0x13')]?_0x3e0ecd[_0x1cf4ef('0x37')]['interface']:util[_0x1cf4ef('0x25')](_0x1cf4ef('0x17'),_0x2835b6[_0x1cf4ef('0x1f')]),db[_0x1cf4ef('0x44')][_0x1cf4ef('0x2f')]({'where':{'role':'agent','online':!![],'id':{[Op['ne']]:_0x2835b6['id']}}});})[_0x5dcab4('0x36')](function(_0x13456a){const _0x14b537=_0x5dcab4;if(_0x13456a)return _0x451f70=_0x13456a,require(_0x14b537('0xa'))[_0x14b537('0x3a')]();})[_0x5dcab4('0x36')](function(_0x5a4a2d){const _0x244d64=_0x5dcab4;if(_0x5a4a2d&&_0x5a4a2d[_0x244d64('0x42')]&&_0x451f70>=_0x5a4a2d[_0x244d64('0x42')])throw new Error('Maximum\x20login\x20has\x20been\x20reached');})[_0x5dcab4('0x36')](function(){const _0x40855c=_0x5dcab4;if(_0x2835b6)return db[_0x40855c('0x15')]['destroy']({'where':{'membername':_0x2835b6[_0x40855c('0x1f')]},'individualHooks':!![]});})[_0x5dcab4('0x36')](function(){if(_0x2835b6)return _0x2835b6['getVoiceQueues']({'raw':!![]});})[_0x5dcab4('0x36')](function(_0x593e8b){const _0x3b000b=_0x5dcab4;if(_0x2835b6){if(_0x593e8b){const _0xa4f3e5=[];_0x1f9aa2=_0x593e8b;if(_0x1f9aa2[_0x3b000b('0x23')]){for(let _0x51c78d=0x0;_0x51c78d<_0x1f9aa2[_0x3b000b('0x23')];_0x51c78d++){_0xa4f3e5[_0x3b000b('0x2c')](db[_0x3b000b('0x15')][_0x3b000b('0x2')]({'membername':_0x2835b6[_0x3b000b('0x1f')],'UserId':_0x2835b6['id'],'queue_name':_0x1f9aa2[_0x51c78d][_0x3b000b('0x1f')],'VoiceQueueId':_0x1f9aa2[_0x51c78d]['id'],'interface':_0x1a066b,'paused':_0x2835b6[_0x3b000b('0x2a')]||![],'penalty':_0x1f9aa2[_0x51c78d][_0x3b000b('0x2e')]||0x0}));}return Promise[_0x3b000b('0x1c')](_0xa4f3e5);}}}})[_0x5dcab4('0x36')](function(){const _0x46db7b=_0x5dcab4;if(_0x2835b6)return db[_0x46db7b('0x38')][_0x46db7b('0x43')]({'where':{'membername':_0x2835b6[_0x46db7b('0x1f')],'exitAt':null}});})[_0x5dcab4('0x36')](function(_0x5c2b1d){const _0x364910=_0x5dcab4;if(_0x2835b6){if(_0x5c2b1d&&_0x5c2b1d[_0x364910('0x23')]){const _0x472c9d=[];return _0x5c2b1d[_0x364910('0x32')](function(_0x5553b8){const _0x5c9923=_0x364910;_0x472c9d['push'](_0x5553b8[_0x5c9923('0x22')]({'exitAt':moment()[_0x5c9923('0x25')](_0x5c9923('0x20'))}));}),Promise[_0x364910('0x1c')](_0x472c9d);}}})[_0x5dcab4('0x36')](function(){const _0x2d9f1f=_0x5dcab4;if(_0x2835b6){const _0x5376b1=[],_0x534ef8=[],_0x3af4f1=utils[_0x2d9f1f('0xd')](),_0x25a271={'membername':_0x2835b6['name'],'interface':_0x1a066b,'enterAt':moment()['format'](_0x2d9f1f('0x20')),'role':_0x2835b6[_0x2d9f1f('0x9')],'internal':_0x2835b6[_0x2d9f1f('0x40')]};return _0x3af4f1[_0x2d9f1f('0x32')](function(_0x22b0e4){const _0x498b13=_0x2d9f1f;_0x5376b1['push'](_[_0x498b13('0xf')]({'channel':_0x22b0e4,'type':_0x498b13('0x29'),'data1':'callysquare','data2':_0x1a066b},_0x25a271)),_0x2835b6[_0x498b13('0x2a')]&&_0x534ef8[_0x498b13('0x2c')](_[_0x498b13('0xf')]({'channel':_0x22b0e4,'type':_0x498b13('0x34'),'data1':_0x498b13('0x0')},_0x25a271));}),db['MemberReport']['bulkCreate'](_0x5376b1[_0x2d9f1f('0x41')](_0x534ef8),{'individualHooks':!![]});}})['then'](function(){const _0x57ef3c=_0x5dcab4;if(_0x2835b6)return _0x2835b6[_0x57ef3c('0x22')]({'online':!![],'lastLoginAt':moment()[_0x57ef3c('0x25')]('YYYY-MM-DD\x20HH:mm:ss'),'voicePause':_0x2835b6['loginInPause']||![],'mailPause':_0x2835b6[_0x57ef3c('0x2a')]||![],'chatPause':_0x2835b6[_0x57ef3c('0x2a')]||![],'faxPause':_0x2835b6[_0x57ef3c('0x2a')]||![],'smsPause':_0x2835b6[_0x57ef3c('0x2a')]||![],'openchannelPause':_0x2835b6[_0x57ef3c('0x2a')]||![],'pauseType':_0x2835b6[_0x57ef3c('0x2a')]?_0x57ef3c('0x0'):null,'lastPauseAt':moment()[_0x57ef3c('0x25')]('YYYY-MM-DD\x20HH:mm:ss'),'interface':_0x1a066b});})['then'](function(_0x1b817b){_0x26bcfa(_0x1b817b);})[_0x5dcab4('0xb')](function(_0x382edc){const _0x35593b=_0x5dcab4;_0x5cd645(_0x35acdb[_0x35593b('0x10')](0x1f4,_0x382edc[_0x35593b('0x3f')]));});});}; \ No newline at end of file +const a651_0xcf7a=['findOne','push','../../config/logger','concat','bulkCreate','YYYY-MM-DD\x20HH:mm:ss','update','model','getChannels','ShowUser','internal','PauseUser','merge','forEach','agent','lodash','system','UserVoiceQueue.penalty','Maximum\x20login\x20has\x20been\x20reached','PAUSE','count','all','where','stringify','SIP/%s','LOGIN','options','loginInPause','catch','util','moment','message','destroy','attributes','name','MemberReport','upsert','debug','length','openchannel','agents','sequelize','User','findAll','include','raw','voice','type','uniqueid','role','getVoiceQueues','GetUser','DEFAULT\x20PAUSE','UnpauseUser','fax','format','map','Unknown\x20channel','getLicense','chat','interface','info','LOGININPAUSE','set','then','channel','UserVoiceQueueRt','body','limit','../../config/license/util','register','mobile','mail','error'];(function(_0xe11839,_0xcf7a26){const _0x4fb34c=function(_0x3e5c0c){while(--_0x3e5c0c){_0xe11839['push'](_0xe11839['shift']());}};_0x4fb34c(++_0xcf7a26);}(a651_0xcf7a,0x164));const a651_0x4fb3=function(_0xe11839,_0xcf7a26){_0xe11839=_0xe11839-0x0;let _0x4fb34c=a651_0xcf7a[_0xe11839];return _0x4fb34c;};const _0x2960ca=a651_0x4fb3;'use strict';const _=require(_0x2960ca('0x1d')),util=require(_0x2960ca('0x2b')),db=require('../../mysqldb')['db'],logger=require(_0x2960ca('0x10'))('rpc'),moment=require(_0x2960ca('0x2c')),utils=require('../../config/utils'),{getSocket}=require('../../rediscache'),socket=getSocket(),sequelize=require(_0x2960ca('0x37')),{Op}=sequelize;require('./user.socket')[_0x2960ca('0xa')](socket),exports[_0x2960ca('0x41')]=function(_0x3e5c0c){const _0xff258b=this;return new Promise(function(_0x3d7795,_0x2cf9cf){const _0x1ffaff=a651_0x4fb3;return db[_0x1ffaff('0x38')][_0x1ffaff('0x39')]({'raw':_0x3e5c0c[_0x1ffaff('0x28')]?_0x3e5c0c[_0x1ffaff('0x28')][_0x1ffaff('0x3b')]===undefined?!![]:![]:!![],'where':_0x3e5c0c[_0x1ffaff('0x28')]?_0x3e5c0c[_0x1ffaff('0x28')][_0x1ffaff('0x24')]||null:null,'attributes':_0x3e5c0c['options']?_0x3e5c0c['options'][_0x1ffaff('0x2f')]||null:null,'limit':_0x3e5c0c['options']?_0x3e5c0c[_0x1ffaff('0x28')][_0x1ffaff('0x8')]||null:null,'include':_0x3e5c0c[_0x1ffaff('0x28')]?_0x3e5c0c['options'][_0x1ffaff('0x3a')]?_[_0x1ffaff('0x46')](_0x3e5c0c[_0x1ffaff('0x28')][_0x1ffaff('0x3a')],function(_0x11820e){const _0x4c3067=_0x1ffaff;return{'model':db[_0x11820e[_0x4c3067('0x15')]],'as':_0x11820e['as'],'attributes':_0x11820e[_0x4c3067('0x2f')],'include':_0x11820e['include']?_[_0x4c3067('0x46')](_0x11820e['include'],function(_0x2870e9){const _0x2796d5=_0x4c3067;return{'model':db[_0x2870e9['model']],'as':_0x2870e9['as'],'attributes':_0x2870e9['attributes'],'include':_0x2870e9[_0x2796d5('0x3a')]?_[_0x2796d5('0x46')](_0x2870e9[_0x2796d5('0x3a')],function(_0x2795e2){const _0x88e8af=_0x2796d5;return{'model':db[_0x2795e2['model']],'as':_0x2795e2['as'],'attributes':_0x2795e2[_0x88e8af('0x2f')]};}):[]};}):[]};}):[]:[]})[_0x1ffaff('0x4')](function(_0x35735a){const _0x4d0b13=_0x1ffaff;logger['info'](_0x4d0b13('0x41'),_0x3e5c0c),logger[_0x4d0b13('0x33')](_0x4d0b13('0x41'),_0x3e5c0c,JSON['stringify'](_0x35735a)),_0x3d7795(_0x35735a);})[_0x1ffaff('0x2a')](function(_0x47cd5b){const _0x35bc16=_0x1ffaff;logger['error']('GetUser',_0x47cd5b['message'],_0x3e5c0c),_0x2cf9cf(_0xff258b[_0x35bc16('0xd')](0x1f4,_0x47cd5b[_0x35bc16('0x2d')]));});});},exports[_0x2960ca('0x17')]=function(_0x45142c){const _0x59183b=this;return new Promise(function(_0x5a20af,_0x851f05){const _0x25edac=a651_0x4fb3;return db[_0x25edac('0x38')]['findOne']({'raw':_0x45142c[_0x25edac('0x28')]?_0x45142c[_0x25edac('0x28')][_0x25edac('0x3b')]===undefined?!![]:![]:!![],'where':_0x45142c['options']?_0x45142c['options'][_0x25edac('0x24')]||null:null,'attributes':_0x45142c[_0x25edac('0x28')]?_0x45142c[_0x25edac('0x28')][_0x25edac('0x2f')]||null:null,'include':_0x45142c[_0x25edac('0x28')]?_0x45142c[_0x25edac('0x28')][_0x25edac('0x3a')]?_[_0x25edac('0x46')](_0x45142c[_0x25edac('0x28')][_0x25edac('0x3a')],function(_0x30f491){const _0x571ec5=_0x25edac;return{'model':db[_0x30f491[_0x571ec5('0x15')]],'as':_0x30f491['as'],'attributes':_0x30f491[_0x571ec5('0x2f')],'include':_0x30f491[_0x571ec5('0x3a')]?_[_0x571ec5('0x46')](_0x30f491[_0x571ec5('0x3a')],function(_0x2ff1a9){const _0x4f1147=_0x571ec5;return{'model':db[_0x2ff1a9[_0x4f1147('0x15')]],'as':_0x2ff1a9['as'],'attributes':_0x2ff1a9[_0x4f1147('0x2f')],'include':_0x2ff1a9[_0x4f1147('0x3a')]?_['map'](_0x2ff1a9[_0x4f1147('0x3a')],function(_0x399083){const _0x5c11ab=_0x4f1147;return{'model':db[_0x399083[_0x5c11ab('0x15')]],'as':_0x399083['as'],'attributes':_0x399083[_0x5c11ab('0x2f')]};}):[]};}):[]};}):[]:[]})[_0x25edac('0x4')](function(_0x3e6273){const _0x42cf2e=_0x25edac;logger[_0x42cf2e('0x1')](_0x42cf2e('0x17'),_0x45142c),logger[_0x42cf2e('0x33')](_0x42cf2e('0x17'),_0x45142c,JSON[_0x42cf2e('0x25')](_0x3e6273)),_0x5a20af(_0x3e6273);})[_0x25edac('0x2a')](function(_0x1df774){const _0x343a1a=_0x25edac;logger[_0x343a1a('0xd')]('ShowUser',_0x1df774[_0x343a1a('0x2d')],_0x45142c),_0x851f05(_0x59183b['error'](0x1f4,_0x1df774[_0x343a1a('0x2d')]));});});},exports[_0x2960ca('0x19')]=function(_0x20bd1a){const _0xd4bc2e=this;return new Promise(function(_0x4f2243,_0x204b22){const _0x530646=a651_0x4fb3;let _0x40c23a;return db[_0x530646('0x38')][_0x530646('0xe')]({'where':_0x20bd1a[_0x530646('0x28')][_0x530646('0x24')]||{},'attributes':['id',_0x530646('0x30'),_0x530646('0x3f'),_0x530646('0x18'),_0x530646('0x0')]})[_0x530646('0x4')](function(_0x4a4b2b){const _0x5bfe0e=_0x530646;if(_0x4a4b2b)return _0x40c23a=_0x4a4b2b,db[_0x5bfe0e('0x6')][_0x5bfe0e('0x14')]({'paused':0x1},{'where':{'UserId':_0x40c23a['id']},'individualHooks':!![]});})[_0x530646('0x4')](function(){const _0x26de41=_0x530646;if(_0x40c23a)return db[_0x26de41('0x31')][_0x26de41('0x39')]({'where':{'membername':_0x40c23a['name'],'type':_0x26de41('0x21'),'exitAt':null}});})['then'](function(_0x2d185a){const _0x448fce=_0x530646;if(_0x40c23a){if(_0x2d185a&&_0x2d185a['length']){const _0x108c5a=moment()['format'](_0x448fce('0x13'));for(let _0x95a1ab=0x0,_0x7baf95=_0x2d185a[_0x448fce('0x34')];_0x95a1ab<_0x7baf95;_0x95a1ab++){_0x2d185a[_0x95a1ab][_0x448fce('0x14')]({'exitAt':_0x108c5a});}}}})[_0x530646('0x4')](function(){const _0x1b6d4b=_0x530646;if(_0x40c23a){const _0x142122=[],_0x476bdf=utils['getChannels']();return _0x476bdf[_0x1b6d4b('0x1b')](function(_0x18c27b){const _0x5484b2=_0x1b6d4b;_0x142122[_0x5484b2('0xf')]({'channel':_0x18c27b,'membername':_0x40c23a[_0x5484b2('0x30')],'interface':_['isNil'](_0x40c23a[_0x5484b2('0x0')])?util[_0x5484b2('0x45')](_0x5484b2('0x26'),_0x40c23a[_0x5484b2('0x30')]):_0x40c23a[_0x5484b2('0x0')],'type':_0x5484b2('0x21'),'enterAt':moment()['format'](_0x5484b2('0x13')),'data1':_0x20bd1a['body'][_0x5484b2('0x3d')]||_0x5484b2('0x42'),'role':_0x40c23a[_0x5484b2('0x3f')],'internal':_0x40c23a['internal'],'uniqueid':_0x20bd1a[_0x5484b2('0x7')][_0x5484b2('0x3e')]||null});}),db[_0x1b6d4b('0x31')][_0x1b6d4b('0x12')](_0x142122,{'individualHooks':!![]});}})['then'](function(){const _0x5aeaac=_0x530646;if(_0x40c23a)return _0x40c23a[_0x5aeaac('0x14')]({'voicePause':!![],'mailPause':!![],'chatPause':!![],'faxPause':!![],'smsPause':!![],'openchannelPause':!![],'pauseType':_0x20bd1a[_0x5aeaac('0x7')][_0x5aeaac('0x3d')]||_0x5aeaac('0x42'),'lastPauseAt':moment()[_0x5aeaac('0x45')](_0x5aeaac('0x13'))});})[_0x530646('0x4')](function(_0x54dd14){_0x4f2243(_0x54dd14);})[_0x530646('0x2a')](function(_0x8a9ca4){const _0x5e1c85=_0x530646;_0x204b22(_0xd4bc2e[_0x5e1c85('0xd')](0x1f4,_0x8a9ca4[_0x5e1c85('0x2d')]));});});},exports[_0x2960ca('0x43')]=function(_0x1fa554){const _0x504e4b=this;return new Promise(function(_0x212fbd,_0x1ba424){const _0x514d5e=a651_0x4fb3;let _0x58b7c1;return db[_0x514d5e('0x38')]['findOne']({'where':_0x1fa554['options'][_0x514d5e('0x24')]||{},'attributes':['id','name']})[_0x514d5e('0x4')](function(_0x4f3765){const _0x2ee0f0=_0x514d5e;if(_0x4f3765){_0x58b7c1=_0x4f3765;if(_0x1fa554[_0x2ee0f0('0x7')][_0x2ee0f0('0x5')]&&!utils['isValidChannel'](_0x1fa554[_0x2ee0f0('0x7')][_0x2ee0f0('0x5')]))throw new Error(_0x2ee0f0('0x47'));switch(_0x1fa554[_0x2ee0f0('0x7')][_0x2ee0f0('0x5')]){case _0x2ee0f0('0x3c'):return db[_0x2ee0f0('0x6')][_0x2ee0f0('0x14')]({'paused':0x0},{'where':{'UserId':_0x58b7c1['id']}})[_0x2ee0f0('0x4')](function(){const _0x437d7f=_0x2ee0f0;return db[_0x437d7f('0x31')][_0x437d7f('0xe')]({'where':{'channel':_0x1fa554[_0x437d7f('0x7')][_0x437d7f('0x5')],'membername':_0x58b7c1[_0x437d7f('0x30')],'type':'PAUSE','exitAt':null}});})[_0x2ee0f0('0x4')](function(_0x42042b){const _0x3fdbd9=_0x2ee0f0;if(_0x42042b)return _0x42042b[_0x3fdbd9('0x14')]({'exitAt':moment()[_0x3fdbd9('0x45')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':_0x3fdbd9('0x1e')},{'individualHooks':!![]});return null;})[_0x2ee0f0('0x4')](function(){const _0xa7f06c=_0x2ee0f0;return _0x58b7c1[_0xa7f06c('0x14')]({'voicePause':![]});});case _0x2ee0f0('0xc'):case _0x2ee0f0('0x49'):case _0x2ee0f0('0x44'):case'sms':case _0x2ee0f0('0x35'):return db[_0x2ee0f0('0x31')][_0x2ee0f0('0xe')]({'where':{'channel':_0x1fa554[_0x2ee0f0('0x7')][_0x2ee0f0('0x5')],'membername':_0x58b7c1['name'],'type':'PAUSE','exitAt':null}})[_0x2ee0f0('0x4')](function(_0x180be4){const _0x125c18=_0x2ee0f0;return _0x180be4['update']({'exitAt':moment()[_0x125c18('0x45')]('YYYY-MM-DD\x20HH:mm:ss'),'data2':'system'},{'individualHooks':!![]});})[_0x2ee0f0('0x4')](function(){const _0x4a6d03=_0x2ee0f0,_0x271f3f={};return _[_0x4a6d03('0x3')](_0x271f3f,util[_0x4a6d03('0x45')]('%s%s',_0x1fa554['body']['channel'],'Pause'),![]),_0x58b7c1[_0x4a6d03('0x14')](_0x271f3f);});default:return db['UserVoiceQueueRt'][_0x2ee0f0('0x14')]({'paused':0x0},{'where':{'UserId':_0x58b7c1['id']}})[_0x2ee0f0('0x4')](function(){const _0x42f9d4=_0x2ee0f0;return db['MemberReport'][_0x42f9d4('0x39')]({'where':{'membername':_0x58b7c1[_0x42f9d4('0x30')],'type':_0x42f9d4('0x21'),'exitAt':null}});})['then'](function(_0x39865a){const _0x341363=_0x2ee0f0,_0x5388c1=[];return _0x39865a[_0x341363('0x1b')](function(_0x142fc4){const _0x285f22=_0x341363;_0x5388c1[_0x285f22('0xf')](_0x142fc4[_0x285f22('0x14')]({'exitAt':moment()['format'](_0x285f22('0x13')),'data2':_0x285f22('0x1e')}));}),Promise[_0x341363('0x23')](_0x5388c1);})['then'](function(){const _0x489a95=_0x2ee0f0;return _0x58b7c1[_0x489a95('0x14')]({'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});});}}})['then'](function(_0x4bdcf6){_0x212fbd(_0x4bdcf6);})['catch'](function(_0x5c14a2){const _0x135f82=_0x514d5e;_0x1ba424(_0x504e4b[_0x135f82('0xd')](0x1f4,_0x5c14a2[_0x135f82('0x2d')]));});});},exports['LogoutUser']=function(_0x57732b){const _0x1d9159=this;return new Promise(function(_0x336d9b,_0x59664f){const _0x1d6d7c=a651_0x4fb3;let _0x47faf1;return db[_0x1d6d7c('0x38')]['findOne']({'where':_0x57732b[_0x1d6d7c('0x28')][_0x1d6d7c('0x24')]||{},'attributes':['id',_0x1d6d7c('0x30')]})[_0x1d6d7c('0x4')](function(_0x57b9dc){const _0x4ddb4f=_0x1d6d7c;if(_0x57b9dc)return _0x47faf1=_0x57b9dc,db[_0x4ddb4f('0x6')]['destroy']({'where':{'membername':_0x47faf1[_0x4ddb4f('0x30')]},'individualHooks':!![]});})[_0x1d6d7c('0x4')](function(){const _0x1ec73c=_0x1d6d7c;if(_0x47faf1)return db[_0x1ec73c('0x31')]['findAll']({'where':{'membername':_0x47faf1[_0x1ec73c('0x30')],'exitAt':null}});})['then'](function(_0x3d47d3){const _0x2088e9=_0x1d6d7c;if(_0x47faf1){if(_0x3d47d3&&_0x3d47d3[_0x2088e9('0x34')]){const _0x3feeee=[];return _0x3d47d3[_0x2088e9('0x1b')](function(_0x1cd700){const _0x5d37b2=_0x2088e9;_0x3feeee[_0x5d37b2('0xf')](_0x1cd700[_0x5d37b2('0x14')]({'exitAt':moment()[_0x5d37b2('0x45')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x2088e9('0x23')](_0x3feeee);}}})[_0x1d6d7c('0x4')](function(){if(_0x47faf1)return _0x47faf1['update']({'online':![],'lastLoginAt':null,'voicePause':![],'mailPause':![],'chatPause':![],'faxPause':![],'smsPause':![],'openchannelPause':![]});})['then'](function(_0x5e4562){_0x336d9b(_0x5e4562);})[_0x1d6d7c('0x2a')](function(_0x8ce580){const _0x3242b2=_0x1d6d7c;_0x59664f(_0x1d9159['error'](0x1f4,_0x8ce580[_0x3242b2('0x2d')]));});});},exports['LoginUser']=function(_0x2d1f73){const _0x2fc31a=this;return new Promise(function(_0x269e37,_0x4cc504){const _0x171eb6=a651_0x4fb3;let _0x351ed3,_0x4e6404,_0x4c9b4c,_0x5a138e;return db[_0x171eb6('0x38')][_0x171eb6('0xe')]({'where':_0x2d1f73['options'][_0x171eb6('0x24')]||{},'attributes':['id','name',_0x171eb6('0x3f'),_0x171eb6('0xb'),'phone',_0x171eb6('0x18'),_0x171eb6('0x29'),_0x171eb6('0x0')]})[_0x171eb6('0x4')](function(_0x1ea00e){const _0x2ef9af=_0x171eb6;if(_0x1ea00e)return _0x351ed3=_0x1ea00e,_0x5a138e=_0x2d1f73[_0x2ef9af('0x7')][_0x2ef9af('0x0')]?_0x2d1f73[_0x2ef9af('0x7')][_0x2ef9af('0x0')]:util[_0x2ef9af('0x45')](_0x2ef9af('0x26'),_0x351ed3[_0x2ef9af('0x30')]),db[_0x2ef9af('0x38')][_0x2ef9af('0x22')]({'where':{'role':_0x2ef9af('0x1c'),'online':!![],'id':{[Op['ne']]:_0x351ed3['id']}}});})['then'](function(_0x2457c4){const _0x5e84e6=_0x171eb6;if(_0x2457c4)return _0x4c9b4c=_0x2457c4,require(_0x5e84e6('0x9'))[_0x5e84e6('0x48')]();})['then'](function(_0x1ee3fb){const _0x39ee51=_0x171eb6;if(_0x1ee3fb&&_0x1ee3fb[_0x39ee51('0x36')]&&_0x4c9b4c>=_0x1ee3fb[_0x39ee51('0x36')])throw new Error(_0x39ee51('0x20'));})[_0x171eb6('0x4')](function(){const _0x21c23c=_0x171eb6;if(_0x351ed3)return db[_0x21c23c('0x6')][_0x21c23c('0x2e')]({'where':{'membername':_0x351ed3[_0x21c23c('0x30')]},'individualHooks':!![]});})[_0x171eb6('0x4')](function(){const _0x241685=_0x171eb6;if(_0x351ed3)return _0x351ed3[_0x241685('0x40')]({'raw':!![]});})['then'](function(_0xc6276f){const _0x323122=_0x171eb6;if(_0x351ed3){if(_0xc6276f){const _0x3808a5=[];_0x4e6404=_0xc6276f;if(_0x4e6404['length']){for(let _0x29f564=0x0;_0x29f564<_0x4e6404[_0x323122('0x34')];_0x29f564++){_0x3808a5[_0x323122('0xf')](db[_0x323122('0x6')][_0x323122('0x32')]({'membername':_0x351ed3[_0x323122('0x30')],'UserId':_0x351ed3['id'],'queue_name':_0x4e6404[_0x29f564][_0x323122('0x30')],'VoiceQueueId':_0x4e6404[_0x29f564]['id'],'interface':_0x5a138e,'paused':_0x351ed3[_0x323122('0x29')]||![],'penalty':_0x4e6404[_0x29f564][_0x323122('0x1f')]||0x0}));}return Promise[_0x323122('0x23')](_0x3808a5);}}}})[_0x171eb6('0x4')](function(){const _0x28c24e=_0x171eb6;if(_0x351ed3)return db[_0x28c24e('0x31')]['findAll']({'where':{'membername':_0x351ed3[_0x28c24e('0x30')],'exitAt':null}});})[_0x171eb6('0x4')](function(_0x332d2a){const _0x19b76e=_0x171eb6;if(_0x351ed3){if(_0x332d2a&&_0x332d2a[_0x19b76e('0x34')]){const _0x25d7a0=[];return _0x332d2a[_0x19b76e('0x1b')](function(_0x15ee96){const _0x463c65=_0x19b76e;_0x25d7a0[_0x463c65('0xf')](_0x15ee96[_0x463c65('0x14')]({'exitAt':moment()[_0x463c65('0x45')]('YYYY-MM-DD\x20HH:mm:ss')}));}),Promise[_0x19b76e('0x23')](_0x25d7a0);}}})[_0x171eb6('0x4')](function(){const _0x4ecd08=_0x171eb6;if(_0x351ed3){const _0x53a6ec=[],_0x543d9e=[],_0x2b36eb=utils[_0x4ecd08('0x16')](),_0x2392c3={'membername':_0x351ed3[_0x4ecd08('0x30')],'interface':_0x5a138e,'enterAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'role':_0x351ed3['role'],'internal':_0x351ed3['internal']};return _0x2b36eb[_0x4ecd08('0x1b')](function(_0x497e34){const _0x2a3a44=_0x4ecd08;_0x53a6ec[_0x2a3a44('0xf')](_[_0x2a3a44('0x1a')]({'channel':_0x497e34,'type':_0x2a3a44('0x27'),'data1':'callysquare','data2':_0x5a138e},_0x2392c3)),_0x351ed3[_0x2a3a44('0x29')]&&_0x543d9e[_0x2a3a44('0xf')](_[_0x2a3a44('0x1a')]({'channel':_0x497e34,'type':_0x2a3a44('0x21'),'data1':_0x2a3a44('0x2')},_0x2392c3));}),db[_0x4ecd08('0x31')]['bulkCreate'](_0x53a6ec[_0x4ecd08('0x11')](_0x543d9e),{'individualHooks':!![]});}})['then'](function(){const _0x3025b3=_0x171eb6;if(_0x351ed3)return _0x351ed3['update']({'online':!![],'lastLoginAt':moment()[_0x3025b3('0x45')](_0x3025b3('0x13')),'voicePause':_0x351ed3[_0x3025b3('0x29')]||![],'mailPause':_0x351ed3[_0x3025b3('0x29')]||![],'chatPause':_0x351ed3[_0x3025b3('0x29')]||![],'faxPause':_0x351ed3[_0x3025b3('0x29')]||![],'smsPause':_0x351ed3[_0x3025b3('0x29')]||![],'openchannelPause':_0x351ed3['loginInPause']||![],'pauseType':_0x351ed3[_0x3025b3('0x29')]?_0x3025b3('0x2'):null,'lastPauseAt':moment()[_0x3025b3('0x45')](_0x3025b3('0x13')),'interface':_0x5a138e});})[_0x171eb6('0x4')](function(_0x59b78b){_0x269e37(_0x59b78b);})[_0x171eb6('0x2a')](function(_0x5acc62){const _0x4407a2=_0x171eb6;_0x4cc504(_0x2fc31a[_0x4407a2('0xd')](0x1f4,_0x5acc62[_0x4407a2('0x2d')]));});});}; \ No newline at end of file diff --git a/server/api/user/user.socket.js b/server/api/user/user.socket.js index 6038007..8cd660c 100644 --- a/server/api/user/user.socket.js +++ b/server/api/user/user.socket.js @@ -1 +1 @@ -const a652_0x8c0d=['remove','save','emit','register','user:','length'];(function(_0x22a57b,_0x8c0d8c){const _0x15bc1e=function(_0x4969bd){while(--_0x4969bd){_0x22a57b['push'](_0x22a57b['shift']());}};_0x15bc1e(++_0x8c0d8c);}(a652_0x8c0d,0x16a));const a652_0x15bc=function(_0x22a57b,_0x8c0d8c){_0x22a57b=_0x22a57b-0x0;let _0x15bc1e=a652_0x8c0d[_0x22a57b];return _0x15bc1e;};const _0x1bc1f9=a652_0x15bc;'use strict';const UserEvents=require('./user.events'),events=[_0x1bc1f9('0x5'),_0x1bc1f9('0x4'),'update'];function createListener(_0x4969bd,_0x3368e3){return function(_0xbff773){const _0x15fff1=a652_0x15bc;_0x3368e3[_0x15fff1('0x0')](_0x4969bd,_0xbff773);};}exports[_0x1bc1f9('0x1')]=function(_0x299dfa){const _0x51d9a8=_0x1bc1f9;for(let _0xb695b5=0x0,_0x267f42=events[_0x51d9a8('0x3')];_0xb695b5<_0x267f42;_0xb695b5++){const _0x59b1db=events[_0xb695b5],_0x286a71=createListener(_0x51d9a8('0x2')+_0x59b1db,_0x299dfa);UserEvents['on'](_0x59b1db,_0x286a71);}}; \ No newline at end of file +const a652_0x17f9=['./user.events','register','update','remove','save','user:'];(function(_0x50f7f7,_0x17f91e){const _0x153dca=function(_0x42dd4a){while(--_0x42dd4a){_0x50f7f7['push'](_0x50f7f7['shift']());}};_0x153dca(++_0x17f91e);}(a652_0x17f9,0xc0));const a652_0x153d=function(_0x50f7f7,_0x17f91e){_0x50f7f7=_0x50f7f7-0x0;let _0x153dca=a652_0x17f9[_0x50f7f7];return _0x153dca;};const _0xee3db8=a652_0x153d;'use strict';const UserEvents=require(_0xee3db8('0x0')),events=[_0xee3db8('0x4'),_0xee3db8('0x3'),_0xee3db8('0x2')];function createListener(_0x42dd4a,_0x9a335e){return function(_0x2a7169){_0x9a335e['emit'](_0x42dd4a,_0x2a7169);};}exports[_0xee3db8('0x1')]=function(_0x5541f8){const _0xc1c101=_0xee3db8;for(let _0x1d06cf=0x0,_0x405135=events['length'];_0x1d06cf<_0x405135;_0x1d06cf++){const _0x25d780=events[_0x1d06cf],_0x414688=createListener(_0xc1c101('0x5')+_0x25d780,_0x5541f8);UserEvents['on'](_0x25d780,_0x414688);}}; \ No newline at end of file diff --git a/server/api/userChatQueue/index.js b/server/api/userChatQueue/index.js index e345449..1bd6038 100644 --- a/server/api/userChatQueue/index.js +++ b/server/api/userChatQueue/index.js @@ -1 +1 @@ -const a653_0x17d5=['exports'];(function(_0x4cc30e,_0x17d5e0){const _0x28930f=function(_0x4e02d5){while(--_0x4e02d5){_0x4cc30e['push'](_0x4cc30e['shift']());}};_0x28930f(++_0x17d5e0);}(a653_0x17d5,0x1ab));const a653_0x2893=function(_0x4cc30e,_0x17d5e0){_0x4cc30e=_0x4cc30e-0x0;let _0x28930f=a653_0x17d5[_0x4cc30e];return _0x28930f;};const _0x1fbbbb=a653_0x2893;'use strict';const express=require('express'),router=express['Router']();module[_0x1fbbbb('0x0')]=router; \ No newline at end of file +const a653_0x3e4a=['Router','exports'];(function(_0x47e18f,_0x3e4ae5){const _0x46bfa0=function(_0x4db7d3){while(--_0x4db7d3){_0x47e18f['push'](_0x47e18f['shift']());}};_0x46bfa0(++_0x3e4ae5);}(a653_0x3e4a,0x1db));const a653_0x46bf=function(_0x47e18f,_0x3e4ae5){_0x47e18f=_0x47e18f-0x0;let _0x46bfa0=a653_0x3e4a[_0x47e18f];return _0x46bfa0;};const _0x11babb=a653_0x46bf;'use strict';const express=require('express'),router=express[_0x11babb('0x1')]();module[_0x11babb('0x0')]=router; \ No newline at end of file diff --git a/server/api/userChatQueue/userChatQueue.attributes.js b/server/api/userChatQueue/userChatQueue.attributes.js index 0f44faf..dbdc50f 100644 --- a/server/api/userChatQueue/userChatQueue.attributes.js +++ b/server/api/userChatQueue/userChatQueue.attributes.js @@ -1 +1 @@ -const a654_0x74b6=['INTEGER','exports','sequelize'];(function(_0x4ef96a,_0x74b661){const _0x44b8a1=function(_0x12c9c7){while(--_0x12c9c7){_0x4ef96a['push'](_0x4ef96a['shift']());}};_0x44b8a1(++_0x74b661);}(a654_0x74b6,0x90));const a654_0x44b8=function(_0x4ef96a,_0x74b661){_0x4ef96a=_0x4ef96a-0x0;let _0x44b8a1=a654_0x74b6[_0x4ef96a];return _0x44b8a1;};const _0x5117b6=a654_0x44b8;'use strict';const Sequelize=require(_0x5117b6('0x2'));module[_0x5117b6('0x1')]={'penalty':{'type':Sequelize[_0x5117b6('0x0')],'defaultValue':0x0}}; \ No newline at end of file +const a654_0x5b5c=['sequelize','exports'];(function(_0x4c7baa,_0x5b5c0f){const _0x88eeba=function(_0x380a25){while(--_0x380a25){_0x4c7baa['push'](_0x4c7baa['shift']());}};_0x88eeba(++_0x5b5c0f);}(a654_0x5b5c,0xbd));const a654_0x88ee=function(_0x4c7baa,_0x5b5c0f){_0x4c7baa=_0x4c7baa-0x0;let _0x88eeba=a654_0x5b5c[_0x4c7baa];return _0x88eeba;};const _0xa99746=a654_0x88ee;'use strict';const Sequelize=require(_0xa99746('0x1'));module[_0xa99746('0x0')]={'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 ec96957..8f090ba 100644 --- a/server/api/userChatQueue/userChatQueue.model.js +++ b/server/api/userChatQueue/userChatQueue.model.js @@ -1 +1 @@ -const a655_0x33c0=['UserChatQueue','user_has_chat_queues','define','./userChatQueue.attributes','exports'];(function(_0x571443,_0x33c0c8){const _0x3f441e=function(_0x571e4d){while(--_0x571e4d){_0x571443['push'](_0x571443['shift']());}};_0x3f441e(++_0x33c0c8);}(a655_0x33c0,0xe7));const a655_0x3f44=function(_0x571443,_0x33c0c8){_0x571443=_0x571443-0x0;let _0x3f441e=a655_0x33c0[_0x571443];return _0x3f441e;};const _0x57d269=a655_0x3f44;'use strict';const attributes=require(_0x57d269('0x2'));module[_0x57d269('0x3')]=function(_0x571e4d){const _0x3c4ddf=_0x57d269,_0x22f589=_0x571e4d[_0x3c4ddf('0x1')](_0x3c4ddf('0x4'),attributes,{'tableName':_0x3c4ddf('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x22f589;}; \ No newline at end of file +const a655_0x2178=['exports','define','UserChatQueue','user_has_chat_queues','./userChatQueue.attributes'];(function(_0x2a1c39,_0x2178e1){const _0x3f2bdb=function(_0xe4c745){while(--_0xe4c745){_0x2a1c39['push'](_0x2a1c39['shift']());}};_0x3f2bdb(++_0x2178e1);}(a655_0x2178,0x1a6));const a655_0x3f2b=function(_0x2a1c39,_0x2178e1){_0x2a1c39=_0x2a1c39-0x0;let _0x3f2bdb=a655_0x2178[_0x2a1c39];return _0x3f2bdb;};const _0x38e102=a655_0x3f2b;'use strict';const attributes=require(_0x38e102('0x2'));module[_0x38e102('0x3')]=function(_0xe4c745){const _0x465b35=_0x38e102,_0x1bdd23=_0xe4c745[_0x465b35('0x4')](_0x465b35('0x0'),attributes,{'tableName':_0x465b35('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1bdd23;}; \ No newline at end of file diff --git a/server/api/userFaxQueue/index.js b/server/api/userFaxQueue/index.js index da8ca81..f4250ea 100644 --- a/server/api/userFaxQueue/index.js +++ b/server/api/userFaxQueue/index.js @@ -1 +1 @@ -const a656_0x4131=['Router','exports','express'];(function(_0x46b614,_0x413122){const _0x532862=function(_0x2ba368){while(--_0x2ba368){_0x46b614['push'](_0x46b614['shift']());}};_0x532862(++_0x413122);}(a656_0x4131,0x18c));const a656_0x5328=function(_0x46b614,_0x413122){_0x46b614=_0x46b614-0x0;let _0x532862=a656_0x4131[_0x46b614];return _0x532862;};const _0x22d586=a656_0x5328;'use strict';const express=require(_0x22d586('0x2')),router=express[_0x22d586('0x0')]();module[_0x22d586('0x1')]=router; \ No newline at end of file +const a656_0x34ab=['express','exports','Router'];(function(_0x12cd45,_0x34ab50){const _0xb27ed=function(_0x19398d){while(--_0x19398d){_0x12cd45['push'](_0x12cd45['shift']());}};_0xb27ed(++_0x34ab50);}(a656_0x34ab,0x153));const a656_0xb27e=function(_0x12cd45,_0x34ab50){_0x12cd45=_0x12cd45-0x0;let _0xb27ed=a656_0x34ab[_0x12cd45];return _0xb27ed;};const _0x2a1300=a656_0xb27e;'use strict';const express=require(_0x2a1300('0x0')),router=express[_0x2a1300('0x2')]();module[_0x2a1300('0x1')]=router; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.attributes.js b/server/api/userFaxQueue/userFaxQueue.attributes.js index 0018caf..4b115c5 100644 --- a/server/api/userFaxQueue/userFaxQueue.attributes.js +++ b/server/api/userFaxQueue/userFaxQueue.attributes.js @@ -1 +1 @@ -const a657_0x167c=['sequelize','INTEGER','STRING'];(function(_0x3647f8,_0x167c06){const _0xf08806=function(_0x3b499d){while(--_0x3b499d){_0x3647f8['push'](_0x3647f8['shift']());}};_0xf08806(++_0x167c06);}(a657_0x167c,0x1b1));const a657_0xf088=function(_0x3647f8,_0x167c06){_0x3647f8=_0x3647f8-0x0;let _0xf08806=a657_0x167c[_0x3647f8];return _0xf08806;};const _0x420a9f=a657_0xf088;'use strict';const Sequelize=require(_0x420a9f('0x2'));module['exports']={'penalty':{'type':Sequelize[_0x420a9f('0x0')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x420a9f('0x0')],'defaultValue':0x0},'queue':{'type':Sequelize[_0x420a9f('0x1')]}}; \ No newline at end of file +const a657_0x30cd=['exports','INTEGER'];(function(_0x4ef4a2,_0x30cd57){const _0x29f2e0=function(_0x5487fa){while(--_0x5487fa){_0x4ef4a2['push'](_0x4ef4a2['shift']());}};_0x29f2e0(++_0x30cd57);}(a657_0x30cd,0xed));const a657_0x29f2=function(_0x4ef4a2,_0x30cd57){_0x4ef4a2=_0x4ef4a2-0x0;let _0x29f2e0=a657_0x30cd[_0x4ef4a2];return _0x29f2e0;};const _0x29ca49=a657_0x29f2;'use strict';const Sequelize=require('sequelize');module[_0x29ca49('0x1')]={'penalty':{'type':Sequelize[_0x29ca49('0x0')],'defaultValue':0x0},'assigned':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'queue':{'type':Sequelize['STRING']}}; \ No newline at end of file diff --git a/server/api/userFaxQueue/userFaxQueue.model.js b/server/api/userFaxQueue/userFaxQueue.model.js index f915096..5315c42 100644 --- a/server/api/userFaxQueue/userFaxQueue.model.js +++ b/server/api/userFaxQueue/userFaxQueue.model.js @@ -1 +1 @@ -const a658_0x14c1=['define','./userFaxQueue.attributes'];(function(_0x9790d,_0x14c11f){const _0xebd80f=function(_0x13831c){while(--_0x13831c){_0x9790d['push'](_0x9790d['shift']());}};_0xebd80f(++_0x14c11f);}(a658_0x14c1,0x131));const a658_0xebd8=function(_0x9790d,_0x14c11f){_0x9790d=_0x9790d-0x0;let _0xebd80f=a658_0x14c1[_0x9790d];return _0xebd80f;};const _0x4688c8=a658_0xebd8;'use strict';const attributes=require(_0x4688c8('0x0'));module['exports']=function(_0x13831c){const _0x5a20e6=_0x4688c8,_0x1dd83d=_0x13831c[_0x5a20e6('0x1')]('UserFaxQueue',attributes,{'tableName':'user_has_fax_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x1dd83d;}; \ No newline at end of file +const a658_0x4d71=['./userFaxQueue.attributes','exports','UserFaxQueue','define','user_has_fax_queues'];(function(_0x1bd98c,_0x4d7197){const _0x1efe49=function(_0x2ba142){while(--_0x2ba142){_0x1bd98c['push'](_0x1bd98c['shift']());}};_0x1efe49(++_0x4d7197);}(a658_0x4d71,0x1b0));const a658_0x1efe=function(_0x1bd98c,_0x4d7197){_0x1bd98c=_0x1bd98c-0x0;let _0x1efe49=a658_0x4d71[_0x1bd98c];return _0x1efe49;};const _0x3536f0=a658_0x1efe;'use strict';const attributes=require(_0x3536f0('0x3'));module[_0x3536f0('0x4')]=function(_0x2ba142){const _0x40ae5b=_0x3536f0,_0x1e3181=_0x2ba142[_0x40ae5b('0x1')](_0x40ae5b('0x0'),attributes,{'tableName':_0x40ae5b('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1e3181;}; \ No newline at end of file diff --git a/server/api/userMailQueue/index.js b/server/api/userMailQueue/index.js index 9032aaf..8d755f0 100644 --- a/server/api/userMailQueue/index.js +++ b/server/api/userMailQueue/index.js @@ -1 +1 @@ -const a659_0x2875=['exports'];(function(_0x339414,_0x2875fa){const _0x36a9c9=function(_0x57928e){while(--_0x57928e){_0x339414['push'](_0x339414['shift']());}};_0x36a9c9(++_0x2875fa);}(a659_0x2875,0xb4));const a659_0x36a9=function(_0x339414,_0x2875fa){_0x339414=_0x339414-0x0;let _0x36a9c9=a659_0x2875[_0x339414];return _0x36a9c9;};const _0x29e416=a659_0x36a9;'use strict';const express=require('express'),router=express['Router']();module[_0x29e416('0x0')]=router; \ No newline at end of file +const a659_0x184c=['exports','Router','express'];(function(_0xfcdc98,_0x184c53){const _0x5514f7=function(_0xaf3260){while(--_0xaf3260){_0xfcdc98['push'](_0xfcdc98['shift']());}};_0x5514f7(++_0x184c53);}(a659_0x184c,0x1a4));const a659_0x5514=function(_0xfcdc98,_0x184c53){_0xfcdc98=_0xfcdc98-0x0;let _0x5514f7=a659_0x184c[_0xfcdc98];return _0x5514f7;};const _0x23ee30=a659_0x5514;'use strict';const express=require(_0x23ee30('0x2')),router=express[_0x23ee30('0x1')]();module[_0x23ee30('0x0')]=router; \ No newline at end of file diff --git a/server/api/userMailQueue/userMailQueue.attributes.js b/server/api/userMailQueue/userMailQueue.attributes.js index d48056d..96ab7ca 100644 --- a/server/api/userMailQueue/userMailQueue.attributes.js +++ b/server/api/userMailQueue/userMailQueue.attributes.js @@ -1 +1 @@ -const a660_0x5a52=['INTEGER'];(function(_0x2512be,_0x5a5239){const _0x1e457a=function(_0x4ca132){while(--_0x4ca132){_0x2512be['push'](_0x2512be['shift']());}};_0x1e457a(++_0x5a5239);}(a660_0x5a52,0x11d));const a660_0x1e45=function(_0x2512be,_0x5a5239){_0x2512be=_0x2512be-0x0;let _0x1e457a=a660_0x5a52[_0x2512be];return _0x1e457a;};const _0x3f2239=a660_0x1e45;'use strict';const Sequelize=require('sequelize');module['exports']={'penalty':{'type':Sequelize[_0x3f2239('0x0')],'defaultValue':0x0}}; \ No newline at end of file +const a660_0x25f4=['sequelize','exports','INTEGER'];(function(_0x2fc270,_0x25f4d5){const _0x510fe5=function(_0x4134d0){while(--_0x4134d0){_0x2fc270['push'](_0x2fc270['shift']());}};_0x510fe5(++_0x25f4d5);}(a660_0x25f4,0x141));const a660_0x510f=function(_0x2fc270,_0x25f4d5){_0x2fc270=_0x2fc270-0x0;let _0x510fe5=a660_0x25f4[_0x2fc270];return _0x510fe5;};const _0xeffba=a660_0x510f;'use strict';const Sequelize=require(_0xeffba('0x0'));module[_0xeffba('0x1')]={'penalty':{'type':Sequelize[_0xeffba('0x2')],'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 38cc798..93f7e23 100644 --- a/server/api/userMailQueue/userMailQueue.model.js +++ b/server/api/userMailQueue/userMailQueue.model.js @@ -1 +1 @@ -const a661_0x14bd=['exports','user_has_mail_queues','UserMailQueue'];(function(_0x37ab77,_0x14bd74){const _0x4ffbf3=function(_0x5eb067){while(--_0x5eb067){_0x37ab77['push'](_0x37ab77['shift']());}};_0x4ffbf3(++_0x14bd74);}(a661_0x14bd,0x1e5));const a661_0x4ffb=function(_0x37ab77,_0x14bd74){_0x37ab77=_0x37ab77-0x0;let _0x4ffbf3=a661_0x14bd[_0x37ab77];return _0x4ffbf3;};const _0x5120b8=a661_0x4ffb;'use strict';const attributes=require('./userMailQueue.attributes');module[_0x5120b8('0x1')]=function(_0x5eb067){const _0x1c8121=_0x5120b8,_0x328036=_0x5eb067['define'](_0x1c8121('0x0'),attributes,{'tableName':_0x1c8121('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x328036;}; \ No newline at end of file +const a661_0x27a7=['define','UserMailQueue'];(function(_0xdf4bb6,_0x27a733){const _0x2f44e2=function(_0x1364c1){while(--_0x1364c1){_0xdf4bb6['push'](_0xdf4bb6['shift']());}};_0x2f44e2(++_0x27a733);}(a661_0x27a7,0xf3));const a661_0x2f44=function(_0xdf4bb6,_0x27a733){_0xdf4bb6=_0xdf4bb6-0x0;let _0x2f44e2=a661_0x27a7[_0xdf4bb6];return _0x2f44e2;};'use strict';const attributes=require('./userMailQueue.attributes');module['exports']=function(_0x1364c1){const _0x26e14e=a661_0x2f44,_0x2b1d7f=_0x1364c1[_0x26e14e('0x1')](_0x26e14e('0x0'),attributes,{'tableName':'user_has_mail_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x2b1d7f;}; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/index.js b/server/api/userOpenchannelQueue/index.js index e32683a..8714ea3 100644 --- a/server/api/userOpenchannelQueue/index.js +++ b/server/api/userOpenchannelQueue/index.js @@ -1 +1 @@ -const a662_0x3258=['express','exports'];(function(_0x474a06,_0x325871){const _0x4ce69e=function(_0x1a1bd5){while(--_0x1a1bd5){_0x474a06['push'](_0x474a06['shift']());}};_0x4ce69e(++_0x325871);}(a662_0x3258,0x75));const a662_0x4ce6=function(_0x474a06,_0x325871){_0x474a06=_0x474a06-0x0;let _0x4ce69e=a662_0x3258[_0x474a06];return _0x4ce69e;};const _0xc176c1=a662_0x4ce6;'use strict';const express=require(_0xc176c1('0x1')),router=express['Router']();module[_0xc176c1('0x0')]=router; \ No newline at end of file +const a662_0x29a2=['exports','Router'];(function(_0x5c95df,_0x29a2e6){const _0x30bb6c=function(_0x575d6e){while(--_0x575d6e){_0x5c95df['push'](_0x5c95df['shift']());}};_0x30bb6c(++_0x29a2e6);}(a662_0x29a2,0x9c));const a662_0x30bb=function(_0x5c95df,_0x29a2e6){_0x5c95df=_0x5c95df-0x0;let _0x30bb6c=a662_0x29a2[_0x5c95df];return _0x30bb6c;};const _0x441cf5=a662_0x30bb;'use strict';const express=require('express'),router=express[_0x441cf5('0x1')]();module[_0x441cf5('0x0')]=router; \ No newline at end of file diff --git a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js index 7ab9753..1731cc2 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.attributes.js @@ -1 +1 @@ -const a663_0x11aa=['sequelize','INTEGER','exports'];(function(_0x2ca439,_0x11aaf8){const _0x24500a=function(_0x341e02){while(--_0x341e02){_0x2ca439['push'](_0x2ca439['shift']());}};_0x24500a(++_0x11aaf8);}(a663_0x11aa,0x158));const a663_0x2450=function(_0x2ca439,_0x11aaf8){_0x2ca439=_0x2ca439-0x0;let _0x24500a=a663_0x11aa[_0x2ca439];return _0x24500a;};const _0x15b4e7=a663_0x2450;'use strict';const Sequelize=require(_0x15b4e7('0x1'));module[_0x15b4e7('0x0')]={'penalty':{'type':Sequelize[_0x15b4e7('0x2')],'defaultValue':0x0}}; \ No newline at end of file +const a663_0x38cb=['INTEGER'];(function(_0x5d52c7,_0x38cb1f){const _0x4cf6c7=function(_0x51e4f2){while(--_0x51e4f2){_0x5d52c7['push'](_0x5d52c7['shift']());}};_0x4cf6c7(++_0x38cb1f);}(a663_0x38cb,0x1bc));const a663_0x4cf6=function(_0x5d52c7,_0x38cb1f){_0x5d52c7=_0x5d52c7-0x0;let _0x4cf6c7=a663_0x38cb[_0x5d52c7];return _0x4cf6c7;};const _0x4f5f31=a663_0x4cf6;'use strict';const Sequelize=require('sequelize');module['exports']={'penalty':{'type':Sequelize[_0x4f5f31('0x0')],'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 73ed5e4..d9e5fb7 100644 --- a/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js +++ b/server/api/userOpenchannelQueue/userOpenchannelQueue.model.js @@ -1 +1 @@ -const a664_0x4895=['UserOpenchannelQueue','./userOpenchannelQueue.attributes','exports'];(function(_0x3a531c,_0x4895e2){const _0x32f1cc=function(_0x3ba719){while(--_0x3ba719){_0x3a531c['push'](_0x3a531c['shift']());}};_0x32f1cc(++_0x4895e2);}(a664_0x4895,0x1d1));const a664_0x32f1=function(_0x3a531c,_0x4895e2){_0x3a531c=_0x3a531c-0x0;let _0x32f1cc=a664_0x4895[_0x3a531c];return _0x32f1cc;};const _0x343af7=a664_0x32f1;'use strict';const attributes=require(_0x343af7('0x1'));module[_0x343af7('0x2')]=function(_0x3ba719){const _0xdd9f6a=_0x343af7,_0x56148f=_0x3ba719['define'](_0xdd9f6a('0x0'),attributes,{'tableName':'user_has_openchannel_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x56148f;}; \ No newline at end of file +const a664_0x41d4=['define','user_has_openchannel_queues','UserOpenchannelQueue','exports'];(function(_0x3fc845,_0x41d471){const _0x5a38af=function(_0x2d4db6){while(--_0x2d4db6){_0x3fc845['push'](_0x3fc845['shift']());}};_0x5a38af(++_0x41d471);}(a664_0x41d4,0x1b5));const a664_0x5a38=function(_0x3fc845,_0x41d471){_0x3fc845=_0x3fc845-0x0;let _0x5a38af=a664_0x41d4[_0x3fc845];return _0x5a38af;};const _0x43713d=a664_0x5a38;'use strict';const attributes=require('./userOpenchannelQueue.attributes');module[_0x43713d('0x2')]=function(_0x2d4db6){const _0xacc174=_0x43713d,_0x1d54b4=_0x2d4db6[_0xacc174('0x3')](_0xacc174('0x1'),attributes,{'tableName':_0xacc174('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1d54b4;}; \ No newline at end of file diff --git a/server/api/userProfile/index.js b/server/api/userProfile/index.js index e7120ea..e726c5f 100644 --- a/server/api/userProfile/index.js +++ b/server/api/userProfile/index.js @@ -1 +1 @@ -const a665_0x2ecd=['/:id/resources','/:id','isAuthenticated','delete','addSections','/:id/clone','index','/describe','addResources','get','removeResources','post','getSections','express','update','/:id/sections','create','destroy','getResources','Router','show','removeSections'];(function(_0x24b1bf,_0x2ecdad){const _0x5f2758=function(_0x34f0b9){while(--_0x34f0b9){_0x24b1bf['push'](_0x24b1bf['shift']());}};_0x5f2758(++_0x2ecdad);}(a665_0x2ecd,0x1c9));const a665_0x5f27=function(_0x24b1bf,_0x2ecdad){_0x24b1bf=_0x24b1bf-0x0;let _0x5f2758=a665_0x2ecd[_0x24b1bf];return _0x5f2758;};const _0x5d062b=a665_0x5f27;'use strict';const express=require(_0x5d062b('0x12')),router=express[_0x5d062b('0x2')](),auth=require('../../components/auth/service'),controller=require('./userProfile.controller');router[_0x5d062b('0xe')]('/',auth[_0x5d062b('0x7')](),controller[_0x5d062b('0xb')]),router[_0x5d062b('0xe')](_0x5d062b('0xc'),auth[_0x5d062b('0x7')](),controller['describe']),router[_0x5d062b('0xe')]('/:id',auth[_0x5d062b('0x7')](),controller[_0x5d062b('0x3')]),router['get'](_0x5d062b('0x14'),auth[_0x5d062b('0x7')](),controller[_0x5d062b('0x11')]),router[_0x5d062b('0xe')](_0x5d062b('0x5'),auth['isAuthenticated'](),controller[_0x5d062b('0x1')]),router[_0x5d062b('0x10')]('/',auth[_0x5d062b('0x7')](),controller[_0x5d062b('0x15')]),router[_0x5d062b('0x10')](_0x5d062b('0xa'),auth[_0x5d062b('0x7')](),controller['clone']),router[_0x5d062b('0x10')]('/:id/sections',auth['isAuthenticated'](),controller[_0x5d062b('0x9')]),router['post']('/:id/resources',auth['isAuthenticated'](),controller[_0x5d062b('0xd')]),router['put'](_0x5d062b('0x6'),auth[_0x5d062b('0x7')](),controller[_0x5d062b('0x13')]),router[_0x5d062b('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x5d062b('0x0')]),router[_0x5d062b('0x8')](_0x5d062b('0x14'),auth[_0x5d062b('0x7')](),controller[_0x5d062b('0x4')]),router[_0x5d062b('0x8')](_0x5d062b('0x5'),auth['isAuthenticated'](),controller[_0x5d062b('0xf')]),module['exports']=router; \ No newline at end of file +const a665_0x13bc=['../../components/auth/service','put','getResources','addResources','isAuthenticated','/:id/clone','/describe','addSections','express','post','update','get','delete','/:id/resources','destroy','show','./userProfile.controller','create','removeResources','exports','Router','/:id/sections','describe','/:id'];(function(_0x174595,_0x13bc1e){const _0x3b78e0=function(_0xae9d51){while(--_0xae9d51){_0x174595['push'](_0x174595['shift']());}};_0x3b78e0(++_0x13bc1e);}(a665_0x13bc,0x122));const a665_0x3b78=function(_0x174595,_0x13bc1e){_0x174595=_0x174595-0x0;let _0x3b78e0=a665_0x13bc[_0x174595];return _0x3b78e0;};const _0x232f2b=a665_0x3b78;'use strict';const express=require(_0x232f2b('0x6')),router=express[_0x232f2b('0x12')](),auth=require(_0x232f2b('0x16')),controller=require(_0x232f2b('0xe'));router['get']('/',auth[_0x232f2b('0x2')](),controller['index']),router[_0x232f2b('0x9')](_0x232f2b('0x4'),auth[_0x232f2b('0x2')](),controller[_0x232f2b('0x14')]),router['get'](_0x232f2b('0x15'),auth[_0x232f2b('0x2')](),controller[_0x232f2b('0xd')]),router['get'](_0x232f2b('0x13'),auth['isAuthenticated'](),controller['getSections']),router[_0x232f2b('0x9')](_0x232f2b('0xb'),auth[_0x232f2b('0x2')](),controller[_0x232f2b('0x0')]),router[_0x232f2b('0x7')]('/',auth[_0x232f2b('0x2')](),controller[_0x232f2b('0xf')]),router[_0x232f2b('0x7')](_0x232f2b('0x3'),auth[_0x232f2b('0x2')](),controller['clone']),router['post'](_0x232f2b('0x13'),auth['isAuthenticated'](),controller[_0x232f2b('0x5')]),router['post'](_0x232f2b('0xb'),auth[_0x232f2b('0x2')](),controller[_0x232f2b('0x1')]),router[_0x232f2b('0x17')](_0x232f2b('0x15'),auth['isAuthenticated'](),controller[_0x232f2b('0x8')]),router[_0x232f2b('0xa')]('/:id',auth[_0x232f2b('0x2')](),controller[_0x232f2b('0xc')]),router['delete'](_0x232f2b('0x13'),auth[_0x232f2b('0x2')](),controller['removeSections']),router[_0x232f2b('0xa')](_0x232f2b('0xb'),auth[_0x232f2b('0x2')](),controller[_0x232f2b('0x10')]),module[_0x232f2b('0x11')]=router; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.attributes.js b/server/api/userProfile/userProfile.attributes.js index c28f6ff..19fdca3 100644 --- a/server/api/userProfile/userProfile.attributes.js +++ b/server/api/userProfile/userProfile.attributes.js @@ -1 +1 @@ -const a666_0x49e1=['join','crudPermissions','setDataValue','getDataValue','exports','STRING','name','sequelize'];(function(_0x12749f,_0x49e192){const _0x31b832=function(_0x17c138){while(--_0x17c138){_0x12749f['push'](_0x12749f['shift']());}};_0x31b832(++_0x49e192);}(a666_0x49e1,0x175));const a666_0x31b8=function(_0x12749f,_0x49e192){_0x12749f=_0x12749f-0x0;let _0x31b832=a666_0x49e1[_0x12749f];return _0x31b832;};const _0x1fd97f=a666_0x31b8;'use strict';const Sequelize=require(_0x1fd97f('0x2'));module[_0x1fd97f('0x7')]={'name':{'type':Sequelize[_0x1fd97f('0x0')],'allowNull':![],'unique':_0x1fd97f('0x1')},'crudPermissions':{'type':Sequelize[_0x1fd97f('0x0')],'set':function(_0x17c138){const _0x28dd79=_0x1fd97f;this[_0x28dd79('0x5')]('crudPermissions',_0x17c138?_0x17c138[_0x28dd79('0x3')](''):[]);},'get':function(){const _0x4f1621=_0x1fd97f;return this[_0x4f1621('0x6')](_0x4f1621('0x4'))?this[_0x4f1621('0x6')](_0x4f1621('0x4'))['split'](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x1fd97f('0x0')],'allowNull':!![]}}; \ No newline at end of file +const a666_0x3e25=['setDataValue','exports','name','sequelize','getDataValue','STRING','split','crudPermissions'];(function(_0x3ec9e2,_0x3e25a0){const _0x356790=function(_0x144b06){while(--_0x144b06){_0x3ec9e2['push'](_0x3ec9e2['shift']());}};_0x356790(++_0x3e25a0);}(a666_0x3e25,0xf1));const a666_0x3567=function(_0x3ec9e2,_0x3e25a0){_0x3ec9e2=_0x3ec9e2-0x0;let _0x356790=a666_0x3e25[_0x3ec9e2];return _0x356790;};const _0x78c5f9=a666_0x3567;'use strict';const Sequelize=require(_0x78c5f9('0x2'));module[_0x78c5f9('0x0')]={'name':{'type':Sequelize[_0x78c5f9('0x4')],'allowNull':![],'unique':_0x78c5f9('0x1')},'crudPermissions':{'type':Sequelize[_0x78c5f9('0x4')],'set':function(_0x144b06){const _0x3ba3cf=_0x78c5f9;this[_0x3ba3cf('0x7')](_0x3ba3cf('0x6'),_0x144b06?_0x144b06['join'](''):[]);},'get':function(){const _0x20f083=_0x78c5f9;return this[_0x20f083('0x3')]('crudPermissions')?this[_0x20f083('0x3')]('crudPermissions')[_0x20f083('0x5')](''):[];},'allowNull':![],'defaultValue':'r'},'description':{'type':Sequelize[_0x78c5f9('0x4')],'allowNull':!![]}}; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.controller.js b/server/api/userProfile/userProfile.controller.js index eb4974b..2c70be0 100644 --- a/server/api/userProfile/userProfile.controller.js +++ b/server/api/userProfile/userProfile.controller.js @@ -1 +1 @@ -const a667_0x3d29=['Trunk','register','zohoaccounts','voiceprefixes','DefaultReports','sounds','Lists','VoicePrefix','enabled','trunks','index','autoAssociation','Interval','updatedAt','odbc','AnalyticMetric','Trigger','like','SquareOdbc','subsections','union','type','plugins','whatsappaccounts','include','order','Unknown\x20section','ChatQueue','field','mailsubstatuses','voicerecordings','Tag','findAll','catch','FaxQueue','faxqueues','VoiceQueue','contexts','VoiceQueues','query','Users','ListId','VIRTUAL','CannedAnswer','UserProfileSection','Resources','sectionId','smsaccounts','users','freshdeskaccounts','describe','Reports','VoiceContext','api','createdAt','MailSubstatus','getSections','and','UserProfileResource','mergeResources','rawAttributes','removeSections','templates','contacts','color','push','tags','foreignKey','includeAll','SmsQueue','voicemails','name','telephones','cannedanswers','SugarcrmAccount','nolimit','role','body','Plugin','ids','CustomReports','default','MailAccount','admin','end','keys','get','intersection','model','set','key','queuecampaigns','VoiceMusicOnHold','pauses','./userProfile.socket','Team','companies','Invalid\x20section\x20\x27','sugarcrmaccounts','MailQueue','JscriptyProject','DeskAccount','voicequeues','attributes','params','triggers','Sound','VoiceChanSpy','Campaign','CmContact','QueueCampaigns','addResources','metrics','Content-Range','CmCompany','userProfileId','bulkCreate','isEmpty','filter','error','chanspies','inboundroutes','agents','fieldName','merge','scheduler','AnalyticExtractedReport','map','dispositions','lists','reportId','json','getResources','extractedreports','transaction','filters','telephone','reportType','sendStatus','mailqueues','Dashboard','parentSections','find','findOne','includes','intervals','VoiceExtension','forEach','show','sort','stack','section','sequelize','openchannelqueues','SalesforceAccount','variables','lodash','projectName','ivrcampaigns','create','Schedule','openchannelaccounts','pick','custom','User','addSections','FaxAccount','where','SquareRecording','internalroutes','Template','removeResources','projects','ignore','teams','chatqueues','vtigeraccounts','membername','then','Agents','omit','Disposition','limit','SmsAccount','count','associatedResources','undefined','status','Telephones','crudPermissions','resourceId','childModel','mailaccounts','UserProfile','fields','CmCustomField','tag','musiconholds','destroy','rows','globalcustomfields','queue','ThroughTags','value','length','toLowerCase','send','user','inbound','options','smsqueues','VoiceMail','offset'];(function(_0x46d161,_0x3d2987){const _0x58a9ad=function(_0x506251){while(--_0x506251){_0x46d161['push'](_0x46d161['shift']());}};_0x58a9ad(++_0x3d2987);}(a667_0x3d29,0x176));const a667_0x58a9=function(_0x46d161,_0x3d2987){_0x46d161=_0x46d161-0x0;let _0x58a9ad=a667_0x3d29[_0x46d161];return _0x58a9ad;};const _0x4ac35c=a667_0x58a9;'use strict';const _=require(_0x4ac35c('0xd0')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x4ac35c('0x69')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x4ac35c('0xcc'));require(_0x4ac35c('0x92'))[_0x4ac35c('0x35')](socket);function respondWithStatusCode(_0x506251,_0x51b6bb){return _0x51b6bb=_0x51b6bb||0xcc,function(_0x2602a7){const _0x5a944c=a667_0x58a9;if(_0x2602a7)return _0x506251[_0x5a944c('0xbe')](_0x51b6bb);return _0x506251[_0x5a944c('0x1a')](_0x51b6bb)['end']();};}function respondWithResult(_0x29ec72,_0x57a8e5){return _0x57a8e5=_0x57a8e5||0xc8,function(_0x30a0ac){const _0x4f87c0=a667_0x58a9;if(_0x30a0ac)return _0x29ec72[_0x4f87c0('0x1a')](_0x57a8e5)[_0x4f87c0('0xb7')](_0x30a0ac);};}function respondWithFilteredResult(_0x296a91,_0x3f2989){return function(_0x3ae02c){const _0x33bd0f=a667_0x58a9;if(_0x3ae02c){const _0x48db3e=_0x3ae02c[_0x33bd0f('0x17')],_0x3befd0=_0x3f2989[_0x33bd0f('0x33')];let _0x173c61=_0x3f2989[_0x33bd0f('0x33')]+_0x3f2989['limit'],_0x397947;return _0x173c61>=_0x48db3e?(_0x173c61=_0x48db3e,_0x397947=0xc8):_0x397947=0xce,_0x296a91[_0x33bd0f('0x1a')](_0x397947),_0x296a91[_0x33bd0f('0x8d')](_0x33bd0f('0xa5'),_0x3befd0+'-'+_0x173c61+'/'+_0x48db3e)[_0x33bd0f('0xb7')](_0x3ae02c);}return null;};}function saveUpdates(_0x3458f8){return function(_0x55b7f5){const _0x3de4d4=a667_0x58a9;if(_0x55b7f5)return _0x55b7f5['update'](_0x3458f8)[_0x3de4d4('0x11')](function(_0x5e2480){return _0x5e2480;});return null;};}function removeEntity(_0x2606f5){return function(_0x1a4383){const _0x1f8318=a667_0x58a9;if(_0x1a4383)return _0x1a4383[_0x1f8318('0x25')]()['then'](function(){const _0x3c1df1=_0x1f8318;_0x2606f5['status'](0xcc)[_0x3c1df1('0x88')]();});};}function handleEntityNotFound(_0x481dc6){return function(_0x1f2f8b){const _0x576cb1=a667_0x58a9;return!_0x1f2f8b&&_0x481dc6[_0x576cb1('0xbe')](0x194),_0x1f2f8b;};}function handleError(_0x9fc9cb,_0x578603){return _0x578603=_0x578603||0x1f4,function(_0x240e18){const _0xadb3d8=a667_0x58a9;logger[_0xadb3d8('0xab')](_0x240e18[_0xadb3d8('0xca')]),_0x240e18['name']&&delete _0x240e18[_0xadb3d8('0x7b')],_0x9fc9cb['status'](_0x578603)[_0xadb3d8('0x2d')](_0x240e18);};}exports[_0x4ac35c('0x3e')]=function(_0x5c603e,_0xd7670e){const _0x2fa5e6=_0x4ac35c;let _0x45a046={};const _0x369fbe={},_0x238b98={'count':0x0,'rows':[]},_0x4659f4=_[_0x2fa5e6('0xb3')](db[_0x2fa5e6('0x20')][_0x2fa5e6('0x70')],function(_0x3168b0){const _0x2132f2=_0x2fa5e6;return{'name':_0x3168b0[_0x2132f2('0xaf')],'type':_0x3168b0[_0x2132f2('0x49')][_0x2132f2('0x8e')]};});_0x369fbe[_0x2fa5e6('0x8c')]=_['map'](_0x4659f4,'name'),_0x369fbe[_0x2fa5e6('0x5b')]=_[_0x2fa5e6('0x89')](_0x5c603e[_0x2fa5e6('0x5b')]),_0x369fbe[_0x2fa5e6('0xbb')]=_[_0x2fa5e6('0x8b')](_0x369fbe['model'],_0x369fbe[_0x2fa5e6('0x5b')]),_0x45a046[_0x2fa5e6('0x9b')]=_['intersection'](_0x369fbe[_0x2fa5e6('0x8c')],qs[_0x2fa5e6('0x21')](_0x5c603e[_0x2fa5e6('0x5b')]['fields'])),_0x45a046['attributes']=_0x45a046[_0x2fa5e6('0x9b')][_0x2fa5e6('0x2b')]?_0x45a046[_0x2fa5e6('0x9b')]:_0x369fbe[_0x2fa5e6('0x8c')];typeof _0x5c603e[_0x2fa5e6('0x5b')][_0x2fa5e6('0x7f')]===_0x2fa5e6('0x19')&&(_0x45a046['limit']=qs[_0x2fa5e6('0x15')](_0x5c603e[_0x2fa5e6('0x5b')][_0x2fa5e6('0x15')]),_0x45a046[_0x2fa5e6('0x33')]=qs[_0x2fa5e6('0x33')](_0x5c603e['query']['offset']));_0x45a046[_0x2fa5e6('0x4d')]=qs['sort'](_0x5c603e[_0x2fa5e6('0x5b')][_0x2fa5e6('0xc9')]),_0x45a046[_0x2fa5e6('0x6')]=qs[_0x2fa5e6('0xbb')](_[_0x2fa5e6('0x1')](_0x5c603e[_0x2fa5e6('0x5b')],_0x369fbe[_0x2fa5e6('0xbb')]),_0x4659f4);_0x5c603e[_0x2fa5e6('0x5b')][_0x2fa5e6('0xaa')]&&(_0x45a046[_0x2fa5e6('0x6')]=_[_0x2fa5e6('0xb0')](_0x45a046[_0x2fa5e6('0x6')],{[Op['or']]:_[_0x2fa5e6('0xb3')](_0x4659f4,function(_0x2f7197){const _0x2dc3aa=_0x2fa5e6;if(_0x2f7197['type']!=='VIRTUAL'){const _0x53aa6e={};return _0x53aa6e[_0x2f7197[_0x2dc3aa('0x7b')]]={[Op[_0x2dc3aa('0x45')]]:'%'+_0x5c603e['query']['filter']+'%'},_0x53aa6e;}})}));_0x45a046=_[_0x2fa5e6('0xb0')]({},_0x45a046,_0x5c603e[_0x2fa5e6('0x30')]);const _0x5b63a7={'where':_0x45a046[_0x2fa5e6('0x6')]};return db[_0x2fa5e6('0x20')][_0x2fa5e6('0x17')](_0x5b63a7)[_0x2fa5e6('0x11')](function(_0x53be5b){const _0x40a414=_0x2fa5e6;return _0x238b98[_0x40a414('0x17')]=_0x53be5b,_0x5c603e[_0x40a414('0x5b')][_0x40a414('0x78')]&&(_0x45a046[_0x40a414('0x4c')]=[{'all':!![]}]),db[_0x40a414('0x20')][_0x40a414('0x54')](_0x45a046);})[_0x2fa5e6('0x11')](function(_0x3647c2){const _0x3e189b=_0x2fa5e6;return _0x238b98[_0x3e189b('0x26')]=_0x3647c2,_0x238b98;})['then'](respondWithFilteredResult(_0xd7670e,_0x45a046))[_0x2fa5e6('0x55')](handleError(_0xd7670e,null));},exports[_0x4ac35c('0xc8')]=function(_0x286ada,_0xf4f209){const _0x5544f0=_0x4ac35c;let _0xd1d91={'raw':![],'where':{'id':_0x286ada[_0x5544f0('0x9c')]['id']}};const _0x28a5f0={};return _0x28a5f0['model']=_[_0x5544f0('0x89')](db[_0x5544f0('0x20')][_0x5544f0('0x70')]),_0x28a5f0[_0x5544f0('0x5b')]=_[_0x5544f0('0x89')](_0x286ada[_0x5544f0('0x5b')]),_0x28a5f0['filters']=_[_0x5544f0('0x8b')](_0x28a5f0[_0x5544f0('0x8c')],_0x28a5f0['query']),_0xd1d91[_0x5544f0('0x9b')]=_[_0x5544f0('0x8b')](_0x28a5f0['model'],qs[_0x5544f0('0x21')](_0x286ada[_0x5544f0('0x5b')]['fields'])),_0xd1d91['attributes']=_0xd1d91[_0x5544f0('0x9b')][_0x5544f0('0x2b')]?_0xd1d91[_0x5544f0('0x9b')]:_0x28a5f0['model'],_0x286ada['query'][_0x5544f0('0x78')]&&(_0xd1d91[_0x5544f0('0x4c')]=[{'all':!![]}]),_0xd1d91=_[_0x5544f0('0xb0')]({},_0xd1d91,_0x286ada[_0x5544f0('0x30')]),db[_0x5544f0('0x20')]['findOne'](_0xd1d91)[_0x5544f0('0x11')](handleEntityNotFound(_0xf4f209))[_0x5544f0('0x11')](respondWithResult(_0xf4f209,null))[_0x5544f0('0x55')](handleError(_0xf4f209,null));},exports[_0x4ac35c('0xd3')]=function(_0x57bfff,_0x3ca4d7){const _0x3c3630=_0x4ac35c;return db['UserProfile'][_0x3c3630('0xd3')](_0x57bfff[_0x3c3630('0x81')],{})[_0x3c3630('0x11')](respondWithResult(_0x3ca4d7,0xc9))[_0x3c3630('0x55')](handleError(_0x3ca4d7,null));},exports['clone']=function(_0x41c5e6,_0x4631d2){const _0x2a8a71=_0x4ac35c;let _0x458acb={'where':{'id':_0x41c5e6['params']['id']}};const _0x2c7452={};return _0x2c7452[_0x2a8a71('0x8c')]=_['keys'](db[_0x2a8a71('0x20')][_0x2a8a71('0x70')]),_0x458acb[_0x2a8a71('0x9b')]=_[_0x2a8a71('0x8b')](_0x2c7452[_0x2a8a71('0x8c')],qs[_0x2a8a71('0x21')](_0x41c5e6['query']['fields'])),_0x458acb[_0x2a8a71('0x9b')]=_0x458acb[_0x2a8a71('0x9b')][_0x2a8a71('0x2b')]?_0x458acb[_0x2a8a71('0x9b')]:_0x2c7452[_0x2a8a71('0x8c')],_0x41c5e6['query'][_0x2a8a71('0x78')]&&(_0x458acb[_0x2a8a71('0x4c')]=[{'all':!![]}]),_0x458acb=_[_0x2a8a71('0xb0')]({},_0x458acb,_0x41c5e6[_0x2a8a71('0x30')]),db[_0x2a8a71('0x20')][_0x2a8a71('0xc3')](_0x458acb)[_0x2a8a71('0x11')](handleEntityNotFound(_0x4631d2))[_0x2a8a71('0x11')](function(_0x359190){const _0x5089e7=_0x2a8a71;if(_0x359190){let _0x292ff1=_0x359190[_0x5089e7('0x8a')]({'plain':!![]});return _0x292ff1=qs['omit'](_0x292ff1,['id',_0x5089e7('0x6a'),_0x5089e7('0x41'),_0x5089e7('0x1c')]),_0x41c5e6['body']=_[_0x5089e7('0x13')](_0x41c5e6['body'],['id',_0x5089e7('0x6a'),'updatedAt']),db[_0x5089e7('0xcc')][_0x5089e7('0xba')](function(_0x4b6f72){const _0x17e4fa=_0x5089e7;return db[_0x17e4fa('0x20')]['create'](_['merge'](_0x292ff1,_0x41c5e6[_0x17e4fa('0x81')]),{'include':_0x41c5e6[_0x17e4fa('0x5b')][_0x17e4fa('0x78')]?[{'all':!![]}]:undefined,'transaction':_0x4b6f72})['then'](function(_0x579f4b){const _0x57a82b=_0x17e4fa,_0x57e0a1=_0x579f4b[_0x57a82b('0x8a')]({'plain':!![]});return db[_0x57a82b('0x60')][_0x57a82b('0x54')]({'where':{'userProfileId':_0x41c5e6[_0x57a82b('0x9c')]['id']},'raw':!![]})[_0x57a82b('0x11')](function(_0x3708f4){if(_0x3708f4)return Promise['each'](_0x3708f4,function(_0x19a656){const _0x278215=a667_0x58a9;return new Promise(function(_0x1a3e8b,_0xfe8fa3){const _0xdfed9d=a667_0x58a9;if(_0x19a656[_0xdfed9d('0x3f')]===null||_0x19a656[_0xdfed9d('0x3f')]===0x1)_0x1a3e8b(null);return db[_0xdfed9d('0x6e')][_0xdfed9d('0x54')]({'where':{'sectionId':_0x19a656['id']},'raw':!![]})[_0xdfed9d('0x11')](function(_0x31568e){const _0x5e739b=_['map'](_0x31568e,function(_0x31912c){const _0x4707a2=a667_0x58a9;return qs['omit'](_0x31912c,['id',_0x4707a2('0x6a'),_0x4707a2('0x41'),_0x4707a2('0x62')]);});_0x1a3e8b(_0x5e739b);})[_0xdfed9d('0x55')](function(_0x16a6ce){_0xfe8fa3(_0x16a6ce);});})[_0x278215('0x11')](function(_0x4116d4){const _0x37c12f=_0x278215,_0x3e4318=qs['omit'](_0x19a656,['id',_0x37c12f('0x6a'),_0x37c12f('0x41')]);_0x3e4318[_0x37c12f('0xa7')]=_0x57e0a1['id'];if(_0x4116d4)_0x3e4318[_0x37c12f('0x61')]=_0x4116d4;return _0x3e4318;})['then'](function(_0x52fb4e){const _0x51fde7=_0x278215;return db[_0x51fde7('0x60')]['create'](_0x52fb4e,{'include':[{'model':db[_0x51fde7('0x6e')],'as':_0x51fde7('0x61')}],'raw':!![],'transaction':_0x4b6f72});});})['then'](function(){return _0x57e0a1;});});});});}})[_0x2a8a71('0x11')](respondWithResult(_0x4631d2,0xc9))[_0x2a8a71('0x55')](handleError(_0x4631d2,null));},exports['update']=function(_0x4423bf,_0x3689e4){const _0x447d4a=_0x4ac35c;return _0x4423bf[_0x447d4a('0x81')]['id']&&delete _0x4423bf[_0x447d4a('0x81')]['id'],db[_0x447d4a('0x20')][_0x447d4a('0xc3')]({'where':{'id':_0x4423bf[_0x447d4a('0x9c')]['id']}})[_0x447d4a('0x11')](handleEntityNotFound(_0x3689e4))[_0x447d4a('0x11')](saveUpdates(_0x4423bf[_0x447d4a('0x81')],null))[_0x447d4a('0x11')](respondWithResult(_0x3689e4,null))[_0x447d4a('0x55')](handleError(_0x3689e4,null));},exports[_0x4ac35c('0x25')]=function(_0x188eee,_0x2d3aae){const _0x5b5554=_0x4ac35c;return db[_0x5b5554('0x20')][_0x5b5554('0xc3')]({'where':{'id':_0x188eee[_0x5b5554('0x9c')]['id']}})['then'](handleEntityNotFound(_0x2d3aae))[_0x5b5554('0x11')](removeEntity(_0x2d3aae,null))[_0x5b5554('0x55')](handleError(_0x2d3aae,null));},exports[_0x4ac35c('0x66')]=function(_0x54e790,_0x458fce){const _0x63f5b6=_0x4ac35c;return db[_0x63f5b6('0x20')][_0x63f5b6('0x66')]()[_0x63f5b6('0x11')](respondWithResult(_0x458fce,null))['catch'](handleError(_0x458fce,null));},exports[_0x4ac35c('0x4')]=function(_0x20982e,_0x4532d2){const _0x5795f2=_0x4ac35c,_0x1f81a6=_0x20982e['body'];return db[_0x5795f2('0x20')][_0x5795f2('0xc3')]({'where':{'id':_0x20982e[_0x5795f2('0x9c')]['id']}})[_0x5795f2('0x11')](handleEntityNotFound(_0x4532d2))[_0x5795f2('0x11')](function(_0x84fed8){const _0x23bedd=_0x5795f2;if(_0x84fed8)return db[_0x23bedd('0xcc')]['transaction'](function(_0x86a611){const _0x39a599=_0x23bedd;return db[_0x39a599('0x60')][_0x39a599('0x25')]({'where':{'userProfileId':_0x20982e[_0x39a599('0x9c')]['id'],'sectionId':_['map'](_0x1f81a6,function(_0x5c9f41){const _0xed2210=_0x39a599;return _0x5c9f41[_0xed2210('0x62')];})},'transaction':_0x86a611})[_0x39a599('0x11')](function(){const _0x1011da=_0x39a599,_0x31b02a=_[_0x1011da('0xb3')](_0x1f81a6,function(_0x269aaa){const _0xa1232a=_0x1011da;return _0x269aaa[_0xa1232a('0xa7')]=_0x20982e[_0xa1232a('0x9c')]['id'],_0x269aaa;}),_0x3df52d=[];return Promise['each'](_0x31b02a,function(_0x21bd06){const _0x194c2d=_0x1011da;return db[_0x194c2d('0x60')][_0x194c2d('0xd3')](_0x21bd06,{'include':[{'model':db[_0x194c2d('0x6e')],'as':_0x194c2d('0x61')}],'raw':!![],'transaction':_0x86a611})[_0x194c2d('0x11')](function(_0x40a3f6){const _0x459ea0=_0x194c2d;_0x3df52d['push'](_0x40a3f6[_0x459ea0('0x8a')]({'plain':!![]}));});})[_0x1011da('0x11')](function(){return _0x3df52d;});});});})['then'](function(_0x222f20){return _0x222f20;})['then'](respondWithResult(_0x4532d2,null))['catch'](handleError(_0x4532d2,null));},exports[_0x4ac35c('0x71')]=function(_0x58e690,_0x5c686c){const _0xba8346=_0x4ac35c;let _0xe17790;return db[_0xba8346('0x20')][_0xba8346('0xc3')]({'where':{'id':_0x58e690[_0xba8346('0x9c')]['id']},'attributes':['id',_0xba8346('0x7b')]})[_0xba8346('0x11')](handleEntityNotFound(_0x5c686c))[_0xba8346('0x11')](function(_0xc80af0){const _0xecfad2=_0xba8346;if(_0xc80af0)return _0xe17790=_0xc80af0,db[_0xecfad2('0x60')]['destroy']({'where':{'userProfileId':_0x58e690['params']['id'],'sectionId':_0x58e690[_0xecfad2('0x5b')]['ids']}});})['then'](function(){return _0xe17790;})[_0xba8346('0x11')](respondWithStatusCode(_0x5c686c,null))['catch'](handleError(_0x5c686c,null));},exports[_0x4ac35c('0x6c')]=function(_0x42e466,_0x4906eb){const _0x3cb05c=_0x4ac35c;let _0x15c8a9=[],_0x20fec8=[];return db['UserProfileSection'][_0x3cb05c('0x54')]({'where':{'userProfileId':_0x42e466[_0x3cb05c('0x9c')]['id']},'raw':!![]})[_0x3cb05c('0x11')](function(_0x418af9){const _0xc55089=_0x3cb05c;_0x15c8a9=_[_0xc55089('0xaa')](_0x418af9,function(_0x2692a7){const _0x171053=_0xc55089;return _0x2692a7['enabled']===0x1||_['includes']([0x3eb,0x709],_0x2692a7[_0x171053('0x62')]);});if(!_[_0xc55089('0xa9')](_0x15c8a9))return _['map'](_0x15c8a9,function(_0x2cbfa0){return _0x2cbfa0['sectionId'];});else return;})[_0x3cb05c('0x11')](function(_0x2385be){const _0x36fd8a=_0x3cb05c;if(_0x2385be)_0x20fec8=_0x2385be;if(_[_0x36fd8a('0xc4')](_0x20fec8,0x64)){const _0x88f421=_[_0x36fd8a('0xc2')](_0x15c8a9,{'sectionId':0x64});return hasDefaultDashboard(_0x88f421)[_0x36fd8a('0x11')](function(_0x54d270){const _0x3076fd=_0x36fd8a;return _[_0x3076fd('0xb3')](_0x15c8a9,function(_0x9c5fdd){const _0x2f4e74=_0x3076fd;return _0x9c5fdd[_0x2f4e74('0x62')]===0x64&&(_0x9c5fdd[_0x2f4e74('0x47')]=_0x54d270),_0x9c5fdd;});});}else return;})[_0x3cb05c('0x11')](function(_0x465779){const _0x5383f8=_0x3cb05c;if(_0x465779)_0x15c8a9=_0x465779;if(_['includes'](_0x20fec8,0x3eb)){const _0x7270dd=_[_0x5383f8('0xc2')](_0x15c8a9,{'sectionId':0x3eb});return getCustomDashboards(_0x7270dd)[_0x5383f8('0x11')](function(_0x4771ff){const _0x4c87c5=_0x5383f8;return _[_0x4c87c5('0xb3')](_0x15c8a9,function(_0x466e9d){const _0x46b0b0=_0x4c87c5;return _0x7270dd[_0x46b0b0('0x3c')]?_0x466e9d[_0x46b0b0('0x62')]===0x3eb&&(_0x466e9d[_0x46b0b0('0x47')]=_0x4771ff):_0x466e9d[_0x46b0b0('0x62')]===0x64&&(_0x466e9d['subsections']=_0x4771ff),_0x466e9d;});});}else return;})['then'](function(_0x154606){const _0x496e38=_0x3cb05c;if(_0x154606)_0x15c8a9=_0x154606;if(_[_0x496e38('0xc4')](_0x20fec8,0x709)){const _0x1dcf28=_[_0x496e38('0xc2')](_0x15c8a9,{'sectionId':0x709});return getPlugins(_0x1dcf28)['then'](function(_0x3d009c){const _0x2fc24a=_0x496e38;if(_0x1dcf28[_0x2fc24a('0x3c')])return _[_0x2fc24a('0xb3')](_0x15c8a9,function(_0x32b24d){const _0x33e013=_0x2fc24a;return _0x32b24d[_0x33e013('0x62')]===0x709&&(_0x32b24d[_0x33e013('0x47')]=_0x3d009c),_0x32b24d;});else{const _0x54c2ff={'sectionId':0x76c,'enabled':0x1,'subsections':_0x3d009c},_0x49bfda=_[_0x2fc24a('0xb3')](_0x15c8a9);return _0x49bfda[_0x2fc24a('0x75')](_0x54c2ff),_0x49bfda;}});}else return;})[_0x3cb05c('0x11')](function(_0x363736){const _0x4130ad=_0x3cb05c;if(_0x363736)_0x15c8a9=_0x363736;return _[_0x4130ad('0xaa')](_0x15c8a9,[_0x4130ad('0x3c'),0x1]);})[_0x3cb05c('0x11')](respondWithResult(_0x4906eb,null))[_0x3cb05c('0x55')](handleError(_0x4906eb,null));};function hasDefaultDashboard(_0x5d5621){const _0x32d9be=[0x65];return new Promise(function(_0x7844ce,_0x4954fb){const _0x2565df=a667_0x58a9;try{if(_0x5d5621[_0x2565df('0x3f')])_0x7844ce(_0x32d9be);else return db['UserProfileResource'][_0x2565df('0xc3')]({'where':{'sectionId':_0x5d5621['id']},'raw':!![]})[_0x2565df('0x11')](function(_0x23b2b0){_0x23b2b0?_0x7844ce(_0x32d9be):_0x7844ce();});}catch(_0x54da29){_0x4954fb(_0x54da29);}});}function getCustomDashboards(_0x153b53){const _0x2063e0=[];return new Promise(function(_0x1f0c46,_0x261415){const _0x4e5d38=a667_0x58a9;try{return _0x153b53[_0x4e5d38('0x3f')]?db[_0x4e5d38('0xc0')][_0x4e5d38('0x54')]({'raw':!![]})[_0x4e5d38('0x11')](function(_0x21de7b){const _0x54b501=_0x4e5d38;_0x21de7b[_0x54b501('0xc7')](function(_0x46fe3f){_0x2063e0['push'](_0x46fe3f['id']+0x1869f);}),_0x1f0c46(_0x2063e0);}):db[_0x4e5d38('0x6e')][_0x4e5d38('0x54')]({'where':{'sectionId':_0x153b53['id']},'raw':!![]})[_0x4e5d38('0x11')](function(_0x406d2f){const _0x127584=_0x4e5d38;_0x406d2f[_0x127584('0xc7')](function(_0x27a647){const _0x44b896=_0x127584;_0x2063e0[_0x44b896('0x75')](_0x27a647[_0x44b896('0x1d')]+0x1869f);}),_0x1f0c46(_0x2063e0);});}catch(_0x2ce53f){_0x261415(_0x2ce53f);}});}function getPlugins(_0x163b7b){const _0x32abe0=[];return new Promise(function(_0x1bc44b,_0x44bef2){const _0x5019ed=a667_0x58a9;try{return _0x163b7b[_0x5019ed('0x3f')]?db[_0x5019ed('0x82')]['findAll']({'raw':!![]})[_0x5019ed('0x11')](function(_0x28de65){const _0x590e48=_0x5019ed;_0x28de65[_0x590e48('0xc7')](function(_0x234a74){const _0x5af66b=_0x590e48;_0x32abe0[_0x5af66b('0x75')](_0x234a74['id']+0x15b38);}),_0x1bc44b(_0x32abe0);}):db[_0x5019ed('0x6e')]['findAll']({'where':{'sectionId':_0x163b7b['id']},'raw':!![]})[_0x5019ed('0x11')](function(_0x1ecf6c){const _0x14e9bb=_0x5019ed;_0x1ecf6c[_0x14e9bb('0xc7')](function(_0x11a6fa){const _0x5f35f8=_0x14e9bb;_0x32abe0[_0x5f35f8('0x75')](_0x11a6fa['resourceId']+0x15b38);}),_0x1bc44b(_0x32abe0);});}catch(_0x312c81){_0x44bef2(_0x312c81);}});}exports[_0x4ac35c('0xa3')]=function(_0x32a30c,_0x3fc930){const _0x598ca2=_0x4ac35c;return db[_0x598ca2('0x20')][_0x598ca2('0xc3')]({'where':{'id':_0x32a30c[_0x598ca2('0x9c')]['id']}})['then'](handleEntityNotFound(_0x3fc930))[_0x598ca2('0x11')](function(_0x4496ec){const _0x10f003=_0x598ca2;if(_0x4496ec)return db[_0x10f003('0xcc')][_0x10f003('0xba')](function(_0x5c0942){const _0x2de531=_0x10f003;return db[_0x2de531('0x60')]['findAll']({'where':{'userProfileId':_0x32a30c[_0x2de531('0x9c')]['id']},'attributes':['id'],'raw':!![]})[_0x2de531('0x11')](function(_0x12da98){const _0x3cac85=_0x2de531;if(_0x12da98)return db['UserProfileSection'][_0x3cac85('0x25')]({'where':{'userProfileId':_0x32a30c[_0x3cac85('0x9c')]['id'],'id':_[_0x3cac85('0xb3')](_0x12da98,function(_0x13d35d){return _0x13d35d['id'];})},'transaction':_0x5c0942});})['then'](function(){const _0x41bf0d=_0x2de531,_0x49a133=_[_0x41bf0d('0xb3')](_0x32a30c[_0x41bf0d('0x81')],function(_0x1cd656){const _0x254ab6=_0x41bf0d;return _0x1cd656[_0x254ab6('0xa7')]=_0x32a30c['params']['id'],_0x1cd656;});return db[_0x41bf0d('0x60')][_0x41bf0d('0xa8')](_0x49a133,{'raw':!![],'transaction':_0x5c0942});})[_0x2de531('0x11')](function(_0x52003e){const _0x492bc7=_0x2de531,_0x427431=_[_0x492bc7('0xaa')](_[_0x492bc7('0xb3')](_0x52003e,function(_0x3d4654){const _0x479016=_0x492bc7;return _0x3d4654[_0x479016('0x8a')]({'plain':!![]});}),{'includeAll':![]});if(_0x427431)return db[_0x492bc7('0x60')]['findAll']({'where':{'userProfileId':_0x32a30c[_0x492bc7('0x9c')]['id'],'sectionId':_[_0x492bc7('0xb3')](_0x427431,function(_0x43c6c4){return _0x43c6c4['sectionId'];})},'attributes':['id',_0x492bc7('0x62')],'raw':!![]})[_0x492bc7('0x11')](function(){const _0x3d17f7=_0x492bc7,_0x2a7a5a=_[_0x3d17f7('0xb3')](_0x32a30c[_0x3d17f7('0x81')],function(_0x36133c){const _0x1e8f1c=_0x3d17f7;return _0x36133c[_0x1e8f1c('0xa7')]=_0x32a30c[_0x1e8f1c('0x9c')]['id'],_0x36133c;});return db['UserProfileResource'][_0x3d17f7('0xa8')](_0x2a7a5a,{'raw':!![],'transaction':_0x5c0942});});})[_0x2de531('0x55')](handleError(_0x3fc930,null));});})[_0x598ca2('0x11')](function(){})[_0x598ca2('0x11')](respondWithResult(_0x3fc930,null))[_0x598ca2('0x55')](handleError(_0x3fc930,null));},exports[_0x4ac35c('0xa')]=function(_0x15bb4c,_0x4847e3){const _0x9db6b0=_0x4ac35c;return db['UserProfile']['findOne']({'where':{'id':_0x15bb4c['params']['id']}})[_0x9db6b0('0x11')](handleEntityNotFound(_0x4847e3))[_0x9db6b0('0x11')](function(_0x519a7a){const _0x19dec9=_0x9db6b0;if(_0x519a7a)return _0x519a7a['removeResources'](_0x15bb4c[_0x19dec9('0x5b')][_0x19dec9('0x83')]);})[_0x9db6b0('0x11')](respondWithStatusCode(_0x4847e3,null))[_0x9db6b0('0x55')](handleError(_0x4847e3,null));},exports[_0x4ac35c('0xb8')]=function(_0x1f9570,_0x44cc5c){const _0x42b44f=_0x4ac35c;let _0x602f38={'raw':![],'where':{}};const _0x597251={},_0x1e03ec={'count':0x0,'rows':[]},_0x1993bf=_0x1f9570['query'][_0x42b44f('0xcb')];if(typeof _0x1993bf===_0x42b44f('0x19'))throw new ValidationError(_0x42b44f('0x4e'));const _0x20f1c0=_0x1f9570[_0x42b44f('0x5b')][_0x42b44f('0x6f')]||![],_0x51d730=getQueryModels(_0x1993bf,_0x20f1c0);if(typeof _0x51d730[_0x42b44f('0x1e')]===_0x42b44f('0x19'))throw new ValidationError(_0x42b44f('0x95')+_0x1993bf+'\x27');let _0x45ce16=[];return!_[_0x42b44f('0xa9')](_0x51d730['parentSections'])?_0x45ce16=_0x51d730[_0x42b44f('0xc1')]:_0x45ce16=[{'name':_0x1993bf}],db[_0x42b44f('0x20')][_0x42b44f('0xc3')]({'where':{'id':_0x1f9570[_0x42b44f('0x9c')]['id']}})[_0x42b44f('0x11')](handleEntityNotFound(_0x44cc5c))[_0x42b44f('0x11')](function(_0xdd63dd){const _0x292ef8=_0x42b44f;if(_0xdd63dd){const _0x1c61c6=[];for(let _0x5c6b76=0x0;_0x5c6b76<_0x45ce16[_0x292ef8('0x2b')];_0x5c6b76++){_0x1c61c6['push'](db[_0x292ef8('0x60')][_0x292ef8('0xc3')]({'where':{'userProfileId':_0xdd63dd['id'],'name':_0x45ce16[_0x5c6b76][_0x292ef8('0x7b')]},'raw':!![]}));}return Promise['all'](_0x1c61c6);}})['then'](function(_0x554da0){const _0x4005f8=_0x42b44f,_0x18bb5b=_['filter'](_0x554da0,function(_0x4a1e93){return _0x4a1e93?_0x4a1e93:undefined;}),_0x56f789=_[_0x4005f8('0xaa')](_0x45ce16,[_0x4005f8('0xc'),!![]]),_0x413b69=_[_0x4005f8('0xa9')](_0x18bb5b)&&_['isEmpty'](_0x56f789)?null:_[_0x4005f8('0x48')](_0x56f789,_0x18bb5b);if(_0x413b69){const _0xd9dc51=[];for(let _0x5a764b=0x0;_0x5a764b<_0x413b69['length'];_0x5a764b++){const _0x461125=_[_0x4005f8('0xc2')](_0x45ce16,function(_0x5a0d44){const _0x546485=_0x4005f8;return _0x413b69[_0x5a764b]?_0x5a0d44['name']===_0x413b69[_0x5a764b][_0x546485('0x7b')]:null;});_0x461125&&(_0x413b69[_0x5a764b][_0x4005f8('0xc')]?_0xd9dc51['push'](getAllResources(_0x51d730['childModel'],_0x413b69[_0x5a764b])):!_0x413b69[_0x5a764b][_0x4005f8('0x3f')]?_0xd9dc51[_0x4005f8('0x75')](getAllowedResources(_0x461125,_0x413b69[_0x5a764b],_0x51d730[_0x4005f8('0x1e')])):_0x461125['model']&&_0xd9dc51[_0x4005f8('0x75')](getAllFilteredResources(_0x461125,_0x413b69[_0x5a764b])));}return Promise['all'](_0xd9dc51);}else return null;})[_0x42b44f('0x11')](function(_0x11e496){const _0x3dd65b=_0x42b44f,_0x21a54c=_0x11e496;let _0x35d913=null;_0x21a54c&&(_0x35d913=_0x21a54c[_0x3dd65b('0x2b')]===0x1?_0x21a54c[0x0]:null);if(_0x35d913||_0x21a54c){const _0x59008c=db[_0x51d730[_0x3dd65b('0x1e')]][_0x3dd65b('0x70')];_0x597251['model']=_[_0x3dd65b('0x89')](_0x59008c),_0x597251[_0x3dd65b('0x5b')]=_['keys'](_0x1f9570[_0x3dd65b('0x5b')]),_0x597251[_0x3dd65b('0xbb')]=_['intersection'](_0x597251['model'],_0x597251[_0x3dd65b('0x5b')]),_0x602f38[_0x3dd65b('0x9b')]=_[_0x3dd65b('0x8b')](_0x597251['model'],qs['fields'](_0x1f9570[_0x3dd65b('0x5b')][_0x3dd65b('0x21')])),_0x602f38[_0x3dd65b('0x9b')]=_0x602f38['attributes'][_0x3dd65b('0x2b')]?_0x602f38[_0x3dd65b('0x9b')]:_0x597251[_0x3dd65b('0x8c')];typeof _0x1f9570[_0x3dd65b('0x5b')][_0x3dd65b('0x7f')]===_0x3dd65b('0x19')&&(_0x602f38[_0x3dd65b('0x15')]=qs[_0x3dd65b('0x15')](_0x1f9570[_0x3dd65b('0x5b')][_0x3dd65b('0x15')]),_0x602f38[_0x3dd65b('0x33')]=qs[_0x3dd65b('0x33')](_0x1f9570[_0x3dd65b('0x5b')][_0x3dd65b('0x33')]));_0x602f38[_0x3dd65b('0x4d')]=qs[_0x3dd65b('0xc9')](_0x1f9570[_0x3dd65b('0x5b')][_0x3dd65b('0xc9')]),_0x602f38['where']=qs[_0x3dd65b('0xbb')](_['pick'](_0x1f9570[_0x3dd65b('0x5b')],_0x597251[_0x3dd65b('0xbb')]));_0x1f9570[_0x3dd65b('0x5b')][_0x3dd65b('0xaa')]&&(_0x602f38[_0x3dd65b('0x6')]=_[_0x3dd65b('0xb0')](_0x602f38[_0x3dd65b('0x6')],{[Op['or']]:_[_0x3dd65b('0xb3')](_0x59008c,function(_0x347d02){const _0x7594e8=_0x3dd65b;if(_0x347d02[_0x7594e8('0x49')]['key']!==_0x7594e8('0x5e')){const _0x5687fe={};return _0x5687fe[_0x347d02['field']]={[Op[_0x7594e8('0x45')]]:'%'+_0x1f9570['query']['filter']+'%'},_0x5687fe;}})}));const _0x2f6073=[];if(_0x35d913){const _0x510bf9=_[_0x3dd65b('0xc2')](_0x45ce16,['name',_0x35d913[_0x3dd65b('0x7b')]]);if(_0x510bf9['field']){const _0xa5b3ad={};_0x51d730['childModel']==='AnalyticExtractedReport'?_0xa5b3ad[_0x510bf9[_0x3dd65b('0x77')]]=_[_0x3dd65b('0xb3')](_0x35d913[_0x3dd65b('0x18')],'id'):_0xa5b3ad[_0x510bf9[_0x3dd65b('0x77')]]=_0x35d913[_0x3dd65b('0x18')],_0x2f6073[_0x3dd65b('0x75')](_0xa5b3ad);}else _0x602f38[_0x3dd65b('0x6')]['id']=_0x35d913['associatedResources'];}else for(let _0x3e3ef1=0x0;_0x3e3ef1<_0x21a54c['length'];_0x3e3ef1++){const _0x28ab64=_[_0x3dd65b('0xc2')](_0x45ce16,['name',_0x21a54c[_0x3e3ef1]['name']]);if(_0x28ab64[_0x3dd65b('0x50')]){const _0x2ff0ab={};_0x2ff0ab[_0x28ab64['foreignKey']]=_0x21a54c[_0x3e3ef1][_0x3dd65b('0x18')],_0x2f6073[_0x3dd65b('0x75')](_0x2ff0ab);}else{if(!_0x602f38[_0x3dd65b('0x6')]['id'])_0x602f38[_0x3dd65b('0x6')]['id']=[];_0x21a54c[_0x3e3ef1]['associatedResources']['forEach'](function(_0x4798f3){const _0x5eed4c=_0x3dd65b;_0x602f38[_0x5eed4c('0x6')]['id']['push'](_0x4798f3);});}}return!_['isEmpty'](_0x2f6073)&&(_0x602f38[_0x3dd65b('0x6')]=_[_0x3dd65b('0xb0')](_0x602f38[_0x3dd65b('0x6')],{[Op[_0x3dd65b('0x6d')]]:{[Op['or']]:_0x2f6073}})),_0x602f38=_[_0x3dd65b('0xb0')]({},_0x602f38,_0x1f9570[_0x3dd65b('0x30')]),_0x35d913&&!_0x35d913[_0x3dd65b('0x3f')]&&_0x51d730[_0x3dd65b('0x1e')]==='AnalyticExtractedReport'?(_0x1f9570[_0x3dd65b('0x5b')][_0x3dd65b('0x78')]&&(_0x602f38[_0x3dd65b('0x4c')]=[{'all':!![]}]),db[_0x51d730[_0x3dd65b('0x1e')]][_0x3dd65b('0x54')](_0x602f38)['then'](function(_0x38c115){const _0x284282=_0x3dd65b,_0xd122ba=[];return _0x38c115['forEach'](function(_0x1cea89){const _0x3ee188=a667_0x58a9;let _0x87036;switch(_0x1cea89[_0x3ee188('0xbd')]){case _0x3ee188('0x85'):_0x87036=_[_0x3ee188('0xc2')](_0x35d913['associatedResources'],function(_0x2b3230){const _0x38e5d0=_0x3ee188;return _0x2b3230['id']===_0x1cea89['reportId']&&_0x2b3230[_0x38e5d0('0x49')]===_0x38e5d0('0x38');});break;case _0x3ee188('0x2'):_0x87036=_[_0x3ee188('0xc2')](_0x35d913[_0x3ee188('0x18')],function(_0x2f32bf){const _0x5d9fc3=_0x3ee188;return _0x2f32bf['id']===_0x1cea89['reportId']&&_0x2f32bf[_0x5d9fc3('0x49')]===_0x5d9fc3('0x84');});break;}if(_0x87036)_0xd122ba['push'](_0x1cea89);}),_0x1e03ec[_0x284282('0x17')]=_0xd122ba[_0x284282('0x2b')],_0x1e03ec['rows']=_0xd122ba,_0x1e03ec;})):db[_0x51d730[_0x3dd65b('0x1e')]]['count']({'where':_0x602f38['where']})[_0x3dd65b('0x11')](function(_0xb3e30){const _0x193810=_0x3dd65b;return _0x1e03ec['count']=_0xb3e30,_0x1f9570[_0x193810('0x5b')][_0x193810('0x78')]&&(_0x51d730[_0x193810('0x1e')]===_0x193810('0xa1')?_0x602f38['include']=[{'model':db[_0x193810('0x53')],'as':'Tags','attributes':['id',_0x193810('0x7b'),_0x193810('0x74')],'required':_0x1f9570[_0x193810('0x5b')][_0x193810('0x23')]?!![]:![]},{'model':db['Tag'],'as':_0x193810('0x29'),'attributes':['id','name','color'],'through':_0x1f9570[_0x193810('0x5b')]['tag']?{'attributes':[],'where':{'TagId':_0x1f9570['query']['tag']||undefined}}:{},'required':_0x1f9570[_0x193810('0x5b')]['tag']?!![]:![]}]:_0x602f38['include']=[{'all':!![]}]),db[_0x51d730['childModel']]['findAll'](_0x602f38);})[_0x3dd65b('0x11')](function(_0x1a5d94){const _0x5525b2=_0x3dd65b;return _0x1e03ec[_0x5525b2('0x26')]=_0x1a5d94,_0x1e03ec;});}else return _0x1e03ec;})[_0x42b44f('0x11')](respondWithFilteredResult(_0x44cc5c,_0x602f38))[_0x42b44f('0x55')](handleError(_0x44cc5c,null));};function getAllResources(_0x4379b4,_0x1aac93){return new Promise(function(_0x2e0940,_0x43ddf2){const _0x340887=a667_0x58a9;if(_0x1aac93){const _0x39b91f=_0x1aac93[_0x340887('0xaa')]?{[_0x1aac93[_0x340887('0xaa')][_0x340887('0x50')]]:_0x1aac93[_0x340887('0xaa')][_0x340887('0x2a')]}:undefined;return db[_0x4379b4]['findAll']({'where':_0x39b91f,'raw':!![]})[_0x340887('0x11')](function(_0x13447c){const _0x555ba4=_0x340887;_0x1aac93[_0x555ba4('0x18')]=_[_0x555ba4('0xb3')](_0x13447c,'id'),_0x2e0940(_0x1aac93);})[_0x340887('0x55')](function(_0x367c8){_0x43ddf2(_0x367c8);});}else _0x2e0940(null);});}function getAllFilteredResources(_0x1d0319,_0x4f3a7d){return new Promise(function(_0x5441f8,_0x22f851){const _0x14072a=a667_0x58a9,_0x2ae049=_0x1d0319['filter']?{[_0x1d0319[_0x14072a('0xaa')]['field']]:_0x1d0319[_0x14072a('0xaa')][_0x14072a('0x2a')]}:undefined;return db[_0x1d0319[_0x14072a('0x8c')]][_0x14072a('0x54')]({'where':_0x2ae049,'raw':!![]})['then'](function(_0x352d61){const _0x28eab1=_0x14072a;_0x4f3a7d['associatedResources']=_[_0x28eab1('0xb3')](_0x352d61,function(_0x270b51){const _0x219af6=_0x28eab1;return _0x270b51[_0x219af6('0x7b')];}),_0x5441f8(_0x4f3a7d);})[_0x14072a('0x55')](function(_0x273181){_0x22f851(_0x273181);});});}function getAllowedResources(_0x30ab16,_0x3b2737,_0x41da80){return new Promise(function(_0x1b1717,_0x41acfe){const _0x4b7ae5=a667_0x58a9;if(_0x3b2737)return db[_0x4b7ae5('0x6e')]['findAll']({'where':{'sectionId':_0x3b2737['id']},'raw':!![]})['then'](function(_0x72683){const _0xb2d666=_0x4b7ae5;_0x30ab16['field']&&_0x30ab16['field']!=='id'?_0x3b2737[_0xb2d666('0x18')]=_[_0xb2d666('0xb3')](_0x72683,function(_0x21eea7){return _0x21eea7[_0x30ab16['field']];}):_0x41da80===_0xb2d666('0xb2')?_0x3b2737[_0xb2d666('0x18')]=_[_0xb2d666('0xb3')](_0x72683,function(_0x332cea){const _0xc863ef=_0xb2d666;return{'id':_0x332cea[_0xc863ef('0x1d')],'type':_0x332cea[_0xc863ef('0x49')]};}):_0x3b2737[_0xb2d666('0x18')]=_[_0xb2d666('0xb3')](_0x72683,function(_0x5c54bf){return _0x5c54bf['resourceId'];}),_0x1b1717(_0x3b2737);})[_0x4b7ae5('0x55')](function(_0x2b2dbc){_0x41acfe(_0x2b2dbc);});else _0x1b1717(null);});}function getQueryModels(_0x4b7f4d,_0x32ae26){const _0x4a2eee=_0x4ac35c,_0x11c1c5=_0x4b7f4d[_0x4a2eee('0x2c')](),_0x46628a={'childModel':undefined,'parentSections':[]};switch(_0x11c1c5){case'squareprojects':_0x46628a[_0x4a2eee('0x1e')]='SquareProject';break;case _0x4a2eee('0x42'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x46');break;case'squarerecordings':_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x7'),_0x46628a['parentSections']=[{'name':'SquareProjects','field':_0x4a2eee('0x7b'),'foreignKey':_0x4a2eee('0xd1')}];break;case _0x4a2eee('0xb'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x98');break;case _0x4a2eee('0x73'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0xa1'),_0x46628a['parentSections']=[{'name':_0x4a2eee('0x3a'),'field':'id','foreignKey':_0x4a2eee('0x5d')}];break;case _0x4a2eee('0xb5'):_0x46628a['childModel']='CmList';break;case _0x4a2eee('0x94'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0xa6');break;case _0x4a2eee('0x27'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x22');break;case _0x4a2eee('0xe'):_0x46628a['childModel']=_0x4a2eee('0x4f');break;case'chatwebsites':_0x46628a[_0x4a2eee('0x1e')]='ChatWebsite';break;case _0x4a2eee('0x57'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x56');break;case'faxaccounts':_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x5');break;case _0x4a2eee('0xad'):case _0x4a2eee('0x8'):case'outboundroutes':_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0xc6');break;case _0x4a2eee('0x59'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x68');break;case _0x4a2eee('0x7a'):_0x46628a['childModel']=_0x4a2eee('0x32');break;case _0x4a2eee('0x52'):_0x46628a[_0x4a2eee('0x1e')]='VoiceRecording',_0x46628a[_0x4a2eee('0xc1')]=[{'name':_0x4a2eee('0x12'),'field':_0x4a2eee('0x7b'),'foreignKey':'membername','model':'User','filter':{'field':_0x4a2eee('0x80'),'value':['agent']}},{'name':_0x4a2eee('0x1b'),'field':'name','foreignKey':_0x4a2eee('0x10'),'model':_0x4a2eee('0x3'),'filter':{'field':'role','value':[_0x4a2eee('0xbc')]}},{'name':_0x4a2eee('0x5a'),'field':_0x4a2eee('0x7b'),'foreignKey':_0x4a2eee('0x28'),'model':_0x4a2eee('0x58'),'filter':{'field':_0x4a2eee('0x49'),'value':[_0x4a2eee('0x2f')]}},{'name':_0x4a2eee('0xa2'),'field':'name','foreignKey':_0x4a2eee('0x28'),'model':_0x4a2eee('0x58'),'filter':{'field':'type','value':['outbound']}}];break;case _0x4a2eee('0x24'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x90');break;case _0x4a2eee('0xac'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x9f');break;case _0x4a2eee('0x37'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x3b');break;case _0x4a2eee('0xd2'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0xa0');break;case _0x4a2eee('0xbf'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x97');break;case _0x4a2eee('0x1f'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x86');break;case _0x4a2eee('0x51'):_0x46628a['childModel']=_0x4a2eee('0x6b');break;case _0x4a2eee('0xcd'):_0x46628a[_0x4a2eee('0x1e')]='OpenchannelQueue';break;case _0x4a2eee('0x0'):_0x46628a[_0x4a2eee('0x1e')]='OpenchannelAccount';break;case _0x4a2eee('0x31'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x79');break;case _0x4a2eee('0x63'):_0x46628a['childModel']=_0x4a2eee('0x16');break;case'whatsappqueues':_0x46628a['childModel']='WhatsappQueue';break;case _0x4a2eee('0x4b'):_0x46628a[_0x4a2eee('0x1e')]='WhatsappAccount';break;case _0x4a2eee('0xd'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x93');break;case _0x4a2eee('0x9a'):case _0x4a2eee('0x8f'):_0x46628a['childModel']=_0x4a2eee('0x58');_0x32ae26&&(_0x46628a[_0x4a2eee('0xc1')]=[{'name':_0x4a2eee('0x5a')},{'name':_0x4a2eee('0xa2')}]);break;case _0x4a2eee('0x64'):case _0x4a2eee('0xae'):case _0x4a2eee('0x7c'):_0x46628a['childModel']='User';_0x32ae26&&(_0x46628a[_0x4a2eee('0xc1')]=[{'name':_0x4a2eee('0x5c'),'filter':{'field':_0x4a2eee('0x80'),'value':[_0x4a2eee('0x87'),_0x4a2eee('0x2e')]},'ignore':!![]},{'name':_0x4a2eee('0x12')},{'name':'Telephones'}]);break;case'zendeskaccounts':_0x46628a[_0x4a2eee('0x1e')]='ZendeskAccount';break;case'salesforceaccounts':_0x46628a['childModel']=_0x4a2eee('0xce');break;case _0x4a2eee('0x65'):_0x46628a[_0x4a2eee('0x1e')]='FreshdeskAccount';break;case _0x4a2eee('0x96'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x7e');break;case'deskaccounts':_0x46628a['childModel']=_0x4a2eee('0x99');break;case _0x4a2eee('0x36'):_0x46628a['childModel']='ZohoAccount';break;case _0x4a2eee('0xf'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x3');break;case _0x4a2eee('0x7d'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x5f');break;case _0x4a2eee('0xb4'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x14');break;case'customdashboards':_0x46628a[_0x4a2eee('0x1e')]='Dashboard';break;case _0x4a2eee('0xc5'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x40');break;case _0x4a2eee('0x91'):_0x46628a['childModel']='Pause';break;case _0x4a2eee('0xb1'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0xd4');break;case _0x4a2eee('0x39'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x9e');break;case _0x4a2eee('0x76'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x53');break;case _0x4a2eee('0x72'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x9');break;case _0x4a2eee('0x9d'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x44');break;case _0x4a2eee('0x3d'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x34');break;case _0x4a2eee('0xcf'):_0x46628a['childModel']='Variable';break;case _0x4a2eee('0x4a'):_0x46628a['childModel']='Plugin';break;case _0x4a2eee('0xb9'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0xb2'),_0x46628a[_0x4a2eee('0xc1')]=[{'name':_0x4a2eee('0x67'),'field':'id','foreignKey':_0x4a2eee('0xb6')}];break;case _0x4a2eee('0xa4'):_0x46628a[_0x4a2eee('0x1e')]=_0x4a2eee('0x43');break;default:return _0x46628a;}return _0x46628a;} \ No newline at end of file +const a667_0x3839=['Users','SquareProjects','MailSubstatus','catch','findAll','bulkCreate','./userProfile.socket','parentSections','whatsappaccounts','lists','includeAll','Tags','end','all','transaction','body','custom','admin','agent','chatqueues','faxaccounts','union','trunks','Agents','chanspies','json','../../components/parsers/qs','openchannelaccounts','FaxAccount','destroy','SquareProject','../../config/logger','dispositions','filter','childModel','toLowerCase','outbound','freshdeskaccounts','extractedreports','UserProfile','ThroughTags','Trigger','QueueCampaigns','SugarcrmAccount','find','queue','squarerecordings','length','associatedResources','User','offset','index','get','isEmpty','attributes','customdashboards','teams','CmCompany','keys','ivrcampaigns','../../rediscache','filters','include','updatedAt','rows','resourceId','VoiceMusicOnHold','api','model','includes','CustomReports','Template','Lists','AnalyticExtractedReport','limit','send','SalesforceAccount','mailqueues','smsqueues','SquareOdbc','CmList','show','role','ChatQueue','ChatWebsite','salesforceaccounts','subsections','Plugin','deskaccounts','JscriptyProject','plugins','user','crudPermissions','zendeskaccounts','UserProfileResource','tag','merge','CmCustomField','field','pauses','telephone','odbc','Tag','map','mailsubstatuses','contexts','metrics','SquareRecording','removeSections','projects','order','Telephones','variables','type','stack','addSections','VoiceQueues','Reports','undefined','name','ListId','update','Unknown\x20section','ZohoAccount','value','../../mysqldb','DeskAccount','lodash','ZendeskAccount','like','sort','forEach','query','smsaccounts','projectName','voicequeues','ids','intersection','sendStatus','sequelize','vtigeraccounts','register','create','count','zohoaccounts','Resources','omit','DefaultReports','userProfileId','faxqueues','Disposition','findOne','Interval','voicerecordings','WhatsappQueue','chatwebsites','globalcustomfields','color','error','voicemails','AnalyticMetric','then','sectionId','users','MailQueue','Campaign','SmsAccount','cannedanswers','enabled','VIRTUAL','VoiceQueue','FreshdeskAccount','status','nolimit','getResources','addResources','MailAccount','reportId','scheduler','key','inbound','rawAttributes','default','ignore','push','companies','intervals','params','openchannelqueues','removeResources','UserProfileSection','Invalid\x20section\x20\x27','foreignKey','FaxQueue','createdAt','telephones','sounds','where','fields','inboundroutes','Team','options','WhatsappAccount','pick','autoAssociation','Dashboard','each'];(function(_0x5ce56c,_0x383963){const _0x11d452=function(_0x519839){while(--_0x519839){_0x5ce56c['push'](_0x5ce56c['shift']());}};_0x11d452(++_0x383963);}(a667_0x3839,0xbb));const a667_0x11d4=function(_0x5ce56c,_0x383963){_0x5ce56c=_0x5ce56c-0x0;let _0x11d452=a667_0x3839[_0x5ce56c];return _0x11d452;};const _0x560cdd=a667_0x11d4;'use strict';const _=require(_0x560cdd('0x93')),qs=require(_0x560cdd('0x2e')),logger=require(_0x560cdd('0x33'))(_0x560cdd('0x57')),{getSocket}=require(_0x560cdd('0x50')),socket=getSocket(),db=require(_0x560cdd('0x91'))['db'],{Op,ValidationError}=require(_0x560cdd('0x9f'));require(_0x560cdd('0x1a'))[_0x560cdd('0xa1')](socket);function respondWithStatusCode(_0x519839,_0x31b12e){return _0x31b12e=_0x31b12e||0xcc,function(_0x4ae3f8){const _0xfec319=a667_0x11d4;if(_0x4ae3f8)return _0x519839['sendStatus'](_0x31b12e);return _0x519839[_0xfec319('0xc0')](_0x31b12e)[_0xfec319('0x20')]();};}function respondWithResult(_0x1b5cd4,_0x2f235a){return _0x2f235a=_0x2f235a||0xc8,function(_0xc1d6a1){const _0xb185b2=a667_0x11d4;if(_0xc1d6a1)return _0x1b5cd4[_0xb185b2('0xc0')](_0x2f235a)[_0xb185b2('0x2d')](_0xc1d6a1);};}function respondWithFilteredResult(_0x55182d,_0x5320ea){return function(_0x26b70a){const _0x371cb5=a667_0x11d4;if(_0x26b70a){const _0x423a6b=_0x26b70a[_0x371cb5('0xa3')],_0x398d8f=_0x5320ea[_0x371cb5('0x46')];let _0x185a2c=_0x5320ea['offset']+_0x5320ea[_0x371cb5('0x5e')],_0x1d6a83;return _0x185a2c>=_0x423a6b?(_0x185a2c=_0x423a6b,_0x1d6a83=0xc8):_0x1d6a83=0xce,_0x55182d[_0x371cb5('0xc0')](_0x1d6a83),_0x55182d['set']('Content-Range',_0x398d8f+'-'+_0x185a2c+'/'+_0x423a6b)[_0x371cb5('0x2d')](_0x26b70a);}return null;};}function saveUpdates(_0x19feed){return function(_0x376bad){const _0x5e61ce=a667_0x11d4;if(_0x376bad)return _0x376bad[_0x5e61ce('0x8d')](_0x19feed)[_0x5e61ce('0xb5')](function(_0x4cc746){return _0x4cc746;});return null;};}function removeEntity(_0x1f35d9){return function(_0x3ddf9d){const _0x12292e=a667_0x11d4;if(_0x3ddf9d)return _0x3ddf9d[_0x12292e('0x31')]()[_0x12292e('0xb5')](function(){const _0x21daf3=_0x12292e;_0x1f35d9[_0x21daf3('0xc0')](0xcc)[_0x21daf3('0x20')]();});};}function handleEntityNotFound(_0x19dcfc){return function(_0x4d6917){const _0x2d673a=a667_0x11d4;return!_0x4d6917&&_0x19dcfc[_0x2d673a('0x9e')](0x194),_0x4d6917;};}function handleError(_0x3400a5,_0xc4ef46){return _0xc4ef46=_0xc4ef46||0x1f4,function(_0xd0e24b){const _0x458714=a667_0x11d4;logger[_0x458714('0xb2')](_0xd0e24b[_0x458714('0x86')]),_0xd0e24b[_0x458714('0x8b')]&&delete _0xd0e24b[_0x458714('0x8b')],_0x3400a5['status'](_0xc4ef46)[_0x458714('0x5f')](_0xd0e24b);};}exports[_0x560cdd('0x47')]=function(_0x30c64f,_0x419e94){const _0x4623b9=_0x560cdd;let _0x24974e={};const _0x4689a3={},_0x122d02={'count':0x0,'rows':[]},_0xe0b186=_[_0x4623b9('0x7b')](db['UserProfile']['rawAttributes'],function(_0x5d6ecd){const _0x35d479=_0x4623b9;return{'name':_0x5d6ecd['fieldName'],'type':_0x5d6ecd[_0x35d479('0x85')][_0x35d479('0xc7')]};});_0x4689a3[_0x4623b9('0x58')]=_['map'](_0xe0b186,_0x4623b9('0x8b')),_0x4689a3[_0x4623b9('0x98')]=_['keys'](_0x30c64f[_0x4623b9('0x98')]),_0x4689a3[_0x4623b9('0x51')]=_[_0x4623b9('0x9d')](_0x4689a3['model'],_0x4689a3['query']),_0x24974e[_0x4623b9('0x4a')]=_[_0x4623b9('0x9d')](_0x4689a3['model'],qs['fields'](_0x30c64f[_0x4623b9('0x98')][_0x4623b9('0xb')])),_0x24974e['attributes']=_0x24974e[_0x4623b9('0x4a')][_0x4623b9('0x43')]?_0x24974e[_0x4623b9('0x4a')]:_0x4689a3['model'];typeof _0x30c64f[_0x4623b9('0x98')][_0x4623b9('0xc1')]==='undefined'&&(_0x24974e[_0x4623b9('0x5e')]=qs['limit'](_0x30c64f[_0x4623b9('0x98')]['limit']),_0x24974e[_0x4623b9('0x46')]=qs[_0x4623b9('0x46')](_0x30c64f[_0x4623b9('0x98')][_0x4623b9('0x46')]));_0x24974e[_0x4623b9('0x82')]=qs[_0x4623b9('0x96')](_0x30c64f['query']['sort']),_0x24974e[_0x4623b9('0xa')]=qs['filters'](_[_0x4623b9('0x10')](_0x30c64f[_0x4623b9('0x98')],_0x4689a3[_0x4623b9('0x51')]),_0xe0b186);_0x30c64f[_0x4623b9('0x98')]['filter']&&(_0x24974e[_0x4623b9('0xa')]=_[_0x4623b9('0x74')](_0x24974e[_0x4623b9('0xa')],{[Op['or']]:_[_0x4623b9('0x7b')](_0xe0b186,function(_0x30d347){const _0x2d1c77=_0x4623b9;if(_0x30d347[_0x2d1c77('0x85')]!==_0x2d1c77('0xbd')){const _0x144bde={};return _0x144bde[_0x30d347[_0x2d1c77('0x8b')]]={[Op[_0x2d1c77('0x95')]]:'%'+_0x30c64f[_0x2d1c77('0x98')][_0x2d1c77('0x35')]+'%'},_0x144bde;}})}));_0x24974e=_['merge']({},_0x24974e,_0x30c64f['options']);const _0x59169b={'where':_0x24974e['where']};return db[_0x4623b9('0x3b')][_0x4623b9('0xa3')](_0x59169b)[_0x4623b9('0xb5')](function(_0x30537b){const _0x6869d4=_0x4623b9;return _0x122d02[_0x6869d4('0xa3')]=_0x30537b,_0x30c64f[_0x6869d4('0x98')][_0x6869d4('0x1e')]&&(_0x24974e[_0x6869d4('0x52')]=[{'all':!![]}]),db[_0x6869d4('0x3b')][_0x6869d4('0x18')](_0x24974e);})['then'](function(_0x45548e){const _0x3c9d02=_0x4623b9;return _0x122d02[_0x3c9d02('0x54')]=_0x45548e,_0x122d02;})[_0x4623b9('0xb5')](respondWithFilteredResult(_0x419e94,_0x24974e))[_0x4623b9('0x17')](handleError(_0x419e94,null));},exports[_0x560cdd('0x65')]=function(_0x530e50,_0x5dfd83){const _0x3bd4d0=_0x560cdd;let _0x1099fd={'raw':![],'where':{'id':_0x530e50[_0x3bd4d0('0x0')]['id']}};const _0x40be47={};return _0x40be47[_0x3bd4d0('0x58')]=_[_0x3bd4d0('0x4e')](db['UserProfile']['rawAttributes']),_0x40be47[_0x3bd4d0('0x98')]=_[_0x3bd4d0('0x4e')](_0x530e50[_0x3bd4d0('0x98')]),_0x40be47[_0x3bd4d0('0x51')]=_['intersection'](_0x40be47[_0x3bd4d0('0x58')],_0x40be47[_0x3bd4d0('0x98')]),_0x1099fd[_0x3bd4d0('0x4a')]=_['intersection'](_0x40be47[_0x3bd4d0('0x58')],qs[_0x3bd4d0('0xb')](_0x530e50[_0x3bd4d0('0x98')][_0x3bd4d0('0xb')])),_0x1099fd[_0x3bd4d0('0x4a')]=_0x1099fd[_0x3bd4d0('0x4a')][_0x3bd4d0('0x43')]?_0x1099fd[_0x3bd4d0('0x4a')]:_0x40be47[_0x3bd4d0('0x58')],_0x530e50['query'][_0x3bd4d0('0x1e')]&&(_0x1099fd[_0x3bd4d0('0x52')]=[{'all':!![]}]),_0x1099fd=_[_0x3bd4d0('0x74')]({},_0x1099fd,_0x530e50[_0x3bd4d0('0xe')]),db['UserProfile'][_0x3bd4d0('0xab')](_0x1099fd)[_0x3bd4d0('0xb5')](handleEntityNotFound(_0x5dfd83))['then'](respondWithResult(_0x5dfd83,null))['catch'](handleError(_0x5dfd83,null));},exports[_0x560cdd('0xa2')]=function(_0x1bc17a,_0x3246db){const _0x5a151f=_0x560cdd;return db[_0x5a151f('0x3b')][_0x5a151f('0xa2')](_0x1bc17a[_0x5a151f('0x23')],{})[_0x5a151f('0xb5')](respondWithResult(_0x3246db,0xc9))['catch'](handleError(_0x3246db,null));},exports['clone']=function(_0x520ad5,_0x40e7f4){const _0x231b10=_0x560cdd;let _0x40c842={'where':{'id':_0x520ad5[_0x231b10('0x0')]['id']}};const _0x4c3acb={};return _0x4c3acb['model']=_[_0x231b10('0x4e')](db['UserProfile']['rawAttributes']),_0x40c842[_0x231b10('0x4a')]=_[_0x231b10('0x9d')](_0x4c3acb[_0x231b10('0x58')],qs[_0x231b10('0xb')](_0x520ad5[_0x231b10('0x98')][_0x231b10('0xb')])),_0x40c842[_0x231b10('0x4a')]=_0x40c842['attributes'][_0x231b10('0x43')]?_0x40c842[_0x231b10('0x4a')]:_0x4c3acb[_0x231b10('0x58')],_0x520ad5[_0x231b10('0x98')][_0x231b10('0x1e')]&&(_0x40c842[_0x231b10('0x52')]=[{'all':!![]}]),_0x40c842=_['merge']({},_0x40c842,_0x520ad5[_0x231b10('0xe')]),db[_0x231b10('0x3b')][_0x231b10('0xab')](_0x40c842)[_0x231b10('0xb5')](handleEntityNotFound(_0x40e7f4))[_0x231b10('0xb5')](function(_0x220a1a){const _0x3adfc7=_0x231b10;if(_0x220a1a){let _0x2e827d=_0x220a1a['get']({'plain':!![]});return _0x2e827d=qs[_0x3adfc7('0xa6')](_0x2e827d,['id',_0x3adfc7('0x7'),_0x3adfc7('0x53'),_0x3adfc7('0x70')]),_0x520ad5[_0x3adfc7('0x23')]=_[_0x3adfc7('0xa6')](_0x520ad5[_0x3adfc7('0x23')],['id',_0x3adfc7('0x7'),_0x3adfc7('0x53')]),db[_0x3adfc7('0x9f')][_0x3adfc7('0x22')](function(_0x34e411){const _0x4e97df=_0x3adfc7;return db['UserProfile'][_0x4e97df('0xa2')](_[_0x4e97df('0x74')](_0x2e827d,_0x520ad5[_0x4e97df('0x23')]),{'include':_0x520ad5[_0x4e97df('0x98')][_0x4e97df('0x1e')]?[{'all':!![]}]:undefined,'transaction':_0x34e411})[_0x4e97df('0xb5')](function(_0x1ae270){const _0x2cb902=_0x4e97df,_0xa17eaa=_0x1ae270[_0x2cb902('0x48')]({'plain':!![]});return db[_0x2cb902('0x3')][_0x2cb902('0x18')]({'where':{'userProfileId':_0x520ad5['params']['id']},'raw':!![]})[_0x2cb902('0xb5')](function(_0x5e05e3){const _0x581fdb=_0x2cb902;if(_0x5e05e3)return Promise[_0x581fdb('0x13')](_0x5e05e3,function(_0x7e21cc){const _0x424444=_0x581fdb;return new Promise(function(_0x52c2fe,_0xe35039){const _0x587438=a667_0x11d4;if(_0x7e21cc[_0x587438('0x11')]===null||_0x7e21cc[_0x587438('0x11')]===0x1)_0x52c2fe(null);return db['UserProfileResource'][_0x587438('0x18')]({'where':{'sectionId':_0x7e21cc['id']},'raw':!![]})['then'](function(_0x357db9){const _0x41e155=_0x587438,_0x55c2c1=_[_0x41e155('0x7b')](_0x357db9,function(_0x1bac9a){const _0x5a23ad=_0x41e155;return qs[_0x5a23ad('0xa6')](_0x1bac9a,['id',_0x5a23ad('0x7'),'updatedAt',_0x5a23ad('0xb6')]);});_0x52c2fe(_0x55c2c1);})['catch'](function(_0xfe02ea){_0xe35039(_0xfe02ea);});})[_0x424444('0xb5')](function(_0x43470e){const _0x3dd1a7=_0x424444,_0x1c28a2=qs[_0x3dd1a7('0xa6')](_0x7e21cc,['id','createdAt',_0x3dd1a7('0x53')]);_0x1c28a2[_0x3dd1a7('0xa8')]=_0xa17eaa['id'];if(_0x43470e)_0x1c28a2[_0x3dd1a7('0xa5')]=_0x43470e;return _0x1c28a2;})[_0x424444('0xb5')](function(_0x1af744){const _0x2da151=_0x424444;return db['UserProfileSection'][_0x2da151('0xa2')](_0x1af744,{'include':[{'model':db[_0x2da151('0x72')],'as':_0x2da151('0xa5')}],'raw':!![],'transaction':_0x34e411});});})[_0x581fdb('0xb5')](function(){return _0xa17eaa;});});});});}})[_0x231b10('0xb5')](respondWithResult(_0x40e7f4,0xc9))['catch'](handleError(_0x40e7f4,null));},exports[_0x560cdd('0x8d')]=function(_0x1165ff,_0x3ead7c){const _0x37ad6f=_0x560cdd;return _0x1165ff['body']['id']&&delete _0x1165ff[_0x37ad6f('0x23')]['id'],db[_0x37ad6f('0x3b')]['findOne']({'where':{'id':_0x1165ff[_0x37ad6f('0x0')]['id']}})[_0x37ad6f('0xb5')](handleEntityNotFound(_0x3ead7c))[_0x37ad6f('0xb5')](saveUpdates(_0x1165ff['body'],null))['then'](respondWithResult(_0x3ead7c,null))['catch'](handleError(_0x3ead7c,null));},exports['destroy']=function(_0x574cce,_0x384e21){const _0x1c0ab0=_0x560cdd;return db[_0x1c0ab0('0x3b')][_0x1c0ab0('0xab')]({'where':{'id':_0x574cce['params']['id']}})[_0x1c0ab0('0xb5')](handleEntityNotFound(_0x384e21))[_0x1c0ab0('0xb5')](removeEntity(_0x384e21,null))['catch'](handleError(_0x384e21,null));},exports['describe']=function(_0x4e29ce,_0x344319){const _0x19e433=_0x560cdd;return db[_0x19e433('0x3b')]['describe']()[_0x19e433('0xb5')](respondWithResult(_0x344319,null))[_0x19e433('0x17')](handleError(_0x344319,null));},exports[_0x560cdd('0x87')]=function(_0x4b2f33,_0x992324){const _0x57fd8f=_0x560cdd,_0x3499ce=_0x4b2f33[_0x57fd8f('0x23')];return db['UserProfile']['findOne']({'where':{'id':_0x4b2f33[_0x57fd8f('0x0')]['id']}})['then'](handleEntityNotFound(_0x992324))[_0x57fd8f('0xb5')](function(_0x587e30){if(_0x587e30)return db['sequelize']['transaction'](function(_0x438e40){const _0x442db2=a667_0x11d4;return db[_0x442db2('0x3')][_0x442db2('0x31')]({'where':{'userProfileId':_0x4b2f33['params']['id'],'sectionId':_[_0x442db2('0x7b')](_0x3499ce,function(_0x1d8a82){const _0x55d3fe=_0x442db2;return _0x1d8a82[_0x55d3fe('0xb6')];})},'transaction':_0x438e40})['then'](function(){const _0x442e3d=_0x442db2,_0x2c02e8=_[_0x442e3d('0x7b')](_0x3499ce,function(_0x58cbdc){const _0x3e31f5=_0x442e3d;return _0x58cbdc[_0x3e31f5('0xa8')]=_0x4b2f33[_0x3e31f5('0x0')]['id'],_0x58cbdc;}),_0x452868=[];return Promise[_0x442e3d('0x13')](_0x2c02e8,function(_0x24381e){const _0x17dc12=_0x442e3d;return db['UserProfileSection'][_0x17dc12('0xa2')](_0x24381e,{'include':[{'model':db[_0x17dc12('0x72')],'as':'Resources'}],'raw':!![],'transaction':_0x438e40})[_0x17dc12('0xb5')](function(_0x4225a8){const _0x328337=_0x17dc12;_0x452868['push'](_0x4225a8[_0x328337('0x48')]({'plain':!![]}));});})['then'](function(){return _0x452868;});});});})[_0x57fd8f('0xb5')](function(_0x33e611){return _0x33e611;})[_0x57fd8f('0xb5')](respondWithResult(_0x992324,null))['catch'](handleError(_0x992324,null));},exports[_0x560cdd('0x80')]=function(_0x4d1360,_0x28ef0a){const _0x39b035=_0x560cdd;let _0x3f36f9;return db['UserProfile']['findOne']({'where':{'id':_0x4d1360[_0x39b035('0x0')]['id']},'attributes':['id',_0x39b035('0x8b')]})[_0x39b035('0xb5')](handleEntityNotFound(_0x28ef0a))['then'](function(_0x5c44b2){const _0x1bbf4f=_0x39b035;if(_0x5c44b2)return _0x3f36f9=_0x5c44b2,db[_0x1bbf4f('0x3')][_0x1bbf4f('0x31')]({'where':{'userProfileId':_0x4d1360[_0x1bbf4f('0x0')]['id'],'sectionId':_0x4d1360[_0x1bbf4f('0x98')][_0x1bbf4f('0x9c')]}});})[_0x39b035('0xb5')](function(){return _0x3f36f9;})[_0x39b035('0xb5')](respondWithStatusCode(_0x28ef0a,null))[_0x39b035('0x17')](handleError(_0x28ef0a,null));},exports['getSections']=function(_0x28f2c3,_0x2e734b){const _0xb71763=_0x560cdd;let _0x3ed5d3=[],_0x3bcee3=[];return db[_0xb71763('0x3')][_0xb71763('0x18')]({'where':{'userProfileId':_0x28f2c3[_0xb71763('0x0')]['id']},'raw':!![]})[_0xb71763('0xb5')](function(_0x27e480){const _0xce9c3e=_0xb71763;_0x3ed5d3=_[_0xce9c3e('0x35')](_0x27e480,function(_0x5aae8f){const _0x412d12=_0xce9c3e;return _0x5aae8f[_0x412d12('0xbc')]===0x1||_[_0x412d12('0x59')]([0x3eb,0x709],_0x5aae8f[_0x412d12('0xb6')]);});if(!_['isEmpty'](_0x3ed5d3))return _[_0xce9c3e('0x7b')](_0x3ed5d3,function(_0x21fd51){const _0x4a92a6=_0xce9c3e;return _0x21fd51[_0x4a92a6('0xb6')];});else return;})[_0xb71763('0xb5')](function(_0x3236ab){const _0xa91d21=_0xb71763;if(_0x3236ab)_0x3bcee3=_0x3236ab;if(_[_0xa91d21('0x59')](_0x3bcee3,0x64)){const _0x5f104f=_[_0xa91d21('0x40')](_0x3ed5d3,{'sectionId':0x64});return hasDefaultDashboard(_0x5f104f)[_0xa91d21('0xb5')](function(_0x39fa95){const _0x396724=_0xa91d21;return _[_0x396724('0x7b')](_0x3ed5d3,function(_0x2f2026){const _0x1ea6ad=_0x396724;return _0x2f2026[_0x1ea6ad('0xb6')]===0x64&&(_0x2f2026[_0x1ea6ad('0x6a')]=_0x39fa95),_0x2f2026;});});}else return;})[_0xb71763('0xb5')](function(_0x6b8f3){const _0x4aece7=_0xb71763;if(_0x6b8f3)_0x3ed5d3=_0x6b8f3;if(_[_0x4aece7('0x59')](_0x3bcee3,0x3eb)){const _0x359442=_[_0x4aece7('0x40')](_0x3ed5d3,{'sectionId':0x3eb});return getCustomDashboards(_0x359442)['then'](function(_0x157bef){return _['map'](_0x3ed5d3,function(_0x552e7d){const _0x4e79bd=a667_0x11d4;return _0x359442[_0x4e79bd('0xbc')]?_0x552e7d[_0x4e79bd('0xb6')]===0x3eb&&(_0x552e7d[_0x4e79bd('0x6a')]=_0x157bef):_0x552e7d[_0x4e79bd('0xb6')]===0x64&&(_0x552e7d[_0x4e79bd('0x6a')]=_0x157bef),_0x552e7d;});});}else return;})['then'](function(_0x46bdb5){const _0x375f35=_0xb71763;if(_0x46bdb5)_0x3ed5d3=_0x46bdb5;if(_[_0x375f35('0x59')](_0x3bcee3,0x709)){const _0x425aad=_[_0x375f35('0x40')](_0x3ed5d3,{'sectionId':0x709});return getPlugins(_0x425aad)[_0x375f35('0xb5')](function(_0x94f51c){const _0xc9042f=_0x375f35;if(_0x425aad[_0xc9042f('0xbc')])return _[_0xc9042f('0x7b')](_0x3ed5d3,function(_0x59c904){const _0x54fae6=_0xc9042f;return _0x59c904['sectionId']===0x709&&(_0x59c904[_0x54fae6('0x6a')]=_0x94f51c),_0x59c904;});else{const _0x3aee47={'sectionId':0x76c,'enabled':0x1,'subsections':_0x94f51c},_0x16c8f4=_[_0xc9042f('0x7b')](_0x3ed5d3);return _0x16c8f4['push'](_0x3aee47),_0x16c8f4;}});}else return;})[_0xb71763('0xb5')](function(_0x1af8fd){const _0x247d01=_0xb71763;if(_0x1af8fd)_0x3ed5d3=_0x1af8fd;return _[_0x247d01('0x35')](_0x3ed5d3,[_0x247d01('0xbc'),0x1]);})[_0xb71763('0xb5')](respondWithResult(_0x2e734b,null))['catch'](handleError(_0x2e734b,null));};function hasDefaultDashboard(_0x1dcc2f){const _0x1ff97e=[0x65];return new Promise(function(_0x1ed45e,_0x4d690b){const _0x4bf75a=a667_0x11d4;try{if(_0x1dcc2f[_0x4bf75a('0x11')])_0x1ed45e(_0x1ff97e);else return db[_0x4bf75a('0x72')]['findOne']({'where':{'sectionId':_0x1dcc2f['id']},'raw':!![]})['then'](function(_0x350f3f){_0x350f3f?_0x1ed45e(_0x1ff97e):_0x1ed45e();});}catch(_0x3167ba){_0x4d690b(_0x3167ba);}});}function getCustomDashboards(_0x404ce2){const _0x3ae014=[];return new Promise(function(_0x21e6df,_0x5cf81f){const _0x3d5ea6=a667_0x11d4;try{return _0x404ce2[_0x3d5ea6('0x11')]?db['Dashboard'][_0x3d5ea6('0x18')]({'raw':!![]})[_0x3d5ea6('0xb5')](function(_0x30bc91){const _0x55367c=_0x3d5ea6;_0x30bc91[_0x55367c('0x97')](function(_0x2c2add){const _0x1f1452=_0x55367c;_0x3ae014[_0x1f1452('0xcc')](_0x2c2add['id']+0x1869f);}),_0x21e6df(_0x3ae014);}):db[_0x3d5ea6('0x72')][_0x3d5ea6('0x18')]({'where':{'sectionId':_0x404ce2['id']},'raw':!![]})[_0x3d5ea6('0xb5')](function(_0x354c9f){const _0x16eb3c=_0x3d5ea6;_0x354c9f[_0x16eb3c('0x97')](function(_0x4c0e2b){const _0x156d77=_0x16eb3c;_0x3ae014[_0x156d77('0xcc')](_0x4c0e2b['resourceId']+0x1869f);}),_0x21e6df(_0x3ae014);});}catch(_0x2a4315){_0x5cf81f(_0x2a4315);}});}function getPlugins(_0x575130){const _0x21a1d0=[];return new Promise(function(_0x57f732,_0x394b09){const _0x493869=a667_0x11d4;try{return _0x575130[_0x493869('0x11')]?db['Plugin']['findAll']({'raw':!![]})['then'](function(_0x209dc3){const _0xec297a=_0x493869;_0x209dc3[_0xec297a('0x97')](function(_0x91ba1c){const _0xdd3e9a=_0xec297a;_0x21a1d0[_0xdd3e9a('0xcc')](_0x91ba1c['id']+0x15b38);}),_0x57f732(_0x21a1d0);}):db[_0x493869('0x72')][_0x493869('0x18')]({'where':{'sectionId':_0x575130['id']},'raw':!![]})['then'](function(_0x2cfb33){const _0x544ce1=_0x493869;_0x2cfb33[_0x544ce1('0x97')](function(_0x5e43a2){const _0x3e5be0=_0x544ce1;_0x21a1d0[_0x3e5be0('0xcc')](_0x5e43a2[_0x3e5be0('0x55')]+0x15b38);}),_0x57f732(_0x21a1d0);});}catch(_0x2f301e){_0x394b09(_0x2f301e);}});}exports[_0x560cdd('0xc3')]=function(_0x46d34b,_0x3d3b20){const _0x59ec05=_0x560cdd;return db[_0x59ec05('0x3b')][_0x59ec05('0xab')]({'where':{'id':_0x46d34b['params']['id']}})[_0x59ec05('0xb5')](handleEntityNotFound(_0x3d3b20))[_0x59ec05('0xb5')](function(_0x5524c6){const _0x2d3433=_0x59ec05;if(_0x5524c6)return db[_0x2d3433('0x9f')][_0x2d3433('0x22')](function(_0x407c46){const _0x262526=_0x2d3433;return db[_0x262526('0x3')][_0x262526('0x18')]({'where':{'userProfileId':_0x46d34b[_0x262526('0x0')]['id']},'attributes':['id'],'raw':!![]})[_0x262526('0xb5')](function(_0x27bfc5){const _0x229baf=_0x262526;if(_0x27bfc5)return db[_0x229baf('0x3')]['destroy']({'where':{'userProfileId':_0x46d34b[_0x229baf('0x0')]['id'],'id':_[_0x229baf('0x7b')](_0x27bfc5,function(_0x359640){return _0x359640['id'];})},'transaction':_0x407c46});})[_0x262526('0xb5')](function(){const _0x3de3f5=_0x262526,_0x394558=_[_0x3de3f5('0x7b')](_0x46d34b[_0x3de3f5('0x23')],function(_0x1b7fd5){const _0x29b521=_0x3de3f5;return _0x1b7fd5[_0x29b521('0xa8')]=_0x46d34b[_0x29b521('0x0')]['id'],_0x1b7fd5;});return db['UserProfileSection'][_0x3de3f5('0x19')](_0x394558,{'raw':!![],'transaction':_0x407c46});})['then'](function(_0x2abea1){const _0x235606=_0x262526,_0x245626=_['filter'](_['map'](_0x2abea1,function(_0x95ab0a){const _0x4e1c66=a667_0x11d4;return _0x95ab0a[_0x4e1c66('0x48')]({'plain':!![]});}),{'includeAll':![]});if(_0x245626)return db[_0x235606('0x3')]['findAll']({'where':{'userProfileId':_0x46d34b[_0x235606('0x0')]['id'],'sectionId':_[_0x235606('0x7b')](_0x245626,function(_0x39b35e){const _0x395b9b=_0x235606;return _0x39b35e[_0x395b9b('0xb6')];})},'attributes':['id',_0x235606('0xb6')],'raw':!![]})[_0x235606('0xb5')](function(){const _0x26b7f5=_0x235606,_0x56302a=_['map'](_0x46d34b[_0x26b7f5('0x23')],function(_0x541d16){const _0x6e6fae=_0x26b7f5;return _0x541d16[_0x6e6fae('0xa8')]=_0x46d34b[_0x6e6fae('0x0')]['id'],_0x541d16;});return db['UserProfileResource'][_0x26b7f5('0x19')](_0x56302a,{'raw':!![],'transaction':_0x407c46});});})[_0x262526('0x17')](handleError(_0x3d3b20,null));});})['then'](function(){})[_0x59ec05('0xb5')](respondWithResult(_0x3d3b20,null))[_0x59ec05('0x17')](handleError(_0x3d3b20,null));},exports[_0x560cdd('0x2')]=function(_0x51ed35,_0x23ad11){const _0x43192c=_0x560cdd;return db['UserProfile'][_0x43192c('0xab')]({'where':{'id':_0x51ed35[_0x43192c('0x0')]['id']}})['then'](handleEntityNotFound(_0x23ad11))[_0x43192c('0xb5')](function(_0x555a1a){if(_0x555a1a)return _0x555a1a['removeResources'](_0x51ed35['query']['ids']);})['then'](respondWithStatusCode(_0x23ad11,null))[_0x43192c('0x17')](handleError(_0x23ad11,null));},exports[_0x560cdd('0xc2')]=function(_0x2bc590,_0x3e70dc){const _0x24d062=_0x560cdd;let _0x617ba3={'raw':![],'where':{}};const _0x582ad7={},_0x17f191={'count':0x0,'rows':[]},_0x48438b=_0x2bc590[_0x24d062('0x98')]['section'];if(typeof _0x48438b===_0x24d062('0x8a'))throw new ValidationError(_0x24d062('0x8e'));const _0x589178=_0x2bc590[_0x24d062('0x98')]['mergeResources']||![],_0xfdd58c=getQueryModels(_0x48438b,_0x589178);if(typeof _0xfdd58c[_0x24d062('0x36')]===_0x24d062('0x8a'))throw new ValidationError(_0x24d062('0x4')+_0x48438b+'\x27');let _0x2f25bd=[];return!_['isEmpty'](_0xfdd58c[_0x24d062('0x1b')])?_0x2f25bd=_0xfdd58c[_0x24d062('0x1b')]:_0x2f25bd=[{'name':_0x48438b}],db[_0x24d062('0x3b')][_0x24d062('0xab')]({'where':{'id':_0x2bc590['params']['id']}})['then'](handleEntityNotFound(_0x3e70dc))[_0x24d062('0xb5')](function(_0x4fb04e){const _0x4317d5=_0x24d062;if(_0x4fb04e){const _0xdc3fb9=[];for(let _0x24a7dc=0x0;_0x24a7dc<_0x2f25bd[_0x4317d5('0x43')];_0x24a7dc++){_0xdc3fb9[_0x4317d5('0xcc')](db['UserProfileSection'][_0x4317d5('0xab')]({'where':{'userProfileId':_0x4fb04e['id'],'name':_0x2f25bd[_0x24a7dc][_0x4317d5('0x8b')]},'raw':!![]}));}return Promise['all'](_0xdc3fb9);}})['then'](function(_0x5506bb){const _0x1acab7=_0x24d062,_0x412b5c=_['filter'](_0x5506bb,function(_0x1986aa){return _0x1986aa?_0x1986aa:undefined;}),_0x21a53b=_[_0x1acab7('0x35')](_0x2f25bd,['ignore',!![]]),_0x14bf7a=_['isEmpty'](_0x412b5c)&&_[_0x1acab7('0x49')](_0x21a53b)?null:_[_0x1acab7('0x29')](_0x21a53b,_0x412b5c);if(_0x14bf7a){const _0x494cc3=[];for(let _0x18a23a=0x0;_0x18a23a<_0x14bf7a[_0x1acab7('0x43')];_0x18a23a++){const _0x2a3f8f=_['find'](_0x2f25bd,function(_0x365d0f){const _0x3de9e3=_0x1acab7;return _0x14bf7a[_0x18a23a]?_0x365d0f[_0x3de9e3('0x8b')]===_0x14bf7a[_0x18a23a][_0x3de9e3('0x8b')]:null;});_0x2a3f8f&&(_0x14bf7a[_0x18a23a][_0x1acab7('0xcb')]?_0x494cc3[_0x1acab7('0xcc')](getAllResources(_0xfdd58c['childModel'],_0x14bf7a[_0x18a23a])):!_0x14bf7a[_0x18a23a][_0x1acab7('0x11')]?_0x494cc3['push'](getAllowedResources(_0x2a3f8f,_0x14bf7a[_0x18a23a],_0xfdd58c[_0x1acab7('0x36')])):_0x2a3f8f[_0x1acab7('0x58')]&&_0x494cc3['push'](getAllFilteredResources(_0x2a3f8f,_0x14bf7a[_0x18a23a])));}return Promise[_0x1acab7('0x21')](_0x494cc3);}else return null;})['then'](function(_0x119671){const _0x2a0b93=_0x24d062,_0x363514=_0x119671;let _0x13e4bb=null;_0x363514&&(_0x13e4bb=_0x363514[_0x2a0b93('0x43')]===0x1?_0x363514[0x0]:null);if(_0x13e4bb||_0x363514){const _0xadfabe=db[_0xfdd58c[_0x2a0b93('0x36')]][_0x2a0b93('0xc9')];_0x582ad7['model']=_['keys'](_0xadfabe),_0x582ad7[_0x2a0b93('0x98')]=_[_0x2a0b93('0x4e')](_0x2bc590[_0x2a0b93('0x98')]),_0x582ad7['filters']=_[_0x2a0b93('0x9d')](_0x582ad7[_0x2a0b93('0x58')],_0x582ad7[_0x2a0b93('0x98')]),_0x617ba3['attributes']=_['intersection'](_0x582ad7[_0x2a0b93('0x58')],qs['fields'](_0x2bc590['query'][_0x2a0b93('0xb')])),_0x617ba3['attributes']=_0x617ba3[_0x2a0b93('0x4a')][_0x2a0b93('0x43')]?_0x617ba3[_0x2a0b93('0x4a')]:_0x582ad7[_0x2a0b93('0x58')];typeof _0x2bc590[_0x2a0b93('0x98')]['nolimit']===_0x2a0b93('0x8a')&&(_0x617ba3[_0x2a0b93('0x5e')]=qs['limit'](_0x2bc590['query']['limit']),_0x617ba3[_0x2a0b93('0x46')]=qs['offset'](_0x2bc590['query'][_0x2a0b93('0x46')]));_0x617ba3[_0x2a0b93('0x82')]=qs['sort'](_0x2bc590[_0x2a0b93('0x98')]['sort']),_0x617ba3['where']=qs[_0x2a0b93('0x51')](_[_0x2a0b93('0x10')](_0x2bc590['query'],_0x582ad7['filters']));_0x2bc590['query'][_0x2a0b93('0x35')]&&(_0x617ba3['where']=_[_0x2a0b93('0x74')](_0x617ba3['where'],{[Op['or']]:_[_0x2a0b93('0x7b')](_0xadfabe,function(_0x1afc1e){const _0x433603=_0x2a0b93;if(_0x1afc1e['type'][_0x433603('0xc7')]!==_0x433603('0xbd')){const _0x2e4c0d={};return _0x2e4c0d[_0x1afc1e[_0x433603('0x76')]]={[Op['like']]:'%'+_0x2bc590[_0x433603('0x98')][_0x433603('0x35')]+'%'},_0x2e4c0d;}})}));const _0x41b4ca=[];if(_0x13e4bb){const _0x5ed119=_[_0x2a0b93('0x40')](_0x2f25bd,[_0x2a0b93('0x8b'),_0x13e4bb[_0x2a0b93('0x8b')]]);if(_0x5ed119[_0x2a0b93('0x76')]){const _0x36622c={};_0xfdd58c[_0x2a0b93('0x36')]==='AnalyticExtractedReport'?_0x36622c[_0x5ed119[_0x2a0b93('0x5')]]=_[_0x2a0b93('0x7b')](_0x13e4bb[_0x2a0b93('0x44')],'id'):_0x36622c[_0x5ed119[_0x2a0b93('0x5')]]=_0x13e4bb[_0x2a0b93('0x44')],_0x41b4ca[_0x2a0b93('0xcc')](_0x36622c);}else _0x617ba3[_0x2a0b93('0xa')]['id']=_0x13e4bb['associatedResources'];}else for(let _0x413358=0x0;_0x413358<_0x363514[_0x2a0b93('0x43')];_0x413358++){const _0x59e013=_[_0x2a0b93('0x40')](_0x2f25bd,['name',_0x363514[_0x413358][_0x2a0b93('0x8b')]]);if(_0x59e013[_0x2a0b93('0x76')]){const _0x4c729a={};_0x4c729a[_0x59e013['foreignKey']]=_0x363514[_0x413358][_0x2a0b93('0x44')],_0x41b4ca[_0x2a0b93('0xcc')](_0x4c729a);}else{if(!_0x617ba3[_0x2a0b93('0xa')]['id'])_0x617ba3['where']['id']=[];_0x363514[_0x413358][_0x2a0b93('0x44')][_0x2a0b93('0x97')](function(_0x33ad9f){const _0x43a588=_0x2a0b93;_0x617ba3[_0x43a588('0xa')]['id'][_0x43a588('0xcc')](_0x33ad9f);});}}return!_[_0x2a0b93('0x49')](_0x41b4ca)&&(_0x617ba3[_0x2a0b93('0xa')]=_[_0x2a0b93('0x74')](_0x617ba3['where'],{[Op['and']]:{[Op['or']]:_0x41b4ca}})),_0x617ba3=_[_0x2a0b93('0x74')]({},_0x617ba3,_0x2bc590[_0x2a0b93('0xe')]),_0x13e4bb&&!_0x13e4bb['autoAssociation']&&_0xfdd58c[_0x2a0b93('0x36')]===_0x2a0b93('0x5d')?(_0x2bc590[_0x2a0b93('0x98')][_0x2a0b93('0x1e')]&&(_0x617ba3[_0x2a0b93('0x52')]=[{'all':!![]}]),db[_0xfdd58c['childModel']][_0x2a0b93('0x18')](_0x617ba3)[_0x2a0b93('0xb5')](function(_0x9fa8a7){const _0xbef7ed=_0x2a0b93,_0xc863de=[];return _0x9fa8a7['forEach'](function(_0x155b9b){const _0xe9aba=a667_0x11d4;let _0x4c40bb;switch(_0x155b9b['reportType']){case _0xe9aba('0xca'):_0x4c40bb=_[_0xe9aba('0x40')](_0x13e4bb[_0xe9aba('0x44')],function(_0x2871b5){const _0x3cb7a5=_0xe9aba;return _0x2871b5['id']===_0x155b9b[_0x3cb7a5('0xc5')]&&_0x2871b5[_0x3cb7a5('0x85')]===_0x3cb7a5('0xa7');});break;case _0xe9aba('0x24'):_0x4c40bb=_['find'](_0x13e4bb[_0xe9aba('0x44')],function(_0x423907){const _0x33064b=_0xe9aba;return _0x423907['id']===_0x155b9b[_0x33064b('0xc5')]&&_0x423907[_0x33064b('0x85')]===_0x33064b('0x5a');});break;}if(_0x4c40bb)_0xc863de[_0xe9aba('0xcc')](_0x155b9b);}),_0x17f191[_0xbef7ed('0xa3')]=_0xc863de[_0xbef7ed('0x43')],_0x17f191[_0xbef7ed('0x54')]=_0xc863de,_0x17f191;})):db[_0xfdd58c[_0x2a0b93('0x36')]]['count']({'where':_0x617ba3[_0x2a0b93('0xa')]})[_0x2a0b93('0xb5')](function(_0xb0e3f9){const _0x19d9c7=_0x2a0b93;return _0x17f191[_0x19d9c7('0xa3')]=_0xb0e3f9,_0x2bc590['query']['includeAll']&&(_0xfdd58c['childModel']==='CmContact'?_0x617ba3['include']=[{'model':db[_0x19d9c7('0x7a')],'as':_0x19d9c7('0x1f'),'attributes':['id',_0x19d9c7('0x8b'),_0x19d9c7('0xb1')],'required':_0x2bc590['query'][_0x19d9c7('0x73')]?!![]:![]},{'model':db[_0x19d9c7('0x7a')],'as':_0x19d9c7('0x3c'),'attributes':['id',_0x19d9c7('0x8b'),_0x19d9c7('0xb1')],'through':_0x2bc590[_0x19d9c7('0x98')]['tag']?{'attributes':[],'where':{'TagId':_0x2bc590[_0x19d9c7('0x98')]['tag']||undefined}}:{},'required':_0x2bc590['query']['tag']?!![]:![]}]:_0x617ba3[_0x19d9c7('0x52')]=[{'all':!![]}]),db[_0xfdd58c[_0x19d9c7('0x36')]]['findAll'](_0x617ba3);})[_0x2a0b93('0xb5')](function(_0x2c8ebf){const _0xec0597=_0x2a0b93;return _0x17f191[_0xec0597('0x54')]=_0x2c8ebf,_0x17f191;});}else return _0x17f191;})['then'](respondWithFilteredResult(_0x3e70dc,_0x617ba3))[_0x24d062('0x17')](handleError(_0x3e70dc,null));};function getAllResources(_0x1e1f01,_0x5eeb63){return new Promise(function(_0x5b9fb,_0x439dc8){const _0x5cfbc0=a667_0x11d4;if(_0x5eeb63){const _0xbbacad=_0x5eeb63[_0x5cfbc0('0x35')]?{[_0x5eeb63['filter'][_0x5cfbc0('0x76')]]:_0x5eeb63[_0x5cfbc0('0x35')][_0x5cfbc0('0x90')]}:undefined;return db[_0x1e1f01][_0x5cfbc0('0x18')]({'where':_0xbbacad,'raw':!![]})[_0x5cfbc0('0xb5')](function(_0x6ea702){const _0xc0961c=_0x5cfbc0;_0x5eeb63['associatedResources']=_[_0xc0961c('0x7b')](_0x6ea702,'id'),_0x5b9fb(_0x5eeb63);})[_0x5cfbc0('0x17')](function(_0x439f6a){_0x439dc8(_0x439f6a);});}else _0x5b9fb(null);});}function getAllFilteredResources(_0x2172a9,_0x7c1840){return new Promise(function(_0x44d1f2,_0x2b1fb9){const _0x29ea12=a667_0x11d4,_0x58e962=_0x2172a9[_0x29ea12('0x35')]?{[_0x2172a9['filter']['field']]:_0x2172a9[_0x29ea12('0x35')][_0x29ea12('0x90')]}:undefined;return db[_0x2172a9['model']][_0x29ea12('0x18')]({'where':_0x58e962,'raw':!![]})[_0x29ea12('0xb5')](function(_0x594e10){const _0x2ec5bd=_0x29ea12;_0x7c1840[_0x2ec5bd('0x44')]=_[_0x2ec5bd('0x7b')](_0x594e10,function(_0x116554){const _0x4f4b21=_0x2ec5bd;return _0x116554[_0x4f4b21('0x8b')];}),_0x44d1f2(_0x7c1840);})['catch'](function(_0x5b0543){_0x2b1fb9(_0x5b0543);});});}function getAllowedResources(_0x157302,_0x4a71ec,_0x2b09f3){return new Promise(function(_0x528549,_0x5ed001){const _0x53800d=a667_0x11d4;if(_0x4a71ec)return db[_0x53800d('0x72')]['findAll']({'where':{'sectionId':_0x4a71ec['id']},'raw':!![]})['then'](function(_0x33b400){const _0x343854=_0x53800d;_0x157302[_0x343854('0x76')]&&_0x157302[_0x343854('0x76')]!=='id'?_0x4a71ec[_0x343854('0x44')]=_[_0x343854('0x7b')](_0x33b400,function(_0x5c0747){return _0x5c0747[_0x157302['field']];}):_0x2b09f3===_0x343854('0x5d')?_0x4a71ec[_0x343854('0x44')]=_[_0x343854('0x7b')](_0x33b400,function(_0x2a2f6d){const _0x2136d6=_0x343854;return{'id':_0x2a2f6d[_0x2136d6('0x55')],'type':_0x2a2f6d[_0x2136d6('0x85')]};}):_0x4a71ec[_0x343854('0x44')]=_['map'](_0x33b400,function(_0x1226a7){const _0x58256b=_0x343854;return _0x1226a7[_0x58256b('0x55')];}),_0x528549(_0x4a71ec);})[_0x53800d('0x17')](function(_0xa3769a){_0x5ed001(_0xa3769a);});else _0x528549(null);});}function getQueryModels(_0x5c80bd,_0x3f43d3){const _0xb7933f=_0x560cdd,_0x126959=_0x5c80bd[_0xb7933f('0x37')](),_0x4b0c68={'childModel':undefined,'parentSections':[]};switch(_0x126959){case'squareprojects':_0x4b0c68['childModel']=_0xb7933f('0x32');break;case _0xb7933f('0x79'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x63');break;case _0xb7933f('0x42'):_0x4b0c68['childModel']=_0xb7933f('0x7f'),_0x4b0c68['parentSections']=[{'name':_0xb7933f('0x15'),'field':_0xb7933f('0x8b'),'foreignKey':_0xb7933f('0x9a')}];break;case _0xb7933f('0x81'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x6d');break;case'contacts':_0x4b0c68[_0xb7933f('0x36')]='CmContact',_0x4b0c68['parentSections']=[{'name':_0xb7933f('0x5c'),'field':'id','foreignKey':_0xb7933f('0x8c')}];break;case _0xb7933f('0x1d'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x64');break;case _0xb7933f('0xcd'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x4d');break;case _0xb7933f('0xb0'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x75');break;case _0xb7933f('0x27'):_0x4b0c68['childModel']=_0xb7933f('0x67');break;case _0xb7933f('0xaf'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x68');break;case _0xb7933f('0xa9'):_0x4b0c68['childModel']=_0xb7933f('0x6');break;case _0xb7933f('0x28'):_0x4b0c68['childModel']=_0xb7933f('0x30');break;case _0xb7933f('0xc'):case'internalroutes':case'outboundroutes':_0x4b0c68[_0xb7933f('0x36')]='VoiceExtension';break;case _0xb7933f('0x7d'):_0x4b0c68[_0xb7933f('0x36')]='VoiceContext';break;case _0xb7933f('0xb3'):_0x4b0c68[_0xb7933f('0x36')]='VoiceMail';break;case _0xb7933f('0xad'):_0x4b0c68[_0xb7933f('0x36')]='VoiceRecording',_0x4b0c68['parentSections']=[{'name':_0xb7933f('0x2b'),'field':_0xb7933f('0x8b'),'foreignKey':'membername','model':_0xb7933f('0x45'),'filter':{'field':_0xb7933f('0x66'),'value':[_0xb7933f('0x26')]}},{'name':'Telephones','field':_0xb7933f('0x8b'),'foreignKey':'membername','model':_0xb7933f('0x45'),'filter':{'field':_0xb7933f('0x66'),'value':[_0xb7933f('0x78')]}},{'name':_0xb7933f('0x88'),'field':'name','foreignKey':_0xb7933f('0x41'),'model':_0xb7933f('0xbe'),'filter':{'field':_0xb7933f('0x85'),'value':[_0xb7933f('0xc8')]}},{'name':_0xb7933f('0x3e'),'field':_0xb7933f('0x8b'),'foreignKey':_0xb7933f('0x41'),'model':_0xb7933f('0xbe'),'filter':{'field':_0xb7933f('0x85'),'value':[_0xb7933f('0x38')]}}];break;case'musiconholds':_0x4b0c68['childModel']=_0xb7933f('0x56');break;case _0xb7933f('0x2c'):_0x4b0c68[_0xb7933f('0x36')]='VoiceChanSpy';break;case'voiceprefixes':_0x4b0c68[_0xb7933f('0x36')]='VoicePrefix';break;case _0xb7933f('0x4f'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xb9');break;case _0xb7933f('0x61'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xb8');break;case'mailaccounts':_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xc4');break;case _0xb7933f('0x7c'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x16');break;case _0xb7933f('0x1'):_0x4b0c68[_0xb7933f('0x36')]='OpenchannelQueue';break;case _0xb7933f('0x2f'):_0x4b0c68['childModel']='OpenchannelAccount';break;case _0xb7933f('0x62'):_0x4b0c68[_0xb7933f('0x36')]='SmsQueue';break;case _0xb7933f('0x99'):_0x4b0c68['childModel']=_0xb7933f('0xba');break;case'whatsappqueues':_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xae');break;case _0xb7933f('0x1c'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xf');break;case _0xb7933f('0x4c'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xd');break;case _0xb7933f('0x9b'):case'queuecampaigns':_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xbe');_0x3f43d3&&(_0x4b0c68[_0xb7933f('0x1b')]=[{'name':_0xb7933f('0x88')},{'name':_0xb7933f('0x3e')}]);break;case _0xb7933f('0xb7'):case'agents':case _0xb7933f('0x8'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x45');_0x3f43d3&&(_0x4b0c68[_0xb7933f('0x1b')]=[{'name':_0xb7933f('0x14'),'filter':{'field':'role','value':[_0xb7933f('0x25'),_0xb7933f('0x6f')]},'ignore':!![]},{'name':_0xb7933f('0x2b')},{'name':_0xb7933f('0x83')}]);break;case _0xb7933f('0x71'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x94');break;case _0xb7933f('0x69'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x60');break;case _0xb7933f('0x39'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xbf');break;case'sugarcrmaccounts':_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x3f');break;case _0xb7933f('0x6c'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x92');break;case _0xb7933f('0xa4'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x8f');break;case _0xb7933f('0xa0'):_0x4b0c68['childModel']=_0xb7933f('0x45');break;case _0xb7933f('0xbb'):_0x4b0c68[_0xb7933f('0x36')]='CannedAnswer';break;case _0xb7933f('0x34'):_0x4b0c68['childModel']=_0xb7933f('0xaa');break;case _0xb7933f('0x4b'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x12');break;case _0xb7933f('0xce'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xac');break;case _0xb7933f('0x77'):_0x4b0c68[_0xb7933f('0x36')]='Pause';break;case _0xb7933f('0xc6'):_0x4b0c68['childModel']='Schedule';break;case _0xb7933f('0x9'):_0x4b0c68['childModel']='Sound';break;case'tags':_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x7a');break;case'templates':_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x5b');break;case'triggers':_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x3d');break;case _0xb7933f('0x2a'):_0x4b0c68[_0xb7933f('0x36')]='Trunk';break;case _0xb7933f('0x84'):_0x4b0c68[_0xb7933f('0x36')]='Variable';break;case _0xb7933f('0x6e'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x6b');break;case _0xb7933f('0x3a'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0x5d'),_0x4b0c68[_0xb7933f('0x1b')]=[{'name':_0xb7933f('0x89'),'field':'id','foreignKey':_0xb7933f('0xc5')}];break;case _0xb7933f('0x7e'):_0x4b0c68[_0xb7933f('0x36')]=_0xb7933f('0xb4');break;default:return _0x4b0c68;}return _0x4b0c68;} \ No newline at end of file diff --git a/server/api/userProfile/userProfile.events.js b/server/api/userProfile/userProfile.events.js index ce3c964..c0ad7cc 100644 --- a/server/api/userProfile/userProfile.events.js +++ b/server/api/userProfile/userProfile.events.js @@ -1 +1 @@ -const a668_0x24fc=['../../mysqldb','undefined','exports','remove','UserProfile','addHook','update','events','emit','setMaxListeners','save'];(function(_0x39342a,_0x24fceb){const _0x397ff5=function(_0x563ba7){while(--_0x563ba7){_0x39342a['push'](_0x39342a['shift']());}};_0x397ff5(++_0x24fceb);}(a668_0x24fc,0x14a));const a668_0x397f=function(_0x39342a,_0x24fceb){_0x39342a=_0x39342a-0x0;let _0x397ff5=a668_0x24fc[_0x39342a];return _0x397ff5;};const _0x4e5349=a668_0x397f;'use strict';const EventEmitter=require(_0x4e5349('0x7')),UserProfile=require(_0x4e5349('0x0'))['db'][_0x4e5349('0x4')],UserProfileEvents=new EventEmitter();UserProfileEvents[_0x4e5349('0x9')](0x0);const events={'afterCreate':_0x4e5349('0xa'),'afterUpdate':_0x4e5349('0x6'),'afterDestroy':_0x4e5349('0x3')};function emitEvent(_0x563ba7){return function(_0x55776c){const _0x4ecfe7=a668_0x397f;UserProfileEvents[_0x4ecfe7('0x8')](_0x563ba7+':'+_0x55776c['id'],_0x55776c),UserProfileEvents['emit'](_0x563ba7,_0x55776c);};}for(const e in events){if(typeof events[e]!==_0x4e5349('0x1')){const event=events[e];UserProfile[_0x4e5349('0x5')](e,emitEvent(event));}}module[_0x4e5349('0x2')]=UserProfileEvents; \ No newline at end of file +const a668_0x373a=['save','emit','remove','exports','../../mysqldb','undefined','addHook','update','UserProfile','events'];(function(_0x95a9f2,_0x373aaa){const _0x260f5f=function(_0x7bdfcb){while(--_0x7bdfcb){_0x95a9f2['push'](_0x95a9f2['shift']());}};_0x260f5f(++_0x373aaa);}(a668_0x373a,0x1c1));const a668_0x260f=function(_0x95a9f2,_0x373aaa){_0x95a9f2=_0x95a9f2-0x0;let _0x260f5f=a668_0x373a[_0x95a9f2];return _0x260f5f;};const _0x53d44c=a668_0x260f;'use strict';const EventEmitter=require(_0x53d44c('0x0')),UserProfile=require(_0x53d44c('0x5'))['db'][_0x53d44c('0x9')],UserProfileEvents=new EventEmitter();UserProfileEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x53d44c('0x1'),'afterUpdate':_0x53d44c('0x8'),'afterDestroy':_0x53d44c('0x3')};function emitEvent(_0x7bdfcb){return function(_0x56e27a){const _0x15064f=a668_0x260f;UserProfileEvents[_0x15064f('0x2')](_0x7bdfcb+':'+_0x56e27a['id'],_0x56e27a),UserProfileEvents[_0x15064f('0x2')](_0x7bdfcb,_0x56e27a);};}for(const e in events){if(typeof events[e]!==_0x53d44c('0x6')){const event=events[e];UserProfile[_0x53d44c('0x7')](e,emitEvent(event));}}module[_0x53d44c('0x4')]=UserProfileEvents; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.model.js b/server/api/userProfile/userProfile.model.js index cfe1d03..5d9c68d 100644 --- a/server/api/userProfile/userProfile.model.js +++ b/server/api/userProfile/userProfile.model.js @@ -1 +1 @@ -const a669_0x5c51=['exports','define','UserProfile','./userProfile.attributes'];(function(_0x3122af,_0x5c5161){const _0x23b32d=function(_0x4c87a5){while(--_0x4c87a5){_0x3122af['push'](_0x3122af['shift']());}};_0x23b32d(++_0x5c5161);}(a669_0x5c51,0xf9));const a669_0x23b3=function(_0x3122af,_0x5c5161){_0x3122af=_0x3122af-0x0;let _0x23b32d=a669_0x5c51[_0x3122af];return _0x23b32d;};const _0x5760fd=a669_0x23b3;'use strict';const attributes=require(_0x5760fd('0x2'));module[_0x5760fd('0x3')]=function(_0x4c87a5){const _0x515e96=_0x5760fd,_0x171ae7=_0x4c87a5[_0x515e96('0x0')](_0x515e96('0x1'),attributes,{'tableName':'user_profiles','paranoid':![],'indexes':[],'timestamps':!![]});return _0x171ae7;}; \ No newline at end of file +const a669_0x4503=['user_profiles','./userProfile.attributes','UserProfile','exports'];(function(_0x2d7cd9,_0x45039c){const _0x2bf67f=function(_0x47bc44){while(--_0x47bc44){_0x2d7cd9['push'](_0x2d7cd9['shift']());}};_0x2bf67f(++_0x45039c);}(a669_0x4503,0x1ce));const a669_0x2bf6=function(_0x2d7cd9,_0x45039c){_0x2d7cd9=_0x2d7cd9-0x0;let _0x2bf67f=a669_0x4503[_0x2d7cd9];return _0x2bf67f;};const _0xb602be=a669_0x2bf6;'use strict';const attributes=require(_0xb602be('0x3'));module[_0xb602be('0x1')]=function(_0x47bc44){const _0x382ec2=_0xb602be,_0x3485a2=_0x47bc44['define'](_0x382ec2('0x0'),attributes,{'tableName':_0x382ec2('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3485a2;}; \ No newline at end of file diff --git a/server/api/userProfile/userProfile.rpc.js b/server/api/userProfile/userProfile.rpc.js index f5cf65f..bb07aef 100644 --- a/server/api/userProfile/userProfile.rpc.js +++ b/server/api/userProfile/userProfile.rpc.js @@ -1 +1 @@ -const a670_0x261d=['register','./userProfile.socket'];(function(_0x45c1c5,_0x261db4){const _0x3ef2c1=function(_0x5046a6){while(--_0x5046a6){_0x45c1c5['push'](_0x45c1c5['shift']());}};_0x3ef2c1(++_0x261db4);}(a670_0x261d,0x14c));const a670_0x3ef2=function(_0x45c1c5,_0x261db4){_0x45c1c5=_0x45c1c5-0x0;let _0x3ef2c1=a670_0x261d[_0x45c1c5];return _0x3ef2c1;};const _0xb5795=a670_0x3ef2;'use strict';const {getSocket}=require('../../rediscache'),socket=getSocket();require(_0xb5795('0x1'))[_0xb5795('0x0')](socket); \ No newline at end of file +const a670_0x1b9a=['../../rediscache'];(function(_0x855c62,_0x1b9a1d){const _0x7091de=function(_0x1b4980){while(--_0x1b4980){_0x855c62['push'](_0x855c62['shift']());}};_0x7091de(++_0x1b9a1d);}(a670_0x1b9a,0x15e));const a670_0x7091=function(_0x855c62,_0x1b9a1d){_0x855c62=_0x855c62-0x0;let _0x7091de=a670_0x1b9a[_0x855c62];return _0x7091de;};const _0x2211db=a670_0x7091;'use strict';const {getSocket}=require(_0x2211db('0x0')),socket=getSocket();require('./userProfile.socket')['register'](socket); \ No newline at end of file diff --git a/server/api/userProfile/userProfile.socket.js b/server/api/userProfile/userProfile.socket.js index b111b0f..1a9144f 100644 --- a/server/api/userProfile/userProfile.socket.js +++ b/server/api/userProfile/userProfile.socket.js @@ -1 +1 @@ -const a671_0x2d01=['update','register','save','userProfile:','remove'];(function(_0x57455b,_0x2d015a){const _0x503843=function(_0x955061){while(--_0x955061){_0x57455b['push'](_0x57455b['shift']());}};_0x503843(++_0x2d015a);}(a671_0x2d01,0xd7));const a671_0x5038=function(_0x57455b,_0x2d015a){_0x57455b=_0x57455b-0x0;let _0x503843=a671_0x2d01[_0x57455b];return _0x503843;};const _0x6f6912=a671_0x5038;'use strict';const UserProfileEvents=require('./userProfile.events'),events=[_0x6f6912('0x2'),_0x6f6912('0x4'),_0x6f6912('0x0')];function createListener(_0x955061,_0xf2a8ea){return function(_0x42bfc4){_0xf2a8ea['emit'](_0x955061,_0x42bfc4);};}exports[_0x6f6912('0x1')]=function(_0x55f096){const _0x2a1c6c=_0x6f6912;for(let _0x480d67=0x0,_0x44c964=events['length'];_0x480d67<_0x44c964;_0x480d67++){const _0x680c90=events[_0x480d67],_0x29f5c2=createListener(_0x2a1c6c('0x3')+_0x680c90,_0x55f096);UserProfileEvents['on'](_0x680c90,_0x29f5c2);}}; \ No newline at end of file +const a671_0x543c=['length','save','userProfile:','update','register','remove','emit','./userProfile.events'];(function(_0x51ffed,_0x543c1b){const _0x1d0898=function(_0x88c956){while(--_0x88c956){_0x51ffed['push'](_0x51ffed['shift']());}};_0x1d0898(++_0x543c1b);}(a671_0x543c,0x1d4));const a671_0x1d08=function(_0x51ffed,_0x543c1b){_0x51ffed=_0x51ffed-0x0;let _0x1d0898=a671_0x543c[_0x51ffed];return _0x1d0898;};const _0x322422=a671_0x1d08;'use strict';const UserProfileEvents=require(_0x322422('0x3')),events=[_0x322422('0x5'),_0x322422('0x1'),_0x322422('0x7')];function createListener(_0x88c956,_0x160141){return function(_0x28b0c8){const _0xd88f45=a671_0x1d08;_0x160141[_0xd88f45('0x2')](_0x88c956,_0x28b0c8);};}exports[_0x322422('0x0')]=function(_0x4aed58){const _0x26fc1e=_0x322422;for(let _0x160fae=0x0,_0x3ca7fd=events[_0x26fc1e('0x4')];_0x160fae<_0x3ca7fd;_0x160fae++){const _0x1728fd=events[_0x160fae],_0x44dcc2=createListener(_0x26fc1e('0x6')+_0x1728fd,_0x4aed58);UserProfileEvents['on'](_0x1728fd,_0x44dcc2);}}; \ No newline at end of file diff --git a/server/api/userProfileResource/index.js b/server/api/userProfileResource/index.js index c100f77..18e6a44 100644 --- a/server/api/userProfileResource/index.js +++ b/server/api/userProfileResource/index.js @@ -1 +1 @@ -const a672_0x3366=['post','../../components/auth/service','Router','show','/:id','delete','index','express','describe','create','get','isAuthenticated'];(function(_0x569e9e,_0x336682){const _0x61b1d7=function(_0x2525b3){while(--_0x2525b3){_0x569e9e['push'](_0x569e9e['shift']());}};_0x61b1d7(++_0x336682);}(a672_0x3366,0x9d));const a672_0x61b1=function(_0x569e9e,_0x336682){_0x569e9e=_0x569e9e-0x0;let _0x61b1d7=a672_0x3366[_0x569e9e];return _0x61b1d7;};const _0x105d7e=a672_0x61b1;'use strict';const express=require(_0x105d7e('0x6')),router=express[_0x105d7e('0x1')](),auth=require(_0x105d7e('0x0')),controller=require('./userProfileResource.controller');router[_0x105d7e('0x9')]('/',auth[_0x105d7e('0xa')](),controller[_0x105d7e('0x5')]),router['get']('/describe',auth['isAuthenticated'](),controller[_0x105d7e('0x7')]),router['get'](_0x105d7e('0x3'),auth['isAuthenticated'](),controller[_0x105d7e('0x2')]),router[_0x105d7e('0xb')]('/',auth[_0x105d7e('0xa')](),controller[_0x105d7e('0x8')]),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router[_0x105d7e('0x4')](_0x105d7e('0x3'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a672_0x1d02=['update','destroy','Router','describe','index','put','isAuthenticated','create','get','delete','express','/:id','./userProfileResource.controller','../../components/auth/service'];(function(_0x4a68b8,_0x1d02d6){const _0xf3e545=function(_0x1bedb4){while(--_0x1bedb4){_0x4a68b8['push'](_0x4a68b8['shift']());}};_0xf3e545(++_0x1d02d6);}(a672_0x1d02,0x171));const a672_0xf3e5=function(_0x4a68b8,_0x1d02d6){_0x4a68b8=_0x4a68b8-0x0;let _0xf3e545=a672_0x1d02[_0x4a68b8];return _0xf3e545;};const _0x382bc1=a672_0xf3e5;'use strict';const express=require(_0x382bc1('0x5')),router=express[_0x382bc1('0xb')](),auth=require(_0x382bc1('0x8')),controller=require(_0x382bc1('0x7'));router[_0x382bc1('0x3')]('/',auth[_0x382bc1('0x1')](),controller[_0x382bc1('0xd')]),router[_0x382bc1('0x3')]('/describe',auth[_0x382bc1('0x1')](),controller[_0x382bc1('0xc')]),router[_0x382bc1('0x3')](_0x382bc1('0x6'),auth[_0x382bc1('0x1')](),controller['show']),router['post']('/',auth[_0x382bc1('0x1')](),controller[_0x382bc1('0x2')]),router[_0x382bc1('0x0')]('/:id',auth[_0x382bc1('0x1')](),controller[_0x382bc1('0x9')]),router[_0x382bc1('0x4')]('/:id',auth[_0x382bc1('0x1')](),controller[_0x382bc1('0xa')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.attributes.js b/server/api/userProfileResource/userProfileResource.attributes.js index f5dd658..8d1ebfa 100644 --- a/server/api/userProfileResource/userProfileResource.attributes.js +++ b/server/api/userProfileResource/userProfileResource.attributes.js @@ -1 +1 @@ -const a673_0x1d53=['exports','INTEGER','sequelize','STRING'];(function(_0x23ec1b,_0x1d5344){const _0x367c8d=function(_0x18d1a9){while(--_0x18d1a9){_0x23ec1b['push'](_0x23ec1b['shift']());}};_0x367c8d(++_0x1d5344);}(a673_0x1d53,0x83));const a673_0x367c=function(_0x23ec1b,_0x1d5344){_0x23ec1b=_0x23ec1b-0x0;let _0x367c8d=a673_0x1d53[_0x23ec1b];return _0x367c8d;};const _0x394709=a673_0x367c;'use strict';const Sequelize=require(_0x394709('0x3'));module[_0x394709('0x1')]={'name':{'type':Sequelize['STRING'],'allowNull':![]},'resourceId':{'type':Sequelize[_0x394709('0x2')],'allowNull':![]},'type':{'type':Sequelize[_0x394709('0x0')],'allowNull':![]}}; \ No newline at end of file +const a673_0x5155=['sequelize','STRING','exports','INTEGER'];(function(_0x1bbb54,_0x51556d){const _0x51a3bc=function(_0x465f2a){while(--_0x465f2a){_0x1bbb54['push'](_0x1bbb54['shift']());}};_0x51a3bc(++_0x51556d);}(a673_0x5155,0x17b));const a673_0x51a3=function(_0x1bbb54,_0x51556d){_0x1bbb54=_0x1bbb54-0x0;let _0x51a3bc=a673_0x5155[_0x1bbb54];return _0x51a3bc;};const _0x4fa954=a673_0x51a3;'use strict';const Sequelize=require(_0x4fa954('0x1'));module[_0x4fa954('0x3')]={'name':{'type':Sequelize[_0x4fa954('0x2')],'allowNull':![]},'resourceId':{'type':Sequelize[_0x4fa954('0x0')],'allowNull':![]},'type':{'type':Sequelize[_0x4fa954('0x2')],'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.controller.js b/server/api/userProfileResource/userProfileResource.controller.js index c724612..0aa7f4d 100644 --- a/server/api/userProfileResource/userProfileResource.controller.js +++ b/server/api/userProfileResource/userProfileResource.controller.js @@ -1 +1 @@ -const a674_0x2789=['json','create','limit','filter','params','where','query','options','map','keys','api','send','nolimit','type','destroy','../../components/parsers/qs','catch','findAll','sendStatus','model','filters','update','show','intersection','error','lodash','name','merge','offset','findOne','length','order','sort','sequelize','describe','rawAttributes','undefined','../../config/logger','end','count','stack','pick','then','fields','include','rows','includeAll','UserProfileResource','VIRTUAL','body','status','attributes'];(function(_0x5b84b2,_0x278955){const _0x371734=function(_0x33505b){while(--_0x33505b){_0x5b84b2['push'](_0x5b84b2['shift']());}};_0x371734(++_0x278955);}(a674_0x2789,0x185));const a674_0x3717=function(_0x5b84b2,_0x278955){_0x5b84b2=_0x5b84b2-0x0;let _0x371734=a674_0x2789[_0x5b84b2];return _0x371734;};const _0x264cdd=a674_0x3717;'use strict';const _=require(_0x264cdd('0x0')),qs=require(_0x264cdd('0x2a')),logger=require(_0x264cdd('0xc'))(_0x264cdd('0x25')),db=require('../../mysqldb')['db'],{Op}=require(_0x264cdd('0x8'));function respondWithResult(_0x33505b,_0x1f7e28){return _0x1f7e28=_0x1f7e28||0xc8,function(_0x3e3395){const _0x5a0fe5=a674_0x3717;if(_0x3e3395)return _0x33505b[_0x5a0fe5('0x19')](_0x1f7e28)[_0x5a0fe5('0x1b')](_0x3e3395);};}function respondWithFilteredResult(_0x29636c,_0x3a2f54){return function(_0x196b85){const _0x38abd4=a674_0x3717;if(_0x196b85){const _0x17e9da=_0x196b85[_0x38abd4('0xe')],_0x1b6f47=_0x3a2f54[_0x38abd4('0x3')];let _0x3863d2=_0x3a2f54[_0x38abd4('0x3')]+_0x3a2f54[_0x38abd4('0x1d')],_0x66d552;return _0x3863d2>=_0x17e9da?(_0x3863d2=_0x17e9da,_0x66d552=0xc8):_0x66d552=0xce,_0x29636c[_0x38abd4('0x19')](_0x66d552),_0x29636c['set']('Content-Range',_0x1b6f47+'-'+_0x3863d2+'/'+_0x17e9da)[_0x38abd4('0x1b')](_0x196b85);}return null;};}function saveUpdates(_0x2ed66c){return function(_0x351c24){const _0x218d12=a674_0x3717;if(_0x351c24)return _0x351c24[_0x218d12('0x30')](_0x2ed66c)[_0x218d12('0x11')](function(_0x43054a){return _0x43054a;});return null;};}function removeEntity(_0x6f332a){return function(_0x3a2713){const _0x55b952=a674_0x3717;if(_0x3a2713)return _0x3a2713[_0x55b952('0x29')]()[_0x55b952('0x11')](function(){const _0x284b8e=_0x55b952;_0x6f332a['status'](0xcc)[_0x284b8e('0xd')]();});};}function handleEntityNotFound(_0x2eead4){return function(_0x4465ad){const _0x2bfb6c=a674_0x3717;return!_0x4465ad&&_0x2eead4[_0x2bfb6c('0x2d')](0x194),_0x4465ad;};}function handleError(_0x4c652c,_0x3dc778){return _0x3dc778=_0x3dc778||0x1f4,function(_0x1672ee){const _0x2ba8ac=a674_0x3717;logger[_0x2ba8ac('0x33')](_0x1672ee[_0x2ba8ac('0xf')]),_0x1672ee['name']&&delete _0x1672ee['name'],_0x4c652c[_0x2ba8ac('0x19')](_0x3dc778)[_0x2ba8ac('0x26')](_0x1672ee);};}exports['index']=function(_0x415669,_0x11498e){const _0x471551=_0x264cdd;let _0x14b6ea={};const _0x3a32fe={},_0x514274={'count':0x0,'rows':[]},_0x5f3195=_['map'](db[_0x471551('0x16')]['rawAttributes'],function(_0xfbb01b){const _0x490f4a=_0x471551;return{'name':_0xfbb01b['fieldName'],'type':_0xfbb01b[_0x490f4a('0x28')]['key']};});_0x3a32fe[_0x471551('0x2e')]=_['map'](_0x5f3195,'name'),_0x3a32fe[_0x471551('0x21')]=_[_0x471551('0x24')](_0x415669['query']),_0x3a32fe[_0x471551('0x2f')]=_[_0x471551('0x32')](_0x3a32fe[_0x471551('0x2e')],_0x3a32fe[_0x471551('0x21')]),_0x14b6ea['attributes']=_['intersection'](_0x3a32fe[_0x471551('0x2e')],qs['fields'](_0x415669[_0x471551('0x21')]['fields'])),_0x14b6ea['attributes']=_0x14b6ea['attributes'][_0x471551('0x5')]?_0x14b6ea['attributes']:_0x3a32fe['model'];typeof _0x415669[_0x471551('0x21')][_0x471551('0x27')]===_0x471551('0xb')&&(_0x14b6ea[_0x471551('0x1d')]=qs[_0x471551('0x1d')](_0x415669[_0x471551('0x21')][_0x471551('0x1d')]),_0x14b6ea['offset']=qs[_0x471551('0x3')](_0x415669[_0x471551('0x21')][_0x471551('0x3')]));_0x14b6ea[_0x471551('0x6')]=qs['sort'](_0x415669[_0x471551('0x21')][_0x471551('0x7')]),_0x14b6ea[_0x471551('0x20')]=qs['filters'](_[_0x471551('0x10')](_0x415669[_0x471551('0x21')],_0x3a32fe[_0x471551('0x2f')]),_0x5f3195);_0x415669['query'][_0x471551('0x1e')]&&(_0x14b6ea[_0x471551('0x20')]=_[_0x471551('0x2')](_0x14b6ea[_0x471551('0x20')],{[Op['or']]:_[_0x471551('0x23')](_0x5f3195,function(_0x6868e8){const _0x364836=_0x471551;if(_0x6868e8[_0x364836('0x28')]!==_0x364836('0x17')){const _0x525ebe={};return _0x525ebe[_0x6868e8[_0x364836('0x1')]]={[Op['like']]:'%'+_0x415669['query'][_0x364836('0x1e')]+'%'},_0x525ebe;}})}));_0x14b6ea=_['merge']({},_0x14b6ea,_0x415669[_0x471551('0x22')]);const _0x1c4129={'where':_0x14b6ea[_0x471551('0x20')]};return db[_0x471551('0x16')]['count'](_0x1c4129)[_0x471551('0x11')](function(_0x43e604){const _0x56922a=_0x471551;return _0x514274[_0x56922a('0xe')]=_0x43e604,_0x415669['query'][_0x56922a('0x15')]&&(_0x14b6ea['include']=[{'all':!![]}]),db[_0x56922a('0x16')][_0x56922a('0x2c')](_0x14b6ea);})[_0x471551('0x11')](function(_0x5c22e8){const _0x1de72f=_0x471551;return _0x514274[_0x1de72f('0x14')]=_0x5c22e8,_0x514274;})[_0x471551('0x11')](respondWithFilteredResult(_0x11498e,_0x14b6ea))[_0x471551('0x2b')](handleError(_0x11498e,null));},exports[_0x264cdd('0x31')]=function(_0x1dd920,_0x9535f6){const _0x2ed4fb=_0x264cdd;let _0x35d984={'raw':![],'where':{'id':_0x1dd920['params']['id']}};const _0x33d4c7={};return _0x33d4c7['model']=_[_0x2ed4fb('0x24')](db[_0x2ed4fb('0x16')][_0x2ed4fb('0xa')]),_0x33d4c7[_0x2ed4fb('0x21')]=_[_0x2ed4fb('0x24')](_0x1dd920[_0x2ed4fb('0x21')]),_0x33d4c7[_0x2ed4fb('0x2f')]=_['intersection'](_0x33d4c7[_0x2ed4fb('0x2e')],_0x33d4c7[_0x2ed4fb('0x21')]),_0x35d984[_0x2ed4fb('0x1a')]=_['intersection'](_0x33d4c7['model'],qs[_0x2ed4fb('0x12')](_0x1dd920[_0x2ed4fb('0x21')][_0x2ed4fb('0x12')])),_0x35d984[_0x2ed4fb('0x1a')]=_0x35d984['attributes'][_0x2ed4fb('0x5')]?_0x35d984[_0x2ed4fb('0x1a')]:_0x33d4c7[_0x2ed4fb('0x2e')],_0x1dd920[_0x2ed4fb('0x21')][_0x2ed4fb('0x15')]&&(_0x35d984[_0x2ed4fb('0x13')]=[{'all':!![]}]),_0x35d984=_['merge']({},_0x35d984,_0x1dd920[_0x2ed4fb('0x22')]),db[_0x2ed4fb('0x16')]['findOne'](_0x35d984)[_0x2ed4fb('0x11')](handleEntityNotFound(_0x9535f6,null))[_0x2ed4fb('0x11')](respondWithResult(_0x9535f6,null))[_0x2ed4fb('0x2b')](handleError(_0x9535f6,null));},exports['create']=function(_0x2feaa6,_0x44f6dd){const _0x9de93=_0x264cdd;return db[_0x9de93('0x16')][_0x9de93('0x1c')](_0x2feaa6[_0x9de93('0x18')],{})['then'](respondWithResult(_0x44f6dd,0xc9))[_0x9de93('0x2b')](handleError(_0x44f6dd,null));},exports[_0x264cdd('0x30')]=function(_0x501b0b,_0x551490){const _0xf2f3dd=_0x264cdd;return _0x501b0b[_0xf2f3dd('0x18')]['id']&&delete _0x501b0b['body']['id'],db[_0xf2f3dd('0x16')][_0xf2f3dd('0x4')]({'where':{'id':_0x501b0b[_0xf2f3dd('0x1f')]['id']}})[_0xf2f3dd('0x11')](handleEntityNotFound(_0x551490,null))[_0xf2f3dd('0x11')](saveUpdates(_0x501b0b[_0xf2f3dd('0x18')],null))['then'](respondWithResult(_0x551490,null))[_0xf2f3dd('0x2b')](handleError(_0x551490,null));},exports[_0x264cdd('0x29')]=function(_0x568c57,_0x50bfb2){const _0x5bd585=_0x264cdd;return db[_0x5bd585('0x16')][_0x5bd585('0x4')]({'where':{'id':_0x568c57[_0x5bd585('0x1f')]['id']}})['then'](handleEntityNotFound(_0x50bfb2,null))[_0x5bd585('0x11')](removeEntity(_0x50bfb2,null))[_0x5bd585('0x2b')](handleError(_0x50bfb2,null));},exports[_0x264cdd('0x9')]=function(_0x2c3f3d,_0x7badb5){const _0x21d22c=_0x264cdd;return db[_0x21d22c('0x16')][_0x21d22c('0x9')]()[_0x21d22c('0x11')](respondWithResult(_0x7badb5,null))[_0x21d22c('0x2b')](handleError(_0x7badb5,null));}; \ No newline at end of file +const a674_0x2e8e=['sort','order','Content-Range','limit','filters','../../components/parsers/qs','type','query','model','keys','destroy','show','sequelize','findAll','fieldName','options','catch','sendStatus','send','params','VIRTUAL','map','../../mysqldb','intersection','where','fields','rows','body','index','merge','describe','status','api','findOne','update','name','include','then','error','undefined','UserProfileResource','key','rawAttributes','create','stack','json','offset','../../config/logger','end','length','like','nolimit','attributes','includeAll','count'];(function(_0x14ad2a,_0x2e8ef6){const _0x5baaa8=function(_0xe18344){while(--_0xe18344){_0x14ad2a['push'](_0x14ad2a['shift']());}};_0x5baaa8(++_0x2e8ef6);}(a674_0x2e8e,0x14b));const a674_0x5baa=function(_0x14ad2a,_0x2e8ef6){_0x14ad2a=_0x14ad2a-0x0;let _0x5baaa8=a674_0x2e8e[_0x14ad2a];return _0x5baaa8;};const _0x599829=a674_0x5baa;'use strict';const _=require('lodash'),qs=require(_0x599829('0x4')),logger=require(_0x599829('0x2e'))(_0x599829('0x1f')),db=require(_0x599829('0x15'))['db'],{Op}=require(_0x599829('0xb'));function respondWithResult(_0xe18344,_0x232825){return _0x232825=_0x232825||0xc8,function(_0x1d7179){const _0x39b3d7=a674_0x5baa;if(_0x1d7179)return _0xe18344[_0x39b3d7('0x1e')](_0x232825)[_0x39b3d7('0x2c')](_0x1d7179);};}function respondWithFilteredResult(_0x364216,_0x36f6e8){return function(_0x3ed516){const _0x34be97=a674_0x5baa;if(_0x3ed516){const _0x465244=_0x3ed516[_0x34be97('0x35')],_0x21be0c=_0x36f6e8[_0x34be97('0x2d')];let _0x35ecd0=_0x36f6e8[_0x34be97('0x2d')]+_0x36f6e8[_0x34be97('0x2')],_0x2aca2e;return _0x35ecd0>=_0x465244?(_0x35ecd0=_0x465244,_0x2aca2e=0xc8):_0x2aca2e=0xce,_0x364216[_0x34be97('0x1e')](_0x2aca2e),_0x364216['set'](_0x34be97('0x1'),_0x21be0c+'-'+_0x35ecd0+'/'+_0x465244)[_0x34be97('0x2c')](_0x3ed516);}return null;};}function saveUpdates(_0x15a2a4){return function(_0x39695a){if(_0x39695a)return _0x39695a['update'](_0x15a2a4)['then'](function(_0x352de9){return _0x352de9;});return null;};}function removeEntity(_0x32553d){return function(_0x3f7ffe){const _0x34ef92=a674_0x5baa;if(_0x3f7ffe)return _0x3f7ffe[_0x34ef92('0x9')]()[_0x34ef92('0x24')](function(){const _0x3f38c4=_0x34ef92;_0x32553d[_0x3f38c4('0x1e')](0xcc)[_0x3f38c4('0x2f')]();});};}function handleEntityNotFound(_0x1e55b8){return function(_0x4fd548){const _0xee7556=a674_0x5baa;return!_0x4fd548&&_0x1e55b8[_0xee7556('0x10')](0x194),_0x4fd548;};}function handleError(_0x235ffd,_0x25e06a){return _0x25e06a=_0x25e06a||0x1f4,function(_0x1c6de1){const _0x395007=a674_0x5baa;logger[_0x395007('0x25')](_0x1c6de1[_0x395007('0x2b')]),_0x1c6de1[_0x395007('0x22')]&&delete _0x1c6de1['name'],_0x235ffd[_0x395007('0x1e')](_0x25e06a)[_0x395007('0x11')](_0x1c6de1);};}exports[_0x599829('0x1b')]=function(_0x450aa3,_0x2800ea){const _0x2fa871=_0x599829;let _0x32b8c4={};const _0x2d0204={},_0x424c4f={'count':0x0,'rows':[]},_0x30a9d5=_[_0x2fa871('0x14')](db['UserProfileResource'][_0x2fa871('0x29')],function(_0x9e8068){const _0x237503=_0x2fa871;return{'name':_0x9e8068[_0x237503('0xd')],'type':_0x9e8068[_0x237503('0x5')][_0x237503('0x28')]};});_0x2d0204[_0x2fa871('0x7')]=_[_0x2fa871('0x14')](_0x30a9d5,_0x2fa871('0x22')),_0x2d0204[_0x2fa871('0x6')]=_[_0x2fa871('0x8')](_0x450aa3['query']),_0x2d0204[_0x2fa871('0x3')]=_[_0x2fa871('0x16')](_0x2d0204[_0x2fa871('0x7')],_0x2d0204['query']),_0x32b8c4['attributes']=_[_0x2fa871('0x16')](_0x2d0204[_0x2fa871('0x7')],qs[_0x2fa871('0x18')](_0x450aa3[_0x2fa871('0x6')]['fields'])),_0x32b8c4[_0x2fa871('0x33')]=_0x32b8c4[_0x2fa871('0x33')][_0x2fa871('0x30')]?_0x32b8c4['attributes']:_0x2d0204[_0x2fa871('0x7')];typeof _0x450aa3[_0x2fa871('0x6')][_0x2fa871('0x32')]===_0x2fa871('0x26')&&(_0x32b8c4[_0x2fa871('0x2')]=qs[_0x2fa871('0x2')](_0x450aa3[_0x2fa871('0x6')]['limit']),_0x32b8c4['offset']=qs['offset'](_0x450aa3[_0x2fa871('0x6')][_0x2fa871('0x2d')]));_0x32b8c4[_0x2fa871('0x0')]=qs[_0x2fa871('0x36')](_0x450aa3[_0x2fa871('0x6')][_0x2fa871('0x36')]),_0x32b8c4[_0x2fa871('0x17')]=qs['filters'](_['pick'](_0x450aa3[_0x2fa871('0x6')],_0x2d0204[_0x2fa871('0x3')]),_0x30a9d5);_0x450aa3[_0x2fa871('0x6')]['filter']&&(_0x32b8c4['where']=_[_0x2fa871('0x1c')](_0x32b8c4[_0x2fa871('0x17')],{[Op['or']]:_[_0x2fa871('0x14')](_0x30a9d5,function(_0x2756f8){const _0x3525ed=_0x2fa871;if(_0x2756f8[_0x3525ed('0x5')]!==_0x3525ed('0x13')){const _0x382c07={};return _0x382c07[_0x2756f8['name']]={[Op[_0x3525ed('0x31')]]:'%'+_0x450aa3[_0x3525ed('0x6')]['filter']+'%'},_0x382c07;}})}));_0x32b8c4=_[_0x2fa871('0x1c')]({},_0x32b8c4,_0x450aa3[_0x2fa871('0xe')]);const _0x4b522e={'where':_0x32b8c4[_0x2fa871('0x17')]};return db[_0x2fa871('0x27')][_0x2fa871('0x35')](_0x4b522e)['then'](function(_0x16644e){const _0x59a4fe=_0x2fa871;return _0x424c4f[_0x59a4fe('0x35')]=_0x16644e,_0x450aa3['query'][_0x59a4fe('0x34')]&&(_0x32b8c4[_0x59a4fe('0x23')]=[{'all':!![]}]),db[_0x59a4fe('0x27')][_0x59a4fe('0xc')](_0x32b8c4);})[_0x2fa871('0x24')](function(_0x26715c){const _0x435b7e=_0x2fa871;return _0x424c4f[_0x435b7e('0x19')]=_0x26715c,_0x424c4f;})[_0x2fa871('0x24')](respondWithFilteredResult(_0x2800ea,_0x32b8c4))['catch'](handleError(_0x2800ea,null));},exports[_0x599829('0xa')]=function(_0x5d010e,_0x8a1975){const _0x375fd0=_0x599829;let _0x31a30d={'raw':![],'where':{'id':_0x5d010e[_0x375fd0('0x12')]['id']}};const _0x41a20d={};return _0x41a20d['model']=_['keys'](db[_0x375fd0('0x27')][_0x375fd0('0x29')]),_0x41a20d[_0x375fd0('0x6')]=_[_0x375fd0('0x8')](_0x5d010e[_0x375fd0('0x6')]),_0x41a20d[_0x375fd0('0x3')]=_[_0x375fd0('0x16')](_0x41a20d[_0x375fd0('0x7')],_0x41a20d[_0x375fd0('0x6')]),_0x31a30d['attributes']=_['intersection'](_0x41a20d[_0x375fd0('0x7')],qs[_0x375fd0('0x18')](_0x5d010e['query']['fields'])),_0x31a30d[_0x375fd0('0x33')]=_0x31a30d[_0x375fd0('0x33')][_0x375fd0('0x30')]?_0x31a30d['attributes']:_0x41a20d[_0x375fd0('0x7')],_0x5d010e[_0x375fd0('0x6')][_0x375fd0('0x34')]&&(_0x31a30d[_0x375fd0('0x23')]=[{'all':!![]}]),_0x31a30d=_[_0x375fd0('0x1c')]({},_0x31a30d,_0x5d010e[_0x375fd0('0xe')]),db[_0x375fd0('0x27')]['findOne'](_0x31a30d)[_0x375fd0('0x24')](handleEntityNotFound(_0x8a1975,null))[_0x375fd0('0x24')](respondWithResult(_0x8a1975,null))[_0x375fd0('0xf')](handleError(_0x8a1975,null));},exports[_0x599829('0x2a')]=function(_0x2b787e,_0x3b06e7){const _0x4fa54a=_0x599829;return db[_0x4fa54a('0x27')]['create'](_0x2b787e['body'],{})[_0x4fa54a('0x24')](respondWithResult(_0x3b06e7,0xc9))[_0x4fa54a('0xf')](handleError(_0x3b06e7,null));},exports[_0x599829('0x21')]=function(_0x13e81b,_0x58af94){const _0x374206=_0x599829;return _0x13e81b[_0x374206('0x1a')]['id']&&delete _0x13e81b[_0x374206('0x1a')]['id'],db[_0x374206('0x27')][_0x374206('0x20')]({'where':{'id':_0x13e81b[_0x374206('0x12')]['id']}})['then'](handleEntityNotFound(_0x58af94,null))[_0x374206('0x24')](saveUpdates(_0x13e81b['body'],null))[_0x374206('0x24')](respondWithResult(_0x58af94,null))[_0x374206('0xf')](handleError(_0x58af94,null));},exports[_0x599829('0x9')]=function(_0x1e9935,_0x25240f){const _0x39ef6a=_0x599829;return db['UserProfileResource'][_0x39ef6a('0x20')]({'where':{'id':_0x1e9935['params']['id']}})[_0x39ef6a('0x24')](handleEntityNotFound(_0x25240f,null))[_0x39ef6a('0x24')](removeEntity(_0x25240f,null))[_0x39ef6a('0xf')](handleError(_0x25240f,null));},exports[_0x599829('0x1d')]=function(_0x3665e5,_0x441ed1){const _0x248f4c=_0x599829;return db['UserProfileResource'][_0x248f4c('0x1d')]()[_0x248f4c('0x24')](respondWithResult(_0x441ed1,null))[_0x248f4c('0xf')](handleError(_0x441ed1,null));}; \ No newline at end of file diff --git a/server/api/userProfileResource/userProfileResource.model.js b/server/api/userProfileResource/userProfileResource.model.js index 111b813..cbad4f6 100644 --- a/server/api/userProfileResource/userProfileResource.model.js +++ b/server/api/userProfileResource/userProfileResource.model.js @@ -1 +1 @@ -const a675_0xf8e3=['./userProfileResource.attributes','compositeIndex','exports','UserProfileResource'];(function(_0x5dc6e1,_0xf8e33c){const _0x25c9be=function(_0x456748){while(--_0x456748){_0x5dc6e1['push'](_0x5dc6e1['shift']());}};_0x25c9be(++_0xf8e33c);}(a675_0xf8e3,0x85));const a675_0x25c9=function(_0x5dc6e1,_0xf8e33c){_0x5dc6e1=_0x5dc6e1-0x0;let _0x25c9be=a675_0xf8e3[_0x5dc6e1];return _0x25c9be;};const _0x1ab97c=a675_0x25c9;'use strict';const attributes=require(_0x1ab97c('0x3'));module[_0x1ab97c('0x1')]=function(_0x456748){const _0x4d36c1=_0x1ab97c,_0x58015e=_0x456748['define'](_0x4d36c1('0x2'),attributes,{'tableName':'user_profile_has_resources','paranoid':![],'indexes':[{'name':_0x4d36c1('0x0'),'fields':['resourceId','sectionId']}],'timestamps':!![]});return _0x58015e;}; \ No newline at end of file +const a675_0x2220=['compositeIndex','sectionId','resourceId','./userProfileResource.attributes','user_profile_has_resources'];(function(_0x26a389,_0x2220a0){const _0x4b4cce=function(_0x41d978){while(--_0x41d978){_0x26a389['push'](_0x26a389['shift']());}};_0x4b4cce(++_0x2220a0);}(a675_0x2220,0xac));const a675_0x4b4c=function(_0x26a389,_0x2220a0){_0x26a389=_0x26a389-0x0;let _0x4b4cce=a675_0x2220[_0x26a389];return _0x4b4cce;};const _0x520f8c=a675_0x4b4c;'use strict';const attributes=require(_0x520f8c('0x1'));module['exports']=function(_0x41d978){const _0x41ec2b=_0x520f8c,_0x5e04d2=_0x41d978['define']('UserProfileResource',attributes,{'tableName':_0x41ec2b('0x2'),'paranoid':![],'indexes':[{'name':_0x41ec2b('0x3'),'fields':[_0x41ec2b('0x0'),_0x41ec2b('0x4')]}],'timestamps':!![]});return _0x5e04d2;}; \ No newline at end of file diff --git a/server/api/userProfileSection/index.js b/server/api/userProfileSection/index.js index d68c7ae..c348dbc 100644 --- a/server/api/userProfileSection/index.js +++ b/server/api/userProfileSection/index.js @@ -1 +1 @@ -const a676_0x40cb=['isAuthenticated','Router','./userProfileSection.controller','/:id','exports','destroy','show','index','delete','get','put','describe','post'];(function(_0x300968,_0x40cba2){const _0x463155=function(_0x48c033){while(--_0x48c033){_0x300968['push'](_0x300968['shift']());}};_0x463155(++_0x40cba2);}(a676_0x40cb,0xb6));const a676_0x4631=function(_0x300968,_0x40cba2){_0x300968=_0x300968-0x0;let _0x463155=a676_0x40cb[_0x300968];return _0x463155;};const _0x14f761=a676_0x4631;'use strict';const express=require('express'),router=express[_0x14f761('0x1')](),auth=require('../../components/auth/service'),controller=require(_0x14f761('0x2'));router[_0x14f761('0x9')]('/',auth[_0x14f761('0x0')](),controller[_0x14f761('0x7')]),router[_0x14f761('0x9')]('/describe',auth['isAuthenticated'](),controller[_0x14f761('0xb')]),router[_0x14f761('0x9')](_0x14f761('0x3'),auth[_0x14f761('0x0')](),controller[_0x14f761('0x6')]),router[_0x14f761('0xc')]('/',auth[_0x14f761('0x0')](),controller['create']),router[_0x14f761('0xa')](_0x14f761('0x3'),auth['isAuthenticated'](),controller['update']),router[_0x14f761('0x8')](_0x14f761('0x3'),auth[_0x14f761('0x0')](),controller[_0x14f761('0x5')]),module[_0x14f761('0x4')]=router; \ No newline at end of file +const a676_0x503f=['destroy','/:id','get','../../components/auth/service','post','Router','index','/describe','./userProfileSection.controller','exports','isAuthenticated','create','describe'];(function(_0x341eea,_0x503f5c){const _0x56abac=function(_0x5c3eae){while(--_0x5c3eae){_0x341eea['push'](_0x341eea['shift']());}};_0x56abac(++_0x503f5c);}(a676_0x503f,0xd7));const a676_0x56ab=function(_0x341eea,_0x503f5c){_0x341eea=_0x341eea-0x0;let _0x56abac=a676_0x503f[_0x341eea];return _0x56abac;};const _0x288664=a676_0x56ab;'use strict';const express=require('express'),router=express[_0x288664('0xb')](),auth=require(_0x288664('0x9')),controller=require(_0x288664('0x1'));router['get']('/',auth[_0x288664('0x3')](),controller[_0x288664('0xc')]),router[_0x288664('0x8')](_0x288664('0x0'),auth['isAuthenticated'](),controller[_0x288664('0x5')]),router[_0x288664('0x8')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x288664('0xa')]('/',auth[_0x288664('0x3')](),controller[_0x288664('0x4')]),router['put'](_0x288664('0x7'),auth[_0x288664('0x3')](),controller['update']),router['delete'](_0x288664('0x7'),auth[_0x288664('0x3')](),controller[_0x288664('0x6')]),module[_0x288664('0x2')]=router; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.attributes.js b/server/api/userProfileSection/userProfileSection.attributes.js index 8cb51ff..e474c62 100644 --- a/server/api/userProfileSection/userProfileSection.attributes.js +++ b/server/api/userProfileSection/userProfileSection.attributes.js @@ -1 +1 @@ -const a677_0x3bbb=['crudPermissions','STRING','setDataValue','exports','INTEGER','split','getDataValue','join','sequelize'];(function(_0x4c380e,_0x3bbb42){const _0xbef1b8=function(_0x1d21ee){while(--_0x1d21ee){_0x4c380e['push'](_0x4c380e['shift']());}};_0xbef1b8(++_0x3bbb42);}(a677_0x3bbb,0x1a4));const a677_0xbef1=function(_0x4c380e,_0x3bbb42){_0x4c380e=_0x4c380e-0x0;let _0xbef1b8=a677_0x3bbb[_0x4c380e];return _0xbef1b8;};const _0x1bccf9=a677_0xbef1;'use strict';const Sequelize=require(_0x1bccf9('0x2'));module[_0x1bccf9('0x6')]={'name':{'type':Sequelize[_0x1bccf9('0x4')],'allowNull':![]},'category':{'type':Sequelize[_0x1bccf9('0x4')],'allowNull':![]},'sectionId':{'type':Sequelize[_0x1bccf9('0x7')],'allowNull':![]},'enabled':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'autoAssociation':{'type':Sequelize['BOOLEAN'],'defaultValue':null},'crudPermissions':{'type':Sequelize['STRING'],'set':function(_0x1d21ee){const _0x5e1e6e=_0x1bccf9;this[_0x5e1e6e('0x5')]('crudPermissions',_0x1d21ee?_0x1d21ee[_0x5e1e6e('0x1')](''):[]);},'get':function(){const _0x3975dc=_0x1bccf9;return this[_0x3975dc('0x0')](_0x3975dc('0x3'))?this['getDataValue'](_0x3975dc('0x3'))[_0x3975dc('0x8')](''):[];}}}; \ No newline at end of file +const a677_0x5692=['join','crudPermissions','sequelize','getDataValue','split','STRING','INTEGER','setDataValue','BOOLEAN'];(function(_0x9c1a83,_0x56929c){const _0x1f4871=function(_0x420adb){while(--_0x420adb){_0x9c1a83['push'](_0x9c1a83['shift']());}};_0x1f4871(++_0x56929c);}(a677_0x5692,0xe3));const a677_0x1f48=function(_0x9c1a83,_0x56929c){_0x9c1a83=_0x9c1a83-0x0;let _0x1f4871=a677_0x5692[_0x9c1a83];return _0x1f4871;};const _0x274964=a677_0x1f48;'use strict';const Sequelize=require(_0x274964('0x0'));module['exports']={'name':{'type':Sequelize[_0x274964('0x3')],'allowNull':![]},'category':{'type':Sequelize[_0x274964('0x3')],'allowNull':![]},'sectionId':{'type':Sequelize[_0x274964('0x4')],'allowNull':![]},'enabled':{'type':Sequelize[_0x274964('0x6')],'defaultValue':null},'autoAssociation':{'type':Sequelize[_0x274964('0x6')],'defaultValue':null},'crudPermissions':{'type':Sequelize[_0x274964('0x3')],'set':function(_0x420adb){const _0x675eb8=_0x274964;this[_0x675eb8('0x5')](_0x675eb8('0x8'),_0x420adb?_0x420adb[_0x675eb8('0x7')](''):[]);},'get':function(){const _0x4eb4f3=_0x274964;return this[_0x4eb4f3('0x1')]('crudPermissions')?this['getDataValue'](_0x4eb4f3('0x8'))[_0x4eb4f3('0x2')](''):[];}}}; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.controller.js b/server/api/userProfileSection/userProfileSection.controller.js index d8499e4..bc78719 100644 --- a/server/api/userProfileSection/userProfileSection.controller.js +++ b/server/api/userProfileSection/userProfileSection.controller.js @@ -1 +1 @@ -const a678_0x21e4=['count','status','findAll','body','merge','includeAll','nolimit','type','order','name','intersection','lodash','index','../../mysqldb','attributes','map','filters','../../config/logger','length','limit','then','VIRTUAL','Content-Range','destroy','UserProfileSection','include','filter','rawAttributes','fields','stack','update','describe','catch','sequelize','api','params','rows','send','findOne','offset','options','sort','undefined','query','model','pick','where','keys','sendStatus','json','set','like'];(function(_0x393869,_0x21e4da){const _0x551f74=function(_0x25c3d6){while(--_0x25c3d6){_0x393869['push'](_0x393869['shift']());}};_0x551f74(++_0x21e4da);}(a678_0x21e4,0xc5));const a678_0x551f=function(_0x393869,_0x21e4da){_0x393869=_0x393869-0x0;let _0x551f74=a678_0x21e4[_0x393869];return _0x551f74;};const _0x66f0a2=a678_0x551f;'use strict';const _=require(_0x66f0a2('0x16')),qs=require('../../components/parsers/qs'),logger=require(_0x66f0a2('0x1c'))(_0x66f0a2('0x2d')),db=require(_0x66f0a2('0x18'))['db'],{Op}=require(_0x66f0a2('0x2c'));function respondWithResult(_0x25c3d6,_0xdaaf8c){return _0xdaaf8c=_0xdaaf8c||0xc8,function(_0x445af2){const _0x44c70f=a678_0x551f;if(_0x445af2)return _0x25c3d6[_0x44c70f('0xc')](_0xdaaf8c)[_0x44c70f('0x8')](_0x445af2);};}function respondWithFilteredResult(_0x4c254c,_0xf804d7){return function(_0xed618e){const _0x3eb535=a678_0x551f;if(_0xed618e){const _0x2afa30=_0xed618e[_0x3eb535('0xb')],_0x27af86=_0xf804d7['offset'];let _0x2268a9=_0xf804d7[_0x3eb535('0x32')]+_0xf804d7['limit'],_0x4043c8;return _0x2268a9>=_0x2afa30?(_0x2268a9=_0x2afa30,_0x4043c8=0xc8):_0x4043c8=0xce,_0x4c254c[_0x3eb535('0xc')](_0x4043c8),_0x4c254c[_0x3eb535('0x9')](_0x3eb535('0x21'),_0x27af86+'-'+_0x2268a9+'/'+_0x2afa30)['json'](_0xed618e);}return null;};}function saveUpdates(_0x3b126a){return function(_0xa2b794){const _0x23738d=a678_0x551f;if(_0xa2b794)return _0xa2b794[_0x23738d('0x29')](_0x3b126a)[_0x23738d('0x1f')](function(_0x5ed921){return _0x5ed921;});return null;};}function removeEntity(_0x282c9f){return function(_0x43c329){const _0x4b6a18=a678_0x551f;if(_0x43c329)return _0x43c329[_0x4b6a18('0x22')]()[_0x4b6a18('0x1f')](function(){_0x282c9f['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x107bd0){return function(_0x1012e7){const _0x5e58ad=a678_0x551f;return!_0x1012e7&&_0x107bd0[_0x5e58ad('0x7')](0x194),_0x1012e7;};}function handleError(_0x3b1012,_0x1f9a39){return _0x1f9a39=_0x1f9a39||0x1f4,function(_0x2c1f44){const _0x5badd6=a678_0x551f;logger['error'](_0x2c1f44[_0x5badd6('0x28')]),_0x2c1f44[_0x5badd6('0x14')]&&delete _0x2c1f44[_0x5badd6('0x14')],_0x3b1012[_0x5badd6('0xc')](_0x1f9a39)[_0x5badd6('0x30')](_0x2c1f44);};}exports[_0x66f0a2('0x17')]=function(_0x4dc81e,_0x3f47ae){const _0x5b69ab=_0x66f0a2;let _0x19cfbc={};const _0x399fce={},_0x29792a={'count':0x0,'rows':[]},_0x4710ab=_[_0x5b69ab('0x1a')](db[_0x5b69ab('0x23')][_0x5b69ab('0x26')],function(_0xb88cac){const _0x9ea949=_0x5b69ab;return{'name':_0xb88cac['fieldName'],'type':_0xb88cac[_0x9ea949('0x12')]['key']};});_0x399fce['model']=_['map'](_0x4710ab,_0x5b69ab('0x14')),_0x399fce[_0x5b69ab('0x2')]=_[_0x5b69ab('0x6')](_0x4dc81e['query']),_0x399fce[_0x5b69ab('0x1b')]=_[_0x5b69ab('0x15')](_0x399fce[_0x5b69ab('0x3')],_0x399fce[_0x5b69ab('0x2')]),_0x19cfbc[_0x5b69ab('0x19')]=_[_0x5b69ab('0x15')](_0x399fce[_0x5b69ab('0x3')],qs['fields'](_0x4dc81e[_0x5b69ab('0x2')][_0x5b69ab('0x27')])),_0x19cfbc[_0x5b69ab('0x19')]=_0x19cfbc['attributes'][_0x5b69ab('0x1d')]?_0x19cfbc[_0x5b69ab('0x19')]:_0x399fce[_0x5b69ab('0x3')];typeof _0x4dc81e[_0x5b69ab('0x2')][_0x5b69ab('0x11')]===_0x5b69ab('0x1')&&(_0x19cfbc[_0x5b69ab('0x1e')]=qs[_0x5b69ab('0x1e')](_0x4dc81e['query'][_0x5b69ab('0x1e')]),_0x19cfbc[_0x5b69ab('0x32')]=qs['offset'](_0x4dc81e['query'][_0x5b69ab('0x32')]));_0x19cfbc[_0x5b69ab('0x13')]=qs[_0x5b69ab('0x0')](_0x4dc81e[_0x5b69ab('0x2')]['sort']),_0x19cfbc['where']=qs['filters'](_[_0x5b69ab('0x4')](_0x4dc81e[_0x5b69ab('0x2')],_0x399fce[_0x5b69ab('0x1b')]),_0x4710ab);_0x4dc81e[_0x5b69ab('0x2')][_0x5b69ab('0x25')]&&(_0x19cfbc['where']=_[_0x5b69ab('0xf')](_0x19cfbc[_0x5b69ab('0x5')],{[Op['or']]:_['map'](_0x4710ab,function(_0x220303){const _0xd6f849=_0x5b69ab;if(_0x220303['type']!==_0xd6f849('0x20')){const _0x228712={};return _0x228712[_0x220303[_0xd6f849('0x14')]]={[Op[_0xd6f849('0xa')]]:'%'+_0x4dc81e[_0xd6f849('0x2')]['filter']+'%'},_0x228712;}})}));_0x19cfbc=_[_0x5b69ab('0xf')]({},_0x19cfbc,_0x4dc81e['options']);const _0x5e1932={'where':_0x19cfbc[_0x5b69ab('0x5')]};return db['UserProfileSection'][_0x5b69ab('0xb')](_0x5e1932)['then'](function(_0x4d38fd){const _0x7774c=_0x5b69ab;return _0x29792a['count']=_0x4d38fd,_0x4dc81e[_0x7774c('0x2')]['includeAll']&&(_0x19cfbc[_0x7774c('0x24')]=[{'all':!![]}]),db[_0x7774c('0x23')][_0x7774c('0xd')](_0x19cfbc);})[_0x5b69ab('0x1f')](function(_0x59a9d0){const _0x32eb94=_0x5b69ab;return _0x29792a[_0x32eb94('0x2f')]=_0x59a9d0,_0x29792a;})[_0x5b69ab('0x1f')](respondWithFilteredResult(_0x3f47ae,_0x19cfbc))['catch'](handleError(_0x3f47ae,null));},exports['show']=function(_0x4300ac,_0x3e84c5){const _0x263a2e=_0x66f0a2;let _0x42b8cc={'raw':![],'where':{'id':_0x4300ac[_0x263a2e('0x2e')]['id']}};const _0x3f2fd9={};return _0x3f2fd9[_0x263a2e('0x3')]=_[_0x263a2e('0x6')](db[_0x263a2e('0x23')][_0x263a2e('0x26')]),_0x3f2fd9[_0x263a2e('0x2')]=_[_0x263a2e('0x6')](_0x4300ac[_0x263a2e('0x2')]),_0x3f2fd9['filters']=_[_0x263a2e('0x15')](_0x3f2fd9['model'],_0x3f2fd9[_0x263a2e('0x2')]),_0x42b8cc['attributes']=_['intersection'](_0x3f2fd9[_0x263a2e('0x3')],qs[_0x263a2e('0x27')](_0x4300ac[_0x263a2e('0x2')][_0x263a2e('0x27')])),_0x42b8cc[_0x263a2e('0x19')]=_0x42b8cc[_0x263a2e('0x19')][_0x263a2e('0x1d')]?_0x42b8cc[_0x263a2e('0x19')]:_0x3f2fd9['model'],_0x4300ac['query'][_0x263a2e('0x10')]&&(_0x42b8cc[_0x263a2e('0x24')]=[{'all':!![]}]),_0x42b8cc=_['merge']({},_0x42b8cc,_0x4300ac[_0x263a2e('0x33')]),db[_0x263a2e('0x23')][_0x263a2e('0x31')](_0x42b8cc)['then'](handleEntityNotFound(_0x3e84c5,null))['then'](respondWithResult(_0x3e84c5,null))[_0x263a2e('0x2b')](handleError(_0x3e84c5,null));},exports['create']=function(_0x2e22e3,_0x232e94){const _0x373e66=_0x66f0a2;return db['UserProfileSection']['create'](_0x2e22e3[_0x373e66('0xe')],{})[_0x373e66('0x1f')](respondWithResult(_0x232e94,0xc9))['catch'](handleError(_0x232e94,null));},exports[_0x66f0a2('0x29')]=function(_0x5f22e1,_0x514b32){const _0xebf1e6=_0x66f0a2;return _0x5f22e1['body']['id']&&delete _0x5f22e1['body']['id'],db['UserProfileSection'][_0xebf1e6('0x31')]({'where':{'id':_0x5f22e1['params']['id']}})[_0xebf1e6('0x1f')](handleEntityNotFound(_0x514b32,null))[_0xebf1e6('0x1f')](saveUpdates(_0x5f22e1['body'],null))[_0xebf1e6('0x1f')](respondWithResult(_0x514b32,null))[_0xebf1e6('0x2b')](handleError(_0x514b32,null));},exports[_0x66f0a2('0x22')]=function(_0x25bd6b,_0x2071f7){const _0x2bcf36=_0x66f0a2;return db['UserProfileSection']['findOne']({'where':{'id':_0x25bd6b[_0x2bcf36('0x2e')]['id']}})['then'](handleEntityNotFound(_0x2071f7,null))[_0x2bcf36('0x1f')](removeEntity(_0x2071f7,null))[_0x2bcf36('0x2b')](handleError(_0x2071f7,null));},exports[_0x66f0a2('0x2a')]=function(_0x363d6f,_0x4d2e02){const _0x5809fb=_0x66f0a2;return db[_0x5809fb('0x23')]['describe']()[_0x5809fb('0x1f')](respondWithResult(_0x4d2e02,null))[_0x5809fb('0x2b')](handleError(_0x4d2e02,null));}; \ No newline at end of file +const a678_0x3c0b=['rows','update','keys','body','filter','set','Content-Range','order','fieldName','findAll','intersection','then','rawAttributes','attributes','map','merge','error','end','offset','filters','sort','includeAll','send','findOne','UserProfileSection','nolimit','count','json','limit','destroy','status','like','model','options','VIRTUAL','../../config/logger','api','fields','type','include','catch','query','pick','lodash','describe','sequelize','create','stack','name','length'];(function(_0x442f72,_0x3c0bd3){const _0x594e8a=function(_0x1dc90d){while(--_0x1dc90d){_0x442f72['push'](_0x442f72['shift']());}};_0x594e8a(++_0x3c0bd3);}(a678_0x3c0b,0x170));const a678_0x594e=function(_0x442f72,_0x3c0bd3){_0x442f72=_0x442f72-0x0;let _0x594e8a=a678_0x3c0b[_0x442f72];return _0x594e8a;};const _0x3c1184=a678_0x594e;'use strict';const _=require(_0x3c1184('0x19')),qs=require('../../components/parsers/qs'),logger=require(_0x3c1184('0x11'))(_0x3c1184('0x12')),db=require('../../mysqldb')['db'],{Op}=require(_0x3c1184('0x1b'));function respondWithResult(_0x1dc90d,_0x392a8d){return _0x392a8d=_0x392a8d||0xc8,function(_0x5a3b6f){const _0x2309ae=a678_0x594e;if(_0x5a3b6f)return _0x1dc90d[_0x2309ae('0xc')](_0x392a8d)[_0x2309ae('0x9')](_0x5a3b6f);};}function respondWithFilteredResult(_0x4723ce,_0x2ad38c){return function(_0x26302d){const _0x4ab39a=a678_0x594e;if(_0x26302d){const _0x437f6f=_0x26302d[_0x4ab39a('0x8')],_0x4aa700=_0x2ad38c[_0x4ab39a('0x0')];let _0x3dc0a2=_0x2ad38c[_0x4ab39a('0x0')]+_0x2ad38c[_0x4ab39a('0xa')],_0x2b64a4;return _0x3dc0a2>=_0x437f6f?(_0x3dc0a2=_0x437f6f,_0x2b64a4=0xc8):_0x2b64a4=0xce,_0x4723ce['status'](_0x2b64a4),_0x4723ce[_0x4ab39a('0x25')](_0x4ab39a('0x26'),_0x4aa700+'-'+_0x3dc0a2+'/'+_0x437f6f)[_0x4ab39a('0x9')](_0x26302d);}return null;};}function saveUpdates(_0x1f259e){return function(_0x3ab8e3){const _0x340021=a678_0x594e;if(_0x3ab8e3)return _0x3ab8e3[_0x340021('0x21')](_0x1f259e)[_0x340021('0x2b')](function(_0xdb2843){return _0xdb2843;});return null;};}function removeEntity(_0x1c157d){return function(_0x4579fd){const _0x3da429=a678_0x594e;if(_0x4579fd)return _0x4579fd[_0x3da429('0xb')]()[_0x3da429('0x2b')](function(){const _0x44d913=_0x3da429;_0x1c157d[_0x44d913('0xc')](0xcc)[_0x44d913('0x31')]();});};}function handleEntityNotFound(_0x57941c){return function(_0xbee510){return!_0xbee510&&_0x57941c['sendStatus'](0x194),_0xbee510;};}function handleError(_0x345e8d,_0x4e1b98){return _0x4e1b98=_0x4e1b98||0x1f4,function(_0x20c838){const _0x516571=a678_0x594e;logger[_0x516571('0x30')](_0x20c838[_0x516571('0x1d')]),_0x20c838[_0x516571('0x1e')]&&delete _0x20c838[_0x516571('0x1e')],_0x345e8d[_0x516571('0xc')](_0x4e1b98)[_0x516571('0x4')](_0x20c838);};}exports['index']=function(_0x12646b,_0x43660e){const _0x177bde=_0x3c1184;let _0x2a4d8e={};const _0x5e8933={},_0x1506c0={'count':0x0,'rows':[]},_0x4172c6=_['map'](db[_0x177bde('0x6')][_0x177bde('0x2c')],function(_0xc9cf0){const _0x5cc124=_0x177bde;return{'name':_0xc9cf0[_0x5cc124('0x28')],'type':_0xc9cf0['type']['key']};});_0x5e8933[_0x177bde('0xe')]=_[_0x177bde('0x2e')](_0x4172c6,_0x177bde('0x1e')),_0x5e8933['query']=_['keys'](_0x12646b[_0x177bde('0x17')]),_0x5e8933['filters']=_[_0x177bde('0x2a')](_0x5e8933['model'],_0x5e8933[_0x177bde('0x17')]),_0x2a4d8e['attributes']=_[_0x177bde('0x2a')](_0x5e8933[_0x177bde('0xe')],qs[_0x177bde('0x13')](_0x12646b[_0x177bde('0x17')][_0x177bde('0x13')])),_0x2a4d8e[_0x177bde('0x2d')]=_0x2a4d8e[_0x177bde('0x2d')][_0x177bde('0x1f')]?_0x2a4d8e[_0x177bde('0x2d')]:_0x5e8933['model'];typeof _0x12646b[_0x177bde('0x17')][_0x177bde('0x7')]==='undefined'&&(_0x2a4d8e[_0x177bde('0xa')]=qs[_0x177bde('0xa')](_0x12646b[_0x177bde('0x17')][_0x177bde('0xa')]),_0x2a4d8e[_0x177bde('0x0')]=qs[_0x177bde('0x0')](_0x12646b['query'][_0x177bde('0x0')]));_0x2a4d8e[_0x177bde('0x27')]=qs[_0x177bde('0x2')](_0x12646b[_0x177bde('0x17')]['sort']),_0x2a4d8e['where']=qs[_0x177bde('0x1')](_[_0x177bde('0x18')](_0x12646b[_0x177bde('0x17')],_0x5e8933[_0x177bde('0x1')]),_0x4172c6);_0x12646b[_0x177bde('0x17')][_0x177bde('0x24')]&&(_0x2a4d8e['where']=_[_0x177bde('0x2f')](_0x2a4d8e['where'],{[Op['or']]:_['map'](_0x4172c6,function(_0x4139f4){const _0x4a2d96=_0x177bde;if(_0x4139f4[_0x4a2d96('0x14')]!==_0x4a2d96('0x10')){const _0x3407a2={};return _0x3407a2[_0x4139f4[_0x4a2d96('0x1e')]]={[Op[_0x4a2d96('0xd')]]:'%'+_0x12646b['query'][_0x4a2d96('0x24')]+'%'},_0x3407a2;}})}));_0x2a4d8e=_[_0x177bde('0x2f')]({},_0x2a4d8e,_0x12646b[_0x177bde('0xf')]);const _0x2fa0f2={'where':_0x2a4d8e['where']};return db[_0x177bde('0x6')][_0x177bde('0x8')](_0x2fa0f2)[_0x177bde('0x2b')](function(_0x2ccad0){const _0x5e93bc=_0x177bde;return _0x1506c0['count']=_0x2ccad0,_0x12646b['query'][_0x5e93bc('0x3')]&&(_0x2a4d8e[_0x5e93bc('0x15')]=[{'all':!![]}]),db[_0x5e93bc('0x6')][_0x5e93bc('0x29')](_0x2a4d8e);})['then'](function(_0x5929f6){const _0x560e8f=_0x177bde;return _0x1506c0[_0x560e8f('0x20')]=_0x5929f6,_0x1506c0;})['then'](respondWithFilteredResult(_0x43660e,_0x2a4d8e))[_0x177bde('0x16')](handleError(_0x43660e,null));},exports['show']=function(_0x39f94a,_0x36bd02){const _0x359aca=_0x3c1184;let _0x1e4176={'raw':![],'where':{'id':_0x39f94a['params']['id']}};const _0x57365e={};return _0x57365e['model']=_['keys'](db['UserProfileSection'][_0x359aca('0x2c')]),_0x57365e[_0x359aca('0x17')]=_[_0x359aca('0x22')](_0x39f94a[_0x359aca('0x17')]),_0x57365e['filters']=_[_0x359aca('0x2a')](_0x57365e[_0x359aca('0xe')],_0x57365e[_0x359aca('0x17')]),_0x1e4176[_0x359aca('0x2d')]=_[_0x359aca('0x2a')](_0x57365e[_0x359aca('0xe')],qs['fields'](_0x39f94a[_0x359aca('0x17')][_0x359aca('0x13')])),_0x1e4176[_0x359aca('0x2d')]=_0x1e4176[_0x359aca('0x2d')]['length']?_0x1e4176[_0x359aca('0x2d')]:_0x57365e['model'],_0x39f94a[_0x359aca('0x17')][_0x359aca('0x3')]&&(_0x1e4176[_0x359aca('0x15')]=[{'all':!![]}]),_0x1e4176=_[_0x359aca('0x2f')]({},_0x1e4176,_0x39f94a['options']),db[_0x359aca('0x6')][_0x359aca('0x5')](_0x1e4176)[_0x359aca('0x2b')](handleEntityNotFound(_0x36bd02,null))[_0x359aca('0x2b')](respondWithResult(_0x36bd02,null))[_0x359aca('0x16')](handleError(_0x36bd02,null));},exports[_0x3c1184('0x1c')]=function(_0x50764b,_0x4730f6){const _0x60fe08=_0x3c1184;return db[_0x60fe08('0x6')][_0x60fe08('0x1c')](_0x50764b[_0x60fe08('0x23')],{})['then'](respondWithResult(_0x4730f6,0xc9))[_0x60fe08('0x16')](handleError(_0x4730f6,null));},exports[_0x3c1184('0x21')]=function(_0xd3e88d,_0xb623dd){const _0x845ed8=_0x3c1184;return _0xd3e88d[_0x845ed8('0x23')]['id']&&delete _0xd3e88d['body']['id'],db['UserProfileSection'][_0x845ed8('0x5')]({'where':{'id':_0xd3e88d['params']['id']}})[_0x845ed8('0x2b')](handleEntityNotFound(_0xb623dd,null))[_0x845ed8('0x2b')](saveUpdates(_0xd3e88d['body'],null))['then'](respondWithResult(_0xb623dd,null))['catch'](handleError(_0xb623dd,null));},exports[_0x3c1184('0xb')]=function(_0x40d86f,_0x2349df){const _0x4f2def=_0x3c1184;return db['UserProfileSection']['findOne']({'where':{'id':_0x40d86f['params']['id']}})[_0x4f2def('0x2b')](handleEntityNotFound(_0x2349df,null))[_0x4f2def('0x2b')](removeEntity(_0x2349df,null))['catch'](handleError(_0x2349df,null));},exports[_0x3c1184('0x1a')]=function(_0x531bc2,_0x4c44ed){const _0x51139b=_0x3c1184;return db['UserProfileSection'][_0x51139b('0x1a')]()['then'](respondWithResult(_0x4c44ed,null))[_0x51139b('0x16')](handleError(_0x4c44ed,null));}; \ No newline at end of file diff --git a/server/api/userProfileSection/userProfileSection.model.js b/server/api/userProfileSection/userProfileSection.model.js index cdcd3ea..ba0d718 100644 --- a/server/api/userProfileSection/userProfileSection.model.js +++ b/server/api/userProfileSection/userProfileSection.model.js @@ -1 +1 @@ -const a679_0x1891=['sectionId','UserProfileSection','userProfileId','define','user_profile_has_sections','./userProfileSection.attributes','exports'];(function(_0x481340,_0x18917a){const _0x9aadfc=function(_0x45d54d){while(--_0x45d54d){_0x481340['push'](_0x481340['shift']());}};_0x9aadfc(++_0x18917a);}(a679_0x1891,0xf4));const a679_0x9aad=function(_0x481340,_0x18917a){_0x481340=_0x481340-0x0;let _0x9aadfc=a679_0x1891[_0x481340];return _0x9aadfc;};const _0xd16e73=a679_0x9aad;'use strict';const attributes=require(_0xd16e73('0x6'));module[_0xd16e73('0x0')]=function(_0x45d54d){const _0x45ab46=_0xd16e73,_0x13d7c0=_0x45d54d[_0x45ab46('0x4')](_0x45ab46('0x2'),attributes,{'tableName':_0x45ab46('0x5'),'paranoid':![],'indexes':[{'name':'compositeIndex','fields':[_0x45ab46('0x1'),_0x45ab46('0x3')]}],'timestamps':!![]});return _0x13d7c0;}; \ No newline at end of file +const a679_0x1848=['userProfileId','sectionId','UserProfileSection','compositeIndex','./userProfileSection.attributes','exports'];(function(_0x589653,_0x18486c){const _0x5532f5=function(_0x53b69d){while(--_0x53b69d){_0x589653['push'](_0x589653['shift']());}};_0x5532f5(++_0x18486c);}(a679_0x1848,0xbd));const a679_0x5532=function(_0x589653,_0x18486c){_0x589653=_0x589653-0x0;let _0x5532f5=a679_0x1848[_0x589653];return _0x5532f5;};const _0x4529ba=a679_0x5532;'use strict';const attributes=require(_0x4529ba('0x1'));module[_0x4529ba('0x2')]=function(_0x53b69d){const _0x30bdeb=_0x4529ba,_0x3fba3a=_0x53b69d['define'](_0x30bdeb('0x5'),attributes,{'tableName':'user_profile_has_sections','paranoid':![],'indexes':[{'name':_0x30bdeb('0x0'),'fields':[_0x30bdeb('0x4'),_0x30bdeb('0x3')]}],'timestamps':!![]});return _0x3fba3a;}; \ No newline at end of file diff --git a/server/api/userSmsQueue/index.js b/server/api/userSmsQueue/index.js index 9718a72..cdc053c 100644 --- a/server/api/userSmsQueue/index.js +++ b/server/api/userSmsQueue/index.js @@ -1 +1 @@ -const a680_0x3bfa=['exports','express','Router'];(function(_0x100b81,_0x3bfa56){const _0x20a941=function(_0x114f05){while(--_0x114f05){_0x100b81['push'](_0x100b81['shift']());}};_0x20a941(++_0x3bfa56);}(a680_0x3bfa,0x97));const a680_0x20a9=function(_0x100b81,_0x3bfa56){_0x100b81=_0x100b81-0x0;let _0x20a941=a680_0x3bfa[_0x100b81];return _0x20a941;};const _0x18171d=a680_0x20a9;'use strict';const express=require(_0x18171d('0x0')),router=express[_0x18171d('0x1')]();module[_0x18171d('0x2')]=router; \ No newline at end of file +const a680_0x50d0=['Router','express'];(function(_0x4bfa6b,_0x50d0ac){const _0x441a7f=function(_0x3f89ef){while(--_0x3f89ef){_0x4bfa6b['push'](_0x4bfa6b['shift']());}};_0x441a7f(++_0x50d0ac);}(a680_0x50d0,0xb2));const a680_0x441a=function(_0x4bfa6b,_0x50d0ac){_0x4bfa6b=_0x4bfa6b-0x0;let _0x441a7f=a680_0x50d0[_0x4bfa6b];return _0x441a7f;};const _0x49d5e4=a680_0x441a;'use strict';const express=require(_0x49d5e4('0x1')),router=express[_0x49d5e4('0x0')]();module['exports']=router; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.attributes.js b/server/api/userSmsQueue/userSmsQueue.attributes.js index 11d0a31..612624d 100644 --- a/server/api/userSmsQueue/userSmsQueue.attributes.js +++ b/server/api/userSmsQueue/userSmsQueue.attributes.js @@ -1 +1 @@ -const a681_0x20d7=['sequelize','exports'];(function(_0x21f21e,_0x20d7a5){const _0x4cee7b=function(_0x35a5ad){while(--_0x35a5ad){_0x21f21e['push'](_0x21f21e['shift']());}};_0x4cee7b(++_0x20d7a5);}(a681_0x20d7,0x1ce));const a681_0x4cee=function(_0x21f21e,_0x20d7a5){_0x21f21e=_0x21f21e-0x0;let _0x4cee7b=a681_0x20d7[_0x21f21e];return _0x4cee7b;};const _0x237afc=a681_0x4cee;'use strict';const Sequelize=require(_0x237afc('0x0'));module[_0x237afc('0x1')]={'penalty':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a681_0x5746=['INTEGER','exports','sequelize'];(function(_0x42a095,_0x574692){const _0xe84bd2=function(_0x3ec0eb){while(--_0x3ec0eb){_0x42a095['push'](_0x42a095['shift']());}};_0xe84bd2(++_0x574692);}(a681_0x5746,0x1ec));const a681_0xe84b=function(_0x42a095,_0x574692){_0x42a095=_0x42a095-0x0;let _0xe84bd2=a681_0x5746[_0x42a095];return _0xe84bd2;};const _0x27923a=a681_0xe84b;'use strict';const Sequelize=require(_0x27923a('0x2'));module[_0x27923a('0x1')]={'penalty':{'type':Sequelize[_0x27923a('0x0')],'defaultValue':0x0}}; \ No newline at end of file diff --git a/server/api/userSmsQueue/userSmsQueue.model.js b/server/api/userSmsQueue/userSmsQueue.model.js index 636c3f9..86ef789 100644 --- a/server/api/userSmsQueue/userSmsQueue.model.js +++ b/server/api/userSmsQueue/userSmsQueue.model.js @@ -1 +1 @@ -const a682_0x2a8b=['exports','define','UserSmsQueue'];(function(_0x26131d,_0x2a8b96){const _0xcd6c4b=function(_0x30506a){while(--_0x30506a){_0x26131d['push'](_0x26131d['shift']());}};_0xcd6c4b(++_0x2a8b96);}(a682_0x2a8b,0xdc));const a682_0xcd6c=function(_0x26131d,_0x2a8b96){_0x26131d=_0x26131d-0x0;let _0xcd6c4b=a682_0x2a8b[_0x26131d];return _0xcd6c4b;};const _0x1ca46a=a682_0xcd6c;'use strict';const attributes=require('./userSmsQueue.attributes');module[_0x1ca46a('0x2')]=function(_0x30506a){const _0x506faa=_0x1ca46a,_0x3a0965=_0x30506a[_0x506faa('0x0')](_0x506faa('0x1'),attributes,{'tableName':'user_has_sms_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x3a0965;}; \ No newline at end of file +const a682_0x3359=['./userSmsQueue.attributes','define','user_has_sms_queues','exports'];(function(_0xe08dbe,_0x33599d){const _0x2c5e38=function(_0x2578c7){while(--_0x2578c7){_0xe08dbe['push'](_0xe08dbe['shift']());}};_0x2c5e38(++_0x33599d);}(a682_0x3359,0x1b3));const a682_0x2c5e=function(_0xe08dbe,_0x33599d){_0xe08dbe=_0xe08dbe-0x0;let _0x2c5e38=a682_0x3359[_0xe08dbe];return _0x2c5e38;};const _0x17c91f=a682_0x2c5e;'use strict';const attributes=require(_0x17c91f('0x1'));module[_0x17c91f('0x0')]=function(_0x2578c7){const _0xe2892b=_0x17c91f,_0x59cde4=_0x2578c7[_0xe2892b('0x2')]('UserSmsQueue',attributes,{'tableName':_0xe2892b('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x59cde4;}; \ No newline at end of file diff --git a/server/api/userVoiceQueue/index.js b/server/api/userVoiceQueue/index.js index 438b8f6..34148f5 100644 --- a/server/api/userVoiceQueue/index.js +++ b/server/api/userVoiceQueue/index.js @@ -1 +1 @@ -const a683_0x3947=['Router','exports','express'];(function(_0x5d2f4f,_0x39472a){const _0x988dc3=function(_0x3112ff){while(--_0x3112ff){_0x5d2f4f['push'](_0x5d2f4f['shift']());}};_0x988dc3(++_0x39472a);}(a683_0x3947,0xa6));const a683_0x988d=function(_0x5d2f4f,_0x39472a){_0x5d2f4f=_0x5d2f4f-0x0;let _0x988dc3=a683_0x3947[_0x5d2f4f];return _0x988dc3;};const _0x450540=a683_0x988d;'use strict';const express=require(_0x450540('0x1')),router=express[_0x450540('0x2')]();module[_0x450540('0x0')]=router; \ No newline at end of file +const a683_0x14be=['Router','exports'];(function(_0x17fc5d,_0x14be17){const _0x38bad6=function(_0x5760ef){while(--_0x5760ef){_0x17fc5d['push'](_0x17fc5d['shift']());}};_0x38bad6(++_0x14be17);}(a683_0x14be,0x6e));const a683_0x38ba=function(_0x17fc5d,_0x14be17){_0x17fc5d=_0x17fc5d-0x0;let _0x38bad6=a683_0x14be[_0x17fc5d];return _0x38bad6;};const _0x573e7c=a683_0x38ba;'use strict';const express=require('express'),router=express[_0x573e7c('0x0')]();module[_0x573e7c('0x1')]=router; \ No newline at end of file diff --git a/server/api/userVoiceQueue/userVoiceQueue.attributes.js b/server/api/userVoiceQueue/userVoiceQueue.attributes.js index 0bfb148..9aa63c7 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.attributes.js +++ b/server/api/userVoiceQueue/userVoiceQueue.attributes.js @@ -1 +1 @@ -const a684_0x5a53=['INTEGER','sequelize'];(function(_0x41b2da,_0x5a533c){const _0x414147=function(_0x2c00d3){while(--_0x2c00d3){_0x41b2da['push'](_0x41b2da['shift']());}};_0x414147(++_0x5a533c);}(a684_0x5a53,0x18c));const a684_0x4141=function(_0x41b2da,_0x5a533c){_0x41b2da=_0x41b2da-0x0;let _0x414147=a684_0x5a53[_0x41b2da];return _0x414147;};const _0x19403d=a684_0x4141;'use strict';const Sequelize=require(_0x19403d('0x1'));module['exports']={'penalty':{'type':Sequelize[_0x19403d('0x0')],'defaultValue':0x0}}; \ No newline at end of file +const a684_0x27cd=['sequelize','exports','INTEGER'];(function(_0x5379b0,_0x27cd70){const _0x499439=function(_0x37f684){while(--_0x37f684){_0x5379b0['push'](_0x5379b0['shift']());}};_0x499439(++_0x27cd70);}(a684_0x27cd,0x13c));const a684_0x4994=function(_0x5379b0,_0x27cd70){_0x5379b0=_0x5379b0-0x0;let _0x499439=a684_0x27cd[_0x5379b0];return _0x499439;};const _0x1a6ee4=a684_0x4994;'use strict';const Sequelize=require(_0x1a6ee4('0x2'));module[_0x1a6ee4('0x0')]={'penalty':{'type':Sequelize[_0x1a6ee4('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 9fbaaa9..0374069 100644 --- a/server/api/userVoiceQueue/userVoiceQueue.model.js +++ b/server/api/userVoiceQueue/userVoiceQueue.model.js @@ -1 +1 @@ -const a685_0x3aa5=['define','UserVoiceQueue','./userVoiceQueue.attributes'];(function(_0x399ab9,_0x3aa5c0){const _0x57f991=function(_0x598a7f){while(--_0x598a7f){_0x399ab9['push'](_0x399ab9['shift']());}};_0x57f991(++_0x3aa5c0);}(a685_0x3aa5,0x151));const a685_0x57f9=function(_0x399ab9,_0x3aa5c0){_0x399ab9=_0x399ab9-0x0;let _0x57f991=a685_0x3aa5[_0x399ab9];return _0x57f991;};const _0x5c266e=a685_0x57f9;'use strict';const attributes=require(_0x5c266e('0x1'));module['exports']=function(_0x598a7f){const _0xc4f626=_0x5c266e,_0xeefea5=_0x598a7f[_0xc4f626('0x2')](_0xc4f626('0x0'),attributes,{'tableName':'user_has_voice_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0xeefea5;}; \ No newline at end of file +const a685_0x181a=['define','user_has_voice_queues','./userVoiceQueue.attributes','UserVoiceQueue'];(function(_0x3e7dbb,_0x181ae8){const _0x25ab32=function(_0x3563fd){while(--_0x3563fd){_0x3e7dbb['push'](_0x3e7dbb['shift']());}};_0x25ab32(++_0x181ae8);}(a685_0x181a,0x76));const a685_0x25ab=function(_0x3e7dbb,_0x181ae8){_0x3e7dbb=_0x3e7dbb-0x0;let _0x25ab32=a685_0x181a[_0x3e7dbb];return _0x25ab32;};const _0x18a827=a685_0x25ab;'use strict';const attributes=require(_0x18a827('0x0'));module['exports']=function(_0x3563fd){const _0x3f5322=_0x18a827,_0x574206=_0x3563fd[_0x3f5322('0x2')](_0x3f5322('0x1'),attributes,{'tableName':_0x3f5322('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x574206;}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/index.js b/server/api/userVoiceQueueRt/index.js index ce605ce..cc2f548 100644 --- a/server/api/userVoiceQueueRt/index.js +++ b/server/api/userVoiceQueueRt/index.js @@ -1 +1 @@ -const a686_0xab68=['Router','exports','express'];(function(_0x47433b,_0xab688d){const _0x162350=function(_0x368822){while(--_0x368822){_0x47433b['push'](_0x47433b['shift']());}};_0x162350(++_0xab688d);}(a686_0xab68,0x93));const a686_0x1623=function(_0x47433b,_0xab688d){_0x47433b=_0x47433b-0x0;let _0x162350=a686_0xab68[_0x47433b];return _0x162350;};const _0x4e8b92=a686_0x1623;'use strict';const express=require(_0x4e8b92('0x2')),router=express[_0x4e8b92('0x0')]();module[_0x4e8b92('0x1')]=router; \ No newline at end of file +const a686_0x1fd9=['express','exports','Router'];(function(_0x20de69,_0x1fd9e7){const _0x37a5fe=function(_0x2d3fb6){while(--_0x2d3fb6){_0x20de69['push'](_0x20de69['shift']());}};_0x37a5fe(++_0x1fd9e7);}(a686_0x1fd9,0xbc));const a686_0x37a5=function(_0x20de69,_0x1fd9e7){_0x20de69=_0x20de69-0x0;let _0x37a5fe=a686_0x1fd9[_0x20de69];return _0x37a5fe;};const _0x28f7c9=a686_0x37a5;'use strict';const express=require(_0x28f7c9('0x1')),router=express[_0x28f7c9('0x0')]();module[_0x28f7c9('0x2')]=router; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js index 18cdc30..5518b5a 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.attributes.js @@ -1 +1 @@ -const a687_0x7883=['INTEGER','queue_interface','exports','Required\x20by\x20Asterisk','STRING'];(function(_0x2268e6,_0x7883fa){const _0x34bf4e=function(_0x50fceb){while(--_0x50fceb){_0x2268e6['push'](_0x2268e6['shift']());}};_0x34bf4e(++_0x7883fa);}(a687_0x7883,0x192));const a687_0x34bf=function(_0x2268e6,_0x7883fa){_0x2268e6=_0x2268e6-0x0;let _0x34bf4e=a687_0x7883[_0x2268e6];return _0x34bf4e;};const _0x2056c5=a687_0x34bf;'use strict';const Sequelize=require('sequelize');module[_0x2056c5('0x0')]={'uniqueid':{'type':Sequelize[_0x2056c5('0x3')],'primaryKey':!![],'autoIncrement':!![],'comment':_0x2056c5('0x1')},'membername':{'type':Sequelize[_0x2056c5('0x2')],'allowNull':![],'comment':_0x2056c5('0x1')},'UserId':{'type':Sequelize['INTEGER'],'allowNull':![]},'queue_name':{'type':Sequelize[_0x2056c5('0x2')],'allowNull':![],'unique':'queue_interface','comment':_0x2056c5('0x1')},'VoiceQueueId':{'type':Sequelize[_0x2056c5('0x3')],'allowNull':![]},'interface':{'type':Sequelize[_0x2056c5('0x2')],'allowNull':![],'unique':_0x2056c5('0x4'),'comment':_0x2056c5('0x1')},'penalty':{'type':Sequelize[_0x2056c5('0x3')](0xb),'defaultValue':0x0,'comment':_0x2056c5('0x1')},'paused':{'type':Sequelize[_0x2056c5('0x3')](0xb),'defaultValue':0x0,'comment':'Required\x20by\x20Asterisk'}}; \ No newline at end of file +const a687_0x10ed=['Required\x20by\x20Asterisk','INTEGER','exports','sequelize','STRING','queue_interface'];(function(_0x128eae,_0x10edd1){const _0x31b4a5=function(_0x1ca393){while(--_0x1ca393){_0x128eae['push'](_0x128eae['shift']());}};_0x31b4a5(++_0x10edd1);}(a687_0x10ed,0x1ac));const a687_0x31b4=function(_0x128eae,_0x10edd1){_0x128eae=_0x128eae-0x0;let _0x31b4a5=a687_0x10ed[_0x128eae];return _0x31b4a5;};const _0x299acf=a687_0x31b4;'use strict';const Sequelize=require(_0x299acf('0x1'));module[_0x299acf('0x0')]={'uniqueid':{'type':Sequelize[_0x299acf('0x5')],'primaryKey':!![],'autoIncrement':!![],'comment':'Required\x20by\x20Asterisk'},'membername':{'type':Sequelize['STRING'],'allowNull':![],'comment':'Required\x20by\x20Asterisk'},'UserId':{'type':Sequelize['INTEGER'],'allowNull':![]},'queue_name':{'type':Sequelize[_0x299acf('0x2')],'allowNull':![],'unique':_0x299acf('0x3'),'comment':'Required\x20by\x20Asterisk'},'VoiceQueueId':{'type':Sequelize[_0x299acf('0x5')],'allowNull':![]},'interface':{'type':Sequelize['STRING'],'allowNull':![],'unique':_0x299acf('0x3'),'comment':'Required\x20by\x20Asterisk'},'penalty':{'type':Sequelize[_0x299acf('0x5')](0xb),'defaultValue':0x0,'comment':'Required\x20by\x20Asterisk'},'paused':{'type':Sequelize[_0x299acf('0x5')](0xb),'defaultValue':0x0,'comment':_0x299acf('0x4')}}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js index 0291414..b73412f 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.events.js @@ -1 +1 @@ -const a688_0x3b38=['UserVoiceQueueRt','emit','addHook','setMaxListeners','update','undefined','../../mysqldb','save','exports','events'];(function(_0x434f23,_0x3b387c){const _0x44a8c9=function(_0xeb67b6){while(--_0xeb67b6){_0x434f23['push'](_0x434f23['shift']());}};_0x44a8c9(++_0x3b387c);}(a688_0x3b38,0x76));const a688_0x44a8=function(_0x434f23,_0x3b387c){_0x434f23=_0x434f23-0x0;let _0x44a8c9=a688_0x3b38[_0x434f23];return _0x44a8c9;};const _0x1df5bf=a688_0x44a8;'use strict';const EventEmitter=require(_0x1df5bf('0x1')),UserVoiceQueueRt=require(_0x1df5bf('0x8'))['db'][_0x1df5bf('0x2')],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0x1df5bf('0x5')](0x0);const events={'afterCreate':_0x1df5bf('0x9'),'afterUpdate':_0x1df5bf('0x6'),'afterDestroy':'remove'};function emitEvent(_0xeb67b6){return function(_0x10a438){const _0x56f773=a688_0x44a8;UserVoiceQueueRtEvents[_0x56f773('0x3')](_0xeb67b6+':'+_0x10a438['id'],_0x10a438),UserVoiceQueueRtEvents[_0x56f773('0x3')](_0xeb67b6,_0x10a438);};}for(const e in events){if(typeof events[e]!==_0x1df5bf('0x7')){const event=events[e];UserVoiceQueueRt[_0x1df5bf('0x4')](e,emitEvent(event));}}module[_0x1df5bf('0x0')]=UserVoiceQueueRtEvents; \ No newline at end of file +const a688_0x31fc=['save','exports','../../mysqldb','remove','setMaxListeners','addHook','events','undefined','emit','UserVoiceQueueRt'];(function(_0x486972,_0x31fc78){const _0x519e3b=function(_0x1c542b){while(--_0x1c542b){_0x486972['push'](_0x486972['shift']());}};_0x519e3b(++_0x31fc78);}(a688_0x31fc,0xdb));const a688_0x519e=function(_0x486972,_0x31fc78){_0x486972=_0x486972-0x0;let _0x519e3b=a688_0x31fc[_0x486972];return _0x519e3b;};const _0x8a731e=a688_0x519e;'use strict';const EventEmitter=require(_0x8a731e('0x7')),UserVoiceQueueRt=require(_0x8a731e('0x3'))['db'][_0x8a731e('0x0')],UserVoiceQueueRtEvents=new EventEmitter();UserVoiceQueueRtEvents[_0x8a731e('0x5')](0x0);const events={'afterCreate':_0x8a731e('0x1'),'afterUpdate':'update','afterDestroy':_0x8a731e('0x4')};function emitEvent(_0x1c542b){return function(_0xbd2572){const _0xcf476d=a688_0x519e;UserVoiceQueueRtEvents[_0xcf476d('0x9')](_0x1c542b+':'+_0xbd2572['id'],_0xbd2572),UserVoiceQueueRtEvents[_0xcf476d('0x9')](_0x1c542b,_0xbd2572);};}for(const e in events){if(typeof events[e]!==_0x8a731e('0x8')){const event=events[e];UserVoiceQueueRt[_0x8a731e('0x6')](e,emitEvent(event));}}module[_0x8a731e('0x2')]=UserVoiceQueueRtEvents; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js index a1cbf46..42a3069 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.model.js @@ -1 +1 @@ -const a689_0x5bec=['./userVoiceQueueRt.attributes','user_has_voice_queues_rt','define','UserVoiceQueueRt','exports'];(function(_0x1f35bc,_0x5bec85){const _0x1b5a96=function(_0x3393d2){while(--_0x3393d2){_0x1f35bc['push'](_0x1f35bc['shift']());}};_0x1b5a96(++_0x5bec85);}(a689_0x5bec,0x1ca));const a689_0x1b5a=function(_0x1f35bc,_0x5bec85){_0x1f35bc=_0x1f35bc-0x0;let _0x1b5a96=a689_0x5bec[_0x1f35bc];return _0x1b5a96;};const _0x13e13b=a689_0x1b5a;'use strict';const attributes=require(_0x13e13b('0x2'));module[_0x13e13b('0x1')]=function(_0x3393d2){const _0x547ac0=_0x13e13b,_0x5461a1=_0x3393d2[_0x547ac0('0x4')](_0x547ac0('0x0'),attributes,{'tableName':_0x547ac0('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x5461a1;}; \ No newline at end of file +const a689_0x357f=['user_has_voice_queues_rt','exports','define','./userVoiceQueueRt.attributes'];(function(_0x20c6ac,_0x357f00){const _0x3986a8=function(_0x3647b7){while(--_0x3647b7){_0x20c6ac['push'](_0x20c6ac['shift']());}};_0x3986a8(++_0x357f00);}(a689_0x357f,0x181));const a689_0x3986=function(_0x20c6ac,_0x357f00){_0x20c6ac=_0x20c6ac-0x0;let _0x3986a8=a689_0x357f[_0x20c6ac];return _0x3986a8;};const _0x40816a=a689_0x3986;'use strict';const attributes=require(_0x40816a('0x2'));module[_0x40816a('0x0')]=function(_0x3647b7){const _0x103c5f=_0x40816a,_0x2aa185=_0x3647b7[_0x103c5f('0x1')]('UserVoiceQueueRt',attributes,{'tableName':_0x103c5f('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2aa185;}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js index ea8af6e..39521f2 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.rpc.js @@ -1 +1 @@ -const a690_0x28b0=['rpc','stringify','error','GetVoiceQueueRtPauses','message','raw','debug','register','UserVoiceQueueRt','../../rediscache','findAll','then','options','catch','sequelize','outboundQueuePauses','../../config/logger','where'];(function(_0xfc557,_0x28b0f1){const _0x158cd6=function(_0x4dbfa8){while(--_0x4dbfa8){_0xfc557['push'](_0xfc557['shift']());}};_0x158cd6(++_0x28b0f1);}(a690_0x28b0,0x75));const a690_0x158c=function(_0xfc557,_0x28b0f1){_0xfc557=_0xfc557-0x0;let _0x158cd6=a690_0x28b0[_0xfc557];return _0x158cd6;};const _0x2507df=a690_0x158c;'use strict';const db=require('../../mysqldb')['db'],{fn,literal}=require(_0x2507df('0x5')),logger=require(_0x2507df('0x7'))(_0x2507df('0x9')),{getSocket}=require(_0x2507df('0x0')),socket=getSocket();require('./userVoiceQueueRt.socket')[_0x2507df('0x10')](socket),exports[_0x2507df('0xc')]=function(_0x4dbfa8){const _0x15ffb3=this;return new Promise(function(_0x2ea52d,_0x56d196){const _0x457f92=a690_0x158c;return db[_0x457f92('0x11')][_0x457f92('0x1')]({'raw':_0x4dbfa8[_0x457f92('0x3')]?_0x4dbfa8['options'][_0x457f92('0xe')]===undefined?!![]:![]:!![],'where':_0x4dbfa8[_0x457f92('0x3')]?_0x4dbfa8['options'][_0x457f92('0x8')]||null:null,'attributes':[[fn('COUNT',fn('IF',literal('`paused`\x20=\x201,\x201,\x20null'))),_0x457f92('0x6')]]})[_0x457f92('0x2')](function(_0x1818a6){const _0x57228d=_0x457f92;logger['info'](_0x57228d('0xc'),_0x4dbfa8),logger[_0x57228d('0xf')](_0x57228d('0xc'),_0x4dbfa8,JSON[_0x57228d('0xa')](_0x1818a6)),_0x2ea52d(_0x1818a6);})[_0x457f92('0x4')](function(_0x29fe06){const _0x2e6f23=_0x457f92;logger[_0x2e6f23('0xb')](_0x2e6f23('0xc'),_0x29fe06[_0x2e6f23('0xd')],_0x4dbfa8),_0x56d196(_0x15ffb3['error'](0x1f4,_0x29fe06[_0x2e6f23('0xd')]));});});}; \ No newline at end of file +const a690_0x571f=['../../rediscache','../../config/logger','GetVoiceQueueRtPauses','`paused`\x20=\x201,\x201,\x20null','info','raw','COUNT','error','message','findAll','stringify','UserVoiceQueueRt','./userVoiceQueueRt.socket','debug','rpc','where','options','../../mysqldb'];(function(_0x1c0478,_0x571fec){const _0xad1d4=function(_0x2e05b7){while(--_0x2e05b7){_0x1c0478['push'](_0x1c0478['shift']());}};_0xad1d4(++_0x571fec);}(a690_0x571f,0x68));const a690_0xad1d=function(_0x1c0478,_0x571fec){_0x1c0478=_0x1c0478-0x0;let _0xad1d4=a690_0x571f[_0x1c0478];return _0xad1d4;};const _0x582c4f=a690_0xad1d;'use strict';const db=require(_0x582c4f('0x3'))['db'],{fn,literal}=require('sequelize'),logger=require(_0x582c4f('0x5'))(_0x582c4f('0x0')),{getSocket}=require(_0x582c4f('0x4')),socket=getSocket();require(_0x582c4f('0x10'))['register'](socket),exports[_0x582c4f('0x6')]=function(_0x2e05b7){const _0x308caa=this;return new Promise(function(_0xdff417,_0xc0e815){const _0x50cb90=a690_0xad1d;return db[_0x50cb90('0xf')][_0x50cb90('0xd')]({'raw':_0x2e05b7['options']?_0x2e05b7['options'][_0x50cb90('0x9')]===undefined?!![]:![]:!![],'where':_0x2e05b7['options']?_0x2e05b7[_0x50cb90('0x2')][_0x50cb90('0x1')]||null:null,'attributes':[[fn(_0x50cb90('0xa'),fn('IF',literal(_0x50cb90('0x7')))),'outboundQueuePauses']]})['then'](function(_0x1eab4b){const _0x542938=_0x50cb90;logger[_0x542938('0x8')](_0x542938('0x6'),_0x2e05b7),logger[_0x542938('0x11')](_0x542938('0x6'),_0x2e05b7,JSON[_0x542938('0xe')](_0x1eab4b)),_0xdff417(_0x1eab4b);})['catch'](function(_0x1480a6){const _0x144218=_0x50cb90;logger[_0x144218('0xb')]('GetVoiceQueueRtPauses',_0x1480a6[_0x144218('0xc')],_0x2e05b7),_0xc0e815(_0x308caa[_0x144218('0xb')](0x1f4,_0x1480a6[_0x144218('0xc')]));});});}; \ No newline at end of file diff --git a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js index 95546fd..5216208 100644 --- a/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js +++ b/server/api/userVoiceQueueRt/userVoiceQueueRt.socket.js @@ -1 +1 @@ -const a691_0xfb39=['remove','./userVoiceQueueRt.events','register','update','userVoiceQueueRt:','length'];(function(_0x385836,_0xfb39b4){const _0x46735e=function(_0x27dc86){while(--_0x27dc86){_0x385836['push'](_0x385836['shift']());}};_0x46735e(++_0xfb39b4);}(a691_0xfb39,0xa5));const a691_0x4673=function(_0x385836,_0xfb39b4){_0x385836=_0x385836-0x0;let _0x46735e=a691_0xfb39[_0x385836];return _0x46735e;};const _0x5914af=a691_0x4673;'use strict';const UserVoiceQueueRtEvents=require(_0x5914af('0x4')),events=['save',_0x5914af('0x3'),_0x5914af('0x0')];function createListener(_0x27dc86,_0xb75278){return function(_0x27b401){_0xb75278['emit'](_0x27dc86,_0x27b401);};}exports[_0x5914af('0x5')]=function(_0x31befa){const _0x15b619=_0x5914af;for(let _0x2dd11d=0x0,_0x88d437=events[_0x15b619('0x2')];_0x2dd11d<_0x88d437;_0x2dd11d++){const _0x2ba21d=events[_0x2dd11d],_0x343c6f=createListener(_0x15b619('0x1')+_0x2ba21d,_0x31befa);UserVoiceQueueRtEvents['on'](_0x2ba21d,_0x343c6f);}}; \ No newline at end of file +const a691_0x4274=['save','update','remove','length','register','emit','userVoiceQueueRt:'];(function(_0x5441c5,_0x42747e){const _0x107574=function(_0x8e17a){while(--_0x8e17a){_0x5441c5['push'](_0x5441c5['shift']());}};_0x107574(++_0x42747e);}(a691_0x4274,0x161));const a691_0x1075=function(_0x5441c5,_0x42747e){_0x5441c5=_0x5441c5-0x0;let _0x107574=a691_0x4274[_0x5441c5];return _0x107574;};const _0x1bd068=a691_0x1075;'use strict';const UserVoiceQueueRtEvents=require('./userVoiceQueueRt.events'),events=[_0x1bd068('0x4'),_0x1bd068('0x6'),_0x1bd068('0x5')];function createListener(_0x8e17a,_0x29c4f7){return function(_0x14b6b6){const _0x39c9e5=a691_0x1075;_0x29c4f7[_0x39c9e5('0x2')](_0x8e17a,_0x14b6b6);};}exports[_0x1bd068('0x1')]=function(_0x12ffa1){const _0x39ea89=_0x1bd068;for(let _0x40c8ac=0x0,_0xce5bbc=events[_0x39ea89('0x0')];_0x40c8ac<_0xce5bbc;_0x40c8ac++){const _0x1bf110=events[_0x40c8ac],_0x1ad3e8=createListener(_0x39ea89('0x3')+_0x1bf110,_0x12ffa1);UserVoiceQueueRtEvents['on'](_0x1bf110,_0x1ad3e8);}}; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/index.js b/server/api/userWhatsappQueue/index.js index eac9919..1887d7f 100644 --- a/server/api/userWhatsappQueue/index.js +++ b/server/api/userWhatsappQueue/index.js @@ -1 +1 @@ -const a692_0xb76b=['express','exports'];(function(_0x3b0f0f,_0xb76bd3){const _0x14fd09=function(_0x43e11d){while(--_0x43e11d){_0x3b0f0f['push'](_0x3b0f0f['shift']());}};_0x14fd09(++_0xb76bd3);}(a692_0xb76b,0xe7));const a692_0x14fd=function(_0x3b0f0f,_0xb76bd3){_0x3b0f0f=_0x3b0f0f-0x0;let _0x14fd09=a692_0xb76b[_0x3b0f0f];return _0x14fd09;};const _0x2ba603=a692_0x14fd;'use strict';const express=require(_0x2ba603('0x1')),router=express['Router']();module[_0x2ba603('0x0')]=router; \ No newline at end of file +const a692_0x47d3=['Router','express','exports'];(function(_0x432640,_0x47d34){const _0x2af747=function(_0x62bf79){while(--_0x62bf79){_0x432640['push'](_0x432640['shift']());}};_0x2af747(++_0x47d34);}(a692_0x47d3,0x10c));const a692_0x2af7=function(_0x432640,_0x47d34){_0x432640=_0x432640-0x0;let _0x2af747=a692_0x47d3[_0x432640];return _0x2af747;};const _0x29a3d4=a692_0x2af7;'use strict';const express=require(_0x29a3d4('0x0')),router=express[_0x29a3d4('0x2')]();module[_0x29a3d4('0x1')]=router; \ No newline at end of file diff --git a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js index 4b28059..36d9143 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.attributes.js @@ -1 +1 @@ -const a693_0x2444=['sequelize','INTEGER','exports'];(function(_0x5c95b8,_0x24442d){const _0x34e61f=function(_0xbc39c4){while(--_0xbc39c4){_0x5c95b8['push'](_0x5c95b8['shift']());}};_0x34e61f(++_0x24442d);}(a693_0x2444,0x105));const a693_0x34e6=function(_0x5c95b8,_0x24442d){_0x5c95b8=_0x5c95b8-0x0;let _0x34e61f=a693_0x2444[_0x5c95b8];return _0x34e61f;};const _0x20751b=a693_0x34e6;'use strict';const Sequelize=require(_0x20751b('0x0'));module[_0x20751b('0x2')]={'penalty':{'type':Sequelize[_0x20751b('0x1')],'defaultValue':0x0}}; \ No newline at end of file +const a693_0x2807=['exports','INTEGER'];(function(_0x1451f8,_0x2807c8){const _0x26721a=function(_0x551df7){while(--_0x551df7){_0x1451f8['push'](_0x1451f8['shift']());}};_0x26721a(++_0x2807c8);}(a693_0x2807,0x70));const a693_0x2672=function(_0x1451f8,_0x2807c8){_0x1451f8=_0x1451f8-0x0;let _0x26721a=a693_0x2807[_0x1451f8];return _0x26721a;};const _0x136c2c=a693_0x2672;'use strict';const Sequelize=require('sequelize');module[_0x136c2c('0x0')]={'penalty':{'type':Sequelize[_0x136c2c('0x1')],'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 6981f87..a0db6f7 100644 --- a/server/api/userWhatsappQueue/userWhatsappQueue.model.js +++ b/server/api/userWhatsappQueue/userWhatsappQueue.model.js @@ -1 +1 @@ -const a694_0x2358=['./userWhatsappQueue.attributes','UserWhatsappQueue'];(function(_0x153d2a,_0x235872){const _0x4d4b2f=function(_0x1e8581){while(--_0x1e8581){_0x153d2a['push'](_0x153d2a['shift']());}};_0x4d4b2f(++_0x235872);}(a694_0x2358,0x174));const a694_0x4d4b=function(_0x153d2a,_0x235872){_0x153d2a=_0x153d2a-0x0;let _0x4d4b2f=a694_0x2358[_0x153d2a];return _0x4d4b2f;};const _0x2a38be=a694_0x4d4b;'use strict';const attributes=require(_0x2a38be('0x0'));module['exports']=function(_0x1e8581){const _0x4dbc4c=_0x2a38be,_0x5ef8e1=_0x1e8581['define'](_0x4dbc4c('0x1'),attributes,{'tableName':'user_has_whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x5ef8e1;}; \ No newline at end of file +const a694_0x4172=['define','user_has_whatsapp_queues','UserWhatsappQueue','exports'];(function(_0x5140b8,_0x41726d){const _0x49560b=function(_0x5a651f){while(--_0x5a651f){_0x5140b8['push'](_0x5140b8['shift']());}};_0x49560b(++_0x41726d);}(a694_0x4172,0xd8));const a694_0x4956=function(_0x5140b8,_0x41726d){_0x5140b8=_0x5140b8-0x0;let _0x49560b=a694_0x4172[_0x5140b8];return _0x49560b;};const _0x203590=a694_0x4956;'use strict';const attributes=require('./userWhatsappQueue.attributes');module[_0x203590('0x3')]=function(_0x5a651f){const _0x476741=_0x203590,_0x43549c=_0x5a651f[_0x476741('0x0')](_0x476741('0x2'),attributes,{'tableName':_0x476741('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x43549c;}; \ No newline at end of file diff --git a/server/api/variable/index.js b/server/api/variable/index.js index 9a1c67d..71f2cf8 100644 --- a/server/api/variable/index.js +++ b/server/api/variable/index.js @@ -1 +1 @@ -const a695_0x58f3=['delete','Router','express','get','../../components/auth/service','isAuthenticated','put','show','/:id','update','post','create'];(function(_0x285159,_0x58f37b){const _0x45e79d=function(_0x183ea9){while(--_0x183ea9){_0x285159['push'](_0x285159['shift']());}};_0x45e79d(++_0x58f37b);}(a695_0x58f3,0xa9));const a695_0x45e7=function(_0x285159,_0x58f37b){_0x285159=_0x285159-0x0;let _0x45e79d=a695_0x58f3[_0x285159];return _0x45e79d;};const _0x38459b=a695_0x45e7;'use strict';const express=require(_0x38459b('0x1')),router=express[_0x38459b('0x0')](),auth=require(_0x38459b('0x3')),controller=require('./variable.controller');router[_0x38459b('0x2')]('/',auth[_0x38459b('0x4')](),controller['index']),router[_0x38459b('0x2')](_0x38459b('0x7'),auth[_0x38459b('0x4')](),controller[_0x38459b('0x6')]),router[_0x38459b('0x9')]('/',auth[_0x38459b('0x4')](),controller[_0x38459b('0xa')]),router[_0x38459b('0x5')]('/:id',auth[_0x38459b('0x4')](),controller[_0x38459b('0x8')]),router[_0x38459b('0xb')](_0x38459b('0x7'),auth[_0x38459b('0x4')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a695_0x3029=['show','Router','/:id','create','isAuthenticated','get','express','../../components/auth/service','index','put','delete','./variable.controller','update','post'];(function(_0x26f5e9,_0x3029f1){const _0x1f7d31=function(_0x3d3241){while(--_0x3d3241){_0x26f5e9['push'](_0x26f5e9['shift']());}};_0x1f7d31(++_0x3029f1);}(a695_0x3029,0xbf));const a695_0x1f7d=function(_0x26f5e9,_0x3029f1){_0x26f5e9=_0x26f5e9-0x0;let _0x1f7d31=a695_0x3029[_0x26f5e9];return _0x1f7d31;};const _0x568b9f=a695_0x1f7d;'use strict';const express=require(_0x568b9f('0xb')),router=express[_0x568b9f('0x6')](),auth=require(_0x568b9f('0xc')),controller=require(_0x568b9f('0x2'));router['get']('/',auth[_0x568b9f('0x9')](),controller[_0x568b9f('0xd')]),router[_0x568b9f('0xa')](_0x568b9f('0x7'),auth[_0x568b9f('0x9')](),controller[_0x568b9f('0x5')]),router[_0x568b9f('0x4')]('/',auth[_0x568b9f('0x9')](),controller[_0x568b9f('0x8')]),router[_0x568b9f('0x0')](_0x568b9f('0x7'),auth['isAuthenticated'](),controller[_0x568b9f('0x3')]),router[_0x568b9f('0x1')]('/:id',auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/variable/variable.attributes.js b/server/api/variable/variable.attributes.js index ed029a2..b5718a4 100644 --- a/server/api/variable/variable.attributes.js +++ b/server/api/variable/variable.attributes.js @@ -1 +1 @@ -const a696_0x415a=['sequelize','STRING','name'];(function(_0x5d70b2,_0x415a35){const _0x58245a=function(_0x45a3e4){while(--_0x45a3e4){_0x5d70b2['push'](_0x5d70b2['shift']());}};_0x58245a(++_0x415a35);}(a696_0x415a,0x1eb));const a696_0x5824=function(_0x5d70b2,_0x415a35){_0x5d70b2=_0x5d70b2-0x0;let _0x58245a=a696_0x415a[_0x5d70b2];return _0x58245a;};const _0x3c3c5b=a696_0x5824;'use strict';const Sequelize=require(_0x3c3c5b('0x1'));module['exports']={'name':{'type':Sequelize[_0x3c3c5b('0x2')],'unique':_0x3c3c5b('0x0'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a696_0x144f=['exports','STRING','name'];(function(_0x3fbeb7,_0x144f75){const _0x4e35c0=function(_0x5d1f35){while(--_0x5d1f35){_0x3fbeb7['push'](_0x3fbeb7['shift']());}};_0x4e35c0(++_0x144f75);}(a696_0x144f,0x85));const a696_0x4e35=function(_0x3fbeb7,_0x144f75){_0x3fbeb7=_0x3fbeb7-0x0;let _0x4e35c0=a696_0x144f[_0x3fbeb7];return _0x4e35c0;};const _0x2c4244=a696_0x4e35;'use strict';const Sequelize=require('sequelize');module[_0x2c4244('0x2')]={'name':{'type':Sequelize[_0x2c4244('0x0')],'unique':_0x2c4244('0x1'),'allowNull':![],'validate':{'notEmpty':!![]}},'description':{'type':Sequelize[_0x2c4244('0x0')]}}; \ No newline at end of file diff --git a/server/api/variable/variable.controller.js b/server/api/variable/variable.controller.js index 6b4baaa..2fdb54f 100644 --- a/server/api/variable/variable.controller.js +++ b/server/api/variable/variable.controller.js @@ -1 +1 @@ -const a697_0x26c5=['sequelize','filters','api','sort','../../config/logger','merge','params','like','../../components/parsers/qs','filter','count','query','create','key','role','send','destroy','undefined','options','Variable','order','findAll','name','autoAssociation','findOne','intersection','user','error','body','../../mysqldb','limit','index','sendStatus','model','get','json','where','offset','rawAttributes','type','status','then','attributes','Content-Range','fields','include','pick','includeAll','Unable\x20to\x20retrieve\x20the\x20current\x20user','nolimit','length','userProfileId','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','Variables','UserProfileResource','keys','map','catch','stack','update','show','rows'];(function(_0x4036ad,_0x26c501){const _0x3dc131=function(_0x5288e8){while(--_0x5288e8){_0x4036ad['push'](_0x4036ad['shift']());}};_0x3dc131(++_0x26c501);}(a697_0x26c5,0x1f3));const a697_0x3dc1=function(_0x4036ad,_0x26c501){_0x4036ad=_0x4036ad-0x0;let _0x3dc131=a697_0x26c5[_0x4036ad];return _0x3dc131;};const _0x561b9c=a697_0x3dc1;'use strict';const _=require('lodash'),qs=require(_0x561b9c('0x5')),logger=require(_0x561b9c('0x1'))(_0x561b9c('0x3d')),db=require(_0x561b9c('0x1a'))['db'],{Op}=require(_0x561b9c('0x3b'));function respondWithResult(_0x5288e8,_0x227db4){return _0x227db4=_0x227db4||0xc8,function(_0x523908){const _0x12021f=a697_0x3dc1;if(_0x523908)return _0x5288e8[_0x12021f('0x25')](_0x227db4)[_0x12021f('0x20')](_0x523908);};}function respondWithFilteredResult(_0x3ea22a,_0x4ba2cb){return function(_0x580f08){const _0x51d255=a697_0x3dc1;if(_0x580f08){const _0x403cfb=_0x580f08[_0x51d255('0x7')],_0x52ab7c=_0x4ba2cb[_0x51d255('0x22')];let _0x25525f=_0x4ba2cb['offset']+_0x4ba2cb['limit'],_0x557e05;return _0x25525f>=_0x403cfb?(_0x25525f=_0x403cfb,_0x557e05=0xc8):_0x557e05=0xce,_0x3ea22a[_0x51d255('0x25')](_0x557e05),_0x3ea22a['set'](_0x51d255('0x28'),_0x52ab7c+'-'+_0x25525f+'/'+_0x403cfb)[_0x51d255('0x20')](_0x580f08);}return null;};}function saveUpdates(_0x1cd918){return function(_0x4eacbf){const _0x554ebd=a697_0x3dc1;if(_0x4eacbf)return _0x4eacbf[_0x554ebd('0x38')](_0x1cd918)['then'](function(_0x556dfa){return _0x556dfa;});return null;};}function removeEntity(_0x4a463c){return function(_0x2c67aa){const _0x29e616=a697_0x3dc1;if(_0x2c67aa)return _0x2c67aa['destroy']()['then'](function(){const _0xa238ff=a697_0x3dc1,_0x1d3622=_0x2c67aa[_0xa238ff('0x1f')]({'plain':!![]}),_0x296431=_0xa238ff('0x32');return db[_0xa238ff('0x33')][_0xa238ff('0xd')]({'where':{'type':_0x296431,'resourceId':_0x1d3622['id']}})['then'](function(){return _0x2c67aa;});})[_0x29e616('0x26')](function(){const _0x549b1e=_0x29e616;_0x4a463c[_0x549b1e('0x25')](0xcc)['end']();});};}function handleEntityNotFound(_0x405359){return function(_0xf65b18){const _0x2425f2=a697_0x3dc1;return!_0xf65b18&&_0x405359[_0x2425f2('0x1d')](0x194),_0xf65b18;};}function handleError(_0x12ca90,_0x285bf5){return _0x285bf5=_0x285bf5||0x1f4,function(_0x3aa396){const _0x1d5ed8=a697_0x3dc1;logger[_0x1d5ed8('0x18')](_0x3aa396[_0x1d5ed8('0x37')]),_0x3aa396[_0x1d5ed8('0x13')]&&delete _0x3aa396[_0x1d5ed8('0x13')],_0x12ca90['status'](_0x285bf5)[_0x1d5ed8('0xc')](_0x3aa396);};}exports[_0x561b9c('0x1c')]=function(_0x51399b,_0x3c7c7b){const _0x59d139=_0x561b9c;let _0x28ff63={};const _0x4d0fd4={},_0x46ac11={'count':0x0,'rows':[]},_0x590151=_['map'](db[_0x59d139('0x10')][_0x59d139('0x23')],function(_0xc0a3e3){const _0x41d7a0=_0x59d139;return{'name':_0xc0a3e3['fieldName'],'type':_0xc0a3e3[_0x41d7a0('0x24')][_0x41d7a0('0xa')]};});_0x4d0fd4[_0x59d139('0x1e')]=_[_0x59d139('0x35')](_0x590151,_0x59d139('0x13')),_0x4d0fd4[_0x59d139('0x8')]=_[_0x59d139('0x34')](_0x51399b[_0x59d139('0x8')]),_0x4d0fd4[_0x59d139('0x3c')]=_[_0x59d139('0x16')](_0x4d0fd4[_0x59d139('0x1e')],_0x4d0fd4[_0x59d139('0x8')]),_0x28ff63[_0x59d139('0x27')]=_[_0x59d139('0x16')](_0x4d0fd4[_0x59d139('0x1e')],qs['fields'](_0x51399b['query'][_0x59d139('0x29')])),_0x28ff63[_0x59d139('0x27')]=_0x28ff63[_0x59d139('0x27')][_0x59d139('0x2f')]?_0x28ff63[_0x59d139('0x27')]:_0x4d0fd4['model'];typeof _0x51399b['query'][_0x59d139('0x2e')]===_0x59d139('0xe')&&(_0x28ff63[_0x59d139('0x1b')]=qs[_0x59d139('0x1b')](_0x51399b[_0x59d139('0x8')]['limit']),_0x28ff63[_0x59d139('0x22')]=qs['offset'](_0x51399b[_0x59d139('0x8')]['offset']));_0x28ff63[_0x59d139('0x11')]=qs[_0x59d139('0x0')](_0x51399b[_0x59d139('0x8')][_0x59d139('0x0')]),_0x28ff63[_0x59d139('0x21')]=qs['filters'](_[_0x59d139('0x2b')](_0x51399b[_0x59d139('0x8')],_0x4d0fd4['filters']),_0x590151);_0x51399b[_0x59d139('0x8')]['filter']&&(_0x28ff63['where']=_['merge'](_0x28ff63[_0x59d139('0x21')],{[Op['or']]:_[_0x59d139('0x35')](_0x590151,function(_0x3237ab){const _0x5bbbe7=_0x59d139;if(_0x3237ab[_0x5bbbe7('0x24')]!=='VIRTUAL'){const _0x3e8222={};return _0x3e8222[_0x3237ab[_0x5bbbe7('0x13')]]={[Op[_0x5bbbe7('0x4')]]:'%'+_0x51399b[_0x5bbbe7('0x8')][_0x5bbbe7('0x6')]+'%'},_0x3e8222;}})}));_0x28ff63=_[_0x59d139('0x2')]({},_0x28ff63,_0x51399b[_0x59d139('0xf')]);const _0x4bdf9a={'where':_0x28ff63[_0x59d139('0x21')]};return db[_0x59d139('0x10')][_0x59d139('0x7')](_0x4bdf9a)[_0x59d139('0x26')](function(_0x46019c){const _0x5c6560=_0x59d139;return _0x46ac11[_0x5c6560('0x7')]=_0x46019c,_0x51399b[_0x5c6560('0x8')][_0x5c6560('0x2c')]&&(_0x28ff63['include']=[{'all':!![]}]),db[_0x5c6560('0x10')][_0x5c6560('0x12')](_0x28ff63);})[_0x59d139('0x26')](function(_0x458d84){const _0x38017d=_0x59d139;return _0x46ac11[_0x38017d('0x3a')]=_0x458d84,_0x46ac11;})[_0x59d139('0x26')](respondWithFilteredResult(_0x3c7c7b,_0x28ff63))[_0x59d139('0x36')](handleError(_0x3c7c7b,null));},exports[_0x561b9c('0x39')]=function(_0x270687,_0xc4158a){const _0x596dab=_0x561b9c;let _0x3591e7={'raw':!![],'where':{'id':_0x270687[_0x596dab('0x3')]['id']}};const _0x499e9f={};return _0x499e9f[_0x596dab('0x1e')]=_[_0x596dab('0x34')](db[_0x596dab('0x10')][_0x596dab('0x23')]),_0x499e9f[_0x596dab('0x8')]=_[_0x596dab('0x34')](_0x270687[_0x596dab('0x8')]),_0x499e9f[_0x596dab('0x3c')]=_[_0x596dab('0x16')](_0x499e9f[_0x596dab('0x1e')],_0x499e9f[_0x596dab('0x8')]),_0x3591e7[_0x596dab('0x27')]=_[_0x596dab('0x16')](_0x499e9f[_0x596dab('0x1e')],qs[_0x596dab('0x29')](_0x270687['query'][_0x596dab('0x29')])),_0x3591e7[_0x596dab('0x27')]=_0x3591e7[_0x596dab('0x27')]['length']?_0x3591e7[_0x596dab('0x27')]:_0x499e9f[_0x596dab('0x1e')],_0x270687[_0x596dab('0x8')][_0x596dab('0x2c')]&&(_0x3591e7[_0x596dab('0x2a')]=[{'all':!![]}]),_0x3591e7=_[_0x596dab('0x2')]({},_0x3591e7,_0x270687[_0x596dab('0xf')]),db[_0x596dab('0x10')][_0x596dab('0x15')](_0x3591e7)[_0x596dab('0x26')](handleEntityNotFound(_0xc4158a,null))[_0x596dab('0x26')](respondWithResult(_0xc4158a,null))['catch'](handleError(_0xc4158a,null));},exports['create']=function(_0x4cfd07,_0x2bcdab){const _0x886fd9=_0x561b9c;return db[_0x886fd9('0x10')][_0x886fd9('0x9')](_0x4cfd07[_0x886fd9('0x19')],{})[_0x886fd9('0x26')](function(_0x590821){const _0x1d9c60=_0x886fd9,_0x2a5e4e=_0x4cfd07[_0x1d9c60('0x17')][_0x1d9c60('0x1f')]({'plain':!![]});if(!_0x2a5e4e)throw new Error(_0x1d9c60('0x2d'));if(_0x2a5e4e[_0x1d9c60('0xb')]===_0x1d9c60('0x17')){const _0x424e8b=_0x590821['get']({'plain':!![]}),_0x27efc5='Variables';return db['UserProfileSection'][_0x1d9c60('0x15')]({'where':{'name':_0x27efc5,'userProfileId':_0x2a5e4e[_0x1d9c60('0x30')]},'raw':!![]})[_0x1d9c60('0x26')](function(_0x5cd653){const _0x46c748=_0x1d9c60;return _0x5cd653&&_0x5cd653[_0x46c748('0x14')]===0x0?db['UserProfileResource'][_0x46c748('0x9')]({'name':_0x424e8b[_0x46c748('0x13')],'resourceId':_0x424e8b['id'],'type':_0x5cd653[_0x46c748('0x13')],'sectionId':_0x5cd653['id']},{})[_0x46c748('0x26')](function(){return _0x590821;}):_0x590821;})[_0x1d9c60('0x36')](function(_0x3036eb){const _0x235e2e=_0x1d9c60;logger['error'](_0x235e2e('0x31'),_0x3036eb);throw _0x3036eb;});}return _0x590821;})['then'](respondWithResult(_0x2bcdab,0xc9))[_0x886fd9('0x36')](handleError(_0x2bcdab,null));},exports['update']=function(_0x11885e,_0x2a3831){const _0x509382=_0x561b9c;return _0x11885e['body']['id']&&delete _0x11885e[_0x509382('0x19')]['id'],db[_0x509382('0x10')][_0x509382('0x15')]({'where':{'id':_0x11885e[_0x509382('0x3')]['id']}})[_0x509382('0x26')](handleEntityNotFound(_0x2a3831,null))[_0x509382('0x26')](saveUpdates(_0x11885e[_0x509382('0x19')],null))[_0x509382('0x26')](respondWithResult(_0x2a3831,null))[_0x509382('0x36')](handleError(_0x2a3831,null));},exports['destroy']=function(_0xa60c9b,_0x4a3e3a){const _0x2ac62b=_0x561b9c;return db['Variable'][_0x2ac62b('0x15')]({'where':{'id':_0xa60c9b['params']['id']}})[_0x2ac62b('0x26')](handleEntityNotFound(_0x4a3e3a,null))['then'](removeEntity(_0x4a3e3a,null))[_0x2ac62b('0x36')](handleError(_0x4a3e3a,null));}; \ No newline at end of file +const a697_0x18e3=['Variable','catch','UserProfileResource','undefined','show','fields','map','filter','name','destroy','stack','Variables','intersection','send','includeAll','update','include','count','offset','json','../../components/parsers/qs','status','create','filters','body','attributes','fieldName','limit','Unable\x20to\x20retrieve\x20the\x20current\x20user','type','nolimit','set','like','rows','findAll','get','order','params','model','sequelize','where','pick','user','api','index','options','findOne','merge','end','UserProfileSection','userProfileId','rawAttributes','sendStatus','length','query','role','then'];(function(_0x250334,_0x18e3ae){const _0x378cff=function(_0x70afe0){while(--_0x70afe0){_0x250334['push'](_0x250334['shift']());}};_0x378cff(++_0x18e3ae);}(a697_0x18e3,0x7f));const a697_0x378c=function(_0x250334,_0x18e3ae){_0x250334=_0x250334-0x0;let _0x378cff=a697_0x18e3[_0x250334];return _0x378cff;};const _0x453099=a697_0x378c;'use strict';const _=require('lodash'),qs=require(_0x453099('0x7')),logger=require('../../config/logger')(_0x453099('0x1e')),db=require('../../mysqldb')['db'],{Op}=require(_0x453099('0x1a'));function respondWithResult(_0x70afe0,_0xb9f25d){return _0xb9f25d=_0xb9f25d||0xc8,function(_0x44857b){const _0x1269e3=a697_0x378c;if(_0x44857b)return _0x70afe0[_0x1269e3('0x8')](_0xb9f25d)[_0x1269e3('0x6')](_0x44857b);};}function respondWithFilteredResult(_0x5b6166,_0x29a16a){return function(_0x2b42b2){const _0x3faff2=a697_0x378c;if(_0x2b42b2){const _0x4d19ca=_0x2b42b2['count'],_0x27ae19=_0x29a16a[_0x3faff2('0x5')];let _0x3acaf7=_0x29a16a[_0x3faff2('0x5')]+_0x29a16a[_0x3faff2('0xe')],_0x4dfab3;return _0x3acaf7>=_0x4d19ca?(_0x3acaf7=_0x4d19ca,_0x4dfab3=0xc8):_0x4dfab3=0xce,_0x5b6166[_0x3faff2('0x8')](_0x4dfab3),_0x5b6166[_0x3faff2('0x12')]('Content-Range',_0x27ae19+'-'+_0x3acaf7+'/'+_0x4d19ca)['json'](_0x2b42b2);}return null;};}function saveUpdates(_0x53fd78){return function(_0x4934a7){const _0x2577c9=a697_0x378c;if(_0x4934a7)return _0x4934a7[_0x2577c9('0x2')](_0x53fd78)[_0x2577c9('0x2b')](function(_0x207cc3){return _0x207cc3;});return null;};}function removeEntity(_0x57f150){return function(_0x3b7b46){const _0x3ee47d=a697_0x378c;if(_0x3b7b46)return _0x3b7b46[_0x3ee47d('0x35')]()[_0x3ee47d('0x2b')](function(){const _0xcf7585=_0x3ee47d,_0x389407=_0x3b7b46[_0xcf7585('0x16')]({'plain':!![]}),_0x50f610=_0xcf7585('0x37');return db[_0xcf7585('0x2e')][_0xcf7585('0x35')]({'where':{'type':_0x50f610,'resourceId':_0x389407['id']}})[_0xcf7585('0x2b')](function(){return _0x3b7b46;});})['then'](function(){const _0x10b4a8=_0x3ee47d;_0x57f150[_0x10b4a8('0x8')](0xcc)[_0x10b4a8('0x23')]();});};}function handleEntityNotFound(_0x94c10d){return function(_0x4560e8){const _0x510981=a697_0x378c;return!_0x4560e8&&_0x94c10d[_0x510981('0x27')](0x194),_0x4560e8;};}function handleError(_0x35ab85,_0x363144){return _0x363144=_0x363144||0x1f4,function(_0x1fbcaf){const _0x20cc66=a697_0x378c;logger['error'](_0x1fbcaf[_0x20cc66('0x36')]),_0x1fbcaf[_0x20cc66('0x34')]&&delete _0x1fbcaf['name'],_0x35ab85[_0x20cc66('0x8')](_0x363144)[_0x20cc66('0x0')](_0x1fbcaf);};}exports[_0x453099('0x1f')]=function(_0x489325,_0x58a039){const _0x50dfb4=_0x453099;let _0x35e6ef={};const _0x57683a={},_0x1aaea1={'count':0x0,'rows':[]},_0x5b2a49=_[_0x50dfb4('0x32')](db['Variable'][_0x50dfb4('0x26')],function(_0x9ea392){const _0x326a37=_0x50dfb4;return{'name':_0x9ea392[_0x326a37('0xd')],'type':_0x9ea392[_0x326a37('0x10')]['key']};});_0x57683a[_0x50dfb4('0x19')]=_[_0x50dfb4('0x32')](_0x5b2a49,_0x50dfb4('0x34')),_0x57683a[_0x50dfb4('0x29')]=_['keys'](_0x489325[_0x50dfb4('0x29')]),_0x57683a[_0x50dfb4('0xa')]=_[_0x50dfb4('0x38')](_0x57683a[_0x50dfb4('0x19')],_0x57683a[_0x50dfb4('0x29')]),_0x35e6ef[_0x50dfb4('0xc')]=_['intersection'](_0x57683a[_0x50dfb4('0x19')],qs['fields'](_0x489325[_0x50dfb4('0x29')]['fields'])),_0x35e6ef['attributes']=_0x35e6ef[_0x50dfb4('0xc')][_0x50dfb4('0x28')]?_0x35e6ef['attributes']:_0x57683a['model'];typeof _0x489325['query'][_0x50dfb4('0x11')]===_0x50dfb4('0x2f')&&(_0x35e6ef[_0x50dfb4('0xe')]=qs[_0x50dfb4('0xe')](_0x489325[_0x50dfb4('0x29')][_0x50dfb4('0xe')]),_0x35e6ef[_0x50dfb4('0x5')]=qs[_0x50dfb4('0x5')](_0x489325[_0x50dfb4('0x29')][_0x50dfb4('0x5')]));_0x35e6ef[_0x50dfb4('0x17')]=qs['sort'](_0x489325['query']['sort']),_0x35e6ef[_0x50dfb4('0x1b')]=qs['filters'](_[_0x50dfb4('0x1c')](_0x489325['query'],_0x57683a[_0x50dfb4('0xa')]),_0x5b2a49);_0x489325[_0x50dfb4('0x29')][_0x50dfb4('0x33')]&&(_0x35e6ef['where']=_[_0x50dfb4('0x22')](_0x35e6ef[_0x50dfb4('0x1b')],{[Op['or']]:_[_0x50dfb4('0x32')](_0x5b2a49,function(_0x1e320d){const _0x1ffe20=_0x50dfb4;if(_0x1e320d['type']!=='VIRTUAL'){const _0x347232={};return _0x347232[_0x1e320d[_0x1ffe20('0x34')]]={[Op[_0x1ffe20('0x13')]]:'%'+_0x489325[_0x1ffe20('0x29')][_0x1ffe20('0x33')]+'%'},_0x347232;}})}));_0x35e6ef=_[_0x50dfb4('0x22')]({},_0x35e6ef,_0x489325[_0x50dfb4('0x20')]);const _0x34dac5={'where':_0x35e6ef[_0x50dfb4('0x1b')]};return db['Variable']['count'](_0x34dac5)[_0x50dfb4('0x2b')](function(_0x23d428){const _0x1808c3=_0x50dfb4;return _0x1aaea1[_0x1808c3('0x4')]=_0x23d428,_0x489325['query'][_0x1808c3('0x1')]&&(_0x35e6ef[_0x1808c3('0x3')]=[{'all':!![]}]),db[_0x1808c3('0x2c')][_0x1808c3('0x15')](_0x35e6ef);})[_0x50dfb4('0x2b')](function(_0x7c7e28){const _0x25afcc=_0x50dfb4;return _0x1aaea1[_0x25afcc('0x14')]=_0x7c7e28,_0x1aaea1;})['then'](respondWithFilteredResult(_0x58a039,_0x35e6ef))[_0x50dfb4('0x2d')](handleError(_0x58a039,null));},exports[_0x453099('0x30')]=function(_0x33018c,_0xdfa636){const _0x2fa1ea=_0x453099;let _0x45a95b={'raw':!![],'where':{'id':_0x33018c[_0x2fa1ea('0x18')]['id']}};const _0x3714a7={};return _0x3714a7['model']=_['keys'](db[_0x2fa1ea('0x2c')][_0x2fa1ea('0x26')]),_0x3714a7[_0x2fa1ea('0x29')]=_['keys'](_0x33018c['query']),_0x3714a7[_0x2fa1ea('0xa')]=_[_0x2fa1ea('0x38')](_0x3714a7[_0x2fa1ea('0x19')],_0x3714a7[_0x2fa1ea('0x29')]),_0x45a95b[_0x2fa1ea('0xc')]=_[_0x2fa1ea('0x38')](_0x3714a7[_0x2fa1ea('0x19')],qs[_0x2fa1ea('0x31')](_0x33018c['query'][_0x2fa1ea('0x31')])),_0x45a95b[_0x2fa1ea('0xc')]=_0x45a95b[_0x2fa1ea('0xc')][_0x2fa1ea('0x28')]?_0x45a95b[_0x2fa1ea('0xc')]:_0x3714a7[_0x2fa1ea('0x19')],_0x33018c[_0x2fa1ea('0x29')][_0x2fa1ea('0x1')]&&(_0x45a95b[_0x2fa1ea('0x3')]=[{'all':!![]}]),_0x45a95b=_[_0x2fa1ea('0x22')]({},_0x45a95b,_0x33018c['options']),db[_0x2fa1ea('0x2c')]['findOne'](_0x45a95b)[_0x2fa1ea('0x2b')](handleEntityNotFound(_0xdfa636,null))[_0x2fa1ea('0x2b')](respondWithResult(_0xdfa636,null))['catch'](handleError(_0xdfa636,null));},exports['create']=function(_0x4fa519,_0x21ebb8){const _0x3e2bff=_0x453099;return db[_0x3e2bff('0x2c')]['create'](_0x4fa519['body'],{})[_0x3e2bff('0x2b')](function(_0xf49636){const _0x118e18=_0x3e2bff,_0x23e151=_0x4fa519[_0x118e18('0x1d')][_0x118e18('0x16')]({'plain':!![]});if(!_0x23e151)throw new Error(_0x118e18('0xf'));if(_0x23e151[_0x118e18('0x2a')]===_0x118e18('0x1d')){const _0xe3937b=_0xf49636['get']({'plain':!![]}),_0x386bd6=_0x118e18('0x37');return db[_0x118e18('0x24')][_0x118e18('0x21')]({'where':{'name':_0x386bd6,'userProfileId':_0x23e151[_0x118e18('0x25')]},'raw':!![]})[_0x118e18('0x2b')](function(_0x45138d){const _0x59be0a=_0x118e18;return _0x45138d&&_0x45138d['autoAssociation']===0x0?db['UserProfileResource'][_0x59be0a('0x9')]({'name':_0xe3937b[_0x59be0a('0x34')],'resourceId':_0xe3937b['id'],'type':_0x45138d[_0x59be0a('0x34')],'sectionId':_0x45138d['id']},{})[_0x59be0a('0x2b')](function(){return _0xf49636;}):_0xf49636;})['catch'](function(_0x5bea40){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x5bea40);throw _0x5bea40;});}return _0xf49636;})[_0x3e2bff('0x2b')](respondWithResult(_0x21ebb8,0xc9))[_0x3e2bff('0x2d')](handleError(_0x21ebb8,null));},exports['update']=function(_0x14b5d0,_0x49677b){const _0x1bee15=_0x453099;return _0x14b5d0[_0x1bee15('0xb')]['id']&&delete _0x14b5d0[_0x1bee15('0xb')]['id'],db[_0x1bee15('0x2c')][_0x1bee15('0x21')]({'where':{'id':_0x14b5d0['params']['id']}})['then'](handleEntityNotFound(_0x49677b,null))[_0x1bee15('0x2b')](saveUpdates(_0x14b5d0[_0x1bee15('0xb')],null))[_0x1bee15('0x2b')](respondWithResult(_0x49677b,null))[_0x1bee15('0x2d')](handleError(_0x49677b,null));},exports['destroy']=function(_0x4cde0e,_0x2cec67){const _0x394980=_0x453099;return db[_0x394980('0x2c')][_0x394980('0x21')]({'where':{'id':_0x4cde0e['params']['id']}})[_0x394980('0x2b')](handleEntityNotFound(_0x2cec67,null))[_0x394980('0x2b')](removeEntity(_0x2cec67,null))['catch'](handleError(_0x2cec67,null));}; \ No newline at end of file diff --git a/server/api/variable/variable.model.js b/server/api/variable/variable.model.js index f63a346..3a24b56 100644 --- a/server/api/variable/variable.model.js +++ b/server/api/variable/variable.model.js @@ -1 +1 @@ -const a698_0x2a5d=['Variable','define','exports'];(function(_0x41fee6,_0x2a5da0){const _0x4b9e27=function(_0x1badf6){while(--_0x1badf6){_0x41fee6['push'](_0x41fee6['shift']());}};_0x4b9e27(++_0x2a5da0);}(a698_0x2a5d,0x1d0));const a698_0x4b9e=function(_0x41fee6,_0x2a5da0){_0x41fee6=_0x41fee6-0x0;let _0x4b9e27=a698_0x2a5d[_0x41fee6];return _0x4b9e27;};const _0x479cb4=a698_0x4b9e;'use strict';const attributes=require('./variable.attributes');module[_0x479cb4('0x0')]=function(_0x1badf6){const _0x4edae2=_0x479cb4,_0x29694d=_0x1badf6[_0x4edae2('0x2')](_0x4edae2('0x1'),attributes,{'tableName':'tools_variables','paranoid':![],'indexes':[],'timestamps':!![]});return _0x29694d;}; \ No newline at end of file +const a698_0x2d8c=['./variable.attributes','exports','define','tools_variables'];(function(_0x52048a,_0x2d8c9b){const _0x5eb69e=function(_0xce53b0){while(--_0xce53b0){_0x52048a['push'](_0x52048a['shift']());}};_0x5eb69e(++_0x2d8c9b);}(a698_0x2d8c,0x19d));const a698_0x5eb6=function(_0x52048a,_0x2d8c9b){_0x52048a=_0x52048a-0x0;let _0x5eb69e=a698_0x2d8c[_0x52048a];return _0x5eb69e;};const _0x406aab=a698_0x5eb6;'use strict';const attributes=require(_0x406aab('0x3'));module[_0x406aab('0x0')]=function(_0xce53b0){const _0xb78e1d=_0x406aab,_0x9f055a=_0xce53b0[_0xb78e1d('0x1')]('Variable',attributes,{'tableName':_0xb78e1d('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x9f055a;}; \ No newline at end of file diff --git a/server/api/variable/variable.rpc.js b/server/api/variable/variable.rpc.js index 671e6b8..f895f3d 100644 --- a/server/api/variable/variable.rpc.js +++ b/server/api/variable/variable.rpc.js @@ -1 +1 @@ -const a699_0x1c6b=['lodash','then','stringify','findOne','map','attributes','message','rpc','ShowVariable','include','Variable','options','catch','model','error'];(function(_0x482c55,_0x1c6b8a){const _0x463d68=function(_0x1392f3){while(--_0x1392f3){_0x482c55['push'](_0x482c55['shift']());}};_0x463d68(++_0x1c6b8a);}(a699_0x1c6b,0x149));const a699_0x463d=function(_0x482c55,_0x1c6b8a){_0x482c55=_0x482c55-0x0;let _0x463d68=a699_0x1c6b[_0x482c55];return _0x463d68;};const _0x3edc76=a699_0x463d;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x3edc76('0x8')),_=require(_0x3edc76('0x1'));exports[_0x3edc76('0x9')]=function(_0x1392f3){const _0x3cf8b2=this;return new Promise(function(_0x34f64c,_0x25fe37){const _0x53d37e=a699_0x463d;return db[_0x53d37e('0xb')][_0x53d37e('0x4')]({'raw':_0x1392f3[_0x53d37e('0xc')]?_0x1392f3['options']['raw']===undefined?!![]:![]:!![],'where':_0x1392f3[_0x53d37e('0xc')]?_0x1392f3['options']['where']||null:null,'attributes':_0x1392f3['options']?_0x1392f3[_0x53d37e('0xc')]['attributes']||null:null,'include':_0x1392f3[_0x53d37e('0xc')]?_0x1392f3[_0x53d37e('0xc')][_0x53d37e('0xa')]?_['map'](_0x1392f3['options'][_0x53d37e('0xa')],function(_0x346a66){const _0x463b9b=_0x53d37e;return{'model':db[_0x346a66['model']],'as':_0x346a66['as'],'attributes':_0x346a66[_0x463b9b('0x6')],'include':_0x346a66['include']?_[_0x463b9b('0x5')](_0x346a66[_0x463b9b('0xa')],function(_0x20e8cf){const _0x5a3980=_0x463b9b;return{'model':db[_0x20e8cf[_0x5a3980('0xe')]],'as':_0x20e8cf['as'],'attributes':_0x20e8cf[_0x5a3980('0x6')],'include':_0x20e8cf[_0x5a3980('0xa')]?_[_0x5a3980('0x5')](_0x20e8cf[_0x5a3980('0xa')],function(_0x45538f){const _0x36ff14=_0x5a3980;return{'model':db[_0x45538f[_0x36ff14('0xe')]],'as':_0x45538f['as'],'attributes':_0x45538f[_0x36ff14('0x6')]};}):[]};}):[]};}):[]:[]})[_0x53d37e('0x2')](function(_0x115aa6){const _0x1bca75=_0x53d37e;logger['info'](_0x1bca75('0x9'),_0x1392f3),logger['debug'](_0x1bca75('0x9'),_0x1392f3,JSON[_0x1bca75('0x3')](_0x115aa6)),_0x34f64c(_0x115aa6);})[_0x53d37e('0xd')](function(_0x3bbd03){const _0x15e080=_0x53d37e;logger[_0x15e080('0x0')](_0x15e080('0x9'),_0x3bbd03[_0x15e080('0x7')],_0x1392f3),_0x25fe37(_0x3cf8b2[_0x15e080('0x0')](0x1f4,_0x3bbd03[_0x15e080('0x7')]));});});}; \ No newline at end of file +const a699_0xc70f=['map','error','stringify','message','model','findOne','Variable','raw','ShowVariable','../../config/logger','include','attributes','options'];(function(_0x49dbee,_0xc70f49){const _0x2de3c5=function(_0x4e5702){while(--_0x4e5702){_0x49dbee['push'](_0x49dbee['shift']());}};_0x2de3c5(++_0xc70f49);}(a699_0xc70f,0x1dd));const a699_0x2de3=function(_0x49dbee,_0xc70f49){_0x49dbee=_0x49dbee-0x0;let _0x2de3c5=a699_0xc70f[_0x49dbee];return _0x2de3c5;};const _0x329ab9=a699_0x2de3;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x329ab9('0x0'))('rpc'),_=require('lodash');exports[_0x329ab9('0xc')]=function(_0x4e5702){const _0x1f8e74=this;return new Promise(function(_0x4a220a,_0x34aed7){const _0x48de6b=a699_0x2de3;return db[_0x48de6b('0xa')][_0x48de6b('0x9')]({'raw':_0x4e5702[_0x48de6b('0x3')]?_0x4e5702[_0x48de6b('0x3')][_0x48de6b('0xb')]===undefined?!![]:![]:!![],'where':_0x4e5702[_0x48de6b('0x3')]?_0x4e5702[_0x48de6b('0x3')]['where']||null:null,'attributes':_0x4e5702['options']?_0x4e5702[_0x48de6b('0x3')][_0x48de6b('0x2')]||null:null,'include':_0x4e5702[_0x48de6b('0x3')]?_0x4e5702[_0x48de6b('0x3')][_0x48de6b('0x1')]?_['map'](_0x4e5702[_0x48de6b('0x3')]['include'],function(_0x10fefd){const _0x3c2a50=_0x48de6b;return{'model':db[_0x10fefd[_0x3c2a50('0x8')]],'as':_0x10fefd['as'],'attributes':_0x10fefd[_0x3c2a50('0x2')],'include':_0x10fefd[_0x3c2a50('0x1')]?_[_0x3c2a50('0x4')](_0x10fefd['include'],function(_0x4938d8){const _0x9acf48=_0x3c2a50;return{'model':db[_0x4938d8[_0x9acf48('0x8')]],'as':_0x4938d8['as'],'attributes':_0x4938d8['attributes'],'include':_0x4938d8[_0x9acf48('0x1')]?_[_0x9acf48('0x4')](_0x4938d8['include'],function(_0x11d73f){const _0x4e7b5a=_0x9acf48;return{'model':db[_0x11d73f[_0x4e7b5a('0x8')]],'as':_0x11d73f['as'],'attributes':_0x11d73f['attributes']};}):[]};}):[]};}):[]:[]})['then'](function(_0x54d96c){const _0x4b9a3a=_0x48de6b;logger['info'](_0x4b9a3a('0xc'),_0x4e5702),logger['debug'](_0x4b9a3a('0xc'),_0x4e5702,JSON[_0x4b9a3a('0x6')](_0x54d96c)),_0x4a220a(_0x54d96c);})['catch'](function(_0x4af632){const _0x328db3=_0x48de6b;logger[_0x328db3('0x5')](_0x328db3('0xc'),_0x4af632[_0x328db3('0x7')],_0x4e5702),_0x34aed7(_0x1f8e74['error'](0x1f4,_0x4af632['message']));});});}; \ No newline at end of file diff --git a/server/api/version/index.js b/server/api/version/index.js index c7556d4..7b25817 100644 --- a/server/api/version/index.js +++ b/server/api/version/index.js @@ -1 +1 @@ -const a700_0x2b15=['/migrations','/restart','/pull','pull','migrations','get','/reset','restart','canUpdate','express','isAuthenticated','fetch'];(function(_0xe2b35e,_0x2b1510){const _0xefd5d5=function(_0x253364){while(--_0x253364){_0xe2b35e['push'](_0xe2b35e['shift']());}};_0xefd5d5(++_0x2b1510);}(a700_0x2b15,0xef));const a700_0xefd5=function(_0xe2b35e,_0x2b1510){_0xe2b35e=_0xe2b35e-0x0;let _0xefd5d5=a700_0x2b15[_0xe2b35e];return _0xefd5d5;};const _0x15a29f=a700_0xefd5;'use strict';const express=require(_0x15a29f('0xa')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./version.controller');router[_0x15a29f('0x6')]('/',controller['index']),router[_0x15a29f('0x6')]('/fetch',auth[_0x15a29f('0xb')](),auth[_0x15a29f('0x9')](),controller[_0x15a29f('0x0')]),router[_0x15a29f('0x6')](_0x15a29f('0x7'),auth[_0x15a29f('0xb')](),auth[_0x15a29f('0x9')](),controller['reset']),router[_0x15a29f('0x6')](_0x15a29f('0x3'),auth['isAuthenticated'](),auth[_0x15a29f('0x9')](),controller[_0x15a29f('0x4')]),router[_0x15a29f('0x6')](_0x15a29f('0x2'),auth['isAuthenticated'](),controller[_0x15a29f('0x8')]),router[_0x15a29f('0x6')](_0x15a29f('0x1'),controller[_0x15a29f('0x5')]),module['exports']=router; \ No newline at end of file +const a700_0x2b0e=['migrations','get','/migrations','Router','./version.controller','/pull','express','reset','isAuthenticated','fetch','index','pull','/restart','restart','canUpdate','/reset'];(function(_0x177d89,_0x2b0e2b){const _0x2a84d4=function(_0x3f487e){while(--_0x3f487e){_0x177d89['push'](_0x177d89['shift']());}};_0x2a84d4(++_0x2b0e2b);}(a700_0x2b0e,0x1cf));const a700_0x2a84=function(_0x177d89,_0x2b0e2b){_0x177d89=_0x177d89-0x0;let _0x2a84d4=a700_0x2b0e[_0x177d89];return _0x2a84d4;};const _0x26dc77=a700_0x2a84;'use strict';const express=require(_0x26dc77('0x7')),router=express[_0x26dc77('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x26dc77('0x5'));router[_0x26dc77('0x2')]('/',controller[_0x26dc77('0xb')]),router[_0x26dc77('0x2')]('/fetch',auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x26dc77('0xa')]),router[_0x26dc77('0x2')](_0x26dc77('0x0'),auth[_0x26dc77('0x9')](),auth['canUpdate'](),controller[_0x26dc77('0x8')]),router[_0x26dc77('0x2')](_0x26dc77('0x6'),auth[_0x26dc77('0x9')](),auth[_0x26dc77('0xf')](),controller[_0x26dc77('0xc')]),router['get'](_0x26dc77('0xd'),auth[_0x26dc77('0x9')](),controller[_0x26dc77('0xe')]),router[_0x26dc77('0x2')](_0x26dc77('0x3'),controller[_0x26dc77('0x1')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/version/version.controller.js b/server/api/version/version.controller.js index a419bfa..87bb526 100644 --- a/server/api/version/version.controller.js +++ b/server/api/version/version.controller.js @@ -1 +1 @@ -const a701_0x51a1=['FETCH_HEAD','simple-git','child_process','restart','push','migrations','latest','version','git\x20reset\x20--hard','root','update','../../config/logger','status','sequelize','.js','Migration\x20tried\x20to\x20use\x20old\x20style\x20\x22done\x22\x20callback.\x20Please\x20upgrade\x20to\x20\x22umzug\x22\x20and\x20return\x20a\x20promise\x20instead.','then','2.0.0','path','Migration','fetch','Your\x20system\x20has\x20been\x20restart\x20successfully','length','git\x20fetch','git\x20reset\x20--hard\x20FETCH_HEAD','sort','error','pm2\x20restart\x20motion\x20%s','Database\x20migrated\x20successfully\x20from\x20version\x20','join','replace','origin','\x20to\x20','Database\x20already\x20up-to-date','lodash','info','catch','getQueryInterface','json','exports','compare-versions','../../config/environment','query','--hard','npm\x20install\x20--production','readdirSync'];(function(_0x2df5a6,_0x51a182){const _0x2e5050=function(_0x569474){while(--_0x569474){_0x2df5a6['push'](_0x2df5a6['shift']());}};_0x2e5050(++_0x51a182);}(a701_0x51a1,0x1aa));const a701_0x2e50=function(_0x2df5a6,_0x51a182){_0x2df5a6=_0x2df5a6-0x0;let _0x2e5050=a701_0x51a1[_0x2df5a6];return _0x2e5050;};const _0x191907=a701_0x2e50;'use strict';const Umzug=require('umzug'),path=require(_0x191907('0x6')),fs=require('fs'),_=require(_0x191907('0x16')),compareVersions=require(_0x191907('0x1c')),exec=require(_0x191907('0x24'))['exec'],db=require('../../mysqldb')['db'],config=require(_0x191907('0x1d')),pm2=require('../../config/pm2'),logger=require(_0x191907('0x2d'))(_0x191907('0x2c')),{version:packageVersion}=require('../../../package.json'),git=require(_0x191907('0x23'))(config[_0x191907('0x2b')]),{UniqueConstraintError}=require(_0x191907('0x1')),{readBuildInfo}=require('../../utils/build-info');async function index(_0x569474,_0x539358){const _0x4d257c=_0x191907,_0xaecce3=await readBuildInfo(),_0x1599dd={'current':packageVersion,'phonebar':0x2,..._0xaecce3};return _0x569474['query']&&_0x569474[_0x4d257c('0x1e')][_0x4d257c('0x28')]?git[_0x4d257c('0x8')]()['tags'](function(_0x337e98,_0x47ef4f){const _0x485ab8=_0x4d257c;return _0x1599dd[_0x485ab8('0x28')]=(_0x337e98?packageVersion:_0x47ef4f[_0x485ab8('0x28')])||_0x485ab8('0x5'),_0x539358[_0x485ab8('0x0')](0xc8)['json'](_0x1599dd);}):_0x539358['status'](0xc8)[_0x4d257c('0x1a')](_0x1599dd);}function fetch(_0x49ccdc,_0x262274){const _0x25771c=_0x191907;return git[_0x25771c('0x8')]([_0x25771c('0x13'),'master'],function(_0x8afb47){const _0xb54127=_0x25771c;if(_0x8afb47)return logger[_0xb54127('0xe')](_0x8afb47),_0x262274[_0xb54127('0x0')](0x1f4)[_0xb54127('0x1a')](_0x8afb47);return logger[_0xb54127('0x17')](_0xb54127('0xb')),_0x262274[_0xb54127('0x0')](0xc8)[_0xb54127('0x1a')]({'output':'git\x20fetch\x20origin\x20master'});});}function reset(_0x4afd13,_0x208c8c){const _0x4f5953=_0x191907;return git['reset']([_0x4f5953('0x1f'),_0x4f5953('0x22')],function(_0x471b00){const _0x409d21=_0x4f5953;if(_0x471b00)return logger[_0x409d21('0xe')](_0x471b00),_0x208c8c[_0x409d21('0x0')](0x1f4)['json'](_0x471b00);return logger[_0x409d21('0x17')](_0x409d21('0xc')),_0x208c8c[_0x409d21('0x0')](0xc8)[_0x409d21('0x1a')]({'output':_0x409d21('0x2a')});});}function pull(_0x5f5f1,_0x199289){const _0x154ae1=_0x191907;exec(_0x154ae1('0x20'),function(_0x51c25e,_0x1322a8,_0xdd2687){const _0x56138b=_0x154ae1;logger[_0x56138b('0x17')](_0x1322a8),logger['info'](_0xdd2687);if(_0x51c25e)return logger['error'](_0x51c25e),_0x199289['status'](0x1f4)[_0x56138b('0x1a')](_0x51c25e);return _0x199289[_0x56138b('0x0')](0xc8)[_0x56138b('0x1a')]({'output':_0x1322a8});});}function restart(_0x4cccd5,_0x7f8bcc){const _0x29ea18=_0x191907;return pm2[_0x29ea18('0x25')]('motion2')['then'](function(_0x30b249){const _0x2647fb=_0x29ea18;return logger['info'](_0x2647fb('0xf'),_0x30b249),_0x7f8bcc[_0x2647fb('0x0')](0xc8)[_0x2647fb('0x1a')]({'output':_0x2647fb('0x9')});})[_0x29ea18('0x18')](function(_0x26b368){const _0xa4e075=_0x29ea18;return logger[_0xa4e075('0xe')](_0x26b368),_0x7f8bcc['status'](0x1f4)['json'](_0x26b368);});}function migrations(_0x2f6cab,_0x5dfce0){const _0x36b2b1=_0x191907,_0x11a9e7=fs[_0x36b2b1('0x21')](path[_0x36b2b1('0x11')](config['root'],_0x36b2b1('0x27'))),_0x192c96=[];for(let _0x40f0b5=0x0;_0x40f0b5<_0x11a9e7[_0x36b2b1('0xa')];_0x40f0b5++){const _0x454af9=_0x11a9e7[_0x40f0b5][_0x36b2b1('0x12')]('.js','');compareVersions(packageVersion,_0x454af9)===-0x1&&_0x192c96[_0x36b2b1('0x26')](_0x454af9);}if(_0x192c96[_0x36b2b1('0xa')]){const _0x31617e=_0x192c96[_0x36b2b1('0xd')](compareVersions),_0x2e5f21=new Umzug({'storage':_0x36b2b1('0x1'),'storageOptions':{'model':db[_0x36b2b1('0x7')],'modelName':'Migration','columnName':_0x36b2b1('0x29')},'migrations':{'params':[db[_0x36b2b1('0x1')][_0x36b2b1('0x19')](),db[_0x36b2b1('0x1')]['constructor'],function(){const _0x5eec2f=_0x36b2b1;throw new Error(_0x5eec2f('0x3'));}],'path':path[_0x36b2b1('0x11')](config['root'],_0x36b2b1('0x27')),'pattern':/\.js$/}});_0x2e5f21['up']({'migrations':_['map'](_0x31617e,function(_0x3e1b9a){const _0x74cd6c=_0x36b2b1;return _0x3e1b9a+_0x74cd6c('0x2');})})[_0x36b2b1('0x4')](function(){const _0x44ded8=_0x36b2b1;return _0x5dfce0[_0x44ded8('0x0')](0xc8)['json']({'output':_0x44ded8('0x10')+packageVersion+_0x44ded8('0x14')+_['last'](_0x31617e),'migrations':_[_0x44ded8('0x11')](_0x31617e)});})[_0x36b2b1('0x18')](function(_0xa4d5af){const _0x126f74=_0x36b2b1;return _0xa4d5af instanceof UniqueConstraintError?_0x5dfce0[_0x126f74('0x0')](0xc8)[_0x126f74('0x1a')]({'output':_0x126f74('0x15')}):_0x5dfce0['status'](0x1f4)[_0x126f74('0x1a')](_0xa4d5af);});}else return _0x5dfce0[_0x36b2b1('0x0')](0xc8)[_0x36b2b1('0x1a')]({'output':'Database\x20already\x20up-to-date'});}module[_0x191907('0x1b')]={'index':index,'fetch':fetch,'migrations':migrations,'pull':pull,'reset':reset,'restart':restart}; \ No newline at end of file +const a701_0x4e10=['Migration\x20tried\x20to\x20use\x20old\x20style\x20\x22done\x22\x20callback.\x20Please\x20upgrade\x20to\x20\x22umzug\x22\x20and\x20return\x20a\x20promise\x20instead.','compare-versions','git\x20fetch','Database\x20migrated\x20successfully\x20from\x20version\x20','push','reset','exec','git\x20reset\x20--hard','git\x20fetch\x20origin\x20master','catch','Migration','master','../../mysqldb','path','last','latest','fetch','Database\x20already\x20up-to-date','sequelize','join','child_process','--hard','version','Your\x20system\x20has\x20been\x20restart\x20successfully','error','2.0.0','../../../package.json','\x20to\x20','json','root','origin','umzug','motion2','simple-git','sort','restart','info','.js','pm2\x20restart\x20motion\x20%s','query','length','../../utils/build-info','constructor','FETCH_HEAD','npm\x20install\x20--production','then','../../config/environment','migrations','git\x20reset\x20--hard\x20FETCH_HEAD','status'];(function(_0x4535c3,_0x4e10d9){const _0x2bb45c=function(_0x315c5b){while(--_0x315c5b){_0x4535c3['push'](_0x4535c3['shift']());}};_0x2bb45c(++_0x4e10d9);}(a701_0x4e10,0xce));const a701_0x2bb4=function(_0x4535c3,_0x4e10d9){_0x4535c3=_0x4535c3-0x0;let _0x2bb45c=a701_0x4e10[_0x4535c3];return _0x2bb45c;};const _0x1556a8=a701_0x2bb4;'use strict';const Umzug=require(_0x1556a8('0x19')),path=require(_0x1556a8('0x7')),fs=require('fs'),_=require('lodash'),compareVersions=require(_0x1556a8('0x2d')),exec=require(_0x1556a8('0xe'))[_0x1556a8('0x0')],db=require(_0x1556a8('0x6'))['db'],config=require(_0x1556a8('0x28')),pm2=require('../../config/pm2'),logger=require('../../config/logger')('update'),{version:packageVersion}=require(_0x1556a8('0x14')),git=require(_0x1556a8('0x1b'))(config['root']),{UniqueConstraintError}=require(_0x1556a8('0xc')),{readBuildInfo}=require(_0x1556a8('0x23'));async function index(_0x315c5b,_0x33e0d1){const _0x28b4a6=_0x1556a8,_0x1182f5=await readBuildInfo(),_0x57322b={'current':packageVersion,'phonebar':0x2,..._0x1182f5};return _0x315c5b['query']&&_0x315c5b[_0x28b4a6('0x21')]['latest']?git[_0x28b4a6('0xa')]()['tags'](function(_0x232bb8,_0x55f1c1){const _0x29450b=_0x28b4a6;return _0x57322b['latest']=(_0x232bb8?packageVersion:_0x55f1c1[_0x29450b('0x9')])||_0x29450b('0x13'),_0x33e0d1[_0x29450b('0x2b')](0xc8)[_0x29450b('0x16')](_0x57322b);}):_0x33e0d1[_0x28b4a6('0x2b')](0xc8)['json'](_0x57322b);}function fetch(_0x5ed244,_0x5a01e2){const _0x483db1=_0x1556a8;return git[_0x483db1('0xa')]([_0x483db1('0x18'),_0x483db1('0x5')],function(_0x422d58){const _0x583687=_0x483db1;if(_0x422d58)return logger['error'](_0x422d58),_0x5a01e2[_0x583687('0x2b')](0x1f4)[_0x583687('0x16')](_0x422d58);return logger['info'](_0x583687('0x2e')),_0x5a01e2[_0x583687('0x2b')](0xc8)[_0x583687('0x16')]({'output':_0x583687('0x2')});});}function reset(_0xc5cf76,_0xc53bbb){const _0x5d0034=_0x1556a8;return git[_0x5d0034('0x31')]([_0x5d0034('0xf'),_0x5d0034('0x25')],function(_0x3a72ec){const _0x1fa6aa=_0x5d0034;if(_0x3a72ec)return logger[_0x1fa6aa('0x12')](_0x3a72ec),_0xc53bbb[_0x1fa6aa('0x2b')](0x1f4)['json'](_0x3a72ec);return logger[_0x1fa6aa('0x1e')](_0x1fa6aa('0x2a')),_0xc53bbb[_0x1fa6aa('0x2b')](0xc8)['json']({'output':_0x1fa6aa('0x1')});});}function pull(_0x30e87a,_0x173f69){const _0x31b9c6=_0x1556a8;exec(_0x31b9c6('0x26'),function(_0x248e46,_0x1c5593,_0x41cfd2){const _0x36d212=_0x31b9c6;logger[_0x36d212('0x1e')](_0x1c5593),logger[_0x36d212('0x1e')](_0x41cfd2);if(_0x248e46)return logger[_0x36d212('0x12')](_0x248e46),_0x173f69[_0x36d212('0x2b')](0x1f4)[_0x36d212('0x16')](_0x248e46);return _0x173f69['status'](0xc8)[_0x36d212('0x16')]({'output':_0x1c5593});});}function restart(_0x120882,_0x1dbe78){const _0x565e62=_0x1556a8;return pm2[_0x565e62('0x1d')](_0x565e62('0x1a'))[_0x565e62('0x27')](function(_0x1266cc){const _0x2771f4=_0x565e62;return logger[_0x2771f4('0x1e')](_0x2771f4('0x20'),_0x1266cc),_0x1dbe78['status'](0xc8)[_0x2771f4('0x16')]({'output':_0x2771f4('0x11')});})[_0x565e62('0x3')](function(_0x25679d){const _0x293a1f=_0x565e62;return logger[_0x293a1f('0x12')](_0x25679d),_0x1dbe78[_0x293a1f('0x2b')](0x1f4)[_0x293a1f('0x16')](_0x25679d);});}function migrations(_0x5c1487,_0x2a1cf1){const _0x18ea3b=_0x1556a8,_0x2ba786=fs['readdirSync'](path['join'](config['root'],_0x18ea3b('0x29'))),_0x344da4=[];for(let _0x42e0ad=0x0;_0x42e0ad<_0x2ba786['length'];_0x42e0ad++){const _0x6c9f10=_0x2ba786[_0x42e0ad]['replace'](_0x18ea3b('0x1f'),'');compareVersions(packageVersion,_0x6c9f10)===-0x1&&_0x344da4[_0x18ea3b('0x30')](_0x6c9f10);}if(_0x344da4[_0x18ea3b('0x22')]){const _0x29ab5e=_0x344da4[_0x18ea3b('0x1c')](compareVersions),_0x116e34=new Umzug({'storage':_0x18ea3b('0xc'),'storageOptions':{'model':db[_0x18ea3b('0x4')],'modelName':_0x18ea3b('0x4'),'columnName':_0x18ea3b('0x10')},'migrations':{'params':[db[_0x18ea3b('0xc')]['getQueryInterface'](),db[_0x18ea3b('0xc')][_0x18ea3b('0x24')],function(){const _0x1b1ca2=_0x18ea3b;throw new Error(_0x1b1ca2('0x2c'));}],'path':path[_0x18ea3b('0xd')](config[_0x18ea3b('0x17')],'migrations'),'pattern':/\.js$/}});_0x116e34['up']({'migrations':_['map'](_0x29ab5e,function(_0x1961fb){const _0xb01b31=_0x18ea3b;return _0x1961fb+_0xb01b31('0x1f');})})['then'](function(){const _0x29d1fe=_0x18ea3b;return _0x2a1cf1[_0x29d1fe('0x2b')](0xc8)[_0x29d1fe('0x16')]({'output':_0x29d1fe('0x2f')+packageVersion+_0x29d1fe('0x15')+_[_0x29d1fe('0x8')](_0x29ab5e),'migrations':_[_0x29d1fe('0xd')](_0x29ab5e)});})[_0x18ea3b('0x3')](function(_0x457846){const _0x23a9dd=_0x18ea3b;return _0x457846 instanceof UniqueConstraintError?_0x2a1cf1['status'](0xc8)['json']({'output':'Database\x20already\x20up-to-date'}):_0x2a1cf1[_0x23a9dd('0x2b')](0x1f4)[_0x23a9dd('0x16')](_0x457846);});}else return _0x2a1cf1[_0x18ea3b('0x2b')](0xc8)[_0x18ea3b('0x16')]({'output':_0x18ea3b('0xb')});}module['exports']={'index':index,'fetch':fetch,'migrations':migrations,'pull':pull,'reset':reset,'restart':restart}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/index.js b/server/api/voiceAgentReport/index.js index 878afc1..a7675fd 100644 --- a/server/api/voiceAgentReport/index.js +++ b/server/api/voiceAgentReport/index.js @@ -1 +1 @@ -const a702_0x4e82=['index','get','destroy','put','isAuthenticated','Router','show','create','post','/:id','../../components/auth/service','describe','update'];(function(_0x1c8020,_0x4e8294){const _0x483ca7=function(_0x599974){while(--_0x599974){_0x1c8020['push'](_0x1c8020['shift']());}};_0x483ca7(++_0x4e8294);}(a702_0x4e82,0x164));const a702_0x483c=function(_0x1c8020,_0x4e8294){_0x1c8020=_0x1c8020-0x0;let _0x483ca7=a702_0x4e82[_0x1c8020];return _0x483ca7;};const _0x1a1513=a702_0x483c;'use strict';const express=require('express'),router=express[_0x1a1513('0x0')](),auth=require(_0x1a1513('0x5')),controller=require('./voiceAgentReport.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x1a1513('0x8')]),router[_0x1a1513('0x9')]('/describe',auth[_0x1a1513('0xc')](),controller[_0x1a1513('0x6')]),router['get'](_0x1a1513('0x4'),auth[_0x1a1513('0xc')](),controller[_0x1a1513('0x1')]),router[_0x1a1513('0x3')]('/',auth['isAuthenticated'](),controller[_0x1a1513('0x2')]),router[_0x1a1513('0xb')]('/:id',auth[_0x1a1513('0xc')](),controller[_0x1a1513('0x7')]),router['delete'](_0x1a1513('0x4'),auth[_0x1a1513('0xc')](),controller[_0x1a1513('0xa')]),module['exports']=router; \ No newline at end of file +const a702_0x302a=['index','get','../../components/auth/service','express','show','describe','isAuthenticated','/:id','delete','put','create','destroy','exports','Router'];(function(_0x346c8d,_0x302a9a){const _0x23c136=function(_0xd01870){while(--_0xd01870){_0x346c8d['push'](_0x346c8d['shift']());}};_0x23c136(++_0x302a9a);}(a702_0x302a,0x112));const a702_0x23c1=function(_0x346c8d,_0x302a9a){_0x346c8d=_0x346c8d-0x0;let _0x23c136=a702_0x302a[_0x346c8d];return _0x23c136;};const _0x57c19c=a702_0x23c1;'use strict';const express=require(_0x57c19c('0x9')),router=express[_0x57c19c('0x5')](),auth=require(_0x57c19c('0x8')),controller=require('./voiceAgentReport.controller');router[_0x57c19c('0x7')]('/',auth['isAuthenticated'](),controller[_0x57c19c('0x6')]),router['get']('/describe',auth[_0x57c19c('0xc')](),controller[_0x57c19c('0xb')]),router[_0x57c19c('0x7')](_0x57c19c('0xd'),auth['isAuthenticated'](),controller[_0x57c19c('0xa')]),router['post']('/',auth[_0x57c19c('0xc')](),controller[_0x57c19c('0x2')]),router[_0x57c19c('0x1')](_0x57c19c('0xd'),auth[_0x57c19c('0xc')](),controller['update']),router[_0x57c19c('0x0')](_0x57c19c('0xd'),auth[_0x57c19c('0xc')](),controller[_0x57c19c('0x3')]),module[_0x57c19c('0x4')]=router; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.attributes.js b/server/api/voiceAgentReport/voiceAgentReport.attributes.js index 6e65a64..3c7cf84 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.attributes.js +++ b/server/api/voiceAgentReport/voiceAgentReport.attributes.js @@ -1 +1 @@ -const a703_0x32b7=['INTEGER','FORWARD,\x20BLIND,\x20ATTENDED','sequelize','DATE','exports','BOOLEAN','STRING'];(function(_0x1be0f1,_0x32b7ae){const _0xe85aee=function(_0x71f443){while(--_0x71f443){_0x1be0f1['push'](_0x1be0f1['shift']());}};_0xe85aee(++_0x32b7ae);}(a703_0x32b7,0xd6));const a703_0xe85a=function(_0x1be0f1,_0x32b7ae){_0x1be0f1=_0x1be0f1-0x0;let _0xe85aee=a703_0x32b7[_0x1be0f1];return _0xe85aee;};const _0x13b8d5=a703_0xe85a;'use strict';const Sequelize=require(_0x13b8d5('0x5'));module[_0x13b8d5('0x0')]={'type':{'type':Sequelize[_0x13b8d5('0x2')]},'uniqueid':{'type':Sequelize[_0x13b8d5('0x2')]},'calleridnum':{'type':Sequelize[_0x13b8d5('0x2')]},'calleridname':{'type':Sequelize[_0x13b8d5('0x2')]},'queue':{'type':Sequelize[_0x13b8d5('0x2')]},'interface':{'type':Sequelize['STRING']},'membername':{'type':Sequelize['STRING']},'agentcalledAt':{'type':Sequelize[_0x13b8d5('0x6')]},'agentconnectAt':{'type':Sequelize[_0x13b8d5('0x6')]},'agentcompleteAt':{'type':Sequelize[_0x13b8d5('0x6')]},'agentringnoanswerAt':{'type':Sequelize[_0x13b8d5('0x6')]},'agentdumpAt':{'type':Sequelize[_0x13b8d5('0x6')]},'holdtime':{'type':Sequelize[_0x13b8d5('0x3')]},'agentcomplete':{'type':Sequelize[_0x13b8d5('0x1')],'defaultValue':![]},'agentringnoanswer':{'type':Sequelize[_0x13b8d5('0x1')],'defaultValue':![]},'agentdump':{'type':Sequelize[_0x13b8d5('0x1')],'defaultValue':![]},'talktime':{'type':Sequelize[_0x13b8d5('0x3')]},'agentacw':{'type':Sequelize[_0x13b8d5('0x1')],'defaultValue':![]},'acwtime':{'type':Sequelize[_0x13b8d5('0x3')]},'reason':{'type':Sequelize[_0x13b8d5('0x2')]},'lastevent':{'type':Sequelize[_0x13b8d5('0x2')]},'channel':{'type':Sequelize[_0x13b8d5('0x2')]},'channelstate':{'type':Sequelize['INTEGER']},'channelstatedesc':{'type':Sequelize[_0x13b8d5('0x2')]},'connectedlinenum':{'type':Sequelize[_0x13b8d5('0x2')]},'connectedlinename':{'type':Sequelize['STRING']},'language':{'type':Sequelize[_0x13b8d5('0x2')]},'accountcode':{'type':Sequelize[_0x13b8d5('0x2')]},'context':{'type':Sequelize[_0x13b8d5('0x2')]},'exten':{'type':Sequelize[_0x13b8d5('0x2')]},'priority':{'type':Sequelize[_0x13b8d5('0x2')]},'destchannel':{'type':Sequelize[_0x13b8d5('0x2')]},'destchannelstate':{'type':Sequelize[_0x13b8d5('0x3')]},'destchannelstatedesc':{'type':Sequelize[_0x13b8d5('0x2')]},'destcalleridnum':{'type':Sequelize[_0x13b8d5('0x2')]},'destcalleridname':{'type':Sequelize[_0x13b8d5('0x2')]},'destconnectedlinenum':{'type':Sequelize[_0x13b8d5('0x2')]},'destconnectedlinename':{'type':Sequelize[_0x13b8d5('0x2')]},'destlanguage':{'type':Sequelize['STRING']},'destaccountcode':{'type':Sequelize[_0x13b8d5('0x2')]},'destcontext':{'type':Sequelize[_0x13b8d5('0x2')]},'destexten':{'type':Sequelize[_0x13b8d5('0x2')]},'destpriority':{'type':Sequelize['STRING']},'destuniqueid':{'type':Sequelize[_0x13b8d5('0x2')]},'answeredelsewheredestinationuniqueid':{'type':Sequelize[_0x13b8d5('0x2')]},'answeredelsewheremembername':{'type':Sequelize[_0x13b8d5('0x2')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x13b8d5('0x2')],'comment':_0x13b8d5('0x4')},'transferexten':{'type':Sequelize[_0x13b8d5('0x2')]},'transferuniqueid':{'type':Sequelize[_0x13b8d5('0x2')]},'agententerreason':{'type':Sequelize['INTEGER'],'defaultValue':0x0}}; \ No newline at end of file +const a703_0x1a9c=['STRING','BOOLEAN','DATE','sequelize','INTEGER'];(function(_0x2ad35b,_0x1a9c28){const _0x188a40=function(_0xbd103d){while(--_0xbd103d){_0x2ad35b['push'](_0x2ad35b['shift']());}};_0x188a40(++_0x1a9c28);}(a703_0x1a9c,0x1f4));const a703_0x188a=function(_0x2ad35b,_0x1a9c28){_0x2ad35b=_0x2ad35b-0x0;let _0x188a40=a703_0x1a9c[_0x2ad35b];return _0x188a40;};const _0x301600=a703_0x188a;'use strict';const Sequelize=require(_0x301600('0x3'));module['exports']={'type':{'type':Sequelize[_0x301600('0x0')]},'uniqueid':{'type':Sequelize[_0x301600('0x0')]},'calleridnum':{'type':Sequelize[_0x301600('0x0')]},'calleridname':{'type':Sequelize[_0x301600('0x0')]},'queue':{'type':Sequelize[_0x301600('0x0')]},'interface':{'type':Sequelize[_0x301600('0x0')]},'membername':{'type':Sequelize['STRING']},'agentcalledAt':{'type':Sequelize[_0x301600('0x2')]},'agentconnectAt':{'type':Sequelize[_0x301600('0x2')]},'agentcompleteAt':{'type':Sequelize[_0x301600('0x2')]},'agentringnoanswerAt':{'type':Sequelize[_0x301600('0x2')]},'agentdumpAt':{'type':Sequelize['DATE']},'holdtime':{'type':Sequelize[_0x301600('0x4')]},'agentcomplete':{'type':Sequelize[_0x301600('0x1')],'defaultValue':![]},'agentringnoanswer':{'type':Sequelize[_0x301600('0x1')],'defaultValue':![]},'agentdump':{'type':Sequelize[_0x301600('0x1')],'defaultValue':![]},'talktime':{'type':Sequelize[_0x301600('0x4')]},'agentacw':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'acwtime':{'type':Sequelize[_0x301600('0x4')]},'reason':{'type':Sequelize[_0x301600('0x0')]},'lastevent':{'type':Sequelize[_0x301600('0x0')]},'channel':{'type':Sequelize['STRING']},'channelstate':{'type':Sequelize[_0x301600('0x4')]},'channelstatedesc':{'type':Sequelize[_0x301600('0x0')]},'connectedlinenum':{'type':Sequelize[_0x301600('0x0')]},'connectedlinename':{'type':Sequelize[_0x301600('0x0')]},'language':{'type':Sequelize[_0x301600('0x0')]},'accountcode':{'type':Sequelize[_0x301600('0x0')]},'context':{'type':Sequelize[_0x301600('0x0')]},'exten':{'type':Sequelize[_0x301600('0x0')]},'priority':{'type':Sequelize[_0x301600('0x0')]},'destchannel':{'type':Sequelize[_0x301600('0x0')]},'destchannelstate':{'type':Sequelize['INTEGER']},'destchannelstatedesc':{'type':Sequelize['STRING']},'destcalleridnum':{'type':Sequelize['STRING']},'destcalleridname':{'type':Sequelize[_0x301600('0x0')]},'destconnectedlinenum':{'type':Sequelize['STRING']},'destconnectedlinename':{'type':Sequelize[_0x301600('0x0')]},'destlanguage':{'type':Sequelize[_0x301600('0x0')]},'destaccountcode':{'type':Sequelize[_0x301600('0x0')]},'destcontext':{'type':Sequelize['STRING']},'destexten':{'type':Sequelize[_0x301600('0x0')]},'destpriority':{'type':Sequelize[_0x301600('0x0')]},'destuniqueid':{'type':Sequelize[_0x301600('0x0')]},'answeredelsewheredestinationuniqueid':{'type':Sequelize[_0x301600('0x0')]},'answeredelsewheremembername':{'type':Sequelize[_0x301600('0x0')]},'transfer':{'type':Sequelize[_0x301600('0x1')],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x301600('0x0')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize[_0x301600('0x0')]},'transferuniqueid':{'type':Sequelize['STRING']},'agententerreason':{'type':Sequelize[_0x301600('0x4')],'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 0a7860b..4bb01c2 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.controller.js +++ b/server/api/voiceAgentReport/voiceAgentReport.controller.js @@ -1 +1 @@ -const a704_0x3266=['undefined','query','error','show','create','type','update','keys','findOne','sort','limit','pick','end','attributes','lodash','offset','order','filter','VIRTUAL','catch','rawAttributes','index','fields','map','findAll','then','status','../../components/parsers/qs','describe','VoiceAgentReport','../../config/logger','destroy','api','json','stack','merge','options','length','sequelize','sendStatus','where','model','name','filters','body','intersection','count','include','../../mysqldb','includeAll','like','params','fieldName'];(function(_0x326cae,_0x3266dc){const _0x4e2ddb=function(_0x4694c4){while(--_0x4694c4){_0x326cae['push'](_0x326cae['shift']());}};_0x4e2ddb(++_0x3266dc);}(a704_0x3266,0x13c));const a704_0x4e2d=function(_0x326cae,_0x3266dc){_0x326cae=_0x326cae-0x0;let _0x4e2ddb=a704_0x3266[_0x326cae];return _0x4e2ddb;};const _0x3cc6ac=a704_0x4e2d;'use strict';const _=require(_0x3cc6ac('0x10')),qs=require(_0x3cc6ac('0x1d')),logger=require(_0x3cc6ac('0x20'))(_0x3cc6ac('0x22')),db=require(_0x3cc6ac('0x32'))['db'],{Op}=require(_0x3cc6ac('0x28'));function respondWithResult(_0x4694c4,_0x798ad1){return _0x798ad1=_0x798ad1||0xc8,function(_0x50246c){const _0x43ba7d=a704_0x4e2d;if(_0x50246c)return _0x4694c4[_0x43ba7d('0x1c')](_0x798ad1)[_0x43ba7d('0x23')](_0x50246c);};}function respondWithFilteredResult(_0x434594,_0x1aa1d2){return function(_0x3f1302){const _0x4e82a1=a704_0x4e2d;if(_0x3f1302){const _0x5baea3=_0x3f1302[_0x4e82a1('0x30')],_0x3cf823=_0x1aa1d2[_0x4e82a1('0x11')];let _0x319faa=_0x1aa1d2['offset']+_0x1aa1d2[_0x4e82a1('0xc')],_0x2b96ad;return _0x319faa>=_0x5baea3?(_0x319faa=_0x5baea3,_0x2b96ad=0xc8):_0x2b96ad=0xce,_0x434594[_0x4e82a1('0x1c')](_0x2b96ad),_0x434594['set']('Content-Range',_0x3cf823+'-'+_0x319faa+'/'+_0x5baea3)[_0x4e82a1('0x23')](_0x3f1302);}return null;};}function saveUpdates(_0x1f287e){return function(_0x284f3d){const _0x460172=a704_0x4e2d;if(_0x284f3d)return _0x284f3d[_0x460172('0x8')](_0x1f287e)[_0x460172('0x1b')](function(_0x150182){return _0x150182;});return null;};}function removeEntity(_0xf78eaa){return function(_0x2061da){const _0x46000e=a704_0x4e2d;if(_0x2061da)return _0x2061da['destroy']()[_0x46000e('0x1b')](function(){const _0x24901b=_0x46000e;_0xf78eaa[_0x24901b('0x1c')](0xcc)[_0x24901b('0xe')]();});};}function handleEntityNotFound(_0x2509d4){return function(_0x6a8169){const _0x4aa0c8=a704_0x4e2d;return!_0x6a8169&&_0x2509d4[_0x4aa0c8('0x29')](0x194),_0x6a8169;};}function handleError(_0x1a95e2,_0x1ad4b7){return _0x1ad4b7=_0x1ad4b7||0x1f4,function(_0x578f75){const _0x3eb63c=a704_0x4e2d;logger[_0x3eb63c('0x4')](_0x578f75[_0x3eb63c('0x24')]),_0x578f75[_0x3eb63c('0x2c')]&&delete _0x578f75['name'],_0x1a95e2['status'](_0x1ad4b7)['send'](_0x578f75);};}exports[_0x3cc6ac('0x17')]=function(_0x3437c4,_0x2e088e){const _0x458496=_0x3cc6ac;let _0x2151ad={};const _0x54c24b={},_0x4a99df={'count':0x0,'rows':[]},_0x370ed=_[_0x458496('0x19')](db[_0x458496('0x1f')][_0x458496('0x16')],function(_0x509e4b){const _0x2a037a=_0x458496;return{'name':_0x509e4b[_0x2a037a('0x1')],'type':_0x509e4b[_0x2a037a('0x7')]['key']};});_0x54c24b[_0x458496('0x2b')]=_['map'](_0x370ed,_0x458496('0x2c')),_0x54c24b[_0x458496('0x3')]=_[_0x458496('0x9')](_0x3437c4['query']),_0x54c24b[_0x458496('0x2d')]=_[_0x458496('0x2f')](_0x54c24b[_0x458496('0x2b')],_0x54c24b['query']),_0x2151ad[_0x458496('0xf')]=_[_0x458496('0x2f')](_0x54c24b['model'],qs[_0x458496('0x18')](_0x3437c4[_0x458496('0x3')][_0x458496('0x18')])),_0x2151ad[_0x458496('0xf')]=_0x2151ad[_0x458496('0xf')][_0x458496('0x27')]?_0x2151ad['attributes']:_0x54c24b[_0x458496('0x2b')];typeof _0x3437c4[_0x458496('0x3')]['nolimit']===_0x458496('0x2')&&(_0x2151ad['limit']=qs['limit'](_0x3437c4[_0x458496('0x3')][_0x458496('0xc')]),_0x2151ad[_0x458496('0x11')]=qs['offset'](_0x3437c4['query'][_0x458496('0x11')]));_0x2151ad[_0x458496('0x12')]=qs[_0x458496('0xb')](_0x3437c4[_0x458496('0x3')][_0x458496('0xb')]),_0x2151ad['where']=qs[_0x458496('0x2d')](_[_0x458496('0xd')](_0x3437c4[_0x458496('0x3')],_0x54c24b[_0x458496('0x2d')]),_0x370ed);_0x3437c4[_0x458496('0x3')][_0x458496('0x13')]&&(_0x2151ad[_0x458496('0x2a')]=_[_0x458496('0x25')](_0x2151ad[_0x458496('0x2a')],{[Op['or']]:_[_0x458496('0x19')](_0x370ed,function(_0x46eac6){const _0x1d89df=_0x458496;if(_0x46eac6[_0x1d89df('0x7')]!==_0x1d89df('0x14')){const _0x3b8058={};return _0x3b8058[_0x46eac6[_0x1d89df('0x2c')]]={[Op[_0x1d89df('0x34')]]:'%'+_0x3437c4['query']['filter']+'%'},_0x3b8058;}})}));_0x2151ad=_[_0x458496('0x25')]({},_0x2151ad,_0x3437c4[_0x458496('0x26')]);const _0x3bbe63={'where':_0x2151ad[_0x458496('0x2a')]};return db[_0x458496('0x1f')][_0x458496('0x30')](_0x3bbe63)[_0x458496('0x1b')](function(_0xe65542){const _0x3e99e0=_0x458496;return _0x4a99df[_0x3e99e0('0x30')]=_0xe65542,_0x3437c4[_0x3e99e0('0x3')][_0x3e99e0('0x33')]&&(_0x2151ad[_0x3e99e0('0x31')]=[{'all':!![]}]),db[_0x3e99e0('0x1f')][_0x3e99e0('0x1a')](_0x2151ad);})[_0x458496('0x1b')](function(_0x11f5a7){return _0x4a99df['rows']=_0x11f5a7,_0x4a99df;})[_0x458496('0x1b')](respondWithFilteredResult(_0x2e088e,_0x2151ad))[_0x458496('0x15')](handleError(_0x2e088e,null));},exports[_0x3cc6ac('0x5')]=function(_0x57e1f5,_0x559250){const _0x591ae5=_0x3cc6ac;let _0x4742fe={'raw':![],'where':{'id':_0x57e1f5[_0x591ae5('0x0')]['id']}};const _0x26717b={};return _0x26717b[_0x591ae5('0x2b')]=_[_0x591ae5('0x9')](db['VoiceAgentReport']['rawAttributes']),_0x26717b[_0x591ae5('0x3')]=_[_0x591ae5('0x9')](_0x57e1f5[_0x591ae5('0x3')]),_0x26717b[_0x591ae5('0x2d')]=_['intersection'](_0x26717b[_0x591ae5('0x2b')],_0x26717b[_0x591ae5('0x3')]),_0x4742fe[_0x591ae5('0xf')]=_[_0x591ae5('0x2f')](_0x26717b[_0x591ae5('0x2b')],qs[_0x591ae5('0x18')](_0x57e1f5[_0x591ae5('0x3')][_0x591ae5('0x18')])),_0x4742fe[_0x591ae5('0xf')]=_0x4742fe[_0x591ae5('0xf')][_0x591ae5('0x27')]?_0x4742fe[_0x591ae5('0xf')]:_0x26717b[_0x591ae5('0x2b')],_0x57e1f5['query'][_0x591ae5('0x33')]&&(_0x4742fe[_0x591ae5('0x31')]=[{'all':!![]}]),_0x4742fe=_['merge']({},_0x4742fe,_0x57e1f5[_0x591ae5('0x26')]),db[_0x591ae5('0x1f')][_0x591ae5('0xa')](_0x4742fe)[_0x591ae5('0x1b')](handleEntityNotFound(_0x559250,null))[_0x591ae5('0x1b')](respondWithResult(_0x559250,null))[_0x591ae5('0x15')](handleError(_0x559250,null));},exports[_0x3cc6ac('0x6')]=function(_0x4e25be,_0x8d56ee){const _0x3d02a9=_0x3cc6ac;return db['VoiceAgentReport'][_0x3d02a9('0x6')](_0x4e25be[_0x3d02a9('0x2e')],{})['then'](respondWithResult(_0x8d56ee,0xc9))[_0x3d02a9('0x15')](handleError(_0x8d56ee,null));},exports[_0x3cc6ac('0x8')]=function(_0x2278aa,_0x1ba44b){const _0x379523=_0x3cc6ac;return _0x2278aa[_0x379523('0x2e')]['id']&&delete _0x2278aa[_0x379523('0x2e')]['id'],db['VoiceAgentReport'][_0x379523('0xa')]({'where':{'id':_0x2278aa['params']['id']}})['then'](handleEntityNotFound(_0x1ba44b,null))[_0x379523('0x1b')](saveUpdates(_0x2278aa[_0x379523('0x2e')],null))['then'](respondWithResult(_0x1ba44b,null))[_0x379523('0x15')](handleError(_0x1ba44b,null));},exports[_0x3cc6ac('0x21')]=function(_0x1859c7,_0x988bde){const _0x1381fa=_0x3cc6ac;return db[_0x1381fa('0x1f')][_0x1381fa('0xa')]({'where':{'id':_0x1859c7[_0x1381fa('0x0')]['id']}})[_0x1381fa('0x1b')](handleEntityNotFound(_0x988bde,null))['then'](removeEntity(_0x988bde,null))['catch'](handleError(_0x988bde,null));},exports[_0x3cc6ac('0x1e')]=function(_0x2efa4b,_0x3159a0){const _0x34e66c=_0x3cc6ac;return db[_0x34e66c('0x1f')]['describe']()['then'](respondWithResult(_0x3159a0,null))[_0x34e66c('0x15')](handleError(_0x3159a0,null));}; \ No newline at end of file +const a704_0x1089=['end','sequelize','then','params','json','VIRTUAL','sendStatus','like','includeAll','findOne','query','options','filters','error','intersection','body','where','fields','sort','rawAttributes','destroy','name','merge','send','Content-Range','findAll','../../mysqldb','describe','order','lodash','offset','include','VoiceAgentReport','map','catch','create','keys','show','pick','limit','model','type','attributes','../../config/logger','update','filter','status','fieldName','index','count','key','length','api'];(function(_0x303272,_0x1089e5){const _0x1fd9c9=function(_0x24c790){while(--_0x24c790){_0x303272['push'](_0x303272['shift']());}};_0x1fd9c9(++_0x1089e5);}(a704_0x1089,0x18d));const a704_0x1fd9=function(_0x303272,_0x1089e5){_0x303272=_0x303272-0x0;let _0x1fd9c9=a704_0x1089[_0x303272];return _0x1fd9c9;};const _0x5af24a=a704_0x1fd9;'use strict';const _=require(_0x5af24a('0x3')),qs=require('../../components/parsers/qs'),logger=require(_0x5af24a('0x11'))(_0x5af24a('0x1a')),db=require(_0x5af24a('0x0'))['db'],{Op}=require(_0x5af24a('0x1c'));function respondWithResult(_0x24c790,_0x2277fc){return _0x2277fc=_0x2277fc||0xc8,function(_0x5e644e){const _0x19942d=a704_0x1fd9;if(_0x5e644e)return _0x24c790[_0x19942d('0x14')](_0x2277fc)['json'](_0x5e644e);};}function respondWithFilteredResult(_0x32b828,_0x3a6257){return function(_0x119634){const _0x30513d=a704_0x1fd9;if(_0x119634){const _0x109b8b=_0x119634['count'],_0x1d5523=_0x3a6257['offset'];let _0x5e5a0e=_0x3a6257[_0x30513d('0x4')]+_0x3a6257[_0x30513d('0xd')],_0x40b249;return _0x5e5a0e>=_0x109b8b?(_0x5e5a0e=_0x109b8b,_0x40b249=0xc8):_0x40b249=0xce,_0x32b828[_0x30513d('0x14')](_0x40b249),_0x32b828['set'](_0x30513d('0x33'),_0x1d5523+'-'+_0x5e5a0e+'/'+_0x109b8b)[_0x30513d('0x1f')](_0x119634);}return null;};}function saveUpdates(_0x5ad645){return function(_0x4dc7ff){const _0x2727a7=a704_0x1fd9;if(_0x4dc7ff)return _0x4dc7ff[_0x2727a7('0x12')](_0x5ad645)[_0x2727a7('0x1d')](function(_0x52dec7){return _0x52dec7;});return null;};}function removeEntity(_0x3aade2){return function(_0xcc0d88){const _0x6694ad=a704_0x1fd9;if(_0xcc0d88)return _0xcc0d88[_0x6694ad('0x2f')]()['then'](function(){const _0x5e6f9e=_0x6694ad;_0x3aade2[_0x5e6f9e('0x14')](0xcc)[_0x5e6f9e('0x1b')]();});};}function handleEntityNotFound(_0x197788){return function(_0xefa0e5){const _0x5cc468=a704_0x1fd9;return!_0xefa0e5&&_0x197788[_0x5cc468('0x21')](0x194),_0xefa0e5;};}function handleError(_0x477466,_0xd3d370){return _0xd3d370=_0xd3d370||0x1f4,function(_0x330e95){const _0x22f1a8=a704_0x1fd9;logger[_0x22f1a8('0x28')](_0x330e95['stack']),_0x330e95['name']&&delete _0x330e95[_0x22f1a8('0x30')],_0x477466['status'](_0xd3d370)[_0x22f1a8('0x32')](_0x330e95);};}exports[_0x5af24a('0x16')]=function(_0x37f9db,_0x5613e2){const _0x275a0e=_0x5af24a;let _0x2f9578={};const _0x2d9221={},_0x2f1759={'count':0x0,'rows':[]},_0x1496da=_[_0x275a0e('0x7')](db[_0x275a0e('0x6')][_0x275a0e('0x2e')],function(_0x4e54c9){const _0x7d0784=_0x275a0e;return{'name':_0x4e54c9[_0x7d0784('0x15')],'type':_0x4e54c9[_0x7d0784('0xf')][_0x7d0784('0x18')]};});_0x2d9221['model']=_[_0x275a0e('0x7')](_0x1496da,_0x275a0e('0x30')),_0x2d9221[_0x275a0e('0x25')]=_['keys'](_0x37f9db[_0x275a0e('0x25')]),_0x2d9221['filters']=_[_0x275a0e('0x29')](_0x2d9221[_0x275a0e('0xe')],_0x2d9221[_0x275a0e('0x25')]),_0x2f9578[_0x275a0e('0x10')]=_[_0x275a0e('0x29')](_0x2d9221[_0x275a0e('0xe')],qs[_0x275a0e('0x2c')](_0x37f9db[_0x275a0e('0x25')][_0x275a0e('0x2c')])),_0x2f9578[_0x275a0e('0x10')]=_0x2f9578[_0x275a0e('0x10')][_0x275a0e('0x19')]?_0x2f9578['attributes']:_0x2d9221[_0x275a0e('0xe')];typeof _0x37f9db['query']['nolimit']==='undefined'&&(_0x2f9578[_0x275a0e('0xd')]=qs[_0x275a0e('0xd')](_0x37f9db['query'][_0x275a0e('0xd')]),_0x2f9578[_0x275a0e('0x4')]=qs['offset'](_0x37f9db[_0x275a0e('0x25')][_0x275a0e('0x4')]));_0x2f9578[_0x275a0e('0x2')]=qs[_0x275a0e('0x2d')](_0x37f9db[_0x275a0e('0x25')]['sort']),_0x2f9578[_0x275a0e('0x2b')]=qs[_0x275a0e('0x27')](_[_0x275a0e('0xc')](_0x37f9db[_0x275a0e('0x25')],_0x2d9221[_0x275a0e('0x27')]),_0x1496da);_0x37f9db[_0x275a0e('0x25')][_0x275a0e('0x13')]&&(_0x2f9578['where']=_[_0x275a0e('0x31')](_0x2f9578['where'],{[Op['or']]:_[_0x275a0e('0x7')](_0x1496da,function(_0xaf2a40){const _0x48a04b=_0x275a0e;if(_0xaf2a40['type']!==_0x48a04b('0x20')){const _0x34d6a9={};return _0x34d6a9[_0xaf2a40['name']]={[Op[_0x48a04b('0x22')]]:'%'+_0x37f9db['query'][_0x48a04b('0x13')]+'%'},_0x34d6a9;}})}));_0x2f9578=_[_0x275a0e('0x31')]({},_0x2f9578,_0x37f9db['options']);const _0x2aa5ac={'where':_0x2f9578['where']};return db[_0x275a0e('0x6')]['count'](_0x2aa5ac)[_0x275a0e('0x1d')](function(_0x493509){const _0x5beb7c=_0x275a0e;return _0x2f1759[_0x5beb7c('0x17')]=_0x493509,_0x37f9db[_0x5beb7c('0x25')][_0x5beb7c('0x23')]&&(_0x2f9578[_0x5beb7c('0x5')]=[{'all':!![]}]),db['VoiceAgentReport'][_0x5beb7c('0x34')](_0x2f9578);})[_0x275a0e('0x1d')](function(_0x2cab12){return _0x2f1759['rows']=_0x2cab12,_0x2f1759;})[_0x275a0e('0x1d')](respondWithFilteredResult(_0x5613e2,_0x2f9578))['catch'](handleError(_0x5613e2,null));},exports[_0x5af24a('0xb')]=function(_0xb4d061,_0x4311e1){const _0xd6a05=_0x5af24a;let _0x3bd291={'raw':![],'where':{'id':_0xb4d061[_0xd6a05('0x1e')]['id']}};const _0x177dff={};return _0x177dff['model']=_[_0xd6a05('0xa')](db['VoiceAgentReport'][_0xd6a05('0x2e')]),_0x177dff[_0xd6a05('0x25')]=_['keys'](_0xb4d061[_0xd6a05('0x25')]),_0x177dff[_0xd6a05('0x27')]=_[_0xd6a05('0x29')](_0x177dff[_0xd6a05('0xe')],_0x177dff[_0xd6a05('0x25')]),_0x3bd291[_0xd6a05('0x10')]=_[_0xd6a05('0x29')](_0x177dff[_0xd6a05('0xe')],qs[_0xd6a05('0x2c')](_0xb4d061[_0xd6a05('0x25')][_0xd6a05('0x2c')])),_0x3bd291['attributes']=_0x3bd291[_0xd6a05('0x10')][_0xd6a05('0x19')]?_0x3bd291['attributes']:_0x177dff['model'],_0xb4d061[_0xd6a05('0x25')][_0xd6a05('0x23')]&&(_0x3bd291[_0xd6a05('0x5')]=[{'all':!![]}]),_0x3bd291=_['merge']({},_0x3bd291,_0xb4d061[_0xd6a05('0x26')]),db[_0xd6a05('0x6')][_0xd6a05('0x24')](_0x3bd291)[_0xd6a05('0x1d')](handleEntityNotFound(_0x4311e1,null))[_0xd6a05('0x1d')](respondWithResult(_0x4311e1,null))['catch'](handleError(_0x4311e1,null));},exports[_0x5af24a('0x9')]=function(_0x185756,_0x3096fb){const _0x3ccbde=_0x5af24a;return db[_0x3ccbde('0x6')][_0x3ccbde('0x9')](_0x185756[_0x3ccbde('0x2a')],{})[_0x3ccbde('0x1d')](respondWithResult(_0x3096fb,0xc9))[_0x3ccbde('0x8')](handleError(_0x3096fb,null));},exports[_0x5af24a('0x12')]=function(_0x494a76,_0x1f2bed){const _0xb34f6c=_0x5af24a;return _0x494a76[_0xb34f6c('0x2a')]['id']&&delete _0x494a76[_0xb34f6c('0x2a')]['id'],db[_0xb34f6c('0x6')][_0xb34f6c('0x24')]({'where':{'id':_0x494a76[_0xb34f6c('0x1e')]['id']}})[_0xb34f6c('0x1d')](handleEntityNotFound(_0x1f2bed,null))[_0xb34f6c('0x1d')](saveUpdates(_0x494a76[_0xb34f6c('0x2a')],null))[_0xb34f6c('0x1d')](respondWithResult(_0x1f2bed,null))['catch'](handleError(_0x1f2bed,null));},exports[_0x5af24a('0x2f')]=function(_0x102d9d,_0x350af7){const _0x3d8e44=_0x5af24a;return db[_0x3d8e44('0x6')][_0x3d8e44('0x24')]({'where':{'id':_0x102d9d[_0x3d8e44('0x1e')]['id']}})[_0x3d8e44('0x1d')](handleEntityNotFound(_0x350af7,null))['then'](removeEntity(_0x350af7,null))[_0x3d8e44('0x8')](handleError(_0x350af7,null));},exports[_0x5af24a('0x1')]=function(_0x43ce1f,_0x246b9c){const _0x4601be=_0x5af24a;return db[_0x4601be('0x6')][_0x4601be('0x1')]()['then'](respondWithResult(_0x246b9c,null))[_0x4601be('0x8')](handleError(_0x246b9c,null));}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.model.js b/server/api/voiceAgentReport/voiceAgentReport.model.js index 6d591b0..7040805 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.model.js +++ b/server/api/voiceAgentReport/voiceAgentReport.model.js @@ -1 +1 @@ -const a705_0x3dbf=['uniqueid','VoiceAgentReport','exports','destuniqueid','define','report_agent'];(function(_0x2e076b,_0x3dbfae){const _0x21b7c9=function(_0x230113){while(--_0x230113){_0x2e076b['push'](_0x2e076b['shift']());}};_0x21b7c9(++_0x3dbfae);}(a705_0x3dbf,0x79));const a705_0x21b7=function(_0x2e076b,_0x3dbfae){_0x2e076b=_0x2e076b-0x0;let _0x21b7c9=a705_0x3dbf[_0x2e076b];return _0x21b7c9;};const _0x4efd15=a705_0x21b7;'use strict';const attributes=require('./voiceAgentReport.attributes');module[_0x4efd15('0x1')]=function(_0x230113){const _0x25758f=_0x4efd15,_0xbaf00c=_0x230113[_0x25758f('0x3')](_0x25758f('0x0'),attributes,{'tableName':_0x25758f('0x4'),'paranoid':![],'indexes':[{'fields':[_0x25758f('0x5'),_0x25758f('0x2')]}],'timestamps':!![]});return _0xbaf00c;}; \ No newline at end of file +const a705_0x258b=['./voiceAgentReport.attributes','uniqueid','exports','define','destuniqueid','VoiceAgentReport'];(function(_0x31dcf8,_0x258bee){const _0xcb5bbd=function(_0x5d0add){while(--_0x5d0add){_0x31dcf8['push'](_0x31dcf8['shift']());}};_0xcb5bbd(++_0x258bee);}(a705_0x258b,0x96));const a705_0xcb5b=function(_0x31dcf8,_0x258bee){_0x31dcf8=_0x31dcf8-0x0;let _0xcb5bbd=a705_0x258b[_0x31dcf8];return _0xcb5bbd;};const _0x59c043=a705_0xcb5b;'use strict';const attributes=require(_0x59c043('0x0'));module[_0x59c043('0x2')]=function(_0x5d0add){const _0x27a9d1=_0x59c043,_0x2bbc07=_0x5d0add[_0x27a9d1('0x3')](_0x27a9d1('0x5'),attributes,{'tableName':'report_agent','paranoid':![],'indexes':[{'fields':[_0x27a9d1('0x1'),_0x27a9d1('0x4')]}],'timestamps':!![]});return _0x2bbc07;}; \ No newline at end of file diff --git a/server/api/voiceAgentReport/voiceAgentReport.rpc.js b/server/api/voiceAgentReport/voiceAgentReport.rpc.js index efd0231..89140d6 100644 --- a/server/api/voiceAgentReport/voiceAgentReport.rpc.js +++ b/server/api/voiceAgentReport/voiceAgentReport.rpc.js @@ -1 +1 @@ -const a706_0x3202=['../../mysqldb','then','attributes','message','CreateVoiceAgentReport','create','info','body','raw','catch','VoiceAgentReport','options','limit','where','error','rpc','debug','UpdateVoiceAgentReport'];(function(_0x4567fd,_0x32028a){const _0x34fcf9=function(_0x38ffc0){while(--_0x38ffc0){_0x4567fd['push'](_0x4567fd['shift']());}};_0x34fcf9(++_0x32028a);}(a706_0x3202,0xcd));const a706_0x34fc=function(_0x4567fd,_0x32028a){_0x4567fd=_0x4567fd-0x0;let _0x34fcf9=a706_0x3202[_0x4567fd];return _0x34fcf9;};const _0x42541a=a706_0x34fc;'use strict';const db=require(_0x42541a('0xb'))['db'],logger=require('../../config/logger')(_0x42541a('0x8'));exports[_0x42541a('0xf')]=function(_0x38ffc0){const _0x140c32=this;return new Promise(function(_0x5825e2,_0x47d7d1){const _0x2aef13=a706_0x34fc;return db[_0x2aef13('0x3')][_0x2aef13('0x10')](_0x38ffc0[_0x2aef13('0x0')],{'raw':_0x38ffc0[_0x2aef13('0x4')]?_0x38ffc0[_0x2aef13('0x4')][_0x2aef13('0x1')]===undefined?!![]:![]:!![]})[_0x2aef13('0xc')](function(_0x4cd330){const _0x181fad=_0x2aef13;logger[_0x181fad('0x11')](_0x181fad('0xf'),_0x38ffc0),logger[_0x181fad('0x9')](_0x181fad('0xf'),_0x38ffc0,JSON['stringify'](_0x4cd330)),_0x5825e2(_0x4cd330);})[_0x2aef13('0x2')](function(_0x3ceb94){const _0x40658a=_0x2aef13;logger['error'](_0x40658a('0xf'),_0x3ceb94[_0x40658a('0xe')],_0x38ffc0),_0x47d7d1(_0x140c32['error'](0x1f4,_0x3ceb94['message']));});});},exports[_0x42541a('0xa')]=function(_0x278570){const _0x4394c3=this;return new Promise(function(_0x1212be,_0x1ce4f3){const _0x7d1bcd=a706_0x34fc;return db[_0x7d1bcd('0x3')]['update'](_0x278570[_0x7d1bcd('0x0')],{'raw':_0x278570[_0x7d1bcd('0x4')]?_0x278570[_0x7d1bcd('0x4')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x278570['options']?_0x278570[_0x7d1bcd('0x4')][_0x7d1bcd('0x6')]||null:null,'attributes':_0x278570['options']?_0x278570['options'][_0x7d1bcd('0xd')]||null:null,'limit':_0x278570['options']?_0x278570[_0x7d1bcd('0x4')][_0x7d1bcd('0x5')]||null:null})[_0x7d1bcd('0xc')](function(_0x591408){const _0x1d40e5=_0x7d1bcd;logger[_0x1d40e5('0x11')](_0x1d40e5('0xa'),_0x278570),logger[_0x1d40e5('0x9')](_0x1d40e5('0xa'),_0x278570,JSON['stringify'](_0x591408)),_0x1212be(_0x591408);})[_0x7d1bcd('0x2')](function(_0xc6a893){const _0x249c08=_0x7d1bcd;logger[_0x249c08('0x7')](_0x249c08('0xa'),_0xc6a893[_0x249c08('0xe')],_0x278570),_0x1ce4f3(_0x4394c3[_0x249c08('0x7')](0x1f4,_0xc6a893[_0x249c08('0xe')]));});});}; \ No newline at end of file +const a706_0x13ee=['error','rpc','debug','limit','CreateVoiceAgentReport','stringify','then','update','raw','message','body','where','options','info','VoiceAgentReport','catch','UpdateVoiceAgentReport','attributes'];(function(_0xe12a50,_0x13ee97){const _0x10ad7a=function(_0x4896e7){while(--_0x4896e7){_0xe12a50['push'](_0xe12a50['shift']());}};_0x10ad7a(++_0x13ee97);}(a706_0x13ee,0xc7));const a706_0x10ad=function(_0xe12a50,_0x13ee97){_0xe12a50=_0xe12a50-0x0;let _0x10ad7a=a706_0x13ee[_0xe12a50];return _0x10ad7a;};const _0x2abdf4=a706_0x10ad;'use strict';const db=require('../../mysqldb')['db'],logger=require('../../config/logger')(_0x2abdf4('0x0'));exports[_0x2abdf4('0x3')]=function(_0x4896e7){const _0x34c60a=this;return new Promise(function(_0x53e4f0,_0x1c4e34){const _0x21095a=a706_0x10ad;return db['VoiceAgentReport']['create'](_0x4896e7[_0x21095a('0x9')],{'raw':_0x4896e7[_0x21095a('0xb')]?_0x4896e7['options'][_0x21095a('0x7')]===undefined?!![]:![]:!![]})[_0x21095a('0x5')](function(_0x398693){const _0x5e2cbb=_0x21095a;logger['info'](_0x5e2cbb('0x3'),_0x4896e7),logger[_0x5e2cbb('0x1')](_0x5e2cbb('0x3'),_0x4896e7,JSON['stringify'](_0x398693)),_0x53e4f0(_0x398693);})[_0x21095a('0xe')](function(_0x161da5){const _0x2a55d2=_0x21095a;logger[_0x2a55d2('0x11')](_0x2a55d2('0x3'),_0x161da5[_0x2a55d2('0x8')],_0x4896e7),_0x1c4e34(_0x34c60a[_0x2a55d2('0x11')](0x1f4,_0x161da5[_0x2a55d2('0x8')]));});});},exports[_0x2abdf4('0xf')]=function(_0x17a987){const _0x5ac816=this;return new Promise(function(_0x43b80b,_0xe05c88){const _0x452542=a706_0x10ad;return db[_0x452542('0xd')][_0x452542('0x6')](_0x17a987[_0x452542('0x9')],{'raw':_0x17a987[_0x452542('0xb')]?_0x17a987['options'][_0x452542('0x7')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x17a987[_0x452542('0xb')]?_0x17a987['options'][_0x452542('0xa')]||null:null,'attributes':_0x17a987['options']?_0x17a987[_0x452542('0xb')][_0x452542('0x10')]||null:null,'limit':_0x17a987[_0x452542('0xb')]?_0x17a987[_0x452542('0xb')][_0x452542('0x2')]||null:null})[_0x452542('0x5')](function(_0x504ffc){const _0x130bc4=_0x452542;logger[_0x130bc4('0xc')]('UpdateVoiceAgentReport',_0x17a987),logger[_0x130bc4('0x1')](_0x130bc4('0xf'),_0x17a987,JSON[_0x130bc4('0x4')](_0x504ffc)),_0x43b80b(_0x504ffc);})[_0x452542('0xe')](function(_0x5d7a90){const _0x150aa1=_0x452542;logger[_0x150aa1('0x11')](_0x150aa1('0xf'),_0x5d7a90[_0x150aa1('0x8')],_0x17a987),_0xe05c88(_0x5ac816['error'](0x1f4,_0x5d7a90[_0x150aa1('0x8')]));});});}; \ No newline at end of file diff --git a/server/api/voiceCallReport/index.js b/server/api/voiceCallReport/index.js index 1265655..152f965 100644 --- a/server/api/voiceCallReport/index.js +++ b/server/api/voiceCallReport/index.js @@ -1 +1 @@ -const a707_0x1f9d=['post','put','get','/:id','show','create','index','Router','delete','describe','express','update','isAuthenticated'];(function(_0x110553,_0x1f9d9d){const _0x3eab44=function(_0x3de516){while(--_0x3de516){_0x110553['push'](_0x110553['shift']());}};_0x3eab44(++_0x1f9d9d);}(a707_0x1f9d,0xca));const a707_0x3eab=function(_0x110553,_0x1f9d9d){_0x110553=_0x110553-0x0;let _0x3eab44=a707_0x1f9d[_0x110553];return _0x3eab44;};const _0x2b972b=a707_0x3eab;'use strict';const express=require(_0x2b972b('0x3')),router=express[_0x2b972b('0x0')](),auth=require('../../components/auth/service'),controller=require('./voiceCallReport.controller');router['get']('/',auth[_0x2b972b('0x5')](),controller[_0x2b972b('0xc')]),router['get']('/describe',auth[_0x2b972b('0x5')](),controller[_0x2b972b('0x2')]),router[_0x2b972b('0x8')]('/:id',auth['isAuthenticated'](),controller[_0x2b972b('0xa')]),router[_0x2b972b('0x6')]('/',auth[_0x2b972b('0x5')](),controller[_0x2b972b('0xb')]),router[_0x2b972b('0x7')](_0x2b972b('0x9'),auth['isAuthenticated'](),controller[_0x2b972b('0x4')]),router[_0x2b972b('0x1')](_0x2b972b('0x9'),auth[_0x2b972b('0x5')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a707_0x5c16=['../../components/auth/service','post','update','get','index','express','create','/describe','put','./voiceCallReport.controller','isAuthenticated','exports','show','/:id','describe','delete'];(function(_0x3435e3,_0x5c1654){const _0x3d937f=function(_0x412eb6){while(--_0x412eb6){_0x3435e3['push'](_0x3435e3['shift']());}};_0x3d937f(++_0x5c1654);}(a707_0x5c16,0x122));const a707_0x3d93=function(_0x3435e3,_0x5c1654){_0x3435e3=_0x3435e3-0x0;let _0x3d937f=a707_0x5c16[_0x3435e3];return _0x3d937f;};const _0x4fc1b3=a707_0x3d93;'use strict';const express=require(_0x4fc1b3('0x3')),router=express['Router'](),auth=require(_0x4fc1b3('0xe')),controller=require(_0x4fc1b3('0x7'));router[_0x4fc1b3('0x1')]('/',auth[_0x4fc1b3('0x8')](),controller[_0x4fc1b3('0x2')]),router[_0x4fc1b3('0x1')](_0x4fc1b3('0x5'),auth[_0x4fc1b3('0x8')](),controller[_0x4fc1b3('0xc')]),router[_0x4fc1b3('0x1')](_0x4fc1b3('0xb'),auth[_0x4fc1b3('0x8')](),controller[_0x4fc1b3('0xa')]),router[_0x4fc1b3('0xf')]('/',auth[_0x4fc1b3('0x8')](),controller[_0x4fc1b3('0x4')]),router[_0x4fc1b3('0x6')]('/:id',auth[_0x4fc1b3('0x8')](),controller[_0x4fc1b3('0x0')]),router[_0x4fc1b3('0xd')](_0x4fc1b3('0xb'),auth['isAuthenticated'](),controller['destroy']),module[_0x4fc1b3('0x9')]=router; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.attributes.js b/server/api/voiceCallReport/voiceCallReport.attributes.js index 004b5b1..1c36da4 100644 --- a/server/api/voiceCallReport/voiceCallReport.attributes.js +++ b/server/api/voiceCallReport/voiceCallReport.attributes.js @@ -1 +1 @@ -const a708_0x215f=['outbound','INTEGER','internal','inbound','exports','inbound-fax','DATE','sequelize','dialer','TEXT','STRING'];(function(_0x354dfa,_0x215f94){const _0x14d24a=function(_0x341dd5){while(--_0x341dd5){_0x354dfa['push'](_0x354dfa['shift']());}};_0x14d24a(++_0x215f94);}(a708_0x215f,0x1a9));const a708_0x14d2=function(_0x354dfa,_0x215f94){_0x354dfa=_0x354dfa-0x0;let _0x14d24a=a708_0x215f[_0x354dfa];return _0x14d24a;};const _0x1f7b58=a708_0x14d2;'use strict';const Sequelize=require(_0x1f7b58('0x0'));module[_0x1f7b58('0x8')]={'uniqueid':{'type':Sequelize['STRING']},'type':{'type':Sequelize['ENUM'](_0x1f7b58('0x7'),_0x1f7b58('0x6'),_0x1f7b58('0x4'),_0x1f7b58('0x9'),'outbound-fax',_0x1f7b58('0x1'))},'tag':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x1f7b58('0x3')]},'source':{'type':Sequelize['STRING']},'destination':{'type':Sequelize[_0x1f7b58('0x3')]},'destinationcontext':{'type':Sequelize[_0x1f7b58('0x3')]},'callerid':{'type':Sequelize['STRING']},'channel':{'type':Sequelize[_0x1f7b58('0x3')]},'destinationchannel':{'type':Sequelize[_0x1f7b58('0x3')]},'lastapplication':{'type':Sequelize[_0x1f7b58('0x3')]},'lastdata':{'type':Sequelize[_0x1f7b58('0x2')]},'starttime':{'type':Sequelize[_0x1f7b58('0xa')]},'systemanswertime':{'type':Sequelize['DATE']},'answertime':{'type':Sequelize[_0x1f7b58('0xa')]},'endtime':{'type':Sequelize[_0x1f7b58('0xa')]},'duration':{'type':Sequelize[_0x1f7b58('0x5')]},'billableseconds':{'type':Sequelize[_0x1f7b58('0x5')]},'mohtime':{'type':Sequelize[_0x1f7b58('0x5')],'defaultValue':0x0},'disposition':{'type':Sequelize['STRING']},'amaflags':{'type':Sequelize[_0x1f7b58('0x3')]},'userfield':{'type':Sequelize[_0x1f7b58('0x3')]},'userDisposition':{'type':Sequelize[_0x1f7b58('0x3')]},'userSecondDisposition':{'type':Sequelize[_0x1f7b58('0x3')]},'userThirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x1f7b58('0x3')]},'prefix':{'type':Sequelize[_0x1f7b58('0x3')]},'routeid':{'type':Sequelize[_0x1f7b58('0x5')]},'sipcallid':{'type':Sequelize[_0x1f7b58('0x3')]}}; \ No newline at end of file +const a708_0xc527=['sequelize','DATE','inbound','INTEGER','internal','outbound-fax','STRING','TEXT','ENUM','inbound-fax','exports','outbound'];(function(_0x42d5ee,_0xc5274b){const _0x16cf15=function(_0x679521){while(--_0x679521){_0x42d5ee['push'](_0x42d5ee['shift']());}};_0x16cf15(++_0xc5274b);}(a708_0xc527,0xeb));const a708_0x16cf=function(_0x42d5ee,_0xc5274b){_0x42d5ee=_0x42d5ee-0x0;let _0x16cf15=a708_0xc527[_0x42d5ee];return _0x16cf15;};const _0x5499bc=a708_0x16cf;'use strict';const Sequelize=require(_0x5499bc('0x5'));module[_0x5499bc('0x3')]={'uniqueid':{'type':Sequelize[_0x5499bc('0xb')]},'type':{'type':Sequelize[_0x5499bc('0x1')](_0x5499bc('0x7'),_0x5499bc('0x9'),_0x5499bc('0x4'),_0x5499bc('0x2'),_0x5499bc('0xa'),'dialer')},'tag':{'type':Sequelize[_0x5499bc('0xb')]},'accountcode':{'type':Sequelize['STRING']},'source':{'type':Sequelize['STRING']},'destination':{'type':Sequelize[_0x5499bc('0xb')]},'destinationcontext':{'type':Sequelize[_0x5499bc('0xb')]},'callerid':{'type':Sequelize[_0x5499bc('0xb')]},'channel':{'type':Sequelize[_0x5499bc('0xb')]},'destinationchannel':{'type':Sequelize[_0x5499bc('0xb')]},'lastapplication':{'type':Sequelize[_0x5499bc('0xb')]},'lastdata':{'type':Sequelize[_0x5499bc('0x0')]},'starttime':{'type':Sequelize[_0x5499bc('0x6')]},'systemanswertime':{'type':Sequelize[_0x5499bc('0x6')]},'answertime':{'type':Sequelize['DATE']},'endtime':{'type':Sequelize['DATE']},'duration':{'type':Sequelize[_0x5499bc('0x8')]},'billableseconds':{'type':Sequelize['INTEGER']},'mohtime':{'type':Sequelize[_0x5499bc('0x8')],'defaultValue':0x0},'disposition':{'type':Sequelize[_0x5499bc('0xb')]},'amaflags':{'type':Sequelize[_0x5499bc('0xb')]},'userfield':{'type':Sequelize[_0x5499bc('0xb')]},'userDisposition':{'type':Sequelize[_0x5499bc('0xb')]},'userSecondDisposition':{'type':Sequelize[_0x5499bc('0xb')]},'userThirdDisposition':{'type':Sequelize[_0x5499bc('0xb')]},'note':{'type':Sequelize['STRING']},'prefix':{'type':Sequelize['STRING']},'routeid':{'type':Sequelize[_0x5499bc('0x8')]},'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 5909276..67b2577 100644 --- a/server/api/voiceCallReport/voiceCallReport.controller.js +++ b/server/api/voiceCallReport/voiceCallReport.controller.js @@ -1 +1 @@ -const a709_0x3db2=['model','alias','includeAll','where','../../mysqldb','filter','type','findOne','show','error','include','like','fields','stack','params','status','rawAttributes','catch','api','pick','undefined','filters','sequelize','VIRTUAL','length','query','create','end','order','merge','User','../../components/parsers/qs','nolimit','lodash','limit','offset','VoiceCallReport','fullname','destroy','key','set','Content-Range','describe','count','fieldName','map','rows','then','findAll','name','index','update','keys','user','intersection','body','attributes','json'];(function(_0x47afb2,_0x3db2d3){const _0x2835cd=function(_0x1b2020){while(--_0x1b2020){_0x47afb2['push'](_0x47afb2['shift']());}};_0x2835cd(++_0x3db2d3);}(a709_0x3db2,0xc1));const a709_0x2835=function(_0x47afb2,_0x3db2d3){_0x47afb2=_0x47afb2-0x0;let _0x2835cd=a709_0x3db2[_0x47afb2];return _0x2835cd;};const _0xa2bf52=a709_0x2835;'use strict';const _=require(_0xa2bf52('0xe')),qs=require(_0xa2bf52('0xc')),logger=require('../../config/logger')(_0xa2bf52('0x39')),db=require(_0xa2bf52('0x2b'))['db'],{Op}=require(_0xa2bf52('0x3'));function respondWithResult(_0x1b2020,_0x537656){return _0x537656=_0x537656||0xc8,function(_0x45dc49){const _0x246656=a709_0x2835;if(_0x45dc49)return _0x1b2020['status'](_0x537656)[_0x246656('0x26')](_0x45dc49);};}function respondWithFilteredResult(_0x269ae2,_0x39c879){return function(_0x592d20){const _0x2653a8=a709_0x2835;if(_0x592d20){const _0xec2002=_0x592d20['count'],_0x4e58a3=_0x39c879[_0x2653a8('0x10')];let _0x22e8cc=_0x39c879[_0x2653a8('0x10')]+_0x39c879[_0x2653a8('0xf')],_0x1e17a2;return _0x22e8cc>=_0xec2002?(_0x22e8cc=_0xec2002,_0x1e17a2=0xc8):_0x1e17a2=0xce,_0x269ae2[_0x2653a8('0x36')](_0x1e17a2),_0x269ae2[_0x2653a8('0x15')](_0x2653a8('0x16'),_0x4e58a3+'-'+_0x22e8cc+'/'+_0xec2002)[_0x2653a8('0x26')](_0x592d20);}return null;};}function saveUpdates(_0x2cd377){return function(_0x3e80a6){if(_0x3e80a6)return _0x3e80a6['update'](_0x2cd377)['then'](function(_0xc93704){return _0xc93704;});return null;};}function removeEntity(_0x442682){return function(_0x33bf66){const _0x1b98a9=a709_0x2835;if(_0x33bf66)return _0x33bf66[_0x1b98a9('0x13')]()[_0x1b98a9('0x1c')](function(){const _0x40f7df=_0x1b98a9;_0x442682[_0x40f7df('0x36')](0xcc)[_0x40f7df('0x8')]();});};}function handleEntityNotFound(_0x37f9fb){return function(_0x1885ec){return!_0x1885ec&&_0x37f9fb['sendStatus'](0x194),_0x1885ec;};}function handleError(_0xce492,_0x3517ee){return _0x3517ee=_0x3517ee||0x1f4,function(_0x523694){const _0x4be0c3=a709_0x2835;logger[_0x4be0c3('0x30')](_0x523694[_0x4be0c3('0x34')]),_0x523694[_0x4be0c3('0x1e')]&&delete _0x523694[_0x4be0c3('0x1e')],_0xce492[_0x4be0c3('0x36')](_0x3517ee)['send'](_0x523694);};}exports[_0xa2bf52('0x1f')]=function(_0x35feb5,_0x320fda){const _0x569340=_0xa2bf52;let _0x30ca4={};const _0x446de6={},_0xff4c09={'count':0x0,'rows':[]},_0x1cacbc=_['map'](db['VoiceCallReport']['rawAttributes'],function(_0x435af1){const _0x1dabc6=a709_0x2835;return{'name':_0x435af1[_0x1dabc6('0x19')],'type':_0x435af1[_0x1dabc6('0x2d')][_0x1dabc6('0x14')]};});_0x446de6[_0x569340('0x27')]=_[_0x569340('0x1a')](_0x1cacbc,_0x569340('0x1e')),_0x446de6[_0x569340('0x6')]=_[_0x569340('0x21')](_0x35feb5[_0x569340('0x6')]),_0x446de6[_0x569340('0x2')]=_[_0x569340('0x23')](_0x446de6[_0x569340('0x27')],_0x446de6[_0x569340('0x6')]),_0x30ca4['attributes']=_[_0x569340('0x23')](_0x446de6[_0x569340('0x27')],qs[_0x569340('0x33')](_0x35feb5[_0x569340('0x6')][_0x569340('0x33')])),_0x30ca4[_0x569340('0x25')]=_0x30ca4[_0x569340('0x25')]['length']?_0x30ca4[_0x569340('0x25')]:_0x446de6[_0x569340('0x27')];typeof _0x35feb5[_0x569340('0x6')][_0x569340('0xd')]===_0x569340('0x1')&&(_0x30ca4[_0x569340('0xf')]=qs[_0x569340('0xf')](_0x35feb5[_0x569340('0x6')]['limit']),_0x30ca4[_0x569340('0x10')]=qs['offset'](_0x35feb5[_0x569340('0x6')]['offset']));_0x30ca4[_0x569340('0x9')]=qs['sort'](_0x35feb5[_0x569340('0x6')]['sort']),_0x30ca4[_0x569340('0x2a')]=qs[_0x569340('0x2')](_[_0x569340('0x0')](_0x35feb5[_0x569340('0x6')],_0x446de6['filters']),_0x1cacbc);_0x35feb5[_0x569340('0x6')][_0x569340('0x2c')]&&(_0x30ca4['where']=_[_0x569340('0xa')](_0x30ca4[_0x569340('0x2a')],{[Op['or']]:_['map'](_0x1cacbc,function(_0xdc46e2){const _0x540c79=_0x569340;if(_0xdc46e2[_0x540c79('0x2d')]!==_0x540c79('0x4')){const _0x1d9693={};return _0x1d9693[_0xdc46e2[_0x540c79('0x1e')]]={[Op[_0x540c79('0x32')]]:'%'+_0x35feb5[_0x540c79('0x6')][_0x540c79('0x2c')]+'%'},_0x1d9693;}})}));_0x30ca4=_[_0x569340('0xa')]({},_0x30ca4,_0x35feb5['options']);const _0x4abdc6={'where':_0x30ca4[_0x569340('0x2a')]};return db['VoiceCallReport']['count'](_0x4abdc6)[_0x569340('0x1c')](function(_0x29f223){const _0x154f5d=_0x569340;return _0xff4c09[_0x154f5d('0x18')]=_0x29f223,_0x35feb5[_0x154f5d('0x6')][_0x154f5d('0x29')]&&(_0x30ca4['include']=[{'attributes':['id',_0x154f5d('0x1e'),_0x154f5d('0x12'),_0x154f5d('0x28')],'model':db[_0x154f5d('0xb')],'as':_0x154f5d('0xb')}]),db[_0x154f5d('0x11')][_0x154f5d('0x1d')](_0x30ca4);})[_0x569340('0x1c')](function(_0x5f1d08){const _0x57f8ec=_0x569340;return _0xff4c09[_0x57f8ec('0x1b')]=_0x5f1d08,_0xff4c09;})[_0x569340('0x1c')](respondWithFilteredResult(_0x320fda,_0x30ca4))[_0x569340('0x38')](handleError(_0x320fda,null));},exports[_0xa2bf52('0x2f')]=function(_0x2e6341,_0x264796){const _0x436a1c=_0xa2bf52;let _0x530779={'raw':!![],'where':{'id':_0x2e6341[_0x436a1c('0x35')]['id']}};const _0x1daded={};return _0x1daded[_0x436a1c('0x27')]=_[_0x436a1c('0x21')](db[_0x436a1c('0x11')][_0x436a1c('0x37')]),_0x1daded[_0x436a1c('0x6')]=_[_0x436a1c('0x21')](_0x2e6341[_0x436a1c('0x6')]),_0x1daded['filters']=_[_0x436a1c('0x23')](_0x1daded[_0x436a1c('0x27')],_0x1daded[_0x436a1c('0x6')]),_0x530779['attributes']=_[_0x436a1c('0x23')](_0x1daded['model'],qs[_0x436a1c('0x33')](_0x2e6341[_0x436a1c('0x6')]['fields'])),_0x530779[_0x436a1c('0x25')]=_0x530779['attributes'][_0x436a1c('0x5')]?_0x530779[_0x436a1c('0x25')]:_0x1daded[_0x436a1c('0x27')],_0x2e6341[_0x436a1c('0x6')][_0x436a1c('0x29')]&&(_0x530779[_0x436a1c('0x31')]=[{'all':!![]}]),_0x530779=_[_0x436a1c('0xa')]({},_0x530779,_0x2e6341['options']),db['VoiceCallReport']['findOne'](_0x530779)[_0x436a1c('0x1c')](handleEntityNotFound(_0x264796,null))[_0x436a1c('0x1c')](respondWithResult(_0x264796,null))[_0x436a1c('0x38')](handleError(_0x264796,null));},exports[_0xa2bf52('0x7')]=function(_0xbfdf93,_0x234f4d){const _0x103883=_0xa2bf52;return db[_0x103883('0x11')][_0x103883('0x7')](_0xbfdf93[_0x103883('0x24')],{})[_0x103883('0x1c')](respondWithResult(_0x234f4d,0xc9))[_0x103883('0x38')](handleError(_0x234f4d,null));},exports[_0xa2bf52('0x13')]=function(_0x9a3e88,_0x298078){const _0x5598e2=_0xa2bf52;return db[_0x5598e2('0x11')][_0x5598e2('0x2e')]({'where':{'id':_0x9a3e88[_0x5598e2('0x35')]['id']}})[_0x5598e2('0x1c')](handleEntityNotFound(_0x298078,null))[_0x5598e2('0x1c')](removeEntity(_0x298078,null))['catch'](handleError(_0x298078,null));},exports[_0xa2bf52('0x17')]=function(_0x4e8cf0,_0x2d9720){const _0x346310=_0xa2bf52;return db['VoiceCallReport'][_0x346310('0x17')]()[_0x346310('0x1c')](respondWithResult(_0x2d9720,null))[_0x346310('0x38')](handleError(_0x2d9720,null));},exports[_0xa2bf52('0x20')]=function(_0x4f831d,_0x645fb0){const _0x49c256=_0xa2bf52;return _0x4f831d[_0x49c256('0x24')]['uniqueid']&&delete _0x4f831d[_0x49c256('0x24')]['uniqueid'],db[_0x49c256('0x11')][_0x49c256('0x2e')]({'where':{'uniqueid':_0x4f831d[_0x49c256('0x35')]['id'],'UserId':{[Op['or']]:[null,_0x4f831d[_0x49c256('0x22')]['id']]}}})['then'](handleEntityNotFound(_0x645fb0,null))[_0x49c256('0x1c')](saveUpdates(_0x4f831d[_0x49c256('0x24')],null))['then'](respondWithResult(_0x645fb0,null))[_0x49c256('0x38')](handleError(_0x645fb0,null));}; \ No newline at end of file +const a709_0x2e97=['keys','rawAttributes','offset','../../config/logger','params','body','name','intersection','findOne','nolimit','query','api','attributes','catch','includeAll','set','uniqueid','count','include','stack','then','sort','where','../../mysqldb','destroy','rows','User','create','describe','status','like','error','user','Content-Range','sequelize','filters','json','VoiceCallReport','VIRTUAL','filter','model','show','merge','end','update','findAll','map','fields','options','limit','type'];(function(_0x3abb86,_0x2e975f){const _0x4ea79b=function(_0x4067d0){while(--_0x4067d0){_0x3abb86['push'](_0x3abb86['shift']());}};_0x4ea79b(++_0x2e975f);}(a709_0x2e97,0xa8));const a709_0x4ea7=function(_0x3abb86,_0x2e975f){_0x3abb86=_0x3abb86-0x0;let _0x4ea79b=a709_0x2e97[_0x3abb86];return _0x4ea79b;};const _0x487e5a=a709_0x4ea7;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x487e5a('0x27'))(_0x487e5a('0x2f')),db=require(_0x487e5a('0x8'))['db'],{Op}=require(_0x487e5a('0x13'));function respondWithResult(_0x4067d0,_0x4acfe2){return _0x4acfe2=_0x4acfe2||0xc8,function(_0x5d990e){const _0x4b83fc=a709_0x4ea7;if(_0x5d990e)return _0x4067d0[_0x4b83fc('0xe')](_0x4acfe2)['json'](_0x5d990e);};}function respondWithFilteredResult(_0x2a0385,_0x913557){return function(_0x540d43){const _0x2a68fc=a709_0x4ea7;if(_0x540d43){const _0x41a6aa=_0x540d43['count'],_0xf1bdd1=_0x913557[_0x2a68fc('0x26')];let _0x1160ab=_0x913557[_0x2a68fc('0x26')]+_0x913557[_0x2a68fc('0x22')],_0x449fd0;return _0x1160ab>=_0x41a6aa?(_0x1160ab=_0x41a6aa,_0x449fd0=0xc8):_0x449fd0=0xce,_0x2a0385[_0x2a68fc('0xe')](_0x449fd0),_0x2a0385[_0x2a68fc('0x0')](_0x2a68fc('0x12'),_0xf1bdd1+'-'+_0x1160ab+'/'+_0x41a6aa)[_0x2a68fc('0x15')](_0x540d43);}return null;};}function saveUpdates(_0x53306e){return function(_0x154fd2){if(_0x154fd2)return _0x154fd2['update'](_0x53306e)['then'](function(_0x519354){return _0x519354;});return null;};}function removeEntity(_0x2d4adb){return function(_0x1aed39){const _0x342c31=a709_0x4ea7;if(_0x1aed39)return _0x1aed39['destroy']()[_0x342c31('0x5')](function(){const _0x356bc0=_0x342c31;_0x2d4adb['status'](0xcc)[_0x356bc0('0x1c')]();});};}function handleEntityNotFound(_0x5f0cfe){return function(_0xdaa51a){return!_0xdaa51a&&_0x5f0cfe['sendStatus'](0x194),_0xdaa51a;};}function handleError(_0x38daf4,_0xd55b3f){return _0xd55b3f=_0xd55b3f||0x1f4,function(_0x1c8b73){const _0xcdf113=a709_0x4ea7;logger[_0xcdf113('0x10')](_0x1c8b73[_0xcdf113('0x4')]),_0x1c8b73['name']&&delete _0x1c8b73[_0xcdf113('0x2a')],_0x38daf4[_0xcdf113('0xe')](_0xd55b3f)['send'](_0x1c8b73);};}exports['index']=function(_0x408cbf,_0x39be8f){const _0x4f139a=_0x487e5a;let _0x10c899={};const _0x1622c0={},_0x5348aa={'count':0x0,'rows':[]},_0x5021ca=_[_0x4f139a('0x1f')](db[_0x4f139a('0x16')][_0x4f139a('0x25')],function(_0x5a0196){const _0x3f1f13=_0x4f139a;return{'name':_0x5a0196['fieldName'],'type':_0x5a0196[_0x3f1f13('0x23')]['key']};});_0x1622c0[_0x4f139a('0x19')]=_[_0x4f139a('0x1f')](_0x5021ca,_0x4f139a('0x2a')),_0x1622c0[_0x4f139a('0x2e')]=_[_0x4f139a('0x24')](_0x408cbf[_0x4f139a('0x2e')]),_0x1622c0[_0x4f139a('0x14')]=_[_0x4f139a('0x2b')](_0x1622c0[_0x4f139a('0x19')],_0x1622c0[_0x4f139a('0x2e')]),_0x10c899[_0x4f139a('0x30')]=_['intersection'](_0x1622c0['model'],qs[_0x4f139a('0x20')](_0x408cbf['query'][_0x4f139a('0x20')])),_0x10c899[_0x4f139a('0x30')]=_0x10c899[_0x4f139a('0x30')]['length']?_0x10c899[_0x4f139a('0x30')]:_0x1622c0[_0x4f139a('0x19')];typeof _0x408cbf[_0x4f139a('0x2e')][_0x4f139a('0x2d')]==='undefined'&&(_0x10c899[_0x4f139a('0x22')]=qs[_0x4f139a('0x22')](_0x408cbf['query'][_0x4f139a('0x22')]),_0x10c899[_0x4f139a('0x26')]=qs['offset'](_0x408cbf[_0x4f139a('0x2e')][_0x4f139a('0x26')]));_0x10c899['order']=qs[_0x4f139a('0x6')](_0x408cbf['query'][_0x4f139a('0x6')]),_0x10c899[_0x4f139a('0x7')]=qs[_0x4f139a('0x14')](_['pick'](_0x408cbf['query'],_0x1622c0[_0x4f139a('0x14')]),_0x5021ca);_0x408cbf[_0x4f139a('0x2e')][_0x4f139a('0x18')]&&(_0x10c899[_0x4f139a('0x7')]=_['merge'](_0x10c899[_0x4f139a('0x7')],{[Op['or']]:_['map'](_0x5021ca,function(_0x6021df){const _0x219a11=_0x4f139a;if(_0x6021df[_0x219a11('0x23')]!==_0x219a11('0x17')){const _0x3bbed4={};return _0x3bbed4[_0x6021df[_0x219a11('0x2a')]]={[Op[_0x219a11('0xf')]]:'%'+_0x408cbf[_0x219a11('0x2e')][_0x219a11('0x18')]+'%'},_0x3bbed4;}})}));_0x10c899=_['merge']({},_0x10c899,_0x408cbf['options']);const _0x11e0d5={'where':_0x10c899[_0x4f139a('0x7')]};return db['VoiceCallReport']['count'](_0x11e0d5)['then'](function(_0x28b344){const _0x585491=_0x4f139a;return _0x5348aa[_0x585491('0x2')]=_0x28b344,_0x408cbf['query']['includeAll']&&(_0x10c899[_0x585491('0x3')]=[{'attributes':['id',_0x585491('0x2a'),'fullname','alias'],'model':db['User'],'as':_0x585491('0xb')}]),db[_0x585491('0x16')][_0x585491('0x1e')](_0x10c899);})[_0x4f139a('0x5')](function(_0x58f35d){const _0xe0435e=_0x4f139a;return _0x5348aa[_0xe0435e('0xa')]=_0x58f35d,_0x5348aa;})[_0x4f139a('0x5')](respondWithFilteredResult(_0x39be8f,_0x10c899))[_0x4f139a('0x31')](handleError(_0x39be8f,null));},exports[_0x487e5a('0x1a')]=function(_0x570916,_0x10a9c2){const _0x52295b=_0x487e5a;let _0x50725a={'raw':!![],'where':{'id':_0x570916['params']['id']}};const _0x217d2b={};return _0x217d2b[_0x52295b('0x19')]=_[_0x52295b('0x24')](db[_0x52295b('0x16')][_0x52295b('0x25')]),_0x217d2b[_0x52295b('0x2e')]=_[_0x52295b('0x24')](_0x570916[_0x52295b('0x2e')]),_0x217d2b[_0x52295b('0x14')]=_[_0x52295b('0x2b')](_0x217d2b['model'],_0x217d2b[_0x52295b('0x2e')]),_0x50725a[_0x52295b('0x30')]=_[_0x52295b('0x2b')](_0x217d2b[_0x52295b('0x19')],qs[_0x52295b('0x20')](_0x570916['query']['fields'])),_0x50725a[_0x52295b('0x30')]=_0x50725a[_0x52295b('0x30')]['length']?_0x50725a[_0x52295b('0x30')]:_0x217d2b['model'],_0x570916[_0x52295b('0x2e')][_0x52295b('0x32')]&&(_0x50725a['include']=[{'all':!![]}]),_0x50725a=_[_0x52295b('0x1b')]({},_0x50725a,_0x570916[_0x52295b('0x21')]),db['VoiceCallReport']['findOne'](_0x50725a)[_0x52295b('0x5')](handleEntityNotFound(_0x10a9c2,null))[_0x52295b('0x5')](respondWithResult(_0x10a9c2,null))[_0x52295b('0x31')](handleError(_0x10a9c2,null));},exports[_0x487e5a('0xc')]=function(_0x3212e9,_0x55fb72){const _0x50cf2b=_0x487e5a;return db['VoiceCallReport'][_0x50cf2b('0xc')](_0x3212e9[_0x50cf2b('0x29')],{})['then'](respondWithResult(_0x55fb72,0xc9))[_0x50cf2b('0x31')](handleError(_0x55fb72,null));},exports[_0x487e5a('0x9')]=function(_0x5d35d8,_0x41b7f3){const _0x53bb41=_0x487e5a;return db[_0x53bb41('0x16')][_0x53bb41('0x2c')]({'where':{'id':_0x5d35d8[_0x53bb41('0x28')]['id']}})[_0x53bb41('0x5')](handleEntityNotFound(_0x41b7f3,null))[_0x53bb41('0x5')](removeEntity(_0x41b7f3,null))['catch'](handleError(_0x41b7f3,null));},exports[_0x487e5a('0xd')]=function(_0x1c0d23,_0x39eaea){const _0x2bbd38=_0x487e5a;return db[_0x2bbd38('0x16')]['describe']()[_0x2bbd38('0x5')](respondWithResult(_0x39eaea,null))[_0x2bbd38('0x31')](handleError(_0x39eaea,null));},exports[_0x487e5a('0x1d')]=function(_0x57e7ee,_0x27dba0){const _0x4da308=_0x487e5a;return _0x57e7ee['body']['uniqueid']&&delete _0x57e7ee[_0x4da308('0x29')][_0x4da308('0x1')],db[_0x4da308('0x16')][_0x4da308('0x2c')]({'where':{'uniqueid':_0x57e7ee['params']['id'],'UserId':{[Op['or']]:[null,_0x57e7ee[_0x4da308('0x11')]['id']]}}})[_0x4da308('0x5')](handleEntityNotFound(_0x27dba0,null))[_0x4da308('0x5')](saveUpdates(_0x57e7ee[_0x4da308('0x29')],null))[_0x4da308('0x5')](respondWithResult(_0x27dba0,null))['catch'](handleError(_0x27dba0,null));}; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.model.js b/server/api/voiceCallReport/voiceCallReport.model.js index 90c56d6..02582aa 100644 --- a/server/api/voiceCallReport/voiceCallReport.model.js +++ b/server/api/voiceCallReport/voiceCallReport.model.js @@ -1 +1 @@ -const a710_0x5f00=['report_call','define','exports','VoiceCallReport','./voiceCallReport.attributes','uniqueid'];(function(_0x41b13f,_0x5f00a9){const _0x263adb=function(_0x411589){while(--_0x411589){_0x41b13f['push'](_0x41b13f['shift']());}};_0x263adb(++_0x5f00a9);}(a710_0x5f00,0x1a8));const a710_0x263a=function(_0x41b13f,_0x5f00a9){_0x41b13f=_0x41b13f-0x0;let _0x263adb=a710_0x5f00[_0x41b13f];return _0x263adb;};const _0x2a4b91=a710_0x263a;'use strict';const attributes=require(_0x2a4b91('0x0'));module[_0x2a4b91('0x4')]=function(_0x411589){const _0x2b9620=_0x2a4b91,_0x518250=_0x411589[_0x2b9620('0x3')](_0x2b9620('0x5'),attributes,{'tableName':_0x2b9620('0x2'),'paranoid':![],'indexes':[{'fields':[_0x2b9620('0x1')]}],'timestamps':!![]});return _0x518250;}; \ No newline at end of file +const a710_0x3d8f=['./voiceCallReport.attributes','VoiceCallReport','report_call','define','exports','uniqueid'];(function(_0x5b3f3b,_0x3d8fa8){const _0x1741f0=function(_0x4883b5){while(--_0x4883b5){_0x5b3f3b['push'](_0x5b3f3b['shift']());}};_0x1741f0(++_0x3d8fa8);}(a710_0x3d8f,0x66));const a710_0x1741=function(_0x5b3f3b,_0x3d8fa8){_0x5b3f3b=_0x5b3f3b-0x0;let _0x1741f0=a710_0x3d8f[_0x5b3f3b];return _0x1741f0;};const _0x194bf9=a710_0x1741;'use strict';const attributes=require(_0x194bf9('0x0'));module[_0x194bf9('0x4')]=function(_0x4883b5){const _0x1ffa29=_0x194bf9,_0x36ce3b=_0x4883b5[_0x1ffa29('0x3')](_0x1ffa29('0x1'),attributes,{'tableName':_0x1ffa29('0x2'),'paranoid':![],'indexes':[{'fields':[_0x1ffa29('0x5')]}],'timestamps':!![]});return _0x36ce3b;}; \ No newline at end of file diff --git a/server/api/voiceCallReport/voiceCallReport.rpc.js b/server/api/voiceCallReport/voiceCallReport.rpc.js index 9301329..f90cd83 100644 --- a/server/api/voiceCallReport/voiceCallReport.rpc.js +++ b/server/api/voiceCallReport/voiceCallReport.rpc.js @@ -1 +1 @@ -const a711_0x5903=['attributes','findAll','create','map','../../config/logger','message','debug','CreateVoiceCallReport','include','options','VoiceCallReport','../../mysqldb','stringify','lodash','info','GetVoiceCallReport','error','rpc','raw','limit','UpdateVoiceCallReport','catch','then','where','update','model','body'];(function(_0x2af404,_0x5903bf){const _0x25e302=function(_0x381685){while(--_0x381685){_0x2af404['push'](_0x2af404['shift']());}};_0x25e302(++_0x5903bf);}(a711_0x5903,0x106));const a711_0x25e3=function(_0x2af404,_0x5903bf){_0x2af404=_0x2af404-0x0;let _0x25e302=a711_0x5903[_0x2af404];return _0x25e302;};const _0x1eed6d=a711_0x25e3;'use strict';const _=require(_0x1eed6d('0x15')),db=require(_0x1eed6d('0x13'))['db'],logger=require(_0x1eed6d('0xc'))(_0x1eed6d('0x19'));exports[_0x1eed6d('0x17')]=function(_0x381685){const _0x39337d=this;return new Promise(function(_0x4b7301,_0xeee8ac){const _0x2d9365=a711_0x25e3;return db[_0x2d9365('0x12')][_0x2d9365('0x9')]({'raw':_0x381685[_0x2d9365('0x11')]?_0x381685['options'][_0x2d9365('0x1a')]===undefined?!![]:![]:!![],'where':_0x381685[_0x2d9365('0x11')]?_0x381685[_0x2d9365('0x11')][_0x2d9365('0x4')]||null:null,'attributes':_0x381685[_0x2d9365('0x11')]?_0x381685['options']['attributes']||null:null,'limit':_0x381685[_0x2d9365('0x11')]?_0x381685['options'][_0x2d9365('0x0')]||null:null,'include':_0x381685[_0x2d9365('0x11')]?_0x381685[_0x2d9365('0x11')][_0x2d9365('0x10')]?_[_0x2d9365('0xb')](_0x381685[_0x2d9365('0x11')]['include'],function(_0x46cebd){const _0xab1b2c=_0x2d9365;return{'model':db[_0x46cebd[_0xab1b2c('0x6')]],'as':_0x46cebd['as'],'attributes':_0x46cebd['attributes'],'include':_0x46cebd[_0xab1b2c('0x10')]?_['map'](_0x46cebd[_0xab1b2c('0x10')],function(_0x2253ca){const _0x107dfe=_0xab1b2c;return{'model':db[_0x2253ca[_0x107dfe('0x6')]],'as':_0x2253ca['as'],'attributes':_0x2253ca['attributes'],'include':_0x2253ca[_0x107dfe('0x10')]?_['map'](_0x2253ca[_0x107dfe('0x10')],function(_0x4e6440){const _0x49d9c4=_0x107dfe;return{'model':db[_0x4e6440[_0x49d9c4('0x6')]],'as':_0x4e6440['as'],'attributes':_0x4e6440[_0x49d9c4('0x8')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1b2c4d){const _0xafad71=_0x2d9365;logger[_0xafad71('0x16')](_0xafad71('0x17'),_0x381685),logger[_0xafad71('0xe')]('GetVoiceCallReport',_0x381685,JSON[_0xafad71('0x14')](_0x1b2c4d)),_0x4b7301(_0x1b2c4d);})[_0x2d9365('0x2')](function(_0x3a4753){const _0x4919cd=_0x2d9365;logger[_0x4919cd('0x18')](_0x4919cd('0x17'),_0x3a4753[_0x4919cd('0xd')],_0x381685),_0xeee8ac(_0x39337d['error'](0x1f4,_0x3a4753[_0x4919cd('0xd')]));});});},exports[_0x1eed6d('0xf')]=function(_0x109284){const _0x1a3dbe=this;return new Promise(function(_0x39683e,_0x36a7b6){const _0x47c9e4=a711_0x25e3;return db[_0x47c9e4('0x12')][_0x47c9e4('0xa')](_0x109284[_0x47c9e4('0x7')],{'raw':_0x109284[_0x47c9e4('0x11')]?_0x109284['options']['raw']===undefined?!![]:![]:!![]})[_0x47c9e4('0x3')](function(_0x3d14a1){const _0xf378d4=_0x47c9e4;logger[_0xf378d4('0x16')](_0xf378d4('0xf'),_0x109284),logger['debug'](_0xf378d4('0xf'),_0x109284,JSON['stringify'](_0x3d14a1)),_0x39683e(_0x3d14a1);})['catch'](function(_0x45feb4){const _0x2b30a4=_0x47c9e4;logger[_0x2b30a4('0x18')](_0x2b30a4('0xf'),_0x45feb4['message'],_0x109284),_0x36a7b6(_0x1a3dbe[_0x2b30a4('0x18')](0x1f4,_0x45feb4['message']));});});},exports[_0x1eed6d('0x1')]=function(_0x386caf){const _0x935005=this;return new Promise(function(_0x5f4e21,_0x453e10){const _0x2259f9=a711_0x25e3;return db['VoiceCallReport'][_0x2259f9('0x5')](_0x386caf[_0x2259f9('0x7')],{'raw':_0x386caf[_0x2259f9('0x11')]?_0x386caf[_0x2259f9('0x11')][_0x2259f9('0x1a')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x386caf[_0x2259f9('0x11')]?_0x386caf['options'][_0x2259f9('0x4')]||null:null,'attributes':_0x386caf[_0x2259f9('0x11')]?_0x386caf[_0x2259f9('0x11')][_0x2259f9('0x8')]||null:null,'limit':_0x386caf[_0x2259f9('0x11')]?_0x386caf[_0x2259f9('0x11')][_0x2259f9('0x0')]||null:null})['then'](function(_0x1b59d2){const _0x41ee66=_0x2259f9;logger[_0x41ee66('0x16')](_0x41ee66('0x1'),_0x386caf),logger['debug'](_0x41ee66('0x1'),_0x386caf,JSON[_0x41ee66('0x14')](_0x1b59d2)),_0x5f4e21(_0x1b59d2);})[_0x2259f9('0x2')](function(_0x185cf4){const _0x2baddb=_0x2259f9;logger[_0x2baddb('0x18')]('UpdateVoiceCallReport',_0x185cf4['message'],_0x386caf),_0x453e10(_0x935005[_0x2baddb('0x18')](0x1f4,_0x185cf4[_0x2baddb('0xd')]));});});}; \ No newline at end of file +const a711_0x33af=['model','findAll','create','VoiceCallReport','message','map','then','attributes','../../mysqldb','raw','../../config/logger','UpdateVoiceCallReport','debug','error','where','CreateVoiceCallReport','update','catch','GetVoiceCallReport','stringify','body','rpc','info','lodash','include','options'];(function(_0x311d48,_0x33af61){const _0xe7633b=function(_0x25f283){while(--_0x25f283){_0x311d48['push'](_0x311d48['shift']());}};_0xe7633b(++_0x33af61);}(a711_0x33af,0x133));const a711_0xe763=function(_0x311d48,_0x33af61){_0x311d48=_0x311d48-0x0;let _0xe7633b=a711_0x33af[_0x311d48];return _0xe7633b;};const _0x231128=a711_0xe763;'use strict';const _=require(_0x231128('0x2')),db=require(_0x231128('0xd'))['db'],logger=require(_0x231128('0xf'))(_0x231128('0x0'));exports['GetVoiceCallReport']=function(_0x25f283){const _0x247921=this;return new Promise(function(_0x33f688,_0x413481){const _0x5e405c=a711_0xe763;return db['VoiceCallReport'][_0x5e405c('0x6')]({'raw':_0x25f283['options']?_0x25f283['options']['raw']===undefined?!![]:![]:!![],'where':_0x25f283[_0x5e405c('0x4')]?_0x25f283['options'][_0x5e405c('0x13')]||null:null,'attributes':_0x25f283[_0x5e405c('0x4')]?_0x25f283[_0x5e405c('0x4')][_0x5e405c('0xc')]||null:null,'limit':_0x25f283[_0x5e405c('0x4')]?_0x25f283['options']['limit']||null:null,'include':_0x25f283[_0x5e405c('0x4')]?_0x25f283['options'][_0x5e405c('0x3')]?_[_0x5e405c('0xa')](_0x25f283[_0x5e405c('0x4')][_0x5e405c('0x3')],function(_0x30014b){const _0x3d2def=_0x5e405c;return{'model':db[_0x30014b[_0x3d2def('0x5')]],'as':_0x30014b['as'],'attributes':_0x30014b[_0x3d2def('0xc')],'include':_0x30014b[_0x3d2def('0x3')]?_[_0x3d2def('0xa')](_0x30014b[_0x3d2def('0x3')],function(_0x8390c4){const _0x36974b=_0x3d2def;return{'model':db[_0x8390c4[_0x36974b('0x5')]],'as':_0x8390c4['as'],'attributes':_0x8390c4[_0x36974b('0xc')],'include':_0x8390c4[_0x36974b('0x3')]?_['map'](_0x8390c4['include'],function(_0x2a7af1){const _0x47b5ce=_0x36974b;return{'model':db[_0x2a7af1['model']],'as':_0x2a7af1['as'],'attributes':_0x2a7af1[_0x47b5ce('0xc')]};}):[]};}):[]};}):[]:[]})[_0x5e405c('0xb')](function(_0x5b3829){const _0x1845a3=_0x5e405c;logger[_0x1845a3('0x1')](_0x1845a3('0x17'),_0x25f283),logger[_0x1845a3('0x11')](_0x1845a3('0x17'),_0x25f283,JSON[_0x1845a3('0x18')](_0x5b3829)),_0x33f688(_0x5b3829);})[_0x5e405c('0x16')](function(_0x37838f){const _0x4431de=_0x5e405c;logger['error'](_0x4431de('0x17'),_0x37838f[_0x4431de('0x9')],_0x25f283),_0x413481(_0x247921[_0x4431de('0x12')](0x1f4,_0x37838f[_0x4431de('0x9')]));});});},exports[_0x231128('0x14')]=function(_0x11599b){const _0x2db0f8=this;return new Promise(function(_0x1f7656,_0x57e4b8){const _0x5ee301=a711_0xe763;return db[_0x5ee301('0x8')][_0x5ee301('0x7')](_0x11599b['body'],{'raw':_0x11599b[_0x5ee301('0x4')]?_0x11599b['options'][_0x5ee301('0xe')]===undefined?!![]:![]:!![]})[_0x5ee301('0xb')](function(_0xf8e724){const _0x37b1aa=_0x5ee301;logger[_0x37b1aa('0x1')](_0x37b1aa('0x14'),_0x11599b),logger[_0x37b1aa('0x11')](_0x37b1aa('0x14'),_0x11599b,JSON[_0x37b1aa('0x18')](_0xf8e724)),_0x1f7656(_0xf8e724);})[_0x5ee301('0x16')](function(_0x1f31e8){const _0x39248a=_0x5ee301;logger[_0x39248a('0x12')](_0x39248a('0x14'),_0x1f31e8[_0x39248a('0x9')],_0x11599b),_0x57e4b8(_0x2db0f8[_0x39248a('0x12')](0x1f4,_0x1f31e8[_0x39248a('0x9')]));});});},exports['UpdateVoiceCallReport']=function(_0xf4f9b8){const _0x3d2670=this;return new Promise(function(_0xaa211d,_0x4a9333){const _0x3b2b44=a711_0xe763;return db[_0x3b2b44('0x8')][_0x3b2b44('0x15')](_0xf4f9b8[_0x3b2b44('0x19')],{'raw':_0xf4f9b8['options']?_0xf4f9b8[_0x3b2b44('0x4')][_0x3b2b44('0xe')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0xf4f9b8['options']?_0xf4f9b8['options'][_0x3b2b44('0x13')]||null:null,'attributes':_0xf4f9b8[_0x3b2b44('0x4')]?_0xf4f9b8[_0x3b2b44('0x4')][_0x3b2b44('0xc')]||null:null,'limit':_0xf4f9b8['options']?_0xf4f9b8[_0x3b2b44('0x4')]['limit']||null:null})[_0x3b2b44('0xb')](function(_0x118b35){const _0xf26cd9=_0x3b2b44;logger[_0xf26cd9('0x1')]('UpdateVoiceCallReport',_0xf4f9b8),logger[_0xf26cd9('0x11')](_0xf26cd9('0x10'),_0xf4f9b8,JSON['stringify'](_0x118b35)),_0xaa211d(_0x118b35);})[_0x3b2b44('0x16')](function(_0x2a31d0){const _0x22589f=_0x3b2b44;logger['error'](_0x22589f('0x10'),_0x2a31d0[_0x22589f('0x9')],_0xf4f9b8),_0x4a9333(_0x3d2670['error'](0x1f4,_0x2a31d0[_0x22589f('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/index.js b/server/api/voiceChanSpy/index.js index 21061fd..9547b35 100644 --- a/server/api/voiceChanSpy/index.js +++ b/server/api/voiceChanSpy/index.js @@ -1 +1 @@ -const a712_0xf655=['get','index','exports','../../components/auth/service','create','Router','update','express','post','isAuthenticated','/:id'];(function(_0x1a8810,_0xf6559b){const _0x63faae=function(_0x1b23a7){while(--_0x1b23a7){_0x1a8810['push'](_0x1a8810['shift']());}};_0x63faae(++_0xf6559b);}(a712_0xf655,0xb2));const a712_0x63fa=function(_0x1a8810,_0xf6559b){_0x1a8810=_0x1a8810-0x0;let _0x63faae=a712_0xf655[_0x1a8810];return _0x63faae;};const _0x5edc20=a712_0x63fa;'use strict';const express=require(_0x5edc20('0x5')),router=express[_0x5edc20('0x3')](),auth=require(_0x5edc20('0x1')),controller=require('./voiceChanSpy.controller');router[_0x5edc20('0x9')]('/',auth[_0x5edc20('0x7')](),controller[_0x5edc20('0xa')]),router[_0x5edc20('0x9')](_0x5edc20('0x8'),auth['isAuthenticated'](),controller['show']),router[_0x5edc20('0x6')]('/',auth['isAuthenticated'](),controller[_0x5edc20('0x2')]),router['put'](_0x5edc20('0x8'),auth[_0x5edc20('0x7')](),controller[_0x5edc20('0x4')]),router['delete'](_0x5edc20('0x8'),auth[_0x5edc20('0x7')](),controller['destroy']),module[_0x5edc20('0x0')]=router; \ No newline at end of file +const a712_0x2592=['/:id','isAuthenticated','index','destroy','post','../../components/auth/service','./voiceChanSpy.controller','get','delete','put','update','show'];(function(_0x31444d,_0x2592aa){const _0x35e59f=function(_0x54de5d){while(--_0x54de5d){_0x31444d['push'](_0x31444d['shift']());}};_0x35e59f(++_0x2592aa);}(a712_0x2592,0x15a));const a712_0x35e5=function(_0x31444d,_0x2592aa){_0x31444d=_0x31444d-0x0;let _0x35e59f=a712_0x2592[_0x31444d];return _0x35e59f;};const _0x1618e0=a712_0x35e5;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x1618e0('0x7')),controller=require(_0x1618e0('0x8'));router[_0x1618e0('0x9')]('/',auth[_0x1618e0('0x3')](),controller[_0x1618e0('0x4')]),router['get'](_0x1618e0('0x2'),auth[_0x1618e0('0x3')](),controller[_0x1618e0('0x1')]),router[_0x1618e0('0x6')]('/',auth[_0x1618e0('0x3')](),controller['create']),router[_0x1618e0('0xb')](_0x1618e0('0x2'),auth[_0x1618e0('0x3')](),controller[_0x1618e0('0x0')]),router[_0x1618e0('0xa')](_0x1618e0('0x2'),auth[_0x1618e0('0x3')](),controller[_0x1618e0('0x5')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.attributes.js b/server/api/voiceChanSpy/voiceChanSpy.attributes.js index 792c1f9..cfb6014 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.attributes.js +++ b/server/api/voiceChanSpy/voiceChanSpy.attributes.js @@ -1 +1 @@ -const a713_0x2e9c=['join','STRING','split','options','setDataValue','exports','BOOLEAN','getDataValue','name'];(function(_0x55f188,_0x2e9c3e){const _0x148abb=function(_0x565261){while(--_0x565261){_0x55f188['push'](_0x55f188['shift']());}};_0x148abb(++_0x2e9c3e);}(a713_0x2e9c,0xf1));const a713_0x148a=function(_0x55f188,_0x2e9c3e){_0x55f188=_0x55f188-0x0;let _0x148abb=a713_0x2e9c[_0x55f188];return _0x148abb;};const _0x7fb485=a713_0x148a;'use strict';const Sequelize=require('sequelize');module[_0x7fb485('0x7')]={'name':{'type':Sequelize[_0x7fb485('0x3')]},'prefix':{'type':Sequelize[_0x7fb485('0x3')],'unique':_0x7fb485('0x1'),'allowNull':![]},'options':{'type':Sequelize['STRING'],'set':function(_0x565261){const _0x16973f=_0x7fb485;this[_0x16973f('0x6')]('options',_0x565261?_0x565261[_0x16973f('0x2')](''):[]);},'get':function(){const _0x597eaa=_0x7fb485;return this[_0x597eaa('0x0')](_0x597eaa('0x5'))?this[_0x597eaa('0x0')](_0x597eaa('0x5'))[_0x597eaa('0x4')](''):[];}},'auth':{'type':Sequelize[_0x7fb485('0x8')],'defaultValue':![]},'password':{'type':Sequelize[_0x7fb485('0x3')]},'record':{'type':Sequelize[_0x7fb485('0x8')],'defaultValue':![]},'recordingFormat':{'type':Sequelize[_0x7fb485('0x3')]},'description':{'type':Sequelize[_0x7fb485('0x3')]}}; \ No newline at end of file +const a713_0x4fde=['sequelize','STRING','join','getDataValue','name','setDataValue','exports','BOOLEAN','options'];(function(_0x2e9080,_0x4fde1d){const _0x219beb=function(_0x5ba7bc){while(--_0x5ba7bc){_0x2e9080['push'](_0x2e9080['shift']());}};_0x219beb(++_0x4fde1d);}(a713_0x4fde,0xfd));const a713_0x219b=function(_0x2e9080,_0x4fde1d){_0x2e9080=_0x2e9080-0x0;let _0x219beb=a713_0x4fde[_0x2e9080];return _0x219beb;};const _0x4bf003=a713_0x219b;'use strict';const Sequelize=require(_0x4bf003('0x8'));module[_0x4bf003('0x5')]={'name':{'type':Sequelize[_0x4bf003('0x0')]},'prefix':{'type':Sequelize['STRING'],'unique':_0x4bf003('0x3'),'allowNull':![]},'options':{'type':Sequelize['STRING'],'set':function(_0x5ba7bc){const _0x307b77=_0x4bf003;this[_0x307b77('0x4')](_0x307b77('0x7'),_0x5ba7bc?_0x5ba7bc[_0x307b77('0x1')](''):[]);},'get':function(){const _0x311571=_0x4bf003;return this['getDataValue'](_0x311571('0x7'))?this[_0x311571('0x2')](_0x311571('0x7'))['split'](''):[];}},'auth':{'type':Sequelize[_0x4bf003('0x6')],'defaultValue':![]},'password':{'type':Sequelize[_0x4bf003('0x0')]},'record':{'type':Sequelize[_0x4bf003('0x6')],'defaultValue':![]},'recordingFormat':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x4bf003('0x0')]}}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.controller.js b/server/api/voiceChanSpy/voiceChanSpy.controller.js index 16db3b1..7abba77 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.controller.js +++ b/server/api/voiceChanSpy/voiceChanSpy.controller.js @@ -1 +1 @@ -const a714_0xe047=['index','merge','offset','Content-Range','fields','sequelize','Unable\x20to\x20retrieve\x20the\x20current\x20user','json','VoiceChanSpy','findOne','update','end','like','model','map','catch','autoAssociation','order','destroy','key','error','nolimit','count','ChanSpies','length','role','../../mysqldb','then','query','set','get','filters','options','sendStatus','VIRTUAL','include','params','body','rows','keys','limit','sort','where','name','../../components/parsers/qs','show','findAll','UserProfileSection','attributes','UserProfileResource','pick','filter','api','intersection','userProfileId','fieldName','rawAttributes','includeAll','create','status'];(function(_0x36696c,_0xe047f0){const _0x20b81c=function(_0x322a10){while(--_0x322a10){_0x36696c['push'](_0x36696c['shift']());}};_0x20b81c(++_0xe047f0);}(a714_0xe047,0x197));const a714_0x20b8=function(_0x36696c,_0xe047f0){_0x36696c=_0x36696c-0x0;let _0x20b81c=a714_0xe047[_0x36696c];return _0x20b81c;};const _0x3fcc1d=a714_0x20b8;'use strict';const _=require('lodash'),qs=require(_0x3fcc1d('0x39')),logger=require('../../config/logger')(_0x3fcc1d('0x5')),db=require(_0x3fcc1d('0x27'))['db'],{Op}=require(_0x3fcc1d('0x12'));function respondWithResult(_0x322a10,_0x3c1d9c){return _0x3c1d9c=_0x3c1d9c||0xc8,function(_0x1a39b0){const _0x5b0755=a714_0x20b8;if(_0x1a39b0)return _0x322a10[_0x5b0755('0xc')](_0x3c1d9c)[_0x5b0755('0x14')](_0x1a39b0);};}function respondWithFilteredResult(_0x2c2012,_0x56c5fb){return function(_0x2d4e5f){const _0x53b54f=a714_0x20b8;if(_0x2d4e5f){const _0x34eae8=_0x2d4e5f[_0x53b54f('0x23')],_0x465be1=_0x56c5fb['offset'];let _0x342104=_0x56c5fb[_0x53b54f('0xf')]+_0x56c5fb[_0x53b54f('0x35')],_0x58e86f;return _0x342104>=_0x34eae8?(_0x342104=_0x34eae8,_0x58e86f=0xc8):_0x58e86f=0xce,_0x2c2012['status'](_0x58e86f),_0x2c2012[_0x53b54f('0x2a')](_0x53b54f('0x10'),_0x465be1+'-'+_0x342104+'/'+_0x34eae8)[_0x53b54f('0x14')](_0x2d4e5f);}return null;};}function saveUpdates(_0x59d3ba){return function(_0x2210bd){if(_0x2210bd)return _0x2210bd['update'](_0x59d3ba)['then'](function(_0x2364a8){return _0x2364a8;});return null;};}function removeEntity(_0x2f400e){return function(_0x31b61a){const _0x33c61d=a714_0x20b8;if(_0x31b61a)return _0x31b61a['destroy']()[_0x33c61d('0x28')](function(){const _0x3923ca=_0x33c61d,_0x152116=_0x31b61a['get']({'plain':!![]}),_0x2dd8da=_0x3923ca('0x24');return db[_0x3923ca('0x2')][_0x3923ca('0x1f')]({'where':{'type':_0x2dd8da,'resourceId':_0x152116['id']}})[_0x3923ca('0x28')](function(){return _0x31b61a;});})[_0x33c61d('0x28')](function(){const _0x1b6f4a=_0x33c61d;_0x2f400e[_0x1b6f4a('0xc')](0xcc)[_0x1b6f4a('0x18')]();});};}function handleEntityNotFound(_0x5e5908){return function(_0x446d98){const _0x58aff2=a714_0x20b8;return!_0x446d98&&_0x5e5908[_0x58aff2('0x2e')](0x194),_0x446d98;};}function handleError(_0x45b4c2,_0x16632d){return _0x16632d=_0x16632d||0x1f4,function(_0x21cdc3){const _0x1420fc=a714_0x20b8;logger[_0x1420fc('0x21')](_0x21cdc3['stack']),_0x21cdc3[_0x1420fc('0x38')]&&delete _0x21cdc3['name'],_0x45b4c2[_0x1420fc('0xc')](_0x16632d)['send'](_0x21cdc3);};}exports[_0x3fcc1d('0xd')]=function(_0x3f899d,_0x2f7a30){const _0x59b22a=_0x3fcc1d;let _0x3a2f32={};const _0x384315={},_0x3a79ec={'count':0x0,'rows':[]},_0x26b7db=_[_0x59b22a('0x1b')](db[_0x59b22a('0x15')][_0x59b22a('0x9')],function(_0x59ac27){const _0x51d83f=_0x59b22a;return{'name':_0x59ac27[_0x51d83f('0x8')],'type':_0x59ac27['type'][_0x51d83f('0x20')]};});_0x384315['model']=_['map'](_0x26b7db,'name'),_0x384315[_0x59b22a('0x29')]=_[_0x59b22a('0x34')](_0x3f899d[_0x59b22a('0x29')]),_0x384315['filters']=_[_0x59b22a('0x6')](_0x384315[_0x59b22a('0x1a')],_0x384315[_0x59b22a('0x29')]),_0x3a2f32['attributes']=_[_0x59b22a('0x6')](_0x384315['model'],qs['fields'](_0x3f899d['query'][_0x59b22a('0x11')])),_0x3a2f32[_0x59b22a('0x1')]=_0x3a2f32['attributes'][_0x59b22a('0x25')]?_0x3a2f32[_0x59b22a('0x1')]:_0x384315['model'];typeof _0x3f899d[_0x59b22a('0x29')][_0x59b22a('0x22')]==='undefined'&&(_0x3a2f32[_0x59b22a('0x35')]=qs[_0x59b22a('0x35')](_0x3f899d[_0x59b22a('0x29')][_0x59b22a('0x35')]),_0x3a2f32[_0x59b22a('0xf')]=qs[_0x59b22a('0xf')](_0x3f899d[_0x59b22a('0x29')]['offset']));_0x3a2f32[_0x59b22a('0x1e')]=qs[_0x59b22a('0x36')](_0x3f899d[_0x59b22a('0x29')]['sort']),_0x3a2f32[_0x59b22a('0x37')]=qs['filters'](_[_0x59b22a('0x3')](_0x3f899d[_0x59b22a('0x29')],_0x384315[_0x59b22a('0x2c')]),_0x26b7db);_0x3f899d['query'][_0x59b22a('0x4')]&&(_0x3a2f32['where']=_[_0x59b22a('0xe')](_0x3a2f32[_0x59b22a('0x37')],{[Op['or']]:_[_0x59b22a('0x1b')](_0x26b7db,function(_0x2a5d2b){const _0x49ab9a=_0x59b22a;if(_0x2a5d2b['type']!==_0x49ab9a('0x2f')){const _0x4a83f4={};return _0x4a83f4[_0x2a5d2b[_0x49ab9a('0x38')]]={[Op[_0x49ab9a('0x19')]]:'%'+_0x3f899d[_0x49ab9a('0x29')][_0x49ab9a('0x4')]+'%'},_0x4a83f4;}})}));_0x3a2f32=_[_0x59b22a('0xe')]({},_0x3a2f32,_0x3f899d[_0x59b22a('0x2d')]);const _0x33bc75={'where':_0x3a2f32['where']};return db[_0x59b22a('0x15')][_0x59b22a('0x23')](_0x33bc75)[_0x59b22a('0x28')](function(_0x53adf8){const _0x367dca=_0x59b22a;return _0x3a79ec[_0x367dca('0x23')]=_0x53adf8,_0x3f899d['query'][_0x367dca('0xa')]&&(_0x3a2f32['include']=[{'all':!![]}]),db[_0x367dca('0x15')][_0x367dca('0x3b')](_0x3a2f32);})['then'](function(_0x9ae49){const _0x2ea098=_0x59b22a;return _0x3a79ec[_0x2ea098('0x33')]=_0x9ae49,_0x3a79ec;})[_0x59b22a('0x28')](respondWithFilteredResult(_0x2f7a30,_0x3a2f32))[_0x59b22a('0x1c')](handleError(_0x2f7a30,null));},exports[_0x3fcc1d('0x3a')]=function(_0x1de52d,_0x50c0a1){const _0x18a3c5=_0x3fcc1d;let _0x3a3822={'raw':![],'where':{'id':_0x1de52d[_0x18a3c5('0x31')]['id']}};const _0x4a3f6b={};return _0x4a3f6b[_0x18a3c5('0x1a')]=_[_0x18a3c5('0x34')](db['VoiceChanSpy'][_0x18a3c5('0x9')]),_0x4a3f6b[_0x18a3c5('0x29')]=_[_0x18a3c5('0x34')](_0x1de52d[_0x18a3c5('0x29')]),_0x4a3f6b[_0x18a3c5('0x2c')]=_[_0x18a3c5('0x6')](_0x4a3f6b['model'],_0x4a3f6b[_0x18a3c5('0x29')]),_0x3a3822['attributes']=_['intersection'](_0x4a3f6b[_0x18a3c5('0x1a')],qs[_0x18a3c5('0x11')](_0x1de52d['query']['fields'])),_0x3a3822[_0x18a3c5('0x1')]=_0x3a3822['attributes'][_0x18a3c5('0x25')]?_0x3a3822[_0x18a3c5('0x1')]:_0x4a3f6b['model'],_0x1de52d[_0x18a3c5('0x29')][_0x18a3c5('0xa')]&&(_0x3a3822[_0x18a3c5('0x30')]=[{'all':!![]}]),_0x3a3822=_[_0x18a3c5('0xe')]({},_0x3a3822,_0x1de52d['options']),db[_0x18a3c5('0x15')]['findOne'](_0x3a3822)[_0x18a3c5('0x28')](handleEntityNotFound(_0x50c0a1,null))[_0x18a3c5('0x28')](respondWithResult(_0x50c0a1,null))[_0x18a3c5('0x1c')](handleError(_0x50c0a1,null));},exports[_0x3fcc1d('0xb')]=function(_0xc24e18,_0x50f52f){const _0x4906d7=_0x3fcc1d;return db[_0x4906d7('0x15')][_0x4906d7('0xb')](_0xc24e18[_0x4906d7('0x32')],{})[_0x4906d7('0x28')](function(_0x175335){const _0x365869=_0x4906d7,_0x54a4fb=_0xc24e18['user']['get']({'plain':!![]});if(!_0x54a4fb)throw new Error(_0x365869('0x13'));if(_0x54a4fb[_0x365869('0x26')]==='user'){const _0x7f7d30=_0x175335[_0x365869('0x2b')]({'plain':!![]}),_0x51ce84='ChanSpies';return db[_0x365869('0x0')][_0x365869('0x16')]({'where':{'name':_0x51ce84,'userProfileId':_0x54a4fb[_0x365869('0x7')]},'raw':!![]})['then'](function(_0x28df62){const _0x3f4809=_0x365869;return _0x28df62&&_0x28df62[_0x3f4809('0x1d')]===0x0?db['UserProfileResource'][_0x3f4809('0xb')]({'name':_0x7f7d30[_0x3f4809('0x38')],'resourceId':_0x7f7d30['id'],'type':_0x28df62[_0x3f4809('0x38')],'sectionId':_0x28df62['id']},{})[_0x3f4809('0x28')](function(){return _0x175335;}):_0x175335;})[_0x365869('0x1c')](function(_0x6c1941){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x6c1941);throw _0x6c1941;});}return _0x175335;})[_0x4906d7('0x28')](respondWithResult(_0x50f52f,0xc9))[_0x4906d7('0x1c')](handleError(_0x50f52f,null));},exports[_0x3fcc1d('0x17')]=function(_0x145b1f,_0x432948){const _0x2bba67=_0x3fcc1d;return _0x145b1f[_0x2bba67('0x32')]['id']&&delete _0x145b1f[_0x2bba67('0x32')]['id'],db[_0x2bba67('0x15')]['findOne']({'where':{'id':_0x145b1f[_0x2bba67('0x31')]['id']}})[_0x2bba67('0x28')](handleEntityNotFound(_0x432948,null))[_0x2bba67('0x28')](saveUpdates(_0x145b1f[_0x2bba67('0x32')],null))[_0x2bba67('0x28')](respondWithResult(_0x432948,null))[_0x2bba67('0x1c')](handleError(_0x432948,null));},exports[_0x3fcc1d('0x1f')]=function(_0x2dc9da,_0x48fc9c){const _0x5058af=_0x3fcc1d;return db[_0x5058af('0x15')][_0x5058af('0x16')]({'where':{'id':_0x2dc9da[_0x5058af('0x31')]['id']}})[_0x5058af('0x28')](handleEntityNotFound(_0x48fc9c,null))[_0x5058af('0x28')](removeEntity(_0x48fc9c,null))[_0x5058af('0x1c')](handleError(_0x48fc9c,null));}; \ No newline at end of file +const a714_0x2d10=['../../mysqldb','user','create','update','autoAssociation','VoiceChanSpy','rawAttributes','rows','catch','../../config/logger','count','model','params','attributes','where','nolimit','options','role','limit','destroy','name','filters','get','lodash','offset','pick','index','end','merge','includeAll','sort','keys','VIRTUAL','ChanSpies','map','type','undefined','api','then','sequelize','findAll','filter','UserProfileResource','../../components/parsers/qs','like','length','set','sendStatus','Content-Range','query','status','stack','error','body','json','include','findOne','intersection','fields'];(function(_0x4fc2f0,_0x2d10dc){const _0x2b7b17=function(_0x92a3b9){while(--_0x92a3b9){_0x4fc2f0['push'](_0x4fc2f0['shift']());}};_0x2b7b17(++_0x2d10dc);}(a714_0x2d10,0xcc));const a714_0x2b7b=function(_0x4fc2f0,_0x2d10dc){_0x4fc2f0=_0x4fc2f0-0x0;let _0x2b7b17=a714_0x2d10[_0x4fc2f0];return _0x2b7b17;};const _0x15eec0=a714_0x2b7b;'use strict';const _=require(_0x15eec0('0x37')),qs=require(_0x15eec0('0x10')),logger=require(_0x15eec0('0x29'))(_0x15eec0('0xa')),db=require(_0x15eec0('0x20'))['db'],{Op}=require(_0x15eec0('0xc'));function respondWithResult(_0x92a3b9,_0xe8da1f){return _0xe8da1f=_0xe8da1f||0xc8,function(_0x232abb){const _0x475fc8=a714_0x2b7b;if(_0x232abb)return _0x92a3b9[_0x475fc8('0x17')](_0xe8da1f)[_0x475fc8('0x1b')](_0x232abb);};}function respondWithFilteredResult(_0x504f42,_0x5d0880){return function(_0x70b17b){const _0x5ddbf0=a714_0x2b7b;if(_0x70b17b){const _0x17ca6c=_0x70b17b['count'],_0xf2a828=_0x5d0880[_0x5ddbf0('0x38')];let _0x52ce7d=_0x5d0880[_0x5ddbf0('0x38')]+_0x5d0880[_0x5ddbf0('0x32')],_0x2ab956;return _0x52ce7d>=_0x17ca6c?(_0x52ce7d=_0x17ca6c,_0x2ab956=0xc8):_0x2ab956=0xce,_0x504f42['status'](_0x2ab956),_0x504f42[_0x5ddbf0('0x13')](_0x5ddbf0('0x15'),_0xf2a828+'-'+_0x52ce7d+'/'+_0x17ca6c)[_0x5ddbf0('0x1b')](_0x70b17b);}return null;};}function saveUpdates(_0x105d7c){return function(_0x258837){const _0x24e999=a714_0x2b7b;if(_0x258837)return _0x258837[_0x24e999('0x23')](_0x105d7c)['then'](function(_0x2e9e05){return _0x2e9e05;});return null;};}function removeEntity(_0x4663b7){return function(_0x552910){const _0x501603=a714_0x2b7b;if(_0x552910)return _0x552910['destroy']()[_0x501603('0xb')](function(){const _0x13e8b7=_0x501603,_0xc71f0=_0x552910[_0x13e8b7('0x36')]({'plain':!![]}),_0x3e8867=_0x13e8b7('0x6');return db[_0x13e8b7('0xf')]['destroy']({'where':{'type':_0x3e8867,'resourceId':_0xc71f0['id']}})[_0x13e8b7('0xb')](function(){return _0x552910;});})['then'](function(){const _0x2933c1=_0x501603;_0x4663b7[_0x2933c1('0x17')](0xcc)[_0x2933c1('0x0')]();});};}function handleEntityNotFound(_0x1dbb2a){return function(_0x3841be){const _0x48f219=a714_0x2b7b;return!_0x3841be&&_0x1dbb2a[_0x48f219('0x14')](0x194),_0x3841be;};}function handleError(_0x22c22d,_0x37e184){return _0x37e184=_0x37e184||0x1f4,function(_0x14e651){const _0x2f0e44=a714_0x2b7b;logger[_0x2f0e44('0x19')](_0x14e651[_0x2f0e44('0x18')]),_0x14e651['name']&&delete _0x14e651[_0x2f0e44('0x34')],_0x22c22d[_0x2f0e44('0x17')](_0x37e184)['send'](_0x14e651);};}exports[_0x15eec0('0x3a')]=function(_0x7e3e40,_0xd61472){const _0x97d901=_0x15eec0;let _0x53cf94={};const _0x3ba044={},_0x1e3a6e={'count':0x0,'rows':[]},_0x4e27a7=_[_0x97d901('0x7')](db['VoiceChanSpy'][_0x97d901('0x26')],function(_0x4fb4bb){const _0x3b224e=_0x97d901;return{'name':_0x4fb4bb['fieldName'],'type':_0x4fb4bb[_0x3b224e('0x8')]['key']};});_0x3ba044[_0x97d901('0x2b')]=_['map'](_0x4e27a7,'name'),_0x3ba044[_0x97d901('0x16')]=_[_0x97d901('0x4')](_0x7e3e40[_0x97d901('0x16')]),_0x3ba044[_0x97d901('0x35')]=_[_0x97d901('0x1e')](_0x3ba044['model'],_0x3ba044['query']),_0x53cf94['attributes']=_[_0x97d901('0x1e')](_0x3ba044[_0x97d901('0x2b')],qs[_0x97d901('0x1f')](_0x7e3e40[_0x97d901('0x16')][_0x97d901('0x1f')])),_0x53cf94[_0x97d901('0x2d')]=_0x53cf94[_0x97d901('0x2d')][_0x97d901('0x12')]?_0x53cf94[_0x97d901('0x2d')]:_0x3ba044[_0x97d901('0x2b')];typeof _0x7e3e40[_0x97d901('0x16')][_0x97d901('0x2f')]===_0x97d901('0x9')&&(_0x53cf94[_0x97d901('0x32')]=qs['limit'](_0x7e3e40[_0x97d901('0x16')][_0x97d901('0x32')]),_0x53cf94[_0x97d901('0x38')]=qs[_0x97d901('0x38')](_0x7e3e40[_0x97d901('0x16')]['offset']));_0x53cf94['order']=qs[_0x97d901('0x3')](_0x7e3e40[_0x97d901('0x16')][_0x97d901('0x3')]),_0x53cf94[_0x97d901('0x2e')]=qs['filters'](_[_0x97d901('0x39')](_0x7e3e40[_0x97d901('0x16')],_0x3ba044['filters']),_0x4e27a7);_0x7e3e40[_0x97d901('0x16')][_0x97d901('0xe')]&&(_0x53cf94['where']=_[_0x97d901('0x1')](_0x53cf94['where'],{[Op['or']]:_[_0x97d901('0x7')](_0x4e27a7,function(_0x4b9603){const _0x10c17d=_0x97d901;if(_0x4b9603['type']!==_0x10c17d('0x5')){const _0x3cb196={};return _0x3cb196[_0x4b9603[_0x10c17d('0x34')]]={[Op[_0x10c17d('0x11')]]:'%'+_0x7e3e40[_0x10c17d('0x16')]['filter']+'%'},_0x3cb196;}})}));_0x53cf94=_['merge']({},_0x53cf94,_0x7e3e40[_0x97d901('0x30')]);const _0x20898b={'where':_0x53cf94[_0x97d901('0x2e')]};return db[_0x97d901('0x25')]['count'](_0x20898b)[_0x97d901('0xb')](function(_0x552a34){const _0x2d5ba6=_0x97d901;return _0x1e3a6e[_0x2d5ba6('0x2a')]=_0x552a34,_0x7e3e40['query']['includeAll']&&(_0x53cf94[_0x2d5ba6('0x1c')]=[{'all':!![]}]),db[_0x2d5ba6('0x25')][_0x2d5ba6('0xd')](_0x53cf94);})[_0x97d901('0xb')](function(_0x3b9428){const _0x4a92b0=_0x97d901;return _0x1e3a6e[_0x4a92b0('0x27')]=_0x3b9428,_0x1e3a6e;})[_0x97d901('0xb')](respondWithFilteredResult(_0xd61472,_0x53cf94))['catch'](handleError(_0xd61472,null));},exports['show']=function(_0x25663e,_0x596d19){const _0x574788=_0x15eec0;let _0x24a7df={'raw':![],'where':{'id':_0x25663e[_0x574788('0x2c')]['id']}};const _0x18cc4a={};return _0x18cc4a[_0x574788('0x2b')]=_[_0x574788('0x4')](db[_0x574788('0x25')][_0x574788('0x26')]),_0x18cc4a[_0x574788('0x16')]=_[_0x574788('0x4')](_0x25663e[_0x574788('0x16')]),_0x18cc4a[_0x574788('0x35')]=_[_0x574788('0x1e')](_0x18cc4a[_0x574788('0x2b')],_0x18cc4a[_0x574788('0x16')]),_0x24a7df[_0x574788('0x2d')]=_[_0x574788('0x1e')](_0x18cc4a[_0x574788('0x2b')],qs['fields'](_0x25663e[_0x574788('0x16')][_0x574788('0x1f')])),_0x24a7df[_0x574788('0x2d')]=_0x24a7df[_0x574788('0x2d')][_0x574788('0x12')]?_0x24a7df[_0x574788('0x2d')]:_0x18cc4a[_0x574788('0x2b')],_0x25663e[_0x574788('0x16')][_0x574788('0x2')]&&(_0x24a7df['include']=[{'all':!![]}]),_0x24a7df=_[_0x574788('0x1')]({},_0x24a7df,_0x25663e['options']),db['VoiceChanSpy']['findOne'](_0x24a7df)[_0x574788('0xb')](handleEntityNotFound(_0x596d19,null))['then'](respondWithResult(_0x596d19,null))[_0x574788('0x28')](handleError(_0x596d19,null));},exports[_0x15eec0('0x22')]=function(_0x2a257f,_0x55ed61){const _0x1706e6=_0x15eec0;return db[_0x1706e6('0x25')][_0x1706e6('0x22')](_0x2a257f[_0x1706e6('0x1a')],{})[_0x1706e6('0xb')](function(_0x5e8da5){const _0xc681b1=_0x1706e6,_0x327383=_0x2a257f[_0xc681b1('0x21')]['get']({'plain':!![]});if(!_0x327383)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x327383[_0xc681b1('0x31')]===_0xc681b1('0x21')){const _0x493dfc=_0x5e8da5[_0xc681b1('0x36')]({'plain':!![]}),_0x553fd=_0xc681b1('0x6');return db['UserProfileSection']['findOne']({'where':{'name':_0x553fd,'userProfileId':_0x327383['userProfileId']},'raw':!![]})[_0xc681b1('0xb')](function(_0x2b5332){const _0x182997=_0xc681b1;return _0x2b5332&&_0x2b5332[_0x182997('0x24')]===0x0?db[_0x182997('0xf')][_0x182997('0x22')]({'name':_0x493dfc['name'],'resourceId':_0x493dfc['id'],'type':_0x2b5332['name'],'sectionId':_0x2b5332['id']},{})[_0x182997('0xb')](function(){return _0x5e8da5;}):_0x5e8da5;})[_0xc681b1('0x28')](function(_0x387ea2){logger['error']('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x387ea2);throw _0x387ea2;});}return _0x5e8da5;})['then'](respondWithResult(_0x55ed61,0xc9))[_0x1706e6('0x28')](handleError(_0x55ed61,null));},exports['update']=function(_0x37a9e7,_0x3fc5d9){const _0x452c0c=_0x15eec0;return _0x37a9e7[_0x452c0c('0x1a')]['id']&&delete _0x37a9e7[_0x452c0c('0x1a')]['id'],db[_0x452c0c('0x25')][_0x452c0c('0x1d')]({'where':{'id':_0x37a9e7[_0x452c0c('0x2c')]['id']}})[_0x452c0c('0xb')](handleEntityNotFound(_0x3fc5d9,null))[_0x452c0c('0xb')](saveUpdates(_0x37a9e7['body'],null))[_0x452c0c('0xb')](respondWithResult(_0x3fc5d9,null))[_0x452c0c('0x28')](handleError(_0x3fc5d9,null));},exports[_0x15eec0('0x33')]=function(_0x52bbfc,_0x44b407){const _0x54358c=_0x15eec0;return db[_0x54358c('0x25')][_0x54358c('0x1d')]({'where':{'id':_0x52bbfc['params']['id']}})[_0x54358c('0xb')](handleEntityNotFound(_0x44b407,null))['then'](removeEntity(_0x44b407,null))[_0x54358c('0x28')](handleError(_0x44b407,null));}; \ No newline at end of file diff --git a/server/api/voiceChanSpy/voiceChanSpy.model.js b/server/api/voiceChanSpy/voiceChanSpy.model.js index 03f88fd..adb7f3b 100644 --- a/server/api/voiceChanSpy/voiceChanSpy.model.js +++ b/server/api/voiceChanSpy/voiceChanSpy.model.js @@ -1 +1 @@ -const a715_0x2ab5=['password','util','MixMonitor','StopMixMonitor','internal','agent','bulkCreate','exports','ChanSpy','options','lodash','VoiceChanSpy','format','catch','recordingFormat','name','record','%s%s','CDR(type)=%s','define','models','Authenticate','join','${UNIQUEID}.%s,ab','length','Set','system','context','then','concat','push','destroy','findAll','VoiceExtension','merge','from-sip','SIP/%s,%s'];(function(_0x37e956,_0x2ab52d){const _0x531b72=function(_0x49a83e){while(--_0x49a83e){_0x37e956['push'](_0x37e956['shift']());}};_0x531b72(++_0x2ab52d);}(a715_0x2ab5,0x1ac));const a715_0x531b=function(_0x37e956,_0x2ab52d){_0x37e956=_0x37e956-0x0;let _0x531b72=a715_0x2ab5[_0x37e956];return _0x531b72;};const _0x2d61ef=a715_0x531b;'use strict';const _=require(_0x2d61ef('0x1a')),util=require(_0x2d61ef('0x11')),attributes=require('./voiceChanSpy.attributes'),createChanSpyApplications=function(_0x49a83e,_0x306392,_0x413763){const _0x9b1d45=_0x2d61ef;let _0x7b6836=0x1;const _0x1b13e8=[],_0x4bc3f4={'context':_0x306392[_0x9b1d45('0x6')]||_0x9b1d45('0xe'),'exten':util[_0x9b1d45('0x1c')](_0x9b1d45('0x21'),_0x49a83e['prefix'],_0x413763),'type':_0x9b1d45('0x5'),'isApp':![],'ChanSpyId':_0x49a83e['id'],'UserId':_0x306392['id']};return _0x1b13e8[_0x9b1d45('0x9')](_[_0x9b1d45('0xd')]({'app':_0x9b1d45('0x4'),'appdata':util['format'](_0x9b1d45('0x22'),'chanspy'),'priority':_0x7b6836++},_0x4bc3f4)),_0x49a83e[_0x9b1d45('0x20')]&&_0x1b13e8[_0x9b1d45('0x9')](_['merge']({'app':_0x9b1d45('0x12'),'appdata':util['format'](_0x9b1d45('0x2'),_0x49a83e[_0x9b1d45('0x1e')]),'priority':_0x7b6836++},_0x4bc3f4)),_0x49a83e['auth']&&_0x1b13e8['push'](_['merge']({'app':_0x9b1d45('0x0'),'appdata':_0x49a83e[_0x9b1d45('0x10')],'priority':_0x7b6836++},_0x4bc3f4)),_0x1b13e8['push'](_['merge']({'app':_0x9b1d45('0x18'),'appdata':util[_0x9b1d45('0x1c')](_0x9b1d45('0xf'),_0x306392[_0x9b1d45('0x1f')],_0x49a83e[_0x9b1d45('0x19')]?_0x49a83e[_0x9b1d45('0x19')][_0x9b1d45('0x1')](''):''),'priority':_0x7b6836++},_0x4bc3f4)),_0x49a83e[_0x9b1d45('0x20')]&&_0x1b13e8[_0x9b1d45('0x9')](_[_0x9b1d45('0xd')]({'app':_0x9b1d45('0x13'),'priority':_0x7b6836++},_0x4bc3f4)),_0x1b13e8;},addChanSpyApplications=function(_0x155b2b,_0x2aa2f1){const _0x5eaa6a=_0x2d61ef;let _0xf3ff4e=[];for(let _0x5911f7=0x0;_0x5911f7<_0x2aa2f1[_0x5eaa6a('0x3')];_0x5911f7++){_0xf3ff4e=_0xf3ff4e[_0x5eaa6a('0x8')](createChanSpyApplications(_0x155b2b,_0x2aa2f1[_0x5911f7],_0x2aa2f1[_0x5911f7][_0x5eaa6a('0x14')])),_0x2aa2f1[_0x5911f7]['internal']!=_0x2aa2f1[_0x5911f7][_0x5eaa6a('0x1f')]&&(_0xf3ff4e=_0xf3ff4e[_0x5eaa6a('0x8')](createChanSpyApplications(_0x155b2b,_0x2aa2f1[_0x5911f7],_0x2aa2f1[_0x5911f7][_0x5eaa6a('0x1f')])));}return _0xf3ff4e;},getChanSpy=function(_0x14c62d,_0x1c91c4){return new Promise(function(_0x21cde4,_0x16883e){const _0x5152d9=a715_0x531b;return _0x14c62d['User'][_0x5152d9('0xb')]({'attributes':['id',_0x5152d9('0x1f'),_0x5152d9('0x14')],'where':{'role':_0x5152d9('0x15'),'chanspy':!![]},'raw':!![]})[_0x5152d9('0x7')](function(_0x39d51f){if(_0x39d51f)return _0x21cde4(addChanSpyApplications(_0x1c91c4,_0x39d51f));return _0x21cde4([]);})[_0x5152d9('0x1d')](function(_0x317cc3){_0x16883e(_0x317cc3);});});};module[_0x2d61ef('0x17')]=function(_0x84e3a7){const _0x3f4d81=_0x2d61ef,_0x4c0fc1=_0x84e3a7[_0x3f4d81('0x24')],_0x3d3bbe=_0x84e3a7[_0x3f4d81('0x23')](_0x3f4d81('0x1b'),attributes,{'tableName':'voice_chanspy','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0xe60df0){return getChanSpy(_0x4c0fc1,_0xe60df0)['then'](function(_0xd73989){const _0x5b8f20=a715_0x531b;return _0xd73989&&_0xd73989[_0x5b8f20('0x3')]?_0x4c0fc1[_0x5b8f20('0xc')][_0x5b8f20('0x16')](_0xd73989):null;})['catch'](function(_0x132f28){return _0x132f28;});},'afterUpdate':function(_0x1189ab){const _0x46898f=_0x3f4d81;return _0x4c0fc1[_0x46898f('0xc')][_0x46898f('0xa')]({'where':{'ChanSpyId':_0x1189ab['id']}})[_0x46898f('0x7')](function(){return getChanSpy(_0x4c0fc1,_0x1189ab);})['then'](function(_0x3dc625){const _0x10dda7=_0x46898f;return _0x3dc625&&_0x3dc625[_0x10dda7('0x3')]?_0x4c0fc1[_0x10dda7('0xc')][_0x10dda7('0x16')](_0x3dc625):null;})[_0x46898f('0x1d')](function(_0x5ca42b){return _0x5ca42b;});},'afterDestroy':function(_0xfff622){const _0x1b6112=_0x3f4d81;return _0x4c0fc1[_0x1b6112('0xc')]['destroy']({'where':{'ChanSpyId':_0xfff622['id']}})['then'](function(){return null;})['catch'](function(_0x158078){return _0x158078;});}}});return _0x3d3bbe;}; \ No newline at end of file +const a715_0x2a91=['internal','auth','MixMonitor','from-sip','length','push','context','password','StopMixMonitor','%s%s','then','system','record','lodash','SIP/%s,%s','concat','destroy','bulkCreate','merge','VoiceExtension','agent','VoiceChanSpy','ChanSpy','options','chanspy','format','Authenticate','define','catch','join','recordingFormat','./voiceChanSpy.attributes','name'];(function(_0x59f98c,_0x2a913d){const _0x224772=function(_0x542f82){while(--_0x542f82){_0x59f98c['push'](_0x59f98c['shift']());}};_0x224772(++_0x2a913d);}(a715_0x2a91,0xa9));const a715_0x2247=function(_0x59f98c,_0x2a913d){_0x59f98c=_0x59f98c-0x0;let _0x224772=a715_0x2a91[_0x59f98c];return _0x224772;};const _0x578dc5=a715_0x2247;'use strict';const _=require(_0x578dc5('0x9')),util=require('util'),attributes=require(_0x578dc5('0x1b')),createChanSpyApplications=function(_0x542f82,_0x15cad4,_0x11227d){const _0x1b3d71=_0x578dc5;let _0x2cb12f=0x1;const _0x4cc44a=[],_0x43dfc0={'context':_0x15cad4[_0x1b3d71('0x2')]||_0x1b3d71('0x20'),'exten':util[_0x1b3d71('0x15')](_0x1b3d71('0x5'),_0x542f82['prefix'],_0x11227d),'type':_0x1b3d71('0x7'),'isApp':![],'ChanSpyId':_0x542f82['id'],'UserId':_0x15cad4['id']};return _0x4cc44a[_0x1b3d71('0x1')](_[_0x1b3d71('0xe')]({'app':'Set','appdata':util[_0x1b3d71('0x15')]('CDR(type)=%s',_0x1b3d71('0x14')),'priority':_0x2cb12f++},_0x43dfc0)),_0x542f82[_0x1b3d71('0x8')]&&_0x4cc44a[_0x1b3d71('0x1')](_[_0x1b3d71('0xe')]({'app':_0x1b3d71('0x1f'),'appdata':util[_0x1b3d71('0x15')]('${UNIQUEID}.%s,ab',_0x542f82[_0x1b3d71('0x1a')]),'priority':_0x2cb12f++},_0x43dfc0)),_0x542f82[_0x1b3d71('0x1e')]&&_0x4cc44a['push'](_[_0x1b3d71('0xe')]({'app':_0x1b3d71('0x16'),'appdata':_0x542f82[_0x1b3d71('0x3')],'priority':_0x2cb12f++},_0x43dfc0)),_0x4cc44a[_0x1b3d71('0x1')](_[_0x1b3d71('0xe')]({'app':_0x1b3d71('0x12'),'appdata':util[_0x1b3d71('0x15')](_0x1b3d71('0xa'),_0x15cad4[_0x1b3d71('0x1c')],_0x542f82[_0x1b3d71('0x13')]?_0x542f82[_0x1b3d71('0x13')][_0x1b3d71('0x19')](''):''),'priority':_0x2cb12f++},_0x43dfc0)),_0x542f82['record']&&_0x4cc44a['push'](_['merge']({'app':_0x1b3d71('0x4'),'priority':_0x2cb12f++},_0x43dfc0)),_0x4cc44a;},addChanSpyApplications=function(_0x2c3a67,_0x3fde25){const _0x2aa149=_0x578dc5;let _0xb7002f=[];for(let _0x9d6cd4=0x0;_0x9d6cd4<_0x3fde25['length'];_0x9d6cd4++){_0xb7002f=_0xb7002f[_0x2aa149('0xb')](createChanSpyApplications(_0x2c3a67,_0x3fde25[_0x9d6cd4],_0x3fde25[_0x9d6cd4]['internal'])),_0x3fde25[_0x9d6cd4]['internal']!=_0x3fde25[_0x9d6cd4][_0x2aa149('0x1c')]&&(_0xb7002f=_0xb7002f[_0x2aa149('0xb')](createChanSpyApplications(_0x2c3a67,_0x3fde25[_0x9d6cd4],_0x3fde25[_0x9d6cd4]['name'])));}return _0xb7002f;},getChanSpy=function(_0x18c5e7,_0x402b64){return new Promise(function(_0x2ea638,_0x134a13){const _0x1d5110=a715_0x2247;return _0x18c5e7['User']['findAll']({'attributes':['id',_0x1d5110('0x1c'),_0x1d5110('0x1d')],'where':{'role':_0x1d5110('0x10'),'chanspy':!![]},'raw':!![]})['then'](function(_0x1b0a22){if(_0x1b0a22)return _0x2ea638(addChanSpyApplications(_0x402b64,_0x1b0a22));return _0x2ea638([]);})[_0x1d5110('0x18')](function(_0x27d2de){_0x134a13(_0x27d2de);});});};module['exports']=function(_0x4ace75){const _0x4ba8df=_0x578dc5,_0x4dca6c=_0x4ace75['models'],_0x4ae557=_0x4ace75[_0x4ba8df('0x17')](_0x4ba8df('0x11'),attributes,{'tableName':'voice_chanspy','paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'afterCreate':function(_0x59253d){const _0xa42b5e=_0x4ba8df;return getChanSpy(_0x4dca6c,_0x59253d)[_0xa42b5e('0x6')](function(_0x2584c4){const _0x53776c=_0xa42b5e;return _0x2584c4&&_0x2584c4[_0x53776c('0x0')]?_0x4dca6c[_0x53776c('0xf')][_0x53776c('0xd')](_0x2584c4):null;})['catch'](function(_0x337ff7){return _0x337ff7;});},'afterUpdate':function(_0x1a05f4){const _0x2989f4=_0x4ba8df;return _0x4dca6c[_0x2989f4('0xf')][_0x2989f4('0xc')]({'where':{'ChanSpyId':_0x1a05f4['id']}})['then'](function(){return getChanSpy(_0x4dca6c,_0x1a05f4);})[_0x2989f4('0x6')](function(_0x5666e8){const _0x438cf5=_0x2989f4;return _0x5666e8&&_0x5666e8[_0x438cf5('0x0')]?_0x4dca6c[_0x438cf5('0xf')][_0x438cf5('0xd')](_0x5666e8):null;})[_0x2989f4('0x18')](function(_0x1ad5cc){return _0x1ad5cc;});},'afterDestroy':function(_0x14ea58){const _0x1b2f4f=_0x4ba8df;return _0x4dca6c[_0x1b2f4f('0xf')][_0x1b2f4f('0xc')]({'where':{'ChanSpyId':_0x14ea58['id']}})['then'](function(){return null;})[_0x1b2f4f('0x18')](function(_0x1449da){return _0x1449da;});}}});return _0x4ae557;}; \ No newline at end of file diff --git a/server/api/voiceContext/index.js b/server/api/voiceContext/index.js index 3d0e746..7845170 100644 --- a/server/api/voiceContext/index.js +++ b/server/api/voiceContext/index.js @@ -1 +1 @@ -const a716_0x3579=['update','/:id','isAuthenticated','Router','get','express','index','post','create','delete'];(function(_0x4c673d,_0x357927){const _0x48c941=function(_0x26d5cf){while(--_0x26d5cf){_0x4c673d['push'](_0x4c673d['shift']());}};_0x48c941(++_0x357927);}(a716_0x3579,0xc5));const a716_0x48c9=function(_0x4c673d,_0x357927){_0x4c673d=_0x4c673d-0x0;let _0x48c941=a716_0x3579[_0x4c673d];return _0x48c941;};const _0x25a3ae=a716_0x48c9;'use strict';const express=require(_0x25a3ae('0x8')),router=express[_0x25a3ae('0x6')](),auth=require('../../components/auth/service'),controller=require('./voiceContext.controller');router[_0x25a3ae('0x7')]('/',auth[_0x25a3ae('0x5')](),controller[_0x25a3ae('0x9')]),router[_0x25a3ae('0x7')](_0x25a3ae('0x4'),auth['isAuthenticated'](),controller['show']),router[_0x25a3ae('0x0')]('/',auth['isAuthenticated'](),controller[_0x25a3ae('0x1')]),router['put']('/:id',auth['isAuthenticated'](),controller[_0x25a3ae('0x3')]),router[_0x25a3ae('0x2')](_0x25a3ae('0x4'),auth[_0x25a3ae('0x5')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a716_0x1767=['destroy','./voiceContext.controller','express','put','Router','get','post','isAuthenticated','../../components/auth/service','/:id','delete','update'];(function(_0xb985ca,_0x17673d){const _0x14d792=function(_0x285eee){while(--_0x285eee){_0xb985ca['push'](_0xb985ca['shift']());}};_0x14d792(++_0x17673d);}(a716_0x1767,0x141));const a716_0x14d7=function(_0xb985ca,_0x17673d){_0xb985ca=_0xb985ca-0x0;let _0x14d792=a716_0x1767[_0xb985ca];return _0x14d792;};const _0x2f730d=a716_0x14d7;'use strict';const express=require(_0x2f730d('0x5')),router=express[_0x2f730d('0x7')](),auth=require(_0x2f730d('0xb')),controller=require(_0x2f730d('0x4'));router[_0x2f730d('0x8')]('/',auth[_0x2f730d('0xa')](),controller['index']),router[_0x2f730d('0x8')](_0x2f730d('0x0'),auth[_0x2f730d('0xa')](),controller['show']),router[_0x2f730d('0x9')]('/',auth[_0x2f730d('0xa')](),controller['create']),router[_0x2f730d('0x6')](_0x2f730d('0x0'),auth[_0x2f730d('0xa')](),controller[_0x2f730d('0x2')]),router[_0x2f730d('0x1')](_0x2f730d('0x0'),auth[_0x2f730d('0xa')](),controller[_0x2f730d('0x3')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.attributes.js b/server/api/voiceContext/voiceContext.attributes.js index c294201..3386da0 100644 --- a/server/api/voiceContext/voiceContext.attributes.js +++ b/server/api/voiceContext/voiceContext.attributes.js @@ -1 +1 @@ -const a717_0x45c2=['sequelize','name','BOOLEAN','STRING'];(function(_0x4cfdce,_0x45c216){const _0x340fe2=function(_0x3b79df){while(--_0x3b79df){_0x4cfdce['push'](_0x4cfdce['shift']());}};_0x340fe2(++_0x45c216);}(a717_0x45c2,0x1d3));const a717_0x340f=function(_0x4cfdce,_0x45c216){_0x4cfdce=_0x4cfdce-0x0;let _0x340fe2=a717_0x45c2[_0x4cfdce];return _0x340fe2;};const _0x5dad2f=a717_0x340f;'use strict';const Sequelize=require(_0x5dad2f('0x1'));module['exports']={'name':{'type':Sequelize[_0x5dad2f('0x0')],'unique':_0x5dad2f('0x2')},'description':{'type':Sequelize['STRING'],'allowNull':!![]},'defaultEntry':{'type':Sequelize[_0x5dad2f('0x3')],'defaultValue':0x0}}; \ No newline at end of file +const a717_0x3b35=['sequelize','STRING','name','exports'];(function(_0x1df6da,_0x3b35c7){const _0x16e7a9=function(_0x1c0feb){while(--_0x1c0feb){_0x1df6da['push'](_0x1df6da['shift']());}};_0x16e7a9(++_0x3b35c7);}(a717_0x3b35,0x164));const a717_0x16e7=function(_0x1df6da,_0x3b35c7){_0x1df6da=_0x1df6da-0x0;let _0x16e7a9=a717_0x3b35[_0x1df6da];return _0x16e7a9;};const _0x135e92=a717_0x16e7;'use strict';const Sequelize=require(_0x135e92('0x0'));module[_0x135e92('0x3')]={'name':{'type':Sequelize[_0x135e92('0x1')],'unique':_0x135e92('0x2')},'description':{'type':Sequelize[_0x135e92('0x1')],'allowNull':!![]},'defaultEntry':{'type':Sequelize['BOOLEAN'],'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 a17a930..7a06358 100644 --- a/server/api/voiceContext/voiceContext.controller.js +++ b/server/api/voiceContext/voiceContext.controller.js @@ -1 +1 @@ -const a718_0x33f2=['stack','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','end','sequelize','findOne','undefined','options','query','code','fieldName','status','Unable\x20to\x20retrieve\x20the\x20current\x20user','path','limit','role','findAll','fields','request\x20sent','send','intersection','show','VoiceContext,\x20%s,\x20%s','root','Reload','attributes','render','jayson/promise','http','writeFileSync','VIRTUAL','VoiceContext','get','rawAttributes','request','../../mysqldb','pick','keys','offset','result','utf8','userProfileId','UserProfileSection','stringify','map','body','files/templates/context.ejs','Contexts','then','nolimit','ejs','autoAssociation','sort','VoiceContext,\x20%s,\x20%s,\x20%s','join','message','chan_sip.so','sendStatus','includeAll','model','count','like','info','readFileSync','filter','../../components/parsers/qs','merge','where','../../config/logger','user','type','name','update','index','error','create','catch','lodash','client','include','filters','destroy','params','/etc/asterisk/extensions_xcally_contexts.conf'];(function(_0x435bc6,_0x33f20c){const _0x180049=function(_0x27b726){while(--_0x27b726){_0x435bc6['push'](_0x435bc6['shift']());}};_0x180049(++_0x33f20c);}(a718_0x33f2,0x1dc));const a718_0x1800=function(_0x435bc6,_0x33f20c){_0x435bc6=_0x435bc6-0x0;let _0x180049=a718_0x33f2[_0x435bc6];return _0x180049;};const _0x5d9e0a=a718_0x1800;'use strict';const path=require(_0x5d9e0a('0x22')),ejs=require(_0x5d9e0a('0x47')),fs=require('fs'),_=require(_0x5d9e0a('0xf')),qs=require(_0x5d9e0a('0x3')),logger=require(_0x5d9e0a('0x6'))('api'),config=require('../../config/environment'),db=require(_0x5d9e0a('0x38'))['db'],{Op}=require(_0x5d9e0a('0x19')),jayson=require(_0x5d9e0a('0x30')),client=jayson[_0x5d9e0a('0x10')][_0x5d9e0a('0x31')]({'port':0x232a});function respondWithRpcPromise(_0x27b726,_0x201ecd,_0x5ecc9d,_0x14fca2){return new Promise(function(_0x5cc57a,_0x84ab7a){const _0x552250=a718_0x1800,_0x5a3dde=_0x14fca2||client;return _0x5a3dde[_0x552250('0x37')](_0x27b726,_0x5ecc9d)[_0x552250('0x45')](function(_0x2993ef){const _0x164cfb=_0x552250;logger[_0x164cfb('0x0')]('VoiceContext,\x20%s,\x20%s',_0x201ecd,_0x164cfb('0x27')),logger['debug'](_0x164cfb('0x4a'),_0x201ecd,_0x164cfb('0x27'),JSON[_0x164cfb('0x40')](_0x2993ef));if(_0x2993ef['error']){if(_0x2993ef[_0x164cfb('0xc')][_0x164cfb('0x1e')]===0x1f4)return logger['error'](_0x164cfb('0x2b'),_0x201ecd,_0x2993ef[_0x164cfb('0xc')]['message']),_0x84ab7a(_0x2993ef[_0x164cfb('0xc')][_0x164cfb('0x4c')]);return logger['error'](_0x164cfb('0x2b'),_0x201ecd,_0x2993ef[_0x164cfb('0xc')][_0x164cfb('0x4c')]),_0x5cc57a(_0x2993ef[_0x164cfb('0xc')][_0x164cfb('0x4c')]);}else logger['info']('VoiceContext,\x20%s,\x20%s',_0x201ecd,_0x164cfb('0x27')),_0x5cc57a(_0x2993ef[_0x164cfb('0x3c')]['message']);})[_0x552250('0xe')](function(_0x2dc2be){const _0x4d560d=_0x552250;logger['error'](_0x4d560d('0x2b'),_0x201ecd,_0x2dc2be),_0x84ab7a(_0x2dc2be);});});}function respondWithResult(_0x1153a1,_0x198e21){return _0x198e21=_0x198e21||0xc8,function(_0x5aacdc){const _0x16b4bb=a718_0x1800;if(_0x5aacdc)return _0x1153a1[_0x16b4bb('0x20')](_0x198e21)['json'](_0x5aacdc);};}function respondWithFilteredResult(_0x390ca5,_0x11e2e2){return function(_0x5dd1a1){const _0x3c7dfa=a718_0x1800;if(_0x5dd1a1){const _0x289df1=_0x5dd1a1[_0x3c7dfa('0x51')],_0x5d6176=_0x11e2e2['offset'];let _0x2b0797=_0x11e2e2[_0x3c7dfa('0x3b')]+_0x11e2e2[_0x3c7dfa('0x23')],_0x5e8bf4;return _0x2b0797>=_0x289df1?(_0x2b0797=_0x289df1,_0x5e8bf4=0xc8):_0x5e8bf4=0xce,_0x390ca5[_0x3c7dfa('0x20')](_0x5e8bf4),_0x390ca5['set']('Content-Range',_0x5d6176+'-'+_0x2b0797+'/'+_0x289df1)['json'](_0x5dd1a1);}return null;};}function saveUpdates(_0x437f92){return function(_0x43efc1){const _0x58bbfb=a718_0x1800;if(_0x43efc1)return _0x43efc1[_0x58bbfb('0xa')](_0x437f92)[_0x58bbfb('0x45')](function(_0xf32e34){return _0xf32e34;});return null;};}function removeEntity(_0x15eca0){return function(_0x5f1245){const _0x4bb6e1=a718_0x1800;if(_0x5f1245)return _0x5f1245['destroy']()[_0x4bb6e1('0x45')](function(){const _0x1d835a=_0x4bb6e1,_0x3bf6e8=_0x5f1245[_0x1d835a('0x35')]({'plain':!![]}),_0x5078b6=_0x1d835a('0x44');return db['UserProfileResource']['destroy']({'where':{'type':_0x5078b6,'resourceId':_0x3bf6e8['id']}})[_0x1d835a('0x45')](function(){return _0x5f1245;});})[_0x4bb6e1('0x45')](function(){const _0x25c87b=_0x4bb6e1;_0x15eca0['status'](0xcc)[_0x25c87b('0x18')]();});};}function handleEntityNotFound(_0x549e87){return function(_0x19f3d6){const _0x57e5ca=a718_0x1800;return!_0x19f3d6&&_0x549e87[_0x57e5ca('0x4e')](0x194),_0x19f3d6;};}function handleError(_0x4d798b,_0x505ce3){return _0x505ce3=_0x505ce3||0x1f4,function(_0x5b3727){const _0x562f49=a718_0x1800;logger[_0x562f49('0xc')](_0x5b3727[_0x562f49('0x16')]),_0x5b3727[_0x562f49('0x9')]&&delete _0x5b3727[_0x562f49('0x9')],_0x4d798b[_0x562f49('0x20')](_0x505ce3)[_0x562f49('0x28')](_0x5b3727);};}exports[_0x5d9e0a('0xb')]=function(_0x205482,_0x10beb6){const _0x170666=_0x5d9e0a;let _0x2ee4ad={};const _0x19d402={},_0x301ea4={'count':0x0,'rows':[]},_0xdec82c=_[_0x170666('0x41')](db[_0x170666('0x34')]['rawAttributes'],function(_0x46a950){const _0x4e7a11=_0x170666;return{'name':_0x46a950[_0x4e7a11('0x1f')],'type':_0x46a950[_0x4e7a11('0x8')]['key']};});_0x19d402[_0x170666('0x50')]=_['map'](_0xdec82c,_0x170666('0x9')),_0x19d402[_0x170666('0x1d')]=_[_0x170666('0x3a')](_0x205482['query']),_0x19d402[_0x170666('0x12')]=_[_0x170666('0x29')](_0x19d402['model'],_0x19d402[_0x170666('0x1d')]),_0x2ee4ad['attributes']=_[_0x170666('0x29')](_0x19d402['model'],qs['fields'](_0x205482[_0x170666('0x1d')][_0x170666('0x26')])),_0x2ee4ad[_0x170666('0x2e')]=_0x2ee4ad['attributes']['length']?_0x2ee4ad['attributes']:_0x19d402[_0x170666('0x50')];typeof _0x205482['query'][_0x170666('0x46')]===_0x170666('0x1b')&&(_0x2ee4ad[_0x170666('0x23')]=qs[_0x170666('0x23')](_0x205482[_0x170666('0x1d')][_0x170666('0x23')]),_0x2ee4ad[_0x170666('0x3b')]=qs[_0x170666('0x3b')](_0x205482[_0x170666('0x1d')]['offset']));_0x2ee4ad['order']=qs[_0x170666('0x49')](_0x205482[_0x170666('0x1d')]['sort']),_0x2ee4ad[_0x170666('0x5')]=qs[_0x170666('0x12')](_[_0x170666('0x39')](_0x205482['query'],_0x19d402[_0x170666('0x12')]),_0xdec82c);_0x205482[_0x170666('0x1d')][_0x170666('0x2')]&&(_0x2ee4ad[_0x170666('0x5')]=_[_0x170666('0x4')](_0x2ee4ad[_0x170666('0x5')],{[Op['or']]:_[_0x170666('0x41')](_0xdec82c,function(_0x56e360){const _0x1071cb=_0x170666;if(_0x56e360[_0x1071cb('0x8')]!==_0x1071cb('0x33')){const _0x5e908b={};return _0x5e908b[_0x56e360[_0x1071cb('0x9')]]={[Op[_0x1071cb('0x52')]]:'%'+_0x205482[_0x1071cb('0x1d')]['filter']+'%'},_0x5e908b;}})}));_0x2ee4ad=_[_0x170666('0x4')]({},_0x2ee4ad,_0x205482[_0x170666('0x1c')]);const _0x53481e={'where':_0x2ee4ad[_0x170666('0x5')]};return db[_0x170666('0x34')][_0x170666('0x51')](_0x53481e)[_0x170666('0x45')](function(_0x1289fa){const _0x377238=_0x170666;return _0x301ea4[_0x377238('0x51')]=_0x1289fa,_0x205482['query']['includeAll']&&(_0x2ee4ad[_0x377238('0x11')]=[{'all':!![]}]),db['VoiceContext'][_0x377238('0x25')](_0x2ee4ad);})[_0x170666('0x45')](function(_0x305812){return _0x301ea4['rows']=_0x305812,_0x301ea4;})[_0x170666('0x45')](respondWithFilteredResult(_0x10beb6,_0x2ee4ad))[_0x170666('0xe')](handleError(_0x10beb6,null));},exports[_0x5d9e0a('0x2a')]=function(_0x2a87e2,_0x1b8591){const _0x13dbc8=_0x5d9e0a;let _0xad9fae={'raw':![],'where':{'id':_0x2a87e2[_0x13dbc8('0x14')]['id']}};const _0x5924aa={};return _0x5924aa[_0x13dbc8('0x50')]=_[_0x13dbc8('0x3a')](db[_0x13dbc8('0x34')][_0x13dbc8('0x36')]),_0x5924aa[_0x13dbc8('0x1d')]=_[_0x13dbc8('0x3a')](_0x2a87e2[_0x13dbc8('0x1d')]),_0x5924aa['filters']=_[_0x13dbc8('0x29')](_0x5924aa[_0x13dbc8('0x50')],_0x5924aa[_0x13dbc8('0x1d')]),_0xad9fae['attributes']=_['intersection'](_0x5924aa[_0x13dbc8('0x50')],qs['fields'](_0x2a87e2[_0x13dbc8('0x1d')][_0x13dbc8('0x26')])),_0xad9fae['attributes']=_0xad9fae[_0x13dbc8('0x2e')]['length']?_0xad9fae[_0x13dbc8('0x2e')]:_0x5924aa[_0x13dbc8('0x50')],_0x2a87e2[_0x13dbc8('0x1d')][_0x13dbc8('0x4f')]&&(_0xad9fae[_0x13dbc8('0x11')]=[{'all':!![]}]),_0xad9fae=_['merge']({},_0xad9fae,_0x2a87e2[_0x13dbc8('0x1c')]),db[_0x13dbc8('0x34')]['findOne'](_0xad9fae)['then'](handleEntityNotFound(_0x1b8591,null))[_0x13dbc8('0x45')](respondWithResult(_0x1b8591,null))[_0x13dbc8('0xe')](handleError(_0x1b8591,null));},exports[_0x5d9e0a('0xd')]=function(_0x4a00ba,_0x4a35a2){const _0x5b6e7b=_0x5d9e0a;let _0x1d36d;return db[_0x5b6e7b('0x34')][_0x5b6e7b('0xd')](_0x4a00ba['body'],{'raw':!![]})['then'](function(_0x5097ae){const _0x52ec9a=_0x5b6e7b;return _0x1d36d=_0x5097ae,db['VoiceContext'][_0x52ec9a('0x25')]({'raw':!![]});})['then'](function(_0x198e2f){const _0x313e7b=_0x5b6e7b,_0x15f845=fs[_0x313e7b('0x1')](path[_0x313e7b('0x4b')](config[_0x313e7b('0x2c')],_0x313e7b('0x43')),_0x313e7b('0x3d')),_0xc2ce70=ejs[_0x313e7b('0x2f')](_0x15f845,{'contexts':_0x198e2f||[]});fs[_0x313e7b('0x32')](_0x313e7b('0x15'),_0xc2ce70);})['then'](function(){const _0x46ec44=_0x5b6e7b;return respondWithRpcPromise(_0x46ec44('0x2d'),'create',{'module':_0x46ec44('0x4d')});})['then'](function(){const _0x4d1a9c=_0x5b6e7b,_0x3c84d8=_0x4a00ba[_0x4d1a9c('0x7')][_0x4d1a9c('0x35')]({'plain':!![]});if(!_0x3c84d8)throw new Error(_0x4d1a9c('0x21'));if(_0x3c84d8[_0x4d1a9c('0x24')]===_0x4d1a9c('0x7')){const _0x166f2a=_0x1d36d[_0x4d1a9c('0x35')]({'plain':!![]});return db[_0x4d1a9c('0x3f')]['findOne']({'where':{'name':_0x4d1a9c('0x44'),'userProfileId':_0x3c84d8[_0x4d1a9c('0x3e')]},'raw':!![]})[_0x4d1a9c('0x45')](function(_0x566ad4){const _0x248312=_0x4d1a9c;return _0x566ad4&&_0x566ad4[_0x248312('0x48')]===0x0?db['UserProfileResource'][_0x248312('0xd')]({'name':_0x166f2a[_0x248312('0x9')],'resourceId':_0x166f2a['id'],'type':_0x566ad4[_0x248312('0x9')],'sectionId':_0x566ad4['id']},{})[_0x248312('0x45')](function(){return _0x1d36d;}):_0x1d36d;})['catch'](function(_0x5a43fc){const _0x4ba2a6=_0x4d1a9c;logger[_0x4ba2a6('0xc')](_0x4ba2a6('0x17'),_0x5a43fc);throw _0x5a43fc;});}return _0x1d36d;})[_0x5b6e7b('0x45')](respondWithResult(_0x4a35a2,0xc9))[_0x5b6e7b('0xe')](handleError(_0x4a35a2,null));},exports[_0x5d9e0a('0xa')]=function(_0x343576,_0x391cd3){const _0x226d5f=_0x5d9e0a;let _0x412f74;return db['VoiceContext'][_0x226d5f('0x1a')]({'where':{'id':_0x343576[_0x226d5f('0x14')]['id']}})[_0x226d5f('0x45')](handleEntityNotFound(_0x391cd3,null))[_0x226d5f('0x45')](saveUpdates(_0x343576[_0x226d5f('0x42')],null))['then'](function(_0x427f17){const _0x4f085a=_0x226d5f;if(_0x427f17)return _0x412f74=_0x427f17,db[_0x4f085a('0x34')][_0x4f085a('0x25')]({'raw':!![]});})[_0x226d5f('0x45')](function(_0x202cea){const _0x2d81c0=_0x226d5f,_0x73e180=fs[_0x2d81c0('0x1')](path[_0x2d81c0('0x4b')](config[_0x2d81c0('0x2c')],_0x2d81c0('0x43')),'utf8'),_0x28daf4=ejs['render'](_0x73e180,{'contexts':_0x202cea||[]});fs[_0x2d81c0('0x32')](_0x2d81c0('0x15'),_0x28daf4);})[_0x226d5f('0x45')](function(){const _0x58401a=_0x226d5f;return respondWithRpcPromise('Reload',_0x58401a('0xa'),{'module':'chan_sip.so'});})[_0x226d5f('0x45')](function(){return _0x412f74;})['then'](respondWithResult(_0x391cd3,null))['catch'](handleError(_0x391cd3,null));},exports[_0x5d9e0a('0x13')]=function(_0x33516c,_0x5c8572){const _0x193f2b=_0x5d9e0a;return db['VoiceContext'][_0x193f2b('0x1a')]({'where':{'id':_0x33516c[_0x193f2b('0x14')]['id']}})[_0x193f2b('0x45')](handleEntityNotFound(_0x5c8572,null))[_0x193f2b('0x45')](removeEntity(_0x5c8572,null))[_0x193f2b('0x45')](function(){const _0x429dce=_0x193f2b;return db['VoiceContext'][_0x429dce('0x25')]({'raw':!![]});})[_0x193f2b('0x45')](function(_0x275d49){const _0x533e2d=_0x193f2b,_0x5850b5=fs[_0x533e2d('0x1')](path['join'](config[_0x533e2d('0x2c')],_0x533e2d('0x43')),'utf8'),_0x2670b8=ejs['render'](_0x5850b5,{'contexts':_0x275d49});return fs[_0x533e2d('0x32')]('/etc/asterisk/extensions_xcally_contexts.conf',_0x2670b8),respondWithRpcPromise('Reload','destroy',{'module':_0x533e2d('0x4d')});})[_0x193f2b('0xe')](handleError(_0x5c8572,null));}; \ No newline at end of file +const a718_0x19c6=['sort','chan_sip.so','body','VoiceContext,\x20%s,\x20%s,\x20%s','count','attributes','intersection','request','../../components/parsers/qs','path','undefined','get','lodash','includeAll','join','name','utf8','keys','options','pick','message','VoiceContext,\x20%s,\x20%s','destroy','rawAttributes','params','catch','offset','readFileSync','Contexts','result','request\x20sent','findOne','length','merge','where','api','include','create','render','limit','writeFileSync','json','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','query','then','update','index','code','UserProfileResource','sequelize','role','error','info','findAll','files/templates/context.ejs','filter','Unable\x20to\x20retrieve\x20the\x20current\x20user','key','../../mysqldb','model','filters','map','/etc/asterisk/extensions_xcally_contexts.conf','UserProfileSection','VIRTUAL','status','stack','client','stringify','order','send','VoiceContext','fields','../../config/logger','end','Content-Range','ejs','root','rows','type','sendStatus'];(function(_0x19948a,_0x19c6eb){const _0x366a81=function(_0x4355fe){while(--_0x4355fe){_0x19948a['push'](_0x19948a['shift']());}};_0x366a81(++_0x19c6eb);}(a718_0x19c6,0xdb));const a718_0x366a=function(_0x19948a,_0x19c6eb){_0x19948a=_0x19948a-0x0;let _0x366a81=a718_0x19c6[_0x19948a];return _0x366a81;};const _0x4be723=a718_0x366a;'use strict';const path=require(_0x4be723('0x21')),ejs=require(_0x4be723('0x13')),fs=require('fs'),_=require(_0x4be723('0x24')),qs=require(_0x4be723('0x20')),logger=require(_0x4be723('0x10'))(_0x4be723('0x3b')),config=require('../../config/environment'),db=require(_0x4be723('0x1'))['db'],{Op}=require(_0x4be723('0x49')),jayson=require('jayson/promise'),client=jayson[_0x4be723('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4355fe,_0x4671bd,_0x438e64,_0x46b79f){return new Promise(function(_0x400e0b,_0x293ff1){const _0x3e2e00=a718_0x366a,_0x2f1edc=_0x46b79f||client;return _0x2f1edc[_0x3e2e00('0x1f')](_0x4355fe,_0x438e64)[_0x3e2e00('0x44')](function(_0x308d6f){const _0x127942=_0x3e2e00;logger['info'](_0x127942('0x2d'),_0x4671bd,_0x127942('0x36')),logger['debug'](_0x127942('0x1b'),_0x4671bd,_0x127942('0x36'),JSON[_0x127942('0xb')](_0x308d6f));if(_0x308d6f[_0x127942('0x4b')]){if(_0x308d6f[_0x127942('0x4b')][_0x127942('0x47')]===0x1f4)return logger[_0x127942('0x4b')](_0x127942('0x2d'),_0x4671bd,_0x308d6f['error']['message']),_0x293ff1(_0x308d6f[_0x127942('0x4b')][_0x127942('0x2c')]);return logger[_0x127942('0x4b')](_0x127942('0x2d'),_0x4671bd,_0x308d6f['error']['message']),_0x400e0b(_0x308d6f[_0x127942('0x4b')][_0x127942('0x2c')]);}else logger[_0x127942('0x4c')](_0x127942('0x2d'),_0x4671bd,_0x127942('0x36')),_0x400e0b(_0x308d6f[_0x127942('0x35')][_0x127942('0x2c')]);})['catch'](function(_0x33c25){const _0x17f83e=_0x3e2e00;logger[_0x17f83e('0x4b')]('VoiceContext,\x20%s,\x20%s',_0x4671bd,_0x33c25),_0x293ff1(_0x33c25);});});}function respondWithResult(_0x2b2b23,_0x347aad){return _0x347aad=_0x347aad||0xc8,function(_0x6836c){const _0x46b529=a718_0x366a;if(_0x6836c)return _0x2b2b23[_0x46b529('0x8')](_0x347aad)[_0x46b529('0x41')](_0x6836c);};}function respondWithFilteredResult(_0x5c2494,_0x240e28){return function(_0x59a85e){const _0x549f33=a718_0x366a;if(_0x59a85e){const _0x2bf2cc=_0x59a85e[_0x549f33('0x1c')],_0x49d741=_0x240e28[_0x549f33('0x32')];let _0xf97393=_0x240e28['offset']+_0x240e28['limit'],_0x554a6d;return _0xf97393>=_0x2bf2cc?(_0xf97393=_0x2bf2cc,_0x554a6d=0xc8):_0x554a6d=0xce,_0x5c2494[_0x549f33('0x8')](_0x554a6d),_0x5c2494['set'](_0x549f33('0x12'),_0x49d741+'-'+_0xf97393+'/'+_0x2bf2cc)[_0x549f33('0x41')](_0x59a85e);}return null;};}function saveUpdates(_0x4e76df){return function(_0x437f5f){const _0x2054a9=a718_0x366a;if(_0x437f5f)return _0x437f5f[_0x2054a9('0x45')](_0x4e76df)[_0x2054a9('0x44')](function(_0xbbcfd4){return _0xbbcfd4;});return null;};}function removeEntity(_0x3cb25c){return function(_0x29c631){const _0x22923e=a718_0x366a;if(_0x29c631)return _0x29c631[_0x22923e('0x2e')]()[_0x22923e('0x44')](function(){const _0x55dec4=_0x22923e,_0x4140b0=_0x29c631['get']({'plain':!![]}),_0x6a2992='Contexts';return db[_0x55dec4('0x48')][_0x55dec4('0x2e')]({'where':{'type':_0x6a2992,'resourceId':_0x4140b0['id']}})['then'](function(){return _0x29c631;});})[_0x22923e('0x44')](function(){const _0x4fb61b=_0x22923e;_0x3cb25c['status'](0xcc)[_0x4fb61b('0x11')]();});};}function handleEntityNotFound(_0x57f756){return function(_0x31e3fc){const _0x2c98f4=a718_0x366a;return!_0x31e3fc&&_0x57f756[_0x2c98f4('0x17')](0x194),_0x31e3fc;};}function handleError(_0x11f8be,_0x5501af){return _0x5501af=_0x5501af||0x1f4,function(_0x2aed5f){const _0x1ebea0=a718_0x366a;logger[_0x1ebea0('0x4b')](_0x2aed5f[_0x1ebea0('0x9')]),_0x2aed5f[_0x1ebea0('0x27')]&&delete _0x2aed5f['name'],_0x11f8be[_0x1ebea0('0x8')](_0x5501af)[_0x1ebea0('0xd')](_0x2aed5f);};}exports[_0x4be723('0x46')]=function(_0x1d3610,_0x12016d){const _0x577445=_0x4be723;let _0x2a4204={};const _0x106bc0={},_0x30c5ab={'count':0x0,'rows':[]},_0x59b8cc=_['map'](db[_0x577445('0xe')][_0x577445('0x2f')],function(_0x50e172){const _0x22eaaa=_0x577445;return{'name':_0x50e172['fieldName'],'type':_0x50e172[_0x22eaaa('0x16')][_0x22eaaa('0x0')]};});_0x106bc0['model']=_[_0x577445('0x4')](_0x59b8cc,_0x577445('0x27')),_0x106bc0[_0x577445('0x43')]=_['keys'](_0x1d3610[_0x577445('0x43')]),_0x106bc0[_0x577445('0x3')]=_['intersection'](_0x106bc0[_0x577445('0x2')],_0x106bc0[_0x577445('0x43')]),_0x2a4204[_0x577445('0x1d')]=_[_0x577445('0x1e')](_0x106bc0[_0x577445('0x2')],qs[_0x577445('0xf')](_0x1d3610[_0x577445('0x43')][_0x577445('0xf')])),_0x2a4204[_0x577445('0x1d')]=_0x2a4204['attributes'][_0x577445('0x38')]?_0x2a4204['attributes']:_0x106bc0['model'];typeof _0x1d3610[_0x577445('0x43')]['nolimit']===_0x577445('0x22')&&(_0x2a4204[_0x577445('0x3f')]=qs[_0x577445('0x3f')](_0x1d3610[_0x577445('0x43')][_0x577445('0x3f')]),_0x2a4204[_0x577445('0x32')]=qs['offset'](_0x1d3610[_0x577445('0x43')][_0x577445('0x32')]));_0x2a4204[_0x577445('0xc')]=qs[_0x577445('0x18')](_0x1d3610[_0x577445('0x43')][_0x577445('0x18')]),_0x2a4204['where']=qs['filters'](_[_0x577445('0x2b')](_0x1d3610['query'],_0x106bc0[_0x577445('0x3')]),_0x59b8cc);_0x1d3610['query'][_0x577445('0x4f')]&&(_0x2a4204[_0x577445('0x3a')]=_['merge'](_0x2a4204[_0x577445('0x3a')],{[Op['or']]:_[_0x577445('0x4')](_0x59b8cc,function(_0x5ee9f9){const _0x3d16c5=_0x577445;if(_0x5ee9f9[_0x3d16c5('0x16')]!==_0x3d16c5('0x7')){const _0x23c0ed={};return _0x23c0ed[_0x5ee9f9[_0x3d16c5('0x27')]]={[Op['like']]:'%'+_0x1d3610[_0x3d16c5('0x43')][_0x3d16c5('0x4f')]+'%'},_0x23c0ed;}})}));_0x2a4204=_[_0x577445('0x39')]({},_0x2a4204,_0x1d3610[_0x577445('0x2a')]);const _0x3d56dc={'where':_0x2a4204[_0x577445('0x3a')]};return db['VoiceContext'][_0x577445('0x1c')](_0x3d56dc)['then'](function(_0xf57118){const _0x13e23c=_0x577445;return _0x30c5ab[_0x13e23c('0x1c')]=_0xf57118,_0x1d3610['query'][_0x13e23c('0x25')]&&(_0x2a4204[_0x13e23c('0x3c')]=[{'all':!![]}]),db[_0x13e23c('0xe')][_0x13e23c('0x4d')](_0x2a4204);})[_0x577445('0x44')](function(_0x56a8eb){const _0x42a981=_0x577445;return _0x30c5ab[_0x42a981('0x15')]=_0x56a8eb,_0x30c5ab;})['then'](respondWithFilteredResult(_0x12016d,_0x2a4204))['catch'](handleError(_0x12016d,null));},exports['show']=function(_0x1b1d97,_0x198c3c){const _0x27a5d9=_0x4be723;let _0x4f421e={'raw':![],'where':{'id':_0x1b1d97[_0x27a5d9('0x30')]['id']}};const _0xca0648={};return _0xca0648[_0x27a5d9('0x2')]=_[_0x27a5d9('0x29')](db[_0x27a5d9('0xe')]['rawAttributes']),_0xca0648[_0x27a5d9('0x43')]=_[_0x27a5d9('0x29')](_0x1b1d97['query']),_0xca0648[_0x27a5d9('0x3')]=_[_0x27a5d9('0x1e')](_0xca0648[_0x27a5d9('0x2')],_0xca0648[_0x27a5d9('0x43')]),_0x4f421e['attributes']=_['intersection'](_0xca0648[_0x27a5d9('0x2')],qs[_0x27a5d9('0xf')](_0x1b1d97['query'][_0x27a5d9('0xf')])),_0x4f421e[_0x27a5d9('0x1d')]=_0x4f421e[_0x27a5d9('0x1d')]['length']?_0x4f421e[_0x27a5d9('0x1d')]:_0xca0648[_0x27a5d9('0x2')],_0x1b1d97['query']['includeAll']&&(_0x4f421e[_0x27a5d9('0x3c')]=[{'all':!![]}]),_0x4f421e=_[_0x27a5d9('0x39')]({},_0x4f421e,_0x1b1d97[_0x27a5d9('0x2a')]),db[_0x27a5d9('0xe')][_0x27a5d9('0x37')](_0x4f421e)[_0x27a5d9('0x44')](handleEntityNotFound(_0x198c3c,null))[_0x27a5d9('0x44')](respondWithResult(_0x198c3c,null))['catch'](handleError(_0x198c3c,null));},exports[_0x4be723('0x3d')]=function(_0x4f5dcd,_0x44477c){const _0x33b89e=_0x4be723;let _0x462950;return db[_0x33b89e('0xe')]['create'](_0x4f5dcd[_0x33b89e('0x1a')],{'raw':!![]})['then'](function(_0x3aaeb2){const _0x43a068=_0x33b89e;return _0x462950=_0x3aaeb2,db[_0x43a068('0xe')][_0x43a068('0x4d')]({'raw':!![]});})[_0x33b89e('0x44')](function(_0x18180d){const _0x2d331b=_0x33b89e,_0x52665b=fs[_0x2d331b('0x33')](path[_0x2d331b('0x26')](config['root'],_0x2d331b('0x4e')),_0x2d331b('0x28')),_0x5ae78a=ejs[_0x2d331b('0x3e')](_0x52665b,{'contexts':_0x18180d||[]});fs[_0x2d331b('0x40')]('/etc/asterisk/extensions_xcally_contexts.conf',_0x5ae78a);})[_0x33b89e('0x44')](function(){const _0x434992=_0x33b89e;return respondWithRpcPromise('Reload',_0x434992('0x3d'),{'module':_0x434992('0x19')});})['then'](function(){const _0x3b8735=_0x33b89e,_0x12652d=_0x4f5dcd['user']['get']({'plain':!![]});if(!_0x12652d)throw new Error(_0x3b8735('0x50'));if(_0x12652d[_0x3b8735('0x4a')]==='user'){const _0x34a191=_0x462950[_0x3b8735('0x23')]({'plain':!![]});return db[_0x3b8735('0x6')][_0x3b8735('0x37')]({'where':{'name':_0x3b8735('0x34'),'userProfileId':_0x12652d['userProfileId']},'raw':!![]})[_0x3b8735('0x44')](function(_0x5ee090){const _0x357507=_0x3b8735;return _0x5ee090&&_0x5ee090['autoAssociation']===0x0?db['UserProfileResource'][_0x357507('0x3d')]({'name':_0x34a191[_0x357507('0x27')],'resourceId':_0x34a191['id'],'type':_0x5ee090[_0x357507('0x27')],'sectionId':_0x5ee090['id']},{})['then'](function(){return _0x462950;}):_0x462950;})[_0x3b8735('0x31')](function(_0x3d56ec){const _0x339c49=_0x3b8735;logger['error'](_0x339c49('0x42'),_0x3d56ec);throw _0x3d56ec;});}return _0x462950;})[_0x33b89e('0x44')](respondWithResult(_0x44477c,0xc9))[_0x33b89e('0x31')](handleError(_0x44477c,null));},exports[_0x4be723('0x45')]=function(_0x427c5c,_0x27ec9c){const _0x2fa34d=_0x4be723;let _0x584dcb;return db[_0x2fa34d('0xe')][_0x2fa34d('0x37')]({'where':{'id':_0x427c5c[_0x2fa34d('0x30')]['id']}})['then'](handleEntityNotFound(_0x27ec9c,null))[_0x2fa34d('0x44')](saveUpdates(_0x427c5c[_0x2fa34d('0x1a')],null))['then'](function(_0x36fe9d){const _0x1a2183=_0x2fa34d;if(_0x36fe9d)return _0x584dcb=_0x36fe9d,db[_0x1a2183('0xe')][_0x1a2183('0x4d')]({'raw':!![]});})[_0x2fa34d('0x44')](function(_0x4f1c87){const _0x51fe2c=_0x2fa34d,_0x37dfa5=fs['readFileSync'](path[_0x51fe2c('0x26')](config[_0x51fe2c('0x14')],_0x51fe2c('0x4e')),_0x51fe2c('0x28')),_0x68652f=ejs[_0x51fe2c('0x3e')](_0x37dfa5,{'contexts':_0x4f1c87||[]});fs[_0x51fe2c('0x40')](_0x51fe2c('0x5'),_0x68652f);})['then'](function(){const _0x2f6d61=_0x2fa34d;return respondWithRpcPromise('Reload',_0x2f6d61('0x45'),{'module':_0x2f6d61('0x19')});})[_0x2fa34d('0x44')](function(){return _0x584dcb;})[_0x2fa34d('0x44')](respondWithResult(_0x27ec9c,null))[_0x2fa34d('0x31')](handleError(_0x27ec9c,null));},exports['destroy']=function(_0x1d1ef5,_0x26d953){const _0x2a4dab=_0x4be723;return db[_0x2a4dab('0xe')][_0x2a4dab('0x37')]({'where':{'id':_0x1d1ef5[_0x2a4dab('0x30')]['id']}})[_0x2a4dab('0x44')](handleEntityNotFound(_0x26d953,null))['then'](removeEntity(_0x26d953,null))[_0x2a4dab('0x44')](function(){const _0x51a046=_0x2a4dab;return db[_0x51a046('0xe')][_0x51a046('0x4d')]({'raw':!![]});})['then'](function(_0x28a21f){const _0x2b982f=_0x2a4dab,_0x1f7f88=fs['readFileSync'](path['join'](config[_0x2b982f('0x14')],'files/templates/context.ejs'),_0x2b982f('0x28')),_0x311327=ejs[_0x2b982f('0x3e')](_0x1f7f88,{'contexts':_0x28a21f});return fs[_0x2b982f('0x40')](_0x2b982f('0x5'),_0x311327),respondWithRpcPromise('Reload','destroy',{'module':_0x2b982f('0x19')});})[_0x2a4dab('0x31')](handleError(_0x26d953,null));}; \ No newline at end of file diff --git a/server/api/voiceContext/voiceContext.model.js b/server/api/voiceContext/voiceContext.model.js index 2c32e3f..3ee2442 100644 --- a/server/api/voiceContext/voiceContext.model.js +++ b/server/api/voiceContext/voiceContext.model.js @@ -1 +1 @@ -const a719_0x5a79=['exports','./voiceContext.attributes','VoiceContext','define','voice_contexts'];(function(_0x3f9bc2,_0x5a79c7){const _0x500f66=function(_0x37c0b1){while(--_0x37c0b1){_0x3f9bc2['push'](_0x3f9bc2['shift']());}};_0x500f66(++_0x5a79c7);}(a719_0x5a79,0x19a));const a719_0x500f=function(_0x3f9bc2,_0x5a79c7){_0x3f9bc2=_0x3f9bc2-0x0;let _0x500f66=a719_0x5a79[_0x3f9bc2];return _0x500f66;};const _0x3fbe94=a719_0x500f;'use strict';const attributes=require(_0x3fbe94('0x1'));module[_0x3fbe94('0x0')]=function(_0x37c0b1){const _0xce2ba8=_0x3fbe94,_0x4c1d0b=_0x37c0b1[_0xce2ba8('0x3')](_0xce2ba8('0x2'),attributes,{'tableName':_0xce2ba8('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c1d0b;}; \ No newline at end of file +const a719_0x56f0=['define','./voiceContext.attributes','exports','voice_contexts'];(function(_0x1c7ed0,_0x56f092){const _0x15678b=function(_0x42ea4a){while(--_0x42ea4a){_0x1c7ed0['push'](_0x1c7ed0['shift']());}};_0x15678b(++_0x56f092);}(a719_0x56f0,0x1ba));const a719_0x1567=function(_0x1c7ed0,_0x56f092){_0x1c7ed0=_0x1c7ed0-0x0;let _0x15678b=a719_0x56f0[_0x1c7ed0];return _0x15678b;};const _0x35294f=a719_0x1567;'use strict';const attributes=require(_0x35294f('0x3'));module[_0x35294f('0x0')]=function(_0x42ea4a){const _0x18bc4e=_0x35294f,_0x4f3f45=_0x42ea4a[_0x18bc4e('0x2')]('VoiceContext',attributes,{'tableName':_0x18bc4e('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4f3f45;}; \ No newline at end of file diff --git a/server/api/voiceDialReport/index.js b/server/api/voiceDialReport/index.js index b8a95b0..39efc20 100644 --- a/server/api/voiceDialReport/index.js +++ b/server/api/voiceDialReport/index.js @@ -1 +1 @@ -const a720_0x20dc=['Router','update','destroy','isAuthenticated','express','create','get','describe','post','put','/:id','../../components/auth/service','/describe','delete','./voiceDialReport.controller'];(function(_0x4176b2,_0x20dcdf){const _0x2d5d2a=function(_0xe1d56f){while(--_0xe1d56f){_0x4176b2['push'](_0x4176b2['shift']());}};_0x2d5d2a(++_0x20dcdf);}(a720_0x20dc,0x7a));const a720_0x2d5d=function(_0x4176b2,_0x20dcdf){_0x4176b2=_0x4176b2-0x0;let _0x2d5d2a=a720_0x20dc[_0x4176b2];return _0x2d5d2a;};const _0x3fc325=a720_0x2d5d;'use strict';const express=require(_0x3fc325('0x2')),router=express[_0x3fc325('0xd')](),auth=require(_0x3fc325('0x9')),controller=require(_0x3fc325('0xc'));router[_0x3fc325('0x4')]('/',auth['isAuthenticated'](),controller['index']),router[_0x3fc325('0x4')](_0x3fc325('0xa'),auth[_0x3fc325('0x1')](),controller[_0x3fc325('0x5')]),router['get']('/:id',auth['isAuthenticated'](),controller['show']),router[_0x3fc325('0x6')]('/',auth[_0x3fc325('0x1')](),controller[_0x3fc325('0x3')]),router[_0x3fc325('0x7')](_0x3fc325('0x8'),auth['isAuthenticated'](),controller[_0x3fc325('0xe')]),router[_0x3fc325('0xb')](_0x3fc325('0x8'),auth['isAuthenticated'](),controller[_0x3fc325('0x0')]),module['exports']=router; \ No newline at end of file +const a720_0x4880=['/:id','/describe','index','create','isAuthenticated','post','get','put','update','exports','express'];(function(_0x50b40d,_0x4880f9){const _0x380959=function(_0x223c46){while(--_0x223c46){_0x50b40d['push'](_0x50b40d['shift']());}};_0x380959(++_0x4880f9);}(a720_0x4880,0x100));const a720_0x3809=function(_0x50b40d,_0x4880f9){_0x50b40d=_0x50b40d-0x0;let _0x380959=a720_0x4880[_0x50b40d];return _0x380959;};const _0xf90cd4=a720_0x3809;'use strict';const express=require(_0xf90cd4('0x7')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require('./voiceDialReport.controller');router[_0xf90cd4('0x3')]('/',auth[_0xf90cd4('0x1')](),controller[_0xf90cd4('0xa')]),router['get'](_0xf90cd4('0x9'),auth[_0xf90cd4('0x1')](),controller['describe']),router[_0xf90cd4('0x3')](_0xf90cd4('0x8'),auth[_0xf90cd4('0x1')](),controller['show']),router[_0xf90cd4('0x2')]('/',auth[_0xf90cd4('0x1')](),controller[_0xf90cd4('0x0')]),router[_0xf90cd4('0x4')](_0xf90cd4('0x8'),auth[_0xf90cd4('0x1')](),controller[_0xf90cd4('0x5')]),router['delete'](_0xf90cd4('0x8'),auth[_0xf90cd4('0x1')](),controller['destroy']),module[_0xf90cd4('0x6')]=router; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.attributes.js b/server/api/voiceDialReport/voiceDialReport.attributes.js index 85780e5..bca7503 100644 --- a/server/api/voiceDialReport/voiceDialReport.attributes.js +++ b/server/api/voiceDialReport/voiceDialReport.attributes.js @@ -1 +1 @@ -const a721_0x2671=['INTEGER','STRING','DATE','called,connect,complete','sequelize','exports'];(function(_0x2e7a1e,_0x267190){const _0x5eb8a8=function(_0x26d290){while(--_0x26d290){_0x2e7a1e['push'](_0x2e7a1e['shift']());}};_0x5eb8a8(++_0x267190);}(a721_0x2671,0x106));const a721_0x5eb8=function(_0x2e7a1e,_0x267190){_0x2e7a1e=_0x2e7a1e-0x0;let _0x5eb8a8=a721_0x2671[_0x2e7a1e];return _0x5eb8a8;};const _0x1fed68=a721_0x5eb8;'use strict';const Sequelize=require(_0x1fed68('0x0'));module[_0x1fed68('0x1')]={'privilege':{'type':Sequelize[_0x1fed68('0x3')]},'channel':{'type':Sequelize[_0x1fed68('0x3')]},'channelstate':{'type':Sequelize[_0x1fed68('0x2')]},'channelstatedesc':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize['STRING']},'calleridname':{'type':Sequelize['STRING']},'connectedlinenum':{'type':Sequelize[_0x1fed68('0x3')]},'connectedlinename':{'type':Sequelize[_0x1fed68('0x3')]},'language':{'type':Sequelize['STRING']},'accountcode':{'type':Sequelize[_0x1fed68('0x3')]},'context':{'type':Sequelize[_0x1fed68('0x3')]},'exten':{'type':Sequelize[_0x1fed68('0x3')]},'priority':{'type':Sequelize[_0x1fed68('0x2')]},'uniqueid':{'type':Sequelize[_0x1fed68('0x3')]},'linkedid':{'type':Sequelize[_0x1fed68('0x3')]},'destchannel':{'type':Sequelize[_0x1fed68('0x3')]},'destchannelstate':{'type':Sequelize['INTEGER']},'destchannelstatedesc':{'type':Sequelize[_0x1fed68('0x3')]},'destcalleridnum':{'type':Sequelize[_0x1fed68('0x3')]},'destcalleridname':{'type':Sequelize['STRING']},'destconnectedlinenum':{'type':Sequelize[_0x1fed68('0x3')]},'destconnectedlinename':{'type':Sequelize[_0x1fed68('0x3')]},'destlanguage':{'type':Sequelize[_0x1fed68('0x3')]},'destaccountcode':{'type':Sequelize[_0x1fed68('0x3')]},'destcontext':{'type':Sequelize['STRING']},'destexten':{'type':Sequelize['STRING']},'destpriority':{'type':Sequelize[_0x1fed68('0x2')]},'destuniqueid':{'type':Sequelize[_0x1fed68('0x3')]},'destlinkedid':{'type':Sequelize[_0x1fed68('0x3')]},'dialstring':{'type':Sequelize['STRING']},'dialstatus':{'type':Sequelize[_0x1fed68('0x3')]},'starttime':{'type':Sequelize[_0x1fed68('0x4')]},'answertime':{'type':Sequelize[_0x1fed68('0x4')]},'endtime':{'type':Sequelize['DATE']},'lastevent':{'type':Sequelize[_0x1fed68('0x3')],'comment':_0x1fed68('0x5')},'routeId':{'type':Sequelize[_0x1fed68('0x2')]},'duration':{'type':Sequelize[_0x1fed68('0x2')]},'holdtime':{'type':Sequelize[_0x1fed68('0x2')]},'billableseconds':{'type':Sequelize[_0x1fed68('0x2')]}}; \ No newline at end of file +const a721_0x5a32=['STRING','exports','called,connect,complete','INTEGER','DATE','sequelize'];(function(_0x17b6eb,_0x5a329a){const _0x28f458=function(_0x2eab53){while(--_0x2eab53){_0x17b6eb['push'](_0x17b6eb['shift']());}};_0x28f458(++_0x5a329a);}(a721_0x5a32,0x1b2));const a721_0x28f4=function(_0x17b6eb,_0x5a329a){_0x17b6eb=_0x17b6eb-0x0;let _0x28f458=a721_0x5a32[_0x17b6eb];return _0x28f458;};const _0x48f6da=a721_0x28f4;'use strict';const Sequelize=require(_0x48f6da('0x3'));module[_0x48f6da('0x5')]={'privilege':{'type':Sequelize['STRING']},'channel':{'type':Sequelize['STRING']},'channelstate':{'type':Sequelize[_0x48f6da('0x1')]},'channelstatedesc':{'type':Sequelize['STRING']},'calleridnum':{'type':Sequelize[_0x48f6da('0x4')]},'calleridname':{'type':Sequelize[_0x48f6da('0x4')]},'connectedlinenum':{'type':Sequelize[_0x48f6da('0x4')]},'connectedlinename':{'type':Sequelize[_0x48f6da('0x4')]},'language':{'type':Sequelize[_0x48f6da('0x4')]},'accountcode':{'type':Sequelize[_0x48f6da('0x4')]},'context':{'type':Sequelize[_0x48f6da('0x4')]},'exten':{'type':Sequelize['STRING']},'priority':{'type':Sequelize[_0x48f6da('0x1')]},'uniqueid':{'type':Sequelize[_0x48f6da('0x4')]},'linkedid':{'type':Sequelize[_0x48f6da('0x4')]},'destchannel':{'type':Sequelize[_0x48f6da('0x4')]},'destchannelstate':{'type':Sequelize['INTEGER']},'destchannelstatedesc':{'type':Sequelize[_0x48f6da('0x4')]},'destcalleridnum':{'type':Sequelize[_0x48f6da('0x4')]},'destcalleridname':{'type':Sequelize['STRING']},'destconnectedlinenum':{'type':Sequelize['STRING']},'destconnectedlinename':{'type':Sequelize[_0x48f6da('0x4')]},'destlanguage':{'type':Sequelize[_0x48f6da('0x4')]},'destaccountcode':{'type':Sequelize[_0x48f6da('0x4')]},'destcontext':{'type':Sequelize[_0x48f6da('0x4')]},'destexten':{'type':Sequelize[_0x48f6da('0x4')]},'destpriority':{'type':Sequelize[_0x48f6da('0x1')]},'destuniqueid':{'type':Sequelize[_0x48f6da('0x4')]},'destlinkedid':{'type':Sequelize[_0x48f6da('0x4')]},'dialstring':{'type':Sequelize[_0x48f6da('0x4')]},'dialstatus':{'type':Sequelize[_0x48f6da('0x4')]},'starttime':{'type':Sequelize['DATE']},'answertime':{'type':Sequelize[_0x48f6da('0x2')]},'endtime':{'type':Sequelize['DATE']},'lastevent':{'type':Sequelize[_0x48f6da('0x4')],'comment':_0x48f6da('0x0')},'routeId':{'type':Sequelize[_0x48f6da('0x1')]},'duration':{'type':Sequelize[_0x48f6da('0x1')]},'holdtime':{'type':Sequelize[_0x48f6da('0x1')]},'billableseconds':{'type':Sequelize[_0x48f6da('0x1')]}}; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.controller.js b/server/api/voiceDialReport/voiceDialReport.controller.js index f10d5f4..6181a4e 100644 --- a/server/api/voiceDialReport/voiceDialReport.controller.js +++ b/server/api/voiceDialReport/voiceDialReport.controller.js @@ -1 +1 @@ -const a722_0xd85d=['update','then','options','merge','destroy','keys','send','rows','create','count','VIRTUAL','stack','sort','describe','like','type','index','filter','body','fields','attributes','Content-Range','status','sequelize','includeAll','../../config/logger','rawAttributes','query','map','catch','include','limit','show','error','end','name','VoiceDialReport','findOne','lodash','length','fieldName','undefined','json','filters','params','intersection','where','findAll','model','offset'];(function(_0xc6b491,_0xd85df1){const _0x249090=function(_0x3adb76){while(--_0x3adb76){_0xc6b491['push'](_0xc6b491['shift']());}};_0x249090(++_0xd85df1);}(a722_0xd85d,0x179));const a722_0x2490=function(_0xc6b491,_0xd85df1){_0xc6b491=_0xc6b491-0x0;let _0x249090=a722_0xd85d[_0xc6b491];return _0x249090;};const _0x52c42b=a722_0x2490;'use strict';const _=require(_0x52c42b('0xb')),qs=require('../../components/parsers/qs'),logger=require(_0x52c42b('0x30'))('api'),db=require('../../mysqldb')['db'],{Op}=require(_0x52c42b('0x2e'));function respondWithResult(_0x3adb76,_0x49cc72){return _0x49cc72=_0x49cc72||0xc8,function(_0x582793){const _0x570196=a722_0x2490;if(_0x582793)return _0x3adb76[_0x570196('0x2d')](_0x49cc72)[_0x570196('0xf')](_0x582793);};}function respondWithFilteredResult(_0x332f19,_0x3253e6){return function(_0x20520e){const _0x52692d=a722_0x2490;if(_0x20520e){const _0x109498=_0x20520e[_0x52692d('0x20')],_0x529b27=_0x3253e6[_0x52692d('0x16')];let _0x15d8fa=_0x3253e6[_0x52692d('0x16')]+_0x3253e6[_0x52692d('0x4')],_0x18569;return _0x15d8fa>=_0x109498?(_0x15d8fa=_0x109498,_0x18569=0xc8):_0x18569=0xce,_0x332f19[_0x52692d('0x2d')](_0x18569),_0x332f19['set'](_0x52692d('0x2c'),_0x529b27+'-'+_0x15d8fa+'/'+_0x109498)[_0x52692d('0xf')](_0x20520e);}return null;};}function saveUpdates(_0x5ac693){return function(_0xda3cd8){const _0x3c6d81=a722_0x2490;if(_0xda3cd8)return _0xda3cd8[_0x3c6d81('0x17')](_0x5ac693)[_0x3c6d81('0x18')](function(_0x20b96b){return _0x20b96b;});return null;};}function removeEntity(_0x2e7cad){return function(_0x3b2ad0){const _0x28a2b0=a722_0x2490;if(_0x3b2ad0)return _0x3b2ad0['destroy']()[_0x28a2b0('0x18')](function(){const _0x5bc9ee=_0x28a2b0;_0x2e7cad[_0x5bc9ee('0x2d')](0xcc)[_0x5bc9ee('0x7')]();});};}function handleEntityNotFound(_0x45a532){return function(_0x1a309b){return!_0x1a309b&&_0x45a532['sendStatus'](0x194),_0x1a309b;};}function handleError(_0x5bf360,_0x2d4363){return _0x2d4363=_0x2d4363||0x1f4,function(_0x443ff5){const _0x46e213=a722_0x2490;logger[_0x46e213('0x6')](_0x443ff5[_0x46e213('0x22')]),_0x443ff5[_0x46e213('0x8')]&&delete _0x443ff5[_0x46e213('0x8')],_0x5bf360[_0x46e213('0x2d')](_0x2d4363)[_0x46e213('0x1d')](_0x443ff5);};}exports[_0x52c42b('0x27')]=function(_0x5814d0,_0x25a35a){const _0xabe43c=_0x52c42b;let _0x491c52={};const _0x2d971c={},_0xa16749={'count':0x0,'rows':[]},_0x968af0=_[_0xabe43c('0x1')](db['VoiceDialReport'][_0xabe43c('0x31')],function(_0x198e14){const _0x283ebf=_0xabe43c;return{'name':_0x198e14[_0x283ebf('0xd')],'type':_0x198e14['type']['key']};});_0x2d971c[_0xabe43c('0x15')]=_[_0xabe43c('0x1')](_0x968af0,_0xabe43c('0x8')),_0x2d971c['query']=_[_0xabe43c('0x1c')](_0x5814d0[_0xabe43c('0x0')]),_0x2d971c[_0xabe43c('0x10')]=_[_0xabe43c('0x12')](_0x2d971c[_0xabe43c('0x15')],_0x2d971c[_0xabe43c('0x0')]),_0x491c52[_0xabe43c('0x2b')]=_[_0xabe43c('0x12')](_0x2d971c['model'],qs[_0xabe43c('0x2a')](_0x5814d0[_0xabe43c('0x0')][_0xabe43c('0x2a')])),_0x491c52[_0xabe43c('0x2b')]=_0x491c52['attributes'][_0xabe43c('0xc')]?_0x491c52[_0xabe43c('0x2b')]:_0x2d971c['model'];typeof _0x5814d0['query']['nolimit']===_0xabe43c('0xe')&&(_0x491c52[_0xabe43c('0x4')]=qs[_0xabe43c('0x4')](_0x5814d0['query'][_0xabe43c('0x4')]),_0x491c52[_0xabe43c('0x16')]=qs['offset'](_0x5814d0['query'][_0xabe43c('0x16')]));_0x491c52['order']=qs['sort'](_0x5814d0[_0xabe43c('0x0')][_0xabe43c('0x23')]),_0x491c52[_0xabe43c('0x13')]=qs[_0xabe43c('0x10')](_['pick'](_0x5814d0['query'],_0x2d971c[_0xabe43c('0x10')]),_0x968af0);_0x5814d0['query']['filter']&&(_0x491c52[_0xabe43c('0x13')]=_[_0xabe43c('0x1a')](_0x491c52[_0xabe43c('0x13')],{[Op['or']]:_[_0xabe43c('0x1')](_0x968af0,function(_0x3d8492){const _0x4da22f=_0xabe43c;if(_0x3d8492[_0x4da22f('0x26')]!==_0x4da22f('0x21')){const _0x413c47={};return _0x413c47[_0x3d8492[_0x4da22f('0x8')]]={[Op[_0x4da22f('0x25')]]:'%'+_0x5814d0[_0x4da22f('0x0')][_0x4da22f('0x28')]+'%'},_0x413c47;}})}));_0x491c52=_['merge']({},_0x491c52,_0x5814d0[_0xabe43c('0x19')]);const _0x4dc7f3={'where':_0x491c52[_0xabe43c('0x13')]};return db[_0xabe43c('0x9')]['count'](_0x4dc7f3)['then'](function(_0x13b26a){const _0x3cccd9=_0xabe43c;return _0xa16749['count']=_0x13b26a,_0x5814d0[_0x3cccd9('0x0')][_0x3cccd9('0x2f')]&&(_0x491c52[_0x3cccd9('0x3')]=[{'all':!![]}]),db[_0x3cccd9('0x9')][_0x3cccd9('0x14')](_0x491c52);})[_0xabe43c('0x18')](function(_0x6426d6){const _0x52bf46=_0xabe43c;return _0xa16749[_0x52bf46('0x1e')]=_0x6426d6,_0xa16749;})['then'](respondWithFilteredResult(_0x25a35a,_0x491c52))['catch'](handleError(_0x25a35a,null));},exports[_0x52c42b('0x5')]=function(_0x4b8cf1,_0x6661fc){const _0xdd8e48=_0x52c42b;let _0x3a9c4f={'raw':!![],'where':{'id':_0x4b8cf1[_0xdd8e48('0x11')]['id']}};const _0x2b1d17={};return _0x2b1d17[_0xdd8e48('0x15')]=_[_0xdd8e48('0x1c')](db[_0xdd8e48('0x9')][_0xdd8e48('0x31')]),_0x2b1d17[_0xdd8e48('0x0')]=_['keys'](_0x4b8cf1[_0xdd8e48('0x0')]),_0x2b1d17['filters']=_['intersection'](_0x2b1d17[_0xdd8e48('0x15')],_0x2b1d17['query']),_0x3a9c4f[_0xdd8e48('0x2b')]=_[_0xdd8e48('0x12')](_0x2b1d17[_0xdd8e48('0x15')],qs[_0xdd8e48('0x2a')](_0x4b8cf1[_0xdd8e48('0x0')][_0xdd8e48('0x2a')])),_0x3a9c4f[_0xdd8e48('0x2b')]=_0x3a9c4f[_0xdd8e48('0x2b')][_0xdd8e48('0xc')]?_0x3a9c4f[_0xdd8e48('0x2b')]:_0x2b1d17[_0xdd8e48('0x15')],_0x4b8cf1[_0xdd8e48('0x0')][_0xdd8e48('0x2f')]&&(_0x3a9c4f[_0xdd8e48('0x3')]=[{'all':!![]}]),_0x3a9c4f=_[_0xdd8e48('0x1a')]({},_0x3a9c4f,_0x4b8cf1[_0xdd8e48('0x19')]),db[_0xdd8e48('0x9')][_0xdd8e48('0xa')](_0x3a9c4f)[_0xdd8e48('0x18')](handleEntityNotFound(_0x6661fc,null))[_0xdd8e48('0x18')](respondWithResult(_0x6661fc,null))['catch'](handleError(_0x6661fc,null));},exports[_0x52c42b('0x1f')]=function(_0x8883e0,_0x1deb19){const _0x383dd5=_0x52c42b;return db[_0x383dd5('0x9')]['create'](_0x8883e0[_0x383dd5('0x29')],{})[_0x383dd5('0x18')](respondWithResult(_0x1deb19,0xc9))[_0x383dd5('0x2')](handleError(_0x1deb19,null));},exports[_0x52c42b('0x17')]=function(_0xca8d14,_0x4f02cc){const _0x360ac4=_0x52c42b;return _0xca8d14[_0x360ac4('0x29')]['id']&&delete _0xca8d14[_0x360ac4('0x29')]['id'],db[_0x360ac4('0x9')][_0x360ac4('0xa')]({'where':{'id':_0xca8d14[_0x360ac4('0x11')]['id']}})[_0x360ac4('0x18')](handleEntityNotFound(_0x4f02cc,null))['then'](saveUpdates(_0xca8d14['body'],null))[_0x360ac4('0x18')](respondWithResult(_0x4f02cc,null))['catch'](handleError(_0x4f02cc,null));},exports[_0x52c42b('0x1b')]=function(_0x5125f2,_0x1a9511){const _0x4d2565=_0x52c42b;return db[_0x4d2565('0x9')][_0x4d2565('0xa')]({'where':{'id':_0x5125f2[_0x4d2565('0x11')]['id']}})[_0x4d2565('0x18')](handleEntityNotFound(_0x1a9511,null))['then'](removeEntity(_0x1a9511,null))['catch'](handleError(_0x1a9511,null));},exports[_0x52c42b('0x24')]=function(_0x5cdc53,_0x1bdc34){const _0x11b9f2=_0x52c42b;return db[_0x11b9f2('0x9')][_0x11b9f2('0x24')]()[_0x11b9f2('0x18')](respondWithResult(_0x1bdc34,null))['catch'](handleError(_0x1bdc34,null));}; \ No newline at end of file +const a722_0x570d=['VIRTUAL','rawAttributes','params','undefined','update','order','model','includeAll','key','type','create','options','json','query','intersection','end','findAll','filters','error','status','limit','map','then','sendStatus','fields','keys','where','../../config/logger','body','lodash','destroy','show','merge','../../mysqldb','../../components/parsers/qs','pick','nolimit','catch','sequelize','include','VoiceDialReport','findOne','length','attributes','offset','count','name','api','describe','rows'];(function(_0x3df710,_0x570ddd){const _0x5c142f=function(_0x23476a){while(--_0x23476a){_0x3df710['push'](_0x3df710['shift']());}};_0x5c142f(++_0x570ddd);}(a722_0x570d,0x196));const a722_0x5c14=function(_0x3df710,_0x570ddd){_0x3df710=_0x3df710-0x0;let _0x5c142f=a722_0x570d[_0x3df710];return _0x5c142f;};const _0x3ae1a7=a722_0x5c14;'use strict';const _=require(_0x3ae1a7('0x17')),qs=require(_0x3ae1a7('0x1c')),logger=require(_0x3ae1a7('0x15'))(_0x3ae1a7('0x29')),db=require(_0x3ae1a7('0x1b'))['db'],{Op}=require(_0x3ae1a7('0x20'));function respondWithResult(_0x23476a,_0x42839c){return _0x42839c=_0x42839c||0xc8,function(_0x41ee1c){if(_0x41ee1c)return _0x23476a['status'](_0x42839c)['json'](_0x41ee1c);};}function respondWithFilteredResult(_0xd648c4,_0x18441d){return function(_0x1acf14){const _0x1327cd=a722_0x5c14;if(_0x1acf14){const _0x3ec274=_0x1acf14[_0x1327cd('0x27')],_0x1d5526=_0x18441d[_0x1327cd('0x26')];let _0x1fe145=_0x18441d['offset']+_0x18441d[_0x1327cd('0xe')],_0x18c420;return _0x1fe145>=_0x3ec274?(_0x1fe145=_0x3ec274,_0x18c420=0xc8):_0x18c420=0xce,_0xd648c4[_0x1327cd('0xd')](_0x18c420),_0xd648c4['set']('Content-Range',_0x1d5526+'-'+_0x1fe145+'/'+_0x3ec274)[_0x1327cd('0x6')](_0x1acf14);}return null;};}function saveUpdates(_0x30fbc9){return function(_0x215ad5){const _0x5e69e0=a722_0x5c14;if(_0x215ad5)return _0x215ad5[_0x5e69e0('0x30')](_0x30fbc9)[_0x5e69e0('0x10')](function(_0x4d4e05){return _0x4d4e05;});return null;};}function removeEntity(_0x3449b1){return function(_0x1e8ed0){const _0x56a6d6=a722_0x5c14;if(_0x1e8ed0)return _0x1e8ed0[_0x56a6d6('0x18')]()[_0x56a6d6('0x10')](function(){const _0x5d7dd9=_0x56a6d6;_0x3449b1['status'](0xcc)[_0x5d7dd9('0x9')]();});};}function handleEntityNotFound(_0x5d7c12){return function(_0x1c7ad9){const _0x5cbb66=a722_0x5c14;return!_0x1c7ad9&&_0x5d7c12[_0x5cbb66('0x11')](0x194),_0x1c7ad9;};}function handleError(_0x2f6795,_0x36dcd6){return _0x36dcd6=_0x36dcd6||0x1f4,function(_0x28c182){const _0x425a3b=a722_0x5c14;logger[_0x425a3b('0xc')](_0x28c182['stack']),_0x28c182[_0x425a3b('0x28')]&&delete _0x28c182[_0x425a3b('0x28')],_0x2f6795[_0x425a3b('0xd')](_0x36dcd6)['send'](_0x28c182);};}exports['index']=function(_0x573d45,_0x146dbb){const _0x380df9=_0x3ae1a7;let _0x43d14e={};const _0x270b66={},_0x5bb818={'count':0x0,'rows':[]},_0xda89dc=_[_0x380df9('0xf')](db[_0x380df9('0x22')]['rawAttributes'],function(_0x3f8997){const _0x497a7b=_0x380df9;return{'name':_0x3f8997['fieldName'],'type':_0x3f8997[_0x497a7b('0x3')][_0x497a7b('0x2')]};});_0x270b66[_0x380df9('0x0')]=_[_0x380df9('0xf')](_0xda89dc,_0x380df9('0x28')),_0x270b66[_0x380df9('0x7')]=_['keys'](_0x573d45['query']),_0x270b66['filters']=_[_0x380df9('0x8')](_0x270b66[_0x380df9('0x0')],_0x270b66[_0x380df9('0x7')]),_0x43d14e[_0x380df9('0x25')]=_['intersection'](_0x270b66[_0x380df9('0x0')],qs[_0x380df9('0x12')](_0x573d45[_0x380df9('0x7')][_0x380df9('0x12')])),_0x43d14e[_0x380df9('0x25')]=_0x43d14e[_0x380df9('0x25')]['length']?_0x43d14e[_0x380df9('0x25')]:_0x270b66['model'];typeof _0x573d45['query'][_0x380df9('0x1e')]===_0x380df9('0x2f')&&(_0x43d14e[_0x380df9('0xe')]=qs[_0x380df9('0xe')](_0x573d45[_0x380df9('0x7')][_0x380df9('0xe')]),_0x43d14e['offset']=qs[_0x380df9('0x26')](_0x573d45[_0x380df9('0x7')][_0x380df9('0x26')]));_0x43d14e[_0x380df9('0x31')]=qs['sort'](_0x573d45[_0x380df9('0x7')]['sort']),_0x43d14e['where']=qs[_0x380df9('0xb')](_[_0x380df9('0x1d')](_0x573d45[_0x380df9('0x7')],_0x270b66['filters']),_0xda89dc);_0x573d45[_0x380df9('0x7')]['filter']&&(_0x43d14e[_0x380df9('0x14')]=_['merge'](_0x43d14e[_0x380df9('0x14')],{[Op['or']]:_[_0x380df9('0xf')](_0xda89dc,function(_0x396326){const _0x5f38f1=_0x380df9;if(_0x396326[_0x5f38f1('0x3')]!==_0x5f38f1('0x2c')){const _0x39f461={};return _0x39f461[_0x396326['name']]={[Op['like']]:'%'+_0x573d45[_0x5f38f1('0x7')]['filter']+'%'},_0x39f461;}})}));_0x43d14e=_['merge']({},_0x43d14e,_0x573d45[_0x380df9('0x5')]);const _0x276a5b={'where':_0x43d14e[_0x380df9('0x14')]};return db[_0x380df9('0x22')][_0x380df9('0x27')](_0x276a5b)[_0x380df9('0x10')](function(_0x5957df){const _0x58f594=_0x380df9;return _0x5bb818['count']=_0x5957df,_0x573d45[_0x58f594('0x7')]['includeAll']&&(_0x43d14e[_0x58f594('0x21')]=[{'all':!![]}]),db['VoiceDialReport'][_0x58f594('0xa')](_0x43d14e);})['then'](function(_0x3942d9){const _0xe55251=_0x380df9;return _0x5bb818[_0xe55251('0x2b')]=_0x3942d9,_0x5bb818;})[_0x380df9('0x10')](respondWithFilteredResult(_0x146dbb,_0x43d14e))[_0x380df9('0x1f')](handleError(_0x146dbb,null));},exports[_0x3ae1a7('0x19')]=function(_0x3ca7a2,_0x493518){const _0x1987f6=_0x3ae1a7;let _0x74b06f={'raw':!![],'where':{'id':_0x3ca7a2['params']['id']}};const _0x572105={};return _0x572105[_0x1987f6('0x0')]=_[_0x1987f6('0x13')](db[_0x1987f6('0x22')][_0x1987f6('0x2d')]),_0x572105['query']=_[_0x1987f6('0x13')](_0x3ca7a2[_0x1987f6('0x7')]),_0x572105[_0x1987f6('0xb')]=_[_0x1987f6('0x8')](_0x572105[_0x1987f6('0x0')],_0x572105[_0x1987f6('0x7')]),_0x74b06f[_0x1987f6('0x25')]=_['intersection'](_0x572105['model'],qs[_0x1987f6('0x12')](_0x3ca7a2['query']['fields'])),_0x74b06f[_0x1987f6('0x25')]=_0x74b06f[_0x1987f6('0x25')][_0x1987f6('0x24')]?_0x74b06f[_0x1987f6('0x25')]:_0x572105[_0x1987f6('0x0')],_0x3ca7a2['query'][_0x1987f6('0x1')]&&(_0x74b06f[_0x1987f6('0x21')]=[{'all':!![]}]),_0x74b06f=_[_0x1987f6('0x1a')]({},_0x74b06f,_0x3ca7a2[_0x1987f6('0x5')]),db[_0x1987f6('0x22')][_0x1987f6('0x23')](_0x74b06f)['then'](handleEntityNotFound(_0x493518,null))['then'](respondWithResult(_0x493518,null))[_0x1987f6('0x1f')](handleError(_0x493518,null));},exports[_0x3ae1a7('0x4')]=function(_0xa6eee9,_0xaa718){const _0x33771=_0x3ae1a7;return db[_0x33771('0x22')][_0x33771('0x4')](_0xa6eee9[_0x33771('0x16')],{})['then'](respondWithResult(_0xaa718,0xc9))['catch'](handleError(_0xaa718,null));},exports[_0x3ae1a7('0x30')]=function(_0x2f2c89,_0x16f545){const _0x1be28a=_0x3ae1a7;return _0x2f2c89[_0x1be28a('0x16')]['id']&&delete _0x2f2c89[_0x1be28a('0x16')]['id'],db['VoiceDialReport'][_0x1be28a('0x23')]({'where':{'id':_0x2f2c89['params']['id']}})['then'](handleEntityNotFound(_0x16f545,null))[_0x1be28a('0x10')](saveUpdates(_0x2f2c89[_0x1be28a('0x16')],null))[_0x1be28a('0x10')](respondWithResult(_0x16f545,null))[_0x1be28a('0x1f')](handleError(_0x16f545,null));},exports[_0x3ae1a7('0x18')]=function(_0x34f7ae,_0x1ba308){const _0x57437b=_0x3ae1a7;return db[_0x57437b('0x22')][_0x57437b('0x23')]({'where':{'id':_0x34f7ae[_0x57437b('0x2e')]['id']}})[_0x57437b('0x10')](handleEntityNotFound(_0x1ba308,null))[_0x57437b('0x10')](removeEntity(_0x1ba308,null))[_0x57437b('0x1f')](handleError(_0x1ba308,null));},exports[_0x3ae1a7('0x2a')]=function(_0x268a46,_0x56f43e){const _0x1b1927=_0x3ae1a7;return db[_0x1b1927('0x22')][_0x1b1927('0x2a')]()[_0x1b1927('0x10')](respondWithResult(_0x56f43e,null))[_0x1b1927('0x1f')](handleError(_0x56f43e,null));}; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.model.js b/server/api/voiceDialReport/voiceDialReport.model.js index c29f57b..1d4188c 100644 --- a/server/api/voiceDialReport/voiceDialReport.model.js +++ b/server/api/voiceDialReport/voiceDialReport.model.js @@ -1 +1 @@ -const a723_0x5e51=['./voiceDialReport.attributes','VoiceDialReport','uniqueid','define','report_dial'];(function(_0x146bba,_0x5e512d){const _0x19d3aa=function(_0x51a2ce){while(--_0x51a2ce){_0x146bba['push'](_0x146bba['shift']());}};_0x19d3aa(++_0x5e512d);}(a723_0x5e51,0xe6));const a723_0x19d3=function(_0x146bba,_0x5e512d){_0x146bba=_0x146bba-0x0;let _0x19d3aa=a723_0x5e51[_0x146bba];return _0x19d3aa;};const _0x12918e=a723_0x19d3;'use strict';const attributes=require(_0x12918e('0x0'));module['exports']=function(_0x51a2ce){const _0x38c7a8=_0x12918e,_0x47670e=_0x51a2ce[_0x38c7a8('0x3')](_0x38c7a8('0x1'),attributes,{'tableName':_0x38c7a8('0x4'),'paranoid':![],'indexes':[{'fields':[_0x38c7a8('0x2')]}],'timestamps':!![]});return _0x47670e;}; \ No newline at end of file +const a723_0x556e=['VoiceDialReport','report_dial','uniqueid','exports','define','./voiceDialReport.attributes'];(function(_0x23a35a,_0x556e9f){const _0x25f8f5=function(_0x448ff0){while(--_0x448ff0){_0x23a35a['push'](_0x23a35a['shift']());}};_0x25f8f5(++_0x556e9f);}(a723_0x556e,0x115));const a723_0x25f8=function(_0x23a35a,_0x556e9f){_0x23a35a=_0x23a35a-0x0;let _0x25f8f5=a723_0x556e[_0x23a35a];return _0x25f8f5;};const _0x328521=a723_0x25f8;'use strict';const attributes=require(_0x328521('0x4'));module[_0x328521('0x2')]=function(_0x448ff0){const _0x142206=_0x328521,_0x4d96c8=_0x448ff0[_0x142206('0x3')](_0x142206('0x5'),attributes,{'tableName':_0x142206('0x0'),'paranoid':![],'indexes':[{'fields':[_0x142206('0x1')]}],'timestamps':!![]});return _0x4d96c8;}; \ No newline at end of file diff --git a/server/api/voiceDialReport/voiceDialReport.rpc.js b/server/api/voiceDialReport/voiceDialReport.rpc.js index 1cf17dd..e183dfb 100644 --- a/server/api/voiceDialReport/voiceDialReport.rpc.js +++ b/server/api/voiceDialReport/voiceDialReport.rpc.js @@ -1 +1 @@ -const a724_0x4112=['debug','raw','attributes','message','limit','info','stringify','../../config/logger','options','body','catch','then','CreateVoiceDialReport','../../mysqldb','VoiceDialReport','error','UpdateVoiceDialReport','update'];(function(_0x3204dc,_0x41122b){const _0x443e14=function(_0x1d23b1){while(--_0x1d23b1){_0x3204dc['push'](_0x3204dc['shift']());}};_0x443e14(++_0x41122b);}(a724_0x4112,0x9d));const a724_0x443e=function(_0x3204dc,_0x41122b){_0x3204dc=_0x3204dc-0x0;let _0x443e14=a724_0x4112[_0x3204dc];return _0x443e14;};const _0x2be0e9=a724_0x443e;'use strict';const db=require(_0x2be0e9('0x0'))['db'],logger=require(_0x2be0e9('0xc'))('rpc');exports[_0x2be0e9('0x11')]=function(_0x1d23b1){const _0xef56aa=this;return new Promise(function(_0x95b2a0,_0x4378a1){const _0x3c4717=a724_0x443e;return db[_0x3c4717('0x1')]['create'](_0x1d23b1[_0x3c4717('0xe')],{'raw':_0x1d23b1[_0x3c4717('0xd')]?_0x1d23b1[_0x3c4717('0xd')]['raw']===undefined?!![]:![]:!![]})[_0x3c4717('0x10')](function(_0x33cde9){const _0x493a52=_0x3c4717;logger[_0x493a52('0xa')](_0x493a52('0x11'),_0x1d23b1),logger['debug'](_0x493a52('0x11'),_0x1d23b1,JSON[_0x493a52('0xb')](_0x33cde9)),_0x95b2a0(_0x33cde9);})[_0x3c4717('0xf')](function(_0x529d97){const _0x2b465f=_0x3c4717;logger[_0x2b465f('0x2')](_0x2b465f('0x11'),_0x529d97[_0x2b465f('0x8')],_0x1d23b1),_0x4378a1(_0xef56aa[_0x2b465f('0x2')](0x1f4,_0x529d97[_0x2b465f('0x8')]));});});},exports['UpdateVoiceDialReport']=function(_0x39bdbf){const _0x4b1579=this;return new Promise(function(_0x2b85ad,_0x44a149){const _0x2e471c=a724_0x443e;return db[_0x2e471c('0x1')][_0x2e471c('0x4')](_0x39bdbf[_0x2e471c('0xe')],{'raw':_0x39bdbf[_0x2e471c('0xd')]?_0x39bdbf[_0x2e471c('0xd')][_0x2e471c('0x6')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x39bdbf[_0x2e471c('0xd')]?_0x39bdbf['options']['where']||null:null,'attributes':_0x39bdbf[_0x2e471c('0xd')]?_0x39bdbf['options'][_0x2e471c('0x7')]||null:null,'limit':_0x39bdbf[_0x2e471c('0xd')]?_0x39bdbf[_0x2e471c('0xd')][_0x2e471c('0x9')]||null:null})['then'](function(_0x37a487){const _0x366862=_0x2e471c;logger[_0x366862('0xa')](_0x366862('0x3'),_0x39bdbf),logger[_0x366862('0x5')](_0x366862('0x3'),_0x39bdbf,JSON[_0x366862('0xb')](_0x37a487)),_0x2b85ad(_0x37a487);})[_0x2e471c('0xf')](function(_0x14f403){const _0x3dac95=_0x2e471c;logger['error'](_0x3dac95('0x3'),_0x14f403[_0x3dac95('0x8')],_0x39bdbf),_0x44a149(_0x4b1579[_0x3dac95('0x2')](0x1f4,_0x14f403[_0x3dac95('0x8')]));});});}; \ No newline at end of file +const a724_0x898b=['raw','rpc','then','CreateVoiceDialReport','error','attributes','../../mysqldb','UpdateVoiceDialReport','message','options','stringify','../../config/logger','info','VoiceDialReport','limit','body','debug'];(function(_0x525b9a,_0x898b3d){const _0x5c765e=function(_0x25e206){while(--_0x25e206){_0x525b9a['push'](_0x525b9a['shift']());}};_0x5c765e(++_0x898b3d);}(a724_0x898b,0x193));const a724_0x5c76=function(_0x525b9a,_0x898b3d){_0x525b9a=_0x525b9a-0x0;let _0x5c765e=a724_0x898b[_0x525b9a];return _0x5c765e;};const _0x4cc57b=a724_0x5c76;'use strict';const db=require(_0x4cc57b('0xb'))['db'],logger=require(_0x4cc57b('0x10'))(_0x4cc57b('0x6'));exports[_0x4cc57b('0x8')]=function(_0x25e206){const _0x459363=this;return new Promise(function(_0x50a66a,_0x1c8903){const _0x3d1323=a724_0x5c76;return db['VoiceDialReport']['create'](_0x25e206[_0x3d1323('0x3')],{'raw':_0x25e206[_0x3d1323('0xe')]?_0x25e206[_0x3d1323('0xe')][_0x3d1323('0x5')]===undefined?!![]:![]:!![]})[_0x3d1323('0x7')](function(_0x179ac8){const _0x382ee=_0x3d1323;logger['info'](_0x382ee('0x8'),_0x25e206),logger['debug'](_0x382ee('0x8'),_0x25e206,JSON[_0x382ee('0xf')](_0x179ac8)),_0x50a66a(_0x179ac8);})['catch'](function(_0x4cead6){const _0x37277d=_0x3d1323;logger[_0x37277d('0x9')](_0x37277d('0x8'),_0x4cead6[_0x37277d('0xd')],_0x25e206),_0x1c8903(_0x459363[_0x37277d('0x9')](0x1f4,_0x4cead6[_0x37277d('0xd')]));});});},exports[_0x4cc57b('0xc')]=function(_0x261b18){const _0x83a1b3=this;return new Promise(function(_0x351424,_0x3af12c){const _0x247e0c=a724_0x5c76;return db[_0x247e0c('0x1')]['update'](_0x261b18[_0x247e0c('0x3')],{'raw':_0x261b18['options']?_0x261b18[_0x247e0c('0xe')][_0x247e0c('0x5')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x261b18[_0x247e0c('0xe')]?_0x261b18[_0x247e0c('0xe')]['where']||null:null,'attributes':_0x261b18[_0x247e0c('0xe')]?_0x261b18[_0x247e0c('0xe')][_0x247e0c('0xa')]||null:null,'limit':_0x261b18[_0x247e0c('0xe')]?_0x261b18['options'][_0x247e0c('0x2')]||null:null})[_0x247e0c('0x7')](function(_0xd2e709){const _0x340cf2=_0x247e0c;logger[_0x340cf2('0x0')]('UpdateVoiceDialReport',_0x261b18),logger[_0x340cf2('0x4')](_0x340cf2('0xc'),_0x261b18,JSON[_0x340cf2('0xf')](_0xd2e709)),_0x351424(_0xd2e709);})['catch'](function(_0x4858d9){const _0x3a0a9e=_0x247e0c;logger[_0x3a0a9e('0x9')](_0x3a0a9e('0xc'),_0x4858d9[_0x3a0a9e('0xd')],_0x261b18),_0x3af12c(_0x83a1b3[_0x3a0a9e('0x9')](0x1f4,_0x4858d9['message']));});});}; \ No newline at end of file diff --git a/server/api/voiceExtension/index.js b/server/api/voiceExtension/index.js index ad1d8f8..44e8862 100644 --- a/server/api/voiceExtension/index.js +++ b/server/api/voiceExtension/index.js @@ -1 +1 @@ -const a725_0x58be=['./voiceExtension.controller','update','/:id/applications','show','isAuthenticated','/:id','get','express','put','post','addApplications','Router','exports','index','destroy'];(function(_0x29e81c,_0x58be60){const _0xb4bf61=function(_0x1850fa){while(--_0x1850fa){_0x29e81c['push'](_0x29e81c['shift']());}};_0xb4bf61(++_0x58be60);}(a725_0x58be,0xa9));const a725_0xb4bf=function(_0x29e81c,_0x58be60){_0x29e81c=_0x29e81c-0x0;let _0xb4bf61=a725_0x58be[_0x29e81c];return _0xb4bf61;};const _0x207e3d=a725_0xb4bf;'use strict';const express=require(_0x207e3d('0x3')),router=express[_0x207e3d('0x7')](),auth=require('../../components/auth/service'),controller=require(_0x207e3d('0xb'));router[_0x207e3d('0x2')]('/',auth[_0x207e3d('0x0')](),controller[_0x207e3d('0x9')]),router[_0x207e3d('0x2')](_0x207e3d('0x1'),auth[_0x207e3d('0x0')](),controller[_0x207e3d('0xe')]),router[_0x207e3d('0x5')]('/',auth[_0x207e3d('0x0')](),controller['create']),router[_0x207e3d('0x5')](_0x207e3d('0xd'),auth[_0x207e3d('0x0')](),controller[_0x207e3d('0x6')]),router[_0x207e3d('0x4')](_0x207e3d('0x1'),auth[_0x207e3d('0x0')](),controller[_0x207e3d('0xc')]),router['delete']('/:id',auth[_0x207e3d('0x0')](),controller[_0x207e3d('0xa')]),module[_0x207e3d('0x8')]=router; \ No newline at end of file +const a725_0x4b96=['update','post','../../components/auth/service','addApplications','isAuthenticated','destroy','./voiceExtension.controller','index','express','Router','/:id/applications','get','/:id','exports','put'];(function(_0x126690,_0x4b964c){const _0x5ade49=function(_0x42a971){while(--_0x42a971){_0x126690['push'](_0x126690['shift']());}};_0x5ade49(++_0x4b964c);}(a725_0x4b96,0x18a));const a725_0x5ade=function(_0x126690,_0x4b964c){_0x126690=_0x126690-0x0;let _0x5ade49=a725_0x4b96[_0x126690];return _0x5ade49;};const _0x44eb95=a725_0x5ade;'use strict';const express=require(_0x44eb95('0x4')),router=express[_0x44eb95('0x5')](),auth=require(_0x44eb95('0xd')),controller=require(_0x44eb95('0x2'));router[_0x44eb95('0x7')]('/',auth[_0x44eb95('0x0')](),controller[_0x44eb95('0x3')]),router['get'](_0x44eb95('0x8'),auth[_0x44eb95('0x0')](),controller['show']),router[_0x44eb95('0xc')]('/',auth['isAuthenticated'](),controller['create']),router['post'](_0x44eb95('0x6'),auth[_0x44eb95('0x0')](),controller[_0x44eb95('0xe')]),router[_0x44eb95('0xa')](_0x44eb95('0x8'),auth['isAuthenticated'](),controller[_0x44eb95('0xb')]),router['delete'](_0x44eb95('0x8'),auth['isAuthenticated'](),controller[_0x44eb95('0x1')]),module[_0x44eb95('0x9')]=router; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.attributes.js b/server/api/voiceExtension/voiceExtension.attributes.js index 6bb820e..dc64a8e 100644 --- a/server/api/voiceExtension/voiceExtension.attributes.js +++ b/server/api/voiceExtension/voiceExtension.attributes.js @@ -1 +1 @@ -const a726_0x5807=['outbound-fax','sequelize','STRING','NoOp','compositeIndex','*,*,*,*','internal','INTEGER','exports','any','getDataValue','system','ENUM','inbound','inbound-fax','BOOLEAN'];(function(_0x17176b,_0x580704){const _0x4ae507=function(_0x3ac709){while(--_0x3ac709){_0x17176b['push'](_0x17176b['shift']());}};_0x4ae507(++_0x580704);}(a726_0x5807,0x1e3));const a726_0x4ae5=function(_0x17176b,_0x580704){_0x17176b=_0x17176b-0x0;let _0x4ae507=a726_0x5807[_0x17176b];return _0x4ae507;};const _0x131604=a726_0x4ae5;'use strict';const Sequelize=require(_0x131604('0xe'));module[_0x131604('0x5')]={'context':{'type':Sequelize[_0x131604('0xf')],'allowNull':![],'unique':_0x131604('0x1'),'validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':Sequelize[_0x131604('0xf')],'allowNull':![],'unique':_0x131604('0x1')},'priority':{'type':Sequelize[_0x131604('0xf')],'allowNull':![],'defaultValue':'1','unique':_0x131604('0x1')},'tag':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'--'},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x131604('0x0')},'appdata':{'type':Sequelize[_0x131604('0xf')](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':Sequelize[_0x131604('0x9')](_0x131604('0xa'),'outbound',_0x131604('0x3'),_0x131604('0xb'),_0x131604('0xd'),_0x131604('0x8'),_0x131604('0x6')),'allowNull':![]},'description':{'type':Sequelize[_0x131604('0xf')]},'interval':{'type':Sequelize[_0x131604('0xf')],'allowNull':![],'defaultValue':_0x131604('0x2')},'IntervalId':{'type':Sequelize[_0x131604('0x4')]},'isApp':{'type':Sequelize[_0x131604('0xc')],'allowNull':![],'defaultValue':![]},'appType':{'type':Sequelize[_0x131604('0xf')],'defaultValue':null},'callerID':{'type':Sequelize[_0x131604('0xf')],'allowNull':!![]},'record':{'type':Sequelize[_0x131604('0xc')],'defaultValue':![]},'cutdigits':{'type':Sequelize[_0x131604('0x4')]},'recordingFormat':{'type':Sequelize['STRING'],'defaultValue':'wav'},'answer':{'type':Sequelize[_0x131604('0xc')],'defaultValue':!![]},'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x58040e=_0x131604;return this[_0x58040e('0x7')]('exten');}}}; \ No newline at end of file +const a726_0x237b=['VIRTUAL','INTEGER','*,*,*,*','wav','STRING','outbound-fax','system','outbound','exten','BOOLEAN','ENUM','compositeIndex','exports','inbound','getDataValue','sequelize'];(function(_0xca38a9,_0x237bdc){const _0x54d2a8=function(_0x2a6e81){while(--_0x2a6e81){_0xca38a9['push'](_0xca38a9['shift']());}};_0x54d2a8(++_0x237bdc);}(a726_0x237b,0xbf));const a726_0x54d2=function(_0xca38a9,_0x237bdc){_0xca38a9=_0xca38a9-0x0;let _0x54d2a8=a726_0x237b[_0xca38a9];return _0x54d2a8;};const _0x21b7e6=a726_0x54d2;'use strict';const Sequelize=require(_0x21b7e6('0x0'));module[_0x21b7e6('0xd')]={'context':{'type':Sequelize[_0x21b7e6('0x5')],'allowNull':![],'unique':'compositeIndex','validate':{'notEmpty':!![],'is':/[A-Za-z0-9._+*!\-[\]]+$/i}},'exten':{'type':Sequelize[_0x21b7e6('0x5')],'allowNull':![],'unique':_0x21b7e6('0xc')},'priority':{'type':Sequelize[_0x21b7e6('0x5')],'allowNull':![],'defaultValue':'1','unique':_0x21b7e6('0xc')},'tag':{'type':Sequelize[_0x21b7e6('0x5')],'allowNull':![],'defaultValue':'--'},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':'NoOp'},'appdata':{'type':Sequelize[_0x21b7e6('0x5')](0x1000),'allowNull':!![],'defaultValue':''},'type':{'type':Sequelize[_0x21b7e6('0xb')](_0x21b7e6('0xe'),_0x21b7e6('0x8'),'internal','inbound-fax',_0x21b7e6('0x6'),_0x21b7e6('0x7'),'any'),'allowNull':![]},'description':{'type':Sequelize['STRING']},'interval':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x21b7e6('0x3')},'IntervalId':{'type':Sequelize[_0x21b7e6('0x2')]},'isApp':{'type':Sequelize[_0x21b7e6('0xa')],'allowNull':![],'defaultValue':![]},'appType':{'type':Sequelize[_0x21b7e6('0x5')],'defaultValue':null},'callerID':{'type':Sequelize['STRING'],'allowNull':!![]},'record':{'type':Sequelize[_0x21b7e6('0xa')],'defaultValue':![]},'cutdigits':{'type':Sequelize['INTEGER']},'recordingFormat':{'type':Sequelize['STRING'],'defaultValue':_0x21b7e6('0x4')},'answer':{'type':Sequelize['BOOLEAN'],'defaultValue':!![]},'name':{'type':Sequelize[_0x21b7e6('0x1')],'get':function(){const _0x39550f=_0x21b7e6;return this[_0x39550f('0xf')](_0x39550f('0x9'));}}}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.controller.js b/server/api/voiceExtension/voiceExtension.controller.js index a04ddc3..64f305c 100644 --- a/server/api/voiceExtension/voiceExtension.controller.js +++ b/server/api/voiceExtension/voiceExtension.controller.js @@ -1 +1 @@ -const a727_0x1443=['bulkCreate','length','VoiceExtensionId','keys','findAndCountAll','includeAll','error','index','model','filter','type','addApplications','body','api','sendStatus','UserProfileSection','count','get','UserProfileResource','stack','recordingFormat','./voiceExtension.socket','concat','map','show','exten','set','fieldName','fields','inbound','OutboundRoutes','offset','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','context','sequelize','nolimit','filters','../../mysqldb','like','find','where','params','outbound','../../config/logger','sort','then','VoiceExtension','Content-Range','create','query','value','order','name','status','transaction','findOne','destroy','pick','options','description','Unable\x20to\x20retrieve\x20the\x20current\x20user','send','intersection','merge','undefined','update','role','includes','catch','json','cutdigits','user','InboundRoutes','rawAttributes','include','register','ignore','limit','internal','attributes','key'];(function(_0x2d5765,_0x144309){const _0x3845bc=function(_0x1eb407){while(--_0x1eb407){_0x2d5765['push'](_0x2d5765['shift']());}};_0x3845bc(++_0x144309);}(a727_0x1443,0xd7));const a727_0x3845=function(_0x2d5765,_0x144309){_0x2d5765=_0x2d5765-0x0;let _0x3845bc=a727_0x1443[_0x2d5765];return _0x3845bc;};const _0x3d0536=a727_0x3845;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x3d0536('0x47'))(_0x3d0536('0x29')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x3d0536('0x41'))['db'],{Op}=require(_0x3d0536('0x3e'));require(_0x3d0536('0x31'))[_0x3d0536('0x16')](socket);function respondWithStatusCode(_0x1eb407,_0x4aea76){return _0x4aea76=_0x4aea76||0xcc,function(_0x31b73e){if(_0x31b73e)return _0x1eb407['sendStatus'](_0x4aea76);return _0x1eb407['status'](_0x4aea76)['end']();};}function respondWithResult(_0x2ca7d3,_0x45aae4){return _0x45aae4=_0x45aae4||0xc8,function(_0x1712d6){const _0x2724f3=a727_0x3845;if(_0x1712d6)return _0x2ca7d3['status'](_0x45aae4)[_0x2724f3('0x10')](_0x1712d6);};}function respondWithFilteredResult(_0x21323d,_0xac0685){return function(_0x267206){const _0x44ae50=a727_0x3845;if(_0x267206){const _0xf3b256=_0x267206['count'],_0x1d6caa=_0xac0685[_0x44ae50('0x3b')];let _0x3799ee=_0xac0685[_0x44ae50('0x3b')]+_0xac0685[_0x44ae50('0x18')],_0xa84321;return _0x3799ee>=_0xf3b256?(_0x3799ee=_0xf3b256,_0xa84321=0xc8):_0xa84321=0xce,_0x21323d[_0x44ae50('0x0')](_0xa84321),_0x21323d[_0x44ae50('0x36')](_0x44ae50('0x4b'),_0x1d6caa+'-'+_0x3799ee+'/'+_0xf3b256)[_0x44ae50('0x10')](_0x267206);}return null;};}function removeEntity(_0x3f1ba4){return function(_0x345086){const _0x2c1f18=a727_0x3845;if(_0x345086)return _0x345086[_0x2c1f18('0x3')]()['then'](function(){const _0x29431e=_0x2c1f18,_0x945f28=_0x345086[_0x29431e('0x2d')]({'plain':!![]}),_0x5bebb4=[{'name':'InboundRoutes','value':_0x29431e('0x39'),'ignore':![]},{'name':_0x29431e('0x3a'),'value':'outbound','ignore':![]},{'name':'InternalRoutes','value':_0x29431e('0x19'),'ignore':![]}],_0x5700e8=_(_0x5bebb4)[_0x29431e('0x25')](_0x29431e('0x17'))['map'](_0x29431e('0x4e'))[_0x29431e('0x4e')]();if(_[_0x29431e('0xe')](_0x5700e8,_0x945f28['type']))return;const _0x481ccc=_[_0x29431e('0x43')](_0x5bebb4,[_0x29431e('0x4e'),_0x945f28['type']])['name'];return db[_0x29431e('0x2e')]['destroy']({'where':{'type':_0x481ccc,'resourceId':_0x945f28['id']}})['then'](function(){return _0x345086;});})[_0x2c1f18('0x49')](function(){const _0x351a82=_0x2c1f18;_0x3f1ba4[_0x351a82('0x0')](0xcc)['end']();});};}function handleEntityNotFound(_0x2922c8){return function(_0x47199f){const _0x217521=a727_0x3845;return!_0x47199f&&_0x2922c8[_0x217521('0x2a')](0x194),_0x47199f;};}function handleError(_0x77ea38,_0x5baaf8){return _0x5baaf8=_0x5baaf8||0x1f4,function(_0x47dcf8){const _0x54c148=a727_0x3845;logger[_0x54c148('0x22')](_0x47dcf8[_0x54c148('0x2f')]),_0x47dcf8[_0x54c148('0x50')]&&delete _0x47dcf8[_0x54c148('0x50')],_0x77ea38['status'](_0x5baaf8)[_0x54c148('0x8')](_0x47dcf8);};}exports[_0x3d0536('0x23')]=function(_0x2d4b52,_0x8e517b){const _0x6a3a0c=_0x3d0536;let _0x21f94f={};const _0x117d7a={},_0x401b07={'count':0x0,'rows':[]},_0x582cf8=_['map'](db[_0x6a3a0c('0x4a')][_0x6a3a0c('0x14')],function(_0x38a58a){const _0xb6b005=_0x6a3a0c;return{'name':_0x38a58a[_0xb6b005('0x37')],'type':_0x38a58a[_0xb6b005('0x26')][_0xb6b005('0x1b')]};});_0x117d7a['model']=_[_0x6a3a0c('0x33')](_0x582cf8,_0x6a3a0c('0x50')),_0x117d7a[_0x6a3a0c('0x4d')]=_[_0x6a3a0c('0x1f')](_0x2d4b52[_0x6a3a0c('0x4d')]),_0x117d7a[_0x6a3a0c('0x40')]=_[_0x6a3a0c('0x9')](_0x117d7a[_0x6a3a0c('0x24')],_0x117d7a[_0x6a3a0c('0x4d')]),_0x21f94f['attributes']=_[_0x6a3a0c('0x9')](_0x117d7a[_0x6a3a0c('0x24')],qs[_0x6a3a0c('0x38')](_0x2d4b52[_0x6a3a0c('0x4d')][_0x6a3a0c('0x38')])),_0x21f94f[_0x6a3a0c('0x1a')]=_0x21f94f[_0x6a3a0c('0x1a')][_0x6a3a0c('0x1d')]?_0x21f94f[_0x6a3a0c('0x1a')]:_0x117d7a[_0x6a3a0c('0x24')];typeof _0x2d4b52[_0x6a3a0c('0x4d')][_0x6a3a0c('0x3f')]===_0x6a3a0c('0xb')&&(_0x21f94f[_0x6a3a0c('0x18')]=qs[_0x6a3a0c('0x18')](_0x2d4b52[_0x6a3a0c('0x4d')][_0x6a3a0c('0x18')]),_0x21f94f['offset']=qs[_0x6a3a0c('0x3b')](_0x2d4b52['query'][_0x6a3a0c('0x3b')]));_0x21f94f[_0x6a3a0c('0x4f')]=qs[_0x6a3a0c('0x48')](_0x2d4b52[_0x6a3a0c('0x4d')][_0x6a3a0c('0x48')]),_0x21f94f[_0x6a3a0c('0x44')]=qs[_0x6a3a0c('0x40')](_[_0x6a3a0c('0x4')](_0x2d4b52[_0x6a3a0c('0x4d')],_0x117d7a[_0x6a3a0c('0x40')]),_0x582cf8);_0x2d4b52[_0x6a3a0c('0x4d')][_0x6a3a0c('0x25')]&&(_0x21f94f[_0x6a3a0c('0x44')]=_[_0x6a3a0c('0xa')](_0x21f94f[_0x6a3a0c('0x44')],{[Op['or']]:_['map'](_0x582cf8,function(_0x37aaed){const _0x121e1a=_0x6a3a0c;if(_0x37aaed[_0x121e1a('0x26')]!=='VIRTUAL'){const _0x1de926={};return _0x1de926[_0x37aaed[_0x121e1a('0x50')]]={[Op[_0x121e1a('0x42')]]:'%'+_0x2d4b52[_0x121e1a('0x4d')][_0x121e1a('0x25')]+'%'},_0x1de926;}})}));_0x21f94f=_[_0x6a3a0c('0xa')]({},_0x21f94f,_0x2d4b52[_0x6a3a0c('0x5')]);const _0x471221={'where':_0x21f94f[_0x6a3a0c('0x44')]};return db[_0x6a3a0c('0x4a')][_0x6a3a0c('0x2c')](_0x471221)['then'](function(_0x3d2675){const _0xe26083=_0x6a3a0c;return _0x401b07[_0xe26083('0x2c')]=_0x3d2675,_0x2d4b52[_0xe26083('0x4d')][_0xe26083('0x21')]&&(_0x21f94f[_0xe26083('0x15')]=[{'all':!![]}]),db[_0xe26083('0x4a')]['findAll'](_0x21f94f);})[_0x6a3a0c('0x49')](function(_0x28e159){return _0x401b07['rows']=_0x28e159,_0x401b07;})[_0x6a3a0c('0x49')](respondWithFilteredResult(_0x8e517b,_0x21f94f))[_0x6a3a0c('0xf')](handleError(_0x8e517b,null));},exports[_0x3d0536('0x34')]=function(_0x2db8e5,_0x5cd125){const _0x94e055=_0x3d0536;let _0x1296b6={'raw':![],'where':{'id':_0x2db8e5[_0x94e055('0x45')]['id']}};const _0x3e11b9={};return _0x3e11b9[_0x94e055('0x24')]=_['keys'](db[_0x94e055('0x4a')][_0x94e055('0x14')]),_0x3e11b9[_0x94e055('0x4d')]=_[_0x94e055('0x1f')](_0x2db8e5[_0x94e055('0x4d')]),_0x3e11b9['filters']=_[_0x94e055('0x9')](_0x3e11b9[_0x94e055('0x24')],_0x3e11b9['query']),_0x1296b6[_0x94e055('0x1a')]=_[_0x94e055('0x9')](_0x3e11b9[_0x94e055('0x24')],qs[_0x94e055('0x38')](_0x2db8e5[_0x94e055('0x4d')][_0x94e055('0x38')])),_0x1296b6[_0x94e055('0x1a')]=_0x1296b6[_0x94e055('0x1a')][_0x94e055('0x1d')]?_0x1296b6['attributes']:_0x3e11b9[_0x94e055('0x24')],_0x2db8e5[_0x94e055('0x4d')][_0x94e055('0x21')]&&(_0x1296b6['include']=[{'all':!![]}]),_0x1296b6=_[_0x94e055('0xa')]({},_0x1296b6,_0x2db8e5[_0x94e055('0x5')]),db[_0x94e055('0x4a')][_0x94e055('0x2')](_0x1296b6)[_0x94e055('0x49')](handleEntityNotFound(_0x5cd125,null))[_0x94e055('0x49')](respondWithResult(_0x5cd125,null))[_0x94e055('0xf')](handleError(_0x5cd125,null));},exports[_0x3d0536('0x3')]=function(_0x9c91e4,_0xc6f848){const _0x5c08e4=_0x3d0536;return db[_0x5c08e4('0x4a')][_0x5c08e4('0x2')]({'where':{'id':_0x9c91e4[_0x5c08e4('0x45')]['id']}})[_0x5c08e4('0x49')](handleEntityNotFound(_0xc6f848,null))['then'](removeEntity(_0xc6f848,null))[_0x5c08e4('0xf')](handleError(_0xc6f848,null));},exports[_0x3d0536('0x4c')]=function(_0x38ca5e,_0x50357b){const _0x12c1fd=_0x3d0536;return _0x38ca5e[_0x12c1fd('0x28')][_0x12c1fd('0x26')]===_0x12c1fd('0x46')&&!_['startsWith'](_0x38ca5e[_0x12c1fd('0x28')][_0x12c1fd('0x35')],'_')&&(_0x38ca5e[_0x12c1fd('0x28')]['exten']='_'[_0x12c1fd('0x32')](_0x38ca5e[_0x12c1fd('0x28')][_0x12c1fd('0x35')])),db[_0x12c1fd('0x4a')]['create'](_0x38ca5e[_0x12c1fd('0x28')],{'raw':![]})[_0x12c1fd('0x49')](function(_0x2f6f41){const _0x5993c0=_0x12c1fd,_0x329eea=_0x38ca5e['user'][_0x5993c0('0x2d')]({'plain':!![]});if(!_0x329eea)throw new Error(_0x5993c0('0x7'));if(_0x329eea[_0x5993c0('0xd')]===_0x5993c0('0x12')){const _0x3847ca=_0x2f6f41[_0x5993c0('0x2d')]({'plain':!![]}),_0x92c687=[{'name':_0x5993c0('0x13'),'value':'inbound'},{'name':_0x5993c0('0x3a'),'value':_0x5993c0('0x46')},{'name':'InternalRoutes','value':_0x5993c0('0x19')}],_0x10a17e=_[_0x5993c0('0x43')](_0x92c687,[_0x5993c0('0x4e'),_0x3847ca['type']])[_0x5993c0('0x50')];return db[_0x5993c0('0x2b')][_0x5993c0('0x2')]({'where':{'name':_0x10a17e,'userProfileId':_0x329eea['userProfileId']},'raw':!![]})[_0x5993c0('0x49')](function(_0x14a5f2){const _0x5ee458=_0x5993c0;return _0x14a5f2&&_0x14a5f2['autoAssociation']===0x0?db[_0x5ee458('0x2e')][_0x5ee458('0x4c')]({'name':_0x3847ca[_0x5ee458('0x50')],'resourceId':_0x3847ca['id'],'type':_0x14a5f2[_0x5ee458('0x50')],'sectionId':_0x14a5f2['id']},{})['then'](function(){return _0x2f6f41;}):_0x2f6f41;})[_0x5993c0('0xf')](function(_0x523b77){const _0x2c1d18=_0x5993c0;logger[_0x2c1d18('0x22')](_0x2c1d18('0x3c'),_0x523b77);throw _0x523b77;});}return _0x2f6f41;})[_0x12c1fd('0x49')](respondWithResult(_0x50357b,0xc9))[_0x12c1fd('0xf')](handleError(_0x50357b,null));},exports[_0x3d0536('0xc')]=function(_0x48e9aa,_0x2eeae6){const _0x24ada2=_0x3d0536;return _0x48e9aa[_0x24ada2('0x28')]['id']&&delete _0x48e9aa[_0x24ada2('0x28')]['id'],db[_0x24ada2('0x4a')][_0x24ada2('0x2')]({'where':{'id':_0x48e9aa[_0x24ada2('0x45')]['id']}})['then'](handleEntityNotFound(_0x2eeae6,null))[_0x24ada2('0x49')](function(_0x3d6520){const _0x7e2c7e=_0x24ada2;if(_0x3d6520)return db[_0x7e2c7e('0x4a')][_0x7e2c7e('0xc')](_[_0x7e2c7e('0x4')](_0x48e9aa[_0x7e2c7e('0x28')],['exten',_0x7e2c7e('0x3d'),_0x7e2c7e('0x6'),_0x7e2c7e('0x30'),_0x7e2c7e('0x11'),'mandatoryDisposition']),{'where':{'context':_0x3d6520['context'],'exten':_0x3d6520['exten']},'individualHooks':!![]})[_0x7e2c7e('0x49')](function(_0x394ca4){return _0x394ca4;});return null;})[_0x24ada2('0x49')](respondWithStatusCode(_0x2eeae6,null))[_0x24ada2('0xf')](handleError(_0x2eeae6,null));},exports[_0x3d0536('0x27')]=function(_0x4af4a2,_0x18a5c2){const _0x12ba26=_0x3d0536;return db['VoiceExtension'][_0x12ba26('0x2')]({'where':{'id':_0x4af4a2['params']['id']}})[_0x12ba26('0x49')](handleEntityNotFound(_0x18a5c2,null))['then'](function(_0x45b0aa){const _0x3495e6=_0x12ba26;if(_0x45b0aa)return db[_0x3495e6('0x3e')][_0x3495e6('0x1')](function(_0x2d8158){const _0x32ffc9=_0x3495e6;return db['VoiceExtension'][_0x32ffc9('0x3')]({'where':{'VoiceExtensionId':_0x4af4a2[_0x32ffc9('0x45')]['id']},'transaction':_0x2d8158})[_0x32ffc9('0x49')](function(){const _0x39f445=_0x32ffc9,_0x439d82=_['map'](_0x4af4a2[_0x39f445('0x28')],function(_0x37073e){const _0x576e99=_0x39f445;return _0x37073e[_0x576e99('0x1e')]=_0x4af4a2[_0x576e99('0x45')]['id'],_0x37073e;});return db[_0x39f445('0x4a')][_0x39f445('0x1c')](_0x439d82,{'transaction':_0x2d8158});});})['then'](function(){const _0x1ba780=_0x3495e6;return db['VoiceExtension'][_0x1ba780('0x20')]({'where':{'isApp':!![],'VoiceExtensionId':_0x4af4a2[_0x1ba780('0x45')]['id']},'order':'cast(priority\x20as\x20unsigned)'});});})[_0x12ba26('0x49')](respondWithResult(_0x18a5c2,null))['catch'](handleError(_0x18a5c2,null));}; \ No newline at end of file +const a727_0x3237=['UserProfileResource','pick','context','includeAll','concat','addApplications','json','update','then','ignore','autoAssociation','transaction','merge','../../mysqldb','error','attributes','map','include','order','count','api','fieldName','status','exten','limit','create','rawAttributes','key','length','inbound','cast(priority\x20as\x20unsigned)','where','set','index','body','value','filter','fields','InboundRoutes','catch','model','destroy','keys','end','offset','cutdigits','intersection','VoiceExtension','show','name','like','findAll','sequelize','recordingFormat','internal','params','Unable\x20to\x20retrieve\x20the\x20current\x20user','register','../../config/logger','../../rediscache','bulkCreate','OutboundRoutes','findOne','undefined','user','Content-Range','lodash','find','sendStatus','type','VIRTUAL','get','sort','filters','options','description','../../components/parsers/qs','nolimit','./voiceExtension.socket','outbound','query','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s'];(function(_0x530c6e,_0x323757){const _0x31d590=function(_0x2e6f92){while(--_0x2e6f92){_0x530c6e['push'](_0x530c6e['shift']());}};_0x31d590(++_0x323757);}(a727_0x3237,0x1d6));const a727_0x31d5=function(_0x530c6e,_0x323757){_0x530c6e=_0x530c6e-0x0;let _0x31d590=a727_0x3237[_0x530c6e];return _0x31d590;};const _0xfec3f5=a727_0x31d5;'use strict';const _=require(_0xfec3f5('0x6')),qs=require(_0xfec3f5('0x10')),logger=require(_0xfec3f5('0x50'))(_0xfec3f5('0x2a')),{getSocket}=require(_0xfec3f5('0x51')),socket=getSocket(),db=require(_0xfec3f5('0x23'))['db'],{Op}=require('sequelize');require(_0xfec3f5('0x12'))[_0xfec3f5('0x4f')](socket);function respondWithStatusCode(_0x2e6f92,_0x567bbf){return _0x567bbf=_0x567bbf||0xcc,function(_0x4648f1){const _0x104d45=a727_0x31d5;if(_0x4648f1)return _0x2e6f92[_0x104d45('0x8')](_0x567bbf);return _0x2e6f92[_0x104d45('0x2c')](_0x567bbf)[_0x104d45('0x41')]();};}function respondWithResult(_0x4b8392,_0x42780c){return _0x42780c=_0x42780c||0xc8,function(_0x2c1d7f){const _0x3a279f=a727_0x31d5;if(_0x2c1d7f)return _0x4b8392[_0x3a279f('0x2c')](_0x42780c)[_0x3a279f('0x1c')](_0x2c1d7f);};}function respondWithFilteredResult(_0x47736e,_0x44e8e1){return function(_0x4201c5){const _0x102685=a727_0x31d5;if(_0x4201c5){const _0x5b1f83=_0x4201c5[_0x102685('0x29')],_0x5ec70b=_0x44e8e1['offset'];let _0x46202d=_0x44e8e1['offset']+_0x44e8e1[_0x102685('0x2e')],_0x4db14d;return _0x46202d>=_0x5b1f83?(_0x46202d=_0x5b1f83,_0x4db14d=0xc8):_0x4db14d=0xce,_0x47736e[_0x102685('0x2c')](_0x4db14d),_0x47736e[_0x102685('0x36')](_0x102685('0x5'),_0x5ec70b+'-'+_0x46202d+'/'+_0x5b1f83)[_0x102685('0x1c')](_0x4201c5);}return null;};}function removeEntity(_0x227180){return function(_0x402d5e){const _0x6485f=a727_0x31d5;if(_0x402d5e)return _0x402d5e[_0x6485f('0x3f')]()[_0x6485f('0x1e')](function(){const _0x2b76fa=_0x6485f,_0x2fd61a=_0x402d5e[_0x2b76fa('0xb')]({'plain':!![]}),_0x3fbe12=[{'name':'InboundRoutes','value':_0x2b76fa('0x33'),'ignore':![]},{'name':_0x2b76fa('0x1'),'value':'outbound','ignore':![]},{'name':'InternalRoutes','value':_0x2b76fa('0x4c'),'ignore':![]}],_0x37084e=_(_0x3fbe12)[_0x2b76fa('0x3a')](_0x2b76fa('0x1f'))['map']('value')[_0x2b76fa('0x39')]();if(_['includes'](_0x37084e,_0x2fd61a['type']))return;const _0x1d83c6=_[_0x2b76fa('0x7')](_0x3fbe12,[_0x2b76fa('0x39'),_0x2fd61a[_0x2b76fa('0x9')]])[_0x2b76fa('0x47')];return db[_0x2b76fa('0x16')][_0x2b76fa('0x3f')]({'where':{'type':_0x1d83c6,'resourceId':_0x2fd61a['id']}})['then'](function(){return _0x402d5e;});})[_0x6485f('0x1e')](function(){const _0x5a5add=_0x6485f;_0x227180[_0x5a5add('0x2c')](0xcc)[_0x5a5add('0x41')]();});};}function handleEntityNotFound(_0x5e88c9){return function(_0x29484d){return!_0x29484d&&_0x5e88c9['sendStatus'](0x194),_0x29484d;};}function handleError(_0x5a3fa0,_0x42c3d9){return _0x42c3d9=_0x42c3d9||0x1f4,function(_0x275a98){const _0x572eee=a727_0x31d5;logger[_0x572eee('0x24')](_0x275a98['stack']),_0x275a98[_0x572eee('0x47')]&&delete _0x275a98[_0x572eee('0x47')],_0x5a3fa0[_0x572eee('0x2c')](_0x42c3d9)['send'](_0x275a98);};}exports[_0xfec3f5('0x37')]=function(_0x19a5e4,_0x5f1a46){const _0x3e51c=_0xfec3f5;let _0x35268d={};const _0x57efb0={},_0x800c99={'count':0x0,'rows':[]},_0x590347=_[_0x3e51c('0x26')](db['VoiceExtension'][_0x3e51c('0x30')],function(_0x40156b){const _0x5b8234=_0x3e51c;return{'name':_0x40156b[_0x5b8234('0x2b')],'type':_0x40156b[_0x5b8234('0x9')][_0x5b8234('0x31')]};});_0x57efb0['model']=_[_0x3e51c('0x26')](_0x590347,'name'),_0x57efb0[_0x3e51c('0x14')]=_[_0x3e51c('0x40')](_0x19a5e4['query']),_0x57efb0[_0x3e51c('0xd')]=_[_0x3e51c('0x44')](_0x57efb0[_0x3e51c('0x3e')],_0x57efb0[_0x3e51c('0x14')]),_0x35268d[_0x3e51c('0x25')]=_[_0x3e51c('0x44')](_0x57efb0[_0x3e51c('0x3e')],qs[_0x3e51c('0x3b')](_0x19a5e4[_0x3e51c('0x14')]['fields'])),_0x35268d[_0x3e51c('0x25')]=_0x35268d[_0x3e51c('0x25')][_0x3e51c('0x32')]?_0x35268d['attributes']:_0x57efb0[_0x3e51c('0x3e')];typeof _0x19a5e4[_0x3e51c('0x14')][_0x3e51c('0x11')]===_0x3e51c('0x3')&&(_0x35268d[_0x3e51c('0x2e')]=qs[_0x3e51c('0x2e')](_0x19a5e4[_0x3e51c('0x14')]['limit']),_0x35268d[_0x3e51c('0x42')]=qs[_0x3e51c('0x42')](_0x19a5e4[_0x3e51c('0x14')][_0x3e51c('0x42')]));_0x35268d[_0x3e51c('0x28')]=qs[_0x3e51c('0xc')](_0x19a5e4[_0x3e51c('0x14')][_0x3e51c('0xc')]),_0x35268d[_0x3e51c('0x35')]=qs[_0x3e51c('0xd')](_[_0x3e51c('0x17')](_0x19a5e4[_0x3e51c('0x14')],_0x57efb0[_0x3e51c('0xd')]),_0x590347);_0x19a5e4['query'][_0x3e51c('0x3a')]&&(_0x35268d['where']=_[_0x3e51c('0x22')](_0x35268d[_0x3e51c('0x35')],{[Op['or']]:_[_0x3e51c('0x26')](_0x590347,function(_0x4ee52d){const _0x3e00b7=_0x3e51c;if(_0x4ee52d[_0x3e00b7('0x9')]!==_0x3e00b7('0xa')){const _0x33b096={};return _0x33b096[_0x4ee52d[_0x3e00b7('0x47')]]={[Op[_0x3e00b7('0x48')]]:'%'+_0x19a5e4[_0x3e00b7('0x14')][_0x3e00b7('0x3a')]+'%'},_0x33b096;}})}));_0x35268d=_[_0x3e51c('0x22')]({},_0x35268d,_0x19a5e4['options']);const _0x4e69af={'where':_0x35268d[_0x3e51c('0x35')]};return db[_0x3e51c('0x45')]['count'](_0x4e69af)[_0x3e51c('0x1e')](function(_0x1a7de2){const _0x316f29=_0x3e51c;return _0x800c99[_0x316f29('0x29')]=_0x1a7de2,_0x19a5e4['query'][_0x316f29('0x19')]&&(_0x35268d[_0x316f29('0x27')]=[{'all':!![]}]),db[_0x316f29('0x45')][_0x316f29('0x49')](_0x35268d);})[_0x3e51c('0x1e')](function(_0x1a4e44){return _0x800c99['rows']=_0x1a4e44,_0x800c99;})[_0x3e51c('0x1e')](respondWithFilteredResult(_0x5f1a46,_0x35268d))[_0x3e51c('0x3d')](handleError(_0x5f1a46,null));},exports[_0xfec3f5('0x46')]=function(_0x4b4d9d,_0x5c1b64){const _0x4d00b8=_0xfec3f5;let _0x32105b={'raw':![],'where':{'id':_0x4b4d9d[_0x4d00b8('0x4d')]['id']}};const _0x46100e={};return _0x46100e[_0x4d00b8('0x3e')]=_[_0x4d00b8('0x40')](db['VoiceExtension'][_0x4d00b8('0x30')]),_0x46100e[_0x4d00b8('0x14')]=_[_0x4d00b8('0x40')](_0x4b4d9d[_0x4d00b8('0x14')]),_0x46100e['filters']=_[_0x4d00b8('0x44')](_0x46100e[_0x4d00b8('0x3e')],_0x46100e[_0x4d00b8('0x14')]),_0x32105b['attributes']=_[_0x4d00b8('0x44')](_0x46100e[_0x4d00b8('0x3e')],qs[_0x4d00b8('0x3b')](_0x4b4d9d[_0x4d00b8('0x14')][_0x4d00b8('0x3b')])),_0x32105b['attributes']=_0x32105b[_0x4d00b8('0x25')][_0x4d00b8('0x32')]?_0x32105b[_0x4d00b8('0x25')]:_0x46100e[_0x4d00b8('0x3e')],_0x4b4d9d[_0x4d00b8('0x14')][_0x4d00b8('0x19')]&&(_0x32105b[_0x4d00b8('0x27')]=[{'all':!![]}]),_0x32105b=_[_0x4d00b8('0x22')]({},_0x32105b,_0x4b4d9d[_0x4d00b8('0xe')]),db[_0x4d00b8('0x45')][_0x4d00b8('0x2')](_0x32105b)[_0x4d00b8('0x1e')](handleEntityNotFound(_0x5c1b64,null))[_0x4d00b8('0x1e')](respondWithResult(_0x5c1b64,null))[_0x4d00b8('0x3d')](handleError(_0x5c1b64,null));},exports[_0xfec3f5('0x3f')]=function(_0x12de20,_0x5c26d8){const _0x2d0b75=_0xfec3f5;return db['VoiceExtension'][_0x2d0b75('0x2')]({'where':{'id':_0x12de20[_0x2d0b75('0x4d')]['id']}})['then'](handleEntityNotFound(_0x5c26d8,null))['then'](removeEntity(_0x5c26d8,null))[_0x2d0b75('0x3d')](handleError(_0x5c26d8,null));},exports[_0xfec3f5('0x2f')]=function(_0x30fb5b,_0x3c090d){const _0x23a77d=_0xfec3f5;return _0x30fb5b[_0x23a77d('0x38')][_0x23a77d('0x9')]===_0x23a77d('0x13')&&!_['startsWith'](_0x30fb5b[_0x23a77d('0x38')][_0x23a77d('0x2d')],'_')&&(_0x30fb5b[_0x23a77d('0x38')][_0x23a77d('0x2d')]='_'[_0x23a77d('0x1a')](_0x30fb5b[_0x23a77d('0x38')][_0x23a77d('0x2d')])),db[_0x23a77d('0x45')][_0x23a77d('0x2f')](_0x30fb5b[_0x23a77d('0x38')],{'raw':![]})[_0x23a77d('0x1e')](function(_0x56bd20){const _0x40c5ed=_0x23a77d,_0x389f5c=_0x30fb5b[_0x40c5ed('0x4')][_0x40c5ed('0xb')]({'plain':!![]});if(!_0x389f5c)throw new Error(_0x40c5ed('0x4e'));if(_0x389f5c['role']===_0x40c5ed('0x4')){const _0x2eecff=_0x56bd20[_0x40c5ed('0xb')]({'plain':!![]}),_0x378d64=[{'name':_0x40c5ed('0x3c'),'value':_0x40c5ed('0x33')},{'name':_0x40c5ed('0x1'),'value':'outbound'},{'name':'InternalRoutes','value':_0x40c5ed('0x4c')}],_0x8df76=_['find'](_0x378d64,[_0x40c5ed('0x39'),_0x2eecff[_0x40c5ed('0x9')]])[_0x40c5ed('0x47')];return db['UserProfileSection'][_0x40c5ed('0x2')]({'where':{'name':_0x8df76,'userProfileId':_0x389f5c['userProfileId']},'raw':!![]})['then'](function(_0x1e6f0d){const _0x404175=_0x40c5ed;return _0x1e6f0d&&_0x1e6f0d[_0x404175('0x20')]===0x0?db[_0x404175('0x16')][_0x404175('0x2f')]({'name':_0x2eecff[_0x404175('0x47')],'resourceId':_0x2eecff['id'],'type':_0x1e6f0d[_0x404175('0x47')],'sectionId':_0x1e6f0d['id']},{})[_0x404175('0x1e')](function(){return _0x56bd20;}):_0x56bd20;})['catch'](function(_0x1b59a1){const _0x30f208=_0x40c5ed;logger['error'](_0x30f208('0x15'),_0x1b59a1);throw _0x1b59a1;});}return _0x56bd20;})[_0x23a77d('0x1e')](respondWithResult(_0x3c090d,0xc9))['catch'](handleError(_0x3c090d,null));},exports[_0xfec3f5('0x1d')]=function(_0x226e6d,_0x326779){const _0x4f80b3=_0xfec3f5;return _0x226e6d[_0x4f80b3('0x38')]['id']&&delete _0x226e6d[_0x4f80b3('0x38')]['id'],db[_0x4f80b3('0x45')]['findOne']({'where':{'id':_0x226e6d[_0x4f80b3('0x4d')]['id']}})['then'](handleEntityNotFound(_0x326779,null))[_0x4f80b3('0x1e')](function(_0x5a23e7){const _0x3e888e=_0x4f80b3;if(_0x5a23e7)return db['VoiceExtension'][_0x3e888e('0x1d')](_['pick'](_0x226e6d[_0x3e888e('0x38')],['exten',_0x3e888e('0x18'),_0x3e888e('0xf'),_0x3e888e('0x4b'),_0x3e888e('0x43'),'mandatoryDisposition']),{'where':{'context':_0x5a23e7['context'],'exten':_0x5a23e7[_0x3e888e('0x2d')]},'individualHooks':!![]})[_0x3e888e('0x1e')](function(_0x2fa9a3){return _0x2fa9a3;});return null;})['then'](respondWithStatusCode(_0x326779,null))['catch'](handleError(_0x326779,null));},exports[_0xfec3f5('0x1b')]=function(_0x4b2f8c,_0x2afee1){const _0x178b18=_0xfec3f5;return db[_0x178b18('0x45')][_0x178b18('0x2')]({'where':{'id':_0x4b2f8c['params']['id']}})[_0x178b18('0x1e')](handleEntityNotFound(_0x2afee1,null))[_0x178b18('0x1e')](function(_0x1a0ce2){const _0x397e33=_0x178b18;if(_0x1a0ce2)return db[_0x397e33('0x4a')][_0x397e33('0x21')](function(_0x291653){const _0x7bc4e9=_0x397e33;return db[_0x7bc4e9('0x45')][_0x7bc4e9('0x3f')]({'where':{'VoiceExtensionId':_0x4b2f8c[_0x7bc4e9('0x4d')]['id']},'transaction':_0x291653})[_0x7bc4e9('0x1e')](function(){const _0x2cf13c=_0x7bc4e9,_0x42b0b7=_[_0x2cf13c('0x26')](_0x4b2f8c[_0x2cf13c('0x38')],function(_0x370c6c){const _0x3219c2=_0x2cf13c;return _0x370c6c['VoiceExtensionId']=_0x4b2f8c[_0x3219c2('0x4d')]['id'],_0x370c6c;});return db[_0x2cf13c('0x45')][_0x2cf13c('0x0')](_0x42b0b7,{'transaction':_0x291653});});})[_0x397e33('0x1e')](function(){const _0x269484=_0x397e33;return db[_0x269484('0x45')]['findAndCountAll']({'where':{'isApp':!![],'VoiceExtensionId':_0x4b2f8c[_0x269484('0x4d')]['id']},'order':_0x269484('0x34')});});})[_0x178b18('0x1e')](respondWithResult(_0x2afee1,null))['catch'](handleError(_0x2afee1,null));}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.events.js b/server/api/voiceExtension/voiceExtension.events.js index 68c89b5..832e72f 100644 --- a/server/api/voiceExtension/voiceExtension.events.js +++ b/server/api/voiceExtension/voiceExtension.events.js @@ -1 +1 @@ -const a728_0x3d9b=['exports','setMaxListeners','undefined','addHook','emit','remove','VoiceExtension'];(function(_0x1de0d2,_0x3d9bfb){const _0x204c44=function(_0x4c5f9b){while(--_0x4c5f9b){_0x1de0d2['push'](_0x1de0d2['shift']());}};_0x204c44(++_0x3d9bfb);}(a728_0x3d9b,0x1d1));const a728_0x204c=function(_0x1de0d2,_0x3d9bfb){_0x1de0d2=_0x1de0d2-0x0;let _0x204c44=a728_0x3d9b[_0x1de0d2];return _0x204c44;};const _0x3d49b7=a728_0x204c;'use strict';const EventEmitter=require('events'),VoiceExtension=require('../../mysqldb')['db'][_0x3d49b7('0x3')],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents[_0x3d49b7('0x5')](0x0);const events={'afterCreate':'save','afterUpdate':'update','afterDestroy':_0x3d49b7('0x2')};function emitEvent(_0x4c5f9b){return function(_0x12f219){const _0x4e845a=a728_0x204c;VoiceExtensionEvents[_0x4e845a('0x1')](_0x4c5f9b+':'+_0x12f219['id'],_0x12f219),VoiceExtensionEvents[_0x4e845a('0x1')](_0x4c5f9b,_0x12f219);};}for(const e in events){if(typeof events[e]!==_0x3d49b7('0x6')){const event=events[e];VoiceExtension[_0x3d49b7('0x0')](e,emitEvent(event));}}module[_0x3d49b7('0x4')]=VoiceExtensionEvents; \ No newline at end of file +const a728_0x577a=['../../mysqldb','exports','remove','VoiceExtension','save','emit','addHook','update'];(function(_0x183f98,_0x577aac){const _0x363007=function(_0xf11649){while(--_0xf11649){_0x183f98['push'](_0x183f98['shift']());}};_0x363007(++_0x577aac);}(a728_0x577a,0xf5));const a728_0x3630=function(_0x183f98,_0x577aac){_0x183f98=_0x183f98-0x0;let _0x363007=a728_0x577a[_0x183f98];return _0x363007;};const _0x2d5e84=a728_0x3630;'use strict';const EventEmitter=require('events'),VoiceExtension=require(_0x2d5e84('0x3'))['db'][_0x2d5e84('0x6')],VoiceExtensionEvents=new EventEmitter();VoiceExtensionEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x2d5e84('0x7'),'afterUpdate':_0x2d5e84('0x2'),'afterDestroy':_0x2d5e84('0x5')};function emitEvent(_0xf11649){return function(_0x2435fe){const _0x39b38e=a728_0x3630;VoiceExtensionEvents[_0x39b38e('0x0')](_0xf11649+':'+_0x2435fe['id'],_0x2435fe),VoiceExtensionEvents[_0x39b38e('0x0')](_0xf11649,_0x2435fe);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceExtension[_0x2d5e84('0x1')](e,emitEvent(event));}}module[_0x2d5e84('0x4')]=VoiceExtensionEvents; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.model.js b/server/api/voiceExtension/voiceExtension.model.js index 9d08659..96a787d 100644 --- a/server/api/voiceExtension/voiceExtension.model.js +++ b/server/api/voiceExtension/voiceExtension.model.js @@ -1 +1 @@ -const a729_0x5331=['./voiceExtension.attributes','voice_extensions','define','VoiceExtension'];(function(_0x32d458,_0x533108){const _0x281e3e=function(_0x1dc8a5){while(--_0x1dc8a5){_0x32d458['push'](_0x32d458['shift']());}};_0x281e3e(++_0x533108);}(a729_0x5331,0x145));const a729_0x281e=function(_0x32d458,_0x533108){_0x32d458=_0x32d458-0x0;let _0x281e3e=a729_0x5331[_0x32d458];return _0x281e3e;};const _0x470a8b=a729_0x281e;'use strict';const attributes=require(_0x470a8b('0x3'));module['exports']=function(_0x1dc8a5){const _0x1514f4=_0x470a8b,_0x38cf9b=_0x1dc8a5[_0x1514f4('0x1')](_0x1514f4('0x2'),attributes,{'tableName':_0x1514f4('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x38cf9b;}; \ No newline at end of file +const a729_0x506e=['define','./voiceExtension.attributes','VoiceExtension','voice_extensions','exports'];(function(_0x57f76e,_0x506efd){const _0x5138d8=function(_0x11f6ae){while(--_0x11f6ae){_0x57f76e['push'](_0x57f76e['shift']());}};_0x5138d8(++_0x506efd);}(a729_0x506e,0x19f));const a729_0x5138=function(_0x57f76e,_0x506efd){_0x57f76e=_0x57f76e-0x0;let _0x5138d8=a729_0x506e[_0x57f76e];return _0x5138d8;};const _0x161156=a729_0x5138;'use strict';const attributes=require(_0x161156('0x1'));module[_0x161156('0x4')]=function(_0x11f6ae){const _0x1bf1ce=_0x161156,_0x2b4310=_0x11f6ae[_0x1bf1ce('0x0')](_0x1bf1ce('0x2'),attributes,{'tableName':_0x1bf1ce('0x3'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2b4310;}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.rpc.js b/server/api/voiceExtension/voiceExtension.rpc.js index bd5111b..bc204a0 100644 --- a/server/api/voiceExtension/voiceExtension.rpc.js +++ b/server/api/voiceExtension/voiceExtension.rpc.js @@ -1 +1 @@ -const a730_0x1f68=['attributes','lodash','rpc','limit','./voiceExtension.socket','options','info','../../rediscache','stringify','message','then','debug','map','include','../../mysqldb','register','error','findAll','GetVoiceExtension'];(function(_0x3a83da,_0x1f6867){const _0x1be147=function(_0x43c2e8){while(--_0x43c2e8){_0x3a83da['push'](_0x3a83da['shift']());}};_0x1be147(++_0x1f6867);}(a730_0x1f68,0x1f2));const a730_0x1be1=function(_0x3a83da,_0x1f6867){_0x3a83da=_0x3a83da-0x0;let _0x1be147=a730_0x1f68[_0x3a83da];return _0x1be147;};const _0xdac2c0=a730_0x1be1;'use strict';const _=require(_0xdac2c0('0x10')),db=require(_0xdac2c0('0xa'))['db'],logger=require('../../config/logger')(_0xdac2c0('0x11')),{getSocket}=require(_0xdac2c0('0x3')),socket=getSocket();require(_0xdac2c0('0x0'))[_0xdac2c0('0xb')](socket),exports['GetVoiceExtension']=function(_0x43c2e8){const _0x70d41c=this;return new Promise(function(_0x3d162f,_0x101637){const _0x4b9972=a730_0x1be1;return db['VoiceExtension'][_0x4b9972('0xd')]({'raw':_0x43c2e8[_0x4b9972('0x1')]?_0x43c2e8['options']['raw']===undefined?!![]:![]:!![],'where':_0x43c2e8[_0x4b9972('0x1')]?_0x43c2e8['options']['where']||null:null,'attributes':_0x43c2e8[_0x4b9972('0x1')]?_0x43c2e8[_0x4b9972('0x1')][_0x4b9972('0xf')]||null:null,'limit':_0x43c2e8['options']?_0x43c2e8[_0x4b9972('0x1')][_0x4b9972('0x12')]||null:null,'include':_0x43c2e8[_0x4b9972('0x1')]?_0x43c2e8[_0x4b9972('0x1')][_0x4b9972('0x9')]?_[_0x4b9972('0x8')](_0x43c2e8[_0x4b9972('0x1')]['include'],function(_0x4932db){const _0x401ba3=_0x4b9972;return{'model':db[_0x4932db['model']],'as':_0x4932db['as'],'attributes':_0x4932db[_0x401ba3('0xf')],'include':_0x4932db[_0x401ba3('0x9')]?_[_0x401ba3('0x8')](_0x4932db[_0x401ba3('0x9')],function(_0x187ce1){const _0x68d577=_0x401ba3;return{'model':db[_0x187ce1['model']],'as':_0x187ce1['as'],'attributes':_0x187ce1[_0x68d577('0xf')],'include':_0x187ce1['include']?_[_0x68d577('0x8')](_0x187ce1[_0x68d577('0x9')],function(_0x22dbda){const _0x174a34=_0x68d577;return{'model':db[_0x22dbda['model']],'as':_0x22dbda['as'],'attributes':_0x22dbda[_0x174a34('0xf')]};}):[]};}):[]};}):[]:[]})[_0x4b9972('0x6')](function(_0x4ffb79){const _0x5e4060=_0x4b9972;logger[_0x5e4060('0x2')](_0x5e4060('0xe'),_0x43c2e8),logger[_0x5e4060('0x7')](_0x5e4060('0xe'),_0x43c2e8,JSON[_0x5e4060('0x4')](_0x4ffb79)),_0x3d162f(_0x4ffb79);})['catch'](function(_0x3cef0c){const _0x22f61f=_0x4b9972;logger[_0x22f61f('0xc')](_0x22f61f('0xe'),_0x3cef0c[_0x22f61f('0x5')],_0x43c2e8),_0x101637(_0x70d41c[_0x22f61f('0xc')](0x1f4,_0x3cef0c['message']));});});}; \ No newline at end of file +const a730_0x168f=['limit','stringify','model','../../config/logger','../../rediscache','rpc','include','error','./voiceExtension.socket','map','catch','message','GetVoiceExtension','lodash','VoiceExtension','findAll','options','raw','attributes'];(function(_0x5a031e,_0x168faf){const _0x5f58e8=function(_0x4fa908){while(--_0x4fa908){_0x5a031e['push'](_0x5a031e['shift']());}};_0x5f58e8(++_0x168faf);}(a730_0x168f,0x13b));const a730_0x5f58=function(_0x5a031e,_0x168faf){_0x5a031e=_0x5a031e-0x0;let _0x5f58e8=a730_0x168f[_0x5a031e];return _0x5f58e8;};const _0x23157d=a730_0x5f58;'use strict';const _=require(_0x23157d('0x2')),db=require('../../mysqldb')['db'],logger=require(_0x23157d('0xb'))(_0x23157d('0xd')),{getSocket}=require(_0x23157d('0xc')),socket=getSocket();require(_0x23157d('0x10'))['register'](socket),exports[_0x23157d('0x1')]=function(_0x4fa908){const _0xc57298=this;return new Promise(function(_0x134951,_0x16c8be){const _0x499d55=a730_0x5f58;return db[_0x499d55('0x3')][_0x499d55('0x4')]({'raw':_0x4fa908[_0x499d55('0x5')]?_0x4fa908[_0x499d55('0x5')][_0x499d55('0x6')]===undefined?!![]:![]:!![],'where':_0x4fa908[_0x499d55('0x5')]?_0x4fa908[_0x499d55('0x5')]['where']||null:null,'attributes':_0x4fa908['options']?_0x4fa908[_0x499d55('0x5')][_0x499d55('0x7')]||null:null,'limit':_0x4fa908[_0x499d55('0x5')]?_0x4fa908[_0x499d55('0x5')][_0x499d55('0x8')]||null:null,'include':_0x4fa908[_0x499d55('0x5')]?_0x4fa908['options']['include']?_['map'](_0x4fa908[_0x499d55('0x5')][_0x499d55('0xe')],function(_0x5844dd){const _0xd3f0ee=_0x499d55;return{'model':db[_0x5844dd[_0xd3f0ee('0xa')]],'as':_0x5844dd['as'],'attributes':_0x5844dd['attributes'],'include':_0x5844dd[_0xd3f0ee('0xe')]?_[_0xd3f0ee('0x11')](_0x5844dd[_0xd3f0ee('0xe')],function(_0x34a00c){const _0x155aae=_0xd3f0ee;return{'model':db[_0x34a00c[_0x155aae('0xa')]],'as':_0x34a00c['as'],'attributes':_0x34a00c['attributes'],'include':_0x34a00c['include']?_[_0x155aae('0x11')](_0x34a00c[_0x155aae('0xe')],function(_0x322f79){const _0x5cdd45=_0x155aae;return{'model':db[_0x322f79[_0x5cdd45('0xa')]],'as':_0x322f79['as'],'attributes':_0x322f79[_0x5cdd45('0x7')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x5c9daa){const _0x5d52e9=_0x499d55;logger['info'](_0x5d52e9('0x1'),_0x4fa908),logger['debug'](_0x5d52e9('0x1'),_0x4fa908,JSON[_0x5d52e9('0x9')](_0x5c9daa)),_0x134951(_0x5c9daa);})[_0x499d55('0x12')](function(_0x58c7c2){const _0x274135=_0x499d55;logger[_0x274135('0xf')](_0x274135('0x1'),_0x58c7c2[_0x274135('0x0')],_0x4fa908),_0x16c8be(_0xc57298[_0x274135('0xf')](0x1f4,_0x58c7c2['message']));});});}; \ No newline at end of file diff --git a/server/api/voiceExtension/voiceExtension.socket.js b/server/api/voiceExtension/voiceExtension.socket.js index a138100..a56e3ad 100644 --- a/server/api/voiceExtension/voiceExtension.socket.js +++ b/server/api/voiceExtension/voiceExtension.socket.js @@ -1 +1 @@ -const a731_0x32e1=['./voiceExtension.events','voiceExtension:','remove','update','register','save','length'];(function(_0x397a56,_0x32e1de){const _0x3f8333=function(_0x25f4c5){while(--_0x25f4c5){_0x397a56['push'](_0x397a56['shift']());}};_0x3f8333(++_0x32e1de);}(a731_0x32e1,0x129));const a731_0x3f83=function(_0x397a56,_0x32e1de){_0x397a56=_0x397a56-0x0;let _0x3f8333=a731_0x32e1[_0x397a56];return _0x3f8333;};const _0x5f4d7f=a731_0x3f83;'use strict';const VoiceExtensionEvents=require(_0x5f4d7f('0x4')),events=[_0x5f4d7f('0x2'),_0x5f4d7f('0x6'),_0x5f4d7f('0x0')];function createListener(_0x25f4c5,_0x1c46a7){return function(_0x36799f){_0x1c46a7['emit'](_0x25f4c5,_0x36799f);};}exports[_0x5f4d7f('0x1')]=function(_0x4061e4){const _0x50bb5b=_0x5f4d7f;for(let _0x122ae8=0x0,_0x36400c=events[_0x50bb5b('0x3')];_0x122ae8<_0x36400c;_0x122ae8++){const _0x40d19f=events[_0x122ae8],_0x301cbb=createListener(_0x50bb5b('0x5')+_0x40d19f,_0x4061e4);VoiceExtensionEvents['on'](_0x40d19f,_0x301cbb);}}; \ No newline at end of file +const a731_0x3815=['update','length','voiceExtension:','remove','emit','register','./voiceExtension.events'];(function(_0x462a60,_0x3815be){const _0x36ca52=function(_0x4523bd){while(--_0x4523bd){_0x462a60['push'](_0x462a60['shift']());}};_0x36ca52(++_0x3815be);}(a731_0x3815,0x117));const a731_0x36ca=function(_0x462a60,_0x3815be){_0x462a60=_0x462a60-0x0;let _0x36ca52=a731_0x3815[_0x462a60];return _0x36ca52;};const _0x3dd6ff=a731_0x36ca;'use strict';const VoiceExtensionEvents=require(_0x3dd6ff('0x0')),events=['save',_0x3dd6ff('0x4'),_0x3dd6ff('0x1')];function createListener(_0x4523bd,_0x4e2d17){return function(_0x46ee54){const _0x330be3=a731_0x36ca;_0x4e2d17[_0x330be3('0x5')](_0x4523bd,_0x46ee54);};}exports[_0x3dd6ff('0x6')]=function(_0x2b94fe){const _0x39d5aa=_0x3dd6ff;for(let _0x22c84c=0x0,_0x45b6f3=events[_0x39d5aa('0x2')];_0x22c84c<_0x45b6f3;_0x22c84c++){const _0x10e3db=events[_0x22c84c],_0x48e569=createListener(_0x39d5aa('0x3')+_0x10e3db,_0x2b94fe);VoiceExtensionEvents['on'](_0x10e3db,_0x48e569);}}; \ No newline at end of file diff --git a/server/api/voiceMail/index.js b/server/api/voiceMail/index.js index be77640..bfecad5 100644 --- a/server/api/voiceMail/index.js +++ b/server/api/voiceMail/index.js @@ -1 +1 @@ -const a732_0xfa3b=['post','../../components/auth/service','delete','put','/:id/messages','isAuthenticated','Router','get','show','getMessages','index','exports','destroy','/:id','update','express'];(function(_0x55977,_0xfa3ba5){const _0x5cb6ba=function(_0x3045d2){while(--_0x3045d2){_0x55977['push'](_0x55977['shift']());}};_0x5cb6ba(++_0xfa3ba5);}(a732_0xfa3b,0x17c));const a732_0x5cb6=function(_0x55977,_0xfa3ba5){_0x55977=_0x55977-0x0;let _0x5cb6ba=a732_0xfa3b[_0x55977];return _0x5cb6ba;};const _0x369e92=a732_0x5cb6;'use strict';const express=require(_0x369e92('0x3')),router=express[_0x369e92('0xa')](),auth=require(_0x369e92('0x5')),controller=require('./voiceMail.controller');router[_0x369e92('0xb')]('/',auth[_0x369e92('0x9')](),controller[_0x369e92('0xe')]),router[_0x369e92('0xb')]('/:id',auth[_0x369e92('0x9')](),controller[_0x369e92('0xc')]),router['get'](_0x369e92('0x8'),auth[_0x369e92('0x9')](),controller[_0x369e92('0xd')]),router[_0x369e92('0x4')]('/',auth[_0x369e92('0x9')](),controller['create']),router[_0x369e92('0x7')]('/:id',auth['isAuthenticated'](),controller[_0x369e92('0x2')]),router[_0x369e92('0x6')](_0x369e92('0x1'),auth[_0x369e92('0x9')](),controller[_0x369e92('0x0')]),module[_0x369e92('0xf')]=router; \ No newline at end of file +const a732_0x118d=['express','./voiceMail.controller','put','Router','show','../../components/auth/service','getMessages','get','/:id','exports','isAuthenticated','/:id/messages','delete'];(function(_0x5c9746,_0x118dcc){const _0x18086f=function(_0x15d1f9){while(--_0x15d1f9){_0x5c9746['push'](_0x5c9746['shift']());}};_0x18086f(++_0x118dcc);}(a732_0x118d,0x1d9));const a732_0x1808=function(_0x5c9746,_0x118dcc){_0x5c9746=_0x5c9746-0x0;let _0x18086f=a732_0x118d[_0x5c9746];return _0x18086f;};const _0x83305c=a732_0x1808;'use strict';const express=require(_0x83305c('0x8')),router=express[_0x83305c('0xb')](),auth=require(_0x83305c('0x0')),controller=require(_0x83305c('0x9'));router['get']('/',auth[_0x83305c('0x5')](),controller['index']),router[_0x83305c('0x2')]('/:id',auth[_0x83305c('0x5')](),controller[_0x83305c('0xc')]),router[_0x83305c('0x2')](_0x83305c('0x6'),auth[_0x83305c('0x5')](),controller[_0x83305c('0x1')]),router['post']('/',auth[_0x83305c('0x5')](),controller['create']),router[_0x83305c('0xa')](_0x83305c('0x3'),auth[_0x83305c('0x5')](),controller['update']),router[_0x83305c('0x7')](_0x83305c('0x3'),auth[_0x83305c('0x5')](),controller['destroy']),module[_0x83305c('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 8cccfae..3c10074 100644 --- a/server/api/voiceMail/voiceMail.attributes.js +++ b/server/api/voiceMail/voiceMail.attributes.js @@ -1 +1 @@ -const a733_0x1b9c=['exports','getDataValue','\x20-\x20','central','contest_mailbox','setDataValue','sequelize','ENUM','INTEGER','yes','TIMESTAMP','from-voicemail','mailbox','STRING','trim','string'];(function(_0x54248f,_0x1b9caf){const _0x392f14=function(_0x290631){while(--_0x290631){_0x54248f['push'](_0x54248f['shift']());}};_0x392f14(++_0x1b9caf);}(a733_0x1b9c,0x13a));const a733_0x392f=function(_0x54248f,_0x1b9caf){_0x54248f=_0x54248f-0x0;let _0x392f14=a733_0x1b9c[_0x54248f];return _0x392f14;};const _0x2173de=a733_0x392f;'use strict';const Sequelize=require(_0x2173de('0xc'));module[_0x2173de('0x6')]={'customer_id':{'type':Sequelize[_0x2173de('0x3')]},'context':{'type':Sequelize[_0x2173de('0x3')],'defaultValue':_0x2173de('0x1'),'unique':'contest_mailbox'},'mailbox':{'type':Sequelize[_0x2173de('0x3')],'defaultValue':'','allowNull':![],'unique':_0x2173de('0xa')},'password':{'type':Sequelize[_0x2173de('0x3')]},'fullname':{'type':Sequelize[_0x2173de('0x3')]},'email':{'type':Sequelize[_0x2173de('0x3')],'validate':{'isEmail':!![]},'set':function(_0x290631){const _0x1a3d0b=_0x2173de;this[_0x1a3d0b('0xb')]('email',typeof _0x290631===_0x1a3d0b('0x5')&&_0x290631[_0x1a3d0b('0x4')]()?_0x290631[_0x1a3d0b('0x4')]():null);}},'pager':{'type':Sequelize[_0x2173de('0x3')]},'tz':{'type':Sequelize[_0x2173de('0x3')],'defaultValue':_0x2173de('0x9')},'attach':{'type':Sequelize[_0x2173de('0xd')]('yes','no'),'defaultValue':_0x2173de('0xf'),'allowNull':![]},'saycid':{'type':Sequelize[_0x2173de('0xd')](_0x2173de('0xf'),'no'),'defaultValue':_0x2173de('0xf'),'allowNull':![]},'dialout':{'type':Sequelize[_0x2173de('0x3')]},'callback':{'type':Sequelize[_0x2173de('0x3')]},'review':{'type':Sequelize[_0x2173de('0xd')]('yes','no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize[_0x2173de('0xd')](_0x2173de('0xf'),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize[_0x2173de('0xd')]('yes','no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize[_0x2173de('0xd')](_0x2173de('0xf'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':'TINYINT(4)','defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0x2173de('0xd')]('yes','no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize['ENUM'](_0x2173de('0xf'),'no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize[_0x2173de('0xd')](_0x2173de('0xf'),'no'),'defaultValue':_0x2173de('0xf'),'allowNull':![]},'forcename':{'type':Sequelize[_0x2173de('0xd')](_0x2173de('0xf'),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x2173de('0xd')](_0x2173de('0xf'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x2173de('0xd')]('yes','no'),'defaultValue':_0x2173de('0xf'),'allowNull':![]},'stamp':{'type':_0x2173de('0x0')},'emailsubject':{'type':Sequelize[_0x2173de('0x3')]},'emailbody':{'type':Sequelize[_0x2173de('0x3')]},'maxsecs':{'type':Sequelize[_0x2173de('0xe')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x2173de('0xe')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x3a9867=_0x2173de;return this[_0x3a9867('0x7')]('fullname')+_0x3a9867('0x8')+this[_0x3a9867('0x7')](_0x3a9867('0x2'));}}}; \ No newline at end of file +const a733_0x43a3=['ENUM','getDataValue','INTEGER','mailbox','TINYINT(4)','email','contest_mailbox','trim','setDataValue','fullname','\x20-\x20','from-voicemail','central','TIMESTAMP','VIRTUAL','yes','STRING'];(function(_0x4cf9de,_0x43a304){const _0x391607=function(_0x5e1037){while(--_0x5e1037){_0x4cf9de['push'](_0x4cf9de['shift']());}};_0x391607(++_0x43a304);}(a733_0x43a3,0x1aa));const a733_0x3916=function(_0x4cf9de,_0x43a304){_0x4cf9de=_0x4cf9de-0x0;let _0x391607=a733_0x43a3[_0x4cf9de];return _0x391607;};const _0x31d567=a733_0x3916;'use strict';const Sequelize=require('sequelize');module['exports']={'customer_id':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0x31d567('0xf')],'defaultValue':_0x31d567('0xa'),'unique':_0x31d567('0x5')},'mailbox':{'type':Sequelize[_0x31d567('0xf')],'defaultValue':'','allowNull':![],'unique':_0x31d567('0x5')},'password':{'type':Sequelize['STRING']},'fullname':{'type':Sequelize[_0x31d567('0xf')]},'email':{'type':Sequelize[_0x31d567('0xf')],'validate':{'isEmail':!![]},'set':function(_0x5e1037){const _0x13eabe=_0x31d567;this[_0x13eabe('0x7')](_0x13eabe('0x4'),typeof _0x5e1037==='string'&&_0x5e1037[_0x13eabe('0x6')]()?_0x5e1037['trim']():null);}},'pager':{'type':Sequelize[_0x31d567('0xf')]},'tz':{'type':Sequelize[_0x31d567('0xf')],'defaultValue':_0x31d567('0xb')},'attach':{'type':Sequelize['ENUM'](_0x31d567('0xe'),'no'),'defaultValue':_0x31d567('0xe'),'allowNull':![]},'saycid':{'type':Sequelize[_0x31d567('0x10')]('yes','no'),'defaultValue':_0x31d567('0xe'),'allowNull':![]},'dialout':{'type':Sequelize[_0x31d567('0xf')]},'callback':{'type':Sequelize[_0x31d567('0xf')]},'review':{'type':Sequelize[_0x31d567('0x10')](_0x31d567('0xe'),'no'),'defaultValue':'no','allowNull':![]},'operator':{'type':Sequelize[_0x31d567('0x10')](_0x31d567('0xe'),'no'),'defaultValue':'no','allowNull':![]},'envelope':{'type':Sequelize['ENUM']('yes','no'),'defaultValue':'no','allowNull':![]},'sayduration':{'type':Sequelize[_0x31d567('0x10')](_0x31d567('0xe'),'no'),'defaultValue':'no','allowNull':![]},'saydurationm':{'type':_0x31d567('0x3'),'defaultValue':0x1,'allowNull':![]},'sendvoicemail':{'type':Sequelize[_0x31d567('0x10')](_0x31d567('0xe'),'no'),'defaultValue':'no','allowNull':![]},'delete':{'type':Sequelize[_0x31d567('0x10')]('yes','no'),'defaultValue':'no','allowNull':![]},'nextaftercmd':{'type':Sequelize[_0x31d567('0x10')](_0x31d567('0xe'),'no'),'defaultValue':'yes','allowNull':![]},'forcename':{'type':Sequelize[_0x31d567('0x10')](_0x31d567('0xe'),'no'),'defaultValue':'no','allowNull':![]},'forcegreetings':{'type':Sequelize[_0x31d567('0x10')](_0x31d567('0xe'),'no'),'defaultValue':'no','allowNull':![]},'hidefromdir':{'type':Sequelize[_0x31d567('0x10')]('yes','no'),'defaultValue':_0x31d567('0xe'),'allowNull':![]},'stamp':{'type':_0x31d567('0xc')},'emailsubject':{'type':Sequelize['STRING']},'emailbody':{'type':Sequelize[_0x31d567('0xf')]},'maxsecs':{'type':Sequelize[_0x31d567('0x1')](0xff),'defaultValue':0xb4,'allowNull':![]},'maxmsg':{'type':Sequelize[_0x31d567('0x1')](0xff),'defaultValue':0x64,'allowNull':![]},'name':{'type':Sequelize[_0x31d567('0xd')],'get':function(){const _0x37d7d7=_0x31d567;return this['getDataValue'](_0x37d7d7('0x8'))+_0x37d7d7('0x9')+this[_0x37d7d7('0x0')](_0x37d7d7('0x2'));}}}; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.controller.js b/server/api/voiceMail/voiceMail.controller.js index 0871add..3e32125 100644 --- a/server/api/voiceMail/voiceMail.controller.js +++ b/server/api/voiceMail/voiceMail.controller.js @@ -1 +1 @@ -const a734_0x457b=['order','fields','query','Voicemails','error','user','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','destroy','options','map','json','update','index','type','findAll','rows','length','findOne','then','VoiceMailMessage','send','key','include','intersection','Unable\x20to\x20retrieve\x20the\x20current\x20user','status','api','get','keys','offset','undefined','where','params','body','UserProfileSection','../../components/parsers/qs','sendStatus','role','catch','pick','../../mysqldb','attributes','create','like','includeAll','end','stack','model','filters','sort','count','merge','VoiceMail','findAndCountAll','lodash','name','sequelize','filter','userProfileId','limit'];(function(_0x4555a3,_0x457b16){const _0x29bf5d=function(_0x2ec8e3){while(--_0x2ec8e3){_0x4555a3['push'](_0x4555a3['shift']());}};_0x29bf5d(++_0x457b16);}(a734_0x457b,0x163));const a734_0x29bf=function(_0x4555a3,_0x457b16){_0x4555a3=_0x4555a3-0x0;let _0x29bf5d=a734_0x457b[_0x4555a3];return _0x29bf5d;};const _0x528399=a734_0x29bf;'use strict';const _=require(_0x528399('0x3b')),qs=require(_0x528399('0x28')),logger=require('../../config/logger')(_0x528399('0x1f')),db=require(_0x528399('0x2d'))['db'],{Op}=require(_0x528399('0x1'));function respondWithResult(_0x2ec8e3,_0x551473){return _0x551473=_0x551473||0xc8,function(_0x41d246){const _0x1bb7a7=a734_0x29bf;if(_0x41d246)return _0x2ec8e3[_0x1bb7a7('0x1e')](_0x551473)[_0x1bb7a7('0xf')](_0x41d246);};}function respondWithFilteredResult(_0x6858dc,_0x4d83ac){return function(_0x534ffc){const _0x6f5bb8=a734_0x29bf;if(_0x534ffc){const _0x4a8561=_0x534ffc[_0x6f5bb8('0x37')],_0x3f7a26=_0x4d83ac[_0x6f5bb8('0x22')];let _0xb2bb02=_0x4d83ac['offset']+_0x4d83ac['limit'],_0x8fa48a;return _0xb2bb02>=_0x4a8561?(_0xb2bb02=_0x4a8561,_0x8fa48a=0xc8):_0x8fa48a=0xce,_0x6858dc[_0x6f5bb8('0x1e')](_0x8fa48a),_0x6858dc['set']('Content-Range',_0x3f7a26+'-'+_0xb2bb02+'/'+_0x4a8561)[_0x6f5bb8('0xf')](_0x534ffc);}return null;};}function saveUpdates(_0x5b69ee){return function(_0x1fdc0d){const _0x2edfda=a734_0x29bf;if(_0x1fdc0d)return _0x1fdc0d[_0x2edfda('0x10')](_0x5b69ee)[_0x2edfda('0x17')](function(_0x10fddb){return _0x10fddb;});return null;};}function removeEntity(_0x383b3b){return function(_0x548dff){const _0x54a7c3=a734_0x29bf;if(_0x548dff)return _0x548dff['destroy']()[_0x54a7c3('0x17')](function(){const _0x249180=_0x54a7c3,_0x380ea7=_0x548dff[_0x249180('0x20')]({'plain':!![]}),_0x41b294='Voicemails';return db['UserProfileResource'][_0x249180('0xc')]({'where':{'type':_0x41b294,'resourceId':_0x380ea7['id']}})[_0x249180('0x17')](function(){return _0x548dff;});})[_0x54a7c3('0x17')](function(){const _0x2f2f0f=_0x54a7c3;_0x383b3b[_0x2f2f0f('0x1e')](0xcc)[_0x2f2f0f('0x32')]();});};}function handleEntityNotFound(_0x3ad990){return function(_0x187abd){const _0x7214c0=a734_0x29bf;return!_0x187abd&&_0x3ad990[_0x7214c0('0x29')](0x194),_0x187abd;};}function handleError(_0x44b39f,_0xbdcada){return _0xbdcada=_0xbdcada||0x1f4,function(_0x11652e){const _0x5c5a94=a734_0x29bf;logger[_0x5c5a94('0x9')](_0x11652e[_0x5c5a94('0x33')]),_0x11652e['name']&&delete _0x11652e[_0x5c5a94('0x0')],_0x44b39f[_0x5c5a94('0x1e')](_0xbdcada)[_0x5c5a94('0x19')](_0x11652e);};}exports[_0x528399('0x11')]=function(_0x4a17c8,_0x172ceb){const _0x561f69=_0x528399;let _0xab9637={};const _0xa3c6bd={},_0xd2f50d={'count':0x0,'rows':[]},_0x9d89ab=_[_0x561f69('0xe')](db[_0x561f69('0x39')]['rawAttributes'],function(_0x1e77b9){const _0x2a679d=_0x561f69;return{'name':_0x1e77b9['fieldName'],'type':_0x1e77b9[_0x2a679d('0x12')][_0x2a679d('0x1a')]};});_0xa3c6bd[_0x561f69('0x34')]=_[_0x561f69('0xe')](_0x9d89ab,_0x561f69('0x0')),_0xa3c6bd['query']=_[_0x561f69('0x21')](_0x4a17c8['query']),_0xa3c6bd['filters']=_['intersection'](_0xa3c6bd['model'],_0xa3c6bd['query']),_0xab9637['attributes']=_[_0x561f69('0x1c')](_0xa3c6bd['model'],qs[_0x561f69('0x6')](_0x4a17c8[_0x561f69('0x7')][_0x561f69('0x6')])),_0xab9637[_0x561f69('0x2e')]=_0xab9637[_0x561f69('0x2e')][_0x561f69('0x15')]?_0xab9637[_0x561f69('0x2e')]:_0xa3c6bd[_0x561f69('0x34')];typeof _0x4a17c8[_0x561f69('0x7')]['nolimit']==='undefined'&&(_0xab9637[_0x561f69('0x4')]=qs['limit'](_0x4a17c8[_0x561f69('0x7')][_0x561f69('0x4')]),_0xab9637['offset']=qs[_0x561f69('0x22')](_0x4a17c8[_0x561f69('0x7')][_0x561f69('0x22')]));_0xab9637['order']=qs[_0x561f69('0x36')](_0x4a17c8['query']['sort']),_0xab9637[_0x561f69('0x24')]=qs['filters'](_[_0x561f69('0x2c')](_0x4a17c8[_0x561f69('0x7')],_0xa3c6bd[_0x561f69('0x35')]),_0x9d89ab);_0x4a17c8[_0x561f69('0x7')][_0x561f69('0x2')]&&(_0xab9637['where']=_[_0x561f69('0x38')](_0xab9637['where'],{[Op['or']]:_[_0x561f69('0xe')](_0x9d89ab,function(_0x59da69){const _0x2ef588=_0x561f69;if(_0x59da69[_0x2ef588('0x12')]!=='VIRTUAL'){const _0x24fdda={};return _0x24fdda[_0x59da69[_0x2ef588('0x0')]]={[Op[_0x2ef588('0x30')]]:'%'+_0x4a17c8[_0x2ef588('0x7')]['filter']+'%'},_0x24fdda;}})}));_0xab9637=_[_0x561f69('0x38')]({},_0xab9637,_0x4a17c8[_0x561f69('0xd')]);const _0x17bbb1={'where':_0xab9637['where']};return db[_0x561f69('0x39')][_0x561f69('0x37')](_0x17bbb1)['then'](function(_0x316879){const _0x38a682=_0x561f69;return _0xd2f50d[_0x38a682('0x37')]=_0x316879,_0x4a17c8[_0x38a682('0x7')][_0x38a682('0x31')]&&(_0xab9637['include']=[{'all':!![]}]),db[_0x38a682('0x39')][_0x38a682('0x13')](_0xab9637);})[_0x561f69('0x17')](function(_0x274df6){const _0x51c59b=_0x561f69;return _0xd2f50d[_0x51c59b('0x14')]=_0x274df6,_0xd2f50d;})[_0x561f69('0x17')](respondWithFilteredResult(_0x172ceb,_0xab9637))['catch'](handleError(_0x172ceb,null));},exports['show']=function(_0x538088,_0x78f241){const _0x2cc5fe=_0x528399;let _0x3b6d66={'raw':!![],'where':{'id':_0x538088[_0x2cc5fe('0x25')]['id']}};const _0x1bb09c={};return _0x1bb09c[_0x2cc5fe('0x34')]=_[_0x2cc5fe('0x21')](db[_0x2cc5fe('0x39')]['rawAttributes']),_0x1bb09c[_0x2cc5fe('0x7')]=_[_0x2cc5fe('0x21')](_0x538088['query']),_0x1bb09c['filters']=_[_0x2cc5fe('0x1c')](_0x1bb09c['model'],_0x1bb09c['query']),_0x3b6d66[_0x2cc5fe('0x2e')]=_[_0x2cc5fe('0x1c')](_0x1bb09c[_0x2cc5fe('0x34')],qs[_0x2cc5fe('0x6')](_0x538088[_0x2cc5fe('0x7')][_0x2cc5fe('0x6')])),_0x3b6d66['attributes']=_0x3b6d66['attributes'][_0x2cc5fe('0x15')]?_0x3b6d66[_0x2cc5fe('0x2e')]:_0x1bb09c[_0x2cc5fe('0x34')],_0x538088[_0x2cc5fe('0x7')][_0x2cc5fe('0x31')]&&(_0x3b6d66[_0x2cc5fe('0x1b')]=[{'all':!![]}]),_0x3b6d66=_['merge']({},_0x3b6d66,_0x538088[_0x2cc5fe('0xd')]),db[_0x2cc5fe('0x39')][_0x2cc5fe('0x16')](_0x3b6d66)[_0x2cc5fe('0x17')](handleEntityNotFound(_0x78f241,null))['then'](respondWithResult(_0x78f241,null))[_0x2cc5fe('0x2b')](handleError(_0x78f241,null));},exports[_0x528399('0x2f')]=function(_0x13a79c,_0x4319e3){const _0x2c7339=_0x528399;return db[_0x2c7339('0x39')]['create'](_0x13a79c[_0x2c7339('0x26')],{})[_0x2c7339('0x17')](function(_0x5705ca){const _0x14f7e1=_0x2c7339,_0x436a25=_0x13a79c[_0x14f7e1('0xa')][_0x14f7e1('0x20')]({'plain':!![]});if(!_0x436a25)throw new Error(_0x14f7e1('0x1d'));if(_0x436a25[_0x14f7e1('0x2a')]===_0x14f7e1('0xa')){const _0x22d01c=_0x5705ca[_0x14f7e1('0x20')]({'plain':!![]}),_0x538207=_0x14f7e1('0x8');return db[_0x14f7e1('0x27')][_0x14f7e1('0x16')]({'where':{'name':_0x538207,'userProfileId':_0x436a25[_0x14f7e1('0x3')]},'raw':!![]})[_0x14f7e1('0x17')](function(_0x349bb3){const _0x8d3bc5=_0x14f7e1;return _0x349bb3&&_0x349bb3['autoAssociation']===0x0?db['UserProfileResource'][_0x8d3bc5('0x2f')]({'name':_0x22d01c[_0x8d3bc5('0x0')],'resourceId':_0x22d01c['id'],'type':_0x349bb3['name'],'sectionId':_0x349bb3['id']},{})[_0x8d3bc5('0x17')](function(){return _0x5705ca;}):_0x5705ca;})['catch'](function(_0x41f5af){const _0x24a1bf=_0x14f7e1;logger[_0x24a1bf('0x9')](_0x24a1bf('0xb'),_0x41f5af);throw _0x41f5af;});}return _0x5705ca;})[_0x2c7339('0x17')](respondWithResult(_0x4319e3,0xc9))[_0x2c7339('0x2b')](handleError(_0x4319e3,null));},exports[_0x528399('0x10')]=function(_0x2cce66,_0x319eb5){const _0x4ae1bb=_0x528399;return _0x2cce66['body']['id']&&delete _0x2cce66['body']['id'],db[_0x4ae1bb('0x39')]['findOne']({'where':{'id':_0x2cce66[_0x4ae1bb('0x25')]['id']}})['then'](handleEntityNotFound(_0x319eb5,null))['then'](saveUpdates(_0x2cce66[_0x4ae1bb('0x26')],null))[_0x4ae1bb('0x17')](respondWithResult(_0x319eb5,null))[_0x4ae1bb('0x2b')](handleError(_0x319eb5,null));},exports[_0x528399('0xc')]=function(_0xca032e,_0x2bc7fe){const _0x35bf9c=_0x528399;return db[_0x35bf9c('0x39')][_0x35bf9c('0x16')]({'where':{'id':_0xca032e[_0x35bf9c('0x25')]['id']}})[_0x35bf9c('0x17')](handleEntityNotFound(_0x2bc7fe,null))[_0x35bf9c('0x17')](removeEntity(_0x2bc7fe,null))[_0x35bf9c('0x2b')](handleError(_0x2bc7fe,null));},exports['getMessages']=function(_0x9382a,_0x5d61e9){const _0xec10c0=_0x528399;return db[_0xec10c0('0x39')]['findOne']({'where':{'id':_0x9382a[_0xec10c0('0x25')]['id']}})[_0xec10c0('0x17')](handleEntityNotFound(_0x5d61e9,null))[_0xec10c0('0x17')](function(_0x18ae50){const _0x57dd3c=_0xec10c0;let _0x21af98={};const _0x4228f0={};return _0x4228f0[_0x57dd3c('0x34')]=_[_0x57dd3c('0x21')](db[_0x57dd3c('0x18')]['rawAttributes']),_0x4228f0[_0x57dd3c('0x7')]=_[_0x57dd3c('0x21')](_0x9382a[_0x57dd3c('0x7')]),_0x4228f0['filters']=_[_0x57dd3c('0x1c')](_0x4228f0['model'],_0x4228f0[_0x57dd3c('0x7')]),_0x21af98[_0x57dd3c('0x2e')]=_[_0x57dd3c('0x1c')](_0x4228f0['model'],qs[_0x57dd3c('0x6')](_0x9382a[_0x57dd3c('0x7')][_0x57dd3c('0x6')])),_0x21af98['attributes']=_0x21af98['attributes'][_0x57dd3c('0x15')]?_0x21af98[_0x57dd3c('0x2e')]:_0x4228f0[_0x57dd3c('0x34')],typeof _0x9382a[_0x57dd3c('0x7')]['nolimit']===_0x57dd3c('0x23')&&(_0x21af98[_0x57dd3c('0x4')]=qs[_0x57dd3c('0x4')](_0x9382a[_0x57dd3c('0x7')][_0x57dd3c('0x4')]),_0x21af98['offset']=qs[_0x57dd3c('0x22')](_0x9382a['query'][_0x57dd3c('0x22')])),_0x21af98[_0x57dd3c('0x5')]=qs['sort'](_0x9382a[_0x57dd3c('0x7')]['sort']),_0x21af98[_0x57dd3c('0x24')]=qs['filters'](_[_0x57dd3c('0x2c')](_0x9382a[_0x57dd3c('0x7')],_0x4228f0[_0x57dd3c('0x35')])),_0x9382a[_0x57dd3c('0x7')][_0x57dd3c('0x2')]&&(_0x21af98['where']=_[_0x57dd3c('0x38')](_0x21af98[_0x57dd3c('0x24')],{[Op['or']]:_['map'](_0x21af98[_0x57dd3c('0x2e')],function(_0x3d9f0b){const _0x15281d=_0x57dd3c,_0x37fe94={};return _0x37fe94[_0x3d9f0b]={[Op['like']]:'%'+_0x9382a[_0x15281d('0x7')]['filter']+'%'},_0x37fe94;})})),_0x21af98['where']=_[_0x57dd3c('0x38')](_0x21af98['where'],{'mailboxuser':_0x18ae50['mailbox']}),_0x21af98=_[_0x57dd3c('0x38')]({},_0x21af98,_0x9382a[_0x57dd3c('0xd')]),db[_0x57dd3c('0x18')][_0x57dd3c('0x3a')](_0x21af98)[_0x57dd3c('0x17')](respondWithFilteredResult(_0x5d61e9,_0x21af98));})['catch'](handleError(_0x5d61e9,null));}; \ No newline at end of file +const a734_0x1ec6=['end','userProfileId','../../mysqldb','intersection','api','params','UserProfileResource','filters','order','rawAttributes','VIRTUAL','../../components/parsers/qs','findAll','filter','mailbox','offset','limit','VoiceMail','name','findOne','VoiceMailMessage','index','send','rows','count','Voicemails','update','merge','length','set','error','where','options','undefined','destroy','fieldName','user','sort','map','role','show','Content-Range','include','sendStatus','getMessages','status','nolimit','get','UserProfileSection','key','lodash','stack','sequelize','body','fields','type','keys','model','json','then','catch','query','create','pick','attributes'];(function(_0x19955d,_0x1ec64c){const _0x196ba9=function(_0x1b1c15){while(--_0x1b1c15){_0x19955d['push'](_0x19955d['shift']());}};_0x196ba9(++_0x1ec64c);}(a734_0x1ec6,0x122));const a734_0x196b=function(_0x19955d,_0x1ec64c){_0x19955d=_0x19955d-0x0;let _0x196ba9=a734_0x1ec6[_0x19955d];return _0x196ba9;};const _0x4bc51e=a734_0x196b;'use strict';const _=require(_0x4bc51e('0x14')),qs=require(_0x4bc51e('0x2e')),logger=require('../../config/logger')(_0x4bc51e('0x27')),db=require(_0x4bc51e('0x25'))['db'],{Op}=require(_0x4bc51e('0x16'));function respondWithResult(_0x1b1c15,_0x129d80){return _0x129d80=_0x129d80||0xc8,function(_0x3f9d77){const _0xd36611=a734_0x196b;if(_0x3f9d77)return _0x1b1c15[_0xd36611('0xf')](_0x129d80)['json'](_0x3f9d77);};}function respondWithFilteredResult(_0x7e88d4,_0x5e40f7){return function(_0x201218){const _0x2848d6=a734_0x196b;if(_0x201218){const _0x106517=_0x201218[_0x2848d6('0x3b')],_0x1ba851=_0x5e40f7[_0x2848d6('0x32')];let _0x4ac116=_0x5e40f7[_0x2848d6('0x32')]+_0x5e40f7[_0x2848d6('0x33')],_0x34b89a;return _0x4ac116>=_0x106517?(_0x4ac116=_0x106517,_0x34b89a=0xc8):_0x34b89a=0xce,_0x7e88d4['status'](_0x34b89a),_0x7e88d4[_0x2848d6('0x40')](_0x2848d6('0xb'),_0x1ba851+'-'+_0x4ac116+'/'+_0x106517)[_0x2848d6('0x1c')](_0x201218);}return null;};}function saveUpdates(_0x2ee55d){return function(_0x16c428){const _0xb79976=a734_0x196b;if(_0x16c428)return _0x16c428[_0xb79976('0x3d')](_0x2ee55d)[_0xb79976('0x1d')](function(_0x303c36){return _0x303c36;});return null;};}function removeEntity(_0x22f1ae){return function(_0x4dc799){const _0x4c0cce=a734_0x196b;if(_0x4dc799)return _0x4dc799['destroy']()[_0x4c0cce('0x1d')](function(){const _0x150aac=_0x4c0cce,_0x377cc8=_0x4dc799[_0x150aac('0x11')]({'plain':!![]}),_0x1dca88=_0x150aac('0x3c');return db[_0x150aac('0x29')][_0x150aac('0x4')]({'where':{'type':_0x1dca88,'resourceId':_0x377cc8['id']}})[_0x150aac('0x1d')](function(){return _0x4dc799;});})[_0x4c0cce('0x1d')](function(){const _0x171c4f=_0x4c0cce;_0x22f1ae[_0x171c4f('0xf')](0xcc)[_0x171c4f('0x23')]();});};}function handleEntityNotFound(_0x4075a7){return function(_0x55b3f1){const _0x135f6d=a734_0x196b;return!_0x55b3f1&&_0x4075a7[_0x135f6d('0xd')](0x194),_0x55b3f1;};}function handleError(_0x45e3cb,_0x5b7579){return _0x5b7579=_0x5b7579||0x1f4,function(_0x5c48d0){const _0x2b3e01=a734_0x196b;logger['error'](_0x5c48d0[_0x2b3e01('0x15')]),_0x5c48d0[_0x2b3e01('0x35')]&&delete _0x5c48d0[_0x2b3e01('0x35')],_0x45e3cb['status'](_0x5b7579)[_0x2b3e01('0x39')](_0x5c48d0);};}exports[_0x4bc51e('0x38')]=function(_0x34e044,_0x364377){const _0x358f8c=_0x4bc51e;let _0x2b463f={};const _0x2311b9={},_0x11861d={'count':0x0,'rows':[]},_0x38b9e2=_[_0x358f8c('0x8')](db[_0x358f8c('0x34')][_0x358f8c('0x2c')],function(_0x24d0ba){const _0x1572c7=_0x358f8c;return{'name':_0x24d0ba[_0x1572c7('0x5')],'type':_0x24d0ba[_0x1572c7('0x19')][_0x1572c7('0x13')]};});_0x2311b9[_0x358f8c('0x1b')]=_['map'](_0x38b9e2,_0x358f8c('0x35')),_0x2311b9[_0x358f8c('0x1f')]=_[_0x358f8c('0x1a')](_0x34e044[_0x358f8c('0x1f')]),_0x2311b9[_0x358f8c('0x2a')]=_['intersection'](_0x2311b9['model'],_0x2311b9[_0x358f8c('0x1f')]),_0x2b463f[_0x358f8c('0x22')]=_[_0x358f8c('0x26')](_0x2311b9[_0x358f8c('0x1b')],qs['fields'](_0x34e044[_0x358f8c('0x1f')][_0x358f8c('0x18')])),_0x2b463f[_0x358f8c('0x22')]=_0x2b463f[_0x358f8c('0x22')][_0x358f8c('0x3f')]?_0x2b463f[_0x358f8c('0x22')]:_0x2311b9[_0x358f8c('0x1b')];typeof _0x34e044[_0x358f8c('0x1f')][_0x358f8c('0x10')]===_0x358f8c('0x3')&&(_0x2b463f[_0x358f8c('0x33')]=qs['limit'](_0x34e044['query'][_0x358f8c('0x33')]),_0x2b463f['offset']=qs[_0x358f8c('0x32')](_0x34e044[_0x358f8c('0x1f')][_0x358f8c('0x32')]));_0x2b463f['order']=qs['sort'](_0x34e044[_0x358f8c('0x1f')][_0x358f8c('0x7')]),_0x2b463f[_0x358f8c('0x1')]=qs['filters'](_[_0x358f8c('0x21')](_0x34e044[_0x358f8c('0x1f')],_0x2311b9[_0x358f8c('0x2a')]),_0x38b9e2);_0x34e044[_0x358f8c('0x1f')][_0x358f8c('0x30')]&&(_0x2b463f['where']=_[_0x358f8c('0x3e')](_0x2b463f[_0x358f8c('0x1')],{[Op['or']]:_[_0x358f8c('0x8')](_0x38b9e2,function(_0x1ab3b4){const _0x322dde=_0x358f8c;if(_0x1ab3b4[_0x322dde('0x19')]!==_0x322dde('0x2d')){const _0x4d23ac={};return _0x4d23ac[_0x1ab3b4[_0x322dde('0x35')]]={[Op['like']]:'%'+_0x34e044[_0x322dde('0x1f')][_0x322dde('0x30')]+'%'},_0x4d23ac;}})}));_0x2b463f=_[_0x358f8c('0x3e')]({},_0x2b463f,_0x34e044[_0x358f8c('0x2')]);const _0x4063ab={'where':_0x2b463f['where']};return db[_0x358f8c('0x34')][_0x358f8c('0x3b')](_0x4063ab)[_0x358f8c('0x1d')](function(_0x27348f){const _0x90df4=_0x358f8c;return _0x11861d[_0x90df4('0x3b')]=_0x27348f,_0x34e044[_0x90df4('0x1f')]['includeAll']&&(_0x2b463f[_0x90df4('0xc')]=[{'all':!![]}]),db['VoiceMail'][_0x90df4('0x2f')](_0x2b463f);})[_0x358f8c('0x1d')](function(_0x257603){const _0x382699=_0x358f8c;return _0x11861d[_0x382699('0x3a')]=_0x257603,_0x11861d;})['then'](respondWithFilteredResult(_0x364377,_0x2b463f))[_0x358f8c('0x1e')](handleError(_0x364377,null));},exports[_0x4bc51e('0xa')]=function(_0xc5e493,_0xf2c231){const _0xa0b768=_0x4bc51e;let _0xbe6dd={'raw':!![],'where':{'id':_0xc5e493[_0xa0b768('0x28')]['id']}};const _0x43fdbe={};return _0x43fdbe[_0xa0b768('0x1b')]=_[_0xa0b768('0x1a')](db[_0xa0b768('0x34')][_0xa0b768('0x2c')]),_0x43fdbe[_0xa0b768('0x1f')]=_[_0xa0b768('0x1a')](_0xc5e493['query']),_0x43fdbe['filters']=_[_0xa0b768('0x26')](_0x43fdbe[_0xa0b768('0x1b')],_0x43fdbe[_0xa0b768('0x1f')]),_0xbe6dd[_0xa0b768('0x22')]=_[_0xa0b768('0x26')](_0x43fdbe[_0xa0b768('0x1b')],qs['fields'](_0xc5e493[_0xa0b768('0x1f')][_0xa0b768('0x18')])),_0xbe6dd[_0xa0b768('0x22')]=_0xbe6dd[_0xa0b768('0x22')][_0xa0b768('0x3f')]?_0xbe6dd['attributes']:_0x43fdbe['model'],_0xc5e493[_0xa0b768('0x1f')]['includeAll']&&(_0xbe6dd['include']=[{'all':!![]}]),_0xbe6dd=_['merge']({},_0xbe6dd,_0xc5e493[_0xa0b768('0x2')]),db['VoiceMail']['findOne'](_0xbe6dd)[_0xa0b768('0x1d')](handleEntityNotFound(_0xf2c231,null))['then'](respondWithResult(_0xf2c231,null))[_0xa0b768('0x1e')](handleError(_0xf2c231,null));},exports[_0x4bc51e('0x20')]=function(_0x563479,_0x244ed7){const _0x2499fa=_0x4bc51e;return db[_0x2499fa('0x34')][_0x2499fa('0x20')](_0x563479[_0x2499fa('0x17')],{})['then'](function(_0x326ad3){const _0x1c2c9b=_0x2499fa,_0x5f5ffe=_0x563479['user'][_0x1c2c9b('0x11')]({'plain':!![]});if(!_0x5f5ffe)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5f5ffe[_0x1c2c9b('0x9')]===_0x1c2c9b('0x6')){const _0x367c08=_0x326ad3[_0x1c2c9b('0x11')]({'plain':!![]}),_0x1d3891=_0x1c2c9b('0x3c');return db[_0x1c2c9b('0x12')][_0x1c2c9b('0x36')]({'where':{'name':_0x1d3891,'userProfileId':_0x5f5ffe[_0x1c2c9b('0x24')]},'raw':!![]})['then'](function(_0x4601a7){const _0x28ab89=_0x1c2c9b;return _0x4601a7&&_0x4601a7['autoAssociation']===0x0?db[_0x28ab89('0x29')][_0x28ab89('0x20')]({'name':_0x367c08[_0x28ab89('0x35')],'resourceId':_0x367c08['id'],'type':_0x4601a7[_0x28ab89('0x35')],'sectionId':_0x4601a7['id']},{})[_0x28ab89('0x1d')](function(){return _0x326ad3;}):_0x326ad3;})[_0x1c2c9b('0x1e')](function(_0x4ea657){const _0x44a10f=_0x1c2c9b;logger[_0x44a10f('0x0')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x4ea657);throw _0x4ea657;});}return _0x326ad3;})['then'](respondWithResult(_0x244ed7,0xc9))['catch'](handleError(_0x244ed7,null));},exports[_0x4bc51e('0x3d')]=function(_0x258537,_0x5aa721){const _0x103880=_0x4bc51e;return _0x258537['body']['id']&&delete _0x258537['body']['id'],db[_0x103880('0x34')]['findOne']({'where':{'id':_0x258537[_0x103880('0x28')]['id']}})[_0x103880('0x1d')](handleEntityNotFound(_0x5aa721,null))[_0x103880('0x1d')](saveUpdates(_0x258537['body'],null))[_0x103880('0x1d')](respondWithResult(_0x5aa721,null))[_0x103880('0x1e')](handleError(_0x5aa721,null));},exports['destroy']=function(_0x2dfa37,_0x9754b7){const _0x340aa8=_0x4bc51e;return db[_0x340aa8('0x34')][_0x340aa8('0x36')]({'where':{'id':_0x2dfa37['params']['id']}})[_0x340aa8('0x1d')](handleEntityNotFound(_0x9754b7,null))[_0x340aa8('0x1d')](removeEntity(_0x9754b7,null))[_0x340aa8('0x1e')](handleError(_0x9754b7,null));},exports[_0x4bc51e('0xe')]=function(_0x38e67e,_0x33d32b){const _0x5f4292=_0x4bc51e;return db[_0x5f4292('0x34')][_0x5f4292('0x36')]({'where':{'id':_0x38e67e[_0x5f4292('0x28')]['id']}})[_0x5f4292('0x1d')](handleEntityNotFound(_0x33d32b,null))[_0x5f4292('0x1d')](function(_0x3c0d41){const _0x15a0ba=_0x5f4292;let _0x43398a={};const _0x48b161={};return _0x48b161[_0x15a0ba('0x1b')]=_['keys'](db[_0x15a0ba('0x37')][_0x15a0ba('0x2c')]),_0x48b161[_0x15a0ba('0x1f')]=_[_0x15a0ba('0x1a')](_0x38e67e[_0x15a0ba('0x1f')]),_0x48b161[_0x15a0ba('0x2a')]=_[_0x15a0ba('0x26')](_0x48b161[_0x15a0ba('0x1b')],_0x48b161[_0x15a0ba('0x1f')]),_0x43398a[_0x15a0ba('0x22')]=_[_0x15a0ba('0x26')](_0x48b161[_0x15a0ba('0x1b')],qs[_0x15a0ba('0x18')](_0x38e67e['query'][_0x15a0ba('0x18')])),_0x43398a[_0x15a0ba('0x22')]=_0x43398a[_0x15a0ba('0x22')]['length']?_0x43398a[_0x15a0ba('0x22')]:_0x48b161[_0x15a0ba('0x1b')],typeof _0x38e67e['query'][_0x15a0ba('0x10')]==='undefined'&&(_0x43398a[_0x15a0ba('0x33')]=qs[_0x15a0ba('0x33')](_0x38e67e[_0x15a0ba('0x1f')][_0x15a0ba('0x33')]),_0x43398a[_0x15a0ba('0x32')]=qs['offset'](_0x38e67e[_0x15a0ba('0x1f')][_0x15a0ba('0x32')])),_0x43398a[_0x15a0ba('0x2b')]=qs[_0x15a0ba('0x7')](_0x38e67e[_0x15a0ba('0x1f')][_0x15a0ba('0x7')]),_0x43398a[_0x15a0ba('0x1')]=qs[_0x15a0ba('0x2a')](_[_0x15a0ba('0x21')](_0x38e67e[_0x15a0ba('0x1f')],_0x48b161['filters'])),_0x38e67e[_0x15a0ba('0x1f')]['filter']&&(_0x43398a[_0x15a0ba('0x1')]=_[_0x15a0ba('0x3e')](_0x43398a['where'],{[Op['or']]:_[_0x15a0ba('0x8')](_0x43398a['attributes'],function(_0xfbfc8e){const _0x55fbe5=_0x15a0ba,_0x22d544={};return _0x22d544[_0xfbfc8e]={[Op['like']]:'%'+_0x38e67e[_0x55fbe5('0x1f')][_0x55fbe5('0x30')]+'%'},_0x22d544;})})),_0x43398a[_0x15a0ba('0x1')]=_[_0x15a0ba('0x3e')](_0x43398a[_0x15a0ba('0x1')],{'mailboxuser':_0x3c0d41[_0x15a0ba('0x31')]}),_0x43398a=_['merge']({},_0x43398a,_0x38e67e['options']),db['VoiceMailMessage']['findAndCountAll'](_0x43398a)['then'](respondWithFilteredResult(_0x33d32b,_0x43398a));})[_0x5f4292('0x1e')](handleError(_0x33d32b,null));}; \ No newline at end of file diff --git a/server/api/voiceMail/voiceMail.model.js b/server/api/voiceMail/voiceMail.model.js index 4e90ec6..18d90c4 100644 --- a/server/api/voiceMail/voiceMail.model.js +++ b/server/api/voiceMail/voiceMail.model.js @@ -1 +1 @@ -const a735_0x29e6=['mailbox','exports','./voiceMail.attributes','context','voice_voicemail','define','VoiceMail'];(function(_0x3b82e9,_0x29e6d0){const _0xa95716=function(_0x5f47b3){while(--_0x5f47b3){_0x3b82e9['push'](_0x3b82e9['shift']());}};_0xa95716(++_0x29e6d0);}(a735_0x29e6,0x153));const a735_0xa957=function(_0x3b82e9,_0x29e6d0){_0x3b82e9=_0x3b82e9-0x0;let _0xa95716=a735_0x29e6[_0x3b82e9];return _0xa95716;};const _0x36b00f=a735_0xa957;'use strict';const attributes=require(_0x36b00f('0x6'));module[_0x36b00f('0x5')]=function(_0x5f47b3){const _0x464dbc=_0x36b00f,_0x4da030=_0x5f47b3[_0x464dbc('0x2')](_0x464dbc('0x3'),attributes,{'tableName':_0x464dbc('0x1'),'paranoid':![],'indexes':[{'name':'mailbox_context','fields':[_0x464dbc('0x4'),_0x464dbc('0x0')]}],'timestamps':!![]});return _0x4da030;}; \ No newline at end of file +const a735_0x3d46=['./voiceMail.attributes','context','mailbox_context','VoiceMail'];(function(_0x1c48a3,_0x3d46d5){const _0x1e9712=function(_0x59efe8){while(--_0x59efe8){_0x1c48a3['push'](_0x1c48a3['shift']());}};_0x1e9712(++_0x3d46d5);}(a735_0x3d46,0x1ac));const a735_0x1e97=function(_0x1c48a3,_0x3d46d5){_0x1c48a3=_0x1c48a3-0x0;let _0x1e9712=a735_0x3d46[_0x1c48a3];return _0x1e9712;};const _0x2683f5=a735_0x1e97;'use strict';const attributes=require(_0x2683f5('0x0'));module['exports']=function(_0x59efe8){const _0x1b4ecc=_0x2683f5,_0x4dfdf3=_0x59efe8['define'](_0x1b4ecc('0x3'),attributes,{'tableName':'voice_voicemail','paranoid':![],'indexes':[{'name':_0x1b4ecc('0x2'),'fields':['mailbox',_0x1b4ecc('0x1')]}],'timestamps':!![]});return _0x4dfdf3;}; \ No newline at end of file diff --git a/server/api/voiceMailMessage/index.js b/server/api/voiceMailMessage/index.js index 44508ba..e25b751 100644 --- a/server/api/voiceMailMessage/index.js +++ b/server/api/voiceMailMessage/index.js @@ -1 +1 @@ -const a736_0x1b29=['./voiceMailMessage.controller','Router','isAuthenticated','express','/:id','destroy','exports','put','../../components/auth/service','index','get','download','/:id/download'];(function(_0x2211ae,_0x1b296f){const _0x283491=function(_0x5f045c){while(--_0x5f045c){_0x2211ae['push'](_0x2211ae['shift']());}};_0x283491(++_0x1b296f);}(a736_0x1b29,0x19c));const a736_0x2834=function(_0x2211ae,_0x1b296f){_0x2211ae=_0x2211ae-0x0;let _0x283491=a736_0x1b29[_0x2211ae];return _0x283491;};const _0x1c1452=a736_0x2834;'use strict';const express=require(_0x1c1452('0x7')),router=express[_0x1c1452('0x5')](),auth=require(_0x1c1452('0xc')),controller=require(_0x1c1452('0x4'));router[_0x1c1452('0x1')]('/',auth['isAuthenticated'](),controller[_0x1c1452('0x0')]),router[_0x1c1452('0x1')](_0x1c1452('0x8'),auth[_0x1c1452('0x6')](),controller['show']),router[_0x1c1452('0x1')](_0x1c1452('0x3'),auth['isAuthenticated'](),controller[_0x1c1452('0x2')]),router['post']('/',auth[_0x1c1452('0x6')](),controller['create']),router[_0x1c1452('0xb')](_0x1c1452('0x8'),auth[_0x1c1452('0x6')](),controller['update']),router['delete']('/:id',auth['isAuthenticated'](),controller[_0x1c1452('0x9')]),module[_0x1c1452('0xa')]=router; \ No newline at end of file +const a736_0x2e64=['Router','/:id','/:id/download','isAuthenticated','get','show','index','delete','post','download','create','update'];(function(_0x593612,_0x2e64f6){const _0x577623=function(_0x54237c){while(--_0x54237c){_0x593612['push'](_0x593612['shift']());}};_0x577623(++_0x2e64f6);}(a736_0x2e64,0x1b4));const a736_0x5776=function(_0x593612,_0x2e64f6){_0x593612=_0x593612-0x0;let _0x577623=a736_0x2e64[_0x593612];return _0x577623;};const _0x40ae0f=a736_0x5776;'use strict';const express=require('express'),router=express[_0x40ae0f('0x8')](),auth=require('../../components/auth/service'),controller=require('./voiceMailMessage.controller');router['get']('/',auth[_0x40ae0f('0xb')](),controller[_0x40ae0f('0x2')]),router[_0x40ae0f('0x0')]('/:id',auth[_0x40ae0f('0xb')](),controller[_0x40ae0f('0x1')]),router[_0x40ae0f('0x0')](_0x40ae0f('0xa'),auth['isAuthenticated'](),controller[_0x40ae0f('0x5')]),router[_0x40ae0f('0x4')]('/',auth['isAuthenticated'](),controller[_0x40ae0f('0x6')]),router['put'](_0x40ae0f('0x9'),auth[_0x40ae0f('0xb')](),controller[_0x40ae0f('0x7')]),router[_0x40ae0f('0x3')](_0x40ae0f('0x9'),auth['isAuthenticated'](),controller['destroy']),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.attributes.js b/server/api/voiceMailMessage/voiceMailMessage.attributes.js index 9d40d3f..8be4f48 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.attributes.js +++ b/server/api/voiceMailMessage/voiceMailMessage.attributes.js @@ -1 +1 @@ -const a737_0x4808=['exports','long','INTEGER','getDataValue','BLOB','STRING','sequelize','VIRTUAL','TIMESTAMP'];(function(_0x136c92,_0x48081e){const _0x570d2b=function(_0x1232a5){while(--_0x1232a5){_0x136c92['push'](_0x136c92['shift']());}};_0x570d2b(++_0x48081e);}(a737_0x4808,0xff));const a737_0x570d=function(_0x136c92,_0x48081e){_0x136c92=_0x136c92-0x0;let _0x570d2b=a737_0x4808[_0x136c92];return _0x570d2b;};const _0x646868=a737_0x570d;'use strict';const Sequelize=require(_0x646868('0x3'));module[_0x646868('0x6')]={'name':{'type':Sequelize[_0x646868('0x4')],'get':function(){const _0xb5bc6f=_0x646868;return this[_0xb5bc6f('0x0')]('id');}},'msgnum':{'type':Sequelize[_0x646868('0x8')](0xb),'defaultValue':0x0,'allowNull':![]},'dir':{'type':Sequelize['STRING'],'defaultValue':''},'context':{'type':Sequelize[_0x646868('0x2')],'defaultValue':''},'macrocontext':{'type':Sequelize[_0x646868('0x2')],'defaultValue':''},'callerid':{'type':Sequelize[_0x646868('0x2')],'defaultValue':''},'origtime':{'type':Sequelize[_0x646868('0x2')],'defaultValue':''},'duration':{'type':Sequelize[_0x646868('0x2')],'defaultValue':''},'mailboxuser':{'type':Sequelize[_0x646868('0x2')],'defaultValue':''},'mailboxcontext':{'type':Sequelize[_0x646868('0x2')],'defaultValue':''},'recording':{'type':Sequelize[_0x646868('0x1')](_0x646868('0x7')),'defaultValue':null},'flag':{'type':Sequelize['STRING'],'defaultValue':''},'msg_id':{'type':Sequelize[_0x646868('0x2')],'defaultValue':''},'stamp':{'type':_0x646868('0x5'),'allowNull':![]}}; \ No newline at end of file +const a737_0x5052=['STRING','BLOB','exports','long','TIMESTAMP','getDataValue','sequelize'];(function(_0x5997cb,_0x5052c4){const _0x5befcc=function(_0xe9365c){while(--_0xe9365c){_0x5997cb['push'](_0x5997cb['shift']());}};_0x5befcc(++_0x5052c4);}(a737_0x5052,0x126));const a737_0x5bef=function(_0x5997cb,_0x5052c4){_0x5997cb=_0x5997cb-0x0;let _0x5befcc=a737_0x5052[_0x5997cb];return _0x5befcc;};const _0x4cd71a=a737_0x5bef;'use strict';const Sequelize=require(_0x4cd71a('0x6'));module[_0x4cd71a('0x2')]={'name':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x7eb62e=_0x4cd71a;return this[_0x7eb62e('0x5')]('id');}},'msgnum':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0,'allowNull':![]},'dir':{'type':Sequelize['STRING'],'defaultValue':''},'context':{'type':Sequelize[_0x4cd71a('0x0')],'defaultValue':''},'macrocontext':{'type':Sequelize['STRING'],'defaultValue':''},'callerid':{'type':Sequelize[_0x4cd71a('0x0')],'defaultValue':''},'origtime':{'type':Sequelize[_0x4cd71a('0x0')],'defaultValue':''},'duration':{'type':Sequelize[_0x4cd71a('0x0')],'defaultValue':''},'mailboxuser':{'type':Sequelize['STRING'],'defaultValue':''},'mailboxcontext':{'type':Sequelize[_0x4cd71a('0x0')],'defaultValue':''},'recording':{'type':Sequelize[_0x4cd71a('0x1')](_0x4cd71a('0x3')),'defaultValue':null},'flag':{'type':Sequelize['STRING'],'defaultValue':''},'msg_id':{'type':Sequelize[_0x4cd71a('0x0')],'defaultValue':''},'stamp':{'type':_0x4cd71a('0x4'),'allowNull':![]}}; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.controller.js b/server/api/voiceMailMessage/voiceMailMessage.controller.js index eef6930..7abfc89 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.controller.js +++ b/server/api/voiceMailMessage/voiceMailMessage.controller.js @@ -1 +1 @@ -const a738_0x2d03=['offset','rawAttributes','merge','map','name','fieldName','show','type','../../mysqldb','../../config/logger','update','create','json','audio/wav','rows','order','index','where','VoiceMailMessage','limit','length','pick','catch','fields','findOne','api','filters','like','query','body','intersection','findAll','destroy','sendStatus','attributes','params','filter','send','attachment','options','recording','from','count','set','stack','includeAll','model','status','msg_id','sequelize','Content-Disposition','nolimit','keys','VoiceMailMessage\x20not\x20found','lodash','sort','error','then','Content-Range'];(function(_0x4be700,_0x2d03a5){const _0x5d44c3=function(_0x5b73b9){while(--_0x5b73b9){_0x4be700['push'](_0x4be700['shift']());}};_0x5d44c3(++_0x2d03a5);}(a738_0x2d03,0x1ae));const a738_0x5d44=function(_0x4be700,_0x2d03a5){_0x4be700=_0x4be700-0x0;let _0x5d44c3=a738_0x2d03[_0x4be700];return _0x5d44c3;};const _0x33aa70=a738_0x5d44;'use strict';const _=require(_0x33aa70('0x25')),qs=require('../../components/parsers/qs'),logger=require(_0x33aa70('0x33'))(_0x33aa70('0x8')),db=require(_0x33aa70('0x32'))['db'],{Op,ValidationError}=require(_0x33aa70('0x20'));function respondWithResult(_0x5b73b9,_0x35dac5){return _0x35dac5=_0x35dac5||0xc8,function(_0x2d86ba){const _0x483b83=a738_0x5d44;if(_0x2d86ba)return _0x5b73b9['status'](_0x35dac5)[_0x483b83('0x36')](_0x2d86ba);};}function respondWithFilteredResult(_0x1d0a4d,_0x22aeac){return function(_0x332ae6){const _0x10749a=a738_0x5d44;if(_0x332ae6){const _0x471216=_0x332ae6[_0x10749a('0x19')],_0x43ff61=_0x22aeac['offset'];let _0x14ea49=_0x22aeac['offset']+_0x22aeac[_0x10749a('0x2')],_0x3a0aa8;return _0x14ea49>=_0x471216?(_0x14ea49=_0x471216,_0x3a0aa8=0xc8):_0x3a0aa8=0xce,_0x1d0a4d['status'](_0x3a0aa8),_0x1d0a4d[_0x10749a('0x1a')](_0x10749a('0x29'),_0x43ff61+'-'+_0x14ea49+'/'+_0x471216)[_0x10749a('0x36')](_0x332ae6);}return null;};}function saveUpdates(_0x2ee3dc){return function(_0x542039){const _0x3757c6=a738_0x5d44;if(_0x542039)return _0x542039[_0x3757c6('0x34')](_0x2ee3dc)[_0x3757c6('0x28')](function(_0x7baeb9){return _0x7baeb9;});return null;};}function removeEntity(_0xccfea3){return function(_0x2f1463){const _0x437cb7=a738_0x5d44;if(_0x2f1463)return _0x2f1463[_0x437cb7('0xf')]()['then'](function(){const _0x2c6012=_0x437cb7;_0xccfea3[_0x2c6012('0x1e')](0xcc)['end']();});};}function handleEntityNotFound(_0x49add1){return function(_0x2b81da){const _0x5ea5a0=a738_0x5d44;return!_0x2b81da&&_0x49add1[_0x5ea5a0('0x10')](0x194),_0x2b81da;};}function handleError(_0x3a11d3,_0x5b360c){return _0x5b360c=_0x5b360c||0x1f4,function(_0xc22078){const _0x5c7238=a738_0x5d44;logger[_0x5c7238('0x27')](_0xc22078[_0x5c7238('0x1b')]),_0xc22078['name']&&delete _0xc22078[_0x5c7238('0x2e')],_0x3a11d3[_0x5c7238('0x1e')](_0x5b360c)[_0x5c7238('0x14')](_0xc22078);};}exports[_0x33aa70('0x3a')]=function(_0x668b78,_0x3889ef){const _0x22cc29=_0x33aa70;let _0x55e840={};const _0x1827d4={},_0x305a2b={'count':0x0,'rows':[]},_0x49e285=_[_0x22cc29('0x2d')](db[_0x22cc29('0x1')]['rawAttributes'],function(_0x11485f){const _0x53d7c8=_0x22cc29;return{'name':_0x11485f[_0x53d7c8('0x2f')],'type':_0x11485f['type']['key']};});_0x1827d4[_0x22cc29('0x1d')]=_['differenceBy'](_[_0x22cc29('0x2d')](_0x49e285,_0x22cc29('0x2e')),['name']),_0x1827d4[_0x22cc29('0xb')]=_[_0x22cc29('0x23')](_0x668b78[_0x22cc29('0xb')]),_0x1827d4[_0x22cc29('0x9')]=_[_0x22cc29('0xd')](_0x1827d4[_0x22cc29('0x1d')],_0x1827d4['query']),_0x55e840[_0x22cc29('0x11')]=_[_0x22cc29('0xd')](_0x1827d4[_0x22cc29('0x1d')],qs['fields'](_0x668b78[_0x22cc29('0xb')][_0x22cc29('0x6')])),_0x55e840[_0x22cc29('0x11')]=_0x55e840[_0x22cc29('0x11')][_0x22cc29('0x3')]?_0x55e840[_0x22cc29('0x11')]:_0x1827d4[_0x22cc29('0x1d')];typeof _0x668b78[_0x22cc29('0xb')][_0x22cc29('0x22')]==='undefined'&&(_0x55e840[_0x22cc29('0x2')]=qs[_0x22cc29('0x2')](_0x668b78['query'][_0x22cc29('0x2')]),_0x55e840['offset']=qs[_0x22cc29('0x2a')](_0x668b78[_0x22cc29('0xb')]['offset']));_0x55e840[_0x22cc29('0x39')]=qs['sort'](_0x668b78[_0x22cc29('0xb')][_0x22cc29('0x26')]),_0x55e840['where']=qs[_0x22cc29('0x9')](_[_0x22cc29('0x4')](_0x668b78[_0x22cc29('0xb')],_0x1827d4[_0x22cc29('0x9')]),_0x49e285);_0x668b78[_0x22cc29('0xb')][_0x22cc29('0x13')]&&(_0x55e840['where']=_['merge'](_0x55e840['where'],{[Op['or']]:_[_0x22cc29('0x2d')](_0x49e285,function(_0x2bd424){const _0x1a87d1=_0x22cc29;if(_0x2bd424[_0x1a87d1('0x31')]!=='VIRTUAL'){const _0x356988={};return _0x356988[_0x2bd424[_0x1a87d1('0x2e')]]={[Op[_0x1a87d1('0xa')]]:'%'+_0x668b78[_0x1a87d1('0xb')]['filter']+'%'},_0x356988;}})}));_0x55e840=_[_0x22cc29('0x2c')]({},_0x55e840,_0x668b78[_0x22cc29('0x16')]);const _0x41f21b={'where':_0x55e840[_0x22cc29('0x0')]};return db[_0x22cc29('0x1')][_0x22cc29('0x19')](_0x41f21b)[_0x22cc29('0x28')](function(_0x1d2135){const _0x54c54a=_0x22cc29;return _0x305a2b['count']=_0x1d2135,_0x668b78[_0x54c54a('0xb')][_0x54c54a('0x1c')]&&(_0x55e840['include']=[{'all':!![]}]),db[_0x54c54a('0x1')][_0x54c54a('0xe')](_0x55e840);})['then'](function(_0x580a5a){const _0x1c87b5=_0x22cc29;return _0x305a2b[_0x1c87b5('0x38')]=_0x580a5a,_0x305a2b;})['then'](respondWithFilteredResult(_0x3889ef,_0x55e840))['catch'](handleError(_0x3889ef,null));},exports[_0x33aa70('0x30')]=function(_0x4ecbf9,_0x51db06){const _0xa45ca9=_0x33aa70;let _0x12f135={'raw':!![],'where':{'id':_0x4ecbf9[_0xa45ca9('0x12')]['id']}};const _0x273b8a={};return _0x273b8a[_0xa45ca9('0x1d')]=_['keys'](db[_0xa45ca9('0x1')][_0xa45ca9('0x2b')]),_0x273b8a[_0xa45ca9('0xb')]=_[_0xa45ca9('0x23')](_0x4ecbf9[_0xa45ca9('0xb')]),_0x273b8a[_0xa45ca9('0x9')]=_[_0xa45ca9('0xd')](_0x273b8a[_0xa45ca9('0x1d')],_0x273b8a[_0xa45ca9('0xb')]),_0x12f135['attributes']=_[_0xa45ca9('0xd')](_0x273b8a[_0xa45ca9('0x1d')],qs[_0xa45ca9('0x6')](_0x4ecbf9[_0xa45ca9('0xb')]['fields'])),_0x12f135[_0xa45ca9('0x11')]=_0x12f135['attributes'][_0xa45ca9('0x3')]?_0x12f135[_0xa45ca9('0x11')]:_0x273b8a[_0xa45ca9('0x1d')],_0x4ecbf9[_0xa45ca9('0xb')]['includeAll']&&(_0x12f135['include']=[{'all':!![]}]),_0x12f135=_[_0xa45ca9('0x2c')]({},_0x12f135,_0x4ecbf9[_0xa45ca9('0x16')]),db[_0xa45ca9('0x1')][_0xa45ca9('0x7')](_0x12f135)['then'](handleEntityNotFound(_0x51db06,null))[_0xa45ca9('0x28')](respondWithResult(_0x51db06,null))[_0xa45ca9('0x5')](handleError(_0x51db06,null));},exports[_0x33aa70('0x35')]=function(_0x288655,_0x1776ad){const _0x2c6dde=_0x33aa70;return db[_0x2c6dde('0x1')]['create'](_0x288655[_0x2c6dde('0xc')],{})[_0x2c6dde('0x28')](respondWithResult(_0x1776ad,0xc9))[_0x2c6dde('0x5')](handleError(_0x1776ad,null));},exports['update']=function(_0x532b3d,_0x12fcea){const _0x323b6f=_0x33aa70;return _0x532b3d[_0x323b6f('0xc')]['id']&&delete _0x532b3d[_0x323b6f('0xc')]['id'],db[_0x323b6f('0x1')][_0x323b6f('0x7')]({'where':{'id':_0x532b3d[_0x323b6f('0x12')]['id']}})[_0x323b6f('0x28')](handleEntityNotFound(_0x12fcea,null))[_0x323b6f('0x28')](saveUpdates(_0x532b3d['body'],null))['then'](respondWithResult(_0x12fcea,null))[_0x323b6f('0x5')](handleError(_0x12fcea,null));},exports['destroy']=function(_0x1e7f1d,_0x1e91da){const _0xc6527c=_0x33aa70;return db['VoiceMailMessage'][_0xc6527c('0x7')]({'where':{'id':_0x1e7f1d[_0xc6527c('0x12')]['id']}})[_0xc6527c('0x28')](handleEntityNotFound(_0x1e91da,null))[_0xc6527c('0x28')](removeEntity(_0x1e91da,null))[_0xc6527c('0x5')](handleError(_0x1e91da,null));},exports['download']=function(_0x4fe6c0,_0x526388){const _0x397540=_0x33aa70;return db['VoiceMailMessage'][_0x397540('0x7')]({'where':{'id':_0x4fe6c0[_0x397540('0x12')]['id']},'attributes':['id','recording',_0x397540('0x1f')]})[_0x397540('0x28')](handleEntityNotFound(_0x526388,null))['then'](function(_0x33cc9e){const _0xe34278=_0x397540;if(_0x33cc9e){if(!_0x33cc9e[_0xe34278('0x17')])throw new ValidationError(_0xe34278('0x24'));const _0x4a6c62={'Content-Type':_0xe34278('0x37'),'Content-Disposition':_0xe34278('0x15')};return _0x33cc9e[_0xe34278('0x1f')]&&(_0x4a6c62[_0xe34278('0x21')]='attachment;\x20filename=\x22'+_0x33cc9e[_0xe34278('0x1f')]+'.wav\x22'),_0x526388['set'](_0x4a6c62),_0x526388[_0xe34278('0x14')](Buffer[_0xe34278('0x18')](_0x33cc9e['recording']));}})[_0x397540('0x5')](handleError(_0x526388,null));}; \ No newline at end of file +const a738_0x3bf9=['error','msg_id','params','where','attachment','create','findOne','type','.wav\x22','pick','recording','limit','sequelize','fields','filters','Content-Disposition','Content-Range','stack','filter','key','download','findAll','api','model','../../mysqldb','attributes','../../components/parsers/qs','set','query','then','options','VoiceMailMessage','fieldName','map','undefined','status','includeAll','body','length','VIRTUAL','offset','end','attachment;\x20filename=\x22','rawAttributes','keys','intersection','name','lodash','catch','rows','update','merge','json','include','nolimit'];(function(_0x52e955,_0x3bf95c){const _0x261855=function(_0x24f31a){while(--_0x24f31a){_0x52e955['push'](_0x52e955['shift']());}};_0x261855(++_0x3bf95c);}(a738_0x3bf9,0x10b));const a738_0x2618=function(_0x52e955,_0x3bf95c){_0x52e955=_0x52e955-0x0;let _0x261855=a738_0x3bf9[_0x52e955];return _0x261855;};const _0x118c7a=a738_0x2618;'use strict';const _=require(_0x118c7a('0x0')),qs=require(_0x118c7a('0x22')),logger=require('../../config/logger')(_0x118c7a('0x1e')),db=require(_0x118c7a('0x20'))['db'],{Op,ValidationError}=require(_0x118c7a('0x14'));function respondWithResult(_0x24f31a,_0x3ee091){return _0x3ee091=_0x3ee091||0xc8,function(_0x2b920e){const _0x458bef=a738_0x2618;if(_0x2b920e)return _0x24f31a[_0x458bef('0x2b')](_0x3ee091)[_0x458bef('0x5')](_0x2b920e);};}function respondWithFilteredResult(_0x59e1a3,_0x2c7b40){return function(_0x3dc0ca){const _0x27aa3f=a738_0x2618;if(_0x3dc0ca){const _0x90373d=_0x3dc0ca['count'],_0x15ca71=_0x2c7b40[_0x27aa3f('0x30')];let _0x32de2b=_0x2c7b40[_0x27aa3f('0x30')]+_0x2c7b40[_0x27aa3f('0x13')],_0x2bd521;return _0x32de2b>=_0x90373d?(_0x32de2b=_0x90373d,_0x2bd521=0xc8):_0x2bd521=0xce,_0x59e1a3[_0x27aa3f('0x2b')](_0x2bd521),_0x59e1a3[_0x27aa3f('0x23')](_0x27aa3f('0x18'),_0x15ca71+'-'+_0x32de2b+'/'+_0x90373d)[_0x27aa3f('0x5')](_0x3dc0ca);}return null;};}function saveUpdates(_0x183894){return function(_0x48ae1b){const _0x52b6ac=a738_0x2618;if(_0x48ae1b)return _0x48ae1b[_0x52b6ac('0x3')](_0x183894)[_0x52b6ac('0x25')](function(_0x46776f){return _0x46776f;});return null;};}function removeEntity(_0x3dac24){return function(_0x9421fc){if(_0x9421fc)return _0x9421fc['destroy']()['then'](function(){const _0x3a989a=a738_0x2618;_0x3dac24[_0x3a989a('0x2b')](0xcc)[_0x3a989a('0x31')]();});};}function handleEntityNotFound(_0x2c471d){return function(_0x3d3116){return!_0x3d3116&&_0x2c471d['sendStatus'](0x194),_0x3d3116;};}function handleError(_0x510c3a,_0x41194e){return _0x41194e=_0x41194e||0x1f4,function(_0x2082f4){const _0x246450=a738_0x2618;logger[_0x246450('0x8')](_0x2082f4[_0x246450('0x19')]),_0x2082f4[_0x246450('0x36')]&&delete _0x2082f4[_0x246450('0x36')],_0x510c3a[_0x246450('0x2b')](_0x41194e)['send'](_0x2082f4);};}exports['index']=function(_0x37d15b,_0xa91704){const _0x4705d2=_0x118c7a;let _0x44cf79={};const _0x1e6b85={},_0x774976={'count':0x0,'rows':[]},_0x43ae35=_['map'](db[_0x4705d2('0x27')][_0x4705d2('0x33')],function(_0x244fb5){const _0x461b9c=_0x4705d2;return{'name':_0x244fb5[_0x461b9c('0x28')],'type':_0x244fb5[_0x461b9c('0xf')][_0x461b9c('0x1b')]};});_0x1e6b85[_0x4705d2('0x1f')]=_['differenceBy'](_[_0x4705d2('0x29')](_0x43ae35,_0x4705d2('0x36')),['name']),_0x1e6b85[_0x4705d2('0x24')]=_[_0x4705d2('0x34')](_0x37d15b[_0x4705d2('0x24')]),_0x1e6b85[_0x4705d2('0x16')]=_[_0x4705d2('0x35')](_0x1e6b85['model'],_0x1e6b85[_0x4705d2('0x24')]),_0x44cf79[_0x4705d2('0x21')]=_['intersection'](_0x1e6b85[_0x4705d2('0x1f')],qs['fields'](_0x37d15b['query'][_0x4705d2('0x15')])),_0x44cf79['attributes']=_0x44cf79[_0x4705d2('0x21')]['length']?_0x44cf79[_0x4705d2('0x21')]:_0x1e6b85['model'];typeof _0x37d15b[_0x4705d2('0x24')][_0x4705d2('0x7')]===_0x4705d2('0x2a')&&(_0x44cf79['limit']=qs[_0x4705d2('0x13')](_0x37d15b['query']['limit']),_0x44cf79['offset']=qs[_0x4705d2('0x30')](_0x37d15b[_0x4705d2('0x24')]['offset']));_0x44cf79['order']=qs['sort'](_0x37d15b['query']['sort']),_0x44cf79['where']=qs[_0x4705d2('0x16')](_[_0x4705d2('0x11')](_0x37d15b[_0x4705d2('0x24')],_0x1e6b85['filters']),_0x43ae35);_0x37d15b[_0x4705d2('0x24')][_0x4705d2('0x1a')]&&(_0x44cf79[_0x4705d2('0xb')]=_[_0x4705d2('0x4')](_0x44cf79['where'],{[Op['or']]:_[_0x4705d2('0x29')](_0x43ae35,function(_0xc57085){const _0x11c01a=_0x4705d2;if(_0xc57085[_0x11c01a('0xf')]!==_0x11c01a('0x2f')){const _0x5c9486={};return _0x5c9486[_0xc57085[_0x11c01a('0x36')]]={[Op['like']]:'%'+_0x37d15b['query']['filter']+'%'},_0x5c9486;}})}));_0x44cf79=_[_0x4705d2('0x4')]({},_0x44cf79,_0x37d15b[_0x4705d2('0x26')]);const _0x2a9c03={'where':_0x44cf79[_0x4705d2('0xb')]};return db[_0x4705d2('0x27')]['count'](_0x2a9c03)[_0x4705d2('0x25')](function(_0x5071f3){const _0x217c6a=_0x4705d2;return _0x774976['count']=_0x5071f3,_0x37d15b[_0x217c6a('0x24')][_0x217c6a('0x2c')]&&(_0x44cf79[_0x217c6a('0x6')]=[{'all':!![]}]),db[_0x217c6a('0x27')][_0x217c6a('0x1d')](_0x44cf79);})[_0x4705d2('0x25')](function(_0x20c152){const _0x19965a=_0x4705d2;return _0x774976[_0x19965a('0x2')]=_0x20c152,_0x774976;})[_0x4705d2('0x25')](respondWithFilteredResult(_0xa91704,_0x44cf79))[_0x4705d2('0x1')](handleError(_0xa91704,null));},exports['show']=function(_0x47b39d,_0x3514e8){const _0x336c90=_0x118c7a;let _0xf2f9e9={'raw':!![],'where':{'id':_0x47b39d[_0x336c90('0xa')]['id']}};const _0x3ebf0a={};return _0x3ebf0a[_0x336c90('0x1f')]=_[_0x336c90('0x34')](db[_0x336c90('0x27')][_0x336c90('0x33')]),_0x3ebf0a[_0x336c90('0x24')]=_[_0x336c90('0x34')](_0x47b39d['query']),_0x3ebf0a[_0x336c90('0x16')]=_[_0x336c90('0x35')](_0x3ebf0a[_0x336c90('0x1f')],_0x3ebf0a[_0x336c90('0x24')]),_0xf2f9e9['attributes']=_['intersection'](_0x3ebf0a[_0x336c90('0x1f')],qs['fields'](_0x47b39d[_0x336c90('0x24')][_0x336c90('0x15')])),_0xf2f9e9[_0x336c90('0x21')]=_0xf2f9e9[_0x336c90('0x21')][_0x336c90('0x2e')]?_0xf2f9e9['attributes']:_0x3ebf0a['model'],_0x47b39d[_0x336c90('0x24')][_0x336c90('0x2c')]&&(_0xf2f9e9['include']=[{'all':!![]}]),_0xf2f9e9=_[_0x336c90('0x4')]({},_0xf2f9e9,_0x47b39d[_0x336c90('0x26')]),db[_0x336c90('0x27')][_0x336c90('0xe')](_0xf2f9e9)['then'](handleEntityNotFound(_0x3514e8,null))[_0x336c90('0x25')](respondWithResult(_0x3514e8,null))[_0x336c90('0x1')](handleError(_0x3514e8,null));},exports[_0x118c7a('0xd')]=function(_0x571dd3,_0x1a7638){const _0x4846ab=_0x118c7a;return db[_0x4846ab('0x27')][_0x4846ab('0xd')](_0x571dd3[_0x4846ab('0x2d')],{})['then'](respondWithResult(_0x1a7638,0xc9))[_0x4846ab('0x1')](handleError(_0x1a7638,null));},exports[_0x118c7a('0x3')]=function(_0x5a2152,_0x31f0a1){const _0x581b26=_0x118c7a;return _0x5a2152[_0x581b26('0x2d')]['id']&&delete _0x5a2152[_0x581b26('0x2d')]['id'],db[_0x581b26('0x27')]['findOne']({'where':{'id':_0x5a2152['params']['id']}})['then'](handleEntityNotFound(_0x31f0a1,null))[_0x581b26('0x25')](saveUpdates(_0x5a2152['body'],null))['then'](respondWithResult(_0x31f0a1,null))[_0x581b26('0x1')](handleError(_0x31f0a1,null));},exports['destroy']=function(_0x26d30d,_0x5b6f8a){const _0x4ec4bf=_0x118c7a;return db[_0x4ec4bf('0x27')][_0x4ec4bf('0xe')]({'where':{'id':_0x26d30d['params']['id']}})[_0x4ec4bf('0x25')](handleEntityNotFound(_0x5b6f8a,null))[_0x4ec4bf('0x25')](removeEntity(_0x5b6f8a,null))[_0x4ec4bf('0x1')](handleError(_0x5b6f8a,null));},exports[_0x118c7a('0x1c')]=function(_0x3de2d8,_0x52ba07){const _0x1261d7=_0x118c7a;return db[_0x1261d7('0x27')][_0x1261d7('0xe')]({'where':{'id':_0x3de2d8[_0x1261d7('0xa')]['id']},'attributes':['id',_0x1261d7('0x12'),_0x1261d7('0x9')]})['then'](handleEntityNotFound(_0x52ba07,null))['then'](function(_0x970916){const _0x2047ef=_0x1261d7;if(_0x970916){if(!_0x970916['recording'])throw new ValidationError('VoiceMailMessage\x20not\x20found');const _0x9b00fd={'Content-Type':'audio/wav','Content-Disposition':_0x2047ef('0xc')};return _0x970916[_0x2047ef('0x9')]&&(_0x9b00fd[_0x2047ef('0x17')]=_0x2047ef('0x32')+_0x970916[_0x2047ef('0x9')]+_0x2047ef('0x10')),_0x52ba07[_0x2047ef('0x23')](_0x9b00fd),_0x52ba07['send'](Buffer['from'](_0x970916[_0x2047ef('0x12')]));}})['catch'](handleError(_0x52ba07,null));}; \ No newline at end of file diff --git a/server/api/voiceMailMessage/voiceMailMessage.model.js b/server/api/voiceMailMessage/voiceMailMessage.model.js index eb1b13c..67f4267 100644 --- a/server/api/voiceMailMessage/voiceMailMessage.model.js +++ b/server/api/voiceMailMessage/voiceMailMessage.model.js @@ -1 +1 @@ -const a739_0x5b98=['exports','voice_voicemail_messages','VoiceMailMessage','dir'];(function(_0x50ef0b,_0x5b981e){const _0x1270eb=function(_0x15f2de){while(--_0x15f2de){_0x50ef0b['push'](_0x50ef0b['shift']());}};_0x1270eb(++_0x5b981e);}(a739_0x5b98,0x113));const a739_0x1270=function(_0x50ef0b,_0x5b981e){_0x50ef0b=_0x50ef0b-0x0;let _0x1270eb=a739_0x5b98[_0x50ef0b];return _0x1270eb;};const _0x2387a1=a739_0x1270;'use strict';const attributes=require('./voiceMailMessage.attributes');module[_0x2387a1('0x1')]=function(_0x15f2de){const _0x11cb29=_0x2387a1,_0x563245=_0x15f2de['define'](_0x11cb29('0x3'),attributes,{'tableName':_0x11cb29('0x2'),'paranoid':![],'indexes':[{'name':_0x11cb29('0x0'),'fields':['dir']}],'timestamps':![]});return _0x563245;}; \ No newline at end of file +const a739_0x34fd=['define','./voiceMailMessage.attributes','dir','voice_voicemail_messages','VoiceMailMessage'];(function(_0xe5c6b2,_0x34fd8f){const _0x403ad2=function(_0x1d3f0f){while(--_0x1d3f0f){_0xe5c6b2['push'](_0xe5c6b2['shift']());}};_0x403ad2(++_0x34fd8f);}(a739_0x34fd,0x17c));const a739_0x403a=function(_0xe5c6b2,_0x34fd8f){_0xe5c6b2=_0xe5c6b2-0x0;let _0x403ad2=a739_0x34fd[_0xe5c6b2];return _0x403ad2;};const _0x4d4cf6=a739_0x403a;'use strict';const attributes=require(_0x4d4cf6('0x1'));module['exports']=function(_0x1d3f0f){const _0x4d22ed=_0x4d4cf6,_0x129fee=_0x1d3f0f[_0x4d22ed('0x0')](_0x4d22ed('0x4'),attributes,{'tableName':_0x4d22ed('0x3'),'paranoid':![],'indexes':[{'name':_0x4d22ed('0x2'),'fields':['dir']}],'timestamps':![]});return _0x129fee;}; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/index.js b/server/api/voiceMusicOnHold/index.js index 1beeb37..505332c 100644 --- a/server/api/voiceMusicOnHold/index.js +++ b/server/api/voiceMusicOnHold/index.js @@ -1 +1 @@ -const a740_0x3c13=['create','removeSound','isAuthenticated','getSounds','/:id/sounds','put','destroy','/:id','exports','./voiceMusicOnHold.controller','addSound','show','post','get','Router','delete'];(function(_0x4d9ae6,_0x3c1394){const _0x20b337=function(_0x57923a){while(--_0x57923a){_0x4d9ae6['push'](_0x4d9ae6['shift']());}};_0x20b337(++_0x3c1394);}(a740_0x3c13,0x1e9));const a740_0x20b3=function(_0x4d9ae6,_0x3c1394){_0x4d9ae6=_0x4d9ae6-0x0;let _0x20b337=a740_0x3c13[_0x4d9ae6];return _0x20b337;};const _0x126cfc=a740_0x20b3;'use strict';const express=require('express'),router=express[_0x126cfc('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x126cfc('0x0'));router[_0x126cfc('0x4')]('/',auth[_0x126cfc('0x9')](),controller['index']),router['get'](_0x126cfc('0xe'),auth['isAuthenticated'](),controller[_0x126cfc('0x2')]),router['get']('/:id/sounds',auth[_0x126cfc('0x9')](),controller[_0x126cfc('0xa')]),router[_0x126cfc('0x3')]('/',auth[_0x126cfc('0x9')](),controller[_0x126cfc('0x7')]),router[_0x126cfc('0x3')](_0x126cfc('0xb'),auth[_0x126cfc('0x9')](),controller[_0x126cfc('0x1')]),router[_0x126cfc('0xc')](_0x126cfc('0xe'),auth[_0x126cfc('0x9')](),controller['update']),router[_0x126cfc('0x6')](_0x126cfc('0xe'),auth[_0x126cfc('0x9')](),controller[_0x126cfc('0xd')]),router[_0x126cfc('0x6')]('/:id/sounds/:id2',auth[_0x126cfc('0x9')](),controller[_0x126cfc('0x8')]),module[_0x126cfc('0xf')]=router; \ No newline at end of file +const a740_0x1e21=['exports','get','show','/:id','delete','create','post','update','Router','./voiceMusicOnHold.controller','express','isAuthenticated','removeSound','../../components/auth/service','index','/:id/sounds'];(function(_0x2c0d48,_0x1e21e4){const _0x5f3474=function(_0x8eeca2){while(--_0x8eeca2){_0x2c0d48['push'](_0x2c0d48['shift']());}};_0x5f3474(++_0x1e21e4);}(a740_0x1e21,0x188));const a740_0x5f34=function(_0x2c0d48,_0x1e21e4){_0x2c0d48=_0x2c0d48-0x0;let _0x5f3474=a740_0x1e21[_0x2c0d48];return _0x5f3474;};const _0x3994b2=a740_0x5f34;'use strict';const express=require(_0x3994b2('0x2')),router=express[_0x3994b2('0x0')](),auth=require(_0x3994b2('0x5')),controller=require(_0x3994b2('0x1'));router[_0x3994b2('0x9')]('/',auth[_0x3994b2('0x3')](),controller[_0x3994b2('0x6')]),router[_0x3994b2('0x9')](_0x3994b2('0xb'),auth[_0x3994b2('0x3')](),controller[_0x3994b2('0xa')]),router[_0x3994b2('0x9')]('/:id/sounds',auth[_0x3994b2('0x3')](),controller['getSounds']),router[_0x3994b2('0xe')]('/',auth[_0x3994b2('0x3')](),controller[_0x3994b2('0xd')]),router[_0x3994b2('0xe')](_0x3994b2('0x7'),auth[_0x3994b2('0x3')](),controller['addSound']),router['put']('/:id',auth['isAuthenticated'](),controller[_0x3994b2('0xf')]),router['delete'](_0x3994b2('0xb'),auth[_0x3994b2('0x3')](),controller['destroy']),router[_0x3994b2('0xc')]('/:id/sounds/:id2',auth[_0x3994b2('0x3')](),controller[_0x3994b2('0x4')]),module[_0x3994b2('0x8')]=router; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js index 433c7bd..1c25c53 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.attributes.js @@ -1 +1 @@ -const a741_0x442d=['alpha','files','name','mp3','TIMESTAMP','quietmp3','ENUM','exports','STRING','BOOLEAN','custom'];(function(_0x5452d4,_0x442d6e){const _0x498aa4=function(_0x495f79){while(--_0x495f79){_0x5452d4['push'](_0x5452d4['shift']());}};_0x498aa4(++_0x442d6e);}(a741_0x442d,0x199));const a741_0x498a=function(_0x5452d4,_0x442d6e){_0x5452d4=_0x5452d4-0x0;let _0x498aa4=a741_0x442d[_0x5452d4];return _0x498aa4;};const _0x2c31b7=a741_0x498a;'use strict';const Sequelize=require('sequelize');module[_0x2c31b7('0x5')]={'name':{'type':Sequelize[_0x2c31b7('0x6')],'allowNull':![],'unique':_0x2c31b7('0x0')},'mode':{'type':Sequelize[_0x2c31b7('0x4')](_0x2c31b7('0x8'),_0x2c31b7('0xa'),'mp3nb','quietmp3nb',_0x2c31b7('0x3'),_0x2c31b7('0x1')),'allowNull':!![],'defaultValue':_0x2c31b7('0xa')},'directory':{'type':Sequelize[_0x2c31b7('0x6')],'allowNull':!![]},'application':{'type':Sequelize['STRING'],'allowNull':!![]},'digit':{'type':Sequelize[_0x2c31b7('0x6')],'allowNull':!![]},'sort':{'type':Sequelize[_0x2c31b7('0x6')],'allowNull':!![],'defaultValue':_0x2c31b7('0x9')},'format':{'type':Sequelize['STRING'],'allowNull':!![]},'stamp':{'type':_0x2c31b7('0x2')},'defaultEntry':{'type':Sequelize[_0x2c31b7('0x7')],'defaultValue':0x0}}; \ No newline at end of file +const a741_0x3920=['quietmp3','mp3','files','name','mp3nb','STRING','TIMESTAMP','BOOLEAN','sequelize','custom','alpha'];(function(_0x152f4d,_0x392045){const _0x17092f=function(_0x3c708b){while(--_0x3c708b){_0x152f4d['push'](_0x152f4d['shift']());}};_0x17092f(++_0x392045);}(a741_0x3920,0x104));const a741_0x1709=function(_0x152f4d,_0x392045){_0x152f4d=_0x152f4d-0x0;let _0x17092f=a741_0x3920[_0x152f4d];return _0x17092f;};const _0x25f4f7=a741_0x1709;'use strict';const Sequelize=require(_0x25f4f7('0x1'));module['exports']={'name':{'type':Sequelize[_0x25f4f7('0x9')],'allowNull':![],'unique':_0x25f4f7('0x7')},'mode':{'type':Sequelize['ENUM'](_0x25f4f7('0x2'),_0x25f4f7('0x6'),_0x25f4f7('0x8'),'quietmp3nb',_0x25f4f7('0x4'),_0x25f4f7('0x5')),'allowNull':!![],'defaultValue':_0x25f4f7('0x6')},'directory':{'type':Sequelize[_0x25f4f7('0x9')],'allowNull':!![]},'application':{'type':Sequelize[_0x25f4f7('0x9')],'allowNull':!![]},'digit':{'type':Sequelize[_0x25f4f7('0x9')],'allowNull':!![]},'sort':{'type':Sequelize[_0x25f4f7('0x9')],'allowNull':!![],'defaultValue':_0x25f4f7('0x3')},'format':{'type':Sequelize[_0x25f4f7('0x9')],'allowNull':!![]},'stamp':{'type':_0x25f4f7('0xa')},'defaultEntry':{'type':Sequelize[_0x25f4f7('0x0')],'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 068d076..aa2f23a 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.controller.js @@ -1 +1 @@ -const a742_0x585c=['type','findOne','basename','directory','filter','fields','undefined','catch','findAll','../../config/environment','user','symlinkSync','role','autoAssociation','%s.%s','intersection','where','update','name','addSound','message','filters','id2','VoiceMusicOnHold','model','params','send','forEach','body','unlinkSync','stack','like','merge','offset','getSounds','rawAttributes','count','transaction','mkdirSync','MusicOnHolds','../../config/logger','destroy','sequelize','order','../../components/parsers/qs','save_name','pick','Sound','query','rows','VIRTUAL','converted_format','create','map','rmdirSync','keys','nolimit','include','removeSound','limit','UserProfileSection','error','readdirSync','Content-Range','sort','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','show','status','get','util','../../mysqldb','mode','length','attributes','fieldName','includeAll','UserProfileResource','index','set','userProfileId','api','server/files/sounds/converted','json','key','join','then','format','server/files/moh','options','root','files','end'];(function(_0xe16ed7,_0x585c65){const _0x1db7a5=function(_0x510331){while(--_0x510331){_0xe16ed7['push'](_0xe16ed7['shift']());}};_0x1db7a5(++_0x585c65);}(a742_0x585c,0xad));const a742_0x1db7=function(_0xe16ed7,_0x585c65){_0xe16ed7=_0xe16ed7-0x0;let _0x1db7a5=a742_0x585c[_0xe16ed7];return _0x1db7a5;};const _0xb40445=a742_0x1db7;'use strict';const util=require(_0xb40445('0x50')),path=require('path'),fs=require('fs'),_=require('lodash'),qs=require(_0xb40445('0x37')),logger=require(_0xb40445('0x33'))(_0xb40445('0x5b')),config=require(_0xb40445('0x14')),db=require(_0xb40445('0x51'))['db'],{Op,ValidationError}=require(_0xb40445('0x35'));function respondWithStatusCode(_0x510331,_0x6eb76f){return _0x6eb76f=_0x6eb76f||0xcc,function(_0x4b82d3){const _0x9e5c=a742_0x1db7;if(_0x4b82d3)return _0x510331['sendStatus'](_0x6eb76f);return _0x510331[_0x9e5c('0x4e')](_0x6eb76f)[_0x9e5c('0xa')]();};}function respondWithResult(_0x3b52c2,_0xb6ccca){return _0xb6ccca=_0xb6ccca||0xc8,function(_0x2fa946){const _0x241b93=a742_0x1db7;if(_0x2fa946)return _0x3b52c2[_0x241b93('0x4e')](_0xb6ccca)[_0x241b93('0x1')](_0x2fa946);};}function respondWithFilteredResult(_0x1a134b,_0x37c248){return function(_0x51a1b4){const _0x3310ff=a742_0x1db7;if(_0x51a1b4){const _0x449345=_0x51a1b4[_0x3310ff('0x2f')],_0x466f88=_0x37c248[_0x3310ff('0x2c')];let _0x2d55fd=_0x37c248['offset']+_0x37c248[_0x3310ff('0x46')],_0x207129;return _0x2d55fd>=_0x449345?(_0x2d55fd=_0x449345,_0x207129=0xc8):_0x207129=0xce,_0x1a134b[_0x3310ff('0x4e')](_0x207129),_0x1a134b[_0x3310ff('0x59')](_0x3310ff('0x4a'),_0x466f88+'-'+_0x2d55fd+'/'+_0x449345)[_0x3310ff('0x1')](_0x51a1b4);}return null;};}function saveUpdates(_0x331adc){return function(_0xf8f2c){const _0x382b8f=a742_0x1db7;if(_0xf8f2c)return _0xf8f2c[_0x382b8f('0x1c')](_0x331adc)['then'](function(_0x5145c2){return _0x5145c2;});return null;};}function removeEntity(_0xc70ab1){return function(_0x1b5e9c){const _0x49cdbe=a742_0x1db7;if(_0x1b5e9c)return _0x1b5e9c['destroy']()[_0x49cdbe('0x4')](function(){const _0x455c6c=_0x49cdbe,_0x121b17=_0x1b5e9c['get']({'plain':!![]}),_0x27d5e8=_0x455c6c('0x32');return db[_0x455c6c('0x57')]['destroy']({'where':{'type':_0x27d5e8,'resourceId':_0x121b17['id']}})[_0x455c6c('0x4')](function(){return _0x1b5e9c;});})[_0x49cdbe('0x4')](function(){const _0x59d0fb=_0x49cdbe;_0xc70ab1[_0x59d0fb('0x4e')](0xcc)['end']();});};}function handleEntityNotFound(_0x4ee88a){return function(_0x24a4ac){return!_0x24a4ac&&_0x4ee88a['sendStatus'](0x194),_0x24a4ac;};}function handleError(_0x2ac32c,_0x53739b){return _0x53739b=_0x53739b||0x1f4,function(_0x3268e8){const _0x3d08f5=a742_0x1db7;logger[_0x3d08f5('0x48')](_0x3268e8[_0x3d08f5('0x29')]),_0x3268e8[_0x3d08f5('0x1d')]&&delete _0x3268e8[_0x3d08f5('0x1d')],_0x2ac32c[_0x3d08f5('0x4e')](_0x53739b)[_0x3d08f5('0x25')](_0x3268e8);};}exports[_0xb40445('0x58')]=function(_0x31f8f8,_0x4dce96){const _0x366e3c=_0xb40445;let _0x4eadff={};const _0x4f36b2={},_0x4a92de={'count':0x0,'rows':[]},_0x45470b=_['map'](db['VoiceMusicOnHold'][_0x366e3c('0x2e')],function(_0x327041){const _0x573a55=_0x366e3c;return{'name':_0x327041[_0x573a55('0x55')],'type':_0x327041[_0x573a55('0xb')][_0x573a55('0x2')]};});_0x4f36b2[_0x366e3c('0x23')]=_['map'](_0x45470b,_0x366e3c('0x1d')),_0x4f36b2[_0x366e3c('0x3b')]=_['keys'](_0x31f8f8[_0x366e3c('0x3b')]),_0x4f36b2[_0x366e3c('0x20')]=_[_0x366e3c('0x1a')](_0x4f36b2[_0x366e3c('0x23')],_0x4f36b2[_0x366e3c('0x3b')]),_0x4eadff[_0x366e3c('0x54')]=_[_0x366e3c('0x1a')](_0x4f36b2[_0x366e3c('0x23')],qs[_0x366e3c('0x10')](_0x31f8f8['query'][_0x366e3c('0x10')])),_0x4eadff[_0x366e3c('0x54')]=_0x4eadff[_0x366e3c('0x54')][_0x366e3c('0x53')]?_0x4eadff[_0x366e3c('0x54')]:_0x4f36b2[_0x366e3c('0x23')];typeof _0x31f8f8['query'][_0x366e3c('0x43')]===_0x366e3c('0x11')&&(_0x4eadff[_0x366e3c('0x46')]=qs[_0x366e3c('0x46')](_0x31f8f8[_0x366e3c('0x3b')]['limit']),_0x4eadff[_0x366e3c('0x2c')]=qs[_0x366e3c('0x2c')](_0x31f8f8['query'][_0x366e3c('0x2c')]));_0x4eadff[_0x366e3c('0x36')]=qs['sort'](_0x31f8f8[_0x366e3c('0x3b')][_0x366e3c('0x4b')]),_0x4eadff[_0x366e3c('0x1b')]=qs[_0x366e3c('0x20')](_[_0x366e3c('0x39')](_0x31f8f8[_0x366e3c('0x3b')],_0x4f36b2['filters']),_0x45470b);_0x31f8f8[_0x366e3c('0x3b')]['filter']&&(_0x4eadff[_0x366e3c('0x1b')]=_[_0x366e3c('0x2b')](_0x4eadff[_0x366e3c('0x1b')],{[Op['or']]:_[_0x366e3c('0x40')](_0x45470b,function(_0x454e45){const _0x2db5eb=_0x366e3c;if(_0x454e45[_0x2db5eb('0xb')]!==_0x2db5eb('0x3d')){const _0x49d2be={};return _0x49d2be[_0x454e45['name']]={[Op[_0x2db5eb('0x2a')]]:'%'+_0x31f8f8[_0x2db5eb('0x3b')][_0x2db5eb('0xf')]+'%'},_0x49d2be;}})}));_0x4eadff=_[_0x366e3c('0x2b')]({},_0x4eadff,_0x31f8f8['options']);const _0x2d64ff={'where':_0x4eadff[_0x366e3c('0x1b')]};return db[_0x366e3c('0x22')][_0x366e3c('0x2f')](_0x2d64ff)['then'](function(_0x2b756b){const _0x585459=_0x366e3c;return _0x4a92de[_0x585459('0x2f')]=_0x2b756b,_0x31f8f8[_0x585459('0x3b')][_0x585459('0x56')]&&(_0x4eadff[_0x585459('0x44')]=[{'all':!![]}]),db[_0x585459('0x22')][_0x585459('0x13')](_0x4eadff);})['then'](function(_0x26b0de){const _0x5e2109=_0x366e3c;return _0x4a92de[_0x5e2109('0x3c')]=_0x26b0de,_0x4a92de;})['then'](respondWithFilteredResult(_0x4dce96,_0x4eadff))[_0x366e3c('0x12')](handleError(_0x4dce96,null));},exports[_0xb40445('0x4d')]=function(_0x3d7278,_0x4c78b9){const _0x268d3e=_0xb40445;let _0x2e3142={'raw':![],'where':{'id':_0x3d7278[_0x268d3e('0x24')]['id']}};const _0x3d8c14={};return _0x3d8c14[_0x268d3e('0x23')]=_[_0x268d3e('0x42')](db[_0x268d3e('0x22')][_0x268d3e('0x2e')]),_0x3d8c14[_0x268d3e('0x3b')]=_['keys'](_0x3d7278[_0x268d3e('0x3b')]),_0x3d8c14[_0x268d3e('0x20')]=_[_0x268d3e('0x1a')](_0x3d8c14[_0x268d3e('0x23')],_0x3d8c14['query']),_0x2e3142[_0x268d3e('0x54')]=_[_0x268d3e('0x1a')](_0x3d8c14['model'],qs['fields'](_0x3d7278[_0x268d3e('0x3b')][_0x268d3e('0x10')])),_0x2e3142[_0x268d3e('0x54')]=_0x2e3142['attributes'][_0x268d3e('0x53')]?_0x2e3142['attributes']:_0x3d8c14[_0x268d3e('0x23')],_0x3d7278['query'][_0x268d3e('0x56')]&&(_0x2e3142[_0x268d3e('0x44')]=[{'all':!![]}]),_0x2e3142=_[_0x268d3e('0x2b')]({},_0x2e3142,_0x3d7278[_0x268d3e('0x7')]),db[_0x268d3e('0x22')]['findOne'](_0x2e3142)[_0x268d3e('0x4')](handleEntityNotFound(_0x4c78b9,null))[_0x268d3e('0x4')](respondWithResult(_0x4c78b9,null))['catch'](handleError(_0x4c78b9,null));},exports[_0xb40445('0x1c')]=function(_0x21fea6,_0x8e6dc7){const _0x160690=_0xb40445;return _0x21fea6['body']['id']&&delete _0x21fea6['body']['id'],db[_0x160690('0x22')]['findOne']({'where':{'id':_0x21fea6[_0x160690('0x24')]['id']}})[_0x160690('0x4')](handleEntityNotFound(_0x8e6dc7,null))[_0x160690('0x4')](saveUpdates(_0x21fea6[_0x160690('0x27')],null))[_0x160690('0x4')](respondWithResult(_0x8e6dc7,null))[_0x160690('0x12')](handleError(_0x8e6dc7,null));},exports['create']=function(_0x522dd9,_0x49f118){const _0x3ade85=_0xb40445;return db[_0x3ade85('0x35')][_0x3ade85('0x30')](function(_0x3510f0){const _0xbbacd6=_0x3ade85;return _0x522dd9[_0xbbacd6('0x27')][_0xbbacd6('0x52')]===_0xbbacd6('0x9')&&(_0x522dd9[_0xbbacd6('0x27')][_0xbbacd6('0xe')]=path[_0xbbacd6('0x3')](config['root'],'server/files/moh',_0x522dd9[_0xbbacd6('0x27')][_0xbbacd6('0x1d')])),db[_0xbbacd6('0x22')][_0xbbacd6('0x3f')](_0x522dd9['body'],{'transaction':_0x3510f0})[_0xbbacd6('0x4')](function(_0x1045b5){const _0x27bda2=_0xbbacd6;_0x522dd9['body'][_0x27bda2('0x52')]===_0x27bda2('0x9')&&fs[_0x27bda2('0x31')](_0x1045b5[_0x27bda2('0xe')],parseInt('0777',0x8));const _0x4ec967=_0x522dd9[_0x27bda2('0x15')][_0x27bda2('0x4f')]({'plain':!![]});if(!_0x4ec967)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x4ec967[_0x27bda2('0x17')]==='user'){const _0x3efcc0=_0x1045b5[_0x27bda2('0x4f')]({'plain':!![]});return db[_0x27bda2('0x47')][_0x27bda2('0xc')]({'where':{'name':'MusicOnHolds','userProfileId':_0x4ec967[_0x27bda2('0x5a')]},'raw':!![]})[_0x27bda2('0x4')](function(_0x529ed5){const _0x2496c0=_0x27bda2;return _0x529ed5&&_0x529ed5[_0x2496c0('0x18')]===0x0?db['UserProfileResource'][_0x2496c0('0x3f')]({'name':_0x3efcc0['name'],'resourceId':_0x3efcc0['id'],'type':_0x529ed5[_0x2496c0('0x1d')],'sectionId':_0x529ed5['id']},{})[_0x2496c0('0x4')](function(){return _0x1045b5;}):_0x1045b5;})[_0x27bda2('0x12')](function(_0x407f36){const _0x3c067c=_0x27bda2;logger['error'](_0x3c067c('0x4c'),_0x407f36);});}return _0x1045b5;});})['then'](respondWithResult(_0x49f118,0xc9))['catch'](handleError(_0x49f118,null));},exports[_0xb40445('0x34')]=function(_0x1d93e5,_0x95169b){const _0x159058=_0xb40445;return db[_0x159058('0x22')][_0x159058('0xc')]({'where':{'id':_0x1d93e5[_0x159058('0x24')]['id']}})[_0x159058('0x4')](function(_0x39748d){const _0xacf5df=_0x159058;if(_0x39748d)return db[_0xacf5df('0x35')][_0xacf5df('0x30')](function(_0x946d6f){const _0x3bc70d=_0xacf5df;return _0x39748d[_0x3bc70d('0x34')]({'transaction':_0x946d6f,'raw':!![]})[_0x3bc70d('0x4')](function(_0x1b00ed){const _0x2e6d53=_0x3bc70d;return _0x1b00ed[_0x2e6d53('0xe')]&&(fs[_0x2e6d53('0x49')](_0x1b00ed['directory'])[_0x2e6d53('0x26')](function(_0x3ece78){const _0x3f5c46=_0x2e6d53;fs[_0x3f5c46('0x28')](path[_0x3f5c46('0x3')](_0x1b00ed[_0x3f5c46('0xe')],_0x3ece78));}),fs[_0x2e6d53('0x41')](_0x1b00ed[_0x2e6d53('0xe')])),_0x1b00ed;});})[_0xacf5df('0x12')](function(_0x6522a9){const _0x26029c=_0xacf5df;throw new ValidationError(_0x6522a9[_0x26029c('0x1f')]);});})[_0x159058('0x4')](handleEntityNotFound(_0x95169b,null))[_0x159058('0x4')](removeEntity(_0x95169b,null))[_0x159058('0x12')](handleError(_0x95169b,null));},exports[_0xb40445('0x1e')]=function(_0x25666a,_0xc28998){const _0x16a5a5=_0xb40445;return db[_0x16a5a5('0x35')][_0x16a5a5('0x30')](function(_0x5a05b1){const _0x23ef04=_0x16a5a5;let _0x528fed;return db[_0x23ef04('0x22')][_0x23ef04('0xc')]({'where':{'id':_0x25666a[_0x23ef04('0x24')]['id']}})[_0x23ef04('0x4')](function(_0x2d13a0){const _0x4d0ba1=_0x23ef04;if(_0x2d13a0)return _0x528fed=_0x2d13a0,_0x2d13a0[_0x4d0ba1('0x1e')](_0x25666a[_0x4d0ba1('0x27')]['id'],{'transaction':_0x5a05b1});})[_0x23ef04('0x4')](function(_0x5281b2){const _0x30e780=_0x23ef04;if(_0x5281b2)return db[_0x30e780('0x3a')]['findOne']({'where':{'id':_0x25666a[_0x30e780('0x27')]['id']},'attributes':['id',_0x30e780('0x1d'),_0x30e780('0x38'),'converted_format','createdAt'],'raw':!![]});})[_0x23ef04('0x4')](function(_0x48e8ef){const _0x55e8f1=_0x23ef04;if(_0x48e8ef){const _0x4873e2=path[_0x55e8f1('0x3')](config['root'],_0x55e8f1('0x0'),util[_0x55e8f1('0x5')](_0x55e8f1('0x19'),path[_0x55e8f1('0xd')](_0x48e8ef['save_name'],path['extname'](_0x48e8ef[_0x55e8f1('0x38')])),_0x48e8ef[_0x55e8f1('0x3e')])),_0x2788fa=path[_0x55e8f1('0x3')](config[_0x55e8f1('0x8')],_0x55e8f1('0x6'),_0x528fed[_0x55e8f1('0x1d')],util['format']('%s.%s',_0x48e8ef[_0x55e8f1('0x1d')],_0x48e8ef[_0x55e8f1('0x3e')]));return fs[_0x55e8f1('0x16')](_0x4873e2,_0x2788fa),_0x48e8ef;}})[_0x23ef04('0x12')](function(_0xa01b4){const _0x54598d=_0x23ef04;throw new ValidationError(_0xa01b4[_0x54598d('0x1f')]);});})['then'](handleEntityNotFound(_0xc28998,null))[_0x16a5a5('0x4')](respondWithResult(_0xc28998,0xc9))[_0x16a5a5('0x12')](handleError(_0xc28998,null));},exports[_0xb40445('0x45')]=function(_0x4b1a10,_0x2569f9){const _0xc6a16c=_0xb40445;return db[_0xc6a16c('0x35')][_0xc6a16c('0x30')](function(){const _0x4585a1=_0xc6a16c;let _0x31657e;return db[_0x4585a1('0x22')]['findOne']({'where':{'id':_0x4b1a10[_0x4585a1('0x24')]['id']}})[_0x4585a1('0x4')](handleEntityNotFound(_0x2569f9,null))[_0x4585a1('0x4')](function(_0x4e3401){const _0x1bbabe=_0x4585a1;if(_0x4e3401)return _0x31657e=_0x4e3401,_0x4e3401[_0x1bbabe('0x45')](_0x4b1a10[_0x1bbabe('0x24')][_0x1bbabe('0x21')]);})['then'](function(_0x38af86){const _0x132b20=_0x4585a1;if(_0x38af86)return db[_0x132b20('0x3a')][_0x132b20('0xc')]({'where':{'id':_0x4b1a10[_0x132b20('0x24')][_0x132b20('0x21')]},'attributes':['id',_0x132b20('0x1d'),_0x132b20('0x38'),_0x132b20('0x3e'),'createdAt'],'raw':!![]});})[_0x4585a1('0x4')](function(_0x30a704){const _0x335425=_0x4585a1;if(_0x30a704)return fs[_0x335425('0x28')](path[_0x335425('0x3')](_0x31657e[_0x335425('0xe')],util[_0x335425('0x5')](_0x335425('0x19'),_0x30a704[_0x335425('0x1d')],_0x30a704[_0x335425('0x3e')]))),_0x30a704;})['catch'](function(_0x5cebcf){const _0x4b7c50=_0x4585a1;throw new ValidationError(_0x5cebcf[_0x4b7c50('0x1f')]);});})['then'](handleEntityNotFound(_0x2569f9,null))[_0xc6a16c('0x4')](respondWithStatusCode(_0x2569f9,0xcc))[_0xc6a16c('0x12')](handleError(_0x2569f9,null));},exports['getSounds']=function(_0x58930a,_0x3e2ac8){const _0x2001f1=_0xb40445;let _0x439f1c={};const _0x49197f={};let _0x26def9,_0x360cd9;return db[_0x2001f1('0x22')][_0x2001f1('0xc')]({'where':{'id':_0x58930a['params']['id']}})[_0x2001f1('0x4')](handleEntityNotFound(_0x3e2ac8,null))[_0x2001f1('0x4')](function(_0x200ba8){const _0x29dc8a=_0x2001f1;if(_0x200ba8)return _0x26def9=_0x200ba8,_0x49197f[_0x29dc8a('0x23')]=_['keys'](db[_0x29dc8a('0x3a')][_0x29dc8a('0x2e')]),_0x49197f[_0x29dc8a('0x3b')]=_[_0x29dc8a('0x42')](_0x58930a[_0x29dc8a('0x3b')]),_0x49197f[_0x29dc8a('0x20')]=_[_0x29dc8a('0x1a')](_0x49197f[_0x29dc8a('0x23')],_0x49197f[_0x29dc8a('0x3b')]),_0x439f1c[_0x29dc8a('0x54')]=_['intersection'](_0x49197f[_0x29dc8a('0x23')],qs[_0x29dc8a('0x10')](_0x58930a['query'][_0x29dc8a('0x10')])),_0x439f1c['attributes']=_0x439f1c[_0x29dc8a('0x54')][_0x29dc8a('0x53')]?_0x439f1c[_0x29dc8a('0x54')]:_0x49197f[_0x29dc8a('0x23')],_0x439f1c[_0x29dc8a('0x36')]=qs[_0x29dc8a('0x4b')](_0x58930a['query'][_0x29dc8a('0x4b')]),_0x439f1c[_0x29dc8a('0x1b')]=qs[_0x29dc8a('0x20')](_[_0x29dc8a('0x39')](_0x58930a[_0x29dc8a('0x3b')],_0x49197f['filters'])),_0x58930a[_0x29dc8a('0x3b')]['filter']&&(_0x439f1c[_0x29dc8a('0x1b')]=_[_0x29dc8a('0x2b')](_0x439f1c['where'],{[Op['or']]:_['map'](_0x439f1c[_0x29dc8a('0x54')],function(_0x281cc2){const _0x2ad25f=_0x29dc8a,_0x31c3f6={};return _0x31c3f6[_0x281cc2]={[Op[_0x2ad25f('0x2a')]]:'%'+_0x58930a[_0x2ad25f('0x3b')][_0x2ad25f('0xf')]+'%'},_0x31c3f6;})})),_0x439f1c=_['merge']({},_0x439f1c,_0x58930a['options']),_0x26def9[_0x29dc8a('0x2d')](_0x439f1c);})[_0x2001f1('0x4')](function(_0x1ed6fe){const _0x4895b1=_0x2001f1;if(_0x1ed6fe)return _0x360cd9=_0x1ed6fe[_0x4895b1('0x53')],typeof _0x58930a[_0x4895b1('0x3b')][_0x4895b1('0x43')]===_0x4895b1('0x11')&&(_0x439f1c[_0x4895b1('0x46')]=qs[_0x4895b1('0x46')](_0x58930a[_0x4895b1('0x3b')][_0x4895b1('0x46')]),_0x439f1c[_0x4895b1('0x2c')]=qs[_0x4895b1('0x2c')](_0x58930a['query'][_0x4895b1('0x2c')])),_0x26def9[_0x4895b1('0x2d')](_0x439f1c);})[_0x2001f1('0x4')](function(_0x21c386){if(_0x21c386)return _0x21c386?{'count':_0x360cd9,'rows':_0x21c386}:null;})[_0x2001f1('0x4')](respondWithResult(_0x3e2ac8,null))[_0x2001f1('0x12')](handleError(_0x3e2ac8,null));}; \ No newline at end of file +const a742_0x59e4=['Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','create','../../components/parsers/qs','../../config/environment','include','VoiceMusicOnHold','forEach','format','UserProfileResource','keys','attributes','../../config/logger','limit','transaction','filter','count','findAll','then','findOne','message','status','%s.%s','where','catch','get','removeSound','key','error','fieldName','VIRTUAL','MusicOnHolds','body','end','0777','Sound','readdirSync','root','nolimit','../../mysqldb','destroy','fields','sequelize','type','mkdirSync','server/files/moh','id2','includeAll','role','order','basename','index','length','addSound','UserProfileSection','intersection','userProfileId','directory','sendStatus','api','map','user','json','rawAttributes','merge','save_name','mode','createdAt','autoAssociation','symlinkSync','rows','lodash','sort','undefined','server/files/sounds/converted','join','update','query','offset','options','files','converted_format','path','Unable\x20to\x20retrieve\x20the\x20current\x20user','rmdirSync','name','Content-Range','params','getSounds','filters','like','model'];(function(_0x2429ea,_0x59e471){const _0x352615=function(_0x107d45){while(--_0x107d45){_0x2429ea['push'](_0x2429ea['shift']());}};_0x352615(++_0x59e471);}(a742_0x59e4,0x6c));const a742_0x3526=function(_0x2429ea,_0x59e471){_0x2429ea=_0x2429ea-0x0;let _0x352615=a742_0x59e4[_0x2429ea];return _0x352615;};const _0x52e6cc=a742_0x3526;'use strict';const util=require('util'),path=require(_0x52e6cc('0x40')),fs=require('fs'),_=require(_0x52e6cc('0x35')),qs=require(_0x52e6cc('0x4c')),logger=require(_0x52e6cc('0x55'))(_0x52e6cc('0x29')),config=require(_0x52e6cc('0x4d')),db=require(_0x52e6cc('0x15'))['db'],{Op,ValidationError}=require(_0x52e6cc('0x18'));function respondWithStatusCode(_0x107d45,_0x2a3375){return _0x2a3375=_0x2a3375||0xcc,function(_0x5beeb0){const _0x1dc17f=a742_0x3526;if(_0x5beeb0)return _0x107d45[_0x1dc17f('0x28')](_0x2a3375);return _0x107d45[_0x1dc17f('0x3')](_0x2a3375)[_0x1dc17f('0xf')]();};}function respondWithResult(_0x146f74,_0x4c2e26){return _0x4c2e26=_0x4c2e26||0xc8,function(_0x311db6){const _0x425bb5=a742_0x3526;if(_0x311db6)return _0x146f74[_0x425bb5('0x3')](_0x4c2e26)[_0x425bb5('0x2c')](_0x311db6);};}function respondWithFilteredResult(_0x2f717c,_0x2d359c){return function(_0x5a5b2f){const _0x251739=a742_0x3526;if(_0x5a5b2f){const _0x3a41dd=_0x5a5b2f['count'],_0x330c0e=_0x2d359c['offset'];let _0x30f5fe=_0x2d359c[_0x251739('0x3c')]+_0x2d359c['limit'],_0x438623;return _0x30f5fe>=_0x3a41dd?(_0x30f5fe=_0x3a41dd,_0x438623=0xc8):_0x438623=0xce,_0x2f717c[_0x251739('0x3')](_0x438623),_0x2f717c['set'](_0x251739('0x44'),_0x330c0e+'-'+_0x30f5fe+'/'+_0x3a41dd)[_0x251739('0x2c')](_0x5a5b2f);}return null;};}function saveUpdates(_0x37674d){return function(_0x335f87){const _0x36afc1=a742_0x3526;if(_0x335f87)return _0x335f87[_0x36afc1('0x3a')](_0x37674d)['then'](function(_0x589fb9){return _0x589fb9;});return null;};}function removeEntity(_0x281b5e){return function(_0x595c5f){const _0x15ee07=a742_0x3526;if(_0x595c5f)return _0x595c5f[_0x15ee07('0x16')]()['then'](function(){const _0x45e3a1=_0x15ee07,_0x4eafdd=_0x595c5f[_0x45e3a1('0x7')]({'plain':!![]}),_0x3487a2=_0x45e3a1('0xd');return db[_0x45e3a1('0x52')][_0x45e3a1('0x16')]({'where':{'type':_0x3487a2,'resourceId':_0x4eafdd['id']}})['then'](function(){return _0x595c5f;});})['then'](function(){const _0x5ae9da=_0x15ee07;_0x281b5e['status'](0xcc)[_0x5ae9da('0xf')]();});};}function handleEntityNotFound(_0x38ee51){return function(_0x1e0934){const _0x444c38=a742_0x3526;return!_0x1e0934&&_0x38ee51[_0x444c38('0x28')](0x194),_0x1e0934;};}function handleError(_0x1ea406,_0x311d84){return _0x311d84=_0x311d84||0x1f4,function(_0x3668ec){const _0x39167c=a742_0x3526;logger['error'](_0x3668ec['stack']),_0x3668ec['name']&&delete _0x3668ec[_0x39167c('0x43')],_0x1ea406[_0x39167c('0x3')](_0x311d84)['send'](_0x3668ec);};}exports[_0x52e6cc('0x21')]=function(_0x9d3115,_0x3e108f){const _0x1315e3=_0x52e6cc;let _0x3bcd35={};const _0x489c39={},_0x51843a={'count':0x0,'rows':[]},_0x25141a=_[_0x1315e3('0x2a')](db[_0x1315e3('0x4f')][_0x1315e3('0x2d')],function(_0x4ba679){const _0x54b735=_0x1315e3;return{'name':_0x4ba679[_0x54b735('0xb')],'type':_0x4ba679[_0x54b735('0x19')][_0x54b735('0x9')]};});_0x489c39['model']=_['map'](_0x25141a,_0x1315e3('0x43')),_0x489c39[_0x1315e3('0x3b')]=_[_0x1315e3('0x53')](_0x9d3115[_0x1315e3('0x3b')]),_0x489c39[_0x1315e3('0x47')]=_[_0x1315e3('0x25')](_0x489c39[_0x1315e3('0x49')],_0x489c39[_0x1315e3('0x3b')]),_0x3bcd35[_0x1315e3('0x54')]=_[_0x1315e3('0x25')](_0x489c39[_0x1315e3('0x49')],qs[_0x1315e3('0x17')](_0x9d3115[_0x1315e3('0x3b')][_0x1315e3('0x17')])),_0x3bcd35[_0x1315e3('0x54')]=_0x3bcd35[_0x1315e3('0x54')]['length']?_0x3bcd35[_0x1315e3('0x54')]:_0x489c39['model'];typeof _0x9d3115[_0x1315e3('0x3b')][_0x1315e3('0x14')]==='undefined'&&(_0x3bcd35[_0x1315e3('0x56')]=qs['limit'](_0x9d3115[_0x1315e3('0x3b')][_0x1315e3('0x56')]),_0x3bcd35[_0x1315e3('0x3c')]=qs['offset'](_0x9d3115[_0x1315e3('0x3b')][_0x1315e3('0x3c')]));_0x3bcd35[_0x1315e3('0x1f')]=qs[_0x1315e3('0x36')](_0x9d3115[_0x1315e3('0x3b')][_0x1315e3('0x36')]),_0x3bcd35[_0x1315e3('0x5')]=qs[_0x1315e3('0x47')](_['pick'](_0x9d3115[_0x1315e3('0x3b')],_0x489c39[_0x1315e3('0x47')]),_0x25141a);_0x9d3115[_0x1315e3('0x3b')][_0x1315e3('0x58')]&&(_0x3bcd35['where']=_['merge'](_0x3bcd35[_0x1315e3('0x5')],{[Op['or']]:_['map'](_0x25141a,function(_0x7216fa){const _0x4aa51e=_0x1315e3;if(_0x7216fa[_0x4aa51e('0x19')]!==_0x4aa51e('0xc')){const _0x55345c={};return _0x55345c[_0x7216fa['name']]={[Op[_0x4aa51e('0x48')]]:'%'+_0x9d3115[_0x4aa51e('0x3b')][_0x4aa51e('0x58')]+'%'},_0x55345c;}})}));_0x3bcd35=_[_0x1315e3('0x2e')]({},_0x3bcd35,_0x9d3115[_0x1315e3('0x3d')]);const _0x2f3e1a={'where':_0x3bcd35[_0x1315e3('0x5')]};return db[_0x1315e3('0x4f')][_0x1315e3('0x59')](_0x2f3e1a)['then'](function(_0x40b5ff){const _0x16c0bc=_0x1315e3;return _0x51843a[_0x16c0bc('0x59')]=_0x40b5ff,_0x9d3115[_0x16c0bc('0x3b')]['includeAll']&&(_0x3bcd35[_0x16c0bc('0x4e')]=[{'all':!![]}]),db[_0x16c0bc('0x4f')][_0x16c0bc('0x5a')](_0x3bcd35);})[_0x1315e3('0x0')](function(_0x72d42){const _0x341466=_0x1315e3;return _0x51843a[_0x341466('0x34')]=_0x72d42,_0x51843a;})[_0x1315e3('0x0')](respondWithFilteredResult(_0x3e108f,_0x3bcd35))['catch'](handleError(_0x3e108f,null));},exports['show']=function(_0xa07905,_0x4b3cb1){const _0x578f4d=_0x52e6cc;let _0x5cada1={'raw':![],'where':{'id':_0xa07905['params']['id']}};const _0x3c5c22={};return _0x3c5c22[_0x578f4d('0x49')]=_['keys'](db[_0x578f4d('0x4f')][_0x578f4d('0x2d')]),_0x3c5c22[_0x578f4d('0x3b')]=_[_0x578f4d('0x53')](_0xa07905['query']),_0x3c5c22[_0x578f4d('0x47')]=_['intersection'](_0x3c5c22[_0x578f4d('0x49')],_0x3c5c22[_0x578f4d('0x3b')]),_0x5cada1['attributes']=_[_0x578f4d('0x25')](_0x3c5c22[_0x578f4d('0x49')],qs[_0x578f4d('0x17')](_0xa07905[_0x578f4d('0x3b')][_0x578f4d('0x17')])),_0x5cada1[_0x578f4d('0x54')]=_0x5cada1[_0x578f4d('0x54')]['length']?_0x5cada1[_0x578f4d('0x54')]:_0x3c5c22[_0x578f4d('0x49')],_0xa07905[_0x578f4d('0x3b')][_0x578f4d('0x1d')]&&(_0x5cada1[_0x578f4d('0x4e')]=[{'all':!![]}]),_0x5cada1=_[_0x578f4d('0x2e')]({},_0x5cada1,_0xa07905['options']),db[_0x578f4d('0x4f')][_0x578f4d('0x1')](_0x5cada1)[_0x578f4d('0x0')](handleEntityNotFound(_0x4b3cb1,null))[_0x578f4d('0x0')](respondWithResult(_0x4b3cb1,null))[_0x578f4d('0x6')](handleError(_0x4b3cb1,null));},exports[_0x52e6cc('0x3a')]=function(_0x2a408c,_0x192f70){const _0x4eb25d=_0x52e6cc;return _0x2a408c['body']['id']&&delete _0x2a408c[_0x4eb25d('0xe')]['id'],db['VoiceMusicOnHold'][_0x4eb25d('0x1')]({'where':{'id':_0x2a408c[_0x4eb25d('0x45')]['id']}})[_0x4eb25d('0x0')](handleEntityNotFound(_0x192f70,null))[_0x4eb25d('0x0')](saveUpdates(_0x2a408c[_0x4eb25d('0xe')],null))[_0x4eb25d('0x0')](respondWithResult(_0x192f70,null))[_0x4eb25d('0x6')](handleError(_0x192f70,null));},exports['create']=function(_0x440e05,_0x38fc6d){const _0x9bb645=_0x52e6cc;return db[_0x9bb645('0x18')][_0x9bb645('0x57')](function(_0x47d3e3){const _0x12b9f1=_0x9bb645;return _0x440e05['body'][_0x12b9f1('0x30')]===_0x12b9f1('0x3e')&&(_0x440e05[_0x12b9f1('0xe')][_0x12b9f1('0x27')]=path[_0x12b9f1('0x39')](config[_0x12b9f1('0x13')],'server/files/moh',_0x440e05[_0x12b9f1('0xe')][_0x12b9f1('0x43')])),db[_0x12b9f1('0x4f')][_0x12b9f1('0x4b')](_0x440e05[_0x12b9f1('0xe')],{'transaction':_0x47d3e3})['then'](function(_0x202293){const _0x4cd6b0=_0x12b9f1;_0x440e05['body'][_0x4cd6b0('0x30')]===_0x4cd6b0('0x3e')&&fs[_0x4cd6b0('0x1a')](_0x202293['directory'],parseInt(_0x4cd6b0('0x10'),0x8));const _0x2b8647=_0x440e05['user'][_0x4cd6b0('0x7')]({'plain':!![]});if(!_0x2b8647)throw new Error(_0x4cd6b0('0x41'));if(_0x2b8647[_0x4cd6b0('0x1e')]===_0x4cd6b0('0x2b')){const _0x42add0=_0x202293[_0x4cd6b0('0x7')]({'plain':!![]});return db[_0x4cd6b0('0x24')][_0x4cd6b0('0x1')]({'where':{'name':_0x4cd6b0('0xd'),'userProfileId':_0x2b8647[_0x4cd6b0('0x26')]},'raw':!![]})[_0x4cd6b0('0x0')](function(_0x51cc57){const _0xe0ef58=_0x4cd6b0;return _0x51cc57&&_0x51cc57[_0xe0ef58('0x32')]===0x0?db[_0xe0ef58('0x52')]['create']({'name':_0x42add0[_0xe0ef58('0x43')],'resourceId':_0x42add0['id'],'type':_0x51cc57[_0xe0ef58('0x43')],'sectionId':_0x51cc57['id']},{})[_0xe0ef58('0x0')](function(){return _0x202293;}):_0x202293;})['catch'](function(_0x442215){const _0x17d3d9=_0x4cd6b0;logger[_0x17d3d9('0xa')](_0x17d3d9('0x4a'),_0x442215);});}return _0x202293;});})[_0x9bb645('0x0')](respondWithResult(_0x38fc6d,0xc9))['catch'](handleError(_0x38fc6d,null));},exports[_0x52e6cc('0x16')]=function(_0x225fce,_0x2e5458){const _0x1a8a7d=_0x52e6cc;return db[_0x1a8a7d('0x4f')][_0x1a8a7d('0x1')]({'where':{'id':_0x225fce[_0x1a8a7d('0x45')]['id']}})[_0x1a8a7d('0x0')](function(_0x5d2679){const _0x5abddc=_0x1a8a7d;if(_0x5d2679)return db[_0x5abddc('0x18')][_0x5abddc('0x57')](function(_0x3fb8e5){const _0xedd853=_0x5abddc;return _0x5d2679[_0xedd853('0x16')]({'transaction':_0x3fb8e5,'raw':!![]})[_0xedd853('0x0')](function(_0xd6c772){const _0x1aee88=_0xedd853;return _0xd6c772['directory']&&(fs[_0x1aee88('0x12')](_0xd6c772['directory'])[_0x1aee88('0x50')](function(_0x439fdc){fs['unlinkSync'](path['join'](_0xd6c772['directory'],_0x439fdc));}),fs[_0x1aee88('0x42')](_0xd6c772[_0x1aee88('0x27')])),_0xd6c772;});})[_0x5abddc('0x6')](function(_0x4a83cc){const _0x496cc3=_0x5abddc;throw new ValidationError(_0x4a83cc[_0x496cc3('0x2')]);});})['then'](handleEntityNotFound(_0x2e5458,null))[_0x1a8a7d('0x0')](removeEntity(_0x2e5458,null))['catch'](handleError(_0x2e5458,null));},exports[_0x52e6cc('0x23')]=function(_0x4036fa,_0x2ac5ca){const _0x4e36b9=_0x52e6cc;return db[_0x4e36b9('0x18')][_0x4e36b9('0x57')](function(_0x5ed4d0){const _0x27376a=_0x4e36b9;let _0x5e68bf;return db['VoiceMusicOnHold']['findOne']({'where':{'id':_0x4036fa[_0x27376a('0x45')]['id']}})[_0x27376a('0x0')](function(_0x505891){const _0x390da5=_0x27376a;if(_0x505891)return _0x5e68bf=_0x505891,_0x505891[_0x390da5('0x23')](_0x4036fa[_0x390da5('0xe')]['id'],{'transaction':_0x5ed4d0});})['then'](function(_0x5bed10){const _0x6cd77a=_0x27376a;if(_0x5bed10)return db[_0x6cd77a('0x11')][_0x6cd77a('0x1')]({'where':{'id':_0x4036fa[_0x6cd77a('0xe')]['id']},'attributes':['id','name',_0x6cd77a('0x2f'),_0x6cd77a('0x3f'),_0x6cd77a('0x31')],'raw':!![]});})['then'](function(_0xc80e18){const _0x290981=_0x27376a;if(_0xc80e18){const _0x55e1f6=path[_0x290981('0x39')](config[_0x290981('0x13')],_0x290981('0x38'),util['format'](_0x290981('0x4'),path[_0x290981('0x20')](_0xc80e18[_0x290981('0x2f')],path['extname'](_0xc80e18['save_name'])),_0xc80e18['converted_format'])),_0x4b4ca3=path[_0x290981('0x39')](config[_0x290981('0x13')],_0x290981('0x1b'),_0x5e68bf[_0x290981('0x43')],util[_0x290981('0x51')](_0x290981('0x4'),_0xc80e18['name'],_0xc80e18[_0x290981('0x3f')]));return fs[_0x290981('0x33')](_0x55e1f6,_0x4b4ca3),_0xc80e18;}})[_0x27376a('0x6')](function(_0x3a260c){const _0x306840=_0x27376a;throw new ValidationError(_0x3a260c[_0x306840('0x2')]);});})[_0x4e36b9('0x0')](handleEntityNotFound(_0x2ac5ca,null))['then'](respondWithResult(_0x2ac5ca,0xc9))[_0x4e36b9('0x6')](handleError(_0x2ac5ca,null));},exports[_0x52e6cc('0x8')]=function(_0x5ef412,_0x2dfc37){const _0x1e7f23=_0x52e6cc;return db[_0x1e7f23('0x18')]['transaction'](function(){const _0x431aee=_0x1e7f23;let _0x3a49a5;return db[_0x431aee('0x4f')][_0x431aee('0x1')]({'where':{'id':_0x5ef412[_0x431aee('0x45')]['id']}})[_0x431aee('0x0')](handleEntityNotFound(_0x2dfc37,null))[_0x431aee('0x0')](function(_0x2fdf38){const _0x1bf8b4=_0x431aee;if(_0x2fdf38)return _0x3a49a5=_0x2fdf38,_0x2fdf38[_0x1bf8b4('0x8')](_0x5ef412[_0x1bf8b4('0x45')][_0x1bf8b4('0x1c')]);})[_0x431aee('0x0')](function(_0x5062e3){const _0xf84244=_0x431aee;if(_0x5062e3)return db['Sound']['findOne']({'where':{'id':_0x5ef412[_0xf84244('0x45')]['id2']},'attributes':['id',_0xf84244('0x43'),'save_name','converted_format',_0xf84244('0x31')],'raw':!![]});})[_0x431aee('0x0')](function(_0x24ba64){const _0x333fa3=_0x431aee;if(_0x24ba64)return fs['unlinkSync'](path[_0x333fa3('0x39')](_0x3a49a5[_0x333fa3('0x27')],util[_0x333fa3('0x51')](_0x333fa3('0x4'),_0x24ba64[_0x333fa3('0x43')],_0x24ba64[_0x333fa3('0x3f')]))),_0x24ba64;})['catch'](function(_0x46d17b){const _0x42fead=_0x431aee;throw new ValidationError(_0x46d17b[_0x42fead('0x2')]);});})[_0x1e7f23('0x0')](handleEntityNotFound(_0x2dfc37,null))[_0x1e7f23('0x0')](respondWithStatusCode(_0x2dfc37,0xcc))[_0x1e7f23('0x6')](handleError(_0x2dfc37,null));},exports[_0x52e6cc('0x46')]=function(_0x49a71a,_0x2907b8){const _0x303072=_0x52e6cc;let _0x30a569={};const _0x1d8629={};let _0x41f26,_0x5be076;return db[_0x303072('0x4f')][_0x303072('0x1')]({'where':{'id':_0x49a71a['params']['id']}})[_0x303072('0x0')](handleEntityNotFound(_0x2907b8,null))[_0x303072('0x0')](function(_0x4fd34b){const _0x5d2fc7=_0x303072;if(_0x4fd34b)return _0x41f26=_0x4fd34b,_0x1d8629[_0x5d2fc7('0x49')]=_[_0x5d2fc7('0x53')](db[_0x5d2fc7('0x11')][_0x5d2fc7('0x2d')]),_0x1d8629['query']=_['keys'](_0x49a71a[_0x5d2fc7('0x3b')]),_0x1d8629[_0x5d2fc7('0x47')]=_[_0x5d2fc7('0x25')](_0x1d8629[_0x5d2fc7('0x49')],_0x1d8629['query']),_0x30a569[_0x5d2fc7('0x54')]=_[_0x5d2fc7('0x25')](_0x1d8629['model'],qs['fields'](_0x49a71a[_0x5d2fc7('0x3b')][_0x5d2fc7('0x17')])),_0x30a569[_0x5d2fc7('0x54')]=_0x30a569['attributes'][_0x5d2fc7('0x22')]?_0x30a569[_0x5d2fc7('0x54')]:_0x1d8629[_0x5d2fc7('0x49')],_0x30a569['order']=qs[_0x5d2fc7('0x36')](_0x49a71a['query'][_0x5d2fc7('0x36')]),_0x30a569[_0x5d2fc7('0x5')]=qs['filters'](_['pick'](_0x49a71a['query'],_0x1d8629[_0x5d2fc7('0x47')])),_0x49a71a[_0x5d2fc7('0x3b')][_0x5d2fc7('0x58')]&&(_0x30a569[_0x5d2fc7('0x5')]=_[_0x5d2fc7('0x2e')](_0x30a569[_0x5d2fc7('0x5')],{[Op['or']]:_[_0x5d2fc7('0x2a')](_0x30a569[_0x5d2fc7('0x54')],function(_0x379074){const _0x5704b7=_0x5d2fc7,_0x26295b={};return _0x26295b[_0x379074]={[Op[_0x5704b7('0x48')]]:'%'+_0x49a71a[_0x5704b7('0x3b')][_0x5704b7('0x58')]+'%'},_0x26295b;})})),_0x30a569=_[_0x5d2fc7('0x2e')]({},_0x30a569,_0x49a71a[_0x5d2fc7('0x3d')]),_0x41f26[_0x5d2fc7('0x46')](_0x30a569);})['then'](function(_0x12299e){const _0x2b7846=_0x303072;if(_0x12299e)return _0x5be076=_0x12299e['length'],typeof _0x49a71a[_0x2b7846('0x3b')][_0x2b7846('0x14')]===_0x2b7846('0x37')&&(_0x30a569[_0x2b7846('0x56')]=qs[_0x2b7846('0x56')](_0x49a71a[_0x2b7846('0x3b')][_0x2b7846('0x56')]),_0x30a569[_0x2b7846('0x3c')]=qs['offset'](_0x49a71a[_0x2b7846('0x3b')]['offset'])),_0x41f26[_0x2b7846('0x46')](_0x30a569);})[_0x303072('0x0')](function(_0x5a8bf){if(_0x5a8bf)return _0x5a8bf?{'count':_0x5be076,'rows':_0x5a8bf}:null;})['then'](respondWithResult(_0x2907b8,null))[_0x303072('0x6')](handleError(_0x2907b8,null));}; \ No newline at end of file diff --git a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js index f3848b8..9e536cb 100644 --- a/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js +++ b/server/api/voiceMusicOnHold/voiceMusicOnHold.model.js @@ -1 +1 @@ -const a743_0xd6cf=['voice_musiconhold','VoiceMusicOnHold','./voiceMusicOnHold.attributes','define'];(function(_0x56beea,_0xd6cff0){const _0x50cb52=function(_0x387f63){while(--_0x387f63){_0x56beea['push'](_0x56beea['shift']());}};_0x50cb52(++_0xd6cff0);}(a743_0xd6cf,0x8a));const a743_0x50cb=function(_0x56beea,_0xd6cff0){_0x56beea=_0x56beea-0x0;let _0x50cb52=a743_0xd6cf[_0x56beea];return _0x50cb52;};const _0x3e36a7=a743_0x50cb;'use strict';const attributes=require(_0x3e36a7('0x0'));module['exports']=function(_0x387f63){const _0x35ed87=_0x3e36a7,_0x3335a7=_0x387f63[_0x35ed87('0x1')](_0x35ed87('0x3'),attributes,{'tableName':_0x35ed87('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x3335a7;}; \ No newline at end of file +const a743_0x3bb1=['voice_musiconhold','define','./voiceMusicOnHold.attributes','exports','VoiceMusicOnHold'];(function(_0x305916,_0x3bb121){const _0x2bf662=function(_0x5b1144){while(--_0x5b1144){_0x305916['push'](_0x305916['shift']());}};_0x2bf662(++_0x3bb121);}(a743_0x3bb1,0xee));const a743_0x2bf6=function(_0x305916,_0x3bb121){_0x305916=_0x305916-0x0;let _0x2bf662=a743_0x3bb1[_0x305916];return _0x2bf662;};const _0x8545e4=a743_0x2bf6;'use strict';const attributes=require(_0x8545e4('0x4'));module[_0x8545e4('0x0')]=function(_0x5b1144){const _0x58129a=_0x8545e4,_0x367651=_0x5b1144[_0x58129a('0x3')](_0x58129a('0x1'),attributes,{'tableName':_0x58129a('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x367651;}; \ No newline at end of file diff --git a/server/api/voicePrefix/index.js b/server/api/voicePrefix/index.js index 874ded7..99e106c 100644 --- a/server/api/voicePrefix/index.js +++ b/server/api/voicePrefix/index.js @@ -1 +1 @@ -const a744_0x2617=['exports','Router','../../components/auth/service','isAuthenticated','put','destroy','post','addAgents','/describe','delete','describe','update','/:id','get','removeAgents','/:id/users'];(function(_0x4f1b6b,_0x26171e){const _0x549130=function(_0x5c4fe1){while(--_0x5c4fe1){_0x4f1b6b['push'](_0x4f1b6b['shift']());}};_0x549130(++_0x26171e);}(a744_0x2617,0x1eb));const a744_0x5491=function(_0x4f1b6b,_0x26171e){_0x4f1b6b=_0x4f1b6b-0x0;let _0x549130=a744_0x2617[_0x4f1b6b];return _0x549130;};const _0x254818=a744_0x5491;'use strict';const express=require('express'),router=express[_0x254818('0x6')](),auth=require(_0x254818('0x7')),controller=require('./voicePrefix.controller');router[_0x254818('0x2')]('/',auth[_0x254818('0x8')](),controller['index']),router[_0x254818('0x2')](_0x254818('0xd'),auth[_0x254818('0x8')](),controller[_0x254818('0xf')]),router[_0x254818('0x2')](_0x254818('0x1'),auth[_0x254818('0x8')](),controller['show']),router[_0x254818('0x2')](_0x254818('0x4'),auth[_0x254818('0x8')](),controller['getAgents']),router[_0x254818('0xb')]('/',auth[_0x254818('0x8')](),controller['create']),router[_0x254818('0xb')](_0x254818('0x4'),auth[_0x254818('0x8')](),controller[_0x254818('0xc')]),router[_0x254818('0x9')]('/:id',auth[_0x254818('0x8')](),controller[_0x254818('0x0')]),router[_0x254818('0xe')]('/:id',auth[_0x254818('0x8')](),controller[_0x254818('0xa')]),router[_0x254818('0xe')](_0x254818('0x4'),auth[_0x254818('0x8')](),controller[_0x254818('0x3')]),module[_0x254818('0x5')]=router; \ No newline at end of file +const a744_0x1173=['/describe','update','/:id/users','/:id','create','express','delete','isAuthenticated','exports','addAgents','destroy','put','index','removeAgents','post','./voicePrefix.controller','get'];(function(_0x590cb6,_0x117331){const _0x3f5617=function(_0x284c74){while(--_0x284c74){_0x590cb6['push'](_0x590cb6['shift']());}};_0x3f5617(++_0x117331);}(a744_0x1173,0xa4));const a744_0x3f56=function(_0x590cb6,_0x117331){_0x590cb6=_0x590cb6-0x0;let _0x3f5617=a744_0x1173[_0x590cb6];return _0x3f5617;};const _0x274633=a744_0x3f56;'use strict';const express=require(_0x274633('0xb')),router=express['Router'](),auth=require('../../components/auth/service'),controller=require(_0x274633('0x4'));router[_0x274633('0x5')]('/',auth[_0x274633('0xd')](),controller[_0x274633('0x1')]),router[_0x274633('0x5')](_0x274633('0x6'),auth[_0x274633('0xd')](),controller['describe']),router[_0x274633('0x5')](_0x274633('0x9'),auth[_0x274633('0xd')](),controller['show']),router['get']('/:id/users',auth[_0x274633('0xd')](),controller['getAgents']),router[_0x274633('0x3')]('/',auth['isAuthenticated'](),controller[_0x274633('0xa')]),router[_0x274633('0x3')](_0x274633('0x8'),auth[_0x274633('0xd')](),controller[_0x274633('0xf')]),router[_0x274633('0x0')](_0x274633('0x9'),auth[_0x274633('0xd')](),controller[_0x274633('0x7')]),router[_0x274633('0xc')]('/:id',auth[_0x274633('0xd')](),controller[_0x274633('0x10')]),router[_0x274633('0xc')](_0x274633('0x8'),auth[_0x274633('0xd')](),controller[_0x274633('0x2')]),module[_0x274633('0xe')]=router; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.attributes.js b/server/api/voicePrefix/voicePrefix.attributes.js index 6f65016..3334f11 100644 --- a/server/api/voicePrefix/voicePrefix.attributes.js +++ b/server/api/voicePrefix/voicePrefix.attributes.js @@ -1 +1 @@ -const a745_0x4717=['name','getDataValue','STRING','sequelize','INTEGER'];(function(_0x376775,_0x471731){const _0x4ef533=function(_0x477bbd){while(--_0x477bbd){_0x376775['push'](_0x376775['shift']());}};_0x4ef533(++_0x471731);}(a745_0x4717,0x18c));const a745_0x4ef5=function(_0x376775,_0x471731){_0x376775=_0x376775-0x0;let _0x4ef533=a745_0x4717[_0x376775];return _0x4ef533;};const _0x3d9126=a745_0x4ef5;'use strict';const Sequelize=require(_0x3d9126('0x2'));module['exports']={'name':{'type':Sequelize[_0x3d9126('0x1')],'allowNull':![],'unique':'name'},'prefix':{'type':Sequelize['VIRTUAL'],'get':function(){const _0x15f3b2=_0x3d9126;return'system-'+this[_0x15f3b2('0x0')](_0x15f3b2('0x4'))+'-';}},'description':{'type':Sequelize[_0x3d9126('0x1')]},'callerIdAll':{'type':Sequelize[_0x3d9126('0x1')]},'VoiceExtensionId':{'type':Sequelize[_0x3d9126('0x3')]}}; \ No newline at end of file +const a745_0xcc2a=['system-','name','STRING','VIRTUAL','exports'];(function(_0x55846f,_0xcc2aad){const _0x387bcc=function(_0x579176){while(--_0x579176){_0x55846f['push'](_0x55846f['shift']());}};_0x387bcc(++_0xcc2aad);}(a745_0xcc2a,0x136));const a745_0x387b=function(_0x55846f,_0xcc2aad){_0x55846f=_0x55846f-0x0;let _0x387bcc=a745_0xcc2a[_0x55846f];return _0x387bcc;};const _0x11ed8c=a745_0x387b;'use strict';const Sequelize=require('sequelize');module[_0x11ed8c('0x4')]={'name':{'type':Sequelize[_0x11ed8c('0x2')],'allowNull':![],'unique':_0x11ed8c('0x1')},'prefix':{'type':Sequelize[_0x11ed8c('0x3')],'get':function(){const _0x4095c7=_0x11ed8c;return _0x4095c7('0x0')+this['getDataValue']('name')+'-';}},'description':{'type':Sequelize[_0x11ed8c('0x2')]},'callerIdAll':{'type':Sequelize['STRING']},'VoiceExtensionId':{'type':Sequelize['INTEGER']}}; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.controller.js b/server/api/voicePrefix/voicePrefix.controller.js index 00e0adb..6039c94 100644 --- a/server/api/voicePrefix/voicePrefix.controller.js +++ b/server/api/voicePrefix/voicePrefix.controller.js @@ -1 +1 @@ -const a746_0x2f69=['update','UserProfileResource','rawAttributes','./voicePrefix.socket','PREFIX-CALLERIDALL=','body','get','model','Set','includeAll','VoicePrefix','description','query','No\x20callerid\x20available','autoAssociation','emit','sequelize','api','send','userProfileId','key','destroy','VoicePrefixes','like','lodash','map','system-','goto','VIRTUAL','priority','type','fields','then','user','filter','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','where','catch','json','offset','options','VoicePrefixId','limit','Content-Range','../../components/parsers/qs','userVoicePrefix:remove','role','pick','getAgents','addAgents','params','NoOp','findOne','User','create','sendStatus','nolimit','fieldName','CDR(prefix)=','attributes','show','count','rows','UserProfileSection','include','ids','merge','keys','omit','bulkCreate','error','intersection','push','undefined','length','filters','VoiceExtension','${EXTEN:','sort','context','charAt','prefix','app','status','from-sip','register','findAll','index','callerIdAll','end','name','stack','Voice\x20Prefix'];(function(_0xa30956,_0x2f692b){const _0x566f1c=function(_0x1b77e4){while(--_0x1b77e4){_0xa30956['push'](_0xa30956['shift']());}};_0x566f1c(++_0x2f692b);}(a746_0x2f69,0x110));const a746_0x566f=function(_0xa30956,_0x2f692b){_0xa30956=_0xa30956-0x0;let _0x566f1c=a746_0x2f69[_0xa30956];return _0x566f1c;};const _0x4f352d=a746_0x566f;'use strict';const _=require(_0x4f352d('0x1f')),qs=require(_0x4f352d('0x33')),logger=require('../../config/logger')(_0x4f352d('0x18')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x4f352d('0xa'))[_0x4f352d('0x5c')](socket);function respondWithStatusCode(_0x1b77e4,_0x5c45ce){return _0x5c45ce=_0x5c45ce||0xcc,function(_0x521114){const _0x1c274b=a746_0x566f;if(_0x521114)return _0x1b77e4[_0x1c274b('0x3e')](_0x5c45ce);return _0x1b77e4[_0x1c274b('0x5a')](_0x5c45ce)[_0x1c274b('0x3')]();};}function respondWithResult(_0x1def9e,_0x11ced8){return _0x11ced8=_0x11ced8||0xc8,function(_0x5414d7){if(_0x5414d7)return _0x1def9e['status'](_0x11ced8)['json'](_0x5414d7);};}function respondWithFilteredResult(_0x218605,_0x5ccc92){return function(_0x47d627){const _0x2ccc45=a746_0x566f;if(_0x47d627){const _0x33bdfc=_0x47d627['count'],_0x5802f1=_0x5ccc92[_0x2ccc45('0x2e')];let _0x4f59a1=_0x5ccc92[_0x2ccc45('0x2e')]+_0x5ccc92[_0x2ccc45('0x31')],_0x230b13;return _0x4f59a1>=_0x33bdfc?(_0x4f59a1=_0x33bdfc,_0x230b13=0xc8):_0x230b13=0xce,_0x218605[_0x2ccc45('0x5a')](_0x230b13),_0x218605['set'](_0x2ccc45('0x32'),_0x5802f1+'-'+_0x4f59a1+'/'+_0x33bdfc)[_0x2ccc45('0x2d')](_0x47d627);}return null;};}function removeEntity(_0xf02351){return function(_0x4e3374){const _0x20d144=a746_0x566f;if(_0x4e3374)return _0x4e3374['destroy']()[_0x20d144('0x27')](function(){const _0x49f0d0=_0x20d144,_0x5108f2=_0x4e3374[_0x49f0d0('0xd')]({'plain':!![]}),_0x40f6aa=_0x49f0d0('0x1d');return db[_0x49f0d0('0x8')][_0x49f0d0('0x1c')]({'where':{'type':_0x40f6aa,'resourceId':_0x5108f2['id']}})['then'](function(){return _0x4e3374;});})[_0x20d144('0x27')](function(){const _0x2a1848=_0x20d144;_0xf02351[_0x2a1848('0x5a')](0xcc)[_0x2a1848('0x3')]();});};}function handleEntityNotFound(_0x288de1){return function(_0x243d8b){const _0x4de937=a746_0x566f;return!_0x243d8b&&_0x288de1[_0x4de937('0x3e')](0x194),_0x243d8b;};}function handleError(_0xbb9301,_0x10916b){return _0x10916b=_0x10916b||0x1f4,function(_0x3b6aad){const _0xf4e07c=a746_0x566f;logger[_0xf4e07c('0x4d')](_0x3b6aad[_0xf4e07c('0x5')]),_0x3b6aad[_0xf4e07c('0x4')]&&delete _0x3b6aad['name'],_0xbb9301[_0xf4e07c('0x5a')](_0x10916b)[_0xf4e07c('0x19')](_0x3b6aad);};}exports[_0x4f352d('0x1')]=function(_0x10e741,_0x566f13){const _0x1fcfe7=_0x4f352d;let _0x14d53f={};const _0x1174cf={},_0x5997b2={'count':0x0,'rows':[]},_0x32f280=_[_0x1fcfe7('0x20')](db[_0x1fcfe7('0x11')]['rawAttributes'],function(_0x1666d2){const _0x3b9ed0=_0x1fcfe7;return{'name':_0x1666d2[_0x3b9ed0('0x40')],'type':_0x1666d2[_0x3b9ed0('0x25')][_0x3b9ed0('0x1b')]};});_0x1174cf[_0x1fcfe7('0xe')]=_[_0x1fcfe7('0x20')](_0x32f280,_0x1fcfe7('0x4')),_0x1174cf[_0x1fcfe7('0x13')]=_[_0x1fcfe7('0x4a')](_0x10e741[_0x1fcfe7('0x13')]),_0x1174cf[_0x1fcfe7('0x52')]=_[_0x1fcfe7('0x4e')](_0x1174cf[_0x1fcfe7('0xe')],_0x1174cf[_0x1fcfe7('0x13')]),_0x14d53f[_0x1fcfe7('0x42')]=_[_0x1fcfe7('0x4e')](_0x1174cf[_0x1fcfe7('0xe')],qs[_0x1fcfe7('0x26')](_0x10e741[_0x1fcfe7('0x13')][_0x1fcfe7('0x26')])),_0x14d53f[_0x1fcfe7('0x42')]=_0x14d53f[_0x1fcfe7('0x42')][_0x1fcfe7('0x51')]?_0x14d53f[_0x1fcfe7('0x42')]:_0x1174cf[_0x1fcfe7('0xe')];typeof _0x10e741[_0x1fcfe7('0x13')][_0x1fcfe7('0x3f')]==='undefined'&&(_0x14d53f[_0x1fcfe7('0x31')]=qs[_0x1fcfe7('0x31')](_0x10e741[_0x1fcfe7('0x13')][_0x1fcfe7('0x31')]),_0x14d53f[_0x1fcfe7('0x2e')]=qs['offset'](_0x10e741['query'][_0x1fcfe7('0x2e')]));_0x14d53f['order']=qs[_0x1fcfe7('0x55')](_0x10e741[_0x1fcfe7('0x13')][_0x1fcfe7('0x55')]),_0x14d53f[_0x1fcfe7('0x2b')]=qs['filters'](_[_0x1fcfe7('0x36')](_0x10e741['query'],_0x1174cf['filters']),_0x32f280);_0x10e741[_0x1fcfe7('0x13')][_0x1fcfe7('0x29')]&&(_0x14d53f[_0x1fcfe7('0x2b')]=_[_0x1fcfe7('0x49')](_0x14d53f[_0x1fcfe7('0x2b')],{[Op['or']]:_[_0x1fcfe7('0x20')](_0x32f280,function(_0x5ce19e){const _0x1b8ce3=_0x1fcfe7;if(_0x5ce19e[_0x1b8ce3('0x25')]!==_0x1b8ce3('0x23')){const _0x3bb574={};return _0x3bb574[_0x5ce19e[_0x1b8ce3('0x4')]]={[Op[_0x1b8ce3('0x1e')]]:'%'+_0x10e741['query'][_0x1b8ce3('0x29')]+'%'},_0x3bb574;}})}));_0x14d53f=_[_0x1fcfe7('0x49')]({},_0x14d53f,_0x10e741[_0x1fcfe7('0x2f')]);const _0x2e91aa={'where':_0x14d53f['where']};return db[_0x1fcfe7('0x11')]['count'](_0x2e91aa)[_0x1fcfe7('0x27')](function(_0x1af3ea){const _0xaff328=_0x1fcfe7;return _0x5997b2[_0xaff328('0x44')]=_0x1af3ea,_0x10e741['query']['includeAll']&&(_0x14d53f[_0xaff328('0x47')]=[{'all':!![]}]),db[_0xaff328('0x11')][_0xaff328('0x0')](_0x14d53f);})[_0x1fcfe7('0x27')](function(_0x3c38fb){const _0x4ea05c=_0x1fcfe7;return _0x5997b2[_0x4ea05c('0x45')]=_0x3c38fb,_0x5997b2;})['then'](respondWithFilteredResult(_0x566f13,_0x14d53f))[_0x1fcfe7('0x2c')](handleError(_0x566f13,null));},exports[_0x4f352d('0x43')]=function(_0x57bcc5,_0x49fc3e){const _0x2518e4=_0x4f352d;let _0x119a22={'raw':![],'where':{'id':_0x57bcc5[_0x2518e4('0x39')]['id']}};const _0x1e5685={};return _0x1e5685['model']=_['keys'](db[_0x2518e4('0x11')][_0x2518e4('0x9')]),_0x1e5685[_0x2518e4('0x13')]=_['keys'](_0x57bcc5['query']),_0x1e5685[_0x2518e4('0x52')]=_[_0x2518e4('0x4e')](_0x1e5685[_0x2518e4('0xe')],_0x1e5685['query']),_0x119a22[_0x2518e4('0x42')]=_[_0x2518e4('0x4e')](_0x1e5685[_0x2518e4('0xe')],qs[_0x2518e4('0x26')](_0x57bcc5[_0x2518e4('0x13')]['fields'])),_0x119a22[_0x2518e4('0x42')]=_0x119a22[_0x2518e4('0x42')]['length']?_0x119a22[_0x2518e4('0x42')]:_0x1e5685[_0x2518e4('0xe')],_0x57bcc5[_0x2518e4('0x13')][_0x2518e4('0x10')]&&(_0x119a22['include']=[{'all':!![]}]),_0x119a22=_[_0x2518e4('0x49')]({},_0x119a22,_0x57bcc5[_0x2518e4('0x2f')]),db[_0x2518e4('0x11')][_0x2518e4('0x3b')](_0x119a22)[_0x2518e4('0x27')](handleEntityNotFound(_0x49fc3e,null))[_0x2518e4('0x27')](respondWithResult(_0x49fc3e,null))[_0x2518e4('0x2c')](handleError(_0x49fc3e,null));},exports[_0x4f352d('0x1c')]=function(_0x3eecc5,_0x363db1){const _0x4ea2d6=_0x4f352d;return db[_0x4ea2d6('0x11')][_0x4ea2d6('0x3b')]({'where':{'id':_0x3eecc5[_0x4ea2d6('0x39')]['id']}})['then'](handleEntityNotFound(_0x363db1,null))[_0x4ea2d6('0x27')](removeEntity(_0x363db1,null))['catch'](handleError(_0x363db1,null));},exports['describe']=function(_0x34a993,_0x38008d){const _0x4e1e06=_0x4f352d;return db['VoicePrefix']['describe']()[_0x4e1e06('0x27')](respondWithResult(_0x38008d,null))['catch'](handleError(_0x38008d,null));},exports['create']=function(_0x3c9949,_0x1f3db1){const _0x2b187b=_0x4f352d;let _0x2efc4d;return db[_0x2b187b('0x17')]['transaction'](function(_0x233d7b){const _0x35b225=_0x2b187b;return db[_0x35b225('0x11')][_0x35b225('0x3d')](_0x3c9949[_0x35b225('0xc')],{'transaction':_0x233d7b})[_0x35b225('0x27')](function(_0x4ead80){const _0x2bebd1=_0x35b225;return _0x2efc4d=_0x4ead80[_0x2bebd1('0xd')]({'plain':!![]}),db[_0x2bebd1('0x53')][_0x2bebd1('0x3b')]({'where':{'id':_0x2efc4d['VoiceExtensionId']},'raw':!![]})[_0x2bebd1('0x27')](function(_0x697308){return createVoicePrefixExtensions(_0x2efc4d,_0x697308,_0x233d7b);});});})[_0x2b187b('0x27')](function(){const _0x7d96c4=_0x2b187b,_0x5ae27e=_0x3c9949[_0x7d96c4('0x28')][_0x7d96c4('0xd')]({'plain':!![]});if(!_0x5ae27e)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x5ae27e[_0x7d96c4('0x35')]===_0x7d96c4('0x28')){const _0x8a2ad0=_0x2efc4d;return db[_0x7d96c4('0x46')][_0x7d96c4('0x3b')]({'where':{'name':_0x7d96c4('0x1d'),'userProfileId':_0x5ae27e[_0x7d96c4('0x1a')]},'raw':!![]})['then'](function(_0x385f7d){const _0x1692e7=_0x7d96c4;return _0x385f7d&&_0x385f7d[_0x1692e7('0x15')]===0x0?db[_0x1692e7('0x8')][_0x1692e7('0x3d')]({'name':_0x8a2ad0[_0x1692e7('0x4')],'resourceId':_0x8a2ad0['id'],'type':_0x385f7d[_0x1692e7('0x4')],'sectionId':_0x385f7d['id']},{})[_0x1692e7('0x27')](function(){return _0x2efc4d;}):_0x2efc4d;})['catch'](function(_0x15206b){const _0xf331b0=_0x7d96c4;logger['error'](_0xf331b0('0x2a'),_0x15206b);throw _0x15206b;});}return _0x2efc4d;})[_0x2b187b('0x27')](respondWithResult(_0x1f3db1,null))[_0x2b187b('0x2c')](handleError(_0x1f3db1,null));};function Extension(_0x3cb590,_0x4f303f,_0x206b6c,_0x4da8ee){const _0x3a120e=_0x4f352d;this[_0x3a120e('0x56')]=_0x3a120e('0x5b'),this['exten']=_0x3cb590,this[_0x3a120e('0x59')]=_0x206b6c,this[_0x3a120e('0x25')]='system',this[_0x3a120e('0x12')]='Voice\x20Prefix\x20Extension',this[_0x3a120e('0x24')]=_0x4f303f,this['appdata']=_0x4da8ee;}function createVoicePrefixExtensions(_0x16245a,_0x471a4d,_0x5d244b){return new Promise(function(_0x308eb4,_0x4026f3){const _0xf6eb3e=a746_0x566f,_0x547660=new Extension(formatPrefixName(_0x16245a['prefix']),0x1,_0xf6eb3e('0x3a'),_0xf6eb3e('0x6'));return _0x547660[_0xf6eb3e('0x30')]=_0x16245a['id'],db['VoiceExtension'][_0xf6eb3e('0x3d')](_0x547660,{'transaction':_0x5d244b})[_0xf6eb3e('0x27')](function(_0x52e42a){const _0x503df6=_0xf6eb3e,_0x50a284=_0x52e42a[_0x503df6('0xd')]({'plain':!![]}),_0xa73cdd=_[_0x503df6('0x20')](addVoicePrefixExtensions(_0x16245a,_0x471a4d),function(_0x490065){const _0x3d8bc6=_0x503df6;return _0x490065['VoiceExtensionId']=_0x50a284['id'],_0x490065[_0x3d8bc6('0x30')]=_0x16245a['id'],_0x490065;});return db['VoiceExtension'][_0x503df6('0x4c')](_0xa73cdd,{'transaction':_0x5d244b})[_0x503df6('0x27')](function(_0x15a9b1){return!_0x15a9b1?_0x4026f3('Extensions\x20creation\x20failed'):_0x308eb4(_0x15a9b1);})[_0x503df6('0x2c')](function(_0x2848ee){return _0x4026f3(_0x2848ee);});});});}function addVoicePrefixExtensions(_0x68842a,_0xe98ab9){const _0x5227f7=_0x4f352d,_0xb6e17e=[],_0x1df3df=formatPrefixName(_0x68842a[_0x5227f7('0x58')]);return _0xb6e17e[_0x5227f7('0x4f')](new Extension(_0x1df3df,0x2,_0x5227f7('0xf'),_0x5227f7('0x41')+_0x68842a['name'])),_0x68842a[_0x5227f7('0x2')]?_0xb6e17e[_0x5227f7('0x4f')](new Extension(_0x1df3df,0x3,_0x5227f7('0xf'),_0x5227f7('0xb')+_0x68842a[_0x5227f7('0x2')])):_0xb6e17e[_0x5227f7('0x4f')](new Extension(_0x1df3df,0x3,_0x5227f7('0x3a'),_0x5227f7('0x14'))),_0xb6e17e[_0x5227f7('0x4f')](new Extension(_0x1df3df,0x4,_0x5227f7('0x22'),_0xe98ab9[_0x5227f7('0x56')]+','+_0x5227f7('0x54')+(0x8+_0x68842a['name']['length'])+'}'+','+0x1)),_0xb6e17e;}function formatPrefixName(_0x1cd9fb){const _0x4a119e=_0x4f352d;let _0x5a8acf='_';for(let _0x4c571c=0x0;_0x4c571c<_0x1cd9fb[_0x4a119e('0x51')];_0x4c571c++){_0x1cd9fb[_0x4a119e('0x57')](_0x4c571c)=='-'?_0x5a8acf+=_0x1cd9fb[_0x4a119e('0x57')](_0x4c571c):_0x5a8acf+='['+_0x1cd9fb[_0x4a119e('0x57')](_0x4c571c)+']';}return _0x5a8acf+='.',_0x5a8acf;}exports[_0x4f352d('0x7')]=function(_0x3e9feb,_0x1cfd8a){const _0x3cdde9=_0x4f352d,_0x4a988f=_0x3e9feb['body'];return _0x4a988f[_0x3cdde9('0x58')]=_0x3cdde9('0x21')+_0x4a988f['name']+'-',db[_0x3cdde9('0x17')]['transaction'](function(_0x15f667){const _0x1edc25=_0x3cdde9;return db[_0x1edc25('0x11')]['update'](_0x4a988f,{'where':{'id':_0x4a988f['id']},'transaction':_0x15f667})[_0x1edc25('0x27')](function(){const _0x236936=_0x1edc25;return db['VoiceExtension'][_0x236936('0x1c')]({'where':{'VoicePrefixId':_0x4a988f['id']},'transaction':_0x15f667})[_0x236936('0x27')](function(){const _0xc68c09=_0x236936;return db[_0xc68c09('0x53')][_0xc68c09('0x3b')]({'where':{'id':_0x4a988f['VoiceExtensionId']},'raw':!![]})[_0xc68c09('0x27')](function(_0x298b94){return createVoicePrefixExtensions(_0x4a988f,_0x298b94,_0x15f667);});});});})[_0x3cdde9('0x27')](function(){return db['VoicePrefix']['findByPk'](_0x4a988f['id']);})[_0x3cdde9('0x27')](respondWithResult(_0x1cfd8a,null))[_0x3cdde9('0x2c')](handleError(_0x1cfd8a,null));},exports[_0x4f352d('0x38')]=function(_0x3b9ebb,_0x18b2c5){const _0x104ca8=_0x4f352d;return db['VoicePrefix'][_0x104ca8('0x3b')]({'where':{'id':_0x3b9ebb['params']['id']}})[_0x104ca8('0x27')](function(_0x1e1388){const _0x5418b2=_0x104ca8;if(_0x1e1388)return _0x1e1388[_0x5418b2('0x38')](_0x3b9ebb[_0x5418b2('0xc')]['ids'],{'through':_[_0x5418b2('0x4b')](_0x3b9ebb['body'],[_0x5418b2('0x48'),'id'])})[_0x5418b2('0x27')](function(_0x4b2b3a){const _0xac1c38=_0x5418b2;for(let _0x5ecbd9=0x0;_0x5ecbd9<_0x3b9ebb[_0xac1c38('0xc')][_0xac1c38('0x48')][_0xac1c38('0x51')];_0x5ecbd9+=0x1){socket['emit']('userVoicePrefix:save',{'UserId':_0x3b9ebb[_0xac1c38('0xc')][_0xac1c38('0x48')][_0x5ecbd9],'VoicePrefixId':_0x3b9ebb[_0xac1c38('0x39')]['id']});}return _0x4b2b3a;});})['then'](respondWithResult(_0x18b2c5,null))[_0x104ca8('0x2c')](handleError(_0x18b2c5,null));},exports['removeAgents']=function(_0x36a76f,_0x406bbb){const _0x1118fd=_0x4f352d;return db[_0x1118fd('0x11')][_0x1118fd('0x3b')]({'where':{'id':_0x36a76f[_0x1118fd('0x39')]['id']}})['then'](handleEntityNotFound(_0x406bbb,null))[_0x1118fd('0x27')](function(_0x5c3c64){const _0x247a9a=_0x1118fd;if(_0x5c3c64)return _0x5c3c64['removeAgents'](_0x36a76f[_0x247a9a('0x13')]['ids'])[_0x247a9a('0x27')](function(){const _0x28b593=_0x247a9a;if(_['isArray'](_0x36a76f[_0x28b593('0x13')][_0x28b593('0x48')]))for(let _0x5a8fdc=0x0;_0x5a8fdc<_0x36a76f['query'][_0x28b593('0x48')][_0x28b593('0x51')];_0x5a8fdc+=0x1){socket[_0x28b593('0x16')](_0x28b593('0x34'),{'UserId':Number(_0x36a76f[_0x28b593('0x13')][_0x28b593('0x48')][_0x5a8fdc]),'VoicePrefixId':Number(_0x36a76f['params']['id'])});}else socket[_0x28b593('0x16')](_0x28b593('0x34'),{'UserId':Number(_0x36a76f[_0x28b593('0x13')][_0x28b593('0x48')]),'VoicePrefixId':Number(_0x36a76f[_0x28b593('0x39')]['id'])});});})[_0x1118fd('0x27')](respondWithStatusCode(_0x406bbb,null))[_0x1118fd('0x2c')](handleError(_0x406bbb,null));},exports[_0x4f352d('0x37')]=function(_0x1add55,_0x2ec2d2){const _0x1264a5=_0x4f352d;let _0x28209d={};const _0x52942f={};let _0xa4e798,_0x41fb30;return db[_0x1264a5('0x11')][_0x1264a5('0x3b')]({'where':{'id':_0x1add55[_0x1264a5('0x39')]['id']}})[_0x1264a5('0x27')](handleEntityNotFound(_0x2ec2d2,null))[_0x1264a5('0x27')](function(_0x415d92){const _0x812f9f=_0x1264a5;if(_0x415d92)return _0xa4e798=_0x415d92,_0x52942f['model']=_[_0x812f9f('0x4a')](db[_0x812f9f('0x3c')]['rawAttributes']),_0x52942f['query']=_[_0x812f9f('0x4a')](_0x1add55['query']),_0x52942f[_0x812f9f('0x52')]=_[_0x812f9f('0x4e')](_0x52942f[_0x812f9f('0xe')],_0x52942f[_0x812f9f('0x13')]),_0x28209d[_0x812f9f('0x42')]=_['intersection'](_0x52942f[_0x812f9f('0xe')],qs[_0x812f9f('0x26')](_0x1add55[_0x812f9f('0x13')][_0x812f9f('0x26')])),_0x28209d[_0x812f9f('0x42')]=_0x28209d[_0x812f9f('0x42')][_0x812f9f('0x51')]?_0x28209d[_0x812f9f('0x42')]:_0x52942f[_0x812f9f('0xe')],_0x28209d['order']=qs[_0x812f9f('0x55')](_0x1add55[_0x812f9f('0x13')][_0x812f9f('0x55')]),_0x28209d[_0x812f9f('0x2b')]=qs[_0x812f9f('0x52')](_[_0x812f9f('0x36')](_0x1add55['query'],_0x52942f['filters'])),_0x1add55['query'][_0x812f9f('0x29')]&&(_0x28209d[_0x812f9f('0x2b')]=_[_0x812f9f('0x49')](_0x28209d['where'],{[Op['or']]:_['map'](_0x28209d['attributes'],function(_0x4e1ae1){const _0x31a4e7=_0x812f9f,_0x14a281={};return _0x14a281[_0x4e1ae1]={[Op[_0x31a4e7('0x1e')]]:'%'+_0x1add55[_0x31a4e7('0x13')]['filter']+'%'},_0x14a281;})})),_0x28209d=_[_0x812f9f('0x49')]({},_0x28209d,_0x1add55[_0x812f9f('0x2f')]),_0xa4e798[_0x812f9f('0x37')](_0x28209d);})['then'](function(_0x50bf0b){const _0x15162b=_0x1264a5;if(_0x50bf0b)return _0x41fb30=_0x50bf0b[_0x15162b('0x51')],typeof _0x1add55['query'][_0x15162b('0x3f')]===_0x15162b('0x50')&&(_0x28209d[_0x15162b('0x31')]=qs[_0x15162b('0x31')](_0x1add55[_0x15162b('0x13')]['limit']),_0x28209d['offset']=qs[_0x15162b('0x2e')](_0x1add55['query']['offset'])),_0xa4e798[_0x15162b('0x37')](_0x28209d);})[_0x1264a5('0x27')](function(_0x118c21){if(_0x118c21)return _0x118c21?{'count':_0x41fb30,'rows':_0x118c21}:null;})[_0x1264a5('0x27')](respondWithResult(_0x2ec2d2,null))[_0x1264a5('0x2c')](handleError(_0x2ec2d2,null));}; \ No newline at end of file +const a746_0x2d48=['transaction','goto','./voicePrefix.socket','error','Set','get','stack','create','VIRTUAL','VoicePrefixes','prefix','VoicePrefixId','describe','map','sort','sendStatus','No\x20callerid\x20available','body','includeAll','type','UserProfileResource','filter','attributes','addAgents','offset','set','fieldName','ids','User','charAt','removeAgents','count','lodash','user','params','keys','order','end','sequelize','status','findByPk','emit','like','key','userVoicePrefix:save','system','bulkCreate','json','findOne','then','catch','../../components/parsers/qs','appdata','destroy','push','intersection','userVoicePrefix:remove','role','VoicePrefix','findAll','show','VoiceExtensionId','where','name','merge','../../mysqldb','VoiceExtension','exten','limit','UserProfileSection','nolimit','context','fields','undefined','model','app','priority','query','../../config/logger','length','getAgents','Content-Range','filters','NoOp','rawAttributes','send','Extensions\x20creation\x20failed','Unable\x20to\x20retrieve\x20the\x20current\x20user','autoAssociation','pick','isArray','Voice\x20Prefix','Voice\x20Prefix\x20Extension','update','options','api','callerIdAll','PREFIX-CALLERIDALL=','from-sip','description'];(function(_0xe740b9,_0x2d48d4){const _0x35bdfc=function(_0x2d737c){while(--_0x2d737c){_0xe740b9['push'](_0xe740b9['shift']());}};_0x35bdfc(++_0x2d48d4);}(a746_0x2d48,0x146));const a746_0x35bd=function(_0xe740b9,_0x2d48d4){_0xe740b9=_0xe740b9-0x0;let _0x35bdfc=a746_0x2d48[_0xe740b9];return _0x35bdfc;};const _0x1255d3=a746_0x35bd;'use strict';const _=require(_0x1255d3('0x6')),qs=require(_0x1255d3('0x19')),logger=require(_0x1255d3('0x34'))(_0x1255d3('0x45')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x1255d3('0x27'))['db'],{Op}=require('sequelize');require(_0x1255d3('0x4c'))['register'](socket);function respondWithStatusCode(_0x2d737c,_0x32c97f){return _0x32c97f=_0x32c97f||0xcc,function(_0x3e5d07){const _0x538234=a746_0x35bd;if(_0x3e5d07)return _0x2d737c['sendStatus'](_0x32c97f);return _0x2d737c[_0x538234('0xd')](_0x32c97f)[_0x538234('0xb')]();};}function respondWithResult(_0x2345b6,_0x526120){return _0x526120=_0x526120||0xc8,function(_0x303381){const _0x57ba04=a746_0x35bd;if(_0x303381)return _0x2345b6[_0x57ba04('0xd')](_0x526120)[_0x57ba04('0x15')](_0x303381);};}function respondWithFilteredResult(_0x34f0d3,_0x5df4f3){return function(_0x2245a6){const _0x137fc2=a746_0x35bd;if(_0x2245a6){const _0x381215=_0x2245a6[_0x137fc2('0x5')],_0x2109d1=_0x5df4f3['offset'];let _0xd57c34=_0x5df4f3['offset']+_0x5df4f3[_0x137fc2('0x2a')],_0x1e75b0;return _0xd57c34>=_0x381215?(_0xd57c34=_0x381215,_0x1e75b0=0xc8):_0x1e75b0=0xce,_0x34f0d3[_0x137fc2('0xd')](_0x1e75b0),_0x34f0d3[_0x137fc2('0x63')](_0x137fc2('0x37'),_0x2109d1+'-'+_0xd57c34+'/'+_0x381215)[_0x137fc2('0x15')](_0x2245a6);}return null;};}function removeEntity(_0x3a598e){return function(_0x82b983){const _0x15058f=a746_0x35bd;if(_0x82b983)return _0x82b983[_0x15058f('0x1b')]()[_0x15058f('0x17')](function(){const _0x51eccc=_0x15058f,_0x3cce5d=_0x82b983[_0x51eccc('0x4f')]({'plain':!![]}),_0x119d82=_0x51eccc('0x53');return db[_0x51eccc('0x5e')][_0x51eccc('0x1b')]({'where':{'type':_0x119d82,'resourceId':_0x3cce5d['id']}})[_0x51eccc('0x17')](function(){return _0x82b983;});})[_0x15058f('0x17')](function(){const _0x36aea9=_0x15058f;_0x3a598e[_0x36aea9('0xd')](0xcc)[_0x36aea9('0xb')]();});};}function handleEntityNotFound(_0x32a749){return function(_0x671857){const _0x39ec6f=a746_0x35bd;return!_0x671857&&_0x32a749[_0x39ec6f('0x59')](0x194),_0x671857;};}function handleError(_0xa74e63,_0x47fb7c){return _0x47fb7c=_0x47fb7c||0x1f4,function(_0x2d1f2d){const _0x2e839c=a746_0x35bd;logger[_0x2e839c('0x4d')](_0x2d1f2d[_0x2e839c('0x50')]),_0x2d1f2d[_0x2e839c('0x25')]&&delete _0x2d1f2d['name'],_0xa74e63[_0x2e839c('0xd')](_0x47fb7c)[_0x2e839c('0x3b')](_0x2d1f2d);};}exports['index']=function(_0x2dcc0b,_0x61e882){const _0xf4d73b=_0x1255d3;let _0xc588f9={};const _0x49a1cf={},_0x1213bd={'count':0x0,'rows':[]},_0x52d01c=_[_0xf4d73b('0x57')](db[_0xf4d73b('0x20')][_0xf4d73b('0x3a')],function(_0x241e60){const _0x5d7c50=_0xf4d73b;return{'name':_0x241e60[_0x5d7c50('0x0')],'type':_0x241e60[_0x5d7c50('0x5d')][_0x5d7c50('0x11')]};});_0x49a1cf[_0xf4d73b('0x30')]=_[_0xf4d73b('0x57')](_0x52d01c,_0xf4d73b('0x25')),_0x49a1cf[_0xf4d73b('0x33')]=_['keys'](_0x2dcc0b[_0xf4d73b('0x33')]),_0x49a1cf[_0xf4d73b('0x38')]=_['intersection'](_0x49a1cf[_0xf4d73b('0x30')],_0x49a1cf[_0xf4d73b('0x33')]),_0xc588f9[_0xf4d73b('0x60')]=_[_0xf4d73b('0x1d')](_0x49a1cf['model'],qs[_0xf4d73b('0x2e')](_0x2dcc0b['query']['fields'])),_0xc588f9[_0xf4d73b('0x60')]=_0xc588f9[_0xf4d73b('0x60')]['length']?_0xc588f9[_0xf4d73b('0x60')]:_0x49a1cf[_0xf4d73b('0x30')];typeof _0x2dcc0b['query'][_0xf4d73b('0x2c')]===_0xf4d73b('0x2f')&&(_0xc588f9['limit']=qs['limit'](_0x2dcc0b[_0xf4d73b('0x33')]['limit']),_0xc588f9[_0xf4d73b('0x62')]=qs[_0xf4d73b('0x62')](_0x2dcc0b[_0xf4d73b('0x33')][_0xf4d73b('0x62')]));_0xc588f9[_0xf4d73b('0xa')]=qs['sort'](_0x2dcc0b[_0xf4d73b('0x33')][_0xf4d73b('0x58')]),_0xc588f9[_0xf4d73b('0x24')]=qs['filters'](_[_0xf4d73b('0x3f')](_0x2dcc0b[_0xf4d73b('0x33')],_0x49a1cf[_0xf4d73b('0x38')]),_0x52d01c);_0x2dcc0b[_0xf4d73b('0x33')][_0xf4d73b('0x5f')]&&(_0xc588f9[_0xf4d73b('0x24')]=_[_0xf4d73b('0x26')](_0xc588f9['where'],{[Op['or']]:_[_0xf4d73b('0x57')](_0x52d01c,function(_0x32d680){const _0x346601=_0xf4d73b;if(_0x32d680['type']!==_0x346601('0x52')){const _0x388827={};return _0x388827[_0x32d680[_0x346601('0x25')]]={[Op[_0x346601('0x10')]]:'%'+_0x2dcc0b['query'][_0x346601('0x5f')]+'%'},_0x388827;}})}));_0xc588f9=_[_0xf4d73b('0x26')]({},_0xc588f9,_0x2dcc0b['options']);const _0x2e02a5={'where':_0xc588f9[_0xf4d73b('0x24')]};return db[_0xf4d73b('0x20')]['count'](_0x2e02a5)[_0xf4d73b('0x17')](function(_0x518c1f){const _0x5cb579=_0xf4d73b;return _0x1213bd[_0x5cb579('0x5')]=_0x518c1f,_0x2dcc0b[_0x5cb579('0x33')][_0x5cb579('0x5c')]&&(_0xc588f9['include']=[{'all':!![]}]),db[_0x5cb579('0x20')][_0x5cb579('0x21')](_0xc588f9);})['then'](function(_0x1745c7){return _0x1213bd['rows']=_0x1745c7,_0x1213bd;})['then'](respondWithFilteredResult(_0x61e882,_0xc588f9))['catch'](handleError(_0x61e882,null));},exports[_0x1255d3('0x22')]=function(_0x4c767c,_0x1ef0f7){const _0x415bcf=_0x1255d3;let _0x3ce055={'raw':![],'where':{'id':_0x4c767c[_0x415bcf('0x8')]['id']}};const _0x29f732={};return _0x29f732[_0x415bcf('0x30')]=_[_0x415bcf('0x9')](db['VoicePrefix'][_0x415bcf('0x3a')]),_0x29f732[_0x415bcf('0x33')]=_[_0x415bcf('0x9')](_0x4c767c[_0x415bcf('0x33')]),_0x29f732[_0x415bcf('0x38')]=_['intersection'](_0x29f732[_0x415bcf('0x30')],_0x29f732[_0x415bcf('0x33')]),_0x3ce055[_0x415bcf('0x60')]=_[_0x415bcf('0x1d')](_0x29f732[_0x415bcf('0x30')],qs[_0x415bcf('0x2e')](_0x4c767c[_0x415bcf('0x33')]['fields'])),_0x3ce055[_0x415bcf('0x60')]=_0x3ce055[_0x415bcf('0x60')][_0x415bcf('0x35')]?_0x3ce055[_0x415bcf('0x60')]:_0x29f732[_0x415bcf('0x30')],_0x4c767c[_0x415bcf('0x33')][_0x415bcf('0x5c')]&&(_0x3ce055['include']=[{'all':!![]}]),_0x3ce055=_[_0x415bcf('0x26')]({},_0x3ce055,_0x4c767c[_0x415bcf('0x44')]),db[_0x415bcf('0x20')][_0x415bcf('0x16')](_0x3ce055)[_0x415bcf('0x17')](handleEntityNotFound(_0x1ef0f7,null))[_0x415bcf('0x17')](respondWithResult(_0x1ef0f7,null))[_0x415bcf('0x18')](handleError(_0x1ef0f7,null));},exports[_0x1255d3('0x1b')]=function(_0x5b63b9,_0x2b22b0){const _0x632b31=_0x1255d3;return db[_0x632b31('0x20')][_0x632b31('0x16')]({'where':{'id':_0x5b63b9[_0x632b31('0x8')]['id']}})[_0x632b31('0x17')](handleEntityNotFound(_0x2b22b0,null))[_0x632b31('0x17')](removeEntity(_0x2b22b0,null))[_0x632b31('0x18')](handleError(_0x2b22b0,null));},exports[_0x1255d3('0x56')]=function(_0x186aca,_0x42497a){const _0x583bc3=_0x1255d3;return db[_0x583bc3('0x20')][_0x583bc3('0x56')]()['then'](respondWithResult(_0x42497a,null))[_0x583bc3('0x18')](handleError(_0x42497a,null));},exports[_0x1255d3('0x51')]=function(_0x51dfb5,_0x468956){const _0x47f9ce=_0x1255d3;let _0x284550;return db['sequelize'][_0x47f9ce('0x4a')](function(_0x304437){const _0x2bc1ca=_0x47f9ce;return db[_0x2bc1ca('0x20')][_0x2bc1ca('0x51')](_0x51dfb5[_0x2bc1ca('0x5b')],{'transaction':_0x304437})[_0x2bc1ca('0x17')](function(_0x33fe3d){const _0xbf6925=_0x2bc1ca;return _0x284550=_0x33fe3d[_0xbf6925('0x4f')]({'plain':!![]}),db[_0xbf6925('0x28')][_0xbf6925('0x16')]({'where':{'id':_0x284550[_0xbf6925('0x23')]},'raw':!![]})['then'](function(_0x58d2d9){return createVoicePrefixExtensions(_0x284550,_0x58d2d9,_0x304437);});});})[_0x47f9ce('0x17')](function(){const _0x2efa9c=_0x47f9ce,_0x14217f=_0x51dfb5[_0x2efa9c('0x7')][_0x2efa9c('0x4f')]({'plain':!![]});if(!_0x14217f)throw new Error(_0x2efa9c('0x3d'));if(_0x14217f[_0x2efa9c('0x1f')]===_0x2efa9c('0x7')){const _0x5f486e=_0x284550;return db[_0x2efa9c('0x2b')]['findOne']({'where':{'name':_0x2efa9c('0x53'),'userProfileId':_0x14217f['userProfileId']},'raw':!![]})[_0x2efa9c('0x17')](function(_0x1d1d2a){const _0x1396de=_0x2efa9c;return _0x1d1d2a&&_0x1d1d2a[_0x1396de('0x3e')]===0x0?db[_0x1396de('0x5e')][_0x1396de('0x51')]({'name':_0x5f486e[_0x1396de('0x25')],'resourceId':_0x5f486e['id'],'type':_0x1d1d2a['name'],'sectionId':_0x1d1d2a['id']},{})[_0x1396de('0x17')](function(){return _0x284550;}):_0x284550;})[_0x2efa9c('0x18')](function(_0x3d669c){const _0x4f8c00=_0x2efa9c;logger[_0x4f8c00('0x4d')]('Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s',_0x3d669c);throw _0x3d669c;});}return _0x284550;})['then'](respondWithResult(_0x468956,null))['catch'](handleError(_0x468956,null));};function Extension(_0x275c91,_0x2f6220,_0x301fa9,_0x17f2ef){const _0x12c9b8=_0x1255d3;this[_0x12c9b8('0x2d')]=_0x12c9b8('0x48'),this[_0x12c9b8('0x29')]=_0x275c91,this[_0x12c9b8('0x31')]=_0x301fa9,this['type']=_0x12c9b8('0x13'),this[_0x12c9b8('0x49')]=_0x12c9b8('0x42'),this[_0x12c9b8('0x32')]=_0x2f6220,this[_0x12c9b8('0x1a')]=_0x17f2ef;}function createVoicePrefixExtensions(_0x175240,_0x5b44a6,_0x2467c6){return new Promise(function(_0x23ca8d,_0x3ab705){const _0x240559=a746_0x35bd,_0xd82f11=new Extension(formatPrefixName(_0x175240[_0x240559('0x54')]),0x1,_0x240559('0x39'),_0x240559('0x41'));return _0xd82f11['VoicePrefixId']=_0x175240['id'],db[_0x240559('0x28')][_0x240559('0x51')](_0xd82f11,{'transaction':_0x2467c6})[_0x240559('0x17')](function(_0x350f18){const _0x466aae=_0x240559,_0x245209=_0x350f18['get']({'plain':!![]}),_0x4d01de=_['map'](addVoicePrefixExtensions(_0x175240,_0x5b44a6),function(_0x36e11b){const _0x149dbb=a746_0x35bd;return _0x36e11b[_0x149dbb('0x23')]=_0x245209['id'],_0x36e11b[_0x149dbb('0x55')]=_0x175240['id'],_0x36e11b;});return db[_0x466aae('0x28')][_0x466aae('0x14')](_0x4d01de,{'transaction':_0x2467c6})['then'](function(_0x5e5220){const _0x10e4d4=_0x466aae;return!_0x5e5220?_0x3ab705(_0x10e4d4('0x3c')):_0x23ca8d(_0x5e5220);})[_0x466aae('0x18')](function(_0x5487c0){return _0x3ab705(_0x5487c0);});});});}function addVoicePrefixExtensions(_0x8febc8,_0x5abd4e){const _0x3635d9=_0x1255d3,_0x1b14f8=[],_0xe4d0e4=formatPrefixName(_0x8febc8[_0x3635d9('0x54')]);return _0x1b14f8['push'](new Extension(_0xe4d0e4,0x2,_0x3635d9('0x4e'),'CDR(prefix)='+_0x8febc8[_0x3635d9('0x25')])),_0x8febc8[_0x3635d9('0x46')]?_0x1b14f8[_0x3635d9('0x1c')](new Extension(_0xe4d0e4,0x3,_0x3635d9('0x4e'),_0x3635d9('0x47')+_0x8febc8[_0x3635d9('0x46')])):_0x1b14f8[_0x3635d9('0x1c')](new Extension(_0xe4d0e4,0x3,_0x3635d9('0x39'),_0x3635d9('0x5a'))),_0x1b14f8[_0x3635d9('0x1c')](new Extension(_0xe4d0e4,0x4,_0x3635d9('0x4b'),_0x5abd4e['context']+','+'${EXTEN:'+(0x8+_0x8febc8[_0x3635d9('0x25')]['length'])+'}'+','+0x1)),_0x1b14f8;}function formatPrefixName(_0x469636){const _0x3c67fe=_0x1255d3;let _0x55fbf9='_';for(let _0x14fc3c=0x0;_0x14fc3c<_0x469636[_0x3c67fe('0x35')];_0x14fc3c++){_0x469636['charAt'](_0x14fc3c)=='-'?_0x55fbf9+=_0x469636[_0x3c67fe('0x3')](_0x14fc3c):_0x55fbf9+='['+_0x469636[_0x3c67fe('0x3')](_0x14fc3c)+']';}return _0x55fbf9+='.',_0x55fbf9;}exports[_0x1255d3('0x43')]=function(_0x1632c6,_0x1fa827){const _0x2f2ce8=_0x1255d3,_0x521286=_0x1632c6[_0x2f2ce8('0x5b')];return _0x521286[_0x2f2ce8('0x54')]='system-'+_0x521286[_0x2f2ce8('0x25')]+'-',db[_0x2f2ce8('0xc')][_0x2f2ce8('0x4a')](function(_0x26c67d){const _0x335a62=_0x2f2ce8;return db[_0x335a62('0x20')][_0x335a62('0x43')](_0x521286,{'where':{'id':_0x521286['id']},'transaction':_0x26c67d})[_0x335a62('0x17')](function(){const _0x6a129a=_0x335a62;return db[_0x6a129a('0x28')]['destroy']({'where':{'VoicePrefixId':_0x521286['id']},'transaction':_0x26c67d})[_0x6a129a('0x17')](function(){const _0x5e885b=_0x6a129a;return db[_0x5e885b('0x28')][_0x5e885b('0x16')]({'where':{'id':_0x521286[_0x5e885b('0x23')]},'raw':!![]})[_0x5e885b('0x17')](function(_0x5ccf1f){return createVoicePrefixExtensions(_0x521286,_0x5ccf1f,_0x26c67d);});});});})[_0x2f2ce8('0x17')](function(){const _0x4afe78=_0x2f2ce8;return db[_0x4afe78('0x20')][_0x4afe78('0xe')](_0x521286['id']);})[_0x2f2ce8('0x17')](respondWithResult(_0x1fa827,null))[_0x2f2ce8('0x18')](handleError(_0x1fa827,null));},exports[_0x1255d3('0x61')]=function(_0x5f3cab,_0x5c617b){const _0x3164ae=_0x1255d3;return db[_0x3164ae('0x20')][_0x3164ae('0x16')]({'where':{'id':_0x5f3cab['params']['id']}})[_0x3164ae('0x17')](function(_0x5f2771){const _0xf20df0=_0x3164ae;if(_0x5f2771)return _0x5f2771[_0xf20df0('0x61')](_0x5f3cab['body'][_0xf20df0('0x1')],{'through':_['omit'](_0x5f3cab[_0xf20df0('0x5b')],[_0xf20df0('0x1'),'id'])})[_0xf20df0('0x17')](function(_0x4e4ca9){const _0x139cd1=_0xf20df0;for(let _0x365932=0x0;_0x365932<_0x5f3cab[_0x139cd1('0x5b')][_0x139cd1('0x1')]['length'];_0x365932+=0x1){socket[_0x139cd1('0xf')](_0x139cd1('0x12'),{'UserId':_0x5f3cab['body'][_0x139cd1('0x1')][_0x365932],'VoicePrefixId':_0x5f3cab[_0x139cd1('0x8')]['id']});}return _0x4e4ca9;});})[_0x3164ae('0x17')](respondWithResult(_0x5c617b,null))[_0x3164ae('0x18')](handleError(_0x5c617b,null));},exports[_0x1255d3('0x4')]=function(_0xc0dde6,_0x1def9d){const _0xb38eb9=_0x1255d3;return db[_0xb38eb9('0x20')][_0xb38eb9('0x16')]({'where':{'id':_0xc0dde6[_0xb38eb9('0x8')]['id']}})[_0xb38eb9('0x17')](handleEntityNotFound(_0x1def9d,null))[_0xb38eb9('0x17')](function(_0x4defba){const _0x4e929a=_0xb38eb9;if(_0x4defba)return _0x4defba[_0x4e929a('0x4')](_0xc0dde6[_0x4e929a('0x33')]['ids'])[_0x4e929a('0x17')](function(){const _0x32b8d5=_0x4e929a;if(_[_0x32b8d5('0x40')](_0xc0dde6[_0x32b8d5('0x33')][_0x32b8d5('0x1')]))for(let _0x300b3d=0x0;_0x300b3d<_0xc0dde6['query'][_0x32b8d5('0x1')][_0x32b8d5('0x35')];_0x300b3d+=0x1){socket['emit'](_0x32b8d5('0x1e'),{'UserId':Number(_0xc0dde6[_0x32b8d5('0x33')][_0x32b8d5('0x1')][_0x300b3d]),'VoicePrefixId':Number(_0xc0dde6[_0x32b8d5('0x8')]['id'])});}else socket['emit'](_0x32b8d5('0x1e'),{'UserId':Number(_0xc0dde6[_0x32b8d5('0x33')][_0x32b8d5('0x1')]),'VoicePrefixId':Number(_0xc0dde6[_0x32b8d5('0x8')]['id'])});});})['then'](respondWithStatusCode(_0x1def9d,null))[_0xb38eb9('0x18')](handleError(_0x1def9d,null));},exports[_0x1255d3('0x36')]=function(_0x520c8a,_0x476c28){const _0x3e3c8d=_0x1255d3;let _0x2f3594={};const _0x9e025f={};let _0x157f16,_0x45fc76;return db[_0x3e3c8d('0x20')][_0x3e3c8d('0x16')]({'where':{'id':_0x520c8a[_0x3e3c8d('0x8')]['id']}})['then'](handleEntityNotFound(_0x476c28,null))[_0x3e3c8d('0x17')](function(_0x388581){const _0xf8ab3d=_0x3e3c8d;if(_0x388581)return _0x157f16=_0x388581,_0x9e025f[_0xf8ab3d('0x30')]=_[_0xf8ab3d('0x9')](db[_0xf8ab3d('0x2')]['rawAttributes']),_0x9e025f[_0xf8ab3d('0x33')]=_[_0xf8ab3d('0x9')](_0x520c8a[_0xf8ab3d('0x33')]),_0x9e025f[_0xf8ab3d('0x38')]=_[_0xf8ab3d('0x1d')](_0x9e025f[_0xf8ab3d('0x30')],_0x9e025f['query']),_0x2f3594[_0xf8ab3d('0x60')]=_[_0xf8ab3d('0x1d')](_0x9e025f[_0xf8ab3d('0x30')],qs[_0xf8ab3d('0x2e')](_0x520c8a['query'][_0xf8ab3d('0x2e')])),_0x2f3594['attributes']=_0x2f3594[_0xf8ab3d('0x60')][_0xf8ab3d('0x35')]?_0x2f3594[_0xf8ab3d('0x60')]:_0x9e025f[_0xf8ab3d('0x30')],_0x2f3594['order']=qs['sort'](_0x520c8a['query'][_0xf8ab3d('0x58')]),_0x2f3594['where']=qs[_0xf8ab3d('0x38')](_['pick'](_0x520c8a[_0xf8ab3d('0x33')],_0x9e025f[_0xf8ab3d('0x38')])),_0x520c8a[_0xf8ab3d('0x33')][_0xf8ab3d('0x5f')]&&(_0x2f3594[_0xf8ab3d('0x24')]=_['merge'](_0x2f3594[_0xf8ab3d('0x24')],{[Op['or']]:_[_0xf8ab3d('0x57')](_0x2f3594['attributes'],function(_0x5284b7){const _0x38ec30=_0xf8ab3d,_0x42538b={};return _0x42538b[_0x5284b7]={[Op[_0x38ec30('0x10')]]:'%'+_0x520c8a[_0x38ec30('0x33')][_0x38ec30('0x5f')]+'%'},_0x42538b;})})),_0x2f3594=_['merge']({},_0x2f3594,_0x520c8a[_0xf8ab3d('0x44')]),_0x157f16[_0xf8ab3d('0x36')](_0x2f3594);})[_0x3e3c8d('0x17')](function(_0xb3c692){const _0x3d6fa4=_0x3e3c8d;if(_0xb3c692)return _0x45fc76=_0xb3c692[_0x3d6fa4('0x35')],typeof _0x520c8a['query'][_0x3d6fa4('0x2c')]===_0x3d6fa4('0x2f')&&(_0x2f3594[_0x3d6fa4('0x2a')]=qs[_0x3d6fa4('0x2a')](_0x520c8a[_0x3d6fa4('0x33')][_0x3d6fa4('0x2a')]),_0x2f3594['offset']=qs[_0x3d6fa4('0x62')](_0x520c8a['query'][_0x3d6fa4('0x62')])),_0x157f16[_0x3d6fa4('0x36')](_0x2f3594);})['then'](function(_0xd31981){if(_0xd31981)return _0xd31981?{'count':_0x45fc76,'rows':_0xd31981}:null;})['then'](respondWithResult(_0x476c28,null))[_0x3e3c8d('0x18')](handleError(_0x476c28,null));}; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.events.js b/server/api/voicePrefix/voicePrefix.events.js index 00dc6b6..153fb72 100644 --- a/server/api/voicePrefix/voicePrefix.events.js +++ b/server/api/voicePrefix/voicePrefix.events.js @@ -1 +1 @@ -const a747_0x494c=['events','setMaxListeners','save','exports','remove','addHook','emit','undefined'];(function(_0x160030,_0x494c9f){const _0x30a8f6=function(_0x41eeff){while(--_0x41eeff){_0x160030['push'](_0x160030['shift']());}};_0x30a8f6(++_0x494c9f);}(a747_0x494c,0x65));const a747_0x30a8=function(_0x160030,_0x494c9f){_0x160030=_0x160030-0x0;let _0x30a8f6=a747_0x494c[_0x160030];return _0x30a8f6;};const _0x19b782=a747_0x30a8;'use strict';const EventEmitter=require(_0x19b782('0x3')),VoicePrefix=require('../../mysqldb')['db']['VoicePrefix'],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x19b782('0x4')](0x0);const events={'afterCreate':_0x19b782('0x5'),'afterUpdate':'update','afterDestroy':_0x19b782('0x7')};function emitEvent(_0x41eeff){return function(_0xc062a5){const _0x4a4b7e=a747_0x30a8;VoicePrefixEvents['emit'](_0x41eeff+':'+_0xc062a5['id'],_0xc062a5),VoicePrefixEvents[_0x4a4b7e('0x1')](_0x41eeff,_0xc062a5);};}for(const e in events){if(typeof events[e]!==_0x19b782('0x2')){const event=events[e];VoicePrefix[_0x19b782('0x0')](e,emitEvent(event));}}module[_0x19b782('0x6')]=VoicePrefixEvents; \ No newline at end of file +const a747_0x5b76=['undefined','setMaxListeners','update','addHook','../../mysqldb','remove','VoicePrefix','emit','events','save'];(function(_0x42a8f7,_0x5b769f){const _0x5799f9=function(_0x1782bd){while(--_0x1782bd){_0x42a8f7['push'](_0x42a8f7['shift']());}};_0x5799f9(++_0x5b769f);}(a747_0x5b76,0xf4));const a747_0x5799=function(_0x42a8f7,_0x5b769f){_0x42a8f7=_0x42a8f7-0x0;let _0x5799f9=a747_0x5b76[_0x42a8f7];return _0x5799f9;};const _0x1b7698=a747_0x5799;'use strict';const EventEmitter=require(_0x1b7698('0x4')),VoicePrefix=require(_0x1b7698('0x0'))['db'][_0x1b7698('0x2')],VoicePrefixEvents=new EventEmitter();VoicePrefixEvents[_0x1b7698('0x7')](0x0);const events={'afterCreate':_0x1b7698('0x5'),'afterUpdate':_0x1b7698('0x8'),'afterDestroy':_0x1b7698('0x1')};function emitEvent(_0x1782bd){return function(_0x30142c){const _0x5d4e29=a747_0x5799;VoicePrefixEvents[_0x5d4e29('0x3')](_0x1782bd+':'+_0x30142c['id'],_0x30142c),VoicePrefixEvents[_0x5d4e29('0x3')](_0x1782bd,_0x30142c);};}for(const e in events){if(typeof events[e]!==_0x1b7698('0x6')){const event=events[e];VoicePrefix[_0x1b7698('0x9')](e,emitEvent(event));}}module['exports']=VoicePrefixEvents; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.model.js b/server/api/voicePrefix/voicePrefix.model.js index 6837051..920dff8 100644 --- a/server/api/voicePrefix/voicePrefix.model.js +++ b/server/api/voicePrefix/voicePrefix.model.js @@ -1 +1 @@ -const a748_0x2f1b=['exports','voice_prefixes','./voicePrefix.attributes','VoicePrefix'];(function(_0x364697,_0x2f1bd5){const _0x3d4ead=function(_0x1361ef){while(--_0x1361ef){_0x364697['push'](_0x364697['shift']());}};_0x3d4ead(++_0x2f1bd5);}(a748_0x2f1b,0x15b));const a748_0x3d4e=function(_0x364697,_0x2f1bd5){_0x364697=_0x364697-0x0;let _0x3d4ead=a748_0x2f1b[_0x364697];return _0x3d4ead;};const _0x5d95d2=a748_0x3d4e;'use strict';const attributes=require(_0x5d95d2('0x3'));module[_0x5d95d2('0x1')]=function(_0x1361ef){const _0x2a29ca=_0x5d95d2,_0x32916e=_0x1361ef['define'](_0x2a29ca('0x0'),attributes,{'tableName':_0x2a29ca('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x32916e;}; \ No newline at end of file +const a748_0x50bf=['VoicePrefix','./voicePrefix.attributes','define','voice_prefixes','exports'];(function(_0x4c9ef1,_0x50bf8e){const _0x43613c=function(_0x24177f){while(--_0x24177f){_0x4c9ef1['push'](_0x4c9ef1['shift']());}};_0x43613c(++_0x50bf8e);}(a748_0x50bf,0xdf));const a748_0x4361=function(_0x4c9ef1,_0x50bf8e){_0x4c9ef1=_0x4c9ef1-0x0;let _0x43613c=a748_0x50bf[_0x4c9ef1];return _0x43613c;};const _0x453b6a=a748_0x4361;'use strict';const attributes=require(_0x453b6a('0x3'));module[_0x453b6a('0x1')]=function(_0x24177f){const _0x4c1585=_0x453b6a,_0x20d4b2=_0x24177f[_0x4c1585('0x4')](_0x4c1585('0x2'),attributes,{'tableName':_0x4c1585('0x0'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x20d4b2;}; \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.rpc.js b/server/api/voicePrefix/voicePrefix.rpc.js index 73fbb9c..47036c7 100644 --- a/server/api/voicePrefix/voicePrefix.rpc.js +++ b/server/api/voicePrefix/voicePrefix.rpc.js @@ -1 +1 @@ -const a749_0xf6de=['../../rediscache','register'];(function(_0x19313c,_0xf6deb2){const _0x1a46ed=function(_0x408f49){while(--_0x408f49){_0x19313c['push'](_0x19313c['shift']());}};_0x1a46ed(++_0xf6deb2);}(a749_0xf6de,0x1d2));const a749_0x1a46=function(_0x19313c,_0xf6deb2){_0x19313c=_0x19313c-0x0;let _0x1a46ed=a749_0xf6de[_0x19313c];return _0x1a46ed;};const _0x55e964=a749_0x1a46;'use strict';const {getSocket}=require(_0x55e964('0x0')),socket=getSocket();require('./voicePrefix.socket')[_0x55e964('0x1')](socket); \ No newline at end of file +const a749_0x24f0=['../../rediscache','register'];(function(_0x2a9932,_0x24f0a1){const _0x16860c=function(_0x388a7e){while(--_0x388a7e){_0x2a9932['push'](_0x2a9932['shift']());}};_0x16860c(++_0x24f0a1);}(a749_0x24f0,0x143));const a749_0x1686=function(_0x2a9932,_0x24f0a1){_0x2a9932=_0x2a9932-0x0;let _0x16860c=a749_0x24f0[_0x2a9932];return _0x16860c;};const _0x4e3381=a749_0x1686;'use strict';const {getSocket}=require(_0x4e3381('0x1')),socket=getSocket();require('./voicePrefix.socket')[_0x4e3381('0x0')](socket); \ No newline at end of file diff --git a/server/api/voicePrefix/voicePrefix.socket.js b/server/api/voicePrefix/voicePrefix.socket.js index 63fb4a8..ba6d9e8 100644 --- a/server/api/voicePrefix/voicePrefix.socket.js +++ b/server/api/voicePrefix/voicePrefix.socket.js @@ -1 +1 @@ -const a750_0x4e3e=['voicePrefix:','remove','update','./voicePrefix.events','length','register'];(function(_0x22e88f,_0x4e3e3a){const _0x58ed7d=function(_0x510d98){while(--_0x510d98){_0x22e88f['push'](_0x22e88f['shift']());}};_0x58ed7d(++_0x4e3e3a);}(a750_0x4e3e,0x11f));const a750_0x58ed=function(_0x22e88f,_0x4e3e3a){_0x22e88f=_0x22e88f-0x0;let _0x58ed7d=a750_0x4e3e[_0x22e88f];return _0x58ed7d;};const _0xb4589e=a750_0x58ed;'use strict';const VoicePrefixEvents=require(_0xb4589e('0x4')),events=['save',_0xb4589e('0x2'),_0xb4589e('0x3')];function createListener(_0x510d98,_0x5a0998){return function(_0xa605e3){_0x5a0998['emit'](_0x510d98,_0xa605e3);};}exports[_0xb4589e('0x0')]=function(_0x26c9b1){const _0x5b123c=_0xb4589e;for(let _0x1ce18b=0x0,_0x55f347=events[_0x5b123c('0x5')];_0x1ce18b<_0x55f347;_0x1ce18b++){const _0xc8a86f=events[_0x1ce18b],_0x176dcd=createListener(_0x5b123c('0x1')+_0xc8a86f,_0x26c9b1);VoicePrefixEvents['on'](_0xc8a86f,_0x176dcd);}}; \ No newline at end of file +const a750_0x3d15=['remove','./voicePrefix.events','register','voicePrefix:','emit','save'];(function(_0x2b262e,_0x3d15bc){const _0x5082c6=function(_0x8e832e){while(--_0x8e832e){_0x2b262e['push'](_0x2b262e['shift']());}};_0x5082c6(++_0x3d15bc);}(a750_0x3d15,0x166));const a750_0x5082=function(_0x2b262e,_0x3d15bc){_0x2b262e=_0x2b262e-0x0;let _0x5082c6=a750_0x3d15[_0x2b262e];return _0x5082c6;};const _0x50b73b=a750_0x5082;'use strict';const VoicePrefixEvents=require(_0x50b73b('0x3')),events=[_0x50b73b('0x1'),_0x50b73b('0x2'),'update'];function createListener(_0x8e832e,_0x3c8860){return function(_0x54d462){const _0x346471=a750_0x5082;_0x3c8860[_0x346471('0x0')](_0x8e832e,_0x54d462);};}exports[_0x50b73b('0x4')]=function(_0x176376){const _0x3539f2=_0x50b73b;for(let _0x32622f=0x0,_0x1a4472=events['length'];_0x32622f<_0x1a4472;_0x32622f++){const _0x36a7ef=events[_0x32622f],_0x258f20=createListener(_0x3539f2('0x5')+_0x36a7ef,_0x176376);VoicePrefixEvents['on'](_0x36a7ef,_0x258f20);}}; \ No newline at end of file diff --git a/server/api/voiceQueue/index.js b/server/api/voiceQueue/index.js index be7f295..9eb5f4d 100644 --- a/server/api/voiceQueue/index.js +++ b/server/api/voiceQueue/index.js @@ -1 +1 @@ -const a751_0x4c31=['delete','/:id/members','addTeams','/:id/lists','removeLists','isAuthenticated','/:id/hopper_finals','express','../../components/auth/service','post','getLists','create','get','/:id/hopper_histories','/:id/teams','/:id/hoppers','/:id/hopper_black','index','addAgents','removeBlackLists','getHopperBlacks','./voiceQueue.controller','Router','getBlackLists','removeTeams','getTeams','/:id/clone','getHoppers','addBlackLists','/:id/users','/:id','getHopperHistories'];(function(_0x7529f6,_0x4c3183){const _0x6f7462=function(_0xe4f71b){while(--_0xe4f71b){_0x7529f6['push'](_0x7529f6['shift']());}};_0x6f7462(++_0x4c3183);}(a751_0x4c31,0x7f));const a751_0x6f74=function(_0x7529f6,_0x4c3183){_0x7529f6=_0x7529f6-0x0;let _0x6f7462=a751_0x4c31[_0x7529f6];return _0x6f7462;};const _0x12880f=a751_0x6f74;'use strict';const express=require(_0x12880f('0x8')),router=express[_0x12880f('0x17')](),auth=require(_0x12880f('0x9')),controller=require(_0x12880f('0x16'));router['get']('/',auth['isAuthenticated'](),controller[_0x12880f('0x12')]),router['get'](_0x12880f('0x1f'),auth[_0x12880f('0x6')](),controller['show']),router[_0x12880f('0xd')](_0x12880f('0x10'),auth[_0x12880f('0x6')](),controller[_0x12880f('0x1c')]),router[_0x12880f('0xd')](_0x12880f('0xe'),auth[_0x12880f('0x6')](),controller[_0x12880f('0x0')]),router['get'](_0x12880f('0x7'),auth[_0x12880f('0x6')](),controller['getHopperFinals']),router[_0x12880f('0xd')](_0x12880f('0x11'),auth[_0x12880f('0x6')](),controller[_0x12880f('0x15')]),router[_0x12880f('0xd')](_0x12880f('0xf'),auth[_0x12880f('0x6')](),controller[_0x12880f('0x1a')]),router[_0x12880f('0xd')](_0x12880f('0x1e'),auth['isAuthenticated'](),controller['getAgents']),router['get'](_0x12880f('0x2'),auth[_0x12880f('0x6')](),controller['getMembers']),router[_0x12880f('0xd')](_0x12880f('0x4'),auth['isAuthenticated'](),controller[_0x12880f('0xb')]),router[_0x12880f('0xd')]('/:id/blacklists',auth[_0x12880f('0x6')](),controller[_0x12880f('0x18')]),router[_0x12880f('0xa')]('/',auth['isAuthenticated'](),controller[_0x12880f('0xc')]),router['post'](_0x12880f('0x1b'),auth[_0x12880f('0x6')](),controller['clone']),router[_0x12880f('0xa')](_0x12880f('0xf'),auth[_0x12880f('0x6')](),controller[_0x12880f('0x3')]),router['post'](_0x12880f('0x1e'),auth[_0x12880f('0x6')](),controller[_0x12880f('0x13')]),router[_0x12880f('0xa')](_0x12880f('0x4'),auth[_0x12880f('0x6')](),controller['addLists']),router[_0x12880f('0xa')]('/:id/blacklists',auth[_0x12880f('0x6')](),controller[_0x12880f('0x1d')]),router['put']('/:id',auth['isAuthenticated'](),controller['update']),router[_0x12880f('0x1')](_0x12880f('0x1f'),auth['isAuthenticated'](),controller['destroy']),router['delete'](_0x12880f('0xf'),auth['isAuthenticated'](),controller[_0x12880f('0x19')]),router['delete'](_0x12880f('0x1e'),auth[_0x12880f('0x6')](),controller['removeAgents']),router[_0x12880f('0x1')]('/:id/lists',auth[_0x12880f('0x6')](),controller[_0x12880f('0x5')]),router['delete']('/:id/blacklists',auth[_0x12880f('0x6')](),controller[_0x12880f('0x14')]),module['exports']=router; \ No newline at end of file +const a751_0x3e7a=['express','show','getHopperFinals','index','get','exports','/:id/hopper_histories','/:id/users','getTeams','getHoppers','/:id','clone','removeTeams','delete','removeLists','addBlackLists','isAuthenticated','addTeams','/:id/lists','create','/:id/clone','destroy','/:id/blacklists','/:id/hopper_black','getHopperHistories','getBlackLists','removeBlackLists','post','update','removeAgents','Router','getMembers','addAgents','/:id/hopper_finals','/:id/teams','getHopperBlacks'];(function(_0x3d1100,_0x3e7aeb){const _0x3c0db1=function(_0xd3ede6){while(--_0xd3ede6){_0x3d1100['push'](_0x3d1100['shift']());}};_0x3c0db1(++_0x3e7aeb);}(a751_0x3e7a,0xcc));const a751_0x3c0d=function(_0x3d1100,_0x3e7aeb){_0x3d1100=_0x3d1100-0x0;let _0x3c0db1=a751_0x3e7a[_0x3d1100];return _0x3c0db1;};const _0x3c0cee=a751_0x3c0d;'use strict';const express=require(_0x3c0cee('0xc')),router=express[_0x3c0cee('0x6')](),auth=require('../../components/auth/service'),controller=require('./voiceQueue.controller');router['get']('/',auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0xf')]),router[_0x3c0cee('0x10')](_0x3c0cee('0x16'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0xd')]),router[_0x3c0cee('0x10')]('/:id/hoppers',auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x15')]),router[_0x3c0cee('0x10')](_0x3c0cee('0x12'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x0')]),router['get'](_0x3c0cee('0x9'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0xe')]),router[_0x3c0cee('0x10')](_0x3c0cee('0x23'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0xb')]),router[_0x3c0cee('0x10')](_0x3c0cee('0xa'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x14')]),router[_0x3c0cee('0x10')]('/:id/users',auth['isAuthenticated'](),controller['getAgents']),router['get']('/:id/members',auth['isAuthenticated'](),controller[_0x3c0cee('0x7')]),router['get'](_0x3c0cee('0x1e'),auth['isAuthenticated'](),controller['getLists']),router[_0x3c0cee('0x10')]('/:id/blacklists',auth['isAuthenticated'](),controller[_0x3c0cee('0x1')]),router[_0x3c0cee('0x3')]('/',auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x1f')]),router[_0x3c0cee('0x3')](_0x3c0cee('0x20'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x17')]),router[_0x3c0cee('0x3')]('/:id/teams',auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x1d')]),router[_0x3c0cee('0x3')]('/:id/users',auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x8')]),router[_0x3c0cee('0x3')]('/:id/lists',auth[_0x3c0cee('0x1c')](),controller['addLists']),router['post'](_0x3c0cee('0x22'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x1b')]),router['put'](_0x3c0cee('0x16'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x4')]),router[_0x3c0cee('0x19')](_0x3c0cee('0x16'),auth['isAuthenticated'](),controller[_0x3c0cee('0x21')]),router[_0x3c0cee('0x19')](_0x3c0cee('0xa'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x18')]),router[_0x3c0cee('0x19')](_0x3c0cee('0x13'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x5')]),router['delete']('/:id/lists',auth['isAuthenticated'](),controller[_0x3c0cee('0x1a')]),router[_0x3c0cee('0x19')](_0x3c0cee('0x22'),auth[_0x3c0cee('0x1c')](),controller[_0x3c0cee('0x2')]),module[_0x3c0cee('0x11')]=router; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.attributes.js b/server/api/voiceQueue/voiceQueue.attributes.js index 06c5d30..5adcc63 100644 --- a/server/api/voiceQueue/voiceQueue.attributes.js +++ b/server/api/voiceQueue/voiceQueue.attributes.js @@ -1 +1 @@ -const a752_0x444e=['Active/Disactive\x20AMD','never','name','yes','booked','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','mandatoryDisposition','fewestcalls','#AMD\x20Total\x20Analysis\x20Time','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.','UNSIGNED','getDataValue','split','agentBusyFactor','07:00-22:00,*,*,*','#AgentReject\x20Retry\x20(min:1,\x20max:999)','ASC','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','dialMethod','BOOLEAN','dropRate','wrandom','#AMD\x20Between\x20Words\x20Silence','ENUM','setDataValue','always','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','STRING','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','preview','#AMD\x20Greeting','#Machine\x20Retry\x20(min:1,\x20max:999)','tTxX','rrordered','AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','all','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','linear','inbound','rrmemory','#Congestion\x20Retry\x20(min:1,\x20max:999)','sequelize','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','power','join','#Busy\x20Retry\x20(min:1,\x20max:999)','#AMD\x20After\x20Greeting\x20Silence','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','progressive','DESC','#Drop\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Initial\x20Silence','leavewhenempty','FLOAT','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#AMD\x20Maximum\x20Word\x20Length','strategy','acw','exports','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','periodic_announce','once','#AMD\x20Min\x20Word\x20Length','leastrecent','random','predictive','#Abandoned\x20Retry\x20(min:1,\x20max:999)','Cut\x20Digit\x20(min:1,\x20max:15)','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','type','TEXT','INTEGER','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','joinempty','#NoAnswer\x20Retry\x20(min:1,\x20max:999)'];(function(_0x2e0193,_0x444eb8){const _0x323069=function(_0x49527d){while(--_0x49527d){_0x2e0193['push'](_0x2e0193['shift']());}};_0x323069(++_0x444eb8);}(a752_0x444e,0x19b));const a752_0x3230=function(_0x2e0193,_0x444eb8){_0x2e0193=_0x2e0193-0x0;let _0x323069=a752_0x444e[_0x2e0193];return _0x323069;};const _0x333915=a752_0x3230;'use strict';const Sequelize=require(_0x333915('0x11'));module[_0x333915('0x22')]={'name':{'type':Sequelize[_0x333915('0x3')],'allowNull':![],'unique':_0x333915('0x35'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0xe'),'outbound'),'allowNull':![],'defaultValue':_0x333915('0xe')},'musiconhold':{'type':Sequelize[_0x333915('0x3')],'defaultValue':'default'},'announce':{'type':Sequelize['STRING'],'defaultValue':''},'strategy':{'type':Sequelize['ENUM']('rr','ringall',_0x333915('0x27'),_0x333915('0x3a'),_0x333915('0x28'),'rrmemory',_0x333915('0xd'),_0x333915('0x49'),_0x333915('0x9')),'allowNull':![],'defaultValue':'ringall','set':function(_0x49527d){const _0x3d385c=_0x333915;this[_0x3d385c('0x4c')](_0x3d385c('0x20'),_0x49527d?_0x49527d:_0x3d385c('0xf'));},'get':function(){const _0x4b7533=_0x333915,_0x57526b=this[_0x4b7533('0x3f')](_0x4b7533('0x2d')),_0x161b5a=this['getDataValue'](_0x4b7533('0x46')),_0x1955d2=this[_0x4b7533('0x3f')]('strategy');if(_0x57526b===_0x4b7533('0xe'))return _0x1955d2;if(_0x161b5a===_0x4b7533('0x37')&&_0x1955d2===_0x4b7533('0xf')||_0x161b5a==='booked'&&_0x1955d2==='roundrobin')return _0x1955d2;if(_0x161b5a===_0x4b7533('0x18')||_0x161b5a==='predictive'||_0x161b5a===_0x4b7533('0x13'))return _0x1955d2;return null;}},'servicelevel':{'type':Sequelize[_0x333915('0x2f')](0xb),'defaultValue':0x0},'context':{'type':Sequelize['STRING'],'defaultValue':null},'penaltymemberslimit':{'type':Sequelize[_0x333915('0x2f')](0xb)},'timeout':{'type':Sequelize[_0x333915('0x2f')](0xb),'defaultValue':0xf},'retry':{'type':Sequelize[_0x333915('0x2f')](0xb),'defaultValue':0x2},'timeoutpriority':{'type':Sequelize[_0x333915('0x3')]},'weight':{'type':Sequelize[_0x333915('0x2f')](0xb),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':Sequelize[_0x333915('0x2f')](0xb),'defaultValue':0x0},'autofill':{'type':Sequelize[_0x333915('0x4b')]('yes','no'),'defaultValue':_0x333915('0x36')},'autopause':{'type':Sequelize['ENUM'](_0x333915('0x36'),'no',_0x333915('0xb')),'defaultValue':'no'},'autopausedelay':{'type':Sequelize[_0x333915('0x2f')](0xb)},'autopausebusy':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x36'),'no'),'defaultValue':'no'},'autopauseunavail':{'type':Sequelize[_0x333915('0x4b')]('yes','no'),'defaultValue':'no'},'maxlen':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'setinterfacevar':{'type':Sequelize['ENUM'](_0x333915('0x36'),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x36'),'no'),'defautValue':'no'},'setqueuevar':{'type':Sequelize[_0x333915('0x4b')]('yes','no'),'defaultValue':'no'},'eventmemberstatus':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x36'),'no'),'defaultValue':'no'},'membermacro':{'type':Sequelize['STRING'],'allowNull':!![]},'membergosub':{'type':Sequelize[_0x333915('0x3')],'allowNull':!![]},'announce_frequency':{'type':Sequelize[_0x333915('0x2f')](0xb),'defaultValue':0x0},'min_announce_frequency':{'type':Sequelize[_0x333915('0x2f')](0xb),'defaultValue':0x0},'periodic_announce_frequency':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'random_periodic_announce':{'type':Sequelize[_0x333915('0x4b')]('yes','no'),'defaultValue':'no'},'relative_periodic_announce':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x36'),'no'),'defaultValue':'yes'},'announce_holdtime':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x36'),'no',_0x333915('0x25')),'defaultValue':'no'},'announce_position':{'type':Sequelize[_0x333915('0x3')],'defaultValue':'no'},'announce_to_first_user':{'type':Sequelize['ENUM'](_0x333915('0x36'),'no')},'announce_position_limit':{'type':Sequelize[_0x333915('0x2f')](0xb)},'announce_round_seconds':{'type':Sequelize[_0x333915('0x4b')]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':Sequelize['STRING'],'defaultValue':''},'monitor_type':{'type':Sequelize[_0x333915('0x3')]},'queue_youarenext':{'type':Sequelize['STRING'],'defaultValue':null},'queue_thereare':{'type':Sequelize['STRING'],'defaultValue':null},'queue_callswaiting':{'type':Sequelize[_0x333915('0x3')],'defaultValue':null},'queue_holdtime':{'type':Sequelize[_0x333915('0x3')],'defaultValue':null},'queue_minute':{'type':Sequelize[_0x333915('0x3')],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':Sequelize[_0x333915('0x3')],'defaultValue':null},'queue_seconds':{'type':Sequelize['STRING'],'defaultValue':null},'queue_thankyou':{'type':Sequelize[_0x333915('0x3')],'defaultValue':null},'queue_reporthold':{'type':Sequelize[_0x333915('0x3')]},'queue_quantity1':{'type':Sequelize[_0x333915('0x3')]},'queue_quantity2':{'type':Sequelize['STRING']},'queue_periodic_announce':{'type':Sequelize[_0x333915('0x3')]},'queue_less_than':{'type':Sequelize[_0x333915('0x3')]},'periodic_announce':{'type':Sequelize[_0x333915('0x2e')],'set':function(_0x540bf8){const _0x4dbdd8=_0x333915;this[_0x4dbdd8('0x4c')](_0x4dbdd8('0x24'),_0x540bf8?_0x540bf8[_0x4dbdd8('0x14')](','):[]);},'get':function(){const _0xb3ad85=_0x333915;return this[_0xb3ad85('0x3f')]('periodic_announce')?this[_0xb3ad85('0x3f')](_0xb3ad85('0x24'))[_0xb3ad85('0x40')](','):[];}},'joinempty':{'type':Sequelize[_0x333915('0x3')],'defaultValue':'yes','set':function(_0x3cbdc5){const _0x2ff2cf=_0x333915;this['setDataValue']('joinempty',_0x3cbdc5?_0x3cbdc5[_0x2ff2cf('0x14')](','):undefined);},'get':function(){const _0x2e0882=_0x333915;return this['getDataValue']('joinempty')?this[_0x2e0882('0x3f')](_0x2e0882('0x31'))[_0x2e0882('0x40')](','):undefined;}},'leavewhenempty':{'type':Sequelize[_0x333915('0x3')],'defaultValue':'no','set':function(_0x3776cb){const _0x134487=_0x333915;this[_0x134487('0x4c')](_0x134487('0x1c'),_0x3776cb?_0x3776cb[_0x134487('0x14')](','):undefined);},'get':function(){const _0x4a5eaf=_0x333915;return this['getDataValue'](_0x4a5eaf('0x1c'))?this['getDataValue']('leavewhenempty')[_0x4a5eaf('0x40')](','):undefined;}},'reportholdtime':{'type':Sequelize[_0x333915('0x4b')]('yes','no'),'defaultValue':'no'},'ringinuse':{'type':Sequelize['ENUM'](_0x333915('0x36'),'no'),'defaultValue':'no'},'memberdelay':{'type':Sequelize[_0x333915('0x2f')](0xb),'defaultValue':0x0},'timeoutrestart':{'type':Sequelize['ENUM'](_0x333915('0x36'),'no'),'defaultValue':'no'},'defaultrule':{'type':Sequelize[_0x333915('0x3')]},'description':{'type':Sequelize['STRING']},'acw':{'type':Sequelize[_0x333915('0x47')],'defaultValue':0x0,'set':function(_0x580e4b){const _0x4b7a3b=_0x333915;this['setDataValue'](_0x4b7a3b('0x21'),_0x580e4b),_0x580e4b&&(this['getDataValue']('wrapuptime')<0x2&&this[_0x4b7a3b('0x4c')]('wrapuptime',0x2));}},'acwTimeout':{'type':Sequelize[_0x333915('0x2f')](0xb),'defaultValue':0xa},'dialActive':{'type':Sequelize[_0x333915('0x47')],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'dialMethod':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x5'),'progressive','power',_0x333915('0x29'),_0x333915('0x37')),'defaultValue':_0x333915('0x18'),'comment':'Dial\x20Method.'},'dialLimitChannel':{'type':Sequelize[_0x333915('0x2f')](0x4)[_0x333915('0x3e')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':'Max\x209999\x20channels,\x200\x20means\x20unlimited.'},'dialLimitQueue':{'type':Sequelize[_0x333915('0x2f')](0x4)[_0x333915('0x3e')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x333915('0x3d')},'dialPowerLevel':{'type':Sequelize[_0x333915('0x1d')](0x2)[_0x333915('0x3e')],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':'Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).'},'dialPredictiveOptimization':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x41'),_0x333915('0x48')),'defaultValue':'dropRate','comment':'Only\x20for\x20predictive\x20method.'},'dialPredictiveOptimizationPercentage':{'type':Sequelize[_0x333915('0x1d')](0x2)[_0x333915('0x3e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':'Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)'},'dialPredictiveInterval':{'type':Sequelize[_0x333915('0x2f')](0x3)[_0x333915('0x3e')],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':_0x333915('0x1')},'dialOriginateCallerIdName':{'type':Sequelize['STRING']},'dialOriginateCallerIdNumber':{'type':Sequelize[_0x333915('0x3')]},'dialOriginateTimeout':{'type':Sequelize[_0x333915('0x2f')](0x3)['UNSIGNED'],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':'Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)'},'dialQueueOptions':{'type':Sequelize[_0x333915('0x3')],'defaultValue':_0x333915('0x8'),'comment':_0x333915('0x45')},'dialQueueTimeout':{'type':Sequelize[_0x333915('0x2f')](0x3)[_0x333915('0x3e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x333915('0x1e')},'dialQueueProject':{'type':Sequelize['STRING'],'comment':_0x333915('0x4')},'dialCongestionMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x333915('0x3e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x333915('0x10')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x333915('0x2f')](0x5)[_0x333915('0x3e')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x333915('0x3c')},'dialBusyMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x333915('0x3e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x333915('0x15')},'dialBusyRetryFrequency':{'type':Sequelize[_0x333915('0x2f')](0x5)[_0x333915('0x3e')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x333915('0x12')},'dialNoAnswerMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x333915('0x3e')],'defaultValue':0x3,'comment':_0x333915('0x32')},'dialNoAnswerRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x333915('0x3e')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x333915('0x17')},'dialGlobalMaxRetry':{'type':Sequelize[_0x333915('0x2f')](0x3)['UNSIGNED'],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x333915('0x23')},'dialTimezone':{'type':Sequelize[_0x333915('0x3')],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x333915('0x3')],'defaultValue':_0x333915('0x42')},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialCheckDuplicateType':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x0'),_0x333915('0x34'),'onlyIfOpen'),'defaultValue':_0x333915('0x0')},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x333915('0x33')},'dialAMDInitialSilence':{'type':Sequelize[_0x333915('0x2f')](0x9)[_0x333915('0x3e')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':_0x333915('0x1b')},'dialAMDGreeting':{'type':Sequelize[_0x333915('0x2f')](0x9)[_0x333915('0x3e')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x333915('0x6')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x333915('0x2f')](0x9)[_0x333915('0x3e')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x333915('0x16')},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)[_0x333915('0x3e')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x333915('0x3b')},'dialAMDMinWordLength':{'type':Sequelize[_0x333915('0x2f')](0x9)[_0x333915('0x3e')],'defaultValue':0x64,'validate':{'min':0x0},'comment':_0x333915('0x26')},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x333915('0x2f')](0x9)[_0x333915('0x3e')],'defaultValue':0x32,'validate':{'min':0x0},'comment':_0x333915('0x4a')},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x333915('0x2f')](0x9)[_0x333915('0x3e')],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize['INTEGER'](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':'#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)'},'dialAMDMaximumWordLength':{'type':Sequelize['INTEGER'](0x9)['UNSIGNED'],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x333915('0x1f')},'dialRecallMeTimeout':{'type':Sequelize[_0x333915('0x2f')](0x5)[_0x333915('0x3e')],'validate':{'min':0x1},'defaultValue':0x1e,'comment':'#RecallMe\x20Timeout\x20(min:1)'},'dialRecallInQueue':{'type':Sequelize[_0x333915('0x47')],'defaultValue':0x0,'comment':'Active/Disactive\x20Recall\x20In\x20Queue'},'dialOrderByScheduledAt':{'type':Sequelize[_0x333915('0x4b')](_0x333915('0x19'),_0x333915('0x44')),'defaultValue':_0x333915('0x19')},'dialQueueProject2':{'type':Sequelize[_0x333915('0x3')],'comment':_0x333915('0x4')},'dialAgiAfterHangupClient':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':Sequelize[_0x333915('0x47')],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize['INTEGER'](0x3)[_0x333915('0x3e')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':'Random\x20Last\x20Digit\x20(min:1,\x20max:15)'},'dialCutDigit':{'type':Sequelize[_0x333915('0x2f')](0x3)[_0x333915('0x3e')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x333915('0x2b')},'dialNoSuchNumberMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x333915('0x3e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)'},'dialNoSuchNumberRetryFrequency':{'type':Sequelize[_0x333915('0x2f')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x333915('0x2')},'dialDropMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x333915('0x3e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x333915('0x1a')},'dialDropRetryFrequency':{'type':Sequelize[_0x333915('0x2f')](0x5)[_0x333915('0x3e')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x333915('0x38')},'dialAbandonedMaxRetry':{'type':Sequelize[_0x333915('0x2f')](0x3)[_0x333915('0x3e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x333915('0x2a')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x333915('0x2f')](0x5)[_0x333915('0x3e')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x333915('0x30')},'dialMachineMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x333915('0x7')},'dialMachineRetryFrequency':{'type':Sequelize[_0x333915('0x2f')](0x5)[_0x333915('0x3e')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x333915('0xc')},'dialAgentRejectMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x333915('0x43')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x333915('0x2f')](0x5)[_0x333915('0x3e')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x333915('0xa')},'mandatoryDispositionPauseId':{'type':Sequelize[_0x333915('0x2f')],'allowNull':!![],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x333915('0x47')],'defaultValue':![],'comment':_0x333915('0x2c'),'set':function(_0x13b6d2){const _0x1a0c02=_0x333915;if(!_0x13b6d2)this['setDataValue']('mandatoryDispositionPauseId',null);this[_0x1a0c02('0x4c')](_0x1a0c02('0x39'),_0x13b6d2);}},'dialPredictiveIntervalMaxThreshold':{'type':Sequelize[_0x333915('0x2f')](0x3)[_0x333915('0x3e')],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':Sequelize[_0x333915('0x2f')](0x3)[_0x333915('0x3e')],'defaultValue':0xa,'validate':{'min':0x1,'max':0x64}}}; \ No newline at end of file +const a752_0x1b03=['AgentReject\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','Machine\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','power','BOOLEAN','Originate\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','#Global\x20Max\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','FLOAT','#NoAnswer\x20Retry\x20(min:1,\x20max:999)','#AMD\x20Total\x20Analysis\x20Time','Interval\x20Predictive\x20Minutes\x20(min:5\x20max:30)','roundrobin','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','#Congestion\x20Retry\x20(min:1,\x20max:999)','split','name','NoAnswer\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','07:00-22:00,*,*,*','ENUM','#AMD\x20Maximum\x20Word\x20Length','INTEGER','Cut\x20Digit\x20(min:1,\x20max:15)','once','progressive','#AMD\x20Greeting','ASC','leastrecent','#Drop\x20Retry\x20(min:1,\x20max:999)','joinempty','Active/Disactive\x20AMD','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','acw','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','Only\x20for\x20predictive\x20method.','Active/Disactive\x20Recall\x20In\x20Queue','wrandom','periodic_announce','inbound','yes','Drop\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','leavewhenempty','#Busy\x20Retry\x20(min:1,\x20max:999)','Abandoned\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','predictive','Congestion\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','#AMD\x20After\x20Greeting\x20Silence','Dial\x20Method.','linear','#NoSuchNumber\x20Retry\x20(min:1,\x20max:999)','ringall','never','DESC','all','default','agentBusyFactor','dropRate','Max\x209999\x20channels,\x200\x20means\x20unlimited.','onlyIfOpen','Predictive\x20Optimization\x20Percentage\x20(min:\x201,\x20max:\x2095)','#RecallMe\x20Timeout\x20(min:1)','join','preview','#AgentReject\x20Retry\x20(min:1,\x20max:999)','tTxX','Busy\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','booked','NoSuchNumber\x20Retry\x20Frequency\x20Minutes\x20(min:1,\x20max:99999)','strategy','Power\x20Level:\x20Calls\x20for\x20agents\x20(min:1,\x20max:10).','UNSIGNED','random','sequelize','Random\x20Last\x20Digit\x20(min:1,\x20max:15)','TEXT','type','getDataValue','always','exports','rrmemory','wrapuptime','#Abandoned\x20Retry\x20(min:1,\x20max:999)','setDataValue','mandatoryDispositionPauseId','mandatoryDisposition','AGI\x20queue\x20option\x20(use:\x20agi://127.0.0.1/square,)','STRING','https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Queue','Max\x209999\x20member\x20in\x20queue(min:1,\x20max:9999),\x200\x20means\x20unlimited.'];(function(_0x55405b,_0x1b03ab){const _0x33065c=function(_0x2755c2){while(--_0x2755c2){_0x55405b['push'](_0x55405b['shift']());}};_0x33065c(++_0x1b03ab);}(a752_0x1b03,0x17a));const a752_0x3306=function(_0x55405b,_0x1b03ab){_0x55405b=_0x55405b-0x0;let _0x33065c=a752_0x1b03[_0x55405b];return _0x33065c;};const _0x15049f=a752_0x3306;'use strict';const Sequelize=require(_0x15049f('0x2d'));module[_0x15049f('0x33')]={'name':{'type':Sequelize[_0x15049f('0x3b')],'allowNull':![],'unique':_0x15049f('0x4d'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'type':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xb'),'outbound'),'allowNull':![],'defaultValue':_0x15049f('0xb')},'musiconhold':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':_0x15049f('0x1b')},'announce':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':''},'strategy':{'type':Sequelize[_0x15049f('0x50')]('rr',_0x15049f('0x17'),_0x15049f('0x0'),'fewestcalls',_0x15049f('0x2c'),_0x15049f('0x34'),_0x15049f('0x15'),_0x15049f('0x9'),'rrordered'),'allowNull':![],'defaultValue':_0x15049f('0x17'),'set':function(_0x2755c2){const _0x41f871=_0x15049f;this[_0x41f871('0x37')](_0x41f871('0x29'),_0x2755c2?_0x2755c2:'rrmemory');},'get':function(){const _0x3765b2=_0x15049f,_0x39c9a7=this[_0x3765b2('0x31')](_0x3765b2('0x30')),_0x208f8f=this['getDataValue']('dialMethod'),_0xd80666=this['getDataValue'](_0x3765b2('0x29'));if(_0x39c9a7===_0x3765b2('0xb'))return _0xd80666;if(_0x208f8f===_0x3765b2('0x27')&&_0xd80666===_0x3765b2('0x34')||_0x208f8f==='booked'&&_0xd80666===_0x3765b2('0x49'))return _0xd80666;if(_0x208f8f===_0x3765b2('0x55')||_0x208f8f===_0x3765b2('0x11')||_0x208f8f===_0x3765b2('0x40'))return _0xd80666;return null;}},'servicelevel':{'type':Sequelize[_0x15049f('0x52')](0xb),'defaultValue':0x0},'context':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':null},'penaltymemberslimit':{'type':Sequelize['INTEGER'](0xb)},'timeout':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0xf},'retry':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x2},'timeoutpriority':{'type':Sequelize[_0x15049f('0x3b')]},'weight':{'type':Sequelize[_0x15049f('0x52')](0xb),'allowNull':!![],'defaultValue':0x0},'wrapuptime':{'type':Sequelize[_0x15049f('0x52')](0xb),'defaultValue':0x0},'autofill':{'type':Sequelize['ENUM'](_0x15049f('0xc'),'no'),'defaultValue':'yes'},'autopause':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no',_0x15049f('0x1a')),'defaultValue':'no'},'autopausedelay':{'type':Sequelize[_0x15049f('0x52')](0xb)},'autopausebusy':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defaultValue':'no'},'autopauseunavail':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defaultValue':'no'},'maxlen':{'type':Sequelize[_0x15049f('0x52')](0xb),'defaultValue':0x0},'setinterfacevar':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defaultValue':'no'},'setqueueentryvar':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defautValue':'no'},'setqueuevar':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defaultValue':'no'},'eventmemberstatus':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defaultValue':'no'},'membermacro':{'type':Sequelize[_0x15049f('0x3b')],'allowNull':!![]},'membergosub':{'type':Sequelize['STRING'],'allowNull':!![]},'announce_frequency':{'type':Sequelize[_0x15049f('0x52')](0xb),'defaultValue':0x0},'min_announce_frequency':{'type':Sequelize['INTEGER'](0xb),'defaultValue':0x0},'periodic_announce_frequency':{'type':Sequelize[_0x15049f('0x52')](0xb),'defaultValue':0x0},'random_periodic_announce':{'type':Sequelize[_0x15049f('0x50')]('yes','no'),'defaultValue':'no'},'relative_periodic_announce':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defaultValue':_0x15049f('0xc')},'announce_holdtime':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no',_0x15049f('0x54')),'defaultValue':'no'},'announce_position':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':'no'},'announce_to_first_user':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no')},'announce_position_limit':{'type':Sequelize[_0x15049f('0x52')](0xb)},'announce_round_seconds':{'type':Sequelize[_0x15049f('0x50')]('0','5','10','15','20','30'),'defaultValue':'0'},'monitor_format':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':''},'monitor_type':{'type':Sequelize[_0x15049f('0x3b')]},'queue_youarenext':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':null},'queue_thereare':{'type':Sequelize['STRING'],'defaultValue':null},'queue_callswaiting':{'type':Sequelize['STRING'],'defaultValue':null},'queue_holdtime':{'type':Sequelize['STRING'],'defaultValue':null},'queue_minute':{'type':Sequelize[_0x15049f('0x3b')],'allowNull':!![],'defaultValue':null},'queue_minutes':{'type':Sequelize['STRING'],'defaultValue':null},'queue_seconds':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':null},'queue_thankyou':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':null},'queue_reporthold':{'type':Sequelize[_0x15049f('0x3b')]},'queue_quantity1':{'type':Sequelize[_0x15049f('0x3b')]},'queue_quantity2':{'type':Sequelize[_0x15049f('0x3b')]},'queue_periodic_announce':{'type':Sequelize[_0x15049f('0x3b')]},'queue_less_than':{'type':Sequelize[_0x15049f('0x3b')]},'periodic_announce':{'type':Sequelize[_0x15049f('0x2f')],'set':function(_0x379246){const _0x50305d=_0x15049f;this[_0x50305d('0x37')](_0x50305d('0xa'),_0x379246?_0x379246[_0x50305d('0x22')](','):[]);},'get':function(){const _0x1c35b1=_0x15049f;return this[_0x1c35b1('0x31')](_0x1c35b1('0xa'))?this[_0x1c35b1('0x31')](_0x1c35b1('0xa'))[_0x1c35b1('0x4c')](','):[];}},'joinempty':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':_0x15049f('0xc'),'set':function(_0x35e11b){const _0x34b49b=_0x15049f;this[_0x34b49b('0x37')](_0x34b49b('0x2'),_0x35e11b?_0x35e11b[_0x34b49b('0x22')](','):undefined);},'get':function(){const _0x2af76f=_0x15049f;return this[_0x2af76f('0x31')](_0x2af76f('0x2'))?this[_0x2af76f('0x31')](_0x2af76f('0x2'))[_0x2af76f('0x4c')](','):undefined;}},'leavewhenempty':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':'no','set':function(_0x4f61d7){const _0x1a31cb=_0x15049f;this[_0x1a31cb('0x37')]('leavewhenempty',_0x4f61d7?_0x4f61d7[_0x1a31cb('0x22')](','):undefined);},'get':function(){const _0x4f08af=_0x15049f;return this['getDataValue'](_0x4f08af('0xe'))?this[_0x4f08af('0x31')](_0x4f08af('0xe'))[_0x4f08af('0x4c')](','):undefined;}},'reportholdtime':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defaultValue':'no'},'ringinuse':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0xc'),'no'),'defaultValue':'no'},'memberdelay':{'type':Sequelize[_0x15049f('0x52')](0xb),'defaultValue':0x0},'timeoutrestart':{'type':Sequelize[_0x15049f('0x50')]('yes','no'),'defaultValue':'no'},'defaultrule':{'type':Sequelize['STRING']},'description':{'type':Sequelize[_0x15049f('0x3b')]},'acw':{'type':Sequelize[_0x15049f('0x41')],'defaultValue':0x0,'set':function(_0x34facf){const _0x50c009=_0x15049f;this[_0x50c009('0x37')](_0x50c009('0x5'),_0x34facf),_0x34facf&&(this[_0x50c009('0x31')](_0x50c009('0x35'))<0x2&&this['setDataValue']('wrapuptime',0x2));}},'acwTimeout':{'type':Sequelize[_0x15049f('0x52')](0xb),'defaultValue':0xa},'dialActive':{'type':Sequelize[_0x15049f('0x41')],'defaultValue':0x0,'comment':'Active/Disactive\x20Campaign'},'dialMethod':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0x23'),_0x15049f('0x55'),_0x15049f('0x40'),_0x15049f('0x11'),_0x15049f('0x27')),'defaultValue':_0x15049f('0x55'),'comment':_0x15049f('0x14')},'dialLimitChannel':{'type':Sequelize['INTEGER'](0x4)[_0x15049f('0x2b')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x15049f('0x1e')},'dialLimitQueue':{'type':Sequelize[_0x15049f('0x52')](0x4)[_0x15049f('0x2b')],'defaultValue':0x0,'validate':{'min':0x0,'max':0x270f},'comment':_0x15049f('0x3d')},'dialPowerLevel':{'type':Sequelize[_0x15049f('0x45')](0x2)[_0x15049f('0x2b')],'defaultValue':0x1,'validate':{'min':0x1,'max':0xa},'comment':_0x15049f('0x2a')},'dialPredictiveOptimization':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0x1c'),_0x15049f('0x1d')),'defaultValue':'dropRate','comment':_0x15049f('0x7')},'dialPredictiveOptimizationPercentage':{'type':Sequelize[_0x15049f('0x45')](0x2)[_0x15049f('0x2b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5f},'comment':_0x15049f('0x20')},'dialPredictiveInterval':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'defaultValue':0xa,'validate':{'min':0x5,'max':0x1e},'comment':_0x15049f('0x48')},'dialOriginateCallerIdName':{'type':Sequelize[_0x15049f('0x3b')]},'dialOriginateCallerIdNumber':{'type':Sequelize['STRING']},'dialOriginateTimeout':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'defaultValue':0x1e,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15049f('0x42')},'dialQueueOptions':{'type':Sequelize['STRING'],'defaultValue':_0x15049f('0x25'),'comment':_0x15049f('0x3c')},'dialQueueTimeout':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15049f('0x4')},'dialQueueProject':{'type':Sequelize[_0x15049f('0x3b')],'comment':_0x15049f('0x3a')},'dialCongestionMaxRetry':{'type':Sequelize[_0x15049f('0x52')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15049f('0x4b')},'dialCongestionRetryFrequency':{'type':Sequelize[_0x15049f('0x52')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15049f('0x12')},'dialBusyMaxRetry':{'type':Sequelize[_0x15049f('0x52')](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15049f('0xf')},'dialBusyRetryFrequency':{'type':Sequelize[_0x15049f('0x52')](0x5)['UNSIGNED'],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15049f('0x26')},'dialNoAnswerMaxRetry':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'defaultValue':0x3,'comment':_0x15049f('0x46')},'dialNoAnswerRetryFrequency':{'type':Sequelize[_0x15049f('0x52')](0x5)[_0x15049f('0x2b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15049f('0x4e')},'dialGlobalMaxRetry':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'validate':{'min':0x1,'max':0x3e7},'defaultValue':0x4,'comment':_0x15049f('0x43')},'dialTimezone':{'type':Sequelize['STRING'],'defaultValue':null},'dialGlobalInterval':{'type':Sequelize[_0x15049f('0x3b')],'defaultValue':_0x15049f('0x4f')},'dialPrefix':{'type':Sequelize['STRING'],'defaultValue':null},'dialCheckDuplicateType':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0x32'),_0x15049f('0x18'),_0x15049f('0x1f')),'defaultValue':_0x15049f('0x32')},'dialAMDActive':{'type':Sequelize['BOOLEAN'],'defaultValue':0x0,'comment':_0x15049f('0x3')},'dialAMDInitialSilence':{'type':Sequelize['INTEGER'](0x9)[_0x15049f('0x2b')],'defaultValue':0x9c4,'validate':{'min':0x0},'comment':'#AMD\x20Initial\x20Silence'},'dialAMDGreeting':{'type':Sequelize[_0x15049f('0x52')](0x9)[_0x15049f('0x2b')],'defaultValue':0x5dc,'validate':{'min':0x0},'comment':_0x15049f('0x56')},'dialAMDAfterGreetingSilence':{'type':Sequelize[_0x15049f('0x52')](0x9)[_0x15049f('0x2b')],'defaultValue':0x320,'validate':{'min':0x0},'comment':_0x15049f('0x13')},'dialAMDTotalAnalysisTime':{'type':Sequelize['INTEGER'](0x9)[_0x15049f('0x2b')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x15049f('0x47')},'dialAMDMinWordLength':{'type':Sequelize[_0x15049f('0x52')](0x9)[_0x15049f('0x2b')],'defaultValue':0x64,'validate':{'min':0x0},'comment':'#AMD\x20Min\x20Word\x20Length'},'dialAMDBetweenWordsSilence':{'type':Sequelize[_0x15049f('0x52')](0x9)[_0x15049f('0x2b')],'defaultValue':0x32,'validate':{'min':0x0},'comment':'#AMD\x20Between\x20Words\x20Silence'},'dialAMDMaximumNumberOfWords':{'type':Sequelize[_0x15049f('0x52')](0x9)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x0},'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'},'dialAMDSilenceThreshold':{'type':Sequelize[_0x15049f('0x52')](0x5)[_0x15049f('0x2b')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x15049f('0x44')},'dialAMDMaximumWordLength':{'type':Sequelize['INTEGER'](0x9)[_0x15049f('0x2b')],'defaultValue':0x1388,'validate':{'min':0x0},'comment':_0x15049f('0x51')},'dialRecallMeTimeout':{'type':Sequelize[_0x15049f('0x52')](0x5)[_0x15049f('0x2b')],'validate':{'min':0x1},'defaultValue':0x1e,'comment':_0x15049f('0x21')},'dialRecallInQueue':{'type':Sequelize[_0x15049f('0x41')],'defaultValue':0x0,'comment':_0x15049f('0x8')},'dialOrderByScheduledAt':{'type':Sequelize[_0x15049f('0x50')](_0x15049f('0x19'),_0x15049f('0x57')),'defaultValue':_0x15049f('0x19')},'dialQueueProject2':{'type':Sequelize[_0x15049f('0x3b')],'comment':_0x15049f('0x3a')},'dialAgiAfterHangupClient':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'dialAgiAfterHangupAgent':{'type':Sequelize[_0x15049f('0x41')],'defaultValue':![]},'dialRandomLastDigitCallerIdNumber':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x15049f('0x2e')},'dialCutDigit':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'validate':{'min':0x0,'max':0xf},'defaultValue':0x0,'comment':_0x15049f('0x53')},'dialNoSuchNumberMaxRetry':{'type':Sequelize['INTEGER'](0x3)[_0x15049f('0x2b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15049f('0x16')},'dialNoSuchNumberRetryFrequency':{'type':Sequelize['INTEGER'](0x5)[_0x15049f('0x2b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15049f('0x28')},'dialDropMaxRetry':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15049f('0x1')},'dialDropRetryFrequency':{'type':Sequelize[_0x15049f('0x52')](0x5)[_0x15049f('0x2b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15049f('0xd')},'dialAbandonedMaxRetry':{'type':Sequelize['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15049f('0x36')},'dialAbandonedRetryFrequency':{'type':Sequelize[_0x15049f('0x52')](0x5)[_0x15049f('0x2b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15049f('0x10')},'dialMachineMaxRetry':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':'#Machine\x20Retry\x20(min:1,\x20max:999)'},'dialMachineRetryFrequency':{'type':Sequelize[_0x15049f('0x52')](0x5)[_0x15049f('0x2b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15049f('0x3f')},'dialAgentRejectMaxRetry':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x15049f('0x24')},'dialAgentRejectRetryFrequency':{'type':Sequelize[_0x15049f('0x52')](0x5)[_0x15049f('0x2b')],'validate':{'min':0x1,'max':0x1869f},'defaultValue':0x96,'comment':_0x15049f('0x3e')},'mandatoryDispositionPauseId':{'type':Sequelize[_0x15049f('0x52')],'allowNull':!![],'comment':_0x15049f('0x4a')},'mandatoryDisposition':{'type':Sequelize[_0x15049f('0x41')],'defaultValue':![],'comment':_0x15049f('0x6'),'set':function(_0x1921f8){const _0x54b6d6=_0x15049f;if(!_0x1921f8)this[_0x54b6d6('0x37')](_0x54b6d6('0x38'),null);this['setDataValue'](_0x54b6d6('0x39'),_0x1921f8);}},'dialPredictiveIntervalMaxThreshold':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'defaultValue':0x14,'validate':{'min':0x1,'max':0x64}},'dialPredictiveIntervalMinThreshold':{'type':Sequelize[_0x15049f('0x52')](0x3)[_0x15049f('0x2b')],'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 0b5dfd8..8016da1 100644 --- a/server/api/voiceQueue/voiceQueue.controller.js +++ b/server/api/voiceQueue/voiceQueue.controller.js @@ -1 +1 @@ -const a753_0x42e0=['set','phone\x20IS\x20NOT\x20NULL','SELECT','flatMap','attributes','VoiceQueueId','inbound','push','json','phone','cm_hopper_final','getHopperBlacks','name','map','includeAll','Content-Range','ids','voicePause','always','squel','online','util','ListId','send','VoiceQueues','Unable\x20to\x20retrieve\x20the\x20current\x20user','UserProfileResource','format','find','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','every','getAgents','UserProfileSection','user','SIP/%s','updatedAt','stack','all','getHopperHistories','addAgents','keys','body','insert','COALESCE(phone,\x27\x27)','VoiceQueueId\x20=\x20?','api','CmHopperFinal','UserVoiceQueueRt','order','COALESCE(calleridnum,\x27\x27)','filters','getMembers','findAll','CmHopperHistory','addLists','getHopperFinals','show','findOne','omit','fromQuery','../../config/logger','ContactId','isNil','cm_hopper','dialCheckDuplicateType','count','isEmpty','rawAttributes','update','CmHopper','../../components/parsers/qs','get','userProfileId','../../mysqldb','limit','getTeams','rows','deletedAt\x20IS\x20NULL','type','getLists','removeTeams','includes','select','isArray','UserVoiceQueue','fields','nolimit','offset','include','emit','./voiceQueue.socket','value','scheduledAt','VoiceQueue','toString','length','like','addBlackLists','interface','where','tq.TeamId','createdAt','CmList','model','ut.UserId\x20=\x20?','options','../../rediscache','status','filter','autoAssociation','transaction','ignore','removeAgents','getHoppers','phone\x20NOT\x20IN\x20(?)','outbound','User','NOW()','clone','into','removeLists','team_has_voice_queues','Team','CmHopperBlack','userVoiceQueue:remove','destroy','each','userVoiceQueue:save','ut.TeamId\x20=\x20tq.TeamId','key','TeamId','role','cm_hopper_black','addTeams','teams','index','undefined','then','user_has_teams','upsert','QueueCampaigns','removeBlackLists','field','fieldName','cm_contacts','penalty','ListId\x20=\x20?','getBlackLists','join','create','CmListId','lodash','catch','Agents','sort','pick','union','params','query','sequelize','forEach','error','merge','register','intersection','from'];(function(_0x5aa522,_0x42e0ff){const _0x3288c6=function(_0x2072ab){while(--_0x2072ab){_0x5aa522['push'](_0x5aa522['shift']());}};_0x3288c6(++_0x42e0ff);}(a753_0x42e0,0xd4));const a753_0x3288=function(_0x5aa522,_0x42e0ff){_0x5aa522=_0x5aa522-0x0;let _0x3288c6=a753_0x42e0[_0x5aa522];return _0x3288c6;};const _0x4b3303=a753_0x3288;'use strict';const util=require(_0x4b3303('0x8d')),_=require(_0x4b3303('0x69')),squel=require(_0x4b3303('0x8b')),qs=require(_0x4b3303('0x18')),logger=require(_0x4b3303('0xe'))(_0x4b3303('0xa5')),{getSocket}=require(_0x4b3303('0x3c')),socket=getSocket(),db=require(_0x4b3303('0x1b'))['db'],{Op,QueryTypes}=require(_0x4b3303('0x71'));require(_0x4b3303('0x2c'))[_0x4b3303('0x75')](socket);function respondWithStatusCode(_0x2072ab,_0xcc7767){return _0xcc7767=_0xcc7767||0xcc,function(_0x56d6e1){const _0x170bbf=a753_0x3288;if(_0x56d6e1)return _0x2072ab['sendStatus'](_0xcc7767);return _0x2072ab[_0x170bbf('0x3d')](_0xcc7767)['end']();};}function respondWithResult(_0x55a244,_0x1f4e76){return _0x1f4e76=_0x1f4e76||0xc8,function(_0x11436b){const _0x1f7689=a753_0x3288;if(_0x11436b)return _0x55a244[_0x1f7689('0x3d')](_0x1f4e76)[_0x1f7689('0x80')](_0x11436b);};}function respondWithFilteredResult(_0x1e8b97,_0x433530){return function(_0x43b09a){const _0x37abf4=a753_0x3288;if(_0x43b09a){const _0x5cc923=_0x43b09a[_0x37abf4('0x13')],_0x14dbe2=_0x433530[_0x37abf4('0x29')];let _0xd6e8fc=_0x433530[_0x37abf4('0x29')]+_0x433530[_0x37abf4('0x1c')],_0x3f0580;return _0xd6e8fc>=_0x5cc923?(_0xd6e8fc=_0x5cc923,_0x3f0580=0xc8):_0x3f0580=0xce,_0x1e8b97[_0x37abf4('0x3d')](_0x3f0580),_0x1e8b97[_0x37abf4('0x78')](_0x37abf4('0x87'),_0x14dbe2+'-'+_0xd6e8fc+'/'+_0x5cc923)[_0x37abf4('0x80')](_0x43b09a);}return null;};}function saveUpdates(_0x983aae){return function(_0x363af8){const _0x24bb16=a753_0x3288;if(_0x363af8)return _0x363af8[_0x24bb16('0x16')](_0x983aae)[_0x24bb16('0x5b')](function(_0x8e12d5){return _0x8e12d5;});return null;};}function removeEntity(_0x12c10b){return function(_0x9a7c54){const _0x220b53=a753_0x3288;if(_0x9a7c54)return _0x9a7c54[_0x220b53('0x4f')]()[_0x220b53('0x5b')](function(){const _0xa5495d=_0x220b53,_0x5254e1=_0x9a7c54[_0xa5495d('0x19')]({'plain':!![]}),_0x2d7b4f=[{'name':_0xa5495d('0x90'),'value':_0xa5495d('0x7e'),'ignore':![]},{'name':_0xa5495d('0x5e'),'value':_0xa5495d('0x45'),'ignore':![]}],_0x4aed03=_(_0x2d7b4f)[_0xa5495d('0x3e')](_0xa5495d('0x41'))[_0xa5495d('0x85')](_0xa5495d('0x2d'))[_0xa5495d('0x2d')]();if(_[_0xa5495d('0x23')](_0x4aed03,_0x5254e1[_0xa5495d('0x20')]))return;const _0x1999ff=_['find'](_0x2d7b4f,[_0xa5495d('0x2d'),_0x5254e1[_0xa5495d('0x20')]])[_0xa5495d('0x84')];return db[_0xa5495d('0x92')][_0xa5495d('0x4f')]({'where':{'type':_0x1999ff,'resourceId':_0x5254e1['id']}})[_0xa5495d('0x5b')](function(){return _0x9a7c54;});})[_0x220b53('0x5b')](function(){const _0xbb3f75=_0x220b53;_0x12c10b[_0xbb3f75('0x3d')](0xcc)['end']();});};}function handleEntityNotFound(_0x41b572){return function(_0x317316){return!_0x317316&&_0x41b572['sendStatus'](0x194),_0x317316;};}function handleError(_0x34c03c,_0x16bd58){return _0x16bd58=_0x16bd58||0x1f4,function(_0x59d521){const _0x50697d=a753_0x3288;logger[_0x50697d('0x73')](_0x59d521[_0x50697d('0x9c')]),_0x59d521['name']&&delete _0x59d521['name'],_0x34c03c[_0x50697d('0x3d')](_0x16bd58)[_0x50697d('0x8f')](_0x59d521);};}exports[_0x4b3303('0x59')]=function(_0x46976a,_0x2233ab){const _0x1fe28d=_0x4b3303;let _0x5199de={};const _0xa9768e={},_0x1402c4={'count':0x0,'rows':[]},_0x874c4=_['map'](db[_0x1fe28d('0x2f')][_0x1fe28d('0x15')],function(_0x8debf5){const _0x3b641d=_0x1fe28d;return{'name':_0x8debf5[_0x3b641d('0x61')],'type':_0x8debf5[_0x3b641d('0x20')][_0x3b641d('0x53')]};});_0xa9768e['model']=_['map'](_0x874c4,_0x1fe28d('0x84')),_0xa9768e['query']=_[_0x1fe28d('0xa0')](_0x46976a[_0x1fe28d('0x70')]),_0xa9768e[_0x1fe28d('0x4')]=_[_0x1fe28d('0x76')](_0xa9768e[_0x1fe28d('0x39')],_0xa9768e[_0x1fe28d('0x70')]),_0x5199de['attributes']=_[_0x1fe28d('0x76')](_0xa9768e[_0x1fe28d('0x39')],qs[_0x1fe28d('0x27')](_0x46976a['query'][_0x1fe28d('0x27')])),_0x5199de[_0x1fe28d('0x7c')]=_0x5199de[_0x1fe28d('0x7c')][_0x1fe28d('0x31')]?_0x5199de['attributes']:_0xa9768e[_0x1fe28d('0x39')];typeof _0x46976a[_0x1fe28d('0x70')][_0x1fe28d('0x28')]===_0x1fe28d('0x5a')&&(_0x5199de[_0x1fe28d('0x1c')]=qs[_0x1fe28d('0x1c')](_0x46976a[_0x1fe28d('0x70')][_0x1fe28d('0x1c')]),_0x5199de[_0x1fe28d('0x29')]=qs[_0x1fe28d('0x29')](_0x46976a['query'][_0x1fe28d('0x29')]));_0x5199de[_0x1fe28d('0x2')]=qs['sort'](_0x46976a[_0x1fe28d('0x70')][_0x1fe28d('0x6c')]),_0x5199de[_0x1fe28d('0x35')]=qs[_0x1fe28d('0x4')](_['pick'](_0x46976a[_0x1fe28d('0x70')],_0xa9768e['filters']),_0x874c4);_0x46976a['query'][_0x1fe28d('0x3e')]&&(_0x5199de['where']=_[_0x1fe28d('0x74')](_0x5199de[_0x1fe28d('0x35')],{[Op['or']]:_[_0x1fe28d('0x85')](_0x874c4,function(_0x42b61b){const _0x52d0ca=_0x1fe28d;if(_0x42b61b['type']!=='VIRTUAL'){const _0xd2dd57={};return _0xd2dd57[_0x42b61b['name']]={[Op['like']]:'%'+_0x46976a[_0x52d0ca('0x70')][_0x52d0ca('0x3e')]+'%'},_0xd2dd57;}})}));_0x5199de=_[_0x1fe28d('0x74')]({},_0x5199de,_0x46976a[_0x1fe28d('0x3b')]);const _0x8af327={'where':_0x5199de[_0x1fe28d('0x35')]};return db[_0x1fe28d('0x2f')]['count'](_0x8af327)[_0x1fe28d('0x5b')](function(_0x30f31e){const _0x479289=_0x1fe28d;return _0x1402c4['count']=_0x30f31e,_0x46976a[_0x479289('0x70')][_0x479289('0x86')]&&(_0x5199de[_0x479289('0x2a')]=[{'all':!![]}]),db[_0x479289('0x2f')][_0x479289('0x6')](_0x5199de);})[_0x1fe28d('0x5b')](function(_0x291541){const _0x5ec14d=_0x1fe28d;return _0x1402c4[_0x5ec14d('0x1e')]=_0x291541,_0x1402c4;})['then'](respondWithFilteredResult(_0x2233ab,_0x5199de))[_0x1fe28d('0x6a')](handleError(_0x2233ab,null));},exports[_0x4b3303('0xa')]=function(_0x1b0606,_0x3ebba4){const _0x46b42b=_0x4b3303;let _0x46dc7c={'raw':![],'where':{'id':_0x1b0606['params']['id']}};const _0x401053={};return _0x401053[_0x46b42b('0x39')]=_[_0x46b42b('0xa0')](db[_0x46b42b('0x2f')][_0x46b42b('0x15')]),_0x401053[_0x46b42b('0x70')]=_['keys'](_0x1b0606[_0x46b42b('0x70')]),_0x401053[_0x46b42b('0x4')]=_[_0x46b42b('0x76')](_0x401053[_0x46b42b('0x39')],_0x401053[_0x46b42b('0x70')]),_0x46dc7c[_0x46b42b('0x7c')]=_[_0x46b42b('0x76')](_0x401053['model'],qs['fields'](_0x1b0606[_0x46b42b('0x70')][_0x46b42b('0x27')])),_0x46dc7c[_0x46b42b('0x7c')]=_0x46dc7c[_0x46b42b('0x7c')][_0x46b42b('0x31')]?_0x46dc7c['attributes']:_0x401053[_0x46b42b('0x39')],_0x1b0606['query'][_0x46b42b('0x86')]&&(_0x46dc7c['include']=[{'all':!![]}]),_0x46dc7c=_['merge']({},_0x46dc7c,_0x1b0606[_0x46b42b('0x3b')]),db[_0x46b42b('0x2f')][_0x46b42b('0xb')](_0x46dc7c)[_0x46b42b('0x5b')](handleEntityNotFound(_0x3ebba4,null))[_0x46b42b('0x5b')](respondWithResult(_0x3ebba4,null))['catch'](handleError(_0x3ebba4,null));},exports[_0x4b3303('0x67')]=function(_0x4ebead,_0x3bf96b){const _0x120526=_0x4b3303;return db[_0x120526('0x2f')]['create'](_0x4ebead[_0x120526('0xa1')],{})['then'](function(_0x422cbc){const _0x4788b2=_0x120526,_0x4959dc=_0x4ebead[_0x4788b2('0x99')][_0x4788b2('0x19')]({'plain':!![]});if(!_0x4959dc)throw new Error(_0x4788b2('0x91'));if(_0x4959dc['role']===_0x4788b2('0x99')){const _0x5261c4=_0x422cbc[_0x4788b2('0x19')]({'plain':!![]}),_0x24f08e=[{'name':_0x4788b2('0x90'),'value':_0x4788b2('0x7e')},{'name':'QueueCampaigns','value':'outbound'}],_0x519c7b=_['find'](_0x24f08e,[_0x4788b2('0x2d'),_0x5261c4[_0x4788b2('0x20')]])[_0x4788b2('0x84')];return db['UserProfileSection']['findOne']({'where':{'name':_0x519c7b,'userProfileId':_0x4959dc[_0x4788b2('0x1a')]},'raw':!![]})['then'](function(_0x22419e){const _0x3a7691=_0x4788b2;return _0x22419e&&_0x22419e['autoAssociation']===0x0?db[_0x3a7691('0x92')]['create']({'name':_0x5261c4[_0x3a7691('0x84')],'resourceId':_0x5261c4['id'],'type':_0x22419e[_0x3a7691('0x84')],'sectionId':_0x22419e['id']},{})[_0x3a7691('0x5b')](function(){return _0x422cbc;}):_0x422cbc;})[_0x4788b2('0x6a')](function(_0x1cdcc3){const _0x1e40a2=_0x4788b2;logger[_0x1e40a2('0x73')](_0x1e40a2('0x95'),_0x1cdcc3);throw _0x1cdcc3;});}return _0x422cbc;})[_0x120526('0x5b')](respondWithResult(_0x3bf96b,0xc9))[_0x120526('0x6a')](handleError(_0x3bf96b,null));},exports[_0x4b3303('0x48')]=function(_0x59cf69,_0x56cd01){const _0x281aa4=_0x4b3303;let _0x2d0e9d={'where':{'id':_0x59cf69[_0x281aa4('0x6f')]['id']}};const _0x5567cf={};return _0x5567cf['model']=_['keys'](db[_0x281aa4('0x2f')]['rawAttributes']),_0x2d0e9d['attributes']=_[_0x281aa4('0x76')](_0x5567cf[_0x281aa4('0x39')],qs['fields'](_0x59cf69[_0x281aa4('0x70')][_0x281aa4('0x27')])),_0x2d0e9d[_0x281aa4('0x7c')]=_0x2d0e9d['attributes']['length']?_0x2d0e9d[_0x281aa4('0x7c')]:_0x5567cf[_0x281aa4('0x39')],_0x59cf69[_0x281aa4('0x70')][_0x281aa4('0x86')]&&(_0x2d0e9d[_0x281aa4('0x2a')]=[{'all':!![]}]),_0x2d0e9d=_[_0x281aa4('0x74')]({},_0x2d0e9d,_0x59cf69['options']),db[_0x281aa4('0x2f')][_0x281aa4('0xb')](_0x2d0e9d)[_0x281aa4('0x5b')](handleEntityNotFound(_0x56cd01,null))[_0x281aa4('0x5b')](function(_0x5aa1de){const _0xf23f0=_0x281aa4;if(_0x5aa1de){let _0x2d5c42=_0x5aa1de[_0xf23f0('0x19')]({'plain':!![]});return _0x2d5c42=qs[_0xf23f0('0xc')](_0x2d5c42,['id',_0xf23f0('0x37'),_0xf23f0('0x9b')]),_0x59cf69[_0xf23f0('0xa1')]=_[_0xf23f0('0xc')](_0x59cf69['body'],['id',_0xf23f0('0x37'),_0xf23f0('0x9b')]),db['VoiceQueue'][_0xf23f0('0x67')](_['merge'](_0x2d5c42,_0x59cf69['body']),{'include':_0x59cf69['query']['includeAll']?[{'all':!![]}]:undefined})[_0xf23f0('0x5b')](function(_0x167498){const _0x27d2b3=_0xf23f0,_0xe98a6c=_0x59cf69[_0x27d2b3('0x99')][_0x27d2b3('0x19')]({'plain':!![]});if(!_0xe98a6c)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0xe98a6c[_0x27d2b3('0x55')]===_0x27d2b3('0x99')){const _0x1c445b=_0x167498['get']({'plain':!![]}),_0x47a338=[{'name':_0x27d2b3('0x90'),'value':'inbound'},{'name':_0x27d2b3('0x5e'),'value':_0x27d2b3('0x45')}],_0x312165=_[_0x27d2b3('0x94')](_0x47a338,[_0x27d2b3('0x2d'),_0x1c445b[_0x27d2b3('0x20')]])[_0x27d2b3('0x84')];return db[_0x27d2b3('0x98')][_0x27d2b3('0xb')]({'where':{'name':_0x312165,'userProfileId':_0xe98a6c[_0x27d2b3('0x1a')]},'raw':!![]})[_0x27d2b3('0x5b')](function(_0x1372c3){const _0x560a51=_0x27d2b3;return _0x1372c3&&_0x1372c3[_0x560a51('0x3f')]===0x0?db['UserProfileResource'][_0x560a51('0x67')]({'name':_0x1c445b[_0x560a51('0x84')],'resourceId':_0x1c445b['id'],'type':_0x1372c3[_0x560a51('0x84')],'sectionId':_0x1372c3['id']},{})[_0x560a51('0x5b')](function(){return _0x167498;}):_0x167498;})['catch'](function(_0x678226){const _0x4639c9=_0x27d2b3;logger[_0x4639c9('0x73')](_0x4639c9('0x95'),_0x678226);throw _0x678226;});}return _0x167498;});}})[_0x281aa4('0x5b')](respondWithResult(_0x56cd01,0xc9))[_0x281aa4('0x6a')](handleError(_0x56cd01,null));},exports[_0x4b3303('0x16')]=function(_0x5184b0,_0x29180c){const _0x392d41=_0x4b3303;return _0x5184b0['body']['id']&&delete _0x5184b0[_0x392d41('0xa1')]['id'],db[_0x392d41('0x2f')][_0x392d41('0xb')]({'where':{'id':_0x5184b0[_0x392d41('0x6f')]['id']}})[_0x392d41('0x5b')](handleEntityNotFound(_0x29180c,null))[_0x392d41('0x5b')](saveUpdates(_0x5184b0[_0x392d41('0xa1')],null))[_0x392d41('0x5b')](respondWithResult(_0x29180c,null))['catch'](handleError(_0x29180c,null));},exports[_0x4b3303('0x4f')]=function(_0x15afd7,_0x10014c){const _0x3516ce=_0x4b3303;return db[_0x3516ce('0x2f')][_0x3516ce('0xb')]({'where':{'id':_0x15afd7[_0x3516ce('0x6f')]['id']}})['then'](handleEntityNotFound(_0x10014c,null))['then'](removeEntity(_0x10014c,null))[_0x3516ce('0x6a')](handleError(_0x10014c,null));},exports[_0x4b3303('0x43')]=function(_0x347c5d,_0x305a4c){const _0x287f32=_0x4b3303;let _0x5e8ad5={'raw':![],'where':{}};const _0xe8f78b={},_0x223b09={'count':0x0,'rows':[]};return db[_0x287f32('0x2f')]['findOne']({'where':{'id':_0x347c5d[_0x287f32('0x6f')]['id']}})[_0x287f32('0x5b')](handleEntityNotFound(_0x305a4c,null))[_0x287f32('0x5b')](function(_0x5eb815){const _0x5ba8e2=_0x287f32;if(_0x5eb815)return _0xe8f78b[_0x5ba8e2('0x39')]=_[_0x5ba8e2('0xa0')](db['CmHopper'][_0x5ba8e2('0x15')]),_0xe8f78b['query']=_['keys'](_0x347c5d['query']),_0xe8f78b[_0x5ba8e2('0x4')]=_['intersection'](_0xe8f78b[_0x5ba8e2('0x39')],_0xe8f78b['query']),_0x5e8ad5[_0x5ba8e2('0x7c')]=_['intersection'](_0xe8f78b[_0x5ba8e2('0x39')],qs['fields'](_0x347c5d['query'][_0x5ba8e2('0x27')])),_0x5e8ad5[_0x5ba8e2('0x7c')]=_0x5e8ad5[_0x5ba8e2('0x7c')][_0x5ba8e2('0x31')]?_0x5e8ad5[_0x5ba8e2('0x7c')]:_0xe8f78b[_0x5ba8e2('0x39')],typeof _0x347c5d['query'][_0x5ba8e2('0x28')]===_0x5ba8e2('0x5a')&&(_0x5e8ad5[_0x5ba8e2('0x1c')]=qs[_0x5ba8e2('0x1c')](_0x347c5d['query']['limit']),_0x5e8ad5['offset']=qs[_0x5ba8e2('0x29')](_0x347c5d['query'][_0x5ba8e2('0x29')])),_0x5e8ad5[_0x5ba8e2('0x2')]=qs[_0x5ba8e2('0x6c')](_0x347c5d[_0x5ba8e2('0x70')][_0x5ba8e2('0x6c')]),_0x5e8ad5[_0x5ba8e2('0x35')]=qs[_0x5ba8e2('0x4')](_[_0x5ba8e2('0x6d')](_0x347c5d[_0x5ba8e2('0x70')],_0xe8f78b[_0x5ba8e2('0x4')])),_0x5e8ad5['where'][_0x5ba8e2('0x7d')]=_0x5eb815['id'],_0x347c5d[_0x5ba8e2('0x70')]['filter']&&(_0x5e8ad5[_0x5ba8e2('0x35')]=_[_0x5ba8e2('0x74')](_0x5e8ad5[_0x5ba8e2('0x35')],{[Op['or']]:_[_0x5ba8e2('0x85')](_0x5e8ad5[_0x5ba8e2('0x7c')],function(_0x246f15){const _0x2c1673=_0x5ba8e2,_0x3cfb97={};return _0x3cfb97[_0x246f15]={[Op[_0x2c1673('0x32')]]:'%'+_0x347c5d[_0x2c1673('0x70')][_0x2c1673('0x3e')]+'%'},_0x3cfb97;})})),_0x5e8ad5=_['merge']({},_0x5e8ad5,_0x347c5d[_0x5ba8e2('0x3b')]),db[_0x5ba8e2('0x17')][_0x5ba8e2('0x13')]({'where':_0x5e8ad5['where']})[_0x5ba8e2('0x5b')](function(_0x162776){const _0x2f83cf=_0x5ba8e2;return _0x223b09[_0x2f83cf('0x13')]=_0x162776,_0x347c5d[_0x2f83cf('0x70')][_0x2f83cf('0x86')]&&(_0x5e8ad5[_0x2f83cf('0x2a')]=[{'all':!![]}]),db[_0x2f83cf('0x17')][_0x2f83cf('0x6')](_0x5e8ad5);})[_0x5ba8e2('0x5b')](function(_0x94e650){return _0x223b09['rows']=_0x94e650,_0x223b09;});})[_0x287f32('0x5b')](respondWithFilteredResult(_0x305a4c,_0x5e8ad5))[_0x287f32('0x6a')](handleError(_0x305a4c,null));},exports[_0x4b3303('0x9e')]=function(_0x5caa3f,_0x45a5ba){const _0x51fe4d=_0x4b3303;let _0x76c21a={'raw':!![],'where':{}};const _0x3147e4={},_0x52e79c={'count':0x0,'rows':[]};return db[_0x51fe4d('0x2f')][_0x51fe4d('0xb')]({'where':{'id':_0x5caa3f[_0x51fe4d('0x6f')]['id']}})['then'](handleEntityNotFound(_0x45a5ba,null))['then'](function(_0xcf5666){const _0x30d611=_0x51fe4d;if(_0xcf5666)return _0x3147e4[_0x30d611('0x39')]=_[_0x30d611('0xa0')](db['CmHopperHistory']['rawAttributes']),_0x3147e4[_0x30d611('0x70')]=_['keys'](_0x5caa3f[_0x30d611('0x70')]),_0x3147e4[_0x30d611('0x4')]=_[_0x30d611('0x76')](_0x3147e4['model'],_0x3147e4[_0x30d611('0x70')]),_0x76c21a['attributes']=_[_0x30d611('0x76')](_0x3147e4[_0x30d611('0x39')],qs[_0x30d611('0x27')](_0x5caa3f['query'][_0x30d611('0x27')])),_0x76c21a[_0x30d611('0x7c')]=_0x76c21a[_0x30d611('0x7c')][_0x30d611('0x31')]?_0x76c21a[_0x30d611('0x7c')]:_0x3147e4[_0x30d611('0x39')],typeof _0x5caa3f[_0x30d611('0x70')]['nolimit']===_0x30d611('0x5a')&&(_0x76c21a[_0x30d611('0x1c')]=qs[_0x30d611('0x1c')](_0x5caa3f[_0x30d611('0x70')][_0x30d611('0x1c')]),_0x76c21a['offset']=qs[_0x30d611('0x29')](_0x5caa3f[_0x30d611('0x70')]['offset'])),_0x76c21a[_0x30d611('0x2')]=qs[_0x30d611('0x6c')](_0x5caa3f[_0x30d611('0x70')][_0x30d611('0x6c')]),_0x76c21a[_0x30d611('0x35')]=qs[_0x30d611('0x4')](_['pick'](_0x5caa3f[_0x30d611('0x70')],_0x3147e4['filters'])),_0x76c21a[_0x30d611('0x35')][_0x30d611('0x7d')]=_0xcf5666['id'],_0x5caa3f[_0x30d611('0x70')][_0x30d611('0x3e')]&&(_0x76c21a['where']=_[_0x30d611('0x74')](_0x76c21a[_0x30d611('0x35')],{[Op['or']]:_[_0x30d611('0x85')](_0x76c21a['attributes'],function(_0x5649f8){const _0x1e3b35=_0x30d611,_0x447fd9={};return _0x447fd9[_0x5649f8]={[Op[_0x1e3b35('0x32')]]:'%'+_0x5caa3f[_0x1e3b35('0x70')][_0x1e3b35('0x3e')]+'%'},_0x447fd9;})})),_0x76c21a=_[_0x30d611('0x74')]({},_0x76c21a,_0x5caa3f[_0x30d611('0x3b')]),db[_0x30d611('0x7')][_0x30d611('0x13')]({'where':_0x76c21a[_0x30d611('0x35')]})[_0x30d611('0x5b')](function(_0x34ca8b){const _0x222953=_0x30d611;return _0x52e79c[_0x222953('0x13')]=_0x34ca8b,_0x5caa3f[_0x222953('0x70')][_0x222953('0x86')]&&(_0x76c21a[_0x222953('0x2a')]=[{'all':!![]}]),db[_0x222953('0x7')]['findAll'](_0x76c21a);})['then'](function(_0x533954){const _0xecc209=_0x30d611;return _0x52e79c[_0xecc209('0x1e')]=_0x533954,_0x52e79c;});})[_0x51fe4d('0x5b')](respondWithFilteredResult(_0x45a5ba,_0x76c21a))[_0x51fe4d('0x6a')](handleError(_0x45a5ba,null));},exports[_0x4b3303('0x9')]=function(_0xd5ea6d,_0x420871){const _0x5962b3=_0x4b3303;let _0x44668c={'raw':!![],'where':{}};const _0x4dc07e={},_0x531069={'count':0x0,'rows':[]};return db[_0x5962b3('0x2f')][_0x5962b3('0xb')]({'where':{'id':_0xd5ea6d[_0x5962b3('0x6f')]['id']}})['then'](handleEntityNotFound(_0x420871,null))[_0x5962b3('0x5b')](function(_0x4a221d){const _0x4a499f=_0x5962b3;if(_0x4a221d)return _0x4dc07e['model']=_['keys'](db[_0x4a499f('0x0')][_0x4a499f('0x15')]),_0x4dc07e[_0x4a499f('0x70')]=_[_0x4a499f('0xa0')](_0xd5ea6d[_0x4a499f('0x70')]),_0x4dc07e[_0x4a499f('0x4')]=_[_0x4a499f('0x76')](_0x4dc07e[_0x4a499f('0x39')],_0x4dc07e['query']),_0x44668c['attributes']=_[_0x4a499f('0x76')](_0x4dc07e[_0x4a499f('0x39')],qs[_0x4a499f('0x27')](_0xd5ea6d[_0x4a499f('0x70')]['fields'])),_0x44668c[_0x4a499f('0x7c')]=_0x44668c[_0x4a499f('0x7c')][_0x4a499f('0x31')]?_0x44668c[_0x4a499f('0x7c')]:_0x4dc07e[_0x4a499f('0x39')],typeof _0xd5ea6d['query'][_0x4a499f('0x28')]===_0x4a499f('0x5a')&&(_0x44668c[_0x4a499f('0x1c')]=qs[_0x4a499f('0x1c')](_0xd5ea6d['query'][_0x4a499f('0x1c')]),_0x44668c[_0x4a499f('0x29')]=qs[_0x4a499f('0x29')](_0xd5ea6d['query'][_0x4a499f('0x29')])),_0x44668c[_0x4a499f('0x2')]=qs['sort'](_0xd5ea6d[_0x4a499f('0x70')][_0x4a499f('0x6c')]),_0x44668c[_0x4a499f('0x35')]=qs['filters'](_[_0x4a499f('0x6d')](_0xd5ea6d[_0x4a499f('0x70')],_0x4dc07e[_0x4a499f('0x4')])),_0x44668c['where'][_0x4a499f('0x7d')]=_0x4a221d['id'],_0xd5ea6d[_0x4a499f('0x70')][_0x4a499f('0x3e')]&&(_0x44668c['where']=_['merge'](_0x44668c[_0x4a499f('0x35')],{[Op['or']]:_['map'](_0x44668c[_0x4a499f('0x7c')],function(_0x554cda){const _0x3d7a18=_0x4a499f,_0x50a4b0={};return _0x50a4b0[_0x554cda]={[Op[_0x3d7a18('0x32')]]:'%'+_0xd5ea6d[_0x3d7a18('0x70')][_0x3d7a18('0x3e')]+'%'},_0x50a4b0;})})),_0x44668c=_[_0x4a499f('0x74')]({},_0x44668c,_0xd5ea6d[_0x4a499f('0x3b')]),db[_0x4a499f('0x0')][_0x4a499f('0x13')]({'where':_0x44668c[_0x4a499f('0x35')]})[_0x4a499f('0x5b')](function(_0x5ac69e){const _0x4cd6a4=_0x4a499f;return _0x531069['count']=_0x5ac69e,_0xd5ea6d['query'][_0x4cd6a4('0x86')]&&(_0x44668c['include']=[{'all':!![]}]),db[_0x4cd6a4('0x0')][_0x4cd6a4('0x6')](_0x44668c);})['then'](function(_0xcdc4b4){const _0x4b4936=_0x4a499f;return _0x531069[_0x4b4936('0x1e')]=_0xcdc4b4,_0x531069;});})[_0x5962b3('0x5b')](respondWithFilteredResult(_0x420871,_0x44668c))[_0x5962b3('0x6a')](handleError(_0x420871,null));},exports[_0x4b3303('0x83')]=function(_0x48dfc0,_0x192a2e){const _0x3b7d1f=_0x4b3303;let _0x16e45c={'raw':!![],'where':{}};const _0x1d668b={},_0x2fbe91={'count':0x0,'rows':[]};return db[_0x3b7d1f('0x2f')][_0x3b7d1f('0xb')]({'where':{'id':_0x48dfc0[_0x3b7d1f('0x6f')]['id']}})[_0x3b7d1f('0x5b')](handleEntityNotFound(_0x192a2e,null))['then'](function(_0x1ded5a){const _0x8240dc=_0x3b7d1f;if(_0x1ded5a)return _0x1d668b[_0x8240dc('0x39')]=_[_0x8240dc('0xa0')](db['CmHopperBlack'][_0x8240dc('0x15')]),_0x1d668b[_0x8240dc('0x70')]=_['keys'](_0x48dfc0[_0x8240dc('0x70')]),_0x1d668b[_0x8240dc('0x4')]=_[_0x8240dc('0x76')](_0x1d668b[_0x8240dc('0x39')],_0x1d668b[_0x8240dc('0x70')]),_0x16e45c[_0x8240dc('0x7c')]=_[_0x8240dc('0x76')](_0x1d668b[_0x8240dc('0x39')],qs['fields'](_0x48dfc0['query'][_0x8240dc('0x27')])),_0x16e45c['attributes']=_0x16e45c[_0x8240dc('0x7c')][_0x8240dc('0x31')]?_0x16e45c[_0x8240dc('0x7c')]:_0x1d668b[_0x8240dc('0x39')],typeof _0x48dfc0[_0x8240dc('0x70')][_0x8240dc('0x28')]===_0x8240dc('0x5a')&&(_0x16e45c[_0x8240dc('0x1c')]=qs['limit'](_0x48dfc0[_0x8240dc('0x70')][_0x8240dc('0x1c')]),_0x16e45c[_0x8240dc('0x29')]=qs[_0x8240dc('0x29')](_0x48dfc0[_0x8240dc('0x70')]['offset'])),_0x16e45c[_0x8240dc('0x2')]=qs[_0x8240dc('0x6c')](_0x48dfc0['query'][_0x8240dc('0x6c')]),_0x16e45c['where']=qs[_0x8240dc('0x4')](_['pick'](_0x48dfc0['query'],_0x1d668b['filters'])),_0x16e45c[_0x8240dc('0x35')][_0x8240dc('0x7d')]=_0x1ded5a['id'],_0x48dfc0[_0x8240dc('0x70')]['filter']&&(_0x16e45c[_0x8240dc('0x35')]=_[_0x8240dc('0x74')](_0x16e45c[_0x8240dc('0x35')],{[Op['or']]:_[_0x8240dc('0x85')](_0x16e45c['attributes'],function(_0x5e4b67){const _0x4cff50=_0x8240dc,_0x500e02={};return _0x500e02[_0x5e4b67]={[Op[_0x4cff50('0x32')]]:'%'+_0x48dfc0[_0x4cff50('0x70')]['filter']+'%'},_0x500e02;})})),_0x16e45c=_[_0x8240dc('0x74')]({},_0x16e45c,_0x48dfc0[_0x8240dc('0x3b')]),db[_0x8240dc('0x4d')][_0x8240dc('0x13')]({'where':_0x16e45c[_0x8240dc('0x35')]})['then'](function(_0x2ed883){const _0x24c4fa=_0x8240dc;return _0x2fbe91[_0x24c4fa('0x13')]=_0x2ed883,_0x48dfc0[_0x24c4fa('0x70')][_0x24c4fa('0x86')]&&(_0x16e45c['include']=[{'all':!![]}]),db['CmHopperBlack'][_0x24c4fa('0x6')](_0x16e45c);})[_0x8240dc('0x5b')](function(_0x2da1e2){const _0x4b141d=_0x8240dc;return _0x2fbe91[_0x4b141d('0x1e')]=_0x2da1e2,_0x2fbe91;});})[_0x3b7d1f('0x5b')](respondWithFilteredResult(_0x192a2e,_0x16e45c))[_0x3b7d1f('0x6a')](handleError(_0x192a2e,null));},exports[_0x4b3303('0x1d')]=function(_0x828a3a,_0x2fadf3){const _0x4c83b2=_0x4b3303;let _0x559a7b={};const _0x43ff36={};let _0x331552,_0x393a91;return db[_0x4c83b2('0x2f')][_0x4c83b2('0xb')]({'where':{'id':_0x828a3a['params']['id']}})[_0x4c83b2('0x5b')](handleEntityNotFound(_0x2fadf3,null))['then'](function(_0x558263){const _0x53d16e=_0x4c83b2;if(_0x558263)return _0x331552=_0x558263,_0x43ff36[_0x53d16e('0x39')]=_[_0x53d16e('0xa0')](db['Team']['rawAttributes']),_0x43ff36[_0x53d16e('0x70')]=_[_0x53d16e('0xa0')](_0x828a3a[_0x53d16e('0x70')]),_0x43ff36['filters']=_[_0x53d16e('0x76')](_0x43ff36[_0x53d16e('0x39')],_0x43ff36[_0x53d16e('0x70')]),_0x559a7b[_0x53d16e('0x7c')]=_['intersection'](_0x43ff36[_0x53d16e('0x39')],qs[_0x53d16e('0x27')](_0x828a3a[_0x53d16e('0x70')][_0x53d16e('0x27')])),_0x559a7b['attributes']=_0x559a7b[_0x53d16e('0x7c')][_0x53d16e('0x31')]?_0x559a7b[_0x53d16e('0x7c')]:_0x43ff36[_0x53d16e('0x39')],_0x559a7b[_0x53d16e('0x2')]=qs['sort'](_0x828a3a[_0x53d16e('0x70')][_0x53d16e('0x6c')]),_0x559a7b[_0x53d16e('0x35')]=qs['filters'](_[_0x53d16e('0x6d')](_0x828a3a[_0x53d16e('0x70')],_0x43ff36[_0x53d16e('0x4')])),_0x828a3a[_0x53d16e('0x70')][_0x53d16e('0x3e')]&&(_0x559a7b['where']=_[_0x53d16e('0x74')](_0x559a7b[_0x53d16e('0x35')],{[Op['or']]:_[_0x53d16e('0x85')](_0x559a7b[_0x53d16e('0x7c')],function(_0x4650a6){const _0x1f96d7=_0x53d16e,_0x52d932={};return _0x52d932[_0x4650a6]={[Op[_0x1f96d7('0x32')]]:'%'+_0x828a3a[_0x1f96d7('0x70')][_0x1f96d7('0x3e')]+'%'},_0x52d932;})})),_0x559a7b=_[_0x53d16e('0x74')]({},_0x559a7b,_0x828a3a['options']),_0x331552[_0x53d16e('0x1d')](_0x559a7b);})[_0x4c83b2('0x5b')](function(_0x521375){const _0x329d92=_0x4c83b2;if(_0x521375)return _0x393a91=_0x521375[_0x329d92('0x31')],typeof _0x828a3a[_0x329d92('0x70')]['nolimit']===_0x329d92('0x5a')&&(_0x559a7b[_0x329d92('0x1c')]=qs[_0x329d92('0x1c')](_0x828a3a[_0x329d92('0x70')][_0x329d92('0x1c')]),_0x559a7b[_0x329d92('0x29')]=qs[_0x329d92('0x29')](_0x828a3a[_0x329d92('0x70')]['offset'])),_0x331552[_0x329d92('0x1d')](_0x559a7b);})[_0x4c83b2('0x5b')](function(_0x4621ea){if(_0x4621ea)return _0x4621ea?{'count':_0x393a91,'rows':_0x4621ea}:null;})[_0x4c83b2('0x5b')](respondWithResult(_0x2fadf3,null))[_0x4c83b2('0x6a')](handleError(_0x2fadf3,null));},exports[_0x4b3303('0x57')]=function(_0xd45ca5,_0x1ab9fd){const _0x58c87e=_0x4b3303,_0x41e63a=_0xd45ca5[_0x58c87e('0xa1')][_0x58c87e('0x58')],_0x4695f3=_[_0x58c87e('0x85')](_0x41e63a,'id');return db[_0x58c87e('0x4c')][_0x58c87e('0x6')]({'where':{'id':_0x4695f3},'attributes':['id'],'include':[{'model':db[_0x58c87e('0x46')],'as':_0x58c87e('0x6b'),'attributes':['id','name',_0x58c87e('0x8c'),_0x58c87e('0x89'),_0x58c87e('0x34')],'raw':!![]}]})[_0x58c87e('0x5b')](function(_0x194f8c){const _0x1c2438=_0x58c87e;if(_0x194f8c){const _0x494f6c=_[_0x1c2438('0x7b')](_0x194f8c,function(_0x43539a){const _0x585cff=_0x1c2438,_0x2741c8=_0x43539a['get']({'plain':!![]});return _0x2741c8[_0x585cff('0x6b')]['forEach'](function(_0x4f722e){_0x4f722e['penalty']=_['find'](_0x41e63a,{'id':_0x2741c8['id']})['penalty'];}),_0x2741c8[_0x585cff('0x6b')];});return db[_0x1c2438('0x2f')][_0x1c2438('0xb')]({'where':{'id':_0xd45ca5[_0x1c2438('0x6f')]['id']}})[_0x1c2438('0x5b')](function(_0x213122){const _0x49a016=_0x1c2438;return db[_0x49a016('0x71')][_0x49a016('0x40')](function(_0x47da76){const _0x5db472=_0x49a016;return _0x213122[_0x5db472('0x57')](_0x4695f3,{'transaction':_0x47da76})[_0x5db472('0x5b')](function(){const _0x57440a=_0x5db472;return Promise[_0x57440a('0x50')](_0x494f6c,function(_0x11f688){const _0x169796=_0x57440a;return db[_0x169796('0x26')]['findOrCreate']({'where':{'UserId':_0x11f688['id'],'VoiceQueueId':_0xd45ca5[_0x169796('0x6f')]['id']},'defaults':{'penalty':_0x11f688[_0x169796('0x63')]},'transaction':_0x47da76});});})[_0x5db472('0x5b')](function(){const _0x11a1e2=_0x5db472;return Promise[_0x11a1e2('0x50')](_[_0x11a1e2('0x3e')](_0x494f6c,{'online':!![]}),function(_0x44d5ed){const _0x310efa=_0x11a1e2;return db[_0x310efa('0x1')][_0x310efa('0x5d')]({'membername':_0x44d5ed[_0x310efa('0x84')],'UserId':_0x44d5ed['id'],'queue_name':_0x213122['name'],'VoiceQueueId':_0x213122['id'],'interface':_[_0x310efa('0x10')](_0x44d5ed[_0x310efa('0x34')])?util['format'](_0x310efa('0x9a'),_0x44d5ed[_0x310efa('0x84')]):_0x44d5ed[_0x310efa('0x34')],'paused':_0x44d5ed[_0x310efa('0x89')]||![],'penalty':_0x44d5ed['penalty']},{'transaction':_0x47da76});});})[_0x5db472('0x5b')](function(){const _0x207eac=_0x5db472;_0x494f6c[_0x207eac('0x72')](function(_0x4fad21){const _0x14863d=_0x207eac;socket['emit'](_0x14863d('0x51'),{'UserId':_0x4fad21['id'],'VoiceQueueId':_0x213122['id']});});});});});}})[_0x58c87e('0x5b')](respondWithStatusCode(_0x1ab9fd,null))[_0x58c87e('0x6a')](handleError(_0x1ab9fd,null));},exports[_0x4b3303('0x22')]=function(_0x2546cd,_0x9c17b7){const _0x474385=_0x4b3303;return db['Team'][_0x474385('0x6')]({'where':{'id':_0x2546cd[_0x474385('0x70')][_0x474385('0x88')]},'attributes':['id'],'include':[{'model':db[_0x474385('0x46')],'as':_0x474385('0x6b'),'attributes':['id'],'raw':!![]}]})['then'](handleEntityNotFound(_0x9c17b7,null))[_0x474385('0x5b')](function(_0x4f000f){const _0x18d026=_0x474385,_0x21b261=_[_0x18d026('0x85')](_0x4f000f,'id');let _0x231bea=[];const _0x7dca2f=[],_0x28aa8b=squel[_0x18d026('0x24')]();_0x28aa8b[_0x18d026('0x60')](_0x18d026('0x36'))[_0x18d026('0x77')](_0x18d026('0x4b'),'tq')[_0x18d026('0x66')](_0x18d026('0x5c'),'ut',_0x18d026('0x52'))[_0x18d026('0x35')](_0x18d026('0xa4'),_0x2546cd[_0x18d026('0x6f')]['id']);for(let _0x336066=0x0;_0x336066<_0x4f000f[_0x18d026('0x31')];_0x336066+=0x1){const _0x150095=_0x4f000f[_0x336066];for(let _0x3d3311=0x0;_0x3d3311<_0x150095[_0x18d026('0x6b')][_0x18d026('0x31')];_0x3d3311+=0x1){const _0x4eda2e=_0x150095['Agents'][_0x3d3311],_0x2e9a3f=_0x28aa8b[_0x18d026('0x48')]();_0x2e9a3f[_0x18d026('0x35')](_0x18d026('0x3a'),_0x4eda2e['id']),_0x7dca2f['push'](db[_0x18d026('0x71')][_0x18d026('0x70')](_0x2e9a3f[_0x18d026('0x30')](),{'type':QueryTypes[_0x18d026('0x7a')]})[_0x18d026('0x5b')](function(_0x1a958a){const _0x259405=_0x18d026;if(_0x1a958a[_0x259405('0x31')]===0x1)return _0x4eda2e['id'];else{const _0x5b4f79=_[_0x259405('0x96')](_[_0x259405('0x85')](_0x1a958a,_0x259405('0x54')),function(_0x4e35dc){return _['includes'](_0x21b261,_0x4e35dc);});if(_0x5b4f79)return _0x4eda2e['id'];}}));}}return Promise[_0x18d026('0x9d')](_0x7dca2f)['then'](function(_0x312cc5){const _0x310fbb=_0x18d026;return _0x231bea=_(_0x231bea)[_0x310fbb('0x6e')](_0x312cc5)['compact']()['value'](),db[_0x310fbb('0x2f')]['findOne']({'where':{'id':_0x2546cd[_0x310fbb('0x6f')]['id']}})[_0x310fbb('0x5b')](function(_0x290a29){const _0x1e8cea=_0x310fbb;return db['sequelize'][_0x1e8cea('0x40')](function(_0x2315fa){const _0x4dfa68=_0x1e8cea;return _0x290a29[_0x4dfa68('0x22')](_0x2546cd[_0x4dfa68('0x70')]['ids'],{'transaction':_0x2315fa})[_0x4dfa68('0x5b')](function(){const _0xed7b9=_0x4dfa68;if(!_[_0xed7b9('0x14')](_0x231bea))return _0x290a29[_0xed7b9('0x42')](_0x231bea,{'transaction':_0x2315fa})[_0xed7b9('0x5b')](function(){const _0x1a22ab=_0xed7b9;return db[_0x1a22ab('0x1')]['destroy']({'where':{'VoiceQueueId':_0x2546cd[_0x1a22ab('0x6f')]['id'],'UserId':_0x231bea},'transaction':_0x2315fa});});})[_0x4dfa68('0x5b')](function(){_0x231bea['forEach'](function(_0x50b194){const _0x4f34ea=a753_0x3288;socket['emit'](_0x4f34ea('0x4e'),{'UserId':_0x50b194,'VoiceQueueId':_0x290a29['id']});});});});});});})[_0x474385('0x5b')](respondWithStatusCode(_0x9c17b7,null))[_0x474385('0x6a')](handleError(_0x9c17b7,null));},exports[_0x4b3303('0x9f')]=function(_0x447542,_0x13bb2e){const _0x653f1a=_0x4b3303;let _0x563b0e,_0x564c73;return db[_0x653f1a('0x2f')]['findOne']({'where':{'id':_0x447542[_0x653f1a('0x6f')]['id']}})[_0x653f1a('0x5b')](function(_0x5c4ea0){const _0x37ab7d=_0x653f1a;if(_0x5c4ea0)return _0x564c73=_0x5c4ea0,_0x5c4ea0['addAgents'](_0x447542[_0x37ab7d('0xa1')][_0x37ab7d('0x88')],{'through':_['omit'](_0x447542['body'],[_0x37ab7d('0x88'),'id'])})[_0x37ab7d('0x5b')](function(_0x5d5385){const _0xe14479=_0x37ab7d;for(let _0x1ea99b=0x0;_0x1ea99b<_0x447542[_0xe14479('0xa1')][_0xe14479('0x88')]['length'];_0x1ea99b+=0x1){socket['emit'](_0xe14479('0x51'),{'UserId':_0x447542[_0xe14479('0xa1')]['ids'][_0x1ea99b],'VoiceQueueId':_0x447542[_0xe14479('0x6f')]['id']});}return _0x5d5385;});})['then'](function(_0xb7729d){const _0x1cfeeb=_0x653f1a;_0x563b0e=_0xb7729d||[];if(_0x564c73)return db[_0x1cfeeb('0x46')][_0x1cfeeb('0x6')]({'where':{'id':_0x447542['body'][_0x1cfeeb('0x88')]},'attributes':['id',_0x1cfeeb('0x84'),'online','voicePause','interface'],'raw':!![]});})[_0x653f1a('0x5b')](function(_0x325693){const _0x370d7f=_0x653f1a;if(!_['isEmpty'](_0x325693)){const _0x1282aa=[];for(let _0x3810f3=0x0;_0x3810f3<_0x325693[_0x370d7f('0x31')];_0x3810f3++){_0x325693[_0x3810f3][_0x370d7f('0x8c')]&&_0x1282aa[_0x370d7f('0x7f')](db['UserVoiceQueueRt'][_0x370d7f('0x5d')]({'membername':_0x325693[_0x3810f3]['name'],'UserId':_0x325693[_0x3810f3]['id'],'queue_name':_0x564c73['name'],'VoiceQueueId':_0x564c73['id'],'interface':_[_0x370d7f('0x10')](_0x325693[_0x3810f3][_0x370d7f('0x34')])?util[_0x370d7f('0x93')]('SIP/%s',_0x325693[_0x3810f3][_0x370d7f('0x84')]):_0x325693[_0x3810f3][_0x370d7f('0x34')],'paused':_0x325693[_0x3810f3][_0x370d7f('0x89')]||![],'penalty':_0x447542[_0x370d7f('0xa1')][_0x370d7f('0x63')]||0x0}));}return Promise[_0x370d7f('0x9d')](_0x1282aa);}})[_0x653f1a('0x5b')](function(){return _0x563b0e;})[_0x653f1a('0x5b')](respondWithResult(_0x13bb2e,null))['catch'](handleError(_0x13bb2e,null));},exports[_0x4b3303('0x42')]=function(_0x43904c,_0x179ffe){const _0x2c3f14=_0x4b3303;return db[_0x2c3f14('0x2f')][_0x2c3f14('0xb')]({'where':{'id':_0x43904c[_0x2c3f14('0x6f')]['id']}})['then'](handleEntityNotFound(_0x179ffe,null))['then'](function(_0x35a890){const _0xae329c=_0x2c3f14;if(_0x35a890)return _0x35a890[_0xae329c('0x42')](_0x43904c[_0xae329c('0x70')]['ids'])['then'](function(){const _0x1eb736=_0xae329c;if(_[_0x1eb736('0x25')](_0x43904c[_0x1eb736('0x70')][_0x1eb736('0x88')]))for(let _0xeb443e=0x0;_0xeb443e<_0x43904c[_0x1eb736('0x70')][_0x1eb736('0x88')][_0x1eb736('0x31')];_0xeb443e+=0x1){socket[_0x1eb736('0x2b')](_0x1eb736('0x4e'),{'UserId':Number(_0x43904c['query'][_0x1eb736('0x88')][_0xeb443e]),'VoiceQueueId':Number(_0x43904c[_0x1eb736('0x6f')]['id'])});}else socket['emit'](_0x1eb736('0x4e'),{'UserId':Number(_0x43904c[_0x1eb736('0x70')][_0x1eb736('0x88')]),'VoiceQueueId':Number(_0x43904c[_0x1eb736('0x6f')]['id'])});});})[_0x2c3f14('0x5b')](function(_0x3290c9){const _0x4d4e96=_0x2c3f14;return db[_0x4d4e96('0x1')]['destroy']({'where':{'VoiceQueueId':_0x43904c[_0x4d4e96('0x6f')]['id'],'UserId':_0x43904c[_0x4d4e96('0x70')][_0x4d4e96('0x88')]}})[_0x4d4e96('0x5b')](function(){return _0x3290c9;});})[_0x2c3f14('0x5b')](respondWithStatusCode(_0x179ffe,null))[_0x2c3f14('0x6a')](handleError(_0x179ffe,null));},exports[_0x4b3303('0x97')]=function(_0x3ffa3a,_0x12021a){const _0x5b71bd=_0x4b3303;let _0x30417f={};const _0x2ba588={};let _0x35539a,_0x2ec7e5;return db['VoiceQueue']['findOne']({'where':{'id':_0x3ffa3a[_0x5b71bd('0x6f')]['id']}})[_0x5b71bd('0x5b')](handleEntityNotFound(_0x12021a,null))[_0x5b71bd('0x5b')](function(_0xef9467){const _0x2c3795=_0x5b71bd;if(_0xef9467)return _0x35539a=_0xef9467,_0x2ba588[_0x2c3795('0x39')]=_[_0x2c3795('0xa0')](db['User']['rawAttributes']),_0x2ba588[_0x2c3795('0x70')]=_[_0x2c3795('0xa0')](_0x3ffa3a['query']),_0x2ba588['filters']=_[_0x2c3795('0x76')](_0x2ba588['model'],_0x2ba588[_0x2c3795('0x70')]),_0x30417f[_0x2c3795('0x7c')]=_[_0x2c3795('0x76')](_0x2ba588[_0x2c3795('0x39')],qs[_0x2c3795('0x27')](_0x3ffa3a[_0x2c3795('0x70')][_0x2c3795('0x27')])),_0x30417f['attributes']=_0x30417f[_0x2c3795('0x7c')][_0x2c3795('0x31')]?_0x30417f['attributes']:_0x2ba588[_0x2c3795('0x39')],_0x30417f[_0x2c3795('0x2')]=qs['sort'](_0x3ffa3a[_0x2c3795('0x70')]['sort']),_0x30417f['where']=qs[_0x2c3795('0x4')](_[_0x2c3795('0x6d')](_0x3ffa3a['query'],_0x2ba588[_0x2c3795('0x4')])),_0x3ffa3a[_0x2c3795('0x70')][_0x2c3795('0x3e')]&&(_0x30417f[_0x2c3795('0x35')]=_[_0x2c3795('0x74')](_0x30417f[_0x2c3795('0x35')],{[Op['or']]:_[_0x2c3795('0x85')](_0x30417f[_0x2c3795('0x7c')],function(_0x55937a){const _0x3479ab=_0x2c3795,_0x36ccbb={};return _0x36ccbb[_0x55937a]={[Op[_0x3479ab('0x32')]]:'%'+_0x3ffa3a['query'][_0x3479ab('0x3e')]+'%'},_0x36ccbb;})})),_0x30417f=_[_0x2c3795('0x74')]({},_0x30417f,_0x3ffa3a['options']),_0x35539a[_0x2c3795('0x97')](_0x30417f);})[_0x5b71bd('0x5b')](function(_0x123af9){const _0x34b4e6=_0x5b71bd;if(_0x123af9)return _0x2ec7e5=_0x123af9[_0x34b4e6('0x31')],typeof _0x3ffa3a['query'][_0x34b4e6('0x28')]===_0x34b4e6('0x5a')&&(_0x30417f[_0x34b4e6('0x1c')]=qs[_0x34b4e6('0x1c')](_0x3ffa3a['query'][_0x34b4e6('0x1c')]),_0x30417f['offset']=qs[_0x34b4e6('0x29')](_0x3ffa3a[_0x34b4e6('0x70')][_0x34b4e6('0x29')])),_0x35539a[_0x34b4e6('0x97')](_0x30417f);})['then'](function(_0x1e8e7d){if(_0x1e8e7d)return _0x1e8e7d?{'count':_0x2ec7e5,'rows':_0x1e8e7d}:null;})[_0x5b71bd('0x5b')](respondWithResult(_0x12021a,null))[_0x5b71bd('0x6a')](handleError(_0x12021a,null));},exports[_0x4b3303('0x5')]=function(_0x5921ac,_0xf5256c){const _0x368a05=_0x4b3303;let _0x12683a={};const _0x2dcf35={};let _0x3ea4dc,_0xe3b934;return db[_0x368a05('0x2f')][_0x368a05('0xb')]({'where':{'id':_0x5921ac[_0x368a05('0x6f')]['id']}})[_0x368a05('0x5b')](handleEntityNotFound(_0xf5256c,null))[_0x368a05('0x5b')](function(_0x43ae80){const _0x322f09=_0x368a05;if(_0x43ae80)return _0x3ea4dc=_0x43ae80,_0x2dcf35[_0x322f09('0x39')]=_[_0x322f09('0xa0')](db[_0x322f09('0x1')][_0x322f09('0x15')]),_0x2dcf35['query']=_['keys'](_0x5921ac[_0x322f09('0x70')]),_0x2dcf35[_0x322f09('0x4')]=_[_0x322f09('0x76')](_0x2dcf35[_0x322f09('0x39')],_0x2dcf35['query']),_0x12683a[_0x322f09('0x7c')]=_[_0x322f09('0x76')](_0x2dcf35[_0x322f09('0x39')],qs['fields'](_0x5921ac['query'][_0x322f09('0x27')])),_0x12683a[_0x322f09('0x7c')]=_0x12683a[_0x322f09('0x7c')][_0x322f09('0x31')]?_0x12683a[_0x322f09('0x7c')]:_0x2dcf35[_0x322f09('0x39')],_0x12683a[_0x322f09('0x2')]=qs['sort'](_0x5921ac[_0x322f09('0x70')]['sort']),_0x12683a[_0x322f09('0x35')]=qs[_0x322f09('0x4')](_[_0x322f09('0x6d')](_0x5921ac[_0x322f09('0x70')],_0x2dcf35['filters'])),_0x5921ac['query'][_0x322f09('0x3e')]&&(_0x12683a[_0x322f09('0x35')]=_[_0x322f09('0x74')](_0x12683a['where'],{[Op['or']]:_[_0x322f09('0x85')](_0x12683a['attributes'],function(_0x1e23bb){const _0x5890ed=_0x322f09,_0x4fc3fb={};return _0x4fc3fb[_0x1e23bb]={[Op[_0x5890ed('0x32')]]:'%'+_0x5921ac[_0x5890ed('0x70')]['filter']+'%'},_0x4fc3fb;})})),_0x12683a=_[_0x322f09('0x74')]({},_0x12683a,_0x5921ac['options']),_0x3ea4dc[_0x322f09('0x5')](_0x12683a);})[_0x368a05('0x5b')](function(_0x1e2821){const _0x2166df=_0x368a05;if(_0x1e2821)return _0xe3b934=_0x1e2821[_0x2166df('0x31')],typeof _0x5921ac[_0x2166df('0x70')][_0x2166df('0x28')]===_0x2166df('0x5a')&&(_0x12683a['limit']=qs[_0x2166df('0x1c')](_0x5921ac['query'][_0x2166df('0x1c')]),_0x12683a['offset']=qs['offset'](_0x5921ac[_0x2166df('0x70')][_0x2166df('0x29')])),_0x3ea4dc[_0x2166df('0x5')](_0x12683a);})[_0x368a05('0x5b')](function(_0x461aab){return _0x461aab?{'count':_0xe3b934,'rows':_0x461aab}:null;})[_0x368a05('0x5b')](respondWithResult(_0xf5256c,null))[_0x368a05('0x6a')](handleError(_0xf5256c,null));},exports[_0x4b3303('0x21')]=function(_0x54cb20,_0x390f69){const _0x1faa0c=_0x4b3303;let _0x1a91aa={};const _0x5c3e87={};let _0x190028,_0x1a8aaa;return db[_0x1faa0c('0x2f')][_0x1faa0c('0xb')]({'where':{'id':_0x54cb20[_0x1faa0c('0x6f')]['id']}})[_0x1faa0c('0x5b')](handleEntityNotFound(_0x390f69,null))[_0x1faa0c('0x5b')](function(_0x5d5748){const _0x4c0fc5=_0x1faa0c;if(_0x5d5748)return _0x190028=_0x5d5748,_0x5c3e87[_0x4c0fc5('0x39')]=_[_0x4c0fc5('0xa0')](db[_0x4c0fc5('0x38')][_0x4c0fc5('0x15')]),_0x5c3e87[_0x4c0fc5('0x70')]=_[_0x4c0fc5('0xa0')](_0x54cb20[_0x4c0fc5('0x70')]),_0x5c3e87['filters']=_[_0x4c0fc5('0x76')](_0x5c3e87['model'],_0x5c3e87[_0x4c0fc5('0x70')]),_0x1a91aa[_0x4c0fc5('0x7c')]=_[_0x4c0fc5('0x76')](_0x5c3e87['model'],qs[_0x4c0fc5('0x27')](_0x54cb20[_0x4c0fc5('0x70')]['fields'])),_0x1a91aa[_0x4c0fc5('0x7c')]=_0x1a91aa[_0x4c0fc5('0x7c')][_0x4c0fc5('0x31')]?_0x1a91aa['attributes']:_0x5c3e87[_0x4c0fc5('0x39')],_0x1a91aa[_0x4c0fc5('0x2')]=qs[_0x4c0fc5('0x6c')](_0x54cb20['query']['sort']),_0x1a91aa[_0x4c0fc5('0x35')]=qs['filters'](_[_0x4c0fc5('0x6d')](_0x54cb20[_0x4c0fc5('0x70')],_0x5c3e87['filters'])),_0x54cb20[_0x4c0fc5('0x70')][_0x4c0fc5('0x3e')]&&(_0x1a91aa[_0x4c0fc5('0x35')]=_[_0x4c0fc5('0x74')](_0x1a91aa[_0x4c0fc5('0x35')],{[Op['or']]:_[_0x4c0fc5('0x85')](_0x1a91aa[_0x4c0fc5('0x7c')],function(_0x3cf5d2){const _0x86461b=_0x4c0fc5,_0x130869={};return _0x130869[_0x3cf5d2]={[Op[_0x86461b('0x32')]]:'%'+_0x54cb20['query'][_0x86461b('0x3e')]+'%'},_0x130869;})})),_0x1a91aa=_[_0x4c0fc5('0x74')]({},_0x1a91aa,_0x54cb20['options']),_0x190028[_0x4c0fc5('0x21')](_0x1a91aa);})[_0x1faa0c('0x5b')](function(_0x1a479d){const _0x105452=_0x1faa0c;if(_0x1a479d)return _0x1a8aaa=_0x1a479d['length'],typeof _0x54cb20['query'][_0x105452('0x28')]===_0x105452('0x5a')&&(_0x1a91aa[_0x105452('0x1c')]=qs[_0x105452('0x1c')](_0x54cb20['query'][_0x105452('0x1c')]),_0x1a91aa['offset']=qs[_0x105452('0x29')](_0x54cb20[_0x105452('0x70')]['offset'])),_0x190028[_0x105452('0x21')](_0x1a91aa);})[_0x1faa0c('0x5b')](function(_0x4fa989){if(_0x4fa989)return _0x4fa989?{'count':_0x1a8aaa,'rows':_0x4fa989}:null;})['then'](respondWithResult(_0x390f69,null))['catch'](handleError(_0x390f69,null));},exports['addLists']=function(_0x428e4b,_0x5ecc53){const _0x1b972a=_0x4b3303;let _0x160640,_0x34bbcd;return db[_0x1b972a('0x2f')]['findOne']({'where':{'id':_0x428e4b['params']['id']}})[_0x1b972a('0x5b')](handleEntityNotFound(_0x5ecc53,null))[_0x1b972a('0x5b')](function(_0x3d66ea){const _0x441537=_0x1b972a;if(_0x3d66ea)return _0x34bbcd=_0x3d66ea,_0x3d66ea[_0x441537('0x8')](_0x428e4b[_0x441537('0xa1')][_0x441537('0x88')],{'through':_[_0x441537('0xc')](_0x428e4b['body'],[_0x441537('0x88'),'id'])});return null;})[_0x1b972a('0x5b')](function(_0x11caf5){const _0x1f5708=_0x1b972a;let _0x3a7472;_0x160640=_0x11caf5||[];const _0x4e9e63=[];if(_0x11caf5){for(let _0x333918=0x0;_0x333918<_0x11caf5['length'];_0x333918+=0x1){const _0x4e6880=_0x11caf5[_0x333918][_0x1f5708('0x19')]({'plain':!![]});_0x34bbcd[_0x1f5708('0x12')]=_0x428e4b['body'][_0x1f5708('0x12')]?_0x428e4b['body'][_0x1f5708('0x12')]:_0x34bbcd[_0x1f5708('0x12')];switch(_0x34bbcd[_0x1f5708('0x12')]){case _0x1f5708('0x8a'):_0x3a7472=squel[_0x1f5708('0xa2')]()[_0x1f5708('0x49')]('cm_hopper')[_0x1f5708('0xd')]([_0x1f5708('0x81'),'scheduledAt',_0x1f5708('0xf'),_0x1f5708('0x8e'),_0x1f5708('0x7d'),_0x1f5708('0x37'),_0x1f5708('0x9b')],squel['select']()[_0x1f5708('0x60')](_0x1f5708('0x81'),_0x1f5708('0x81'))[_0x1f5708('0x60')](_0x1f5708('0x47'),'scheduledAt')[_0x1f5708('0x60')]('id',_0x1f5708('0xf'))[_0x1f5708('0x60')](_0x4e6880[_0x1f5708('0x68')][_0x1f5708('0x30')](),'ListId')['field'](_0x428e4b[_0x1f5708('0x6f')]['id'][_0x1f5708('0x30')](),'VoiceQueueId')['field']('NOW()','createdAt')[_0x1f5708('0x60')]('NOW()',_0x1f5708('0x9b'))[_0x1f5708('0x77')](_0x1f5708('0x62'))[_0x1f5708('0x35')](_0x1f5708('0x1f'))[_0x1f5708('0x35')]('ListId\x20=\x20?',_0x4e6880['CmListId'][_0x1f5708('0x30')]())[_0x1f5708('0x35')](_0x1f5708('0x79'))[_0x1f5708('0x35')](_0x1f5708('0x44'),squel[_0x1f5708('0x24')]()[_0x1f5708('0x60')](_0x1f5708('0x3'))[_0x1f5708('0x77')](_0x1f5708('0x82'))[_0x1f5708('0x35')](_0x1f5708('0xa4'),_0x428e4b[_0x1f5708('0x6f')]['id'][_0x1f5708('0x30')]()))['where'](_0x1f5708('0x44'),squel[_0x1f5708('0x24')]()[_0x1f5708('0x60')](_0x1f5708('0xa3'))[_0x1f5708('0x77')](_0x1f5708('0x11'))['where'](_0x1f5708('0xa4'),_0x428e4b[_0x1f5708('0x6f')]['id']['toString']())))[_0x1f5708('0x30')]();break;case'onlyIfOpen':_0x3a7472=squel['insert']()['into'](_0x1f5708('0x11'))[_0x1f5708('0xd')]([_0x1f5708('0x81'),_0x1f5708('0x2e'),_0x1f5708('0xf'),'ListId',_0x1f5708('0x7d'),_0x1f5708('0x37'),'updatedAt'],squel[_0x1f5708('0x24')]()[_0x1f5708('0x60')](_0x1f5708('0x81'),_0x1f5708('0x81'))[_0x1f5708('0x60')](_0x1f5708('0x47'),_0x1f5708('0x2e'))[_0x1f5708('0x60')]('id','ContactId')['field'](_0x4e6880[_0x1f5708('0x68')][_0x1f5708('0x30')](),_0x1f5708('0x8e'))[_0x1f5708('0x60')](_0x428e4b[_0x1f5708('0x6f')]['id']['toString'](),'VoiceQueueId')[_0x1f5708('0x60')](_0x1f5708('0x47'),'createdAt')[_0x1f5708('0x60')](_0x1f5708('0x47'),'updatedAt')[_0x1f5708('0x77')]('cm_contacts')[_0x1f5708('0x35')](_0x1f5708('0x1f'))[_0x1f5708('0x35')](_0x1f5708('0x64'),_0x4e6880['CmListId']['toString']())['where']('phone\x20IS\x20NOT\x20NULL')[_0x1f5708('0x35')](_0x1f5708('0x44'),squel[_0x1f5708('0x24')]()[_0x1f5708('0x60')]('COALESCE(phone,\x27\x27)')[_0x1f5708('0x77')](_0x1f5708('0x11'))[_0x1f5708('0x35')](_0x1f5708('0xa4'),_0x428e4b['params']['id'][_0x1f5708('0x30')]())))[_0x1f5708('0x30')]();break;default:_0x3a7472=squel[_0x1f5708('0xa2')]()['into']('cm_hopper')[_0x1f5708('0xd')]([_0x1f5708('0x81'),_0x1f5708('0x2e'),_0x1f5708('0xf'),_0x1f5708('0x8e'),'VoiceQueueId',_0x1f5708('0x37'),'updatedAt'],squel['select']()[_0x1f5708('0x60')](_0x1f5708('0x81'),_0x1f5708('0x81'))[_0x1f5708('0x60')](_0x1f5708('0x47'),_0x1f5708('0x2e'))['field']('id',_0x1f5708('0xf'))[_0x1f5708('0x60')](_0x4e6880[_0x1f5708('0x68')]['toString'](),_0x1f5708('0x8e'))[_0x1f5708('0x60')](_0x428e4b[_0x1f5708('0x6f')]['id'][_0x1f5708('0x30')](),'VoiceQueueId')[_0x1f5708('0x60')](_0x1f5708('0x47'),'createdAt')[_0x1f5708('0x60')](_0x1f5708('0x47'),'updatedAt')[_0x1f5708('0x77')](_0x1f5708('0x62'))[_0x1f5708('0x35')](_0x1f5708('0x1f'))[_0x1f5708('0x35')](_0x1f5708('0x64'),_0x4e6880[_0x1f5708('0x68')][_0x1f5708('0x30')]())[_0x1f5708('0x35')](_0x1f5708('0x79')))[_0x1f5708('0x30')]();}_0x4e9e63[_0x1f5708('0x7f')](db[_0x1f5708('0x71')][_0x1f5708('0x70')](_0x3a7472));}return Promise[_0x1f5708('0x9d')](_0x4e9e63);}})['then'](function(){return _0x160640;})[_0x1b972a('0x5b')](respondWithResult(_0x5ecc53,null))['catch'](handleError(_0x5ecc53,null));},exports[_0x4b3303('0x4a')]=function(_0x5f3f24,_0x3b4c6b){const _0x539deb=_0x4b3303;return db['VoiceQueue'][_0x539deb('0xb')]({'where':{'id':_0x5f3f24[_0x539deb('0x6f')]['id']}})[_0x539deb('0x5b')](handleEntityNotFound(_0x3b4c6b,null))['then'](function(_0x5d1bbd){const _0xb6b853=_0x539deb;if(_0x5d1bbd)return _0x5d1bbd[_0xb6b853('0x4a')](_0x5f3f24[_0xb6b853('0x70')]['ids']);})[_0x539deb('0x5b')](function(_0x12be04){const _0x796f52=_0x539deb;if(_0x12be04)return db['CmHopper'][_0x796f52('0x4f')]({'where':{'ListId':_0x5f3f24[_0x796f52('0x70')][_0x796f52('0x88')],'VoiceQueueId':_0x5f3f24[_0x796f52('0x6f')]['id']}})[_0x796f52('0x5b')](function(){return _0x12be04;});})[_0x539deb('0x5b')](respondWithStatusCode(_0x3b4c6b,null))['catch'](handleError(_0x3b4c6b,null));},exports[_0x4b3303('0x65')]=function(_0x42c33c,_0x275cb3){const _0x1f541a=_0x4b3303;let _0x1cb310={};const _0x31d15e={};let _0x3d08c1,_0x4a2317;return db['VoiceQueue'][_0x1f541a('0xb')]({'where':{'id':_0x42c33c[_0x1f541a('0x6f')]['id']}})[_0x1f541a('0x5b')](handleEntityNotFound(_0x275cb3,null))[_0x1f541a('0x5b')](function(_0xfb7180){const _0x4c9328=_0x1f541a;if(_0xfb7180)return _0x3d08c1=_0xfb7180,_0x31d15e[_0x4c9328('0x39')]=_['keys'](db[_0x4c9328('0x38')][_0x4c9328('0x15')]),_0x31d15e[_0x4c9328('0x70')]=_[_0x4c9328('0xa0')](_0x42c33c[_0x4c9328('0x70')]),_0x31d15e[_0x4c9328('0x4')]=_[_0x4c9328('0x76')](_0x31d15e[_0x4c9328('0x39')],_0x31d15e[_0x4c9328('0x70')]),_0x1cb310['attributes']=_[_0x4c9328('0x76')](_0x31d15e[_0x4c9328('0x39')],qs[_0x4c9328('0x27')](_0x42c33c[_0x4c9328('0x70')][_0x4c9328('0x27')])),_0x1cb310['attributes']=_0x1cb310[_0x4c9328('0x7c')][_0x4c9328('0x31')]?_0x1cb310[_0x4c9328('0x7c')]:_0x31d15e[_0x4c9328('0x39')],_0x1cb310[_0x4c9328('0x2')]=qs[_0x4c9328('0x6c')](_0x42c33c[_0x4c9328('0x70')][_0x4c9328('0x6c')]),_0x1cb310['where']=qs[_0x4c9328('0x4')](_[_0x4c9328('0x6d')](_0x42c33c['query'],_0x31d15e[_0x4c9328('0x4')])),_0x42c33c['query'][_0x4c9328('0x3e')]&&(_0x1cb310[_0x4c9328('0x35')]=_[_0x4c9328('0x74')](_0x1cb310[_0x4c9328('0x35')],{[Op['or']]:_['map'](_0x1cb310[_0x4c9328('0x7c')],function(_0x77b127){const _0x43ce72=_0x4c9328,_0x4a6d23={};return _0x4a6d23[_0x77b127]={[Op[_0x43ce72('0x32')]]:'%'+_0x42c33c[_0x43ce72('0x70')][_0x43ce72('0x3e')]+'%'},_0x4a6d23;})})),_0x1cb310=_[_0x4c9328('0x74')]({},_0x1cb310,_0x42c33c[_0x4c9328('0x3b')]),_0x3d08c1[_0x4c9328('0x65')](_0x1cb310);})[_0x1f541a('0x5b')](function(_0x47cc1c){const _0x4e1047=_0x1f541a;if(_0x47cc1c)return _0x4a2317=_0x47cc1c[_0x4e1047('0x31')],typeof _0x42c33c[_0x4e1047('0x70')][_0x4e1047('0x28')]===_0x4e1047('0x5a')&&(_0x1cb310['limit']=qs[_0x4e1047('0x1c')](_0x42c33c[_0x4e1047('0x70')]['limit']),_0x1cb310[_0x4e1047('0x29')]=qs[_0x4e1047('0x29')](_0x42c33c[_0x4e1047('0x70')][_0x4e1047('0x29')])),_0x3d08c1[_0x4e1047('0x65')](_0x1cb310);})[_0x1f541a('0x5b')](function(_0xe1e32c){if(_0xe1e32c)return _0xe1e32c?{'count':_0x4a2317,'rows':_0xe1e32c}:null;})['then'](respondWithResult(_0x275cb3,null))[_0x1f541a('0x6a')](handleError(_0x275cb3,null));},exports[_0x4b3303('0x33')]=function(_0x3b2022,_0x581540){const _0x58f114=_0x4b3303;let _0x1c36e6;return db[_0x58f114('0x2f')][_0x58f114('0xb')]({'where':{'id':_0x3b2022['params']['id']}})[_0x58f114('0x5b')](handleEntityNotFound(_0x581540,null))[_0x58f114('0x5b')](function(_0xec9ed1){const _0x31ca78=_0x58f114;if(_0xec9ed1)return _0xec9ed1['addBlackLists'](_0x3b2022[_0x31ca78('0xa1')][_0x31ca78('0x88')],{'through':_[_0x31ca78('0xc')](_0x3b2022['body'],[_0x31ca78('0x88'),'id'])});return null;})[_0x58f114('0x5b')](function(_0x4f92dc){const _0x252a8b=_0x58f114;let _0x4b971e;_0x1c36e6=_0x4f92dc||[];const _0x1c4e5e=[];if(_0x4f92dc){for(let _0x49d7a3=0x0;_0x49d7a3<_0x4f92dc[_0x252a8b('0x31')];_0x49d7a3+=0x1){const _0x166526=_0x4f92dc[_0x49d7a3][_0x252a8b('0x19')]({'plain':!![]});_0x4b971e=squel[_0x252a8b('0xa2')]()[_0x252a8b('0x49')](_0x252a8b('0x56'))[_0x252a8b('0xd')](['phone',_0x252a8b('0xf'),_0x252a8b('0x8e'),_0x252a8b('0x7d'),'createdAt',_0x252a8b('0x9b')],squel[_0x252a8b('0x24')]()[_0x252a8b('0x60')](_0x252a8b('0x81'),'phone')[_0x252a8b('0x60')]('id',_0x252a8b('0xf'))[_0x252a8b('0x60')](_0x166526['CmListId'][_0x252a8b('0x30')](),'ListId')[_0x252a8b('0x60')](_0x3b2022[_0x252a8b('0x6f')]['id'][_0x252a8b('0x30')](),'VoiceQueueId')[_0x252a8b('0x60')]('NOW()',_0x252a8b('0x37'))[_0x252a8b('0x60')]('NOW()',_0x252a8b('0x9b'))[_0x252a8b('0x77')](_0x252a8b('0x62'))[_0x252a8b('0x35')](_0x252a8b('0x1f'))[_0x252a8b('0x35')](_0x252a8b('0x64'),_0x166526[_0x252a8b('0x68')][_0x252a8b('0x30')]())[_0x252a8b('0x35')](_0x252a8b('0x79')))[_0x252a8b('0x30')](),_0x1c4e5e['push'](db[_0x252a8b('0x71')][_0x252a8b('0x70')](_0x4b971e));}return Promise[_0x252a8b('0x9d')](_0x1c4e5e);}})[_0x58f114('0x5b')](function(){return _0x1c36e6;})['then'](respondWithResult(_0x581540,null))['catch'](handleError(_0x581540,null));},exports[_0x4b3303('0x5f')]=function(_0x3bec3b,_0x1ec2c6){const _0x3408eb=_0x4b3303;return db[_0x3408eb('0x2f')][_0x3408eb('0xb')]({'where':{'id':_0x3bec3b['params']['id']}})[_0x3408eb('0x5b')](handleEntityNotFound(_0x1ec2c6,null))[_0x3408eb('0x5b')](function(_0x9e0bfb){const _0x4c2ae4=_0x3408eb;if(_0x9e0bfb)return _0x9e0bfb['removeBlackLists'](_0x3bec3b[_0x4c2ae4('0x70')][_0x4c2ae4('0x88')]);})['then'](function(_0x22a647){const _0x50da9d=_0x3408eb;if(_0x22a647)return db[_0x50da9d('0x4d')][_0x50da9d('0x4f')]({'where':{'ListId':_0x3bec3b[_0x50da9d('0x70')]['ids'],'VoiceQueueId':_0x3bec3b['params']['id']}})[_0x50da9d('0x5b')](function(){return _0x22a647;});})[_0x3408eb('0x5b')](respondWithStatusCode(_0x1ec2c6,null))[_0x3408eb('0x6a')](handleError(_0x1ec2c6,null));}; \ No newline at end of file +const a753_0x57fd=['addBlackLists','destroy','dialCheckDuplicateType','VoiceQueueId\x20=\x20?','body','catch','emit','role','UserVoiceQueueRt','getHopperBlacks','SIP/%s','rawAttributes','CmHopper','removeBlackLists','CmHopperBlack','end','getBlackLists','squel','TeamId','VoiceQueue','key','name','ListId\x20=\x20?','get','all','sequelize','create','cm_hopper_black','omit','register','team_has_voice_queues','fieldName','from','updatedAt','CmList','offset','model','each','length','intersection','keys','select','UserVoiceQueue','ut.UserId\x20=\x20?','cm_contacts','User','findAll','map','NOW()','inbound','QueueCampaigns','../../components/parsers/qs','undefined','online','count','isEmpty','userVoiceQueue:save','fields','into','value','clone','Team','isArray','params','merge','UserProfileResource','SELECT','cm_hopper_final','transaction','rows','interface','addLists','upsert','format','pick','filter','UserProfileSection','union','includes','push','util','getHoppers','forEach','../../config/logger','stack','scheduledAt','CmListId','sort','findOne','penalty','CmHopperFinal','teams','attributes','./voiceQueue.socket','createdAt','getLists','ContactId','update','like','VoiceQueueId','addTeams','VoiceQueues','deletedAt\x20IS\x20NULL','../../mysqldb','voicePause','Content-Range','field','ignore','query','../../rediscache','removeLists','Unable\x20to\x20retrieve\x20the\x20current\x20user','api','user','filters','ids','cm_hopper','send','where','removeTeams','removeAgents','phone\x20NOT\x20IN\x20(?)','onlyIfOpen','insert','ListId','order','userProfileId','getAgents','VIRTUAL','fromQuery','isNil','autoAssociation','CmHopperHistory','getMembers','includeAll','phone\x20IS\x20NOT\x20NULL','limit','getHopperFinals','sendStatus','userVoiceQueue:remove','user_has_teams','lodash','phone','COALESCE(phone,\x27\x27)','toString','status','Agents','include','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','getTeams','set','nolimit','options','outbound','then','find','type'];(function(_0xdbeb2f,_0x57fdd0){const _0x390cfb=function(_0xbacc66){while(--_0xbacc66){_0xdbeb2f['push'](_0xdbeb2f['shift']());}};_0x390cfb(++_0x57fdd0);}(a753_0x57fd,0x19c));const a753_0x390c=function(_0xdbeb2f,_0x57fdd0){_0xdbeb2f=_0xdbeb2f-0x0;let _0x390cfb=a753_0x57fd[_0xdbeb2f];return _0x390cfb;};const _0x39c1f6=a753_0x390c;'use strict';const util=require(_0x39c1f6('0x8b')),_=require(_0x39c1f6('0x2b')),squel=require(_0x39c1f6('0x4c')),qs=require(_0x39c1f6('0x6e')),logger=require(_0x39c1f6('0x8e'))(_0x39c1f6('0xe')),{getSocket}=require(_0x39c1f6('0xb')),socket=getSocket(),db=require(_0x39c1f6('0x5'))['db'],{Op,QueryTypes}=require('sequelize');require(_0x39c1f6('0x98'))[_0x39c1f6('0x58')](socket);function respondWithStatusCode(_0xbacc66,_0x571421){return _0x571421=_0x571421||0xcc,function(_0x7c9283){const _0x3b87f5=a753_0x390c;if(_0x7c9283)return _0xbacc66[_0x3b87f5('0x28')](_0x571421);return _0xbacc66['status'](_0x571421)[_0x3b87f5('0x4a')]();};}function respondWithResult(_0x4fd7a2,_0x56ba9e){return _0x56ba9e=_0x56ba9e||0xc8,function(_0x54b12a){const _0x43c012=a753_0x390c;if(_0x54b12a)return _0x4fd7a2[_0x43c012('0x2f')](_0x56ba9e)['json'](_0x54b12a);};}function respondWithFilteredResult(_0x9df8c,_0x2e3941){return function(_0x61d05c){const _0x4c9f46=a753_0x390c;if(_0x61d05c){const _0x229414=_0x61d05c[_0x4c9f46('0x71')],_0x22101c=_0x2e3941[_0x4c9f46('0x5e')];let _0x4834e9=_0x2e3941[_0x4c9f46('0x5e')]+_0x2e3941[_0x4c9f46('0x26')],_0x4746e8;return _0x4834e9>=_0x229414?(_0x4834e9=_0x229414,_0x4746e8=0xc8):_0x4746e8=0xce,_0x9df8c[_0x4c9f46('0x2f')](_0x4746e8),_0x9df8c[_0x4c9f46('0x34')](_0x4c9f46('0x7'),_0x22101c+'-'+_0x4834e9+'/'+_0x229414)['json'](_0x61d05c);}return null;};}function saveUpdates(_0x4ebbd6){return function(_0x4deb7e){const _0x26244b=a753_0x390c;if(_0x4deb7e)return _0x4deb7e[_0x26244b('0x9c')](_0x4ebbd6)[_0x26244b('0x38')](function(_0xc5d420){return _0xc5d420;});return null;};}function removeEntity(_0x17851a){return function(_0x2fa61a){const _0x2410ae=a753_0x390c;if(_0x2fa61a)return _0x2fa61a[_0x2410ae('0x3c')]()[_0x2410ae('0x38')](function(){const _0x16a051=_0x2410ae,_0x4cf0a4=_0x2fa61a[_0x16a051('0x52')]({'plain':!![]}),_0x4b23b8=[{'name':_0x16a051('0x3'),'value':_0x16a051('0x6c'),'ignore':![]},{'name':_0x16a051('0x6d'),'value':'outbound','ignore':![]}],_0x4c9b9c=_(_0x4b23b8)['filter'](_0x16a051('0x9'))[_0x16a051('0x6a')](_0x16a051('0x76'))['value']();if(_[_0x16a051('0x89')](_0x4c9b9c,_0x4cf0a4['type']))return;const _0x4b0516=_[_0x16a051('0x39')](_0x4b23b8,[_0x16a051('0x76'),_0x4cf0a4[_0x16a051('0x3a')]])[_0x16a051('0x50')];return db[_0x16a051('0x7c')][_0x16a051('0x3c')]({'where':{'type':_0x4b0516,'resourceId':_0x4cf0a4['id']}})[_0x16a051('0x38')](function(){return _0x2fa61a;});})[_0x2410ae('0x38')](function(){const _0x148963=_0x2410ae;_0x17851a[_0x148963('0x2f')](0xcc)[_0x148963('0x4a')]();});};}function handleEntityNotFound(_0x13ff5e){return function(_0x198d27){const _0x5832cc=a753_0x390c;return!_0x198d27&&_0x13ff5e[_0x5832cc('0x28')](0x194),_0x198d27;};}function handleError(_0x32a213,_0x69bdb5){return _0x69bdb5=_0x69bdb5||0x1f4,function(_0x68ac56){const _0x39f8c2=a753_0x390c;logger['error'](_0x68ac56[_0x39f8c2('0x8f')]),_0x68ac56['name']&&delete _0x68ac56['name'],_0x32a213['status'](_0x69bdb5)[_0x39f8c2('0x13')](_0x68ac56);};}exports['index']=function(_0x4f1464,_0x4dd0f0){const _0x313eac=_0x39c1f6;let _0x2692d5={};const _0x17320e={},_0x43a2d3={'count':0x0,'rows':[]},_0x490049=_[_0x313eac('0x6a')](db[_0x313eac('0x4e')][_0x313eac('0x46')],function(_0x174890){const _0x42ea03=_0x313eac;return{'name':_0x174890[_0x42ea03('0x5a')],'type':_0x174890[_0x42ea03('0x3a')][_0x42ea03('0x4f')]};});_0x17320e[_0x313eac('0x5f')]=_[_0x313eac('0x6a')](_0x490049,'name'),_0x17320e[_0x313eac('0xa')]=_[_0x313eac('0x63')](_0x4f1464[_0x313eac('0xa')]),_0x17320e[_0x313eac('0x10')]=_[_0x313eac('0x62')](_0x17320e[_0x313eac('0x5f')],_0x17320e[_0x313eac('0xa')]),_0x2692d5[_0x313eac('0x97')]=_[_0x313eac('0x62')](_0x17320e[_0x313eac('0x5f')],qs[_0x313eac('0x74')](_0x4f1464[_0x313eac('0xa')][_0x313eac('0x74')])),_0x2692d5[_0x313eac('0x97')]=_0x2692d5[_0x313eac('0x97')]['length']?_0x2692d5[_0x313eac('0x97')]:_0x17320e[_0x313eac('0x5f')];typeof _0x4f1464[_0x313eac('0xa')]['nolimit']==='undefined'&&(_0x2692d5[_0x313eac('0x26')]=qs[_0x313eac('0x26')](_0x4f1464['query']['limit']),_0x2692d5['offset']=qs['offset'](_0x4f1464[_0x313eac('0xa')][_0x313eac('0x5e')]));_0x2692d5[_0x313eac('0x1b')]=qs[_0x313eac('0x92')](_0x4f1464['query'][_0x313eac('0x92')]),_0x2692d5['where']=qs[_0x313eac('0x10')](_['pick'](_0x4f1464[_0x313eac('0xa')],_0x17320e['filters']),_0x490049);_0x4f1464[_0x313eac('0xa')][_0x313eac('0x86')]&&(_0x2692d5[_0x313eac('0x14')]=_[_0x313eac('0x7b')](_0x2692d5['where'],{[Op['or']]:_[_0x313eac('0x6a')](_0x490049,function(_0x1261c1){const _0x56a72b=_0x313eac;if(_0x1261c1[_0x56a72b('0x3a')]!==_0x56a72b('0x1e')){const _0xfe36d0={};return _0xfe36d0[_0x1261c1['name']]={[Op[_0x56a72b('0x0')]]:'%'+_0x4f1464[_0x56a72b('0xa')][_0x56a72b('0x86')]+'%'},_0xfe36d0;}})}));_0x2692d5=_['merge']({},_0x2692d5,_0x4f1464['options']);const _0x7d27a4={'where':_0x2692d5[_0x313eac('0x14')]};return db[_0x313eac('0x4e')]['count'](_0x7d27a4)[_0x313eac('0x38')](function(_0x5c8bdb){const _0x437fa0=_0x313eac;return _0x43a2d3[_0x437fa0('0x71')]=_0x5c8bdb,_0x4f1464['query'][_0x437fa0('0x24')]&&(_0x2692d5[_0x437fa0('0x31')]=[{'all':!![]}]),db[_0x437fa0('0x4e')][_0x437fa0('0x69')](_0x2692d5);})[_0x313eac('0x38')](function(_0x2c6bbe){const _0x20616e=_0x313eac;return _0x43a2d3[_0x20616e('0x80')]=_0x2c6bbe,_0x43a2d3;})[_0x313eac('0x38')](respondWithFilteredResult(_0x4dd0f0,_0x2692d5))['catch'](handleError(_0x4dd0f0,null));},exports['show']=function(_0x1ea021,_0x2774a9){const _0x447857=_0x39c1f6;let _0x27df45={'raw':![],'where':{'id':_0x1ea021['params']['id']}};const _0x1e5f4b={};return _0x1e5f4b[_0x447857('0x5f')]=_['keys'](db[_0x447857('0x4e')][_0x447857('0x46')]),_0x1e5f4b[_0x447857('0xa')]=_[_0x447857('0x63')](_0x1ea021[_0x447857('0xa')]),_0x1e5f4b[_0x447857('0x10')]=_[_0x447857('0x62')](_0x1e5f4b[_0x447857('0x5f')],_0x1e5f4b[_0x447857('0xa')]),_0x27df45[_0x447857('0x97')]=_[_0x447857('0x62')](_0x1e5f4b[_0x447857('0x5f')],qs[_0x447857('0x74')](_0x1ea021[_0x447857('0xa')]['fields'])),_0x27df45['attributes']=_0x27df45['attributes'][_0x447857('0x61')]?_0x27df45['attributes']:_0x1e5f4b[_0x447857('0x5f')],_0x1ea021['query'][_0x447857('0x24')]&&(_0x27df45[_0x447857('0x31')]=[{'all':!![]}]),_0x27df45=_[_0x447857('0x7b')]({},_0x27df45,_0x1ea021[_0x447857('0x36')]),db['VoiceQueue']['findOne'](_0x27df45)[_0x447857('0x38')](handleEntityNotFound(_0x2774a9,null))[_0x447857('0x38')](respondWithResult(_0x2774a9,null))[_0x447857('0x40')](handleError(_0x2774a9,null));},exports[_0x39c1f6('0x55')]=function(_0x175463,_0x3635ec){const _0x20533d=_0x39c1f6;return db[_0x20533d('0x4e')]['create'](_0x175463[_0x20533d('0x3f')],{})[_0x20533d('0x38')](function(_0x1dde6a){const _0x3bccbd=_0x20533d,_0x3afa2d=_0x175463[_0x3bccbd('0xf')][_0x3bccbd('0x52')]({'plain':!![]});if(!_0x3afa2d)throw new Error(_0x3bccbd('0xd'));if(_0x3afa2d['role']===_0x3bccbd('0xf')){const _0x2809ae=_0x1dde6a[_0x3bccbd('0x52')]({'plain':!![]}),_0xc1722a=[{'name':_0x3bccbd('0x3'),'value':_0x3bccbd('0x6c')},{'name':'QueueCampaigns','value':_0x3bccbd('0x37')}],_0x2542f8=_[_0x3bccbd('0x39')](_0xc1722a,[_0x3bccbd('0x76'),_0x2809ae['type']])[_0x3bccbd('0x50')];return db[_0x3bccbd('0x87')][_0x3bccbd('0x93')]({'where':{'name':_0x2542f8,'userProfileId':_0x3afa2d['userProfileId']},'raw':!![]})[_0x3bccbd('0x38')](function(_0xab2a5){const _0x56dde8=_0x3bccbd;return _0xab2a5&&_0xab2a5[_0x56dde8('0x21')]===0x0?db[_0x56dde8('0x7c')]['create']({'name':_0x2809ae[_0x56dde8('0x50')],'resourceId':_0x2809ae['id'],'type':_0xab2a5[_0x56dde8('0x50')],'sectionId':_0xab2a5['id']},{})[_0x56dde8('0x38')](function(){return _0x1dde6a;}):_0x1dde6a;})[_0x3bccbd('0x40')](function(_0x2c7916){const _0x56e9d6=_0x3bccbd;logger['error'](_0x56e9d6('0x32'),_0x2c7916);throw _0x2c7916;});}return _0x1dde6a;})[_0x20533d('0x38')](respondWithResult(_0x3635ec,0xc9))[_0x20533d('0x40')](handleError(_0x3635ec,null));},exports[_0x39c1f6('0x77')]=function(_0x4b78fb,_0x354098){const _0x234cd2=_0x39c1f6;let _0x461cad={'where':{'id':_0x4b78fb[_0x234cd2('0x7a')]['id']}};const _0x51f1a7={};return _0x51f1a7[_0x234cd2('0x5f')]=_[_0x234cd2('0x63')](db[_0x234cd2('0x4e')][_0x234cd2('0x46')]),_0x461cad[_0x234cd2('0x97')]=_[_0x234cd2('0x62')](_0x51f1a7[_0x234cd2('0x5f')],qs['fields'](_0x4b78fb[_0x234cd2('0xa')][_0x234cd2('0x74')])),_0x461cad[_0x234cd2('0x97')]=_0x461cad[_0x234cd2('0x97')][_0x234cd2('0x61')]?_0x461cad[_0x234cd2('0x97')]:_0x51f1a7[_0x234cd2('0x5f')],_0x4b78fb['query']['includeAll']&&(_0x461cad['include']=[{'all':!![]}]),_0x461cad=_['merge']({},_0x461cad,_0x4b78fb[_0x234cd2('0x36')]),db['VoiceQueue'][_0x234cd2('0x93')](_0x461cad)[_0x234cd2('0x38')](handleEntityNotFound(_0x354098,null))['then'](function(_0x440c48){const _0x2e2d13=_0x234cd2;if(_0x440c48){let _0x4296fc=_0x440c48[_0x2e2d13('0x52')]({'plain':!![]});return _0x4296fc=qs['omit'](_0x4296fc,['id',_0x2e2d13('0x99'),'updatedAt']),_0x4b78fb[_0x2e2d13('0x3f')]=_[_0x2e2d13('0x57')](_0x4b78fb[_0x2e2d13('0x3f')],['id',_0x2e2d13('0x99'),_0x2e2d13('0x5c')]),db[_0x2e2d13('0x4e')][_0x2e2d13('0x55')](_[_0x2e2d13('0x7b')](_0x4296fc,_0x4b78fb[_0x2e2d13('0x3f')]),{'include':_0x4b78fb['query'][_0x2e2d13('0x24')]?[{'all':!![]}]:undefined})[_0x2e2d13('0x38')](function(_0x51fdf3){const _0x75ae1d=_0x2e2d13,_0xe33386=_0x4b78fb['user']['get']({'plain':!![]});if(!_0xe33386)throw new Error(_0x75ae1d('0xd'));if(_0xe33386[_0x75ae1d('0x42')]===_0x75ae1d('0xf')){const _0x492a58=_0x51fdf3[_0x75ae1d('0x52')]({'plain':!![]}),_0x130873=[{'name':_0x75ae1d('0x3'),'value':_0x75ae1d('0x6c')},{'name':_0x75ae1d('0x6d'),'value':_0x75ae1d('0x37')}],_0x33317b=_['find'](_0x130873,['value',_0x492a58[_0x75ae1d('0x3a')]])[_0x75ae1d('0x50')];return db[_0x75ae1d('0x87')][_0x75ae1d('0x93')]({'where':{'name':_0x33317b,'userProfileId':_0xe33386[_0x75ae1d('0x1c')]},'raw':!![]})['then'](function(_0x306e9f){const _0x2e2720=_0x75ae1d;return _0x306e9f&&_0x306e9f[_0x2e2720('0x21')]===0x0?db[_0x2e2720('0x7c')]['create']({'name':_0x492a58[_0x2e2720('0x50')],'resourceId':_0x492a58['id'],'type':_0x306e9f[_0x2e2720('0x50')],'sectionId':_0x306e9f['id']},{})[_0x2e2720('0x38')](function(){return _0x51fdf3;}):_0x51fdf3;})[_0x75ae1d('0x40')](function(_0x1e5738){const _0x2cb6e6=_0x75ae1d;logger['error'](_0x2cb6e6('0x32'),_0x1e5738);throw _0x1e5738;});}return _0x51fdf3;});}})[_0x234cd2('0x38')](respondWithResult(_0x354098,0xc9))['catch'](handleError(_0x354098,null));},exports[_0x39c1f6('0x9c')]=function(_0x2f0f2a,_0x256778){const _0xa167fe=_0x39c1f6;return _0x2f0f2a['body']['id']&&delete _0x2f0f2a[_0xa167fe('0x3f')]['id'],db['VoiceQueue'][_0xa167fe('0x93')]({'where':{'id':_0x2f0f2a[_0xa167fe('0x7a')]['id']}})[_0xa167fe('0x38')](handleEntityNotFound(_0x256778,null))['then'](saveUpdates(_0x2f0f2a[_0xa167fe('0x3f')],null))[_0xa167fe('0x38')](respondWithResult(_0x256778,null))['catch'](handleError(_0x256778,null));},exports['destroy']=function(_0x2de93f,_0x433107){const _0x469f06=_0x39c1f6;return db[_0x469f06('0x4e')][_0x469f06('0x93')]({'where':{'id':_0x2de93f['params']['id']}})[_0x469f06('0x38')](handleEntityNotFound(_0x433107,null))[_0x469f06('0x38')](removeEntity(_0x433107,null))[_0x469f06('0x40')](handleError(_0x433107,null));},exports[_0x39c1f6('0x8c')]=function(_0xe43648,_0x1a5d0f){const _0x4090b5=_0x39c1f6;let _0x3491e4={'raw':![],'where':{}};const _0x2fa725={},_0x2a85b={'count':0x0,'rows':[]};return db[_0x4090b5('0x4e')][_0x4090b5('0x93')]({'where':{'id':_0xe43648[_0x4090b5('0x7a')]['id']}})[_0x4090b5('0x38')](handleEntityNotFound(_0x1a5d0f,null))['then'](function(_0x31002f){const _0x3154af=_0x4090b5;if(_0x31002f)return _0x2fa725[_0x3154af('0x5f')]=_[_0x3154af('0x63')](db[_0x3154af('0x47')][_0x3154af('0x46')]),_0x2fa725['query']=_[_0x3154af('0x63')](_0xe43648['query']),_0x2fa725[_0x3154af('0x10')]=_[_0x3154af('0x62')](_0x2fa725[_0x3154af('0x5f')],_0x2fa725['query']),_0x3491e4[_0x3154af('0x97')]=_[_0x3154af('0x62')](_0x2fa725[_0x3154af('0x5f')],qs['fields'](_0xe43648[_0x3154af('0xa')][_0x3154af('0x74')])),_0x3491e4[_0x3154af('0x97')]=_0x3491e4[_0x3154af('0x97')][_0x3154af('0x61')]?_0x3491e4['attributes']:_0x2fa725['model'],typeof _0xe43648[_0x3154af('0xa')][_0x3154af('0x35')]===_0x3154af('0x6f')&&(_0x3491e4[_0x3154af('0x26')]=qs[_0x3154af('0x26')](_0xe43648[_0x3154af('0xa')][_0x3154af('0x26')]),_0x3491e4[_0x3154af('0x5e')]=qs['offset'](_0xe43648[_0x3154af('0xa')]['offset'])),_0x3491e4['order']=qs[_0x3154af('0x92')](_0xe43648[_0x3154af('0xa')][_0x3154af('0x92')]),_0x3491e4[_0x3154af('0x14')]=qs[_0x3154af('0x10')](_[_0x3154af('0x85')](_0xe43648[_0x3154af('0xa')],_0x2fa725[_0x3154af('0x10')])),_0x3491e4['where'][_0x3154af('0x1')]=_0x31002f['id'],_0xe43648[_0x3154af('0xa')][_0x3154af('0x86')]&&(_0x3491e4[_0x3154af('0x14')]=_[_0x3154af('0x7b')](_0x3491e4[_0x3154af('0x14')],{[Op['or']]:_[_0x3154af('0x6a')](_0x3491e4[_0x3154af('0x97')],function(_0xc2e2e8){const _0x408304=_0x3154af,_0x4a1426={};return _0x4a1426[_0xc2e2e8]={[Op['like']]:'%'+_0xe43648[_0x408304('0xa')][_0x408304('0x86')]+'%'},_0x4a1426;})})),_0x3491e4=_[_0x3154af('0x7b')]({},_0x3491e4,_0xe43648[_0x3154af('0x36')]),db[_0x3154af('0x47')]['count']({'where':_0x3491e4['where']})[_0x3154af('0x38')](function(_0x549198){const _0x49e3ff=_0x3154af;return _0x2a85b['count']=_0x549198,_0xe43648[_0x49e3ff('0xa')][_0x49e3ff('0x24')]&&(_0x3491e4[_0x49e3ff('0x31')]=[{'all':!![]}]),db[_0x49e3ff('0x47')][_0x49e3ff('0x69')](_0x3491e4);})[_0x3154af('0x38')](function(_0x4d0b4c){return _0x2a85b['rows']=_0x4d0b4c,_0x2a85b;});})[_0x4090b5('0x38')](respondWithFilteredResult(_0x1a5d0f,_0x3491e4))[_0x4090b5('0x40')](handleError(_0x1a5d0f,null));},exports['getHopperHistories']=function(_0xb7f10b,_0x4e8a62){const _0x48e4a4=_0x39c1f6;let _0x175512={'raw':!![],'where':{}};const _0x1f903f={},_0xce8752={'count':0x0,'rows':[]};return db['VoiceQueue'][_0x48e4a4('0x93')]({'where':{'id':_0xb7f10b[_0x48e4a4('0x7a')]['id']}})[_0x48e4a4('0x38')](handleEntityNotFound(_0x4e8a62,null))['then'](function(_0x119c64){const _0x18da40=_0x48e4a4;if(_0x119c64)return _0x1f903f[_0x18da40('0x5f')]=_[_0x18da40('0x63')](db[_0x18da40('0x22')]['rawAttributes']),_0x1f903f[_0x18da40('0xa')]=_[_0x18da40('0x63')](_0xb7f10b[_0x18da40('0xa')]),_0x1f903f[_0x18da40('0x10')]=_[_0x18da40('0x62')](_0x1f903f[_0x18da40('0x5f')],_0x1f903f[_0x18da40('0xa')]),_0x175512[_0x18da40('0x97')]=_['intersection'](_0x1f903f[_0x18da40('0x5f')],qs[_0x18da40('0x74')](_0xb7f10b[_0x18da40('0xa')]['fields'])),_0x175512[_0x18da40('0x97')]=_0x175512[_0x18da40('0x97')]['length']?_0x175512['attributes']:_0x1f903f[_0x18da40('0x5f')],typeof _0xb7f10b[_0x18da40('0xa')][_0x18da40('0x35')]===_0x18da40('0x6f')&&(_0x175512[_0x18da40('0x26')]=qs[_0x18da40('0x26')](_0xb7f10b[_0x18da40('0xa')][_0x18da40('0x26')]),_0x175512['offset']=qs['offset'](_0xb7f10b[_0x18da40('0xa')][_0x18da40('0x5e')])),_0x175512[_0x18da40('0x1b')]=qs[_0x18da40('0x92')](_0xb7f10b[_0x18da40('0xa')][_0x18da40('0x92')]),_0x175512[_0x18da40('0x14')]=qs['filters'](_[_0x18da40('0x85')](_0xb7f10b[_0x18da40('0xa')],_0x1f903f[_0x18da40('0x10')])),_0x175512[_0x18da40('0x14')][_0x18da40('0x1')]=_0x119c64['id'],_0xb7f10b['query'][_0x18da40('0x86')]&&(_0x175512[_0x18da40('0x14')]=_[_0x18da40('0x7b')](_0x175512[_0x18da40('0x14')],{[Op['or']]:_[_0x18da40('0x6a')](_0x175512[_0x18da40('0x97')],function(_0xf07279){const _0x3e480c=_0x18da40,_0x18abbf={};return _0x18abbf[_0xf07279]={[Op[_0x3e480c('0x0')]]:'%'+_0xb7f10b['query'][_0x3e480c('0x86')]+'%'},_0x18abbf;})})),_0x175512=_[_0x18da40('0x7b')]({},_0x175512,_0xb7f10b[_0x18da40('0x36')]),db[_0x18da40('0x22')][_0x18da40('0x71')]({'where':_0x175512['where']})[_0x18da40('0x38')](function(_0x5681e8){const _0x1e7f80=_0x18da40;return _0xce8752[_0x1e7f80('0x71')]=_0x5681e8,_0xb7f10b[_0x1e7f80('0xa')][_0x1e7f80('0x24')]&&(_0x175512[_0x1e7f80('0x31')]=[{'all':!![]}]),db[_0x1e7f80('0x22')]['findAll'](_0x175512);})['then'](function(_0x58ebfa){const _0x24b329=_0x18da40;return _0xce8752[_0x24b329('0x80')]=_0x58ebfa,_0xce8752;});})[_0x48e4a4('0x38')](respondWithFilteredResult(_0x4e8a62,_0x175512))[_0x48e4a4('0x40')](handleError(_0x4e8a62,null));},exports[_0x39c1f6('0x27')]=function(_0xc0ab4c,_0x1454e6){const _0xec40dd=_0x39c1f6;let _0x1e176d={'raw':!![],'where':{}};const _0x5eadab={},_0x5454f6={'count':0x0,'rows':[]};return db[_0xec40dd('0x4e')][_0xec40dd('0x93')]({'where':{'id':_0xc0ab4c['params']['id']}})['then'](handleEntityNotFound(_0x1454e6,null))[_0xec40dd('0x38')](function(_0x41812d){const _0x113d33=_0xec40dd;if(_0x41812d)return _0x5eadab[_0x113d33('0x5f')]=_['keys'](db['CmHopperFinal'][_0x113d33('0x46')]),_0x5eadab[_0x113d33('0xa')]=_[_0x113d33('0x63')](_0xc0ab4c[_0x113d33('0xa')]),_0x5eadab['filters']=_[_0x113d33('0x62')](_0x5eadab['model'],_0x5eadab[_0x113d33('0xa')]),_0x1e176d[_0x113d33('0x97')]=_[_0x113d33('0x62')](_0x5eadab['model'],qs[_0x113d33('0x74')](_0xc0ab4c[_0x113d33('0xa')][_0x113d33('0x74')])),_0x1e176d['attributes']=_0x1e176d[_0x113d33('0x97')][_0x113d33('0x61')]?_0x1e176d[_0x113d33('0x97')]:_0x5eadab[_0x113d33('0x5f')],typeof _0xc0ab4c[_0x113d33('0xa')][_0x113d33('0x35')]===_0x113d33('0x6f')&&(_0x1e176d[_0x113d33('0x26')]=qs[_0x113d33('0x26')](_0xc0ab4c[_0x113d33('0xa')][_0x113d33('0x26')]),_0x1e176d[_0x113d33('0x5e')]=qs[_0x113d33('0x5e')](_0xc0ab4c[_0x113d33('0xa')][_0x113d33('0x5e')])),_0x1e176d[_0x113d33('0x1b')]=qs[_0x113d33('0x92')](_0xc0ab4c[_0x113d33('0xa')][_0x113d33('0x92')]),_0x1e176d[_0x113d33('0x14')]=qs['filters'](_[_0x113d33('0x85')](_0xc0ab4c[_0x113d33('0xa')],_0x5eadab[_0x113d33('0x10')])),_0x1e176d[_0x113d33('0x14')][_0x113d33('0x1')]=_0x41812d['id'],_0xc0ab4c['query']['filter']&&(_0x1e176d[_0x113d33('0x14')]=_[_0x113d33('0x7b')](_0x1e176d[_0x113d33('0x14')],{[Op['or']]:_[_0x113d33('0x6a')](_0x1e176d[_0x113d33('0x97')],function(_0x4e8600){const _0x565a9f=_0x113d33,_0x145dc1={};return _0x145dc1[_0x4e8600]={[Op[_0x565a9f('0x0')]]:'%'+_0xc0ab4c[_0x565a9f('0xa')][_0x565a9f('0x86')]+'%'},_0x145dc1;})})),_0x1e176d=_['merge']({},_0x1e176d,_0xc0ab4c[_0x113d33('0x36')]),db['CmHopperFinal'][_0x113d33('0x71')]({'where':_0x1e176d[_0x113d33('0x14')]})['then'](function(_0x5bb68a){const _0x31fbfc=_0x113d33;return _0x5454f6[_0x31fbfc('0x71')]=_0x5bb68a,_0xc0ab4c[_0x31fbfc('0xa')]['includeAll']&&(_0x1e176d[_0x31fbfc('0x31')]=[{'all':!![]}]),db[_0x31fbfc('0x95')][_0x31fbfc('0x69')](_0x1e176d);})['then'](function(_0x4a3f51){return _0x5454f6['rows']=_0x4a3f51,_0x5454f6;});})[_0xec40dd('0x38')](respondWithFilteredResult(_0x1454e6,_0x1e176d))[_0xec40dd('0x40')](handleError(_0x1454e6,null));},exports[_0x39c1f6('0x44')]=function(_0x5c4826,_0x392280){const _0x5b4a89=_0x39c1f6;let _0x26c5e3={'raw':!![],'where':{}};const _0x144059={},_0x44c2ce={'count':0x0,'rows':[]};return db[_0x5b4a89('0x4e')][_0x5b4a89('0x93')]({'where':{'id':_0x5c4826['params']['id']}})[_0x5b4a89('0x38')](handleEntityNotFound(_0x392280,null))[_0x5b4a89('0x38')](function(_0x117b38){const _0x4af499=_0x5b4a89;if(_0x117b38)return _0x144059[_0x4af499('0x5f')]=_[_0x4af499('0x63')](db[_0x4af499('0x49')][_0x4af499('0x46')]),_0x144059[_0x4af499('0xa')]=_['keys'](_0x5c4826[_0x4af499('0xa')]),_0x144059[_0x4af499('0x10')]=_['intersection'](_0x144059[_0x4af499('0x5f')],_0x144059[_0x4af499('0xa')]),_0x26c5e3[_0x4af499('0x97')]=_[_0x4af499('0x62')](_0x144059[_0x4af499('0x5f')],qs[_0x4af499('0x74')](_0x5c4826[_0x4af499('0xa')][_0x4af499('0x74')])),_0x26c5e3[_0x4af499('0x97')]=_0x26c5e3[_0x4af499('0x97')][_0x4af499('0x61')]?_0x26c5e3['attributes']:_0x144059[_0x4af499('0x5f')],typeof _0x5c4826['query']['nolimit']===_0x4af499('0x6f')&&(_0x26c5e3[_0x4af499('0x26')]=qs[_0x4af499('0x26')](_0x5c4826[_0x4af499('0xa')]['limit']),_0x26c5e3[_0x4af499('0x5e')]=qs[_0x4af499('0x5e')](_0x5c4826[_0x4af499('0xa')][_0x4af499('0x5e')])),_0x26c5e3[_0x4af499('0x1b')]=qs[_0x4af499('0x92')](_0x5c4826['query'][_0x4af499('0x92')]),_0x26c5e3[_0x4af499('0x14')]=qs[_0x4af499('0x10')](_['pick'](_0x5c4826[_0x4af499('0xa')],_0x144059[_0x4af499('0x10')])),_0x26c5e3[_0x4af499('0x14')][_0x4af499('0x1')]=_0x117b38['id'],_0x5c4826[_0x4af499('0xa')][_0x4af499('0x86')]&&(_0x26c5e3[_0x4af499('0x14')]=_['merge'](_0x26c5e3['where'],{[Op['or']]:_[_0x4af499('0x6a')](_0x26c5e3[_0x4af499('0x97')],function(_0x5555f4){const _0x18af24=_0x4af499,_0x11ce05={};return _0x11ce05[_0x5555f4]={[Op['like']]:'%'+_0x5c4826[_0x18af24('0xa')]['filter']+'%'},_0x11ce05;})})),_0x26c5e3=_[_0x4af499('0x7b')]({},_0x26c5e3,_0x5c4826[_0x4af499('0x36')]),db[_0x4af499('0x49')][_0x4af499('0x71')]({'where':_0x26c5e3['where']})[_0x4af499('0x38')](function(_0x5c1039){const _0x283546=_0x4af499;return _0x44c2ce[_0x283546('0x71')]=_0x5c1039,_0x5c4826['query'][_0x283546('0x24')]&&(_0x26c5e3[_0x283546('0x31')]=[{'all':!![]}]),db['CmHopperBlack'][_0x283546('0x69')](_0x26c5e3);})[_0x4af499('0x38')](function(_0x1bc288){const _0x1a52aa=_0x4af499;return _0x44c2ce[_0x1a52aa('0x80')]=_0x1bc288,_0x44c2ce;});})[_0x5b4a89('0x38')](respondWithFilteredResult(_0x392280,_0x26c5e3))['catch'](handleError(_0x392280,null));},exports['getTeams']=function(_0x4380f7,_0xf02c9b){const _0x5ec4a8=_0x39c1f6;let _0x4b6fd8={};const _0x51dc30={};let _0x37b2a7,_0x32665a;return db[_0x5ec4a8('0x4e')][_0x5ec4a8('0x93')]({'where':{'id':_0x4380f7[_0x5ec4a8('0x7a')]['id']}})['then'](handleEntityNotFound(_0xf02c9b,null))['then'](function(_0x1e49fe){const _0x3d6ef3=_0x5ec4a8;if(_0x1e49fe)return _0x37b2a7=_0x1e49fe,_0x51dc30[_0x3d6ef3('0x5f')]=_[_0x3d6ef3('0x63')](db['Team'][_0x3d6ef3('0x46')]),_0x51dc30['query']=_[_0x3d6ef3('0x63')](_0x4380f7[_0x3d6ef3('0xa')]),_0x51dc30[_0x3d6ef3('0x10')]=_[_0x3d6ef3('0x62')](_0x51dc30[_0x3d6ef3('0x5f')],_0x51dc30['query']),_0x4b6fd8[_0x3d6ef3('0x97')]=_[_0x3d6ef3('0x62')](_0x51dc30[_0x3d6ef3('0x5f')],qs[_0x3d6ef3('0x74')](_0x4380f7['query'][_0x3d6ef3('0x74')])),_0x4b6fd8['attributes']=_0x4b6fd8['attributes'][_0x3d6ef3('0x61')]?_0x4b6fd8['attributes']:_0x51dc30[_0x3d6ef3('0x5f')],_0x4b6fd8[_0x3d6ef3('0x1b')]=qs[_0x3d6ef3('0x92')](_0x4380f7['query'][_0x3d6ef3('0x92')]),_0x4b6fd8[_0x3d6ef3('0x14')]=qs[_0x3d6ef3('0x10')](_[_0x3d6ef3('0x85')](_0x4380f7[_0x3d6ef3('0xa')],_0x51dc30[_0x3d6ef3('0x10')])),_0x4380f7[_0x3d6ef3('0xa')][_0x3d6ef3('0x86')]&&(_0x4b6fd8[_0x3d6ef3('0x14')]=_[_0x3d6ef3('0x7b')](_0x4b6fd8[_0x3d6ef3('0x14')],{[Op['or']]:_[_0x3d6ef3('0x6a')](_0x4b6fd8[_0x3d6ef3('0x97')],function(_0x45008c){const _0x1df05c=_0x3d6ef3,_0x2546b6={};return _0x2546b6[_0x45008c]={[Op[_0x1df05c('0x0')]]:'%'+_0x4380f7[_0x1df05c('0xa')][_0x1df05c('0x86')]+'%'},_0x2546b6;})})),_0x4b6fd8=_[_0x3d6ef3('0x7b')]({},_0x4b6fd8,_0x4380f7['options']),_0x37b2a7[_0x3d6ef3('0x33')](_0x4b6fd8);})[_0x5ec4a8('0x38')](function(_0x28677e){const _0xa61b57=_0x5ec4a8;if(_0x28677e)return _0x32665a=_0x28677e['length'],typeof _0x4380f7[_0xa61b57('0xa')][_0xa61b57('0x35')]===_0xa61b57('0x6f')&&(_0x4b6fd8['limit']=qs[_0xa61b57('0x26')](_0x4380f7[_0xa61b57('0xa')][_0xa61b57('0x26')]),_0x4b6fd8[_0xa61b57('0x5e')]=qs['offset'](_0x4380f7['query'][_0xa61b57('0x5e')])),_0x37b2a7[_0xa61b57('0x33')](_0x4b6fd8);})[_0x5ec4a8('0x38')](function(_0x5ac52d){if(_0x5ac52d)return _0x5ac52d?{'count':_0x32665a,'rows':_0x5ac52d}:null;})[_0x5ec4a8('0x38')](respondWithResult(_0xf02c9b,null))[_0x5ec4a8('0x40')](handleError(_0xf02c9b,null));},exports['addTeams']=function(_0x119814,_0x288661){const _0x5e456f=_0x39c1f6,_0x3aa739=_0x119814['body'][_0x5e456f('0x96')],_0x4586ca=_[_0x5e456f('0x6a')](_0x3aa739,'id');return db[_0x5e456f('0x78')][_0x5e456f('0x69')]({'where':{'id':_0x4586ca},'attributes':['id'],'include':[{'model':db[_0x5e456f('0x68')],'as':'Agents','attributes':['id',_0x5e456f('0x50'),_0x5e456f('0x70'),'voicePause',_0x5e456f('0x81')],'raw':!![]}]})['then'](function(_0x44b742){const _0x11e9b1=_0x5e456f;if(_0x44b742){const _0x2f422c=_['flatMap'](_0x44b742,function(_0x39630d){const _0x3f55a1=a753_0x390c,_0x43ac95=_0x39630d[_0x3f55a1('0x52')]({'plain':!![]});return _0x43ac95[_0x3f55a1('0x30')][_0x3f55a1('0x8d')](function(_0xec5702){const _0x5e4686=_0x3f55a1;_0xec5702[_0x5e4686('0x94')]=_['find'](_0x3aa739,{'id':_0x43ac95['id']})['penalty'];}),_0x43ac95['Agents'];});return db[_0x11e9b1('0x4e')][_0x11e9b1('0x93')]({'where':{'id':_0x119814[_0x11e9b1('0x7a')]['id']}})[_0x11e9b1('0x38')](function(_0x198413){const _0x5808be=_0x11e9b1;return db['sequelize'][_0x5808be('0x7f')](function(_0x1cc9ec){const _0x592ae7=_0x5808be;return _0x198413[_0x592ae7('0x2')](_0x4586ca,{'transaction':_0x1cc9ec})[_0x592ae7('0x38')](function(){const _0x41f5b7=_0x592ae7;return Promise[_0x41f5b7('0x60')](_0x2f422c,function(_0x9056f){const _0x21400f=_0x41f5b7;return db[_0x21400f('0x65')]['findOrCreate']({'where':{'UserId':_0x9056f['id'],'VoiceQueueId':_0x119814[_0x21400f('0x7a')]['id']},'defaults':{'penalty':_0x9056f[_0x21400f('0x94')]},'transaction':_0x1cc9ec});});})['then'](function(){const _0x22990e=_0x592ae7;return Promise[_0x22990e('0x60')](_[_0x22990e('0x86')](_0x2f422c,{'online':!![]}),function(_0x5607a8){const _0x3fa7ff=_0x22990e;return db[_0x3fa7ff('0x43')][_0x3fa7ff('0x83')]({'membername':_0x5607a8['name'],'UserId':_0x5607a8['id'],'queue_name':_0x198413['name'],'VoiceQueueId':_0x198413['id'],'interface':_[_0x3fa7ff('0x20')](_0x5607a8[_0x3fa7ff('0x81')])?util[_0x3fa7ff('0x84')](_0x3fa7ff('0x45'),_0x5607a8['name']):_0x5607a8[_0x3fa7ff('0x81')],'paused':_0x5607a8['voicePause']||![],'penalty':_0x5607a8[_0x3fa7ff('0x94')]},{'transaction':_0x1cc9ec});});})['then'](function(){const _0x4bbd28=_0x592ae7;_0x2f422c[_0x4bbd28('0x8d')](function(_0x89cef4){const _0x2421b3=_0x4bbd28;socket['emit'](_0x2421b3('0x73'),{'UserId':_0x89cef4['id'],'VoiceQueueId':_0x198413['id']});});});});});}})[_0x5e456f('0x38')](respondWithStatusCode(_0x288661,null))[_0x5e456f('0x40')](handleError(_0x288661,null));},exports[_0x39c1f6('0x15')]=function(_0x19f3e3,_0x257dae){const _0x4a72f3=_0x39c1f6;return db[_0x4a72f3('0x78')]['findAll']({'where':{'id':_0x19f3e3[_0x4a72f3('0xa')][_0x4a72f3('0x11')]},'attributes':['id'],'include':[{'model':db[_0x4a72f3('0x68')],'as':_0x4a72f3('0x30'),'attributes':['id'],'raw':!![]}]})[_0x4a72f3('0x38')](handleEntityNotFound(_0x257dae,null))[_0x4a72f3('0x38')](function(_0x5f2827){const _0x2fd3d5=_0x4a72f3,_0x12d036=_['map'](_0x5f2827,'id');let _0x239ec9=[];const _0x52709f=[],_0x319539=squel['select']();_0x319539[_0x2fd3d5('0x8')]('tq.TeamId')[_0x2fd3d5('0x5b')](_0x2fd3d5('0x59'),'tq')['join'](_0x2fd3d5('0x2a'),'ut','ut.TeamId\x20=\x20tq.TeamId')[_0x2fd3d5('0x14')](_0x2fd3d5('0x3e'),_0x19f3e3[_0x2fd3d5('0x7a')]['id']);for(let _0xa95727=0x0;_0xa95727<_0x5f2827[_0x2fd3d5('0x61')];_0xa95727+=0x1){const _0x1f243a=_0x5f2827[_0xa95727];for(let _0x58b26d=0x0;_0x58b26d<_0x1f243a['Agents'][_0x2fd3d5('0x61')];_0x58b26d+=0x1){const _0x55c694=_0x1f243a[_0x2fd3d5('0x30')][_0x58b26d],_0x41aa5d=_0x319539[_0x2fd3d5('0x77')]();_0x41aa5d[_0x2fd3d5('0x14')](_0x2fd3d5('0x66'),_0x55c694['id']),_0x52709f[_0x2fd3d5('0x8a')](db[_0x2fd3d5('0x54')][_0x2fd3d5('0xa')](_0x41aa5d[_0x2fd3d5('0x2e')](),{'type':QueryTypes[_0x2fd3d5('0x7d')]})[_0x2fd3d5('0x38')](function(_0x47e6c1){const _0x574202=_0x2fd3d5;if(_0x47e6c1[_0x574202('0x61')]===0x1)return _0x55c694['id'];else{const _0x3ba56b=_['every'](_[_0x574202('0x6a')](_0x47e6c1,_0x574202('0x4d')),function(_0x8127b){const _0x516407=_0x574202;return _[_0x516407('0x89')](_0x12d036,_0x8127b);});if(_0x3ba56b)return _0x55c694['id'];}}));}}return Promise[_0x2fd3d5('0x53')](_0x52709f)[_0x2fd3d5('0x38')](function(_0x3e4cf8){const _0x311407=_0x2fd3d5;return _0x239ec9=_(_0x239ec9)[_0x311407('0x88')](_0x3e4cf8)['compact']()[_0x311407('0x76')](),db[_0x311407('0x4e')][_0x311407('0x93')]({'where':{'id':_0x19f3e3[_0x311407('0x7a')]['id']}})[_0x311407('0x38')](function(_0x319af0){const _0x53f29a=_0x311407;return db[_0x53f29a('0x54')][_0x53f29a('0x7f')](function(_0x24528c){const _0x5d66b8=_0x53f29a;return _0x319af0['removeTeams'](_0x19f3e3[_0x5d66b8('0xa')][_0x5d66b8('0x11')],{'transaction':_0x24528c})[_0x5d66b8('0x38')](function(){const _0x24eb1a=_0x5d66b8;if(!_[_0x24eb1a('0x72')](_0x239ec9))return _0x319af0[_0x24eb1a('0x16')](_0x239ec9,{'transaction':_0x24528c})[_0x24eb1a('0x38')](function(){const _0x147870=_0x24eb1a;return db[_0x147870('0x43')][_0x147870('0x3c')]({'where':{'VoiceQueueId':_0x19f3e3[_0x147870('0x7a')]['id'],'UserId':_0x239ec9},'transaction':_0x24528c});});})[_0x5d66b8('0x38')](function(){const _0x340486=_0x5d66b8;_0x239ec9[_0x340486('0x8d')](function(_0x20685a){const _0x5728f0=_0x340486;socket[_0x5728f0('0x41')](_0x5728f0('0x29'),{'UserId':_0x20685a,'VoiceQueueId':_0x319af0['id']});});});});});});})['then'](respondWithStatusCode(_0x257dae,null))[_0x4a72f3('0x40')](handleError(_0x257dae,null));},exports['addAgents']=function(_0x53c599,_0x478f32){const _0x44d5ec=_0x39c1f6;let _0x3a6818,_0x58b52c;return db['VoiceQueue'][_0x44d5ec('0x93')]({'where':{'id':_0x53c599[_0x44d5ec('0x7a')]['id']}})['then'](function(_0x3880ef){const _0xfe3e91=_0x44d5ec;if(_0x3880ef)return _0x58b52c=_0x3880ef,_0x3880ef['addAgents'](_0x53c599[_0xfe3e91('0x3f')][_0xfe3e91('0x11')],{'through':_[_0xfe3e91('0x57')](_0x53c599[_0xfe3e91('0x3f')],['ids','id'])})[_0xfe3e91('0x38')](function(_0x281178){const _0x191b2e=_0xfe3e91;for(let _0xb25c19=0x0;_0xb25c19<_0x53c599[_0x191b2e('0x3f')][_0x191b2e('0x11')][_0x191b2e('0x61')];_0xb25c19+=0x1){socket['emit']('userVoiceQueue:save',{'UserId':_0x53c599[_0x191b2e('0x3f')][_0x191b2e('0x11')][_0xb25c19],'VoiceQueueId':_0x53c599[_0x191b2e('0x7a')]['id']});}return _0x281178;});})[_0x44d5ec('0x38')](function(_0x5dcc7b){const _0x434012=_0x44d5ec;_0x3a6818=_0x5dcc7b||[];if(_0x58b52c)return db[_0x434012('0x68')][_0x434012('0x69')]({'where':{'id':_0x53c599['body'][_0x434012('0x11')]},'attributes':['id','name',_0x434012('0x70'),'voicePause',_0x434012('0x81')],'raw':!![]});})[_0x44d5ec('0x38')](function(_0x2cbe25){const _0x1918b7=_0x44d5ec;if(!_['isEmpty'](_0x2cbe25)){const _0x286a6a=[];for(let _0x5ee455=0x0;_0x5ee455<_0x2cbe25[_0x1918b7('0x61')];_0x5ee455++){_0x2cbe25[_0x5ee455][_0x1918b7('0x70')]&&_0x286a6a[_0x1918b7('0x8a')](db[_0x1918b7('0x43')][_0x1918b7('0x83')]({'membername':_0x2cbe25[_0x5ee455][_0x1918b7('0x50')],'UserId':_0x2cbe25[_0x5ee455]['id'],'queue_name':_0x58b52c[_0x1918b7('0x50')],'VoiceQueueId':_0x58b52c['id'],'interface':_['isNil'](_0x2cbe25[_0x5ee455][_0x1918b7('0x81')])?util[_0x1918b7('0x84')](_0x1918b7('0x45'),_0x2cbe25[_0x5ee455][_0x1918b7('0x50')]):_0x2cbe25[_0x5ee455]['interface'],'paused':_0x2cbe25[_0x5ee455][_0x1918b7('0x6')]||![],'penalty':_0x53c599[_0x1918b7('0x3f')][_0x1918b7('0x94')]||0x0}));}return Promise[_0x1918b7('0x53')](_0x286a6a);}})['then'](function(){return _0x3a6818;})[_0x44d5ec('0x38')](respondWithResult(_0x478f32,null))[_0x44d5ec('0x40')](handleError(_0x478f32,null));},exports[_0x39c1f6('0x16')]=function(_0x104164,_0x27b5f0){const _0x465d4d=_0x39c1f6;return db[_0x465d4d('0x4e')][_0x465d4d('0x93')]({'where':{'id':_0x104164[_0x465d4d('0x7a')]['id']}})['then'](handleEntityNotFound(_0x27b5f0,null))['then'](function(_0x52a09f){const _0x892137=_0x465d4d;if(_0x52a09f)return _0x52a09f[_0x892137('0x16')](_0x104164[_0x892137('0xa')][_0x892137('0x11')])[_0x892137('0x38')](function(){const _0xbb2dcb=_0x892137;if(_[_0xbb2dcb('0x79')](_0x104164['query'][_0xbb2dcb('0x11')]))for(let _0x5b32ad=0x0;_0x5b32ad<_0x104164[_0xbb2dcb('0xa')][_0xbb2dcb('0x11')][_0xbb2dcb('0x61')];_0x5b32ad+=0x1){socket[_0xbb2dcb('0x41')](_0xbb2dcb('0x29'),{'UserId':Number(_0x104164['query'][_0xbb2dcb('0x11')][_0x5b32ad]),'VoiceQueueId':Number(_0x104164[_0xbb2dcb('0x7a')]['id'])});}else socket['emit'](_0xbb2dcb('0x29'),{'UserId':Number(_0x104164[_0xbb2dcb('0xa')][_0xbb2dcb('0x11')]),'VoiceQueueId':Number(_0x104164[_0xbb2dcb('0x7a')]['id'])});});})[_0x465d4d('0x38')](function(_0x36548b){const _0x1fb71a=_0x465d4d;return db[_0x1fb71a('0x43')]['destroy']({'where':{'VoiceQueueId':_0x104164[_0x1fb71a('0x7a')]['id'],'UserId':_0x104164[_0x1fb71a('0xa')][_0x1fb71a('0x11')]}})[_0x1fb71a('0x38')](function(){return _0x36548b;});})[_0x465d4d('0x38')](respondWithStatusCode(_0x27b5f0,null))[_0x465d4d('0x40')](handleError(_0x27b5f0,null));},exports['getAgents']=function(_0x449dfa,_0x47cd14){const _0x219f12=_0x39c1f6;let _0x7d163d={};const _0x5ca44d={};let _0x4a769d,_0x36fc7b;return db[_0x219f12('0x4e')]['findOne']({'where':{'id':_0x449dfa[_0x219f12('0x7a')]['id']}})[_0x219f12('0x38')](handleEntityNotFound(_0x47cd14,null))[_0x219f12('0x38')](function(_0x1d8039){const _0x88adf5=_0x219f12;if(_0x1d8039)return _0x4a769d=_0x1d8039,_0x5ca44d[_0x88adf5('0x5f')]=_[_0x88adf5('0x63')](db[_0x88adf5('0x68')]['rawAttributes']),_0x5ca44d[_0x88adf5('0xa')]=_[_0x88adf5('0x63')](_0x449dfa[_0x88adf5('0xa')]),_0x5ca44d[_0x88adf5('0x10')]=_[_0x88adf5('0x62')](_0x5ca44d[_0x88adf5('0x5f')],_0x5ca44d['query']),_0x7d163d[_0x88adf5('0x97')]=_[_0x88adf5('0x62')](_0x5ca44d[_0x88adf5('0x5f')],qs[_0x88adf5('0x74')](_0x449dfa['query'][_0x88adf5('0x74')])),_0x7d163d[_0x88adf5('0x97')]=_0x7d163d['attributes'][_0x88adf5('0x61')]?_0x7d163d[_0x88adf5('0x97')]:_0x5ca44d[_0x88adf5('0x5f')],_0x7d163d[_0x88adf5('0x1b')]=qs[_0x88adf5('0x92')](_0x449dfa[_0x88adf5('0xa')]['sort']),_0x7d163d[_0x88adf5('0x14')]=qs[_0x88adf5('0x10')](_[_0x88adf5('0x85')](_0x449dfa[_0x88adf5('0xa')],_0x5ca44d[_0x88adf5('0x10')])),_0x449dfa['query'][_0x88adf5('0x86')]&&(_0x7d163d[_0x88adf5('0x14')]=_[_0x88adf5('0x7b')](_0x7d163d[_0x88adf5('0x14')],{[Op['or']]:_[_0x88adf5('0x6a')](_0x7d163d['attributes'],function(_0x3ba129){const _0x189726=_0x88adf5,_0x3e6bfd={};return _0x3e6bfd[_0x3ba129]={[Op[_0x189726('0x0')]]:'%'+_0x449dfa[_0x189726('0xa')][_0x189726('0x86')]+'%'},_0x3e6bfd;})})),_0x7d163d=_[_0x88adf5('0x7b')]({},_0x7d163d,_0x449dfa['options']),_0x4a769d['getAgents'](_0x7d163d);})[_0x219f12('0x38')](function(_0x4b1460){const _0x3538ec=_0x219f12;if(_0x4b1460)return _0x36fc7b=_0x4b1460['length'],typeof _0x449dfa[_0x3538ec('0xa')][_0x3538ec('0x35')]===_0x3538ec('0x6f')&&(_0x7d163d['limit']=qs['limit'](_0x449dfa[_0x3538ec('0xa')][_0x3538ec('0x26')]),_0x7d163d[_0x3538ec('0x5e')]=qs['offset'](_0x449dfa[_0x3538ec('0xa')][_0x3538ec('0x5e')])),_0x4a769d[_0x3538ec('0x1d')](_0x7d163d);})[_0x219f12('0x38')](function(_0x3710c6){if(_0x3710c6)return _0x3710c6?{'count':_0x36fc7b,'rows':_0x3710c6}:null;})[_0x219f12('0x38')](respondWithResult(_0x47cd14,null))[_0x219f12('0x40')](handleError(_0x47cd14,null));},exports[_0x39c1f6('0x23')]=function(_0x10dc4d,_0x167d4f){const _0xfcc11f=_0x39c1f6;let _0x2dbcbf={};const _0x400f83={};let _0x5e5885,_0x32eb44;return db[_0xfcc11f('0x4e')][_0xfcc11f('0x93')]({'where':{'id':_0x10dc4d[_0xfcc11f('0x7a')]['id']}})[_0xfcc11f('0x38')](handleEntityNotFound(_0x167d4f,null))[_0xfcc11f('0x38')](function(_0x2179db){const _0x1ee21=_0xfcc11f;if(_0x2179db)return _0x5e5885=_0x2179db,_0x400f83['model']=_[_0x1ee21('0x63')](db[_0x1ee21('0x43')][_0x1ee21('0x46')]),_0x400f83[_0x1ee21('0xa')]=_[_0x1ee21('0x63')](_0x10dc4d[_0x1ee21('0xa')]),_0x400f83[_0x1ee21('0x10')]=_[_0x1ee21('0x62')](_0x400f83[_0x1ee21('0x5f')],_0x400f83[_0x1ee21('0xa')]),_0x2dbcbf[_0x1ee21('0x97')]=_[_0x1ee21('0x62')](_0x400f83[_0x1ee21('0x5f')],qs[_0x1ee21('0x74')](_0x10dc4d['query'][_0x1ee21('0x74')])),_0x2dbcbf[_0x1ee21('0x97')]=_0x2dbcbf[_0x1ee21('0x97')][_0x1ee21('0x61')]?_0x2dbcbf['attributes']:_0x400f83[_0x1ee21('0x5f')],_0x2dbcbf[_0x1ee21('0x1b')]=qs[_0x1ee21('0x92')](_0x10dc4d[_0x1ee21('0xa')][_0x1ee21('0x92')]),_0x2dbcbf['where']=qs[_0x1ee21('0x10')](_[_0x1ee21('0x85')](_0x10dc4d[_0x1ee21('0xa')],_0x400f83['filters'])),_0x10dc4d[_0x1ee21('0xa')]['filter']&&(_0x2dbcbf[_0x1ee21('0x14')]=_[_0x1ee21('0x7b')](_0x2dbcbf[_0x1ee21('0x14')],{[Op['or']]:_[_0x1ee21('0x6a')](_0x2dbcbf[_0x1ee21('0x97')],function(_0x491718){const _0xf3f745=_0x1ee21,_0x1053a5={};return _0x1053a5[_0x491718]={[Op[_0xf3f745('0x0')]]:'%'+_0x10dc4d['query'][_0xf3f745('0x86')]+'%'},_0x1053a5;})})),_0x2dbcbf=_[_0x1ee21('0x7b')]({},_0x2dbcbf,_0x10dc4d[_0x1ee21('0x36')]),_0x5e5885[_0x1ee21('0x23')](_0x2dbcbf);})[_0xfcc11f('0x38')](function(_0x10026e){const _0x5ee329=_0xfcc11f;if(_0x10026e)return _0x32eb44=_0x10026e[_0x5ee329('0x61')],typeof _0x10dc4d[_0x5ee329('0xa')][_0x5ee329('0x35')]===_0x5ee329('0x6f')&&(_0x2dbcbf[_0x5ee329('0x26')]=qs[_0x5ee329('0x26')](_0x10dc4d[_0x5ee329('0xa')][_0x5ee329('0x26')]),_0x2dbcbf[_0x5ee329('0x5e')]=qs[_0x5ee329('0x5e')](_0x10dc4d[_0x5ee329('0xa')][_0x5ee329('0x5e')])),_0x5e5885[_0x5ee329('0x23')](_0x2dbcbf);})[_0xfcc11f('0x38')](function(_0x1a2308){return _0x1a2308?{'count':_0x32eb44,'rows':_0x1a2308}:null;})[_0xfcc11f('0x38')](respondWithResult(_0x167d4f,null))[_0xfcc11f('0x40')](handleError(_0x167d4f,null));},exports[_0x39c1f6('0x9a')]=function(_0x190dc7,_0x19d588){const _0x1b24ff=_0x39c1f6;let _0x51e849={};const _0x2d64ee={};let _0x1ebbb6,_0x2a8d8a;return db['VoiceQueue'][_0x1b24ff('0x93')]({'where':{'id':_0x190dc7[_0x1b24ff('0x7a')]['id']}})[_0x1b24ff('0x38')](handleEntityNotFound(_0x19d588,null))['then'](function(_0x349d4c){const _0x386f1c=_0x1b24ff;if(_0x349d4c)return _0x1ebbb6=_0x349d4c,_0x2d64ee['model']=_[_0x386f1c('0x63')](db[_0x386f1c('0x5d')][_0x386f1c('0x46')]),_0x2d64ee['query']=_[_0x386f1c('0x63')](_0x190dc7['query']),_0x2d64ee[_0x386f1c('0x10')]=_[_0x386f1c('0x62')](_0x2d64ee[_0x386f1c('0x5f')],_0x2d64ee[_0x386f1c('0xa')]),_0x51e849[_0x386f1c('0x97')]=_[_0x386f1c('0x62')](_0x2d64ee[_0x386f1c('0x5f')],qs['fields'](_0x190dc7[_0x386f1c('0xa')][_0x386f1c('0x74')])),_0x51e849['attributes']=_0x51e849[_0x386f1c('0x97')][_0x386f1c('0x61')]?_0x51e849[_0x386f1c('0x97')]:_0x2d64ee[_0x386f1c('0x5f')],_0x51e849['order']=qs[_0x386f1c('0x92')](_0x190dc7[_0x386f1c('0xa')][_0x386f1c('0x92')]),_0x51e849[_0x386f1c('0x14')]=qs[_0x386f1c('0x10')](_[_0x386f1c('0x85')](_0x190dc7[_0x386f1c('0xa')],_0x2d64ee[_0x386f1c('0x10')])),_0x190dc7['query'][_0x386f1c('0x86')]&&(_0x51e849[_0x386f1c('0x14')]=_[_0x386f1c('0x7b')](_0x51e849[_0x386f1c('0x14')],{[Op['or']]:_[_0x386f1c('0x6a')](_0x51e849[_0x386f1c('0x97')],function(_0x555f9d){const _0x2ea064=_0x386f1c,_0x5302dc={};return _0x5302dc[_0x555f9d]={[Op['like']]:'%'+_0x190dc7[_0x2ea064('0xa')][_0x2ea064('0x86')]+'%'},_0x5302dc;})})),_0x51e849=_[_0x386f1c('0x7b')]({},_0x51e849,_0x190dc7['options']),_0x1ebbb6[_0x386f1c('0x9a')](_0x51e849);})[_0x1b24ff('0x38')](function(_0x2a8b15){const _0x24441c=_0x1b24ff;if(_0x2a8b15)return _0x2a8d8a=_0x2a8b15[_0x24441c('0x61')],typeof _0x190dc7[_0x24441c('0xa')][_0x24441c('0x35')]===_0x24441c('0x6f')&&(_0x51e849[_0x24441c('0x26')]=qs[_0x24441c('0x26')](_0x190dc7[_0x24441c('0xa')][_0x24441c('0x26')]),_0x51e849[_0x24441c('0x5e')]=qs[_0x24441c('0x5e')](_0x190dc7[_0x24441c('0xa')][_0x24441c('0x5e')])),_0x1ebbb6[_0x24441c('0x9a')](_0x51e849);})['then'](function(_0x52346b){if(_0x52346b)return _0x52346b?{'count':_0x2a8d8a,'rows':_0x52346b}:null;})[_0x1b24ff('0x38')](respondWithResult(_0x19d588,null))[_0x1b24ff('0x40')](handleError(_0x19d588,null));},exports[_0x39c1f6('0x82')]=function(_0x471bf3,_0x1e4c1c){const _0x49e1b8=_0x39c1f6;let _0x1b7014,_0x10d565;return db[_0x49e1b8('0x4e')][_0x49e1b8('0x93')]({'where':{'id':_0x471bf3[_0x49e1b8('0x7a')]['id']}})[_0x49e1b8('0x38')](handleEntityNotFound(_0x1e4c1c,null))[_0x49e1b8('0x38')](function(_0x4aa3ea){const _0x228787=_0x49e1b8;if(_0x4aa3ea)return _0x10d565=_0x4aa3ea,_0x4aa3ea['addLists'](_0x471bf3[_0x228787('0x3f')][_0x228787('0x11')],{'through':_[_0x228787('0x57')](_0x471bf3[_0x228787('0x3f')],[_0x228787('0x11'),'id'])});return null;})[_0x49e1b8('0x38')](function(_0x3a09f5){const _0x2db3df=_0x49e1b8;let _0xc1b9e5;_0x1b7014=_0x3a09f5||[];const _0x36b5e1=[];if(_0x3a09f5){for(let _0x5b9161=0x0;_0x5b9161<_0x3a09f5[_0x2db3df('0x61')];_0x5b9161+=0x1){const _0x5ac731=_0x3a09f5[_0x5b9161][_0x2db3df('0x52')]({'plain':!![]});_0x10d565[_0x2db3df('0x3d')]=_0x471bf3['body'][_0x2db3df('0x3d')]?_0x471bf3[_0x2db3df('0x3f')][_0x2db3df('0x3d')]:_0x10d565[_0x2db3df('0x3d')];switch(_0x10d565['dialCheckDuplicateType']){case'always':_0xc1b9e5=squel['insert']()[_0x2db3df('0x75')](_0x2db3df('0x12'))[_0x2db3df('0x1f')]([_0x2db3df('0x2c'),_0x2db3df('0x90'),_0x2db3df('0x9b'),'ListId','VoiceQueueId',_0x2db3df('0x99'),_0x2db3df('0x5c')],squel[_0x2db3df('0x64')]()[_0x2db3df('0x8')](_0x2db3df('0x2c'),_0x2db3df('0x2c'))[_0x2db3df('0x8')](_0x2db3df('0x6b'),_0x2db3df('0x90'))[_0x2db3df('0x8')]('id',_0x2db3df('0x9b'))[_0x2db3df('0x8')](_0x5ac731[_0x2db3df('0x91')][_0x2db3df('0x2e')](),_0x2db3df('0x1a'))[_0x2db3df('0x8')](_0x471bf3[_0x2db3df('0x7a')]['id'][_0x2db3df('0x2e')](),_0x2db3df('0x1'))['field'](_0x2db3df('0x6b'),_0x2db3df('0x99'))[_0x2db3df('0x8')]('NOW()',_0x2db3df('0x5c'))['from'](_0x2db3df('0x67'))[_0x2db3df('0x14')](_0x2db3df('0x4'))[_0x2db3df('0x14')]('ListId\x20=\x20?',_0x5ac731[_0x2db3df('0x91')][_0x2db3df('0x2e')]())[_0x2db3df('0x14')](_0x2db3df('0x25'))[_0x2db3df('0x14')](_0x2db3df('0x17'),squel[_0x2db3df('0x64')]()['field']('COALESCE(calleridnum,\x27\x27)')[_0x2db3df('0x5b')](_0x2db3df('0x7e'))[_0x2db3df('0x14')](_0x2db3df('0x3e'),_0x471bf3[_0x2db3df('0x7a')]['id'][_0x2db3df('0x2e')]()))[_0x2db3df('0x14')]('phone\x20NOT\x20IN\x20(?)',squel['select']()['field'](_0x2db3df('0x2d'))['from']('cm_hopper')['where'](_0x2db3df('0x3e'),_0x471bf3[_0x2db3df('0x7a')]['id'][_0x2db3df('0x2e')]())))[_0x2db3df('0x2e')]();break;case _0x2db3df('0x18'):_0xc1b9e5=squel['insert']()[_0x2db3df('0x75')](_0x2db3df('0x12'))['fromQuery']([_0x2db3df('0x2c'),'scheduledAt',_0x2db3df('0x9b'),_0x2db3df('0x1a'),_0x2db3df('0x1'),_0x2db3df('0x99'),'updatedAt'],squel[_0x2db3df('0x64')]()[_0x2db3df('0x8')]('phone',_0x2db3df('0x2c'))['field'](_0x2db3df('0x6b'),_0x2db3df('0x90'))[_0x2db3df('0x8')]('id',_0x2db3df('0x9b'))[_0x2db3df('0x8')](_0x5ac731[_0x2db3df('0x91')][_0x2db3df('0x2e')](),'ListId')[_0x2db3df('0x8')](_0x471bf3[_0x2db3df('0x7a')]['id'][_0x2db3df('0x2e')](),_0x2db3df('0x1'))[_0x2db3df('0x8')]('NOW()',_0x2db3df('0x99'))[_0x2db3df('0x8')]('NOW()',_0x2db3df('0x5c'))[_0x2db3df('0x5b')]('cm_contacts')['where'](_0x2db3df('0x4'))[_0x2db3df('0x14')](_0x2db3df('0x51'),_0x5ac731[_0x2db3df('0x91')][_0x2db3df('0x2e')]())[_0x2db3df('0x14')](_0x2db3df('0x25'))['where']('phone\x20NOT\x20IN\x20(?)',squel['select']()[_0x2db3df('0x8')]('COALESCE(phone,\x27\x27)')[_0x2db3df('0x5b')](_0x2db3df('0x12'))[_0x2db3df('0x14')]('VoiceQueueId\x20=\x20?',_0x471bf3['params']['id'][_0x2db3df('0x2e')]())))[_0x2db3df('0x2e')]();break;default:_0xc1b9e5=squel['insert']()[_0x2db3df('0x75')](_0x2db3df('0x12'))[_0x2db3df('0x1f')]([_0x2db3df('0x2c'),_0x2db3df('0x90'),_0x2db3df('0x9b'),_0x2db3df('0x1a'),'VoiceQueueId',_0x2db3df('0x99'),'updatedAt'],squel[_0x2db3df('0x64')]()[_0x2db3df('0x8')](_0x2db3df('0x2c'),_0x2db3df('0x2c'))[_0x2db3df('0x8')](_0x2db3df('0x6b'),_0x2db3df('0x90'))[_0x2db3df('0x8')]('id','ContactId')[_0x2db3df('0x8')](_0x5ac731[_0x2db3df('0x91')][_0x2db3df('0x2e')](),_0x2db3df('0x1a'))['field'](_0x471bf3[_0x2db3df('0x7a')]['id'][_0x2db3df('0x2e')](),_0x2db3df('0x1'))[_0x2db3df('0x8')]('NOW()',_0x2db3df('0x99'))[_0x2db3df('0x8')](_0x2db3df('0x6b'),_0x2db3df('0x5c'))[_0x2db3df('0x5b')](_0x2db3df('0x67'))[_0x2db3df('0x14')](_0x2db3df('0x4'))[_0x2db3df('0x14')](_0x2db3df('0x51'),_0x5ac731[_0x2db3df('0x91')][_0x2db3df('0x2e')]())[_0x2db3df('0x14')]('phone\x20IS\x20NOT\x20NULL'))[_0x2db3df('0x2e')]();}_0x36b5e1[_0x2db3df('0x8a')](db['sequelize'][_0x2db3df('0xa')](_0xc1b9e5));}return Promise[_0x2db3df('0x53')](_0x36b5e1);}})[_0x49e1b8('0x38')](function(){return _0x1b7014;})[_0x49e1b8('0x38')](respondWithResult(_0x1e4c1c,null))['catch'](handleError(_0x1e4c1c,null));},exports[_0x39c1f6('0xc')]=function(_0x5160f5,_0x27681f){const _0x3f49b9=_0x39c1f6;return db[_0x3f49b9('0x4e')][_0x3f49b9('0x93')]({'where':{'id':_0x5160f5[_0x3f49b9('0x7a')]['id']}})[_0x3f49b9('0x38')](handleEntityNotFound(_0x27681f,null))[_0x3f49b9('0x38')](function(_0x1e1aa4){const _0x16a348=_0x3f49b9;if(_0x1e1aa4)return _0x1e1aa4['removeLists'](_0x5160f5[_0x16a348('0xa')][_0x16a348('0x11')]);})[_0x3f49b9('0x38')](function(_0x249e8d){const _0x3d752f=_0x3f49b9;if(_0x249e8d)return db[_0x3d752f('0x47')][_0x3d752f('0x3c')]({'where':{'ListId':_0x5160f5[_0x3d752f('0xa')][_0x3d752f('0x11')],'VoiceQueueId':_0x5160f5[_0x3d752f('0x7a')]['id']}})['then'](function(){return _0x249e8d;});})[_0x3f49b9('0x38')](respondWithStatusCode(_0x27681f,null))[_0x3f49b9('0x40')](handleError(_0x27681f,null));},exports['getBlackLists']=function(_0x2af13c,_0x20c62b){const _0x30ff8f=_0x39c1f6;let _0x5c1cba={};const _0x14a5e1={};let _0x5ba0d8,_0x4776ca;return db[_0x30ff8f('0x4e')][_0x30ff8f('0x93')]({'where':{'id':_0x2af13c[_0x30ff8f('0x7a')]['id']}})['then'](handleEntityNotFound(_0x20c62b,null))[_0x30ff8f('0x38')](function(_0x2d6619){const _0x1a00ee=_0x30ff8f;if(_0x2d6619)return _0x5ba0d8=_0x2d6619,_0x14a5e1['model']=_[_0x1a00ee('0x63')](db[_0x1a00ee('0x5d')][_0x1a00ee('0x46')]),_0x14a5e1[_0x1a00ee('0xa')]=_[_0x1a00ee('0x63')](_0x2af13c[_0x1a00ee('0xa')]),_0x14a5e1['filters']=_[_0x1a00ee('0x62')](_0x14a5e1[_0x1a00ee('0x5f')],_0x14a5e1['query']),_0x5c1cba[_0x1a00ee('0x97')]=_[_0x1a00ee('0x62')](_0x14a5e1['model'],qs[_0x1a00ee('0x74')](_0x2af13c[_0x1a00ee('0xa')][_0x1a00ee('0x74')])),_0x5c1cba[_0x1a00ee('0x97')]=_0x5c1cba['attributes'][_0x1a00ee('0x61')]?_0x5c1cba[_0x1a00ee('0x97')]:_0x14a5e1[_0x1a00ee('0x5f')],_0x5c1cba['order']=qs['sort'](_0x2af13c[_0x1a00ee('0xa')][_0x1a00ee('0x92')]),_0x5c1cba[_0x1a00ee('0x14')]=qs[_0x1a00ee('0x10')](_[_0x1a00ee('0x85')](_0x2af13c['query'],_0x14a5e1['filters'])),_0x2af13c[_0x1a00ee('0xa')][_0x1a00ee('0x86')]&&(_0x5c1cba[_0x1a00ee('0x14')]=_[_0x1a00ee('0x7b')](_0x5c1cba['where'],{[Op['or']]:_[_0x1a00ee('0x6a')](_0x5c1cba['attributes'],function(_0x3407b1){const _0x1f389e=_0x1a00ee,_0x4a71e0={};return _0x4a71e0[_0x3407b1]={[Op['like']]:'%'+_0x2af13c['query'][_0x1f389e('0x86')]+'%'},_0x4a71e0;})})),_0x5c1cba=_['merge']({},_0x5c1cba,_0x2af13c[_0x1a00ee('0x36')]),_0x5ba0d8['getBlackLists'](_0x5c1cba);})['then'](function(_0x8dc20d){const _0x213242=_0x30ff8f;if(_0x8dc20d)return _0x4776ca=_0x8dc20d['length'],typeof _0x2af13c['query'][_0x213242('0x35')]===_0x213242('0x6f')&&(_0x5c1cba[_0x213242('0x26')]=qs['limit'](_0x2af13c[_0x213242('0xa')][_0x213242('0x26')]),_0x5c1cba['offset']=qs[_0x213242('0x5e')](_0x2af13c[_0x213242('0xa')][_0x213242('0x5e')])),_0x5ba0d8[_0x213242('0x4b')](_0x5c1cba);})['then'](function(_0x5c8c23){if(_0x5c8c23)return _0x5c8c23?{'count':_0x4776ca,'rows':_0x5c8c23}:null;})[_0x30ff8f('0x38')](respondWithResult(_0x20c62b,null))[_0x30ff8f('0x40')](handleError(_0x20c62b,null));},exports[_0x39c1f6('0x3b')]=function(_0x3c3f38,_0x5a8711){const _0x1d162b=_0x39c1f6;let _0x4bea02;return db[_0x1d162b('0x4e')]['findOne']({'where':{'id':_0x3c3f38[_0x1d162b('0x7a')]['id']}})[_0x1d162b('0x38')](handleEntityNotFound(_0x5a8711,null))['then'](function(_0x4e9ed7){const _0x22dc5a=_0x1d162b;if(_0x4e9ed7)return _0x4e9ed7[_0x22dc5a('0x3b')](_0x3c3f38[_0x22dc5a('0x3f')]['ids'],{'through':_[_0x22dc5a('0x57')](_0x3c3f38[_0x22dc5a('0x3f')],[_0x22dc5a('0x11'),'id'])});return null;})['then'](function(_0x104ad8){const _0x52e512=_0x1d162b;let _0x4e5b0f;_0x4bea02=_0x104ad8||[];const _0x4ba7d4=[];if(_0x104ad8){for(let _0x1cb8dc=0x0;_0x1cb8dc<_0x104ad8[_0x52e512('0x61')];_0x1cb8dc+=0x1){const _0x2a03be=_0x104ad8[_0x1cb8dc][_0x52e512('0x52')]({'plain':!![]});_0x4e5b0f=squel[_0x52e512('0x19')]()[_0x52e512('0x75')](_0x52e512('0x56'))['fromQuery']([_0x52e512('0x2c'),_0x52e512('0x9b'),_0x52e512('0x1a'),'VoiceQueueId',_0x52e512('0x99'),_0x52e512('0x5c')],squel[_0x52e512('0x64')]()['field'](_0x52e512('0x2c'),'phone')['field']('id',_0x52e512('0x9b'))[_0x52e512('0x8')](_0x2a03be[_0x52e512('0x91')][_0x52e512('0x2e')](),_0x52e512('0x1a'))[_0x52e512('0x8')](_0x3c3f38[_0x52e512('0x7a')]['id'][_0x52e512('0x2e')](),_0x52e512('0x1'))[_0x52e512('0x8')](_0x52e512('0x6b'),_0x52e512('0x99'))[_0x52e512('0x8')]('NOW()',_0x52e512('0x5c'))[_0x52e512('0x5b')](_0x52e512('0x67'))[_0x52e512('0x14')]('deletedAt\x20IS\x20NULL')['where'](_0x52e512('0x51'),_0x2a03be[_0x52e512('0x91')][_0x52e512('0x2e')]())['where'](_0x52e512('0x25')))[_0x52e512('0x2e')](),_0x4ba7d4['push'](db[_0x52e512('0x54')][_0x52e512('0xa')](_0x4e5b0f));}return Promise[_0x52e512('0x53')](_0x4ba7d4);}})['then'](function(){return _0x4bea02;})['then'](respondWithResult(_0x5a8711,null))[_0x1d162b('0x40')](handleError(_0x5a8711,null));},exports[_0x39c1f6('0x48')]=function(_0x33c3fe,_0x225d57){const _0x24585f=_0x39c1f6;return db['VoiceQueue'][_0x24585f('0x93')]({'where':{'id':_0x33c3fe[_0x24585f('0x7a')]['id']}})['then'](handleEntityNotFound(_0x225d57,null))['then'](function(_0x48d2f8){const _0x3665af=_0x24585f;if(_0x48d2f8)return _0x48d2f8['removeBlackLists'](_0x33c3fe[_0x3665af('0xa')]['ids']);})[_0x24585f('0x38')](function(_0x2c52db){const _0x327018=_0x24585f;if(_0x2c52db)return db['CmHopperBlack'][_0x327018('0x3c')]({'where':{'ListId':_0x33c3fe['query'][_0x327018('0x11')],'VoiceQueueId':_0x33c3fe[_0x327018('0x7a')]['id']}})['then'](function(){return _0x2c52db;});})['then'](respondWithStatusCode(_0x225d57,null))[_0x24585f('0x40')](handleError(_0x225d57,null));}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.events.js b/server/api/voiceQueue/voiceQueue.events.js index 7aae720..cced27c 100644 --- a/server/api/voiceQueue/voiceQueue.events.js +++ b/server/api/voiceQueue/voiceQueue.events.js @@ -1 +1 @@ -const a754_0x2117=['../../mysqldb','exports','events','remove','update','emit','setMaxListeners'];(function(_0x476240,_0x2117a7){const _0x5e4acc=function(_0xedfbb){while(--_0xedfbb){_0x476240['push'](_0x476240['shift']());}};_0x5e4acc(++_0x2117a7);}(a754_0x2117,0x9a));const a754_0x5e4a=function(_0x476240,_0x2117a7){_0x476240=_0x476240-0x0;let _0x5e4acc=a754_0x2117[_0x476240];return _0x5e4acc;};const _0x231400=a754_0x5e4a;'use strict';const EventEmitter=require(_0x231400('0x2')),VoiceQueue=require(_0x231400('0x0'))['db']['VoiceQueue'],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x231400('0x6')](0x0);const events={'afterCreate':'save','afterUpdate':_0x231400('0x4'),'afterDestroy':_0x231400('0x3')};function emitEvent(_0xedfbb){return function(_0xd5d7a7){const _0x45567f=a754_0x5e4a;VoiceQueueEvents[_0x45567f('0x5')](_0xedfbb+':'+_0xd5d7a7['id'],_0xd5d7a7),VoiceQueueEvents[_0x45567f('0x5')](_0xedfbb,_0xd5d7a7);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceQueue['addHook'](e,emitEvent(event));}}module[_0x231400('0x1')]=VoiceQueueEvents; \ No newline at end of file +const a754_0x2381=['exports','undefined','setMaxListeners','update','VoiceQueue','remove','emit','save','events'];(function(_0x196d8f,_0x2381dd){const _0xe14ef7=function(_0xf29ed7){while(--_0xf29ed7){_0x196d8f['push'](_0x196d8f['shift']());}};_0xe14ef7(++_0x2381dd);}(a754_0x2381,0xed));const a754_0xe14e=function(_0x196d8f,_0x2381dd){_0x196d8f=_0x196d8f-0x0;let _0xe14ef7=a754_0x2381[_0x196d8f];return _0xe14ef7;};const _0x23814e=a754_0xe14e;'use strict';const EventEmitter=require(_0x23814e('0x5')),VoiceQueue=require('../../mysqldb')['db'][_0x23814e('0x1')],VoiceQueueEvents=new EventEmitter();VoiceQueueEvents[_0x23814e('0x8')](0x0);const events={'afterCreate':_0x23814e('0x4'),'afterUpdate':_0x23814e('0x0'),'afterDestroy':_0x23814e('0x2')};function emitEvent(_0xf29ed7){return function(_0x4400d5){const _0x289042=a754_0xe14e;VoiceQueueEvents[_0x289042('0x3')](_0xf29ed7+':'+_0x4400d5['id'],_0x4400d5),VoiceQueueEvents[_0x289042('0x3')](_0xf29ed7,_0x4400d5);};}for(const e in events){if(typeof events[e]!==_0x23814e('0x7')){const event=events[e];VoiceQueue['addHook'](e,emitEvent(event));}}module[_0x23814e('0x6')]=VoiceQueueEvents; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.model.js b/server/api/voiceQueue/voiceQueue.model.js index 7c13098..3cb677c 100644 --- a/server/api/voiceQueue/voiceQueue.model.js +++ b/server/api/voiceQueue/voiceQueue.model.js @@ -1 +1 @@ -const a755_0x5eca=['define','exports','voice_queues','VoiceQueue','./voiceQueue.attributes'];(function(_0x1fd9c6,_0x5eca34){const _0x5227f3=function(_0x39bd74){while(--_0x39bd74){_0x1fd9c6['push'](_0x1fd9c6['shift']());}};_0x5227f3(++_0x5eca34);}(a755_0x5eca,0x80));const a755_0x5227=function(_0x1fd9c6,_0x5eca34){_0x1fd9c6=_0x1fd9c6-0x0;let _0x5227f3=a755_0x5eca[_0x1fd9c6];return _0x5227f3;};const _0x182f7e=a755_0x5227;'use strict';const attributes=require(_0x182f7e('0x1'));module[_0x182f7e('0x3')]=function(_0x39bd74){const _0x727187=_0x182f7e,_0x1c2fd4=_0x39bd74[_0x727187('0x2')](_0x727187('0x0'),attributes,{'tableName':_0x727187('0x4'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x1c2fd4;}; \ No newline at end of file +const a755_0x3664=['VoiceQueue','exports','voice_queues'];(function(_0x49c048,_0x3664d3){const _0x293c85=function(_0x544c97){while(--_0x544c97){_0x49c048['push'](_0x49c048['shift']());}};_0x293c85(++_0x3664d3);}(a755_0x3664,0x17a));const a755_0x293c=function(_0x49c048,_0x3664d3){_0x49c048=_0x49c048-0x0;let _0x293c85=a755_0x3664[_0x49c048];return _0x293c85;};const _0x12c602=a755_0x293c;'use strict';const attributes=require('./voiceQueue.attributes');module[_0x12c602('0x1')]=function(_0x544c97){const _0x499a9c=_0x12c602,_0x8e8928=_0x544c97['define'](_0x499a9c('0x0'),attributes,{'tableName':_0x499a9c('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x8e8928;}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.rpc.js b/server/api/voiceQueue/voiceQueue.rpc.js index 01e3692..b280507 100644 --- a/server/api/voiceQueue/voiceQueue.rpc.js +++ b/server/api/voiceQueue/voiceQueue.rpc.js @@ -1 +1 @@ -const a756_0x25c8=['../../rediscache','limit','lodash','then','../../mysqldb','message','error','../../config/logger','model','options','stringify','map','ShowVoiceQueue','./voiceQueue.socket','include','attributes','GetVoiceQueue','debug','VoiceQueue','info','where','register','catch','findAll','findOne','raw'];(function(_0x5f4b86,_0x25c830){const _0xef6583=function(_0x4db793){while(--_0x4db793){_0x5f4b86['push'](_0x5f4b86['shift']());}};_0xef6583(++_0x25c830);}(a756_0x25c8,0x181));const a756_0xef65=function(_0x5f4b86,_0x25c830){_0x5f4b86=_0x5f4b86-0x0;let _0xef6583=a756_0x25c8[_0x5f4b86];return _0xef6583;};const _0x200a2f=a756_0xef65;'use strict';const _=require(_0x200a2f('0x7')),db=require(_0x200a2f('0x9'))['db'],logger=require(_0x200a2f('0xc'))('rpc'),{getSocket}=require(_0x200a2f('0x5')),socket=getSocket();require(_0x200a2f('0x12'))[_0x200a2f('0x0')](socket),exports['GetVoiceQueue']=function(_0x4db793){const _0x4afabe=this;return new Promise(function(_0x45fc6e,_0x48f1cb){const _0x593f0a=a756_0xef65;return db[_0x593f0a('0x17')][_0x593f0a('0x2')]({'raw':_0x4db793['options']?_0x4db793[_0x593f0a('0xe')]['raw']===undefined?!![]:![]:!![],'where':_0x4db793['options']?_0x4db793[_0x593f0a('0xe')][_0x593f0a('0x19')]||null:null,'attributes':_0x4db793['options']?_0x4db793['options'][_0x593f0a('0x14')]||null:null,'limit':_0x4db793[_0x593f0a('0xe')]?_0x4db793[_0x593f0a('0xe')][_0x593f0a('0x6')]||null:null,'include':_0x4db793['options']?_0x4db793[_0x593f0a('0xe')][_0x593f0a('0x13')]?_[_0x593f0a('0x10')](_0x4db793[_0x593f0a('0xe')][_0x593f0a('0x13')],function(_0x367779){const _0x542566=_0x593f0a;return{'model':db[_0x367779[_0x542566('0xd')]],'as':_0x367779['as'],'attributes':_0x367779[_0x542566('0x14')],'include':_0x367779['include']?_[_0x542566('0x10')](_0x367779[_0x542566('0x13')],function(_0x4f3a5c){const _0x20dd6c=_0x542566;return{'model':db[_0x4f3a5c['model']],'as':_0x4f3a5c['as'],'attributes':_0x4f3a5c['attributes'],'include':_0x4f3a5c[_0x20dd6c('0x13')]?_['map'](_0x4f3a5c[_0x20dd6c('0x13')],function(_0x570a08){const _0x1b1d54=_0x20dd6c;return{'model':db[_0x570a08['model']],'as':_0x570a08['as'],'attributes':_0x570a08[_0x1b1d54('0x14')]};}):[]};}):[]};}):[]:[]})[_0x593f0a('0x8')](function(_0x201432){const _0x49f0bd=_0x593f0a;logger['info'](_0x49f0bd('0x15'),_0x4db793),logger[_0x49f0bd('0x16')]('GetVoiceQueue',_0x4db793,JSON[_0x49f0bd('0xf')](_0x201432)),_0x45fc6e(_0x201432);})[_0x593f0a('0x1')](function(_0x314fec){const _0x5dfc7b=_0x593f0a;logger[_0x5dfc7b('0xb')](_0x5dfc7b('0x15'),_0x314fec[_0x5dfc7b('0xa')],_0x4db793),_0x48f1cb(_0x4afabe['error'](0x1f4,_0x314fec[_0x5dfc7b('0xa')]));});});},exports[_0x200a2f('0x11')]=function(_0x4f6962){const _0x37faea=this;return new Promise(function(_0x52e3ab,_0x5584e3){const _0x316aae=a756_0xef65;return db[_0x316aae('0x17')][_0x316aae('0x3')]({'raw':_0x4f6962[_0x316aae('0xe')]?_0x4f6962[_0x316aae('0xe')][_0x316aae('0x4')]===undefined?!![]:![]:!![],'where':_0x4f6962[_0x316aae('0xe')]?_0x4f6962[_0x316aae('0xe')][_0x316aae('0x19')]||null:null,'attributes':_0x4f6962[_0x316aae('0xe')]?_0x4f6962[_0x316aae('0xe')][_0x316aae('0x14')]||null:null,'include':_0x4f6962[_0x316aae('0xe')]?_0x4f6962['options']['include']?_[_0x316aae('0x10')](_0x4f6962[_0x316aae('0xe')][_0x316aae('0x13')],function(_0x508698){const _0x4fc699=_0x316aae;return{'model':db[_0x508698[_0x4fc699('0xd')]],'as':_0x508698['as'],'attributes':_0x508698['attributes'],'include':_0x508698['include']?_[_0x4fc699('0x10')](_0x508698[_0x4fc699('0x13')],function(_0x1a88f4){const _0xa95366=_0x4fc699;return{'model':db[_0x1a88f4[_0xa95366('0xd')]],'as':_0x1a88f4['as'],'attributes':_0x1a88f4['attributes'],'include':_0x1a88f4['include']?_[_0xa95366('0x10')](_0x1a88f4[_0xa95366('0x13')],function(_0x8455a9){const _0x46a8c1=_0xa95366;return{'model':db[_0x8455a9[_0x46a8c1('0xd')]],'as':_0x8455a9['as'],'attributes':_0x8455a9[_0x46a8c1('0x14')]};}):[]};}):[]};}):[]:[]})[_0x316aae('0x8')](function(_0x5596a8){const _0x38a573=_0x316aae;logger[_0x38a573('0x18')](_0x38a573('0x11'),_0x4f6962),logger[_0x38a573('0x16')](_0x38a573('0x11'),_0x4f6962,JSON[_0x38a573('0xf')](_0x5596a8)),_0x52e3ab(_0x5596a8);})[_0x316aae('0x1')](function(_0x42ef71){const _0x318928=_0x316aae;logger[_0x318928('0xb')]('ShowVoiceQueue',_0x42ef71['message'],_0x4f6962),_0x5584e3(_0x37faea['error'](0x1f4,_0x42ef71[_0x318928('0xa')]));});});}; \ No newline at end of file +const a756_0x370f=['./voiceQueue.socket','lodash','stringify','model','info','debug','register','../../rediscache','GetVoiceQueue','where','../../mysqldb','options','then','error','attributes','message','ShowVoiceQueue','VoiceQueue','limit','findAll','findOne','catch','map','rpc','raw','include','../../config/logger'];(function(_0x3a3fc6,_0x370f52){const _0xaaf726=function(_0x3c1b3c){while(--_0x3c1b3c){_0x3a3fc6['push'](_0x3a3fc6['shift']());}};_0xaaf726(++_0x370f52);}(a756_0x370f,0xa3));const a756_0xaaf7=function(_0x3a3fc6,_0x370f52){_0x3a3fc6=_0x3a3fc6-0x0;let _0xaaf726=a756_0x370f[_0x3a3fc6];return _0xaaf726;};const _0x1bb290=a756_0xaaf7;'use strict';const _=require(_0x1bb290('0x0')),db=require(_0x1bb290('0x9'))['db'],logger=require(_0x1bb290('0x19'))(_0x1bb290('0x16')),{getSocket}=require(_0x1bb290('0x6')),socket=getSocket();require(_0x1bb290('0x1a'))[_0x1bb290('0x5')](socket),exports[_0x1bb290('0x7')]=function(_0x3c1b3c){const _0xf893f9=this;return new Promise(function(_0x211e64,_0x3e88c4){const _0x51708b=a756_0xaaf7;return db[_0x51708b('0x10')][_0x51708b('0x12')]({'raw':_0x3c1b3c['options']?_0x3c1b3c['options'][_0x51708b('0x17')]===undefined?!![]:![]:!![],'where':_0x3c1b3c[_0x51708b('0xa')]?_0x3c1b3c[_0x51708b('0xa')][_0x51708b('0x8')]||null:null,'attributes':_0x3c1b3c[_0x51708b('0xa')]?_0x3c1b3c[_0x51708b('0xa')][_0x51708b('0xd')]||null:null,'limit':_0x3c1b3c[_0x51708b('0xa')]?_0x3c1b3c[_0x51708b('0xa')][_0x51708b('0x11')]||null:null,'include':_0x3c1b3c[_0x51708b('0xa')]?_0x3c1b3c[_0x51708b('0xa')][_0x51708b('0x18')]?_['map'](_0x3c1b3c[_0x51708b('0xa')]['include'],function(_0x1dc52a){const _0x1a3de2=_0x51708b;return{'model':db[_0x1dc52a[_0x1a3de2('0x2')]],'as':_0x1dc52a['as'],'attributes':_0x1dc52a[_0x1a3de2('0xd')],'include':_0x1dc52a[_0x1a3de2('0x18')]?_[_0x1a3de2('0x15')](_0x1dc52a[_0x1a3de2('0x18')],function(_0x558889){const _0x84f3a1=_0x1a3de2;return{'model':db[_0x558889[_0x84f3a1('0x2')]],'as':_0x558889['as'],'attributes':_0x558889[_0x84f3a1('0xd')],'include':_0x558889[_0x84f3a1('0x18')]?_[_0x84f3a1('0x15')](_0x558889['include'],function(_0x5b85e8){const _0x46eb9d=_0x84f3a1;return{'model':db[_0x5b85e8[_0x46eb9d('0x2')]],'as':_0x5b85e8['as'],'attributes':_0x5b85e8[_0x46eb9d('0xd')]};}):[]};}):[]};}):[]:[]})[_0x51708b('0xb')](function(_0x587952){const _0x30b7c8=_0x51708b;logger['info'](_0x30b7c8('0x7'),_0x3c1b3c),logger['debug'](_0x30b7c8('0x7'),_0x3c1b3c,JSON[_0x30b7c8('0x1')](_0x587952)),_0x211e64(_0x587952);})[_0x51708b('0x14')](function(_0x3dbef2){const _0x1ee53a=_0x51708b;logger[_0x1ee53a('0xc')]('GetVoiceQueue',_0x3dbef2[_0x1ee53a('0xe')],_0x3c1b3c),_0x3e88c4(_0xf893f9[_0x1ee53a('0xc')](0x1f4,_0x3dbef2[_0x1ee53a('0xe')]));});});},exports['ShowVoiceQueue']=function(_0x137e54){const _0x5ad71a=this;return new Promise(function(_0x589245,_0x3f0327){const _0x266a00=a756_0xaaf7;return db['VoiceQueue'][_0x266a00('0x13')]({'raw':_0x137e54['options']?_0x137e54[_0x266a00('0xa')][_0x266a00('0x17')]===undefined?!![]:![]:!![],'where':_0x137e54['options']?_0x137e54[_0x266a00('0xa')][_0x266a00('0x8')]||null:null,'attributes':_0x137e54[_0x266a00('0xa')]?_0x137e54[_0x266a00('0xa')][_0x266a00('0xd')]||null:null,'include':_0x137e54[_0x266a00('0xa')]?_0x137e54[_0x266a00('0xa')][_0x266a00('0x18')]?_['map'](_0x137e54['options'][_0x266a00('0x18')],function(_0x305f7b){const _0x5a8d83=_0x266a00;return{'model':db[_0x305f7b[_0x5a8d83('0x2')]],'as':_0x305f7b['as'],'attributes':_0x305f7b[_0x5a8d83('0xd')],'include':_0x305f7b['include']?_['map'](_0x305f7b['include'],function(_0x2d8750){const _0x41a4e9=_0x5a8d83;return{'model':db[_0x2d8750[_0x41a4e9('0x2')]],'as':_0x2d8750['as'],'attributes':_0x2d8750[_0x41a4e9('0xd')],'include':_0x2d8750[_0x41a4e9('0x18')]?_['map'](_0x2d8750[_0x41a4e9('0x18')],function(_0x3f7dd6){const _0x41b379=_0x41a4e9;return{'model':db[_0x3f7dd6[_0x41b379('0x2')]],'as':_0x3f7dd6['as'],'attributes':_0x3f7dd6[_0x41b379('0xd')]};}):[]};}):[]};}):[]:[]})[_0x266a00('0xb')](function(_0x3e829){const _0x1248b1=_0x266a00;logger[_0x1248b1('0x3')](_0x1248b1('0xf'),_0x137e54),logger[_0x1248b1('0x4')](_0x1248b1('0xf'),_0x137e54,JSON[_0x1248b1('0x1')](_0x3e829)),_0x589245(_0x3e829);})[_0x266a00('0x14')](function(_0x362247){const _0x525146=_0x266a00;logger[_0x525146('0xc')](_0x525146('0xf'),_0x362247[_0x525146('0xe')],_0x137e54),_0x3f0327(_0x5ad71a[_0x525146('0xc')](0x1f4,_0x362247[_0x525146('0xe')]));});});}; \ No newline at end of file diff --git a/server/api/voiceQueue/voiceQueue.socket.js b/server/api/voiceQueue/voiceQueue.socket.js index 5f3d6fd..f22fa23 100644 --- a/server/api/voiceQueue/voiceQueue.socket.js +++ b/server/api/voiceQueue/voiceQueue.socket.js @@ -1 +1 @@ -const a757_0x280a=['./voiceQueue.events','voiceQueue:','register','remove','length','save','emit'];(function(_0x262d95,_0x280aba){const _0x3102=function(_0x37428f){while(--_0x37428f){_0x262d95['push'](_0x262d95['shift']());}};_0x3102(++_0x280aba);}(a757_0x280a,0x1e5));const a757_0x3102=function(_0x262d95,_0x280aba){_0x262d95=_0x262d95-0x0;let _0x3102=a757_0x280a[_0x262d95];return _0x3102;};const _0x10b5fe=a757_0x3102;'use strict';const VoiceQueueEvents=require(_0x10b5fe('0x5')),events=[_0x10b5fe('0x3'),_0x10b5fe('0x1'),'update'];function createListener(_0x37428f,_0x7910d4){return function(_0x2298f9){const _0x54ec26=a757_0x3102;_0x7910d4[_0x54ec26('0x4')](_0x37428f,_0x2298f9);};}exports[_0x10b5fe('0x0')]=function(_0x4b8442){const _0x33a095=_0x10b5fe;for(let _0x9b71d0=0x0,_0xfd9c18=events[_0x33a095('0x2')];_0x9b71d0<_0xfd9c18;_0x9b71d0++){const _0x2b1500=events[_0x9b71d0],_0xd10b80=createListener(_0x33a095('0x6')+_0x2b1500,_0x4b8442);VoiceQueueEvents['on'](_0x2b1500,_0xd10b80);}}; \ No newline at end of file +const a757_0x196b=['voiceQueue:','register','emit','remove','length','./voiceQueue.events','save'];(function(_0x42bb95,_0x196b28){const _0x2e648b=function(_0x1a9100){while(--_0x1a9100){_0x42bb95['push'](_0x42bb95['shift']());}};_0x2e648b(++_0x196b28);}(a757_0x196b,0xab));const a757_0x2e64=function(_0x42bb95,_0x196b28){_0x42bb95=_0x42bb95-0x0;let _0x2e648b=a757_0x196b[_0x42bb95];return _0x2e648b;};const _0x4ea061=a757_0x2e64;'use strict';const VoiceQueueEvents=require(_0x4ea061('0x2')),events=[_0x4ea061('0x3'),_0x4ea061('0x0'),'update'];function createListener(_0x1a9100,_0x382c42){return function(_0x3d9f65){const _0xf8a436=a757_0x2e64;_0x382c42[_0xf8a436('0x6')](_0x1a9100,_0x3d9f65);};}exports[_0x4ea061('0x5')]=function(_0xf4d362){const _0x13e242=_0x4ea061;for(let _0x1b44d8=0x0,_0xe41d2f=events[_0x13e242('0x1')];_0x1b44d8<_0xe41d2f;_0x1b44d8++){const _0x354cc9=events[_0x1b44d8],_0x1f198b=createListener(_0x13e242('0x4')+_0x354cc9,_0xf4d362);VoiceQueueEvents['on'](_0x354cc9,_0x1f198b);}}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/index.js b/server/api/voiceQueueReport/index.js index 15bed34..c7218c1 100644 --- a/server/api/voiceQueueReport/index.js +++ b/server/api/voiceQueueReport/index.js @@ -1 +1 @@ -const a758_0x1dd3=['index','isAuthenticated','exports','destroy','../../components/auth/service','express','getVoiceQueuesReport','post','update','./voiceQueueReport.controller','put','/:id','show','get','/index','describe','delete','Router'];(function(_0x67a308,_0x1dd34d){const _0x4ce6c3=function(_0x444991){while(--_0x444991){_0x67a308['push'](_0x67a308['shift']());}};_0x4ce6c3(++_0x1dd34d);}(a758_0x1dd3,0x118));const a758_0x4ce6=function(_0x67a308,_0x1dd34d){_0x67a308=_0x67a308-0x0;let _0x4ce6c3=a758_0x1dd3[_0x67a308];return _0x4ce6c3;};const _0x581c6d=a758_0x4ce6;'use strict';const express=require(_0x581c6d('0xd')),router=express[_0x581c6d('0x7')](),auth=require(_0x581c6d('0xc')),controller=require(_0x581c6d('0x11'));router[_0x581c6d('0x3')]('/',auth['isAuthenticated'](),controller[_0x581c6d('0x8')]),router[_0x581c6d('0x3')]('/describe',auth['isAuthenticated'](),controller[_0x581c6d('0x5')]),router[_0x581c6d('0x3')](_0x581c6d('0x4'),auth[_0x581c6d('0x9')](),controller[_0x581c6d('0xe')]),router[_0x581c6d('0x3')]('/:id',auth[_0x581c6d('0x9')](),controller[_0x581c6d('0x2')]),router[_0x581c6d('0xf')]('/',auth[_0x581c6d('0x9')](),controller['create']),router[_0x581c6d('0x0')](_0x581c6d('0x1'),auth[_0x581c6d('0x9')](),controller[_0x581c6d('0x10')]),router[_0x581c6d('0x6')](_0x581c6d('0x1'),auth[_0x581c6d('0x9')](),controller[_0x581c6d('0xb')]),module[_0x581c6d('0xa')]=router; \ No newline at end of file +const a758_0x1faa=['update','put','/describe','destroy','describe','get','index','delete','/index','./voiceQueueReport.controller','getVoiceQueuesReport','create','show','isAuthenticated','exports','/:id','Router','express'];(function(_0x1aac3a,_0x1faa95){const _0xade0ea=function(_0x2a86ec){while(--_0x2a86ec){_0x1aac3a['push'](_0x1aac3a['shift']());}};_0xade0ea(++_0x1faa95);}(a758_0x1faa,0x1a2));const a758_0xade0=function(_0x1aac3a,_0x1faa95){_0x1aac3a=_0x1aac3a-0x0;let _0xade0ea=a758_0x1faa[_0x1aac3a];return _0xade0ea;};const _0x27ac47=a758_0xade0;'use strict';const express=require(_0x27ac47('0xd')),router=express[_0x27ac47('0xc')](),auth=require('../../components/auth/service'),controller=require(_0x27ac47('0x5'));router['get']('/',auth[_0x27ac47('0x9')](),controller[_0x27ac47('0x2')]),router[_0x27ac47('0x1')](_0x27ac47('0x10'),auth[_0x27ac47('0x9')](),controller[_0x27ac47('0x0')]),router[_0x27ac47('0x1')](_0x27ac47('0x4'),auth[_0x27ac47('0x9')](),controller[_0x27ac47('0x6')]),router[_0x27ac47('0x1')](_0x27ac47('0xb'),auth[_0x27ac47('0x9')](),controller[_0x27ac47('0x8')]),router['post']('/',auth[_0x27ac47('0x9')](),controller[_0x27ac47('0x7')]),router[_0x27ac47('0xf')]('/:id',auth[_0x27ac47('0x9')](),controller[_0x27ac47('0xe')]),router[_0x27ac47('0x3')](_0x27ac47('0xb'),auth[_0x27ac47('0x9')](),controller[_0x27ac47('0x11')]),module[_0x27ac47('0xa')]=router; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.attributes.js b/server/api/voiceQueueReport/voiceQueueReport.attributes.js index db27678..e4f5a64 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.attributes.js +++ b/server/api/voiceQueueReport/voiceQueueReport.attributes.js @@ -1 +1 @@ -const a759_0x18ed=['BOOLEAN','queuecallerjoinAt','STRING','YYYY-MM-DD\x20HH:mm:ss','moment','exports','sequelize','getDataValue','holdtime','queuecallerleaveAt','diff','INTEGER','setDataValue','DATE','format','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT'];(function(_0x3cbc6b,_0x18ed80){const _0x55b8d1=function(_0x578b1e){while(--_0x578b1e){_0x3cbc6b['push'](_0x3cbc6b['shift']());}};_0x55b8d1(++_0x18ed80);}(a759_0x18ed,0x16c));const a759_0x55b8=function(_0x3cbc6b,_0x18ed80){_0x3cbc6b=_0x3cbc6b-0x0;let _0x55b8d1=a759_0x18ed[_0x3cbc6b];return _0x55b8d1;};const _0x267255=a759_0x55b8;'use strict';const Sequelize=require(_0x267255('0xa')),moment=require(_0x267255('0x8'));module[_0x267255('0x9')]={'type':{'type':Sequelize[_0x267255('0x6')]},'uniqueid':{'type':Sequelize[_0x267255('0x6')]},'calleridnum':{'type':Sequelize[_0x267255('0x6')]},'calleridname':{'type':Sequelize['STRING']},'queue':{'type':Sequelize[_0x267255('0x6')]},'queuecallerjoinAt':{'type':Sequelize[_0x267255('0x1')]},'queuecallerleaveAt':{'type':Sequelize[_0x267255('0x1')],'set':function(_0x578b1e){const _0x398670=_0x267255,_0x328ea3=moment(_0x578b1e),_0x232d65=moment(this[_0x398670('0xb')](_0x398670('0x5')))[_0x398670('0x2')](_0x398670('0x7')),_0x3de8e8=_0x328ea3[_0x398670('0xe')](_0x232d65,'seconds');this[_0x398670('0x0')](_0x398670('0xd'),_0x578b1e),this['setDataValue'](_0x398670('0xc'),_0x3de8e8||null);}},'position':{'type':Sequelize[_0x267255('0xf')]},'count':{'type':Sequelize['INTEGER']},'queuecallerabandon':{'type':Sequelize[_0x267255('0x4')],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x267255('0x1')]},'queuecallercomplete':{'type':Sequelize[_0x267255('0x4')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x267255('0x1')]},'queuecallerexit':{'type':Sequelize[_0x267255('0x4')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x267255('0x1')]},'queuecallerexitreason':{'type':Sequelize[_0x267255('0x6')],'comment':_0x267255('0x3')},'originalposition':{'type':Sequelize[_0x267255('0xf')]},'channel':{'type':Sequelize[_0x267255('0x6')]},'connectedlinenum':{'type':Sequelize[_0x267255('0x6')]},'connectedlinename':{'type':Sequelize[_0x267255('0x6')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0x267255('0x6')]},'exten':{'type':Sequelize[_0x267255('0x6')]},'priority':{'type':Sequelize['STRING']},'holdtime':{'type':Sequelize[_0x267255('0xf')]},'mohtime':{'type':Sequelize['INTEGER'],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x267255('0x4')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x267255('0x6')]},'transfer':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'transfertype':{'type':Sequelize[_0x267255('0x6')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize[_0x267255('0x6')]},'transferuniqueid':{'type':Sequelize['STRING']},'disposition':{'type':Sequelize['STRING']},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize[_0x267255('0x6')]},'queuecallerenterreason':{'type':Sequelize[_0x267255('0xf')],'defaultValue':0x0}}; \ No newline at end of file +const a759_0x42c4=['getDataValue','INTEGER','queuecallerjoinAt','DATE','COMPLETEDBYCALLER,\x20COMPLETEDBYAGENT,\x20FORWARDTRANFER,\x20BLINDTRANSFER,\x20ATTENDEDTRANSFER,\x20EXITWITHKEY,\x20TIMEOUT','BOOLEAN','format','YYYY-MM-DD\x20HH:mm:ss','STRING','setDataValue','diff','holdtime','sequelize','queuecallerleaveAt'];(function(_0x170edd,_0x42c479){const _0x1284a1=function(_0x5f27d0){while(--_0x5f27d0){_0x170edd['push'](_0x170edd['shift']());}};_0x1284a1(++_0x42c479);}(a759_0x42c4,0xf6));const a759_0x1284=function(_0x170edd,_0x42c479){_0x170edd=_0x170edd-0x0;let _0x1284a1=a759_0x42c4[_0x170edd];return _0x1284a1;};const _0x2d9a88=a759_0x1284;'use strict';const Sequelize=require(_0x2d9a88('0x4')),moment=require('moment');module['exports']={'type':{'type':Sequelize[_0x2d9a88('0x0')]},'uniqueid':{'type':Sequelize[_0x2d9a88('0x0')]},'calleridnum':{'type':Sequelize[_0x2d9a88('0x0')]},'calleridname':{'type':Sequelize[_0x2d9a88('0x0')]},'queue':{'type':Sequelize[_0x2d9a88('0x0')]},'queuecallerjoinAt':{'type':Sequelize[_0x2d9a88('0x9')]},'queuecallerleaveAt':{'type':Sequelize['DATE'],'set':function(_0x5f27d0){const _0x321dc1=_0x2d9a88,_0x4cce34=moment(_0x5f27d0),_0xfff187=moment(this[_0x321dc1('0x6')](_0x321dc1('0x8')))[_0x321dc1('0xc')](_0x321dc1('0xd')),_0x14af2a=_0x4cce34[_0x321dc1('0x2')](_0xfff187,'seconds');this[_0x321dc1('0x1')](_0x321dc1('0x5'),_0x5f27d0),this['setDataValue'](_0x321dc1('0x3'),_0x14af2a||null);}},'position':{'type':Sequelize[_0x2d9a88('0x7')]},'count':{'type':Sequelize[_0x2d9a88('0x7')]},'queuecallerabandon':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'queuecallerabandonAt':{'type':Sequelize[_0x2d9a88('0x9')]},'queuecallercomplete':{'type':Sequelize[_0x2d9a88('0xb')],'defaultValue':![]},'queuecallercompleteAt':{'type':Sequelize[_0x2d9a88('0x9')]},'queuecallerexit':{'type':Sequelize[_0x2d9a88('0xb')],'defaultValue':![]},'queuecallerexitAt':{'type':Sequelize[_0x2d9a88('0x9')]},'queuecallerexitreason':{'type':Sequelize['STRING'],'comment':_0x2d9a88('0xa')},'originalposition':{'type':Sequelize[_0x2d9a88('0x7')]},'channel':{'type':Sequelize[_0x2d9a88('0x0')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x2d9a88('0x0')]},'accountcode':{'type':Sequelize[_0x2d9a88('0x0')]},'context':{'type':Sequelize['STRING']},'exten':{'type':Sequelize[_0x2d9a88('0x0')]},'priority':{'type':Sequelize['STRING']},'holdtime':{'type':Sequelize[_0x2d9a88('0x7')]},'mohtime':{'type':Sequelize[_0x2d9a88('0x7')],'defaultValue':0x0},'assigned':{'type':Sequelize[_0x2d9a88('0xb')],'defaultValue':![]},'lastAssignedTo':{'type':Sequelize[_0x2d9a88('0x0')]},'transfer':{'type':Sequelize[_0x2d9a88('0xb')],'defaultValue':![]},'transfertype':{'type':Sequelize['STRING'],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'},'transferexten':{'type':Sequelize[_0x2d9a88('0x0')]},'transferuniqueid':{'type':Sequelize[_0x2d9a88('0x0')]},'disposition':{'type':Sequelize[_0x2d9a88('0x0')]},'secondDisposition':{'type':Sequelize[_0x2d9a88('0x0')]},'thirdDisposition':{'type':Sequelize[_0x2d9a88('0x0')]},'queuecallerenterreason':{'type':Sequelize[_0x2d9a88('0x7')],'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 01edd6b..212b21f 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.controller.js +++ b/server/api/voiceQueueReport/voiceQueueReport.controller.js @@ -1 +1 @@ -const a760_0x1cbe=['findAll','sendStatus','VoiceQueueReport','keys','filters','sort','fields','intersection','api','merge','key','options','update','then','create','findOne','where','./voiceQueueReport.socket','attributes','offset','rows','error','destroy','order','pick','register','query','limit','status','fieldName','includeAll','describe','filter','params','../../rediscache','map','getVoiceQueuesReport','length','count','include','name','VIRTUAL','type','nolimit','model','stack','lodash','like','../../config/logger','catch','rawAttributes','undefined'];(function(_0x39ba56,_0x1cbe97){const _0x36e272=function(_0x497100){while(--_0x497100){_0x39ba56['push'](_0x39ba56['shift']());}};_0x36e272(++_0x1cbe97);}(a760_0x1cbe,0xde));const a760_0x36e2=function(_0x39ba56,_0x1cbe97){_0x39ba56=_0x39ba56-0x0;let _0x36e272=a760_0x1cbe[_0x39ba56];return _0x36e272;};const _0x2c9253=a760_0x36e2;'use strict';const _=require(_0x2c9253('0x20')),qs=require('../../components/parsers/qs'),logger=require(_0x2c9253('0x22'))(_0x2c9253('0x2e')),{getSocket}=require(_0x2c9253('0x14')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require(_0x2c9253('0x3'))[_0x2c9253('0xb')](socket);function respondWithResult(_0x497100,_0x5a34de){return _0x5a34de=_0x5a34de||0xc8,function(_0x3edb71){const _0x44d3db=a760_0x36e2;if(_0x3edb71)return _0x497100[_0x44d3db('0xe')](_0x5a34de)['json'](_0x3edb71);};}function respondWithFilteredResult(_0x223ea8,_0x14d278){return function(_0xbdfd3c){const _0x249a5c=a760_0x36e2;if(_0xbdfd3c){const _0x220fc9=_0xbdfd3c['count'],_0xe68722=_0x14d278['offset'];let _0x59c295=_0x14d278['offset']+_0x14d278[_0x249a5c('0xd')],_0x439362;return _0x59c295>=_0x220fc9?(_0x59c295=_0x220fc9,_0x439362=0xc8):_0x439362=0xce,_0x223ea8[_0x249a5c('0xe')](_0x439362),_0x223ea8['set']('Content-Range',_0xe68722+'-'+_0x59c295+'/'+_0x220fc9)['json'](_0xbdfd3c);}return null;};}function saveUpdates(_0x5d494e){return function(_0x48ac62){const _0x137604=a760_0x36e2;if(_0x48ac62)return _0x48ac62[_0x137604('0x32')](_0x5d494e)['then'](function(_0x480cfd){return _0x480cfd;});return null;};}function removeEntity(_0x4de84e){return function(_0x1b0577){const _0x42852e=a760_0x36e2;if(_0x1b0577)return _0x1b0577[_0x42852e('0x8')]()[_0x42852e('0x33')](function(){const _0x5d9ed=_0x42852e;_0x4de84e[_0x5d9ed('0xe')](0xcc)['end']();});};}function handleEntityNotFound(_0x1dc343){return function(_0x501d85){const _0x1ed9d8=a760_0x36e2;return!_0x501d85&&_0x1dc343[_0x1ed9d8('0x27')](0x194),_0x501d85;};}function handleError(_0x345e4e,_0x12149d){return _0x12149d=_0x12149d||0x1f4,function(_0x5d390d){const _0x525fe0=a760_0x36e2;logger[_0x525fe0('0x7')](_0x5d390d[_0x525fe0('0x1f')]),_0x5d390d[_0x525fe0('0x1a')]&&delete _0x5d390d['name'],_0x345e4e[_0x525fe0('0xe')](_0x12149d)['send'](_0x5d390d);};}exports['index']=function(_0x2f1020,_0x53e14a){const _0x8f7cbf=_0x2c9253;let _0x322532={};const _0x4bfc74={},_0x4a1345={'count':0x0,'rows':[]},_0x4fbd09=_['map'](db[_0x8f7cbf('0x28')]['rawAttributes'],function(_0x328d3e){const _0x9dc6ba=_0x8f7cbf;return{'name':_0x328d3e[_0x9dc6ba('0xf')],'type':_0x328d3e['type'][_0x9dc6ba('0x30')]};});_0x4bfc74[_0x8f7cbf('0x1e')]=_['map'](_0x4fbd09,_0x8f7cbf('0x1a')),_0x4bfc74['query']=_['keys'](_0x2f1020[_0x8f7cbf('0xc')]),_0x4bfc74['filters']=_[_0x8f7cbf('0x2d')](_0x4bfc74[_0x8f7cbf('0x1e')],_0x4bfc74[_0x8f7cbf('0xc')]),_0x322532['attributes']=_[_0x8f7cbf('0x2d')](_0x4bfc74[_0x8f7cbf('0x1e')],qs['fields'](_0x2f1020[_0x8f7cbf('0xc')][_0x8f7cbf('0x2c')])),_0x322532[_0x8f7cbf('0x4')]=_0x322532[_0x8f7cbf('0x4')]['length']?_0x322532[_0x8f7cbf('0x4')]:_0x4bfc74[_0x8f7cbf('0x1e')];typeof _0x2f1020[_0x8f7cbf('0xc')][_0x8f7cbf('0x1d')]===_0x8f7cbf('0x25')&&(_0x322532[_0x8f7cbf('0xd')]=qs[_0x8f7cbf('0xd')](_0x2f1020[_0x8f7cbf('0xc')][_0x8f7cbf('0xd')]),_0x322532[_0x8f7cbf('0x5')]=qs[_0x8f7cbf('0x5')](_0x2f1020['query'][_0x8f7cbf('0x5')]));_0x322532['order']=qs[_0x8f7cbf('0x2b')](_0x2f1020[_0x8f7cbf('0xc')][_0x8f7cbf('0x2b')]),_0x322532['where']=qs[_0x8f7cbf('0x2a')](_['pick'](_0x2f1020['query'],_0x4bfc74[_0x8f7cbf('0x2a')]),_0x4fbd09);_0x2f1020['query'][_0x8f7cbf('0x12')]&&(_0x322532[_0x8f7cbf('0x2')]=_[_0x8f7cbf('0x2f')](_0x322532[_0x8f7cbf('0x2')],{[Op['or']]:_['map'](_0x4fbd09,function(_0x5dcc20){const _0x124717=_0x8f7cbf;if(_0x5dcc20[_0x124717('0x1c')]!==_0x124717('0x1b')){const _0x3a43a0={};return _0x3a43a0[_0x5dcc20[_0x124717('0x1a')]]={[Op['like']]:'%'+_0x2f1020[_0x124717('0xc')]['filter']+'%'},_0x3a43a0;}})}));_0x322532=_[_0x8f7cbf('0x2f')]({},_0x322532,_0x2f1020[_0x8f7cbf('0x31')]);const _0x3fbef4={'where':_0x322532[_0x8f7cbf('0x2')]};return db[_0x8f7cbf('0x28')][_0x8f7cbf('0x18')](_0x3fbef4)[_0x8f7cbf('0x33')](function(_0x2aaaf2){const _0x80cb26=_0x8f7cbf;return _0x4a1345[_0x80cb26('0x18')]=_0x2aaaf2,_0x2f1020[_0x80cb26('0xc')][_0x80cb26('0x10')]&&(_0x322532[_0x80cb26('0x19')]=[{'all':!![]}]),db[_0x80cb26('0x28')][_0x80cb26('0x26')](_0x322532);})[_0x8f7cbf('0x33')](function(_0x509680){const _0x3afa17=_0x8f7cbf;return _0x4a1345[_0x3afa17('0x6')]=_0x509680,_0x4a1345;})[_0x8f7cbf('0x33')](respondWithFilteredResult(_0x53e14a,_0x322532))['catch'](handleError(_0x53e14a,null));},exports['show']=function(_0x6755ca,_0x33c2bf){const _0xe8369e=_0x2c9253;let _0xfff49e={'raw':![],'where':{'id':_0x6755ca['params']['id']}};const _0x5ca0ce={};return _0x5ca0ce['model']=_[_0xe8369e('0x29')](db['VoiceQueueReport'][_0xe8369e('0x24')]),_0x5ca0ce[_0xe8369e('0xc')]=_[_0xe8369e('0x29')](_0x6755ca[_0xe8369e('0xc')]),_0x5ca0ce['filters']=_[_0xe8369e('0x2d')](_0x5ca0ce[_0xe8369e('0x1e')],_0x5ca0ce[_0xe8369e('0xc')]),_0xfff49e[_0xe8369e('0x4')]=_[_0xe8369e('0x2d')](_0x5ca0ce[_0xe8369e('0x1e')],qs[_0xe8369e('0x2c')](_0x6755ca['query']['fields'])),_0xfff49e[_0xe8369e('0x4')]=_0xfff49e[_0xe8369e('0x4')][_0xe8369e('0x17')]?_0xfff49e[_0xe8369e('0x4')]:_0x5ca0ce['model'],_0x6755ca[_0xe8369e('0xc')][_0xe8369e('0x10')]&&(_0xfff49e[_0xe8369e('0x19')]=[{'all':!![]}]),_0xfff49e=_['merge']({},_0xfff49e,_0x6755ca['options']),db['VoiceQueueReport']['findOne'](_0xfff49e)[_0xe8369e('0x33')](handleEntityNotFound(_0x33c2bf,null))[_0xe8369e('0x33')](respondWithResult(_0x33c2bf,null))[_0xe8369e('0x23')](handleError(_0x33c2bf,null));},exports[_0x2c9253('0x0')]=function(_0x16998e,_0xaf6613){return db['VoiceQueueReport']['create'](_0x16998e['body'],{})['then'](respondWithResult(_0xaf6613,0xc9))['catch'](handleError(_0xaf6613,null));},exports[_0x2c9253('0x32')]=function(_0x553a32,_0x3e0921){const _0xbc24e8=_0x2c9253;return _0x553a32['body']['id']&&delete _0x553a32['body']['id'],db[_0xbc24e8('0x28')][_0xbc24e8('0x1')]({'where':{'id':_0x553a32[_0xbc24e8('0x13')]['id']}})[_0xbc24e8('0x33')](handleEntityNotFound(_0x3e0921,null))[_0xbc24e8('0x33')](saveUpdates(_0x553a32['body'],null))[_0xbc24e8('0x33')](respondWithResult(_0x3e0921,null))[_0xbc24e8('0x23')](handleError(_0x3e0921,null));},exports[_0x2c9253('0x8')]=function(_0x335e0c,_0x3197e9){const _0x49e4a9=_0x2c9253;return db[_0x49e4a9('0x28')][_0x49e4a9('0x1')]({'where':{'id':_0x335e0c[_0x49e4a9('0x13')]['id']}})[_0x49e4a9('0x33')](handleEntityNotFound(_0x3197e9,null))['then'](removeEntity(_0x3197e9,null))[_0x49e4a9('0x23')](handleError(_0x3197e9,null));},exports['describe']=function(_0x3f81a7,_0x3ad823){const _0x1a5f0e=_0x2c9253;return db[_0x1a5f0e('0x28')][_0x1a5f0e('0x11')]()[_0x1a5f0e('0x33')](respondWithResult(_0x3ad823,null))[_0x1a5f0e('0x23')](handleError(_0x3ad823,null));},exports[_0x2c9253('0x16')]=function(_0x5a3472,_0x20e083){const _0x32a6ca=_0x2c9253;let _0x60223c={};const _0xad7bc0={},_0x4a9c12={'count':0x0,'rows':[]};_0xad7bc0[_0x32a6ca('0x1e')]=_[_0x32a6ca('0x29')](db[_0x32a6ca('0x28')]['rawAttributes']),_0xad7bc0[_0x32a6ca('0xc')]=_[_0x32a6ca('0x29')](_0x5a3472[_0x32a6ca('0xc')]),_0xad7bc0[_0x32a6ca('0x2a')]=_[_0x32a6ca('0x2d')](_0xad7bc0[_0x32a6ca('0x1e')],_0xad7bc0['query']),_0x60223c[_0x32a6ca('0x4')]=_[_0x32a6ca('0x2d')](_0xad7bc0[_0x32a6ca('0x1e')],qs['fields'](_0x5a3472[_0x32a6ca('0xc')][_0x32a6ca('0x2c')])),_0x60223c[_0x32a6ca('0x4')]=_0x60223c[_0x32a6ca('0x4')]['length']?_0x60223c[_0x32a6ca('0x4')]:_0xad7bc0[_0x32a6ca('0x1e')];typeof _0x5a3472['query'][_0x32a6ca('0x1d')]==='undefined'&&(_0x60223c[_0x32a6ca('0xd')]=qs[_0x32a6ca('0xd')](_0x5a3472['query']['limit']),_0x60223c[_0x32a6ca('0x5')]=qs[_0x32a6ca('0x5')](_0x5a3472[_0x32a6ca('0xc')][_0x32a6ca('0x5')]));_0x60223c[_0x32a6ca('0x9')]=qs['sort'](_0x5a3472[_0x32a6ca('0xc')][_0x32a6ca('0x2b')]),_0x60223c['where']=qs[_0x32a6ca('0x2a')](_[_0x32a6ca('0xa')](_0x5a3472[_0x32a6ca('0xc')],_0xad7bc0['filters']));_0x5a3472['query'][_0x32a6ca('0x12')]&&(_0x60223c[_0x32a6ca('0x2')]=_[_0x32a6ca('0x2f')](_0x60223c[_0x32a6ca('0x2')],{[Op['or']]:_[_0x32a6ca('0x15')](_0x60223c['attributes'],function(_0x2b5559){const _0x21700e=_0x32a6ca,_0x5a1a2a={};return _0x5a1a2a[_0x2b5559]={[Op[_0x21700e('0x21')]]:'%'+_0x5a3472[_0x21700e('0xc')]['filter']+'%'},_0x5a1a2a;})}));_0x60223c=_[_0x32a6ca('0x2f')]({},_0x60223c,_0x5a3472[_0x32a6ca('0x31')]);const _0x5aeb4c={'where':_0x60223c[_0x32a6ca('0x2')]};return db[_0x32a6ca('0x28')][_0x32a6ca('0x18')](_0x5aeb4c)['then'](function(_0x4ec15b){const _0x1631d4=_0x32a6ca;return _0x4a9c12[_0x1631d4('0x18')]=_0x4ec15b,_0x5a3472[_0x1631d4('0xc')][_0x1631d4('0x10')]&&(_0x60223c[_0x1631d4('0x19')]=[{'all':!![]}]),db[_0x1631d4('0x28')][_0x1631d4('0x26')](_0x60223c);})[_0x32a6ca('0x33')](function(_0x524a5f){const _0x2450f0=_0x32a6ca;return _0x4a9c12[_0x2450f0('0x6')]=_0x524a5f,_0x4a9c12;})[_0x32a6ca('0x33')](respondWithFilteredResult(_0x20e083,_0x60223c,_0x32a6ca('0x16')))[_0x32a6ca('0x23')](handleError(_0x20e083,null,_0x32a6ca('0x16')));}; \ No newline at end of file +const a760_0x2bab=['set','catch','count','nolimit','fields','filter','filters','lodash','like','options','length','sendStatus','findOne','where','VIRTUAL','update','offset','destroy','keys','stack','getVoiceQueuesReport','findAll','rows','rawAttributes','intersection','map','type','VoiceQueueReport','index','name','error','then','./voiceQueueReport.socket','model','../../mysqldb','show','params','order','../../components/parsers/qs','key','body','describe','attributes','send','query','fieldName','sequelize','limit','includeAll','sort','create','merge','include'];(function(_0x416d7d,_0x2babd4){const _0x42191c=function(_0x24f2e1){while(--_0x24f2e1){_0x416d7d['push'](_0x416d7d['shift']());}};_0x42191c(++_0x2babd4);}(a760_0x2bab,0x6d));const a760_0x4219=function(_0x416d7d,_0x2babd4){_0x416d7d=_0x416d7d-0x0;let _0x42191c=a760_0x2bab[_0x416d7d];return _0x42191c;};const _0x547fe0=a760_0x4219;'use strict';const _=require(_0x547fe0('0x4')),qs=require(_0x547fe0('0x23')),logger=require('../../config/logger')('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x547fe0('0x1f'))['db'],{Op}=require(_0x547fe0('0x2b'));require(_0x547fe0('0x1d'))['register'](socket);function respondWithResult(_0x24f2e1,_0x3799ae){return _0x3799ae=_0x3799ae||0xc8,function(_0x207da4){if(_0x207da4)return _0x24f2e1['status'](_0x3799ae)['json'](_0x207da4);};}function respondWithFilteredResult(_0x38e95c,_0x35e1a5){return function(_0x3fbbe5){const _0xb7ef3b=a760_0x4219;if(_0x3fbbe5){const _0x4dcee0=_0x3fbbe5[_0xb7ef3b('0x34')],_0xac5d89=_0x35e1a5[_0xb7ef3b('0xd')];let _0x2fec78=_0x35e1a5[_0xb7ef3b('0xd')]+_0x35e1a5[_0xb7ef3b('0x2c')],_0x556b42;return _0x2fec78>=_0x4dcee0?(_0x2fec78=_0x4dcee0,_0x556b42=0xc8):_0x556b42=0xce,_0x38e95c['status'](_0x556b42),_0x38e95c[_0xb7ef3b('0x32')]('Content-Range',_0xac5d89+'-'+_0x2fec78+'/'+_0x4dcee0)['json'](_0x3fbbe5);}return null;};}function saveUpdates(_0x47bfb1){return function(_0x1e1ee2){const _0x40e855=a760_0x4219;if(_0x1e1ee2)return _0x1e1ee2[_0x40e855('0xc')](_0x47bfb1)[_0x40e855('0x1c')](function(_0x4e4b0b){return _0x4e4b0b;});return null;};}function removeEntity(_0x4e4157){return function(_0x50ea45){const _0x3790a1=a760_0x4219;if(_0x50ea45)return _0x50ea45['destroy']()[_0x3790a1('0x1c')](function(){_0x4e4157['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x84872f){return function(_0x3f2894){const _0x802c0a=a760_0x4219;return!_0x3f2894&&_0x84872f[_0x802c0a('0x8')](0x194),_0x3f2894;};}function handleError(_0x3cf1ac,_0x4e04db){return _0x4e04db=_0x4e04db||0x1f4,function(_0x118b2c){const _0x2622b6=a760_0x4219;logger[_0x2622b6('0x1b')](_0x118b2c[_0x2622b6('0x10')]),_0x118b2c[_0x2622b6('0x1a')]&&delete _0x118b2c[_0x2622b6('0x1a')],_0x3cf1ac['status'](_0x4e04db)[_0x2622b6('0x28')](_0x118b2c);};}exports[_0x547fe0('0x19')]=function(_0x8e264d,_0x4f1ebf){const _0x3f6a9f=_0x547fe0;let _0x166d3a={};const _0x430687={},_0x362c77={'count':0x0,'rows':[]},_0x1b907d=_[_0x3f6a9f('0x16')](db['VoiceQueueReport'][_0x3f6a9f('0x14')],function(_0x3550b6){const _0x5cce43=_0x3f6a9f;return{'name':_0x3550b6[_0x5cce43('0x2a')],'type':_0x3550b6[_0x5cce43('0x17')][_0x5cce43('0x24')]};});_0x430687[_0x3f6a9f('0x1e')]=_['map'](_0x1b907d,'name'),_0x430687[_0x3f6a9f('0x29')]=_['keys'](_0x8e264d['query']),_0x430687[_0x3f6a9f('0x3')]=_[_0x3f6a9f('0x15')](_0x430687[_0x3f6a9f('0x1e')],_0x430687[_0x3f6a9f('0x29')]),_0x166d3a[_0x3f6a9f('0x27')]=_[_0x3f6a9f('0x15')](_0x430687[_0x3f6a9f('0x1e')],qs[_0x3f6a9f('0x1')](_0x8e264d[_0x3f6a9f('0x29')][_0x3f6a9f('0x1')])),_0x166d3a['attributes']=_0x166d3a[_0x3f6a9f('0x27')][_0x3f6a9f('0x7')]?_0x166d3a[_0x3f6a9f('0x27')]:_0x430687[_0x3f6a9f('0x1e')];typeof _0x8e264d[_0x3f6a9f('0x29')][_0x3f6a9f('0x0')]==='undefined'&&(_0x166d3a[_0x3f6a9f('0x2c')]=qs[_0x3f6a9f('0x2c')](_0x8e264d[_0x3f6a9f('0x29')][_0x3f6a9f('0x2c')]),_0x166d3a['offset']=qs[_0x3f6a9f('0xd')](_0x8e264d[_0x3f6a9f('0x29')][_0x3f6a9f('0xd')]));_0x166d3a[_0x3f6a9f('0x22')]=qs['sort'](_0x8e264d[_0x3f6a9f('0x29')]['sort']),_0x166d3a[_0x3f6a9f('0xa')]=qs['filters'](_['pick'](_0x8e264d[_0x3f6a9f('0x29')],_0x430687[_0x3f6a9f('0x3')]),_0x1b907d);_0x8e264d['query'][_0x3f6a9f('0x2')]&&(_0x166d3a[_0x3f6a9f('0xa')]=_[_0x3f6a9f('0x30')](_0x166d3a[_0x3f6a9f('0xa')],{[Op['or']]:_[_0x3f6a9f('0x16')](_0x1b907d,function(_0xae1eb1){const _0x1b5740=_0x3f6a9f;if(_0xae1eb1[_0x1b5740('0x17')]!==_0x1b5740('0xb')){const _0x5670f3={};return _0x5670f3[_0xae1eb1[_0x1b5740('0x1a')]]={[Op[_0x1b5740('0x5')]]:'%'+_0x8e264d[_0x1b5740('0x29')][_0x1b5740('0x2')]+'%'},_0x5670f3;}})}));_0x166d3a=_['merge']({},_0x166d3a,_0x8e264d[_0x3f6a9f('0x6')]);const _0x4587fe={'where':_0x166d3a[_0x3f6a9f('0xa')]};return db['VoiceQueueReport'][_0x3f6a9f('0x34')](_0x4587fe)[_0x3f6a9f('0x1c')](function(_0x3613ca){const _0x58a74c=_0x3f6a9f;return _0x362c77[_0x58a74c('0x34')]=_0x3613ca,_0x8e264d[_0x58a74c('0x29')]['includeAll']&&(_0x166d3a[_0x58a74c('0x31')]=[{'all':!![]}]),db[_0x58a74c('0x18')][_0x58a74c('0x12')](_0x166d3a);})['then'](function(_0x4d3772){const _0x59bf45=_0x3f6a9f;return _0x362c77[_0x59bf45('0x13')]=_0x4d3772,_0x362c77;})[_0x3f6a9f('0x1c')](respondWithFilteredResult(_0x4f1ebf,_0x166d3a))[_0x3f6a9f('0x33')](handleError(_0x4f1ebf,null));},exports[_0x547fe0('0x20')]=function(_0x35d7fa,_0x3753fc){const _0x2a30e7=_0x547fe0;let _0x22b142={'raw':![],'where':{'id':_0x35d7fa[_0x2a30e7('0x21')]['id']}};const _0x552712={};return _0x552712[_0x2a30e7('0x1e')]=_['keys'](db[_0x2a30e7('0x18')][_0x2a30e7('0x14')]),_0x552712[_0x2a30e7('0x29')]=_[_0x2a30e7('0xf')](_0x35d7fa['query']),_0x552712[_0x2a30e7('0x3')]=_[_0x2a30e7('0x15')](_0x552712[_0x2a30e7('0x1e')],_0x552712['query']),_0x22b142[_0x2a30e7('0x27')]=_['intersection'](_0x552712[_0x2a30e7('0x1e')],qs[_0x2a30e7('0x1')](_0x35d7fa[_0x2a30e7('0x29')][_0x2a30e7('0x1')])),_0x22b142[_0x2a30e7('0x27')]=_0x22b142[_0x2a30e7('0x27')]['length']?_0x22b142['attributes']:_0x552712[_0x2a30e7('0x1e')],_0x35d7fa[_0x2a30e7('0x29')][_0x2a30e7('0x2d')]&&(_0x22b142[_0x2a30e7('0x31')]=[{'all':!![]}]),_0x22b142=_[_0x2a30e7('0x30')]({},_0x22b142,_0x35d7fa['options']),db[_0x2a30e7('0x18')][_0x2a30e7('0x9')](_0x22b142)[_0x2a30e7('0x1c')](handleEntityNotFound(_0x3753fc,null))[_0x2a30e7('0x1c')](respondWithResult(_0x3753fc,null))[_0x2a30e7('0x33')](handleError(_0x3753fc,null));},exports[_0x547fe0('0x2f')]=function(_0x8f7cda,_0x18fa3d){const _0x17e4fa=_0x547fe0;return db['VoiceQueueReport'][_0x17e4fa('0x2f')](_0x8f7cda[_0x17e4fa('0x25')],{})[_0x17e4fa('0x1c')](respondWithResult(_0x18fa3d,0xc9))[_0x17e4fa('0x33')](handleError(_0x18fa3d,null));},exports['update']=function(_0xe069b6,_0x2007ca){const _0x406ff1=_0x547fe0;return _0xe069b6[_0x406ff1('0x25')]['id']&&delete _0xe069b6['body']['id'],db[_0x406ff1('0x18')][_0x406ff1('0x9')]({'where':{'id':_0xe069b6['params']['id']}})[_0x406ff1('0x1c')](handleEntityNotFound(_0x2007ca,null))[_0x406ff1('0x1c')](saveUpdates(_0xe069b6[_0x406ff1('0x25')],null))[_0x406ff1('0x1c')](respondWithResult(_0x2007ca,null))[_0x406ff1('0x33')](handleError(_0x2007ca,null));},exports[_0x547fe0('0xe')]=function(_0x23afde,_0x2ca5eb){const _0x1e07ab=_0x547fe0;return db[_0x1e07ab('0x18')][_0x1e07ab('0x9')]({'where':{'id':_0x23afde[_0x1e07ab('0x21')]['id']}})[_0x1e07ab('0x1c')](handleEntityNotFound(_0x2ca5eb,null))['then'](removeEntity(_0x2ca5eb,null))['catch'](handleError(_0x2ca5eb,null));},exports['describe']=function(_0x218e20,_0x5d075c){const _0x51d2f=_0x547fe0;return db[_0x51d2f('0x18')][_0x51d2f('0x26')]()[_0x51d2f('0x1c')](respondWithResult(_0x5d075c,null))['catch'](handleError(_0x5d075c,null));},exports['getVoiceQueuesReport']=function(_0x23eff7,_0x5a7f2d){const _0x375946=_0x547fe0;let _0x3ad6c6={};const _0x605480={},_0x2b56d6={'count':0x0,'rows':[]};_0x605480[_0x375946('0x1e')]=_[_0x375946('0xf')](db['VoiceQueueReport'][_0x375946('0x14')]),_0x605480[_0x375946('0x29')]=_[_0x375946('0xf')](_0x23eff7[_0x375946('0x29')]),_0x605480['filters']=_[_0x375946('0x15')](_0x605480[_0x375946('0x1e')],_0x605480['query']),_0x3ad6c6[_0x375946('0x27')]=_[_0x375946('0x15')](_0x605480[_0x375946('0x1e')],qs[_0x375946('0x1')](_0x23eff7['query']['fields'])),_0x3ad6c6[_0x375946('0x27')]=_0x3ad6c6['attributes'][_0x375946('0x7')]?_0x3ad6c6[_0x375946('0x27')]:_0x605480[_0x375946('0x1e')];typeof _0x23eff7[_0x375946('0x29')]['nolimit']==='undefined'&&(_0x3ad6c6[_0x375946('0x2c')]=qs[_0x375946('0x2c')](_0x23eff7[_0x375946('0x29')][_0x375946('0x2c')]),_0x3ad6c6['offset']=qs[_0x375946('0xd')](_0x23eff7['query'][_0x375946('0xd')]));_0x3ad6c6['order']=qs[_0x375946('0x2e')](_0x23eff7[_0x375946('0x29')][_0x375946('0x2e')]),_0x3ad6c6['where']=qs[_0x375946('0x3')](_['pick'](_0x23eff7[_0x375946('0x29')],_0x605480[_0x375946('0x3')]));_0x23eff7['query'][_0x375946('0x2')]&&(_0x3ad6c6[_0x375946('0xa')]=_[_0x375946('0x30')](_0x3ad6c6[_0x375946('0xa')],{[Op['or']]:_[_0x375946('0x16')](_0x3ad6c6[_0x375946('0x27')],function(_0x433ce5){const _0x3a921c=_0x375946,_0x106b93={};return _0x106b93[_0x433ce5]={[Op[_0x3a921c('0x5')]]:'%'+_0x23eff7[_0x3a921c('0x29')][_0x3a921c('0x2')]+'%'},_0x106b93;})}));_0x3ad6c6=_['merge']({},_0x3ad6c6,_0x23eff7[_0x375946('0x6')]);const _0x3ec28c={'where':_0x3ad6c6[_0x375946('0xa')]};return db['VoiceQueueReport']['count'](_0x3ec28c)[_0x375946('0x1c')](function(_0x22e279){const _0x3cd6f6=_0x375946;return _0x2b56d6['count']=_0x22e279,_0x23eff7[_0x3cd6f6('0x29')][_0x3cd6f6('0x2d')]&&(_0x3ad6c6[_0x3cd6f6('0x31')]=[{'all':!![]}]),db['VoiceQueueReport'][_0x3cd6f6('0x12')](_0x3ad6c6);})[_0x375946('0x1c')](function(_0x4cba09){const _0x1d6398=_0x375946;return _0x2b56d6[_0x1d6398('0x13')]=_0x4cba09,_0x2b56d6;})[_0x375946('0x1c')](respondWithFilteredResult(_0x5a7f2d,_0x3ad6c6,_0x375946('0x11')))[_0x375946('0x33')](handleError(_0x5a7f2d,null,'getVoiceQueuesReport'));}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.events.js b/server/api/voiceQueueReport/voiceQueueReport.events.js index 845e231..d0f5e0e 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.events.js +++ b/server/api/voiceQueueReport/voiceQueueReport.events.js @@ -1 +1 @@ -const a761_0x4762=['../../mysqldb','VoiceQueueReport','save','emit','addHook','events','update'];(function(_0x46310e,_0x476212){const _0x32f412=function(_0x4b571f){while(--_0x4b571f){_0x46310e['push'](_0x46310e['shift']());}};_0x32f412(++_0x476212);}(a761_0x4762,0x10a));const a761_0x32f4=function(_0x46310e,_0x476212){_0x46310e=_0x46310e-0x0;let _0x32f412=a761_0x4762[_0x46310e];return _0x32f412;};const _0x529694=a761_0x32f4;'use strict';const EventEmitter=require(_0x529694('0x5')),VoiceQueueReport=require(_0x529694('0x0'))['db'][_0x529694('0x1')],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x529694('0x2'),'afterUpdate':_0x529694('0x6'),'afterDestroy':'remove'};function emitEvent(_0x4b571f){return function(_0x464d65){const _0x57b407=a761_0x32f4;VoiceQueueReportEvents[_0x57b407('0x3')](_0x4b571f+':'+_0x464d65['id'],_0x464d65),VoiceQueueReportEvents[_0x57b407('0x3')](_0x4b571f,_0x464d65);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];VoiceQueueReport[_0x529694('0x4')](e,emitEvent(event));}}module['exports']=VoiceQueueReportEvents; \ No newline at end of file +const a761_0x207f=['../../mysqldb','exports','VoiceQueueReport','events','undefined','emit','remove','setMaxListeners','save','update'];(function(_0x2d7a48,_0x207f57){const _0x17e94e=function(_0x52265f){while(--_0x52265f){_0x2d7a48['push'](_0x2d7a48['shift']());}};_0x17e94e(++_0x207f57);}(a761_0x207f,0x7b));const a761_0x17e9=function(_0x2d7a48,_0x207f57){_0x2d7a48=_0x2d7a48-0x0;let _0x17e94e=a761_0x207f[_0x2d7a48];return _0x17e94e;};const _0x128cf6=a761_0x17e9;'use strict';const EventEmitter=require(_0x128cf6('0x0')),VoiceQueueReport=require(_0x128cf6('0x7'))['db'][_0x128cf6('0x9')],VoiceQueueReportEvents=new EventEmitter();VoiceQueueReportEvents[_0x128cf6('0x4')](0x0);const events={'afterCreate':_0x128cf6('0x5'),'afterUpdate':_0x128cf6('0x6'),'afterDestroy':_0x128cf6('0x3')};function emitEvent(_0x52265f){return function(_0x52b393){const _0x15c941=a761_0x17e9;VoiceQueueReportEvents[_0x15c941('0x2')](_0x52265f+':'+_0x52b393['id'],_0x52b393),VoiceQueueReportEvents[_0x15c941('0x2')](_0x52265f,_0x52b393);};}for(const e in events){if(typeof events[e]!==_0x128cf6('0x1')){const event=events[e];VoiceQueueReport['addHook'](e,emitEvent(event));}}module[_0x128cf6('0x8')]=VoiceQueueReportEvents; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.model.js b/server/api/voiceQueueReport/voiceQueueReport.model.js index f102afd..2af5f74 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.model.js +++ b/server/api/voiceQueueReport/voiceQueueReport.model.js @@ -1 +1 @@ -const a762_0x41f4=['uniqueid','exports','calleridnum','report_queue','define','VoiceQueueReport'];(function(_0x3dad69,_0x41f41e){const _0x2a29fe=function(_0x11aeda){while(--_0x11aeda){_0x3dad69['push'](_0x3dad69['shift']());}};_0x2a29fe(++_0x41f41e);}(a762_0x41f4,0xc7));const a762_0x2a29=function(_0x3dad69,_0x41f41e){_0x3dad69=_0x3dad69-0x0;let _0x2a29fe=a762_0x41f4[_0x3dad69];return _0x2a29fe;};const _0x18dcd7=a762_0x2a29;'use strict';const attributes=require('./voiceQueueReport.attributes');module[_0x18dcd7('0x0')]=function(_0x11aeda){const _0x70883f=_0x18dcd7,_0x4c7b75=_0x11aeda[_0x70883f('0x3')](_0x70883f('0x4'),attributes,{'tableName':_0x70883f('0x2'),'paranoid':![],'indexes':[{'fields':[_0x70883f('0x5')]},{'fields':[_0x70883f('0x1')]}],'timestamps':!![]});return _0x4c7b75;}; \ No newline at end of file +const a762_0x4629=['./voiceQueueReport.attributes','calleridnum','VoiceQueueReport','report_queue','uniqueid','define'];(function(_0x45a01f,_0x46293c){const _0x297ddb=function(_0x376c87){while(--_0x376c87){_0x45a01f['push'](_0x45a01f['shift']());}};_0x297ddb(++_0x46293c);}(a762_0x4629,0xb0));const a762_0x297d=function(_0x45a01f,_0x46293c){_0x45a01f=_0x45a01f-0x0;let _0x297ddb=a762_0x4629[_0x45a01f];return _0x297ddb;};const _0x5b8eb1=a762_0x297d;'use strict';const attributes=require(_0x5b8eb1('0x4'));module['exports']=function(_0x376c87){const _0x49aa7e=_0x5b8eb1,_0x36c3b2=_0x376c87[_0x49aa7e('0x3')](_0x49aa7e('0x0'),attributes,{'tableName':_0x49aa7e('0x1'),'paranoid':![],'indexes':[{'fields':[_0x49aa7e('0x2')]},{'fields':[_0x49aa7e('0x5')]}],'timestamps':!![]});return _0x36c3b2;}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.rpc.js b/server/api/voiceQueueReport/voiceQueueReport.rpc.js index b12ee40..5417eff 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.rpc.js +++ b/server/api/voiceQueueReport/voiceQueueReport.rpc.js @@ -1 +1 @@ -const a763_0x1fbd=['body','UpdateVoiceQueueReport','lodash','update','register','info','stringify','debug','GetVoiceQueueReport','attributes','include','then','./voiceQueueReport.socket','create','findAll','where','message','VoiceQueueReport','map','CreateVoiceQueueReport','rpc','options','catch','error','raw','model','../../rediscache','limit','../../mysqldb'];(function(_0x325091,_0x1fbde3){const _0x2744e3=function(_0x152c69){while(--_0x152c69){_0x325091['push'](_0x325091['shift']());}};_0x2744e3(++_0x1fbde3);}(a763_0x1fbd,0x1c5));const a763_0x2744=function(_0x325091,_0x1fbde3){_0x325091=_0x325091-0x0;let _0x2744e3=a763_0x1fbd[_0x325091];return _0x2744e3;};const _0x791d5c=a763_0x2744;'use strict';const _=require(_0x791d5c('0xd')),db=require(_0x791d5c('0xa'))['db'],logger=require('../../config/logger')(_0x791d5c('0x2')),{getSocket}=require(_0x791d5c('0x8')),socket=getSocket();require(_0x791d5c('0x17'))[_0x791d5c('0xf')](socket),exports['GetVoiceQueueReport']=function(_0x152c69){const _0x5669e8=this;return new Promise(function(_0x3b372d,_0x5d5134){const _0x26a673=a763_0x2744;return db['VoiceQueueReport'][_0x26a673('0x19')]({'raw':_0x152c69['options']?_0x152c69[_0x26a673('0x3')]['raw']===undefined?!![]:![]:!![],'where':_0x152c69[_0x26a673('0x3')]?_0x152c69[_0x26a673('0x3')][_0x26a673('0x1a')]||null:null,'attributes':_0x152c69[_0x26a673('0x3')]?_0x152c69[_0x26a673('0x3')][_0x26a673('0x14')]||null:null,'limit':_0x152c69['options']?_0x152c69['options'][_0x26a673('0x9')]||null:null,'include':_0x152c69[_0x26a673('0x3')]?_0x152c69[_0x26a673('0x3')]['include']?_[_0x26a673('0x0')](_0x152c69[_0x26a673('0x3')]['include'],function(_0x46e15b){const _0x3faf19=_0x26a673;return{'model':db[_0x46e15b[_0x3faf19('0x7')]],'as':_0x46e15b['as'],'attributes':_0x46e15b['attributes'],'include':_0x46e15b[_0x3faf19('0x15')]?_['map'](_0x46e15b[_0x3faf19('0x15')],function(_0x22974b){const _0x237af5=_0x3faf19;return{'model':db[_0x22974b['model']],'as':_0x22974b['as'],'attributes':_0x22974b[_0x237af5('0x14')],'include':_0x22974b[_0x237af5('0x15')]?_['map'](_0x22974b['include'],function(_0x4455f3){const _0x208ee7=_0x237af5;return{'model':db[_0x4455f3[_0x208ee7('0x7')]],'as':_0x4455f3['as'],'attributes':_0x4455f3[_0x208ee7('0x14')]};}):[]};}):[]};}):[]:[]})[_0x26a673('0x16')](function(_0x48ae0a){const _0x440477=_0x26a673;logger['info'](_0x440477('0x13'),_0x152c69),logger['debug'](_0x440477('0x13'),_0x152c69,JSON['stringify'](_0x48ae0a)),_0x3b372d(_0x48ae0a);})[_0x26a673('0x4')](function(_0x37cd0b){const _0x3da8cd=_0x26a673;logger[_0x3da8cd('0x5')](_0x3da8cd('0x13'),_0x37cd0b['message'],_0x152c69),_0x5d5134(_0x5669e8['error'](0x1f4,_0x37cd0b[_0x3da8cd('0x1b')]));});});},exports[_0x791d5c('0x1')]=function(_0x316071){const _0x1559c8=this;return new Promise(function(_0x5af0eb,_0x45045b){const _0x34e0de=a763_0x2744;return db[_0x34e0de('0x1c')][_0x34e0de('0x18')](_0x316071['body'],{'raw':_0x316071[_0x34e0de('0x3')]?_0x316071[_0x34e0de('0x3')][_0x34e0de('0x6')]===undefined?!![]:![]:!![]})[_0x34e0de('0x16')](function(_0x45df2f){const _0x5222bd=_0x34e0de;logger[_0x5222bd('0x10')](_0x5222bd('0x1'),_0x316071),logger[_0x5222bd('0x12')](_0x5222bd('0x1'),_0x316071,JSON[_0x5222bd('0x11')](_0x45df2f)),_0x5af0eb(_0x45df2f);})[_0x34e0de('0x4')](function(_0x1224ce){const _0x3f70fe=_0x34e0de;logger[_0x3f70fe('0x5')](_0x3f70fe('0x1'),_0x1224ce[_0x3f70fe('0x1b')],_0x316071),_0x45045b(_0x1559c8['error'](0x1f4,_0x1224ce[_0x3f70fe('0x1b')]));});});},exports[_0x791d5c('0xc')]=function(_0x31ff49){const _0x29113b=this;return new Promise(function(_0x88745f,_0x38dbac){const _0x427e45=a763_0x2744;return db[_0x427e45('0x1c')][_0x427e45('0xe')](_0x31ff49[_0x427e45('0xb')],{'raw':_0x31ff49[_0x427e45('0x3')]?_0x31ff49[_0x427e45('0x3')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x31ff49[_0x427e45('0x3')]?_0x31ff49[_0x427e45('0x3')][_0x427e45('0x1a')]||null:null,'attributes':_0x31ff49[_0x427e45('0x3')]?_0x31ff49[_0x427e45('0x3')][_0x427e45('0x14')]||null:null,'limit':_0x31ff49[_0x427e45('0x3')]?_0x31ff49['options']['limit']||null:null})[_0x427e45('0x16')](function(_0x489715){const _0x443161=_0x427e45;logger[_0x443161('0x10')](_0x443161('0xc'),_0x31ff49),logger[_0x443161('0x12')](_0x443161('0xc'),_0x31ff49,JSON[_0x443161('0x11')](_0x489715)),_0x88745f(_0x489715);})[_0x427e45('0x4')](function(_0x147bc4){const _0x14fe0f=_0x427e45;logger['error'](_0x14fe0f('0xc'),_0x147bc4[_0x14fe0f('0x1b')],_0x31ff49),_0x38dbac(_0x29113b[_0x14fe0f('0x5')](0x1f4,_0x147bc4['message']));});});}; \ No newline at end of file +const a763_0x162d=['options','body','model','include','../../mysqldb','error','../../config/logger','limit','./voiceQueueReport.socket','CreateVoiceQueueReport','attributes','VoiceQueueReport','map','raw','GetVoiceQueueReport','lodash','where','UpdateVoiceQueueReport','info','catch','debug','stringify','update','message','then'];(function(_0x50d02e,_0x162dea){const _0x1e2baa=function(_0x5f466b){while(--_0x5f466b){_0x50d02e['push'](_0x50d02e['shift']());}};_0x1e2baa(++_0x162dea);}(a763_0x162d,0x7e));const a763_0x1e2b=function(_0x50d02e,_0x162dea){_0x50d02e=_0x50d02e-0x0;let _0x1e2baa=a763_0x162d[_0x50d02e];return _0x1e2baa;};const _0x64e14e=a763_0x1e2b;'use strict';const _=require(_0x64e14e('0xe')),db=require(_0x64e14e('0x3'))['db'],logger=require(_0x64e14e('0x5'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x64e14e('0x7'))['register'](socket),exports[_0x64e14e('0xd')]=function(_0x5f466b){const _0xfdc4c7=this;return new Promise(function(_0x1ad23a,_0x4fc1c3){const _0x1e87af=a763_0x1e2b;return db[_0x1e87af('0xa')]['findAll']({'raw':_0x5f466b[_0x1e87af('0x18')]?_0x5f466b['options']['raw']===undefined?!![]:![]:!![],'where':_0x5f466b[_0x1e87af('0x18')]?_0x5f466b['options'][_0x1e87af('0xf')]||null:null,'attributes':_0x5f466b['options']?_0x5f466b[_0x1e87af('0x18')][_0x1e87af('0x9')]||null:null,'limit':_0x5f466b[_0x1e87af('0x18')]?_0x5f466b[_0x1e87af('0x18')][_0x1e87af('0x6')]||null:null,'include':_0x5f466b[_0x1e87af('0x18')]?_0x5f466b['options']['include']?_[_0x1e87af('0xb')](_0x5f466b[_0x1e87af('0x18')][_0x1e87af('0x2')],function(_0x57dc0b){const _0x23101f=_0x1e87af;return{'model':db[_0x57dc0b['model']],'as':_0x57dc0b['as'],'attributes':_0x57dc0b[_0x23101f('0x9')],'include':_0x57dc0b[_0x23101f('0x2')]?_[_0x23101f('0xb')](_0x57dc0b[_0x23101f('0x2')],function(_0x355846){const _0x54ce03=_0x23101f;return{'model':db[_0x355846[_0x54ce03('0x1')]],'as':_0x355846['as'],'attributes':_0x355846['attributes'],'include':_0x355846[_0x54ce03('0x2')]?_[_0x54ce03('0xb')](_0x355846[_0x54ce03('0x2')],function(_0x1445ce){const _0x10a8a1=_0x54ce03;return{'model':db[_0x1445ce[_0x10a8a1('0x1')]],'as':_0x1445ce['as'],'attributes':_0x1445ce[_0x10a8a1('0x9')]};}):[]};}):[]};}):[]:[]})[_0x1e87af('0x17')](function(_0x17e360){const _0x9cb0d7=_0x1e87af;logger['info'](_0x9cb0d7('0xd'),_0x5f466b),logger['debug'](_0x9cb0d7('0xd'),_0x5f466b,JSON[_0x9cb0d7('0x14')](_0x17e360)),_0x1ad23a(_0x17e360);})[_0x1e87af('0x12')](function(_0x517bcf){const _0x60ff20=_0x1e87af;logger[_0x60ff20('0x4')](_0x60ff20('0xd'),_0x517bcf[_0x60ff20('0x16')],_0x5f466b),_0x4fc1c3(_0xfdc4c7[_0x60ff20('0x4')](0x1f4,_0x517bcf[_0x60ff20('0x16')]));});});},exports[_0x64e14e('0x8')]=function(_0x5d9796){const _0xa4edb0=this;return new Promise(function(_0x4e51b1,_0x14fdd1){const _0x169d2b=a763_0x1e2b;return db['VoiceQueueReport']['create'](_0x5d9796[_0x169d2b('0x0')],{'raw':_0x5d9796[_0x169d2b('0x18')]?_0x5d9796[_0x169d2b('0x18')][_0x169d2b('0xc')]===undefined?!![]:![]:!![]})[_0x169d2b('0x17')](function(_0x3a6cc2){const _0x232213=_0x169d2b;logger[_0x232213('0x11')]('CreateVoiceQueueReport',_0x5d9796),logger[_0x232213('0x13')]('CreateVoiceQueueReport',_0x5d9796,JSON['stringify'](_0x3a6cc2)),_0x4e51b1(_0x3a6cc2);})[_0x169d2b('0x12')](function(_0x3e5d43){const _0x521d1d=_0x169d2b;logger[_0x521d1d('0x4')]('CreateVoiceQueueReport',_0x3e5d43[_0x521d1d('0x16')],_0x5d9796),_0x14fdd1(_0xa4edb0[_0x521d1d('0x4')](0x1f4,_0x3e5d43[_0x521d1d('0x16')]));});});},exports[_0x64e14e('0x10')]=function(_0x4d0eeb){const _0x41c03a=this;return new Promise(function(_0x5cf16f,_0x1886c7){const _0x2458b8=a763_0x1e2b;return db[_0x2458b8('0xa')][_0x2458b8('0x15')](_0x4d0eeb['body'],{'raw':_0x4d0eeb[_0x2458b8('0x18')]?_0x4d0eeb[_0x2458b8('0x18')][_0x2458b8('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x4d0eeb[_0x2458b8('0x18')]?_0x4d0eeb[_0x2458b8('0x18')][_0x2458b8('0xf')]||null:null,'attributes':_0x4d0eeb[_0x2458b8('0x18')]?_0x4d0eeb[_0x2458b8('0x18')]['attributes']||null:null,'limit':_0x4d0eeb[_0x2458b8('0x18')]?_0x4d0eeb[_0x2458b8('0x18')][_0x2458b8('0x6')]||null:null})[_0x2458b8('0x17')](function(_0x5266c2){const _0x2bb828=_0x2458b8;logger[_0x2bb828('0x11')]('UpdateVoiceQueueReport',_0x4d0eeb),logger[_0x2bb828('0x13')](_0x2bb828('0x10'),_0x4d0eeb,JSON['stringify'](_0x5266c2)),_0x5cf16f(_0x5266c2);})[_0x2458b8('0x12')](function(_0x34c5dd){const _0x263139=_0x2458b8;logger[_0x263139('0x4')](_0x263139('0x10'),_0x34c5dd[_0x263139('0x16')],_0x4d0eeb),_0x1886c7(_0x41c03a[_0x263139('0x4')](0x1f4,_0x34c5dd[_0x263139('0x16')]));});});}; \ No newline at end of file diff --git a/server/api/voiceQueueReport/voiceQueueReport.socket.js b/server/api/voiceQueueReport/voiceQueueReport.socket.js index 3f1fe26..5f71925 100644 --- a/server/api/voiceQueueReport/voiceQueueReport.socket.js +++ b/server/api/voiceQueueReport/voiceQueueReport.socket.js @@ -1 +1 @@ -const a764_0x2b62=['remove','emit','./voiceQueueReport.events','register','update','voiceQueueReport:','save'];(function(_0x50c88b,_0x2b6208){const _0x142f7f=function(_0x53dd23){while(--_0x53dd23){_0x50c88b['push'](_0x50c88b['shift']());}};_0x142f7f(++_0x2b6208);}(a764_0x2b62,0x1f4));const a764_0x142f=function(_0x50c88b,_0x2b6208){_0x50c88b=_0x50c88b-0x0;let _0x142f7f=a764_0x2b62[_0x50c88b];return _0x142f7f;};const _0x3ae510=a764_0x142f;'use strict';const VoiceQueueReportEvents=require(_0x3ae510('0x6')),events=[_0x3ae510('0x3'),_0x3ae510('0x4'),_0x3ae510('0x1')];function createListener(_0x53dd23,_0xd5ff7d){return function(_0x4c21fd){const _0x57bff2=a764_0x142f;_0xd5ff7d[_0x57bff2('0x5')](_0x53dd23,_0x4c21fd);};}exports[_0x3ae510('0x0')]=function(_0x1a53a8){const _0x421da9=_0x3ae510;for(let _0x5d5389=0x0,_0x2c2ee9=events['length'];_0x5d5389<_0x2c2ee9;_0x5d5389++){const _0x2620c9=events[_0x5d5389],_0x428d88=createListener(_0x421da9('0x2')+_0x2620c9,_0x1a53a8);VoiceQueueReportEvents['on'](_0x2620c9,_0x428d88);}}; \ No newline at end of file +const a764_0x2442=['voiceQueueReport:','emit','length','update','register','remove','save','./voiceQueueReport.events'];(function(_0x5a79d9,_0x244206){const _0x55a416=function(_0x3d80f3){while(--_0x3d80f3){_0x5a79d9['push'](_0x5a79d9['shift']());}};_0x55a416(++_0x244206);}(a764_0x2442,0xdb));const a764_0x55a4=function(_0x5a79d9,_0x244206){_0x5a79d9=_0x5a79d9-0x0;let _0x55a416=a764_0x2442[_0x5a79d9];return _0x55a416;};const _0x597f74=a764_0x55a4;'use strict';const VoiceQueueReportEvents=require(_0x597f74('0x4')),events=[_0x597f74('0x3'),_0x597f74('0x2'),_0x597f74('0x0')];function createListener(_0x3d80f3,_0x5f19b8){return function(_0xc87eeb){const _0x68b3a4=a764_0x55a4;_0x5f19b8[_0x68b3a4('0x6')](_0x3d80f3,_0xc87eeb);};}exports[_0x597f74('0x1')]=function(_0x5d02eb){const _0x3a9112=_0x597f74;for(let _0x45f20a=0x0,_0x5d6a0a=events[_0x3a9112('0x7')];_0x45f20a<_0x5d6a0a;_0x45f20a++){const _0x34a9e0=events[_0x45f20a],_0x429cd4=createListener(_0x3a9112('0x5')+_0x34a9e0,_0x5d02eb);VoiceQueueReportEvents['on'](_0x34a9e0,_0x429cd4);}}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/index.js b/server/api/voiceQueuesLog/index.js index 8114832..b4b16e4 100644 --- a/server/api/voiceQueuesLog/index.js +++ b/server/api/voiceQueuesLog/index.js @@ -1 +1 @@ -const a765_0x7957=['create','delete','show','exports','index','/:id','express','Router','get','isAuthenticated','post','destroy','put'];(function(_0x57dec8,_0x7957ea){const _0x369c9d=function(_0x2c1620){while(--_0x2c1620){_0x57dec8['push'](_0x57dec8['shift']());}};_0x369c9d(++_0x7957ea);}(a765_0x7957,0x1db));const a765_0x369c=function(_0x57dec8,_0x7957ea){_0x57dec8=_0x57dec8-0x0;let _0x369c9d=a765_0x7957[_0x57dec8];return _0x369c9d;};const _0x2f9915=a765_0x369c;'use strict';const express=require(_0x2f9915('0xc')),router=express[_0x2f9915('0x0')](),auth=require('../../components/auth/service'),controller=require('./voiceQueuesLog.controller');router['get']('/',auth[_0x2f9915('0x2')](),controller[_0x2f9915('0xa')]),router[_0x2f9915('0x1')](_0x2f9915('0xb'),auth[_0x2f9915('0x2')](),controller[_0x2f9915('0x8')]),router[_0x2f9915('0x3')]('/',auth[_0x2f9915('0x2')](),controller[_0x2f9915('0x6')]),router[_0x2f9915('0x5')](_0x2f9915('0xb'),auth[_0x2f9915('0x2')](),controller['update']),router[_0x2f9915('0x7')](_0x2f9915('0xb'),auth[_0x2f9915('0x2')](),controller[_0x2f9915('0x4')]),module[_0x2f9915('0x9')]=router; \ No newline at end of file +const a765_0x4311=['destroy','express','/:id','create','put','get','../../components/auth/service','post','delete','index','isAuthenticated'];(function(_0xc3a379,_0x431136){const _0x56ef32=function(_0x4d817a){while(--_0x4d817a){_0xc3a379['push'](_0xc3a379['shift']());}};_0x56ef32(++_0x431136);}(a765_0x4311,0xa2));const a765_0x56ef=function(_0xc3a379,_0x431136){_0xc3a379=_0xc3a379-0x0;let _0x56ef32=a765_0x4311[_0xc3a379];return _0x56ef32;};const _0x343a24=a765_0x56ef;'use strict';const express=require(_0x343a24('0x4')),router=express['Router'](),auth=require(_0x343a24('0x9')),controller=require('./voiceQueuesLog.controller');router[_0x343a24('0x8')]('/',auth[_0x343a24('0x2')](),controller[_0x343a24('0x1')]),router['get'](_0x343a24('0x5'),auth['isAuthenticated'](),controller['show']),router[_0x343a24('0xa')]('/',auth[_0x343a24('0x2')](),controller[_0x343a24('0x6')]),router[_0x343a24('0x7')](_0x343a24('0x5'),auth['isAuthenticated'](),controller['update']),router[_0x343a24('0x0')]('/:id',auth['isAuthenticated'](),controller[_0x343a24('0x3')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js index 0491c4e..1b295ad 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.attributes.js @@ -1 +1 @@ -const a766_0x1da8=['exports','sequelize','moment','STRING'];(function(_0x39c7f7,_0x1da89b){const _0x36227f=function(_0x445784){while(--_0x445784){_0x39c7f7['push'](_0x39c7f7['shift']());}};_0x36227f(++_0x1da89b);}(a766_0x1da8,0xa1));const a766_0x3622=function(_0x39c7f7,_0x1da89b){_0x39c7f7=_0x39c7f7-0x0;let _0x36227f=a766_0x1da8[_0x39c7f7];return _0x36227f;};const _0x1f968f=a766_0x3622;'use strict';const Sequelize=require(_0x1f968f('0x0')),moment=require(_0x1f968f('0x1'));module[_0x1f968f('0x3')]={'time':{'type':Sequelize[_0x1f968f('0x2')]},'callid':{'type':Sequelize[_0x1f968f('0x2')],'allowNull':![],'defaultValue':''},'queuename':{'type':Sequelize[_0x1f968f('0x2')],'allowNull':![],'defaultValue':''},'agent':{'type':Sequelize[_0x1f968f('0x2')],'allowNull':![],'defaultValue':''},'event':{'type':Sequelize[_0x1f968f('0x2')],'allowNull':![],'defaultValue':''},'data':{'type':Sequelize[_0x1f968f('0x2')],'allowNull':![],'defaultValue':''},'data1':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data2':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data3':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data4':{'type':Sequelize[_0x1f968f('0x2')],'allowNull':![],'defaultValue':''},'data5':{'type':Sequelize[_0x1f968f('0x2')],'allowNull':![],'defaultValue':''},'dtm':{'type':Sequelize['DATE'],'allowNull':![],'defaultValue':moment()['format']('YYYY-MM-DD\x20HH:mm:ss')}}; \ No newline at end of file +const a766_0x5c2f=['DATE','YYYY-MM-DD\x20HH:mm:ss','format','STRING','exports'];(function(_0x2702c3,_0x5c2fa4){const _0x100912=function(_0x4c9f8b){while(--_0x4c9f8b){_0x2702c3['push'](_0x2702c3['shift']());}};_0x100912(++_0x5c2fa4);}(a766_0x5c2f,0xfd));const a766_0x1009=function(_0x2702c3,_0x5c2fa4){_0x2702c3=_0x2702c3-0x0;let _0x100912=a766_0x5c2f[_0x2702c3];return _0x100912;};const _0x23f934=a766_0x1009;'use strict';const Sequelize=require('sequelize'),moment=require('moment');module[_0x23f934('0x1')]={'time':{'type':Sequelize[_0x23f934('0x0')]},'callid':{'type':Sequelize[_0x23f934('0x0')],'allowNull':![],'defaultValue':''},'queuename':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'agent':{'type':Sequelize[_0x23f934('0x0')],'allowNull':![],'defaultValue':''},'event':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':''},'data':{'type':Sequelize[_0x23f934('0x0')],'allowNull':![],'defaultValue':''},'data1':{'type':Sequelize[_0x23f934('0x0')],'allowNull':![],'defaultValue':''},'data2':{'type':Sequelize[_0x23f934('0x0')],'allowNull':![],'defaultValue':''},'data3':{'type':Sequelize[_0x23f934('0x0')],'allowNull':![],'defaultValue':''},'data4':{'type':Sequelize[_0x23f934('0x0')],'allowNull':![],'defaultValue':''},'data5':{'type':Sequelize[_0x23f934('0x0')],'allowNull':![],'defaultValue':''},'dtm':{'type':Sequelize[_0x23f934('0x2')],'allowNull':![],'defaultValue':moment()[_0x23f934('0x4')](_0x23f934('0x3'))}}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js index bcd9d09..c0b0f48 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.controller.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.controller.js @@ -1 +1 @@ -const a767_0xe030=['key','VIRTUAL','params','sort','findOne','type','index','intersection','show','findAll','like','fields','include','status','sequelize','../../mysqldb','query','sendStatus','set','fieldName','nolimit','includeAll','../../components/parsers/qs','length','count','catch','attributes','rawAttributes','keys','lodash','filter','VoiceQueuesLog','name','api','stack','body','destroy','../../config/logger','model','error','create','Content-Range','where','rows','pick','options','map','filters','json','merge','then','offset'];(function(_0x5234e8,_0xe03013){const _0x54cf4c=function(_0x685765){while(--_0x685765){_0x5234e8['push'](_0x5234e8['shift']());}};_0x54cf4c(++_0xe03013);}(a767_0xe030,0x8f));const a767_0x54cf=function(_0x5234e8,_0xe03013){_0x5234e8=_0x5234e8-0x0;let _0x54cf4c=a767_0xe030[_0x5234e8];return _0x54cf4c;};const _0x11b4d9=a767_0x54cf;'use strict';const _=require(_0x11b4d9('0x2a')),qs=require(_0x11b4d9('0x23')),logger=require(_0x11b4d9('0x32'))(_0x11b4d9('0x2e')),db=require(_0x11b4d9('0x1c'))['db'],{Op}=require(_0x11b4d9('0x1b'));function respondWithResult(_0x685765,_0x544cc5){return _0x544cc5=_0x544cc5||0xc8,function(_0x4b4930){if(_0x4b4930)return _0x685765['status'](_0x544cc5)['json'](_0x4b4930);};}function respondWithFilteredResult(_0x5bfcfa,_0x2f16ed){return function(_0x1c6ddd){const _0x3024a9=a767_0x54cf;if(_0x1c6ddd){const _0x3ad482=_0x1c6ddd[_0x3024a9('0x25')],_0x4da8d6=_0x2f16ed[_0x3024a9('0xc')];let _0x5466aa=_0x2f16ed[_0x3024a9('0xc')]+_0x2f16ed['limit'],_0x22d7ad;return _0x5466aa>=_0x3ad482?(_0x5466aa=_0x3ad482,_0x22d7ad=0xc8):_0x22d7ad=0xce,_0x5bfcfa[_0x3024a9('0x1a')](_0x22d7ad),_0x5bfcfa[_0x3024a9('0x1f')](_0x3024a9('0x2'),_0x4da8d6+'-'+_0x5466aa+'/'+_0x3ad482)[_0x3024a9('0x9')](_0x1c6ddd);}return null;};}function saveUpdates(_0x3b455d){return function(_0xed8b46){const _0x44e15a=a767_0x54cf;if(_0xed8b46)return _0xed8b46['update'](_0x3b455d)[_0x44e15a('0xb')](function(_0x361d1d){return _0x361d1d;});return null;};}function removeEntity(_0x173d6c){return function(_0x5ed57c){const _0x537543=a767_0x54cf;if(_0x5ed57c)return _0x5ed57c[_0x537543('0x31')]()['then'](function(){const _0x149c2e=_0x537543;_0x173d6c[_0x149c2e('0x1a')](0xcc)['end']();});};}function handleEntityNotFound(_0x520f2d){return function(_0x23235f){const _0x16b405=a767_0x54cf;return!_0x23235f&&_0x520f2d[_0x16b405('0x1e')](0x194),_0x23235f;};}function handleError(_0x43c224,_0x407279){return _0x407279=_0x407279||0x1f4,function(_0x3b171d){const _0x1bf162=a767_0x54cf;logger[_0x1bf162('0x0')](_0x3b171d[_0x1bf162('0x2f')]),_0x3b171d[_0x1bf162('0x2d')]&&delete _0x3b171d[_0x1bf162('0x2d')],_0x43c224[_0x1bf162('0x1a')](_0x407279)['send'](_0x3b171d);};}exports[_0x11b4d9('0x13')]=function(_0x46fc6d,_0x3dc4f3){const _0x57776e=_0x11b4d9;let _0x524746={};const _0x2014da={},_0x39c861={'count':0x0,'rows':[]},_0x2947d0=_[_0x57776e('0x7')](db[_0x57776e('0x2c')]['rawAttributes'],function(_0x58849e){const _0x266a73=_0x57776e;return{'name':_0x58849e[_0x266a73('0x20')],'type':_0x58849e[_0x266a73('0x12')][_0x266a73('0xd')]};});_0x2014da[_0x57776e('0x33')]=_[_0x57776e('0x7')](_0x2947d0,_0x57776e('0x2d')),_0x2014da[_0x57776e('0x1d')]=_[_0x57776e('0x29')](_0x46fc6d[_0x57776e('0x1d')]),_0x2014da[_0x57776e('0x8')]=_[_0x57776e('0x14')](_0x2014da[_0x57776e('0x33')],_0x2014da[_0x57776e('0x1d')]),_0x524746[_0x57776e('0x27')]=_[_0x57776e('0x14')](_0x2014da[_0x57776e('0x33')],qs['fields'](_0x46fc6d['query'][_0x57776e('0x18')])),_0x524746[_0x57776e('0x27')]=_0x524746[_0x57776e('0x27')][_0x57776e('0x24')]?_0x524746[_0x57776e('0x27')]:_0x2014da[_0x57776e('0x33')];typeof _0x46fc6d[_0x57776e('0x1d')][_0x57776e('0x21')]==='undefined'&&(_0x524746['limit']=qs['limit'](_0x46fc6d[_0x57776e('0x1d')]['limit']),_0x524746['offset']=qs[_0x57776e('0xc')](_0x46fc6d['query'][_0x57776e('0xc')]));_0x524746['order']=qs[_0x57776e('0x10')](_0x46fc6d[_0x57776e('0x1d')][_0x57776e('0x10')]),_0x524746[_0x57776e('0x3')]=qs['filters'](_[_0x57776e('0x5')](_0x46fc6d[_0x57776e('0x1d')],_0x2014da['filters']),_0x2947d0);_0x46fc6d['query'][_0x57776e('0x2b')]&&(_0x524746[_0x57776e('0x3')]=_[_0x57776e('0xa')](_0x524746['where'],{[Op['or']]:_[_0x57776e('0x7')](_0x2947d0,function(_0x46c26f){const _0xd74988=_0x57776e;if(_0x46c26f[_0xd74988('0x12')]!==_0xd74988('0xe')){const _0x2bdace={};return _0x2bdace[_0x46c26f[_0xd74988('0x2d')]]={[Op[_0xd74988('0x17')]]:'%'+_0x46fc6d[_0xd74988('0x1d')]['filter']+'%'},_0x2bdace;}})}));_0x524746=_[_0x57776e('0xa')]({},_0x524746,_0x46fc6d[_0x57776e('0x6')]);const _0x205f04={'where':_0x524746[_0x57776e('0x3')]};return db[_0x57776e('0x2c')][_0x57776e('0x25')](_0x205f04)['then'](function(_0x541ca7){const _0x2d5c12=_0x57776e;return _0x39c861[_0x2d5c12('0x25')]=_0x541ca7,_0x46fc6d[_0x2d5c12('0x1d')]['includeAll']&&(_0x524746[_0x2d5c12('0x19')]=[{'all':!![]}]),db['VoiceQueuesLog'][_0x2d5c12('0x16')](_0x524746);})[_0x57776e('0xb')](function(_0x128a17){const _0x9bdf2f=_0x57776e;return _0x39c861[_0x9bdf2f('0x4')]=_0x128a17,_0x39c861;})[_0x57776e('0xb')](respondWithFilteredResult(_0x3dc4f3,_0x524746))[_0x57776e('0x26')](handleError(_0x3dc4f3,null));},exports[_0x11b4d9('0x15')]=function(_0x140320,_0x44ca36){const _0x12c3fa=_0x11b4d9;let _0x3de625={'raw':!![],'where':{'id':_0x140320[_0x12c3fa('0xf')]['id']}};const _0x56115d={};return _0x56115d['model']=_[_0x12c3fa('0x29')](db['VoiceQueuesLog'][_0x12c3fa('0x28')]),_0x56115d['query']=_[_0x12c3fa('0x29')](_0x140320[_0x12c3fa('0x1d')]),_0x56115d[_0x12c3fa('0x8')]=_[_0x12c3fa('0x14')](_0x56115d[_0x12c3fa('0x33')],_0x56115d[_0x12c3fa('0x1d')]),_0x3de625[_0x12c3fa('0x27')]=_['intersection'](_0x56115d[_0x12c3fa('0x33')],qs[_0x12c3fa('0x18')](_0x140320[_0x12c3fa('0x1d')][_0x12c3fa('0x18')])),_0x3de625['attributes']=_0x3de625['attributes'][_0x12c3fa('0x24')]?_0x3de625[_0x12c3fa('0x27')]:_0x56115d['model'],_0x140320[_0x12c3fa('0x1d')][_0x12c3fa('0x22')]&&(_0x3de625[_0x12c3fa('0x19')]=[{'all':!![]}]),_0x3de625=_[_0x12c3fa('0xa')]({},_0x3de625,_0x140320['options']),db[_0x12c3fa('0x2c')][_0x12c3fa('0x11')](_0x3de625)['then'](handleEntityNotFound(_0x44ca36,null))[_0x12c3fa('0xb')](respondWithResult(_0x44ca36,null))[_0x12c3fa('0x26')](handleError(_0x44ca36,null));},exports['create']=function(_0x353b5f,_0x11cd81){const _0x57a085=_0x11b4d9;return db['VoiceQueuesLog'][_0x57a085('0x1')](_0x353b5f['body'],{})[_0x57a085('0xb')](respondWithResult(_0x11cd81,0xc9))['catch'](handleError(_0x11cd81,null));},exports['update']=function(_0x5c9ee1,_0x57ef52){const _0x1efc96=_0x11b4d9;return _0x5c9ee1[_0x1efc96('0x30')]['id']&&delete _0x5c9ee1[_0x1efc96('0x30')]['id'],db[_0x1efc96('0x2c')][_0x1efc96('0x11')]({'where':{'id':_0x5c9ee1[_0x1efc96('0xf')]['id']}})[_0x1efc96('0xb')](handleEntityNotFound(_0x57ef52,null))['then'](saveUpdates(_0x5c9ee1['body'],null))['then'](respondWithResult(_0x57ef52,null))['catch'](handleError(_0x57ef52,null));},exports[_0x11b4d9('0x31')]=function(_0x1fb356,_0x832e57){const _0x127196=_0x11b4d9;return db[_0x127196('0x2c')]['findOne']({'where':{'id':_0x1fb356[_0x127196('0xf')]['id']}})[_0x127196('0xb')](handleEntityNotFound(_0x832e57,null))[_0x127196('0xb')](removeEntity(_0x832e57,null))[_0x127196('0x26')](handleError(_0x832e57,null));}; \ No newline at end of file +const a767_0x12f2=['attributes','update','include','then','map','length','stack','error','filter','sort','where','keys','query','../../components/parsers/qs','status','Content-Range','undefined','../../mysqldb','rows','lodash','findOne','type','params','offset','key','limit','destroy','fieldName','fields','name','intersection','rawAttributes','merge','model','index','count','send','findAll','VoiceQueuesLog','options','end','catch','json','body','api','create','filters','VIRTUAL'];(function(_0x198bd2,_0x12f254){const _0x589210=function(_0x1dafbb){while(--_0x1dafbb){_0x198bd2['push'](_0x198bd2['shift']());}};_0x589210(++_0x12f254);}(a767_0x12f2,0x164));const a767_0x5892=function(_0x198bd2,_0x12f254){_0x198bd2=_0x198bd2-0x0;let _0x589210=a767_0x12f2[_0x198bd2];return _0x589210;};const _0x5b5fe8=a767_0x5892;'use strict';const _=require(_0x5b5fe8('0x2f')),qs=require(_0x5b5fe8('0x29')),logger=require('../../config/logger')(_0x5b5fe8('0x18')),db=require(_0x5b5fe8('0x2d'))['db'],{Op}=require('sequelize');function respondWithResult(_0x1dafbb,_0x374fb8){return _0x374fb8=_0x374fb8||0xc8,function(_0x4228f7){const _0x4415b6=a767_0x5892;if(_0x4228f7)return _0x1dafbb[_0x4415b6('0x2a')](_0x374fb8)['json'](_0x4228f7);};}function respondWithFilteredResult(_0x5e975d,_0x5e3ceb){return function(_0x138c14){const _0x27a9c=a767_0x5892;if(_0x138c14){const _0x456ac4=_0x138c14[_0x27a9c('0xf')],_0x56099b=_0x5e3ceb[_0x27a9c('0x3')];let _0x2b649c=_0x5e3ceb[_0x27a9c('0x3')]+_0x5e3ceb[_0x27a9c('0x5')],_0x2a68c6;return _0x2b649c>=_0x456ac4?(_0x2b649c=_0x456ac4,_0x2a68c6=0xc8):_0x2a68c6=0xce,_0x5e975d[_0x27a9c('0x2a')](_0x2a68c6),_0x5e975d['set'](_0x27a9c('0x2b'),_0x56099b+'-'+_0x2b649c+'/'+_0x456ac4)[_0x27a9c('0x16')](_0x138c14);}return null;};}function saveUpdates(_0xc6defb){return function(_0x5093b9){const _0xe2071=a767_0x5892;if(_0x5093b9)return _0x5093b9[_0xe2071('0x1d')](_0xc6defb)[_0xe2071('0x1f')](function(_0x3c572f){return _0x3c572f;});return null;};}function removeEntity(_0xab513d){return function(_0x599a09){const _0x52a244=a767_0x5892;if(_0x599a09)return _0x599a09[_0x52a244('0x6')]()[_0x52a244('0x1f')](function(){const _0x78f611=_0x52a244;_0xab513d[_0x78f611('0x2a')](0xcc)[_0x78f611('0x14')]();});};}function handleEntityNotFound(_0x4973d4){return function(_0x1602b8){return!_0x1602b8&&_0x4973d4['sendStatus'](0x194),_0x1602b8;};}function handleError(_0x245724,_0x49ea0e){return _0x49ea0e=_0x49ea0e||0x1f4,function(_0x47712e){const _0x17fa3c=a767_0x5892;logger[_0x17fa3c('0x23')](_0x47712e[_0x17fa3c('0x22')]),_0x47712e[_0x17fa3c('0x9')]&&delete _0x47712e[_0x17fa3c('0x9')],_0x245724['status'](_0x49ea0e)[_0x17fa3c('0x10')](_0x47712e);};}exports[_0x5b5fe8('0xe')]=function(_0x3a6323,_0x31d420){const _0x5e5e77=_0x5b5fe8;let _0x1a8ac2={};const _0x1a576d={},_0xc80841={'count':0x0,'rows':[]},_0x13eb18=_[_0x5e5e77('0x20')](db[_0x5e5e77('0x12')]['rawAttributes'],function(_0x44472c){const _0x4ce5ab=_0x5e5e77;return{'name':_0x44472c[_0x4ce5ab('0x7')],'type':_0x44472c[_0x4ce5ab('0x1')][_0x4ce5ab('0x4')]};});_0x1a576d['model']=_[_0x5e5e77('0x20')](_0x13eb18,_0x5e5e77('0x9')),_0x1a576d['query']=_[_0x5e5e77('0x27')](_0x3a6323[_0x5e5e77('0x28')]),_0x1a576d[_0x5e5e77('0x1a')]=_[_0x5e5e77('0xa')](_0x1a576d[_0x5e5e77('0xd')],_0x1a576d[_0x5e5e77('0x28')]),_0x1a8ac2[_0x5e5e77('0x1c')]=_[_0x5e5e77('0xa')](_0x1a576d['model'],qs[_0x5e5e77('0x8')](_0x3a6323[_0x5e5e77('0x28')][_0x5e5e77('0x8')])),_0x1a8ac2[_0x5e5e77('0x1c')]=_0x1a8ac2[_0x5e5e77('0x1c')][_0x5e5e77('0x21')]?_0x1a8ac2[_0x5e5e77('0x1c')]:_0x1a576d[_0x5e5e77('0xd')];typeof _0x3a6323[_0x5e5e77('0x28')]['nolimit']===_0x5e5e77('0x2c')&&(_0x1a8ac2[_0x5e5e77('0x5')]=qs['limit'](_0x3a6323['query']['limit']),_0x1a8ac2[_0x5e5e77('0x3')]=qs[_0x5e5e77('0x3')](_0x3a6323['query'][_0x5e5e77('0x3')]));_0x1a8ac2['order']=qs[_0x5e5e77('0x25')](_0x3a6323[_0x5e5e77('0x28')][_0x5e5e77('0x25')]),_0x1a8ac2[_0x5e5e77('0x26')]=qs[_0x5e5e77('0x1a')](_['pick'](_0x3a6323['query'],_0x1a576d[_0x5e5e77('0x1a')]),_0x13eb18);_0x3a6323[_0x5e5e77('0x28')][_0x5e5e77('0x24')]&&(_0x1a8ac2[_0x5e5e77('0x26')]=_[_0x5e5e77('0xc')](_0x1a8ac2[_0x5e5e77('0x26')],{[Op['or']]:_[_0x5e5e77('0x20')](_0x13eb18,function(_0xd7174a){const _0x422f03=_0x5e5e77;if(_0xd7174a[_0x422f03('0x1')]!==_0x422f03('0x1b')){const _0x31512a={};return _0x31512a[_0xd7174a[_0x422f03('0x9')]]={[Op['like']]:'%'+_0x3a6323[_0x422f03('0x28')]['filter']+'%'},_0x31512a;}})}));_0x1a8ac2=_[_0x5e5e77('0xc')]({},_0x1a8ac2,_0x3a6323[_0x5e5e77('0x13')]);const _0x6e9ef4={'where':_0x1a8ac2['where']};return db[_0x5e5e77('0x12')]['count'](_0x6e9ef4)[_0x5e5e77('0x1f')](function(_0x226b3c){const _0x39517c=_0x5e5e77;return _0xc80841[_0x39517c('0xf')]=_0x226b3c,_0x3a6323[_0x39517c('0x28')]['includeAll']&&(_0x1a8ac2[_0x39517c('0x1e')]=[{'all':!![]}]),db['VoiceQueuesLog'][_0x39517c('0x11')](_0x1a8ac2);})['then'](function(_0x31766b){const _0xa2fb67=_0x5e5e77;return _0xc80841[_0xa2fb67('0x2e')]=_0x31766b,_0xc80841;})[_0x5e5e77('0x1f')](respondWithFilteredResult(_0x31d420,_0x1a8ac2))[_0x5e5e77('0x15')](handleError(_0x31d420,null));},exports['show']=function(_0x49683f,_0x2b2cd9){const _0x3500a6=_0x5b5fe8;let _0x5457fe={'raw':!![],'where':{'id':_0x49683f[_0x3500a6('0x2')]['id']}};const _0x3ca889={};return _0x3ca889[_0x3500a6('0xd')]=_['keys'](db[_0x3500a6('0x12')][_0x3500a6('0xb')]),_0x3ca889['query']=_[_0x3500a6('0x27')](_0x49683f[_0x3500a6('0x28')]),_0x3ca889[_0x3500a6('0x1a')]=_[_0x3500a6('0xa')](_0x3ca889['model'],_0x3ca889[_0x3500a6('0x28')]),_0x5457fe[_0x3500a6('0x1c')]=_[_0x3500a6('0xa')](_0x3ca889[_0x3500a6('0xd')],qs[_0x3500a6('0x8')](_0x49683f[_0x3500a6('0x28')]['fields'])),_0x5457fe[_0x3500a6('0x1c')]=_0x5457fe[_0x3500a6('0x1c')][_0x3500a6('0x21')]?_0x5457fe[_0x3500a6('0x1c')]:_0x3ca889[_0x3500a6('0xd')],_0x49683f['query']['includeAll']&&(_0x5457fe[_0x3500a6('0x1e')]=[{'all':!![]}]),_0x5457fe=_[_0x3500a6('0xc')]({},_0x5457fe,_0x49683f[_0x3500a6('0x13')]),db[_0x3500a6('0x12')][_0x3500a6('0x0')](_0x5457fe)[_0x3500a6('0x1f')](handleEntityNotFound(_0x2b2cd9,null))[_0x3500a6('0x1f')](respondWithResult(_0x2b2cd9,null))[_0x3500a6('0x15')](handleError(_0x2b2cd9,null));},exports[_0x5b5fe8('0x19')]=function(_0x439197,_0x84db1b){const _0x4561ac=_0x5b5fe8;return db[_0x4561ac('0x12')]['create'](_0x439197[_0x4561ac('0x17')],{})[_0x4561ac('0x1f')](respondWithResult(_0x84db1b,0xc9))[_0x4561ac('0x15')](handleError(_0x84db1b,null));},exports[_0x5b5fe8('0x1d')]=function(_0x3d13a8,_0xe6782){const _0x1fc954=_0x5b5fe8;return _0x3d13a8[_0x1fc954('0x17')]['id']&&delete _0x3d13a8[_0x1fc954('0x17')]['id'],db['VoiceQueuesLog'][_0x1fc954('0x0')]({'where':{'id':_0x3d13a8[_0x1fc954('0x2')]['id']}})[_0x1fc954('0x1f')](handleEntityNotFound(_0xe6782,null))[_0x1fc954('0x1f')](saveUpdates(_0x3d13a8[_0x1fc954('0x17')],null))['then'](respondWithResult(_0xe6782,null))[_0x1fc954('0x15')](handleError(_0xe6782,null));},exports[_0x5b5fe8('0x6')]=function(_0x2fc2ec,_0x333c0d){const _0x17bd8d=_0x5b5fe8;return db[_0x17bd8d('0x12')][_0x17bd8d('0x0')]({'where':{'id':_0x2fc2ec['params']['id']}})[_0x17bd8d('0x1f')](handleEntityNotFound(_0x333c0d,null))[_0x17bd8d('0x1f')](removeEntity(_0x333c0d,null))[_0x17bd8d('0x15')](handleError(_0x333c0d,null));}; \ No newline at end of file diff --git a/server/api/voiceQueuesLog/voiceQueuesLog.model.js b/server/api/voiceQueuesLog/voiceQueuesLog.model.js index 9a88618..4b2d437 100644 --- a/server/api/voiceQueuesLog/voiceQueuesLog.model.js +++ b/server/api/voiceQueuesLog/voiceQueuesLog.model.js @@ -1 +1 @@ -const a768_0x4da6=['dtm','event','define','event_dtm','VoiceQueuesLog'];(function(_0x224fd8,_0x4da62a){const _0x334916=function(_0x418940){while(--_0x418940){_0x224fd8['push'](_0x224fd8['shift']());}};_0x334916(++_0x4da62a);}(a768_0x4da6,0xf8));const a768_0x3349=function(_0x224fd8,_0x4da62a){_0x224fd8=_0x224fd8-0x0;let _0x334916=a768_0x4da6[_0x224fd8];return _0x334916;};'use strict';const attributes=require('./voiceQueuesLog.attributes');module['exports']=function(_0x418940){const _0x15eaf7=a768_0x3349,_0x2228bf=_0x418940[_0x15eaf7('0x4')](_0x15eaf7('0x1'),attributes,{'tableName':'voice_queues_log','paranoid':![],'indexes':[{'name':_0x15eaf7('0x0'),'fields':[_0x15eaf7('0x3'),_0x15eaf7('0x2')]}],'timestamps':![]});return _0x2228bf;}; \ No newline at end of file +const a768_0x318d=['event_dtm','voice_queues_log','VoiceQueuesLog','define','./voiceQueuesLog.attributes','dtm'];(function(_0x4e44c2,_0x318d47){const _0x233706=function(_0x375580){while(--_0x375580){_0x4e44c2['push'](_0x4e44c2['shift']());}};_0x233706(++_0x318d47);}(a768_0x318d,0xc2));const a768_0x2337=function(_0x4e44c2,_0x318d47){_0x4e44c2=_0x4e44c2-0x0;let _0x233706=a768_0x318d[_0x4e44c2];return _0x233706;};const _0x571675=a768_0x2337;'use strict';const attributes=require(_0x571675('0x2'));module['exports']=function(_0x375580){const _0x13d2cc=_0x571675,_0x4b1507=_0x375580[_0x13d2cc('0x1')](_0x13d2cc('0x0'),attributes,{'tableName':_0x13d2cc('0x5'),'paranoid':![],'indexes':[{'name':_0x13d2cc('0x4'),'fields':['event',_0x13d2cc('0x3')]}],'timestamps':![]});return _0x4b1507;}; \ No newline at end of file diff --git a/server/api/voiceRecording/index.js b/server/api/voiceRecording/index.js index f96890c..79ca75b 100644 --- a/server/api/voiceRecording/index.js +++ b/server/api/voiceRecording/index.js @@ -1 +1 @@ -const a769_0x20fb=['isAuthenticated','/describe','destroy','/:id/downloads','runTranscribe','exports','downloads','express','downloadTranscribe','download','../../components/auth/service','update','post','get','/:id/download','describe','./voiceRecording.controller','/:id/transcribe','/:id','put'];(function(_0x2da80e,_0x20fbe7){const _0xe8380e=function(_0x246ebe){while(--_0x246ebe){_0x2da80e['push'](_0x2da80e['shift']());}};_0xe8380e(++_0x20fbe7);}(a769_0x20fb,0x1a9));const a769_0xe838=function(_0x2da80e,_0x20fbe7){_0x2da80e=_0x2da80e-0x0;let _0xe8380e=a769_0x20fb[_0x2da80e];return _0xe8380e;};const _0x44fee6=a769_0xe838;'use strict';const express=require(_0x44fee6('0x2')),router=express['Router'](),auth=require(_0x44fee6('0x5')),controller=require(_0x44fee6('0xb'));router[_0x44fee6('0x8')]('/',auth[_0x44fee6('0xf')](),controller['index']),router['get'](_0x44fee6('0x10'),auth[_0x44fee6('0xf')](),controller[_0x44fee6('0xa')]),router[_0x44fee6('0x8')](_0x44fee6('0xd'),auth['isAuthenticated'](),controller['show']),router['get'](_0x44fee6('0x9'),auth[_0x44fee6('0xf')](),controller[_0x44fee6('0x4')]),router['get'](_0x44fee6('0x12'),controller[_0x44fee6('0x1')]),router['get'](_0x44fee6('0xc'),auth[_0x44fee6('0xf')](),controller[_0x44fee6('0x3')]),router[_0x44fee6('0x7')]('/',auth[_0x44fee6('0xf')](),controller['create']),router[_0x44fee6('0x7')](_0x44fee6('0xc'),auth[_0x44fee6('0xf')](),controller[_0x44fee6('0x13')]),router[_0x44fee6('0xe')](_0x44fee6('0xd'),auth[_0x44fee6('0xf')](),controller[_0x44fee6('0x6')]),router['delete'](_0x44fee6('0xd'),auth[_0x44fee6('0xf')](),controller[_0x44fee6('0x11')]),module[_0x44fee6('0x0')]=router; \ No newline at end of file +const a769_0x2532=['put','runTranscribe','./voiceRecording.controller','update','/:id','get','index','post','download','/:id/downloads','delete','downloadTranscribe','isAuthenticated','destroy','Router','create','show','/describe'];(function(_0xebc7d,_0x25324e){const _0x539b47=function(_0x493dad){while(--_0x493dad){_0xebc7d['push'](_0xebc7d['shift']());}};_0x539b47(++_0x25324e);}(a769_0x2532,0x1cc));const a769_0x539b=function(_0xebc7d,_0x25324e){_0xebc7d=_0xebc7d-0x0;let _0x539b47=a769_0x2532[_0xebc7d];return _0x539b47;};const _0x544c8a=a769_0x539b;'use strict';const express=require('express'),router=express[_0x544c8a('0x4')](),auth=require('../../components/auth/service'),controller=require(_0x544c8a('0xa'));router[_0x544c8a('0xd')]('/',auth[_0x544c8a('0x2')](),controller[_0x544c8a('0xe')]),router[_0x544c8a('0xd')](_0x544c8a('0x7'),auth[_0x544c8a('0x2')](),controller['describe']),router[_0x544c8a('0xd')]('/:id',auth['isAuthenticated'](),controller[_0x544c8a('0x6')]),router[_0x544c8a('0xd')]('/:id/download',auth[_0x544c8a('0x2')](),controller[_0x544c8a('0x10')]),router[_0x544c8a('0xd')](_0x544c8a('0x11'),controller['downloads']),router[_0x544c8a('0xd')]('/:id/transcribe',auth[_0x544c8a('0x2')](),controller[_0x544c8a('0x1')]),router['post']('/',auth[_0x544c8a('0x2')](),controller[_0x544c8a('0x5')]),router[_0x544c8a('0xf')]('/:id/transcribe',auth['isAuthenticated'](),controller[_0x544c8a('0x9')]),router[_0x544c8a('0x8')](_0x544c8a('0xc'),auth[_0x544c8a('0x2')](),controller[_0x544c8a('0xb')]),router[_0x544c8a('0x0')](_0x544c8a('0xc'),auth[_0x544c8a('0x2')](),controller[_0x544c8a('0x3')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.attributes.js b/server/api/voiceRecording/voiceRecording.attributes.js index 7dc2257..59a9cc5 100644 --- a/server/api/voiceRecording/voiceRecording.attributes.js +++ b/server/api/voiceRecording/voiceRecording.attributes.js @@ -1 +1 @@ -const a770_0x43e0=['DATE','VIRTUAL','moment','MM-DD-YYYY\x20HH:mm','FLOAT','format','TEXT','setDataValue','extname','toString','split','sequelize','value','path','membername','exports','BOOLEAN','INTEGER','STRING','getDataValue','NEW','channel','updatedAt'];(function(_0x2017d5,_0x43e0b8){const _0x527b3f=function(_0x478cd3){while(--_0x478cd3){_0x2017d5['push'](_0x2017d5['shift']());}};_0x527b3f(++_0x43e0b8);}(a770_0x43e0,0xc1));const a770_0x527b=function(_0x2017d5,_0x43e0b8){_0x2017d5=_0x2017d5-0x0;let _0x527b3f=a770_0x43e0[_0x2017d5];return _0x527b3f;};const _0x133e09=a770_0x527b;'use strict';const Sequelize=require(_0x133e09('0x2')),moment=require(_0x133e09('0x10')),path=require(_0x133e09('0x4'));module[_0x133e09('0x6')]={'format':{'type':Sequelize[_0x133e09('0xf')],'get':function(){const _0x513ee7=_0x133e09;return this['getDataValue'](_0x513ee7('0x3'))?path[_0x513ee7('0x16')](this[_0x513ee7('0xa')]('value')):undefined;}},'uniqueid':{'type':Sequelize[_0x133e09('0x9')]},'channel':{'type':Sequelize[_0x133e09('0x9')],'set':function(_0x478cd3){const _0x416ee3=_0x133e09;_0x478cd3&&(this[_0x416ee3('0x15')](_0x416ee3('0xc'),_0x478cd3),this['setDataValue'](_0x416ee3('0x5'),_0x478cd3[_0x416ee3('0x1')](/\/|-/)[0x1]));}},'membername':{'type':Sequelize[_0x133e09('0x9')]},'calleridnum':{'type':Sequelize[_0x133e09('0x9')]},'calleridname':{'type':Sequelize[_0x133e09('0x9')]},'connectedlinenum':{'type':Sequelize['STRING']},'connectedlinename':{'type':Sequelize[_0x133e09('0x9')]},'accountcode':{'type':Sequelize['STRING']},'context':{'type':Sequelize[_0x133e09('0x9')]},'exten':{'type':Sequelize[_0x133e09('0x9')]},'value':{'type':Sequelize['STRING']},'type':{'type':Sequelize[_0x133e09('0x9')]},'rating':{'type':Sequelize[_0x133e09('0x8')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x133e09('0x9')]},'userDisposition':{'type':Sequelize[_0x133e09('0x9')]},'userSecondDisposition':{'type':Sequelize[_0x133e09('0x9')]},'userThirdDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize[_0x133e09('0x14')]},'transcribeName':{'type':Sequelize[_0x133e09('0x9')]},'transcribeStatus':{'type':Sequelize[_0x133e09('0x9')],'defaultValue':_0x133e09('0xb')},'fileUri':{'type':Sequelize[_0x133e09('0x14')]},'fileText':{'type':Sequelize[_0x133e09('0x14')]},'failureReason':{'type':Sequelize[_0x133e09('0x14')]},'sentiment':{'type':Sequelize[_0x133e09('0x9')]},'sPositive':{'type':Sequelize[_0x133e09('0x12')]},'sNegative':{'type':Sequelize[_0x133e09('0x12')]},'sNeutral':{'type':Sequelize[_0x133e09('0x12')]},'sMixed':{'type':Sequelize['FLOAT']},'tempSentiment':{'type':Sequelize[_0x133e09('0x7')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0x133e09('0xe')],'get':function(){const _0x5e145=_0x133e09;return moment(this['getDataValue']('createdAt'))[_0x5e145('0x13')](_0x5e145('0x11'))[_0x5e145('0x0')]();}},'updatedAt':{'type':Sequelize[_0x133e09('0xe')],'get':function(){const _0x26ab18=_0x133e09;return moment(this[_0x26ab18('0xa')](_0x26ab18('0xd')))[_0x26ab18('0x13')](_0x26ab18('0x11'))[_0x26ab18('0x0')]();}}}; \ No newline at end of file +const a770_0x311e=['setDataValue','INTEGER','split','VIRTUAL','DATE','createdAt','BOOLEAN','NEW','getDataValue','value','FLOAT','sequelize','toString','extname','moment','TEXT','exports','MM-DD-YYYY\x20HH:mm','STRING','updatedAt','path','channel','format'];(function(_0x381a98,_0x311ed6){const _0x155d91=function(_0x1ee08d){while(--_0x1ee08d){_0x381a98['push'](_0x381a98['shift']());}};_0x155d91(++_0x311ed6);}(a770_0x311e,0x13b));const a770_0x155d=function(_0x381a98,_0x311ed6){_0x381a98=_0x381a98-0x0;let _0x155d91=a770_0x311e[_0x381a98];return _0x155d91;};const _0x377c29=a770_0x155d;'use strict';const Sequelize=require(_0x377c29('0x12')),moment=require(_0x377c29('0x15')),path=require(_0x377c29('0x4'));module[_0x377c29('0x0')]={'format':{'type':Sequelize[_0x377c29('0xa')],'get':function(){const _0x34b48e=_0x377c29;return this[_0x34b48e('0xf')](_0x34b48e('0x10'))?path[_0x34b48e('0x14')](this[_0x34b48e('0xf')](_0x34b48e('0x10'))):undefined;}},'uniqueid':{'type':Sequelize[_0x377c29('0x2')]},'channel':{'type':Sequelize[_0x377c29('0x2')],'set':function(_0x1ee08d){const _0x3feba0=_0x377c29;_0x1ee08d&&(this[_0x3feba0('0x7')](_0x3feba0('0x5'),_0x1ee08d),this[_0x3feba0('0x7')]('membername',_0x1ee08d[_0x3feba0('0x9')](/\/|-/)[0x1]));}},'membername':{'type':Sequelize[_0x377c29('0x2')]},'calleridnum':{'type':Sequelize[_0x377c29('0x2')]},'calleridname':{'type':Sequelize[_0x377c29('0x2')]},'connectedlinenum':{'type':Sequelize[_0x377c29('0x2')]},'connectedlinename':{'type':Sequelize[_0x377c29('0x2')]},'accountcode':{'type':Sequelize[_0x377c29('0x2')]},'context':{'type':Sequelize[_0x377c29('0x2')]},'exten':{'type':Sequelize['STRING']},'value':{'type':Sequelize[_0x377c29('0x2')]},'type':{'type':Sequelize[_0x377c29('0x2')]},'rating':{'type':Sequelize[_0x377c29('0x8')],'validate':{'max':0x5,'min':0x0}},'queue':{'type':Sequelize[_0x377c29('0x2')]},'userDisposition':{'type':Sequelize[_0x377c29('0x2')]},'userSecondDisposition':{'type':Sequelize['STRING']},'userThirdDisposition':{'type':Sequelize['STRING']},'location':{'type':Sequelize['TEXT']},'transcribeName':{'type':Sequelize[_0x377c29('0x2')]},'transcribeStatus':{'type':Sequelize[_0x377c29('0x2')],'defaultValue':_0x377c29('0xe')},'fileUri':{'type':Sequelize[_0x377c29('0x16')]},'fileText':{'type':Sequelize[_0x377c29('0x16')]},'failureReason':{'type':Sequelize[_0x377c29('0x16')]},'sentiment':{'type':Sequelize[_0x377c29('0x2')]},'sPositive':{'type':Sequelize['FLOAT']},'sNegative':{'type':Sequelize[_0x377c29('0x11')]},'sNeutral':{'type':Sequelize[_0x377c29('0x11')]},'sMixed':{'type':Sequelize[_0x377c29('0x11')]},'tempSentiment':{'type':Sequelize[_0x377c29('0xd')],'defaultValue':![]},'createdAt':{'type':Sequelize[_0x377c29('0xb')],'get':function(){const _0x3d61b2=_0x377c29;return moment(this[_0x3d61b2('0xf')](_0x3d61b2('0xc')))['format'](_0x3d61b2('0x1'))[_0x3d61b2('0x13')]();}},'updatedAt':{'type':Sequelize[_0x377c29('0xb')],'get':function(){const _0x15705e=_0x377c29;return moment(this[_0x15705e('0xf')](_0x15705e('0x3')))[_0x15705e('0x6')](_0x15705e('0x1'))[_0x15705e('0x13')]();}}}; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.controller.js b/server/api/voiceRecording/voiceRecording.controller.js index 6cf8f9e..cc422b2 100644 --- a/server/api/voiceRecording/voiceRecording.controller.js +++ b/server/api/voiceRecording/voiceRecording.controller.js @@ -1 +1 @@ -const a771_0x4c06=['transcribeAccountId','order','params','TranscribeService','send','transcribe','attributes','VIRTUAL','set','transcribeRegion','location','uniqueid','Voice\x20Recording\x20not\x20found','includeAll','[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request','limit','startTranscriptionJob','show','format','index','name','include','json','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','api','sentiment','createBucket','downloads','count','intersection','fields','where','Transcribe\x20not\x20configured','findOne','writeFile','[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested','update','destroy','error-middleware/errors','find','data1','basename','Buckets','lodash','push','.txt','stack','fileText','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available','MD5','Location','path','isNil','NEW','create','offset','like','tempSentiment','CloudProvider','filters','Cloud\x20Provider\x20not\x20configured','and','data2','transcribeStatus','end','catch','uuid','map','length','merge','Setting','File:\x20\x22','keys','then','type','unlinkSync','unlink','/server/files/transcribes/transcribe_','body','error','Not\x20found','sentimentRegion','describe','differenceBy','sentimentAccountId','language','existsSync','model','download','token','decryptFile','query','upload','runTranscribe','readFileSync','../../mysqldb','sort','[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)','runSentiment','extname','options','value','VoiceRecording\x20not\x20found','undefined','%s.cypher','VoiceRecording','sequelize','rawAttributes','Cloud\x20Provider\x20not\x20available','sendStatus','util','TranscriptionJob','bucket','TranscriptionJobName','info','filename','Entity\x20not\x20found','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','status','$and','recording','rows','nolimit','findAll','../../components/encryptor'];(function(_0xa8ef32,_0x4c0642){const _0x5bdf12=function(_0x48c2a7){while(--_0x48c2a7){_0xa8ef32['push'](_0xa8ef32['shift']());}};_0x5bdf12(++_0x4c0642);}(a771_0x4c06,0xbf));const a771_0x5bdf=function(_0xa8ef32,_0x4c0642){_0xa8ef32=_0xa8ef32-0x0;let _0x5bdf12=a771_0x4c06[_0xa8ef32];return _0x5bdf12;};const _0x28caa7=a771_0x5bdf;'use strict';const util=require(_0x28caa7('0x2c')),path=require(_0x28caa7('0x6e')),fs=require('fs'),_=require(_0x28caa7('0x66')),AWS=require('aws-sdk'),{v4:uuidv4}=require(_0x28caa7('0x0')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x28caa7('0x53')),config=require('../../config/environment'),db=require(_0x28caa7('0x1d'))['db'],{Op,fn,col,ValidationError}=require(_0x28caa7('0x28')),{InternalError}=require(_0x28caa7('0x61'));function respondWithResult(_0x48c2a7,_0x3d1a44){return _0x3d1a44=_0x3d1a44||0xc8,function(_0x3709ee){const _0x7bb1bd=a771_0x5bdf;if(_0x3709ee)return _0x48c2a7[_0x7bb1bd('0x34')](_0x3d1a44)['json'](_0x3709ee);};}function respondWithFilteredResult(_0x5f1873,_0x33eccc){return function(_0x481159){const _0x189b76=a771_0x5bdf;if(_0x481159){const _0x5bb8c1=_0x481159[_0x189b76('0x57')],_0x85f290=_0x33eccc[_0x189b76('0x72')];let _0xd29852=_0x33eccc[_0x189b76('0x72')]+_0x33eccc[_0x189b76('0x4a')],_0x57cbc5;return _0xd29852>=_0x5bb8c1?(_0xd29852=_0x5bb8c1,_0x57cbc5=0xc8):_0x57cbc5=0xce,_0x5f1873[_0x189b76('0x34')](_0x57cbc5),_0x5f1873[_0x189b76('0x43')]('Content-Range',_0x85f290+'-'+_0xd29852+'/'+_0x5bb8c1)[_0x189b76('0x51')](_0x481159);}return null;};}function saveUpdates(_0x41bdad){return function(_0x2c6299){const _0x48f386=a771_0x5bdf;if(_0x2c6299)return _0x2c6299[_0x48f386('0x5f')](_0x41bdad)[_0x48f386('0x7')](function(_0x21e319){return _0x21e319;});return null;};}function handleEntityNotFound(_0x2a0f5d){return function(_0x4b9a54){const _0x5e29b7=a771_0x5bdf;return!_0x4b9a54&&_0x2a0f5d[_0x5e29b7('0x2b')](0x194),_0x4b9a54;};}function handleError(_0x21f10d,_0x7b7316){return _0x7b7316=_0x7b7316||0x1f4,function(_0x1d72f6){const _0x34b04f=a771_0x5bdf;logger[_0x34b04f('0xd')](_0x1d72f6[_0x34b04f('0x69')]),_0x1d72f6[_0x34b04f('0x4f')]&&delete _0x1d72f6[_0x34b04f('0x4f')],_0x21f10d['status'](_0x7b7316)[_0x34b04f('0x3f')](_0x1d72f6);};}exports[_0x28caa7('0x4e')]=function(_0x104ccd,_0x592590){const _0x17f0cf=_0x28caa7;let _0x27e371={};const _0x30ab6e={},_0x3807af={'count':0x0,'rows':[]},_0x354274=_['map'](db[_0x17f0cf('0x27')][_0x17f0cf('0x29')],function(_0x73ccba){const _0x5c1596=_0x17f0cf;return{'name':_0x73ccba['fieldName'],'type':_0x73ccba[_0x5c1596('0x8')]['key']};});_0x30ab6e[_0x17f0cf('0x15')]=_[_0x17f0cf('0x11')](_[_0x17f0cf('0x1')](_0x354274,'name'),[_0x17f0cf('0x4d')]),_0x30ab6e[_0x17f0cf('0x19')]=_[_0x17f0cf('0x6')](_0x104ccd[_0x17f0cf('0x19')]),_0x30ab6e[_0x17f0cf('0x76')]=_[_0x17f0cf('0x58')](_0x30ab6e[_0x17f0cf('0x15')],_0x30ab6e['query']),_0x27e371[_0x17f0cf('0x41')]=_['intersection'](_0x30ab6e[_0x17f0cf('0x15')],qs[_0x17f0cf('0x59')](_0x104ccd['query'][_0x17f0cf('0x59')])),_0x27e371[_0x17f0cf('0x41')]=_0x27e371[_0x17f0cf('0x41')][_0x17f0cf('0x2')]?_0x27e371[_0x17f0cf('0x41')]:_0x30ab6e[_0x17f0cf('0x15')];typeof _0x104ccd[_0x17f0cf('0x19')][_0x17f0cf('0x38')]===_0x17f0cf('0x25')&&(_0x27e371[_0x17f0cf('0x4a')]=qs[_0x17f0cf('0x4a')](_0x104ccd[_0x17f0cf('0x19')]['limit']),_0x27e371[_0x17f0cf('0x72')]=qs[_0x17f0cf('0x72')](_0x104ccd['query'][_0x17f0cf('0x72')]));_0x27e371[_0x17f0cf('0x3c')]=qs['sort'](_0x104ccd[_0x17f0cf('0x19')][_0x17f0cf('0x1e')]),_0x27e371['where']=qs['filters'](_['pick'](_0x104ccd[_0x17f0cf('0x19')],_0x30ab6e['filters']),_0x354274);_0x104ccd[_0x17f0cf('0x19')]['filter']&&(_0x27e371['where']=_[_0x17f0cf('0x3')](_0x27e371[_0x17f0cf('0x5a')],{[Op['or']]:_[_0x17f0cf('0x1')](_0x354274,function(_0x4c0f5d){const _0x3f3808=_0x17f0cf;if(_0x4c0f5d[_0x3f3808('0x8')]!==_0x3f3808('0x42')){const _0x49d614={};return _0x49d614[_0x4c0f5d['name']]={[Op[_0x3f3808('0x73')]]:'%'+_0x104ccd[_0x3f3808('0x19')]['filter']+'%'},_0x49d614;}})}));_0x27e371=_[_0x17f0cf('0x3')]({},_0x27e371,_0x104ccd[_0x17f0cf('0x22')]);const _0xf45d66={'where':_0x27e371['where']};return db[_0x17f0cf('0x27')]['count'](_0xf45d66)[_0x17f0cf('0x7')](function(_0x461037){const _0x58c692=_0x17f0cf;return _0x3807af[_0x58c692('0x57')]=_0x461037,_0x104ccd[_0x58c692('0x19')][_0x58c692('0x48')]&&(_0x27e371[_0x58c692('0x50')]=[{'all':!![]}]),db[_0x58c692('0x27')][_0x58c692('0x39')](_0x27e371);})['then'](function(_0x57422c){const _0x6b3c1f=_0x17f0cf;return _0x3807af[_0x6b3c1f('0x37')]=_0x57422c,_0x3807af;})['then'](respondWithFilteredResult(_0x592590,_0x27e371))['catch'](handleError(_0x592590,null));},exports[_0x28caa7('0x4c')]=function(_0x289987,_0x557b0d){const _0xbe364f=_0x28caa7;let _0x10a48c={'raw':![],'where':{'id':_0x289987[_0xbe364f('0x3d')]['id']}};const _0x3ec05d={};return _0x3ec05d[_0xbe364f('0x15')]=_[_0xbe364f('0x6')](db['VoiceRecording']['rawAttributes']),_0x3ec05d[_0xbe364f('0x19')]=_['keys'](_0x289987[_0xbe364f('0x19')]),_0x3ec05d[_0xbe364f('0x76')]=_[_0xbe364f('0x58')](_0x3ec05d[_0xbe364f('0x15')],_0x3ec05d[_0xbe364f('0x19')]),_0x10a48c[_0xbe364f('0x41')]=_[_0xbe364f('0x58')](_0x3ec05d['model'],qs[_0xbe364f('0x59')](_0x289987[_0xbe364f('0x19')][_0xbe364f('0x59')])),_0x10a48c[_0xbe364f('0x41')]=_0x10a48c[_0xbe364f('0x41')][_0xbe364f('0x2')]?_0x10a48c[_0xbe364f('0x41')]:_0x3ec05d[_0xbe364f('0x15')],_0x289987[_0xbe364f('0x19')]['includeAll']&&(_0x10a48c['include']=[{'all':!![]}]),_0x10a48c=_[_0xbe364f('0x3')]({},_0x10a48c,_0x289987[_0xbe364f('0x22')]),db[_0xbe364f('0x27')][_0xbe364f('0x5c')](_0x10a48c)[_0xbe364f('0x7')](handleEntityNotFound(_0x557b0d,null))[_0xbe364f('0x7')](respondWithResult(_0x557b0d,null))['catch'](handleError(_0x557b0d,null));},exports[_0x28caa7('0x71')]=function(_0x58e5c4,_0x58639a){const _0x3d2a95=_0x28caa7;return db['VoiceRecording'][_0x3d2a95('0x71')](_0x58e5c4['body'],{})[_0x3d2a95('0x7')](respondWithResult(_0x58639a,0xc9))[_0x3d2a95('0x7c')](handleError(_0x58639a,null));},exports[_0x28caa7('0x5f')]=function(_0x3bc2f5,_0x5f0eeb){const _0x4db672=_0x28caa7;return _0x3bc2f5[_0x4db672('0xc')]['id']&&delete _0x3bc2f5[_0x4db672('0xc')]['id'],db[_0x4db672('0x27')]['findOne']({'where':{'id':_0x3bc2f5[_0x4db672('0x3d')]['id']}})[_0x4db672('0x7')](handleEntityNotFound(_0x5f0eeb,null))[_0x4db672('0x7')](saveUpdates(_0x3bc2f5[_0x4db672('0xc')],null))[_0x4db672('0x7')](respondWithResult(_0x5f0eeb,null))['catch'](handleError(_0x5f0eeb,null));},exports[_0x28caa7('0x10')]=function(_0x2b66ff,_0x10b708){const _0x5a2a5e=_0x28caa7;return db[_0x5a2a5e('0x27')][_0x5a2a5e('0x10')]()['then'](respondWithResult(_0x10b708,null))[_0x5a2a5e('0x7c')](handleError(_0x10b708,null));},exports[_0x28caa7('0x16')]=function(_0x44ce01,_0x483495){const _0x1b525e=_0x28caa7,_0x5e60d6=require(_0x1b525e('0x3a'));let _0x48885c=![];const _0xf6f446={};return _0x44ce01[_0x1b525e('0x19')][_0x1b525e('0x8')]&&_0x44ce01[_0x1b525e('0x19')]['type']===_0x1b525e('0x46')?_0xf6f446[_0x1b525e('0x46')]=_0x44ce01[_0x1b525e('0x3d')]['id']:_0xf6f446['id']=_0x44ce01['params']['id'],db[_0x1b525e('0x27')][_0x1b525e('0x5c')]({'where':_0xf6f446,'attributes':['id',_0x1b525e('0x23')],'raw':!![]})[_0x1b525e('0x7')](handleEntityNotFound(_0x483495,null))[_0x1b525e('0x7')](function(_0x5c76b5){const _0x3d8097=_0x1b525e;if(_0x5c76b5){const _0x14b5d1=_0x5c76b5[_0x3d8097('0x23')],_0x1cbded=util[_0x3d8097('0x4d')](_0x3d8097('0x26'),_0x14b5d1);if(fs[_0x3d8097('0x14')](_0x1cbded))return _0x48885c=!![],_0x5e60d6[_0x3d8097('0x18')](_0x1cbded,_0x14b5d1,config['secrets'][_0x3d8097('0x36')])[_0x3d8097('0x7')](function(){return _0x5c76b5;});return _0x5c76b5;}})['then'](function(_0x5ac46e){const _0x24a0b1=_0x1b525e;if(_0x5ac46e){const _0x599805=_0x5ac46e[_0x24a0b1('0x23')];if(!fs[_0x24a0b1('0x14')](_0x599805))throw new ValidationError(_0x24a0b1('0x24'));return _0x5ac46e['filename']?_0x483495[_0x24a0b1('0x16')](_0x599805,_0x5ac46e[_0x24a0b1('0x31')]+path[_0x24a0b1('0x21')](_0x599805),function(){const _0x5efdb9=_0x24a0b1;_0x48885c&&fs[_0x5efdb9('0xa')](_0x599805);}):_0x483495[_0x24a0b1('0x16')](_0x599805,function(){const _0x412b97=_0x24a0b1;_0x48885c&&fs[_0x412b97('0xa')](_0x599805);});}})[_0x1b525e('0x7c')](function(_0x42302e){const _0x3e0e5c=_0x1b525e;if(_0x42302e['message']===_0x3e0e5c('0x24'))_0x483495[_0x3e0e5c('0x34')](0x194)[_0x3e0e5c('0x3f')](_0x3e0e5c('0xe'));else return handleError(_0x483495,null);});},exports[_0x28caa7('0x56')]=function(_0x337060,_0x9a4c52){const _0x58e3d3=_0x28caa7,_0x298703=require(_0x58e3d3('0x3a'));let _0x464076=![];const _0xb2501a={[Op[_0x58e3d3('0x78')]]:[_0xb2501a(fn(_0x58e3d3('0x6c'),col('uniqueid')),_0x337060['query'][_0x58e3d3('0x17')])]};return _0x337060[_0x58e3d3('0x19')][_0x58e3d3('0x8')]&&_0x337060[_0x58e3d3('0x19')][_0x58e3d3('0x8')]===_0x58e3d3('0x46')?_0xb2501a['$and']['push']({'uniqueid':_0x337060[_0x58e3d3('0x3d')]['id']}):_0xb2501a[_0x58e3d3('0x35')][_0x58e3d3('0x67')]({'id':_0x337060[_0x58e3d3('0x3d')]['id']}),db['VoiceRecording'][_0x58e3d3('0x5c')]({'where':_0xb2501a,'attributes':['id','value'],'raw':!![]})[_0x58e3d3('0x7')](handleEntityNotFound(_0x9a4c52,null))[_0x58e3d3('0x7')](function(_0x322b18){const _0x33f27a=_0x58e3d3;if(_0x322b18){const _0x5a068b=util['format'](_0x33f27a('0x26'),_0x322b18[_0x33f27a('0x23')]);if(fs[_0x33f27a('0x14')](_0x5a068b))return _0x464076=!![],_0x298703[_0x33f27a('0x18')](_0x5a068b,_0x322b18[_0x33f27a('0x23')],config['secrets'][_0x33f27a('0x36')])['then'](function(){return _0x322b18;});return _0x322b18;}})['then'](function(_0x5a29bb){const _0x2f52ce=_0x58e3d3;if(_0x5a29bb){if(!fs[_0x2f52ce('0x14')](_0x5a29bb['value']))throw new ValidationError(_0x2f52ce('0x24'));return _0x5a29bb[_0x2f52ce('0x31')]?_0x9a4c52[_0x2f52ce('0x16')](_0x5a29bb[_0x2f52ce('0x23')],_0x5a29bb[_0x2f52ce('0x31')]+path[_0x2f52ce('0x21')](_0x5a29bb[_0x2f52ce('0x23')]),function(){const _0x17f52e=_0x2f52ce;_0x464076&&fs[_0x17f52e('0xa')](_0x5a29bb[_0x17f52e('0x23')]);}):_0x9a4c52[_0x2f52ce('0x16')](_0x5a29bb[_0x2f52ce('0x23')],function(){const _0xb285e9=_0x2f52ce;_0x464076&&fs['unlink'](_0x5a29bb[_0xb285e9('0x23')]);});}})['catch'](handleError(_0x9a4c52,null));},exports[_0x28caa7('0x60')]=function(_0x23d4fe,_0x56ebba){const _0x28de2d=_0x28caa7;return db[_0x28de2d('0x27')][_0x28de2d('0x5c')]({'where':{'id':_0x23d4fe['params']['id']}})[_0x28de2d('0x7')](function(_0x426788){const _0x3367ed=_0x28de2d;if(!_0x426788)throw new ReferenceError(_0x3367ed('0x32'));return _0x426788;})['then'](function(_0x313144){const _0x5e168e=_0x28de2d;let _0x55085f=_0x313144[_0x5e168e('0x23')];return logger[_0x5e168e('0x30')]('cancellazione\x20fisica\x20documento\x20%s',_0x55085f),!_[_0x5e168e('0x6f')](_0x313144[_0x5e168e('0x23')])&&fs[_0x5e168e('0x14')](_0x55085f)&&(logger['info'](_0x5e168e('0x5')+_0x55085f+_0x5e168e('0x33')),fs[_0x5e168e('0x9')](_0x55085f)),_0x55085f=_0x55085f+'.cypher',!_[_0x5e168e('0x6f')](_0x313144[_0x5e168e('0x23')])&&fs[_0x5e168e('0x14')](_0x55085f)&&(logger[_0x5e168e('0x30')](_0x5e168e('0x5')+_0x55085f+_0x5e168e('0x33')),fs[_0x5e168e('0x9')](_0x55085f)),_0x313144;})[_0x28de2d('0x7')](function(_0x4bf51d){const _0x14c1fa=_0x28de2d;if(!_0x4bf51d)throw new InternalError();return _0x4bf51d[_0x14c1fa('0x60')]();})['then'](function(){const _0x5c41b9=_0x28de2d;_0x56ebba[_0x5c41b9('0x34')](0xcc)[_0x5c41b9('0x7b')]();})[_0x28de2d('0x7c')](handleError(_0x56ebba,null));};function getBucketslist(_0x484e42,_0x290d08,_0x404866){return new Promise(function(_0x3de4c6,_0x35ffa9){const _0x3e120f=new AWS['S3']({'accessKeyId':_0x290d08,'secretAccessKey':_0x484e42,'region':_0x404866});_0x3e120f['listBuckets']({},function(_0x5ed88a,_0x4b7de8){return _0x5ed88a?_0x35ffa9(_0x5ed88a):_0x3de4c6(_0x4b7de8);});});}function createBucket(_0x2d26bb,_0x7848c0,_0x4b78ac,_0x32a7bf){return new Promise(function(_0x415eed,_0x2d6044){const _0x5573ad=a771_0x5bdf,_0x475c69=new AWS['S3']({'accessKeyId':_0x7848c0,'secretAccessKey':_0x2d26bb,'region':_0x4b78ac});_0x475c69[_0x5573ad('0x55')]({'Bucket':_0x32a7bf},function(_0x176621,_0x3d2162){return _0x176621?_0x2d6044(_0x176621):_0x415eed(_0x3d2162);});});}function uploadFile(_0x3a274d,_0x5eb9fb,_0x52f053,_0x4164e6,_0x496755,_0x11b131){return new Promise(function(_0x22141a,_0x2aa657){const _0x122095=a771_0x5bdf,_0x5bf592=new AWS['S3']({'accessKeyId':_0x5eb9fb,'secretAccessKey':_0x3a274d,'region':_0x52f053});_0x5bf592[_0x122095('0x1a')]({'Bucket':_0x4164e6,'Key':_0x496755,'Body':_0x11b131},function(_0x4c7c16,_0x45431c){return _0x4c7c16?_0x2aa657(_0x4c7c16):_0x22141a(_0x45431c);});});}function startTranscribe(_0x49f57c,_0x4b1e68,_0x2c33d1,_0xb4de41,_0x2ce2a4,_0x5492ad){return new Promise(function(_0x25ecb3,_0x245e11){const _0x466e4e=a771_0x5bdf,_0x39343f=new AWS[(_0x466e4e('0x3e'))]({'accessKeyId':_0x4b1e68,'secretAccessKey':_0x49f57c,'region':_0x2c33d1});_0x39343f[_0x466e4e('0x4b')]({'TranscriptionJobName':_0xb4de41,'LanguageCode':_0x2ce2a4,'Media':{'MediaFileUri':_0x5492ad}},function(_0x1cf3e3,_0x4b97dc){return _0x1cf3e3?_0x245e11(_0x1cf3e3):_0x25ecb3(_0x4b97dc);});});}function transcribe(_0x19d091,_0x2422ea,_0x2050e9,_0x4346de,_0x53e8fd,_0x3189bd,_0x4aefcd){return new Promise(function(_0x205237,_0x1a06c1){const _0x5b26c5=a771_0x5bdf,_0x30c91e={};return logger[_0x5b26c5('0x30')](util[_0x5b26c5('0x4d')]('[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s',_0x19d091,_0x53e8fd)),uploadFile(_0x2422ea,_0x2050e9,_0x4346de,_0x53e8fd,path[_0x5b26c5('0x64')](_0x3189bd),fs[_0x5b26c5('0x1c')](_0x3189bd))['then'](function(_0x355585){const _0x5bb7b7=_0x5b26c5;return logger[_0x5bb7b7('0x30')](util[_0x5bb7b7('0x4d')](_0x5bb7b7('0x1f'),_0x19d091,_0x53e8fd,_0x355585[_0x5bb7b7('0x6d')])),_0x30c91e['bucket']=_0x355585['Bucket'],_0x30c91e[_0x5bb7b7('0x45')]=_0x355585[_0x5bb7b7('0x6d')],logger[_0x5bb7b7('0x30')](util[_0x5bb7b7('0x4d')](_0x5bb7b7('0x49'),_0x19d091)),startTranscribe(_0x2422ea,_0x2050e9,_0x4346de,uuidv4(),_0x4aefcd,_0x355585['Location']);})[_0x5b26c5('0x7')](function(_0x2758ec){const _0x3f4e0f=_0x5b26c5;return logger[_0x3f4e0f('0x30')](util[_0x3f4e0f('0x4d')](_0x3f4e0f('0x52'),_0x19d091,_0x2758ec['TranscriptionJob'][_0x3f4e0f('0x2f')])),_0x30c91e['transcribeName']=_0x2758ec['TranscriptionJob']['TranscriptionJobName'],_0x30c91e[_0x3f4e0f('0x7a')]=_0x2758ec[_0x3f4e0f('0x2d')]['TranscriptionJobStatus'],_0x205237(_0x30c91e);})[_0x5b26c5('0x7c')](function(_0x4fa93d){return _0x1a06c1(_0x4fa93d);});});}exports[_0x28caa7('0x1b')]=function(_0x1e9ef1,_0x325596){const _0xc8d6a8=_0x28caa7;let _0x3db1ff,_0x38f7e7,_0x4a439a;const _0x3e1b2d=require('../../components/encryptor');return db[_0xc8d6a8('0x27')][_0xc8d6a8('0x5c')]({'where':{'id':_0x1e9ef1[_0xc8d6a8('0x3d')]['id']}})[_0xc8d6a8('0x7')](function(_0x2eb93c){const _0x291943=_0xc8d6a8;if(_0x2eb93c){const _0x29ecb0=util['format'](_0x291943('0x26'),_0x2eb93c[_0x291943('0x23')]);if(fs['existsSync'](_0x29ecb0))return _0x3e1b2d[_0x291943('0x18')](_0x29ecb0,_0x2eb93c[_0x291943('0x23')],config['secrets'][_0x291943('0x36')])[_0x291943('0x7')](function(){return _0x2eb93c;});return _0x2eb93c;}})[_0xc8d6a8('0x7')](function(_0x535742){const _0x4dcd3e=_0xc8d6a8;if(!_0x535742)throw new ValidationError(_0x4dcd3e('0x47'));return _0x38f7e7=_0x535742,db[_0x4dcd3e('0x4')][_0x4dcd3e('0x5c')]({'where':{'id':0x1}});})[_0xc8d6a8('0x7')](handleEntityNotFound(_0x325596,null))[_0xc8d6a8('0x7')](function(_0x1d065d){const _0x474ea0=_0xc8d6a8;if(_0x1d065d){_0x3db1ff=_0x1d065d;if(!_0x3db1ff[_0x474ea0('0x40')]||!_0x3db1ff['transcribeAccountId']||!_0x3db1ff[_0x474ea0('0x44')]||!_0x3db1ff[_0x474ea0('0x13')]||!_0x3db1ff[_0x474ea0('0x2e')])throw new ValidationError(_0x474ea0('0x5b'));if(_0x1e9ef1[_0x474ea0('0xc')]['runSentiment']&&(!_0x3db1ff[_0x474ea0('0x54')]||!_0x3db1ff[_0x474ea0('0x12')]||!_0x3db1ff[_0x474ea0('0xf')]||!_0x3db1ff[_0x474ea0('0x13')]||!_0x3db1ff[_0x474ea0('0x2e')]))throw new ValidationError('Sentiment\x20Analysis\x20not\x20configured');return db[_0x474ea0('0x75')][_0x474ea0('0x5c')]({'where':{'id':_0x3db1ff[_0x474ea0('0x3b')]}});}})[_0xc8d6a8('0x7')](function(_0x309c7f){const _0x275183=_0xc8d6a8;if(!_0x309c7f)throw new ValidationError(_0x275183('0x2a'));if(!_0x309c7f[_0x275183('0x63')]||!_0x309c7f[_0x275183('0x79')])throw new ValidationError(_0x275183('0x77'));return _0x4a439a=_0x309c7f,getBucketslist(_0x4a439a[_0x275183('0x63')],_0x4a439a['data2'],_0x3db1ff[_0x275183('0x44')]);})[_0xc8d6a8('0x7')](function(_0x41c35e){const _0x3bc006=_0xc8d6a8;if(_0x41c35e&&_0x41c35e['Buckets']){const _0x528219=_[_0x3bc006('0x62')](_0x41c35e[_0x3bc006('0x65')],function(_0x24c9c0){const _0x5b6eb8=_0x3bc006;return _0x24c9c0['Name']===_0x3db1ff[_0x5b6eb8('0x2e')];});if(!_0x528219)return logger[_0x3bc006('0x30')](util[_0x3bc006('0x4d')](_0x3bc006('0x6b'),_0x1e9ef1[_0x3bc006('0x3d')]['id'],_0x3db1ff[_0x3bc006('0x2e')])),createBucket(_0x4a439a[_0x3bc006('0x63')],_0x4a439a[_0x3bc006('0x79')],_0x3db1ff['transcribeRegion'],_0x3db1ff[_0x3bc006('0x2e')]);logger[_0x3bc006('0x30')](util[_0x3bc006('0x4d')]('[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available',_0x1e9ef1[_0x3bc006('0x3d')]['id'],_0x3db1ff[_0x3bc006('0x2e')]));return;}})[_0xc8d6a8('0x7')](function(){const _0x1127a4=_0xc8d6a8;return _0x38f7e7['transcribeStatus']===_0x1127a4('0x70')?transcribe(_0x1e9ef1[_0x1127a4('0x3d')]['id'],_0x4a439a[_0x1127a4('0x63')],_0x4a439a[_0x1127a4('0x79')],_0x3db1ff[_0x1127a4('0x44')],_0x3db1ff['bucket'],_0x38f7e7[_0x1127a4('0x23')],_0x3db1ff[_0x1127a4('0x13')]):(logger[_0x1127a4('0x30')](util[_0x1127a4('0x4d')](_0x1127a4('0x5e'),_0x1e9ef1['params']['id'])),{'transcribeStatus':'IN_PROGRESS'});})[_0xc8d6a8('0x7')](function(_0x5f5ab7){const _0x330e71=_0xc8d6a8;if(_0x5f5ab7)return _0x5f5ab7[_0x330e71('0x74')]=_0x1e9ef1['body'][_0x330e71('0x20')],_0x38f7e7[_0x330e71('0x5f')](_0x5f5ab7);})[_0xc8d6a8('0x7')](respondWithResult(_0x325596,null))[_0xc8d6a8('0x7c')](handleError(_0x325596,null));};function writeFile(_0x2c1288,_0x5b1f4d){return new Promise(function(_0x4c0690,_0x6c846){const _0x11247a=a771_0x5bdf;fs[_0x11247a('0x5d')](_0x5b1f4d,_0x2c1288,function(_0x587c0e,_0x2f9454){return _0x587c0e?_0x6c846(_0x587c0e):_0x4c0690(_0x2f9454);});});}exports['downloadTranscribe']=function(_0x48b45d,_0x3428ec){const _0x59c5df=_0x28caa7;return db['VoiceRecording'][_0x59c5df('0x5c')]({'where':{'id':_0x48b45d['params']['id']}})[_0x59c5df('0x7')](handleEntityNotFound(_0x3428ec))[_0x59c5df('0x7')](function(_0x47fb59){const _0x161694=_0x59c5df;if(_0x47fb59&&_0x47fb59['fileText']){const _0xee68ce=_0x47fb59[_0x161694('0x6a')],_0x4a0998=config['root']+_0x161694('0xb')+_0x47fb59['id']+_0x161694('0x68');if(fs[_0x161694('0x14')](_0x4a0998))return _0x4a0998;return writeFile(_0xee68ce,_0x4a0998)[_0x161694('0x7')](function(){return _0x4a0998;});}else throw new ValidationError('Transcript\x20not\x20available');})['then'](function(_0xdc3601){const _0x250ce9=_0x59c5df;return _0x3428ec[_0x250ce9('0x16')](_0xdc3601);})[_0x59c5df('0x7c')](handleError(_0x3428ec));}; \ No newline at end of file +const a771_0x2593=['count','transcribeStatus','tempSentiment','Transcribe\x20not\x20configured','findOne','../../components/encryptor','../../mysqldb','extname','index','TranscriptionJob','describe','json','Sentiment\x20Analysis\x20not\x20configured','Bucket','fileText','upload','like','Voice\x20Recording\x20not\x20found','decryptFile','set','error','include','create','lodash','value','.txt','then','VoiceRecording','Cloud\x20Provider\x20not\x20configured','filters','offset','../../config/environment','type','status','.cypher','[RUNTRANSCRIPT][%d]\x20Sending\x20transcribe\x20request','findAll','NEW','Not\x20found','Entity\x20not\x20found','limit','isNil','uuid','[RUNTRANSCRIPT][%d]\x20Transcription\x20job\x20%s\x20created','root','transcribeName','stack','util','uniqueid','rows','body','VIRTUAL','aws-sdk','format','IN_PROGRESS','bucket','basename','VoiceRecording\x20not\x20found','sequelize','show','recording','%s.cypher','File:\x20\x22','\x22\x20trovato\x20eseguo\x20la\x20cancellazione','pick','filter','downloadTranscribe','[RUNTRANSCRIPT][%d]\x20Transcript\x20action\x20already\x20requested','name','Buckets','Setting','destroy','find','fieldName','writeFile','secrets','message','filename','sendStatus','runSentiment','sentimentRegion','Location','token','fields','keys','includeAll','sort','order','data2','[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20available','MD5','map','../../components/parsers/qs','params','update','api','transcribe','query','Transcript\x20not\x20available','where','../../config/logger','attributes','Content-Range','unlinkSync','language','catch','data1','TranscriptionJobName','download','push','existsSync','merge','info','transcribeRegion','intersection','unlink','transcribeAccountId','send','location','model'];(function(_0x1196aa,_0x2593c0){const _0x2c09bd=function(_0x24457f){while(--_0x24457f){_0x1196aa['push'](_0x1196aa['shift']());}};_0x2c09bd(++_0x2593c0);}(a771_0x2593,0x87));const a771_0x2c09=function(_0x1196aa,_0x2593c0){_0x1196aa=_0x1196aa-0x0;let _0x2c09bd=a771_0x2593[_0x1196aa];return _0x2c09bd;};const _0x13e279=a771_0x2c09;'use strict';const util=require(_0x13e279('0x20')),path=require('path'),fs=require('fs'),_=require(_0x13e279('0x8')),AWS=require(_0x13e279('0x25')),{v4:uuidv4}=require(_0x13e279('0x1b')),qs=require(_0x13e279('0x4d')),logger=require(_0x13e279('0x55'))(_0x13e279('0x50')),config=require(_0x13e279('0x10')),db=require(_0x13e279('0x6f'))['db'],{Op,fn,col,ValidationError}=require(_0x13e279('0x2b')),{InternalError}=require('error-middleware/errors');function respondWithResult(_0x24457f,_0xb62343){return _0xb62343=_0xb62343||0xc8,function(_0x25a025){const _0x220012=a771_0x2c09;if(_0x25a025)return _0x24457f['status'](_0xb62343)[_0x220012('0x74')](_0x25a025);};}function respondWithFilteredResult(_0x233fc6,_0x4869d4){return function(_0x38f4ae){const _0x3a2e41=a771_0x2c09;if(_0x38f4ae){const _0x1045e6=_0x38f4ae['count'],_0x325a6c=_0x4869d4['offset'];let _0x5eaa48=_0x4869d4['offset']+_0x4869d4['limit'],_0x3cd2f3;return _0x5eaa48>=_0x1045e6?(_0x5eaa48=_0x1045e6,_0x3cd2f3=0xc8):_0x3cd2f3=0xce,_0x233fc6[_0x3a2e41('0x12')](_0x3cd2f3),_0x233fc6[_0x3a2e41('0x4')](_0x3a2e41('0x57'),_0x325a6c+'-'+_0x5eaa48+'/'+_0x1045e6)['json'](_0x38f4ae);}return null;};}function saveUpdates(_0x290dc7){return function(_0x31f3ac){const _0x2cc1eb=a771_0x2c09;if(_0x31f3ac)return _0x31f3ac[_0x2cc1eb('0x4f')](_0x290dc7)[_0x2cc1eb('0xb')](function(_0x143208){return _0x143208;});return null;};}function handleEntityNotFound(_0x5a63f5){return function(_0x1b8b9b){const _0x1a669b=a771_0x2c09;return!_0x1b8b9b&&_0x5a63f5[_0x1a669b('0x3f')](0x194),_0x1b8b9b;};}function handleError(_0x314983,_0x146c12){return _0x146c12=_0x146c12||0x1f4,function(_0x4bf034){const _0x5c4442=a771_0x2c09;logger[_0x5c4442('0x5')](_0x4bf034[_0x5c4442('0x1f')]),_0x4bf034['name']&&delete _0x4bf034[_0x5c4442('0x35')],_0x314983[_0x5c4442('0x12')](_0x146c12)['send'](_0x4bf034);};}exports[_0x13e279('0x71')]=function(_0x204fa2,_0x58f566){const _0x5353eb=_0x13e279;let _0x56edb3={};const _0x582578={},_0x3f5536={'count':0x0,'rows':[]},_0x2a1de9=_[_0x5353eb('0x4c')](db[_0x5353eb('0xc')]['rawAttributes'],function(_0x2faaff){const _0x3d5ba6=_0x5353eb;return{'name':_0x2faaff[_0x3d5ba6('0x3a')],'type':_0x2faaff['type']['key']};});_0x582578[_0x5353eb('0x68')]=_['differenceBy'](_[_0x5353eb('0x4c')](_0x2a1de9,_0x5353eb('0x35')),[_0x5353eb('0x26')]),_0x582578[_0x5353eb('0x52')]=_[_0x5353eb('0x45')](_0x204fa2['query']),_0x582578[_0x5353eb('0xe')]=_['intersection'](_0x582578[_0x5353eb('0x68')],_0x582578['query']),_0x56edb3[_0x5353eb('0x56')]=_[_0x5353eb('0x63')](_0x582578[_0x5353eb('0x68')],qs[_0x5353eb('0x44')](_0x204fa2['query'][_0x5353eb('0x44')])),_0x56edb3[_0x5353eb('0x56')]=_0x56edb3['attributes']['length']?_0x56edb3['attributes']:_0x582578['model'];typeof _0x204fa2[_0x5353eb('0x52')]['nolimit']==='undefined'&&(_0x56edb3[_0x5353eb('0x19')]=qs[_0x5353eb('0x19')](_0x204fa2[_0x5353eb('0x52')][_0x5353eb('0x19')]),_0x56edb3[_0x5353eb('0xf')]=qs['offset'](_0x204fa2[_0x5353eb('0x52')][_0x5353eb('0xf')]));_0x56edb3[_0x5353eb('0x48')]=qs[_0x5353eb('0x47')](_0x204fa2[_0x5353eb('0x52')][_0x5353eb('0x47')]),_0x56edb3[_0x5353eb('0x54')]=qs[_0x5353eb('0xe')](_[_0x5353eb('0x31')](_0x204fa2['query'],_0x582578[_0x5353eb('0xe')]),_0x2a1de9);_0x204fa2[_0x5353eb('0x52')][_0x5353eb('0x32')]&&(_0x56edb3[_0x5353eb('0x54')]=_[_0x5353eb('0x60')](_0x56edb3[_0x5353eb('0x54')],{[Op['or']]:_[_0x5353eb('0x4c')](_0x2a1de9,function(_0x332ecb){const _0x31c57e=_0x5353eb;if(_0x332ecb[_0x31c57e('0x11')]!==_0x31c57e('0x24')){const _0x5cc150={};return _0x5cc150[_0x332ecb[_0x31c57e('0x35')]]={[Op[_0x31c57e('0x1')]]:'%'+_0x204fa2['query'][_0x31c57e('0x32')]+'%'},_0x5cc150;}})}));_0x56edb3=_[_0x5353eb('0x60')]({},_0x56edb3,_0x204fa2['options']);const _0x2107a3={'where':_0x56edb3['where']};return db[_0x5353eb('0xc')][_0x5353eb('0x69')](_0x2107a3)[_0x5353eb('0xb')](function(_0x5d12a9){const _0xa91462=_0x5353eb;return _0x3f5536[_0xa91462('0x69')]=_0x5d12a9,_0x204fa2[_0xa91462('0x52')][_0xa91462('0x46')]&&(_0x56edb3[_0xa91462('0x6')]=[{'all':!![]}]),db[_0xa91462('0xc')][_0xa91462('0x15')](_0x56edb3);})['then'](function(_0x32f1eb){const _0x4b04e8=_0x5353eb;return _0x3f5536[_0x4b04e8('0x22')]=_0x32f1eb,_0x3f5536;})[_0x5353eb('0xb')](respondWithFilteredResult(_0x58f566,_0x56edb3))['catch'](handleError(_0x58f566,null));},exports[_0x13e279('0x2c')]=function(_0x245c47,_0x454b58){const _0x20a2ca=_0x13e279;let _0x368271={'raw':![],'where':{'id':_0x245c47[_0x20a2ca('0x4e')]['id']}};const _0x5caeed={};return _0x5caeed[_0x20a2ca('0x68')]=_[_0x20a2ca('0x45')](db[_0x20a2ca('0xc')]['rawAttributes']),_0x5caeed[_0x20a2ca('0x52')]=_['keys'](_0x245c47[_0x20a2ca('0x52')]),_0x5caeed[_0x20a2ca('0xe')]=_[_0x20a2ca('0x63')](_0x5caeed[_0x20a2ca('0x68')],_0x5caeed[_0x20a2ca('0x52')]),_0x368271[_0x20a2ca('0x56')]=_['intersection'](_0x5caeed['model'],qs[_0x20a2ca('0x44')](_0x245c47['query'][_0x20a2ca('0x44')])),_0x368271[_0x20a2ca('0x56')]=_0x368271[_0x20a2ca('0x56')]['length']?_0x368271['attributes']:_0x5caeed[_0x20a2ca('0x68')],_0x245c47[_0x20a2ca('0x52')][_0x20a2ca('0x46')]&&(_0x368271[_0x20a2ca('0x6')]=[{'all':!![]}]),_0x368271=_[_0x20a2ca('0x60')]({},_0x368271,_0x245c47['options']),db[_0x20a2ca('0xc')][_0x20a2ca('0x6d')](_0x368271)[_0x20a2ca('0xb')](handleEntityNotFound(_0x454b58,null))['then'](respondWithResult(_0x454b58,null))[_0x20a2ca('0x5a')](handleError(_0x454b58,null));},exports[_0x13e279('0x7')]=function(_0x473a12,_0x5d68bf){const _0x2b13d5=_0x13e279;return db[_0x2b13d5('0xc')][_0x2b13d5('0x7')](_0x473a12[_0x2b13d5('0x23')],{})[_0x2b13d5('0xb')](respondWithResult(_0x5d68bf,0xc9))[_0x2b13d5('0x5a')](handleError(_0x5d68bf,null));},exports['update']=function(_0x28d80c,_0x1b1b0b){const _0xe566ac=_0x13e279;return _0x28d80c['body']['id']&&delete _0x28d80c['body']['id'],db[_0xe566ac('0xc')]['findOne']({'where':{'id':_0x28d80c[_0xe566ac('0x4e')]['id']}})[_0xe566ac('0xb')](handleEntityNotFound(_0x1b1b0b,null))[_0xe566ac('0xb')](saveUpdates(_0x28d80c['body'],null))[_0xe566ac('0xb')](respondWithResult(_0x1b1b0b,null))[_0xe566ac('0x5a')](handleError(_0x1b1b0b,null));},exports[_0x13e279('0x73')]=function(_0x328eb2,_0x545e42){const _0x197e2d=_0x13e279;return db[_0x197e2d('0xc')][_0x197e2d('0x73')]()['then'](respondWithResult(_0x545e42,null))['catch'](handleError(_0x545e42,null));},exports['download']=function(_0x5e952b,_0xf856b4){const _0x4c2a3d=_0x13e279,_0x421878=require(_0x4c2a3d('0x6e'));let _0x402abf=![];const _0x4456b1={};return _0x5e952b[_0x4c2a3d('0x52')][_0x4c2a3d('0x11')]&&_0x5e952b['query']['type']===_0x4c2a3d('0x21')?_0x4456b1[_0x4c2a3d('0x21')]=_0x5e952b[_0x4c2a3d('0x4e')]['id']:_0x4456b1['id']=_0x5e952b[_0x4c2a3d('0x4e')]['id'],db[_0x4c2a3d('0xc')][_0x4c2a3d('0x6d')]({'where':_0x4456b1,'attributes':['id',_0x4c2a3d('0x9')],'raw':!![]})['then'](handleEntityNotFound(_0xf856b4,null))[_0x4c2a3d('0xb')](function(_0x571500){const _0x968876=_0x4c2a3d;if(_0x571500){const _0x3ee66f=_0x571500[_0x968876('0x9')],_0x4ebd24=util[_0x968876('0x26')](_0x968876('0x2e'),_0x3ee66f);if(fs[_0x968876('0x5f')](_0x4ebd24))return _0x402abf=!![],_0x421878[_0x968876('0x3')](_0x4ebd24,_0x3ee66f,config[_0x968876('0x3c')][_0x968876('0x2d')])[_0x968876('0xb')](function(){return _0x571500;});return _0x571500;}})[_0x4c2a3d('0xb')](function(_0xeeb546){const _0x43a90b=_0x4c2a3d;if(_0xeeb546){const _0x226572=_0xeeb546[_0x43a90b('0x9')];if(!fs[_0x43a90b('0x5f')](_0x226572))throw new ValidationError(_0x43a90b('0x2a'));return _0xeeb546[_0x43a90b('0x3e')]?_0xf856b4[_0x43a90b('0x5d')](_0x226572,_0xeeb546['filename']+path[_0x43a90b('0x70')](_0x226572),function(){const _0x3105ad=_0x43a90b;_0x402abf&&fs[_0x3105ad('0x64')](_0x226572);}):_0xf856b4[_0x43a90b('0x5d')](_0x226572,function(){const _0x147c90=_0x43a90b;_0x402abf&&fs[_0x147c90('0x64')](_0x226572);});}})['catch'](function(_0x5e44d7){const _0x25e9a7=_0x4c2a3d;if(_0x5e44d7[_0x25e9a7('0x3d')]===_0x25e9a7('0x2a'))_0xf856b4[_0x25e9a7('0x12')](0x194)[_0x25e9a7('0x66')](_0x25e9a7('0x17'));else return handleError(_0xf856b4,null);});},exports['downloads']=function(_0x35bf54,_0x8599f8){const _0x3e88df=_0x13e279,_0x5c52fb=require(_0x3e88df('0x6e'));let _0x59dae=![];const _0x36e5bb={[Op['and']]:[_0x36e5bb(fn(_0x3e88df('0x4b'),col(_0x3e88df('0x21'))),_0x35bf54[_0x3e88df('0x52')][_0x3e88df('0x43')])]};return _0x35bf54[_0x3e88df('0x52')][_0x3e88df('0x11')]&&_0x35bf54[_0x3e88df('0x52')]['type']==='uniqueid'?_0x36e5bb['$and'][_0x3e88df('0x5e')]({'uniqueid':_0x35bf54['params']['id']}):_0x36e5bb['$and'][_0x3e88df('0x5e')]({'id':_0x35bf54[_0x3e88df('0x4e')]['id']}),db['VoiceRecording'][_0x3e88df('0x6d')]({'where':_0x36e5bb,'attributes':['id','value'],'raw':!![]})['then'](handleEntityNotFound(_0x8599f8,null))[_0x3e88df('0xb')](function(_0x188775){const _0xf084ae=_0x3e88df;if(_0x188775){const _0x25ddf8=util[_0xf084ae('0x26')](_0xf084ae('0x2e'),_0x188775[_0xf084ae('0x9')]);if(fs['existsSync'](_0x25ddf8))return _0x59dae=!![],_0x5c52fb[_0xf084ae('0x3')](_0x25ddf8,_0x188775[_0xf084ae('0x9')],config[_0xf084ae('0x3c')][_0xf084ae('0x2d')])['then'](function(){return _0x188775;});return _0x188775;}})[_0x3e88df('0xb')](function(_0x1b9c90){const _0x42ecc5=_0x3e88df;if(_0x1b9c90){if(!fs[_0x42ecc5('0x5f')](_0x1b9c90['value']))throw new ValidationError(_0x42ecc5('0x2a'));return _0x1b9c90[_0x42ecc5('0x3e')]?_0x8599f8[_0x42ecc5('0x5d')](_0x1b9c90[_0x42ecc5('0x9')],_0x1b9c90[_0x42ecc5('0x3e')]+path['extname'](_0x1b9c90[_0x42ecc5('0x9')]),function(){const _0x58c7c6=_0x42ecc5;_0x59dae&&fs[_0x58c7c6('0x64')](_0x1b9c90['value']);}):_0x8599f8[_0x42ecc5('0x5d')](_0x1b9c90[_0x42ecc5('0x9')],function(){const _0x429f66=_0x42ecc5;_0x59dae&&fs[_0x429f66('0x64')](_0x1b9c90[_0x429f66('0x9')]);});}})['catch'](handleError(_0x8599f8,null));},exports['destroy']=function(_0x414264,_0x4181a7){const _0x521eb2=_0x13e279;return db[_0x521eb2('0xc')]['findOne']({'where':{'id':_0x414264[_0x521eb2('0x4e')]['id']}})[_0x521eb2('0xb')](function(_0xe2657){const _0x319da6=_0x521eb2;if(!_0xe2657)throw new ReferenceError(_0x319da6('0x18'));return _0xe2657;})[_0x521eb2('0xb')](function(_0x2f0e9e){const _0x2b3d8d=_0x521eb2;let _0x11d5e0=_0x2f0e9e[_0x2b3d8d('0x9')];return logger[_0x2b3d8d('0x61')]('cancellazione\x20fisica\x20documento\x20%s',_0x11d5e0),!_['isNil'](_0x2f0e9e['value'])&&fs['existsSync'](_0x11d5e0)&&(logger[_0x2b3d8d('0x61')](_0x2b3d8d('0x2f')+_0x11d5e0+_0x2b3d8d('0x30')),fs['unlinkSync'](_0x11d5e0)),_0x11d5e0=_0x11d5e0+_0x2b3d8d('0x13'),!_[_0x2b3d8d('0x1a')](_0x2f0e9e[_0x2b3d8d('0x9')])&&fs[_0x2b3d8d('0x5f')](_0x11d5e0)&&(logger[_0x2b3d8d('0x61')](_0x2b3d8d('0x2f')+_0x11d5e0+'\x22\x20trovato\x20eseguo\x20la\x20cancellazione'),fs[_0x2b3d8d('0x58')](_0x11d5e0)),_0x2f0e9e;})[_0x521eb2('0xb')](function(_0x45c073){const _0x3827b2=_0x521eb2;if(!_0x45c073)throw new InternalError();return _0x45c073[_0x3827b2('0x38')]();})[_0x521eb2('0xb')](function(){_0x4181a7['status'](0xcc)['end']();})[_0x521eb2('0x5a')](handleError(_0x4181a7,null));};function getBucketslist(_0x25774b,_0x32e3ce,_0x332211){return new Promise(function(_0x3a458c,_0x22b7f4){const _0x586f6e=new AWS['S3']({'accessKeyId':_0x32e3ce,'secretAccessKey':_0x25774b,'region':_0x332211});_0x586f6e['listBuckets']({},function(_0x388cd2,_0xcd4a70){return _0x388cd2?_0x22b7f4(_0x388cd2):_0x3a458c(_0xcd4a70);});});}function createBucket(_0x4252c9,_0x2ffd3f,_0x461553,_0x3a6f06){return new Promise(function(_0xbb63bc,_0x327af6){const _0x517fe6=new AWS['S3']({'accessKeyId':_0x2ffd3f,'secretAccessKey':_0x4252c9,'region':_0x461553});_0x517fe6['createBucket']({'Bucket':_0x3a6f06},function(_0x5c69e2,_0x3f57bc){return _0x5c69e2?_0x327af6(_0x5c69e2):_0xbb63bc(_0x3f57bc);});});}function uploadFile(_0x2a6b0f,_0x224bd3,_0x467d38,_0x163d12,_0x1ed4d8,_0x30275b){return new Promise(function(_0x2f2f01,_0x4226d8){const _0x292509=a771_0x2c09,_0x37f376=new AWS['S3']({'accessKeyId':_0x224bd3,'secretAccessKey':_0x2a6b0f,'region':_0x467d38});_0x37f376[_0x292509('0x0')]({'Bucket':_0x163d12,'Key':_0x1ed4d8,'Body':_0x30275b},function(_0xe20be1,_0xc2ce10){return _0xe20be1?_0x4226d8(_0xe20be1):_0x2f2f01(_0xc2ce10);});});}function startTranscribe(_0x37595b,_0x512620,_0xef3771,_0x3df72b,_0x32aac3,_0x228958){return new Promise(function(_0x37e8fa,_0x2a8831){const _0x454adc=new AWS['TranscribeService']({'accessKeyId':_0x512620,'secretAccessKey':_0x37595b,'region':_0xef3771});_0x454adc['startTranscriptionJob']({'TranscriptionJobName':_0x3df72b,'LanguageCode':_0x32aac3,'Media':{'MediaFileUri':_0x228958}},function(_0x2f1689,_0x2e17df){return _0x2f1689?_0x2a8831(_0x2f1689):_0x37e8fa(_0x2e17df);});});}function transcribe(_0x5ea0cf,_0x3b1a82,_0x5568f4,_0xeacad0,_0x1abef7,_0x455b9a,_0x50741a){return new Promise(function(_0x57fd66,_0x4fb28e){const _0x292e65=a771_0x2c09,_0x2fed42={};return logger[_0x292e65('0x61')](util['format']('[RUNTRANSCRIPT][%d]\x20Starting\x20voice\x20recording\x20upload\x20in\x20bucket\x20%s',_0x5ea0cf,_0x1abef7)),uploadFile(_0x3b1a82,_0x5568f4,_0xeacad0,_0x1abef7,path[_0x292e65('0x29')](_0x455b9a),fs['readFileSync'](_0x455b9a))[_0x292e65('0xb')](function(_0x54c0fd){const _0x36f96a=_0x292e65;return logger[_0x36f96a('0x61')](util[_0x36f96a('0x26')]('[RUNTRANSCRIPT][%d]\x20Voice\x20recording\x20uploaded\x20in\x20bucket\x20%s\x20(%s)',_0x5ea0cf,_0x1abef7,_0x54c0fd[_0x36f96a('0x42')])),_0x2fed42['bucket']=_0x54c0fd[_0x36f96a('0x76')],_0x2fed42[_0x36f96a('0x67')]=_0x54c0fd[_0x36f96a('0x42')],logger[_0x36f96a('0x61')](util[_0x36f96a('0x26')](_0x36f96a('0x14'),_0x5ea0cf)),startTranscribe(_0x3b1a82,_0x5568f4,_0xeacad0,uuidv4(),_0x50741a,_0x54c0fd[_0x36f96a('0x42')]);})[_0x292e65('0xb')](function(_0x407a48){const _0x2cf8bd=_0x292e65;return logger[_0x2cf8bd('0x61')](util[_0x2cf8bd('0x26')](_0x2cf8bd('0x1c'),_0x5ea0cf,_0x407a48[_0x2cf8bd('0x72')][_0x2cf8bd('0x5c')])),_0x2fed42[_0x2cf8bd('0x1e')]=_0x407a48[_0x2cf8bd('0x72')][_0x2cf8bd('0x5c')],_0x2fed42['transcribeStatus']=_0x407a48[_0x2cf8bd('0x72')]['TranscriptionJobStatus'],_0x57fd66(_0x2fed42);})[_0x292e65('0x5a')](function(_0x111c48){return _0x4fb28e(_0x111c48);});});}exports['runTranscribe']=function(_0x56530f,_0x848dd0){const _0xb17e91=_0x13e279;let _0x31aa84,_0x593ccb,_0x3541d1;const _0x4e8302=require(_0xb17e91('0x6e'));return db[_0xb17e91('0xc')][_0xb17e91('0x6d')]({'where':{'id':_0x56530f[_0xb17e91('0x4e')]['id']}})[_0xb17e91('0xb')](function(_0x1048b0){const _0x44d597=_0xb17e91;if(_0x1048b0){const _0x34f62b=util[_0x44d597('0x26')](_0x44d597('0x2e'),_0x1048b0[_0x44d597('0x9')]);if(fs[_0x44d597('0x5f')](_0x34f62b))return _0x4e8302['decryptFile'](_0x34f62b,_0x1048b0[_0x44d597('0x9')],config['secrets'][_0x44d597('0x2d')])[_0x44d597('0xb')](function(){return _0x1048b0;});return _0x1048b0;}})[_0xb17e91('0xb')](function(_0x471644){const _0x1156e3=_0xb17e91;if(!_0x471644)throw new ValidationError(_0x1156e3('0x2'));return _0x593ccb=_0x471644,db[_0x1156e3('0x37')]['findOne']({'where':{'id':0x1}});})[_0xb17e91('0xb')](handleEntityNotFound(_0x848dd0,null))[_0xb17e91('0xb')](function(_0x110e0e){const _0x5eb6b1=_0xb17e91;if(_0x110e0e){_0x31aa84=_0x110e0e;if(!_0x31aa84[_0x5eb6b1('0x51')]||!_0x31aa84[_0x5eb6b1('0x65')]||!_0x31aa84['transcribeRegion']||!_0x31aa84[_0x5eb6b1('0x59')]||!_0x31aa84[_0x5eb6b1('0x28')])throw new ValidationError(_0x5eb6b1('0x6c'));if(_0x56530f[_0x5eb6b1('0x23')][_0x5eb6b1('0x40')]&&(!_0x31aa84['sentiment']||!_0x31aa84['sentimentAccountId']||!_0x31aa84[_0x5eb6b1('0x41')]||!_0x31aa84['language']||!_0x31aa84[_0x5eb6b1('0x28')]))throw new ValidationError(_0x5eb6b1('0x75'));return db['CloudProvider'][_0x5eb6b1('0x6d')]({'where':{'id':_0x31aa84[_0x5eb6b1('0x65')]}});}})[_0xb17e91('0xb')](function(_0x38e647){const _0x546b2d=_0xb17e91;if(!_0x38e647)throw new ValidationError('Cloud\x20Provider\x20not\x20available');if(!_0x38e647[_0x546b2d('0x5b')]||!_0x38e647[_0x546b2d('0x49')])throw new ValidationError(_0x546b2d('0xd'));return _0x3541d1=_0x38e647,getBucketslist(_0x3541d1['data1'],_0x3541d1[_0x546b2d('0x49')],_0x31aa84[_0x546b2d('0x62')]);})[_0xb17e91('0xb')](function(_0x689084){const _0x4cf1a5=_0xb17e91;if(_0x689084&&_0x689084[_0x4cf1a5('0x36')]){const _0xd68218=_[_0x4cf1a5('0x39')](_0x689084['Buckets'],function(_0x144456){const _0x2dc96e=_0x4cf1a5;return _0x144456['Name']===_0x31aa84[_0x2dc96e('0x28')];});if(!_0xd68218)return logger[_0x4cf1a5('0x61')](util[_0x4cf1a5('0x26')]('[RUNTRANSCRIPT][%d]\x20Bucket\x20%s\x20not\x20available',_0x56530f[_0x4cf1a5('0x4e')]['id'],_0x31aa84[_0x4cf1a5('0x28')])),createBucket(_0x3541d1[_0x4cf1a5('0x5b')],_0x3541d1[_0x4cf1a5('0x49')],_0x31aa84['transcribeRegion'],_0x31aa84[_0x4cf1a5('0x28')]);logger[_0x4cf1a5('0x61')](util['format'](_0x4cf1a5('0x4a'),_0x56530f['params']['id'],_0x31aa84[_0x4cf1a5('0x28')]));return;}})[_0xb17e91('0xb')](function(){const _0x4d2982=_0xb17e91;return _0x593ccb[_0x4d2982('0x6a')]===_0x4d2982('0x16')?transcribe(_0x56530f['params']['id'],_0x3541d1[_0x4d2982('0x5b')],_0x3541d1[_0x4d2982('0x49')],_0x31aa84['transcribeRegion'],_0x31aa84[_0x4d2982('0x28')],_0x593ccb[_0x4d2982('0x9')],_0x31aa84[_0x4d2982('0x59')]):(logger[_0x4d2982('0x61')](util['format'](_0x4d2982('0x34'),_0x56530f[_0x4d2982('0x4e')]['id'])),{'transcribeStatus':_0x4d2982('0x27')});})[_0xb17e91('0xb')](function(_0x3e4b00){const _0x1c831b=_0xb17e91;if(_0x3e4b00)return _0x3e4b00[_0x1c831b('0x6b')]=_0x56530f['body'][_0x1c831b('0x40')],_0x593ccb[_0x1c831b('0x4f')](_0x3e4b00);})[_0xb17e91('0xb')](respondWithResult(_0x848dd0,null))[_0xb17e91('0x5a')](handleError(_0x848dd0,null));};function writeFile(_0x342579,_0x3a2f0f){return new Promise(function(_0x112f48,_0x4e1be6){const _0x4fbb04=a771_0x2c09;fs[_0x4fbb04('0x3b')](_0x3a2f0f,_0x342579,function(_0x4f3ae9,_0x3219e4){return _0x4f3ae9?_0x4e1be6(_0x4f3ae9):_0x112f48(_0x3219e4);});});}exports[_0x13e279('0x33')]=function(_0x38762e,_0x3ed5da){const _0x30cdf0=_0x13e279;return db['VoiceRecording'][_0x30cdf0('0x6d')]({'where':{'id':_0x38762e[_0x30cdf0('0x4e')]['id']}})[_0x30cdf0('0xb')](handleEntityNotFound(_0x3ed5da))[_0x30cdf0('0xb')](function(_0x557971){const _0x4a6071=_0x30cdf0;if(_0x557971&&_0x557971['fileText']){const _0x4c0067=_0x557971[_0x4a6071('0x77')],_0x52fc3c=config[_0x4a6071('0x1d')]+'/server/files/transcribes/transcribe_'+_0x557971['id']+_0x4a6071('0xa');if(fs[_0x4a6071('0x5f')](_0x52fc3c))return _0x52fc3c;return writeFile(_0x4c0067,_0x52fc3c)[_0x4a6071('0xb')](function(){return _0x52fc3c;});}else throw new ValidationError(_0x4a6071('0x53'));})[_0x30cdf0('0xb')](function(_0x3c3f46){return _0x3ed5da['download'](_0x3c3f46);})['catch'](handleError(_0x3ed5da));}; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.model.js b/server/api/voiceRecording/voiceRecording.model.js index 9cd7abf..c1108fb 100644 --- a/server/api/voiceRecording/voiceRecording.model.js +++ b/server/api/voiceRecording/voiceRecording.model.js @@ -1 +1 @@ -const a772_0xdb05=['exports','uniqueid','VoiceRecording','./voiceRecording.attributes','voice_recordings'];(function(_0x5014dc,_0xdb0553){const _0x1a28c6=function(_0x3c39a3){while(--_0x3c39a3){_0x5014dc['push'](_0x5014dc['shift']());}};_0x1a28c6(++_0xdb0553);}(a772_0xdb05,0x156));const a772_0x1a28=function(_0x5014dc,_0xdb0553){_0x5014dc=_0x5014dc-0x0;let _0x1a28c6=a772_0xdb05[_0x5014dc];return _0x1a28c6;};const _0x13ba15=a772_0x1a28;'use strict';const attributes=require(_0x13ba15('0x1'));module[_0x13ba15('0x3')]=function(_0x3c39a3){const _0x4149d4=_0x13ba15,_0x2ec4f2=_0x3c39a3['define'](_0x4149d4('0x0'),attributes,{'tableName':_0x4149d4('0x2'),'paranoid':![],'indexes':[{'name':_0x4149d4('0x4'),'fields':[_0x4149d4('0x4')]}],'timestamps':!![]});return _0x2ec4f2;}; \ No newline at end of file +const a772_0x407f=['uniqueid','exports','VoiceRecording','voice_recordings','./voiceRecording.attributes'];(function(_0x4bfe0e,_0x407f5a){const _0x681344=function(_0x1225ab){while(--_0x1225ab){_0x4bfe0e['push'](_0x4bfe0e['shift']());}};_0x681344(++_0x407f5a);}(a772_0x407f,0x1a8));const a772_0x6813=function(_0x4bfe0e,_0x407f5a){_0x4bfe0e=_0x4bfe0e-0x0;let _0x681344=a772_0x407f[_0x4bfe0e];return _0x681344;};const _0x1377cd=a772_0x6813;'use strict';const attributes=require(_0x1377cd('0x0'));module[_0x1377cd('0x2')]=function(_0x1225ab){const _0x1a7371=_0x1377cd,_0x4edec6=_0x1225ab['define'](_0x1a7371('0x3'),attributes,{'tableName':_0x1a7371('0x4'),'paranoid':![],'indexes':[{'name':_0x1a7371('0x1'),'fields':['uniqueid']}],'timestamps':!![]});return _0x4edec6;}; \ No newline at end of file diff --git a/server/api/voiceRecording/voiceRecording.rpc.js b/server/api/voiceRecording/voiceRecording.rpc.js index c2a4396..4365951 100644 --- a/server/api/voiceRecording/voiceRecording.rpc.js +++ b/server/api/voiceRecording/voiceRecording.rpc.js @@ -1 +1 @@ -const a773_0x29e1=['recording','then','body','info','CreateVoiceRecording','../../components/encryptor','util','error','VoiceRecording','encryptFile','format','raw','stringify','debug','options','../../mysqldb','CreateVoiceRecording\x20file\x20encrypted','secrets','callRecordingEncryption','catch','rpc','value','update','UpdateVoiceRecording','message','limit','../../config/environment'];(function(_0xd11a7d,_0x29e115){const _0x46983e=function(_0x59d2d7){while(--_0x59d2d7){_0xd11a7d['push'](_0xd11a7d['shift']());}};_0x46983e(++_0x29e115);}(a773_0x29e1,0x140));const a773_0x4698=function(_0xd11a7d,_0x29e115){_0xd11a7d=_0xd11a7d-0x0;let _0x46983e=a773_0x29e1[_0xd11a7d];return _0x46983e;};const _0x32e7a2=a773_0x4698;'use strict';const util=require(_0x32e7a2('0xa')),fs=require('fs'),db=require(_0x32e7a2('0x13'))['db'],logger=require('../../config/logger')(_0x32e7a2('0x18')),config=require(_0x32e7a2('0x3'));exports[_0x32e7a2('0x0')]=function(_0x59d2d7){const _0x32e7b5=this;return new Promise(function(_0x5dfcfe,_0x1e3876){const _0x20e535=a773_0x4698;return db['VoiceRecording'][_0x20e535('0x1a')](_0x59d2d7[_0x20e535('0x6')],{'raw':_0x59d2d7[_0x20e535('0x12')]?_0x59d2d7[_0x20e535('0x12')][_0x20e535('0xf')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x59d2d7[_0x20e535('0x12')]?_0x59d2d7[_0x20e535('0x12')]['where']||null:null,'attributes':_0x59d2d7[_0x20e535('0x12')]?_0x59d2d7[_0x20e535('0x12')]['attributes']||null:null,'limit':_0x59d2d7[_0x20e535('0x12')]?_0x59d2d7[_0x20e535('0x12')][_0x20e535('0x2')]||null:null})['then'](function(_0x5237f7){const _0x40b87b=_0x20e535;logger[_0x40b87b('0x7')]('UpdateVoiceRecording',_0x59d2d7),logger['debug'](_0x40b87b('0x0'),_0x59d2d7,JSON[_0x40b87b('0x10')](_0x5237f7)),_0x5dfcfe(_0x5237f7);})[_0x20e535('0x17')](function(_0x29f2a8){const _0x4cc677=_0x20e535;logger[_0x4cc677('0xb')](_0x4cc677('0x0'),_0x29f2a8[_0x4cc677('0x1')],_0x59d2d7),_0x1e3876(_0x32e7b5[_0x4cc677('0xb')](0x1f4,_0x29f2a8[_0x4cc677('0x1')]));});});},exports[_0x32e7a2('0x8')]=function(_0x172c07){const _0x1a3ee7=this;return new Promise(function(_0x6398bd,_0x5cef1a){const _0x3226b8=a773_0x4698,_0x116545=require(_0x3226b8('0x9'));let _0x46e48d;return db['Setting']['findOne']({'attributes':['id',_0x3226b8('0x16')],'where':{'id':0x1},'raw':!![]})[_0x3226b8('0x5')](function(_0x114c35){const _0x311ea6=_0x3226b8;return _0x46e48d=_0x114c35,db[_0x311ea6('0xc')]['create'](_0x172c07['body']);})[_0x3226b8('0x5')](function(_0x2c1eb3){const _0x1bcb5d=_0x3226b8;if(_0x46e48d[_0x1bcb5d('0x16')]&&fs['existsSync'](_0x2c1eb3[_0x1bcb5d('0x19')])){const _0x528aa1=util[_0x1bcb5d('0xe')]('%s.cypher',_0x2c1eb3['value']);return _0x116545[_0x1bcb5d('0xd')](_0x2c1eb3[_0x1bcb5d('0x19')],_0x528aa1,config[_0x1bcb5d('0x15')][_0x1bcb5d('0x4')])[_0x1bcb5d('0x5')](function(){const _0x2c90a5=_0x1bcb5d;return fs['unlink'](_0x2c1eb3[_0x2c90a5('0x19')]),logger['info'](_0x2c90a5('0x14')),_0x2c1eb3;});}return _0x2c1eb3;})[_0x3226b8('0x5')](function(_0x81d1c3){const _0xc55e28=_0x3226b8;logger['info'](_0xc55e28('0x8'),_0x172c07),logger[_0xc55e28('0x11')](_0xc55e28('0x8'),_0x172c07,JSON['stringify'](_0x81d1c3)),_0x6398bd(_0x81d1c3);})[_0x3226b8('0x17')](function(_0x282c25){const _0x16063b=_0x3226b8;logger[_0x16063b('0xb')]('CreateVoiceRecording',_0x282c25[_0x16063b('0x1')],_0x172c07),_0x5cef1a(_0x1a3ee7[_0x16063b('0xb')](0x1f4,_0x282c25[_0x16063b('0x1')]));});});}; \ No newline at end of file +const a773_0x177c=['util','limit','update','../../config/logger','recording','stringify','format','info','Setting','create','catch','value','UpdateVoiceRecording','error','CreateVoiceRecording','existsSync','../../config/environment','message','where','raw','body','then','debug','../../mysqldb','VoiceRecording','secrets','CreateVoiceRecording\x20file\x20encrypted','encryptFile','options'];(function(_0x4872bc,_0x177c59){const _0x44ba91=function(_0x180622){while(--_0x180622){_0x4872bc['push'](_0x4872bc['shift']());}};_0x44ba91(++_0x177c59);}(a773_0x177c,0x178));const a773_0x44ba=function(_0x4872bc,_0x177c59){_0x4872bc=_0x4872bc-0x0;let _0x44ba91=a773_0x177c[_0x4872bc];return _0x44ba91;};const _0xa09288=a773_0x44ba;'use strict';const util=require(_0xa09288('0x1')),fs=require('fs'),db=require(_0xa09288('0x18'))['db'],logger=require(_0xa09288('0x4'))('rpc'),config=require(_0xa09288('0x11'));exports[_0xa09288('0xd')]=function(_0x180622){const _0x1abf61=this;return new Promise(function(_0x4fa331,_0x26dc28){const _0x3e79b7=a773_0x44ba;return db[_0x3e79b7('0x19')][_0x3e79b7('0x3')](_0x180622[_0x3e79b7('0x15')],{'raw':_0x180622[_0x3e79b7('0x0')]?_0x180622[_0x3e79b7('0x0')][_0x3e79b7('0x14')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x180622[_0x3e79b7('0x0')]?_0x180622[_0x3e79b7('0x0')][_0x3e79b7('0x13')]||null:null,'attributes':_0x180622[_0x3e79b7('0x0')]?_0x180622[_0x3e79b7('0x0')]['attributes']||null:null,'limit':_0x180622[_0x3e79b7('0x0')]?_0x180622[_0x3e79b7('0x0')][_0x3e79b7('0x2')]||null:null})['then'](function(_0xd8d151){const _0xffe24a=_0x3e79b7;logger[_0xffe24a('0x8')](_0xffe24a('0xd'),_0x180622),logger[_0xffe24a('0x17')](_0xffe24a('0xd'),_0x180622,JSON[_0xffe24a('0x6')](_0xd8d151)),_0x4fa331(_0xd8d151);})['catch'](function(_0x259727){const _0xa025cb=_0x3e79b7;logger[_0xa025cb('0xe')](_0xa025cb('0xd'),_0x259727['message'],_0x180622),_0x26dc28(_0x1abf61[_0xa025cb('0xe')](0x1f4,_0x259727[_0xa025cb('0x12')]));});});},exports['CreateVoiceRecording']=function(_0x299b26){const _0x201ca7=this;return new Promise(function(_0x57d22e,_0x3cc66b){const _0x539df6=a773_0x44ba,_0x4ef6b9=require('../../components/encryptor');let _0x75baa6;return db[_0x539df6('0x9')]['findOne']({'attributes':['id','callRecordingEncryption'],'where':{'id':0x1},'raw':!![]})[_0x539df6('0x16')](function(_0x2b8e84){const _0x419def=_0x539df6;return _0x75baa6=_0x2b8e84,db[_0x419def('0x19')][_0x419def('0xa')](_0x299b26[_0x419def('0x15')]);})[_0x539df6('0x16')](function(_0x5721b1){const _0x4fcbcb=_0x539df6;if(_0x75baa6['callRecordingEncryption']&&fs[_0x4fcbcb('0x10')](_0x5721b1[_0x4fcbcb('0xc')])){const _0x1ca05a=util[_0x4fcbcb('0x7')]('%s.cypher',_0x5721b1[_0x4fcbcb('0xc')]);return _0x4ef6b9[_0x4fcbcb('0x1c')](_0x5721b1['value'],_0x1ca05a,config[_0x4fcbcb('0x1a')][_0x4fcbcb('0x5')])[_0x4fcbcb('0x16')](function(){const _0x2e341d=_0x4fcbcb;return fs['unlink'](_0x5721b1[_0x2e341d('0xc')]),logger[_0x2e341d('0x8')](_0x2e341d('0x1b')),_0x5721b1;});}return _0x5721b1;})[_0x539df6('0x16')](function(_0x27d516){const _0x33e5bf=_0x539df6;logger[_0x33e5bf('0x8')]('CreateVoiceRecording',_0x299b26),logger[_0x33e5bf('0x17')](_0x33e5bf('0xf'),_0x299b26,JSON[_0x33e5bf('0x6')](_0x27d516)),_0x57d22e(_0x27d516);})[_0x539df6('0xb')](function(_0x50fb03){const _0x23b2f4=_0x539df6;logger[_0x23b2f4('0xe')]('CreateVoiceRecording',_0x50fb03[_0x23b2f4('0x12')],_0x299b26),_0x3cc66b(_0x201ca7['error'](0x1f4,_0x50fb03[_0x23b2f4('0x12')]));});});}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/index.js b/server/api/voiceTransferReport/index.js index de26447..1662091 100644 --- a/server/api/voiceTransferReport/index.js +++ b/server/api/voiceTransferReport/index.js @@ -1 +1 @@ -const a774_0x5ad2=['exports','get','./voiceTransferReport.controller','Router','../../components/auth/service','post','destroy','express','delete','/:id','put','show','isAuthenticated'];(function(_0x28fbdc,_0x5ad2b4){const _0xfc17a2=function(_0x3736bf){while(--_0x3736bf){_0x28fbdc['push'](_0x28fbdc['shift']());}};_0xfc17a2(++_0x5ad2b4);}(a774_0x5ad2,0x161));const a774_0xfc17=function(_0x28fbdc,_0x5ad2b4){_0x28fbdc=_0x28fbdc-0x0;let _0xfc17a2=a774_0x5ad2[_0x28fbdc];return _0xfc17a2;};const _0x1d1113=a774_0xfc17;'use strict';const express=require(_0x1d1113('0x5')),router=express[_0x1d1113('0x1')](),auth=require(_0x1d1113('0x2')),controller=require(_0x1d1113('0x0'));router[_0x1d1113('0xc')]('/',auth[_0x1d1113('0xa')](),controller['index']),router[_0x1d1113('0xc')]('/:id',auth[_0x1d1113('0xa')](),controller[_0x1d1113('0x9')]),router[_0x1d1113('0x3')]('/',auth[_0x1d1113('0xa')](),controller['create']),router[_0x1d1113('0x8')]('/:id',auth['isAuthenticated'](),controller['update']),router[_0x1d1113('0x6')](_0x1d1113('0x7'),auth[_0x1d1113('0xa')](),controller[_0x1d1113('0x4')]),module[_0x1d1113('0xb')]=router; \ No newline at end of file +const a774_0x514d=['update','/:id','show','isAuthenticated','get','index','Router','post','exports','./voiceTransferReport.controller','create','express','destroy'];(function(_0x394dc8,_0x514dd1){const _0x279f68=function(_0x39706a){while(--_0x39706a){_0x394dc8['push'](_0x394dc8['shift']());}};_0x279f68(++_0x514dd1);}(a774_0x514d,0x1d5));const a774_0x279f=function(_0x394dc8,_0x514dd1){_0x394dc8=_0x394dc8-0x0;let _0x279f68=a774_0x514d[_0x394dc8];return _0x279f68;};const _0x1b3df1=a774_0x279f;'use strict';const express=require(_0x1b3df1('0xa')),router=express[_0x1b3df1('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x1b3df1('0x8'));router[_0x1b3df1('0x3')]('/',auth['isAuthenticated'](),controller[_0x1b3df1('0x4')]),router[_0x1b3df1('0x3')](_0x1b3df1('0x0'),auth[_0x1b3df1('0x2')](),controller[_0x1b3df1('0x1')]),router[_0x1b3df1('0x6')]('/',auth[_0x1b3df1('0x2')](),controller[_0x1b3df1('0x9')]),router['put'](_0x1b3df1('0x0'),auth['isAuthenticated'](),controller[_0x1b3df1('0xc')]),router['delete'](_0x1b3df1('0x0'),auth['isAuthenticated'](),controller[_0x1b3df1('0xb')]),module[_0x1b3df1('0x7')]=router; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.attributes.js b/server/api/voiceTransferReport/voiceTransferReport.attributes.js index 2b6d640..627c089 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.attributes.js +++ b/server/api/voiceTransferReport/voiceTransferReport.attributes.js @@ -1 +1 @@ -const a775_0x3eef=['attended','ENUM','STRING','exports','blind','Yes'];(function(_0x3c8837,_0x3eef57){const _0x17862a=function(_0x4e5694){while(--_0x4e5694){_0x3c8837['push'](_0x3c8837['shift']());}};_0x17862a(++_0x3eef57);}(a775_0x3eef,0x121));const a775_0x1786=function(_0x3c8837,_0x3eef57){_0x3c8837=_0x3c8837-0x0;let _0x17862a=a775_0x3eef[_0x3c8837];return _0x17862a;};const _0x4e6b37=a775_0x1786;'use strict';const Sequelize=require('sequelize');module[_0x4e6b37('0x2')]={'type':{'type':Sequelize[_0x4e6b37('0x0')](_0x4e6b37('0x3'),_0x4e6b37('0x5'))},'result':{'type':Sequelize[_0x4e6b37('0x1')]},'transfererchannel':{'type':Sequelize['STRING']},'transferercalleridnum':{'type':Sequelize[_0x4e6b37('0x1')]},'transferercalleridname':{'type':Sequelize[_0x4e6b37('0x1')]},'transfererconnectedlinenum':{'type':Sequelize['STRING']},'transfererconnectedlinename':{'type':Sequelize[_0x4e6b37('0x1')]},'transfereraccountcode':{'type':Sequelize[_0x4e6b37('0x1')]},'transferercontext':{'type':Sequelize[_0x4e6b37('0x1')]},'transfererexten':{'type':Sequelize['STRING']},'transfererlinkedid':{'type':Sequelize[_0x4e6b37('0x1')]},'transfereechannel':{'type':Sequelize['STRING']},'transfereecalleridnum':{'type':Sequelize['STRING']},'transfereecalleridname':{'type':Sequelize[_0x4e6b37('0x1')]},'transfereeconnectedlinenum':{'type':Sequelize[_0x4e6b37('0x1')]},'transfereeconnectedlinename':{'type':Sequelize[_0x4e6b37('0x1')]},'transfereeaccountcode':{'type':Sequelize[_0x4e6b37('0x1')]},'transfereecontext':{'type':Sequelize[_0x4e6b37('0x1')]},'transfereeexten':{'type':Sequelize[_0x4e6b37('0x1')]},'transfereelinkedid':{'type':Sequelize[_0x4e6b37('0x1')]},'isexternal':{'type':Sequelize[_0x4e6b37('0x0')](_0x4e6b37('0x4'),'No')},'context':{'type':Sequelize['STRING']},'extension':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a775_0xffae=['STRING','exports','ENUM','sequelize','attended','Yes'];(function(_0x3880fc,_0xffae3d){const _0x591d46=function(_0x41ea4c){while(--_0x41ea4c){_0x3880fc['push'](_0x3880fc['shift']());}};_0x591d46(++_0xffae3d);}(a775_0xffae,0x154));const a775_0x591d=function(_0x3880fc,_0xffae3d){_0x3880fc=_0x3880fc-0x0;let _0x591d46=a775_0xffae[_0x3880fc];return _0x591d46;};const _0x9f6974=a775_0x591d;'use strict';const Sequelize=require(_0x9f6974('0x5'));module[_0x9f6974('0x3')]={'type':{'type':Sequelize[_0x9f6974('0x4')]('blind',_0x9f6974('0x0'))},'result':{'type':Sequelize['STRING']},'transfererchannel':{'type':Sequelize[_0x9f6974('0x2')]},'transferercalleridnum':{'type':Sequelize[_0x9f6974('0x2')]},'transferercalleridname':{'type':Sequelize['STRING']},'transfererconnectedlinenum':{'type':Sequelize[_0x9f6974('0x2')]},'transfererconnectedlinename':{'type':Sequelize[_0x9f6974('0x2')]},'transfereraccountcode':{'type':Sequelize[_0x9f6974('0x2')]},'transferercontext':{'type':Sequelize['STRING']},'transfererexten':{'type':Sequelize[_0x9f6974('0x2')]},'transfererlinkedid':{'type':Sequelize[_0x9f6974('0x2')]},'transfereechannel':{'type':Sequelize[_0x9f6974('0x2')]},'transfereecalleridnum':{'type':Sequelize[_0x9f6974('0x2')]},'transfereecalleridname':{'type':Sequelize[_0x9f6974('0x2')]},'transfereeconnectedlinenum':{'type':Sequelize[_0x9f6974('0x2')]},'transfereeconnectedlinename':{'type':Sequelize[_0x9f6974('0x2')]},'transfereeaccountcode':{'type':Sequelize[_0x9f6974('0x2')]},'transfereecontext':{'type':Sequelize['STRING']},'transfereeexten':{'type':Sequelize[_0x9f6974('0x2')]},'transfereelinkedid':{'type':Sequelize['STRING']},'isexternal':{'type':Sequelize['ENUM'](_0x9f6974('0x1'),'No')},'context':{'type':Sequelize[_0x9f6974('0x2')]},'extension':{'type':Sequelize[_0x9f6974('0x2')]}}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.controller.js b/server/api/voiceTransferReport/voiceTransferReport.controller.js index 0a9bde8..389d938 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.controller.js +++ b/server/api/voiceTransferReport/voiceTransferReport.controller.js @@ -1 +1 @@ -const a776_0x27ae=['model','like','create','../../config/logger','key','VoiceTransferReport','limit','../../mysqldb','params','then','count','destroy','include','status','type','json','order','pick','offset','sendStatus','findAll','rawAttributes','../../components/parsers/qs','catch','attributes','update','merge','sequelize','fieldName','map','fields','length','api','undefined','keys','stack','intersection','findOne','body','Content-Range','where','name','show','sort','lodash','filter','filters','includeAll','query','send','nolimit'];(function(_0x125911,_0x27aec3){const _0x400d3f=function(_0x46f08){while(--_0x46f08){_0x125911['push'](_0x125911['shift']());}};_0x400d3f(++_0x27aec3);}(a776_0x27ae,0x1d8));const a776_0x400d=function(_0x125911,_0x27aec3){_0x125911=_0x125911-0x0;let _0x400d3f=a776_0x27ae[_0x125911];return _0x400d3f;};const _0x42d4e1=a776_0x400d;'use strict';const _=require(_0x42d4e1('0x1f')),qs=require(_0x42d4e1('0x9')),logger=require(_0x42d4e1('0x29'))(_0x42d4e1('0x13')),db=require(_0x42d4e1('0x2d'))['db'],{Op}=require(_0x42d4e1('0xe'));function respondWithResult(_0x46f08,_0x2cf5fe){return _0x2cf5fe=_0x2cf5fe||0xc8,function(_0x11798c){const _0x3621aa=a776_0x400d;if(_0x11798c)return _0x46f08[_0x3621aa('0x0')](_0x2cf5fe)[_0x3621aa('0x2')](_0x11798c);};}function respondWithFilteredResult(_0x16ecaa,_0x36a2a9){return function(_0x43addb){const _0x30045d=a776_0x400d;if(_0x43addb){const _0x65f309=_0x43addb[_0x30045d('0x30')],_0x588f4b=_0x36a2a9[_0x30045d('0x5')];let _0x31e83f=_0x36a2a9['offset']+_0x36a2a9[_0x30045d('0x2c')],_0x265e0b;return _0x31e83f>=_0x65f309?(_0x31e83f=_0x65f309,_0x265e0b=0xc8):_0x265e0b=0xce,_0x16ecaa[_0x30045d('0x0')](_0x265e0b),_0x16ecaa['set'](_0x30045d('0x1a'),_0x588f4b+'-'+_0x31e83f+'/'+_0x65f309)[_0x30045d('0x2')](_0x43addb);}return null;};}function saveUpdates(_0x4085ff){return function(_0x5015e0){const _0x37ddfe=a776_0x400d;if(_0x5015e0)return _0x5015e0[_0x37ddfe('0xc')](_0x4085ff)[_0x37ddfe('0x2f')](function(_0x2271ca){return _0x2271ca;});return null;};}function removeEntity(_0x1d49ab){return function(_0x3a6c36){const _0x515ea9=a776_0x400d;if(_0x3a6c36)return _0x3a6c36[_0x515ea9('0x31')]()[_0x515ea9('0x2f')](function(){_0x1d49ab['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x175d39){return function(_0x23652f){const _0xdb4b0=a776_0x400d;return!_0x23652f&&_0x175d39[_0xdb4b0('0x6')](0x194),_0x23652f;};}function handleError(_0xe54857,_0x2e490d){return _0x2e490d=_0x2e490d||0x1f4,function(_0x413f9b){const _0x3aae7f=a776_0x400d;logger['error'](_0x413f9b[_0x3aae7f('0x16')]),_0x413f9b['name']&&delete _0x413f9b[_0x3aae7f('0x1c')],_0xe54857['status'](_0x2e490d)[_0x3aae7f('0x24')](_0x413f9b);};}exports['index']=function(_0x1b1a2c,_0x43d4ad){const _0x2e8e25=_0x42d4e1;let _0x2497fe={};const _0x48a7e2={},_0x41f316={'count':0x0,'rows':[]},_0x471598=_['map'](db[_0x2e8e25('0x2b')]['rawAttributes'],function(_0x131958){const _0x3a9b1a=_0x2e8e25;return{'name':_0x131958[_0x3a9b1a('0xf')],'type':_0x131958[_0x3a9b1a('0x1')][_0x3a9b1a('0x2a')]};});_0x48a7e2[_0x2e8e25('0x26')]=_['map'](_0x471598,'name'),_0x48a7e2['query']=_[_0x2e8e25('0x15')](_0x1b1a2c[_0x2e8e25('0x23')]),_0x48a7e2[_0x2e8e25('0x21')]=_[_0x2e8e25('0x17')](_0x48a7e2[_0x2e8e25('0x26')],_0x48a7e2[_0x2e8e25('0x23')]),_0x2497fe[_0x2e8e25('0xb')]=_[_0x2e8e25('0x17')](_0x48a7e2[_0x2e8e25('0x26')],qs[_0x2e8e25('0x11')](_0x1b1a2c[_0x2e8e25('0x23')]['fields'])),_0x2497fe[_0x2e8e25('0xb')]=_0x2497fe[_0x2e8e25('0xb')]['length']?_0x2497fe['attributes']:_0x48a7e2['model'];typeof _0x1b1a2c[_0x2e8e25('0x23')][_0x2e8e25('0x25')]===_0x2e8e25('0x14')&&(_0x2497fe['limit']=qs['limit'](_0x1b1a2c[_0x2e8e25('0x23')][_0x2e8e25('0x2c')]),_0x2497fe[_0x2e8e25('0x5')]=qs['offset'](_0x1b1a2c[_0x2e8e25('0x23')][_0x2e8e25('0x5')]));_0x2497fe[_0x2e8e25('0x3')]=qs[_0x2e8e25('0x1e')](_0x1b1a2c[_0x2e8e25('0x23')][_0x2e8e25('0x1e')]),_0x2497fe[_0x2e8e25('0x1b')]=qs[_0x2e8e25('0x21')](_[_0x2e8e25('0x4')](_0x1b1a2c[_0x2e8e25('0x23')],_0x48a7e2['filters']),_0x471598);_0x1b1a2c[_0x2e8e25('0x23')]['filter']&&(_0x2497fe['where']=_[_0x2e8e25('0xd')](_0x2497fe[_0x2e8e25('0x1b')],{[Op['or']]:_[_0x2e8e25('0x10')](_0x471598,function(_0x2bd21f){const _0xb24248=_0x2e8e25;if(_0x2bd21f[_0xb24248('0x1')]!=='VIRTUAL'){const _0x41ba1c={};return _0x41ba1c[_0x2bd21f['name']]={[Op[_0xb24248('0x27')]]:'%'+_0x1b1a2c[_0xb24248('0x23')][_0xb24248('0x20')]+'%'},_0x41ba1c;}})}));_0x2497fe=_[_0x2e8e25('0xd')]({},_0x2497fe,_0x1b1a2c['options']);const _0x180a49={'where':_0x2497fe[_0x2e8e25('0x1b')]};return db[_0x2e8e25('0x2b')][_0x2e8e25('0x30')](_0x180a49)['then'](function(_0x4bdb57){const _0x2803ed=_0x2e8e25;return _0x41f316[_0x2803ed('0x30')]=_0x4bdb57,_0x1b1a2c[_0x2803ed('0x23')][_0x2803ed('0x22')]&&(_0x2497fe[_0x2803ed('0x32')]=[{'all':!![]}]),db[_0x2803ed('0x2b')][_0x2803ed('0x7')](_0x2497fe);})[_0x2e8e25('0x2f')](function(_0x26af46){return _0x41f316['rows']=_0x26af46,_0x41f316;})['then'](respondWithFilteredResult(_0x43d4ad,_0x2497fe))[_0x2e8e25('0xa')](handleError(_0x43d4ad,null));},exports[_0x42d4e1('0x1d')]=function(_0x21364c,_0x19d576){const _0x293334=_0x42d4e1;let _0x6e6a69={'raw':!![],'where':{'id':_0x21364c[_0x293334('0x2e')]['id']}};const _0x5bd11a={};return _0x5bd11a['model']=_['keys'](db[_0x293334('0x2b')][_0x293334('0x8')]),_0x5bd11a['query']=_['keys'](_0x21364c[_0x293334('0x23')]),_0x5bd11a['filters']=_['intersection'](_0x5bd11a[_0x293334('0x26')],_0x5bd11a['query']),_0x6e6a69[_0x293334('0xb')]=_[_0x293334('0x17')](_0x5bd11a[_0x293334('0x26')],qs[_0x293334('0x11')](_0x21364c[_0x293334('0x23')][_0x293334('0x11')])),_0x6e6a69[_0x293334('0xb')]=_0x6e6a69[_0x293334('0xb')][_0x293334('0x12')]?_0x6e6a69[_0x293334('0xb')]:_0x5bd11a[_0x293334('0x26')],_0x21364c[_0x293334('0x23')][_0x293334('0x22')]&&(_0x6e6a69[_0x293334('0x32')]=[{'all':!![]}]),_0x6e6a69=_['merge']({},_0x6e6a69,_0x21364c['options']),db[_0x293334('0x2b')][_0x293334('0x18')](_0x6e6a69)[_0x293334('0x2f')](handleEntityNotFound(_0x19d576,null))['then'](respondWithResult(_0x19d576,null))[_0x293334('0xa')](handleError(_0x19d576,null));},exports[_0x42d4e1('0x28')]=function(_0x6d6009,_0x36d763){const _0x1f7cec=_0x42d4e1;return db['VoiceTransferReport']['create'](_0x6d6009[_0x1f7cec('0x19')],{})[_0x1f7cec('0x2f')](respondWithResult(_0x36d763,0xc9))[_0x1f7cec('0xa')](handleError(_0x36d763,null));},exports['update']=function(_0x2019a1,_0x5a370c){const _0x10a696=_0x42d4e1;return _0x2019a1[_0x10a696('0x19')]['id']&&delete _0x2019a1[_0x10a696('0x19')]['id'],db['VoiceTransferReport'][_0x10a696('0x18')]({'where':{'id':_0x2019a1[_0x10a696('0x2e')]['id']}})[_0x10a696('0x2f')](handleEntityNotFound(_0x5a370c,null))[_0x10a696('0x2f')](saveUpdates(_0x2019a1['body'],null))[_0x10a696('0x2f')](respondWithResult(_0x5a370c,null))[_0x10a696('0xa')](handleError(_0x5a370c,null));},exports[_0x42d4e1('0x31')]=function(_0x20c6ca,_0x3b981d){const _0x302ff7=_0x42d4e1;return db[_0x302ff7('0x2b')][_0x302ff7('0x18')]({'where':{'id':_0x20c6ca[_0x302ff7('0x2e')]['id']}})[_0x302ff7('0x2f')](handleEntityNotFound(_0x3b981d,null))[_0x302ff7('0x2f')](removeEntity(_0x3b981d,null))['catch'](handleError(_0x3b981d,null));}; \ No newline at end of file +const a776_0x3fa0=['fields','status','then','api','sort','type','set','body','send','filter','findOne','sendStatus','nolimit','lodash','merge','../../config/logger','catch','sequelize','limit','query','params','options','map','findAll','error','fieldName','key','VoiceTransferReport','name','end','rawAttributes','attributes','includeAll','keys','include','../../components/parsers/qs','destroy','index','length','../../mysqldb','json','VIRTUAL','where','filters','model','create','count','update','offset','intersection','Content-Range','order','stack'];(function(_0x2d553e,_0x3fa056){const _0x26d936=function(_0xa7e10e){while(--_0xa7e10e){_0x2d553e['push'](_0x2d553e['shift']());}};_0x26d936(++_0x3fa056);}(a776_0x3fa0,0x9b));const a776_0x26d9=function(_0x2d553e,_0x3fa056){_0x2d553e=_0x2d553e-0x0;let _0x26d936=a776_0x3fa0[_0x2d553e];return _0x26d936;};const _0x4225e1=a776_0x26d9;'use strict';const _=require(_0x4225e1('0x11')),qs=require(_0x4225e1('0x27')),logger=require(_0x4225e1('0x13'))(_0x4225e1('0x7')),db=require(_0x4225e1('0x2b'))['db'],{Op}=require(_0x4225e1('0x15'));function respondWithResult(_0xa7e10e,_0x20b469){return _0x20b469=_0x20b469||0xc8,function(_0xa05090){const _0x413062=a776_0x26d9;if(_0xa05090)return _0xa7e10e[_0x413062('0x5')](_0x20b469)[_0x413062('0x2c')](_0xa05090);};}function respondWithFilteredResult(_0x354127,_0x2d1faf){return function(_0x377ed3){const _0x12834d=a776_0x26d9;if(_0x377ed3){const _0x29d41e=_0x377ed3[_0x12834d('0x32')],_0x449b3b=_0x2d1faf[_0x12834d('0x34')];let _0x19a96f=_0x2d1faf['offset']+_0x2d1faf[_0x12834d('0x16')],_0x12545d;return _0x19a96f>=_0x29d41e?(_0x19a96f=_0x29d41e,_0x12545d=0xc8):_0x12545d=0xce,_0x354127['status'](_0x12545d),_0x354127[_0x12834d('0xa')](_0x12834d('0x1'),_0x449b3b+'-'+_0x19a96f+'/'+_0x29d41e)[_0x12834d('0x2c')](_0x377ed3);}return null;};}function saveUpdates(_0x238c86){return function(_0x1eba3a){const _0x44b063=a776_0x26d9;if(_0x1eba3a)return _0x1eba3a[_0x44b063('0x33')](_0x238c86)[_0x44b063('0x6')](function(_0x43efc0){return _0x43efc0;});return null;};}function removeEntity(_0x453311){return function(_0x139ada){const _0x9a7980=a776_0x26d9;if(_0x139ada)return _0x139ada['destroy']()[_0x9a7980('0x6')](function(){const _0x1f09c0=_0x9a7980;_0x453311[_0x1f09c0('0x5')](0xcc)[_0x1f09c0('0x21')]();});};}function handleEntityNotFound(_0x3c6fa7){return function(_0x3f4ee3){const _0x531388=a776_0x26d9;return!_0x3f4ee3&&_0x3c6fa7[_0x531388('0xf')](0x194),_0x3f4ee3;};}function handleError(_0x218038,_0x21e750){return _0x21e750=_0x21e750||0x1f4,function(_0x121afa){const _0x48d7d2=a776_0x26d9;logger[_0x48d7d2('0x1c')](_0x121afa[_0x48d7d2('0x3')]),_0x121afa['name']&&delete _0x121afa[_0x48d7d2('0x20')],_0x218038[_0x48d7d2('0x5')](_0x21e750)[_0x48d7d2('0xc')](_0x121afa);};}exports[_0x4225e1('0x29')]=function(_0x14697d,_0x3b130e){const _0x2699cb=_0x4225e1;let _0x27bafc={};const _0xe9989={},_0x462015={'count':0x0,'rows':[]},_0x3c3516=_[_0x2699cb('0x1a')](db[_0x2699cb('0x1f')][_0x2699cb('0x22')],function(_0x1710cd){const _0x56d164=_0x2699cb;return{'name':_0x1710cd[_0x56d164('0x1d')],'type':_0x1710cd[_0x56d164('0x9')][_0x56d164('0x1e')]};});_0xe9989[_0x2699cb('0x30')]=_[_0x2699cb('0x1a')](_0x3c3516,_0x2699cb('0x20')),_0xe9989[_0x2699cb('0x17')]=_[_0x2699cb('0x25')](_0x14697d[_0x2699cb('0x17')]),_0xe9989['filters']=_[_0x2699cb('0x0')](_0xe9989[_0x2699cb('0x30')],_0xe9989[_0x2699cb('0x17')]),_0x27bafc[_0x2699cb('0x23')]=_[_0x2699cb('0x0')](_0xe9989[_0x2699cb('0x30')],qs[_0x2699cb('0x4')](_0x14697d[_0x2699cb('0x17')][_0x2699cb('0x4')])),_0x27bafc[_0x2699cb('0x23')]=_0x27bafc[_0x2699cb('0x23')][_0x2699cb('0x2a')]?_0x27bafc[_0x2699cb('0x23')]:_0xe9989['model'];typeof _0x14697d[_0x2699cb('0x17')][_0x2699cb('0x10')]==='undefined'&&(_0x27bafc[_0x2699cb('0x16')]=qs['limit'](_0x14697d['query'][_0x2699cb('0x16')]),_0x27bafc['offset']=qs[_0x2699cb('0x34')](_0x14697d[_0x2699cb('0x17')]['offset']));_0x27bafc[_0x2699cb('0x2')]=qs['sort'](_0x14697d[_0x2699cb('0x17')][_0x2699cb('0x8')]),_0x27bafc['where']=qs[_0x2699cb('0x2f')](_['pick'](_0x14697d[_0x2699cb('0x17')],_0xe9989[_0x2699cb('0x2f')]),_0x3c3516);_0x14697d[_0x2699cb('0x17')][_0x2699cb('0xd')]&&(_0x27bafc['where']=_['merge'](_0x27bafc[_0x2699cb('0x2e')],{[Op['or']]:_[_0x2699cb('0x1a')](_0x3c3516,function(_0x46f44e){const _0x168a5f=_0x2699cb;if(_0x46f44e['type']!==_0x168a5f('0x2d')){const _0x4641f7={};return _0x4641f7[_0x46f44e['name']]={[Op['like']]:'%'+_0x14697d['query']['filter']+'%'},_0x4641f7;}})}));_0x27bafc=_[_0x2699cb('0x12')]({},_0x27bafc,_0x14697d[_0x2699cb('0x19')]);const _0x1d5eca={'where':_0x27bafc[_0x2699cb('0x2e')]};return db[_0x2699cb('0x1f')][_0x2699cb('0x32')](_0x1d5eca)['then'](function(_0x23e3a4){const _0x4dba1d=_0x2699cb;return _0x462015['count']=_0x23e3a4,_0x14697d[_0x4dba1d('0x17')][_0x4dba1d('0x24')]&&(_0x27bafc[_0x4dba1d('0x26')]=[{'all':!![]}]),db[_0x4dba1d('0x1f')][_0x4dba1d('0x1b')](_0x27bafc);})[_0x2699cb('0x6')](function(_0x22af33){return _0x462015['rows']=_0x22af33,_0x462015;})[_0x2699cb('0x6')](respondWithFilteredResult(_0x3b130e,_0x27bafc))[_0x2699cb('0x14')](handleError(_0x3b130e,null));},exports['show']=function(_0x54f54c,_0x186719){const _0x460c1a=_0x4225e1;let _0x5e01c6={'raw':!![],'where':{'id':_0x54f54c['params']['id']}};const _0x703c31={};return _0x703c31[_0x460c1a('0x30')]=_['keys'](db['VoiceTransferReport'][_0x460c1a('0x22')]),_0x703c31[_0x460c1a('0x17')]=_[_0x460c1a('0x25')](_0x54f54c['query']),_0x703c31[_0x460c1a('0x2f')]=_['intersection'](_0x703c31[_0x460c1a('0x30')],_0x703c31[_0x460c1a('0x17')]),_0x5e01c6[_0x460c1a('0x23')]=_[_0x460c1a('0x0')](_0x703c31['model'],qs[_0x460c1a('0x4')](_0x54f54c[_0x460c1a('0x17')][_0x460c1a('0x4')])),_0x5e01c6[_0x460c1a('0x23')]=_0x5e01c6[_0x460c1a('0x23')][_0x460c1a('0x2a')]?_0x5e01c6[_0x460c1a('0x23')]:_0x703c31['model'],_0x54f54c['query']['includeAll']&&(_0x5e01c6[_0x460c1a('0x26')]=[{'all':!![]}]),_0x5e01c6=_[_0x460c1a('0x12')]({},_0x5e01c6,_0x54f54c[_0x460c1a('0x19')]),db[_0x460c1a('0x1f')][_0x460c1a('0xe')](_0x5e01c6)[_0x460c1a('0x6')](handleEntityNotFound(_0x186719,null))[_0x460c1a('0x6')](respondWithResult(_0x186719,null))['catch'](handleError(_0x186719,null));},exports[_0x4225e1('0x31')]=function(_0x34299e,_0xd6ebe){const _0xbe8f80=_0x4225e1;return db['VoiceTransferReport']['create'](_0x34299e[_0xbe8f80('0xb')],{})[_0xbe8f80('0x6')](respondWithResult(_0xd6ebe,0xc9))[_0xbe8f80('0x14')](handleError(_0xd6ebe,null));},exports['update']=function(_0x44efa2,_0x1ca861){const _0x381e73=_0x4225e1;return _0x44efa2[_0x381e73('0xb')]['id']&&delete _0x44efa2[_0x381e73('0xb')]['id'],db[_0x381e73('0x1f')][_0x381e73('0xe')]({'where':{'id':_0x44efa2[_0x381e73('0x18')]['id']}})[_0x381e73('0x6')](handleEntityNotFound(_0x1ca861,null))['then'](saveUpdates(_0x44efa2[_0x381e73('0xb')],null))[_0x381e73('0x6')](respondWithResult(_0x1ca861,null))['catch'](handleError(_0x1ca861,null));},exports[_0x4225e1('0x28')]=function(_0x4a5efa,_0x50213d){const _0x198a7d=_0x4225e1;return db['VoiceTransferReport'][_0x198a7d('0xe')]({'where':{'id':_0x4a5efa[_0x198a7d('0x18')]['id']}})['then'](handleEntityNotFound(_0x50213d,null))['then'](removeEntity(_0x50213d,null))[_0x198a7d('0x14')](handleError(_0x50213d,null));}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.model.js b/server/api/voiceTransferReport/voiceTransferReport.model.js index d5a53ff..bd55d5d 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.model.js +++ b/server/api/voiceTransferReport/voiceTransferReport.model.js @@ -1 +1 @@ -const a777_0x24d4=['define','report_call_transfer','exports','VoiceTransferReport','./voiceTransferReport.attributes'];(function(_0x45716a,_0x24d491){const _0x3a6214=function(_0x4379d0){while(--_0x4379d0){_0x45716a['push'](_0x45716a['shift']());}};_0x3a6214(++_0x24d491);}(a777_0x24d4,0xfe));const a777_0x3a62=function(_0x45716a,_0x24d491){_0x45716a=_0x45716a-0x0;let _0x3a6214=a777_0x24d4[_0x45716a];return _0x3a6214;};const _0x45f3e0=a777_0x3a62;'use strict';const attributes=require(_0x45f3e0('0x0'));module[_0x45f3e0('0x3')]=function(_0x4379d0){const _0x484443=_0x45f3e0,_0x4c427b=_0x4379d0[_0x484443('0x1')](_0x484443('0x4'),attributes,{'tableName':_0x484443('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x4c427b;}; \ No newline at end of file +const a777_0x1a43=['define','report_call_transfer','./voiceTransferReport.attributes'];(function(_0x4468bb,_0x1a43c5){const _0x18679a=function(_0x2eb1bd){while(--_0x2eb1bd){_0x4468bb['push'](_0x4468bb['shift']());}};_0x18679a(++_0x1a43c5);}(a777_0x1a43,0xda));const a777_0x1867=function(_0x4468bb,_0x1a43c5){_0x4468bb=_0x4468bb-0x0;let _0x18679a=a777_0x1a43[_0x4468bb];return _0x18679a;};const _0x4160d2=a777_0x1867;'use strict';const attributes=require(_0x4160d2('0x0'));module['exports']=function(_0x2eb1bd){const _0x3e757d=_0x4160d2,_0x2eb769=_0x2eb1bd[_0x3e757d('0x1')]('VoiceTransferReport',attributes,{'tableName':_0x3e757d('0x2'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x2eb769;}; \ No newline at end of file diff --git a/server/api/voiceTransferReport/voiceTransferReport.rpc.js b/server/api/voiceTransferReport/voiceTransferReport.rpc.js index aaac7ba..ede206b 100644 --- a/server/api/voiceTransferReport/voiceTransferReport.rpc.js +++ b/server/api/voiceTransferReport/voiceTransferReport.rpc.js @@ -1 +1 @@ -const a778_0x3dcf=['body','then','../../mysqldb','info','options','error','catch','message','CreateVoiceTransferReport','create','rpc','raw','../../config/logger'];(function(_0x590644,_0x3dcf20){const _0x445a14=function(_0x41d3b2){while(--_0x41d3b2){_0x590644['push'](_0x590644['shift']());}};_0x445a14(++_0x3dcf20);}(a778_0x3dcf,0x159));const a778_0x445a=function(_0x590644,_0x3dcf20){_0x590644=_0x590644-0x0;let _0x445a14=a778_0x3dcf[_0x590644];return _0x445a14;};const _0x370cbf=a778_0x445a;'use strict';const db=require(_0x370cbf('0x8'))['db'],logger=require(_0x370cbf('0x5'))(_0x370cbf('0x3'));exports[_0x370cbf('0x1')]=function(_0x41d3b2){const _0x2d0d25=this;return new Promise(function(_0x2772a5,_0x28d40a){const _0x25d2e2=a778_0x445a;return db['VoiceTransferReport'][_0x25d2e2('0x2')](_0x41d3b2[_0x25d2e2('0x6')],{'raw':_0x41d3b2['options']?_0x41d3b2[_0x25d2e2('0xa')][_0x25d2e2('0x4')]===undefined?!![]:![]:!![]})[_0x25d2e2('0x7')](function(_0x27ff95){const _0x285402=_0x25d2e2;logger[_0x285402('0x9')]('CreateVoiceTransferReport',_0x41d3b2),logger['debug'](_0x285402('0x1'),_0x41d3b2,JSON['stringify'](_0x27ff95)),_0x2772a5(_0x27ff95);})[_0x25d2e2('0xc')](function(_0x322d4d){const _0xf4fa6c=_0x25d2e2;logger[_0xf4fa6c('0xb')](_0xf4fa6c('0x1'),_0x322d4d[_0xf4fa6c('0x0')],_0x41d3b2),_0x28d40a(_0x2d0d25[_0xf4fa6c('0xb')](0x1f4,_0x322d4d['message']));});});}; \ No newline at end of file +const a778_0x515f=['body','error','message','CreateVoiceTransferReport','VoiceTransferReport','create','../../mysqldb','then','options','info','debug','catch','../../config/logger','rpc'];(function(_0x39b7cc,_0x515f0d){const _0x8c2f56=function(_0x383073){while(--_0x383073){_0x39b7cc['push'](_0x39b7cc['shift']());}};_0x8c2f56(++_0x515f0d);}(a778_0x515f,0x15b));const a778_0x8c2f=function(_0x39b7cc,_0x515f0d){_0x39b7cc=_0x39b7cc-0x0;let _0x8c2f56=a778_0x515f[_0x39b7cc];return _0x8c2f56;};const _0x1989c6=a778_0x8c2f;'use strict';const db=require(_0x1989c6('0x9'))['db'],logger=require(_0x1989c6('0x1'))(_0x1989c6('0x2'));exports['CreateVoiceTransferReport']=function(_0x383073){const _0x337b5e=this;return new Promise(function(_0x295ad,_0x58dc66){const _0x29b2d8=a778_0x8c2f;return db[_0x29b2d8('0x7')][_0x29b2d8('0x8')](_0x383073[_0x29b2d8('0x3')],{'raw':_0x383073[_0x29b2d8('0xb')]?_0x383073[_0x29b2d8('0xb')]['raw']===undefined?!![]:![]:!![]})[_0x29b2d8('0xa')](function(_0x2babe7){const _0x3c1ea2=_0x29b2d8;logger[_0x3c1ea2('0xc')](_0x3c1ea2('0x6'),_0x383073),logger[_0x3c1ea2('0xd')](_0x3c1ea2('0x6'),_0x383073,JSON['stringify'](_0x2babe7)),_0x295ad(_0x2babe7);})[_0x29b2d8('0x0')](function(_0x5468f0){const _0x24ad2d=_0x29b2d8;logger[_0x24ad2d('0x4')](_0x24ad2d('0x6'),_0x5468f0[_0x24ad2d('0x5')],_0x383073),_0x58dc66(_0x337b5e[_0x24ad2d('0x4')](0x1f4,_0x5468f0[_0x24ad2d('0x5')]));});});}; \ No newline at end of file diff --git a/server/api/webbar/index.js b/server/api/webbar/index.js index 0266895..ebc9d15 100644 --- a/server/api/webbar/index.js +++ b/server/api/webbar/index.js @@ -1 +1 @@ -const a779_0xf27d=['transfer','isAuthenticated','canUpdate','/answer','/unhold','/transfer','Router','hangup','answer','/hangup','hold','./webbar.controller','originate','/hold','/calls','post'];(function(_0x2ab6cd,_0xf27dca){const _0xd66943=function(_0x4df9c2){while(--_0x4df9c2){_0x2ab6cd['push'](_0x2ab6cd['shift']());}};_0xd66943(++_0xf27dca);}(a779_0xf27d,0x163));const a779_0xd669=function(_0x2ab6cd,_0xf27dca){_0x2ab6cd=_0x2ab6cd-0x0;let _0xd66943=a779_0xf27d[_0x2ab6cd];return _0xd66943;};const _0xc1687=a779_0xd669;'use strict';const express=require('express'),router=express[_0xc1687('0x3')](),auth=require('../../components/auth/service'),controller=require(_0xc1687('0x8'));router[_0xc1687('0xc')]('/originate',auth['isAuthenticated'](),auth[_0xc1687('0xf')](),controller[_0xc1687('0x9')]),router[_0xc1687('0xc')](_0xc1687('0x6'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0xc1687('0x4')]),router[_0xc1687('0xc')](_0xc1687('0x0'),auth['isAuthenticated'](),auth[_0xc1687('0xf')](),controller[_0xc1687('0x5')]),router[_0xc1687('0xc')](_0xc1687('0xa'),auth[_0xc1687('0xe')](),auth[_0xc1687('0xf')](),controller[_0xc1687('0x7')]),router[_0xc1687('0xc')](_0xc1687('0x1'),auth[_0xc1687('0xe')](),auth[_0xc1687('0xf')](),controller['unhold']),router[_0xc1687('0xc')](_0xc1687('0xb'),auth[_0xc1687('0xe')](),auth[_0xc1687('0xf')](),controller['calls']),router[_0xc1687('0xc')](_0xc1687('0x2'),auth[_0xc1687('0xe')](),auth[_0xc1687('0xf')](),controller[_0xc1687('0xd')]),module['exports']=router; \ No newline at end of file +const a779_0x1fc9=['/hold','post','/answer','canUpdate','/hangup','/transfer','../../components/auth/service','./webbar.controller','hangup','/unhold','transfer','Router','hold','unhold','calls','originate','/calls','isAuthenticated','express'];(function(_0x1b7109,_0x1fc93e){const _0x730476=function(_0x85a4fd){while(--_0x85a4fd){_0x1b7109['push'](_0x1b7109['shift']());}};_0x730476(++_0x1fc93e);}(a779_0x1fc9,0xad));const a779_0x7304=function(_0x1b7109,_0x1fc93e){_0x1b7109=_0x1b7109-0x0;let _0x730476=a779_0x1fc9[_0x1b7109];return _0x730476;};const _0x12e0cc=a779_0x7304;'use strict';const express=require(_0x12e0cc('0x10')),router=express[_0x12e0cc('0x9')](),auth=require(_0x12e0cc('0x4')),controller=require(_0x12e0cc('0x5'));router[_0x12e0cc('0x12')]('/originate',auth['isAuthenticated'](),auth[_0x12e0cc('0x1')](),controller[_0x12e0cc('0xd')]),router[_0x12e0cc('0x12')](_0x12e0cc('0x2'),auth[_0x12e0cc('0xf')](),auth[_0x12e0cc('0x1')](),controller[_0x12e0cc('0x6')]),router['post'](_0x12e0cc('0x0'),auth[_0x12e0cc('0xf')](),auth[_0x12e0cc('0x1')](),controller['answer']),router['post'](_0x12e0cc('0x11'),auth['isAuthenticated'](),auth[_0x12e0cc('0x1')](),controller[_0x12e0cc('0xa')]),router[_0x12e0cc('0x12')](_0x12e0cc('0x7'),auth[_0x12e0cc('0xf')](),auth[_0x12e0cc('0x1')](),controller[_0x12e0cc('0xb')]),router[_0x12e0cc('0x12')](_0x12e0cc('0xe'),auth['isAuthenticated'](),auth['canUpdate'](),controller[_0x12e0cc('0xc')]),router[_0x12e0cc('0x12')](_0x12e0cc('0x3'),auth[_0x12e0cc('0xf')](),auth[_0x12e0cc('0x1')](),controller[_0x12e0cc('0x8')]),module['exports']=router; \ No newline at end of file diff --git a/server/api/webbar/webbar.controller.js b/server/api/webbar/webbar.controller.js index 4f521c9..c92dda3 100644 --- a/server/api/webbar/webbar.controller.js +++ b/server/api/webbar/webbar.controller.js @@ -1 +1 @@ -const a780_0x51e6=['conference\x20fired:','util','calls','hold','body','answer\x20executed!','format','user:%s','then','emit','unhold\x20executed!','transfer\x20executed!','lodash','json','number','callbackUrl','UserId','status','VoiceChannels','hangup\x20executed!','callerId','unhold\x20fired:','hold\x20executed!','conference\x20executed!','message','webbar:conference','callNumber\x20is\x20required','webbar:hangup','agent','userId','entityFound:','name','request','NotFound','webbar:originate','catch','webbar:transfer','userId\x20is\x20required','client','length','sessionId','transferNumber\x20is\x20required','stringify','jayson/promise','hangup\x20fired:','hold\x20fired:','info','webbar:answer','send','filter','callNumber','webbar:hold','all','handleError:','result','../../mysqldb','string','stack','validate','originate\x20fired:','answer','conference','error','webbar:unhold'];(function(_0x283134,_0x51e610){const _0x23a11c=function(_0x2dd18c){while(--_0x2dd18c){_0x283134['push'](_0x283134['shift']());}};_0x23a11c(++_0x51e610);}(a780_0x51e6,0x18d));const a780_0x23a1=function(_0x283134,_0x51e610){_0x283134=_0x283134-0x0;let _0x23a11c=a780_0x51e6[_0x283134];return _0x23a11c;};const _0x588a9b=a780_0x23a1;'use strict';const _=require(_0x588a9b('0x3f')),db=require(_0x588a9b('0x2a'))['db'],util=require(_0x588a9b('0x34')),jayson=require(_0x588a9b('0x1e')),amiClient=jayson[_0x588a9b('0x19')]['http']({'port':0x232a}),logger=require('../../config/logger')('webbarapi'),{getSocket}=require('../../rediscache'),io=getSocket(),Schema=require(_0x588a9b('0x2d')),originateValidation=new Schema({'userId':{'type':_0x588a9b('0x1'),'required':[!![],_0x588a9b('0x18')]},'callNumber':{'type':_0x588a9b('0x2b'),'required':[!![],_0x588a9b('0xd')]},'callerId':{'type':'string'},'callbackUrl':{'type':'string'}}),hangupValidation=new Schema({'userId':{'type':'number','required':[!![],_0x588a9b('0x18')]},'sessionId':{'type':'string','required':![]}}),answerValidation=new Schema({'userId':{'type':_0x588a9b('0x1'),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':_0x588a9b('0x2b'),'required':![]}}),transferValidation=new Schema({'userId':{'type':'number','required':[!![],_0x588a9b('0x18')]},'sessionId':{'type':'string','required':[!![],'sessionId\x20is\x20required']},'transferNumber':{'type':_0x588a9b('0x2b'),'required':[!![],_0x588a9b('0x1c')]}}),holdValidation=new Schema({'userId':{'type':'number','required':[!![],_0x588a9b('0x18')]},'sessionId':{'type':_0x588a9b('0x2b'),'required':![]}}),unholdValidation=new Schema({'userId':{'type':'number','required':[!![],_0x588a9b('0x18')]},'sessionId':{'type':_0x588a9b('0x2b'),'required':![]}}),callsValidation=new Schema({'userId':{'type':_0x588a9b('0x1'),'required':[!![],_0x588a9b('0x18')]}}),conferenceValidation=new Schema({'userId':{'type':_0x588a9b('0x1'),'required':[!![],_0x588a9b('0x18')]}});function emit(_0x2dd18c,_0xba9b7b,_0x1b1ae1){const _0x56313e=_0x588a9b;logger[_0x56313e('0x21')](_0x2dd18c,_0xba9b7b,JSON[_0x56313e('0x1d')](_0x1b1ae1)),io['to'](_0x2dd18c)[_0x56313e('0x3c')](_0xba9b7b,_0x1b1ae1);}function handleError(_0x5b4f01){return function(_0x4810f5){const _0x3a791b=a780_0x23a1;console['log'](_0x3a791b('0x28'),_0x4810f5,_0x4810f5 instanceof RangeError),logger[_0x3a791b('0x31')](_0x4810f5[_0x3a791b('0x2c')]),_0x4810f5 instanceof RangeError?(_0x4810f5['name']&&delete _0x4810f5[_0x3a791b('0x12')],_0x5b4f01[_0x3a791b('0x4')](0x194)[_0x3a791b('0x23')](_0x4810f5)):(_0x4810f5[_0x3a791b('0x12')]&&delete _0x4810f5[_0x3a791b('0x12')],_0x5b4f01['status'](0x1f4)[_0x3a791b('0x23')](_0x4810f5));};}function checkError(){return function(_0x221786){const _0x30d96c=a780_0x23a1;if(!_0x221786)throw new RangeError(_0x30d96c('0x14'));return _0x221786;};}function respondWithRpcPromise(_0x15bd10,_0x484623){return new Promise(function(_0x24ec0b,_0x30e0df){const _0x1e8779=a780_0x23a1,_0x9bfae=amiClient;return _0x9bfae[_0x1e8779('0x13')](_0x15bd10,_0x484623)[_0x1e8779('0x3b')](function(_0x5cda67){const _0x2759b5=_0x1e8779;if(_0x5cda67[_0x2759b5('0x31')]){if(_0x5cda67['error']['code']===0x1f4)return _0x30e0df(_0x5cda67[_0x2759b5('0x31')]['message']);return _0x24ec0b(_0x5cda67[_0x2759b5('0x31')][_0x2759b5('0xb')]);}else _0x24ec0b(_0x5cda67[_0x2759b5('0x29')]);})[_0x1e8779('0x16')](function(_0x100d73){_0x30e0df(_0x100d73);});});}function getAgent(_0x3f46eb){const _0x1ce894=_0x588a9b;return db['User']['findOne']({'where':{'id':_0x3f46eb,'role':_0x1ce894('0xf')}})[_0x1ce894('0x3b')](checkError());}exports['originate']=function(_0x15f8f0,_0x19a029){const _0x530568=_0x588a9b;logger[_0x530568('0x21')](_0x530568('0x2e'),_0x15f8f0[_0x530568('0x37')]);const _0x5e21bc=originateValidation[_0x530568('0x2d')](_0x15f8f0[_0x530568('0x37')]);if(_0x5e21bc[_0x530568('0x1a')]>0x0)return _0x19a029[_0x530568('0x4')](0x190)['json'](_0x5e21bc);const _0x261378=_0x15f8f0[_0x530568('0x37')][_0x530568('0x10')],_0x5d4247=_0x15f8f0['body'][_0x530568('0x25')],_0x125d52=_0x15f8f0[_0x530568('0x37')][_0x530568('0x7')],_0x599b98=_0x15f8f0['body'][_0x530568('0x2')];return getAgent(_0x261378)['then'](function(_0x310dd7){const _0x6d23e9=_0x530568;return logger['info'](_0x6d23e9('0x11'),_0x310dd7[_0x6d23e9('0x12')]),emit(util[_0x6d23e9('0x39')](_0x6d23e9('0x3a'),_0x310dd7['name']),_0x6d23e9('0x15'),{'callNumber':_0x5d4247,'callerId':_0x125d52,'callbackUrl':_0x599b98}),_0x19a029[_0x6d23e9('0x4')](0xc8)[_0x6d23e9('0x0')]({'error':![],'message':'originate\x20executed!'});})[_0x530568('0x16')](handleError(_0x19a029));},exports['hangup']=function(_0x25395f,_0x275435){const _0x23cd59=_0x588a9b;logger[_0x23cd59('0x21')](_0x23cd59('0x1f'),_0x25395f[_0x23cd59('0x37')]);const _0x3ecb42=hangupValidation[_0x23cd59('0x2d')](_0x25395f['body']);if(_0x3ecb42[_0x23cd59('0x1a')]>0x0)return _0x275435['status'](0x190)[_0x23cd59('0x0')](_0x3ecb42);const _0x3620fd=_0x25395f['body'][_0x23cd59('0x10')],_0x445bea=_0x25395f['body'][_0x23cd59('0x1b')];return getAgent(_0x3620fd)[_0x23cd59('0x3b')](function(_0x796f1f){const _0x5ae68c=_0x23cd59;return logger[_0x5ae68c('0x21')](_0x5ae68c('0x11'),_0x796f1f[_0x5ae68c('0x12')]),emit(util[_0x5ae68c('0x39')](_0x5ae68c('0x3a'),_0x796f1f[_0x5ae68c('0x12')]),_0x5ae68c('0xe'),{'sessionId':_0x445bea}),_0x275435[_0x5ae68c('0x4')](0xc8)['json']({'error':![],'message':_0x5ae68c('0x6')});})['catch'](handleError(_0x275435));},exports[_0x588a9b('0x2f')]=function(_0x57a87d,_0x47ec3f){const _0x4c6222=_0x588a9b;logger['info']('answer\x20fired:',_0x57a87d[_0x4c6222('0x37')]);const _0x1f82dc=answerValidation['validate'](_0x57a87d[_0x4c6222('0x37')]);if(_0x1f82dc[_0x4c6222('0x1a')]>0x0)return _0x47ec3f[_0x4c6222('0x4')](0x190)['json'](_0x1f82dc);const _0x303ec7=_0x57a87d[_0x4c6222('0x37')][_0x4c6222('0x10')],_0x164917=_0x57a87d['body'][_0x4c6222('0x1b')];return getAgent(_0x303ec7)['then'](function(_0x211ead){const _0x2c55f7=_0x4c6222;return logger[_0x2c55f7('0x21')]('entityFound:',_0x211ead[_0x2c55f7('0x12')]),emit(util['format'](_0x2c55f7('0x3a'),_0x211ead[_0x2c55f7('0x12')]),_0x2c55f7('0x22'),{'sessionId':_0x164917}),_0x47ec3f['status'](0xc8)[_0x2c55f7('0x0')]({'error':![],'message':_0x2c55f7('0x38')});})[_0x4c6222('0x16')](handleError(_0x47ec3f));},exports[_0x588a9b('0x36')]=function(_0x5e233c,_0x686006){const _0x339654=_0x588a9b;logger[_0x339654('0x21')](_0x339654('0x20'),_0x5e233c[_0x339654('0x37')]);const _0x71ab2e=holdValidation[_0x339654('0x2d')](_0x5e233c['body']);if(_0x71ab2e['length']>0x0)return _0x686006[_0x339654('0x4')](0x190)[_0x339654('0x0')](_0x71ab2e);const _0x520ce6=_0x5e233c[_0x339654('0x37')][_0x339654('0x10')],_0x57a524=_0x5e233c[_0x339654('0x37')][_0x339654('0x1b')];return getAgent(_0x520ce6)[_0x339654('0x3b')](function(_0x153043){const _0x28cd03=_0x339654;return logger[_0x28cd03('0x21')]('entityFound:',_0x153043[_0x28cd03('0x12')]),emit(util['format'](_0x28cd03('0x3a'),_0x153043[_0x28cd03('0x12')]),_0x28cd03('0x26'),{'sessionId':_0x57a524}),_0x686006['status'](0xc8)[_0x28cd03('0x0')]({'error':![],'message':_0x28cd03('0x9')});})[_0x339654('0x16')](handleError(_0x686006));},exports['unhold']=function(_0x25d69a,_0x38a92f){const _0x4ba8c2=_0x588a9b;logger['info'](_0x4ba8c2('0x8'),_0x25d69a[_0x4ba8c2('0x37')]);const _0x97ca46=unholdValidation[_0x4ba8c2('0x2d')](_0x25d69a['body']);if(_0x97ca46[_0x4ba8c2('0x1a')]>0x0)return _0x38a92f[_0x4ba8c2('0x4')](0x190)[_0x4ba8c2('0x0')](_0x97ca46);const _0x2d8ac8=_0x25d69a[_0x4ba8c2('0x37')]['userId'],_0xe39dc0=_0x25d69a['body']['sessionId'];return getAgent(_0x2d8ac8)[_0x4ba8c2('0x3b')](function(_0x4b98a6){const _0x51de6c=_0x4ba8c2;return logger[_0x51de6c('0x21')](_0x51de6c('0x11'),_0x4b98a6[_0x51de6c('0x12')]),emit(util[_0x51de6c('0x39')](_0x51de6c('0x3a'),_0x4b98a6['name']),_0x51de6c('0x32'),{'sessionId':_0xe39dc0}),_0x38a92f[_0x51de6c('0x4')](0xc8)[_0x51de6c('0x0')]({'error':![],'message':_0x51de6c('0x3d')});})[_0x4ba8c2('0x16')](handleError(_0x38a92f));},exports[_0x588a9b('0x35')]=function(_0x15af6b,_0x1a95b0){const _0x5a5351=_0x588a9b;logger[_0x5a5351('0x21')]('calls\x20fired:',_0x1a95b0[_0x5a5351('0x37')]);const _0x49f49d=callsValidation[_0x5a5351('0x2d')](_0x15af6b[_0x5a5351('0x37')]);if(_0x49f49d[_0x5a5351('0x1a')]>0x0)return _0x1a95b0[_0x5a5351('0x4')](0x190)[_0x5a5351('0x0')](_0x49f49d);const _0x14e8cd=_0x15af6b[_0x5a5351('0x37')]['userId'],_0x3179b3=respondWithRpcPromise(_0x5a5351('0x5')),_0x545944=getAgent(_0x14e8cd);return Promise[_0x5a5351('0x27')]([_0x3179b3,_0x545944])['then'](function(_0x3e945c){const _0x884980=_0x5a5351,_0xaf00b7=_0x3e945c[0x0],_0x193fcf=_0x3e945c[0x1],_0x37fcec=_[_0x884980('0x24')](_0xaf00b7['rows'],function(_0x237636){const _0x34aeb6=_0x884980;return _0x237636[_0x34aeb6('0x3')]==_0x193fcf['id'];});return _0x1a95b0['status'](0xc8)[_0x884980('0x0')]({'count':_0x37fcec[_0x884980('0x1a')],'rows':_0x37fcec});})['catch'](handleError(_0x1a95b0));},exports[_0x588a9b('0x30')]=function(_0x427b55,_0xe506e7){const _0x4a1944=_0x588a9b;logger[_0x4a1944('0x21')](_0x4a1944('0x33'),_0x427b55[_0x4a1944('0x37')]);const _0xd1ec27=conferenceValidation[_0x4a1944('0x2d')](_0x427b55[_0x4a1944('0x37')]);if(_0xd1ec27['length']>0x0)return _0xe506e7['status'](0x190)['json'](_0xd1ec27);const _0x5b9063=_0x427b55[_0x4a1944('0x37')][_0x4a1944('0x10')];return getAgent(_0x5b9063)[_0x4a1944('0x3b')](function(_0x40fcb8){const _0x5aaa98=_0x4a1944;return logger[_0x5aaa98('0x21')](_0x5aaa98('0x11'),_0x40fcb8[_0x5aaa98('0x12')]),emit(util[_0x5aaa98('0x39')](_0x5aaa98('0x3a'),_0x40fcb8['name']),_0x5aaa98('0xc')),_0xe506e7[_0x5aaa98('0x4')](0xc8)[_0x5aaa98('0x0')]({'error':![],'message':_0x5aaa98('0xa')});})[_0x4a1944('0x16')](handleError(_0xe506e7));},exports['transfer']=function(_0x3d9315,_0x214195){const _0x56d684=_0x588a9b;logger[_0x56d684('0x21')]('transfer\x20fired:',_0x3d9315[_0x56d684('0x37')]);const _0x3240ff=transferValidation['validate'](_0x3d9315[_0x56d684('0x37')]);if(_0x3240ff[_0x56d684('0x1a')]>0x0)return _0x214195[_0x56d684('0x4')](0x190)['json'](_0x3240ff);const _0x1713ef=_0x3d9315['body'][_0x56d684('0x10')],_0x1be652=_0x3d9315[_0x56d684('0x37')][_0x56d684('0x1b')],_0x5a2029=_0x3d9315[_0x56d684('0x37')]['transferNumber'];return getAgent(_0x1713ef)[_0x56d684('0x3b')](function(_0x297f82){const _0x389405=_0x56d684;return logger['info']('entityFound:',_0x297f82[_0x389405('0x12')]),emit(util[_0x389405('0x39')](_0x389405('0x3a'),_0x297f82['name']),_0x389405('0x17'),{'sessionId':_0x1be652,'transferNumber':_0x5a2029}),_0x214195[_0x389405('0x4')](0xc8)[_0x389405('0x0')]({'error':![],'message':_0x389405('0x3e')});})[_0x56d684('0x16')](handleError(_0x214195));}; \ No newline at end of file +const a780_0x5636=['send','webbarapi','webbar:transfer','code','message','body','then','originate','callNumber\x20is\x20required','answer\x20fired:','stringify','hold\x20executed!','calls\x20fired:','client','../../rediscache','conference\x20fired:','catch','agent','info','sessionId','hold\x20fired:','transfer\x20executed!','json','conference\x20executed!','calls','webbar:unhold','transfer\x20fired:','string','UserId','util','result','transferNumber','User','hold','answer\x20executed!','format','callNumber','filter','unhold\x20fired:','user:%s','VoiceChannels','handleError:','jayson/promise','hangup','webbar:originate','length','originate\x20executed!','sessionId\x20is\x20required','hangup\x20executed!','entityFound:','unhold','webbar:answer','error','stack','validate','rows','request','unhold\x20executed!','lodash','../../mysqldb','status','userId\x20is\x20required','transfer','name','number','hangup\x20fired:','log','emit','NotFound','userId','webbar:hangup','findOne'];(function(_0x12408f,_0x56368f){const _0x43ab41=function(_0xd0deb6){while(--_0xd0deb6){_0x12408f['push'](_0x12408f['shift']());}};_0x43ab41(++_0x56368f);}(a780_0x5636,0x14f));const a780_0x43ab=function(_0x12408f,_0x56368f){_0x12408f=_0x12408f-0x0;let _0x43ab41=a780_0x5636[_0x12408f];return _0x43ab41;};const _0x2088f7=a780_0x43ab;'use strict';const _=require(_0x2088f7('0xb')),db=require(_0x2088f7('0xc'))['db'],util=require(_0x2088f7('0x36')),jayson=require(_0x2088f7('0x43')),amiClient=jayson[_0x2088f7('0x26')]['http']({'port':0x232a}),logger=require('../../config/logger')(_0x2088f7('0x1a')),{getSocket}=require(_0x2088f7('0x27')),io=getSocket(),Schema=require(_0x2088f7('0x7')),originateValidation=new Schema({'userId':{'type':'number','required':[!![],_0x2088f7('0xe')]},'callNumber':{'type':_0x2088f7('0x34'),'required':[!![],_0x2088f7('0x21')]},'callerId':{'type':_0x2088f7('0x34')},'callbackUrl':{'type':_0x2088f7('0x34')}}),hangupValidation=new Schema({'userId':{'type':_0x2088f7('0x11'),'required':[!![],_0x2088f7('0xe')]},'sessionId':{'type':_0x2088f7('0x34'),'required':![]}}),answerValidation=new Schema({'userId':{'type':'number','required':[!![],_0x2088f7('0xe')]},'sessionId':{'type':_0x2088f7('0x34'),'required':![]}}),transferValidation=new Schema({'userId':{'type':_0x2088f7('0x11'),'required':[!![],_0x2088f7('0xe')]},'sessionId':{'type':_0x2088f7('0x34'),'required':[!![],_0x2088f7('0x0')]},'transferNumber':{'type':_0x2088f7('0x34'),'required':[!![],'transferNumber\x20is\x20required']}}),holdValidation=new Schema({'userId':{'type':_0x2088f7('0x11'),'required':[!![],_0x2088f7('0xe')]},'sessionId':{'type':_0x2088f7('0x34'),'required':![]}}),unholdValidation=new Schema({'userId':{'type':_0x2088f7('0x11'),'required':[!![],'userId\x20is\x20required']},'sessionId':{'type':_0x2088f7('0x34'),'required':![]}}),callsValidation=new Schema({'userId':{'type':_0x2088f7('0x11'),'required':[!![],_0x2088f7('0xe')]}}),conferenceValidation=new Schema({'userId':{'type':_0x2088f7('0x11'),'required':[!![],_0x2088f7('0xe')]}});function emit(_0xd0deb6,_0x1e94cb,_0x5bad9c){const _0x38b941=_0x2088f7;logger[_0x38b941('0x2b')](_0xd0deb6,_0x1e94cb,JSON[_0x38b941('0x23')](_0x5bad9c)),io['to'](_0xd0deb6)[_0x38b941('0x14')](_0x1e94cb,_0x5bad9c);}function handleError(_0x303929){return function(_0x1518b6){const _0x5a73a5=a780_0x43ab;console[_0x5a73a5('0x13')](_0x5a73a5('0x42'),_0x1518b6,_0x1518b6 instanceof RangeError),logger['error'](_0x1518b6[_0x5a73a5('0x6')]),_0x1518b6 instanceof RangeError?(_0x1518b6['name']&&delete _0x1518b6[_0x5a73a5('0x10')],_0x303929[_0x5a73a5('0xd')](0x194)[_0x5a73a5('0x19')](_0x1518b6)):(_0x1518b6['name']&&delete _0x1518b6['name'],_0x303929[_0x5a73a5('0xd')](0x1f4)[_0x5a73a5('0x19')](_0x1518b6));};}function checkError(){return function(_0x29f0f1){const _0x1f9809=a780_0x43ab;if(!_0x29f0f1)throw new RangeError(_0x1f9809('0x15'));return _0x29f0f1;};}function respondWithRpcPromise(_0x431a38,_0x35a125){return new Promise(function(_0x4f9c14,_0x4e8363){const _0x34fad3=a780_0x43ab,_0x5642be=amiClient;return _0x5642be[_0x34fad3('0x9')](_0x431a38,_0x35a125)[_0x34fad3('0x1f')](function(_0x30415b){const _0xb4a3cf=_0x34fad3;if(_0x30415b[_0xb4a3cf('0x5')]){if(_0x30415b['error'][_0xb4a3cf('0x1c')]===0x1f4)return _0x4e8363(_0x30415b['error'][_0xb4a3cf('0x1d')]);return _0x4f9c14(_0x30415b['error'][_0xb4a3cf('0x1d')]);}else _0x4f9c14(_0x30415b[_0xb4a3cf('0x37')]);})['catch'](function(_0x41df70){_0x4e8363(_0x41df70);});});}function getAgent(_0x43533a){const _0x212d0e=_0x2088f7;return db[_0x212d0e('0x39')][_0x212d0e('0x18')]({'where':{'id':_0x43533a,'role':_0x212d0e('0x2a')}})[_0x212d0e('0x1f')](checkError());}exports[_0x2088f7('0x20')]=function(_0x569251,_0xe4cd6d){const _0x19ecc6=_0x2088f7;logger[_0x19ecc6('0x2b')]('originate\x20fired:',_0x569251[_0x19ecc6('0x1e')]);const _0x371c4f=originateValidation[_0x19ecc6('0x7')](_0x569251[_0x19ecc6('0x1e')]);if(_0x371c4f[_0x19ecc6('0x46')]>0x0)return _0xe4cd6d[_0x19ecc6('0xd')](0x190)[_0x19ecc6('0x2f')](_0x371c4f);const _0x2704b6=_0x569251['body']['userId'],_0x27b3c3=_0x569251[_0x19ecc6('0x1e')][_0x19ecc6('0x3d')],_0x4b7834=_0x569251[_0x19ecc6('0x1e')]['callerId'],_0x948319=_0x569251['body']['callbackUrl'];return getAgent(_0x2704b6)[_0x19ecc6('0x1f')](function(_0x1946ad){const _0x37b9cb=_0x19ecc6;return logger[_0x37b9cb('0x2b')](_0x37b9cb('0x2'),_0x1946ad[_0x37b9cb('0x10')]),emit(util[_0x37b9cb('0x3c')](_0x37b9cb('0x40'),_0x1946ad[_0x37b9cb('0x10')]),_0x37b9cb('0x45'),{'callNumber':_0x27b3c3,'callerId':_0x4b7834,'callbackUrl':_0x948319}),_0xe4cd6d['status'](0xc8)[_0x37b9cb('0x2f')]({'error':![],'message':_0x37b9cb('0x47')});})['catch'](handleError(_0xe4cd6d));},exports[_0x2088f7('0x44')]=function(_0x1656d1,_0x2d53ad){const _0x39e0cd=_0x2088f7;logger[_0x39e0cd('0x2b')](_0x39e0cd('0x12'),_0x1656d1['body']);const _0xd7fddb=hangupValidation[_0x39e0cd('0x7')](_0x1656d1[_0x39e0cd('0x1e')]);if(_0xd7fddb[_0x39e0cd('0x46')]>0x0)return _0x2d53ad[_0x39e0cd('0xd')](0x190)[_0x39e0cd('0x2f')](_0xd7fddb);const _0x16e2f5=_0x1656d1['body'][_0x39e0cd('0x16')],_0x4cfe39=_0x1656d1[_0x39e0cd('0x1e')][_0x39e0cd('0x2c')];return getAgent(_0x16e2f5)[_0x39e0cd('0x1f')](function(_0x24abef){const _0x5e79ec=_0x39e0cd;return logger[_0x5e79ec('0x2b')](_0x5e79ec('0x2'),_0x24abef['name']),emit(util[_0x5e79ec('0x3c')]('user:%s',_0x24abef[_0x5e79ec('0x10')]),_0x5e79ec('0x17'),{'sessionId':_0x4cfe39}),_0x2d53ad[_0x5e79ec('0xd')](0xc8)[_0x5e79ec('0x2f')]({'error':![],'message':_0x5e79ec('0x1')});})[_0x39e0cd('0x29')](handleError(_0x2d53ad));},exports['answer']=function(_0xd74835,_0x39c8ce){const _0x246662=_0x2088f7;logger[_0x246662('0x2b')](_0x246662('0x22'),_0xd74835[_0x246662('0x1e')]);const _0x147a2a=answerValidation[_0x246662('0x7')](_0xd74835[_0x246662('0x1e')]);if(_0x147a2a['length']>0x0)return _0x39c8ce[_0x246662('0xd')](0x190)[_0x246662('0x2f')](_0x147a2a);const _0x48c0d1=_0xd74835[_0x246662('0x1e')][_0x246662('0x16')],_0x27b2ef=_0xd74835[_0x246662('0x1e')][_0x246662('0x2c')];return getAgent(_0x48c0d1)[_0x246662('0x1f')](function(_0x1a1ca5){const _0x3fa9d8=_0x246662;return logger[_0x3fa9d8('0x2b')](_0x3fa9d8('0x2'),_0x1a1ca5[_0x3fa9d8('0x10')]),emit(util[_0x3fa9d8('0x3c')]('user:%s',_0x1a1ca5['name']),_0x3fa9d8('0x4'),{'sessionId':_0x27b2ef}),_0x39c8ce[_0x3fa9d8('0xd')](0xc8)[_0x3fa9d8('0x2f')]({'error':![],'message':_0x3fa9d8('0x3b')});})[_0x246662('0x29')](handleError(_0x39c8ce));},exports[_0x2088f7('0x3a')]=function(_0x354f7b,_0x9a5dea){const _0x24d277=_0x2088f7;logger[_0x24d277('0x2b')](_0x24d277('0x2d'),_0x354f7b[_0x24d277('0x1e')]);const _0x354185=holdValidation[_0x24d277('0x7')](_0x354f7b[_0x24d277('0x1e')]);if(_0x354185[_0x24d277('0x46')]>0x0)return _0x9a5dea[_0x24d277('0xd')](0x190)[_0x24d277('0x2f')](_0x354185);const _0x2581fe=_0x354f7b[_0x24d277('0x1e')][_0x24d277('0x16')],_0x3d875a=_0x354f7b[_0x24d277('0x1e')][_0x24d277('0x2c')];return getAgent(_0x2581fe)[_0x24d277('0x1f')](function(_0x2a7137){const _0x12a548=_0x24d277;return logger[_0x12a548('0x2b')]('entityFound:',_0x2a7137[_0x12a548('0x10')]),emit(util[_0x12a548('0x3c')]('user:%s',_0x2a7137['name']),'webbar:hold',{'sessionId':_0x3d875a}),_0x9a5dea[_0x12a548('0xd')](0xc8)[_0x12a548('0x2f')]({'error':![],'message':_0x12a548('0x24')});})[_0x24d277('0x29')](handleError(_0x9a5dea));},exports[_0x2088f7('0x3')]=function(_0x2eb8db,_0x33129d){const _0x448776=_0x2088f7;logger[_0x448776('0x2b')](_0x448776('0x3f'),_0x2eb8db['body']);const _0x13f245=unholdValidation[_0x448776('0x7')](_0x2eb8db['body']);if(_0x13f245[_0x448776('0x46')]>0x0)return _0x33129d[_0x448776('0xd')](0x190)[_0x448776('0x2f')](_0x13f245);const _0x3400d3=_0x2eb8db[_0x448776('0x1e')][_0x448776('0x16')],_0x4b98a6=_0x2eb8db[_0x448776('0x1e')][_0x448776('0x2c')];return getAgent(_0x3400d3)[_0x448776('0x1f')](function(_0x2ac98c){const _0x2cd877=_0x448776;return logger[_0x2cd877('0x2b')]('entityFound:',_0x2ac98c['name']),emit(util[_0x2cd877('0x3c')](_0x2cd877('0x40'),_0x2ac98c[_0x2cd877('0x10')]),_0x2cd877('0x32'),{'sessionId':_0x4b98a6}),_0x33129d[_0x2cd877('0xd')](0xc8)[_0x2cd877('0x2f')]({'error':![],'message':_0x2cd877('0xa')});})[_0x448776('0x29')](handleError(_0x33129d));},exports[_0x2088f7('0x31')]=function(_0x338ee0,_0x106e6f){const _0x3efcdb=_0x2088f7;logger[_0x3efcdb('0x2b')](_0x3efcdb('0x25'),_0x106e6f['body']);const _0x535c90=callsValidation['validate'](_0x338ee0[_0x3efcdb('0x1e')]);if(_0x535c90[_0x3efcdb('0x46')]>0x0)return _0x106e6f[_0x3efcdb('0xd')](0x190)[_0x3efcdb('0x2f')](_0x535c90);const _0x2f8ecf=_0x338ee0[_0x3efcdb('0x1e')][_0x3efcdb('0x16')],_0x494560=respondWithRpcPromise(_0x3efcdb('0x41')),_0x40cfa3=getAgent(_0x2f8ecf);return Promise['all']([_0x494560,_0x40cfa3])[_0x3efcdb('0x1f')](function(_0x8b5cf9){const _0x41c865=_0x3efcdb,_0x3c0901=_0x8b5cf9[0x0],_0x564dfe=_0x8b5cf9[0x1],_0x1a33fe=_[_0x41c865('0x3e')](_0x3c0901[_0x41c865('0x8')],function(_0x4e80e6){const _0x2be8c3=_0x41c865;return _0x4e80e6[_0x2be8c3('0x35')]==_0x564dfe['id'];});return _0x106e6f[_0x41c865('0xd')](0xc8)[_0x41c865('0x2f')]({'count':_0x1a33fe[_0x41c865('0x46')],'rows':_0x1a33fe});})[_0x3efcdb('0x29')](handleError(_0x106e6f));},exports['conference']=function(_0x294bb5,_0x39d9c2){const _0x4949ef=_0x2088f7;logger[_0x4949ef('0x2b')](_0x4949ef('0x28'),_0x294bb5[_0x4949ef('0x1e')]);const _0xa2a049=conferenceValidation[_0x4949ef('0x7')](_0x294bb5[_0x4949ef('0x1e')]);if(_0xa2a049[_0x4949ef('0x46')]>0x0)return _0x39d9c2['status'](0x190)[_0x4949ef('0x2f')](_0xa2a049);const _0x16013f=_0x294bb5['body']['userId'];return getAgent(_0x16013f)[_0x4949ef('0x1f')](function(_0x5ceed4){const _0x4a178f=_0x4949ef;return logger[_0x4a178f('0x2b')](_0x4a178f('0x2'),_0x5ceed4[_0x4a178f('0x10')]),emit(util[_0x4a178f('0x3c')](_0x4a178f('0x40'),_0x5ceed4[_0x4a178f('0x10')]),'webbar:conference'),_0x39d9c2['status'](0xc8)[_0x4a178f('0x2f')]({'error':![],'message':_0x4a178f('0x30')});})['catch'](handleError(_0x39d9c2));},exports[_0x2088f7('0xf')]=function(_0x46b129,_0x36d7c5){const _0x329748=_0x2088f7;logger['info'](_0x329748('0x33'),_0x46b129[_0x329748('0x1e')]);const _0x200291=transferValidation['validate'](_0x46b129[_0x329748('0x1e')]);if(_0x200291['length']>0x0)return _0x36d7c5[_0x329748('0xd')](0x190)[_0x329748('0x2f')](_0x200291);const _0xb9e168=_0x46b129[_0x329748('0x1e')][_0x329748('0x16')],_0x8a879c=_0x46b129[_0x329748('0x1e')][_0x329748('0x2c')],_0x4f227e=_0x46b129['body'][_0x329748('0x38')];return getAgent(_0xb9e168)['then'](function(_0x2d39a8){const _0x565863=_0x329748;return logger[_0x565863('0x2b')](_0x565863('0x2'),_0x2d39a8['name']),emit(util['format']('user:%s',_0x2d39a8[_0x565863('0x10')]),_0x565863('0x1b'),{'sessionId':_0x8a879c,'transferNumber':_0x4f227e}),_0x36d7c5[_0x565863('0xd')](0xc8)[_0x565863('0x2f')]({'error':![],'message':_0x565863('0x2e')});})[_0x329748('0x29')](handleError(_0x36d7c5));}; \ No newline at end of file diff --git a/server/api/whatsappAccount/index.js b/server/api/whatsappAccount/index.js index a3b76a2..cd81db1 100644 --- a/server/api/whatsappAccount/index.js +++ b/server/api/whatsappAccount/index.js @@ -1 +1 @@ -const a781_0x345c=['/:id','/:id/dispositions','addAnswer','/:id/send','addAgents','getApplications','./whatsappAccount.controller','index','express','create','show','addDisposition','/describe','exports','/:id/users','/:id/canned_answers','/:id/notify','post','/:id/applications','removeAnswers','isAuthenticated','removeDispositions','getAgents','getDispositions','send','delete','get','removeAgents','Router','describe'];(function(_0x1e9e95,_0x345ccc){const _0x20ffd8=function(_0x290d1b){while(--_0x290d1b){_0x1e9e95['push'](_0x1e9e95['shift']());}};_0x20ffd8(++_0x345ccc);}(a781_0x345c,0x1d9));const a781_0x20ff=function(_0x1e9e95,_0x345ccc){_0x1e9e95=_0x1e9e95-0x0;let _0x20ffd8=a781_0x345c[_0x1e9e95];return _0x20ffd8;};const _0x48d77f=a781_0x20ff;'use strict';const express=require(_0x48d77f('0xf')),router=express[_0x48d77f('0x5')](),auth=require('../../components/auth/service'),controller=require(_0x48d77f('0xd'));router[_0x48d77f('0x3')]('/',auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0xe')]),router[_0x48d77f('0x3')](_0x48d77f('0x13'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x6')]),router[_0x48d77f('0x3')](_0x48d77f('0x7'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x11')]),router[_0x48d77f('0x3')](_0x48d77f('0x8'),auth['isAuthenticated'](),controller[_0x48d77f('0x0')]),router[_0x48d77f('0x3')](_0x48d77f('0x16'),auth['isAuthenticated'](),controller['getAnswers']),router[_0x48d77f('0x3')](_0x48d77f('0x15'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x1d')]),router[_0x48d77f('0x3')](_0x48d77f('0x19'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0xc')]),router[_0x48d77f('0x18')]('/',auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x10')]),router[_0x48d77f('0x18')](_0x48d77f('0x8'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x12')]),router['post'](_0x48d77f('0x16'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x9')]),router[_0x48d77f('0x18')]('/:id/users',auth['isAuthenticated'](),controller[_0x48d77f('0xb')]),router[_0x48d77f('0x18')](_0x48d77f('0x19'),auth['isAuthenticated'](),controller['addApplications']),router[_0x48d77f('0x18')](_0x48d77f('0x17'),controller['notify']),router[_0x48d77f('0x18')](_0x48d77f('0xa'),auth['isAuthenticated'](),controller[_0x48d77f('0x1')]),router['put'](_0x48d77f('0x7'),auth[_0x48d77f('0x1b')](),controller['update']),router[_0x48d77f('0x2')](_0x48d77f('0x7'),auth['isAuthenticated'](),controller['destroy']),router[_0x48d77f('0x2')](_0x48d77f('0x8'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x1c')]),router[_0x48d77f('0x2')](_0x48d77f('0x16'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x1a')]),router[_0x48d77f('0x2')](_0x48d77f('0x15'),auth[_0x48d77f('0x1b')](),controller[_0x48d77f('0x4')]),module[_0x48d77f('0x14')]=router; \ No newline at end of file +const a781_0x1fa9=['removeDispositions','show','/:id/applications','create','/describe','getDispositions','/:id/canned_answers','isAuthenticated','addDisposition','exports','/:id','express','notify','put','getApplications','describe','addAnswer','update','/:id/notify','delete','/:id/users','addApplications','post','/:id/dispositions','addAgents','./whatsappAccount.controller','removeAnswers','../../components/auth/service','getAgents','get','send'];(function(_0x4a8f4c,_0x1fa954){const _0x15b8c6=function(_0xcfdf2c){while(--_0xcfdf2c){_0x4a8f4c['push'](_0x4a8f4c['shift']());}};_0x15b8c6(++_0x1fa954);}(a781_0x1fa9,0x71));const a781_0x15b8=function(_0x4a8f4c,_0x1fa954){_0x4a8f4c=_0x4a8f4c-0x0;let _0x15b8c6=a781_0x1fa9[_0x4a8f4c];return _0x15b8c6;};const _0x5bfe6f=a781_0x15b8;'use strict';const express=require(_0x5bfe6f('0x16')),router=express['Router'](),auth=require(_0x5bfe6f('0x7')),controller=require(_0x5bfe6f('0x5'));router[_0x5bfe6f('0x9')]('/',auth['isAuthenticated'](),controller['index']),router[_0x5bfe6f('0x9')](_0x5bfe6f('0xf'),auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x1a')]),router['get'](_0x5bfe6f('0x15'),auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0xc')]),router[_0x5bfe6f('0x9')]('/:id/dispositions',auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x10')]),router[_0x5bfe6f('0x9')](_0x5bfe6f('0x11'),auth['isAuthenticated'](),controller['getAnswers']),router[_0x5bfe6f('0x9')](_0x5bfe6f('0x0'),auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x8')]),router[_0x5bfe6f('0x9')](_0x5bfe6f('0xd'),auth['isAuthenticated'](),controller[_0x5bfe6f('0x19')]),router['post']('/',auth['isAuthenticated'](),controller[_0x5bfe6f('0xe')]),router[_0x5bfe6f('0x2')](_0x5bfe6f('0x3'),auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x13')]),router[_0x5bfe6f('0x2')]('/:id/canned_answers',auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x1b')]),router[_0x5bfe6f('0x2')](_0x5bfe6f('0x0'),auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x4')]),router[_0x5bfe6f('0x2')]('/:id/applications',auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x1')]),router[_0x5bfe6f('0x2')](_0x5bfe6f('0x1d'),controller[_0x5bfe6f('0x17')]),router[_0x5bfe6f('0x2')]('/:id/send',auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0xa')]),router[_0x5bfe6f('0x18')](_0x5bfe6f('0x15'),auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x1c')]),router[_0x5bfe6f('0x1e')](_0x5bfe6f('0x15'),auth[_0x5bfe6f('0x12')](),controller['destroy']),router[_0x5bfe6f('0x1e')](_0x5bfe6f('0x3'),auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0xb')]),router[_0x5bfe6f('0x1e')](_0x5bfe6f('0x11'),auth[_0x5bfe6f('0x12')](),controller[_0x5bfe6f('0x6')]),router[_0x5bfe6f('0x1e')](_0x5bfe6f('0x0'),auth[_0x5bfe6f('0x12')](),controller['removeAgents']),module[_0x5bfe6f('0x14')]=router; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.attributes.js b/server/api/whatsappAccount/whatsappAccount.attributes.js index 4ad6939..2b69b96 100644 --- a/server/api/whatsappAccount/whatsappAccount.attributes.js +++ b/server/api/whatsappAccount/whatsappAccount.attributes.js @@ -1 +1 @@ -const a782_0xf490=['Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','exports','sequelize','randomstring','name','TEXT','STRING','mandatoryDispositionPauseId','INTEGER','twilio','BOOLEAN','Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled','setDataValue','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','generate','mandatoryDisposition','ENUM'];(function(_0x145633,_0xf4906a){const _0x48d8eb=function(_0x456310){while(--_0x456310){_0x145633['push'](_0x145633['shift']());}};_0x48d8eb(++_0xf4906a);}(a782_0xf490,0xab));const a782_0x48d8=function(_0x145633,_0xf4906a){_0x145633=_0x145633-0x0;let _0x48d8eb=a782_0xf490[_0x145633];return _0x48d8eb;};const _0x3fc1e1=a782_0x48d8;'use strict';const Sequelize=require(_0x3fc1e1('0x1')),rs=require(_0x3fc1e1('0x2'));module[_0x3fc1e1('0x0')]={'name':{'type':Sequelize[_0x3fc1e1('0x5')],'unique':_0x3fc1e1('0x3'),'allowNull':![]},'key':{'type':Sequelize[_0x3fc1e1('0x5')],'allowNull':![]},'remote':{'type':Sequelize[_0x3fc1e1('0x5')],'allowNull':![]},'token':{'type':Sequelize[_0x3fc1e1('0x5')],'defaultValue':function(){const _0x4d461d=_0x3fc1e1;return rs[_0x4d461d('0xd')]();}},'phone':{'type':Sequelize[_0x3fc1e1('0x5')]},'type':{'type':Sequelize[_0x3fc1e1('0xf')](_0x3fc1e1('0x8'))},'accountSid':{'type':Sequelize[_0x3fc1e1('0x5')]},'authToken':{'type':Sequelize[_0x3fc1e1('0x5')]},'notificationTemplate':{'type':Sequelize[_0x3fc1e1('0x4')],'defaultValue':function(){const _0x5d0121=_0x3fc1e1;return _0x5d0121('0x10');}},'notificationSound':{'type':Sequelize[_0x3fc1e1('0x9')],'defaultValue':![]},'notificationShake':{'type':Sequelize[_0x3fc1e1('0x9')],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x3fc1e1('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x3fc1e1('0x9')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x3fc1e1('0x7')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x3fc1e1('0x9')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x3fc1e1('0x7')],'comment':_0x3fc1e1('0xa')},'mandatoryDisposition':{'type':Sequelize[_0x3fc1e1('0x9')],'defaultValue':![],'comment':_0x3fc1e1('0xc'),'set':function(_0x456310){const _0x1818b7=_0x3fc1e1;!_0x456310&&this[_0x1818b7('0xb')](_0x1818b7('0x6'),null),this[_0x1818b7('0xb')](_0x1818b7('0xe'),_0x456310);}},'description':{'type':Sequelize[_0x3fc1e1('0x5')]}}; \ No newline at end of file +const a782_0x4585=['twilio','INTEGER','mandatoryDispositionPauseId','generate','mandatoryDisposition','setDataValue','BOOLEAN','TEXT','STRING','Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}','Enabled/disables\x20mandatory\x20dispo\x20on\x20a\x20queue','ENUM'];(function(_0xb0e942,_0x45854d){const _0x415e6b=function(_0x463cc3){while(--_0x463cc3){_0xb0e942['push'](_0xb0e942['shift']());}};_0x415e6b(++_0x45854d);}(a782_0x4585,0x95));const a782_0x415e=function(_0xb0e942,_0x45854d){_0xb0e942=_0xb0e942-0x0;let _0x415e6b=a782_0x4585[_0xb0e942];return _0x415e6b;};const _0x41f8a5=a782_0x415e;'use strict';const Sequelize=require('sequelize'),rs=require('randomstring');module['exports']={'name':{'type':Sequelize[_0x41f8a5('0x3')],'unique':'name','allowNull':![]},'key':{'type':Sequelize[_0x41f8a5('0x3')],'allowNull':![]},'remote':{'type':Sequelize[_0x41f8a5('0x3')],'allowNull':![]},'token':{'type':Sequelize['STRING'],'defaultValue':function(){const _0x58d6db=_0x41f8a5;return rs[_0x58d6db('0xa')]();}},'phone':{'type':Sequelize[_0x41f8a5('0x3')]},'type':{'type':Sequelize[_0x41f8a5('0x6')](_0x41f8a5('0x7'))},'accountSid':{'type':Sequelize['STRING']},'authToken':{'type':Sequelize[_0x41f8a5('0x3')]},'notificationTemplate':{'type':Sequelize[_0x41f8a5('0x2')],'defaultValue':function(){const _0x43118d=_0x41f8a5;return _0x43118d('0x4');}},'notificationSound':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'notificationShake':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'waitForTheAssignedAgent':{'type':Sequelize[_0x41f8a5('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa},'queueTransfer':{'type':Sequelize[_0x41f8a5('0x1')],'defaultValue':![]},'queueTransferTimeout':{'type':Sequelize[_0x41f8a5('0x8')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'agentTransfer':{'type':Sequelize[_0x41f8a5('0x1')],'defaultValue':![]},'agentTransferTimeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c},'mandatoryDispositionPauseId':{'type':Sequelize[_0x41f8a5('0x8')],'comment':'Status\x20to\x20put\x20when\x20mandatory\x20disposition\x20is\x20enabled'},'mandatoryDisposition':{'type':Sequelize[_0x41f8a5('0x1')],'defaultValue':![],'comment':_0x41f8a5('0x5'),'set':function(_0x463cc3){const _0x9838f8=_0x41f8a5;!_0x463cc3&&this[_0x9838f8('0x0')](_0x9838f8('0x9'),null),this[_0x9838f8('0x0')](_0x9838f8('0xb'),_0x463cc3);}},'description':{'type':Sequelize[_0x41f8a5('0x3')]}}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.controller.js b/server/api/whatsappAccount/whatsappAccount.controller.js index 8913770..41cb785 100644 --- a/server/api/whatsappAccount/whatsappAccount.controller.js +++ b/server/api/whatsappAccount/whatsappAccount.controller.js @@ -1 +1 @@ -const a783_0x2af2=['pick','params','removeAnswers','jayson/promise','Content-Range','json','addAnswer','./whatsappAccount.socket','merge','replace','Applications','findAndCountAll','messageId','Disposition','end','push','CannedAnswer','from\x20is\x20mandatory','error','WhatsappApplication','startRouting','twilio','../../rediscache','ids','rows','getApplications','undefined','name','stack','contact','result','CompanyId','intersection','applications','WhatsappMessage','model','length','bulkCreate','query','unmanaged','fieldName','fields','autoAssociation','waitForTheAssignedAgent','mandatoryDispositionPause','WhatsappInteraction','attributes','offset','sendStatus','type','update','stringify','api','isNil','request','addAgents','findOne','difference','userWhatsappAccount:remove','rawAttributes','Contacts','show','dataValues','whatsapp','User','Content-Type','WhatsappAccountId','\x0a','Messages','catch','mapKey','describe','Body','AttachmentId','body\x20is\x20mandatory\x20and\x20not\x20empty','includeAll','WhatsappAccount,\x20%s,\x20%s','WhatsappAccount,\x20%s,\x20%s,\x20%s','nolimit','http','from','DESC','body','send','addApplications','count','removeDispositions','createdAt','interaction','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20','../../components/parsers/qs','includes','WhatsappAccount','defaults','like','debug','From','WhatsappAccounts','get','getAgents','findAll','asc','keys','create','options','include','set','removeAgents','ListId','register','List','CmContact','updatedAt','priority','map','Pause','notify','limit','account','status','where','UserProfileSection','out','filters','VIRTUAL','CmList','mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20','destroy','Start','role','key','then','*,*,*,*','../../config/logger','request\x20sent','user','WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s','whatsapp:','sequelize','UserProfileResource','filter','sort','client','order','created','mobile','orderBy','info','addDisposition','message','emit','omit','transaction'];(function(_0x433759,_0x2af237){const _0x19943a=function(_0xfd58d1){while(--_0xfd58d1){_0x433759['push'](_0x433759['shift']());}};_0x19943a(++_0x2af237);}(a783_0x2af2,0x165));const a783_0x1994=function(_0x433759,_0x2af237){_0x433759=_0x433759-0x0;let _0x19943a=a783_0x2af2[_0x433759];return _0x19943a;};const _0x4e2556=a783_0x1994;'use strict';const _=require('lodash'),qs=require(_0x4e2556('0x2a')),logger=require(_0x4e2556('0x55'))(_0x4e2556('0x3')),{getSocket}=require(_0x4e2556('0x7f')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x4e2556('0x5a'));require(_0x4e2556('0x70'))[_0x4e2556('0x3d')](socket);const jayson=require(_0x4e2556('0x6c')),client=jayson[_0x4e2556('0x5e')][_0x4e2556('0x1e')]({'port':0x232c});function respondWithRpcPromise(_0xfd58d1,_0x1c8756,_0x4dd091,_0xeab2b7){return new Promise(function(_0x28663a,_0x2fe621){const _0xeecbb0=a783_0x1994,_0x10ed41=_0xeab2b7||client;return _0x10ed41[_0xeecbb0('0x5')](_0xfd58d1,_0x4dd091)[_0xeecbb0('0x53')](function(_0x3f2ef8){const _0x2bd93c=_0xeecbb0;logger[_0x2bd93c('0x63')]('WhatsappAccount,\x20%s,\x20%s',_0x1c8756,_0x2bd93c('0x56')),logger['debug'](_0x2bd93c('0x1c'),_0x1c8756,_0x2bd93c('0x56'),JSON[_0x2bd93c('0x2')](_0x3f2ef8));if(_0x3f2ef8[_0x2bd93c('0x7b')]){if(_0x3f2ef8[_0x2bd93c('0x7b')]['code']===0x1f4)return logger[_0x2bd93c('0x7b')](_0x2bd93c('0x1b'),_0x1c8756,_0x3f2ef8[_0x2bd93c('0x7b')][_0x2bd93c('0x65')]),_0x2fe621(_0x3f2ef8['error'][_0x2bd93c('0x65')]);return logger[_0x2bd93c('0x7b')](_0x2bd93c('0x1b'),_0x1c8756,_0x3f2ef8[_0x2bd93c('0x7b')]['message']),_0x28663a(_0x3f2ef8[_0x2bd93c('0x7b')]['message']);}else logger[_0x2bd93c('0x63')](_0x2bd93c('0x1b'),_0x1c8756,_0x2bd93c('0x56')),_0x28663a(_0x3f2ef8[_0x2bd93c('0x87')][_0x2bd93c('0x65')]);})[_0xeecbb0('0x14')](function(_0x1307a3){const _0x138d91=_0xeecbb0;logger[_0x138d91('0x7b')](_0x138d91('0x1b'),_0x1c8756,_0x1307a3),_0x2fe621(_0x1307a3);});});}function respondWithStatusCode(_0x191568,_0x29697b){return _0x29697b=_0x29697b||0xcc,function(_0x4bec92){const _0x2c4868=a783_0x1994;if(_0x4bec92)return _0x191568[_0x2c4868('0x99')](_0x29697b);return _0x191568['status'](_0x29697b)['end']();};}function respondWithResult(_0x5e9ab2,_0x1053a6){return _0x1053a6=_0x1053a6||0xc8,function(_0x137d2e){const _0x1cf170=a783_0x1994;if(_0x137d2e)return _0x5e9ab2['status'](_0x1053a6)[_0x1cf170('0x6e')](_0x137d2e);};}function respondWithFilteredResult(_0x1d63eb,_0x4aadf9){return function(_0x389697){const _0xe0a1eb=a783_0x1994;if(_0x389697){const _0x55b322=_0x389697[_0xe0a1eb('0x24')],_0x50421a=_0x4aadf9[_0xe0a1eb('0x98')];let _0x1f1151=_0x4aadf9['offset']+_0x4aadf9[_0xe0a1eb('0x45')],_0x2a3467;return _0x1f1151>=_0x55b322?(_0x1f1151=_0x55b322,_0x2a3467=0xc8):_0x2a3467=0xce,_0x1d63eb['status'](_0x2a3467),_0x1d63eb[_0xe0a1eb('0x3a')](_0xe0a1eb('0x6d'),_0x50421a+'-'+_0x1f1151+'/'+_0x55b322)[_0xe0a1eb('0x6e')](_0x389697);}return null;};}function saveUpdates(_0x70d4fc){return function(_0x2c43ba){const _0x1b8560=a783_0x1994;if(_0x2c43ba)return _0x2c43ba[_0x1b8560('0x1')](_0x70d4fc)[_0x1b8560('0x53')](function(_0x4f86ab){return _0x4f86ab;});return null;};}function removeEntity(_0x454847){return function(_0xbe906e){const _0x5a7282=a783_0x1994;if(_0xbe906e)return _0xbe906e['destroy']()[_0x5a7282('0x53')](function(){const _0x215f2b=_0x5a7282,_0x220276=_0xbe906e[_0x215f2b('0x32')]({'plain':!![]}),_0x3f8434=_0x215f2b('0x31');return db['UserProfileResource'][_0x215f2b('0x4f')]({'where':{'type':_0x3f8434,'resourceId':_0x220276['id']}})[_0x215f2b('0x53')](function(){return _0xbe906e;});})[_0x5a7282('0x53')](function(){const _0x523024=_0x5a7282;_0x454847[_0x523024('0x47')](0xcc)[_0x523024('0x77')]();});};}function handleEntityNotFound(_0x21b535){return function(_0x2042e6){const _0x42846f=a783_0x1994;return!_0x2042e6&&_0x21b535[_0x42846f('0x99')](0x194),_0x2042e6;};}function handleError(_0x4183e6,_0x59af43){return _0x59af43=_0x59af43||0x1f4,function(_0x20c190){const _0x1e5d09=a783_0x1994;logger[_0x1e5d09('0x7b')](_0x20c190[_0x1e5d09('0x85')]),_0x20c190['name']&&delete _0x20c190[_0x1e5d09('0x84')],_0x4183e6[_0x1e5d09('0x47')](_0x59af43)[_0x1e5d09('0x22')](_0x20c190);};}exports['index']=function(_0x395ca7,_0x427094){const _0x4cc802=_0x4e2556;let _0x16a644={'include':[{'model':db['Pause'],'as':'mandatoryDispositionPause'}]};const _0x5415ae={},_0x22c161={'count':0x0,'rows':[]},_0x97b935=_[_0x4cc802('0x42')](db['WhatsappAccount'][_0x4cc802('0xa')],function(_0x4f83cc){const _0x205d20=_0x4cc802;return{'name':_0x4f83cc[_0x205d20('0x91')],'type':_0x4f83cc[_0x205d20('0x0')][_0x205d20('0x52')]};});_0x5415ae[_0x4cc802('0x8c')]=_[_0x4cc802('0x42')](_0x97b935,_0x4cc802('0x84')),_0x5415ae[_0x4cc802('0x8f')]=_['keys'](_0x395ca7[_0x4cc802('0x8f')]),_0x5415ae['filters']=_['intersection'](_0x5415ae[_0x4cc802('0x8c')],_0x5415ae[_0x4cc802('0x8f')]),_0x16a644[_0x4cc802('0x97')]=_[_0x4cc802('0x89')](_0x5415ae[_0x4cc802('0x8c')],qs[_0x4cc802('0x92')](_0x395ca7[_0x4cc802('0x8f')][_0x4cc802('0x92')])),_0x16a644[_0x4cc802('0x97')]=_0x16a644[_0x4cc802('0x97')][_0x4cc802('0x8d')]?_0x16a644[_0x4cc802('0x97')]:_0x5415ae[_0x4cc802('0x8c')];typeof _0x395ca7[_0x4cc802('0x8f')][_0x4cc802('0x1d')]===_0x4cc802('0x83')&&(_0x16a644[_0x4cc802('0x45')]=qs[_0x4cc802('0x45')](_0x395ca7[_0x4cc802('0x8f')][_0x4cc802('0x45')]),_0x16a644['offset']=qs[_0x4cc802('0x98')](_0x395ca7[_0x4cc802('0x8f')][_0x4cc802('0x98')]));_0x16a644[_0x4cc802('0x5f')]=qs[_0x4cc802('0x5d')](_0x395ca7['query']['sort']),_0x16a644[_0x4cc802('0x48')]=qs[_0x4cc802('0x4b')](_[_0x4cc802('0x69')](_0x395ca7['query'],_0x5415ae[_0x4cc802('0x4b')]),_0x97b935);_0x395ca7[_0x4cc802('0x8f')][_0x4cc802('0x5c')]&&(_0x16a644[_0x4cc802('0x48')]=_[_0x4cc802('0x71')](_0x16a644[_0x4cc802('0x48')],{[Op['or']]:_[_0x4cc802('0x42')](_0x97b935,function(_0x3d5ae6){const _0x47a2a0=_0x4cc802;if(_0x3d5ae6[_0x47a2a0('0x0')]!==_0x47a2a0('0x4c')){const _0x27d266={};return _0x27d266[_0x3d5ae6[_0x47a2a0('0x84')]]={[Op[_0x47a2a0('0x2e')]]:'%'+_0x395ca7['query'][_0x47a2a0('0x5c')]+'%'},_0x27d266;}})}));_0x16a644=_[_0x4cc802('0x71')]({},_0x16a644,_0x395ca7[_0x4cc802('0x38')]);const _0x375730={'where':_0x16a644[_0x4cc802('0x48')]};return db[_0x4cc802('0x2c')][_0x4cc802('0x24')](_0x375730)['then'](function(_0x232320){const _0x40b8c1=_0x4cc802;return _0x22c161[_0x40b8c1('0x24')]=_0x232320,_0x395ca7[_0x40b8c1('0x8f')][_0x40b8c1('0x1a')]&&(_0x16a644['include']=[{'all':!![]}]),db['WhatsappAccount'][_0x40b8c1('0x34')](_0x16a644);})['then'](function(_0x428180){const _0x61cb7a=_0x4cc802;return _0x22c161[_0x61cb7a('0x81')]=_0x428180,_0x22c161;})[_0x4cc802('0x53')](respondWithFilteredResult(_0x427094,_0x16a644))[_0x4cc802('0x14')](handleError(_0x427094,null));},exports[_0x4e2556('0xc')]=function(_0x460031,_0x459de9){const _0x11bac7=_0x4e2556;let _0x2d3225={'raw':![],'where':{'id':_0x460031['params']['id']},'include':[{'model':db[_0x11bac7('0x43')],'as':_0x11bac7('0x95')}]};const _0x2fdf84={};return _0x2fdf84['model']=_['keys'](db[_0x11bac7('0x2c')][_0x11bac7('0xa')]),_0x2fdf84[_0x11bac7('0x8f')]=_[_0x11bac7('0x36')](_0x460031[_0x11bac7('0x8f')]),_0x2fdf84[_0x11bac7('0x4b')]=_[_0x11bac7('0x89')](_0x2fdf84[_0x11bac7('0x8c')],_0x2fdf84['query']),_0x2d3225[_0x11bac7('0x97')]=_['intersection'](_0x2fdf84[_0x11bac7('0x8c')],qs['fields'](_0x460031[_0x11bac7('0x8f')][_0x11bac7('0x92')])),_0x2d3225[_0x11bac7('0x97')]=_0x2d3225[_0x11bac7('0x97')][_0x11bac7('0x8d')]?_0x2d3225[_0x11bac7('0x97')]:_0x2fdf84[_0x11bac7('0x8c')],_0x460031['query']['includeAll']&&(_0x2d3225[_0x11bac7('0x39')]=[{'all':!![]}]),_0x2d3225=_[_0x11bac7('0x71')]({},_0x2d3225,_0x460031[_0x11bac7('0x38')]),db[_0x11bac7('0x2c')][_0x11bac7('0x7')](_0x2d3225)['then'](handleEntityNotFound(_0x459de9,null))[_0x11bac7('0x53')](respondWithResult(_0x459de9,null))[_0x11bac7('0x14')](handleError(_0x459de9,null));},exports[_0x4e2556('0x37')]=function(_0x3731a3,_0x475191){const _0x5050ce=_0x4e2556;return db[_0x5050ce('0x2c')]['create'](_0x3731a3[_0x5050ce('0x21')],{})['then'](function(_0x78ad6f){const _0x3c48a1=_0x5050ce,_0xb5645b=_0x3731a3[_0x3c48a1('0x57')][_0x3c48a1('0x32')]({'plain':!![]});if(!_0xb5645b)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0xb5645b[_0x3c48a1('0x51')]===_0x3c48a1('0x57')){const _0x121966=_0x78ad6f[_0x3c48a1('0x32')]({'plain':!![]}),_0x1b7f1a='WhatsappAccounts';return db[_0x3c48a1('0x49')][_0x3c48a1('0x7')]({'where':{'name':_0x1b7f1a,'userProfileId':_0xb5645b['userProfileId']},'raw':!![]})[_0x3c48a1('0x53')](function(_0x162115){const _0x2d2a5d=_0x3c48a1;return _0x162115&&_0x162115[_0x2d2a5d('0x93')]===0x0?db[_0x2d2a5d('0x5b')][_0x2d2a5d('0x37')]({'name':_0x121966['name'],'resourceId':_0x121966['id'],'type':_0x162115[_0x2d2a5d('0x84')],'sectionId':_0x162115['id']},{})[_0x2d2a5d('0x53')](function(){return _0x78ad6f;}):_0x78ad6f;})[_0x3c48a1('0x14')](function(_0x4bd89c){const _0x1b0150=_0x3c48a1;logger[_0x1b0150('0x7b')](_0x1b0150('0x28'),_0x4bd89c);throw _0x4bd89c;});}return _0x78ad6f;})[_0x5050ce('0x53')](respondWithResult(_0x475191,0xc9))[_0x5050ce('0x14')](handleError(_0x475191,null));},exports[_0x4e2556('0x1')]=function(_0x21ef9f,_0x1e6ad8){const _0x27f9a2=_0x4e2556;return _0x21ef9f[_0x27f9a2('0x21')]['id']&&delete _0x21ef9f[_0x27f9a2('0x21')]['id'],db[_0x27f9a2('0x2c')][_0x27f9a2('0x7')]({'where':{'id':_0x21ef9f[_0x27f9a2('0x6a')]['id']},'include':[{'model':db[_0x27f9a2('0x43')],'as':_0x27f9a2('0x95')}]})['then'](handleEntityNotFound(_0x1e6ad8,null))[_0x27f9a2('0x53')](saveUpdates(_0x21ef9f[_0x27f9a2('0x21')],null))[_0x27f9a2('0x53')](respondWithResult(_0x1e6ad8,null))[_0x27f9a2('0x14')](handleError(_0x1e6ad8,null));},exports[_0x4e2556('0x4f')]=function(_0x1289f5,_0x561c29){const _0x3489e8=_0x4e2556;return db['WhatsappAccount'][_0x3489e8('0x7')]({'where':{'id':_0x1289f5[_0x3489e8('0x6a')]['id']}})[_0x3489e8('0x53')](handleEntityNotFound(_0x561c29,null))[_0x3489e8('0x53')](removeEntity(_0x561c29,null))[_0x3489e8('0x14')](handleError(_0x561c29,null));},exports[_0x4e2556('0x16')]=function(_0x5b94cf,_0x77d1c3){const _0x76612c=_0x4e2556;return db[_0x76612c('0x2c')][_0x76612c('0x16')]()[_0x76612c('0x53')](respondWithResult(_0x77d1c3,null))[_0x76612c('0x14')](handleError(_0x77d1c3,null));},exports[_0x4e2556('0x64')]=function(_0x491e32,_0x47cbae){const _0x5961cd=_0x4e2556;return _0x491e32[_0x5961cd('0x21')]['id']&&delete _0x491e32[_0x5961cd('0x21')]['id'],db['WhatsappAccount'][_0x5961cd('0x7')]({'where':{'id':_0x491e32[_0x5961cd('0x6a')]['id']}})[_0x5961cd('0x53')](handleEntityNotFound(_0x47cbae,null))[_0x5961cd('0x53')](function(_0x4230b1){const _0x48c62f=_0x5961cd;if(_0x4230b1)return _0x491e32[_0x48c62f('0x21')][_0x48c62f('0x11')]=_0x4230b1['id'],db[_0x48c62f('0x76')][_0x48c62f('0x37')](_0x491e32[_0x48c62f('0x21')]);})[_0x5961cd('0x53')](respondWithResult(_0x47cbae,null))[_0x5961cd('0x14')](handleError(_0x47cbae,null));},exports['getDispositions']=function(_0x2e99bf,_0x58a0ee){const _0x459e9e=_0x4e2556;let _0x66b07b={'raw':![],'where':{}};const _0x1c85b0={},_0x22d091={'count':0x0,'rows':[]};return db[_0x459e9e('0x2c')][_0x459e9e('0x7')]({'where':{'id':_0x2e99bf['params']['id']}})['then'](handleEntityNotFound(_0x58a0ee,null))[_0x459e9e('0x53')](function(_0x293f71){const _0x15ee58=_0x459e9e;if(_0x293f71)return _0x1c85b0[_0x15ee58('0x8c')]=_[_0x15ee58('0x36')](db[_0x15ee58('0x76')][_0x15ee58('0xa')]),_0x1c85b0['query']=_['keys'](_0x2e99bf['query']),_0x1c85b0[_0x15ee58('0x4b')]=_[_0x15ee58('0x89')](_0x1c85b0[_0x15ee58('0x8c')],_0x1c85b0[_0x15ee58('0x8f')]),_0x66b07b[_0x15ee58('0x97')]=_[_0x15ee58('0x89')](_0x1c85b0[_0x15ee58('0x8c')],qs[_0x15ee58('0x92')](_0x2e99bf['query'][_0x15ee58('0x92')])),_0x66b07b[_0x15ee58('0x97')]=_0x66b07b[_0x15ee58('0x97')][_0x15ee58('0x8d')]?_0x66b07b['attributes']:_0x1c85b0[_0x15ee58('0x8c')],typeof _0x2e99bf['query'][_0x15ee58('0x1d')]===_0x15ee58('0x83')&&(_0x66b07b[_0x15ee58('0x45')]=qs[_0x15ee58('0x45')](_0x2e99bf[_0x15ee58('0x8f')][_0x15ee58('0x45')]),_0x66b07b['offset']=qs[_0x15ee58('0x98')](_0x2e99bf[_0x15ee58('0x8f')][_0x15ee58('0x98')])),_0x66b07b[_0x15ee58('0x5f')]=qs['sort'](_0x2e99bf[_0x15ee58('0x8f')][_0x15ee58('0x5d')]),_0x66b07b['where']=qs[_0x15ee58('0x4b')](_[_0x15ee58('0x69')](_0x2e99bf[_0x15ee58('0x8f')],_0x1c85b0['filters'])),_0x66b07b[_0x15ee58('0x48')][_0x15ee58('0x11')]=_0x293f71['id'],_0x2e99bf[_0x15ee58('0x8f')][_0x15ee58('0x5c')]&&(_0x66b07b[_0x15ee58('0x48')]=_[_0x15ee58('0x71')](_0x66b07b[_0x15ee58('0x48')],{[Op['or']]:_[_0x15ee58('0x42')](_0x66b07b[_0x15ee58('0x97')],function(_0x16ac32){const _0x1f99d5=_0x15ee58,_0x4b17df={};return _0x4b17df[_0x16ac32]={[Op[_0x1f99d5('0x2e')]]:'%'+_0x2e99bf[_0x1f99d5('0x8f')]['filter']+'%'},_0x4b17df;})})),_0x66b07b=_[_0x15ee58('0x71')]({},_0x66b07b,_0x2e99bf['options']),db['Disposition'][_0x15ee58('0x24')]({'where':_0x66b07b[_0x15ee58('0x48')]})[_0x15ee58('0x53')](function(_0x1273f8){const _0x3afb3f=_0x15ee58;return _0x22d091[_0x3afb3f('0x24')]=_0x1273f8,_0x2e99bf[_0x3afb3f('0x8f')]['includeAll']&&(_0x66b07b['include']=[{'all':!![]}]),db[_0x3afb3f('0x76')][_0x3afb3f('0x34')](_0x66b07b);})['then'](function(_0x525f5d){const _0x2fe603=_0x15ee58;return _0x22d091[_0x2fe603('0x81')]=_0x525f5d,_0x22d091;});})[_0x459e9e('0x53')](respondWithFilteredResult(_0x58a0ee,_0x66b07b))['catch'](handleError(_0x58a0ee,null));},exports[_0x4e2556('0x25')]=function(_0x390f97,_0x532905){const _0x2db43e=_0x4e2556;return db[_0x2db43e('0x2c')][_0x2db43e('0x7')]({'where':{'id':_0x390f97[_0x2db43e('0x6a')]['id']}})[_0x2db43e('0x53')](handleEntityNotFound(_0x532905,null))[_0x2db43e('0x53')](function(_0x17c39a){const _0x22cf82=_0x2db43e;if(_0x17c39a)return _0x17c39a['removeDispositions'](_0x390f97[_0x22cf82('0x8f')]['ids']);})[_0x2db43e('0x53')](respondWithStatusCode(_0x532905,null))[_0x2db43e('0x14')](handleError(_0x532905,null));},exports[_0x4e2556('0x6f')]=function(_0x54f6da,_0x2b09f7){const _0x257924=_0x4e2556;return _0x54f6da[_0x257924('0x21')]['id']&&delete _0x54f6da[_0x257924('0x21')]['id'],db[_0x257924('0x2c')]['findOne']({'where':{'id':_0x54f6da[_0x257924('0x6a')]['id']}})['then'](handleEntityNotFound(_0x2b09f7,null))[_0x257924('0x53')](function(_0x39e855){const _0xf00489=_0x257924;if(_0x39e855)return _0x54f6da[_0xf00489('0x21')]['WhatsappAccountId']=_0x39e855['id'],db[_0xf00489('0x79')]['create'](_0x54f6da['body']);})['then'](respondWithResult(_0x2b09f7,null))[_0x257924('0x14')](handleError(_0x2b09f7,null));},exports['getAnswers']=function(_0x5812be,_0x3a4b52){const _0x2d6acc=_0x4e2556;let _0x1a5d27={'raw':![],'where':{}};const _0x25ef12={},_0x2c4aef={'count':0x0,'rows':[]};return db['WhatsappAccount']['findOne']({'where':{'id':_0x5812be[_0x2d6acc('0x6a')]['id']}})[_0x2d6acc('0x53')](handleEntityNotFound(_0x3a4b52,null))['then'](function(_0x5b851b){const _0x336a5f=_0x2d6acc;if(_0x5b851b)return _0x25ef12['model']=_[_0x336a5f('0x36')](db[_0x336a5f('0x79')]['rawAttributes']),_0x25ef12['query']=_['keys'](_0x5812be['query']),_0x25ef12[_0x336a5f('0x4b')]=_[_0x336a5f('0x89')](_0x25ef12[_0x336a5f('0x8c')],_0x25ef12[_0x336a5f('0x8f')]),_0x1a5d27['attributes']=_['intersection'](_0x25ef12['model'],qs[_0x336a5f('0x92')](_0x5812be['query'][_0x336a5f('0x92')])),_0x1a5d27[_0x336a5f('0x97')]=_0x1a5d27['attributes'][_0x336a5f('0x8d')]?_0x1a5d27[_0x336a5f('0x97')]:_0x25ef12['model'],typeof _0x5812be[_0x336a5f('0x8f')][_0x336a5f('0x1d')]===_0x336a5f('0x83')&&(_0x1a5d27['limit']=qs[_0x336a5f('0x45')](_0x5812be[_0x336a5f('0x8f')][_0x336a5f('0x45')]),_0x1a5d27[_0x336a5f('0x98')]=qs[_0x336a5f('0x98')](_0x5812be[_0x336a5f('0x8f')][_0x336a5f('0x98')])),_0x1a5d27[_0x336a5f('0x5f')]=qs[_0x336a5f('0x5d')](_0x5812be['query'][_0x336a5f('0x5d')]),_0x1a5d27['where']=qs[_0x336a5f('0x4b')](_[_0x336a5f('0x69')](_0x5812be[_0x336a5f('0x8f')],_0x25ef12['filters'])),_0x1a5d27[_0x336a5f('0x48')][_0x336a5f('0x11')]=_0x5b851b['id'],_0x5812be['query']['filter']&&(_0x1a5d27[_0x336a5f('0x48')]=_['merge'](_0x1a5d27[_0x336a5f('0x48')],{[Op['or']]:_[_0x336a5f('0x42')](_0x1a5d27[_0x336a5f('0x97')],function(_0x3ee8ed){const _0x250152=_0x336a5f,_0x491325={};return _0x491325[_0x3ee8ed]={[Op[_0x250152('0x2e')]]:'%'+_0x5812be[_0x250152('0x8f')][_0x250152('0x5c')]+'%'},_0x491325;})})),_0x1a5d27=_[_0x336a5f('0x71')]({},_0x1a5d27,_0x5812be[_0x336a5f('0x38')]),db['CannedAnswer'][_0x336a5f('0x24')]({'where':_0x1a5d27['where']})[_0x336a5f('0x53')](function(_0x248608){const _0x52d0c2=_0x336a5f;return _0x2c4aef['count']=_0x248608,_0x5812be[_0x52d0c2('0x8f')][_0x52d0c2('0x1a')]&&(_0x1a5d27[_0x52d0c2('0x39')]=[{'all':!![]}]),db[_0x52d0c2('0x79')]['findAll'](_0x1a5d27);})[_0x336a5f('0x53')](function(_0x4cacfb){const _0x347b5e=_0x336a5f;return _0x2c4aef[_0x347b5e('0x81')]=_0x4cacfb,_0x2c4aef;});})[_0x2d6acc('0x53')](respondWithFilteredResult(_0x3a4b52,_0x1a5d27))['catch'](handleError(_0x3a4b52,null));},exports[_0x4e2556('0x6b')]=function(_0x2d9883,_0x4005db){const _0x45f94e=_0x4e2556;return db[_0x45f94e('0x2c')][_0x45f94e('0x7')]({'where':{'id':_0x2d9883[_0x45f94e('0x6a')]['id']}})[_0x45f94e('0x53')](handleEntityNotFound(_0x4005db,null))['then'](function(_0x2ddaa6){const _0x31331b=_0x45f94e;if(_0x2ddaa6)return _0x2ddaa6[_0x31331b('0x6b')](_0x2d9883[_0x31331b('0x8f')][_0x31331b('0x80')]);})[_0x45f94e('0x53')](respondWithStatusCode(_0x4005db,null))['catch'](handleError(_0x4005db,null));},exports[_0x4e2556('0x6')]=function(_0xe37ed8,_0x16ca69){const _0x4e4782=_0x4e2556;return db['WhatsappAccount'][_0x4e4782('0x7')]({'where':{'id':_0xe37ed8[_0x4e4782('0x6a')]['id']}})['then'](function(_0xaac3e1){const _0x17e22c=_0x4e4782;if(_0xaac3e1)return _0xaac3e1[_0x17e22c('0x6')](_0xe37ed8[_0x17e22c('0x21')][_0x17e22c('0x80')],{'through':_[_0x17e22c('0x67')](_0xe37ed8[_0x17e22c('0x21')],[_0x17e22c('0x80'),'id'])})[_0x17e22c('0x53')](function(_0x2110f7){const _0x3574f5=_0x17e22c;for(let _0x4419bf=0x0;_0x4419bf<_0xe37ed8[_0x3574f5('0x21')]['ids'][_0x3574f5('0x8d')];_0x4419bf+=0x1){socket['emit']('userWhatsappAccount:save',{'UserId':_0xe37ed8['body'][_0x3574f5('0x80')][_0x4419bf],'WhatsappAccountId':_0xe37ed8['params']['id']});}return _0x2110f7;});})[_0x4e4782('0x53')](respondWithResult(_0x16ca69,null))[_0x4e4782('0x14')](handleError(_0x16ca69,null));},exports[_0x4e2556('0x3b')]=function(_0x5b06fb,_0x5df20e){const _0xf0cc80=_0x4e2556;return db['WhatsappAccount']['findOne']({'where':{'id':_0x5b06fb['params']['id']}})[_0xf0cc80('0x53')](handleEntityNotFound(_0x5df20e,null))['then'](function(_0x247590){const _0x5e157d=_0xf0cc80;if(_0x247590)return _0x247590[_0x5e157d('0x3b')](_0x5b06fb['query'][_0x5e157d('0x80')])[_0x5e157d('0x53')](function(){const _0x50c4e5=_0x5e157d;if(_['isArray'](_0x5b06fb[_0x50c4e5('0x8f')]['ids']))for(let _0x37bb5d=0x0;_0x37bb5d<_0x5b06fb[_0x50c4e5('0x8f')][_0x50c4e5('0x80')]['length'];_0x37bb5d+=0x1){socket[_0x50c4e5('0x66')]('userWhatsappAccount:remove',{'UserId':Number(_0x5b06fb[_0x50c4e5('0x8f')][_0x50c4e5('0x80')][_0x37bb5d]),'WhatsappAccountId':Number(_0x5b06fb['params']['id'])});}else socket[_0x50c4e5('0x66')](_0x50c4e5('0x9'),{'UserId':Number(_0x5b06fb['query'][_0x50c4e5('0x80')]),'WhatsappAccountId':Number(_0x5b06fb[_0x50c4e5('0x6a')]['id'])});});})[_0xf0cc80('0x53')](respondWithStatusCode(_0x5df20e,null))['catch'](handleError(_0x5df20e,null));},exports[_0x4e2556('0x33')]=function(_0x3ac27c,_0x377e8e){const _0x2d292c=_0x4e2556;let _0x295a33={};const _0x428ed6={};let _0x2dd683,_0x577061;return db[_0x2d292c('0x2c')]['findOne']({'where':{'id':_0x3ac27c[_0x2d292c('0x6a')]['id']}})['then'](handleEntityNotFound(_0x377e8e,null))[_0x2d292c('0x53')](function(_0x31566f){const _0x4f8d41=_0x2d292c;if(_0x31566f)return _0x2dd683=_0x31566f,_0x428ed6[_0x4f8d41('0x8c')]=_[_0x4f8d41('0x36')](db[_0x4f8d41('0xf')][_0x4f8d41('0xa')]),_0x428ed6[_0x4f8d41('0x8f')]=_[_0x4f8d41('0x36')](_0x3ac27c['query']),_0x428ed6[_0x4f8d41('0x4b')]=_[_0x4f8d41('0x89')](_0x428ed6[_0x4f8d41('0x8c')],_0x428ed6[_0x4f8d41('0x8f')]),_0x295a33[_0x4f8d41('0x97')]=_[_0x4f8d41('0x89')](_0x428ed6[_0x4f8d41('0x8c')],qs[_0x4f8d41('0x92')](_0x3ac27c[_0x4f8d41('0x8f')][_0x4f8d41('0x92')])),_0x295a33[_0x4f8d41('0x97')]=_0x295a33[_0x4f8d41('0x97')][_0x4f8d41('0x8d')]?_0x295a33[_0x4f8d41('0x97')]:_0x428ed6[_0x4f8d41('0x8c')],_0x295a33[_0x4f8d41('0x5f')]=qs[_0x4f8d41('0x5d')](_0x3ac27c['query'][_0x4f8d41('0x5d')]),_0x295a33[_0x4f8d41('0x48')]=qs[_0x4f8d41('0x4b')](_[_0x4f8d41('0x69')](_0x3ac27c[_0x4f8d41('0x8f')],_0x428ed6[_0x4f8d41('0x4b')])),_0x3ac27c[_0x4f8d41('0x8f')][_0x4f8d41('0x5c')]&&(_0x295a33['where']=_['merge'](_0x295a33['where'],{[Op['or']]:_['map'](_0x295a33[_0x4f8d41('0x97')],function(_0x5b3027){const _0x3c4433=_0x4f8d41,_0x2dbc74={};return _0x2dbc74[_0x5b3027]={[Op[_0x3c4433('0x2e')]]:'%'+_0x3ac27c[_0x3c4433('0x8f')]['filter']+'%'},_0x2dbc74;})})),_0x295a33=_[_0x4f8d41('0x71')]({},_0x295a33,_0x3ac27c[_0x4f8d41('0x38')]),_0x2dd683[_0x4f8d41('0x33')](_0x295a33);})[_0x2d292c('0x53')](function(_0x41dff4){const _0x1281ba=_0x2d292c;if(_0x41dff4)return _0x577061=_0x41dff4['length'],typeof _0x3ac27c[_0x1281ba('0x8f')][_0x1281ba('0x1d')]===_0x1281ba('0x83')&&(_0x295a33[_0x1281ba('0x45')]=qs['limit'](_0x3ac27c['query'][_0x1281ba('0x45')]),_0x295a33['offset']=qs[_0x1281ba('0x98')](_0x3ac27c[_0x1281ba('0x8f')][_0x1281ba('0x98')])),_0x2dd683[_0x1281ba('0x33')](_0x295a33);})[_0x2d292c('0x53')](function(_0x5be64d){if(_0x5be64d)return _0x5be64d?{'count':_0x577061,'rows':_0x5be64d}:null;})[_0x2d292c('0x53')](respondWithResult(_0x377e8e,null))[_0x2d292c('0x14')](handleError(_0x377e8e,null));},exports[_0x4e2556('0x23')]=function(_0x1481f5,_0x5e5418){const _0x1fa05f=_0x4e2556;return db[_0x1fa05f('0x2c')][_0x1fa05f('0x7')]({'where':{'id':_0x1481f5[_0x1fa05f('0x6a')]['id']}})[_0x1fa05f('0x53')](handleEntityNotFound(_0x5e5418,null))[_0x1fa05f('0x53')](function(_0x2931b5){const _0x40b191=_0x1fa05f;if(_0x2931b5)return db[_0x40b191('0x5a')][_0x40b191('0x68')](function(_0x4ce54b){const _0x164f0b=_0x40b191;return db[_0x164f0b('0x7c')]['destroy']({'where':{'WhatsappAccountId':_0x1481f5['params']['id']},'transaction':_0x4ce54b})[_0x164f0b('0x53')](function(){const _0x4dddde=_0x164f0b,_0x114e45=_[_0x4dddde('0x42')](_0x1481f5['body'],function(_0x36d60e){const _0x5477cc=_0x4dddde;return _0x36d60e[_0x5477cc('0x11')]=_0x1481f5['params']['id'],_0x36d60e;});return db['WhatsappApplication'][_0x4dddde('0x8e')](_0x114e45,{'transaction':_0x4ce54b});});})['then'](function(){const _0x4e34c=_0x40b191;return db['WhatsappApplication'][_0x4e34c('0x74')]({'where':{'WhatsappAccountId':_0x1481f5[_0x4e34c('0x6a')]['id']},'order':_0x4e34c('0x41')});});})[_0x1fa05f('0x53')](respondWithResult(_0x5e5418,null))['catch'](handleError(_0x5e5418,null));},exports[_0x4e2556('0x82')]=function(_0x5a835c,_0x668bd0){const _0xe02293=_0x4e2556;let _0x2ca61b={};const _0x510792={};let _0xa1b360,_0x4c0477;return db['WhatsappAccount'][_0xe02293('0x7')]({'where':{'id':_0x5a835c[_0xe02293('0x6a')]['id']}})[_0xe02293('0x53')](handleEntityNotFound(_0x668bd0,null))['then'](function(_0x5cf19a){const _0x3283e1=_0xe02293;if(_0x5cf19a)return _0xa1b360=_0x5cf19a,_0x510792[_0x3283e1('0x8c')]=_[_0x3283e1('0x36')](db[_0x3283e1('0x7c')][_0x3283e1('0xa')]),_0x510792[_0x3283e1('0x8f')]=_['keys'](_0x5a835c[_0x3283e1('0x8f')]),_0x510792[_0x3283e1('0x4b')]=_[_0x3283e1('0x89')](_0x510792[_0x3283e1('0x8c')],_0x510792[_0x3283e1('0x8f')]),_0x2ca61b['attributes']=_[_0x3283e1('0x89')](_0x510792[_0x3283e1('0x8c')],qs['fields'](_0x5a835c[_0x3283e1('0x8f')][_0x3283e1('0x92')])),_0x2ca61b['attributes']=_0x2ca61b[_0x3283e1('0x97')][_0x3283e1('0x8d')]?_0x2ca61b[_0x3283e1('0x97')]:_0x510792[_0x3283e1('0x8c')],_0x2ca61b[_0x3283e1('0x5f')]=qs[_0x3283e1('0x5d')](_0x5a835c['query']['sort']),_0x2ca61b[_0x3283e1('0x48')]=qs[_0x3283e1('0x4b')](_[_0x3283e1('0x69')](_0x5a835c[_0x3283e1('0x8f')],_0x510792[_0x3283e1('0x4b')])),_0x5a835c[_0x3283e1('0x8f')][_0x3283e1('0x5c')]&&(_0x2ca61b['where']=_['merge'](_0x2ca61b[_0x3283e1('0x48')],{[Op['or']]:_[_0x3283e1('0x42')](_0x2ca61b[_0x3283e1('0x97')],function(_0x53ce19){const _0x59ca86=_0x3283e1,_0x3b9840={};return _0x3b9840[_0x53ce19]={[Op[_0x59ca86('0x2e')]]:'%'+_0x5a835c['query'][_0x59ca86('0x5c')]+'%'},_0x3b9840;})})),_0x2ca61b=_[_0x3283e1('0x71')]({},_0x2ca61b,_0x5a835c[_0x3283e1('0x38')]),_0xa1b360[_0x3283e1('0x82')](_0x2ca61b);})[_0xe02293('0x53')](function(_0x5ec0bb){const _0x4147ba=_0xe02293;if(_0x5ec0bb)return _0x4c0477=_0x5ec0bb[_0x4147ba('0x8d')],typeof _0x5a835c['query'][_0x4147ba('0x1d')]===_0x4147ba('0x83')&&(_0x2ca61b[_0x4147ba('0x45')]=qs[_0x4147ba('0x45')](_0x5a835c[_0x4147ba('0x8f')]['limit']),_0x2ca61b[_0x4147ba('0x98')]=qs['offset'](_0x5a835c['query'][_0x4147ba('0x98')])),_0xa1b360[_0x4147ba('0x82')](_0x2ca61b);})[_0xe02293('0x53')](function(_0x51cfc6){if(_0x51cfc6)return _0x51cfc6?{'count':_0x4c0477,'rows':_0x51cfc6}:null;})[_0xe02293('0x53')](respondWithResult(_0x668bd0,null))[_0xe02293('0x14')](handleError(_0x668bd0,null));},exports[_0x4e2556('0x44')]=function(_0xb3a29,_0x411024){const _0x1e34c9=_0x4e2556,_0x3d5bd9={'channel':_0x1e34c9('0xe')};let _0x1d7674=[],_0x163207=[];const _0x2c78a4={};return db[_0x1e34c9('0x2c')][_0x1e34c9('0x7')]({'where':{'id':_0xb3a29[_0x1e34c9('0x6a')]['id']},'include':[{'model':db[_0x1e34c9('0x7c')],'as':_0x1e34c9('0x73')}]})[_0x1e34c9('0x53')](handleEntityNotFound(_0x411024,null))[_0x1e34c9('0x53')](function(_0x4012dc){const _0xc2d7b1=_0x1e34c9;return _0x3d5bd9[_0xc2d7b1('0x46')]=_0x4012dc,_0x3d5bd9[_0xc2d7b1('0x8a')]=_[_0xc2d7b1('0x62')](_0x4012dc['Applications'],['priority'],[_0xc2d7b1('0x35')]),_0x3d5bd9[_0xc2d7b1('0x46')]['Applications']&&delete _0x3d5bd9[_0xc2d7b1('0x46')][_0xc2d7b1('0x73')],db[_0xc2d7b1('0x3f')]['describe']();})[_0x1e34c9('0x53')](function(_0x4a051c){const _0x37c522=_0x1e34c9;if(!_0x4a051c)throw new ValidationError('no\x20available\x20attributes');_0x1d7674=_[_0x37c522('0x8')](_['keys'](_0x4a051c),[_0x37c522('0x26'),_0x37c522('0x40')]),_0x163207=_[_0x37c522('0x8')](_[_0x37c522('0x36')](_0x4a051c),[_0x37c522('0x26'),_0x37c522('0x40'),_0x37c522('0x88'),_0x37c522('0x3c')]),_0x3d5bd9[_0x37c522('0x21')]={'mapKey':_0x37c522('0x61')};_0x3d5bd9[_0x37c522('0x46')][_0x37c522('0x0')]&&_0x3d5bd9[_0x37c522('0x46')][_0x37c522('0x0')]===_0x37c522('0x7e')&&(_0x3d5bd9['body'][_0x37c522('0x1f')]=_0xb3a29['body'][_0x37c522('0x30')][_0x37c522('0x72')](_0x37c522('0x59'),''),_0x3d5bd9[_0x37c522('0x21')][_0x37c522('0x21')]=_0xb3a29[_0x37c522('0x21')][_0x37c522('0x17')],_0x3d5bd9['body'][_0x37c522('0x75')]=_0xb3a29['body']['MessageSid']);_0x3d5bd9[_0x37c522('0x21')]['id']&&delete _0x3d5bd9[_0x37c522('0x21')]['id'];if(_[_0x37c522('0x4')](_0x3d5bd9['body']['from']))throw new ValidationError(_0x37c522('0x7a'));if(_[_0x37c522('0x4')](_0x3d5bd9[_0x37c522('0x21')][_0x37c522('0x21')])||_0x3d5bd9['body'][_0x37c522('0x21')]==='')throw new ValidationError(_0x37c522('0x19'));if(_['isNil'](_0x3d5bd9[_0x37c522('0x21')][_0x37c522('0x15')]))throw new ValidationError(_0x37c522('0x4e')+_0x163207);if(!_[_0x37c522('0x2b')](_0x163207,_0x3d5bd9[_0x37c522('0x21')][_0x37c522('0x15')]))throw new ValidationError(_0x37c522('0x29')+_0x163207);return _0x2c78a4[_0x3d5bd9[_0x37c522('0x21')]['mapKey']]=_0x3d5bd9[_0x37c522('0x21')]['from'],db['CmList'][_0x37c522('0x7')]({'where':{'id':_0x3d5bd9['account'][_0x37c522('0x3c')]},'include':[{'model':db[_0x37c522('0x3f')],'as':_0x37c522('0xb'),'where':_0x2c78a4,'limit':0x1,'order':[['updatedAt','DESC']]}]});})[_0x1e34c9('0x53')](handleEntityNotFound(_0x411024,null))[_0x1e34c9('0x53')](function(_0x507ded){const _0x1194a5=_0x1e34c9;if(_0x507ded){_0x3d5bd9['list']=_['omit'](_0x507ded,[_0x1194a5('0xb')]);if(_0x507ded['Contacts'][_0x1194a5('0x8d')])return _0x507ded['Contacts'][0x0];const _0x1d3881=_[_0x1194a5('0x2d')](_0x3d5bd9[_0x1194a5('0x21')],{'firstName':_0x3d5bd9[_0x1194a5('0x21')]['from'],'ListId':_0x507ded['id']});return _0x1d3881[_0x3d5bd9[_0x1194a5('0x21')]['mapKey']]=_0x3d5bd9[_0x1194a5('0x21')][_0x1194a5('0x1f')],db[_0x1194a5('0x3f')][_0x1194a5('0x37')](_0x1d3881,{'fields':_0x1d7674,'raw':!![]});}})['then'](handleEntityNotFound(_0x411024,null))['then'](function(_0x192f89){const _0x489624=_0x1e34c9;if(_0x192f89){_0x3d5bd9[_0x489624('0x86')]=_0x192f89;const _0x134232={'ContactId':_0x192f89['id'],'phone':_0x3d5bd9['body'][_0x489624('0x1f')],'WhatsappAccountId':_0xb3a29['params']['id']},_0x39e1a5={'ContactId':_0x192f89['id'],'WhatsappAccountId':_0xb3a29[_0x489624('0x6a')]['id'],'closed':![]};return db[_0x489624('0x96')][_0x489624('0x7')]({'where':_0x39e1a5})[_0x489624('0x53')](function(_0x435c19){const _0x1ba3e3=_0x489624;if(_0x435c19)return[_0x435c19,![]];return db[_0x1ba3e3('0x96')][_0x1ba3e3('0x37')](_0x134232)[_0x1ba3e3('0x53')](function(_0x587adc){return[_0x587adc,!![]];});});}})[_0x1e34c9('0x53')](function([_0x5d5877,_0xfc79b6]){const _0x1a98fc=_0x1e34c9;return _0x3d5bd9['interaction']=_0x5d5877['get']({'plain':!![]}),_0x3d5bd9['interaction'][_0x1a98fc('0x60')]=![],_0xfc79b6&&(_0x3d5bd9[_0x1a98fc('0x46')]['autoclose']&&_0x3d5bd9[_0x1a98fc('0x8a')][_0x1a98fc('0x78')]({'id':0x0,'priority':_0x3d5bd9['applications'][_0x1a98fc('0x8d')]+0x1,'app':'close','appdata':_0x1a98fc('0x90'),'interval':_0x1a98fc('0x54')}),_0x3d5bd9[_0x1a98fc('0x27')][_0x1a98fc('0x60')]=!![]),db[_0x1a98fc('0x8b')][_0x1a98fc('0x37')]({'phone':_0x3d5bd9['body'][_0x1a98fc('0x1f')],'messageId':_0x3d5bd9[_0x1a98fc('0x21')][_0x1a98fc('0x75')],'body':_0x3d5bd9[_0x1a98fc('0x21')][_0x1a98fc('0x21')],'WhatsappAccountId':_0xb3a29[_0x1a98fc('0x6a')]['id'],'WhatsappInteractionId':_0x5d5877['id'],'direction':'in','ContactId':_0x5d5877['ContactId'],'AttachmentId':_0x3d5bd9[_0x1a98fc('0x21')][_0x1a98fc('0x18')]});})[_0x1e34c9('0x53')](function(_0x5f37af){const _0xbc9a55=_0x1e34c9;_0x3d5bd9[_0xbc9a55('0x65')]=_0x5f37af;if(_0x3d5bd9[_0xbc9a55('0x27')]['UserId'])return db['User']['findOne']({'attributes':['id','name'],'where':{'id':_0x3d5bd9[_0xbc9a55('0x27')]['UserId']}})[_0xbc9a55('0x53')](function(_0x3a3808){const _0x1ceb1c=_0xbc9a55;return _0x3a3808&&_0x3d5bd9[_0x1ceb1c('0x8a')]['unshift']({'id':0x0,'priority':0x0,'app':'agent','appdata':_0x3a3808[_0x1ceb1c('0x84')]+','+(_0x3d5bd9[_0x1ceb1c('0x46')][_0x1ceb1c('0x94')]||0xa),'interval':_0x1ceb1c('0x54')}),respondWithRpcPromise(_0x1ceb1c('0x50'),_0x1ceb1c('0x7d'),_0x3d5bd9);});return respondWithRpcPromise(_0xbc9a55('0x50'),_0xbc9a55('0x7d'),_0x3d5bd9);})['then'](function(_0x405ac4){const _0x422d83=_0x1e34c9;if(_0x405ac4){const _0x26bf04=0xc8,_0x141718='receiveMessage';return logger[_0x422d83('0x63')](_0x422d83('0x1c'),_0x141718,_0x26bf04,'entity\x20found'),logger[_0x422d83('0x2f')](_0x422d83('0x58'),_0x141718,_0x26bf04,'entity\x20found',JSON['stringify'](_0x405ac4)),_0x3d5bd9[_0x422d83('0x46')][_0x422d83('0x0')]===_0x422d83('0x7e')?_0x411024['status'](_0x26bf04)[_0x422d83('0x3a')](_0x422d83('0x10'),'text/xml')[_0x422d83('0x22')](_0x422d83('0x12')):_0x411024['status'](_0x26bf04)[_0x422d83('0x6e')](_0x405ac4);}})[_0x1e34c9('0x14')](handleError(_0x411024,null));},exports[_0x4e2556('0x22')]=function(_0x59ad4a,_0x204e0d){const _0x6a5d0f=_0x4e2556;let _0x4fb741,_0x4d1062;if(_[_0x6a5d0f('0x4')](_0x59ad4a[_0x6a5d0f('0x21')][_0x6a5d0f('0x21')])||_0x59ad4a[_0x6a5d0f('0x21')]['body']==='')throw new ValidationError('body\x20is\x20mandatory\x20and\x20not\x20empty');if(_['isNil'](_0x59ad4a[_0x6a5d0f('0x21')]['to']))throw new ValidationError('to\x20is\x20mandatory');const _0x3f9e2f=_0x59ad4a[_0x6a5d0f('0x21')]['to'];return db[_0x6a5d0f('0x2c')][_0x6a5d0f('0x7')]({'where':{'id':_0x59ad4a['params']['id']},'include':[{'model':db[_0x6a5d0f('0x4d')],'as':'List','include':[{'model':db[_0x6a5d0f('0x3f')],'as':_0x6a5d0f('0xb'),'where':{'mobile':_0x3f9e2f},'limit':0x1,'order':[[_0x6a5d0f('0x40'),_0x6a5d0f('0x20')]]}]}]})['then'](handleEntityNotFound(_0x204e0d,null))[_0x6a5d0f('0x53')](function(_0x472f7a){const _0x5f552a=_0x6a5d0f;if(_0x472f7a&&_0x472f7a[_0x5f552a('0x3e')]){_0x4fb741=_0x472f7a[_0x5f552a('0x32')]({'plain':!![]});if(_0x4fb741[_0x5f552a('0x3e')]&&_0x4fb741[_0x5f552a('0x3e')][_0x5f552a('0xb')][_0x5f552a('0x8d')])return _0x4fb741[_0x5f552a('0x3e')][_0x5f552a('0xb')][0x0];return db[_0x5f552a('0x3f')][_0x5f552a('0x37')](_[_0x5f552a('0x2d')](_0x59ad4a[_0x5f552a('0x21')],{'firstName':_0x3f9e2f,'mobile':_0x3f9e2f,'phone':_0x3f9e2f,'ListId':_0x4fb741[_0x5f552a('0x3c')]}));}})[_0x6a5d0f('0x53')](handleEntityNotFound(_0x204e0d,null))[_0x6a5d0f('0x53')](function(_0x1a2393){const _0x5ca49c=_0x6a5d0f;if(_0x1a2393)return _0x4d1062=_0x1a2393,db[_0x5ca49c('0x96')]['findOne']({'where':{'ContactId':_0x4d1062['id'],'closed':![],'WhatsappAccountId':_0x4fb741['id']}})['then'](function(_0x3628d1){const _0x4d0807=_0x5ca49c;if(_0x3628d1)return[_0x3628d1,![]];return db['WhatsappInteraction']['create']({'UserId':_0x59ad4a[_0x4d0807('0x57')]['id'],'ContactId':_0x4d1062['id'],'WhatsappAccountId':_0x4fb741['id'],'phone':_0x3f9e2f,'firstMsgDirection':_0x4d0807('0x4a'),'Messages':[_['merge'](_0x59ad4a[_0x4d0807('0x21')],{'read':![],'body':_0x59ad4a[_0x4d0807('0x21')][_0x4d0807('0x21')],'phone':_0x3f9e2f,'WhatsappAccountId':_0x4fb741['id'],'UserId':_0x59ad4a[_0x4d0807('0x57')]['id'],'ContactId':_0x4d1062['id']})]},{'include':[{'model':db['WhatsappMessage'],'as':_0x4d0807('0x13')}]})['then'](function(_0x4a2f61){return[_0x4a2f61,!![]];});});})[_0x6a5d0f('0x53')](function([_0x4db293,_0x236383]){const _0x5f3baf=_0x6a5d0f;if(_0x236383)return _0x4db293;return db['WhatsappMessage'][_0x5f3baf('0x37')](_['merge'](_0x59ad4a[_0x5f3baf('0x21')],{'read':![],'body':_0x59ad4a[_0x5f3baf('0x21')][_0x5f3baf('0x21')],'phone':_0x3f9e2f,'WhatsappAccountId':_0x4fb741['id'],'WhatsappInteractionId':_0x4db293['id'],'UserId':_0x59ad4a[_0x5f3baf('0x57')]['id'],'ContactId':_0x4d1062['id']}))[_0x5f3baf('0x53')](function(_0x1688d5){const _0x148f0e=_0x5f3baf;return _0x4db293[_0x148f0e('0xd')]['Messages']=[],_0x4db293[_0x148f0e('0xd')][_0x148f0e('0x13')][_0x148f0e('0x78')](_0x1688d5[_0x148f0e('0xd')]),_0x4db293;});})[_0x6a5d0f('0x53')](respondWithResult(_0x204e0d,null))[_0x6a5d0f('0x14')](handleError(_0x204e0d,null));}; \ No newline at end of file +const a783_0x5354=['WhatsappMessage','http','interaction','rawAttributes','twilio','merge','CannedAnswer','WhatsappAccounts','../../rediscache','UserId','filter','receiveMessage','Contacts','sort','end','json','Messages','Start','CmContact','priority','AttachmentId','agent','filters','CmList','contact','From','Content-Range','params','out','pick','userWhatsappAccount:remove','offset','destroy','defaults','type','key','waitForTheAssignedAgent','updatedAt','keys','userWhatsappAccount:save','Applications','applications','./whatsappAccount.socket','findAll','transaction','text/xml','unshift','query','WhatsappAccountId','request','code','findAndCountAll','createdAt','role','whatsapp','startRouting','omit','map','catch','isNil','create','stringify','getApplications','bulkCreate','List','undefined','MessageSid','where','removeAnswers','count','like','name','mobile','addAnswer','attributes','WhatsappAccount','length','*,*,*,*','WhatsappAccount,\x20%s,\x20%s,\x20%s','addAgents','WhatsappAccount,\x20%s,\x20%s','include','Disposition','client','then','body\x20is\x20mandatory\x20and\x20not\x20empty','removeAgents','../../config/logger','stack','push','addDisposition','includes','sendStatus','model','update','request\x20sent','show','options','order','nolimit','result','includeAll','body','sequelize','lodash','whatsapp:','Pause','user','ids','created','CompanyId','set','\x0a','rows','../../components/parsers/qs','WhatsappApplication','messageId','get','UserProfileResource','mandatoryDispositionPause','limit','Body','addApplications','DESC','orderBy','entity\x20found','from','account','autoclose','dataValues','autoAssociation','Unable\x20to\x20retrieve\x20the\x20current\x20user','intersection','asc','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','removeDispositions','WhatsappInteraction','from\x20is\x20mandatory','unmanaged','index','User','to\x20is\x20mandatory','error','describe','difference','getAgents','debug','info','no\x20available\x20attributes','mapKey','replace','UserProfileSection','status','list','fields','message','findOne','send','ContactId','ListId'];(function(_0x3125c0,_0x5354ee){const _0x545b50=function(_0x5967ec){while(--_0x5967ec){_0x3125c0['push'](_0x3125c0['shift']());}};_0x545b50(++_0x5354ee);}(a783_0x5354,0x18d));const a783_0x545b=function(_0x3125c0,_0x5354ee){_0x3125c0=_0x3125c0-0x0;let _0x545b50=a783_0x5354[_0x3125c0];return _0x545b50;};const _0x10f37c=a783_0x545b;'use strict';const _=require(_0x10f37c('0x1b')),qs=require(_0x10f37c('0x25')),logger=require(_0x10f37c('0xa'))('api'),{getSocket}=require(_0x10f37c('0x5b')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,ValidationError}=require(_0x10f37c('0x1a'));require(_0x10f37c('0x7d'))['register'](socket);const jayson=require('jayson/promise'),client=jayson[_0x10f37c('0x6')][_0x10f37c('0x54')]({'port':0x232c});function respondWithRpcPromise(_0x5967ec,_0x88522,_0x16faca,_0x2651d9){return new Promise(function(_0x48ceb4,_0x457438){const _0x521ff8=a783_0x545b,_0x35f5a5=_0x2651d9||client;return _0x35f5a5[_0x521ff8('0x84')](_0x5967ec,_0x16faca)[_0x521ff8('0x7')](function(_0x326f42){const _0x34a6de=_0x521ff8;logger['info'](_0x34a6de('0x3'),_0x88522,_0x34a6de('0x12')),logger[_0x34a6de('0x45')](_0x34a6de('0x1'),_0x88522,_0x34a6de('0x12'),JSON[_0x34a6de('0x90')](_0x326f42));if(_0x326f42[_0x34a6de('0x41')]){if(_0x326f42[_0x34a6de('0x41')][_0x34a6de('0x85')]===0x1f4)return logger[_0x34a6de('0x41')](_0x34a6de('0x3'),_0x88522,_0x326f42[_0x34a6de('0x41')][_0x34a6de('0x4e')]),_0x457438(_0x326f42[_0x34a6de('0x41')][_0x34a6de('0x4e')]);return logger[_0x34a6de('0x41')](_0x34a6de('0x3'),_0x88522,_0x326f42[_0x34a6de('0x41')][_0x34a6de('0x4e')]),_0x48ceb4(_0x326f42['error'][_0x34a6de('0x4e')]);}else logger[_0x34a6de('0x46')](_0x34a6de('0x3'),_0x88522,_0x34a6de('0x12')),_0x48ceb4(_0x326f42[_0x34a6de('0x17')]['message']);})[_0x521ff8('0x8d')](function(_0x30acb5){const _0x2cc214=_0x521ff8;logger['error'](_0x2cc214('0x3'),_0x88522,_0x30acb5),_0x457438(_0x30acb5);});});}function respondWithStatusCode(_0x255055,_0x18136c){return _0x18136c=_0x18136c||0xcc,function(_0x51f619){const _0x52aab9=a783_0x545b;if(_0x51f619)return _0x255055[_0x52aab9('0xf')](_0x18136c);return _0x255055[_0x52aab9('0x4b')](_0x18136c)['end']();};}function respondWithResult(_0x41ee8a,_0x559433){return _0x559433=_0x559433||0xc8,function(_0x5aa37b){const _0x49bded=a783_0x545b;if(_0x5aa37b)return _0x41ee8a[_0x49bded('0x4b')](_0x559433)[_0x49bded('0x62')](_0x5aa37b);};}function respondWithFilteredResult(_0x3cd44e,_0x3614c9){return function(_0x17ee51){const _0x355d5c=a783_0x545b;if(_0x17ee51){const _0x1fc871=_0x17ee51[_0x355d5c('0x98')],_0x3f31ac=_0x3614c9[_0x355d5c('0x72')];let _0x2ddd7a=_0x3614c9[_0x355d5c('0x72')]+_0x3614c9[_0x355d5c('0x2b')],_0x31dc19;return _0x2ddd7a>=_0x1fc871?(_0x2ddd7a=_0x1fc871,_0x31dc19=0xc8):_0x31dc19=0xce,_0x3cd44e[_0x355d5c('0x4b')](_0x31dc19),_0x3cd44e['set'](_0x355d5c('0x6d'),_0x3f31ac+'-'+_0x2ddd7a+'/'+_0x1fc871)[_0x355d5c('0x62')](_0x17ee51);}return null;};}function saveUpdates(_0x2b6b4b){return function(_0x27138e){const _0x44f425=a783_0x545b;if(_0x27138e)return _0x27138e[_0x44f425('0x11')](_0x2b6b4b)['then'](function(_0x3515a4){return _0x3515a4;});return null;};}function removeEntity(_0x1b5555){return function(_0x4aa8b8){const _0x348708=a783_0x545b;if(_0x4aa8b8)return _0x4aa8b8[_0x348708('0x73')]()['then'](function(){const _0x125aae=_0x348708,_0x4a17a4=_0x4aa8b8['get']({'plain':!![]}),_0x46ce9f=_0x125aae('0x5a');return db[_0x125aae('0x29')][_0x125aae('0x73')]({'where':{'type':_0x46ce9f,'resourceId':_0x4a17a4['id']}})['then'](function(){return _0x4aa8b8;});})[_0x348708('0x7')](function(){const _0x8de452=_0x348708;_0x1b5555['status'](0xcc)[_0x8de452('0x61')]();});};}function handleEntityNotFound(_0x1157e7){return function(_0x3e58e5){const _0x39b4c3=a783_0x545b;return!_0x3e58e5&&_0x1157e7[_0x39b4c3('0xf')](0x194),_0x3e58e5;};}function handleError(_0x23d7b2,_0x545dfd){return _0x545dfd=_0x545dfd||0x1f4,function(_0x4aa41f){const _0x513aac=a783_0x545b;logger[_0x513aac('0x41')](_0x4aa41f[_0x513aac('0xb')]),_0x4aa41f[_0x513aac('0x9a')]&&delete _0x4aa41f[_0x513aac('0x9a')],_0x23d7b2['status'](_0x545dfd)[_0x513aac('0x50')](_0x4aa41f);};}exports[_0x10f37c('0x3e')]=function(_0x2476f6,_0x487fc3){const _0xd3e7b9=_0x10f37c;let _0x15fa5b={'include':[{'model':db[_0xd3e7b9('0x1d')],'as':_0xd3e7b9('0x2a')}]};const _0x8106ab={},_0x432a50={'count':0x0,'rows':[]},_0x3614ea=_[_0xd3e7b9('0x8c')](db['WhatsappAccount'][_0xd3e7b9('0x56')],function(_0x6bdbe2){const _0x5159d6=_0xd3e7b9;return{'name':_0x6bdbe2['fieldName'],'type':_0x6bdbe2['type'][_0x5159d6('0x76')]};});_0x8106ab[_0xd3e7b9('0x10')]=_[_0xd3e7b9('0x8c')](_0x3614ea,_0xd3e7b9('0x9a')),_0x8106ab[_0xd3e7b9('0x82')]=_[_0xd3e7b9('0x79')](_0x2476f6[_0xd3e7b9('0x82')]),_0x8106ab[_0xd3e7b9('0x69')]=_[_0xd3e7b9('0x37')](_0x8106ab[_0xd3e7b9('0x10')],_0x8106ab[_0xd3e7b9('0x82')]),_0x15fa5b[_0xd3e7b9('0x9d')]=_[_0xd3e7b9('0x37')](_0x8106ab['model'],qs[_0xd3e7b9('0x4d')](_0x2476f6[_0xd3e7b9('0x82')][_0xd3e7b9('0x4d')])),_0x15fa5b[_0xd3e7b9('0x9d')]=_0x15fa5b['attributes'][_0xd3e7b9('0x9f')]?_0x15fa5b[_0xd3e7b9('0x9d')]:_0x8106ab[_0xd3e7b9('0x10')];typeof _0x2476f6['query'][_0xd3e7b9('0x16')]===_0xd3e7b9('0x94')&&(_0x15fa5b[_0xd3e7b9('0x2b')]=qs[_0xd3e7b9('0x2b')](_0x2476f6['query']['limit']),_0x15fa5b['offset']=qs[_0xd3e7b9('0x72')](_0x2476f6['query']['offset']));_0x15fa5b[_0xd3e7b9('0x15')]=qs[_0xd3e7b9('0x60')](_0x2476f6[_0xd3e7b9('0x82')][_0xd3e7b9('0x60')]),_0x15fa5b[_0xd3e7b9('0x96')]=qs[_0xd3e7b9('0x69')](_['pick'](_0x2476f6[_0xd3e7b9('0x82')],_0x8106ab['filters']),_0x3614ea);_0x2476f6[_0xd3e7b9('0x82')][_0xd3e7b9('0x5d')]&&(_0x15fa5b[_0xd3e7b9('0x96')]=_[_0xd3e7b9('0x58')](_0x15fa5b[_0xd3e7b9('0x96')],{[Op['or']]:_[_0xd3e7b9('0x8c')](_0x3614ea,function(_0x99684b){const _0x3d74dd=_0xd3e7b9;if(_0x99684b[_0x3d74dd('0x75')]!=='VIRTUAL'){const _0x308033={};return _0x308033[_0x99684b[_0x3d74dd('0x9a')]]={[Op[_0x3d74dd('0x99')]]:'%'+_0x2476f6[_0x3d74dd('0x82')]['filter']+'%'},_0x308033;}})}));_0x15fa5b=_[_0xd3e7b9('0x58')]({},_0x15fa5b,_0x2476f6[_0xd3e7b9('0x14')]);const _0xd11200={'where':_0x15fa5b['where']};return db[_0xd3e7b9('0x9e')][_0xd3e7b9('0x98')](_0xd11200)[_0xd3e7b9('0x7')](function(_0x38bb9b){const _0x2e0dc2=_0xd3e7b9;return _0x432a50[_0x2e0dc2('0x98')]=_0x38bb9b,_0x2476f6[_0x2e0dc2('0x82')][_0x2e0dc2('0x18')]&&(_0x15fa5b[_0x2e0dc2('0x4')]=[{'all':!![]}]),db[_0x2e0dc2('0x9e')][_0x2e0dc2('0x7e')](_0x15fa5b);})[_0xd3e7b9('0x7')](function(_0x4df86b){const _0x112acc=_0xd3e7b9;return _0x432a50[_0x112acc('0x24')]=_0x4df86b,_0x432a50;})[_0xd3e7b9('0x7')](respondWithFilteredResult(_0x487fc3,_0x15fa5b))[_0xd3e7b9('0x8d')](handleError(_0x487fc3,null));},exports[_0x10f37c('0x13')]=function(_0x1d3fef,_0x51ddaf){const _0xedb74e=_0x10f37c;let _0x3930c9={'raw':![],'where':{'id':_0x1d3fef['params']['id']},'include':[{'model':db[_0xedb74e('0x1d')],'as':_0xedb74e('0x2a')}]};const _0x260c3d={};return _0x260c3d[_0xedb74e('0x10')]=_['keys'](db[_0xedb74e('0x9e')]['rawAttributes']),_0x260c3d[_0xedb74e('0x82')]=_[_0xedb74e('0x79')](_0x1d3fef[_0xedb74e('0x82')]),_0x260c3d['filters']=_['intersection'](_0x260c3d[_0xedb74e('0x10')],_0x260c3d[_0xedb74e('0x82')]),_0x3930c9[_0xedb74e('0x9d')]=_[_0xedb74e('0x37')](_0x260c3d[_0xedb74e('0x10')],qs[_0xedb74e('0x4d')](_0x1d3fef[_0xedb74e('0x82')][_0xedb74e('0x4d')])),_0x3930c9[_0xedb74e('0x9d')]=_0x3930c9[_0xedb74e('0x9d')][_0xedb74e('0x9f')]?_0x3930c9[_0xedb74e('0x9d')]:_0x260c3d[_0xedb74e('0x10')],_0x1d3fef[_0xedb74e('0x82')][_0xedb74e('0x18')]&&(_0x3930c9[_0xedb74e('0x4')]=[{'all':!![]}]),_0x3930c9=_['merge']({},_0x3930c9,_0x1d3fef[_0xedb74e('0x14')]),db[_0xedb74e('0x9e')][_0xedb74e('0x4f')](_0x3930c9)['then'](handleEntityNotFound(_0x51ddaf,null))['then'](respondWithResult(_0x51ddaf,null))[_0xedb74e('0x8d')](handleError(_0x51ddaf,null));},exports[_0x10f37c('0x8f')]=function(_0x4de2af,_0x54947d){const _0x3e6906=_0x10f37c;return db[_0x3e6906('0x9e')][_0x3e6906('0x8f')](_0x4de2af['body'],{})[_0x3e6906('0x7')](function(_0x3a1341){const _0x3abbcf=_0x3e6906,_0x17de69=_0x4de2af[_0x3abbcf('0x1e')]['get']({'plain':!![]});if(!_0x17de69)throw new Error(_0x3abbcf('0x36'));if(_0x17de69[_0x3abbcf('0x88')]===_0x3abbcf('0x1e')){const _0x11db37=_0x3a1341[_0x3abbcf('0x28')]({'plain':!![]}),_0x241e46=_0x3abbcf('0x5a');return db[_0x3abbcf('0x4a')]['findOne']({'where':{'name':_0x241e46,'userProfileId':_0x17de69['userProfileId']},'raw':!![]})[_0x3abbcf('0x7')](function(_0x54f66c){const _0x1c3d5f=_0x3abbcf;return _0x54f66c&&_0x54f66c[_0x1c3d5f('0x35')]===0x0?db[_0x1c3d5f('0x29')][_0x1c3d5f('0x8f')]({'name':_0x11db37[_0x1c3d5f('0x9a')],'resourceId':_0x11db37['id'],'type':_0x54f66c[_0x1c3d5f('0x9a')],'sectionId':_0x54f66c['id']},{})[_0x1c3d5f('0x7')](function(){return _0x3a1341;}):_0x3a1341;})[_0x3abbcf('0x8d')](function(_0x166a99){const _0x3b0d11=_0x3abbcf;logger[_0x3b0d11('0x41')](_0x3b0d11('0x39'),_0x166a99);throw _0x166a99;});}return _0x3a1341;})[_0x3e6906('0x7')](respondWithResult(_0x54947d,0xc9))[_0x3e6906('0x8d')](handleError(_0x54947d,null));},exports[_0x10f37c('0x11')]=function(_0x4c3074,_0x54fcc7){const _0x5b7e83=_0x10f37c;return _0x4c3074[_0x5b7e83('0x19')]['id']&&delete _0x4c3074[_0x5b7e83('0x19')]['id'],db['WhatsappAccount']['findOne']({'where':{'id':_0x4c3074[_0x5b7e83('0x6e')]['id']},'include':[{'model':db[_0x5b7e83('0x1d')],'as':'mandatoryDispositionPause'}]})[_0x5b7e83('0x7')](handleEntityNotFound(_0x54fcc7,null))[_0x5b7e83('0x7')](saveUpdates(_0x4c3074[_0x5b7e83('0x19')],null))[_0x5b7e83('0x7')](respondWithResult(_0x54fcc7,null))['catch'](handleError(_0x54fcc7,null));},exports[_0x10f37c('0x73')]=function(_0x10fa80,_0x1343dd){const _0x536bb5=_0x10f37c;return db['WhatsappAccount'][_0x536bb5('0x4f')]({'where':{'id':_0x10fa80[_0x536bb5('0x6e')]['id']}})[_0x536bb5('0x7')](handleEntityNotFound(_0x1343dd,null))[_0x536bb5('0x7')](removeEntity(_0x1343dd,null))[_0x536bb5('0x8d')](handleError(_0x1343dd,null));},exports[_0x10f37c('0x42')]=function(_0x791673,_0x449954){const _0x3d3008=_0x10f37c;return db[_0x3d3008('0x9e')]['describe']()[_0x3d3008('0x7')](respondWithResult(_0x449954,null))['catch'](handleError(_0x449954,null));},exports[_0x10f37c('0xd')]=function(_0x30ab1e,_0x3f3b78){const _0x3908a5=_0x10f37c;return _0x30ab1e[_0x3908a5('0x19')]['id']&&delete _0x30ab1e[_0x3908a5('0x19')]['id'],db[_0x3908a5('0x9e')][_0x3908a5('0x4f')]({'where':{'id':_0x30ab1e[_0x3908a5('0x6e')]['id']}})[_0x3908a5('0x7')](handleEntityNotFound(_0x3f3b78,null))[_0x3908a5('0x7')](function(_0x20a9ac){const _0x973a3f=_0x3908a5;if(_0x20a9ac)return _0x30ab1e['body'][_0x973a3f('0x83')]=_0x20a9ac['id'],db[_0x973a3f('0x5')]['create'](_0x30ab1e[_0x973a3f('0x19')]);})[_0x3908a5('0x7')](respondWithResult(_0x3f3b78,null))[_0x3908a5('0x8d')](handleError(_0x3f3b78,null));},exports['getDispositions']=function(_0x3a2a20,_0x23ef6f){const _0x501852=_0x10f37c;let _0xf70dc4={'raw':![],'where':{}};const _0x4e93e7={},_0x297bcd={'count':0x0,'rows':[]};return db[_0x501852('0x9e')][_0x501852('0x4f')]({'where':{'id':_0x3a2a20[_0x501852('0x6e')]['id']}})[_0x501852('0x7')](handleEntityNotFound(_0x23ef6f,null))[_0x501852('0x7')](function(_0x36d694){const _0x32ff50=_0x501852;if(_0x36d694)return _0x4e93e7['model']=_[_0x32ff50('0x79')](db[_0x32ff50('0x5')][_0x32ff50('0x56')]),_0x4e93e7[_0x32ff50('0x82')]=_[_0x32ff50('0x79')](_0x3a2a20[_0x32ff50('0x82')]),_0x4e93e7['filters']=_[_0x32ff50('0x37')](_0x4e93e7[_0x32ff50('0x10')],_0x4e93e7[_0x32ff50('0x82')]),_0xf70dc4['attributes']=_[_0x32ff50('0x37')](_0x4e93e7[_0x32ff50('0x10')],qs[_0x32ff50('0x4d')](_0x3a2a20[_0x32ff50('0x82')][_0x32ff50('0x4d')])),_0xf70dc4[_0x32ff50('0x9d')]=_0xf70dc4['attributes'][_0x32ff50('0x9f')]?_0xf70dc4[_0x32ff50('0x9d')]:_0x4e93e7['model'],typeof _0x3a2a20[_0x32ff50('0x82')][_0x32ff50('0x16')]===_0x32ff50('0x94')&&(_0xf70dc4['limit']=qs['limit'](_0x3a2a20['query'][_0x32ff50('0x2b')]),_0xf70dc4[_0x32ff50('0x72')]=qs[_0x32ff50('0x72')](_0x3a2a20[_0x32ff50('0x82')][_0x32ff50('0x72')])),_0xf70dc4[_0x32ff50('0x15')]=qs[_0x32ff50('0x60')](_0x3a2a20[_0x32ff50('0x82')][_0x32ff50('0x60')]),_0xf70dc4[_0x32ff50('0x96')]=qs[_0x32ff50('0x69')](_[_0x32ff50('0x70')](_0x3a2a20[_0x32ff50('0x82')],_0x4e93e7[_0x32ff50('0x69')])),_0xf70dc4[_0x32ff50('0x96')][_0x32ff50('0x83')]=_0x36d694['id'],_0x3a2a20['query']['filter']&&(_0xf70dc4['where']=_[_0x32ff50('0x58')](_0xf70dc4['where'],{[Op['or']]:_['map'](_0xf70dc4['attributes'],function(_0x59758c){const _0x4d9616=_0x32ff50,_0x1e4386={};return _0x1e4386[_0x59758c]={[Op[_0x4d9616('0x99')]]:'%'+_0x3a2a20[_0x4d9616('0x82')]['filter']+'%'},_0x1e4386;})})),_0xf70dc4=_[_0x32ff50('0x58')]({},_0xf70dc4,_0x3a2a20[_0x32ff50('0x14')]),db[_0x32ff50('0x5')][_0x32ff50('0x98')]({'where':_0xf70dc4[_0x32ff50('0x96')]})['then'](function(_0x4b3880){const _0x1eb590=_0x32ff50;return _0x297bcd[_0x1eb590('0x98')]=_0x4b3880,_0x3a2a20[_0x1eb590('0x82')][_0x1eb590('0x18')]&&(_0xf70dc4[_0x1eb590('0x4')]=[{'all':!![]}]),db[_0x1eb590('0x5')][_0x1eb590('0x7e')](_0xf70dc4);})[_0x32ff50('0x7')](function(_0x4a3b2a){const _0x24cdf8=_0x32ff50;return _0x297bcd[_0x24cdf8('0x24')]=_0x4a3b2a,_0x297bcd;});})['then'](respondWithFilteredResult(_0x23ef6f,_0xf70dc4))[_0x501852('0x8d')](handleError(_0x23ef6f,null));},exports[_0x10f37c('0x3a')]=function(_0x1fd568,_0x569134){const _0x346b75=_0x10f37c;return db[_0x346b75('0x9e')][_0x346b75('0x4f')]({'where':{'id':_0x1fd568['params']['id']}})[_0x346b75('0x7')](handleEntityNotFound(_0x569134,null))['then'](function(_0x5097d4){const _0x2763c1=_0x346b75;if(_0x5097d4)return _0x5097d4['removeDispositions'](_0x1fd568[_0x2763c1('0x82')][_0x2763c1('0x1f')]);})[_0x346b75('0x7')](respondWithStatusCode(_0x569134,null))['catch'](handleError(_0x569134,null));},exports[_0x10f37c('0x9c')]=function(_0x55fcfb,_0x516843){const _0x2de1d0=_0x10f37c;return _0x55fcfb[_0x2de1d0('0x19')]['id']&&delete _0x55fcfb[_0x2de1d0('0x19')]['id'],db['WhatsappAccount'][_0x2de1d0('0x4f')]({'where':{'id':_0x55fcfb[_0x2de1d0('0x6e')]['id']}})[_0x2de1d0('0x7')](handleEntityNotFound(_0x516843,null))['then'](function(_0x401b0c){const _0x156cac=_0x2de1d0;if(_0x401b0c)return _0x55fcfb[_0x156cac('0x19')][_0x156cac('0x83')]=_0x401b0c['id'],db[_0x156cac('0x59')]['create'](_0x55fcfb[_0x156cac('0x19')]);})[_0x2de1d0('0x7')](respondWithResult(_0x516843,null))[_0x2de1d0('0x8d')](handleError(_0x516843,null));},exports['getAnswers']=function(_0x14f51d,_0x598d12){const _0x244186=_0x10f37c;let _0x37d4c4={'raw':![],'where':{}};const _0x440d65={},_0x123b48={'count':0x0,'rows':[]};return db['WhatsappAccount'][_0x244186('0x4f')]({'where':{'id':_0x14f51d[_0x244186('0x6e')]['id']}})[_0x244186('0x7')](handleEntityNotFound(_0x598d12,null))['then'](function(_0xa44046){const _0x49766e=_0x244186;if(_0xa44046)return _0x440d65[_0x49766e('0x10')]=_[_0x49766e('0x79')](db['CannedAnswer'][_0x49766e('0x56')]),_0x440d65[_0x49766e('0x82')]=_[_0x49766e('0x79')](_0x14f51d[_0x49766e('0x82')]),_0x440d65[_0x49766e('0x69')]=_[_0x49766e('0x37')](_0x440d65['model'],_0x440d65['query']),_0x37d4c4['attributes']=_[_0x49766e('0x37')](_0x440d65[_0x49766e('0x10')],qs[_0x49766e('0x4d')](_0x14f51d[_0x49766e('0x82')][_0x49766e('0x4d')])),_0x37d4c4[_0x49766e('0x9d')]=_0x37d4c4['attributes']['length']?_0x37d4c4[_0x49766e('0x9d')]:_0x440d65[_0x49766e('0x10')],typeof _0x14f51d[_0x49766e('0x82')][_0x49766e('0x16')]==='undefined'&&(_0x37d4c4[_0x49766e('0x2b')]=qs[_0x49766e('0x2b')](_0x14f51d[_0x49766e('0x82')][_0x49766e('0x2b')]),_0x37d4c4[_0x49766e('0x72')]=qs[_0x49766e('0x72')](_0x14f51d['query'][_0x49766e('0x72')])),_0x37d4c4[_0x49766e('0x15')]=qs[_0x49766e('0x60')](_0x14f51d['query']['sort']),_0x37d4c4[_0x49766e('0x96')]=qs['filters'](_[_0x49766e('0x70')](_0x14f51d[_0x49766e('0x82')],_0x440d65[_0x49766e('0x69')])),_0x37d4c4[_0x49766e('0x96')]['WhatsappAccountId']=_0xa44046['id'],_0x14f51d[_0x49766e('0x82')][_0x49766e('0x5d')]&&(_0x37d4c4[_0x49766e('0x96')]=_[_0x49766e('0x58')](_0x37d4c4[_0x49766e('0x96')],{[Op['or']]:_[_0x49766e('0x8c')](_0x37d4c4[_0x49766e('0x9d')],function(_0x1d2d37){const _0x53c2e9=_0x49766e,_0x170e5b={};return _0x170e5b[_0x1d2d37]={[Op[_0x53c2e9('0x99')]]:'%'+_0x14f51d['query']['filter']+'%'},_0x170e5b;})})),_0x37d4c4=_[_0x49766e('0x58')]({},_0x37d4c4,_0x14f51d[_0x49766e('0x14')]),db['CannedAnswer'][_0x49766e('0x98')]({'where':_0x37d4c4[_0x49766e('0x96')]})['then'](function(_0x46ab27){const _0x39a31d=_0x49766e;return _0x123b48[_0x39a31d('0x98')]=_0x46ab27,_0x14f51d[_0x39a31d('0x82')][_0x39a31d('0x18')]&&(_0x37d4c4[_0x39a31d('0x4')]=[{'all':!![]}]),db[_0x39a31d('0x59')][_0x39a31d('0x7e')](_0x37d4c4);})[_0x49766e('0x7')](function(_0xc98c0e){const _0x4c2ce1=_0x49766e;return _0x123b48[_0x4c2ce1('0x24')]=_0xc98c0e,_0x123b48;});})[_0x244186('0x7')](respondWithFilteredResult(_0x598d12,_0x37d4c4))[_0x244186('0x8d')](handleError(_0x598d12,null));},exports[_0x10f37c('0x97')]=function(_0x1c21cd,_0x4f986a){const _0x24f9b4=_0x10f37c;return db[_0x24f9b4('0x9e')]['findOne']({'where':{'id':_0x1c21cd[_0x24f9b4('0x6e')]['id']}})[_0x24f9b4('0x7')](handleEntityNotFound(_0x4f986a,null))[_0x24f9b4('0x7')](function(_0x4540c5){const _0x22ee41=_0x24f9b4;if(_0x4540c5)return _0x4540c5['removeAnswers'](_0x1c21cd['query'][_0x22ee41('0x1f')]);})[_0x24f9b4('0x7')](respondWithStatusCode(_0x4f986a,null))[_0x24f9b4('0x8d')](handleError(_0x4f986a,null));},exports['addAgents']=function(_0x4ecfff,_0x2a3e9a){const _0x4b0d4a=_0x10f37c;return db[_0x4b0d4a('0x9e')]['findOne']({'where':{'id':_0x4ecfff[_0x4b0d4a('0x6e')]['id']}})['then'](function(_0x3a5f9b){const _0x2fb99c=_0x4b0d4a;if(_0x3a5f9b)return _0x3a5f9b[_0x2fb99c('0x2')](_0x4ecfff[_0x2fb99c('0x19')][_0x2fb99c('0x1f')],{'through':_[_0x2fb99c('0x8b')](_0x4ecfff[_0x2fb99c('0x19')],[_0x2fb99c('0x1f'),'id'])})[_0x2fb99c('0x7')](function(_0x4a28c8){const _0x5628ef=_0x2fb99c;for(let _0x52fcaf=0x0;_0x52fcaf<_0x4ecfff['body'][_0x5628ef('0x1f')][_0x5628ef('0x9f')];_0x52fcaf+=0x1){socket['emit'](_0x5628ef('0x7a'),{'UserId':_0x4ecfff[_0x5628ef('0x19')]['ids'][_0x52fcaf],'WhatsappAccountId':_0x4ecfff[_0x5628ef('0x6e')]['id']});}return _0x4a28c8;});})[_0x4b0d4a('0x7')](respondWithResult(_0x2a3e9a,null))[_0x4b0d4a('0x8d')](handleError(_0x2a3e9a,null));},exports[_0x10f37c('0x9')]=function(_0x16ded3,_0x4f0b7f){const _0x34697e=_0x10f37c;return db[_0x34697e('0x9e')]['findOne']({'where':{'id':_0x16ded3[_0x34697e('0x6e')]['id']}})[_0x34697e('0x7')](handleEntityNotFound(_0x4f0b7f,null))[_0x34697e('0x7')](function(_0x562381){const _0x14be89=_0x34697e;if(_0x562381)return _0x562381[_0x14be89('0x9')](_0x16ded3['query'][_0x14be89('0x1f')])[_0x14be89('0x7')](function(){const _0x928bf=_0x14be89;if(_['isArray'](_0x16ded3[_0x928bf('0x82')]['ids']))for(let _0x1f56a1=0x0;_0x1f56a1<_0x16ded3[_0x928bf('0x82')][_0x928bf('0x1f')][_0x928bf('0x9f')];_0x1f56a1+=0x1){socket['emit'](_0x928bf('0x71'),{'UserId':Number(_0x16ded3['query']['ids'][_0x1f56a1]),'WhatsappAccountId':Number(_0x16ded3[_0x928bf('0x6e')]['id'])});}else socket['emit']('userWhatsappAccount:remove',{'UserId':Number(_0x16ded3[_0x928bf('0x82')]['ids']),'WhatsappAccountId':Number(_0x16ded3[_0x928bf('0x6e')]['id'])});});})['then'](respondWithStatusCode(_0x4f0b7f,null))[_0x34697e('0x8d')](handleError(_0x4f0b7f,null));},exports[_0x10f37c('0x44')]=function(_0x45b964,_0xf96e70){const _0x202f82=_0x10f37c;let _0x4406d9={};const _0x7086f9={};let _0x13590e,_0x239d34;return db['WhatsappAccount'][_0x202f82('0x4f')]({'where':{'id':_0x45b964[_0x202f82('0x6e')]['id']}})[_0x202f82('0x7')](handleEntityNotFound(_0xf96e70,null))[_0x202f82('0x7')](function(_0x430ebb){const _0x382a4f=_0x202f82;if(_0x430ebb)return _0x13590e=_0x430ebb,_0x7086f9[_0x382a4f('0x10')]=_[_0x382a4f('0x79')](db[_0x382a4f('0x3f')][_0x382a4f('0x56')]),_0x7086f9[_0x382a4f('0x82')]=_[_0x382a4f('0x79')](_0x45b964[_0x382a4f('0x82')]),_0x7086f9[_0x382a4f('0x69')]=_[_0x382a4f('0x37')](_0x7086f9[_0x382a4f('0x10')],_0x7086f9[_0x382a4f('0x82')]),_0x4406d9[_0x382a4f('0x9d')]=_[_0x382a4f('0x37')](_0x7086f9[_0x382a4f('0x10')],qs[_0x382a4f('0x4d')](_0x45b964[_0x382a4f('0x82')]['fields'])),_0x4406d9[_0x382a4f('0x9d')]=_0x4406d9[_0x382a4f('0x9d')][_0x382a4f('0x9f')]?_0x4406d9[_0x382a4f('0x9d')]:_0x7086f9[_0x382a4f('0x10')],_0x4406d9[_0x382a4f('0x15')]=qs[_0x382a4f('0x60')](_0x45b964[_0x382a4f('0x82')][_0x382a4f('0x60')]),_0x4406d9[_0x382a4f('0x96')]=qs['filters'](_[_0x382a4f('0x70')](_0x45b964[_0x382a4f('0x82')],_0x7086f9[_0x382a4f('0x69')])),_0x45b964[_0x382a4f('0x82')][_0x382a4f('0x5d')]&&(_0x4406d9[_0x382a4f('0x96')]=_[_0x382a4f('0x58')](_0x4406d9[_0x382a4f('0x96')],{[Op['or']]:_[_0x382a4f('0x8c')](_0x4406d9['attributes'],function(_0x58c24d){const _0x540af9=_0x382a4f,_0x14cfc8={};return _0x14cfc8[_0x58c24d]={[Op[_0x540af9('0x99')]]:'%'+_0x45b964[_0x540af9('0x82')]['filter']+'%'},_0x14cfc8;})})),_0x4406d9=_[_0x382a4f('0x58')]({},_0x4406d9,_0x45b964[_0x382a4f('0x14')]),_0x13590e[_0x382a4f('0x44')](_0x4406d9);})[_0x202f82('0x7')](function(_0x5c0f31){const _0x26c42d=_0x202f82;if(_0x5c0f31)return _0x239d34=_0x5c0f31[_0x26c42d('0x9f')],typeof _0x45b964[_0x26c42d('0x82')][_0x26c42d('0x16')]===_0x26c42d('0x94')&&(_0x4406d9[_0x26c42d('0x2b')]=qs['limit'](_0x45b964[_0x26c42d('0x82')][_0x26c42d('0x2b')]),_0x4406d9[_0x26c42d('0x72')]=qs[_0x26c42d('0x72')](_0x45b964[_0x26c42d('0x82')][_0x26c42d('0x72')])),_0x13590e[_0x26c42d('0x44')](_0x4406d9);})['then'](function(_0xaa7f72){if(_0xaa7f72)return _0xaa7f72?{'count':_0x239d34,'rows':_0xaa7f72}:null;})[_0x202f82('0x7')](respondWithResult(_0xf96e70,null))['catch'](handleError(_0xf96e70,null));},exports[_0x10f37c('0x2d')]=function(_0x247a8e,_0x56dfa0){const _0x34ed0b=_0x10f37c;return db[_0x34ed0b('0x9e')][_0x34ed0b('0x4f')]({'where':{'id':_0x247a8e['params']['id']}})['then'](handleEntityNotFound(_0x56dfa0,null))[_0x34ed0b('0x7')](function(_0x336589){const _0x30a2e0=_0x34ed0b;if(_0x336589)return db[_0x30a2e0('0x1a')][_0x30a2e0('0x7f')](function(_0x46a2eb){const _0x506285=_0x30a2e0;return db['WhatsappApplication'][_0x506285('0x73')]({'where':{'WhatsappAccountId':_0x247a8e['params']['id']},'transaction':_0x46a2eb})[_0x506285('0x7')](function(){const _0x32e829=_0x506285,_0x9f1007=_[_0x32e829('0x8c')](_0x247a8e['body'],function(_0x3fd0f2){const _0x409fd2=_0x32e829;return _0x3fd0f2[_0x409fd2('0x83')]=_0x247a8e[_0x409fd2('0x6e')]['id'],_0x3fd0f2;});return db[_0x32e829('0x26')][_0x32e829('0x92')](_0x9f1007,{'transaction':_0x46a2eb});});})['then'](function(){const _0x4b63b4=_0x30a2e0;return db[_0x4b63b4('0x26')][_0x4b63b4('0x86')]({'where':{'WhatsappAccountId':_0x247a8e[_0x4b63b4('0x6e')]['id']},'order':_0x4b63b4('0x66')});});})[_0x34ed0b('0x7')](respondWithResult(_0x56dfa0,null))['catch'](handleError(_0x56dfa0,null));},exports[_0x10f37c('0x91')]=function(_0x47fda9,_0x577ae7){const _0x5752c4=_0x10f37c;let _0x3408ff={};const _0x4c4169={};let _0x2fba44,_0x45029b;return db[_0x5752c4('0x9e')][_0x5752c4('0x4f')]({'where':{'id':_0x47fda9['params']['id']}})[_0x5752c4('0x7')](handleEntityNotFound(_0x577ae7,null))[_0x5752c4('0x7')](function(_0x2a0eee){const _0x414b94=_0x5752c4;if(_0x2a0eee)return _0x2fba44=_0x2a0eee,_0x4c4169[_0x414b94('0x10')]=_[_0x414b94('0x79')](db['WhatsappApplication'][_0x414b94('0x56')]),_0x4c4169['query']=_[_0x414b94('0x79')](_0x47fda9[_0x414b94('0x82')]),_0x4c4169[_0x414b94('0x69')]=_[_0x414b94('0x37')](_0x4c4169[_0x414b94('0x10')],_0x4c4169[_0x414b94('0x82')]),_0x3408ff[_0x414b94('0x9d')]=_[_0x414b94('0x37')](_0x4c4169[_0x414b94('0x10')],qs['fields'](_0x47fda9[_0x414b94('0x82')][_0x414b94('0x4d')])),_0x3408ff['attributes']=_0x3408ff['attributes'][_0x414b94('0x9f')]?_0x3408ff[_0x414b94('0x9d')]:_0x4c4169[_0x414b94('0x10')],_0x3408ff[_0x414b94('0x15')]=qs['sort'](_0x47fda9['query'][_0x414b94('0x60')]),_0x3408ff['where']=qs['filters'](_['pick'](_0x47fda9[_0x414b94('0x82')],_0x4c4169[_0x414b94('0x69')])),_0x47fda9[_0x414b94('0x82')][_0x414b94('0x5d')]&&(_0x3408ff['where']=_[_0x414b94('0x58')](_0x3408ff[_0x414b94('0x96')],{[Op['or']]:_[_0x414b94('0x8c')](_0x3408ff[_0x414b94('0x9d')],function(_0x2bb46b){const _0x2ca128=_0x414b94,_0x2abb29={};return _0x2abb29[_0x2bb46b]={[Op['like']]:'%'+_0x47fda9['query'][_0x2ca128('0x5d')]+'%'},_0x2abb29;})})),_0x3408ff=_['merge']({},_0x3408ff,_0x47fda9[_0x414b94('0x14')]),_0x2fba44[_0x414b94('0x91')](_0x3408ff);})[_0x5752c4('0x7')](function(_0xd7389f){const _0x4facd8=_0x5752c4;if(_0xd7389f)return _0x45029b=_0xd7389f[_0x4facd8('0x9f')],typeof _0x47fda9[_0x4facd8('0x82')]['nolimit']===_0x4facd8('0x94')&&(_0x3408ff[_0x4facd8('0x2b')]=qs[_0x4facd8('0x2b')](_0x47fda9[_0x4facd8('0x82')][_0x4facd8('0x2b')]),_0x3408ff[_0x4facd8('0x72')]=qs[_0x4facd8('0x72')](_0x47fda9['query'][_0x4facd8('0x72')])),_0x2fba44[_0x4facd8('0x91')](_0x3408ff);})[_0x5752c4('0x7')](function(_0x37953e){if(_0x37953e)return _0x37953e?{'count':_0x45029b,'rows':_0x37953e}:null;})[_0x5752c4('0x7')](respondWithResult(_0x577ae7,null))[_0x5752c4('0x8d')](handleError(_0x577ae7,null));},exports['notify']=function(_0x27b7a0,_0x1665f2){const _0x3a8151=_0x10f37c,_0x3e8ca5={'channel':_0x3a8151('0x89')};let _0x249aae=[],_0x2166f8=[];const _0x56297e={};return db[_0x3a8151('0x9e')][_0x3a8151('0x4f')]({'where':{'id':_0x27b7a0[_0x3a8151('0x6e')]['id']},'include':[{'model':db[_0x3a8151('0x26')],'as':_0x3a8151('0x7b')}]})[_0x3a8151('0x7')](handleEntityNotFound(_0x1665f2,null))[_0x3a8151('0x7')](function(_0x5c6285){const _0xc0d2ef=_0x3a8151;return _0x3e8ca5[_0xc0d2ef('0x32')]=_0x5c6285,_0x3e8ca5['applications']=_[_0xc0d2ef('0x2f')](_0x5c6285[_0xc0d2ef('0x7b')],['priority'],[_0xc0d2ef('0x38')]),_0x3e8ca5[_0xc0d2ef('0x32')][_0xc0d2ef('0x7b')]&&delete _0x3e8ca5[_0xc0d2ef('0x32')]['Applications'],db[_0xc0d2ef('0x65')][_0xc0d2ef('0x42')]();})['then'](function(_0x52dd11){const _0x1adba9=_0x3a8151;if(!_0x52dd11)throw new ValidationError(_0x1adba9('0x47'));_0x249aae=_[_0x1adba9('0x43')](_[_0x1adba9('0x79')](_0x52dd11),[_0x1adba9('0x87'),_0x1adba9('0x78')]),_0x2166f8=_[_0x1adba9('0x43')](_[_0x1adba9('0x79')](_0x52dd11),['createdAt',_0x1adba9('0x78'),_0x1adba9('0x21'),_0x1adba9('0x52')]),_0x3e8ca5[_0x1adba9('0x19')]={'mapKey':_0x1adba9('0x9b')};_0x3e8ca5[_0x1adba9('0x32')][_0x1adba9('0x75')]&&_0x3e8ca5[_0x1adba9('0x32')][_0x1adba9('0x75')]==='twilio'&&(_0x3e8ca5[_0x1adba9('0x19')][_0x1adba9('0x31')]=_0x27b7a0[_0x1adba9('0x19')][_0x1adba9('0x6c')][_0x1adba9('0x49')](_0x1adba9('0x1c'),''),_0x3e8ca5['body'][_0x1adba9('0x19')]=_0x27b7a0['body'][_0x1adba9('0x2c')],_0x3e8ca5[_0x1adba9('0x19')][_0x1adba9('0x27')]=_0x27b7a0[_0x1adba9('0x19')][_0x1adba9('0x95')]);_0x3e8ca5['body']['id']&&delete _0x3e8ca5[_0x1adba9('0x19')]['id'];if(_[_0x1adba9('0x8e')](_0x3e8ca5[_0x1adba9('0x19')][_0x1adba9('0x31')]))throw new ValidationError(_0x1adba9('0x3c'));if(_[_0x1adba9('0x8e')](_0x3e8ca5[_0x1adba9('0x19')][_0x1adba9('0x19')])||_0x3e8ca5[_0x1adba9('0x19')][_0x1adba9('0x19')]==='')throw new ValidationError(_0x1adba9('0x8'));if(_[_0x1adba9('0x8e')](_0x3e8ca5[_0x1adba9('0x19')][_0x1adba9('0x48')]))throw new ValidationError('mapKey\x20is\x20mandatory,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x2166f8);if(!_[_0x1adba9('0xe')](_0x2166f8,_0x3e8ca5[_0x1adba9('0x19')]['mapKey']))throw new ValidationError('mapKey\x20invalid,\x20please\x20use\x20one\x20of\x20these:\x20'+_0x2166f8);return _0x56297e[_0x3e8ca5[_0x1adba9('0x19')]['mapKey']]=_0x3e8ca5['body'][_0x1adba9('0x31')],db['CmList'][_0x1adba9('0x4f')]({'where':{'id':_0x3e8ca5[_0x1adba9('0x32')][_0x1adba9('0x52')]},'include':[{'model':db[_0x1adba9('0x65')],'as':_0x1adba9('0x5f'),'where':_0x56297e,'limit':0x1,'order':[[_0x1adba9('0x78'),_0x1adba9('0x2e')]]}]});})['then'](handleEntityNotFound(_0x1665f2,null))[_0x3a8151('0x7')](function(_0x52313c){const _0x1356ac=_0x3a8151;if(_0x52313c){_0x3e8ca5[_0x1356ac('0x4c')]=_[_0x1356ac('0x8b')](_0x52313c,[_0x1356ac('0x5f')]);if(_0x52313c[_0x1356ac('0x5f')]['length'])return _0x52313c[_0x1356ac('0x5f')][0x0];const _0x4973c5=_[_0x1356ac('0x74')](_0x3e8ca5['body'],{'firstName':_0x3e8ca5[_0x1356ac('0x19')]['from'],'ListId':_0x52313c['id']});return _0x4973c5[_0x3e8ca5['body'][_0x1356ac('0x48')]]=_0x3e8ca5[_0x1356ac('0x19')][_0x1356ac('0x31')],db[_0x1356ac('0x65')][_0x1356ac('0x8f')](_0x4973c5,{'fields':_0x249aae,'raw':!![]});}})[_0x3a8151('0x7')](handleEntityNotFound(_0x1665f2,null))[_0x3a8151('0x7')](function(_0x16da9c){const _0x2591f8=_0x3a8151;if(_0x16da9c){_0x3e8ca5[_0x2591f8('0x6b')]=_0x16da9c;const _0x166223={'ContactId':_0x16da9c['id'],'phone':_0x3e8ca5[_0x2591f8('0x19')]['from'],'WhatsappAccountId':_0x27b7a0['params']['id']},_0x2e2f73={'ContactId':_0x16da9c['id'],'WhatsappAccountId':_0x27b7a0[_0x2591f8('0x6e')]['id'],'closed':![]};return db[_0x2591f8('0x3b')][_0x2591f8('0x4f')]({'where':_0x2e2f73})['then'](function(_0xf65ea0){const _0x23c226=_0x2591f8;if(_0xf65ea0)return[_0xf65ea0,![]];return db[_0x23c226('0x3b')][_0x23c226('0x8f')](_0x166223)['then'](function(_0x1b56e7){return[_0x1b56e7,!![]];});});}})[_0x3a8151('0x7')](function([_0x441c4d,_0xd1148a]){const _0x5e34e4=_0x3a8151;return _0x3e8ca5['interaction']=_0x441c4d['get']({'plain':!![]}),_0x3e8ca5[_0x5e34e4('0x55')]['created']=![],_0xd1148a&&(_0x3e8ca5['account'][_0x5e34e4('0x33')]&&_0x3e8ca5[_0x5e34e4('0x7c')]['push']({'id':0x0,'priority':_0x3e8ca5[_0x5e34e4('0x7c')]['length']+0x1,'app':'close','appdata':_0x5e34e4('0x3d'),'interval':_0x5e34e4('0x0')}),_0x3e8ca5['interaction'][_0x5e34e4('0x20')]=!![]),db[_0x5e34e4('0x53')][_0x5e34e4('0x8f')]({'phone':_0x3e8ca5['body'][_0x5e34e4('0x31')],'messageId':_0x3e8ca5[_0x5e34e4('0x19')][_0x5e34e4('0x27')],'body':_0x3e8ca5[_0x5e34e4('0x19')][_0x5e34e4('0x19')],'WhatsappAccountId':_0x27b7a0[_0x5e34e4('0x6e')]['id'],'WhatsappInteractionId':_0x441c4d['id'],'direction':'in','ContactId':_0x441c4d[_0x5e34e4('0x51')],'AttachmentId':_0x3e8ca5['body'][_0x5e34e4('0x67')]});})['then'](function(_0x1e2165){const _0x2f6ae8=_0x3a8151;_0x3e8ca5[_0x2f6ae8('0x4e')]=_0x1e2165;if(_0x3e8ca5[_0x2f6ae8('0x55')][_0x2f6ae8('0x5c')])return db[_0x2f6ae8('0x3f')][_0x2f6ae8('0x4f')]({'attributes':['id','name'],'where':{'id':_0x3e8ca5[_0x2f6ae8('0x55')]['UserId']}})[_0x2f6ae8('0x7')](function(_0x4d16fc){const _0x1f5c7f=_0x2f6ae8;return _0x4d16fc&&_0x3e8ca5[_0x1f5c7f('0x7c')][_0x1f5c7f('0x81')]({'id':0x0,'priority':0x0,'app':_0x1f5c7f('0x68'),'appdata':_0x4d16fc['name']+','+(_0x3e8ca5[_0x1f5c7f('0x32')][_0x1f5c7f('0x77')]||0xa),'interval':_0x1f5c7f('0x0')}),respondWithRpcPromise(_0x1f5c7f('0x64'),_0x1f5c7f('0x8a'),_0x3e8ca5);});return respondWithRpcPromise('Start',_0x2f6ae8('0x8a'),_0x3e8ca5);})[_0x3a8151('0x7')](function(_0x16f875){const _0xfccfa4=_0x3a8151;if(_0x16f875){const _0x504e1b=0xc8,_0x3cddaf=_0xfccfa4('0x5e');return logger[_0xfccfa4('0x46')](_0xfccfa4('0x1'),_0x3cddaf,_0x504e1b,_0xfccfa4('0x30')),logger[_0xfccfa4('0x45')]('WhatsappAccount,\x20%s,\x20%s,\x20%s,\x20%s',_0x3cddaf,_0x504e1b,_0xfccfa4('0x30'),JSON[_0xfccfa4('0x90')](_0x16f875)),_0x3e8ca5[_0xfccfa4('0x32')][_0xfccfa4('0x75')]===_0xfccfa4('0x57')?_0x1665f2[_0xfccfa4('0x4b')](_0x504e1b)[_0xfccfa4('0x22')]('Content-Type',_0xfccfa4('0x80'))[_0xfccfa4('0x50')](_0xfccfa4('0x23')):_0x1665f2[_0xfccfa4('0x4b')](_0x504e1b)['json'](_0x16f875);}})[_0x3a8151('0x8d')](handleError(_0x1665f2,null));},exports[_0x10f37c('0x50')]=function(_0x2ee52c,_0x403aba){const _0x166a89=_0x10f37c;let _0x2e5c02,_0x37c1d9;if(_[_0x166a89('0x8e')](_0x2ee52c[_0x166a89('0x19')][_0x166a89('0x19')])||_0x2ee52c[_0x166a89('0x19')][_0x166a89('0x19')]==='')throw new ValidationError(_0x166a89('0x8'));if(_[_0x166a89('0x8e')](_0x2ee52c['body']['to']))throw new ValidationError(_0x166a89('0x40'));const _0x522b8d=_0x2ee52c[_0x166a89('0x19')]['to'];return db[_0x166a89('0x9e')]['findOne']({'where':{'id':_0x2ee52c['params']['id']},'include':[{'model':db[_0x166a89('0x6a')],'as':'List','include':[{'model':db[_0x166a89('0x65')],'as':'Contacts','where':{'mobile':_0x522b8d},'limit':0x1,'order':[[_0x166a89('0x78'),_0x166a89('0x2e')]]}]}]})[_0x166a89('0x7')](handleEntityNotFound(_0x403aba,null))['then'](function(_0x396a29){const _0x57577b=_0x166a89;if(_0x396a29&&_0x396a29[_0x57577b('0x93')]){_0x2e5c02=_0x396a29['get']({'plain':!![]});if(_0x2e5c02['List']&&_0x2e5c02[_0x57577b('0x93')][_0x57577b('0x5f')][_0x57577b('0x9f')])return _0x2e5c02[_0x57577b('0x93')][_0x57577b('0x5f')][0x0];return db['CmContact']['create'](_['defaults'](_0x2ee52c[_0x57577b('0x19')],{'firstName':_0x522b8d,'mobile':_0x522b8d,'phone':_0x522b8d,'ListId':_0x2e5c02[_0x57577b('0x52')]}));}})[_0x166a89('0x7')](handleEntityNotFound(_0x403aba,null))[_0x166a89('0x7')](function(_0x58abc9){const _0x283785=_0x166a89;if(_0x58abc9)return _0x37c1d9=_0x58abc9,db[_0x283785('0x3b')][_0x283785('0x4f')]({'where':{'ContactId':_0x37c1d9['id'],'closed':![],'WhatsappAccountId':_0x2e5c02['id']}})[_0x283785('0x7')](function(_0x155bb5){const _0x56a7a1=_0x283785;if(_0x155bb5)return[_0x155bb5,![]];return db[_0x56a7a1('0x3b')][_0x56a7a1('0x8f')]({'UserId':_0x2ee52c[_0x56a7a1('0x1e')]['id'],'ContactId':_0x37c1d9['id'],'WhatsappAccountId':_0x2e5c02['id'],'phone':_0x522b8d,'firstMsgDirection':_0x56a7a1('0x6f'),'Messages':[_[_0x56a7a1('0x58')](_0x2ee52c[_0x56a7a1('0x19')],{'read':![],'body':_0x2ee52c[_0x56a7a1('0x19')]['body'],'phone':_0x522b8d,'WhatsappAccountId':_0x2e5c02['id'],'UserId':_0x2ee52c[_0x56a7a1('0x1e')]['id'],'ContactId':_0x37c1d9['id']})]},{'include':[{'model':db[_0x56a7a1('0x53')],'as':_0x56a7a1('0x63')}]})[_0x56a7a1('0x7')](function(_0x5888b1){return[_0x5888b1,!![]];});});})[_0x166a89('0x7')](function([_0xc43bcf,_0x1fcbb3]){const _0x28bb5e=_0x166a89;if(_0x1fcbb3)return _0xc43bcf;return db[_0x28bb5e('0x53')][_0x28bb5e('0x8f')](_[_0x28bb5e('0x58')](_0x2ee52c[_0x28bb5e('0x19')],{'read':![],'body':_0x2ee52c['body'][_0x28bb5e('0x19')],'phone':_0x522b8d,'WhatsappAccountId':_0x2e5c02['id'],'WhatsappInteractionId':_0xc43bcf['id'],'UserId':_0x2ee52c[_0x28bb5e('0x1e')]['id'],'ContactId':_0x37c1d9['id']}))[_0x28bb5e('0x7')](function(_0x49e152){const _0x192118=_0x28bb5e;return _0xc43bcf[_0x192118('0x34')][_0x192118('0x63')]=[],_0xc43bcf[_0x192118('0x34')][_0x192118('0x63')][_0x192118('0xc')](_0x49e152['dataValues']),_0xc43bcf;});})[_0x166a89('0x7')](respondWithResult(_0x403aba,null))[_0x166a89('0x8d')](handleError(_0x403aba,null));}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.events.js b/server/api/whatsappAccount/whatsappAccount.events.js index 4157a19..2a9f585 100644 --- a/server/api/whatsappAccount/whatsappAccount.events.js +++ b/server/api/whatsappAccount/whatsappAccount.events.js @@ -1 +1 @@ -const a784_0x1740=['../../mysqldb','undefined','remove','events','save','exports','emit','addHook'];(function(_0x356643,_0x174098){const _0x2b25b9=function(_0x10a245){while(--_0x10a245){_0x356643['push'](_0x356643['shift']());}};_0x2b25b9(++_0x174098);}(a784_0x1740,0xc4));const a784_0x2b25=function(_0x356643,_0x174098){_0x356643=_0x356643-0x0;let _0x2b25b9=a784_0x1740[_0x356643];return _0x2b25b9;};const _0xa48d3=a784_0x2b25;'use strict';const EventEmitter=require(_0xa48d3('0x7')),WhatsappAccount=require(_0xa48d3('0x4'))['db']['WhatsappAccount'],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':_0xa48d3('0x0'),'afterUpdate':'update','afterDestroy':_0xa48d3('0x6')};function emitEvent(_0x10a245){return function(_0x2140c5){const _0x599cd3=a784_0x2b25;WhatsappAccountEvents[_0x599cd3('0x2')](_0x10a245+':'+_0x2140c5['id'],_0x2140c5),WhatsappAccountEvents[_0x599cd3('0x2')](_0x10a245,_0x2140c5);};}for(const e in events){if(typeof events[e]!==_0xa48d3('0x5')){const event=events[e];WhatsappAccount[_0xa48d3('0x3')](e,emitEvent(event));}}module[_0xa48d3('0x1')]=WhatsappAccountEvents; \ No newline at end of file +const a784_0x55f4=['remove','save','undefined','emit','../../mysqldb','WhatsappAccount','addHook','events','exports'];(function(_0x143ee5,_0x55f459){const _0xeb19c=function(_0x3dbeb0){while(--_0x3dbeb0){_0x143ee5['push'](_0x143ee5['shift']());}};_0xeb19c(++_0x55f459);}(a784_0x55f4,0x9a));const a784_0xeb19=function(_0x143ee5,_0x55f459){_0x143ee5=_0x143ee5-0x0;let _0xeb19c=a784_0x55f4[_0x143ee5];return _0xeb19c;};const _0x4a35dc=a784_0xeb19;'use strict';const EventEmitter=require(_0x4a35dc('0x6')),WhatsappAccount=require(_0x4a35dc('0x3'))['db'][_0x4a35dc('0x4')],WhatsappAccountEvents=new EventEmitter();WhatsappAccountEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x4a35dc('0x0'),'afterUpdate':'update','afterDestroy':_0x4a35dc('0x8')};function emitEvent(_0x3dbeb0){return function(_0x490859){const _0x50ed7d=a784_0xeb19;WhatsappAccountEvents[_0x50ed7d('0x2')](_0x3dbeb0+':'+_0x490859['id'],_0x490859),WhatsappAccountEvents[_0x50ed7d('0x2')](_0x3dbeb0,_0x490859);};}for(const e in events){if(typeof events[e]!==_0x4a35dc('0x1')){const event=events[e];WhatsappAccount[_0x4a35dc('0x5')](e,emitEvent(event));}}module[_0x4a35dc('0x7')]=WhatsappAccountEvents; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.model.js b/server/api/whatsappAccount/whatsappAccount.model.js index 873a63b..64e6437 100644 --- a/server/api/whatsappAccount/whatsappAccount.model.js +++ b/server/api/whatsappAccount/whatsappAccount.model.js @@ -1 +1 @@ -const a785_0x335e=['define','./whatsappAccount.attributes','exports'];(function(_0x4438bf,_0x335ef5){const _0x3733e9=function(_0x2e1197){while(--_0x2e1197){_0x4438bf['push'](_0x4438bf['shift']());}};_0x3733e9(++_0x335ef5);}(a785_0x335e,0x1e6));const a785_0x3733=function(_0x4438bf,_0x335ef5){_0x4438bf=_0x4438bf-0x0;let _0x3733e9=a785_0x335e[_0x4438bf];return _0x3733e9;};const _0x376821=a785_0x3733;'use strict';const attributes=require(_0x376821('0x1'));module[_0x376821('0x2')]=function(_0x2e1197){const _0x19773f=_0x376821,_0x4845ab=_0x2e1197[_0x19773f('0x0')]('WhatsappAccount',attributes,{'tableName':'whatsapp_accounts','paranoid':![],'indexes':[],'timestamps':!![]});return _0x4845ab;}; \ No newline at end of file +const a785_0x3d5b=['WhatsappAccount','whatsapp_accounts','define'];(function(_0x295f60,_0x3d5bf9){const _0x5dbe43=function(_0x45a086){while(--_0x45a086){_0x295f60['push'](_0x295f60['shift']());}};_0x5dbe43(++_0x3d5bf9);}(a785_0x3d5b,0xa5));const a785_0x5dbe=function(_0x295f60,_0x3d5bf9){_0x295f60=_0x295f60-0x0;let _0x5dbe43=a785_0x3d5b[_0x295f60];return _0x5dbe43;};'use strict';const attributes=require('./whatsappAccount.attributes');module['exports']=function(_0x45a086){const _0x24a26e=a785_0x5dbe,_0x164c93=_0x45a086[_0x24a26e('0x2')](_0x24a26e('0x0'),attributes,{'tableName':_0x24a26e('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x164c93;}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.rpc.js b/server/api/whatsappAccount/whatsappAccount.rpc.js index 486280a..34ce063 100644 --- a/server/api/whatsappAccount/whatsappAccount.rpc.js +++ b/server/api/whatsappAccount/whatsappAccount.rpc.js @@ -1 +1 @@ -const a786_0x1d3c=['options','rpc','model','stringify','map','../../config/logger','./whatsappAccount.socket','then','message','register','error','where','ShowWhatsappAccount','debug','include','attributes','info','findOne','raw'];(function(_0x313a0f,_0x1d3c3d){const _0x2c7863=function(_0x20b410){while(--_0x20b410){_0x313a0f['push'](_0x313a0f['shift']());}};_0x2c7863(++_0x1d3c3d);}(a786_0x1d3c,0xd5));const a786_0x2c78=function(_0x313a0f,_0x1d3c3d){_0x313a0f=_0x313a0f-0x0;let _0x2c7863=a786_0x1d3c[_0x313a0f];return _0x2c7863;};const _0x17aac3=a786_0x2c78;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x17aac3('0x1'))(_0x17aac3('0x10')),_=require('lodash'),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x17aac3('0x2'))[_0x17aac3('0x5')](socket),exports[_0x17aac3('0x8')]=function(_0x20b410){const _0x2aea4c=this;return new Promise(function(_0x5ac78f,_0x2ef8f7){const _0x5d57ae=a786_0x2c78;return db['WhatsappAccount'][_0x5d57ae('0xd')]({'raw':_0x20b410[_0x5d57ae('0xf')]?_0x20b410[_0x5d57ae('0xf')][_0x5d57ae('0xe')]===undefined?!![]:![]:!![],'where':_0x20b410['options']?_0x20b410[_0x5d57ae('0xf')][_0x5d57ae('0x7')]||null:null,'attributes':_0x20b410[_0x5d57ae('0xf')]?_0x20b410[_0x5d57ae('0xf')][_0x5d57ae('0xb')]||null:null,'include':_0x20b410[_0x5d57ae('0xf')]?_0x20b410[_0x5d57ae('0xf')][_0x5d57ae('0xa')]?_[_0x5d57ae('0x0')](_0x20b410[_0x5d57ae('0xf')][_0x5d57ae('0xa')],function(_0x1f7da4){const _0x598174=_0x5d57ae;return{'model':db[_0x1f7da4['model']],'as':_0x1f7da4['as'],'attributes':_0x1f7da4[_0x598174('0xb')],'include':_0x1f7da4[_0x598174('0xa')]?_['map'](_0x1f7da4[_0x598174('0xa')],function(_0x37d637){const _0x2fc67f=_0x598174;return{'model':db[_0x37d637[_0x2fc67f('0x11')]],'as':_0x37d637['as'],'attributes':_0x37d637[_0x2fc67f('0xb')],'include':_0x37d637[_0x2fc67f('0xa')]?_['map'](_0x37d637[_0x2fc67f('0xa')],function(_0x432126){const _0x445fae=_0x2fc67f;return{'model':db[_0x432126[_0x445fae('0x11')]],'as':_0x432126['as'],'attributes':_0x432126[_0x445fae('0xb')]};}):[]};}):[]};}):[]:[]})[_0x5d57ae('0x3')](function(_0x41f49b){const _0x357719=_0x5d57ae;logger[_0x357719('0xc')](_0x357719('0x8'),_0x20b410),logger[_0x357719('0x9')](_0x357719('0x8'),_0x20b410,JSON[_0x357719('0x12')](_0x41f49b)),_0x5ac78f(_0x41f49b);})['catch'](function(_0x13c0f8){const _0x1c8393=_0x5d57ae;logger[_0x1c8393('0x6')](_0x1c8393('0x8'),_0x13c0f8['message'],_0x20b410),_0x2ef8f7(_0x2aea4c['error'](0x1f4,_0x13c0f8[_0x1c8393('0x4')]));});});}; \ No newline at end of file +const a786_0x3691=['./whatsappAccount.socket','catch','map','rpc','debug','info','include','register','where','model','attributes','error','options','WhatsappAccount','../../mysqldb','../../rediscache','ShowWhatsappAccount','findOne','message'];(function(_0x31c54d,_0x36919f){const _0x387a21=function(_0x4a1517){while(--_0x4a1517){_0x31c54d['push'](_0x31c54d['shift']());}};_0x387a21(++_0x36919f);}(a786_0x3691,0x8b));const a786_0x387a=function(_0x31c54d,_0x36919f){_0x31c54d=_0x31c54d-0x0;let _0x387a21=a786_0x3691[_0x31c54d];return _0x387a21;};const _0x5859c6=a786_0x387a;'use strict';const db=require(_0x5859c6('0x8'))['db'],logger=require('../../config/logger')(_0x5859c6('0x10')),_=require('lodash'),{getSocket}=require(_0x5859c6('0x9')),socket=getSocket();require(_0x5859c6('0xd'))[_0x5859c6('0x1')](socket),exports[_0x5859c6('0xa')]=function(_0x4a1517){const _0x41e7cd=this;return new Promise(function(_0x4a4895,_0x456bd6){const _0x2695e6=a786_0x387a;return db[_0x2695e6('0x7')][_0x2695e6('0xb')]({'raw':_0x4a1517[_0x2695e6('0x6')]?_0x4a1517[_0x2695e6('0x6')]['raw']===undefined?!![]:![]:!![],'where':_0x4a1517[_0x2695e6('0x6')]?_0x4a1517[_0x2695e6('0x6')][_0x2695e6('0x2')]||null:null,'attributes':_0x4a1517[_0x2695e6('0x6')]?_0x4a1517[_0x2695e6('0x6')][_0x2695e6('0x4')]||null:null,'include':_0x4a1517[_0x2695e6('0x6')]?_0x4a1517[_0x2695e6('0x6')]['include']?_['map'](_0x4a1517['options'][_0x2695e6('0x0')],function(_0x4f69b){const _0x972479=_0x2695e6;return{'model':db[_0x4f69b[_0x972479('0x3')]],'as':_0x4f69b['as'],'attributes':_0x4f69b[_0x972479('0x4')],'include':_0x4f69b[_0x972479('0x0')]?_[_0x972479('0xf')](_0x4f69b[_0x972479('0x0')],function(_0x2227cf){const _0x4e9746=_0x972479;return{'model':db[_0x2227cf[_0x4e9746('0x3')]],'as':_0x2227cf['as'],'attributes':_0x2227cf[_0x4e9746('0x4')],'include':_0x2227cf[_0x4e9746('0x0')]?_[_0x4e9746('0xf')](_0x2227cf[_0x4e9746('0x0')],function(_0x4d9f0d){const _0x3f5773=_0x4e9746;return{'model':db[_0x4d9f0d[_0x3f5773('0x3')]],'as':_0x4d9f0d['as'],'attributes':_0x4d9f0d[_0x3f5773('0x4')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4d97b4){const _0x2ba069=_0x2695e6;logger[_0x2ba069('0x12')]('ShowWhatsappAccount',_0x4a1517),logger[_0x2ba069('0x11')](_0x2ba069('0xa'),_0x4a1517,JSON['stringify'](_0x4d97b4)),_0x4a4895(_0x4d97b4);})[_0x2695e6('0xe')](function(_0x46c33c){const _0x2d795e=_0x2695e6;logger['error']('ShowWhatsappAccount',_0x46c33c[_0x2d795e('0xc')],_0x4a1517),_0x456bd6(_0x41e7cd[_0x2d795e('0x5')](0x1f4,_0x46c33c[_0x2d795e('0xc')]));});});}; \ No newline at end of file diff --git a/server/api/whatsappAccount/whatsappAccount.socket.js b/server/api/whatsappAccount/whatsappAccount.socket.js index 1c18621..dab66e1 100644 --- a/server/api/whatsappAccount/whatsappAccount.socket.js +++ b/server/api/whatsappAccount/whatsappAccount.socket.js @@ -1 +1 @@ -const a787_0x926c=['length','register','update','emit'];(function(_0x35ea46,_0x926c9a){const _0x1559dc=function(_0x495ad8){while(--_0x495ad8){_0x35ea46['push'](_0x35ea46['shift']());}};_0x1559dc(++_0x926c9a);}(a787_0x926c,0x86));const a787_0x1559=function(_0x35ea46,_0x926c9a){_0x35ea46=_0x35ea46-0x0;let _0x1559dc=a787_0x926c[_0x35ea46];return _0x1559dc;};const _0x36b70d=a787_0x1559;'use strict';const WhatsappAccountEvents=require('./whatsappAccount.events'),events=['save','remove',_0x36b70d('0x0')];function createListener(_0x495ad8,_0x4af5b9){return function(_0xd3ea50){const _0x498b0b=a787_0x1559;_0x4af5b9[_0x498b0b('0x1')](_0x495ad8,_0xd3ea50);};}exports[_0x36b70d('0x3')]=function(_0x4f4d17){const _0x4aa0ec=_0x36b70d;for(let _0x55acaa=0x0,_0x25f75c=events[_0x4aa0ec('0x2')];_0x55acaa<_0x25f75c;_0x55acaa++){const _0xbf0158=events[_0x55acaa],_0x5d6c7d=createListener('whatsappAccount:'+_0xbf0158,_0x4f4d17);WhatsappAccountEvents['on'](_0xbf0158,_0x5d6c7d);}}; \ No newline at end of file +const a787_0x89ac=['save','register','remove','update','length','emit','./whatsappAccount.events'];(function(_0x20c4af,_0x89accf){const _0x4e8cca=function(_0x377c2e){while(--_0x377c2e){_0x20c4af['push'](_0x20c4af['shift']());}};_0x4e8cca(++_0x89accf);}(a787_0x89ac,0xcf));const a787_0x4e8c=function(_0x20c4af,_0x89accf){_0x20c4af=_0x20c4af-0x0;let _0x4e8cca=a787_0x89ac[_0x20c4af];return _0x4e8cca;};const _0x383731=a787_0x4e8c;'use strict';const WhatsappAccountEvents=require(_0x383731('0x2')),events=[_0x383731('0x3'),_0x383731('0x5'),_0x383731('0x6')];function createListener(_0x377c2e,_0x22b854){return function(_0x46017f){const _0x52eeb9=a787_0x4e8c;_0x22b854[_0x52eeb9('0x1')](_0x377c2e,_0x46017f);};}exports[_0x383731('0x4')]=function(_0x316f47){const _0x584572=_0x383731;for(let _0x203ef7=0x0,_0x3f0bdd=events[_0x584572('0x0')];_0x203ef7<_0x3f0bdd;_0x203ef7++){const _0xa0037b=events[_0x203ef7],_0x5050cf=createListener('whatsappAccount:'+_0xa0037b,_0x316f47);WhatsappAccountEvents['on'](_0xa0037b,_0x5050cf);}}; \ No newline at end of file diff --git a/server/api/whatsappApplication/index.js b/server/api/whatsappApplication/index.js index 050e7c5..34aaf01 100644 --- a/server/api/whatsappApplication/index.js +++ b/server/api/whatsappApplication/index.js @@ -1 +1 @@ -const a788_0x2ec9=['Router','express','/:id','get','index','./whatsappApplication.controller','update','isAuthenticated','../../components/auth/service','show'];(function(_0x1922ec,_0x2ec918){const _0x173b15=function(_0x160309){while(--_0x160309){_0x1922ec['push'](_0x1922ec['shift']());}};_0x173b15(++_0x2ec918);}(a788_0x2ec9,0xc9));const a788_0x173b=function(_0x1922ec,_0x2ec918){_0x1922ec=_0x1922ec-0x0;let _0x173b15=a788_0x2ec9[_0x1922ec];return _0x173b15;};const _0x575974=a788_0x173b;'use strict';const express=require(_0x575974('0x0')),router=express[_0x575974('0x9')](),auth=require(_0x575974('0x7')),controller=require(_0x575974('0x4'));router['get']('/',auth[_0x575974('0x6')](),controller[_0x575974('0x3')]),router[_0x575974('0x2')](_0x575974('0x1'),auth['isAuthenticated'](),controller[_0x575974('0x8')]),router['post']('/',auth['isAuthenticated'](),controller['create']),router['put'](_0x575974('0x1'),auth['isAuthenticated'](),controller[_0x575974('0x5')]),router['delete'](_0x575974('0x1'),auth[_0x575974('0x6')](),controller['destroy']),module['exports']=router; \ No newline at end of file +const a788_0x1777=['index','delete','express','isAuthenticated','get','put','update','exports','show','/:id','post','../../components/auth/service','Router','./whatsappApplication.controller','create'];(function(_0x4ff71b,_0x17778f){const _0x56d5c6=function(_0xa19668){while(--_0xa19668){_0x4ff71b['push'](_0x4ff71b['shift']());}};_0x56d5c6(++_0x17778f);}(a788_0x1777,0xa2));const a788_0x56d5=function(_0x4ff71b,_0x17778f){_0x4ff71b=_0x4ff71b-0x0;let _0x56d5c6=a788_0x1777[_0x4ff71b];return _0x56d5c6;};const _0x1082c2=a788_0x56d5;'use strict';const express=require(_0x1082c2('0x5')),router=express[_0x1082c2('0x0')](),auth=require(_0x1082c2('0xe')),controller=require(_0x1082c2('0x1'));router[_0x1082c2('0x7')]('/',auth[_0x1082c2('0x6')](),controller[_0x1082c2('0x3')]),router[_0x1082c2('0x7')](_0x1082c2('0xc'),auth[_0x1082c2('0x6')](),controller[_0x1082c2('0xb')]),router[_0x1082c2('0xd')]('/',auth[_0x1082c2('0x6')](),controller[_0x1082c2('0x2')]),router[_0x1082c2('0x8')](_0x1082c2('0xc'),auth[_0x1082c2('0x6')](),controller[_0x1082c2('0x9')]),router[_0x1082c2('0x4')]('/:id',auth[_0x1082c2('0x6')](),controller['destroy']),module[_0x1082c2('0xa')]=router; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.attributes.js b/server/api/whatsappApplication/whatsappApplication.attributes.js index a762437..050cfd1 100644 --- a/server/api/whatsappApplication/whatsappApplication.attributes.js +++ b/server/api/whatsappApplication/whatsappApplication.attributes.js @@ -1 +1 @@ -const a789_0x391f=['sequelize','TEXT','exports','noop','STRING','*,*,*,*'];(function(_0x51052a,_0x391fa0){const _0x59672d=function(_0x33f38d){while(--_0x33f38d){_0x51052a['push'](_0x51052a['shift']());}};_0x59672d(++_0x391fa0);}(a789_0x391f,0x136));const a789_0x5967=function(_0x51052a,_0x391fa0){_0x51052a=_0x51052a-0x0;let _0x59672d=a789_0x391f[_0x51052a];return _0x59672d;};const _0x3858af=a789_0x5967;'use strict';const Sequelize=require(_0x3858af('0x2'));module[_0x3858af('0x4')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize['STRING'],'allowNull':![],'defaultValue':_0x3858af('0x5')},'appdata':{'type':Sequelize[_0x3858af('0x3')]()},'description':{'type':Sequelize[_0x3858af('0x0')]},'interval':{'type':Sequelize['STRING'],'defaultValue':_0x3858af('0x1')}}; \ No newline at end of file +const a789_0x3f49=['STRING','TEXT','*,*,*,*','sequelize','noop','exports'];(function(_0x1bfe2b,_0x3f4941){const _0x2be1cc=function(_0x3ae9dc){while(--_0x3ae9dc){_0x1bfe2b['push'](_0x1bfe2b['shift']());}};_0x2be1cc(++_0x3f4941);}(a789_0x3f49,0xe5));const a789_0x2be1=function(_0x1bfe2b,_0x3f4941){_0x1bfe2b=_0x1bfe2b-0x0;let _0x2be1cc=a789_0x3f49[_0x1bfe2b];return _0x2be1cc;};const _0x211575=a789_0x2be1;'use strict';const Sequelize=require(_0x211575('0x2'));module[_0x211575('0x4')]={'priority':{'type':Sequelize['INTEGER'],'allowNull':![]},'app':{'type':Sequelize[_0x211575('0x5')],'allowNull':![],'defaultValue':_0x211575('0x3')},'appdata':{'type':Sequelize[_0x211575('0x0')]()},'description':{'type':Sequelize[_0x211575('0x5')]},'interval':{'type':Sequelize[_0x211575('0x5')],'defaultValue':_0x211575('0x1')}}; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.controller.js b/server/api/whatsappApplication/whatsappApplication.controller.js index 805f2dc..b70f4c4 100644 --- a/server/api/whatsappApplication/whatsappApplication.controller.js +++ b/server/api/whatsappApplication/whatsappApplication.controller.js @@ -1 +1 @@ -const a790_0x45db=['pick','lodash','then','WhatsappApplication','fieldName','model','undefined','json','map','findOne','status','like','index','stack','send','filter','create','where','fields','../../components/parsers/qs','include','offset','includeAll','rows','intersection','type','findAll','api','query','options','keys','sendStatus','VIRTUAL','Content-Range','filters','attributes','../../mysqldb','destroy','sort','end','update','error','catch','rawAttributes','merge','name','body','key','../../config/logger','count','sequelize','show','params','limit','set','length'];(function(_0x3a18a0,_0x45db51){const _0x429b23=function(_0x17cf83){while(--_0x17cf83){_0x3a18a0['push'](_0x3a18a0['shift']());}};_0x429b23(++_0x45db51);}(a790_0x45db,0x129));const a790_0x429b=function(_0x3a18a0,_0x45db51){_0x3a18a0=_0x3a18a0-0x0;let _0x429b23=a790_0x45db[_0x3a18a0];return _0x429b23;};const _0x5cb912=a790_0x429b;'use strict';const _=require(_0x5cb912('0x28')),qs=require(_0x5cb912('0x2')),logger=require(_0x5cb912('0x1f'))(_0x5cb912('0xa')),db=require(_0x5cb912('0x13'))['db'],{Op}=require(_0x5cb912('0x21'));function respondWithResult(_0x17cf83,_0x583f24){return _0x583f24=_0x583f24||0xc8,function(_0xf9647a){const _0xff6a46=a790_0x429b;if(_0xf9647a)return _0x17cf83[_0xff6a46('0x31')](_0x583f24)[_0xff6a46('0x2e')](_0xf9647a);};}function respondWithFilteredResult(_0x38f15b,_0x1b973a){return function(_0x1ebe60){const _0x2db98c=a790_0x429b;if(_0x1ebe60){const _0x23fb4a=_0x1ebe60[_0x2db98c('0x20')],_0x33ffa2=_0x1b973a['offset'];let _0xe39062=_0x1b973a['offset']+_0x1b973a[_0x2db98c('0x24')],_0x35df6d;return _0xe39062>=_0x23fb4a?(_0xe39062=_0x23fb4a,_0x35df6d=0xc8):_0x35df6d=0xce,_0x38f15b[_0x2db98c('0x31')](_0x35df6d),_0x38f15b[_0x2db98c('0x25')](_0x2db98c('0x10'),_0x33ffa2+'-'+_0xe39062+'/'+_0x23fb4a)[_0x2db98c('0x2e')](_0x1ebe60);}return null;};}function saveUpdates(_0x4f83a9){return function(_0x100720){const _0xc360d4=a790_0x429b;if(_0x100720)return _0x100720[_0xc360d4('0x17')](_0x4f83a9)['then'](function(_0x3779c0){return _0x3779c0;});return null;};}function removeEntity(_0x33c9cc){return function(_0x58fffd){const _0x34402f=a790_0x429b;if(_0x58fffd)return _0x58fffd[_0x34402f('0x14')]()[_0x34402f('0x29')](function(){const _0x28cbfa=_0x34402f;_0x33c9cc[_0x28cbfa('0x31')](0xcc)[_0x28cbfa('0x16')]();});};}function handleEntityNotFound(_0x155631){return function(_0x2a14a7){const _0x561178=a790_0x429b;return!_0x2a14a7&&_0x155631[_0x561178('0xe')](0x194),_0x2a14a7;};}function handleError(_0x58e6a6,_0x4f8f60){return _0x4f8f60=_0x4f8f60||0x1f4,function(_0xbc33){const _0x5b92c2=a790_0x429b;logger[_0x5b92c2('0x18')](_0xbc33[_0x5b92c2('0x34')]),_0xbc33[_0x5b92c2('0x1c')]&&delete _0xbc33['name'],_0x58e6a6[_0x5b92c2('0x31')](_0x4f8f60)[_0x5b92c2('0x35')](_0xbc33);};}exports[_0x5cb912('0x33')]=function(_0x22083a,_0xb47fbc){const _0x31c888=_0x5cb912;let _0x2c54bb={};const _0x299870={},_0x54f488={'count':0x0,'rows':[]},_0x186dd1=_['map'](db[_0x31c888('0x2a')][_0x31c888('0x1a')],function(_0x1f0903){const _0x2411b6=_0x31c888;return{'name':_0x1f0903[_0x2411b6('0x2b')],'type':_0x1f0903[_0x2411b6('0x8')][_0x2411b6('0x1e')]};});_0x299870[_0x31c888('0x2c')]=_['map'](_0x186dd1,_0x31c888('0x1c')),_0x299870[_0x31c888('0xb')]=_[_0x31c888('0xd')](_0x22083a[_0x31c888('0xb')]),_0x299870['filters']=_[_0x31c888('0x7')](_0x299870[_0x31c888('0x2c')],_0x299870[_0x31c888('0xb')]),_0x2c54bb[_0x31c888('0x12')]=_[_0x31c888('0x7')](_0x299870[_0x31c888('0x2c')],qs[_0x31c888('0x1')](_0x22083a[_0x31c888('0xb')][_0x31c888('0x1')])),_0x2c54bb[_0x31c888('0x12')]=_0x2c54bb[_0x31c888('0x12')][_0x31c888('0x26')]?_0x2c54bb[_0x31c888('0x12')]:_0x299870['model'];typeof _0x22083a[_0x31c888('0xb')]['nolimit']===_0x31c888('0x2d')&&(_0x2c54bb['limit']=qs['limit'](_0x22083a[_0x31c888('0xb')][_0x31c888('0x24')]),_0x2c54bb['offset']=qs[_0x31c888('0x4')](_0x22083a['query'][_0x31c888('0x4')]));_0x2c54bb['order']=qs[_0x31c888('0x15')](_0x22083a['query'][_0x31c888('0x15')]),_0x2c54bb['where']=qs['filters'](_[_0x31c888('0x27')](_0x22083a[_0x31c888('0xb')],_0x299870[_0x31c888('0x11')]),_0x186dd1);_0x22083a[_0x31c888('0xb')][_0x31c888('0x36')]&&(_0x2c54bb[_0x31c888('0x0')]=_[_0x31c888('0x1b')](_0x2c54bb[_0x31c888('0x0')],{[Op['or']]:_[_0x31c888('0x2f')](_0x186dd1,function(_0x492108){const _0x3baa8b=_0x31c888;if(_0x492108[_0x3baa8b('0x8')]!==_0x3baa8b('0xf')){const _0x4ad7a1={};return _0x4ad7a1[_0x492108[_0x3baa8b('0x1c')]]={[Op[_0x3baa8b('0x32')]]:'%'+_0x22083a[_0x3baa8b('0xb')]['filter']+'%'},_0x4ad7a1;}})}));_0x2c54bb=_['merge']({},_0x2c54bb,_0x22083a[_0x31c888('0xc')]);const _0x1dd7b1={'where':_0x2c54bb[_0x31c888('0x0')]};return db['WhatsappApplication'][_0x31c888('0x20')](_0x1dd7b1)[_0x31c888('0x29')](function(_0x38b90f){const _0x37d78e=_0x31c888;return _0x54f488[_0x37d78e('0x20')]=_0x38b90f,_0x22083a[_0x37d78e('0xb')][_0x37d78e('0x5')]&&(_0x2c54bb[_0x37d78e('0x3')]=[{'all':!![]}]),db[_0x37d78e('0x2a')][_0x37d78e('0x9')](_0x2c54bb);})['then'](function(_0x545a9a){const _0x1f5148=_0x31c888;return _0x54f488[_0x1f5148('0x6')]=_0x545a9a,_0x54f488;})[_0x31c888('0x29')](respondWithFilteredResult(_0xb47fbc,_0x2c54bb))['catch'](handleError(_0xb47fbc,null));},exports[_0x5cb912('0x22')]=function(_0x5b542b,_0x477863){const _0x323967=_0x5cb912;let _0x4cefac={'raw':!![],'where':{'id':_0x5b542b[_0x323967('0x23')]['id']}};const _0x30edbc={};return _0x30edbc[_0x323967('0x2c')]=_['keys'](db[_0x323967('0x2a')]['rawAttributes']),_0x30edbc[_0x323967('0xb')]=_[_0x323967('0xd')](_0x5b542b[_0x323967('0xb')]),_0x30edbc[_0x323967('0x11')]=_[_0x323967('0x7')](_0x30edbc[_0x323967('0x2c')],_0x30edbc['query']),_0x4cefac[_0x323967('0x12')]=_['intersection'](_0x30edbc['model'],qs['fields'](_0x5b542b[_0x323967('0xb')][_0x323967('0x1')])),_0x4cefac[_0x323967('0x12')]=_0x4cefac[_0x323967('0x12')]['length']?_0x4cefac[_0x323967('0x12')]:_0x30edbc['model'],_0x5b542b[_0x323967('0xb')][_0x323967('0x5')]&&(_0x4cefac[_0x323967('0x3')]=[{'all':!![]}]),_0x4cefac=_['merge']({},_0x4cefac,_0x5b542b['options']),db[_0x323967('0x2a')][_0x323967('0x30')](_0x4cefac)[_0x323967('0x29')](handleEntityNotFound(_0x477863,null))[_0x323967('0x29')](respondWithResult(_0x477863,null))[_0x323967('0x19')](handleError(_0x477863,null));},exports[_0x5cb912('0x37')]=function(_0x14b91e,_0x59923f){const _0x117f31=_0x5cb912;return db['WhatsappApplication'][_0x117f31('0x37')](_0x14b91e[_0x117f31('0x1d')],{})[_0x117f31('0x29')](respondWithResult(_0x59923f,0xc9))[_0x117f31('0x19')](handleError(_0x59923f,null));},exports[_0x5cb912('0x17')]=function(_0x31b477,_0x258181){const _0x405c06=_0x5cb912;return _0x31b477[_0x405c06('0x1d')]['id']&&delete _0x31b477[_0x405c06('0x1d')]['id'],db[_0x405c06('0x2a')][_0x405c06('0x30')]({'where':{'id':_0x31b477[_0x405c06('0x23')]['id']}})[_0x405c06('0x29')](handleEntityNotFound(_0x258181,null))['then'](saveUpdates(_0x31b477['body'],null))[_0x405c06('0x29')](respondWithResult(_0x258181,null))[_0x405c06('0x19')](handleError(_0x258181,null));},exports['destroy']=function(_0x5bb228,_0x3ffc8e){const _0x37da6=_0x5cb912;return db[_0x37da6('0x2a')]['findOne']({'where':{'id':_0x5bb228[_0x37da6('0x23')]['id']}})[_0x37da6('0x29')](handleEntityNotFound(_0x3ffc8e,null))[_0x37da6('0x29')](removeEntity(_0x3ffc8e,null))[_0x37da6('0x19')](handleError(_0x3ffc8e,null));}; \ No newline at end of file +const a790_0x3fef=['count','filters','pick','send','../../components/parsers/qs','query','sort','key','stack','error','../../mysqldb','Content-Range','intersection','body','keys','nolimit','order','VIRTUAL','findOne','update','model','WhatsappApplication','params','options','name','rows','length','merge','sendStatus','fields','include','status','lodash','offset','set','map','json','findAll','show','catch','includeAll','sequelize','attributes','destroy','filter','then','index','create','rawAttributes','where','../../config/logger','limit'];(function(_0x54d4ba,_0x3fef8c){const _0x51f530=function(_0x48cd21){while(--_0x48cd21){_0x54d4ba['push'](_0x54d4ba['shift']());}};_0x51f530(++_0x3fef8c);}(a790_0x3fef,0x139));const a790_0x51f5=function(_0x54d4ba,_0x3fef8c){_0x54d4ba=_0x54d4ba-0x0;let _0x51f530=a790_0x3fef[_0x54d4ba];return _0x51f530;};const _0x2d31a9=a790_0x51f5;'use strict';const _=require(_0x2d31a9('0x1f')),qs=require(_0x2d31a9('0x3')),logger=require(_0x2d31a9('0x31'))('api'),db=require(_0x2d31a9('0x9'))['db'],{Op}=require(_0x2d31a9('0x28'));function respondWithResult(_0x48cd21,_0x54939e){return _0x54939e=_0x54939e||0xc8,function(_0xc5029){const _0x5e448c=a790_0x51f5;if(_0xc5029)return _0x48cd21[_0x5e448c('0x1e')](_0x54939e)['json'](_0xc5029);};}function respondWithFilteredResult(_0x2817a6,_0x19d0e6){return function(_0x966e0d){const _0x247dcb=a790_0x51f5;if(_0x966e0d){const _0x207ff6=_0x966e0d[_0x247dcb('0x33')],_0x18ab65=_0x19d0e6['offset'];let _0x56483d=_0x19d0e6[_0x247dcb('0x20')]+_0x19d0e6[_0x247dcb('0x32')],_0x2b3df9;return _0x56483d>=_0x207ff6?(_0x56483d=_0x207ff6,_0x2b3df9=0xc8):_0x2b3df9=0xce,_0x2817a6[_0x247dcb('0x1e')](_0x2b3df9),_0x2817a6[_0x247dcb('0x21')](_0x247dcb('0xa'),_0x18ab65+'-'+_0x56483d+'/'+_0x207ff6)[_0x247dcb('0x23')](_0x966e0d);}return null;};}function saveUpdates(_0x583dcf){return function(_0x42e789){const _0x129f57=a790_0x51f5;if(_0x42e789)return _0x42e789['update'](_0x583dcf)[_0x129f57('0x2c')](function(_0x420caa){return _0x420caa;});return null;};}function removeEntity(_0x513f20){return function(_0x14495b){const _0x15f784=a790_0x51f5;if(_0x14495b)return _0x14495b[_0x15f784('0x2a')]()[_0x15f784('0x2c')](function(){_0x513f20['status'](0xcc)['end']();});};}function handleEntityNotFound(_0x35bf08){return function(_0x559758){const _0xdb3a2d=a790_0x51f5;return!_0x559758&&_0x35bf08[_0xdb3a2d('0x1b')](0x194),_0x559758;};}function handleError(_0x43d56a,_0x159919){return _0x159919=_0x159919||0x1f4,function(_0x22fe6d){const _0x10e217=a790_0x51f5;logger[_0x10e217('0x8')](_0x22fe6d[_0x10e217('0x7')]),_0x22fe6d[_0x10e217('0x17')]&&delete _0x22fe6d[_0x10e217('0x17')],_0x43d56a[_0x10e217('0x1e')](_0x159919)[_0x10e217('0x2')](_0x22fe6d);};}exports[_0x2d31a9('0x2d')]=function(_0x2db131,_0x2e1fb7){const _0x35e092=_0x2d31a9;let _0x4b62ad={};const _0x342fb6={},_0x2818d7={'count':0x0,'rows':[]},_0x2f9d51=_['map'](db[_0x35e092('0x14')][_0x35e092('0x2f')],function(_0x28c4bb){const _0x10ba05=_0x35e092;return{'name':_0x28c4bb['fieldName'],'type':_0x28c4bb['type'][_0x10ba05('0x6')]};});_0x342fb6['model']=_[_0x35e092('0x22')](_0x2f9d51,_0x35e092('0x17')),_0x342fb6[_0x35e092('0x4')]=_[_0x35e092('0xd')](_0x2db131['query']),_0x342fb6[_0x35e092('0x0')]=_[_0x35e092('0xb')](_0x342fb6[_0x35e092('0x13')],_0x342fb6[_0x35e092('0x4')]),_0x4b62ad[_0x35e092('0x29')]=_[_0x35e092('0xb')](_0x342fb6[_0x35e092('0x13')],qs[_0x35e092('0x1c')](_0x2db131['query'][_0x35e092('0x1c')])),_0x4b62ad[_0x35e092('0x29')]=_0x4b62ad[_0x35e092('0x29')][_0x35e092('0x19')]?_0x4b62ad[_0x35e092('0x29')]:_0x342fb6[_0x35e092('0x13')];typeof _0x2db131[_0x35e092('0x4')][_0x35e092('0xe')]==='undefined'&&(_0x4b62ad[_0x35e092('0x32')]=qs[_0x35e092('0x32')](_0x2db131['query'][_0x35e092('0x32')]),_0x4b62ad[_0x35e092('0x20')]=qs['offset'](_0x2db131[_0x35e092('0x4')][_0x35e092('0x20')]));_0x4b62ad[_0x35e092('0xf')]=qs[_0x35e092('0x5')](_0x2db131[_0x35e092('0x4')]['sort']),_0x4b62ad[_0x35e092('0x30')]=qs[_0x35e092('0x0')](_[_0x35e092('0x1')](_0x2db131['query'],_0x342fb6[_0x35e092('0x0')]),_0x2f9d51);_0x2db131[_0x35e092('0x4')][_0x35e092('0x2b')]&&(_0x4b62ad[_0x35e092('0x30')]=_[_0x35e092('0x1a')](_0x4b62ad[_0x35e092('0x30')],{[Op['or']]:_[_0x35e092('0x22')](_0x2f9d51,function(_0x132eba){const _0x4b9c50=_0x35e092;if(_0x132eba['type']!==_0x4b9c50('0x10')){const _0x4a28ce={};return _0x4a28ce[_0x132eba[_0x4b9c50('0x17')]]={[Op['like']]:'%'+_0x2db131[_0x4b9c50('0x4')][_0x4b9c50('0x2b')]+'%'},_0x4a28ce;}})}));_0x4b62ad=_['merge']({},_0x4b62ad,_0x2db131[_0x35e092('0x16')]);const _0x2062ba={'where':_0x4b62ad[_0x35e092('0x30')]};return db[_0x35e092('0x14')][_0x35e092('0x33')](_0x2062ba)[_0x35e092('0x2c')](function(_0x4d4347){const _0x5e1f28=_0x35e092;return _0x2818d7[_0x5e1f28('0x33')]=_0x4d4347,_0x2db131['query'][_0x5e1f28('0x27')]&&(_0x4b62ad['include']=[{'all':!![]}]),db[_0x5e1f28('0x14')][_0x5e1f28('0x24')](_0x4b62ad);})[_0x35e092('0x2c')](function(_0x831891){const _0x3ce728=_0x35e092;return _0x2818d7[_0x3ce728('0x18')]=_0x831891,_0x2818d7;})['then'](respondWithFilteredResult(_0x2e1fb7,_0x4b62ad))[_0x35e092('0x26')](handleError(_0x2e1fb7,null));},exports[_0x2d31a9('0x25')]=function(_0x4f227e,_0x19fd64){const _0x1239dd=_0x2d31a9;let _0x1f32c9={'raw':!![],'where':{'id':_0x4f227e[_0x1239dd('0x15')]['id']}};const _0x1b8fbc={};return _0x1b8fbc[_0x1239dd('0x13')]=_[_0x1239dd('0xd')](db[_0x1239dd('0x14')][_0x1239dd('0x2f')]),_0x1b8fbc[_0x1239dd('0x4')]=_[_0x1239dd('0xd')](_0x4f227e[_0x1239dd('0x4')]),_0x1b8fbc[_0x1239dd('0x0')]=_['intersection'](_0x1b8fbc['model'],_0x1b8fbc[_0x1239dd('0x4')]),_0x1f32c9[_0x1239dd('0x29')]=_[_0x1239dd('0xb')](_0x1b8fbc[_0x1239dd('0x13')],qs[_0x1239dd('0x1c')](_0x4f227e[_0x1239dd('0x4')][_0x1239dd('0x1c')])),_0x1f32c9[_0x1239dd('0x29')]=_0x1f32c9['attributes'][_0x1239dd('0x19')]?_0x1f32c9[_0x1239dd('0x29')]:_0x1b8fbc[_0x1239dd('0x13')],_0x4f227e['query']['includeAll']&&(_0x1f32c9[_0x1239dd('0x1d')]=[{'all':!![]}]),_0x1f32c9=_[_0x1239dd('0x1a')]({},_0x1f32c9,_0x4f227e[_0x1239dd('0x16')]),db[_0x1239dd('0x14')][_0x1239dd('0x11')](_0x1f32c9)['then'](handleEntityNotFound(_0x19fd64,null))[_0x1239dd('0x2c')](respondWithResult(_0x19fd64,null))['catch'](handleError(_0x19fd64,null));},exports[_0x2d31a9('0x2e')]=function(_0x242a27,_0x1298d1){const _0xff177f=_0x2d31a9;return db[_0xff177f('0x14')][_0xff177f('0x2e')](_0x242a27[_0xff177f('0xc')],{})['then'](respondWithResult(_0x1298d1,0xc9))[_0xff177f('0x26')](handleError(_0x1298d1,null));},exports[_0x2d31a9('0x12')]=function(_0x133084,_0x31d75b){const _0x5a2eb2=_0x2d31a9;return _0x133084[_0x5a2eb2('0xc')]['id']&&delete _0x133084[_0x5a2eb2('0xc')]['id'],db['WhatsappApplication'][_0x5a2eb2('0x11')]({'where':{'id':_0x133084[_0x5a2eb2('0x15')]['id']}})[_0x5a2eb2('0x2c')](handleEntityNotFound(_0x31d75b,null))[_0x5a2eb2('0x2c')](saveUpdates(_0x133084[_0x5a2eb2('0xc')],null))[_0x5a2eb2('0x2c')](respondWithResult(_0x31d75b,null))[_0x5a2eb2('0x26')](handleError(_0x31d75b,null));},exports[_0x2d31a9('0x2a')]=function(_0x5cf046,_0x3a2e5c){const _0x4e69a8=_0x2d31a9;return db[_0x4e69a8('0x14')]['findOne']({'where':{'id':_0x5cf046[_0x4e69a8('0x15')]['id']}})['then'](handleEntityNotFound(_0x3a2e5c,null))[_0x4e69a8('0x2c')](removeEntity(_0x3a2e5c,null))[_0x4e69a8('0x26')](handleError(_0x3a2e5c,null));}; \ No newline at end of file diff --git a/server/api/whatsappApplication/whatsappApplication.model.js b/server/api/whatsappApplication/whatsappApplication.model.js index 0623597..0eaa184 100644 --- a/server/api/whatsappApplication/whatsappApplication.model.js +++ b/server/api/whatsappApplication/whatsappApplication.model.js @@ -1 +1 @@ -const a791_0x346d=['./whatsappApplication.attributes','utf8mb4','utf8mb4_unicode_ci','WhatsappApplication','exports','define'];(function(_0x3dfdec,_0x346d32){const _0x1f3ebc=function(_0x346377){while(--_0x346377){_0x3dfdec['push'](_0x3dfdec['shift']());}};_0x1f3ebc(++_0x346d32);}(a791_0x346d,0x1c6));const a791_0x1f3e=function(_0x3dfdec,_0x346d32){_0x3dfdec=_0x3dfdec-0x0;let _0x1f3ebc=a791_0x346d[_0x3dfdec];return _0x1f3ebc;};const _0x184b39=a791_0x1f3e;'use strict';const attributes=require(_0x184b39('0x2'));module[_0x184b39('0x0')]=function(_0x346377){const _0x18e0d9=_0x184b39,_0x5aca7e=_0x346377[_0x18e0d9('0x1')](_0x18e0d9('0x5'),attributes,{'tableName':'whatsapp_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x18e0d9('0x3'),'collate':_0x18e0d9('0x4')});return _0x5aca7e;}; \ No newline at end of file +const a791_0x375d=['WhatsappApplication','utf8mb4','./whatsappApplication.attributes','define'];(function(_0x442cb0,_0x375deb){const _0x52f68e=function(_0x44e439){while(--_0x44e439){_0x442cb0['push'](_0x442cb0['shift']());}};_0x52f68e(++_0x375deb);}(a791_0x375d,0xe3));const a791_0x52f6=function(_0x442cb0,_0x375deb){_0x442cb0=_0x442cb0-0x0;let _0x52f68e=a791_0x375d[_0x442cb0];return _0x52f68e;};const _0x4cd366=a791_0x52f6;'use strict';const attributes=require(_0x4cd366('0x3'));module['exports']=function(_0x44e439){const _0x1af358=_0x4cd366,_0x444193=_0x44e439[_0x1af358('0x0')](_0x1af358('0x1'),attributes,{'tableName':'whatsapp_applications','paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x1af358('0x2'),'collate':'utf8mb4_unicode_ci'});return _0x444193;}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/index.js b/server/api/whatsappInteraction/index.js index 672e71e..a4f1c1c 100644 --- a/server/api/whatsappInteraction/index.js +++ b/server/api/whatsappInteraction/index.js @@ -1 +1 @@ -const a792_0x1f2e=['describe','delete','removeTags','Router','/:id/messages','../../components/interaction/service','exports','post','index','get','/:id/tags','/describe','update','/:id','whatsapp','create','whatsappinteraction:update','destroy','./whatsappInteraction.controller','addTags','isAuthenticated','express','whatsappinteraction:destroy','../../components/auth/service','download','tracked'];(function(_0x51e6d4,_0x1f2e5c){const _0x38c4fa=function(_0x226811){while(--_0x226811){_0x51e6d4['push'](_0x51e6d4['shift']());}};_0x38c4fa(++_0x1f2e5c);}(a792_0x1f2e,0x1c2));const a792_0x38c4=function(_0x51e6d4,_0x1f2e5c){_0x51e6d4=_0x51e6d4-0x0;let _0x38c4fa=a792_0x1f2e[_0x51e6d4];return _0x38c4fa;};const _0x183770=a792_0x38c4;'use strict';const express=require(_0x183770('0xd')),router=express[_0x183770('0x15')](),auth=require(_0x183770('0xf')),interaction=require(_0x183770('0x17')),controller=require(_0x183770('0xa'));router[_0x183770('0x1')]('/',auth[_0x183770('0xc')](),controller[_0x183770('0x0')]),router[_0x183770('0x1')](_0x183770('0x3'),auth[_0x183770('0xc')](),controller[_0x183770('0x12')]),router[_0x183770('0x1')]('/:id',auth['isAuthenticated'](),controller['show']),router[_0x183770('0x1')]('/:id/messages',auth[_0x183770('0xc')](),controller['getMessages']),router[_0x183770('0x1')]('/:id/download',auth[_0x183770('0xc')](),controller[_0x183770('0x10')]),router['post']('/',auth[_0x183770('0xc')](),controller[_0x183770('0x7')]),router[_0x183770('0x19')](_0x183770('0x16'),auth[_0x183770('0xc')](),controller['addMessage']),router[_0x183770('0x19')]('/:id/tags',auth[_0x183770('0xc')](),interaction[_0x183770('0x11')](_0x183770('0x6'),'whatsappinteraction:addtags'),controller[_0x183770('0xb')]),router['put'](_0x183770('0x5'),auth[_0x183770('0xc')](),interaction['tracked']('whatsapp',_0x183770('0x8')),controller[_0x183770('0x4')]),router[_0x183770('0x13')](_0x183770('0x5'),auth['isAuthenticated'](),interaction['tracked']('whatsapp',_0x183770('0xe')),controller[_0x183770('0x9')]),router[_0x183770('0x13')](_0x183770('0x2'),auth[_0x183770('0xc')](),controller[_0x183770('0x14')]),module[_0x183770('0x18')]=router; \ No newline at end of file +const a792_0x2ddb=['addTags','/:id/tags','isAuthenticated','removeTags','/:id','get','../../components/interaction/service','show','download','whatsappinteraction:addtags','./whatsappInteraction.controller','whatsappinteraction:update','/:id/messages','addMessage','index','Router','put','create','post','whatsapp','update','whatsappinteraction:destroy','exports','tracked','delete'];(function(_0x7a3807,_0x2ddbfd){const _0x548e95=function(_0x5463e6){while(--_0x5463e6){_0x7a3807['push'](_0x7a3807['shift']());}};_0x548e95(++_0x2ddbfd);}(a792_0x2ddb,0x105));const a792_0x548e=function(_0x7a3807,_0x2ddbfd){_0x7a3807=_0x7a3807-0x0;let _0x548e95=a792_0x2ddb[_0x7a3807];return _0x548e95;};const _0x496c3c=a792_0x548e;'use strict';const express=require('express'),router=express[_0x496c3c('0x4')](),auth=require('../../components/auth/service'),interaction=require(_0x496c3c('0x14')),controller=require(_0x496c3c('0x18'));router[_0x496c3c('0x13')]('/',auth['isAuthenticated'](),controller[_0x496c3c('0x3')]),router[_0x496c3c('0x13')]('/describe',auth[_0x496c3c('0x10')](),controller['describe']),router[_0x496c3c('0x13')](_0x496c3c('0x12'),auth[_0x496c3c('0x10')](),controller[_0x496c3c('0x15')]),router[_0x496c3c('0x13')](_0x496c3c('0x1'),auth[_0x496c3c('0x10')](),controller['getMessages']),router[_0x496c3c('0x13')]('/:id/download',auth[_0x496c3c('0x10')](),controller[_0x496c3c('0x16')]),router[_0x496c3c('0x7')]('/',auth[_0x496c3c('0x10')](),controller[_0x496c3c('0x6')]),router[_0x496c3c('0x7')]('/:id/messages',auth[_0x496c3c('0x10')](),controller[_0x496c3c('0x2')]),router[_0x496c3c('0x7')](_0x496c3c('0xf'),auth[_0x496c3c('0x10')](),interaction[_0x496c3c('0xc')](_0x496c3c('0x8'),_0x496c3c('0x17')),controller[_0x496c3c('0xe')]),router[_0x496c3c('0x5')](_0x496c3c('0x12'),auth[_0x496c3c('0x10')](),interaction[_0x496c3c('0xc')]('whatsapp',_0x496c3c('0x0')),controller[_0x496c3c('0x9')]),router[_0x496c3c('0xd')](_0x496c3c('0x12'),auth['isAuthenticated'](),interaction[_0x496c3c('0xc')](_0x496c3c('0x8'),_0x496c3c('0xa')),controller['destroy']),router[_0x496c3c('0xd')](_0x496c3c('0xf'),auth['isAuthenticated'](),controller[_0x496c3c('0x11')]),module[_0x496c3c('0xb')]=router; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.attributes.js b/server/api/whatsappInteraction/whatsappInteraction.attributes.js index a8195e9..9b9257e 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.attributes.js +++ b/server/api/whatsappInteraction/whatsappInteraction.attributes.js @@ -1 +1 @@ -const a793_0x5780=['STRING','sequelize','ENUM','out','DATE','BOOLEAN','exports'];(function(_0x51c16d,_0x578051){const _0x51f619=function(_0x23180a){while(--_0x23180a){_0x51c16d['push'](_0x51c16d['shift']());}};_0x51f619(++_0x578051);}(a793_0x5780,0x97));const a793_0x51f6=function(_0x51c16d,_0x578051){_0x51c16d=_0x51c16d-0x0;let _0x51f619=a793_0x5780[_0x51c16d];return _0x51f619;};const _0x490d76=a793_0x51f6;'use strict';const Sequelize=require(_0x490d76('0x4'));module[_0x490d76('0x2')]={'closed':{'type':Sequelize[_0x490d76('0x1')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x490d76('0x0')]},'disposition':{'type':Sequelize[_0x490d76('0x3')]},'secondDisposition':{'type':Sequelize['STRING']},'thirdDisposition':{'type':Sequelize['STRING']},'note':{'type':Sequelize[_0x490d76('0x3')]},'phone':{'type':Sequelize[_0x490d76('0x3')]},'read1stAt':{'type':Sequelize[_0x490d76('0x0')]},'firstMsgDirection':{'type':Sequelize[_0x490d76('0x5')]('in',_0x490d76('0x6')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x490d76('0x0')]},'lastMsgDirection':{'type':Sequelize[_0x490d76('0x5')]('in','out'),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file +const a793_0xb318=['sequelize','out','ENUM','DATE','exports','STRING','BOOLEAN'];(function(_0x582bb1,_0xb31890){const _0x3bcb46=function(_0x30c03f){while(--_0x30c03f){_0x582bb1['push'](_0x582bb1['shift']());}};_0x3bcb46(++_0xb31890);}(a793_0xb318,0x11d));const a793_0x3bcb=function(_0x582bb1,_0xb31890){_0x582bb1=_0x582bb1-0x0;let _0x3bcb46=a793_0xb318[_0x582bb1];return _0x3bcb46;};const _0x4e000f=a793_0x3bcb;'use strict';const Sequelize=require(_0x4e000f('0x2'));module[_0x4e000f('0x6')]={'closed':{'type':Sequelize[_0x4e000f('0x1')],'defaultValue':![]},'closedAt':{'type':Sequelize[_0x4e000f('0x5')]},'disposition':{'type':Sequelize[_0x4e000f('0x0')]},'secondDisposition':{'type':Sequelize[_0x4e000f('0x0')]},'thirdDisposition':{'type':Sequelize[_0x4e000f('0x0')]},'note':{'type':Sequelize[_0x4e000f('0x0')]},'phone':{'type':Sequelize[_0x4e000f('0x0')]},'read1stAt':{'type':Sequelize[_0x4e000f('0x5')]},'firstMsgDirection':{'type':Sequelize[_0x4e000f('0x4')]('in',_0x4e000f('0x3')),'defaultValue':'in','allowNull':![]},'lastMsgAt':{'type':Sequelize[_0x4e000f('0x5')]},'lastMsgDirection':{'type':Sequelize[_0x4e000f('0x4')]('in',_0x4e000f('0x3')),'defaultValue':'in','allowNull':![]}}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.controller.js b/server/api/whatsappInteraction/whatsappInteraction.controller.js index 985a442..a694bcc 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.controller.js +++ b/server/api/whatsappInteraction/whatsappInteraction.controller.js @@ -1 +1 @@ -const a794_0x1ba0=['fieldName','end','a.mandatoryDisposition','err','transcript-%d-%s.zip','clone','WhatsappInteractionId','a.key','gte','Messages','count','Content-Range','../../components/parsers/advancedSearch','compact','../../config/environment','%s\x20#%d','forEach','parseSearch','undefined','Owner','union','path','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','some','\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','from','format','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','sort','moment','merge','TagIds','i.phone\x20LIKE\x20?','start','lastName','removeTags','UserId','../../config/logger','html-pdf','select','whatsapp_messages','$substring','operator','closed','replace','Owner.fullname','closedAt','fullname','isEmpty','WhatsappAccountId','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','sendStatus','ContactId','Account','downloadInteraction.html','30px','\x20=\x20?','CmContact','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL','ejs','json','secret','length','me.WhatsappInteractionId\x20=\x20i.id','GROUP_CONCAT(DISTINCT\x20t.id)','ui.WhatsappInteractionId\x20IN\x20?','lodash','Sequelize','QueryTypes','cm_contacts','conditions','Contact.firstName','createdAt','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','register','filter','c.mobile','tag','c.firstName','rimraf','tools_tags','nolimit','query','../../components/parsers/qs','Contact.email','isNumeric','params','Account.mandatoryDisposition','$gte','send','YYYY-MM-DD','fields','root','value','body','User','join','SELECT','o.id\x20=\x20i.UserId','log','u.id\x20=\x20ui.UserId','toFile','set','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','buildExpression','zip-dir','ids','status','setTags','group','options','i.id','../../rediscache','groupBy','transcript-','40px','filters','intersection','i.*','WhatsappInteraction','omit','it.WhatsappInteractionId\x20=\x20i.id','sequelize','addMessage','user','u.fullname','attributes','map','emit','Contact','read','c.lastName','find','update','firstName','createReadStream','whatsapp_accounts','t.id\x20IN\x20?','renderFile','findOne','left_join','Whatsapp','$lte','findAll','Contact.lastName','Contact.fax','show','direction','catch','\x27\x27\x27\x27','includeAll','10px','rawAttributes','files','color','disposition','squel','i.WhatsappAccountId\x20IS\x20NULL','users','i.id\x20LIKE\x20?','resolve','where','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','`unreadMessages`\x20=\x200','whatsapp_interactions','basename','model','offset','i.WhatsappAccountId\x20IN\x20?','isArray','getMessages','WhatsappMessage','push','DESC','./whatsappInteraction.socket','error','rows','addTags','concat','order','out','then','Tag','Account.key','createWriteStream','../../mysqldb','journey','like','type','key','existsSync','whatsappInteractionTags:save','server','a.id\x20=\x20i.WhatsappAccountId','describe','parse','text','name','YYYY-MM-DD\x20HH:mm:ss','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','views','getWhatsappAccounts','unreadMessages','field','keys','Contact.mobile','null','toString','pick','c.fax','limit','split','index','c.email','attachments','Attachment','Tags','having','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','search','include','unix','\x20IS\x20NULL','getFullTextValue','o.fullname','destroy','`\x20=\x200'];(function(_0x574233,_0x1ba039){const _0x57d5a8=function(_0x176400){while(--_0x176400){_0x574233['push'](_0x574233['shift']());}};_0x57d5a8(++_0x1ba039);}(a794_0x1ba0,0xdc));const a794_0x57d5=function(_0x574233,_0x1ba039){_0x574233=_0x574233-0x0;let _0x57d5a8=a794_0x1ba0[_0x574233];return _0x57d5a8;};const _0xff6e90=a794_0x57d5;'use strict';const pdf=require(_0xff6e90('0x2d')),rimraf=require(_0xff6e90('0x56')),zipdir=require(_0xff6e90('0x70')),moment=require(_0xff6e90('0x24')),util=require('util'),path=require(_0xff6e90('0x1c')),ejs=require(_0xff6e90('0x42')),fs=require('fs'),_=require(_0xff6e90('0x49')),squel=require(_0xff6e90('0xa3')),{getSocket}=require(_0xff6e90('0x77')),socket=getSocket(),qs=require(_0xff6e90('0x5a')),as=require(_0xff6e90('0x13')),logger=require(_0xff6e90('0x2c'))('api'),config=require(_0xff6e90('0x15')),db=require(_0xff6e90('0xc0'))['db'],{Op}=require(_0xff6e90('0x81'));require(_0xff6e90('0xb5'))[_0xff6e90('0x51')](socket);function respondWithStatusCode(_0x176400,_0x1c7852){return _0x1c7852=_0x1c7852||0xcc,function(_0x44f605){const _0x537861=a794_0x57d5;if(_0x44f605)return _0x176400['sendStatus'](_0x1c7852);return _0x176400['status'](_0x1c7852)[_0x537861('0x8')]();};}function respondWithResult(_0x521b8b,_0x29391b){return _0x29391b=_0x29391b||0xc8,function(_0x17bd40){const _0x221093=a794_0x57d5;if(_0x17bd40)return _0x521b8b[_0x221093('0x72')](_0x29391b)[_0x221093('0x43')](_0x17bd40);};}function respondWithFilteredResult(_0x21f138,_0x600f5c){return function(_0x546143){const _0x3b6232=a794_0x57d5;if(_0x546143){const _0x1b7867=_0x546143['count'],_0xd040c4=_0x600f5c[_0x3b6232('0xae')];let _0xba4ac6=_0x600f5c['offset']+_0x600f5c[_0x3b6232('0xd9')],_0x4529f5;return _0xba4ac6>=_0x1b7867?(_0xba4ac6=_0x1b7867,_0x4529f5=0xc8):_0x4529f5=0xce,_0x21f138[_0x3b6232('0x72')](_0x4529f5),_0x21f138[_0x3b6232('0x6d')](_0x3b6232('0x12'),_0xd040c4+'-'+_0xba4ac6+'/'+_0x1b7867)[_0x3b6232('0x43')](_0x546143);}return null;};}function saveUpdates(_0xc619ee){return function(_0x342528){const _0x4a8c72=a794_0x57d5;if(_0x342528)return _0x342528[_0x4a8c72('0x8c')](_0xc619ee)[_0x4a8c72('0xbc')](function(_0x1d2636){return _0x1d2636;});return null;};}function removeEntity(_0x50e423){return function(_0x43f07c){const _0x5a6d8e=a794_0x57d5;if(_0x43f07c)return _0x43f07c[_0x5a6d8e('0x5')]()[_0x5a6d8e('0xbc')](function(){const _0x316250=_0x5a6d8e;_0x50e423[_0x316250('0x72')](0xcc)[_0x316250('0x8')]();});};}function handleEntityNotFound(_0x1bfc52){return function(_0x148e72){return!_0x148e72&&_0x1bfc52['sendStatus'](0x194),_0x148e72;};}function handleError(_0x41437a,_0xb43f9){return _0xb43f9=_0xb43f9||0x1f4,function(_0x18873a){const _0x379a5f=a794_0x57d5;logger[_0x379a5f('0xb6')](_0x18873a['stack']),_0x18873a[_0x379a5f('0xcc')]&&delete _0x18873a['name'],_0x41437a[_0x379a5f('0x72')](_0xb43f9)[_0x379a5f('0x60')](_0x18873a);};}function getInteractionUsers(_0x2174d9,_0x377c15){return new Promise(function(_0x3f9496,_0xf237a5){const _0x49b372=a794_0x57d5;try{_0x377c15[_0x2174d9['id']]&&(_0x2174d9['Users']=_[_0x49b372('0x86')](_0x377c15[_0x2174d9['id']],function(_0xcc3fea){const _0x728e4e=_0x49b372;return{'id':_0xcc3fea['id'],'fullname':_0xcc3fea[_0x728e4e('0x36')]};}));}catch(_0x3467ec){_0xf237a5(_0x3467ec);}_0x3f9496(_0x2174d9);});}function getInteractionTags(_0x233e59,_0xacae32){return new Promise(function(_0x4f82c7,_0x37cb5d){const _0x488bee=a794_0x57d5;try{_0x233e59[_0x488bee('0x26')]&&(_0x233e59[_0x488bee('0xdf')]=[],_0x233e59[_0x488bee('0x26')][_0x488bee('0xda')](',')[_0x488bee('0x17')](function(_0x5ac03a){const _0x57cbbd=_0x488bee;_0x233e59[_0x57cbbd('0xdf')][_0x57cbbd('0xb3')](_0xacae32[_0x5ac03a]);})),delete _0x233e59[_0x488bee('0x26')];}catch(_0x39d0db){_0x37cb5d(_0x39d0db);}_0x4f82c7(_0x233e59);});}function updateWhatsappInteraction(_0x4e8da9,_0x1f2166,_0x2cb416){return new Promise(function(_0x2907d2,_0x3a3125){const _0x20fec8=a794_0x57d5;return getInteractionUsers(_0x4e8da9,_0x2cb416)[_0x20fec8('0xbc')](function(_0x529074){return getInteractionTags(_0x529074,_0x1f2166);})[_0x20fec8('0xbc')](function(_0x2ae381){_0x2907d2(_0x2ae381);})[_0x20fec8('0x9b')](function(_0x42a9a9){_0x3a3125(_0x42a9a9);});});}exports[_0xff6e90('0xdb')]=function(_0x35f701,_0x24be53){const _0x16aeb2=_0xff6e90,_0x336c6a={},_0x3ca838={},_0x50cb5f={'count':0x0,'rows':[]},_0x3ea63e=_['map'](db[_0x16aeb2('0x7e')][_0x16aeb2('0x9f')],function(_0x22661d){const _0x3aa22b=_0x16aeb2;return{'name':_0x22661d[_0x3aa22b('0x7')],'type':_0x22661d[_0x3aa22b('0xc3')][_0x3aa22b('0xc4')]};});_0x3ca838['model']=_[_0x16aeb2('0x86')](_0x3ea63e,_0x16aeb2('0xcc')),_0x3ca838['query']=_[_0x16aeb2('0xd3')](_0x35f701[_0x16aeb2('0x59')]),_0x3ca838[_0x16aeb2('0x7b')]=_[_0x16aeb2('0x7c')](_0x3ca838[_0x16aeb2('0xad')],_0x3ca838[_0x16aeb2('0x59')]),_0x336c6a[_0x16aeb2('0x85')]=_[_0x16aeb2('0x7c')](_0x3ca838[_0x16aeb2('0xad')],qs[_0x16aeb2('0x62')](_0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0x62')])),_0x336c6a[_0x16aeb2('0x85')]=_0x336c6a[_0x16aeb2('0x85')][_0x16aeb2('0x45')]?_0x336c6a[_0x16aeb2('0x85')]:_0x3ca838[_0x16aeb2('0xad')];typeof _0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0x58')]===_0x16aeb2('0x19')&&(_0x336c6a[_0x16aeb2('0xd9')]=qs['limit'](_0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0xd9')]),_0x336c6a['offset']=qs['offset'](_0x35f701['query'][_0x16aeb2('0xae')]));_0x336c6a[_0x16aeb2('0xba')]=qs[_0x16aeb2('0x23')](_0x35f701[_0x16aeb2('0x59')]['sort']),_0x336c6a['where']=qs[_0x16aeb2('0x7b')](_[_0x16aeb2('0xd7')](_0x35f701[_0x16aeb2('0x59')],_0x3ca838[_0x16aeb2('0x7b')]),_0x3ea63e);let _0x2f08b6=[];const _0x24e7e1=squel[_0x16aeb2('0x2e')]()[_0x16aeb2('0xd2')]('id')['field'](_0x16aeb2('0xcc'))[_0x16aeb2('0xd2')](_0x16aeb2('0xa1'))[_0x16aeb2('0x20')](_0x16aeb2('0x57')),_0x4b59e8=squel[_0x16aeb2('0x2e')]()[_0x16aeb2('0xd2')]('u.id')[_0x16aeb2('0xd2')](_0x16aeb2('0x84'))[_0x16aeb2('0xd2')]('ui.WhatsappInteractionId')[_0x16aeb2('0x20')]('user_has_whatsapp_interactions','ui')[_0x16aeb2('0x93')]('users','u',_0x16aeb2('0x6b')),_0x5484ef=squel[_0x16aeb2('0x2e')]()[_0x16aeb2('0x20')](_0x16aeb2('0xab'),'i')['left_join'](_0x16aeb2('0x4c'),'c',_0x16aeb2('0x41'))[_0x16aeb2('0x93')](_0x16aeb2('0xa5'),'o',_0x16aeb2('0x69'))[_0x16aeb2('0x93')](_0x16aeb2('0x8f'),'a',_0x16aeb2('0xc8'))[_0x16aeb2('0x93')](_0x16aeb2('0x2f'),'me',_0x16aeb2('0x46'))[_0x16aeb2('0x93')]('whatsapp_interaction_has_tags','it',_0x16aeb2('0x80'))['left_join'](_0x16aeb2('0x57'),'t','t.id\x20=\x20it.TagId'),_0x471b8b=squel['expr']();let _0x3a41b2=[];const _0x55be19=squel['expr']();let _0x31e18b;if(_0x35f701[_0x16aeb2('0x59')]['search']){_0x31e18b=as[_0x16aeb2('0x18')](_0x35f701['query'][_0x16aeb2('0xe2')]);const _0x1be7e7=_0x31e18b['sqlOperator'];for(let _0x1dd05a=0x0;_0x1dd05a<_0x31e18b[_0x16aeb2('0x4d')][_0x16aeb2('0x45')];_0x1dd05a++){const _0x2ef964=_0x31e18b[_0x16aeb2('0x4d')][_0x1dd05a],_0x37c16e='i';let _0x3cb879,_0x344809=_[_0x16aeb2('0x8b')](_0x3ea63e,['name',_0x2ef964[_0x16aeb2('0xd2')]]);if(!_0x344809)switch(_0x2ef964[_0x16aeb2('0xd2')]){case _0x16aeb2('0xd1'):_0x2ef964['value']==0x1?_0x5484ef[_0x16aeb2('0xe0')]('`'+_0x2ef964[_0x16aeb2('0xd2')]+_0x16aeb2('0x6')):_0x5484ef[_0x16aeb2('0xe0')]('`'+_0x2ef964[_0x16aeb2('0xd2')]+'`\x20>\x200');break;case _0x16aeb2('0x88'):if(_0x2ef964[_0x16aeb2('0x31')]===_0x16aeb2('0x30')){if(_0x2ef964[_0x16aeb2('0x64')][_0x16aeb2('0xda')]('\x20')['length']>0x1)_0x471b8b[_0x1be7e7](_0x16aeb2('0x6e'),qs['getFullTextValue'](_0x2ef964[_0x16aeb2('0x64')]),null);else{const _0x3d88ea='%'+_0x2ef964[_0x16aeb2('0x64')]+'%';_0x471b8b[_0x1be7e7](_0x16aeb2('0x22'),_0x3d88ea,_0x3d88ea,_0x3d88ea);}}else _0x344809=_[_0x16aeb2('0x8b')](_0x3ea63e,[_0x16aeb2('0xcc'),_0x16aeb2('0x3b')]),_0x2ef964[_0x16aeb2('0xd2')]='ContactId',_0x3cb879=as['buildExpression'](_0x37c16e,_0x344809[_0x16aeb2('0xc3')],_0x2ef964),_0x471b8b[_0x1be7e7](_0x3cb879['text'],_0x3cb879[_0x16aeb2('0x64')][_0x16aeb2('0x28')],_0x3cb879[_0x16aeb2('0x64')][_0x16aeb2('0x8')]);break;case _0x16aeb2('0xbd'):{const _0x29ca7f=_0x2ef964[_0x16aeb2('0x64')][_0x16aeb2('0xda')](',')['map'](function(_0x552162){return Number(_0x552162);});_0x29ca7f['forEach'](function(_0x3ffc84){const _0x4b2672=_0x16aeb2;_0x55be19['or'](_0x4b2672('0xce'),'%,'+_0x3ffc84+',%');}),_0x3a41b2=_[_0x16aeb2('0x1b')](_0x3a41b2,_0x29ca7f);}break;case _0x16aeb2('0x66'):_0x2ef964['operator']===_0x16aeb2('0x30')?_0x471b8b[_0x1be7e7]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x2ef964['value']+'%',null):(_0x344809=_['find'](_0x3ea63e,[_0x16aeb2('0xcc'),_0x16aeb2('0x2b')]),_0x2ef964[_0x16aeb2('0xd2')]=_0x16aeb2('0x2b'),_0x3cb879=as['buildExpression'](_0x37c16e,_0x344809['type'],_0x2ef964),_0x471b8b[_0x1be7e7](_0x3cb879['text'],_0x3cb879['value'][_0x16aeb2('0x28')],_0x3cb879[_0x16aeb2('0x64')][_0x16aeb2('0x8')]));break;case _0x16aeb2('0x65'):_0x3cb879=as['buildExpression']('me',null,_0x2ef964),_0x471b8b[_0x1be7e7](_0x3cb879[_0x16aeb2('0xcb')],_0x3cb879['value']['start'],_0x3cb879[_0x16aeb2('0x64')]['end']);break;}else _0x3cb879=as[_0x16aeb2('0x6f')](_0x37c16e,_0x344809['type'],_0x2ef964),_0x471b8b[_0x1be7e7](_0x3cb879[_0x16aeb2('0xcb')],_0x3cb879[_0x16aeb2('0x64')][_0x16aeb2('0x28')],_0x3cb879[_0x16aeb2('0x64')][_0x16aeb2('0x8')]);}}else{const _0xa22e44=_(_0x35f701[_0x16aeb2('0x59')])['keys']()[_0x16aeb2('0x86')](function(_0x234640){const _0x162158=_0x16aeb2;return _[_0x162158('0x1e')](_0x3ea63e,[_0x162158('0xcc'),_0x234640])?_0x234640:undefined;})[_0x16aeb2('0x14')]()[_0x16aeb2('0x64')]();!_['isEmpty'](_0xa22e44)&&_0xa22e44['forEach'](function(_0x3b5cb7){const _0x3b548e=_0x16aeb2;if(_0x3b5cb7==='WhatsappAccountId')_0x5484ef['where'](_0x3b548e('0xaf'),[][_0x3b548e('0xb9')](_0x35f701[_0x3b548e('0x59')][_0x3b5cb7]));else{if(_0x3b5cb7===_0x3b548e('0x4f')){const _0x36aa6c=JSON['parse'](_0x35f701[_0x3b548e('0x59')][_0x3b5cb7])['$gte'],_0x5dafe1=JSON[_0x3b548e('0xca')](_0x35f701[_0x3b548e('0x59')][_0x3b5cb7])[_0x3b548e('0x95')];_0x5484ef[_0x3b548e('0xa8')](_0x3b548e('0xe1'),_0x36aa6c,_0x5dafe1);}else _0x35f701[_0x3b548e('0x59')][_0x3b5cb7]===_0x3b548e('0xd5')?_0x5484ef[_0x3b548e('0xa8')]('i.'+_0x3b5cb7+_0x3b548e('0x2')):_0x5484ef[_0x3b548e('0xa8')]('i.'+_0x3b5cb7+_0x3b548e('0x3f'),_0x35f701[_0x3b548e('0x59')][_0x3b5cb7]);}});_0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0x89')]&&(_0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0x89')]==0x1?_0x5484ef[_0x16aeb2('0xe0')](_0x16aeb2('0xaa')):_0x5484ef['having']('`unreadMessages`\x20>\x200'));_0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0x54')]&&(_0x3a41b2=_[_0x16aeb2('0xb0')](_0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0x54')])?_0x35f701['query']['tag']:new Array(_0x35f701[_0x16aeb2('0x59')]['tag']),_0x3a41b2[_0x16aeb2('0x17')](function(_0x2f8ad0){_0x55be19['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x2f8ad0+',%');}));if(_0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0x52')]){const _0x5f2565=_0x35f701[_0x16aeb2('0x59')][_0x16aeb2('0x52')][_0x16aeb2('0x33')]('\x5c','\x5c\x5c')['replace']('\x27\x27',_0x16aeb2('0x9c'));qs[_0x16aeb2('0x5c')](_0x5f2565)?_0x471b8b['or'](_0x16aeb2('0xa6'),_0x5f2565+'%')['or'](_0x16aeb2('0x27'),_0x5f2565+'%'):_0x471b8b['or'](_0x16aeb2('0x1d'),qs[_0x16aeb2('0x3')](_0x5f2565))['or'](_0x16aeb2('0x50'),_0x5f2565+'%');}}_0x5484ef[_0x16aeb2('0xa8')](_0x471b8b),_0x5484ef[_0x16aeb2('0x74')](_0x16aeb2('0x76'));let _0x23a666={'type':db[_0x16aeb2('0x4a')][_0x16aeb2('0x4b')][_0x16aeb2('0x68')],'raw':!![]};const _0x3cc7d1=_0x5484ef[_0x16aeb2('0xc')]();_0x3cc7d1[_0x16aeb2('0xd2')](_0x16aeb2('0x76')),_0x3cc7d1[_0x16aeb2('0xd2')](_0x16aeb2('0x39'),_0x16aeb2('0xd1')),_0x336c6a['order']&&_0x336c6a[_0x16aeb2('0xba')]['forEach'](function(_0x513dc8){const _0x547621=_0x16aeb2;_0x5484ef[_0x547621('0xba')]('i.'+_0x513dc8[0x0],_0x513dc8[0x1]===_0x547621('0xb4')?![]:!![]);}),!_[_0x16aeb2('0x37')](_0x3a41b2)&&(_0x5484ef[_0x16aeb2('0xe0')](_0x55be19),_0x3cc7d1['where'](_0x16aeb2('0x90'),_0x3a41b2)),Promise[_0x16aeb2('0xa7')]()[_0x16aeb2('0xbc')](function(){const _0x40f09f=_0x16aeb2;if(!_0x31e18b){if(_0x35f701['query'][_0x40f09f('0x38')]||_0x35f701[_0x40f09f('0x59')][_0x40f09f('0xc1')])return;_0x3cc7d1[_0x40f09f('0xa8')]('i.WhatsappAccountId\x20IS\x20NOT\x20NULL'),_0x5484ef[_0x40f09f('0xa8')](_0x40f09f('0xa9'));return;}return _0x35f701[_0x40f09f('0x83')][_0x40f09f('0xd0')]({'attributes':['id'],'raw':!![]})[_0x40f09f('0xbc')](function(_0x13427f){const _0x47b058=_0x40f09f;_[_0x47b058('0x37')](_0x13427f)?(_0x3cc7d1[_0x47b058('0xa8')](_0x47b058('0xa4')),_0x5484ef['where'](_0x47b058('0xa4'))):(_0x3cc7d1[_0x47b058('0xa8')](_0x47b058('0xaf'),_[_0x47b058('0x86')](_0x13427f,'id')),_0x5484ef[_0x47b058('0xa8')]('i.WhatsappAccountId\x20IN\x20?',_['map'](_0x13427f,'id')));});})[_0x16aeb2('0xbc')](function(){const _0x1e480b=_0x16aeb2;db[_0x1e480b('0x81')][_0x1e480b('0x59')](_0x3cc7d1[_0x1e480b('0xd6')](),_0x23a666)[_0x1e480b('0xbc')](function(_0x561b33){const _0x2c082c=_0x1e480b;_0x50cb5f[_0x2c082c('0x11')]=_0x561b33[_0x2c082c('0x45')];if(_0x50cb5f[_0x2c082c('0x11')]===0x0)return[];return db[_0x2c082c('0x81')]['query'](_0x24e7e1['toString'](),_0x23a666)['then'](function(_0x731192){const _0x37a2d4=_0x2c082c;_0x2f08b6=_['keyBy'](_0x731192,'id'),_0x23a666=_[_0x37a2d4('0x25')](_0x23a666,{'model':db[_0x37a2d4('0x7e')],'mapToModel':!![],'raw':!![],'nest':!![]});_0x35f701[_0x37a2d4('0x59')][_0x37a2d4('0x62')]?_0x336c6a[_0x37a2d4('0x85')][_0x37a2d4('0x17')](function(_0x418a95){const _0x2f1192=_0x37a2d4;_0x5484ef[_0x2f1192('0xd2')]('i.'+_0x418a95);}):(_0x5484ef[_0x37a2d4('0xd2')](_0x37a2d4('0x39'),_0x37a2d4('0xd1')),_0x5484ef[_0x37a2d4('0xd2')](_0x37a2d4('0xe'),_0x37a2d4('0xbe')),_0x5484ef['field'](_0x37a2d4('0x9'),_0x37a2d4('0x5e')),_0x5484ef['field'](_0x37a2d4('0x7d')),_0x5484ef[_0x37a2d4('0xd2')](_0x37a2d4('0x55'),_0x37a2d4('0x4e')),_0x5484ef['field'](_0x37a2d4('0x8a'),_0x37a2d4('0x97')),_0x5484ef[_0x37a2d4('0xd2')](_0x37a2d4('0xdc'),_0x37a2d4('0x5b')),_0x5484ef[_0x37a2d4('0xd2')]('c.phone','Contact.phone'),_0x5484ef[_0x37a2d4('0xd2')](_0x37a2d4('0x53'),_0x37a2d4('0xd4')),_0x5484ef[_0x37a2d4('0xd2')](_0x37a2d4('0xd8'),_0x37a2d4('0x98')),_0x5484ef[_0x37a2d4('0xd2')](_0x37a2d4('0x4'),_0x37a2d4('0x34')),_0x5484ef[_0x37a2d4('0xd2')]('o.internal','Owner.internal'),_0x5484ef[_0x37a2d4('0xd2')](_0x37a2d4('0x47'),_0x37a2d4('0x26')));if(_0x336c6a[_0x37a2d4('0xd9')])_0x5484ef['limit'](_0x336c6a[_0x37a2d4('0xd9')]);if(_0x336c6a[_0x37a2d4('0xae')])_0x5484ef['offset'](_0x336c6a[_0x37a2d4('0xae')]);return db[_0x37a2d4('0x81')][_0x37a2d4('0x59')](_0x5484ef['toString'](),_0x23a666);})[_0x2c082c('0xbc')](function(_0x1ef932){const _0x38f98f=_0x2c082c;return _0x4b59e8[_0x38f98f('0xa8')](_0x38f98f('0x48'),_[_0x38f98f('0x86')](_0x1ef932,'id')),db[_0x38f98f('0x81')][_0x38f98f('0x59')](_0x4b59e8['toString'](),_0x23a666)['then'](function(_0x461ff4){const _0x129ad9=_0x38f98f,_0x2236a2=_[_0x129ad9('0x78')](_0x461ff4,_0x129ad9('0xd')),_0x4da9e9=[];return _0x1ef932[_0x129ad9('0x17')](function(_0x38ae19){const _0x204e38=_0x129ad9;_0x4da9e9[_0x204e38('0xb3')](updateWhatsappInteraction(_0x38ae19,_0x2f08b6,_0x2236a2));}),Promise['all'](_0x4da9e9);});});})[_0x1e480b('0xbc')](function(_0x45d6ef){const _0x3b9935=_0x1e480b;return _0x50cb5f[_0x3b9935('0xb7')]=_0x45d6ef,_0x50cb5f;})['then'](respondWithFilteredResult(_0x24be53,_0x336c6a));})[_0x16aeb2('0x9b')](handleError(_0x24be53,null));},exports[_0xff6e90('0x99')]=function(_0xcbfc60,_0x188206){const _0x392c44=_0xff6e90;let _0x1c6f0c={'raw':![],'where':{'id':_0xcbfc60['params']['id']}};const _0x15f261={};return _0x15f261[_0x392c44('0xad')]=_[_0x392c44('0xd3')](db['WhatsappInteraction'][_0x392c44('0x9f')]),_0x15f261[_0x392c44('0x59')]=_[_0x392c44('0xd3')](_0xcbfc60[_0x392c44('0x59')]),_0x15f261[_0x392c44('0x7b')]=_[_0x392c44('0x7c')](_0x15f261[_0x392c44('0xad')],_0x15f261['query']),_0x1c6f0c[_0x392c44('0x85')]=_[_0x392c44('0x7c')](_0x15f261['model'],qs['fields'](_0xcbfc60[_0x392c44('0x59')][_0x392c44('0x62')])),_0x1c6f0c[_0x392c44('0x85')]=_0x1c6f0c['attributes']['length']?_0x1c6f0c[_0x392c44('0x85')]:_0x15f261[_0x392c44('0xad')],_0xcbfc60[_0x392c44('0x59')]['includeAll']&&(_0x1c6f0c[_0x392c44('0x0')]=[{'all':!![]}]),_0x1c6f0c=_['merge']({},_0x1c6f0c,_0xcbfc60[_0x392c44('0x75')]),db[_0x392c44('0x7e')]['findOne'](_0x1c6f0c)['then'](handleEntityNotFound(_0x188206,null))[_0x392c44('0xbc')](respondWithResult(_0x188206,null))[_0x392c44('0x9b')](handleError(_0x188206,null));},exports['create']=function(_0x594dfc,_0x4ce091){const _0x4abac6=_0xff6e90;return db[_0x4abac6('0x7e')]['create'](_0x594dfc[_0x4abac6('0x65')],{})[_0x4abac6('0xbc')](respondWithResult(_0x4ce091,0xc9))['catch'](handleError(_0x4ce091,null));},exports[_0xff6e90('0x8c')]=function(_0x49c33a,_0x2bb71d){const _0x8d551f=_0xff6e90;return _0x49c33a[_0x8d551f('0x65')]['id']&&delete _0x49c33a[_0x8d551f('0x65')]['id'],db['WhatsappInteraction'][_0x8d551f('0x92')]({'where':{'id':_0x49c33a[_0x8d551f('0x5d')]['id']}})[_0x8d551f('0xbc')](handleEntityNotFound(_0x2bb71d,null))[_0x8d551f('0xbc')](saveUpdates(_0x49c33a[_0x8d551f('0x65')],null))[_0x8d551f('0xbc')](respondWithResult(_0x2bb71d,null))[_0x8d551f('0x9b')](handleError(_0x2bb71d,null));},exports[_0xff6e90('0x5')]=function(_0x40ca33,_0x4c6e06){const _0x1979ca=_0xff6e90;return db[_0x1979ca('0x7e')][_0x1979ca('0x92')]({'where':{'id':_0x40ca33[_0x1979ca('0x5d')]['id']}})[_0x1979ca('0xbc')](handleEntityNotFound(_0x4c6e06,null))[_0x1979ca('0xbc')](removeEntity(_0x4c6e06,null))[_0x1979ca('0x9b')](handleError(_0x4c6e06,null));},exports['describe']=function(_0x194028,_0x54683f){const _0x46bb61=_0xff6e90;return db[_0x46bb61('0x7e')][_0x46bb61('0xc9')]()[_0x46bb61('0xbc')](respondWithResult(_0x54683f,null))[_0x46bb61('0x9b')](handleError(_0x54683f,null));},exports[_0xff6e90('0x82')]=function(_0x554620,_0x108473){const _0x5b3693=_0xff6e90;return db[_0x5b3693('0xb2')][_0x5b3693('0x92')]({'where':{'id':_0x554620['params']['id']}})[_0x5b3693('0xbc')](function(_0x24ed25){const _0x2879ed=_0x5b3693;if(_0x24ed25)return _0x24ed25[_0x2879ed('0x82')](_0x554620[_0x2879ed('0x65')][_0x2879ed('0x71')],{'through':_[_0x2879ed('0x7f')](_0x554620['body'],[_0x2879ed('0x71'),'id'])});})[_0x5b3693('0xbc')](respondWithResult(_0x108473,null))[_0x5b3693('0x9b')](handleError(_0x108473,null));},exports[_0xff6e90('0xb1')]=function(_0x2502ba,_0x31d095){const _0x3cc6e9=_0xff6e90;let _0x3eb786={'raw':![],'where':{}};const _0xbdcfc1={},_0x3d1830={'count':0x0,'rows':[]};return db[_0x3cc6e9('0x7e')][_0x3cc6e9('0x92')]({'where':{'id':_0x2502ba['params']['id']}})[_0x3cc6e9('0xbc')](handleEntityNotFound(_0x31d095,null))[_0x3cc6e9('0xbc')](function(_0x1fa3a1){const _0x4709be=_0x3cc6e9;if(_0x1fa3a1){_0xbdcfc1[_0x4709be('0xad')]=_[_0x4709be('0xd3')](db[_0x4709be('0xb2')]['rawAttributes']),_0xbdcfc1[_0x4709be('0x59')]=_[_0x4709be('0xd3')](_0x2502ba[_0x4709be('0x59')]),_0xbdcfc1[_0x4709be('0x7b')]=_[_0x4709be('0x7c')](_0xbdcfc1[_0x4709be('0xad')],_0xbdcfc1[_0x4709be('0x59')]),_0x3eb786['attributes']=_['intersection'](_0xbdcfc1[_0x4709be('0xad')],qs['fields'](_0x2502ba[_0x4709be('0x59')][_0x4709be('0x62')])),_0x3eb786['attributes']=_0x3eb786[_0x4709be('0x85')]['length']?_0x3eb786[_0x4709be('0x85')]:_0xbdcfc1[_0x4709be('0xad')];typeof _0x2502ba[_0x4709be('0x59')][_0x4709be('0x58')]===_0x4709be('0x19')&&(_0x3eb786[_0x4709be('0xd9')]=qs[_0x4709be('0xd9')](_0x2502ba[_0x4709be('0x59')]['limit']),_0x3eb786[_0x4709be('0xae')]=qs[_0x4709be('0xae')](_0x2502ba[_0x4709be('0x59')][_0x4709be('0xae')]));_0x3eb786['order']=qs['sort'](_0x2502ba[_0x4709be('0x59')]['sort']),_0x3eb786['where']=qs[_0x4709be('0x7b')](_[_0x4709be('0xd7')](_0x2502ba[_0x4709be('0x59')],_0xbdcfc1[_0x4709be('0x7b')])),_0x3eb786[_0x4709be('0xa8')][_0x4709be('0xd')]=_0x1fa3a1['id'];_0x2502ba[_0x4709be('0x59')][_0x4709be('0x52')]&&(_0x3eb786[_0x4709be('0xa8')]=_[_0x4709be('0x25')](_0x3eb786[_0x4709be('0xa8')],{[Op['or']]:_[_0x4709be('0x86')](_0x3eb786['attributes'],function(_0x57c037){const _0x1eb8c0=_0x4709be,_0x215209={};return _0x215209[_0x57c037]={[Op[_0x1eb8c0('0xc2')]]:'%'+_0x2502ba[_0x1eb8c0('0x59')]['filter']+'%'},_0x215209;})}));if(_0x2502ba['query']['$gte']){const _0x948041=_0x2502ba['query'][_0x4709be('0x5f')]['split'](','),_0x22fb8={};_0x22fb8[_0x948041[0x0]]={[Op[_0x4709be('0xf')]]:moment(_0x948041[0x1])[_0x4709be('0x21')](_0x4709be('0xcd'))},_0x3eb786['where']=_[_0x4709be('0x25')](_0x3eb786[_0x4709be('0xa8')],_0x22fb8);}return _0x3eb786=_[_0x4709be('0x25')]({},_0x3eb786,_0x2502ba['options']),db[_0x4709be('0xb2')][_0x4709be('0x11')]({'where':_0x3eb786['where']})[_0x4709be('0xbc')](function(_0x547ebd){const _0x418902=_0x4709be;return _0x3d1830[_0x418902('0x11')]=_0x547ebd,_0x2502ba[_0x418902('0x59')][_0x418902('0x9d')]&&(_0x3eb786[_0x418902('0x0')]=[{'all':!![]}]),db[_0x418902('0xb2')][_0x418902('0x96')](_0x3eb786);})[_0x4709be('0xbc')](function(_0x15101f){const _0x260197=_0x4709be;return _0x3d1830[_0x260197('0xb7')]=_0x15101f,_0x3d1830;});}})[_0x3cc6e9('0xbc')](respondWithFilteredResult(_0x31d095,_0x3eb786))[_0x3cc6e9('0x9b')](handleError(_0x31d095,null));},exports[_0xff6e90('0xb8')]=function(_0x248188,_0x317766){const _0x37814e=_0xff6e90;return db['WhatsappInteraction'][_0x37814e('0x92')]({'where':{'id':_0x248188[_0x37814e('0x5d')]['id']}})[_0x37814e('0xbc')](function(_0x492988){const _0x5d5377=_0x37814e;if(_0x492988)return _0x492988[_0x5d5377('0x73')](_0x248188[_0x5d5377('0x65')][_0x5d5377('0x71')],{'through':_[_0x5d5377('0x7f')](_0x248188[_0x5d5377('0x65')],['ids','id'])})['then'](function(){const _0x33af9c=_0x5d5377;return db[_0x33af9c('0xbd')]['findAll']({'attributes':['id',_0x33af9c('0xcc'),_0x33af9c('0xa1')],'where':{'id':_0x248188['body'][_0x33af9c('0x71')]}});})[_0x5d5377('0xbc')](function(_0x46d182){const _0x45829c=_0x5d5377;return socket[_0x45829c('0x87')](_0x45829c('0xc6'),{'id':Number(_0x248188[_0x45829c('0x5d')]['id']),'tags':_0x46d182||[]}),{'id':Number(_0x248188['params']['id']),'tags':_0x46d182||[]};});})[_0x37814e('0xbc')](respondWithResult(_0x317766,null))[_0x37814e('0x9b')](handleError(_0x317766,null));},exports[_0xff6e90('0x2a')]=function(_0xaa69a5,_0x96f63c){const _0x57f7f7=_0xff6e90;return db[_0x57f7f7('0x7e')][_0x57f7f7('0x92')]({'where':{'id':_0xaa69a5[_0x57f7f7('0x5d')]['id']}})[_0x57f7f7('0xbc')](handleEntityNotFound(_0x96f63c,null))['then'](function(_0x8bb401){const _0x1a15e6=_0x57f7f7;if(_0x8bb401)return _0x8bb401['removeTags'](_0xaa69a5[_0x1a15e6('0x59')]['ids']);})['then'](respondWithStatusCode(_0x96f63c,null))[_0x57f7f7('0x9b')](handleError(_0x96f63c,null));},exports['download']=function(_0x48777b,_0x2754fa){const _0xd7ea0e=_0xff6e90,_0x3a3773=moment()[_0xd7ea0e('0x1')]()[_0xd7ea0e('0xd6')](),_0x978a86=path[_0xd7ea0e('0x67')](config[_0xd7ea0e('0x63')],'files','tmp'),_0x1b0b65=path[_0xd7ea0e('0x67')](config['root'],_0xd7ea0e('0xc7'),_0xd7ea0e('0xa0'),_0xd7ea0e('0xdd')),_0x229aae=path[_0xd7ea0e('0x67')](_0x978a86,_0x3a3773),_0x28ded7=util[_0xd7ea0e('0x21')](_0xd7ea0e('0xb'),_0x48777b[_0xd7ea0e('0x5d')]['id'],_0x3a3773),_0x273e5b=path[_0xd7ea0e('0x67')](_0x978a86,_0x28ded7),_0x3030ef=[];_0x3030ef[_0xd7ea0e('0xb3')]({'model':db[_0xd7ea0e('0x66')],'as':_0xd7ea0e('0x66'),'attributes':['id','fullname'],'raw':!![]}),_0x3030ef[_0xd7ea0e('0xb3')]({'model':db[_0xd7ea0e('0x40')],'as':_0xd7ea0e('0x88'),'attributes':['id',_0xd7ea0e('0x8d'),_0xd7ea0e('0x29')],'raw':!![]});_0x48777b['query'][_0xd7ea0e('0xdd')]&&_0x3030ef[_0xd7ea0e('0xb3')]({'model':db[_0xd7ea0e('0xde')],'as':_0xd7ea0e('0xde'),'raw':!![]});const _0x965e78=[{'model':db[_0xd7ea0e('0xb2')],'as':_0xd7ea0e('0x10'),'attributes':['id',_0xd7ea0e('0x65'),_0xd7ea0e('0x4f'),_0xd7ea0e('0x9a'),_0xd7ea0e('0x44'),_0xd7ea0e('0x89')],'include':_0x3030ef}];return _0x965e78[_0xd7ea0e('0xb3')]({'model':db['WhatsappAccount'],'as':_0xd7ea0e('0x3c'),'attributes':['id',_0xd7ea0e('0xcc')]}),_0x965e78['push']({'model':db['User'],'as':'Owner','attributes':['id','fullname']}),db[_0xd7ea0e('0x7e')][_0xd7ea0e('0x92')]({'where':{'id':_0x48777b[_0xd7ea0e('0x5d')]['id']},'include':_0x965e78})[_0xd7ea0e('0xbc')](handleEntityNotFound(_0x2754fa,null))[_0xd7ea0e('0xbc')](function(_0x15487a){const _0x19be80=_0xd7ea0e;if(_0x15487a){const _0x59d3c2=_0x15487a['get']({'plain':!![]});fs['mkdirSync'](_0x229aae);const _0xfd706c={'format':'A4','border':_0x19be80('0x9e'),'header':{'height':_0x19be80('0x7a'),'contents':{'first':_0x19be80('0x1f')}},'footer':{'height':_0x19be80('0x3e'),'contents':{'default':util[_0x19be80('0x21')]('\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[_0x19be80('0x21')](_0x19be80('0x16'),_0x19be80('0x94'),_0x59d3c2['id']),moment()['format'](_0x19be80('0x61'))[_0x19be80('0xd6')]())}}},_0x112e72={'channel':_0x19be80('0x94'),'account':_0x59d3c2[_0x19be80('0x3c')][_0x19be80('0xcc')],'agent':_0x59d3c2['Owner']?_0x59d3c2[_0x19be80('0x1a')][_0x19be80('0x36')]:'N.A.','createdAt':moment(_0x59d3c2[_0x19be80('0x4f')])[_0x19be80('0x21')]('YYYY-MM-DD\x20HH:mm:ss')[_0x19be80('0xd6')](),'closedAt':_0x59d3c2[_0x19be80('0x32')]?moment(_0x59d3c2[_0x19be80('0x35')])[_0x19be80('0x21')]('YYYY-MM-DD\x20HH:mm:ss')[_0x19be80('0xd6')]():'','disposition':_0x59d3c2[_0x19be80('0xa2')],'messages':_(_0x59d3c2[_0x19be80('0x10')])[_0x19be80('0x52')]({'secret':![]})[_0x19be80('0x86')](function(_0x745280){const _0x755ac3=_0x19be80;if(_0x745280['Attachment']){const _0x325bfb=path[_0x755ac3('0x67')](_0x1b0b65,_0x745280[_0x755ac3('0xde')][_0x755ac3('0xac')]);fs[_0x755ac3('0xc5')](_0x325bfb)&&fs[_0x755ac3('0x8e')](_0x325bfb)['pipe'](fs[_0x755ac3('0xbf')](path['join'](_0x229aae,_0x745280[_0x755ac3('0xde')][_0x755ac3('0xac')])));}return{'date':moment(_0x745280[_0x755ac3('0x4f')])['format'](_0x755ac3('0xcd'))[_0x755ac3('0xd6')](),'sender':_0x745280['direction']===_0x755ac3('0xbb')?_0x745280['User']?_0x745280[_0x755ac3('0x66')][_0x755ac3('0x36')]:'System':_0x745280[_0x755ac3('0x88')][_0x755ac3('0x8d')]+(_0x745280['Contact'][_0x755ac3('0x29')]?'\x20'+_0x745280['Contact'][_0x755ac3('0x29')]:''),'body':_0x745280[_0x755ac3('0xde')]?_0x745280['Attachment']['basename']:_0x745280[_0x755ac3('0x65')],'direction':_0x745280['direction']===_0x755ac3('0xbb')?'A':'C','secret':_0x745280[_0x755ac3('0x44')],'read':_0x745280['read'],'attachment':_0x745280[_0x755ac3('0xde')]};})[_0x19be80('0x64')]()};return ejs[_0x19be80('0x91')](path[_0x19be80('0x67')](config[_0x19be80('0x63')],_0x19be80('0xc7'),_0x19be80('0xcf'),_0x19be80('0x3d')),{'interaction':_0x112e72})[_0x19be80('0xbc')](function(_0x2b7191){return new Promise(function(_0xede5ed,_0x293cd0){const _0x1e95e1=a794_0x57d5;pdf['create'](_0x2b7191,_0xfd706c)[_0x1e95e1('0x6c')](path[_0x1e95e1('0x67')](_0x229aae,_0x1e95e1('0x79')+_0x59d3c2['id']+'-'+_0x3a3773+'.pdf'),function(_0x1f19d9,_0x4701c9){if(_0x1f19d9)return _0x293cd0(_0x1f19d9);_0xede5ed(_0x4701c9);});});})[_0x19be80('0xbc')](function(){const _0x309cb4=_0x19be80;return new Promise(function(_0x261141,_0x24e0b9){zipdir(_0x229aae,{'saveTo':_0x273e5b},function(_0x5994b2,_0x2061a3){if(_0x5994b2)return _0x24e0b9(_0x5994b2);return _0x261141(_0x2061a3);});})[_0x309cb4('0xbc')](function(){return new Promise(function(_0x16dfc9,_0x904c46){rimraf(_0x229aae,function(_0x273818){if(_0x273818)_0x904c46(_0x273818);return _0x16dfc9();});});})[_0x309cb4('0xbc')](function(){return _0x2754fa['download'](_0x273e5b,_0x28ded7,function(_0x1abae6){const _0x145523=a794_0x57d5;_0x1abae6?console[_0x145523('0x6a')](_0x145523('0xa'),_0x1abae6):fs['unlinkSync'](_0x273e5b);});});});}else return _0x2754fa[_0x19be80('0x3a')](0xc8);})[_0xd7ea0e('0x9b')](handleError(_0x2754fa,null));}; \ No newline at end of file +const a794_0x3382=['$lte','WhatsappAccount','disposition','c.email','Contact.lastName','whatsapp_accounts','cm_contacts','createReadStream','Contact.firstName','util','Contact.mobile','40px','tools_tags','color','WhatsappInteraction','TagIds','u.id\x20=\x20ui.UserId','secret','update','tag','c.firstName','json','UserId','resolve','\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','`unreadMessages`\x20>\x200','CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','catch','ui.WhatsappInteractionId\x20IN\x20?','i.WhatsappAccountId\x20IS\x20NULL','from','Attachment','start','Contact.email','null','select','err','a.id\x20=\x20i.WhatsappAccountId','index','t.id\x20=\x20it.TagId','i.id','filter','api','unreadMessages','union','.pdf','omit','map','a.key','Sequelize','firstName','./whatsappInteraction.socket','../../components/parsers/qs','end','sendStatus','rows','merge','N.A.','10px','getFullTextValue','user_has_whatsapp_interactions','c.mobile','lastName','then','rawAttributes','query','basename','get','options','attachments','c.lastName','parseSearch','CONCAT(c.firstName,\x20\x27\x20\x27,\x20c.lastName)\x20LIKE\x20?','fullname','create','attributes','i.*','DESC','\x27\x27\x27\x27','forEach','pipe','YYYY-MM-DD\x20HH:mm:ss','root','lodash','all','o.id\x20=\x20i.UserId','show','join','sqlOperator','left_join','squel','findOne','MATCH\x20(c.firstName,\x20c.lastName,\x20c.phone,\x20c.mobile,\x20c.fax,\x20c.email)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','$substring','server','i.WhatsappAccountId\x20IS\x20NOT\x20NULL','path','sequelize','includeAll','isEmpty','i.phone\x20LIKE\x20?','tmp','expr','toString','i.createdAt\x20BETWEEN\x20?\x20AND\x20?','isNumeric','whatsapp_messages','out','c.firstName\x20LIKE\x20?\x20OR\x20c.lastName\x20LIKE\x20?\x20OR\x20c.email\x20LIKE\x20?','order','u.fullname','t.id\x20IN\x20?','undefined','fields','direction','Contact.fax','QueryTypes','User','`\x20=\x200','emit','name','getMessages','limit','Messages','\x20IS\x20NULL','Contact.phone','CmContact','whatsappInteractionTags:save','intersection','findAll','WhatsappAccountId','Tags','getWhatsappAccounts','describe','status','having','parse','SELECT','html-pdf','Whatsapp','model','include','unlinkSync','length','filters','whatsapp_interactions','download','groupBy','createWriteStream','fieldName','nolimit','buildExpression','count','stack','Tag','downloadInteraction.html','Users','YYYY-MM-DD','pick','find','c.fax','30px','ids','views','conditions','moment','$gte','transcript-','ejs','params','Contact','mkdirSync','Account.mandatoryDisposition','offset','error','ContactId','SUM(me.read\x20=\x200\x20AND\x20me.direction\x20=\x20\x27in\x27)','../../components/parsers/advancedSearch','MATCH\x20(me.body)\x20AGAINST\x20(?\x20IN\x20BOOLEAN\x20MODE)','zip-dir','sort','body','gte','search','keys','send','push','destroy','createdAt','text','replace','user','where','rimraf','like','clone','split','addMessage','read','Account','format','System','\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','o.fullname','register','WhatsappMessage','GROUP_CONCAT(DISTINCT\x20t.id)','toFile','group','me.WhatsappInteractionId\x20=\x20i.id','field','operator','users','%s\x20#%d','it.WhatsappInteractionId\x20=\x20i.id','closed','files','removeTags','value','c.phone','Owner','Account.key','i.WhatsappAccountId\x20IN\x20?','type'];(function(_0x4db101,_0x3382e8){const _0x140169=function(_0x370ab2){while(--_0x370ab2){_0x4db101['push'](_0x4db101['shift']());}};_0x140169(++_0x3382e8);}(a794_0x3382,0x191));const a794_0x1401=function(_0x4db101,_0x3382e8){_0x4db101=_0x4db101-0x0;let _0x140169=a794_0x3382[_0x4db101];return _0x140169;};const _0x196df7=a794_0x1401;'use strict';const pdf=require(_0x196df7('0xb9')),rimraf=require(_0x196df7('0x10')),zipdir=require(_0x196df7('0x2')),moment=require(_0x196df7('0xd4')),util=require(_0x196df7('0x38')),path=require(_0x196df7('0x8f')),ejs=require(_0x196df7('0xd7')),fs=require('fs'),_=require(_0x196df7('0x82')),squel=require(_0x196df7('0x89')),{getSocket}=require('../../rediscache'),socket=getSocket(),qs=require(_0x196df7('0x63')),as=require(_0x196df7('0x0')),logger=require('../../config/logger')(_0x196df7('0x59')),config=require('../../config/environment'),db=require('../../mysqldb')['db'],{Op}=require(_0x196df7('0x90'));require(_0x196df7('0x62'))[_0x196df7('0x1b')](socket);function respondWithStatusCode(_0x370ab2,_0x4bc61b){return _0x4bc61b=_0x4bc61b||0xcc,function(_0x530408){const _0xcf6d38=a794_0x1401;if(_0x530408)return _0x370ab2[_0xcf6d38('0x65')](_0x4bc61b);return _0x370ab2[_0xcf6d38('0xb5')](_0x4bc61b)[_0xcf6d38('0x64')]();};}function respondWithResult(_0x10bd2f,_0x246aa7){return _0x246aa7=_0x246aa7||0xc8,function(_0x352e79){const _0x19cb4f=a794_0x1401;if(_0x352e79)return _0x10bd2f[_0x19cb4f('0xb5')](_0x246aa7)[_0x19cb4f('0x44')](_0x352e79);};}function respondWithFilteredResult(_0x42fa3c,_0x4b860b){return function(_0x3e61fa){const _0x2a7f8f=a794_0x1401;if(_0x3e61fa){const _0x262fc7=_0x3e61fa[_0x2a7f8f('0xc7')],_0x1ad7e9=_0x4b860b['offset'];let _0x2426e1=_0x4b860b[_0x2a7f8f('0xdc')]+_0x4b860b[_0x2a7f8f('0xa9')],_0x9d9462;return _0x2426e1>=_0x262fc7?(_0x2426e1=_0x262fc7,_0x9d9462=0xc8):_0x9d9462=0xce,_0x42fa3c[_0x2a7f8f('0xb5')](_0x9d9462),_0x42fa3c['set']('Content-Range',_0x1ad7e9+'-'+_0x2426e1+'/'+_0x262fc7)[_0x2a7f8f('0x44')](_0x3e61fa);}return null;};}function saveUpdates(_0x4dd9ae){return function(_0x44b04f){const _0x319e00=a794_0x1401;if(_0x44b04f)return _0x44b04f[_0x319e00('0x41')](_0x4dd9ae)['then'](function(_0x35e46f){return _0x35e46f;});return null;};}function removeEntity(_0x28e487){return function(_0xb7ad05){const _0x55cce2=a794_0x1401;if(_0xb7ad05)return _0xb7ad05[_0x55cce2('0xa')]()['then'](function(){const _0xe51db5=_0x55cce2;_0x28e487[_0xe51db5('0xb5')](0xcc)[_0xe51db5('0x64')]();});};}function handleEntityNotFound(_0x281f06){return function(_0x55b2a3){return!_0x55b2a3&&_0x281f06['sendStatus'](0x194),_0x55b2a3;};}function handleError(_0x54614f,_0x18c7a1){return _0x18c7a1=_0x18c7a1||0x1f4,function(_0x5b4cfd){const _0x5a19c6=a794_0x1401;logger[_0x5a19c6('0xdd')](_0x5b4cfd[_0x5a19c6('0xc8')]),_0x5b4cfd[_0x5a19c6('0xa7')]&&delete _0x5b4cfd[_0x5a19c6('0xa7')],_0x54614f['status'](_0x18c7a1)[_0x5a19c6('0x8')](_0x5b4cfd);};}function getInteractionUsers(_0x3123b7,_0x2f5817){return new Promise(function(_0x2f4abd,_0x3e5b71){const _0x19a1c9=a794_0x1401;try{_0x2f5817[_0x3123b7['id']]&&(_0x3123b7[_0x19a1c9('0xcb')]=_[_0x19a1c9('0x5e')](_0x2f5817[_0x3123b7['id']],function(_0x4fdd78){const _0x351d07=_0x19a1c9;return{'id':_0x4fdd78['id'],'fullname':_0x4fdd78[_0x351d07('0x78')]};}));}catch(_0x211d23){_0x3e5b71(_0x211d23);}_0x2f4abd(_0x3123b7);});}function getInteractionTags(_0x509b17,_0x24456d){return new Promise(function(_0x3aa0b9,_0x4336a8){const _0x24fb68=a794_0x1401;try{_0x509b17['TagIds']&&(_0x509b17[_0x24fb68('0xb2')]=[],_0x509b17[_0x24fb68('0x3e')][_0x24fb68('0x13')](',')[_0x24fb68('0x7e')](function(_0x4a368e){const _0x13c39c=_0x24fb68;_0x509b17[_0x13c39c('0xb2')][_0x13c39c('0x9')](_0x24456d[_0x4a368e]);})),delete _0x509b17[_0x24fb68('0x3e')];}catch(_0x44c40a){_0x4336a8(_0x44c40a);}_0x3aa0b9(_0x509b17);});}function updateWhatsappInteraction(_0x541ea7,_0x2cd13a,_0x4c97d5){return new Promise(function(_0x5d48e6,_0x60c772){const _0x1a6d6a=a794_0x1401;return getInteractionUsers(_0x541ea7,_0x4c97d5)[_0x1a6d6a('0x6e')](function(_0x4c28a1){return getInteractionTags(_0x4c28a1,_0x2cd13a);})[_0x1a6d6a('0x6e')](function(_0x5e8435){_0x5d48e6(_0x5e8435);})[_0x1a6d6a('0x4a')](function(_0x49e403){_0x60c772(_0x49e403);});});}exports[_0x196df7('0x55')]=function(_0x454e7e,_0x4e7139){const _0x4ffa12=_0x196df7,_0x223371={},_0x1a8daa={},_0x2a5b88={'count':0x0,'rows':[]},_0x3a3ed2=_[_0x4ffa12('0x5e')](db[_0x4ffa12('0x3d')][_0x4ffa12('0x6f')],function(_0x1f0986){const _0x499dc7=_0x4ffa12;return{'name':_0x1f0986[_0x499dc7('0xc4')],'type':_0x1f0986[_0x499dc7('0x2e')]['key']};});_0x1a8daa[_0x4ffa12('0xbb')]=_[_0x4ffa12('0x5e')](_0x3a3ed2,_0x4ffa12('0xa7')),_0x1a8daa[_0x4ffa12('0x70')]=_[_0x4ffa12('0x7')](_0x454e7e[_0x4ffa12('0x70')]),_0x1a8daa[_0x4ffa12('0xbf')]=_[_0x4ffa12('0xaf')](_0x1a8daa[_0x4ffa12('0xbb')],_0x1a8daa['query']),_0x223371[_0x4ffa12('0x7a')]=_[_0x4ffa12('0xaf')](_0x1a8daa[_0x4ffa12('0xbb')],qs[_0x4ffa12('0xa0')](_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0xa0')])),_0x223371['attributes']=_0x223371[_0x4ffa12('0x7a')][_0x4ffa12('0xbe')]?_0x223371[_0x4ffa12('0x7a')]:_0x1a8daa[_0x4ffa12('0xbb')];typeof _0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0xc5')]===_0x4ffa12('0x9f')&&(_0x223371[_0x4ffa12('0xa9')]=qs[_0x4ffa12('0xa9')](_0x454e7e[_0x4ffa12('0x70')]['limit']),_0x223371[_0x4ffa12('0xdc')]=qs['offset'](_0x454e7e['query'][_0x4ffa12('0xdc')]));_0x223371[_0x4ffa12('0x9c')]=qs['sort'](_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x3')]),_0x223371[_0x4ffa12('0xf')]=qs[_0x4ffa12('0xbf')](_[_0x4ffa12('0xcd')](_0x454e7e[_0x4ffa12('0x70')],_0x1a8daa[_0x4ffa12('0xbf')]),_0x3a3ed2);let _0x48a39f=[];const _0x559d26=squel[_0x4ffa12('0x52')]()[_0x4ffa12('0x21')]('id')[_0x4ffa12('0x21')]('name')[_0x4ffa12('0x21')]('color')[_0x4ffa12('0x4d')]('tools_tags'),_0xac7179=squel[_0x4ffa12('0x52')]()[_0x4ffa12('0x21')]('u.id')['field'](_0x4ffa12('0x9d'))['field']('ui.WhatsappInteractionId')[_0x4ffa12('0x4d')](_0x4ffa12('0x6b'),'ui')[_0x4ffa12('0x88')](_0x4ffa12('0x23'),'u',_0x4ffa12('0x3f')),_0x248f17=squel[_0x4ffa12('0x52')]()[_0x4ffa12('0x4d')](_0x4ffa12('0xc0'),'i')[_0x4ffa12('0x88')](_0x4ffa12('0x35'),'c','c.id\x20=\x20i.ContactId\x20AND\x20c.deletedAt\x20IS\x20NULL')[_0x4ffa12('0x88')](_0x4ffa12('0x23'),'o',_0x4ffa12('0x84'))['left_join'](_0x4ffa12('0x34'),'a',_0x4ffa12('0x54'))[_0x4ffa12('0x88')](_0x4ffa12('0x99'),'me',_0x4ffa12('0x20'))[_0x4ffa12('0x88')]('whatsapp_interaction_has_tags','it',_0x4ffa12('0x25'))[_0x4ffa12('0x88')](_0x4ffa12('0x3b'),'t',_0x4ffa12('0x56')),_0x4d0de1=squel[_0x4ffa12('0x95')]();let _0x5e758b=[];const _0x29b785=squel['expr']();let _0x1027ab;if(_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x6')]){_0x1027ab=as[_0x4ffa12('0x76')](_0x454e7e['query'][_0x4ffa12('0x6')]);const _0xd48a87=_0x1027ab[_0x4ffa12('0x87')];for(let _0x1dd7d6=0x0;_0x1dd7d6<_0x1027ab['conditions']['length'];_0x1dd7d6++){const _0x186b94=_0x1027ab[_0x4ffa12('0xd3')][_0x1dd7d6],_0x1981a4='i';let _0x54eca0,_0x204328=_['find'](_0x3a3ed2,[_0x4ffa12('0xa7'),_0x186b94[_0x4ffa12('0x21')]]);if(!_0x204328)switch(_0x186b94[_0x4ffa12('0x21')]){case _0x4ffa12('0x5a'):_0x186b94[_0x4ffa12('0x29')]==0x1?_0x248f17[_0x4ffa12('0xb6')]('`'+_0x186b94['field']+_0x4ffa12('0xa5')):_0x248f17['having']('`'+_0x186b94[_0x4ffa12('0x21')]+'`\x20>\x200');break;case _0x4ffa12('0xd9'):if(_0x186b94[_0x4ffa12('0x22')]===_0x4ffa12('0x8c')){if(_0x186b94[_0x4ffa12('0x29')][_0x4ffa12('0x13')]('\x20')[_0x4ffa12('0xbe')]>0x1)_0x4d0de1[_0xd48a87](_0x4ffa12('0x8b'),qs['getFullTextValue'](_0x186b94[_0x4ffa12('0x29')]),null);else{const _0x1f6641='%'+_0x186b94[_0x4ffa12('0x29')]+'%';_0x4d0de1[_0xd48a87](_0x4ffa12('0x9b'),_0x1f6641,_0x1f6641,_0x1f6641);}}else _0x204328=_[_0x4ffa12('0xce')](_0x3a3ed2,[_0x4ffa12('0xa7'),_0x4ffa12('0xde')]),_0x186b94['field']=_0x4ffa12('0xde'),_0x54eca0=as[_0x4ffa12('0xc6')](_0x1981a4,_0x204328[_0x4ffa12('0x2e')],_0x186b94),_0x4d0de1[_0xd48a87](_0x54eca0[_0x4ffa12('0xc')],_0x54eca0[_0x4ffa12('0x29')][_0x4ffa12('0x4f')],_0x54eca0['value'][_0x4ffa12('0x64')]);break;case _0x4ffa12('0xc9'):{const _0x48d171=_0x186b94[_0x4ffa12('0x29')]['split'](',')[_0x4ffa12('0x5e')](function(_0x6da234){return Number(_0x6da234);});_0x48d171[_0x4ffa12('0x7e')](function(_0x1d86b5){_0x29b785['or']('CONCAT(\x27,\x27,\x20`TagIds`,\x20\x27,\x27)\x20LIKE\x20?','%,'+_0x1d86b5+',%');}),_0x5e758b=_[_0x4ffa12('0x5b')](_0x5e758b,_0x48d171);}break;case _0x4ffa12('0xa4'):_0x186b94[_0x4ffa12('0x22')]==='$substring'?_0x4d0de1[_0xd48a87]('CONCAT_WS(\x27\x20\x27,\x20o.name,\x20o.fullname)\x20LIKE\x20?','%'+_0x186b94[_0x4ffa12('0x29')]+'%',null):(_0x204328=_['find'](_0x3a3ed2,[_0x4ffa12('0xa7'),'UserId']),_0x186b94['field']=_0x4ffa12('0x45'),_0x54eca0=as[_0x4ffa12('0xc6')](_0x1981a4,_0x204328['type'],_0x186b94),_0x4d0de1[_0xd48a87](_0x54eca0[_0x4ffa12('0xc')],_0x54eca0['value'][_0x4ffa12('0x4f')],_0x54eca0[_0x4ffa12('0x29')][_0x4ffa12('0x64')]));break;case _0x4ffa12('0x4'):_0x54eca0=as[_0x4ffa12('0xc6')]('me',null,_0x186b94),_0x4d0de1[_0xd48a87](_0x54eca0[_0x4ffa12('0xc')],_0x54eca0[_0x4ffa12('0x29')][_0x4ffa12('0x4f')],_0x54eca0['value']['end']);break;}else _0x54eca0=as[_0x4ffa12('0xc6')](_0x1981a4,_0x204328[_0x4ffa12('0x2e')],_0x186b94),_0x4d0de1[_0xd48a87](_0x54eca0[_0x4ffa12('0xc')],_0x54eca0[_0x4ffa12('0x29')]['start'],_0x54eca0['value'][_0x4ffa12('0x64')]);}}else{const _0xad727d=_(_0x454e7e['query'])[_0x4ffa12('0x7')]()['map'](function(_0x10e8be){const _0x58bff2=_0x4ffa12;return _['some'](_0x3a3ed2,[_0x58bff2('0xa7'),_0x10e8be])?_0x10e8be:undefined;})['compact']()[_0x4ffa12('0x29')]();!_['isEmpty'](_0xad727d)&&_0xad727d['forEach'](function(_0x52ac90){const _0x521cce=_0x4ffa12;if(_0x52ac90===_0x521cce('0xb1'))_0x248f17['where']('i.WhatsappAccountId\x20IN\x20?',[]['concat'](_0x454e7e[_0x521cce('0x70')][_0x52ac90]));else{if(_0x52ac90===_0x521cce('0xb')){const _0x1a37c9=JSON[_0x521cce('0xb7')](_0x454e7e[_0x521cce('0x70')][_0x52ac90])[_0x521cce('0xd5')],_0x3cd9f2=JSON[_0x521cce('0xb7')](_0x454e7e[_0x521cce('0x70')][_0x52ac90])[_0x521cce('0x2f')];_0x248f17['where'](_0x521cce('0x97'),_0x1a37c9,_0x3cd9f2);}else _0x454e7e[_0x521cce('0x70')][_0x52ac90]===_0x521cce('0x51')?_0x248f17[_0x521cce('0xf')]('i.'+_0x52ac90+_0x521cce('0xab')):_0x248f17[_0x521cce('0xf')]('i.'+_0x52ac90+'\x20=\x20?',_0x454e7e[_0x521cce('0x70')][_0x52ac90]);}});_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x15')]&&(_0x454e7e['query'][_0x4ffa12('0x15')]==0x1?_0x248f17[_0x4ffa12('0xb6')]('`unreadMessages`\x20=\x200'):_0x248f17[_0x4ffa12('0xb6')](_0x4ffa12('0x48')));_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x42')]&&(_0x5e758b=_['isArray'](_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x42')])?_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x42')]:new Array(_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x42')]),_0x5e758b[_0x4ffa12('0x7e')](function(_0x5b6198){const _0x2e93a3=_0x4ffa12;_0x29b785['or'](_0x2e93a3('0x49'),'%,'+_0x5b6198+',%');}));if(_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x58')]){const _0x53c7a6=_0x454e7e[_0x4ffa12('0x70')][_0x4ffa12('0x58')][_0x4ffa12('0xd')]('\x5c','\x5c\x5c')['replace']('\x27\x27',_0x4ffa12('0x7d'));qs[_0x4ffa12('0x98')](_0x53c7a6)?_0x4d0de1['or']('i.id\x20LIKE\x20?',_0x53c7a6+'%')['or'](_0x4ffa12('0x93'),_0x53c7a6+'%'):_0x4d0de1['or'](_0x4ffa12('0x1'),qs[_0x4ffa12('0x6a')](_0x53c7a6))['or'](_0x4ffa12('0x77'),_0x53c7a6+'%');}}_0x248f17[_0x4ffa12('0xf')](_0x4d0de1),_0x248f17[_0x4ffa12('0x1f')](_0x4ffa12('0x57'));let _0x254922={'type':db[_0x4ffa12('0x60')][_0x4ffa12('0xa3')][_0x4ffa12('0xb8')],'raw':!![]};const _0x336dfc=_0x248f17[_0x4ffa12('0x12')]();_0x336dfc[_0x4ffa12('0x21')](_0x4ffa12('0x57')),_0x336dfc[_0x4ffa12('0x21')](_0x4ffa12('0xdf'),_0x4ffa12('0x5a')),_0x223371[_0x4ffa12('0x9c')]&&_0x223371['order']['forEach'](function(_0xfc1a4e){const _0x11c388=_0x4ffa12;_0x248f17[_0x11c388('0x9c')]('i.'+_0xfc1a4e[0x0],_0xfc1a4e[0x1]===_0x11c388('0x7c')?![]:!![]);}),!_[_0x4ffa12('0x92')](_0x5e758b)&&(_0x248f17[_0x4ffa12('0xb6')](_0x29b785),_0x336dfc['where'](_0x4ffa12('0x9e'),_0x5e758b)),Promise[_0x4ffa12('0x46')]()[_0x4ffa12('0x6e')](function(){const _0x3bc843=_0x4ffa12;if(!_0x1027ab){if(_0x454e7e['query'][_0x3bc843('0xb1')]||_0x454e7e['query']['journey'])return;_0x336dfc[_0x3bc843('0xf')](_0x3bc843('0x8e')),_0x248f17[_0x3bc843('0xf')](_0x3bc843('0x8e'));return;}return _0x454e7e[_0x3bc843('0xe')][_0x3bc843('0xb3')]({'attributes':['id'],'raw':!![]})['then'](function(_0x577c10){const _0x28e79a=_0x3bc843;_['isEmpty'](_0x577c10)?(_0x336dfc[_0x28e79a('0xf')](_0x28e79a('0x4c')),_0x248f17[_0x28e79a('0xf')]('i.WhatsappAccountId\x20IS\x20NULL')):(_0x336dfc['where'](_0x28e79a('0x2d'),_['map'](_0x577c10,'id')),_0x248f17[_0x28e79a('0xf')](_0x28e79a('0x2d'),_[_0x28e79a('0x5e')](_0x577c10,'id')));});})[_0x4ffa12('0x6e')](function(){const _0x1a7360=_0x4ffa12;db[_0x1a7360('0x90')][_0x1a7360('0x70')](_0x336dfc[_0x1a7360('0x96')](),_0x254922)[_0x1a7360('0x6e')](function(_0xc5b10){const _0x1ee216=_0x1a7360;_0x2a5b88[_0x1ee216('0xc7')]=_0xc5b10[_0x1ee216('0xbe')];if(_0x2a5b88['count']===0x0)return[];return db[_0x1ee216('0x90')][_0x1ee216('0x70')](_0x559d26[_0x1ee216('0x96')](),_0x254922)[_0x1ee216('0x6e')](function(_0x535560){const _0x29fabf=_0x1ee216;_0x48a39f=_['keyBy'](_0x535560,'id'),_0x254922=_[_0x29fabf('0x67')](_0x254922,{'model':db['WhatsappInteraction'],'mapToModel':!![],'raw':!![],'nest':!![]});_0x454e7e[_0x29fabf('0x70')]['fields']?_0x223371['attributes'][_0x29fabf('0x7e')](function(_0x1545f8){const _0x4f63ef=_0x29fabf;_0x248f17[_0x4f63ef('0x21')]('i.'+_0x1545f8);}):(_0x248f17[_0x29fabf('0x21')](_0x29fabf('0xdf'),_0x29fabf('0x5a')),_0x248f17[_0x29fabf('0x21')](_0x29fabf('0x5f'),_0x29fabf('0x2c')),_0x248f17['field']('a.mandatoryDisposition',_0x29fabf('0xdb')),_0x248f17[_0x29fabf('0x21')](_0x29fabf('0x7b')),_0x248f17[_0x29fabf('0x21')](_0x29fabf('0x43'),_0x29fabf('0x37')),_0x248f17[_0x29fabf('0x21')](_0x29fabf('0x75'),_0x29fabf('0x33')),_0x248f17[_0x29fabf('0x21')](_0x29fabf('0x32'),_0x29fabf('0x50')),_0x248f17['field'](_0x29fabf('0x2a'),_0x29fabf('0xac')),_0x248f17[_0x29fabf('0x21')](_0x29fabf('0x6c'),_0x29fabf('0x39')),_0x248f17[_0x29fabf('0x21')](_0x29fabf('0xcf'),_0x29fabf('0xa2')),_0x248f17['field'](_0x29fabf('0x1a'),'Owner.fullname'),_0x248f17[_0x29fabf('0x21')]('o.internal','Owner.internal'),_0x248f17[_0x29fabf('0x21')](_0x29fabf('0x1d'),'TagIds'));if(_0x223371[_0x29fabf('0xa9')])_0x248f17[_0x29fabf('0xa9')](_0x223371[_0x29fabf('0xa9')]);if(_0x223371[_0x29fabf('0xdc')])_0x248f17[_0x29fabf('0xdc')](_0x223371[_0x29fabf('0xdc')]);return db[_0x29fabf('0x90')][_0x29fabf('0x70')](_0x248f17[_0x29fabf('0x96')](),_0x254922);})[_0x1ee216('0x6e')](function(_0xe5fd66){const _0x201023=_0x1ee216;return _0xac7179[_0x201023('0xf')](_0x201023('0x4b'),_[_0x201023('0x5e')](_0xe5fd66,'id')),db[_0x201023('0x90')][_0x201023('0x70')](_0xac7179['toString'](),_0x254922)[_0x201023('0x6e')](function(_0x862a1c){const _0x1e58d3=_0x201023,_0x5affd4=_[_0x1e58d3('0xc2')](_0x862a1c,'WhatsappInteractionId'),_0x3b6120=[];return _0xe5fd66[_0x1e58d3('0x7e')](function(_0x4ede3c){const _0xa07295=_0x1e58d3;_0x3b6120[_0xa07295('0x9')](updateWhatsappInteraction(_0x4ede3c,_0x48a39f,_0x5affd4));}),Promise[_0x1e58d3('0x83')](_0x3b6120);});});})[_0x1a7360('0x6e')](function(_0x249b3c){const _0x5102c3=_0x1a7360;return _0x2a5b88[_0x5102c3('0x66')]=_0x249b3c,_0x2a5b88;})[_0x1a7360('0x6e')](respondWithFilteredResult(_0x4e7139,_0x223371));})[_0x4ffa12('0x4a')](handleError(_0x4e7139,null));},exports[_0x196df7('0x85')]=function(_0x110d87,_0x4953f1){const _0x209a82=_0x196df7;let _0x123200={'raw':![],'where':{'id':_0x110d87[_0x209a82('0xd8')]['id']}};const _0xa79ee={};return _0xa79ee['model']=_[_0x209a82('0x7')](db[_0x209a82('0x3d')]['rawAttributes']),_0xa79ee[_0x209a82('0x70')]=_['keys'](_0x110d87[_0x209a82('0x70')]),_0xa79ee['filters']=_[_0x209a82('0xaf')](_0xa79ee[_0x209a82('0xbb')],_0xa79ee[_0x209a82('0x70')]),_0x123200['attributes']=_[_0x209a82('0xaf')](_0xa79ee['model'],qs['fields'](_0x110d87['query'][_0x209a82('0xa0')])),_0x123200['attributes']=_0x123200[_0x209a82('0x7a')][_0x209a82('0xbe')]?_0x123200['attributes']:_0xa79ee[_0x209a82('0xbb')],_0x110d87[_0x209a82('0x70')][_0x209a82('0x91')]&&(_0x123200[_0x209a82('0xbc')]=[{'all':!![]}]),_0x123200=_['merge']({},_0x123200,_0x110d87[_0x209a82('0x73')]),db[_0x209a82('0x3d')][_0x209a82('0x8a')](_0x123200)['then'](handleEntityNotFound(_0x4953f1,null))[_0x209a82('0x6e')](respondWithResult(_0x4953f1,null))['catch'](handleError(_0x4953f1,null));},exports[_0x196df7('0x79')]=function(_0x16723f,_0x3ff011){const _0x389cc7=_0x196df7;return db['WhatsappInteraction'][_0x389cc7('0x79')](_0x16723f[_0x389cc7('0x4')],{})[_0x389cc7('0x6e')](respondWithResult(_0x3ff011,0xc9))[_0x389cc7('0x4a')](handleError(_0x3ff011,null));},exports[_0x196df7('0x41')]=function(_0x5218f2,_0x56aeb3){const _0x24107d=_0x196df7;return _0x5218f2[_0x24107d('0x4')]['id']&&delete _0x5218f2[_0x24107d('0x4')]['id'],db['WhatsappInteraction'][_0x24107d('0x8a')]({'where':{'id':_0x5218f2[_0x24107d('0xd8')]['id']}})[_0x24107d('0x6e')](handleEntityNotFound(_0x56aeb3,null))[_0x24107d('0x6e')](saveUpdates(_0x5218f2[_0x24107d('0x4')],null))[_0x24107d('0x6e')](respondWithResult(_0x56aeb3,null))[_0x24107d('0x4a')](handleError(_0x56aeb3,null));},exports[_0x196df7('0xa')]=function(_0x326a73,_0x45ca9f){const _0x557f02=_0x196df7;return db['WhatsappInteraction'][_0x557f02('0x8a')]({'where':{'id':_0x326a73['params']['id']}})[_0x557f02('0x6e')](handleEntityNotFound(_0x45ca9f,null))['then'](removeEntity(_0x45ca9f,null))[_0x557f02('0x4a')](handleError(_0x45ca9f,null));},exports['describe']=function(_0x42e2f9,_0x34874e){const _0x57b7fe=_0x196df7;return db[_0x57b7fe('0x3d')][_0x57b7fe('0xb4')]()[_0x57b7fe('0x6e')](respondWithResult(_0x34874e,null))[_0x57b7fe('0x4a')](handleError(_0x34874e,null));},exports[_0x196df7('0x14')]=function(_0x50816e,_0x561e9e){const _0x3b6a82=_0x196df7;return db['WhatsappMessage'][_0x3b6a82('0x8a')]({'where':{'id':_0x50816e[_0x3b6a82('0xd8')]['id']}})['then'](function(_0x452dc4){const _0x5f0f47=_0x3b6a82;if(_0x452dc4)return _0x452dc4[_0x5f0f47('0x14')](_0x50816e[_0x5f0f47('0x4')][_0x5f0f47('0xd1')],{'through':_[_0x5f0f47('0x5d')](_0x50816e['body'],[_0x5f0f47('0xd1'),'id'])});})['then'](respondWithResult(_0x561e9e,null))['catch'](handleError(_0x561e9e,null));},exports[_0x196df7('0xa8')]=function(_0x470a44,_0x46bee2){const _0x31d3a9=_0x196df7;let _0x522fa4={'raw':![],'where':{}};const _0x533f7b={},_0x35a5df={'count':0x0,'rows':[]};return db[_0x31d3a9('0x3d')][_0x31d3a9('0x8a')]({'where':{'id':_0x470a44[_0x31d3a9('0xd8')]['id']}})[_0x31d3a9('0x6e')](handleEntityNotFound(_0x46bee2,null))[_0x31d3a9('0x6e')](function(_0x1e34b5){const _0x1d4ee6=_0x31d3a9;if(_0x1e34b5){_0x533f7b[_0x1d4ee6('0xbb')]=_[_0x1d4ee6('0x7')](db[_0x1d4ee6('0x1c')][_0x1d4ee6('0x6f')]),_0x533f7b[_0x1d4ee6('0x70')]=_[_0x1d4ee6('0x7')](_0x470a44['query']),_0x533f7b[_0x1d4ee6('0xbf')]=_[_0x1d4ee6('0xaf')](_0x533f7b[_0x1d4ee6('0xbb')],_0x533f7b[_0x1d4ee6('0x70')]),_0x522fa4[_0x1d4ee6('0x7a')]=_[_0x1d4ee6('0xaf')](_0x533f7b[_0x1d4ee6('0xbb')],qs[_0x1d4ee6('0xa0')](_0x470a44['query']['fields'])),_0x522fa4[_0x1d4ee6('0x7a')]=_0x522fa4['attributes'][_0x1d4ee6('0xbe')]?_0x522fa4[_0x1d4ee6('0x7a')]:_0x533f7b['model'];typeof _0x470a44['query']['nolimit']===_0x1d4ee6('0x9f')&&(_0x522fa4[_0x1d4ee6('0xa9')]=qs[_0x1d4ee6('0xa9')](_0x470a44[_0x1d4ee6('0x70')][_0x1d4ee6('0xa9')]),_0x522fa4['offset']=qs[_0x1d4ee6('0xdc')](_0x470a44['query']['offset']));_0x522fa4[_0x1d4ee6('0x9c')]=qs[_0x1d4ee6('0x3')](_0x470a44[_0x1d4ee6('0x70')][_0x1d4ee6('0x3')]),_0x522fa4[_0x1d4ee6('0xf')]=qs[_0x1d4ee6('0xbf')](_[_0x1d4ee6('0xcd')](_0x470a44[_0x1d4ee6('0x70')],_0x533f7b['filters'])),_0x522fa4[_0x1d4ee6('0xf')]['WhatsappInteractionId']=_0x1e34b5['id'];_0x470a44[_0x1d4ee6('0x70')][_0x1d4ee6('0x58')]&&(_0x522fa4['where']=_[_0x1d4ee6('0x67')](_0x522fa4[_0x1d4ee6('0xf')],{[Op['or']]:_[_0x1d4ee6('0x5e')](_0x522fa4[_0x1d4ee6('0x7a')],function(_0x47fd1e){const _0x450d13=_0x1d4ee6,_0x20f682={};return _0x20f682[_0x47fd1e]={[Op[_0x450d13('0x11')]]:'%'+_0x470a44['query'][_0x450d13('0x58')]+'%'},_0x20f682;})}));if(_0x470a44[_0x1d4ee6('0x70')]['$gte']){const _0x35ac79=_0x470a44[_0x1d4ee6('0x70')][_0x1d4ee6('0xd5')][_0x1d4ee6('0x13')](','),_0x14bd01={};_0x14bd01[_0x35ac79[0x0]]={[Op[_0x1d4ee6('0x5')]]:moment(_0x35ac79[0x1])['format'](_0x1d4ee6('0x80'))},_0x522fa4[_0x1d4ee6('0xf')]=_[_0x1d4ee6('0x67')](_0x522fa4[_0x1d4ee6('0xf')],_0x14bd01);}return _0x522fa4=_[_0x1d4ee6('0x67')]({},_0x522fa4,_0x470a44[_0x1d4ee6('0x73')]),db[_0x1d4ee6('0x1c')][_0x1d4ee6('0xc7')]({'where':_0x522fa4[_0x1d4ee6('0xf')]})[_0x1d4ee6('0x6e')](function(_0x5c542e){const _0x318c4a=_0x1d4ee6;return _0x35a5df['count']=_0x5c542e,_0x470a44[_0x318c4a('0x70')][_0x318c4a('0x91')]&&(_0x522fa4[_0x318c4a('0xbc')]=[{'all':!![]}]),db['WhatsappMessage'][_0x318c4a('0xb0')](_0x522fa4);})[_0x1d4ee6('0x6e')](function(_0x33e837){const _0x4bf4f3=_0x1d4ee6;return _0x35a5df[_0x4bf4f3('0x66')]=_0x33e837,_0x35a5df;});}})['then'](respondWithFilteredResult(_0x46bee2,_0x522fa4))[_0x31d3a9('0x4a')](handleError(_0x46bee2,null));},exports['addTags']=function(_0x2222ae,_0x2384c3){const _0x1ef6fe=_0x196df7;return db[_0x1ef6fe('0x3d')]['findOne']({'where':{'id':_0x2222ae['params']['id']}})[_0x1ef6fe('0x6e')](function(_0x1f5edf){const _0x3074a2=_0x1ef6fe;if(_0x1f5edf)return _0x1f5edf['setTags'](_0x2222ae[_0x3074a2('0x4')]['ids'],{'through':_[_0x3074a2('0x5d')](_0x2222ae[_0x3074a2('0x4')],[_0x3074a2('0xd1'),'id'])})[_0x3074a2('0x6e')](function(){const _0x4f6004=_0x3074a2;return db[_0x4f6004('0xc9')][_0x4f6004('0xb0')]({'attributes':['id',_0x4f6004('0xa7'),_0x4f6004('0x3c')],'where':{'id':_0x2222ae[_0x4f6004('0x4')][_0x4f6004('0xd1')]}});})[_0x3074a2('0x6e')](function(_0x3331c3){const _0x196cdd=_0x3074a2;return socket[_0x196cdd('0xa6')](_0x196cdd('0xae'),{'id':Number(_0x2222ae['params']['id']),'tags':_0x3331c3||[]}),{'id':Number(_0x2222ae['params']['id']),'tags':_0x3331c3||[]};});})[_0x1ef6fe('0x6e')](respondWithResult(_0x2384c3,null))['catch'](handleError(_0x2384c3,null));},exports[_0x196df7('0x28')]=function(_0x124851,_0x1cf84b){const _0x45e9cf=_0x196df7;return db[_0x45e9cf('0x3d')][_0x45e9cf('0x8a')]({'where':{'id':_0x124851[_0x45e9cf('0xd8')]['id']}})['then'](handleEntityNotFound(_0x1cf84b,null))[_0x45e9cf('0x6e')](function(_0x9099fa){const _0x5104ea=_0x45e9cf;if(_0x9099fa)return _0x9099fa[_0x5104ea('0x28')](_0x124851[_0x5104ea('0x70')]['ids']);})[_0x45e9cf('0x6e')](respondWithStatusCode(_0x1cf84b,null))['catch'](handleError(_0x1cf84b,null));},exports[_0x196df7('0xc1')]=function(_0x12d77d,_0x3a50fe){const _0x3bed98=_0x196df7,_0x49eb6a=moment()['unix']()[_0x3bed98('0x96')](),_0x296ed7=path[_0x3bed98('0x86')](config[_0x3bed98('0x81')],'files',_0x3bed98('0x94')),_0x41e95c=path[_0x3bed98('0x86')](config[_0x3bed98('0x81')],_0x3bed98('0x8d'),_0x3bed98('0x27'),_0x3bed98('0x74')),_0x58a1c1=path[_0x3bed98('0x86')](_0x296ed7,_0x49eb6a),_0xddc9b4=util[_0x3bed98('0x17')]('transcript-%d-%s.zip',_0x12d77d[_0x3bed98('0xd8')]['id'],_0x49eb6a),_0x119bad=path[_0x3bed98('0x86')](_0x296ed7,_0xddc9b4),_0x2d2012=[];_0x2d2012[_0x3bed98('0x9')]({'model':db[_0x3bed98('0xa4')],'as':'User','attributes':['id',_0x3bed98('0x78')],'raw':!![]}),_0x2d2012[_0x3bed98('0x9')]({'model':db[_0x3bed98('0xad')],'as':_0x3bed98('0xd9'),'attributes':['id',_0x3bed98('0x61'),_0x3bed98('0x6d')],'raw':!![]});_0x12d77d[_0x3bed98('0x70')][_0x3bed98('0x74')]&&_0x2d2012['push']({'model':db[_0x3bed98('0x4e')],'as':_0x3bed98('0x4e'),'raw':!![]});const _0x4420b4=[{'model':db[_0x3bed98('0x1c')],'as':_0x3bed98('0xaa'),'attributes':['id',_0x3bed98('0x4'),_0x3bed98('0xb'),_0x3bed98('0xa1'),'secret','read'],'include':_0x2d2012}];return _0x4420b4['push']({'model':db[_0x3bed98('0x30')],'as':_0x3bed98('0x16'),'attributes':['id',_0x3bed98('0xa7')]}),_0x4420b4[_0x3bed98('0x9')]({'model':db['User'],'as':_0x3bed98('0x2b'),'attributes':['id',_0x3bed98('0x78')]}),db[_0x3bed98('0x3d')][_0x3bed98('0x8a')]({'where':{'id':_0x12d77d[_0x3bed98('0xd8')]['id']},'include':_0x4420b4})['then'](handleEntityNotFound(_0x3a50fe,null))[_0x3bed98('0x6e')](function(_0x1efb33){const _0x3c4386=_0x3bed98;if(_0x1efb33){const _0x31395b=_0x1efb33[_0x3c4386('0x72')]({'plain':!![]});fs[_0x3c4386('0xda')](_0x58a1c1);const _0x3a7487={'format':'A4','border':_0x3c4386('0x69'),'header':{'height':_0x3c4386('0x3a'),'contents':{'first':_0x3c4386('0x19')}},'footer':{'height':_0x3c4386('0xd0'),'contents':{'default':util[_0x3c4386('0x17')](_0x3c4386('0x47'),util[_0x3c4386('0x17')](_0x3c4386('0x24'),_0x3c4386('0xba'),_0x31395b['id']),moment()[_0x3c4386('0x17')](_0x3c4386('0xcc'))[_0x3c4386('0x96')]())}}},_0x1d119b={'channel':_0x3c4386('0xba'),'account':_0x31395b[_0x3c4386('0x16')][_0x3c4386('0xa7')],'agent':_0x31395b[_0x3c4386('0x2b')]?_0x31395b[_0x3c4386('0x2b')][_0x3c4386('0x78')]:_0x3c4386('0x68'),'createdAt':moment(_0x31395b['createdAt'])[_0x3c4386('0x17')](_0x3c4386('0x80'))[_0x3c4386('0x96')](),'closedAt':_0x31395b[_0x3c4386('0x26')]?moment(_0x31395b['closedAt'])['format'](_0x3c4386('0x80'))['toString']():'','disposition':_0x31395b[_0x3c4386('0x31')],'messages':_(_0x31395b[_0x3c4386('0xaa')])[_0x3c4386('0x58')]({'secret':![]})[_0x3c4386('0x5e')](function(_0x5b4d74){const _0x4c1055=_0x3c4386;if(_0x5b4d74['Attachment']){const _0x5f6938=path['join'](_0x41e95c,_0x5b4d74[_0x4c1055('0x4e')][_0x4c1055('0x71')]);fs['existsSync'](_0x5f6938)&&fs[_0x4c1055('0x36')](_0x5f6938)[_0x4c1055('0x7f')](fs[_0x4c1055('0xc3')](path['join'](_0x58a1c1,_0x5b4d74[_0x4c1055('0x4e')][_0x4c1055('0x71')])));}return{'date':moment(_0x5b4d74[_0x4c1055('0xb')])[_0x4c1055('0x17')]('YYYY-MM-DD\x20HH:mm:ss')[_0x4c1055('0x96')](),'sender':_0x5b4d74['direction']===_0x4c1055('0x9a')?_0x5b4d74[_0x4c1055('0xa4')]?_0x5b4d74[_0x4c1055('0xa4')][_0x4c1055('0x78')]:_0x4c1055('0x18'):_0x5b4d74[_0x4c1055('0xd9')][_0x4c1055('0x61')]+(_0x5b4d74[_0x4c1055('0xd9')][_0x4c1055('0x6d')]?'\x20'+_0x5b4d74['Contact']['lastName']:''),'body':_0x5b4d74['Attachment']?_0x5b4d74['Attachment'][_0x4c1055('0x71')]:_0x5b4d74[_0x4c1055('0x4')],'direction':_0x5b4d74[_0x4c1055('0xa1')]===_0x4c1055('0x9a')?'A':'C','secret':_0x5b4d74[_0x4c1055('0x40')],'read':_0x5b4d74[_0x4c1055('0x15')],'attachment':_0x5b4d74['Attachment']};})[_0x3c4386('0x29')]()};return ejs['renderFile'](path['join'](config['root'],_0x3c4386('0x8d'),_0x3c4386('0xd2'),_0x3c4386('0xca')),{'interaction':_0x1d119b})[_0x3c4386('0x6e')](function(_0x2f792b){return new Promise(function(_0x576ca2,_0x40f722){const _0x17b363=a794_0x1401;pdf['create'](_0x2f792b,_0x3a7487)[_0x17b363('0x1e')](path[_0x17b363('0x86')](_0x58a1c1,_0x17b363('0xd6')+_0x31395b['id']+'-'+_0x49eb6a+_0x17b363('0x5c')),function(_0x45f6e3,_0x38ab14){if(_0x45f6e3)return _0x40f722(_0x45f6e3);_0x576ca2(_0x38ab14);});});})[_0x3c4386('0x6e')](function(){const _0x351707=_0x3c4386;return new Promise(function(_0x2b26f1,_0x383fec){zipdir(_0x58a1c1,{'saveTo':_0x119bad},function(_0x59f931,_0x5d67e7){if(_0x59f931)return _0x383fec(_0x59f931);return _0x2b26f1(_0x5d67e7);});})[_0x351707('0x6e')](function(){return new Promise(function(_0x1aebd0,_0x28cc53){rimraf(_0x58a1c1,function(_0x5abbad){if(_0x5abbad)_0x28cc53(_0x5abbad);return _0x1aebd0();});});})[_0x351707('0x6e')](function(){const _0x18e9d5=_0x351707;return _0x3a50fe[_0x18e9d5('0xc1')](_0x119bad,_0xddc9b4,function(_0x95ed0d){const _0x283e62=_0x18e9d5;_0x95ed0d?console['log'](_0x283e62('0x53'),_0x95ed0d):fs[_0x283e62('0xbd')](_0x119bad);});});});}else return _0x3a50fe[_0x3c4386('0x65')](0xc8);})['catch'](handleError(_0x3a50fe,null));}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.events.js b/server/api/whatsappInteraction/whatsappInteraction.events.js index 62e1576..d4f7f13 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.events.js +++ b/server/api/whatsappInteraction/whatsappInteraction.events.js @@ -1 +1 @@ -const a795_0x40e5=['catch','then','length','WhatsappInteraction','findAll','getUsers','Users','map','remove','../../mysqldb','exports','setMaxListeners','addHook','emit','setDataValue','events','update'];(function(_0x49b8c3,_0x40e55d){const _0x27e8f5=function(_0x24048c){while(--_0x24048c){_0x49b8c3['push'](_0x49b8c3['shift']());}};_0x27e8f5(++_0x40e55d);}(a795_0x40e5,0x190));const a795_0x27e8=function(_0x49b8c3,_0x40e55d){_0x49b8c3=_0x49b8c3-0x0;let _0x27e8f5=a795_0x40e5[_0x49b8c3];return _0x27e8f5;};const _0x15fba4=a795_0x27e8;'use strict';const EventEmitter=require(_0x15fba4('0x6')),WhatsappInteraction=require(_0x15fba4('0x0'))['db'][_0x15fba4('0xb')],WhatsappMessage=require(_0x15fba4('0x0'))['db']['WhatsappMessage'],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[_0x15fba4('0x2')](0x0);const events={'afterCreate':'save','afterUpdate':_0x15fba4('0x7'),'afterDestroy':_0x15fba4('0x10')};function emitEvent(_0x24048c){return function(_0x50219c){const _0x17439f=a795_0x27e8;_0x50219c[_0x17439f('0xd')]({'attributes':['id'],'raw':!![]})['then'](function(_0x16b7b9){const _0x12a175=_0x17439f;return _0x50219c[_0x12a175('0x5')](_0x12a175('0xe'),_0x16b7b9[_0x12a175('0xf')](function(_0x77ec5a){return{'id':_0x77ec5a['id']};})),WhatsappMessage[_0x12a175('0xc')]({'where':{'WhatsappInteractionId':_0x50219c['id'],'direction':'in','read':![]},'raw':!![]});})[_0x17439f('0x9')](function(_0x30c5c5){const _0x43af37=_0x17439f;_0x50219c[_0x43af37('0x5')]('unreadMessages',_0x30c5c5[_0x43af37('0xa')]),WhatsappInteractionEvents[_0x43af37('0x4')](_0x24048c+':'+_0x50219c['id'],_0x50219c),WhatsappInteractionEvents['emit'](_0x24048c,_0x50219c);})[_0x17439f('0x8')](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappInteraction[_0x15fba4('0x3')](e,emitEvent(event));}}module[_0x15fba4('0x1')]=WhatsappInteractionEvents; \ No newline at end of file +const a795_0x4797=['events','emit','length','WhatsappInteraction','getUsers','setDataValue','then','save','setMaxListeners','update','../../mysqldb','addHook','map','findAll'];(function(_0x512f49,_0x479793){const _0x3e45ee=function(_0x7bf05e){while(--_0x7bf05e){_0x512f49['push'](_0x512f49['shift']());}};_0x3e45ee(++_0x479793);}(a795_0x4797,0x195));const a795_0x3e45=function(_0x512f49,_0x479793){_0x512f49=_0x512f49-0x0;let _0x3e45ee=a795_0x4797[_0x512f49];return _0x3e45ee;};const _0x3c2b06=a795_0x3e45;'use strict';const EventEmitter=require(_0x3c2b06('0x1')),WhatsappInteraction=require('../../mysqldb')['db'][_0x3c2b06('0x4')],WhatsappMessage=require(_0x3c2b06('0xb'))['db']['WhatsappMessage'],WhatsappInteractionEvents=new EventEmitter();WhatsappInteractionEvents[_0x3c2b06('0x9')](0x0);const events={'afterCreate':_0x3c2b06('0x8'),'afterUpdate':_0x3c2b06('0xa'),'afterDestroy':'remove'};function emitEvent(_0x7bf05e){return function(_0x2e9256){const _0x519f0f=a795_0x3e45;_0x2e9256[_0x519f0f('0x5')]({'attributes':['id'],'raw':!![]})['then'](function(_0x48a415){const _0x142b11=_0x519f0f;return _0x2e9256[_0x142b11('0x6')]('Users',_0x48a415[_0x142b11('0xd')](function(_0x2be24e){return{'id':_0x2be24e['id']};})),WhatsappMessage[_0x142b11('0x0')]({'where':{'WhatsappInteractionId':_0x2e9256['id'],'direction':'in','read':![]},'raw':!![]});})[_0x519f0f('0x7')](function(_0x322495){const _0x4d3adc=_0x519f0f;_0x2e9256[_0x4d3adc('0x6')]('unreadMessages',_0x322495[_0x4d3adc('0x3')]),WhatsappInteractionEvents[_0x4d3adc('0x2')](_0x7bf05e+':'+_0x2e9256['id'],_0x2e9256),WhatsappInteractionEvents[_0x4d3adc('0x2')](_0x7bf05e,_0x2e9256);})['catch'](()=>{});};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappInteraction[_0x3c2b06('0xc')](e,emitEvent(event));}}module['exports']=WhatsappInteractionEvents; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.model.js b/server/api/whatsappInteraction/whatsappInteraction.model.js index 93ff20a..42d5bbc 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.model.js +++ b/server/api/whatsappInteraction/whatsappInteraction.model.js @@ -1 +1 @@ -const a796_0x1aa8=['./whatsappInteraction.attributes','closedAt','moment','changed','whatsapp_interactions','format','WhatsappInteraction','exports'];(function(_0x21a41f,_0x1aa858){const _0x32049f=function(_0x1aa653){while(--_0x1aa653){_0x21a41f['push'](_0x21a41f['shift']());}};_0x32049f(++_0x1aa858);}(a796_0x1aa8,0x10d));const a796_0x3204=function(_0x21a41f,_0x1aa858){_0x21a41f=_0x21a41f-0x0;let _0x32049f=a796_0x1aa8[_0x21a41f];return _0x32049f;};const _0x52c11c=a796_0x3204;'use strict';const moment=require(_0x52c11c('0x5')),attributes=require(_0x52c11c('0x3'));module[_0x52c11c('0x2')]=function(_0x1aa653){const _0x4c2d09=_0x52c11c,_0x1e3149=_0x1aa653['define'](_0x4c2d09('0x1'),attributes,{'tableName':_0x4c2d09('0x7'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x6b11cc){const _0x49cd66=_0x4c2d09;_0x6b11cc[_0x49cd66('0x6')]('closed')&&(_0x6b11cc[_0x49cd66('0x4')]=moment()[_0x49cd66('0x0')]('YYYY-MM-DD\x20HH:mm:ss'));}}});return _0x1e3149;}; \ No newline at end of file +const a796_0x302d=['define','whatsapp_interactions','exports','format','changed','./whatsappInteraction.attributes','YYYY-MM-DD\x20HH:mm:ss','closedAt'];(function(_0x3a16ee,_0x302db4){const _0x491f13=function(_0x3ab1a8){while(--_0x3ab1a8){_0x3a16ee['push'](_0x3a16ee['shift']());}};_0x491f13(++_0x302db4);}(a796_0x302d,0x1ee));const a796_0x491f=function(_0x3a16ee,_0x302db4){_0x3a16ee=_0x3a16ee-0x0;let _0x491f13=a796_0x302d[_0x3a16ee];return _0x491f13;};const _0x4b7612=a796_0x491f;'use strict';const moment=require('moment'),attributes=require(_0x4b7612('0x7'));module[_0x4b7612('0x4')]=function(_0x3ab1a8){const _0x3c82d0=_0x4b7612,_0x5cc0c9=_0x3ab1a8[_0x3c82d0('0x2')]('WhatsappInteraction',attributes,{'tableName':_0x3c82d0('0x3'),'paranoid':![],'indexes':[],'timestamps':!![],'hooks':{'beforeUpdate':function(_0x5dfd1f){const _0x748dcc=_0x3c82d0;_0x5dfd1f[_0x748dcc('0x6')]('closed')&&(_0x5dfd1f[_0x748dcc('0x1')]=moment()[_0x748dcc('0x5')](_0x748dcc('0x0')));}}});return _0x5cc0c9;}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.rpc.js b/server/api/whatsappInteraction/whatsappInteraction.rpc.js index 951531f..72dd7e0 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.rpc.js +++ b/server/api/whatsappInteraction/whatsappInteraction.rpc.js @@ -1 +1 @@ -const a797_0x1755=['AddTags','then','error','update','limit','./whatsappInteraction.socket','omit','AddTagsToWhatsappInteraction','attributes','UpdateWhatsappInteraction','lodash','ids','where','catch','debug','WhatsappInteraction','rpc','body','../../config/logger','options','message','../../mysqldb','info'];(function(_0x172016,_0x17558e){const _0x2602f7=function(_0x328e4b){while(--_0x328e4b){_0x172016['push'](_0x172016['shift']());}};_0x2602f7(++_0x17558e);}(a797_0x1755,0xed));const a797_0x2602=function(_0x172016,_0x17558e){_0x172016=_0x172016-0x0;let _0x2602f7=a797_0x1755[_0x172016];return _0x2602f7;};const _0x2f2c92=a797_0x2602;'use strict';const _=require(_0x2f2c92('0x3')),db=require(_0x2f2c92('0xe'))['db'],logger=require(_0x2f2c92('0xb'))(_0x2f2c92('0x9')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x2f2c92('0x15'))['register'](socket),exports['UpdateWhatsappInteraction']=function(_0x328e4b){const _0x30898f=this;return new Promise(function(_0x3d0ecd,_0x23659d){const _0x2254eb=a797_0x2602;return db[_0x2254eb('0x8')][_0x2254eb('0x13')](_0x328e4b[_0x2254eb('0xa')],{'raw':_0x328e4b[_0x2254eb('0xc')]?_0x328e4b[_0x2254eb('0xc')]['raw']===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x328e4b[_0x2254eb('0xc')]?_0x328e4b[_0x2254eb('0xc')]['where']||null:null,'attributes':_0x328e4b[_0x2254eb('0xc')]?_0x328e4b[_0x2254eb('0xc')][_0x2254eb('0x1')]||null:null,'limit':_0x328e4b[_0x2254eb('0xc')]?_0x328e4b[_0x2254eb('0xc')][_0x2254eb('0x14')]||null:null})[_0x2254eb('0x11')](function(_0x302593){const _0x3f6ec3=_0x2254eb;logger[_0x3f6ec3('0xf')](_0x3f6ec3('0x2'),_0x328e4b),logger[_0x3f6ec3('0x7')](_0x3f6ec3('0x2'),_0x328e4b,JSON['stringify'](_0x302593)),_0x3d0ecd(_0x302593);})[_0x2254eb('0x6')](function(_0x20911b){const _0x30c5fe=_0x2254eb;logger[_0x30c5fe('0x12')](_0x30c5fe('0x2'),_0x20911b['message'],_0x328e4b),_0x23659d(_0x30898f[_0x30c5fe('0x12')](0x1f4,_0x20911b['message']));});});},exports[_0x2f2c92('0x0')]=function(_0x1bfd87){const _0x172b57=this;return new Promise(function(_0x3a27d9,_0x1c61be){const _0x661c08=a797_0x2602;return db['WhatsappInteraction']['findOne']({'where':_0x1bfd87[_0x661c08('0xc')]?_0x1bfd87[_0x661c08('0xc')][_0x661c08('0x5')]||null:null})['then'](function(_0x1cf052){const _0x126ad3=_0x661c08;if(_0x1cf052)return _0x1cf052['addTags'](_0x1bfd87[_0x126ad3('0xa')][_0x126ad3('0x4')],{'through':_[_0x126ad3('0x16')](_0x1bfd87[_0x126ad3('0xa')],[_0x126ad3('0x4'),'id'])});})[_0x661c08('0x11')](function([_0x370f37]){const _0x3af770=_0x661c08;logger[_0x3af770('0xf')](_0x3af770('0x10'),_0x1bfd87),logger['debug'](_0x3af770('0x10'),_0x1bfd87,JSON['stringify'](_0x370f37)),_0x3a27d9(_0x370f37);})[_0x661c08('0x6')](function(_0x14e409){const _0x58d245=_0x661c08;logger['error'](_0x58d245('0x10'),_0x14e409[_0x58d245('0xd')],_0x1bfd87),_0x1c61be(_0x172b57[_0x58d245('0x12')](0x1f4,_0x14e409[_0x58d245('0xd')]));});});}; \ No newline at end of file +const a797_0x22b1=['body','AddTags','../../mysqldb','update','catch','AddTagsToWhatsappInteraction','register','debug','where','error','message','attributes','then','UpdateWhatsappInteraction','omit','WhatsappInteraction','raw','ids','stringify','limit','lodash','../../config/logger','options','info','addTags','./whatsappInteraction.socket','findOne'];(function(_0x27b849,_0x22b103){const _0x540746=function(_0x1ca17c){while(--_0x1ca17c){_0x27b849['push'](_0x27b849['shift']());}};_0x540746(++_0x22b103);}(a797_0x22b1,0x1cf));const a797_0x5407=function(_0x27b849,_0x22b103){_0x27b849=_0x27b849-0x0;let _0x540746=a797_0x22b1[_0x27b849];return _0x540746;};const _0x5a8fff=a797_0x5407;'use strict';const _=require(_0x5a8fff('0x10')),db=require(_0x5a8fff('0x19'))['db'],logger=require(_0x5a8fff('0x11'))('rpc'),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x5a8fff('0x15'))[_0x5a8fff('0x2')](socket),exports[_0x5a8fff('0x9')]=function(_0x1ca17c){const _0x29e0fb=this;return new Promise(function(_0x145e5e,_0x4f8b7b){const _0x294cd6=a797_0x5407;return db[_0x294cd6('0xb')][_0x294cd6('0x1a')](_0x1ca17c['body'],{'raw':_0x1ca17c['options']?_0x1ca17c[_0x294cd6('0x12')][_0x294cd6('0xc')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x1ca17c[_0x294cd6('0x12')]?_0x1ca17c[_0x294cd6('0x12')][_0x294cd6('0x4')]||null:null,'attributes':_0x1ca17c[_0x294cd6('0x12')]?_0x1ca17c[_0x294cd6('0x12')][_0x294cd6('0x7')]||null:null,'limit':_0x1ca17c['options']?_0x1ca17c['options'][_0x294cd6('0xf')]||null:null})[_0x294cd6('0x8')](function(_0x1db33d){const _0x30cb98=_0x294cd6;logger[_0x30cb98('0x13')]('UpdateWhatsappInteraction',_0x1ca17c),logger[_0x30cb98('0x3')](_0x30cb98('0x9'),_0x1ca17c,JSON['stringify'](_0x1db33d)),_0x145e5e(_0x1db33d);})[_0x294cd6('0x0')](function(_0xdc0d59){const _0x152491=_0x294cd6;logger[_0x152491('0x5')](_0x152491('0x9'),_0xdc0d59['message'],_0x1ca17c),_0x4f8b7b(_0x29e0fb['error'](0x1f4,_0xdc0d59['message']));});});},exports[_0x5a8fff('0x1')]=function(_0x249daf){const _0x29acf9=this;return new Promise(function(_0x543f19,_0x39100b){const _0xe689db=a797_0x5407;return db[_0xe689db('0xb')][_0xe689db('0x16')]({'where':_0x249daf[_0xe689db('0x12')]?_0x249daf['options'][_0xe689db('0x4')]||null:null})[_0xe689db('0x8')](function(_0x2501ed){const _0x5005cc=_0xe689db;if(_0x2501ed)return _0x2501ed[_0x5005cc('0x14')](_0x249daf[_0x5005cc('0x17')][_0x5005cc('0xd')],{'through':_[_0x5005cc('0xa')](_0x249daf[_0x5005cc('0x17')],['ids','id'])});})['then'](function([_0xba1ffc]){const _0xa2aa67=_0xe689db;logger[_0xa2aa67('0x13')](_0xa2aa67('0x18'),_0x249daf),logger[_0xa2aa67('0x3')](_0xa2aa67('0x18'),_0x249daf,JSON[_0xa2aa67('0xe')](_0xba1ffc)),_0x543f19(_0xba1ffc);})[_0xe689db('0x0')](function(_0x48fdc6){const _0x39e94b=_0xe689db;logger['error'](_0x39e94b('0x18'),_0x48fdc6['message'],_0x249daf),_0x39100b(_0x29acf9[_0x39e94b('0x5')](0x1f4,_0x48fdc6[_0x39e94b('0x6')]));});});}; \ No newline at end of file diff --git a/server/api/whatsappInteraction/whatsappInteraction.socket.js b/server/api/whatsappInteraction/whatsappInteraction.socket.js index 8ab3990..01b2403 100644 --- a/server/api/whatsappInteraction/whatsappInteraction.socket.js +++ b/server/api/whatsappInteraction/whatsappInteraction.socket.js @@ -1 +1 @@ -const a798_0x3bf6=['length','./whatsappInteraction.events','update','remove','emit','register','whatsappInteraction:'];(function(_0x5683c6,_0x3bf6da){const _0xc3e718=function(_0x53e8b8){while(--_0x53e8b8){_0x5683c6['push'](_0x5683c6['shift']());}};_0xc3e718(++_0x3bf6da);}(a798_0x3bf6,0x124));const a798_0xc3e7=function(_0x5683c6,_0x3bf6da){_0x5683c6=_0x5683c6-0x0;let _0xc3e718=a798_0x3bf6[_0x5683c6];return _0xc3e718;};const _0xbd4ece=a798_0xc3e7;'use strict';const WhatsappInteractionEvents=require(_0xbd4ece('0x3')),events=['save',_0xbd4ece('0x5'),_0xbd4ece('0x4')];function createListener(_0x53e8b8,_0x3dd08f){return function(_0x22551b){const _0x1a4ba4=a798_0xc3e7;_0x3dd08f[_0x1a4ba4('0x6')](_0x53e8b8,_0x22551b);};}exports[_0xbd4ece('0x0')]=function(_0x31ee09){const _0x1701a1=_0xbd4ece;for(let _0x2b4f37=0x0,_0x232dcb=events[_0x1701a1('0x2')];_0x2b4f37<_0x232dcb;_0x2b4f37++){const _0x17c01d=events[_0x2b4f37],_0x22ce3d=createListener(_0x1701a1('0x1')+_0x17c01d,_0x31ee09);WhatsappInteractionEvents['on'](_0x17c01d,_0x22ce3d);}}; \ No newline at end of file +const a798_0x258a=['remove','update','length','./whatsappInteraction.events'];(function(_0x4eef9d,_0x258a97){const _0x49a2d4=function(_0x229d04){while(--_0x229d04){_0x4eef9d['push'](_0x4eef9d['shift']());}};_0x49a2d4(++_0x258a97);}(a798_0x258a,0x1bb));const a798_0x49a2=function(_0x4eef9d,_0x258a97){_0x4eef9d=_0x4eef9d-0x0;let _0x49a2d4=a798_0x258a[_0x4eef9d];return _0x49a2d4;};const _0x428fce=a798_0x49a2;'use strict';const WhatsappInteractionEvents=require(_0x428fce('0x0')),events=['save',_0x428fce('0x1'),_0x428fce('0x2')];function createListener(_0x229d04,_0x45be3c){return function(_0x203304){_0x45be3c['emit'](_0x229d04,_0x203304);};}exports['register']=function(_0x3461a1){const _0x3be7f7=_0x428fce;for(let _0xd08c98=0x0,_0x3a2caf=events[_0x3be7f7('0x3')];_0xd08c98<_0x3a2caf;_0xd08c98++){const _0x113079=events[_0xd08c98],_0x179dac=createListener('whatsappInteraction:'+_0x113079,_0x3461a1);WhatsappInteractionEvents['on'](_0x113079,_0x179dac);}}; \ No newline at end of file diff --git a/server/api/whatsappMessage/index.js b/server/api/whatsappMessage/index.js index f46d38e..f6d4b85 100644 --- a/server/api/whatsappMessage/index.js +++ b/server/api/whatsappMessage/index.js @@ -1 +1 @@ -const a799_0x1645=['Router','/:id/accept','destroy','show','./whatsappMessage.controller','../../components/auth/service','status','post','describe','tracked','create','/describe','reject','put','update','../../components/interaction/service','whatsappmessage:create','isAuthenticated','whatsapp','/:id','delete','get','index','accept'];(function(_0x5c9196,_0x164568){const _0x58e79e=function(_0x5b27c6){while(--_0x5b27c6){_0x5c9196['push'](_0x5c9196['shift']());}};_0x58e79e(++_0x164568);}(a799_0x1645,0xe6));const a799_0x58e7=function(_0x5c9196,_0x164568){_0x5c9196=_0x5c9196-0x0;let _0x58e79e=a799_0x1645[_0x5c9196];return _0x58e79e;};const _0x1ee93d=a799_0x58e7;'use strict';const express=require('express'),router=express[_0x1ee93d('0xa')](),auth=require(_0x1ee93d('0xf')),interaction=require(_0x1ee93d('0x1')),controller=require(_0x1ee93d('0xe'));router['get']('/',auth['isAuthenticated'](),controller[_0x1ee93d('0x8')]),router['get'](_0x1ee93d('0x15'),auth['isAuthenticated'](),controller[_0x1ee93d('0x12')]),router[_0x1ee93d('0x7')]('/:id',auth[_0x1ee93d('0x3')](),controller[_0x1ee93d('0xd')]),router[_0x1ee93d('0x11')]('/',auth[_0x1ee93d('0x3')](),interaction[_0x1ee93d('0x13')](_0x1ee93d('0x4'),_0x1ee93d('0x2')),controller[_0x1ee93d('0x14')]),router[_0x1ee93d('0x11')]('/:id/status',controller[_0x1ee93d('0x10')]),router[_0x1ee93d('0x17')](_0x1ee93d('0x5'),auth['isAuthenticated'](),controller[_0x1ee93d('0x0')]),router[_0x1ee93d('0x17')](_0x1ee93d('0xb'),auth['isAuthenticated'](),controller[_0x1ee93d('0x9')]),router[_0x1ee93d('0x17')]('/:id/reject',auth[_0x1ee93d('0x3')](),controller[_0x1ee93d('0x16')]),router[_0x1ee93d('0x6')]('/:id',auth[_0x1ee93d('0x3')](),controller[_0x1ee93d('0xc')]),module['exports']=router; \ No newline at end of file +const a799_0x3638=['describe','/:id','./whatsappMessage.controller','../../components/interaction/service','accept','destroy','exports','post','put','../../components/auth/service','whatsapp','isAuthenticated','/describe','/:id/status','get','/:id/accept','whatsappmessage:create'];(function(_0x1a8cbb,_0x363824){const _0x5ea9db=function(_0x50a207){while(--_0x50a207){_0x1a8cbb['push'](_0x1a8cbb['shift']());}};_0x5ea9db(++_0x363824);}(a799_0x3638,0x6c));const a799_0x5ea9=function(_0x1a8cbb,_0x363824){_0x1a8cbb=_0x1a8cbb-0x0;let _0x5ea9db=a799_0x3638[_0x1a8cbb];return _0x5ea9db;};const _0x108180=a799_0x5ea9;'use strict';const express=require('express'),router=express['Router'](),auth=require(_0x108180('0x3')),interaction=require(_0x108180('0xe')),controller=require(_0x108180('0xd'));router['get']('/',auth[_0x108180('0x5')](),controller['index']),router[_0x108180('0x8')](_0x108180('0x6'),auth[_0x108180('0x5')](),controller[_0x108180('0xb')]),router['get'](_0x108180('0xc'),auth[_0x108180('0x5')](),controller['show']),router[_0x108180('0x1')]('/',auth[_0x108180('0x5')](),interaction['tracked'](_0x108180('0x4'),_0x108180('0xa')),controller['create']),router[_0x108180('0x1')](_0x108180('0x7'),controller['status']),router[_0x108180('0x2')]('/:id',auth[_0x108180('0x5')](),controller['update']),router[_0x108180('0x2')](_0x108180('0x9'),auth[_0x108180('0x5')](),controller[_0x108180('0xf')]),router[_0x108180('0x2')]('/:id/reject',auth[_0x108180('0x5')](),controller['reject']),router['delete'](_0x108180('0xc'),auth[_0x108180('0x5')](),controller[_0x108180('0x10')]),module[_0x108180('0x0')]=router; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.attributes.js b/server/api/whatsappMessage/whatsappMessage.attributes.js index cf93c00..f1eec0d 100644 --- a/server/api/whatsappMessage/whatsappMessage.attributes.js +++ b/server/api/whatsappMessage/whatsappMessage.attributes.js @@ -1 +1 @@ -const a800_0x5340=['medium','exports','TEXT','out','ENUM','sequelize','BOOLEAN'];(function(_0x56be44,_0x53407c){const _0x49d781=function(_0x3d8125){while(--_0x3d8125){_0x56be44['push'](_0x56be44['shift']());}};_0x49d781(++_0x53407c);}(a800_0x5340,0xf0));const a800_0x49d7=function(_0x56be44,_0x53407c){_0x56be44=_0x56be44-0x0;let _0x49d781=a800_0x5340[_0x56be44];return _0x49d781;};const _0x357703=a800_0x49d7;'use strict';const Sequelize=require(_0x357703('0x3'));module[_0x357703('0x6')]={'body':{'type':Sequelize[_0x357703('0x0')](_0x357703('0x5')),'allowNull':![]},'read':{'type':Sequelize[_0x357703('0x4')],'defaultValue':![]},'direction':{'type':Sequelize[_0x357703('0x2')]('in',_0x357703('0x1')),'defaultValue':'out','allowNull':![]},'messageId':{'type':Sequelize['STRING'](0xbe)},'phone':{'type':Sequelize['STRING']},'readAt':{'type':Sequelize['DATE']},'secret':{'type':Sequelize[_0x357703('0x4')],'defaultValue':![]}}; \ No newline at end of file +const a800_0x3a80=['sequelize','exports','ENUM','STRING','out','TEXT'];(function(_0x1ce73e,_0x3a8080){const _0x25fb84=function(_0x25c605){while(--_0x25c605){_0x1ce73e['push'](_0x1ce73e['shift']());}};_0x25fb84(++_0x3a8080);}(a800_0x3a80,0xc2));const a800_0x25fb=function(_0x1ce73e,_0x3a8080){_0x1ce73e=_0x1ce73e-0x0;let _0x25fb84=a800_0x3a80[_0x1ce73e];return _0x25fb84;};const _0x5b37a4=a800_0x25fb;'use strict';const Sequelize=require(_0x5b37a4('0x4'));module[_0x5b37a4('0x5')]={'body':{'type':Sequelize[_0x5b37a4('0x3')]('medium'),'allowNull':![]},'read':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'direction':{'type':Sequelize[_0x5b37a4('0x0')]('in',_0x5b37a4('0x2')),'defaultValue':_0x5b37a4('0x2'),'allowNull':![]},'messageId':{'type':Sequelize[_0x5b37a4('0x1')](0xbe)},'phone':{'type':Sequelize[_0x5b37a4('0x1')]},'readAt':{'type':Sequelize['DATE']},'secret':{'type':Sequelize['BOOLEAN'],'defaultValue':![]},'providerName':{'type':Sequelize[_0x5b37a4('0x1')]},'providerResponse':{'type':Sequelize[_0x5b37a4('0x3')]}}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.controller.js b/server/api/whatsappMessage/whatsappMessage.controller.js index 21b808a..34f7e96 100644 --- a/server/api/whatsappMessage/whatsappMessage.controller.js +++ b/server/api/whatsappMessage/whatsappMessage.controller.js @@ -1 +1 @@ -const a801_0x9f20=['accept','update','[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','where','offset','count','describe','index','moment','channel','register','WhatsappMessage','user','filters','keys','catch','rows','fields','request\x20sent','order','rejectmessage','undefined','include','findAll','reject','format','get','show','agent','code','interaction','send','json','WhatsappMessage,\x20%s,\x20%s,\x20%s','stringify','set','UserId','attributes','includeAll','isNil','query','../../mysqldb','stack','body','WhatsappInteraction','debug','status','key','client','intersection','create','read1stAt','inspect','lodash','rawAttributes','pick','YYYY-MM-DD\x20HH:mm:ss','../../components/parsers/qs','EventManager','findOne','manual','Content-Range','request','MessageSid','limit','WhatsppMessage,\x20%s,\x20%s,\x20%s','options','acceptmessage','read','message','error','SIP/%s','end','filter','role','twilio','WhatsappMessage,\x20%s,\x20%s','model','null','fieldName','sort','destroy','rejectMessage','nolimit','whatsapp-interactions','name','readAt','acceptMessage','jayson/promise','WhatsappAccount,\x20%s,\x20%s,\x20%s','map','then','length','whatsapp','Contact','./whatsappMessage.socket','sendStatus','type','like','event','MessageStatus','WhatsappInteractionId','params','CmContact','VIRTUAL','info','RejectMessage','../../config/logger','[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s'];(function(_0x37402b,_0x9f2015){const _0x122c46=function(_0x56afe9){while(--_0x56afe9){_0x37402b['push'](_0x37402b['shift']());}};_0x122c46(++_0x9f2015);}(a801_0x9f20,0xb7));const a801_0x122c=function(_0x37402b,_0x9f2015){_0x37402b=_0x37402b-0x0;let _0x122c46=a801_0x9f20[_0x37402b];return _0x122c46;};const _0xf7968d=a801_0x122c;'use strict';const moment=require(_0xf7968d('0x2b')),util=require('util'),_=require(_0xf7968d('0x58')),qs=require(_0xf7968d('0x5c')),logger=require(_0xf7968d('0x21'))('api'),{getSocket}=require('../../rediscache'),socket=getSocket(),interaction_log=require(_0xf7968d('0x21'))(_0xf7968d('0xa')),db=require(_0xf7968d('0x4c'))['db'],{Op}=require('sequelize');require(_0xf7968d('0x15'))[_0xf7968d('0x2d')](socket);const jayson=require(_0xf7968d('0xe')),client=jayson[_0xf7968d('0x53')]['http']({'port':0x232c}),client9002=jayson[_0xf7968d('0x53')]['http']({'port':0x232a});function respondWithRpcPromise(_0x56afe9,_0x4a297a,_0x5d1303,_0x144229){return new Promise(function(_0x324638,_0x5ee857){const _0x52f880=a801_0x122c,_0xaeff6=_0x144229||client;return _0xaeff6[_0x52f880('0x61')](_0x56afe9,_0x5d1303)[_0x52f880('0x11')](function(_0x2ae2bf){const _0x2b75df=_0x52f880;logger[_0x2b75df('0x1f')](_0x2b75df('0x2'),_0x4a297a,'request\x20sent'),logger[_0x2b75df('0x50')](_0x2b75df('0x44'),_0x4a297a,_0x2b75df('0x35'),JSON[_0x2b75df('0x45')](_0x2ae2bf));if(_0x2ae2bf[_0x2b75df('0x69')]){if(_0x2ae2bf[_0x2b75df('0x69')][_0x2b75df('0x40')]===0x1f4)return logger[_0x2b75df('0x69')](_0x2b75df('0x2'),_0x4a297a,_0x2ae2bf[_0x2b75df('0x69')][_0x2b75df('0x68')]),_0x5ee857(_0x2ae2bf['error']['message']);return logger[_0x2b75df('0x69')](_0x2b75df('0x2'),_0x4a297a,_0x2ae2bf[_0x2b75df('0x69')][_0x2b75df('0x68')]),_0x324638(_0x2ae2bf[_0x2b75df('0x69')][_0x2b75df('0x68')]);}else logger['info'](_0x2b75df('0x2'),_0x4a297a,_0x2b75df('0x35')),_0x324638(_0x2ae2bf['result'][_0x2b75df('0x68')]);})['catch'](function(_0xf2c6ec){const _0x3fe642=_0x52f880;logger['error'](_0x3fe642('0x2'),_0x4a297a,_0xf2c6ec),_0x5ee857(_0xf2c6ec);});});}function respondWithResult(_0x49d074,_0x48cf65){return _0x48cf65=_0x48cf65||0xc8,function(_0xf25478){const _0x318646=a801_0x122c;if(_0xf25478)return _0x49d074[_0x318646('0x51')](_0x48cf65)[_0x318646('0x43')](_0xf25478);};}function respondWithFilteredResult(_0x7ad320,_0x415796){return function(_0x4b97ca){const _0x5bb018=a801_0x122c;if(_0x4b97ca){const _0x264b4e=_0x4b97ca[_0x5bb018('0x28')],_0x59b0f5=_0x415796[_0x5bb018('0x27')];let _0xc81468=_0x415796[_0x5bb018('0x27')]+_0x415796['limit'],_0x374176;return _0xc81468>=_0x264b4e?(_0xc81468=_0x264b4e,_0x374176=0xc8):_0x374176=0xce,_0x7ad320['status'](_0x374176),_0x7ad320[_0x5bb018('0x46')](_0x5bb018('0x60'),_0x59b0f5+'-'+_0xc81468+'/'+_0x264b4e)[_0x5bb018('0x43')](_0x4b97ca);}return null;};}function saveUpdates(_0x5515da){return function(_0x1d1b67){const _0x1ab393=a801_0x122c;if(_0x1d1b67)return _0x1d1b67[_0x1ab393('0x24')](_0x5515da)['then'](function(_0x4c43a5){return _0x4c43a5;});return null;};}function removeEntity(_0x57e3f5){return function(_0x322025){const _0x9a3e6e=a801_0x122c;if(_0x322025)return _0x322025[_0x9a3e6e('0x7')]()[_0x9a3e6e('0x11')](function(){const _0x356e5d=_0x9a3e6e;_0x57e3f5[_0x356e5d('0x51')](0xcc)[_0x356e5d('0x6b')]();});};}function handleEntityNotFound(_0x58f188){return function(_0x251c97){const _0x5bb08f=a801_0x122c;return!_0x251c97&&_0x58f188[_0x5bb08f('0x16')](0x194),_0x251c97;};}function handleError(_0x5cce75,_0x643f82){return _0x643f82=_0x643f82||0x1f4,function(_0xde68df){const _0x4f1173=a801_0x122c;logger[_0x4f1173('0x69')](_0xde68df[_0x4f1173('0x4d')]),_0xde68df[_0x4f1173('0xb')]&&delete _0xde68df[_0x4f1173('0xb')],_0x5cce75[_0x4f1173('0x51')](_0x643f82)[_0x4f1173('0x42')](_0xde68df);};}exports[_0xf7968d('0x2a')]=function(_0x3a847c,_0x53716c){const _0x46a56b=_0xf7968d;let _0x59e47d={};const _0x53590c={},_0x1a63c3={'count':0x0,'rows':[]},_0x16ba65=_[_0x46a56b('0x10')](db['WhatsappMessage']['rawAttributes'],function(_0x346c49){const _0x66fd1b=_0x46a56b;return{'name':_0x346c49[_0x66fd1b('0x5')],'type':_0x346c49[_0x66fd1b('0x17')][_0x66fd1b('0x52')]};});_0x53590c[_0x46a56b('0x3')]=_[_0x46a56b('0x10')](_0x16ba65,_0x46a56b('0xb')),_0x53590c[_0x46a56b('0x4b')]=_[_0x46a56b('0x31')](_0x3a847c['query']),_0x53590c['filters']=_[_0x46a56b('0x54')](_0x53590c[_0x46a56b('0x3')],_0x53590c[_0x46a56b('0x4b')]),_0x59e47d[_0x46a56b('0x48')]=_['intersection'](_0x53590c['model'],qs[_0x46a56b('0x34')](_0x3a847c[_0x46a56b('0x4b')][_0x46a56b('0x34')])),_0x59e47d[_0x46a56b('0x48')]=_0x59e47d[_0x46a56b('0x48')][_0x46a56b('0x12')]?_0x59e47d[_0x46a56b('0x48')]:_0x53590c[_0x46a56b('0x3')];typeof _0x3a847c[_0x46a56b('0x4b')][_0x46a56b('0x9')]===_0x46a56b('0x38')&&(_0x59e47d[_0x46a56b('0x63')]=qs[_0x46a56b('0x63')](_0x3a847c[_0x46a56b('0x4b')][_0x46a56b('0x63')]),_0x59e47d[_0x46a56b('0x27')]=qs['offset'](_0x3a847c['query'][_0x46a56b('0x27')]));_0x59e47d[_0x46a56b('0x36')]=qs[_0x46a56b('0x6')](_0x3a847c[_0x46a56b('0x4b')]['sort']),_0x59e47d[_0x46a56b('0x26')]=qs[_0x46a56b('0x30')](_[_0x46a56b('0x5a')](_0x3a847c[_0x46a56b('0x4b')],_0x53590c[_0x46a56b('0x30')]),_0x16ba65);_0x3a847c['query'][_0x46a56b('0x6c')]&&(_0x59e47d['where']=_['merge'](_0x59e47d['where'],{[Op['or']]:_[_0x46a56b('0x10')](_0x16ba65,function(_0x4c1dd6){const _0x328683=_0x46a56b;if(_0x4c1dd6['type']!==_0x328683('0x1e')){const _0x49af72={};return _0x49af72[_0x4c1dd6[_0x328683('0xb')]]={[Op[_0x328683('0x18')]]:'%'+_0x3a847c[_0x328683('0x4b')][_0x328683('0x6c')]+'%'},_0x49af72;}})}));_0x59e47d=_['merge']({},_0x59e47d,_0x3a847c[_0x46a56b('0x65')]);const _0x1da027={'where':_0x59e47d[_0x46a56b('0x26')]};return db[_0x46a56b('0x2e')][_0x46a56b('0x28')](_0x1da027)[_0x46a56b('0x11')](function(_0x5b53f2){const _0x18c210=_0x46a56b;return _0x1a63c3[_0x18c210('0x28')]=_0x5b53f2,_0x3a847c['query'][_0x18c210('0x49')]&&(_0x59e47d[_0x18c210('0x39')]=[{'all':!![]}]),db[_0x18c210('0x2e')][_0x18c210('0x3a')](_0x59e47d);})[_0x46a56b('0x11')](function(_0x2ff7c6){const _0x3f62b5=_0x46a56b;return _0x1a63c3[_0x3f62b5('0x33')]=_0x2ff7c6,_0x1a63c3;})[_0x46a56b('0x11')](respondWithFilteredResult(_0x53716c,_0x59e47d))['catch'](handleError(_0x53716c,null));},exports[_0xf7968d('0x3e')]=function(_0x3f3899,_0x21afe5){const _0x1b14e0=_0xf7968d;let _0x148a3d={'raw':!![],'where':{'id':_0x3f3899[_0x1b14e0('0x1c')]['id']}};const _0x42c3ad={};return _0x42c3ad[_0x1b14e0('0x3')]=_[_0x1b14e0('0x31')](db[_0x1b14e0('0x2e')][_0x1b14e0('0x59')]),_0x42c3ad[_0x1b14e0('0x4b')]=_[_0x1b14e0('0x31')](_0x3f3899[_0x1b14e0('0x4b')]),_0x42c3ad[_0x1b14e0('0x30')]=_[_0x1b14e0('0x54')](_0x42c3ad[_0x1b14e0('0x3')],_0x42c3ad[_0x1b14e0('0x4b')]),_0x148a3d[_0x1b14e0('0x48')]=_['intersection'](_0x42c3ad[_0x1b14e0('0x3')],qs[_0x1b14e0('0x34')](_0x3f3899[_0x1b14e0('0x4b')]['fields'])),_0x148a3d['attributes']=_0x148a3d[_0x1b14e0('0x48')][_0x1b14e0('0x12')]?_0x148a3d[_0x1b14e0('0x48')]:_0x42c3ad['model'],_0x3f3899[_0x1b14e0('0x4b')][_0x1b14e0('0x49')]&&(_0x148a3d['include']=[{'all':!![]}]),_0x148a3d=_['merge']({},_0x148a3d,_0x3f3899[_0x1b14e0('0x65')]),db[_0x1b14e0('0x2e')][_0x1b14e0('0x5e')](_0x148a3d)['then'](handleEntityNotFound(_0x21afe5,null))[_0x1b14e0('0x11')](respondWithResult(_0x21afe5,null))[_0x1b14e0('0x32')](handleError(_0x21afe5,null));},exports['create']=function(_0x4fbec1,_0x5e016e){const _0x338057=_0xf7968d;return db[_0x338057('0x2e')][_0x338057('0x55')](_0x4fbec1[_0x338057('0x4e')],{})['then'](respondWithResult(_0x5e016e,0xc9))[_0x338057('0x32')](handleError(_0x5e016e,null));},exports[_0xf7968d('0x24')]=function(_0x213add,_0x41f919){const _0x46bcee=_0xf7968d;return _0x213add[_0x46bcee('0x4e')]['id']&&delete _0x213add[_0x46bcee('0x4e')]['id'],db['WhatsappMessage'][_0x46bcee('0x5e')]({'where':{'id':_0x213add[_0x46bcee('0x1c')]['id']}})['then'](handleEntityNotFound(_0x41f919,null))[_0x46bcee('0x11')](saveUpdates(_0x213add[_0x46bcee('0x4e')],null))[_0x46bcee('0x11')](respondWithResult(_0x41f919,null))[_0x46bcee('0x32')](handleError(_0x41f919,null));},exports[_0xf7968d('0x7')]=function(_0x4b6569,_0x581581){const _0x5b02dc=_0xf7968d;return db[_0x5b02dc('0x2e')][_0x5b02dc('0x5e')]({'where':{'id':_0x4b6569[_0x5b02dc('0x1c')]['id']}})[_0x5b02dc('0x11')](handleEntityNotFound(_0x581581,null))['then'](removeEntity(_0x581581,null))[_0x5b02dc('0x32')](handleError(_0x581581,null));},exports[_0xf7968d('0x29')]=function(_0x1c6432,_0x16b967){const _0x4a874f=_0xf7968d;return db[_0x4a874f('0x2e')][_0x4a874f('0x29')]()['then'](respondWithResult(_0x16b967,null))[_0x4a874f('0x32')](handleError(_0x16b967,null));},exports[_0xf7968d('0x23')]=function(_0x327c53,_0x61f931){const _0x553824=_0xf7968d,_0x268831={'channel':'whatsapp'};return _0x327c53[_0x553824('0x4e')]['id']&&delete _0x327c53['body']['id'],_0x327c53[_0x553824('0x4e')][_0x553824('0x67')]=!![],_0x327c53['body'][_0x553824('0xc')]=moment()[_0x553824('0x3c')](_0x553824('0x5b')),_0x327c53[_0x553824('0x4e')][_0x553824('0x47')]=_0x327c53[_0x553824('0x4e')]['UserId']||_0x327c53['user']['id'],db['WhatsappMessage'][_0x553824('0x5e')]({'where':{'id':_0x327c53[_0x553824('0x1c')]['id'],'UserId':null},'include':[{'model':db[_0x553824('0x1d')],'as':_0x553824('0x14')}]})[_0x553824('0x11')](handleEntityNotFound(_0x61f931,null))['then'](saveUpdates(_0x327c53['body'],null))['then'](function(_0x498f50){const _0x534960=_0x553824;if(_0x498f50)return _0x268831[_0x534960('0x68')]=_0x498f50[_0x534960('0x3d')]({'plain':!![]}),db[_0x534960('0x4f')][_0x534960('0x5e')]({'where':{'id':_0x498f50[_0x534960('0x1b')]}});return null;})[_0x553824('0x11')](handleEntityNotFound(_0x61f931,null))[_0x553824('0x11')](function(_0x52cddc){const _0x5928eb=_0x553824;if(_0x52cddc)return _0x52cddc[_0x5928eb('0x24')]({'UserId':_0x327c53['body']['UserId'],'read1stAt':_[_0x5928eb('0x4a')](_0x52cddc[_0x5928eb('0x56')])?moment()['format'](_0x5928eb('0x5b')):undefined});return null;})[_0x553824('0x11')](function(_0x446aa3){const _0x35fb8c=_0x553824;if(_0x446aa3)return _0x268831[_0x35fb8c('0x41')]=_0x446aa3[_0x35fb8c('0x3d')]({'plain':!![]}),interaction_log[_0x35fb8c('0x1f')](_0x35fb8c('0x25'),_0x327c53[_0x35fb8c('0x2f')]['id'],_0x327c53[_0x35fb8c('0x2f')]['name'],_0x327c53[_0x35fb8c('0x2f')][_0x35fb8c('0x0')],_0x268831[_0x35fb8c('0x41')]['id'],_0x327c53['body']?JSON[_0x35fb8c('0x45')](_0x327c53[_0x35fb8c('0x4e')]):_0x35fb8c('0x4')),respondWithRpcPromise('AcceptMessage',_0x35fb8c('0xd'),_0x268831);return null;})[_0x553824('0x11')](function(_0x151aac){const _0x5d3250=_0x553824;if(_0x151aac){if(_0x327c53['body'][_0x5d3250('0x5f')])return _0x268831[_0x5d3250('0x68')]['interface']=util[_0x5d3250('0x3c')](_0x5d3250('0x6a'),_0x327c53[_0x5d3250('0x2f')][_0x5d3250('0xb')]),_0x268831[_0x5d3250('0x68')][_0x5d3250('0x2c')]=_0x268831['channel'],_0x268831[_0x5d3250('0x68')]['event']=_0x5d3250('0x23'),respondWithRpcPromise(_0x5d3250('0x5d'),_0x5d3250('0x5d'),{'event':_0x5d3250('0x66'),'message':_0x268831[_0x5d3250('0x68')]},client9002)[_0x5d3250('0x11')](function(){return _0x268831;});return _0x268831;}return null;})[_0x553824('0x11')](respondWithResult(_0x61f931,null))[_0x553824('0x32')](handleError(_0x61f931,null));},exports[_0xf7968d('0x3b')]=function(_0x29cb0b,_0x572a86){const _0x204548=_0xf7968d,_0xfbd648={'agent':{},'channel':_0x204548('0x13')};return _0x29cb0b[_0x204548('0x4e')]['id']&&delete _0x29cb0b[_0x204548('0x4e')]['id'],_0x29cb0b[_0x204548('0x4e')][_0x204548('0x47')]=_0x29cb0b[_0x204548('0x4e')][_0x204548('0x47')]||_0x29cb0b[_0x204548('0x2f')]['id'],_0xfbd648[_0x204548('0x3f')]['id']=_0x29cb0b[_0x204548('0x4e')][_0x204548('0x47')],db[_0x204548('0x2e')]['findOne']({'where':{'id':_0x29cb0b[_0x204548('0x1c')]['id'],'UserId':null}})['then'](handleEntityNotFound(_0x572a86,null))['then'](function(_0x263bf1){const _0x360988=_0x204548;if(_0x263bf1)return _0xfbd648['message']=_0x263bf1[_0x360988('0x3d')]({'plain':!![]}),db['WhatsappInteraction']['findOne']({'where':{'id':_0x263bf1['WhatsappInteractionId']}});return null;})[_0x204548('0x11')](handleEntityNotFound(_0x572a86,null))[_0x204548('0x11')](function(_0x4f69dc){const _0x3b3bee=_0x204548;if(_0x4f69dc)return _0xfbd648[_0x3b3bee('0x41')]=_0x4f69dc[_0x3b3bee('0x3d')]({'plain':!![]}),interaction_log[_0x3b3bee('0x1f')](_0x3b3bee('0x22'),_0x29cb0b['user']['id'],_0x29cb0b[_0x3b3bee('0x2f')]['name'],_0x29cb0b['user'][_0x3b3bee('0x0')],_0xfbd648[_0x3b3bee('0x41')]['id'],_0x29cb0b[_0x3b3bee('0x4e')]?JSON[_0x3b3bee('0x45')](_0x29cb0b[_0x3b3bee('0x4e')]):_0x3b3bee('0x4')),respondWithRpcPromise(_0x3b3bee('0x20'),_0x3b3bee('0x8'),_0xfbd648);return null;})[_0x204548('0x11')](function(_0x3681ee){const _0x5df53f=_0x204548;if(_0x3681ee)return _0x3681ee[_0x5df53f('0x68')]['interface']=util['format'](_0x5df53f('0x6a'),_0x29cb0b[_0x5df53f('0x2f')][_0x5df53f('0xb')]),_0x3681ee[_0x5df53f('0x68')][_0x5df53f('0x2c')]=_0xfbd648[_0x5df53f('0x2c')],_0x3681ee[_0x5df53f('0x68')][_0x5df53f('0x19')]=_0x5df53f('0x3b'),respondWithRpcPromise(_0x5df53f('0x5d'),_0x5df53f('0x5d'),{'event':_0x5df53f('0x37'),'message':_0x3681ee['message']},client9002),_0xfbd648;return null;})[_0x204548('0x11')](respondWithResult(_0x572a86,null))[_0x204548('0x32')](handleError(_0x572a86,null));},exports[_0xf7968d('0x51')]=function(_0x54b038,_0x58e35b){const _0x2ba5b8=_0xf7968d;_0x54b038[_0x2ba5b8('0x4e')]['id']&&delete _0x54b038[_0x2ba5b8('0x4e')]['id'];let _0x402256;return db['WhatsappMessage'][_0x2ba5b8('0x5e')]({'where':{'id':_0x54b038[_0x2ba5b8('0x1c')]['id']}})['then'](handleEntityNotFound(_0x58e35b,null))[_0x2ba5b8('0x11')](function(_0x486532){if(_0x486532)return _0x402256=_0x486532,db['WhatsappAccount']['findOne']({'where':{'id':_0x486532['WhatsappAccountId']}});})[_0x2ba5b8('0x11')](handleEntityNotFound(_0x58e35b,null))['then'](function(_0x304bf9){const _0x2e560d=_0x2ba5b8;if(_0x304bf9){logger[_0x2e560d('0x50')](_0x2e560d('0x64'),_0x2e560d('0x51'),'received\x20delivery\x20report\x20from',_0x304bf9[_0x2e560d('0x17')],util[_0x2e560d('0x57')](_0x54b038[_0x2e560d('0x4e')],{'showHidden':![],'depth':null}));switch(_0x304bf9[_0x2e560d('0x17')]){case _0x2e560d('0x1'):if(_0x54b038[_0x2e560d('0x4e')][_0x2e560d('0x62')]&&_0x54b038[_0x2e560d('0x4e')]['MessageSid']===_0x402256['messageId']&&_0x54b038['body'][_0x2e560d('0x1a')]&&_0x54b038[_0x2e560d('0x4e')][_0x2e560d('0x1a')]===_0x2e560d('0x67'))return _0x402256['update']({'read':!![]});else logger[_0x2e560d('0x69')](_0x2e560d('0xf'),'status','twilio',util[_0x2e560d('0x57')](_0x54b038['body'],{'showHidden':![],'depth':null}));break;}return _0x402256;}})['then'](respondWithResult(_0x58e35b,null))['catch'](handleError(_0x58e35b,null));}; \ No newline at end of file +const a801_0x474a=['findOne','status','inspect','http','attributes','debug','error','../../config/logger','key','WhatsappAccount','YYYY-MM-DD\x20HH:mm:ss','catch','name','user','request','info','include','model','interface','body','rawAttributes','rejectMessage','accept','read1stAt','intersection','stack','keys','get','map','update','AcceptMessage','merge','WhatsappMessage','moment','params','order','EventManager','client','WhatsppMessage,\x20%s,\x20%s,\x20%s','filter','type','WhatsappMessage,\x20%s,\x20%s,\x20%s','stringify','MessageSid','WhatsappInteractionId','messageId','acceptmessage','jayson/promise','format','twilio','nolimit','fieldName','options','VIRTUAL','CmContact','offset','whatsapp','where','request\x20sent','[WHATSAPPMESSAGE:ACCEPT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','result','undefined','query','filters','../../rediscache','WhatsappAccountId','MessageStatus','reject','interaction','agent','Contact','null','lodash','UserId','length','whatsapp-interactions','SIP/%s','sendStatus','limit','WhatsappAccount,\x20%s,\x20%s,\x20%s','api','manual','set','channel','../../components/parsers/qs','message','WhatsappMessage,\x20%s,\x20%s','json','role','create','includeAll','WhatsappInteraction','send','index','register','fields','sort','count','received\x20delivery\x20report\x20from','then','like'];(function(_0x475544,_0x474a56){const _0x192615=function(_0x1571fc){while(--_0x1571fc){_0x475544['push'](_0x475544['shift']());}};_0x192615(++_0x474a56);}(a801_0x474a,0x142));const a801_0x1926=function(_0x475544,_0x474a56){_0x475544=_0x475544-0x0;let _0x192615=a801_0x474a[_0x475544];return _0x192615;};const _0x520795=a801_0x1926;'use strict';const moment=require(_0x520795('0xe')),util=require('util'),_=require(_0x520795('0x35')),qs=require(_0x520795('0x41')),logger=require('../../config/logger')(_0x520795('0x3d')),{getSocket}=require(_0x520795('0x2d')),socket=getSocket(),interaction_log=require(_0x520795('0x59'))(_0x520795('0x38')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');require('./whatsappMessage.socket')[_0x520795('0x4b')](socket);const jayson=require(_0x520795('0x1c')),client=jayson[_0x520795('0x12')]['http']({'port':0x232c}),client9002=jayson[_0x520795('0x12')][_0x520795('0x55')]({'port':0x232a});function respondWithRpcPromise(_0x1571fc,_0x54fa63,_0x57e96c,_0x4f2a52){return new Promise(function(_0x45d228,_0x52ff01){const _0x20b1b4=a801_0x1926,_0x5d5ea6=_0x4f2a52||client;return _0x5d5ea6[_0x20b1b4('0x60')](_0x1571fc,_0x57e96c)[_0x20b1b4('0x50')](function(_0x1620ca){const _0x4ede44=_0x20b1b4;logger[_0x4ede44('0x61')](_0x4ede44('0x43'),_0x54fa63,_0x4ede44('0x27')),logger[_0x4ede44('0x57')](_0x4ede44('0x16'),_0x54fa63,'request\x20sent',JSON['stringify'](_0x1620ca));if(_0x1620ca['error']){if(_0x1620ca[_0x4ede44('0x58')]['code']===0x1f4)return logger[_0x4ede44('0x58')](_0x4ede44('0x43'),_0x54fa63,_0x1620ca[_0x4ede44('0x58')][_0x4ede44('0x42')]),_0x52ff01(_0x1620ca[_0x4ede44('0x58')]['message']);return logger[_0x4ede44('0x58')](_0x4ede44('0x43'),_0x54fa63,_0x1620ca['error'][_0x4ede44('0x42')]),_0x45d228(_0x1620ca[_0x4ede44('0x58')][_0x4ede44('0x42')]);}else logger['info'](_0x4ede44('0x43'),_0x54fa63,_0x4ede44('0x27')),_0x45d228(_0x1620ca[_0x4ede44('0x29')][_0x4ede44('0x42')]);})[_0x20b1b4('0x5d')](function(_0x3f6950){const _0x2056f1=_0x20b1b4;logger[_0x2056f1('0x58')](_0x2056f1('0x43'),_0x54fa63,_0x3f6950),_0x52ff01(_0x3f6950);});});}function respondWithResult(_0x4977b5,_0x240acc){return _0x240acc=_0x240acc||0xc8,function(_0x2bd6d1){const _0x42491b=a801_0x1926;if(_0x2bd6d1)return _0x4977b5[_0x42491b('0x53')](_0x240acc)[_0x42491b('0x44')](_0x2bd6d1);};}function respondWithFilteredResult(_0x12ac96,_0x5b0746){return function(_0x19555a){const _0x382cbb=a801_0x1926;if(_0x19555a){const _0x383cb4=_0x19555a[_0x382cbb('0x4e')],_0x200b28=_0x5b0746[_0x382cbb('0x24')];let _0x2c10ba=_0x5b0746[_0x382cbb('0x24')]+_0x5b0746[_0x382cbb('0x3b')],_0xfdd8b;return _0x2c10ba>=_0x383cb4?(_0x2c10ba=_0x383cb4,_0xfdd8b=0xc8):_0xfdd8b=0xce,_0x12ac96[_0x382cbb('0x53')](_0xfdd8b),_0x12ac96[_0x382cbb('0x3f')]('Content-Range',_0x200b28+'-'+_0x2c10ba+'/'+_0x383cb4)[_0x382cbb('0x44')](_0x19555a);}return null;};}function saveUpdates(_0x11ae34){return function(_0x5aa2b3){const _0x438bb7=a801_0x1926;if(_0x5aa2b3)return _0x5aa2b3[_0x438bb7('0xa')](_0x11ae34)[_0x438bb7('0x50')](function(_0x41c3b0){return _0x41c3b0;});return null;};}function removeEntity(_0x5ab78b){return function(_0xaffcc9){const _0x518ece=a801_0x1926;if(_0xaffcc9)return _0xaffcc9['destroy']()[_0x518ece('0x50')](function(){const _0x7bf19b=_0x518ece;_0x5ab78b[_0x7bf19b('0x53')](0xcc)['end']();});};}function handleEntityNotFound(_0x22fd8c){return function(_0x135b22){const _0x31e194=a801_0x1926;return!_0x135b22&&_0x22fd8c[_0x31e194('0x3a')](0x194),_0x135b22;};}function handleError(_0x2aab08,_0x458fad){return _0x458fad=_0x458fad||0x1f4,function(_0x1345f1){const _0x37eb7f=a801_0x1926;logger[_0x37eb7f('0x58')](_0x1345f1[_0x37eb7f('0x6')]),_0x1345f1['name']&&delete _0x1345f1[_0x37eb7f('0x5e')],_0x2aab08[_0x37eb7f('0x53')](_0x458fad)[_0x37eb7f('0x49')](_0x1345f1);};}exports[_0x520795('0x4a')]=function(_0x142993,_0x3aa4ee){const _0x1e1ad6=_0x520795;let _0xfd003b={};const _0x3e5866={},_0x37b054={'count':0x0,'rows':[]},_0x200b7f=_['map'](db[_0x1e1ad6('0xd')][_0x1e1ad6('0x1')],function(_0x4b6b72){const _0xb01495=_0x1e1ad6;return{'name':_0x4b6b72[_0xb01495('0x20')],'type':_0x4b6b72[_0xb01495('0x15')][_0xb01495('0x5a')]};});_0x3e5866['model']=_[_0x1e1ad6('0x9')](_0x200b7f,_0x1e1ad6('0x5e')),_0x3e5866[_0x1e1ad6('0x2b')]=_[_0x1e1ad6('0x7')](_0x142993['query']),_0x3e5866[_0x1e1ad6('0x2c')]=_['intersection'](_0x3e5866[_0x1e1ad6('0x63')],_0x3e5866[_0x1e1ad6('0x2b')]),_0xfd003b[_0x1e1ad6('0x56')]=_['intersection'](_0x3e5866['model'],qs[_0x1e1ad6('0x4c')](_0x142993[_0x1e1ad6('0x2b')]['fields'])),_0xfd003b[_0x1e1ad6('0x56')]=_0xfd003b[_0x1e1ad6('0x56')][_0x1e1ad6('0x37')]?_0xfd003b['attributes']:_0x3e5866[_0x1e1ad6('0x63')];typeof _0x142993[_0x1e1ad6('0x2b')][_0x1e1ad6('0x1f')]===_0x1e1ad6('0x2a')&&(_0xfd003b['limit']=qs['limit'](_0x142993['query'][_0x1e1ad6('0x3b')]),_0xfd003b['offset']=qs['offset'](_0x142993[_0x1e1ad6('0x2b')][_0x1e1ad6('0x24')]));_0xfd003b[_0x1e1ad6('0x10')]=qs['sort'](_0x142993[_0x1e1ad6('0x2b')][_0x1e1ad6('0x4d')]),_0xfd003b['where']=qs[_0x1e1ad6('0x2c')](_['pick'](_0x142993[_0x1e1ad6('0x2b')],_0x3e5866[_0x1e1ad6('0x2c')]),_0x200b7f);_0x142993[_0x1e1ad6('0x2b')]['filter']&&(_0xfd003b[_0x1e1ad6('0x26')]=_[_0x1e1ad6('0xc')](_0xfd003b[_0x1e1ad6('0x26')],{[Op['or']]:_[_0x1e1ad6('0x9')](_0x200b7f,function(_0x162b90){const _0x4dbb51=_0x1e1ad6;if(_0x162b90[_0x4dbb51('0x15')]!==_0x4dbb51('0x22')){const _0x2a4326={};return _0x2a4326[_0x162b90[_0x4dbb51('0x5e')]]={[Op[_0x4dbb51('0x51')]]:'%'+_0x142993[_0x4dbb51('0x2b')][_0x4dbb51('0x14')]+'%'},_0x2a4326;}})}));_0xfd003b=_[_0x1e1ad6('0xc')]({},_0xfd003b,_0x142993[_0x1e1ad6('0x21')]);const _0x91fe7={'where':_0xfd003b['where']};return db['WhatsappMessage'][_0x1e1ad6('0x4e')](_0x91fe7)['then'](function(_0x253009){const _0x3a81b9=_0x1e1ad6;return _0x37b054['count']=_0x253009,_0x142993[_0x3a81b9('0x2b')][_0x3a81b9('0x47')]&&(_0xfd003b['include']=[{'all':!![]}]),db[_0x3a81b9('0xd')]['findAll'](_0xfd003b);})[_0x1e1ad6('0x50')](function(_0x4906fe){return _0x37b054['rows']=_0x4906fe,_0x37b054;})[_0x1e1ad6('0x50')](respondWithFilteredResult(_0x3aa4ee,_0xfd003b))['catch'](handleError(_0x3aa4ee,null));},exports['show']=function(_0x211eff,_0x7db7c){const _0xa6a9e7=_0x520795;let _0x2656ba={'raw':!![],'where':{'id':_0x211eff['params']['id']}};const _0xc7c387={};return _0xc7c387['model']=_[_0xa6a9e7('0x7')](db[_0xa6a9e7('0xd')][_0xa6a9e7('0x1')]),_0xc7c387[_0xa6a9e7('0x2b')]=_['keys'](_0x211eff[_0xa6a9e7('0x2b')]),_0xc7c387[_0xa6a9e7('0x2c')]=_[_0xa6a9e7('0x5')](_0xc7c387['model'],_0xc7c387[_0xa6a9e7('0x2b')]),_0x2656ba[_0xa6a9e7('0x56')]=_[_0xa6a9e7('0x5')](_0xc7c387[_0xa6a9e7('0x63')],qs[_0xa6a9e7('0x4c')](_0x211eff['query'][_0xa6a9e7('0x4c')])),_0x2656ba['attributes']=_0x2656ba[_0xa6a9e7('0x56')][_0xa6a9e7('0x37')]?_0x2656ba['attributes']:_0xc7c387[_0xa6a9e7('0x63')],_0x211eff[_0xa6a9e7('0x2b')]['includeAll']&&(_0x2656ba[_0xa6a9e7('0x62')]=[{'all':!![]}]),_0x2656ba=_[_0xa6a9e7('0xc')]({},_0x2656ba,_0x211eff[_0xa6a9e7('0x21')]),db[_0xa6a9e7('0xd')][_0xa6a9e7('0x52')](_0x2656ba)[_0xa6a9e7('0x50')](handleEntityNotFound(_0x7db7c,null))[_0xa6a9e7('0x50')](respondWithResult(_0x7db7c,null))['catch'](handleError(_0x7db7c,null));},exports['create']=function(_0x1ff38d,_0x3b0650){const _0x144ce1=_0x520795;return db[_0x144ce1('0xd')][_0x144ce1('0x46')](_0x1ff38d[_0x144ce1('0x0')],{})['then'](respondWithResult(_0x3b0650,0xc9))[_0x144ce1('0x5d')](handleError(_0x3b0650,null));},exports['update']=function(_0x1625ee,_0xa4bef8){const _0x4b0d14=_0x520795;return _0x1625ee[_0x4b0d14('0x0')]['id']&&delete _0x1625ee[_0x4b0d14('0x0')]['id'],db[_0x4b0d14('0xd')][_0x4b0d14('0x52')]({'where':{'id':_0x1625ee[_0x4b0d14('0xf')]['id']}})[_0x4b0d14('0x50')](handleEntityNotFound(_0xa4bef8,null))[_0x4b0d14('0x50')](saveUpdates(_0x1625ee[_0x4b0d14('0x0')],null))['then'](respondWithResult(_0xa4bef8,null))[_0x4b0d14('0x5d')](handleError(_0xa4bef8,null));},exports['destroy']=function(_0x4b4ada,_0x84cca5){const _0x8d98bf=_0x520795;return db[_0x8d98bf('0xd')][_0x8d98bf('0x52')]({'where':{'id':_0x4b4ada['params']['id']}})[_0x8d98bf('0x50')](handleEntityNotFound(_0x84cca5,null))[_0x8d98bf('0x50')](removeEntity(_0x84cca5,null))[_0x8d98bf('0x5d')](handleError(_0x84cca5,null));},exports['describe']=function(_0x7286a4,_0x15c0d9){const _0x143b4b=_0x520795;return db[_0x143b4b('0xd')]['describe']()[_0x143b4b('0x50')](respondWithResult(_0x15c0d9,null))[_0x143b4b('0x5d')](handleError(_0x15c0d9,null));},exports[_0x520795('0x3')]=function(_0x83d784,_0x329562){const _0x5bc157=_0x520795,_0x414419={'channel':_0x5bc157('0x25')};return _0x83d784['body']['id']&&delete _0x83d784[_0x5bc157('0x0')]['id'],_0x83d784['body']['read']=!![],_0x83d784['body']['readAt']=moment()[_0x5bc157('0x1d')]('YYYY-MM-DD\x20HH:mm:ss'),_0x83d784[_0x5bc157('0x0')][_0x5bc157('0x36')]=_0x83d784[_0x5bc157('0x0')][_0x5bc157('0x36')]||_0x83d784[_0x5bc157('0x5f')]['id'],db[_0x5bc157('0xd')]['findOne']({'where':{'id':_0x83d784['params']['id'],'UserId':null},'include':[{'model':db[_0x5bc157('0x23')],'as':_0x5bc157('0x33')}]})[_0x5bc157('0x50')](handleEntityNotFound(_0x329562,null))[_0x5bc157('0x50')](saveUpdates(_0x83d784[_0x5bc157('0x0')],null))[_0x5bc157('0x50')](function(_0x512752){const _0x43cc48=_0x5bc157;if(_0x512752)return _0x414419[_0x43cc48('0x42')]=_0x512752[_0x43cc48('0x8')]({'plain':!![]}),db[_0x43cc48('0x48')][_0x43cc48('0x52')]({'where':{'id':_0x512752[_0x43cc48('0x19')]}});return null;})[_0x5bc157('0x50')](handleEntityNotFound(_0x329562,null))[_0x5bc157('0x50')](function(_0x73a0b7){const _0x273ffd=_0x5bc157;if(_0x73a0b7)return _0x73a0b7[_0x273ffd('0xa')]({'UserId':_0x83d784[_0x273ffd('0x0')]['UserId'],'read1stAt':_['isNil'](_0x73a0b7[_0x273ffd('0x4')])?moment()[_0x273ffd('0x1d')](_0x273ffd('0x5c')):undefined});return null;})[_0x5bc157('0x50')](function(_0x277f72){const _0x36bcf7=_0x5bc157;if(_0x277f72)return _0x414419[_0x36bcf7('0x31')]=_0x277f72[_0x36bcf7('0x8')]({'plain':!![]}),interaction_log[_0x36bcf7('0x61')](_0x36bcf7('0x28'),_0x83d784['user']['id'],_0x83d784[_0x36bcf7('0x5f')][_0x36bcf7('0x5e')],_0x83d784['user']['role'],_0x414419[_0x36bcf7('0x31')]['id'],_0x83d784[_0x36bcf7('0x0')]?JSON[_0x36bcf7('0x17')](_0x83d784[_0x36bcf7('0x0')]):_0x36bcf7('0x34')),respondWithRpcPromise(_0x36bcf7('0xb'),'acceptMessage',_0x414419);return null;})[_0x5bc157('0x50')](function(_0xfbc2f0){const _0x199aeb=_0x5bc157;if(_0xfbc2f0){if(_0x83d784['body'][_0x199aeb('0x3e')])return _0x414419[_0x199aeb('0x42')][_0x199aeb('0x64')]=util[_0x199aeb('0x1d')](_0x199aeb('0x39'),_0x83d784[_0x199aeb('0x5f')]['name']),_0x414419[_0x199aeb('0x42')][_0x199aeb('0x40')]=_0x414419[_0x199aeb('0x40')],_0x414419['message']['event']='accept',respondWithRpcPromise(_0x199aeb('0x11'),_0x199aeb('0x11'),{'event':_0x199aeb('0x1b'),'message':_0x414419[_0x199aeb('0x42')]},client9002)[_0x199aeb('0x50')](function(){return _0x414419;});return _0x414419;}return null;})['then'](respondWithResult(_0x329562,null))[_0x5bc157('0x5d')](handleError(_0x329562,null));},exports[_0x520795('0x30')]=function(_0x42ed22,_0x45a50c){const _0x1835a6=_0x520795,_0x2cdc63={'agent':{},'channel':_0x1835a6('0x25')};return _0x42ed22[_0x1835a6('0x0')]['id']&&delete _0x42ed22[_0x1835a6('0x0')]['id'],_0x42ed22[_0x1835a6('0x0')][_0x1835a6('0x36')]=_0x42ed22[_0x1835a6('0x0')]['UserId']||_0x42ed22['user']['id'],_0x2cdc63[_0x1835a6('0x32')]['id']=_0x42ed22[_0x1835a6('0x0')][_0x1835a6('0x36')],db[_0x1835a6('0xd')][_0x1835a6('0x52')]({'where':{'id':_0x42ed22[_0x1835a6('0xf')]['id'],'UserId':null}})[_0x1835a6('0x50')](handleEntityNotFound(_0x45a50c,null))[_0x1835a6('0x50')](function(_0x54df85){const _0x194c82=_0x1835a6;if(_0x54df85)return _0x2cdc63[_0x194c82('0x42')]=_0x54df85[_0x194c82('0x8')]({'plain':!![]}),db[_0x194c82('0x48')]['findOne']({'where':{'id':_0x54df85[_0x194c82('0x19')]}});return null;})[_0x1835a6('0x50')](handleEntityNotFound(_0x45a50c,null))[_0x1835a6('0x50')](function(_0x7b2270){const _0x356424=_0x1835a6;if(_0x7b2270)return _0x2cdc63[_0x356424('0x31')]=_0x7b2270[_0x356424('0x8')]({'plain':!![]}),interaction_log[_0x356424('0x61')]('[WHATSAPPMESSAGE:REJECT]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x42ed22[_0x356424('0x5f')]['id'],_0x42ed22[_0x356424('0x5f')]['name'],_0x42ed22[_0x356424('0x5f')][_0x356424('0x45')],_0x2cdc63[_0x356424('0x31')]['id'],_0x42ed22[_0x356424('0x0')]?JSON['stringify'](_0x42ed22[_0x356424('0x0')]):_0x356424('0x34')),respondWithRpcPromise('RejectMessage',_0x356424('0x2'),_0x2cdc63);return null;})[_0x1835a6('0x50')](function(_0x7e8364){const _0x5855b9=_0x1835a6;if(_0x7e8364)return _0x7e8364['message'][_0x5855b9('0x64')]=util['format'](_0x5855b9('0x39'),_0x42ed22[_0x5855b9('0x5f')][_0x5855b9('0x5e')]),_0x7e8364['message']['channel']=_0x2cdc63[_0x5855b9('0x40')],_0x7e8364['message']['event']=_0x5855b9('0x30'),respondWithRpcPromise(_0x5855b9('0x11'),_0x5855b9('0x11'),{'event':'rejectmessage','message':_0x7e8364[_0x5855b9('0x42')]},client9002),_0x2cdc63;return null;})[_0x1835a6('0x50')](respondWithResult(_0x45a50c,null))[_0x1835a6('0x5d')](handleError(_0x45a50c,null));},exports[_0x520795('0x53')]=function(_0x3bd607,_0x559ab3){const _0x189b4b=_0x520795;_0x3bd607[_0x189b4b('0x0')]['id']&&delete _0x3bd607[_0x189b4b('0x0')]['id'];let _0x3e7f6b;return db['WhatsappMessage']['findOne']({'where':{'id':_0x3bd607[_0x189b4b('0xf')]['id']}})['then'](handleEntityNotFound(_0x559ab3,null))['then'](function(_0x596dc4){const _0xf83c13=_0x189b4b;if(_0x596dc4)return _0x3e7f6b=_0x596dc4,db[_0xf83c13('0x5b')][_0xf83c13('0x52')]({'where':{'id':_0x596dc4[_0xf83c13('0x2e')]}});})[_0x189b4b('0x50')](handleEntityNotFound(_0x559ab3,null))['then'](function(_0x2f9c91){const _0x3e8feb=_0x189b4b;if(_0x2f9c91){logger[_0x3e8feb('0x57')](_0x3e8feb('0x13'),'status',_0x3e8feb('0x4f'),_0x2f9c91[_0x3e8feb('0x15')],util[_0x3e8feb('0x54')](_0x3bd607[_0x3e8feb('0x0')],{'showHidden':![],'depth':null}));switch(_0x2f9c91[_0x3e8feb('0x15')]){case _0x3e8feb('0x1e'):if(_0x3bd607[_0x3e8feb('0x0')][_0x3e8feb('0x18')]&&_0x3bd607[_0x3e8feb('0x0')][_0x3e8feb('0x18')]===_0x3e7f6b[_0x3e8feb('0x1a')]&&_0x3bd607['body'][_0x3e8feb('0x2f')]&&_0x3bd607[_0x3e8feb('0x0')][_0x3e8feb('0x2f')]==='read')return _0x3e7f6b['update']({'read':!![]});else logger[_0x3e8feb('0x58')](_0x3e8feb('0x3c'),_0x3e8feb('0x53'),_0x3e8feb('0x1e'),util[_0x3e8feb('0x54')](_0x3bd607[_0x3e8feb('0x0')],{'showHidden':![],'depth':null}));break;}return _0x3e7f6b;}})['then'](respondWithResult(_0x559ab3,null))[_0x189b4b('0x5d')](handleError(_0x559ab3,null));}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.events.js b/server/api/whatsappMessage/whatsappMessage.events.js index 0df6f7e..c38f228 100644 --- a/server/api/whatsappMessage/whatsappMessage.events.js +++ b/server/api/whatsappMessage/whatsappMessage.events.js @@ -1 +1 @@ -const a802_0xb7ae=['update','emit','../../mysqldb','undefined','setMaxListeners','WhatsappMessage'];(function(_0x2eeed4,_0xb7ae07){const _0xae27af=function(_0x5b9f88){while(--_0x5b9f88){_0x2eeed4['push'](_0x2eeed4['shift']());}};_0xae27af(++_0xb7ae07);}(a802_0xb7ae,0x1c4));const a802_0xae27=function(_0x2eeed4,_0xb7ae07){_0x2eeed4=_0x2eeed4-0x0;let _0xae27af=a802_0xb7ae[_0x2eeed4];return _0xae27af;};const _0x4540aa=a802_0xae27;'use strict';const EventEmitter=require('events'),WhatsappMessage=require(_0x4540aa('0x0'))['db'][_0x4540aa('0x3')],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents[_0x4540aa('0x2')](0x0);const events={'afterCreate':'save','afterUpdate':_0x4540aa('0x4'),'afterDestroy':'remove'};function emitEvent(_0x5b9f88){return function(_0x2ea322){const _0x1f5e15=a802_0xae27;WhatsappMessageEvents[_0x1f5e15('0x5')](_0x5b9f88+':'+_0x2ea322['id'],_0x2ea322),WhatsappMessageEvents[_0x1f5e15('0x5')](_0x5b9f88,_0x2ea322);};}for(const e in events){if(typeof events[e]!==_0x4540aa('0x1')){const event=events[e];WhatsappMessage['addHook'](e,emitEvent(event));}}module['exports']=WhatsappMessageEvents; \ No newline at end of file +const a802_0x85b6=['../../mysqldb','addHook','update','events','WhatsappMessage','exports','save','emit','undefined'];(function(_0x3aade2,_0x85b6a1){const _0x4a6c87=function(_0x55ff15){while(--_0x55ff15){_0x3aade2['push'](_0x3aade2['shift']());}};_0x4a6c87(++_0x85b6a1);}(a802_0x85b6,0x1c9));const a802_0x4a6c=function(_0x3aade2,_0x85b6a1){_0x3aade2=_0x3aade2-0x0;let _0x4a6c87=a802_0x85b6[_0x3aade2];return _0x4a6c87;};const _0x14bf29=a802_0x4a6c;'use strict';const EventEmitter=require(_0x14bf29('0x5')),WhatsappMessage=require(_0x14bf29('0x2'))['db'][_0x14bf29('0x6')],WhatsappMessageEvents=new EventEmitter();WhatsappMessageEvents['setMaxListeners'](0x0);const events={'afterCreate':_0x14bf29('0x8'),'afterUpdate':_0x14bf29('0x4'),'afterDestroy':'remove'};function emitEvent(_0x55ff15){return function(_0x42993e){const _0x15c412=a802_0x4a6c;WhatsappMessageEvents['emit'](_0x55ff15+':'+_0x42993e['id'],_0x42993e),WhatsappMessageEvents[_0x15c412('0x0')](_0x55ff15,_0x42993e);};}for(const e in events){if(typeof events[e]!==_0x14bf29('0x1')){const event=events[e];WhatsappMessage[_0x14bf29('0x3')](e,emitEvent(event));}}module[_0x14bf29('0x7')]=WhatsappMessageEvents; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.model.js b/server/api/whatsappMessage/whatsappMessage.model.js index f0c3fc7..65f32a7 100644 --- a/server/api/whatsappMessage/whatsappMessage.model.js +++ b/server/api/whatsappMessage/whatsappMessage.model.js @@ -1 +1 @@ -const a803_0x5088=['update','catch','utf8mb4_unicode_ci','out','FULLTEXT','api','error','afterCreate','exports','./whatsappMessage.attributes','/status?token=','phone','twilio','create','../../config/logger','remote','isNil','define','Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken','direction','UserId','authToken','inspect','fti_whatsapp_messages','WhatsappInteractionId','models','WhatsappAccountId','get','lodash','toLowerCase','type','then','/api/whatsapp/messages/','accountSid','secret','messageId','createdAt','finally','WhatsappMessage','WhatsappMessage,\x20%s,\x20%s,\x20%s','sid'];(function(_0x319676,_0x508833){const _0x21292c=function(_0x1fb5da){while(--_0x1fb5da){_0x319676['push'](_0x319676['shift']());}};_0x21292c(++_0x508833);}(a803_0x5088,0x1c3));const a803_0x2129=function(_0x319676,_0x508833){_0x319676=_0x319676-0x0;let _0x21292c=a803_0x5088[_0x319676];return _0x21292c;};const _0x103f7f=a803_0x2129;'use strict';const _=require(_0x103f7f('0x1c')),util=require('util'),logger=require(_0x103f7f('0xe'))(_0x103f7f('0x5')),attributes=require(_0x103f7f('0x9'));module[_0x103f7f('0x8')]=function(_0x1fb5da){const _0x4ecb1b=_0x103f7f,_0x46bf29=_0x1fb5da[_0x4ecb1b('0x19')],_0x24f9cb=_0x1fb5da[_0x4ecb1b('0x11')](_0x4ecb1b('0x26'),attributes,{'tableName':'whatsapp_messages','paranoid':![],'indexes':[{'name':_0x4ecb1b('0x23'),'fields':[_0x4ecb1b('0x23')]},{'name':_0x4ecb1b('0x17'),'fields':['body'],'type':_0x4ecb1b('0x4')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x1c7af4){const _0x49afc8=_0x4ecb1b,_0x171a0c=_0x1c7af4[_0x49afc8('0x1b')]({'plain':!![]});(_0x171a0c['direction']['toLowerCase']()==='in'||_0x171a0c[_0x49afc8('0x13')][_0x49afc8('0x1d')]()===_0x49afc8('0x3')&&!_0x171a0c[_0x49afc8('0x22')]&&!_[_0x49afc8('0x10')](_0x171a0c[_0x49afc8('0x14')]))&&_0x46bf29['WhatsappInteraction']['findOne']({'where':{'id':_0x171a0c[_0x49afc8('0x18')]}})[_0x49afc8('0x1f')](function(_0x2dddc9){const _0x461889=_0x49afc8;_0x2dddc9&&_0x2dddc9[_0x461889('0x0')]({'lastMsgAt':_0x171a0c[_0x461889('0x24')],'lastMsgDirection':_0x171a0c[_0x461889('0x13')][_0x461889('0x1d')]()});})[_0x49afc8('0x1')](function(_0x4ee2cc){console['error'](_0x4ee2cc);});if(_0x171a0c['direction']==='out'&&!_0x171a0c[_0x49afc8('0x22')]){let _0x70286d;_0x46bf29['WhatsappAccount']['findOne']({'where':{'id':_0x171a0c[_0x49afc8('0x1a')]},'raw':!![]})[_0x49afc8('0x1f')](function(_0x433c18){const _0x5e12eb=_0x49afc8;_0x70286d=_0x433c18;if(_0x70286d&&_0x70286d[_0x5e12eb('0x1e')])switch(_0x70286d[_0x5e12eb('0x1e')]){case _0x5e12eb('0xc'):{const _0x3df0d6=require(_0x5e12eb('0xc'));if(_0x70286d[_0x5e12eb('0x21')]&&_0x70286d[_0x5e12eb('0x15')]&&_0x70286d[_0x5e12eb('0xb')]){const _0x7a6e25=new _0x3df0d6(_0x70286d['accountSid'],_0x70286d[_0x5e12eb('0x15')]);_0x7a6e25['messages'][_0x5e12eb('0xd')]({'body':_0x171a0c['body'],'to':'whatsapp:'+_0x171a0c[_0x5e12eb('0xb')],'from':'whatsapp:'+_0x70286d[_0x5e12eb('0xb')],'statusCallback':_0x70286d[_0x5e12eb('0xf')]+_0x5e12eb('0x20')+_0x171a0c['id']+_0x5e12eb('0xa')+_0x70286d['token']})[_0x5e12eb('0x1f')](function(_0x4d2f2a){const _0x373c12=_0x5e12eb;if(_0x4d2f2a[_0x373c12('0x28')])return _0x1c7af4[_0x373c12('0x0')]({'messageId':_0x4d2f2a['sid']});})[_0x5e12eb('0x1')](function(_0x44ea58){const _0x505156=_0x5e12eb;logger[_0x505156('0x6')](_0x505156('0x27'),'afterCreate',_0x505156('0xc'),util[_0x505156('0x16')](_0x44ea58,{'showHidden':![],'depth':null}));});}else logger['error'](_0x5e12eb('0x27'),_0x5e12eb('0x7'),_0x5e12eb('0xc'),_0x5e12eb('0x12'));}break;}})[_0x49afc8('0x25')](function(){return null;});}else return null;}},'charset':'utf8mb4','collate':_0x4ecb1b('0x2')});return _0x24f9cb;}; \ No newline at end of file +const a803_0x3992=['then','fti_whatsapp_messages','WhatsappAccountId','twilio','out','/api/whatsapp/messages/','whatsapp_messages','util','direction','error','api','catch','secret','token','accountSid','UserId','phone','./whatsappMessage.attributes','WhatsappInteraction','afterCreate','utf8mb4_unicode_ci','sid','whatsapp:','/status?token=','update','utf8mb4','WhatsappMessage','exports','remote','body','define','messageId','isNil','authToken','WhatsappInteractionId','FULLTEXT','WhatsappMessage,\x20%s,\x20%s,\x20%s','toLowerCase','createdAt','inspect','type','findOne'];(function(_0x3a2300,_0x3992b1){const _0x226dce=function(_0x49ac9e){while(--_0x49ac9e){_0x3a2300['push'](_0x3a2300['shift']());}};_0x226dce(++_0x3992b1);}(a803_0x3992,0x161));const a803_0x226d=function(_0x3a2300,_0x3992b1){_0x3a2300=_0x3a2300-0x0;let _0x226dce=a803_0x3992[_0x3a2300];return _0x226dce;};const _0x55ae96=a803_0x226d;'use strict';const _=require('lodash'),util=require(_0x55ae96('0x20')),logger=require('../../config/logger')(_0x55ae96('0x23')),attributes=require(_0x55ae96('0x0'));module[_0x55ae96('0xa')]=function(_0x49ac9e){const _0x15d160=_0x55ae96,_0x328d92=_0x49ac9e['models'],_0x29e564=_0x49ac9e[_0x15d160('0xd')](_0x15d160('0x9'),attributes,{'tableName':_0x15d160('0x1f'),'paranoid':![],'indexes':[{'name':_0x15d160('0xe'),'fields':[_0x15d160('0xe')]},{'name':_0x15d160('0x1a'),'fields':['body'],'type':_0x15d160('0x12')}],'timestamps':!![],'hooks':{'afterCreate':function(_0x11846c){const _0xdff591=_0x15d160,_0x3ab19d=_0x11846c['get']({'plain':!![]});(_0x3ab19d[_0xdff591('0x21')][_0xdff591('0x14')]()==='in'||_0x3ab19d[_0xdff591('0x21')][_0xdff591('0x14')]()===_0xdff591('0x1d')&&!_0x3ab19d['secret']&&!_[_0xdff591('0xf')](_0x3ab19d[_0xdff591('0x28')]))&&_0x328d92[_0xdff591('0x1')][_0xdff591('0x18')]({'where':{'id':_0x3ab19d[_0xdff591('0x11')]}})['then'](function(_0x415871){const _0x47117=_0xdff591;_0x415871&&_0x415871[_0x47117('0x7')]({'lastMsgAt':_0x3ab19d[_0x47117('0x15')],'lastMsgDirection':_0x3ab19d['direction']['toLowerCase']()});})[_0xdff591('0x24')](function(_0xbcd5ab){const _0x15d578=_0xdff591;console[_0x15d578('0x22')](_0xbcd5ab);});if(_0x3ab19d[_0xdff591('0x21')]===_0xdff591('0x1d')&&!_0x3ab19d[_0xdff591('0x25')]){let _0x26eeca;_0x328d92['WhatsappAccount']['findOne']({'where':{'id':_0x3ab19d[_0xdff591('0x1b')]},'raw':!![]})[_0xdff591('0x19')](function(_0x4fdd42){const _0x1f93f8=_0xdff591;_0x26eeca=_0x4fdd42;if(_0x26eeca&&_0x26eeca[_0x1f93f8('0x17')])switch(_0x26eeca['type']){case _0x1f93f8('0x1c'):{const _0x18a395=require(_0x1f93f8('0x1c'));if(_0x26eeca[_0x1f93f8('0x27')]&&_0x26eeca[_0x1f93f8('0x10')]&&_0x26eeca[_0x1f93f8('0x29')]){const _0x3fe3c5=new _0x18a395(_0x26eeca[_0x1f93f8('0x27')],_0x26eeca[_0x1f93f8('0x10')]);_0x3fe3c5['messages']['create']({'body':_0x3ab19d[_0x1f93f8('0xc')],'to':_0x1f93f8('0x5')+_0x3ab19d['phone'],'from':_0x1f93f8('0x5')+_0x26eeca[_0x1f93f8('0x29')],'statusCallback':_0x26eeca[_0x1f93f8('0xb')]+_0x1f93f8('0x1e')+_0x3ab19d['id']+_0x1f93f8('0x6')+_0x26eeca[_0x1f93f8('0x26')]})['then'](function(_0x5b971d){const _0x47972b=_0x1f93f8;if(_0x5b971d[_0x47972b('0x4')])return _0x11846c[_0x47972b('0x7')]({'messageId':_0x5b971d[_0x47972b('0x4')]});})[_0x1f93f8('0x24')](function(_0x307f1d){const _0x864ae7=_0x1f93f8;logger['error'](_0x864ae7('0x13'),_0x864ae7('0x2'),_0x864ae7('0x1c'),util[_0x864ae7('0x16')](_0x307f1d,{'showHidden':![],'depth':null}));});}else logger[_0x1f93f8('0x22')](_0x1f93f8('0x13'),_0x1f93f8('0x2'),_0x1f93f8('0x1c'),'Missing\x20parameters:\x20phone,\x20accountSid\x20or\x20authToken');}break;}})['finally'](function(){return null;});}else return null;}},'charset':_0x15d160('0x8'),'collate':_0x15d160('0x3')});return _0x29e564;}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.rpc.js b/server/api/whatsappMessage/whatsappMessage.rpc.js index 642bf2c..7b81567 100644 --- a/server/api/whatsappMessage/whatsappMessage.rpc.js +++ b/server/api/whatsappMessage/whatsappMessage.rpc.js @@ -1 +1 @@ -const a804_0x5bfb=['rpc','create','options','WhatsappMessage','then','stringify','debug','../../mysqldb','CreateWhatsappMessage','./whatsappMessage.socket','raw','info','../../config/logger','message','error'];(function(_0xdc9489,_0x5bfb09){const _0x495adb=function(_0x4a6085){while(--_0x4a6085){_0xdc9489['push'](_0xdc9489['shift']());}};_0x495adb(++_0x5bfb09);}(a804_0x5bfb,0x1e6));const a804_0x495a=function(_0xdc9489,_0x5bfb09){_0xdc9489=_0xdc9489-0x0;let _0x495adb=a804_0x5bfb[_0xdc9489];return _0x495adb;};const _0x596e5e=a804_0x495a;'use strict';const db=require(_0x596e5e('0x1'))['db'],logger=require(_0x596e5e('0x6'))(_0x596e5e('0x9')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0x596e5e('0x3'))['register'](socket),exports[_0x596e5e('0x2')]=function(_0x4a6085){const _0x1f35eb=this;return new Promise(function(_0x1f16e5,_0x585f96){const _0x5e782e=a804_0x495a;return db[_0x5e782e('0xc')][_0x5e782e('0xa')](_0x4a6085['body'],{'raw':_0x4a6085[_0x5e782e('0xb')]?_0x4a6085[_0x5e782e('0xb')][_0x5e782e('0x4')]===undefined?!![]:![]:!![]})[_0x5e782e('0xd')](function(_0x2c6d90){const _0x55e71f=_0x5e782e;logger[_0x55e71f('0x5')](_0x55e71f('0x2'),_0x4a6085),logger[_0x55e71f('0x0')](_0x55e71f('0x2'),_0x4a6085,JSON[_0x55e71f('0xe')](_0x2c6d90)),_0x1f16e5(_0x2c6d90);})['catch'](function(_0x24d0be){const _0x42a7ce=_0x5e782e;logger['error']('CreateWhatsappMessage',_0x24d0be['message'],_0x4a6085),_0x585f96(_0x1f35eb[_0x42a7ce('0x8')](0x1f4,_0x24d0be[_0x42a7ce('0x7')]));});});}; \ No newline at end of file +const a804_0xe5a3=['../../config/logger','WhatsappMessage','./whatsappMessage.socket','message','body','options','create','../../rediscache','../../mysqldb','CreateWhatsappMessage','error','info','stringify','debug'];(function(_0x4438fa,_0xe5a3e){const _0x1149b9=function(_0x3992a7){while(--_0x3992a7){_0x4438fa['push'](_0x4438fa['shift']());}};_0x1149b9(++_0xe5a3e);}(a804_0xe5a3,0x167));const a804_0x1149=function(_0x4438fa,_0xe5a3e){_0x4438fa=_0x4438fa-0x0;let _0x1149b9=a804_0xe5a3[_0x4438fa];return _0x1149b9;};const _0x57f210=a804_0x1149;'use strict';const db=require(_0x57f210('0xd'))['db'],logger=require(_0x57f210('0x5'))('rpc'),{getSocket}=require(_0x57f210('0xc')),socket=getSocket();require(_0x57f210('0x7'))['register'](socket),exports['CreateWhatsappMessage']=function(_0x3992a7){const _0x4058e8=this;return new Promise(function(_0x39b019,_0x1239e2){const _0x3a5ac8=a804_0x1149;return db[_0x3a5ac8('0x6')][_0x3a5ac8('0xb')](_0x3992a7[_0x3a5ac8('0x9')],{'raw':_0x3992a7[_0x3a5ac8('0xa')]?_0x3992a7[_0x3a5ac8('0xa')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x4e40fa){const _0x3d299a=_0x3a5ac8;logger[_0x3d299a('0x2')](_0x3d299a('0x0'),_0x3992a7),logger[_0x3d299a('0x4')](_0x3d299a('0x0'),_0x3992a7,JSON[_0x3d299a('0x3')](_0x4e40fa)),_0x39b019(_0x4e40fa);})['catch'](function(_0x197d2f){const _0x48c3f2=_0x3a5ac8;logger[_0x48c3f2('0x1')](_0x48c3f2('0x0'),_0x197d2f[_0x48c3f2('0x8')],_0x3992a7),_0x1239e2(_0x4058e8['error'](0x1f4,_0x197d2f['message']));});});}; \ No newline at end of file diff --git a/server/api/whatsappMessage/whatsappMessage.socket.js b/server/api/whatsappMessage/whatsappMessage.socket.js index 1bb6e02..60c613f 100644 --- a/server/api/whatsappMessage/whatsappMessage.socket.js +++ b/server/api/whatsappMessage/whatsappMessage.socket.js @@ -1 +1 @@ -const a805_0x4b22=['update','whatsappMessage:','emit','length','register','remove'];(function(_0x6241ec,_0x4b2244){const _0x5a669f=function(_0x5445bb){while(--_0x5445bb){_0x6241ec['push'](_0x6241ec['shift']());}};_0x5a669f(++_0x4b2244);}(a805_0x4b22,0x1e1));const a805_0x5a66=function(_0x6241ec,_0x4b2244){_0x6241ec=_0x6241ec-0x0;let _0x5a669f=a805_0x4b22[_0x6241ec];return _0x5a669f;};const _0x99e32f=a805_0x5a66;'use strict';const WhatsappMessageEvents=require('./whatsappMessage.events'),events=['save',_0x99e32f('0x4'),_0x99e32f('0x5')];function createListener(_0x5445bb,_0x328580){return function(_0x30c42a){const _0x5b58db=a805_0x5a66;_0x328580[_0x5b58db('0x1')](_0x5445bb,_0x30c42a);};}exports[_0x99e32f('0x3')]=function(_0x113047){const _0x1ed145=_0x99e32f;for(let _0xad1115=0x0,_0x57c4bd=events[_0x1ed145('0x2')];_0xad1115<_0x57c4bd;_0xad1115++){const _0x189ba1=events[_0xad1115],_0xfb0e97=createListener(_0x1ed145('0x0')+_0x189ba1,_0x113047);WhatsappMessageEvents['on'](_0x189ba1,_0xfb0e97);}}; \ No newline at end of file +const a805_0x26bd=['update','emit','save','register','remove','length','./whatsappMessage.events'];(function(_0x187581,_0x26bdbd){const _0x4eaac5=function(_0x1e6ed7){while(--_0x1e6ed7){_0x187581['push'](_0x187581['shift']());}};_0x4eaac5(++_0x26bdbd);}(a805_0x26bd,0x9c));const a805_0x4eaa=function(_0x187581,_0x26bdbd){_0x187581=_0x187581-0x0;let _0x4eaac5=a805_0x26bd[_0x187581];return _0x4eaac5;};const _0x2bdbe4=a805_0x4eaa;'use strict';const WhatsappMessageEvents=require(_0x2bdbe4('0x4')),events=[_0x2bdbe4('0x0'),_0x2bdbe4('0x2'),_0x2bdbe4('0x5')];function createListener(_0x1e6ed7,_0x19a3b3){return function(_0x5f2efe){const _0x305be6=a805_0x4eaa;_0x19a3b3[_0x305be6('0x6')](_0x1e6ed7,_0x5f2efe);};}exports[_0x2bdbe4('0x1')]=function(_0x398d9d){const _0xea9388=_0x2bdbe4;for(let _0x3db5a4=0x0,_0x1e8a04=events[_0xea9388('0x3')];_0x3db5a4<_0x1e8a04;_0x3db5a4++){const _0x4e32f0=events[_0x3db5a4],_0x17475c=createListener('whatsappMessage:'+_0x4e32f0,_0x398d9d);WhatsappMessageEvents['on'](_0x4e32f0,_0x17475c);}}; \ No newline at end of file diff --git a/server/api/whatsappQueue/index.js b/server/api/whatsappQueue/index.js index 3a94e0d..b2f9730 100644 --- a/server/api/whatsappQueue/index.js +++ b/server/api/whatsappQueue/index.js @@ -1 +1 @@ -const a806_0x23a7=['isAuthenticated','delete','/:id/teams','describe','get','/:id','create','./whatsappQueue.controller','post','removeAgents','index','/describe','addAgents','removeTeams','addTeams','getTeams','/:id/members','destroy','Router','../../components/auth/service','/:id/users','exports','show','update'];(function(_0x2ce124,_0x23a7c9){const _0x3d530f=function(_0x4c2674){while(--_0x4c2674){_0x2ce124['push'](_0x2ce124['shift']());}};_0x3d530f(++_0x23a7c9);}(a806_0x23a7,0xde));const a806_0x3d53=function(_0x2ce124,_0x23a7c9){_0x2ce124=_0x2ce124-0x0;let _0x3d530f=a806_0x23a7[_0x2ce124];return _0x3d530f;};const _0x52314b=a806_0x3d53;'use strict';const express=require('express'),router=express[_0x52314b('0xc')](),auth=require(_0x52314b('0xd')),controller=require(_0x52314b('0x1'));router[_0x52314b('0x16')]('/',auth[_0x52314b('0x12')](),controller[_0x52314b('0x4')]),router[_0x52314b('0x16')](_0x52314b('0x5'),auth[_0x52314b('0x12')](),controller[_0x52314b('0x15')]),router[_0x52314b('0x16')](_0x52314b('0x17'),auth[_0x52314b('0x12')](),controller[_0x52314b('0x10')]),router[_0x52314b('0x16')](_0x52314b('0xa'),auth[_0x52314b('0x12')](),controller['getMembers']),router['get'](_0x52314b('0x14'),auth[_0x52314b('0x12')](),controller[_0x52314b('0x9')]),router[_0x52314b('0x16')](_0x52314b('0xe'),auth[_0x52314b('0x12')](),controller['getAgents']),router[_0x52314b('0x2')]('/',auth[_0x52314b('0x12')](),controller[_0x52314b('0x0')]),router[_0x52314b('0x2')](_0x52314b('0x14'),auth[_0x52314b('0x12')](),controller[_0x52314b('0x8')]),router[_0x52314b('0x2')](_0x52314b('0xe'),auth[_0x52314b('0x12')](),controller[_0x52314b('0x6')]),router['put'](_0x52314b('0x17'),auth[_0x52314b('0x12')](),controller[_0x52314b('0x11')]),router[_0x52314b('0x13')](_0x52314b('0x17'),auth[_0x52314b('0x12')](),controller[_0x52314b('0xb')]),router[_0x52314b('0x13')](_0x52314b('0x14'),auth[_0x52314b('0x12')](),controller[_0x52314b('0x7')]),router[_0x52314b('0x13')](_0x52314b('0xe'),auth[_0x52314b('0x12')](),controller[_0x52314b('0x3')]),module[_0x52314b('0xf')]=router; \ No newline at end of file +const a806_0x20aa=['/describe','removeAgents','removeTeams','create','update','exports','./whatsappQueue.controller','Router','/:id/teams','getMembers','/:id/members','express','destroy','../../components/auth/service','/:id','get','describe','isAuthenticated','delete','index','getTeams','post','/:id/users','addTeams','put','addAgents','show'];(function(_0x56b733,_0x20aae0){const _0x2df9fd=function(_0x7f2201){while(--_0x7f2201){_0x56b733['push'](_0x56b733['shift']());}};_0x2df9fd(++_0x20aae0);}(a806_0x20aa,0x1e7));const a806_0x2df9=function(_0x56b733,_0x20aae0){_0x56b733=_0x56b733-0x0;let _0x2df9fd=a806_0x20aa[_0x56b733];return _0x2df9fd;};const _0x58fd37=a806_0x2df9;'use strict';const express=require(_0x58fd37('0xa')),router=express[_0x58fd37('0x6')](),auth=require(_0x58fd37('0xc')),controller=require(_0x58fd37('0x5'));router['get']('/',auth[_0x58fd37('0x10')](),controller[_0x58fd37('0x12')]),router['get'](_0x58fd37('0x1a'),auth[_0x58fd37('0x10')](),controller[_0x58fd37('0xf')]),router[_0x58fd37('0xe')](_0x58fd37('0xd'),auth[_0x58fd37('0x10')](),controller[_0x58fd37('0x19')]),router[_0x58fd37('0xe')](_0x58fd37('0x9'),auth[_0x58fd37('0x10')](),controller[_0x58fd37('0x8')]),router[_0x58fd37('0xe')](_0x58fd37('0x7'),auth[_0x58fd37('0x10')](),controller[_0x58fd37('0x13')]),router[_0x58fd37('0xe')](_0x58fd37('0x15'),auth['isAuthenticated'](),controller['getAgents']),router['post']('/',auth[_0x58fd37('0x10')](),controller[_0x58fd37('0x2')]),router['post'](_0x58fd37('0x7'),auth[_0x58fd37('0x10')](),controller[_0x58fd37('0x16')]),router[_0x58fd37('0x14')](_0x58fd37('0x15'),auth['isAuthenticated'](),controller[_0x58fd37('0x18')]),router[_0x58fd37('0x17')](_0x58fd37('0xd'),auth['isAuthenticated'](),controller[_0x58fd37('0x3')]),router[_0x58fd37('0x11')](_0x58fd37('0xd'),auth[_0x58fd37('0x10')](),controller[_0x58fd37('0xb')]),router[_0x58fd37('0x11')](_0x58fd37('0x7'),auth[_0x58fd37('0x10')](),controller[_0x58fd37('0x1')]),router['delete']('/:id/users',auth['isAuthenticated'](),controller[_0x58fd37('0x0')]),module[_0x58fd37('0x4')]=router; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.attributes.js b/server/api/whatsappQueue/whatsappQueue.attributes.js index 7c465a2..be6205f 100644 --- a/server/api/whatsappQueue/whatsappQueue.attributes.js +++ b/server/api/whatsappQueue/whatsappQueue.attributes.js @@ -1 +1 @@ -const a807_0x5ab2=['roundrobin','sequelize','rrmemory','STRING','beepall','ENUM'];(function(_0x393b98,_0x5ab221){const _0x341640=function(_0x26008d){while(--_0x26008d){_0x393b98['push'](_0x393b98['shift']());}};_0x341640(++_0x5ab221);}(a807_0x5ab2,0x173));const a807_0x3416=function(_0x393b98,_0x5ab221){_0x393b98=_0x393b98-0x0;let _0x341640=a807_0x5ab2[_0x393b98];return _0x341640;};const _0x57f995=a807_0x3416;'use strict';const Sequelize=require(_0x57f995('0x2'));module['exports']={'name':{'type':Sequelize[_0x57f995('0x4')],'unique':'name','validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':Sequelize['INTEGER'],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x57f995('0x0')](_0x57f995('0x3'),_0x57f995('0x5'),_0x57f995('0x1'))},'description':{'type':Sequelize[_0x57f995('0x4')]}}; \ No newline at end of file +const a807_0x3db5=['ENUM','roundrobin','INTEGER','sequelize','exports','beepall','STRING','name'];(function(_0x443410,_0x3db58f){const _0x5606ba=function(_0x2aa40c){while(--_0x2aa40c){_0x443410['push'](_0x443410['shift']());}};_0x5606ba(++_0x3db58f);}(a807_0x3db5,0x15b));const a807_0x5606=function(_0x443410,_0x3db58f){_0x443410=_0x443410-0x0;let _0x5606ba=a807_0x3db5[_0x443410];return _0x5606ba;};const _0x536bdd=a807_0x5606;'use strict';const Sequelize=require(_0x536bdd('0x0'));module[_0x536bdd('0x1')]={'name':{'type':Sequelize[_0x536bdd('0x3')],'unique':_0x536bdd('0x4'),'validate':{'notEmpty':!![],'is':/^[A-Za-z0-9._]+$/i}},'timeout':{'type':Sequelize[_0x536bdd('0x7')],'validate':{'min':0x1,'max':0x20c49b}},'strategy':{'type':Sequelize[_0x536bdd('0x5')]('rrmemory',_0x536bdd('0x2'),_0x536bdd('0x6'))},'description':{'type':Sequelize[_0x536bdd('0x3')]}}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.controller.js b/server/api/whatsappQueue/whatsappQueue.controller.js index c63c1d7..a306741 100644 --- a/server/api/whatsappQueue/whatsappQueue.controller.js +++ b/server/api/whatsappQueue/whatsappQueue.controller.js @@ -1 +1 @@ -const a808_0x350e=['error','limit','online','rawAttributes','removeAgents','value','select','sequelize','register','interface','clone','getAgents','WhatsappQueue','show','end','create','UserProfileSection','emit','order','agent','then','userWhatsappQueue:remove','addTeams','role','format','options','forEach','union','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','autoAssociation','squel','rows','each','describe','../../mysqldb','fields','model','user_has_teams','filters','User','body','catch','UserWhatsappQueue','SIP','offset','update','destroy','every','where','filter','status','sort','name','like','util','index','userWhatsappQueue:save','get','TeamId','length','pick','count','getMembers','key','ut.UserId\x20=\x20?','fieldName','map','Team','WhatsappQueueId','whatsappPause','../../config/logger','UserId','toString','attributes','team_has_whatsapp_queues','Unable\x20to\x20retrieve\x20the\x20current\x20user','push','nolimit','stack','isArray','json','WhatsappQueueId\x20=\x20?','user','merge','keys','transaction','type','isEmpty','../../components/parsers/qs','VIRTUAL','tq.TeamId','query','send','ids','findAndCountAll','createdAt','includeAll','api','findAll','sendStatus','removeTeams','params','addAgents','findOne','getTeams','Agents','undefined','Content-Range','intersection','flatMap'];(function(_0x16941d,_0x350e91){const _0x2bc853=function(_0x2c2c79){while(--_0x2c2c79){_0x16941d['push'](_0x16941d['shift']());}};_0x2bc853(++_0x350e91);}(a808_0x350e,0x150));const a808_0x2bc8=function(_0x16941d,_0x350e91){_0x16941d=_0x16941d-0x0;let _0x2bc853=a808_0x350e[_0x16941d];return _0x2bc853;};const _0x1f8d06=a808_0x2bc8;'use strict';const util=require(_0x1f8d06('0x30')),_=require('lodash'),squel=require(_0x1f8d06('0x18')),qs=require(_0x1f8d06('0x52')),logger=require(_0x1f8d06('0x40'))(_0x1f8d06('0x5b')),{getSocket}=require('../../rediscache'),socket=getSocket(),db=require(_0x1f8d06('0x1c'))['db'],{Op,QueryTypes}=require(_0x1f8d06('0x1'));require('./whatsappQueue.socket')[_0x1f8d06('0x2')](socket);function respondWithStatusCode(_0x2c2c79,_0x401b24){return _0x401b24=_0x401b24||0xcc,function(_0x41137e){const _0x4126e6=a808_0x2bc8;if(_0x41137e)return _0x2c2c79[_0x4126e6('0x5d')](_0x401b24);return _0x2c2c79[_0x4126e6('0x2c')](_0x401b24)[_0x4126e6('0x8')]();};}function respondWithResult(_0x57d2d3,_0x4bb74f){return _0x4bb74f=_0x4bb74f||0xc8,function(_0x2a9e9c){const _0x50fad2=a808_0x2bc8;if(_0x2a9e9c)return _0x57d2d3[_0x50fad2('0x2c')](_0x4bb74f)[_0x50fad2('0x4a')](_0x2a9e9c);};}function respondWithFilteredResult(_0x2f2afe,_0xb7a0e){return function(_0xd2983a){const _0xf87146=a808_0x2bc8;if(_0xd2983a){const _0x58d589=_0xd2983a[_0xf87146('0x37')],_0x433f7e=_0xb7a0e['offset'];let _0x142b1e=_0xb7a0e[_0xf87146('0x26')]+_0xb7a0e[_0xf87146('0x69')],_0x480f48;return _0x142b1e>=_0x58d589?(_0x142b1e=_0x58d589,_0x480f48=0xc8):_0x480f48=0xce,_0x2f2afe[_0xf87146('0x2c')](_0x480f48),_0x2f2afe['set'](_0xf87146('0x65'),_0x433f7e+'-'+_0x142b1e+'/'+_0x58d589)[_0xf87146('0x4a')](_0xd2983a);}return null;};}function saveUpdates(_0x139e76){return function(_0x107165){const _0x154dca=a808_0x2bc8;if(_0x107165)return _0x107165[_0x154dca('0x27')](_0x139e76)[_0x154dca('0xe')](function(_0x1e1c6e){return _0x1e1c6e;});return null;};}function removeEntity(_0x434983){return function(_0x5911da){const _0x5aa997=a808_0x2bc8;if(_0x5911da)return _0x5911da[_0x5aa997('0x28')]()['then'](function(){const _0x8a6032=_0x5aa997,_0x218122=_0x5911da[_0x8a6032('0x33')]({'plain':!![]}),_0x552d41='WhatsappQueues';return db['UserProfileResource'][_0x8a6032('0x28')]({'where':{'type':_0x552d41,'resourceId':_0x218122['id']}})[_0x8a6032('0xe')](function(){return _0x5911da;});})['then'](function(){const _0x1481e8=_0x5aa997;_0x434983['status'](0xcc)[_0x1481e8('0x8')]();});};}function handleEntityNotFound(_0x9433d){return function(_0x5f0e70){const _0x461a15=a808_0x2bc8;return!_0x5f0e70&&_0x9433d[_0x461a15('0x5d')](0x194),_0x5f0e70;};}function handleError(_0x42e7de,_0x3b3c8b){return _0x3b3c8b=_0x3b3c8b||0x1f4,function(_0x15dcf5){const _0x1250ab=a808_0x2bc8;logger['error'](_0x15dcf5[_0x1250ab('0x48')]),_0x15dcf5['name']&&delete _0x15dcf5[_0x1250ab('0x2e')],_0x42e7de[_0x1250ab('0x2c')](_0x3b3c8b)[_0x1250ab('0x56')](_0x15dcf5);};}exports[_0x1f8d06('0x31')]=function(_0x1a955a,_0x3ef9f3){const _0x150c4c=_0x1f8d06;let _0x3f3050={};const _0xe5ad0d={},_0x4034f4={'count':0x0,'rows':[]},_0x44be71=_[_0x150c4c('0x3c')](db[_0x150c4c('0x6')]['rawAttributes'],function(_0x299727){const _0x1d6312=_0x150c4c;return{'name':_0x299727[_0x1d6312('0x3b')],'type':_0x299727['type'][_0x1d6312('0x39')]};});_0xe5ad0d['model']=_[_0x150c4c('0x3c')](_0x44be71,_0x150c4c('0x2e')),_0xe5ad0d['query']=_['keys'](_0x1a955a[_0x150c4c('0x55')]),_0xe5ad0d[_0x150c4c('0x20')]=_[_0x150c4c('0x66')](_0xe5ad0d[_0x150c4c('0x1e')],_0xe5ad0d['query']),_0x3f3050['attributes']=_[_0x150c4c('0x66')](_0xe5ad0d['model'],qs[_0x150c4c('0x1d')](_0x1a955a[_0x150c4c('0x55')][_0x150c4c('0x1d')])),_0x3f3050[_0x150c4c('0x43')]=_0x3f3050[_0x150c4c('0x43')]['length']?_0x3f3050['attributes']:_0xe5ad0d[_0x150c4c('0x1e')];typeof _0x1a955a[_0x150c4c('0x55')][_0x150c4c('0x47')]===_0x150c4c('0x64')&&(_0x3f3050[_0x150c4c('0x69')]=qs[_0x150c4c('0x69')](_0x1a955a[_0x150c4c('0x55')]['limit']),_0x3f3050[_0x150c4c('0x26')]=qs[_0x150c4c('0x26')](_0x1a955a[_0x150c4c('0x55')]['offset']));_0x3f3050['order']=qs['sort'](_0x1a955a[_0x150c4c('0x55')][_0x150c4c('0x2d')]),_0x3f3050['where']=qs['filters'](_[_0x150c4c('0x36')](_0x1a955a[_0x150c4c('0x55')],_0xe5ad0d['filters']),_0x44be71);_0x1a955a['query'][_0x150c4c('0x2b')]&&(_0x3f3050[_0x150c4c('0x2a')]=_[_0x150c4c('0x4d')](_0x3f3050[_0x150c4c('0x2a')],{[Op['or']]:_['map'](_0x44be71,function(_0x24ce27){const _0x305460=_0x150c4c;if(_0x24ce27[_0x305460('0x50')]!==_0x305460('0x53')){const _0x5d12a7={};return _0x5d12a7[_0x24ce27[_0x305460('0x2e')]]={[Op[_0x305460('0x2f')]]:'%'+_0x1a955a[_0x305460('0x55')][_0x305460('0x2b')]+'%'},_0x5d12a7;}})}));_0x3f3050=_[_0x150c4c('0x4d')]({},_0x3f3050,_0x1a955a[_0x150c4c('0x13')]);const _0x9bae65={'where':_0x3f3050[_0x150c4c('0x2a')]};return db[_0x150c4c('0x6')][_0x150c4c('0x37')](_0x9bae65)[_0x150c4c('0xe')](function(_0x44bad6){const _0x5f49bc=_0x150c4c;return _0x4034f4[_0x5f49bc('0x37')]=_0x44bad6,_0x1a955a[_0x5f49bc('0x55')][_0x5f49bc('0x5a')]&&(_0x3f3050['include']=[{'all':!![]}]),db[_0x5f49bc('0x6')]['findAll'](_0x3f3050);})[_0x150c4c('0xe')](function(_0xf9461a){const _0x36817f=_0x150c4c;return _0x4034f4[_0x36817f('0x19')]=_0xf9461a,_0x4034f4;})[_0x150c4c('0xe')](respondWithFilteredResult(_0x3ef9f3,_0x3f3050))[_0x150c4c('0x23')](handleError(_0x3ef9f3,null));},exports[_0x1f8d06('0x7')]=function(_0x28c4b7,_0x39604a){const _0x146d8d=_0x1f8d06;let _0x2270a0={'raw':!![],'where':{'id':_0x28c4b7[_0x146d8d('0x5f')]['id']}};const _0x392c37={};return _0x392c37['model']=_[_0x146d8d('0x4e')](db[_0x146d8d('0x6')][_0x146d8d('0x6b')]),_0x392c37['query']=_[_0x146d8d('0x4e')](_0x28c4b7[_0x146d8d('0x55')]),_0x392c37['filters']=_[_0x146d8d('0x66')](_0x392c37[_0x146d8d('0x1e')],_0x392c37['query']),_0x2270a0[_0x146d8d('0x43')]=_[_0x146d8d('0x66')](_0x392c37[_0x146d8d('0x1e')],qs[_0x146d8d('0x1d')](_0x28c4b7[_0x146d8d('0x55')][_0x146d8d('0x1d')])),_0x2270a0[_0x146d8d('0x43')]=_0x2270a0[_0x146d8d('0x43')][_0x146d8d('0x35')]?_0x2270a0['attributes']:_0x392c37[_0x146d8d('0x1e')],_0x28c4b7[_0x146d8d('0x55')][_0x146d8d('0x5a')]&&(_0x2270a0['include']=[{'all':!![]}]),_0x2270a0=_['merge']({},_0x2270a0,_0x28c4b7[_0x146d8d('0x13')]),db[_0x146d8d('0x6')]['findOne'](_0x2270a0)[_0x146d8d('0xe')](handleEntityNotFound(_0x39604a,null))[_0x146d8d('0xe')](respondWithResult(_0x39604a,null))['catch'](handleError(_0x39604a,null));},exports['create']=function(_0x11d5a0,_0x5e43a8){const _0x223dd3=_0x1f8d06;return db[_0x223dd3('0x6')][_0x223dd3('0x9')](_0x11d5a0['body'],{})['then'](function(_0x101a9b){const _0x2c68d4=_0x223dd3,_0x26e2f0=_0x11d5a0[_0x2c68d4('0x4c')]['get']({'plain':!![]});if(!_0x26e2f0)throw new Error(_0x2c68d4('0x45'));if(_0x26e2f0[_0x2c68d4('0x11')]==='user'){const _0x4f4610=_0x101a9b[_0x2c68d4('0x33')]({'plain':!![]}),_0x1bb0e5='WhatsappQueues';return db[_0x2c68d4('0xa')]['findOne']({'where':{'name':_0x1bb0e5,'userProfileId':_0x26e2f0['userProfileId']},'raw':!![]})['then'](function(_0x3caf01){const _0x8bd787=_0x2c68d4;return _0x3caf01&&_0x3caf01[_0x8bd787('0x17')]===0x0?db['UserProfileResource'][_0x8bd787('0x9')]({'name':_0x4f4610[_0x8bd787('0x2e')],'resourceId':_0x4f4610['id'],'type':_0x3caf01[_0x8bd787('0x2e')],'sectionId':_0x3caf01['id']},{})['then'](function(){return _0x101a9b;}):_0x101a9b;})['catch'](function(_0x18db9f){const _0x591232=_0x2c68d4;logger[_0x591232('0x68')](_0x591232('0x16'),_0x18db9f);throw _0x18db9f;});}return _0x101a9b;})[_0x223dd3('0xe')](respondWithResult(_0x5e43a8,0xc9))['catch'](handleError(_0x5e43a8,null));},exports[_0x1f8d06('0x27')]=function(_0x23892a,_0x5bce47){const _0x217e9b=_0x1f8d06;return _0x23892a[_0x217e9b('0x22')]['id']&&delete _0x23892a[_0x217e9b('0x22')]['id'],db[_0x217e9b('0x6')]['findOne']({'where':{'id':_0x23892a['params']['id']}})[_0x217e9b('0xe')](handleEntityNotFound(_0x5bce47,null))[_0x217e9b('0xe')](saveUpdates(_0x23892a[_0x217e9b('0x22')],null))[_0x217e9b('0xe')](respondWithResult(_0x5bce47,null))['catch'](handleError(_0x5bce47,null));},exports[_0x1f8d06('0x28')]=function(_0x3e3250,_0x16309d){const _0x1c3b0a=_0x1f8d06;return db[_0x1c3b0a('0x6')][_0x1c3b0a('0x61')]({'where':{'id':_0x3e3250[_0x1c3b0a('0x5f')]['id']}})[_0x1c3b0a('0xe')](handleEntityNotFound(_0x16309d,null))['then'](removeEntity(_0x16309d,null))[_0x1c3b0a('0x23')](handleError(_0x16309d,null));},exports[_0x1f8d06('0x1b')]=function(_0x18c570,_0x160520){const _0x3aba94=_0x1f8d06;return db[_0x3aba94('0x6')][_0x3aba94('0x1b')]()[_0x3aba94('0xe')](respondWithResult(_0x160520,null))[_0x3aba94('0x23')](handleError(_0x160520,null));},exports[_0x1f8d06('0x38')]=function(_0x13a1d6,_0x573711){const _0x3b64ca=_0x1f8d06;let _0x549bd7={'raw':!![],'where':{}};const _0x46a214={};let _0xfd5f27;return db[_0x3b64ca('0x6')][_0x3b64ca('0x61')]({'where':{'id':_0x13a1d6[_0x3b64ca('0x5f')]['id']}})[_0x3b64ca('0xe')](handleEntityNotFound(_0x573711,null))['then'](function(_0x319d28){const _0x3ee497=_0x3b64ca;if(_0x319d28)return _0xfd5f27=_0x319d28[_0x3ee497('0x33')]({'plain':!![]}),_0x46a214[_0x3ee497('0x1e')]=_[_0x3ee497('0x4e')](db[_0x3ee497('0x24')][_0x3ee497('0x6b')]),_0x46a214['query']=_[_0x3ee497('0x4e')](_0x13a1d6[_0x3ee497('0x55')]),_0x46a214[_0x3ee497('0x20')]=_[_0x3ee497('0x66')](_0x46a214[_0x3ee497('0x1e')],_0x46a214[_0x3ee497('0x55')]),_0x549bd7['attributes']=_[_0x3ee497('0x66')](_0x46a214['model'],qs['fields'](_0x13a1d6['query'][_0x3ee497('0x1d')])),_0x549bd7[_0x3ee497('0x43')]=_0x549bd7[_0x3ee497('0x43')][_0x3ee497('0x35')]?_0x549bd7[_0x3ee497('0x43')]:_0x46a214['model'],typeof _0x13a1d6[_0x3ee497('0x55')][_0x3ee497('0x47')]===_0x3ee497('0x64')&&(_0x549bd7[_0x3ee497('0x69')]=qs['limit'](_0x13a1d6[_0x3ee497('0x55')][_0x3ee497('0x69')]),_0x549bd7[_0x3ee497('0x26')]=qs[_0x3ee497('0x26')](_0x13a1d6[_0x3ee497('0x55')][_0x3ee497('0x26')])),_0x549bd7[_0x3ee497('0xc')]=qs[_0x3ee497('0x2d')](_0x13a1d6['query'][_0x3ee497('0x2d')]),_0x549bd7['where']=qs[_0x3ee497('0x20')](_[_0x3ee497('0x36')](_0x13a1d6[_0x3ee497('0x55')],_0x46a214['filters'])),_0x549bd7[_0x3ee497('0x2a')][_0x3ee497('0x3e')]=_0x319d28['id'],_0x13a1d6['query']['filter']&&(_0x549bd7[_0x3ee497('0x2a')]=_[_0x3ee497('0x4d')](_0x549bd7['where'],{[Op['or']]:_[_0x3ee497('0x3c')](_0x549bd7[_0x3ee497('0x43')],function(_0x59f5a3){const _0x16512f=_0x3ee497,_0xdbf17a={};return _0xdbf17a[_0x59f5a3]={[Op[_0x16512f('0x2f')]]:'%'+_0x13a1d6[_0x16512f('0x55')][_0x16512f('0x2b')]+'%'},_0xdbf17a;})})),_0x549bd7=_[_0x3ee497('0x4d')]({},_0x549bd7,_0x13a1d6['options']),db[_0x3ee497('0x24')][_0x3ee497('0x5c')](_0x549bd7);})['then'](function(_0x50492f){const _0x533900=_0x3b64ca;if(_0x50492f)return db[_0x533900('0x21')][_0x533900('0x58')]({'where':{'id':_['map'](_0x50492f,_0x533900('0x41')),'role':_0x533900('0xd')},'attributes':['id',_0x533900('0x2e'),_0x533900('0x3f'),'updatedAt',_0x533900('0x59')]});})['then'](function(_0xb13bb2){const _0x943314=_0x3b64ca;return _0xb13bb2?{'count':_0xb13bb2[_0x943314('0x37')],'rows':_[_0x943314('0x3c')](_0xb13bb2[_0x943314('0x19')],function(_0x5cfcf4){const _0x175c43=_0x943314;return{'membername':_0x5cfcf4[_0x175c43('0x2e')],'UserId':_0x5cfcf4['id'],'queue_name':_0xfd5f27[_0x175c43('0x2e')],'WhatsappQueueId':_0xfd5f27['id'],'interface':util[_0x175c43('0x12')]('%s/%s',_0x175c43('0x25'),_0x5cfcf4[_0x175c43('0x2e')]),'penalty':0x0,'paused':_0x5cfcf4[_0x175c43('0x3f')],'createdAt':_0x5cfcf4['createdAt'],'updatedAt':_0x5cfcf4['updatedAt']};})}:{'count':0x0,'rows':[]};})[_0x3b64ca('0xe')](respondWithFilteredResult(_0x573711,_0x549bd7))[_0x3b64ca('0x23')](handleError(_0x573711,null));},exports[_0x1f8d06('0x62')]=function(_0x1a486b,_0x47e218){const _0x4bc690=_0x1f8d06;let _0x2777bf={};const _0x45ec71={};let _0x2b2cac,_0x53b836;return db['WhatsappQueue']['findOne']({'where':{'id':_0x1a486b[_0x4bc690('0x5f')]['id']}})[_0x4bc690('0xe')](handleEntityNotFound(_0x47e218,null))[_0x4bc690('0xe')](function(_0xa09d58){const _0x4c9331=_0x4bc690;if(_0xa09d58)return _0x2b2cac=_0xa09d58,_0x45ec71[_0x4c9331('0x1e')]=_[_0x4c9331('0x4e')](db['Team'][_0x4c9331('0x6b')]),_0x45ec71[_0x4c9331('0x55')]=_[_0x4c9331('0x4e')](_0x1a486b[_0x4c9331('0x55')]),_0x45ec71[_0x4c9331('0x20')]=_[_0x4c9331('0x66')](_0x45ec71[_0x4c9331('0x1e')],_0x45ec71[_0x4c9331('0x55')]),_0x2777bf[_0x4c9331('0x43')]=_[_0x4c9331('0x66')](_0x45ec71[_0x4c9331('0x1e')],qs['fields'](_0x1a486b[_0x4c9331('0x55')][_0x4c9331('0x1d')])),_0x2777bf[_0x4c9331('0x43')]=_0x2777bf['attributes']['length']?_0x2777bf[_0x4c9331('0x43')]:_0x45ec71[_0x4c9331('0x1e')],_0x2777bf[_0x4c9331('0xc')]=qs[_0x4c9331('0x2d')](_0x1a486b['query'][_0x4c9331('0x2d')]),_0x2777bf['where']=qs['filters'](_['pick'](_0x1a486b['query'],_0x45ec71[_0x4c9331('0x20')])),_0x1a486b[_0x4c9331('0x55')][_0x4c9331('0x2b')]&&(_0x2777bf[_0x4c9331('0x2a')]=_[_0x4c9331('0x4d')](_0x2777bf['where'],{[Op['or']]:_[_0x4c9331('0x3c')](_0x2777bf['attributes'],function(_0x3a0dca){const _0xd8f65b=_0x4c9331,_0x36f25d={};return _0x36f25d[_0x3a0dca]={[Op[_0xd8f65b('0x2f')]]:'%'+_0x1a486b[_0xd8f65b('0x55')][_0xd8f65b('0x2b')]+'%'},_0x36f25d;})})),_0x2777bf=_[_0x4c9331('0x4d')]({},_0x2777bf,_0x1a486b[_0x4c9331('0x13')]),_0x2b2cac[_0x4c9331('0x62')](_0x2777bf);})[_0x4bc690('0xe')](function(_0x2bae69){const _0x1558a8=_0x4bc690;if(_0x2bae69)return _0x53b836=_0x2bae69[_0x1558a8('0x35')],typeof _0x1a486b['query'][_0x1558a8('0x47')]==='undefined'&&(_0x2777bf[_0x1558a8('0x69')]=qs[_0x1558a8('0x69')](_0x1a486b[_0x1558a8('0x55')][_0x1558a8('0x69')]),_0x2777bf[_0x1558a8('0x26')]=qs[_0x1558a8('0x26')](_0x1a486b['query']['offset'])),_0x2b2cac[_0x1558a8('0x62')](_0x2777bf);})[_0x4bc690('0xe')](function(_0x32b2f3){if(_0x32b2f3)return _0x32b2f3?{'count':_0x53b836,'rows':_0x32b2f3}:null;})['then'](respondWithResult(_0x47e218,null))[_0x4bc690('0x23')](handleError(_0x47e218,null));},exports[_0x1f8d06('0x10')]=function(_0x1e38d6,_0x531d7b){const _0x138da7=_0x1f8d06,_0x375cb6=_0x1e38d6[_0x138da7('0x22')][_0x138da7('0x57')];return db[_0x138da7('0x3d')]['findAll']({'where':{'id':_0x375cb6},'attributes':['id'],'include':[{'model':db[_0x138da7('0x21')],'as':_0x138da7('0x63'),'attributes':['id',_0x138da7('0x2e'),_0x138da7('0x6a'),'voicePause',_0x138da7('0x3')],'raw':!![]}]})[_0x138da7('0xe')](function(_0x1cbcc2){const _0x242810=_0x138da7;if(_0x1cbcc2){const _0x3ff0fb=_[_0x242810('0x67')](_0x1cbcc2,function(_0x591ac8){const _0x21b9a6=_0x242810,_0x461bc0=_0x591ac8[_0x21b9a6('0x33')]({'plain':!![]});return _0x461bc0['Agents'];});return db[_0x242810('0x6')][_0x242810('0x61')]({'where':{'id':_0x1e38d6[_0x242810('0x5f')]['id']}})[_0x242810('0xe')](function(_0x2bd48b){const _0x16c000=_0x242810;return db[_0x16c000('0x1')][_0x16c000('0x4f')](function(_0x11d07f){const _0x3db1b1=_0x16c000;return _0x2bd48b[_0x3db1b1('0x10')](_0x375cb6,{'transaction':_0x11d07f})[_0x3db1b1('0xe')](function(){const _0xe8e4f3=_0x3db1b1;return Promise[_0xe8e4f3('0x1a')](_0x3ff0fb,function(_0x24c8e7){const _0x5dffc3=_0xe8e4f3;return db['UserWhatsappQueue']['findOrCreate']({'where':{'UserId':_0x24c8e7['id'],'WhatsappQueueId':_0x1e38d6[_0x5dffc3('0x5f')]['id']},'transaction':_0x11d07f});});})[_0x3db1b1('0xe')](function(){const _0x51b9e7=_0x3db1b1;_0x3ff0fb[_0x51b9e7('0x14')](function(_0x2f3860){const _0x3f9c1e=_0x51b9e7;socket[_0x3f9c1e('0xb')](_0x3f9c1e('0x32'),{'UserId':_0x2f3860['id'],'WhatsappQueueId':_0x2bd48b['id']});});});});});}})[_0x138da7('0xe')](respondWithStatusCode(_0x531d7b,null))[_0x138da7('0x23')](handleError(_0x531d7b,null));},exports[_0x1f8d06('0x5e')]=function(_0x227e10,_0x380598){const _0x38f572=_0x1f8d06;return db[_0x38f572('0x3d')][_0x38f572('0x5c')]({'where':{'id':_0x227e10[_0x38f572('0x55')]['ids']},'attributes':['id'],'include':[{'model':db['User'],'as':_0x38f572('0x63'),'attributes':['id'],'raw':!![]}]})[_0x38f572('0xe')](handleEntityNotFound(_0x380598,null))['then'](function(_0x38ef05){const _0x1deca5=_0x38f572,_0x35e5f6=_[_0x1deca5('0x3c')](_0x38ef05,'id');let _0x54660d=[];const _0x418fd9=[],_0x1525d2=squel[_0x1deca5('0x0')]();_0x1525d2['field'](_0x1deca5('0x54'))['from'](_0x1deca5('0x44'),'tq')['join'](_0x1deca5('0x1f'),'ut','ut.TeamId\x20=\x20tq.TeamId')[_0x1deca5('0x2a')](_0x1deca5('0x4b'),_0x227e10[_0x1deca5('0x5f')]['id']);for(let _0x4e2c87=0x0;_0x4e2c87<_0x38ef05[_0x1deca5('0x35')];_0x4e2c87+=0x1){const _0x27b04d=_0x38ef05[_0x4e2c87];for(let _0x39d760=0x0;_0x39d760<_0x27b04d[_0x1deca5('0x63')][_0x1deca5('0x35')];_0x39d760+=0x1){const _0x5ca9a8=_0x27b04d[_0x1deca5('0x63')][_0x39d760],_0x4fd99b=_0x1525d2[_0x1deca5('0x4')]();_0x4fd99b['where'](_0x1deca5('0x3a'),_0x5ca9a8['id']),_0x418fd9[_0x1deca5('0x46')](db[_0x1deca5('0x1')][_0x1deca5('0x55')](_0x4fd99b[_0x1deca5('0x42')](),{'type':QueryTypes['SELECT']})['then'](function(_0x17bfd3){const _0x995603=_0x1deca5;if(_0x17bfd3[_0x995603('0x35')]===0x1)return _0x5ca9a8['id'];else{const _0x40ea05=_[_0x995603('0x29')](_[_0x995603('0x3c')](_0x17bfd3,_0x995603('0x34')),function(_0x29821a){return _['includes'](_0x35e5f6,_0x29821a);});if(_0x40ea05)return _0x5ca9a8['id'];}}));}}return Promise['all'](_0x418fd9)[_0x1deca5('0xe')](function(_0x3122a7){const _0x19cdfc=_0x1deca5;return _0x54660d=_(_0x54660d)[_0x19cdfc('0x15')](_0x3122a7)['compact']()[_0x19cdfc('0x6d')](),db['WhatsappQueue'][_0x19cdfc('0x61')]({'where':{'id':_0x227e10['params']['id']}})['then'](function(_0x1d1d6a){const _0x381d1f=_0x19cdfc;return db[_0x381d1f('0x1')]['transaction'](function(_0x3bc882){const _0x27f639=_0x381d1f;return _0x1d1d6a[_0x27f639('0x5e')](_0x227e10[_0x27f639('0x55')][_0x27f639('0x57')],{'transaction':_0x3bc882})['then'](function(){const _0x51b7e4=_0x27f639;if(!_[_0x51b7e4('0x51')](_0x54660d))return _0x1d1d6a[_0x51b7e4('0x6c')](_0x54660d,{'transaction':_0x3bc882});})[_0x27f639('0xe')](function(){const _0x120959=_0x27f639;_0x54660d[_0x120959('0x14')](function(_0xcafb46){const _0x3e4c6a=_0x120959;socket[_0x3e4c6a('0xb')](_0x3e4c6a('0xf'),{'UserId':_0xcafb46,'WhatsappQueueId':_0x1d1d6a['id']});});});});});});})['then'](respondWithStatusCode(_0x380598,null))[_0x38f572('0x23')](handleError(_0x380598,null));},exports[_0x1f8d06('0x60')]=function(_0x5d1611,_0x49bcce){const _0xd39af2=_0x1f8d06;return db[_0xd39af2('0x6')][_0xd39af2('0x61')]({'where':{'id':_0x5d1611[_0xd39af2('0x5f')]['id']}})['then'](function(_0x5c74c1){const _0x36bcb3=_0xd39af2;if(_0x5c74c1)return _0x5c74c1[_0x36bcb3('0x60')](_0x5d1611['body'][_0x36bcb3('0x57')],{'through':_['omit'](_0x5d1611[_0x36bcb3('0x22')],[_0x36bcb3('0x57'),'id'])})[_0x36bcb3('0xe')](function(_0x18d2a3){const _0x4c2db0=_0x36bcb3;for(let _0x34632e=0x0;_0x34632e<_0x5d1611[_0x4c2db0('0x22')][_0x4c2db0('0x57')]['length'];_0x34632e+=0x1){socket[_0x4c2db0('0xb')](_0x4c2db0('0x32'),{'UserId':_0x5d1611[_0x4c2db0('0x22')]['ids'][_0x34632e],'WhatsappQueueId':_0x5d1611[_0x4c2db0('0x5f')]['id']});}return _0x18d2a3;});})[_0xd39af2('0xe')](respondWithResult(_0x49bcce,null))[_0xd39af2('0x23')](handleError(_0x49bcce,null));},exports[_0x1f8d06('0x6c')]=function(_0x3c13e8,_0x204d16){const _0x283dcc=_0x1f8d06;return db[_0x283dcc('0x6')][_0x283dcc('0x61')]({'where':{'id':_0x3c13e8[_0x283dcc('0x5f')]['id']}})['then'](handleEntityNotFound(_0x204d16,null))[_0x283dcc('0xe')](function(_0x1f80cd){const _0x3305e0=_0x283dcc;if(_0x1f80cd)return _0x1f80cd[_0x3305e0('0x6c')](_0x3c13e8[_0x3305e0('0x55')]['ids'])[_0x3305e0('0xe')](function(){const _0x52bebd=_0x3305e0;if(_[_0x52bebd('0x49')](_0x3c13e8['query'][_0x52bebd('0x57')]))for(let _0xb8b02d=0x0;_0xb8b02d<_0x3c13e8[_0x52bebd('0x55')]['ids'][_0x52bebd('0x35')];_0xb8b02d+=0x1){socket[_0x52bebd('0xb')](_0x52bebd('0xf'),{'UserId':Number(_0x3c13e8['query'][_0x52bebd('0x57')][_0xb8b02d]),'WhatsappQueueId':Number(_0x3c13e8['params']['id'])});}else socket[_0x52bebd('0xb')](_0x52bebd('0xf'),{'UserId':Number(_0x3c13e8[_0x52bebd('0x55')][_0x52bebd('0x57')]),'WhatsappQueueId':Number(_0x3c13e8[_0x52bebd('0x5f')]['id'])});});})['then'](respondWithStatusCode(_0x204d16,null))[_0x283dcc('0x23')](handleError(_0x204d16,null));},exports['getAgents']=function(_0x3d591b,_0xd66fe1){const _0x1453a7=_0x1f8d06;let _0x53668e={};const _0x350a46={};let _0xadedac,_0xd28234;return db[_0x1453a7('0x6')]['findOne']({'where':{'id':_0x3d591b[_0x1453a7('0x5f')]['id']}})['then'](handleEntityNotFound(_0xd66fe1,null))[_0x1453a7('0xe')](function(_0x4cb419){const _0x3f8763=_0x1453a7;if(_0x4cb419)return _0xadedac=_0x4cb419,_0x350a46[_0x3f8763('0x1e')]=_[_0x3f8763('0x4e')](db['User'][_0x3f8763('0x6b')]),_0x350a46['query']=_['keys'](_0x3d591b[_0x3f8763('0x55')]),_0x350a46[_0x3f8763('0x20')]=_[_0x3f8763('0x66')](_0x350a46['model'],_0x350a46[_0x3f8763('0x55')]),_0x53668e[_0x3f8763('0x43')]=_[_0x3f8763('0x66')](_0x350a46['model'],qs[_0x3f8763('0x1d')](_0x3d591b[_0x3f8763('0x55')][_0x3f8763('0x1d')])),_0x53668e[_0x3f8763('0x43')]=_0x53668e['attributes'][_0x3f8763('0x35')]?_0x53668e[_0x3f8763('0x43')]:_0x350a46['model'],_0x53668e[_0x3f8763('0xc')]=qs[_0x3f8763('0x2d')](_0x3d591b[_0x3f8763('0x55')]['sort']),_0x53668e[_0x3f8763('0x2a')]=qs[_0x3f8763('0x20')](_[_0x3f8763('0x36')](_0x3d591b['query'],_0x350a46[_0x3f8763('0x20')])),_0x3d591b[_0x3f8763('0x55')][_0x3f8763('0x2b')]&&(_0x53668e[_0x3f8763('0x2a')]=_[_0x3f8763('0x4d')](_0x53668e[_0x3f8763('0x2a')],{[Op['or']]:_['map'](_0x53668e[_0x3f8763('0x43')],function(_0x559852){const _0xc3187=_0x3f8763,_0x2db89a={};return _0x2db89a[_0x559852]={[Op[_0xc3187('0x2f')]]:'%'+_0x3d591b[_0xc3187('0x55')]['filter']+'%'},_0x2db89a;})})),_0x53668e=_[_0x3f8763('0x4d')]({},_0x53668e,_0x3d591b[_0x3f8763('0x13')]),_0xadedac[_0x3f8763('0x5')](_0x53668e);})[_0x1453a7('0xe')](function(_0x21b954){const _0x37960e=_0x1453a7;if(_0x21b954)return _0xd28234=_0x21b954[_0x37960e('0x35')],typeof _0x3d591b['query'][_0x37960e('0x47')]===_0x37960e('0x64')&&(_0x53668e['limit']=qs[_0x37960e('0x69')](_0x3d591b[_0x37960e('0x55')][_0x37960e('0x69')]),_0x53668e['offset']=qs[_0x37960e('0x26')](_0x3d591b[_0x37960e('0x55')]['offset'])),_0xadedac['getAgents'](_0x53668e);})['then'](function(_0x59450c){if(_0x59450c)return _0x59450c?{'count':_0xd28234,'rows':_0x59450c}:null;})[_0x1453a7('0xe')](respondWithResult(_0xd66fe1,null))[_0x1453a7('0x23')](handleError(_0xd66fe1,null));}; \ No newline at end of file +const a808_0x1628=['params','select','pick','sequelize','rawAttributes','UserProfileResource','UserProfileSection','end','filters','forEach','where','index','length','agent','flatMap','options','findAll','Unable\x20to\x20associate\x20the\x20resource\x20to\x20the\x20User\x20Profile:\x20%s','include','toString','push','union','register','Team','createdAt','fields','stack','findAndCountAll','order','create','omit','SIP','json','voicePause','error','rows','interface','../../rediscache','WhatsappQueue','format','ut.UserId\x20=\x20?','whatsappPause','type','userWhatsappQueue:remove','update','join','field','from','catch','online','offset','./whatsappQueue.socket','describe','destroy','UserWhatsappQueue','removeTeams','updatedAt','query','userWhatsappQueue:save','body','clone','getMembers','model','emit','all','includeAll','nolimit','map','get','value','team_has_whatsapp_queues','transaction','WhatsappQueueId\x20=\x20?','Agents','getAgents','merge','intersection','show','api','like','ids','VIRTUAL','util','name','WhatsappQueues','tq.TeamId','getTeams','fieldName','sort','includes','removeAgents','undefined','addTeams','set','addAgents','every','isArray','findOne','each','then','role','%s/%s','userProfileId','attributes','compact','limit','count','isEmpty','keys','SELECT','key','../../components/parsers/qs','squel','User','filter','status','user_has_teams'];(function(_0x1e5a98,_0x1628a6){const _0x1449e4=function(_0x29e642){while(--_0x29e642){_0x1e5a98['push'](_0x1e5a98['shift']());}};_0x1449e4(++_0x1628a6);}(a808_0x1628,0xb0));const a808_0x1449=function(_0x1e5a98,_0x1628a6){_0x1e5a98=_0x1e5a98-0x0;let _0x1449e4=a808_0x1628[_0x1e5a98];return _0x1449e4;};const _0x4b1bcb=a808_0x1449;'use strict';const util=require(_0x4b1bcb('0x17')),_=require('lodash'),squel=require(_0x4b1bcb('0x35')),qs=require(_0x4b1bcb('0x34')),logger=require('../../config/logger')(_0x4b1bcb('0x13')),{getSocket}=require(_0x4b1bcb('0x5f')),socket=getSocket(),db=require('../../mysqldb')['db'],{Op,QueryTypes}=require('sequelize');require(_0x4b1bcb('0x6d'))[_0x4b1bcb('0x50')](socket);function respondWithStatusCode(_0x29e642,_0x39e661){return _0x39e661=_0x39e661||0xcc,function(_0xc96292){const _0x55ad15=a808_0x1449;if(_0xc96292)return _0x29e642['sendStatus'](_0x39e661);return _0x29e642[_0x55ad15('0x38')](_0x39e661)['end']();};}function respondWithResult(_0x23350a,_0x22e9d6){return _0x22e9d6=_0x22e9d6||0xc8,function(_0x5223be){const _0x1ecb63=a808_0x1449;if(_0x5223be)return _0x23350a[_0x1ecb63('0x38')](_0x22e9d6)[_0x1ecb63('0x5a')](_0x5223be);};}function respondWithFilteredResult(_0x555454,_0x35b8a8){return function(_0x2a0a56){const _0xa9511d=a808_0x1449;if(_0x2a0a56){const _0x25f062=_0x2a0a56[_0xa9511d('0x2f')],_0x47f968=_0x35b8a8[_0xa9511d('0x6c')];let _0x555def=_0x35b8a8[_0xa9511d('0x6c')]+_0x35b8a8['limit'],_0x486533;return _0x555def>=_0x25f062?(_0x555def=_0x25f062,_0x486533=0xc8):_0x486533=0xce,_0x555454[_0xa9511d('0x38')](_0x486533),_0x555454[_0xa9511d('0x22')]('Content-Range',_0x47f968+'-'+_0x555def+'/'+_0x25f062)['json'](_0x2a0a56);}return null;};}function saveUpdates(_0x4a4a4c){return function(_0x17fc57){const _0x27ea7a=a808_0x1449;if(_0x17fc57)return _0x17fc57[_0x27ea7a('0x66')](_0x4a4a4c)[_0x27ea7a('0x28')](function(_0x11354){return _0x11354;});return null;};}function removeEntity(_0x4c28d4){return function(_0x5cf613){const _0x4672b5=a808_0x1449;if(_0x5cf613)return _0x5cf613[_0x4672b5('0x6f')]()[_0x4672b5('0x28')](function(){const _0x35ea8b=_0x4672b5,_0x517478=_0x5cf613[_0x35ea8b('0x9')]({'plain':!![]}),_0x26b374=_0x35ea8b('0x19');return db[_0x35ea8b('0x3f')][_0x35ea8b('0x6f')]({'where':{'type':_0x26b374,'resourceId':_0x517478['id']}})[_0x35ea8b('0x28')](function(){return _0x5cf613;});})[_0x4672b5('0x28')](function(){const _0x9840cc=_0x4672b5;_0x4c28d4[_0x9840cc('0x38')](0xcc)[_0x9840cc('0x41')]();});};}function handleEntityNotFound(_0x340401){return function(_0x4e8c21){return!_0x4e8c21&&_0x340401['sendStatus'](0x194),_0x4e8c21;};}function handleError(_0x49f8f7,_0x4882f7){return _0x4882f7=_0x4882f7||0x1f4,function(_0x141fb0){const _0xb747ae=a808_0x1449;logger[_0xb747ae('0x5c')](_0x141fb0[_0xb747ae('0x54')]),_0x141fb0['name']&&delete _0x141fb0[_0xb747ae('0x18')],_0x49f8f7[_0xb747ae('0x38')](_0x4882f7)['send'](_0x141fb0);};}exports[_0x4b1bcb('0x45')]=function(_0x388373,_0x3aee07){const _0x485155=_0x4b1bcb;let _0x86cbd2={};const _0x16fb5a={},_0x60d8fe={'count':0x0,'rows':[]},_0x3ed228=_[_0x485155('0x8')](db[_0x485155('0x60')][_0x485155('0x3e')],function(_0x4adf58){const _0xdea45=_0x485155;return{'name':_0x4adf58[_0xdea45('0x1c')],'type':_0x4adf58[_0xdea45('0x64')][_0xdea45('0x33')]};});_0x16fb5a[_0x485155('0x3')]=_[_0x485155('0x8')](_0x3ed228,_0x485155('0x18')),_0x16fb5a[_0x485155('0x73')]=_['keys'](_0x388373[_0x485155('0x73')]),_0x16fb5a['filters']=_[_0x485155('0x11')](_0x16fb5a['model'],_0x16fb5a['query']),_0x86cbd2[_0x485155('0x2c')]=_['intersection'](_0x16fb5a[_0x485155('0x3')],qs['fields'](_0x388373[_0x485155('0x73')][_0x485155('0x53')])),_0x86cbd2[_0x485155('0x2c')]=_0x86cbd2[_0x485155('0x2c')]['length']?_0x86cbd2[_0x485155('0x2c')]:_0x16fb5a[_0x485155('0x3')];typeof _0x388373['query'][_0x485155('0x7')]===_0x485155('0x20')&&(_0x86cbd2[_0x485155('0x2e')]=qs['limit'](_0x388373['query'][_0x485155('0x2e')]),_0x86cbd2[_0x485155('0x6c')]=qs[_0x485155('0x6c')](_0x388373[_0x485155('0x73')][_0x485155('0x6c')]));_0x86cbd2[_0x485155('0x56')]=qs['sort'](_0x388373[_0x485155('0x73')][_0x485155('0x1d')]),_0x86cbd2[_0x485155('0x44')]=qs['filters'](_[_0x485155('0x3c')](_0x388373[_0x485155('0x73')],_0x16fb5a[_0x485155('0x42')]),_0x3ed228);_0x388373[_0x485155('0x73')][_0x485155('0x37')]&&(_0x86cbd2['where']=_[_0x485155('0x10')](_0x86cbd2[_0x485155('0x44')],{[Op['or']]:_[_0x485155('0x8')](_0x3ed228,function(_0x44d27c){const _0x333e68=_0x485155;if(_0x44d27c['type']!==_0x333e68('0x16')){const _0x4f8981={};return _0x4f8981[_0x44d27c[_0x333e68('0x18')]]={[Op['like']]:'%'+_0x388373['query']['filter']+'%'},_0x4f8981;}})}));_0x86cbd2=_[_0x485155('0x10')]({},_0x86cbd2,_0x388373[_0x485155('0x49')]);const _0x59d765={'where':_0x86cbd2[_0x485155('0x44')]};return db[_0x485155('0x60')][_0x485155('0x2f')](_0x59d765)[_0x485155('0x28')](function(_0x80571c){const _0x447e69=_0x485155;return _0x60d8fe[_0x447e69('0x2f')]=_0x80571c,_0x388373['query'][_0x447e69('0x6')]&&(_0x86cbd2[_0x447e69('0x4c')]=[{'all':!![]}]),db['WhatsappQueue'][_0x447e69('0x4a')](_0x86cbd2);})[_0x485155('0x28')](function(_0x1c7940){const _0x1d59ba=_0x485155;return _0x60d8fe[_0x1d59ba('0x5d')]=_0x1c7940,_0x60d8fe;})[_0x485155('0x28')](respondWithFilteredResult(_0x3aee07,_0x86cbd2))[_0x485155('0x6a')](handleError(_0x3aee07,null));},exports[_0x4b1bcb('0x12')]=function(_0x1c5401,_0x49426b){const _0x24fd5d=_0x4b1bcb;let _0x4c35db={'raw':!![],'where':{'id':_0x1c5401[_0x24fd5d('0x3a')]['id']}};const _0x1c754a={};return _0x1c754a[_0x24fd5d('0x3')]=_['keys'](db[_0x24fd5d('0x60')][_0x24fd5d('0x3e')]),_0x1c754a['query']=_[_0x24fd5d('0x31')](_0x1c5401['query']),_0x1c754a[_0x24fd5d('0x42')]=_[_0x24fd5d('0x11')](_0x1c754a['model'],_0x1c754a[_0x24fd5d('0x73')]),_0x4c35db[_0x24fd5d('0x2c')]=_[_0x24fd5d('0x11')](_0x1c754a[_0x24fd5d('0x3')],qs['fields'](_0x1c5401[_0x24fd5d('0x73')][_0x24fd5d('0x53')])),_0x4c35db[_0x24fd5d('0x2c')]=_0x4c35db[_0x24fd5d('0x2c')]['length']?_0x4c35db[_0x24fd5d('0x2c')]:_0x1c754a[_0x24fd5d('0x3')],_0x1c5401[_0x24fd5d('0x73')][_0x24fd5d('0x6')]&&(_0x4c35db[_0x24fd5d('0x4c')]=[{'all':!![]}]),_0x4c35db=_[_0x24fd5d('0x10')]({},_0x4c35db,_0x1c5401[_0x24fd5d('0x49')]),db['WhatsappQueue'][_0x24fd5d('0x26')](_0x4c35db)[_0x24fd5d('0x28')](handleEntityNotFound(_0x49426b,null))[_0x24fd5d('0x28')](respondWithResult(_0x49426b,null))[_0x24fd5d('0x6a')](handleError(_0x49426b,null));},exports['create']=function(_0x2c5acb,_0x274a03){const _0x416668=_0x4b1bcb;return db[_0x416668('0x60')][_0x416668('0x57')](_0x2c5acb[_0x416668('0x0')],{})[_0x416668('0x28')](function(_0x1b2c7c){const _0x26e72c=_0x416668,_0x3fa337=_0x2c5acb['user'][_0x26e72c('0x9')]({'plain':!![]});if(!_0x3fa337)throw new Error('Unable\x20to\x20retrieve\x20the\x20current\x20user');if(_0x3fa337[_0x26e72c('0x29')]==='user'){const _0x3ba5b4=_0x1b2c7c[_0x26e72c('0x9')]({'plain':!![]}),_0x35586b=_0x26e72c('0x19');return db[_0x26e72c('0x40')]['findOne']({'where':{'name':_0x35586b,'userProfileId':_0x3fa337[_0x26e72c('0x2b')]},'raw':!![]})[_0x26e72c('0x28')](function(_0x5312dc){const _0x5ec5bf=_0x26e72c;return _0x5312dc&&_0x5312dc['autoAssociation']===0x0?db[_0x5ec5bf('0x3f')]['create']({'name':_0x3ba5b4[_0x5ec5bf('0x18')],'resourceId':_0x3ba5b4['id'],'type':_0x5312dc[_0x5ec5bf('0x18')],'sectionId':_0x5312dc['id']},{})[_0x5ec5bf('0x28')](function(){return _0x1b2c7c;}):_0x1b2c7c;})[_0x26e72c('0x6a')](function(_0x54d983){const _0x37dd1c=_0x26e72c;logger['error'](_0x37dd1c('0x4b'),_0x54d983);throw _0x54d983;});}return _0x1b2c7c;})[_0x416668('0x28')](respondWithResult(_0x274a03,0xc9))['catch'](handleError(_0x274a03,null));},exports[_0x4b1bcb('0x66')]=function(_0x4f0b49,_0x41134d){const _0x57491e=_0x4b1bcb;return _0x4f0b49[_0x57491e('0x0')]['id']&&delete _0x4f0b49[_0x57491e('0x0')]['id'],db['WhatsappQueue'][_0x57491e('0x26')]({'where':{'id':_0x4f0b49['params']['id']}})['then'](handleEntityNotFound(_0x41134d,null))[_0x57491e('0x28')](saveUpdates(_0x4f0b49[_0x57491e('0x0')],null))['then'](respondWithResult(_0x41134d,null))[_0x57491e('0x6a')](handleError(_0x41134d,null));},exports['destroy']=function(_0x256461,_0x2008c1){const _0x54f696=_0x4b1bcb;return db[_0x54f696('0x60')][_0x54f696('0x26')]({'where':{'id':_0x256461['params']['id']}})['then'](handleEntityNotFound(_0x2008c1,null))[_0x54f696('0x28')](removeEntity(_0x2008c1,null))[_0x54f696('0x6a')](handleError(_0x2008c1,null));},exports[_0x4b1bcb('0x6e')]=function(_0xfb2a19,_0x1a40e6){const _0x429423=_0x4b1bcb;return db['WhatsappQueue'][_0x429423('0x6e')]()[_0x429423('0x28')](respondWithResult(_0x1a40e6,null))[_0x429423('0x6a')](handleError(_0x1a40e6,null));},exports[_0x4b1bcb('0x2')]=function(_0xe1bc46,_0x458504){const _0x189db5=_0x4b1bcb;let _0xe895ca={'raw':!![],'where':{}};const _0x1465d9={};let _0x397db6;return db['WhatsappQueue'][_0x189db5('0x26')]({'where':{'id':_0xe1bc46['params']['id']}})[_0x189db5('0x28')](handleEntityNotFound(_0x458504,null))[_0x189db5('0x28')](function(_0x8e9db0){const _0x4ac382=_0x189db5;if(_0x8e9db0)return _0x397db6=_0x8e9db0['get']({'plain':!![]}),_0x1465d9[_0x4ac382('0x3')]=_[_0x4ac382('0x31')](db[_0x4ac382('0x70')]['rawAttributes']),_0x1465d9[_0x4ac382('0x73')]=_[_0x4ac382('0x31')](_0xe1bc46['query']),_0x1465d9['filters']=_[_0x4ac382('0x11')](_0x1465d9[_0x4ac382('0x3')],_0x1465d9[_0x4ac382('0x73')]),_0xe895ca[_0x4ac382('0x2c')]=_[_0x4ac382('0x11')](_0x1465d9[_0x4ac382('0x3')],qs[_0x4ac382('0x53')](_0xe1bc46[_0x4ac382('0x73')][_0x4ac382('0x53')])),_0xe895ca[_0x4ac382('0x2c')]=_0xe895ca['attributes'][_0x4ac382('0x46')]?_0xe895ca[_0x4ac382('0x2c')]:_0x1465d9['model'],typeof _0xe1bc46[_0x4ac382('0x73')][_0x4ac382('0x7')]===_0x4ac382('0x20')&&(_0xe895ca[_0x4ac382('0x2e')]=qs[_0x4ac382('0x2e')](_0xe1bc46[_0x4ac382('0x73')]['limit']),_0xe895ca['offset']=qs[_0x4ac382('0x6c')](_0xe1bc46[_0x4ac382('0x73')][_0x4ac382('0x6c')])),_0xe895ca['order']=qs[_0x4ac382('0x1d')](_0xe1bc46[_0x4ac382('0x73')][_0x4ac382('0x1d')]),_0xe895ca[_0x4ac382('0x44')]=qs[_0x4ac382('0x42')](_[_0x4ac382('0x3c')](_0xe1bc46[_0x4ac382('0x73')],_0x1465d9['filters'])),_0xe895ca[_0x4ac382('0x44')]['WhatsappQueueId']=_0x8e9db0['id'],_0xe1bc46['query'][_0x4ac382('0x37')]&&(_0xe895ca[_0x4ac382('0x44')]=_[_0x4ac382('0x10')](_0xe895ca['where'],{[Op['or']]:_[_0x4ac382('0x8')](_0xe895ca[_0x4ac382('0x2c')],function(_0x5a3c99){const _0x11ba2f=_0x4ac382,_0x350e35={};return _0x350e35[_0x5a3c99]={[Op['like']]:'%'+_0xe1bc46[_0x11ba2f('0x73')][_0x11ba2f('0x37')]+'%'},_0x350e35;})})),_0xe895ca=_[_0x4ac382('0x10')]({},_0xe895ca,_0xe1bc46['options']),db[_0x4ac382('0x70')]['findAll'](_0xe895ca);})[_0x189db5('0x28')](function(_0x39f177){const _0x2a49c4=_0x189db5;if(_0x39f177)return db[_0x2a49c4('0x36')][_0x2a49c4('0x55')]({'where':{'id':_[_0x2a49c4('0x8')](_0x39f177,'UserId'),'role':_0x2a49c4('0x47')},'attributes':['id',_0x2a49c4('0x18'),_0x2a49c4('0x63'),_0x2a49c4('0x72'),'createdAt']});})['then'](function(_0x2c8878){const _0x35acc0=_0x189db5;return _0x2c8878?{'count':_0x2c8878[_0x35acc0('0x2f')],'rows':_[_0x35acc0('0x8')](_0x2c8878['rows'],function(_0x5dc805){const _0x397ab4=_0x35acc0;return{'membername':_0x5dc805[_0x397ab4('0x18')],'UserId':_0x5dc805['id'],'queue_name':_0x397db6[_0x397ab4('0x18')],'WhatsappQueueId':_0x397db6['id'],'interface':util[_0x397ab4('0x61')](_0x397ab4('0x2a'),_0x397ab4('0x59'),_0x5dc805['name']),'penalty':0x0,'paused':_0x5dc805[_0x397ab4('0x63')],'createdAt':_0x5dc805[_0x397ab4('0x52')],'updatedAt':_0x5dc805[_0x397ab4('0x72')]};})}:{'count':0x0,'rows':[]};})[_0x189db5('0x28')](respondWithFilteredResult(_0x458504,_0xe895ca))[_0x189db5('0x6a')](handleError(_0x458504,null));},exports[_0x4b1bcb('0x1b')]=function(_0x55d276,_0x5633f8){const _0x48b2a9=_0x4b1bcb;let _0x15ad58={};const _0x2d0dd9={};let _0x58d3c5,_0xaa582d;return db[_0x48b2a9('0x60')][_0x48b2a9('0x26')]({'where':{'id':_0x55d276[_0x48b2a9('0x3a')]['id']}})[_0x48b2a9('0x28')](handleEntityNotFound(_0x5633f8,null))[_0x48b2a9('0x28')](function(_0x289a36){const _0x26e701=_0x48b2a9;if(_0x289a36)return _0x58d3c5=_0x289a36,_0x2d0dd9['model']=_[_0x26e701('0x31')](db['Team'][_0x26e701('0x3e')]),_0x2d0dd9['query']=_[_0x26e701('0x31')](_0x55d276[_0x26e701('0x73')]),_0x2d0dd9['filters']=_[_0x26e701('0x11')](_0x2d0dd9['model'],_0x2d0dd9[_0x26e701('0x73')]),_0x15ad58[_0x26e701('0x2c')]=_[_0x26e701('0x11')](_0x2d0dd9[_0x26e701('0x3')],qs['fields'](_0x55d276[_0x26e701('0x73')][_0x26e701('0x53')])),_0x15ad58[_0x26e701('0x2c')]=_0x15ad58['attributes']['length']?_0x15ad58[_0x26e701('0x2c')]:_0x2d0dd9['model'],_0x15ad58[_0x26e701('0x56')]=qs[_0x26e701('0x1d')](_0x55d276[_0x26e701('0x73')]['sort']),_0x15ad58[_0x26e701('0x44')]=qs[_0x26e701('0x42')](_[_0x26e701('0x3c')](_0x55d276['query'],_0x2d0dd9['filters'])),_0x55d276[_0x26e701('0x73')][_0x26e701('0x37')]&&(_0x15ad58['where']=_[_0x26e701('0x10')](_0x15ad58['where'],{[Op['or']]:_['map'](_0x15ad58[_0x26e701('0x2c')],function(_0x1bde3e){const _0x3a201a=_0x26e701,_0x4beab2={};return _0x4beab2[_0x1bde3e]={[Op[_0x3a201a('0x14')]]:'%'+_0x55d276['query'][_0x3a201a('0x37')]+'%'},_0x4beab2;})})),_0x15ad58=_[_0x26e701('0x10')]({},_0x15ad58,_0x55d276[_0x26e701('0x49')]),_0x58d3c5[_0x26e701('0x1b')](_0x15ad58);})['then'](function(_0x57505d){const _0x2655a8=_0x48b2a9;if(_0x57505d)return _0xaa582d=_0x57505d[_0x2655a8('0x46')],typeof _0x55d276[_0x2655a8('0x73')][_0x2655a8('0x7')]==='undefined'&&(_0x15ad58[_0x2655a8('0x2e')]=qs[_0x2655a8('0x2e')](_0x55d276['query'][_0x2655a8('0x2e')]),_0x15ad58[_0x2655a8('0x6c')]=qs[_0x2655a8('0x6c')](_0x55d276[_0x2655a8('0x73')][_0x2655a8('0x6c')])),_0x58d3c5['getTeams'](_0x15ad58);})[_0x48b2a9('0x28')](function(_0x4d5ba7){if(_0x4d5ba7)return _0x4d5ba7?{'count':_0xaa582d,'rows':_0x4d5ba7}:null;})['then'](respondWithResult(_0x5633f8,null))['catch'](handleError(_0x5633f8,null));},exports[_0x4b1bcb('0x21')]=function(_0x6d9473,_0xc6f057){const _0x45340e=_0x4b1bcb,_0x53de74=_0x6d9473[_0x45340e('0x0')]['ids'];return db[_0x45340e('0x51')]['findAll']({'where':{'id':_0x53de74},'attributes':['id'],'include':[{'model':db[_0x45340e('0x36')],'as':_0x45340e('0xe'),'attributes':['id','name',_0x45340e('0x6b'),_0x45340e('0x5b'),_0x45340e('0x5e')],'raw':!![]}]})[_0x45340e('0x28')](function(_0x3b8f09){const _0x3ce081=_0x45340e;if(_0x3b8f09){const _0x1cdaf7=_[_0x3ce081('0x48')](_0x3b8f09,function(_0x1070ad){const _0x110ed7=_0x3ce081,_0x581ac6=_0x1070ad[_0x110ed7('0x9')]({'plain':!![]});return _0x581ac6[_0x110ed7('0xe')];});return db['WhatsappQueue']['findOne']({'where':{'id':_0x6d9473[_0x3ce081('0x3a')]['id']}})[_0x3ce081('0x28')](function(_0x292059){const _0xea6cb7=_0x3ce081;return db['sequelize'][_0xea6cb7('0xc')](function(_0x4ef02a){const _0x528629=_0xea6cb7;return _0x292059[_0x528629('0x21')](_0x53de74,{'transaction':_0x4ef02a})[_0x528629('0x28')](function(){const _0x5246f2=_0x528629;return Promise[_0x5246f2('0x27')](_0x1cdaf7,function(_0x4860b5){const _0x21dc31=_0x5246f2;return db[_0x21dc31('0x70')]['findOrCreate']({'where':{'UserId':_0x4860b5['id'],'WhatsappQueueId':_0x6d9473[_0x21dc31('0x3a')]['id']},'transaction':_0x4ef02a});});})[_0x528629('0x28')](function(){_0x1cdaf7['forEach'](function(_0x4e5700){const _0x28e471=a808_0x1449;socket['emit'](_0x28e471('0x74'),{'UserId':_0x4e5700['id'],'WhatsappQueueId':_0x292059['id']});});});});});}})['then'](respondWithStatusCode(_0xc6f057,null))[_0x45340e('0x6a')](handleError(_0xc6f057,null));},exports[_0x4b1bcb('0x71')]=function(_0x1c824f,_0x5536ad){const _0x1a743d=_0x4b1bcb;return db['Team'][_0x1a743d('0x4a')]({'where':{'id':_0x1c824f[_0x1a743d('0x73')][_0x1a743d('0x15')]},'attributes':['id'],'include':[{'model':db[_0x1a743d('0x36')],'as':_0x1a743d('0xe'),'attributes':['id'],'raw':!![]}]})[_0x1a743d('0x28')](handleEntityNotFound(_0x5536ad,null))[_0x1a743d('0x28')](function(_0x2ec22d){const _0x4472dd=_0x1a743d,_0x172072=_[_0x4472dd('0x8')](_0x2ec22d,'id');let _0x22beb0=[];const _0x18ea52=[],_0x2b0011=squel[_0x4472dd('0x3b')]();_0x2b0011[_0x4472dd('0x68')](_0x4472dd('0x1a'))[_0x4472dd('0x69')](_0x4472dd('0xb'),'tq')[_0x4472dd('0x67')](_0x4472dd('0x39'),'ut','ut.TeamId\x20=\x20tq.TeamId')[_0x4472dd('0x44')](_0x4472dd('0xd'),_0x1c824f['params']['id']);for(let _0xb11949=0x0;_0xb11949<_0x2ec22d[_0x4472dd('0x46')];_0xb11949+=0x1){const _0x1ffd63=_0x2ec22d[_0xb11949];for(let _0x5a17f5=0x0;_0x5a17f5<_0x1ffd63[_0x4472dd('0xe')]['length'];_0x5a17f5+=0x1){const _0x858cf1=_0x1ffd63[_0x4472dd('0xe')][_0x5a17f5],_0x10f02d=_0x2b0011[_0x4472dd('0x1')]();_0x10f02d['where'](_0x4472dd('0x62'),_0x858cf1['id']),_0x18ea52[_0x4472dd('0x4e')](db[_0x4472dd('0x3d')][_0x4472dd('0x73')](_0x10f02d[_0x4472dd('0x4d')](),{'type':QueryTypes[_0x4472dd('0x32')]})[_0x4472dd('0x28')](function(_0x178c83){const _0x30592e=_0x4472dd;if(_0x178c83['length']===0x1)return _0x858cf1['id'];else{const _0x413ae4=_[_0x30592e('0x24')](_[_0x30592e('0x8')](_0x178c83,'TeamId'),function(_0x1b1a12){const _0x4f429d=_0x30592e;return _[_0x4f429d('0x1e')](_0x172072,_0x1b1a12);});if(_0x413ae4)return _0x858cf1['id'];}}));}}return Promise[_0x4472dd('0x5')](_0x18ea52)[_0x4472dd('0x28')](function(_0x3cb381){const _0x4f12ee=_0x4472dd;return _0x22beb0=_(_0x22beb0)[_0x4f12ee('0x4f')](_0x3cb381)[_0x4f12ee('0x2d')]()[_0x4f12ee('0xa')](),db[_0x4f12ee('0x60')][_0x4f12ee('0x26')]({'where':{'id':_0x1c824f[_0x4f12ee('0x3a')]['id']}})[_0x4f12ee('0x28')](function(_0x1d8d41){const _0x202687=_0x4f12ee;return db[_0x202687('0x3d')]['transaction'](function(_0x4f3e91){const _0x58ee63=_0x202687;return _0x1d8d41[_0x58ee63('0x71')](_0x1c824f[_0x58ee63('0x73')][_0x58ee63('0x15')],{'transaction':_0x4f3e91})[_0x58ee63('0x28')](function(){const _0x55c0d0=_0x58ee63;if(!_[_0x55c0d0('0x30')](_0x22beb0))return _0x1d8d41[_0x55c0d0('0x1f')](_0x22beb0,{'transaction':_0x4f3e91});})[_0x58ee63('0x28')](function(){const _0x4f1f85=_0x58ee63;_0x22beb0[_0x4f1f85('0x43')](function(_0x18ab24){const _0x22be1c=_0x4f1f85;socket[_0x22be1c('0x4')](_0x22be1c('0x65'),{'UserId':_0x18ab24,'WhatsappQueueId':_0x1d8d41['id']});});});});});});})[_0x1a743d('0x28')](respondWithStatusCode(_0x5536ad,null))[_0x1a743d('0x6a')](handleError(_0x5536ad,null));},exports[_0x4b1bcb('0x23')]=function(_0x31dd9a,_0x2f1f02){const _0x3f3bcb=_0x4b1bcb;return db['WhatsappQueue'][_0x3f3bcb('0x26')]({'where':{'id':_0x31dd9a[_0x3f3bcb('0x3a')]['id']}})[_0x3f3bcb('0x28')](function(_0x584140){const _0x2eeabd=_0x3f3bcb;if(_0x584140)return _0x584140[_0x2eeabd('0x23')](_0x31dd9a['body'][_0x2eeabd('0x15')],{'through':_[_0x2eeabd('0x58')](_0x31dd9a['body'],[_0x2eeabd('0x15'),'id'])})[_0x2eeabd('0x28')](function(_0x7562cf){const _0x1f6228=_0x2eeabd;for(let _0xd543b9=0x0;_0xd543b9<_0x31dd9a[_0x1f6228('0x0')]['ids']['length'];_0xd543b9+=0x1){socket[_0x1f6228('0x4')]('userWhatsappQueue:save',{'UserId':_0x31dd9a['body']['ids'][_0xd543b9],'WhatsappQueueId':_0x31dd9a[_0x1f6228('0x3a')]['id']});}return _0x7562cf;});})[_0x3f3bcb('0x28')](respondWithResult(_0x2f1f02,null))[_0x3f3bcb('0x6a')](handleError(_0x2f1f02,null));},exports[_0x4b1bcb('0x1f')]=function(_0x473e1d,_0x1e623){const _0x2e32e1=_0x4b1bcb;return db[_0x2e32e1('0x60')][_0x2e32e1('0x26')]({'where':{'id':_0x473e1d[_0x2e32e1('0x3a')]['id']}})[_0x2e32e1('0x28')](handleEntityNotFound(_0x1e623,null))[_0x2e32e1('0x28')](function(_0x972818){const _0x8dacfe=_0x2e32e1;if(_0x972818)return _0x972818[_0x8dacfe('0x1f')](_0x473e1d['query']['ids'])[_0x8dacfe('0x28')](function(){const _0x54248a=_0x8dacfe;if(_[_0x54248a('0x25')](_0x473e1d['query'][_0x54248a('0x15')]))for(let _0x2cb121=0x0;_0x2cb121<_0x473e1d['query'][_0x54248a('0x15')]['length'];_0x2cb121+=0x1){socket[_0x54248a('0x4')]('userWhatsappQueue:remove',{'UserId':Number(_0x473e1d[_0x54248a('0x73')][_0x54248a('0x15')][_0x2cb121]),'WhatsappQueueId':Number(_0x473e1d[_0x54248a('0x3a')]['id'])});}else socket[_0x54248a('0x4')]('userWhatsappQueue:remove',{'UserId':Number(_0x473e1d[_0x54248a('0x73')][_0x54248a('0x15')]),'WhatsappQueueId':Number(_0x473e1d[_0x54248a('0x3a')]['id'])});});})[_0x2e32e1('0x28')](respondWithStatusCode(_0x1e623,null))[_0x2e32e1('0x6a')](handleError(_0x1e623,null));},exports[_0x4b1bcb('0xf')]=function(_0x3f1edf,_0x2538fb){const _0x230b5b=_0x4b1bcb;let _0x21c3f0={};const _0x3055d3={};let _0x2a9f36,_0x52fe2f;return db[_0x230b5b('0x60')][_0x230b5b('0x26')]({'where':{'id':_0x3f1edf['params']['id']}})[_0x230b5b('0x28')](handleEntityNotFound(_0x2538fb,null))['then'](function(_0x4ce0c4){const _0x512687=_0x230b5b;if(_0x4ce0c4)return _0x2a9f36=_0x4ce0c4,_0x3055d3[_0x512687('0x3')]=_[_0x512687('0x31')](db['User']['rawAttributes']),_0x3055d3[_0x512687('0x73')]=_[_0x512687('0x31')](_0x3f1edf[_0x512687('0x73')]),_0x3055d3[_0x512687('0x42')]=_[_0x512687('0x11')](_0x3055d3[_0x512687('0x3')],_0x3055d3[_0x512687('0x73')]),_0x21c3f0['attributes']=_[_0x512687('0x11')](_0x3055d3['model'],qs[_0x512687('0x53')](_0x3f1edf[_0x512687('0x73')][_0x512687('0x53')])),_0x21c3f0['attributes']=_0x21c3f0['attributes']['length']?_0x21c3f0[_0x512687('0x2c')]:_0x3055d3[_0x512687('0x3')],_0x21c3f0['order']=qs[_0x512687('0x1d')](_0x3f1edf[_0x512687('0x73')][_0x512687('0x1d')]),_0x21c3f0['where']=qs[_0x512687('0x42')](_[_0x512687('0x3c')](_0x3f1edf[_0x512687('0x73')],_0x3055d3[_0x512687('0x42')])),_0x3f1edf['query'][_0x512687('0x37')]&&(_0x21c3f0['where']=_[_0x512687('0x10')](_0x21c3f0[_0x512687('0x44')],{[Op['or']]:_['map'](_0x21c3f0['attributes'],function(_0x807096){const _0x5d6961=_0x512687,_0x18951c={};return _0x18951c[_0x807096]={[Op[_0x5d6961('0x14')]]:'%'+_0x3f1edf[_0x5d6961('0x73')][_0x5d6961('0x37')]+'%'},_0x18951c;})})),_0x21c3f0=_['merge']({},_0x21c3f0,_0x3f1edf[_0x512687('0x49')]),_0x2a9f36[_0x512687('0xf')](_0x21c3f0);})[_0x230b5b('0x28')](function(_0x33fa0a){const _0xc9f741=_0x230b5b;if(_0x33fa0a)return _0x52fe2f=_0x33fa0a[_0xc9f741('0x46')],typeof _0x3f1edf[_0xc9f741('0x73')][_0xc9f741('0x7')]===_0xc9f741('0x20')&&(_0x21c3f0[_0xc9f741('0x2e')]=qs[_0xc9f741('0x2e')](_0x3f1edf[_0xc9f741('0x73')][_0xc9f741('0x2e')]),_0x21c3f0[_0xc9f741('0x6c')]=qs[_0xc9f741('0x6c')](_0x3f1edf[_0xc9f741('0x73')]['offset'])),_0x2a9f36['getAgents'](_0x21c3f0);})[_0x230b5b('0x28')](function(_0x4e4980){if(_0x4e4980)return _0x4e4980?{'count':_0x52fe2f,'rows':_0x4e4980}:null;})[_0x230b5b('0x28')](respondWithResult(_0x2538fb,null))[_0x230b5b('0x6a')](handleError(_0x2538fb,null));}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.events.js b/server/api/whatsappQueue/whatsappQueue.events.js index 3aaf2c2..2c41587 100644 --- a/server/api/whatsappQueue/whatsappQueue.events.js +++ b/server/api/whatsappQueue/whatsappQueue.events.js @@ -1 +1 @@ -const a809_0x16f5=['setMaxListeners','update','emit','exports','undefined','save','addHook','events'];(function(_0x47f418,_0x16f561){const _0x2eac1b=function(_0x354c3d){while(--_0x354c3d){_0x47f418['push'](_0x47f418['shift']());}};_0x2eac1b(++_0x16f561);}(a809_0x16f5,0x18e));const a809_0x2eac=function(_0x47f418,_0x16f561){_0x47f418=_0x47f418-0x0;let _0x2eac1b=a809_0x16f5[_0x47f418];return _0x2eac1b;};const _0x805404=a809_0x2eac;'use strict';const EventEmitter=require(_0x805404('0x1')),WhatsappQueue=require('../../mysqldb')['db']['WhatsappQueue'],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[_0x805404('0x2')](0x0);const events={'afterCreate':_0x805404('0x7'),'afterUpdate':_0x805404('0x3'),'afterDestroy':'remove'};function emitEvent(_0x354c3d){return function(_0x48b0e2){const _0x40c395=a809_0x2eac;WhatsappQueueEvents[_0x40c395('0x4')](_0x354c3d+':'+_0x48b0e2['id'],_0x48b0e2),WhatsappQueueEvents[_0x40c395('0x4')](_0x354c3d,_0x48b0e2);};}for(const e in events){if(typeof events[e]!==_0x805404('0x6')){const event=events[e];WhatsappQueue[_0x805404('0x0')](e,emitEvent(event));}}module[_0x805404('0x5')]=WhatsappQueueEvents; \ No newline at end of file +const a809_0x4651=['emit','WhatsappQueue','update','addHook','../../mysqldb','setMaxListeners','events'];(function(_0xae0923,_0x4651af){const _0x6a576f=function(_0x1516f5){while(--_0x1516f5){_0xae0923['push'](_0xae0923['shift']());}};_0x6a576f(++_0x4651af);}(a809_0x4651,0x6d));const a809_0x6a57=function(_0xae0923,_0x4651af){_0xae0923=_0xae0923-0x0;let _0x6a576f=a809_0x4651[_0xae0923];return _0x6a576f;};const _0x96296e=a809_0x6a57;'use strict';const EventEmitter=require(_0x96296e('0x2')),WhatsappQueue=require(_0x96296e('0x0'))['db'][_0x96296e('0x4')],WhatsappQueueEvents=new EventEmitter();WhatsappQueueEvents[_0x96296e('0x1')](0x0);const events={'afterCreate':'save','afterUpdate':_0x96296e('0x5'),'afterDestroy':'remove'};function emitEvent(_0x1516f5){return function(_0x3fe99e){const _0x130c7f=a809_0x6a57;WhatsappQueueEvents[_0x130c7f('0x3')](_0x1516f5+':'+_0x3fe99e['id'],_0x3fe99e),WhatsappQueueEvents[_0x130c7f('0x3')](_0x1516f5,_0x3fe99e);};}for(const e in events){if(typeof events[e]!=='undefined'){const event=events[e];WhatsappQueue[_0x96296e('0x6')](e,emitEvent(event));}}module['exports']=WhatsappQueueEvents; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.model.js b/server/api/whatsappQueue/whatsappQueue.model.js index 97ee2c6..7d2f82a 100644 --- a/server/api/whatsappQueue/whatsappQueue.model.js +++ b/server/api/whatsappQueue/whatsappQueue.model.js @@ -1 +1 @@ -const a810_0x4863=['exports','WhatsappQueue','whatsapp_queues','define'];(function(_0x1daa78,_0x486344){const _0x390598=function(_0x78f797){while(--_0x78f797){_0x1daa78['push'](_0x1daa78['shift']());}};_0x390598(++_0x486344);}(a810_0x4863,0x109));const a810_0x3905=function(_0x1daa78,_0x486344){_0x1daa78=_0x1daa78-0x0;let _0x390598=a810_0x4863[_0x1daa78];return _0x390598;};const _0x5d996e=a810_0x3905;'use strict';const attributes=require('./whatsappQueue.attributes');module[_0x5d996e('0x3')]=function(_0x78f797){const _0x2c3d97=_0x5d996e,_0x8f0c36=_0x78f797[_0x2c3d97('0x2')](_0x2c3d97('0x0'),attributes,{'tableName':_0x2c3d97('0x1'),'paranoid':![],'indexes':[],'timestamps':!![]});return _0x8f0c36;}; \ No newline at end of file +const a810_0x1855=['define','./whatsappQueue.attributes','WhatsappQueue','exports'];(function(_0x59356b,_0x1855a6){const _0x5c0b86=function(_0x4a6c49){while(--_0x4a6c49){_0x59356b['push'](_0x59356b['shift']());}};_0x5c0b86(++_0x1855a6);}(a810_0x1855,0x64));const a810_0x5c0b=function(_0x59356b,_0x1855a6){_0x59356b=_0x59356b-0x0;let _0x5c0b86=a810_0x1855[_0x59356b];return _0x5c0b86;};const _0x2bae0a=a810_0x5c0b;'use strict';const attributes=require(_0x2bae0a('0x1'));module[_0x2bae0a('0x3')]=function(_0x4a6c49){const _0x3d0ca9=_0x2bae0a,_0x151b95=_0x4a6c49[_0x3d0ca9('0x0')](_0x3d0ca9('0x2'),attributes,{'tableName':'whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});return _0x151b95;}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.rpc.js b/server/api/whatsappQueue/whatsappQueue.rpc.js index ba0e1c6..19667f2 100644 --- a/server/api/whatsappQueue/whatsappQueue.rpc.js +++ b/server/api/whatsappQueue/whatsappQueue.rpc.js @@ -1 +1 @@ -const a811_0x3960=['map','./whatsappQueue.socket','debug','GetWhatsappQueue','../../config/logger','attributes','info','message','../../rediscache','options','rpc','register','include','ShowWhatsappQueue','../../mysqldb','limit','lodash','then','model','catch','error','findOne','stringify','WhatsappQueue','raw'];(function(_0x2f4b97,_0x396032){const _0x2732c6=function(_0x3d4c79){while(--_0x3d4c79){_0x2f4b97['push'](_0x2f4b97['shift']());}};_0x2732c6(++_0x396032);}(a811_0x3960,0x64));const a811_0x2732=function(_0x2f4b97,_0x396032){_0x2f4b97=_0x2f4b97-0x0;let _0x2732c6=a811_0x3960[_0x2f4b97];return _0x2732c6;};const _0x23b18e=a811_0x2732;'use strict';const _=require(_0x23b18e('0x10')),db=require(_0x23b18e('0xe'))['db'],logger=require(_0x23b18e('0x4'))(_0x23b18e('0xa')),{getSocket}=require(_0x23b18e('0x8')),socket=getSocket();require(_0x23b18e('0x1'))[_0x23b18e('0xb')](socket),exports[_0x23b18e('0x3')]=function(_0x3d4c79){const _0x16918b=this;return new Promise(function(_0x5c37dc,_0x42be73){const _0x195ad1=a811_0x2732;return db['WhatsappQueue']['findAll']({'raw':_0x3d4c79['options']?_0x3d4c79[_0x195ad1('0x9')][_0x195ad1('0x18')]===undefined?!![]:![]:!![],'where':_0x3d4c79[_0x195ad1('0x9')]?_0x3d4c79[_0x195ad1('0x9')]['where']||null:null,'attributes':_0x3d4c79[_0x195ad1('0x9')]?_0x3d4c79[_0x195ad1('0x9')][_0x195ad1('0x5')]||null:null,'limit':_0x3d4c79[_0x195ad1('0x9')]?_0x3d4c79[_0x195ad1('0x9')][_0x195ad1('0xf')]||null:null,'include':_0x3d4c79[_0x195ad1('0x9')]?_0x3d4c79[_0x195ad1('0x9')][_0x195ad1('0xc')]?_['map'](_0x3d4c79['options'][_0x195ad1('0xc')],function(_0x5e15b5){const _0x211aba=_0x195ad1;return{'model':db[_0x5e15b5[_0x211aba('0x12')]],'as':_0x5e15b5['as'],'attributes':_0x5e15b5[_0x211aba('0x5')],'include':_0x5e15b5[_0x211aba('0xc')]?_[_0x211aba('0x0')](_0x5e15b5['include'],function(_0xbec892){const _0x5b105b=_0x211aba;return{'model':db[_0xbec892['model']],'as':_0xbec892['as'],'attributes':_0xbec892[_0x5b105b('0x5')],'include':_0xbec892[_0x5b105b('0xc')]?_['map'](_0xbec892[_0x5b105b('0xc')],function(_0x48d4bd){const _0x4cde53=_0x5b105b;return{'model':db[_0x48d4bd['model']],'as':_0x48d4bd['as'],'attributes':_0x48d4bd[_0x4cde53('0x5')]};}):[]};}):[]};}):[]:[]})[_0x195ad1('0x11')](function(_0x4f2eb3){const _0x184d34=_0x195ad1;logger['info']('GetWhatsappQueue',_0x3d4c79),logger['debug'](_0x184d34('0x3'),_0x3d4c79,JSON[_0x184d34('0x16')](_0x4f2eb3)),_0x5c37dc(_0x4f2eb3);})[_0x195ad1('0x13')](function(_0x99f15c){const _0x12f034=_0x195ad1;logger[_0x12f034('0x14')](_0x12f034('0x3'),_0x99f15c[_0x12f034('0x7')],_0x3d4c79),_0x42be73(_0x16918b[_0x12f034('0x14')](0x1f4,_0x99f15c['message']));});});},exports[_0x23b18e('0xd')]=function(_0x4bddc5){const _0x458641=this;return new Promise(function(_0x372577,_0x3402a1){const _0x4bf261=a811_0x2732;return db[_0x4bf261('0x17')][_0x4bf261('0x15')]({'raw':_0x4bddc5[_0x4bf261('0x9')]?_0x4bddc5['options'][_0x4bf261('0x18')]===undefined?!![]:![]:!![],'where':_0x4bddc5[_0x4bf261('0x9')]?_0x4bddc5['options']['where']||null:null,'attributes':_0x4bddc5[_0x4bf261('0x9')]?_0x4bddc5[_0x4bf261('0x9')][_0x4bf261('0x5')]||null:null,'include':_0x4bddc5[_0x4bf261('0x9')]?_0x4bddc5['options'][_0x4bf261('0xc')]?_['map'](_0x4bddc5[_0x4bf261('0x9')]['include'],function(_0x33da6a){const _0x54c4aa=_0x4bf261;return{'model':db[_0x33da6a[_0x54c4aa('0x12')]],'as':_0x33da6a['as'],'attributes':_0x33da6a[_0x54c4aa('0x5')],'include':_0x33da6a['include']?_['map'](_0x33da6a[_0x54c4aa('0xc')],function(_0x312c8b){const _0x164a84=_0x54c4aa;return{'model':db[_0x312c8b['model']],'as':_0x312c8b['as'],'attributes':_0x312c8b['attributes'],'include':_0x312c8b[_0x164a84('0xc')]?_[_0x164a84('0x0')](_0x312c8b[_0x164a84('0xc')],function(_0x578a59){const _0x2f816e=_0x164a84;return{'model':db[_0x578a59[_0x2f816e('0x12')]],'as':_0x578a59['as'],'attributes':_0x578a59[_0x2f816e('0x5')]};}):[]};}):[]};}):[]:[]})[_0x4bf261('0x11')](function(_0x4dfec0){const _0x44fe1d=_0x4bf261;logger[_0x44fe1d('0x6')]('ShowWhatsappQueue',_0x4bddc5),logger[_0x44fe1d('0x2')](_0x44fe1d('0xd'),_0x4bddc5,JSON[_0x44fe1d('0x16')](_0x4dfec0)),_0x372577(_0x4dfec0);})['catch'](function(_0x2b7c5b){const _0x37f5c6=_0x4bf261;logger[_0x37f5c6('0x14')](_0x37f5c6('0xd'),_0x2b7c5b['message'],_0x4bddc5),_0x3402a1(_0x458641[_0x37f5c6('0x14')](0x1f4,_0x2b7c5b[_0x37f5c6('0x7')]));});});}; \ No newline at end of file +const a811_0xab2a=['rpc','../../config/logger','./whatsappQueue.socket','stringify','info','debug','include','then','model','error','../../rediscache','WhatsappQueue','options','catch','map','findOne','raw','lodash','message','../../mysqldb','GetWhatsappQueue','attributes','register','ShowWhatsappQueue','limit','where'];(function(_0x25c83c,_0xab2ac9){const _0x29c56e=function(_0x3f307c){while(--_0x3f307c){_0x25c83c['push'](_0x25c83c['shift']());}};_0x29c56e(++_0xab2ac9);}(a811_0xab2a,0xf1));const a811_0x29c5=function(_0x25c83c,_0xab2ac9){_0x25c83c=_0x25c83c-0x0;let _0x29c56e=a811_0xab2a[_0x25c83c];return _0x29c56e;};const _0x8b3a2=a811_0x29c5;'use strict';const _=require(_0x8b3a2('0xa')),db=require(_0x8b3a2('0xc'))['db'],logger=require(_0x8b3a2('0x14'))(_0x8b3a2('0x13')),{getSocket}=require(_0x8b3a2('0x3')),socket=getSocket();require(_0x8b3a2('0x15'))[_0x8b3a2('0xf')](socket),exports[_0x8b3a2('0xd')]=function(_0x3f307c){const _0x3657cb=this;return new Promise(function(_0x3c8cda,_0xbc4d47){const _0x91aca=a811_0x29c5;return db['WhatsappQueue']['findAll']({'raw':_0x3f307c[_0x91aca('0x5')]?_0x3f307c[_0x91aca('0x5')]['raw']===undefined?!![]:![]:!![],'where':_0x3f307c['options']?_0x3f307c[_0x91aca('0x5')][_0x91aca('0x12')]||null:null,'attributes':_0x3f307c[_0x91aca('0x5')]?_0x3f307c[_0x91aca('0x5')][_0x91aca('0xe')]||null:null,'limit':_0x3f307c[_0x91aca('0x5')]?_0x3f307c[_0x91aca('0x5')][_0x91aca('0x11')]||null:null,'include':_0x3f307c['options']?_0x3f307c[_0x91aca('0x5')][_0x91aca('0x19')]?_[_0x91aca('0x7')](_0x3f307c[_0x91aca('0x5')][_0x91aca('0x19')],function(_0x40c717){const _0xf36cb9=_0x91aca;return{'model':db[_0x40c717[_0xf36cb9('0x1')]],'as':_0x40c717['as'],'attributes':_0x40c717[_0xf36cb9('0xe')],'include':_0x40c717[_0xf36cb9('0x19')]?_[_0xf36cb9('0x7')](_0x40c717[_0xf36cb9('0x19')],function(_0x2931ab){const _0xe33960=_0xf36cb9;return{'model':db[_0x2931ab[_0xe33960('0x1')]],'as':_0x2931ab['as'],'attributes':_0x2931ab['attributes'],'include':_0x2931ab[_0xe33960('0x19')]?_[_0xe33960('0x7')](_0x2931ab[_0xe33960('0x19')],function(_0x47cb16){const _0x317559=_0xe33960;return{'model':db[_0x47cb16[_0x317559('0x1')]],'as':_0x47cb16['as'],'attributes':_0x47cb16['attributes']};}):[]};}):[]};}):[]:[]})[_0x91aca('0x0')](function(_0x2be4ab){const _0x31084e=_0x91aca;logger['info'](_0x31084e('0xd'),_0x3f307c),logger[_0x31084e('0x18')](_0x31084e('0xd'),_0x3f307c,JSON[_0x31084e('0x16')](_0x2be4ab)),_0x3c8cda(_0x2be4ab);})[_0x91aca('0x6')](function(_0x6571e4){const _0x592e18=_0x91aca;logger[_0x592e18('0x2')](_0x592e18('0xd'),_0x6571e4['message'],_0x3f307c),_0xbc4d47(_0x3657cb[_0x592e18('0x2')](0x1f4,_0x6571e4[_0x592e18('0xb')]));});});},exports[_0x8b3a2('0x10')]=function(_0x1488d9){const _0x557864=this;return new Promise(function(_0x3a490c,_0x367141){const _0x3e6a41=a811_0x29c5;return db[_0x3e6a41('0x4')][_0x3e6a41('0x8')]({'raw':_0x1488d9[_0x3e6a41('0x5')]?_0x1488d9[_0x3e6a41('0x5')][_0x3e6a41('0x9')]===undefined?!![]:![]:!![],'where':_0x1488d9[_0x3e6a41('0x5')]?_0x1488d9[_0x3e6a41('0x5')][_0x3e6a41('0x12')]||null:null,'attributes':_0x1488d9['options']?_0x1488d9['options'][_0x3e6a41('0xe')]||null:null,'include':_0x1488d9[_0x3e6a41('0x5')]?_0x1488d9[_0x3e6a41('0x5')][_0x3e6a41('0x19')]?_[_0x3e6a41('0x7')](_0x1488d9['options']['include'],function(_0x1c0423){const _0x2fbdce=_0x3e6a41;return{'model':db[_0x1c0423[_0x2fbdce('0x1')]],'as':_0x1c0423['as'],'attributes':_0x1c0423[_0x2fbdce('0xe')],'include':_0x1c0423[_0x2fbdce('0x19')]?_[_0x2fbdce('0x7')](_0x1c0423[_0x2fbdce('0x19')],function(_0x10ad3b){const _0x7aa5cf=_0x2fbdce;return{'model':db[_0x10ad3b[_0x7aa5cf('0x1')]],'as':_0x10ad3b['as'],'attributes':_0x10ad3b[_0x7aa5cf('0xe')],'include':_0x10ad3b['include']?_['map'](_0x10ad3b[_0x7aa5cf('0x19')],function(_0x4c9bf2){const _0x16eb2c=_0x7aa5cf;return{'model':db[_0x4c9bf2[_0x16eb2c('0x1')]],'as':_0x4c9bf2['as'],'attributes':_0x4c9bf2[_0x16eb2c('0xe')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x1dcd81){const _0x1a43b5=_0x3e6a41;logger[_0x1a43b5('0x17')](_0x1a43b5('0x10'),_0x1488d9),logger['debug'](_0x1a43b5('0x10'),_0x1488d9,JSON[_0x1a43b5('0x16')](_0x1dcd81)),_0x3a490c(_0x1dcd81);})[_0x3e6a41('0x6')](function(_0x3baf95){const _0x151d3e=_0x3e6a41;logger[_0x151d3e('0x2')]('ShowWhatsappQueue',_0x3baf95['message'],_0x1488d9),_0x367141(_0x557864[_0x151d3e('0x2')](0x1f4,_0x3baf95[_0x151d3e('0xb')]));});});}; \ No newline at end of file diff --git a/server/api/whatsappQueue/whatsappQueue.socket.js b/server/api/whatsappQueue/whatsappQueue.socket.js index 4aac527..caa5665 100644 --- a/server/api/whatsappQueue/whatsappQueue.socket.js +++ b/server/api/whatsappQueue/whatsappQueue.socket.js @@ -1 +1 @@ -const a812_0x404d=['save','register','remove','emit','whatsappQueue:','./whatsappQueue.events'];(function(_0x530303,_0x404db6){const _0x3f6621=function(_0x163075){while(--_0x163075){_0x530303['push'](_0x530303['shift']());}};_0x3f6621(++_0x404db6);}(a812_0x404d,0x16b));const a812_0x3f66=function(_0x530303,_0x404db6){_0x530303=_0x530303-0x0;let _0x3f6621=a812_0x404d[_0x530303];return _0x3f6621;};const _0x43c756=a812_0x3f66;'use strict';const WhatsappQueueEvents=require(_0x43c756('0x2')),events=[_0x43c756('0x3'),_0x43c756('0x5'),'update'];function createListener(_0x163075,_0x1517a2){return function(_0x118565){const _0x2a7e9b=a812_0x3f66;_0x1517a2[_0x2a7e9b('0x0')](_0x163075,_0x118565);};}exports[_0x43c756('0x4')]=function(_0x24510f){const _0x38525d=_0x43c756;for(let _0x3716c5=0x0,_0x1afa00=events['length'];_0x3716c5<_0x1afa00;_0x3716c5++){const _0x312363=events[_0x3716c5],_0x502fb3=createListener(_0x38525d('0x1')+_0x312363,_0x24510f);WhatsappQueueEvents['on'](_0x312363,_0x502fb3);}}; \ No newline at end of file +const a812_0x36e1=['emit','register','remove','update'];(function(_0x1b1e12,_0x36e156){const _0x535398=function(_0x228709){while(--_0x228709){_0x1b1e12['push'](_0x1b1e12['shift']());}};_0x535398(++_0x36e156);}(a812_0x36e1,0x128));const a812_0x5353=function(_0x1b1e12,_0x36e156){_0x1b1e12=_0x1b1e12-0x0;let _0x535398=a812_0x36e1[_0x1b1e12];return _0x535398;};const _0x5200fb=a812_0x5353;'use strict';const WhatsappQueueEvents=require('./whatsappQueue.events'),events=['save',_0x5200fb('0x2'),_0x5200fb('0x3')];function createListener(_0x228709,_0xf63351){return function(_0x246135){const _0x2fee5f=a812_0x5353;_0xf63351[_0x2fee5f('0x0')](_0x228709,_0x246135);};}exports[_0x5200fb('0x1')]=function(_0x22b0ae){for(let _0x20e41a=0x0,_0x24e033=events['length'];_0x20e41a<_0x24e033;_0x20e41a++){const _0x2b335a=events[_0x20e41a],_0x54882f=createListener('whatsappQueue:'+_0x2b335a,_0x22b0ae);WhatsappQueueEvents['on'](_0x2b335a,_0x54882f);}}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/index.js b/server/api/whatsappQueueReport/index.js index 4cd8c3d..4e2b857 100644 --- a/server/api/whatsappQueueReport/index.js +++ b/server/api/whatsappQueueReport/index.js @@ -1 +1 @@ -const a813_0x4390=['create','/:id','delete','Router','./whatsappQueueReport.controller','describe','get','../../components/auth/service','isAuthenticated','update','index','post','exports','destroy','/describe','put','show'];(function(_0x1084b9,_0x439019){const _0x29e652=function(_0x505ff1){while(--_0x505ff1){_0x1084b9['push'](_0x1084b9['shift']());}};_0x29e652(++_0x439019);}(a813_0x4390,0xb3));const a813_0x29e6=function(_0x1084b9,_0x439019){_0x1084b9=_0x1084b9-0x0;let _0x29e652=a813_0x4390[_0x1084b9];return _0x29e652;};const _0x1a823f=a813_0x29e6;'use strict';const express=require('express'),router=express[_0x1a823f('0xb')](),auth=require(_0x1a823f('0xf')),controller=require(_0x1a823f('0xc'));router[_0x1a823f('0xe')]('/',auth[_0x1a823f('0x10')](),controller[_0x1a823f('0x1')]),router['get'](_0x1a823f('0x5'),auth[_0x1a823f('0x10')](),controller[_0x1a823f('0xd')]),router['get']('/:id',auth[_0x1a823f('0x10')](),controller[_0x1a823f('0x7')]),router[_0x1a823f('0x2')]('/',auth[_0x1a823f('0x10')](),controller[_0x1a823f('0x8')]),router[_0x1a823f('0x6')](_0x1a823f('0x9'),auth[_0x1a823f('0x10')](),controller[_0x1a823f('0x0')]),router[_0x1a823f('0xa')]('/:id',auth[_0x1a823f('0x10')](),controller[_0x1a823f('0x4')]),module[_0x1a823f('0x3')]=router; \ No newline at end of file +const a813_0x138b=['put','delete','/describe','create','post','express','isAuthenticated','./whatsappQueueReport.controller','describe','Router','index','update','get','../../components/auth/service','/:id','exports'];(function(_0x2b6f16,_0x138b01){const _0x583c3d=function(_0xa64516){while(--_0xa64516){_0x2b6f16['push'](_0x2b6f16['shift']());}};_0x583c3d(++_0x138b01);}(a813_0x138b,0x1d8));const a813_0x583c=function(_0x2b6f16,_0x138b01){_0x2b6f16=_0x2b6f16-0x0;let _0x583c3d=a813_0x138b[_0x2b6f16];return _0x583c3d;};const _0xea5f06=a813_0x583c;'use strict';const express=require(_0xea5f06('0xd')),router=express[_0xea5f06('0x1')](),auth=require(_0xea5f06('0x5')),controller=require(_0xea5f06('0xf'));router[_0xea5f06('0x4')]('/',auth[_0xea5f06('0xe')](),controller[_0xea5f06('0x2')]),router[_0xea5f06('0x4')](_0xea5f06('0xa'),auth[_0xea5f06('0xe')](),controller[_0xea5f06('0x0')]),router[_0xea5f06('0x4')]('/:id',auth[_0xea5f06('0xe')](),controller['show']),router[_0xea5f06('0xc')]('/',auth['isAuthenticated'](),controller[_0xea5f06('0xb')]),router[_0xea5f06('0x8')](_0xea5f06('0x6'),auth[_0xea5f06('0xe')](),controller[_0xea5f06('0x3')]),router[_0xea5f06('0x9')](_0xea5f06('0x6'),auth[_0xea5f06('0xe')](),controller['destroy']),module[_0xea5f06('0x7')]=router; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js index ec4628d..f699d17 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.attributes.js @@ -1 +1 @@ -const a814_0x28e2=['exports','DATE'];(function(_0x2f3a21,_0x28e26a){const _0x23631e=function(_0x4ac315){while(--_0x4ac315){_0x2f3a21['push'](_0x2f3a21['shift']());}};_0x23631e(++_0x28e26a);}(a814_0x28e2,0x1c9));const a814_0x2363=function(_0x2f3a21,_0x28e26a){_0x2f3a21=_0x2f3a21-0x0;let _0x23631e=a814_0x28e2[_0x2f3a21];return _0x23631e;};const _0x482016=a814_0x2363;'use strict';const Sequelize=require('sequelize');module[_0x482016('0x1')]={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'from':{'type':Sequelize['STRING']},'joinAt':{'type':Sequelize[_0x482016('0x0')]},'leaveAt':{'type':Sequelize[_0x482016('0x0')]},'acceptAt':{'type':Sequelize[_0x482016('0x0')]},'exitAt':{'type':Sequelize[_0x482016('0x0')]},'reason':{'type':Sequelize['STRING']}}; \ No newline at end of file +const a814_0x33ce=['exports','STRING','DATE','sequelize'];(function(_0x5c8b69,_0x33cedb){const _0x4f9cb6=function(_0x3532c1){while(--_0x3532c1){_0x5c8b69['push'](_0x5c8b69['shift']());}};_0x4f9cb6(++_0x33cedb);}(a814_0x33ce,0x17d));const a814_0x4f9c=function(_0x5c8b69,_0x33cedb){_0x5c8b69=_0x5c8b69-0x0;let _0x4f9cb6=a814_0x33ce[_0x5c8b69];return _0x4f9cb6;};const _0x4d9cea=a814_0x4f9c;'use strict';const Sequelize=require(_0x4d9cea('0x2'));module[_0x4d9cea('0x3')]={'uniqueid':{'type':Sequelize[_0x4d9cea('0x0')],'allowNull':![]},'from':{'type':Sequelize[_0x4d9cea('0x0')]},'joinAt':{'type':Sequelize[_0x4d9cea('0x1')]},'leaveAt':{'type':Sequelize['DATE']},'acceptAt':{'type':Sequelize['DATE']},'exitAt':{'type':Sequelize[_0x4d9cea('0x1')]},'reason':{'type':Sequelize[_0x4d9cea('0x0')]}}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js index 7a25bd0..9bd7191 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.controller.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.controller.js @@ -1 +1 @@ -const a815_0x3d0e=['like','options','order','offset','where','api','rows','params','map','undefined','index','rawAttributes','name','VIRTUAL','merge','count','error','type','fieldName','end','model','set','body','../../mysqldb','key','describe','json','filter','stack','keys','includeAll','fields','include','catch','findOne','update','filters','intersection','sort','WhatsappQueueReport','sendStatus','send','status','destroy','findAll','length','nolimit','attributes','then','query','limit','create'];(function(_0x55621e,_0x3d0e34){const _0x255e15=function(_0x2d040d){while(--_0x2d040d){_0x55621e['push'](_0x55621e['shift']());}};_0x255e15(++_0x3d0e34);}(a815_0x3d0e,0x16c));const a815_0x255e=function(_0x55621e,_0x3d0e34){_0x55621e=_0x55621e-0x0;let _0x255e15=a815_0x3d0e[_0x55621e];return _0x255e15;};const _0x11c6e8=a815_0x255e;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')(_0x11c6e8('0x5')),db=require(_0x11c6e8('0x17'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2d040d,_0x248b3e){return _0x248b3e=_0x248b3e||0xc8,function(_0x50b54a){const _0x17da4a=a815_0x255e;if(_0x50b54a)return _0x2d040d[_0x17da4a('0x2a')](_0x248b3e)[_0x17da4a('0x1a')](_0x50b54a);};}function respondWithFilteredResult(_0x370daa,_0x224caf){return function(_0x3651e4){const _0x54e794=a815_0x255e;if(_0x3651e4){const _0x412273=_0x3651e4[_0x54e794('0xf')],_0x1b0f4b=_0x224caf[_0x54e794('0x3')];let _0x29d5e7=_0x224caf[_0x54e794('0x3')]+_0x224caf[_0x54e794('0x32')],_0x11cc36;return _0x29d5e7>=_0x412273?(_0x29d5e7=_0x412273,_0x11cc36=0xc8):_0x11cc36=0xce,_0x370daa[_0x54e794('0x2a')](_0x11cc36),_0x370daa[_0x54e794('0x15')]('Content-Range',_0x1b0f4b+'-'+_0x29d5e7+'/'+_0x412273)[_0x54e794('0x1a')](_0x3651e4);}return null;};}function saveUpdates(_0x2bdf02){return function(_0x34b206){const _0x2d0844=a815_0x255e;if(_0x34b206)return _0x34b206['update'](_0x2bdf02)[_0x2d0844('0x30')](function(_0x4f9645){return _0x4f9645;});return null;};}function removeEntity(_0x42fd9a){return function(_0x555e69){const _0x5cebe5=a815_0x255e;if(_0x555e69)return _0x555e69['destroy']()[_0x5cebe5('0x30')](function(){const _0x120df7=_0x5cebe5;_0x42fd9a['status'](0xcc)[_0x120df7('0x13')]();});};}function handleEntityNotFound(_0x43521e){return function(_0x7318f1){const _0x32a465=a815_0x255e;return!_0x7318f1&&_0x43521e[_0x32a465('0x28')](0x194),_0x7318f1;};}function handleError(_0x3361b1,_0x5c49e2){return _0x5c49e2=_0x5c49e2||0x1f4,function(_0x2709b2){const _0x27be60=a815_0x255e;logger[_0x27be60('0x10')](_0x2709b2[_0x27be60('0x1c')]),_0x2709b2[_0x27be60('0xc')]&&delete _0x2709b2[_0x27be60('0xc')],_0x3361b1[_0x27be60('0x2a')](_0x5c49e2)[_0x27be60('0x29')](_0x2709b2);};}exports[_0x11c6e8('0xa')]=function(_0x12e0e2,_0x5b62e0){const _0x1e152a=_0x11c6e8;let _0xd4b32b={};const _0x4d474a={},_0x21e6fb={'count':0x0,'rows':[]},_0x8c2db2=_[_0x1e152a('0x8')](db[_0x1e152a('0x27')][_0x1e152a('0xb')],function(_0xe9da56){const _0x3412aa=_0x1e152a;return{'name':_0xe9da56[_0x3412aa('0x12')],'type':_0xe9da56[_0x3412aa('0x11')][_0x3412aa('0x18')]};});_0x4d474a[_0x1e152a('0x14')]=_[_0x1e152a('0x8')](_0x8c2db2,'name'),_0x4d474a['query']=_[_0x1e152a('0x1d')](_0x12e0e2[_0x1e152a('0x31')]),_0x4d474a[_0x1e152a('0x24')]=_[_0x1e152a('0x25')](_0x4d474a[_0x1e152a('0x14')],_0x4d474a[_0x1e152a('0x31')]),_0xd4b32b['attributes']=_[_0x1e152a('0x25')](_0x4d474a[_0x1e152a('0x14')],qs[_0x1e152a('0x1f')](_0x12e0e2[_0x1e152a('0x31')][_0x1e152a('0x1f')])),_0xd4b32b[_0x1e152a('0x2f')]=_0xd4b32b[_0x1e152a('0x2f')][_0x1e152a('0x2d')]?_0xd4b32b[_0x1e152a('0x2f')]:_0x4d474a[_0x1e152a('0x14')];typeof _0x12e0e2[_0x1e152a('0x31')][_0x1e152a('0x2e')]===_0x1e152a('0x9')&&(_0xd4b32b[_0x1e152a('0x32')]=qs[_0x1e152a('0x32')](_0x12e0e2['query']['limit']),_0xd4b32b[_0x1e152a('0x3')]=qs[_0x1e152a('0x3')](_0x12e0e2[_0x1e152a('0x31')][_0x1e152a('0x3')]));_0xd4b32b[_0x1e152a('0x2')]=qs['sort'](_0x12e0e2[_0x1e152a('0x31')][_0x1e152a('0x26')]),_0xd4b32b[_0x1e152a('0x4')]=qs[_0x1e152a('0x24')](_['pick'](_0x12e0e2[_0x1e152a('0x31')],_0x4d474a[_0x1e152a('0x24')]),_0x8c2db2);_0x12e0e2[_0x1e152a('0x31')][_0x1e152a('0x1b')]&&(_0xd4b32b[_0x1e152a('0x4')]=_[_0x1e152a('0xe')](_0xd4b32b[_0x1e152a('0x4')],{[Op['or']]:_[_0x1e152a('0x8')](_0x8c2db2,function(_0x31f279){const _0x287e2f=_0x1e152a;if(_0x31f279[_0x287e2f('0x11')]!==_0x287e2f('0xd')){const _0x55848a={};return _0x55848a[_0x31f279[_0x287e2f('0xc')]]={[Op[_0x287e2f('0x0')]]:'%'+_0x12e0e2[_0x287e2f('0x31')]['filter']+'%'},_0x55848a;}})}));_0xd4b32b=_[_0x1e152a('0xe')]({},_0xd4b32b,_0x12e0e2[_0x1e152a('0x1')]);const _0x52d5bc={'where':_0xd4b32b[_0x1e152a('0x4')]};return db[_0x1e152a('0x27')][_0x1e152a('0xf')](_0x52d5bc)[_0x1e152a('0x30')](function(_0x33dc16){const _0x5e665c=_0x1e152a;return _0x21e6fb['count']=_0x33dc16,_0x12e0e2[_0x5e665c('0x31')][_0x5e665c('0x1e')]&&(_0xd4b32b[_0x5e665c('0x20')]=[{'all':!![]}]),db['WhatsappQueueReport'][_0x5e665c('0x2c')](_0xd4b32b);})[_0x1e152a('0x30')](function(_0x35533a){const _0x21787a=_0x1e152a;return _0x21e6fb[_0x21787a('0x6')]=_0x35533a,_0x21e6fb;})[_0x1e152a('0x30')](respondWithFilteredResult(_0x5b62e0,_0xd4b32b))[_0x1e152a('0x21')](handleError(_0x5b62e0,null));},exports['show']=function(_0x1cf5e4,_0x25ec08){const _0xdc28f3=_0x11c6e8;let _0x577554={'raw':!![],'where':{'id':_0x1cf5e4[_0xdc28f3('0x7')]['id']}};const _0x360008={};return _0x360008['model']=_['keys'](db[_0xdc28f3('0x27')]['rawAttributes']),_0x360008[_0xdc28f3('0x31')]=_['keys'](_0x1cf5e4[_0xdc28f3('0x31')]),_0x360008['filters']=_[_0xdc28f3('0x25')](_0x360008[_0xdc28f3('0x14')],_0x360008[_0xdc28f3('0x31')]),_0x577554['attributes']=_['intersection'](_0x360008[_0xdc28f3('0x14')],qs[_0xdc28f3('0x1f')](_0x1cf5e4[_0xdc28f3('0x31')][_0xdc28f3('0x1f')])),_0x577554[_0xdc28f3('0x2f')]=_0x577554[_0xdc28f3('0x2f')][_0xdc28f3('0x2d')]?_0x577554[_0xdc28f3('0x2f')]:_0x360008[_0xdc28f3('0x14')],_0x1cf5e4[_0xdc28f3('0x31')][_0xdc28f3('0x1e')]&&(_0x577554['include']=[{'all':!![]}]),_0x577554=_[_0xdc28f3('0xe')]({},_0x577554,_0x1cf5e4[_0xdc28f3('0x1')]),db[_0xdc28f3('0x27')][_0xdc28f3('0x22')](_0x577554)[_0xdc28f3('0x30')](handleEntityNotFound(_0x25ec08,null))[_0xdc28f3('0x30')](respondWithResult(_0x25ec08,null))[_0xdc28f3('0x21')](handleError(_0x25ec08,null));},exports[_0x11c6e8('0x33')]=function(_0x1023bb,_0x19e705){const _0x1155f6=_0x11c6e8;return db[_0x1155f6('0x27')][_0x1155f6('0x33')](_0x1023bb[_0x1155f6('0x16')],{})[_0x1155f6('0x30')](respondWithResult(_0x19e705,0xc9))[_0x1155f6('0x21')](handleError(_0x19e705,null));},exports[_0x11c6e8('0x23')]=function(_0x3bf459,_0x2ce511){const _0x30e35f=_0x11c6e8;return _0x3bf459['body']['id']&&delete _0x3bf459[_0x30e35f('0x16')]['id'],db[_0x30e35f('0x27')]['findOne']({'where':{'id':_0x3bf459[_0x30e35f('0x7')]['id']}})[_0x30e35f('0x30')](handleEntityNotFound(_0x2ce511,null))[_0x30e35f('0x30')](saveUpdates(_0x3bf459[_0x30e35f('0x16')],null))[_0x30e35f('0x30')](respondWithResult(_0x2ce511,null))['catch'](handleError(_0x2ce511,null));},exports[_0x11c6e8('0x2b')]=function(_0x4d896e,_0xc79212){const _0x3f8b3d=_0x11c6e8;return db[_0x3f8b3d('0x27')]['findOne']({'where':{'id':_0x4d896e[_0x3f8b3d('0x7')]['id']}})[_0x3f8b3d('0x30')](handleEntityNotFound(_0xc79212,null))[_0x3f8b3d('0x30')](removeEntity(_0xc79212,null))[_0x3f8b3d('0x21')](handleError(_0xc79212,null));},exports['describe']=function(_0x25acf3,_0x356c51){const _0x2bfc97=_0x11c6e8;return db[_0x2bfc97('0x27')][_0x2bfc97('0x19')]()[_0x2bfc97('0x30')](respondWithResult(_0x356c51,null))[_0x2bfc97('0x21')](handleError(_0x356c51,null));}; \ No newline at end of file +const a815_0x327b=['../../config/logger','rawAttributes','catch','order','sequelize','body','limit','count','create','merge','filter','error','VIRTUAL','map','index','keys','options','then','like','attributes','intersection','params','nolimit','Content-Range','findOne','status','undefined','query','fields','WhatsappQueueReport','set','length','name','destroy','sort','../../mysqldb','describe','where','update','key','model','show','fieldName','include','findAll','includeAll','offset','filters','json','end'];(function(_0x187721,_0x327b52){const _0x1614ac=function(_0x105416){while(--_0x105416){_0x187721['push'](_0x187721['shift']());}};_0x1614ac(++_0x327b52);}(a815_0x327b,0xa9));const a815_0x1614=function(_0x187721,_0x327b52){_0x187721=_0x187721-0x0;let _0x1614ac=a815_0x327b[_0x187721];return _0x1614ac;};const _0x369426=a815_0x1614;'use strict';const _=require('lodash'),qs=require('../../components/parsers/qs'),logger=require(_0x369426('0x1f'))('api'),db=require(_0x369426('0x10'))['db'],{Op}=require(_0x369426('0x23'));function respondWithResult(_0x105416,_0x1c79cb){return _0x1c79cb=_0x1c79cb||0xc8,function(_0x21fcdb){if(_0x21fcdb)return _0x105416['status'](_0x1c79cb)['json'](_0x21fcdb);};}function respondWithFilteredResult(_0x34c7ec,_0xa3dfb4){return function(_0x4fca65){const _0x34699a=a815_0x1614;if(_0x4fca65){const _0x330093=_0x4fca65['count'],_0x3bed73=_0xa3dfb4[_0x34699a('0x1b')];let _0x107e7e=_0xa3dfb4[_0x34699a('0x1b')]+_0xa3dfb4[_0x34699a('0x25')],_0x11ce80;return _0x107e7e>=_0x330093?(_0x107e7e=_0x330093,_0x11ce80=0xc8):_0x11ce80=0xce,_0x34c7ec[_0x34699a('0x6')](_0x11ce80),_0x34c7ec[_0x34699a('0xb')](_0x34699a('0x4'),_0x3bed73+'-'+_0x107e7e+'/'+_0x330093)[_0x34699a('0x1d')](_0x4fca65);}return null;};}function saveUpdates(_0x2878bb){return function(_0x5e8590){const _0x1cfe54=a815_0x1614;if(_0x5e8590)return _0x5e8590[_0x1cfe54('0x13')](_0x2878bb)[_0x1cfe54('0x30')](function(_0x4709e1){return _0x4709e1;});return null;};}function removeEntity(_0x161cdd){return function(_0xfe5555){const _0x1251ab=a815_0x1614;if(_0xfe5555)return _0xfe5555[_0x1251ab('0xe')]()[_0x1251ab('0x30')](function(){const _0x2d208a=_0x1251ab;_0x161cdd[_0x2d208a('0x6')](0xcc)[_0x2d208a('0x1e')]();});};}function handleEntityNotFound(_0x570bd6){return function(_0x698cf1){return!_0x698cf1&&_0x570bd6['sendStatus'](0x194),_0x698cf1;};}function handleError(_0x2e05d1,_0x2086dd){return _0x2086dd=_0x2086dd||0x1f4,function(_0x466189){const _0x8bf969=a815_0x1614;logger[_0x8bf969('0x2a')](_0x466189['stack']),_0x466189[_0x8bf969('0xd')]&&delete _0x466189[_0x8bf969('0xd')],_0x2e05d1[_0x8bf969('0x6')](_0x2086dd)['send'](_0x466189);};}exports[_0x369426('0x2d')]=function(_0x7a0b7a,_0x286fbf){const _0x44f0a8=_0x369426;let _0x4f5b14={};const _0x1f9086={},_0x290877={'count':0x0,'rows':[]},_0x35457a=_[_0x44f0a8('0x2c')](db[_0x44f0a8('0xa')][_0x44f0a8('0x20')],function(_0x456a2f){const _0x14c00a=_0x44f0a8;return{'name':_0x456a2f[_0x14c00a('0x17')],'type':_0x456a2f['type'][_0x14c00a('0x14')]};});_0x1f9086[_0x44f0a8('0x15')]=_[_0x44f0a8('0x2c')](_0x35457a,_0x44f0a8('0xd')),_0x1f9086['query']=_[_0x44f0a8('0x2e')](_0x7a0b7a[_0x44f0a8('0x8')]),_0x1f9086['filters']=_['intersection'](_0x1f9086[_0x44f0a8('0x15')],_0x1f9086[_0x44f0a8('0x8')]),_0x4f5b14[_0x44f0a8('0x0')]=_[_0x44f0a8('0x1')](_0x1f9086[_0x44f0a8('0x15')],qs[_0x44f0a8('0x9')](_0x7a0b7a['query']['fields'])),_0x4f5b14[_0x44f0a8('0x0')]=_0x4f5b14[_0x44f0a8('0x0')]['length']?_0x4f5b14['attributes']:_0x1f9086['model'];typeof _0x7a0b7a[_0x44f0a8('0x8')][_0x44f0a8('0x3')]===_0x44f0a8('0x7')&&(_0x4f5b14[_0x44f0a8('0x25')]=qs[_0x44f0a8('0x25')](_0x7a0b7a[_0x44f0a8('0x8')][_0x44f0a8('0x25')]),_0x4f5b14[_0x44f0a8('0x1b')]=qs[_0x44f0a8('0x1b')](_0x7a0b7a['query'][_0x44f0a8('0x1b')]));_0x4f5b14[_0x44f0a8('0x22')]=qs[_0x44f0a8('0xf')](_0x7a0b7a[_0x44f0a8('0x8')][_0x44f0a8('0xf')]),_0x4f5b14[_0x44f0a8('0x12')]=qs['filters'](_['pick'](_0x7a0b7a[_0x44f0a8('0x8')],_0x1f9086[_0x44f0a8('0x1c')]),_0x35457a);_0x7a0b7a['query'][_0x44f0a8('0x29')]&&(_0x4f5b14[_0x44f0a8('0x12')]=_[_0x44f0a8('0x28')](_0x4f5b14[_0x44f0a8('0x12')],{[Op['or']]:_[_0x44f0a8('0x2c')](_0x35457a,function(_0x2de827){const _0x1b8d4d=_0x44f0a8;if(_0x2de827['type']!==_0x1b8d4d('0x2b')){const _0x15f333={};return _0x15f333[_0x2de827[_0x1b8d4d('0xd')]]={[Op[_0x1b8d4d('0x31')]]:'%'+_0x7a0b7a[_0x1b8d4d('0x8')]['filter']+'%'},_0x15f333;}})}));_0x4f5b14=_[_0x44f0a8('0x28')]({},_0x4f5b14,_0x7a0b7a[_0x44f0a8('0x2f')]);const _0x5070af={'where':_0x4f5b14[_0x44f0a8('0x12')]};return db['WhatsappQueueReport'][_0x44f0a8('0x26')](_0x5070af)[_0x44f0a8('0x30')](function(_0x43ca97){const _0x59b0f7=_0x44f0a8;return _0x290877['count']=_0x43ca97,_0x7a0b7a[_0x59b0f7('0x8')][_0x59b0f7('0x1a')]&&(_0x4f5b14[_0x59b0f7('0x18')]=[{'all':!![]}]),db['WhatsappQueueReport'][_0x59b0f7('0x19')](_0x4f5b14);})[_0x44f0a8('0x30')](function(_0x1438f5){return _0x290877['rows']=_0x1438f5,_0x290877;})[_0x44f0a8('0x30')](respondWithFilteredResult(_0x286fbf,_0x4f5b14))[_0x44f0a8('0x21')](handleError(_0x286fbf,null));},exports[_0x369426('0x16')]=function(_0x4c625e,_0x265ea9){const _0x1472ac=_0x369426;let _0x30d547={'raw':!![],'where':{'id':_0x4c625e[_0x1472ac('0x2')]['id']}};const _0x5667bf={};return _0x5667bf['model']=_['keys'](db['WhatsappQueueReport']['rawAttributes']),_0x5667bf[_0x1472ac('0x8')]=_[_0x1472ac('0x2e')](_0x4c625e[_0x1472ac('0x8')]),_0x5667bf[_0x1472ac('0x1c')]=_[_0x1472ac('0x1')](_0x5667bf['model'],_0x5667bf[_0x1472ac('0x8')]),_0x30d547['attributes']=_[_0x1472ac('0x1')](_0x5667bf[_0x1472ac('0x15')],qs[_0x1472ac('0x9')](_0x4c625e[_0x1472ac('0x8')][_0x1472ac('0x9')])),_0x30d547[_0x1472ac('0x0')]=_0x30d547[_0x1472ac('0x0')][_0x1472ac('0xc')]?_0x30d547[_0x1472ac('0x0')]:_0x5667bf[_0x1472ac('0x15')],_0x4c625e['query']['includeAll']&&(_0x30d547['include']=[{'all':!![]}]),_0x30d547=_[_0x1472ac('0x28')]({},_0x30d547,_0x4c625e[_0x1472ac('0x2f')]),db['WhatsappQueueReport'][_0x1472ac('0x5')](_0x30d547)[_0x1472ac('0x30')](handleEntityNotFound(_0x265ea9,null))[_0x1472ac('0x30')](respondWithResult(_0x265ea9,null))['catch'](handleError(_0x265ea9,null));},exports[_0x369426('0x27')]=function(_0x49e9eb,_0x27e772){const _0x2c3c1f=_0x369426;return db['WhatsappQueueReport'][_0x2c3c1f('0x27')](_0x49e9eb[_0x2c3c1f('0x24')],{})[_0x2c3c1f('0x30')](respondWithResult(_0x27e772,0xc9))['catch'](handleError(_0x27e772,null));},exports['update']=function(_0x19e7c5,_0x50e847){const _0x1be2e3=_0x369426;return _0x19e7c5[_0x1be2e3('0x24')]['id']&&delete _0x19e7c5['body']['id'],db[_0x1be2e3('0xa')][_0x1be2e3('0x5')]({'where':{'id':_0x19e7c5[_0x1be2e3('0x2')]['id']}})[_0x1be2e3('0x30')](handleEntityNotFound(_0x50e847,null))[_0x1be2e3('0x30')](saveUpdates(_0x19e7c5['body'],null))[_0x1be2e3('0x30')](respondWithResult(_0x50e847,null))['catch'](handleError(_0x50e847,null));},exports['destroy']=function(_0x356305,_0x307358){const _0x165192=_0x369426;return db[_0x165192('0xa')][_0x165192('0x5')]({'where':{'id':_0x356305[_0x165192('0x2')]['id']}})['then'](handleEntityNotFound(_0x307358,null))[_0x165192('0x30')](removeEntity(_0x307358,null))[_0x165192('0x21')](handleError(_0x307358,null));},exports[_0x369426('0x11')]=function(_0x3b0ebd,_0x3f782e){const _0x1ea741=_0x369426;return db[_0x1ea741('0xa')][_0x1ea741('0x11')]()[_0x1ea741('0x30')](respondWithResult(_0x3f782e,null))[_0x1ea741('0x21')](handleError(_0x3f782e,null));}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.model.js b/server/api/whatsappQueueReport/whatsappQueueReport.model.js index f84379f..63b081a 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.model.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.model.js @@ -1 +1 @@ -const a816_0x5b45=['uniqueid','exports','WhatsappQueueReport','report_whatsapp_queue','define','./whatsappQueueReport.attributes'];(function(_0x5bbe90,_0x5b45d4){const _0x97b885=function(_0x55f6d7){while(--_0x55f6d7){_0x5bbe90['push'](_0x5bbe90['shift']());}};_0x97b885(++_0x5b45d4);}(a816_0x5b45,0xf5));const a816_0x97b8=function(_0x5bbe90,_0x5b45d4){_0x5bbe90=_0x5bbe90-0x0;let _0x97b885=a816_0x5b45[_0x5bbe90];return _0x97b885;};const _0x3d9170=a816_0x97b8;'use strict';const attributes=require(_0x3d9170('0x0'));module[_0x3d9170('0x2')]=function(_0x55f6d7){const _0x29fa65=_0x3d9170,_0x55d0c6=_0x55f6d7[_0x29fa65('0x5')](_0x29fa65('0x3'),attributes,{'tableName':_0x29fa65('0x4'),'paranoid':![],'indexes':[{'name':_0x29fa65('0x1'),'fields':[_0x29fa65('0x1')]}],'timestamps':!![]});return _0x55d0c6;}; \ No newline at end of file +const a816_0x4a64=['./whatsappQueueReport.attributes','define','exports','uniqueid','report_whatsapp_queue'];(function(_0x5f11fa,_0x4a6452){const _0x3aa110=function(_0x4f5510){while(--_0x4f5510){_0x5f11fa['push'](_0x5f11fa['shift']());}};_0x3aa110(++_0x4a6452);}(a816_0x4a64,0x1c5));const a816_0x3aa1=function(_0x5f11fa,_0x4a6452){_0x5f11fa=_0x5f11fa-0x0;let _0x3aa110=a816_0x4a64[_0x5f11fa];return _0x3aa110;};const _0x2d198a=a816_0x3aa1;'use strict';const attributes=require(_0x2d198a('0x2'));module[_0x2d198a('0x4')]=function(_0x4f5510){const _0x44d206=_0x2d198a,_0xfc8a14=_0x4f5510[_0x44d206('0x3')]('WhatsappQueueReport',attributes,{'tableName':_0x44d206('0x1'),'paranoid':![],'indexes':[{'name':_0x44d206('0x0'),'fields':[_0x44d206('0x0')]}],'timestamps':!![]});return _0xfc8a14;}; \ No newline at end of file diff --git a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js index 76e5b8f..9875497 100644 --- a/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js +++ b/server/api/whatsappQueueReport/whatsappQueueReport.rpc.js @@ -1 +1 @@ -const a817_0x304a=['CreateWhatsappQueueReport','debug','info','body','attributes','then','create','raw','limit','message','stringify','where','error','options','../../config/logger','../../mysqldb','UpdateWhatsappQueueReport'];(function(_0x11325f,_0x304ad9){const _0x18c0be=function(_0x13a3a8){while(--_0x13a3a8){_0x11325f['push'](_0x11325f['shift']());}};_0x18c0be(++_0x304ad9);}(a817_0x304a,0xf1));const a817_0x18c0=function(_0x11325f,_0x304ad9){_0x11325f=_0x11325f-0x0;let _0x18c0be=a817_0x304a[_0x11325f];return _0x18c0be;};const _0x57a409=a817_0x18c0;'use strict';const db=require(_0x57a409('0xc'))['db'],logger=require(_0x57a409('0xb'))('rpc');exports[_0x57a409('0xe')]=function(_0x13a3a8){const _0x1482c8=this;return new Promise(function(_0x2d9a7c,_0x58885f){const _0x4f2d29=a817_0x18c0;return db['WhatsappQueueReport'][_0x4f2d29('0x3')](_0x13a3a8[_0x4f2d29('0x0')],{'raw':_0x13a3a8[_0x4f2d29('0xa')]?_0x13a3a8[_0x4f2d29('0xa')][_0x4f2d29('0x4')]===undefined?!![]:![]:!![]})[_0x4f2d29('0x2')](function(_0x3090e2){const _0x101a64=_0x4f2d29;logger[_0x101a64('0x10')](_0x101a64('0xe'),_0x13a3a8),logger['debug'](_0x101a64('0xe'),_0x13a3a8,JSON[_0x101a64('0x7')](_0x3090e2)),_0x2d9a7c(_0x3090e2);})['catch'](function(_0x532b8e){const _0x1c37d3=_0x4f2d29;logger['error'](_0x1c37d3('0xe'),_0x532b8e['message'],_0x13a3a8),_0x58885f(_0x1482c8['error'](0x1f4,_0x532b8e[_0x1c37d3('0x6')]));});});},exports['UpdateWhatsappQueueReport']=function(_0x3e14dd){const _0x3a1314=this;return new Promise(function(_0x3b2dad,_0x5307aa){const _0x4b7405=a817_0x18c0;return db['WhatsappQueueReport']['update'](_0x3e14dd[_0x4b7405('0x0')],{'raw':_0x3e14dd[_0x4b7405('0xa')]?_0x3e14dd['options'][_0x4b7405('0x4')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x3e14dd[_0x4b7405('0xa')]?_0x3e14dd[_0x4b7405('0xa')][_0x4b7405('0x8')]||null:null,'attributes':_0x3e14dd[_0x4b7405('0xa')]?_0x3e14dd[_0x4b7405('0xa')][_0x4b7405('0x1')]||null:null,'limit':_0x3e14dd[_0x4b7405('0xa')]?_0x3e14dd[_0x4b7405('0xa')][_0x4b7405('0x5')]||null:null})[_0x4b7405('0x2')](function(_0x46f683){const _0x5c283d=_0x4b7405;logger[_0x5c283d('0x10')](_0x5c283d('0xd'),_0x3e14dd),logger[_0x5c283d('0xf')]('UpdateWhatsappQueueReport',_0x3e14dd,JSON[_0x5c283d('0x7')](_0x46f683)),_0x3b2dad(_0x46f683);})['catch'](function(_0x30d600){const _0x2b636a=_0x4b7405;logger['error'](_0x2b636a('0xd'),_0x30d600[_0x2b636a('0x6')],_0x3e14dd),_0x5307aa(_0x3a1314[_0x2b636a('0x9')](0x1f4,_0x30d600[_0x2b636a('0x6')]));});});}; \ No newline at end of file +const a817_0x1651=['message','stringify','create','UpdateWhatsappQueueReport','where','update','catch','attributes','error','limit','../../config/logger','WhatsappQueueReport','then','body','../../mysqldb','options','CreateWhatsappQueueReport','raw','rpc','info','debug'];(function(_0x38b125,_0x16519c){const _0x237559=function(_0x308fd8){while(--_0x308fd8){_0x38b125['push'](_0x38b125['shift']());}};_0x237559(++_0x16519c);}(a817_0x1651,0x19b));const a817_0x2375=function(_0x38b125,_0x16519c){_0x38b125=_0x38b125-0x0;let _0x237559=a817_0x1651[_0x38b125];return _0x237559;};const _0x4ad7bd=a817_0x2375;'use strict';const db=require(_0x4ad7bd('0x2'))['db'],logger=require(_0x4ad7bd('0x13'))(_0x4ad7bd('0x6'));exports[_0x4ad7bd('0x4')]=function(_0x308fd8){const _0x592835=this;return new Promise(function(_0x200643,_0x3a0b2e){const _0x79f1f0=a817_0x2375;return db[_0x79f1f0('0x14')][_0x79f1f0('0xb')](_0x308fd8[_0x79f1f0('0x1')],{'raw':_0x308fd8[_0x79f1f0('0x3')]?_0x308fd8[_0x79f1f0('0x3')][_0x79f1f0('0x5')]===undefined?!![]:![]:!![]})[_0x79f1f0('0x0')](function(_0x2af585){const _0x47e418=_0x79f1f0;logger[_0x47e418('0x7')](_0x47e418('0x4'),_0x308fd8),logger[_0x47e418('0x8')](_0x47e418('0x4'),_0x308fd8,JSON[_0x47e418('0xa')](_0x2af585)),_0x200643(_0x2af585);})['catch'](function(_0x3f96db){const _0x1988c3=_0x79f1f0;logger[_0x1988c3('0x11')](_0x1988c3('0x4'),_0x3f96db[_0x1988c3('0x9')],_0x308fd8),_0x3a0b2e(_0x592835[_0x1988c3('0x11')](0x1f4,_0x3f96db[_0x1988c3('0x9')]));});});},exports[_0x4ad7bd('0xc')]=function(_0x22ec7f){const _0x233dbd=this;return new Promise(function(_0x103052,_0x5458ff){const _0x2adfb5=a817_0x2375;return db['WhatsappQueueReport'][_0x2adfb5('0xe')](_0x22ec7f[_0x2adfb5('0x1')],{'raw':_0x22ec7f[_0x2adfb5('0x3')]?_0x22ec7f['options'][_0x2adfb5('0x5')]===undefined?!![]:![]:!![],'individualHooks':!![],'where':_0x22ec7f[_0x2adfb5('0x3')]?_0x22ec7f[_0x2adfb5('0x3')][_0x2adfb5('0xd')]||null:null,'attributes':_0x22ec7f[_0x2adfb5('0x3')]?_0x22ec7f[_0x2adfb5('0x3')][_0x2adfb5('0x10')]||null:null,'limit':_0x22ec7f[_0x2adfb5('0x3')]?_0x22ec7f[_0x2adfb5('0x3')][_0x2adfb5('0x12')]||null:null})[_0x2adfb5('0x0')](function(_0x494770){const _0x46ffa1=_0x2adfb5;logger[_0x46ffa1('0x7')](_0x46ffa1('0xc'),_0x22ec7f),logger[_0x46ffa1('0x8')](_0x46ffa1('0xc'),_0x22ec7f,JSON[_0x46ffa1('0xa')](_0x494770)),_0x103052(_0x494770);})[_0x2adfb5('0xf')](function(_0x959628){const _0x47899c=_0x2adfb5;logger[_0x47899c('0x11')](_0x47899c('0xc'),_0x959628[_0x47899c('0x9')],_0x22ec7f),_0x5458ff(_0x233dbd[_0x47899c('0x11')](0x1f4,_0x959628[_0x47899c('0x9')]));});});}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/index.js b/server/api/whatsappTransferReport/index.js index 05a3c38..0c692e7 100644 --- a/server/api/whatsappTransferReport/index.js +++ b/server/api/whatsappTransferReport/index.js @@ -1 +1 @@ -const a818_0x4df4=['show','exports','put','delete','/:id','get','../../components/auth/service','/describe','destroy','express','describe','isAuthenticated'];(function(_0x5c38e8,_0x4df4e9){const _0x684af0=function(_0x2239c8){while(--_0x2239c8){_0x5c38e8['push'](_0x5c38e8['shift']());}};_0x684af0(++_0x4df4e9);}(a818_0x4df4,0x10f));const a818_0x684a=function(_0x5c38e8,_0x4df4e9){_0x5c38e8=_0x5c38e8-0x0;let _0x684af0=a818_0x4df4[_0x5c38e8];return _0x684af0;};const _0x4e24aa=a818_0x684a;'use strict';const express=require(_0x4e24aa('0x2')),router=express['Router'](),auth=require(_0x4e24aa('0xb')),controller=require('./whatsappTransferReport.controller');router[_0x4e24aa('0xa')]('/',auth[_0x4e24aa('0x4')](),controller['index']),router[_0x4e24aa('0xa')](_0x4e24aa('0x0'),auth[_0x4e24aa('0x4')](),controller[_0x4e24aa('0x3')]),router[_0x4e24aa('0xa')](_0x4e24aa('0x9'),auth[_0x4e24aa('0x4')](),controller[_0x4e24aa('0x5')]),router['post']('/',auth[_0x4e24aa('0x4')](),controller['create']),router[_0x4e24aa('0x7')]('/:id',auth[_0x4e24aa('0x4')](),controller['update']),router[_0x4e24aa('0x8')](_0x4e24aa('0x9'),auth[_0x4e24aa('0x4')](),controller[_0x4e24aa('0x1')]),module[_0x4e24aa('0x6')]=router; \ No newline at end of file +const a818_0x232c=['destroy','put','describe','index','express','exports','/:id','show','post','get','Router','delete','update','isAuthenticated','./whatsappTransferReport.controller','../../components/auth/service','create'];(function(_0x3a957b,_0x232c2c){const _0x37f36f=function(_0x21dc5b){while(--_0x21dc5b){_0x3a957b['push'](_0x3a957b['shift']());}};_0x37f36f(++_0x232c2c);}(a818_0x232c,0x9e));const a818_0x37f3=function(_0x3a957b,_0x232c2c){_0x3a957b=_0x3a957b-0x0;let _0x37f36f=a818_0x232c[_0x3a957b];return _0x37f36f;};const _0x2e96cb=a818_0x37f3;'use strict';const express=require(_0x2e96cb('0x10')),router=express[_0x2e96cb('0x5')](),auth=require(_0x2e96cb('0xa')),controller=require(_0x2e96cb('0x9'));router[_0x2e96cb('0x4')]('/',auth[_0x2e96cb('0x8')](),controller[_0x2e96cb('0xf')]),router[_0x2e96cb('0x4')]('/describe',auth[_0x2e96cb('0x8')](),controller[_0x2e96cb('0xe')]),router[_0x2e96cb('0x4')](_0x2e96cb('0x1'),auth['isAuthenticated'](),controller[_0x2e96cb('0x2')]),router[_0x2e96cb('0x3')]('/',auth[_0x2e96cb('0x8')](),controller[_0x2e96cb('0xb')]),router[_0x2e96cb('0xd')](_0x2e96cb('0x1'),auth['isAuthenticated'](),controller[_0x2e96cb('0x7')]),router[_0x2e96cb('0x6')](_0x2e96cb('0x1'),auth[_0x2e96cb('0x8')](),controller[_0x2e96cb('0xc')]),module[_0x2e96cb('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 d69db38..85998c4 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.attributes.js @@ -1 +1 @@ -const a819_0xd7b5=['ENUM','STRING','DATE','exports','account','queue','sequelize'];(function(_0x211d4e,_0xd7b51b){const _0x1dc893=function(_0xc88743){while(--_0xc88743){_0x211d4e['push'](_0x211d4e['shift']());}};_0x1dc893(++_0xd7b51b);}(a819_0xd7b5,0x10b));const a819_0x1dc8=function(_0x211d4e,_0xd7b51b){_0x211d4e=_0x211d4e-0x0;let _0x1dc893=a819_0xd7b5[_0x211d4e];return _0x1dc893;};const _0x54694a=a819_0x1dc8;'use strict';const Sequelize=require(_0x54694a('0x5'));module[_0x54694a('0x2')]={'uniqueid':{'type':Sequelize[_0x54694a('0x0')],'allowNull':![]},'type':{'type':Sequelize[_0x54694a('0x6')](_0x54694a('0x3'),'agent',_0x54694a('0x4')),'allowNull':![]},'transferredAt':{'type':Sequelize[_0x54694a('0x1')]}}; \ No newline at end of file +const a819_0x4328=['account','ENUM','DATE'];(function(_0x3283ec,_0x4328e7){const _0x556b24=function(_0x495ac6){while(--_0x495ac6){_0x3283ec['push'](_0x3283ec['shift']());}};_0x556b24(++_0x4328e7);}(a819_0x4328,0xc6));const a819_0x556b=function(_0x3283ec,_0x4328e7){_0x3283ec=_0x3283ec-0x0;let _0x556b24=a819_0x4328[_0x3283ec];return _0x556b24;};const _0x1c858f=a819_0x556b;'use strict';const Sequelize=require('sequelize');module['exports']={'uniqueid':{'type':Sequelize['STRING'],'allowNull':![]},'type':{'type':Sequelize[_0x1c858f('0x1')](_0x1c858f('0x0'),'agent','queue'),'allowNull':![]},'transferredAt':{'type':Sequelize[_0x1c858f('0x2')]}}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js index 4b514e0..421744a 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.controller.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.controller.js @@ -1 +1 @@ -const a820_0x5ec8=['where','body','undefined','attributes','rows','fields','order','limit','send','index','nolimit','../../components/parsers/qs','params','sort','type','then','Content-Range','show','filters','merge','offset','findOne','like','fieldName','describe','set','options','name','create','intersection','update','WhatsappTransferReport','query','rawAttributes','error','status','filter','map','model','json','lodash','length','key','keys','destroy','catch','include','pick','end','api','findAll','count'];(function(_0xafe6fa,_0x5ec81a){const _0xfd0f54=function(_0x3e5db3){while(--_0x3e5db3){_0xafe6fa['push'](_0xafe6fa['shift']());}};_0xfd0f54(++_0x5ec81a);}(a820_0x5ec8,0x17e));const a820_0xfd0f=function(_0xafe6fa,_0x5ec81a){_0xafe6fa=_0xafe6fa-0x0;let _0xfd0f54=a820_0x5ec8[_0xafe6fa];return _0xfd0f54;};const _0x5b9fe7=a820_0xfd0f;'use strict';const _=require(_0x5b9fe7('0x16')),qs=require(_0x5b9fe7('0x2d')),logger=require('../../config/logger')(_0x5b9fe7('0x1f')),db=require('../../mysqldb')['db'],{Op}=require('sequelize');function respondWithResult(_0x3e5db3,_0x531baf){return _0x531baf=_0x531baf||0xc8,function(_0x1006f1){const _0x1132f3=a820_0xfd0f;if(_0x1006f1)return _0x3e5db3[_0x1132f3('0x11')](_0x531baf)[_0x1132f3('0x15')](_0x1006f1);};}function respondWithFilteredResult(_0x3f68cf,_0x279dd3){return function(_0x3e2524){const _0x20d56e=a820_0xfd0f;if(_0x3e2524){const _0x5224f8=_0x3e2524['count'],_0x1073d0=_0x279dd3[_0x20d56e('0x2')];let _0x128894=_0x279dd3[_0x20d56e('0x2')]+_0x279dd3[_0x20d56e('0x29')],_0x16c1f6;return _0x128894>=_0x5224f8?(_0x128894=_0x5224f8,_0x16c1f6=0xc8):_0x16c1f6=0xce,_0x3f68cf[_0x20d56e('0x11')](_0x16c1f6),_0x3f68cf[_0x20d56e('0x7')](_0x20d56e('0x32'),_0x1073d0+'-'+_0x128894+'/'+_0x5224f8)[_0x20d56e('0x15')](_0x3e2524);}return null;};}function saveUpdates(_0x198a0d){return function(_0x20184f){const _0x56c379=a820_0xfd0f;if(_0x20184f)return _0x20184f[_0x56c379('0xc')](_0x198a0d)[_0x56c379('0x31')](function(_0x13f3ab){return _0x13f3ab;});return null;};}function removeEntity(_0x50a78f){return function(_0x31f999){const _0x15d924=a820_0xfd0f;if(_0x31f999)return _0x31f999[_0x15d924('0x1a')]()[_0x15d924('0x31')](function(){const _0x53edd1=_0x15d924;_0x50a78f[_0x53edd1('0x11')](0xcc)[_0x53edd1('0x1e')]();});};}function handleEntityNotFound(_0xef5083){return function(_0x5963ac){return!_0x5963ac&&_0xef5083['sendStatus'](0x194),_0x5963ac;};}function handleError(_0x3291a9,_0x7843c7){return _0x7843c7=_0x7843c7||0x1f4,function(_0x11bb7b){const _0xc61600=a820_0xfd0f;logger[_0xc61600('0x10')](_0x11bb7b['stack']),_0x11bb7b[_0xc61600('0x9')]&&delete _0x11bb7b[_0xc61600('0x9')],_0x3291a9[_0xc61600('0x11')](_0x7843c7)[_0xc61600('0x2a')](_0x11bb7b);};}exports[_0x5b9fe7('0x2b')]=function(_0x4a04c0,_0x87e40c){const _0x28639e=_0x5b9fe7;let _0x451a50={};const _0x2995ec={},_0x2dafe5={'count':0x0,'rows':[]},_0x2831d1=_[_0x28639e('0x13')](db[_0x28639e('0xd')][_0x28639e('0xf')],function(_0x4fa698){const _0x1d4589=_0x28639e;return{'name':_0x4fa698[_0x1d4589('0x5')],'type':_0x4fa698['type'][_0x1d4589('0x18')]};});_0x2995ec[_0x28639e('0x14')]=_[_0x28639e('0x13')](_0x2831d1,_0x28639e('0x9')),_0x2995ec['query']=_[_0x28639e('0x19')](_0x4a04c0[_0x28639e('0xe')]),_0x2995ec[_0x28639e('0x0')]=_[_0x28639e('0xb')](_0x2995ec[_0x28639e('0x14')],_0x2995ec[_0x28639e('0xe')]),_0x451a50[_0x28639e('0x25')]=_[_0x28639e('0xb')](_0x2995ec['model'],qs[_0x28639e('0x27')](_0x4a04c0[_0x28639e('0xe')][_0x28639e('0x27')])),_0x451a50[_0x28639e('0x25')]=_0x451a50[_0x28639e('0x25')][_0x28639e('0x17')]?_0x451a50[_0x28639e('0x25')]:_0x2995ec[_0x28639e('0x14')];typeof _0x4a04c0[_0x28639e('0xe')][_0x28639e('0x2c')]===_0x28639e('0x24')&&(_0x451a50[_0x28639e('0x29')]=qs['limit'](_0x4a04c0[_0x28639e('0xe')][_0x28639e('0x29')]),_0x451a50['offset']=qs[_0x28639e('0x2')](_0x4a04c0['query'][_0x28639e('0x2')]));_0x451a50[_0x28639e('0x28')]=qs[_0x28639e('0x2f')](_0x4a04c0[_0x28639e('0xe')]['sort']),_0x451a50[_0x28639e('0x22')]=qs['filters'](_[_0x28639e('0x1d')](_0x4a04c0['query'],_0x2995ec[_0x28639e('0x0')]),_0x2831d1);_0x4a04c0[_0x28639e('0xe')][_0x28639e('0x12')]&&(_0x451a50['where']=_[_0x28639e('0x1')](_0x451a50[_0x28639e('0x22')],{[Op['or']]:_['map'](_0x2831d1,function(_0x1d7ff3){const _0x29bca4=_0x28639e;if(_0x1d7ff3[_0x29bca4('0x30')]!=='VIRTUAL'){const _0x52d336={};return _0x52d336[_0x1d7ff3[_0x29bca4('0x9')]]={[Op[_0x29bca4('0x4')]]:'%'+_0x4a04c0[_0x29bca4('0xe')][_0x29bca4('0x12')]+'%'},_0x52d336;}})}));_0x451a50=_[_0x28639e('0x1')]({},_0x451a50,_0x4a04c0[_0x28639e('0x8')]);const _0x581dfb={'where':_0x451a50[_0x28639e('0x22')]};return db[_0x28639e('0xd')][_0x28639e('0x21')](_0x581dfb)[_0x28639e('0x31')](function(_0x566ef4){const _0x4bcde6=_0x28639e;return _0x2dafe5['count']=_0x566ef4,_0x4a04c0[_0x4bcde6('0xe')]['includeAll']&&(_0x451a50[_0x4bcde6('0x1c')]=[{'all':!![]}]),db[_0x4bcde6('0xd')][_0x4bcde6('0x20')](_0x451a50);})[_0x28639e('0x31')](function(_0xd0d1e5){const _0x72ac5=_0x28639e;return _0x2dafe5[_0x72ac5('0x26')]=_0xd0d1e5,_0x2dafe5;})[_0x28639e('0x31')](respondWithFilteredResult(_0x87e40c,_0x451a50))[_0x28639e('0x1b')](handleError(_0x87e40c,null));},exports[_0x5b9fe7('0x33')]=function(_0x21f4d4,_0xdcde11){const _0x369263=_0x5b9fe7;let _0x12ee21={'raw':!![],'where':{'id':_0x21f4d4[_0x369263('0x2e')]['id']}};const _0x5643a0={};return _0x5643a0['model']=_['keys'](db[_0x369263('0xd')][_0x369263('0xf')]),_0x5643a0['query']=_[_0x369263('0x19')](_0x21f4d4['query']),_0x5643a0[_0x369263('0x0')]=_[_0x369263('0xb')](_0x5643a0[_0x369263('0x14')],_0x5643a0[_0x369263('0xe')]),_0x12ee21[_0x369263('0x25')]=_[_0x369263('0xb')](_0x5643a0[_0x369263('0x14')],qs['fields'](_0x21f4d4[_0x369263('0xe')][_0x369263('0x27')])),_0x12ee21[_0x369263('0x25')]=_0x12ee21['attributes'][_0x369263('0x17')]?_0x12ee21['attributes']:_0x5643a0['model'],_0x21f4d4[_0x369263('0xe')]['includeAll']&&(_0x12ee21['include']=[{'all':!![]}]),_0x12ee21=_['merge']({},_0x12ee21,_0x21f4d4['options']),db[_0x369263('0xd')][_0x369263('0x3')](_0x12ee21)['then'](handleEntityNotFound(_0xdcde11,null))[_0x369263('0x31')](respondWithResult(_0xdcde11,null))['catch'](handleError(_0xdcde11,null));},exports[_0x5b9fe7('0xa')]=function(_0x30a349,_0x1a0c68){const _0x34df7e=_0x5b9fe7;return db[_0x34df7e('0xd')][_0x34df7e('0xa')](_0x30a349[_0x34df7e('0x23')],{})['then'](respondWithResult(_0x1a0c68,0xc9))[_0x34df7e('0x1b')](handleError(_0x1a0c68,null));},exports[_0x5b9fe7('0xc')]=function(_0x3a824c,_0x2fa1e6){const _0x17f1d4=_0x5b9fe7;return _0x3a824c['body']['id']&&delete _0x3a824c[_0x17f1d4('0x23')]['id'],db[_0x17f1d4('0xd')][_0x17f1d4('0x3')]({'where':{'id':_0x3a824c[_0x17f1d4('0x2e')]['id']}})[_0x17f1d4('0x31')](handleEntityNotFound(_0x2fa1e6,null))[_0x17f1d4('0x31')](saveUpdates(_0x3a824c[_0x17f1d4('0x23')],null))[_0x17f1d4('0x31')](respondWithResult(_0x2fa1e6,null))['catch'](handleError(_0x2fa1e6,null));},exports['destroy']=function(_0x455064,_0x4ecb4c){const _0xe314c9=_0x5b9fe7;return db[_0xe314c9('0xd')][_0xe314c9('0x3')]({'where':{'id':_0x455064[_0xe314c9('0x2e')]['id']}})[_0xe314c9('0x31')](handleEntityNotFound(_0x4ecb4c,null))['then'](removeEntity(_0x4ecb4c,null))['catch'](handleError(_0x4ecb4c,null));},exports[_0x5b9fe7('0x6')]=function(_0x214bea,_0x1791e4){const _0x3fb154=_0x5b9fe7;return db['WhatsappTransferReport'][_0x3fb154('0x6')]()[_0x3fb154('0x31')](respondWithResult(_0x1791e4,null))[_0x3fb154('0x1b')](handleError(_0x1791e4,null));}; \ No newline at end of file +const a820_0x47e2=['name','stack','key','type','describe','map','attributes','../../components/parsers/qs','fieldName','offset','filters','like','then','index','update','nolimit','show','filter','json','set','pick','sendStatus','Content-Range','../../mysqldb','where','keys','undefined','count','WhatsappTransferReport','fields','query','intersection','merge','sequelize','rawAttributes','params','status','model','findOne','catch','sort','../../config/logger','VIRTUAL','limit','error','include','includeAll','destroy','order','body','length','create'];(function(_0x18dc1f,_0x47e264){const _0x3c5b77=function(_0x6abf2a){while(--_0x6abf2a){_0x18dc1f['push'](_0x18dc1f['shift']());}};_0x3c5b77(++_0x47e264);}(a820_0x47e2,0x1c9));const a820_0x3c5b=function(_0x18dc1f,_0x47e264){_0x18dc1f=_0x18dc1f-0x0;let _0x3c5b77=a820_0x47e2[_0x18dc1f];return _0x3c5b77;};const _0xe391d6=a820_0x3c5b;'use strict';const _=require('lodash'),qs=require(_0xe391d6('0x12')),logger=require(_0xe391d6('0x0'))('api'),db=require(_0xe391d6('0x22'))['db'],{Op}=require(_0xe391d6('0x2c'));function respondWithResult(_0x6abf2a,_0x59d659){return _0x59d659=_0x59d659||0xc8,function(_0x1e2e67){const _0x43a390=a820_0x3c5b;if(_0x1e2e67)return _0x6abf2a[_0x43a390('0x2f')](_0x59d659)[_0x43a390('0x1d')](_0x1e2e67);};}function respondWithFilteredResult(_0x284899,_0x1758ba){return function(_0x3c5275){const _0x1003ce=a820_0x3c5b;if(_0x3c5275){const _0x49c166=_0x3c5275[_0x1003ce('0x26')],_0x3a7f1e=_0x1758ba[_0x1003ce('0x14')];let _0xdb4fb1=_0x1758ba['offset']+_0x1758ba['limit'],_0x191a21;return _0xdb4fb1>=_0x49c166?(_0xdb4fb1=_0x49c166,_0x191a21=0xc8):_0x191a21=0xce,_0x284899[_0x1003ce('0x2f')](_0x191a21),_0x284899[_0x1003ce('0x1e')](_0x1003ce('0x21'),_0x3a7f1e+'-'+_0xdb4fb1+'/'+_0x49c166)[_0x1003ce('0x1d')](_0x3c5275);}return null;};}function saveUpdates(_0x5dc303){return function(_0x278612){const _0x3dd179=a820_0x3c5b;if(_0x278612)return _0x278612[_0x3dd179('0x19')](_0x5dc303)[_0x3dd179('0x17')](function(_0x4fc53f){return _0x4fc53f;});return null;};}function removeEntity(_0x3bb517){return function(_0x348ef0){const _0x1f8b74=a820_0x3c5b;if(_0x348ef0)return _0x348ef0[_0x1f8b74('0x6')]()['then'](function(){const _0x4864ef=_0x1f8b74;_0x3bb517[_0x4864ef('0x2f')](0xcc)['end']();});};}function handleEntityNotFound(_0x3251bd){return function(_0x9d6311){const _0x5164f0=a820_0x3c5b;return!_0x9d6311&&_0x3251bd[_0x5164f0('0x20')](0x194),_0x9d6311;};}function handleError(_0x1a71e1,_0x4d1c9a){return _0x4d1c9a=_0x4d1c9a||0x1f4,function(_0x31455f){const _0x140c06=a820_0x3c5b;logger[_0x140c06('0x3')](_0x31455f[_0x140c06('0xc')]),_0x31455f[_0x140c06('0xb')]&&delete _0x31455f[_0x140c06('0xb')],_0x1a71e1[_0x140c06('0x2f')](_0x4d1c9a)['send'](_0x31455f);};}exports[_0xe391d6('0x18')]=function(_0x1d7b36,_0x14721f){const _0x80a8cf=_0xe391d6;let _0x246851={};const _0x32ea2f={},_0x13f05c={'count':0x0,'rows':[]},_0x1de343=_[_0x80a8cf('0x10')](db['WhatsappTransferReport']['rawAttributes'],function(_0x20d104){const _0x1d6200=_0x80a8cf;return{'name':_0x20d104[_0x1d6200('0x13')],'type':_0x20d104[_0x1d6200('0xe')][_0x1d6200('0xd')]};});_0x32ea2f['model']=_[_0x80a8cf('0x10')](_0x1de343,_0x80a8cf('0xb')),_0x32ea2f['query']=_[_0x80a8cf('0x24')](_0x1d7b36[_0x80a8cf('0x29')]),_0x32ea2f[_0x80a8cf('0x15')]=_[_0x80a8cf('0x2a')](_0x32ea2f[_0x80a8cf('0x30')],_0x32ea2f[_0x80a8cf('0x29')]),_0x246851[_0x80a8cf('0x11')]=_['intersection'](_0x32ea2f[_0x80a8cf('0x30')],qs['fields'](_0x1d7b36[_0x80a8cf('0x29')][_0x80a8cf('0x28')])),_0x246851['attributes']=_0x246851[_0x80a8cf('0x11')][_0x80a8cf('0x9')]?_0x246851[_0x80a8cf('0x11')]:_0x32ea2f[_0x80a8cf('0x30')];typeof _0x1d7b36[_0x80a8cf('0x29')][_0x80a8cf('0x1a')]===_0x80a8cf('0x25')&&(_0x246851[_0x80a8cf('0x2')]=qs[_0x80a8cf('0x2')](_0x1d7b36[_0x80a8cf('0x29')][_0x80a8cf('0x2')]),_0x246851[_0x80a8cf('0x14')]=qs['offset'](_0x1d7b36[_0x80a8cf('0x29')][_0x80a8cf('0x14')]));_0x246851[_0x80a8cf('0x7')]=qs['sort'](_0x1d7b36[_0x80a8cf('0x29')][_0x80a8cf('0x33')]),_0x246851[_0x80a8cf('0x23')]=qs[_0x80a8cf('0x15')](_[_0x80a8cf('0x1f')](_0x1d7b36['query'],_0x32ea2f[_0x80a8cf('0x15')]),_0x1de343);_0x1d7b36[_0x80a8cf('0x29')][_0x80a8cf('0x1c')]&&(_0x246851[_0x80a8cf('0x23')]=_['merge'](_0x246851[_0x80a8cf('0x23')],{[Op['or']]:_[_0x80a8cf('0x10')](_0x1de343,function(_0xad1e24){const _0x41d931=_0x80a8cf;if(_0xad1e24['type']!==_0x41d931('0x1')){const _0x311c62={};return _0x311c62[_0xad1e24[_0x41d931('0xb')]]={[Op[_0x41d931('0x16')]]:'%'+_0x1d7b36[_0x41d931('0x29')][_0x41d931('0x1c')]+'%'},_0x311c62;}})}));_0x246851=_[_0x80a8cf('0x2b')]({},_0x246851,_0x1d7b36['options']);const _0x45a5cb={'where':_0x246851[_0x80a8cf('0x23')]};return db[_0x80a8cf('0x27')][_0x80a8cf('0x26')](_0x45a5cb)[_0x80a8cf('0x17')](function(_0x41b1ad){const _0x2b3322=_0x80a8cf;return _0x13f05c[_0x2b3322('0x26')]=_0x41b1ad,_0x1d7b36[_0x2b3322('0x29')]['includeAll']&&(_0x246851['include']=[{'all':!![]}]),db[_0x2b3322('0x27')]['findAll'](_0x246851);})[_0x80a8cf('0x17')](function(_0x272558){return _0x13f05c['rows']=_0x272558,_0x13f05c;})[_0x80a8cf('0x17')](respondWithFilteredResult(_0x14721f,_0x246851))[_0x80a8cf('0x32')](handleError(_0x14721f,null));},exports[_0xe391d6('0x1b')]=function(_0x300eae,_0x4fd10d){const _0x1e6cff=_0xe391d6;let _0xba4ec4={'raw':!![],'where':{'id':_0x300eae[_0x1e6cff('0x2e')]['id']}};const _0x289412={};return _0x289412[_0x1e6cff('0x30')]=_[_0x1e6cff('0x24')](db[_0x1e6cff('0x27')][_0x1e6cff('0x2d')]),_0x289412['query']=_[_0x1e6cff('0x24')](_0x300eae[_0x1e6cff('0x29')]),_0x289412['filters']=_['intersection'](_0x289412[_0x1e6cff('0x30')],_0x289412[_0x1e6cff('0x29')]),_0xba4ec4['attributes']=_[_0x1e6cff('0x2a')](_0x289412[_0x1e6cff('0x30')],qs[_0x1e6cff('0x28')](_0x300eae[_0x1e6cff('0x29')][_0x1e6cff('0x28')])),_0xba4ec4[_0x1e6cff('0x11')]=_0xba4ec4[_0x1e6cff('0x11')][_0x1e6cff('0x9')]?_0xba4ec4[_0x1e6cff('0x11')]:_0x289412['model'],_0x300eae[_0x1e6cff('0x29')][_0x1e6cff('0x5')]&&(_0xba4ec4[_0x1e6cff('0x4')]=[{'all':!![]}]),_0xba4ec4=_[_0x1e6cff('0x2b')]({},_0xba4ec4,_0x300eae['options']),db[_0x1e6cff('0x27')]['findOne'](_0xba4ec4)[_0x1e6cff('0x17')](handleEntityNotFound(_0x4fd10d,null))[_0x1e6cff('0x17')](respondWithResult(_0x4fd10d,null))['catch'](handleError(_0x4fd10d,null));},exports[_0xe391d6('0xa')]=function(_0x1c120f,_0xc37d04){const _0x1a0b15=_0xe391d6;return db[_0x1a0b15('0x27')]['create'](_0x1c120f[_0x1a0b15('0x8')],{})[_0x1a0b15('0x17')](respondWithResult(_0xc37d04,0xc9))[_0x1a0b15('0x32')](handleError(_0xc37d04,null));},exports[_0xe391d6('0x19')]=function(_0x4f96c9,_0x1dd5a){const _0x45f6c3=_0xe391d6;return _0x4f96c9[_0x45f6c3('0x8')]['id']&&delete _0x4f96c9[_0x45f6c3('0x8')]['id'],db[_0x45f6c3('0x27')][_0x45f6c3('0x31')]({'where':{'id':_0x4f96c9[_0x45f6c3('0x2e')]['id']}})[_0x45f6c3('0x17')](handleEntityNotFound(_0x1dd5a,null))['then'](saveUpdates(_0x4f96c9[_0x45f6c3('0x8')],null))['then'](respondWithResult(_0x1dd5a,null))[_0x45f6c3('0x32')](handleError(_0x1dd5a,null));},exports['destroy']=function(_0x825ab9,_0x1dee95){const _0x204d2e=_0xe391d6;return db[_0x204d2e('0x27')][_0x204d2e('0x31')]({'where':{'id':_0x825ab9[_0x204d2e('0x2e')]['id']}})[_0x204d2e('0x17')](handleEntityNotFound(_0x1dee95,null))[_0x204d2e('0x17')](removeEntity(_0x1dee95,null))[_0x204d2e('0x32')](handleError(_0x1dee95,null));},exports[_0xe391d6('0xf')]=function(_0x43a8fb,_0xfb59ac){const _0x56d422=_0xe391d6;return db[_0x56d422('0x27')]['describe']()[_0x56d422('0x17')](respondWithResult(_0xfb59ac,null))[_0x56d422('0x32')](handleError(_0xfb59ac,null));}; \ No newline at end of file diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.model.js b/server/api/whatsappTransferReport/whatsappTransferReport.model.js index 6e83dff..7982d95 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.model.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.model.js @@ -1 +1 @@ -const a821_0x41ef=['uniqueid','./whatsappTransferReport.attributes','WhatsappTransferReport','report_whatsapp_transfer','exports','define'];(function(_0x53a83b,_0x41ef94){const _0x3bd750=function(_0x3e8c15){while(--_0x3e8c15){_0x53a83b['push'](_0x53a83b['shift']());}};_0x3bd750(++_0x41ef94);}(a821_0x41ef,0x10f));const a821_0x3bd7=function(_0x53a83b,_0x41ef94){_0x53a83b=_0x53a83b-0x0;let _0x3bd750=a821_0x41ef[_0x53a83b];return _0x3bd750;};const _0x5e3bea=a821_0x3bd7;'use strict';const attributes=require(_0x5e3bea('0x0'));module[_0x5e3bea('0x3')]=function(_0x3e8c15){const _0x6da218=_0x5e3bea,_0x39a567=_0x3e8c15[_0x6da218('0x4')](_0x6da218('0x1'),attributes,{'tableName':_0x6da218('0x2'),'paranoid':![],'indexes':[{'name':_0x6da218('0x5'),'fields':[_0x6da218('0x5')]}],'timestamps':!![]});return _0x39a567;}; \ No newline at end of file +const a821_0x4d71=['report_whatsapp_transfer','WhatsappTransferReport','uniqueid','exports','./whatsappTransferReport.attributes'];(function(_0x3f7165,_0x4d7139){const _0x2732a1=function(_0x5c4ca0){while(--_0x5c4ca0){_0x3f7165['push'](_0x3f7165['shift']());}};_0x2732a1(++_0x4d7139);}(a821_0x4d71,0x6e));const a821_0x2732=function(_0x3f7165,_0x4d7139){_0x3f7165=_0x3f7165-0x0;let _0x2732a1=a821_0x4d71[_0x3f7165];return _0x2732a1;};const _0x21df8e=a821_0x2732;'use strict';const attributes=require(_0x21df8e('0x4'));module[_0x21df8e('0x3')]=function(_0x5c4ca0){const _0x5b9c65=_0x21df8e,_0x3fe6bb=_0x5c4ca0['define'](_0x5b9c65('0x1'),attributes,{'tableName':_0x5b9c65('0x0'),'paranoid':![],'indexes':[{'name':_0x5b9c65('0x2'),'fields':['uniqueid']}],'timestamps':!![]});return _0x3fe6bb;}; \ No newline at end of file diff --git a/server/app.js b/server/app.js index e98d7bc..7dbb6da 100644 --- a/server/app.js +++ b/server/app.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -const a822_0x110a=['test','debug','App\x20shut\x20down','xCally\x20Starting...\x20','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','once','SIGINT','RPC\x20Error','delete','kill','sequelize','Offline\x20apps:','Database','message','./rediscache','log','app','Starting\x20DB\x20seed...','disconnect','./config/logger','DB\x20Sync\x20Error:\x0a','exit','ON\x20SIGINT','./config/pm2','seedDB','None','./config/schedule/chat','debounce','online','./config/pm2/config','DB\x20Sync\x20Error:\x20','Error\x20on\x20server\x20exit','status','close','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','./globals','xCally\x20ready!','map','Rpc\x20closed','error','./rpc','sync','./config/environment','Error\x20on\x20server\x20exit:\x20','start','isProduction','join','pid','./config/schedule/transcribe','info','./config/schedule','Cannot\x20kill\x20','stack','./mysqldb','ONCE\x20SIGINT','SIGUSR2','name','db-query','\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a','environment','./config/seedDB','filter'];(function(_0x1cf8f1,_0x110ae5){const _0x34f83e=function(_0x415196){while(--_0x415196){_0x1cf8f1['push'](_0x1cf8f1['shift']());}};_0x34f83e(++_0x110ae5);}(a822_0x110a,0x7a));const a822_0x34f8=function(_0x1cf8f1,_0x110ae5){_0x1cf8f1=_0x1cf8f1-0x0;let _0x34f83e=a822_0x110a[_0x1cf8f1];return _0x34f83e;};const _0xb4c24c=a822_0x34f8;'use strict';require(_0xb4c24c('0x25'));const mysqldb=require(_0xb4c24c('0x37')),{RPC}=require(_0xb4c24c('0x2a')),{getConfigService}=require('./config/config.service'),config=require(_0xb4c24c('0x2c')),logger=require(_0xb4c24c('0x15')),pm2=require(_0xb4c24c('0x19')),pm2Config=require(_0xb4c24c('0x1f')),schedule=require(_0xb4c24c('0x34')),chat=require(_0xb4c24c('0x1c')),transcribe=require(_0xb4c24c('0x32')),{default:seedDB}=require(_0xb4c24c('0x0')),{default:checkLicense}=require('./config/license'),{getRedis}=require(_0xb4c24c('0x10')),cs=getConfigService(),_=require('lodash'),appLogger=logger(_0xb4c24c('0x12')),queryLogger=logger(_0xb4c24c('0x3b'));function logDatabase(_0x415196){const _0x5105d3=_0xb4c24c;try{queryLogger[_0x5105d3('0x33')](_0x5105d3('0xe'),_0x415196);}catch(_0x20cbb5){console[_0x5105d3('0x29')](_0x20cbb5);}}function onRPCError(_0x191903){const _0x11c163=_0xb4c24c;appLogger[_0x11c163('0x29')](_0x11c163('0x9'),_0x191903);}const rpc=new RPC(onRPCError),onServerExitHandler=_[_0xb4c24c('0x1d')](async function onServerExit(_0x369a4a){const _0x1b131e=_0xb4c24c;console['log'](_0x1b131e('0x6')+_0x369a4a+_0x1b131e('0x3c'));try{await rpc[_0x1b131e('0x23')](),appLogger[_0x1b131e('0x3')](_0x1b131e('0x28'));for(const _0x202835 of pm2Config['apps']){try{await pm2[_0x1b131e('0xa')](_0x202835[_0x1b131e('0x3a')]),appLogger['debug'](_0x202835[_0x1b131e('0x3a')]+'\x20deleted');}catch(_0x3fe942){_0x3fe942[_0x1b131e('0xf')]!=='process\x20or\x20namespace\x20not\x20found'&&(console[_0x1b131e('0x29')](_0x1b131e('0x35')+_0x202835['name'],_0x3fe942),appLogger['error'](_0x1b131e('0x35')+_0x202835['name']+':\x20'+_0x3fe942[_0x1b131e('0xf')]+'\x0a'+_0x3fe942[_0x1b131e('0x36')]));}}console['log']('\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a'),getRedis()[_0x1b131e('0x14')](),appLogger[_0x1b131e('0x3')]('Redis\x20disconnected'),appLogger['debug'](_0x1b131e('0x4'));}catch(_0x6f5fd3){console[_0x1b131e('0x29')](_0x1b131e('0x21'),_0x6f5fd3),appLogger[_0x1b131e('0x29')](_0x1b131e('0x2d')+_0x6f5fd3[_0x1b131e('0xf')]+'\x0a'+_0x6f5fd3[_0x1b131e('0x36')]);}},0x7d0,{'leading':!![]});!(cs['isProduction']||cs['isTest'])?(process[_0xb4c24c('0x7')]('SIGUSR2',async function(){const _0x36d448=_0xb4c24c;await onServerExitHandler('SIGUSR2'),process[_0x36d448('0xb')](process[_0x36d448('0x31')],_0x36d448('0x39'));}),process['on'](_0xb4c24c('0x8'),async function(){const _0x1dd134=_0xb4c24c;console[_0x1dd134('0x11')](_0x1dd134('0x18')),await onServerExitHandler('SIGINT'),process[_0x1dd134('0x17')](0x0);})):process[_0xb4c24c('0x7')](_0xb4c24c('0x8'),async function(){const _0x45232d=_0xb4c24c;console[_0x45232d('0x11')](_0x45232d('0x38')),await onServerExitHandler(_0x45232d('0x8')),process[_0x45232d('0x17')](0x0);});async function main(){const _0x2b1a0d=_0xb4c24c;try{console['log'](_0x2b1a0d('0x5')+(cs[_0x2b1a0d('0x2f')]?'':'Development\x20Mode'));try{await mysqldb['db'][_0x2b1a0d('0xc')][_0x2b1a0d('0x2b')]({'logging':cs[_0x2b1a0d('0x2f')]||cs[_0x2b1a0d('0x3d')]===_0x2b1a0d('0x2')?![]:logDatabase});}catch(_0x258869){console['warn'](_0x2b1a0d('0x16'),_0x258869),queryLogger[_0x2b1a0d('0x29')](_0x2b1a0d('0x20')+_0x258869[_0x2b1a0d('0xf')]+',\x20'+_0x258869[_0x2b1a0d('0x36')]);}config[_0x2b1a0d('0x1a')]===!![]&&(console[_0x2b1a0d('0x11')](_0x2b1a0d('0x13')),await seedDB(),console[_0x2b1a0d('0x11')]('Seed\x20DB\x20ok'));await checkLicense();const _0x6f164e=await rpc['listen']();appLogger[_0x2b1a0d('0x33')](_0x6f164e),await chat[_0x2b1a0d('0x2e')](),await schedule[_0x2b1a0d('0x2e')]();const _0x16fa63=await transcribe[_0x2b1a0d('0x2e')]();appLogger['info'](_0x16fa63);const _0x11288b=await pm2[_0x2b1a0d('0x2e')](pm2Config);appLogger['info']('Online\x20apps:',_[_0x2b1a0d('0x27')](_[_0x2b1a0d('0x1')](_0x11288b,{'status':_0x2b1a0d('0x1e')}),_0x2b1a0d('0x3a'))[_0x2b1a0d('0x30')]()),appLogger[_0x2b1a0d('0x33')](_0x2b1a0d('0xd'),_[_0x2b1a0d('0x27')](_[_0x2b1a0d('0x1')](_0x11288b,function(_0x386cdd){const _0x55ca64=_0x2b1a0d;return _0x386cdd[_0x55ca64('0x22')]!=='online';}),_0x2b1a0d('0x3a'))[_0x2b1a0d('0x30')]()||_0x2b1a0d('0x1b')),console['log'](_0x2b1a0d('0x26'));}catch(_0x551961){console[_0x2b1a0d('0x29')](_0x551961),appLogger[_0x2b1a0d('0x29')](_0x2b1a0d('0x24'),_0x551961);throw _0x551961;}}main(); \ No newline at end of file +const a822_0x566a=['Seed\x20DB\x20ok','disconnect','map','app','DB\x20Sync\x20Error:\x0a','\x20deleted','\x0a*****\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Caught\x20','./config/seedDB','Server\x20failed\x20to\x20start\x20due\x20to\x20error:','join','Online\x20apps:','debug','Error\x20on\x20server\x20exit:\x20','./config/schedule/chat','SIGUSR2','db-query','./config/logger','RPC\x20Error','App\x20shut\x20down','./rediscache','isTest','isProduction','Development\x20Mode','sync','DB\x20Sync\x20Error:\x20','None','status','./config/pm2/config','Redis\x20disconnected','online','info','ON\x20SIGINT','\x20signal!\x20\x20\x20\x20\x20\x20\x20\x20*****\x0a','message','./config/schedule','./rpc','\x0a*****\x20\x20\x20\x20\x20\x20\x20Stopped\x20and\x20removed\x20all\x20subprocesses\x20\x20\x20\x20\x20\x20*****\x0a\x0a\x0a','name','error','start','./globals','./config/environment','xCally\x20Starting...\x20','once','xCally\x20ready!','log','./config/pm2','stack','SIGINT','./config/schedule/transcribe','Cannot\x20kill\x20','ONCE\x20SIGINT','exit','lodash','./config/license','filter','Rpc\x20closed','environment','close','seedDB','Starting\x20DB\x20seed...'];(function(_0x1f9455,_0x566a80){const _0x55d107=function(_0x1f02bb){while(--_0x1f02bb){_0x1f9455['push'](_0x1f9455['shift']());}};_0x55d107(++_0x566a80);}(a822_0x566a,0x80));const a822_0x55d1=function(_0x1f9455,_0x566a80){_0x1f9455=_0x1f9455-0x0;let _0x55d107=a822_0x566a[_0x1f9455];return _0x55d107;};const _0x1a9116=a822_0x55d1;'use strict';require(_0x1a9116('0x22'));const mysqldb=require('./mysqldb'),{RPC}=require(_0x1a9116('0x1d')),{getConfigService}=require('./config/config.service'),config=require(_0x1a9116('0x23')),logger=require(_0x1a9116('0xa')),pm2=require(_0x1a9116('0x28')),pm2Config=require(_0x1a9116('0x15')),schedule=require(_0x1a9116('0x1c')),chat=require(_0x1a9116('0x7')),transcribe=require(_0x1a9116('0x2b')),{default:seedDB}=require(_0x1a9116('0x1')),{default:checkLicense}=require(_0x1a9116('0x30')),{getRedis}=require(_0x1a9116('0xd')),cs=getConfigService(),_=require(_0x1a9116('0x2f')),appLogger=logger(_0x1a9116('0x3a')),queryLogger=logger(_0x1a9116('0x9'));function logDatabase(_0x1f02bb){const _0x2c7fed=_0x1a9116;try{queryLogger[_0x2c7fed('0x18')]('Database',_0x1f02bb);}catch(_0x4af589){console[_0x2c7fed('0x20')](_0x4af589);}}function onRPCError(_0x36dcfd){const _0x3fe272=_0x1a9116;appLogger['error'](_0x3fe272('0xb'),_0x36dcfd);}const rpc=new RPC(onRPCError),onServerExitHandler=_['debounce'](async function onServerExit(_0x57de72){const _0x2eb706=_0x1a9116;console[_0x2eb706('0x27')](_0x2eb706('0x0')+_0x57de72+_0x2eb706('0x1a'));try{await rpc[_0x2eb706('0x34')](),appLogger[_0x2eb706('0x5')](_0x2eb706('0x32'));for(const _0x400c9a of pm2Config['apps']){try{await pm2['delete'](_0x400c9a[_0x2eb706('0x1f')]),appLogger[_0x2eb706('0x5')](_0x400c9a[_0x2eb706('0x1f')]+_0x2eb706('0x3c'));}catch(_0x5c14df){_0x5c14df[_0x2eb706('0x1b')]!=='process\x20or\x20namespace\x20not\x20found'&&(console['error'](_0x2eb706('0x2c')+_0x400c9a[_0x2eb706('0x1f')],_0x5c14df),appLogger[_0x2eb706('0x20')]('Cannot\x20kill\x20'+_0x400c9a[_0x2eb706('0x1f')]+':\x20'+_0x5c14df['message']+'\x0a'+_0x5c14df[_0x2eb706('0x29')]));}}console[_0x2eb706('0x27')](_0x2eb706('0x1e')),getRedis()[_0x2eb706('0x38')](),appLogger[_0x2eb706('0x5')](_0x2eb706('0x16')),appLogger[_0x2eb706('0x5')](_0x2eb706('0xc'));}catch(_0x5e63c1){console['error']('Error\x20on\x20server\x20exit',_0x5e63c1),appLogger[_0x2eb706('0x20')](_0x2eb706('0x6')+_0x5e63c1[_0x2eb706('0x1b')]+'\x0a'+_0x5e63c1['stack']);}},0x7d0,{'leading':!![]});!(cs[_0x1a9116('0xf')]||cs[_0x1a9116('0xe')])?(process[_0x1a9116('0x25')]('SIGUSR2',async function(){const _0x47bb4a=_0x1a9116;await onServerExitHandler(_0x47bb4a('0x8')),process['kill'](process['pid'],_0x47bb4a('0x8'));}),process['on'](_0x1a9116('0x2a'),async function(){const _0x1dc774=_0x1a9116;console['log'](_0x1dc774('0x19')),await onServerExitHandler(_0x1dc774('0x2a')),process[_0x1dc774('0x2e')](0x0);})):process[_0x1a9116('0x25')]('SIGINT',async function(){const _0x32bf9c=_0x1a9116;console['log'](_0x32bf9c('0x2d')),await onServerExitHandler(_0x32bf9c('0x2a')),process[_0x32bf9c('0x2e')](0x0);});async function main(){const _0x810ffb=_0x1a9116;try{console['log'](_0x810ffb('0x24')+(cs['isProduction']?'':_0x810ffb('0x10')));try{await mysqldb['db']['sequelize'][_0x810ffb('0x11')]({'logging':cs[_0x810ffb('0xf')]||cs[_0x810ffb('0x33')]==='test'?![]:logDatabase});}catch(_0x4dfb73){console['warn'](_0x810ffb('0x3b'),_0x4dfb73),queryLogger[_0x810ffb('0x20')](_0x810ffb('0x12')+_0x4dfb73[_0x810ffb('0x1b')]+',\x20'+_0x4dfb73['stack']);}config[_0x810ffb('0x35')]===!![]&&(console[_0x810ffb('0x27')](_0x810ffb('0x36')),await seedDB(),console[_0x810ffb('0x27')](_0x810ffb('0x37')));await checkLicense();const _0x596b2e=await rpc['listen']();appLogger['info'](_0x596b2e),await chat[_0x810ffb('0x21')](),await schedule[_0x810ffb('0x21')]();const _0x2f6233=await transcribe['start']();appLogger[_0x810ffb('0x18')](_0x2f6233);const _0x26badd=await pm2['start'](pm2Config);appLogger['info'](_0x810ffb('0x4'),_[_0x810ffb('0x39')](_[_0x810ffb('0x31')](_0x26badd,{'status':_0x810ffb('0x17')}),_0x810ffb('0x1f'))[_0x810ffb('0x3')]()),appLogger[_0x810ffb('0x18')]('Offline\x20apps:',_[_0x810ffb('0x39')](_[_0x810ffb('0x31')](_0x26badd,function(_0x4abdac){const _0x1044e8=_0x810ffb;return _0x4abdac[_0x1044e8('0x14')]!==_0x1044e8('0x17');}),_0x810ffb('0x1f'))[_0x810ffb('0x3')]()||_0x810ffb('0x13')),console[_0x810ffb('0x27')](_0x810ffb('0x26'));}catch(_0x1e0357){console[_0x810ffb('0x20')](_0x1e0357),appLogger[_0x810ffb('0x20')](_0x810ffb('0x2'),_0x1e0357);throw _0x1e0357;}}main(); \ No newline at end of file diff --git a/server/components/auth/service.js b/server/components/auth/service.js index 3555141..b87136b 100644 --- a/server/components/auth/service.js +++ b/server/components/auth/service.js @@ -1 +1 @@ -const a823_0x4319=['pass','permissions','isMiddleware','name','session','redirect','catch','user','startsWith','format','sequelize','openchannelPause','HS256','use','payload','voicePause','unmanaged','md5secret','headers','Unknown\x20authorization\x20format','closed','apiKeyIat','isEqual','apikey','exports','params','split','json','showWebBar','phoneBarEnableSettings','passwordResetAt','status','role','lodash','unshift','getLicense','phoneBarPrefixRequired','/dashboards/general','verify','getUuid','../../config/environment','promisify','now','phoneBarAutoAnswer','update','HS512','API\x20access\x20key\x20is\x20not\x20valid\x20anymore','../../config/license/util','userProfileId','Bearer','isAuthenticated','crypto','findOne','toString','secrets','Unmanaged.','cookie','chatPause','query','isNil','Basic','phoneBarDnd','Forbidden','User','allowmessenger','ChatInteraction','then','Wrong\x20credentials.','Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one','test','crudPermissions','phoneBarExpires','lastPauseAt','Invalid\x20API\x20access\x20key','phoneBarEnableRecording','disposition','interface','User\x20object\x20not\x20found.','lastLoginAt','fullname','internal','apiKeyNonce','phoneBarRemoteControl','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','options','send','faxPause','sign','phoneBarAutoAnswerDelay','../../config/license/hardware','jsonwebtoken','User\x20not\x20found.','decryptString','alias','hotdesk','../encryptor','express-jwt','authorization','randomBytes','phoneBarEnableDtmfTone','splice'];(function(_0x53b051,_0x431902){const _0x433d6c=function(_0x1a4f13){while(--_0x1a4f13){_0x53b051['push'](_0x53b051['shift']());}};_0x433d6c(++_0x431902);}(a823_0x4319,0xcb));const a823_0x433d=function(_0x53b051,_0x431902){_0x53b051=_0x53b051-0x0;let _0x433d6c=a823_0x4319[_0x53b051];return _0x433d6c;};const _0x878d49=a823_0x433d;'use strict';const db=require('../../mysqldb')['db'],{ValidationError}=require(_0x878d49('0x9')),config=require(_0x878d49('0x27')),hardwareConf=require(_0x878d49('0x58')),licenseUtil=require(_0x878d49('0x2e')),encryptor=require(_0x878d49('0x5e')),util=require('util'),_=require(_0x878d49('0x20')),jwt=require(_0x878d49('0x59')),expressJwt=require(_0x878d49('0x5f')),compose=require('composable-middleware'),basicAuth=require('basic-auth'),crypto=require(_0x878d49('0x32')),validateJwt=expressJwt({'secret':config[_0x878d49('0x35')][_0x878d49('0x3')],'algorithms':[_0x878d49('0xb')]}),userAttributes=['id',_0x878d49('0x1f'),_0x878d49('0x4e'),'name',_0x878d49('0x4f'),'email','userpic',_0x878d49('0x0'),_0x878d49('0x10'),_0x878d49('0xe'),_0x878d49('0x38'),'mailPause',_0x878d49('0x55'),'smsPause',_0x878d49('0xa'),'pauseType',_0x878d49('0x1b'),_0x878d49('0x4d'),_0x878d49('0x47'),_0x878d49('0x45'),_0x878d49('0x3f'),_0x878d49('0x1d'),_0x878d49('0x5c'),_0x878d49('0x2a'),_0x878d49('0x57'),_0x878d49('0x3c'),_0x878d49('0x49'),_0x878d49('0x62'),_0x878d49('0x1c'),_0x878d49('0x46'),_0x878d49('0x23'),_0x878d49('0x51'),'phoneBarRemoteControlPort',_0x878d49('0x5d'),_0x878d49('0x4b'),_0x878d49('0x2f'),'settingsEnabled'];function isChatInteractionAuthorized(){const _0x2defaf=_0x878d49;return this[_0x2defaf('0x31')](!![])['use'](function(_0x1a4f13,_0x565fcd,_0x457ba2){const _0x211c7f=_0x2defaf;if(_0x1a4f13[_0x211c7f('0x6')])_0x457ba2();else return db[_0x211c7f('0x40')][_0x211c7f('0x33')]({'where':{'id':_0x1a4f13[_0x211c7f('0x18')]['id']},'attributes':['id','closed','disposition'],'raw':!![]})[_0x211c7f('0x41')](function(_0x11df9c){const _0x1c3fad=_0x211c7f;if(_0x11df9c&&_0x11df9c[_0x1c3fad('0x13')])return _0x565fcd[_0x1c3fad('0x1e')](_0x11df9c['disposition']===_0x1c3fad('0xf')?0x195:0x193)[_0x1c3fad('0x1a')]({'message':_0x11df9c[_0x1c3fad('0x4a')]===_0x1c3fad('0xf')?_0x1c3fad('0x36'):'Forbidden.'});else _0x457ba2();})['catch'](function(_0x2be4dd){_0x457ba2(_0x2be4dd);});});}function isAuthenticated(_0x38df0c){const _0x5c73b7=_0x878d49;return compose()[_0x5c73b7('0xc')](function(_0x441ebd,_0x4bb24c,_0x47157c){const _0x4fd0df=_0x5c73b7;if(_0x441ebd[_0x4fd0df('0x11')][_0x4fd0df('0x60')]){if(_['startsWith'](_0x441ebd[_0x4fd0df('0x11')]['authorization'],_0x4fd0df('0x3b'))){const _0x4dfcc1=basicAuth(_0x441ebd);db[_0x4fd0df('0x3e')][_0x4fd0df('0x33')]({'where':{'name':_0x4dfcc1[_0x4fd0df('0x2')]}})[_0x4fd0df('0x41')](function(_0x220c5d){const _0x320013=_0x4fd0df;if(!_0x220c5d||!_0x220c5d['authenticate'](_0x4dfcc1[_0x320013('0x64')]))return _0x4bb24c[_0x320013('0x1e')](0x191)[_0x320013('0x1a')]({'message':_0x320013('0x42')});_0x441ebd[_0x320013('0x6')]={'id':_0x220c5d['id']},_0x47157c();})['catch'](function(_0x3159f3){_0x47157c(_0x3159f3);});}else{if(_[_0x4fd0df('0x7')](_0x441ebd[_0x4fd0df('0x11')]['authorization'],_0x4fd0df('0x30')))validateJwt(_0x441ebd,_0x4bb24c,_0x47157c);else{if(_0x38df0c)_0x47157c();else return _0x4bb24c['status'](0x193)[_0x4fd0df('0x1a')]({'message':_0x4fd0df('0x12')});}}}else{if(_0x441ebd[_0x4fd0df('0x39')]['apikey'])try{const _0x368eca={'audience':hardwareConf['getUuid'](),'issuer':hardwareConf[_0x4fd0df('0x26')]()};verifyJwt(_0x441ebd[_0x4fd0df('0x39')][_0x4fd0df('0x16')],_0x368eca)[_0x4fd0df('0x41')](function(_0x48cfd5){const _0x2accab=_0x4fd0df;return db[_0x2accab('0x3e')][_0x2accab('0x33')]({'where':{'id':_0x48cfd5['sub']}})['then'](function(_0x268361){const _0xba51f5=_0x2accab;if(!_0x268361||!_[_0xba51f5('0x15')](_0x268361['apiKeyNonce'],_0x48cfd5['nonce']))return _0x4bb24c[_0xba51f5('0x1e')](0x191)[_0xba51f5('0x1a')]({'message':_0xba51f5('0x2d')});_0x441ebd[_0xba51f5('0x6')]={'id':_0x268361['id']},_0x47157c();});})[_0x4fd0df('0x5')](function(){const _0x5bd9a5=_0x4fd0df;return _0x4bb24c['status'](0x191)[_0x5bd9a5('0x1a')]({'message':_0x5bd9a5('0x48')});});}catch(_0x16021d){_0x47157c(_0x16021d);}else{if(_0x38df0c)_0x47157c();else return _0x4bb24c[_0x4fd0df('0x1e')](0x193)[_0x4fd0df('0x1a')]({'message':_0x4fd0df('0x12')});}}})[_0x5c73b7('0xc')](function(_0x17bb7d,_0x246142,_0x2c73fe){const _0x50a00b=_0x5c73b7;if(_0x17bb7d['user'])db['User'][_0x50a00b('0x33')]({'where':{'id':_0x17bb7d[_0x50a00b('0x6')]['id']},'attributes':userAttributes})[_0x50a00b('0x41')](function(_0x377a03){const _0x31e3a7=_0x50a00b;if(!_0x377a03)return _0x246142[_0x31e3a7('0x1e')](0x194)[_0x31e3a7('0x1a')]({'message':_0x31e3a7('0x5a')});_0x17bb7d[_0x31e3a7('0x6')]=_0x377a03,_0x2c73fe();})[_0x50a00b('0x5')](function(_0x451c52){_0x2c73fe(_0x451c52);});else{if(_0x38df0c)_0x2c73fe();else return _0x246142[_0x50a00b('0x1e')](0x194)[_0x50a00b('0x1a')]({'message':_0x50a00b('0x4c')});}});}function canUpdate(){const _0x2e285f=_0x878d49;return compose()[_0x2e285f('0xc')](function(_0x18d97e,_0x6742fd,_0x4a0370){const _0x3f0019=_0x2e285f;return licenseUtil[_0x3f0019('0x22')]()['then'](function(_0x46fa9c){const _0x436e0d=_0x3f0019;if(_0x46fa9c[_0x436e0d('0x2b')])_0x4a0370();else return _0x6742fd[_0x436e0d('0x1e')](0x193)['json']({'message':_0x436e0d('0x3d')});})[_0x3f0019('0x5')](function(_0x5e3b0a){_0x4a0370(_0x5e3b0a);});});}function isMiddleware(_0x24c08f,_0x129de7,_0x48c76e){const _0x301b2c=_0x878d49;return _0x24c08f[_0x301b2c('0x1')]=!![],_0x48c76e();}function signToken(_0xd6eb8c){return signJwt(_0xd6eb8c);}function setTokenCookie(_0x342444,_0x453156){const _0x39e563=_0x878d49;if(!_0x342444[_0x39e563('0x6')])return _0x453156[_0x39e563('0x1e')](0x194)['json']({'message':'It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.'});const _0x1da09c={'payload':{'id':_0x342444[_0x39e563('0x6')]['id'],'role':_0x342444[_0x39e563('0x6')][_0x39e563('0x1f')]},'options':{'expiresIn':0x15180}};return signJwt(_0x1da09c)[_0x39e563('0x41')](function(_0x3e3382){const _0x34c7c1=_0x39e563;_0x453156[_0x34c7c1('0x37')]('motion.token',_0x3e3382),_0x453156[_0x34c7c1('0x4')](_0x34c7c1('0x24'));})['catch'](function(_0x335e0e){const _0xad10ea=_0x39e563;return _0x453156[_0xad10ea('0x1e')](0x1f4)[_0xad10ea('0x54')](_0x335e0e);});}function retrieveApiKey(_0x2786fe){const _0x490a3b=_0x878d49;return _[_0x490a3b('0x3a')](_0x2786fe['apiKeyNonce'])||_[_0x490a3b('0x3a')](_0x2786fe['apiKeyIat'])?null:createJwt(_0x2786fe);}function generateApiKey(_0x252a5e){const _0x499068=_0x878d49;return _0x252a5e[_0x499068('0x50')]=generateNonce(),_0x252a5e['apiKeyIat']=generateIssuedAt(),createJwt(_0x252a5e);}function regenerateApiKey(_0x202a48,_0x203d3d){const _0x8a3a2d=_0x878d49,_0x154bb2=_0x202a48[_0x8a3a2d('0x39')][_0x8a3a2d('0x16')];if(_0x154bb2){const _0x35a870={'nonce':_0x203d3d['apiKeyNonce'],'iat':_0x203d3d['apiKeyIat'],'audience':hardwareConf['getUuid'](),'issuer':hardwareConf[_0x8a3a2d('0x26')]()};return verifyJwt(_0x154bb2,_0x35a870)[_0x8a3a2d('0x41')](function(){return generateApiKey(_0x203d3d);});}else throw{'message':_0x8a3a2d('0x43')};}function validatePasswordPattern(_0xbfb3c3){const _0x2e65b8=_0x878d49,_0x4ba3a0=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x4ba3a0[_0x2e65b8('0x44')](_0xbfb3c3))throw new ValidationError('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(_0x35de08,_0xb59dc3,_0x4839b7){const _0x355f56=_0x878d49,_0x508dd3=encryptor[_0x355f56('0x5b')](_0xb59dc3)[_0x355f56('0x19')](',');for(let _0x580996=0x0;_0x580996<_0x4839b7;_0x580996++){if(!_0x508dd3[_0x580996])break;if(_0x35de08['toLowerCase']()===_0x508dd3[_0x580996]['toLowerCase']()){let _0x53932a=util[_0x355f56('0x8')]('The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.',_0x4839b7);_0x4839b7===0x1&&(_0x53932a=_0x355f56('0x52'));throw new ValidationError(_0x53932a);}}return;}function updatePasswordsHistory(_0x5c0e6d,_0x255263){const _0x18e48f=_0x878d49,_0x5232be=_0x255263?encryptor['decryptString'](_0x255263)[_0x18e48f('0x19')](','):[];return _0x5232be['length']===0x5&&_0x5232be[_0x18e48f('0x63')](-0x1,0x1),_0x5232be[_0x18e48f('0x21')](_0x5c0e6d),encryptor['encryptString'](_0x5232be['join'](','));}function signJwt(_0x32a25b){const _0x5e2de3=_0x878d49,_0x48674f=util[_0x5e2de3('0x28')](jwt[_0x5e2de3('0x56')],{'context':jwt}),_0xddd489=_0x32a25b['secret']||config[_0x5e2de3('0x35')]['session'];return new Promise(function(_0x526a7f,_0x217bf4){const _0x64ff0=_0x5e2de3;_0x48674f(_0x32a25b[_0x64ff0('0xd')],_0xddd489,_0x32a25b[_0x64ff0('0x53')])[_0x64ff0('0x41')](function(_0x29c2c7){_0x526a7f(_0x29c2c7);})[_0x64ff0('0x5')](function(_0x26292f){_0x217bf4(_0x26292f);});});}function verifyJwt(_0x52862f,_0x15d028,_0x246a34){const _0x24d754=_0x878d49,_0x2b83f1=util[_0x24d754('0x28')](jwt[_0x24d754('0x25')],{'context':jwt}),_0xcf393=_0x246a34||config['secrets'][_0x24d754('0x3')];return new Promise(function(_0x57ccf2,_0x4a2c82){const _0xfbe1cf=_0x24d754;_0x2b83f1(_0x52862f,_0xcf393,_0x15d028)[_0xfbe1cf('0x41')](function(_0x545594){_0x57ccf2(_0x545594);})[_0xfbe1cf('0x5')](function(_0xd6a99d){_0x4a2c82(_0xd6a99d);});});}function generateNonce(){const _0x287100=_0x878d49;return crypto[_0x287100('0x61')](0x10)[_0x287100('0x34')]('hex');}function generateIssuedAt(){const _0x5e65bf=_0x878d49;return Math['floor'](Date[_0x5e65bf('0x29')]()/0x3e8)['toString']();}function createJwt(_0x206d33){const _0x6e13db=_0x878d49,_0x2d9707={'payload':{'iat':_0x206d33[_0x6e13db('0x14')],'nonce':_0x206d33[_0x6e13db('0x50')]},'options':{'algorithm':_0x6e13db('0x2c'),'subject':_0x206d33['id'][_0x6e13db('0x34')](),'issuer':hardwareConf[_0x6e13db('0x26')](),'audience':hardwareConf[_0x6e13db('0x26')]()}};return signJwt(_0x2d9707)[_0x6e13db('0x41')](function(_0x3d5ac1){const _0x218a81=_0x6e13db;return{'iat':_0x206d33['apiKeyIat'],'nonce':_0x206d33[_0x218a81('0x50')],'token':_0x3d5ac1};});}module[_0x878d49('0x17')]={'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_0x5a8e=['pass','util','The\x20password\x20must\x20be\x20different\x20from\x20the\x20last\x20one.\x20Please\x20choose\x20another\x20one.','API\x20access\x20key\x20is\x20not\x20valid\x20anymore','Please\x20use\x20the\x20previous\x20API\x20access\x20key\x20to\x20generate\x20a\x20new\x20one','cookie','sign','../../config/license/util','mailPause','isMiddleware','query','then','redirect','../encryptor','decryptString','isNil','Wrong\x20credentials.','phoneBarPrefixRequired','isEqual','chatPause','crudPermissions','toLowerCase','email','Unknown\x20authorization\x20format','closed','floor','user','allowmessenger','User','motion.token','split','catch','toString','unshift','startsWith','role','length','pauseType','options','lodash','promisify','getLicense','permissions','authorization','getUuid','status','send','encryptString','userpic','phoneBarAutoAnswer','internal','format','secrets','findOne','alias','Forbidden','md5secret','fullname','session','headers','The\x20password\x20must\x20be\x20different\x20from\x20the\x20previous\x20%d\x20passwords.\x20Please\x20choose\x20another\x20one.','phoneBarRemoteControl','apikey','exports','randomBytes','unmanaged','lastLoginAt','../../config/environment','HS512','settingsEnabled','update','passwordResetAt','Basic','isAuthenticated','lastPauseAt','userProfileId','User\x20not\x20found.','hex','openchannelPause','nonce','join','Bearer','json','phoneBarExpires','Forbidden.','secret','interface','jsonwebtoken','name','apiKeyNonce','The\x20password\x20must\x20be\x20at\x20least\x208\x20characters\x20long\x20and\x20have\x201\x20lowercase\x20character,\x201\x20uppercase\x20character,\x201\x20number\x20and\x201\x20special\x20character\x20~!@#$%^&-_=+[{]}.','smsPause','verify','apiKeyIat','phoneBarEnableSettings','voicePause','use','disposition'];(function(_0x11cad3,_0x5a8efb){const _0x24ce0c=function(_0xd1f67d){while(--_0xd1f67d){_0x11cad3['push'](_0x11cad3['shift']());}};_0x24ce0c(++_0x5a8efb);}(a823_0x5a8e,0x170));const a823_0x24ce=function(_0x11cad3,_0x5a8efb){_0x11cad3=_0x11cad3-0x0;let _0x24ce0c=a823_0x5a8e[_0x11cad3];return _0x24ce0c;};const _0x7b9e37=a823_0x24ce;'use strict';const db=require('../../mysqldb')['db'],{ValidationError}=require('sequelize'),config=require(_0x7b9e37('0x5b')),hardwareConf=require('../../config/license/hardware'),licenseUtil=require(_0x7b9e37('0x1f')),encryptor=require(_0x7b9e37('0x25')),util=require(_0x7b9e37('0x19')),_=require(_0x7b9e37('0x3f')),jwt=require(_0x7b9e37('0xd')),expressJwt=require('express-jwt'),compose=require('composable-middleware'),basicAuth=require('basic-auth'),crypto=require('crypto'),validateJwt=expressJwt({'secret':config[_0x7b9e37('0x4c')][_0x7b9e37('0x52')],'algorithms':['HS256']}),userAttributes=['id','role',_0x7b9e37('0x51'),_0x7b9e37('0xe'),_0x7b9e37('0x4a'),_0x7b9e37('0x2e'),_0x7b9e37('0x48'),_0x7b9e37('0x42'),_0x7b9e37('0x50'),_0x7b9e37('0x15'),_0x7b9e37('0x2b'),_0x7b9e37('0x20'),'faxPause',_0x7b9e37('0x11'),_0x7b9e37('0x4'),_0x7b9e37('0x3d'),'showWebBar',_0x7b9e37('0x5a'),_0x7b9e37('0x0'),_0x7b9e37('0x2c'),_0x7b9e37('0x33'),_0x7b9e37('0x5f'),_0x7b9e37('0x4e'),_0x7b9e37('0x49'),'phoneBarAutoAnswerDelay','phoneBarDnd','phoneBarEnableRecording','phoneBarEnableDtmfTone',_0x7b9e37('0x14'),_0x7b9e37('0x9'),_0x7b9e37('0x29'),_0x7b9e37('0x55'),'phoneBarRemoteControlPort','hotdesk',_0x7b9e37('0xc'),_0x7b9e37('0x1'),_0x7b9e37('0x5d')];function isChatInteractionAuthorized(){const _0x11c56f=_0x7b9e37;return this[_0x11c56f('0x61')](!![])[_0x11c56f('0x16')](function(_0xd1f67d,_0x5f3897,_0x5828d6){const _0x42e508=_0x11c56f;if(_0xd1f67d[_0x42e508('0x32')])_0x5828d6();else return db['ChatInteraction']['findOne']({'where':{'id':_0xd1f67d['params']['id']},'attributes':['id',_0x42e508('0x30'),_0x42e508('0x17')],'raw':!![]})['then'](function(_0x40d3ed){const _0x4bd1f8=_0x42e508;if(_0x40d3ed&&_0x40d3ed['closed'])return _0x5f3897[_0x4bd1f8('0x45')](_0x40d3ed['disposition']===_0x4bd1f8('0x59')?0x195:0x193)[_0x4bd1f8('0x8')]({'message':_0x40d3ed[_0x4bd1f8('0x17')]===_0x4bd1f8('0x59')?'Unmanaged.':_0x4bd1f8('0xa')});else _0x5828d6();})[_0x42e508('0x37')](function(_0x2bfb7d){_0x5828d6(_0x2bfb7d);});});}function isAuthenticated(_0x14a7f1){const _0x505e9a=_0x7b9e37;return compose()['use'](function(_0x3c0bee,_0x2ccd77,_0x4c29df){const _0x5bebf6=a823_0x24ce;if(_0x3c0bee[_0x5bebf6('0x53')][_0x5bebf6('0x43')]){if(_[_0x5bebf6('0x3a')](_0x3c0bee[_0x5bebf6('0x53')][_0x5bebf6('0x43')],_0x5bebf6('0x60'))){const _0x409028=basicAuth(_0x3c0bee);db[_0x5bebf6('0x34')][_0x5bebf6('0x4d')]({'where':{'name':_0x409028[_0x5bebf6('0xe')]}})[_0x5bebf6('0x23')](function(_0x206061){const _0x593207=_0x5bebf6;if(!_0x206061||!_0x206061['authenticate'](_0x409028[_0x593207('0x18')]))return _0x2ccd77['status'](0x191)[_0x593207('0x8')]({'message':_0x593207('0x28')});_0x3c0bee['user']={'id':_0x206061['id']},_0x4c29df();})[_0x5bebf6('0x37')](function(_0x412e7d){_0x4c29df(_0x412e7d);});}else{if(_[_0x5bebf6('0x3a')](_0x3c0bee[_0x5bebf6('0x53')][_0x5bebf6('0x43')],_0x5bebf6('0x7')))validateJwt(_0x3c0bee,_0x2ccd77,_0x4c29df);else{if(_0x14a7f1)_0x4c29df();else return _0x2ccd77['status'](0x193)[_0x5bebf6('0x8')]({'message':'Unknown\x20authorization\x20format'});}}}else{if(_0x3c0bee[_0x5bebf6('0x22')][_0x5bebf6('0x56')])try{const _0x2b5579={'audience':hardwareConf['getUuid'](),'issuer':hardwareConf[_0x5bebf6('0x44')]()};verifyJwt(_0x3c0bee[_0x5bebf6('0x22')][_0x5bebf6('0x56')],_0x2b5579)[_0x5bebf6('0x23')](function(_0x2e7db9){const _0x571a0e=_0x5bebf6;return db[_0x571a0e('0x34')][_0x571a0e('0x4d')]({'where':{'id':_0x2e7db9['sub']}})[_0x571a0e('0x23')](function(_0x274ff5){const _0x4cdc3e=_0x571a0e;if(!_0x274ff5||!_[_0x4cdc3e('0x2a')](_0x274ff5[_0x4cdc3e('0xf')],_0x2e7db9[_0x4cdc3e('0x5')]))return _0x2ccd77[_0x4cdc3e('0x45')](0x191)['json']({'message':_0x4cdc3e('0x1b')});_0x3c0bee['user']={'id':_0x274ff5['id']},_0x4c29df();});})[_0x5bebf6('0x37')](function(){const _0x5ba8e9=_0x5bebf6;return _0x2ccd77[_0x5ba8e9('0x45')](0x191)[_0x5ba8e9('0x8')]({'message':'Invalid\x20API\x20access\x20key'});});}catch(_0x5346c5){_0x4c29df(_0x5346c5);}else{if(_0x14a7f1)_0x4c29df();else return _0x2ccd77[_0x5bebf6('0x45')](0x193)['json']({'message':_0x5bebf6('0x2f')});}}})[_0x505e9a('0x16')](function(_0x2256a8,_0x5b076f,_0x2f205f){const _0x334ded=_0x505e9a;if(_0x2256a8[_0x334ded('0x32')])db[_0x334ded('0x34')]['findOne']({'where':{'id':_0x2256a8[_0x334ded('0x32')]['id']},'attributes':userAttributes})[_0x334ded('0x23')](function(_0xeb96bb){const _0x139bcc=_0x334ded;if(!_0xeb96bb)return _0x5b076f[_0x139bcc('0x45')](0x194)[_0x139bcc('0x8')]({'message':_0x139bcc('0x2')});_0x2256a8[_0x139bcc('0x32')]=_0xeb96bb,_0x2f205f();})[_0x334ded('0x37')](function(_0x3f0278){_0x2f205f(_0x3f0278);});else{if(_0x14a7f1)_0x2f205f();else return _0x5b076f[_0x334ded('0x45')](0x194)[_0x334ded('0x8')]({'message':'User\x20object\x20not\x20found.'});}});}function canUpdate(){return compose()['use'](function(_0x2a264c,_0x3342b4,_0x252ad5){const _0x56faf0=a823_0x24ce;return licenseUtil[_0x56faf0('0x41')]()[_0x56faf0('0x23')](function(_0x314fec){const _0x2260ce=_0x56faf0;if(_0x314fec[_0x2260ce('0x5e')])_0x252ad5();else return _0x3342b4[_0x2260ce('0x45')](0x193)[_0x2260ce('0x8')]({'message':_0x2260ce('0x4f')});})[_0x56faf0('0x37')](function(_0x4345a6){_0x252ad5(_0x4345a6);});});}function isMiddleware(_0x2ebeb9,_0x32efc2,_0x305df3){const _0x360cbe=_0x7b9e37;return _0x2ebeb9[_0x360cbe('0x21')]=!![],_0x305df3();}function signToken(_0x1cdf47){return signJwt(_0x1cdf47);}function setTokenCookie(_0x3c77c6,_0x61232){const _0x72aab6=_0x7b9e37;if(!_0x3c77c6['user'])return _0x61232[_0x72aab6('0x45')](0x194)[_0x72aab6('0x8')]({'message':'It\x20looks\x20like\x20you\x20aren\x27t\x20logged\x20in,\x20please\x20try\x20again.'});const _0x52da6a={'payload':{'id':_0x3c77c6[_0x72aab6('0x32')]['id'],'role':_0x3c77c6['user'][_0x72aab6('0x3b')]},'options':{'expiresIn':0x15180}};return signJwt(_0x52da6a)[_0x72aab6('0x23')](function(_0x5cbf6c){const _0x1a5aac=_0x72aab6;_0x61232[_0x1a5aac('0x1d')](_0x1a5aac('0x35'),_0x5cbf6c),_0x61232[_0x1a5aac('0x24')]('/dashboards/general');})[_0x72aab6('0x37')](function(_0x4797c7){const _0x1a2a26=_0x72aab6;return _0x61232[_0x1a2a26('0x45')](0x1f4)[_0x1a2a26('0x46')](_0x4797c7);});}function retrieveApiKey(_0x54b2b3){const _0x46b545=_0x7b9e37;return _[_0x46b545('0x27')](_0x54b2b3[_0x46b545('0xf')])||_[_0x46b545('0x27')](_0x54b2b3[_0x46b545('0x13')])?null:createJwt(_0x54b2b3);}function generateApiKey(_0x5ea0bf){const _0x484683=_0x7b9e37;return _0x5ea0bf[_0x484683('0xf')]=generateNonce(),_0x5ea0bf[_0x484683('0x13')]=generateIssuedAt(),createJwt(_0x5ea0bf);}function regenerateApiKey(_0x3396c9,_0x32a3e3){const _0x1d175c=_0x7b9e37,_0x4f088d=_0x3396c9['query'][_0x1d175c('0x56')];if(_0x4f088d){const _0x396671={'nonce':_0x32a3e3['apiKeyNonce'],'iat':_0x32a3e3[_0x1d175c('0x13')],'audience':hardwareConf[_0x1d175c('0x44')](),'issuer':hardwareConf['getUuid']()};return verifyJwt(_0x4f088d,_0x396671)['then'](function(){return generateApiKey(_0x32a3e3);});}else throw{'message':_0x1d175c('0x1c')};}function validatePasswordPattern(_0x2f3603){const _0x72215b=_0x7b9e37,_0x36a977=new RegExp(/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[?!@#$%^&*~\-_=+[{\]}])(?=.{8,})/);if(!_0x36a977['test'](_0x2f3603))throw new ValidationError(_0x72215b('0x10'));return;}function validatePasswordHistory(_0x45397e,_0x57f261,_0x4a778a){const _0x345957=_0x7b9e37,_0x3cf93a=encryptor[_0x345957('0x26')](_0x57f261)[_0x345957('0x36')](',');for(let _0x4f57d1=0x0;_0x4f57d1<_0x4a778a;_0x4f57d1++){if(!_0x3cf93a[_0x4f57d1])break;if(_0x45397e[_0x345957('0x2d')]()===_0x3cf93a[_0x4f57d1]['toLowerCase']()){let _0x12d93c=util[_0x345957('0x4b')](_0x345957('0x54'),_0x4a778a);_0x4a778a===0x1&&(_0x12d93c=_0x345957('0x1a'));throw new ValidationError(_0x12d93c);}}return;}function updatePasswordsHistory(_0x3e0887,_0x3432e0){const _0x27c2b9=_0x7b9e37,_0x1249c2=_0x3432e0?encryptor[_0x27c2b9('0x26')](_0x3432e0)['split'](','):[];return _0x1249c2[_0x27c2b9('0x3c')]===0x5&&_0x1249c2['splice'](-0x1,0x1),_0x1249c2[_0x27c2b9('0x39')](_0x3e0887),encryptor[_0x27c2b9('0x47')](_0x1249c2[_0x27c2b9('0x6')](','));}function signJwt(_0x41e010){const _0x1c081d=_0x7b9e37,_0x7ec59f=util[_0x1c081d('0x40')](jwt[_0x1c081d('0x1e')],{'context':jwt}),_0x38d037=_0x41e010[_0x1c081d('0xb')]||config[_0x1c081d('0x4c')][_0x1c081d('0x52')];return new Promise(function(_0x1018b5,_0xea5fa8){const _0x5b6291=_0x1c081d;_0x7ec59f(_0x41e010['payload'],_0x38d037,_0x41e010[_0x5b6291('0x3e')])[_0x5b6291('0x23')](function(_0x269b34){_0x1018b5(_0x269b34);})[_0x5b6291('0x37')](function(_0x199248){_0xea5fa8(_0x199248);});});}function verifyJwt(_0x1cf7fc,_0x34398,_0x201ea0){const _0x585e49=_0x7b9e37,_0x157ba9=util[_0x585e49('0x40')](jwt[_0x585e49('0x12')],{'context':jwt}),_0x268839=_0x201ea0||config[_0x585e49('0x4c')][_0x585e49('0x52')];return new Promise(function(_0x355249,_0x4200ff){const _0x2f552e=_0x585e49;_0x157ba9(_0x1cf7fc,_0x268839,_0x34398)['then'](function(_0x340c11){_0x355249(_0x340c11);})[_0x2f552e('0x37')](function(_0x386807){_0x4200ff(_0x386807);});});}function generateNonce(){const _0x1b2719=_0x7b9e37;return crypto[_0x1b2719('0x58')](0x10)[_0x1b2719('0x38')](_0x1b2719('0x3'));}function generateIssuedAt(){const _0x1717ea=_0x7b9e37;return Math[_0x1717ea('0x31')](Date['now']()/0x3e8)[_0x1717ea('0x38')]();}function createJwt(_0x479dab){const _0x51dff7=_0x7b9e37,_0x565825={'payload':{'iat':_0x479dab[_0x51dff7('0x13')],'nonce':_0x479dab[_0x51dff7('0xf')]},'options':{'algorithm':_0x51dff7('0x5c'),'subject':_0x479dab['id']['toString'](),'issuer':hardwareConf[_0x51dff7('0x44')](),'audience':hardwareConf['getUuid']()}};return signJwt(_0x565825)[_0x51dff7('0x23')](function(_0x183d92){const _0x14e07d=_0x51dff7;return{'iat':_0x479dab[_0x14e07d('0x13')],'nonce':_0x479dab[_0x14e07d('0xf')],'token':_0x183d92};});}module[_0x7b9e37('0x57')]={'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 b7a047b..914366a 100644 --- a/server/components/encryptor/create-cypher-fallback.js +++ b/server/components/encryptor/create-cypher-fallback.js @@ -1 +1 @@ -const a824_0x61eb=['slice','digest','Missing\x20passphrase','exports','length','test','repeat','crypto','update','min','from','hex','md5','message'];(function(_0x3d9668,_0x61ebd7){const _0x52c677=function(_0x69f36c){while(--_0x69f36c){_0x3d9668['push'](_0x3d9668['shift']());}};_0x52c677(++_0x61ebd7);}(a824_0x61eb,0x190));const a824_0x52c6=function(_0x3d9668,_0x61ebd7){_0x3d9668=_0x3d9668-0x0;let _0x52c677=a824_0x61eb[_0x3d9668];return _0x52c677;};const _0x509552=a824_0x52c6;'use strict';const {createCipheriv,createHash}=require(_0x509552('0xd'));function sizes(_0x69f36c){const _0x199123=_0x509552;for(let _0x3bb30e=0x1,_0x2da1f2=0x0;;){try{return createCipheriv(_0x69f36c,'.'[_0x199123('0xc')](_0x3bb30e),'.'[_0x199123('0xc')](_0x2da1f2)),[_0x3bb30e,_0x2da1f2];}catch(_0x29b733){if(/invalid iv length/i[_0x199123('0xb')](_0x29b733[_0x199123('0x5')]))_0x2da1f2+=0x1;else{if(/invalid key length/i[_0x199123('0xb')](_0x29b733[_0x199123('0x5')]))_0x3bb30e+=0x1;else throw _0x29b733;}}}}function compute(_0x4d0aa0,_0x447b8b){const _0x233035=_0x509552;let [_0xd74b43,_0x52f439]=sizes(_0x4d0aa0);for(let _0x213561='',_0x3250d6='',_0x3bae4b='';;){const _0x58875b=createHash(_0x233035('0x4'));_0x58875b[_0x233035('0x0')](_0x3bae4b,_0x233035('0x3')),_0x58875b[_0x233035('0x0')](_0x447b8b),_0x3bae4b=_0x58875b[_0x233035('0x7')](_0x233035('0x3'));let _0x44dca4=0x0,_0x252717=0x0;_0x44dca4=Math[_0x233035('0x1')](_0x3bae4b[_0x233035('0xa')]-_0x252717,0x2*_0xd74b43),(_0xd74b43-=_0x44dca4/0x2,_0x213561+=_0x3bae4b[_0x233035('0x6')](_0x252717,_0x252717+_0x44dca4),_0x252717+=_0x44dca4),_0x44dca4=Math['min'](_0x3bae4b[_0x233035('0xa')]-_0x252717,0x2*_0x52f439),(_0x52f439-=_0x44dca4/0x2,_0x3250d6+=_0x3bae4b[_0x233035('0x6')](_0x252717,_0x252717+_0x44dca4),_0x252717+=_0x44dca4);if(_0xd74b43+_0x52f439===0x0)return[_0x213561,_0x3250d6];}}function createCypherFallback(_0x3db669,_0x323256){const _0x59296f=_0x509552;if(!_0x3db669)throw new Error('Missing\x20cipher');if(!_0x323256)throw new Error(_0x59296f('0x8'));const [_0x594a65,_0x4978f7]=compute(_0x3db669,_0x323256);return{'key':Buffer[_0x59296f('0x2')](_0x594a65,_0x59296f('0x3')),'iv':Buffer['from'](_0x4978f7,_0x59296f('0x3'))};}module[_0x509552('0x9')]={'createCypherFallback':createCypherFallback}; \ No newline at end of file +const a824_0x31fd=['min','from','slice','test','Missing\x20passphrase','digest','hex','length','md5','message','update','exports','crypto','repeat'];(function(_0x217291,_0x31fdb8){const _0x151139=function(_0x4f313a){while(--_0x4f313a){_0x217291['push'](_0x217291['shift']());}};_0x151139(++_0x31fdb8);}(a824_0x31fd,0xc8));const a824_0x1511=function(_0x217291,_0x31fdb8){_0x217291=_0x217291-0x0;let _0x151139=a824_0x31fd[_0x217291];return _0x151139;};const _0x3c6621=a824_0x1511;'use strict';const {createCipheriv,createHash}=require(_0x3c6621('0x8'));function sizes(_0x4f313a){const _0x508c18=_0x3c6621;for(let _0x416402=0x1,_0x4798d6=0x0;;){try{return createCipheriv(_0x4f313a,'.'['repeat'](_0x416402),'.'[_0x508c18('0x9')](_0x4798d6)),[_0x416402,_0x4798d6];}catch(_0x3fc237){if(/invalid iv length/i[_0x508c18('0xd')](_0x3fc237[_0x508c18('0x5')]))_0x4798d6+=0x1;else{if(/invalid key length/i['test'](_0x3fc237[_0x508c18('0x5')]))_0x416402+=0x1;else throw _0x3fc237;}}}}function compute(_0x5a3d8c,_0x936279){const _0x235a72=_0x3c6621;let [_0x4a19aa,_0x313516]=sizes(_0x5a3d8c);for(let _0x37d55b='',_0x5761c3='',_0x300fe0='';;){const _0x217e29=createHash(_0x235a72('0x4'));_0x217e29['update'](_0x300fe0,_0x235a72('0x2')),_0x217e29[_0x235a72('0x6')](_0x936279),_0x300fe0=_0x217e29[_0x235a72('0x1')](_0x235a72('0x2'));let _0x8013be=0x0,_0x1a0338=0x0;_0x8013be=Math['min'](_0x300fe0['length']-_0x1a0338,0x2*_0x4a19aa),(_0x4a19aa-=_0x8013be/0x2,_0x37d55b+=_0x300fe0[_0x235a72('0xc')](_0x1a0338,_0x1a0338+_0x8013be),_0x1a0338+=_0x8013be),_0x8013be=Math[_0x235a72('0xa')](_0x300fe0[_0x235a72('0x3')]-_0x1a0338,0x2*_0x313516),(_0x313516-=_0x8013be/0x2,_0x5761c3+=_0x300fe0[_0x235a72('0xc')](_0x1a0338,_0x1a0338+_0x8013be),_0x1a0338+=_0x8013be);if(_0x4a19aa+_0x313516===0x0)return[_0x37d55b,_0x5761c3];}}function createCypherFallback(_0x4ecba5,_0x1455f9){const _0x59245f=_0x3c6621;if(!_0x4ecba5)throw new Error('Missing\x20cipher');if(!_0x1455f9)throw new Error(_0x59245f('0x0'));const [_0x29bad2,_0xafea9b]=compute(_0x4ecba5,_0x1455f9);return{'key':Buffer[_0x59245f('0xb')](_0x29bad2,_0x59245f('0x2')),'iv':Buffer[_0x59245f('0xb')](_0xafea9b,_0x59245f('0x2'))};}module[_0x3c6621('0x7')]={'createCypherFallback':createCypherFallback}; \ No newline at end of file diff --git a/server/components/encryptor/index.js b/server/components/encryptor/index.js index a941240..59cd979 100644 --- a/server/components/encryptor/index.js +++ b/server/components/encryptor/index.js @@ -1 +1 @@ -const a825_0x20af=['createDecipheriv','utf-8','utf8','randomBytes','info','createHash','parse','alloc','digest','./create-cypher-fallback','exports','data1','slice','Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.','final','join','algorithm','aes192','createReadStream','undefined','write','open','string','you\x20must\x20pass\x20a\x20secret','binary','toString','split','some-naughty-secret','createWriteStream','secret','aes-256-ctr','close','base64','data','unlink','update','license','sha256','crypto','end','promises','from','substr','createCipheriv','length','app'];(function(_0x292251,_0x20afe5){const _0x53a5e7=function(_0x2cfb41){while(--_0x2cfb41){_0x292251['push'](_0x292251['shift']());}};_0x53a5e7(++_0x20afe5);}(a825_0x20af,0x145));const a825_0x53a5=function(_0x292251,_0x20afe5){_0x292251=_0x292251-0x0;let _0x53a5e7=a825_0x20af[_0x292251];return _0x53a5e7;};const _0x5aec93=a825_0x53a5;'use strict';const fs=require('fs'),crypto=require(_0x5aec93('0x23')),{createCypherFallback}=require(_0x5aec93('0x6')),logger=require('../../config/logger')(_0x5aec93('0x2a')),DEFAULT_STRING_OPTIONS={'secret':_0x5aec93('0x18'),'algorithm':_0x5aec93('0x1b'),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':_0x5aec93('0xe'),'separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x2cfb41,_0x2a43d9,_0x4b138f){const _0x353dba=_0x5aec93,_0x42ab70=KEYLEN_MAP[_0x2a43d9],_0x376e22=crypto[_0x353dba('0x2')](_0x353dba('0x22'))[_0x353dba('0x20')](String(_0x2cfb41))[_0x353dba('0x5')]('base64')[_0x353dba('0x27')](0x0,_0x42ab70),_0x296d32=Buffer[_0x353dba('0x26')](_0x376e22,_0x353dba('0x2c')),_0x557bf3=crypto[_0x353dba('0x0')](0x10),_0x5239aa=_0x557bf3[_0x353dba('0x16')](_0x353dba('0x1d')),_0x58fbed=crypto[_0x353dba('0x28')](_0x2a43d9,_0x296d32,_0x557bf3,_0x4b138f);return[_0x58fbed,_0x5239aa];}function getDecipher(_0x581ea2,_0x2fc35d,_0x696424,_0x481175){const _0x74d95=_0x5aec93,_0x1057dd=KEYLEN_MAP[_0x2fc35d],_0x1418bb=typeof _0x696424===_0x74d95('0x13')&&_0x696424[_0x74d95('0x29')]>0x0;let _0x5eebad=null,_0x1950f7=null;if(!_0x1418bb){logger[_0x74d95('0x1')](_0x74d95('0xa'));const _0x47fe02=createCypherFallback(_0x2fc35d,_0x581ea2);_0x1950f7=_0x47fe02['iv'],_0x5eebad=_0x47fe02['key'];}const _0x58eb18=_0x1418bb?Buffer['from'](_0x696424,_0x74d95('0x1d')):_0x1950f7,_0x494bc0=_0x1418bb?crypto[_0x74d95('0x2')](_0x74d95('0x22'))[_0x74d95('0x20')](String(_0x581ea2))[_0x74d95('0x5')](_0x74d95('0x1d'))[_0x74d95('0x27')](0x0,_0x1057dd):null,_0x446853=_0x1418bb?Buffer[_0x74d95('0x26')](_0x494bc0,_0x74d95('0x2c')):_0x5eebad,_0x5ac751=crypto[_0x74d95('0x2b')](_0x2fc35d,_0x446853,_0x58eb18,_0x481175);return _0x5ac751;}function encryptFile(_0x2f8e85,_0x19e36d,_0x1ba5d9,_0x211c99={}){return new Promise(function(_0x2858d0,_0x10f37e){const _0x547e54=a825_0x53a5;_0x211c99={...DEFAULT_FILE_OPTIONS,..._0x211c99};const _0x4474a0=fs[_0x547e54('0xf')](_0x2f8e85),_0x1b0a6e=fs[_0x547e54('0x19')](_0x19e36d),[_0x39403f,_0x100a3a]=getCipherAndIvText(_0x1ba5d9,_0x211c99[_0x547e54('0xd')]);_0x4474a0['on']('open',function(){const _0x151d27=_0x547e54,_0x164df6=Buffer[_0x151d27('0x26')](_0x100a3a,'base64'),_0x10bec0=Buffer[_0x151d27('0x26')](_0x211c99['separator'],'utf-8');_0x1b0a6e[_0x151d27('0x11')](Buffer['concat']([_0x164df6,_0x10bec0],_0x164df6['length']+_0x10bec0[_0x151d27('0x29')]));}),_0x4474a0['on'](_0x547e54('0x1e'),function(_0x6f5301){const _0x1df261=_0x547e54,_0x4c7c2d=Buffer[_0x1df261('0x26')](_0x39403f[_0x1df261('0x20')](_0x6f5301),'binary');_0x1b0a6e[_0x1df261('0x11')](_0x4c7c2d);}),_0x4474a0['on'](_0x547e54('0x24'),function(){const _0x20ab11=_0x547e54;try{const _0x2715a3=Buffer[_0x20ab11('0x26')](_0x39403f[_0x20ab11('0xb')]('binary'),_0x20ab11('0x15'));_0x1b0a6e[_0x20ab11('0x11')](_0x2715a3),_0x1b0a6e[_0x20ab11('0x24')](),_0x1b0a6e['on']('close',function(){_0x2858d0(_0x19e36d);});}catch(_0x5b4fc4){fs[_0x20ab11('0x1f')](_0x19e36d,_0x3f4f02=>{_0x10f37e(_0x3f4f02===null?_0x5b4fc4:_0x3f4f02);});}});});}async function decryptFile(_0x5a043f,_0x4b0fce,_0x42932e,_0x230228={}){const _0x348fc1=_0x5aec93;_0x230228={...DEFAULT_FILE_OPTIONS,..._0x230228};const _0x4800d8=Buffer[_0x348fc1('0x26')](_0x230228['separator'],_0x348fc1('0x2c'))['length'],_0x1eee3f=IVLEN_MAP[_0x230228[_0x348fc1('0xd')]],_0x19a90d=_0x1eee3f+_0x4800d8,_0x3cc8ea=await fs[_0x348fc1('0x25')][_0x348fc1('0x12')](_0x5a043f,'r'),_0x45d056=Buffer[_0x348fc1('0x4')](_0x19a90d),{buffer:_0x4a41ec}=await _0x3cc8ea['read'](_0x45d056,0x0,_0x19a90d),_0x144cfd=_0x4a41ec[_0x348fc1('0x9')](0x0,_0x1eee3f),_0x5886bd=_0x4a41ec[_0x348fc1('0x9')](_0x1eee3f),_0x4d5b56=_0x5886bd[_0x348fc1('0x16')](_0x348fc1('0x2c')),_0x14a819=_0x144cfd['toString'](_0x348fc1('0x1d')),_0x1e4d1d=_0x4d5b56===_0x230228['separator'];return new Promise(function(_0x3dc794,_0x2db263){const _0x12d735=_0x348fc1,_0x6a4959=fs[_0x12d735('0xf')](_0x5a043f,{'start':_0x1e4d1d?_0x19a90d:0x0,'fd':_0x3cc8ea,'autoClose':!![]}),_0x24e82f=fs[_0x12d735('0x19')](_0x4b0fce),_0x276795=getDecipher(_0x42932e,_0x230228[_0x12d735('0xd')],_0x1e4d1d?_0x14a819:null);_0x6a4959['on'](_0x12d735('0x1e'),function(_0x30b369){const _0x20ef2b=_0x12d735,_0x2e4e8b=Buffer['from'](_0x276795['update'](_0x30b369),_0x20ef2b('0x15'));_0x24e82f[_0x20ef2b('0x11')](_0x2e4e8b);}),_0x6a4959['on']('error',_0x426112=>_0x2db263(_0x426112)),_0x6a4959['on']('end',function(){const _0x362599=_0x12d735;try{const _0x46068b=Buffer[_0x362599('0x26')](_0x276795[_0x362599('0xb')](_0x362599('0x15')),_0x362599('0x15'));_0x24e82f['write'](_0x46068b),_0x24e82f[_0x362599('0x24')](),_0x24e82f['on'](_0x362599('0x1c'),function(){_0x3dc794(_0x4b0fce);});}catch(_0x48c082){fs[_0x362599('0x1f')](_0x4b0fce,_0x1b179b=>{_0x2db263(_0x1b179b===null?_0x48c082:_0x1b179b);});}});});}function encryptString(_0x20da60,_0x2675e1=DEFAULT_STRING_OPTIONS[_0x5aec93('0x1a')],_0x5bc797=DEFAULT_STRING_OPTIONS[_0x5aec93('0xd')],_0x3fbbb9=DEFAULT_STRING_OPTIONS['separator']){const _0xfc9185=_0x5aec93;if(!_0x20da60||_0x20da60[_0xfc9185('0x29')]===0x0)return _0x20da60;if(!_0x2675e1||_0x2675e1['length']===0x0)throw new Error(_0xfc9185('0x14'));const [_0x4b82f9,_0x483054]=getCipherAndIvText(_0x2675e1,_0x5bc797);let _0x17e3fa=_0x4b82f9[_0xfc9185('0x20')](_0x20da60,'utf8',_0xfc9185('0x1d'));return _0x17e3fa+=_0x4b82f9[_0xfc9185('0xb')](_0xfc9185('0x1d')),[_0x483054,_0x17e3fa]['join'](_0x3fbbb9);}function decryptString(_0x4db186,_0x35c887=DEFAULT_STRING_OPTIONS['secret'],_0x3ee9c4=DEFAULT_STRING_OPTIONS['algorithm'],_0x526360=DEFAULT_STRING_OPTIONS['separator']){const _0x37c677=_0x5aec93;if(!_0x4db186||_0x4db186[_0x37c677('0x29')]===0x0)return _0x4db186;if(!_0x35c887||_0x35c887['length']===0x0)throw new Error(_0x37c677('0x14'));const _0x3b652c=_0x4db186[_0x37c677('0x17')](_0x526360),_0x56680f=_0x3b652c['length']===0x2,_0x2dcc35=_0x56680f?_0x3b652c[0x1]:_0x4db186,_0x5cee07=getDecipher(_0x35c887,_0x3ee9c4,_0x56680f?_0x3b652c[0x0]:undefined);let _0x41ad04=_0x5cee07[_0x37c677('0x20')](_0x2dcc35,'base64',_0x37c677('0x2d'));return _0x41ad04+=_0x5cee07['final'](_0x37c677('0x2d')),_0x41ad04;}function getValueFromLicense(_0x5485a1,_0x2a6958){const _0x3f6b71=_0x5aec93;if(_0x5485a1&&_0x2a6958){if(_0x2a6958['data1']&&_0x2a6958['license']){const _0x5e14aa=_0x2a6958[_0x3f6b71('0x8')],_0x10d496=_0x2a6958[_0x3f6b71('0x21')],_0x1252f4=_0x5e14aa['split']('-')[0x4],_0x4e61e9=_0x5e14aa[_0x3f6b71('0x17')]('-')[0x0],_0x13173e=[_0x1252f4,_0x5e14aa,_0x4e61e9][_0x3f6b71('0xc')](':'),_0x5ad68c=getDecipher(_0x13173e,_0x3f6b71('0x1b'));let _0x12aa09=_0x5ad68c[_0x3f6b71('0x20')](_0x10d496,_0x3f6b71('0x1d'),_0x3f6b71('0x2d'));_0x12aa09+=_0x5ad68c['final'](_0x3f6b71('0x2d'));const _0xaeb69b=JSON[_0x3f6b71('0x3')](_0x12aa09);return typeof _0xaeb69b[_0x5485a1]===_0x3f6b71('0x10')?null:_0xaeb69b[_0x5485a1];}}return null;}module[_0x5aec93('0x7')]={'encryptFile':encryptFile,'decryptFile':decryptFile,'encryptString':encryptString,'decryptString':decryptString,'getValueFromLicense':getValueFromLicense}; \ No newline at end of file +const a825_0x485b=['license','parse','createReadStream','aes-256-ctr','string','./create-cypher-fallback','app','binary','end','length','separator','secret','substr','promises','sha256','slice','some-naughty-secret','open','write','utf8','exports','split','algorithm','createHash','toString','you\x20must\x20pass\x20a\x20secret','close','update','read','data1','createWriteStream','utf-8','from','createCipheriv','createDecipheriv','randomBytes','unlink','alloc','join','crypto','data','final','key','base64'];(function(_0x553919,_0x485b21){const _0x4883a8=function(_0x1b3e79){while(--_0x1b3e79){_0x553919['push'](_0x553919['shift']());}};_0x4883a8(++_0x485b21);}(a825_0x485b,0x1aa));const a825_0x4883=function(_0x553919,_0x485b21){_0x553919=_0x553919-0x0;let _0x4883a8=a825_0x485b[_0x553919];return _0x4883a8;};const _0xd7bd5b=a825_0x4883;'use strict';const fs=require('fs'),crypto=require(_0xd7bd5b('0x9')),{createCypherFallback}=require(_0xd7bd5b('0x13')),logger=require('../../config/logger')(_0xd7bd5b('0x14')),DEFAULT_STRING_OPTIONS={'secret':_0xd7bd5b('0x1e'),'algorithm':_0xd7bd5b('0x11'),'separator':'!'},DEFAULT_FILE_OPTIONS={'algorithm':'aes192','separator':'!'},KEYLEN_MAP={'aes-256-ctr':0x20,'aes192':0x18},IVLEN_MAP={'aes-256-ctr':0x18,'aes192':0x10};function getCipherAndIvText(_0x1b3e79,_0x11daf2,_0x5b632a){const _0x4e23af=_0xd7bd5b,_0x4ec18c=KEYLEN_MAP[_0x11daf2],_0x2525ca=crypto[_0x4e23af('0x25')](_0x4e23af('0x1c'))[_0x4e23af('0x29')](String(_0x1b3e79))['digest']('base64')[_0x4e23af('0x1a')](0x0,_0x4ec18c),_0x398e92=Buffer[_0x4e23af('0x2')](_0x2525ca,_0x4e23af('0x1')),_0x5af749=crypto[_0x4e23af('0x5')](0x10),_0x4fc1f8=_0x5af749['toString'](_0x4e23af('0xd')),_0x660404=crypto[_0x4e23af('0x3')](_0x11daf2,_0x398e92,_0x5af749,_0x5b632a);return[_0x660404,_0x4fc1f8];}function getDecipher(_0x2ce11a,_0x5a5767,_0x12ce2e,_0x51152d){const _0x566e10=_0xd7bd5b,_0x96e647=KEYLEN_MAP[_0x5a5767],_0x19c91e=typeof _0x12ce2e===_0x566e10('0x12')&&_0x12ce2e[_0x566e10('0x17')]>0x0;let _0xae57ab=null,_0x5aa481=null;if(!_0x19c91e){logger['info']('Missing\x20Initialization\x20Vector\x20in\x20the\x20encrypted\x20string.\x20Using\x20fallbacks.');const _0x24e642=createCypherFallback(_0x5a5767,_0x2ce11a);_0x5aa481=_0x24e642['iv'],_0xae57ab=_0x24e642[_0x566e10('0xc')];}const _0x421d67=_0x19c91e?Buffer[_0x566e10('0x2')](_0x12ce2e,_0x566e10('0xd')):_0x5aa481,_0x57bc80=_0x19c91e?crypto['createHash'](_0x566e10('0x1c'))['update'](String(_0x2ce11a))['digest'](_0x566e10('0xd'))[_0x566e10('0x1a')](0x0,_0x96e647):null,_0x2f5793=_0x19c91e?Buffer[_0x566e10('0x2')](_0x57bc80,'utf-8'):_0xae57ab,_0x1dbe50=crypto[_0x566e10('0x4')](_0x5a5767,_0x2f5793,_0x421d67,_0x51152d);return _0x1dbe50;}function encryptFile(_0x576fe9,_0x4f530f,_0x235388,_0x5eb710={}){return new Promise(function(_0x4f811a,_0x570b13){const _0x80fe57=a825_0x4883;_0x5eb710={...DEFAULT_FILE_OPTIONS,..._0x5eb710};const _0x422461=fs[_0x80fe57('0x10')](_0x576fe9),_0x523744=fs[_0x80fe57('0x0')](_0x4f530f),[_0x4405b9,_0x533193]=getCipherAndIvText(_0x235388,_0x5eb710[_0x80fe57('0x24')]);_0x422461['on'](_0x80fe57('0x1f'),function(){const _0x2a5ada=_0x80fe57,_0x2167da=Buffer['from'](_0x533193,_0x2a5ada('0xd')),_0x5e284c=Buffer[_0x2a5ada('0x2')](_0x5eb710[_0x2a5ada('0x18')],_0x2a5ada('0x1'));_0x523744[_0x2a5ada('0x20')](Buffer['concat']([_0x2167da,_0x5e284c],_0x2167da[_0x2a5ada('0x17')]+_0x5e284c[_0x2a5ada('0x17')]));}),_0x422461['on'](_0x80fe57('0xa'),function(_0xad629b){const _0x271c0d=_0x80fe57,_0x257e16=Buffer[_0x271c0d('0x2')](_0x4405b9['update'](_0xad629b),'binary');_0x523744[_0x271c0d('0x20')](_0x257e16);}),_0x422461['on'](_0x80fe57('0x16'),function(){const _0xcd82bd=_0x80fe57;try{const _0x242b17=Buffer[_0xcd82bd('0x2')](_0x4405b9[_0xcd82bd('0xb')]('binary'),_0xcd82bd('0x15'));_0x523744['write'](_0x242b17),_0x523744['end'](),_0x523744['on'](_0xcd82bd('0x28'),function(){_0x4f811a(_0x4f530f);});}catch(_0x26f675){fs[_0xcd82bd('0x6')](_0x4f530f,_0x2d40c8=>{_0x570b13(_0x2d40c8===null?_0x26f675:_0x2d40c8);});}});});}async function decryptFile(_0x45eaa,_0x5ce67f,_0x5805e9,_0xfb67b5={}){const _0x33ad6f=_0xd7bd5b;_0xfb67b5={...DEFAULT_FILE_OPTIONS,..._0xfb67b5};const _0x520dd7=Buffer[_0x33ad6f('0x2')](_0xfb67b5['separator'],_0x33ad6f('0x1'))[_0x33ad6f('0x17')],_0x422752=IVLEN_MAP[_0xfb67b5[_0x33ad6f('0x24')]],_0x1058fa=_0x422752+_0x520dd7,_0x123f86=await fs[_0x33ad6f('0x1b')][_0x33ad6f('0x1f')](_0x45eaa,'r'),_0x24b5cc=Buffer[_0x33ad6f('0x7')](_0x1058fa),{buffer:_0x4c4c37}=await _0x123f86[_0x33ad6f('0x2a')](_0x24b5cc,0x0,_0x1058fa),_0x261a00=_0x4c4c37[_0x33ad6f('0x1d')](0x0,_0x422752),_0x455897=_0x4c4c37['slice'](_0x422752),_0x109b69=_0x455897[_0x33ad6f('0x26')](_0x33ad6f('0x1')),_0x1e793a=_0x261a00['toString'](_0x33ad6f('0xd')),_0x13cd97=_0x109b69===_0xfb67b5['separator'];return new Promise(function(_0x4ecca3,_0xd4eb6){const _0xf821e9=_0x33ad6f,_0x11eda1=fs[_0xf821e9('0x10')](_0x45eaa,{'start':_0x13cd97?_0x1058fa:0x0,'fd':_0x123f86,'autoClose':!![]}),_0x16b41c=fs[_0xf821e9('0x0')](_0x5ce67f),_0x3261e0=getDecipher(_0x5805e9,_0xfb67b5[_0xf821e9('0x24')],_0x13cd97?_0x1e793a:null);_0x11eda1['on']('data',function(_0x2d5fd1){const _0x37704d=_0xf821e9,_0x3608ce=Buffer[_0x37704d('0x2')](_0x3261e0[_0x37704d('0x29')](_0x2d5fd1),_0x37704d('0x15'));_0x16b41c['write'](_0x3608ce);}),_0x11eda1['on']('error',_0x5eb95b=>_0xd4eb6(_0x5eb95b)),_0x11eda1['on'](_0xf821e9('0x16'),function(){const _0x162afd=_0xf821e9;try{const _0x497bda=Buffer['from'](_0x3261e0['final'](_0x162afd('0x15')),_0x162afd('0x15'));_0x16b41c[_0x162afd('0x20')](_0x497bda),_0x16b41c[_0x162afd('0x16')](),_0x16b41c['on'](_0x162afd('0x28'),function(){_0x4ecca3(_0x5ce67f);});}catch(_0xd55c19){fs[_0x162afd('0x6')](_0x5ce67f,_0x40ac38=>{_0xd4eb6(_0x40ac38===null?_0xd55c19:_0x40ac38);});}});});}function encryptString(_0x4ce9d5,_0x58dab5=DEFAULT_STRING_OPTIONS[_0xd7bd5b('0x19')],_0x433b2f=DEFAULT_STRING_OPTIONS[_0xd7bd5b('0x24')],_0x2a82d3=DEFAULT_STRING_OPTIONS['separator']){const _0x38c6ae=_0xd7bd5b;if(!_0x4ce9d5||_0x4ce9d5[_0x38c6ae('0x17')]===0x0)return _0x4ce9d5;if(!_0x58dab5||_0x58dab5['length']===0x0)throw new Error(_0x38c6ae('0x27'));const [_0x142834,_0x5e89dd]=getCipherAndIvText(_0x58dab5,_0x433b2f);let _0x21dfbd=_0x142834[_0x38c6ae('0x29')](_0x4ce9d5,'utf8',_0x38c6ae('0xd'));return _0x21dfbd+=_0x142834[_0x38c6ae('0xb')]('base64'),[_0x5e89dd,_0x21dfbd][_0x38c6ae('0x8')](_0x2a82d3);}function decryptString(_0xe9b9e5,_0x2d03ea=DEFAULT_STRING_OPTIONS['secret'],_0x1a3fd6=DEFAULT_STRING_OPTIONS[_0xd7bd5b('0x24')],_0x1b40f2=DEFAULT_STRING_OPTIONS['separator']){const _0x1c285f=_0xd7bd5b;if(!_0xe9b9e5||_0xe9b9e5[_0x1c285f('0x17')]===0x0)return _0xe9b9e5;if(!_0x2d03ea||_0x2d03ea[_0x1c285f('0x17')]===0x0)throw new Error(_0x1c285f('0x27'));const _0x4a8aa3=_0xe9b9e5[_0x1c285f('0x23')](_0x1b40f2),_0x3e6274=_0x4a8aa3[_0x1c285f('0x17')]===0x2,_0x2dbc44=_0x3e6274?_0x4a8aa3[0x1]:_0xe9b9e5,_0x178d72=getDecipher(_0x2d03ea,_0x1a3fd6,_0x3e6274?_0x4a8aa3[0x0]:undefined);let _0x2b7786=_0x178d72['update'](_0x2dbc44,_0x1c285f('0xd'),_0x1c285f('0x21'));return _0x2b7786+=_0x178d72[_0x1c285f('0xb')](_0x1c285f('0x21')),_0x2b7786;}function getValueFromLicense(_0x211eb9,_0x314a75){const _0xa57cae=_0xd7bd5b;if(_0x211eb9&&_0x314a75){if(_0x314a75[_0xa57cae('0x2b')]&&_0x314a75[_0xa57cae('0xe')]){const _0x2b006b=_0x314a75[_0xa57cae('0x2b')],_0x5e032f=_0x314a75['license'],_0x59975c=_0x2b006b[_0xa57cae('0x23')]('-')[0x4],_0x249cd1=_0x2b006b['split']('-')[0x0],_0x35ed69=[_0x59975c,_0x2b006b,_0x249cd1]['join'](':'),_0x5ac01c=getDecipher(_0x35ed69,'aes-256-ctr');let _0xb4d34e=_0x5ac01c['update'](_0x5e032f,'base64',_0xa57cae('0x21'));_0xb4d34e+=_0x5ac01c[_0xa57cae('0xb')]('utf8');const _0x7d640e=JSON[_0xa57cae('0xf')](_0xb4d34e);return typeof _0x7d640e[_0x211eb9]==='undefined'?null:_0x7d640e[_0x211eb9];}}return null;}module[_0xd7bd5b('0x22')]={'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 022ccd9..0a0316b 100644 --- a/server/components/export/csv.js +++ b/server/components/export/csv.js @@ -1 +1 @@ -const a826_0x1f3c=['num','each','AnalyticExtractedReport','inspect','CSV','length','util','to-csv','Setting','splitSizeCsv','info','split','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','%s.%s','Empty','%s\x20limit\x20%d\x20OFFSET\x20%d','%s%d.%s','analytics','dirname','mkdirSync','argv','update','rimraf','findOne','writeFileSync','sequelize','then','query','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','catch','zip-dir','../../mysqldb','Failed','format','dbH','QueryTypes','csv','SELECT','join','push','path'];(function(_0x1f39d1,_0x1f3c6e){const _0x4bca46=function(_0xcbd746){while(--_0xcbd746){_0x1f39d1['push'](_0x1f39d1['shift']());}};_0x4bca46(++_0x1f3c6e);}(a826_0x1f3c,0xa0));const a826_0x4bca=function(_0x1f39d1,_0x1f3c6e){_0x1f39d1=_0x1f39d1-0x0;let _0x4bca46=a826_0x1f3c[_0x1f39d1];return _0x4bca46;};const _0x2a6d68=a826_0x4bca;'use strict';const util=require(_0x2a6d68('0xe')),path=require(_0x2a6d68('0x7')),csv=require(_0x2a6d68('0xf')),fs=require('fs'),zipdir=require(_0x2a6d68('0x27')),rimraf=require(_0x2a6d68('0x1e')),db=require('../../mysqldb')['db'],dbH=require(_0x2a6d68('0x28'))[_0x2a6d68('0x1')],logger=require('../../config/logger')(_0x2a6d68('0x19')),EXTRACTED_REPORT_ID=Number(process[_0x2a6d68('0x1c')][0x2]),QUERY=process[_0x2a6d68('0x1c')][0x3],PATH=process[_0x2a6d68('0x1c')][0x4];function analyticExtractedReport(_0xcbd746,_0x48db8b){const _0x543d74=_0x2a6d68,_0x5d3976={'status':_0xcbd746},_0x1245dc={'where':{'id':EXTRACTED_REPORT_ID}};return _0x48db8b&&(_0x5d3976['savename']=_0x48db8b),db[_0x543d74('0xa')][_0x543d74('0x1d')](_0x5d3976,_0x1245dc);}function main(){const _0x3e2e54=_0x2a6d68;let _0xfe2b58=0x1388,_0x3a6c55;return logger[_0x3e2e54('0x12')](util[_0x3e2e54('0x0')](_0x3e2e54('0x24'),EXTRACTED_REPORT_ID,_0x3e2e54('0xc'))),db[_0x3e2e54('0x10')][_0x3e2e54('0x1f')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x3e2e54('0x13'),'splitSizeCsv']})[_0x3e2e54('0x22')](function(_0x49bdfb){const _0x4eb444=_0x3e2e54;_0x49bdfb&&(_0x3a6c55=_0x49bdfb,_0xfe2b58=_0x3a6c55[_0x4eb444('0x11')]||0x1388);})['then'](function(){const _0x5e2f10=_0x3e2e54;return dbH[_0x5e2f10('0x21')]['query'](util[_0x5e2f10('0x0')](_0x5e2f10('0x14'),QUERY),{'type':dbH[_0x5e2f10('0x21')][_0x5e2f10('0x2')][_0x5e2f10('0x4')]});})[_0x3e2e54('0x22')](function(_0x332a2e){const _0x2add59=_0x3e2e54;if(!_0x332a2e[0x0][_0x2add59('0x8')])return analyticExtractedReport(_0x2add59('0x16'));const _0x2f8701=[];let _0x1f41f7=0x0,_0x49e759=!![];if(_0x332a2e&&_0x332a2e['length']){let _0x5f5259=_0x332a2e[0x0]['num']%(_0x1f41f7+_0xfe2b58);if(_0x3a6c55[_0x2add59('0x13')])for(;_0x49e759;_0x1f41f7+=_0xfe2b58,_0x5f5259=_0x332a2e[0x0][_0x2add59('0x8')]%(_0x1f41f7+_0xfe2b58)){(_0x5f5259==0x0||_0x5f5259==_0x332a2e[0x0][_0x2add59('0x8')])&&(_0x49e759=![]),_0x2f8701[_0x2add59('0x6')](dbH[_0x2add59('0x21')]['query'](util[_0x2add59('0x0')](_0x2add59('0x17'),QUERY,_0xfe2b58,_0x1f41f7),{'type':dbH[_0x2add59('0x21')][_0x2add59('0x2')][_0x2add59('0x4')]}));}else _0x2f8701[_0x2add59('0x6')](dbH[_0x2add59('0x21')][_0x2add59('0x23')](QUERY,{'type':dbH[_0x2add59('0x21')][_0x2add59('0x2')][_0x2add59('0x4')]}));}const _0xb8bee3=path[_0x2add59('0x1a')](PATH),_0x1707c1=path['basename'](PATH,'.csv'),_0x29f451=_0x3a6c55[_0x2add59('0x13')]&&_0x2f8701[_0x2add59('0xd')]>0x1,_0xbad114=[];return!fs['existsSync'](path[_0x2add59('0x5')](_0xb8bee3,_0x1707c1))&&_0x29f451&&fs[_0x2add59('0x1b')](path['join'](_0xb8bee3,_0x1707c1)),Promise[_0x2add59('0x9')](_0x2f8701,function(_0x485a6d){const _0x49cee1=_0x2add59;_0xbad114[_0x49cee1('0x6')](_0x485a6d);})['then'](function(){const _0x3b701e=_0x2add59;for(let _0x22ebca=0x0;_0x22ebca<_0xbad114['length'];_0x22ebca+=0x1){let _0x242b5b;const _0x4cc697=_0xbad114[_0x22ebca];_0x29f451?_0x242b5b=path[_0x3b701e('0x5')](_0xb8bee3,_0x1707c1,util[_0x3b701e('0x0')](_0x3b701e('0x18'),_0x1707c1,_0x22ebca,'csv')):_0x242b5b=path[_0x3b701e('0x5')](_0xb8bee3,util[_0x3b701e('0x0')]('%s.%s',_0x1707c1,_0x3b701e('0x3'))),fs[_0x3b701e('0x20')](_0x242b5b,csv(_0x4cc697));}})[_0x2add59('0x22')](function(){const _0x15eddf=_0x2add59;_0x29f451&&(zipdir(path[_0x15eddf('0x5')](_0xb8bee3,_0x1707c1),{'saveTo':path['join'](_0xb8bee3,util[_0x15eddf('0x0')](_0x15eddf('0x15'),_0x1707c1,'zip'))},function(){}),rimraf(path[_0x15eddf('0x5')](_0xb8bee3,_0x1707c1),function(){}));})[_0x2add59('0x22')](function(){const _0xbc1c1e=_0x2add59;return logger[_0xbc1c1e('0x12')](util[_0xbc1c1e('0x0')](_0xbc1c1e('0x25'),EXTRACTED_REPORT_ID,_0xbc1c1e('0xc'))),analyticExtractedReport('Completed',_0x29f451?util[_0xbc1c1e('0x0')](_0xbc1c1e('0x15'),_0x1707c1,_0x29f451?'zip':_0xbc1c1e('0x3')):null);});})[_0x3e2e54('0x26')](function(_0x42b6ba){const _0x12339f=_0x3e2e54;return logger['info'](util[_0x12339f('0x0')]('Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,'CSV'),util[_0x12339f('0xb')](_0x42b6ba,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x12339f('0x29'));});}main(); \ No newline at end of file +const a826_0xaff6=['../../mysqldb','analytics','%s%d.%s','Completed','splitSizeCsv','format','%s\x20limit\x20%d\x20OFFSET\x20%d','%s.%s','../../config/logger','zip','sequelize','basename','.csv','query','savename','Setting','path','update','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','split','to-csv','AnalyticExtractedReport','then','CSV','QueryTypes','Empty','join','mkdirSync','info','SELECT','push','length','num','argv','Failed','catch','csv','existsSync'];(function(_0x4fab7b,_0xaff6bf){const _0x5abeed=function(_0x1057b2){while(--_0x1057b2){_0x4fab7b['push'](_0x4fab7b['shift']());}};_0x5abeed(++_0xaff6bf);}(a826_0xaff6,0xbc));const a826_0x5abe=function(_0x4fab7b,_0xaff6bf){_0x4fab7b=_0x4fab7b-0x0;let _0x5abeed=a826_0xaff6[_0x4fab7b];return _0x5abeed;};const _0x543740=a826_0x5abe;'use strict';const util=require('util'),path=require(_0x543740('0x12')),csv=require(_0x543740('0x16')),fs=require('fs'),zipdir=require('zip-dir'),rimraf=require('rimraf'),db=require(_0x543740('0x2'))['db'],dbH=require(_0x543740('0x2'))['dbH'],logger=require(_0x543740('0xa'))(_0x543740('0x3')),EXTRACTED_REPORT_ID=Number(process['argv'][0x2]),QUERY=process[_0x543740('0x23')][0x3],PATH=process[_0x543740('0x23')][0x4];function analyticExtractedReport(_0x1057b2,_0x49fd75){const _0x3d379a=_0x543740,_0x6e849f={'status':_0x1057b2},_0x8f514c={'where':{'id':EXTRACTED_REPORT_ID}};return _0x49fd75&&(_0x6e849f[_0x3d379a('0x10')]=_0x49fd75),db[_0x3d379a('0x17')][_0x3d379a('0x13')](_0x6e849f,_0x8f514c);}function main(){const _0x2c3767=_0x543740;let _0x2aa9c3=0x1388,_0x2c800f;return logger[_0x2c3767('0x1e')](util['format']('Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,_0x2c3767('0x19'))),db[_0x2c3767('0x11')]['findOne']({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x2c3767('0x15'),_0x2c3767('0x6')]})[_0x2c3767('0x18')](function(_0x663b06){const _0xbece0b=_0x2c3767;_0x663b06&&(_0x2c800f=_0x663b06,_0x2aa9c3=_0x2c800f[_0xbece0b('0x6')]||0x1388);})[_0x2c3767('0x18')](function(){const _0x5531ff=_0x2c3767;return dbH['sequelize'][_0x5531ff('0xf')](util[_0x5531ff('0x7')](_0x5531ff('0x14'),QUERY),{'type':dbH[_0x5531ff('0xc')][_0x5531ff('0x1a')][_0x5531ff('0x1f')]});})[_0x2c3767('0x18')](function(_0x408647){const _0x7ab4c5=_0x2c3767;if(!_0x408647[0x0][_0x7ab4c5('0x22')])return analyticExtractedReport(_0x7ab4c5('0x1b'));const _0x1c1a18=[];let _0x42ff03=0x0,_0x16122d=!![];if(_0x408647&&_0x408647[_0x7ab4c5('0x21')]){let _0x29d5c4=_0x408647[0x0][_0x7ab4c5('0x22')]%(_0x42ff03+_0x2aa9c3);if(_0x2c800f[_0x7ab4c5('0x15')])for(;_0x16122d;_0x42ff03+=_0x2aa9c3,_0x29d5c4=_0x408647[0x0]['num']%(_0x42ff03+_0x2aa9c3)){(_0x29d5c4==0x0||_0x29d5c4==_0x408647[0x0]['num'])&&(_0x16122d=![]),_0x1c1a18[_0x7ab4c5('0x20')](dbH['sequelize'][_0x7ab4c5('0xf')](util[_0x7ab4c5('0x7')](_0x7ab4c5('0x8'),QUERY,_0x2aa9c3,_0x42ff03),{'type':dbH[_0x7ab4c5('0xc')][_0x7ab4c5('0x1a')]['SELECT']}));}else _0x1c1a18['push'](dbH[_0x7ab4c5('0xc')][_0x7ab4c5('0xf')](QUERY,{'type':dbH[_0x7ab4c5('0xc')][_0x7ab4c5('0x1a')][_0x7ab4c5('0x1f')]}));}const _0x220473=path['dirname'](PATH),_0x4e6bd3=path[_0x7ab4c5('0xd')](PATH,_0x7ab4c5('0xe')),_0x125450=_0x2c800f[_0x7ab4c5('0x15')]&&_0x1c1a18[_0x7ab4c5('0x21')]>0x1,_0x48c6b9=[];return!fs[_0x7ab4c5('0x1')](path[_0x7ab4c5('0x1c')](_0x220473,_0x4e6bd3))&&_0x125450&&fs[_0x7ab4c5('0x1d')](path[_0x7ab4c5('0x1c')](_0x220473,_0x4e6bd3)),Promise['each'](_0x1c1a18,function(_0x528fbd){const _0x4af9a9=_0x7ab4c5;_0x48c6b9[_0x4af9a9('0x20')](_0x528fbd);})[_0x7ab4c5('0x18')](function(){const _0x4792ef=_0x7ab4c5;for(let _0x5d12ac=0x0;_0x5d12ac<_0x48c6b9[_0x4792ef('0x21')];_0x5d12ac+=0x1){let _0x2c2d22;const _0x16e3c9=_0x48c6b9[_0x5d12ac];_0x125450?_0x2c2d22=path[_0x4792ef('0x1c')](_0x220473,_0x4e6bd3,util[_0x4792ef('0x7')](_0x4792ef('0x4'),_0x4e6bd3,_0x5d12ac,_0x4792ef('0x0'))):_0x2c2d22=path[_0x4792ef('0x1c')](_0x220473,util[_0x4792ef('0x7')]('%s.%s',_0x4e6bd3,_0x4792ef('0x0'))),fs['writeFileSync'](_0x2c2d22,csv(_0x16e3c9));}})[_0x7ab4c5('0x18')](function(){const _0x461f25=_0x7ab4c5;_0x125450&&(zipdir(path[_0x461f25('0x1c')](_0x220473,_0x4e6bd3),{'saveTo':path[_0x461f25('0x1c')](_0x220473,util['format'](_0x461f25('0x9'),_0x4e6bd3,_0x461f25('0xb')))},function(){}),rimraf(path[_0x461f25('0x1c')](_0x220473,_0x4e6bd3),function(){}));})[_0x7ab4c5('0x18')](function(){const _0x2d89fe=_0x7ab4c5;return logger[_0x2d89fe('0x1e')](util[_0x2d89fe('0x7')]('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,_0x2d89fe('0x19'))),analyticExtractedReport(_0x2d89fe('0x5'),_0x125450?util[_0x2d89fe('0x7')](_0x2d89fe('0x9'),_0x4e6bd3,_0x125450?_0x2d89fe('0xb'):_0x2d89fe('0x0')):null);});})[_0x2c3767('0x25')](function(_0x3cc94e){const _0x43da52=_0x2c3767;return logger['info'](util[_0x43da52('0x7')]('Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format',EXTRACTED_REPORT_ID,_0x43da52('0x19')),util['inspect'](_0x3cc94e,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x43da52('0x24'));});}main(); \ No newline at end of file diff --git a/server/components/export/pdf.js b/server/components/export/pdf.js index dad181c..b39536d 100644 --- a/server/components/export/pdf.js +++ b/server/components/export/pdf.js @@ -1 +1 @@ -const a827_0x2012=['zip','MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a','SELECT','path','Empty','update','Failed','%s\x20limit\x20%d\x20OFFSET\x20%d','endDate','pdf','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','createPdfKitDocument','info','finish','argv','existsSync','tableHeader','toString','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','join','content','PDF','dbH','mkdirSync','name','sequelize','analytics','format','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','err','undefined','each','splitSizePdf','pipe','AnalyticExtractedReport','basename','/fonts/Roboto-Regular.ttf','black','log','QueryTypes','split','body','num','pdfmake/src/printer','zip-dir','util','landscape','end','/fonts/Roboto-MediumItalic.ttf','../../mysqldb','inspect','then','/fonts/Roboto-Medium.ttf','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','query','findOne','error','header','%s.%s','Completed','length','Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s','push','lodash','startDate','/fonts/Roboto-Italic.ttf'];(function(_0x13a3d9,_0x201297){const _0x3c701c=function(_0x459937){while(--_0x459937){_0x13a3d9['push'](_0x13a3d9['shift']());}};_0x3c701c(++_0x201297);}(a827_0x2012,0xa5));const a827_0x3c70=function(_0x13a3d9,_0x201297){_0x13a3d9=_0x13a3d9-0x0;let _0x3c701c=a827_0x2012[_0x13a3d9];return _0x3c701c;};const _0x52eabd=a827_0x3c70;'use strict';const _=require(_0x52eabd('0x1e')),fs=require('fs'),util=require(_0x52eabd('0xc')),path=require(_0x52eabd('0x24')),moment=require('moment'),PdfPrinter=require(_0x52eabd('0xa')),zipdir=require(_0x52eabd('0xb')),rimraf=require('rimraf'),db=require(_0x52eabd('0x10'))['db'],dbH=require('../../mysqldb')[_0x52eabd('0x37')],logger=require('../../config/logger')(_0x52eabd('0x3b')),EXTRACTED_REPORT_ID=Number(process[_0x52eabd('0x2f')][0x2]),QUERY=process[_0x52eabd('0x2f')][0x3],PATH=process[_0x52eabd('0x2f')][0x4],NAME=process[_0x52eabd('0x2f')][0x5],FORMAT=_0x52eabd('0x22');let _extractedReport;function analyticExtractedReport(_0x459937,_0xee6674){const _0x4235b8=_0x52eabd,_0x555356={'status':_0x459937},_0xa81283={'where':{'id':EXTRACTED_REPORT_ID}};return _0xee6674&&(_0x555356['savename']=_0xee6674),db[_0x4235b8('0x1')][_0x4235b8('0x26')](_0x555356,_0xa81283);}function getHeader(_0x964ce4){const _0x5f0813=_0x52eabd,_0x12ae74=[];for(const _0x1edab4 in _0x964ce4){typeof _0x964ce4[_0x1edab4]!==_0x5f0813('0x3f')&&_0x12ae74[_0x5f0813('0x1d')]({'text':_0x1edab4,'style':_0x5f0813('0x31')});}return _0x12ae74;}function extractReport(_0x591777){const _0x323865=_0x52eabd;let _0x11efcb=0x1388,_0x3373dc;if(!_0x591777[0x0][_0x323865('0x9')])return analyticExtractedReport(_0x323865('0x25'));const _0x6feba=[];let _0x5d711e=0x0,_0x204724=!![];const _0x1ee5ff=path['dirname'](PATH),_0xd2a754=path[_0x323865('0x2')](PATH,'.pdf');let _0x2ccea4=![];const _0xc5f4ba=[];return db['Setting'][_0x323865('0x16')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x323865('0x7'),_0x323865('0x41')]})[_0x323865('0x12')](function(_0x39c38d){_0x39c38d&&(_0x3373dc=_0x39c38d,_0x11efcb=_0x3373dc['splitSizePdf']||0x3e8);})['then'](function(){const _0x10097a=_0x323865;if(_0x591777&&_0x591777['length']){let _0x303253=_0x591777[0x0][_0x10097a('0x9')]%(_0x5d711e+_0x11efcb);if(_0x3373dc[_0x10097a('0x7')])for(;_0x204724;_0x5d711e+=_0x11efcb,_0x303253=_0x591777[0x0][_0x10097a('0x9')]%(_0x5d711e+_0x11efcb)){(_0x303253==0x0||_0x303253==_0x591777[0x0][_0x10097a('0x9')])&&(_0x204724=![]),_0x6feba['push'](dbH[_0x10097a('0x3a')]['query'](util[_0x10097a('0x3c')](_0x10097a('0x28'),QUERY,_0x11efcb,_0x5d711e),{'type':dbH[_0x10097a('0x3a')][_0x10097a('0x6')][_0x10097a('0x23')]}));}else _0x6feba['push'](dbH[_0x10097a('0x3a')][_0x10097a('0x15')](QUERY,{'type':dbH[_0x10097a('0x3a')]['QueryTypes'][_0x10097a('0x23')]}));}return _0x2ccea4=_0x3373dc[_0x10097a('0x7')]&&_0x6feba['length']>0x1,!fs[_0x10097a('0x30')](path[_0x10097a('0x34')](_0x1ee5ff,_0xd2a754))&&_0x2ccea4&&fs[_0x10097a('0x38')](path[_0x10097a('0x34')](_0x1ee5ff,_0xd2a754)),Promise[_0x10097a('0x40')](_0x6feba,function(_0x184792){const _0x398ecd=_0x10097a;_0xc5f4ba[_0x398ecd('0x1d')](_0x184792);});})[_0x323865('0x12')](function(){const _0x5f38e2=_0x323865;return Promise[_0x5f38e2('0x40')](_0x6feba,function(_0x3c61ed,_0x79f591){const _0x63f905=_0x5f38e2;let _0x590db6;const _0x4fca3f=util[_0x63f905('0x3c')](_0x63f905('0x1c'),NAME,_extractedReport[_0x63f905('0x39')],moment(_extractedReport[_0x63f905('0x1f')])[_0x63f905('0x3c')](FORMAT),moment(_extractedReport[_0x63f905('0x29')])[_0x63f905('0x3c')](FORMAT)),_0xa1f76={'pageSize':'A4','pageOrientation':_0x63f905('0xd'),'content':[{'text':_0x4fca3f,'style':_0x63f905('0x18')}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':_0x63f905('0x4')}}},_0x44cbf3={'headerRows':0x1,'body':[]};_0x44cbf3[_0x63f905('0x8')]['push'](getHeader(_0x3c61ed[0x0]));let _0x4af184;for(let _0x1c1c44=0x0;_0x1c1c44<_0x3c61ed[_0x63f905('0x1b')];_0x1c1c44+=0x1){_0x4af184=[];for(const _0x1310ff in _0x3c61ed[_0x1c1c44]){typeof _0x3c61ed[_0x1c1c44][_0x1310ff]!==_0x63f905('0x3f')&&_0x4af184['push'](_0x3c61ed[_0x1c1c44][_0x1310ff]?_[_0x63f905('0x32')](_0x3c61ed[_0x1c1c44][_0x1310ff]):'');}_0x44cbf3[_0x63f905('0x8')][_0x63f905('0x1d')](_0x4af184);}return _0xa1f76[_0x63f905('0x35')][_0x63f905('0x1d')]({'table':_0x44cbf3}),new Promise(function(_0x520450,_0xc2cf66){const _0x133176=_0x63f905,_0x53181d=new PdfPrinter({'Roboto':{'normal':__dirname+_0x133176('0x3'),'bold':__dirname+_0x133176('0x13'),'italics':__dirname+_0x133176('0x20'),'bolditalics':__dirname+_0x133176('0xf')}}),_0xde9ede=_0x53181d[_0x133176('0x2c')](_0xa1f76);_0x2ccea4?_0x590db6=path['join'](_0x1ee5ff,_0xd2a754,util['format']('%s%d.%s',_0xd2a754,_0x79f591,'pdf')):_0x590db6=path[_0x133176('0x34')](_0x1ee5ff,util['format'](_0x133176('0x19'),_0xd2a754,_0x133176('0x2a')));const _0x540a60=_0xde9ede[_0x133176('0x0')](fs['createWriteStream'](_0x590db6));_0x540a60['on'](_0x133176('0x2e'),function(){_0x520450();}),_0x540a60['on'](_0x133176('0x17'),function(_0x24932b){const _0x43c13b=_0x133176;console[_0x43c13b('0x5')](_0x43c13b('0x3e'),_0x24932b),_0xc2cf66(_0x24932b);}),_0xde9ede[_0x133176('0xe')]();});});})[_0x323865('0x12')](function(){if(_0x2ccea4)return new Promise(function(_0x1deaed,_0x440862){const _0x369562=a827_0x3c70;zipdir(path['join'](_0x1ee5ff,_0xd2a754),{'saveTo':path['join'](_0x1ee5ff,util[_0x369562('0x3c')](_0x369562('0x19'),_0xd2a754,_0x369562('0x21')))},function(_0x27385e){_0x27385e?_0x440862(_0x27385e):_0x1deaed();});});})[_0x323865('0x12')](function(){const _0x528b00=_0x323865;_0x2ccea4&&rimraf(path[_0x528b00('0x34')](_0x1ee5ff,_0xd2a754),function(){});})[_0x323865('0x12')](function(){const _0x4efae5=_0x323865;return logger[_0x4efae5('0x2d')](util[_0x4efae5('0x3c')](_0x4efae5('0x33'),EXTRACTED_REPORT_ID,'CSV')),analyticExtractedReport(_0x4efae5('0x1a'),_0x2ccea4?util['format'](_0x4efae5('0x19'),_0xd2a754,_0x2ccea4?'zip':_0x4efae5('0x2a')):null);});}function main(){const _0x3589d9=_0x52eabd;return logger[_0x3589d9('0x2d')](util[_0x3589d9('0x3c')](_0x3589d9('0x3d'),EXTRACTED_REPORT_ID,_0x3589d9('0x36'))),db['AnalyticExtractedReport'][_0x3589d9('0x16')]({'where':{'id':EXTRACTED_REPORT_ID}})[_0x3589d9('0x12')](function(_0x505747){const _0x1c351c=_0x3589d9;return _extractedReport=_0x505747,dbH[_0x1c351c('0x3a')][_0x1c351c('0x15')](util['format'](_0x1c351c('0x14'),QUERY),{'type':dbH[_0x1c351c('0x3a')][_0x1c351c('0x6')][_0x1c351c('0x23')]});})['then'](extractReport)['catch'](function(_0x4690a8){const _0x5e4a91=_0x3589d9;return logger[_0x5e4a91('0x2d')](util[_0x5e4a91('0x3c')](_0x5e4a91('0x2b'),EXTRACTED_REPORT_ID,_0x5e4a91('0x36')),util[_0x5e4a91('0x11')](_0x4690a8,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x5e4a91('0x27'));});}main(); \ No newline at end of file +const a827_0x16e5=['MMMM\x20Do\x20YYYY,\x20h:mm:ss\x20a','existsSync','length','%s\x20limit\x20%d\x20OFFSET\x20%d','push','QueryTypes','catch','/fonts/Roboto-Italic.ttf','header','endDate','../../mysqldb','each','startDate','landscape','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','%s%d.%s','Setting','finish','toString','join','zip','undefined','path','info','analytics','num','tableHeader','split','argv','/fonts/Roboto-MediumItalic.ttf','end','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','createPdfKitDocument','name','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','format','black','sequelize','findOne','AnalyticExtractedReport','Empty','PDF','splitSizePdf','SELECT','body','moment','%s.%s','mkdirSync','update','error','then','util','lodash','pdf','basename','SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t','query'];(function(_0x54b766,_0x16e594){const _0x3420e2=function(_0x53d33a){while(--_0x53d33a){_0x54b766['push'](_0x54b766['shift']());}};_0x3420e2(++_0x16e594);}(a827_0x16e5,0x1be));const a827_0x3420=function(_0x54b766,_0x16e594){_0x54b766=_0x54b766-0x0;let _0x3420e2=a827_0x16e5[_0x54b766];return _0x3420e2;};const _0x2a587e=a827_0x3420;'use strict';const _=require(_0x2a587e('0x5')),fs=require('fs'),util=require(_0x2a587e('0x4')),path=require(_0x2a587e('0x20')),moment=require(_0x2a587e('0x37')),PdfPrinter=require('pdfmake/src/printer'),zipdir=require('zip-dir'),rimraf=require('rimraf'),db=require(_0x2a587e('0x14'))['db'],dbH=require(_0x2a587e('0x14'))['dbH'],logger=require('../../config/logger')(_0x2a587e('0x22')),EXTRACTED_REPORT_ID=Number(process[_0x2a587e('0x26')][0x2]),QUERY=process['argv'][0x3],PATH=process[_0x2a587e('0x26')][0x4],NAME=process['argv'][0x5],FORMAT=_0x2a587e('0xa');let _extractedReport;function analyticExtractedReport(_0x53d33a,_0x30937e){const _0x46333c=_0x2a587e,_0x138750={'status':_0x53d33a},_0x227f2a={'where':{'id':EXTRACTED_REPORT_ID}};return _0x30937e&&(_0x138750['savename']=_0x30937e),db[_0x46333c('0x31')][_0x46333c('0x1')](_0x138750,_0x227f2a);}function getHeader(_0x100355){const _0x437831=_0x2a587e,_0x3ea8aa=[];for(const _0x3e8e0c in _0x100355){typeof _0x100355[_0x3e8e0c]!==_0x437831('0x1f')&&_0x3ea8aa[_0x437831('0xe')]({'text':_0x3e8e0c,'style':_0x437831('0x24')});}return _0x3ea8aa;}function extractReport(_0xa99e6f){const _0x58fe0d=_0x2a587e;let _0x1bdb7f=0x1388,_0x2745f9;if(!_0xa99e6f[0x0][_0x58fe0d('0x23')])return analyticExtractedReport(_0x58fe0d('0x32'));const _0x3645f6=[];let _0x238e33=0x0,_0x3334e6=!![];const _0x89df80=path['dirname'](PATH),_0x416fdb=path[_0x58fe0d('0x7')](PATH,'.pdf');let _0x1ccc93=![];const _0x1af516=[];return db[_0x58fe0d('0x1a')][_0x58fe0d('0x30')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x58fe0d('0x25'),_0x58fe0d('0x34')]})[_0x58fe0d('0x3')](function(_0x344b7b){const _0x30b9fe=_0x58fe0d;_0x344b7b&&(_0x2745f9=_0x344b7b,_0x1bdb7f=_0x2745f9[_0x30b9fe('0x34')]||0x3e8);})[_0x58fe0d('0x3')](function(){const _0x1bb377=_0x58fe0d;if(_0xa99e6f&&_0xa99e6f[_0x1bb377('0xc')]){let _0xfa8651=_0xa99e6f[0x0][_0x1bb377('0x23')]%(_0x238e33+_0x1bdb7f);if(_0x2745f9['split'])for(;_0x3334e6;_0x238e33+=_0x1bdb7f,_0xfa8651=_0xa99e6f[0x0][_0x1bb377('0x23')]%(_0x238e33+_0x1bdb7f)){(_0xfa8651==0x0||_0xfa8651==_0xa99e6f[0x0][_0x1bb377('0x23')])&&(_0x3334e6=![]),_0x3645f6[_0x1bb377('0xe')](dbH[_0x1bb377('0x2f')][_0x1bb377('0x9')](util[_0x1bb377('0x2d')](_0x1bb377('0xd'),QUERY,_0x1bdb7f,_0x238e33),{'type':dbH[_0x1bb377('0x2f')][_0x1bb377('0xf')][_0x1bb377('0x35')]}));}else _0x3645f6[_0x1bb377('0xe')](dbH[_0x1bb377('0x2f')][_0x1bb377('0x9')](QUERY,{'type':dbH[_0x1bb377('0x2f')][_0x1bb377('0xf')][_0x1bb377('0x35')]}));}return _0x1ccc93=_0x2745f9[_0x1bb377('0x25')]&&_0x3645f6[_0x1bb377('0xc')]>0x1,!fs[_0x1bb377('0xb')](path['join'](_0x89df80,_0x416fdb))&&_0x1ccc93&&fs[_0x1bb377('0x0')](path[_0x1bb377('0x1d')](_0x89df80,_0x416fdb)),Promise[_0x1bb377('0x15')](_0x3645f6,function(_0x32d3e2){const _0x453348=_0x1bb377;_0x1af516[_0x453348('0xe')](_0x32d3e2);});})['then'](function(){const _0x3b527a=_0x58fe0d;return Promise[_0x3b527a('0x15')](_0x3645f6,function(_0x37cac4,_0x34b2ff){const _0x39ac20=_0x3b527a;let _0x3d0459;const _0x1e5252=util[_0x39ac20('0x2d')]('Name:\x20%s\x0aReport:\x20%s\x0aFrom:\x20%s\x20To:\x20%s',NAME,_extractedReport[_0x39ac20('0x2b')],moment(_extractedReport[_0x39ac20('0x16')])[_0x39ac20('0x2d')](FORMAT),moment(_extractedReport[_0x39ac20('0x13')])[_0x39ac20('0x2d')](FORMAT)),_0x496b20={'pageSize':'A4','pageOrientation':_0x39ac20('0x17'),'content':[{'text':_0x1e5252,'style':_0x39ac20('0x12')}],'styles':{'header':{'fontSize':0x12,'bold':!![],'margin':[0x0,0x0,0x0,0xa]},'tableHeader':{'bold':!![],'fontSize':0xd,'color':_0x39ac20('0x2e')}}},_0x24bbb7={'headerRows':0x1,'body':[]};_0x24bbb7[_0x39ac20('0x36')][_0x39ac20('0xe')](getHeader(_0x37cac4[0x0]));let _0x28ba70;for(let _0xe94945=0x0;_0xe94945<_0x37cac4[_0x39ac20('0xc')];_0xe94945+=0x1){_0x28ba70=[];for(const _0x631f28 in _0x37cac4[_0xe94945]){typeof _0x37cac4[_0xe94945][_0x631f28]!==_0x39ac20('0x1f')&&_0x28ba70[_0x39ac20('0xe')](_0x37cac4[_0xe94945][_0x631f28]?_[_0x39ac20('0x1c')](_0x37cac4[_0xe94945][_0x631f28]):'');}_0x24bbb7[_0x39ac20('0x36')]['push'](_0x28ba70);}return _0x496b20['content']['push']({'table':_0x24bbb7}),new Promise(function(_0x3f38b9,_0x1c4b86){const _0x2c3211=_0x39ac20,_0x38452d=new PdfPrinter({'Roboto':{'normal':__dirname+'/fonts/Roboto-Regular.ttf','bold':__dirname+'/fonts/Roboto-Medium.ttf','italics':__dirname+_0x2c3211('0x11'),'bolditalics':__dirname+_0x2c3211('0x27')}}),_0x540886=_0x38452d[_0x2c3211('0x2a')](_0x496b20);_0x1ccc93?_0x3d0459=path[_0x2c3211('0x1d')](_0x89df80,_0x416fdb,util['format'](_0x2c3211('0x19'),_0x416fdb,_0x34b2ff,_0x2c3211('0x6'))):_0x3d0459=path[_0x2c3211('0x1d')](_0x89df80,util[_0x2c3211('0x2d')](_0x2c3211('0x38'),_0x416fdb,'pdf'));const _0x38f699=_0x540886['pipe'](fs['createWriteStream'](_0x3d0459));_0x38f699['on'](_0x2c3211('0x1b'),function(){_0x3f38b9();}),_0x38f699['on'](_0x2c3211('0x2'),function(_0x22a1c5){console['log']('err',_0x22a1c5),_0x1c4b86(_0x22a1c5);}),_0x540886[_0x2c3211('0x28')]();});});})['then'](function(){if(_0x1ccc93)return new Promise(function(_0x155be8,_0x4e903c){const _0x2fde06=a827_0x3420;zipdir(path[_0x2fde06('0x1d')](_0x89df80,_0x416fdb),{'saveTo':path[_0x2fde06('0x1d')](_0x89df80,util['format']('%s.%s',_0x416fdb,_0x2fde06('0x1e')))},function(_0x5ddd1a){_0x5ddd1a?_0x4e903c(_0x5ddd1a):_0x155be8();});});})['then'](function(){const _0x55d172=_0x58fe0d;_0x1ccc93&&rimraf(path[_0x55d172('0x1d')](_0x89df80,_0x416fdb),function(){});})[_0x58fe0d('0x3')](function(){const _0x597b25=_0x58fe0d;return logger[_0x597b25('0x21')](util[_0x597b25('0x2d')](_0x597b25('0x2c'),EXTRACTED_REPORT_ID,'CSV')),analyticExtractedReport('Completed',_0x1ccc93?util[_0x597b25('0x2d')](_0x597b25('0x38'),_0x416fdb,_0x1ccc93?_0x597b25('0x1e'):'pdf'):null);});}function main(){const _0x512301=_0x2a587e;return logger[_0x512301('0x21')](util['format'](_0x512301('0x29'),EXTRACTED_REPORT_ID,_0x512301('0x33'))),db[_0x512301('0x31')]['findOne']({'where':{'id':EXTRACTED_REPORT_ID}})[_0x512301('0x3')](function(_0x100867){const _0x4252a2=_0x512301;return _extractedReport=_0x100867,dbH[_0x4252a2('0x2f')][_0x4252a2('0x9')](util[_0x4252a2('0x2d')](_0x4252a2('0x8'),QUERY),{'type':dbH[_0x4252a2('0x2f')][_0x4252a2('0xf')][_0x4252a2('0x35')]});})[_0x512301('0x3')](extractReport)[_0x512301('0x10')](function(_0x103a0e){const _0x59170d=_0x512301;return logger[_0x59170d('0x21')](util[_0x59170d('0x2d')](_0x59170d('0x18'),EXTRACTED_REPORT_ID,_0x59170d('0x33')),util['inspect'](_0x103a0e,{'showHidden':![],'depth':null})),analyticExtractedReport('Failed');});}main(); \ No newline at end of file diff --git a/server/components/export/xlsx.js b/server/components/export/xlsx.js index 3ee6b5b..dfbbacb 100644 --- a/server/components/export/xlsx.js +++ b/server/components/export/xlsx.js @@ -1 +1 @@ -const a828_0x51df=['update','query','writeFileSync','%s.%s','splitSizeXlsx','zip','argv','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','split','info','each','json2xls','sequelize','path','num','dirname','XLSX','then','findOne','length','xlsx','SELECT','push','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','../../mysqldb','format','../../config/logger','basename','catch','Empty','QueryTypes','Failed','util','Setting','rimraf','zip-dir','AnalyticExtractedReport','join','analytics','binary','savename','inspect','.xlsx'];(function(_0x58dc17,_0x51dfff){const _0x7b4a4d=function(_0xd512ab){while(--_0xd512ab){_0x58dc17['push'](_0x58dc17['shift']());}};_0x7b4a4d(++_0x51dfff);}(a828_0x51df,0x19e));const a828_0x7b4a=function(_0x58dc17,_0x51dfff){_0x58dc17=_0x58dc17-0x0;let _0x7b4a4d=a828_0x51df[_0x58dc17];return _0x7b4a4d;};const _0x53024c=a828_0x7b4a;'use strict';const util=require(_0x53024c('0x5')),path=require(_0x53024c('0x1d')),fs=require('fs'),json2xls=require(_0x53024c('0x1b')),zipdir=require(_0x53024c('0x8')),rimraf=require(_0x53024c('0x7')),db=require(_0x53024c('0x28'))['db'],dbH=require(_0x53024c('0x28'))['dbH'],logger=require(_0x53024c('0x2a'))(_0x53024c('0xb')),EXTRACTED_REPORT_ID=Number(process[_0x53024c('0x16')][0x2]),QUERY=process['argv'][0x3],PATH=process[_0x53024c('0x16')][0x4];function analyticExtractedReport(_0xd512ab,_0x52508a){const _0x27bcb7=_0x53024c,_0x2656f3={'status':_0xd512ab},_0x34e367={'where':{'id':EXTRACTED_REPORT_ID}};return _0x52508a&&(_0x2656f3[_0x27bcb7('0xd')]=_0x52508a),db[_0x27bcb7('0x9')][_0x27bcb7('0x10')](_0x2656f3,_0x34e367);}function main(){const _0x5034bd=_0x53024c;let _0x389609=0x1388,_0x4df3ff;return logger[_0x5034bd('0x19')](util['format'](_0x5034bd('0x17'),EXTRACTED_REPORT_ID,'XLSX')),db[_0x5034bd('0x6')][_0x5034bd('0x22')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x5034bd('0x18'),_0x5034bd('0x14')]})[_0x5034bd('0x21')](function(_0x1fc4e1){const _0x1ccf1d=_0x5034bd;_0x1fc4e1&&(_0x4df3ff=_0x1fc4e1,_0x389609=_0x4df3ff[_0x1ccf1d('0x14')]||0x1388);})[_0x5034bd('0x21')](function(){const _0x563f15=_0x5034bd;return dbH[_0x563f15('0x1c')][_0x563f15('0x11')](util[_0x563f15('0x29')]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH[_0x563f15('0x1c')][_0x563f15('0x3')][_0x563f15('0x25')]});})[_0x5034bd('0x21')](function(_0x3817f9){const _0x3443c9=_0x5034bd;if(!_0x3817f9[0x0][_0x3443c9('0x1e')])return analyticExtractedReport(_0x3443c9('0x2'));const _0x3a7287=[];let _0x268671=0x0,_0x31a11a=!![];if(_0x4df3ff[_0x3443c9('0x18')]){if(_0x3817f9&&_0x3817f9[_0x3443c9('0x23')]){let _0x3a5b52=_0x3817f9[0x0]['num']%(_0x268671+_0x389609);for(;_0x31a11a;_0x268671+=_0x389609,_0x3a5b52=_0x3817f9[0x0][_0x3443c9('0x1e')]%(_0x268671+_0x389609)){(_0x3a5b52==0x0||_0x3a5b52==_0x3817f9[0x0][_0x3443c9('0x1e')])&&(_0x31a11a=![]),_0x3a7287['push'](dbH[_0x3443c9('0x1c')][_0x3443c9('0x11')](util['format']('%s\x20limit\x20%d\x20OFFSET\x20%d',QUERY,_0x389609,_0x268671),{'type':dbH['sequelize'][_0x3443c9('0x3')]['SELECT']}));}}}else _0x3a7287[_0x3443c9('0x26')](dbH[_0x3443c9('0x1c')][_0x3443c9('0x11')](QUERY,{'type':dbH['sequelize'][_0x3443c9('0x3')][_0x3443c9('0x25')]}));const _0x3a720e=path[_0x3443c9('0x1f')](PATH),_0x2e2eff=path[_0x3443c9('0x0')](PATH,_0x3443c9('0xf')),_0x372c86=_0x4df3ff[_0x3443c9('0x18')]&&_0x3a7287['length']>0x1,_0x96afe=[];return!fs['existsSync'](path[_0x3443c9('0xa')](_0x3a720e,_0x2e2eff))&&_0x372c86&&fs['mkdirSync'](path[_0x3443c9('0xa')](_0x3a720e,_0x2e2eff)),Promise[_0x3443c9('0x1a')](_0x3a7287,function(_0x37d878){const _0x52af37=_0x3443c9;_0x96afe[_0x52af37('0x26')](_0x37d878);})[_0x3443c9('0x21')](function(){const _0x5d1357=_0x3443c9;for(let _0x1eb6ff=0x0;_0x1eb6ff<_0x96afe[_0x5d1357('0x23')];_0x1eb6ff+=0x1){let _0x432b48;const _0x3c58e4=_0x96afe[_0x1eb6ff];_0x372c86?_0x432b48=path[_0x5d1357('0xa')](_0x3a720e,_0x2e2eff,util['format']('%s%d.%s',_0x2e2eff,_0x1eb6ff,_0x5d1357('0x24'))):_0x432b48=path[_0x5d1357('0xa')](_0x3a720e,util[_0x5d1357('0x29')]('%s.%s',_0x2e2eff,_0x5d1357('0x24'))),fs[_0x5d1357('0x12')](_0x432b48,json2xls(_0x3c58e4),_0x5d1357('0xc'));}})[_0x3443c9('0x21')](function(){const _0x51729a=_0x3443c9;_0x372c86&&(zipdir(path[_0x51729a('0xa')](_0x3a720e,_0x2e2eff),{'saveTo':path[_0x51729a('0xa')](_0x3a720e,util[_0x51729a('0x29')](_0x51729a('0x13'),_0x2e2eff,_0x51729a('0x15')))},function(){}),rimraf(path['join'](_0x3a720e,_0x2e2eff),function(){}));})['then'](function(){const _0x4a6d45=_0x3443c9;return logger[_0x4a6d45('0x19')](util['format']('Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed',EXTRACTED_REPORT_ID,_0x4a6d45('0x20'))),analyticExtractedReport('Completed',_0x372c86?util[_0x4a6d45('0x29')]('%s.%s',_0x2e2eff,_0x372c86?_0x4a6d45('0x15'):_0x4a6d45('0x24')):null);});})[_0x5034bd('0x1')](function(_0x42a73d){const _0x304a30=_0x5034bd;return logger[_0x304a30('0x19')](util['format'](_0x304a30('0x27'),EXTRACTED_REPORT_ID,_0x304a30('0x20')),util[_0x304a30('0xe')](_0x42a73d,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x304a30('0x4'));});}main(); \ No newline at end of file +const a828_0x4b3b=['query','split','rimraf','%s\x20limit\x20%d\x20OFFSET\x20%d','inspect','update','../../config/logger','splitSizeXlsx','then','zip','Start\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','Extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format\x20completed','catch','Error\x20during\x20extraction\x20report\x20with\x20id\x20%d\x20in\x20%s\x20format','binary','sequelize','existsSync','basename','zip-dir','join','util','writeFileSync','path','push','../../mysqldb','dbH','.xlsx','num','QueryTypes','xlsx','Failed','info','length','dirname','%s.%s','XLSX','argv','findOne','json2xls','savename','format'];(function(_0x193495,_0x4b3b59){const _0x1badaa=function(_0x3024ae){while(--_0x3024ae){_0x193495['push'](_0x193495['shift']());}};_0x1badaa(++_0x4b3b59);}(a828_0x4b3b,0x1d3));const a828_0x1bad=function(_0x193495,_0x4b3b59){_0x193495=_0x193495-0x0;let _0x1badaa=a828_0x4b3b[_0x193495];return _0x1badaa;};const _0x27fc9e=a828_0x1bad;'use strict';const util=require(_0x27fc9e('0x4')),path=require(_0x27fc9e('0x6')),fs=require('fs'),json2xls=require(_0x27fc9e('0x16')),zipdir=require(_0x27fc9e('0x2')),rimraf=require(_0x27fc9e('0x1b')),db=require('../../mysqldb')['db'],dbH=require(_0x27fc9e('0x8'))[_0x27fc9e('0x9')],logger=require(_0x27fc9e('0x1f'))('analytics'),EXTRACTED_REPORT_ID=Number(process[_0x27fc9e('0x14')][0x2]),QUERY=process['argv'][0x3],PATH=process[_0x27fc9e('0x14')][0x4];function analyticExtractedReport(_0x3024ae,_0x20edbf){const _0x359457=_0x27fc9e,_0x5b10db={'status':_0x3024ae},_0x3c32c5={'where':{'id':EXTRACTED_REPORT_ID}};return _0x20edbf&&(_0x5b10db[_0x359457('0x17')]=_0x20edbf),db['AnalyticExtractedReport'][_0x359457('0x1e')](_0x5b10db,_0x3c32c5);}function main(){const _0x9ce3ee=_0x27fc9e;let _0x536103=0x1388,_0x274cc1;return logger['info'](util['format'](_0x9ce3ee('0x23'),EXTRACTED_REPORT_ID,_0x9ce3ee('0x13'))),db['Setting'][_0x9ce3ee('0x15')]({'where':{'id':0x1},'raw':!![],'attributes':['id',_0x9ce3ee('0x1a'),'splitSizeXlsx']})['then'](function(_0x116fa3){const _0x2886be=_0x9ce3ee;_0x116fa3&&(_0x274cc1=_0x116fa3,_0x536103=_0x274cc1[_0x2886be('0x20')]||0x1388);})[_0x9ce3ee('0x21')](function(){const _0x3960d0=_0x9ce3ee;return dbH[_0x3960d0('0x28')]['query'](util[_0x3960d0('0x18')]('SELECT\x20count(*)\x20as\x20num\x20FROM\x20(%s)\x20t',QUERY),{'type':dbH['sequelize'][_0x3960d0('0xc')]['SELECT']});})[_0x9ce3ee('0x21')](function(_0x55ccca){const _0x5277b4=_0x9ce3ee;if(!_0x55ccca[0x0][_0x5277b4('0xb')])return analyticExtractedReport('Empty');const _0x42550b=[];let _0x8b7dc9=0x0,_0x4641b0=!![];if(_0x274cc1[_0x5277b4('0x1a')]){if(_0x55ccca&&_0x55ccca[_0x5277b4('0x10')]){let _0x2ec993=_0x55ccca[0x0][_0x5277b4('0xb')]%(_0x8b7dc9+_0x536103);for(;_0x4641b0;_0x8b7dc9+=_0x536103,_0x2ec993=_0x55ccca[0x0][_0x5277b4('0xb')]%(_0x8b7dc9+_0x536103)){(_0x2ec993==0x0||_0x2ec993==_0x55ccca[0x0][_0x5277b4('0xb')])&&(_0x4641b0=![]),_0x42550b[_0x5277b4('0x7')](dbH[_0x5277b4('0x28')]['query'](util[_0x5277b4('0x18')](_0x5277b4('0x1c'),QUERY,_0x536103,_0x8b7dc9),{'type':dbH['sequelize']['QueryTypes']['SELECT']}));}}}else _0x42550b['push'](dbH['sequelize'][_0x5277b4('0x19')](QUERY,{'type':dbH[_0x5277b4('0x28')][_0x5277b4('0xc')]['SELECT']}));const _0x4b919d=path[_0x5277b4('0x11')](PATH),_0x17259e=path[_0x5277b4('0x1')](PATH,_0x5277b4('0xa')),_0xb2fb3a=_0x274cc1[_0x5277b4('0x1a')]&&_0x42550b[_0x5277b4('0x10')]>0x1,_0x373ad3=[];return!fs[_0x5277b4('0x0')](path['join'](_0x4b919d,_0x17259e))&&_0xb2fb3a&&fs['mkdirSync'](path[_0x5277b4('0x3')](_0x4b919d,_0x17259e)),Promise['each'](_0x42550b,function(_0x41cde2){const _0x2598c2=_0x5277b4;_0x373ad3[_0x2598c2('0x7')](_0x41cde2);})[_0x5277b4('0x21')](function(){const _0x5dbade=_0x5277b4;for(let _0x15f44f=0x0;_0x15f44f<_0x373ad3['length'];_0x15f44f+=0x1){let _0xde7d96;const _0x4cb28=_0x373ad3[_0x15f44f];_0xb2fb3a?_0xde7d96=path[_0x5dbade('0x3')](_0x4b919d,_0x17259e,util[_0x5dbade('0x18')]('%s%d.%s',_0x17259e,_0x15f44f,'xlsx')):_0xde7d96=path[_0x5dbade('0x3')](_0x4b919d,util[_0x5dbade('0x18')](_0x5dbade('0x12'),_0x17259e,_0x5dbade('0xd'))),fs[_0x5dbade('0x5')](_0xde7d96,json2xls(_0x4cb28),_0x5dbade('0x27'));}})['then'](function(){const _0x345827=_0x5277b4;_0xb2fb3a&&(zipdir(path[_0x345827('0x3')](_0x4b919d,_0x17259e),{'saveTo':path[_0x345827('0x3')](_0x4b919d,util['format'](_0x345827('0x12'),_0x17259e,_0x345827('0x22')))},function(){}),rimraf(path[_0x345827('0x3')](_0x4b919d,_0x17259e),function(){}));})['then'](function(){const _0x41177a=_0x5277b4;return logger[_0x41177a('0xf')](util[_0x41177a('0x18')](_0x41177a('0x24'),EXTRACTED_REPORT_ID,_0x41177a('0x13'))),analyticExtractedReport('Completed',_0xb2fb3a?util['format'](_0x41177a('0x12'),_0x17259e,_0xb2fb3a?_0x41177a('0x22'):_0x41177a('0xd')):null);});})[_0x9ce3ee('0x25')](function(_0x2f4fc1){const _0x45c1e0=_0x9ce3ee;return logger[_0x45c1e0('0xf')](util[_0x45c1e0('0x18')](_0x45c1e0('0x26'),EXTRACTED_REPORT_ID,'XLSX'),util[_0x45c1e0('0x1d')](_0x2f4fc1,{'showHidden':![],'depth':null})),analyticExtractedReport(_0x45c1e0('0xe'));});}main(); \ No newline at end of file diff --git a/server/components/extensions/rewrite.js b/server/components/extensions/rewrite.js index a3b4c2d..7151e5c 100644 --- a/server/components/extensions/rewrite.js +++ b/server/components/extensions/rewrite.js @@ -1 +1 @@ -const a829_0x1569=['intervals','lodash','recordingFormat','filter','toLowerCase','context','XCALLY-MOTION-ANSWER=1','map','$[${XCALLY-MOTION-PROGRESS}=0]?Progress','error','bulkCreate','$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto(','concat','updatedAt','MONITOR_OPTIONS=ab',',${EXTEN},','CDR(tag)=','interval','type','destroy','CDR(destination)=','literal','findAll','none','length','_XCALLY_MIXMONITOR_FORMAT=','util','XCALLY-MOTION-PROGRESS=1','ExecIf','tag','push','then','createdAt','queue','VoiceExtensionId','CDR(type)=%s','custom','outboundrouteid=','undefined','GotoIfTime','XCALLY-MOTION-ANSWER=0','exten','*,*,*,*','transaction','priority','sequelize','${EXTEN:','models','last','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)=','app','CAST(priority\x20AS\x20UNSIGNED)','extension','${EXTEN}','cutdigits','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','VoiceExtension','splice','find','CDR(routeid)=','CDR(prefix)=noprefix','Set','appType','groupBy','callerID','Hangup','outbound','$[${XCALLY-MOTION-ANSWER}=0]?Answer','extensions','uniq','Interval','answer','IntervalId'];(function(_0x45c648,_0x15695b){const _0xf65d44=function(_0x3b5205){while(--_0x3b5205){_0x45c648['push'](_0x45c648['shift']());}};_0xf65d44(++_0x15695b);}(a829_0x1569,0x1bd));const a829_0xf65d=function(_0x45c648,_0x15695b){_0x45c648=_0x45c648-0x0;let _0xf65d44=a829_0x1569[_0x45c648];return _0xf65d44;};const _0x4c0bc6=a829_0xf65d;'use strict';const _=require(_0x4c0bc6('0x43')),util=require(_0x4c0bc6('0x13')),{Op}=require(_0x4c0bc6('0x26'));function rewrite(_0x3b5205,_0x23a2a7){const _0x4e0f60=_0x4c0bc6,_0x34e7ae=this;return _0x3b5205[_0x4e0f60('0x28')][_0x4e0f60('0x3f')][_0x4e0f60('0xf')]({'raw':!![]})[_0x4e0f60('0x18')](function(_0x12df33){const _0x169e7=_0x4e0f60;return _0x34e7ae[_0x169e7('0x42')]=_0x12df33,_0x3b5205[_0x169e7('0x28')][_0x169e7('0x31')][_0x169e7('0xf')]({'where':{'IntervalId':_0x23a2a7[_0x169e7('0x41')]},'raw':!![]});})['then'](function(_0x388487){const _0x12d9b4=_0x4e0f60;return _0x3b5205[_0x12d9b4('0x28')][_0x12d9b4('0x31')][_0x12d9b4('0xf')]({'where':{'exten':{[Op['in']]:_[_0x12d9b4('0x3e')](_[_0x12d9b4('0x0')](_0x388487,'exten'))}},'order':_0x3b5205[_0x12d9b4('0xe')](_0x12d9b4('0x2c')),'raw':!![]});})[_0x4e0f60('0x18')](function(_0x2f12ef){const _0x2ef112=_0x4e0f60,_0x591b6e=_['filter'](_0x2f12ef,{'priority':'1'}),_0x23cb78=_[_0x2ef112('0x45')](_0x2f12ef,{'isApp':0x1}),_0x43e886=_[_0x2ef112('0x38')](_0x23cb78,_0x2ef112('0x22')),_0x229f71=[_0x2ef112('0x1a'),'playback'],_0x593f37=[];let _0x38e947=[];for(const _0x1aae41 in _0x43e886){if(typeof _0x43e886[_0x1aae41]!=='undefined'){_0x34e7ae[_0x2ef112('0x25')]=0x2,_0x34e7ae[_0x2ef112('0x3d')]=[],_0x34e7ae[_0x2ef112('0x2d')]=_[_0x2ef112('0x33')](_0x591b6e,{'exten':_0x43e886[_0x1aae41][0x0]['exten']}),_0x34e7ae[_0x2ef112('0x3d')][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0]['type'],'app':_0x2ef112('0x36'),'appdata':util['format'](_0x2ef112('0x1c'),_0x43e886[_0x1aae41][0x0]['type']),'context':_0x43e886[_0x1aae41][0x0]['context'],'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]});if(_0x43e886[_0x1aae41][0x0]['type']===_0x2ef112('0x3b')){_0x34e7ae['extension']&&_0x34e7ae[_0x2ef112('0x3d')][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0][_0x2ef112('0xb')],'app':_0x2ef112('0x36'),'appdata':_0x2ef112('0xd')+(_0x34e7ae[_0x2ef112('0x2d')][_0x2ef112('0x2f')]?_0x2ef112('0x27')+_0x34e7ae[_0x2ef112('0x2d')]['cutdigits']+'}':_0x2ef112('0x2e')),'context':_0x43e886[_0x1aae41][0x0]['context'],'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]});_0x34e7ae[_0x2ef112('0x3d')][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0]['type'],'app':_0x2ef112('0x36'),'appdata':_0x2ef112('0x34')+_0x43e886[_0x1aae41][0x0]['VoiceExtensionId'],'context':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x47')],'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]});const _0x5bad52=_0x34e7ae['priority']++;_0x34e7ae['extensions'][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0][_0x2ef112('0xb')],'app':_0x2ef112('0x15'),'appdata':_0x2ef112('0x4')+(_0x5bad52+0x2)+'):Goto('+(_0x5bad52+0x1)+')','context':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x47')],'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'priority':_0x5bad52,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]}),_0x34e7ae[_0x2ef112('0x2d')]&&_0x34e7ae[_0x2ef112('0x3d')][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0]['type'],'app':_0x2ef112('0x36'),'appdata':_0x34e7ae[_0x2ef112('0x2d')][_0x2ef112('0x2f')]?'CDR(prefix)=${EXTEN:0:'+_0x34e7ae[_0x2ef112('0x2d')][_0x2ef112('0x2f')]+'}':_0x2ef112('0x35'),'context':_0x43e886[_0x1aae41][0x0]['context'],'exten':_0x43e886[_0x1aae41][0x0]['exten'],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]}),_0x34e7ae[_0x2ef112('0x3d')]['push']({'type':_0x43e886[_0x1aae41][0x0]['type'],'app':_0x2ef112('0x36'),'appdata':_0x2ef112('0x1e')+_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')],'context':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x47')],'exten':_0x43e886[_0x1aae41][0x0]['exten'],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]}),_0x34e7ae['extension']&&typeof _0x34e7ae['extension'][_0x2ef112('0x44')]!==_0x2ef112('0x1f')&&_0x34e7ae[_0x2ef112('0x2d')][_0x2ef112('0x44')]!==_0x2ef112('0x10')&&(_0x34e7ae[_0x2ef112('0x3d')][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0][_0x2ef112('0xb')],'app':'Set','appdata':_0x2ef112('0x30'),'context':_0x43e886[_0x1aae41][0x0]['context'],'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0]['VoiceExtensionId']}),_0x34e7ae['extensions'][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0]['type'],'app':_0x2ef112('0x36'),'appdata':_0x2ef112('0x12')+_0x34e7ae['extension'][_0x2ef112('0x44')]||'wav','context':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x47')],'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]}));}_0x34e7ae['extensions']['push']({'type':_0x43e886[_0x1aae41][0x0][_0x2ef112('0xb')],'app':'Set','appdata':_0x2ef112('0x21'),'context':_0x43e886[_0x1aae41][0x0]['context'],'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]}),_0x34e7ae[_0x2ef112('0x3d')][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0]['type'],'app':_0x2ef112('0x36'),'appdata':'XCALLY-MOTION-PROGRESS=0','context':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x47')],'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'priority':_0x34e7ae['priority']++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]}),_0x34e7ae[_0x2ef112('0x3d')][_0x2ef112('0x17')]({'type':_0x43e886[_0x1aae41][0x0][_0x2ef112('0xb')],'app':_0x2ef112('0x36'),'appdata':_0x2ef112('0x7'),'context':_0x43e886[_0x1aae41][0x0]['context'],'exten':_0x43e886[_0x1aae41][0x0]['exten'],'priority':_0x34e7ae[_0x2ef112('0x25')]++,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]});for(let _0x3d4afc=0x0,_0x2492f8=0x0;_0x3d4afc<_0x43e886[_0x1aae41][_0x2ef112('0x11')];_0x3d4afc+=0x1,_0x2492f8=0x0){const _0x5ec630=_0x43e886[_0x1aae41][_0x3d4afc];_0x5ec630[_0x2ef112('0xb')]&&(_0x5ec630[_0x2ef112('0xb')]=_0x5ec630['type'][_0x2ef112('0x46')]());const _0x5805ff=[],_0x42077e=[];delete _0x5ec630['id'],delete _0x5ec630[_0x2ef112('0x19')],delete _0x5ec630[_0x2ef112('0x6')];const _0x453eac=_0x5ec630[_0x2ef112('0xa')]!==_0x2ef112('0x23')?[_0x5ec630[_0x2ef112('0xa')]]:_0x5ec630[_0x2ef112('0x41')]?_[_0x2ef112('0x0')](_['filter'](_0x34e7ae[_0x2ef112('0x42')],{'IntervalId':_0x5ec630[_0x2ef112('0x41')]}),_0x2ef112('0xa')):[];typeof _0x5ec630[_0x2ef112('0x16')]!==_0x2ef112('0x1f')&&(_0x5ec630[_0x2ef112('0x16')]&&_0x5ec630[_0x2ef112('0x16')]!=='--'&&_0x5805ff['push']({'type':_0x5ec630[_0x2ef112('0xb')],'app':_0x2ef112('0x36'),'appdata':_0x2ef112('0x9')+_0x5ec630[_0x2ef112('0x16')],'context':_0x5ec630[_0x2ef112('0x47')],'exten':_0x5ec630['exten'],'priority':_0x453eac[_0x2ef112('0x11')]+_0x34e7ae[_0x2ef112('0x25')]+_0x2492f8++,'VoiceExtensionId':_0x5ec630[_0x2ef112('0x1b')]}));_0x5ec630['type']===_0x2ef112('0x3b')&&typeof _0x5ec630['callerID']!==_0x2ef112('0x1f')&&(_0x5ec630[_0x2ef112('0x39')]?_0x5805ff[_0x2ef112('0x17')]({'type':_0x5ec630['type'],'app':'ExecIf','appdata':_0x2ef112('0x2a')+_0x5ec630[_0x2ef112('0x39')]+')','context':_0x5ec630[_0x2ef112('0x47')],'exten':_0x5ec630[_0x2ef112('0x22')],'priority':_0x453eac[_0x2ef112('0x11')]+_0x34e7ae[_0x2ef112('0x25')]+_0x2492f8++,'VoiceExtensionId':_0x5ec630['VoiceExtensionId']}):_0x5805ff[_0x2ef112('0x17')]({'type':_0x5ec630[_0x2ef112('0xb')],'app':_0x2ef112('0x15'),'appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','context':_0x5ec630['context'],'exten':_0x5ec630[_0x2ef112('0x22')],'priority':_0x453eac['length']+_0x34e7ae[_0x2ef112('0x25')]+_0x2492f8++,'VoiceExtensionId':_0x5ec630[_0x2ef112('0x1b')]}));typeof _0x5ec630[_0x2ef112('0x40')]!==_0x2ef112('0x1f')&&(_0x229f71['indexOf'](_0x5ec630[_0x2ef112('0x2b')][_0x2ef112('0x46')]())>=0x0&&_0x5ec630[_0x2ef112('0x37')]!==_0x2ef112('0x1d')&&(_0x5ec630[_0x2ef112('0x40')]?(_0x5805ff[_0x2ef112('0x17')]({'type':_0x5ec630[_0x2ef112('0xb')],'app':'ExecIf','appdata':_0x2ef112('0x3c'),'context':_0x5ec630[_0x2ef112('0x47')],'exten':_0x5ec630[_0x2ef112('0x22')],'priority':_0x453eac[_0x2ef112('0x11')]+_0x34e7ae[_0x2ef112('0x25')]+_0x2492f8++,'VoiceExtensionId':_0x5ec630[_0x2ef112('0x1b')]}),_0x5805ff[_0x2ef112('0x17')]({'type':_0x5ec630[_0x2ef112('0xb')],'app':_0x2ef112('0x36'),'appdata':_0x2ef112('0x48'),'context':_0x5ec630[_0x2ef112('0x47')],'exten':_0x5ec630[_0x2ef112('0x22')],'priority':_0x453eac[_0x2ef112('0x11')]+_0x34e7ae[_0x2ef112('0x25')]+_0x2492f8++,'VoiceExtensionId':_0x5ec630[_0x2ef112('0x1b')]})):(_0x5805ff[_0x2ef112('0x17')]({'type':_0x5ec630['type'],'app':_0x2ef112('0x15'),'appdata':_0x2ef112('0x1'),'context':_0x5ec630['context'],'exten':_0x5ec630['exten'],'priority':_0x453eac[_0x2ef112('0x11')]+_0x34e7ae['priority']+_0x2492f8++,'VoiceExtensionId':_0x5ec630[_0x2ef112('0x1b')]}),_0x5805ff[_0x2ef112('0x17')]({'type':_0x5ec630['type'],'app':_0x2ef112('0x36'),'appdata':_0x2ef112('0x14'),'context':_0x5ec630['context'],'exten':_0x5ec630['exten'],'priority':_0x453eac[_0x2ef112('0x11')]+_0x34e7ae[_0x2ef112('0x25')]+_0x2492f8++,'VoiceExtensionId':_0x5ec630[_0x2ef112('0x1b')]}))));for(let _0x395c11=0x0;_0x395c11<_0x453eac[_0x2ef112('0x11')];_0x395c11+=0x1){const _0x3903d8=_0x34e7ae[_0x2ef112('0x25')]+_0x453eac[_0x2ef112('0x11')],_0x2a0da3=_0x395c11===_0x453eac[_0x2ef112('0x11')]-0x1?_0x34e7ae[_0x2ef112('0x25')]+_0x5805ff['length']+_0x42077e[_0x2ef112('0x11')]+0x2:_0x34e7ae[_0x2ef112('0x25')]+_0x395c11+0x1;_0x5805ff[_0x2ef112('0x32')](_0x395c11,0x0,{'type':_0x5ec630[_0x2ef112('0xb')],'app':_0x2ef112('0x20'),'appdata':_0x453eac[_0x395c11]+'?'+_0x5ec630[_0x2ef112('0x47')]+',${EXTEN},'+_0x3903d8+':'+_0x5ec630[_0x2ef112('0x47')]+_0x2ef112('0x8')+_0x2a0da3,'exten':_0x5ec630[_0x2ef112('0x22')],'context':_0x5ec630[_0x2ef112('0x47')],'priority':_0x34e7ae[_0x2ef112('0x25')]+_0x395c11,'VoiceExtensionId':_0x43e886[_0x1aae41][0x0]['VoiceExtensionId']});}_0x5ec630[_0x2ef112('0x25')]=_0x5805ff[_0x2ef112('0x11')]?_[_0x2ef112('0x29')](_0x5805ff)[_0x2ef112('0x25')]+0x1:_0x34e7ae[_0x2ef112('0x25')],_0x34e7ae[_0x2ef112('0x25')]=(_0x42077e['length']?_[_0x2ef112('0x29')](_0x42077e)[_0x2ef112('0x25')]:_0x5ec630[_0x2ef112('0x25')])+0x1,_0x34e7ae[_0x2ef112('0x3d')]=_['concat'](_0x34e7ae['extensions'],_0x5805ff,[_0x5ec630],_0x42077e);}_0x34e7ae[_0x2ef112('0x3d')]['push']({'type':_0x43e886[_0x1aae41][0x0][_0x2ef112('0xb')],'app':_0x2ef112('0x3a'),'exten':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x22')],'context':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x47')],'priority':_0x34e7ae[_0x2ef112('0x25')],'VoiceExtensionId':_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]}),_0x593f37['push'](_0x43e886[_0x1aae41][0x0][_0x2ef112('0x1b')]),_0x38e947=_[_0x2ef112('0x5')](_0x38e947,_0x34e7ae[_0x2ef112('0x3d')]);}}return _0x3b5205[_0x2ef112('0x24')](function(_0x1abaed){const _0x53b46d=_0x2ef112;return _0x3b5205['models'][_0x53b46d('0x31')][_0x53b46d('0xc')]({'where':{'VoiceExtensionId':{[Op['in']]:_0x593f37}},'transaction':_0x1abaed})[_0x53b46d('0x18')](function(){const _0x5225f5=_0x53b46d;return _0x3b5205['models']['VoiceExtension'][_0x5225f5('0x3')](_['sortBy'](_0x38e947,'priority'),{'transaction':_0x1abaed});});});})['catch'](function(_0x120694){const _0x4a315d=_0x4e0f60;console[_0x4a315d('0x2')](_0x120694);});}exports['rewrite']=rewrite; \ No newline at end of file +const a829_0x36d6=['outbound','literal','length','then','context','CAST(priority\x20AS\x20UNSIGNED)','concat','VoiceExtension','map','tag',',${EXTEN},','error','XCALLY-MOTION-PROGRESS=1','MONITOR_OPTIONS=ab','none','_XCALLY_MIXMONITOR_FORMAT=','XCALLY-MOTION-ANSWER=1','filter','XCALLY-MOTION-PROGRESS=0','bulkCreate','push','toLowerCase','custom','last','app','Set','):Goto(','ExecIf','wav','answer','$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):NoOp(No\x20number\x20available)','Interval','destroy','interval','CDR(prefix)=${EXTEN:0:','cutdigits','find','findAll','XCALLY-MOTION-ANSWER=0','extension','recordingFormat','CDR(routeid)=','type','appType','*,*,*,*','Hangup','sequelize','intervals','queue','priority','exten','lodash','catch','undefined','CDR(destination)=','IntervalId','updatedAt','util','CDR(prefix)=noprefix','extensions','createdAt','uniq','CDR(tag)=','VoiceExtensionId','playback','models','splice','callerID','$[${XCALLY-MOTION-ANSWER}=0]?Answer','format','${EXTEN:'];(function(_0x4372fe,_0x36d657){const _0x22c5c9=function(_0x6b4d95){while(--_0x6b4d95){_0x4372fe['push'](_0x4372fe['shift']());}};_0x22c5c9(++_0x36d657);}(a829_0x36d6,0xea));const a829_0x22c5=function(_0x4372fe,_0x36d657){_0x4372fe=_0x4372fe-0x0;let _0x22c5c9=a829_0x36d6[_0x4372fe];return _0x22c5c9;};const _0x54867f=a829_0x22c5;'use strict';const _=require(_0x54867f('0x1e')),util=require(_0x54867f('0x24')),{Op}=require(_0x54867f('0x19'));function rewrite(_0x6b4d95,_0x43f9b3){const _0x5c47b9=_0x54867f,_0x153130=this;return _0x6b4d95[_0x5c47b9('0x2c')][_0x5c47b9('0xa')][_0x5c47b9('0x10')]({'raw':!![]})[_0x5c47b9('0x35')](function(_0x3c7f41){const _0x16cc02=_0x5c47b9;return _0x153130['intervals']=_0x3c7f41,_0x6b4d95[_0x16cc02('0x2c')]['VoiceExtension'][_0x16cc02('0x10')]({'where':{'IntervalId':_0x43f9b3[_0x16cc02('0x22')]},'raw':!![]});})[_0x5c47b9('0x35')](function(_0x4a9b32){const _0x4f7044=_0x5c47b9;return _0x6b4d95['models'][_0x4f7044('0x39')][_0x4f7044('0x10')]({'where':{'exten':{[Op['in']]:_[_0x4f7044('0x28')](_['map'](_0x4a9b32,_0x4f7044('0x1d')))}},'order':_0x6b4d95[_0x4f7044('0x33')](_0x4f7044('0x37')),'raw':!![]});})[_0x5c47b9('0x35')](function(_0x56ebe6){const _0x58ff39=_0x5c47b9,_0x38c909=_[_0x58ff39('0x43')](_0x56ebe6,{'priority':'1'}),_0x3f618e=_[_0x58ff39('0x43')](_0x56ebe6,{'isApp':0x1}),_0x3d6145=_['groupBy'](_0x3f618e,'exten'),_0x5bacd9=[_0x58ff39('0x1b'),_0x58ff39('0x2b')],_0x2fb405=[];let _0xe9c48e=[];for(const _0x315390 in _0x3d6145){if(typeof _0x3d6145[_0x315390]!=='undefined'){_0x153130['priority']=0x2,_0x153130['extensions']=[],_0x153130[_0x58ff39('0x12')]=_[_0x58ff39('0xf')](_0x38c909,{'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')]}),_0x153130[_0x58ff39('0x26')]['push']({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':util[_0x58ff39('0x30')]('CDR(type)=%s',_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')]),'context':_0x3d6145[_0x315390][0x0]['context'],'exten':_0x3d6145[_0x315390][0x0]['exten'],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]});if(_0x3d6145[_0x315390][0x0]['type']===_0x58ff39('0x32')){_0x153130['extension']&&_0x153130[_0x58ff39('0x26')][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':_0x58ff39('0x21')+(_0x153130['extension'][_0x58ff39('0xe')]?_0x58ff39('0x31')+_0x153130['extension'][_0x58ff39('0xe')]+'}':'${EXTEN}'),'context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0]['VoiceExtensionId']});_0x153130['extensions'][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0]['type'],'app':'Set','appdata':_0x58ff39('0x14')+_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')],'context':_0x3d6145[_0x315390][0x0]['context'],'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0]['VoiceExtensionId']});const _0xdd6efd=_0x153130['priority']++;_0x153130[_0x58ff39('0x26')][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0]['type'],'app':'ExecIf','appdata':'$[${LEN(${CDR(prefix)})}\x20>\x200]?Goto('+(_0xdd6efd+0x2)+_0x58ff39('0x5')+(_0xdd6efd+0x1)+')','context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')],'priority':_0xdd6efd,'VoiceExtensionId':_0x3d6145[_0x315390][0x0]['VoiceExtensionId']}),_0x153130[_0x58ff39('0x12')]&&_0x153130[_0x58ff39('0x26')][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':_0x153130[_0x58ff39('0x12')]['cutdigits']?_0x58ff39('0xd')+_0x153130[_0x58ff39('0x12')][_0x58ff39('0xe')]+'}':_0x58ff39('0x25'),'context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]}),_0x153130[_0x58ff39('0x26')][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':'outboundrouteid='+_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')],'context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')],'priority':_0x153130['priority']++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0]['VoiceExtensionId']}),_0x153130[_0x58ff39('0x12')]&&typeof _0x153130[_0x58ff39('0x12')][_0x58ff39('0x13')]!==_0x58ff39('0x20')&&_0x153130[_0x58ff39('0x12')]['recordingFormat']!==_0x58ff39('0x40')&&(_0x153130[_0x58ff39('0x26')][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]}),_0x153130[_0x58ff39('0x26')][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':_0x58ff39('0x41')+_0x153130[_0x58ff39('0x12')][_0x58ff39('0x13')]||_0x58ff39('0x7'),'context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0]['exten'],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]}));}_0x153130[_0x58ff39('0x26')][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':_0x58ff39('0x11'),'context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]}),_0x153130[_0x58ff39('0x26')]['push']({'type':_0x3d6145[_0x315390][0x0]['type'],'app':_0x58ff39('0x4'),'appdata':_0x58ff39('0x44'),'context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0]['exten'],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]}),_0x153130[_0x58ff39('0x26')]['push']({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':_0x58ff39('0x3f'),'context':_0x3d6145[_0x315390][0x0][_0x58ff39('0x36')],'exten':_0x3d6145[_0x315390][0x0][_0x58ff39('0x1d')],'priority':_0x153130[_0x58ff39('0x1c')]++,'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]});for(let _0x3de23e=0x0,_0x105cc2=0x0;_0x3de23e<_0x3d6145[_0x315390][_0x58ff39('0x34')];_0x3de23e+=0x1,_0x105cc2=0x0){const _0x452780=_0x3d6145[_0x315390][_0x3de23e];_0x452780[_0x58ff39('0x15')]&&(_0x452780[_0x58ff39('0x15')]=_0x452780[_0x58ff39('0x15')]['toLowerCase']());const _0x47e75e=[],_0x5a3442=[];delete _0x452780['id'],delete _0x452780[_0x58ff39('0x27')],delete _0x452780[_0x58ff39('0x23')];const _0xa4671c=_0x452780[_0x58ff39('0xc')]!==_0x58ff39('0x17')?[_0x452780[_0x58ff39('0xc')]]:_0x452780[_0x58ff39('0x22')]?_[_0x58ff39('0x3a')](_[_0x58ff39('0x43')](_0x153130[_0x58ff39('0x1a')],{'IntervalId':_0x452780[_0x58ff39('0x22')]}),_0x58ff39('0xc')):[];typeof _0x452780[_0x58ff39('0x3b')]!==_0x58ff39('0x20')&&(_0x452780['tag']&&_0x452780[_0x58ff39('0x3b')]!=='--'&&_0x47e75e['push']({'type':_0x452780['type'],'app':_0x58ff39('0x4'),'appdata':_0x58ff39('0x29')+_0x452780[_0x58ff39('0x3b')],'context':_0x452780[_0x58ff39('0x36')],'exten':_0x452780['exten'],'priority':_0xa4671c[_0x58ff39('0x34')]+_0x153130[_0x58ff39('0x1c')]+_0x105cc2++,'VoiceExtensionId':_0x452780['VoiceExtensionId']}));_0x452780[_0x58ff39('0x15')]===_0x58ff39('0x32')&&typeof _0x452780['callerID']!==_0x58ff39('0x20')&&(_0x452780[_0x58ff39('0x2e')]?_0x47e75e[_0x58ff39('0x46')]({'type':_0x452780[_0x58ff39('0x15')],'app':_0x58ff39('0x6'),'appdata':'$[${LEN(${PREFIX-CALLERIDALL})}\x20>\x200]?Set(CALLERID(all)=${PREFIX-CALLERIDALL}):Set(CALLERID(all)='+_0x452780[_0x58ff39('0x2e')]+')','context':_0x452780[_0x58ff39('0x36')],'exten':_0x452780[_0x58ff39('0x1d')],'priority':_0xa4671c[_0x58ff39('0x34')]+_0x153130[_0x58ff39('0x1c')]+_0x105cc2++,'VoiceExtensionId':_0x452780['VoiceExtensionId']}):_0x47e75e[_0x58ff39('0x46')]({'type':_0x452780[_0x58ff39('0x15')],'app':_0x58ff39('0x6'),'appdata':_0x58ff39('0x9'),'context':_0x452780[_0x58ff39('0x36')],'exten':_0x452780[_0x58ff39('0x1d')],'priority':_0xa4671c[_0x58ff39('0x34')]+_0x153130['priority']+_0x105cc2++,'VoiceExtensionId':_0x452780[_0x58ff39('0x2a')]}));typeof _0x452780[_0x58ff39('0x8')]!==_0x58ff39('0x20')&&(_0x5bacd9['indexOf'](_0x452780[_0x58ff39('0x3')][_0x58ff39('0x0')]())>=0x0&&_0x452780[_0x58ff39('0x16')]!==_0x58ff39('0x1')&&(_0x452780[_0x58ff39('0x8')]?(_0x47e75e[_0x58ff39('0x46')]({'type':_0x452780[_0x58ff39('0x15')],'app':_0x58ff39('0x6'),'appdata':_0x58ff39('0x2f'),'context':_0x452780[_0x58ff39('0x36')],'exten':_0x452780[_0x58ff39('0x1d')],'priority':_0xa4671c[_0x58ff39('0x34')]+_0x153130[_0x58ff39('0x1c')]+_0x105cc2++,'VoiceExtensionId':_0x452780['VoiceExtensionId']}),_0x47e75e[_0x58ff39('0x46')]({'type':_0x452780['type'],'app':_0x58ff39('0x4'),'appdata':_0x58ff39('0x42'),'context':_0x452780[_0x58ff39('0x36')],'exten':_0x452780['exten'],'priority':_0xa4671c['length']+_0x153130[_0x58ff39('0x1c')]+_0x105cc2++,'VoiceExtensionId':_0x452780[_0x58ff39('0x2a')]})):(_0x47e75e[_0x58ff39('0x46')]({'type':_0x452780['type'],'app':'ExecIf','appdata':'$[${XCALLY-MOTION-PROGRESS}=0]?Progress','context':_0x452780['context'],'exten':_0x452780[_0x58ff39('0x1d')],'priority':_0xa4671c[_0x58ff39('0x34')]+_0x153130[_0x58ff39('0x1c')]+_0x105cc2++,'VoiceExtensionId':_0x452780[_0x58ff39('0x2a')]}),_0x47e75e[_0x58ff39('0x46')]({'type':_0x452780[_0x58ff39('0x15')],'app':_0x58ff39('0x4'),'appdata':_0x58ff39('0x3e'),'context':_0x452780[_0x58ff39('0x36')],'exten':_0x452780[_0x58ff39('0x1d')],'priority':_0xa4671c[_0x58ff39('0x34')]+_0x153130[_0x58ff39('0x1c')]+_0x105cc2++,'VoiceExtensionId':_0x452780[_0x58ff39('0x2a')]}))));for(let _0x1deee8=0x0;_0x1deee8<_0xa4671c[_0x58ff39('0x34')];_0x1deee8+=0x1){const _0x243626=_0x153130[_0x58ff39('0x1c')]+_0xa4671c[_0x58ff39('0x34')],_0x29dda1=_0x1deee8===_0xa4671c[_0x58ff39('0x34')]-0x1?_0x153130['priority']+_0x47e75e[_0x58ff39('0x34')]+_0x5a3442[_0x58ff39('0x34')]+0x2:_0x153130['priority']+_0x1deee8+0x1;_0x47e75e[_0x58ff39('0x2d')](_0x1deee8,0x0,{'type':_0x452780[_0x58ff39('0x15')],'app':'GotoIfTime','appdata':_0xa4671c[_0x1deee8]+'?'+_0x452780[_0x58ff39('0x36')]+_0x58ff39('0x3c')+_0x243626+':'+_0x452780[_0x58ff39('0x36')]+',${EXTEN},'+_0x29dda1,'exten':_0x452780[_0x58ff39('0x1d')],'context':_0x452780[_0x58ff39('0x36')],'priority':_0x153130[_0x58ff39('0x1c')]+_0x1deee8,'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]});}_0x452780[_0x58ff39('0x1c')]=_0x47e75e[_0x58ff39('0x34')]?_[_0x58ff39('0x2')](_0x47e75e)['priority']+0x1:_0x153130[_0x58ff39('0x1c')],_0x153130[_0x58ff39('0x1c')]=(_0x5a3442[_0x58ff39('0x34')]?_[_0x58ff39('0x2')](_0x5a3442)[_0x58ff39('0x1c')]:_0x452780[_0x58ff39('0x1c')])+0x1,_0x153130[_0x58ff39('0x26')]=_[_0x58ff39('0x38')](_0x153130[_0x58ff39('0x26')],_0x47e75e,[_0x452780],_0x5a3442);}_0x153130[_0x58ff39('0x26')][_0x58ff39('0x46')]({'type':_0x3d6145[_0x315390][0x0][_0x58ff39('0x15')],'app':_0x58ff39('0x18'),'exten':_0x3d6145[_0x315390][0x0]['exten'],'context':_0x3d6145[_0x315390][0x0]['context'],'priority':_0x153130['priority'],'VoiceExtensionId':_0x3d6145[_0x315390][0x0][_0x58ff39('0x2a')]}),_0x2fb405[_0x58ff39('0x46')](_0x3d6145[_0x315390][0x0]['VoiceExtensionId']),_0xe9c48e=_[_0x58ff39('0x38')](_0xe9c48e,_0x153130[_0x58ff39('0x26')]);}}return _0x6b4d95['transaction'](function(_0x5a1370){const _0xbea525=_0x58ff39;return _0x6b4d95[_0xbea525('0x2c')]['VoiceExtension'][_0xbea525('0xb')]({'where':{'VoiceExtensionId':{[Op['in']]:_0x2fb405}},'transaction':_0x5a1370})[_0xbea525('0x35')](function(){const _0x3a8df2=_0xbea525;return _0x6b4d95['models']['VoiceExtension'][_0x3a8df2('0x45')](_['sortBy'](_0xe9c48e,_0x3a8df2('0x1c')),{'transaction':_0x5a1370});});});})[_0x5c47b9('0x1f')](function(_0xcb13e6){const _0x172164=_0x5c47b9;console[_0x172164('0x3d')](_0xcb13e6);});}exports['rewrite']=rewrite; \ No newline at end of file diff --git a/server/components/import/cm/csv.js b/server/components/import/cm/csv.js index d1ec29b..912c83a 100644 --- a/server/components/import/cm/csv.js +++ b/server/components/import/cm/csv.js @@ -1 +1 @@ -const a830_0x136d=['finally','phone\x20NOT\x20IN\x20(?)','cmContact,\x20%s,\x20%s','argv','get','cm_hopper','../../../config/logger','field','split','toString','Error\x20processing\x20rows\x20block:','Missing\x20binding\x20parameters!','all','squel','../../../mysqldb','BlackLists','Missing\x20ListId\x20parameter!','unlinkSync','dialCheckDuplicateType','resume','CSV\x20import\x20process\x20stopped!','id\x20IN\x20?','createReadStream','scheduledAt','Duplicate\x20Contact','isValid','contact:csv_','ListId','query','phone\x20not\x20specified!','firstName\x20not\x20specified!','message','deletedAt\x20IS\x20NULL','isNil','email','error','updatedAt','email\x20format\x20is\x20not\x20valid!','sequelize','outbound','The\x20row\x20is\x20empty\x20or\x20the\x20number\x20of\x20parameters\x20does\x20not\x20match\x20the\x20columns!','exit','from','lodash','VoiceQueue','undefined','contact','Lists','CmList','where','fromQuery','findAll','select','errors','CmContact','parse','catch','createdAt','ListId\x20=\x20?','phone\x20IS\x20NOT\x20NULL','\x20=\x20?','keys','NOW()','pause','str','onlyIfOpen','duplicate','SIGINT','cm_hopper_black','../../../api/cmContact/cmContact.socket','push','CampaignId','api','info','inspect','register','into','CSV\x20parse\x20error','checkHopper','Campaign','insert','emit','find','cmContact','stringify','cm_hopper_final','birthDate','then','VoiceQueueId','papaparse','Missing\x20filepath\x20parameter!','create','cm_contacts','ContactId','length','Missing\x20socket_timestamp\x20parameter!','calleridnum','phone','null'];(function(_0x35fba9,_0x136d8f){const _0xaf3612=function(_0x2c2315){while(--_0x2c2315){_0x35fba9['push'](_0x35fba9['shift']());}};_0xaf3612(++_0x136d8f);}(a830_0x136d,0x105));const a830_0xaf36=function(_0x35fba9,_0x136d8f){_0x35fba9=_0x35fba9-0x0;let _0xaf3612=a830_0x136d[_0x35fba9];return _0xaf3612;};const _0x2d8ff7=a830_0xaf36;'use strict';const util=require('util'),_=require(_0x2d8ff7('0x4f')),fs=require('fs'),squel=require(_0x2d8ff7('0x31')),Papa=require(_0x2d8ff7('0x1a')),moment=require('moment'),db=require(_0x2d8ff7('0x32'))['db'],logger=require(_0x2d8ff7('0x2a'))(_0x2d8ff7('0x9')),{getSocket}=require('../../../rediscache'),socket=getSocket();require(_0x2d8ff7('0x6'))[_0x2d8ff7('0xc')](socket);let FILEPATH,FIELDS,LISTID,COMPANYID,DUPLICATES,SOCKET_TIMESTAMP;try{if(!process[_0x2d8ff7('0x27')][0x2]||process[_0x2d8ff7('0x27')][0x2]==='undefined'||process[_0x2d8ff7('0x27')][0x2]===_0x2d8ff7('0x23'))throw new Error(_0x2d8ff7('0x1b'));FILEPATH=process[_0x2d8ff7('0x27')][0x2];if(!process[_0x2d8ff7('0x27')][0x3]||process[_0x2d8ff7('0x27')][0x3]===_0x2d8ff7('0x51')||process[_0x2d8ff7('0x27')][0x3]===_0x2d8ff7('0x23')||!process[_0x2d8ff7('0x27')][0x4]||process[_0x2d8ff7('0x27')][0x4]===_0x2d8ff7('0x51')||process[_0x2d8ff7('0x27')][0x4]===_0x2d8ff7('0x23'))throw new Error(_0x2d8ff7('0x2f'));FIELDS=_['zipObject'](process[_0x2d8ff7('0x27')][0x3]['split'](','),process[_0x2d8ff7('0x27')][0x4][_0x2d8ff7('0x2c')](','));if(!process['argv'][0x5]||process[_0x2d8ff7('0x27')][0x5]==='undefined'||process['argv'][0x5]===_0x2d8ff7('0x23'))throw new Error(_0x2d8ff7('0x34'));LISTID=process['argv'][0x5],COMPANYID=process['argv'][0x6]&&process[_0x2d8ff7('0x27')][0x6]!=='undefined'&&process['argv'][0x6]!=='null'?process['argv'][0x6]:null,DUPLICATES=process[_0x2d8ff7('0x27')][0x7]&&process[_0x2d8ff7('0x27')][0x7]!=='undefined'&&process[_0x2d8ff7('0x27')][0x7]!==_0x2d8ff7('0x23')?process['argv'][0x7]:null;if(!process[_0x2d8ff7('0x27')][0x8]||process['argv'][0x8]===_0x2d8ff7('0x51')||process[_0x2d8ff7('0x27')][0x8]===_0x2d8ff7('0x23'))throw new Error(_0x2d8ff7('0x20'));SOCKET_TIMESTAMP=process[_0x2d8ff7('0x27')][0x8];}catch(a830_0x2c2315){logger[_0x2d8ff7('0x47')](a830_0x2c2315),endCsv();}let total=0x0,success=0x0,errors=0x0,duplicates=0x0,rows=[],hopperContacts='',promises=[];function handleCheckRowError(_0x301e63,_0x368b52,_0x2d5ef5,_0x2b6916){const _0x24b1e8=_0x2d8ff7,_0x5c4053={'message':_0x368b52};return _0x5c4053[_0x301e63]=!![],_0x2d5ef5&&(_0x5c4053[_0x24b1e8('0x52')]=_0x2d5ef5),_0x2b6916&&(_0x5c4053['index']=_0x2b6916),_0x5c4053;}function isEmail(_0x53531e){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'](_0x53531e);}function checkRow(_0x69218f,_0x94f6f2,_0x5a620a){return new Promise(function(_0x2e00e0,_0x42a9f6){const _0x138a9e=a830_0xaf36;if(_[_0x138a9e('0x45')](_0x69218f))return _0x42a9f6(handleCheckRowError(_0x138a9e('0x47'),_0x138a9e('0x4c'),null,_0x5a620a));if(_0x69218f[_0x138a9e('0x59')]&&_0x69218f[_0x138a9e('0x59')][_0x138a9e('0x1f')]){const _0x5e48bf=_['map'](_0x69218f['errors'],'message')['join'](';');return _0x42a9f6(handleCheckRowError(_0x138a9e('0x47'),_0x5e48bf,null,_0x5a620a));}const _0x2d3c73={};for(const _0x39370e in FIELDS){typeof FIELDS[_0x39370e]!==_0x138a9e('0x51')&&FIELDS[_0x39370e]&&(_0x2d3c73[_0x39370e]=_0x69218f['data'][0x0][FIELDS[_0x39370e]]||_0x69218f['data'][0x0]['\ufeff'+FIELDS[_0x39370e]]);}if(!_0x2d3c73['firstName'])return _0x42a9f6(handleCheckRowError(_0x138a9e('0x47'),_0x138a9e('0x42'),null,_0x5a620a));if(!_0x2d3c73[_0x138a9e('0x22')])return _0x42a9f6(handleCheckRowError(_0x138a9e('0x47'),_0x138a9e('0x41'),null,_0x5a620a));if(_0x2d3c73[_0x138a9e('0x17')]){const _0x7555ae=moment(_0x2d3c73[_0x138a9e('0x17')],'YYYY-MM-DD');if(!_0x7555ae[_0x138a9e('0x3d')]())return _0x42a9f6(handleCheckRowError(_0x138a9e('0x47'),'birthDate\x20format\x20is\x20invalid,\x20YYYY-MM-DD\x20format\x20is\x20supported!',null,_0x5a620a));}if(_0x2d3c73[_0x138a9e('0x46')]){if(!isEmail(_0x2d3c73[_0x138a9e('0x46')]))return _0x42a9f6(handleCheckRowError(_0x138a9e('0x47'),_0x138a9e('0x49'),null,_0x5a620a));}_0x2d3c73['ListId']=LISTID,_0x2d3c73['CompanyId']=COMPANYID||undefined;if(DUPLICATES&&DUPLICATES[_0x138a9e('0x1f')]&&_0x94f6f2){const _0x281a94={};for(let _0x3f6464=0x0,_0x524bc7=DUPLICATES[_0x138a9e('0x1f')];_0x3f6464<_0x524bc7;_0x3f6464+=0x1){_0x281a94[DUPLICATES[_0x3f6464]]=_0x2d3c73[DUPLICATES[_0x3f6464]];}const _0x168958=_[_0x138a9e('0x13')](_0x94f6f2,_0x281a94);if(_0x168958)return _0x42a9f6(handleCheckRowError(_0x138a9e('0x3'),_0x138a9e('0x3c'),_0x168958,_0x5a620a));}return db['CmContact'][_0x138a9e('0x1c')](_0x2d3c73,{'raw':!![],'hooks':![],'fields':_[_0x138a9e('0x61')](_0x2d3c73)})[_0x138a9e('0x18')](function(_0x399a71){const _0x889caf=_0x138a9e;return DUPLICATES&&DUPLICATES[_0x889caf('0x1f')]&&_0x94f6f2&&_0x94f6f2[_0x889caf('0x7')](_['pick'](_0x2d3c73,DUPLICATES)),hopperContacts+=(hopperContacts?',':'')+_0x399a71['id'],_0x2e00e0();})['catch'](function(_0xa9c64a){const _0x328b68=_0x138a9e;return _0x42a9f6(handleCheckRowError('error','Error\x20while\x20creating\x20contact:\x20'+(_0xa9c64a['message']||JSON[_0x328b68('0x15')](_0xa9c64a)),null,_0x5a620a));});});}function checkHopper(){const _0x499783=_0x2d8ff7;function _0x4de55e(){return function(_0x467c63){const _0x5bce39=a830_0xaf36;logger[_0x5bce39('0x47')](_0x5bce39('0x14'),_0x5bce39('0xf'),util[_0x5bce39('0xb')](_0x467c63,{'showHidden':![],'depth':null}));};}const _0xec9dba=function(_0x3eb513,_0x90dab){const _0x21d39d=a830_0xaf36,_0x4b21fd=squel[_0x21d39d('0x11')]()[_0x21d39d('0xd')](_0x21d39d('0x29'))[_0x21d39d('0x56')]([_0x21d39d('0x22'),_0x21d39d('0x3b'),_0x21d39d('0x1e'),_0x21d39d('0x3f'),_0x90dab,'createdAt',_0x21d39d('0x48')],squel[_0x21d39d('0x58')]()[_0x21d39d('0x2b')]('phone',_0x21d39d('0x22'))[_0x21d39d('0x2b')](_0x21d39d('0x62'),_0x21d39d('0x3b'))[_0x21d39d('0x2b')]('id','ContactId')['field'](LISTID[_0x21d39d('0x2d')](),_0x21d39d('0x3f'))[_0x21d39d('0x2b')](_0x3eb513['id'][_0x21d39d('0x2d')](),_0x90dab)[_0x21d39d('0x2b')](_0x21d39d('0x62'),_0x21d39d('0x5d'))[_0x21d39d('0x2b')](_0x21d39d('0x62'),_0x21d39d('0x48'))[_0x21d39d('0x4e')]('cm_contacts')['where'](_0x21d39d('0x44'))[_0x21d39d('0x55')](_0x21d39d('0x5e'),LISTID[_0x21d39d('0x2d')]())[_0x21d39d('0x55')]('phone\x20IS\x20NOT\x20NULL')['where'](_0x21d39d('0x25'),squel[_0x21d39d('0x58')]()[_0x21d39d('0x2b')](_0x21d39d('0x22'))[_0x21d39d('0x4e')](_0x21d39d('0x29'))['where'](_0x90dab+_0x21d39d('0x60'),_0x3eb513['id'][_0x21d39d('0x2d')]())))[_0x21d39d('0x2d')]();return _0x4b21fd;},_0x24eeca=function(_0x53694b,_0x548e67){const _0x1b257b=a830_0xaf36,_0x36b66f=squel[_0x1b257b('0x11')]()[_0x1b257b('0xd')]('cm_hopper')['fromQuery']([_0x1b257b('0x22'),'scheduledAt',_0x1b257b('0x1e'),_0x1b257b('0x3f'),_0x548e67,_0x1b257b('0x5d'),_0x1b257b('0x48')],squel['select']()[_0x1b257b('0x2b')]('phone',_0x1b257b('0x22'))[_0x1b257b('0x2b')](_0x1b257b('0x62'),_0x1b257b('0x3b'))['field']('id',_0x1b257b('0x1e'))[_0x1b257b('0x2b')](LISTID[_0x1b257b('0x2d')](),_0x1b257b('0x3f'))[_0x1b257b('0x2b')](_0x53694b['id']['toString'](),_0x548e67)[_0x1b257b('0x2b')](_0x1b257b('0x62'),_0x1b257b('0x5d'))[_0x1b257b('0x2b')]('NOW()',_0x1b257b('0x48'))['from'](_0x1b257b('0x1d'))['where']('deletedAt\x20IS\x20NULL')['where'](_0x1b257b('0x5e'),LISTID['toString']())['where'](_0x1b257b('0x39'),squel[_0x1b257b('0x1')](hopperContacts))[_0x1b257b('0x55')]('phone\x20IS\x20NOT\x20NULL')['where']('phone\x20NOT\x20IN\x20(?)',squel[_0x1b257b('0x58')]()[_0x1b257b('0x2b')](_0x1b257b('0x21'))[_0x1b257b('0x4e')](_0x1b257b('0x16'))[_0x1b257b('0x55')](_0x548e67+'\x20=\x20?',_0x53694b['id']['toString']()))[_0x1b257b('0x55')](_0x1b257b('0x25'),squel[_0x1b257b('0x58')]()['field'](_0x1b257b('0x22'))[_0x1b257b('0x4e')](_0x1b257b('0x29'))['where'](_0x548e67+_0x1b257b('0x60'),_0x53694b['id']['toString']())))[_0x1b257b('0x2d')]();return _0x36b66f;};function _0x42121f(_0x421eb1,_0x455613){const _0x15d1e4=a830_0xaf36,_0x1cb005=squel[_0x15d1e4('0x11')]()[_0x15d1e4('0xd')](_0x15d1e4('0x29'))[_0x15d1e4('0x56')](['phone',_0x15d1e4('0x3b'),_0x15d1e4('0x1e'),_0x15d1e4('0x3f'),_0x455613,_0x15d1e4('0x5d'),_0x15d1e4('0x48')],squel['select']()[_0x15d1e4('0x2b')](_0x15d1e4('0x22'),'phone')[_0x15d1e4('0x2b')](_0x15d1e4('0x62'),'scheduledAt')[_0x15d1e4('0x2b')]('id',_0x15d1e4('0x1e'))[_0x15d1e4('0x2b')](LISTID['toString'](),_0x15d1e4('0x3f'))[_0x15d1e4('0x2b')](_0x421eb1['id'][_0x15d1e4('0x2d')](),_0x455613)[_0x15d1e4('0x2b')]('NOW()',_0x15d1e4('0x5d'))['field'](_0x15d1e4('0x62'),'updatedAt')[_0x15d1e4('0x4e')](_0x15d1e4('0x1d'))[_0x15d1e4('0x55')](_0x15d1e4('0x44'))[_0x15d1e4('0x55')](_0x15d1e4('0x5e'),LISTID[_0x15d1e4('0x2d')]())[_0x15d1e4('0x55')]('id\x20IN\x20?',squel[_0x15d1e4('0x1')](hopperContacts))['where'](_0x15d1e4('0x5f')))[_0x15d1e4('0x2d')]();return _0x1cb005;}function _0x156cc7(_0x38fd05,_0x471ea7){const _0xb8e75f=a830_0xaf36,_0x2db9c7=squel[_0xb8e75f('0x11')]()[_0xb8e75f('0xd')](_0xb8e75f('0x5'))[_0xb8e75f('0x56')]([_0xb8e75f('0x22'),'ContactId',_0xb8e75f('0x3f'),_0x471ea7,_0xb8e75f('0x5d'),_0xb8e75f('0x48')],squel[_0xb8e75f('0x58')]()[_0xb8e75f('0x2b')](_0xb8e75f('0x22'),_0xb8e75f('0x22'))[_0xb8e75f('0x2b')]('id',_0xb8e75f('0x1e'))[_0xb8e75f('0x2b')](LISTID[_0xb8e75f('0x2d')](),'ListId')[_0xb8e75f('0x2b')](_0x38fd05['id'][_0xb8e75f('0x2d')](),_0x471ea7)[_0xb8e75f('0x2b')]('NOW()','createdAt')[_0xb8e75f('0x2b')](_0xb8e75f('0x62'),'updatedAt')['from'](_0xb8e75f('0x1d'))[_0xb8e75f('0x55')](_0xb8e75f('0x44'))[_0xb8e75f('0x55')](_0xb8e75f('0x5e'),LISTID[_0xb8e75f('0x2d')]())['where'](_0xb8e75f('0x39'),squel[_0xb8e75f('0x1')](hopperContacts))[_0xb8e75f('0x55')]('phone\x20IS\x20NOT\x20NULL'))['toString']();return _0x2db9c7;}return db[_0x499783('0x50')][_0x499783('0x57')]({'where':{'type':_0x499783('0x4b')},'attributes':['id',_0x499783('0x36')],'include':[{'model':db[_0x499783('0x54')],'as':_0x499783('0x53'),'where':{'id':LISTID}}]})['then'](function(_0x59362c){const _0x2d28ac=_0x499783,_0x1d820a=[];if(_0x59362c)for(let _0x179f20=0x0,_0x3d71aa;_0x179f20<_0x59362c['length'];_0x179f20+=0x1){_0x3d71aa=_0x59362c[_0x179f20][_0x2d28ac('0x28')]({'plain':!![]});switch(_0x3d71aa[_0x2d28ac('0x36')]){case'always':_0x1d820a[_0x2d28ac('0x7')](db['sequelize'][_0x2d28ac('0x40')](_0x24eeca(_0x3d71aa,_0x2d28ac('0x19')))[_0x2d28ac('0x18')](function(){})[_0x2d28ac('0x5c')](_0x4de55e()));break;case'onlyIfOpen':_0x1d820a[_0x2d28ac('0x7')](db[_0x2d28ac('0x4a')][_0x2d28ac('0x40')](_0xec9dba(_0x3d71aa,_0x2d28ac('0x19')))[_0x2d28ac('0x18')](function(){})[_0x2d28ac('0x5c')](_0x4de55e()));break;default:_0x1d820a[_0x2d28ac('0x7')](db[_0x2d28ac('0x4a')][_0x2d28ac('0x40')](_0x42121f(_0x3d71aa,_0x2d28ac('0x19')))[_0x2d28ac('0x18')](function(){})[_0x2d28ac('0x5c')](_0x4de55e()));}}return _0x1d820a;})[_0x499783('0x30')]()[_0x499783('0x18')](function(){const _0x3655d6=_0x499783;return db[_0x3655d6('0x50')][_0x3655d6('0x57')]({'where':{'type':_0x3655d6('0x4b')},'attributes':['id'],'include':[{'model':db[_0x3655d6('0x54')],'as':_0x3655d6('0x33'),'where':{'id':LISTID}}]})['then'](function(_0x14ec41){const _0x4d717c=_0x3655d6,_0x4c6e9e=[];if(_0x14ec41)for(let _0x57988d=0x0,_0x158b87;_0x57988d<_0x14ec41['length'];_0x57988d+=0x1){_0x158b87=_0x14ec41[_0x57988d]['get']({'plain':!![]}),_0x4c6e9e['push'](db[_0x4d717c('0x4a')]['query'](_0x156cc7(_0x158b87,_0x4d717c('0x19')))[_0x4d717c('0x18')](function(){})[_0x4d717c('0x5c')](_0x4de55e()));}return _0x4c6e9e;})['all']();})[_0x499783('0x18')](function(){const _0x4f0285=_0x499783;return db[_0x4f0285('0x10')][_0x4f0285('0x57')]({'attributes':['id',_0x4f0285('0x36')],'include':[{'model':db['CmList'],'as':'Lists','where':{'id':LISTID}}]})[_0x4f0285('0x18')](function(_0x1c7a21){const _0x3d97c7=_0x4f0285,_0x518c91=[];if(_0x1c7a21)for(let _0x4b309b=0x0,_0x3c848a;_0x4b309b<_0x1c7a21[_0x3d97c7('0x1f')];_0x4b309b+=0x1){_0x3c848a=_0x1c7a21[_0x4b309b][_0x3d97c7('0x28')]({'plain':!![]});switch(_0x3c848a[_0x3d97c7('0x36')]){case'always':_0x518c91[_0x3d97c7('0x7')](db[_0x3d97c7('0x4a')]['query'](_0x24eeca(_0x3c848a,_0x3d97c7('0x8')))['then'](function(){})[_0x3d97c7('0x5c')](_0x4de55e()));break;case _0x3d97c7('0x2'):_0x518c91[_0x3d97c7('0x7')](db[_0x3d97c7('0x4a')]['query'](_0xec9dba(_0x3c848a,'CampaignId'))['then'](function(){})[_0x3d97c7('0x5c')](_0x4de55e()));break;default:_0x518c91['push'](db[_0x3d97c7('0x4a')][_0x3d97c7('0x40')](_0x42121f(_0x3c848a,_0x3d97c7('0x8')))[_0x3d97c7('0x18')](function(){})[_0x3d97c7('0x5c')](_0x4de55e()));}}return _0x518c91;})[_0x4f0285('0x30')]();})[_0x499783('0x18')](function(){const _0x497768=_0x499783;return db[_0x497768('0x10')]['findAll']({'attributes':['id'],'include':[{'model':db[_0x497768('0x54')],'as':_0x497768('0x33'),'where':{'id':LISTID}}]})['then'](function(_0x414bdf){const _0x246b12=_0x497768,_0xbefc8b=[];if(_0x414bdf)for(let _0x215463=0x0,_0x137026;_0x215463<_0x414bdf['length'];_0x215463+=0x1){_0x137026=_0x414bdf[_0x215463]['get']({'plain':!![]}),_0xbefc8b['push'](db[_0x246b12('0x4a')]['query'](_0x156cc7(_0x137026,_0x246b12('0x8')))[_0x246b12('0x18')](function(){})[_0x246b12('0x5c')](_0x4de55e()));}return _0xbefc8b;})[_0x497768('0x30')]();})[_0x499783('0x5c')](function(_0x51f494){const _0x2fc016=_0x499783;logger[_0x2fc016('0x47')](_0x2fc016('0x26'),'generalCheckHopper',_0x51f494[_0x2fc016('0x43')]);});}const processPromises=function(_0x37f7fc){const _0x485c80=_0x2d8ff7;return Promise[_0x485c80('0x30')](promises)[_0x485c80('0x5c')](function(_0x25cf23){const _0x5cead2=_0x485c80;logger[_0x5cead2('0x47')](_0x5cead2('0x2e'),JSON[_0x5cead2('0x15')](_0x25cf23));})[_0x485c80('0x24')](function(){const _0x40b219=_0x485c80;socket[_0x40b219('0x12')](_0x40b219('0x3e')+SOCKET_TIMESTAMP,{'success':success,'errors':errors,'duplicates':duplicates,'rows':rows}),promises=[],success=0x0,errors=0x0,duplicates=0x0,rows=[];if(_0x37f7fc)return _0x37f7fc[_0x40b219('0x37')]();});},endCsv=function(){return Promise['resolve']()['then'](function(){if(hopperContacts)return checkHopper();})['then'](function(){const _0xefbb0a=a830_0xaf36;socket[_0xefbb0a('0x12')]('contact:csv_'+SOCKET_TIMESTAMP,{'finished':!![],'success':success,'errors':errors,'duplicates':duplicates,'rows':rows});try{fs[_0xefbb0a('0x35')](FILEPATH);}catch(_0x4e605a){logger[_0xefbb0a('0x47')]('Unable\x20to\x20delete\x20temp\x20file:',JSON[_0xefbb0a('0x15')](_0x4e605a));}finally{process[_0xefbb0a('0x4d')](0x0);}});};process['on'](_0x2d8ff7('0x4'),function(){const _0x51114d=_0x2d8ff7;logger[_0x51114d('0xa')](_0x51114d('0x38')),endCsv();});function main(){const _0x20036d=_0x2d8ff7;return Promise['resolve']()[_0x20036d('0x18')](function(){const _0x5cc574=_0x20036d;if(DUPLICATES)return DUPLICATES=DUPLICATES['split'](','),db[_0x5cc574('0x5a')]['findAll']({'where':{'ListId':LISTID},'attributes':DUPLICATES,'raw':!![]});})['then'](function(_0x2483b7){const _0x383cb2=_0x20036d,_0xa27888=fs[_0x383cb2('0x3a')](FILEPATH,{'highWaterMark':0xf*0x400*0x400});Papa[_0x383cb2('0x5b')](_0xa27888,{'header':!![],'skipEmptyLines':!![],'step':function(_0x89c9c1,_0x374f30){const _0x34fb56=_0x383cb2;total+=0x1;const _0x5d008d=total;promises['push'](checkRow(_0x89c9c1,_0x2483b7,_0x5d008d)[_0x34fb56('0x18')](function(){success+=0x1;})[_0x34fb56('0x5c')](function(_0x4cad74){const _0x15124f=_0x34fb56;if(_0x4cad74[_0x15124f('0x47')])errors+=0x1,delete _0x4cad74[_0x15124f('0x47')];else _0x4cad74[_0x15124f('0x3')]&&(duplicates+=0x1,delete _0x4cad74[_0x15124f('0x3')]);rows[_0x15124f('0x7')](_0x4cad74);}));if(total%0xc8===0x0)return _0x374f30[_0x34fb56('0x0')](),processPromises(_0x374f30);},'complete':function(){return processPromises()['then'](function(){logger['info']('CSV\x20parsed\x20correctly!'),endCsv();});},'error':function(_0x1ea9d1){const _0x163c33=_0x383cb2;logger[_0x163c33('0xa')](_0x163c33('0xe'),JSON[_0x163c33('0x15')](_0x1ea9d1)),endCsv();}});})[_0x20036d('0x5c')](function(_0x34e836){const _0x37d3ea=_0x20036d;logger[_0x37d3ea('0x47')]('Error\x20executing\x20contact\x20csv\x20import:',JSON[_0x37d3ea('0x15')](_0x34e836));});}main(); \ No newline at end of file +const a830_0xff1e=['undefined','YYYY-MM-DD','CompanyId','lodash','create','phone\x20not\x20specified!','join','ListId','toString','CSV\x20parse\x20error','from','VoiceQueueId','contact:csv_','BlackLists','Error\x20while\x20creating\x20contact:\x20','CmContact','split','createdAt','errors','CSV\x20parsed\x20correctly!','field','index','str','squel','data','cmContact','insert','findAll','deletedAt\x20IS\x20NULL','map','VoiceQueue','null','fromQuery','phone\x20NOT\x20IN\x20(?)','birthDate\x20format\x20is\x20invalid,\x20YYYY-MM-DD\x20format\x20is\x20supported!','email','keys','papaparse','birthDate','finally','select','where','checkHopper','onlyIfOpen','resolve','cm_hopper_black','firstName','unlinkSync','updatedAt','Missing\x20filepath\x20parameter!','moment','Missing\x20binding\x20parameters!','Lists','argv','duplicate','calleridnum','catch','Missing\x20socket_timestamp\x20parameter!','dialCheckDuplicateType','message','Duplicate\x20Contact','pause','pick','inspect','../../../rediscache','firstName\x20not\x20specified!','The\x20row\x20is\x20empty\x20or\x20the\x20number\x20of\x20parameters\x20does\x20not\x20match\x20the\x20columns!','then','util','get','error','CSV\x20import\x20process\x20stopped!','id\x20IN\x20?','parse','isNil','emit','cm_hopper_final','phone','NOW()','length','CmList','phone\x20IS\x20NOT\x20NULL','sequelize','info','resume','scheduledAt','email\x20format\x20is\x20not\x20valid!','ListId\x20=\x20?','Campaign','register','test','into','all','outbound','isValid','always','CampaignId','cm_contacts','push','\x20=\x20?','Missing\x20ListId\x20parameter!','find','stringify','cm_hopper','query','Unable\x20to\x20delete\x20temp\x20file:','ContactId','Error\x20processing\x20rows\x20block:','zipObject'];(function(_0x26de00,_0xff1e68){const _0x2bf6e7=function(_0x3133a1){while(--_0x3133a1){_0x26de00['push'](_0x26de00['shift']());}};_0x2bf6e7(++_0xff1e68);}(a830_0xff1e,0x16e));const a830_0x2bf6=function(_0x26de00,_0xff1e68){_0x26de00=_0x26de00-0x0;let _0x2bf6e7=a830_0xff1e[_0x26de00];return _0x2bf6e7;};const _0x161af1=a830_0x2bf6;'use strict';const util=require(_0x161af1('0x1d')),_=require(_0x161af1('0x49')),fs=require('fs'),squel=require(_0x161af1('0x5d')),Papa=require(_0x161af1('0x6b')),moment=require(_0x161af1('0xb')),db=require('../../../mysqldb')['db'],logger=require('../../../config/logger')('api'),{getSocket}=require(_0x161af1('0x19')),socket=getSocket();require('../../../api/cmContact/cmContact.socket')[_0x161af1('0x32')](socket);let FILEPATH,FIELDS,LISTID,COMPANYID,DUPLICATES,SOCKET_TIMESTAMP;try{if(!process[_0x161af1('0xe')][0x2]||process['argv'][0x2]===_0x161af1('0x46')||process[_0x161af1('0xe')][0x2]==='null')throw new Error(_0x161af1('0xa'));FILEPATH=process[_0x161af1('0xe')][0x2];if(!process[_0x161af1('0xe')][0x3]||process['argv'][0x3]===_0x161af1('0x46')||process[_0x161af1('0xe')][0x3]===_0x161af1('0x65')||!process[_0x161af1('0xe')][0x4]||process[_0x161af1('0xe')][0x4]===_0x161af1('0x46')||process[_0x161af1('0xe')][0x4]==='null')throw new Error(_0x161af1('0xc'));FIELDS=_[_0x161af1('0x45')](process[_0x161af1('0xe')][0x3][_0x161af1('0x56')](','),process[_0x161af1('0xe')][0x4][_0x161af1('0x56')](','));if(!process['argv'][0x5]||process[_0x161af1('0xe')][0x5]===_0x161af1('0x46')||process[_0x161af1('0xe')][0x5]===_0x161af1('0x65'))throw new Error(_0x161af1('0x3d'));LISTID=process[_0x161af1('0xe')][0x5],COMPANYID=process[_0x161af1('0xe')][0x6]&&process[_0x161af1('0xe')][0x6]!=='undefined'&&process['argv'][0x6]!==_0x161af1('0x65')?process['argv'][0x6]:null,DUPLICATES=process[_0x161af1('0xe')][0x7]&&process[_0x161af1('0xe')][0x7]!=='undefined'&&process[_0x161af1('0xe')][0x7]!=='null'?process[_0x161af1('0xe')][0x7]:null;if(!process['argv'][0x8]||process[_0x161af1('0xe')][0x8]===_0x161af1('0x46')||process[_0x161af1('0xe')][0x8]==='null')throw new Error(_0x161af1('0x12'));SOCKET_TIMESTAMP=process[_0x161af1('0xe')][0x8];}catch(a830_0x3133a1){logger[_0x161af1('0x1f')](a830_0x3133a1),endCsv();}let total=0x0,success=0x0,errors=0x0,duplicates=0x0,rows=[],hopperContacts='',promises=[];function handleCheckRowError(_0x33ea87,_0x2a49ad,_0xccf469,_0x14704f){const _0x3fcc31=_0x161af1,_0x20c478={'message':_0x2a49ad};return _0x20c478[_0x33ea87]=!![],_0xccf469&&(_0x20c478['contact']=_0xccf469),_0x14704f&&(_0x20c478[_0x3fcc31('0x5b')]=_0x14704f),_0x20c478;}function isEmail(_0x4e5ae0){const _0x132eac=_0x161af1;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))*$/[_0x132eac('0x33')](_0x4e5ae0);}function checkRow(_0xc0c23a,_0x416add,_0x3db57f){return new Promise(function(_0x39a9a9,_0x501c04){const _0x5de0c3=a830_0x2bf6;if(_[_0x5de0c3('0x23')](_0xc0c23a))return _0x501c04(handleCheckRowError('error',_0x5de0c3('0x1b'),null,_0x3db57f));if(_0xc0c23a[_0x5de0c3('0x58')]&&_0xc0c23a[_0x5de0c3('0x58')]['length']){const _0x10258b=_[_0x5de0c3('0x63')](_0xc0c23a[_0x5de0c3('0x58')],_0x5de0c3('0x14'))[_0x5de0c3('0x4c')](';');return _0x501c04(handleCheckRowError(_0x5de0c3('0x1f'),_0x10258b,null,_0x3db57f));}const _0x874271={};for(const _0xf2bac7 in FIELDS){typeof FIELDS[_0xf2bac7]!==_0x5de0c3('0x46')&&FIELDS[_0xf2bac7]&&(_0x874271[_0xf2bac7]=_0xc0c23a[_0x5de0c3('0x5e')][0x0][FIELDS[_0xf2bac7]]||_0xc0c23a[_0x5de0c3('0x5e')][0x0]['\ufeff'+FIELDS[_0xf2bac7]]);}if(!_0x874271[_0x5de0c3('0x7')])return _0x501c04(handleCheckRowError(_0x5de0c3('0x1f'),_0x5de0c3('0x1a'),null,_0x3db57f));if(!_0x874271[_0x5de0c3('0x26')])return _0x501c04(handleCheckRowError(_0x5de0c3('0x1f'),_0x5de0c3('0x4b'),null,_0x3db57f));if(_0x874271[_0x5de0c3('0x6c')]){const _0x7e83b7=moment(_0x874271[_0x5de0c3('0x6c')],_0x5de0c3('0x47'));if(!_0x7e83b7[_0x5de0c3('0x37')]())return _0x501c04(handleCheckRowError(_0x5de0c3('0x1f'),_0x5de0c3('0x68'),null,_0x3db57f));}if(_0x874271[_0x5de0c3('0x69')]){if(!isEmail(_0x874271[_0x5de0c3('0x69')]))return _0x501c04(handleCheckRowError(_0x5de0c3('0x1f'),_0x5de0c3('0x2f'),null,_0x3db57f));}_0x874271[_0x5de0c3('0x4d')]=LISTID,_0x874271[_0x5de0c3('0x48')]=COMPANYID||undefined;if(DUPLICATES&&DUPLICATES[_0x5de0c3('0x28')]&&_0x416add){const _0x395df={};for(let _0x22c9ec=0x0,_0x6fd2b5=DUPLICATES['length'];_0x22c9ec<_0x6fd2b5;_0x22c9ec+=0x1){_0x395df[DUPLICATES[_0x22c9ec]]=_0x874271[DUPLICATES[_0x22c9ec]];}const _0x14a995=_[_0x5de0c3('0x3e')](_0x416add,_0x395df);if(_0x14a995)return _0x501c04(handleCheckRowError(_0x5de0c3('0xf'),_0x5de0c3('0x15'),_0x14a995,_0x3db57f));}return db[_0x5de0c3('0x55')][_0x5de0c3('0x4a')](_0x874271,{'raw':!![],'hooks':![],'fields':_[_0x5de0c3('0x6a')](_0x874271)})[_0x5de0c3('0x1c')](function(_0x545ffa){const _0x2e9c7d=_0x5de0c3;return DUPLICATES&&DUPLICATES[_0x2e9c7d('0x28')]&&_0x416add&&_0x416add[_0x2e9c7d('0x3b')](_[_0x2e9c7d('0x17')](_0x874271,DUPLICATES)),hopperContacts+=(hopperContacts?',':'')+_0x545ffa['id'],_0x39a9a9();})[_0x5de0c3('0x11')](function(_0x1ef30e){const _0x3e44bd=_0x5de0c3;return _0x501c04(handleCheckRowError(_0x3e44bd('0x1f'),_0x3e44bd('0x54')+(_0x1ef30e[_0x3e44bd('0x14')]||JSON[_0x3e44bd('0x3f')](_0x1ef30e)),null,_0x3db57f));});});}function checkHopper(){const _0x498ebe=_0x161af1;function _0x311798(){return function(_0x4fc645){const _0x347aeb=a830_0x2bf6;logger[_0x347aeb('0x1f')](_0x347aeb('0x5f'),_0x347aeb('0x3'),util[_0x347aeb('0x18')](_0x4fc645,{'showHidden':![],'depth':null}));};}const _0x2b2ba9=function(_0xfc9534,_0x2b67b1){const _0x1ef0d0=a830_0x2bf6,_0x13173d=squel[_0x1ef0d0('0x60')]()[_0x1ef0d0('0x34')]('cm_hopper')['fromQuery'](['phone',_0x1ef0d0('0x2e'),_0x1ef0d0('0x43'),_0x1ef0d0('0x4d'),_0x2b67b1,_0x1ef0d0('0x57'),_0x1ef0d0('0x9')],squel[_0x1ef0d0('0x1')]()[_0x1ef0d0('0x5a')](_0x1ef0d0('0x26'),_0x1ef0d0('0x26'))[_0x1ef0d0('0x5a')](_0x1ef0d0('0x27'),_0x1ef0d0('0x2e'))[_0x1ef0d0('0x5a')]('id','ContactId')[_0x1ef0d0('0x5a')](LISTID[_0x1ef0d0('0x4e')](),'ListId')['field'](_0xfc9534['id'][_0x1ef0d0('0x4e')](),_0x2b67b1)['field'](_0x1ef0d0('0x27'),_0x1ef0d0('0x57'))[_0x1ef0d0('0x5a')](_0x1ef0d0('0x27'),'updatedAt')[_0x1ef0d0('0x50')](_0x1ef0d0('0x3a'))['where']('deletedAt\x20IS\x20NULL')[_0x1ef0d0('0x2')](_0x1ef0d0('0x30'),LISTID[_0x1ef0d0('0x4e')]())[_0x1ef0d0('0x2')]('phone\x20IS\x20NOT\x20NULL')['where'](_0x1ef0d0('0x67'),squel[_0x1ef0d0('0x1')]()[_0x1ef0d0('0x5a')](_0x1ef0d0('0x26'))['from'](_0x1ef0d0('0x40'))[_0x1ef0d0('0x2')](_0x2b67b1+_0x1ef0d0('0x3c'),_0xfc9534['id'][_0x1ef0d0('0x4e')]())))[_0x1ef0d0('0x4e')]();return _0x13173d;},_0x15db9e=function(_0xc528ca,_0x3ff465){const _0x3824a4=a830_0x2bf6,_0x2bf84d=squel[_0x3824a4('0x60')]()[_0x3824a4('0x34')](_0x3824a4('0x40'))[_0x3824a4('0x66')]([_0x3824a4('0x26'),_0x3824a4('0x2e'),_0x3824a4('0x43'),_0x3824a4('0x4d'),_0x3ff465,_0x3824a4('0x57'),_0x3824a4('0x9')],squel[_0x3824a4('0x1')]()[_0x3824a4('0x5a')](_0x3824a4('0x26'),_0x3824a4('0x26'))[_0x3824a4('0x5a')](_0x3824a4('0x27'),_0x3824a4('0x2e'))['field']('id',_0x3824a4('0x43'))[_0x3824a4('0x5a')](LISTID[_0x3824a4('0x4e')](),_0x3824a4('0x4d'))[_0x3824a4('0x5a')](_0xc528ca['id'][_0x3824a4('0x4e')](),_0x3ff465)[_0x3824a4('0x5a')](_0x3824a4('0x27'),'createdAt')[_0x3824a4('0x5a')]('NOW()',_0x3824a4('0x9'))[_0x3824a4('0x50')](_0x3824a4('0x3a'))[_0x3824a4('0x2')](_0x3824a4('0x62'))[_0x3824a4('0x2')](_0x3824a4('0x30'),LISTID[_0x3824a4('0x4e')]())['where'](_0x3824a4('0x21'),squel[_0x3824a4('0x5c')](hopperContacts))[_0x3824a4('0x2')]('phone\x20IS\x20NOT\x20NULL')['where']('phone\x20NOT\x20IN\x20(?)',squel[_0x3824a4('0x1')]()[_0x3824a4('0x5a')](_0x3824a4('0x10'))[_0x3824a4('0x50')](_0x3824a4('0x25'))[_0x3824a4('0x2')](_0x3ff465+'\x20=\x20?',_0xc528ca['id']['toString']()))[_0x3824a4('0x2')](_0x3824a4('0x67'),squel[_0x3824a4('0x1')]()[_0x3824a4('0x5a')](_0x3824a4('0x26'))[_0x3824a4('0x50')](_0x3824a4('0x40'))['where'](_0x3ff465+_0x3824a4('0x3c'),_0xc528ca['id']['toString']())))['toString']();return _0x2bf84d;};function _0x5298bd(_0x11735f,_0x1b7c0e){const _0xea9c0a=a830_0x2bf6,_0x49458e=squel[_0xea9c0a('0x60')]()['into'](_0xea9c0a('0x40'))['fromQuery']([_0xea9c0a('0x26'),_0xea9c0a('0x2e'),'ContactId',_0xea9c0a('0x4d'),_0x1b7c0e,'createdAt',_0xea9c0a('0x9')],squel[_0xea9c0a('0x1')]()[_0xea9c0a('0x5a')](_0xea9c0a('0x26'),_0xea9c0a('0x26'))[_0xea9c0a('0x5a')](_0xea9c0a('0x27'),_0xea9c0a('0x2e'))[_0xea9c0a('0x5a')]('id','ContactId')['field'](LISTID[_0xea9c0a('0x4e')](),_0xea9c0a('0x4d'))[_0xea9c0a('0x5a')](_0x11735f['id'][_0xea9c0a('0x4e')](),_0x1b7c0e)[_0xea9c0a('0x5a')](_0xea9c0a('0x27'),_0xea9c0a('0x57'))[_0xea9c0a('0x5a')](_0xea9c0a('0x27'),_0xea9c0a('0x9'))['from'](_0xea9c0a('0x3a'))['where'](_0xea9c0a('0x62'))['where'](_0xea9c0a('0x30'),LISTID['toString']())['where'](_0xea9c0a('0x21'),squel['str'](hopperContacts))[_0xea9c0a('0x2')](_0xea9c0a('0x2a')))[_0xea9c0a('0x4e')]();return _0x49458e;}function _0x3f64a8(_0x19db2a,_0xd1a34d){const _0x3b1db6=a830_0x2bf6,_0x5ce707=squel[_0x3b1db6('0x60')]()['into'](_0x3b1db6('0x6'))[_0x3b1db6('0x66')](['phone',_0x3b1db6('0x43'),_0x3b1db6('0x4d'),_0xd1a34d,_0x3b1db6('0x57'),_0x3b1db6('0x9')],squel[_0x3b1db6('0x1')]()['field'](_0x3b1db6('0x26'),_0x3b1db6('0x26'))[_0x3b1db6('0x5a')]('id','ContactId')[_0x3b1db6('0x5a')](LISTID['toString'](),'ListId')['field'](_0x19db2a['id'][_0x3b1db6('0x4e')](),_0xd1a34d)[_0x3b1db6('0x5a')]('NOW()',_0x3b1db6('0x57'))[_0x3b1db6('0x5a')](_0x3b1db6('0x27'),_0x3b1db6('0x9'))['from'](_0x3b1db6('0x3a'))['where'](_0x3b1db6('0x62'))['where']('ListId\x20=\x20?',LISTID['toString']())[_0x3b1db6('0x2')](_0x3b1db6('0x21'),squel[_0x3b1db6('0x5c')](hopperContacts))['where'](_0x3b1db6('0x2a')))[_0x3b1db6('0x4e')]();return _0x5ce707;}return db[_0x498ebe('0x64')][_0x498ebe('0x61')]({'where':{'type':_0x498ebe('0x36')},'attributes':['id',_0x498ebe('0x13')],'include':[{'model':db[_0x498ebe('0x29')],'as':_0x498ebe('0xd'),'where':{'id':LISTID}}]})[_0x498ebe('0x1c')](function(_0x15f03a){const _0x2f415b=_0x498ebe,_0xa9305a=[];if(_0x15f03a)for(let _0x161d33=0x0,_0x24af45;_0x161d33<_0x15f03a[_0x2f415b('0x28')];_0x161d33+=0x1){_0x24af45=_0x15f03a[_0x161d33]['get']({'plain':!![]});switch(_0x24af45[_0x2f415b('0x13')]){case _0x2f415b('0x38'):_0xa9305a[_0x2f415b('0x3b')](db[_0x2f415b('0x2b')][_0x2f415b('0x41')](_0x15db9e(_0x24af45,_0x2f415b('0x51')))[_0x2f415b('0x1c')](function(){})[_0x2f415b('0x11')](_0x311798()));break;case _0x2f415b('0x4'):_0xa9305a[_0x2f415b('0x3b')](db[_0x2f415b('0x2b')][_0x2f415b('0x41')](_0x2b2ba9(_0x24af45,_0x2f415b('0x51')))[_0x2f415b('0x1c')](function(){})[_0x2f415b('0x11')](_0x311798()));break;default:_0xa9305a[_0x2f415b('0x3b')](db['sequelize'][_0x2f415b('0x41')](_0x5298bd(_0x24af45,_0x2f415b('0x51')))[_0x2f415b('0x1c')](function(){})[_0x2f415b('0x11')](_0x311798()));}}return _0xa9305a;})['all']()['then'](function(){const _0x32f182=_0x498ebe;return db[_0x32f182('0x64')]['findAll']({'where':{'type':_0x32f182('0x36')},'attributes':['id'],'include':[{'model':db['CmList'],'as':_0x32f182('0x53'),'where':{'id':LISTID}}]})[_0x32f182('0x1c')](function(_0x16438f){const _0x122c2f=_0x32f182,_0x4b9812=[];if(_0x16438f)for(let _0x53b17f=0x0,_0x323e37;_0x53b17f<_0x16438f[_0x122c2f('0x28')];_0x53b17f+=0x1){_0x323e37=_0x16438f[_0x53b17f][_0x122c2f('0x1e')]({'plain':!![]}),_0x4b9812[_0x122c2f('0x3b')](db[_0x122c2f('0x2b')]['query'](_0x3f64a8(_0x323e37,_0x122c2f('0x51')))[_0x122c2f('0x1c')](function(){})[_0x122c2f('0x11')](_0x311798()));}return _0x4b9812;})[_0x32f182('0x35')]();})[_0x498ebe('0x1c')](function(){const _0x24aa5e=_0x498ebe;return db['Campaign'][_0x24aa5e('0x61')]({'attributes':['id','dialCheckDuplicateType'],'include':[{'model':db['CmList'],'as':_0x24aa5e('0xd'),'where':{'id':LISTID}}]})[_0x24aa5e('0x1c')](function(_0x5b42b4){const _0x699ab5=_0x24aa5e,_0x433b28=[];if(_0x5b42b4)for(let _0x431d9c=0x0,_0x18044d;_0x431d9c<_0x5b42b4[_0x699ab5('0x28')];_0x431d9c+=0x1){_0x18044d=_0x5b42b4[_0x431d9c][_0x699ab5('0x1e')]({'plain':!![]});switch(_0x18044d[_0x699ab5('0x13')]){case _0x699ab5('0x38'):_0x433b28[_0x699ab5('0x3b')](db[_0x699ab5('0x2b')][_0x699ab5('0x41')](_0x15db9e(_0x18044d,'CampaignId'))[_0x699ab5('0x1c')](function(){})['catch'](_0x311798()));break;case _0x699ab5('0x4'):_0x433b28['push'](db[_0x699ab5('0x2b')]['query'](_0x2b2ba9(_0x18044d,'CampaignId'))['then'](function(){})[_0x699ab5('0x11')](_0x311798()));break;default:_0x433b28[_0x699ab5('0x3b')](db[_0x699ab5('0x2b')][_0x699ab5('0x41')](_0x5298bd(_0x18044d,'CampaignId'))['then'](function(){})[_0x699ab5('0x11')](_0x311798()));}}return _0x433b28;})[_0x24aa5e('0x35')]();})[_0x498ebe('0x1c')](function(){const _0x359537=_0x498ebe;return db[_0x359537('0x31')][_0x359537('0x61')]({'attributes':['id'],'include':[{'model':db[_0x359537('0x29')],'as':_0x359537('0x53'),'where':{'id':LISTID}}]})['then'](function(_0x4f479e){const _0x4f2623=_0x359537,_0x5dc214=[];if(_0x4f479e)for(let _0x263b8c=0x0,_0x389f49;_0x263b8c<_0x4f479e[_0x4f2623('0x28')];_0x263b8c+=0x1){_0x389f49=_0x4f479e[_0x263b8c][_0x4f2623('0x1e')]({'plain':!![]}),_0x5dc214[_0x4f2623('0x3b')](db[_0x4f2623('0x2b')][_0x4f2623('0x41')](_0x3f64a8(_0x389f49,_0x4f2623('0x39')))[_0x4f2623('0x1c')](function(){})[_0x4f2623('0x11')](_0x311798()));}return _0x5dc214;})['all']();})[_0x498ebe('0x11')](function(_0x547498){const _0x6fcdee=_0x498ebe;logger['error']('cmContact,\x20%s,\x20%s','generalCheckHopper',_0x547498[_0x6fcdee('0x14')]);});}const processPromises=function(_0x23933f){const _0x4d5c90=_0x161af1;return Promise[_0x4d5c90('0x35')](promises)['catch'](function(_0x4b97e4){const _0x2a5dd4=_0x4d5c90;logger[_0x2a5dd4('0x1f')](_0x2a5dd4('0x44'),JSON[_0x2a5dd4('0x3f')](_0x4b97e4));})[_0x4d5c90('0x0')](function(){const _0x52b01c=_0x4d5c90;socket[_0x52b01c('0x24')](_0x52b01c('0x52')+SOCKET_TIMESTAMP,{'success':success,'errors':errors,'duplicates':duplicates,'rows':rows}),promises=[],success=0x0,errors=0x0,duplicates=0x0,rows=[];if(_0x23933f)return _0x23933f[_0x52b01c('0x2d')]();});},endCsv=function(){const _0x36aa6a=_0x161af1;return Promise['resolve']()[_0x36aa6a('0x1c')](function(){if(hopperContacts)return checkHopper();})[_0x36aa6a('0x1c')](function(){const _0x5efcfa=_0x36aa6a;socket[_0x5efcfa('0x24')](_0x5efcfa('0x52')+SOCKET_TIMESTAMP,{'finished':!![],'success':success,'errors':errors,'duplicates':duplicates,'rows':rows});try{fs[_0x5efcfa('0x8')](FILEPATH);}catch(_0x5ba20e){logger[_0x5efcfa('0x1f')](_0x5efcfa('0x42'),JSON[_0x5efcfa('0x3f')](_0x5ba20e));}finally{process['exit'](0x0);}});};process['on']('SIGINT',function(){const _0x392dab=_0x161af1;logger[_0x392dab('0x2c')](_0x392dab('0x20')),endCsv();});function main(){const _0x5e57ce=_0x161af1;return Promise[_0x5e57ce('0x5')]()[_0x5e57ce('0x1c')](function(){const _0x25ab8b=_0x5e57ce;if(DUPLICATES)return DUPLICATES=DUPLICATES[_0x25ab8b('0x56')](','),db[_0x25ab8b('0x55')][_0x25ab8b('0x61')]({'where':{'ListId':LISTID},'attributes':DUPLICATES,'raw':!![]});})['then'](function(_0x3bca6e){const _0x43e424=_0x5e57ce,_0x1221ca=fs['createReadStream'](FILEPATH,{'highWaterMark':0xf*0x400*0x400});Papa[_0x43e424('0x22')](_0x1221ca,{'header':!![],'skipEmptyLines':!![],'step':function(_0x3367e5,_0xbf431f){const _0x2631b2=_0x43e424;total+=0x1;const _0x4fd181=total;promises[_0x2631b2('0x3b')](checkRow(_0x3367e5,_0x3bca6e,_0x4fd181)[_0x2631b2('0x1c')](function(){success+=0x1;})['catch'](function(_0x784f2e){const _0x1e005c=_0x2631b2;if(_0x784f2e['error'])errors+=0x1,delete _0x784f2e[_0x1e005c('0x1f')];else _0x784f2e[_0x1e005c('0xf')]&&(duplicates+=0x1,delete _0x784f2e['duplicate']);rows[_0x1e005c('0x3b')](_0x784f2e);}));if(total%0xc8===0x0)return _0xbf431f[_0x2631b2('0x16')](),processPromises(_0xbf431f);},'complete':function(){const _0x711ced=_0x43e424;return processPromises()[_0x711ced('0x1c')](function(){const _0x1b24df=_0x711ced;logger['info'](_0x1b24df('0x59')),endCsv();});},'error':function(_0xc9255b){const _0x40b394=_0x43e424;logger[_0x40b394('0x2c')](_0x40b394('0x4f'),JSON[_0x40b394('0x3f')](_0xc9255b)),endCsv();}});})[_0x5e57ce('0x11')](function(_0x1d85c5){const _0x305a41=_0x5e57ce;logger[_0x305a41('0x1f')]('Error\x20executing\x20contact\x20csv\x20import:',JSON['stringify'](_0x1d85c5));});}main(); \ No newline at end of file diff --git a/server/components/import/cm/csv2.js b/server/components/import/cm/csv2.js index 7afc265..63ae93e 100644 --- a/server/components/import/cm/csv2.js +++ b/server/components/import/cm/csv2.js @@ -1 +1 @@ -const a831_0x40f4=['updatedAt','phone\x20is\x20mandatory','message','ListId\x20=\x20?','CompanyId','complete','cm_contacts.scheduledat','trim','main','from','send','errors','.id\x20=\x20','min_id','keys','cm_contacts.UserId','parse','isNaN','affectedRows','appendFileSync','priority',')\x20NOT\x20IN\x20?','cm_hopper_black','createdAt','import','data','finish','\x22always\x22','cm_contacts.phone\x20NOT\x20IN\x20(?)','socket_timestamp','cm_contacts.createdAt\x20=\x20?','binding','header','id\x20IN\x20?','firstName','createReadStream','papaparse','cm_contacts.id','ContactId','Received\x20SIGINT','voice_queues_has_cm_lists','../../../config/logger','includes','../../../mysqldb','squel','error','cm_contacts.priority','fromQuery','into','query','emit','files/tmp','unlink','DROP\x20TABLE\x20','../../../rediscache','duplicates','join','format','SystemRow','path','start','each','existsSync','VoiceQueueId','group','.dialCheckDuplicateType\x20IN\x20(','insert','ListId\x20is\x20mandatory','cm_contacts.phone','.CmListId\x20=\x20?','cm_contacts','uncaughtException','field','catch','server/files/tmp','toString','.CmListId','scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)','agent\x20not\x20exists','then','select','exit','undefined','replace','CampaignId','cm_hopper','stringify','cm_contacts.createdAt','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','isValid','scheduledat','argv','voice_queues','campaigns_has_cm_blacklists','fields','info','recallme','rows','MIN(id)','phone','cm_contacts_','YYYY-MM-DD\x20HH:mm:ss','code','UserId','isNil','campaigns','cm_contacts.ListId\x20=\x20','push','ListId','../../../config/environment','.csv','voice_queues_has_cm_blacklists','\x20=\x20?','length','SIGINT','cm_contacts.updatedAt','SystemError','cm_contacts.ListId','file\x20doesn\x27t\x20exists','firstName\x20is\x20mandatory','where','No\x20agent\x20available'];(function(_0x49e5f5,_0x40f408){const _0x44d6af=function(_0x2a71bb){while(--_0x2a71bb){_0x49e5f5['push'](_0x49e5f5['shift']());}};_0x44d6af(++_0x40f408);}(a831_0x40f4,0x1c3));const a831_0x44d6=function(_0x49e5f5,_0x40f408){_0x49e5f5=_0x49e5f5-0x0;let _0x44d6af=a831_0x40f4[_0x49e5f5];return _0x44d6af;};const _0x3ed061=a831_0x44d6;'use strict';const fs=require('fs'),path=require(_0x3ed061('0x60')),_=require('lodash'),Papa=require(_0x3ed061('0x49')),util=require('util'),moment=require('moment'),squel=require(_0x3ed061('0x51')),db=require(_0x3ed061('0x50'))['db'],config=require(_0x3ed061('0x18')),logger=require(_0x3ed061('0x4e'))(_0x3ed061('0x3d')),{getSocket}=require(_0x3ed061('0x5b')),socket=getSocket(),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[_0x3ed061('0x5e')](_0x3ed061('0x10'));function isEmail(_0x2a71bb){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'](_0x2a71bb);}function selectNotIn(_0x3815eb,_0xdb6be7,_0x4e3a80,_0x56fe03,_0x4edf59){const _0x229081=_0x3ed061;return squel[_0x229081('0x75')]()[_0x229081('0x6d')](_0x229081('0xe'))[_0x229081('0x2e')](_0x56fe03)['join'](_0xdb6be7,null,_0xdb6be7+_0x229081('0x31')+_0x56fe03+'.'+_0x4e3a80)['where'](_0x56fe03+'.'+_0x4e3a80+'\x20=\x20'+_0x3815eb+'.'+_0x4e3a80)[_0x229081('0x23')](_0xdb6be7+_0x229081('0x66')+_0x4edf59[_0x229081('0x5d')]()+')');}function insertCmHopper(_0x2378e4,_0x123928,_0x18ef3e,_0x29e465,_0x36afd7){const _0x3af6d6=_0x3ed061,_0x33f4e5=[_0x3af6d6('0x69'),_0x3af6d6('0x2b'),_0x3af6d6('0x4a'),_0x3af6d6('0x20'),_0x123928+'.'+_0x29e465,_0x3af6d6('0x2'),_0x3af6d6('0x1e'),_0x3af6d6('0x53'),_0x3af6d6('0x34'),'\x22'+_0x36afd7+'\x22'];return squel['insert']()[_0x3af6d6('0x55')](_0x3af6d6('0x0'))[_0x3af6d6('0x54')]([_0x3af6d6('0xe'),_0x3af6d6('0x5'),_0x3af6d6('0x4b'),_0x3af6d6('0x17'),_0x29e465,'createdAt',_0x3af6d6('0x25'),'priority','UserId',_0x3af6d6('0xb')],squel[_0x3af6d6('0x75')]()[_0x3af6d6('0x9')](_0x33f4e5)[_0x3af6d6('0x2e')](_0x123928)[_0x3af6d6('0x5d')](_0x3af6d6('0x6b'),null,'cm_contacts.ListId\x20=\x20'+_0x123928+_0x3af6d6('0x71'))[_0x3af6d6('0x5d')](_0x18ef3e,null,_0x18ef3e+_0x3af6d6('0x31')+_0x123928+'.'+_0x29e465)['where'](_0x123928+_0x3af6d6('0x6a'),_0x2378e4)['where'](_0x3af6d6('0x43'),NOW)[_0x3af6d6('0x23')](_0x3af6d6('0x41'),selectNotIn(_0x123928,_0x18ef3e,_0x29e465,_0x3af6d6('0x0'),['\x22always\x22','\x22onlyIfOpen\x22']))[_0x3af6d6('0x23')](_0x3af6d6('0x41'),selectNotIn(_0x123928,_0x18ef3e,_0x29e465,_0x3af6d6('0x0'),[_0x3af6d6('0x40')])))[_0x3af6d6('0x70')]();}function insertCmHopperBlack(_0x351d96,_0x42363e,_0x2be77b,_0x2647ad){const _0x5e8f03=_0x3ed061,_0x23a132=[_0x5e8f03('0x69'),'cm_contacts.id',_0x5e8f03('0x20'),_0x42363e+'.'+_0x2647ad,_0x5e8f03('0x2'),_0x5e8f03('0x1e')];return squel[_0x5e8f03('0x67')]()[_0x5e8f03('0x55')](_0x5e8f03('0x3b'))['fromQuery'](['phone',_0x5e8f03('0x4b'),_0x5e8f03('0x17'),_0x2647ad,_0x5e8f03('0x3c'),_0x5e8f03('0x25')],squel[_0x5e8f03('0x75')]()[_0x5e8f03('0x9')](_0x23a132)[_0x5e8f03('0x2e')](_0x42363e)[_0x5e8f03('0x5d')](_0x5e8f03('0x6b'),null,_0x5e8f03('0x15')+_0x42363e+'.CmListId')['join'](_0x2be77b,null,_0x2be77b+_0x5e8f03('0x31')+_0x42363e+'.'+_0x2647ad)[_0x5e8f03('0x23')](_0x42363e+'.CmListId\x20=\x20?',_0x351d96)[_0x5e8f03('0x23')](_0x5e8f03('0x43'),NOW)[_0x5e8f03('0x23')](_0x5e8f03('0x41'),squel[_0x5e8f03('0x75')]()[_0x5e8f03('0x6d')](_0x5e8f03('0xe'))[_0x5e8f03('0x2e')]('cm_hopper_black')[_0x5e8f03('0x23')](_0x5e8f03('0x28'),_0x351d96)[_0x5e8f03('0x23')](_0x2647ad+_0x5e8f03('0x1b'),_0x42363e+'.'+_0x2647ad)))['toString']();}function insertCmContact(_0x1bb8fb,_0x26052e,_0x574efa,_0x417068){const _0x1422a6=_0x3ed061,_0x1a45c3=_['concat'](_[_0x1422a6('0x33')](_0x417068),[_0x1422a6('0x17'),_0x1422a6('0x29'),_0x1422a6('0x3c'),_0x1422a6('0x25')]);return squel[_0x1422a6('0x67')]()[_0x1422a6('0x55')]('cm_contacts')[_0x1422a6('0x54')](_0x1a45c3,squel[_0x1422a6('0x75')]()[_0x1422a6('0x9')](_0x1a45c3)[_0x1422a6('0x2e')](_0x26052e)[_0x1422a6('0x23')]('('+_0x574efa['join'](',')+_0x1422a6('0x3a'),squel[_0x1422a6('0x75')]()[_0x1422a6('0x9')](_0x574efa)['from'](_0x1422a6('0x6b'))['where'](_0x1422a6('0x28'),_0x1bb8fb)['where']('deletedAt\x20IS\x20NULL'))[_0x1422a6('0x23')](_0x1422a6('0x46'),squel[_0x1422a6('0x75')]()['field'](_0x1422a6('0xd'),_0x1422a6('0x32'))[_0x1422a6('0x2e')](_0x26052e)[_0x1422a6('0x65')](_0x574efa['join'](','))))[_0x1422a6('0x70')]();}function handleStop(){const _0x597f08=_0x3ed061;logger['info'](_0x597f08('0x4c')),stopped=!![];}function handleUncaughtException(_0x2e173d){const _0x559eb4=_0x3ed061;logger['error'](_0x2e173d[_0x559eb4('0x27')]);throw _0x2e173d;}function handleError(_0x7cd938,_0xf42f74){const _0x451df6=_0x3ed061;stats[_0x451df6('0x30')][_0x451df6('0x16')]({'name':_0xf42f74[_0x451df6('0x11')],'message':_0xf42f74[_0x451df6('0x27')],'row':_0x7cd938});}function handleQuery(_0x31c4f5){const _0x53c38e=_0x3ed061;return logger[_0x53c38e('0xa')](_0x31c4f5),db['sequelize'][_0x53c38e('0x56')](_0x31c4f5)['then'](function([_0x3e7d5c]){const _0x24fc36=_0x53c38e;results[_0x24fc36('0x16')](_0x3e7d5c);})['catch'](function(_0x264b6a){const _0x63f347=_0x53c38e;logger['error'](_0x264b6a[_0x63f347('0x27')]);});}function main(_0x5b3130,_0x5a5dde,_0x4c6985,_0xb6a240){const _0x5cbc00=_0x3ed061;logger[_0x5cbc00('0xa')](_0x5cbc00('0x2d'),_0x5b3130,JSON[_0x5cbc00('0x1')](_0x5a5dde)),process[_0x5cbc00('0x2f')](_0x5cbc00('0x61'));const _0x1cd452=_0x5a5dde[_0x5cbc00('0x44')],_0x3ec524=_0x5a5dde[_0x5cbc00('0x42')],_0x1d1b1d=path[_0x5cbc00('0x5d')](config['root'],_0x5cbc00('0x6f'),_0x3ec524+_0x5cbc00('0x19')),_0x115351=_[_0x5cbc00('0x33')](_0x1cd452)[_0x5cbc00('0x5d')]();logger[_0x5cbc00('0xa')](_0x5cbc00('0x45'),_0x115351),fs['writeFileSync'](_0x1d1b1d,_0x115351+'\x0a'),Papa[_0x5cbc00('0x35')](fs[_0x5cbc00('0x48')](_0x5b3130),{'header':!![],'skipEmptyLines':!![],'step':function(_0x35d4e0,_0x4ce398){const _0x5f2558=_0x5cbc00;let _0x157d9f=0x0,_0x5c50f3=[];try{for(_0x157d9f=0x0,_0x5c50f3=[];_0x157d9f<_0x35d4e0[_0x5f2558('0x3e')][_0x5f2558('0x1c')];_0x157d9f++){stats[_0x5f2558('0xc')]+=0x1;if(_0x35d4e0[_0x5f2558('0x30')][_0x157d9f])handleError(_0x35d4e0[_0x5f2558('0x3e')][_0x157d9f],_0x35d4e0[_0x5f2558('0x30')][_0x157d9f]);else{const _0x2e3f5c=[];for(const _0x2b29d6 in _0x1cd452){if(typeof _0x1cd452[_0x2b29d6]!==_0x5f2558('0x77')){if(_0x35d4e0[_0x5f2558('0x3e')][_0x157d9f][_0x1cd452[_0x2b29d6]]){let _0x417c73=_[_0x5f2558('0x2c')](_0x35d4e0[_0x5f2558('0x3e')][_0x157d9f][_0x1cd452[_0x2b29d6]][_0x5f2558('0x78')](/"/g,'\x27'));switch(_0x2b29d6){case _0x5f2558('0x5'):{const _0x3de253=moment(_0x417c73,'YYYY-MM-DD\x20HH:mm:ss',!![]);_0x3de253[_0x5f2558('0x4')]()?_0x5c50f3['push']('\x22'+_0x417c73+'\x22'):_0x2e3f5c[_0x5f2558('0x16')](_0x5f2558('0x72'));}break;case _0x5f2558('0x39'):{const _0x40d62f=parseInt(_0x417c73);_0x417c73=_[_0x5f2558('0x36')](_0x40d62f)||_0x40d62f<0x0||_0x40d62f>0x4?_0xb6a240?0x3:0x2:_0x40d62f,_0x5c50f3[_0x5f2558('0x16')]('\x22'+_0x417c73+'\x22');}break;case _0x5f2558('0x12'):{const _0x56b12a=parseInt(_0x417c73);_['isNumber'](_0x56b12a)&&_[_0x5f2558('0x4f')](_0x4c6985,_0x56b12a)?_0x5c50f3[_0x5f2558('0x16')]('\x22'+_0x56b12a+'\x22'):_0x2e3f5c['push'](_0x5f2558('0x73'));}break;case'email':isEmail(_0x417c73)?_0x5c50f3['push']('\x22'+_0x417c73+'\x22'):_0x2e3f5c[_0x5f2558('0x16')]('email\x20wrong\x20format');break;case'dateOfBirth':{const _0x51b132=moment(_0x417c73,'YYYY-MM-DD',!![]);_0x51b132[_0x5f2558('0x4')]()?_0x5c50f3[_0x5f2558('0x16')]('\x22'+_0x417c73+'\x22'):_0x2e3f5c[_0x5f2558('0x16')]('dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)');}break;default:_0x5c50f3[_0x5f2558('0x16')]('\x22'+_0x417c73+'\x22');}}else switch(_0x2b29d6){case _0x5f2558('0x47'):case _0x5f2558('0xe'):_0x2e3f5c[_0x5f2558('0x16')](_0x2b29d6+'\x20not\x20specified');break;default:_0x5c50f3[_0x5f2558('0x16')]('\x22\x22');}}}_0x2e3f5c[_0x5f2558('0x1c')]?handleError(_0x35d4e0[_0x5f2558('0x3e')][_0x157d9f],{'code':_0x5f2558('0x5f'),'message':_0x2e3f5c['join']()}):fs[_0x5f2558('0x38')](_0x1d1b1d,_0x5c50f3[_0x5f2558('0x5d')]()+'\x0a'),_0x5c50f3=[];}!(stats[_0x5f2558('0xc')]%0xc8)&&(socket[_0x5f2558('0x57')]('contact:import:'+_0x3ec524,stats),stats[_0x5f2558('0x30')]=[]);}stopped&&(logger[_0x5f2558('0xa')]('Abort\x20parser'),_0x4ce398['abort']());}catch(_0x414407){handleError(_0x35d4e0[_0x5f2558('0x3e')][_0x157d9f],{'code':_0x5f2558('0x1f'),'message':_0x414407[_0x5f2558('0x27')]}),logger['error']('step',_0x414407['message']);}},'complete':function(){const _0x46e1be=_0x5cbc00;try{const _0x1dc0d4=[];let _0x2198e6=_0x46e1be('0x6b');_0x5a5dde[_0x46e1be('0x5c')]&&_0x5a5dde['duplicates'][_0x46e1be('0x1c')]&&(_0x2198e6=_0x46e1be('0xf')+_0x3ec524,_0x1dc0d4['push']('CREATE\x20TABLE\x20'+_0x2198e6+'\x20LIKE\x20cm_contacts;'));let _0x37e441=util[_0x46e1be('0x5e')](_0x46e1be('0x3'),_0x1d1b1d,_0x2198e6,_0x115351,_0x5a5dde['ListId'],_0x5a5dde['CompanyId']||null,NOW,NOW);_[_0x46e1be('0x13')](_0x1cd452[_0x46e1be('0x5')])&&(_0x37e441+=',\x20scheduledAt\x20=\x20NOW()'),_0x1dc0d4[_0x46e1be('0x16')](_0x37e441),_0x5a5dde['duplicates']&&_0x5a5dde[_0x46e1be('0x5c')]['length']&&(_0x1dc0d4[_0x46e1be('0x16')](insertCmContact(_0x5a5dde[_0x46e1be('0x17')],_0x2198e6,_0x5a5dde[_0x46e1be('0x5c')],_0x1cd452)),_0x1dc0d4[_0x46e1be('0x16')](_0x46e1be('0x5a')+_0x2198e6+';')),_0x1dc0d4['push'](insertCmHopper(_0x5a5dde['ListId'],_0x46e1be('0x4d'),_0x46e1be('0x7'),_0x46e1be('0x64'),_0xb6a240)),_0x1dc0d4[_0x46e1be('0x16')](insertCmHopperBlack(_0x5a5dde[_0x46e1be('0x17')],_0x46e1be('0x1a'),_0x46e1be('0x7'),_0x46e1be('0x64'))),_0x1dc0d4[_0x46e1be('0x16')](insertCmHopper(_0x5a5dde['ListId'],'campaigns_has_cm_lists','campaigns',_0x46e1be('0x79'),_0xb6a240)),_0x1dc0d4[_0x46e1be('0x16')](insertCmHopperBlack(_0x5a5dde[_0x46e1be('0x17')],_0x46e1be('0x8'),_0x46e1be('0x14'),_0x46e1be('0x79'))),Promise[_0x46e1be('0x62')](_0x1dc0d4,handleQuery)[_0x46e1be('0x74')](function(){const _0x5cc030=_0x46e1be;stats[_0x5cc030('0x3f')]=!![],stats[_0x5cc030('0x37')]=_0x5a5dde[_0x5cc030('0x5c')]&&_0x5a5dde['duplicates']['length']?results[0x2][_0x5cc030('0x37')]:results[0x0]['affectedRows'],socket['emit']('contact:import:'+_0x3ec524,stats),fs[_0x5cc030('0x59')](_0x5b3130),fs[_0x5cc030('0x59')](_0x1d1b1d),process[_0x5cc030('0x76')](0x0);})[_0x46e1be('0x6e')](function(_0x58ca0c){const _0x2ba771=_0x46e1be;logger[_0x2ba771('0x52')](_0x58ca0c['message']);throw _0x58ca0c;});}catch(_0x5a5e40){logger[_0x46e1be('0x52')](_0x46e1be('0x2a'),_0x5a5e40[_0x46e1be('0x27')]);throw _0x5a5e40;}},'error':function(_0x1b2cb7,_0x35bc68,_0x22dc21,_0x2ce64a){throw new Error(_0x2ce64a);}});}function validate(){const _0x485721=_0x3ed061;if(process[_0x485721('0x6')]&&process['argv']['length']<0x4)throw new Error('arguments\x20\x20\x20');const _0x35a347=path[_0x485721('0x5d')](config['root'],_0x485721('0x58'),process[_0x485721('0x6')][0x2]);if(!fs[_0x485721('0x63')](_0x35a347))throw new Error(_0x485721('0x21'));let _0x3d98b9={},_0x1a7139=0x0;try{_0x3d98b9=JSON[_0x485721('0x35')](process[_0x485721('0x6')][0x3]);if(!_0x3d98b9[_0x485721('0x44')])throw new Error('binding\x20doesn\x27t\x20exists');if(!_0x3d98b9[_0x485721('0x44')][_0x485721('0xe')])throw new Error(_0x485721('0x26'));if(!_0x3d98b9[_0x485721('0x44')]['firstName'])throw new Error(_0x485721('0x22'));_0x3d98b9[_0x485721('0x44')]['UserId']&&(_0x1a7139=0x1);if(!_0x3d98b9[_0x485721('0x17')])throw new Error(_0x485721('0x68'));}catch(_0xdc90fa){throw new Error('body\x20id\x20mandatory');}let _0x526487=[];try{_0x526487=_['map'](JSON[_0x485721('0x35')](process[_0x485721('0x6')][0x4]),'id');}catch(_0x16bc29){logger[_0x485721('0xa')](_0x485721('0x24'));}main(_0x35a347,_0x3d98b9,_0x526487,_0x1a7139);}validate(),process['on'](_0x3ed061('0x1d'),handleStop),process['on'](_0x3ed061('0x6c'),handleUncaughtException); \ No newline at end of file +const a831_0xe1de=['Received\x20SIGINT','voice_queues_has_cm_blacklists','.csv','voice_queues','cm_contacts.priority','cm_contacts.createdAt','cm_contacts','replace','binding','into','DROP\x20TABLE\x20','.CmListId','voice_queues_has_cm_lists','where','MIN(id)','papaparse','field','each','.CmListId\x20=\x20?','arguments\x20\x20\x20','abort','insert','\x20=\x20?','isValid','select','unlink','.dialCheckDuplicateType\x20IN\x20(','createReadStream','campaigns_has_cm_lists','dateOfBirth','CompanyId','code','catch','cm_contacts.phone\x20NOT\x20IN\x20(?)','cm_contacts.updatedAt','\x22always\x22','updatedAt','campaigns_has_cm_blacklists','format','cm_contacts.scheduledat','cm_hopper','SIGINT','concat','appendFileSync','trim','error','.id\x20=\x20','campaigns','CREATE\x20TABLE\x20','stringify','sequelize','server/files/tmp','\x20=\x20','toString','cm_contacts_','uncaughtException','emit','data','errors','firstName','exit','push','email','cm_contacts.ListId\x20=\x20','cm_contacts.createdAt\x20=\x20?','../../../mysqldb','info','message','deletedAt\x20IS\x20NULL','includes','YYYY-MM-DD\x20HH:mm:ss','step','ListId\x20is\x20mandatory','argv','lodash','moment','group','join','root','existsSync','cm_contacts.ListId','socket_timestamp','scheduledat','VoiceQueueId','writeFileSync','length','YYYY-MM-DD','../../../config/logger','isNaN','parse','affectedRows','from','send','duplicates','cm_contacts.phone','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','dateOfBirth\x20wrong\x20format\x20(YYYY-MM-DD)','phone','header','\x20not\x20specified','contact:import:','../../../rediscache','finish','ListId\x20=\x20?','path','file\x20doesn\x27t\x20exists','UserId','\x20LIKE\x20cm_contacts;',')\x20NOT\x20IN\x20?','fields','keys','start','createdAt','phone\x20is\x20mandatory','ListId',',\x20scheduledAt\x20=\x20NOW()','SystemError','SystemRow','rows','binding\x20doesn\x27t\x20exists','cm_hopper_black','util','fromQuery','../../../config/environment','then','query'];(function(_0xc56c80,_0xe1dee8){const _0xe22307=function(_0x25e278){while(--_0x25e278){_0xc56c80['push'](_0xc56c80['shift']());}};_0xe22307(++_0xe1dee8);}(a831_0xe1de,0x1b9));const a831_0xe223=function(_0xc56c80,_0xe1dee8){_0xc56c80=_0xc56c80-0x0;let _0xe22307=a831_0xe1de[_0xc56c80];return _0xe22307;};const _0x105a92=a831_0xe223;'use strict';const fs=require('fs'),path=require(_0x105a92('0x29')),_=require(_0x105a92('0xb')),Papa=require(_0x105a92('0x4e')),util=require(_0x105a92('0x3a')),moment=require(_0x105a92('0xc')),squel=require('squel'),db=require(_0x105a92('0x2'))['db'],config=require(_0x105a92('0x3c')),logger=require(_0x105a92('0x18'))('import'),{getSocket}=require(_0x105a92('0x26')),socket=getSocket(),stats={'finish':![],'errors':[],'rows':0x0,'affectedRows':0x0},results=[];let stopped=![];const NOW=moment()[_0x105a92('0x65')](_0x105a92('0x7'));function isEmail(_0x25e278){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'](_0x25e278);}function selectNotIn(_0x308b4e,_0x316662,_0x24962f,_0x1c7132,_0x1234a1){const _0x2ccbbc=_0x105a92;return squel[_0x2ccbbc('0x57')]()['field']('phone')[_0x2ccbbc('0x1c')](_0x1c7132)[_0x2ccbbc('0xe')](_0x316662,null,_0x316662+_0x2ccbbc('0x6d')+_0x1c7132+'.'+_0x24962f)[_0x2ccbbc('0x4c')](_0x1c7132+'.'+_0x24962f+_0x2ccbbc('0x73')+_0x308b4e+'.'+_0x24962f)[_0x2ccbbc('0x4c')](_0x316662+_0x2ccbbc('0x59')+_0x1234a1[_0x2ccbbc('0xe')]()+')');}function insertCmHopper(_0xc88a1b,_0x3b1a07,_0x5d0a2f,_0xc26cc8,_0x1694b1){const _0x4307f8=_0x105a92,_0x23cd72=[_0x4307f8('0x1f'),_0x4307f8('0x66'),'cm_contacts.id','cm_contacts.ListId',_0x3b1a07+'.'+_0xc26cc8,'cm_contacts.createdAt',_0x4307f8('0x61'),_0x4307f8('0x43'),'cm_contacts.UserId','\x22'+_0x1694b1+'\x22'];return squel[_0x4307f8('0x54')]()[_0x4307f8('0x48')](_0x4307f8('0x67'))['fromQuery']([_0x4307f8('0x22'),_0x4307f8('0x13'),'ContactId',_0x4307f8('0x33'),_0xc26cc8,_0x4307f8('0x31'),'updatedAt','priority','UserId','recallme'],squel[_0x4307f8('0x57')]()['fields'](_0x23cd72)[_0x4307f8('0x1c')](_0x3b1a07)[_0x4307f8('0xe')](_0x4307f8('0x45'),null,_0x4307f8('0x0')+_0x3b1a07+_0x4307f8('0x4a'))[_0x4307f8('0xe')](_0x5d0a2f,null,_0x5d0a2f+_0x4307f8('0x6d')+_0x3b1a07+'.'+_0xc26cc8)[_0x4307f8('0x4c')](_0x3b1a07+_0x4307f8('0x51'),_0xc88a1b)[_0x4307f8('0x4c')](_0x4307f8('0x1'),NOW)[_0x4307f8('0x4c')](_0x4307f8('0x60'),selectNotIn(_0x3b1a07,_0x5d0a2f,_0xc26cc8,_0x4307f8('0x67'),[_0x4307f8('0x62'),'\x22onlyIfOpen\x22']))['where'](_0x4307f8('0x60'),selectNotIn(_0x3b1a07,_0x5d0a2f,_0xc26cc8,_0x4307f8('0x67'),[_0x4307f8('0x62')])))[_0x4307f8('0x74')]();}function insertCmHopperBlack(_0x4bf297,_0x479111,_0x295ab2,_0x4d7b0f){const _0x1acbdd=_0x105a92,_0x37f6fb=[_0x1acbdd('0x1f'),'cm_contacts.id',_0x1acbdd('0x11'),_0x479111+'.'+_0x4d7b0f,_0x1acbdd('0x44'),_0x1acbdd('0x61')];return squel[_0x1acbdd('0x54')]()['into']('cm_hopper_black')['fromQuery'](['phone','ContactId',_0x1acbdd('0x33'),_0x4d7b0f,_0x1acbdd('0x31'),_0x1acbdd('0x63')],squel[_0x1acbdd('0x57')]()[_0x1acbdd('0x2e')](_0x37f6fb)['from'](_0x479111)[_0x1acbdd('0xe')](_0x1acbdd('0x45'),null,_0x1acbdd('0x0')+_0x479111+_0x1acbdd('0x4a'))[_0x1acbdd('0xe')](_0x295ab2,null,_0x295ab2+_0x1acbdd('0x6d')+_0x479111+'.'+_0x4d7b0f)[_0x1acbdd('0x4c')](_0x479111+_0x1acbdd('0x51'),_0x4bf297)['where'](_0x1acbdd('0x1'),NOW)[_0x1acbdd('0x4c')](_0x1acbdd('0x60'),squel[_0x1acbdd('0x57')]()[_0x1acbdd('0x4f')](_0x1acbdd('0x22'))[_0x1acbdd('0x1c')](_0x1acbdd('0x39'))[_0x1acbdd('0x4c')](_0x1acbdd('0x28'),_0x4bf297)[_0x1acbdd('0x4c')](_0x4d7b0f+_0x1acbdd('0x55'),_0x479111+'.'+_0x4d7b0f)))[_0x1acbdd('0x74')]();}function insertCmContact(_0x40b5ef,_0x1cef62,_0x59524a,_0x2a2407){const _0x4faf6b=_0x105a92,_0x4d0bd1=_[_0x4faf6b('0x69')](_[_0x4faf6b('0x2f')](_0x2a2407),[_0x4faf6b('0x33'),_0x4faf6b('0x5d'),'createdAt',_0x4faf6b('0x63')]);return squel[_0x4faf6b('0x54')]()[_0x4faf6b('0x48')](_0x4faf6b('0x45'))[_0x4faf6b('0x3b')](_0x4d0bd1,squel[_0x4faf6b('0x57')]()[_0x4faf6b('0x2e')](_0x4d0bd1)[_0x4faf6b('0x1c')](_0x1cef62)[_0x4faf6b('0x4c')]('('+_0x59524a[_0x4faf6b('0xe')](',')+_0x4faf6b('0x2d'),squel[_0x4faf6b('0x57')]()[_0x4faf6b('0x2e')](_0x59524a)[_0x4faf6b('0x1c')](_0x4faf6b('0x45'))['where'](_0x4faf6b('0x28'),_0x40b5ef)[_0x4faf6b('0x4c')](_0x4faf6b('0x5')))['where']('id\x20IN\x20?',squel[_0x4faf6b('0x57')]()['field'](_0x4faf6b('0x4d'),'min_id')[_0x4faf6b('0x1c')](_0x1cef62)[_0x4faf6b('0xd')](_0x59524a[_0x4faf6b('0xe')](','))))[_0x4faf6b('0x74')]();}function handleStop(){const _0x3235e1=_0x105a92;logger['info'](_0x3235e1('0x3f')),stopped=!![];}function handleUncaughtException(_0x599d28){const _0x3c74b5=_0x105a92;logger['error'](_0x599d28[_0x3c74b5('0x4')]);throw _0x599d28;}function handleError(_0x274074,_0x522bec){const _0x2f198c=_0x105a92;stats[_0x2f198c('0x79')][_0x2f198c('0x7c')]({'name':_0x522bec[_0x2f198c('0x5e')],'message':_0x522bec[_0x2f198c('0x4')],'row':_0x274074});}function handleQuery(_0x3d59c9){const _0x5c63de=_0x105a92;return logger[_0x5c63de('0x3')](_0x3d59c9),db[_0x5c63de('0x71')][_0x5c63de('0x3e')](_0x3d59c9)[_0x5c63de('0x3d')](function([_0x310144]){const _0x440eb7=_0x5c63de;results[_0x440eb7('0x7c')](_0x310144);})[_0x5c63de('0x5f')](function(_0x5229c1){const _0x1cdc37=_0x5c63de;logger['error'](_0x5229c1[_0x1cdc37('0x4')]);});}function main(_0x304a07,_0x49eeed,_0x47baf9,_0x578a0f){const _0x5a972c=_0x105a92;logger['info']('main',_0x304a07,JSON[_0x5a972c('0x70')](_0x49eeed)),process[_0x5a972c('0x1d')](_0x5a972c('0x30'));const _0x5eeaa5=_0x49eeed['binding'],_0x35abd6=_0x49eeed[_0x5a972c('0x12')],_0x5e055e=path['join'](config[_0x5a972c('0xf')],_0x5a972c('0x72'),_0x35abd6+_0x5a972c('0x41')),_0x4ea549=_[_0x5a972c('0x2f')](_0x5eeaa5)[_0x5a972c('0xe')]();logger['info'](_0x5a972c('0x23'),_0x4ea549),fs[_0x5a972c('0x15')](_0x5e055e,_0x4ea549+'\x0a'),Papa['parse'](fs[_0x5a972c('0x5a')](_0x304a07),{'header':!![],'skipEmptyLines':!![],'step':function(_0x203e1a,_0x465508){const _0x879098=_0x5a972c;let _0x9b2a2=0x0,_0x4142a7=[];try{for(_0x9b2a2=0x0,_0x4142a7=[];_0x9b2a2<_0x203e1a[_0x879098('0x78')][_0x879098('0x16')];_0x9b2a2++){stats[_0x879098('0x37')]+=0x1;if(_0x203e1a[_0x879098('0x79')][_0x9b2a2])handleError(_0x203e1a[_0x879098('0x78')][_0x9b2a2],_0x203e1a[_0x879098('0x79')][_0x9b2a2]);else{const _0x1de3b3=[];for(const _0x26838d in _0x5eeaa5){if(typeof _0x5eeaa5[_0x26838d]!=='undefined'){if(_0x203e1a[_0x879098('0x78')][_0x9b2a2][_0x5eeaa5[_0x26838d]]){let _0x97e528=_[_0x879098('0x6b')](_0x203e1a[_0x879098('0x78')][_0x9b2a2][_0x5eeaa5[_0x26838d]][_0x879098('0x46')](/"/g,'\x27'));switch(_0x26838d){case _0x879098('0x13'):{const _0x30e71b=moment(_0x97e528,'YYYY-MM-DD\x20HH:mm:ss',!![]);_0x30e71b[_0x879098('0x56')]()?_0x4142a7[_0x879098('0x7c')]('\x22'+_0x97e528+'\x22'):_0x1de3b3[_0x879098('0x7c')]('scheduledat\x20wrong\x20format\x20(YYYY-MM-DD\x20HH:mm:ss)');}break;case'priority':{const _0x3b6aa0=parseInt(_0x97e528);_0x97e528=_[_0x879098('0x19')](_0x3b6aa0)||_0x3b6aa0<0x0||_0x3b6aa0>0x4?_0x578a0f?0x3:0x2:_0x3b6aa0,_0x4142a7[_0x879098('0x7c')]('\x22'+_0x97e528+'\x22');}break;case _0x879098('0x2b'):{const _0x48a30f=parseInt(_0x97e528);_['isNumber'](_0x48a30f)&&_[_0x879098('0x6')](_0x47baf9,_0x48a30f)?_0x4142a7['push']('\x22'+_0x48a30f+'\x22'):_0x1de3b3[_0x879098('0x7c')]('agent\x20not\x20exists');}break;case _0x879098('0x7d'):isEmail(_0x97e528)?_0x4142a7[_0x879098('0x7c')]('\x22'+_0x97e528+'\x22'):_0x1de3b3[_0x879098('0x7c')]('email\x20wrong\x20format');break;case _0x879098('0x5c'):{const _0x51041e=moment(_0x97e528,_0x879098('0x17'),!![]);_0x51041e[_0x879098('0x56')]()?_0x4142a7[_0x879098('0x7c')]('\x22'+_0x97e528+'\x22'):_0x1de3b3[_0x879098('0x7c')](_0x879098('0x21'));}break;default:_0x4142a7[_0x879098('0x7c')]('\x22'+_0x97e528+'\x22');}}else switch(_0x26838d){case'firstName':case _0x879098('0x22'):_0x1de3b3['push'](_0x26838d+_0x879098('0x24'));break;default:_0x4142a7[_0x879098('0x7c')]('\x22\x22');}}}_0x1de3b3[_0x879098('0x16')]?handleError(_0x203e1a[_0x879098('0x78')][_0x9b2a2],{'code':_0x879098('0x36'),'message':_0x1de3b3[_0x879098('0xe')]()}):fs[_0x879098('0x6a')](_0x5e055e,_0x4142a7['join']()+'\x0a'),_0x4142a7=[];}!(stats['rows']%0xc8)&&(socket[_0x879098('0x77')](_0x879098('0x25')+_0x35abd6,stats),stats['errors']=[]);}stopped&&(logger[_0x879098('0x3')]('Abort\x20parser'),_0x465508[_0x879098('0x53')]());}catch(_0x39a115){handleError(_0x203e1a[_0x879098('0x78')][_0x9b2a2],{'code':_0x879098('0x35'),'message':_0x39a115[_0x879098('0x4')]}),logger['error'](_0x879098('0x8'),_0x39a115[_0x879098('0x4')]);}},'complete':function(){const _0x5d56f2=_0x5a972c;try{const _0x442336=[];let _0x3938f5=_0x5d56f2('0x45');_0x49eeed[_0x5d56f2('0x1e')]&&_0x49eeed[_0x5d56f2('0x1e')][_0x5d56f2('0x16')]&&(_0x3938f5=_0x5d56f2('0x75')+_0x35abd6,_0x442336['push'](_0x5d56f2('0x6f')+_0x3938f5+_0x5d56f2('0x2c')));let _0x28c27f=util['format'](_0x5d56f2('0x20'),_0x5e055e,_0x3938f5,_0x4ea549,_0x49eeed[_0x5d56f2('0x33')],_0x49eeed[_0x5d56f2('0x5d')]||null,NOW,NOW);_['isNil'](_0x5eeaa5[_0x5d56f2('0x13')])&&(_0x28c27f+=_0x5d56f2('0x34')),_0x442336[_0x5d56f2('0x7c')](_0x28c27f),_0x49eeed['duplicates']&&_0x49eeed[_0x5d56f2('0x1e')][_0x5d56f2('0x16')]&&(_0x442336[_0x5d56f2('0x7c')](insertCmContact(_0x49eeed[_0x5d56f2('0x33')],_0x3938f5,_0x49eeed[_0x5d56f2('0x1e')],_0x5eeaa5)),_0x442336[_0x5d56f2('0x7c')](_0x5d56f2('0x49')+_0x3938f5+';')),_0x442336['push'](insertCmHopper(_0x49eeed[_0x5d56f2('0x33')],_0x5d56f2('0x4b'),_0x5d56f2('0x42'),'VoiceQueueId',_0x578a0f)),_0x442336[_0x5d56f2('0x7c')](insertCmHopperBlack(_0x49eeed[_0x5d56f2('0x33')],_0x5d56f2('0x40'),'voice_queues',_0x5d56f2('0x14'))),_0x442336[_0x5d56f2('0x7c')](insertCmHopper(_0x49eeed[_0x5d56f2('0x33')],_0x5d56f2('0x5b'),_0x5d56f2('0x6e'),'CampaignId',_0x578a0f)),_0x442336[_0x5d56f2('0x7c')](insertCmHopperBlack(_0x49eeed['ListId'],_0x5d56f2('0x64'),_0x5d56f2('0x6e'),'CampaignId')),Promise[_0x5d56f2('0x50')](_0x442336,handleQuery)['then'](function(){const _0x5f4ff8=_0x5d56f2;stats[_0x5f4ff8('0x27')]=!![],stats[_0x5f4ff8('0x1b')]=_0x49eeed[_0x5f4ff8('0x1e')]&&_0x49eeed['duplicates']['length']?results[0x2][_0x5f4ff8('0x1b')]:results[0x0][_0x5f4ff8('0x1b')],socket[_0x5f4ff8('0x77')](_0x5f4ff8('0x25')+_0x35abd6,stats),fs[_0x5f4ff8('0x58')](_0x304a07),fs['unlink'](_0x5e055e),process[_0x5f4ff8('0x7b')](0x0);})[_0x5d56f2('0x5f')](function(_0x145dc9){const _0x518816=_0x5d56f2;logger['error'](_0x145dc9[_0x518816('0x4')]);throw _0x145dc9;});}catch(_0x55bbe8){logger[_0x5d56f2('0x6c')]('complete',_0x55bbe8[_0x5d56f2('0x4')]);throw _0x55bbe8;}},'error':function(_0x1b98df,_0x493922,_0x117e42,_0x74a006){throw new Error(_0x74a006);}});}function validate(){const _0x3a829b=_0x105a92;if(process['argv']&&process[_0x3a829b('0xa')][_0x3a829b('0x16')]<0x4)throw new Error(_0x3a829b('0x52'));const _0x32c948=path[_0x3a829b('0xe')](config['root'],'files/tmp',process['argv'][0x2]);if(!fs[_0x3a829b('0x10')](_0x32c948))throw new Error(_0x3a829b('0x2a'));let _0x20fcdc={},_0x3e6552=0x0;try{_0x20fcdc=JSON['parse'](process['argv'][0x3]);if(!_0x20fcdc[_0x3a829b('0x47')])throw new Error(_0x3a829b('0x38'));if(!_0x20fcdc['binding'][_0x3a829b('0x22')])throw new Error(_0x3a829b('0x32'));if(!_0x20fcdc[_0x3a829b('0x47')][_0x3a829b('0x7a')])throw new Error('firstName\x20is\x20mandatory');_0x20fcdc[_0x3a829b('0x47')][_0x3a829b('0x2b')]&&(_0x3e6552=0x1);if(!_0x20fcdc[_0x3a829b('0x33')])throw new Error(_0x3a829b('0x9'));}catch(_0x28bd60){throw new Error('body\x20id\x20mandatory');}let _0x3e236b=[];try{_0x3e236b=_['map'](JSON[_0x3a829b('0x1a')](process['argv'][0x4]),'id');}catch(_0x61173){logger[_0x3a829b('0x3')]('No\x20agent\x20available');}main(_0x32c948,_0x20fcdc,_0x3e236b,_0x3e6552);}validate(),process['on'](_0x105a92('0x68'),handleStop),process['on'](_0x105a92('0x76'),handleUncaughtException); \ No newline at end of file diff --git a/server/components/integrations/configuration.js b/server/components/integrations/configuration.js index b144191..158b573 100644 --- a/server/components/integrations/configuration.js +++ b/server/components/integrations/configuration.js @@ -1 +1 @@ -const a832_0x54eb=['destcalleridnum','outbound','answertime','Hold\x20Time','getSubjects','Outbound\x20Call','string','queue','talktime','holdtime','***\x20Time\x20Info\x20***','agentcompleteAt','calleridnum','Talk\x20Time','variable','Call\x20To','Caller\x20Name','agentcalledAt','Called\x20Number','Agent\x20Connect','Agent\x20Number','UniqueId','***\x20Call\x20Info\x20***','[xCALLY\x20Ticket]','inbound','destcalleridname','destexten','Complete\x20Time','Date','duration','calleridname','agentconnectAt','uniqueid','Agent\x20Complete','membername','billableseconds','endtime','voice','Answer\x20Time','***\x20Agent\x20Info\x20***','Duration','toLowerCase','Member\x20Name','push','Queue','keyValue','getDescriptions'];(function(_0xb5cd21,_0x54ebee){const _0x4690e1=function(_0x242752){while(--_0x242752){_0xb5cd21['push'](_0xb5cd21['shift']());}};_0x4690e1(++_0x54ebee);}(a832_0x54eb,0xf8));const a832_0x4690=function(_0xb5cd21,_0x54ebee){_0xb5cd21=_0xb5cd21-0x0;let _0x4690e1=a832_0x54eb[_0xb5cd21];return _0x4690e1;};const _0x9ccffa=a832_0x4690;'use strict';exports[_0x9ccffa('0x26')]=function(_0x242752,_0x57b2de){const _0x457631=_0x9ccffa,_0x8bfcb6=[{'type':_0x457631('0x28'),'content':_0x457631('0xa'),'variableName':null}];switch(_0x242752[_0x457631('0x1c')]()){case _0x457631('0x18'):switch(_0x57b2de[_0x457631('0x1c')]()){case _0x457631('0xb'):_0x8bfcb6[_0x457631('0x1e')]({'type':'variable','content':'','variableName':_0x457631('0x29')}),_0x8bfcb6[_0x457631('0x1e')]({'type':'variable','content':'','variableName':_0x457631('0x2e')});break;case _0x457631('0x23'):_0x8bfcb6[_0x457631('0x1e')]({'type':_0x457631('0x28'),'content':_0x457631('0x27'),'variableName':null}),_0x8bfcb6['push']({'type':_0x457631('0x1'),'content':'','variableName':_0x457631('0x22')});break;}}return _0x8bfcb6;},exports[_0x9ccffa('0x21')]=function(_0x7aeadb,_0x47bff4){const _0x553bc4=_0x9ccffa;let _0x3208f9=[];switch(_0x7aeadb[_0x553bc4('0x1c')]()){case _0x553bc4('0x18'):switch(_0x47bff4['toLowerCase']()){case _0x553bc4('0xb'):_0x3208f9=[{'type':_0x553bc4('0x28'),'content':_0x553bc4('0x9'),'key':null,'keyType':null,'variableName':null},{'type':_0x553bc4('0x20'),'content':'','key':'Caller\x20Number','keyType':_0x553bc4('0x1'),'variableName':'calleridnum'},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x3'),'keyType':_0x553bc4('0x1'),'variableName':_0x553bc4('0x11')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x2'),'keyType':_0x553bc4('0x1'),'variableName':_0x553bc4('0xd')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x1f'),'keyType':_0x553bc4('0x1'),'variableName':_0x553bc4('0x29')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x8'),'keyType':_0x553bc4('0x1'),'variableName':_0x553bc4('0x13')},{'type':'keyValue','content':'','key':_0x553bc4('0xf'),'keyType':'variable','variableName':_0x553bc4('0x4')},{'type':_0x553bc4('0x28'),'content':_0x553bc4('0x1a'),'key':null,'keyType':null,'variableName':null},{'type':_0x553bc4('0x20'),'content':'','key':'Agent\x20Name','keyType':_0x553bc4('0x1'),'variableName':_0x553bc4('0xc')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x7'),'keyType':'variable','variableName':_0x553bc4('0x22')},{'type':_0x553bc4('0x28'),'content':_0x553bc4('0x2c'),'key':null,'keyType':null,'variableName':null},{'type':_0x553bc4('0x20'),'content':'','key':'Agent\x20Ring','keyType':'variable','variableName':_0x553bc4('0x4')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x6'),'keyType':'variable','variableName':_0x553bc4('0x12')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x14'),'keyType':'variable','variableName':_0x553bc4('0x2d')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x25'),'keyType':_0x553bc4('0x1'),'variableName':_0x553bc4('0x2b')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x0'),'keyType':_0x553bc4('0x1'),'variableName':_0x553bc4('0x2a')}];break;case'outbound':_0x3208f9=[{'type':_0x553bc4('0x28'),'content':_0x553bc4('0x9'),'variableName':null},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x5'),'keyType':'variable','keyContent':'','variableName':'destcalleridnum'},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x1d'),'keyType':_0x553bc4('0x1'),'keyContent':'','variableName':_0x553bc4('0x15')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x8'),'keyType':'variable','keyContent':'','variableName':'uniqueid'},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0xf'),'keyType':'variable','keyContent':'','variableName':'starttime'},{'type':'string','content':_0x553bc4('0x2c')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x19'),'keyType':_0x553bc4('0x1'),'keyContent':'','variableName':_0x553bc4('0x24')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0xe'),'keyType':_0x553bc4('0x1'),'keyContent':'','variableName':_0x553bc4('0x17')},{'type':_0x553bc4('0x20'),'content':'','key':_0x553bc4('0x1b'),'keyType':_0x553bc4('0x1'),'keyContent':'','variableName':_0x553bc4('0x10')},{'type':_0x553bc4('0x20'),'content':'','key':'Billable\x20Time','keyType':_0x553bc4('0x1'),'keyContent':'','variableName':_0x553bc4('0x16')}];break;}}return _0x3208f9;}; \ No newline at end of file +const a832_0x4133=['agentcompleteAt','Billable\x20Time','getDescriptions','***\x20Time\x20Info\x20***','destcalleridname','calleridname','starttime','queue','calleridnum','agentcalledAt','inbound','voice','Member\x20Name','talktime','destcalleridnum','string','uniqueid','endtime','push','billableseconds','membername','duration','variable','Complete\x20Time','Queue','Outbound\x20Call','destexten','***\x20Call\x20Info\x20***','Caller\x20Number','answertime','keyValue','Talk\x20Time','Answer\x20Time','Date','toLowerCase','agentconnectAt','holdtime','Called\x20Number'];(function(_0x31e22b,_0x413322){const _0x16aaab=function(_0x3ebd01){while(--_0x3ebd01){_0x31e22b['push'](_0x31e22b['shift']());}};_0x16aaab(++_0x413322);}(a832_0x4133,0x8f));const a832_0x16aa=function(_0x31e22b,_0x413322){_0x31e22b=_0x31e22b-0x0;let _0x16aaab=a832_0x4133[_0x31e22b];return _0x16aaab;};const _0x5cc3c5=a832_0x16aa;'use strict';exports['getSubjects']=function(_0x3ebd01,_0x4cc2b1){const _0x2101a1=a832_0x16aa,_0x484f1c=[{'type':_0x2101a1('0x18'),'content':'[xCALLY\x20Ticket]','variableName':null}];switch(_0x3ebd01['toLowerCase']()){case _0x2101a1('0x14'):switch(_0x4cc2b1[_0x2101a1('0x5')]()){case _0x2101a1('0x13'):_0x484f1c[_0x2101a1('0x1b')]({'type':_0x2101a1('0x1f'),'content':'','variableName':_0x2101a1('0x10')}),_0x484f1c[_0x2101a1('0x1b')]({'type':_0x2101a1('0x1f'),'content':'','variableName':_0x2101a1('0x11')});break;case'outbound':_0x484f1c[_0x2101a1('0x1b')]({'type':_0x2101a1('0x18'),'content':_0x2101a1('0x22'),'variableName':null}),_0x484f1c[_0x2101a1('0x1b')]({'type':_0x2101a1('0x1f'),'content':'','variableName':_0x2101a1('0x17')});break;}}return _0x484f1c;},exports[_0x5cc3c5('0xb')]=function(_0x23b300,_0x47a0b){const _0x24148d=_0x5cc3c5;let _0x17607e=[];switch(_0x23b300[_0x24148d('0x5')]()){case _0x24148d('0x14'):switch(_0x47a0b[_0x24148d('0x5')]()){case _0x24148d('0x13'):_0x17607e=[{'type':_0x24148d('0x18'),'content':_0x24148d('0x24'),'key':null,'keyType':null,'variableName':null},{'type':_0x24148d('0x1'),'content':'','key':_0x24148d('0x25'),'keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0x11')},{'type':_0x24148d('0x1'),'content':'','key':'Caller\x20Name','keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0xe')},{'type':_0x24148d('0x1'),'content':'','key':'Call\x20To','keyType':'variable','variableName':_0x24148d('0x23')},{'type':_0x24148d('0x1'),'content':'','key':_0x24148d('0x21'),'keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0x10')},{'type':'keyValue','content':'','key':'UniqueId','keyType':'variable','variableName':'uniqueid'},{'type':_0x24148d('0x1'),'content':'','key':_0x24148d('0x4'),'keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0x12')},{'type':_0x24148d('0x18'),'content':'***\x20Agent\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':_0x24148d('0x1'),'content':'','key':'Agent\x20Name','keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0xd')},{'type':'keyValue','content':'','key':'Agent\x20Number','keyType':'variable','variableName':_0x24148d('0x17')},{'type':_0x24148d('0x18'),'content':'***\x20Time\x20Info\x20***','key':null,'keyType':null,'variableName':null},{'type':'keyValue','content':'','key':'Agent\x20Ring','keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0x12')},{'type':'keyValue','content':'','key':'Agent\x20Connect','keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0x6')},{'type':_0x24148d('0x1'),'content':'','key':'Agent\x20Complete','keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0x9')},{'type':_0x24148d('0x1'),'content':'','key':'Hold\x20Time','keyType':_0x24148d('0x1f'),'variableName':_0x24148d('0x7')},{'type':'keyValue','content':'','key':_0x24148d('0x2'),'keyType':'variable','variableName':_0x24148d('0x16')}];break;case'outbound':_0x17607e=[{'type':'string','content':_0x24148d('0x24'),'variableName':null},{'type':_0x24148d('0x1'),'content':'','key':_0x24148d('0x8'),'keyType':'variable','keyContent':'','variableName':'destcalleridnum'},{'type':'keyValue','content':'','key':_0x24148d('0x15'),'keyType':_0x24148d('0x1f'),'keyContent':'','variableName':_0x24148d('0x1d')},{'type':_0x24148d('0x1'),'content':'','key':'UniqueId','keyType':_0x24148d('0x1f'),'keyContent':'','variableName':_0x24148d('0x19')},{'type':_0x24148d('0x1'),'content':'','key':_0x24148d('0x4'),'keyType':_0x24148d('0x1f'),'keyContent':'','variableName':_0x24148d('0xf')},{'type':_0x24148d('0x18'),'content':_0x24148d('0xc')},{'type':_0x24148d('0x1'),'content':'','key':_0x24148d('0x3'),'keyType':_0x24148d('0x1f'),'keyContent':'','variableName':_0x24148d('0x0')},{'type':_0x24148d('0x1'),'content':'','key':_0x24148d('0x20'),'keyType':_0x24148d('0x1f'),'keyContent':'','variableName':_0x24148d('0x1a')},{'type':'keyValue','content':'','key':'Duration','keyType':_0x24148d('0x1f'),'keyContent':'','variableName':_0x24148d('0x1e')},{'type':'keyValue','content':'','key':_0x24148d('0xa'),'keyType':_0x24148d('0x1f'),'keyContent':'','variableName':_0x24148d('0x1c')}];break;}}return _0x17607e;}; \ No newline at end of file diff --git a/server/components/interaction/service.js b/server/components/interaction/service.js index 5545b50..d0faaa5 100644 --- a/server/components/interaction/service.js +++ b/server/components/interaction/service.js @@ -1 +1 @@ -const a833_0x2a30=['whatsapp-interactions','toLowerCase','upperFirst','info','unknown','body','update','mobile','lodash','../../config/logger','../../mysqldb','fax','tracked','stringify','fax-interactions','InteractionId','then','html','name','user','Interaction','openchannel-interactions','toUpperCase','catch'];(function(_0x504333,_0x2a302e){const _0x4e882c=function(_0x4ceafc){while(--_0x4ceafc){_0x504333['push'](_0x504333['shift']());}};_0x4e882c(++_0x2a302e);}(a833_0x2a30,0x196));const a833_0x4e88=function(_0x504333,_0x2a302e){_0x504333=_0x504333-0x0;let _0x4e882c=a833_0x2a30[_0x504333];return _0x4e882c;};const _0x15e1af=a833_0x4e88;'use strict';const _=require(_0x15e1af('0xa')),db=require(_0x15e1af('0xc'))['db'],loggers={'openchannel':require(_0x15e1af('0xb'))(_0x15e1af('0x17')),'mail':require('../../config/logger')('mail-interactions'),'fax':require(_0x15e1af('0xb'))(_0x15e1af('0x10')),'sms':require(_0x15e1af('0xb'))('sms-interactions'),'chat':require(_0x15e1af('0xb'))('chat-interactions'),'whatsapp':require('../../config/logger')(_0x15e1af('0x2'))};function getInteractionId(_0x4ceafc,_0xd95039,_0x1931c0){const _0x104924=_0x15e1af;if(_0x4ceafc&&_0x4ceafc[_[_0x104924('0x4')](_0x1931c0)+_0x104924('0x11')])return _0x4ceafc[_[_0x104924('0x4')](_0x1931c0)+'InteractionId'];else{if(_0x4ceafc&&_0x4ceafc['id'])return _0x4ceafc['id'];else return _0xd95039&&_0xd95039['id']?_0xd95039['id']:_0x104924('0x6');}}function log(_0x11994d,_0x47180a,_0x2b31ea,_0x49c935,_0x385f33,_0x39b39d){const _0x1f06e8=_0x15e1af;loggers[_0x385f33[_0x1f06e8('0x3')]()][_0x11994d]('[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s',_0x39b39d[_0x1f06e8('0x0')](),_0x47180a?_0x47180a['id']:null,_0x47180a?_0x47180a[_0x1f06e8('0x14')]:null,_0x47180a?_0x47180a['role']:null,getInteractionId(_0x2b31ea,_0x49c935,_0x385f33),_0x2b31ea?JSON[_0x1f06e8('0xf')](_0x2b31ea):'null');}function updateUser(_0x1cde8f,_0x341f3d,_0x5d502a,_0x586322,_0x3840a7){const _0x4964e2=_0x15e1af;db[_[_0x4964e2('0x4')](_0x586322)+_0x4964e2('0x16')]['findOne']({'where':{'id':getInteractionId(_0x341f3d,_0x5d502a,_0x586322)}})['then'](function(_0x3ad651){const _0x18d84b=_0x4964e2;if(_0x3ad651)return _0x3ad651[_0x18d84b('0x8')]({'UserId':_0x1cde8f?_0x1cde8f['id']:null});})[_0x4964e2('0x12')](function(_0x44df9d){const _0x4823f3=_0x4964e2;_0x44df9d&&log(_0x4823f3('0x5'),_0x1cde8f,_0x341f3d,_0x5d502a,_0x586322,_0x3840a7);})[_0x4964e2('0x1')](function(){log('error',_0x1cde8f,_0x341f3d,_0x5d502a,_0x586322,_0x3840a7);});}exports[_0x15e1af('0xe')]=function(_0x19d000,_0x2245cd){return function(_0x1ed8ba,_0x1d0446,_0x47b12b){const _0x5d376a=a833_0x4e88,_0x11e99e=_0x1ed8ba[_0x5d376a('0x15')];let _0x26f8bf={};const _0x179b94=_0x1ed8ba['query'];_0x26f8bf&&(_0x26f8bf=_['clone'](_0x1ed8ba[_0x5d376a('0x7')]),_0x26f8bf=_['omit'](_0x26f8bf,['body',_0x5d376a('0x13'),'phone',_0x5d376a('0xd'),_0x5d376a('0x9')])),updateUser(_0x11e99e,_0x26f8bf,_0x179b94,_0x19d000,_0x2245cd),_0x47b12b(null);};}; \ No newline at end of file +const a833_0x35b6=['html','clone','mail-interactions','chat-interactions','update','error','name','null','catch','fax-interactions','openchannel-interactions','omit','query','upperFirst','phone','InteractionId','sms-interactions','role','user','toUpperCase','then','[%s]\x20id=%s\x20name=%s\x20role=%s\x20interaction=%s\x20body=%s','tracked','body','../../config/logger','Interaction','mobile','unknown','toLowerCase','whatsapp-interactions'];(function(_0x5b7352,_0x35b676){const _0x26dae5=function(_0x569f67){while(--_0x569f67){_0x5b7352['push'](_0x5b7352['shift']());}};_0x26dae5(++_0x35b676);}(a833_0x35b6,0x198));const a833_0x26da=function(_0x5b7352,_0x35b676){_0x5b7352=_0x5b7352-0x0;let _0x26dae5=a833_0x35b6[_0x5b7352];return _0x26dae5;};const _0x45de77=a833_0x26da;'use strict';const _=require('lodash'),db=require('../../mysqldb')['db'],loggers={'openchannel':require(_0x45de77('0x6'))(_0x45de77('0x16')),'mail':require(_0x45de77('0x6'))(_0x45de77('0xe')),'fax':require(_0x45de77('0x6'))(_0x45de77('0x15')),'sms':require(_0x45de77('0x6'))(_0x45de77('0x1c')),'chat':require(_0x45de77('0x6'))(_0x45de77('0xf')),'whatsapp':require(_0x45de77('0x6'))(_0x45de77('0xb'))};function getInteractionId(_0x569f67,_0x53a62d,_0x236e44){const _0x3dbca7=_0x45de77;if(_0x569f67&&_0x569f67[_[_0x3dbca7('0x19')](_0x236e44)+_0x3dbca7('0x1b')])return _0x569f67[_['upperFirst'](_0x236e44)+_0x3dbca7('0x1b')];else{if(_0x569f67&&_0x569f67['id'])return _0x569f67['id'];else return _0x53a62d&&_0x53a62d['id']?_0x53a62d['id']:_0x3dbca7('0x9');}}function log(_0x2a3f0f,_0x27716e,_0x2655f8,_0x1cf461,_0x147bb0,_0x2e7e6c){const _0x235d84=_0x45de77;loggers[_0x147bb0[_0x235d84('0xa')]()][_0x2a3f0f](_0x235d84('0x3'),_0x2e7e6c[_0x235d84('0x1')](),_0x27716e?_0x27716e['id']:null,_0x27716e?_0x27716e[_0x235d84('0x12')]:null,_0x27716e?_0x27716e[_0x235d84('0x1d')]:null,getInteractionId(_0x2655f8,_0x1cf461,_0x147bb0),_0x2655f8?JSON['stringify'](_0x2655f8):_0x235d84('0x13'));}function updateUser(_0x303feb,_0x2e8984,_0x3d1525,_0x5c49e6,_0x3ff90a){const _0x369838=_0x45de77;db[_[_0x369838('0x19')](_0x5c49e6)+_0x369838('0x7')]['findOne']({'where':{'id':getInteractionId(_0x2e8984,_0x3d1525,_0x5c49e6)}})[_0x369838('0x2')](function(_0x59826d){const _0x168144=_0x369838;if(_0x59826d)return _0x59826d[_0x168144('0x10')]({'UserId':_0x303feb?_0x303feb['id']:null});})[_0x369838('0x2')](function(_0x30fb5c){_0x30fb5c&&log('info',_0x303feb,_0x2e8984,_0x3d1525,_0x5c49e6,_0x3ff90a);})[_0x369838('0x14')](function(){const _0x13c0ae=_0x369838;log(_0x13c0ae('0x11'),_0x303feb,_0x2e8984,_0x3d1525,_0x5c49e6,_0x3ff90a);});}exports[_0x45de77('0x4')]=function(_0x507e35,_0x2ae29d){return function(_0x1e1a21,_0x2bcd48,_0x2fe6aa){const _0x4c6a1f=a833_0x26da,_0x17cfa0=_0x1e1a21[_0x4c6a1f('0x0')];let _0x79b7d9={};const _0x31a129=_0x1e1a21[_0x4c6a1f('0x18')];_0x79b7d9&&(_0x79b7d9=_[_0x4c6a1f('0xd')](_0x1e1a21[_0x4c6a1f('0x5')]),_0x79b7d9=_[_0x4c6a1f('0x17')](_0x79b7d9,[_0x4c6a1f('0x5'),_0x4c6a1f('0xc'),_0x4c6a1f('0x1a'),'fax',_0x4c6a1f('0x8')])),updateUser(_0x17cfa0,_0x79b7d9,_0x31a129,_0x507e35,_0x2ae29d),_0x2fe6aa(null);};}; \ No newline at end of file diff --git a/server/components/license/service.js b/server/components/license/service.js index dfeef87..26f0b67 100644 --- a/server/components/license/service.js +++ b/server/components/license/service.js @@ -1 +1 @@ -const a834_0x2bb8=['../encryptor','format','User','then','License','Maximum\x20%s\x20limit\x20have\x20been\x20reached','json','findOne','composable-middleware','user','catch','status','util','isUserLimit','users'];(function(_0x1af204,_0x2bb8cc){const _0x10c573=function(_0x1deb47){while(--_0x1deb47){_0x1af204['push'](_0x1af204['shift']());}};_0x10c573(++_0x2bb8cc);}(a834_0x2bb8,0x8c));const a834_0x10c5=function(_0x1af204,_0x2bb8cc){_0x1af204=_0x1af204-0x0;let _0x10c573=a834_0x2bb8[_0x1af204];return _0x10c573;};const _0x9016ee=a834_0x10c5;'use strict';const util=require(_0x9016ee('0x7')),compose=require(_0x9016ee('0x3')),{Op}=require('sequelize'),db=require('../../mysqldb')['db'],{getValueFromLicense}=require(_0x9016ee('0xa'));function isLimit(_0x1deb47,_0x16a8e9,_0x649d1f,_0x54dae7){let _0x6c02e5=_0x16a8e9;return compose()['use'](function(_0x141be1,_0x1add33,_0x180c16){const _0x249e24=a834_0x10c5;return db[_0x249e24('0xe')][_0x249e24('0x2')]({'where':{'id':0x1},'raw':!![]})[_0x249e24('0xd')](function(_0x40f7e1){const _0x13550c=getValueFromLicense(_0x1deb47,_0x40f7e1);return _0x13550c?_0x13550c:_0x6c02e5;})[_0x249e24('0xd')](function(_0x310702){return _0x6c02e5=_0x310702,_0x649d1f['count'](_0x54dae7);})[_0x249e24('0xd')](function(_0x471e8f){const _0x3a24cc=_0x249e24;if(_0x471e8f>=_0x6c02e5)return _0x1add33[_0x3a24cc('0x6')](0x193)[_0x3a24cc('0x1')]({'message':util[_0x3a24cc('0xb')](_0x3a24cc('0x0'),_0x1deb47)});_0x180c16();})[_0x249e24('0x5')](function(_0x3baf3e){_0x180c16(_0x3baf3e);});});}function isUserLimit(){const _0x4e262c=_0x9016ee;return isLimit(_0x4e262c('0x9'),0x1,db[_0x4e262c('0xc')],{'where':{[Op['or']]:[{'role':'admin'},{'role':_0x4e262c('0x4')}]}});}exports[_0x9016ee('0x8')]=isUserLimit; \ No newline at end of file +const a834_0x2108=['users','composable-middleware','status','catch','License','then','format','use','User','admin','sequelize','count','util','../encryptor','findOne'];(function(_0x40d82b,_0x210818){const _0x42391c=function(_0x533981){while(--_0x533981){_0x40d82b['push'](_0x40d82b['shift']());}};_0x42391c(++_0x210818);}(a834_0x2108,0x186));const a834_0x4239=function(_0x40d82b,_0x210818){_0x40d82b=_0x40d82b-0x0;let _0x42391c=a834_0x2108[_0x40d82b];return _0x42391c;};const _0x9727c3=a834_0x4239;'use strict';const util=require(_0x9727c3('0xc')),compose=require(_0x9727c3('0x1')),{Op}=require(_0x9727c3('0xa')),db=require('../../mysqldb')['db'],{getValueFromLicense}=require(_0x9727c3('0xd'));function isLimit(_0x533981,_0x33481c,_0x1bbb00,_0x1468b8){const _0x422695=_0x9727c3;let _0x59af52=_0x33481c;return compose()[_0x422695('0x7')](function(_0x578f7b,_0x5f07c3,_0x3c65b9){const _0x42f3a0=_0x422695;return db[_0x42f3a0('0x4')][_0x42f3a0('0xe')]({'where':{'id':0x1},'raw':!![]})[_0x42f3a0('0x5')](function(_0x5872b8){const _0x233261=getValueFromLicense(_0x533981,_0x5872b8);return _0x233261?_0x233261:_0x59af52;})[_0x42f3a0('0x5')](function(_0x3b8cf6){const _0x32d79a=_0x42f3a0;return _0x59af52=_0x3b8cf6,_0x1bbb00[_0x32d79a('0xb')](_0x1468b8);})['then'](function(_0x1286d0){const _0x4eb0ce=_0x42f3a0;if(_0x1286d0>=_0x59af52)return _0x5f07c3[_0x4eb0ce('0x2')](0x193)['json']({'message':util[_0x4eb0ce('0x6')]('Maximum\x20%s\x20limit\x20have\x20been\x20reached',_0x533981)});_0x3c65b9();})[_0x42f3a0('0x3')](function(_0x236b9c){_0x3c65b9(_0x236b9c);});});}function isUserLimit(){const _0x537b3a=_0x9727c3;return isLimit(_0x537b3a('0x0'),0x1,db[_0x537b3a('0x8')],{'where':{[Op['or']]:[{'role':_0x537b3a('0x9')},{'role':'user'}]}});}exports['isUserLimit']=isUserLimit; \ No newline at end of file diff --git a/server/components/parsers/advancedSearch.js b/server/components/parsers/advancedSearch.js index 3b250e7..c285fca 100644 --- a/server/components/parsers/advancedSearch.js +++ b/server/components/parsers/advancedSearch.js @@ -1 +1 @@ -const a835_0x29a3=['$startsWith','IN\x20?','match','conditions','DATE','minutes','buildExpression','$notIn','[$or]','text','utcOffset','$gt','$endsWith','indexOf','CAST(','slice','pop','\x20OR\x20','$between','hours','operator','sqlOperator','$substring','parseSearch','includes','split','start','YYYY-MM-DD','lodash','$eq','<>\x20?','$lte','=\x20?','format','and','$ne','filter','$gte','startsWith','length','value','$in','>\x20?','<\x20?','castTo','field','NOT\x20IN\x20?','LIKE\x20?','add','days','moment','forEach'];(function(_0x4d0229,_0x29a397){const _0x298b00=function(_0x3f619b){while(--_0x3f619b){_0x4d0229['push'](_0x4d0229['shift']());}};_0x298b00(++_0x29a397);}(a835_0x29a3,0x152));const a835_0x298b=function(_0x4d0229,_0x29a397){_0x4d0229=_0x4d0229-0x0;let _0x298b00=a835_0x29a3[_0x4d0229];return _0x298b00;};const _0xc1f327=a835_0x298b;'use strict';const _=require(_0xc1f327('0x2')),moment=require(_0xc1f327('0x18'));exports[_0xc1f327('0x31')]=function(_0x3f619b){const _0x5b80f7=_0xc1f327,_0x5ac917={'conditions':[]};_0x5ac917[_0x5b80f7('0x2f')]=_[_0x5b80f7('0xc')](_0x3f619b,_0x5b80f7('0x22'))?'or':_0x5b80f7('0x8');const _0x1b8b9c=_0x3f619b['replace']('[$and]','')['replace'](_0x5b80f7('0x22'),'')[_0x5b80f7('0x33')]('||');for(let _0x3e508d=0x0;_0x3e508d<_0x1b8b9c[_0x5b80f7('0xd')];_0x3e508d++){const _0x5502c3=_0x1b8b9c[_0x3e508d][_0x5b80f7('0x33')](':='),_0x242143=_0x5502c3[0x0],_0x3be55a=_0x5502c3[_0x5b80f7('0x29')](0x1);_0x3be55a[_0x5b80f7('0x19')](function(_0x1f4581){const _0x1cb7c4=_0x5b80f7,_0x572169=_0x1f4581[_0x1cb7c4('0x33')]('[')['shift'](),_0x10ac0a=_0x1f4581[_0x1cb7c4('0x1c')](/\[(.*?)\]/g);_0x10ac0a[_0x1cb7c4('0x19')](function(_0x5a7aad){const _0x40be7e=_0x1cb7c4,_0x5546ec=_0x5a7aad['split']('[')[_0x40be7e('0xa')](function(_0x45f5b9){const _0x3792b9=_0x40be7e;return _0x45f5b9[_0x3792b9('0x27')](']')>-0x1;})['map'](function(_0x3f623a){const _0x509737=_0x40be7e;return _0x3f623a[_0x509737('0x33')](']')[0x0];})[0x0];_0x5ac917[_0x40be7e('0x1d')]['push']({'field':_0x242143,'operator':_0x572169,'value':_0x5546ec});});});}return _0x5ac917;},exports[_0xc1f327('0x20')]=function(_0x4447c3,_0x3dc7bc,_0x26b09d){const _0x106303=_0xc1f327,_0x91ddf0={};if(_0x3dc7bc==='DATE'){if(_0x26b09d[_0x106303('0x2e')]===_0x106303('0x3'))_0x26b09d[_0x106303('0x2e')]=_0x106303('0x2c'),_0x26b09d[_0x106303('0xe')]+=','+_0x26b09d[_0x106303('0xe')];else _[_0x106303('0x32')]([_0x106303('0x25'),_0x106303('0x5')],_0x26b09d[_0x106303('0x2e')])&&(_0x26b09d[_0x106303('0xe')]=moment(_0x26b09d[_0x106303('0xe')])['add'](0x1,_0x106303('0x17'))[_0x106303('0x7')](_0x106303('0x1')));}_0x26b09d[_0x106303('0x12')]?(_0x3dc7bc=_0x26b09d[_0x106303('0x12')],_0x91ddf0[_0x106303('0x23')]=_0x106303('0x28')+_0x4447c3+'.'+_0x26b09d[_0x106303('0x13')]+'\x20AS\x20'+_0x26b09d[_0x106303('0x12')]+')\x20'+parseOperator(_0x26b09d[_0x106303('0x2e')])):_0x91ddf0[_0x106303('0x23')]=_0x4447c3+'.'+_0x26b09d['field']+'\x20'+parseOperator(_0x26b09d[_0x106303('0x2e')]);if(_[_0x106303('0x32')](['$ne','$notIn'],_0x26b09d[_0x106303('0x2e')]))_0x91ddf0[_0x106303('0x23')]='('+_0x91ddf0['text']+_0x106303('0x2b')+_0x4447c3+'.'+_0x26b09d['field']+'\x20IS\x20NULL)';return _0x91ddf0['value']=parseValue(_0x3dc7bc,_0x26b09d[_0x106303('0x2e')],_0x26b09d[_0x106303('0xe')]),_0x91ddf0;};function parseOperator(_0x7861eb){const _0x431c1b=_0xc1f327;let _0x54876a;switch(_0x7861eb){case _0x431c1b('0xf'):_0x54876a=_0x431c1b('0x1b');break;case _0x431c1b('0x21'):_0x54876a=_0x431c1b('0x14');break;case'$eq':_0x54876a=_0x431c1b('0x6');break;case _0x431c1b('0x9'):_0x54876a=_0x431c1b('0x4');break;case'$substring':case _0x431c1b('0x1a'):case _0x431c1b('0x26'):_0x54876a=_0x431c1b('0x15');break;case'$lt':_0x54876a=_0x431c1b('0x11');break;case _0x431c1b('0x25'):_0x54876a=_0x431c1b('0x10');break;case'$lte':_0x54876a='<=\x20?';break;case _0x431c1b('0xb'):_0x54876a='>=\x20?';break;case'$between':_0x54876a='BETWEEN\x20?\x20AND\x20?';break;}return _0x54876a;}function parseValue(_0x4169d0,_0x9d982c,_0x534ebe){const _0x506dda=_0xc1f327;let _0xf33d23={'start':undefined,'end':undefined};switch(_0x9d982c){case _0x506dda('0xf'):case _0x506dda('0x21'):_0xf33d23['start']=_0x534ebe[_0x506dda('0x33')](',');break;case _0x506dda('0x30'):_0xf33d23[_0x506dda('0x0')]='%'+_0x534ebe+'%';break;case _0x506dda('0x1a'):_0xf33d23[_0x506dda('0x0')]=_0x534ebe+'%';break;case _0x506dda('0x26'):_0xf33d23['start']='%'+_0x534ebe;break;case _0x506dda('0x2c'):{const _0x1ee002=_0x63806d[_0x506dda('0x33')](',');let _0x63806d=_0x1ee002['shift'](),_0x15bbf3=_0x1ee002[_0x506dda('0x2a')]();_0x4169d0===_0x506dda('0x1e')&&(_0x63806d=moment(_0x63806d)['utcOffset'](0x0,!![])[_0x506dda('0x7')](),_0x15bbf3=moment(_0x15bbf3)[_0x506dda('0x24')](0x0,!![])[_0x506dda('0x16')](0x17,_0x506dda('0x2d'))[_0x506dda('0x16')](0x3b,_0x506dda('0x1f'))[_0x506dda('0x16')](0x3b,'seconds')['format']()),_0xf33d23={'start':_0x63806d,'end':_0x15bbf3};}break;default:_0xf33d23['start']=_0x534ebe;break;}return _0xf33d23;} \ No newline at end of file +const a835_0x5682=['>\x20?','text','$eq','forEach','castTo','filter','$between','YYYY-MM-DD','field','<>\x20?','DATE','and','add','$startsWith','$in','sqlOperator','moment','seconds','>=\x20?','=\x20?','parseSearch','operator','[$and]','hours','lodash','indexOf','slice','$gt','IN\x20?','BETWEEN\x20?\x20AND\x20?','utcOffset','match','$notIn','$gte','<\x20?','NOT\x20IN\x20?','split','[$or]','shift','pop','replace','\x20AS\x20','\x20OR\x20','<=\x20?','days','value','$substring','start','\x20IS\x20NULL)','conditions','$lte','startsWith','format','minutes','$lt','$endsWith','includes','length'];(function(_0x5bc415,_0x5682b5){const _0x1cc317=function(_0x3dd420){while(--_0x3dd420){_0x5bc415['push'](_0x5bc415['shift']());}};_0x1cc317(++_0x5682b5);}(a835_0x5682,0xfd));const a835_0x1cc3=function(_0x5bc415,_0x5682b5){_0x5bc415=_0x5bc415-0x0;let _0x1cc317=a835_0x5682[_0x5bc415];return _0x1cc317;};const _0x3b2bdd=a835_0x1cc3;'use strict';const _=require(_0x3b2bdd('0x3')),moment=require(_0x3b2bdd('0x35'));exports[_0x3b2bdd('0x39')]=function(_0x3dd420){const _0x336c28=_0x3b2bdd,_0x1bebe8={'conditions':[]};_0x1bebe8[_0x336c28('0x34')]=_[_0x336c28('0x1e')](_0x3dd420,_0x336c28('0x10'))?'or':_0x336c28('0x30');const _0x58f323=_0x3dd420[_0x336c28('0x13')](_0x336c28('0x1'),'')[_0x336c28('0x13')](_0x336c28('0x10'),'')[_0x336c28('0xf')]('||');for(let _0xd620f8=0x0;_0xd620f8<_0x58f323[_0x336c28('0x24')];_0xd620f8++){const _0x2194d5=_0x58f323[_0xd620f8]['split'](':='),_0x17e92e=_0x2194d5[0x0],_0x19e62=_0x2194d5[_0x336c28('0x5')](0x1);_0x19e62[_0x336c28('0x28')](function(_0x3e0e10){const _0x190b0e=_0x336c28,_0xd991b=_0x3e0e10[_0x190b0e('0xf')]('[')[_0x190b0e('0x11')](),_0x3c6484=_0x3e0e10[_0x190b0e('0xa')](/\[(.*?)\]/g);_0x3c6484[_0x190b0e('0x28')](function(_0x12556c){const _0x1a4aab=_0x190b0e,_0x5618b7=_0x12556c[_0x1a4aab('0xf')]('[')[_0x1a4aab('0x2a')](function(_0x295586){const _0x28b66e=_0x1a4aab;return _0x295586[_0x28b66e('0x4')](']')>-0x1;})['map'](function(_0x1a1017){return _0x1a1017['split'](']')[0x0];})[0x0];_0x1bebe8[_0x1a4aab('0x1c')]['push']({'field':_0x17e92e,'operator':_0xd991b,'value':_0x5618b7});});});}return _0x1bebe8;},exports['buildExpression']=function(_0x2a6798,_0x4653bc,_0xa65ccf){const _0x572d11=_0x3b2bdd,_0x12e046={};if(_0x4653bc===_0x572d11('0x2f')){if(_0xa65ccf[_0x572d11('0x0')]===_0x572d11('0x27'))_0xa65ccf[_0x572d11('0x0')]=_0x572d11('0x2b'),_0xa65ccf[_0x572d11('0x18')]+=','+_0xa65ccf['value'];else _[_0x572d11('0x23')](['$gt','$lte'],_0xa65ccf['operator'])&&(_0xa65ccf[_0x572d11('0x18')]=moment(_0xa65ccf[_0x572d11('0x18')])[_0x572d11('0x31')](0x1,_0x572d11('0x17'))[_0x572d11('0x1f')](_0x572d11('0x2c')));}_0xa65ccf['castTo']?(_0x4653bc=_0xa65ccf[_0x572d11('0x29')],_0x12e046[_0x572d11('0x26')]='CAST('+_0x2a6798+'.'+_0xa65ccf[_0x572d11('0x2d')]+_0x572d11('0x14')+_0xa65ccf[_0x572d11('0x29')]+')\x20'+parseOperator(_0xa65ccf[_0x572d11('0x0')])):_0x12e046[_0x572d11('0x26')]=_0x2a6798+'.'+_0xa65ccf[_0x572d11('0x2d')]+'\x20'+parseOperator(_0xa65ccf[_0x572d11('0x0')]);if(_['includes'](['$ne',_0x572d11('0xb')],_0xa65ccf[_0x572d11('0x0')]))_0x12e046[_0x572d11('0x26')]='('+_0x12e046[_0x572d11('0x26')]+_0x572d11('0x15')+_0x2a6798+'.'+_0xa65ccf[_0x572d11('0x2d')]+_0x572d11('0x1b');return _0x12e046[_0x572d11('0x18')]=parseValue(_0x4653bc,_0xa65ccf['operator'],_0xa65ccf['value']),_0x12e046;};function parseOperator(_0x429525){const _0x396b85=_0x3b2bdd;let _0x449fdf;switch(_0x429525){case _0x396b85('0x33'):_0x449fdf=_0x396b85('0x7');break;case _0x396b85('0xb'):_0x449fdf=_0x396b85('0xe');break;case _0x396b85('0x27'):_0x449fdf=_0x396b85('0x38');break;case'$ne':_0x449fdf=_0x396b85('0x2e');break;case'$substring':case _0x396b85('0x32'):case _0x396b85('0x22'):_0x449fdf='LIKE\x20?';break;case _0x396b85('0x21'):_0x449fdf=_0x396b85('0xd');break;case _0x396b85('0x6'):_0x449fdf=_0x396b85('0x25');break;case _0x396b85('0x1d'):_0x449fdf=_0x396b85('0x16');break;case _0x396b85('0xc'):_0x449fdf=_0x396b85('0x37');break;case'$between':_0x449fdf=_0x396b85('0x8');break;}return _0x449fdf;}function parseValue(_0x416086,_0x1d65a7,_0x176262){const _0x58e86a=_0x3b2bdd;let _0x1ed010={'start':undefined,'end':undefined};switch(_0x1d65a7){case _0x58e86a('0x33'):case _0x58e86a('0xb'):_0x1ed010['start']=_0x176262[_0x58e86a('0xf')](',');break;case _0x58e86a('0x19'):_0x1ed010[_0x58e86a('0x1a')]='%'+_0x176262+'%';break;case _0x58e86a('0x32'):_0x1ed010[_0x58e86a('0x1a')]=_0x176262+'%';break;case _0x58e86a('0x22'):_0x1ed010[_0x58e86a('0x1a')]='%'+_0x176262;break;case _0x58e86a('0x2b'):{const _0x4a847f=_0x1abb0c[_0x58e86a('0xf')](',');let _0x1abb0c=_0x4a847f[_0x58e86a('0x11')](),_0x340d65=_0x4a847f[_0x58e86a('0x12')]();_0x416086===_0x58e86a('0x2f')&&(_0x1abb0c=moment(_0x1abb0c)[_0x58e86a('0x9')](0x0,!![])[_0x58e86a('0x1f')](),_0x340d65=moment(_0x340d65)[_0x58e86a('0x9')](0x0,!![])['add'](0x17,_0x58e86a('0x2'))[_0x58e86a('0x31')](0x3b,_0x58e86a('0x20'))[_0x58e86a('0x31')](0x3b,_0x58e86a('0x36'))[_0x58e86a('0x1f')]()),_0x1ed010={'start':_0x1abb0c,'end':_0x340d65};}break;default:_0x1ed010['start']=_0x176262;break;}return _0x1ed010;} \ No newline at end of file diff --git a/server/components/parsers/qs.js b/server/components/parsers/qs.js index b15c319..16a7910 100644 --- a/server/components/parsers/qs.js +++ b/server/components/parsers/qs.js @@ -1 +1 @@ -const a836_0x90ae=['DATE','isObject','substr','utc','limit','col','unset','match','^[+]?[0-9]*$','parse','find','moment','push','isEmail','type','priority','split','fields','sequelize','lodash','toString','join','forOwn','omit','length','format','filters','$gte','cast','lte','offset','unsigned','YYYY-MM-DD','sort','isPlainObject','undefined','isArray','isString','gte'];(function(_0x44d302,_0x90ae22){const _0x59f341=function(_0x3a7682){while(--_0x3a7682){_0x44d302['push'](_0x44d302['shift']());}};_0x59f341(++_0x90ae22);}(a836_0x90ae,0x1f1));const a836_0x59f3=function(_0x44d302,_0x90ae22){_0x44d302=_0x44d302-0x0;let _0x59f341=a836_0x90ae[_0x44d302];return _0x59f341;};const _0x540ab5=a836_0x59f3;'use strict';const _=require(_0x540ab5('0x1d')),sequelize=require(_0x540ab5('0x1c')),moment=require(_0x540ab5('0x15')),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports[_0x540ab5('0x1b')]=function(_0x3a7682){const _0x212488=_0x540ab5;let _0x3deada=null;return _0x3a7682&&(_0x3deada=_0x3a7682[_0x212488('0x1a')](',')),_0x3deada;},exports[_0x540ab5('0x24')]=function(_0xdd1a05,_0x4d8d21){const _0x10e9ae=_0x540ab5,_0x2ec4d7={};return!_['isEmpty'](_0xdd1a05)&&_[_0x10e9ae('0x20')](_0xdd1a05,function(_0x278140,_0x16dbbd){const _0x10a946=_0x10e9ae;try{if(_0x4d8d21){const _0x25d93c=_[_0x10a946('0x14')](_0x4d8d21,{'name':_0x16dbbd})||{};if(_0x25d93c[_0x10a946('0x18')]===_0x10a946('0xa')&&_[_0x10a946('0x5')](_0x278140)){const _0x2755a8=JSON[_0x10a946('0x13')](_0x278140),_0x3534f3={[Op[_0x10a946('0x9')]]:moment(moment(_0x2755a8[_0x10a946('0x25')])[_0x10a946('0x23')]('YYYY-MM-DD'))[_0x10a946('0xd')]()['format'](),[Op[_0x10a946('0x0')]]:moment(moment(_0x2755a8['$lte'])[_0x10a946('0x23')](_0x10a946('0x3')))['utc']()['subtract'](0x1,'s')[_0x10a946('0x23')]()};_0x2ec4d7[_0x16dbbd]=_0x3534f3;}else _0x2ec4d7[_0x16dbbd]=_[_0x10a946('0x7')](_0x278140)?_0x278140:JSON[_0x10a946('0x13')](_0x278140);}else _0x2ec4d7[_0x16dbbd]=_[_0x10a946('0x7')](_0x278140)?_0x278140:JSON[_0x10a946('0x13')](_0x278140);}catch(_0xd46e9d){_0x2ec4d7[_0x16dbbd]=_0x278140['split'](',');}}),_0x2ec4d7;},exports[_0x540ab5('0xe')]=function(_0x19b5c7){return _0x19b5c7=parseInt(_0x19b5c7,0xa),(!_0x19b5c7||_0x19b5c7<0x0)&&(_0x19b5c7=LIMIT_VALUE),_0x19b5c7;},exports[_0x540ab5('0x1')]=function(_0x3af6fd){return _0x3af6fd=parseInt(_0x3af6fd,0xa),(!_0x3af6fd||_0x3af6fd<0x0)&&(_0x3af6fd=0x0),_0x3af6fd;},exports[_0x540ab5('0x4')]=function(_0x2dd293){const _0x41b349=_0x540ab5;let _0x13be3a,_0x3702ac=null;return _0x2dd293&&(_0x13be3a=_0x2dd293[_0x41b349('0x1a')](','),_0x3702ac=_['map'](_0x13be3a,function(_0x5b223b){const _0x2bba5a=_0x41b349;return _0x5b223b['indexOf']('-')===0x0?[_0x5b223b===_0x2bba5a('0x19')?sequelize['cast'](sequelize[_0x2bba5a('0xf')](_0x2bba5a('0x19')),_0x2bba5a('0x2')):_0x5b223b[_0x2bba5a('0xc')](0x1),'DESC']:[_0x5b223b==='priority'?sequelize[_0x2bba5a('0x26')](sequelize[_0x2bba5a('0xf')]('priority'),_0x2bba5a('0x2')):_0x5b223b,'ASC'];})),_0x3702ac;},exports[_0x540ab5('0x21')]=function(_0xc62ab0,_0x2adb50){const _0x26a7d3=_0x540ab5;if(_['isEmpty'](_0xc62ab0))return _0xc62ab0;if(_['isArray'](_0xc62ab0)){for(let _0x4530ac=0x0;_0x4530ac<_0xc62ab0[_0x26a7d3('0x22')];_0x4530ac+=0x1){_0xc62ab0[_0x4530ac]=this[_0x26a7d3('0x21')](_0xc62ab0[_0x4530ac],_0x2adb50);}return _0xc62ab0;}if(!_[_0x26a7d3('0xb')](_0xc62ab0))return _0xc62ab0;_[_0x26a7d3('0x8')](_0x2adb50)&&(_0x2adb50=[_0x2adb50]);if(!_['isArray'](_0x2adb50))return _0xc62ab0;for(let _0xfdbf77=0x0;_0xfdbf77<_0x2adb50[_0x26a7d3('0x22')];_0xfdbf77+=0x1){_[_0x26a7d3('0x10')](_0xc62ab0,_0x2adb50[_0xfdbf77]);}for(const _0x1e2732 in _0xc62ab0){typeof _0xc62ab0[_0x1e2732]!==_0x26a7d3('0x6')&&(_0xc62ab0[_0x1e2732]=this['omit'](_0xc62ab0[_0x1e2732],_0x2adb50));}return _0xc62ab0;},exports['isNumeric']=function(_0x4e68aa){const _0x2dcb26=_0x540ab5;return _0x4e68aa[_0x2dcb26('0x11')](RegExp(_0x2dcb26('0x12')))?!![]:![];},exports[_0x540ab5('0x17')]=function(_0x5d018f){const _0x3e851e=_0x540ab5;return _0x5d018f[_0x3e851e('0x11')](/^\S+@\S+$/)?!![]:![];},exports['getFullTextValue']=function(_0x5ecc72){const _0x417472=_0x540ab5,_0xdba0b=[];return _0x5ecc72[_0x417472('0x1a')]('\x20')['forEach'](function(_0x398a34){const _0x19f41=_0x417472;_0xdba0b[_0x19f41('0x16')]('+'+_0x398a34[_0x19f41('0x1e')]()+'*');}),_0xdba0b[_0x417472('0x1f')]('\x20');}; \ No newline at end of file +const a836_0x170e=['substr','isEmpty','offset','lte','$gte','unsigned','omit','indexOf','match','lodash','undefined','map','isPlainObject','sequelize','isArray','utc','gte','split','find','isNumeric','fields','filters','forEach','$lte','toString','ASC','unset','subtract','forOwn','col','format','parse','getFullTextValue','cast','priority','isEmail'];(function(_0x1bfcc4,_0x170e06){const _0x53a5f3=function(_0x15308a){while(--_0x15308a){_0x1bfcc4['push'](_0x1bfcc4['shift']());}};_0x53a5f3(++_0x170e06);}(a836_0x170e,0x174));const a836_0x53a5=function(_0x1bfcc4,_0x170e06){_0x1bfcc4=_0x1bfcc4-0x0;let _0x53a5f3=a836_0x170e[_0x1bfcc4];return _0x53a5f3;};const _0x48dc1e=a836_0x53a5;'use strict';const _=require(_0x48dc1e('0x21')),sequelize=require(_0x48dc1e('0x1')),moment=require('moment'),Op=sequelize['Op'],LIMIT_VALUE=0xfa;exports[_0x48dc1e('0x8')]=function(_0x15308a){let _0x431f15=null;return _0x15308a&&(_0x431f15=_0x15308a['split'](',')),_0x431f15;},exports[_0x48dc1e('0x9')]=function(_0xf9e43f,_0x162aae){const _0x2cf06c=_0x48dc1e,_0x64b3cf={};return!_[_0x2cf06c('0x19')](_0xf9e43f)&&_[_0x2cf06c('0x10')](_0xf9e43f,function(_0x43cbcf,_0x5b0780){const _0x1acdb6=_0x2cf06c;try{if(_0x162aae){const _0x38ef81=_[_0x1acdb6('0x6')](_0x162aae,{'name':_0x5b0780})||{};if(_0x38ef81['type']==='DATE'&&_[_0x1acdb6('0x0')](_0x43cbcf)){const _0x251504=JSON[_0x1acdb6('0x13')](_0x43cbcf),_0x4d818d={[Op[_0x1acdb6('0x4')]]:moment(moment(_0x251504[_0x1acdb6('0x1c')])[_0x1acdb6('0x12')]('YYYY-MM-DD'))[_0x1acdb6('0x3')]()[_0x1acdb6('0x12')](),[Op[_0x1acdb6('0x1b')]]:moment(moment(_0x251504[_0x1acdb6('0xb')])[_0x1acdb6('0x12')]('YYYY-MM-DD'))['utc']()[_0x1acdb6('0xf')](0x1,'s')[_0x1acdb6('0x12')]()};_0x64b3cf[_0x5b0780]=_0x4d818d;}else _0x64b3cf[_0x5b0780]=_['isArray'](_0x43cbcf)?_0x43cbcf:JSON['parse'](_0x43cbcf);}else _0x64b3cf[_0x5b0780]=_['isArray'](_0x43cbcf)?_0x43cbcf:JSON['parse'](_0x43cbcf);}catch(_0x1cd604){_0x64b3cf[_0x5b0780]=_0x43cbcf[_0x1acdb6('0x5')](',');}}),_0x64b3cf;},exports['limit']=function(_0x1e8a05){return _0x1e8a05=parseInt(_0x1e8a05,0xa),(!_0x1e8a05||_0x1e8a05<0x0)&&(_0x1e8a05=LIMIT_VALUE),_0x1e8a05;},exports[_0x48dc1e('0x1a')]=function(_0x3d9bc9){return _0x3d9bc9=parseInt(_0x3d9bc9,0xa),(!_0x3d9bc9||_0x3d9bc9<0x0)&&(_0x3d9bc9=0x0),_0x3d9bc9;},exports['sort']=function(_0x3dbd8a){const _0x5eb7f7=_0x48dc1e;let _0x14070b,_0x4026c7=null;return _0x3dbd8a&&(_0x14070b=_0x3dbd8a['split'](','),_0x4026c7=_[_0x5eb7f7('0x23')](_0x14070b,function(_0x39e24c){const _0x14d24e=_0x5eb7f7;return _0x39e24c[_0x14d24e('0x1f')]('-')===0x0?[_0x39e24c==='priority'?sequelize[_0x14d24e('0x15')](sequelize['col'](_0x14d24e('0x16')),_0x14d24e('0x1d')):_0x39e24c[_0x14d24e('0x18')](0x1),'DESC']:[_0x39e24c===_0x14d24e('0x16')?sequelize[_0x14d24e('0x15')](sequelize[_0x14d24e('0x11')](_0x14d24e('0x16')),_0x14d24e('0x1d')):_0x39e24c,_0x14d24e('0xd')];})),_0x4026c7;},exports[_0x48dc1e('0x1e')]=function(_0x437548,_0x35d5bd){const _0x5acc88=_0x48dc1e;if(_[_0x5acc88('0x19')](_0x437548))return _0x437548;if(_['isArray'](_0x437548)){for(let _0x46f7a9=0x0;_0x46f7a9<_0x437548['length'];_0x46f7a9+=0x1){_0x437548[_0x46f7a9]=this[_0x5acc88('0x1e')](_0x437548[_0x46f7a9],_0x35d5bd);}return _0x437548;}if(!_['isObject'](_0x437548))return _0x437548;_['isString'](_0x35d5bd)&&(_0x35d5bd=[_0x35d5bd]);if(!_[_0x5acc88('0x2')](_0x35d5bd))return _0x437548;for(let _0x4b22ee=0x0;_0x4b22ee<_0x35d5bd['length'];_0x4b22ee+=0x1){_[_0x5acc88('0xe')](_0x437548,_0x35d5bd[_0x4b22ee]);}for(const _0x1c5559 in _0x437548){typeof _0x437548[_0x1c5559]!==_0x5acc88('0x22')&&(_0x437548[_0x1c5559]=this[_0x5acc88('0x1e')](_0x437548[_0x1c5559],_0x35d5bd));}return _0x437548;},exports[_0x48dc1e('0x7')]=function(_0x5ef840){return _0x5ef840['match'](RegExp('^[+]?[0-9]*$'))?!![]:![];},exports[_0x48dc1e('0x17')]=function(_0x31bb03){const _0x709caa=_0x48dc1e;return _0x31bb03[_0x709caa('0x20')](/^\S+@\S+$/)?!![]:![];},exports[_0x48dc1e('0x14')]=function(_0x154618){const _0x43c0b2=_0x48dc1e,_0x338b80=[];return _0x154618['split']('\x20')[_0x43c0b2('0xa')](function(_0x30f6be){const _0x4ef6f2=_0x43c0b2;_0x338b80['push']('+'+_0x30f6be[_0x4ef6f2('0xc')]()+'*');}),_0x338b80['join']('\x20');}; \ No newline at end of file diff --git a/server/config/config.service.js b/server/config/config.service.js index 69530c3..0a66ede 100644 --- a/server/config/config.service.js +++ b/server/config/config.service.js @@ -1 +1 @@ -const a837_0x58fd=['number','./env_definitions','string','boolean','NODE_ENV','undefined','defineProperties','true','test','exports','lodash','env','toLowerCase'];(function(_0x29f3e2,_0x58fd50){const _0x43123a=function(_0x200082){while(--_0x200082){_0x29f3e2['push'](_0x29f3e2['shift']());}};_0x43123a(++_0x58fd50);}(a837_0x58fd,0x1d3));const a837_0x4312=function(_0x29f3e2,_0x58fd50){_0x29f3e2=_0x29f3e2-0x0;let _0x43123a=a837_0x58fd[_0x29f3e2];return _0x43123a;};const _0x132f62=a837_0x4312,{camelCase}=require(_0x132f62('0xb')),{validKeys}=require(_0x132f62('0x2')),VALID_KEYS=validKeys;function toBoolean(_0x200082,_0x2e2761=![]){const _0x26a2d3=_0x132f62;return typeof _0x200082==='undefined'?_0x2e2761:Boolean(typeof _0x200082===_0x26a2d3('0x3')?_0x200082[_0x26a2d3('0x0')]()===_0x26a2d3('0x8'):_0x200082);}function toNumber(_0x5451af,_0x2c0cba=null){const _0x144eb1=typeof _0x5451af==='undefined'||_0x5451af===null?NaN:Number(_0x5451af);return isNaN(_0x144eb1)?_0x2c0cba:_0x144eb1;}function toString(_0x2b52e2,_0x43631e=''){const _0x4a390a=_0x132f62;return typeof _0x2b52e2===_0x4a390a('0x6')||_0x2b52e2===null?_0x43631e:String(_0x2b52e2);}function getPropertiesConfiguration(){const _0x4ed369={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS['reduce']((_0xfbaadf,{env:_0x2550e6,type:_0x148d5d,defaultValue:_0x2487e3})=>{const _0x5e4261=a837_0x4312;let _0x5c85b8=null;const _0x49c27b=process[_0x5e4261('0xc')][_0x2550e6];switch(_0x148d5d){case _0x5e4261('0x4'):_0x5c85b8=toBoolean(_0x49c27b,_0x2487e3);break;case _0x5e4261('0x1'):_0x5c85b8=toNumber(_0x49c27b,_0x2487e3);break;case _0x5e4261('0x3'):_0x5c85b8=toString(_0x49c27b,_0x2487e3);break;default:break;}if(_0x2550e6===_0x5e4261('0x5'))_0xfbaadf={..._0xfbaadf,'isProduction':{'value':_0x5c85b8==='production',..._0x4ed369},'isTest':{'value':_0x5c85b8===_0x5e4261('0x9'),..._0x4ed369},'environment':{'value':_0x5c85b8,..._0x4ed369}};else{const _0x5c68e1=camelCase(_0x2550e6['replace'](/^XC_/,''));_0xfbaadf={..._0xfbaadf,[_0x5c68e1]:{'value':_0x5c85b8,..._0x4ed369}};}return _0xfbaadf;},{});}let configService=null;function getConfigService(){const _0x322291=_0x132f62;if(configService===null){configService={};const _0x51ed8a=getPropertiesConfiguration();Object[_0x322291('0x7')](configService,_0x51ed8a);}return configService;}module[_0x132f62('0xa')]={'getConfigService':getConfigService}; \ No newline at end of file +const a837_0x1385=['string','lodash','defineProperties','test','replace','boolean','undefined','env','NODE_ENV','true','production','exports'];(function(_0x29d5c6,_0x13855a){const _0x5c848a=function(_0x86ef04){while(--_0x86ef04){_0x29d5c6['push'](_0x29d5c6['shift']());}};_0x5c848a(++_0x13855a);}(a837_0x1385,0x13a));const a837_0x5c84=function(_0x29d5c6,_0x13855a){_0x29d5c6=_0x29d5c6-0x0;let _0x5c848a=a837_0x1385[_0x29d5c6];return _0x5c848a;};const _0x31b16d=a837_0x5c84,{camelCase}=require(_0x31b16d('0xb')),{validKeys}=require('./env_definitions'),VALID_KEYS=validKeys;function toBoolean(_0x86ef04,_0x379b5b=![]){const _0x258d7e=_0x31b16d;return typeof _0x86ef04===_0x258d7e('0x4')?_0x379b5b:Boolean(typeof _0x86ef04===_0x258d7e('0xa')?_0x86ef04['toLowerCase']()===_0x258d7e('0x7'):_0x86ef04);}function toNumber(_0x1e14ce,_0x594e3f=null){const _0x29904e=_0x31b16d,_0x1afb54=typeof _0x1e14ce===_0x29904e('0x4')||_0x1e14ce===null?NaN:Number(_0x1e14ce);return isNaN(_0x1afb54)?_0x594e3f:_0x1afb54;}function toString(_0x9037d5,_0x2e76c8=''){const _0x2f7efd=_0x31b16d;return typeof _0x9037d5===_0x2f7efd('0x4')||_0x9037d5===null?_0x2e76c8:String(_0x9037d5);}function getPropertiesConfiguration(){const _0x458cff={'enumerable':!![],'configurable':![],'writable':![]};return VALID_KEYS['reduce']((_0x582a6d,{env:_0x46f50b,type:_0x317e8c,defaultValue:_0x2f22cb})=>{const _0x5a6270=a837_0x5c84;let _0x38f534=null;const _0x3f0ee3=process[_0x5a6270('0x5')][_0x46f50b];switch(_0x317e8c){case _0x5a6270('0x3'):_0x38f534=toBoolean(_0x3f0ee3,_0x2f22cb);break;case'number':_0x38f534=toNumber(_0x3f0ee3,_0x2f22cb);break;case'string':_0x38f534=toString(_0x3f0ee3,_0x2f22cb);break;default:break;}if(_0x46f50b===_0x5a6270('0x6'))_0x582a6d={..._0x582a6d,'isProduction':{'value':_0x38f534===_0x5a6270('0x8'),..._0x458cff},'isTest':{'value':_0x38f534===_0x5a6270('0x1'),..._0x458cff},'environment':{'value':_0x38f534,..._0x458cff}};else{const _0x126c99=camelCase(_0x46f50b[_0x5a6270('0x2')](/^XC_/,''));_0x582a6d={..._0x582a6d,[_0x126c99]:{'value':_0x38f534,..._0x458cff}};}return _0x582a6d;},{});}let configService=null;function getConfigService(){const _0x36b34b=_0x31b16d;if(configService===null){configService={};const _0x297121=getPropertiesConfiguration();Object[_0x36b34b('0x0')](configService,_0x297121);}return configService;}module[_0x31b16d('0x9')]={'getConfigService':getConfigService}; \ No newline at end of file diff --git a/server/config/environment/development.js b/server/config/environment/development.js index 8795403..cd99e7f 100644 --- a/server/config/environment/development.js +++ b/server/config/environment/development.js @@ -1 +1 @@ -const a838_0x8004=['utf8mb4','getConfigService','offsetStr','jstz','asteriskPassword','name','dbHost','determine','sessionSecret','exports','agiIp','/api/auth/google/callback','asteriskUsername','googleSecret','utf8','asteriskPort','rpcPort','rpcIp','dbPort','../config.service','recordingSecret','googleId','asteriskHost','mysql','mysqlPassword','agiPort','mysqlDatabase','timezones','domain','utf8_general_ci'];(function(_0x1dc8ed,_0x8004de){const _0x219542=function(_0x597e23){while(--_0x597e23){_0x1dc8ed['push'](_0x1dc8ed['shift']());}};_0x219542(++_0x8004de);}(a838_0x8004,0x123));const a838_0x2195=function(_0x1dc8ed,_0x8004de){_0x1dc8ed=_0x1dc8ed-0x0;let _0x219542=a838_0x8004[_0x1dc8ed];return _0x219542;};const _0x173d39=a838_0x2195;'use strict';const shared=require('./shared'),jstz=require(_0x173d39('0xc')),timezone=jstz[_0x173d39('0x10')](),timezoneOffset=shared[_0x173d39('0x6')][timezone[_0x173d39('0xe')]()][_0x173d39('0xb')],cs=require(_0x173d39('0x1c'))[_0x173d39('0xa')]();module[_0x173d39('0x12')]={'sequelize':{'database':cs[_0x173d39('0x5')],'username':cs['mysqlUser'],'password':cs[_0x173d39('0x3')],'options':{'host':cs[_0x173d39('0xf')],'port':cs['dbPort'],'dialect':_0x173d39('0x2'),'dialectOptions':{'charset':_0x173d39('0x9')},'timezone':timezoneOffset,'define':{'charset':_0x173d39('0x17'),'collate':'utf8_general_ci'}}},'sequelizeHistory':{'database':cs['mysqlDatabase'],'username':cs['mysqlUser'],'password':cs[_0x173d39('0x3')],'options':{'host':cs[_0x173d39('0xf')],'port':cs[_0x173d39('0x1b')],'dialect':_0x173d39('0x2'),'dialectOptions':{'charset':_0x173d39('0x9')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x173d39('0x17'),'collate':_0x173d39('0x8')}}},'asterisk':{'ip':cs[_0x173d39('0x1')],'port':cs[_0x173d39('0x18')],'username':cs[_0x173d39('0x15')],'password':cs[_0x173d39('0xd')]},'redis':{'host':cs['redisHost'],'port':cs['redisPort']},'rpc':{'port':cs[_0x173d39('0x19')],'ip':cs[_0x173d39('0x1a')]},'agi':{'port':cs[_0x173d39('0x4')],'ip':cs[_0x173d39('0x13')]},'seedDB':cs['seedDb'],'google':{'clientID':cs[_0x173d39('0x0')],'clientSecret':cs[_0x173d39('0x16')],'callbackURL':cs[_0x173d39('0x7')]+_0x173d39('0x14')},'secrets':{'session':cs[_0x173d39('0x11')],'recording':cs[_0x173d39('0x1d')]},'xdr':{'disabled':![]}}; \ No newline at end of file +const a838_0x147f=['googleSecret','redisHost','jstz','dbPort','/api/auth/google/callback','asteriskUsername','mysqlPassword','utf8_general_ci','timezones','agiPort','seedDb','rpcIp','./shared','recordingSecret','sessionSecret','name','rpcPort','offsetStr','exports','domain','asteriskPassword','getConfigService','mysqlDatabase','mysql','utf8','asteriskPort','asteriskHost','redisPort','googleId','mysqlUser','utf8mb4','dbHost'];(function(_0x41f93d,_0x147f71){const _0x2d3e3a=function(_0x414129){while(--_0x414129){_0x41f93d['push'](_0x41f93d['shift']());}};_0x2d3e3a(++_0x147f71);}(a838_0x147f,0x14b));const a838_0x2d3e=function(_0x41f93d,_0x147f71){_0x41f93d=_0x41f93d-0x0;let _0x2d3e3a=a838_0x147f[_0x41f93d];return _0x2d3e3a;};const _0x588738=a838_0x2d3e;'use strict';const shared=require(_0x588738('0x1')),jstz=require(_0x588738('0x17')),timezone=jstz['determine'](),timezoneOffset=shared[_0x588738('0x1d')][timezone[_0x588738('0x4')]()][_0x588738('0x6')],cs=require('../config.service')[_0x588738('0xa')]();module[_0x588738('0x7')]={'sequelize':{'database':cs['mysqlDatabase'],'username':cs[_0x588738('0x12')],'password':cs['mysqlPassword'],'options':{'host':cs[_0x588738('0x14')],'port':cs[_0x588738('0x18')],'dialect':'mysql','dialectOptions':{'charset':_0x588738('0x13')},'timezone':timezoneOffset,'define':{'charset':_0x588738('0xd'),'collate':_0x588738('0x1c')}}},'sequelizeHistory':{'database':cs[_0x588738('0xb')],'username':cs[_0x588738('0x12')],'password':cs[_0x588738('0x1b')],'options':{'host':cs[_0x588738('0x14')],'port':cs[_0x588738('0x18')],'dialect':_0x588738('0xc'),'dialectOptions':{'charset':_0x588738('0x13')},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x588738('0xd'),'collate':_0x588738('0x1c')}}},'asterisk':{'ip':cs[_0x588738('0xf')],'port':cs[_0x588738('0xe')],'username':cs[_0x588738('0x1a')],'password':cs[_0x588738('0x9')]},'redis':{'host':cs[_0x588738('0x16')],'port':cs[_0x588738('0x10')]},'rpc':{'port':cs[_0x588738('0x5')],'ip':cs[_0x588738('0x0')]},'agi':{'port':cs[_0x588738('0x1e')],'ip':cs['agiIp']},'seedDB':cs[_0x588738('0x1f')],'google':{'clientID':cs[_0x588738('0x11')],'clientSecret':cs[_0x588738('0x15')],'callbackURL':cs[_0x588738('0x8')]+_0x588738('0x19')},'secrets':{'session':cs[_0x588738('0x3')],'recording':cs[_0x588738('0x2')]},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/environment/index.js b/server/config/environment/index.js index 80f285b..234fb61 100644 --- a/server/config/environment/index.js +++ b/server/config/environment/index.js @@ -1 +1 @@ -const a839_0xfbab=['sessionSecret','isProduction','getConfigService','appRoot','../environment/','seedDB','development','./shared','browserSyncPort','environment','../config.service'];(function(_0x56effe,_0xfbab3b){const _0x13aaa5=function(_0x421689){while(--_0x421689){_0x56effe['push'](_0x56effe['shift']());}};_0x13aaa5(++_0xfbab3b);}(a839_0xfbab,0x18b));const a839_0x13aa=function(_0x56effe,_0xfbab3b){_0x56effe=_0x56effe-0x0;let _0x13aaa5=a839_0xfbab[_0x56effe];return _0x13aaa5;};const _0x5c1241=a839_0x13aa;'use strict';const cs=require(_0x5c1241('0x0'))[_0x5c1241('0x3')](),all={'env':cs[_0x5c1241('0xa')],'root':global[_0x5c1241('0x4')],'browserSyncPort':cs[_0x5c1241('0x9')],'port':cs['port'],'ip':cs['ip'],'seedDB':cs[_0x5c1241('0x6')],'secrets':{'session':cs[_0x5c1241('0x1')],'recording':cs['recordingSecret']}},shared=require(_0x5c1241('0x8')),env=cs[_0x5c1241('0x2')]||cs['isTest']?cs[_0x5c1241('0xa')]:_0x5c1241('0x7'),variables=require(_0x5c1241('0x5')+env);module['exports']={...all,...shared,...variables}; \ No newline at end of file +const a839_0x17c9=['isProduction','getConfigService','sessionSecret','exports','browserSyncPort','environment','seedDB','./shared','isTest','port','../environment/','../config.service','development','appRoot'];(function(_0x453a12,_0x17c9e1){const _0x4b3ea1=function(_0x10e397){while(--_0x10e397){_0x453a12['push'](_0x453a12['shift']());}};_0x4b3ea1(++_0x17c9e1);}(a839_0x17c9,0x101));const a839_0x4b3e=function(_0x453a12,_0x17c9e1){_0x453a12=_0x453a12-0x0;let _0x4b3ea1=a839_0x17c9[_0x453a12];return _0x4b3ea1;};const _0x28af08=a839_0x4b3e;'use strict';const cs=require(_0x28af08('0x6'))[_0x28af08('0xa')](),all={'env':cs[_0x28af08('0x0')],'root':global[_0x28af08('0x8')],'browserSyncPort':cs[_0x28af08('0xd')],'port':cs[_0x28af08('0x4')],'ip':cs['ip'],'seedDB':cs[_0x28af08('0x1')],'secrets':{'session':cs[_0x28af08('0xb')],'recording':cs['recordingSecret']}},shared=require(_0x28af08('0x2')),env=cs[_0x28af08('0x9')]||cs[_0x28af08('0x3')]?cs['environment']:_0x28af08('0x7'),variables=require(_0x28af08('0x5')+env);module[_0x28af08('0xc')]={...all,...shared,...variables}; \ No newline at end of file diff --git a/server/config/environment/shared.js b/server/config/environment/shared.js index b0f7773..49b60d3 100644 --- a/server/config/environment/shared.js +++ b/server/config/environment/shared.js @@ -1 +1 @@ -var a840_0x4db9=['America/Chihuahua','America/Cuiaba','Asia/Yekaterinburg','America/Mazatlan','-04:00','-07:00','Atlantic/Bermuda','Europe/Sofia','Asia/Sakhalin','America/Boise','Pacific/Nauru','Pacific/Marquesas','guest','Europe/Berlin','Pacific/Palau','America/Rankin_Inlet','Europe/Helsinki','America/Yakutat','admin','Europe/Vilnius','Asia/Pyongyang','Europe/Lisbon','America/Eirunepe','Asia/Amman','Asia/Ust-Nera','Asia/Pontianak','America/Anchorage','America/Kentucky/Louisville','Pacific/Port_Moresby','+03:30','Europe/Bucharest','Africa/Ndjamena','Asia/Srednekolymsk','America/Kentucky/Monticello','Europe/Chisinau','America/Guayaquil','America/Rio_Branco','Asia/Seoul','America/Toronto','Asia/Manila','Asia/Aqtau','Pacific/Efate','America/Indiana/Petersburg','Asia/Dili','Asia/Choibalsan','America/Regina','+05:45','America/Indiana/Tell_City','Asia/Hong_Kong','America/Indiana/Knox','America/Glace_Bay','America/Dawson','Europe/Luxembourg','Africa/Tunis','Europe/Vienna','Australia/Lord_Howe','Asia/Kuala_Lumpur','Australia/Adelaide','+10:00','America/Curacao','Europe/Copenhagen','-02:00','Africa/Maputo','+11:00','Atlantic/Faroe','America/New_York','Asia/Thimphu','+04:30','Asia/Kabul','Africa/Windhoek','+08:00','Europe/Minsk','Asia/Samarkand','Asia/Baku','America/Inuvik','America/Boa_Vista','America/El_Salvador','Asia/Irkutsk','America/Port-au-Prince','America/Halifax','Europe/Stockholm','America/Indiana/Indianapolis','America/Argentina/Jujuy','-04:30','Pacific/Chatham','America/Puerto_Rico','America/Rainy_River','+06:00','Europe/Athens','Pacific/Kiritimati','Australia/Hobart','Asia/Tehran','+14:00','-10:00','America/St_Johns','America/Caracas','America/Paramaribo','Atlantic/Azores','America/Cayman','-03:30','America/Thule','Asia/Kuching','Asia/Bangkok','America/Miquelon','Asia/Urumqi','America/Recife','Asia/Krasnoyarsk','Africa/Khartoum','Africa/Tripoli','-11:00','Pacific/Wallis','Antarctica/Syowa','Indian/Cocos','Pacific/Honolulu','-06:00','Asia/Jayapura','Pacific/Guam','America/Argentina/Buenos_Aires','UTC','Europe/Oslo','America/Monterrey','America/Pangnirtung','Pacific/Pago_Pago','Asia/Hovd','Asia/Colombo','Europe/Rome','Asia/Makassar','America/Vancouver','America/Indiana/Vincennes','+02:00','Africa/Accra','Pacific/Majuro','Pacific/Auckland','America/Guyana','Africa/El_Aaiun','America/Montevideo','-01:00','Australia/Perth','Pacific/Tarawa','Australia/Broken_Hill','America/Thunder_Bay','Pacific/Pohnpei','Pacific/Enderbury','America/Maceio','America/Ojinaga','Indian/Christmas','America/Whitehorse','America/Winnipeg','Asia/Gaza','+03:00','Australia/Eucla','Atlantic/Reykjavik','Asia/Dhaka','Asia/Kamchatka','America/Manaus','America/Matamoros','Pacific/Norfolk','Africa/Ceuta','Asia/Chita','America/Belize','Asia/Riyadh','Pacific/Kwajalein','America/Panama','Europe/Kaliningrad','Indian/Maldives','Pacific/Bougainville','Asia/Anadyr','America/Bogota','+04:00','-08:00','America/Moncton','Europe/Paris','America/Cayenne','America/Nassau','Europe/Warsaw','America/Porto_Velho','-03:00','Atlantic/South_Georgia','America/Tijuana','Europe/Istanbul','Indian/Mahe','Asia/Brunei','America/Dawson_Creek','Africa/Johannesburg','America/Yellowknife','Asia/Qatar','Pacific/Tongatapu','America/Atikokan','Asia/Bishkek','America/Port_of_Spain','Europe/Budapest','Asia/Ashgabat','Asia/Yakutsk','America/Indiana/Marengo','+13:45','Pacific/Galapagos','Australia/Brisbane','Europe/Kiev','Pacific/Kosrae','+06:30','Asia/Novosibirsk','Antarctica/Mawson','Europe/Volgograd','+05:30','America/Argentina/La_Rioja','Australia/Darwin','America/Jamaica','America/Fortaleza','Asia/Kathmandu','America/Sao_Paulo','Pacific/Guadalcanal','Africa/Bissau','Australia/Melbourne','+01:00','Asia/Karachi','America/Argentina/Tucuman','+09:30','America/Nome','Europe/Tirane','America/Santo_Domingo','Europe/Belgrade','America/Tegucigalpa','America/Havana','Australia/Currie','Asia/Omsk','Asia/Dubai','America/Iqaluit','Europe/Simferopol','Indian/Kerguelen','America/Adak','Pacific/Pitcairn','Europe/London','Antarctica/Palmer','Antarctica/Davis','Antarctica/DumontDUrville','Pacific/Funafuti','Europe/Riga','Indian/Chagos','America/North_Dakota/Center','Antarctica/Rothera','America/Metlakatla','Indian/Reunion','America/Campo_Grande','+00:00','America/Blanc-Sablon','America/Swift_Current','America/Santa_Isabel','America/Cancun','Antarctica/Macquarie','America/Hermosillo','Asia/Shanghai','Africa/Cairo','Asia/Nicosia','America/La_Paz','America/Araguaina','Africa/Casablanca','+09:00','America/Merida','America/Noronha','Africa/Monrovia','America/Detroit','-05:00','Africa/Nairobi','+07:00','+10:30','Europe/Tallinn','Pacific/Fiji','America/Edmonton','America/Mexico_City','America/Indiana/Vevay','America/Barbados','Asia/Jerusalem','America/Scoresbysund','user','+12:00','Asia/Tbilisi','Asia/Aqtobe','Atlantic/Stanley','Europe/Zaporozhye','Asia/Khandyga','Asia/Taipei','Asia/Tashkent','+05:00','America/Argentina/San_Luis','-09:00','Europe/Andorra','Asia/Beirut','Africa/Lagos','Europe/Samara','Pacific/Wake','+13:00','Asia/Ulaanbaatar','Antarctica/Vostok','Pacific/Fakaofo','America/Managua','exports','Asia/Yerevan','America/North_Dakota/New_Salem'];(function(_0x518694,_0x4db916){var _0x526155=function(_0x109fca){while(--_0x109fca){_0x518694['push'](_0x518694['shift']());}};_0x526155(++_0x4db916);}(a840_0x4db9,0x11b));var a840_0x5261=function(_0x518694,_0x4db916){_0x518694=_0x518694-0x0;var _0x526155=a840_0x4db9[_0x518694];return _0x526155;};var _0x839c21=a840_0x5261;'use strict';module[_0x839c21('0xc')]={'userRoles':[_0x839c21('0x1b'),_0x839c21('0x120'),_0x839c21('0x21')],'timezones':{'Europe/Andorra':{'name':_0x839c21('0x2'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['AD']},'Asia/Dubai':{'name':_0x839c21('0xf0'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['AE','OM']},'Asia/Kabul':{'name':_0x839c21('0x53'),'utcOffset':0x10e,'offsetStr':_0x839c21('0x52'),'countries':['AF']},'Europe/Tirane':{'name':_0x839c21('0xe9'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['AL']},'Asia/Yerevan':{'name':_0x839c21('0xd'),'utcOffset':0xf0,'offsetStr':_0x839c21('0xb7'),'countries':['AM']},'Antarctica/Rothera':{'name':_0x839c21('0xfe'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AQ']},'Antarctica/Palmer':{'name':_0x839c21('0xf7'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AQ']},'Antarctica/Mawson':{'name':_0x839c21('0xd8'),'utcOffset':0x12c,'offsetStr':_0x839c21('0x129'),'countries':['AQ']},'Antarctica/Davis':{'name':_0x839c21('0xf8'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['AQ']},'Antarctica/Casey':{'name':'Antarctica/Casey','utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['AQ']},'Antarctica/Vostok':{'name':_0x839c21('0x9'),'utcOffset':0x168,'offsetStr':_0x839c21('0x66'),'countries':['AQ']},'Antarctica/DumontDUrville':{'name':_0x839c21('0xf9'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['AQ']},'Antarctica/Syowa':{'name':_0x839c21('0x7e'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['AQ']},'Antarctica/Troll':{'name':'Antarctica/Troll','utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':_0x839c21('0x84'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/Cordoba':{'name':'America/Argentina/Cordoba','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/Salta':{'name':'America/Argentina/Salta','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/Jujuy':{'name':_0x839c21('0x61'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/Tucuman':{'name':_0x839c21('0xe6'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/Catamarca':{'name':'America/Argentina/Catamarca','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/La_Rioja':{'name':_0x839c21('0xdb'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/San_Juan':{'name':'America/Argentina/San_Juan','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/Mendoza':{'name':'America/Argentina/Mendoza','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/San_Luis':{'name':_0x839c21('0x0'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':'America/Argentina/Rio_Gallegos','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'America/Argentina/Ushuaia':{'name':'America/Argentina/Ushuaia','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['AR']},'Pacific/Pago_Pago':{'name':_0x839c21('0x89'),'utcOffset':-0x294,'offsetStr':_0x839c21('0x7c'),'countries':['AS','UM']},'Europe/Vienna':{'name':_0x839c21('0x45'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['AT']},'Australia/Lord_Howe':{'name':_0x839c21('0x46'),'utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['AU']},'Antarctica/Macquarie':{'name':_0x839c21('0x107'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Hobart':{'name':_0x839c21('0x69'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Currie':{'name':_0x839c21('0xee'),'utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['AU']},'Australia/Melbourne':{'name':_0x839c21('0xe3'),'utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['AU']},'Australia/Sydney':{'name':'Australia/Sydney','utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['AU']},'Australia/Broken_Hill':{'name':_0x839c21('0x9a'),'utcOffset':0x276,'offsetStr':_0x839c21('0x117'),'countries':['AU']},'Australia/Brisbane':{'name':_0x839c21('0xd3'),'utcOffset':0x258,'offsetStr':_0x839c21('0x49'),'countries':['AU']},'Australia/Lindeman':{'name':'Australia/Lindeman','utcOffset':0x258,'offsetStr':_0x839c21('0x49'),'countries':['AU']},'Australia/Adelaide':{'name':_0x839c21('0x48'),'utcOffset':0x276,'offsetStr':'+10:30','countries':['AU']},'Australia/Darwin':{'name':_0x839c21('0xdc'),'utcOffset':0x23a,'offsetStr':_0x839c21('0xe7'),'countries':['AU']},'Australia/Perth':{'name':_0x839c21('0x98'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['AU']},'Australia/Eucla':{'name':_0x839c21('0xa5'),'utcOffset':0x20d,'offsetStr':'+08:45','countries':['AU']},'Asia/Baku':{'name':_0x839c21('0x58'),'utcOffset':0xf0,'offsetStr':_0x839c21('0xb7'),'countries':['AZ']},'America/Barbados':{'name':_0x839c21('0x11d'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['BB']},'Asia/Dhaka':{'name':_0x839c21('0xa7'),'utcOffset':0x168,'offsetStr':_0x839c21('0x66'),'countries':['BD']},'Europe/Brussels':{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':'+01:00','countries':['BE']},'Europe/Sofia':{'name':_0x839c21('0x16'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['BG']},'Atlantic/Bermuda':{'name':_0x839c21('0x15'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['BM']},'Asia/Brunei':{'name':_0x839c21('0xc4'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['BN']},'America/La_Paz':{'name':_0x839c21('0x10c'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BO']},'America/Noronha':{'name':_0x839c21('0x111'),'utcOffset':-0x78,'offsetStr':_0x839c21('0x4c'),'countries':['BR']},'America/Belem':{'name':'America/Belem','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Fortaleza':{'name':_0x839c21('0xde'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Recife':{'name':_0x839c21('0x78'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Araguaina':{'name':_0x839c21('0x10d'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Maceio':{'name':_0x839c21('0x9e'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Bahia':{'name':'America/Bahia','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Sao_Paulo':{'name':_0x839c21('0xe0'),'utcOffset':-0x78,'offsetStr':'-02:00','countries':['BR']},'America/Campo_Grande':{'name':_0x839c21('0x101'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Cuiaba':{'name':_0x839c21('0x10'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Santarem':{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['BR']},'America/Porto_Velho':{'name':_0x839c21('0xbe'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['BR']},'America/Boa_Vista':{'name':_0x839c21('0x5a'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['BR']},'America/Manaus':{'name':_0x839c21('0xa9'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['BR']},'America/Eirunepe':{'name':_0x839c21('0x25'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BR']},'America/Rio_Branco':{'name':_0x839c21('0x33'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['BR']},'America/Nassau':{'name':_0x839c21('0xbc'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['BS']},'Asia/Thimphu':{'name':_0x839c21('0x51'),'utcOffset':0x168,'offsetStr':_0x839c21('0x66'),'countries':['BT']},'Europe/Minsk':{'name':_0x839c21('0x56'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['BY']},'America/Belize':{'name':_0x839c21('0xae'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['BZ']},'America/St_Johns':{'name':_0x839c21('0x6d'),'utcOffset':-0xd2,'offsetStr':_0x839c21('0x72'),'countries':['CA']},'America/Halifax':{'name':_0x839c21('0x5e'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Glace_Bay':{'name':_0x839c21('0x41'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['CA']},'America/Moncton':{'name':_0x839c21('0xb9'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['CA']},'America/Goose_Bay':{'name':'America/Goose_Bay','utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['CA']},'America/Blanc-Sablon':{'name':_0x839c21('0x103'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['CA']},'America/Toronto':{'name':_0x839c21('0x35'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Nipigon':{'name':'America/Nipigon','utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['CA']},'America/Thunder_Bay':{'name':_0x839c21('0x9b'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['CA']},'America/Iqaluit':{'name':_0x839c21('0xf1'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['CA']},'America/Pangnirtung':{'name':_0x839c21('0x88'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Resolute':{'name':'America/Resolute','utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['CA']},'America/Atikokan':{'name':_0x839c21('0xca'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['CA']},'America/Rankin_Inlet':{'name':_0x839c21('0x1e'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Winnipeg':{'name':_0x839c21('0xa2'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Rainy_River':{'name':_0x839c21('0x65'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['CA']},'America/Regina':{'name':_0x839c21('0x3c'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Swift_Current':{'name':_0x839c21('0x104'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['CA']},'America/Edmonton':{'name':_0x839c21('0x11a'),'utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['CA']},'America/Cambridge_Bay':{'name':'America/Cambridge_Bay','utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['CA']},'America/Yellowknife':{'name':_0x839c21('0xc7'),'utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['CA']},'America/Inuvik':{'name':_0x839c21('0x59'),'utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['CA']},'America/Creston':{'name':'America/Creston','utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['CA']},'America/Dawson_Creek':{'name':_0x839c21('0xc5'),'utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['CA']},'America/Fort_Nelson':{'name':'America/Fort_Nelson','utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['CA']},'America/Vancouver':{'name':_0x839c21('0x8e'),'utcOffset':-0x1e0,'offsetStr':_0x839c21('0xb8'),'countries':['CA']},'America/Whitehorse':{'name':_0x839c21('0xa1'),'utcOffset':-0x1e0,'offsetStr':_0x839c21('0xb8'),'countries':['CA']},'America/Dawson':{'name':_0x839c21('0x42'),'utcOffset':-0x1e0,'offsetStr':_0x839c21('0xb8'),'countries':['CA']},'Indian/Cocos':{'name':_0x839c21('0x7f'),'utcOffset':0x186,'offsetStr':_0x839c21('0xd6'),'countries':['CC']},'Europe/Zurich':{'name':'Europe/Zurich','utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['CH','DE','LI']},'Africa/Abidjan':{'name':'Africa/Abidjan','utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':'Pacific/Rarotonga','utcOffset':-0x258,'offsetStr':_0x839c21('0x6c'),'countries':['CK']},'America/Santiago':{'name':'America/Santiago','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['CL']},'Pacific/Easter':{'name':'Pacific/Easter','utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['CL']},'Asia/Shanghai':{'name':_0x839c21('0x109'),'utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['CN']},'Asia/Urumqi':{'name':_0x839c21('0x77'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['CN']},'America/Bogota':{'name':_0x839c21('0xb6'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['CO']},'America/Costa_Rica':{'name':'America/Costa_Rica','utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['CR']},'America/Havana':{'name':_0x839c21('0xed'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['CU']},'Atlantic/Cape_Verde':{'name':'Atlantic/Cape_Verde','utcOffset':-0x3c,'offsetStr':'-01:00','countries':['CV']},'America/Curacao':{'name':_0x839c21('0x4a'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':_0x839c21('0xa0'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['CX']},'Asia/Nicosia':{'name':_0x839c21('0x10b'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['CY']},'Europe/Prague':{'name':'Europe/Prague','utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['CZ','SK']},'Europe/Berlin':{'name':_0x839c21('0x1c'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['DE']},'Europe/Copenhagen':{'name':_0x839c21('0x4b'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['DK']},'America/Santo_Domingo':{'name':_0x839c21('0xea'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['DO']},'Africa/Algiers':{'name':'Africa/Algiers','utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['DZ']},'America/Guayaquil':{'name':_0x839c21('0x32'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['EC']},'Pacific/Galapagos':{'name':_0x839c21('0xd2'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['EC']},'Europe/Tallinn':{'name':_0x839c21('0x118'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['EE']},'Africa/Cairo':{'name':_0x839c21('0x10a'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['EG']},'Africa/El_Aaiun':{'name':_0x839c21('0x95'),'utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['EH']},'Europe/Madrid':{'name':'Europe/Madrid','utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['ES']},'Africa/Ceuta':{'name':_0x839c21('0xac'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['ES']},'Atlantic/Canary':{'name':'Atlantic/Canary','utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['ES']},'Europe/Helsinki':{'name':_0x839c21('0x1f'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['FI','AX']},'Pacific/Fiji':{'name':_0x839c21('0x119'),'utcOffset':0x2d0,'offsetStr':_0x839c21('0x121'),'countries':['FJ']},'Atlantic/Stanley':{'name':_0x839c21('0x124'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['FK']},'Pacific/Chuuk':{'name':'Pacific/Chuuk','utcOffset':0x258,'offsetStr':_0x839c21('0x49'),'countries':['FM']},'Pacific/Pohnpei':{'name':_0x839c21('0x9c'),'utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['FM']},'Pacific/Kosrae':{'name':_0x839c21('0xd5'),'utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['FM']},'Atlantic/Faroe':{'name':_0x839c21('0x4f'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['FO']},'Europe/Paris':{'name':_0x839c21('0xba'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['FR']},'UTC':{'name':_0x839c21('0x85'),'utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['GB','GG','IM','JE']},'Europe/London':{'name':_0x839c21('0xf6'),'utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':_0x839c21('0x122'),'utcOffset':0xf0,'offsetStr':'+04:00','countries':['GE']},'America/Cayenne':{'name':_0x839c21('0xbb'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['GF']},'Africa/Accra':{'name':_0x839c21('0x91'),'utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['GH']},'Europe/Gibraltar':{'name':'Europe/Gibraltar','utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['GI']},'America/Godthab':{'name':'America/Godthab','utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['GL']},'America/Danmarkshavn':{'name':'America/Danmarkshavn','utcOffset':0x0,'offsetStr':'+00:00','countries':['GL']},'America/Scoresbysund':{'name':_0x839c21('0x11f'),'utcOffset':-0x3c,'offsetStr':_0x839c21('0x97'),'countries':['GL']},'America/Thule':{'name':_0x839c21('0x73'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['GL']},'Europe/Athens':{'name':_0x839c21('0x67'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['GR']},'Atlantic/South_Georgia':{'name':_0x839c21('0xc0'),'utcOffset':-0x78,'offsetStr':_0x839c21('0x4c'),'countries':['GS']},'America/Guatemala':{'name':'America/Guatemala','utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['GT']},'Pacific/Guam':{'name':_0x839c21('0x83'),'utcOffset':0x258,'offsetStr':_0x839c21('0x49'),'countries':['GU','MP']},'Africa/Bissau':{'name':_0x839c21('0xe2'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GW']},'America/Guyana':{'name':_0x839c21('0x94'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['GY']},'Asia/Hong_Kong':{'name':_0x839c21('0x3f'),'utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['HK']},'America/Tegucigalpa':{'name':_0x839c21('0xec'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['HN']},'America/Port-au-Prince':{'name':_0x839c21('0x5d'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['HT']},'Europe/Budapest':{'name':_0x839c21('0xcd'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['HU']},'Asia/Jakarta':{'name':'Asia/Jakarta','utcOffset':0x1a4,'offsetStr':_0x839c21('0x116'),'countries':['ID']},'Asia/Pontianak':{'name':_0x839c21('0x28'),'utcOffset':0x1a4,'offsetStr':_0x839c21('0x116'),'countries':['ID']},'Asia/Makassar':{'name':_0x839c21('0x8d'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['ID']},'Asia/Jayapura':{'name':_0x839c21('0x82'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['ID']},'Europe/Dublin':{'name':'Europe/Dublin','utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['IE']},'Asia/Jerusalem':{'name':_0x839c21('0x11e'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['IL']},'Asia/Kolkata':{'name':'Asia/Kolkata','utcOffset':0x14a,'offsetStr':_0x839c21('0xda'),'countries':['IN']},'Indian/Chagos':{'name':_0x839c21('0xfc'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['IO']},'Asia/Baghdad':{'name':'Asia/Baghdad','utcOffset':0xb4,'offsetStr':_0x839c21('0xa4'),'countries':['IQ']},'Asia/Tehran':{'name':_0x839c21('0x6a'),'utcOffset':0xd2,'offsetStr':_0x839c21('0x2c'),'countries':['IR']},'Atlantic/Reykjavik':{'name':_0x839c21('0xa6'),'utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['IS']},'Europe/Rome':{'name':_0x839c21('0x8c'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['IT','SM','VA']},'America/Jamaica':{'name':_0x839c21('0xdd'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['JM']},'Asia/Amman':{'name':_0x839c21('0x26'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['JO']},'Asia/Tokyo':{'name':'Asia/Tokyo','utcOffset':0x21c,'offsetStr':'+09:00','countries':['JP']},'Africa/Nairobi':{'name':_0x839c21('0x115'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':_0x839c21('0xcb'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KG']},'Pacific/Tarawa':{'name':_0x839c21('0x99'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['KI']},'Pacific/Enderbury':{'name':_0x839c21('0x9d'),'utcOffset':0x30c,'offsetStr':_0x839c21('0x7'),'countries':['KI']},'Pacific/Kiritimati':{'name':_0x839c21('0x68'),'utcOffset':0x348,'offsetStr':_0x839c21('0x6b'),'countries':['KI']},'Asia/Pyongyang':{'name':_0x839c21('0x23'),'utcOffset':0x1fe,'offsetStr':'+08:30','countries':['KP']},'Asia/Seoul':{'name':_0x839c21('0x34'),'utcOffset':0x21c,'offsetStr':_0x839c21('0x10f'),'countries':['KR']},'America/Cayman':{'name':_0x839c21('0x71'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['KY']},'Asia/Almaty':{'name':'Asia/Almaty','utcOffset':0x168,'offsetStr':_0x839c21('0x66'),'countries':['KZ']},'Asia/Qyzylorda':{'name':'Asia/Qyzylorda','utcOffset':0x168,'offsetStr':'+06:00','countries':['KZ']},'Asia/Aqtobe':{'name':_0x839c21('0x123'),'utcOffset':0x12c,'offsetStr':_0x839c21('0x129'),'countries':['KZ']},'Asia/Aqtau':{'name':_0x839c21('0x37'),'utcOffset':0x12c,'offsetStr':_0x839c21('0x129'),'countries':['KZ']},'Asia/Oral':{'name':'Asia/Oral','utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Beirut':{'name':_0x839c21('0x3'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['LB']},'Asia/Colombo':{'name':_0x839c21('0x8b'),'utcOffset':0x14a,'offsetStr':_0x839c21('0xda'),'countries':['LK']},'Africa/Monrovia':{'name':_0x839c21('0x112'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['LR']},'Europe/Vilnius':{'name':_0x839c21('0x22'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['LT']},'Europe/Luxembourg':{'name':_0x839c21('0x43'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['LU']},'Europe/Riga':{'name':_0x839c21('0xfb'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['LV']},'Africa/Tripoli':{'name':_0x839c21('0x7b'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['LY']},'Africa/Casablanca':{'name':_0x839c21('0x10e'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['MA']},'Europe/Monaco':{'name':'Europe/Monaco','utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['MC']},'Europe/Chisinau':{'name':_0x839c21('0x31'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['MD']},'Pacific/Majuro':{'name':_0x839c21('0x92'),'utcOffset':0x2d0,'offsetStr':_0x839c21('0x121'),'countries':['MH']},'Pacific/Kwajalein':{'name':_0x839c21('0xb0'),'utcOffset':0x2d0,'offsetStr':_0x839c21('0x121'),'countries':['MH']},'Asia/Rangoon':{'name':'Asia/Rangoon','utcOffset':0x186,'offsetStr':_0x839c21('0xd6'),'countries':['MM']},'Asia/Ulaanbaatar':{'name':_0x839c21('0x8'),'utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['MN']},'Asia/Hovd':{'name':_0x839c21('0x8a'),'utcOffset':0x1a4,'offsetStr':_0x839c21('0x116'),'countries':['MN']},'Asia/Choibalsan':{'name':_0x839c21('0x3b'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Macau':{'name':'Asia/Macau','utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['MO']},'America/Martinique':{'name':'America/Martinique','utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['MQ']},'Europe/Malta':{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['MT']},'Indian/Mauritius':{'name':'Indian/Mauritius','utcOffset':0xf0,'offsetStr':_0x839c21('0xb7'),'countries':['MU']},'Indian/Maldives':{'name':_0x839c21('0xb3'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['MV']},'America/Mexico_City':{'name':_0x839c21('0x11b'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Cancun':{'name':_0x839c21('0x106'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['MX']},'America/Merida':{'name':_0x839c21('0x110'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['MX']},'America/Monterrey':{'name':_0x839c21('0x87'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['MX']},'America/Matamoros':{'name':_0x839c21('0xaa'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['MX']},'America/Mazatlan':{'name':_0x839c21('0x12'),'utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['MX']},'America/Chihuahua':{'name':_0x839c21('0xf'),'utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['MX']},'America/Ojinaga':{'name':_0x839c21('0x9f'),'utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['MX']},'America/Hermosillo':{'name':_0x839c21('0x108'),'utcOffset':-0x1a4,'offsetStr':_0x839c21('0x14'),'countries':['MX']},'America/Tijuana':{'name':_0x839c21('0xc1'),'utcOffset':-0x1e0,'offsetStr':_0x839c21('0xb8'),'countries':['MX']},'America/Santa_Isabel':{'name':_0x839c21('0x105'),'utcOffset':-0x1e0,'offsetStr':_0x839c21('0xb8'),'countries':['MX']},'America/Bahia_Banderas':{'name':'America/Bahia_Banderas','utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['MX']},'Asia/Kuala_Lumpur':{'name':_0x839c21('0x47'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MY']},'Asia/Kuching':{'name':_0x839c21('0x74'),'utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['MY']},'Africa/Maputo':{'name':_0x839c21('0x4d'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':_0x839c21('0x54'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['NA']},'Pacific/Noumea':{'name':'Pacific/Noumea','utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['NC']},'Pacific/Norfolk':{'name':_0x839c21('0xab'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['NF']},'Africa/Lagos':{'name':_0x839c21('0x4'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':_0x839c21('0xb'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['NI']},'Europe/Amsterdam':{'name':'Europe/Amsterdam','utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},'Europe/Oslo':{'name':_0x839c21('0x86'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['NO','SJ']},'Asia/Kathmandu':{'name':_0x839c21('0xdf'),'utcOffset':0x159,'offsetStr':_0x839c21('0x3d'),'countries':['NP']},'Pacific/Nauru':{'name':_0x839c21('0x19'),'utcOffset':0x2d0,'offsetStr':_0x839c21('0x121'),'countries':['NR']},'Pacific/Niue':{'name':'Pacific/Niue','utcOffset':-0x294,'offsetStr':'-11:00','countries':['NU']},'Pacific/Auckland':{'name':_0x839c21('0x93'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['NZ','AQ']},'Pacific/Chatham':{'name':_0x839c21('0x63'),'utcOffset':0x339,'offsetStr':_0x839c21('0xd1'),'countries':['NZ']},'America/Panama':{'name':_0x839c21('0xb1'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['PA']},'America/Lima':{'name':'America/Lima','utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['PE']},'Pacific/Tahiti':{'name':'Pacific/Tahiti','utcOffset':-0x258,'offsetStr':_0x839c21('0x6c'),'countries':['PF']},'Pacific/Marquesas':{'name':_0x839c21('0x1a'),'utcOffset':-0x23a,'offsetStr':'-09:30','countries':['PF']},'Pacific/Gambier':{'name':'Pacific/Gambier','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['PF']},'Pacific/Port_Moresby':{'name':_0x839c21('0x2b'),'utcOffset':0x258,'offsetStr':_0x839c21('0x49'),'countries':['PG']},'Pacific/Bougainville':{'name':_0x839c21('0xb4'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['PG']},'Asia/Manila':{'name':_0x839c21('0x36'),'utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['PH']},'Asia/Karachi':{'name':_0x839c21('0xe5'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['PK']},'Europe/Warsaw':{'name':_0x839c21('0xbd'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['PL']},'America/Miquelon':{'name':_0x839c21('0x76'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PM']},'Pacific/Pitcairn':{'name':_0x839c21('0xf5'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['PN']},'America/Puerto_Rico':{'name':_0x839c21('0x64'),'utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['PR']},'Asia/Gaza':{'name':_0x839c21('0xa3'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['PS']},'Asia/Hebron':{'name':'Asia/Hebron','utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['PS']},'Europe/Lisbon':{'name':_0x839c21('0x24'),'utcOffset':0x0,'offsetStr':_0x839c21('0x102'),'countries':['PT']},'Atlantic/Madeira':{'name':'Atlantic/Madeira','utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},'Atlantic/Azores':{'name':_0x839c21('0x70'),'utcOffset':-0x3c,'offsetStr':_0x839c21('0x97'),'countries':['PT']},'Pacific/Palau':{'name':_0x839c21('0x1d'),'utcOffset':0x21c,'offsetStr':_0x839c21('0x10f'),'countries':['PW']},'America/Asuncion':{'name':'America/Asuncion','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PY']},'Asia/Qatar':{'name':_0x839c21('0xc8'),'utcOffset':0xb4,'offsetStr':_0x839c21('0xa4'),'countries':['QA','BH']},'Indian/Reunion':{'name':_0x839c21('0x100'),'utcOffset':0xf0,'offsetStr':_0x839c21('0xb7'),'countries':['RE','TF']},'Europe/Bucharest':{'name':_0x839c21('0x2d'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['RO']},'Europe/Belgrade':{'name':_0x839c21('0xeb'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':_0x839c21('0xb2'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['RU']},'Europe/Moscow':{'name':'Europe/Moscow','utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Simferopol':{'name':_0x839c21('0xf2'),'utcOffset':0xb4,'offsetStr':_0x839c21('0xa4'),'countries':['RU']},'Europe/Volgograd':{'name':_0x839c21('0xd9'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Samara':{'name':_0x839c21('0x5'),'utcOffset':0xf0,'offsetStr':_0x839c21('0xb7'),'countries':['RU']},'Asia/Yekaterinburg':{'name':_0x839c21('0x11'),'utcOffset':0x12c,'offsetStr':_0x839c21('0x129'),'countries':['RU']},'Asia/Omsk':{'name':_0x839c21('0xef'),'utcOffset':0x168,'offsetStr':_0x839c21('0x66'),'countries':['RU']},'Asia/Novosibirsk':{'name':_0x839c21('0xd7'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['RU']},'Asia/Novokuznetsk':{'name':'Asia/Novokuznetsk','utcOffset':0x1a4,'offsetStr':_0x839c21('0x116'),'countries':['RU']},'Asia/Krasnoyarsk':{'name':_0x839c21('0x79'),'utcOffset':0x1a4,'offsetStr':_0x839c21('0x116'),'countries':['RU']},'Asia/Irkutsk':{'name':_0x839c21('0x5c'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['RU']},'Asia/Chita':{'name':_0x839c21('0xad'),'utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['RU']},'Asia/Yakutsk':{'name':_0x839c21('0xcf'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['RU']},'Asia/Khandyga':{'name':_0x839c21('0x126'),'utcOffset':0x21c,'offsetStr':_0x839c21('0x10f'),'countries':['RU']},'Asia/Vladivostok':{'name':'Asia/Vladivostok','utcOffset':0x258,'offsetStr':_0x839c21('0x49'),'countries':['RU']},'Asia/Sakhalin':{'name':_0x839c21('0x17'),'utcOffset':0x258,'offsetStr':_0x839c21('0x49'),'countries':['RU']},'Asia/Ust-Nera':{'name':_0x839c21('0x27'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Magadan':{'name':'Asia/Magadan','utcOffset':0x258,'offsetStr':_0x839c21('0x49'),'countries':['RU']},'Asia/Srednekolymsk':{'name':_0x839c21('0x2f'),'utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['RU']},'Asia/Kamchatka':{'name':_0x839c21('0xa8'),'utcOffset':0x2d0,'offsetStr':_0x839c21('0x121'),'countries':['RU']},'Asia/Anadyr':{'name':_0x839c21('0xb5'),'utcOffset':0x2d0,'offsetStr':_0x839c21('0x121'),'countries':['RU']},'Asia/Riyadh':{'name':_0x839c21('0xaf'),'utcOffset':0xb4,'offsetStr':_0x839c21('0xa4'),'countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':_0x839c21('0xe1'),'utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['SB']},'Indian/Mahe':{'name':_0x839c21('0xc3'),'utcOffset':0xf0,'offsetStr':_0x839c21('0xb7'),'countries':['SC']},'Africa/Khartoum':{'name':_0x839c21('0x7a'),'utcOffset':0xb4,'offsetStr':_0x839c21('0xa4'),'countries':['SD','SS']},'Europe/Stockholm':{'name':_0x839c21('0x5f'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['SE']},'Asia/Singapore':{'name':'Asia/Singapore','utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['SG']},'America/Paramaribo':{'name':_0x839c21('0x6f'),'utcOffset':-0xb4,'offsetStr':_0x839c21('0xbf'),'countries':['SR']},'America/El_Salvador':{'name':_0x839c21('0x5b'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['SV']},'Asia/Damascus':{'name':'Asia/Damascus','utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['SY']},'America/Grand_Turk':{'name':'America/Grand_Turk','utcOffset':-0xf0,'offsetStr':_0x839c21('0x13'),'countries':['TC']},'Africa/Ndjamena':{'name':_0x839c21('0x2e'),'utcOffset':0x3c,'offsetStr':_0x839c21('0xe4'),'countries':['TD']},'Indian/Kerguelen':{'name':_0x839c21('0xf3'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TF']},'Asia/Bangkok':{'name':_0x839c21('0x75'),'utcOffset':0x1a4,'offsetStr':_0x839c21('0x116'),'countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':'Asia/Dushanbe','utcOffset':0x12c,'offsetStr':_0x839c21('0x129'),'countries':['TJ']},'Pacific/Fakaofo':{'name':_0x839c21('0xa'),'utcOffset':0x30c,'offsetStr':_0x839c21('0x7'),'countries':['TK']},'Asia/Dili':{'name':_0x839c21('0x3a'),'utcOffset':0x21c,'offsetStr':_0x839c21('0x10f'),'countries':['TL']},'Asia/Ashgabat':{'name':_0x839c21('0xce'),'utcOffset':0x12c,'offsetStr':_0x839c21('0x129'),'countries':['TM']},'Africa/Tunis':{'name':_0x839c21('0x44'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['TN']},'Pacific/Tongatapu':{'name':_0x839c21('0xc9'),'utcOffset':0x30c,'offsetStr':_0x839c21('0x7'),'countries':['TO']},'Europe/Istanbul':{'name':_0x839c21('0xc2'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['TR']},'America/Port_of_Spain':{'name':_0x839c21('0xcc'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':_0x839c21('0xfa'),'utcOffset':0x2d0,'offsetStr':'+12:00','countries':['TV']},'Asia/Taipei':{'name':_0x839c21('0x127'),'utcOffset':0x1e0,'offsetStr':_0x839c21('0x55'),'countries':['TW']},'Europe/Kiev':{'name':_0x839c21('0xd4'),'utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['UA']},'Europe/Uzhgorod':{'name':'Europe/Uzhgorod','utcOffset':0x78,'offsetStr':_0x839c21('0x90'),'countries':['UA']},'Europe/Zaporozhye':{'name':_0x839c21('0x125'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['UA']},'Pacific/Wake':{'name':_0x839c21('0x6'),'utcOffset':0x2d0,'offsetStr':_0x839c21('0x121'),'countries':['UM']},'America/New_York':{'name':_0x839c21('0x50'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Detroit':{'name':_0x839c21('0x113'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['US']},'America/Kentucky/Louisville':{'name':_0x839c21('0x2a'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['US']},'America/Kentucky/Monticello':{'name':_0x839c21('0x30'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['US']},'America/Indiana/Indianapolis':{'name':_0x839c21('0x60'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['US']},'America/Indiana/Vincennes':{'name':_0x839c21('0x8f'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['US']},'America/Indiana/Winamac':{'name':'America/Indiana/Winamac','utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['US']},'America/Indiana/Marengo':{'name':_0x839c21('0xd0'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Indiana/Petersburg':{'name':_0x839c21('0x39'),'utcOffset':-0x12c,'offsetStr':_0x839c21('0x114'),'countries':['US']},'America/Indiana/Vevay':{'name':_0x839c21('0x11c'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Chicago':{'name':'America/Chicago','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Indiana/Tell_City':{'name':_0x839c21('0x3e'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['US']},'America/Indiana/Knox':{'name':_0x839c21('0x40'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['US']},'America/Menominee':{'name':'America/Menominee','utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['US']},'America/North_Dakota/Center':{'name':_0x839c21('0xfd'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/North_Dakota/New_Salem':{'name':_0x839c21('0xe'),'utcOffset':-0x168,'offsetStr':_0x839c21('0x81'),'countries':['US']},'America/North_Dakota/Beulah':{'name':'America/North_Dakota/Beulah','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Denver':{'name':'America/Denver','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},'America/Boise':{'name':_0x839c21('0x18'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},'America/Phoenix':{'name':'America/Phoenix','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},'America/Los_Angeles':{'name':'America/Los_Angeles','utcOffset':-0x1e0,'offsetStr':_0x839c21('0xb8'),'countries':['US']},'America/Metlakatla':{'name':_0x839c21('0xff'),'utcOffset':-0x1e0,'offsetStr':_0x839c21('0xb8'),'countries':['US']},'America/Anchorage':{'name':_0x839c21('0x29'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Juneau':{'name':'America/Juneau','utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Sitka':{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':_0x839c21('0x1'),'countries':['US']},'America/Yakutat':{'name':_0x839c21('0x20'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Nome':{'name':_0x839c21('0xe8'),'utcOffset':-0x21c,'offsetStr':'-09:00','countries':['US']},'America/Adak':{'name':_0x839c21('0xf4'),'utcOffset':-0x258,'offsetStr':_0x839c21('0x6c'),'countries':['US']},'Pacific/Honolulu':{'name':_0x839c21('0x80'),'utcOffset':-0x258,'offsetStr':_0x839c21('0x6c'),'countries':['US','UM']},'America/Montevideo':{'name':_0x839c21('0x96'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['UY']},'Asia/Samarkand':{'name':_0x839c21('0x57'),'utcOffset':0x12c,'offsetStr':_0x839c21('0x129'),'countries':['UZ']},'Asia/Tashkent':{'name':_0x839c21('0x128'),'utcOffset':0x12c,'offsetStr':_0x839c21('0x129'),'countries':['UZ']},'America/Caracas':{'name':_0x839c21('0x6e'),'utcOffset':-0x10e,'offsetStr':_0x839c21('0x62'),'countries':['VE']},'Asia/Ho_Chi_Minh':{'name':'Asia/Ho_Chi_Minh','utcOffset':0x1a4,'offsetStr':_0x839c21('0x116'),'countries':['VN']},'Pacific/Efate':{'name':_0x839c21('0x38'),'utcOffset':0x294,'offsetStr':_0x839c21('0x4e'),'countries':['VU']},'Pacific/Wallis':{'name':_0x839c21('0x7d'),'utcOffset':0x2d0,'offsetStr':_0x839c21('0x121'),'countries':['WF']},'Pacific/Apia':{'name':'Pacific/Apia','utcOffset':0x348,'offsetStr':_0x839c21('0x6b'),'countries':['WS']},'Africa/Johannesburg':{'name':_0x839c21('0xc6'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['ZA','LS','SZ']}}}; \ No newline at end of file +var a840_0x39c6=['Africa/Bissau','America/Detroit','America/Nassau','+11:00','Pacific/Guam','Europe/Zaporozhye','Europe/Belgrade','Indian/Christmas','America/North_Dakota/Beulah','Europe/Andorra','+08:30','Pacific/Port_Moresby','Asia/Krasnoyarsk','America/Argentina/Ushuaia','America/Chicago','Asia/Colombo','Antarctica/Palmer','+12:00','Antarctica/Vostok','America/Puerto_Rico','America/Cayenne','Asia/Hong_Kong','Asia/Oral','America/Godthab','Pacific/Tahiti','Asia/Hebron','Europe/Copenhagen','America/Argentina/Tucuman','Africa/Lagos','+08:45','America/Cayman','Europe/Chisinau','Asia/Kathmandu','Atlantic/Canary','America/Miquelon','Asia/Almaty','UTC','America/Pangnirtung','admin','Asia/Manila','Europe/Simferopol','Asia/Ulaanbaatar','Europe/Uzhgorod','Asia/Hovd','Europe/Paris','Pacific/Tongatapu','Indian/Cocos','Europe/Vilnius','Pacific/Chatham','America/Havana','+06:30','America/Chihuahua','Africa/Tunis','Atlantic/Faroe','America/Managua','Asia/Yakutsk','Asia/Srednekolymsk','America/Guayaquil','+09:30','guest','Asia/Makassar','Antarctica/Macquarie','Pacific/Funafuti','Asia/Taipei','Indian/Mahe','Asia/Macau','America/Blanc-Sablon','Pacific/Auckland','America/El_Salvador','America/Argentina/La_Rioja','America/Regina','America/Rainy_River','Pacific/Easter','Europe/London','America/Fort_Nelson','America/Ojinaga','-01:00','Australia/Broken_Hill','Europe/Minsk','Asia/Qatar','+00:00','+09:00','-02:00','+04:00','America/Kentucky/Louisville','-10:00','America/Curacao','America/Mazatlan','Pacific/Pitcairn','+10:30','Asia/Bangkok','America/Argentina/Jujuy','+10:00','America/Yakutat','Africa/Maputo','America/Panama','America/Indiana/Knox','Europe/Monaco','Europe/Riga','Asia/Baghdad','Africa/Ceuta','Europe/Budapest','America/Goose_Bay','Pacific/Palau','America/Yellowknife','America/Argentina/San_Juan','America/Rankin_Inlet','Asia/Jayapura','America/Los_Angeles','Atlantic/Azores','-11:00','Europe/Athens','Pacific/Norfolk','America/Asuncion','Asia/Sakhalin','+06:00','America/Cancun','Pacific/Niue','Europe/Stockholm','+14:00','Pacific/Marquesas','Europe/Tallinn','Africa/Algiers','-09:00','Asia/Amman','Indian/Chagos','America/Jamaica','Asia/Kuching','Asia/Jakarta','Australia/Lindeman','America/Anchorage','Asia/Kamchatka','America/Tegucigalpa','Antarctica/Mawson','+02:00','Europe/Oslo','Pacific/Wallis','Europe/Luxembourg','America/Thunder_Bay','Pacific/Gambier','Asia/Thimphu','America/Port-au-Prince','+04:30','America/Noronha','America/Manaus','America/Martinique','America/Halifax','America/Santo_Domingo','America/Recife','Atlantic/Reykjavik','Antarctica/Syowa','Australia/Sydney','Asia/Aqtobe','America/Swift_Current','America/Belize','Asia/Omsk','Africa/Cairo','Europe/Volgograd','+05:00','America/Indiana/Vevay','Antarctica/Troll','Africa/Tripoli','Pacific/Fakaofo','Africa/Casablanca','Antarctica/Casey','user','America/Indiana/Vincennes','Asia/Vladivostok','Asia/Anadyr','America/Maceio','+08:00','Pacific/Rarotonga','Europe/Tirane','Asia/Qyzylorda','America/Juneau','-03:00','America/Boise','Europe/Madrid','Asia/Dili','-09:30','Europe/Istanbul','America/Belem','Australia/Melbourne','Pacific/Wake','Europe/Helsinki','Asia/Yerevan','+03:00','Pacific/Guadalcanal','America/Santiago','Atlantic/South_Georgia','-06:00','Australia/Currie','Australia/Hobart','Europe/Amsterdam','Asia/Tehran','Asia/Dubai','America/Vancouver','America/Menominee','+07:00','Australia/Darwin','Asia/Magadan','America/Edmonton','-03:30','America/Sao_Paulo','Asia/Novokuznetsk','America/Bogota','Europe/Dublin','America/Glace_Bay','+13:00','+03:30','Asia/Baku','+01:00','Europe/Sofia','Atlantic/Bermuda','America/Santa_Isabel','Europe/Gibraltar','Asia/Damascus','-05:00','America/Whitehorse','America/Scoresbysund','Australia/Adelaide','Asia/Riyadh','Europe/Samara','America/Merida','Asia/Tashkent','Australia/Perth','-04:30','Europe/Rome','America/Argentina/Buenos_Aires','America/Tijuana','Asia/Chita','Africa/Ndjamena','America/Costa_Rica','Atlantic/Madeira','America/Fortaleza','Asia/Jerusalem','America/Cuiaba','Europe/Bucharest','America/Grand_Turk','Pacific/Bougainville','+05:30','Asia/Pontianak','America/Porto_Velho','America/Nipigon','America/Dawson_Creek','Asia/Kuala_Lumpur','Asia/Urumqi','America/Lima','Asia/Kabul','Asia/Irkutsk','Indian/Mauritius','Asia/Aqtau','Pacific/Fiji','America/Nome','Pacific/Majuro','America/Moncton','America/Dawson','Africa/Nairobi','America/Boa_Vista','Asia/Rangoon','Europe/Lisbon','America/Atikokan','America/Barbados','America/Mexico_City','America/Argentina/San_Luis','Pacific/Chuuk','Pacific/Efate','Europe/Vienna','America/Phoenix','America/Thule','Africa/Abidjan','Antarctica/Davis','Pacific/Apia','Asia/Novosibirsk','Australia/Eucla','Asia/Pyongyang','Indian/Reunion','America/Argentina/Cordoba','Asia/Brunei','America/Indiana/Petersburg','America/Montevideo','-08:00','-04:00','-07:00','+13:45','America/Indiana/Indianapolis','Indian/Kerguelen','America/Guyana','America/New_York','America/Indiana/Tell_City','Pacific/Honolulu','Asia/Ho_Chi_Minh','Europe/Zurich','Europe/Warsaw'];(function(_0xa7f796,_0x39c66c){var _0x65cf47=function(_0x5cde15){while(--_0x5cde15){_0xa7f796['push'](_0xa7f796['shift']());}};_0x65cf47(++_0x39c66c);}(a840_0x39c6,0x187));var a840_0x65cf=function(_0xa7f796,_0x39c66c){_0xa7f796=_0xa7f796-0x0;var _0x65cf47=a840_0x39c6[_0xa7f796];return _0x65cf47;};var _0x281927=a840_0x65cf;'use strict';module['exports']={'userRoles':[_0x281927('0x100'),_0x281927('0x44'),_0x281927('0xeb')],'timezones':{'Europe/Andorra':{'name':_0x281927('0xce'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['AD']},'Asia/Dubai':{'name':_0x281927('0x62'),'utcOffset':0xf0,'offsetStr':_0x281927('0x118'),'countries':['AE','OM']},'Asia/Kabul':{'name':_0x281927('0x97'),'utcOffset':0x10e,'offsetStr':_0x281927('0x2d'),'countries':['AF']},'Europe/Tirane':{'name':_0x281927('0x4b'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['AL']},'Asia/Yerevan':{'name':_0x281927('0x58'),'utcOffset':0xf0,'offsetStr':_0x281927('0x118'),'countries':['AM']},'Antarctica/Rothera':{'name':'Antarctica/Rothera','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AQ']},'Antarctica/Palmer':{'name':_0x281927('0xd5'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AQ']},'Antarctica/Mawson':{'name':_0x281927('0x24'),'utcOffset':0x12c,'offsetStr':_0x281927('0x3d'),'countries':['AQ']},'Antarctica/Davis':{'name':_0x281927('0xae'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['AQ']},'Antarctica/Casey':{'name':_0x281927('0x43'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['AQ']},'Antarctica/Vostok':{'name':_0x281927('0xd7'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['AQ']},'Antarctica/DumontDUrville':{'name':'Antarctica/DumontDUrville','utcOffset':0x258,'offsetStr':'+10:00','countries':['AQ']},'Antarctica/Syowa':{'name':_0x281927('0x35'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['AQ']},'Antarctica/Troll':{'name':_0x281927('0x3f'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['AQ']},'America/Argentina/Buenos_Aires':{'name':_0x281927('0x83'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/Cordoba':{'name':_0x281927('0xb4'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/Salta':{'name':'America/Argentina/Salta','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/Jujuy':{'name':_0x281927('0x120'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/Tucuman':{'name':_0x281927('0xe0'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/Catamarca':{'name':'America/Argentina/Catamarca','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/La_Rioja':{'name':_0x281927('0x10a'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/San_Juan':{'name':_0x281927('0x8'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/Mendoza':{'name':'America/Argentina/Mendoza','utcOffset':-0xb4,'offsetStr':'-03:00','countries':['AR']},'America/Argentina/San_Luis':{'name':_0x281927('0xa7'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/Rio_Gallegos':{'name':'America/Argentina/Rio_Gallegos','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'America/Argentina/Ushuaia':{'name':_0x281927('0xd2'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['AR']},'Pacific/Pago_Pago':{'name':'Pacific/Pago_Pago','utcOffset':-0x294,'offsetStr':_0x281927('0xd'),'countries':['AS','UM']},'Europe/Vienna':{'name':_0x281927('0xaa'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['AT']},'Australia/Lord_Howe':{'name':'Australia/Lord_Howe','utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['AU']},'Antarctica/Macquarie':{'name':_0x281927('0x102'),'utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['AU']},'Australia/Hobart':{'name':_0x281927('0x5f'),'utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['AU']},'Australia/Currie':{'name':_0x281927('0x5e'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Melbourne':{'name':_0x281927('0x55'),'utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['AU']},'Australia/Sydney':{'name':_0x281927('0x36'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['AU']},'Australia/Broken_Hill':{'name':_0x281927('0x112'),'utcOffset':0x276,'offsetStr':_0x281927('0x11e'),'countries':['AU']},'Australia/Brisbane':{'name':'Australia/Brisbane','utcOffset':0x258,'offsetStr':_0x281927('0x121'),'countries':['AU']},'Australia/Lindeman':{'name':_0x281927('0x20'),'utcOffset':0x258,'offsetStr':_0x281927('0x121'),'countries':['AU']},'Australia/Adelaide':{'name':_0x281927('0x7b'),'utcOffset':0x276,'offsetStr':_0x281927('0x11e'),'countries':['AU']},'Australia/Darwin':{'name':_0x281927('0x66'),'utcOffset':0x23a,'offsetStr':_0x281927('0xff'),'countries':['AU']},'Australia/Perth':{'name':_0x281927('0x80'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['AU']},'Australia/Eucla':{'name':_0x281927('0xb1'),'utcOffset':0x20d,'offsetStr':_0x281927('0xe2'),'countries':['AU']},'Asia/Baku':{'name':_0x281927('0x71'),'utcOffset':0xf0,'offsetStr':_0x281927('0x118'),'countries':['AZ']},'America/Barbados':{'name':_0x281927('0xa5'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['BB']},'Asia/Dhaka':{'name':'Asia/Dhaka','utcOffset':0x168,'offsetStr':'+06:00','countries':['BD']},'Europe/Brussels':{'name':'Europe/Brussels','utcOffset':0x3c,'offsetStr':'+01:00','countries':['BE']},'Europe/Sofia':{'name':_0x281927('0x73'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['BG']},'Atlantic/Bermuda':{'name':_0x281927('0x74'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['BM']},'Asia/Brunei':{'name':_0x281927('0xb5'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['BN']},'America/La_Paz':{'name':'America/La_Paz','utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['BO']},'America/Noronha':{'name':_0x281927('0x2e'),'utcOffset':-0x78,'offsetStr':_0x281927('0x117'),'countries':['BR']},'America/Belem':{'name':_0x281927('0x54'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['BR']},'America/Fortaleza':{'name':_0x281927('0x89'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['BR']},'America/Recife':{'name':_0x281927('0x33'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['BR']},'America/Araguaina':{'name':'America/Araguaina','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['BR']},'America/Maceio':{'name':_0x281927('0x48'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['BR']},'America/Bahia':{'name':'America/Bahia','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['BR']},'America/Sao_Paulo':{'name':_0x281927('0x6a'),'utcOffset':-0x78,'offsetStr':_0x281927('0x117'),'countries':['BR']},'America/Campo_Grande':{'name':'America/Campo_Grande','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['BR']},'America/Cuiaba':{'name':_0x281927('0x8b'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['BR']},'America/Santarem':{'name':'America/Santarem','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['BR']},'America/Porto_Velho':{'name':_0x281927('0x91'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['BR']},'America/Boa_Vista':{'name':_0x281927('0xa1'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['BR']},'America/Manaus':{'name':_0x281927('0x2f'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['BR']},'America/Eirunepe':{'name':'America/Eirunepe','utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['BR']},'America/Rio_Branco':{'name':'America/Rio_Branco','utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['BR']},'America/Nassau':{'name':_0x281927('0xc7'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['BS']},'Asia/Thimphu':{'name':_0x281927('0x2b'),'utcOffset':0x168,'offsetStr':_0x281927('0x12'),'countries':['BT']},'Europe/Minsk':{'name':_0x281927('0x113'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['BY']},'America/Belize':{'name':_0x281927('0x39'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['BZ']},'America/St_Johns':{'name':'America/St_Johns','utcOffset':-0xd2,'offsetStr':_0x281927('0x69'),'countries':['CA']},'America/Halifax':{'name':_0x281927('0x31'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Glace_Bay':{'name':_0x281927('0x6e'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['CA']},'America/Moncton':{'name':_0x281927('0x9e'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['CA']},'America/Goose_Bay':{'name':_0x281927('0x5'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Blanc-Sablon':{'name':_0x281927('0x107'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['CA']},'America/Toronto':{'name':'America/Toronto','utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['CA']},'America/Nipigon':{'name':_0x281927('0x92'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['CA']},'America/Thunder_Bay':{'name':_0x281927('0x29'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['CA']},'America/Iqaluit':{'name':'America/Iqaluit','utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['CA']},'America/Pangnirtung':{'name':_0x281927('0xea'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['CA']},'America/Resolute':{'name':'America/Resolute','utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['CA']},'America/Atikokan':{'name':_0x281927('0xa4'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['CA']},'America/Rankin_Inlet':{'name':_0x281927('0x9'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['CA']},'America/Winnipeg':{'name':'America/Winnipeg','utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['CA']},'America/Rainy_River':{'name':_0x281927('0x10c'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['CA']},'America/Regina':{'name':_0x281927('0x10b'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['CA']},'America/Swift_Current':{'name':_0x281927('0x38'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['CA']},'America/Edmonton':{'name':_0x281927('0x68'),'utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['CA']},'America/Cambridge_Bay':{'name':'America/Cambridge_Bay','utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['CA']},'America/Yellowknife':{'name':_0x281927('0x7'),'utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['CA']},'America/Inuvik':{'name':'America/Inuvik','utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Creston':{'name':'America/Creston','utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['CA']},'America/Dawson_Creek':{'name':_0x281927('0x93'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['CA']},'America/Fort_Nelson':{'name':_0x281927('0x10f'),'utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['CA']},'America/Vancouver':{'name':_0x281927('0x63'),'utcOffset':-0x1e0,'offsetStr':_0x281927('0xb8'),'countries':['CA']},'America/Whitehorse':{'name':_0x281927('0x79'),'utcOffset':-0x1e0,'offsetStr':_0x281927('0xb8'),'countries':['CA']},'America/Dawson':{'name':_0x281927('0x9f'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['CA']},'Indian/Cocos':{'name':_0x281927('0xf3'),'utcOffset':0x186,'offsetStr':_0x281927('0xf7'),'countries':['CC']},'Europe/Zurich':{'name':_0x281927('0xc3'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['CH','DE','LI']},'Africa/Abidjan':{'name':_0x281927('0xad'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['CI','BF','GM','GN','ML','MR','SH','SL','SN','ST','TG']},'Pacific/Rarotonga':{'name':_0x281927('0x4a'),'utcOffset':-0x258,'offsetStr':_0x281927('0x11a'),'countries':['CK']},'America/Santiago':{'name':_0x281927('0x5b'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['CL']},'Pacific/Easter':{'name':_0x281927('0x10d'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['CL']},'Asia/Shanghai':{'name':'Asia/Shanghai','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['CN']},'Asia/Urumqi':{'name':_0x281927('0x95'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['CN']},'America/Bogota':{'name':_0x281927('0x6c'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['CO']},'America/Costa_Rica':{'name':_0x281927('0x87'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['CR']},'America/Havana':{'name':_0x281927('0xf6'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['CU']},'Atlantic/Cape_Verde':{'name':'Atlantic/Cape_Verde','utcOffset':-0x3c,'offsetStr':_0x281927('0x111'),'countries':['CV']},'America/Curacao':{'name':_0x281927('0x11b'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['CW','AW','BQ','SX']},'Indian/Christmas':{'name':_0x281927('0xcc'),'utcOffset':0x1a4,'offsetStr':'+07:00','countries':['CX']},'Asia/Nicosia':{'name':'Asia/Nicosia','utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['CY']},'Europe/Prague':{'name':'Europe/Prague','utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['CZ','SK']},'Europe/Berlin':{'name':'Europe/Berlin','utcOffset':0x3c,'offsetStr':'+01:00','countries':['DE']},'Europe/Copenhagen':{'name':_0x281927('0xdf'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['DK']},'America/Santo_Domingo':{'name':_0x281927('0x32'),'utcOffset':-0xf0,'offsetStr':'-04:00','countries':['DO']},'Africa/Algiers':{'name':_0x281927('0x19'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['DZ']},'America/Guayaquil':{'name':_0x281927('0xfe'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['EC']},'Pacific/Galapagos':{'name':'Pacific/Galapagos','utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['EC']},'Europe/Tallinn':{'name':_0x281927('0x18'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['EE']},'Africa/Cairo':{'name':_0x281927('0x3b'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['EG']},'Africa/El_Aaiun':{'name':'Africa/El_Aaiun','utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['EH']},'Europe/Madrid':{'name':_0x281927('0x50'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['ES']},'Africa/Ceuta':{'name':_0x281927('0x3'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['ES']},'Atlantic/Canary':{'name':_0x281927('0xe6'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['ES']},'Europe/Helsinki':{'name':_0x281927('0x57'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['FI','AX']},'Pacific/Fiji':{'name':_0x281927('0x9b'),'utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['FJ']},'Atlantic/Stanley':{'name':'Atlantic/Stanley','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['FK']},'Pacific/Chuuk':{'name':_0x281927('0xa8'),'utcOffset':0x258,'offsetStr':_0x281927('0x121'),'countries':['FM']},'Pacific/Pohnpei':{'name':'Pacific/Pohnpei','utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['FM']},'Pacific/Kosrae':{'name':'Pacific/Kosrae','utcOffset':0x294,'offsetStr':'+11:00','countries':['FM']},'Atlantic/Faroe':{'name':_0x281927('0xfa'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['FO']},'Europe/Paris':{'name':_0x281927('0xf1'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['FR']},'UTC':{'name':_0x281927('0xe9'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['GB','GG','IM','JE']},'Europe/London':{'name':_0x281927('0x10e'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['GB','GG','IM','JE']},'Asia/Tbilisi':{'name':'Asia/Tbilisi','utcOffset':0xf0,'offsetStr':_0x281927('0x118'),'countries':['GE']},'America/Cayenne':{'name':_0x281927('0xd9'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['GF']},'Africa/Accra':{'name':'Africa/Accra','utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['GH']},'Europe/Gibraltar':{'name':_0x281927('0x76'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['GI']},'America/Godthab':{'name':_0x281927('0xdc'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['GL']},'America/Danmarkshavn':{'name':'America/Danmarkshavn','utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['GL']},'America/Scoresbysund':{'name':_0x281927('0x7a'),'utcOffset':-0x3c,'offsetStr':_0x281927('0x111'),'countries':['GL']},'America/Thule':{'name':_0x281927('0xac'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['GL']},'Europe/Athens':{'name':_0x281927('0xe'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['GR']},'Atlantic/South_Georgia':{'name':_0x281927('0x5c'),'utcOffset':-0x78,'offsetStr':_0x281927('0x117'),'countries':['GS']},'America/Guatemala':{'name':'America/Guatemala','utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['GT']},'Pacific/Guam':{'name':_0x281927('0xc9'),'utcOffset':0x258,'offsetStr':_0x281927('0x121'),'countries':['GU','MP']},'Africa/Bissau':{'name':_0x281927('0xc5'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['GW']},'America/Guyana':{'name':_0x281927('0xbe'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['GY']},'Asia/Hong_Kong':{'name':_0x281927('0xda'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['HK']},'America/Tegucigalpa':{'name':_0x281927('0x23'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['HN']},'America/Port-au-Prince':{'name':_0x281927('0x2c'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['HT']},'Europe/Budapest':{'name':_0x281927('0x4'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['HU']},'Asia/Jakarta':{'name':_0x281927('0x1f'),'utcOffset':0x1a4,'offsetStr':_0x281927('0x65'),'countries':['ID']},'Asia/Pontianak':{'name':_0x281927('0x90'),'utcOffset':0x1a4,'offsetStr':_0x281927('0x65'),'countries':['ID']},'Asia/Makassar':{'name':_0x281927('0x101'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['ID']},'Asia/Jayapura':{'name':_0x281927('0xa'),'utcOffset':0x21c,'offsetStr':_0x281927('0x116'),'countries':['ID']},'Europe/Dublin':{'name':_0x281927('0x6d'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['IE']},'Asia/Jerusalem':{'name':_0x281927('0x8a'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['IL']},'Asia/Kolkata':{'name':'Asia/Kolkata','utcOffset':0x14a,'offsetStr':_0x281927('0x8f'),'countries':['IN']},'Indian/Chagos':{'name':_0x281927('0x1c'),'utcOffset':0x168,'offsetStr':_0x281927('0x12'),'countries':['IO']},'Asia/Baghdad':{'name':_0x281927('0x2'),'utcOffset':0xb4,'offsetStr':_0x281927('0x59'),'countries':['IQ']},'Asia/Tehran':{'name':_0x281927('0x61'),'utcOffset':0xd2,'offsetStr':_0x281927('0x70'),'countries':['IR']},'Atlantic/Reykjavik':{'name':_0x281927('0x34'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['IS']},'Europe/Rome':{'name':_0x281927('0x82'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['IT','SM','VA']},'America/Jamaica':{'name':_0x281927('0x1d'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['JM']},'Asia/Amman':{'name':_0x281927('0x1b'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['JO']},'Asia/Tokyo':{'name':'Asia/Tokyo','utcOffset':0x21c,'offsetStr':_0x281927('0x116'),'countries':['JP']},'Africa/Nairobi':{'name':_0x281927('0xa0'),'utcOffset':0xb4,'offsetStr':_0x281927('0x59'),'countries':['KE','DJ','ER','ET','KM','MG','SO','TZ','UG','YT']},'Asia/Bishkek':{'name':'Asia/Bishkek','utcOffset':0x168,'offsetStr':'+06:00','countries':['KG']},'Pacific/Tarawa':{'name':'Pacific/Tarawa','utcOffset':0x2d0,'offsetStr':'+12:00','countries':['KI']},'Pacific/Enderbury':{'name':'Pacific/Enderbury','utcOffset':0x30c,'offsetStr':_0x281927('0x6f'),'countries':['KI']},'Pacific/Kiritimati':{'name':'Pacific/Kiritimati','utcOffset':0x348,'offsetStr':_0x281927('0x16'),'countries':['KI']},'Asia/Pyongyang':{'name':_0x281927('0xb2'),'utcOffset':0x1fe,'offsetStr':_0x281927('0xcf'),'countries':['KP']},'Asia/Seoul':{'name':'Asia/Seoul','utcOffset':0x21c,'offsetStr':_0x281927('0x116'),'countries':['KR']},'America/Cayman':{'name':_0x281927('0xe3'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['KY']},'Asia/Almaty':{'name':_0x281927('0xe8'),'utcOffset':0x168,'offsetStr':'+06:00','countries':['KZ']},'Asia/Qyzylorda':{'name':_0x281927('0x4c'),'utcOffset':0x168,'offsetStr':_0x281927('0x12'),'countries':['KZ']},'Asia/Aqtobe':{'name':_0x281927('0x37'),'utcOffset':0x12c,'offsetStr':_0x281927('0x3d'),'countries':['KZ']},'Asia/Aqtau':{'name':_0x281927('0x9a'),'utcOffset':0x12c,'offsetStr':_0x281927('0x3d'),'countries':['KZ']},'Asia/Oral':{'name':_0x281927('0xdb'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['KZ']},'Asia/Beirut':{'name':'Asia/Beirut','utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['LB']},'Asia/Colombo':{'name':_0x281927('0xd4'),'utcOffset':0x14a,'offsetStr':_0x281927('0x8f'),'countries':['LK']},'Africa/Monrovia':{'name':'Africa/Monrovia','utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['LR']},'Europe/Vilnius':{'name':_0x281927('0xf4'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['LT']},'Europe/Luxembourg':{'name':_0x281927('0x28'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['LU']},'Europe/Riga':{'name':_0x281927('0x1'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['LV']},'Africa/Tripoli':{'name':_0x281927('0x40'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['LY']},'Africa/Casablanca':{'name':_0x281927('0x42'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['MA']},'Europe/Monaco':{'name':_0x281927('0x0'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['MC']},'Europe/Chisinau':{'name':_0x281927('0xe4'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['MD']},'Pacific/Majuro':{'name':_0x281927('0x9d'),'utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['MH']},'Pacific/Kwajalein':{'name':'Pacific/Kwajalein','utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['MH']},'Asia/Rangoon':{'name':_0x281927('0xa2'),'utcOffset':0x186,'offsetStr':_0x281927('0xf7'),'countries':['MM']},'Asia/Ulaanbaatar':{'name':_0x281927('0xee'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['MN']},'Asia/Hovd':{'name':_0x281927('0xf0'),'utcOffset':0x1a4,'offsetStr':_0x281927('0x65'),'countries':['MN']},'Asia/Choibalsan':{'name':'Asia/Choibalsan','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['MN']},'Asia/Macau':{'name':_0x281927('0x106'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['MO']},'America/Martinique':{'name':_0x281927('0x30'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['MQ']},'Europe/Malta':{'name':'Europe/Malta','utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['MT']},'Indian/Mauritius':{'name':_0x281927('0x99'),'utcOffset':0xf0,'offsetStr':_0x281927('0x118'),'countries':['MU']},'Indian/Maldives':{'name':'Indian/Maldives','utcOffset':0x12c,'offsetStr':_0x281927('0x3d'),'countries':['MV']},'America/Mexico_City':{'name':_0x281927('0xa6'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['MX']},'America/Cancun':{'name':_0x281927('0x13'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['MX']},'America/Merida':{'name':_0x281927('0x7e'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['MX']},'America/Monterrey':{'name':'America/Monterrey','utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['MX']},'America/Matamoros':{'name':'America/Matamoros','utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['MX']},'America/Mazatlan':{'name':_0x281927('0x11c'),'utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['MX']},'America/Chihuahua':{'name':_0x281927('0xf8'),'utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['MX']},'America/Ojinaga':{'name':_0x281927('0x110'),'utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['MX']},'America/Hermosillo':{'name':'America/Hermosillo','utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['MX']},'America/Tijuana':{'name':_0x281927('0x84'),'utcOffset':-0x1e0,'offsetStr':_0x281927('0xb8'),'countries':['MX']},'America/Santa_Isabel':{'name':_0x281927('0x75'),'utcOffset':-0x1e0,'offsetStr':_0x281927('0xb8'),'countries':['MX']},'America/Bahia_Banderas':{'name':'America/Bahia_Banderas','utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['MX']},'Asia/Kuala_Lumpur':{'name':_0x281927('0x94'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['MY']},'Asia/Kuching':{'name':_0x281927('0x1e'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['MY']},'Africa/Maputo':{'name':_0x281927('0x123'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['MZ','BI','BW','CD','MW','RW','ZM','ZW']},'Africa/Windhoek':{'name':'Africa/Windhoek','utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['NA']},'Pacific/Noumea':{'name':'Pacific/Noumea','utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['NC']},'Pacific/Norfolk':{'name':_0x281927('0xf'),'utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['NF']},'Africa/Lagos':{'name':_0x281927('0xe1'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NG','AO','BJ','CD','CF','CG','CM','GA','GQ','NE']},'America/Managua':{'name':_0x281927('0xfb'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['NI']},'Europe/Amsterdam':{'name':_0x281927('0x60'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['NL']},'Europe/Oslo':{'name':_0x281927('0x26'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['NO','SJ']},'Asia/Kathmandu':{'name':_0x281927('0xe5'),'utcOffset':0x159,'offsetStr':'+05:45','countries':['NP']},'Pacific/Nauru':{'name':'Pacific/Nauru','utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['NR']},'Pacific/Niue':{'name':_0x281927('0x14'),'utcOffset':-0x294,'offsetStr':_0x281927('0xd'),'countries':['NU']},'Pacific/Auckland':{'name':_0x281927('0x108'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['NZ','AQ']},'Pacific/Chatham':{'name':_0x281927('0xf5'),'utcOffset':0x339,'offsetStr':_0x281927('0xbb'),'countries':['NZ']},'America/Panama':{'name':_0x281927('0x124'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['PA']},'America/Lima':{'name':_0x281927('0x96'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['PE']},'Pacific/Tahiti':{'name':_0x281927('0xdd'),'utcOffset':-0x258,'offsetStr':_0x281927('0x11a'),'countries':['PF']},'Pacific/Marquesas':{'name':_0x281927('0x17'),'utcOffset':-0x23a,'offsetStr':_0x281927('0x52'),'countries':['PF']},'Pacific/Gambier':{'name':_0x281927('0x2a'),'utcOffset':-0x21c,'offsetStr':_0x281927('0x1a'),'countries':['PF']},'Pacific/Port_Moresby':{'name':_0x281927('0xd0'),'utcOffset':0x258,'offsetStr':_0x281927('0x121'),'countries':['PG']},'Pacific/Bougainville':{'name':_0x281927('0x8e'),'utcOffset':0x294,'offsetStr':'+11:00','countries':['PG']},'Asia/Manila':{'name':_0x281927('0xec'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['PH']},'Asia/Karachi':{'name':'Asia/Karachi','utcOffset':0x12c,'offsetStr':_0x281927('0x3d'),'countries':['PK']},'Europe/Warsaw':{'name':_0x281927('0xc4'),'utcOffset':0x3c,'offsetStr':'+01:00','countries':['PL']},'America/Miquelon':{'name':_0x281927('0xe7'),'utcOffset':-0xb4,'offsetStr':'-03:00','countries':['PM']},'Pacific/Pitcairn':{'name':_0x281927('0x11d'),'utcOffset':-0x1e0,'offsetStr':_0x281927('0xb8'),'countries':['PN']},'America/Puerto_Rico':{'name':_0x281927('0xd8'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['PR']},'Asia/Gaza':{'name':'Asia/Gaza','utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['PS']},'Asia/Hebron':{'name':_0x281927('0xde'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['PS']},'Europe/Lisbon':{'name':_0x281927('0xa3'),'utcOffset':0x0,'offsetStr':'+00:00','countries':['PT']},'Atlantic/Madeira':{'name':_0x281927('0x88'),'utcOffset':0x0,'offsetStr':_0x281927('0x115'),'countries':['PT']},'Atlantic/Azores':{'name':_0x281927('0xc'),'utcOffset':-0x3c,'offsetStr':_0x281927('0x111'),'countries':['PT']},'Pacific/Palau':{'name':_0x281927('0x6'),'utcOffset':0x21c,'offsetStr':'+09:00','countries':['PW']},'America/Asuncion':{'name':_0x281927('0x10'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['PY']},'Asia/Qatar':{'name':_0x281927('0x114'),'utcOffset':0xb4,'offsetStr':_0x281927('0x59'),'countries':['QA','BH']},'Indian/Reunion':{'name':_0x281927('0xb3'),'utcOffset':0xf0,'offsetStr':_0x281927('0x118'),'countries':['RE','TF']},'Europe/Bucharest':{'name':_0x281927('0x8c'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['RO']},'Europe/Belgrade':{'name':_0x281927('0xcb'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['RS','BA','HR','ME','MK','SI']},'Europe/Kaliningrad':{'name':'Europe/Kaliningrad','utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['RU']},'Europe/Moscow':{'name':'Europe/Moscow','utcOffset':0xb4,'offsetStr':'+03:00','countries':['RU']},'Europe/Simferopol':{'name':_0x281927('0xed'),'utcOffset':0xb4,'offsetStr':_0x281927('0x59'),'countries':['RU']},'Europe/Volgograd':{'name':_0x281927('0x3c'),'utcOffset':0xb4,'offsetStr':_0x281927('0x59'),'countries':['RU']},'Europe/Samara':{'name':_0x281927('0x7d'),'utcOffset':0xf0,'offsetStr':_0x281927('0x118'),'countries':['RU']},'Asia/Yekaterinburg':{'name':'Asia/Yekaterinburg','utcOffset':0x12c,'offsetStr':'+05:00','countries':['RU']},'Asia/Omsk':{'name':_0x281927('0x3a'),'utcOffset':0x168,'offsetStr':_0x281927('0x12'),'countries':['RU']},'Asia/Novosibirsk':{'name':_0x281927('0xb0'),'utcOffset':0x168,'offsetStr':_0x281927('0x12'),'countries':['RU']},'Asia/Novokuznetsk':{'name':_0x281927('0x6b'),'utcOffset':0x1a4,'offsetStr':_0x281927('0x65'),'countries':['RU']},'Asia/Krasnoyarsk':{'name':_0x281927('0xd1'),'utcOffset':0x1a4,'offsetStr':_0x281927('0x65'),'countries':['RU']},'Asia/Irkutsk':{'name':_0x281927('0x98'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['RU']},'Asia/Chita':{'name':_0x281927('0x85'),'utcOffset':0x1e0,'offsetStr':_0x281927('0x49'),'countries':['RU']},'Asia/Yakutsk':{'name':_0x281927('0xfc'),'utcOffset':0x21c,'offsetStr':_0x281927('0x116'),'countries':['RU']},'Asia/Khandyga':{'name':'Asia/Khandyga','utcOffset':0x21c,'offsetStr':_0x281927('0x116'),'countries':['RU']},'Asia/Vladivostok':{'name':_0x281927('0x46'),'utcOffset':0x258,'offsetStr':'+10:00','countries':['RU']},'Asia/Sakhalin':{'name':_0x281927('0x11'),'utcOffset':0x258,'offsetStr':_0x281927('0x121'),'countries':['RU']},'Asia/Ust-Nera':{'name':'Asia/Ust-Nera','utcOffset':0x258,'offsetStr':_0x281927('0x121'),'countries':['RU']},'Asia/Magadan':{'name':_0x281927('0x67'),'utcOffset':0x258,'offsetStr':_0x281927('0x121'),'countries':['RU']},'Asia/Srednekolymsk':{'name':_0x281927('0xfd'),'utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['RU']},'Asia/Kamchatka':{'name':_0x281927('0x22'),'utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['RU']},'Asia/Anadyr':{'name':_0x281927('0x47'),'utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['RU']},'Asia/Riyadh':{'name':_0x281927('0x7c'),'utcOffset':0xb4,'offsetStr':'+03:00','countries':['SA','KW','YE']},'Pacific/Guadalcanal':{'name':_0x281927('0x5a'),'utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['SB']},'Indian/Mahe':{'name':_0x281927('0x105'),'utcOffset':0xf0,'offsetStr':_0x281927('0x118'),'countries':['SC']},'Africa/Khartoum':{'name':'Africa/Khartoum','utcOffset':0xb4,'offsetStr':_0x281927('0x59'),'countries':['SD','SS']},'Europe/Stockholm':{'name':_0x281927('0x15'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['SE']},'Asia/Singapore':{'name':'Asia/Singapore','utcOffset':0x1e0,'offsetStr':'+08:00','countries':['SG']},'America/Paramaribo':{'name':'America/Paramaribo','utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['SR']},'America/El_Salvador':{'name':_0x281927('0x109'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['SV']},'Asia/Damascus':{'name':_0x281927('0x77'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['SY']},'America/Grand_Turk':{'name':_0x281927('0x8d'),'utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['TC']},'Africa/Ndjamena':{'name':_0x281927('0x86'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['TD']},'Indian/Kerguelen':{'name':_0x281927('0xbd'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['TF']},'Asia/Bangkok':{'name':_0x281927('0x11f'),'utcOffset':0x1a4,'offsetStr':_0x281927('0x65'),'countries':['TH','KH','LA','VN']},'Asia/Dushanbe':{'name':'Asia/Dushanbe','utcOffset':0x12c,'offsetStr':_0x281927('0x3d'),'countries':['TJ']},'Pacific/Fakaofo':{'name':_0x281927('0x41'),'utcOffset':0x30c,'offsetStr':_0x281927('0x6f'),'countries':['TK']},'Asia/Dili':{'name':_0x281927('0x51'),'utcOffset':0x21c,'offsetStr':_0x281927('0x116'),'countries':['TL']},'Asia/Ashgabat':{'name':'Asia/Ashgabat','utcOffset':0x12c,'offsetStr':_0x281927('0x3d'),'countries':['TM']},'Africa/Tunis':{'name':_0x281927('0xf9'),'utcOffset':0x3c,'offsetStr':_0x281927('0x72'),'countries':['TN']},'Pacific/Tongatapu':{'name':_0x281927('0xf2'),'utcOffset':0x30c,'offsetStr':'+13:00','countries':['TO']},'Europe/Istanbul':{'name':_0x281927('0x53'),'utcOffset':0x78,'offsetStr':'+02:00','countries':['TR']},'America/Port_of_Spain':{'name':'America/Port_of_Spain','utcOffset':-0xf0,'offsetStr':_0x281927('0xb9'),'countries':['TT','AG','AI','BL','DM','GD','GP','KN','LC','MF','MS','VC','VG','VI']},'Pacific/Funafuti':{'name':_0x281927('0x103'),'utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['TV']},'Asia/Taipei':{'name':_0x281927('0x104'),'utcOffset':0x1e0,'offsetStr':'+08:00','countries':['TW']},'Europe/Kiev':{'name':'Europe/Kiev','utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['UA']},'Europe/Uzhgorod':{'name':_0x281927('0xef'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['UA']},'Europe/Zaporozhye':{'name':_0x281927('0xca'),'utcOffset':0x78,'offsetStr':_0x281927('0x25'),'countries':['UA']},'Pacific/Wake':{'name':_0x281927('0x56'),'utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['UM']},'America/New_York':{'name':_0x281927('0xbf'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['US']},'America/Detroit':{'name':_0x281927('0xc6'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Kentucky/Louisville':{'name':_0x281927('0x119'),'utcOffset':-0x12c,'offsetStr':'-05:00','countries':['US']},'America/Kentucky/Monticello':{'name':'America/Kentucky/Monticello','utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['US']},'America/Indiana/Indianapolis':{'name':_0x281927('0xbc'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['US']},'America/Indiana/Vincennes':{'name':_0x281927('0x45'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['US']},'America/Indiana/Winamac':{'name':'America/Indiana/Winamac','utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['US']},'America/Indiana/Marengo':{'name':'America/Indiana/Marengo','utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['US']},'America/Indiana/Petersburg':{'name':_0x281927('0xb6'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['US']},'America/Indiana/Vevay':{'name':_0x281927('0x3e'),'utcOffset':-0x12c,'offsetStr':_0x281927('0x78'),'countries':['US']},'America/Chicago':{'name':_0x281927('0xd3'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['US']},'America/Indiana/Tell_City':{'name':_0x281927('0xc0'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Indiana/Knox':{'name':_0x281927('0x125'),'utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/Menominee':{'name':_0x281927('0x64'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['US']},'America/North_Dakota/Center':{'name':'America/North_Dakota/Center','utcOffset':-0x168,'offsetStr':'-06:00','countries':['US']},'America/North_Dakota/New_Salem':{'name':'America/North_Dakota/New_Salem','utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['US']},'America/North_Dakota/Beulah':{'name':_0x281927('0xcd'),'utcOffset':-0x168,'offsetStr':_0x281927('0x5d'),'countries':['US']},'America/Denver':{'name':'America/Denver','utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['US']},'America/Boise':{'name':_0x281927('0x4f'),'utcOffset':-0x1a4,'offsetStr':'-07:00','countries':['US']},'America/Phoenix':{'name':_0x281927('0xab'),'utcOffset':-0x1a4,'offsetStr':_0x281927('0xba'),'countries':['US']},'America/Los_Angeles':{'name':_0x281927('0xb'),'utcOffset':-0x1e0,'offsetStr':'-08:00','countries':['US']},'America/Metlakatla':{'name':'America/Metlakatla','utcOffset':-0x1e0,'offsetStr':_0x281927('0xb8'),'countries':['US']},'America/Anchorage':{'name':_0x281927('0x21'),'utcOffset':-0x21c,'offsetStr':_0x281927('0x1a'),'countries':['US']},'America/Juneau':{'name':_0x281927('0x4d'),'utcOffset':-0x21c,'offsetStr':_0x281927('0x1a'),'countries':['US']},'America/Sitka':{'name':'America/Sitka','utcOffset':-0x21c,'offsetStr':_0x281927('0x1a'),'countries':['US']},'America/Yakutat':{'name':_0x281927('0x122'),'utcOffset':-0x21c,'offsetStr':_0x281927('0x1a'),'countries':['US']},'America/Nome':{'name':_0x281927('0x9c'),'utcOffset':-0x21c,'offsetStr':_0x281927('0x1a'),'countries':['US']},'America/Adak':{'name':'America/Adak','utcOffset':-0x258,'offsetStr':_0x281927('0x11a'),'countries':['US']},'Pacific/Honolulu':{'name':_0x281927('0xc1'),'utcOffset':-0x258,'offsetStr':_0x281927('0x11a'),'countries':['US','UM']},'America/Montevideo':{'name':_0x281927('0xb7'),'utcOffset':-0xb4,'offsetStr':_0x281927('0x4e'),'countries':['UY']},'Asia/Samarkand':{'name':'Asia/Samarkand','utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},'Asia/Tashkent':{'name':_0x281927('0x7f'),'utcOffset':0x12c,'offsetStr':'+05:00','countries':['UZ']},'America/Caracas':{'name':'America/Caracas','utcOffset':-0x10e,'offsetStr':_0x281927('0x81'),'countries':['VE']},'Asia/Ho_Chi_Minh':{'name':_0x281927('0xc2'),'utcOffset':0x1a4,'offsetStr':_0x281927('0x65'),'countries':['VN']},'Pacific/Efate':{'name':_0x281927('0xa9'),'utcOffset':0x294,'offsetStr':_0x281927('0xc8'),'countries':['VU']},'Pacific/Wallis':{'name':_0x281927('0x27'),'utcOffset':0x2d0,'offsetStr':_0x281927('0xd6'),'countries':['WF']},'Pacific/Apia':{'name':_0x281927('0xaf'),'utcOffset':0x348,'offsetStr':_0x281927('0x16'),'countries':['WS']},'Africa/Johannesburg':{'name':'Africa/Johannesburg','utcOffset':0x78,'offsetStr':_0x281927('0x25'),'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 80714f4..5766e9c 100644 --- a/server/config/environment/test.js +++ b/server/config/environment/test.js @@ -1 +1 @@ -const a841_0x28a2=['asteriskHost','sessionSecret','redisHost','/api/auth/google/callback','../config.service','redisPort','utf8_general_ci','determine','seedDb','jstz','dbHost','googleSecret','utf8','./shared','mysqlPassword','dbPort','mysqlDatabase','mysql','offsetStr','recordingSecret','exports','getConfigService','utf8mb4','rpcPort','domain','mysqlUser','agiPort','timezones','googleId'];(function(_0xf15392,_0x28a2fb){const _0x91a737=function(_0x7efed9){while(--_0x7efed9){_0xf15392['push'](_0xf15392['shift']());}};_0x91a737(++_0x28a2fb);}(a841_0x28a2,0x10c));const a841_0x91a7=function(_0xf15392,_0x28a2fb){_0xf15392=_0xf15392-0x0;let _0x91a737=a841_0x28a2[_0xf15392];return _0x91a737;};const _0x2e5c64=a841_0x91a7;'use strict';const shared=require(_0x2e5c64('0x6')),jstz=require(_0x2e5c64('0x2')),timezone=jstz[_0x2e5c64('0x0')](),timezoneOffset=shared[_0x2e5c64('0x14')][timezone['name']()][_0x2e5c64('0xb')],cs=require(_0x2e5c64('0x1a'))[_0x2e5c64('0xe')]();module[_0x2e5c64('0xd')]={'sequelize':{'database':cs[_0x2e5c64('0x9')],'username':cs['mysqlUser'],'password':cs['mysqlPassword'],'options':{'host':cs[_0x2e5c64('0x3')],'port':cs[_0x2e5c64('0x8')],'dialect':_0x2e5c64('0xa'),'dialectOptions':{'charset':_0x2e5c64('0xf')},'timezone':timezoneOffset,'define':{'charset':_0x2e5c64('0x5'),'collate':_0x2e5c64('0x1c')}}},'sequelizeHistory':{'database':cs['mysqlDatabase'],'username':cs[_0x2e5c64('0x12')],'password':cs[_0x2e5c64('0x7')],'options':{'host':cs['dbHost'],'port':cs[_0x2e5c64('0x8')],'dialect':_0x2e5c64('0xa'),'dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x2e5c64('0x5'),'collate':_0x2e5c64('0x1c')}}},'asterisk':{'ip':cs[_0x2e5c64('0x16')],'port':cs['asteriskPort'],'username':cs['asteriskUsername'],'password':cs['asteriskPassword']},'redis':{'host':cs[_0x2e5c64('0x18')],'port':cs[_0x2e5c64('0x1b')]},'rpc':{'port':cs[_0x2e5c64('0x10')],'ip':cs['rpcIp']},'agi':{'port':cs[_0x2e5c64('0x13')],'ip':cs['agiIp']},'seedDB':cs[_0x2e5c64('0x1')],'google':{'clientID':cs[_0x2e5c64('0x15')],'clientSecret':cs[_0x2e5c64('0x4')],'callbackURL':cs[_0x2e5c64('0x11')]+_0x2e5c64('0x19')},'secrets':{'session':cs[_0x2e5c64('0x17')],'recording':cs[_0x2e5c64('0xc')]},'xdr':{'disabled':![]}}; \ No newline at end of file +const a841_0x5c2d=['rpcIp','asteriskPort','seedDb','dbPort','offsetStr','mysqlDatabase','./shared','asteriskHost','redisPort','getConfigService','rpcPort','utf8_general_ci','asteriskPassword','sessionSecret','jstz','agiIp','timezones','mysqlUser','mysql','name','googleId','/api/auth/google/callback','redisHost','googleSecret','mysqlPassword','dbHost','determine','utf8'];(function(_0x1de6a1,_0x5c2d09){const _0x3e0b2c=function(_0xdd3d62){while(--_0xdd3d62){_0x1de6a1['push'](_0x1de6a1['shift']());}};_0x3e0b2c(++_0x5c2d09);}(a841_0x5c2d,0xe9));const a841_0x3e0b=function(_0x1de6a1,_0x5c2d09){_0x1de6a1=_0x1de6a1-0x0;let _0x3e0b2c=a841_0x5c2d[_0x1de6a1];return _0x3e0b2c;};const _0x76daf7=a841_0x3e0b;'use strict';const shared=require(_0x76daf7('0x19')),jstz=require(_0x76daf7('0x5')),timezone=jstz[_0x76daf7('0x11')](),timezoneOffset=shared[_0x76daf7('0x7')][timezone[_0x76daf7('0xa')]()][_0x76daf7('0x17')],cs=require('../config.service')[_0x76daf7('0x0')]();module['exports']={'sequelize':{'database':cs[_0x76daf7('0x18')],'username':cs[_0x76daf7('0x8')],'password':cs[_0x76daf7('0xf')],'options':{'host':cs['dbHost'],'port':cs['dbPort'],'dialect':_0x76daf7('0x9'),'dialectOptions':{'charset':'utf8mb4'},'timezone':timezoneOffset,'define':{'charset':'utf8','collate':_0x76daf7('0x2')}}},'sequelizeHistory':{'database':cs['mysqlDatabase'],'username':cs['mysqlUser'],'password':cs[_0x76daf7('0xf')],'options':{'host':cs[_0x76daf7('0x10')],'port':cs[_0x76daf7('0x16')],'dialect':_0x76daf7('0x9'),'dialectOptions':{'charset':'utf8mb4'},'logging':![],'timezone':timezoneOffset,'define':{'charset':_0x76daf7('0x12'),'collate':'utf8_general_ci'}}},'asterisk':{'ip':cs[_0x76daf7('0x1a')],'port':cs[_0x76daf7('0x14')],'username':cs['asteriskUsername'],'password':cs[_0x76daf7('0x3')]},'redis':{'host':cs[_0x76daf7('0xd')],'port':cs[_0x76daf7('0x1b')]},'rpc':{'port':cs[_0x76daf7('0x1')],'ip':cs[_0x76daf7('0x13')]},'agi':{'port':cs['agiPort'],'ip':cs[_0x76daf7('0x6')]},'seedDB':cs[_0x76daf7('0x15')],'google':{'clientID':cs[_0x76daf7('0xb')],'clientSecret':cs[_0x76daf7('0xe')],'callbackURL':cs['domain']+_0x76daf7('0xc')},'secrets':{'session':cs[_0x76daf7('0x4')],'recording':cs['recordingSecret']},'xdr':{'disabled':![]}}; \ No newline at end of file diff --git a/server/config/express.js b/server/config/express.js index 9cc05c8..e19cefa 100644 --- a/server/config/express.js +++ b/server/config/express.js @@ -1 +1 @@ -const a842_0x3824=['appPath','info','json','path','errorhandler','split','static','json\x20replacer','html','set','use','./environment','engine','GET,HEAD,PUT,PATCH,POST,DELETE','isProduction','initialize','cookie-parser','get','urlencoded','view\x20engine','toISOString','renderFile','root','50mb','default','join','passport','cors','ejs','./config.service'];(function(_0x310ae8,_0x3824c1){const _0x160ab0=function(_0x40ff32){while(--_0x40ff32){_0x310ae8['push'](_0x310ae8['shift']());}};_0x160ab0(++_0x3824c1);}(a842_0x3824,0x187));const a842_0x160a=function(_0x310ae8,_0x3824c1){_0x310ae8=_0x310ae8-0x0;let _0x160ab0=a842_0x3824[_0x310ae8];return _0x160ab0;};const _0x4362a0=a842_0x160a;'use strict';const express=require('express'),bodyParser=require('body-parser'),methodOverride=require('method-override'),cookieParser=require(_0x4362a0('0xf')),errorHandler=require(_0x4362a0('0x3')),path=require(_0x4362a0('0x2')),passport=require(_0x4362a0('0x19')),cors=require(_0x4362a0('0x1a')),config=require(_0x4362a0('0xa')),{getConfigService}=require(_0x4362a0('0x1c')),logger=require('./logger')('app');exports[_0x4362a0('0x17')]=function(_0x40ff32){const _0x3f5031=_0x4362a0,_0x557d83=getConfigService();_0x40ff32['set'](_0x3f5031('0x1d'),path[_0x3f5031('0x18')](config[_0x3f5031('0x15')],'..','public')),logger[_0x3f5031('0x0')]('Public\x20path\x20set\x20to\x20'+_0x40ff32[_0x3f5031('0x10')](_0x3f5031('0x1d'))),!_0x557d83[_0x3f5031('0xd')]&&_0x40ff32[_0x3f5031('0x9')](errorHandler()),_0x40ff32['set'](_0x3f5031('0x6'),function(_0x30c750,_0x29a919){const _0xfb06fb=_0x3f5031;return this[_0x30c750]instanceof Date&&(_0x29a919=this[_0x30c750][_0xfb06fb('0x13')]()[_0xfb06fb('0x4')]('.')[0x0]+'Z'),_0x29a919;}),_0x40ff32[_0x3f5031('0x9')](express[_0x3f5031('0x5')](_0x40ff32[_0x3f5031('0x10')](_0x3f5031('0x1d')))),_0x40ff32[_0x3f5031('0x8')]('views',config[_0x3f5031('0x15')]+'/server/views'),_0x40ff32[_0x3f5031('0xb')](_0x3f5031('0x7'),require(_0x3f5031('0x1b'))[_0x3f5031('0x14')]),_0x40ff32[_0x3f5031('0x8')](_0x3f5031('0x12'),'html'),_0x40ff32[_0x3f5031('0x9')](bodyParser[_0x3f5031('0x11')]({'limit':_0x3f5031('0x16'),'extended':!![]})),_0x40ff32[_0x3f5031('0x9')](bodyParser[_0x3f5031('0x1')]({'limit':'50mb'})),_0x40ff32['use'](cors({'origin':!_0x557d83[_0x3f5031('0xd')],'methods':_0x557d83[_0x3f5031('0xd')]?_0x3f5031('0xc'):'OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','preflightContinue':!![]})),_0x40ff32[_0x3f5031('0x9')](methodOverride()),_0x40ff32[_0x3f5031('0x9')](cookieParser()),_0x40ff32[_0x3f5031('0x9')](passport[_0x3f5031('0xe')]());}; \ No newline at end of file +const a842_0x4ca2=['json\x20replacer','use','default','50mb','views','set','initialize','join','Public\x20path\x20set\x20to\x20','./config.service','appPath','urlencoded','/server/views','method-override','renderFile','engine','isProduction','static','passport','html','get','errorhandler','cookie-parser','path','./environment','public','app','toISOString'];(function(_0x79848b,_0x4ca2c7){const _0x4063fb=function(_0x5e5fbe){while(--_0x5e5fbe){_0x79848b['push'](_0x79848b['shift']());}};_0x4063fb(++_0x4ca2c7);}(a842_0x4ca2,0xf7));const a842_0x4063=function(_0x79848b,_0x4ca2c7){_0x79848b=_0x79848b-0x0;let _0x4063fb=a842_0x4ca2[_0x79848b];return _0x4063fb;};const _0x22a5fa=a842_0x4063;'use strict';const express=require('express'),bodyParser=require('body-parser'),methodOverride=require(_0x22a5fa('0x12')),cookieParser=require(_0x22a5fa('0x1b')),errorHandler=require(_0x22a5fa('0x1a')),path=require(_0x22a5fa('0x0')),passport=require(_0x22a5fa('0x17')),cors=require('cors'),config=require(_0x22a5fa('0x1')),{getConfigService}=require(_0x22a5fa('0xe')),logger=require('./logger')(_0x22a5fa('0x3'));exports[_0x22a5fa('0x7')]=function(_0x5e5fbe){const _0x1c1cc0=_0x22a5fa,_0x56454b=getConfigService();_0x5e5fbe['set'](_0x1c1cc0('0xf'),path[_0x1c1cc0('0xc')](config['root'],'..',_0x1c1cc0('0x2'))),logger['info'](_0x1c1cc0('0xd')+_0x5e5fbe[_0x1c1cc0('0x19')](_0x1c1cc0('0xf'))),!_0x56454b[_0x1c1cc0('0x15')]&&_0x5e5fbe[_0x1c1cc0('0x6')](errorHandler()),_0x5e5fbe[_0x1c1cc0('0xa')](_0x1c1cc0('0x5'),function(_0x348cb5,_0x55d7fc){const _0x3caef4=_0x1c1cc0;return this[_0x348cb5]instanceof Date&&(_0x55d7fc=this[_0x348cb5][_0x3caef4('0x4')]()['split']('.')[0x0]+'Z'),_0x55d7fc;}),_0x5e5fbe[_0x1c1cc0('0x6')](express[_0x1c1cc0('0x16')](_0x5e5fbe[_0x1c1cc0('0x19')]('appPath'))),_0x5e5fbe[_0x1c1cc0('0xa')](_0x1c1cc0('0x9'),config['root']+_0x1c1cc0('0x11')),_0x5e5fbe[_0x1c1cc0('0x14')](_0x1c1cc0('0x18'),require('ejs')[_0x1c1cc0('0x13')]),_0x5e5fbe[_0x1c1cc0('0xa')]('view\x20engine',_0x1c1cc0('0x18')),_0x5e5fbe[_0x1c1cc0('0x6')](bodyParser[_0x1c1cc0('0x10')]({'limit':_0x1c1cc0('0x8'),'extended':!![]})),_0x5e5fbe[_0x1c1cc0('0x6')](bodyParser['json']({'limit':'50mb'})),_0x5e5fbe[_0x1c1cc0('0x6')](cors({'origin':!_0x56454b[_0x1c1cc0('0x15')],'methods':_0x56454b[_0x1c1cc0('0x15')]?'GET,HEAD,PUT,PATCH,POST,DELETE':'OPTIONS,GET,HEAD,PUT,PATCH,POST,DELETE','preflightContinue':!![]})),_0x5e5fbe[_0x1c1cc0('0x6')](methodOverride()),_0x5e5fbe['use'](cookieParser()),_0x5e5fbe[_0x1c1cc0('0x6')](passport[_0x1c1cc0('0xb')]());}; \ No newline at end of file diff --git a/server/config/license/hardware.js b/server/config/license/hardware.js index 181c2b7..46537c2 100644 --- a/server/config/license/hardware.js +++ b/server/config/license/hardware.js @@ -1 +1 @@ -const a843_0x212b=['keys','macAddress','md5','model','ipAddress','test','digest','mac','networkInterfaces','win32','devLicense','family','concat','internal','join','orderBy','head','child_process','length','map','filter','dmidecode\x20--string\x20system-uuid','isProduction','IPv4','substring','createHash','00:00:00:00:00:00','cpus','utf8','exports','lodash','platform','hostname','127.0.0.1','update','hex'];(function(_0xc06950,_0x212b32){const _0x379774=function(_0x30ea36){while(--_0x30ea36){_0xc06950['push'](_0xc06950['shift']());}};_0x379774(++_0x212b32);}(a843_0x212b,0x191));const a843_0x3797=function(_0xc06950,_0x212b32){_0xc06950=_0xc06950-0x0;let _0x379774=a843_0x212b[_0xc06950];return _0x379774;};const _0xfbf8de=a843_0x3797;'use strict';const _=require(_0xfbf8de('0x19')),os=require('os'),crypto=require('crypto'),{getConfigService}=require('../config.service'),exec=require(_0xfbf8de('0xc'))['execSync'];function getInterfaces(){const _0x1e336d=_0xfbf8de;let _0x30ea36=[];const _0x3b21bb=os[_0x1e336d('0x3')](),_0x65da28=_[_0x1e336d('0xa')](_[_0x1e336d('0x1f')](_0x3b21bb));for(let _0x4a04ac=0x0;_0x4a04ac<_0x65da28[_0x1e336d('0xd')];_0x4a04ac++){const _0x1b64e4=_0x3b21bb[_0x65da28[_0x4a04ac]][_0x1e336d('0xf')](function(_0x35d3fa){const _0x54c457=_0x1e336d;return _0x35d3fa[_0x54c457('0x6')]===_0x54c457('0x12')&&_0x35d3fa[_0x54c457('0x8')]===![];});_0x30ea36=_0x30ea36[_0x1e336d('0x7')](_0x1b64e4);}return _0x30ea36;}function getFirstInterface(){const _0x39c948=_0xfbf8de,_0x36b6fd=_[_0x39c948('0xb')](getInterfaces());return{'macAddress':_0x36b6fd&&_0x36b6fd[_0x39c948('0x2')]?_0x36b6fd[_0x39c948('0x2')]:_0x39c948('0x15'),'ipAddress':_0x36b6fd&&_0x36b6fd['address']?_0x36b6fd['address']:_0x39c948('0x1c')};}function getCPUhash(){const _0x2eb36d=_0xfbf8de,_0x4767b0=_[_0x2eb36d('0xa')](os[_0x2eb36d('0x16')]()[_0x2eb36d('0xe')](function(_0x251bc2){const _0x412cb5=_0x2eb36d;return _0x251bc2[_0x412cb5('0x22')];}))[_0x2eb36d('0x9')](':');return crypto[_0x2eb36d('0x14')](_0x2eb36d('0x21'))[_0x2eb36d('0x1d')](_0x4767b0)[_0x2eb36d('0x1')]('hex');}function getUuid(){const _0x375088=_0xfbf8de,_0x9237c8=getConfigService(),_0x36b456=os[_0x375088('0x1a')](),_0x26550a=/[0-9a-f-]{36}/;if(!_0x9237c8[_0x375088('0x11')]&&_0x26550a[_0x375088('0x0')](_0x9237c8[_0x375088('0x5')]))return _0x9237c8[_0x375088('0x5')];else{if(_0x36b456===_0x375088('0x4'))return exec(_0x375088('0x10'),{'encoding':_0x375088('0x17')})['replace']('\x0d\x0a','');else{const _0x185a87=getFirstInterface(),_0x5d8c2f=getCPUhash(),_0x50b89d=_0x5d8c2f+'|'+os[_0x375088('0x1b')]()+'|'+_0x185a87[_0x375088('0x20')]+'|'+_0x185a87[_0x375088('0x23')],_0xf521e5=crypto['createHash'](_0x375088('0x21'))[_0x375088('0x1d')](_0x50b89d)[_0x375088('0x1')](_0x375088('0x1e'));return _0xf521e5['substring'](0x0,0x8)+'-'+_0xf521e5[_0x375088('0x13')](0x8,0xc)+'-'+_0xf521e5[_0x375088('0x13')](0xc,0x10)+'-'+_0xf521e5[_0x375088('0x13')](0x10,0x14)+'-'+_0xf521e5[_0x375088('0x13')](0x14);}}}module[_0xfbf8de('0x18')]={'getUuid':getUuid,'getFirstInterface':getFirstInterface,'getCPUhash':getCPUhash}; \ No newline at end of file +const a843_0x2ed7=['lodash','hex','mac','replace','isProduction','127.0.0.1','orderBy','win32','crypto','internal','keys','md5','macAddress','cpus','utf8','IPv4','filter','family','platform','createHash','length','concat','00:00:00:00:00:00','ipAddress','networkInterfaces','digest','address','../config.service','exports','substring','devLicense','head','update','dmidecode\x20--string\x20system-uuid'];(function(_0x14e1e8,_0x2ed720){const _0x45aa92=function(_0x2b453c){while(--_0x2b453c){_0x14e1e8['push'](_0x14e1e8['shift']());}};_0x45aa92(++_0x2ed720);}(a843_0x2ed7,0xe2));const a843_0x45aa=function(_0x14e1e8,_0x2ed720){_0x14e1e8=_0x14e1e8-0x0;let _0x45aa92=a843_0x2ed7[_0x14e1e8];return _0x45aa92;};const _0x24a1d6=a843_0x45aa;'use strict';const _=require(_0x24a1d6('0xc')),os=require('os'),crypto=require(_0x24a1d6('0x14')),{getConfigService}=require(_0x24a1d6('0x5')),exec=require('child_process')['execSync'];function getInterfaces(){const _0x2055bd=_0x24a1d6;let _0x2b453c=[];const _0x492186=os[_0x2055bd('0x2')](),_0x13c612=_[_0x2055bd('0x12')](_[_0x2055bd('0x16')](_0x492186));for(let _0x1bb7df=0x0;_0x1bb7df<_0x13c612[_0x2055bd('0x20')];_0x1bb7df++){const _0xd57fd5=_0x492186[_0x13c612[_0x1bb7df]][_0x2055bd('0x1c')](function(_0x9bc476){const _0x6826c3=_0x2055bd;return _0x9bc476[_0x6826c3('0x1d')]===_0x6826c3('0x1b')&&_0x9bc476[_0x6826c3('0x15')]===![];});_0x2b453c=_0x2b453c[_0x2055bd('0x21')](_0xd57fd5);}return _0x2b453c;}function getFirstInterface(){const _0x42bbce=_0x24a1d6,_0x84dea9=_[_0x42bbce('0x9')](getInterfaces());return{'macAddress':_0x84dea9&&_0x84dea9[_0x42bbce('0xe')]?_0x84dea9[_0x42bbce('0xe')]:_0x42bbce('0x0'),'ipAddress':_0x84dea9&&_0x84dea9[_0x42bbce('0x4')]?_0x84dea9[_0x42bbce('0x4')]:_0x42bbce('0x11')};}function getCPUhash(){const _0x5d28f3=_0x24a1d6,_0x4287f9=_[_0x5d28f3('0x12')](os[_0x5d28f3('0x19')]()['map'](function(_0x16271f){return _0x16271f['model'];}))['join'](':');return crypto[_0x5d28f3('0x1f')](_0x5d28f3('0x17'))[_0x5d28f3('0xa')](_0x4287f9)['digest'](_0x5d28f3('0xd'));}function getUuid(){const _0x4ce668=_0x24a1d6,_0x28d1ab=getConfigService(),_0xaeef40=os[_0x4ce668('0x1e')](),_0x35f4e7=/[0-9a-f-]{36}/;if(!_0x28d1ab[_0x4ce668('0x10')]&&_0x35f4e7['test'](_0x28d1ab[_0x4ce668('0x8')]))return _0x28d1ab[_0x4ce668('0x8')];else{if(_0xaeef40===_0x4ce668('0x13'))return exec(_0x4ce668('0xb'),{'encoding':_0x4ce668('0x1a')})[_0x4ce668('0xf')]('\x0d\x0a','');else{const _0x33d1b9=getFirstInterface(),_0x5eb963=getCPUhash(),_0x4c8d2e=_0x5eb963+'|'+os['hostname']()+'|'+_0x33d1b9[_0x4ce668('0x18')]+'|'+_0x33d1b9[_0x4ce668('0x1')],_0x348980=crypto[_0x4ce668('0x1f')](_0x4ce668('0x17'))[_0x4ce668('0xa')](_0x4c8d2e)[_0x4ce668('0x3')](_0x4ce668('0xd'));return _0x348980[_0x4ce668('0x7')](0x0,0x8)+'-'+_0x348980[_0x4ce668('0x7')](0x8,0xc)+'-'+_0x348980['substring'](0xc,0x10)+'-'+_0x348980[_0x4ce668('0x7')](0x10,0x14)+'-'+_0x348980[_0x4ce668('0x7')](0x14);}}}module[_0x24a1d6('0x6')]={'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 783844a..8c38ccb 100644 --- a/server/config/license/index.js +++ b/server/config/license/index.js @@ -1 +1 @@ -const a844_0x4d4f=['message','diff','toUpperCase','reject','../../../package.json','update','data2','DEMO\x20START\x20AT\x20%s','THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED','../../mysqldb','fullname','../../components/encryptor','days','|machineUuid|','||FIELD||VALUE||\x0a','active','catch','Motion\x20License\x20Alert','openIssue','data1','THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED','YYYY-MM-DD\x20HH:mm','findOrCreate','info','Alert','%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s','Changed','then','get','No\x20UUID\x20found','|uuid|','error','email','format','https://www.xcallymotion.com','../../api/jira/jira.controller','encryptString','getUuid','./hardware','SERVICE\x20LICENSE\x20STARTED\x20%s','%s/api/servers/%s/check?version=%s&oldtoken=%s','default','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','license','|reason|','../logger'];(function(_0xe64c8f,_0x4d4f14){const _0x59ef52=function(_0x2c4243){while(--_0x2c4243){_0xe64c8f['push'](_0xe64c8f['shift']());}};_0x59ef52(++_0x4d4f14);}(a844_0x4d4f,0x1c0));const a844_0x59ef=function(_0xe64c8f,_0x4d4f14){_0xe64c8f=_0xe64c8f-0x0;let _0x59ef52=a844_0x4d4f[_0xe64c8f];return _0x59ef52;};const _0x42eb0e=a844_0x59ef;'use strict';const {version}=require(_0x42eb0e('0x10')),util=require('util'),encryptor=require(_0x42eb0e('0x17')),moment=require('moment'),rp=require('request-promise-native'),db=require(_0x42eb0e('0x15'))['db'],hardware=require(_0x42eb0e('0x4')),logger=require(_0x42eb0e('0xb'))(_0x42eb0e('0x9')),jira=require(_0x42eb0e('0x1')),HOST=_0x42eb0e('0x0'),TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x2c4243){return new Promise(function(_0x581876,_0x5bc703){const _0x3bd500=a844_0x59ef;let _0x518770=util[_0x3bd500('0x2d')]('%s/api/servers/%s/check?version=%s',HOST,_0x2c4243,version);oldToken&&(_0x518770=util[_0x3bd500('0x2d')](_0x3bd500('0x6'),HOST,_0x2c4243,version,oldToken));const _0x248182={'uri':_0x518770,'method':'GET','timeout':0xea60,'json':!![]};return rp(_0x248182)['then'](function(_0x482501){_0x581876(_0x482501);})['catch'](function(_0x2cc5d7){_0x5bc703(_0x2cc5d7);});});}function sendJiraAlert(_0x2ada0d,_0x6dd8f,_0x12384b){const _0x2e9399=_0x42eb0e;let _0x565bf0=_0x2e9399('0x1a');return db['User']['findOne']({'where':{'role':'admin'},'attributes':[_0x2e9399('0x16'),_0x2e9399('0x2c')],'raw':!![]})['then'](function(_0x5916c5){const _0x160d2f=_0x2e9399;return ADMIN=_0x5916c5,_0x565bf0+=_0x160d2f('0xa')+_0x12384b+'|\x0a',_0x565bf0+=_0x160d2f('0x2a')+_0x2ada0d+'|\x0a',_0x565bf0+=_0x160d2f('0x19')+_0x6dd8f+'|\x0a',_0x565bf0+='|name|'+ADMIN[_0x160d2f('0x16')]+'|\x0a',_0x565bf0+='|email|'+ADMIN[_0x160d2f('0x2c')]+'|\x0a',_0x565bf0;})[_0x2e9399('0x27')](function(_0x416933){const _0x26d35f=_0x2e9399,_0x27ec22=hardware['getFirstInterface']()['ipAddress'];return jira[_0x26d35f('0x1e')]({'key':'MOTLICENSE','summary':_0x26d35f('0x1d'),'description':_0x416933,'issuetype':_0x26d35f('0x24'),'oldToken':_0x2ada0d,'newToken':_0x6dd8f,'email':ADMIN['email'],'name':ADMIN[_0x26d35f('0x16')],'reason':GRAY_PERIOD_REASON,'ip':_0x27ec22});});}function manageLicense(_0x504073,_0x52c9fa){const _0x3e62d5=_0x42eb0e,_0x49ae80=_0x52c9fa[_0x3e62d5('0x28')]({'plain':!![]});httpRequest(_0x504073)[_0x3e62d5('0x27')](function(_0xb28374){const _0x34f1ec=_0x3e62d5;oldToken&&(oldToken=undefined);if(_0xb28374[_0x34f1ec('0x1b')]){(!_0x49ae80[_0x34f1ec('0x9')]&&_0x49ae80[_0x34f1ec('0x9')]!=_0xb28374['license']||_0x49ae80['license']&&_0x49ae80['data2'])&&logger[_0x34f1ec('0x23')](_0x34f1ec('0x14'));_0x49ae80[_0x34f1ec('0x9')]&&!_0x49ae80['data2']&&_0x49ae80[_0x34f1ec('0x9')]!=_0xb28374['license']&&logger[_0x34f1ec('0x23')](_0x34f1ec('0x20'));if(_0x49ae80[_0x34f1ec('0x9')]&&!_0x49ae80[_0x34f1ec('0x12')]&&_0x49ae80['license']==_0xb28374[_0x34f1ec('0x9')])return _0x52c9fa;return _0x52c9fa['update']({'data1':_0x504073,'data2':null,'license':_0xb28374[_0x34f1ec('0x9')]});}else{if(_0xb28374[_0x34f1ec('0x9')]||_0x49ae80[_0x34f1ec('0x9')]){if(!_0x49ae80['data2'])return _0x49ae80['data1']==_0x504073?(GRAY_PERIOD_REASON='Disabled',logger[_0x34f1ec('0x23')]('THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED')):(GRAY_PERIOD_REASON=_0x34f1ec('0x26'),oldToken=_0x49ae80[_0x34f1ec('0x1f')],logger[_0x34f1ec('0x23')]('NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s',_0x49ae80[_0x34f1ec('0x1f')],_0x504073)),sendJiraAlert(_0x49ae80[_0x34f1ec('0x1f')],_0xb28374['uuid'],GRAY_PERIOD_REASON),logger[_0x34f1ec('0x23')](_0x34f1ec('0x25'),GRAY_PERIOD_REASON[_0x34f1ec('0xe')](),moment()[_0x34f1ec('0x2d')](_0x34f1ec('0x21'))),_0x52c9fa[_0x34f1ec('0x11')]({'data2':encryptor[_0x34f1ec('0x2')](moment()[_0x34f1ec('0x2d')](_0x34f1ec('0x21')))});else{if(moment()[_0x34f1ec('0xd')](encryptor['decryptString'](_0x49ae80[_0x34f1ec('0x12')]),_0x34f1ec('0x18'))>DAYS)return logger['info'](_0x34f1ec('0x13'),moment()[_0x34f1ec('0x2d')](_0x34f1ec('0x21'))),_0x52c9fa[_0x34f1ec('0x11')]({'data1':_0x504073,'data2':null,'license':null});}}else{if(_0x49ae80[_0x34f1ec('0x1f')]!=_0x504073)return logger[_0x34f1ec('0x23')](_0x34f1ec('0x8'),_0x49ae80[_0x34f1ec('0x1f')],_0x504073),_0x52c9fa[_0x34f1ec('0x11')]({'data1':_0x504073,'data2':null,'license':null});}}return _0x52c9fa;})[_0x3e62d5('0x27')](function(_0x2fb8aa){_0x52c9fa=_0x2fb8aa;})[_0x3e62d5('0x1c')](function(_0x462d1f){logger['error'](_0x462d1f['message']);})['finally'](function(){setTimeout(function(){const _0x24d3a6=a844_0x59ef;manageLicense(hardware[_0x24d3a6('0x3')](),_0x52c9fa);},TIME);});}function defaultLicense(){const _0x215519=_0x42eb0e,_0x20d103=hardware[_0x215519('0x3')]();return _0x20d103?db['License'][_0x215519('0x22')]({'where':{'id':0x1},'defaults':{'data1':_0x20d103}})[_0x215519('0x27')](function([_0x17525c]){const _0x5f2e3c=_0x215519;logger[_0x5f2e3c('0x23')](_0x5f2e3c('0x5'),_0x20d103),manageLicense(_0x20d103,_0x17525c);})[_0x215519('0x1c')](function(_0x2513bb){const _0x4c1d67=_0x215519;logger[_0x4c1d67('0x2b')](_0x2513bb[_0x4c1d67('0xc')]);throw _0x2513bb;}):Promise[_0x215519('0xf')](new Error(_0x215519('0x29')));}exports[_0x42eb0e('0x7')]=defaultLicense; \ No newline at end of file +const a844_0x4e3d=['get','getUuid','|name|','%s/api/servers/%s/check?version=%s&oldtoken=%s','diff','openIssue','then','finally','toUpperCase','Changed','|email|','../../../package.json','email','error','Motion\x20License\x20Alert','uuid','decryptString','data2','THE\x20LICENSE\x20HAS\x20BEEN\x20DISABLED','YYYY-MM-DD\x20HH:mm','Alert','update','util','License','default','../../mysqldb','encryptString','Disabled','No\x20UUID\x20found','https://www.xcallymotion.com','days','format','||FIELD||VALUE||\x0a','request-promise-native','./hardware','info','GET','data1','NEW\x20UUID\x20DETECTED:\x20FROM\x20%s\x20TO\x20%s','active','license','|machineUuid|','%s\x20-\x20GRAY\x20PERIOD\x20STARTED\x20AT\x20%s','catch','DEMO\x20START\x20AT\x20%s','findOrCreate','ipAddress','findOne','fullname','THE\x20LICENSE\x20HAS\x20BEEN\x20UPDATED','message'];(function(_0x3b3e4a,_0x4e3d3f){const _0x2d214e=function(_0x10d771){while(--_0x10d771){_0x3b3e4a['push'](_0x3b3e4a['shift']());}};_0x2d214e(++_0x4e3d3f);}(a844_0x4e3d,0x19a));const a844_0x2d21=function(_0x3b3e4a,_0x4e3d3f){_0x3b3e4a=_0x3b3e4a-0x0;let _0x2d214e=a844_0x4e3d[_0x3b3e4a];return _0x2d214e;};const _0xc09b76=a844_0x2d21;'use strict';const {version}=require(_0xc09b76('0x9')),util=require(_0xc09b76('0x14')),encryptor=require('../../components/encryptor'),moment=require('moment'),rp=require(_0xc09b76('0x1f')),db=require(_0xc09b76('0x17'))['db'],hardware=require(_0xc09b76('0x20')),logger=require('../logger')(_0xc09b76('0x26')),jira=require('../../api/jira/jira.controller'),HOST=_0xc09b76('0x1b'),TIME=0x3c*0x1388,DAYS=0x7;let GRAY_PERIOD_REASON,ADMIN,oldToken;function httpRequest(_0x10d771){return new Promise(function(_0x126bed,_0x410697){const _0x1a5322=a844_0x2d21;let _0x2124f3=util[_0x1a5322('0x1d')]('%s/api/servers/%s/check?version=%s',HOST,_0x10d771,version);oldToken&&(_0x2124f3=util[_0x1a5322('0x1d')](_0x1a5322('0x1'),HOST,_0x10d771,version,oldToken));const _0x4c20bc={'uri':_0x2124f3,'method':_0x1a5322('0x22'),'timeout':0xea60,'json':!![]};return rp(_0x4c20bc)['then'](function(_0x2a2718){_0x126bed(_0x2a2718);})[_0x1a5322('0x29')](function(_0x2bc04a){_0x410697(_0x2bc04a);});});}function sendJiraAlert(_0x56f290,_0x42bc8d,_0x54a40a){const _0x4e7129=_0xc09b76;let _0x274eb0=_0x4e7129('0x1e');return db['User'][_0x4e7129('0x2d')]({'where':{'role':'admin'},'attributes':[_0x4e7129('0x2e'),_0x4e7129('0xa')],'raw':!![]})[_0x4e7129('0x4')](function(_0x3ec4d6){const _0x57b92c=_0x4e7129;return ADMIN=_0x3ec4d6,_0x274eb0+='|reason|'+_0x54a40a+'|\x0a',_0x274eb0+='|uuid|'+_0x56f290+'|\x0a',_0x274eb0+=_0x57b92c('0x27')+_0x42bc8d+'|\x0a',_0x274eb0+=_0x57b92c('0x0')+ADMIN[_0x57b92c('0x2e')]+'|\x0a',_0x274eb0+=_0x57b92c('0x8')+ADMIN[_0x57b92c('0xa')]+'|\x0a',_0x274eb0;})['then'](function(_0x334fc1){const _0x4a7f29=_0x4e7129,_0x34a4fb=hardware['getFirstInterface']()[_0x4a7f29('0x2c')];return jira[_0x4a7f29('0x3')]({'key':'MOTLICENSE','summary':_0x4a7f29('0xc'),'description':_0x334fc1,'issuetype':_0x4a7f29('0x12'),'oldToken':_0x56f290,'newToken':_0x42bc8d,'email':ADMIN[_0x4a7f29('0xa')],'name':ADMIN[_0x4a7f29('0x2e')],'reason':GRAY_PERIOD_REASON,'ip':_0x34a4fb});});}function manageLicense(_0x50fd2e,_0x5dfe26){const _0x145607=_0xc09b76,_0x5e0800=_0x5dfe26[_0x145607('0x31')]({'plain':!![]});httpRequest(_0x50fd2e)[_0x145607('0x4')](function(_0x225439){const _0x532360=_0x145607;oldToken&&(oldToken=undefined);if(_0x225439[_0x532360('0x25')]){(!_0x5e0800[_0x532360('0x26')]&&_0x5e0800[_0x532360('0x26')]!=_0x225439[_0x532360('0x26')]||_0x5e0800[_0x532360('0x26')]&&_0x5e0800[_0x532360('0xf')])&&logger[_0x532360('0x21')]('THE\x20LICENSE\x20HAS\x20BEEN\x20ENABLED');_0x5e0800[_0x532360('0x26')]&&!_0x5e0800[_0x532360('0xf')]&&_0x5e0800[_0x532360('0x26')]!=_0x225439['license']&&logger[_0x532360('0x21')](_0x532360('0x2f'));if(_0x5e0800[_0x532360('0x26')]&&!_0x5e0800[_0x532360('0xf')]&&_0x5e0800[_0x532360('0x26')]==_0x225439[_0x532360('0x26')])return _0x5dfe26;return _0x5dfe26[_0x532360('0x13')]({'data1':_0x50fd2e,'data2':null,'license':_0x225439[_0x532360('0x26')]});}else{if(_0x225439['license']||_0x5e0800[_0x532360('0x26')]){if(!_0x5e0800[_0x532360('0xf')])return _0x5e0800[_0x532360('0x23')]==_0x50fd2e?(GRAY_PERIOD_REASON=_0x532360('0x19'),logger['info'](_0x532360('0x10'))):(GRAY_PERIOD_REASON=_0x532360('0x7'),oldToken=_0x5e0800['data1'],logger['info'](_0x532360('0x24'),_0x5e0800[_0x532360('0x23')],_0x50fd2e)),sendJiraAlert(_0x5e0800[_0x532360('0x23')],_0x225439[_0x532360('0xd')],GRAY_PERIOD_REASON),logger[_0x532360('0x21')](_0x532360('0x28'),GRAY_PERIOD_REASON[_0x532360('0x6')](),moment()['format'](_0x532360('0x11'))),_0x5dfe26['update']({'data2':encryptor[_0x532360('0x18')](moment()['format']('YYYY-MM-DD\x20HH:mm'))});else{if(moment()[_0x532360('0x2')](encryptor[_0x532360('0xe')](_0x5e0800[_0x532360('0xf')]),_0x532360('0x1c'))>DAYS)return logger['info'](_0x532360('0x2a'),moment()[_0x532360('0x1d')](_0x532360('0x11'))),_0x5dfe26['update']({'data1':_0x50fd2e,'data2':null,'license':null});}}else{if(_0x5e0800[_0x532360('0x23')]!=_0x50fd2e)return logger['info'](_0x532360('0x24'),_0x5e0800[_0x532360('0x23')],_0x50fd2e),_0x5dfe26[_0x532360('0x13')]({'data1':_0x50fd2e,'data2':null,'license':null});}}return _0x5dfe26;})['then'](function(_0x54caeb){_0x5dfe26=_0x54caeb;})[_0x145607('0x29')](function(_0x29c5d6){const _0x597ccd=_0x145607;logger[_0x597ccd('0xb')](_0x29c5d6['message']);})[_0x145607('0x5')](function(){setTimeout(function(){const _0x5c4fca=a844_0x2d21;manageLicense(hardware[_0x5c4fca('0x32')](),_0x5dfe26);},TIME);});}function defaultLicense(){const _0x2767bb=_0xc09b76,_0x3bec6c=hardware[_0x2767bb('0x32')]();return _0x3bec6c?db[_0x2767bb('0x15')][_0x2767bb('0x2b')]({'where':{'id':0x1},'defaults':{'data1':_0x3bec6c}})[_0x2767bb('0x4')](function([_0x24a684]){logger['info']('SERVICE\x20LICENSE\x20STARTED\x20%s',_0x3bec6c),manageLicense(_0x3bec6c,_0x24a684);})[_0x2767bb('0x29')](function(_0x520e64){const _0x302e02=_0x2767bb;logger['error'](_0x520e64[_0x302e02('0x30')]);throw _0x520e64;}):Promise['reject'](new Error(_0x2767bb('0x1a')));}exports[_0xc09b76('0x16')]=defaultLicense; \ No newline at end of file diff --git a/server/config/license/util.js b/server/config/license/util.js index 6ca03b2..921ff94 100644 --- a/server/config/license/util.js +++ b/server/config/license/util.js @@ -1 +1 @@ -const a845_0x301b=['findAll','util','admin','demo','decryptString','moment','add','exports','License\x20limit\x20reached\x20for\x20telephones','getUuid','gray','%s:%s:%s','split','isEmpty','Demo\x20license','COUNT','telephones','days','user','license','data2','countBy','User','count','grayReason','pick','disabled','catch','uuid','format','users','telephone','lodash','machineUuid','role','License\x20key\x20value\x20not\x20found','parse','then','../../mysqldb','License\x20limit\x20reached\x20for\x20users','message','changed','2027-01-01T00:00:00.000Z','sequelize','forEach','data1','License'];(function(_0x3a0e20,_0x301b81){const _0x585302=function(_0x17fea8){while(--_0x17fea8){_0x3a0e20['push'](_0x3a0e20['shift']());}};_0x585302(++_0x301b81);}(a845_0x301b,0x12e));const a845_0x5853=function(_0x3a0e20,_0x301b81){_0x3a0e20=_0x3a0e20-0x0;let _0x585302=a845_0x301b[_0x3a0e20];return _0x585302;};const _0x15d343=a845_0x5853;'use strict';const encryptor=require('../../components/encryptor'),util=require(_0x15d343('0x1c')),_=require(_0x15d343('0xc')),moment=require(_0x15d343('0x20')),hardware=require('./hardware'),db=require(_0x15d343('0x12'))['db'],{Op,fn,col}=require(_0x15d343('0x17')),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':_0x15d343('0x29'),'machineUuid':hardware[_0x15d343('0x24')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':_0x15d343('0x16'),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':'Breaking\x20license','machineUuid':hardware[_0x15d343('0x24')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x17fea8){return new Promise(function(_0x5ad3d0,_0x2381d2){const _0x5e5152=a845_0x5853;return db[_0x5e5152('0x1a')]['findOne'](_['defaults'](_0x17fea8,{'raw':!![],'where':{'id':0x1}}))[_0x5e5152('0x11')](function(_0x530fc8){return checkLicense(_0x530fc8,null);})[_0x5e5152('0x11')](function(_0x32a638){_0x5ad3d0(_0x32a638);return;})[_0x5e5152('0x7')](function(_0x150805){_0x2381d2(_0x150805);});});}function checkLicense(_0x1e66ad,_0x1c056a){const _0x4643a0=_0x15d343;if(!_0x1e66ad)return demoLicense['uuid']=_0x1e66ad[_0x4643a0('0x19')],demoLicense;try{const _0x30866e=_0x1c056a||_0x1e66ad[_0x4643a0('0x2e')];if(_[_0x4643a0('0x28')](_0x30866e))throw new Error(_0x4643a0('0xf'));const _0x76fa80=_0x1e66ad[_0x4643a0('0x19')],_0x48db11=_0x1e66ad[_0x4643a0('0x0')],_0x47c4b7=_0x76fa80[_0x4643a0('0x27')]('-')[0x4],_0x539487=_0x76fa80[_0x4643a0('0x27')]('-')[0x0],_0x36d160=encryptor[_0x4643a0('0x1f')](_0x30866e,util['format'](_0x4643a0('0x26'),_0x47c4b7,_0x76fa80,_0x539487)),_0x15fcc1=JSON[_0x4643a0('0x10')](_0x36d160);_0x15fcc1[_0x4643a0('0x1e')]=![],_0x15fcc1[_0x4643a0('0x8')]=_0x76fa80,_0x15fcc1[_0x4643a0('0xd')]=hardware[_0x4643a0('0x24')]();if(_0x48db11){const _0x5eb0a8=encryptor[_0x4643a0('0x1f')](_0x48db11);_0x15fcc1[_0x4643a0('0x25')]=_0x5eb0a8,_0x15fcc1['deadline']=moment(_0x5eb0a8)[_0x4643a0('0x21')](0x7,_0x4643a0('0x2c'))[_0x4643a0('0x9')](),_0x15fcc1[_0x4643a0('0x4')]=_0x15fcc1[_0x4643a0('0x8')]!=_0x15fcc1[_0x4643a0('0xd')]?_0x4643a0('0x15'):_0x4643a0('0x6');}return _0x15fcc1;}catch(_0x105918){return breakingLicense[_0x4643a0('0x8')]=_0x1e66ad[_0x4643a0('0x19')],breakingLicense['message']=_0x105918[_0x4643a0('0x14')],breakingLicense;}}function getLimits(){return new Promise(function(_0x5f358b,_0x24652b){const _0x312e42=a845_0x5853;getLicense()[_0x312e42('0x11')](function(_0x197333){const _0x2e2d1d=_0x312e42;return db[_0x2e2d1d('0x2')][_0x2e2d1d('0x1b')]({'attributes':[_0x2e2d1d('0xe'),[fn(_0x2e2d1d('0x2a'),col(_0x2e2d1d('0xe'))),'count']],'group':_0x2e2d1d('0xe'),'where':{'role':{[Op['or']]:['admin',_0x2e2d1d('0x2d'),_0x2e2d1d('0xb')]}},'raw':!![]})['then'](function(_0x1ec95c){const _0x5a0125=_0x2e2d1d,_0x3b6b63={'user':_0x197333[_0x5a0125('0xa')]||0x0,'telephone':_0x197333[_0x5a0125('0x2b')]||0x0};_0x1ec95c[_0x5a0125('0x18')](function(_0x3c23f5){const _0x5345dc=_0x5a0125,_0x31d892=_0x3c23f5[_0x5345dc('0xe')]===_0x5345dc('0x1d')?'user':_0x3c23f5[_0x5345dc('0xe')];_0x3b6b63[_0x31d892]-=_0x3c23f5[_0x5345dc('0x3')];if(_0x3b6b63[_0x31d892]<0x0)_0x3b6b63[_0x31d892]=0x0;}),_0x5f358b(_0x3b6b63);return;});})[_0x312e42('0x7')](function(_0x525505){_0x24652b(_0x525505);});});}function checkUserLimits(_0x5dd096){return new Promise(function(_0x411d92,_0x46d32b){const _0x30f5e2=a845_0x5853;getLimits()[_0x30f5e2('0x11')](function(_0x2bccd3){const _0x1000d6=_0x30f5e2,_0x365075=_[_0x1000d6('0x5')](_[_0x1000d6('0x1')](_0x5dd096,_0x1000d6('0xe')),[_0x1000d6('0x1d'),_0x1000d6('0x2d'),'telephone']),_0x2cfa47=(_0x365075[_0x1000d6('0x1d')]||0x0)+(_0x365075[_0x1000d6('0x2d')]||0x0),_0x2a20ff=_0x365075[_0x1000d6('0xb')]||0x0;if(_0x2cfa47>_0x2bccd3['user'])return _0x46d32b(_0x1000d6('0x13'));if(_0x2a20ff>_0x2bccd3[_0x1000d6('0xb')])return _0x46d32b(_0x1000d6('0x23'));return _0x411d92();})[_0x30f5e2('0x7')](function(_0x3b5dad){_0x46d32b(_0x3b5dad);});});}module[_0x15d343('0x22')]={'checkLicense':checkLicense,'checkUserLimits':checkUserLimits,'getLicense':getLicense}; \ No newline at end of file +const a845_0x3820=['getUuid','changed','deadline','user','defaults','2027-01-01T00:00:00.000Z','data2','disabled','License\x20key\x20value\x20not\x20found','isEmpty','users','License','admin','findOne','catch','User','./hardware','%s:%s:%s','grayReason','demo','moment','parse','Demo\x20license','exports','../../components/encryptor','decryptString','License\x20limit\x20reached\x20for\x20users','telephone','findAll','message','COUNT','Breaking\x20license','split','add','count','format','telephones','data1','license','uuid','License\x20limit\x20reached\x20for\x20telephones','role','../../mysqldb','machineUuid','sequelize','then','countBy'];(function(_0x450031,_0x382089){const _0x35b4d5=function(_0x5cb9ac){while(--_0x5cb9ac){_0x450031['push'](_0x450031['shift']());}};_0x35b4d5(++_0x382089);}(a845_0x3820,0x190));const a845_0x35b4=function(_0x450031,_0x382089){_0x450031=_0x450031-0x0;let _0x35b4d5=a845_0x3820[_0x450031];return _0x35b4d5;};const _0x1f1a40=a845_0x35b4;'use strict';const encryptor=require(_0x1f1a40('0x0')),util=require('util'),_=require('lodash'),moment=require(_0x1f1a40('0x2b')),hardware=require(_0x1f1a40('0x27')),db=require(_0x1f1a40('0x12'))['db'],{Op,fn,col}=require(_0x1f1a40('0x14')),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':_0x1f1a40('0x2d'),'machineUuid':hardware[_0x1f1a40('0x17')](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]},breakingLicense={'breaking':!![],'demo':!![],'agents':0x2,'telephones':0x0,'users':0x1,'expiration':_0x1f1a40('0x1c'),'chat':![],'mail':![],'fax':![],'messaging':![],'whatsapp':![],'cm':![],'dialer':![],'jscripty':![],'openchannel':![],'callysquare':0x2,'webrtc':![],'jaws':![],'custom':![],'update':![],'description':_0x1f1a40('0x7'),'machineUuid':hardware['getUuid'](),'virtual':0x0,'voice':!![],'screenrecording':![],'preferred':![],'ai':![]};function getLicense(_0x5cb9ac){return new Promise(function(_0x3f946d,_0x201dd8){const _0x358a19=a845_0x35b4;return db[_0x358a19('0x22')][_0x358a19('0x24')](_[_0x358a19('0x1b')](_0x5cb9ac,{'raw':!![],'where':{'id':0x1}}))[_0x358a19('0x15')](function(_0x15d14d){return checkLicense(_0x15d14d,null);})['then'](function(_0xe70134){_0x3f946d(_0xe70134);return;})[_0x358a19('0x25')](function(_0x38bf06){_0x201dd8(_0x38bf06);});});}function checkLicense(_0x105fed,_0x451efd){const _0x2f2b66=_0x1f1a40;if(!_0x105fed)return demoLicense[_0x2f2b66('0xf')]=_0x105fed[_0x2f2b66('0xd')],demoLicense;try{const _0x5d5414=_0x451efd||_0x105fed[_0x2f2b66('0xe')];if(_[_0x2f2b66('0x20')](_0x5d5414))throw new Error(_0x2f2b66('0x1f'));const _0x36caa3=_0x105fed[_0x2f2b66('0xd')],_0x1aeef2=_0x105fed[_0x2f2b66('0x1d')],_0x2f22f3=_0x36caa3[_0x2f2b66('0x8')]('-')[0x4],_0x48f19b=_0x36caa3['split']('-')[0x0],_0x186a5e=encryptor[_0x2f2b66('0x1')](_0x5d5414,util[_0x2f2b66('0xb')](_0x2f2b66('0x28'),_0x2f22f3,_0x36caa3,_0x48f19b)),_0x11748f=JSON[_0x2f2b66('0x2c')](_0x186a5e);_0x11748f[_0x2f2b66('0x2a')]=![],_0x11748f[_0x2f2b66('0xf')]=_0x36caa3,_0x11748f[_0x2f2b66('0x13')]=hardware[_0x2f2b66('0x17')]();if(_0x1aeef2){const _0x2b664e=encryptor[_0x2f2b66('0x1')](_0x1aeef2);_0x11748f['gray']=_0x2b664e,_0x11748f[_0x2f2b66('0x19')]=moment(_0x2b664e)[_0x2f2b66('0x9')](0x7,'days')[_0x2f2b66('0xb')](),_0x11748f[_0x2f2b66('0x29')]=_0x11748f[_0x2f2b66('0xf')]!=_0x11748f['machineUuid']?_0x2f2b66('0x18'):_0x2f2b66('0x1e');}return _0x11748f;}catch(_0x4f07d6){return breakingLicense['uuid']=_0x105fed['data1'],breakingLicense[_0x2f2b66('0x5')]=_0x4f07d6[_0x2f2b66('0x5')],breakingLicense;}}function getLimits(){return new Promise(function(_0x5ade39,_0xbf4b98){const _0x2e59a2=a845_0x35b4;getLicense()[_0x2e59a2('0x15')](function(_0x2e7817){const _0x3e5090=_0x2e59a2;return db[_0x3e5090('0x26')][_0x3e5090('0x4')]({'attributes':[_0x3e5090('0x11'),[fn(_0x3e5090('0x6'),col(_0x3e5090('0x11'))),_0x3e5090('0xa')]],'group':_0x3e5090('0x11'),'where':{'role':{[Op['or']]:['admin',_0x3e5090('0x1a'),_0x3e5090('0x3')]}},'raw':!![]})[_0x3e5090('0x15')](function(_0x58fad2){const _0x46cd6=_0x3e5090,_0x3fdb54={'user':_0x2e7817[_0x46cd6('0x21')]||0x0,'telephone':_0x2e7817[_0x46cd6('0xc')]||0x0};_0x58fad2['forEach'](function(_0x511d90){const _0x4759f1=_0x46cd6,_0x2d758d=_0x511d90[_0x4759f1('0x11')]===_0x4759f1('0x23')?_0x4759f1('0x1a'):_0x511d90[_0x4759f1('0x11')];_0x3fdb54[_0x2d758d]-=_0x511d90[_0x4759f1('0xa')];if(_0x3fdb54[_0x2d758d]<0x0)_0x3fdb54[_0x2d758d]=0x0;}),_0x5ade39(_0x3fdb54);return;});})[_0x2e59a2('0x25')](function(_0x11ed5e){_0xbf4b98(_0x11ed5e);});});}function checkUserLimits(_0x52914a){return new Promise(function(_0x1f02a6,_0x435ca6){const _0x138e13=a845_0x35b4;getLimits()[_0x138e13('0x15')](function(_0x209cb4){const _0x50f09f=_0x138e13,_0x19ecf5=_['pick'](_[_0x50f09f('0x16')](_0x52914a,_0x50f09f('0x11')),[_0x50f09f('0x23'),_0x50f09f('0x1a'),_0x50f09f('0x3')]),_0x10d5b5=(_0x19ecf5[_0x50f09f('0x23')]||0x0)+(_0x19ecf5[_0x50f09f('0x1a')]||0x0),_0x29deb3=_0x19ecf5[_0x50f09f('0x3')]||0x0;if(_0x10d5b5>_0x209cb4[_0x50f09f('0x1a')])return _0x435ca6(_0x50f09f('0x2'));if(_0x29deb3>_0x209cb4[_0x50f09f('0x3')])return _0x435ca6(_0x50f09f('0x10'));return _0x1f02a6();})[_0x138e13('0x25')](function(_0x50dcf1){_0x435ca6(_0x50dcf1);});});}module[_0x1f1a40('0x2e')]={'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 50513f0..69ee42e 100644 --- a/server/config/local.env.js +++ b/server/config/local.env.js @@ -1 +1 @@ -var a846_0x2279=['myappanuglar-secret','exports','http://localhost:9000','app-id','secret'];(function(_0x5d104e,_0x227932){var _0x5c9a09=function(_0x18f412){while(--_0x18f412){_0x5d104e['push'](_0x5d104e['shift']());}};_0x5c9a09(++_0x227932);}(a846_0x2279,0x1f3));var a846_0x5c9a=function(_0x5d104e,_0x227932){_0x5d104e=_0x5d104e-0x0;var _0x5c9a09=a846_0x2279[_0x5d104e];return _0x5c9a09;};var _0x3a2161=a846_0x5c9a;'use strict';module[_0x3a2161('0x2')]={'DOMAIN':_0x3a2161('0x3'),'SESSION_SECRET':_0x3a2161('0x1'),'GOOGLE_ID':_0x3a2161('0x4'),'GOOGLE_SECRET':_0x3a2161('0x0'),'DEBUG':''}; \ No newline at end of file +var a846_0x49b1=['myappanuglar-secret','exports','http://localhost:9000','app-id'];(function(_0x1ef70b,_0x49b1e6){var _0x351e02=function(_0x46688d){while(--_0x46688d){_0x1ef70b['push'](_0x1ef70b['shift']());}};_0x351e02(++_0x49b1e6);}(a846_0x49b1,0x109));var a846_0x351e=function(_0x1ef70b,_0x49b1e6){_0x1ef70b=_0x1ef70b-0x0;var _0x351e02=a846_0x49b1[_0x1ef70b];return _0x351e02;};var _0x25d9ad=a846_0x351e;'use strict';module[_0x25d9ad('0x0')]={'DOMAIN':_0x25d9ad('0x1'),'SESSION_SECRET':_0x25d9ad('0x3'),'GOOGLE_ID':_0x25d9ad('0x2'),'GOOGLE_SECRET':'secret','DEBUG':''}; \ No newline at end of file diff --git a/server/config/logger.js b/server/config/logger.js index 67f4b5d..bc25a57 100644 --- a/server/config/logger.js +++ b/server/config/logger.js @@ -1 +1 @@ -const a847_0x1cd4=['triple-beam','join','createLogger','YYYY-MM-DD\x20HH:mm:ss','%s-%s','getConfigService','info',']\x20[','%s-%s.log','util','toUpperCase','moment','logPath','File','path','exports','format','assign','transports','safe-stable-stringify','error'];(function(_0x484185,_0x1cd4ea){const _0x144c43=function(_0x5ef458){while(--_0x5ef458){_0x484185['push'](_0x484185['shift']());}};_0x144c43(++_0x1cd4ea);}(a847_0x1cd4,0x1d0));const a847_0x144c=function(_0x484185,_0x1cd4ea){_0x484185=_0x484185-0x0;let _0x144c43=a847_0x1cd4[_0x484185];return _0x144c43;};const _0x52f0e2=a847_0x144c;'use strict';const moment=require(_0x52f0e2('0x9')),winston=require('winston'),util=require(_0x52f0e2('0x7')),path=require(_0x52f0e2('0xc')),{MESSAGE}=require(_0x52f0e2('0x13')),jsonStringify=require(_0x52f0e2('0x11')),cs=require('./config.service')[_0x52f0e2('0x3')](),logPath=cs[_0x52f0e2('0xa')];function filename(_0x5ef458,_0x3fa8b8){const _0x3d6261=_0x52f0e2;return path[_0x3d6261('0x14')](logPath,util[_0x3d6261('0xe')](_0x3d6261('0x6'),_0x5ef458,_0x3fa8b8));}const MotionFormatter=_0x3a549d=>winston[_0x52f0e2('0xe')](_0x57d5d1=>{const _0x4fdca9=_0x52f0e2,_0x2fd3d4=moment()['format'](_0x4fdca9('0x1')),{level:_0x57bcfe,message:_0x50543e}=_0x57d5d1,_0x17261b=jsonStringify(Object[_0x4fdca9('0xf')]({},_0x57d5d1,{'level':undefined,'message':undefined,'splat':undefined}));return _0x57d5d1[MESSAGE]='['+_0x2fd3d4+_0x4fdca9('0x5')+_0x57bcfe[_0x4fdca9('0x8')]()+']\x20'+_0x3a549d+'\x20-\x20'+_0x50543e+'\x20'+(_0x17261b==='{}'?'':_0x17261b),_0x57d5d1;})();module[_0x52f0e2('0xd')]=function(_0x339e26){const _0x52d648=_0x52f0e2;return winston[_0x52d648('0x0')]({'transports':[new winston['transports'][(_0x52d648('0xb'))]({'name':util[_0x52d648('0xe')](_0x52d648('0x2'),_0x339e26,_0x52d648('0x12')),'filename':filename(_0x339e26,_0x52d648('0x12')),'level':_0x52d648('0x12'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x339e26)}),new winston['transports'][(_0x52d648('0xb'))]({'name':util[_0x52d648('0xe')](_0x52d648('0x2'),_0x339e26,_0x52d648('0x4')),'filename':filename(_0x339e26,_0x52d648('0x4')),'level':_0x52d648('0x4'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x339e26)}),new winston[(_0x52d648('0x10'))]['Console']({'level':cs['debugLevel'],'format':MotionFormatter(_0x339e26)})]});}; \ No newline at end of file +const a847_0x4c52=['%s-%s','File','YYYY-MM-DD\x20HH:mm:ss','exports','Console','toUpperCase','transports','error','safe-stable-stringify','getConfigService','format','winston','util','createLogger','./config.service','logPath','debugLevel','join','info','moment'];(function(_0x130184,_0x4c5242){const _0x27111e=function(_0x5573d9){while(--_0x5573d9){_0x130184['push'](_0x130184['shift']());}};_0x27111e(++_0x4c5242);}(a847_0x4c52,0x9c));const a847_0x2711=function(_0x130184,_0x4c5242){_0x130184=_0x130184-0x0;let _0x27111e=a847_0x4c52[_0x130184];return _0x27111e;};const _0xfad257=a847_0x2711;'use strict';const moment=require(_0xfad257('0x3')),winston=require(_0xfad257('0xf')),util=require(_0xfad257('0x10')),path=require('path'),{MESSAGE}=require('triple-beam'),jsonStringify=require(_0xfad257('0xc')),cs=require(_0xfad257('0x12'))[_0xfad257('0xd')](),logPath=cs[_0xfad257('0x13')];function filename(_0x5573d9,_0x52d5aa){const _0x37acf4=_0xfad257;return path[_0x37acf4('0x1')](logPath,util[_0x37acf4('0xe')]('%s-%s.log',_0x5573d9,_0x52d5aa));}const MotionFormatter=_0x46d508=>winston[_0xfad257('0xe')](_0x4d338c=>{const _0x47ab36=_0xfad257,_0x5118ff=moment()[_0x47ab36('0xe')](_0x47ab36('0x6')),{level:_0x23babd,message:_0x3a59c5}=_0x4d338c,_0x3a0d9c=jsonStringify(Object['assign']({},_0x4d338c,{'level':undefined,'message':undefined,'splat':undefined}));return _0x4d338c[MESSAGE]='['+_0x5118ff+']\x20['+_0x23babd[_0x47ab36('0x9')]()+']\x20'+_0x46d508+'\x20-\x20'+_0x3a59c5+'\x20'+(_0x3a0d9c==='{}'?'':_0x3a0d9c),_0x4d338c;})();module[_0xfad257('0x7')]=function(_0x186fa3){const _0x2a6dd6=_0xfad257;return winston[_0x2a6dd6('0x11')]({'transports':[new winston[(_0x2a6dd6('0xa'))][(_0x2a6dd6('0x5'))]({'name':util['format']('%s-%s',_0x186fa3,_0x2a6dd6('0xb')),'filename':filename(_0x186fa3,'error'),'level':_0x2a6dd6('0xb'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x186fa3)}),new winston[(_0x2a6dd6('0xa'))]['File']({'name':util[_0x2a6dd6('0xe')](_0x2a6dd6('0x4'),_0x186fa3,_0x2a6dd6('0x2')),'filename':filename(_0x186fa3,_0x2a6dd6('0x2')),'level':_0x2a6dd6('0x2'),'maxsize':0xa00000,'maxFiles':0xa,'tailable':!![],'format':MotionFormatter(_0x186fa3)}),new winston[(_0x2a6dd6('0xa'))][(_0x2a6dd6('0x8'))]({'level':cs[_0x2a6dd6('0x0')],'format':MotionFormatter(_0x186fa3)})]});}; \ No newline at end of file diff --git a/server/config/pm2/config.js b/server/config/pm2/config.js index ce245fd..ecc6e2c 100644 --- a/server/config/pm2/config.js +++ b/server/config/pm2/config.js @@ -1 +1 @@ -const a848_0x76db=['email','services/xdr/index.js','ami','services/ami/index.js','express','services/express/index.js','join','services/agi/index.js','xdr','services/email/index.js','appRoot'];(function(_0xb7aa71,_0x76dbd5){const _0xe4a93c=function(_0x48544d){while(--_0x48544d){_0xb7aa71['push'](_0xb7aa71['shift']());}};_0xe4a93c(++_0x76dbd5);}(a848_0x76db,0x115));const a848_0xe4a9=function(_0xb7aa71,_0x76dbd5){_0xb7aa71=_0xb7aa71-0x0;let _0xe4a93c=a848_0x76db[_0xb7aa71];return _0xe4a93c;};const _0x37bbf3=a848_0xe4a9;'use strict';const path=require('path'),config={'apps':[{'wait_ready':!![],'name':_0x37bbf3('0x2'),'script':path[_0x37bbf3('0x4')](global[_0x37bbf3('0x8')],_0x37bbf3('0x3'))},{'name':_0x37bbf3('0x0'),'script':path[_0x37bbf3('0x4')](global[_0x37bbf3('0x8')],_0x37bbf3('0x1'))},{'name':'agi','script':path[_0x37bbf3('0x4')](global[_0x37bbf3('0x8')],_0x37bbf3('0x5'))},{'name':_0x37bbf3('0x9'),'script':path['join'](global['appRoot'],_0x37bbf3('0x7'))},{'name':'routing','script':path[_0x37bbf3('0x4')](global[_0x37bbf3('0x8')],'services/routing/index.js')},{'name':_0x37bbf3('0x6'),'script':path[_0x37bbf3('0x4')](global[_0x37bbf3('0x8')],_0x37bbf3('0xa'))}]};module['exports']=config; \ No newline at end of file +const a848_0x438c=['services/express/index.js','appRoot','services/routing/index.js','ami','services/ami/index.js','routing','services/agi/index.js','services/email/index.js','xdr','email','join','services/xdr/index.js','exports'];(function(_0x595bc6,_0x438cf5){const _0x2f2028=function(_0x5352dd){while(--_0x5352dd){_0x595bc6['push'](_0x595bc6['shift']());}};_0x2f2028(++_0x438cf5);}(a848_0x438c,0x110));const a848_0x2f20=function(_0x595bc6,_0x438cf5){_0x595bc6=_0x595bc6-0x0;let _0x2f2028=a848_0x438c[_0x595bc6];return _0x2f2028;};const _0x54a80c=a848_0x2f20;'use strict';const path=require('path'),config={'apps':[{'wait_ready':!![],'name':'express','script':path[_0x54a80c('0xb')](global['appRoot'],_0x54a80c('0x1'))},{'name':_0x54a80c('0x4'),'script':path[_0x54a80c('0xb')](global['appRoot'],_0x54a80c('0x5'))},{'name':'agi','script':path[_0x54a80c('0xb')](global[_0x54a80c('0x2')],_0x54a80c('0x7'))},{'name':_0x54a80c('0xa'),'script':path[_0x54a80c('0xb')](global[_0x54a80c('0x2')],_0x54a80c('0x8'))},{'name':_0x54a80c('0x6'),'script':path['join'](global[_0x54a80c('0x2')],_0x54a80c('0x3'))},{'name':_0x54a80c('0x9'),'script':path[_0x54a80c('0xb')](global[_0x54a80c('0x2')],_0x54a80c('0xc'))}]};module[_0x54a80c('0x0')]=config; \ No newline at end of file diff --git a/server/config/pm2/index.js b/server/config/pm2/index.js index 8387785..db92a46 100644 --- a/server/config/pm2/index.js +++ b/server/config/pm2/index.js @@ -1 +1 @@ -const a849_0x12d2=['Stopped\x20and\x20Deleted','node','Restarted','restart','Stopped','start','getConfigService','interpreterArgs','debug','dump','interpreter','../config.service','isProduction','vscode_debugger','saved','interpreter_args','list','describe','environment','--inspect','then','delete','stop','disconnect','pm2','connected'];(function(_0x2ec57a,_0x12d299){const _0x520fd9=function(_0x47188b){while(--_0x47188b){_0x2ec57a['push'](_0x2ec57a['shift']());}};_0x520fd9(++_0x12d299);}(a849_0x12d2,0x175));const a849_0x520f=function(_0x2ec57a,_0x12d299){_0x2ec57a=_0x2ec57a-0x0;let _0x520fd9=a849_0x12d2[_0x2ec57a];return _0x520fd9;};const _0x1163fd=a849_0x520f;'use strict';const pm2=require(_0x1163fd('0xf')),cs=require(_0x1163fd('0x2'))[_0x1163fd('0x17')]();function connect(){return new Promise(function(_0x47188b,_0x755d48){return pm2['connect'](function(_0x1a6c21){const _0x447986=a849_0x520f;_0x1a6c21?_0x755d48(_0x1a6c21):_0x47188b(_0x447986('0x10'));});});}exports[_0x1163fd('0x16')]=function(_0x504416){const _0x288866=_0x1163fd;return!(cs[_0x288866('0x3')]||cs['isTest']||cs[_0x288866('0x9')]===_0x288866('0x4'))&&(_0x504416[_0x288866('0x1')]=_0x288866('0x12'),_0x504416[_0x288866('0x6')]=['--inspect'],_0x504416['node_args']=[_0x288866('0xa')],_0x504416[_0x288866('0x18')]=[_0x288866('0xa')],_0x504416['nodeArgs']=[_0x288866('0xa')]),connect()['then'](function(){return new Promise(function(_0x39c860,_0x1913d4){const _0x3f944e=a849_0x520f;return pm2[_0x3f944e('0x16')](_0x504416,function(_0x47e85d,_0x432df3){const _0xfab9c0=_0x3f944e;_0x47e85d?_0x1913d4(_0x47e85d):(pm2[_0xfab9c0('0xe')](),_0x39c860(_0x432df3));});});});},exports[_0x1163fd('0xd')]=function(_0x35f2f7){const _0x4935da=_0x1163fd;return connect()[_0x4935da('0xb')](function(){return new Promise(function(_0x41ca74,_0x48330f){const _0x39595e=a849_0x520f;return pm2[_0x39595e('0xd')](_0x35f2f7,function(_0x496a6c,_0x26a1b5){const _0x189fb0=_0x39595e;_0x496a6c?_0x48330f(_0x496a6c):(console[_0x189fb0('0x19')](_0x189fb0('0x15'),_0x35f2f7),_0x41ca74(_0x26a1b5));});});});},exports[_0x1163fd('0x14')]=function(_0x47f583){return connect()['then'](function(){return new Promise(function(_0x2ee66b,_0x16c9e1){const _0x2ab347=a849_0x520f;return pm2[_0x2ab347('0x14')](_0x47f583,function(_0x4e10ae,_0x369201){const _0x8c80f8=_0x2ab347;_0x4e10ae?_0x16c9e1(_0x4e10ae):(console[_0x8c80f8('0x19')](_0x8c80f8('0x13'),_0x47f583),_0x2ee66b(_0x369201));});});});},exports['list']=function(){const _0x552e52=_0x1163fd;return connect()[_0x552e52('0xb')](function(){return new Promise(function(_0x24d06b,_0x3df77b){const _0x18e824=a849_0x520f;return pm2[_0x18e824('0x7')](function(_0x4c3323,_0x571c69){_0x4c3323?_0x3df77b(_0x4c3323):_0x24d06b(_0x571c69);});});});},exports[_0x1163fd('0x8')]=function(_0x3f0219){const _0x256b3d=_0x1163fd;return connect()[_0x256b3d('0xb')](function(){return new Promise(function(_0x68da60,_0xf860d4){return pm2['describe'](_0x3f0219,function(_0x780264,_0x4f03eb){_0x780264?_0xf860d4(_0x780264):_0x68da60(_0x4f03eb);});});});},exports[_0x1163fd('0xc')]=function(_0x4529c4){const _0x1c695d=_0x1163fd;return connect()[_0x1c695d('0xb')](function(){return new Promise(function(_0x26bab3,_0xb8abd2){const _0x4bc975=a849_0x520f;return pm2[_0x4bc975('0xc')](_0x4529c4,function(_0x50ca92,_0x3bb04f){const _0x11ba82=_0x4bc975;_0x50ca92?_0xb8abd2(_0x50ca92):(console[_0x11ba82('0x19')](_0x11ba82('0x11'),_0x4529c4),_0x26bab3(_0x3bb04f));});});});},exports[_0x1163fd('0x0')]=function(){const _0x442a34=_0x1163fd;return connect()[_0x442a34('0xb')](function(){return new Promise(function(_0x252c22,_0x2aa578){const _0x4b4f65=a849_0x520f;return pm2[_0x4b4f65('0x0')](function(_0x394f0f){const _0x4699c1=_0x4b4f65;_0x394f0f?_0x2aa578(_0x394f0f):_0x252c22(_0x4699c1('0x5'));});});});}; \ No newline at end of file +const a849_0x2e60=['node','interpreterArgs','start','delete','stop','then','connected','connect','isTest','saved','restart','disconnect','list','interpreter_args','nodeArgs','interpreter','pm2','Restarted','Stopped','node_args','debug','environment','--inspect','getConfigService'];(function(_0x35ee16,_0x2e6066){const _0x1c791f=function(_0x2c7fd7){while(--_0x2c7fd7){_0x35ee16['push'](_0x35ee16['shift']());}};_0x1c791f(++_0x2e6066);}(a849_0x2e60,0x1bf));const a849_0x1c79=function(_0x35ee16,_0x2e6066){_0x35ee16=_0x35ee16-0x0;let _0x1c791f=a849_0x2e60[_0x35ee16];return _0x1c791f;};const _0x510212=a849_0x1c79;'use strict';const pm2=require(_0x510212('0x1')),cs=require('../config.service')[_0x510212('0x8')]();function connect(){return new Promise(function(_0x2c7fd7,_0x47af1b){const _0x5a6190=a849_0x1c79;return pm2[_0x5a6190('0x10')](function(_0x3eb63e){const _0x3d1469=_0x5a6190;_0x3eb63e?_0x47af1b(_0x3eb63e):_0x2c7fd7(_0x3d1469('0xf'));});});}exports[_0x510212('0xb')]=function(_0xac1a2b){const _0x2917fb=_0x510212;return!(cs['isProduction']||cs[_0x2917fb('0x11')]||cs[_0x2917fb('0x6')]==='vscode_debugger')&&(_0xac1a2b[_0x2917fb('0x0')]=_0x2917fb('0x9'),_0xac1a2b[_0x2917fb('0x16')]=[_0x2917fb('0x7')],_0xac1a2b[_0x2917fb('0x4')]=[_0x2917fb('0x7')],_0xac1a2b[_0x2917fb('0xa')]=[_0x2917fb('0x7')],_0xac1a2b[_0x2917fb('0x17')]=[_0x2917fb('0x7')]),connect()[_0x2917fb('0xe')](function(){return new Promise(function(_0x4cba6a,_0x1c8abd){const _0x204a77=a849_0x1c79;return pm2[_0x204a77('0xb')](_0xac1a2b,function(_0x428734,_0x47f2bc){const _0x7a1002=_0x204a77;_0x428734?_0x1c8abd(_0x428734):(pm2[_0x7a1002('0x14')](),_0x4cba6a(_0x47f2bc));});});});},exports[_0x510212('0xd')]=function(_0x499133){const _0x5d0656=_0x510212;return connect()[_0x5d0656('0xe')](function(){return new Promise(function(_0x4acd58,_0x55ccdc){const _0x3b64b0=a849_0x1c79;return pm2[_0x3b64b0('0xd')](_0x499133,function(_0x211eae,_0x13651b){const _0x2bebfd=_0x3b64b0;_0x211eae?_0x55ccdc(_0x211eae):(console[_0x2bebfd('0x5')](_0x2bebfd('0x3'),_0x499133),_0x4acd58(_0x13651b));});});});},exports[_0x510212('0x13')]=function(_0x38f3e0){const _0x53f4dd=_0x510212;return connect()[_0x53f4dd('0xe')](function(){return new Promise(function(_0x3b2d11,_0x4c8302){const _0x2f4e70=a849_0x1c79;return pm2[_0x2f4e70('0x13')](_0x38f3e0,function(_0x12f04f,_0x205f2c){const _0x3e7ce6=_0x2f4e70;_0x12f04f?_0x4c8302(_0x12f04f):(console[_0x3e7ce6('0x5')](_0x3e7ce6('0x2'),_0x38f3e0),_0x3b2d11(_0x205f2c));});});});},exports[_0x510212('0x15')]=function(){const _0x300882=_0x510212;return connect()[_0x300882('0xe')](function(){return new Promise(function(_0x35771f,_0x3ae51d){const _0x3da88e=a849_0x1c79;return pm2[_0x3da88e('0x15')](function(_0x23b6aa,_0x336650){_0x23b6aa?_0x3ae51d(_0x23b6aa):_0x35771f(_0x336650);});});});},exports['describe']=function(_0x220557){const _0x480298=_0x510212;return connect()[_0x480298('0xe')](function(){return new Promise(function(_0x53933b,_0x267ffe){return pm2['describe'](_0x220557,function(_0x2c0125,_0x64c1e0){_0x2c0125?_0x267ffe(_0x2c0125):_0x53933b(_0x64c1e0);});});});},exports[_0x510212('0xc')]=function(_0x1f2acc){return connect()['then'](function(){return new Promise(function(_0x14f2f4,_0x40e111){const _0x4c813a=a849_0x1c79;return pm2[_0x4c813a('0xc')](_0x1f2acc,function(_0x1e95dc,_0x30965c){const _0x5c5d8f=_0x4c813a;_0x1e95dc?_0x40e111(_0x1e95dc):(console[_0x5c5d8f('0x5')]('Stopped\x20and\x20Deleted',_0x1f2acc),_0x14f2f4(_0x30965c));});});});},exports['dump']=function(){const _0x26d69b=_0x510212;return connect()[_0x26d69b('0xe')](function(){return new Promise(function(_0x53272c,_0x4f358f){return pm2['dump'](function(_0x4eeef5){const _0x3b013b=a849_0x1c79;_0x4eeef5?_0x4f358f(_0x4eeef5):_0x53272c(_0x3b013b('0x12'));});});});}; \ No newline at end of file diff --git a/server/config/schedule/chat.js b/server/config/schedule/chat.js index c2a5770..e591587 100644 --- a/server/config/schedule/chat.js +++ b/server/config/schedule/chat.js @@ -1 +1 @@ -const a850_0xc455=['then','catch','length','findAll','update','chatTimeout','../../rediscache','map','ChatInteraction','subtract','error','lastMsgAt','YYYY-MM-DD\x20HH:mm:ss','minutes','system','emit'];(function(_0x443944,_0xc45577){const _0x475e18=function(_0x518e75){while(--_0x518e75){_0x443944['push'](_0x443944['shift']());}};_0x475e18(++_0xc45577);}(a850_0xc455,0x1cb));const a850_0x475e=function(_0x443944,_0xc45577){_0x443944=_0x443944-0x0;let _0x475e18=a850_0xc455[_0x443944];return _0x475e18;};const _0x915faa=a850_0x475e;'use strict';const _=require('lodash'),moment=require('moment'),db=require('../../mysqldb')['db'],{getSocket}=require(_0x915faa('0xb')),io=getSocket();function closeInteractions(){const _0x27793c=_0x915faa;let _0x518e75=0x0,_0x145fef=[];return db['Setting']['findOne']({'raw':!![],'attributes':['id',_0x27793c('0xa')],'where':{'id':0x1}})[_0x27793c('0x5')](function(_0x11c18f){const _0x41ddfd=_0x27793c;return _0x518e75=_0x11c18f[_0x41ddfd('0xa')],_0x518e75?db['ChatInteraction'][_0x41ddfd('0x8')]({'raw':!![],'attributes':['id',_0x41ddfd('0x0')],'where':{'closed':![],'lastMsgAt':{'$lt':moment()[_0x41ddfd('0xe')](_0x11c18f[_0x41ddfd('0xa')],_0x41ddfd('0x2'))}}}):[];})['then'](function(_0x443b10){const _0x3cd511=_0x27793c;_0x145fef=_0x443b10;if(_0x518e75)return db[_0x3cd511('0xd')][_0x3cd511('0x9')]({'closeReason':_0x3cd511('0x3'),'disposition':'timeout','closed':!![],'closedAt':moment()['format'](_0x3cd511('0x1'))},{'where':{'id':_[_0x3cd511('0xc')](_0x145fef||[],'id')}});})[_0x27793c('0x5')](function(){const _0x3eb93d=_0x27793c;for(let _0x14f8c6=0x0;_0x14f8c6<_0x145fef[_0x3eb93d('0x7')];_0x14f8c6++){io[_0x3eb93d('0x4')]('chatInteraction:update',{'id':_0x145fef[_0x14f8c6]['id'],'closed':!![]});}})[_0x27793c('0x6')](function(_0x5b163b){const _0x5d8d84=_0x27793c;console[_0x5d8d84('0xf')](_0x5b163b);});}exports['start']=function(){return setInterval(function(){return closeInteractions();},0x3c*0x3e8),closeInteractions();}; \ No newline at end of file +const a850_0x3cca=['timeout','subtract','chatTimeout','lodash','error','emit','findAll','start','then','map','format','minutes','lastMsgAt','update','catch','../../rediscache','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x1ae7ba,_0x3ccac8){const _0x1e2e0a=function(_0x18a8af){while(--_0x18a8af){_0x1ae7ba['push'](_0x1ae7ba['shift']());}};_0x1e2e0a(++_0x3ccac8);}(a850_0x3cca,0xde));const a850_0x1e2e=function(_0x1ae7ba,_0x3ccac8){_0x1ae7ba=_0x1ae7ba-0x0;let _0x1e2e0a=a850_0x3cca[_0x1ae7ba];return _0x1e2e0a;};const _0x4e5e77=a850_0x1e2e;'use strict';const _=require(_0x4e5e77('0x2')),moment=require('moment'),db=require('../../mysqldb')['db'],{getSocket}=require(_0x4e5e77('0xe')),io=getSocket();function closeInteractions(){const _0x3d1a0c=_0x4e5e77;let _0x18a8af=0x0,_0xb10c90=[];return db['Setting']['findOne']({'raw':!![],'attributes':['id',_0x3d1a0c('0x1')],'where':{'id':0x1}})[_0x3d1a0c('0x7')](function(_0x41757b){const _0x2c4c35=_0x3d1a0c;return _0x18a8af=_0x41757b[_0x2c4c35('0x1')],_0x18a8af?db['ChatInteraction'][_0x2c4c35('0x5')]({'raw':!![],'attributes':['id',_0x2c4c35('0xb')],'where':{'closed':![],'lastMsgAt':{'$lt':moment()[_0x2c4c35('0x0')](_0x41757b[_0x2c4c35('0x1')],_0x2c4c35('0xa'))}}}):[];})[_0x3d1a0c('0x7')](function(_0x372192){const _0x441b70=_0x3d1a0c;_0xb10c90=_0x372192;if(_0x18a8af)return db['ChatInteraction'][_0x441b70('0xc')]({'closeReason':'system','disposition':_0x441b70('0x10'),'closed':!![],'closedAt':moment()[_0x441b70('0x9')](_0x441b70('0xf'))},{'where':{'id':_[_0x441b70('0x8')](_0xb10c90||[],'id')}});})[_0x3d1a0c('0x7')](function(){const _0xdd64f5=_0x3d1a0c;for(let _0x7c0e07=0x0;_0x7c0e07<_0xb10c90['length'];_0x7c0e07++){io[_0xdd64f5('0x4')]('chatInteraction:update',{'id':_0xb10c90[_0x7c0e07]['id'],'closed':!![]});}})[_0x3d1a0c('0xd')](function(_0x57cf65){const _0x3e0409=_0x3d1a0c;console[_0x3e0409('0x3')](_0x57cf65);});}exports[_0x4e5e77('0x6')]=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 f5e2ee4..a756028 100644 --- a/server/config/schedule/index.js +++ b/server/config/schedule/index.js @@ -1 +1 @@ -const a851_0x45d1=['stop','subtractNumber\x20null\x20or\x20undefined','client','jobs','text','active','update\x20cron','data','Sent','add\x20cron','../../api/analyticCustomReport/analyticCustomReport.controller','request','basename','delete\x20cron','MailServerOut','subtractUnit\x20null\x20or\x20undefined','empty\x20file,\x20email\x20not\x20sent','add','keys','user','Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a','email','startAt','../../mysqldb','Try\x20to\x20send\x20a\x20mail\x20to','difference','jayson/promise','existsSync','stop\x20cron','deleteJob','catch','Smtp','\x22%s\x22\x20<%s>','exec\x20custom\x20report\x20id:%s','Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a','length','cron-job-manager','subtract','status','join','moment','authentication','isBetween','savename','index','message','stringify','then','DefaultReportId','map','error','path','attachments','cron','secure','Schedule','toString','YYYY-MM-DD\x20HH:mm:ss','auth','../../files/reports','exists','util','http','exec\x20defaul\x20report\x20id:%s','sendIfEmpty','info','my\x20id','name','run','isNil','endAt','output','MailAccount','subtractUnit','resolve','host','SendMail','CustomReportId','Report\x20%s\x20last\x20%s\x20%s','run\x20job','no\x20report\x20id','update','toRun','format','%s.%s','error\x20mail','subtractNumber','scheduled','runReport','port','keyBy','../../api/analyticDefaultReport/analyticDefaultReport.controller'];(function(_0x426c28,_0x45d14f){const _0x5cc53b=function(_0x32f6b8){while(--_0x32f6b8){_0x426c28['push'](_0x426c28['shift']());}};_0x5cc53b(++_0x45d14f);}(a851_0x45d1,0x12c));const a851_0x5cc5=function(_0x426c28,_0x45d14f){_0x426c28=_0x426c28-0x0;let _0x5cc53b=a851_0x45d1[_0x426c28];return _0x5cc53b;};const _0x321e29=a851_0x5cc5;'use strict';const fs=require('fs'),util=require(_0x321e29('0x25')),path=require(_0x321e29('0x1b')),_=require('lodash'),moment=require(_0x321e29('0x10')),CronJobManager=require(_0x321e29('0xc')),jayson=require(_0x321e29('0x2')),logger=require('../logger')('schedule'),db=require(_0x321e29('0x5b'))['db'],analyticCustomReportController=require(_0x321e29('0x4e')),analyticDefaultReportController=require(_0x321e29('0x43')),client=jayson[_0x321e29('0x46')][_0x321e29('0x26')]({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x32f6b8,_0x9ed72a){return function(){const _0x2bcac8=a851_0x5cc5;logger['info'](_0x2bcac8('0x0'),_0x32f6b8['email']);let _0x3b312f=!![];const _0x3665d7={'tls':{'rejectUnauthorized':![]}};_0x32f6b8[_0x2bcac8('0x30')][_0x2bcac8('0x7')]['service']?_0x3665d7['service']=_0x32f6b8[_0x2bcac8('0x30')][_0x2bcac8('0x7')]['service']:(_0x3665d7[_0x2bcac8('0x33')]=_0x32f6b8['MailAccount'][_0x2bcac8('0x7')][_0x2bcac8('0x33')],_0x3665d7[_0x2bcac8('0x41')]=_0x32f6b8['MailAccount']['Smtp'][_0x2bcac8('0x41')],_0x3665d7['secure']=_0x32f6b8['MailAccount'][_0x2bcac8('0x7')][_0x2bcac8('0x1e')]);_0x32f6b8[_0x2bcac8('0x30')]['Smtp'][_0x2bcac8('0x11')]&&(_0x3665d7[_0x2bcac8('0x22')]={'user':_0x32f6b8[_0x2bcac8('0x30')][_0x2bcac8('0x7')][_0x2bcac8('0x57')],'pass':_0x32f6b8[_0x2bcac8('0x30')][_0x2bcac8('0x7')]['pass']});const _0x13645b={'account':_0x3665d7,'message':{'from':util['format'](_0x2bcac8('0x8'),_0x32f6b8[_0x2bcac8('0x30')][_0x2bcac8('0x2b')],_0x32f6b8[_0x2bcac8('0x30')][_0x2bcac8('0x59')]||_0x32f6b8[_0x2bcac8('0x30')][_0x2bcac8('0x7')][_0x2bcac8('0x57')]),'to':_0x32f6b8['email'],'cc':_0x32f6b8['cc'],'bcc':_0x32f6b8['bcc'],'subject':util[_0x2bcac8('0x3b')](_0x2bcac8('0x36'),_0x9ed72a['name'],_0x32f6b8[_0x2bcac8('0x3e')],_0x32f6b8['subtractUnit'])}},_0x2fac8b=path[_0x2bcac8('0xf')](__dirname,_0x2bcac8('0x23')),_0x3f4dfc=_0x9ed72a[_0x2bcac8('0x13')],_0x2fb93c=util[_0x2bcac8('0x3b')](_0x2bcac8('0x3c'),path[_0x2bcac8('0x50')](_0x9ed72a['savename'],path['extname'](_0x9ed72a[_0x2bcac8('0x13')])),'zip'),_0x59cfea=path[_0x2bcac8('0xf')](_0x2fac8b,_0x3f4dfc),_0x9e4bee=path[_0x2bcac8('0xf')](_0x2fac8b,_0x2fb93c);if(fs[_0x2bcac8('0x3')](_0x59cfea))_0x9ed72a[_0x2bcac8('0xe')]=_0x2bcac8('0x4c'),_0x13645b[_0x2bcac8('0x15')][_0x2bcac8('0x1c')]=[{'filename':_0x3f4dfc,'path':_0x59cfea}],_0x13645b['message'][_0x2bcac8('0x48')]=util[_0x2bcac8('0x3b')](_0x2bcac8('0x58'),JSON[_0x2bcac8('0x16')](_0x9ed72a,null,0x2));else fs['existsSync'](_0x9e4bee)?(_0x9ed72a['status']=_0x2bcac8('0x4c'),_0x13645b['message'][_0x2bcac8('0x1c')]=[{'filename':_0x2fb93c,'path':_0x9e4bee}]):(_0x13645b[_0x2bcac8('0x15')]['text']=_0x2bcac8('0xa'),!_0x32f6b8[_0x2bcac8('0x28')]&&(_0x3b312f=![],logger[_0x2bcac8('0x29')](_0x2bcac8('0x54'))));if(_0x3b312f)return client[_0x2bcac8('0x4f')](_0x2bcac8('0x34'),_0x13645b)[_0x2bcac8('0x17')](function(_0x1fc43f){const _0x1e62b4=_0x2bcac8;if(_0x1fc43f[_0x1e62b4('0x1a')])return logger[_0x1e62b4('0x1a')](_0x1e62b4('0x3d'),JSON[_0x1e62b4('0x16')](_0x1fc43f));return logger[_0x1e62b4('0x29')]('email\x20sent');})['catch'](function(_0x389f76){const _0x4af9dc=_0x2bcac8;return logger[_0x4af9dc('0x1a')](_0x4af9dc('0x3d'),JSON['stringify'](_0x389f76));});};}function handleError(){return function(_0x16c3fc){const _0x3cd774=a851_0x5cc5;return logger[_0x3cd774('0x1a')](JSON['stringify'](_0x16c3fc));};}function handleResult(_0xa9741b){return function(_0x2b73d2){const _0x28aca9=a851_0x5cc5;logger[_0x28aca9('0x29')](_0x28aca9('0x4b'),JSON[_0x28aca9('0x16')](_0x2b73d2)),_0xa9741b[_0x28aca9('0x30')]&&_0xa9741b[_0x28aca9('0x30')]['Smtp']&&!_[_0x28aca9('0x2d')](_0xa9741b[_0x28aca9('0x59')])&&setTimeout(handleSendEmail(_0xa9741b,_0x2b73d2),0x3c*0x3e8);};}function handleJob(_0x5116ad){return function(){const _0x12915b=a851_0x5cc5;try{if(_[_0x12915b('0x2d')](_0x5116ad[_0x12915b('0x3e')]))return logger[_0x12915b('0x29')](_0x12915b('0x45'));if(_[_0x12915b('0x2d')](_0x5116ad[_0x12915b('0x31')]))return logger[_0x12915b('0x29')](_0x12915b('0x53'));const _0x4fed94={'startDate':moment()[_0x12915b('0xd')](_0x5116ad[_0x12915b('0x3e')],_0x5116ad[_0x12915b('0x31')])[_0x12915b('0x3b')](_0x12915b('0x21')),'endDate':moment()[_0x12915b('0x3b')](_0x12915b('0x21')),'type':_0x12915b('0x3f'),'output':_0x5116ad[_0x12915b('0x2f')],'name':_0x5116ad[_0x12915b('0x2b')]};if(!_[_0x12915b('0x2d')](_0x5116ad[_0x12915b('0x18')]))return logger[_0x12915b('0x29')](_0x12915b('0x27'),_0x5116ad[_0x12915b('0x18')]),analyticDefaultReportController[_0x12915b('0x40')]({'id':_0x5116ad[_0x12915b('0x18')]},_0x4fed94)[_0x12915b('0x17')](handleResult(_0x5116ad))['catch'](handleError());if(!_[_0x12915b('0x2d')](_0x5116ad[_0x12915b('0x35')]))return logger[_0x12915b('0x29')](_0x12915b('0x9'),_0x5116ad[_0x12915b('0x35')]),analyticCustomReportController['runReport']({'id':_0x5116ad[_0x12915b('0x35')]},_0x4fed94)[_0x12915b('0x17')](handleResult(_0x5116ad))[_0x12915b('0x6')](handleError());}catch(_0x59320d){logger[_0x12915b('0x1a')](JSON[_0x12915b('0x16')](_0x59320d));}return logger['info'](_0x12915b('0x38'));};}function getJobs(_0x141578){const _0x568b20=_0x321e29,_0x4abe77={};return _0x141578&&(_0x4abe77['id']=_0x141578),db[_0x568b20('0x1f')]['findAll']({'where':_0x4abe77,'include':[{'model':db['MailAccount'],'attributes':['id',_0x568b20('0x2b'),_0x568b20('0x59')],'include':[{'model':db[_0x568b20('0x52')],'as':_0x568b20('0x7')}]}]})[_0x568b20('0x17')](function(_0x220933){const _0x867cb6=_0x568b20,_0x1fa1b0=_[_0x867cb6('0x56')](manager[_0x867cb6('0x47')]),_0x3794de=_[_0x867cb6('0x19')](_0x220933,function(_0x509a0c){const _0xfbfd0b=_0x867cb6;return _0x509a0c['id'][_0xfbfd0b('0x20')]();}),_0x1107de=_[_0x867cb6('0x42')](_0x220933,function(_0x2c7c2c){const _0x50ead5=_0x867cb6;return _0x2c7c2c['id'][_0x50ead5('0x20')]();}),_0x4be509=_0x141578?_0x3794de:_[_0x867cb6('0x1')](_0x3794de,_0x1fa1b0),_0x3daf85=_['intersection'](_0x3794de,_0x1fa1b0),_0x3bc2d4=_[_0x867cb6('0x1')](_0x1fa1b0,_0x3794de);let _0x3f7997,_0x32c209;for(_0x3f7997=0x0;_0x3f7997<_0x3bc2d4[_0x867cb6('0xb')]&&!_0x141578;_0x3f7997+=0x1){_0x32c209=_0x3bc2d4[_0x3f7997][_0x867cb6('0x20')](),manager[_0x867cb6('0x24')](_0x32c209)&&(manager['stop'](_0x32c209),manager[_0x867cb6('0x5')](_0x32c209),logger['info'](_0x867cb6('0x51'),_0x32c209));}logger[_0x867cb6('0x29')](_0x867cb6('0x3a'),JSON[_0x867cb6('0x16')](_0x4be509));for(_0x3f7997=0x0;_0x3f7997<_0x4be509[_0x867cb6('0xb')];_0x3f7997+=0x1){_0x32c209=_0x4be509[_0x3f7997]['toString'](),logger[_0x867cb6('0x29')](_0x867cb6('0x14'),_0x32c209);if(_0x141578)logger['info'](_0x867cb6('0x2a'),_0x141578),logger[_0x867cb6('0x29')](JSON[_0x867cb6('0x16')](_0x1107de[_0x32c209])),Promise[_0x867cb6('0x32')]()[_0x867cb6('0x17')](handleJob(_0x1107de[_0x32c209])),logger[_0x867cb6('0x29')](_0x867cb6('0x37'),_0x1107de[_0x32c209][_0x867cb6('0x2b')],_0x1107de[_0x32c209][_0x867cb6('0x1d')]);else{if(_0x1107de[_0x32c209][_0x867cb6('0x1d')]&&_0x1107de[_0x32c209][_0x867cb6('0x49')]&&moment()['isBetween'](_0x1107de[_0x32c209][_0x867cb6('0x5a')],_0x1107de[_0x32c209]['endAt']))manager[_0x867cb6('0x55')](_0x32c209,_0x1107de[_0x32c209][_0x867cb6('0x1d')],handleJob(_0x1107de[_0x32c209])),manager['start'](_0x32c209),logger[_0x867cb6('0x29')](_0x867cb6('0x4d'),_0x1107de[_0x32c209]['name'],_0x1107de[_0x32c209]['cron']);else manager[_0x867cb6('0x24')](_0x32c209)&&(manager[_0x867cb6('0x44')](_0x32c209),manager[_0x867cb6('0x5')](_0x32c209),logger[_0x867cb6('0x29')](_0x867cb6('0x4'),_0x1107de[_0x32c209][_0x867cb6('0x2b')],_0x1107de[_0x32c209][_0x867cb6('0x1d')]));}}for(_0x3f7997=0x0,_0x32c209;_0x3f7997<_0x3daf85['length']&&!_0x141578;_0x3f7997+=0x1){_0x32c209=_0x3daf85[_0x3f7997][_0x867cb6('0x20')](),manager[_0x867cb6('0x24')](_0x32c209)&&(_0x1107de[_0x32c209][_0x867cb6('0x1d')]&&_0x1107de[_0x32c209][_0x867cb6('0x49')]&&moment()[_0x867cb6('0x12')](_0x1107de[_0x32c209]['startAt'],_0x1107de[_0x32c209][_0x867cb6('0x2e')])?(manager[_0x867cb6('0x39')](_0x32c209,_0x1107de[_0x32c209][_0x867cb6('0x1d')],handleJob(_0x1107de[_0x32c209])),logger[_0x867cb6('0x29')](_0x867cb6('0x4a'),_0x1107de[_0x32c209][_0x867cb6('0x2b')],_0x1107de[_0x32c209][_0x867cb6('0x1d')])):(manager[_0x867cb6('0x44')](_0x32c209),manager[_0x867cb6('0x5')](_0x32c209),logger[_0x867cb6('0x29')](_0x867cb6('0x4'),_0x1107de[_0x32c209][_0x867cb6('0x2b')],_0x1107de[_0x32c209][_0x867cb6('0x1d')])));}})[_0x568b20('0x6')](function(_0x42a2f2){const _0x35a949=_0x568b20;logger['error'](JSON[_0x35a949('0x16')](_0x42a2f2));});}exports[_0x321e29('0x2c')]=function(_0x52e156){return getJobs(_0x52e156);},exports['start']=function(){return setInterval(function(){return getJobs();},0x3c*0x3e8),getJobs();}; \ No newline at end of file +const a851_0x1526=['subtractNumber','path','catch','isNil','scheduled','stop','port','isBetween','MailServerOut','join','secure','findAll','lodash','message','auth','start','subtractUnit','zip','status','sendIfEmpty','error\x20mail','email\x20sent','startAt','DefaultReportId','existsSync','../../files/reports','exists','toRun','service','stringify','Sent','host','update\x20cron','name','MailAccount','difference','add','Info\x20report:\x0a%s\x0aPlease\x20see\x20the\x20attachments\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20it.\x0a\x0a','util','add\x20cron','jobs','keyBy','savename','data','schedule','Schedule','runReport','error','deleteJob','cron-job-manager','toString','subtractUnit\x20null\x20or\x20undefined','http','Report\x20empty\x0aThis\x20is\x20an\x20automatically\x20generated\x20email\x20–\x20please\x20do\x20not\x20reply\x20to\x20this\x20email.\x0a\x0a','run','info','stop\x20cron','../logger','YYYY-MM-DD\x20HH:mm:ss','cron','moment','../../api/analyticCustomReport/analyticCustomReport.controller','user','Try\x20to\x20send\x20a\x20mail\x20to','SendMail','../../mysqldb','bcc','then','format','extname','no\x20report\x20id','length','intersection','CustomReportId','basename','Smtp','email','active'];(function(_0x201185,_0x15265f){const _0x68e9d6=function(_0x1cf4d0){while(--_0x1cf4d0){_0x201185['push'](_0x201185['shift']());}};_0x68e9d6(++_0x15265f);}(a851_0x1526,0x171));const a851_0x68e9=function(_0x201185,_0x15265f){_0x201185=_0x201185-0x0;let _0x68e9d6=a851_0x1526[_0x201185];return _0x68e9d6;};const _0x2d6449=a851_0x68e9;'use strict';const fs=require('fs'),util=require(_0x2d6449('0x3b')),path=require(_0x2d6449('0x16')),_=require(_0x2d6449('0x21')),moment=require(_0x2d6449('0x3')),CronJobManager=require(_0x2d6449('0x46')),jayson=require('jayson/promise'),logger=require(_0x2d6449('0x0'))(_0x2d6449('0x41')),db=require(_0x2d6449('0x8'))['db'],analyticCustomReportController=require(_0x2d6449('0x4')),analyticDefaultReportController=require('../../api/analyticDefaultReport/analyticDefaultReport.controller'),client=jayson['client'][_0x2d6449('0x49')]({'port':0x232b}),manager=new CronJobManager();function handleSendEmail(_0x1cf4d0,_0x2c6526){return function(){const _0x1ccbed=a851_0x68e9;logger[_0x1ccbed('0x4c')](_0x1ccbed('0x6'),_0x1cf4d0[_0x1ccbed('0x13')]);let _0x49b933=!![];const _0x4fbc3c={'tls':{'rejectUnauthorized':![]}};_0x1cf4d0[_0x1ccbed('0x37')][_0x1ccbed('0x12')][_0x1ccbed('0x31')]?_0x4fbc3c[_0x1ccbed('0x31')]=_0x1cf4d0[_0x1ccbed('0x37')]['Smtp']['service']:(_0x4fbc3c[_0x1ccbed('0x34')]=_0x1cf4d0[_0x1ccbed('0x37')][_0x1ccbed('0x12')][_0x1ccbed('0x34')],_0x4fbc3c[_0x1ccbed('0x1b')]=_0x1cf4d0[_0x1ccbed('0x37')][_0x1ccbed('0x12')][_0x1ccbed('0x1b')],_0x4fbc3c[_0x1ccbed('0x1f')]=_0x1cf4d0[_0x1ccbed('0x37')][_0x1ccbed('0x12')][_0x1ccbed('0x1f')]);_0x1cf4d0[_0x1ccbed('0x37')]['Smtp']['authentication']&&(_0x4fbc3c[_0x1ccbed('0x23')]={'user':_0x1cf4d0[_0x1ccbed('0x37')][_0x1ccbed('0x12')][_0x1ccbed('0x5')],'pass':_0x1cf4d0[_0x1ccbed('0x37')][_0x1ccbed('0x12')]['pass']});const _0x5c680e={'account':_0x4fbc3c,'message':{'from':util[_0x1ccbed('0xb')]('\x22%s\x22\x20<%s>',_0x1cf4d0[_0x1ccbed('0x37')][_0x1ccbed('0x36')],_0x1cf4d0[_0x1ccbed('0x37')]['email']||_0x1cf4d0[_0x1ccbed('0x37')][_0x1ccbed('0x12')]['user']),'to':_0x1cf4d0['email'],'cc':_0x1cf4d0['cc'],'bcc':_0x1cf4d0[_0x1ccbed('0x9')],'subject':util['format']('Report\x20%s\x20last\x20%s\x20%s',_0x2c6526[_0x1ccbed('0x36')],_0x1cf4d0[_0x1ccbed('0x15')],_0x1cf4d0['subtractUnit'])}},_0x413a5d=path[_0x1ccbed('0x1e')](__dirname,_0x1ccbed('0x2e')),_0x44fbe8=_0x2c6526['savename'],_0xdc80a6=util['format']('%s.%s',path[_0x1ccbed('0x11')](_0x2c6526[_0x1ccbed('0x3f')],path[_0x1ccbed('0xc')](_0x2c6526[_0x1ccbed('0x3f')])),_0x1ccbed('0x26')),_0x105550=path['join'](_0x413a5d,_0x44fbe8),_0x7667db=path[_0x1ccbed('0x1e')](_0x413a5d,_0xdc80a6);if(fs[_0x1ccbed('0x2d')](_0x105550))_0x2c6526[_0x1ccbed('0x27')]=_0x1ccbed('0x33'),_0x5c680e[_0x1ccbed('0x22')]['attachments']=[{'filename':_0x44fbe8,'path':_0x105550}],_0x5c680e[_0x1ccbed('0x22')]['text']=util[_0x1ccbed('0xb')](_0x1ccbed('0x3a'),JSON[_0x1ccbed('0x32')](_0x2c6526,null,0x2));else fs[_0x1ccbed('0x2d')](_0x7667db)?(_0x2c6526[_0x1ccbed('0x27')]=_0x1ccbed('0x33'),_0x5c680e['message']['attachments']=[{'filename':_0xdc80a6,'path':_0x7667db}]):(_0x5c680e[_0x1ccbed('0x22')]['text']=_0x1ccbed('0x4a'),!_0x1cf4d0[_0x1ccbed('0x28')]&&(_0x49b933=![],logger[_0x1ccbed('0x4c')]('empty\x20file,\x20email\x20not\x20sent')));if(_0x49b933)return client['request'](_0x1ccbed('0x7'),_0x5c680e)[_0x1ccbed('0xa')](function(_0x37beb9){const _0x124dc1=_0x1ccbed;if(_0x37beb9[_0x124dc1('0x44')])return logger[_0x124dc1('0x44')]('error\x20mail',JSON[_0x124dc1('0x32')](_0x37beb9));return logger['info'](_0x124dc1('0x2a'));})[_0x1ccbed('0x17')](function(_0x59c012){const _0x1bb8e9=_0x1ccbed;return logger['error'](_0x1bb8e9('0x29'),JSON['stringify'](_0x59c012));});};}function handleError(){return function(_0x2ddc74){const _0x5bc6ee=a851_0x68e9;return logger[_0x5bc6ee('0x44')](JSON[_0x5bc6ee('0x32')](_0x2ddc74));};}function handleResult(_0x43d0c4){return function(_0x30b538){const _0x40aa11=a851_0x68e9;logger[_0x40aa11('0x4c')](_0x40aa11('0x40'),JSON[_0x40aa11('0x32')](_0x30b538)),_0x43d0c4[_0x40aa11('0x37')]&&_0x43d0c4[_0x40aa11('0x37')][_0x40aa11('0x12')]&&!_[_0x40aa11('0x18')](_0x43d0c4[_0x40aa11('0x13')])&&setTimeout(handleSendEmail(_0x43d0c4,_0x30b538),0x3c*0x3e8);};}function handleJob(_0x21fb4d){return function(){const _0xd68b10=a851_0x68e9;try{if(_['isNil'](_0x21fb4d[_0xd68b10('0x15')]))return logger[_0xd68b10('0x4c')]('subtractNumber\x20null\x20or\x20undefined');if(_[_0xd68b10('0x18')](_0x21fb4d[_0xd68b10('0x25')]))return logger['info'](_0xd68b10('0x48'));const _0xe12c7={'startDate':moment()['subtract'](_0x21fb4d[_0xd68b10('0x15')],_0x21fb4d[_0xd68b10('0x25')])[_0xd68b10('0xb')](_0xd68b10('0x1')),'endDate':moment()[_0xd68b10('0xb')](_0xd68b10('0x1')),'type':_0xd68b10('0x19'),'output':_0x21fb4d['output'],'name':_0x21fb4d[_0xd68b10('0x36')]};if(!_[_0xd68b10('0x18')](_0x21fb4d[_0xd68b10('0x2c')]))return logger[_0xd68b10('0x4c')]('exec\x20defaul\x20report\x20id:%s',_0x21fb4d[_0xd68b10('0x2c')]),analyticDefaultReportController[_0xd68b10('0x43')]({'id':_0x21fb4d[_0xd68b10('0x2c')]},_0xe12c7)[_0xd68b10('0xa')](handleResult(_0x21fb4d))[_0xd68b10('0x17')](handleError());if(!_[_0xd68b10('0x18')](_0x21fb4d[_0xd68b10('0x10')]))return logger[_0xd68b10('0x4c')]('exec\x20custom\x20report\x20id:%s',_0x21fb4d[_0xd68b10('0x10')]),analyticCustomReportController['runReport']({'id':_0x21fb4d[_0xd68b10('0x10')]},_0xe12c7)[_0xd68b10('0xa')](handleResult(_0x21fb4d))[_0xd68b10('0x17')](handleError());}catch(_0x397f3c){logger['error'](JSON['stringify'](_0x397f3c));}return logger['info'](_0xd68b10('0xd'));};}function getJobs(_0x1f75fb){const _0x59e23a=_0x2d6449,_0x3edc46={};return _0x1f75fb&&(_0x3edc46['id']=_0x1f75fb),db[_0x59e23a('0x42')][_0x59e23a('0x20')]({'where':_0x3edc46,'include':[{'model':db[_0x59e23a('0x37')],'attributes':['id',_0x59e23a('0x36'),_0x59e23a('0x13')],'include':[{'model':db[_0x59e23a('0x1d')],'as':_0x59e23a('0x12')}]}]})[_0x59e23a('0xa')](function(_0x1d4d70){const _0x3a4eba=_0x59e23a,_0x233f4a=_['keys'](manager[_0x3a4eba('0x3d')]),_0x46bf66=_['map'](_0x1d4d70,function(_0x4fdedc){const _0x4ffd19=_0x3a4eba;return _0x4fdedc['id'][_0x4ffd19('0x47')]();}),_0x4763f2=_[_0x3a4eba('0x3e')](_0x1d4d70,function(_0x387000){return _0x387000['id']['toString']();}),_0x13b962=_0x1f75fb?_0x46bf66:_[_0x3a4eba('0x38')](_0x46bf66,_0x233f4a),_0x5d1ece=_[_0x3a4eba('0xf')](_0x46bf66,_0x233f4a),_0x4e9d74=_[_0x3a4eba('0x38')](_0x233f4a,_0x46bf66);let _0x352cf7,_0x104fb1;for(_0x352cf7=0x0;_0x352cf7<_0x4e9d74[_0x3a4eba('0xe')]&&!_0x1f75fb;_0x352cf7+=0x1){_0x104fb1=_0x4e9d74[_0x352cf7][_0x3a4eba('0x47')](),manager[_0x3a4eba('0x2f')](_0x104fb1)&&(manager[_0x3a4eba('0x1a')](_0x104fb1),manager[_0x3a4eba('0x45')](_0x104fb1),logger[_0x3a4eba('0x4c')]('delete\x20cron',_0x104fb1));}logger[_0x3a4eba('0x4c')](_0x3a4eba('0x30'),JSON[_0x3a4eba('0x32')](_0x13b962));for(_0x352cf7=0x0;_0x352cf7<_0x13b962[_0x3a4eba('0xe')];_0x352cf7+=0x1){_0x104fb1=_0x13b962[_0x352cf7][_0x3a4eba('0x47')](),logger['info']('index',_0x104fb1);if(_0x1f75fb)logger[_0x3a4eba('0x4c')]('my\x20id',_0x1f75fb),logger[_0x3a4eba('0x4c')](JSON['stringify'](_0x4763f2[_0x104fb1])),Promise['resolve']()[_0x3a4eba('0xa')](handleJob(_0x4763f2[_0x104fb1])),logger[_0x3a4eba('0x4c')]('run\x20job',_0x4763f2[_0x104fb1]['name'],_0x4763f2[_0x104fb1][_0x3a4eba('0x2')]);else{if(_0x4763f2[_0x104fb1][_0x3a4eba('0x2')]&&_0x4763f2[_0x104fb1][_0x3a4eba('0x14')]&&moment()['isBetween'](_0x4763f2[_0x104fb1][_0x3a4eba('0x2b')],_0x4763f2[_0x104fb1]['endAt']))manager[_0x3a4eba('0x39')](_0x104fb1,_0x4763f2[_0x104fb1][_0x3a4eba('0x2')],handleJob(_0x4763f2[_0x104fb1])),manager[_0x3a4eba('0x24')](_0x104fb1),logger['info'](_0x3a4eba('0x3c'),_0x4763f2[_0x104fb1]['name'],_0x4763f2[_0x104fb1][_0x3a4eba('0x2')]);else manager[_0x3a4eba('0x2f')](_0x104fb1)&&(manager[_0x3a4eba('0x1a')](_0x104fb1),manager[_0x3a4eba('0x45')](_0x104fb1),logger[_0x3a4eba('0x4c')](_0x3a4eba('0x4d'),_0x4763f2[_0x104fb1][_0x3a4eba('0x36')],_0x4763f2[_0x104fb1][_0x3a4eba('0x2')]));}}for(_0x352cf7=0x0,_0x104fb1;_0x352cf7<_0x5d1ece['length']&&!_0x1f75fb;_0x352cf7+=0x1){_0x104fb1=_0x5d1ece[_0x352cf7][_0x3a4eba('0x47')](),manager[_0x3a4eba('0x2f')](_0x104fb1)&&(_0x4763f2[_0x104fb1][_0x3a4eba('0x2')]&&_0x4763f2[_0x104fb1][_0x3a4eba('0x14')]&&moment()[_0x3a4eba('0x1c')](_0x4763f2[_0x104fb1][_0x3a4eba('0x2b')],_0x4763f2[_0x104fb1]['endAt'])?(manager['update'](_0x104fb1,_0x4763f2[_0x104fb1][_0x3a4eba('0x2')],handleJob(_0x4763f2[_0x104fb1])),logger[_0x3a4eba('0x4c')](_0x3a4eba('0x35'),_0x4763f2[_0x104fb1][_0x3a4eba('0x36')],_0x4763f2[_0x104fb1][_0x3a4eba('0x2')])):(manager[_0x3a4eba('0x1a')](_0x104fb1),manager[_0x3a4eba('0x45')](_0x104fb1),logger[_0x3a4eba('0x4c')](_0x3a4eba('0x4d'),_0x4763f2[_0x104fb1][_0x3a4eba('0x36')],_0x4763f2[_0x104fb1][_0x3a4eba('0x2')])));}})[_0x59e23a('0x17')](function(_0x103789){const _0x4e32d9=_0x59e23a;logger[_0x4e32d9('0x44')](JSON[_0x4e32d9('0x32')](_0x103789));});}exports[_0x2d6449('0x4b')]=function(_0xbbf88a){return getJobs(_0xbbf88a);},exports[_0x2d6449('0x24')]=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 f142b3e..2f288f4 100644 --- a/server/config/schedule/transcribe.js +++ b/server/config/schedule/transcribe.js @@ -1 +1 @@ -const a852_0x2c41=['bucket','TranscriptionJob','Mixed','findOne','results','name','language','CloudProvider','Positive','format','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','Sentiment\x20Analysis\x20not\x20requested','Comprehend','request-promise-native','inspect','[RECORDING:%d]\x20Sentiment\x20Analysis\x20available','transcribeAccountId','push','transcribeRegion','VoiceRecording','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','Sentiment\x20Analysis\x20not\x20configured','fileText','Transcript\x20not\x20available','../../mysqldb','FAILED','COMPLETED','detectSentiment','then','sentimentAccountId','[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)','transcribeName','TranscriptionJobStatus','length','Cloud\x20Provider\x20not\x20available','transcribe','tempSentiment','[RECORDING:%d]\x20Transcript\x20downloaded','Transcript','findAll','TranscribeService','SentimentScore','TranscriptFileUri','data2','error','info','all','Setting','sequelize','Settings\x20not\x20available','Negative','Cloud\x20Provider\x20not\x20configured','getTranscriptionJob','Sentiment','data1','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','sentimentRegion','substring','SequelizeValidationError','catch','sentiment','start','transcripts','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','update','util','resolve','Neutral'];(function(_0x3970fa,_0x2c4174){const _0x3ef5f8=function(_0x95dc12){while(--_0x95dc12){_0x3970fa['push'](_0x3970fa['shift']());}};_0x3ef5f8(++_0x2c4174);}(a852_0x2c41,0x1a7));const a852_0x3ef5=function(_0x3970fa,_0x2c4174){_0x3970fa=_0x3970fa-0x0;let _0x3ef5f8=a852_0x2c41[_0x3970fa];return _0x3ef5f8;};const _0x5ee59f=a852_0x3ef5,AWS=require('aws-sdk'),rp=require(_0x5ee59f('0x42')),util=require(_0x5ee59f('0x32')),db=require(_0x5ee59f('0x9'))['db'],{ValidationError}=require(_0x5ee59f('0x21')),logger=require('../../config/logger')(_0x5ee59f('0x14'));function getTranscriptionJob(_0x95dc12,_0x20ce32,_0x74a1fd,_0x9e220e){return new Promise(function(_0x14cc7c,_0x46cb13){const _0x4a4772=a852_0x3ef5,_0x48ba2b=new AWS[(_0x4a4772('0x19'))]({'accessKeyId':_0x20ce32,'secretAccessKey':_0x95dc12,'region':_0x74a1fd});_0x48ba2b[_0x4a4772('0x25')]({'TranscriptionJobName':_0x9e220e},function(_0x5810ba,_0x33697f){return _0x5810ba?_0x46cb13(_0x5810ba):_0x14cc7c(_0x33697f);});});}function sentiment(_0x3762d1,_0x5b0efa,_0x2007c8,_0x39a700,_0x176325){return new Promise(function(_0x34b906,_0x503d55){const _0x7a6b23=a852_0x3ef5,_0x35ffa1=new AWS[(_0x7a6b23('0x41'))]({'accessKeyId':_0x5b0efa,'secretAccessKey':_0x3762d1,'region':_0x2007c8});_0x35ffa1[_0x7a6b23('0xc')]({'Text':_0x39a700,'LanguageCode':_0x176325[_0x7a6b23('0x2a')](0x0,0x2)},function(_0x1465b9,_0xeb9c5){return _0x1465b9?_0x503d55(_0x1465b9):_0x34b906(_0xeb9c5);});});}function checkTranscribeJob(_0xb8084,_0xec08b1,_0x706f86){let _0x116ca0;return new Promise(function(_0x37b873){const _0x12bafc=a852_0x3ef5;return logger['info'](util['format'](_0x12bafc('0xf'),_0xb8084['id'],_0xb8084[_0x12bafc('0x10')])),getTranscriptionJob(_0x706f86['data1'],_0x706f86[_0x12bafc('0x1c')],_0xec08b1[_0x12bafc('0x3')],_0xb8084['transcribeName'])[_0x12bafc('0xd')](function(_0x363217){const _0x1ed11b=_0x12bafc;logger[_0x1ed11b('0x1e')](util[_0x1ed11b('0x3e')]('[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s',_0xb8084['id'],_0xb8084[_0x1ed11b('0x10')],_0x363217[_0x1ed11b('0x36')][_0x1ed11b('0x11')]));if(!_0xb8084[_0x1ed11b('0x7')])switch(_0x363217[_0x1ed11b('0x36')][_0x1ed11b('0x11')]){case _0x1ed11b('0xb'):{const _0x1e4d59={'transcribeStatus':_0x363217[_0x1ed11b('0x36')][_0x1ed11b('0x11')],'fileUri':_0x363217[_0x1ed11b('0x36')][_0x1ed11b('0x17')]['TranscriptFileUri']};return logger[_0x1ed11b('0x1e')](util['format']('[RECORDING:%d]\x20Get\x20transcript',_0xb8084['id'])),rp({'uri':_0x363217[_0x1ed11b('0x36')][_0x1ed11b('0x17')][_0x1ed11b('0x1b')],'json':!![]})[_0x1ed11b('0xd')](function(_0x518f2d){const _0x5c8aeb=_0x1ed11b;logger['info'](util[_0x5c8aeb('0x3e')](_0x5c8aeb('0x16'),_0xb8084['id']));if(_0x518f2d&&_0x518f2d[_0x5c8aeb('0x39')]&&_0x518f2d['results'][_0x5c8aeb('0x2f')]&&_0x518f2d[_0x5c8aeb('0x39')][_0x5c8aeb('0x2f')]['length']){_0x1e4d59[_0x5c8aeb('0x7')]='';for(let _0x4f720b=0x0;_0x4f720b<_0x518f2d['results'][_0x5c8aeb('0x2f')]['length'];_0x4f720b++){_0x1e4d59[_0x5c8aeb('0x7')]+=_0x518f2d[_0x5c8aeb('0x39')][_0x5c8aeb('0x2f')][_0x4f720b]['transcript']+'';}}return _0xb8084[_0x5c8aeb('0x31')](_0x1e4d59);})[_0x1ed11b('0xd')](function(){const _0x5154c5=_0x1ed11b;logger[_0x5154c5('0x1e')](util[_0x5154c5('0x3e')]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0xb8084['id']));if(!_0xb8084[_0x5154c5('0x15')])throw new ValidationError(_0x5154c5('0x40'));if(!_0xec08b1['sentiment']||!_0xec08b1[_0x5154c5('0xe')]||!_0xec08b1[_0x5154c5('0x29')]||!_0xec08b1[_0x5154c5('0x3b')]||!_0xec08b1[_0x5154c5('0x35')])throw new ValidationError(_0x5154c5('0x6'));if(!_0x1e4d59[_0x5154c5('0x7')])throw new Error(_0x5154c5('0x8'));return _0xec08b1[_0x5154c5('0xe')]===_0x706f86['id']?_0x706f86:db[_0x5154c5('0x3c')]['findOne']({'where':{'id':_0xec08b1['sentimentAccountId']}});})[_0x1ed11b('0xd')](function(_0x6859bc){const _0x19ef66=_0x1ed11b;if(!_0x6859bc)throw new ValidationError(_0x19ef66('0x13'));if(!_0x6859bc['data1']||!_0x6859bc[_0x19ef66('0x1c')])throw new ValidationError(_0x19ef66('0x24'));return _0x116ca0=_0x6859bc,logger[_0x19ef66('0x1e')](util[_0x19ef66('0x3e')](_0x19ef66('0x5'),_0xb8084['id'])),sentiment(_0x116ca0['data1'],_0x116ca0[_0x19ef66('0x1c')],_0xec08b1['sentimentRegion'],_0x1e4d59['fileText'],_0xec08b1[_0x19ef66('0x3b')]);})[_0x1ed11b('0xd')](function(_0x1238db){const _0x109b85=_0x1ed11b;return logger['info'](util['format'](_0x109b85('0x0'),_0xb8084['id'])),_0xb8084[_0x109b85('0x31')]({'sentiment':_0x1238db[_0x109b85('0x26')],'sPositive':_0x1238db['SentimentScore']['Positive'],'sNegative':_0x1238db[_0x109b85('0x1a')]['Negative'],'sMixed':_0x1238db['SentimentScore'][_0x109b85('0x37')],'sNeutral':_0x1238db['SentimentScore']['Neutral']});})[_0x1ed11b('0xd')](function(){const _0x3d1954=_0x1ed11b;logger[_0x3d1954('0x1e')](util['format']('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0xb8084['id'])),_0x37b873();});}case'FAILED':return _0xb8084[_0x1ed11b('0x31')]({'transcribeStatus':_0x1ed11b('0xa'),'failureReason':_0x363217[_0x1ed11b('0x36')]['FailureReason']})['then'](function(){const _0x133d75=_0x1ed11b;logger['info'](util[_0x133d75('0x3e')](_0x133d75('0x30'),_0xb8084['id'])),_0x37b873();});default:logger[_0x1ed11b('0x1e')](util['format'](_0x1ed11b('0x3f'),_0xb8084['id']));break;}else return Promise[_0x1ed11b('0x33')]()['then'](function(){const _0x5beaa1=_0x1ed11b;if(!_0xb8084[_0x5beaa1('0x15')])throw new ValidationError('Sentiment\x20Analysis\x20not\x20requested');if(!_0xec08b1[_0x5beaa1('0x2d')]||!_0xec08b1[_0x5beaa1('0xe')]||!_0xec08b1[_0x5beaa1('0x29')]||!_0xec08b1[_0x5beaa1('0x3b')]||!_0xec08b1[_0x5beaa1('0x35')])throw new ValidationError('Sentiment\x20Analysis\x20not\x20configured');if(!_0xb8084['fileText'])throw new Error(_0x5beaa1('0x8'));return _0xec08b1[_0x5beaa1('0xe')]===_0x706f86['id']?_0x706f86:db[_0x5beaa1('0x3c')][_0x5beaa1('0x38')]({'where':{'id':_0xec08b1[_0x5beaa1('0xe')]}});})[_0x1ed11b('0xd')](function(_0x7ddc53){const _0x1b3e28=_0x1ed11b;if(!_0x7ddc53)throw new ValidationError('Cloud\x20Provider\x20not\x20available');if(!_0x7ddc53[_0x1b3e28('0x27')]||!_0x7ddc53[_0x1b3e28('0x1c')])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0x116ca0=_0x7ddc53,logger['info'](util[_0x1b3e28('0x3e')](_0x1b3e28('0x5'),_0xb8084['id'])),sentiment(_0x116ca0[_0x1b3e28('0x27')],_0x116ca0[_0x1b3e28('0x1c')],_0xec08b1[_0x1b3e28('0x29')],_0xb8084[_0x1b3e28('0x7')],_0xec08b1[_0x1b3e28('0x3b')]);})['then'](function(_0x1e664e){const _0x480da2=_0x1ed11b;return logger[_0x480da2('0x1e')](util[_0x480da2('0x3e')](_0x480da2('0x0'),_0xb8084['id'])),_0xb8084['update']({'sentiment':_0x1e664e['Sentiment'],'sPositive':_0x1e664e['SentimentScore'][_0x480da2('0x3d')],'sNegative':_0x1e664e['SentimentScore'][_0x480da2('0x23')],'sMixed':_0x1e664e[_0x480da2('0x1a')][_0x480da2('0x37')],'sNeutral':_0x1e664e[_0x480da2('0x1a')][_0x480da2('0x34')],'transcribeStatus':'COMPLETED'});})[_0x1ed11b('0xd')](function(){logger['info'](util['format']('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0xb8084['id'])),_0x37b873();});})[_0x12bafc('0x2c')](function(_0x581b7e){const _0x4741b9=_0x12bafc;_0x581b7e&&((!_0x581b7e[_0x4741b9('0x3a')]||_0x581b7e[_0x4741b9('0x3a')]!==_0x4741b9('0x2b'))&&logger[_0x4741b9('0x1d')](util[_0x4741b9('0x3e')](_0x4741b9('0x28'),_0xb8084['id']),util[_0x4741b9('0x43')](_0x581b7e,{'showHidden':![],'depth':null}))),_0x37b873();});});}function checkTranscribe(){const _0x682508=_0x5ee59f;let _0x45abf2,_0x2fde90,_0xf708f1;return db[_0x682508('0x4')][_0x682508('0x18')]({'where':{'transcribeStatus':'IN_PROGRESS'}})[_0x682508('0xd')](function(_0x185d40){const _0x1d42e3=_0x682508;if(!_0x185d40||!_0x185d40[_0x1d42e3('0x12')])throw new ValidationError('No\x20transcribe\x20job\x20to\x20check');return _0x45abf2=_0x185d40,db[_0x1d42e3('0x20')][_0x1d42e3('0x38')]({'where':{'id':0x1}});})['then'](function(_0x28ceb8){const _0x54405f=_0x682508;if(!_0x28ceb8)throw new ValidationError(_0x54405f('0x22'));_0x2fde90=_0x28ceb8;if(!_0x2fde90[_0x54405f('0x14')]||!_0x2fde90[_0x54405f('0x1')]||!_0x2fde90[_0x54405f('0x3')]||!_0x2fde90[_0x54405f('0x3b')]||!_0x2fde90[_0x54405f('0x35')])throw new ValidationError('Transcribe\x20not\x20configured');return db[_0x54405f('0x3c')][_0x54405f('0x38')]({'where':{'id':_0x2fde90['transcribeAccountId']}});})[_0x682508('0xd')](function(_0x57c383){const _0x4dfcd9=_0x682508;if(!_0x57c383)throw new ValidationError(_0x4dfcd9('0x13'));if(!_0x57c383[_0x4dfcd9('0x27')]||!_0x57c383[_0x4dfcd9('0x1c')])throw new ValidationError(_0x4dfcd9('0x24'));_0xf708f1=_0x57c383;const _0x575c3f=[];return _0x45abf2['forEach'](function(_0x185a6b){const _0x42a681=_0x4dfcd9;_0x575c3f[_0x42a681('0x2')](checkTranscribeJob(_0x185a6b,_0x2fde90,_0xf708f1));}),Promise[_0x4dfcd9('0x1f')](_0x575c3f);})[_0x682508('0x2c')](function(_0x37c7bd){const _0x677fe4=_0x682508;_0x37c7bd&&((!_0x37c7bd[_0x677fe4('0x3a')]||_0x37c7bd[_0x677fe4('0x3a')]!==_0x677fe4('0x2b'))&&logger[_0x677fe4('0x1d')](util['inspect'](_0x37c7bd,{'showHidden':![],'depth':null})));});}exports[_0x5ee59f('0x2e')]=function(){return setInterval(function(){return checkTranscribe();},0x3c*0x3e8),checkTranscribe();}; \ No newline at end of file +const a852_0x340a=['sentimentRegion','Positive','[RECORDING:%d]\x20Sentiment\x20Analysis\x20available','data2','Sentiment\x20Analysis\x20not\x20requested','all','TranscriptionJobStatus','resolve','Transcribe\x20not\x20configured','[RECORDING:%d]\x20Get\x20status\x20for\x20transcript\x20job\x20(%s)','TranscriptionJob','sentiment','fileText','transcripts','Mixed','sequelize','VoiceRecording','inspect','findOne','FailureReason','IN_PROGRESS','[RECORDING:%d]\x20Transcript\x20Job\x20status\x20not\x20managed','Sentiment\x20Analysis\x20not\x20configured','TranscriptFileUri','[RECORDING:%d]\x20Status\x20of\x20transcript\x20job\x20(%s):\x20%s','detectSentiment','start','sentimentAccountId','[RECORDING:%d]\x20Error\x20running\x20Transcribe\x20&\x20Sentiment\x20Analysis','tempSentiment','results','FAILED','bucket','Transcript','SequelizeValidationError','format','transcript','length','CloudProvider','[RECORDING:%d]\x20Transcript\x20downloaded','error','forEach','update','Cloud\x20Provider\x20not\x20available','../../config/logger','Negative','TranscribeService','data1','language','Settings\x20not\x20available','[RECORDING:%d]\x20Requesting\x20sentiment\x20analysis','COMPLETED','[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated','Transcript\x20not\x20available','transcribe','catch','SentimentScore','substring','transcribeName','then','transcribeAccountId','Comprehend','../../mysqldb','name','info','getTranscriptionJob','Neutral','Sentiment'];(function(_0x14e496,_0x340ac3){const _0xaf88ef=function(_0x12d392){while(--_0x12d392){_0x14e496['push'](_0x14e496['shift']());}};_0xaf88ef(++_0x340ac3);}(a852_0x340a,0x1e7));const a852_0xaf88=function(_0x14e496,_0x340ac3){_0x14e496=_0x14e496-0x0;let _0xaf88ef=a852_0x340a[_0x14e496];return _0xaf88ef;};const _0x37ab0e=a852_0xaf88,AWS=require('aws-sdk'),rp=require('request-promise-native'),util=require('util'),db=require(_0x37ab0e('0x33'))['db'],{ValidationError}=require(_0x37ab0e('0x4')),logger=require(_0x37ab0e('0x21'))('transcribe');function getTranscriptionJob(_0x12d392,_0x27a4e8,_0x3c21ab,_0x4b7f84){return new Promise(function(_0x4ebfe6,_0x41b6e6){const _0x53505e=a852_0xaf88,_0x11fb5e=new AWS[(_0x53505e('0x23'))]({'accessKeyId':_0x27a4e8,'secretAccessKey':_0x12d392,'region':_0x3c21ab});_0x11fb5e[_0x53505e('0x36')]({'TranscriptionJobName':_0x4b7f84},function(_0xc3605a,_0x95f3ac){return _0xc3605a?_0x41b6e6(_0xc3605a):_0x4ebfe6(_0x95f3ac);});});}function sentiment(_0x1e9183,_0x53b2a9,_0x1edc53,_0x48a024,_0x3818a1){return new Promise(function(_0x42dde1,_0x5576f6){const _0x2fb422=a852_0xaf88,_0x222fc9=new AWS[(_0x2fb422('0x32'))]({'accessKeyId':_0x53b2a9,'secretAccessKey':_0x1e9183,'region':_0x1edc53});_0x222fc9[_0x2fb422('0xe')]({'Text':_0x48a024,'LanguageCode':_0x3818a1[_0x2fb422('0x2e')](0x0,0x2)},function(_0x2202ef,_0x4f5c3d){return _0x2202ef?_0x5576f6(_0x2202ef):_0x42dde1(_0x4f5c3d);});});}function checkTranscribeJob(_0x1f57d9,_0x3e9715,_0x2c2a44){let _0x573059;return new Promise(function(_0x4d8b7b){const _0x4fdf14=a852_0xaf88;return logger[_0x4fdf14('0x35')](util[_0x4fdf14('0x18')](_0x4fdf14('0x42'),_0x1f57d9['id'],_0x1f57d9['transcribeName'])),getTranscriptionJob(_0x2c2a44['data1'],_0x2c2a44[_0x4fdf14('0x3c')],_0x3e9715['transcribeRegion'],_0x1f57d9[_0x4fdf14('0x2f')])[_0x4fdf14('0x30')](function(_0x4c08cb){const _0x14f9ca=_0x4fdf14;logger[_0x14f9ca('0x35')](util[_0x14f9ca('0x18')](_0x14f9ca('0xd'),_0x1f57d9['id'],_0x1f57d9['transcribeName'],_0x4c08cb[_0x14f9ca('0x43')]['TranscriptionJobStatus']));if(!_0x1f57d9[_0x14f9ca('0x1')])switch(_0x4c08cb['TranscriptionJob'][_0x14f9ca('0x3f')]){case _0x14f9ca('0x28'):{const _0xbcbeea={'transcribeStatus':_0x4c08cb['TranscriptionJob'][_0x14f9ca('0x3f')],'fileUri':_0x4c08cb[_0x14f9ca('0x43')][_0x14f9ca('0x16')][_0x14f9ca('0xc')]};return logger[_0x14f9ca('0x35')](util[_0x14f9ca('0x18')]('[RECORDING:%d]\x20Get\x20transcript',_0x1f57d9['id'])),rp({'uri':_0x4c08cb[_0x14f9ca('0x43')][_0x14f9ca('0x16')]['TranscriptFileUri'],'json':!![]})[_0x14f9ca('0x30')](function(_0x2df92d){const _0x1dbd23=_0x14f9ca;logger[_0x1dbd23('0x35')](util['format'](_0x1dbd23('0x1c'),_0x1f57d9['id']));if(_0x2df92d&&_0x2df92d[_0x1dbd23('0x13')]&&_0x2df92d[_0x1dbd23('0x13')][_0x1dbd23('0x2')]&&_0x2df92d['results'][_0x1dbd23('0x2')][_0x1dbd23('0x1a')]){_0xbcbeea[_0x1dbd23('0x1')]='';for(let _0x3a4ced=0x0;_0x3a4ced<_0x2df92d[_0x1dbd23('0x13')][_0x1dbd23('0x2')][_0x1dbd23('0x1a')];_0x3a4ced++){_0xbcbeea['fileText']+=_0x2df92d[_0x1dbd23('0x13')][_0x1dbd23('0x2')][_0x3a4ced][_0x1dbd23('0x19')]+'';}}return _0x1f57d9[_0x1dbd23('0x1f')](_0xbcbeea);})[_0x14f9ca('0x30')](function(){const _0x4a6169=_0x14f9ca;logger[_0x4a6169('0x35')](util[_0x4a6169('0x18')]('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x1f57d9['id']));if(!_0x1f57d9[_0x4a6169('0x12')])throw new ValidationError('Sentiment\x20Analysis\x20not\x20requested');if(!_0x3e9715[_0x4a6169('0x0')]||!_0x3e9715[_0x4a6169('0x10')]||!_0x3e9715['sentimentRegion']||!_0x3e9715[_0x4a6169('0x25')]||!_0x3e9715[_0x4a6169('0x15')])throw new ValidationError(_0x4a6169('0xb'));if(!_0xbcbeea[_0x4a6169('0x1')])throw new Error(_0x4a6169('0x2a'));return _0x3e9715[_0x4a6169('0x10')]===_0x2c2a44['id']?_0x2c2a44:db[_0x4a6169('0x1b')]['findOne']({'where':{'id':_0x3e9715[_0x4a6169('0x10')]}});})[_0x14f9ca('0x30')](function(_0x25fbae){const _0x5b9d0c=_0x14f9ca;if(!_0x25fbae)throw new ValidationError(_0x5b9d0c('0x20'));if(!_0x25fbae[_0x5b9d0c('0x24')]||!_0x25fbae[_0x5b9d0c('0x3c')])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0x573059=_0x25fbae,logger[_0x5b9d0c('0x35')](util[_0x5b9d0c('0x18')](_0x5b9d0c('0x27'),_0x1f57d9['id'])),sentiment(_0x573059[_0x5b9d0c('0x24')],_0x573059[_0x5b9d0c('0x3c')],_0x3e9715[_0x5b9d0c('0x39')],_0xbcbeea[_0x5b9d0c('0x1')],_0x3e9715[_0x5b9d0c('0x25')]);})[_0x14f9ca('0x30')](function(_0x5541e1){const _0xaf7b2e=_0x14f9ca;return logger[_0xaf7b2e('0x35')](util[_0xaf7b2e('0x18')](_0xaf7b2e('0x3b'),_0x1f57d9['id'])),_0x1f57d9[_0xaf7b2e('0x1f')]({'sentiment':_0x5541e1[_0xaf7b2e('0x38')],'sPositive':_0x5541e1[_0xaf7b2e('0x2d')][_0xaf7b2e('0x3a')],'sNegative':_0x5541e1[_0xaf7b2e('0x2d')][_0xaf7b2e('0x22')],'sMixed':_0x5541e1['SentimentScore'][_0xaf7b2e('0x3')],'sNeutral':_0x5541e1[_0xaf7b2e('0x2d')]['Neutral']});})['then'](function(){const _0x22fc10=_0x14f9ca;logger[_0x22fc10('0x35')](util['format'](_0x22fc10('0x29'),_0x1f57d9['id'])),_0x4d8b7b();});}case _0x14f9ca('0x14'):return _0x1f57d9[_0x14f9ca('0x1f')]({'transcribeStatus':'FAILED','failureReason':_0x4c08cb[_0x14f9ca('0x43')][_0x14f9ca('0x8')]})['then'](function(){const _0xa1d3c2=_0x14f9ca;logger[_0xa1d3c2('0x35')](util['format']('[RECORDING:%d]\x20Voice\x20Recording\x20entry\x20updated',_0x1f57d9['id'])),_0x4d8b7b();});default:logger[_0x14f9ca('0x35')](util[_0x14f9ca('0x18')](_0x14f9ca('0xa'),_0x1f57d9['id']));break;}else return Promise[_0x14f9ca('0x40')]()[_0x14f9ca('0x30')](function(){const _0x3223ed=_0x14f9ca;if(!_0x1f57d9['tempSentiment'])throw new ValidationError(_0x3223ed('0x3d'));if(!_0x3e9715[_0x3223ed('0x0')]||!_0x3e9715[_0x3223ed('0x10')]||!_0x3e9715[_0x3223ed('0x39')]||!_0x3e9715[_0x3223ed('0x25')]||!_0x3e9715[_0x3223ed('0x15')])throw new ValidationError('Sentiment\x20Analysis\x20not\x20configured');if(!_0x1f57d9[_0x3223ed('0x1')])throw new Error('Transcript\x20not\x20available');return _0x3e9715[_0x3223ed('0x10')]===_0x2c2a44['id']?_0x2c2a44:db[_0x3223ed('0x1b')][_0x3223ed('0x7')]({'where':{'id':_0x3e9715[_0x3223ed('0x10')]}});})[_0x14f9ca('0x30')](function(_0x50ef5f){const _0x2744f4=_0x14f9ca;if(!_0x50ef5f)throw new ValidationError(_0x2744f4('0x20'));if(!_0x50ef5f['data1']||!_0x50ef5f[_0x2744f4('0x3c')])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');return _0x573059=_0x50ef5f,logger[_0x2744f4('0x35')](util['format'](_0x2744f4('0x27'),_0x1f57d9['id'])),sentiment(_0x573059[_0x2744f4('0x24')],_0x573059[_0x2744f4('0x3c')],_0x3e9715['sentimentRegion'],_0x1f57d9[_0x2744f4('0x1')],_0x3e9715['language']);})[_0x14f9ca('0x30')](function(_0x224079){const _0x1c91e1=_0x14f9ca;return logger['info'](util[_0x1c91e1('0x18')](_0x1c91e1('0x3b'),_0x1f57d9['id'])),_0x1f57d9[_0x1c91e1('0x1f')]({'sentiment':_0x224079[_0x1c91e1('0x38')],'sPositive':_0x224079[_0x1c91e1('0x2d')]['Positive'],'sNegative':_0x224079[_0x1c91e1('0x2d')][_0x1c91e1('0x22')],'sMixed':_0x224079[_0x1c91e1('0x2d')][_0x1c91e1('0x3')],'sNeutral':_0x224079[_0x1c91e1('0x2d')][_0x1c91e1('0x37')],'transcribeStatus':_0x1c91e1('0x28')});})['then'](function(){const _0x2b1de2=_0x14f9ca;logger[_0x2b1de2('0x35')](util[_0x2b1de2('0x18')](_0x2b1de2('0x29'),_0x1f57d9['id'])),_0x4d8b7b();});})['catch'](function(_0x425e4f){const _0x471a8b=_0x4fdf14;_0x425e4f&&((!_0x425e4f['name']||_0x425e4f[_0x471a8b('0x34')]!==_0x471a8b('0x17'))&&logger[_0x471a8b('0x1d')](util[_0x471a8b('0x18')](_0x471a8b('0x11'),_0x1f57d9['id']),util[_0x471a8b('0x6')](_0x425e4f,{'showHidden':![],'depth':null}))),_0x4d8b7b();});});}function checkTranscribe(){const _0x5b8f64=_0x37ab0e;let _0x1c6522,_0x459ada,_0x258dee;return db[_0x5b8f64('0x5')]['findAll']({'where':{'transcribeStatus':_0x5b8f64('0x9')}})[_0x5b8f64('0x30')](function(_0x6f6bcf){const _0x24b1cf=_0x5b8f64;if(!_0x6f6bcf||!_0x6f6bcf[_0x24b1cf('0x1a')])throw new ValidationError('No\x20transcribe\x20job\x20to\x20check');return _0x1c6522=_0x6f6bcf,db['Setting'][_0x24b1cf('0x7')]({'where':{'id':0x1}});})[_0x5b8f64('0x30')](function(_0x517e1c){const _0x31d1c7=_0x5b8f64;if(!_0x517e1c)throw new ValidationError(_0x31d1c7('0x26'));_0x459ada=_0x517e1c;if(!_0x459ada[_0x31d1c7('0x2b')]||!_0x459ada['transcribeAccountId']||!_0x459ada['transcribeRegion']||!_0x459ada[_0x31d1c7('0x25')]||!_0x459ada[_0x31d1c7('0x15')])throw new ValidationError(_0x31d1c7('0x41'));return db['CloudProvider'][_0x31d1c7('0x7')]({'where':{'id':_0x459ada[_0x31d1c7('0x31')]}});})['then'](function(_0x4bdf66){const _0x5b06e0=_0x5b8f64;if(!_0x4bdf66)throw new ValidationError(_0x5b06e0('0x20'));if(!_0x4bdf66['data1']||!_0x4bdf66[_0x5b06e0('0x3c')])throw new ValidationError('Cloud\x20Provider\x20not\x20configured');_0x258dee=_0x4bdf66;const _0x5182c3=[];return _0x1c6522[_0x5b06e0('0x1e')](function(_0xa4eaf3){_0x5182c3['push'](checkTranscribeJob(_0xa4eaf3,_0x459ada,_0x258dee));}),Promise[_0x5b06e0('0x3e')](_0x5182c3);})[_0x5b8f64('0x2c')](function(_0x589800){const _0x3ca561=_0x5b8f64;_0x589800&&((!_0x589800['name']||_0x589800[_0x3ca561('0x34')]!==_0x3ca561('0x17'))&&logger[_0x3ca561('0x1d')](util[_0x3ca561('0x6')](_0x589800,{'showHidden':![],'depth':null})));});}exports[_0x37ab0e('0xf')]=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 96b0c3d..4ecb803 100644 --- a/server/config/seedContact.js +++ b/server/config/seedContact.js @@ -1 +1 @@ -const a853_0x3a0c=['Biondo','then','hopper2','contacts2','catch','now','finished\x20populating','bulkCreate','destroy','log','@xcally.com','push','CmContact','innocenzo.biondo','CmHopper','Innocenzo','hopper1','contacts1'];(function(_0x5557dd,_0x3a0c96){const _0x5c48fd=function(_0x11e9d6){while(--_0x11e9d6){_0x5557dd['push'](_0x5557dd['shift']());}};_0x5c48fd(++_0x3a0c96);}(a853_0x3a0c,0x194));const a853_0x5c48=function(_0x5557dd,_0x3a0c96){_0x5557dd=_0x5557dd-0x0;let _0x5c48fd=a853_0x3a0c[_0x5557dd];return _0x5c48fd;};const _0x36ebc5=a853_0x5c48;'use strict';const db=require('../mysqldb')['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts['push']({'id':i,'firstName':_0x36ebc5('0x7')+i,'lastName':_0x36ebc5('0xa')+i,'phone':0xf879fb460+i,'email':_0x36ebc5('0x5')+i+_0x36ebc5('0x2')});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[_0x36ebc5('0x3')]({'id':i,'active':![],'scheduledat':Date[_0x36ebc5('0xf')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date['now']()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2['push']({'id':i,'firstName':_0x36ebc5('0x7')+i,'lastName':'Biondo'+i,'phone':0xf879fb460+i,'email':_0x36ebc5('0x5')+i+_0x36ebc5('0x2')});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2[_0x36ebc5('0x3')]({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x36ebc5('0xf')](),'updatedAt':Date[_0x36ebc5('0xf')]()});}db['CmContact'][_0x36ebc5('0x0')]({'where':{}})[_0x36ebc5('0xb')](function(){const _0x3fa896=_0x36ebc5;return db[_0x3fa896('0x4')]['bulkCreate'](contacts);})['then'](function(){const _0x10bda2=_0x36ebc5;return console[_0x10bda2('0x1')]('finished\x20populating',_0x10bda2('0x9')),db[_0x10bda2('0x6')][_0x10bda2('0x0')]({'where':{}});})[_0x36ebc5('0xb')](function(){const _0x4329a5=_0x36ebc5;return db[_0x4329a5('0x6')][_0x4329a5('0x11')](hopper);})[_0x36ebc5('0xb')](function(){const _0x35bc3b=_0x36ebc5;return console[_0x35bc3b('0x1')](_0x35bc3b('0x10'),_0x35bc3b('0x8')),db[_0x35bc3b('0x4')][_0x35bc3b('0x11')](contacts2);})[_0x36ebc5('0xb')](function(){const _0x11bd15=_0x36ebc5;return console[_0x11bd15('0x1')]('finished\x20populating',_0x11bd15('0xd')),db[_0x11bd15('0x6')]['bulkCreate'](hopper2);})[_0x36ebc5('0xb')](function(){const _0x4c17e6=_0x36ebc5;console['log'](_0x4c17e6('0x10'),_0x4c17e6('0xc'));})[_0x36ebc5('0xe')](function(_0x11e9d6){const _0x4756c=_0x36ebc5;console[_0x4756c('0x1')](_0x11e9d6);}); \ No newline at end of file +const a853_0x1bbd=['push','Biondo','destroy','innocenzo.biondo','../mysqldb','hopper1','now','Innocenzo','then','log','CmHopper','hopper2','contacts2','bulkCreate','catch','CmContact','finished\x20populating','contacts1','@xcally.com'];(function(_0x5152bb,_0x1bbd47){const _0x388c8f=function(_0x3c2b75){while(--_0x3c2b75){_0x5152bb['push'](_0x5152bb['shift']());}};_0x388c8f(++_0x1bbd47);}(a853_0x1bbd,0x103));const a853_0x388c=function(_0x5152bb,_0x1bbd47){_0x5152bb=_0x5152bb-0x0;let _0x388c8f=a853_0x1bbd[_0x5152bb];return _0x388c8f;};const _0x4655dc=a853_0x388c;'use strict';const db=require(_0x4655dc('0xb'))['db'],contacts=[],hopper=[],contacts2=[],hopper2=[];for(let i=0x1;i<=0x4b0;i+=0x1){contacts[_0x4655dc('0x7')]({'id':i,'firstName':_0x4655dc('0xe')+i,'lastName':'Biondo'+i,'phone':0xf879fb460+i,'email':_0x4655dc('0xa')+i+'@xcally.com'});}for(let i=0x1;i<=0x4b0;i+=0x1){hopper[_0x4655dc('0x7')]({'id':i,'active':![],'scheduledat':Date[_0x4655dc('0xd')](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date[_0x4655dc('0xd')](),'updatedAt':Date[_0x4655dc('0xd')]()});}for(let i=0x4b1;i<=0x960;i+=0x1){contacts2[_0x4655dc('0x7')]({'id':i,'firstName':'Innocenzo'+i,'lastName':_0x4655dc('0x8')+i,'phone':0xf879fb460+i,'email':'innocenzo.biondo'+i+_0x4655dc('0x6')});}for(let i=0x4b1;i<=0x960;i+=0x1){hopper2['push']({'id':i,'active':![],'scheduledat':Date['now'](),'countbusyretry':0x0,'countcongestionretry':0x0,'countnoanswerretry':0x0,'ContactId':i,'ListId':0x1,'UserId':0x1,'VoiceQueueId':0x3fd,'createdAt':Date['now'](),'updatedAt':Date['now']()});}db[_0x4655dc('0x3')][_0x4655dc('0x9')]({'where':{}})[_0x4655dc('0xf')](function(){const _0x3a27e1=_0x4655dc;return db[_0x3a27e1('0x3')][_0x3a27e1('0x1')](contacts);})['then'](function(){const _0x3e5f09=_0x4655dc;return console[_0x3e5f09('0x10')]('finished\x20populating',_0x3e5f09('0x5')),db[_0x3e5f09('0x11')][_0x3e5f09('0x9')]({'where':{}});})[_0x4655dc('0xf')](function(){const _0x1c0540=_0x4655dc;return db[_0x1c0540('0x11')][_0x1c0540('0x1')](hopper);})[_0x4655dc('0xf')](function(){const _0x2615bb=_0x4655dc;return console[_0x2615bb('0x10')](_0x2615bb('0x4'),_0x2615bb('0xc')),db[_0x2615bb('0x3')][_0x2615bb('0x1')](contacts2);})[_0x4655dc('0xf')](function(){const _0x2c3b88=_0x4655dc;return console['log'](_0x2c3b88('0x4'),_0x2c3b88('0x0')),db[_0x2c3b88('0x11')][_0x2c3b88('0x1')](hopper2);})['then'](function(){const _0x52aed7=_0x4655dc;console['log'](_0x52aed7('0x4'),_0x52aed7('0x12'));})[_0x4655dc('0x2')](function(_0x3c2b75){const _0x3e6df3=_0x4655dc;console[_0x3e6df3('0x10')](_0x3c2b75);}); \ No newline at end of file diff --git a/server/config/seedDB/analyticReports.js b/server/config/seedDB/analyticReports.js index 5b9353a..c2dfefe 100644 --- a/server/config/seedDB/analyticReports.js +++ b/server/config/seedDB/analyticReports.js @@ -1 +1 @@ -const a854_0x1edf=['../../mysqldb','DefaultReportId','custom','info','error','then','motion','../logger','default','bulkCreate','catch','fields','createDefault','Analytic\x20Default\x20Reports\x20have\x20been\x20created','AnalyticDefaultReport','message','AnalyticCustomReport','length','app','AnalyticFieldReport','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','Can\x27t\x20create\x20Analytic\x20Custom\x20Report','CustomReportId','createCustom','ReportId','Can\x27t\x20create\x20Analytic\x20Default\x20Report'];(function(_0xb18c2d,_0x1edf8b){const _0x36aaa3=function(_0x499bfe){while(--_0x499bfe){_0xb18c2d['push'](_0xb18c2d['shift']());}};_0x36aaa3(++_0x1edf8b);}(a854_0x1edf,0x1a5));const a854_0x36aa=function(_0xb18c2d,_0x1edf8b){_0xb18c2d=_0xb18c2d-0x0;let _0x36aaa3=a854_0x1edf[_0xb18c2d];return _0x36aaa3;};const _0x47d663=a854_0x36aa;'use strict';const db=require(_0x47d663('0x15'))['db'],logger=require(_0x47d663('0x2'))(_0x47d663('0xd')),report=require('./report');exports[_0x47d663('0x7')]=function(){const _0x597a47=_0x47d663;return db[_0x597a47('0x9')]['destroy']({'where':{}})[_0x597a47('0x0')](function(){const _0x3d0d6d=_0x597a47;return db[_0x3d0d6d('0x9')][_0x3d0d6d('0x4')](report[_0x3d0d6d('0x3')](_0x3d0d6d('0x1')),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x597a47('0x0')](function(_0x499bfe){const _0x51a6fc=_0x597a47,_0x2e86e1=report[_0x51a6fc('0x6')]();for(let _0x5cb680=0x0;_0x5cb680<_0x499bfe[_0x51a6fc('0xc')];_0x5cb680+=0x1){if(_0x2e86e1[_0x499bfe[_0x5cb680]['id']]){for(let _0x3adfeb=0x0;_0x3adfeb<_0x2e86e1[_0x499bfe[_0x5cb680]['id']][_0x51a6fc('0xc')];_0x3adfeb+=0x1){_0x2e86e1[_0x499bfe[_0x5cb680]['id']][_0x3adfeb][_0x51a6fc('0x16')]=_0x2e86e1[_0x499bfe[_0x5cb680]['id']][_0x3adfeb][_0x51a6fc('0x13')],delete _0x2e86e1[_0x499bfe[_0x5cb680]['id']][_0x3adfeb][_0x51a6fc('0x13')];}db['AnalyticFieldReport'][_0x51a6fc('0x4')](_0x2e86e1[_0x499bfe[_0x5cb680]['id']]);}}})[_0x597a47('0x0')](function(){const _0x19b70d=_0x597a47;logger[_0x19b70d('0x18')](_0x19b70d('0x8'));})[_0x597a47('0x5')](function(_0x416d09){const _0x4abda5=_0x597a47;logger[_0x4abda5('0x19')](_0x4abda5('0x14'),_0x416d09[_0x4abda5('0xa')]);});},exports[_0x47d663('0x12')]=function(){const _0x4c7fac=_0x47d663;return db[_0x4c7fac('0xb')][_0x4c7fac('0x4')](report['default'](_0x4c7fac('0x17')),{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x4c7fac('0x0')](function(_0x430d05){const _0x31da29=_0x4c7fac,_0x2fb6c5=report[_0x31da29('0x6')]();for(let _0x1d00b5=0x0;_0x1d00b5<_0x430d05[_0x31da29('0xc')];_0x1d00b5+=0x1){if(_0x2fb6c5[_0x430d05[_0x1d00b5]['id']]){for(let _0x109573=0x0;_0x109573<_0x2fb6c5[_0x430d05[_0x1d00b5]['id']][_0x31da29('0xc')];_0x109573+=0x1){_0x2fb6c5[_0x430d05[_0x1d00b5]['id']][_0x109573][_0x31da29('0x11')]=_0x2fb6c5[_0x430d05[_0x1d00b5]['id']][_0x109573][_0x31da29('0x13')],delete _0x2fb6c5[_0x430d05[_0x1d00b5]['id']][_0x109573]['ReportId'];}db[_0x31da29('0xe')][_0x31da29('0x4')](_0x2fb6c5[_0x430d05[_0x1d00b5]['id']]);}}})[_0x4c7fac('0x0')](function(){const _0x2dc7e3=_0x4c7fac;logger['info'](_0x2dc7e3('0xf'));})[_0x4c7fac('0x5')](function(){const _0x51307e=_0x4c7fac;logger['error'](_0x51307e('0x10'));});}; \ No newline at end of file +const a854_0x439e=['createCustom','default','ReportId','DefaultReportId','Can\x27t\x20create\x20Analytic\x20Default\x20Report','app','custom','AnalyticDefaultReport','Analytic\x20Default\x20Reports\x20have\x20been\x20created','error','Can\x27t\x20create\x20Analytic\x20Custom\x20Report','AnalyticFieldReport','then','length','message','../logger','bulkCreate','motion','fields','Analytic\x20Custom\x20Reports\x20have\x20been\x20created','catch','AnalyticCustomReport','info'];(function(_0x16357a,_0x439e38){const _0x40967a=function(_0x50bfcd){while(--_0x50bfcd){_0x16357a['push'](_0x16357a['shift']());}};_0x40967a(++_0x439e38);}(a854_0x439e,0x100));const a854_0x4096=function(_0x16357a,_0x439e38){_0x16357a=_0x16357a-0x0;let _0x40967a=a854_0x439e[_0x16357a];return _0x40967a;};const _0x194ea6=a854_0x4096;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x194ea6('0xc'))(_0x194ea6('0x2')),report=require('./report');exports['createDefault']=function(){const _0x2efcab=_0x194ea6;return db['AnalyticDefaultReport']['destroy']({'where':{}})[_0x2efcab('0x9')](function(){const _0x2e7c5a=_0x2efcab;return db[_0x2e7c5a('0x4')][_0x2e7c5a('0xd')](report[_0x2e7c5a('0x15')](_0x2e7c5a('0xe')),{'ignoreDuplicates':!![],'individualHooks':!![]});})[_0x2efcab('0x9')](function(_0x50bfcd){const _0x55517d=_0x2efcab,_0x218189=report['fields']();for(let _0xfa8856=0x0;_0xfa8856<_0x50bfcd[_0x55517d('0xa')];_0xfa8856+=0x1){if(_0x218189[_0x50bfcd[_0xfa8856]['id']]){for(let _0x12126d=0x0;_0x12126d<_0x218189[_0x50bfcd[_0xfa8856]['id']]['length'];_0x12126d+=0x1){_0x218189[_0x50bfcd[_0xfa8856]['id']][_0x12126d][_0x55517d('0x0')]=_0x218189[_0x50bfcd[_0xfa8856]['id']][_0x12126d]['ReportId'],delete _0x218189[_0x50bfcd[_0xfa8856]['id']][_0x12126d][_0x55517d('0x16')];}db['AnalyticFieldReport']['bulkCreate'](_0x218189[_0x50bfcd[_0xfa8856]['id']]);}}})['then'](function(){const _0x167561=_0x2efcab;logger[_0x167561('0x13')](_0x167561('0x5'));})[_0x2efcab('0x11')](function(_0x5bea67){const _0x18efac=_0x2efcab;logger[_0x18efac('0x6')](_0x18efac('0x1'),_0x5bea67[_0x18efac('0xb')]);});},exports[_0x194ea6('0x14')]=function(){const _0x1b25ae=_0x194ea6;return db[_0x1b25ae('0x12')][_0x1b25ae('0xd')](report[_0x1b25ae('0x15')](_0x1b25ae('0x3')),{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(_0x5de015){const _0xb13822=_0x1b25ae,_0x411d39=report[_0xb13822('0xf')]();for(let _0x24c8ca=0x0;_0x24c8ca<_0x5de015[_0xb13822('0xa')];_0x24c8ca+=0x1){if(_0x411d39[_0x5de015[_0x24c8ca]['id']]){for(let _0x30be4e=0x0;_0x30be4e<_0x411d39[_0x5de015[_0x24c8ca]['id']][_0xb13822('0xa')];_0x30be4e+=0x1){_0x411d39[_0x5de015[_0x24c8ca]['id']][_0x30be4e]['CustomReportId']=_0x411d39[_0x5de015[_0x24c8ca]['id']][_0x30be4e][_0xb13822('0x16')],delete _0x411d39[_0x5de015[_0x24c8ca]['id']][_0x30be4e]['ReportId'];}db[_0xb13822('0x8')][_0xb13822('0xd')](_0x411d39[_0x5de015[_0x24c8ca]['id']]);}}})[_0x1b25ae('0x9')](function(){const _0x1e67e2=_0x1b25ae;logger[_0x1e67e2('0x13')](_0x1e67e2('0x10'));})['catch'](function(){const _0x2db1fb=_0x1b25ae;logger['error'](_0x2db1fb('0x7'));});}; \ No newline at end of file diff --git a/server/config/seedDB/analyticTreeReports.js b/server/config/seedDB/analyticTreeReports.js index 20bed6f..a5131ba 100644 --- a/server/config/seedDB/analyticTreeReports.js +++ b/server/config/seedDB/analyticTreeReports.js @@ -1 +1 @@ -const a855_0x4a57=['error','AnalyticTreeReport','update','createDefault','./tree','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report','then','motion','stringify','../logger','bulkCreate','app','findOrCreate','catch','../../mysqldb'];(function(_0x2bc6ee,_0x4a57fb){const _0x4b8571=function(_0x36a193){while(--_0x36a193){_0x2bc6ee['push'](_0x2bc6ee['shift']());}};_0x4b8571(++_0x4a57fb);}(a855_0x4a57,0x1aa));const a855_0x4b85=function(_0x2bc6ee,_0x4a57fb){_0x2bc6ee=_0x2bc6ee-0x0;let _0x4b8571=a855_0x4a57[_0x2bc6ee];return _0x4b8571;};const _0x2dac15=a855_0x4b85;'use strict';const db=require(_0x2dac15('0x5'))['db'],logger=require(_0x2dac15('0x0'))(_0x2dac15('0x2')),tree=require(_0x2dac15('0xa'));exports[_0x2dac15('0x9')]=function(){const _0x4ba8fc=_0x2dac15;return db[_0x4ba8fc('0x7')][_0x4ba8fc('0x3')]({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON[_0x4ba8fc('0xf')](tree[_0x4ba8fc('0xe')])}})['then'](function([_0x36a193,_0x1e1bac]){const _0xe3ca5=_0x4ba8fc;if(!_0x1e1bac)return _0x36a193[_0xe3ca5('0x8')]({'tree':JSON['stringify'](tree['motion'])});return _0x36a193;})[_0x4ba8fc('0xd')](function(){logger['info']('Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created');})[_0x4ba8fc('0x4')](function(){logger['error']('Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report');});},exports['createCustom']=function(){const _0x326edc=_0x2dac15;return db[_0x326edc('0x7')][_0x326edc('0x1')]([{'id':0x2,'tree':JSON['stringify'](tree['custom'])}],{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x1da645=_0x326edc;logger['info'](_0x1da645('0xb'));})[_0x326edc('0x4')](function(){const _0x15e9a2=_0x326edc;logger[_0x15e9a2('0x6')](_0x15e9a2('0xc'));});}; \ No newline at end of file +const a855_0x4596=['../../mysqldb','AnalyticTreeReport','motion','./tree','Can\x27t\x20create\x20Analytic\x20Tree\x20Default\x20Report','Analytic\x20Tree\x20Custom\x20Reports\x20have\x20been\x20created','info','findOrCreate','../logger','createDefault','Can\x27t\x20create\x20Analytic\x20Tree\x20Custom\x20Report','catch','stringify','bulkCreate','then','app','error','custom'];(function(_0x2e0efa,_0x459631){const _0x32eca0=function(_0x24a1a8){while(--_0x24a1a8){_0x2e0efa['push'](_0x2e0efa['shift']());}};_0x32eca0(++_0x459631);}(a855_0x4596,0x1ce));const a855_0x32ec=function(_0x2e0efa,_0x459631){_0x2e0efa=_0x2e0efa-0x0;let _0x32eca0=a855_0x4596[_0x2e0efa];return _0x32eca0;};const _0x30174a=a855_0x32ec;'use strict';const db=require(_0x30174a('0x6'))['db'],logger=require(_0x30174a('0xe'))(_0x30174a('0x3')),tree=require(_0x30174a('0x9'));exports[_0x30174a('0xf')]=function(){const _0x34a8bc=_0x30174a;return db[_0x34a8bc('0x7')][_0x34a8bc('0xd')]({'where':{'id':0x1},'defaults':{'id':0x1,'tree':JSON['stringify'](tree[_0x34a8bc('0x8')])}})['then'](function([_0x24a1a8,_0x16d5b6]){const _0xee1925=_0x34a8bc;if(!_0x16d5b6)return _0x24a1a8['update']({'tree':JSON[_0xee1925('0x0')](tree[_0xee1925('0x8')])});return _0x24a1a8;})[_0x34a8bc('0x2')](function(){const _0x1b1f5c=_0x34a8bc;logger[_0x1b1f5c('0xc')]('Analytic\x20Tree\x20Default\x20Reports\x20have\x20been\x20created');})[_0x34a8bc('0x11')](function(){const _0x5edd1d=_0x34a8bc;logger[_0x5edd1d('0x4')](_0x5edd1d('0xa'));});},exports['createCustom']=function(){const _0x2f322b=_0x30174a;return db[_0x2f322b('0x7')][_0x2f322b('0x1')]([{'id':0x2,'tree':JSON['stringify'](tree[_0x2f322b('0x5')])}],{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2f322b('0x2')](function(){const _0x28a559=_0x2f322b;logger['info'](_0x28a559('0xb'));})[_0x2f322b('0x11')](function(){const _0x270653=_0x2f322b;logger[_0x270653('0x4')](_0x270653('0x10'));});}; \ No newline at end of file diff --git a/server/config/seedDB/chanspy.js b/server/config/seedDB/chanspy.js index b49d04f..7686246 100644 --- a/server/config/seedDB/chanspy.js +++ b/server/config/seedDB/chanspy.js @@ -1 +1 @@ -const a856_0x40a8=['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\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice','spy1','bulkCreate','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','../logger','Listen&TalkOne','app','spy2','Can\x27t\x20create\x20ChanSpy','error','Listen&TalkBoth','OnlyListen','create','then','The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call','VoiceChanSpy','OnlyListenBoth','catch','spy3'];(function(_0x5080c4,_0x40a88e){const _0x2689b3=function(_0x55c6ff){while(--_0x55c6ff){_0x5080c4['push'](_0x5080c4['shift']());}};_0x2689b3(++_0x40a88e);}(a856_0x40a8,0x162));const a856_0x2689=function(_0x5080c4,_0x40a88e){_0x5080c4=_0x5080c4-0x0;let _0x2689b3=a856_0x40a8[_0x5080c4];return _0x2689b3;};const _0x18a74e=a856_0x2689;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x18a74e('0xb'))(_0x18a74e('0xd')),chanSpy=[{'id':0x1,'name':_0x18a74e('0xc'),'prefix':_0x18a74e('0x8'),'options':['b','w','E','S'],'description':_0x18a74e('0x7')},{'id':0x2,'name':_0x18a74e('0x12'),'prefix':_0x18a74e('0xe'),'options':['b','o','E','S'],'description':_0x18a74e('0x6')},{'id':0x3,'name':_0x18a74e('0x11'),'prefix':_0x18a74e('0x5'),'options':['B','w','E','S'],'description':_0x18a74e('0xa')},{'id':0x4,'name':_0x18a74e('0x3'),'prefix':'spy4','options':['B','o','E','S'],'description':_0x18a74e('0x1')}];exports[_0x18a74e('0x13')]=function(){const _0x464de9=_0x18a74e;return db[_0x464de9('0x2')][_0x464de9('0x9')](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x464de9('0x0')](function(){logger['info']('ChanSpy\x20have\x20been\x20created');})[_0x464de9('0x4')](function(){const _0x274d13=_0x464de9;logger[_0x274d13('0x10')](_0x274d13('0xf'));});}; \ No newline at end of file +const a856_0x173a=['create','info','Listen&TalkOne','The\x20supervisor\x20can\x20listen\x20and\x20talk\x20both\x20to\x20the\x20agent\x20and\x20to\x20the\x20customer,\x20like\x20a\x20pure\x203\x20way\x20conference\x20room','../logger','VoiceChanSpy','../../mysqldb','catch','app','ChanSpy\x20have\x20been\x20created','spy3','Can\x27t\x20create\x20ChanSpy','spy4','The\x20supervisor\x20can\x20just\x20listen\x20to\x20the\x20phone\x20call','then','spy1','OnlyListen','bulkCreate'];(function(_0x36eb6e,_0x173a13){const _0x47e30d=function(_0x39ed9e){while(--_0x39ed9e){_0x36eb6e['push'](_0x36eb6e['shift']());}};_0x47e30d(++_0x173a13);}(a856_0x173a,0x9c));const a856_0x47e3=function(_0x36eb6e,_0x173a13){_0x36eb6e=_0x36eb6e-0x0;let _0x47e30d=a856_0x173a[_0x36eb6e];return _0x47e30d;};const _0x510f38=a856_0x47e3;'use strict';const db=require(_0x510f38('0xc'))['db'],logger=require(_0x510f38('0xa'))(_0x510f38('0xe')),chanSpy=[{'id':0x1,'name':_0x510f38('0x8'),'prefix':_0x510f38('0x3'),'options':['b','w','E','S'],'description':'The\x20supervisor\x20can\x20listen\x20and\x20talk\x20to\x20the\x20agent.\x20The\x20customer\x20will\x20not\x20listen\x20to\x20the\x20supervisor\x20voice'},{'id':0x2,'name':_0x510f38('0x4'),'prefix':'spy2','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':'Listen&TalkBoth','prefix':_0x510f38('0x10'),'options':['B','w','E','S'],'description':_0x510f38('0x9')},{'id':0x4,'name':'OnlyListenBoth','prefix':_0x510f38('0x0'),'options':['B','o','E','S'],'description':_0x510f38('0x1')}];exports[_0x510f38('0x6')]=function(){const _0x107fc7=_0x510f38;return db[_0x107fc7('0xb')][_0x107fc7('0x5')](chanSpy,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x107fc7('0x2')](function(){const _0x1609ac=_0x107fc7;logger[_0x1609ac('0x7')](_0x1609ac('0xf'));})[_0x107fc7('0xd')](function(){const _0x5abffd=_0x107fc7;logger['error'](_0x5abffd('0x11'));});}; \ No newline at end of file diff --git a/server/config/seedDB/companies.js b/server/config/seedDB/companies.js index 262f789..0ed68ca 100644 --- a/server/config/seedDB/companies.js +++ b/server/config/seedDB/companies.js @@ -1 +1 @@ -const a857_0x47c7=['../../mysqldb','Companies\x20have\x20been\x20created','www.xcallymotion.com','10128','+390110960070','error','srl','bulkCreate','Can\x27t\x20create\x20Companies','CmCompany','catch','app','Xenialab','09668910012','Turin','+3901119886500','../logger','info','then'];(function(_0x4d8bc4,_0x47c75e){const _0x2f9b6c=function(_0x2753f5){while(--_0x2753f5){_0x4d8bc4['push'](_0x4d8bc4['shift']());}};_0x2f9b6c(++_0x47c75e);}(a857_0x47c7,0x105));const a857_0x2f9b=function(_0x4d8bc4,_0x47c75e){_0x4d8bc4=_0x4d8bc4-0x0;let _0x2f9b6c=a857_0x47c7[_0x4d8bc4];return _0x2f9b6c;};const _0x4286b7=a857_0x2f9b;'use strict';const db=require(_0x4286b7('0x5'))['db'],logger=require(_0x4286b7('0x2'))(_0x4286b7('0x10')),companies=[{'id':0x1,'name':_0x4286b7('0x11'),'type':_0x4286b7('0xb'),'vat':_0x4286b7('0x12'),'phone':_0x4286b7('0x1'),'fax':_0x4286b7('0x9'),'website':_0x4286b7('0x7'),'email':'info@xcally.com','emailDomain':'xcally.com','street':'Corso\x20Vittorio\x20Emanuele\x20II,\x20111','postalCode':_0x4286b7('0x8'),'city':_0x4286b7('0x0'),'country':'Italy','description':'company\x20auto\x20generated'}];exports['create']=function(){const _0x25e9d6=_0x4286b7;return db[_0x25e9d6('0xe')][_0x25e9d6('0xc')](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x25e9d6('0x4')](function(){const _0xe580f6=_0x25e9d6;logger[_0xe580f6('0x3')](_0xe580f6('0x6'));})[_0x25e9d6('0xf')](function(){const _0x5aa5bf=_0x25e9d6;logger[_0x5aa5bf('0xa')](_0x5aa5bf('0xd'));});}; \ No newline at end of file +const a857_0x8212=['Corso\x20Vittorio\x20Emanuele\x20II,\x20111','srl','09668910012','bulkCreate','../../mysqldb','create','Can\x27t\x20create\x20Companies','info','then','+3901119886500','app','info@xcally.com','Xenialab','company\x20auto\x20generated','Companies\x20have\x20been\x20created','www.xcallymotion.com','CmCompany','xcally.com','Turin','catch','../logger'];(function(_0x387b17,_0x821246){const _0x38eae1=function(_0x5099e3){while(--_0x5099e3){_0x387b17['push'](_0x387b17['shift']());}};_0x38eae1(++_0x821246);}(a857_0x8212,0x1ba));const a857_0x38ea=function(_0x387b17,_0x821246){_0x387b17=_0x387b17-0x0;let _0x38eae1=a857_0x8212[_0x387b17];return _0x38eae1;};const _0x50284e=a857_0x38ea;'use strict';const db=require(_0x50284e('0x3'))['db'],logger=require(_0x50284e('0x13'))(_0x50284e('0x9')),companies=[{'id':0x1,'name':_0x50284e('0xb'),'type':_0x50284e('0x0'),'vat':_0x50284e('0x1'),'phone':_0x50284e('0x8'),'fax':'+390110960070','website':_0x50284e('0xe'),'email':_0x50284e('0xa'),'emailDomain':_0x50284e('0x10'),'street':_0x50284e('0x14'),'postalCode':'10128','city':_0x50284e('0x11'),'country':'Italy','description':_0x50284e('0xc')}];exports[_0x50284e('0x4')]=function(){const _0x41905a=_0x50284e;return db[_0x41905a('0xf')][_0x41905a('0x2')](companies,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x41905a('0x7')](function(){const _0xf6171f=_0x41905a;logger[_0xf6171f('0x6')](_0xf6171f('0xd'));})[_0x41905a('0x12')](function(){const _0x1df07b=_0x41905a;logger['error'](_0x1df07b('0x5'));});}; \ No newline at end of file diff --git a/server/config/seedDB/contacts.js b/server/config/seedDB/contacts.js index 459f851..e4b367b 100644 --- a/server/config/seedDB/contacts.js +++ b/server/config/seedDB/contacts.js @@ -1 +1 @@ -const a858_0x14f2=['andrea.bianco@xcally.com','456','Giuseppe','bulkCreate','floor','catch','giuseppe.verdi@xcally.com','789','Mario','./tags','CmContact','Rossi','Andrea','error','Bianco','contact\x20auto\x20generated','getNames','random','../logger','Verdi','app','create','123','../../mysqldb'];(function(_0x533280,_0x14f2d7){const _0x365a29=function(_0x508d2d){while(--_0x508d2d){_0x533280['push'](_0x533280['shift']());}};_0x365a29(++_0x14f2d7);}(a858_0x14f2,0x8c));const a858_0x365a=function(_0x533280,_0x14f2d7){_0x533280=_0x533280-0x0;let _0x365a29=a858_0x14f2[_0x533280];return _0x365a29;};const _0x51b069=a858_0x365a;'use strict';const db=require(_0x51b069('0x3'))['db'],logger=require(_0x51b069('0x16'))(_0x51b069('0x0')),tags=require(_0x51b069('0xd'))[_0x51b069('0x14')](),getRandomTag=function(){const _0x2e22ed=_0x51b069,_0x508d2d=tags['length']-0x1;return[tags[Math[_0x2e22ed('0x8')](Math[_0x2e22ed('0x15')]()*_0x508d2d)+0x1]];},contacts=[{'id':0x1,'firstName':_0x51b069('0xc'),'lastName':_0x51b069('0xf'),'phone':_0x51b069('0x2'),'email':'mario.rossi@xcally.com','ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x51b069('0x13')},{'id':0x2,'firstName':_0x51b069('0x6'),'lastName':_0x51b069('0x17'),'phone':_0x51b069('0x5'),'email':_0x51b069('0xa'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'},{'id':0x3,'firstName':_0x51b069('0x10'),'lastName':_0x51b069('0x12'),'phone':_0x51b069('0xb'),'email':_0x51b069('0x4'),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'}];exports[_0x51b069('0x1')]=function(){const _0x4b6b11=_0x51b069;return db[_0x4b6b11('0xe')][_0x4b6b11('0x7')](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('Contacts\x20have\x20been\x20created');})[_0x4b6b11('0x9')](function(){const _0x27ff7a=_0x4b6b11;logger[_0x27ff7a('0x11')]('Can\x27t\x20create\x20Contacts');});}; \ No newline at end of file +const a858_0x519a=['floor','app','Can\x27t\x20create\x20Contacts','Verdi','Andrea','andrea.bianco@xcally.com','info','then','456','../logger','Bianco','Mario','../../mysqldb','giuseppe.verdi@xcally.com','Giuseppe','catch','CmContact','bulkCreate','getNames','contact\x20auto\x20generated','error'];(function(_0x4de1d6,_0x519ae2){const _0x20c787=function(_0x1b0336){while(--_0x1b0336){_0x4de1d6['push'](_0x4de1d6['shift']());}};_0x20c787(++_0x519ae2);}(a858_0x519a,0x15f));const a858_0x20c7=function(_0x4de1d6,_0x519ae2){_0x4de1d6=_0x4de1d6-0x0;let _0x20c787=a858_0x519a[_0x4de1d6];return _0x20c787;};const _0x40e8d1=a858_0x20c7;'use strict';const db=require(_0x40e8d1('0x12'))['db'],logger=require(_0x40e8d1('0xf'))(_0x40e8d1('0x7')),tags=require('./tags')[_0x40e8d1('0x3')](),getRandomTag=function(){const _0x525a43=_0x40e8d1,_0x1b0336=tags['length']-0x1;return[tags[Math[_0x525a43('0x6')](Math['random']()*_0x1b0336)+0x1]];},contacts=[{'id':0x1,'firstName':_0x40e8d1('0x11'),'lastName':'Rossi','phone':'123','email':'mario.rossi@xcally.com','ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x40e8d1('0x4')},{'id':0x2,'firstName':_0x40e8d1('0x14'),'lastName':_0x40e8d1('0x9'),'phone':_0x40e8d1('0xe'),'email':_0x40e8d1('0x13'),'ListId':0x1,'CompanyId':0x1,'tags':getRandomTag(),'description':_0x40e8d1('0x4')},{'id':0x3,'firstName':_0x40e8d1('0xa'),'lastName':_0x40e8d1('0x10'),'phone':'789','email':_0x40e8d1('0xb'),'ListId':0x2,'CompanyId':0x1,'tags':getRandomTag(),'description':'contact\x20auto\x20generated'}];exports['create']=function(){const _0x8eb977=_0x40e8d1;return db[_0x8eb977('0x1')][_0x8eb977('0x2')](contacts,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x8eb977('0xd')](function(){const _0x39e608=_0x8eb977;logger[_0x39e608('0xc')]('Contacts\x20have\x20been\x20created');})[_0x8eb977('0x0')](function(){const _0x54cfe3=_0x8eb977;logger[_0x54cfe3('0x5')](_0x54cfe3('0x8'));});}; \ No newline at end of file diff --git a/server/config/seedDB/dispositions.js b/server/config/seedDB/dispositions.js index d45c43d..79e895a 100644 --- a/server/config/seedDB/dispositions.js +++ b/server/config/seedDB/dispositions.js @@ -1 +1 @@ -const a859_0x412d=['Sold','bulkCreate','Answer\x20Machine','Dispositions\x20have\x20been\x20created','Not\x20Interested','app','Interested','../../mysqldb','info','Special','Disposition','Can\x27t\x20create\x20Companies','create','error'];(function(_0x164e39,_0x412d2f){const _0x3556ce=function(_0x337c41){while(--_0x337c41){_0x164e39['push'](_0x164e39['shift']());}};_0x3556ce(++_0x412d2f);}(a859_0x412d,0x144));const a859_0x3556=function(_0x164e39,_0x412d2f){_0x164e39=_0x164e39-0x0;let _0x3556ce=a859_0x412d[_0x164e39];return _0x3556ce;};const _0x5cb11a=a859_0x3556;'use strict';const db=require(_0x5cb11a('0x5'))['db'],logger=require('../logger')(_0x5cb11a('0x3')),dispositions=[{'name':'Fax'},{'name':_0x5cb11a('0x0')},{'name':_0x5cb11a('0x4')},{'name':_0x5cb11a('0x2')},{'name':_0x5cb11a('0xc')},{'name':_0x5cb11a('0x7')}];exports[_0x5cb11a('0xa')]=function(){const _0x33c539=_0x5cb11a;return db[_0x33c539('0x8')][_0x33c539('0xd')](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x394eb3=_0x33c539;logger[_0x394eb3('0x6')](_0x394eb3('0x1'));})['catch'](function(){const _0x5bf90e=_0x33c539;logger[_0x5bf90e('0xb')](_0x5bf90e('0x9'));});}; \ No newline at end of file +const a859_0x42b3=['create','Special','app','../logger','Answer\x20Machine','Sold','bulkCreate','../../mysqldb','info','Dispositions\x20have\x20been\x20created','error','catch'];(function(_0x301e25,_0x42b323){const _0x42ef64=function(_0x2b142c){while(--_0x2b142c){_0x301e25['push'](_0x301e25['shift']());}};_0x42ef64(++_0x42b323);}(a859_0x42b3,0x155));const a859_0x42ef=function(_0x301e25,_0x42b323){_0x301e25=_0x301e25-0x0;let _0x42ef64=a859_0x42b3[_0x301e25];return _0x42ef64;};const _0x57f6f3=a859_0x42ef;'use strict';const db=require(_0x57f6f3('0x2'))['db'],logger=require(_0x57f6f3('0xa'))(_0x57f6f3('0x9')),dispositions=[{'name':'Fax'},{'name':_0x57f6f3('0xb')},{'name':'Interested'},{'name':'Not\x20Interested'},{'name':_0x57f6f3('0x0')},{'name':_0x57f6f3('0x8')}];exports[_0x57f6f3('0x7')]=function(){const _0x16ba62=_0x57f6f3;return db['Disposition'][_0x16ba62('0x1')](dispositions,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x3e127a=_0x16ba62;logger[_0x3e127a('0x3')](_0x3e127a('0x4'));})[_0x16ba62('0x6')](function(){const _0x3730d3=_0x16ba62;logger[_0x3730d3('0x5')]('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 6dfba5c..f437205 100644 --- a/server/config/seedDB/index.js +++ b/server/config/seedDB/index.js @@ -1 +1 @@ -const a860_0x15b6=['./lists','createCustom','./voiceContexts','error','./sounds','create','./users','app','./squareProjects','createDefault','../logger','../../mysqldb','info','createAlways','./chanspy','./jscriptyProjects','./voiceExtensions','./variables','findOrCreate','./tags','./userProfiles','Settings\x20have\x20been\x20created','./analyticReports','./pauses','default','./mailAccounts','./dispositions','stringify','./analyticTreeReports','./mailSubstatuses'];(function(_0x54775d,_0x15b61a){const _0xc17375=function(_0x28187b){while(--_0x28187b){_0x54775d['push'](_0x54775d['shift']());}};_0xc17375(++_0x15b61a);}(a860_0x15b6,0x14a));const a860_0xc173=function(_0x54775d,_0x15b61a){_0x54775d=_0x54775d-0x0;let _0xc17375=a860_0x15b6[_0x54775d];return _0xc17375;};const _0x35fbd5=a860_0xc173;'use strict';const db=require(_0x35fbd5('0xb'))['db'],logger=require(_0x35fbd5('0xa'))(_0x35fbd5('0x7'));async function defaultSeed(){const _0x1101e9=_0x35fbd5;try{const [,_0x28187b]=await db['Setting'][_0x1101e9('0x12')]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x28187b?(logger[_0x1101e9('0xc')](_0x1101e9('0x15')),await require(_0x1101e9('0x1c'))[_0x1101e9('0x1')](),await require(_0x1101e9('0x16'))[_0x1101e9('0x1')](),await require('./migrations')[_0x1101e9('0x5')](),await require('./intervals')['create'](),await require(_0x1101e9('0x14'))[_0x1101e9('0x5')](),await require(_0x1101e9('0x6'))[_0x1101e9('0x5')](),await require('./teams')['create'](),await require('./trunks')['create'](),await require('./voiceQueues')[_0x1101e9('0x5')](),await require(_0x1101e9('0xe'))[_0x1101e9('0x5')](),await require('./voiceMusicOnHold')[_0x1101e9('0x5')](),await require(_0x1101e9('0x11'))['create'](),await require(_0x1101e9('0x17'))[_0x1101e9('0x5')](),await require(_0x1101e9('0x13'))[_0x1101e9('0x5')](),await require('./companies')[_0x1101e9('0x5')](),await require(_0x1101e9('0x4'))[_0x1101e9('0x5')](),await require('./squareOdbc')[_0x1101e9('0x5')](),await require(_0x1101e9('0x8'))[_0x1101e9('0x5')](),await require(_0x1101e9('0xf'))[_0x1101e9('0x5')](),await require(_0x1101e9('0x10'))[_0x1101e9('0x5')](),await require(_0x1101e9('0x1d'))[_0x1101e9('0x5')](),await require(_0x1101e9('0x1a'))[_0x1101e9('0x5')](),await require(_0x1101e9('0x0'))['create'](),await require('./contacts')['create']()):(await require(_0x1101e9('0x2'))[_0x1101e9('0x5')](),await require(_0x1101e9('0x10'))[_0x1101e9('0xd')](),await require(_0x1101e9('0x19'))[_0x1101e9('0x5')](),await require(_0x1101e9('0x1c'))[_0x1101e9('0x9')](),await require(_0x1101e9('0x16'))['createDefault']());}catch(_0x4c7dc1){logger[_0x1101e9('0x3')]('Default\x20seed',JSON[_0x1101e9('0x1b')](_0x4c7dc1));}}exports[_0x35fbd5('0x18')]=defaultSeed; \ No newline at end of file +const a860_0x2146=['Setting','./companies','findOrCreate','./teams','./sounds','./variables','./users','./analyticTreeReports','Default\x20seed','createCustom','stringify','../../mysqldb','createDefault','./voiceMusicOnHold','./userProfiles','./mailAccounts','create','default','app','./jscriptyProjects','createAlways','./analyticReports','./pauses','./intervals','./voiceQueues','./migrations','./voiceExtensions','Settings\x20have\x20been\x20created','./voiceContexts','./lists','../logger','info'];(function(_0x4d1227,_0x214669){const _0x2abe74=function(_0x147af4){while(--_0x147af4){_0x4d1227['push'](_0x4d1227['shift']());}};_0x2abe74(++_0x214669);}(a860_0x2146,0x13a));const a860_0x2abe=function(_0x4d1227,_0x214669){_0x4d1227=_0x4d1227-0x0;let _0x2abe74=a860_0x2146[_0x4d1227];return _0x2abe74;};const _0x31c9fb=a860_0x2abe;'use strict';const db=require(_0x31c9fb('0x11'))['db'],logger=require(_0x31c9fb('0x4'))(_0x31c9fb('0x18'));async function defaultSeed(){const _0x59061a=_0x31c9fb;try{const [,_0x147af4]=await db[_0x59061a('0x6')][_0x59061a('0x8')]({'where':{'id':0x1},'defaults':{'firstSetup':!![]}});_0x147af4?(logger[_0x59061a('0x5')](_0x59061a('0x1')),await require(_0x59061a('0xd'))[_0x59061a('0xf')](),await require('./analyticReports')[_0x59061a('0xf')](),await require(_0x59061a('0x1f'))['create'](),await require(_0x59061a('0x1d'))['create'](),await require(_0x59061a('0x14'))[_0x59061a('0x16')](),await require(_0x59061a('0xc'))[_0x59061a('0x16')](),await require(_0x59061a('0x9'))[_0x59061a('0x16')](),await require('./trunks')[_0x59061a('0x16')](),await require(_0x59061a('0x1e'))[_0x59061a('0x16')](),await require('./chanspy')[_0x59061a('0x16')](),await require(_0x59061a('0x13'))[_0x59061a('0x16')](),await require(_0x59061a('0xb'))[_0x59061a('0x16')](),await require(_0x59061a('0x1c'))[_0x59061a('0x16')](),await require('./tags')[_0x59061a('0x16')](),await require(_0x59061a('0x7'))['create'](),await require(_0x59061a('0xa'))[_0x59061a('0x16')](),await require('./squareOdbc')['create'](),await require('./squareProjects')[_0x59061a('0x16')](),await require(_0x59061a('0x19'))[_0x59061a('0x16')](),await require(_0x59061a('0x0'))[_0x59061a('0x16')](),await require('./mailSubstatuses')[_0x59061a('0x16')](),await require('./dispositions')[_0x59061a('0x16')](),await require(_0x59061a('0x3'))[_0x59061a('0x16')](),await require('./contacts')['create']()):(await require(_0x59061a('0x2'))[_0x59061a('0x16')](),await require('./voiceExtensions')[_0x59061a('0x1a')](),await require(_0x59061a('0x15'))[_0x59061a('0x16')](),await require(_0x59061a('0xd'))[_0x59061a('0x12')](),await require(_0x59061a('0x1b'))[_0x59061a('0x12')]());}catch(_0x2c0b2a){logger['error'](_0x59061a('0xe'),JSON[_0x59061a('0x10')](_0x2c0b2a));}}exports[_0x31c9fb('0x17')]=defaultSeed; \ No newline at end of file diff --git a/server/config/seedDB/intervals.js b/server/config/seedDB/intervals.js index 8fee8d9..de080c9 100644 --- a/server/config/seedDB/intervals.js +++ b/server/config/seedDB/intervals.js @@ -1 +1 @@ -const a861_0x2c99=['name','Christmas','map','Intervals\x20have\x20been\x20created','Holidays','Valentines','working\x20time\x20auto\x20generated','../logger','*,*,14,feb','isArray','error','bulkCreate','Morning','../../mysqldb','14:00-18:00,mon-fri,*,*','Can\x27t\x20create\x20Intevals','*,*,31,oct','09:00-13:00,mon-fri,*,*','*,*,25,dec','Halloween','Interval','filter','findAll','WorkingTime','Afternoon','app','exports'];(function(_0x27313f,_0x2c998e){const _0x29c8e5=function(_0xe89045){while(--_0xe89045){_0x27313f['push'](_0x27313f['shift']());}};_0x29c8e5(++_0x2c998e);}(a861_0x2c99,0x148));const a861_0x29c8=function(_0x27313f,_0x2c998e){_0x27313f=_0x27313f-0x0;let _0x29c8e5=a861_0x2c99[_0x27313f];return _0x29c8e5;};const _0x248c70=a861_0x29c8;'use strict';const db=require(_0x248c70('0x9'))['db'],logger=require(_0x248c70('0x3'))(_0x248c70('0x15')),subIntervals={'WorkingTime':[{'name':_0x248c70('0x8'),'interval':_0x248c70('0xd')},{'name':_0x248c70('0x14'),'interval':_0x248c70('0xa')}],'Holidays':[{'name':_0x248c70('0x18'),'interval':_0x248c70('0xe')},{'name':'NewYear','interval':'*,*,1,jan'},{'name':_0x248c70('0x1'),'interval':_0x248c70('0x4')},{'name':_0x248c70('0xf'),'interval':_0x248c70('0xc')}]},intervals=[{'id':0x1,'name':_0x248c70('0x13'),'description':_0x248c70('0x2')},{'id':0x2,'name':_0x248c70('0x0'),'description':_0x248c70('0x2')}];async function create(){const _0x36b9d0=_0x248c70;try{await db['Interval'][_0x36b9d0('0x7')](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0xe89045=await db[_0x36b9d0('0x10')][_0x36b9d0('0x12')](),_0x5d833c=_0xe89045[_0x36b9d0('0x19')](_0xf8a11c=>{const _0x2b917f=_0x36b9d0,_0x126025=subIntervals[_0xf8a11c[_0x2b917f('0x17')]];return Array[_0x2b917f('0x5')](_0x126025)?_0x126025[_0x2b917f('0x19')](_0x3395ac=>{const {description:_0x3cf324,id:_0x2a5902}=_0xf8a11c;return{'description':_0x3cf324,'IntervalId':_0x2a5902,..._0x3395ac};}):null;})[_0x36b9d0('0x11')](_0x4542b2=>_0x4542b2!==null)['flat']();await db['Interval'][_0x36b9d0('0x7')](_0x5d833c,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger['info'](_0x36b9d0('0x1a'));}catch(_0x194d1c){logger[_0x36b9d0('0x6')](_0x36b9d0('0xb'),_0x194d1c);throw _0x194d1c;}}module[_0x248c70('0x16')]={'create':create}; \ No newline at end of file +const a861_0xab99=['Interval','Halloween','filter','working\x20time\x20auto\x20generated','*,*,25,dec','Can\x27t\x20create\x20Intevals','Holidays','name','error','bulkCreate','info','14:00-18:00,mon-fri,*,*','Valentines','../logger','flat','Morning','../../mysqldb','map','09:00-13:00,mon-fri,*,*','*,*,1,jan','Afternoon','exports','*,*,14,feb','isArray'];(function(_0x3867cd,_0xab9947){const _0x390cc6=function(_0x352efd){while(--_0x352efd){_0x3867cd['push'](_0x3867cd['shift']());}};_0x390cc6(++_0xab9947);}(a861_0xab99,0xbf));const a861_0x390c=function(_0x3867cd,_0xab9947){_0x3867cd=_0x3867cd-0x0;let _0x390cc6=a861_0xab99[_0x3867cd];return _0x390cc6;};const _0x7ff0ad=a861_0x390c;'use strict';const db=require(_0x7ff0ad('0x11'))['db'],logger=require(_0x7ff0ad('0xe'))('app'),subIntervals={'WorkingTime':[{'name':_0x7ff0ad('0x10'),'interval':_0x7ff0ad('0x13')},{'name':_0x7ff0ad('0x15'),'interval':_0x7ff0ad('0xc')}],'Holidays':[{'name':'Christmas','interval':_0x7ff0ad('0x5')},{'name':'NewYear','interval':_0x7ff0ad('0x14')},{'name':_0x7ff0ad('0xd'),'interval':_0x7ff0ad('0x17')},{'name':_0x7ff0ad('0x2'),'interval':'*,*,31,oct'}]},intervals=[{'id':0x1,'name':'WorkingTime','description':_0x7ff0ad('0x4')},{'id':0x2,'name':_0x7ff0ad('0x7'),'description':_0x7ff0ad('0x4')}];async function create(){const _0x487703=_0x7ff0ad;try{await db[_0x487703('0x1')][_0x487703('0xa')](intervals,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x352efd=await db[_0x487703('0x1')]['findAll'](),_0x42170f=_0x352efd[_0x487703('0x12')](_0x5b7294=>{const _0x27240d=_0x487703,_0x570690=subIntervals[_0x5b7294[_0x27240d('0x8')]];return Array[_0x27240d('0x0')](_0x570690)?_0x570690[_0x27240d('0x12')](_0x253ce7=>{const {description:_0x5aa849,id:_0x480313}=_0x5b7294;return{'description':_0x5aa849,'IntervalId':_0x480313,..._0x253ce7};}):null;})[_0x487703('0x3')](_0x28f021=>_0x28f021!==null)[_0x487703('0xf')]();await db[_0x487703('0x1')][_0x487703('0xa')](_0x42170f,{'ignoreDuplicates':!![],'individualHooks':!![]}),logger[_0x487703('0xb')]('Intervals\x20have\x20been\x20created');}catch(_0x17fca4){logger[_0x487703('0x9')](_0x487703('0x6'),_0x17fca4);throw _0x17fca4;}}module[_0x7ff0ad('0x16')]={'create':create}; \ No newline at end of file diff --git a/server/config/seedDB/jscriptyProjects.js b/server/config/seedDB/jscriptyProjects.js index 2617310..16f4202 100644 --- a/server/config/seedDB/jscriptyProjects.js +++ b/server/config/seedDB/jscriptyProjects.js @@ -1 +1 @@ -const a862_0x2a2c=['jscripty','error','readFileSync','JscriptyProject','utf-8','Can\x27t\x20create\x20Jscripty\x20Projects','join','path','then','bulkCreate','info','../../mysqldb','create','../logger','Customer\x20Satisfaction\x20auto\x20generated','catch'];(function(_0x2b5820,_0x2a2cf5){const _0x29b11e=function(_0xcbbf40){while(--_0xcbbf40){_0x2b5820['push'](_0x2b5820['shift']());}};_0x29b11e(++_0x2a2cf5);}(a862_0x2a2c,0x1ce));const a862_0x29b1=function(_0x2b5820,_0x2a2cf5){_0x2b5820=_0x2b5820-0x0;let _0x29b11e=a862_0x2a2c[_0x2b5820];return _0x29b11e;};const _0xbfbd5d=a862_0x29b1;'use strict';const fs=require('fs'),path=require(_0xbfbd5d('0x9')),db=require(_0xbfbd5d('0xd'))['db'],logger=require(_0xbfbd5d('0xf'))('app'),getJson=function(_0xcbbf40){const _0x23e4c5=_0xbfbd5d;return fs[_0x23e4c5('0x4')](path[_0x23e4c5('0x8')](__dirname,_0x23e4c5('0x2'),_0xcbbf40+'.json'),{'encoding':_0x23e4c5('0x6')});},jscriptyProjects=[{'id':0x1,'name':'CustomerSatisfaction','description':_0xbfbd5d('0x0'),'formData':getJson('customerSatisfation')}];exports[_0xbfbd5d('0xe')]=function(){const _0x139264=_0xbfbd5d;return db[_0x139264('0x5')][_0x139264('0xb')](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x139264('0xa')](function(){const _0x5861f4=_0x139264;logger[_0x5861f4('0xc')]('Jscripty\x20Projects\x20have\x20been\x20created');})[_0x139264('0x1')](function(){const _0x4ed6cc=_0x139264;logger[_0x4ed6cc('0x3')](_0x4ed6cc('0x7'));});}; \ No newline at end of file +const a862_0x1b0d=['../logger','.json','error','info','catch','utf-8','join','Can\x27t\x20create\x20Jscripty\x20Projects','app','create','Customer\x20Satisfaction\x20auto\x20generated','customerSatisfation','jscripty','CustomerSatisfaction','JscriptyProject','Jscripty\x20Projects\x20have\x20been\x20created','readFileSync','then','bulkCreate','path'];(function(_0x11fc6b,_0x1b0d81){const _0xae992=function(_0x55bc9d){while(--_0x55bc9d){_0x11fc6b['push'](_0x11fc6b['shift']());}};_0xae992(++_0x1b0d81);}(a862_0x1b0d,0x12f));const a862_0xae99=function(_0x11fc6b,_0x1b0d81){_0x11fc6b=_0x11fc6b-0x0;let _0xae992=a862_0x1b0d[_0x11fc6b];return _0xae992;};const _0x42b126=a862_0xae99;'use strict';const fs=require('fs'),path=require(_0x42b126('0x10')),db=require('../../mysqldb')['db'],logger=require(_0x42b126('0x11'))(_0x42b126('0x5')),getJson=function(_0x55bc9d){const _0x4c430c=_0x42b126;return fs[_0x4c430c('0xd')](path[_0x4c430c('0x3')](__dirname,_0x4c430c('0x9'),_0x55bc9d+_0x4c430c('0x12')),{'encoding':_0x4c430c('0x2')});},jscriptyProjects=[{'id':0x1,'name':_0x42b126('0xa'),'description':_0x42b126('0x7'),'formData':getJson(_0x42b126('0x8'))}];exports[_0x42b126('0x6')]=function(){const _0x212e45=_0x42b126;return db[_0x212e45('0xb')][_0x212e45('0xf')](jscriptyProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x212e45('0xe')](function(){const _0x5454a0=_0x212e45;logger[_0x5454a0('0x0')](_0x5454a0('0xc'));})[_0x212e45('0x1')](function(){const _0x5cf502=_0x212e45;logger[_0x5cf502('0x13')](_0x5cf502('0x4'));});}; \ No newline at end of file diff --git a/server/config/seedDB/lists.js b/server/config/seedDB/lists.js index 884e208..b4e7292 100644 --- a/server/config/seedDB/lists.js +++ b/server/config/seedDB/lists.js @@ -1 +1 @@ -const a863_0x185a=['../../mysqldb','CmList','Callback\x20list\x20auto\x20generated','Public\x20List','Black\x20List','black\x20list\x20auto\x20generated','../logger','bulkCreate','catch','Callback\x20List','app','error','create'];(function(_0x15aa5a,_0x185aca){const _0x550705=function(_0x29f932){while(--_0x29f932){_0x15aa5a['push'](_0x15aa5a['shift']());}};_0x550705(++_0x185aca);}(a863_0x185a,0x1db));const a863_0x5507=function(_0x15aa5a,_0x185aca){_0x15aa5a=_0x15aa5a-0x0;let _0x550705=a863_0x185a[_0x15aa5a];return _0x550705;};const _0xb0312b=a863_0x5507;'use strict';const db=require(_0xb0312b('0x6'))['db'],logger=require(_0xb0312b('0xc'))(_0xb0312b('0x3')),lists=[{'id':0x1,'name':_0xb0312b('0x9'),'description':'public\x20list\x20auto\x20generated'},{'id':0x2,'name':_0xb0312b('0xa'),'description':_0xb0312b('0xb')},{'id':0x3,'name':_0xb0312b('0x2'),'description':_0xb0312b('0x8')}];exports[_0xb0312b('0x5')]=function(){const _0x9ed196=_0xb0312b;return db[_0x9ed196('0x7')][_0x9ed196('0x0')](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){logger['info']('Lists\x20have\x20been\x20created');})[_0x9ed196('0x1')](function(){const _0x3b7084=_0x9ed196;logger[_0x3b7084('0x4')]('Can\x27t\x20create\x20Lists');});}; \ No newline at end of file +const a863_0xae3d=['Can\x27t\x20create\x20Lists','bulkCreate','black\x20list\x20auto\x20generated','../logger','public\x20list\x20auto\x20generated','then','Lists\x20have\x20been\x20created','../../mysqldb','Callback\x20List','error','info','create','app','CmList'];(function(_0x471f39,_0xae3d3d){const _0x37066c=function(_0x8fed62){while(--_0x8fed62){_0x471f39['push'](_0x471f39['shift']());}};_0x37066c(++_0xae3d3d);}(a863_0xae3d,0x138));const a863_0x3706=function(_0x471f39,_0xae3d3d){_0x471f39=_0x471f39-0x0;let _0x37066c=a863_0xae3d[_0x471f39];return _0x37066c;};const _0x40a51b=a863_0x3706;'use strict';const db=require(_0x40a51b('0x3'))['db'],logger=require(_0x40a51b('0xd'))(_0x40a51b('0x8')),lists=[{'id':0x1,'name':'Public\x20List','description':_0x40a51b('0x0')},{'id':0x2,'name':'Black\x20List','description':_0x40a51b('0xc')},{'id':0x3,'name':_0x40a51b('0x4'),'description':'Callback\x20list\x20auto\x20generated'}];exports[_0x40a51b('0x7')]=function(){const _0x486155=_0x40a51b;return db[_0x486155('0x9')][_0x486155('0xb')](lists,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x486155('0x1')](function(){const _0x254452=_0x486155;logger[_0x254452('0x6')](_0x254452('0x2'));})['catch'](function(){const _0x210969=_0x486155;logger[_0x210969('0x5')](_0x210969('0xa'));});}; \ No newline at end of file diff --git a/server/config/seedDB/mailAccounts.js b/server/config/seedDB/mailAccounts.js index 9d16474..49b7e84 100644 --- a/server/config/seedDB/mailAccounts.js +++ b/server/config/seedDB/mailAccounts.js @@ -1 +1 @@ -const a864_0x2ae8=['error','then','Can\x27t\x20create\x20Mail\x20Accounts','username','findOrCreate','MailServerIn','service\x20motion\x20account\x20auto\x20generated','service\x20motion\x20imap\x20auto\x20generated','../../mysqldb','Service\x20Mail','password','MailServerOut','service\x20motion\x20smtp\x20auto\x20generated','127.0.0.1','email@xcally.com','MailAccount','info','app','catch','SERV'];(function(_0x432a9a,_0x2ae8ca){const _0x5d6396=function(_0x1a8147){while(--_0x1a8147){_0x432a9a['push'](_0x432a9a['shift']());}};_0x5d6396(++_0x2ae8ca);}(a864_0x2ae8,0x9f));const a864_0x5d63=function(_0x432a9a,_0x2ae8ca){_0x432a9a=_0x432a9a-0x0;let _0x5d6396=a864_0x2ae8[_0x432a9a];return _0x5d6396;};const _0x5bdd8b=a864_0x5d63;'use strict';const db=require(_0x5bdd8b('0x9'))['db'],logger=require('../logger')(_0x5bdd8b('0x12'));exports['create']=function(){const _0x4be83b=_0x5bdd8b;let _0x1a8147;return db[_0x4be83b('0x10')][_0x4be83b('0x5')]({'where':{'service':!![]},'defaults':{'name':_0x4be83b('0xa'),'key':_0x4be83b('0x0'),'email':_0x4be83b('0xf'),'service':!![],'description':_0x4be83b('0x7'),'active':![],'ListId':0x1}})[_0x4be83b('0x2')](function([_0x558157,_0x3614ca]){const _0x5e8197=_0x4be83b;return _0x3614ca&&logger[_0x5e8197('0x11')]('service\x20motion\x20account\x20auto\x20generated'),_0x1a8147=_0x558157,db[_0x5e8197('0xc')][_0x5e8197('0x5')]({'where':{'MailAccountId':_0x1a8147['id']},'defaults':{'host':_0x5e8197('0xe'),'user':_0x5e8197('0x4'),'pass':_0x5e8197('0xb'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x1a8147['id'],'description':_0x5e8197('0xd')}});})['then'](function([,_0x36c556]){const _0x278ba9=_0x4be83b;return _0x36c556&&logger[_0x278ba9('0x11')](_0x278ba9('0xd')),db[_0x278ba9('0x6')][_0x278ba9('0x5')]({'where':{'MailAccountId':_0x1a8147['id']},'defaults':{'host':'127.0.0.1','user':'username','password':'password','port':0x3e1,'MailAccountId':_0x1a8147['id'],'description':_0x278ba9('0x8')}});})[_0x4be83b('0x2')](function([,_0x318707]){const _0x44bd98=_0x4be83b;_0x318707&&logger[_0x44bd98('0x11')](_0x44bd98('0x8'));})[_0x4be83b('0x13')](function(){const _0x403da4=_0x4be83b;logger[_0x403da4('0x1')](_0x403da4('0x3'));});}; \ No newline at end of file +const a864_0x40d7=['service\x20motion\x20imap\x20auto\x20generated','error','info','then','Can\x27t\x20create\x20Mail\x20Accounts','Service\x20Mail','../logger','findOrCreate','service\x20motion\x20account\x20auto\x20generated','MailAccount','app','password','MailServerOut','127.0.0.1','email@xcally.com','service\x20motion\x20smtp\x20auto\x20generated','username','../../mysqldb'];(function(_0xba95cc,_0x40d795){const _0xde8560=function(_0x804e07){while(--_0x804e07){_0xba95cc['push'](_0xba95cc['shift']());}};_0xde8560(++_0x40d795);}(a864_0x40d7,0x166));const a864_0xde85=function(_0xba95cc,_0x40d795){_0xba95cc=_0xba95cc-0x0;let _0xde8560=a864_0x40d7[_0xba95cc];return _0xde8560;};const _0xdcbdbc=a864_0xde85;'use strict';const db=require(_0xdcbdbc('0x1'))['db'],logger=require(_0xdcbdbc('0x8'))(_0xdcbdbc('0xc'));exports['create']=function(){const _0x128a3f=_0xdcbdbc;let _0x804e07;return db[_0x128a3f('0xb')][_0x128a3f('0x9')]({'where':{'service':!![]},'defaults':{'name':_0x128a3f('0x7'),'key':'SERV','email':_0x128a3f('0x10'),'service':!![],'description':_0x128a3f('0xa'),'active':![],'ListId':0x1}})[_0x128a3f('0x5')](function([_0x5f2696,_0x3ab9ee]){const _0x380ea3=_0x128a3f;return _0x3ab9ee&&logger[_0x380ea3('0x4')]('service\x20motion\x20account\x20auto\x20generated'),_0x804e07=_0x5f2696,db[_0x380ea3('0xe')]['findOrCreate']({'where':{'MailAccountId':_0x804e07['id']},'defaults':{'host':_0x380ea3('0xf'),'user':_0x380ea3('0x0'),'pass':_0x380ea3('0xd'),'port':0x19,'secure':![],'authentication':![],'MailAccountId':_0x804e07['id'],'description':_0x380ea3('0x11')}});})[_0x128a3f('0x5')](function([,_0x373e4e]){const _0xb27f75=_0x128a3f;return _0x373e4e&&logger['info'](_0xb27f75('0x11')),db['MailServerIn'][_0xb27f75('0x9')]({'where':{'MailAccountId':_0x804e07['id']},'defaults':{'host':'127.0.0.1','user':_0xb27f75('0x0'),'password':_0xb27f75('0xd'),'port':0x3e1,'MailAccountId':_0x804e07['id'],'description':_0xb27f75('0x2')}});})[_0x128a3f('0x5')](function([,_0x51e6b9]){const _0x4ca535=_0x128a3f;_0x51e6b9&&logger[_0x4ca535('0x4')](_0x4ca535('0x2'));})['catch'](function(){const _0x3b9932=_0x128a3f;logger[_0x3b9932('0x3')](_0x3b9932('0x6'));});}; \ No newline at end of file diff --git a/server/config/seedDB/mailSubstatuses.js b/server/config/seedDB/mailSubstatuses.js index 0b8dec8..71b9432 100644 --- a/server/config/seedDB/mailSubstatuses.js +++ b/server/config/seedDB/mailSubstatuses.js @@ -1 +1 @@ -const a865_0x2239=['../../mysqldb','info','catch','pending','create','error','Substatues\x20have\x20been\x20created','Can\x27t\x20create\x20MailSubstatuses','app','then'];(function(_0x33c7d0,_0x223984){const _0x580cd4=function(_0x438829){while(--_0x438829){_0x33c7d0['push'](_0x33c7d0['shift']());}};_0x580cd4(++_0x223984);}(a865_0x2239,0x1a1));const a865_0x580c=function(_0x33c7d0,_0x223984){_0x33c7d0=_0x33c7d0-0x0;let _0x580cd4=a865_0x2239[_0x33c7d0];return _0x580cd4;};const _0x338e14=a865_0x580c;'use strict';const db=require(_0x338e14('0x3'))['db'],logger=require('../logger')(_0x338e14('0x1')),items=[{'id':0x1,'name':_0x338e14('0x6'),'description':'Pending\x20status\x20for\x20mail\x20interaction'}];exports[_0x338e14('0x7')]=function(){const _0x4f8944=_0x338e14;return db['MailSubstatus']['bulkCreate'](items,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x4f8944('0x2')](function(){const _0x4dd424=_0x4f8944;logger[_0x4dd424('0x4')](_0x4dd424('0x9'));})[_0x4f8944('0x5')](function(){const _0x335281=_0x4f8944;logger[_0x335281('0x8')](_0x335281('0x0'));});}; \ No newline at end of file +const a865_0x2a24=['Can\x27t\x20create\x20MailSubstatuses','../../mysqldb','catch','Substatues\x20have\x20been\x20created','MailSubstatus','info','create','Pending\x20status\x20for\x20mail\x20interaction'];(function(_0x4c1701,_0x2a240e){const _0x4259d4=function(_0x10b067){while(--_0x10b067){_0x4c1701['push'](_0x4c1701['shift']());}};_0x4259d4(++_0x2a240e);}(a865_0x2a24,0x10e));const a865_0x4259=function(_0x4c1701,_0x2a240e){_0x4c1701=_0x4c1701-0x0;let _0x4259d4=a865_0x2a24[_0x4c1701];return _0x4259d4;};const _0x3e434a=a865_0x4259;'use strict';const db=require(_0x3e434a('0x3'))['db'],logger=require('../logger')('app'),items=[{'id':0x1,'name':'pending','description':_0x3e434a('0x1')}];exports[_0x3e434a('0x0')]=function(){const _0x237171=_0x3e434a;return db[_0x237171('0x6')]['bulkCreate'](items,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0xf10308=_0x237171;logger[_0xf10308('0x7')](_0xf10308('0x5'));})[_0x237171('0x4')](function(){const _0x5c49b3=_0x237171;logger['error'](_0x5c49b3('0x2'));});}; \ No newline at end of file diff --git a/server/config/seedDB/migrations.js b/server/config/seedDB/migrations.js index 1fa0387..c453eb1 100644 --- a/server/config/seedDB/migrations.js +++ b/server/config/seedDB/migrations.js @@ -1 +1 @@ -const a866_0x452b=['create','app','Can\x27t\x20create\x20Version','../../../package.json','catch','Migration','../logger','then','error','.js'];(function(_0xb5907f,_0x452bd1){const _0x57981b=function(_0x5a915a){while(--_0x5a915a){_0xb5907f['push'](_0xb5907f['shift']());}};_0x57981b(++_0x452bd1);}(a866_0x452b,0x94));const a866_0x5798=function(_0xb5907f,_0x452bd1){_0xb5907f=_0xb5907f-0x0;let _0x57981b=a866_0x452b[_0xb5907f];return _0x57981b;};const _0x307f73=a866_0x5798;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x307f73('0x8'))(_0x307f73('0x3')),{version:packageVersion}=require(_0x307f73('0x5'));exports[_0x307f73('0x2')]=function(){const _0x38eba5=_0x307f73;return db[_0x38eba5('0x7')][_0x38eba5('0x2')]({'version':packageVersion+_0x38eba5('0x1')})[_0x38eba5('0x9')](function(){logger['info']('Version\x20have\x20been\x20created');})[_0x38eba5('0x6')](function(){const _0x137aa7=_0x38eba5;logger[_0x137aa7('0x0')](_0x137aa7('0x4'));});}; \ No newline at end of file +const a866_0x2f21=['create','../logger','then','Migration','app','catch','Can\x27t\x20create\x20Version','Version\x20have\x20been\x20created','info'];(function(_0xd3f52f,_0x2f2165){const _0x90b9ed=function(_0x5a533c){while(--_0x5a533c){_0xd3f52f['push'](_0xd3f52f['shift']());}};_0x90b9ed(++_0x2f2165);}(a866_0x2f21,0xed));const a866_0x90b9=function(_0xd3f52f,_0x2f2165){_0xd3f52f=_0xd3f52f-0x0;let _0x90b9ed=a866_0x2f21[_0xd3f52f];return _0x90b9ed;};const _0x4cbebe=a866_0x90b9;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x4cbebe('0x7'))(_0x4cbebe('0x1')),{version:packageVersion}=require('../../../package.json');exports[_0x4cbebe('0x6')]=function(){const _0x36b962=_0x4cbebe;return db[_0x36b962('0x0')]['create']({'version':packageVersion+'.js'})[_0x36b962('0x8')](function(){const _0x440641=_0x36b962;logger[_0x440641('0x5')](_0x440641('0x4'));})[_0x36b962('0x2')](function(){const _0x36e24e=_0x36b962;logger['error'](_0x36e24e('0x3'));});}; \ No newline at end of file diff --git a/server/config/seedDB/pauses.js b/server/config/seedDB/pauses.js index db6a621..3ce2de9 100644 --- a/server/config/seedDB/pauses.js +++ b/server/config/seedDB/pauses.js @@ -1 +1 @@ -const a867_0x5a85=['then','backoffice\x20pause\x20auto\x20generated','../../mysqldb','Can\x27t\x20create\x20Pauses','Pause','info','catch','bulkCreate','create'];(function(_0x1e101b,_0x5a8596){const _0x2aa7e2=function(_0xeb0376){while(--_0xeb0376){_0x1e101b['push'](_0x1e101b['shift']());}};_0x2aa7e2(++_0x5a8596);}(a867_0x5a85,0x80));const a867_0x2aa7=function(_0x1e101b,_0x5a8596){_0x1e101b=_0x1e101b-0x0;let _0x2aa7e2=a867_0x5a85[_0x1e101b];return _0x2aa7e2;};const _0x5c7a3e=a867_0x2aa7;'use strict';const db=require(_0x5c7a3e('0x0'))['db'],logger=require('../logger')('app'),pauses=[{'id':0x1,'name':'BACKOFFICE','description':_0x5c7a3e('0x8')},{'id':0x2,'name':'AFTERCALL','description':'aftercall\x20pause\x20auto\x20generated'}];exports[_0x5c7a3e('0x6')]=function(){const _0x2c5fa7=_0x5c7a3e;return db[_0x2c5fa7('0x2')][_0x2c5fa7('0x5')](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2c5fa7('0x7')](function(){const _0x30f138=_0x2c5fa7;logger[_0x30f138('0x3')]('Pauses\x20have\x20been\x20created');})[_0x2c5fa7('0x4')](function(){const _0x58c7b6=_0x2c5fa7;logger['error'](_0x58c7b6('0x1'));});}; \ No newline at end of file +const a867_0x1036=['../logger','Pauses\x20have\x20been\x20created','then','Pause','BACKOFFICE','app','backoffice\x20pause\x20auto\x20generated','info','bulkCreate','../../mysqldb','aftercall\x20pause\x20auto\x20generated','Can\x27t\x20create\x20Pauses'];(function(_0x50967a,_0x10368a){const _0x65a8f0=function(_0x335a54){while(--_0x335a54){_0x50967a['push'](_0x50967a['shift']());}};_0x65a8f0(++_0x10368a);}(a867_0x1036,0x1f1));const a867_0x65a8=function(_0x50967a,_0x10368a){_0x50967a=_0x50967a-0x0;let _0x65a8f0=a867_0x1036[_0x50967a];return _0x65a8f0;};const _0x16fb68=a867_0x65a8;'use strict';const db=require(_0x16fb68('0x4'))['db'],logger=require(_0x16fb68('0x7'))(_0x16fb68('0x0')),pauses=[{'id':0x1,'name':_0x16fb68('0xb'),'description':_0x16fb68('0x1')},{'id':0x2,'name':'AFTERCALL','description':_0x16fb68('0x5')}];exports['create']=function(){const _0x51d360=_0x16fb68;return db[_0x51d360('0xa')][_0x51d360('0x3')](pauses,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x51d360('0x9')](function(){const _0x4d21cd=_0x51d360;logger[_0x4d21cd('0x2')](_0x4d21cd('0x8'));})['catch'](function(){const _0x73b0bd=_0x51d360;logger['error'](_0x73b0bd('0x6'));});}; \ No newline at end of file diff --git a/server/config/seedDB/report/default.js b/server/config/seedDB/report/default.js index b7ed5ae..cfb36b0 100644 --- a/server/config/seedDB/report/default.js +++ b/server/config/seedDB/report/default.js @@ -1 +1 @@ -var a868_0xdf2c=['_voice_queues_distribution','Website\x20Summary','{\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}]}}','Detailed\x20queues\x20report','Openchannel\x20By\x20Agent','report_agent','report_queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Sms\x20interactions\x20by\x20account','WhatsApp\x20interactions\x20by\x20queue','_voice_calls','Details','WhatsApp\x20Account\x20Times','Pause\x20Details','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Fax\x20Account\x20Summary','WhatsApp\x20By\x20Queue','Rating\x20by\x20Queue','{\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}]}}','WhatsApp\x20By\x20Date','Outbound\x20Calls\x20Disposition','CallySquare\x20Blocks\x20Detail','CallySquare\x20Summary','Calls\x20by\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','Calls\x20by\x20Weekday','Chat\x20interactions\x20by\x20website','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','WhatsApp\x20interactions\x20by\x20agent','Calls\x20by\x20Hour','Records\x20rating\x20by\x20agent','Chat\x20interaction\x20times\x20by\x20website','Chat\x20interactions\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerabandon\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','report_openchannel_queue','[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Email\x20Account\x20Summary','_voice_queues','Agent\x20Calls','chat_interactions','_voice_queues_unanswered','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22mail_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','WhatsApp\x20interactions\x20by\x20date','Campaign\x20Calls','Outbound\x20Calls\x20by\x20Date','Fax\x20interactions\x20by\x20date','_mail','Answer\x20Time\x20by\x20Queue','Agents\x20status\x20details','List\x20Penetration\x20Rate','Summary\x20of\x20the\x20calls\x20disconnection\x20causes','{\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}]}}','_voice_callysquare','cm_hopper_history','_bull_ivr_campaigns','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}','Fax\x20interactions\x20by\x20queue','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','voice_recordings','Activities\x20Summary','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Sms\x20By\x20Queue','{\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}]}}','{\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:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','{\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}]}}]}}','Unmanaged\x20calls','Fax\x20Account\x20Times','Simple\x20queue\x20calls\x20overview','report_square_details','Abandon\x20time\x20performance\x20by\x20queue','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','cm_hopper_final','Email\x20By\x20Date','mail_interactions','report_call','WhatsApp\x20By\x20Agent','Openchannel\x20By\x20Date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20detail\x20(cdr)','Queue\x20calls\x20summary\x20by\x20date','Detailed\x20report\x20about\x20answered\x20queue\x20calls','Fax\x20By\x20Agent','Email\x20Account\x20Times','Calls\x20by\x20Date','report_fax_queue','Website\x20Times','Calls\x20Result','[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Manual\x20outbound\x20calls\x20detailed\x20report','Calls\x20distribution\x20by\x20hour','Fax\x20By\x20Queue','_sms','Outbound','Email\x20interaction\x20times\x20by\x20account','Agent\x27s\x20login\x20time','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','Email\x20interactions\x20by\x20agent','_bull_queue_campaigns','fax_interactions','_chat','Fax\x20interaction\x20times\x20by\x20account','Disposition\x20Rate','Openchannel\x20interaction\x20times\x20by\x20account','Answer\x20time\x20\x20by\x20hour','Openchannel\x20By\x20Queue','Sms\x20interactions\x20by\x20queue','Calls\x20Summary','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','Unanswered\x20by\x20Queue','Email\x20interactions\x20by\x20queue','_agents','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22\x22}]}}','_openchannel','report_mail_queue','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Email\x20interactions\x20by\x20account','Sms\x20By\x20Agent','Sms\x20interaction\x20times\x20by\x20account','Fax\x20By\x20Date','exports','Email\x20By\x20Agent','report_member','sms_interactions','Openchannel\x20interactions\x20by\x20account','Outbound\x20calls\x20grouped\x20by\x20disposition','Pause\x20Time','Chat\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Sentiment\x20Summary','Outbound\x20Calls\x20by\x20Agent','Unmanaged\x20calls\x20summary','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Sms\x20Account\x20Summary','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','WhatsApp\x20Account\x20Summary','Sms\x20By\x20Date','Calls\x20distribution\x20by\x20queue','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},{\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}]}}]}}','{\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:\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}]}}','Summary\x20report\x20of\x20the\x20calls\x20type','Records\x20rating\x20by\x20queue','_fax','_voice_agents','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','_voice_recordings','[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\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}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','Rating\x20by\x20Agent','[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Fax\x20interactions\x20by\x20agent','_whatsapp','Calls\x20by\x20Type','openchannel_interactions','report_square','Sentiment\x20by\x20agent','Agent\x27s\x20status\x20detail','Summary','_voice_queues_answered','Fax\x20interactions\x20by\x20account','{\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}]}}','{\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}]}}]}}','Email\x20By\x20Queue','Agent\x27s\x20activities\x20report','report_sms_queue','Sentiment\x20by\x20Agent','whatsapp_interactions','Chat\x20By\x20Date','Login\x20Time'];(function(_0x3f3254,_0xdf2c88){var _0xc9dd71=function(_0x2d8d5f){while(--_0x2d8d5f){_0x3f3254['push'](_0x3f3254['shift']());}};_0xc9dd71(++_0xdf2c88);}(a868_0xdf2c,0x196));var a868_0xc9dd=function(_0x3f3254,_0xdf2c88){_0x3f3254=_0x3f3254-0x0;var _0xc9dd71=a868_0xdf2c[_0x3f3254];return _0xc9dd71;};var _0x4b4776=a868_0xc9dd;'use strict';module[_0x4b4776('0x46')]=function(_0x2d8d5f){var _0x43ceea=_0x4b4776;return[{'id':0x1,'name':_0x43ceea('0x86'),'description':_0x43ceea('0x7d'),'parent':_0x2d8d5f+_0x43ceea('0xa1'),'table':_0x43ceea('0x80'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x2,'name':_0x43ceea('0x24'),'description':_0x43ceea('0x11'),'parent':_0x2d8d5f+_0x43ceea('0xa1'),'table':_0x43ceea('0x80'),'conditions':_0x43ceea('0x4')},{'id':0x3,'name':_0x43ceea('0x86'),'description':_0x43ceea('0x1e'),'parent':_0x2d8d5f+_0x43ceea('0x6f'),'table':_0x43ceea('0x7f'),'conditions':_0x43ceea('0x81')},{'id':0x4,'name':'Calls\x20by\x20Agent','description':_0x43ceea('0x9d'),'parent':_0x2d8d5f+_0x43ceea('0x6f'),'table':'report_agent','conditions':_0x43ceea('0x81')},{'id':0x5,'name':_0x43ceea('0x92'),'description':_0x43ceea('0x14'),'parent':_0x2d8d5f+_0x43ceea('0x6f'),'table':_0x43ceea('0x7f'),'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':_0x43ceea('0xac'),'description':'Queues\x20answer\x20time\x20performance','parent':_0x2d8d5f+'_voice_queues_answered','table':_0x43ceea('0x7f'),'conditions':_0x43ceea('0x81')},{'id':0x7,'name':'Disconnection\x20Cause','description':_0x43ceea('0xaf'),'parent':_0x2d8d5f+_0x43ceea('0x6f'),'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':0x8,'name':'Answer\x20Time\x20by\x20Hour','description':_0x43ceea('0x36'),'parent':_0x2d8d5f+_0x43ceea('0x6f'),'table':'report_agent','conditions':_0x43ceea('0x81')},{'id':0x9,'name':_0x43ceea('0x86'),'description':_0x43ceea('0x3a'),'parent':_0x2d8d5f+'_voice_queues_unanswered','table':_0x43ceea('0x80'),'conditions':_0x43ceea('0xd')},{'id':0xa,'name':_0x43ceea('0x3b'),'description':_0x43ceea('0x58'),'parent':_0x2d8d5f+_0x43ceea('0xa4'),'table':_0x43ceea('0x80'),'conditions':_0x43ceea('0xd')},{'id':0xb,'name':_0x43ceea('0xf'),'description':_0x43ceea('0x51'),'parent':_0x2d8d5f+'_voice_queues_unanswered','table':_0x43ceea('0x80'),'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':'Abandon\x20Time\x20by\x20Queue','description':_0x43ceea('0x13'),'parent':_0x2d8d5f+_0x43ceea('0xa4'),'table':_0x43ceea('0x80'),'conditions':_0x43ceea('0x9c')},{'id':0xd,'name':_0x43ceea('0x21'),'description':_0x43ceea('0x1d'),'parent':_0x2d8d5f+'_voice_queues_distribution','table':_0x43ceea('0x80'),'conditions':_0x43ceea('0x4')},{'id':0xe,'name':_0x43ceea('0x98'),'description':_0x43ceea('0x27'),'parent':_0x2d8d5f+_0x43ceea('0x7a'),'table':'report_queue','conditions':_0x43ceea('0x4')},{'id':0xf,'name':'Calls\x20by\x20Day','description':_0x43ceea('0x96'),'parent':_0x2d8d5f+_0x43ceea('0x7a'),'table':_0x43ceea('0x80'),'conditions':_0x43ceea('0x4')},{'id':0x10,'name':_0x43ceea('0x94'),'description':'Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','parent':_0x2d8d5f+_0x43ceea('0x7a'),'table':_0x43ceea('0x80'),'conditions':_0x43ceea('0x4')},{'id':0x11,'name':'Summary','description':_0x43ceea('0x57'),'parent':_0x2d8d5f+'_voice_queues','table':'report_queue','conditions':_0x43ceea('0x4')},{'id':0x12,'name':_0x43ceea('0x86'),'description':_0x43ceea('0x1c'),'parent':_0x2d8d5f+_0x43ceea('0x85'),'table':_0x43ceea('0x18'),'conditions':_0x43ceea('0x4')},{'id':0x13,'name':_0x43ceea('0x2a'),'description':_0x43ceea('0x26'),'parent':_0x2d8d5f+_0x43ceea('0x85'),'table':_0x43ceea('0x18'),'conditions':_0x43ceea('0x71')},{'id':0x14,'name':_0x43ceea('0x69'),'description':_0x43ceea('0x5c'),'parent':_0x2d8d5f+'_voice_calls','table':_0x43ceea('0x18'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x15,'name':_0x43ceea('0x8f'),'description':_0x43ceea('0x4b'),'parent':_0x2d8d5f+_0x43ceea('0x85'),'table':_0x43ceea('0x18'),'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':0x16,'name':_0x43ceea('0x50'),'description':_0x43ceea('0x2d'),'parent':_0x2d8d5f+_0x43ceea('0x85'),'table':'report_call','conditions':_0x43ceea('0x71')},{'id':0x17,'name':_0x43ceea('0xa9'),'description':_0x43ceea('0xa6'),'parent':_0x2d8d5f+'_voice_calls','table':_0x43ceea('0x18'),'conditions':_0x43ceea('0x71')},{'id':0x18,'name':_0x43ceea('0x79'),'description':_0x43ceea('0x2c'),'parent':_0x2d8d5f+_0x43ceea('0x3d'),'table':_0x43ceea('0x48'),'conditions':'{\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}]}}'},{'id':0x19,'name':_0x43ceea('0x8'),'description':_0x43ceea('0x74'),'parent':_0x2d8d5f+_0x43ceea('0x5f'),'table':_0x43ceea('0x48'),'conditions':_0x43ceea('0x8d')},{'id':0x1a,'name':_0x43ceea('0x88'),'description':_0x43ceea('0xad'),'parent':_0x2d8d5f+_0x43ceea('0x5f'),'table':_0x43ceea('0x48'),'conditions':_0x43ceea('0xb')},{'id':0x1b,'name':_0x43ceea('0x86'),'description':_0x43ceea('0x6d'),'parent':_0x2d8d5f+_0x43ceea('0x5f'),'table':_0x43ceea('0x48'),'conditions':_0x43ceea('0x8d')},{'id':0x1c,'name':_0x43ceea('0x4c'),'description':'Agent\x27s\x20pause\x20time','parent':_0x2d8d5f+_0x43ceea('0x5f'),'table':_0x43ceea('0x48'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27PAUSE\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}'},{'id':0x1d,'name':_0x43ceea('0x6e'),'description':_0x43ceea('0x91'),'parent':_0x2d8d5f+_0x43ceea('0x1'),'table':_0x43ceea('0x6b'),'conditions':_0x43ceea('0x4')},{'id':0x1e,'name':'Blocks','description':_0x43ceea('0x90'),'parent':_0x2d8d5f+_0x43ceea('0x1'),'table':_0x43ceea('0x12'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x1f,'name':_0x43ceea('0x65'),'description':_0x43ceea('0x99'),'parent':_0x2d8d5f+_0x43ceea('0x61'),'table':_0x43ceea('0x7'),'conditions':_0x43ceea('0x89')},{'id':0x20,'name':_0x43ceea('0x8c'),'description':_0x43ceea('0x5d'),'parent':_0x2d8d5f+_0x43ceea('0x61'),'table':'voice_recordings','conditions':_0x43ceea('0x7c')},{'id':0x21,'name':_0x43ceea('0x86'),'description':'','parent':_0x2d8d5f+_0x43ceea('0x30'),'table':_0x43ceea('0x15'),'conditions':_0x43ceea('0x64')},{'id':0x22,'name':'Calls\x20Summary','description':'','parent':_0x2d8d5f+_0x43ceea('0x30'),'table':_0x43ceea('0x2'),'conditions':_0x43ceea('0x64')},{'id':0x23,'name':_0x43ceea('0xa8'),'description':'','parent':_0x2d8d5f+_0x43ceea('0x30'),'table':'cm_hopper_final','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}'},{'id':0x24,'name':'List\x20Penetration\x20Rate','description':'','parent':_0x2d8d5f+'_bull_queue_campaigns','table':'cm_hopper_final','conditions':_0x43ceea('0x64')},{'id':0x25,'name':_0x43ceea('0xa2'),'description':'','parent':_0x2d8d5f+_0x43ceea('0x30'),'table':'cm_hopper_final','conditions':_0x43ceea('0x5b')},{'id':0x26,'name':_0x43ceea('0x34'),'description':'','parent':_0x2d8d5f+_0x43ceea('0x30'),'table':_0x43ceea('0x15'),'conditions':_0x43ceea('0x0')},{'id':0x27,'name':'Agent\x20Disposition\x20Rate','description':'','parent':_0x2d8d5f+_0x43ceea('0x30'),'table':_0x43ceea('0x15'),'conditions':_0x43ceea('0x0')},{'id':0x28,'name':_0x43ceea('0x86'),'description':'','parent':_0x2d8d5f+_0x43ceea('0x3'),'table':_0x43ceea('0x15'),'conditions':_0x43ceea('0x2e')},{'id':0x29,'name':_0x43ceea('0x39'),'description':'','parent':_0x2d8d5f+_0x43ceea('0x3'),'table':'cm_hopper_history','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}'},{'id':0x2a,'name':_0x43ceea('0xa8'),'description':'','parent':_0x2d8d5f+_0x43ceea('0x3'),'table':'cm_hopper_final','conditions':_0x43ceea('0x2e')},{'id':0x2b,'name':_0x43ceea('0xae'),'description':'','parent':_0x2d8d5f+'_bull_ivr_campaigns','table':'cm_hopper_final','conditions':_0x43ceea('0x2e')},{'id':0x2c,'name':_0x43ceea('0x7b'),'description':_0x43ceea('0x95'),'parent':_0x2d8d5f+_0x43ceea('0x32'),'table':_0x43ceea('0xa3'),'joins':'[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x2d,'name':_0x43ceea('0x23'),'description':_0x43ceea('0x9a'),'parent':_0x2d8d5f+_0x43ceea('0x32'),'table':_0x43ceea('0xa3'),'conditions':'{\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}]}}]}}]}}','joins':'[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x2e,'name':'Chat\x20By\x20Agent','description':_0x43ceea('0x9b'),'parent':_0x2d8d5f+_0x43ceea('0x32'),'table':_0x43ceea('0xa3'),'conditions':_0x43ceea('0x5a'),'joins':_0x43ceea('0x62')},{'id':0x2f,'name':_0x43ceea('0x78'),'description':'Chat\x20interactions\x20by\x20date','parent':_0x2d8d5f+_0x43ceea('0x32'),'table':_0x43ceea('0xa3'),'conditions':_0x43ceea('0x5a')},{'id':0x30,'name':_0x43ceea('0x4d'),'description':'Chat\x20interactions\x20by\x20queue','parent':_0x2d8d5f+'_chat','table':'report_chat_queue','joins':_0x43ceea('0x6')},{'id':0x31,'name':_0x43ceea('0xa0'),'description':_0x43ceea('0x42'),'parent':_0x2d8d5f+_0x43ceea('0xab'),'table':_0x43ceea('0x17'),'joins':_0x43ceea('0x54')},{'id':0x32,'name':_0x43ceea('0x20'),'description':_0x43ceea('0x2b'),'parent':_0x2d8d5f+_0x43ceea('0xab'),'table':_0x43ceea('0x17'),'conditions':_0x43ceea('0xa5'),'joins':_0x43ceea('0x54')},{'id':0x33,'name':_0x43ceea('0x47'),'description':_0x43ceea('0x2f'),'parent':_0x2d8d5f+_0x43ceea('0xab'),'table':'mail_interactions','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x43ceea('0x62')},{'id':0x34,'name':_0x43ceea('0x16'),'description':'Email\x20interactions\x20by\x20date','parent':_0x2d8d5f+_0x43ceea('0xab'),'table':_0x43ceea('0x17'),'conditions':_0x43ceea('0xc')},{'id':0x35,'name':_0x43ceea('0x73'),'description':_0x43ceea('0x3c'),'parent':_0x2d8d5f+_0x43ceea('0xab'),'table':_0x43ceea('0x40'),'joins':_0x43ceea('0x9f')},{'id':0x36,'name':'Openchannel\x20Account\x20Summary','description':_0x43ceea('0x4a'),'parent':_0x2d8d5f+'_openchannel','table':_0x43ceea('0x6a'),'joins':_0x43ceea('0x9')},{'id':0x37,'name':'Openchannel\x20Account\x20Times','description':_0x43ceea('0x35'),'parent':_0x2d8d5f+_0x43ceea('0x3f'),'table':'openchannel_interactions','conditions':_0x43ceea('0x72'),'joins':'[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x38,'name':_0x43ceea('0x7e'),'description':'Openchannel\x20interactions\x20by\x20agent','parent':_0x2d8d5f+'_openchannel','table':_0x43ceea('0x6a'),'conditions':_0x43ceea('0x60'),'joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x39,'name':_0x43ceea('0x1a'),'description':'Openchannel\x20interactions\x20by\x20date','parent':_0x2d8d5f+_0x43ceea('0x3f'),'table':_0x43ceea('0x6a'),'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':_0x43ceea('0x37'),'description':'Openchannel\x20interactions\x20by\x20queue','parent':_0x2d8d5f+_0x43ceea('0x3f'),'table':_0x43ceea('0x9e'),'joins':_0x43ceea('0x63')},{'id':0x3b,'name':_0x43ceea('0x53'),'description':_0x43ceea('0x83'),'parent':_0x2d8d5f+_0x43ceea('0x29'),'table':_0x43ceea('0x49'),'joins':_0x43ceea('0x52')},{'id':0x3c,'name':'Sms\x20Account\x20Times','description':_0x43ceea('0x44'),'parent':_0x2d8d5f+_0x43ceea('0x29'),'table':_0x43ceea('0x49'),'conditions':_0x43ceea('0x59'),'joins':_0x43ceea('0x52')},{'id':0x3d,'name':_0x43ceea('0x43'),'description':'Sms\x20interactions\x20by\x20agent','parent':_0x2d8d5f+_0x43ceea('0x29'),'table':'sms_interactions','conditions':_0x43ceea('0x1b'),'joins':_0x43ceea('0x62')},{'id':0x3e,'name':_0x43ceea('0x56'),'description':'Sms\x20interactions\x20by\x20date','parent':_0x2d8d5f+_0x43ceea('0x29'),'table':'sms_interactions','conditions':_0x43ceea('0x1b')},{'id':0x3f,'name':_0x43ceea('0xa'),'description':_0x43ceea('0x38'),'parent':_0x2d8d5f+_0x43ceea('0x29'),'table':_0x43ceea('0x75'),'joins':_0x43ceea('0x25')},{'id':0x40,'name':_0x43ceea('0x8a'),'description':_0x43ceea('0x70'),'parent':_0x2d8d5f+_0x43ceea('0x5e'),'table':_0x43ceea('0x31'),'joins':_0x43ceea('0x82')},{'id':0x41,'name':_0x43ceea('0x10'),'description':_0x43ceea('0x33'),'parent':_0x2d8d5f+'_fax','table':_0x43ceea('0x31'),'conditions':_0x43ceea('0xe'),'joins':'[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x42,'name':_0x43ceea('0x1f'),'description':_0x43ceea('0x67'),'parent':_0x2d8d5f+'_fax','table':_0x43ceea('0x31'),'conditions':_0x43ceea('0x4e'),'joins':_0x43ceea('0x62')},{'id':0x43,'name':_0x43ceea('0x45'),'description':_0x43ceea('0xaa'),'parent':_0x2d8d5f+_0x43ceea('0x5e'),'table':'fax_interactions','conditions':_0x43ceea('0x4e')},{'id':0x44,'name':_0x43ceea('0x28'),'description':_0x43ceea('0x5'),'parent':_0x2d8d5f+_0x43ceea('0x5e'),'table':_0x43ceea('0x22'),'joins':_0x43ceea('0x66')},{'id':0x45,'name':_0x43ceea('0x55'),'description':'WhatsApp\x20interactions\x20by\x20account','parent':_0x2d8d5f+_0x43ceea('0x68'),'table':_0x43ceea('0x77'),'joins':_0x43ceea('0x41')},{'id':0x46,'name':_0x43ceea('0x87'),'description':'WhatsApp\x20interaction\x20times\x20by\x20account','parent':_0x2d8d5f+_0x43ceea('0x68'),'table':'whatsapp_interactions','conditions':'{\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}]}}]}}','joins':_0x43ceea('0x41')},{'id':0x47,'name':_0x43ceea('0x19'),'description':_0x43ceea('0x97'),'parent':_0x2d8d5f+_0x43ceea('0x68'),'table':_0x43ceea('0x77'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','joins':_0x43ceea('0x62')},{'id':0x48,'name':_0x43ceea('0x8e'),'description':_0x43ceea('0xa7'),'parent':_0x2d8d5f+_0x43ceea('0x68'),'table':'whatsapp_interactions','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}'},{'id':0x49,'name':_0x43ceea('0x8b'),'description':_0x43ceea('0x84'),'parent':_0x2d8d5f+_0x43ceea('0x68'),'table':'report_whatsapp_queue','joins':'[{\x22parentKey\x22:\x22WhatsappQueueId\x22,\x22foreignTable\x22:\x22whatsapp_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x4a,'name':_0x43ceea('0x76'),'description':_0x43ceea('0x6c'),'parent':_0x2d8d5f+'_voice_recordings','table':_0x43ceea('0x7'),'conditions':_0x43ceea('0x93'),'joins':_0x43ceea('0x62')},{'id':0x4b,'name':'Sentiment\x20Summary','description':_0x43ceea('0x4f'),'parent':_0x2d8d5f+_0x43ceea('0x61'),'table':_0x43ceea('0x7'),'conditions':_0x43ceea('0x3e')}];}; \ No newline at end of file +var a868_0x2fdf=['[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','[{\x22parentKey\x22:\x22ChatQueueId\x22,\x22foreignTable\x22:\x22chat_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','mail_interactions','Sentiment\x20by\x20agent','Sms\x20Account\x20Summary','{\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}]}}]}}]}}','Agents\x20status\x20details','_bull_ivr_campaigns','Sms\x20interactions\x20by\x20queue','_bull_queue_campaigns','_voice_calls','Openchannel\x20interactions\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22sms_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','fax_interactions','_voice_agents','whatsapp_interactions','Calls\x20distribution\x20by\x20day\x20of\x20the\x20week','Outbound\x20Calls\x20by\x20Date','Fax\x20interaction\x20times\x20by\x20account','{\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}]}}]}}','Calls\x20by\x20Hour','Queue\x20calls\x20summary\x20by\x20date','Calls\x20by\x20Agent','[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\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}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallerabandon\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Email\x20By\x20Agent','[{\x22parentKey\x22:\x22SmsAccountId\x22,\x22foreignTable\x22:\x22sms_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_voice_callysquare','Agent\x27s\x20pause\x20time','Agent\x20calls\x20timer\x20Handle\x20time=\x20talk\x20time\x20+\x20ACW\x20time','{\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}]}}','Blocks','Activities\x20Summary','Calls\x20by\x20Date','Unanswered\x20calls\x20summary\x20by\x20queue','Email\x20interactions\x20by\x20agent','_voice_recordings','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}','WhatsApp\x20interaction\x20times\x20by\x20account','WhatsApp\x20interactions\x20by\x20queue','report_chat_queue','Detailed\x20queues\x20report','Email\x20interactions\x20by\x20account','Sms\x20interactions\x20by\x20account','cm_hopper_final','Calls\x20by\x20Type','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22IS\x20NOT\x20NULL\x22,\x22field\x22:\x22voice_recordings.sentiment\x22,\x22value\x22:\x22NULL\x22}]}}','Email\x20Account\x20Summary','Calls\x20by\x20Day','report_mail_queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22>\x22,\x22field\x22:\x22rating\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','Fax\x20interactions\x20by\x20agent','Details','Chat\x20interactions\x20by\x20agent','Queue\x20timer\x20Handle\x20Time=\x20Talk\x20Time\x20+\x20AVG\x20TIme','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27LOGIN\x27\x22,\x22required\x22:true},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22channel\x22,\x22value\x22:\x22\x27voice\x27\x22,\x22required\x22:true}]}}','Chat\x20interactions\x20by\x20website','Chat\x20By\x20Date','_mail','{\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:[]}}','sms_interactions','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22mail_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Fax\x20Account\x20Times','Sms\x20By\x20Queue','[{\x22parentKey\x22:\x22WhatsappAccountId\x22,\x22foreignTable\x22:\x22whatsapp_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Summary\x20of\x20the\x20calls\x20disconnection\x20causes','Sentiment\x20by\x20Agent','Unmanaged\x20calls','Calls\x20Result','Sentiment\x20Summary','Openchannel\x20By\x20Date','Records\x20rating\x20by\x20queue','_agents','Openchannel\x20interactions\x20by\x20account','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Email\x20interactions\x20by\x20date','report_agent','Sms\x20interaction\x20times\x20by\x20account','Openchannel\x20By\x20Agent','CallySquare\x20Blocks\x20Detail','Simple\x20queue\x20calls\x20overview','Summary\x20report\x20of\x20the\x20calls\x20type','report_call','{\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}]}}','report_queue','_openchannel','{\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:\x22fax_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Calls\x20Summary','Fax\x20By\x20Agent','Pause\x20Details','Openchannel\x20interaction\x20times\x20by\x20account','[{\x22parentKey\x22:\x22MailAccountId\x22,\x22foreignTable\x22:\x22mail_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22whatsapp_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22whatsapp_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22whatsapp_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','Agent\x27s\x20login\x20time','_voice_queues_answered','Outbound\x20calls\x20grouped\x20by\x20disposition','Outbound\x20Calls\x20Disposition','Chat\x20By\x20Queue','Chat\x20By\x20Agent','Email\x20Account\x20Times','Detailed\x20report\x20about\x20the\x20unanswered\x20calls','Answer\x20Time\x20by\x20Queue','Outbound\x20Calls\x20by\x20Agent','Fax\x20interactions\x20by\x20queue','Rating\x20by\x20Agent','Fax\x20By\x20Date','Chat\x20interactions\x20by\x20queue','Fax\x20interactions\x20by\x20account','Answer\x20Time\x20by\x20Hour','Answer\x20time\x20\x20by\x20hour','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}','[{\x22parentKey\x22:\x22OpenchannelAccountId\x22,\x22foreignTable\x22:\x22openchannel_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Pause\x20Time','CallySquare\x20Summary','chat_interactions','WhatsApp\x20interactions\x20by\x20date','_voice_queues_distribution','_voice_queues_unanswered','report_member','Email\x20By\x20Date','List\x20Penetration\x20Rate','_voice_queues','Abandon\x20time\x20performance\x20by\x20queue','report_whatsapp_queue','[{\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:\x22agentcomplete\x22,\x22value\x22:\x221\x22,\x22required\x22:true}]}}','Unanswered\x20by\x20Queue','WhatsApp\x20interactions\x20by\x20account','Chat\x20interaction\x20times\x20by\x20website','_fax','report_square_details','Calls\x20distribution\x20by\x20queue','openchannel_interactions','_sms','WhatsApp\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},{\x22condition\x22:\x22=\x22,\x22field\x22:\x22type\x22,\x22value\x22:\x22\x27PAUSE\x27\x22,\x22required\x22:true}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}','Fax\x20By\x20Queue','_chat','Rating\x20by\x20Queue','WhatsApp\x20Account\x20Times','Calls\x20by\x20Weekday','Sms\x20interactions\x20by\x20date','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','report_square','voice_recordings','Sms\x20By\x20Agent','Openchannel\x20By\x20Queue','[{\x22parentKey\x22:\x22FaxQueueId\x22,\x22foreignTable\x22:\x22fax_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20detail\x20(cdr)','Openchannel\x20interactions\x20by\x20agent','Outbound','[{\x22parentKey\x22:\x22OpenchannelQueueId\x22,\x22foreignTable\x22:\x22openchannel_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','_whatsapp','Fax\x20Account\x20Summary','Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20agent','Openchannel\x20Account\x20Times','Detailed\x20report\x20about\x20answered\x20queue\x20calls','WhatsApp\x20By\x20Date','[{\x22parentKey\x22:\x22FaxAccountId\x22,\x22foreignTable\x22:\x22fax_accounts\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20distribution\x20by\x20day\x20of\x20the\x20month','[{\x22parentKey\x22:\x22SmsQueueId\x22,\x22foreignTable\x22:\x22sms_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','exports','Queues\x20answer\x20time\x20performance','[{\x22parentKey\x22:\x22MailQueueId\x22,\x22foreignTable\x22:\x22mail_queues\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]','Calls\x20distribution\x20by\x20hour','Summary','Abandon\x20Time\x20by\x20Queue','Disconnection\x20Cause','Manual\x20outbound\x20calls\x20detailed\x20report','{\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}]}}','cm_hopper_history','WhatsApp\x20By\x20Queue','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22openchannel_interactions.closed\x22,\x22value\x22:\x221\x22},{\x22group\x22:{\x22operator\x22:\x22OR\x22,\x22rules\x22:[{\x22condition\x22:\x22!=\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x27unmanaged\x27\x22},{\x22condition\x22:\x22IS\x20NULL\x22,\x22field\x22:\x22openchannel_interactions.disposition\x22,\x22value\x22:\x22\x22}]}}]}}','{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_interactions.closed\x22,\x22value\x22:\x221\x22}]}}','Agent\x20Disposition\x20Rate','Fax\x20interactions\x20by\x20date'];(function(_0x2cecbc,_0x2fdf6d){var _0x26f25a=function(_0x5f2242){while(--_0x5f2242){_0x2cecbc['push'](_0x2cecbc['shift']());}};_0x26f25a(++_0x2fdf6d);}(a868_0x2fdf,0x75));var a868_0x26f2=function(_0x2cecbc,_0x2fdf6d){_0x2cecbc=_0x2cecbc-0x0;var _0x26f25a=a868_0x2fdf[_0x2cecbc];return _0x26f25a;};var _0x4cef63=a868_0x26f2;'use strict';module[_0x4cef63('0x30')]=function(_0x5f2242){var _0x2d3f8e=_0x4cef63;return[{'id':0x1,'name':'Details','description':_0x2d3f8e('0x69'),'parent':_0x5f2242+_0x2d3f8e('0x7'),'table':_0x2d3f8e('0x95'),'conditions':_0x2d3f8e('0x7c')},{'id':0x2,'name':_0x2d3f8e('0x85'),'description':_0x2d3f8e('0x91'),'parent':_0x5f2242+_0x2d3f8e('0x7'),'table':_0x2d3f8e('0x95'),'conditions':_0x2d3f8e('0x7c')},{'id':0x3,'name':_0x2d3f8e('0x74'),'description':_0x2d3f8e('0x2b'),'parent':_0x5f2242+_0x2d3f8e('0xa0'),'table':'report_agent','conditions':_0x2d3f8e('0xb')},{'id':0x4,'name':_0x2d3f8e('0x55'),'description':_0x2d3f8e('0x5d'),'parent':_0x5f2242+'_voice_queues_answered','table':_0x2d3f8e('0x8d'),'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':_0x2d3f8e('0x76'),'parent':_0x5f2242+'_voice_queues_answered','table':_0x2d3f8e('0x8d'),'conditions':_0x2d3f8e('0xb')},{'id':0x6,'name':_0x2d3f8e('0xa7'),'description':_0x2d3f8e('0x31'),'parent':_0x5f2242+_0x2d3f8e('0xa0'),'table':_0x2d3f8e('0x8d'),'conditions':_0x2d3f8e('0xb')},{'id':0x7,'name':_0x2d3f8e('0x36'),'description':_0x2d3f8e('0x82'),'parent':_0x5f2242+_0x2d3f8e('0xa0'),'table':'report_agent','conditions':_0x2d3f8e('0xb')},{'id':0x8,'name':_0x2d3f8e('0xae'),'description':_0x2d3f8e('0xaf'),'parent':_0x5f2242+_0x2d3f8e('0xa0'),'table':_0x2d3f8e('0x8d'),'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':_0x2d3f8e('0x74'),'description':_0x2d3f8e('0xa6'),'parent':_0x5f2242+'_voice_queues_unanswered','table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22queuecallercomplete\x22,\x22value\x22:\x220\x22,\x22required\x22:true}]}}'},{'id':0xa,'name':_0x2d3f8e('0xc'),'description':_0x2d3f8e('0x62'),'parent':_0x5f2242+_0x2d3f8e('0x3'),'table':_0x2d3f8e('0x95'),'conditions':_0x2d3f8e('0xb0')},{'id':0xb,'name':_0x2d3f8e('0x84'),'description':'Unmanaged\x20calls\x20summary','parent':_0x5f2242+_0x2d3f8e('0x3'),'table':'report_queue','conditions':_0x2d3f8e('0x97')},{'id':0xc,'name':_0x2d3f8e('0x35'),'description':_0x2d3f8e('0x8'),'parent':_0x5f2242+_0x2d3f8e('0x3'),'table':'report_queue','conditions':_0x2d3f8e('0x58')},{'id':0xd,'name':_0x2d3f8e('0x61'),'description':_0x2d3f8e('0x54'),'parent':_0x5f2242+'_voice_queues_distribution','table':'report_queue','conditions':_0x2d3f8e('0x7c')},{'id':0xe,'name':_0x2d3f8e('0x53'),'description':_0x2d3f8e('0x33'),'parent':_0x5f2242+'_voice_queues_distribution','table':'report_queue','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0xf,'name':_0x2d3f8e('0x70'),'description':_0x2d3f8e('0x2e'),'parent':_0x5f2242+_0x2d3f8e('0x2'),'table':_0x2d3f8e('0x95'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x10,'name':_0x2d3f8e('0x1b'),'description':_0x2d3f8e('0x4f'),'parent':_0x5f2242+_0x2d3f8e('0x2'),'table':'report_queue','conditions':_0x2d3f8e('0x7c')},{'id':0x11,'name':_0x2d3f8e('0x34'),'description':_0x2d3f8e('0x11'),'parent':_0x5f2242+'_voice_queues','table':_0x2d3f8e('0x95'),'conditions':_0x2d3f8e('0x7c')},{'id':0x12,'name':_0x2d3f8e('0x74'),'description':_0x2d3f8e('0x23'),'parent':_0x5f2242+_0x2d3f8e('0x49'),'table':_0x2d3f8e('0x93'),'conditions':_0x2d3f8e('0x7c')},{'id':0x13,'name':_0x2d3f8e('0x25'),'description':_0x2d3f8e('0x37'),'parent':_0x5f2242+_0x2d3f8e('0x49'),'table':_0x2d3f8e('0x93'),'conditions':_0x2d3f8e('0x5e')},{'id':0x14,'name':_0x2d3f8e('0x6d'),'description':_0x2d3f8e('0x92'),'parent':_0x5f2242+_0x2d3f8e('0x49'),'table':'report_call','conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[]}}'},{'id':0x15,'name':_0x2d3f8e('0xa2'),'description':_0x2d3f8e('0xa1'),'parent':_0x5f2242+'_voice_calls','table':_0x2d3f8e('0x93'),'conditions':_0x2d3f8e('0x5e')},{'id':0x16,'name':_0x2d3f8e('0xa8'),'description':_0x2d3f8e('0x29'),'parent':_0x5f2242+'_voice_calls','table':_0x2d3f8e('0x93'),'conditions':_0x2d3f8e('0x5e')},{'id':0x17,'name':_0x2d3f8e('0x50'),'description':'Summary\x20of\x20outbound\x20calls\x20grouped\x20by\x20date','parent':_0x5f2242+_0x2d3f8e('0x49'),'table':_0x2d3f8e('0x93'),'conditions':_0x2d3f8e('0x5e')},{'id':0x18,'name':'Login\x20Time','description':_0x2d3f8e('0x9f'),'parent':_0x5f2242+_0x2d3f8e('0x89'),'table':_0x2d3f8e('0x4'),'conditions':_0x2d3f8e('0x77')},{'id':0x19,'name':_0x2d3f8e('0x60'),'description':'Agent\x27s\x20activities\x20report','parent':_0x5f2242+_0x2d3f8e('0x4d'),'table':_0x2d3f8e('0x4'),'conditions':_0x2d3f8e('0x38')},{'id':0x1a,'name':_0x2d3f8e('0x9b'),'description':_0x2d3f8e('0x45'),'parent':_0x5f2242+_0x2d3f8e('0x4d'),'table':_0x2d3f8e('0x4'),'conditions':_0x2d3f8e('0x15')},{'id':0x1b,'name':_0x2d3f8e('0x74'),'description':'Agent\x27s\x20status\x20detail','parent':_0x5f2242+_0x2d3f8e('0x4d'),'table':_0x2d3f8e('0x4'),'conditions':_0x2d3f8e('0x38')},{'id':0x1c,'name':_0x2d3f8e('0xb2'),'description':_0x2d3f8e('0x5c'),'parent':_0x5f2242+_0x2d3f8e('0x4d'),'table':'report_member','conditions':_0x2d3f8e('0x94')},{'id':0x1d,'name':'Summary','description':_0x2d3f8e('0xb3'),'parent':_0x5f2242+'_voice_callysquare','table':_0x2d3f8e('0x1e'),'conditions':_0x2d3f8e('0x7c')},{'id':0x1e,'name':_0x2d3f8e('0x5f'),'description':_0x2d3f8e('0x90'),'parent':_0x5f2242+_0x2d3f8e('0x5b'),'table':_0x2d3f8e('0x10'),'conditions':_0x2d3f8e('0x7c')},{'id':0x1f,'name':_0x2d3f8e('0xaa'),'description':'Records\x20rating\x20by\x20agent','parent':_0x5f2242+_0x2d3f8e('0x64'),'table':_0x2d3f8e('0x1f'),'conditions':_0x2d3f8e('0x72')},{'id':0x20,'name':_0x2d3f8e('0x19'),'description':_0x2d3f8e('0x88'),'parent':_0x5f2242+_0x2d3f8e('0x64'),'table':_0x2d3f8e('0x1f'),'conditions':'{\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}]}}'},{'id':0x21,'name':_0x2d3f8e('0x74'),'description':'','parent':_0x5f2242+_0x2d3f8e('0x48'),'table':_0x2d3f8e('0x6c'),'conditions':_0x2d3f8e('0x65')},{'id':0x22,'name':_0x2d3f8e('0x99'),'description':'','parent':_0x5f2242+'_bull_queue_campaigns','table':_0x2d3f8e('0x39'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27queue\x27\x22}]}}'},{'id':0x23,'name':'Campaign\x20Calls','description':'','parent':_0x5f2242+_0x2d3f8e('0x48'),'table':'cm_hopper_final','conditions':_0x2d3f8e('0x65')},{'id':0x24,'name':_0x2d3f8e('0x6'),'description':'','parent':_0x5f2242+_0x2d3f8e('0x48'),'table':'cm_hopper_final','conditions':_0x2d3f8e('0x65')},{'id':0x25,'name':'Agent\x20Calls','description':'','parent':_0x5f2242+'_bull_queue_campaigns','table':_0x2d3f8e('0x6c'),'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':_0x5f2242+_0x2d3f8e('0x48'),'table':_0x2d3f8e('0x6c'),'conditions':_0x2d3f8e('0x57')},{'id':0x27,'name':_0x2d3f8e('0x3d'),'description':'','parent':_0x5f2242+'_bull_queue_campaigns','table':_0x2d3f8e('0x6c'),'conditions':_0x2d3f8e('0x57')},{'id':0x28,'name':_0x2d3f8e('0x74'),'description':'','parent':_0x5f2242+'_bull_ivr_campaigns','table':_0x2d3f8e('0x6c'),'conditions':_0x2d3f8e('0x16')},{'id':0x29,'name':'Calls\x20Summary','description':'','parent':_0x5f2242+'_bull_ivr_campaigns','table':_0x2d3f8e('0x39'),'conditions':_0x2d3f8e('0x16')},{'id':0x2a,'name':'Campaign\x20Calls','description':'','parent':_0x5f2242+_0x2d3f8e('0x46'),'table':_0x2d3f8e('0x6c'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22campaigntype\x22,\x22value\x22:\x22\x27ivr\x27\x22}]}}'},{'id':0x2b,'name':_0x2d3f8e('0x6'),'description':'','parent':_0x5f2242+'_bull_ivr_campaigns','table':_0x2d3f8e('0x6c'),'conditions':_0x2d3f8e('0x16')},{'id':0x2c,'name':'Website\x20Summary','description':_0x2d3f8e('0x78'),'parent':_0x5f2242+_0x2d3f8e('0x18'),'table':'chat_interactions','joins':_0x2d3f8e('0x56')},{'id':0x2d,'name':'Website\x20Times','description':_0x2d3f8e('0xe'),'parent':_0x5f2242+_0x2d3f8e('0x18'),'table':_0x2d3f8e('0x0'),'conditions':_0x2d3f8e('0x44'),'joins':'[{\x22parentKey\x22:\x22ChatWebsiteId\x22,\x22foreignTable\x22:\x22chat_websites\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x2e,'name':_0x2d3f8e('0xa4'),'description':_0x2d3f8e('0x75'),'parent':_0x5f2242+_0x2d3f8e('0x18'),'table':_0x2d3f8e('0x0'),'conditions':'{\x22group\x22:{\x22operator\x22:\x22AND\x22,\x22rules\x22:[{\x22condition\x22:\x22=\x22,\x22field\x22:\x22chat_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':0x2f,'name':_0x2d3f8e('0x79'),'description':'Chat\x20interactions\x20by\x20date','parent':_0x5f2242+_0x2d3f8e('0x18'),'table':'chat_interactions','conditions':_0x2d3f8e('0x3c')},{'id':0x30,'name':_0x2d3f8e('0xa3'),'description':_0x2d3f8e('0xac'),'parent':_0x5f2242+_0x2d3f8e('0x18'),'table':_0x2d3f8e('0x68'),'joins':_0x2d3f8e('0x40')},{'id':0x31,'name':_0x2d3f8e('0x6f'),'description':_0x2d3f8e('0x6a'),'parent':_0x5f2242+'_mail','table':_0x2d3f8e('0x41'),'joins':_0x2d3f8e('0x9d')},{'id':0x32,'name':_0x2d3f8e('0xa5'),'description':'Email\x20interaction\x20times\x20by\x20account','parent':_0x5f2242+_0x2d3f8e('0x7a'),'table':'mail_interactions','conditions':_0x2d3f8e('0x52'),'joins':_0x2d3f8e('0x9d')},{'id':0x33,'name':_0x2d3f8e('0x59'),'description':_0x2d3f8e('0x63'),'parent':_0x5f2242+_0x2d3f8e('0x7a'),'table':_0x2d3f8e('0x41'),'conditions':_0x2d3f8e('0x7e'),'joins':_0x2d3f8e('0x3f')},{'id':0x34,'name':_0x2d3f8e('0x5'),'description':_0x2d3f8e('0x8c'),'parent':_0x5f2242+_0x2d3f8e('0x7a'),'table':'mail_interactions','conditions':_0x2d3f8e('0x7e')},{'id':0x35,'name':'Email\x20By\x20Queue','description':'Email\x20interactions\x20by\x20queue','parent':_0x5f2242+_0x2d3f8e('0x7a'),'table':_0x2d3f8e('0x71'),'joins':_0x2d3f8e('0x32')},{'id':0x36,'name':'Openchannel\x20Account\x20Summary','description':_0x2d3f8e('0x8a'),'parent':_0x5f2242+_0x2d3f8e('0x96'),'table':'openchannel_interactions','joins':_0x2d3f8e('0xb1')},{'id':0x37,'name':_0x2d3f8e('0x2a'),'description':_0x2d3f8e('0x9c'),'parent':_0x5f2242+_0x2d3f8e('0x96'),'table':_0x2d3f8e('0x12'),'conditions':_0x2d3f8e('0x3b'),'joins':_0x2d3f8e('0xb1')},{'id':0x38,'name':_0x2d3f8e('0x8f'),'description':_0x2d3f8e('0x24'),'parent':_0x5f2242+_0x2d3f8e('0x96'),'table':'openchannel_interactions','conditions':_0x2d3f8e('0x1d'),'joins':_0x2d3f8e('0x3f')},{'id':0x39,'name':_0x2d3f8e('0x87'),'description':_0x2d3f8e('0x4a'),'parent':_0x5f2242+_0x2d3f8e('0x96'),'table':_0x2d3f8e('0x12'),'conditions':_0x2d3f8e('0x1d')},{'id':0x3a,'name':_0x2d3f8e('0x21'),'description':'Openchannel\x20interactions\x20by\x20queue','parent':_0x5f2242+_0x2d3f8e('0x96'),'table':'report_openchannel_queue','joins':_0x2d3f8e('0x26')},{'id':0x3b,'name':_0x2d3f8e('0x43'),'description':_0x2d3f8e('0x6b'),'parent':_0x5f2242+'_sms','table':_0x2d3f8e('0x7d'),'joins':_0x2d3f8e('0x5a')},{'id':0x3c,'name':'Sms\x20Account\x20Times','description':_0x2d3f8e('0x8e'),'parent':_0x5f2242+_0x2d3f8e('0x13'),'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':_0x2d3f8e('0x5a')},{'id':0x3d,'name':_0x2d3f8e('0x20'),'description':'Sms\x20interactions\x20by\x20agent','parent':_0x5f2242+'_sms','table':_0x2d3f8e('0x7d'),'conditions':_0x2d3f8e('0x4b'),'joins':_0x2d3f8e('0x3f')},{'id':0x3e,'name':'Sms\x20By\x20Date','description':_0x2d3f8e('0x1c'),'parent':_0x5f2242+_0x2d3f8e('0x13'),'table':'sms_interactions','conditions':_0x2d3f8e('0x4b')},{'id':0x3f,'name':_0x2d3f8e('0x80'),'description':_0x2d3f8e('0x47'),'parent':_0x5f2242+_0x2d3f8e('0x13'),'table':'report_sms_queue','joins':_0x2d3f8e('0x2f')},{'id':0x40,'name':_0x2d3f8e('0x28'),'description':_0x2d3f8e('0xad'),'parent':_0x5f2242+_0x2d3f8e('0xf'),'table':_0x2d3f8e('0x4c'),'joins':_0x2d3f8e('0x2d')},{'id':0x41,'name':_0x2d3f8e('0x7f'),'description':_0x2d3f8e('0x51'),'parent':_0x5f2242+'_fax','table':_0x2d3f8e('0x4c'),'conditions':'{\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}]}}]}}','joins':_0x2d3f8e('0x2d')},{'id':0x42,'name':_0x2d3f8e('0x9a'),'description':_0x2d3f8e('0x73'),'parent':_0x5f2242+_0x2d3f8e('0xf'),'table':_0x2d3f8e('0x4c'),'conditions':_0x2d3f8e('0x98'),'joins':'[{\x22parentKey\x22:\x22UserId\x22,\x22foreignTable\x22:\x22users\x22,\x22foreignKey\x22:\x22id\x22,\x22type\x22:\x22join\x22}]'},{'id':0x43,'name':_0x2d3f8e('0xab'),'description':_0x2d3f8e('0x3e'),'parent':_0x5f2242+'_fax','table':_0x2d3f8e('0x4c'),'conditions':_0x2d3f8e('0x98')},{'id':0x44,'name':_0x2d3f8e('0x17'),'description':_0x2d3f8e('0xa9'),'parent':_0x5f2242+_0x2d3f8e('0xf'),'table':'report_fax_queue','joins':_0x2d3f8e('0x22')},{'id':0x45,'name':'WhatsApp\x20Account\x20Summary','description':_0x2d3f8e('0xd'),'parent':_0x5f2242+_0x2d3f8e('0x27'),'table':_0x2d3f8e('0x4e'),'joins':_0x2d3f8e('0x81')},{'id':0x46,'name':_0x2d3f8e('0x1a'),'description':_0x2d3f8e('0x66'),'parent':_0x5f2242+_0x2d3f8e('0x27'),'table':'whatsapp_interactions','conditions':_0x2d3f8e('0x9e'),'joins':_0x2d3f8e('0x81')},{'id':0x47,'name':_0x2d3f8e('0x14'),'description':'WhatsApp\x20interactions\x20by\x20agent','parent':_0x5f2242+_0x2d3f8e('0x27'),'table':'whatsapp_interactions','conditions':_0x2d3f8e('0x8b'),'joins':_0x2d3f8e('0x3f')},{'id':0x48,'name':_0x2d3f8e('0x2c'),'description':_0x2d3f8e('0x1'),'parent':_0x5f2242+_0x2d3f8e('0x27'),'table':_0x2d3f8e('0x4e'),'conditions':_0x2d3f8e('0x8b')},{'id':0x49,'name':_0x2d3f8e('0x3a'),'description':_0x2d3f8e('0x67'),'parent':_0x5f2242+_0x2d3f8e('0x27'),'table':_0x2d3f8e('0x9'),'joins':_0x2d3f8e('0xa')},{'id':0x4a,'name':_0x2d3f8e('0x83'),'description':_0x2d3f8e('0x42'),'parent':_0x5f2242+_0x2d3f8e('0x64'),'table':_0x2d3f8e('0x1f'),'conditions':_0x2d3f8e('0x6e'),'joins':_0x2d3f8e('0x3f')},{'id':0x4b,'name':_0x2d3f8e('0x86'),'description':_0x2d3f8e('0x86'),'parent':_0x5f2242+_0x2d3f8e('0x64'),'table':'voice_recordings','conditions':_0x2d3f8e('0x7b')}];}; \ No newline at end of file diff --git a/server/config/seedDB/report/fields.js b/server/config/seedDB/report/fields.js index 552bb6a..dd7d188 100644 --- a/server/config/seedDB/report/fields.js +++ b/server/config/seedDB/report/fields.js @@ -1 +1 @@ -const a869_0x4ab7=['UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','queuecallerexit','NEGATIVE','Timeout','AvgACWTime','sms_accounts.name','whatsapp_interactions.closed','EnterAt','Abandoned\x20Rate<10s','Answer\x20Rate\x2010-20s','UniqueID','SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','queuecallerabandon','POSITIVE','TalkTime','chat_websites.name','destination','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','acwtime','Type','Open','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','HoldTime','BlackList','Mixed(%)','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','UniqueId','rating','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','agentacw','queuecallerexitreason','TOT','Avg\x20TalkTime','Email\x20Account','talktime','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','PauseType','chat_interactions.closed','LastApp','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','ROUND(AVG(talktime))','CallerID','Block','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','AgentACWTime','Caller\x20Id','Campaign\x20Name','QueueLeaveAt','Queue','SEC_TO_TIME','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','Reason','Source','Unmanaged','CallerIdNum','source','Destination','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','duration','AVG','LastCallAt','CallerId','report_fax_queue.id','MIXED','Hold\x20Time','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','NEUTRAL','membername','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','COUNT(IF(closed=0,1,NULL))','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','Neutral(%)','Hour','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Answered\x20>30s','campaign','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','report_chat_queue.id','starttime','UnmanagedAt','chat_queues.name','sms_queues.name','Unmanaged\x20(%)','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','DID','Tot\x20Answered','report_sms_queue.id','ListId','statedesc','AnswerTime','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','Total\x20(%)','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','QueueJoinAt','calleridname','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)','TotHandleTime','COUNT(IF(reason=\x27timeout\x27,1,NULL))','Login\x20Time','Negative(%)','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','Drop\x20Reason','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','ASC','reason','COUNT(IF(holdtime<10,1,NULL))','TotACWTime','agentcalledAt','voice_recordings.UserId','Duration','Answered','Tot\x20Duration','Closed','queuecallerexitAt','EndTime','AVG\x20Talk\x20Time','Penetration\x20Rate','lodash','LastData','Tot\x20Unmanaged\x20Time','ROUND(AVG(duration))','Total','AbandonAt','HangupReason','HOUR','ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','StartTime','AvgAbandonTime','DAYNAME(queuecallerjoinat)','Managed','Answered\x2010-20s','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','answertime','mail_interactions.id','COUNT(IF(holdtime\x20>=30,1,NULL))','whatsapp_queues.name','AgentACW','queue','Global\x20Count','disposition','queuecallerleaveAt','End\x20Time','Tot\x20Abandoned','Calls','SEC_TO_TIME(AVG(talktime))','Abandoned\x2060-120s','Interface','AVG\x20Interaction\x20Time','dropreason','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','fax_interactions.closed','ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','COUNT\x20DISTINCT','Date','whatsapp_interactions.createdAt','Openchannel\x20Account','project_name','SUM(IF(state=4,1,0))','position','Total\x20Calls','LastEvent','Abandoned\x20(%)','endtime','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','holdtime','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','agentconnectAt','Agent','Abandoned','leaveAt','Avg\x20Rating','users.fullname','interface','Day','Data','openchannel_accounts.name','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','enterAt','data1','QueueExitAt','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','Accepted','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(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','Interactions','agentcomplete','fax_interactions.id','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','Avg\x20HoldTime','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','AVG\x20Hold\x20Time','Project\x20Name','Answer\x20Rate','DESC','TotTalkTime','Unique\x20Id','Avg\x20Duration','countglobal','Pause','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','Offered','State','JoinAt','Sentiment\x20TOT','whatsapp_accounts.name','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','callerid','CallerIdName','CompleteAt','COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','openchannel_queues.name','Rated\x20Calls','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','SUM','Talk\x20Time','report_openchannel_queue.id','Disposition','voice_recordings.sentiment','queuecallerjoinat','Tot\x20AbandonTime','report_mail_queue.id','ROUND(AVG(holdtime))','lastapplication','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','Contacts','Sms\x20Account','blacklist','sms_interactions.id','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','fax_interactions.createdAt','exten','AgentConnectAt','sms_interactions.closed','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)','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','UnmanagedReason','report_whatsapp_queue.id','ExitAt','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','queuecallerabandonAt','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','talktime\x20+\x20acwtime','AvgHandleTime','Calls\x20(%)','Abandon','chat_interactions.createdAt','openchannel_interactions.id','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','calleridnum','Abandon\x20Time','QueuePosition','DayOfWeek','Complete','mail_accounts.name','dnid','lastevent','Tot\x20Handle\x20Time','data','UserId','LeaveAt','Answer\x20Rate\x20>30s','Answered\x2020-30s','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','chat_interactions.id','uniqueid','Web\x20Site','AvgTalkTime','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','Positive(%)','Abandoned\x20Rate\x2060-120s','queuecallercompleteAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','queuecallercomplete','Avg\x20Unmanaged\x20TIme','openchannel_interactions.closed','DestChannel','destinationchannel','QueueExit','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','COUNT','Abandoned>120s','groupBy','exports','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','fax_accounts.name','DATE','Answered\x20<10s','DAY(queuecallerjoinat)','ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Interaction\x20Time','Fax\x20Account','Avg\x20ACWTime','mail_interactions.createdAt','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','COUNT(IF(reason=\x27accepted\x27,1,NULL))','queuecallerjoinAt','Tot\x20TalkTime','type','billableseconds','COUNT(IF(closed=1,1,NULL))','Billsec','whatsapp_interactions.id','Completed\x20(%)','exitAt','Start\x20Time','Abandoned<10s','mail_interactions.closed','tag','Completed'];(function(_0x7e86e0,_0x4ab791){const _0x148f30=function(_0x4cb368){while(--_0x4cb368){_0x7e86e0['push'](_0x7e86e0['shift']());}};_0x148f30(++_0x4ab791);}(a869_0x4ab7,0x84));const a869_0x148f=function(_0x7e86e0,_0x4ab791){_0x7e86e0=_0x7e86e0-0x0;let _0x148f30=a869_0x4ab7[_0x7e86e0];return _0x148f30;};const _0x4dca0f=a869_0x148f;'use strict';const _=require(_0x4dca0f('0x12f'));module[_0x4dca0f('0x9d')]=function(){const _0x655dc7=_0x4dca0f,_0x4cb368=[{'field':_0x655dc7('0x8b'),'alias':'UniqueId','ReportId':0x1},{'field':_0x655dc7('0x7b'),'alias':'CallerIdNum','ReportId':0x1},{'field':_0x655dc7('0x118'),'alias':_0x655dc7('0x50'),'ReportId':0x1},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'ReportId':0x1},{'field':_0x655dc7('0xaa'),'alias':_0x655dc7('0x117'),'ReportId':0x1},{'field':_0x655dc7('0xa'),'alias':_0x655dc7('0xe8'),'ReportId':0x1},{'field':_0x655dc7('0xc4'),'alias':'QueueAbandon','ReportId':0x1},{'field':'queuecallerabandonAt','alias':'QueueAbandonAt','ReportId':0x1},{'field':_0x655dc7('0x93'),'alias':_0x655dc7('0x7f'),'ReportId':0x1},{'field':_0x655dc7('0x91'),'alias':_0x655dc7('0x51'),'ReportId':0x1},{'field':_0x655dc7('0xb9'),'alias':_0x655dc7('0x98'),'ReportId':0x1},{'field':'queuecallerexitAt','alias':_0x655dc7('0x31'),'ReportId':0x1},{'field':_0x655dc7('0xd6'),'alias':'QueueExitReason','ReportId':0x1},{'field':_0x655dc7('0x68'),'alias':_0x655dc7('0x10e'),'ReportId':0x1},{'field':_0x655dc7('0x99'),'alias':_0x655dc7('0xc6'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x1},{'field':_0x655dc7('0xb8'),'alias':'AbandonTime','format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x1},{'field':'IF(queuecallercomplete=1,holdtime,null)','alias':_0x655dc7('0x113'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x1},{'field':_0x655dc7('0x7b'),'alias':_0x655dc7('0xe2'),'ReportId':0x2},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'ReportId':0x2},{'field':_0x655dc7('0xaa'),'alias':'StartTime','ReportId':0x2},{'field':_0x655dc7('0x11e'),'alias':_0x655dc7('0x12c'),'custom':0x1,'ReportId':0x2},{'field':_0x655dc7('0x22'),'alias':_0x655dc7('0xce'),'format':_0x655dc7('0xea'),'ReportId':0x2},{'field':_0x655dc7('0xeb'),'alias':_0x655dc7('0x128'),'custom':0x1,'ReportId':0x2},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0xd2'),'ReportId':0x3},{'field':_0x655dc7('0x7b'),'alias':_0x655dc7('0xf0'),'ReportId':0x3},{'field':'calleridname','alias':_0x655dc7('0x50'),'ReportId':0x3},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'ReportId':0x3},{'field':'membername','alias':_0x655dc7('0x25'),'ReportId':0x3},{'field':_0x655dc7('0x125'),'alias':'AgentCalledAt','ReportId':0x3},{'field':_0x655dc7('0x24'),'alias':_0x655dc7('0x69'),'ReportId':0x3},{'field':'agentcompleteAt','alias':'AgentCompleteAt','ReportId':0x3},{'field':'holdtime','alias':_0x655dc7('0x113'),'ReportId':0x3},{'field':_0x655dc7('0xda'),'alias':'TalkTime','ReportId':0x3},{'field':_0x655dc7('0xd5'),'alias':_0x655dc7('0x6'),'ReportId':0x3},{'field':_0x655dc7('0xca'),'alias':_0x655dc7('0xe5'),'ReportId':0x3},{'field':'agentcomplete','alias':'AgentComplete','ReportId':0x3},{'field':_0x655dc7('0x122'),'alias':_0x655dc7('0x135'),'ReportId':0x3},{'field':_0x655dc7('0x82'),'alias':_0x655dc7('0x1e'),'ReportId':0x3},{'field':_0x655dc7('0x68'),'alias':'DID','ReportId':0x3},{'field':_0x655dc7('0xfd'),'alias':'Agent','groupBy':0x1,'ReportId':0x4},{'field':_0x655dc7('0x37'),'alias':_0x655dc7('0xb7'),'function':_0x655dc7('0x57'),'ReportId':0x4},{'field':'talktime','alias':_0x655dc7('0x43'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'ReportId':0x4},{'field':_0x655dc7('0xca'),'alias':_0x655dc7('0x124'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'ReportId':0x4},{'field':_0x655dc7('0x74'),'alias':_0x655dc7('0x11a'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x4},{'field':_0x655dc7('0xe1'),'alias':_0x655dc7('0x8d'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x4},{'field':'ROUND(AVG(acwtime))','alias':_0x655dc7('0xbc'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x4},{'field':_0x655dc7('0x3a'),'alias':_0x655dc7('0x75'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x4},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'groupBy':0x1,'ReportId':0x5},{'field':'agentcomplete','alias':_0x655dc7('0xb7'),'function':_0x655dc7('0x57'),'ReportId':0x5},{'field':_0x655dc7('0xda'),'alias':_0x655dc7('0xab'),'function':'SUM','format':_0x655dc7('0xea'),'ReportId':0x5},{'field':'holdtime','alias':'Tot\x20HoldTime','function':'SUM','format':'SEC_TO_TIME','ReportId':0x5},{'field':_0x655dc7('0xca'),'alias':'Tot\x20ACWTime','function':'SUM','format':_0x655dc7('0xea'),'ReportId':0x5},{'field':_0x655dc7('0x74'),'alias':_0x655dc7('0x83'),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0x655dc7('0xe1'),'alias':_0x655dc7('0xd8'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x5},{'field':_0x655dc7('0x5f'),'alias':_0x655dc7('0x3d'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(acwtime))','alias':_0x655dc7('0xa6'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','alias':'Avg\x20Handle\x20Time','format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x5},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'groupBy':0x1,'ReportId':0x6},{'field':_0x655dc7('0x37'),'alias':_0x655dc7('0x10f'),'function':'SUM','ReportId':0x6},{'field':_0x655dc7('0x123'),'alias':_0x655dc7('0xa1'),'custom':0x1,'ReportId':0x6},{'field':_0x655dc7('0x4e'),'alias':'Answer\x20Rate\x20<10s','custom':0x1,'ReportId':0x6},{'field':_0x655dc7('0x3e'),'alias':_0x655dc7('0x0'),'custom':0x1,'ReportId':0x6},{'field':_0x655dc7('0x15'),'alias':_0x655dc7('0xc1'),'custom':0x1,'ReportId':0x6},{'field':_0x655dc7('0x114'),'alias':_0x655dc7('0x88'),'custom':0x1,'ReportId':0x6},{'field':_0x655dc7('0x70'),'alias':'Answer\x20Rate\x2020-30s','custom':0x1,'ReportId':0x6},{'field':_0x655dc7('0x4'),'alias':_0x655dc7('0x104'),'custom':0x1,'ReportId':0x6},{'field':_0x655dc7('0xa3'),'alias':_0x655dc7('0x87'),'custom':0x1,'ReportId':0x6},{'field':'reason','alias':_0x655dc7('0xed'),'groupBy':0x1,'ReportId':0x7},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0xd'),'function':_0x655dc7('0x9a'),'ReportId':0x7},{'field':_0x655dc7('0x24'),'alias':_0x655dc7('0x102'),'format':_0x655dc7('0x136'),'groupBy':0x1,'ReportId':0x8},{'field':_0x655dc7('0x37'),'alias':_0x655dc7('0x10f'),'function':_0x655dc7('0x57'),'ReportId':0x8},{'field':_0x655dc7('0x123'),'alias':'Answered\x20<10s','custom':0x1,'ReportId':0x8},{'field':_0x655dc7('0x3e'),'alias':_0x655dc7('0x0'),'custom':0x1,'ReportId':0x8},{'field':'COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x8},{'field':'COUNT(IF(holdtime\x20>=30,1,NULL))','alias':_0x655dc7('0x104'),'custom':0x1,'ReportId':0x8},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0xd2'),'ReportId':0x9},{'field':'calleridnum','alias':_0x655dc7('0xf0'),'ReportId':0x9},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'ReportId':0x9},{'field':_0x655dc7('0xaa'),'alias':_0x655dc7('0x4b'),'ReportId':0x9},{'field':_0x655dc7('0xa'),'alias':_0x655dc7('0x86'),'ReportId':0x9},{'field':'queuecallerabandon','alias':_0x655dc7('0x77'),'ReportId':0x9},{'field':_0x655dc7('0x71'),'alias':_0x655dc7('0x134'),'ReportId':0x9},{'field':_0x655dc7('0xb9'),'alias':_0x655dc7('0xef'),'ReportId':0x9},{'field':_0x655dc7('0x12b'),'alias':_0x655dc7('0x109'),'ReportId':0x9},{'field':_0x655dc7('0xd6'),'alias':_0x655dc7('0x6d'),'ReportId':0x9},{'field':_0x655dc7('0x1c'),'alias':_0x655dc7('0x7d'),'ReportId':0x9},{'field':_0x655dc7('0x68'),'alias':_0x655dc7('0x10e'),'ReportId':0x9},{'field':_0x655dc7('0xb8'),'alias':_0x655dc7('0x7c'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x9},{'field':'UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':'Unmanaged\x20HoldTime','format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x9},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'groupBy':0x1,'ReportId':0xa},{'field':_0x655dc7('0xc4'),'alias':_0x655dc7('0x26'),'function':_0x655dc7('0x57'),'ReportId':0xa},{'field':_0x655dc7('0xb9'),'alias':_0x655dc7('0xef'),'function':_0x655dc7('0x57'),'ReportId':0xa},{'field':_0x655dc7('0xb8'),'alias':_0x655dc7('0x5d'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xa},{'field':_0x655dc7('0x10d'),'alias':_0x655dc7('0x139'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xa},{'field':_0x655dc7('0x2e'),'alias':_0x655dc7('0x131'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xa},{'field':_0x655dc7('0x137'),'alias':_0x655dc7('0x94'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xa},{'field':_0x655dc7('0xd6'),'alias':_0x655dc7('0xed'),'groupBy':0x1,'ReportId':0xb},{'field':_0x655dc7('0xb9'),'alias':_0x655dc7('0xd'),'function':_0x655dc7('0x57'),'ReportId':0xb},{'field':_0x655dc7('0x2e'),'alias':'Tot\x20Unmanaged\x20Time','function':_0x655dc7('0x57'),'custom':0x1,'ReportId':0xb},{'field':_0x655dc7('0x7'),'alias':'Queue','groupBy':0x1,'ReportId':0xc},{'field':'queuecallerabandon','alias':_0x655dc7('0xc'),'function':_0x655dc7('0x57'),'ReportId':0xc},{'field':_0x655dc7('0x21'),'alias':_0x655dc7('0xb4'),'custom':0x1,'ReportId':0xc},{'field':_0x655dc7('0x89'),'alias':_0x655dc7('0xc0'),'custom':0x1,'ReportId':0xc},{'field':_0x655dc7('0xcd'),'alias':'Abandoned\x2010-60s','custom':0x1,'ReportId':0xc},{'field':_0x655dc7('0x6b'),'alias':'Abandoned\x20Rate\x2010-60s','custom':0x1,'ReportId':0xc},{'field':_0x655dc7('0xdb'),'alias':_0x655dc7('0xf'),'custom':0x1,'ReportId':0xc},{'field':_0x655dc7('0x119'),'alias':_0x655dc7('0x90'),'custom':0x1,'ReportId':0xc},{'field':_0x655dc7('0x48'),'alias':_0x655dc7('0x9b'),'custom':0x1,'ReportId':0xc},{'field':_0x655dc7('0x120'),'alias':'Abandoned\x20Rate>120s','custom':0x1,'ReportId':0xc},{'field':_0x655dc7('0x5c'),'alias':_0x655dc7('0x17'),'format':_0x655dc7('0xa0'),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0x49'),'function':_0x655dc7('0x16'),'ReportId':0xd},{'field':_0x655dc7('0x93'),'alias':_0x655dc7('0xb7'),'function':'SUM','ReportId':0xd},{'field':_0x655dc7('0xc4'),'alias':_0x655dc7('0x26'),'function':_0x655dc7('0x57'),'custom':0x1,'ReportId':0xd},{'field':'queuecallerexit','alias':_0x655dc7('0xef'),'function':_0x655dc7('0x57'),'custom':0x1,'ReportId':0xd},{'field':_0x655dc7('0x99'),'alias':_0x655dc7('0xab'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xd},{'field':_0x655dc7('0x72'),'alias':_0x655dc7('0x8d'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xd},{'field':_0x655dc7('0x10d'),'alias':_0x655dc7('0x139'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xd},{'field':_0x655dc7('0x5c'),'alias':_0x655dc7('0x102'),'format':_0x655dc7('0x136'),'groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0x49'),'function':_0x655dc7('0x16'),'ReportId':0xe},{'field':_0x655dc7('0x93'),'alias':'Answered','function':_0x655dc7('0x57'),'ReportId':0xe},{'field':_0x655dc7('0x6c'),'alias':_0x655dc7('0x41'),'custom':0x1,'ReportId':0xe},{'field':_0x655dc7('0xc4'),'alias':'Abandoned','function':'SUM','ReportId':0xe},{'field':_0x655dc7('0xb9'),'alias':_0x655dc7('0xef'),'function':_0x655dc7('0x57'),'ReportId':0xe},{'field':_0x655dc7('0x99'),'alias':'Tot\x20TalkTime','function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':_0x655dc7('0x72'),'alias':_0x655dc7('0x8d'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xe},{'field':_0x655dc7('0x10d'),'alias':_0x655dc7('0x139'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xe},{'field':_0x655dc7('0xa2'),'alias':_0x655dc7('0x2b'),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0x49'),'function':_0x655dc7('0x16'),'ReportId':0xf},{'field':_0x655dc7('0x93'),'alias':'Answered','function':'SUM','ReportId':0xf},{'field':_0x655dc7('0x6c'),'alias':_0x655dc7('0x41'),'custom':0x1,'ReportId':0xf},{'field':'queuecallerabandon','alias':_0x655dc7('0x26'),'function':_0x655dc7('0x57'),'ReportId':0xf},{'field':_0x655dc7('0xb9'),'alias':_0x655dc7('0xef'),'function':'SUM','ReportId':0xf},{'field':_0x655dc7('0x99'),'alias':'Tot\x20TalkTime','function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xf},{'field':_0x655dc7('0x72'),'alias':'AvgTalkTime','format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xf},{'field':_0x655dc7('0x10d'),'alias':_0x655dc7('0x139'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0xf},{'field':_0x655dc7('0x13a'),'alias':_0x655dc7('0x7e'),'groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0x49'),'function':_0x655dc7('0x16'),'ReportId':0x10},{'field':_0x655dc7('0x93'),'alias':_0x655dc7('0x128'),'function':_0x655dc7('0x57'),'ReportId':0x10},{'field':_0x655dc7('0x6c'),'alias':_0x655dc7('0x41'),'custom':0x1,'ReportId':0x10},{'field':_0x655dc7('0xc4'),'alias':_0x655dc7('0x26'),'function':'SUM','orderBy':_0x655dc7('0x121'),'ReportId':0x10},{'field':_0x655dc7('0xb9'),'alias':'Unmanaged','function':_0x655dc7('0x57'),'ReportId':0x10},{'field':_0x655dc7('0x99'),'alias':'Tot\x20TalkTime','function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x10},{'field':_0x655dc7('0x72'),'alias':'AvgTalkTime','format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x10},{'field':_0x655dc7('0x10d'),'alias':'AvgAbandonTime','format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x10},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'groupBy':0x1,'ReportId':0x11},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0x49'),'function':'COUNT\x20DISTINCT','ReportId':0x11},{'field':_0x655dc7('0x93'),'alias':_0x655dc7('0x128'),'function':_0x655dc7('0x57'),'ReportId':0x11},{'field':'ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','alias':'Answer\x20Rate','custom':0x1,'ReportId':0x11},{'field':_0x655dc7('0xc4'),'alias':_0x655dc7('0x26'),'function':_0x655dc7('0x57'),'ReportId':0x11},{'field':_0x655dc7('0xb9'),'alias':_0x655dc7('0xef'),'function':_0x655dc7('0x57'),'ReportId':0x11},{'field':_0x655dc7('0x99'),'alias':_0x655dc7('0xab'),'function':'SUM','format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x11},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':_0x655dc7('0x8d'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x11},{'field':_0x655dc7('0x10d'),'alias':_0x655dc7('0x139'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x11},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0xc2'),'ReportId':0x12},{'field':_0x655dc7('0xac'),'alias':'Type','ReportId':0x12},{'field':_0x655dc7('0xb6'),'alias':'Tag','ReportId':0x12},{'field':'source','alias':_0x655dc7('0xee'),'ReportId':0x12},{'field':_0x655dc7('0xc8'),'alias':_0x655dc7('0xf2'),'ReportId':0x12},{'field':'callerid','alias':_0x655dc7('0xe2'),'ReportId':0x12},{'field':_0x655dc7('0x97'),'alias':_0x655dc7('0x96'),'ReportId':0x12},{'field':_0x655dc7('0x60'),'alias':_0x655dc7('0xdf'),'ReportId':0x12},{'field':'lastdata','alias':_0x655dc7('0x130'),'ReportId':0x12},{'field':'starttime','alias':'StartTime','ReportId':0x12},{'field':_0x655dc7('0x2'),'alias':_0x655dc7('0x113'),'ReportId':0x12},{'field':_0x655dc7('0x20'),'alias':_0x655dc7('0x12c'),'ReportId':0x12},{'field':_0x655dc7('0xf4'),'alias':'Duration','ReportId':0x12},{'field':_0x655dc7('0x9'),'alias':_0x655dc7('0x5a'),'ReportId':0x12},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0xc2'),'ReportId':0x13},{'field':'accountcode','alias':'AgentExtension','ReportId':0x13},{'field':_0x655dc7('0xf1'),'alias':_0x655dc7('0xee'),'ReportId':0x13},{'field':_0x655dc7('0xc8'),'alias':_0x655dc7('0xf2'),'ReportId':0x13},{'field':'callerid','alias':_0x655dc7('0xf7'),'ReportId':0x13},{'field':_0x655dc7('0x108'),'alias':_0x655dc7('0x138'),'ReportId':0x13},{'field':_0x655dc7('0x2'),'alias':_0x655dc7('0x113'),'ReportId':0x13},{'field':_0x655dc7('0x20'),'alias':_0x655dc7('0x12c'),'ReportId':0x13},{'field':_0x655dc7('0xf4'),'alias':_0x655dc7('0x127'),'format':_0x655dc7('0xea'),'ReportId':0x13},{'field':_0x655dc7('0xad'),'alias':_0x655dc7('0xaf'),'format':_0x655dc7('0xea'),'ReportId':0x13},{'field':_0x655dc7('0x9'),'alias':_0x655dc7('0x5a'),'ReportId':0x13},{'field':_0x655dc7('0xb6'),'alias':'Tag','ReportId':0x13},{'field':_0x655dc7('0xac'),'alias':_0x655dc7('0xcb'),'groupBy':0x1,'ReportId':0x14},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0xd'),'function':_0x655dc7('0x9a'),'ReportId':0x14},{'field':_0x655dc7('0xf4'),'alias':_0x655dc7('0x129'),'function':'SUM','format':_0x655dc7('0xea'),'ReportId':0x14},{'field':_0x655dc7('0x132'),'alias':_0x655dc7('0x45'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x14},{'field':_0x655dc7('0x9'),'alias':'Disposition','groupBy':0x1,'ReportId':0x15},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0xd'),'function':_0x655dc7('0x9a'),'ReportId':0x15},{'field':_0x655dc7('0xf4'),'alias':_0x655dc7('0x129'),'function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','ReportId':0x15},{'field':'ROUND(AVG(duration))','alias':_0x655dc7('0x45'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x15},{'field':_0x655dc7('0xc3'),'alias':'Agent','groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':'uniqueid','alias':'Calls','function':'COUNT','ReportId':0x16},{'field':_0x655dc7('0xf4'),'alias':_0x655dc7('0x129'),'function':'SUM','format':'SEC_TO_TIME','ReportId':0x16},{'field':_0x655dc7('0x132'),'alias':_0x655dc7('0x45'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x16},{'field':_0x655dc7('0x108'),'alias':'Date','format':_0x655dc7('0xa0'),'groupBy':0x1,'ReportId':0x17},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0xd'),'function':_0x655dc7('0x9a'),'ReportId':0x17},{'field':_0x655dc7('0xf4'),'alias':_0x655dc7('0x129'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'ReportId':0x17},{'field':_0x655dc7('0x132'),'alias':_0x655dc7('0x45'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x17},{'field':_0x655dc7('0xfd'),'alias':_0x655dc7('0x25'),'groupBy':0x1,'orderBy':_0x655dc7('0x121'),'ReportId':0x18},{'field':_0x655dc7('0x3c'),'alias':_0x655dc7('0x127'),'function':'SUM','format':'SEC_TO_TIME','custom':0x1,'ReportId':0x18},{'field':_0x655dc7('0xfd'),'alias':_0x655dc7('0x25'),'groupBy':0x1,'ReportId':0x19},{'field':_0x655dc7('0x116'),'alias':_0x655dc7('0x11c'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x19},{'field':_0x655dc7('0x3b'),'alias':'Talk\x20Time','function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x19},{'field':'CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','alias':'Pause\x20Time','function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x19},{'field':_0x655dc7('0xfd'),'alias':_0x655dc7('0x25'),'ReportId':0x1a},{'field':'enterAt','alias':_0x655dc7('0xbf'),'ReportId':0x1a},{'field':_0x655dc7('0xb2'),'alias':_0x655dc7('0x6f'),'ReportId':0x1a},{'field':_0x655dc7('0x30'),'alias':_0x655dc7('0x47'),'ReportId':0x1a},{'field':_0x655dc7('0xf4'),'alias':'Duration','format':_0x655dc7('0xea'),'ReportId':0x1a},{'field':_0x655dc7('0xfd'),'alias':_0x655dc7('0x25'),'ReportId':0x1b},{'field':_0x655dc7('0x2a'),'alias':_0x655dc7('0x10'),'ReportId':0x1b},{'field':_0x655dc7('0xac'),'alias':'Event','ReportId':0x1b},{'field':'data1','alias':_0x655dc7('0xcb'),'ReportId':0x1b},{'field':_0x655dc7('0x2f'),'alias':_0x655dc7('0xbf'),'ReportId':0x1b},{'field':_0x655dc7('0xb2'),'alias':_0x655dc7('0x6f'),'ReportId':0x1b},{'field':_0x655dc7('0x3c'),'alias':_0x655dc7('0x127'),'format':_0x655dc7('0xea'),'custom':0x1,'ReportId':0x1b},{'field':'membername','alias':'Agent','groupBy':0x1,'orderBy':'ASC','ReportId':0x1c},{'field':_0x655dc7('0x30'),'alias':_0x655dc7('0xdd'),'groupBy':0x1,'orderBy':'ASC','ReportId':0x1c},{'field':_0x655dc7('0x3c'),'alias':'Duration','function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1c},{'field':_0x655dc7('0x1a'),'alias':_0x655dc7('0x40'),'ReportId':0x1d},{'field':'uniqueid','alias':'UniqueId','ReportId':0x1d},{'field':'callerid','alias':_0x655dc7('0xf7'),'ReportId':0x1d},{'field':_0x655dc7('0x81'),'alias':_0x655dc7('0x10e'),'ReportId':0x1d},{'field':'joinAt','alias':_0x655dc7('0xb3'),'orderBy':_0x655dc7('0x121'),'ReportId':0x1d},{'field':_0x655dc7('0x27'),'alias':_0x655dc7('0xb'),'ReportId':0x1d},{'field':_0x655dc7('0xd1'),'alias':_0x655dc7('0x127'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1d},{'field':_0x655dc7('0x8b'),'alias':_0x655dc7('0x44'),'ReportId':0x1e},{'field':_0x655dc7('0x1a'),'alias':_0x655dc7('0x40'),'ReportId':0x1e},{'field':_0x655dc7('0x4f'),'alias':_0x655dc7('0xe6'),'ReportId':0x1e},{'field':'node','alias':_0x655dc7('0xe3'),'ReportId':0x1e},{'field':_0x655dc7('0x84'),'alias':_0x655dc7('0x2c'),'ReportId':0x1e},{'field':'connectedlinename','alias':_0x655dc7('0x25'),'groupBy':0x1,'ReportId':0x1f},{'field':'uniqueid','alias':'Recorded\x20Calls','function':'COUNT','ReportId':0x1f},{'field':'rating','alias':'Total\x20Rating','function':_0x655dc7('0x57'),'ReportId':0x1f},{'field':_0x655dc7('0xd3'),'alias':_0x655dc7('0x28'),'function':_0x655dc7('0xf5'),'ReportId':0x1f},{'field':_0x655dc7('0x7'),'alias':_0x655dc7('0xe9'),'groupBy':0x1,'ReportId':0x20},{'field':'uniqueid','alias':_0x655dc7('0x55'),'function':'COUNT','ReportId':0x20},{'field':_0x655dc7('0xd3'),'alias':'Total\x20Rating','function':'SUM','ReportId':0x20},{'field':'rating','alias':_0x655dc7('0x28'),'function':_0x655dc7('0xf5'),'ReportId':0x20},{'field':'campaign','alias':_0x655dc7('0xe7'),'ReportId':0x21},{'field':_0x655dc7('0x7b'),'alias':_0x655dc7('0xf0'),'ReportId':0x21},{'field':_0x655dc7('0x108'),'alias':'LastCallAt','orderBy':_0x655dc7('0x42'),'ReportId':0x21},{'field':'statedesc','alias':'State','ReportId':0x21},{'field':_0x655dc7('0x46'),'alias':_0x655dc7('0x8'),'ReportId':0x21},{'field':_0x655dc7('0x12'),'alias':_0x655dc7('0x11f'),'ReportId':0x21},{'field':_0x655dc7('0x64'),'alias':_0x655dc7('0xcf'),'ReportId':0x21},{'field':_0x655dc7('0xfd'),'alias':_0x655dc7('0x25'),'ReportId':0x21},{'field':_0x655dc7('0xda'),'alias':_0x655dc7('0x58'),'ReportId':0x21},{'field':_0x655dc7('0x9'),'alias':_0x655dc7('0x5a'),'ReportId':0x21},{'field':'uniqueid','alias':_0x655dc7('0xd2'),'ReportId':0x21},{'field':_0x655dc7('0x112'),'alias':'State','groupBy':!![],'orderBy':'ASC','ReportId':0x22},{'field':'id','alias':'Calls','function':_0x655dc7('0x9a'),'ReportId':0x22},{'field':_0x655dc7('0x9e'),'alias':_0x655dc7('0x76'),'custom':!![],'ReportId':0x22},{'field':_0x655dc7('0x105'),'alias':_0x655dc7('0xe7'),'orderBy':_0x655dc7('0x121'),'groupBy':!![],'ReportId':0x23},{'field':_0x655dc7('0x112'),'alias':'State','groupBy':!![],'ReportId':0x23},{'field':'id','alias':_0x655dc7('0x1d'),'function':_0x655dc7('0x9a'),'ReportId':0x23},{'field':_0x655dc7('0x111'),'groupBy':!![],'orderBy':'ASC','ReportId':0x24},{'field':'id','alias':_0x655dc7('0x62'),'function':_0x655dc7('0x9a'),'ReportId':0x24},{'field':'SUM(IF(state=4,1,0))','alias':_0x655dc7('0x13b'),'custom':!![],'ReportId':0x24},{'field':_0x655dc7('0x53'),'alias':_0x655dc7('0x12e'),'custom':!![],'ReportId':0x24},{'field':_0x655dc7('0xfd'),'alias':_0x655dc7('0x25'),'groupBy':!![],'orderBy':_0x655dc7('0x121'),'ReportId':0x25},{'field':'id','alias':_0x655dc7('0xd'),'function':_0x655dc7('0x9a'),'ReportId':0x25},{'field':_0x655dc7('0xe'),'alias':_0x655dc7('0x12d'),'custom':!![],'ReportId':0x25},{'field':_0x655dc7('0x9'),'alias':'Disposition','groupBy':!![],'ReportId':0x26},{'field':'id','alias':'Total','function':_0x655dc7('0x9a'),'ReportId':0x26},{'field':_0x655dc7('0x100'),'alias':_0x655dc7('0x115'),'custom':!![],'ReportId':0x26},{'field':_0x655dc7('0xfd'),'alias':_0x655dc7('0x25'),'groupBy':!![],'ReportId':0x27},{'field':_0x655dc7('0x9'),'alias':'Disposition','groupBy':!![],'ReportId':0x27},{'field':'id','alias':_0x655dc7('0x133'),'function':_0x655dc7('0x9a'),'ReportId':0x27},{'field':_0x655dc7('0x100'),'alias':_0x655dc7('0x115'),'custom':!![],'ReportId':0x27},{'field':'campaign','alias':_0x655dc7('0xe7'),'ReportId':0x28},{'field':_0x655dc7('0x7b'),'alias':'CallerIdNum','ReportId':0x28},{'field':_0x655dc7('0x108'),'alias':_0x655dc7('0xf6'),'orderBy':_0x655dc7('0x42'),'ReportId':0x28},{'field':'statedesc','alias':'State','ReportId':0x28},{'field':_0x655dc7('0x46'),'alias':_0x655dc7('0x8'),'ReportId':0x28},{'field':_0x655dc7('0x12'),'alias':'Drop\x20Reason','ReportId':0x28},{'field':'blacklist','alias':_0x655dc7('0xcf'),'ReportId':0x28},{'field':'talktime','alias':_0x655dc7('0x58'),'ReportId':0x28},{'field':_0x655dc7('0x8b'),'alias':'UniqueId','ReportId':0x28},{'field':_0x655dc7('0x112'),'alias':_0x655dc7('0x4a'),'groupBy':!![],'orderBy':'ASC','ReportId':0x29},{'field':'id','alias':_0x655dc7('0xd'),'function':'COUNT','ReportId':0x29},{'field':'ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','alias':_0x655dc7('0x76'),'custom':!![],'ReportId':0x29},{'field':_0x655dc7('0x105'),'alias':'Campaign\x20Name','orderBy':'ASC','groupBy':!![],'ReportId':0x2a},{'field':_0x655dc7('0x112'),'alias':_0x655dc7('0x4a'),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':_0x655dc7('0x1d'),'function':_0x655dc7('0x9a'),'ReportId':0x2a},{'field':_0x655dc7('0x111'),'groupBy':!![],'orderBy':_0x655dc7('0x121'),'ReportId':0x2b},{'field':'id','alias':_0x655dc7('0x62'),'function':_0x655dc7('0x9a'),'ReportId':0x2b},{'field':_0x655dc7('0x1b'),'alias':_0x655dc7('0x13b'),'custom':!![],'ReportId':0x2b},{'field':_0x655dc7('0x53'),'alias':_0x655dc7('0x12e'),'custom':!![],'ReportId':0x2b},{'field':'chat_websites.name','alias':_0x655dc7('0x8c'),'groupBy':!![],'ReportId':0x2c},{'field':_0x655dc7('0x8a'),'alias':'Interactions','function':_0x655dc7('0x9a'),'ReportId':0x2c},{'field':_0x655dc7('0xff'),'alias':_0x655dc7('0xcc'),'custom':!![],'ReportId':0x2c},{'field':_0x655dc7('0x52'),'alias':_0x655dc7('0x12a'),'custom':!![],'ReportId':0x2c},{'field':_0x655dc7('0x23'),'alias':_0x655dc7('0xef'),'custom':!![],'ReportId':0x2c},{'field':_0x655dc7('0x7a'),'alias':_0x655dc7('0x26'),'custom':!![],'ReportId':0x2c},{'field':_0x655dc7('0xc7'),'alias':_0x655dc7('0x8c'),'groupBy':!![],'ReportId':0x2d},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','alias':_0x655dc7('0xa4'),'function':'SUM','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x2d},{'field':_0x655dc7('0xfe'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x2d},{'field':_0x655dc7('0x29'),'alias':_0x655dc7('0x25'),'groupBy':!![],'ReportId':0x2e},{'field':_0x655dc7('0xde'),'alias':'Closed','function':_0x655dc7('0x57'),'ReportId':0x2e},{'field':_0x655dc7('0x61'),'alias':'Interaction\x20Time','function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x2e},{'field':_0x655dc7('0xfe'),'alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x2e},{'field':_0x655dc7('0x78'),'alias':_0x655dc7('0x17'),'format':_0x655dc7('0xa0'),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':_0x655dc7('0x8a'),'alias':_0x655dc7('0x36'),'function':'COUNT','ReportId':0x2f},{'field':_0x655dc7('0x52'),'alias':_0x655dc7('0xb7'),'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':_0x655dc7('0xb1'),'custom':!![],'ReportId':0x2f},{'field':_0x655dc7('0x23'),'alias':_0x655dc7('0xef'),'custom':!![],'ReportId':0x2f},{'field':_0x655dc7('0x8e'),'alias':_0x655dc7('0x10c'),'custom':!![],'ReportId':0x2f},{'field':_0x655dc7('0x7a'),'alias':_0x655dc7('0x26'),'custom':!![],'ReportId':0x2f},{'field':'ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x655dc7('0x1f'),'custom':!![],'ReportId':0x2f},{'field':_0x655dc7('0x73'),'alias':'Interaction\x20Time','function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x2f},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':'AVG\x20Interaction\x20Time','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x2f},{'field':_0x655dc7('0x10a'),'alias':_0x655dc7('0xe9'),'groupBy':!![],'ReportId':0x30},{'field':_0x655dc7('0x107'),'alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x30},{'field':_0x655dc7('0xa9'),'alias':_0x655dc7('0x33'),'custom':!![],'ReportId':0x30},{'field':_0x655dc7('0x11b'),'alias':_0x655dc7('0xbb'),'custom':!![],'ReportId':0x30},{'field':_0x655dc7('0xd1'),'alias':'Hold\x20Time','function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x30},{'field':_0x655dc7('0x35'),'alias':'AVG\x20Hold\x20Time','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x30},{'field':_0x655dc7('0x80'),'alias':_0x655dc7('0xd9'),'groupBy':!![],'ReportId':0x31},{'field':_0x655dc7('0x3'),'alias':'Interactions','function':'COUNT','ReportId':0x31},{'field':_0x655dc7('0xff'),'alias':_0x655dc7('0xcc'),'custom':!![],'ReportId':0x31},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x655dc7('0x12a'),'custom':!![],'ReportId':0x31},{'field':_0x655dc7('0x80'),'alias':_0x655dc7('0xd9'),'groupBy':!![],'ReportId':0x32},{'field':_0x655dc7('0x66'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x32},{'field':_0x655dc7('0xe4'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x32},{'field':_0x655dc7('0x29'),'alias':'Agent','groupBy':!![],'ReportId':0x33},{'field':_0x655dc7('0xb5'),'alias':_0x655dc7('0x12a'),'function':_0x655dc7('0x57'),'ReportId':0x33},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','alias':'Interaction\x20Time','function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x33},{'field':_0x655dc7('0xe4'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x33},{'field':_0x655dc7('0xa7'),'alias':'Date','format':_0x655dc7('0xa0'),'groupBy':!![],'custom':!![],'ReportId':0x34},{'field':_0x655dc7('0x3'),'alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x34},{'field':_0x655dc7('0xae'),'alias':_0x655dc7('0xb7'),'custom':!![],'ReportId':0x34},{'field':_0x655dc7('0x1'),'alias':_0x655dc7('0xb1'),'custom':!![],'ReportId':0x34},{'field':_0x655dc7('0x73'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x34},{'field':_0x655dc7('0xdc'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x34},{'field':'mail_queues.name','alias':_0x655dc7('0xe9'),'groupBy':!![],'ReportId':0x35},{'field':_0x655dc7('0x5e'),'alias':_0x655dc7('0x36'),'function':'COUNT','ReportId':0x35},{'field':_0x655dc7('0xa9'),'alias':_0x655dc7('0x33'),'custom':!![],'ReportId':0x35},{'field':_0x655dc7('0x11b'),'alias':_0x655dc7('0xbb'),'custom':!![],'ReportId':0x35},{'field':_0x655dc7('0xd1'),'alias':_0x655dc7('0xfa'),'function':'SUM','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x35},{'field':_0x655dc7('0x35'),'alias':_0x655dc7('0x3f'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x35},{'field':'openchannel_accounts.name','alias':'Openchannel\x20Account','groupBy':!![],'ReportId':0x36},{'field':_0x655dc7('0x79'),'alias':'Interactions','function':_0x655dc7('0x9a'),'ReportId':0x36},{'field':_0x655dc7('0xff'),'alias':_0x655dc7('0xcc'),'custom':!![],'ReportId':0x36},{'field':_0x655dc7('0xae'),'alias':_0x655dc7('0x12a'),'custom':!![],'ReportId':0x36},{'field':_0x655dc7('0x2d'),'alias':_0x655dc7('0x19'),'groupBy':!![],'ReportId':0x37},{'field':_0x655dc7('0xfb'),'alias':_0x655dc7('0xa4'),'function':'SUM','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x37},{'field':_0x655dc7('0xa8'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x37},{'field':'users.fullname','alias':_0x655dc7('0x25'),'groupBy':!![],'ReportId':0x38},{'field':_0x655dc7('0x95'),'alias':_0x655dc7('0x12a'),'function':_0x655dc7('0x57'),'ReportId':0x38},{'field':_0x655dc7('0xfb'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x38},{'field':_0x655dc7('0xa8'),'alias':_0x655dc7('0x11'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x38},{'field':'openchannel_interactions.createdAt','alias':_0x655dc7('0x17'),'format':_0x655dc7('0xa0'),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x655dc7('0x79'),'alias':'Interactions','function':'COUNT','ReportId':0x39},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x655dc7('0xb7'),'custom':!![],'ReportId':0x39},{'field':_0x655dc7('0x1'),'alias':_0x655dc7('0xb1'),'custom':!![],'ReportId':0x39},{'field':_0x655dc7('0x73'),'alias':_0x655dc7('0xa4'),'function':'SUM','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x39},{'field':_0x655dc7('0xdc'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x39},{'field':_0x655dc7('0x54'),'alias':'Queue','groupBy':!![],'ReportId':0x3a},{'field':_0x655dc7('0x59'),'alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x3a},{'field':_0x655dc7('0xa9'),'alias':_0x655dc7('0x33'),'custom':!![],'ReportId':0x3a},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x655dc7('0xbb'),'custom':!![],'ReportId':0x3a},{'field':_0x655dc7('0xd1'),'alias':_0x655dc7('0xfa'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x3a},{'field':_0x655dc7('0x35'),'alias':'AVG\x20Hold\x20Time','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x3a},{'field':_0x655dc7('0xbd'),'alias':'Sms\x20Account','groupBy':!![],'ReportId':0x3b},{'field':_0x655dc7('0x65'),'alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x3b},{'field':_0x655dc7('0xff'),'alias':_0x655dc7('0xcc'),'custom':!![],'ReportId':0x3b},{'field':_0x655dc7('0xae'),'alias':_0x655dc7('0x12a'),'custom':!![],'ReportId':0x3b},{'field':_0x655dc7('0xbd'),'alias':_0x655dc7('0x63'),'groupBy':!![],'ReportId':0x3c},{'field':_0x655dc7('0xf3'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3c},{'field':_0x655dc7('0xec'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x3c},{'field':_0x655dc7('0x29'),'alias':_0x655dc7('0x25'),'groupBy':!![],'ReportId':0x3d},{'field':_0x655dc7('0x6a'),'alias':_0x655dc7('0x12a'),'function':_0x655dc7('0x57'),'ReportId':0x3d},{'field':_0x655dc7('0xf3'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3d},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x3d},{'field':'sms_interactions.createdAt','alias':_0x655dc7('0x17'),'format':_0x655dc7('0xa0'),'groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':'sms_interactions.id','alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x3e},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x655dc7('0xb7'),'custom':!![],'ReportId':0x3e},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x655dc7('0xb1'),'custom':!![],'ReportId':0x3e},{'field':_0x655dc7('0x73'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x3e},{'field':_0x655dc7('0xdc'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x3e},{'field':_0x655dc7('0x10b'),'alias':'Queue','groupBy':!![],'ReportId':0x3f},{'field':_0x655dc7('0x110'),'alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x3f},{'field':_0x655dc7('0xa9'),'alias':'Accepted','custom':!![],'ReportId':0x3f},{'field':_0x655dc7('0x11b'),'alias':_0x655dc7('0xbb'),'custom':!![],'ReportId':0x3f},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x655dc7('0xfa'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x3f},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':_0x655dc7('0x3f'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x3f},{'field':'fax_queues.name','alias':'Queue','groupBy':!![],'ReportId':0x44},{'field':_0x655dc7('0xf8'),'alias':'Interactions','function':'COUNT','ReportId':0x44},{'field':_0x655dc7('0xa9'),'alias':_0x655dc7('0x33'),'custom':!![],'ReportId':0x44},{'field':_0x655dc7('0x11b'),'alias':_0x655dc7('0xbb'),'custom':!![],'ReportId':0x44},{'field':_0x655dc7('0xd1'),'alias':_0x655dc7('0xfa'),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x44},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':_0x655dc7('0x3f'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x44},{'field':_0x655dc7('0x67'),'alias':_0x655dc7('0x17'),'format':_0x655dc7('0xa0'),'groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0x655dc7('0x38'),'alias':_0x655dc7('0x36'),'function':'COUNT','ReportId':0x43},{'field':_0x655dc7('0xae'),'alias':'Completed','custom':!![],'ReportId':0x43},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x655dc7('0xb1'),'custom':!![],'ReportId':0x43},{'field':_0x655dc7('0x73'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x43},{'field':_0x655dc7('0xdc'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x43},{'field':'users.fullname','alias':_0x655dc7('0x25'),'groupBy':!![],'ReportId':0x42},{'field':_0x655dc7('0x14'),'alias':_0x655dc7('0x12a'),'function':'SUM','ReportId':0x42},{'field':_0x655dc7('0x92'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x42},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','alias':_0x655dc7('0x11'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x42},{'field':_0x655dc7('0x9f'),'alias':'Fax\x20Account','groupBy':!![],'ReportId':0x41},{'field':_0x655dc7('0x92'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x41},{'field':_0x655dc7('0xd4'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x41},{'field':_0x655dc7('0x9f'),'alias':_0x655dc7('0xa5'),'groupBy':!![],'ReportId':0x40},{'field':'fax_interactions.id','alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x40},{'field':_0x655dc7('0xff'),'alias':_0x655dc7('0xcc'),'custom':!![],'ReportId':0x40},{'field':_0x655dc7('0xae'),'alias':'Closed','custom':!![],'ReportId':0x40},{'field':_0x655dc7('0x126'),'alias':_0x655dc7('0x85'),'groupBy':!![],'custom':![],'ReportId':0x4a},{'field':_0x655dc7('0x29'),'alias':'Full\x20Name','groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x655dc7('0xe0'),'alias':'POSITIVE','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x655dc7('0xc9'),'alias':_0x655dc7('0xba'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','alias':'NEUTRAL','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','alias':_0x655dc7('0xf9'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x655dc7('0x5b'),'alias':_0x655dc7('0xd7'),'function':_0x655dc7('0x9a'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x655dc7('0x34'),'alias':'Positive(%)','groupBy':![],'custom':!![],'ReportId':0x45},{'field':_0x655dc7('0x106'),'alias':'Negative(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x655dc7('0x103'),'alias':'Neutral(%)','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x655dc7('0x32'),'alias':_0x655dc7('0xd0'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x655dc7('0x5b'),'alias':_0x655dc7('0x4c'),'function':_0x655dc7('0x9a'),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':_0x655dc7('0xe0'),'alias':_0x655dc7('0xc5'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x655dc7('0xc9'),'alias':_0x655dc7('0xba'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','alias':_0x655dc7('0xfc'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x655dc7('0x13'),'alias':_0x655dc7('0xf9'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'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':_0x655dc7('0x8f'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x655dc7('0x106'),'alias':_0x655dc7('0x11d'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','alias':_0x655dc7('0x101'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x655dc7('0x32'),'alias':_0x655dc7('0xd0'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'whatsapp_accounts.name','alias':'Whatsapp\x20Account','groupBy':!![],'ReportId':0x45},{'field':_0x655dc7('0xb0'),'alias':_0x655dc7('0x36'),'function':'COUNT','ReportId':0x45},{'field':'COUNT(IF(closed=0,1,NULL))','alias':_0x655dc7('0xcc'),'custom':!![],'ReportId':0x45},{'field':_0x655dc7('0xae'),'alias':_0x655dc7('0x12a'),'custom':!![],'ReportId':0x45},{'field':_0x655dc7('0x4d'),'alias':'Whatsapp\x20Account','groupBy':!![],'ReportId':0x46},{'field':_0x655dc7('0x39'),'alias':_0x655dc7('0xa4'),'function':'SUM','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x46},{'field':_0x655dc7('0x56'),'alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x46},{'field':_0x655dc7('0x29'),'alias':_0x655dc7('0x25'),'groupBy':!![],'ReportId':0x47},{'field':_0x655dc7('0xbe'),'alias':_0x655dc7('0x12a'),'function':_0x655dc7('0x57'),'ReportId':0x47},{'field':_0x655dc7('0x39'),'alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x47},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','alias':_0x655dc7('0x11'),'format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x47},{'field':_0x655dc7('0x18'),'alias':'Date','format':_0x655dc7('0xa0'),'groupBy':!![],'custom':!![],'ReportId':0x48},{'field':_0x655dc7('0xb0'),'alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x48},{'field':_0x655dc7('0xae'),'alias':_0x655dc7('0xb7'),'custom':!![],'ReportId':0x48},{'field':_0x655dc7('0x1'),'alias':_0x655dc7('0xb1'),'custom':!![],'ReportId':0x48},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':_0x655dc7('0xa4'),'function':_0x655dc7('0x57'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x48},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x655dc7('0x11'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x48},{'field':_0x655dc7('0x5'),'alias':_0x655dc7('0xe9'),'groupBy':!![],'ReportId':0x49},{'field':_0x655dc7('0x6e'),'alias':_0x655dc7('0x36'),'function':_0x655dc7('0x9a'),'ReportId':0x49},{'field':_0x655dc7('0xa9'),'alias':_0x655dc7('0x33'),'custom':!![],'ReportId':0x49},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x655dc7('0xbb'),'custom':!![],'ReportId':0x49},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':'Hold\x20Time','function':'SUM','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x49},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':'AVG\x20Hold\x20Time','format':_0x655dc7('0xea'),'custom':!![],'ReportId':0x49}];return _[_0x655dc7('0x9c')](_0x4cb368,'ReportId');}; \ No newline at end of file +const a869_0x18b1=['HangupReason','report_fax_queue.id','ROUND(AVG(duration))','Answered\x2020-30s','Negative(%)','Abandoned<10s','UserId','sms_interactions.createdAt','Calls','TalkTime','CASE\x20WHEN\x20type=\x27LOGIN\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','QueueAbandon','JoinAt','Reason','Answer\x20Rate\x2010-20s','Mixed(%)','chat_interactions.id','agentconnectAt','tag','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','Total\x20(%)','Global\x20Count','Recorded\x20Calls','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)','Sms\x20Account','holdtime','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','AVG\x20Interaction\x20Time','agentacw','whatsapp_queues.name','QueueAbandonAt','Event','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)','disposition','rating','chat_queues.name','UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','COUNT(IF(reason=\x27accepted\x27,1,NULL))','campaign','Penetration\x20Rate','ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27ivr\x27),2)','chat_interactions.closed','QueueJoinAt','answertime','UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','AgentACW','UniqueId','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27POSITIVE\x27,1,NULL))','users.fullname','NEGATIVE','ROUND(AVG(UNIX_TIMESTAMP(queuecallerExitAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','mail_interactions.closed','Closed','ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27unmanaged\x27,1,NULL))/COUNT(id)\x20*100,1)','whatsapp_interactions.closed','mail_accounts.name','whatsapp_interactions.createdAt','Avg\x20Rating','BlackList','ROUND(COUNT(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_final\x20WHERE\x20state=4\x20and\x20campaigntype=\x27queue\x27),2)','SUM','Answered\x20<10s','CallerID','Avg\x20Duration','Destination','End\x20Time','Full\x20Name','uniqueid','Completed\x20(%)','COUNT(IF(reason=\x27timeout\x27,1,NULL))','Abandoned\x20Rate<10s','ROUND(COUNT(IF(holdtime<10,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Answer\x20Rate','Day','COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','Agent','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))\x20/\x20SUM(queuecallerabandon)\x20*100,1)','CASE\x20WHEN\x20type=\x27PAUSE\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','destinationchannel','billableseconds','openchannel_interactions.closed','fax_queues.name','StartTime','SUBSTRING_INDEX(channel,\x20\x22-\x22,\x201)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','Interface','Avg\x20TalkTime','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=10\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<60,1,NULL))','agentcalledAt','Whatsapp\x20Account','Total\x20Calls','talktime\x20+\x20acwtime','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20\x27YES\x27\x20ELSE\x20\x27NO\x27\x20END','voice_recordings.UserId','COUNT\x20DISTINCT','Unique\x20Id','Abandoned>120s','sms_queues.name','AbandonAt','sms_interactions.id','fax_interactions.createdAt','Interactions','Total\x20Rating','report_chat_queue.id','DATE','queuecallerexit','TotHandleTime','COUNT(IF(holdtime\x20>=30,1,NULL))','dropreason','exten','agentcompleteAt','Answer\x20Rate\x2020-30s','AbandonTime','ROUND(COUNT(IF(holdtime\x20>=30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Hold\x20Time','QueueExitReason','queuecallerabandonAt','Calls\x20(%)','Tot\x20Abandoned','HOUR','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)))','agentcomplete','report_mail_queue.id','openchannel_queues.name','COUNT(IF(holdtime<10,1,NULL))','leaveAt','Abandoned\x2010-60s','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(fax_interactions.createdAt)','Abandoned\x20Rate>120s','Drop\x20Reason','ROUND(AVG(acwtime))','voice_recordings.sentiment','NEUTRAL','EnterAt','COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27unmanaged\x27,1,NULL))','UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)','ROUND(COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','openchannel_accounts.name','DayOfWeek','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<10,1,NULL))','Contacts','Answer\x20Rate\x20<10s','HoldTime','DAYNAME(queuecallerjoinat)','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(chat_interactions.createdAt)))','Openchannel\x20Account','ListId','AgentExtension','CASE\x20WHEN\x20queuecallercomplete=1\x20THEN\x20queuecallercompleteAt\x20ELSE\x20queuecallerLeaveAt\x20END','Campaign\x20Name','Tot\x20Answered','Queue','queuecallercomplete','ROUND(AVG(holdtime))','starttime','chat_websites.name','QueueExitAt','ASC','Avg\x20ACWTime','talktime','Source','fax_interactions.id','Web\x20Site','AvgACWTime','whatsapp_accounts.name','queuecallerexitAt','AVG','Abandoned','Offered','AvgHandleTime','ExitAt','COUNT(IF(holdtime\x20>=20\x20AND\x20holdtime\x20<30,1,NULL))','Disposition','Complete','queuecallerjoinAt','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','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)','Answered\x20>30s','Managed','POSITIVE','ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','calleridnum','PauseType','joinAt','lastevent','membername','endtime','COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=60\x20AND\x20UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20<120,1,NULL))','ReportId','exitAt','reason','Completed','data1','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(whatsapp_interactions.createdAt)))','queue','AgentACWTime','ROUND(SUM(talktime\x20+\x20acwtime)/COUNT(agentcomplete))','Email\x20Account','queuecallerexitreason','ROUND(COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))\x20\x20/\x20SUM(queuecallerabandon)\x20*100,1)','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)','AnswerTime','queuecallercompleteAt','Talk\x20Time','Tot\x20HoldTime','ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)))','ROUND(AVG(talktime))','countglobal','queuecallerjoinat','QueueLeaveAt','EndTime','Sentiment\x20TOT','TotTalkTime','Unmanaged\x20HoldTime','COUNT(IF(closed=0,1,NULL))','LastCallAt','UniqueID','UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)','SUM(IF(state=4,1,0))','AgentConnectAt','Type','AgentComplete','data','DID','ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','Tot\x20AbandonTime','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','project_name','mail_interactions.createdAt','QueuePosition','lodash','type','statedesc','Abandoned\x20(%)','Open','mail_interactions.id','COUNT','Answered\x2010-20s','ROUND(SUM(queuecallercomplete)/COUNT(DISTINCT\x20uniqueid)*100,1)','Positive(%)','report_whatsapp_queue.id','Neutral(%)','queuecallerabandon','Data','Login\x20Time','Abandon\x20Time','Block','Tot\x20TalkTime','groupBy','UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','MIXED','Answer\x20Rate\x20>30s','position','fax_accounts.name','mail_queues.name','Date','whatsapp_interactions.id','CompleteAt','DESC','COUNT(IF(closed=1,1,NULL))','Unmanaged','source','AgentCompleteAt','report_openchannel_queue.id','Total','Tot\x20Duration','Duration','CallerId','calleridname','ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','Abandon','LastEvent','Tot\x20Unmanaged\x20Time','Tot\x20Handle\x20Time','Pause','chat_interactions.createdAt','AVG\x20Hold\x20Time','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','sms_accounts.name','COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEUTRAL\x27,1,NULL))','exports','SEC_TO_TIME(AVG(talktime))','blacklist','Fax\x20Account','LastApp','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','CallerIdNum','ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','lastapplication','Hour','openchannel_interactions.id','queuecallerleaveAt','duration','Project\x20Name','report_sms_queue.id','Interaction\x20Time','SEC_TO_TIME','callerid','Answered','CONCAT(ROUND((\x20(SELECT\x20COUNT(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL)))*100/\x20COUNT\x20(voice_recordings.sentiment)),2),\x27%\x27)','State','Timeout','acwtime','Accepted','AvgAbandonTime','Avg\x20Handle\x20Time','enterAt','Pause\x20Time','COUNT(IF(closed=1\x20&&\x20((disposition\x20!=\x27unmanaged\x27\x20&&\x20disposition\x20!=\x27abandoned\x27)\x20||\x20disposition\x20IS\x20NULL),1,NULL))','AvgTalkTime','ROUND(COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))\x20/\x20SUM(agentcomplete)\x20*100,1)','Abandoned\x20Rate\x2010-60s','Avg\x20HoldTime'];(function(_0x446887,_0x18b155){const _0x14d227=function(_0x10c877){while(--_0x10c877){_0x446887['push'](_0x446887['shift']());}};_0x14d227(++_0x18b155);}(a869_0x18b1,0x1aa));const a869_0x14d2=function(_0x446887,_0x18b155){_0x446887=_0x446887-0x0;let _0x14d227=a869_0x18b1[_0x446887];return _0x14d227;};const _0xc25bc7=a869_0x14d2;'use strict';const _=require(_0xc25bc7('0x7c'));module[_0xc25bc7('0xae')]=function(){const _0x3629ab=_0xc25bc7,_0x10c877=[{'field':'uniqueid','alias':_0x3629ab('0x100'),'ReportId':0x1},{'field':_0x3629ab('0x4b'),'alias':_0x3629ab('0xb5'),'ReportId':0x1},{'field':'calleridname','alias':'CallerIdName','ReportId':0x1},{'field':_0x3629ab('0x58'),'alias':_0x3629ab('0x2d'),'ReportId':0x1},{'field':_0x3629ab('0x44'),'alias':_0x3629ab('0xfc'),'ReportId':0x1},{'field':_0x3629ab('0xba'),'alias':_0x3629ab('0x67'),'ReportId':0x1},{'field':_0x3629ab('0x88'),'alias':_0x3629ab('0xdb'),'ReportId':0x1},{'field':_0x3629ab('0xa'),'alias':_0x3629ab('0xef'),'ReportId':0x1},{'field':_0x3629ab('0x2e'),'alias':_0x3629ab('0x43'),'ReportId':0x1},{'field':_0x3629ab('0x60'),'alias':_0x3629ab('0x97'),'ReportId':0x1},{'field':_0x3629ab('0x13c'),'alias':'QueueExit','ReportId':0x1},{'field':_0x3629ab('0x3b'),'alias':_0x3629ab('0x32'),'ReportId':0x1},{'field':_0x3629ab('0x5c'),'alias':_0x3629ab('0x9'),'ReportId':0x1},{'field':_0x3629ab('0x3'),'alias':_0x3629ab('0x75'),'ReportId':0x1},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x3629ab('0xd9'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x1},{'field':'UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x3629ab('0x6'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x1},{'field':'IF(queuecallercomplete=1,holdtime,null)','alias':_0x3629ab('0x5f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x1},{'field':_0x3629ab('0x4b'),'alias':_0x3629ab('0x111'),'ReportId':0x2},{'field':_0x3629ab('0x58'),'alias':_0x3629ab('0x2d'),'ReportId':0x2},{'field':_0x3629ab('0x44'),'alias':'StartTime','ReportId':0x2},{'field':_0x3629ab('0x2a'),'alias':'EndTime','custom':0x1,'ReportId':0x2},{'field':_0x3629ab('0xea'),'alias':_0x3629ab('0x24'),'format':_0x3629ab('0xbf'),'ReportId':0x2},{'field':_0x3629ab('0x12f'),'alias':_0x3629ab('0xc1'),'custom':0x1,'ReportId':0x2},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x100'),'ReportId':0x3},{'field':'calleridnum','alias':_0x3629ab('0xb5'),'ReportId':0x3},{'field':_0x3629ab('0xa2'),'alias':'CallerIdName','ReportId':0x3},{'field':_0x3629ab('0x58'),'alias':_0x3629ab('0x2d'),'ReportId':0x3},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'ReportId':0x3},{'field':_0x3629ab('0x12b'),'alias':'AgentCalledAt','ReportId':0x3},{'field':'agentconnectAt','alias':_0x3629ab('0x71'),'ReportId':0x3},{'field':_0x3629ab('0x4'),'alias':_0x3629ab('0x9c'),'ReportId':0x3},{'field':_0x3629ab('0xea'),'alias':_0x3629ab('0x5f'),'ReportId':0x3},{'field':_0x3629ab('0x35'),'alias':_0x3629ab('0xd9'),'ReportId':0x3},{'field':_0x3629ab('0xed'),'alias':_0x3629ab('0xff'),'ReportId':0x3},{'field':_0x3629ab('0xc5'),'alias':_0x3629ab('0x59'),'ReportId':0x3},{'field':_0x3629ab('0xf'),'alias':_0x3629ab('0x73'),'ReportId':0x3},{'field':_0x3629ab('0x54'),'alias':_0x3629ab('0xd0'),'ReportId':0x3},{'field':_0x3629ab('0x4e'),'alias':_0x3629ab('0xa5'),'ReportId':0x3},{'field':_0x3629ab('0x3'),'alias':'DID','ReportId':0x3},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'groupBy':0x1,'ReportId':0x4},{'field':_0x3629ab('0xf'),'alias':_0x3629ab('0x55'),'function':_0x3629ab('0x10f'),'ReportId':0x4},{'field':_0x3629ab('0x35'),'alias':_0x3629ab('0x6a'),'function':'SUM','format':'SEC_TO_TIME','ReportId':0x4},{'field':_0x3629ab('0xc5'),'alias':'TotACWTime','function':_0x3629ab('0x10f'),'format':'SEC_TO_TIME','ReportId':0x4},{'field':_0x3629ab('0x12e'),'alias':_0x3629ab('0x0'),'function':_0x3629ab('0x10f'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x4},{'field':_0x3629ab('0x64'),'alias':_0x3629ab('0xcc'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x4},{'field':_0x3629ab('0x18'),'alias':_0x3629ab('0x39'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x4},{'field':_0x3629ab('0x5a'),'alias':_0x3629ab('0x3f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x4},{'field':_0x3629ab('0x58'),'alias':_0x3629ab('0x2d'),'groupBy':0x1,'ReportId':0x5},{'field':_0x3629ab('0xf'),'alias':_0x3629ab('0x55'),'function':_0x3629ab('0x10f'),'ReportId':0x5},{'field':_0x3629ab('0x35'),'alias':'Tot\x20TalkTime','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'ReportId':0x5},{'field':'holdtime','alias':_0x3629ab('0x62'),'function':'SUM','format':_0x3629ab('0xbf'),'ReportId':0x5},{'field':'acwtime','alias':'Tot\x20ACWTime','function':'SUM','format':_0x3629ab('0xbf'),'ReportId':0x5},{'field':'talktime\x20+\x20acwtime','alias':_0x3629ab('0xa7'),'function':'SUM','format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x5},{'field':'ROUND(AVG(talktime))','alias':_0x3629ab('0x129'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x5},{'field':_0x3629ab('0x2f'),'alias':_0x3629ab('0xcf'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x5},{'field':_0x3629ab('0x18'),'alias':_0x3629ab('0x34'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x5},{'field':_0x3629ab('0x5a'),'alias':_0x3629ab('0xc8'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x5},{'field':_0x3629ab('0x58'),'alias':_0x3629ab('0x2d'),'groupBy':0x1,'ReportId':0x6},{'field':_0x3629ab('0xf'),'alias':_0x3629ab('0x2c'),'function':'SUM','ReportId':0x6},{'field':_0x3629ab('0x12'),'alias':_0x3629ab('0x110'),'custom':0x1,'ReportId':0x6},{'field':_0x3629ab('0x11a'),'alias':_0x3629ab('0x23'),'custom':0x1,'ReportId':0x6},{'field':'COUNT(IF(holdtime\x20>=10\x20AND\x20holdtime\x20<20,1,NULL))','alias':_0x3629ab('0x83'),'custom':0x1,'ReportId':0x6},{'field':_0x3629ab('0xcd'),'alias':_0x3629ab('0xde'),'custom':0x1,'ReportId':0x6},{'field':_0x3629ab('0x41'),'alias':'Answered\x2020-30s','custom':0x1,'ReportId':0x6},{'field':_0x3629ab('0x1e'),'alias':_0x3629ab('0x5'),'custom':0x1,'ReportId':0x6},{'field':_0x3629ab('0x1'),'alias':'Answered\x20>30s','custom':0x1,'ReportId':0x6},{'field':_0x3629ab('0x7'),'alias':_0x3629ab('0x91'),'custom':0x1,'ReportId':0x6},{'field':_0x3629ab('0x54'),'alias':_0x3629ab('0xdd'),'groupBy':0x1,'ReportId':0x7},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0xd8'),'function':_0x3629ab('0x82'),'ReportId':0x7},{'field':_0x3629ab('0xe1'),'alias':_0x3629ab('0xb8'),'format':_0x3629ab('0xd'),'groupBy':0x1,'ReportId':0x8},{'field':_0x3629ab('0xf'),'alias':'Tot\x20Answered','function':_0x3629ab('0x10f'),'ReportId':0x8},{'field':_0x3629ab('0x12'),'alias':_0x3629ab('0x110'),'custom':0x1,'ReportId':0x8},{'field':_0x3629ab('0x11d'),'alias':_0x3629ab('0x83'),'custom':0x1,'ReportId':0x8},{'field':_0x3629ab('0x41'),'alias':_0x3629ab('0xd3'),'custom':0x1,'ReportId':0x8},{'field':_0x3629ab('0x1'),'alias':_0x3629ab('0x47'),'custom':0x1,'ReportId':0x8},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x100'),'ReportId':0x9},{'field':_0x3629ab('0x4b'),'alias':'CallerIdNum','ReportId':0x9},{'field':_0x3629ab('0x58'),'alias':_0x3629ab('0x2d'),'ReportId':0x9},{'field':'queuecallerjoinAt','alias':_0x3629ab('0xdc'),'ReportId':0x9},{'field':'queuecallerleaveAt','alias':'LeaveAt','ReportId':0x9},{'field':_0x3629ab('0x88'),'alias':_0x3629ab('0xa4'),'ReportId':0x9},{'field':'queuecallerabandonAt','alias':_0x3629ab('0x135'),'ReportId':0x9},{'field':_0x3629ab('0x13c'),'alias':_0x3629ab('0x9a'),'ReportId':0x9},{'field':_0x3629ab('0x3b'),'alias':'UnmanagedAt','ReportId':0x9},{'field':'queuecallerexitreason','alias':'UnmanagedReason','ReportId':0x9},{'field':_0x3629ab('0x92'),'alias':_0x3629ab('0x7b'),'ReportId':0x9},{'field':_0x3629ab('0x3'),'alias':_0x3629ab('0x75'),'ReportId':0x9},{'field':'UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x3629ab('0x8b'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x9},{'field':_0x3629ab('0xfe'),'alias':_0x3629ab('0x6b'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x9},{'field':_0x3629ab('0x58'),'alias':'Queue','groupBy':0x1,'ReportId':0xa},{'field':_0x3629ab('0x88'),'alias':_0x3629ab('0x3d'),'function':_0x3629ab('0x10f'),'ReportId':0xa},{'field':_0x3629ab('0x13c'),'alias':_0x3629ab('0x9a'),'function':'SUM','ReportId':0xa},{'field':'UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)','alias':_0x3629ab('0x77'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xa},{'field':_0x3629ab('0xa3'),'alias':_0x3629ab('0xc7'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xa},{'field':_0x3629ab('0xfe'),'alias':_0x3629ab('0xa6'),'function':'SUM','format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xa},{'field':_0x3629ab('0x104'),'alias':'Avg\x20Unmanaged\x20TIme','format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xa},{'field':_0x3629ab('0x5c'),'alias':_0x3629ab('0xdd'),'groupBy':0x1,'ReportId':0xb},{'field':_0x3629ab('0x13c'),'alias':_0x3629ab('0xd8'),'function':_0x3629ab('0x10f'),'ReportId':0xb},{'field':_0x3629ab('0xfe'),'alias':_0x3629ab('0xa6'),'function':_0x3629ab('0x10f'),'custom':0x1,'ReportId':0xb},{'field':_0x3629ab('0x58'),'alias':'Queue','groupBy':0x1,'ReportId':0xc},{'field':'queuecallerabandon','alias':_0x3629ab('0xc'),'function':_0x3629ab('0x10f'),'ReportId':0xc},{'field':_0x3629ab('0x21'),'alias':_0x3629ab('0xd5'),'custom':0x1,'ReportId':0xc},{'field':_0x3629ab('0x11f'),'alias':_0x3629ab('0x119'),'custom':0x1,'ReportId':0xc},{'field':_0x3629ab('0x12a'),'alias':_0x3629ab('0x14'),'custom':0x1,'ReportId':0xc},{'field':_0x3629ab('0x5e'),'alias':_0x3629ab('0xce'),'custom':0x1,'ReportId':0xc},{'field':_0x3629ab('0x51'),'alias':'Abandoned\x2060-120s','custom':0x1,'ReportId':0xc},{'field':'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)','alias':'Abandoned\x20Rate\x2060-120s','custom':0x1,'ReportId':0xc},{'field':'COUNT(IF(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)\x20>=120,1,NULL))','alias':_0x3629ab('0x133'),'custom':0x1,'ReportId':0xc},{'field':_0x3629ab('0x5d'),'alias':_0x3629ab('0x16'),'custom':0x1,'ReportId':0xc},{'field':_0x3629ab('0x66'),'alias':_0x3629ab('0x95'),'format':_0x3629ab('0x13b'),'groupBy':0x1,'custom':0x1,'ReportId':0xd},{'field':_0x3629ab('0x116'),'alias':'Offered','function':_0x3629ab('0x131'),'ReportId':0xd},{'field':_0x3629ab('0x2e'),'alias':_0x3629ab('0x55'),'function':_0x3629ab('0x10f'),'ReportId':0xd},{'field':_0x3629ab('0x88'),'alias':'Abandoned','function':_0x3629ab('0x10f'),'custom':0x1,'ReportId':0xd},{'field':_0x3629ab('0x13c'),'alias':_0x3629ab('0x9a'),'function':'SUM','custom':0x1,'ReportId':0xd},{'field':_0x3629ab('0x8f'),'alias':_0x3629ab('0x8d'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xd},{'field':_0x3629ab('0x4a'),'alias':'AvgTalkTime','format':'SEC_TO_TIME','custom':0x1,'ReportId':0xd},{'field':_0x3629ab('0xa3'),'alias':_0x3629ab('0xc7'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xd},{'field':_0x3629ab('0x66'),'alias':_0x3629ab('0xb8'),'format':'HOUR','groupBy':0x1,'custom':0x1,'ReportId':0xe},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x3e'),'function':_0x3629ab('0x131'),'ReportId':0xe},{'field':_0x3629ab('0x2e'),'alias':_0x3629ab('0xc1'),'function':_0x3629ab('0x10f'),'ReportId':0xe},{'field':_0x3629ab('0x84'),'alias':_0x3629ab('0x11b'),'custom':0x1,'ReportId':0xe},{'field':_0x3629ab('0x88'),'alias':'Abandoned','function':_0x3629ab('0x10f'),'ReportId':0xe},{'field':_0x3629ab('0x13c'),'alias':_0x3629ab('0x9a'),'function':'SUM','ReportId':0xe},{'field':_0x3629ab('0x8f'),'alias':'Tot\x20TalkTime','function':_0x3629ab('0x10f'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0xe},{'field':_0x3629ab('0x4a'),'alias':_0x3629ab('0xcc'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xe},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':_0x3629ab('0xc7'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xe},{'field':'DAY(queuecallerjoinat)','alias':_0x3629ab('0x11c'),'groupBy':0x1,'custom':0x1,'ReportId':0xf},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x3e'),'function':_0x3629ab('0x131'),'ReportId':0xf},{'field':_0x3629ab('0x2e'),'alias':_0x3629ab('0xc1'),'function':_0x3629ab('0x10f'),'ReportId':0xf},{'field':_0x3629ab('0x84'),'alias':_0x3629ab('0x11b'),'custom':0x1,'ReportId':0xf},{'field':_0x3629ab('0x88'),'alias':_0x3629ab('0x3d'),'function':_0x3629ab('0x10f'),'ReportId':0xf},{'field':_0x3629ab('0x13c'),'alias':_0x3629ab('0x9a'),'function':_0x3629ab('0x10f'),'ReportId':0xf},{'field':_0x3629ab('0x8f'),'alias':'Tot\x20TalkTime','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xf},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)))','alias':'AvgTalkTime','format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xf},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':'AvgAbandonTime','format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0xf},{'field':_0x3629ab('0x25'),'alias':_0x3629ab('0x20'),'groupBy':0x1,'custom':0x1,'ReportId':0x10},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x3e'),'function':_0x3629ab('0x131'),'ReportId':0x10},{'field':'queuecallercomplete','alias':_0x3629ab('0xc1'),'function':_0x3629ab('0x10f'),'ReportId':0x10},{'field':_0x3629ab('0x84'),'alias':'Answer\x20Rate','custom':0x1,'ReportId':0x10},{'field':'queuecallerabandon','alias':'Abandoned','function':'SUM','orderBy':'ASC','ReportId':0x10},{'field':_0x3629ab('0x13c'),'alias':_0x3629ab('0x9a'),'function':'SUM','ReportId':0x10},{'field':'UNIX_TIMESTAMP(queuecallercompleteAt)-UNIX_TIMESTAMP(queuecallerleaveAt)','alias':_0x3629ab('0x8d'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x10},{'field':_0x3629ab('0x4a'),'alias':_0x3629ab('0xcc'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x10},{'field':'ROUND(AVG(UNIX_TIMESTAMP(queuecallerAbandonAt)-UNIX_TIMESTAMP(queuecallerjoinAt)))','alias':_0x3629ab('0xc7'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x10},{'field':'queue','alias':_0x3629ab('0x2d'),'groupBy':0x1,'ReportId':0x11},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x3e'),'function':_0x3629ab('0x131'),'ReportId':0x11},{'field':_0x3629ab('0x2e'),'alias':'Answered','function':'SUM','ReportId':0x11},{'field':_0x3629ab('0x84'),'alias':_0x3629ab('0x11b'),'custom':0x1,'ReportId':0x11},{'field':_0x3629ab('0x88'),'alias':_0x3629ab('0x3d'),'function':_0x3629ab('0x10f'),'ReportId':0x11},{'field':_0x3629ab('0x13c'),'alias':'Unmanaged','function':'SUM','ReportId':0x11},{'field':_0x3629ab('0x8f'),'alias':_0x3629ab('0x8d'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x11},{'field':_0x3629ab('0x4a'),'alias':_0x3629ab('0xcc'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x11},{'field':_0x3629ab('0xa3'),'alias':_0x3629ab('0xc7'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x11},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x6e'),'ReportId':0x12},{'field':_0x3629ab('0x7d'),'alias':_0x3629ab('0x72'),'ReportId':0x12},{'field':'tag','alias':'Tag','ReportId':0x12},{'field':_0x3629ab('0x9b'),'alias':_0x3629ab('0x36'),'ReportId':0x12},{'field':'destination','alias':_0x3629ab('0x113'),'ReportId':0x12},{'field':_0x3629ab('0xc0'),'alias':_0x3629ab('0x111'),'ReportId':0x12},{'field':_0x3629ab('0x121'),'alias':'DestChannel','ReportId':0x12},{'field':_0x3629ab('0xb7'),'alias':_0x3629ab('0xb2'),'ReportId':0x12},{'field':'lastdata','alias':'LastData','ReportId':0x12},{'field':_0x3629ab('0x30'),'alias':_0x3629ab('0x125'),'ReportId':0x12},{'field':_0x3629ab('0xfd'),'alias':_0x3629ab('0x5f'),'ReportId':0x12},{'field':_0x3629ab('0x50'),'alias':_0x3629ab('0x68'),'ReportId':0x12},{'field':_0x3629ab('0xbb'),'alias':_0x3629ab('0xa0'),'ReportId':0x12},{'field':_0x3629ab('0xf3'),'alias':'Disposition','ReportId':0x12},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x6e'),'ReportId':0x13},{'field':'accountcode','alias':_0x3629ab('0x29'),'ReportId':0x13},{'field':_0x3629ab('0x9b'),'alias':_0x3629ab('0x36'),'ReportId':0x13},{'field':'destination','alias':_0x3629ab('0x113'),'ReportId':0x13},{'field':_0x3629ab('0xc0'),'alias':_0x3629ab('0xa1'),'ReportId':0x13},{'field':_0x3629ab('0x30'),'alias':_0x3629ab('0x125'),'ReportId':0x13},{'field':_0x3629ab('0xfd'),'alias':_0x3629ab('0x5f'),'ReportId':0x13},{'field':'endtime','alias':_0x3629ab('0x68'),'ReportId':0x13},{'field':'duration','alias':'Duration','format':_0x3629ab('0xbf'),'ReportId':0x13},{'field':_0x3629ab('0x122'),'alias':'Billsec','format':_0x3629ab('0xbf'),'ReportId':0x13},{'field':_0x3629ab('0xf3'),'alias':'Disposition','ReportId':0x13},{'field':_0x3629ab('0xe2'),'alias':'Tag','ReportId':0x13},{'field':_0x3629ab('0x7d'),'alias':_0x3629ab('0x72'),'groupBy':0x1,'ReportId':0x14},{'field':'uniqueid','alias':_0x3629ab('0xd8'),'function':_0x3629ab('0x82'),'ReportId':0x14},{'field':_0x3629ab('0xbb'),'alias':_0x3629ab('0x9f'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'ReportId':0x14},{'field':_0x3629ab('0xd2'),'alias':'Avg\x20Duration','format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x14},{'field':_0x3629ab('0xf3'),'alias':_0x3629ab('0x42'),'groupBy':0x1,'ReportId':0x15},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0xd8'),'function':'COUNT','ReportId':0x15},{'field':_0x3629ab('0xbb'),'alias':_0x3629ab('0x9f'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'ReportId':0x15},{'field':_0x3629ab('0xd2'),'alias':_0x3629ab('0x112'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x15},{'field':_0x3629ab('0x126'),'alias':_0x3629ab('0x11e'),'groupBy':0x1,'custom':0x1,'ReportId':0x16},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0xd8'),'function':_0x3629ab('0x82'),'ReportId':0x16},{'field':_0x3629ab('0xbb'),'alias':'Tot\x20Duration','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'ReportId':0x16},{'field':_0x3629ab('0xd2'),'alias':_0x3629ab('0x112'),'format':'SEC_TO_TIME','custom':0x1,'ReportId':0x16},{'field':'starttime','alias':_0x3629ab('0x95'),'format':_0x3629ab('0x13b'),'groupBy':0x1,'ReportId':0x17},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0xd8'),'function':_0x3629ab('0x82'),'ReportId':0x17},{'field':_0x3629ab('0xbb'),'alias':_0x3629ab('0x9f'),'function':'SUM','format':'SEC_TO_TIME','ReportId':0x17},{'field':_0x3629ab('0xd2'),'alias':_0x3629ab('0x112'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x17},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'groupBy':0x1,'orderBy':'ASC','ReportId':0x18},{'field':_0x3629ab('0x1d'),'alias':_0x3629ab('0xa0'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x18},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'groupBy':0x1,'ReportId':0x19},{'field':_0x3629ab('0xda'),'alias':_0x3629ab('0x8a'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x19},{'field':'CASE\x20WHEN\x20type=\x27TALKING\x27\x20THEN\x20UNIX_TIMESTAMP(exitAt)-UNIX_TIMESTAMP(enterAt)\x20END','alias':_0x3629ab('0x61'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x19},{'field':_0x3629ab('0x120'),'alias':_0x3629ab('0xca'),'function':'SUM','format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x19},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'ReportId':0x1a},{'field':_0x3629ab('0xc9'),'alias':_0x3629ab('0x1b'),'ReportId':0x1a},{'field':_0x3629ab('0x53'),'alias':_0x3629ab('0x40'),'ReportId':0x1a},{'field':'data1','alias':_0x3629ab('0xa8'),'ReportId':0x1a},{'field':'duration','alias':_0x3629ab('0xa0'),'format':_0x3629ab('0xbf'),'ReportId':0x1a},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'ReportId':0x1b},{'field':'interface','alias':_0x3629ab('0x128'),'ReportId':0x1b},{'field':_0x3629ab('0x7d'),'alias':_0x3629ab('0xf0'),'ReportId':0x1b},{'field':'data1','alias':_0x3629ab('0x72'),'ReportId':0x1b},{'field':_0x3629ab('0xc9'),'alias':'EnterAt','ReportId':0x1b},{'field':_0x3629ab('0x53'),'alias':_0x3629ab('0x40'),'ReportId':0x1b},{'field':_0x3629ab('0x1d'),'alias':_0x3629ab('0xa0'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x1b},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'groupBy':0x1,'orderBy':_0x3629ab('0x33'),'ReportId':0x1c},{'field':_0x3629ab('0x56'),'alias':_0x3629ab('0x4c'),'groupBy':0x1,'orderBy':_0x3629ab('0x33'),'ReportId':0x1c},{'field':_0x3629ab('0x1d'),'alias':'Duration','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x1c},{'field':_0x3629ab('0x79'),'alias':_0x3629ab('0xbc'),'ReportId':0x1d},{'field':'uniqueid','alias':_0x3629ab('0x100'),'ReportId':0x1d},{'field':'callerid','alias':_0x3629ab('0xa1'),'ReportId':0x1d},{'field':'dnid','alias':'DID','ReportId':0x1d},{'field':_0x3629ab('0x4d'),'alias':'Start\x20Time','orderBy':_0x3629ab('0x33'),'ReportId':0x1d},{'field':_0x3629ab('0x13'),'alias':_0x3629ab('0x114'),'ReportId':0x1d},{'field':_0x3629ab('0xf6'),'alias':_0x3629ab('0xa0'),'format':_0x3629ab('0xbf'),'custom':0x1,'ReportId':0x1d},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x132'),'ReportId':0x1e},{'field':_0x3629ab('0x79'),'alias':_0x3629ab('0xbc'),'ReportId':0x1e},{'field':'callerid','alias':'Caller\x20Id','ReportId':0x1e},{'field':'node','alias':_0x3629ab('0x8c'),'ReportId':0x1e},{'field':_0x3629ab('0x74'),'alias':_0x3629ab('0x89'),'ReportId':0x1e},{'field':'connectedlinename','alias':_0x3629ab('0x11e'),'groupBy':0x1,'ReportId':0x1f},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0xe7'),'function':_0x3629ab('0x82'),'ReportId':0x1f},{'field':'rating','alias':'Total\x20Rating','function':_0x3629ab('0x10f'),'ReportId':0x1f},{'field':_0x3629ab('0xf4'),'alias':_0x3629ab('0x10c'),'function':_0x3629ab('0x3c'),'ReportId':0x1f},{'field':'queue','alias':'Queue','groupBy':0x1,'ReportId':0x20},{'field':_0x3629ab('0x116'),'alias':'Rated\x20Calls','function':_0x3629ab('0x82'),'ReportId':0x20},{'field':_0x3629ab('0xf4'),'alias':_0x3629ab('0x139'),'function':_0x3629ab('0x10f'),'ReportId':0x20},{'field':_0x3629ab('0xf4'),'alias':'Avg\x20Rating','function':_0x3629ab('0x3c'),'ReportId':0x20},{'field':'campaign','alias':_0x3629ab('0x2b'),'ReportId':0x21},{'field':_0x3629ab('0x4b'),'alias':_0x3629ab('0xb5'),'ReportId':0x21},{'field':_0x3629ab('0x30'),'alias':'LastCallAt','orderBy':_0x3629ab('0x98'),'ReportId':0x21},{'field':_0x3629ab('0x7e'),'alias':'State','ReportId':0x21},{'field':_0x3629ab('0x65'),'alias':_0x3629ab('0xe6'),'ReportId':0x21},{'field':'dropreason','alias':_0x3629ab('0x17'),'ReportId':0x21},{'field':_0x3629ab('0xb0'),'alias':_0x3629ab('0x10d'),'ReportId':0x21},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'ReportId':0x21},{'field':'talktime','alias':'Talk\x20Time','ReportId':0x21},{'field':_0x3629ab('0xf3'),'alias':_0x3629ab('0x42'),'ReportId':0x21},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x100'),'ReportId':0x21},{'field':'statedesc','alias':'State','groupBy':!![],'orderBy':_0x3629ab('0x33'),'ReportId':0x22},{'field':'id','alias':_0x3629ab('0xd8'),'function':_0x3629ab('0x82'),'ReportId':0x22},{'field':'ROUND(count(id)*100/(SELECT\x20COUNT(*)\x20FROM\x20cm_hopper_history\x20WHERE\x20campaigntype=\x27queue\x27),2)','alias':_0x3629ab('0xb'),'custom':!![],'ReportId':0x22},{'field':_0x3629ab('0xf8'),'alias':_0x3629ab('0x2b'),'orderBy':_0x3629ab('0x33'),'groupBy':!![],'ReportId':0x23},{'field':_0x3629ab('0x7e'),'alias':'State','groupBy':!![],'ReportId':0x23},{'field':'id','alias':_0x3629ab('0x12d'),'function':_0x3629ab('0x82'),'ReportId':0x23},{'field':_0x3629ab('0x28'),'groupBy':!![],'orderBy':_0x3629ab('0x33'),'ReportId':0x24},{'field':'id','alias':_0x3629ab('0x22'),'function':'COUNT','ReportId':0x24},{'field':_0x3629ab('0x70'),'alias':'Managed','custom':!![],'ReportId':0x24},{'field':_0x3629ab('0xb6'),'alias':_0x3629ab('0xf9'),'custom':!![],'ReportId':0x24},{'field':_0x3629ab('0x4f'),'alias':_0x3629ab('0x11e'),'groupBy':!![],'orderBy':'ASC','ReportId':0x25},{'field':'id','alias':_0x3629ab('0xd8'),'function':_0x3629ab('0x82'),'ReportId':0x25},{'field':_0x3629ab('0xaf'),'alias':'AVG\x20Talk\x20Time','custom':!![],'ReportId':0x25},{'field':'disposition','alias':_0x3629ab('0x42'),'groupBy':!![],'ReportId':0x26},{'field':'id','alias':_0x3629ab('0x9e'),'function':_0x3629ab('0x82'),'ReportId':0x26},{'field':_0x3629ab('0x10e'),'alias':_0x3629ab('0xe5'),'custom':!![],'ReportId':0x26},{'field':'membername','alias':_0x3629ab('0x11e'),'groupBy':!![],'ReportId':0x27},{'field':_0x3629ab('0xf3'),'alias':_0x3629ab('0x42'),'groupBy':!![],'ReportId':0x27},{'field':'id','alias':'Total','function':_0x3629ab('0x82'),'ReportId':0x27},{'field':_0x3629ab('0x10e'),'alias':'Total\x20(%)','custom':!![],'ReportId':0x27},{'field':'campaign','alias':'Campaign\x20Name','ReportId':0x28},{'field':_0x3629ab('0x4b'),'alias':_0x3629ab('0xb5'),'ReportId':0x28},{'field':_0x3629ab('0x30'),'alias':_0x3629ab('0x6d'),'orderBy':_0x3629ab('0x98'),'ReportId':0x28},{'field':_0x3629ab('0x7e'),'alias':'State','ReportId':0x28},{'field':_0x3629ab('0x65'),'alias':_0x3629ab('0xe6'),'ReportId':0x28},{'field':_0x3629ab('0x2'),'alias':_0x3629ab('0x17'),'ReportId':0x28},{'field':_0x3629ab('0xb0'),'alias':'BlackList','ReportId':0x28},{'field':_0x3629ab('0x35'),'alias':'Talk\x20Time','ReportId':0x28},{'field':_0x3629ab('0x116'),'alias':_0x3629ab('0x100'),'ReportId':0x28},{'field':'statedesc','alias':_0x3629ab('0xc3'),'groupBy':!![],'orderBy':_0x3629ab('0x33'),'ReportId':0x29},{'field':'id','alias':_0x3629ab('0xd8'),'function':_0x3629ab('0x82'),'ReportId':0x29},{'field':_0x3629ab('0xfa'),'alias':'Calls\x20(%)','custom':!![],'ReportId':0x29},{'field':_0x3629ab('0xf8'),'alias':_0x3629ab('0x2b'),'orderBy':_0x3629ab('0x33'),'groupBy':!![],'ReportId':0x2a},{'field':'statedesc','alias':_0x3629ab('0xc3'),'groupBy':!![],'ReportId':0x2a},{'field':'id','alias':_0x3629ab('0x12d'),'function':_0x3629ab('0x82'),'ReportId':0x2a},{'field':'ListId','groupBy':!![],'orderBy':_0x3629ab('0x33'),'ReportId':0x2b},{'field':'id','alias':_0x3629ab('0x22'),'function':'COUNT','ReportId':0x2b},{'field':_0x3629ab('0x70'),'alias':_0x3629ab('0x48'),'custom':!![],'ReportId':0x2b},{'field':'ROUND(SUM(IF(state=4,1,0))/COUNT(*)*100,1)','alias':'Penetration\x20Rate','custom':!![],'ReportId':0x2b},{'field':_0x3629ab('0x31'),'alias':_0x3629ab('0x38'),'groupBy':!![],'ReportId':0x2c},{'field':'chat_interactions.id','alias':_0x3629ab('0x138'),'function':_0x3629ab('0x82'),'ReportId':0x2c},{'field':_0x3629ab('0x6c'),'alias':_0x3629ab('0x80'),'custom':!![],'ReportId':0x2c},{'field':_0x3629ab('0xcb'),'alias':_0x3629ab('0x107'),'custom':!![],'ReportId':0x2c},{'field':_0x3629ab('0x1c'),'alias':_0x3629ab('0x9a'),'custom':!![],'ReportId':0x2c},{'field':_0x3629ab('0xe4'),'alias':_0x3629ab('0x3d'),'custom':!![],'ReportId':0x2c},{'field':_0x3629ab('0x31'),'alias':'Web\x20Site','groupBy':!![],'ReportId':0x2d},{'field':_0x3629ab('0xf2'),'alias':'Interaction\x20Time','function':'SUM','format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x2d},{'field':_0x3629ab('0x26'),'alias':_0x3629ab('0xec'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x2d},{'field':_0x3629ab('0x102'),'alias':_0x3629ab('0x11e'),'groupBy':!![],'ReportId':0x2e},{'field':_0x3629ab('0xfb'),'alias':'Closed','function':'SUM','ReportId':0x2e},{'field':_0x3629ab('0xf2'),'alias':'Interaction\x20Time','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x2e},{'field':_0x3629ab('0x26'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x2e},{'field':_0x3629ab('0xa9'),'alias':'Date','format':_0x3629ab('0x13b'),'groupBy':!![],'custom':!![],'ReportId':0x2f},{'field':_0x3629ab('0xe0'),'alias':_0x3629ab('0x138'),'function':'COUNT','ReportId':0x2f},{'field':_0x3629ab('0xcb'),'alias':_0x3629ab('0x55'),'custom':!![],'ReportId':0x2f},{'field':_0x3629ab('0x46'),'alias':_0x3629ab('0x117'),'custom':!![],'ReportId':0x2f},{'field':_0x3629ab('0x1c'),'alias':_0x3629ab('0x9a'),'custom':!![],'ReportId':0x2f},{'field':_0x3629ab('0x108'),'alias':'Unmanaged\x20(%)','custom':!![],'ReportId':0x2f},{'field':'COUNT(IF(closed=1\x20&&\x20disposition\x20=\x27abandoned\x27,1,NULL))','alias':'Abandoned','custom':!![],'ReportId':0x2f},{'field':'ROUND(COUNT(IF(closed=1\x20&&\x20disposition=\x27abandoned\x27,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x3629ab('0x7f'),'custom':!![],'ReportId':0x2f},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':'Interaction\x20Time','function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x2f},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x2f},{'field':_0x3629ab('0xf5'),'alias':_0x3629ab('0x2d'),'groupBy':!![],'ReportId':0x30},{'field':_0x3629ab('0x13a'),'alias':_0x3629ab('0x138'),'function':'COUNT','ReportId':0x30},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x3629ab('0xc6'),'custom':!![],'ReportId':0x30},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x3629ab('0xc4'),'custom':!![],'ReportId':0x30},{'field':_0x3629ab('0xf6'),'alias':'Hold\x20Time','function':'SUM','format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x30},{'field':_0x3629ab('0xb4'),'alias':_0x3629ab('0xaa'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x30},{'field':_0x3629ab('0x10a'),'alias':'Email\x20Account','groupBy':!![],'ReportId':0x31},{'field':_0x3629ab('0x81'),'alias':'Interactions','function':_0x3629ab('0x82'),'ReportId':0x31},{'field':_0x3629ab('0x6c'),'alias':_0x3629ab('0x80'),'custom':!![],'ReportId':0x31},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x3629ab('0x107'),'custom':!![],'ReportId':0x31},{'field':'mail_accounts.name','alias':_0x3629ab('0x5b'),'groupBy':!![],'ReportId':0x32},{'field':_0x3629ab('0xf1'),'alias':'Interaction\x20Time','function':'SUM','format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x32},{'field':_0x3629ab('0x63'),'alias':'AVG\x20Interaction\x20Time','format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x32},{'field':'users.fullname','alias':'Agent','groupBy':!![],'ReportId':0x33},{'field':_0x3629ab('0x106'),'alias':_0x3629ab('0x107'),'function':_0x3629ab('0x10f'),'ReportId':0x33},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(mail_interactions.createdAt)','alias':_0x3629ab('0xbe'),'function':_0x3629ab('0x10f'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x33},{'field':_0x3629ab('0x63'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x33},{'field':_0x3629ab('0x7a'),'alias':'Date','format':'DATE','groupBy':!![],'custom':!![],'ReportId':0x34},{'field':'mail_interactions.id','alias':_0x3629ab('0x138'),'function':'COUNT','ReportId':0x34},{'field':_0x3629ab('0x99'),'alias':_0x3629ab('0x55'),'custom':!![],'ReportId':0x34},{'field':_0x3629ab('0x76'),'alias':_0x3629ab('0x117'),'custom':!![],'ReportId':0x34},{'field':_0x3629ab('0x105'),'alias':'Interaction\x20Time','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x34},{'field':_0x3629ab('0xe3'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x34},{'field':_0x3629ab('0x94'),'alias':'Queue','groupBy':!![],'ReportId':0x35},{'field':_0x3629ab('0x10'),'alias':'Interactions','function':_0x3629ab('0x82'),'ReportId':0x35},{'field':_0x3629ab('0xf7'),'alias':_0x3629ab('0xc6'),'custom':!![],'ReportId':0x35},{'field':_0x3629ab('0x118'),'alias':'Timeout','custom':!![],'ReportId':0x35},{'field':_0x3629ab('0xf6'),'alias':_0x3629ab('0x8'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x35},{'field':_0x3629ab('0xb4'),'alias':_0x3629ab('0xaa'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x35},{'field':_0x3629ab('0x1f'),'alias':_0x3629ab('0x27'),'groupBy':!![],'ReportId':0x36},{'field':_0x3629ab('0xb9'),'alias':_0x3629ab('0x138'),'function':_0x3629ab('0x82'),'ReportId':0x36},{'field':_0x3629ab('0x6c'),'alias':_0x3629ab('0x80'),'custom':!![],'ReportId':0x36},{'field':_0x3629ab('0x99'),'alias':'Closed','custom':!![],'ReportId':0x36},{'field':_0x3629ab('0x1f'),'alias':_0x3629ab('0x27'),'groupBy':!![],'ReportId':0x37},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)','alias':_0x3629ab('0xbe'),'function':'SUM','format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x37},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x37},{'field':_0x3629ab('0x102'),'alias':_0x3629ab('0x11e'),'groupBy':!![],'ReportId':0x38},{'field':_0x3629ab('0x123'),'alias':'Closed','function':_0x3629ab('0x10f'),'ReportId':0x38},{'field':_0x3629ab('0x45'),'alias':_0x3629ab('0xbe'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x38},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(openchannel_interactions.createdAt)))','alias':_0x3629ab('0xec'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x38},{'field':'openchannel_interactions.createdAt','alias':_0x3629ab('0x95'),'format':_0x3629ab('0x13b'),'groupBy':!![],'custom':!![],'ReportId':0x39},{'field':_0x3629ab('0xb9'),'alias':'Interactions','function':_0x3629ab('0x82'),'ReportId':0x39},{'field':_0x3629ab('0x99'),'alias':_0x3629ab('0x55'),'custom':!![],'ReportId':0x39},{'field':_0x3629ab('0x76'),'alias':_0x3629ab('0x117'),'custom':!![],'ReportId':0x39},{'field':_0x3629ab('0x105'),'alias':'Interaction\x20Time','function':'SUM','format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x39},{'field':_0x3629ab('0xe3'),'alias':_0x3629ab('0xec'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x39},{'field':_0x3629ab('0x11'),'alias':'Queue','groupBy':!![],'ReportId':0x3a},{'field':_0x3629ab('0x9d'),'alias':_0x3629ab('0x138'),'function':'COUNT','ReportId':0x3a},{'field':_0x3629ab('0xf7'),'alias':'Accepted','custom':!![],'ReportId':0x3a},{'field':_0x3629ab('0x118'),'alias':_0x3629ab('0xc4'),'custom':!![],'ReportId':0x3a},{'field':'UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)','alias':_0x3629ab('0x8'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x3a},{'field':'ROUND(AVG(UNIX_TIMESTAMP(leaveAt)-UNIX_TIMESTAMP(joinAt)))','alias':_0x3629ab('0xaa'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x3a},{'field':_0x3629ab('0xac'),'alias':_0x3629ab('0xe9'),'groupBy':!![],'ReportId':0x3b},{'field':_0x3629ab('0x136'),'alias':_0x3629ab('0x138'),'function':_0x3629ab('0x82'),'ReportId':0x3b},{'field':_0x3629ab('0x6c'),'alias':_0x3629ab('0x80'),'custom':!![],'ReportId':0x3b},{'field':_0x3629ab('0x99'),'alias':'Closed','custom':!![],'ReportId':0x3b},{'field':_0x3629ab('0xac'),'alias':_0x3629ab('0xe9'),'groupBy':!![],'ReportId':0x3c},{'field':_0x3629ab('0x6f'),'alias':_0x3629ab('0xbe'),'function':'SUM','format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x3c},{'field':_0x3629ab('0x127'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x3c},{'field':'users.fullname','alias':'Agent','groupBy':!![],'ReportId':0x3d},{'field':'sms_interactions.closed','alias':_0x3629ab('0x107'),'function':_0x3629ab('0x10f'),'ReportId':0x3d},{'field':_0x3629ab('0x6f'),'alias':_0x3629ab('0xbe'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x3d},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(sms_interactions.createdAt)))','alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x3d},{'field':_0x3629ab('0xd7'),'alias':_0x3629ab('0x95'),'format':_0x3629ab('0x13b'),'groupBy':!![],'custom':!![],'ReportId':0x3e},{'field':'sms_interactions.id','alias':'Interactions','function':'COUNT','ReportId':0x3e},{'field':_0x3629ab('0x99'),'alias':'Completed','custom':!![],'ReportId':0x3e},{'field':_0x3629ab('0x76'),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x3e},{'field':_0x3629ab('0x105'),'alias':_0x3629ab('0xbe'),'function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x3e},{'field':_0x3629ab('0xe3'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x3e},{'field':_0x3629ab('0x134'),'alias':'Queue','groupBy':!![],'ReportId':0x3f},{'field':_0x3629ab('0xbd'),'alias':'Interactions','function':_0x3629ab('0x82'),'ReportId':0x3f},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x3629ab('0xc6'),'custom':!![],'ReportId':0x3f},{'field':_0x3629ab('0x118'),'alias':_0x3629ab('0xc4'),'custom':!![],'ReportId':0x3f},{'field':_0x3629ab('0xf6'),'alias':_0x3629ab('0x8'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x3f},{'field':_0x3629ab('0xb4'),'alias':_0x3629ab('0xaa'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x3f},{'field':_0x3629ab('0x124'),'alias':'Queue','groupBy':!![],'ReportId':0x44},{'field':_0x3629ab('0xd1'),'alias':_0x3629ab('0x138'),'function':_0x3629ab('0x82'),'ReportId':0x44},{'field':_0x3629ab('0xf7'),'alias':_0x3629ab('0xc6'),'custom':!![],'ReportId':0x44},{'field':'COUNT(IF(reason=\x27timeout\x27,1,NULL))','alias':_0x3629ab('0xc4'),'custom':!![],'ReportId':0x44},{'field':_0x3629ab('0xf6'),'alias':'Hold\x20Time','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x44},{'field':_0x3629ab('0xb4'),'alias':_0x3629ab('0xaa'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x44},{'field':_0x3629ab('0x137'),'alias':'Date','format':_0x3629ab('0x13b'),'groupBy':!![],'custom':!![],'ReportId':0x43},{'field':_0x3629ab('0x37'),'alias':'Interactions','function':_0x3629ab('0x82'),'ReportId':0x43},{'field':_0x3629ab('0x99'),'alias':_0x3629ab('0x55'),'custom':!![],'ReportId':0x43},{'field':'ROUND(COUNT(IF(closed=1,1,NULL))/COUNT(id)\x20*100,1)','alias':_0x3629ab('0x117'),'custom':!![],'ReportId':0x43},{'field':'UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)','alias':'Interaction\x20Time','function':'SUM','format':'SEC_TO_TIME','custom':!![],'ReportId':0x43},{'field':'ROUND(AVG(UNIX_TIMESTAMP(closedAt)-UNIX_TIMESTAMP(createdAt)))','alias':'AVG\x20Interaction\x20Time','format':'SEC_TO_TIME','custom':!![],'ReportId':0x43},{'field':_0x3629ab('0x102'),'alias':_0x3629ab('0x11e'),'groupBy':!![],'ReportId':0x42},{'field':'fax_interactions.closed','alias':_0x3629ab('0x107'),'function':'SUM','ReportId':0x42},{'field':_0x3629ab('0x15'),'alias':'Interaction\x20Time','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x42},{'field':_0x3629ab('0xe'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x42},{'field':_0x3629ab('0x93'),'alias':_0x3629ab('0xb1'),'groupBy':!![],'ReportId':0x41},{'field':_0x3629ab('0x15'),'alias':_0x3629ab('0xbe'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x41},{'field':_0x3629ab('0xe'),'alias':_0x3629ab('0xec'),'format':'SEC_TO_TIME','custom':!![],'ReportId':0x41},{'field':_0x3629ab('0x93'),'alias':_0x3629ab('0xb1'),'groupBy':!![],'ReportId':0x40},{'field':_0x3629ab('0x37'),'alias':_0x3629ab('0x138'),'function':'COUNT','ReportId':0x40},{'field':_0x3629ab('0x6c'),'alias':_0x3629ab('0x80'),'custom':!![],'ReportId':0x40},{'field':_0x3629ab('0x99'),'alias':_0x3629ab('0x107'),'custom':!![],'ReportId':0x40},{'field':_0x3629ab('0x130'),'alias':_0x3629ab('0xd6'),'groupBy':!![],'custom':![],'ReportId':0x4a},{'field':'users.fullname','alias':_0x3629ab('0x115'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x3629ab('0x101'),'alias':'POSITIVE','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3629ab('0xab'),'alias':'NEGATIVE','groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3629ab('0xad'),'alias':_0x3629ab('0x1a'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','alias':_0x3629ab('0x90'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3629ab('0x19'),'alias':'TOT','function':_0x3629ab('0x82'),'groupBy':![],'custom':![],'ReportId':0x4a},{'field':_0x3629ab('0xeb'),'alias':_0x3629ab('0x85'),'groupBy':![],'custom':!![],'ReportId':0x45},{'field':_0x3629ab('0xc2'),'alias':_0x3629ab('0xd4'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3629ab('0x78'),'alias':_0x3629ab('0x87'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3629ab('0xb3'),'alias':_0x3629ab('0xdf'),'groupBy':![],'custom':!![],'ReportId':0x4a},{'field':_0x3629ab('0x19'),'alias':_0x3629ab('0x69'),'function':_0x3629ab('0x82'),'groupBy':![],'custom':![],'ReportId':0x4b},{'field':_0x3629ab('0x101'),'alias':_0x3629ab('0x49'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27NEGATIVE\x27,1,NULL))','alias':_0x3629ab('0x103'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3629ab('0xad'),'alias':_0x3629ab('0x1a'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':'COUNT\x20(IF(voice_recordings.sentiment\x20=\x20\x27MIXED\x27,1,NULL))','alias':_0x3629ab('0x90'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3629ab('0xeb'),'alias':'Positive(%)','groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3629ab('0xc2'),'alias':_0x3629ab('0xd4'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3629ab('0x78'),'alias':_0x3629ab('0x87'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3629ab('0xb3'),'alias':_0x3629ab('0xdf'),'groupBy':![],'custom':!![],'ReportId':0x4b},{'field':_0x3629ab('0x3a'),'alias':_0x3629ab('0x12c'),'groupBy':!![],'ReportId':0x45},{'field':_0x3629ab('0x96'),'alias':_0x3629ab('0x138'),'function':_0x3629ab('0x82'),'ReportId':0x45},{'field':_0x3629ab('0x6c'),'alias':_0x3629ab('0x80'),'custom':!![],'ReportId':0x45},{'field':'COUNT(IF(closed=1,1,NULL))','alias':_0x3629ab('0x107'),'custom':!![],'ReportId':0x45},{'field':_0x3629ab('0x3a'),'alias':'Whatsapp\x20Account','groupBy':!![],'ReportId':0x46},{'field':_0x3629ab('0xe8'),'alias':'Interaction\x20Time','function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x46},{'field':_0x3629ab('0x57'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x46},{'field':_0x3629ab('0x102'),'alias':_0x3629ab('0x11e'),'groupBy':!![],'ReportId':0x47},{'field':_0x3629ab('0x109'),'alias':_0x3629ab('0x107'),'function':'SUM','ReportId':0x47},{'field':_0x3629ab('0xe8'),'alias':_0x3629ab('0xbe'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x47},{'field':_0x3629ab('0x57'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x47},{'field':_0x3629ab('0x10b'),'alias':'Date','format':_0x3629ab('0x13b'),'groupBy':!![],'custom':!![],'ReportId':0x48},{'field':_0x3629ab('0x96'),'alias':_0x3629ab('0x138'),'function':_0x3629ab('0x82'),'ReportId':0x48},{'field':_0x3629ab('0x99'),'alias':_0x3629ab('0x55'),'custom':!![],'ReportId':0x48},{'field':_0x3629ab('0x76'),'alias':'Completed\x20(%)','custom':!![],'ReportId':0x48},{'field':_0x3629ab('0x105'),'alias':_0x3629ab('0xbe'),'function':'SUM','format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x48},{'field':_0x3629ab('0xe3'),'alias':_0x3629ab('0xec'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x48},{'field':_0x3629ab('0xee'),'alias':'Queue','groupBy':!![],'ReportId':0x49},{'field':_0x3629ab('0x86'),'alias':_0x3629ab('0x138'),'function':_0x3629ab('0x82'),'ReportId':0x49},{'field':'COUNT(IF(reason=\x27accepted\x27,1,NULL))','alias':_0x3629ab('0xc6'),'custom':!![],'ReportId':0x49},{'field':_0x3629ab('0x118'),'alias':'Timeout','custom':!![],'ReportId':0x49},{'field':_0x3629ab('0xf6'),'alias':_0x3629ab('0x8'),'function':_0x3629ab('0x10f'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x49},{'field':_0x3629ab('0xb4'),'alias':_0x3629ab('0xaa'),'format':_0x3629ab('0xbf'),'custom':!![],'ReportId':0x49}];return _[_0x3629ab('0x8e')](_0x10c877,_0x3629ab('0x52'));}; \ No newline at end of file diff --git a/server/config/seedDB/report/index.js b/server/config/seedDB/report/index.js index 3181947..22a721c 100644 --- a/server/config/seedDB/report/index.js +++ b/server/config/seedDB/report/index.js @@ -1 +1 @@ -var a870_0x1ba8=['./default','./fields'];(function(_0x52cb4e,_0x1ba899){var _0x35adc3=function(_0x4dcf6f){while(--_0x4dcf6f){_0x52cb4e['push'](_0x52cb4e['shift']());}};_0x35adc3(++_0x1ba899);}(a870_0x1ba8,0x16e));var a870_0x35ad=function(_0x52cb4e,_0x1ba899){_0x52cb4e=_0x52cb4e-0x0;var _0x35adc3=a870_0x1ba8[_0x52cb4e];return _0x35adc3;};var _0x38dddf=a870_0x35ad;'use strict';module['exports']={'default':require(_0x38dddf('0x0')),'fields':require(_0x38dddf('0x1'))}; \ No newline at end of file +var a870_0x5a4d=['./default','./fields'];(function(_0x1c84e5,_0x5a4daf){var _0x4d1195=function(_0x56a4f8){while(--_0x56a4f8){_0x1c84e5['push'](_0x1c84e5['shift']());}};_0x4d1195(++_0x5a4daf);}(a870_0x5a4d,0xfb));var a870_0x4d11=function(_0x1c84e5,_0x5a4daf){_0x1c84e5=_0x1c84e5-0x0;var _0x4d1195=a870_0x5a4d[_0x1c84e5];return _0x4d1195;};var _0x3846d3=a870_0x4d11;'use strict';module['exports']={'default':require(_0x3846d3('0x1')),'fields':require(_0x3846d3('0x0'))}; \ No newline at end of file diff --git a/server/config/seedDB/sounds.js b/server/config/seedDB/sounds.js index 31c44c5..bc2d1c1 100644 --- a/server/config/seedDB/sounds.js +++ b/server/config/seedDB/sounds.js @@ -1 +1 @@ -const a871_0x2168=['Sound','app','Sounds\x20have\x20been\x20created','Agent\x20Action\x20Failure','Order\x20Elaborated','wav','Order\x20Message','create','agentmanagement-menu','info','Welcome\x20Message','Agent\x20End\x20Pause','Call\x20Rating\x20Message','Agent\x20Menu','mp3','agentmanagement-logout','Agent\x20Pause','agentmanagement-login','order-shipped','order-number','order-elaborated','error','rate-call','thanx','catch','../../mysqldb','auto\x20generated\x20sound','Agent\x20Logout','Agent\x20Login','welcome-acme','Order\x20Shipped'];(function(_0x2f2921,_0x21685a){const _0x39be37=function(_0x36308a){while(--_0x36308a){_0x2f2921['push'](_0x2f2921['shift']());}};_0x39be37(++_0x21685a);}(a871_0x2168,0x7a));const a871_0x39be=function(_0x2f2921,_0x21685a){_0x2f2921=_0x2f2921-0x0;let _0x39be37=a871_0x2168[_0x2f2921];return _0x39be37;};const _0x279762=a871_0x39be;'use strict';const db=require(_0x279762('0x1b'))['db'],logger=require('../logger')(_0x279762('0x3')),sounds=[{'id':0x1,'name':_0x279762('0xc'),'save_name':_0x279762('0x0'),'display_name':_0x279762('0xc'),'original_format':_0x279762('0x7'),'converted_format':_0x279762('0x7'),'description':'auto\x20generated\x20sound'},{'id':0x2,'name':_0x279762('0x8'),'save_name':_0x279762('0x15'),'display_name':_0x279762('0x8'),'original_format':'wav','converted_format':'wav','description':_0x279762('0x1c')},{'id':0x3,'name':_0x279762('0x1'),'save_name':_0x279762('0x14'),'display_name':_0x279762('0x1'),'original_format':_0x279762('0x7'),'converted_format':_0x279762('0x7'),'description':_0x279762('0x1c')},{'id':0x4,'name':_0x279762('0x6'),'save_name':_0x279762('0x16'),'display_name':_0x279762('0x6'),'original_format':_0x279762('0x7'),'converted_format':_0x279762('0x7'),'description':_0x279762('0x1c')},{'id':0x5,'name':_0x279762('0xe'),'save_name':_0x279762('0x18'),'display_name':_0x279762('0xe'),'original_format':_0x279762('0x7'),'converted_format':_0x279762('0x7'),'description':'auto\x20generated\x20sound'},{'id':0x6,'name':'Thank\x20You','save_name':_0x279762('0x19'),'display_name':'Thank\x20You','original_format':_0x279762('0x7'),'converted_format':_0x279762('0x7'),'description':_0x279762('0x1c')},{'id':0x7,'name':_0x279762('0x1e'),'save_name':_0x279762('0x13'),'display_name':_0x279762('0x1e'),'original_format':_0x279762('0x10'),'converted_format':_0x279762('0x7'),'description':_0x279762('0x1c')},{'id':0x8,'name':'Agent\x20Logout','save_name':_0x279762('0x11'),'display_name':_0x279762('0x1d'),'original_format':_0x279762('0x10'),'converted_format':'wav','description':_0x279762('0x1c')},{'id':0x9,'name':'Agent\x20Menu','save_name':_0x279762('0xa'),'display_name':_0x279762('0xf'),'original_format':_0x279762('0x7'),'converted_format':_0x279762('0x7'),'description':_0x279762('0x1c')},{'id':0xa,'name':'Agent\x20Pause','save_name':'agentmanagement-pause','display_name':_0x279762('0x12'),'original_format':_0x279762('0x10'),'converted_format':_0x279762('0x7'),'description':_0x279762('0x1c')},{'id':0xb,'name':_0x279762('0xd'),'save_name':'agentmanagement-unpause','display_name':_0x279762('0xd'),'original_format':_0x279762('0x10'),'converted_format':_0x279762('0x7'),'description':_0x279762('0x1c')},{'id':0xc,'name':_0x279762('0x5'),'save_name':'agentmanagement-action-failure','display_name':_0x279762('0x5'),'original_format':_0x279762('0x7'),'converted_format':_0x279762('0x7'),'description':_0x279762('0x1c')}];exports[_0x279762('0x9')]=function(){const _0x135273=_0x279762;return db[_0x135273('0x2')]['bulkCreate'](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x3be4cb=_0x135273;logger[_0x3be4cb('0xb')](_0x3be4cb('0x4'));})[_0x135273('0x1a')](function(){const _0x34afbd=_0x135273;logger[_0x34afbd('0x17')]('Can\x27t\x20create\x20Sounds');});}; \ No newline at end of file +const a871_0x8fb6=['mp3','Order\x20Shipped','Agent\x20Pause','order-shipped','bulkCreate','thanx','info','auto\x20generated\x20sound','catch','rate-call','Call\x20Rating\x20Message','Agent\x20Logout','agentmanagement-logout','wav','error','Agent\x20Login','agentmanagement-pause','Thank\x20You','order-number','../../mysqldb','Agent\x20End\x20Pause','then','Order\x20Elaborated','Agent\x20Menu','Sound','Agent\x20Action\x20Failure','create','app','Order\x20Message','agentmanagement-unpause','../logger','Welcome\x20Message','Can\x27t\x20create\x20Sounds'];(function(_0x5690bb,_0x8fb673){const _0x262fc9=function(_0x2056a2){while(--_0x2056a2){_0x5690bb['push'](_0x5690bb['shift']());}};_0x262fc9(++_0x8fb673);}(a871_0x8fb6,0x164));const a871_0x262f=function(_0x5690bb,_0x8fb673){_0x5690bb=_0x5690bb-0x0;let _0x262fc9=a871_0x8fb6[_0x5690bb];return _0x262fc9;};const _0x358f25=a871_0x262f;'use strict';const db=require(_0x358f25('0x1a'))['db'],logger=require(_0x358f25('0x4'))(_0x358f25('0x1')),sounds=[{'id':0x1,'name':_0x358f25('0x5'),'save_name':'welcome-acme','display_name':'Welcome\x20Message','original_format':_0x358f25('0x14'),'converted_format':_0x358f25('0x14'),'description':_0x358f25('0xe')},{'id':0x2,'name':_0x358f25('0x2'),'save_name':_0x358f25('0x19'),'display_name':_0x358f25('0x2'),'original_format':_0x358f25('0x14'),'converted_format':_0x358f25('0x14'),'description':_0x358f25('0xe')},{'id':0x3,'name':_0x358f25('0x8'),'save_name':_0x358f25('0xa'),'display_name':_0x358f25('0x8'),'original_format':_0x358f25('0x14'),'converted_format':_0x358f25('0x14'),'description':_0x358f25('0xe')},{'id':0x4,'name':_0x358f25('0x1d'),'save_name':'order-elaborated','display_name':_0x358f25('0x1d'),'original_format':_0x358f25('0x14'),'converted_format':_0x358f25('0x14'),'description':'auto\x20generated\x20sound'},{'id':0x5,'name':_0x358f25('0x11'),'save_name':_0x358f25('0x10'),'display_name':'Call\x20Rating\x20Message','original_format':_0x358f25('0x14'),'converted_format':_0x358f25('0x14'),'description':_0x358f25('0xe')},{'id':0x6,'name':_0x358f25('0x18'),'save_name':_0x358f25('0xc'),'display_name':'Thank\x20You','original_format':_0x358f25('0x14'),'converted_format':_0x358f25('0x14'),'description':'auto\x20generated\x20sound'},{'id':0x7,'name':_0x358f25('0x16'),'save_name':'agentmanagement-login','display_name':_0x358f25('0x16'),'original_format':_0x358f25('0x7'),'converted_format':_0x358f25('0x14'),'description':_0x358f25('0xe')},{'id':0x8,'name':_0x358f25('0x12'),'save_name':_0x358f25('0x13'),'display_name':'Agent\x20Logout','original_format':_0x358f25('0x7'),'converted_format':'wav','description':_0x358f25('0xe')},{'id':0x9,'name':_0x358f25('0x1e'),'save_name':'agentmanagement-menu','display_name':_0x358f25('0x1e'),'original_format':'wav','converted_format':_0x358f25('0x14'),'description':_0x358f25('0xe')},{'id':0xa,'name':_0x358f25('0x9'),'save_name':_0x358f25('0x17'),'display_name':_0x358f25('0x9'),'original_format':_0x358f25('0x7'),'converted_format':_0x358f25('0x14'),'description':_0x358f25('0xe')},{'id':0xb,'name':_0x358f25('0x1b'),'save_name':_0x358f25('0x3'),'display_name':'Agent\x20End\x20Pause','original_format':_0x358f25('0x7'),'converted_format':_0x358f25('0x14'),'description':_0x358f25('0xe')},{'id':0xc,'name':_0x358f25('0x20'),'save_name':'agentmanagement-action-failure','display_name':'Agent\x20Action\x20Failure','original_format':_0x358f25('0x14'),'converted_format':'wav','description':_0x358f25('0xe')}];exports[_0x358f25('0x0')]=function(){const _0x11eaf4=_0x358f25;return db[_0x11eaf4('0x1f')][_0x11eaf4('0xb')](sounds,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x11eaf4('0x1c')](function(){const _0x6c7b4b=_0x11eaf4;logger[_0x6c7b4b('0xd')]('Sounds\x20have\x20been\x20created');})[_0x11eaf4('0xf')](function(){const _0x175516=_0x11eaf4;logger[_0x175516('0x15')](_0x175516('0x6'));});}; \ No newline at end of file diff --git a/server/config/seedDB/squareOdbc.js b/server/config/seedDB/squareOdbc.js index 450bf9a..48c8a16 100644 --- a/server/config/seedDB/squareOdbc.js +++ b/server/config/seedDB/squareOdbc.js @@ -1 +1 @@ -const a872_0x37ec=['bulkCreate','catch','app','create','../logger','SquareOdbc','xcally\x20motion\x20db\x20auto\x20generated','../../mysqldb','ODBC\x20have\x20been\x20created','Can\x27t\x20create\x20ODBC'];(function(_0x5422ef,_0x37ecab){const _0x51b46a=function(_0x504b19){while(--_0x504b19){_0x5422ef['push'](_0x5422ef['shift']());}};_0x51b46a(++_0x37ecab);}(a872_0x37ec,0x16d));const a872_0x51b4=function(_0x5422ef,_0x37ecab){_0x5422ef=_0x5422ef-0x0;let _0x51b46a=a872_0x37ec[_0x5422ef];return _0x51b46a;};const _0x3e7acf=a872_0x51b4;'use strict';const db=require(_0x3e7acf('0x2'))['db'],logger=require(_0x3e7acf('0x9'))(_0x3e7acf('0x7')),odbc=[{'id':0x1,'name':'xcally-motion-database','dsn':'DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','description':_0x3e7acf('0x1')}];exports[_0x3e7acf('0x8')]=function(){const _0x180957=_0x3e7acf;return db[_0x180957('0x0')][_0x180957('0x5')](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x206de3=_0x180957;logger['info'](_0x206de3('0x3'));})[_0x180957('0x6')](function(){const _0x27194e=_0x180957;logger['error'](_0x27194e('0x4'));});}; \ No newline at end of file +const a872_0x1162=['../logger','DRIVER=MySQL;SERVER=127.0.0.1;UID=xcall;PWD=xC@LL1234;DATABASE=motion2','xcally\x20motion\x20db\x20auto\x20generated','../../mysqldb','then','app','Can\x27t\x20create\x20ODBC','catch','xcally-motion-database','ODBC\x20have\x20been\x20created','create','error','SquareOdbc','bulkCreate'];(function(_0xeedeb8,_0x116231){const _0x23561a=function(_0x20e36b){while(--_0x20e36b){_0xeedeb8['push'](_0xeedeb8['shift']());}};_0x23561a(++_0x116231);}(a872_0x1162,0x78));const a872_0x2356=function(_0xeedeb8,_0x116231){_0xeedeb8=_0xeedeb8-0x0;let _0x23561a=a872_0x1162[_0xeedeb8];return _0x23561a;};const _0x132b80=a872_0x2356;'use strict';const db=require(_0x132b80('0x9'))['db'],logger=require(_0x132b80('0x6'))(_0x132b80('0xb')),odbc=[{'id':0x1,'name':_0x132b80('0x0'),'dsn':_0x132b80('0x7'),'description':_0x132b80('0x8')}];exports[_0x132b80('0x2')]=function(){const _0x1d42fc=_0x132b80;return db[_0x1d42fc('0x4')][_0x1d42fc('0x5')](odbc,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1d42fc('0xa')](function(){const _0x2d8548=_0x1d42fc;logger['info'](_0x2d8548('0x1'));})[_0x1d42fc('0xd')](function(){const _0xdb62c9=_0x1d42fc;logger[_0xdb62c9('0x3')](_0xdb62c9('0xc'));});}; \ No newline at end of file diff --git a/server/config/seedDB/squareProjects.js b/server/config/seedDB/squareProjects.js index 2deec28..1df05f5 100644 --- a/server/config/seedDB/squareProjects.js +++ b/server/config/seedDB/squareProjects.js @@ -1 +1 @@ -const a873_0x2708=['CSI','Can\x27t\x20create\x20Square\x20Projects','info','Orders','utf-8','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','.xml','Survey','Square\x20Projects\x20have\x20been\x20created','join','../logger','create','SquareProject','xml','Basic\x20IVR\x20sample\x20auto\x20generated','app','../../mysqldb','AutoAttendant','then','catch','path','error','AgentManagement'];(function(_0x35c2e9,_0x27085a){const _0x32fcd5=function(_0x1794c1){while(--_0x1794c1){_0x35c2e9['push'](_0x35c2e9['shift']());}};_0x32fcd5(++_0x27085a);}(a873_0x2708,0x152));const a873_0x32fc=function(_0x35c2e9,_0x27085a){_0x35c2e9=_0x35c2e9-0x0;let _0x32fcd5=a873_0x2708[_0x35c2e9];return _0x32fcd5;};const _0x302da0=a873_0x32fc;'use strict';const fs=require('fs'),path=require(_0x302da0('0x4')),db=require(_0x302da0('0x0'))['db'],logger=require(_0x302da0('0x11'))(_0x302da0('0x16')),getXml=function(_0x1794c1){const _0x32f979=_0x302da0;return fs['readFileSync'](path[_0x32f979('0x10')](__dirname,_0x32f979('0x14'),_0x1794c1+_0x32f979('0xd')),{'encoding':_0x32f979('0xb')});},squareProjects=[{'id':0x1,'name':_0x302da0('0x1'),'description':_0x302da0('0x15'),'preproduction':getXml(_0x302da0('0x1')),'production':getXml(_0x302da0('0x1'))},{'id':0x2,'name':_0x302da0('0x7'),'description':_0x302da0('0xc'),'preproduction':getXml(_0x302da0('0x7')),'production':getXml(_0x302da0('0x7'))},{'id':0x3,'name':_0x302da0('0xa'),'description':'Order\x20DB\x20IVR\x20sample\x20auto\x20generated','preproduction':getXml(_0x302da0('0xa')),'production':getXml(_0x302da0('0xa'))},{'id':0x4,'name':_0x302da0('0xe'),'description':'Survey\x20IVR\x20sample\x20auto\x20generated','preproduction':getXml(_0x302da0('0xe')),'production':getXml(_0x302da0('0xe'))},{'id':0x5,'name':_0x302da0('0x6'),'description':'Agent\x20Management\x20sample\x20auto\x20generated','preproduction':getXml(_0x302da0('0x6')),'production':getXml('AgentManagement')}];exports[_0x302da0('0x12')]=function(){const _0x1f3675=_0x302da0;return db[_0x1f3675('0x13')]['bulkCreate'](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1f3675('0x2')](function(){const _0x56012f=_0x1f3675;logger[_0x56012f('0x9')](_0x56012f('0xf'));})[_0x1f3675('0x3')](function(){const _0x2594e3=_0x1f3675;logger[_0x2594e3('0x5')](_0x2594e3('0x8'));});}; \ No newline at end of file +const a873_0x1fcc=['app','info','../../mysqldb','join','Order\x20DB\x20IVR\x20sample\x20auto\x20generated','AgentManagement','AutoAttendant','CSI','../logger','xml','bulkCreate','.xml','create','catch','utf-8','Survey\x20IVR\x20sample\x20auto\x20generated','Square\x20Projects\x20have\x20been\x20created','Survey','Customer\x20Satisfaction\x20IVR\x20sample\x20auto\x20generated','Orders','Agent\x20Management\x20sample\x20auto\x20generated','Can\x27t\x20create\x20Square\x20Projects','Basic\x20IVR\x20sample\x20auto\x20generated'];(function(_0x12bfa7,_0x1fccc0){const _0x46fdcf=function(_0x5a9b79){while(--_0x5a9b79){_0x12bfa7['push'](_0x12bfa7['shift']());}};_0x46fdcf(++_0x1fccc0);}(a873_0x1fcc,0x67));const a873_0x46fd=function(_0x12bfa7,_0x1fccc0){_0x12bfa7=_0x12bfa7-0x0;let _0x46fdcf=a873_0x1fcc[_0x12bfa7];return _0x46fdcf;};const _0x2de82d=a873_0x46fd;'use strict';const fs=require('fs'),path=require('path'),db=require(_0x2de82d('0xe'))['db'],logger=require(_0x2de82d('0x14'))(_0x2de82d('0xc')),getXml=function(_0x5a9b79){const _0x5c8bd8=_0x2de82d;return fs['readFileSync'](path[_0x5c8bd8('0xf')](__dirname,_0x5c8bd8('0x15'),_0x5a9b79+_0x5c8bd8('0x0')),{'encoding':_0x5c8bd8('0x3')});},squareProjects=[{'id':0x1,'name':_0x2de82d('0x12'),'description':_0x2de82d('0xb'),'preproduction':getXml(_0x2de82d('0x12')),'production':getXml(_0x2de82d('0x12'))},{'id':0x2,'name':_0x2de82d('0x13'),'description':_0x2de82d('0x7'),'preproduction':getXml('CSI'),'production':getXml(_0x2de82d('0x13'))},{'id':0x3,'name':_0x2de82d('0x8'),'description':_0x2de82d('0x10'),'preproduction':getXml(_0x2de82d('0x8')),'production':getXml(_0x2de82d('0x8'))},{'id':0x4,'name':'Survey','description':_0x2de82d('0x4'),'preproduction':getXml('Survey'),'production':getXml(_0x2de82d('0x6'))},{'id':0x5,'name':_0x2de82d('0x11'),'description':_0x2de82d('0x9'),'preproduction':getXml('AgentManagement'),'production':getXml(_0x2de82d('0x11'))}];exports[_0x2de82d('0x1')]=function(){const _0x5c860a=_0x2de82d;return db['SquareProject'][_0x5c860a('0x16')](squareProjects,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0xd171f9=_0x5c860a;logger[_0xd171f9('0xd')](_0xd171f9('0x5'));})[_0x5c860a('0x2')](function(){const _0x20f2ec=_0x5c860a;logger['error'](_0x20f2ec('0xa'));});}; \ No newline at end of file diff --git a/server/config/seedDB/tags.js b/server/config/seedDB/tags.js index e1c305e..76127d0 100644 --- a/server/config/seedDB/tags.js +++ b/server/config/seedDB/tags.js @@ -1 +1 @@ -const a874_0x564b=['app','bulkCreate','tag\x20defective\x20auto\x20generated','../logger','error','Can\x27t\x20create\x20Tags','lodash','forums','tag\x20about_sales\x20auto\x20generated','installation','Tags\x20have\x20been\x20created','about_sales','create','faq','Tag','then','map'];(function(_0x38f140,_0x564b2d){const _0x499055=function(_0x564f20){while(--_0x564f20){_0x38f140['push'](_0x38f140['shift']());}};_0x499055(++_0x564b2d);}(a874_0x564b,0xdb));const a874_0x4990=function(_0x38f140,_0x564b2d){_0x38f140=_0x38f140-0x0;let _0x499055=a874_0x564b[_0x38f140];return _0x499055;};const _0xb536f1=a874_0x4990;'use strict';const _=require(_0xb536f1('0x8')),db=require('../../mysqldb')['db'],logger=require(_0xb536f1('0x5'))(_0xb536f1('0x2')),tags=[{'id':0x1,'name':_0xb536f1('0x9'),'description':'tag\x20forums\x20auto\x20generated'},{'id':0x2,'name':'defective','description':_0xb536f1('0x4')},{'id':0x3,'name':_0xb536f1('0xf'),'description':'tag\x20faq\x20auto\x20generated'},{'id':0x4,'name':_0xb536f1('0xb'),'description':'tag\x20installation\x20auto\x20generated'},{'id':0x5,'name':_0xb536f1('0xd'),'description':_0xb536f1('0xa')}];exports[_0xb536f1('0xe')]=function(){const _0x36fd2f=_0xb536f1;return db[_0x36fd2f('0x10')][_0x36fd2f('0x3')](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x36fd2f('0x0')](function(){const _0x5db01f=_0x36fd2f;logger['info'](_0x5db01f('0xc'));})['catch'](function(){const _0x10c0e0=_0x36fd2f;logger[_0x10c0e0('0x6')](_0x10c0e0('0x7'));});},exports['getNames']=function(){const _0x4164ae=_0xb536f1;return _[_0x4164ae('0x1')](tags,'name');}; \ No newline at end of file +const a874_0x2b1d=['tag\x20faq\x20auto\x20generated','error','installation','create','then','defective','tag\x20installation\x20auto\x20generated','getNames','map','catch','name','Tag','app','faq','about_sales','tag\x20forums\x20auto\x20generated','tag\x20defective\x20auto\x20generated','../../mysqldb','forums','info'];(function(_0x468b46,_0x2b1d94){const _0x4c0bcf=function(_0x55a619){while(--_0x55a619){_0x468b46['push'](_0x468b46['shift']());}};_0x4c0bcf(++_0x2b1d94);}(a874_0x2b1d,0x12c));const a874_0x4c0b=function(_0x468b46,_0x2b1d94){_0x468b46=_0x468b46-0x0;let _0x4c0bcf=a874_0x2b1d[_0x468b46];return _0x4c0bcf;};const _0x1cd3a2=a874_0x4c0b;'use strict';const _=require('lodash'),db=require(_0x1cd3a2('0x11'))['db'],logger=require('../logger')(_0x1cd3a2('0xc')),tags=[{'id':0x1,'name':_0x1cd3a2('0x12'),'description':_0x1cd3a2('0xf')},{'id':0x2,'name':_0x1cd3a2('0x5'),'description':_0x1cd3a2('0x10')},{'id':0x3,'name':_0x1cd3a2('0xd'),'description':_0x1cd3a2('0x0')},{'id':0x4,'name':_0x1cd3a2('0x2'),'description':_0x1cd3a2('0x6')},{'id':0x5,'name':_0x1cd3a2('0xe'),'description':'tag\x20about_sales\x20auto\x20generated'}];exports[_0x1cd3a2('0x3')]=function(){const _0x57c065=_0x1cd3a2;return db[_0x57c065('0xb')]['bulkCreate'](tags,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x57c065('0x4')](function(){const _0x571b89=_0x57c065;logger[_0x571b89('0x13')]('Tags\x20have\x20been\x20created');})[_0x57c065('0x9')](function(){const _0x17b924=_0x57c065;logger[_0x17b924('0x1')]('Can\x27t\x20create\x20Tags');});},exports[_0x1cd3a2('0x7')]=function(){const _0x1596a0=_0x1cd3a2;return _[_0x1596a0('0x8')](tags,_0x1596a0('0xa'));}; \ No newline at end of file diff --git a/server/config/seedDB/teams.js b/server/config/seedDB/teams.js index 8d326bd..dbd8069 100644 --- a/server/config/seedDB/teams.js +++ b/server/config/seedDB/teams.js @@ -1 +1 @@ -const a875_0x15c2=['info','../../mysqldb','demo\x20team\x20auto\x20generated','error','addAgents','Teams\x20have\x20been\x20created','then','Team','catch','length'];(function(_0x2fd866,_0x15c2d0){const _0x1b0d75=function(_0x59ed8a){while(--_0x59ed8a){_0x2fd866['push'](_0x2fd866['shift']());}};_0x1b0d75(++_0x15c2d0);}(a875_0x15c2,0x1d9));const a875_0x1b0d=function(_0x2fd866,_0x15c2d0){_0x2fd866=_0x2fd866-0x0;let _0x1b0d75=a875_0x15c2[_0x2fd866];return _0x1b0d75;};const _0x5923f1=a875_0x1b0d;'use strict';const db=require(_0x5923f1('0x8'))['db'],logger=require('../logger')('app'),teams=[{'id':0x1,'name':'Demo\x20Team','description':_0x5923f1('0x9')}];exports['create']=function(){const _0x4a1e77=_0x5923f1;return db[_0x4a1e77('0x4')]['bulkCreate'](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x4a1e77('0x3')](function(_0x59ed8a){const _0x22c214=_0x4a1e77;for(let _0x412aad=0x0;_0x412aad<_0x59ed8a[_0x22c214('0x6')];_0x412aad+=0x1){_0x59ed8a[_0x412aad][_0x22c214('0x1')]([0x2,0x3]);}})['then'](function(){const _0x50c466=_0x4a1e77;logger[_0x50c466('0x7')](_0x50c466('0x2'));})[_0x4a1e77('0x5')](function(){const _0x4bf55b=_0x4a1e77;logger[_0x4bf55b('0x0')]('Can\x27t\x20create\x20Teams');});}; \ No newline at end of file +const a875_0x5826=['bulkCreate','demo\x20team\x20auto\x20generated','length','Can\x27t\x20create\x20Teams','catch','then','info','app','../../mysqldb','create','../logger','Demo\x20Team','error','Team'];(function(_0x3cb6f8,_0x582609){const _0x26bfa3=function(_0x1ac848){while(--_0x1ac848){_0x3cb6f8['push'](_0x3cb6f8['shift']());}};_0x26bfa3(++_0x582609);}(a875_0x5826,0x1da));const a875_0x26bf=function(_0x3cb6f8,_0x582609){_0x3cb6f8=_0x3cb6f8-0x0;let _0x26bfa3=a875_0x5826[_0x3cb6f8];return _0x26bfa3;};const _0x234846=a875_0x26bf;'use strict';const db=require(_0x234846('0xa'))['db'],logger=require(_0x234846('0xc'))(_0x234846('0x9')),teams=[{'id':0x1,'name':_0x234846('0xd'),'description':_0x234846('0x3')}];exports[_0x234846('0xb')]=function(){const _0x104d61=_0x234846;return db[_0x104d61('0x1')][_0x104d61('0x2')](teams,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x104d61('0x7')](function(_0x1ac848){const _0x27885a=_0x104d61;for(let _0x3a6e89=0x0;_0x3a6e89<_0x1ac848[_0x27885a('0x4')];_0x3a6e89+=0x1){_0x1ac848[_0x3a6e89]['addAgents']([0x2,0x3]);}})[_0x104d61('0x7')](function(){const _0x4323ce=_0x104d61;logger[_0x4323ce('0x8')]('Teams\x20have\x20been\x20created');})[_0x104d61('0x6')](function(){const _0x4ba7f1=_0x104d61;logger[_0x4ba7f1('0x0')](_0x4ba7f1('0x5'));});}; \ No newline at end of file diff --git a/server/config/seedDB/tree/index.js b/server/config/seedDB/tree/index.js index e1fb941..a09f43c 100644 --- a/server/config/seedDB/tree/index.js +++ b/server/config/seedDB/tree/index.js @@ -1 +1 @@ -var a876_0x56ab=['distribution','ivr_campaigns','Motion','Cally\x20Square','fax','icon\x20s20\x20icon-stackoverflow','Queue\x20Campaigns','IVR\x20Campaigns','custom','Email','icon\x20s20\x20icon-message-text','Custom','icon\x20s20\x20icon-email','mail','calls','Chat','motion','voice','WhatsApp\x20Connector','queues','Sms','icon\x20s20\x20','Openchannel','queue_campaigns','agents','bull','Agents','icon\x20s20\x20icon-google-earth','icon\x20s20\x20icon-phone-dots','Unanswered','chat','openchannel','callysquare','Distribution','Voice','icon\x20s20\x20icon-phone-log','recordings','Fax','icon\x20s20\x20icon-hangouts','Answered','icon\x20s20\x20icon-deskphone','answered','icon\x20s20\x20icon-sitemap','icon-cloud'];(function(_0x491f72,_0x56ab1e){var _0x2061df=function(_0x2e40b6){while(--_0x2e40b6){_0x491f72['push'](_0x491f72['shift']());}};_0x2061df(++_0x56ab1e);}(a876_0x56ab,0x78));var a876_0x2061=function(_0x491f72,_0x56ab1e){_0x491f72=_0x491f72-0x0;var _0x2061df=a876_0x56ab[_0x491f72];return _0x2061df;};var _0xfb6ece=a876_0x2061;'use strict';function getQueuesChildren(_0x2e40b6){var _0x3c5e0d=a876_0x2061;return _0x2e40b6+='_',[{'id':_0x2e40b6+_0x3c5e0d('0x9'),'text':_0x3c5e0d('0x7')},{'id':_0x2e40b6+'unanswered','text':_0x3c5e0d('0x29')},{'id':_0x2e40b6+_0x3c5e0d('0xc'),'text':_0x3c5e0d('0x1')}];}function getVoiceChildren(_0x358be0){var _0x4900af=a876_0x2061;return _0x358be0+='_',[{'id':_0x358be0+'queues','text':'Queues','icon':_0x4900af('0x11'),'children':getQueuesChildren(_0x358be0+_0x4900af('0x1f'))},{'id':_0x358be0+_0x4900af('0x1a'),'text':'Calls','icon':_0x4900af('0x28')},{'id':_0x358be0+'agents','text':_0x4900af('0x26'),'icon':'icon\x20s20\x20icon-account-multiple'},{'id':_0x358be0+_0x4900af('0x0'),'text':_0x4900af('0xf'),'icon':'icon\x20s20\x20icon-sitemap'},{'id':_0x358be0+_0x4900af('0x4'),'text':'Recordings','icon':'icon\x20s20\x20icon-microphone'}];}function getBullChildren(_0x4de705){var _0xc4069f=a876_0x2061;return _0x4de705+='_',[{'id':_0x4de705+_0xc4069f('0x23'),'text':_0xc4069f('0x12'),'icon':_0xc4069f('0x11')},{'id':_0x4de705+_0xc4069f('0xd'),'text':_0xc4069f('0x13'),'icon':_0xc4069f('0xa')}];}function getMotionChildren(_0x2b8c81){var _0x3156d2=a876_0x2061;return _0x2b8c81+='_',[{'id':_0x2b8c81+'voice','text':_0x3156d2('0x2'),'icon':_0x3156d2('0x3'),'children':getVoiceChildren(_0x2b8c81+_0x3156d2('0x1d'))},{'id':_0x2b8c81+_0x3156d2('0x25'),'text':'Motion\x20Bull','icon':'icon\x20s20\x20icon-fire','children':getBullChildren(_0x2b8c81+_0x3156d2('0x25'))},{'id':_0x2b8c81+_0x3156d2('0x2a'),'text':_0x3156d2('0x1b'),'icon':_0x3156d2('0x6')},{'id':_0x2b8c81+_0x3156d2('0x19'),'text':_0x3156d2('0x15'),'icon':_0x3156d2('0x18')},{'id':_0x2b8c81+_0x3156d2('0x2b'),'text':_0x3156d2('0x22'),'icon':_0x3156d2('0x27')},{'id':_0x2b8c81+'sms','text':_0x3156d2('0x20'),'icon':_0x3156d2('0x16')},{'id':_0x2b8c81+_0x3156d2('0x10'),'text':_0x3156d2('0x5'),'icon':_0x3156d2('0x8')},{'id':_0x2b8c81+'whatsapp','text':_0x3156d2('0x1e'),'icon':'icon\x20s20\x20icon-whatsapp'},{'id':_0x2b8c81+_0x3156d2('0x24'),'text':_0x3156d2('0x26'),'icon':'icon\x20s20\x20icon-account-multiple'}];}function getTree(_0x156e68){var _0x32b46c=a876_0x2061;return[{'id':_0x156e68?_0x32b46c('0x14'):_0x32b46c('0x1c'),'text':(_0x156e68?_0x32b46c('0x17'):_0x32b46c('0xe'))+'\x20Reports','icon':_0x32b46c('0x21')+(_0x156e68?'icon-laptop-chromebook':_0x32b46c('0xb')),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x156e68?_0x32b46c('0x14'):'motion')}];}exports[_0xfb6ece('0x1c')]=getTree(![]),exports['custom']=getTree(!![]); \ No newline at end of file +var a876_0x39d7=['callysquare','icon\x20s20\x20icon-message-text','icon\x20s20\x20icon-email','Custom','icon\x20s20\x20','agents','Unanswered','icon\x20s20\x20icon-stackoverflow','icon\x20s20\x20icon-sitemap','fax','Openchannel','Calls','mail','icon\x20s20\x20icon-phone-dots','openchannel','motion','unanswered','icon-laptop-chromebook','icon\x20s20\x20icon-whatsapp','icon\x20s20\x20icon-account-multiple','Email','Distribution','Fax','Cally\x20Square','queues','bull','voice','icon\x20s20\x20icon-microphone','Answered','icon-cloud','queue_campaigns','icon\x20s20\x20icon-fire','whatsapp','Voice','Agents','custom','calls','Queues','Chat','Queue\x20Campaigns','Sms','WhatsApp\x20Connector','Motion\x20Bull','Recordings'];(function(_0x4db149,_0x39d765){var _0x5f00e4=function(_0x29f871){while(--_0x29f871){_0x4db149['push'](_0x4db149['shift']());}};_0x5f00e4(++_0x39d765);}(a876_0x39d7,0x90));var a876_0x5f00=function(_0x4db149,_0x39d765){_0x4db149=_0x4db149-0x0;var _0x5f00e4=a876_0x39d7[_0x4db149];return _0x5f00e4;};var _0x499f88=a876_0x5f00;'use strict';function getQueuesChildren(_0x29f871){var _0x3d2165=a876_0x5f00;return _0x29f871+='_',[{'id':_0x29f871+'answered','text':_0x3d2165('0x10')},{'id':_0x29f871+_0x3d2165('0x4'),'text':_0x3d2165('0x26')},{'id':_0x29f871+'distribution','text':_0x3d2165('0x9')}];}function getVoiceChildren(_0x15b569){var _0x28c5e5=a876_0x5f00;return _0x15b569+='_',[{'id':_0x15b569+'queues','text':_0x28c5e5('0x19'),'icon':'icon\x20s20\x20icon-stackoverflow','children':getQueuesChildren(_0x15b569+_0x28c5e5('0xc'))},{'id':_0x15b569+_0x28c5e5('0x18'),'text':_0x28c5e5('0x2b'),'icon':_0x28c5e5('0x1')},{'id':_0x15b569+_0x28c5e5('0x25'),'text':'Agents','icon':_0x28c5e5('0x7')},{'id':_0x15b569+_0x28c5e5('0x20'),'text':_0x28c5e5('0xb'),'icon':_0x28c5e5('0x28')},{'id':_0x15b569+'recordings','text':_0x28c5e5('0x1f'),'icon':_0x28c5e5('0xf')}];}function getBullChildren(_0x3f5971){var _0x25f21c=a876_0x5f00;return _0x3f5971+='_',[{'id':_0x3f5971+_0x25f21c('0x12'),'text':_0x25f21c('0x1b'),'icon':_0x25f21c('0x27')},{'id':_0x3f5971+'ivr_campaigns','text':'IVR\x20Campaigns','icon':_0x25f21c('0x28')}];}function getMotionChildren(_0x50d770){var _0xb64957=a876_0x5f00;return _0x50d770+='_',[{'id':_0x50d770+_0xb64957('0xe'),'text':_0xb64957('0x15'),'icon':'icon\x20s20\x20icon-phone-log','children':getVoiceChildren(_0x50d770+'voice')},{'id':_0x50d770+'bull','text':_0xb64957('0x1e'),'icon':_0xb64957('0x13'),'children':getBullChildren(_0x50d770+_0xb64957('0xd'))},{'id':_0x50d770+'chat','text':_0xb64957('0x1a'),'icon':'icon\x20s20\x20icon-hangouts'},{'id':_0x50d770+_0xb64957('0x0'),'text':_0xb64957('0x8'),'icon':_0xb64957('0x22')},{'id':_0x50d770+_0xb64957('0x2'),'text':_0xb64957('0x2a'),'icon':'icon\x20s20\x20icon-google-earth'},{'id':_0x50d770+'sms','text':_0xb64957('0x1c'),'icon':_0xb64957('0x21')},{'id':_0x50d770+_0xb64957('0x29'),'text':_0xb64957('0xa'),'icon':'icon\x20s20\x20icon-deskphone'},{'id':_0x50d770+_0xb64957('0x14'),'text':_0xb64957('0x1d'),'icon':_0xb64957('0x6')},{'id':_0x50d770+_0xb64957('0x25'),'text':_0xb64957('0x16'),'icon':_0xb64957('0x7')}];}function getTree(_0x11cbe8){var _0x3befdf=a876_0x5f00;return[{'id':_0x11cbe8?'custom':'motion','text':(_0x11cbe8?_0x3befdf('0x23'):'Motion')+'\x20Reports','icon':_0x3befdf('0x24')+(_0x11cbe8?_0x3befdf('0x5'):_0x3befdf('0x11')),'state':{'opened':!![],'selected':!![]},'children':getMotionChildren(_0x11cbe8?_0x3befdf('0x17'):_0x3befdf('0x3'))}];}exports[_0x499f88('0x3')]=getTree(![]),exports['custom']=getTree(!![]); \ No newline at end of file diff --git a/server/config/seedDB/trunks.js b/server/config/seedDB/trunks.js index b9b93f7..6085e29 100644 --- a/server/config/seedDB/trunks.js +++ b/server/config/seedDB/trunks.js @@ -1 +1 @@ -const a877_0x5b87=['Trunks\x20have\x20been\x20created','info','../logger','error','create','demo','app','trunk\x20demo\x20auto\x20generated','bulkCreate','then','55xcally55','../../mysqldb','Trunk','catch'];(function(_0x44dfef,_0x5b879a){const _0x1b0795=function(_0x21745f){while(--_0x21745f){_0x44dfef['push'](_0x44dfef['shift']());}};_0x1b0795(++_0x5b879a);}(a877_0x5b87,0x8a));const a877_0x1b07=function(_0x44dfef,_0x5b879a){_0x44dfef=_0x44dfef-0x0;let _0x1b0795=a877_0x5b87[_0x44dfef];return _0x1b0795;};const _0x402ac2=a877_0x1b07;'use strict';const db=require(_0x402ac2('0xd'))['db'],logger=require(_0x402ac2('0x4'))(_0x402ac2('0x8')),trunks=[{'id':0x1,'name':_0x402ac2('0x7'),'secret':_0x402ac2('0xc'),'defaultuser':_0x402ac2('0x7'),'description':_0x402ac2('0x9')}];exports[_0x402ac2('0x6')]=function(){const _0x50ecc5=_0x402ac2;return db[_0x50ecc5('0x0')][_0x50ecc5('0xa')](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x50ecc5('0xb')](function(){const _0x4f78cd=_0x50ecc5;logger[_0x4f78cd('0x3')](_0x4f78cd('0x2'));})[_0x50ecc5('0x1')](function(){const _0x32987e=_0x50ecc5;logger[_0x32987e('0x5')]('Can\x27t\x20create\x20Trunks');});}; \ No newline at end of file +const a877_0x42fa=['app','55xcally55','../../mysqldb','then','../logger','bulkCreate','trunk\x20demo\x20auto\x20generated','create','demo','Trunk','error','Can\x27t\x20create\x20Trunks','info','Trunks\x20have\x20been\x20created','catch'];(function(_0x1f90c5,_0x42fa9f){const _0x466943=function(_0x39e9c1){while(--_0x39e9c1){_0x1f90c5['push'](_0x1f90c5['shift']());}};_0x466943(++_0x42fa9f);}(a877_0x42fa,0x145));const a877_0x4669=function(_0x1f90c5,_0x42fa9f){_0x1f90c5=_0x1f90c5-0x0;let _0x466943=a877_0x42fa[_0x1f90c5];return _0x466943;};const _0x462a6d=a877_0x4669;'use strict';const db=require(_0x462a6d('0x7'))['db'],logger=require(_0x462a6d('0x9'))(_0x462a6d('0x5')),trunks=[{'id':0x1,'name':'demo','secret':_0x462a6d('0x6'),'defaultuser':_0x462a6d('0xd'),'description':_0x462a6d('0xb')}];exports[_0x462a6d('0xc')]=function(){const _0x2ec92a=_0x462a6d;return db[_0x2ec92a('0xe')][_0x2ec92a('0xa')](trunks,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2ec92a('0x8')](function(){const _0x4468ab=_0x2ec92a;logger[_0x4468ab('0x2')](_0x4468ab('0x3'));})[_0x2ec92a('0x4')](function(){const _0x1270c8=_0x2ec92a;logger[_0x1270c8('0x0')](_0x1270c8('0x1'));});}; \ No newline at end of file diff --git a/server/config/seedDB/userProfiles.js b/server/config/seedDB/userProfiles.js index 202dd0d..0c827ac 100644 --- a/server/config/seedDB/userProfiles.js +++ b/server/config/seedDB/userProfiles.js @@ -1 +1 @@ -const a878_0x2d30=['bulkCreate','then','../../mysqldb','create','info','User\x20Profiles\x20have\x20been\x20created','app','Auto\x20generated\x20User\x20Profile','error','UserProfile','catch'];(function(_0x17930c,_0x2d30e6){const _0x14264b=function(_0x9abfa3){while(--_0x9abfa3){_0x17930c['push'](_0x17930c['shift']());}};_0x14264b(++_0x2d30e6);}(a878_0x2d30,0x111));const a878_0x1426=function(_0x17930c,_0x2d30e6){_0x17930c=_0x17930c-0x0;let _0x14264b=a878_0x2d30[_0x17930c];return _0x14264b;};const _0x217721=a878_0x1426;'use strict';const db=require(_0x217721('0x4'))['db'],logger=require('../logger')(_0x217721('0x8')),userProfiles=[{'id':0x1,'name':'Default','crudPermissions':['r','e','d'],'description':_0x217721('0x9')}];exports[_0x217721('0x5')]=function(){const _0x39e358=_0x217721;return db[_0x39e358('0x0')][_0x39e358('0x2')](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x39e358('0x3')](function(){const _0x1a4932=_0x39e358;logger[_0x1a4932('0x6')](_0x1a4932('0x7'));})[_0x39e358('0x1')](function(){const _0xd54091=_0x39e358;logger[_0xd54091('0xa')]('Can\x27t\x20create\x20User\x20Profiles');});}; \ No newline at end of file +const a878_0x49b4=['bulkCreate','create','then','User\x20Profiles\x20have\x20been\x20created','Auto\x20generated\x20User\x20Profile','Can\x27t\x20create\x20User\x20Profiles','info','catch','../../mysqldb','UserProfile'];(function(_0x1c813d,_0x49b421){const _0x5ab8df=function(_0x8ae9ec){while(--_0x8ae9ec){_0x1c813d['push'](_0x1c813d['shift']());}};_0x5ab8df(++_0x49b421);}(a878_0x49b4,0x11b));const a878_0x5ab8=function(_0x1c813d,_0x49b421){_0x1c813d=_0x1c813d-0x0;let _0x5ab8df=a878_0x49b4[_0x1c813d];return _0x5ab8df;};const _0x14ce2c=a878_0x5ab8;'use strict';const db=require(_0x14ce2c('0x5'))['db'],logger=require('../logger')('app'),userProfiles=[{'id':0x1,'name':'Default','crudPermissions':['r','e','d'],'description':_0x14ce2c('0x1')}];exports[_0x14ce2c('0x8')]=function(){const _0x180891=_0x14ce2c;return db[_0x180891('0x6')][_0x180891('0x7')](userProfiles,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x180891('0x9')](function(){const _0x5f3dc3=_0x180891;logger[_0x5f3dc3('0x3')](_0x5f3dc3('0x0'));})[_0x180891('0x4')](function(){const _0x5d5ef7=_0x180891;logger['error'](_0x5d5ef7('0x2'));});}; \ No newline at end of file diff --git a/server/config/seedDB/users.js b/server/config/seedDB/users.js index 72b2b4e..db560f8 100644 --- a/server/config/seedDB/users.js +++ b/server/config/seedDB/users.js @@ -1 +1 @@ -const a879_0x1eb1=['john.doe@xcally.com','../../mysqldb','agent\x20auto\x20generated','user\x20auto\x20generated','admin','then','John\x20Doe','Users\x20have\x20been\x20created','catch','shuttle55','101,102,103,113,110,104,105,106,107,108,109,100,111,114','../logger','jane.miller','create','agent','split','Jane\x20Miller','jane.miller@xcally.com','app','john.doe','Can\x27t\x20create\x20Users'];(function(_0x168953,_0x1eb18f){const _0x467d4a=function(_0x22388a){while(--_0x22388a){_0x168953['push'](_0x168953['shift']());}};_0x467d4a(++_0x1eb18f);}(a879_0x1eb1,0x1b0));const a879_0x467d=function(_0x168953,_0x1eb18f){_0x168953=_0x168953-0x0;let _0x467d4a=a879_0x1eb1[_0x168953];return _0x467d4a;};const _0x238de5=a879_0x467d;'use strict';const db=require(_0x238de5('0xa'))['db'],logger=require(_0x238de5('0x14'))(_0x238de5('0x6')),users=[{'id':0x1,'role':_0x238de5('0xd'),'name':_0x238de5('0xd'),'password':'password','fullname':'Administrator','email':'admin@xcally.com','internal':0x3e8,'description':_0x238de5('0xc')},{'id':0x2,'role':_0x238de5('0x2'),'name':_0x238de5('0x7'),'email':_0x238de5('0x9'),'password':_0x238de5('0x12'),'fullname':_0x238de5('0xf'),'internal':0x3e9,'permissions':_0x238de5('0x13')[_0x238de5('0x3')](','),'description':'agent\x20auto\x20generated'},{'id':0x3,'role':_0x238de5('0x2'),'name':_0x238de5('0x0'),'email':_0x238de5('0x5'),'password':_0x238de5('0x12'),'fullname':_0x238de5('0x4'),'internal':0x3ea,'permissions':_0x238de5('0x13')['split'](','),'description':_0x238de5('0xb')}];exports[_0x238de5('0x1')]=function(){const _0x48feba=_0x238de5;return db['User']['bulkCreate'](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x48feba('0xe')](function(){const _0x11d384=_0x48feba;logger['info'](_0x11d384('0x10'));})[_0x48feba('0x11')](function(_0x22388a){const _0x4b3eef=_0x48feba;logger['error'](_0x4b3eef('0x8'),_0x22388a);});}; \ No newline at end of file +const a879_0x2b5b=['agent','John\x20Doe','101,102,103,113,110,104,105,106,107,108,109,100,111,114','agent\x20auto\x20generated','then','Administrator','../logger','jane.miller@xcally.com','user\x20auto\x20generated','shuttle55','Jane\x20Miller','john.doe','admin','Users\x20have\x20been\x20created','info','../../mysqldb','User','Can\x27t\x20create\x20Users','catch','jane.miller','john.doe@xcally.com','create','split'];(function(_0xeeb18a,_0x2b5bbb){const _0xf15543=function(_0x52c2b7){while(--_0x52c2b7){_0xeeb18a['push'](_0xeeb18a['shift']());}};_0xf15543(++_0x2b5bbb);}(a879_0x2b5b,0x107));const a879_0xf155=function(_0xeeb18a,_0x2b5bbb){_0xeeb18a=_0xeeb18a-0x0;let _0xf15543=a879_0x2b5b[_0xeeb18a];return _0xf15543;};const _0x2e06b5=a879_0xf155;'use strict';const db=require(_0x2e06b5('0x5'))['db'],logger=require(_0x2e06b5('0x13'))('app'),users=[{'id':0x1,'role':'admin','name':_0x2e06b5('0x2'),'password':'password','fullname':_0x2e06b5('0x12'),'email':'admin@xcally.com','internal':0x3e8,'description':_0x2e06b5('0x15')},{'id':0x2,'role':_0x2e06b5('0xd'),'name':_0x2e06b5('0x1'),'email':_0x2e06b5('0xa'),'password':_0x2e06b5('0x16'),'fullname':_0x2e06b5('0xe'),'internal':0x3e9,'permissions':_0x2e06b5('0xf')[_0x2e06b5('0xc')](','),'description':_0x2e06b5('0x10')},{'id':0x3,'role':'agent','name':_0x2e06b5('0x9'),'email':_0x2e06b5('0x14'),'password':_0x2e06b5('0x16'),'fullname':_0x2e06b5('0x0'),'internal':0x3ea,'permissions':_0x2e06b5('0xf')['split'](','),'description':_0x2e06b5('0x10')}];exports[_0x2e06b5('0xb')]=function(){const _0x32b13a=_0x2e06b5;return db[_0x32b13a('0x6')]['bulkCreate'](users,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x32b13a('0x11')](function(){const _0x1d46d0=_0x32b13a;logger[_0x1d46d0('0x4')](_0x1d46d0('0x3'));})[_0x32b13a('0x8')](function(_0x52c2b7){const _0x1c3953=_0x32b13a;logger['error'](_0x1c3953('0x7'),_0x52c2b7);});}; \ No newline at end of file diff --git a/server/config/seedDB/variables.js b/server/config/seedDB/variables.js index 6d64e69..7db0321 100644 --- a/server/config/seedDB/variables.js +++ b/server/config/seedDB/variables.js @@ -1 +1 @@ -const a880_0x881f=['variable\x20for\x20db\x20query\x20result\x20auto\x20generated','CALLERID(name)','CALLERID(dnid)','VAR1','ORDER','LASTNAME','Can\x27t\x20create\x20Variables','CHOICE','PHONE','variable\x20number\x20of\x20the\x20caller\x20auto\x20generated','../logger','EMAIL','COUNTER','INPUT','variable\x20for\x20menu\x20auto\x20generated','variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated','OPTION','variable\x20for\x20rate\x20call\x20auto\x20generated','ORDERNUM','EXTRAVAR','generic\x20variable\x20auto\x20generated','CHANNEL(language)','Variable','variable\x20auto\x20generated','error','catch','FIRSTNAME','VAR3','RATE','then','CALLERID(num)','../../mysqldb','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated','app','bulkCreate','variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated'];(function(_0x25220f,_0x881feb){const _0x341067=function(_0x1b8a90){while(--_0x1b8a90){_0x25220f['push'](_0x25220f['shift']());}};_0x341067(++_0x881feb);}(a880_0x881f,0xd6));const a880_0x3410=function(_0x25220f,_0x881feb){_0x25220f=_0x25220f-0x0;let _0x341067=a880_0x881f[_0x25220f];return _0x341067;};const _0x5cfcb4=a880_0x3410;'use strict';const db=require(_0x5cfcb4('0x21'))['db'],logger=require(_0x5cfcb4('0xc'))(_0x5cfcb4('0x23')),variables=[{'id':0x1,'name':_0x5cfcb4('0x9'),'description':_0x5cfcb4('0x10')},{'id':0x2,'name':_0x5cfcb4('0x14'),'description':'variable\x20for\x20order\x20auto\x20generated'},{'id':0x3,'name':'DBRESULT','description':_0x5cfcb4('0x2')},{'id':0x4,'name':_0x5cfcb4('0x1e'),'description':_0x5cfcb4('0x13')},{'id':0x5,'name':_0x5cfcb4('0x4'),'description':'variable\x20dialed\x20number\x20identifier\x20auto\x20generated'},{'id':0x6,'name':_0x5cfcb4('0x3'),'description':_0x5cfcb4('0x22')},{'id':0x7,'name':_0x5cfcb4('0x20'),'description':_0x5cfcb4('0xb')},{'id':0x8,'name':_0x5cfcb4('0x17'),'description':'variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated'},{'id':0x9,'name':_0x5cfcb4('0xe'),'description':'variable\x20auto\x20generated'},{'id':0xa,'name':_0x5cfcb4('0xd'),'description':'variable\x20auto\x20generated'},{'id':0xb,'name':_0x5cfcb4('0x15'),'description':_0x5cfcb4('0x1')},{'id':0xc,'name':_0x5cfcb4('0x1c'),'description':_0x5cfcb4('0x19')},{'id':0xd,'name':_0x5cfcb4('0x7'),'description':_0x5cfcb4('0x19')},{'id':0xe,'name':_0x5cfcb4('0xf'),'description':_0x5cfcb4('0x19')},{'id':0xf,'name':_0x5cfcb4('0x12'),'description':_0x5cfcb4('0x19')},{'id':0x10,'name':_0x5cfcb4('0x6'),'description':_0x5cfcb4('0x19')},{'id':0x11,'name':_0x5cfcb4('0xa'),'description':'variable\x20auto\x20generated'},{'id':0x12,'name':'RESULT','description':_0x5cfcb4('0x19')},{'id':0x13,'name':'UNIQUEID','description':_0x5cfcb4('0x11')},{'id':0x14,'name':_0x5cfcb4('0x5'),'description':'generic\x20variable\x20auto\x20generated'},{'id':0x15,'name':'VAR2','description':_0x5cfcb4('0x16')},{'id':0x16,'name':_0x5cfcb4('0x1d'),'description':_0x5cfcb4('0x16')}];exports['create']=function(){const _0xdee4f5=_0x5cfcb4;return db[_0xdee4f5('0x18')][_0xdee4f5('0x0')](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0xdee4f5('0x1f')](function(){logger['info']('Variables\x20have\x20been\x20created');})[_0xdee4f5('0x1b')](function(){const _0x3cb9a6=_0xdee4f5;logger[_0x3cb9a6('0x1a')](_0x3cb9a6('0x8'));});}; \ No newline at end of file +const a880_0x414f=['CHOICE','VAR1','variable\x20for\x20rate\x20call\x20auto\x20generated','OPTION','VAR3','Can\x27t\x20create\x20Variables','VAR2','Variables\x20have\x20been\x20created','app','variable\x20select\x20a\x20natural\x20language\x20file\x20when\x20available\x20auto\x20generated','bulkCreate','DBRESULT','error','RESULT','PHONE','FIRSTNAME','CHANNEL(language)','../../mysqldb','variable\x20name\x20of\x20the\x20caller\x20auto\x20generated','CALLERID(name)','COUNTER','ORDER','CALLERID(num)','ORDERNUM','generic\x20variable\x20auto\x20generated','EMAIL','EXTRAVAR','variable\x20auto\x20generated','variable\x20for\x20menu\x20auto\x20generated'];(function(_0x3876db,_0x414f5a){const _0x71941c=function(_0x396bf5){while(--_0x396bf5){_0x3876db['push'](_0x3876db['shift']());}};_0x71941c(++_0x414f5a);}(a880_0x414f,0x8d));const a880_0x7194=function(_0x3876db,_0x414f5a){_0x3876db=_0x3876db-0x0;let _0x71941c=a880_0x414f[_0x3876db];return _0x71941c;};const _0x57342d=a880_0x7194;'use strict';const db=require(_0x57342d('0x15'))['db'],logger=require('../logger')(_0x57342d('0xc')),variables=[{'id':0x1,'name':_0x57342d('0x4'),'description':_0x57342d('0x3')},{'id':0x2,'name':_0x57342d('0x1b'),'description':'variable\x20for\x20order\x20auto\x20generated'},{'id':0x3,'name':_0x57342d('0xf'),'description':'variable\x20for\x20db\x20query\x20result\x20auto\x20generated'},{'id':0x4,'name':'RATE','description':_0x57342d('0x6')},{'id':0x5,'name':'CALLERID(dnid)','description':'variable\x20dialed\x20number\x20identifier\x20auto\x20generated'},{'id':0x6,'name':_0x57342d('0x17'),'description':_0x57342d('0x16')},{'id':0x7,'name':_0x57342d('0x1a'),'description':'variable\x20number\x20of\x20the\x20caller\x20auto\x20generated'},{'id':0x8,'name':_0x57342d('0x14'),'description':_0x57342d('0xd')},{'id':0x9,'name':_0x57342d('0x18'),'description':_0x57342d('0x2')},{'id':0xa,'name':_0x57342d('0x0'),'description':'variable\x20auto\x20generated'},{'id':0xb,'name':_0x57342d('0x1'),'description':'variable\x20useful\x20for\x20agent\x20popup\x20auto\x20generated'},{'id':0xc,'name':_0x57342d('0x13'),'description':_0x57342d('0x2')},{'id':0xd,'name':'LASTNAME','description':_0x57342d('0x2')},{'id':0xe,'name':'INPUT','description':_0x57342d('0x2')},{'id':0xf,'name':_0x57342d('0x7'),'description':_0x57342d('0x2')},{'id':0x10,'name':_0x57342d('0x19'),'description':_0x57342d('0x2')},{'id':0x11,'name':_0x57342d('0x12'),'description':_0x57342d('0x2')},{'id':0x12,'name':_0x57342d('0x11'),'description':'variable\x20auto\x20generated'},{'id':0x13,'name':'UNIQUEID','description':'variable\x20current\x20call\x20unique\x20identifier\x20auto\x20generated'},{'id':0x14,'name':_0x57342d('0x5'),'description':_0x57342d('0x1c')},{'id':0x15,'name':_0x57342d('0xa'),'description':_0x57342d('0x1c')},{'id':0x16,'name':_0x57342d('0x8'),'description':_0x57342d('0x1c')}];exports['create']=function(){const _0x480769=_0x57342d;return db['Variable'][_0x480769('0xe')](variables,{'ignoreDuplicates':!![],'individualHooks':!![]})['then'](function(){const _0x324a23=_0x480769;logger['info'](_0x324a23('0xb'));})['catch'](function(){const _0xcd21b5=_0x480769;logger[_0xcd21b5('0x10')](_0xcd21b5('0x9'));});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceContexts.js b/server/config/seedDB/voiceContexts.js index 3a4288c..4a5cde5 100644 --- a/server/config/seedDB/voiceContexts.js +++ b/server/config/seedDB/voiceContexts.js @@ -1 +1 @@ -const a881_0x36af=['\x20have\x20been\x20created','name','\x20context','outbound-fax','error','xcally-mixmonitor-context','../logger','findOrCreate','from-sip','VoiceContext','info','Can\x27t\x20create\x20','from-voicemail','inbound-fax','exports','app','Context\x20','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','from-voip-provider'];(function(_0x8738d9,_0x36afae){const _0x179f85=function(_0x331dd6){while(--_0x331dd6){_0x8738d9['push'](_0x8738d9['shift']());}};_0x179f85(++_0x36afae);}(a881_0x36af,0x72));const a881_0x179f=function(_0x8738d9,_0x36afae){_0x8738d9=_0x8738d9-0x0;let _0x179f85=a881_0x36af[_0x8738d9];return _0x179f85;};const _0x27d4d4=a881_0x179f;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x27d4d4('0x6'))(_0x27d4d4('0xf')),voiceContexts=[{'name':_0x27d4d4('0x8'),'description':_0x27d4d4('0x11'),'defaultEntry':!![]},{'name':_0x27d4d4('0x12'),'description':_0x27d4d4('0x11'),'defaultEntry':!![]},{'name':_0x27d4d4('0xd'),'description':_0x27d4d4('0x11'),'defaultEntry':!![]},{'name':_0x27d4d4('0x3'),'description':_0x27d4d4('0x11'),'defaultEntry':!![]},{'name':_0x27d4d4('0xc'),'description':_0x27d4d4('0x11'),'defaultEntry':!![]},{'name':_0x27d4d4('0x5'),'description':_0x27d4d4('0x11'),'defaultEntry':!![]}];async function create(){const _0x4664e6=_0x27d4d4;for(const _0x331dd6 of voiceContexts){try{const [,_0x19d6f1]=await db[_0x4664e6('0x9')][_0x4664e6('0x7')]({'where':{'name':_0x331dd6[_0x4664e6('0x1')]},'defaults':_0x331dd6});_0x19d6f1&&logger[_0x4664e6('0xa')](_0x4664e6('0x10')+_0x331dd6['name']+_0x4664e6('0x0'));}catch(_0x400421){logger[_0x4664e6('0x4')](_0x4664e6('0xb')+_0x331dd6[_0x4664e6('0x1')]+_0x4664e6('0x2'),_0x400421);}}}module[_0x27d4d4('0xe')]={'create':create}; \ No newline at end of file +const a881_0x2121=['\x20context','VoiceContext','outbound-fax','../../mysqldb','Can\x27t\x20create\x20','\x20have\x20been\x20created','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','xcally-mixmonitor-context','app','exports','from-sip','from-voip-provider','name','Context\x20','info','findOrCreate'];(function(_0x517da0,_0x2121c0){const _0x5af5be=function(_0x480567){while(--_0x480567){_0x517da0['push'](_0x517da0['shift']());}};_0x5af5be(++_0x2121c0);}(a881_0x2121,0xa4));const a881_0x5af5=function(_0x517da0,_0x2121c0){_0x517da0=_0x517da0-0x0;let _0x5af5be=a881_0x2121[_0x517da0];return _0x5af5be;};const _0xb4ef0a=a881_0x5af5;'use strict';const db=require(_0xb4ef0a('0xf'))['db'],logger=require('../logger')(_0xb4ef0a('0x4')),voiceContexts=[{'name':_0xb4ef0a('0x6'),'description':_0xb4ef0a('0x2'),'defaultEntry':!![]},{'name':_0xb4ef0a('0x7'),'description':_0xb4ef0a('0x2'),'defaultEntry':!![]},{'name':'inbound-fax','description':_0xb4ef0a('0x2'),'defaultEntry':!![]},{'name':_0xb4ef0a('0xe'),'description':_0xb4ef0a('0x2'),'defaultEntry':!![]},{'name':'from-voicemail','description':_0xb4ef0a('0x2'),'defaultEntry':!![]},{'name':_0xb4ef0a('0x3'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]}];async function create(){const _0x545ee2=_0xb4ef0a;for(const _0x480567 of voiceContexts){try{const [,_0x3b8241]=await db[_0x545ee2('0xd')][_0x545ee2('0xb')]({'where':{'name':_0x480567['name']},'defaults':_0x480567});_0x3b8241&&logger[_0x545ee2('0xa')](_0x545ee2('0x9')+_0x480567[_0x545ee2('0x8')]+_0x545ee2('0x1'));}catch(_0x1b9251){logger['error'](_0x545ee2('0x0')+_0x480567[_0x545ee2('0x8')]+_0x545ee2('0xc'),_0x1b9251);}}}module[_0xb4ef0a('0x5')]={'create':create}; \ No newline at end of file diff --git a/server/config/seedDB/voiceExtensions.js b/server/config/seedDB/voiceExtensions.js index 4a9d242..2e71e84 100644 --- a/server/config/seedDB/voiceExtensions.js +++ b/server/config/seedDB/voiceExtensions.js @@ -1 +1 @@ -const a882_0x5cec=['catch\x20all\x20inbound\x20calls\x20auto\x20generated','demo-congrats','Return','destroy','FAXOPT(headerinfo)=${XMF-HEADERINFO}','priority','appdata','XCALLY-MOTION-PROGRESS=0','${EXTEN:20},xX','catch','error','6000','CDR(type)=outbound-fax','VoiceExtension','CALLERID(all)=${XMD-CALLERID}','../logger','${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab','Answer','GotoIf','bulkCreate','_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}','Playback','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','Background','dialer\x20extensions\x20auto\x20generated','outboundrouteid=','create','Progress','CDR(type)=inbound','$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','FAXOPT(maxrate)=${XMF-MAXRATE}','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','Sales,xX,,,300,,,,,','forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated','app','inbound','$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11','demo-echodone','internal','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','Dial','then','sequelize','custom','xcally-motion-dialer','FAXOPT(t38timeout)=${XMF-T38TIMEOUT}','queue','Execif','6666','SendFax','FAXOPT(ecm)=${XMF-ECM}','Queue','system','echo\x20test\x20demo\x20auto\x20generated','outboundrouteid','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','CDR(type)=internal','lodash','_X.','failed','Echo','fax\x20extensions\x20auto\x20generated','forward\x20to\x20Orders\x20IVR\x20auto\x20generated','type','Set','exten','forward\x20to\x20CSI\x20IVR\x20auto\x20generated','$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10','xcally-motion-fax','Hangup','MixMonitor','6668','info','defaults','agi://127.0.0.1/square,AutoAttendant','6667','Can\x27t\x20create\x20Voice\x20Extensions','length','../../mysqldb','agi://127.0.0.1/square,CSI','AGI','Support,xX,,,300,,,,,','from-sip','_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].','Voice\x20Extensions\x20have\x20been\x20created','xcally-mixmonitor-context','agi','${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}','6670','6669','agi://127.0.0.1/square,Orders','${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}','CDR(type)=dialer','createAlways'];(function(_0x23a67b,_0x5cec3a){const _0x2d9f5a=function(_0x61d680){while(--_0x61d680){_0x23a67b['push'](_0x23a67b['shift']());}};_0x2d9f5a(++_0x5cec3a);}(a882_0x5cec,0x1eb));const a882_0x2d9f=function(_0x23a67b,_0x5cec3a){_0x23a67b=_0x23a67b-0x0;let _0x2d9f5a=a882_0x5cec[_0x23a67b];return _0x2d9f5a;};const _0x302ad5=a882_0x2d9f;'use strict';const _=require(_0x302ad5('0x24')),db=require(_0x302ad5('0x39'))['db'],{Op}=require(_0x302ad5('0x15')),logger=require(_0x302ad5('0x58'))(_0x302ad5('0xd')),applications={0x258:[{'app':_0x302ad5('0x2b'),'appdata':'CDR(type)=internal'},{'app':_0x302ad5('0x5a')},{'app':'Playback','appdata':'demo-echotest','isApp':!![]},{'app':_0x302ad5('0x27'),'isApp':!![]},{'app':_0x302ad5('0x0'),'appdata':_0x302ad5('0x10'),'isApp':!![]},{'app':'Hangup'}],0x1770:[{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x23')},{'app':_0x302ad5('0x5a')},{'app':_0x302ad5('0x1e'),'appdata':_0x302ad5('0x3c'),'appType':_0x302ad5('0x19'),'isApp':!![]},{'app':'Hangup'}],0x1771:[{'app':_0x302ad5('0x2b'),'appdata':'CDR(type)=internal'},{'app':_0x302ad5('0x5a')},{'app':'Queue','appdata':_0x302ad5('0xb'),'appType':'queue','isApp':!![]},{'app':'Hangup'}],0x1a0a:[{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x23')},{'app':_0x302ad5('0x3b'),'appdata':_0x302ad5('0x35'),'appType':_0x302ad5('0x41'),'isApp':!![]},{'app':_0x302ad5('0x30')}],0x1a0b:[{'app':'Set','appdata':_0x302ad5('0x23')},{'app':_0x302ad5('0x3b'),'appdata':_0x302ad5('0x45'),'appType':'agi','isApp':!![]},{'app':_0x302ad5('0x30')}],0x1a0c:[{'app':'Set','appdata':_0x302ad5('0x23')},{'app':_0x302ad5('0x3b'),'appdata':_0x302ad5('0x3a'),'appType':_0x302ad5('0x41'),'isApp':!![]},{'app':_0x302ad5('0x30')}],0x1a0d:[{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x23')},{'app':_0x302ad5('0x3b'),'appdata':'agi://127.0.0.1/square,Survey','appType':'agi','isApp':!![]},{'app':_0x302ad5('0x30')}],0x1a0e:[{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x23')},{'app':'AGI','appdata':'agi://127.0.0.1/square,AgentManagement','appType':_0x302ad5('0x41'),'isApp':!![]},{'app':_0x302ad5('0x30')}],'xcally-motion-dialer':[{'app':_0x302ad5('0x2b'),'appdata':'CDR(type)=dialer'},{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x57')},{'app':'GotoIf','appdata':_0x302ad5('0x8')},{'app':_0x302ad5('0x5a'),'appdata':''},{'app':_0x302ad5('0x2'),'appdata':'silence/1'},{'app':'AMD','appdata':_0x302ad5('0x42')},{'app':_0x302ad5('0x5b'),'appdata':'$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9'},{'app':_0x302ad5('0x5b'),'appdata':_0x302ad5('0x2e')},{'app':_0x302ad5('0x5b'),'appdata':_0x302ad5('0xf')},{'app':_0x302ad5('0x1a'),'appdata':_0x302ad5('0x12')},{'app':_0x302ad5('0x1a'),'appdata':_0x302ad5('0xa')},{'app':_0x302ad5('0x1a'),'appdata':_0x302ad5('0x1')},{'app':_0x302ad5('0x30')}],'xcally-motion-fax':[{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x55')},{'app':'Wait','appdata':'6'},{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x1d')},{'app':'Set','appdata':_0x302ad5('0x4d')},{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x22')},{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x9')},{'app':_0x302ad5('0x2b'),'appdata':'FAXOPT(minrate)=${XMF-MINRATE}'},{'app':_0x302ad5('0x2b'),'appdata':'FAXOPT(modem)=${XMF-MODEM}'},{'app':'Set','appdata':_0x302ad5('0x18')},{'app':_0x302ad5('0x1c'),'appdata':'${XMF-PATH},d'}],'xcally-motion-preview':[{'app':'Set','appdata':_0x302ad5('0x47')},{'app':'Set','appdata':_0x302ad5('0x57')},{'app':_0x302ad5('0x1a'),'appdata':_0x302ad5('0x12')},{'app':_0x302ad5('0x13'),'appdata':_0x302ad5('0x46')},{'app':'Execif','appdata':'$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})'},{'app':_0x302ad5('0x30')}],'_.':[{'app':'Set','appdata':'CDR(type)=outbound'},{'app':_0x302ad5('0x2b'),'appdata':'XCALLY-MOTION-ANSWER=0'},{'app':_0x302ad5('0x2b'),'appdata':_0x302ad5('0x50')},{'app':_0x302ad5('0x2b'),'appdata':'MONITOR_OPTIONS=ab'},{'app':_0x302ad5('0x2b'),'outboundrouteid':!![]},{'app':'Set','appdata':_0x302ad5('0x5d')},{'app':'Set','appdata':'_XCALLY_MIXMONITOR_FORMAT=wav'},{'app':_0x302ad5('0x0'),'appdata':_0x302ad5('0x4a'),'appType':_0x302ad5('0x16'),'isApp':!![]},{'app':_0x302ad5('0x30')}],'_X.':[{'app':'Set','appdata':_0x302ad5('0x7')},{'app':_0x302ad5('0x5a')},{'app':_0x302ad5('0x0'),'appdata':_0x302ad5('0x4a'),'isApp':!![]},{'app':_0x302ad5('0x30')}],'h':[{'app':_0x302ad5('0x30')}],'failed':[{'app':_0x302ad5('0x30')}]},voiceExtensions=[{'type':_0x302ad5('0x11'),'context':_0x302ad5('0x3d'),'exten':'600','description':_0x302ad5('0x20')},{'type':_0x302ad5('0x11'),'context':_0x302ad5('0x3d'),'exten':_0x302ad5('0x54'),'description':'forward\x20to\x20Support\x20queue\x20auto\x20generated'},{'type':_0x302ad5('0x11'),'context':_0x302ad5('0x3d'),'exten':'6001','description':'forward\x20to\x20Sales\x20queue\x20auto\x20generated'},{'type':_0x302ad5('0x11'),'context':_0x302ad5('0x3d'),'exten':_0x302ad5('0x1b'),'description':'forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated'},{'type':_0x302ad5('0x11'),'context':_0x302ad5('0x3d'),'exten':_0x302ad5('0x36'),'description':_0x302ad5('0x29')},{'type':_0x302ad5('0x11'),'context':'from-sip','exten':_0x302ad5('0x32'),'description':_0x302ad5('0x2d')},{'type':_0x302ad5('0x11'),'context':'from-sip','exten':_0x302ad5('0x44'),'description':'forward\x20to\x20Survey\x20IVR\x20auto\x20generated'},{'type':_0x302ad5('0x11'),'context':'from-sip','exten':_0x302ad5('0x43'),'description':_0x302ad5('0xc')},{'type':_0x302ad5('0x1f'),'context':_0x302ad5('0x3d'),'exten':_0x302ad5('0x17'),'description':_0x302ad5('0x3')},{'type':_0x302ad5('0x1f'),'context':'from-sip','exten':_0x302ad5('0x2f'),'description':_0x302ad5('0x28')},{'type':_0x302ad5('0x1f'),'context':_0x302ad5('0x3d'),'exten':'xcally-motion-preview','description':'dialer\x20extensions\x20auto\x20generated'},{'type':'outbound','context':'from-sip','exten':'_.','description':'demo\x20outbound\x20calls\x20auto\x20generated'},{'type':_0x302ad5('0xe'),'context':'from-voip-provider','exten':_0x302ad5('0x25'),'description':_0x302ad5('0x49')},{'type':_0x302ad5('0x1f'),'context':_0x302ad5('0x3d'),'exten':'h','description':'catch\x20hangup\x20event\x20auto\x20generated'},{'type':_0x302ad5('0x1f'),'context':_0x302ad5('0x3d'),'exten':_0x302ad5('0x26'),'description':'catch\x20failed\x20event\x20auto\x20generated'}],applicationsAlways={'s':[{'app':_0x302ad5('0x31'),'appdata':_0x302ad5('0x59')},{'app':_0x302ad5('0x4b')}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':_0x302ad5('0x6')},{'app':_0x302ad5('0x1e'),'appdata':_0x302ad5('0x51')}]},voiceExtensionsAlways=[{'type':_0x302ad5('0x1f'),'context':_0x302ad5('0x40'),'exten':'s'},{'type':_0x302ad5('0x1f'),'context':_0x302ad5('0x3d'),'exten':_0x302ad5('0x3e')}];function createExtensions(_0x61d680,_0x9cd1d4){const _0x1a1260=_0x302ad5;return db[_0x1a1260('0x56')][_0x1a1260('0x5c')](_0x61d680,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x1a1260('0x14')](function(_0x389650){const _0x477eb7=_0x1a1260;for(let _0x38e4e5=0x0;_0x38e4e5<_0x389650[_0x477eb7('0x38')];_0x38e4e5+=0x1){if(_0x9cd1d4[_0x389650[_0x38e4e5][_0x477eb7('0x2c')]])for(let _0xb690a7=0x0;_0xb690a7<_0x9cd1d4[_0x389650[_0x38e4e5]['exten']][_0x477eb7('0x38')];_0xb690a7+=0x1){_0x9cd1d4[_0x389650[_0x38e4e5][_0x477eb7('0x2c')]][_0xb690a7]['outboundrouteid']&&(_0x9cd1d4[_0x389650[_0x38e4e5][_0x477eb7('0x2c')]][_0xb690a7][_0x477eb7('0x4f')]=_0x477eb7('0x4')+_0x389650[_0x38e4e5]['id'],delete _0x9cd1d4[_0x389650[_0x38e4e5][_0x477eb7('0x2c')]][_0xb690a7][_0x477eb7('0x21')]),_0x9cd1d4[_0x389650[_0x38e4e5][_0x477eb7('0x2c')]][_0xb690a7]=_[_0x477eb7('0x34')](_0x9cd1d4[_0x389650[_0x38e4e5][_0x477eb7('0x2c')]][_0xb690a7],{'isApp':![],'appType':'custom','type':_0x389650[_0x38e4e5][_0x477eb7('0x2a')],'context':_0x389650[_0x38e4e5]['context'],'exten':_0x389650[_0x38e4e5][_0x477eb7('0x2c')],'priority':parseInt(_0x389650[_0x38e4e5][_0x477eb7('0x4e')],0xa)+0x1+_0xb690a7,'description':_0x389650[_0x38e4e5]['description'],'VoiceExtensionId':_0x389650[_0x38e4e5]['id']}),db[_0x477eb7('0x56')]['create'](_0x9cd1d4[_0x389650[_0x38e4e5]['exten']][_0xb690a7]);}}})[_0x1a1260('0x14')](function(){const _0x3d6ec3=_0x1a1260;logger[_0x3d6ec3('0x33')](_0x3d6ec3('0x3f'));})[_0x1a1260('0x52')](function(_0xbd4f60){const _0x2767ed=_0x1a1260;logger['error'](_0x2767ed('0x37'),_0xbd4f60);});}exports[_0x302ad5('0x5')]=function(){createExtensions(voiceExtensions,applications);},exports[_0x302ad5('0x48')]=function(){const _0x43ee85=_0x302ad5;return db[_0x43ee85('0x56')][_0x43ee85('0x4c')]({'where':{[Op['or']]:voiceExtensionsAlways}})[_0x43ee85('0x14')](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})[_0x43ee85('0x52')](function(_0x494710){const _0x54f3c6=_0x43ee85;logger[_0x54f3c6('0x53')](_0x54f3c6('0x37'),_0x494710);});}; \ No newline at end of file +const a882_0x4e5f=['exten','xcally-motion-fax','FAXOPT(maxrate)=${XMF-MAXRATE}','6000','CDR(type)=outbound','xcally-motion-dialer','description','then','outboundrouteid=','${XCALLY_MIXMONITOR_UNIQUEID}.${XCALLY_MIXMONITOR_FORMAT},ab','queue','$[\x22${XMD-AMD}\x22\x20!=\x20\x22NONE\x22\x20]?5:11','agi://127.0.0.1/square,AgentManagement','XCALLY-MOTION-PROGRESS=0','Answer','priority','_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].','$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})','CALLERID(all)=${XMD-CALLERID}','Background','Playback','destroy','MONITOR_OPTIONS=ab','agi','CDR(type)=dialer','VoiceExtension','FAXOPT(ecm)=${XMF-ECM}','MixMonitor','${XMF-PATH},d','Support,xX,,,300,,,,,','catch\x20all\x20inbound\x20calls\x20auto\x20generated','forward\x20to\x20Auto\x20Attendant\x20IVR\x20auto\x20generated','FAXOPT(headerinfo)=${XMF-HEADERINFO}','$[\x22${XMD-QUEUE}\x22\x20!=\x20\x22NONE\x22\x20]?QUEUE(${XMD-QUEUE})','context','Echo','dialer\x20extensions\x20auto\x20generated','from-voip-provider','error','CDR(type)=internal','inbound','6670','Queue','catch\x20hangup\x20event\x20auto\x20generated','create','silence/1','$[\x22${XMD-AGIAFTER}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGIAFTER})','custom','Execif','../../mysqldb','catch\x20failed\x20event\x20auto\x20generated','forward\x20to\x20Survey\x20IVR\x20auto\x20generated','appdata','length','AGI','Hangup','Return','internal','fax\x20extensions\x20auto\x20generated','6666','../logger','demo-echotest','catch','6001','AMD','Progress','from-sip','${EXTEN:20},xX','system','${XMD-DIALCHANNEL},${XMD-DIALTIMEOUT},${XMD-DIALOPTIONS},${XMD-DIALURL}','agi://127.0.0.1/square,Survey','$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?14:11','demo-echodone','Wait','FAXOPT(localstationid)=${XMF-LOCALSTATIONID}','FAXOPT(t38timeout)=${XMF-T38TIMEOUT}','agi://127.0.0.1/square,Orders','info','forward\x20to\x20Sales\x20queue\x20auto\x20generated','agi://127.0.0.1/square,AutoAttendant','6667','bulkCreate','XCALLY-MOTION-ANSWER=0','Can\x27t\x20create\x20Voice\x20Extensions','Voice\x20Extensions\x20have\x20been\x20created','outboundrouteid','GotoIf','$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10','_XCALLY_MIXMONITOR_FORMAT=wav','_X.','defaults','Sales,xX,,,300,,,,,','$[\x22${AMDSTATUS}\x22\x20==\x20\x22HUMAN\x22\x20]?11:9','Set','6668','${XMD-AMDINITIALSILENCE},${XMD-AMDGREETING},${XMD-AMDAFTERGREETINGSILENCE},${XMD-AMDTOTALANALYSISTIME},${XMD-AMDMINWORDLENGTH},${XMD-AMDBETWEENWORDSSILENCE},${XMD-AMDMAXIMUMNUMBEROFWORDS},${XMD-AMDSILENCETHRESHOLD},${XMD-AMDMAXIMUMWORDLENGTH}','agi://127.0.0.1/square,CSI','6669','outbound','forward\x20to\x20Agent\x20Management\x20IVR\x20auto\x20generated','xcally-motion-preview','FAXOPT(minrate)=${XMF-MINRATE}'];(function(_0x32df44,_0x4e5fff){const _0xcc5a66=function(_0x1dd325){while(--_0x1dd325){_0x32df44['push'](_0x32df44['shift']());}};_0xcc5a66(++_0x4e5fff);}(a882_0x4e5f,0xa6));const a882_0xcc5a=function(_0x32df44,_0x4e5fff){_0x32df44=_0x32df44-0x0;let _0xcc5a66=a882_0x4e5f[_0x32df44];return _0xcc5a66;};const _0x439b58=a882_0xcc5a;'use strict';const _=require('lodash'),db=require(_0x439b58('0x57'))['db'],{Op}=require('sequelize'),logger=require(_0x439b58('0x62'))('app'),applications={0x258:[{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x4d')},{'app':'Answer'},{'app':_0x439b58('0x3a'),'appdata':_0x439b58('0x63'),'isApp':!![]},{'app':_0x439b58('0x49'),'isApp':!![]},{'app':_0x439b58('0x3a'),'appdata':_0x439b58('0x8'),'isApp':!![]},{'app':_0x439b58('0x5d')}],0x1770:[{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x4d')},{'app':_0x439b58('0x34')},{'app':_0x439b58('0x50'),'appdata':_0x439b58('0x43'),'appType':'queue','isApp':!![]},{'app':_0x439b58('0x5d')}],0x1771:[{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x4d')},{'app':'Answer'},{'app':'Queue','appdata':_0x439b58('0x1b'),'appType':_0x439b58('0x30'),'isApp':!![]},{'app':_0x439b58('0x5d')}],0x1a0a:[{'app':'Set','appdata':_0x439b58('0x4d')},{'app':_0x439b58('0x5c'),'appdata':_0x439b58('0xf'),'appType':'agi','isApp':!![]},{'app':_0x439b58('0x5d')}],0x1a0b:[{'app':_0x439b58('0x1d'),'appdata':'CDR(type)=internal'},{'app':_0x439b58('0x5c'),'appdata':_0x439b58('0xc'),'appType':_0x439b58('0x3d'),'isApp':!![]},{'app':'Hangup'}],0x1a0c:[{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x4d')},{'app':_0x439b58('0x5c'),'appdata':_0x439b58('0x20'),'appType':_0x439b58('0x3d'),'isApp':!![]},{'app':'Hangup'}],0x1a0d:[{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x4d')},{'app':_0x439b58('0x5c'),'appdata':_0x439b58('0x6'),'appType':_0x439b58('0x3d'),'isApp':!![]},{'app':_0x439b58('0x5d')}],0x1a0e:[{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x4d')},{'app':_0x439b58('0x5c'),'appdata':_0x439b58('0x32'),'appType':_0x439b58('0x3d'),'isApp':!![]},{'app':'Hangup'}],'xcally-motion-dialer':[{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x3e')},{'app':_0x439b58('0x1d'),'appdata':'CALLERID(all)=${XMD-CALLERID}'},{'app':_0x439b58('0x16'),'appdata':_0x439b58('0x31')},{'app':_0x439b58('0x34'),'appdata':''},{'app':_0x439b58('0x39'),'appdata':_0x439b58('0x53')},{'app':_0x439b58('0x0'),'appdata':_0x439b58('0x1f')},{'app':_0x439b58('0x16'),'appdata':_0x439b58('0x1c')},{'app':_0x439b58('0x16'),'appdata':_0x439b58('0x17')},{'app':_0x439b58('0x16'),'appdata':_0x439b58('0x7')},{'app':_0x439b58('0x56'),'appdata':_0x439b58('0x37')},{'app':_0x439b58('0x56'),'appdata':_0x439b58('0x47')},{'app':_0x439b58('0x56'),'appdata':_0x439b58('0x54')},{'app':'Hangup'}],'xcally-motion-fax':[{'app':_0x439b58('0x1d'),'appdata':'CDR(type)=outbound-fax'},{'app':_0x439b58('0x9'),'appdata':'6'},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x40')},{'app':'Set','appdata':_0x439b58('0x46')},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0xa')},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x28')},{'app':'Set','appdata':_0x439b58('0x25')},{'app':'Set','appdata':'FAXOPT(modem)=${XMF-MODEM}'},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0xb')},{'app':'SendFax','appdata':_0x439b58('0x42')}],'xcally-motion-preview':[{'app':'Set','appdata':_0x439b58('0x3e')},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x38')},{'app':_0x439b58('0x56'),'appdata':_0x439b58('0x37')},{'app':'Dial','appdata':_0x439b58('0x5')},{'app':_0x439b58('0x56'),'appdata':_0x439b58('0x54')},{'app':_0x439b58('0x5d')}],'_.':[{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x2a')},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x12')},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x33')},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x3c')},{'app':'Set','outboundrouteid':!![]},{'app':_0x439b58('0x1d'),'appdata':'_XCALLY_MIXMONITOR_UNIQUEID=${UNIQUEID}'},{'app':_0x439b58('0x1d'),'appdata':_0x439b58('0x18')},{'app':_0x439b58('0x3a'),'appdata':'demo-congrats','appType':_0x439b58('0x55'),'isApp':!![]},{'app':_0x439b58('0x5d')}],'_X.':[{'app':_0x439b58('0x1d'),'appdata':'CDR(type)=inbound'},{'app':'Answer'},{'app':_0x439b58('0x3a'),'appdata':'demo-congrats','isApp':!![]},{'app':_0x439b58('0x5d')}],'h':[{'app':_0x439b58('0x5d')}],'failed':[{'app':_0x439b58('0x5d')}]},voiceExtensions=[{'type':_0x439b58('0x5f'),'context':_0x439b58('0x2'),'exten':'600','description':'echo\x20test\x20demo\x20auto\x20generated'},{'type':'internal','context':_0x439b58('0x2'),'exten':_0x439b58('0x29'),'description':'forward\x20to\x20Support\x20queue\x20auto\x20generated'},{'type':'internal','context':'from-sip','exten':_0x439b58('0x65'),'description':_0x439b58('0xe')},{'type':_0x439b58('0x5f'),'context':_0x439b58('0x2'),'exten':_0x439b58('0x61'),'description':_0x439b58('0x45')},{'type':_0x439b58('0x5f'),'context':_0x439b58('0x2'),'exten':_0x439b58('0x10'),'description':'forward\x20to\x20Orders\x20IVR\x20auto\x20generated'},{'type':'internal','context':'from-sip','exten':_0x439b58('0x1e'),'description':'forward\x20to\x20CSI\x20IVR\x20auto\x20generated'},{'type':_0x439b58('0x5f'),'context':_0x439b58('0x2'),'exten':_0x439b58('0x21'),'description':_0x439b58('0x59')},{'type':_0x439b58('0x5f'),'context':_0x439b58('0x2'),'exten':_0x439b58('0x4f'),'description':_0x439b58('0x23')},{'type':_0x439b58('0x4'),'context':'from-sip','exten':_0x439b58('0x2b'),'description':_0x439b58('0x4a')},{'type':_0x439b58('0x4'),'context':_0x439b58('0x2'),'exten':_0x439b58('0x27'),'description':_0x439b58('0x60')},{'type':_0x439b58('0x4'),'context':'from-sip','exten':_0x439b58('0x24'),'description':'dialer\x20extensions\x20auto\x20generated'},{'type':_0x439b58('0x22'),'context':_0x439b58('0x2'),'exten':'_.','description':'demo\x20outbound\x20calls\x20auto\x20generated'},{'type':_0x439b58('0x4e'),'context':_0x439b58('0x4b'),'exten':_0x439b58('0x19'),'description':_0x439b58('0x44')},{'type':_0x439b58('0x4'),'context':'from-sip','exten':'h','description':_0x439b58('0x51')},{'type':_0x439b58('0x4'),'context':'from-sip','exten':'failed','description':_0x439b58('0x58')}],applicationsAlways={'s':[{'app':_0x439b58('0x41'),'appdata':_0x439b58('0x2f')},{'app':_0x439b58('0x5e')}],'_[x][c][a][l][l][y][Q][u][e][u][e][E][x][t][e][n][s][i][o][n].':[{'app':_0x439b58('0x1')},{'app':_0x439b58('0x50'),'appdata':_0x439b58('0x3')}]},voiceExtensionsAlways=[{'type':_0x439b58('0x4'),'context':'xcally-mixmonitor-context','exten':'s'},{'type':_0x439b58('0x4'),'context':_0x439b58('0x2'),'exten':_0x439b58('0x36')}];function createExtensions(_0x1dd325,_0x549bb6){const _0x3bca03=_0x439b58;return db[_0x3bca03('0x3f')][_0x3bca03('0x11')](_0x1dd325,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x3bca03('0x2d')](function(_0x1c520a){const _0x50c836=_0x3bca03;for(let _0x47803a=0x0;_0x47803a<_0x1c520a[_0x50c836('0x5b')];_0x47803a+=0x1){if(_0x549bb6[_0x1c520a[_0x47803a][_0x50c836('0x26')]])for(let _0x3c8eca=0x0;_0x3c8eca<_0x549bb6[_0x1c520a[_0x47803a]['exten']][_0x50c836('0x5b')];_0x3c8eca+=0x1){_0x549bb6[_0x1c520a[_0x47803a][_0x50c836('0x26')]][_0x3c8eca][_0x50c836('0x15')]&&(_0x549bb6[_0x1c520a[_0x47803a]['exten']][_0x3c8eca][_0x50c836('0x5a')]=_0x50c836('0x2e')+_0x1c520a[_0x47803a]['id'],delete _0x549bb6[_0x1c520a[_0x47803a][_0x50c836('0x26')]][_0x3c8eca][_0x50c836('0x15')]),_0x549bb6[_0x1c520a[_0x47803a][_0x50c836('0x26')]][_0x3c8eca]=_[_0x50c836('0x1a')](_0x549bb6[_0x1c520a[_0x47803a][_0x50c836('0x26')]][_0x3c8eca],{'isApp':![],'appType':_0x50c836('0x55'),'type':_0x1c520a[_0x47803a]['type'],'context':_0x1c520a[_0x47803a][_0x50c836('0x48')],'exten':_0x1c520a[_0x47803a]['exten'],'priority':parseInt(_0x1c520a[_0x47803a][_0x50c836('0x35')],0xa)+0x1+_0x3c8eca,'description':_0x1c520a[_0x47803a][_0x50c836('0x2c')],'VoiceExtensionId':_0x1c520a[_0x47803a]['id']}),db[_0x50c836('0x3f')][_0x50c836('0x52')](_0x549bb6[_0x1c520a[_0x47803a]['exten']][_0x3c8eca]);}}})[_0x3bca03('0x2d')](function(){const _0x2c4f31=_0x3bca03;logger[_0x2c4f31('0xd')](_0x2c4f31('0x14'));})[_0x3bca03('0x64')](function(_0x1d887d){const _0x20bb8d=_0x3bca03;logger[_0x20bb8d('0x4c')](_0x20bb8d('0x13'),_0x1d887d);});}exports[_0x439b58('0x52')]=function(){createExtensions(voiceExtensions,applications);},exports['createAlways']=function(){const _0x155ed6=_0x439b58;return db[_0x155ed6('0x3f')][_0x155ed6('0x3b')]({'where':{[Op['or']]:voiceExtensionsAlways}})[_0x155ed6('0x2d')](function(){createExtensions(voiceExtensionsAlways,applicationsAlways);})[_0x155ed6('0x64')](function(_0x1316e6){const _0x1b1e18=_0x155ed6;logger['error'](_0x1b1e18('0x13'),_0x1316e6);});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceMusicOnHold.js b/server/config/seedDB/voiceMusicOnHold.js index 5fffcdf..aa1fa30 100644 --- a/server/config/seedDB/voiceMusicOnHold.js +++ b/server/config/seedDB/voiceMusicOnHold.js @@ -1 +1 @@ -const a883_0xf563=['files','create','../logger','bulkCreate','wait\x20moh\x20auto\x20generated','then','../../mysqldb','wav','/var/opt/motion2/server/files/moh/wait/','random','Music\x20on\x20hold\x20have\x20been\x20created','noice','catch','VoiceMusicOnHold'];(function(_0x3684ff,_0xf5637){const _0x1576ba=function(_0x2203ee){while(--_0x2203ee){_0x3684ff['push'](_0x3684ff['shift']());}};_0x1576ba(++_0xf5637);}(a883_0xf563,0xfc));const a883_0x1576=function(_0x3684ff,_0xf5637){_0x3684ff=_0x3684ff-0x0;let _0x1576ba=a883_0xf563[_0x3684ff];return _0x1576ba;};const _0x36613b=a883_0x1576;'use strict';const db=require(_0x36613b('0x6'))['db'],logger=require(_0x36613b('0x2'))('app'),voiceMusicOnHold=[{'id':0x1,'name':'default','directory':'/var/lib/asterisk/moh/','mode':_0x36613b('0x0'),'sort':_0x36613b('0x9'),'format':_0x36613b('0x7'),'defaultEntry':!![],'description':'default\x20moh\x20auto\x20generated'},{'id':0x2,'name':_0x36613b('0xb'),'directory':'/var/opt/motion2/server/files/moh/noice/','mode':_0x36613b('0x0'),'sort':'random','format':_0x36613b('0x7'),'defaultEntry':!![],'description':'noice\x20moh\x20auto\x20generated'},{'id':0x3,'name':'wait','directory':_0x36613b('0x8'),'mode':_0x36613b('0x0'),'sort':_0x36613b('0x9'),'format':_0x36613b('0x7'),'defaultEntry':!![],'description':_0x36613b('0x4')}];exports[_0x36613b('0x1')]=function(){const _0x2d2a83=_0x36613b;return db[_0x2d2a83('0xd')][_0x2d2a83('0x3')](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x2d2a83('0x5')](function(){const _0x1e8b8b=_0x2d2a83;logger['info'](_0x1e8b8b('0xa'));})[_0x2d2a83('0xc')](function(){logger['error']('Can\x27t\x20create\x20Music\x20on\x20hold');});}; \ No newline at end of file +const a883_0x4e11=['create','info','Can\x27t\x20create\x20Music\x20on\x20hold','wav','wait','random','noice','default\x20moh\x20auto\x20generated','catch','VoiceMusicOnHold','/var/opt/motion2/server/files/moh/wait/','noice\x20moh\x20auto\x20generated','error','wait\x20moh\x20auto\x20generated','Music\x20on\x20hold\x20have\x20been\x20created','/var/lib/asterisk/moh/','files','bulkCreate','../../mysqldb','default','then'];(function(_0x1777f4,_0x4e117d){const _0x47411e=function(_0x44e8fc){while(--_0x44e8fc){_0x1777f4['push'](_0x1777f4['shift']());}};_0x47411e(++_0x4e117d);}(a883_0x4e11,0xd1));const a883_0x4741=function(_0x1777f4,_0x4e117d){_0x1777f4=_0x1777f4-0x0;let _0x47411e=a883_0x4e11[_0x1777f4];return _0x47411e;};const _0x5b12f6=a883_0x4741;'use strict';const db=require(_0x5b12f6('0x13'))['db'],logger=require('../logger')('app'),voiceMusicOnHold=[{'id':0x1,'name':_0x5b12f6('0x14'),'directory':_0x5b12f6('0x10'),'mode':'files','sort':_0x5b12f6('0x6'),'format':_0x5b12f6('0x4'),'defaultEntry':!![],'description':_0x5b12f6('0x8')},{'id':0x2,'name':_0x5b12f6('0x7'),'directory':'/var/opt/motion2/server/files/moh/noice/','mode':_0x5b12f6('0x11'),'sort':_0x5b12f6('0x6'),'format':_0x5b12f6('0x4'),'defaultEntry':!![],'description':_0x5b12f6('0xc')},{'id':0x3,'name':_0x5b12f6('0x5'),'directory':_0x5b12f6('0xb'),'mode':_0x5b12f6('0x11'),'sort':_0x5b12f6('0x6'),'format':_0x5b12f6('0x4'),'defaultEntry':!![],'description':_0x5b12f6('0xe')}];exports[_0x5b12f6('0x1')]=function(){const _0x576af0=_0x5b12f6;return db[_0x576af0('0xa')][_0x576af0('0x12')](voiceMusicOnHold,{'ignoreDuplicates':!![],'individualHooks':!![]})[_0x576af0('0x0')](function(){const _0x43bc5d=_0x576af0;logger[_0x43bc5d('0x2')](_0x43bc5d('0xf'));})[_0x576af0('0x9')](function(){const _0x2d03f7=_0x576af0;logger[_0x2d03f7('0xd')](_0x2d03f7('0x3'));});}; \ No newline at end of file diff --git a/server/config/seedDB/voiceQueues.js b/server/config/seedDB/voiceQueues.js index 6997197..c25dc9b 100644 --- a/server/config/seedDB/voiceQueues.js +++ b/server/config/seedDB/voiceQueues.js @@ -1 +1 @@ -const a884_0x17cd=['outbound','info','Survey','noice','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','addTeams','inbound\x20voice\x20queue\x20auto\x20generated','exports','error','addBlackLists','addLists','Support','ringall','wait','rrmemory','CallbackCampaign','Voice\x20Queues\x20have\x20been\x20created','VoiceQueue','Sales','type','../logger','app','findAll','addAgents','../../mysqldb','Can\x27t\x20create\x20Voice\x20Queues'];(function(_0x32bac4,_0x17cd19){const _0x286d27=function(_0xba714e){while(--_0xba714e){_0x32bac4['push'](_0x32bac4['shift']());}};_0x286d27(++_0x17cd19);}(a884_0x17cd,0xe3));const a884_0x286d=function(_0x32bac4,_0x17cd19){_0x32bac4=_0x32bac4-0x0;let _0x286d27=a884_0x17cd[_0x32bac4];return _0x286d27;};const _0x15706b=a884_0x286d;'use strict';const db=require(_0x15706b('0x5'))['db'],logger=require(_0x15706b('0x1'))(_0x15706b('0x2')),voiceQueues=[{'id':0x1,'type':'inbound','name':_0x15706b('0x12'),'strategy':_0x15706b('0x13'),'musiconhold':_0x15706b('0x14'),'description':'inbound\x20voice\x20queue\x20auto\x20generated'},{'id':0x2,'type':'inbound','name':_0x15706b('0x19'),'strategy':_0x15706b('0x13'),'musiconhold':_0x15706b('0x14'),'description':_0x15706b('0xd')},{'id':0x3,'type':_0x15706b('0x7'),'name':_0x15706b('0x9'),'strategy':_0x15706b('0x15'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x15706b('0xa'),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x4,'type':_0x15706b('0x7'),'name':'Telemarketing','strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x15706b('0xa'),'description':_0x15706b('0xb')},{'id':0x5,'type':_0x15706b('0x7'),'name':_0x15706b('0x16'),'strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x15706b('0xa'),'description':_0x15706b('0xb')}];async function create(){const _0x3e1e53=_0x15706b;try{await db[_0x3e1e53('0x18')]['bulkCreate'](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0xba714e=await db[_0x3e1e53('0x18')][_0x3e1e53('0x3')]();for(const _0x3f21f4 of _0xba714e){await _0x3f21f4[_0x3e1e53('0x4')]([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x3f21f4[_0x3e1e53('0xc')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x3f21f4[_0x3e1e53('0x0')]===_0x3e1e53('0x7')&&_0x3f21f4['id']!==0x5&&(await _0x3f21f4['addLists']([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x3f21f4[_0x3e1e53('0x10')]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x3f21f4['id']===0x5&&await _0x3f21f4[_0x3e1e53('0x11')]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger[_0x3e1e53('0x8')](_0x3e1e53('0x17'));}catch(_0x57828e){logger[_0x3e1e53('0xf')](_0x3e1e53('0x6'),_0x57828e);throw _0x57828e;}}module[_0x15706b('0xe')]={'create':create}; \ No newline at end of file +const a884_0x3ee0=['outbound','inbound','addTeams','Telemarketing','VoiceQueue','outbound\x20voice\x20queue\x20campaign\x20auto\x20generated','inbound\x20voice\x20queue\x20auto\x20generated','findAll','addLists','addBlackLists','../../mysqldb','../logger','info','noice','bulkCreate','addAgents','wait','Sales','CallbackCampaign','Support','error','rrmemory'];(function(_0x1c9515,_0x3ee055){const _0x293542=function(_0x4a82af){while(--_0x4a82af){_0x1c9515['push'](_0x1c9515['shift']());}};_0x293542(++_0x3ee055);}(a884_0x3ee0,0x1ef));const a884_0x2935=function(_0x1c9515,_0x3ee055){_0x1c9515=_0x1c9515-0x0;let _0x293542=a884_0x3ee0[_0x1c9515];return _0x293542;};const _0x408b41=a884_0x2935;'use strict';const db=require(_0x408b41('0x15'))['db'],logger=require(_0x408b41('0x0'))('app'),voiceQueues=[{'id':0x1,'type':_0x408b41('0xc'),'name':_0x408b41('0x8'),'strategy':'ringall','musiconhold':_0x408b41('0x5'),'description':_0x408b41('0x11')},{'id':0x2,'type':'inbound','name':_0x408b41('0x6'),'strategy':'ringall','musiconhold':'wait','description':_0x408b41('0x11')},{'id':0x3,'type':_0x408b41('0xb'),'name':'Survey','strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x408b41('0x2'),'description':'outbound\x20voice\x20queue\x20campaign\x20auto\x20generated'},{'id':0x4,'type':_0x408b41('0xb'),'name':_0x408b41('0xe'),'strategy':_0x408b41('0xa'),'TrunkId':0x1,'IntervalId':0x1,'musiconhold':'noice','description':_0x408b41('0x10')},{'id':0x5,'type':_0x408b41('0xb'),'name':_0x408b41('0x7'),'strategy':'rrmemory','TrunkId':0x1,'IntervalId':0x1,'musiconhold':_0x408b41('0x2'),'description':_0x408b41('0x10')}];async function create(){const _0x15d6a4=_0x408b41;try{await db[_0x15d6a4('0xf')][_0x15d6a4('0x3')](voiceQueues,{'ignoreDuplicates':!![],'individualHooks':!![]});const _0x4a82af=await db[_0x15d6a4('0xf')][_0x15d6a4('0x12')]();for(const _0x2e4448 of _0x4a82af){await _0x2e4448[_0x15d6a4('0x4')]([0x2,0x3],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x2e4448[_0x15d6a4('0xd')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),_0x2e4448['type']===_0x15d6a4('0xb')&&_0x2e4448['id']!==0x5&&(await _0x2e4448[_0x15d6a4('0x13')]([0x1],{'ignoreDuplicates':!![],'individualHooks':!![]}),await _0x2e4448[_0x15d6a4('0x14')]([0x2],{'ignoreDuplicates':!![],'individualHooks':!![]})),_0x2e4448['id']===0x5&&await _0x2e4448[_0x15d6a4('0x13')]([0x3],{'ignoreDuplicates':!![],'individualHooks':!![]});}logger[_0x15d6a4('0x1')]('Voice\x20Queues\x20have\x20been\x20created');}catch(_0x45df75){logger[_0x15d6a4('0x9')]('Can\x27t\x20create\x20Voice\x20Queues',_0x45df75);throw _0x45df75;}}module['exports']={'create':create}; \ No newline at end of file diff --git a/server/config/seedUsers.js b/server/config/seedUsers.js index 0c47038..413d52b 100644 --- a/server/config/seedUsers.js +++ b/server/config/seedUsers.js @@ -1 +1 @@ -const a885_0x5491=['password','yes','%s%s','ulaw','wss','all','format','friend','util','add\x20user','User','\x22%s\x22\x20<%s>','then','agent','log','catch','udp','bulkCreate','actpass','%s%s@xcally.com'];(function(_0x4ee075,_0x549153){const _0x1926dd=function(_0x2a2021){while(--_0x2a2021){_0x4ee075['push'](_0x4ee075['shift']());}};_0x1926dd(++_0x549153);}(a885_0x5491,0x119));const a885_0x1926=function(_0x4ee075,_0x549153){_0x4ee075=_0x4ee075-0x0;let _0x1926dd=a885_0x5491[_0x4ee075];return _0x1926dd;};const _0x1b723c=a885_0x1926;'use strict';const util=require(_0x1b723c('0x7')),db=require('../mysqldb')['db'],users=[];for(let i=0x1;i<=0xc8;i+=0x1){users['push']({'name':util['format'](_0x1b723c('0x1'),_0x1b723c('0xc'),i),'fullname':util[_0x1b723c('0x5')](_0x1b723c('0x1'),_0x1b723c('0xc'),i),'email':util['format'](_0x1b723c('0x12'),_0x1b723c('0xc'),i),'role':_0x1b723c('0xc'),'password':_0x1b723c('0x13'),'internal':0xfa0+i,'type':_0x1b723c('0x6'),'transport':[_0x1b723c('0xf'),'ws',_0x1b723c('0x3')],'disallow':[_0x1b723c('0x4')],'allow':[_0x1b723c('0x2')],'defaultuser':util[_0x1b723c('0x5')]('%s%s',_0x1b723c('0xc'),i),'encryption':_0x1b723c('0x0'),'avpf':'yes','force_avp':'yes','icesupport':_0x1b723c('0x0'),'dtlsenable':_0x1b723c('0x0'),'dtlsverify':'no','dtlscertfile':'/etc/pki/tls/certs/motion.crt','dtlsprivatekey':'/etc/pki/tls/private/motion.key','dtlssetup':_0x1b723c('0x11'),'callerid':util[_0x1b723c('0x5')](_0x1b723c('0xa'),util[_0x1b723c('0x5')]('%s%s','agent',i),0xfa0+i)});}db[_0x1b723c('0x9')][_0x1b723c('0x10')](users)[_0x1b723c('0xb')](function(){const _0x5c2e18=_0x1b723c;console['log'](_0x5c2e18('0x8'));})[_0x1b723c('0xe')](function(_0x2a2021){const _0x210a8c=_0x1b723c;console[_0x210a8c('0xd')](_0x2a2021);}); \ No newline at end of file +const a885_0x25a2=['User','/etc/pki/tls/certs/motion.crt','catch','yes','log','%s%s','util','bulkCreate','agent','%s%s@xcally.com','format','udp','password','\x22%s\x22\x20<%s>','add\x20user','all','/etc/pki/tls/private/motion.key','then','actpass','../mysqldb','ulaw','push'];(function(_0x8d8a7f,_0x25a262){const _0x118e07=function(_0x2f22a4){while(--_0x2f22a4){_0x8d8a7f['push'](_0x8d8a7f['shift']());}};_0x118e07(++_0x25a262);}(a885_0x25a2,0x19b));const a885_0x118e=function(_0x8d8a7f,_0x25a262){_0x8d8a7f=_0x8d8a7f-0x0;let _0x118e07=a885_0x25a2[_0x8d8a7f];return _0x118e07;};const _0x49d79e=a885_0x118e;'use strict';const util=require(_0x49d79e('0xd')),db=require(_0x49d79e('0x4'))['db'],users=[];for(let i=0x1;i<=0xc8;i+=0x1){users[_0x49d79e('0x6')]({'name':util[_0x49d79e('0x11')](_0x49d79e('0xc'),'agent',i),'fullname':util['format'](_0x49d79e('0xc'),_0x49d79e('0xf'),i),'email':util[_0x49d79e('0x11')](_0x49d79e('0x10'),'agent',i),'role':_0x49d79e('0xf'),'password':_0x49d79e('0x13'),'internal':0xfa0+i,'type':'friend','transport':[_0x49d79e('0x12'),'ws','wss'],'disallow':[_0x49d79e('0x0')],'allow':[_0x49d79e('0x5')],'defaultuser':util[_0x49d79e('0x11')](_0x49d79e('0xc'),'agent',i),'encryption':_0x49d79e('0xa'),'avpf':_0x49d79e('0xa'),'force_avp':_0x49d79e('0xa'),'icesupport':'yes','dtlsenable':'yes','dtlsverify':'no','dtlscertfile':_0x49d79e('0x8'),'dtlsprivatekey':_0x49d79e('0x1'),'dtlssetup':_0x49d79e('0x3'),'callerid':util[_0x49d79e('0x11')](_0x49d79e('0x14'),util['format'](_0x49d79e('0xc'),_0x49d79e('0xf'),i),0xfa0+i)});}db[_0x49d79e('0x7')][_0x49d79e('0xe')](users)[_0x49d79e('0x2')](function(){const _0x52ac7c=_0x49d79e;console[_0x52ac7c('0xb')](_0x52ac7c('0x15'));})[_0x49d79e('0x9')](function(_0x2f22a4){const _0x1dcff=_0x49d79e;console[_0x1dcff('0xb')](_0x2f22a4);}); \ No newline at end of file diff --git a/server/config/socketio.js b/server/config/socketio.js index b32d760..ff5e960 100644 --- a/server/config/socketio.js +++ b/server/config/socketio.js @@ -1 +1 @@ -const a886_0x27fb=['removeWhatsappInteractions','query','resourceId','telephone:%s','user','getFaxQueues','MailQueue','role','undefined','removeSmsInteractions','campaign:%s:%s','address','WhatsappQueue','mail','request','setMaxListeners','getWhatsappQueues','user_has_openchannel_interactions:remove','include','type','telephone','WhatsappQueues','CONNECTED','getMailQueues','user:%s','nsp','removeFaxInteractions','voice:outbound','Trunks','log','SocketIO\x20','ChatInteractions','ivr','fax','voice:inbound','WhatsappInteraction','SmsQueues','default','SmsQueue','FaxQueue','agent','Trunk','removeChatInteractions','name','user_has_fax_interactions:remove','OpenchannelInteractions','getVoiceQueues','user_has_mail_interactions:remove','remoteAddress','all','emit','DISCONNECTED','OpenchannelQueues','user_has_whatsapp_interactions:remove','autoAssociation','VoiceQueues','openchannel','FaxInteractions','ChatQueue','ChatInteraction','connectedAt','join','voice','OpenchannelQueue','UserProfileSection','format','admin','getChatQueues','map','MailQueues','IvrCampaigns','ChatQueues','WhatsappInteractions','Agents','findAll','Telephones','User','handshake','userProfileId','VoiceQueue','then','Campaign','leave','chat','FaxQueues','user_has_sms_interactions:remove','connection','MailInteractions','getOpenchannelQueues','removeMailInteractions','length','push','SmsInteraction'];(function(_0x2daf3a,_0x27fb3b){const _0x294277=function(_0xb41a09){while(--_0xb41a09){_0x2daf3a['push'](_0x2daf3a['shift']());}};_0x294277(++_0x27fb3b);}(a886_0x27fb,0x15d));const a886_0x2942=function(_0x2daf3a,_0x27fb3b){_0x2daf3a=_0x2daf3a-0x0;let _0x294277=a886_0x27fb[_0x2daf3a];return _0x294277;};const _0x439a9c=a886_0x2942;'use strict';const _=require('lodash'),util=require('util'),db=require('../mysqldb')['db'],queryQueues={'attributes':['id',_0x439a9c('0x42')],'include':[{'as':_0x439a9c('0x3'),'model':db[_0x439a9c('0x6')],'attributes':['id',_0x439a9c('0x42'),_0x439a9c('0x1e')],'raw':!![],'where':{'role':_0x439a9c('0x3f')},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id',_0x439a9c('0x42')],'where':{'role':_0x439a9c('0x2b')}},queryTrunks={'raw':!![],'attributes':['id','name']},queryAgents={'raw':!![],'attributes':['id','name'],'where':{'role':_0x439a9c('0x3f')}},queryCampaigns={'raw':!![],'attributes':['id','name','type'],'where':{'type':_0x439a9c('0x37')}};function getAssociatedResources(_0xb41a09,_0x3ab220,_0x46fa45){const _0x448a84=_0x439a9c;return db[_0x448a84('0x57')]['findOne']({'where':{'name':_0xb41a09,'userProfileId':_0x3ab220},'raw':!![]})[_0x448a84('0xa')](function(_0x336ed5){const _0x5c9a22=_0x448a84;if(_0x336ed5){if(_0x336ed5[_0x5c9a22('0x4d')]){let _0x7fff29;switch(_0xb41a09){case'VoiceQueues':case _0x5c9a22('0x1'):case _0x5c9a22('0xe'):case _0x5c9a22('0x3b'):case _0x5c9a22('0x5c'):case _0x5c9a22('0x4b'):case _0x5c9a22('0x2c'):_0x7fff29=queryQueues;break;case _0x5c9a22('0x5'):_0x7fff29=queryTelephones;break;case _0x5c9a22('0x33'):_0x7fff29=queryTrunks;break;case _0x5c9a22('0x0'):_0x7fff29=queryCampaigns;break;default:break;}return _0x7fff29?db[_0x46fa45]['findAll'](_0x7fff29):_0x7fff29;}else return db['UserProfileResource']['findAll']({'attributes':[_0x5c9a22('0x19')],'where':{'sectionId':_0x336ed5['id']},'raw':!![]})[_0x5c9a22('0xa')](function(_0x42c759){const _0x1de84a=_0x5c9a22;if(_0x42c759){const _0x2f3203={'where':{'id':_[_0x1de84a('0x5b')](_0x42c759,'resourceId')},'raw':!![]};switch(_0x46fa45){case _0x1de84a('0x6'):_0x2f3203['where'][_0x1de84a('0x1e')]=_0x1de84a('0x2b');break;case _0x1de84a('0xb'):_0x2f3203['where']['type']=_0x1de84a('0x37');break;}return db[_0x46fa45][_0x1de84a('0x4')](_0x2f3203);}else return[];});}else return[];})[_0x448a84('0xa')](function(_0x2c60fa){return _0x2c60fa;});}function joinOrLeaveQueues(_0x1e4880,_0xa4a8cd,_0x2e2b16,_0x12f9e6){const _0x1845b1=_0x439a9c;_0x1e4880[_0xa4a8cd](util[_0x1845b1('0x58')]('%s:queue:%s',_0x2e2b16,_0x12f9e6[_0x1845b1('0x42')]));if(_0x12f9e6[_0x1845b1('0x3')])for(let _0x550b15=0x0;_0x550b15<_0x12f9e6[_0x1845b1('0x3')]['length'];_0x550b15+=0x1){_0x1e4880[_0xa4a8cd](util[_0x1845b1('0x58')](_0x1845b1('0x2f'),_0x12f9e6['Agents'][_0x550b15]['name']));}}function joinOrLeave(_0x4ecc2c,_0x283c8f,_0x5951dc){const _0xddad74=_0x439a9c;let _0x247a42;_0x4ecc2c['handshake'][_0xddad74('0x18')]['id']&&db['User']['findOne']({'attributes':['id',_0xddad74('0x42'),_0xddad74('0x1e'),_0xddad74('0x8')],'where':{'id':_0x4ecc2c[_0xddad74('0x7')][_0xddad74('0x18')]['id']},'include':[{'model':db[_0xddad74('0x52')],'as':'ChatInteractions','attributes':['id'],'raw':!![]},{'model':db['MailInteraction'],'as':'MailInteractions','attributes':['id'],'raw':!![]},{'model':db['FaxInteraction'],'as':_0xddad74('0x50'),'attributes':['id'],'raw':!![]},{'model':db[_0xddad74('0x16')],'as':'SmsInteractions','attributes':['id'],'raw':!![]},{'model':db['OpenchannelInteraction'],'as':_0xddad74('0x44'),'attributes':['id'],'raw':!![]},{'model':db[_0xddad74('0x3a')],'as':_0xddad74('0x2'),'attributes':['id'],'raw':!![]}]})[_0xddad74('0xa')](function(_0x547e77){const _0x4c6216=_0xddad74;if(_0x547e77){_0x247a42=_0x547e77,_0x4ecc2c[_0x283c8f](util[_0x4c6216('0x58')](_0x4c6216('0x2f'),_0x547e77[_0x4c6216('0x42')]));const _0x1bbd17=[];switch(_0x547e77['role']){case _0x4c6216('0x59'):_0x4ecc2c[_0x283c8f](_0x4c6216('0x39')),_0x4ecc2c[_0x283c8f]('voice:outbound');typeof queryQueues[_0x4c6216('0x29')]!==_0x4c6216('0x1f')&&delete queryQueues[_0x4c6216('0x29')];_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0x9')][_0x4c6216('0x4')](queryQueues)),_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0x51')][_0x4c6216('0x4')](queryQueues)),_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0x3e')][_0x4c6216('0x4')](queryQueues)),_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0x3d')][_0x4c6216('0x4')](queryQueues)),_0x1bbd17['push'](db[_0x4c6216('0x1d')][_0x4c6216('0x4')](queryQueues)),_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0x56')][_0x4c6216('0x4')](queryQueues)),_0x1bbd17[_0x4c6216('0x15')](db['WhatsappQueue'][_0x4c6216('0x4')](queryQueues)),_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0x6')]['findAll'](queryTelephones)),_0x1bbd17[_0x4c6216('0x15')](db['Trunk'][_0x4c6216('0x4')](queryTrunks)),_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0xb')][_0x4c6216('0x4')](queryCampaigns)),_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0x6')][_0x4c6216('0x4')](queryAgents));break;case _0x4c6216('0x1b'):_0x4ecc2c[_0x283c8f]('voice:inbound'),_0x4ecc2c[_0x283c8f](_0x4c6216('0x32')),_0x1bbd17[_0x4c6216('0x15')](getAssociatedResources(_0x4c6216('0x4e'),_0x547e77[_0x4c6216('0x8')],_0x4c6216('0x9'))),_0x1bbd17[_0x4c6216('0x15')](getAssociatedResources(_0x4c6216('0x1'),_0x547e77[_0x4c6216('0x8')],_0x4c6216('0x51'))),_0x1bbd17[_0x4c6216('0x15')](getAssociatedResources(_0x4c6216('0xe'),_0x547e77['userProfileId'],'FaxQueue')),_0x1bbd17[_0x4c6216('0x15')](getAssociatedResources(_0x4c6216('0x3b'),_0x547e77['userProfileId'],_0x4c6216('0x3d'))),_0x1bbd17[_0x4c6216('0x15')](getAssociatedResources(_0x4c6216('0x5c'),_0x547e77[_0x4c6216('0x8')],_0x4c6216('0x1d'))),_0x1bbd17['push'](getAssociatedResources(_0x4c6216('0x4b'),_0x547e77[_0x4c6216('0x8')],'OpenchannelQueue')),_0x1bbd17[_0x4c6216('0x15')](getAssociatedResources('WhatsappQueues',_0x547e77['userProfileId'],_0x4c6216('0x23'))),_0x1bbd17['push'](getAssociatedResources(_0x4c6216('0x5'),_0x547e77[_0x4c6216('0x8')],_0x4c6216('0x6'))),_0x1bbd17[_0x4c6216('0x15')](getAssociatedResources(_0x4c6216('0x33'),_0x547e77[_0x4c6216('0x8')],_0x4c6216('0x40'))),_0x1bbd17['push'](getAssociatedResources('IvrCampaigns',_0x547e77[_0x4c6216('0x8')],_0x4c6216('0xb'))),_0x1bbd17[_0x4c6216('0x15')](db[_0x4c6216('0x6')][_0x4c6216('0x4')](queryAgents));break;case'agent':_0x4ecc2c[_0x283c8f](_0x4c6216('0x39')),_0x4ecc2c[_0x283c8f](_0x4c6216('0x32')),_0x1bbd17[_0x4c6216('0x15')](_0x547e77[_0x4c6216('0x45')]({'attributes':['id',_0x4c6216('0x42')]})),_0x1bbd17[_0x4c6216('0x15')](_0x547e77[_0x4c6216('0x5a')]({'attributes':['id',_0x4c6216('0x42')]})),_0x1bbd17[_0x4c6216('0x15')](_0x547e77[_0x4c6216('0x1c')]({'attributes':['id','name']})),_0x1bbd17[_0x4c6216('0x15')](_0x547e77['getSmsQueues']({'attributes':['id',_0x4c6216('0x42')]})),_0x1bbd17[_0x4c6216('0x15')](_0x547e77[_0x4c6216('0x2e')]({'attributes':['id','name']})),_0x1bbd17[_0x4c6216('0x15')](_0x547e77[_0x4c6216('0x12')]({'attributes':['id',_0x4c6216('0x42')]})),_0x1bbd17['push'](_0x547e77[_0x4c6216('0x27')]({'attributes':['id',_0x4c6216('0x42')]}));break;}return Promise[_0x4c6216('0x48')](_0x1bbd17);}})[_0xddad74('0xa')](function(_0x538993){const _0x5deb68=_0xddad74;if(_0x538993&&_0x538993[_0x5deb68('0x14')])for(let _0x6cc0d8=0x0;_0x6cc0d8<_0x538993[_0x5deb68('0x14')];_0x6cc0d8+=0x1){for(let _0x51eba3=0x0;_0x51eba3<_0x538993[_0x6cc0d8]['length'];_0x51eba3+=0x1){switch(_0x6cc0d8){case 0x0:joinOrLeaveQueues(_0x4ecc2c,_0x283c8f,_0x5deb68('0x55'),_0x538993[_0x6cc0d8][_0x51eba3]);break;case 0x1:joinOrLeaveQueues(_0x4ecc2c,_0x283c8f,_0x5deb68('0xd'),_0x538993[_0x6cc0d8][_0x51eba3]);break;case 0x2:joinOrLeaveQueues(_0x4ecc2c,_0x283c8f,_0x5deb68('0x38'),_0x538993[_0x6cc0d8][_0x51eba3]);break;case 0x3:joinOrLeaveQueues(_0x4ecc2c,_0x283c8f,'sms',_0x538993[_0x6cc0d8][_0x51eba3]);break;case 0x4:joinOrLeaveQueues(_0x4ecc2c,_0x283c8f,_0x5deb68('0x24'),_0x538993[_0x6cc0d8][_0x51eba3]);break;case 0x5:joinOrLeaveQueues(_0x4ecc2c,_0x283c8f,_0x5deb68('0x4f'),_0x538993[_0x6cc0d8][_0x51eba3]);break;case 0x6:joinOrLeaveQueues(_0x4ecc2c,_0x283c8f,'whatsapp',_0x538993[_0x6cc0d8][_0x51eba3]);break;case 0x7:_0x4ecc2c[_0x283c8f](util['format'](_0x5deb68('0x1a'),_0x538993[_0x6cc0d8][_0x51eba3][_0x5deb68('0x42')]));break;case 0x8:_0x4ecc2c[_0x283c8f](util[_0x5deb68('0x58')]('trunk:%s',_0x538993[_0x6cc0d8][_0x51eba3][_0x5deb68('0x42')]));break;case 0x9:_0x4ecc2c[_0x283c8f](util[_0x5deb68('0x58')](_0x5deb68('0x21'),_0x538993[_0x6cc0d8][_0x51eba3][_0x5deb68('0x2a')],_0x538993[_0x6cc0d8][_0x51eba3][_0x5deb68('0x42')]));break;case 0xa:_0x4ecc2c[_0x283c8f](util[_0x5deb68('0x58')](_0x5deb68('0x2f'),_0x538993[_0x6cc0d8][_0x51eba3][_0x5deb68('0x42')]));break;}}}})[_0xddad74('0xa')](function(){const _0x534424=_0xddad74;if(_0x283c8f===_0x534424('0xc')){const _0x1d1d8a=_[_0x534424('0x5b')](_0x247a42[_0x534424('0x36')],'id');return _0x247a42[_0x534424('0x41')](_0x1d1d8a)[_0x534424('0xa')](function(){const _0x587dba=_0x534424;for(let _0x24eab7=0x0;_0x24eab7<_0x1d1d8a[_0x587dba('0x14')];_0x24eab7+=0x1){_0x5951dc[_0x587dba('0x49')]('user_has_chat_interactions:remove',{'ChatInteractionId':Number(_0x1d1d8a[_0x24eab7]),'UserId':Number(_0x247a42['id'])});}});}})[_0xddad74('0xa')](function(){const _0x47b615=_0xddad74;if(_0x283c8f===_0x47b615('0xc')){const _0x3c7469=_['map'](_0x247a42[_0x47b615('0x11')],'id');return _0x247a42[_0x47b615('0x13')](_0x3c7469)['then'](function(){const _0x3f025b=_0x47b615;for(let _0x9a2224=0x0;_0x9a2224<_0x3c7469['length'];_0x9a2224+=0x1){_0x5951dc[_0x3f025b('0x49')](_0x3f025b('0x46'),{'MailInteractionId':Number(_0x3c7469[_0x9a2224]),'UserId':Number(_0x247a42['id'])});}});}})[_0xddad74('0xa')](function(){const _0x254064=_0xddad74;if(_0x283c8f===_0x254064('0xc')){const _0x388eaa=_[_0x254064('0x5b')](_0x247a42[_0x254064('0x50')],'id');return _0x247a42[_0x254064('0x31')](_0x388eaa)[_0x254064('0xa')](function(){const _0x106be4=_0x254064;for(let _0x8e638b=0x0;_0x8e638b<_0x388eaa[_0x106be4('0x14')];_0x8e638b+=0x1){_0x5951dc[_0x106be4('0x49')](_0x106be4('0x43'),{'FaxInteractionId':Number(_0x388eaa[_0x8e638b]),'UserId':Number(_0x247a42['id'])});}});}})['then'](function(){const _0x41eba5=_0xddad74;if(_0x283c8f===_0x41eba5('0xc')){const _0x2445a5=_['map'](_0x247a42['SmsInteractions'],'id');return _0x247a42[_0x41eba5('0x20')](_0x2445a5)[_0x41eba5('0xa')](function(){const _0x5c94e6=_0x41eba5;for(let _0x1b41d8=0x0;_0x1b41d8<_0x2445a5[_0x5c94e6('0x14')];_0x1b41d8+=0x1){_0x5951dc[_0x5c94e6('0x49')](_0x5c94e6('0xf'),{'SmsInteractionId':Number(_0x2445a5[_0x1b41d8]),'UserId':Number(_0x247a42['id'])});}});}})['then'](function(){const _0x1a2f16=_0xddad74;if(_0x283c8f===_0x1a2f16('0xc')){const _0x10029c=_[_0x1a2f16('0x5b')](_0x247a42[_0x1a2f16('0x44')],'id');return _0x247a42['removeOpenchannelInteractions'](_0x10029c)['then'](function(){const _0x525163=_0x1a2f16;for(let _0x450af6=0x0;_0x450af6<_0x10029c[_0x525163('0x14')];_0x450af6+=0x1){_0x5951dc[_0x525163('0x49')](_0x525163('0x28'),{'OpenchannelInteractionId':Number(_0x10029c[_0x450af6]),'UserId':Number(_0x247a42['id'])});}});}})[_0xddad74('0xa')](function(){const _0x5c4dcb=_0xddad74;if(_0x283c8f===_0x5c4dcb('0xc')){const _0x14af1d=_[_0x5c4dcb('0x5b')](_0x247a42[_0x5c4dcb('0x2')],'id');return _0x247a42[_0x5c4dcb('0x17')](_0x14af1d)[_0x5c4dcb('0xa')](function(){const _0x59005e=_0x5c4dcb;for(let _0x2ee32c=0x0;_0x2ee32c<_0x14af1d[_0x59005e('0x14')];_0x2ee32c+=0x1){_0x5951dc[_0x59005e('0x49')](_0x59005e('0x4c'),{'WhatsappInteractionId':Number(_0x14af1d[_0x2ee32c]),'UserId':Number(_0x247a42['id'])});}});}})['catch'](function(_0x436e15){const _0x5b62cf=_0xddad74;_0x4ecc2c[_0x5b62cf('0x34')](_0x436e15);});}function onDisconnect(_0x20d156,_0x21e3b4){const _0x163237=_0x439a9c;joinOrLeave(_0x20d156,_0x163237('0xc'),_0x21e3b4);}function onConnect(_0x4fbebb){const _0x35d1fc=_0x439a9c;joinOrLeave(_0x4fbebb,_0x35d1fc('0x54'));}exports[_0x439a9c('0x3c')]=function(_0x498ca8){const _0x56333a=_0x439a9c;_0x498ca8['on'](_0x56333a('0x10'),function(_0x4f519d){const _0x25b3a8=_0x56333a;_0x4f519d[_0x25b3a8('0x26')](0x0),_0x4f519d[_0x25b3a8('0x22')]=_0x4f519d[_0x25b3a8('0x25')][_0x25b3a8('0x10')][_0x25b3a8('0x47')]+':'+_0x4f519d[_0x25b3a8('0x25')]['connection']['remotePort'],_0x4f519d[_0x25b3a8('0x53')]=new Date(),_0x4f519d[_0x25b3a8('0x34')]=function(_0x1eed5b){const _0x5de4f2=_0x25b3a8;console['log'](_0x5de4f2('0x35')+_0x4f519d[_0x5de4f2('0x30')][_0x5de4f2('0x42')]+'['+_0x4f519d[_0x5de4f2('0x22')]+']',_0x1eed5b);},_0x4f519d['on']('disconnect',function(){const _0x7ac304=_0x25b3a8;onDisconnect(_0x4f519d,_0x498ca8),_0x4f519d[_0x7ac304('0x34')](_0x7ac304('0x4a'));}),onConnect(_0x4f519d),_0x4f519d[_0x25b3a8('0x34')](_0x25b3a8('0x2d'));});}; \ No newline at end of file +const a886_0x1ca8=['voice:outbound','UserProfileResource','role','FaxQueue','sms','FaxInteractions','WhatsappQueues','log','join','ivr','findAll','undefined','admin','campaign:%s:%s','resourceId','FaxInteraction','SmsQueue','fax','MailInteraction','all','VoiceQueue','MailQueues','Trunk','getWhatsappQueues','voice','voice:inbound','length','setMaxListeners','chat','user_has_mail_interactions:remove','IvrCampaigns','catch','nsp','ChatInteractions','connection','WhatsappInteraction','%s:queue:%s','SmsInteractions','MailInteractions','user_has_chat_interactions:remove','where','removeWhatsappInteractions','user','agent','ChatQueue','emit','whatsapp','connectedAt','../mysqldb','SmsQueues','Trunks','Campaign','ChatQueues','address','WhatsappQueue','mail','name','user_has_openchannel_interactions:remove','push','Agents','removeSmsInteractions','remoteAddress','VoiceQueues','FaxQueues','query','trunk:%s','then','OpenchannelQueues','WhatsappInteractions','default','userProfileId','MailQueue','map','disconnect','getFaxQueues','removeOpenchannelInteractions','OpenchannelInteraction','OpenchannelQueue','leave','user:%s','User','util','type','SmsInteraction','request','handshake','format','findOne','ChatInteraction','removeChatInteractions','include','user_has_fax_interactions:remove'];(function(_0x3e5c0a,_0x1ca851){const _0x134050=function(_0x5d5dea){while(--_0x5d5dea){_0x3e5c0a['push'](_0x3e5c0a['shift']());}};_0x134050(++_0x1ca851);}(a886_0x1ca8,0x193));const a886_0x1340=function(_0x3e5c0a,_0x1ca851){_0x3e5c0a=_0x3e5c0a-0x0;let _0x134050=a886_0x1ca8[_0x3e5c0a];return _0x134050;};const _0x37abc2=a886_0x1340;'use strict';const _=require('lodash'),util=require(_0x37abc2('0x2e')),db=require(_0x37abc2('0xd'))['db'],queryQueues={'attributes':['id',_0x37abc2('0x15')],'include':[{'as':_0x37abc2('0x18'),'model':db[_0x37abc2('0x2d')],'attributes':['id',_0x37abc2('0x15'),_0x37abc2('0x3b')],'raw':!![],'where':{'role':'agent'},'required':![]}]},queryTelephones={'raw':!![],'attributes':['id',_0x37abc2('0x15')],'where':{'role':'telephone'}},queryTrunks={'raw':!![],'attributes':['id',_0x37abc2('0x15')]},queryAgents={'raw':!![],'attributes':['id',_0x37abc2('0x15')],'where':{'role':'agent'}},queryCampaigns={'raw':!![],'attributes':['id',_0x37abc2('0x15'),_0x37abc2('0x2f')],'where':{'type':_0x37abc2('0x42')}};function getAssociatedResources(_0x5d5dea,_0x1ee4e5,_0x3d09b4){const _0x453584=_0x37abc2;return db['UserProfileSection']['findOne']({'where':{'name':_0x5d5dea,'userProfileId':_0x1ee4e5},'raw':!![]})[_0x453584('0x1f')](function(_0x3dab8e){const _0x4d24c1=_0x453584;if(_0x3dab8e){if(_0x3dab8e['autoAssociation']){let _0x4dbf20;switch(_0x5d5dea){case'VoiceQueues':case _0x4d24c1('0x11'):case _0x4d24c1('0x1c'):case'SmsQueues':case _0x4d24c1('0x4e'):case _0x4d24c1('0x20'):case _0x4d24c1('0x3f'):_0x4dbf20=queryQueues;break;case'Telephones':_0x4dbf20=queryTelephones;break;case _0x4d24c1('0xf'):_0x4dbf20=queryTrunks;break;case _0x4d24c1('0x57'):_0x4dbf20=queryCampaigns;break;default:break;}return _0x4dbf20?db[_0x3d09b4][_0x4d24c1('0x43')](_0x4dbf20):_0x4dbf20;}else return db[_0x4d24c1('0x3a')][_0x4d24c1('0x43')]({'attributes':[_0x4d24c1('0x47')],'where':{'sectionId':_0x3dab8e['id']},'raw':!![]})[_0x4d24c1('0x1f')](function(_0x4bc0f0){const _0x4cdf20=_0x4d24c1;if(_0x4bc0f0){const _0xebd746={'where':{'id':_[_0x4cdf20('0x25')](_0x4bc0f0,'resourceId')},'raw':!![]};switch(_0x3d09b4){case'User':_0xebd746[_0x4cdf20('0x5')][_0x4cdf20('0x3b')]='telephone';break;case _0x4cdf20('0x10'):_0xebd746[_0x4cdf20('0x5')][_0x4cdf20('0x2f')]=_0x4cdf20('0x42');break;}return db[_0x3d09b4]['findAll'](_0xebd746);}else return[];});}else return[];})[_0x453584('0x1f')](function(_0x5c50cc){return _0x5c50cc;});}function joinOrLeaveQueues(_0x4dd34e,_0x142504,_0x3b6b71,_0x6910fc){const _0x3d30a5=_0x37abc2;_0x4dd34e[_0x142504](util['format'](_0x3d30a5('0x1'),_0x3b6b71,_0x6910fc['name']));if(_0x6910fc[_0x3d30a5('0x18')])for(let _0x2795f7=0x0;_0x2795f7<_0x6910fc[_0x3d30a5('0x18')][_0x3d30a5('0x53')];_0x2795f7+=0x1){_0x4dd34e[_0x142504](util[_0x3d30a5('0x33')](_0x3d30a5('0x2c'),_0x6910fc[_0x3d30a5('0x18')][_0x2795f7][_0x3d30a5('0x15')]));}}function joinOrLeave(_0x44cfd2,_0x298c11,_0x50f51f){const _0x398d19=_0x37abc2;let _0x4469b0;_0x44cfd2[_0x398d19('0x32')][_0x398d19('0x1d')]['id']&&db[_0x398d19('0x2d')][_0x398d19('0x34')]({'attributes':['id',_0x398d19('0x15'),'role','userProfileId'],'where':{'id':_0x44cfd2[_0x398d19('0x32')][_0x398d19('0x1d')]['id']},'include':[{'model':db[_0x398d19('0x35')],'as':_0x398d19('0x5a'),'attributes':['id'],'raw':!![]},{'model':db[_0x398d19('0x4b')],'as':_0x398d19('0x3'),'attributes':['id'],'raw':!![]},{'model':db[_0x398d19('0x48')],'as':'FaxInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x398d19('0x30')],'as':'SmsInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x398d19('0x29')],'as':'OpenchannelInteractions','attributes':['id'],'raw':!![]},{'model':db[_0x398d19('0x0')],'as':'WhatsappInteractions','attributes':['id'],'raw':!![]}]})[_0x398d19('0x1f')](function(_0x94af1f){const _0x34dfb0=_0x398d19;if(_0x94af1f){_0x4469b0=_0x94af1f,_0x44cfd2[_0x298c11](util[_0x34dfb0('0x33')](_0x34dfb0('0x2c'),_0x94af1f[_0x34dfb0('0x15')]));const _0x7b553a=[];switch(_0x94af1f[_0x34dfb0('0x3b')]){case _0x34dfb0('0x45'):_0x44cfd2[_0x298c11]('voice:inbound'),_0x44cfd2[_0x298c11](_0x34dfb0('0x39'));typeof queryQueues[_0x34dfb0('0x37')]!==_0x34dfb0('0x44')&&delete queryQueues['include'];_0x7b553a[_0x34dfb0('0x17')](db['VoiceQueue']['findAll'](queryQueues)),_0x7b553a[_0x34dfb0('0x17')](db[_0x34dfb0('0x9')][_0x34dfb0('0x43')](queryQueues)),_0x7b553a[_0x34dfb0('0x17')](db[_0x34dfb0('0x3c')][_0x34dfb0('0x43')](queryQueues)),_0x7b553a[_0x34dfb0('0x17')](db[_0x34dfb0('0x49')][_0x34dfb0('0x43')](queryQueues)),_0x7b553a[_0x34dfb0('0x17')](db[_0x34dfb0('0x24')][_0x34dfb0('0x43')](queryQueues)),_0x7b553a[_0x34dfb0('0x17')](db['OpenchannelQueue'][_0x34dfb0('0x43')](queryQueues)),_0x7b553a['push'](db['WhatsappQueue']['findAll'](queryQueues)),_0x7b553a[_0x34dfb0('0x17')](db['User']['findAll'](queryTelephones)),_0x7b553a[_0x34dfb0('0x17')](db[_0x34dfb0('0x4f')]['findAll'](queryTrunks)),_0x7b553a[_0x34dfb0('0x17')](db[_0x34dfb0('0x10')][_0x34dfb0('0x43')](queryCampaigns)),_0x7b553a['push'](db['User'][_0x34dfb0('0x43')](queryAgents));break;case _0x34dfb0('0x7'):_0x44cfd2[_0x298c11]('voice:inbound'),_0x44cfd2[_0x298c11](_0x34dfb0('0x39')),_0x7b553a[_0x34dfb0('0x17')](getAssociatedResources(_0x34dfb0('0x1b'),_0x94af1f[_0x34dfb0('0x23')],_0x34dfb0('0x4d'))),_0x7b553a['push'](getAssociatedResources('ChatQueues',_0x94af1f[_0x34dfb0('0x23')],_0x34dfb0('0x9'))),_0x7b553a['push'](getAssociatedResources(_0x34dfb0('0x1c'),_0x94af1f[_0x34dfb0('0x23')],'FaxQueue')),_0x7b553a[_0x34dfb0('0x17')](getAssociatedResources(_0x34dfb0('0xe'),_0x94af1f[_0x34dfb0('0x23')],_0x34dfb0('0x49'))),_0x7b553a[_0x34dfb0('0x17')](getAssociatedResources(_0x34dfb0('0x4e'),_0x94af1f[_0x34dfb0('0x23')],_0x34dfb0('0x24'))),_0x7b553a[_0x34dfb0('0x17')](getAssociatedResources(_0x34dfb0('0x20'),_0x94af1f[_0x34dfb0('0x23')],_0x34dfb0('0x2a'))),_0x7b553a[_0x34dfb0('0x17')](getAssociatedResources(_0x34dfb0('0x3f'),_0x94af1f[_0x34dfb0('0x23')],_0x34dfb0('0x13'))),_0x7b553a['push'](getAssociatedResources('Telephones',_0x94af1f[_0x34dfb0('0x23')],_0x34dfb0('0x2d'))),_0x7b553a['push'](getAssociatedResources('Trunks',_0x94af1f['userProfileId'],_0x34dfb0('0x4f'))),_0x7b553a[_0x34dfb0('0x17')](getAssociatedResources(_0x34dfb0('0x57'),_0x94af1f['userProfileId'],'Campaign')),_0x7b553a[_0x34dfb0('0x17')](db['User']['findAll'](queryAgents));break;case _0x34dfb0('0x8'):_0x44cfd2[_0x298c11](_0x34dfb0('0x52')),_0x44cfd2[_0x298c11](_0x34dfb0('0x39')),_0x7b553a[_0x34dfb0('0x17')](_0x94af1f['getVoiceQueues']({'attributes':['id',_0x34dfb0('0x15')]})),_0x7b553a[_0x34dfb0('0x17')](_0x94af1f['getChatQueues']({'attributes':['id',_0x34dfb0('0x15')]})),_0x7b553a[_0x34dfb0('0x17')](_0x94af1f[_0x34dfb0('0x27')]({'attributes':['id',_0x34dfb0('0x15')]})),_0x7b553a[_0x34dfb0('0x17')](_0x94af1f['getSmsQueues']({'attributes':['id','name']})),_0x7b553a['push'](_0x94af1f['getMailQueues']({'attributes':['id',_0x34dfb0('0x15')]})),_0x7b553a[_0x34dfb0('0x17')](_0x94af1f['getOpenchannelQueues']({'attributes':['id','name']})),_0x7b553a[_0x34dfb0('0x17')](_0x94af1f[_0x34dfb0('0x50')]({'attributes':['id',_0x34dfb0('0x15')]}));break;}return Promise[_0x34dfb0('0x4c')](_0x7b553a);}})['then'](function(_0x4bf359){const _0x450058=_0x398d19;if(_0x4bf359&&_0x4bf359[_0x450058('0x53')])for(let _0x171925=0x0;_0x171925<_0x4bf359[_0x450058('0x53')];_0x171925+=0x1){for(let _0x372838=0x0;_0x372838<_0x4bf359[_0x171925][_0x450058('0x53')];_0x372838+=0x1){switch(_0x171925){case 0x0:joinOrLeaveQueues(_0x44cfd2,_0x298c11,_0x450058('0x51'),_0x4bf359[_0x171925][_0x372838]);break;case 0x1:joinOrLeaveQueues(_0x44cfd2,_0x298c11,_0x450058('0x55'),_0x4bf359[_0x171925][_0x372838]);break;case 0x2:joinOrLeaveQueues(_0x44cfd2,_0x298c11,_0x450058('0x4a'),_0x4bf359[_0x171925][_0x372838]);break;case 0x3:joinOrLeaveQueues(_0x44cfd2,_0x298c11,_0x450058('0x3d'),_0x4bf359[_0x171925][_0x372838]);break;case 0x4:joinOrLeaveQueues(_0x44cfd2,_0x298c11,_0x450058('0x14'),_0x4bf359[_0x171925][_0x372838]);break;case 0x5:joinOrLeaveQueues(_0x44cfd2,_0x298c11,'openchannel',_0x4bf359[_0x171925][_0x372838]);break;case 0x6:joinOrLeaveQueues(_0x44cfd2,_0x298c11,_0x450058('0xb'),_0x4bf359[_0x171925][_0x372838]);break;case 0x7:_0x44cfd2[_0x298c11](util[_0x450058('0x33')]('telephone:%s',_0x4bf359[_0x171925][_0x372838]['name']));break;case 0x8:_0x44cfd2[_0x298c11](util[_0x450058('0x33')](_0x450058('0x1e'),_0x4bf359[_0x171925][_0x372838][_0x450058('0x15')]));break;case 0x9:_0x44cfd2[_0x298c11](util[_0x450058('0x33')](_0x450058('0x46'),_0x4bf359[_0x171925][_0x372838][_0x450058('0x2f')],_0x4bf359[_0x171925][_0x372838][_0x450058('0x15')]));break;case 0xa:_0x44cfd2[_0x298c11](util[_0x450058('0x33')](_0x450058('0x2c'),_0x4bf359[_0x171925][_0x372838][_0x450058('0x15')]));break;}}}})['then'](function(){const _0x1413f4=_0x398d19;if(_0x298c11===_0x1413f4('0x2b')){const _0x192a1c=_[_0x1413f4('0x25')](_0x4469b0[_0x1413f4('0x5a')],'id');return _0x4469b0[_0x1413f4('0x36')](_0x192a1c)['then'](function(){const _0x2ae033=_0x1413f4;for(let _0xd47f36=0x0;_0xd47f36<_0x192a1c[_0x2ae033('0x53')];_0xd47f36+=0x1){_0x50f51f[_0x2ae033('0xa')](_0x2ae033('0x4'),{'ChatInteractionId':Number(_0x192a1c[_0xd47f36]),'UserId':Number(_0x4469b0['id'])});}});}})[_0x398d19('0x1f')](function(){const _0x5733f9=_0x398d19;if(_0x298c11===_0x5733f9('0x2b')){const _0x3d5adb=_[_0x5733f9('0x25')](_0x4469b0[_0x5733f9('0x3')],'id');return _0x4469b0['removeMailInteractions'](_0x3d5adb)[_0x5733f9('0x1f')](function(){const _0x292fd2=_0x5733f9;for(let _0x5399b5=0x0;_0x5399b5<_0x3d5adb['length'];_0x5399b5+=0x1){_0x50f51f['emit'](_0x292fd2('0x56'),{'MailInteractionId':Number(_0x3d5adb[_0x5399b5]),'UserId':Number(_0x4469b0['id'])});}});}})['then'](function(){const _0x2486dd=_0x398d19;if(_0x298c11===_0x2486dd('0x2b')){const _0x11df21=_[_0x2486dd('0x25')](_0x4469b0[_0x2486dd('0x3e')],'id');return _0x4469b0['removeFaxInteractions'](_0x11df21)['then'](function(){const _0xaa5d61=_0x2486dd;for(let _0x32cdef=0x0;_0x32cdef<_0x11df21[_0xaa5d61('0x53')];_0x32cdef+=0x1){_0x50f51f[_0xaa5d61('0xa')](_0xaa5d61('0x38'),{'FaxInteractionId':Number(_0x11df21[_0x32cdef]),'UserId':Number(_0x4469b0['id'])});}});}})['then'](function(){const _0x1bcf2a=_0x398d19;if(_0x298c11===_0x1bcf2a('0x2b')){const _0x85f4d0=_[_0x1bcf2a('0x25')](_0x4469b0[_0x1bcf2a('0x2')],'id');return _0x4469b0[_0x1bcf2a('0x19')](_0x85f4d0)[_0x1bcf2a('0x1f')](function(){const _0x51d4f9=_0x1bcf2a;for(let _0x3ebf2b=0x0;_0x3ebf2b<_0x85f4d0[_0x51d4f9('0x53')];_0x3ebf2b+=0x1){_0x50f51f[_0x51d4f9('0xa')]('user_has_sms_interactions:remove',{'SmsInteractionId':Number(_0x85f4d0[_0x3ebf2b]),'UserId':Number(_0x4469b0['id'])});}});}})[_0x398d19('0x1f')](function(){const _0x249fb1=_0x398d19;if(_0x298c11==='leave'){const _0x39d618=_[_0x249fb1('0x25')](_0x4469b0['OpenchannelInteractions'],'id');return _0x4469b0[_0x249fb1('0x28')](_0x39d618)['then'](function(){const _0x5da7a1=_0x249fb1;for(let _0x23bf6d=0x0;_0x23bf6d<_0x39d618[_0x5da7a1('0x53')];_0x23bf6d+=0x1){_0x50f51f[_0x5da7a1('0xa')](_0x5da7a1('0x16'),{'OpenchannelInteractionId':Number(_0x39d618[_0x23bf6d]),'UserId':Number(_0x4469b0['id'])});}});}})[_0x398d19('0x1f')](function(){const _0x394217=_0x398d19;if(_0x298c11===_0x394217('0x2b')){const _0xc51258=_['map'](_0x4469b0[_0x394217('0x21')],'id');return _0x4469b0[_0x394217('0x6')](_0xc51258)[_0x394217('0x1f')](function(){const _0x476435=_0x394217;for(let _0x33e164=0x0;_0x33e164<_0xc51258['length'];_0x33e164+=0x1){_0x50f51f[_0x476435('0xa')]('user_has_whatsapp_interactions:remove',{'WhatsappInteractionId':Number(_0xc51258[_0x33e164]),'UserId':Number(_0x4469b0['id'])});}});}})[_0x398d19('0x58')](function(_0x5e63d4){const _0x415561=_0x398d19;_0x44cfd2[_0x415561('0x40')](_0x5e63d4);});}function onDisconnect(_0x42501c,_0x1e43b7){const _0x2bc3ff=_0x37abc2;joinOrLeave(_0x42501c,_0x2bc3ff('0x2b'),_0x1e43b7);}function onConnect(_0x58b2a6){const _0x2b8bf5=_0x37abc2;joinOrLeave(_0x58b2a6,_0x2b8bf5('0x41'));}exports[_0x37abc2('0x22')]=function(_0x54605d){const _0x2c0759=_0x37abc2;_0x54605d['on'](_0x2c0759('0x5b'),function(_0x231073){const _0x184588=_0x2c0759;_0x231073[_0x184588('0x54')](0x0),_0x231073[_0x184588('0x12')]=_0x231073[_0x184588('0x31')][_0x184588('0x5b')][_0x184588('0x1a')]+':'+_0x231073[_0x184588('0x31')][_0x184588('0x5b')]['remotePort'],_0x231073[_0x184588('0xc')]=new Date(),_0x231073[_0x184588('0x40')]=function(_0x1ea67f){const _0x37d918=_0x184588;console[_0x37d918('0x40')]('SocketIO\x20'+_0x231073[_0x37d918('0x59')][_0x37d918('0x15')]+'['+_0x231073['address']+']',_0x1ea67f);},_0x231073['on'](_0x184588('0x26'),function(){const _0x422b5d=_0x184588;onDisconnect(_0x231073,_0x54605d),_0x231073[_0x422b5d('0x40')]('DISCONNECTED');}),onConnect(_0x231073),_0x231073['log']('CONNECTED');});}; \ No newline at end of file diff --git a/server/config/triggers/index.js b/server/config/triggers/index.js index 303002c..8305fe3 100644 --- a/server/config/triggers/index.js +++ b/server/config/triggers/index.js @@ -1 +1 @@ -const a887_0x3a42=['interface','closed','ChatInteraction','toLowerCase','SIP/%s','default','OpenchannelMessage','callback','code','FaxInteraction','newinteraction','event','Whatsapp','newmessage','jayson/promise','incomingmessage','MailInteraction','UserId','Openchannel','Sms','then','outgoingmessage','condition','../../mysqldb','OpenchannelInteraction','length','Chat','triggers','FaxMessage','MailMessage','Mail','afterCreate','Fax','name','opened','findOne','direction','get','catch','Trigger,\x20%s','WhatsappInteraction','model','SmsInteraction','info','util','User','request','../logger','afterUpdate','channel','format','ChatMessage','undefined','error','closedinteraction','changed','client','EventManager'];(function(_0x370d3c,_0x3a4261){const _0x276eeb=function(_0x3c406d){while(--_0x3c406d){_0x370d3c['push'](_0x370d3c['shift']());}};_0x276eeb(++_0x3a4261);}(a887_0x3a42,0x119));const a887_0x276e=function(_0x370d3c,_0x3a4261){_0x370d3c=_0x370d3c-0x0;let _0x276eeb=a887_0x3a42[_0x370d3c];return _0x276eeb;};const _0x164f71=a887_0x276e;'use strict';const util=require(_0x164f71('0x35')),db=require(_0x164f71('0x20'))['db'],jayson=require(_0x164f71('0x17')),logger=require(_0x164f71('0x38'))(_0x164f71('0x24')),client=jayson[_0x164f71('0x7')]['http']({'port':0x232a}),triggers=[{'channel':'Chat','model':_0x164f71('0xb'),'event':_0x164f71('0x28'),'condition':'newinteraction','callback':afterCreate},{'channel':'Chat','model':_0x164f71('0xb'),'event':'afterUpdate','condition':'closedinteraction','callback':afterUpdate},{'channel':_0x164f71('0x23'),'model':_0x164f71('0x2'),'event':_0x164f71('0x28'),'condition':'newmessage','callback':afterCreateMessage},{'channel':_0x164f71('0x1c'),'model':_0x164f71('0x33'),'event':_0x164f71('0x28'),'condition':_0x164f71('0x13'),'callback':afterCreate},{'channel':'Sms','model':'SmsInteraction','event':_0x164f71('0x39'),'condition':'closedinteraction','callback':afterUpdate},{'channel':_0x164f71('0x1c'),'model':'SmsMessage','event':_0x164f71('0x28'),'condition':_0x164f71('0x16'),'callback':afterCreateMessage},{'channel':'Whatsapp','model':_0x164f71('0x31'),'event':'afterCreate','condition':_0x164f71('0x13'),'callback':afterCreate},{'channel':_0x164f71('0x15'),'model':_0x164f71('0x31'),'event':_0x164f71('0x39'),'condition':_0x164f71('0x5'),'callback':afterUpdate},{'channel':_0x164f71('0x15'),'model':'WhatsappMessage','event':_0x164f71('0x28'),'condition':_0x164f71('0x16'),'callback':afterCreateMessage},{'channel':_0x164f71('0x29'),'model':_0x164f71('0x12'),'event':_0x164f71('0x28'),'condition':_0x164f71('0x13'),'callback':afterCreate},{'channel':_0x164f71('0x29'),'model':_0x164f71('0x12'),'event':'afterUpdate','condition':_0x164f71('0x5'),'callback':afterUpdate},{'channel':_0x164f71('0x29'),'model':_0x164f71('0x25'),'event':_0x164f71('0x28'),'condition':_0x164f71('0x16'),'callback':afterCreateMessage},{'channel':'Mail','model':_0x164f71('0x19'),'event':_0x164f71('0x28'),'condition':_0x164f71('0x13'),'callback':afterCreate},{'channel':_0x164f71('0x27'),'model':'MailInteraction','event':_0x164f71('0x39'),'condition':_0x164f71('0x5'),'callback':afterUpdate},{'channel':_0x164f71('0x27'),'model':_0x164f71('0x26'),'event':_0x164f71('0x28'),'condition':_0x164f71('0x16'),'callback':afterCreateMessage},{'channel':_0x164f71('0x1b'),'model':_0x164f71('0x21'),'event':'afterCreate','condition':'newinteraction','callback':afterCreate},{'channel':_0x164f71('0x1b'),'model':'OpenchannelInteraction','event':_0x164f71('0x39'),'condition':_0x164f71('0x5'),'callback':afterUpdate},{'channel':_0x164f71('0x1b'),'model':_0x164f71('0xf'),'event':_0x164f71('0x28'),'condition':_0x164f71('0x16'),'callback':afterCreateMessage}];function request(_0x3c406d){const _0x5d047f=_0x164f71;return client[_0x5d047f('0x37')](_0x5d047f('0x8'),_0x3c406d)[_0x5d047f('0x1d')](function(_0x4e5bd9){const _0xc747ab=_0x5d047f;logger[_0xc747ab('0x34')](_0xc747ab('0x30'),_0xc747ab('0x8'),_0x4e5bd9),_0x4e5bd9[_0xc747ab('0x4')]&&(_0x4e5bd9[_0xc747ab('0x4')][_0xc747ab('0x11')]===0x1f4&&logger[_0xc747ab('0x4')](_0xc747ab('0x30'),'EventManager',_0x4e5bd9[_0xc747ab('0x4')]));})[_0x5d047f('0x2f')](function(_0x361d3d){const _0x5c2528=_0x5d047f;logger[_0x5c2528('0x4')](_0x5c2528('0x30'),_0x5c2528('0x8'),_0x361d3d);});}function afterCreateMessage(_0x3897db){return function(_0x19cb8c){const _0x8679b1=a887_0x276e;return _0x19cb8c=_0x19cb8c['get']({'plain':!![]}),_0x19cb8c['channel']=_0x3897db,_0x19cb8c['event']=_0x19cb8c[_0x8679b1('0x2d')],_0x19cb8c['UserId']?db['User'][_0x8679b1('0x2c')]({'where':{'id':_0x19cb8c[_0x8679b1('0x1a')]},'attributes':['id','name'],'raw':!![]})[_0x8679b1('0x1d')](function(_0x3e4e46){const _0x5c2b3d=_0x8679b1;return _0x19cb8c[_0x5c2b3d('0x9')]=util[_0x5c2b3d('0x1')](_0x5c2b3d('0xd'),_0x3e4e46['name']),_0x19cb8c[_0x5c2b3d('0x0')]=_0x3897db,request({'event':_0x5c2b3d('0x18'),'message':_0x19cb8c});})[_0x8679b1('0x2f')](function(_0x34f678){const _0x49e16c=_0x8679b1;console[_0x49e16c('0x4')](_0x34f678);}):request({'event':_0x8679b1('0x1e'),'message':_0x19cb8c});};}function afterCreate(_0x4589b4,_0x384192){return function(_0x36b0a8){const _0x1c71c4=a887_0x276e;return _0x36b0a8=_0x36b0a8[_0x1c71c4('0x2e')]({'plain':!![]}),_0x36b0a8[_0x1c71c4('0x0')]=_0x4589b4,_0x36b0a8[_0x1c71c4('0x14')]=_0x1c71c4('0x2b'),request({'event':_0x384192,'message':_0x36b0a8});};}function afterUpdate(_0x576dbd,_0x5b5b3e){return function(_0x40f6c0){const _0x25b1fa=a887_0x276e;if(_0x40f6c0[_0x25b1fa('0x6')](_0x25b1fa('0xa'))&&_0x40f6c0['closed'])return _0x40f6c0=_0x40f6c0['get']({'plain':!![]}),_0x40f6c0[_0x25b1fa('0x0')]=_0x576dbd,_0x40f6c0[_0x25b1fa('0x14')]=_0x25b1fa('0xa'),_0x40f6c0[_0x25b1fa('0x1a')]?db[_0x25b1fa('0x36')][_0x25b1fa('0x2c')]({'where':{'id':_0x40f6c0[_0x25b1fa('0x1a')]},'attributes':['id',_0x25b1fa('0x2a')],'raw':!![]})['then'](function(_0x582992){const _0x4ac1a5=_0x25b1fa;return _0x40f6c0[_0x4ac1a5('0x9')]=util['format'](_0x4ac1a5('0xd'),_0x582992[_0x4ac1a5('0x2a')]),request({'event':_0x5b5b3e,'message':_0x40f6c0});})['catch'](function(_0x57b9e3){const _0x5092e9=_0x25b1fa;console[_0x5092e9('0x4')](_0x57b9e3);}):request({'event':_0x5b5b3e,'message':_0x40f6c0});};}exports[_0x164f71('0xe')]=function(){const _0x3b387e=_0x164f71;for(let _0x4a463e=0x0;_0x4a463e=_0x5180a7[_0x4f407c('0xa')])throw Error(_0x4f407c('0x0'));_0x115790(_0xeb68fc);})[_0x4f03ea('0x12')](function(_0x1ec4df){_0x2bbc0a(_0x1ec4df);});});}; \ No newline at end of file +const a888_0xe59b=['clearBlockUser','whatsapp','Maximum\x20login\x20has\x20been\x20reached','isUndefined','voice','count','isValidChannel','update','lodash','role','getChannels','../mysqldb','openchannel','catch','then','includes','./license/util','fax','getLicense','agent','chat','sms','mail'];(function(_0x56e39c,_0xe59b52){const _0x823d44=function(_0x43fdd8){while(--_0x43fdd8){_0x56e39c['push'](_0x56e39c['shift']());}};_0x823d44(++_0xe59b52);}(a888_0xe59b,0x193));const a888_0x823d=function(_0x56e39c,_0xe59b52){_0x56e39c=_0x56e39c-0x0;let _0x823d44=a888_0xe59b[_0x56e39c];return _0x823d44;};const _0x5950c7=a888_0x823d;'use strict';const _=require(_0x5950c7('0x13')),db=require(_0x5950c7('0x16'))['db'],util=require(_0x5950c7('0x4')),{Op}=require('sequelize'),channels=[_0x5950c7('0xf'),_0x5950c7('0xa'),_0x5950c7('0x8'),_0x5950c7('0x5'),_0x5950c7('0x9'),_0x5950c7('0xc'),_0x5950c7('0x0')];exports[_0x5950c7('0x15')]=function(){return channels;},exports[_0x5950c7('0x11')]=function(_0x43fdd8){const _0x41fcd5=_0x5950c7;return _0x43fdd8=_0x43fdd8['toLowerCase'](),_[_0x41fcd5('0x3')](channels,_0x43fdd8);},exports[_0x5950c7('0xb')]=function(_0x289c2a,_0x369017,_0x13aac1,_0x1f3bbb){const _0x5bdeed=_0x5950c7,_0x1ebc6d={'loginAttempts':_0x369017,'blocked':_0x13aac1};return!_[_0x5bdeed('0xe')](_0x1f3bbb)&&(_0x1ebc6d['blockedAt']=_0x1f3bbb),_0x289c2a[_0x5bdeed('0x12')](_0x1ebc6d);},exports[_0x5950c7('0x6')]=function(_0x4f937d){return new Promise(function(_0x3711b6,_0x12be80){const _0x20f464=a888_0x823d;let _0x40c5b1=0x0;_0x4f937d[_0x20f464('0x14')]!=='agent'&&_0x3711b6(_0x4f937d),db['User'][_0x20f464('0x10')]({'where':{'role':_0x20f464('0x7'),'online':!![],'id':{[Op['ne']]:_0x4f937d['id']}}})[_0x20f464('0x2')](function(_0x372391){const _0x196a12=_0x20f464;return _0x40c5b1=_0x372391,util[_0x196a12('0x6')]();})[_0x20f464('0x2')](function(_0x2edd8d){const _0x3245ab=_0x20f464;if(_0x2edd8d&&_0x2edd8d['agents']&&_0x40c5b1>=_0x2edd8d['agents'])throw Error(_0x3245ab('0xd'));_0x3711b6(_0x4f937d);})[_0x20f464('0x1')](function(_0x2a4962){_0x12be80(_0x2a4962);});});}; \ No newline at end of file diff --git a/server/errors/index.js b/server/errors/index.js index a0df823..92d9c6c 100644 --- a/server/errors/index.js +++ b/server/errors/index.js @@ -1 +1 @@ -const a889_0x4e6f=['send','status','render','exports','json'];(function(_0x2300fd,_0x4e6fee){const _0x389336=function(_0x43ef89){while(--_0x43ef89){_0x2300fd['push'](_0x2300fd['shift']());}};_0x389336(++_0x4e6fee);}(a889_0x4e6f,0x174));const a889_0x3893=function(_0x2300fd,_0x4e6fee){_0x2300fd=_0x2300fd-0x0;let _0x389336=a889_0x4e6f[_0x2300fd];return _0x389336;};const _0x462e4f=a889_0x3893;'use strict';module[_0x462e4f('0x1')][0x194]=function pageNotFound(_0x43ef89,_0x47759f){const _0x1a8be5=_0x462e4f,_0x2c5829='404',_0x14e7c1=0x194,_0x384643={'status':_0x14e7c1};_0x47759f[_0x1a8be5('0x4')](_0x384643[_0x1a8be5('0x4')]),_0x47759f[_0x1a8be5('0x0')](_0x2c5829,{},function(_0x4b6a6f,_0x3e066a){const _0x4fb797=_0x1a8be5;if(_0x4b6a6f)return _0x47759f[_0x4fb797('0x4')](_0x384643[_0x4fb797('0x4')])[_0x4fb797('0x2')](_0x384643);_0x47759f[_0x4fb797('0x3')](_0x3e066a);});}; \ No newline at end of file +const a889_0x1524=['exports','send','404','status','json'];(function(_0x21e0b4,_0x15240c){const _0x4e9822=function(_0x2bdf7c){while(--_0x2bdf7c){_0x21e0b4['push'](_0x21e0b4['shift']());}};_0x4e9822(++_0x15240c);}(a889_0x1524,0x7c));const a889_0x4e98=function(_0x21e0b4,_0x15240c){_0x21e0b4=_0x21e0b4-0x0;let _0x4e9822=a889_0x1524[_0x21e0b4];return _0x4e9822;};const _0x33df78=a889_0x4e98;'use strict';module[_0x33df78('0x1')][0x194]=function pageNotFound(_0x2bdf7c,_0x1b438e){const _0x5bce4c=_0x33df78,_0x52933c=_0x5bce4c('0x3'),_0x3637ec=0x194,_0x2e19de={'status':_0x3637ec};_0x1b438e[_0x5bce4c('0x4')](_0x2e19de[_0x5bce4c('0x4')]),_0x1b438e['render'](_0x52933c,{},function(_0x2eda8a,_0x201c19){const _0x1b928e=_0x5bce4c;if(_0x2eda8a)return _0x1b438e[_0x1b928e('0x4')](_0x2e19de[_0x1b928e('0x4')])[_0x1b928e('0x0')](_0x2e19de);_0x1b438e[_0x1b928e('0x2')](_0x201c19);});}; \ No newline at end of file diff --git a/server/globals.js b/server/globals.js index d23d3c4..ad44f2a 100644 --- a/server/globals.js +++ b/server/globals.js @@ -1 +1 @@ -const a890_0x1ea9=['resolve','path','appRoot'];(function(_0xccfd31,_0x1ea92c){const _0xfdc0c0=function(_0x12c449){while(--_0x12c449){_0xccfd31['push'](_0xccfd31['shift']());}};_0xfdc0c0(++_0x1ea92c);}(a890_0x1ea9,0x197));const a890_0xfdc0=function(_0xccfd31,_0x1ea92c){_0xccfd31=_0xccfd31-0x0;let _0xfdc0c0=a890_0x1ea9[_0xccfd31];return _0xfdc0c0;};const _0x3f76b2=a890_0xfdc0,path=require(_0x3f76b2('0x2'));global[_0x3f76b2('0x0')]=path[_0x3f76b2('0x1')](__dirname); \ No newline at end of file +const a890_0x2159=['appRoot','resolve','path'];(function(_0x3be985,_0x2159b5){const _0x3deeac=function(_0x390c30){while(--_0x390c30){_0x3be985['push'](_0x3be985['shift']());}};_0x3deeac(++_0x2159b5);}(a890_0x2159,0x186));const a890_0x3dee=function(_0x3be985,_0x2159b5){_0x3be985=_0x3be985-0x0;let _0x3deeac=a890_0x2159[_0x3be985];return _0x3deeac;};const _0xfdca57=a890_0x3dee,path=require(_0xfdca57('0x2'));global[_0xfdca57('0x0')]=path[_0xfdca57('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 12143c4..a73f286 100644 --- a/server/migrations/2.0.12.js +++ b/server/migrations/2.0.12.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a891_0x5499=['exports'];(function(_0x2191d4,_0x5499b8){var _0x668cef=function(_0x18aff8){while(--_0x18aff8){_0x2191d4['push'](_0x2191d4['shift']());}};_0x668cef(++_0x5499b8);}(a891_0x5499,0x171));var a891_0x668c=function(_0x2191d4,_0x5499b8){_0x2191d4=_0x2191d4-0x0;var _0x668cef=a891_0x5499[_0x2191d4];return _0x668cef;};var _0x4bbcad=a891_0x668c;'use strict';module[_0x4bbcad('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 11026b5..df09152 100644 --- a/server/migrations/2.0.13.js +++ b/server/migrations/2.0.13.js @@ -1 +1 @@ -const a892_0x25db=['BOOLEAN','rescheduled','stringify','queryInterface','Removed\x20column\x20%s\x20from\x20%s','exports','catch','removeColumn','users','cm_hopper_final','info','reschedule','then','deleted','prototype','addColumn','../config/logger','STRING','renameColumn','deletedat','Added\x20column\x20%s\x20to\x20%s','phoneBarRingInUse','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x58b5ee,_0x25dbba){const _0x582799=function(_0x5aaaeb){while(--_0x5aaaeb){_0x58b5ee['push'](_0x58b5ee['shift']());}};_0x582799(++_0x25dbba);}(a892_0x25db,0xd1));const a892_0x5827=function(_0x58b5ee,_0x25dbba){_0x58b5ee=_0x58b5ee-0x0;let _0x582799=a892_0x25db[_0x58b5ee];return _0x582799;};const _0x4fa524=a892_0x5827;'use strict';const logger=require(_0x4fa524('0xe'))('migration'),Migration=function(_0x5aaaeb){const _0x2cbcab=_0x4fa524;this[_0x2cbcab('0x1')]=_0x5aaaeb;};Migration['prototype'][_0x4fa524('0xd')]=function(_0x13b15e,_0x378f54,_0x3878bc){const _0x44783d=_0x4fa524;return this[_0x44783d('0x1')]['addColumn'](_0x13b15e,_0x378f54,_0x3878bc)[_0x44783d('0xa')](function(){const _0x5c1a6d=_0x44783d;logger['info'](_0x5c1a6d('0x12'),_0x378f54,_0x13b15e);})[_0x44783d('0x4')](function(_0x140b78){const _0x2794ca=_0x44783d;logger[_0x2794ca('0x8')](JSON[_0x2794ca('0x0')](_0x140b78));});},Migration[_0x4fa524('0xc')][_0x4fa524('0x5')]=function(_0x385faf,_0xb15ef8){const _0x2686fb=_0x4fa524;return this['queryInterface']['removeColumn'](_0x385faf,_0xb15ef8)[_0x2686fb('0xa')](function(){const _0xa95ed2=_0x2686fb;logger[_0xa95ed2('0x8')](_0xa95ed2('0x2'),_0xb15ef8,_0x385faf);})[_0x2686fb('0x4')](function(_0x2c67e3){logger['info'](JSON['stringify'](_0x2c67e3));});},Migration[_0x4fa524('0xc')]['renameColumn']=function(_0x2ca35a,_0x5efa4e,_0x5cefab){const _0x17dd11=_0x4fa524;return this[_0x17dd11('0x1')][_0x17dd11('0x10')](_0x2ca35a,_0x5efa4e,_0x5cefab)[_0x17dd11('0xa')](function(){const _0x355394=_0x17dd11;logger[_0x355394('0x8')](_0x355394('0x14'),_0x5efa4e,_0x5cefab,_0x2ca35a);})[_0x17dd11('0x4')](function(_0x16bc97){const _0x218c9f=_0x17dd11;logger[_0x218c9f('0x8')](JSON[_0x218c9f('0x0')](_0x16bc97));});},module[_0x4fa524('0x3')]={'up':function(_0x41e7da,_0x11fab1){const _0x4f5c44=_0x4fa524,_0x321822=new Migration(_0x41e7da);_0x321822[_0x4f5c44('0xd')](_0x4f5c44('0x7'),_0x4f5c44('0x11'),{'type':_0x11fab1['DATE']}),_0x321822[_0x4f5c44('0xd')](_0x4f5c44('0x6'),_0x4f5c44('0x13'),{'type':_0x11fab1[_0x4f5c44('0x15')],'defaultValue':![]}),_0x321822[_0x4f5c44('0xd')](_0x4f5c44('0x7'),_0x4f5c44('0xb'),{'type':_0x11fab1[_0x4f5c44('0xf')],'defaultValue':null}),_0x321822[_0x4f5c44('0x10')](_0x4f5c44('0x7'),_0x4f5c44('0x9'),_0x4f5c44('0x16'));},'down':function(_0x47621a,_0x140550){const _0x57ad02=_0x4fa524,_0x5db62f=new Migration(_0x47621a,_0x140550);_0x5db62f[_0x57ad02('0x5')](_0x57ad02('0x6'),_0x57ad02('0x13')),_0x5db62f[_0x57ad02('0x5')](_0x57ad02('0x7'),_0x57ad02('0x11')),_0x5db62f[_0x57ad02('0x5')]('cm_hopper_final',_0x57ad02('0xb')),_0x5db62f[_0x57ad02('0x10')](_0x57ad02('0x7'),_0x57ad02('0x16'),'reschedule');}}; \ No newline at end of file +const a892_0x49c2=['queryInterface','info','then','DATE','renameColumn','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','reschedule','prototype','Removed\x20column\x20%s\x20from\x20%s','removeColumn','Added\x20column\x20%s\x20to\x20%s','cm_hopper_final','addColumn','rescheduled','deletedat','catch','users','deleted','phoneBarRingInUse','BOOLEAN','../config/logger'];(function(_0x22a53e,_0x49c288){const _0x490d25=function(_0x138f27){while(--_0x138f27){_0x22a53e['push'](_0x22a53e['shift']());}};_0x490d25(++_0x49c288);}(a892_0x49c2,0x1d8));const a892_0x490d=function(_0x22a53e,_0x49c288){_0x22a53e=_0x22a53e-0x0;let _0x490d25=a892_0x49c2[_0x22a53e];return _0x490d25;};const _0x2ddec1=a892_0x490d;'use strict';const logger=require(_0x2ddec1('0xb'))('migration'),Migration=function(_0x138f27){const _0x209f4d=_0x2ddec1;this[_0x209f4d('0xc')]=_0x138f27;};Migration[_0x2ddec1('0x14')][_0x2ddec1('0x3')]=function(_0x5410b0,_0x5608af,_0x269b7d){const _0x5a7f85=_0x2ddec1;return this['queryInterface'][_0x5a7f85('0x3')](_0x5410b0,_0x5608af,_0x269b7d)[_0x5a7f85('0xe')](function(){const _0x36fa55=_0x5a7f85;logger['info'](_0x36fa55('0x1'),_0x5608af,_0x5410b0);})[_0x5a7f85('0x6')](function(_0x348fb4){logger['info'](JSON['stringify'](_0x348fb4));});},Migration[_0x2ddec1('0x14')][_0x2ddec1('0x0')]=function(_0x223bba,_0x100137){const _0x5c00d5=_0x2ddec1;return this[_0x5c00d5('0xc')][_0x5c00d5('0x0')](_0x223bba,_0x100137)[_0x5c00d5('0xe')](function(){const _0x133cbf=_0x5c00d5;logger['info'](_0x133cbf('0x15'),_0x100137,_0x223bba);})[_0x5c00d5('0x6')](function(_0x354a28){const _0x178bb7=_0x5c00d5;logger[_0x178bb7('0xd')](JSON['stringify'](_0x354a28));});},Migration[_0x2ddec1('0x14')]['renameColumn']=function(_0x4a1e2c,_0x59e5e4,_0x178b65){const _0x360ced=_0x2ddec1;return this[_0x360ced('0xc')][_0x360ced('0x10')](_0x4a1e2c,_0x59e5e4,_0x178b65)['then'](function(){const _0x38d98b=_0x360ced;logger[_0x38d98b('0xd')](_0x38d98b('0x12'),_0x59e5e4,_0x178b65,_0x4a1e2c);})[_0x360ced('0x6')](function(_0x5a7958){const _0xbf62c0=_0x360ced;logger[_0xbf62c0('0xd')](JSON[_0xbf62c0('0x11')](_0x5a7958));});},module['exports']={'up':function(_0x43de99,_0xd07a1d){const _0x571daf=_0x2ddec1,_0x1958a7=new Migration(_0x43de99);_0x1958a7[_0x571daf('0x3')](_0x571daf('0x2'),_0x571daf('0x5'),{'type':_0xd07a1d[_0x571daf('0xf')]}),_0x1958a7[_0x571daf('0x3')](_0x571daf('0x7'),_0x571daf('0x9'),{'type':_0xd07a1d[_0x571daf('0xa')],'defaultValue':![]}),_0x1958a7[_0x571daf('0x3')]('cm_hopper_final',_0x571daf('0x8'),{'type':_0xd07a1d['STRING'],'defaultValue':null}),_0x1958a7['renameColumn'](_0x571daf('0x2'),_0x571daf('0x13'),_0x571daf('0x4'));},'down':function(_0x4b9ac3,_0x168723){const _0x414dd1=_0x2ddec1,_0x1376dc=new Migration(_0x4b9ac3,_0x168723);_0x1376dc[_0x414dd1('0x0')]('users',_0x414dd1('0x9')),_0x1376dc[_0x414dd1('0x0')]('cm_hopper_final',_0x414dd1('0x5')),_0x1376dc[_0x414dd1('0x0')](_0x414dd1('0x2'),_0x414dd1('0x8')),_0x1376dc[_0x414dd1('0x10')](_0x414dd1('0x2'),_0x414dd1('0x4'),_0x414dd1('0x13'));}}; \ No newline at end of file diff --git a/server/migrations/2.0.14.js b/server/migrations/2.0.14.js index 9fa08d5..8fbed1f 100644 --- a/server/migrations/2.0.14.js +++ b/server/migrations/2.0.14.js @@ -1 +1 @@ -var a893_0x3209=['exports'];(function(_0x274fb4,_0x3209a4){var _0x34f862=function(_0xeeea78){while(--_0xeeea78){_0x274fb4['push'](_0x274fb4['shift']());}};_0x34f862(++_0x3209a4);}(a893_0x3209,0xc6));var a893_0x34f8=function(_0x274fb4,_0x3209a4){_0x274fb4=_0x274fb4-0x0;var _0x34f862=a893_0x3209[_0x274fb4];return _0x34f862;};var _0x100173=a893_0x34f8;'use strict';module[_0x100173('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a893_0x31fb=['exports'];(function(_0x29ba11,_0x31fb75){var _0x19a9ee=function(_0x36b282){while(--_0x36b282){_0x29ba11['push'](_0x29ba11['shift']());}};_0x19a9ee(++_0x31fb75);}(a893_0x31fb,0x1b4));var a893_0x19a9=function(_0x29ba11,_0x31fb75){_0x29ba11=_0x29ba11-0x0;var _0x19a9ee=a893_0x31fb[_0x29ba11];return _0x19a9ee;};var _0x4e6ddc=a893_0x19a9;'use strict';module[_0x4e6ddc('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 00f9074..70fa985 100644 --- a/server/migrations/2.0.15.js +++ b/server/migrations/2.0.15.js @@ -1 +1 @@ -var a894_0x2d6f=['exports'];(function(_0x104a79,_0x2d6f90){var _0x167116=function(_0x393ebd){while(--_0x393ebd){_0x104a79['push'](_0x104a79['shift']());}};_0x167116(++_0x2d6f90);}(a894_0x2d6f,0x13a));var a894_0x1671=function(_0x104a79,_0x2d6f90){_0x104a79=_0x104a79-0x0;var _0x167116=a894_0x2d6f[_0x104a79];return _0x167116;};var _0xc0424b=a894_0x1671;'use strict';module[_0xc0424b('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a894_0x309f=['exports'];(function(_0x17de2e,_0x309fce){var _0x30f745=function(_0x151741){while(--_0x151741){_0x17de2e['push'](_0x17de2e['shift']());}};_0x30f745(++_0x309fce);}(a894_0x309f,0x193));var a894_0x30f7=function(_0x17de2e,_0x309fce){_0x17de2e=_0x17de2e-0x0;var _0x30f745=a894_0x309f[_0x17de2e];return _0x30f745;};var _0x5d5a0a=a894_0x30f7;'use strict';module[_0x5d5a0a('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 9a46bdb..c0f0d36 100644 --- a/server/migrations/2.0.16.js +++ b/server/migrations/2.0.16.js @@ -1 +1 @@ -var a895_0x1b89=['exports'];(function(_0x280a39,_0x1b8908){var _0x1260d9=function(_0xa866ec){while(--_0xa866ec){_0x280a39['push'](_0x280a39['shift']());}};_0x1260d9(++_0x1b8908);}(a895_0x1b89,0x1dc));var a895_0x1260=function(_0x280a39,_0x1b8908){_0x280a39=_0x280a39-0x0;var _0x1260d9=a895_0x1b89[_0x280a39];return _0x1260d9;};var _0x36b5ca=a895_0x1260;'use strict';module[_0x36b5ca('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a895_0x3f0e=['exports'];(function(_0x687a5d,_0x3f0e87){var _0x2af9a5=function(_0x1611aa){while(--_0x1611aa){_0x687a5d['push'](_0x687a5d['shift']());}};_0x2af9a5(++_0x3f0e87);}(a895_0x3f0e,0x17b));var a895_0x2af9=function(_0x687a5d,_0x3f0e87){_0x687a5d=_0x687a5d-0x0;var _0x2af9a5=a895_0x3f0e[_0x687a5d];return _0x2af9a5;};var _0x254e85=a895_0x2af9;'use strict';module[_0x254e85('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 6651e1f..bbd2834 100644 --- a/server/migrations/2.0.18.js +++ b/server/migrations/2.0.18.js @@ -1 +1 @@ -var a897_0x7d09=['exports'];(function(_0x1efbbf,_0x7d09ba){var _0x29031b=function(_0x896988){while(--_0x896988){_0x1efbbf['push'](_0x1efbbf['shift']());}};_0x29031b(++_0x7d09ba);}(a897_0x7d09,0x1be));var a897_0x2903=function(_0x1efbbf,_0x7d09ba){_0x1efbbf=_0x1efbbf-0x0;var _0x29031b=a897_0x7d09[_0x1efbbf];return _0x29031b;};var _0x20a984=a897_0x2903;'use strict';module[_0x20a984('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a897_0x4472=['exports'];(function(_0x2f4c34,_0x4472f8){var _0x569d0f=function(_0x29fb89){while(--_0x29fb89){_0x2f4c34['push'](_0x2f4c34['shift']());}};_0x569d0f(++_0x4472f8);}(a897_0x4472,0x171));var a897_0x569d=function(_0x2f4c34,_0x4472f8){_0x2f4c34=_0x2f4c34-0x0;var _0x569d0f=a897_0x4472[_0x2f4c34];return _0x569d0f;};var _0x3849c1=a897_0x569d;'use strict';module[_0x3849c1('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.19.js b/server/migrations/2.0.19.js index d09ca14..9649fb5 100644 --- a/server/migrations/2.0.19.js +++ b/server/migrations/2.0.19.js @@ -1 +1 @@ -var a898_0x25d8=['exports'];(function(_0x2493da,_0x25d863){var _0x57572f=function(_0x403873){while(--_0x403873){_0x2493da['push'](_0x2493da['shift']());}};_0x57572f(++_0x25d863);}(a898_0x25d8,0x14b));var a898_0x5757=function(_0x2493da,_0x25d863){_0x2493da=_0x2493da-0x0;var _0x57572f=a898_0x25d8[_0x2493da];return _0x57572f;};var _0x1b656e=a898_0x5757;'use strict';module[_0x1b656e('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a898_0x2eeb=['exports'];(function(_0x5c088c,_0x2eeb1c){var _0x2bebff=function(_0x1dde99){while(--_0x1dde99){_0x5c088c['push'](_0x5c088c['shift']());}};_0x2bebff(++_0x2eeb1c);}(a898_0x2eeb,0x13b));var a898_0x2beb=function(_0x5c088c,_0x2eeb1c){_0x5c088c=_0x5c088c-0x0;var _0x2bebff=a898_0x2eeb[_0x5c088c];return _0x2bebff;};var _0x2ddea4=a898_0x2beb;'use strict';module[_0x2ddea4('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 d3390dd..3c1fdf3 100644 --- a/server/migrations/2.0.20.js +++ b/server/migrations/2.0.20.js @@ -1 +1 @@ -const a899_0x3b23=['queryInterface','dropTable','report_jscripty_sessions','removeColumn','renameColumn','then','info','prototype','Added\x20column\x20%s\x20to\x20%s','jscripty_projects','migration','stringify','../config/logger','catch','addColumn'];(function(_0x18049a,_0x3b237f){const _0x20495f=function(_0x554564){while(--_0x554564){_0x18049a['push'](_0x18049a['shift']());}};_0x20495f(++_0x3b237f);}(a899_0x3b23,0x9e));const a899_0x2049=function(_0x18049a,_0x3b237f){_0x18049a=_0x18049a-0x0;let _0x20495f=a899_0x3b23[_0x18049a];return _0x20495f;};const _0x1e9116=a899_0x2049;'use strict';const logger=require(_0x1e9116('0x4'))(_0x1e9116('0x2')),Migration=function(_0x554564){const _0x3a5a40=_0x1e9116;this[_0x3a5a40('0x7')]=_0x554564;};Migration['prototype'][_0x1e9116('0x6')]=function(_0x1788e5,_0x47dc4d,_0x2d2d83){const _0x3bb299=_0x1e9116;return this[_0x3bb299('0x7')][_0x3bb299('0x6')](_0x1788e5,_0x47dc4d,_0x2d2d83)[_0x3bb299('0xc')](function(){const _0x45555d=_0x3bb299;logger[_0x45555d('0xd')](_0x45555d('0x0'),_0x47dc4d,_0x1788e5);})[_0x3bb299('0x5')](function(_0x1658d2){const _0x4a208a=_0x3bb299;logger[_0x4a208a('0xd')](JSON[_0x4a208a('0x3')](_0x1658d2));});},Migration[_0x1e9116('0xe')][_0x1e9116('0xa')]=function(_0x52ece7,_0x27c230){const _0x3c0c35=_0x1e9116;return this[_0x3c0c35('0x7')][_0x3c0c35('0xa')](_0x52ece7,_0x27c230)[_0x3c0c35('0xc')](function(){const _0x25d409=_0x3c0c35;logger[_0x25d409('0xd')]('Removed\x20column\x20%s\x20from\x20%s',_0x27c230,_0x52ece7);})[_0x3c0c35('0x5')](function(_0x5a5b3d){const _0x16df73=_0x3c0c35;logger[_0x16df73('0xd')](JSON[_0x16df73('0x3')](_0x5a5b3d));});},Migration[_0x1e9116('0xe')][_0x1e9116('0xb')]=function(_0x28764e,_0x28ecea,_0x48a7cf){const _0x34bda5=_0x1e9116;return this[_0x34bda5('0x7')][_0x34bda5('0xb')](_0x28764e,_0x28ecea,_0x48a7cf)['then'](function(){const _0x223d8f=_0x34bda5;logger[_0x223d8f('0xd')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x28ecea,_0x48a7cf,_0x28764e);})[_0x34bda5('0x5')](function(_0x37d232){const _0x396977=_0x34bda5;logger[_0x396977('0xd')](JSON[_0x396977('0x3')](_0x37d232));});},Migration[_0x1e9116('0xe')]['dropTable']=function(_0x52749e){const _0x18007f=_0x1e9116;return this[_0x18007f('0x7')][_0x18007f('0x8')](_0x52749e)[_0x18007f('0xc')](function(){const _0x3ba8de=_0x18007f;logger[_0x3ba8de('0xd')]('table\x20dropped\x20%s',_0x52749e);})[_0x18007f('0x5')](function(_0x4eb44d){const _0x442606=_0x18007f;logger[_0x442606('0xd')](JSON[_0x442606('0x3')](_0x4eb44d));});},module['exports']={'up':function(_0x2fe90d){const _0x1826d8=_0x1e9116,_0x55ddb8=new Migration(_0x2fe90d);_0x55ddb8['dropTable'](_0x1826d8('0x1')),_0x55ddb8[_0x1826d8('0x8')]('report_jscripty_inputs'),_0x55ddb8['dropTable']('report_jscripty_questions'),_0x55ddb8[_0x1826d8('0x8')](_0x1826d8('0x9'));},'down':function(){}}; \ No newline at end of file +const a899_0x2a51=['exports','migration','report_jscripty_questions','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','report_jscripty_sessions','removeColumn','addColumn','queryInterface','renameColumn','stringify','Removed\x20column\x20%s\x20from\x20%s','dropTable','then','table\x20dropped\x20%s','catch','prototype'];(function(_0x483003,_0x2a5150){const _0x4cde4f=function(_0x3c5015){while(--_0x3c5015){_0x483003['push'](_0x483003['shift']());}};_0x4cde4f(++_0x2a5150);}(a899_0x2a51,0x1c7));const a899_0x4cde=function(_0x483003,_0x2a5150){_0x483003=_0x483003-0x0;let _0x4cde4f=a899_0x2a51[_0x483003];return _0x4cde4f;};const _0x485129=a899_0x4cde;'use strict';const logger=require('../config/logger')(_0x485129('0x5')),Migration=function(_0x3c5015){const _0x122358=_0x485129;this[_0x122358('0xc')]=_0x3c5015;};Migration['prototype']['addColumn']=function(_0x2911d3,_0x5d784d,_0x4488df){const _0x21a6e6=_0x485129;return this['queryInterface'][_0x21a6e6('0xb')](_0x2911d3,_0x5d784d,_0x4488df)[_0x21a6e6('0x0')](function(){const _0x570efb=_0x21a6e6;logger[_0x570efb('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0x5d784d,_0x2911d3);})[_0x21a6e6('0x2')](function(_0x2226a2){const _0x3cf682=_0x21a6e6;logger['info'](JSON[_0x3cf682('0xe')](_0x2226a2));});},Migration['prototype'][_0x485129('0xa')]=function(_0x4a3ef8,_0x527aaf){const _0x2c0a26=_0x485129;return this[_0x2c0a26('0xc')][_0x2c0a26('0xa')](_0x4a3ef8,_0x527aaf)['then'](function(){const _0xb239d8=_0x2c0a26;logger[_0xb239d8('0x7')](_0xb239d8('0xf'),_0x527aaf,_0x4a3ef8);})[_0x2c0a26('0x2')](function(_0x46257f){const _0xcbecac=_0x2c0a26;logger['info'](JSON[_0xcbecac('0xe')](_0x46257f));});},Migration[_0x485129('0x3')]['renameColumn']=function(_0x46a2a5,_0x20f76c,_0x442222){const _0x158a7e=_0x485129;return this[_0x158a7e('0xc')][_0x158a7e('0xd')](_0x46a2a5,_0x20f76c,_0x442222)['then'](function(){const _0x2b358d=_0x158a7e;logger[_0x2b358d('0x7')](_0x2b358d('0x8'),_0x20f76c,_0x442222,_0x46a2a5);})['catch'](function(_0x559394){const _0x2af516=_0x158a7e;logger[_0x2af516('0x7')](JSON[_0x2af516('0xe')](_0x559394));});},Migration[_0x485129('0x3')]['dropTable']=function(_0x2013da){const _0x2cc411=_0x485129;return this['queryInterface'][_0x2cc411('0x10')](_0x2013da)[_0x2cc411('0x0')](function(){const _0x1c37ee=_0x2cc411;logger[_0x1c37ee('0x7')](_0x1c37ee('0x1'),_0x2013da);})[_0x2cc411('0x2')](function(_0x1535aa){const _0x1945c8=_0x2cc411;logger[_0x1945c8('0x7')](JSON[_0x1945c8('0xe')](_0x1535aa));});},module[_0x485129('0x4')]={'up':function(_0x3215cd){const _0x5521c2=_0x485129,_0x2a7c35=new Migration(_0x3215cd);_0x2a7c35[_0x5521c2('0x10')]('jscripty_projects'),_0x2a7c35[_0x5521c2('0x10')]('report_jscripty_inputs'),_0x2a7c35['dropTable'](_0x5521c2('0x6')),_0x2a7c35[_0x5521c2('0x10')](_0x5521c2('0x9'));},'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 ace1863..d934c6f 100644 --- a/server/migrations/2.0.21.js +++ b/server/migrations/2.0.21.js @@ -1 +1 @@ -const a900_0x4568=['stringify','Added\x20column\x20%s\x20to\x20%s','report_jscripty_inputs','jscripty_projects','then','Removed\x20column\x20%s\x20from\x20%s','exports','../config/logger','report_jscripty_sessions','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','queryInterface','prototype','removeColumn','addColumn','renameColumn','report_jscripty_questions','catch','dropTable'];(function(_0x56178a,_0x4568d8){const _0x3fadfa=function(_0x2fb18f){while(--_0x2fb18f){_0x56178a['push'](_0x56178a['shift']());}};_0x3fadfa(++_0x4568d8);}(a900_0x4568,0xbe));const a900_0x3fad=function(_0x56178a,_0x4568d8){_0x56178a=_0x56178a-0x0;let _0x3fadfa=a900_0x4568[_0x56178a];return _0x3fadfa;};const _0xd5a1d5=a900_0x3fad;'use strict';const logger=require(_0xd5a1d5('0x11'))('migration'),Migration=function(_0x2fb18f){const _0x5a0c55=_0xd5a1d5;this[_0x5a0c55('0x2')]=_0x2fb18f;};Migration[_0xd5a1d5('0x3')][_0xd5a1d5('0x5')]=function(_0x457e33,_0x3b8b43,_0x36b16f){const _0x2e76f5=_0xd5a1d5;return this[_0x2e76f5('0x2')][_0x2e76f5('0x5')](_0x457e33,_0x3b8b43,_0x36b16f)[_0x2e76f5('0xe')](function(){const _0x57694e=_0x2e76f5;logger[_0x57694e('0x1')](_0x57694e('0xb'),_0x3b8b43,_0x457e33);})[_0x2e76f5('0x8')](function(_0x2d3d42){const _0x313b29=_0x2e76f5;logger[_0x313b29('0x1')](JSON[_0x313b29('0xa')](_0x2d3d42));});},Migration[_0xd5a1d5('0x3')][_0xd5a1d5('0x4')]=function(_0xda8e4d,_0x2d64ee){const _0x259cd3=_0xd5a1d5;return this[_0x259cd3('0x2')][_0x259cd3('0x4')](_0xda8e4d,_0x2d64ee)[_0x259cd3('0xe')](function(){const _0x14540a=_0x259cd3;logger[_0x14540a('0x1')](_0x14540a('0xf'),_0x2d64ee,_0xda8e4d);})[_0x259cd3('0x8')](function(_0x173f95){const _0x359b53=_0x259cd3;logger[_0x359b53('0x1')](JSON[_0x359b53('0xa')](_0x173f95));});},Migration['prototype'][_0xd5a1d5('0x6')]=function(_0x5c7734,_0x515c13,_0x1e10d7){const _0x1fec21=_0xd5a1d5;return this[_0x1fec21('0x2')][_0x1fec21('0x6')](_0x5c7734,_0x515c13,_0x1e10d7)['then'](function(){const _0x32cd8a=_0x1fec21;logger[_0x32cd8a('0x1')](_0x32cd8a('0x0'),_0x515c13,_0x1e10d7,_0x5c7734);})['catch'](function(_0x36a387){const _0x530414=_0x1fec21;logger[_0x530414('0x1')](JSON[_0x530414('0xa')](_0x36a387));});},Migration[_0xd5a1d5('0x3')][_0xd5a1d5('0x9')]=function(_0x52ea43){const _0x4b85c8=_0xd5a1d5;return this[_0x4b85c8('0x2')][_0x4b85c8('0x9')](_0x52ea43)[_0x4b85c8('0xe')](function(){const _0x18549d=_0x4b85c8;logger[_0x18549d('0x1')](_0x18549d('0x13'),_0x52ea43);})['catch'](function(_0x406e71){const _0xf93ba1=_0x4b85c8;logger[_0xf93ba1('0x1')](JSON[_0xf93ba1('0xa')](_0x406e71));});},module[_0xd5a1d5('0x10')]={'up':function(_0x59ce5e){const _0xbc1344=_0xd5a1d5,_0x2a5458=new Migration(_0x59ce5e);_0x2a5458[_0xbc1344('0x9')](_0xbc1344('0xd'),{'force':!![]}),_0x2a5458['dropTable'](_0xbc1344('0xc'),{'force':!![]}),_0x2a5458[_0xbc1344('0x9')](_0xbc1344('0x7'),{'force':!![]}),_0x2a5458[_0xbc1344('0x9')](_0xbc1344('0x12'),{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a900_0x234a=['removeColumn','jscripty_projects','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','stringify','addColumn','report_jscripty_sessions','catch','../config/logger','Added\x20column\x20%s\x20to\x20%s','renameColumn','then','prototype','info','dropTable','report_jscripty_questions','queryInterface'];(function(_0x5a54ed,_0x234a08){const _0x4556d2=function(_0x44ef04){while(--_0x44ef04){_0x5a54ed['push'](_0x5a54ed['shift']());}};_0x4556d2(++_0x234a08);}(a900_0x234a,0xba));const a900_0x4556=function(_0x5a54ed,_0x234a08){_0x5a54ed=_0x5a54ed-0x0;let _0x4556d2=a900_0x234a[_0x5a54ed];return _0x4556d2;};const _0x20232a=a900_0x4556;'use strict';const logger=require(_0x20232a('0xd'))('migration'),Migration=function(_0x44ef04){const _0x3e68df=_0x20232a;this[_0x3e68df('0x5')]=_0x44ef04;};Migration[_0x20232a('0x1')][_0x20232a('0xa')]=function(_0x44ac15,_0x57bd01,_0x4ff959){const _0x5ba61d=_0x20232a;return this[_0x5ba61d('0x5')][_0x5ba61d('0xa')](_0x44ac15,_0x57bd01,_0x4ff959)[_0x5ba61d('0x0')](function(){const _0x30c473=_0x5ba61d;logger[_0x30c473('0x2')](_0x30c473('0xe'),_0x57bd01,_0x44ac15);})[_0x5ba61d('0xc')](function(_0x2fcd50){const _0x5d1fb0=_0x5ba61d;logger[_0x5d1fb0('0x2')](JSON[_0x5d1fb0('0x9')](_0x2fcd50));});},Migration[_0x20232a('0x1')][_0x20232a('0x6')]=function(_0x4cee0d,_0x28f84c){const _0x17475e=_0x20232a;return this[_0x17475e('0x5')][_0x17475e('0x6')](_0x4cee0d,_0x28f84c)[_0x17475e('0x0')](function(){const _0x5b66d2=_0x17475e;logger[_0x5b66d2('0x2')]('Removed\x20column\x20%s\x20from\x20%s',_0x28f84c,_0x4cee0d);})[_0x17475e('0xc')](function(_0x3aa896){const _0x2dd92b=_0x17475e;logger[_0x2dd92b('0x2')](JSON[_0x2dd92b('0x9')](_0x3aa896));});},Migration[_0x20232a('0x1')][_0x20232a('0xf')]=function(_0x146e30,_0x22bb89,_0x4aa787){const _0x569e93=_0x20232a;return this['queryInterface']['renameColumn'](_0x146e30,_0x22bb89,_0x4aa787)[_0x569e93('0x0')](function(){const _0x5ea76b=_0x569e93;logger[_0x5ea76b('0x2')](_0x5ea76b('0x8'),_0x22bb89,_0x4aa787,_0x146e30);})[_0x569e93('0xc')](function(_0x419205){const _0x34ec29=_0x569e93;logger[_0x34ec29('0x2')](JSON[_0x34ec29('0x9')](_0x419205));});},Migration[_0x20232a('0x1')][_0x20232a('0x3')]=function(_0x37957e){const _0x48345a=_0x20232a;return this['queryInterface'][_0x48345a('0x3')](_0x37957e)[_0x48345a('0x0')](function(){logger['info']('table\x20dropped\x20%s',_0x37957e);})[_0x48345a('0xc')](function(_0x35e8a6){const _0x153fda=_0x48345a;logger['info'](JSON[_0x153fda('0x9')](_0x35e8a6));});},module['exports']={'up':function(_0xddf051){const _0x37a0a9=_0x20232a,_0xd23d45=new Migration(_0xddf051);_0xd23d45['dropTable'](_0x37a0a9('0x7'),{'force':!![]}),_0xd23d45[_0x37a0a9('0x3')]('report_jscripty_inputs',{'force':!![]}),_0xd23d45[_0x37a0a9('0x3')](_0x37a0a9('0x4'),{'force':!![]}),_0xd23d45[_0x37a0a9('0x3')](_0x37a0a9('0xb'),{'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 1bdc5e2..d8f8f43 100644 --- a/server/migrations/2.0.22.js +++ b/server/migrations/2.0.22.js @@ -1 +1 @@ -const a901_0x46c2=['removeColumn','dropTable','stringify','prototype','info','exports','addColumn','report_jscripty_answers','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','../config/logger','then','renameColumn','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s'];(function(_0xf8f996,_0x46c216){const _0x145de2=function(_0x494afc){while(--_0x494afc){_0xf8f996['push'](_0xf8f996['shift']());}};_0x145de2(++_0x46c216);}(a901_0x46c2,0x196));const a901_0x145d=function(_0xf8f996,_0x46c216){_0xf8f996=_0xf8f996-0x0;let _0x145de2=a901_0x46c2[_0xf8f996];return _0x145de2;};const _0x4a22a1=a901_0x145d;'use strict';const logger=require(_0x4a22a1('0x5'))('migration'),Migration=function(_0x494afc){this['queryInterface']=_0x494afc;};Migration[_0x4a22a1('0xd')][_0x4a22a1('0x0')]=function(_0x244925,_0x5743f7,_0x59b317){const _0x108881=_0x4a22a1;return this[_0x108881('0x4')]['addColumn'](_0x244925,_0x5743f7,_0x59b317)[_0x108881('0x6')](function(){const _0x24d84b=_0x108881;logger[_0x24d84b('0xe')](_0x24d84b('0x9'),_0x5743f7,_0x244925);})[_0x108881('0x2')](function(_0xaa7596){const _0x78af4b=_0x108881;logger[_0x78af4b('0xe')](JSON[_0x78af4b('0xc')](_0xaa7596));});},Migration[_0x4a22a1('0xd')][_0x4a22a1('0xa')]=function(_0x127598,_0x193e76){const _0x582ba3=_0x4a22a1;return this[_0x582ba3('0x4')][_0x582ba3('0xa')](_0x127598,_0x193e76)[_0x582ba3('0x6')](function(){const _0x5deb61=_0x582ba3;logger[_0x5deb61('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x193e76,_0x127598);})[_0x582ba3('0x2')](function(_0x149e14){const _0x23f9d1=_0x582ba3;logger[_0x23f9d1('0xe')](JSON['stringify'](_0x149e14));});},Migration['prototype'][_0x4a22a1('0x7')]=function(_0x268158,_0x20e846,_0x416a18){const _0x1d850c=_0x4a22a1;return this[_0x1d850c('0x4')]['renameColumn'](_0x268158,_0x20e846,_0x416a18)['then'](function(){const _0x318597=_0x1d850c;logger['info'](_0x318597('0x3'),_0x20e846,_0x416a18,_0x268158);})['catch'](function(_0x58c105){const _0x342b6a=_0x1d850c;logger[_0x342b6a('0xe')](JSON[_0x342b6a('0xc')](_0x58c105));});},Migration['prototype'][_0x4a22a1('0xb')]=function(_0x2febdb){const _0x172c98=_0x4a22a1;return this[_0x172c98('0x4')][_0x172c98('0xb')](_0x2febdb)[_0x172c98('0x6')](function(){const _0x372bff=_0x172c98;logger[_0x372bff('0xe')](_0x372bff('0x8'),_0x2febdb);})['catch'](function(_0x38078e){const _0x5e2c59=_0x172c98;logger['info'](JSON[_0x5e2c59('0xc')](_0x38078e));});},module[_0x4a22a1('0xf')]={'up':function(_0x25b51d){const _0x3d9267=_0x4a22a1,_0x42df1a=new Migration(_0x25b51d);_0x42df1a[_0x3d9267('0xb')](_0x3d9267('0x1'),{'force':!![]}),_0x42df1a['dropTable']('report_jscripty_questions',{'force':!![]}),_0x42df1a[_0x3d9267('0xb')]('report_jscripty_sessions',{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a901_0x12d4=['Removed\x20column\x20%s\x20from\x20%s','dropTable','queryInterface','table\x20dropped\x20%s','then','catch','addColumn','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','renameColumn','exports','../config/logger','info','stringify','prototype','migration'];(function(_0x5ab67e,_0x12d4ed){const _0x17b785=function(_0x3b4ef0){while(--_0x3b4ef0){_0x5ab67e['push'](_0x5ab67e['shift']());}};_0x17b785(++_0x12d4ed);}(a901_0x12d4,0x7a));const a901_0x17b7=function(_0x5ab67e,_0x12d4ed){_0x5ab67e=_0x5ab67e-0x0;let _0x17b785=a901_0x12d4[_0x5ab67e];return _0x17b785;};const _0x27ac98=a901_0x17b7;'use strict';const logger=require(_0x27ac98('0x9'))(_0x27ac98('0xd')),Migration=function(_0x3b4ef0){const _0x264a7f=_0x27ac98;this[_0x264a7f('0x10')]=_0x3b4ef0;};Migration['prototype'][_0x27ac98('0x3')]=function(_0x38707c,_0xb80fcc,_0x13b528){const _0x3fd2d8=_0x27ac98;return this[_0x3fd2d8('0x10')][_0x3fd2d8('0x3')](_0x38707c,_0xb80fcc,_0x13b528)[_0x3fd2d8('0x1')](function(){const _0x5f01ef=_0x3fd2d8;logger[_0x5f01ef('0xa')](_0x5f01ef('0x4'),_0xb80fcc,_0x38707c);})[_0x3fd2d8('0x2')](function(_0x41fc7f){const _0x266f7e=_0x3fd2d8;logger[_0x266f7e('0xa')](JSON['stringify'](_0x41fc7f));});},Migration[_0x27ac98('0xc')]['removeColumn']=function(_0x4dcbe9,_0x2ec7f7){const _0x3e4853=_0x27ac98;return this['queryInterface'][_0x3e4853('0x6')](_0x4dcbe9,_0x2ec7f7)[_0x3e4853('0x1')](function(){const _0x15ba59=_0x3e4853;logger[_0x15ba59('0xa')](_0x15ba59('0xe'),_0x2ec7f7,_0x4dcbe9);})[_0x3e4853('0x2')](function(_0xafb690){const _0x4ceadc=_0x3e4853;logger['info'](JSON[_0x4ceadc('0xb')](_0xafb690));});},Migration[_0x27ac98('0xc')][_0x27ac98('0x7')]=function(_0x3b5a4b,_0x555ee7,_0x569c0a){const _0x339a1b=_0x27ac98;return this['queryInterface'][_0x339a1b('0x7')](_0x3b5a4b,_0x555ee7,_0x569c0a)['then'](function(){const _0x41d96d=_0x339a1b;logger[_0x41d96d('0xa')](_0x41d96d('0x5'),_0x555ee7,_0x569c0a,_0x3b5a4b);})[_0x339a1b('0x2')](function(_0x572c87){const _0x3e36a5=_0x339a1b;logger[_0x3e36a5('0xa')](JSON[_0x3e36a5('0xb')](_0x572c87));});},Migration[_0x27ac98('0xc')][_0x27ac98('0xf')]=function(_0x414ada){const _0x5d9477=_0x27ac98;return this['queryInterface'][_0x5d9477('0xf')](_0x414ada)[_0x5d9477('0x1')](function(){const _0x51c00a=_0x5d9477;logger[_0x51c00a('0xa')](_0x51c00a('0x0'),_0x414ada);})['catch'](function(_0x2b70da){const _0x3f5061=_0x5d9477;logger[_0x3f5061('0xa')](JSON[_0x3f5061('0xb')](_0x2b70da));});},module[_0x27ac98('0x8')]={'up':function(_0x2240d4){const _0x55413d=_0x27ac98,_0x377e45=new Migration(_0x2240d4);_0x377e45[_0x55413d('0xf')]('report_jscripty_answers',{'force':!![]}),_0x377e45[_0x55413d('0xf')]('report_jscripty_questions',{'force':!![]}),_0x377e45[_0x55413d('0xf')]('report_jscripty_sessions',{'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 3e223ff..1bfaf5f 100644 --- a/server/migrations/2.0.23.js +++ b/server/migrations/2.0.23.js @@ -1 +1 @@ -const a902_0x50db=['renameColumn','Removed\x20column\x20%s\x20from\x20%s','removeColumn','int_zendesk_accounts','integrationTab','exports','then','openchannel_messages','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','type','dropTable','catch','../config/logger','ENUM','addColumn','info','Added\x20column\x20%s\x20to\x20%s','user_has_openchannel_rooms','int_salesforce_accounts','queryInterface','stringify'];(function(_0x3c317b,_0x50db54){const _0x4679db=function(_0x1fec39){while(--_0x1fec39){_0x3c317b['push'](_0x3c317b['shift']());}};_0x4679db(++_0x50db54);}(a902_0x50db,0x71));const a902_0x4679=function(_0x3c317b,_0x50db54){_0x3c317b=_0x3c317b-0x0;let _0x4679db=a902_0x50db[_0x3c317b];return _0x4679db;};const _0x1af268=a902_0x4679;'use strict';const logger=require(_0x1af268('0x10'))('migration'),Migration=function(_0x1fec39){this['queryInterface']=_0x1fec39;};Migration['prototype']['addColumn']=function(_0x4ba749,_0x5e7d49,_0x2008b9){const _0x51a2c2=_0x1af268;return this[_0x51a2c2('0x0')][_0x51a2c2('0x12')](_0x4ba749,_0x5e7d49,_0x2008b9)[_0x51a2c2('0x8')](function(){const _0x3daaab=_0x51a2c2;logger[_0x3daaab('0x13')](_0x3daaab('0x14'),_0x5e7d49,_0x4ba749);})[_0x51a2c2('0xf')](function(_0x2cbe7f){const _0x597946=_0x51a2c2;logger[_0x597946('0x13')](JSON[_0x597946('0x1')](_0x2cbe7f));});},Migration[_0x1af268('0xc')]['removeColumn']=function(_0xdd3308,_0x2a2110){const _0x13610d=_0x1af268;return this[_0x13610d('0x0')][_0x13610d('0x4')](_0xdd3308,_0x2a2110)[_0x13610d('0x8')](function(){const _0x22b9d4=_0x13610d;logger[_0x22b9d4('0x13')](_0x22b9d4('0x3'),_0x2a2110,_0xdd3308);})[_0x13610d('0xf')](function(_0xf9f9c0){const _0x10861c=_0x13610d;logger[_0x10861c('0x13')](JSON[_0x10861c('0x1')](_0xf9f9c0));});},Migration['prototype'][_0x1af268('0x2')]=function(_0x1e439e,_0x217329,_0x30320d){const _0x15cb08=_0x1af268;return this[_0x15cb08('0x0')]['renameColumn'](_0x1e439e,_0x217329,_0x30320d)[_0x15cb08('0x8')](function(){const _0x5bbf8f=_0x15cb08;logger[_0x5bbf8f('0x13')](_0x5bbf8f('0xb'),_0x217329,_0x30320d,_0x1e439e);})['catch'](function(_0x3249bd){const _0x520322=_0x15cb08;logger['info'](JSON[_0x520322('0x1')](_0x3249bd));});},Migration[_0x1af268('0xc')][_0x1af268('0xe')]=function(_0x37d4ad){const _0xa86f5=_0x1af268;return this[_0xa86f5('0x0')][_0xa86f5('0xe')](_0x37d4ad)[_0xa86f5('0x8')](function(){const _0x5490e2=_0xa86f5;logger[_0x5490e2('0x13')](_0x5490e2('0xa'),_0x37d4ad);})[_0xa86f5('0xf')](function(_0x1c954f){const _0x233299=_0xa86f5;logger[_0x233299('0x13')](JSON['stringify'](_0x1c954f));});},module[_0x1af268('0x7')]={'up':function(_0x4d14ca,_0x12af7e){const _0x2e558a=_0x1af268,_0x27c488=new Migration(_0x4d14ca);_0x27c488['addColumn'](_0x2e558a('0x16'),_0x2e558a('0xd'),{'type':_0x12af7e[_0x2e558a('0x11')](_0x2e558a('0x6'),'newTab'),'defaultValue':'integrationTab'}),_0x27c488[_0x2e558a('0x12')](_0x2e558a('0x5'),_0x2e558a('0xd'),{'type':_0x12af7e['ENUM'](_0x2e558a('0x6'),'newTab'),'defaultValue':_0x2e558a('0x6')}),_0x27c488[_0x2e558a('0xe')](_0x2e558a('0x15'),{'force':!![]}),_0x27c488[_0x2e558a('0xe')](_0x2e558a('0x9'),{'force':!![]}),_0x27c488[_0x2e558a('0xe')]('openchannel_rooms',{'force':!![]}),_0x27c488[_0x2e558a('0xe')]('openchannel_applications',{'force':!![]}),_0x27c488[_0x2e558a('0xe')]('openchannel_accounts',{'force':!![]});},'down':function(_0x4cbd80){const _0x398619=_0x1af268,_0x479c61=new Migration(_0x4cbd80);_0x479c61[_0x398619('0x4')]('int_salesforce_accounts',_0x398619('0xd')),_0x479c61[_0x398619('0x4')](_0x398619('0x5'),_0x398619('0xd'));}}; \ No newline at end of file +const a902_0x2634=['catch','removeColumn','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','openchannel_applications','exports','newTab','prototype','integrationTab','openchannel_accounts','int_salesforce_accounts','queryInterface','../config/logger','renameColumn','type','Removed\x20column\x20%s\x20from\x20%s','ENUM','stringify','openchannel_rooms','int_zendesk_accounts','addColumn','user_has_openchannel_rooms','dropTable','info','then'];(function(_0xb9d658,_0x263471){const _0x151a9c=function(_0x54ab96){while(--_0x54ab96){_0xb9d658['push'](_0xb9d658['shift']());}};_0x151a9c(++_0x263471);}(a902_0x2634,0x125));const a902_0x151a=function(_0xb9d658,_0x263471){_0xb9d658=_0xb9d658-0x0;let _0x151a9c=a902_0x2634[_0xb9d658];return _0x151a9c;};const _0x4f72a0=a902_0x151a;'use strict';const logger=require(_0x4f72a0('0x13'))('migration'),Migration=function(_0x54ab96){const _0x51d554=_0x4f72a0;this[_0x51d554('0x12')]=_0x54ab96;};Migration[_0x4f72a0('0xe')]['addColumn']=function(_0x1a009c,_0x3a20d0,_0x8149d2){const _0x24c9b4=_0x4f72a0;return this[_0x24c9b4('0x12')][_0x24c9b4('0x2')](_0x1a009c,_0x3a20d0,_0x8149d2)[_0x24c9b4('0x6')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3a20d0,_0x1a009c);})['catch'](function(_0x308171){const _0x2bfbad=_0x24c9b4;logger[_0x2bfbad('0x5')](JSON[_0x2bfbad('0x18')](_0x308171));});},Migration[_0x4f72a0('0xe')][_0x4f72a0('0x8')]=function(_0x54f1ab,_0x1f2682){const _0x301711=_0x4f72a0;return this[_0x301711('0x12')][_0x301711('0x8')](_0x54f1ab,_0x1f2682)[_0x301711('0x6')](function(){const _0x38cc1c=_0x301711;logger[_0x38cc1c('0x5')](_0x38cc1c('0x16'),_0x1f2682,_0x54f1ab);})[_0x301711('0x7')](function(_0xfcb354){const _0x29c471=_0x301711;logger[_0x29c471('0x5')](JSON[_0x29c471('0x18')](_0xfcb354));});},Migration[_0x4f72a0('0xe')][_0x4f72a0('0x14')]=function(_0x2d1c2d,_0x56653e,_0xd0a759){const _0x4673f7=_0x4f72a0;return this['queryInterface'][_0x4673f7('0x14')](_0x2d1c2d,_0x56653e,_0xd0a759)[_0x4673f7('0x6')](function(){const _0x395977=_0x4673f7;logger[_0x395977('0x5')](_0x395977('0xa'),_0x56653e,_0xd0a759,_0x2d1c2d);})['catch'](function(_0x417f9a){const _0x2937ea=_0x4673f7;logger[_0x2937ea('0x5')](JSON['stringify'](_0x417f9a));});},Migration['prototype']['dropTable']=function(_0x1f50d2){const _0x1a0242=_0x4f72a0;return this[_0x1a0242('0x12')][_0x1a0242('0x4')](_0x1f50d2)[_0x1a0242('0x6')](function(){const _0x2745a5=_0x1a0242;logger['info'](_0x2745a5('0x9'),_0x1f50d2);})[_0x1a0242('0x7')](function(_0x5434df){const _0x4e8ab2=_0x1a0242;logger[_0x4e8ab2('0x5')](JSON[_0x4e8ab2('0x18')](_0x5434df));});},module[_0x4f72a0('0xc')]={'up':function(_0x21f538,_0x6769e6){const _0x369760=_0x4f72a0,_0x5cf880=new Migration(_0x21f538);_0x5cf880[_0x369760('0x2')](_0x369760('0x11'),_0x369760('0x15'),{'type':_0x6769e6[_0x369760('0x17')](_0x369760('0xf'),_0x369760('0xd')),'defaultValue':'integrationTab'}),_0x5cf880[_0x369760('0x2')](_0x369760('0x1'),'type',{'type':_0x6769e6['ENUM'](_0x369760('0xf'),_0x369760('0xd')),'defaultValue':_0x369760('0xf')}),_0x5cf880['dropTable'](_0x369760('0x3'),{'force':!![]}),_0x5cf880[_0x369760('0x4')]('openchannel_messages',{'force':!![]}),_0x5cf880[_0x369760('0x4')](_0x369760('0x0'),{'force':!![]}),_0x5cf880[_0x369760('0x4')](_0x369760('0xb'),{'force':!![]}),_0x5cf880['dropTable'](_0x369760('0x10'),{'force':!![]});},'down':function(_0x14d106){const _0x5a85e9=_0x4f72a0,_0x3b0dae=new Migration(_0x14d106);_0x3b0dae[_0x5a85e9('0x8')](_0x5a85e9('0x11'),'type'),_0x3b0dae[_0x5a85e9('0x8')](_0x5a85e9('0x1'),_0x5a85e9('0x15'));}}; \ No newline at end of file diff --git a/server/migrations/2.0.24.js b/server/migrations/2.0.24.js index 7c8729e..1d425ca 100644 --- a/server/migrations/2.0.24.js +++ b/server/migrations/2.0.24.js @@ -1 +1 @@ -const a903_0x2dab=['queryInterface','prototype','Added\x20column\x20%s\x20to\x20%s','migration','stringify','Removed\x20column\x20%s\x20from\x20%s','renameColumn','removeColumn','then','dropTable','table\x20dropped\x20%s','addColumn','info','catch','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x1dfbf5,_0x2dabbe){const _0x43a42c=function(_0x189d8a){while(--_0x189d8a){_0x1dfbf5['push'](_0x1dfbf5['shift']());}};_0x43a42c(++_0x2dabbe);}(a903_0x2dab,0x14f));const a903_0x43a4=function(_0x1dfbf5,_0x2dabbe){_0x1dfbf5=_0x1dfbf5-0x0;let _0x43a42c=a903_0x2dab[_0x1dfbf5];return _0x43a42c;};const _0x23090d=a903_0x43a4;'use strict';const logger=require('../config/logger')(_0x23090d('0x4')),Migration=function(_0x189d8a){const _0x6f6f5c=_0x23090d;this[_0x6f6f5c('0x1')]=_0x189d8a;};Migration[_0x23090d('0x2')][_0x23090d('0xc')]=function(_0x326672,_0x12d376,_0x10146b){const _0x1d8161=_0x23090d;return this[_0x1d8161('0x1')][_0x1d8161('0xc')](_0x326672,_0x12d376,_0x10146b)[_0x1d8161('0x9')](function(){const _0x4985aa=_0x1d8161;logger[_0x4985aa('0xd')](_0x4985aa('0x3'),_0x12d376,_0x326672);})[_0x1d8161('0xe')](function(_0x4c4788){const _0x216593=_0x1d8161;logger[_0x216593('0xd')](JSON[_0x216593('0x5')](_0x4c4788));});},Migration[_0x23090d('0x2')][_0x23090d('0x8')]=function(_0x198490,_0x468922){const _0x22b4cc=_0x23090d;return this[_0x22b4cc('0x1')][_0x22b4cc('0x8')](_0x198490,_0x468922)[_0x22b4cc('0x9')](function(){const _0x119fd7=_0x22b4cc;logger[_0x119fd7('0xd')](_0x119fd7('0x6'),_0x468922,_0x198490);})[_0x22b4cc('0xe')](function(_0x3cabac){const _0x3ca2e5=_0x22b4cc;logger['info'](JSON[_0x3ca2e5('0x5')](_0x3cabac));});},Migration[_0x23090d('0x2')][_0x23090d('0x7')]=function(_0x4f5d54,_0x531184,_0x5e972c){const _0x384cd4=_0x23090d;return this['queryInterface']['renameColumn'](_0x4f5d54,_0x531184,_0x5e972c)[_0x384cd4('0x9')](function(){const _0x2b52fe=_0x384cd4;logger[_0x2b52fe('0xd')](_0x2b52fe('0x0'),_0x531184,_0x5e972c,_0x4f5d54);})[_0x384cd4('0xe')](function(_0x39d181){const _0x1da0a5=_0x384cd4;logger[_0x1da0a5('0xd')](JSON[_0x1da0a5('0x5')](_0x39d181));});},Migration[_0x23090d('0x2')][_0x23090d('0xa')]=function(_0x166fb3){const _0x281471=_0x23090d;return this[_0x281471('0x1')][_0x281471('0xa')](_0x166fb3)[_0x281471('0x9')](function(){const _0x23fc42=_0x281471;logger['info'](_0x23fc42('0xb'),_0x166fb3);})[_0x281471('0xe')](function(_0x593387){const _0x17702d=_0x281471;logger['info'](JSON[_0x17702d('0x5')](_0x593387));});},module[_0x23090d('0xf')]={'up':function(_0x7fa399){const _0x488936=_0x23090d,_0x331c28=new Migration(_0x7fa399);_0x331c28[_0x488936('0xa')]('tools_schedules',{'force':!![]});},'down':function(){}}; \ No newline at end of file +const a903_0x30e6=['renameColumn','Added\x20column\x20%s\x20to\x20%s','migration','table\x20dropped\x20%s','catch','queryInterface','addColumn','prototype','tools_schedules','../config/logger','removeColumn','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','stringify','dropTable'];(function(_0x28108d,_0x30e6f8){const _0x1fac0c=function(_0x168280){while(--_0x168280){_0x28108d['push'](_0x28108d['shift']());}};_0x1fac0c(++_0x30e6f8);}(a903_0x30e6,0x18f));const a903_0x1fac=function(_0x28108d,_0x30e6f8){_0x28108d=_0x28108d-0x0;let _0x1fac0c=a903_0x30e6[_0x28108d];return _0x1fac0c;};const _0x4d5709=a903_0x1fac;'use strict';const logger=require(_0x4d5709('0xa'))(_0x4d5709('0x3')),Migration=function(_0x168280){this['queryInterface']=_0x168280;};Migration[_0x4d5709('0x8')][_0x4d5709('0x7')]=function(_0x368f53,_0x4b5b51,_0x25863a){const _0x1aa447=_0x4d5709;return this[_0x1aa447('0x6')][_0x1aa447('0x7')](_0x368f53,_0x4b5b51,_0x25863a)[_0x1aa447('0xc')](function(){const _0x36f735=_0x1aa447;logger[_0x36f735('0xe')](_0x36f735('0x2'),_0x4b5b51,_0x368f53);})[_0x1aa447('0x5')](function(_0x158314){const _0x57458a=_0x1aa447;logger[_0x57458a('0xe')](JSON[_0x57458a('0xf')](_0x158314));});},Migration[_0x4d5709('0x8')][_0x4d5709('0xb')]=function(_0x8b50c4,_0x22bad9){const _0x468046=_0x4d5709;return this[_0x468046('0x6')][_0x468046('0xb')](_0x8b50c4,_0x22bad9)['then'](function(){const _0x25b7b8=_0x468046;logger[_0x25b7b8('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x22bad9,_0x8b50c4);})[_0x468046('0x5')](function(_0x45c9c3){const _0x578dc4=_0x468046;logger[_0x578dc4('0xe')](JSON['stringify'](_0x45c9c3));});},Migration[_0x4d5709('0x8')][_0x4d5709('0x1')]=function(_0x3644bb,_0x24926d,_0x26b1e7){const _0x217f87=_0x4d5709;return this[_0x217f87('0x6')][_0x217f87('0x1')](_0x3644bb,_0x24926d,_0x26b1e7)[_0x217f87('0xc')](function(){const _0x34b501=_0x217f87;logger[_0x34b501('0xe')](_0x34b501('0xd'),_0x24926d,_0x26b1e7,_0x3644bb);})['catch'](function(_0x6d1fd7){const _0xa10a9=_0x217f87;logger['info'](JSON[_0xa10a9('0xf')](_0x6d1fd7));});},Migration[_0x4d5709('0x8')][_0x4d5709('0x0')]=function(_0x1fcbdc){const _0x24d51c=_0x4d5709;return this[_0x24d51c('0x6')]['dropTable'](_0x1fcbdc)[_0x24d51c('0xc')](function(){const _0x1fd66c=_0x24d51c;logger[_0x1fd66c('0xe')](_0x1fd66c('0x4'),_0x1fcbdc);})['catch'](function(_0x4abe1f){const _0x397670=_0x24d51c;logger[_0x397670('0xe')](JSON[_0x397670('0xf')](_0x4abe1f));});},module['exports']={'up':function(_0x555ed0){const _0x4fa0b3=_0x4d5709,_0x54848c=new Migration(_0x555ed0);_0x54848c['dropTable'](_0x4fa0b3('0x9'),{'force':!![]});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.25.js b/server/migrations/2.0.25.js index 43d9de3..b58f485 100644 --- a/server/migrations/2.0.25.js +++ b/server/migrations/2.0.25.js @@ -1 +1 @@ -const a904_0x24bc=['dialPrefix','exports','allow','../config/logger','catch','prototype','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());','ulaw;gsm;alaw','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());','tools_trunks','addColumn','migration','STRING','util','inspect','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','ulaw;gsm','insertExtension','then','users','queryInterface','voice_queues','info','Added\x20column\x20%s\x20to\x20%s','stringify','Insert\x20new\x20row\x20in\x20voice_extensions'];(function(_0x5d774e,_0x24bc5f){const _0x4e4b25=function(_0x3ecaab){while(--_0x3ecaab){_0x5d774e['push'](_0x5d774e['shift']());}};_0x4e4b25(++_0x24bc5f);}(a904_0x24bc,0x182));const a904_0x4e4b=function(_0x5d774e,_0x24bc5f){_0x5d774e=_0x5d774e-0x0;let _0x4e4b25=a904_0x24bc[_0x5d774e];return _0x4e4b25;};const _0x31ea9a=a904_0x4e4b;'use strict';const logger=require(_0x31ea9a('0x16'))(_0x31ea9a('0x3')),util=require(_0x31ea9a('0x5')),Migration=function(_0x3ecaab){const _0x39a94a=_0x31ea9a;this[_0x39a94a('0xd')]=_0x3ecaab;};Migration[_0x31ea9a('0x18')][_0x31ea9a('0xa')]=function(_0x279ea6){const _0x33193e=_0x31ea9a;return this[_0x33193e('0xd')]['sequelize']['query'](_0x279ea6)[_0x33193e('0xb')](function(){const _0x58f24d=_0x33193e;logger['info'](_0x58f24d('0x12'));})[_0x33193e('0x17')](function(_0x225371){const _0x217165=_0x33193e;logger['info'](util[_0x217165('0x6')](_0x225371,{'showHidden':![],'depth':null}));});},Migration[_0x31ea9a('0x18')]['changeColumn']=function(_0x3c1fd8,_0x43bbe2,_0x505311){const _0x2f0df6=_0x31ea9a;return this['queryInterface'][_0x2f0df6('0x7')](_0x3c1fd8,_0x43bbe2,_0x505311)[_0x2f0df6('0xb')](function(){const _0x107e81=_0x2f0df6;logger[_0x107e81('0xf')](_0x107e81('0x8'),_0x43bbe2,_0x3c1fd8);})[_0x2f0df6('0x17')](function(_0x123eaa){const _0x19c591=_0x2f0df6;logger[_0x19c591('0xf')](util[_0x19c591('0x6')](_0x123eaa,{'showHidden':![],'depth':null}));});},Migration['prototype'][_0x31ea9a('0x2')]=function(_0x7ee46f,_0x43105b,_0xfa432a){const _0x29895d=_0x31ea9a;return this[_0x29895d('0xd')][_0x29895d('0x2')](_0x7ee46f,_0x43105b,_0xfa432a)[_0x29895d('0xb')](function(){const _0x162885=_0x29895d;logger[_0x162885('0xf')](_0x162885('0x10'),_0x43105b,_0x7ee46f);})['catch'](function(_0x1b27e5){const _0x1bae95=_0x29895d;logger[_0x1bae95('0xf')](JSON[_0x1bae95('0x11')](_0x1b27e5));});},module[_0x31ea9a('0x14')]={'up':function(_0x381d98,_0x60b512){const _0x2e3881=_0x31ea9a,_0x2500ec=new Migration(_0x381d98);_0x2500ec[_0x2e3881('0xa')](_0x2e3881('0x19')),_0x2500ec[_0x2e3881('0xa')](_0x2e3881('0x0')),_0x2500ec['changeColumn'](_0x2e3881('0xc'),_0x2e3881('0x15'),{'type':_0x60b512['STRING'],'defaultValue':_0x2e3881('0x9')}),_0x2500ec[_0x2e3881('0x7')](_0x2e3881('0x1'),'allow',{'type':_0x60b512[_0x2e3881('0x4')],'defaultValue':_0x2e3881('0x1a')}),_0x2500ec[_0x2e3881('0x2')](_0x2e3881('0xe'),_0x2e3881('0x13'),{'type':_0x60b512[_0x2e3881('0x4')],'defaultValue':null});},'down':function(){}}; \ No newline at end of file +const a904_0xeaa9=['dialPrefix','util','ulaw;gsm','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','voice_queues','stringify','catch','allow','Insert\x20new\x20row\x20in\x20voice_extensions','info','queryInterface','exports','prototype','changeColumn','insertExtension','addColumn','users','then','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`appType`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27failed\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27system\x27,\x20\x27catch\x20failed\x20event\x20auto\x20generated\x27,\x20\x27custom\x27,\x20NOW(),\x20NOW());','tools_trunks','inspect','../config/logger','query','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());'];(function(_0x1bfccb,_0xeaa900){const _0x45e68a=function(_0x50ff21){while(--_0x50ff21){_0x1bfccb['push'](_0x1bfccb['shift']());}};_0x45e68a(++_0xeaa900);}(a904_0xeaa9,0xcb));const a904_0x45e6=function(_0x1bfccb,_0xeaa900){_0x1bfccb=_0x1bfccb-0x0;let _0x45e68a=a904_0xeaa9[_0x1bfccb];return _0x45e68a;};const _0x4ccf1b=a904_0x45e6;'use strict';const logger=require(_0x4ccf1b('0x13'))('migration'),util=require(_0x4ccf1b('0x17')),Migration=function(_0x50ff21){const _0x5e4eef=_0x4ccf1b;this[_0x5e4eef('0x8')]=_0x50ff21;};Migration[_0x4ccf1b('0xa')][_0x4ccf1b('0xc')]=function(_0x190149){const _0x4b2c73=_0x4ccf1b;return this[_0x4b2c73('0x8')]['sequelize'][_0x4b2c73('0x14')](_0x190149)[_0x4b2c73('0xf')](function(){const _0x55c3d7=_0x4b2c73;logger[_0x55c3d7('0x7')](_0x55c3d7('0x6'));})[_0x4b2c73('0x4')](function(_0x5b4844){const _0x556f10=_0x4b2c73;logger['info'](util[_0x556f10('0x12')](_0x5b4844,{'showHidden':![],'depth':null}));});},Migration[_0x4ccf1b('0xa')][_0x4ccf1b('0xb')]=function(_0x21ef23,_0x1db353,_0x418d85){const _0x475588=_0x4ccf1b;return this['queryInterface'][_0x475588('0xb')](_0x21ef23,_0x1db353,_0x418d85)['then'](function(){const _0x126694=_0x475588;logger['info'](_0x126694('0x0'),_0x1db353,_0x21ef23);})['catch'](function(_0x24478b){const _0x1c0a11=_0x475588;logger[_0x1c0a11('0x7')](util[_0x1c0a11('0x12')](_0x24478b,{'showHidden':![],'depth':null}));});},Migration['prototype'][_0x4ccf1b('0xd')]=function(_0x1caa5b,_0xa9d992,_0x43adf7){const _0x1686a4=_0x4ccf1b;return this[_0x1686a4('0x8')][_0x1686a4('0xd')](_0x1caa5b,_0xa9d992,_0x43adf7)[_0x1686a4('0xf')](function(){const _0x949aea=_0x1686a4;logger[_0x949aea('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0xa9d992,_0x1caa5b);})[_0x1686a4('0x4')](function(_0x54a903){const _0xb749fc=_0x1686a4;logger[_0xb749fc('0x7')](JSON[_0xb749fc('0x3')](_0x54a903));});},module[_0x4ccf1b('0x9')]={'up':function(_0x44019f,_0x2f40bb){const _0x3d5de9=_0x4ccf1b,_0x10249e=new Migration(_0x44019f);_0x10249e[_0x3d5de9('0xc')](_0x3d5de9('0x10')),_0x10249e[_0x3d5de9('0xc')](_0x3d5de9('0x15')),_0x10249e[_0x3d5de9('0xb')](_0x3d5de9('0xe'),_0x3d5de9('0x5'),{'type':_0x2f40bb[_0x3d5de9('0x1')],'defaultValue':_0x3d5de9('0x18')}),_0x10249e[_0x3d5de9('0xb')](_0x3d5de9('0x11'),_0x3d5de9('0x5'),{'type':_0x2f40bb['STRING'],'defaultValue':'ulaw;gsm;alaw'}),_0x10249e[_0x3d5de9('0xd')](_0x3d5de9('0x2'),_0x3d5de9('0x16'),{'type':_0x2f40bb[_0x3d5de9('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 e08607e..88950cc 100644 --- a/server/migrations/2.0.26.js +++ b/server/migrations/2.0.26.js @@ -1 +1 @@ -const a905_0x5dd1=['ENUM','never','pai','Added\x20column\x20%s\x20to\x20%s','migration','yes','stringify','changeColumn','dialCheckDuplicateType','users','always','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','campaigns','authentication','voice_queues','timeout','catch','allow','ulaw;alaw;gsm','INTEGER','addColumn','../config/logger','onlyIfOpen','BOOLEAN','util','retry','then','info','mail_servers_out','queryInterface','email'];(function(_0x24c4fb,_0x5dd14e){const _0x4216a2=function(_0x409752){while(--_0x409752){_0x24c4fb['push'](_0x24c4fb['shift']());}};_0x4216a2(++_0x5dd14e);}(a905_0x5dd1,0x1da));const a905_0x4216=function(_0x24c4fb,_0x5dd14e){_0x24c4fb=_0x24c4fb-0x0;let _0x4216a2=a905_0x5dd1[_0x24c4fb];return _0x4216a2;};const _0x28fc0e=a905_0x4216;'use strict';const logger=require(_0x28fc0e('0x1c'))(_0x28fc0e('0xa')),util=require(_0x28fc0e('0x1f')),Migration=function(_0x409752){const _0x176b09=_0x28fc0e;this[_0x176b09('0x4')]=_0x409752;};Migration['prototype']['changeColumn']=function(_0x9cdd19,_0x28e0ee,_0x477590){const _0x177a99=_0x28fc0e;return this[_0x177a99('0x4')][_0x177a99('0xd')](_0x9cdd19,_0x28e0ee,_0x477590)[_0x177a99('0x1')](function(){const _0x102a94=_0x177a99;logger[_0x102a94('0x2')](_0x102a94('0x11'),_0x28e0ee,_0x9cdd19);})[_0x177a99('0x17')](function(_0x321bcd){const _0x1f2a21=_0x177a99;logger[_0x1f2a21('0x2')](util['inspect'](_0x321bcd,{'showHidden':![],'depth':null}));});},Migration['prototype'][_0x28fc0e('0x1b')]=function(_0xd72fe2,_0x50f4f4,_0x2264c5){const _0x2a781c=_0x28fc0e;return this[_0x2a781c('0x4')][_0x2a781c('0x1b')](_0xd72fe2,_0x50f4f4,_0x2264c5)[_0x2a781c('0x1')](function(){const _0x29e427=_0x2a781c;logger[_0x29e427('0x2')](_0x29e427('0x9'),_0x50f4f4,_0xd72fe2);})[_0x2a781c('0x17')](function(_0x1681d7){const _0x2ef0ec=_0x2a781c;logger['info'](JSON[_0x2ef0ec('0xc')](_0x1681d7));});},module['exports']={'up':function(_0x3b6d00,_0x34649d){const _0x32a2b3=_0x28fc0e,_0x1d84d2=new Migration(_0x3b6d00);_0x1d84d2[_0x32a2b3('0xd')]('tools_trunks','sendrpid',{'type':_0x34649d[_0x32a2b3('0x6')](_0x32a2b3('0xb'),'no',_0x32a2b3('0x8')),'defaultValue':'no'}),_0x1d84d2[_0x32a2b3('0x1b')](_0x32a2b3('0x3'),_0x32a2b3('0x14'),{'type':_0x34649d[_0x32a2b3('0x1e')],'defaultValue':!![]}),_0x1d84d2[_0x32a2b3('0xd')]('voice_queues',_0x32a2b3('0x16'),{'type':_0x34649d[_0x32a2b3('0x1a')](0xb),'defaultValue':0xf}),_0x1d84d2[_0x32a2b3('0xd')](_0x32a2b3('0x15'),_0x32a2b3('0x0'),{'type':_0x34649d[_0x32a2b3('0x1a')](0xb),'defaultValue':0x2}),_0x1d84d2[_0x32a2b3('0xd')](_0x32a2b3('0xf'),'allow',{'type':_0x34649d[_0x32a2b3('0x12')],'allowNull':![],'defaultValue':_0x32a2b3('0x19')}),_0x1d84d2[_0x32a2b3('0xd')]('tools_trunks',_0x32a2b3('0x18'),{'type':_0x34649d[_0x32a2b3('0x12')],'allowNull':![],'defaultValue':_0x32a2b3('0x19')}),_0x1d84d2[_0x32a2b3('0x1b')]('voice_queues',_0x32a2b3('0xe'),{'type':_0x34649d[_0x32a2b3('0x6')](_0x32a2b3('0x10'),_0x32a2b3('0x7'),_0x32a2b3('0x1d')),'defaultValue':_0x32a2b3('0x10')}),_0x1d84d2[_0x32a2b3('0x1b')](_0x32a2b3('0x13'),_0x32a2b3('0xe'),{'type':_0x34649d['ENUM'](_0x32a2b3('0x10'),_0x32a2b3('0x7'),'onlyIfOpen'),'defaultValue':_0x32a2b3('0x10')}),_0x1d84d2[_0x32a2b3('0x1b')]('mail_accounts',_0x32a2b3('0x5'),{'type':_0x34649d[_0x32a2b3('0x12')]});},'down':function(){}}; \ No newline at end of file +const a905_0x5228=['ENUM','info','exports','../config/logger','tools_trunks','catch','allow','then','never','prototype','sendrpid','queryInterface','yes','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','dialCheckDuplicateType','stringify','addColumn','ulaw;alaw;gsm','users','STRING','authentication','campaigns','always','onlyIfOpen','voice_queues','Added\x20column\x20%s\x20to\x20%s','email','mail_servers_out','retry','timeout','changeColumn','pai','mail_accounts','INTEGER'];(function(_0x580004,_0x5228c7){const _0x28b3fe=function(_0x31289e){while(--_0x31289e){_0x580004['push'](_0x580004['shift']());}};_0x28b3fe(++_0x5228c7);}(a905_0x5228,0xea));const a905_0x28b3=function(_0x580004,_0x5228c7){_0x580004=_0x580004-0x0;let _0x28b3fe=a905_0x5228[_0x580004];return _0x28b3fe;};const _0x3d98f6=a905_0x28b3;'use strict';const logger=require(_0x3d98f6('0xe'))('migration'),util=require('util'),Migration=function(_0x31289e){this['queryInterface']=_0x31289e;};Migration[_0x3d98f6('0x14')][_0x3d98f6('0x7')]=function(_0x25944b,_0x384559,_0x576c03){const _0x1be8dd=_0x3d98f6;return this['queryInterface'][_0x1be8dd('0x7')](_0x25944b,_0x384559,_0x576c03)[_0x1be8dd('0x12')](function(){const _0x4f869c=_0x1be8dd;logger[_0x4f869c('0xc')](_0x4f869c('0x18'),_0x384559,_0x25944b);})[_0x1be8dd('0x10')](function(_0x775b59){const _0x25c737=_0x1be8dd;logger[_0x25c737('0xc')](util['inspect'](_0x775b59,{'showHidden':![],'depth':null}));});},Migration[_0x3d98f6('0x14')][_0x3d98f6('0x1c')]=function(_0x7cb3e0,_0x26845e,_0x4ad88b){const _0x4e32f4=_0x3d98f6;return this[_0x4e32f4('0x16')][_0x4e32f4('0x1c')](_0x7cb3e0,_0x26845e,_0x4ad88b)['then'](function(){const _0xfa2d8c=_0x4e32f4;logger[_0xfa2d8c('0xc')](_0xfa2d8c('0x2'),_0x26845e,_0x7cb3e0);})[_0x4e32f4('0x10')](function(_0x17d3db){const _0xd74c24=_0x4e32f4;logger['info'](JSON[_0xd74c24('0x1b')](_0x17d3db));});},module[_0x3d98f6('0xd')]={'up':function(_0x583a97,_0xf3258e){const _0x3e41cb=_0x3d98f6,_0x2e422e=new Migration(_0x583a97);_0x2e422e[_0x3e41cb('0x7')](_0x3e41cb('0xf'),_0x3e41cb('0x15'),{'type':_0xf3258e[_0x3e41cb('0xb')](_0x3e41cb('0x17'),'no',_0x3e41cb('0x8')),'defaultValue':'no'}),_0x2e422e[_0x3e41cb('0x1c')](_0x3e41cb('0x4'),_0x3e41cb('0x20'),{'type':_0xf3258e[_0x3e41cb('0x19')],'defaultValue':!![]}),_0x2e422e[_0x3e41cb('0x7')]('voice_queues',_0x3e41cb('0x6'),{'type':_0xf3258e[_0x3e41cb('0xa')](0xb),'defaultValue':0xf}),_0x2e422e[_0x3e41cb('0x7')](_0x3e41cb('0x1'),_0x3e41cb('0x5'),{'type':_0xf3258e[_0x3e41cb('0xa')](0xb),'defaultValue':0x2}),_0x2e422e[_0x3e41cb('0x7')](_0x3e41cb('0x1e'),_0x3e41cb('0x11'),{'type':_0xf3258e['STRING'],'allowNull':![],'defaultValue':_0x3e41cb('0x1d')}),_0x2e422e[_0x3e41cb('0x7')](_0x3e41cb('0xf'),_0x3e41cb('0x11'),{'type':_0xf3258e[_0x3e41cb('0x1f')],'allowNull':![],'defaultValue':'ulaw;alaw;gsm'}),_0x2e422e[_0x3e41cb('0x1c')]('voice_queues',_0x3e41cb('0x1a'),{'type':_0xf3258e['ENUM'](_0x3e41cb('0x22'),'never',_0x3e41cb('0x0')),'defaultValue':_0x3e41cb('0x22')}),_0x2e422e[_0x3e41cb('0x1c')](_0x3e41cb('0x21'),_0x3e41cb('0x1a'),{'type':_0xf3258e[_0x3e41cb('0xb')](_0x3e41cb('0x22'),_0x3e41cb('0x13'),_0x3e41cb('0x0')),'defaultValue':'always'}),_0x2e422e[_0x3e41cb('0x1c')](_0x3e41cb('0x9'),_0x3e41cb('0x3'),{'type':_0xf3258e[_0x3e41cb('0x1f')]});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.27.js b/server/migrations/2.0.27.js index 12143c4..1aa56f2 100644 --- a/server/migrations/2.0.27.js +++ b/server/migrations/2.0.27.js @@ -1 +1 @@ -'use strict';module['exports']={'up':function(){},'down':function(){}}; \ No newline at end of file +var a906_0x5b71=['exports'];(function(_0x7cfa2,_0x5b713a){var _0x578943=function(_0x17de32){while(--_0x17de32){_0x7cfa2['push'](_0x7cfa2['shift']());}};_0x578943(++_0x5b713a);}(a906_0x5b71,0x1b8));var a906_0x5789=function(_0x7cfa2,_0x5b713a){_0x7cfa2=_0x7cfa2-0x0;var _0x578943=a906_0x5b71[_0x7cfa2];return _0x578943;};var _0x5798cd=a906_0x5789;'use strict';module[_0x5798cd('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.0.29.js b/server/migrations/2.0.29.js index 648d5c3..c9b3a8f 100644 --- a/server/migrations/2.0.29.js +++ b/server/migrations/2.0.29.js @@ -1 +1 @@ -const a908_0x3717=['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\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());','queryInterface','voice_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\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());','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());','dialAMDGreeting','then','INTEGER','phoneBarNoReplyNumber','phone','catch','dialAMDTotalAnalysisTime','../config/logger','info','changeColumn','users','chat_interactions','addIndex','addColumn','query\x20%s','chat_queues','campaigns','enqueue','UNSIGNED','addIndex\x20%s\x20%s\x20%s','finally','dialAMDActive','query','sequelize','dialAMDInitialSilence','openchannel_messages','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());','phoneBarDnd','exports','final','calleridnum','#AMD\x20Greeting','openchannel_interactions','prototype','sequence','chat_enquiries','BOOLEAN','phoneBarNoReply','dialQueueTimeout','user_has_chat_queues','#AMD\x20Total\x20Analysis\x20Time','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());','chat_dispositions','chat_proactive_actions','dialAMDBetweenWordsSilence','#AMD\x20Between\x20Words\x20Silence','#AMD\x20Min\x20Word\x20Length','phoneBarBusyNumber','dialAMDAfterGreetingSilence','STRING','user_has_openchannel_interactions','cm_hopper_final','cm_hopper','Added\x20column\x20%s\x20to\x20%s','Active/Disactive\x20AMD','chat_websites','dialAMDMinWordLength','#AMD\x20Maximum\x20Word\x20Length','dialAMDMaximumWordLength','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());','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','tail','#AMD\x20Maximum\x20Number\x20Of\x20Words','stringify','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());','chat_applications','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','dialAMDSilenceThreshold','#AMD\x20Initial\x20Silence','phoneBarBusy','dropTable','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','phoneBarUnconditional','#AMD\x20After\x20Greeting\x20Silence'];(function(_0x5841ff,_0x3717bd){const _0x3baf6c=function(_0x15d1fe){while(--_0x15d1fe){_0x5841ff['push'](_0x5841ff['shift']());}};_0x3baf6c(++_0x3717bd);}(a908_0x3717,0x1e5));const a908_0x3baf=function(_0x5841ff,_0x3717bd){_0x5841ff=_0x5841ff-0x0;let _0x3baf6c=a908_0x3717[_0x5841ff];return _0x3baf6c;};const _0x1b47f7=a908_0x3baf;'use strict';const logger=require(_0x1b47f7('0x8'))('migration'),Sequence=function(){};Sequence[_0x1b47f7('0x22')][_0x1b47f7('0x12')]=function(_0x15d1fe){const _0x2a3f2d=_0x1b47f7;this['tail']=this[_0x2a3f2d('0x3e')]?this['tail'][_0x2a3f2d('0x15')](_0x15d1fe):_0x15d1fe();};const Migration=function(_0x4b7e8e){this['queryInterface']=_0x4b7e8e,this['sequence']=new Sequence();};Migration['prototype'][_0x1b47f7('0xa')]=function(_0x150f86,_0x30c119,_0x2850d5){const _0x254128=_0x1b47f7,_0x3e7435=this;this[_0x254128('0x23')]['enqueue'](function(){const _0x2062c3=_0x254128;return _0x3e7435[_0x2062c3('0x4d')][_0x2062c3('0xa')](_0x150f86,_0x30c119,_0x2850d5)['then'](function(){const _0x3cfc0f=_0x2062c3;logger[_0x3cfc0f('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x30c119,_0x150f86);})[_0x2062c3('0x6')](function(_0x2603c1){const _0xbf0967=_0x2062c3;logger[_0xbf0967('0x9')](JSON['stringify'](_0x2603c1));});});},Migration[_0x1b47f7('0x22')][_0x1b47f7('0xe')]=function(_0x4dbffd,_0x3e1110,_0xf7da2){const _0x8d61c4=_0x1b47f7,_0x372900=this;this[_0x8d61c4('0x23')]['enqueue'](function(){const _0x4f2f99=_0x8d61c4;return _0x372900[_0x4f2f99('0x4d')][_0x4f2f99('0xe')](_0x4dbffd,_0x3e1110,_0xf7da2)[_0x4f2f99('0x2')](function(){const _0xc9acf9=_0x4f2f99;logger[_0xc9acf9('0x9')](_0xc9acf9('0x36'),_0x3e1110,_0x4dbffd);})[_0x4f2f99('0x6')](function(_0x5cf1d8){const _0x52d1cb=_0x4f2f99;logger[_0x52d1cb('0x9')](JSON[_0x52d1cb('0x40')](_0x5cf1d8));});});},Migration['prototype']['dropTable']=function(_0x528236){const _0x237412=_0x1b47f7,_0x6201c8=this;this[_0x237412('0x23')][_0x237412('0x12')](function(){const _0xb074ab=_0x237412;return _0x6201c8['queryInterface']['dropTable'](_0x528236,{'force':!![]})[_0xb074ab('0x2')](function(){const _0x47a0fc=_0xb074ab;logger[_0x47a0fc('0x9')](_0x47a0fc('0x4b'),_0x528236);})[_0xb074ab('0x6')](function(_0x33eea0){const _0x8831ee=_0xb074ab;logger[_0x8831ee('0x9')](JSON[_0x8831ee('0x40')](_0x33eea0));});});},Migration[_0x1b47f7('0x22')]['addIndex']=function(_0x2e3468,_0x5a5010,_0x4c8b3e){const _0x139650=_0x1b47f7,_0x1fa2c6=this;this[_0x139650('0x23')]['enqueue'](function(){const _0x3f2902=_0x139650;return _0x1fa2c6[_0x3f2902('0x4d')][_0x3f2902('0xd')](_0x2e3468,_0x5a5010,{'indexName':_0x4c8b3e})[_0x3f2902('0x2')](function(){const _0x1bb686=_0x3f2902;logger[_0x1bb686('0x9')](_0x1bb686('0x14'),_0x2e3468,_0x5a5010['join'](','),_0x4c8b3e);})[_0x3f2902('0x6')](function(_0x5978b3){const _0x148aff=_0x3f2902;logger['info'](JSON[_0x148aff('0x40')](_0x5978b3));});});},Migration[_0x1b47f7('0x22')][_0x1b47f7('0x17')]=function(_0x17709e){const _0x3c55c4=_0x1b47f7,_0x46ea31=this;this[_0x3c55c4('0x23')][_0x3c55c4('0x12')](function(){const _0x129cd9=_0x3c55c4;return _0x46ea31[_0x129cd9('0x4d')][_0x129cd9('0x18')]['query'](_0x17709e)[_0x129cd9('0x2')](function(){const _0xf3597c=_0x129cd9;logger[_0xf3597c('0x9')](_0xf3597c('0xf'),_0x17709e);})['catch'](function(_0x3aeb9f){const _0x26b51d=_0x129cd9;logger[_0x26b51d('0x9')](JSON[_0x26b51d('0x40')](_0x3aeb9f));});});},Migration['prototype'][_0x1b47f7('0x1e')]=function(_0x16e17e){const _0x166bd0=_0x1b47f7;this['sequence'][_0x166bd0('0x12')](function(){return _0x16e17e();});},module[_0x1b47f7('0x1d')]={'up':function(_0x4a5a0a,_0x384e70){return new Promise(function(_0x2cb3dd){const _0x1bca4d=a908_0x3baf,_0x5a9cbb=new Migration(_0x4a5a0a);_0x5a9cbb[_0x1bca4d('0x47')]('user_has_chat_rooms'),_0x5a9cbb['dropTable'](_0x1bca4d('0x24')),_0x5a9cbb[_0x1bca4d('0x47')]('chat_messages'),_0x5a9cbb[_0x1bca4d('0x47')](_0x1bca4d('0x2c')),_0x5a9cbb['dropTable'](_0x1bca4d('0x2b')),_0x5a9cbb['dropTable'](_0x1bca4d('0x42')),_0x5a9cbb[_0x1bca4d('0x47')]('user_has_chat_interactions'),_0x5a9cbb[_0x1bca4d('0x47')](_0x1bca4d('0xc')),_0x5a9cbb[_0x1bca4d('0x47')]('team_has_chat_queues'),_0x5a9cbb[_0x1bca4d('0x47')](_0x1bca4d('0x28')),_0x5a9cbb[_0x1bca4d('0x47')](_0x1bca4d('0x10')),_0x5a9cbb[_0x1bca4d('0x47')](_0x1bca4d('0x38')),_0x5a9cbb[_0x1bca4d('0x47')](_0x1bca4d('0x1a')),_0x5a9cbb[_0x1bca4d('0x47')](_0x1bca4d('0x33')),_0x5a9cbb[_0x1bca4d('0x47')](_0x1bca4d('0x21')),_0x5a9cbb[_0x1bca4d('0xd')](_0x1bca4d('0x35'),[_0x1bca4d('0x5')],'phone'),_0x5a9cbb[_0x1bca4d('0xd')](_0x1bca4d('0x34'),[_0x1bca4d('0x1f')],_0x1bca4d('0x1f')),_0x5a9cbb[_0x1bca4d('0xe')]('users','phoneBarUnconditionalNumber',{'type':_0x384e70[_0x1bca4d('0x32')]}),_0x5a9cbb['addColumn'](_0x1bca4d('0xb'),_0x1bca4d('0x4'),{'type':_0x384e70['STRING']}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0xb'),_0x1bca4d('0x30'),{'type':_0x384e70[_0x1bca4d('0x32')]}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0xb'),_0x1bca4d('0x49'),{'type':_0x384e70[_0x1bca4d('0x25')],'defaultValue':![]}),_0x5a9cbb['addColumn'](_0x1bca4d('0xb'),_0x1bca4d('0x26'),{'type':_0x384e70['BOOLEAN'],'defaultValue':![]}),_0x5a9cbb['addColumn'](_0x1bca4d('0xb'),_0x1bca4d('0x46'),{'type':_0x384e70[_0x1bca4d('0x25')],'defaultValue':![]}),_0x5a9cbb['addColumn'](_0x1bca4d('0xb'),_0x1bca4d('0x1c'),{'type':_0x384e70[_0x1bca4d('0x25')],'defaultValue':!![]}),_0x5a9cbb[_0x1bca4d('0xa')]('campaigns',_0x1bca4d('0x27'),{'type':_0x384e70[_0x1bca4d('0x3')](0x3)[_0x1bca4d('0x13')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x1bca4d('0x3d')}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x4e'),'dialAMDActive',{'type':_0x384e70[_0x1bca4d('0x25')],'defaultValue':0x0,'comment':'Active/Disactive\x20AMD'}),_0x5a9cbb['addColumn'](_0x1bca4d('0x4e'),_0x1bca4d('0x19'),{'type':_0x384e70[_0x1bca4d('0x3')](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0x1bca4d('0x45')}),_0x5a9cbb[_0x1bca4d('0xe')]('voice_queues',_0x1bca4d('0x1'),{'type':_0x384e70['INTEGER'](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0x1bca4d('0x20')}),_0x5a9cbb['addColumn'](_0x1bca4d('0x4e'),_0x1bca4d('0x31'),{'type':_0x384e70['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x320,'comment':'#AMD\x20After\x20Greeting\x20Silence'}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x4e'),_0x1bca4d('0x7'),{'type':_0x384e70[_0x1bca4d('0x3')](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':'#AMD\x20Total\x20Analysis\x20Time'}),_0x5a9cbb['addColumn'](_0x1bca4d('0x4e'),'dialAMDMinWordLength',{'type':_0x384e70['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0x1bca4d('0x2f')}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x4e'),_0x1bca4d('0x2d'),{'type':_0x384e70[_0x1bca4d('0x3')](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x1bca4d('0x2e')}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x4e'),'dialAMDMaximumNumberOfWords',{'type':_0x384e70[_0x1bca4d('0x3')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x3,'comment':_0x1bca4d('0x3f')}),_0x5a9cbb['addColumn'](_0x1bca4d('0x4e'),_0x1bca4d('0x44'),{'type':_0x384e70[_0x1bca4d('0x3')](0x5)[_0x1bca4d('0x13')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x1bca4d('0x43')}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x4e'),_0x1bca4d('0x3b'),{'type':_0x384e70['INTEGER'](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x1bca4d('0x3a')}),_0x5a9cbb['addColumn']('campaigns',_0x1bca4d('0x16'),{'type':_0x384e70[_0x1bca4d('0x25')],'defaultValue':0x0,'comment':_0x1bca4d('0x37')}),_0x5a9cbb[_0x1bca4d('0xe')]('campaigns',_0x1bca4d('0x19'),{'type':_0x384e70[_0x1bca4d('0x3')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':'#AMD\x20Initial\x20Silence'}),_0x5a9cbb['addColumn'](_0x1bca4d('0x11'),_0x1bca4d('0x1'),{'type':_0x384e70[_0x1bca4d('0x3')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':'#AMD\x20Greeting'}),_0x5a9cbb[_0x1bca4d('0xe')]('campaigns','dialAMDAfterGreetingSilence',{'type':_0x384e70[_0x1bca4d('0x3')](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0x1bca4d('0x4a')}),_0x5a9cbb[_0x1bca4d('0xe')]('campaigns',_0x1bca4d('0x7'),{'type':_0x384e70[_0x1bca4d('0x3')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x1bca4d('0x29')}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x11'),_0x1bca4d('0x39'),{'type':_0x384e70[_0x1bca4d('0x3')](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x64,'comment':'#AMD\x20Min\x20Word\x20Length'}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x11'),_0x1bca4d('0x2d'),{'type':_0x384e70[_0x1bca4d('0x3')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0x1bca4d('0x2e')}),_0x5a9cbb[_0x1bca4d('0xe')]('campaigns','dialAMDMaximumNumberOfWords',{'type':_0x384e70[_0x1bca4d('0x3')](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x11'),_0x1bca4d('0x44'),{'type':_0x384e70[_0x1bca4d('0x3')](0x5)['UNSIGNED'],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0x1bca4d('0x43')}),_0x5a9cbb[_0x1bca4d('0xe')](_0x1bca4d('0x11'),_0x1bca4d('0x3b'),{'type':_0x384e70['INTEGER'](0x9)[_0x1bca4d('0x13')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0x1bca4d('0x3a')}),_0x5a9cbb[_0x1bca4d('0x17')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;'),_0x5a9cbb[_0x1bca4d('0x17')](_0x1bca4d('0x48')),_0x5a9cbb[_0x1bca4d('0x17')]('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());'),_0x5a9cbb[_0x1bca4d('0x17')](_0x1bca4d('0x3c')),_0x5a9cbb[_0x1bca4d('0x17')](_0x1bca4d('0x4c')),_0x5a9cbb[_0x1bca4d('0x17')](_0x1bca4d('0x1b')),_0x5a9cbb[_0x1bca4d('0x17')](_0x1bca4d('0x41')),_0x5a9cbb[_0x1bca4d('0x17')](_0x1bca4d('0x2a')),_0x5a9cbb['query']('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());'),_0x5a9cbb[_0x1bca4d('0x17')](_0x1bca4d('0x4f')),_0x5a9cbb[_0x1bca4d('0x17')]('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());'),_0x5a9cbb[_0x1bca4d('0x17')](_0x1bca4d('0x0')),_0x5a9cbb[_0x1bca4d('0x1e')](_0x2cb3dd);});},'down':function(){}}; \ No newline at end of file +const a908_0x1456=['dialQueueTimeout','table\x20dropped\x20%s','voice_queues','cm_hopper','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());','phoneBarUnconditional','enqueue','chat_applications','dialAMDMaximumNumberOfWords','calleridnum','INTEGER','openchannel_interactions','dialAMDSilenceThreshold','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-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\x20Maximum\x20Word\x20Length','queryInterface','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','phoneBarDnd','UNSIGNED','dialAMDMaximumWordLength','chat_queues','changeColumn','chat_enquiries','phoneBarUnconditionalNumber','#AMD\x20Greeting','dialAMDTotalAnalysisTime','#AMD\x20Maximum\x20Number\x20Of\x20Words','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\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());','STRING','addIndex','finally','user_has_chat_interactions','BOOLEAN','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());','dropTable','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());','#AMD\x20Min\x20Word\x20Length','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x278\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22MACHINE\x22\x20]?11:9\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','chat_websites','phoneBarNoReplyNumber','dialAMDInitialSilence','dialAMDBetweenWordsSilence','join','phone','users','chat_proactive_actions','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());','dialAMDGreeting','#AMD\x20Initial\x20Silence','chat_messages','sequelize','migration','stringify','sequence','chat_interactions','#AMD\x20Total\x20Analysis\x20Time','../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-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','dialAMDAfterGreetingSilence','dialAMDMinWordLength','#AMD\x20Between\x20Words\x20Silence','tail','then','#AMD\x20Silence\x20Threshold\x20(min:0,\x20max:32767)','phoneBarBusyNumber','campaigns','addColumn','dialAMDActive','user_has_chat_rooms','phoneBarBusy','chat_dispositions','Added\x20column\x20%s\x20to\x20%s','user_has_openchannel_interactions','phoneBarNoReply','exports','openchannel_messages','query\x20%s','prototype','Active/Disactive\x20AMD','catch','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','user_has_chat_queues','#AMD\x20After\x20Greeting\x20Silence'];(function(_0x40a6a7,_0x145627){const _0x41e24f=function(_0x31eafa){while(--_0x31eafa){_0x40a6a7['push'](_0x40a6a7['shift']());}};_0x41e24f(++_0x145627);}(a908_0x1456,0xfa));const a908_0x41e2=function(_0x40a6a7,_0x145627){_0x40a6a7=_0x40a6a7-0x0;let _0x41e24f=a908_0x1456[_0x40a6a7];return _0x41e24f;};const _0x19fef5=a908_0x41e2;'use strict';const logger=require(_0x19fef5('0x3f'))(_0x19fef5('0x3a')),Sequence=function(){};Sequence[_0x19fef5('0x54')][_0x19fef5('0xb')]=function(_0x31eafa){const _0x3a9fb1=_0x19fef5;this[_0x3a9fb1('0x44')]=this['tail']?this[_0x3a9fb1('0x44')][_0x3a9fb1('0x25')](_0x31eafa):_0x31eafa();};const Migration=function(_0x54f7d6){const _0x1297f1=_0x19fef5;this[_0x1297f1('0x15')]=_0x54f7d6,this[_0x1297f1('0x3c')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x1f3f2c,_0x3832d7,_0x16f2ba){const _0xd5c0bb=_0x19fef5,_0x2cf407=this;this[_0xd5c0bb('0x3c')][_0xd5c0bb('0xb')](function(){const _0x17b222=_0xd5c0bb;return _0x2cf407[_0x17b222('0x15')][_0x17b222('0x1b')](_0x1f3f2c,_0x3832d7,_0x16f2ba)[_0x17b222('0x45')](function(){const _0x58e633=_0x17b222;logger[_0x58e633('0x12')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3832d7,_0x1f3f2c);})[_0x17b222('0x1')](function(_0x38dbe2){const _0x4862db=_0x17b222;logger['info'](JSON[_0x4862db('0x3b')](_0x38dbe2));});});},Migration[_0x19fef5('0x54')][_0x19fef5('0x49')]=function(_0x3cd426,_0x5df850,_0x181ad3){const _0x5c8267=_0x19fef5,_0x3d8784=this;this[_0x5c8267('0x3c')][_0x5c8267('0xb')](function(){const _0x552bf9=_0x5c8267;return _0x3d8784['queryInterface'][_0x552bf9('0x49')](_0x3cd426,_0x5df850,_0x181ad3)[_0x552bf9('0x45')](function(){const _0x38d1c7=_0x552bf9;logger[_0x38d1c7('0x12')](_0x38d1c7('0x4e'),_0x5df850,_0x3cd426);})[_0x552bf9('0x1')](function(_0x5a4d5e){const _0x3d61de=_0x552bf9;logger['info'](JSON[_0x3d61de('0x3b')](_0x5a4d5e));});});},Migration[_0x19fef5('0x54')][_0x19fef5('0x29')]=function(_0x236e41){const _0x10a6ea=_0x19fef5,_0x1de511=this;this[_0x10a6ea('0x3c')]['enqueue'](function(){const _0x4b55f8=_0x10a6ea;return _0x1de511[_0x4b55f8('0x15')][_0x4b55f8('0x29')](_0x236e41,{'force':!![]})[_0x4b55f8('0x45')](function(){const _0x2c4bea=_0x4b55f8;logger[_0x2c4bea('0x12')](_0x2c4bea('0x6'),_0x236e41);})[_0x4b55f8('0x1')](function(_0x113bdf){const _0x3c13cd=_0x4b55f8;logger[_0x3c13cd('0x12')](JSON[_0x3c13cd('0x3b')](_0x113bdf));});});},Migration[_0x19fef5('0x54')][_0x19fef5('0x24')]=function(_0x4ca5fe,_0x4dd33a,_0x23126e){const _0x190f90=_0x19fef5,_0x5c3503=this;this['sequence'][_0x190f90('0xb')](function(){const _0x20149f=_0x190f90;return _0x5c3503['queryInterface'][_0x20149f('0x24')](_0x4ca5fe,_0x4dd33a,{'indexName':_0x23126e})[_0x20149f('0x45')](function(){const _0x5075b3=_0x20149f;logger[_0x5075b3('0x12')]('addIndex\x20%s\x20%s\x20%s',_0x4ca5fe,_0x4dd33a[_0x5075b3('0x31')](','),_0x23126e);})[_0x20149f('0x1')](function(_0x1d61a3){const _0x5bbf4b=_0x20149f;logger[_0x5bbf4b('0x12')](JSON[_0x5bbf4b('0x3b')](_0x1d61a3));});});},Migration[_0x19fef5('0x54')]['query']=function(_0x6bc82d){const _0x21e9b9=_0x19fef5,_0x39aa40=this;this[_0x21e9b9('0x3c')][_0x21e9b9('0xb')](function(){const _0x506e9e=_0x21e9b9;return _0x39aa40[_0x506e9e('0x15')][_0x506e9e('0x39')][_0x506e9e('0x21')](_0x6bc82d)[_0x506e9e('0x45')](function(){const _0x588a3d=_0x506e9e;logger[_0x588a3d('0x12')](_0x588a3d('0x53'),_0x6bc82d);})[_0x506e9e('0x1')](function(_0x5b02ce){const _0x4cec80=_0x506e9e;logger[_0x4cec80('0x12')](JSON['stringify'](_0x5b02ce));});});},Migration[_0x19fef5('0x54')]['final']=function(_0x2ecc92){const _0x513f04=_0x19fef5;this['sequence'][_0x513f04('0xb')](function(){return _0x2ecc92();});},module[_0x19fef5('0x51')]={'up':function(_0x4ef33e,_0x11e718){return new Promise(function(_0x224dc8){const _0xb6c970=a908_0x41e2,_0x432df6=new Migration(_0x4ef33e);_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x4b')),_0x432df6['dropTable'](_0xb6c970('0x1c')),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x38')),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x34')),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x4d')),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0xc')),_0x432df6['dropTable'](_0xb6c970('0x26')),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x3d')),_0x432df6[_0xb6c970('0x29')]('team_has_chat_queues'),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x3')),_0x432df6['dropTable'](_0xb6c970('0x1a')),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x2d')),_0x432df6['dropTable'](_0xb6c970('0x52')),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x4f')),_0x432df6[_0xb6c970('0x29')](_0xb6c970('0x10')),_0x432df6[_0xb6c970('0x24')](_0xb6c970('0x8'),[_0xb6c970('0x32')],'phone'),_0x432df6['addIndex']('cm_hopper_final',[_0xb6c970('0xe')],'calleridnum'),_0x432df6[_0xb6c970('0x49')]('users',_0xb6c970('0x1d'),{'type':_0x11e718[_0xb6c970('0x23')]}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x33'),_0xb6c970('0x2e'),{'type':_0x11e718[_0xb6c970('0x23')]}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x33'),_0xb6c970('0x47'),{'type':_0x11e718['STRING']}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x33'),_0xb6c970('0xa'),{'type':_0x11e718[_0xb6c970('0x27')],'defaultValue':![]}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x33'),_0xb6c970('0x50'),{'type':_0x11e718[_0xb6c970('0x27')],'defaultValue':![]}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x33'),_0xb6c970('0x4c'),{'type':_0x11e718[_0xb6c970('0x27')],'defaultValue':![]}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x33'),_0xb6c970('0x17'),{'type':_0x11e718[_0xb6c970('0x27')],'defaultValue':!![]}),_0x432df6[_0xb6c970('0x1b')](_0xb6c970('0x48'),_0xb6c970('0x5'),{'type':_0x11e718[_0xb6c970('0xf')](0x3)[_0xb6c970('0x18')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0xb6c970('0x16')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),'dialAMDActive',{'type':_0x11e718[_0xb6c970('0x27')],'defaultValue':0x0,'comment':_0xb6c970('0x0')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),_0xb6c970('0x2f'),{'type':_0x11e718['INTEGER'](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':_0xb6c970('0x37')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),'dialAMDGreeting',{'type':_0x11e718[_0xb6c970('0xf')](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0xb6c970('0x1e')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),_0xb6c970('0x41'),{'type':_0x11e718[_0xb6c970('0xf')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0xb6c970('0x4')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),_0xb6c970('0x1f'),{'type':_0x11e718[_0xb6c970('0xf')](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xb6c970('0x3e')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),_0xb6c970('0x42'),{'type':_0x11e718[_0xb6c970('0xf')](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0xb6c970('0x2b')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),'dialAMDBetweenWordsSilence',{'type':_0x11e718[_0xb6c970('0xf')](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x32,'comment':_0xb6c970('0x43')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),_0xb6c970('0xd'),{'type':_0x11e718['INTEGER'](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x3,'comment':_0xb6c970('0x20')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x7'),_0xb6c970('0x11'),{'type':_0x11e718['INTEGER'](0x5)[_0xb6c970('0x18')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xb6c970('0x46')}),_0x432df6[_0xb6c970('0x49')]('voice_queues',_0xb6c970('0x19'),{'type':_0x11e718['INTEGER'](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xb6c970('0x14')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x48'),_0xb6c970('0x4a'),{'type':_0x11e718[_0xb6c970('0x27')],'defaultValue':0x0,'comment':_0xb6c970('0x0')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x48'),_0xb6c970('0x2f'),{'type':_0x11e718['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x9c4,'comment':'#AMD\x20Initial\x20Silence'}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x48'),_0xb6c970('0x36'),{'type':_0x11e718[_0xb6c970('0xf')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x5dc,'comment':_0xb6c970('0x1e')}),_0x432df6[_0xb6c970('0x49')]('campaigns',_0xb6c970('0x41'),{'type':_0x11e718[_0xb6c970('0xf')](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x320,'comment':_0xb6c970('0x4')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x48'),_0xb6c970('0x1f'),{'type':_0x11e718[_0xb6c970('0xf')](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xb6c970('0x3e')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x48'),_0xb6c970('0x42'),{'type':_0x11e718['INTEGER'](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x64,'comment':_0xb6c970('0x2b')}),_0x432df6[_0xb6c970('0x49')](_0xb6c970('0x48'),_0xb6c970('0x30'),{'type':_0x11e718['INTEGER'](0x9)[_0xb6c970('0x18')],'validate':{'min':0x0},'defaultValue':0x32,'comment':'#AMD\x20Between\x20Words\x20Silence'}),_0x432df6['addColumn'](_0xb6c970('0x48'),_0xb6c970('0xd'),{'type':_0x11e718[_0xb6c970('0xf')](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x3,'comment':'#AMD\x20Maximum\x20Number\x20Of\x20Words'}),_0x432df6['addColumn'](_0xb6c970('0x48'),_0xb6c970('0x11'),{'type':_0x11e718[_0xb6c970('0xf')](0x5)[_0xb6c970('0x18')],'validate':{'min':0x0,'max':0x7fff},'defaultValue':0x100,'comment':_0xb6c970('0x46')}),_0x432df6[_0xb6c970('0x49')]('campaigns','dialAMDMaximumWordLength',{'type':_0x11e718['INTEGER'](0x9)['UNSIGNED'],'validate':{'min':0x0},'defaultValue':0x1388,'comment':_0xb6c970('0x14')}),_0x432df6[_0xb6c970('0x21')](_0xb6c970('0x2')),_0x432df6[_0xb6c970('0x21')]('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());'),_0x432df6[_0xb6c970('0x21')](_0xb6c970('0x40')),_0x432df6[_0xb6c970('0x21')](_0xb6c970('0x13')),_0x432df6[_0xb6c970('0x21')](_0xb6c970('0x9')),_0x432df6[_0xb6c970('0x21')]('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());'),_0x432df6[_0xb6c970('0x21')]('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());'),_0x432df6[_0xb6c970('0x21')](_0xb6c970('0x35')),_0x432df6[_0xb6c970('0x21')](_0xb6c970('0x2c')),_0x432df6[_0xb6c970('0x21')](_0xb6c970('0x28')),_0x432df6['query'](_0xb6c970('0x22')),_0x432df6[_0xb6c970('0x21')](_0xb6c970('0x2a')),_0x432df6['final'](_0x224dc8);});},'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 f5e95a1..fb83fbd 100644 --- a/server/migrations/2.0.30.js +++ b/server/migrations/2.0.30.js @@ -1 +1 @@ -const a909_0x2496=['then','chat_applications','dialQueueTimeout','chat_dispositions','stringify','table\x20dropped\x20%s','INTEGER','queryInterface','changeColumn','prototype','chat_queues','tail','user_has_chat_interactions','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','sequelize','Added\x20column\x20%s\x20to\x20%s','chat_visitors','info','addIndex','catch','chat_messages','team_has_chat_queues','query','enqueue','final','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','sequence','../config/logger','exports','chat_websites_fields','chat_proactive_actions','chat_enquiries','join','addIndex\x20%s\x20%s\x20%s','query\x20%s','UNSIGNED','dropTable','user_has_chat_queues'];(function(_0x5374e6,_0x24964d){const _0x4637a4=function(_0xfe95f9){while(--_0xfe95f9){_0x5374e6['push'](_0x5374e6['shift']());}};_0x4637a4(++_0x24964d);}(a909_0x2496,0x1bb));const a909_0x4637=function(_0x5374e6,_0x24964d){_0x5374e6=_0x5374e6-0x0;let _0x4637a4=a909_0x2496[_0x5374e6];return _0x4637a4;};const _0x153c7b=a909_0x4637;'use strict';const logger=require(_0x153c7b('0x1a'))(_0x153c7b('0x16')),Sequence=function(){};Sequence[_0x153c7b('0x6')][_0x153c7b('0x14')]=function(_0xfe95f9){const _0x4d009d=_0x153c7b;this[_0x4d009d('0x8')]=this['tail']?this[_0x4d009d('0x8')]['finally'](_0xfe95f9):_0xfe95f9();};const Migration=function(_0x2e52e6){const _0xadce28=_0x153c7b;this[_0xadce28('0x4')]=_0x2e52e6,this[_0xadce28('0x19')]=new Sequence();};Migration[_0x153c7b('0x6')]['changeColumn']=function(_0x5163cd,_0x5baa93,_0x38f092){const _0x112420=_0x153c7b,_0xf56538=this;this[_0x112420('0x19')][_0x112420('0x14')](function(){const _0x491431=_0x112420;return _0xf56538[_0x491431('0x4')][_0x491431('0x5')](_0x5163cd,_0x5baa93,_0x38f092)['then'](function(){const _0x9ad9ac=_0x491431;logger[_0x9ad9ac('0xe')](_0x9ad9ac('0x17'),_0x5baa93,_0x5163cd);})['catch'](function(_0x14e69e){const _0x3fa6c3=_0x491431;logger[_0x3fa6c3('0xe')](JSON[_0x3fa6c3('0x1')](_0x14e69e));});});},Migration[_0x153c7b('0x6')][_0x153c7b('0x18')]=function(_0x35e547,_0x1af05c,_0x37180e){const _0x3487dd=_0x153c7b,_0x59df5f=this;this[_0x3487dd('0x19')][_0x3487dd('0x14')](function(){const _0x59992a=_0x3487dd;return _0x59df5f[_0x59992a('0x4')][_0x59992a('0x18')](_0x35e547,_0x1af05c,_0x37180e)[_0x59992a('0x25')](function(){const _0x5a697a=_0x59992a;logger[_0x5a697a('0xe')](_0x5a697a('0xc'),_0x1af05c,_0x35e547);})[_0x59992a('0x10')](function(_0x4fb858){const _0x163bb1=_0x59992a;logger[_0x163bb1('0xe')](JSON[_0x163bb1('0x1')](_0x4fb858));});});},Migration[_0x153c7b('0x6')][_0x153c7b('0x23')]=function(_0x593284){const _0x2bbe41=_0x153c7b,_0x3b6f2c=this;this[_0x2bbe41('0x19')][_0x2bbe41('0x14')](function(){const _0x2b37e7=_0x2bbe41;return _0x3b6f2c[_0x2b37e7('0x4')]['dropTable'](_0x593284,{'force':!![]})[_0x2b37e7('0x25')](function(){const _0x3254ba=_0x2b37e7;logger[_0x3254ba('0xe')](_0x3254ba('0x2'),_0x593284);})['catch'](function(_0x5722b3){const _0x5dffb1=_0x2b37e7;logger[_0x5dffb1('0xe')](JSON['stringify'](_0x5722b3));});});},Migration[_0x153c7b('0x6')]['addIndex']=function(_0x395fc3,_0xea6727,_0x75de86){const _0x262a58=_0x153c7b,_0x561b9d=this;this[_0x262a58('0x19')][_0x262a58('0x14')](function(){const _0x5ac1b4=_0x262a58;return _0x561b9d[_0x5ac1b4('0x4')][_0x5ac1b4('0xf')](_0x395fc3,_0xea6727,{'indexName':_0x75de86})[_0x5ac1b4('0x25')](function(){const _0x248aff=_0x5ac1b4;logger['info'](_0x248aff('0x20'),_0x395fc3,_0xea6727[_0x248aff('0x1f')](','),_0x75de86);})[_0x5ac1b4('0x10')](function(_0x1c0b82){const _0x5228b9=_0x5ac1b4;logger[_0x5228b9('0xe')](JSON[_0x5228b9('0x1')](_0x1c0b82));});});},Migration[_0x153c7b('0x6')][_0x153c7b('0x13')]=function(_0x4d47ee){const _0x4f17d8=_0x153c7b,_0x55ce9e=this;this[_0x4f17d8('0x19')]['enqueue'](function(){const _0x24c192=_0x4f17d8;return _0x55ce9e[_0x24c192('0x4')][_0x24c192('0xb')]['query'](_0x4d47ee)[_0x24c192('0x25')](function(){const _0x199e3a=_0x24c192;logger['info'](_0x199e3a('0x21'),_0x4d47ee);})[_0x24c192('0x10')](function(_0x57c75f){const _0x12fcd4=_0x24c192;logger[_0x12fcd4('0xe')](JSON['stringify'](_0x57c75f));});});},Migration['prototype'][_0x153c7b('0x15')]=function(_0x509101){const _0x376267=_0x153c7b;this[_0x376267('0x19')][_0x376267('0x14')](function(){return _0x509101();});},module[_0x153c7b('0x1b')]={'up':function(_0x5833ad,_0x1b4755){return new Promise(function(_0x2e6e43){const _0x4a0545=a909_0x4637,_0x3b0cfc=new Migration(_0x5833ad);_0x3b0cfc[_0x4a0545('0x23')]('user_has_chat_rooms'),_0x3b0cfc[_0x4a0545('0x23')](_0x4a0545('0x1e')),_0x3b0cfc['dropTable'](_0x4a0545('0x11')),_0x3b0cfc[_0x4a0545('0x23')](_0x4a0545('0x1d')),_0x3b0cfc['dropTable'](_0x4a0545('0x0')),_0x3b0cfc['dropTable'](_0x4a0545('0x26')),_0x3b0cfc[_0x4a0545('0x23')](_0x4a0545('0x9')),_0x3b0cfc['dropTable']('chat_interactions'),_0x3b0cfc[_0x4a0545('0x23')](_0x4a0545('0x12')),_0x3b0cfc[_0x4a0545('0x23')](_0x4a0545('0x24')),_0x3b0cfc[_0x4a0545('0x23')](_0x4a0545('0x7')),_0x3b0cfc[_0x4a0545('0x23')](_0x4a0545('0xd')),_0x3b0cfc[_0x4a0545('0x23')](_0x4a0545('0x1c')),_0x3b0cfc[_0x4a0545('0x23')]('chat_websites'),_0x3b0cfc[_0x4a0545('0x5')]('voice_queues',_0x4a0545('0x27'),{'type':_0x1b4755[_0x4a0545('0x3')](0x3)[_0x4a0545('0x22')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x4a0545('0xa')}),_0x3b0cfc[_0x4a0545('0x15')](_0x2e6e43);});},'down':function(){}}; \ No newline at end of file +const a909_0x27bd=['chat_enquiries','addColumn','sequence','chat_dispositions','chat_applications','chat_visitors','exports','user_has_chat_queues','query\x20%s','user_has_chat_rooms','finally','dialQueueTimeout','catch','chat_websites_fields','table\x20dropped\x20%s','Queue\x20Timeout\x20Seconds\x20(min:1,\x20max:999)','stringify','chat_messages','then','chat_proactive_actions','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','addIndex','prototype','info','Added\x20column\x20%s\x20to\x20%s','UNSIGNED','enqueue','query','tail','migration','changeColumn','queryInterface','INTEGER','chat_queues','voice_queues','chat_interactions','dropTable','user_has_chat_interactions'];(function(_0xb8f8d9,_0x27bddc){const _0x133840=function(_0x172488){while(--_0x172488){_0xb8f8d9['push'](_0xb8f8d9['shift']());}};_0x133840(++_0x27bddc);}(a909_0x27bd,0xce));const a909_0x1338=function(_0xb8f8d9,_0x27bddc){_0xb8f8d9=_0xb8f8d9-0x0;let _0x133840=a909_0x27bd[_0xb8f8d9];return _0x133840;};const _0x3cccf5=a909_0x1338;'use strict';const logger=require('../config/logger')(_0x3cccf5('0x19')),Sequence=function(){};Sequence[_0x3cccf5('0x12')]['enqueue']=function(_0x172488){const _0x32511a=_0x3cccf5;this['tail']=this[_0x32511a('0x18')]?this[_0x32511a('0x18')][_0x32511a('0x4')](_0x172488):_0x172488();};const Migration=function(_0xbbdfff){const _0x4e564c=_0x3cccf5;this[_0x4e564c('0x1b')]=_0xbbdfff,this[_0x4e564c('0x24')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0xe95741,_0x2531e5,_0x1ff02d){const _0x4dbabf=_0x3cccf5,_0x5c6bfe=this;this[_0x4dbabf('0x24')][_0x4dbabf('0x16')](function(){const _0x2de9de=_0x4dbabf;return _0x5c6bfe[_0x2de9de('0x1b')][_0x2de9de('0x1a')](_0xe95741,_0x2531e5,_0x1ff02d)[_0x2de9de('0xc')](function(){const _0x1f401e=_0x2de9de;logger[_0x1f401e('0x13')](_0x1f401e('0xf'),_0x2531e5,_0xe95741);})[_0x2de9de('0x6')](function(_0x13a39f){const _0x5f37d9=_0x2de9de;logger[_0x5f37d9('0x13')](JSON[_0x5f37d9('0xa')](_0x13a39f));});});},Migration[_0x3cccf5('0x12')][_0x3cccf5('0x23')]=function(_0x445eee,_0x42364f,_0x4c096f){const _0x283aa8=_0x3cccf5,_0x782eaa=this;this[_0x283aa8('0x24')][_0x283aa8('0x16')](function(){const _0x1c9450=_0x283aa8;return _0x782eaa[_0x1c9450('0x1b')][_0x1c9450('0x23')](_0x445eee,_0x42364f,_0x4c096f)[_0x1c9450('0xc')](function(){const _0x5393f1=_0x1c9450;logger[_0x5393f1('0x13')](_0x5393f1('0x14'),_0x42364f,_0x445eee);})[_0x1c9450('0x6')](function(_0x53673c){const _0x502b8c=_0x1c9450;logger['info'](JSON[_0x502b8c('0xa')](_0x53673c));});});},Migration['prototype'][_0x3cccf5('0x20')]=function(_0x3513f5){const _0x170c02=_0x3cccf5,_0x497301=this;this[_0x170c02('0x24')][_0x170c02('0x16')](function(){const _0xf5b7a6=_0x170c02;return _0x497301['queryInterface'][_0xf5b7a6('0x20')](_0x3513f5,{'force':!![]})['then'](function(){const _0x52b4fb=_0xf5b7a6;logger[_0x52b4fb('0x13')](_0x52b4fb('0x8'),_0x3513f5);})['catch'](function(_0x2afcda){const _0x2a6d0f=_0xf5b7a6;logger[_0x2a6d0f('0x13')](JSON[_0x2a6d0f('0xa')](_0x2afcda));});});},Migration[_0x3cccf5('0x12')][_0x3cccf5('0x11')]=function(_0x1a30bc,_0x11e8f3,_0x2c99e2){const _0x5be4c1=_0x3cccf5,_0x16c337=this;this['sequence'][_0x5be4c1('0x16')](function(){const _0x244148=_0x5be4c1;return _0x16c337['queryInterface'][_0x244148('0x11')](_0x1a30bc,_0x11e8f3,{'indexName':_0x2c99e2})[_0x244148('0xc')](function(){const _0x398b6e=_0x244148;logger[_0x398b6e('0x13')](_0x398b6e('0x10'),_0x1a30bc,_0x11e8f3['join'](','),_0x2c99e2);})[_0x244148('0x6')](function(_0x58aaf2){const _0x214086=_0x244148;logger[_0x214086('0x13')](JSON[_0x214086('0xa')](_0x58aaf2));});});},Migration[_0x3cccf5('0x12')][_0x3cccf5('0x17')]=function(_0x3534a6){const _0x40fa25=_0x3cccf5,_0x377462=this;this[_0x40fa25('0x24')][_0x40fa25('0x16')](function(){const _0x56a5bf=_0x40fa25;return _0x377462['queryInterface'][_0x56a5bf('0xe')][_0x56a5bf('0x17')](_0x3534a6)[_0x56a5bf('0xc')](function(){const _0x3c72fe=_0x56a5bf;logger[_0x3c72fe('0x13')](_0x3c72fe('0x2'),_0x3534a6);})[_0x56a5bf('0x6')](function(_0x4d4198){const _0x1156d6=_0x56a5bf;logger[_0x1156d6('0x13')](JSON[_0x1156d6('0xa')](_0x4d4198));});});},Migration['prototype']['final']=function(_0x3f5caa){const _0x4fd209=_0x3cccf5;this[_0x4fd209('0x24')]['enqueue'](function(){return _0x3f5caa();});},module[_0x3cccf5('0x0')]={'up':function(_0xe878b,_0x4099e3){return new Promise(function(_0x25ee84){const _0x334136=a909_0x1338,_0x294465=new Migration(_0xe878b);_0x294465['dropTable'](_0x334136('0x3')),_0x294465[_0x334136('0x20')](_0x334136('0x22')),_0x294465[_0x334136('0x20')](_0x334136('0xb')),_0x294465[_0x334136('0x20')](_0x334136('0xd')),_0x294465[_0x334136('0x20')](_0x334136('0x25')),_0x294465[_0x334136('0x20')](_0x334136('0x26')),_0x294465[_0x334136('0x20')](_0x334136('0x21')),_0x294465[_0x334136('0x20')](_0x334136('0x1f')),_0x294465['dropTable']('team_has_chat_queues'),_0x294465['dropTable'](_0x334136('0x1')),_0x294465[_0x334136('0x20')](_0x334136('0x1d')),_0x294465[_0x334136('0x20')](_0x334136('0x27')),_0x294465[_0x334136('0x20')](_0x334136('0x7')),_0x294465[_0x334136('0x20')]('chat_websites'),_0x294465[_0x334136('0x1a')](_0x334136('0x1e'),_0x334136('0x5'),{'type':_0x4099e3[_0x334136('0x1c')](0x3)[_0x334136('0x15')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x3e7},'comment':_0x334136('0x9')}),_0x294465['final'](_0x25ee84);});},'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 a8488d4..87acd1b 100644 --- a/server/migrations/2.0.31.js +++ b/server/migrations/2.0.31.js @@ -1 +1 @@ -const a910_0xfdfc=['dropTable','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());','query','transfer','token','sms_interactions','transfertype','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());','cm_contacts','chat_websites','phoneBarUnansweredCallBadge','sms_dispositions','../config/logger','enqueue','timezone','transferexten','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());','questionId','report_jscripty_questions','table\x20dropped\x20%s','finally','sms_applications','queryInterface','IntervalId','exports','catch','report_jscripty_answers','user_has_sms_interactions','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());','sequence','sequelize','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','prototype','migration','report_queue','user_has_sms_queues','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','sms_accounts','twitter','tail','query\x20%s','join','STRING','addColumn','stringify','then','sms_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-preview\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','final','BOOLEAN'];(function(_0xf1acfa,_0xfdfcf7){const _0x3d599e=function(_0x5888a3){while(--_0x5888a3){_0xf1acfa['push'](_0xf1acfa['shift']());}};_0x3d599e(++_0xfdfcf7);}(a910_0xfdfc,0xfd));const a910_0x3d59=function(_0xf1acfa,_0xfdfcf7){_0xf1acfa=_0xf1acfa-0x0;let _0x3d599e=a910_0xfdfc[_0xf1acfa];return _0x3d599e;};const _0x58f19c=a910_0x3d59;'use strict';const logger=require(_0x58f19c('0x13'))(_0x58f19c('0x29')),Sequence=function(){};Sequence[_0x58f19c('0x28')][_0x58f19c('0x14')]=function(_0x5888a3){const _0x21fc4e=_0x58f19c;this[_0x21fc4e('0x30')]=this['tail']?this[_0x21fc4e('0x30')][_0x21fc4e('0x1b')](_0x5888a3):_0x5888a3();};const Migration=function(_0x434df2){this['queryInterface']=_0x434df2,this['sequence']=new Sequence();};Migration[_0x58f19c('0x28')]['changeColumn']=function(_0x106bbd,_0x2cee3d,_0x167aa3){const _0x2e7ae6=_0x58f19c,_0x18962e=this;this[_0x2e7ae6('0x25')]['enqueue'](function(){const _0x577fd7=_0x2e7ae6;return _0x18962e[_0x577fd7('0x1d')]['changeColumn'](_0x106bbd,_0x2cee3d,_0x167aa3)[_0x577fd7('0x2')](function(){const _0x56595a=_0x577fd7;logger['info'](_0x56595a('0x2c'),_0x2cee3d,_0x106bbd);})[_0x577fd7('0x20')](function(_0x51dbdd){const _0x173618=_0x577fd7;logger['info'](JSON[_0x173618('0x1')](_0x51dbdd));});});},Migration[_0x58f19c('0x28')][_0x58f19c('0x0')]=function(_0x3a583a,_0x6729ea,_0x1be781){const _0x5afa49=_0x58f19c,_0x1a0790=this;this[_0x5afa49('0x25')][_0x5afa49('0x14')](function(){const _0x584a3b=_0x5afa49;return _0x1a0790['queryInterface'][_0x584a3b('0x0')](_0x3a583a,_0x6729ea,_0x1be781)[_0x584a3b('0x2')](function(){const _0x436a53=_0x584a3b;logger[_0x436a53('0x23')](_0x436a53('0x2d'),_0x6729ea,_0x3a583a);})[_0x584a3b('0x20')](function(_0x3b350c){const _0xef604d=_0x584a3b;logger[_0xef604d('0x23')](JSON['stringify'](_0x3b350c));});});},Migration[_0x58f19c('0x28')]['dropTable']=function(_0x5d9b1e){const _0x1bcd73=_0x58f19c,_0x462e4c=this;this[_0x1bcd73('0x25')]['enqueue'](function(){const _0x490d77=_0x1bcd73;return _0x462e4c[_0x490d77('0x1d')][_0x490d77('0x7')](_0x5d9b1e,{'force':!![]})[_0x490d77('0x2')](function(){const _0x3dfb10=_0x490d77;logger[_0x3dfb10('0x23')](_0x3dfb10('0x1a'),_0x5d9b1e);})[_0x490d77('0x20')](function(_0x3f69de){logger['info'](JSON['stringify'](_0x3f69de));});});},Migration['prototype']['addIndex']=function(_0x26fe8e,_0x5a3fb0,_0x72094f){const _0x4fe9d5=_0x58f19c,_0x117544=this;this['sequence'][_0x4fe9d5('0x14')](function(){const _0x4230ac=_0x4fe9d5;return _0x117544['queryInterface']['addIndex'](_0x26fe8e,_0x5a3fb0,{'indexName':_0x72094f})['then'](function(){const _0x8a1071=a910_0x3d59;logger[_0x8a1071('0x23')]('addIndex\x20%s\x20%s\x20%s',_0x26fe8e,_0x5a3fb0[_0x8a1071('0x32')](','),_0x72094f);})[_0x4230ac('0x20')](function(_0x5c4d1d){const _0x2d9f53=_0x4230ac;logger[_0x2d9f53('0x23')](JSON[_0x2d9f53('0x1')](_0x5c4d1d));});});},Migration['prototype'][_0x58f19c('0x9')]=function(_0x993b97){const _0x557a00=_0x58f19c,_0x4bf406=this;this[_0x557a00('0x25')]['enqueue'](function(){const _0x5ba2e4=_0x557a00;return _0x4bf406['queryInterface'][_0x5ba2e4('0x26')][_0x5ba2e4('0x9')](_0x993b97)[_0x5ba2e4('0x2')](function(){const _0x16f2c1=_0x5ba2e4;logger['info'](_0x16f2c1('0x31'),_0x993b97);})[_0x5ba2e4('0x20')](function(_0x228d0f){const _0x42d72d=_0x5ba2e4;logger['info'](JSON[_0x42d72d('0x1')](_0x228d0f));});});},Migration['prototype']['final']=function(_0x40e538){const _0x4f7c85=_0x58f19c;this[_0x4f7c85('0x25')][_0x4f7c85('0x14')](function(){return _0x40e538();});},module[_0x58f19c('0x1f')]={'up':function(_0x3284b0,_0x4ab60b){return new Promise(function(_0x37ccef){const _0x50e481=a910_0x3d59,_0x244326=new Migration(_0x3284b0);_0x244326['dropTable']('sms_messages'),_0x244326[_0x50e481('0x7')](_0x50e481('0x12')),_0x244326['dropTable'](_0x50e481('0x1c')),_0x244326[_0x50e481('0x7')](_0x50e481('0x22')),_0x244326['dropTable'](_0x50e481('0xc')),_0x244326[_0x50e481('0x7')]('team_has_sms_queues'),_0x244326[_0x50e481('0x7')](_0x50e481('0x2b')),_0x244326[_0x50e481('0x7')](_0x50e481('0x3')),_0x244326['dropTable'](_0x50e481('0x2e')),_0x244326[_0x50e481('0x0')](_0x50e481('0xf'),'facebook',{'type':_0x4ab60b[_0x50e481('0x33')]}),_0x244326[_0x50e481('0x0')]('cm_contacts',_0x50e481('0x2f'),{'type':_0x4ab60b[_0x50e481('0x33')]}),_0x244326[_0x50e481('0x9')](_0x50e481('0x27')),_0x244326[_0x50e481('0x9')]('ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId'),_0x244326['addColumn'](_0x50e481('0x10'),_0x50e481('0x15'),{'type':_0x4ab60b[_0x50e481('0x33')]}),_0x244326[_0x50e481('0x0')]('chat_websites',_0x50e481('0xb'),{'type':_0x4ab60b[_0x50e481('0x33')]}),_0x244326[_0x50e481('0x0')](_0x50e481('0x10'),_0x50e481('0x1e'),{'type':_0x4ab60b['INTEGER'](0xb)}),_0x244326[_0x50e481('0x9')]('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'),_0x244326[_0x50e481('0x0')](_0x50e481('0x2a'),_0x50e481('0xa'),{'type':_0x4ab60b['BOOLEAN'],'defaultValue':![]}),_0x244326['addColumn'](_0x50e481('0x2a'),_0x50e481('0xd'),{'type':_0x4ab60b[_0x50e481('0x33')],'comment':'FORWARD,\x20BLIND,\x20ATTENDED'}),_0x244326[_0x50e481('0x0')](_0x50e481('0x2a'),_0x50e481('0x16'),{'type':_0x4ab60b[_0x50e481('0x33')]}),_0x244326[_0x50e481('0x0')](_0x50e481('0x2a'),'transferuniqueid',{'type':_0x4ab60b[_0x50e481('0x33')]}),_0x244326[_0x50e481('0x0')](_0x50e481('0x21'),_0x50e481('0x18'),{'type':_0x4ab60b[_0x50e481('0x33')]}),_0x244326['addColumn'](_0x50e481('0x19'),_0x50e481('0x18'),{'type':_0x4ab60b[_0x50e481('0x33')]}),_0x244326[_0x50e481('0x0')]('users',_0x50e481('0x11'),{'type':_0x4ab60b[_0x50e481('0x6')],'defaultValue':!![]}),_0x244326['query'](_0x50e481('0x4')),_0x244326[_0x50e481('0x9')](_0x50e481('0x17')),_0x244326[_0x50e481('0x9')](_0x50e481('0xe')),_0x244326[_0x50e481('0x9')](_0x50e481('0x24')),_0x244326[_0x50e481('0x9')](_0x50e481('0x8')),_0x244326[_0x50e481('0x5')](_0x37ccef);});},'down':function(){}}; \ No newline at end of file +const a910_0x17c5=['transferuniqueid','IntervalId','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());','transfertype','ALTER\x20TABLE\x20chat_websites\x20DROP\x20FOREIGN\x20KEY\x20chat_websites_ibfk_2','Added\x20column\x20%s\x20to\x20%s','transfer','token','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','STRING','INTEGER','transferexten','changeColumn','users','twitter','query','questionId','addIndex\x20%s\x20%s\x20%s','join','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());','query\x20%s','addColumn','tail','enqueue','migration','sms_applications','table\x20dropped\x20%s','sms_accounts','ALTER\x20TABLE\x20chat_websites\x20DROP\x20COLUMN\x20OfflineTemplateId','sms_dispositions','FORWARD,\x20BLIND,\x20ATTENDED','report_jscripty_questions','final','stringify','timezone','catch','facebook','cm_contacts','user_has_sms_queues','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\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','prototype','phoneBarUnansweredCallBadge','chat_websites','team_has_sms_queues','report_queue','info','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','then','report_jscripty_answers','finally','queryInterface','sequence','user_has_sms_interactions','sms_queues'];(function(_0xd641fc,_0x17c593){const _0x2dc19d=function(_0x81d280){while(--_0x81d280){_0xd641fc['push'](_0xd641fc['shift']());}};_0x2dc19d(++_0x17c593);}(a910_0x17c5,0x85));const a910_0x2dc1=function(_0xd641fc,_0x17c593){_0xd641fc=_0xd641fc-0x0;let _0x2dc19d=a910_0x17c5[_0xd641fc];return _0x2dc19d;};const _0x1bafe0=a910_0x2dc1;'use strict';const logger=require('../config/logger')(_0x1bafe0('0x5')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x81d280){const _0x2426fe=_0x1bafe0;this[_0x2426fe('0x3')]=this[_0x2426fe('0x3')]?this[_0x2426fe('0x3')][_0x2426fe('0x21')](_0x81d280):_0x81d280();};const Migration=function(_0x4b91e7){const _0x5cff0e=_0x1bafe0;this['queryInterface']=_0x4b91e7,this[_0x5cff0e('0x23')]=new Sequence();};Migration[_0x1bafe0('0x16')][_0x1bafe0('0x32')]=function(_0x5df62a,_0x2a177e,_0x134c5a){const _0x508e0c=_0x1bafe0,_0x1568c7=this;this[_0x508e0c('0x23')]['enqueue'](function(){const _0x3a02db=_0x508e0c;return _0x1568c7[_0x3a02db('0x22')][_0x3a02db('0x32')](_0x5df62a,_0x2a177e,_0x134c5a)[_0x3a02db('0x1f')](function(){const _0x2b631e=_0x3a02db;logger['info'](_0x2b631e('0x1d'),_0x2a177e,_0x5df62a);})['catch'](function(_0x3a2c7b){const _0x306cd4=_0x3a02db;logger[_0x306cd4('0x1b')](JSON[_0x306cd4('0xe')](_0x3a2c7b));});});},Migration[_0x1bafe0('0x16')][_0x1bafe0('0x2')]=function(_0xbea14,_0x358c21,_0x3fbeca){const _0x5dbec4=this;this['sequence']['enqueue'](function(){const _0x56cc7e=a910_0x2dc1;return _0x5dbec4[_0x56cc7e('0x22')][_0x56cc7e('0x2')](_0xbea14,_0x358c21,_0x3fbeca)[_0x56cc7e('0x1f')](function(){const _0x49ed82=_0x56cc7e;logger[_0x49ed82('0x1b')](_0x49ed82('0x2b'),_0x358c21,_0xbea14);})['catch'](function(_0x1285f5){const _0x7dcf46=_0x56cc7e;logger['info'](JSON[_0x7dcf46('0xe')](_0x1285f5));});});},Migration[_0x1bafe0('0x16')][_0x1bafe0('0x1e')]=function(_0x1693e4){const _0x5e9166=_0x1bafe0,_0x7cb98f=this;this[_0x5e9166('0x23')]['enqueue'](function(){const _0x34283a=_0x5e9166;return _0x7cb98f[_0x34283a('0x22')][_0x34283a('0x1e')](_0x1693e4,{'force':!![]})[_0x34283a('0x1f')](function(){const _0x57b83c=_0x34283a;logger['info'](_0x57b83c('0x7'),_0x1693e4);})[_0x34283a('0x10')](function(_0x1de486){const _0x1b2a35=_0x34283a;logger[_0x1b2a35('0x1b')](JSON[_0x1b2a35('0xe')](_0x1de486));});});},Migration['prototype'][_0x1bafe0('0x14')]=function(_0x2b227c,_0x2f1e41,_0x17badc){const _0x49c91c=_0x1bafe0,_0xc69f88=this;this[_0x49c91c('0x23')][_0x49c91c('0x4')](function(){const _0x3e180b=_0x49c91c;return _0xc69f88['queryInterface'][_0x3e180b('0x14')](_0x2b227c,_0x2f1e41,{'indexName':_0x17badc})['then'](function(){const _0x2f2dcb=_0x3e180b;logger[_0x2f2dcb('0x1b')](_0x2f2dcb('0x37'),_0x2b227c,_0x2f1e41[_0x2f2dcb('0x38')](','),_0x17badc);})[_0x3e180b('0x10')](function(_0xc7a617){const _0x34b000=_0x3e180b;logger['info'](JSON[_0x34b000('0xe')](_0xc7a617));});});},Migration[_0x1bafe0('0x16')][_0x1bafe0('0x35')]=function(_0x11fd43){const _0x565dd=_0x1bafe0,_0x45c9c9=this;this[_0x565dd('0x23')][_0x565dd('0x4')](function(){const _0x4917e4=_0x565dd;return _0x45c9c9[_0x4917e4('0x22')]['sequelize'][_0x4917e4('0x35')](_0x11fd43)[_0x4917e4('0x1f')](function(){const _0xc7d6e=_0x4917e4;logger[_0xc7d6e('0x1b')](_0xc7d6e('0x1'),_0x11fd43);})[_0x4917e4('0x10')](function(_0x5cdb8c){const _0x8c8aa2=_0x4917e4;logger['info'](JSON[_0x8c8aa2('0xe')](_0x5cdb8c));});});},Migration[_0x1bafe0('0x16')][_0x1bafe0('0xd')]=function(_0x39a925){const _0x10765b=_0x1bafe0;this[_0x10765b('0x23')][_0x10765b('0x4')](function(){return _0x39a925();});},module['exports']={'up':function(_0x4a5a02,_0x556f02){return new Promise(function(_0x3f2196){const _0x4b3071=a910_0x2dc1,_0x194467=new Migration(_0x4a5a02);_0x194467['dropTable']('sms_messages'),_0x194467[_0x4b3071('0x1e')](_0x4b3071('0xa')),_0x194467[_0x4b3071('0x1e')](_0x4b3071('0x6')),_0x194467[_0x4b3071('0x1e')](_0x4b3071('0x24')),_0x194467[_0x4b3071('0x1e')]('sms_interactions'),_0x194467[_0x4b3071('0x1e')](_0x4b3071('0x19')),_0x194467[_0x4b3071('0x1e')](_0x4b3071('0x13')),_0x194467[_0x4b3071('0x1e')](_0x4b3071('0x25')),_0x194467['dropTable'](_0x4b3071('0x8')),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x12'),_0x4b3071('0x11'),{'type':_0x556f02[_0x4b3071('0x2f')]}),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x12'),_0x4b3071('0x34'),{'type':_0x556f02[_0x4b3071('0x2f')]}),_0x194467[_0x4b3071('0x35')](_0x4b3071('0x2a')),_0x194467[_0x4b3071('0x35')](_0x4b3071('0x9')),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x18'),_0x4b3071('0xf'),{'type':_0x556f02[_0x4b3071('0x2f')]}),_0x194467[_0x4b3071('0x2')]('chat_websites',_0x4b3071('0x2d'),{'type':_0x556f02[_0x4b3071('0x2f')]}),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x18'),_0x4b3071('0x27'),{'type':_0x556f02[_0x4b3071('0x30')](0xb)}),_0x194467[_0x4b3071('0x35')](_0x4b3071('0x2e')),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x1a'),_0x4b3071('0x2c'),{'type':_0x556f02[_0x4b3071('0x1c')],'defaultValue':![]}),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x1a'),_0x4b3071('0x29'),{'type':_0x556f02[_0x4b3071('0x2f')],'comment':_0x4b3071('0xb')}),_0x194467['addColumn'](_0x4b3071('0x1a'),_0x4b3071('0x31'),{'type':_0x556f02[_0x4b3071('0x2f')]}),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x1a'),_0x4b3071('0x26'),{'type':_0x556f02['STRING']}),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x20'),'questionId',{'type':_0x556f02[_0x4b3071('0x2f')]}),_0x194467[_0x4b3071('0x2')](_0x4b3071('0xc'),_0x4b3071('0x36'),{'type':_0x556f02[_0x4b3071('0x2f')]}),_0x194467[_0x4b3071('0x2')](_0x4b3071('0x33'),_0x4b3071('0x17'),{'type':_0x556f02[_0x4b3071('0x1c')],'defaultValue':!![]}),_0x194467[_0x4b3071('0x35')]('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());'),_0x194467['query'](_0x4b3071('0x15')),_0x194467[_0x4b3071('0x35')]('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());'),_0x194467[_0x4b3071('0x35')](_0x4b3071('0x28')),_0x194467[_0x4b3071('0x35')](_0x4b3071('0x0')),_0x194467[_0x4b3071('0xd')](_0x3f2196);});},'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..5fc2ff7 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_0x507b=['exports'];(function(_0x55b02f,_0x507b78){var _0x4f8bff=function(_0xa49dd7){while(--_0xa49dd7){_0x55b02f['push'](_0x55b02f['shift']());}};_0x4f8bff(++_0x507b78);}(a911_0x507b,0x1ce));var a911_0x4f8b=function(_0x55b02f,_0x507b78){_0x55b02f=_0x55b02f-0x0;var _0x4f8bff=a911_0x507b[_0x55b02f];return _0x4f8bff;};var _0xb5b057=a911_0x4f8b;'use strict';module[_0xb5b057('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 7ae5df9..d794dc5 100644 --- a/server/migrations/2.0.33.js +++ b/server/migrations/2.0.33.js @@ -1 +1 @@ -const a912_0x49ef=['query','ratingMessage','tail','info','color_button','INTEGER','sms_messages','sequelize','actions','queue','fidelity','BOOLEAN','ratingValue','UNSIGNED','fax_dispositions','inspect','user_has_fax_interactions','closingMessageButton','addIndex','cm_hopper','closeUrl','forwardOfflineAddress','addColumn','catch','then','util','fax_applications','acceptUrl','star','../config/logger','finally','TEXT','enqueue','final','user_has_chat_queues','changeColumn','pathTranscript','assigned','fax_queues','fax_interactions','fax_attachments','user_has_fax_rooms','mapKeyOffline','stringify','Added\x20column\x20%s\x20to\x20%s','fax_messages','chat_interactions','removeColumn','chat_websites','user_has_fax_queues','prototype','fax_accounts','STRING','thumb','timeout','Agent','closingMessage','sequence','sitepic','queryInterface','user_has_openchannel_queues','dropTable','priority','forwardTranscript','acceptMethod','migration','team_has_fax_queues','rejectMethod','ratingStarsNumber'];(function(_0x106756,_0x49ef35){const _0x56c3f0=function(_0x47c220){while(--_0x47c220){_0x106756['push'](_0x106756['shift']());}};_0x56c3f0(++_0x49ef35);}(a912_0x49ef,0x96));const a912_0x56c3=function(_0x106756,_0x49ef35){_0x106756=_0x106756-0x0;let _0x56c3f0=a912_0x49ef[_0x106756];return _0x56c3f0;};const _0x5c13bf=a912_0x56c3;'use strict';const logger=require(_0x5c13bf('0x11'))(_0x5c13bf('0x35')),util=require(_0x5c13bf('0xd')),Sequence=function(){};Sequence[_0x5c13bf('0x26')][_0x5c13bf('0x14')]=function(_0x47c220){const _0x3dfa52=_0x5c13bf;this[_0x3dfa52('0x3b')]=this[_0x3dfa52('0x3b')]?this[_0x3dfa52('0x3b')][_0x3dfa52('0x12')](_0x47c220):_0x47c220();};const Migration=function(_0x2919f1){const _0x3da430=_0x5c13bf;this[_0x3da430('0x2f')]=_0x2919f1,this[_0x3da430('0x2d')]=new Sequence();};Migration[_0x5c13bf('0x26')][_0x5c13bf('0x17')]=function(_0x3180b9,_0xaef3fe,_0x1537fd){const _0x16494d=_0x5c13bf,_0xd57a=this;this[_0x16494d('0x2d')][_0x16494d('0x14')](function(){const _0x2666f8=_0x16494d;return _0xd57a[_0x2666f8('0x2f')][_0x2666f8('0x17')](_0x3180b9,_0xaef3fe,_0x1537fd)[_0x2666f8('0xc')](function(){const _0x351aaf=_0x2666f8;logger[_0x351aaf('0x3c')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xaef3fe,_0x3180b9);})[_0x2666f8('0xb')](function(_0x43a70b){const _0x312605=_0x2666f8;logger['info'](JSON[_0x312605('0x1f')](_0x43a70b));});});},Migration[_0x5c13bf('0x26')]['addColumn']=function(_0x495035,_0x40cdbd,_0x36ec13){const _0x13bd56=_0x5c13bf,_0x100c22=this;this[_0x13bd56('0x2d')][_0x13bd56('0x14')](function(){const _0x5baeac=_0x13bd56;return _0x100c22[_0x5baeac('0x2f')][_0x5baeac('0xa')](_0x495035,_0x40cdbd,_0x36ec13)[_0x5baeac('0xc')](function(){const _0x3ff450=_0x5baeac;logger[_0x3ff450('0x3c')](_0x3ff450('0x20'),_0x40cdbd,_0x495035);})[_0x5baeac('0xb')](function(_0x449ed2){const _0x417b5e=_0x5baeac;logger['info'](JSON[_0x417b5e('0x1f')](_0x449ed2));});});},Migration[_0x5c13bf('0x26')][_0x5c13bf('0x31')]=function(_0x10b985){const _0x403619=_0x5c13bf,_0x75ca9d=this;this[_0x403619('0x2d')][_0x403619('0x14')](function(){const _0x24a564=_0x403619;return _0x75ca9d[_0x24a564('0x2f')][_0x24a564('0x31')](_0x10b985,{'force':!![]})[_0x24a564('0xc')](function(){const _0x459e42=_0x24a564;logger[_0x459e42('0x3c')]('table\x20dropped\x20%s',_0x10b985);})[_0x24a564('0xb')](function(_0x226c8e){const _0x1f1a36=_0x24a564;logger[_0x1f1a36('0x3c')](JSON[_0x1f1a36('0x1f')](_0x226c8e));});});},Migration[_0x5c13bf('0x26')]['addIndex']=function(_0x15a78f,_0x199e1d,_0x3185b2){const _0x1a092e=this;this['sequence']['enqueue'](function(){const _0x306e7f=a912_0x56c3;return _0x1a092e[_0x306e7f('0x2f')][_0x306e7f('0x6')](_0x15a78f,_0x199e1d,{'indexName':_0x3185b2})[_0x306e7f('0xc')](function(){const _0x486196=_0x306e7f;logger[_0x486196('0x3c')]('addIndex\x20%s\x20%s\x20%s',_0x15a78f,_0x199e1d['join'](','),_0x3185b2);})['catch'](function(_0x5ed970){const _0x45c25e=_0x306e7f;logger['info'](JSON[_0x45c25e('0x1f')](_0x5ed970));});});},Migration[_0x5c13bf('0x26')][_0x5c13bf('0x39')]=function(_0x305ce4){const _0x18349c=_0x5c13bf,_0x4baef9=this;this[_0x18349c('0x2d')][_0x18349c('0x14')](function(){const _0x248878=_0x18349c;return _0x4baef9['queryInterface'][_0x248878('0x40')][_0x248878('0x39')](_0x305ce4)[_0x248878('0xc')](function(){const _0x3953a4=_0x248878;logger[_0x3953a4('0x3c')]('query\x20%s',_0x305ce4);})['catch'](function(_0x586b34){const _0xed2094=_0x248878;logger['info'](JSON[_0xed2094('0x1f')](_0x586b34));});});},Migration[_0x5c13bf('0x26')][_0x5c13bf('0x23')]=function(_0x1d52e9,_0x5cf51a){const _0x201eb4=_0x5c13bf,_0x33e4e2=this;this[_0x201eb4('0x2d')][_0x201eb4('0x14')](function(){const _0x3a8ad4=_0x201eb4;return _0x33e4e2[_0x3a8ad4('0x2f')][_0x3a8ad4('0x23')](_0x1d52e9,_0x5cf51a)[_0x3a8ad4('0xc')](function(){const _0x4a8596=_0x3a8ad4;logger[_0x4a8596('0x3c')]('Removed\x20column\x20%s\x20from\x20%s',_0x5cf51a,_0x1d52e9);})[_0x3a8ad4('0xb')](function(_0x145703){const _0x4f04fd=_0x3a8ad4;logger[_0x4f04fd('0x3c')](util[_0x4f04fd('0x3')](_0x145703,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5c13bf('0x15')]=function(_0x35cb02){const _0x3b34a2=_0x5c13bf;this[_0x3b34a2('0x2d')]['enqueue'](function(){return _0x35cb02();});},module['exports']={'up':function(_0x1a7adc,_0x4e51e9){return new Promise(function(_0x2ed0ce){const _0x57d7dd=a912_0x56c3,_0x56c199=new Migration(_0x1a7adc);_0x56c199[_0x57d7dd('0xa')]('chat_websites','agentAlias',{'type':_0x4e51e9[_0x57d7dd('0x28')],'defaultValue':_0x57d7dd('0x2b')}),_0x56c199[_0x57d7dd('0xa')]('chat_websites',_0x57d7dd('0x1e'),{'type':_0x4e51e9[_0x57d7dd('0x28')],'defaultValue':'email'}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x24'),_0x57d7dd('0x2e'),{'type':_0x4e51e9['TEXT']}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x24'),_0x57d7dd('0x2c'),{'type':_0x4e51e9[_0x57d7dd('0x13')]}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x24'),_0x57d7dd('0x5'),{'type':_0x4e51e9[_0x57d7dd('0x28')],'defaultValue':'Send'}),_0x56c199['addColumn'](_0x57d7dd('0x24'),'enableRating',{'type':_0x4e51e9[_0x57d7dd('0x44')],'defaultValue':![]}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x24'),'ratingType',{'type':_0x4e51e9['ENUM']('star',_0x57d7dd('0x29')),'defaultValue':_0x57d7dd('0x10')}),_0x56c199[_0x57d7dd('0xa')]('chat_websites',_0x57d7dd('0x38'),{'type':_0x4e51e9[_0x57d7dd('0x3e')],'defaultValue':0x5}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x22'),_0x57d7dd('0x0'),{'type':_0x4e51e9['INTEGER']}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x22'),_0x57d7dd('0x3a'),{'type':_0x4e51e9[_0x57d7dd('0x13')]}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x22'),_0x57d7dd('0x18'),{'type':_0x4e51e9[_0x57d7dd('0x13')]}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x22'),'mailTranscript',{'type':_0x4e51e9[_0x57d7dd('0x28')]}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x24'),_0x57d7dd('0x33'),{'type':_0x4e51e9['BOOLEAN'],'defaultValue':![]}),_0x56c199[_0x57d7dd('0xa')]('chat_websites','forwardOffline',{'type':_0x4e51e9[_0x57d7dd('0x44')],'defaultValue':![]}),_0x56c199[_0x57d7dd('0xa')](_0x57d7dd('0x24'),_0x57d7dd('0x9'),{'type':_0x4e51e9[_0x57d7dd('0x28')],'validate':{'isEmail':!![]}}),_0x56c199[_0x57d7dd('0x17')](_0x57d7dd('0x24'),'color',{'type':_0x4e51e9[_0x57d7dd('0x28')],'allowNull':![],'defaultValue':'#9f946a'}),_0x56c199[_0x57d7dd('0x17')](_0x57d7dd('0x24'),_0x57d7dd('0x3d'),{'type':_0x4e51e9['STRING'],'allowNull':![],'defaultValue':'#9f946a'}),_0x56c199[_0x57d7dd('0x31')](_0x57d7dd('0x1c')),_0x56c199[_0x57d7dd('0x31')](_0x57d7dd('0x1d')),_0x56c199[_0x57d7dd('0x31')]('fax_rooms'),_0x56c199[_0x57d7dd('0x31')](_0x57d7dd('0x21')),_0x56c199['dropTable'](_0x57d7dd('0x2')),_0x56c199['dropTable'](_0x57d7dd('0xe')),_0x56c199['dropTable'](_0x57d7dd('0x4')),_0x56c199[_0x57d7dd('0x31')](_0x57d7dd('0x1b')),_0x56c199[_0x57d7dd('0x31')](_0x57d7dd('0x36')),_0x56c199[_0x57d7dd('0x31')](_0x57d7dd('0x25')),_0x56c199[_0x57d7dd('0x31')](_0x57d7dd('0x1a')),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x27'),_0x57d7dd('0x43')),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x27'),_0x57d7dd('0x2a')),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x27'),_0x57d7dd('0xf')),_0x56c199[_0x57d7dd('0x23')]('fax_accounts','rejectUrl'),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x27'),_0x57d7dd('0x34')),_0x56c199['removeColumn'](_0x57d7dd('0x27'),_0x57d7dd('0x37')),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x27'),_0x57d7dd('0x41')),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x27'),_0x57d7dd('0x8')),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x27'),'closeMethod'),_0x56c199['removeColumn'](_0x57d7dd('0x16'),_0x57d7dd('0x19')),_0x56c199['removeColumn']('user_has_chat_queues',_0x57d7dd('0x42')),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x30'),_0x57d7dd('0x19')),_0x56c199[_0x57d7dd('0x23')](_0x57d7dd('0x30'),_0x57d7dd('0x42')),_0x56c199[_0x57d7dd('0xa')]('cm_hopper',_0x57d7dd('0x32'),{'type':_0x4e51e9[_0x57d7dd('0x3e')](0x2)[_0x57d7dd('0x1')],'defaultValue':0x2}),_0x56c199['addIndex'](_0x57d7dd('0x7'),[_0x57d7dd('0x32')],'priority'),_0x56c199[_0x57d7dd('0x31')](_0x57d7dd('0x3f')),_0x56c199['final'](_0x2ed0ce);});},'down':function(){}}; \ No newline at end of file +const a912_0x4bbe=['closeMethod','agentAlias','star','actions','sequence','final','email','chat_websites','ENUM','fax_queues','enqueue','then','cm_hopper','ratingValue','priority','sitepic','STRING','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','closingMessageButton','thumb','mailTranscript','Agent','user_has_fax_interactions','TEXT','query','closingMessage','Send','fax_attachments','rejectUrl','queryInterface','exports','removeColumn','Removed\x20column\x20%s\x20from\x20%s','stringify','user_has_fax_rooms','BOOLEAN','pathTranscript','fax_applications','fax_interactions','sms_messages','join','acceptMethod','queue','dropTable','closeUrl','addColumn','enableRating','INTEGER','user_has_openchannel_queues','prototype','user_has_chat_queues','forwardOffline','mapKeyOffline','fax_rooms','Added\x20column\x20%s\x20to\x20%s','changeColumn','catch','UNSIGNED','migration','assigned','info','acceptUrl','forwardOfflineAddress','fax_accounts','tail','ratingStarsNumber','forwardTranscript','ratingType','chat_interactions','color','fax_messages','ratingMessage','sequelize','rejectMethod','addIndex\x20%s\x20%s\x20%s','team_has_fax_queues'];(function(_0x88067,_0x4bbeb6){const _0x272717=function(_0x4d86dd){while(--_0x4d86dd){_0x88067['push'](_0x88067['shift']());}};_0x272717(++_0x4bbeb6);}(a912_0x4bbe,0x12d));const a912_0x2727=function(_0x88067,_0x4bbeb6){_0x88067=_0x88067-0x0;let _0x272717=a912_0x4bbe[_0x88067];return _0x272717;};const _0x226ab3=a912_0x2727;'use strict';const logger=require('../config/logger')(_0x226ab3('0x47')),util=require('util'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x4d86dd){const _0x34266c=_0x226ab3;this[_0x34266c('0x4d')]=this['tail']?this[_0x34266c('0x4d')][_0x34266c('0x1c')](_0x4d86dd):_0x4d86dd();};const Migration=function(_0x2123c0){this['queryInterface']=_0x2123c0,this['sequence']=new Sequence();};Migration[_0x226ab3('0x3e')]['changeColumn']=function(_0x1060e1,_0x5d6f4c,_0x552391){const _0x18f7f9=_0x226ab3,_0x217b08=this;this['sequence'][_0x18f7f9('0x15')](function(){const _0x5dc501=_0x18f7f9;return _0x217b08[_0x5dc501('0x2a')][_0x5dc501('0x44')](_0x1060e1,_0x5d6f4c,_0x552391)[_0x5dc501('0x16')](function(){const _0x3d3969=_0x5dc501;logger['info'](_0x3d3969('0x1d'),_0x5d6f4c,_0x1060e1);})[_0x5dc501('0x45')](function(_0x4284a6){const _0x218f01=_0x5dc501;logger[_0x218f01('0x49')](JSON['stringify'](_0x4284a6));});});},Migration[_0x226ab3('0x3e')]['addColumn']=function(_0x519a30,_0x3277cd,_0x3e3097){const _0x1b649b=_0x226ab3,_0xca30d6=this;this[_0x1b649b('0xf')][_0x1b649b('0x15')](function(){const _0x195850=_0x1b649b;return _0xca30d6[_0x195850('0x2a')][_0x195850('0x3a')](_0x519a30,_0x3277cd,_0x3e3097)['then'](function(){const _0x401be2=_0x195850;logger[_0x401be2('0x49')](_0x401be2('0x43'),_0x3277cd,_0x519a30);})['catch'](function(_0x542eb3){logger['info'](JSON['stringify'](_0x542eb3));});});},Migration[_0x226ab3('0x3e')][_0x226ab3('0x38')]=function(_0x2aa85b){const _0x425d32=this;this['sequence']['enqueue'](function(){const _0x34da64=a912_0x2727;return _0x425d32[_0x34da64('0x2a')]['dropTable'](_0x2aa85b,{'force':!![]})[_0x34da64('0x16')](function(){const _0xb0bcbe=_0x34da64;logger[_0xb0bcbe('0x49')](_0xb0bcbe('0x1e'),_0x2aa85b);})[_0x34da64('0x45')](function(_0x2c72e5){const _0xaab5d8=_0x34da64;logger[_0xaab5d8('0x49')](JSON[_0xaab5d8('0x2e')](_0x2c72e5));});});},Migration['prototype']['addIndex']=function(_0xdd4ebb,_0x25d6fb,_0x3299b0){const _0x77f139=_0x226ab3,_0x3bb849=this;this['sequence'][_0x77f139('0x15')](function(){const _0x20bf03=_0x77f139;return _0x3bb849['queryInterface']['addIndex'](_0xdd4ebb,_0x25d6fb,{'indexName':_0x3299b0})['then'](function(){const _0xdb2b4e=a912_0x2727;logger[_0xdb2b4e('0x49')](_0xdb2b4e('0x9'),_0xdd4ebb,_0x25d6fb[_0xdb2b4e('0x35')](','),_0x3299b0);})[_0x20bf03('0x45')](function(_0x27340c){const _0x3975d4=_0x20bf03;logger[_0x3975d4('0x49')](JSON[_0x3975d4('0x2e')](_0x27340c));});});},Migration[_0x226ab3('0x3e')]['query']=function(_0x2148fe){const _0x1f8d56=_0x226ab3,_0x98a030=this;this[_0x1f8d56('0xf')][_0x1f8d56('0x15')](function(){const _0x302dc0=_0x1f8d56;return _0x98a030[_0x302dc0('0x2a')][_0x302dc0('0x7')][_0x302dc0('0x25')](_0x2148fe)['then'](function(){const _0x57c040=_0x302dc0;logger[_0x57c040('0x49')]('query\x20%s',_0x2148fe);})['catch'](function(_0x45e829){const _0x228d8a=_0x302dc0;logger['info'](JSON[_0x228d8a('0x2e')](_0x45e829));});});},Migration['prototype']['removeColumn']=function(_0x5e250c,_0x43b1cd){const _0x400919=_0x226ab3,_0x223d0c=this;this['sequence'][_0x400919('0x15')](function(){const _0x4068f5=_0x400919;return _0x223d0c[_0x4068f5('0x2a')][_0x4068f5('0x2c')](_0x5e250c,_0x43b1cd)[_0x4068f5('0x16')](function(){const _0x487ba5=_0x4068f5;logger[_0x487ba5('0x49')](_0x487ba5('0x2d'),_0x43b1cd,_0x5e250c);})[_0x4068f5('0x45')](function(_0x171fc5){const _0x1ee0b7=_0x4068f5;logger[_0x1ee0b7('0x49')](util['inspect'](_0x171fc5,{'showHidden':![],'depth':null}));});});},Migration[_0x226ab3('0x3e')][_0x226ab3('0x10')]=function(_0x1c8995){this['sequence']['enqueue'](function(){return _0x1c8995();});},module[_0x226ab3('0x2b')]={'up':function(_0x5c44f4,_0xe201ab){return new Promise(function(_0x2a37a6){const _0x1e8600=a912_0x2727,_0x50c034=new Migration(_0x5c44f4);_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0xc'),{'type':_0xe201ab['STRING'],'defaultValue':_0x1e8600('0x22')}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0x41'),{'type':_0xe201ab[_0x1e8600('0x1b')],'defaultValue':_0x1e8600('0x11')}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0x1a'),{'type':_0xe201ab[_0x1e8600('0x24')]}),_0x50c034['addColumn']('chat_websites',_0x1e8600('0x26'),{'type':_0xe201ab[_0x1e8600('0x24')]}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0x1f'),{'type':_0xe201ab[_0x1e8600('0x1b')],'defaultValue':_0x1e8600('0x27')}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0x3b'),{'type':_0xe201ab['BOOLEAN'],'defaultValue':![]}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0x2'),{'type':_0xe201ab[_0x1e8600('0x13')](_0x1e8600('0xd'),_0x1e8600('0x20')),'defaultValue':'star'}),_0x50c034['addColumn'](_0x1e8600('0x12'),_0x1e8600('0x0'),{'type':_0xe201ab[_0x1e8600('0x3c')],'defaultValue':0x5}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x3'),_0x1e8600('0x18'),{'type':_0xe201ab[_0x1e8600('0x3c')]}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x3'),_0x1e8600('0x6'),{'type':_0xe201ab[_0x1e8600('0x24')]}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x3'),_0x1e8600('0x31'),{'type':_0xe201ab[_0x1e8600('0x24')]}),_0x50c034[_0x1e8600('0x3a')]('chat_interactions',_0x1e8600('0x21'),{'type':_0xe201ab[_0x1e8600('0x1b')]}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0x1'),{'type':_0xe201ab['BOOLEAN'],'defaultValue':![]}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0x40'),{'type':_0xe201ab[_0x1e8600('0x30')],'defaultValue':![]}),_0x50c034[_0x1e8600('0x3a')](_0x1e8600('0x12'),_0x1e8600('0x4b'),{'type':_0xe201ab[_0x1e8600('0x1b')],'validate':{'isEmail':!![]}}),_0x50c034[_0x1e8600('0x44')]('chat_websites',_0x1e8600('0x4'),{'type':_0xe201ab[_0x1e8600('0x1b')],'allowNull':![],'defaultValue':'#9f946a'}),_0x50c034['changeColumn'](_0x1e8600('0x12'),'color_button',{'type':_0xe201ab[_0x1e8600('0x1b')],'allowNull':![],'defaultValue':'#9f946a'}),_0x50c034[_0x1e8600('0x38')](_0x1e8600('0x28')),_0x50c034['dropTable'](_0x1e8600('0x2f')),_0x50c034[_0x1e8600('0x38')](_0x1e8600('0x42')),_0x50c034[_0x1e8600('0x38')](_0x1e8600('0x5')),_0x50c034[_0x1e8600('0x38')]('fax_dispositions'),_0x50c034['dropTable'](_0x1e8600('0x32')),_0x50c034[_0x1e8600('0x38')](_0x1e8600('0x23')),_0x50c034['dropTable'](_0x1e8600('0x33')),_0x50c034[_0x1e8600('0x38')](_0x1e8600('0xa')),_0x50c034[_0x1e8600('0x38')]('user_has_fax_queues'),_0x50c034[_0x1e8600('0x38')](_0x1e8600('0x14')),_0x50c034[_0x1e8600('0x2c')]('fax_accounts','fidelity'),_0x50c034[_0x1e8600('0x2c')]('fax_accounts','timeout'),_0x50c034[_0x1e8600('0x2c')](_0x1e8600('0x4c'),_0x1e8600('0x4a')),_0x50c034[_0x1e8600('0x2c')](_0x1e8600('0x4c'),_0x1e8600('0x29')),_0x50c034[_0x1e8600('0x2c')](_0x1e8600('0x4c'),_0x1e8600('0x36')),_0x50c034[_0x1e8600('0x2c')](_0x1e8600('0x4c'),_0x1e8600('0x8')),_0x50c034['removeColumn'](_0x1e8600('0x4c'),_0x1e8600('0xe')),_0x50c034[_0x1e8600('0x2c')](_0x1e8600('0x4c'),_0x1e8600('0x39')),_0x50c034[_0x1e8600('0x2c')](_0x1e8600('0x4c'),_0x1e8600('0xb')),_0x50c034[_0x1e8600('0x2c')](_0x1e8600('0x3f'),_0x1e8600('0x48')),_0x50c034[_0x1e8600('0x2c')]('user_has_chat_queues',_0x1e8600('0x37')),_0x50c034['removeColumn'](_0x1e8600('0x3d'),_0x1e8600('0x48')),_0x50c034[_0x1e8600('0x2c')](_0x1e8600('0x3d'),_0x1e8600('0x37')),_0x50c034[_0x1e8600('0x3a')]('cm_hopper',_0x1e8600('0x19'),{'type':_0xe201ab[_0x1e8600('0x3c')](0x2)[_0x1e8600('0x46')],'defaultValue':0x2}),_0x50c034['addIndex'](_0x1e8600('0x17'),[_0x1e8600('0x19')],_0x1e8600('0x19')),_0x50c034[_0x1e8600('0x38')](_0x1e8600('0x34')),_0x50c034[_0x1e8600('0x10')](_0x2a37a6);});},'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 0b8e483..bc21fbf 100644 --- a/server/migrations/2.0.34.js +++ b/server/migrations/2.0.34.js @@ -1 +1 @@ -const a913_0x5c2e=['user_has_mail_rooms','closeMethod','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;','browserName','sequence','mail_queues','query','rejectUrl','join','mail_messages','stringify','Skip','custom','Changed\x20column\x20%s\x20in\x20table\x20%s','waitingTitle','openchannel_accounts','skipUnmanaged','final','unmanagedMessage','ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;','enableFeedback','authToken','Send','closingMessage','voice_recordings','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','catch','addIndex','chat_interactions','userDisposition','inspect','deviceType','finally','closeUrl','mail_accounts','tail','exports','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId','chat_websites','voice_queues','deviceModel','util','prototype','fax_accounts','user_has_mail_queues','acceptUrl','removeColumn','osVersion','STRING','Your\x20request\x20has\x20not\x20been\x20processed.','rejectMethod','state','fidelity','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','mail_applications','UNSIGNED','queryInterface','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId','deviceVendor','recallme','key','fax_attachments','AttachmentId','ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1','user_has_mail_interactions','sms_accounts','changeColumn','addColumn','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','mail_dispositions','browserVersion','phone','../config/logger','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','mail_attachments','whiteLabel','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','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;','enableUnmanagedNote','INTEGER','timeout','info','conditionAgreement','then','enqueue','BOOLEAN','query\x20%s','forwardTranscriptMessage','enableCustomerWriting','mail_rooms','dropTable'];(function(_0x3ec8bf,_0x5c2ecc){const _0x29bae3=function(_0x27a84b){while(--_0x27a84b){_0x3ec8bf['push'](_0x3ec8bf['shift']());}};_0x29bae3(++_0x5c2ecc);}(a913_0x5c2e,0x7b));const a913_0x29ba=function(_0x3ec8bf,_0x5c2ecc){_0x3ec8bf=_0x3ec8bf-0x0;let _0x29bae3=a913_0x5c2e[_0x3ec8bf];return _0x29bae3;};const _0x54647a=a913_0x29ba;'use strict';const logger=require(_0x54647a('0x28'))('migration'),util=require(_0x54647a('0x9')),Sequence=function(){};Sequence['prototype'][_0x54647a('0x34')]=function(_0x27a84b){const _0x1ef42c=_0x54647a;this[_0x1ef42c('0x3')]=this['tail']?this['tail'][_0x1ef42c('0x0')](_0x27a84b):_0x27a84b();};const Migration=function(_0x6b2ae4){const _0x3d55c7=_0x54647a;this['queryInterface']=_0x6b2ae4,this[_0x3d55c7('0x3f')]=new Sequence();};Migration[_0x54647a('0xa')][_0x54647a('0x22')]=function(_0x4d4884,_0x2c5fde,_0x56c9ce){const _0x30277e=_0x54647a,_0x3320f4=this;this[_0x30277e('0x3f')][_0x30277e('0x34')](function(){const _0x5b58b4=_0x30277e;return _0x3320f4[_0x5b58b4('0x18')][_0x5b58b4('0x22')](_0x4d4884,_0x2c5fde,_0x56c9ce)[_0x5b58b4('0x33')](function(){const _0x449fc8=_0x5b58b4;logger[_0x449fc8('0x31')](_0x449fc8('0x48'),_0x2c5fde,_0x4d4884);})[_0x5b58b4('0x55')](function(_0x1cd3de){const _0x5563b8=_0x5b58b4;logger[_0x5563b8('0x31')](JSON[_0x5563b8('0x45')](_0x1cd3de));});});},Migration[_0x54647a('0xa')][_0x54647a('0x23')]=function(_0x2bf8df,_0x65454b,_0xb7aab7){const _0x31e59a=_0x54647a,_0x1dd1b3=this;this[_0x31e59a('0x3f')]['enqueue'](function(){const _0x380cd7=_0x31e59a;return _0x1dd1b3['queryInterface'][_0x380cd7('0x23')](_0x2bf8df,_0x65454b,_0xb7aab7)['then'](function(){const _0x6a19c0=_0x380cd7;logger[_0x6a19c0('0x31')]('Added\x20column\x20%s\x20to\x20%s',_0x65454b,_0x2bf8df);})[_0x380cd7('0x55')](function(_0x2334db){const _0x3951ff=_0x380cd7;logger[_0x3951ff('0x31')](JSON[_0x3951ff('0x45')](_0x2334db));});});},Migration['prototype'][_0x54647a('0x3a')]=function(_0xaacedf){const _0x201733=_0x54647a,_0x257ebe=this;this[_0x201733('0x3f')][_0x201733('0x34')](function(){const _0x488d13=_0x201733;return _0x257ebe[_0x488d13('0x18')][_0x488d13('0x3a')](_0xaacedf,{'force':!![]})[_0x488d13('0x33')](function(){const _0xe0809c=_0x488d13;logger[_0xe0809c('0x31')]('table\x20dropped\x20%s',_0xaacedf);})[_0x488d13('0x55')](function(_0x2a04f0){const _0x5611f5=_0x488d13;logger['info'](JSON[_0x5611f5('0x45')](_0x2a04f0));});});},Migration[_0x54647a('0xa')][_0x54647a('0x56')]=function(_0x38d3db,_0x574188,_0x1f0c9a){const _0x1e896f=_0x54647a,_0x19b490=this;this[_0x1e896f('0x3f')][_0x1e896f('0x34')](function(){const _0x446bc7=_0x1e896f;return _0x19b490['queryInterface'][_0x446bc7('0x56')](_0x38d3db,_0x574188,{'indexName':_0x1f0c9a})['then'](function(){const _0xe1f752=_0x446bc7;logger[_0xe1f752('0x31')]('addIndex\x20%s\x20%s\x20%s',_0x38d3db,_0x574188[_0xe1f752('0x43')](','),_0x1f0c9a);})[_0x446bc7('0x55')](function(_0x2fa66c){const _0x1778c3=_0x446bc7;logger[_0x1778c3('0x31')](JSON[_0x1778c3('0x45')](_0x2fa66c));});});},Migration['prototype'][_0x54647a('0x41')]=function(_0xcbd43b){const _0x2c4cd1=_0x54647a,_0x1796f1=this;this[_0x2c4cd1('0x3f')][_0x2c4cd1('0x34')](function(){const _0x1e64e6=_0x2c4cd1;return _0x1796f1['queryInterface']['sequelize'][_0x1e64e6('0x41')](_0xcbd43b)[_0x1e64e6('0x33')](function(){const _0x489936=_0x1e64e6;logger[_0x489936('0x31')](_0x489936('0x36'),_0xcbd43b);})[_0x1e64e6('0x55')](function(_0x32e289){const _0x2badd1=_0x1e64e6;logger['info'](JSON[_0x2badd1('0x45')](_0x32e289));});});},Migration[_0x54647a('0xa')][_0x54647a('0xe')]=function(_0x14a4e3,_0x4bfd33){const _0x48b19e=_0x54647a,_0x502052=this;this[_0x48b19e('0x3f')][_0x48b19e('0x34')](function(){const _0x5655fd=_0x48b19e;return _0x502052[_0x5655fd('0x18')]['removeColumn'](_0x14a4e3,_0x4bfd33)[_0x5655fd('0x33')](function(){const _0x3f345d=_0x5655fd;logger[_0x3f345d('0x31')]('Removed\x20column\x20%s\x20from\x20%s',_0x4bfd33,_0x14a4e3);})[_0x5655fd('0x55')](function(_0x3c6e4d){const _0x47e0e7=_0x5655fd;logger[_0x47e0e7('0x31')](util[_0x47e0e7('0x59')](_0x3c6e4d,{'showHidden':![],'depth':null}));});});},Migration[_0x54647a('0xa')][_0x54647a('0x4c')]=function(_0xffb3a7){const _0x5e19c4=_0x54647a;this[_0x5e19c4('0x3f')][_0x5e19c4('0x34')](function(){return _0xffb3a7();});},module[_0x54647a('0x4')]={'up':function(_0x1c7081,_0x2a4239){return new Promise(function(_0x1b6727){const _0x50847c=a913_0x29ba,_0x1ed081=new Migration(_0x1c7081);_0x1ed081[_0x50847c('0x23')](_0x50847c('0x6'),_0x50847c('0x1c'),{'type':_0x2a4239['STRING'],'allowNull':![]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x6'),_0x50847c('0x37'),{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081['addColumn'](_0x50847c('0x6'),'skipMessageButton',{'type':_0x2a4239[_0x50847c('0x10')],'defaultValue':'Skip'}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x6'),_0x50847c('0x4f'),{'type':_0x2a4239[_0x50847c('0x35')],'defaultValue':![]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x6'),_0x50847c('0x38'),{'type':_0x2a4239[_0x50847c('0x35')],'defaultValue':![]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x6'),_0x50847c('0x32'),{'type':_0x2a4239['BOOLEAN'],'defaultValue':![]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x6'),_0x50847c('0x49'),{'type':_0x2a4239[_0x50847c('0x10')],'defaultValue':'All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.'}),_0x1ed081['addColumn'](_0x50847c('0x6'),'waitingMessage',{'type':_0x2a4239[_0x50847c('0x10')],'defaultValue':_0x50847c('0x29')}),_0x1ed081[_0x50847c('0x23')]('chat_websites','autoclose',{'type':_0x2a4239[_0x50847c('0x35')],'defaultValue':!![]}),_0x1ed081['addColumn'](_0x50847c('0x6'),_0x50847c('0x4d'),{'type':_0x2a4239[_0x50847c('0x10')],'defaultValue':_0x50847c('0x11')}),_0x1ed081['addColumn'](_0x50847c('0x6'),_0x50847c('0x2e'),{'type':_0x2a4239[_0x50847c('0x35')],'defaultValue':!![]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x6'),'sendUnmanaged',{'type':_0x2a4239[_0x50847c('0x10')],'defaultValue':_0x50847c('0x51')}),_0x1ed081['addColumn']('chat_websites',_0x50847c('0x4b'),{'type':_0x2a4239[_0x50847c('0x10')],'defaultValue':_0x50847c('0x46')}),_0x1ed081[_0x50847c('0x22')](_0x50847c('0x6'),_0x50847c('0x52'),{'type':_0x2a4239[_0x50847c('0x10')],'defaultValue':'Thanks\x20you\x20for\x20your\x20time!'}),_0x1ed081[_0x50847c('0x23')]('chat_interactions',_0x50847c('0x3e'),{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081[_0x50847c('0x23')]('chat_interactions',_0x50847c('0x26'),{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x57'),'osName',{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x57'),_0x50847c('0xf'),{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x57'),_0x50847c('0x8'),{'type':_0x2a4239['STRING']}),_0x1ed081['addColumn']('chat_interactions',_0x50847c('0x1a'),{'type':_0x2a4239['STRING']}),_0x1ed081['addColumn'](_0x50847c('0x57'),_0x50847c('0x5a'),{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081[_0x50847c('0x23')]('chat_messages',_0x50847c('0x1e'),{'type':_0x2a4239['INTEGER']}),_0x1ed081['query'](_0x50847c('0x54')),_0x1ed081['addColumn']('voice_queues','dialRecallMeTimeout',{'type':_0x2a4239[_0x50847c('0x2f')](0x5)[_0x50847c('0x17')],'defaultValue':0x1e}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x7'),'dialRecallInQueue',{'type':_0x2a4239['BOOLEAN'],'defaultValue':![]}),_0x1ed081[_0x50847c('0x23')]('cm_hopper',_0x50847c('0x1b'),{'type':_0x2a4239[_0x50847c('0x35')],'defaultValue':![]}),_0x1ed081[_0x50847c('0x23')]('cm_hopper_final',_0x50847c('0x1b'),{'type':_0x2a4239[_0x50847c('0x35')],'defaultValue':![]}),_0x1ed081[_0x50847c('0x23')]('cm_hopper_history',_0x50847c('0x1b'),{'type':_0x2a4239['BOOLEAN'],'defaultValue':![]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x53'),_0x50847c('0x58'),{'type':_0x2a4239['STRING']}),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0x3b')),_0x1ed081['query']('ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1'),_0x1ed081[_0x50847c('0x41')](_0x50847c('0x5')),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0x39')),_0x1ed081['query'](_0x50847c('0x1f')),_0x1ed081[_0x50847c('0x41')](_0x50847c('0x19')),_0x1ed081[_0x50847c('0x41')](_0x50847c('0x15')),_0x1ed081[_0x50847c('0x41')](_0x50847c('0x2c')),_0x1ed081['query']('ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2'),_0x1ed081[_0x50847c('0x41')](_0x50847c('0x24')),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0x44')),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0x2a')),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0x25')),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0x16')),_0x1ed081['dropTable'](_0x50847c('0x20')),_0x1ed081[_0x50847c('0x3a')]('mail_interactions'),_0x1ed081[_0x50847c('0x3a')]('team_has_mail_queues'),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0xc')),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0x40')),_0x1ed081['removeColumn']('mail_accounts',_0x50847c('0x14')),_0x1ed081[_0x50847c('0xe')](_0x50847c('0x2'),_0x50847c('0x30')),_0x1ed081[_0x50847c('0xe')](_0x50847c('0x2'),_0x50847c('0x2b')),_0x1ed081['removeColumn'](_0x50847c('0x2'),_0x50847c('0xd')),_0x1ed081['removeColumn'](_0x50847c('0x2'),_0x50847c('0x42')),_0x1ed081['removeColumn'](_0x50847c('0x2'),'acceptMethod'),_0x1ed081[_0x50847c('0xe')](_0x50847c('0x2'),_0x50847c('0x12')),_0x1ed081[_0x50847c('0xe')](_0x50847c('0x2'),'actions'),_0x1ed081[_0x50847c('0xe')](_0x50847c('0x2'),_0x50847c('0x1')),_0x1ed081['removeColumn']('mail_accounts',_0x50847c('0x3c')),_0x1ed081[_0x50847c('0xe')](_0x50847c('0x2'),'signature'),_0x1ed081['removeColumn']('mail_accounts',_0x50847c('0x47')),_0x1ed081['addColumn']('mail_accounts','active',{'type':_0x2a4239[_0x50847c('0x35')],'defaultValue':!![]}),_0x1ed081[_0x50847c('0xe')]('mail_servers_out',_0x50847c('0x13')),_0x1ed081[_0x50847c('0x3a')]('mail_servers_in'),_0x1ed081[_0x50847c('0x41')]('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;'),_0x1ed081[_0x50847c('0x41')](_0x50847c('0x2d')),_0x1ed081[_0x50847c('0x41')](_0x50847c('0x3d')),_0x1ed081[_0x50847c('0x3a')](_0x50847c('0x1d')),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x21'),_0x50847c('0x27'),{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081[_0x50847c('0x23')]('sms_accounts','accountSid',{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x21'),_0x50847c('0x50'),{'type':_0x2a4239[_0x50847c('0x10')]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x21'),_0x50847c('0x1c'),{'type':_0x2a4239[_0x50847c('0x10')],'allowNull':![]}),_0x1ed081[_0x50847c('0x41')](_0x50847c('0x4e')),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x4a'),_0x50847c('0x1c'),{'type':_0x2a4239[_0x50847c('0x10')],'allowNull':![]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0xb'),_0x50847c('0x1c'),{'type':_0x2a4239['STRING'],'allowNull':![]}),_0x1ed081[_0x50847c('0x23')](_0x50847c('0x2'),'key',{'type':_0x2a4239[_0x50847c('0x10')],'allowNull':![]}),_0x1ed081[_0x50847c('0x4c')](_0x1b6727);});},'down':function(){}}; \ No newline at end of file +const a913_0x430e=['then','query\x20%s','dialRecallInQueue','inspect','closeUrl','util','voice_queues','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_2','mail_attachments','mail_accounts','addIndex\x20%s\x20%s\x20%s','ALTER\x20TABLE\x20mail_messages\x20DROP\x20FOREIGN\x20KEY\x20mail_messages_ibfk_1','osName','final','user_has_mail_interactions','userDisposition','AttachmentId','queryInterface','removeColumn','UNSIGNED','mail_rooms','chat_interactions','key','sequence','finally','catch','enqueue','../config/logger','tail','conditionAgreement','Added\x20column\x20%s\x20to\x20%s','cm_hopper_history','All\x20of\x20our\x20agents\x20are\x20busy\x20at\x20this\x20time.\x20Your\x20chat\x20is\x20very\x20important\x20to\x20us.','unmanagedMessage','stringify','addIndex','deviceModel','custom','cm_hopper','osVersion','timeout','forwardTranscriptMessage','closingMessage','chat_websites','Removed\x20column\x20%s\x20from\x20%s','signature','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailMessageId','whiteLabel','sequelize','team_has_mail_queues','browserName','Changed\x20column\x20%s\x20in\x20table\x20%s','Please\x20hold\x20and\x20we\x20will\x20answer\x20your\x20request\x20as\x20soon\x20as\x20possible.','acceptUrl','recallme','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;','info','exports','table\x20dropped\x20%s','changeColumn','query','enableUnmanagedNote','mail_interactions','fidelity','Send','fax_attachments','BOOLEAN','acceptMethod','ALTER\x20TABLE\x20users\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8\x20COLLATE\x20utf8_bin;','addColumn','mail_servers_in','mail_messages','rejectUrl','voice_recordings','prototype','openchannel_accounts','ALTER\x20TABLE\x20mail_rooms\x20DROP\x20FOREIGN\x20KEY\x20mail_rooms_ibfk_1','deviceType','migration','mail_dispositions','enableFeedback','skipMessageButton','Your\x20request\x20has\x20not\x20been\x20processed.','INTEGER','accountSid','enableCustomerWriting','deviceVendor','user_has_mail_rooms','dropTable','sms_accounts','actions','join','browserVersion','state','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20UserId','ALTER\x20TABLE\x20mail_messages\x20DROP\x20COLUMN\x20MailRoomId','STRING'];(function(_0x1a1473,_0x430ef1){const _0x349436=function(_0x112b83){while(--_0x112b83){_0x1a1473['push'](_0x1a1473['shift']());}};_0x349436(++_0x430ef1);}(a913_0x430e,0xc6));const a913_0x3494=function(_0x1a1473,_0x430ef1){_0x1a1473=_0x1a1473-0x0;let _0x349436=a913_0x430e[_0x1a1473];return _0x349436;};const _0x5e73d0=a913_0x3494;'use strict';const logger=require(_0x5e73d0('0x17'))(_0x5e73d0('0x4a')),util=require(_0x5e73d0('0x1')),Sequence=function(){};Sequence['prototype'][_0x5e73d0('0x16')]=function(_0x112b83){const _0x423222=_0x5e73d0;this[_0x423222('0x18')]=this['tail']?this[_0x423222('0x18')][_0x423222('0x14')](_0x112b83):_0x112b83();};const Migration=function(_0x11bea9){const _0x45043c=_0x5e73d0;this[_0x45043c('0xd')]=_0x11bea9,this[_0x45043c('0x13')]=new Sequence();};Migration[_0x5e73d0('0x46')][_0x5e73d0('0x37')]=function(_0x25e6e7,_0x52ec0d,_0x1394e4){const _0x41387d=_0x5e73d0,_0x725058=this;this[_0x41387d('0x13')][_0x41387d('0x16')](function(){const _0x1b783a=_0x41387d;return _0x725058[_0x1b783a('0xd')][_0x1b783a('0x37')](_0x25e6e7,_0x52ec0d,_0x1394e4)[_0x1b783a('0x5d')](function(){const _0x2c76f9=_0x1b783a;logger['info'](_0x2c76f9('0x2f'),_0x52ec0d,_0x25e6e7);})[_0x1b783a('0x15')](function(_0x333abb){const _0x1bd5cd=_0x1b783a;logger[_0x1bd5cd('0x34')](JSON['stringify'](_0x333abb));});});},Migration[_0x5e73d0('0x46')]['addColumn']=function(_0x5841a1,_0x2a4271,_0x1dac25){const _0x468b79=_0x5e73d0,_0x3c69ca=this;this[_0x468b79('0x13')]['enqueue'](function(){const _0x26959b=_0x468b79;return _0x3c69ca['queryInterface'][_0x26959b('0x41')](_0x5841a1,_0x2a4271,_0x1dac25)['then'](function(){const _0x50a7d1=_0x26959b;logger[_0x50a7d1('0x34')](_0x50a7d1('0x1a'),_0x2a4271,_0x5841a1);})['catch'](function(_0x4435d0){const _0x23384e=_0x26959b;logger[_0x23384e('0x34')](JSON[_0x23384e('0x1e')](_0x4435d0));});});},Migration[_0x5e73d0('0x46')]['dropTable']=function(_0x329e4b){const _0x327143=_0x5e73d0,_0x3e341b=this;this['sequence'][_0x327143('0x16')](function(){const _0x4e00c1=_0x327143;return _0x3e341b[_0x4e00c1('0xd')]['dropTable'](_0x329e4b,{'force':!![]})[_0x4e00c1('0x5d')](function(){const _0x5bf46c=_0x4e00c1;logger[_0x5bf46c('0x34')](_0x5bf46c('0x36'),_0x329e4b);})[_0x4e00c1('0x15')](function(_0xe09eb0){const _0x41b880=_0x4e00c1;logger[_0x41b880('0x34')](JSON[_0x41b880('0x1e')](_0xe09eb0));});});},Migration[_0x5e73d0('0x46')]['addIndex']=function(_0x52b398,_0x938435,_0x54674e){const _0x2f0156=_0x5e73d0,_0xb7aa3d=this;this['sequence'][_0x2f0156('0x16')](function(){const _0x4883f6=_0x2f0156;return _0xb7aa3d[_0x4883f6('0xd')][_0x4883f6('0x1f')](_0x52b398,_0x938435,{'indexName':_0x54674e})[_0x4883f6('0x5d')](function(){const _0x29d31d=_0x4883f6;logger[_0x29d31d('0x34')](_0x29d31d('0x6'),_0x52b398,_0x938435[_0x29d31d('0x57')](','),_0x54674e);})[_0x4883f6('0x15')](function(_0x292228){const _0x21a970=_0x4883f6;logger[_0x21a970('0x34')](JSON[_0x21a970('0x1e')](_0x292228));});});},Migration[_0x5e73d0('0x46')][_0x5e73d0('0x38')]=function(_0x430ee8){const _0x49ca71=_0x5e73d0,_0x364173=this;this[_0x49ca71('0x13')][_0x49ca71('0x16')](function(){const _0x398892=_0x49ca71;return _0x364173[_0x398892('0xd')][_0x398892('0x2c')]['query'](_0x430ee8)['then'](function(){const _0x2494a1=_0x398892;logger['info'](_0x2494a1('0x5e'),_0x430ee8);})[_0x398892('0x15')](function(_0x36576f){const _0x518006=_0x398892;logger[_0x518006('0x34')](JSON['stringify'](_0x36576f));});});},Migration[_0x5e73d0('0x46')][_0x5e73d0('0xe')]=function(_0x4efefb,_0x3aefe7){const _0x29378a=_0x5e73d0,_0x1ce24d=this;this[_0x29378a('0x13')][_0x29378a('0x16')](function(){const _0x16cf1a=_0x29378a;return _0x1ce24d[_0x16cf1a('0xd')]['removeColumn'](_0x4efefb,_0x3aefe7)[_0x16cf1a('0x5d')](function(){const _0x1bdd8c=_0x16cf1a;logger[_0x1bdd8c('0x34')](_0x1bdd8c('0x28'),_0x3aefe7,_0x4efefb);})[_0x16cf1a('0x15')](function(_0x2d4d70){const _0x59a863=_0x16cf1a;logger[_0x59a863('0x34')](util[_0x59a863('0x60')](_0x2d4d70,{'showHidden':![],'depth':null}));});});},Migration[_0x5e73d0('0x46')][_0x5e73d0('0x9')]=function(_0x4b53df){const _0x5b3f28=_0x5e73d0;this[_0x5b3f28('0x13')][_0x5b3f28('0x16')](function(){return _0x4b53df();});},module[_0x5e73d0('0x35')]={'up':function(_0x3fc9dd,_0x5c249d){return new Promise(function(_0x26f12b){const _0x340fe5=a913_0x3494,_0x28ab90=new Migration(_0x3fc9dd);_0x28ab90['addColumn'](_0x340fe5('0x27'),_0x340fe5('0x12'),{'type':_0x5c249d[_0x340fe5('0x5c')],'allowNull':![]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x27'),_0x340fe5('0x25'),{'type':_0x5c249d['STRING']}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x27'),_0x340fe5('0x4d'),{'type':_0x5c249d[_0x340fe5('0x5c')],'defaultValue':'Skip'}),_0x28ab90[_0x340fe5('0x41')]('chat_websites',_0x340fe5('0x4c'),{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':![]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x27'),_0x340fe5('0x51'),{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':![]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x27'),_0x340fe5('0x19'),{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':![]}),_0x28ab90['addColumn'](_0x340fe5('0x27'),'waitingTitle',{'type':_0x5c249d[_0x340fe5('0x5c')],'defaultValue':_0x340fe5('0x1c')}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x27'),'waitingMessage',{'type':_0x5c249d[_0x340fe5('0x5c')],'defaultValue':_0x340fe5('0x30')}),_0x28ab90[_0x340fe5('0x41')]('chat_websites','autoclose',{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':!![]}),_0x28ab90[_0x340fe5('0x41')]('chat_websites',_0x340fe5('0x1d'),{'type':_0x5c249d['STRING'],'defaultValue':_0x340fe5('0x4e')}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x27'),_0x340fe5('0x39'),{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':!![]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x27'),'sendUnmanaged',{'type':_0x5c249d['STRING'],'defaultValue':_0x340fe5('0x3c')}),_0x28ab90['addColumn'](_0x340fe5('0x27'),'skipUnmanaged',{'type':_0x5c249d['STRING'],'defaultValue':'Skip'}),_0x28ab90[_0x340fe5('0x37')](_0x340fe5('0x27'),_0x340fe5('0x26'),{'type':_0x5c249d[_0x340fe5('0x5c')],'defaultValue':'Thanks\x20you\x20for\x20your\x20time!'}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x11'),_0x340fe5('0x2e'),{'type':_0x5c249d[_0x340fe5('0x5c')]}),_0x28ab90[_0x340fe5('0x41')]('chat_interactions',_0x340fe5('0x58'),{'type':_0x5c249d[_0x340fe5('0x5c')]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x11'),_0x340fe5('0x8'),{'type':_0x5c249d['STRING']}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x11'),_0x340fe5('0x23'),{'type':_0x5c249d[_0x340fe5('0x5c')]}),_0x28ab90['addColumn']('chat_interactions',_0x340fe5('0x20'),{'type':_0x5c249d['STRING']}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x11'),_0x340fe5('0x52'),{'type':_0x5c249d['STRING']}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x11'),_0x340fe5('0x49'),{'type':_0x5c249d[_0x340fe5('0x5c')]}),_0x28ab90['addColumn']('chat_messages',_0x340fe5('0xc'),{'type':_0x5c249d[_0x340fe5('0x4f')]}),_0x28ab90[_0x340fe5('0x38')]('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'),_0x28ab90['addColumn'](_0x340fe5('0x2'),'dialRecallMeTimeout',{'type':_0x5c249d['INTEGER'](0x5)[_0x340fe5('0xf')],'defaultValue':0x1e}),_0x28ab90['addColumn'](_0x340fe5('0x2'),_0x340fe5('0x5f'),{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':![]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x22'),'recallme',{'type':_0x5c249d['BOOLEAN'],'defaultValue':![]}),_0x28ab90[_0x340fe5('0x41')]('cm_hopper_final',_0x340fe5('0x32'),{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':![]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x1b'),_0x340fe5('0x32'),{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':![]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x45'),_0x340fe5('0xb'),{'type':_0x5c249d['STRING']}),_0x28ab90['dropTable'](_0x340fe5('0x53')),_0x28ab90[_0x340fe5('0x38')](_0x340fe5('0x48')),_0x28ab90[_0x340fe5('0x38')]('ALTER\x20TABLE\x20mail_rooms\x20DROP\x20COLUMN\x20MailAccountId'),_0x28ab90[_0x340fe5('0x54')](_0x340fe5('0x10')),_0x28ab90[_0x340fe5('0x38')]('ALTER\x20TABLE\x20analytics_extracted_reports\x20DROP\x20FOREIGN\x20KEY\x20analytics_extracted_reports_ibfk_1'),_0x28ab90[_0x340fe5('0x38')](_0x340fe5('0x2a')),_0x28ab90[_0x340fe5('0x38')](_0x340fe5('0x7')),_0x28ab90[_0x340fe5('0x38')](_0x340fe5('0x5b')),_0x28ab90['query'](_0x340fe5('0x3')),_0x28ab90[_0x340fe5('0x38')](_0x340fe5('0x5a')),_0x28ab90[_0x340fe5('0x54')](_0x340fe5('0x43')),_0x28ab90[_0x340fe5('0x54')](_0x340fe5('0x4')),_0x28ab90['dropTable'](_0x340fe5('0x4b')),_0x28ab90[_0x340fe5('0x54')]('mail_applications'),_0x28ab90[_0x340fe5('0x54')](_0x340fe5('0xa')),_0x28ab90[_0x340fe5('0x54')](_0x340fe5('0x3a')),_0x28ab90['dropTable'](_0x340fe5('0x2d')),_0x28ab90['dropTable']('user_has_mail_queues'),_0x28ab90[_0x340fe5('0x54')]('mail_queues'),_0x28ab90[_0x340fe5('0xe')](_0x340fe5('0x5'),_0x340fe5('0x3b')),_0x28ab90[_0x340fe5('0xe')](_0x340fe5('0x5'),_0x340fe5('0x24')),_0x28ab90[_0x340fe5('0xe')](_0x340fe5('0x5'),_0x340fe5('0x2b')),_0x28ab90[_0x340fe5('0xe')](_0x340fe5('0x5'),_0x340fe5('0x31')),_0x28ab90[_0x340fe5('0xe')](_0x340fe5('0x5'),_0x340fe5('0x44')),_0x28ab90[_0x340fe5('0xe')](_0x340fe5('0x5'),_0x340fe5('0x3f')),_0x28ab90[_0x340fe5('0xe')]('mail_accounts','rejectMethod'),_0x28ab90['removeColumn'](_0x340fe5('0x5'),_0x340fe5('0x56')),_0x28ab90['removeColumn'](_0x340fe5('0x5'),_0x340fe5('0x0')),_0x28ab90['removeColumn'](_0x340fe5('0x5'),'closeMethod'),_0x28ab90['removeColumn'](_0x340fe5('0x5'),_0x340fe5('0x29')),_0x28ab90[_0x340fe5('0xe')](_0x340fe5('0x5'),_0x340fe5('0x21')),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x5'),'active',{'type':_0x5c249d[_0x340fe5('0x3e')],'defaultValue':!![]}),_0x28ab90['removeColumn']('mail_servers_out',_0x340fe5('0x59')),_0x28ab90['dropTable'](_0x340fe5('0x42')),_0x28ab90[_0x340fe5('0x38')]('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;'),_0x28ab90[_0x340fe5('0x38')](_0x340fe5('0x33')),_0x28ab90[_0x340fe5('0x38')]('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;'),_0x28ab90['dropTable'](_0x340fe5('0x3d')),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x55'),'phone',{'type':_0x5c249d[_0x340fe5('0x5c')]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x55'),_0x340fe5('0x50'),{'type':_0x5c249d[_0x340fe5('0x5c')]}),_0x28ab90[_0x340fe5('0x41')](_0x340fe5('0x55'),'authToken',{'type':_0x5c249d[_0x340fe5('0x5c')]}),_0x28ab90['addColumn']('sms_accounts',_0x340fe5('0x12'),{'type':_0x5c249d[_0x340fe5('0x5c')],'allowNull':![]}),_0x28ab90[_0x340fe5('0x38')](_0x340fe5('0x40')),_0x28ab90['addColumn'](_0x340fe5('0x47'),_0x340fe5('0x12'),{'type':_0x5c249d[_0x340fe5('0x5c')],'allowNull':![]}),_0x28ab90[_0x340fe5('0x41')]('fax_accounts','key',{'type':_0x5c249d[_0x340fe5('0x5c')],'allowNull':![]}),_0x28ab90['addColumn'](_0x340fe5('0x5'),_0x340fe5('0x12'),{'type':_0x5c249d[_0x340fe5('0x5c')],'allowNull':![]}),_0x28ab90['final'](_0x26f12b);});},'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 6eb62d1..be6835c 100644 --- a/server/migrations/2.0.35.js +++ b/server/migrations/2.0.35.js @@ -1 +1 @@ -const a914_0x3a6a=['changeColumn','exports','retry','UserId','phoneBarAutoAnswerDelay','finally','campaigns','body','long','mail_messages','Send','util','subject','attach','chat_websites','addColumn','ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','direction','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','users','star','report_mail_session','dialOrderByScheduledAt','attachment','DESC','ratingType','voice_queues','catch','addIndex','prototype','cm_hopper_history','join','migration','addIndex\x20%s\x20%s\x20%s','report_mail','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','then','query\x20%s','stringify','info','ASC','report_chat_session','phoneBarEnableDtmfTone','report_fax_session','MailInteractionId','enableCustomerAttachment','query','ContactId','../config/logger','ENUM','report_fax','accountId','Removed\x20column\x20%s\x20from\x20%s','text','TEXT','report_openchannel_session','INTEGER','mail_interactions','joins','fromId','referer','BOOLEAN','analytics_custom_reports','report_sms_session','STRING','bcc','table\x20dropped\x20%s','tail','DATE','inspect','chat_interactions','enqueue','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','queryInterface','MailAccountId','userFullname','thumb','sequence','sentAt','html','inReplyTo','userName','out','removeColumn','final','report_sms'];(function(_0xacd7a6,_0x3a6a5a){const _0x5422f4=function(_0x596c96){while(--_0x596c96){_0xacd7a6['push'](_0xacd7a6['shift']());}};_0x5422f4(++_0x3a6a5a);}(a914_0x3a6a,0xfe));const a914_0x5422=function(_0xacd7a6,_0x3a6a5a){_0xacd7a6=_0xacd7a6-0x0;let _0x5422f4=a914_0x3a6a[_0xacd7a6];return _0x5422f4;};const _0x4ef441=a914_0x5422;'use strict';const logger=require(_0x4ef441('0x3c'))(_0x4ef441('0x2c')),util=require(_0x4ef441('0x15')),Sequence=function(){};Sequence[_0x4ef441('0x29')][_0x4ef441('0x53')]=function(_0x596c96){const _0x3821de=_0x4ef441;this[_0x3821de('0x4f')]=this[_0x3821de('0x4f')]?this[_0x3821de('0x4f')][_0x3821de('0xf')](_0x596c96):_0x596c96();};const Migration=function(_0x381dda){const _0x1b8ad8=_0x4ef441;this[_0x1b8ad8('0x55')]=_0x381dda,this[_0x1b8ad8('0x1')]=new Sequence();};Migration[_0x4ef441('0x29')][_0x4ef441('0xa')]=function(_0x20c7da,_0x82968d,_0x2ef008){const _0x24a5fa=_0x4ef441,_0x2cf1d0=this;this[_0x24a5fa('0x1')][_0x24a5fa('0x53')](function(){const _0x4cd4fe=_0x24a5fa;return _0x2cf1d0[_0x4cd4fe('0x55')][_0x4cd4fe('0xa')](_0x20c7da,_0x82968d,_0x2ef008)['then'](function(){const _0x1eda10=_0x4cd4fe;logger[_0x1eda10('0x33')](_0x1eda10('0x1b'),_0x82968d,_0x20c7da);})['catch'](function(_0x3c9e08){const _0x1a605a=_0x4cd4fe;logger['info'](JSON[_0x1a605a('0x32')](_0x3c9e08));});});},Migration['prototype'][_0x4ef441('0x19')]=function(_0x3615c7,_0x1ebcb7,_0x2f09ed){const _0x4331dc=_0x4ef441,_0x1e75a6=this;this[_0x4331dc('0x1')][_0x4331dc('0x53')](function(){const _0x17ad37=_0x4331dc;return _0x1e75a6[_0x17ad37('0x55')][_0x17ad37('0x19')](_0x3615c7,_0x1ebcb7,_0x2f09ed)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x1ebcb7,_0x3615c7);})[_0x17ad37('0x27')](function(_0x5b39fc){const _0xd0b20a=_0x17ad37;logger[_0xd0b20a('0x33')](JSON[_0xd0b20a('0x32')](_0x5b39fc));});});},Migration['prototype'][_0x4ef441('0x1c')]=function(_0x36c0b9){const _0x213659=_0x4ef441,_0x534594=this;this['sequence'][_0x213659('0x53')](function(){const _0x1d0be3=_0x213659;return _0x534594[_0x1d0be3('0x55')][_0x1d0be3('0x1c')](_0x36c0b9,{'force':!![]})['then'](function(){const _0x3588cc=_0x1d0be3;logger[_0x3588cc('0x33')](_0x3588cc('0x4e'),_0x36c0b9);})[_0x1d0be3('0x27')](function(_0x413902){logger['info'](JSON['stringify'](_0x413902));});});},Migration['prototype'][_0x4ef441('0x28')]=function(_0x1102a9,_0x27f1c7,_0x1086c4){const _0x1fccf1=_0x4ef441,_0x288c3f=this;this[_0x1fccf1('0x1')]['enqueue'](function(){const _0x8b9d8f=_0x1fccf1;return _0x288c3f[_0x8b9d8f('0x55')]['addIndex'](_0x1102a9,_0x27f1c7,{'indexName':_0x1086c4})[_0x8b9d8f('0x30')](function(){const _0x2d1154=_0x8b9d8f;logger[_0x2d1154('0x33')](_0x2d1154('0x2d'),_0x1102a9,_0x27f1c7[_0x2d1154('0x2b')](','),_0x1086c4);})[_0x8b9d8f('0x27')](function(_0x247a1a){const _0x321fce=_0x8b9d8f;logger[_0x321fce('0x33')](JSON[_0x321fce('0x32')](_0x247a1a));});});},Migration[_0x4ef441('0x29')]['query']=function(_0x1afda8){const _0x448f35=_0x4ef441,_0x4909e4=this;this['sequence'][_0x448f35('0x53')](function(){const _0x12ad9a=_0x448f35;return _0x4909e4[_0x12ad9a('0x55')]['sequelize'][_0x12ad9a('0x3a')](_0x1afda8)[_0x12ad9a('0x30')](function(){const _0x290912=_0x12ad9a;logger['info'](_0x290912('0x31'),_0x1afda8);})[_0x12ad9a('0x27')](function(_0x127515){const _0x3a3d60=_0x12ad9a;logger[_0x3a3d60('0x33')](JSON['stringify'](_0x127515));});});},Migration['prototype'][_0x4ef441('0x7')]=function(_0x1ebfcb,_0x532c0e){const _0x3c0f44=this;this['sequence']['enqueue'](function(){const _0x2300ac=a914_0x5422;return _0x3c0f44['queryInterface'][_0x2300ac('0x7')](_0x1ebfcb,_0x532c0e)[_0x2300ac('0x30')](function(){const _0x768567=_0x2300ac;logger[_0x768567('0x33')](_0x768567('0x40'),_0x532c0e,_0x1ebfcb);})[_0x2300ac('0x27')](function(_0x1efb2d){const _0x4add3a=_0x2300ac;logger[_0x4add3a('0x33')](util[_0x4add3a('0x51')](_0x1efb2d,{'showHidden':![],'depth':null}));});});},Migration[_0x4ef441('0x29')][_0x4ef441('0x8')]=function(_0x54413d){const _0x55c4e2=_0x4ef441;this[_0x55c4e2('0x1')][_0x55c4e2('0x53')](function(){return _0x54413d();});},module[_0x4ef441('0xb')]={'up':function(_0x3a74ff,_0x2db715){return new Promise(function(_0x5bfd77){const _0x2e7f8c=a914_0x5422,_0x1786f8=new Migration(_0x3a74ff);_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x4a'),_0x2e7f8c('0x46'),{'type':_0x2db715[_0x2e7f8c('0x42')]}),_0x1786f8[_0x2e7f8c('0x19')]('analytics_default_reports',_0x2e7f8c('0x46'),{'type':_0x2db715[_0x2e7f8c('0x42')]}),_0x1786f8[_0x2e7f8c('0x3a')](_0x2e7f8c('0x1e')),_0x1786f8['addColumn'](_0x2e7f8c('0x18'),'offline_chat_button',{'type':_0x2db715[_0x2e7f8c('0x4c')],'defaultValue':_0x2e7f8c('0x14')}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x18'),_0x2e7f8c('0x39'),{'type':_0x2db715[_0x2e7f8c('0x49')],'defaultValue':![]}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x52'),_0x2e7f8c('0x48'),{'type':_0x2db715['STRING']}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x52'),'customerIp',{'type':_0x2db715[_0x2e7f8c('0x4c')]}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x52'),_0x2e7f8c('0x25'),{'type':_0x2db715['ENUM'](_0x2e7f8c('0x20'),_0x2e7f8c('0x0')),'defaultValue':_0x2e7f8c('0x20')}),_0x1786f8[_0x2e7f8c('0x3a')](_0x2e7f8c('0x1a')),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x13'),_0x2e7f8c('0x11'),{'type':_0x2db715[_0x2e7f8c('0x42')]('long'),'allowNull':![]}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x13'),'read',{'type':_0x2db715[_0x2e7f8c('0x49')],'defaultValue':![]}),_0x1786f8['addColumn'](_0x2e7f8c('0x13'),_0x2e7f8c('0x1d'),{'type':_0x2db715[_0x2e7f8c('0x3d')]('in',_0x2e7f8c('0x6')),'defaultValue':_0x2e7f8c('0x6'),'allowNull':![]}),_0x1786f8[_0x2e7f8c('0xa')](_0x2e7f8c('0x13'),'messageId',{'type':_0x2db715[_0x2e7f8c('0x4c')](0xbe)}),_0x1786f8['removeColumn'](_0x2e7f8c('0x13'),_0x2e7f8c('0x4')),_0x1786f8[_0x2e7f8c('0xa')](_0x2e7f8c('0x13'),'to',{'type':_0x2db715[_0x2e7f8c('0x42')](_0x2e7f8c('0x12'))}),_0x1786f8['changeColumn'](_0x2e7f8c('0x13'),'cc',{'type':_0x2db715[_0x2e7f8c('0x42')](_0x2e7f8c('0x12'))}),_0x1786f8[_0x2e7f8c('0xa')](_0x2e7f8c('0x13'),_0x2e7f8c('0x4d'),{'type':_0x2db715['TEXT'](_0x2e7f8c('0x12'))}),_0x1786f8['changeColumn'](_0x2e7f8c('0x13'),_0x2e7f8c('0x16'),{'type':_0x2db715['TEXT']}),_0x1786f8[_0x2e7f8c('0x19')]('mail_messages',_0x2e7f8c('0x2'),{'type':_0x2db715[_0x2e7f8c('0x50')]}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x13'),_0x2e7f8c('0x17'),{'type':_0x2db715[_0x2e7f8c('0x44')],'defaultValue':0x0}),_0x1786f8[_0x2e7f8c('0x7')](_0x2e7f8c('0x13'),_0x2e7f8c('0x47')),_0x1786f8['removeColumn'](_0x2e7f8c('0x13'),_0x2e7f8c('0x23')),_0x1786f8[_0x2e7f8c('0x7')]('mail_messages',_0x2e7f8c('0x41')),_0x1786f8[_0x2e7f8c('0x7')](_0x2e7f8c('0x13'),_0x2e7f8c('0x3')),_0x1786f8[_0x2e7f8c('0x7')]('mail_messages','reason'),_0x1786f8['removeColumn']('mail_messages','auto'),_0x1786f8['removeColumn'](_0x2e7f8c('0x13'),'status'),_0x1786f8[_0x2e7f8c('0x7')]('mail_messages',_0x2e7f8c('0xc')),_0x1786f8[_0x2e7f8c('0x7')](_0x2e7f8c('0x13'),'voiceSource'),_0x1786f8[_0x2e7f8c('0x7')](_0x2e7f8c('0x13'),_0x2e7f8c('0x5')),_0x1786f8[_0x2e7f8c('0x7')]('mail_messages',_0x2e7f8c('0x57')),_0x1786f8[_0x2e7f8c('0x7')]('mail_messages',_0x2e7f8c('0x3f')),_0x1786f8[_0x2e7f8c('0x7')]('mail_messages','accountName'),_0x1786f8[_0x2e7f8c('0x7')]('mail_messages','MailInteractionId'),_0x1786f8['addColumn'](_0x2e7f8c('0x13'),_0x2e7f8c('0x56'),{'type':_0x2db715[_0x2e7f8c('0x44')]}),_0x1786f8[_0x2e7f8c('0x3a')](_0x2e7f8c('0x54')),_0x1786f8[_0x2e7f8c('0x19')]('mail_messages',_0x2e7f8c('0x38'),{'type':_0x2db715[_0x2e7f8c('0x44')]}),_0x1786f8[_0x2e7f8c('0x3a')]('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'),_0x1786f8[_0x2e7f8c('0x19')]('mail_messages',_0x2e7f8c('0xd'),{'type':_0x2db715[_0x2e7f8c('0x44')]}),_0x1786f8[_0x2e7f8c('0x3a')]('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'),_0x1786f8[_0x2e7f8c('0x19')]('mail_messages',_0x2e7f8c('0x3b'),{'type':_0x2db715[_0x2e7f8c('0x44')]}),_0x1786f8[_0x2e7f8c('0x3a')](_0x2e7f8c('0x2f')),_0x1786f8[_0x2e7f8c('0x3a')]('ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;'),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x45'),'attach',{'type':_0x2db715['BOOLEAN'],'defaultValue':![]}),_0x1786f8[_0x2e7f8c('0x19')]('mail_accounts','signature',{'type':_0x2db715[_0x2e7f8c('0x42')]}),_0x1786f8[_0x2e7f8c('0x7')]('tools_templates',_0x2e7f8c('0x16')),_0x1786f8['addColumn'](_0x2e7f8c('0x1f'),_0x2e7f8c('0x36'),{'type':_0x2db715[_0x2e7f8c('0x49')],'defaultValue':![]}),_0x1786f8['addColumn'](_0x2e7f8c('0x1f'),_0x2e7f8c('0xe'),{'type':_0x2db715[_0x2e7f8c('0x44')],'defaultValue':0x0}),_0x1786f8[_0x2e7f8c('0x1c')]('report_openchannel'),_0x1786f8[_0x2e7f8c('0x1c')](_0x2e7f8c('0x43')),_0x1786f8[_0x2e7f8c('0x1c')]('report_chat'),_0x1786f8[_0x2e7f8c('0x1c')](_0x2e7f8c('0x35')),_0x1786f8[_0x2e7f8c('0x1c')](_0x2e7f8c('0x3e')),_0x1786f8[_0x2e7f8c('0x1c')](_0x2e7f8c('0x37')),_0x1786f8['dropTable'](_0x2e7f8c('0x2e')),_0x1786f8['dropTable'](_0x2e7f8c('0x21')),_0x1786f8[_0x2e7f8c('0x1c')](_0x2e7f8c('0x9')),_0x1786f8[_0x2e7f8c('0x1c')](_0x2e7f8c('0x4b')),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x2a'),'editedat',{'type':_0x2db715[_0x2e7f8c('0x50')]}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x2a'),'edited',{'type':_0x2db715[_0x2e7f8c('0x49')],'defaultValue':![]}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x26'),_0x2e7f8c('0x22'),{'type':_0x2db715['ENUM'](_0x2e7f8c('0x24'),_0x2e7f8c('0x34')),'defaultValue':_0x2e7f8c('0x24')}),_0x1786f8[_0x2e7f8c('0x19')](_0x2e7f8c('0x10'),_0x2e7f8c('0x22'),{'type':_0x2db715[_0x2e7f8c('0x3d')](_0x2e7f8c('0x24'),_0x2e7f8c('0x34')),'defaultValue':_0x2e7f8c('0x24')}),_0x1786f8['final'](_0x5bfd77);});},'down':function(){}}; \ No newline at end of file +const a914_0x4cb6=['report_chat','removeColumn','prototype','UserId','sequelize','voiceSource','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','phoneBarEnableDtmfTone','report_mail_session','addIndex','dialOrderByScheduledAt','DESC','ENUM','report_fax','info','referer','ASC','enableCustomerAttachment','exports','mail_interactions','bcc','report_sms','INTEGER','ALTER\x20TABLE\x20mail_messages\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','catch','tail','campaigns','enqueue','finally','users','mail_messages','thumb','query\x20%s','reason','star','accountName','inspect','analytics_custom_reports','STRING','table\x20dropped\x20%s','ALTER\x20TABLE\x20chat_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','auto','report_openchannel','join','sentAt','joins','inReplyTo','util','final','TEXT','fromId','report_sms_session','cm_hopper_history','changeColumn','then','dropTable','BOOLEAN','edited','MailAccountId','ContactId','customerIp','queryInterface','report_openchannel_session','chat_websites','long','body','Changed\x20column\x20%s\x20in\x20table\x20%s','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','signature','userName','html','editedat','query','Send','sequence','tools_templates','phoneBarAutoAnswerDelay','text','direction','DATE','report_fax_session','retry','../config/logger','userFullname','read','out','stringify','MailInteractionId','addColumn'];(function(_0x1843ce,_0x4cb690){const _0x5b2851=function(_0x333347){while(--_0x333347){_0x1843ce['push'](_0x1843ce['shift']());}};_0x5b2851(++_0x4cb690);}(a914_0x4cb6,0xf3));const a914_0x5b28=function(_0x1843ce,_0x4cb690){_0x1843ce=_0x1843ce-0x0;let _0x5b2851=a914_0x4cb6[_0x1843ce];return _0x5b2851;};const _0x997bbe=a914_0x5b28;'use strict';const logger=require(_0x997bbe('0x17'))('migration'),util=require(_0x997bbe('0x4f')),Sequence=function(){};Sequence[_0x997bbe('0x20')][_0x997bbe('0x39')]=function(_0x333347){const _0x1ab852=_0x997bbe;this[_0x1ab852('0x37')]=this[_0x1ab852('0x37')]?this[_0x1ab852('0x37')][_0x1ab852('0x3a')](_0x333347):_0x333347();};const Migration=function(_0x5de752){const _0x50fec3=_0x997bbe;this[_0x50fec3('0x2')]=_0x5de752,this['sequence']=new Sequence();};Migration[_0x997bbe('0x20')]['changeColumn']=function(_0xb166b6,_0x3bc12b,_0x442404){const _0x183183=_0x997bbe,_0x6a727c=this;this[_0x183183('0xf')]['enqueue'](function(){const _0x4efda1=_0x183183;return _0x6a727c[_0x4efda1('0x2')][_0x4efda1('0x55')](_0xb166b6,_0x3bc12b,_0x442404)[_0x4efda1('0x56')](function(){const _0x2335bd=_0x4efda1;logger['info'](_0x2335bd('0x7'),_0x3bc12b,_0xb166b6);})['catch'](function(_0x3f4724){const _0x4ad528=_0x4efda1;logger[_0x4ad528('0x2c')](JSON['stringify'](_0x3f4724));});});},Migration[_0x997bbe('0x20')][_0x997bbe('0x1d')]=function(_0x1ac7dc,_0x16763e,_0x4d53db){const _0x32582b=_0x997bbe,_0x3e44c0=this;this[_0x32582b('0xf')]['enqueue'](function(){const _0x39a776=_0x32582b;return _0x3e44c0['queryInterface']['addColumn'](_0x1ac7dc,_0x16763e,_0x4d53db)[_0x39a776('0x56')](function(){const _0x6c91ac=_0x39a776;logger[_0x6c91ac('0x2c')](_0x6c91ac('0x48'),_0x16763e,_0x1ac7dc);})['catch'](function(_0x32b1d7){const _0xcc53ba=_0x39a776;logger['info'](JSON[_0xcc53ba('0x1b')](_0x32b1d7));});});},Migration[_0x997bbe('0x20')][_0x997bbe('0x57')]=function(_0x4722e4){const _0x456320=_0x997bbe,_0x1d77a7=this;this[_0x456320('0xf')][_0x456320('0x39')](function(){const _0x2d0278=_0x456320;return _0x1d77a7[_0x2d0278('0x2')][_0x2d0278('0x57')](_0x4722e4,{'force':!![]})[_0x2d0278('0x56')](function(){const _0x502da5=_0x2d0278;logger[_0x502da5('0x2c')](_0x502da5('0x45'),_0x4722e4);})[_0x2d0278('0x36')](function(_0x19e418){const _0x3ed86f=_0x2d0278;logger[_0x3ed86f('0x2c')](JSON[_0x3ed86f('0x1b')](_0x19e418));});});},Migration[_0x997bbe('0x20')]['addIndex']=function(_0x54aa03,_0xdd1d9d,_0x1b4462){const _0x2c543d=_0x997bbe,_0x4cd11f=this;this[_0x2c543d('0xf')][_0x2c543d('0x39')](function(){const _0x16d81f=_0x2c543d;return _0x4cd11f[_0x16d81f('0x2')][_0x16d81f('0x27')](_0x54aa03,_0xdd1d9d,{'indexName':_0x1b4462})[_0x16d81f('0x56')](function(){const _0x3054e0=_0x16d81f;logger['info'](_0x3054e0('0x47'),_0x54aa03,_0xdd1d9d[_0x3054e0('0x4b')](','),_0x1b4462);})[_0x16d81f('0x36')](function(_0xada552){logger['info'](JSON['stringify'](_0xada552));});});},Migration['prototype'][_0x997bbe('0xd')]=function(_0x54053f){const _0x116195=_0x997bbe,_0x701f65=this;this['sequence'][_0x116195('0x39')](function(){const _0x3eb0c9=_0x116195;return _0x701f65[_0x3eb0c9('0x2')][_0x3eb0c9('0x22')][_0x3eb0c9('0xd')](_0x54053f)[_0x3eb0c9('0x56')](function(){const _0x5570b1=_0x3eb0c9;logger[_0x5570b1('0x2c')](_0x5570b1('0x3e'),_0x54053f);})[_0x3eb0c9('0x36')](function(_0x2e935f){const _0x56b602=_0x3eb0c9;logger[_0x56b602('0x2c')](JSON['stringify'](_0x2e935f));});});},Migration[_0x997bbe('0x20')][_0x997bbe('0x1f')]=function(_0x1d71c4,_0x9310dc){const _0xe62e5=_0x997bbe,_0x4d430a=this;this[_0xe62e5('0xf')][_0xe62e5('0x39')](function(){const _0x40dcbf=_0xe62e5;return _0x4d430a[_0x40dcbf('0x2')][_0x40dcbf('0x1f')](_0x1d71c4,_0x9310dc)[_0x40dcbf('0x56')](function(){const _0x2bafb2=_0x40dcbf;logger[_0x2bafb2('0x2c')]('Removed\x20column\x20%s\x20from\x20%s',_0x9310dc,_0x1d71c4);})[_0x40dcbf('0x36')](function(_0x2079a6){const _0x48c13c=_0x40dcbf;logger['info'](util[_0x48c13c('0x42')](_0x2079a6,{'showHidden':![],'depth':null}));});});},Migration[_0x997bbe('0x20')][_0x997bbe('0x50')]=function(_0x558750){this['sequence']['enqueue'](function(){return _0x558750();});},module[_0x997bbe('0x30')]={'up':function(_0x503ac3,_0x574fd0){return new Promise(function(_0x322536){const _0x250c8d=a914_0x5b28,_0x12dd30=new Migration(_0x503ac3);_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x43'),'joins',{'type':_0x574fd0[_0x250c8d('0x51')]}),_0x12dd30[_0x250c8d('0x1d')]('analytics_default_reports',_0x250c8d('0x4d'),{'type':_0x574fd0[_0x250c8d('0x51')]}),_0x12dd30[_0x250c8d('0xd')]('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'),_0x12dd30['addColumn']('chat_websites','offline_chat_button',{'type':_0x574fd0[_0x250c8d('0x44')],'defaultValue':_0x250c8d('0xe')}),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x4'),_0x250c8d('0x2f'),{'type':_0x574fd0[_0x250c8d('0x58')],'defaultValue':![]}),_0x12dd30[_0x250c8d('0x1d')]('chat_interactions',_0x250c8d('0x2d'),{'type':_0x574fd0[_0x250c8d('0x44')]}),_0x12dd30[_0x250c8d('0x1d')]('chat_interactions',_0x250c8d('0x1'),{'type':_0x574fd0['STRING']}),_0x12dd30[_0x250c8d('0x1d')]('chat_interactions','ratingType',{'type':_0x574fd0[_0x250c8d('0x2a')](_0x250c8d('0x40'),_0x250c8d('0x3d')),'defaultValue':'star'}),_0x12dd30[_0x250c8d('0xd')](_0x250c8d('0x46')),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x3c'),_0x250c8d('0x6'),{'type':_0x574fd0[_0x250c8d('0x51')](_0x250c8d('0x5')),'allowNull':![]}),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x3c'),_0x250c8d('0x19'),{'type':_0x574fd0[_0x250c8d('0x58')],'defaultValue':![]}),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x3c'),_0x250c8d('0x13'),{'type':_0x574fd0['ENUM']('in',_0x250c8d('0x1a')),'defaultValue':_0x250c8d('0x1a'),'allowNull':![]}),_0x12dd30['changeColumn'](_0x250c8d('0x3c'),'messageId',{'type':_0x574fd0[_0x250c8d('0x44')](0xbe)}),_0x12dd30[_0x250c8d('0x1f')](_0x250c8d('0x3c'),_0x250c8d('0x4e')),_0x12dd30[_0x250c8d('0x55')](_0x250c8d('0x3c'),'to',{'type':_0x574fd0[_0x250c8d('0x51')](_0x250c8d('0x5'))}),_0x12dd30[_0x250c8d('0x55')](_0x250c8d('0x3c'),'cc',{'type':_0x574fd0[_0x250c8d('0x51')](_0x250c8d('0x5'))}),_0x12dd30[_0x250c8d('0x55')]('mail_messages',_0x250c8d('0x32'),{'type':_0x574fd0[_0x250c8d('0x51')](_0x250c8d('0x5'))}),_0x12dd30[_0x250c8d('0x55')](_0x250c8d('0x3c'),'subject',{'type':_0x574fd0[_0x250c8d('0x51')]}),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x3c'),_0x250c8d('0x4c'),{'type':_0x574fd0[_0x250c8d('0x14')]}),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x3c'),'attach',{'type':_0x574fd0[_0x250c8d('0x34')],'defaultValue':0x0}),_0x12dd30[_0x250c8d('0x1f')]('mail_messages',_0x250c8d('0x52')),_0x12dd30[_0x250c8d('0x1f')](_0x250c8d('0x3c'),'attachment'),_0x12dd30[_0x250c8d('0x1f')](_0x250c8d('0x3c'),_0x250c8d('0x12')),_0x12dd30[_0x250c8d('0x1f')]('mail_messages',_0x250c8d('0xb')),_0x12dd30['removeColumn'](_0x250c8d('0x3c'),_0x250c8d('0x3f')),_0x12dd30[_0x250c8d('0x1f')]('mail_messages',_0x250c8d('0x49')),_0x12dd30['removeColumn']('mail_messages','status'),_0x12dd30['removeColumn'](_0x250c8d('0x3c'),_0x250c8d('0x16')),_0x12dd30['removeColumn']('mail_messages',_0x250c8d('0x23')),_0x12dd30[_0x250c8d('0x1f')](_0x250c8d('0x3c'),_0x250c8d('0xa')),_0x12dd30[_0x250c8d('0x1f')]('mail_messages',_0x250c8d('0x18')),_0x12dd30['removeColumn'](_0x250c8d('0x3c'),'accountId'),_0x12dd30['removeColumn'](_0x250c8d('0x3c'),_0x250c8d('0x41')),_0x12dd30[_0x250c8d('0x1f')]('mail_messages',_0x250c8d('0x1c')),_0x12dd30[_0x250c8d('0x1d')]('mail_messages',_0x250c8d('0x5a'),{'type':_0x574fd0[_0x250c8d('0x34')]}),_0x12dd30[_0x250c8d('0xd')](_0x250c8d('0x8')),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x3c'),_0x250c8d('0x1c'),{'type':_0x574fd0[_0x250c8d('0x34')]}),_0x12dd30['query'](_0x250c8d('0x24')),_0x12dd30['addColumn']('mail_messages',_0x250c8d('0x21'),{'type':_0x574fd0[_0x250c8d('0x34')]}),_0x12dd30[_0x250c8d('0xd')]('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'),_0x12dd30['addColumn'](_0x250c8d('0x3c'),_0x250c8d('0x0'),{'type':_0x574fd0[_0x250c8d('0x34')]}),_0x12dd30[_0x250c8d('0xd')]('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'),_0x12dd30[_0x250c8d('0xd')](_0x250c8d('0x35')),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x31'),'attach',{'type':_0x574fd0[_0x250c8d('0x58')],'defaultValue':![]}),_0x12dd30[_0x250c8d('0x1d')]('mail_accounts',_0x250c8d('0x9'),{'type':_0x574fd0[_0x250c8d('0x51')]}),_0x12dd30[_0x250c8d('0x1f')](_0x250c8d('0x10'),'subject'),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x3b'),_0x250c8d('0x25'),{'type':_0x574fd0[_0x250c8d('0x58')],'defaultValue':![]}),_0x12dd30['addColumn'](_0x250c8d('0x3b'),_0x250c8d('0x11'),{'type':_0x574fd0['INTEGER'],'defaultValue':0x0}),_0x12dd30[_0x250c8d('0x57')](_0x250c8d('0x4a')),_0x12dd30[_0x250c8d('0x57')](_0x250c8d('0x3')),_0x12dd30[_0x250c8d('0x57')](_0x250c8d('0x1e')),_0x12dd30[_0x250c8d('0x57')]('report_chat_session'),_0x12dd30['dropTable'](_0x250c8d('0x2b')),_0x12dd30[_0x250c8d('0x57')](_0x250c8d('0x15')),_0x12dd30[_0x250c8d('0x57')]('report_mail'),_0x12dd30[_0x250c8d('0x57')](_0x250c8d('0x26')),_0x12dd30[_0x250c8d('0x57')](_0x250c8d('0x33')),_0x12dd30[_0x250c8d('0x57')](_0x250c8d('0x53')),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x54'),_0x250c8d('0xc'),{'type':_0x574fd0[_0x250c8d('0x14')]}),_0x12dd30[_0x250c8d('0x1d')]('cm_hopper_history',_0x250c8d('0x59'),{'type':_0x574fd0[_0x250c8d('0x58')],'defaultValue':![]}),_0x12dd30[_0x250c8d('0x1d')]('voice_queues',_0x250c8d('0x28'),{'type':_0x574fd0['ENUM'](_0x250c8d('0x29'),_0x250c8d('0x2e')),'defaultValue':_0x250c8d('0x29')}),_0x12dd30[_0x250c8d('0x1d')](_0x250c8d('0x38'),_0x250c8d('0x28'),{'type':_0x574fd0[_0x250c8d('0x2a')](_0x250c8d('0x29'),'ASC'),'defaultValue':_0x250c8d('0x29')}),_0x12dd30[_0x250c8d('0x50')](_0x322536);});},'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 c87589f..b609399 100644 --- a/server/migrations/2.0.36.js +++ b/server/migrations/2.0.36.js @@ -1 +1 @@ -const a915_0xcd1b=['../config/logger','inspect','queryInterface','table\x20dropped\x20%s','then','stringify','info','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','removeColumn','migration','join','catch','sequence','openchannel_messages','tail','dropTable','query','prototype','enqueue','addColumn'];(function(_0x522d03,_0xcd1ba2){const _0x1691fb=function(_0x596baa){while(--_0x596baa){_0x522d03['push'](_0x522d03['shift']());}};_0x1691fb(++_0xcd1ba2);}(a915_0xcd1b,0x156));const a915_0x1691=function(_0x522d03,_0xcd1ba2){_0x522d03=_0x522d03-0x0;let _0x1691fb=a915_0xcd1b[_0x522d03];return _0x1691fb;};const _0x5d23c8=a915_0x1691;'use strict';const logger=require(_0x5d23c8('0xf'))(_0x5d23c8('0x4')),util=require('util'),Sequence=function(){};Sequence[_0x5d23c8('0xc')]['enqueue']=function(_0x596baa){const _0x3d8734=_0x5d23c8;this[_0x3d8734('0x9')]=this['tail']?this[_0x3d8734('0x9')]['finally'](_0x596baa):_0x596baa();};const Migration=function(_0x346cbf){const _0x954648=_0x5d23c8;this[_0x954648('0x11')]=_0x346cbf,this[_0x954648('0x7')]=new Sequence();};Migration[_0x5d23c8('0xc')]['changeColumn']=function(_0xf24336,_0x56f04f,_0x3dbf0e){const _0x5d84b5=_0x5d23c8,_0x4e21b6=this;this[_0x5d84b5('0x7')][_0x5d84b5('0xd')](function(){const _0x3a294c=_0x5d84b5;return _0x4e21b6['queryInterface']['changeColumn'](_0xf24336,_0x56f04f,_0x3dbf0e)['then'](function(){const _0x53337c=a915_0x1691;logger[_0x53337c('0x0')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x56f04f,_0xf24336);})[_0x3a294c('0x6')](function(_0x56e979){const _0x4c5924=_0x3a294c;logger[_0x4c5924('0x0')](JSON[_0x4c5924('0x14')](_0x56e979));});});},Migration['prototype'][_0x5d23c8('0xe')]=function(_0x470a27,_0x155c6b,_0xbf4936){const _0x4fc181=_0x5d23c8,_0x4d1261=this;this[_0x4fc181('0x7')][_0x4fc181('0xd')](function(){const _0xb6f503=_0x4fc181;return _0x4d1261['queryInterface'][_0xb6f503('0xe')](_0x470a27,_0x155c6b,_0xbf4936)['then'](function(){const _0x464825=_0xb6f503;logger[_0x464825('0x0')](_0x464825('0x2'),_0x155c6b,_0x470a27);})['catch'](function(_0x69f0c){const _0xd7b270=_0xb6f503;logger['info'](JSON[_0xd7b270('0x14')](_0x69f0c));});});},Migration['prototype'][_0x5d23c8('0xa')]=function(_0x34f0ce){const _0x53417d=_0x5d23c8,_0x5de696=this;this[_0x53417d('0x7')][_0x53417d('0xd')](function(){const _0xfedc41=_0x53417d;return _0x5de696[_0xfedc41('0x11')]['dropTable'](_0x34f0ce,{'force':!![]})[_0xfedc41('0x13')](function(){const _0x22484d=_0xfedc41;logger['info'](_0x22484d('0x12'),_0x34f0ce);})[_0xfedc41('0x6')](function(_0x3222b9){const _0x5d97d5=_0xfedc41;logger[_0x5d97d5('0x0')](JSON[_0x5d97d5('0x14')](_0x3222b9));});});},Migration[_0x5d23c8('0xc')]['addIndex']=function(_0x289cdd,_0x7ed86d,_0x3c1b51){const _0x21f511=_0x5d23c8,_0x40790d=this;this[_0x21f511('0x7')][_0x21f511('0xd')](function(){const _0x4fdf4f=_0x21f511;return _0x40790d[_0x4fdf4f('0x11')]['addIndex'](_0x289cdd,_0x7ed86d,{'indexName':_0x3c1b51})[_0x4fdf4f('0x13')](function(){const _0x501c35=_0x4fdf4f;logger[_0x501c35('0x0')]('addIndex\x20%s\x20%s\x20%s',_0x289cdd,_0x7ed86d[_0x501c35('0x5')](','),_0x3c1b51);})[_0x4fdf4f('0x6')](function(_0x243e55){const _0x2d9c8a=_0x4fdf4f;logger[_0x2d9c8a('0x0')](JSON[_0x2d9c8a('0x14')](_0x243e55));});});},Migration[_0x5d23c8('0xc')]['query']=function(_0x278de1){const _0x2d11e9=_0x5d23c8,_0x229f37=this;this['sequence'][_0x2d11e9('0xd')](function(){const _0x597c10=_0x2d11e9;return _0x229f37[_0x597c10('0x11')]['sequelize']['query'](_0x278de1)[_0x597c10('0x13')](function(){const _0x33512f=_0x597c10;logger[_0x33512f('0x0')]('query\x20%s',_0x278de1);})['catch'](function(_0xd49540){logger['info'](JSON['stringify'](_0xd49540));});});},Migration['prototype'][_0x5d23c8('0x3')]=function(_0x3e1d87,_0x2b7e68){const _0x562c89=_0x5d23c8,_0x52ead8=this;this[_0x562c89('0x7')]['enqueue'](function(){const _0x512d11=_0x562c89;return _0x52ead8[_0x512d11('0x11')][_0x512d11('0x3')](_0x3e1d87,_0x2b7e68)[_0x512d11('0x13')](function(){const _0x5c6b59=_0x512d11;logger['info'](_0x5c6b59('0x1'),_0x2b7e68,_0x3e1d87);})[_0x512d11('0x6')](function(_0x51762a){const _0x16ff0d=_0x512d11;logger[_0x16ff0d('0x0')](util[_0x16ff0d('0x10')](_0x51762a,{'showHidden':![],'depth':null}));});});},Migration[_0x5d23c8('0xc')]['final']=function(_0x4643ab){const _0x3f3c80=_0x5d23c8;this[_0x3f3c80('0x7')][_0x3f3c80('0xd')](function(){return _0x4643ab();});},module['exports']={'up':function(_0x10144e,_0x41e5cd){return new Promise(function(_0xe60be){const _0x30da12=a915_0x1691,_0x55b8e2=new Migration(_0x10144e);_0x55b8e2['addColumn'](_0x30da12('0x8'),'AttachmentId',{'type':_0x41e5cd['INTEGER']}),_0x55b8e2[_0x30da12('0xb')]('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'),_0x55b8e2['final'](_0xe60be);});},'down':function(){}}; \ No newline at end of file +const a915_0x2566=['exports','addIndex\x20%s\x20%s\x20%s','changeColumn','../config/logger','info','util','addIndex','sequence','stringify','INTEGER','Added\x20column\x20%s\x20to\x20%s','query','final','queryInterface','tail','removeColumn','openchannel_messages','then','addColumn','AttachmentId','dropTable','prototype','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','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','table\x20dropped\x20%s','enqueue','inspect'];(function(_0x45755c,_0x256615){const _0x5dbb3c=function(_0x25c639){while(--_0x25c639){_0x45755c['push'](_0x45755c['shift']());}};_0x5dbb3c(++_0x256615);}(a915_0x2566,0x8b));const a915_0x5dbb=function(_0x45755c,_0x256615){_0x45755c=_0x45755c-0x0;let _0x5dbb3c=a915_0x2566[_0x45755c];return _0x5dbb3c;};const _0x46f9bc=a915_0x5dbb;'use strict';const logger=require(_0x46f9bc('0x9'))('migration'),util=require(_0x46f9bc('0xb')),Sequence=function(){};Sequence[_0x46f9bc('0x1b')][_0x46f9bc('0x4')]=function(_0x25c639){const _0x3b3866=_0x46f9bc;this['tail']=this[_0x3b3866('0x14')]?this[_0x3b3866('0x14')][_0x3b3866('0x0')](_0x25c639):_0x25c639();};const Migration=function(_0x508384){const _0x49f168=_0x46f9bc;this[_0x49f168('0x13')]=_0x508384,this[_0x49f168('0xd')]=new Sequence();};Migration[_0x46f9bc('0x1b')][_0x46f9bc('0x8')]=function(_0x1b4a20,_0x5913f1,_0x458e36){const _0x20a497=_0x46f9bc,_0x2f3edd=this;this[_0x20a497('0xd')][_0x20a497('0x4')](function(){const _0x330b72=_0x20a497;return _0x2f3edd[_0x330b72('0x13')]['changeColumn'](_0x1b4a20,_0x5913f1,_0x458e36)[_0x330b72('0x17')](function(){const _0x1074b5=_0x330b72;logger[_0x1074b5('0xa')](_0x1074b5('0x1'),_0x5913f1,_0x1b4a20);})[_0x330b72('0x2')](function(_0xc24b84){const _0x73d860=_0x330b72;logger['info'](JSON[_0x73d860('0xe')](_0xc24b84));});});},Migration[_0x46f9bc('0x1b')][_0x46f9bc('0x18')]=function(_0x4e9a1d,_0x37c2bf,_0x47e61c){const _0x4456f6=_0x46f9bc,_0x479f85=this;this[_0x4456f6('0xd')][_0x4456f6('0x4')](function(){const _0x330d9f=_0x4456f6;return _0x479f85[_0x330d9f('0x13')][_0x330d9f('0x18')](_0x4e9a1d,_0x37c2bf,_0x47e61c)[_0x330d9f('0x17')](function(){const _0x5a48ed=_0x330d9f;logger[_0x5a48ed('0xa')](_0x5a48ed('0x10'),_0x37c2bf,_0x4e9a1d);})[_0x330d9f('0x2')](function(_0x364b08){const _0x50dd0d=_0x330d9f;logger[_0x50dd0d('0xa')](JSON['stringify'](_0x364b08));});});},Migration[_0x46f9bc('0x1b')][_0x46f9bc('0x1a')]=function(_0x55ebbb){const _0x18fa72=_0x46f9bc,_0xc02876=this;this[_0x18fa72('0xd')][_0x18fa72('0x4')](function(){const _0x1e981e=_0x18fa72;return _0xc02876[_0x1e981e('0x13')][_0x1e981e('0x1a')](_0x55ebbb,{'force':!![]})['then'](function(){const _0x4d751e=_0x1e981e;logger[_0x4d751e('0xa')](_0x4d751e('0x3'),_0x55ebbb);})[_0x1e981e('0x2')](function(_0x44448d){const _0x1c4648=_0x1e981e;logger[_0x1c4648('0xa')](JSON[_0x1c4648('0xe')](_0x44448d));});});},Migration[_0x46f9bc('0x1b')][_0x46f9bc('0xc')]=function(_0x65f01f,_0x36f89b,_0x7a1051){const _0x406e46=_0x46f9bc,_0x1cad69=this;this[_0x406e46('0xd')][_0x406e46('0x4')](function(){const _0x3db603=_0x406e46;return _0x1cad69[_0x3db603('0x13')][_0x3db603('0xc')](_0x65f01f,_0x36f89b,{'indexName':_0x7a1051})[_0x3db603('0x17')](function(){const _0x2e65a6=_0x3db603;logger[_0x2e65a6('0xa')](_0x2e65a6('0x7'),_0x65f01f,_0x36f89b['join'](','),_0x7a1051);})['catch'](function(_0x29f491){logger['info'](JSON['stringify'](_0x29f491));});});},Migration[_0x46f9bc('0x1b')][_0x46f9bc('0x11')]=function(_0x25b7f6){const _0x3f8c58=_0x46f9bc,_0x3c2747=this;this[_0x3f8c58('0xd')][_0x3f8c58('0x4')](function(){const _0x1fe8df=_0x3f8c58;return _0x3c2747[_0x1fe8df('0x13')]['sequelize']['query'](_0x25b7f6)['then'](function(){const _0x23e7e4=_0x1fe8df;logger[_0x23e7e4('0xa')]('query\x20%s',_0x25b7f6);})['catch'](function(_0x1db947){const _0x4b0bba=_0x1fe8df;logger[_0x4b0bba('0xa')](JSON[_0x4b0bba('0xe')](_0x1db947));});});},Migration[_0x46f9bc('0x1b')][_0x46f9bc('0x15')]=function(_0x5c54e3,_0xf42717){const _0xb69f0a=_0x46f9bc,_0x1c5cae=this;this[_0xb69f0a('0xd')][_0xb69f0a('0x4')](function(){const _0x94c1da=_0xb69f0a;return _0x1c5cae['queryInterface'][_0x94c1da('0x15')](_0x5c54e3,_0xf42717)[_0x94c1da('0x17')](function(){const _0x5b5ffd=_0x94c1da;logger[_0x5b5ffd('0xa')]('Removed\x20column\x20%s\x20from\x20%s',_0xf42717,_0x5c54e3);})[_0x94c1da('0x2')](function(_0x5ccb97){const _0x3c2191=_0x94c1da;logger[_0x3c2191('0xa')](util[_0x3c2191('0x5')](_0x5ccb97,{'showHidden':![],'depth':null}));});});},Migration[_0x46f9bc('0x1b')][_0x46f9bc('0x12')]=function(_0x5d1252){const _0x18d11d=_0x46f9bc;this[_0x18d11d('0xd')][_0x18d11d('0x4')](function(){return _0x5d1252();});},module[_0x46f9bc('0x6')]={'up':function(_0x4a67cf,_0x5ba490){return new Promise(function(_0x100d4c){const _0xc6bd6b=a915_0x5dbb,_0x18f3c2=new Migration(_0x4a67cf);_0x18f3c2[_0xc6bd6b('0x18')](_0xc6bd6b('0x16'),_0xc6bd6b('0x19'),{'type':_0x5ba490[_0xc6bd6b('0xf')]}),_0x18f3c2[_0xc6bd6b('0x11')](_0xc6bd6b('0x1c')),_0x18f3c2[_0xc6bd6b('0x12')](_0x100d4c);});},'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 aa24aff..142ee00 100644 --- a/server/migrations/2.0.37.js +++ b/server/migrations/2.0.37.js @@ -1 +1 @@ -const a916_0x10d2=['queryInterface','sequelize','query','completed','removeColumn','tail','STRING','dropTable','inspect','changeColumn','util','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','phone','finally','enqueue','enableUncompleteSave','migration','final','report_jscripty_sessions','jscripty_projects','sequence','sms_interactions','query\x20%s','then','BOOLEAN','sms_messages','info','catch','addIndex','stringify','addColumn','join','exports','prototype','addIndex\x20%s\x20%s\x20%s'];(function(_0x1626cc,_0x10d20f){const _0x38d669=function(_0x594b42){while(--_0x594b42){_0x1626cc['push'](_0x1626cc['shift']());}};_0x38d669(++_0x10d20f);}(a916_0x10d2,0x10e));const a916_0x38d6=function(_0x1626cc,_0x10d20f){_0x1626cc=_0x1626cc-0x0;let _0x38d669=a916_0x10d2[_0x1626cc];return _0x38d669;};const _0x208624=a916_0x38d6;'use strict';const logger=require('../config/logger')(_0x208624('0x1a')),util=require(_0x208624('0x14')),Sequence=function(){};Sequence[_0x208624('0x8')][_0x208624('0x18')]=function(_0x594b42){const _0x440a2e=_0x208624;this[_0x440a2e('0xf')]=this[_0x440a2e('0xf')]?this[_0x440a2e('0xf')][_0x440a2e('0x17')](_0x594b42):_0x594b42();};const Migration=function(_0x2cc009){const _0x5f1b84=_0x208624;this[_0x5f1b84('0xa')]=_0x2cc009,this[_0x5f1b84('0x1e')]=new Sequence();};Migration[_0x208624('0x8')][_0x208624('0x13')]=function(_0x4b63fe,_0x474841,_0x572756){const _0x49ff33=_0x208624,_0x40ddab=this;this[_0x49ff33('0x1e')][_0x49ff33('0x18')](function(){const _0x369129=_0x49ff33;return _0x40ddab[_0x369129('0xa')][_0x369129('0x13')](_0x4b63fe,_0x474841,_0x572756)[_0x369129('0x21')](function(){const _0x312594=_0x369129;logger[_0x312594('0x1')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x474841,_0x4b63fe);})[_0x369129('0x2')](function(_0xca6a94){const _0x20fe75=_0x369129;logger[_0x20fe75('0x1')](JSON[_0x20fe75('0x4')](_0xca6a94));});});},Migration['prototype'][_0x208624('0x5')]=function(_0x326d36,_0x21d08c,_0x9e98dc){const _0xc81bfe=_0x208624,_0x2a5e84=this;this[_0xc81bfe('0x1e')]['enqueue'](function(){const _0x384235=_0xc81bfe;return _0x2a5e84[_0x384235('0xa')][_0x384235('0x5')](_0x326d36,_0x21d08c,_0x9e98dc)[_0x384235('0x21')](function(){const _0x41a1eb=_0x384235;logger[_0x41a1eb('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0x21d08c,_0x326d36);})['catch'](function(_0xac982c){const _0x2b4446=_0x384235;logger[_0x2b4446('0x1')](JSON[_0x2b4446('0x4')](_0xac982c));});});},Migration[_0x208624('0x8')][_0x208624('0x11')]=function(_0x45bdb6){const _0x424f8a=_0x208624,_0x26436b=this;this[_0x424f8a('0x1e')][_0x424f8a('0x18')](function(){return _0x26436b['queryInterface']['dropTable'](_0x45bdb6,{'force':!![]})['then'](function(){const _0x124bb9=a916_0x38d6;logger[_0x124bb9('0x1')]('table\x20dropped\x20%s',_0x45bdb6);})['catch'](function(_0x3cd848){const _0x4cffae=a916_0x38d6;logger['info'](JSON[_0x4cffae('0x4')](_0x3cd848));});});},Migration[_0x208624('0x8')]['addIndex']=function(_0x8061db,_0x20a40e,_0x583f58){const _0x11c08c=_0x208624,_0x1bb2ff=this;this[_0x11c08c('0x1e')]['enqueue'](function(){const _0x12ae04=_0x11c08c;return _0x1bb2ff[_0x12ae04('0xa')][_0x12ae04('0x3')](_0x8061db,_0x20a40e,{'indexName':_0x583f58})[_0x12ae04('0x21')](function(){const _0x283eca=_0x12ae04;logger[_0x283eca('0x1')](_0x283eca('0x9'),_0x8061db,_0x20a40e[_0x283eca('0x6')](','),_0x583f58);})['catch'](function(_0x397adb){const _0x2f75e4=_0x12ae04;logger[_0x2f75e4('0x1')](JSON['stringify'](_0x397adb));});});},Migration[_0x208624('0x8')][_0x208624('0xc')]=function(_0x19d654){const _0x48236b=this;this['sequence']['enqueue'](function(){const _0x340c43=a916_0x38d6;return _0x48236b[_0x340c43('0xa')][_0x340c43('0xb')]['query'](_0x19d654)[_0x340c43('0x21')](function(){const _0x26c180=_0x340c43;logger[_0x26c180('0x1')](_0x26c180('0x20'),_0x19d654);})['catch'](function(_0x146671){const _0x5aa29c=_0x340c43;logger[_0x5aa29c('0x1')](JSON[_0x5aa29c('0x4')](_0x146671));});});},Migration['prototype']['removeColumn']=function(_0x2a5395,_0x9d77a2){const _0x1be2b2=_0x208624,_0x1b5d73=this;this[_0x1be2b2('0x1e')][_0x1be2b2('0x18')](function(){const _0x33a226=_0x1be2b2;return _0x1b5d73[_0x33a226('0xa')][_0x33a226('0xe')](_0x2a5395,_0x9d77a2)[_0x33a226('0x21')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x9d77a2,_0x2a5395);})[_0x33a226('0x2')](function(_0x35cc2b){const _0x3eeae1=_0x33a226;logger[_0x3eeae1('0x1')](util[_0x3eeae1('0x12')](_0x35cc2b,{'showHidden':![],'depth':null}));});});},Migration[_0x208624('0x8')][_0x208624('0x1b')]=function(_0x5a9944){const _0x36d819=_0x208624;this[_0x36d819('0x1e')][_0x36d819('0x18')](function(){return _0x5a9944();});},module[_0x208624('0x7')]={'up':function(_0xac8168,_0x25ca6c){return new Promise(function(_0x47de23){const _0x2a6949=a916_0x38d6,_0x35d2fb=new Migration(_0xac8168);_0x35d2fb['addColumn'](_0x2a6949('0x1d'),_0x2a6949('0x19'),{'type':_0x25ca6c[_0x2a6949('0x22')],'defaultValue':!![]}),_0x35d2fb[_0x2a6949('0x5')](_0x2a6949('0x1c'),_0x2a6949('0xd'),{'type':_0x25ca6c[_0x2a6949('0x22')],'defaultValue':![]}),_0x35d2fb[_0x2a6949('0xc')](_0x2a6949('0x15')),_0x35d2fb[_0x2a6949('0x5')](_0x2a6949('0x1f'),_0x2a6949('0x16'),{'type':_0x25ca6c['STRING']}),_0x35d2fb[_0x2a6949('0x5')](_0x2a6949('0x0'),_0x2a6949('0x16'),{'type':_0x25ca6c[_0x2a6949('0x10')]}),_0x35d2fb[_0x2a6949('0x1b')](_0x47de23);});},'down':function(){}}; \ No newline at end of file +const a916_0x4f9e=['enqueue','addColumn','query','stringify','util','info','report_jscripty_sessions','then','sequence','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','queryInterface','migration','Removed\x20column\x20%s\x20from\x20%s','STRING','sms_messages','join','dropTable','query\x20%s','finally','removeColumn','addIndex','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','phone','inspect','final','addIndex\x20%s\x20%s\x20%s','catch','exports','sms_interactions','jscripty_projects','prototype','BOOLEAN','UPDATE\x20report_jscripty_sessions\x20SET\x20completed\x20=\x20true','sequelize','changeColumn'];(function(_0x2abfc9,_0x4f9e47){const _0x5cfb7e=function(_0x41b182){while(--_0x41b182){_0x2abfc9['push'](_0x2abfc9['shift']());}};_0x5cfb7e(++_0x4f9e47);}(a916_0x4f9e,0x131));const a916_0x5cfb=function(_0x2abfc9,_0x4f9e47){_0x2abfc9=_0x2abfc9-0x0;let _0x5cfb7e=a916_0x4f9e[_0x2abfc9];return _0x5cfb7e;};const _0x4fa363=a916_0x5cfb;'use strict';const logger=require('../config/logger')(_0x4fa363('0x3')),util=require(_0x4fa363('0x20')),Sequence=function(){};Sequence[_0x4fa363('0x17')][_0x4fa363('0x1c')]=function(_0x41b182){const _0x2758dd=_0x4fa363;this['tail']=this[_0x2758dd('0xd')]?this[_0x2758dd('0xd')][_0x2758dd('0xa')](_0x41b182):_0x41b182();};const Migration=function(_0x33aac9){const _0x2501bc=_0x4fa363;this[_0x2501bc('0x2')]=_0x33aac9,this[_0x2501bc('0x24')]=new Sequence();};Migration[_0x4fa363('0x17')][_0x4fa363('0x1b')]=function(_0x2ff7f9,_0x3c2fd5,_0x5ad000){const _0x46979d=_0x4fa363,_0x559a8d=this;this[_0x46979d('0x24')][_0x46979d('0x1c')](function(){const _0x35b402=_0x46979d;return _0x559a8d[_0x35b402('0x2')][_0x35b402('0x1b')](_0x2ff7f9,_0x3c2fd5,_0x5ad000)['then'](function(){const _0x383de6=_0x35b402;logger[_0x383de6('0x21')](_0x383de6('0xe'),_0x3c2fd5,_0x2ff7f9);})[_0x35b402('0x13')](function(_0x10d4c7){const _0x59fdec=_0x35b402;logger[_0x59fdec('0x21')](JSON['stringify'](_0x10d4c7));});});},Migration['prototype'][_0x4fa363('0x1d')]=function(_0x4a9131,_0x2c8b93,_0x49d038){const _0x974729=_0x4fa363,_0x147833=this;this[_0x974729('0x24')][_0x974729('0x1c')](function(){const _0x1f450b=_0x974729;return _0x147833['queryInterface'][_0x1f450b('0x1d')](_0x4a9131,_0x2c8b93,_0x49d038)[_0x1f450b('0x23')](function(){const _0x538441=_0x1f450b;logger[_0x538441('0x21')](_0x538441('0x0'),_0x2c8b93,_0x4a9131);})['catch'](function(_0x1fda5c){const _0x4dcb9a=_0x1f450b;logger[_0x4dcb9a('0x21')](JSON['stringify'](_0x1fda5c));});});},Migration['prototype']['dropTable']=function(_0x1ba353){const _0x4499fd=_0x4fa363,_0x14a064=this;this[_0x4499fd('0x24')]['enqueue'](function(){const _0x3f2d7b=_0x4499fd;return _0x14a064[_0x3f2d7b('0x2')][_0x3f2d7b('0x8')](_0x1ba353,{'force':!![]})['then'](function(){const _0x46fbc8=_0x3f2d7b;logger[_0x46fbc8('0x21')](_0x46fbc8('0x1'),_0x1ba353);})[_0x3f2d7b('0x13')](function(_0x1595a2){const _0xb689fd=_0x3f2d7b;logger[_0xb689fd('0x21')](JSON[_0xb689fd('0x1f')](_0x1595a2));});});},Migration[_0x4fa363('0x17')][_0x4fa363('0xc')]=function(_0x242021,_0x2f7e31,_0x20eaff){const _0x3ed2de=this;this['sequence']['enqueue'](function(){const _0x183bad=a916_0x5cfb;return _0x3ed2de['queryInterface'][_0x183bad('0xc')](_0x242021,_0x2f7e31,{'indexName':_0x20eaff})[_0x183bad('0x23')](function(){const _0x5c55ad=_0x183bad;logger[_0x5c55ad('0x21')](_0x5c55ad('0x12'),_0x242021,_0x2f7e31[_0x5c55ad('0x7')](','),_0x20eaff);})[_0x183bad('0x13')](function(_0x1b538c){const _0x3d245b=_0x183bad;logger[_0x3d245b('0x21')](JSON[_0x3d245b('0x1f')](_0x1b538c));});});},Migration[_0x4fa363('0x17')][_0x4fa363('0x1e')]=function(_0x455957){const _0x4ee4d6=_0x4fa363,_0x50cf99=this;this[_0x4ee4d6('0x24')][_0x4ee4d6('0x1c')](function(){const _0x1c98f7=_0x4ee4d6;return _0x50cf99['queryInterface'][_0x1c98f7('0x1a')][_0x1c98f7('0x1e')](_0x455957)[_0x1c98f7('0x23')](function(){const _0x2c50c2=_0x1c98f7;logger[_0x2c50c2('0x21')](_0x2c50c2('0x9'),_0x455957);})[_0x1c98f7('0x13')](function(_0x5b9f5a){const _0x1973b0=_0x1c98f7;logger[_0x1973b0('0x21')](JSON[_0x1973b0('0x1f')](_0x5b9f5a));});});},Migration[_0x4fa363('0x17')][_0x4fa363('0xb')]=function(_0x1dabfa,_0x4b042d){const _0x4aa081=_0x4fa363,_0x15cc2c=this;this[_0x4aa081('0x24')]['enqueue'](function(){const _0x465377=_0x4aa081;return _0x15cc2c['queryInterface']['removeColumn'](_0x1dabfa,_0x4b042d)[_0x465377('0x23')](function(){const _0x447f4f=_0x465377;logger[_0x447f4f('0x21')](_0x447f4f('0x4'),_0x4b042d,_0x1dabfa);})['catch'](function(_0x130420){const _0x21aa7d=_0x465377;logger[_0x21aa7d('0x21')](util[_0x21aa7d('0x10')](_0x130420,{'showHidden':![],'depth':null}));});});},Migration[_0x4fa363('0x17')][_0x4fa363('0x11')]=function(_0x161796){const _0x2e87fa=_0x4fa363;this[_0x2e87fa('0x24')]['enqueue'](function(){return _0x161796();});},module[_0x4fa363('0x14')]={'up':function(_0x29729c,_0x3a5525){return new Promise(function(_0x692e41){const _0x581a69=a916_0x5cfb,_0x29d2c0=new Migration(_0x29729c);_0x29d2c0[_0x581a69('0x1d')](_0x581a69('0x16'),'enableUncompleteSave',{'type':_0x3a5525[_0x581a69('0x18')],'defaultValue':!![]}),_0x29d2c0[_0x581a69('0x1d')](_0x581a69('0x22'),'completed',{'type':_0x3a5525[_0x581a69('0x18')],'defaultValue':![]}),_0x29d2c0[_0x581a69('0x1e')](_0x581a69('0x19')),_0x29d2c0['addColumn'](_0x581a69('0x15'),_0x581a69('0xf'),{'type':_0x3a5525[_0x581a69('0x5')]}),_0x29d2c0['addColumn'](_0x581a69('0x6'),'phone',{'type':_0x3a5525[_0x581a69('0x5')]}),_0x29d2c0[_0x581a69('0x11')](_0x692e41);});},'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 a8398c8..1873d02 100644 --- a/server/migrations/2.0.38.js +++ b/server/migrations/2.0.38.js @@ -1 +1 @@ -const a917_0x559b=['changeColumn','\x20Error\x20:','enqueue','migration','join','ls\x20-la\x20/var/opt/motion2/server/files','catch','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','Added\x20column\x20%s\x20to\x20%s','query','remote','stringify','exports','addIndex\x20%s\x20%s\x20%s','queryInterface','then','table\x20dropped\x20%s','addIndex','sequence','query\x20%s','token','inspect','STRING','AttachmentId','tail','Ls\x20:','prototype','child_process','util','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','sms_messages','messageId','Exec\x20chmod','Removed\x20column\x20%s\x20from\x20%s','dropTable','addColumn','tools_trunks','final','info','../config/logger'];(function(_0x2863e8,_0x559b7d){const _0x38f361=function(_0x4a36ef){while(--_0x4a36ef){_0x2863e8['push'](_0x2863e8['shift']());}};_0x38f361(++_0x559b7d);}(a917_0x559b,0xe3));const a917_0x38f3=function(_0x2863e8,_0x559b7d){_0x2863e8=_0x2863e8-0x0;let _0x38f361=a917_0x559b[_0x2863e8];return _0x38f361;};const _0x105a3e=a917_0x38f3;'use strict';const logger=require(_0x105a3e('0x1e'))(_0x105a3e('0x22')),util=require(_0x105a3e('0x11')),exec=require(_0x105a3e('0x10'))['exec'],cmd='chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments',ls=_0x105a3e('0x24'),Sequence=function(){};Sequence[_0x105a3e('0xf')]['enqueue']=function(_0x4a36ef){const _0x2be51b=_0x105a3e;this[_0x2be51b('0xd')]=this[_0x2be51b('0xd')]?this['tail']['finally'](_0x4a36ef):_0x4a36ef();};const Migration=function(_0x2b4cfd){const _0x142fbe=_0x105a3e;this[_0x142fbe('0x3')]=_0x2b4cfd,this['sequence']=new Sequence();};Migration[_0x105a3e('0xf')]['changeColumn']=function(_0x1660e2,_0xbadcfb,_0x3dd561){const _0x1a83a8=_0x105a3e,_0x23f4ea=this;this['sequence'][_0x1a83a8('0x21')](function(){const _0x423866=_0x1a83a8;return _0x23f4ea[_0x423866('0x3')][_0x423866('0x1f')](_0x1660e2,_0xbadcfb,_0x3dd561)[_0x423866('0x4')](function(){const _0x383653=_0x423866;logger[_0x383653('0x1d')](_0x383653('0x13'),_0xbadcfb,_0x1660e2);})[_0x423866('0x25')](function(_0x1fc23d){const _0xbf41a5=_0x423866;logger[_0xbf41a5('0x1d')](JSON[_0xbf41a5('0x0')](_0x1fc23d));});});},Migration[_0x105a3e('0xf')][_0x105a3e('0x1a')]=function(_0x174eb3,_0x56e941,_0x45b189){const _0x424e7a=_0x105a3e,_0x3d76a8=this;this[_0x424e7a('0x7')]['enqueue'](function(){const _0x508b85=_0x424e7a;return _0x3d76a8[_0x508b85('0x3')]['addColumn'](_0x174eb3,_0x56e941,_0x45b189)[_0x508b85('0x4')](function(){const _0x473aff=_0x508b85;logger[_0x473aff('0x1d')](_0x473aff('0x28'),_0x56e941,_0x174eb3);})[_0x508b85('0x25')](function(_0x10b13f){const _0xf2c583=_0x508b85;logger['info'](JSON[_0xf2c583('0x0')](_0x10b13f));});});},Migration[_0x105a3e('0xf')]['dropTable']=function(_0x55d470){const _0x37eb30=_0x105a3e,_0x569c99=this;this[_0x37eb30('0x7')]['enqueue'](function(){const _0x1f6782=_0x37eb30;return _0x569c99[_0x1f6782('0x3')][_0x1f6782('0x19')](_0x55d470,{'force':!![]})[_0x1f6782('0x4')](function(){const _0x7e2424=_0x1f6782;logger[_0x7e2424('0x1d')](_0x7e2424('0x5'),_0x55d470);})[_0x1f6782('0x25')](function(_0x27f419){const _0x1e60a6=_0x1f6782;logger[_0x1e60a6('0x1d')](JSON[_0x1e60a6('0x0')](_0x27f419));});});},Migration[_0x105a3e('0xf')]['addIndex']=function(_0x55a704,_0x2ef7ac,_0x3e2ba4){const _0x12a971=_0x105a3e,_0x309bc4=this;this[_0x12a971('0x7')][_0x12a971('0x21')](function(){const _0x22e968=_0x12a971;return _0x309bc4[_0x22e968('0x3')][_0x22e968('0x6')](_0x55a704,_0x2ef7ac,{'indexName':_0x3e2ba4})[_0x22e968('0x4')](function(){const _0x3fff7a=_0x22e968;logger[_0x3fff7a('0x1d')](_0x3fff7a('0x2'),_0x55a704,_0x2ef7ac[_0x3fff7a('0x23')](','),_0x3e2ba4);})['catch'](function(_0x556812){const _0x5d7242=_0x22e968;logger['info'](JSON[_0x5d7242('0x0')](_0x556812));});});},Migration[_0x105a3e('0xf')][_0x105a3e('0x29')]=function(_0x537c67){const _0x1e3f50=_0x105a3e,_0x4cb0e5=this;this[_0x1e3f50('0x7')][_0x1e3f50('0x21')](function(){const _0x8f6a29=_0x1e3f50;return _0x4cb0e5[_0x8f6a29('0x3')][_0x8f6a29('0x14')][_0x8f6a29('0x29')](_0x537c67)[_0x8f6a29('0x4')](function(){const _0x131f01=_0x8f6a29;logger[_0x131f01('0x1d')](_0x131f01('0x8'),_0x537c67);})[_0x8f6a29('0x25')](function(_0x1a79d6){logger['info'](JSON['stringify'](_0x1a79d6));});});},Migration[_0x105a3e('0xf')][_0x105a3e('0x12')]=function(_0x17b944,_0x1dab11){const _0x510445=_0x105a3e,_0x250b29=this;this[_0x510445('0x7')][_0x510445('0x21')](function(){const _0x1b0c54=_0x510445;return _0x250b29[_0x1b0c54('0x3')][_0x1b0c54('0x12')](_0x17b944,_0x1dab11)[_0x1b0c54('0x4')](function(){const _0x3f27c6=_0x1b0c54;logger['info'](_0x3f27c6('0x18'),_0x1dab11,_0x17b944);})[_0x1b0c54('0x25')](function(_0x572bfe){const _0x19f21d=_0x1b0c54;logger[_0x19f21d('0x1d')](util[_0x19f21d('0xa')](_0x572bfe,{'showHidden':![],'depth':null}));});});},Migration[_0x105a3e('0xf')]['final']=function(_0x3d72df){const _0x4bbda7=_0x105a3e;this[_0x4bbda7('0x7')]['enqueue'](function(){return _0x3d72df();});},module[_0x105a3e('0x1')]={'up':function(_0x3c0586,_0x23290d){return new Promise(function(_0x423aba){const _0x1fc0a5=a917_0x38f3,_0x3fa451=new Migration(_0x3c0586);_0x3fa451[_0x1fc0a5('0x1a')]('sms_accounts',_0x1fc0a5('0x2a'),{'type':_0x23290d[_0x1fc0a5('0xb')]}),_0x3fa451[_0x1fc0a5('0x1a')]('sms_accounts',_0x1fc0a5('0x9'),{'type':_0x23290d[_0x1fc0a5('0xb')]}),_0x3fa451['addColumn'](_0x1fc0a5('0x15'),_0x1fc0a5('0x16'),{'type':_0x23290d[_0x1fc0a5('0xb')]}),exec(cmd,function(_0x11c4cc,_0x299c81,_0x1e3c73){const _0x4ba007=_0x1fc0a5;logger['info'](_0x4ba007('0x17'),_0x4ba007('0x20'),JSON[_0x4ba007('0x0')](_0x11c4cc),_0x299c81,_0x1e3c73),exec(ls,function(_0x5e23fa,_0x500a20,_0x5b3665){const _0x57034a=_0x4ba007;logger['info'](_0x57034a('0xe'),_0x57034a('0x20'),JSON[_0x57034a('0x0')](_0x5e23fa),_0x500a20,_0x5b3665);});}),_0x3fa451[_0x1fc0a5('0x19')](_0x1fc0a5('0x27')),_0x3fa451['addColumn']('fax_messages',_0x1fc0a5('0xc'),{'type':_0x23290d['INTEGER']}),_0x3fa451[_0x1fc0a5('0x29')](_0x1fc0a5('0x26')),_0x3fa451['addColumn'](_0x1fc0a5('0x1b'),'t38pt_udptl',{'type':_0x23290d[_0x1fc0a5('0xb')],'defaultValue':'no'}),_0x3fa451[_0x1fc0a5('0x1c')](_0x423aba);});},'down':function(){}}; \ No newline at end of file +const a917_0x318f=['stringify','STRING','Added\x20column\x20%s\x20to\x20%s','info','enqueue','INTEGER','addColumn','exports','sms_accounts','prototype','child_process','dropTable','Removed\x20column\x20%s\x20from\x20%s','removeColumn','Exec\x20chmod','t38pt_udptl','tools_trunks','final','Ls\x20:','tail','AttachmentId','query','sms_messages','finally','\x20Error\x20:','query\x20%s','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','ls\x20-la\x20/var/opt/motion2/server/files','queryInterface','addIndex','catch','sequence','then','messageId','chown\x20motion:asterisk\x20/var/opt/motion2/server/files/attachments','changeColumn','../config/logger','fax_messages','remote','addIndex\x20%s\x20%s\x20%s'];(function(_0x108730,_0x318fa0){const _0x23d0b1=function(_0x5dd015){while(--_0x5dd015){_0x108730['push'](_0x108730['shift']());}};_0x23d0b1(++_0x318fa0);}(a917_0x318f,0xf3));const a917_0x23d0=function(_0x108730,_0x318fa0){_0x108730=_0x108730-0x0;let _0x23d0b1=a917_0x318f[_0x108730];return _0x23d0b1;};const _0x1a4121=a917_0x23d0;'use strict';const logger=require(_0x1a4121('0x21'))('migration'),util=require('util'),exec=require(_0x1a4121('0x7'))['exec'],cmd=_0x1a4121('0x1f'),ls=_0x1a4121('0x18'),Sequence=function(){};Sequence['prototype'][_0x1a4121('0x1')]=function(_0x5dd015){const _0x2d2e56=_0x1a4121;this[_0x2d2e56('0x10')]=this[_0x2d2e56('0x10')]?this[_0x2d2e56('0x10')][_0x2d2e56('0x14')](_0x5dd015):_0x5dd015();};const Migration=function(_0x3022dc){const _0x1913b5=_0x1a4121;this[_0x1913b5('0x19')]=_0x3022dc,this[_0x1913b5('0x1c')]=new Sequence();};Migration[_0x1a4121('0x6')][_0x1a4121('0x20')]=function(_0x47e151,_0x333505,_0x4c18f0){const _0x1b28ab=_0x1a4121,_0x3439d3=this;this[_0x1b28ab('0x1c')]['enqueue'](function(){const _0x5e9906=_0x1b28ab;return _0x3439d3[_0x5e9906('0x19')][_0x5e9906('0x20')](_0x47e151,_0x333505,_0x4c18f0)[_0x5e9906('0x1d')](function(){const _0x5668fe=_0x5e9906;logger[_0x5668fe('0x0')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x333505,_0x47e151);})['catch'](function(_0x34572d){const _0xe9c97c=_0x5e9906;logger[_0xe9c97c('0x0')](JSON[_0xe9c97c('0x25')](_0x34572d));});});},Migration[_0x1a4121('0x6')]['addColumn']=function(_0x5924f1,_0x434ba9,_0x4cbade){const _0x3e67ce=_0x1a4121,_0xdd7ad0=this;this['sequence'][_0x3e67ce('0x1')](function(){const _0x5049d2=_0x3e67ce;return _0xdd7ad0[_0x5049d2('0x19')]['addColumn'](_0x5924f1,_0x434ba9,_0x4cbade)['then'](function(){const _0x42ca26=_0x5049d2;logger['info'](_0x42ca26('0x27'),_0x434ba9,_0x5924f1);})[_0x5049d2('0x1b')](function(_0xb48e5){logger['info'](JSON['stringify'](_0xb48e5));});});},Migration[_0x1a4121('0x6')][_0x1a4121('0x8')]=function(_0x45aac6){const _0x2d0e61=_0x1a4121,_0x4b8792=this;this[_0x2d0e61('0x1c')][_0x2d0e61('0x1')](function(){const _0x3a7dea=_0x2d0e61;return _0x4b8792[_0x3a7dea('0x19')][_0x3a7dea('0x8')](_0x45aac6,{'force':!![]})['then'](function(){const _0x106624=_0x3a7dea;logger[_0x106624('0x0')]('table\x20dropped\x20%s',_0x45aac6);})[_0x3a7dea('0x1b')](function(_0x1deb8e){const _0x15924d=_0x3a7dea;logger[_0x15924d('0x0')](JSON['stringify'](_0x1deb8e));});});},Migration[_0x1a4121('0x6')][_0x1a4121('0x1a')]=function(_0x32fe7d,_0x4c09b3,_0x4655cc){const _0x4d1a29=_0x1a4121,_0x304ff6=this;this[_0x4d1a29('0x1c')][_0x4d1a29('0x1')](function(){const _0x215ffb=_0x4d1a29;return _0x304ff6[_0x215ffb('0x19')][_0x215ffb('0x1a')](_0x32fe7d,_0x4c09b3,{'indexName':_0x4655cc})[_0x215ffb('0x1d')](function(){const _0x486614=_0x215ffb;logger[_0x486614('0x0')](_0x486614('0x24'),_0x32fe7d,_0x4c09b3['join'](','),_0x4655cc);})[_0x215ffb('0x1b')](function(_0x17b184){const _0x2c16a8=_0x215ffb;logger[_0x2c16a8('0x0')](JSON['stringify'](_0x17b184));});});},Migration[_0x1a4121('0x6')][_0x1a4121('0x12')]=function(_0x1530ad){const _0xd0f139=_0x1a4121,_0x23d816=this;this[_0xd0f139('0x1c')][_0xd0f139('0x1')](function(){const _0x3dd07f=_0xd0f139;return _0x23d816[_0x3dd07f('0x19')]['sequelize'][_0x3dd07f('0x12')](_0x1530ad)['then'](function(){const _0x5cfc15=_0x3dd07f;logger['info'](_0x5cfc15('0x16'),_0x1530ad);})['catch'](function(_0x2732c8){const _0x1742ed=_0x3dd07f;logger[_0x1742ed('0x0')](JSON[_0x1742ed('0x25')](_0x2732c8));});});},Migration[_0x1a4121('0x6')][_0x1a4121('0xa')]=function(_0xf538e6,_0x1fd28f){const _0xa23a1b=_0x1a4121,_0x30db4e=this;this[_0xa23a1b('0x1c')]['enqueue'](function(){const _0x32a63d=_0xa23a1b;return _0x30db4e[_0x32a63d('0x19')][_0x32a63d('0xa')](_0xf538e6,_0x1fd28f)[_0x32a63d('0x1d')](function(){const _0xbef6cf=_0x32a63d;logger[_0xbef6cf('0x0')](_0xbef6cf('0x9'),_0x1fd28f,_0xf538e6);})[_0x32a63d('0x1b')](function(_0x10c328){const _0x20a57b=_0x32a63d;logger[_0x20a57b('0x0')](util['inspect'](_0x10c328,{'showHidden':![],'depth':null}));});});},Migration[_0x1a4121('0x6')][_0x1a4121('0xe')]=function(_0x1bc975){const _0x23f46f=_0x1a4121;this['sequence'][_0x23f46f('0x1')](function(){return _0x1bc975();});},module[_0x1a4121('0x4')]={'up':function(_0x5bc5aa,_0x54992f){return new Promise(function(_0x4ec514){const _0xbc52bd=a917_0x23d0,_0x44578a=new Migration(_0x5bc5aa);_0x44578a[_0xbc52bd('0x3')](_0xbc52bd('0x5'),_0xbc52bd('0x23'),{'type':_0x54992f[_0xbc52bd('0x26')]}),_0x44578a[_0xbc52bd('0x3')]('sms_accounts','token',{'type':_0x54992f['STRING']}),_0x44578a[_0xbc52bd('0x3')](_0xbc52bd('0x13'),_0xbc52bd('0x1e'),{'type':_0x54992f[_0xbc52bd('0x26')]}),exec(cmd,function(_0x51ad16,_0x23ca9a,_0x448a2c){const _0x3d00fa=_0xbc52bd;logger['info'](_0x3d00fa('0xb'),_0x3d00fa('0x15'),JSON[_0x3d00fa('0x25')](_0x51ad16),_0x23ca9a,_0x448a2c),exec(ls,function(_0xf310c0,_0x3d5fe1,_0x13b5d8){const _0x3441c9=_0x3d00fa;logger[_0x3441c9('0x0')](_0x3441c9('0xf'),_0x3441c9('0x15'),JSON['stringify'](_0xf310c0),_0x3d5fe1,_0x13b5d8);});}),_0x44578a['dropTable']('fax_applications'),_0x44578a[_0xbc52bd('0x3')](_0xbc52bd('0x22'),_0xbc52bd('0x11'),{'type':_0x54992f[_0xbc52bd('0x2')]}),_0x44578a[_0xbc52bd('0x12')](_0xbc52bd('0x17')),_0x44578a['addColumn'](_0xbc52bd('0xd'),_0xbc52bd('0xc'),{'type':_0x54992f[_0xbc52bd('0x26')],'defaultValue':'no'}),_0x44578a[_0xbc52bd('0xe')](_0x4ec514);});},'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 0070530..29f542b 100644 --- a/server/migrations/2.0.39.js +++ b/server/migrations/2.0.39.js @@ -1 +1 @@ -const a918_0x5ea4=['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());','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());','exec','sequence','/etc/asterisk/extensions_xcally_contexts.conf','ls\x20-la\x20/var/opt/motion2/server/files','findAll','../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-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());','settings','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());','ENUM','render','import','addColumn','catch','queryInterface','default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','inspect','enqueue','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());','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());','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());','spread','sequelize','moduleSearch','addIndex','root','\x20Error\x20:','utf8','util','DATE','dropTable','removeColumn','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());','changeColumn','prototype','deletedAt','pageTitle','query','xcally-mixmonitor-context','nothing','migration','final','chmod\x20775\x20/var/opt/motion2/server/files/attachments','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());','STRING','join','Removed\x20column\x20%s\x20from\x20%s','api/voiceContext/voiceContext.model','addIndex\x20%s\x20%s\x20%s','info','lead','readFileSync','finally','files/templates/context.ejs','stringify','moduleCreate','contact','then','exports','child_process','Added\x20column\x20%s\x20to\x20%s','int_salesforce_configurations','checkVoiceContexts','path','table\x20dropped\x20%s','Exec\x20chmod','tail'];(function(_0x1f27ac,_0x5ea421){const _0x27edfe=function(_0x366713){while(--_0x366713){_0x1f27ac['push'](_0x1f27ac['shift']());}};_0x27edfe(++_0x5ea421);}(a918_0x5ea4,0x1d4));const a918_0x27ed=function(_0x1f27ac,_0x5ea421){_0x1f27ac=_0x1f27ac-0x0;let _0x27edfe=a918_0x5ea4[_0x1f27ac];return _0x27edfe;};const _0x454074=a918_0x27ed;'use strict';const logger=require(_0x454074('0x1e'))(_0x454074('0x41')),util=require(_0x454074('0x35')),ejs=require('ejs'),fs=require('fs'),path=require(_0x454074('0x12')),exec=require(_0x454074('0xe'))[_0x454074('0x19')],config=require('../config/environment'),Sequence=function(){};Sequence[_0x454074('0x3b')][_0x454074('0x2a')]=function(_0x366713){const _0x3cf1bd=_0x454074;this[_0x3cf1bd('0x15')]=this['tail']?this[_0x3cf1bd('0x15')][_0x3cf1bd('0x7')](_0x366713):_0x366713();};const Migration=function(_0x479244){const _0x29932c=_0x454074;this[_0x29932c('0x27')]=_0x479244,this[_0x29932c('0x1a')]=new Sequence();};Migration['prototype'][_0x454074('0x3a')]=function(_0xbf234d,_0xe1c1fd,_0x1c6f5f){const _0x41703f=_0x454074,_0x4eba7f=this;this['sequence'][_0x41703f('0x2a')](function(){const _0x21017b=_0x41703f;return _0x4eba7f[_0x21017b('0x27')]['changeColumn'](_0xbf234d,_0xe1c1fd,_0x1c6f5f)['then'](function(){const _0x8fc84a=_0x21017b;logger[_0x8fc84a('0x4')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xe1c1fd,_0xbf234d);})['catch'](function(_0x39d27a){const _0x2c1b88=_0x21017b;logger[_0x2c1b88('0x4')](JSON[_0x2c1b88('0x9')](_0x39d27a));});});},Migration['prototype'][_0x454074('0x25')]=function(_0x5b8c31,_0x1bc69c,_0xc92976){const _0x534e4f=_0x454074,_0x563ba2=this;this['sequence'][_0x534e4f('0x2a')](function(){const _0x48a943=_0x534e4f;return _0x563ba2['queryInterface']['addColumn'](_0x5b8c31,_0x1bc69c,_0xc92976)[_0x48a943('0xc')](function(){const _0x27f39b=_0x48a943;logger[_0x27f39b('0x4')](_0x27f39b('0xf'),_0x1bc69c,_0x5b8c31);})['catch'](function(_0x284d9d){const _0x3c4bee=_0x48a943;logger[_0x3c4bee('0x4')](JSON['stringify'](_0x284d9d));});});},Migration[_0x454074('0x3b')][_0x454074('0x37')]=function(_0x13995c){const _0x2dbfed=_0x454074,_0x4239c1=this;this[_0x2dbfed('0x1a')]['enqueue'](function(){const _0x21dd1b=_0x2dbfed;return _0x4239c1[_0x21dd1b('0x27')][_0x21dd1b('0x37')](_0x13995c,{'force':!![]})[_0x21dd1b('0xc')](function(){const _0x13d3f4=_0x21dd1b;logger[_0x13d3f4('0x4')](_0x13d3f4('0x13'),_0x13995c);})[_0x21dd1b('0x26')](function(_0x32fa0a){const _0x5e3560=_0x21dd1b;logger[_0x5e3560('0x4')](JSON[_0x5e3560('0x9')](_0x32fa0a));});});},Migration[_0x454074('0x3b')][_0x454074('0x31')]=function(_0x1cc48d,_0x436ef5,_0x4a0c4b){const _0x4c7578=this;this['sequence']['enqueue'](function(){const _0x4bf3f4=a918_0x27ed;return _0x4c7578['queryInterface'][_0x4bf3f4('0x31')](_0x1cc48d,_0x436ef5,{'indexName':_0x4a0c4b})[_0x4bf3f4('0xc')](function(){const _0x158334=_0x4bf3f4;logger[_0x158334('0x4')](_0x158334('0x3'),_0x1cc48d,_0x436ef5[_0x158334('0x0')](','),_0x4a0c4b);})['catch'](function(_0x590ba6){const _0x431813=_0x4bf3f4;logger[_0x431813('0x4')](JSON[_0x431813('0x9')](_0x590ba6));});});},Migration['prototype'][_0x454074('0x3e')]=function(_0x3b8695){const _0x536458=_0x454074,_0x207f2c=this;this[_0x536458('0x1a')][_0x536458('0x2a')](function(){const _0x4f15eb=_0x536458;return _0x207f2c[_0x4f15eb('0x27')][_0x4f15eb('0x2f')][_0x4f15eb('0x3e')](_0x3b8695)['then'](function(){logger['info']('query\x20%s',_0x3b8695);})['catch'](function(_0x3ad690){const _0x293fa9=_0x4f15eb;logger['info'](JSON[_0x293fa9('0x9')](_0x3ad690));});});},Migration['prototype'][_0x454074('0x38')]=function(_0x5ae859,_0x150e33){const _0x41d6bd=_0x454074,_0x11437c=this;this[_0x41d6bd('0x1a')][_0x41d6bd('0x2a')](function(){const _0x188af6=_0x41d6bd;return _0x11437c[_0x188af6('0x27')]['removeColumn'](_0x5ae859,_0x150e33)['then'](function(){const _0x17e85b=_0x188af6;logger[_0x17e85b('0x4')](_0x17e85b('0x1'),_0x150e33,_0x5ae859);})[_0x188af6('0x26')](function(_0x4a01f1){const _0x35ac66=_0x188af6;logger[_0x35ac66('0x4')](util[_0x35ac66('0x29')](_0x4a01f1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x454074('0x11')]=function(){const _0x327702=_0x454074,_0x52c206=this,_0x192f24=_0x52c206['queryInterface'][_0x327702('0x2f')][_0x327702('0x24')](path[_0x327702('0x0')](config[_0x327702('0x32')],_0x327702('0x2')));this['sequence'][_0x327702('0x2a')](function(){const _0x53d86c=_0x327702;return _0x192f24['findOrCreate']({'where':{'name':_0x53d86c('0x3f')},'defaults':{'name':'xcally-mixmonitor-context','description':_0x53d86c('0x28'),'defaultEntry':!![]}})[_0x53d86c('0x2e')](function(){const _0x4d95bb=_0x53d86c;return _0x192f24[_0x4d95bb('0x1d')]({'raw':!![]});})['then'](function(_0x57510c){const _0x2508b9=_0x53d86c,_0x5e6005=fs[_0x2508b9('0x6')](path['join'](config['root'],_0x2508b9('0x8')),_0x2508b9('0x34')),_0x56243b=ejs[_0x2508b9('0x23')](_0x5e6005,{'contexts':_0x57510c||[]});fs['writeFileSync'](_0x2508b9('0x1b'),_0x56243b),exec('asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22',function(_0x54dbae,_0x23987a,_0x863d12){const _0x247624=_0x2508b9;logger['info'](_0x247624('0x14'),'\x20Error\x20:',JSON[_0x247624('0x9')](_0x54dbae),_0x23987a,_0x863d12);});})['catch'](function(_0x48d9b3){const _0x4d01d2=_0x53d86c;logger[_0x4d01d2('0x4')](JSON['stringify'](_0x48d9b3));});});},Migration['prototype'][_0x454074('0x42')]=function(_0x3aab34){const _0x6cbd3e=_0x454074;this[_0x6cbd3e('0x1a')][_0x6cbd3e('0x2a')](function(){return _0x3aab34();});},module[_0x454074('0xd')]={'up':function(_0x4fc4ea,_0x38c988){return new Promise(function(_0xa323e7){const _0x5109fb=a918_0x27ed,_0x4da41d=new Migration(_0x4fc4ea);_0x4da41d[_0x5109fb('0x25')]('settings',_0x5109fb('0x17'),{'type':_0x38c988['BOOLEAN'],'defaultValue':!![]}),_0x4da41d[_0x5109fb('0x25')](_0x5109fb('0x20'),_0x5109fb('0x3d'),{'type':_0x38c988[_0x5109fb('0x45')]}),_0x4da41d[_0x5109fb('0x11')](),_0x4da41d[_0x5109fb('0x25')](_0x5109fb('0x10'),_0x5109fb('0x30'),{'type':_0x38c988[_0x5109fb('0x22')]('contact_lead',_0x5109fb('0xb'),_0x5109fb('0x5')),'defaultValue':'contact_lead'}),_0x4da41d[_0x5109fb('0x25')](_0x5109fb('0x10'),_0x5109fb('0xa'),{'type':_0x38c988[_0x5109fb('0x22')](_0x5109fb('0x40'),_0x5109fb('0xb'),_0x5109fb('0x5')),'defaultValue':_0x5109fb('0x5')}),_0x4da41d[_0x5109fb('0x3e')]('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());'),_0x4da41d[_0x5109fb('0x3e')](_0x5109fb('0x2c')),_0x4da41d['query'](_0x5109fb('0x44')),_0x4da41d[_0x5109fb('0x3e')](_0x5109fb('0x16')),_0x4da41d[_0x5109fb('0x3e')](_0x5109fb('0x39')),_0x4da41d[_0x5109fb('0x3e')](_0x5109fb('0x21')),_0x4da41d[_0x5109fb('0x3e')](_0x5109fb('0x2b')),_0x4da41d['query'](_0x5109fb('0x2d')),_0x4da41d[_0x5109fb('0x3e')](_0x5109fb('0x1f')),_0x4da41d[_0x5109fb('0x3e')](_0x5109fb('0x18')),_0x4da41d[_0x5109fb('0x3e')]('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());'),exec(_0x5109fb('0x43'),function(_0x1a39d3,_0x3162f3,_0x39129e){const _0x2ddae8=_0x5109fb;logger[_0x2ddae8('0x4')]('Exec\x20chmod',_0x2ddae8('0x33'),JSON[_0x2ddae8('0x9')](_0x1a39d3),_0x3162f3,_0x39129e),exec(_0x2ddae8('0x1c'),function(_0x8c6160,_0x543c18,_0x30a21a){const _0x46b40e=_0x2ddae8;logger['info']('Ls\x20:',_0x46b40e('0x33'),JSON[_0x46b40e('0x9')](_0x8c6160),_0x543c18,_0x30a21a);});}),_0x4da41d[_0x5109fb('0x25')]('cm_contacts',_0x5109fb('0x3c'),{'type':_0x38c988[_0x5109fb('0x36')],'defaultValue':null}),_0x4da41d['final'](_0xa323e7);});},'down':function(){}}; \ No newline at end of file +const a918_0x1ab4=['lead','info','join','int_salesforce_configurations','prototype','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());','utf8','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-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());','migration','import','root','enqueue','final','queryInterface','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());','table\x20dropped\x20%s','\x20Error\x20:','exports','query\x20%s','render','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());','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\x2710\x27,\x20\x27Set\x27,\x20\x27FAXOPT(t38timeout)=${XMF-T38TIMEOUT}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','spread','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-fax\x27,\x20\x271\x27,\x20\x27NoOp\x27,\x20\x27\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','child_process','path','pageTitle','removeColumn','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());','writeFileSync','asterisk\x20-rx\x20\x22reload\x20chan_sip.so\x22','tail','defaultPageTitle','dropTable','ls\x20-la\x20/var/opt/motion2/server/files','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\x274\x27,\x20\x27Set\x27,\x20\x27FAXOPT(ecm)=${XMF-ECM}\x27,\x20\x27system\x27,\x20\x27Fax\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','xcally-mixmonitor-context','exec','sequelize','Ls\x20:','cm_contacts','changeColumn','contact_lead','files/templates/context.ejs','addColumn','sequence','query','stringify','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());','ejs','/etc/asterisk/extensions_xcally_contexts.conf','chmod\x20775\x20/var/opt/motion2/server/files/attachments','contact','Exec\x20chmod','ENUM','moduleCreate','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());','STRING','moduleSearch','addIndex\x20%s\x20%s\x20%s','checkVoiceContexts','addIndex','findAll'];(function(_0x48f5d4,_0x1ab4a6){const _0x28adec=function(_0x7dcf2d){while(--_0x7dcf2d){_0x48f5d4['push'](_0x48f5d4['shift']());}};_0x28adec(++_0x1ab4a6);}(a918_0x1ab4,0x1d6));const a918_0x28ad=function(_0x48f5d4,_0x1ab4a6){_0x48f5d4=_0x48f5d4-0x0;let _0x28adec=a918_0x1ab4[_0x48f5d4];return _0x28adec;};const _0x55cb4c=a918_0x28ad;'use strict';const logger=require('../config/logger')(_0x55cb4c('0x1d')),util=require(_0x55cb4c('0x2a')),ejs=require(_0x55cb4c('0x5')),fs=require('fs'),path=require(_0x55cb4c('0x32')),exec=require(_0x55cb4c('0x31'))[_0x55cb4c('0x3f')],config=require('../config/environment'),Sequence=function(){};Sequence[_0x55cb4c('0x18')][_0x55cb4c('0x20')]=function(_0x7dcf2d){const _0x22bde1=_0x55cb4c;this[_0x22bde1('0x38')]=this['tail']?this[_0x22bde1('0x38')]['finally'](_0x7dcf2d):_0x7dcf2d();};const Migration=function(_0x4513cb){const _0x2366f7=_0x55cb4c;this[_0x2366f7('0x22')]=_0x4513cb,this['sequence']=new Sequence();};Migration[_0x55cb4c('0x18')][_0x55cb4c('0x43')]=function(_0x910387,_0x57ddd2,_0x34b38b){const _0x823fe5=_0x55cb4c,_0x548a09=this;this[_0x823fe5('0x1')]['enqueue'](function(){const _0x577d51=_0x823fe5;return _0x548a09[_0x577d51('0x22')][_0x577d51('0x43')](_0x910387,_0x57ddd2,_0x34b38b)[_0x577d51('0x2f')](function(){const _0x4a4c03=_0x577d51;logger[_0x4a4c03('0x15')](_0x4a4c03('0x2d'),_0x57ddd2,_0x910387);})[_0x577d51('0x1b')](function(_0x193040){const _0x111b2d=_0x577d51;logger[_0x111b2d('0x15')](JSON['stringify'](_0x193040));});});},Migration[_0x55cb4c('0x18')]['addColumn']=function(_0x5dbd87,_0x4da077,_0xb92e1f){const _0x55c6ca=_0x55cb4c,_0x3a45c9=this;this[_0x55c6ca('0x1')][_0x55c6ca('0x20')](function(){const _0x1eec0d=_0x55c6ca;return _0x3a45c9[_0x1eec0d('0x22')][_0x1eec0d('0x0')](_0x5dbd87,_0x4da077,_0xb92e1f)[_0x1eec0d('0x2f')](function(){const _0x8596ec=_0x1eec0d;logger[_0x8596ec('0x15')]('Added\x20column\x20%s\x20to\x20%s',_0x4da077,_0x5dbd87);})[_0x1eec0d('0x1b')](function(_0x20aca3){logger['info'](JSON['stringify'](_0x20aca3));});});},Migration['prototype'][_0x55cb4c('0x3a')]=function(_0x155710){const _0xb9bc11=_0x55cb4c,_0x14d019=this;this[_0xb9bc11('0x1')][_0xb9bc11('0x20')](function(){const _0x3318a4=_0xb9bc11;return _0x14d019[_0x3318a4('0x22')]['dropTable'](_0x155710,{'force':!![]})[_0x3318a4('0x2f')](function(){const _0x47dbac=_0x3318a4;logger[_0x47dbac('0x15')](_0x47dbac('0x24'),_0x155710);})[_0x3318a4('0x1b')](function(_0x906b0c){const _0x387e33=_0x3318a4;logger['info'](JSON[_0x387e33('0x3')](_0x906b0c));});});},Migration[_0x55cb4c('0x18')][_0x55cb4c('0x12')]=function(_0x3cb12c,_0x3793e0,_0x360499){const _0x555fe3=_0x55cb4c,_0x452fbd=this;this[_0x555fe3('0x1')]['enqueue'](function(){const _0x126987=_0x555fe3;return _0x452fbd[_0x126987('0x22')][_0x126987('0x12')](_0x3cb12c,_0x3793e0,{'indexName':_0x360499})[_0x126987('0x2f')](function(){const _0x47fd43=_0x126987;logger[_0x47fd43('0x15')](_0x47fd43('0x10'),_0x3cb12c,_0x3793e0[_0x47fd43('0x16')](','),_0x360499);})[_0x126987('0x1b')](function(_0x20da02){const _0x22b749=_0x126987;logger['info'](JSON[_0x22b749('0x3')](_0x20da02));});});},Migration[_0x55cb4c('0x18')][_0x55cb4c('0x2')]=function(_0x134a90){const _0x4cf7c6=_0x55cb4c,_0x367fb9=this;this[_0x4cf7c6('0x1')][_0x4cf7c6('0x20')](function(){const _0x26a916=_0x4cf7c6;return _0x367fb9[_0x26a916('0x22')][_0x26a916('0x40')][_0x26a916('0x2')](_0x134a90)[_0x26a916('0x2f')](function(){const _0x12c2c0=_0x26a916;logger[_0x12c2c0('0x15')](_0x12c2c0('0x27'),_0x134a90);})[_0x26a916('0x1b')](function(_0x1a406b){const _0x1ba5a0=_0x26a916;logger[_0x1ba5a0('0x15')](JSON[_0x1ba5a0('0x3')](_0x1a406b));});});},Migration['prototype']['removeColumn']=function(_0x50115f,_0xb589b){const _0x4f0c9e=_0x55cb4c,_0x1d4c29=this;this['sequence'][_0x4f0c9e('0x20')](function(){const _0x167f45=_0x4f0c9e;return _0x1d4c29['queryInterface'][_0x167f45('0x34')](_0x50115f,_0xb589b)[_0x167f45('0x2f')](function(){const _0x343295=_0x167f45;logger[_0x343295('0x15')]('Removed\x20column\x20%s\x20from\x20%s',_0xb589b,_0x50115f);})['catch'](function(_0x292159){const _0x29bd20=_0x167f45;logger[_0x29bd20('0x15')](util['inspect'](_0x292159,{'showHidden':![],'depth':null}));});});},Migration[_0x55cb4c('0x18')]['checkVoiceContexts']=function(){const _0x5e2ac8=_0x55cb4c,_0x384bbb=this,_0xc43003=_0x384bbb[_0x5e2ac8('0x22')][_0x5e2ac8('0x40')][_0x5e2ac8('0x1e')](path[_0x5e2ac8('0x16')](config[_0x5e2ac8('0x1f')],_0x5e2ac8('0x3c')));this['sequence'][_0x5e2ac8('0x20')](function(){const _0x476949=_0x5e2ac8;return _0xc43003['findOrCreate']({'where':{'name':_0x476949('0x3e')},'defaults':{'name':_0x476949('0x3e'),'description':'default\x20entry\x20context\x20(DO\x20NOT\x20DELETE)','defaultEntry':!![]}})[_0x476949('0x2e')](function(){const _0x194892=_0x476949;return _0xc43003[_0x194892('0x13')]({'raw':!![]});})[_0x476949('0x2f')](function(_0x2c7f9c){const _0x2ff2e8=_0x476949,_0x16cc95=fs['readFileSync'](path[_0x2ff2e8('0x16')](config[_0x2ff2e8('0x1f')],_0x2ff2e8('0x45')),_0x2ff2e8('0x1a')),_0xd85dd=ejs[_0x2ff2e8('0x28')](_0x16cc95,{'contexts':_0x2c7f9c||[]});fs[_0x2ff2e8('0x36')](_0x2ff2e8('0x6'),_0xd85dd),exec(_0x2ff2e8('0x37'),function(_0x4be194,_0x19f025,_0x4e3b3f){const _0x2bc9fb=_0x2ff2e8;logger[_0x2bc9fb('0x15')]('Exec\x20chmod',_0x2bc9fb('0x25'),JSON[_0x2bc9fb('0x3')](_0x4be194),_0x19f025,_0x4e3b3f);});})['catch'](function(_0x3c4a57){const _0x4d08f6=_0x476949;logger[_0x4d08f6('0x15')](JSON[_0x4d08f6('0x3')](_0x3c4a57));});});},Migration[_0x55cb4c('0x18')]['final']=function(_0x56f962){const _0x8d7aa2=_0x55cb4c;this[_0x8d7aa2('0x1')][_0x8d7aa2('0x20')](function(){return _0x56f962();});},module[_0x55cb4c('0x26')]={'up':function(_0x3bb814,_0x52fb13){return new Promise(function(_0x1b2c7c){const _0x45b998=a918_0x28ad,_0x217945=new Migration(_0x3bb814);_0x217945[_0x45b998('0x0')]('settings',_0x45b998('0x39'),{'type':_0x52fb13[_0x45b998('0x2c')],'defaultValue':!![]}),_0x217945['addColumn']('settings',_0x45b998('0x33'),{'type':_0x52fb13[_0x45b998('0xe')]}),_0x217945[_0x45b998('0x11')](),_0x217945[_0x45b998('0x0')](_0x45b998('0x17'),_0x45b998('0xf'),{'type':_0x52fb13['ENUM'](_0x45b998('0x44'),_0x45b998('0x8'),_0x45b998('0x14')),'defaultValue':_0x45b998('0x44')}),_0x217945[_0x45b998('0x0')]('int_salesforce_configurations',_0x45b998('0xb'),{'type':_0x52fb13[_0x45b998('0xa')](_0x45b998('0xc'),_0x45b998('0x8'),_0x45b998('0x14')),'defaultValue':_0x45b998('0x14')}),_0x217945['query'](_0x45b998('0x30')),_0x217945[_0x45b998('0x2')](_0x45b998('0x35')),_0x217945[_0x45b998('0x2')](_0x45b998('0xd')),_0x217945['query'](_0x45b998('0x3d')),_0x217945[_0x45b998('0x2')](_0x45b998('0x1c')),_0x217945[_0x45b998('0x2')](_0x45b998('0x4')),_0x217945[_0x45b998('0x2')](_0x45b998('0x29')),_0x217945[_0x45b998('0x2')](_0x45b998('0x23')),_0x217945[_0x45b998('0x2')]('INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-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());'),_0x217945[_0x45b998('0x2')](_0x45b998('0x2b')),_0x217945['query'](_0x45b998('0x19')),exec(_0x45b998('0x7'),function(_0x3d2bc6,_0x39ec37,_0x27860d){const _0xebabcd=_0x45b998;logger['info'](_0xebabcd('0x9'),_0xebabcd('0x25'),JSON[_0xebabcd('0x3')](_0x3d2bc6),_0x39ec37,_0x27860d),exec(_0xebabcd('0x3b'),function(_0xf2b3d4,_0x51fcd4,_0x7de6aa){const _0x482626=_0xebabcd;logger[_0x482626('0x15')](_0x482626('0x41'),_0x482626('0x25'),JSON['stringify'](_0xf2b3d4),_0x51fcd4,_0x7de6aa);});}),_0x217945[_0x45b998('0x0')](_0x45b998('0x42'),'deletedAt',{'type':_0x52fb13['DATE'],'defaultValue':null}),_0x217945[_0x45b998('0x21')](_0x1b2c7c);});},'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 eaad64d..bea8a95 100644 --- a/server/migrations/2.0.40.js +++ b/server/migrations/2.0.40.js @@ -1 +1 @@ -var a919_0x3568=['exports'];(function(_0xa1867a,_0x356862){var _0x24dcb7=function(_0x449181){while(--_0x449181){_0xa1867a['push'](_0xa1867a['shift']());}};_0x24dcb7(++_0x356862);}(a919_0x3568,0x85));var a919_0x24dc=function(_0xa1867a,_0x356862){_0xa1867a=_0xa1867a-0x0;var _0x24dcb7=a919_0x3568[_0xa1867a];return _0x24dcb7;};var _0x31665b=a919_0x24dc;'use strict';module[_0x31665b('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a919_0x2384=['exports'];(function(_0x24e07f,_0x238443){var _0x213bab=function(_0xc2929f){while(--_0xc2929f){_0x24e07f['push'](_0x24e07f['shift']());}};_0x213bab(++_0x238443);}(a919_0x2384,0x1ae));var a919_0x213b=function(_0x24e07f,_0x238443){_0x24e07f=_0x24e07f-0x0;var _0x213bab=a919_0x2384[_0x24e07f];return _0x213bab;};var _0x3e61a6=a919_0x213b;'use strict';module[_0x3e61a6('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 c35775d..92cc5ce 100644 --- a/server/migrations/2.0.41.js +++ b/server/migrations/2.0.41.js @@ -1 +1 @@ -const a920_0x168a=['join','finally','final','chat_websites','agentAvatar','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s','migration','../config/logger','BOOLEAN','prototype','sequelize','chat_messages','dropTable','TEXT','Changed\x20column\x20%s\x20in\x20table\x20%s','info','catch','changeColumn','queryInterface','values','table\x20dropped\x20%s','chat_interactions','sequence','addColumn','STRING','tail','then','serverUrl','exports','enqueue','addIndex','removeColumn','stringify','inspect','query'];(function(_0x4d89c4,_0x168a59){const _0x36d1e6=function(_0x4406ca){while(--_0x4406ca){_0x4d89c4['push'](_0x4d89c4['shift']());}};_0x36d1e6(++_0x168a59);}(a920_0x168a,0x190));const a920_0x36d1=function(_0x4d89c4,_0x168a59){_0x4d89c4=_0x4d89c4-0x0;let _0x36d1e6=a920_0x168a[_0x4d89c4];return _0x36d1e6;};const _0x58222c=a920_0x36d1;'use strict';const logger=require(_0x58222c('0x4'))(_0x58222c('0x3')),util=require('util'),Sequence=function(){};Sequence[_0x58222c('0x6')][_0x58222c('0x1a')]=function(_0x4406ca){const _0x3c8265=_0x58222c;this[_0x3c8265('0x16')]=this['tail']?this[_0x3c8265('0x16')][_0x3c8265('0x21')](_0x4406ca):_0x4406ca();};const Migration=function(_0xe16807){const _0x5f1846=_0x58222c;this[_0x5f1846('0xf')]=_0xe16807,this[_0x5f1846('0x13')]=new Sequence();};Migration[_0x58222c('0x6')][_0x58222c('0xe')]=function(_0x4419c2,_0x449187,_0x2795a1){const _0x595ac0=_0x58222c,_0x4b04f9=this;this['sequence'][_0x595ac0('0x1a')](function(){const _0x251836=_0x595ac0;return _0x4b04f9['queryInterface'][_0x251836('0xe')](_0x4419c2,_0x449187,_0x2795a1)[_0x251836('0x17')](function(){const _0x5cd682=_0x251836;logger[_0x5cd682('0xc')](_0x5cd682('0xb'),_0x449187,_0x4419c2);})['catch'](function(_0x2f2361){logger['info'](JSON['stringify'](_0x2f2361));});});},Migration[_0x58222c('0x6')][_0x58222c('0x14')]=function(_0x330033,_0x3165a2,_0x23ac93){const _0x49b7ae=_0x58222c,_0x39f685=this;this['sequence'][_0x49b7ae('0x1a')](function(){const _0x49a324=_0x49b7ae;return _0x39f685[_0x49a324('0xf')][_0x49a324('0x14')](_0x330033,_0x3165a2,_0x23ac93)[_0x49a324('0x17')](function(){const _0x829828=_0x49a324;logger[_0x829828('0xc')](_0x829828('0x1'),_0x3165a2,_0x330033);})[_0x49a324('0xd')](function(_0x142735){const _0x4f4caa=_0x49a324;logger[_0x4f4caa('0xc')](JSON[_0x4f4caa('0x1d')](_0x142735));});});},Migration[_0x58222c('0x6')][_0x58222c('0x9')]=function(_0x9b300a){const _0x30f5c0=_0x58222c,_0x5761d7=this;this['sequence'][_0x30f5c0('0x1a')](function(){const _0x2fcb73=_0x30f5c0;return _0x5761d7[_0x2fcb73('0xf')][_0x2fcb73('0x9')](_0x9b300a,{'force':!![]})[_0x2fcb73('0x17')](function(){const _0x1ae16f=_0x2fcb73;logger[_0x1ae16f('0xc')](_0x1ae16f('0x11'),_0x9b300a);})[_0x2fcb73('0xd')](function(_0x12d17a){const _0x4a0587=_0x2fcb73;logger['info'](JSON[_0x4a0587('0x1d')](_0x12d17a));});});},Migration[_0x58222c('0x6')][_0x58222c('0x1b')]=function(_0x518f76,_0x3f38a5,_0x5422dd){const _0x5b0f1d=_0x58222c,_0x60a8e1=this;this[_0x5b0f1d('0x13')][_0x5b0f1d('0x1a')](function(){const _0x36d538=_0x5b0f1d;return _0x60a8e1['queryInterface'][_0x36d538('0x1b')](_0x518f76,_0x3f38a5,{'indexName':_0x5422dd})[_0x36d538('0x17')](function(){const _0xc03459=_0x36d538;logger[_0xc03459('0xc')]('addIndex\x20%s\x20%s\x20%s',_0x518f76,_0x3f38a5[_0xc03459('0x20')](','),_0x5422dd);})[_0x36d538('0xd')](function(_0x135ca5){const _0x396459=_0x36d538;logger[_0x396459('0xc')](JSON['stringify'](_0x135ca5));});});},Migration[_0x58222c('0x6')][_0x58222c('0x1f')]=function(_0x176ba8){const _0x35382f=_0x58222c,_0x5c6534=this;this[_0x35382f('0x13')][_0x35382f('0x1a')](function(){const _0x4cc7ce=_0x35382f;return _0x5c6534['queryInterface'][_0x4cc7ce('0x7')][_0x4cc7ce('0x1f')](_0x176ba8)[_0x4cc7ce('0x17')](function(){const _0x51600c=_0x4cc7ce;logger[_0x51600c('0xc')]('query\x20%s',_0x176ba8);})['catch'](function(_0x213450){const _0xedee82=_0x4cc7ce;logger[_0xedee82('0xc')](JSON[_0xedee82('0x1d')](_0x213450));});});},Migration[_0x58222c('0x6')]['removeColumn']=function(_0x2d23b1,_0x22e72e){const _0x2e8c70=_0x58222c,_0x272a4a=this;this[_0x2e8c70('0x13')]['enqueue'](function(){const _0x26e688=_0x2e8c70;return _0x272a4a[_0x26e688('0xf')][_0x26e688('0x1c')](_0x2d23b1,_0x22e72e)[_0x26e688('0x17')](function(){const _0x1f0e93=_0x26e688;logger['info'](_0x1f0e93('0x2'),_0x22e72e,_0x2d23b1);})[_0x26e688('0xd')](function(_0x29d205){const _0x334510=_0x26e688;logger['info'](util[_0x334510('0x1e')](_0x29d205,{'showHidden':![],'depth':null}));});});},Migration[_0x58222c('0x6')][_0x58222c('0x22')]=function(_0x5c1908){const _0x382d28=_0x58222c;this[_0x382d28('0x13')][_0x382d28('0x1a')](function(){return _0x5c1908();});},module[_0x58222c('0x19')]={'up':function(_0x17e873,_0x2a6a83){return new Promise(function(_0x2f0c3f){const _0x34814a=a920_0x36d1,_0x1f81ce=new Migration(_0x17e873);_0x1f81ce[_0x34814a('0x14')]('int_desk_accounts',_0x34814a('0x18'),{'type':_0x2a6a83[_0x34814a('0x15')]}),_0x1f81ce[_0x34814a('0x14')](_0x34814a('0x12'),'formData',{'type':_0x2a6a83[_0x34814a('0xa')]('long')}),_0x1f81ce[_0x34814a('0x14')](_0x34814a('0x8'),'secret',{'type':_0x2a6a83[_0x34814a('0x5')],'defaultValue':![]}),_0x1f81ce[_0x34814a('0x14')](_0x34814a('0x23'),_0x34814a('0x0'),{'type':_0x2a6a83[_0x34814a('0xa')]}),_0x1f81ce[_0x34814a('0x14')](_0x34814a('0x23'),'showAgentAvatar',{'type':_0x2a6a83['BOOLEAN'],'defaultValue':![]}),_0x1f81ce[_0x34814a('0xe')]('cm_custom_fields',_0x34814a('0x10'),{'type':_0x2a6a83[_0x34814a('0xa')]('long')}),_0x1f81ce['final'](_0x2f0c3f);});},'down':function(){}}; \ No newline at end of file +const a920_0xc1db=['addIndex','dropTable','STRING','query\x20%s','migration','values','changeColumn','serverUrl','exports','sequence','../config/logger','secret','tail','join','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','Removed\x20column\x20%s\x20from\x20%s','info','int_desk_accounts','util','chat_interactions','BOOLEAN','addIndex\x20%s\x20%s\x20%s','final','agentAvatar','then','formData','chat_websites','showAgentAvatar','queryInterface','sequelize','query','catch','table\x20dropped\x20%s','TEXT','removeColumn','finally','addColumn','stringify','long','enqueue'];(function(_0x25f9e9,_0xc1db7c){const _0x15c595=function(_0x277037){while(--_0x277037){_0x25f9e9['push'](_0x25f9e9['shift']());}};_0x15c595(++_0xc1db7c);}(a920_0xc1db,0x1a4));const a920_0x15c5=function(_0x25f9e9,_0xc1db7c){_0x25f9e9=_0x25f9e9-0x0;let _0x15c595=a920_0xc1db[_0x25f9e9];return _0x15c595;};const _0x568dc7=a920_0x15c5;'use strict';const logger=require(_0x568dc7('0x0'))(_0x568dc7('0x23')),util=require(_0x568dc7('0x9')),Sequence=function(){};Sequence[_0x568dc7('0x5')][_0x568dc7('0x1e')]=function(_0x277037){const _0x10ea26=_0x568dc7;this[_0x10ea26('0x2')]=this[_0x10ea26('0x2')]?this[_0x10ea26('0x2')][_0x10ea26('0x1a')](_0x277037):_0x277037();};const Migration=function(_0x219d76){const _0xb3beaa=_0x568dc7;this[_0xb3beaa('0x13')]=_0x219d76,this[_0xb3beaa('0x28')]=new Sequence();};Migration['prototype'][_0x568dc7('0x25')]=function(_0x543b9a,_0x27c865,_0x611154){const _0x317ca0=_0x568dc7,_0x4d0037=this;this[_0x317ca0('0x28')][_0x317ca0('0x1e')](function(){const _0x2eeaba=_0x317ca0;return _0x4d0037[_0x2eeaba('0x13')][_0x2eeaba('0x25')](_0x543b9a,_0x27c865,_0x611154)[_0x2eeaba('0xf')](function(){const _0x48319d=_0x2eeaba;logger[_0x48319d('0x7')](_0x48319d('0x4'),_0x27c865,_0x543b9a);})[_0x2eeaba('0x16')](function(_0x5bfa7f){const _0x59687b=_0x2eeaba;logger[_0x59687b('0x7')](JSON['stringify'](_0x5bfa7f));});});},Migration[_0x568dc7('0x5')][_0x568dc7('0x1b')]=function(_0x293c90,_0x4765b3,_0x2eec8e){const _0xf31cbc=_0x568dc7,_0x25790c=this;this[_0xf31cbc('0x28')]['enqueue'](function(){const _0x2202ba=_0xf31cbc;return _0x25790c['queryInterface'][_0x2202ba('0x1b')](_0x293c90,_0x4765b3,_0x2eec8e)[_0x2202ba('0xf')](function(){const _0x37d7c3=_0x2202ba;logger[_0x37d7c3('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0x4765b3,_0x293c90);})[_0x2202ba('0x16')](function(_0x27e97f){const _0x4c9c72=_0x2202ba;logger['info'](JSON[_0x4c9c72('0x1c')](_0x27e97f));});});},Migration[_0x568dc7('0x5')][_0x568dc7('0x20')]=function(_0x430ca6){const _0xe029a7=_0x568dc7,_0x2a687d=this;this[_0xe029a7('0x28')][_0xe029a7('0x1e')](function(){const _0x3775ad=_0xe029a7;return _0x2a687d[_0x3775ad('0x13')]['dropTable'](_0x430ca6,{'force':!![]})[_0x3775ad('0xf')](function(){const _0x77a2d0=_0x3775ad;logger[_0x77a2d0('0x7')](_0x77a2d0('0x17'),_0x430ca6);})[_0x3775ad('0x16')](function(_0x5513b7){const _0x5b817b=_0x3775ad;logger[_0x5b817b('0x7')](JSON[_0x5b817b('0x1c')](_0x5513b7));});});},Migration['prototype'][_0x568dc7('0x1f')]=function(_0x1c39fd,_0x21aff1,_0x192493){const _0x236be0=_0x568dc7,_0x43dccc=this;this[_0x236be0('0x28')][_0x236be0('0x1e')](function(){const _0x8136e2=_0x236be0;return _0x43dccc[_0x8136e2('0x13')][_0x8136e2('0x1f')](_0x1c39fd,_0x21aff1,{'indexName':_0x192493})[_0x8136e2('0xf')](function(){const _0x354c4b=_0x8136e2;logger[_0x354c4b('0x7')](_0x354c4b('0xc'),_0x1c39fd,_0x21aff1[_0x354c4b('0x3')](','),_0x192493);})['catch'](function(_0x3c404d){const _0x5e6c71=_0x8136e2;logger[_0x5e6c71('0x7')](JSON[_0x5e6c71('0x1c')](_0x3c404d));});});},Migration['prototype'][_0x568dc7('0x15')]=function(_0x5d8722){const _0x4c3e2a=this;this['sequence']['enqueue'](function(){const _0x25730d=a920_0x15c5;return _0x4c3e2a[_0x25730d('0x13')][_0x25730d('0x14')]['query'](_0x5d8722)[_0x25730d('0xf')](function(){const _0x658806=_0x25730d;logger['info'](_0x658806('0x22'),_0x5d8722);})['catch'](function(_0x487437){const _0x2add5f=_0x25730d;logger['info'](JSON[_0x2add5f('0x1c')](_0x487437));});});},Migration[_0x568dc7('0x5')][_0x568dc7('0x19')]=function(_0x334ffd,_0x1be5dd){const _0x1fd338=_0x568dc7,_0x1517d0=this;this[_0x1fd338('0x28')][_0x1fd338('0x1e')](function(){const _0x16ff26=_0x1fd338;return _0x1517d0['queryInterface'][_0x16ff26('0x19')](_0x334ffd,_0x1be5dd)[_0x16ff26('0xf')](function(){const _0x940cb=_0x16ff26;logger['info'](_0x940cb('0x6'),_0x1be5dd,_0x334ffd);})[_0x16ff26('0x16')](function(_0x5a7d75){const _0x32aaff=_0x16ff26;logger[_0x32aaff('0x7')](util['inspect'](_0x5a7d75,{'showHidden':![],'depth':null}));});});},Migration[_0x568dc7('0x5')]['final']=function(_0x22fe71){const _0x1956b8=_0x568dc7;this[_0x1956b8('0x28')][_0x1956b8('0x1e')](function(){return _0x22fe71();});},module[_0x568dc7('0x27')]={'up':function(_0x14a2da,_0x1cccc7){return new Promise(function(_0x484f8b){const _0x3fedd1=a920_0x15c5,_0x3f71dc=new Migration(_0x14a2da);_0x3f71dc[_0x3fedd1('0x1b')](_0x3fedd1('0x8'),_0x3fedd1('0x26'),{'type':_0x1cccc7[_0x3fedd1('0x21')]}),_0x3f71dc[_0x3fedd1('0x1b')](_0x3fedd1('0xa'),_0x3fedd1('0x10'),{'type':_0x1cccc7['TEXT'](_0x3fedd1('0x1d'))}),_0x3f71dc[_0x3fedd1('0x1b')]('chat_messages',_0x3fedd1('0x1'),{'type':_0x1cccc7[_0x3fedd1('0xb')],'defaultValue':![]}),_0x3f71dc[_0x3fedd1('0x1b')](_0x3fedd1('0x11'),_0x3fedd1('0xe'),{'type':_0x1cccc7[_0x3fedd1('0x18')]}),_0x3f71dc[_0x3fedd1('0x1b')](_0x3fedd1('0x11'),_0x3fedd1('0x12'),{'type':_0x1cccc7[_0x3fedd1('0xb')],'defaultValue':![]}),_0x3f71dc['changeColumn']('cm_custom_fields',_0x3fedd1('0x24'),{'type':_0x1cccc7['TEXT']('long')}),_0x3f71dc[_0x3fedd1('0xd')](_0x484f8b);});},'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 c0a78b8..537589b 100644 --- a/server/migrations/2.0.42.js +++ b/server/migrations/2.0.42.js @@ -1 +1 @@ -const a921_0x4c8b=['Removed\x20column\x20%s\x20from\x20%s','number','query\x20%s','../config/logger','join','migration','final','root','getCustomFields','length','color','then','enqueue','STRING','queryInterface','notIn','api/cmCustomField/cmCustomField.model','addIndex','util','changeColumn','table\x20dropped\x20%s','info','sequence','users','exports','cm_contacts','finally','catch','stringify','prototype','fax_messages','addColumn','findAll','BOOLEAN','dropTable','addIndex\x20%s\x20%s\x20%s','TEXT','path','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','inspect','Added\x20column\x20%s\x20to\x20%s','removeColumn','cf_','sequelize'];(function(_0x32b087,_0x4c8bc0){const _0x4dd710=function(_0x4d525c){while(--_0x4d525c){_0x32b087['push'](_0x32b087['shift']());}};_0x4dd710(++_0x4c8bc0);}(a921_0x4c8b,0x165));const a921_0x4dd7=function(_0x32b087,_0x4c8bc0){_0x32b087=_0x32b087-0x0;let _0x4dd710=a921_0x4c8b[_0x32b087];return _0x4dd710;};const _0x2851fb=a921_0x4dd7;'use strict';const logger=require(_0x2851fb('0x6'))(_0x2851fb('0x8')),util=require(_0x2851fb('0x15')),path=require(_0x2851fb('0x28')),config=require('../config/environment'),{Op}=require(_0x2851fb('0x2')),Sequence=function(){};Sequence['prototype'][_0x2851fb('0xf')]=function(_0x4d525c){const _0x59dc6a=_0x2851fb;this[_0x59dc6a('0x2a')]=this[_0x59dc6a('0x2a')]?this[_0x59dc6a('0x2a')][_0x59dc6a('0x1d')](_0x4d525c):_0x4d525c();};const Migration=function(_0xa9fdc){const _0x4f21ba=_0x2851fb;this['queryInterface']=_0xa9fdc,this[_0x4f21ba('0x19')]=new Sequence();};Migration[_0x2851fb('0x20')][_0x2851fb('0x16')]=function(_0x35cf51,_0x22703d,_0x4e6c48){const _0x2a76c8=_0x2851fb,_0xd6f959=this;this[_0x2a76c8('0x19')]['enqueue'](function(){const _0x38960d=_0x2a76c8;return _0xd6f959[_0x38960d('0x11')][_0x38960d('0x16')](_0x35cf51,_0x22703d,_0x4e6c48)['then'](function(){const _0x33e3b5=_0x38960d;logger['info'](_0x33e3b5('0x29'),_0x22703d,_0x35cf51);})[_0x38960d('0x1e')](function(_0x38794a){const _0x5b1acc=_0x38960d;logger[_0x5b1acc('0x18')](JSON['stringify'](_0x38794a));});});},Migration[_0x2851fb('0x20')][_0x2851fb('0x22')]=function(_0x53d474,_0x3f1df2,_0x2230c1){const _0x4dcceb=_0x2851fb,_0xb79940=this;this[_0x4dcceb('0x19')][_0x4dcceb('0xf')](function(){const _0x12267a=_0x4dcceb;return _0xb79940[_0x12267a('0x11')]['addColumn'](_0x53d474,_0x3f1df2,_0x2230c1)[_0x12267a('0xe')](function(){const _0x339fbd=_0x12267a;logger['info'](_0x339fbd('0x2c'),_0x3f1df2,_0x53d474);})[_0x12267a('0x1e')](function(_0x1ea947){const _0x1f6fd3=_0x12267a;logger[_0x1f6fd3('0x18')](JSON['stringify'](_0x1ea947));});});},Migration[_0x2851fb('0x20')][_0x2851fb('0x25')]=function(_0x124011){const _0x4a9417=_0x2851fb,_0x2b3d59=this;this['sequence'][_0x4a9417('0xf')](function(){const _0x5b6873=_0x4a9417;return _0x2b3d59[_0x5b6873('0x11')][_0x5b6873('0x25')](_0x124011,{'force':!![]})[_0x5b6873('0xe')](function(){const _0x43e313=_0x5b6873;logger[_0x43e313('0x18')](_0x43e313('0x17'),_0x124011);})[_0x5b6873('0x1e')](function(_0x203bc7){const _0x2d92f6=_0x5b6873;logger[_0x2d92f6('0x18')](JSON['stringify'](_0x203bc7));});});},Migration[_0x2851fb('0x20')][_0x2851fb('0x14')]=function(_0x5ec447,_0x32398f,_0x48c533){const _0x330934=_0x2851fb,_0x4bf31e=this;this[_0x330934('0x19')][_0x330934('0xf')](function(){const _0x14b604=_0x330934;return _0x4bf31e['queryInterface'][_0x14b604('0x14')](_0x5ec447,_0x32398f,{'indexName':_0x48c533})[_0x14b604('0xe')](function(){const _0x26c9fe=_0x14b604;logger[_0x26c9fe('0x18')](_0x26c9fe('0x26'),_0x5ec447,_0x32398f[_0x26c9fe('0x7')](','),_0x48c533);})[_0x14b604('0x1e')](function(_0x16fa34){const _0x5ef146=_0x14b604;logger[_0x5ef146('0x18')](JSON[_0x5ef146('0x1f')](_0x16fa34));});});},Migration[_0x2851fb('0x20')]['query']=function(_0x139ace){const _0x377730=_0x2851fb,_0x3de721=this;this[_0x377730('0x19')][_0x377730('0xf')](function(){const _0x36da81=_0x377730;return _0x3de721[_0x36da81('0x11')]['sequelize']['query'](_0x139ace)[_0x36da81('0xe')](function(){const _0x155261=_0x36da81;logger[_0x155261('0x18')](_0x155261('0x5'),_0x139ace);})['catch'](function(_0x41796b){const _0x2cc490=_0x36da81;logger[_0x2cc490('0x18')](JSON['stringify'](_0x41796b));});});},Migration[_0x2851fb('0x20')][_0x2851fb('0x0')]=function(_0x390160,_0x548235){const _0x6bf836=_0x2851fb,_0x1bbd06=this;this[_0x6bf836('0x19')][_0x6bf836('0xf')](function(){const _0x5c49a5=_0x6bf836;return _0x1bbd06[_0x5c49a5('0x11')][_0x5c49a5('0x0')](_0x390160,_0x548235)[_0x5c49a5('0xe')](function(){const _0x2ef69e=_0x5c49a5;logger[_0x2ef69e('0x18')](_0x2ef69e('0x3'),_0x548235,_0x390160);})['catch'](function(_0x4250b1){const _0x21ab6c=_0x5c49a5;logger[_0x21ab6c('0x18')](util[_0x21ab6c('0x2b')](_0x4250b1,{'showHidden':![],'depth':null}));});});},Migration[_0x2851fb('0x20')][_0x2851fb('0xb')]=function(){const _0x4b7fb2=_0x2851fb,_0x5a2b01=this,_0x2ec811=_0x5a2b01['queryInterface']['sequelize']['import'](path['join'](config[_0x4b7fb2('0xa')],_0x4b7fb2('0x13')));return _0x2ec811[_0x4b7fb2('0x23')]({'where':{'type':{[Op[_0x4b7fb2('0x12')]]:[_0x4b7fb2('0x4'),'switch']}},'attributes':['id']})[_0x4b7fb2('0xe')](function(_0x3b1f1b){return _0x3b1f1b;})['catch'](function(_0x2e38bf){const _0x5a7b01=_0x4b7fb2;logger[_0x5a7b01('0x18')](JSON[_0x5a7b01('0x1f')](_0x2e38bf));});},Migration[_0x2851fb('0x20')][_0x2851fb('0x9')]=function(_0x1b0f98){const _0x5a5332=_0x2851fb;this['sequence'][_0x5a5332('0xf')](function(){return _0x1b0f98();});},module[_0x2851fb('0x1b')]={'up':function(_0x2eec2e,_0xc02c89){return new Promise(function(_0x24d423){const _0x3faccc=a921_0x4dd7,_0x4b0082=new Migration(_0x2eec2e);_0x4b0082[_0x3faccc('0x22')]('tools_tags',_0x3faccc('0xd'),{'type':_0xc02c89[_0x3faccc('0x10')],'defaultValue':'#0091EA'}),_0x4b0082['addColumn']('openchannel_messages','secret',{'type':_0xc02c89[_0x3faccc('0x24')],'defaultValue':![]}),_0x4b0082[_0x3faccc('0xb')]()[_0x3faccc('0xe')](function(_0x3b3f4f){const _0x83f021=_0x3faccc;if(_0x3b3f4f)for(let _0x48e0c1=0x0,_0x53b888=_0x3b3f4f[_0x83f021('0xc')];_0x48e0c1<_0x53b888;_0x48e0c1++){_0x4b0082['changeColumn'](_0x83f021('0x1c'),_0x83f021('0x1')+_0x3b3f4f[_0x48e0c1]['id'],{'type':_0xc02c89['TEXT']});}}),_0x4b0082[_0x3faccc('0x22')](_0x3faccc('0x21'),'failMessage',{'type':_0xc02c89[_0x3faccc('0x27')]}),_0x4b0082[_0x3faccc('0x22')](_0x3faccc('0x1a'),'extensionMonitor',{'type':_0xc02c89[_0x3faccc('0x10')],'defaultValue':''}),_0x4b0082[_0x3faccc('0x9')](_0x24d423);});},'down':function(){}}; \ No newline at end of file +const a921_0x5974=['query','removeColumn','prototype','notIn','addColumn','extensionMonitor','switch','enqueue','exports','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','cf_','stringify','BOOLEAN','then','fax_messages','getCustomFields','changeColumn','util','migration','inspect','finally','findAll','query\x20%s','path','addIndex','catch','number','sequelize','sequence','addIndex\x20%s\x20%s\x20%s','info','dropTable','TEXT','STRING','join','tools_tags','tail','secret','queryInterface','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','color'];(function(_0x29f78b,_0x597442){const _0x365a3e=function(_0x541200){while(--_0x541200){_0x29f78b['push'](_0x29f78b['shift']());}};_0x365a3e(++_0x597442);}(a921_0x5974,0xe5));const a921_0x365a=function(_0x29f78b,_0x597442){_0x29f78b=_0x29f78b-0x0;let _0x365a3e=a921_0x5974[_0x29f78b];return _0x365a3e;};const _0x45e57f=a921_0x365a;'use strict';const logger=require('../config/logger')(_0x45e57f('0x5')),util=require(_0x45e57f('0x4')),path=require(_0x45e57f('0xa')),config=require('../config/environment'),{Op}=require(_0x45e57f('0xe')),Sequence=function(){};Sequence[_0x45e57f('0x1f')]['enqueue']=function(_0x541200){const _0x26173c=_0x45e57f;this[_0x26173c('0x17')]=this[_0x26173c('0x17')]?this[_0x26173c('0x17')][_0x26173c('0x7')](_0x541200):_0x541200();};const Migration=function(_0x5d86f7){const _0x5ed132=_0x45e57f;this[_0x5ed132('0x19')]=_0x5d86f7,this[_0x5ed132('0xf')]=new Sequence();};Migration[_0x45e57f('0x1f')][_0x45e57f('0x3')]=function(_0x957895,_0x46743d,_0x25b3f3){const _0xdc3f66=_0x45e57f,_0x4e3536=this;this[_0xdc3f66('0xf')][_0xdc3f66('0x24')](function(){const _0x2bc47c=_0xdc3f66;return _0x4e3536[_0x2bc47c('0x19')]['changeColumn'](_0x957895,_0x46743d,_0x25b3f3)[_0x2bc47c('0x0')](function(){const _0x2b04b7=_0x2bc47c;logger[_0x2b04b7('0x11')](_0x2b04b7('0x1a'),_0x46743d,_0x957895);})[_0x2bc47c('0xc')](function(_0x9b3a34){const _0x156c7a=_0x2bc47c;logger[_0x156c7a('0x11')](JSON[_0x156c7a('0x29')](_0x9b3a34));});});},Migration['prototype']['addColumn']=function(_0x3874ce,_0x19b022,_0x4bd54b){const _0xb2160f=_0x45e57f,_0x34ba0c=this;this[_0xb2160f('0xf')]['enqueue'](function(){const _0xf31943=_0xb2160f;return _0x34ba0c[_0xf31943('0x19')][_0xf31943('0x21')](_0x3874ce,_0x19b022,_0x4bd54b)[_0xf31943('0x0')](function(){const _0x513fe7=_0xf31943;logger['info'](_0x513fe7('0x27'),_0x19b022,_0x3874ce);})['catch'](function(_0x4affbd){const _0x33e1df=_0xf31943;logger[_0x33e1df('0x11')](JSON['stringify'](_0x4affbd));});});},Migration[_0x45e57f('0x1f')][_0x45e57f('0x12')]=function(_0x39958c){const _0x382970=_0x45e57f,_0x5e7671=this;this['sequence'][_0x382970('0x24')](function(){const _0x50072b=_0x382970;return _0x5e7671[_0x50072b('0x19')][_0x50072b('0x12')](_0x39958c,{'force':!![]})[_0x50072b('0x0')](function(){const _0x2d5f88=_0x50072b;logger['info'](_0x2d5f88('0x26'),_0x39958c);})['catch'](function(_0x189630){const _0x423fa2=_0x50072b;logger[_0x423fa2('0x11')](JSON['stringify'](_0x189630));});});},Migration[_0x45e57f('0x1f')][_0x45e57f('0xb')]=function(_0x14f7c0,_0x3d62b8,_0x36fd06){const _0x37f357=_0x45e57f,_0x5e0406=this;this['sequence'][_0x37f357('0x24')](function(){const _0x556d47=_0x37f357;return _0x5e0406[_0x556d47('0x19')][_0x556d47('0xb')](_0x14f7c0,_0x3d62b8,{'indexName':_0x36fd06})[_0x556d47('0x0')](function(){const _0x26c26f=_0x556d47;logger[_0x26c26f('0x11')](_0x26c26f('0x10'),_0x14f7c0,_0x3d62b8[_0x26c26f('0x15')](','),_0x36fd06);})[_0x556d47('0xc')](function(_0x3ae476){const _0x214347=_0x556d47;logger['info'](JSON[_0x214347('0x29')](_0x3ae476));});});},Migration[_0x45e57f('0x1f')]['query']=function(_0x431e7e){const _0x30aff1=_0x45e57f,_0x9a8ab3=this;this[_0x30aff1('0xf')][_0x30aff1('0x24')](function(){const _0x244885=_0x30aff1;return _0x9a8ab3['queryInterface']['sequelize'][_0x244885('0x1d')](_0x431e7e)[_0x244885('0x0')](function(){const _0x1563fa=_0x244885;logger[_0x1563fa('0x11')](_0x1563fa('0x9'),_0x431e7e);})[_0x244885('0xc')](function(_0xe6bf99){const _0x8a65ae=_0x244885;logger[_0x8a65ae('0x11')](JSON[_0x8a65ae('0x29')](_0xe6bf99));});});},Migration[_0x45e57f('0x1f')]['removeColumn']=function(_0x1519bb,_0x451e29){const _0x63b909=_0x45e57f,_0x364e6b=this;this[_0x63b909('0xf')][_0x63b909('0x24')](function(){const _0x4322ea=_0x63b909;return _0x364e6b[_0x4322ea('0x19')][_0x4322ea('0x1e')](_0x1519bb,_0x451e29)[_0x4322ea('0x0')](function(){const _0x4fb9d9=_0x4322ea;logger[_0x4fb9d9('0x11')](_0x4fb9d9('0x1b'),_0x451e29,_0x1519bb);})[_0x4322ea('0xc')](function(_0x40f615){const _0x3c5ad5=_0x4322ea;logger['info'](util[_0x3c5ad5('0x6')](_0x40f615,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x45e57f('0x2')]=function(){const _0x11d921=_0x45e57f,_0x17c035=this,_0x4fa987=_0x17c035[_0x11d921('0x19')]['sequelize']['import'](path[_0x11d921('0x15')](config['root'],'api/cmCustomField/cmCustomField.model'));return _0x4fa987[_0x11d921('0x8')]({'where':{'type':{[Op[_0x11d921('0x20')]]:[_0x11d921('0xd'),_0x11d921('0x23')]}},'attributes':['id']})[_0x11d921('0x0')](function(_0x25ac09){return _0x25ac09;})['catch'](function(_0x33dd14){const _0x346b69=_0x11d921;logger[_0x346b69('0x11')](JSON[_0x346b69('0x29')](_0x33dd14));});},Migration[_0x45e57f('0x1f')]['final']=function(_0x284fad){const _0x57f805=_0x45e57f;this['sequence'][_0x57f805('0x24')](function(){return _0x284fad();});},module[_0x45e57f('0x25')]={'up':function(_0x12fbb3,_0x19798a){return new Promise(function(_0xc6cf99){const _0x259284=a921_0x365a,_0x5d2c17=new Migration(_0x12fbb3);_0x5d2c17[_0x259284('0x21')](_0x259284('0x16'),_0x259284('0x1c'),{'type':_0x19798a[_0x259284('0x14')],'defaultValue':'#0091EA'}),_0x5d2c17['addColumn']('openchannel_messages',_0x259284('0x18'),{'type':_0x19798a[_0x259284('0x2a')],'defaultValue':![]}),_0x5d2c17['getCustomFields']()['then'](function(_0x5fb883){const _0x4f9260=_0x259284;if(_0x5fb883)for(let _0x61ead0=0x0,_0x3abb54=_0x5fb883['length'];_0x61ead0<_0x3abb54;_0x61ead0++){_0x5d2c17[_0x4f9260('0x3')]('cm_contacts',_0x4f9260('0x28')+_0x5fb883[_0x61ead0]['id'],{'type':_0x19798a[_0x4f9260('0x13')]});}}),_0x5d2c17[_0x259284('0x21')](_0x259284('0x1'),'failMessage',{'type':_0x19798a['TEXT']}),_0x5d2c17[_0x259284('0x21')]('users',_0x259284('0x22'),{'type':_0x19798a[_0x259284('0x14')],'defaultValue':''}),_0x5d2c17['final'](_0xc6cf99);});},'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 a308391..136765e 100644 --- a/server/migrations/2.0.43.js +++ b/server/migrations/2.0.43.js @@ -1 +1 @@ -const a922_0x16b2=['exports','finally','join','tail','stringify','changeColumn','../config/logger','mail_messages','then','addIndex','dropTable','addIndex\x20%s\x20%s\x20%s','final','catch','sequelize','prototype','sequence','Removed\x20column\x20%s\x20from\x20%s','inspect','query\x20%s','info','addColumn','migration','Added\x20column\x20%s\x20to\x20%s','util','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','secret','query','enqueue','removeColumn'];(function(_0x243740,_0x16b287){const _0x1a6b48=function(_0x356f0e){while(--_0x356f0e){_0x243740['push'](_0x243740['shift']());}};_0x1a6b48(++_0x16b287);}(a922_0x16b2,0x1f2));const a922_0x1a6b=function(_0x243740,_0x16b287){_0x243740=_0x243740-0x0;let _0x1a6b48=a922_0x16b2[_0x243740];return _0x1a6b48;};const _0x3951d9=a922_0x1a6b;'use strict';const logger=require(_0x3951d9('0x14'))(_0x3951d9('0x4')),util=require(_0x3951d9('0x6')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x356f0e){const _0xac569c=_0x3951d9;this[_0xac569c('0x11')]=this[_0xac569c('0x11')]?this['tail'][_0xac569c('0xf')](_0x356f0e):_0x356f0e();};const Migration=function(_0x321f15){this['queryInterface']=_0x321f15,this['sequence']=new Sequence();};Migration[_0x3951d9('0x1d')][_0x3951d9('0x13')]=function(_0x50200e,_0x2a8f2d,_0x2892cc){const _0x45e994=_0x3951d9,_0x102925=this;this[_0x45e994('0x1e')][_0x45e994('0xc')](function(){const _0x4d05dc=_0x45e994;return _0x102925[_0x4d05dc('0x9')][_0x4d05dc('0x13')](_0x50200e,_0x2a8f2d,_0x2892cc)[_0x4d05dc('0x16')](function(){const _0x214f1d=_0x4d05dc;logger[_0x214f1d('0x2')](_0x214f1d('0x8'),_0x2a8f2d,_0x50200e);})[_0x4d05dc('0x1b')](function(_0x45327f){const _0x2ff35c=_0x4d05dc;logger[_0x2ff35c('0x2')](JSON['stringify'](_0x45327f));});});},Migration[_0x3951d9('0x1d')][_0x3951d9('0x3')]=function(_0xe58ee3,_0x7503bb,_0x4cffc9){const _0x15a927=_0x3951d9,_0x570b06=this;this[_0x15a927('0x1e')][_0x15a927('0xc')](function(){const _0x59d719=_0x15a927;return _0x570b06[_0x59d719('0x9')][_0x59d719('0x3')](_0xe58ee3,_0x7503bb,_0x4cffc9)[_0x59d719('0x16')](function(){const _0xffa6a1=_0x59d719;logger[_0xffa6a1('0x2')](_0xffa6a1('0x5'),_0x7503bb,_0xe58ee3);})[_0x59d719('0x1b')](function(_0x3d88ab){const _0x1acc2a=_0x59d719;logger[_0x1acc2a('0x2')](JSON['stringify'](_0x3d88ab));});});},Migration[_0x3951d9('0x1d')][_0x3951d9('0x18')]=function(_0x7b20d){const _0x75cb1e=_0x3951d9,_0x2c355a=this;this[_0x75cb1e('0x1e')][_0x75cb1e('0xc')](function(){const _0x15d222=_0x75cb1e;return _0x2c355a[_0x15d222('0x9')][_0x15d222('0x18')](_0x7b20d,{'force':!![]})[_0x15d222('0x16')](function(){const _0x55d2c4=_0x15d222;logger[_0x55d2c4('0x2')]('table\x20dropped\x20%s',_0x7b20d);})[_0x15d222('0x1b')](function(_0x793f56){logger['info'](JSON['stringify'](_0x793f56));});});},Migration['prototype']['addIndex']=function(_0x28ea46,_0x1ad2c7,_0x2d5de3){const _0x193577=_0x3951d9,_0x27ac37=this;this[_0x193577('0x1e')][_0x193577('0xc')](function(){const _0x533f29=_0x193577;return _0x27ac37[_0x533f29('0x9')][_0x533f29('0x17')](_0x28ea46,_0x1ad2c7,{'indexName':_0x2d5de3})[_0x533f29('0x16')](function(){const _0x4dc69b=_0x533f29;logger[_0x4dc69b('0x2')](_0x4dc69b('0x19'),_0x28ea46,_0x1ad2c7[_0x4dc69b('0x10')](','),_0x2d5de3);})[_0x533f29('0x1b')](function(_0x21b075){const _0x396e8d=_0x533f29;logger['info'](JSON[_0x396e8d('0x12')](_0x21b075));});});},Migration[_0x3951d9('0x1d')][_0x3951d9('0xb')]=function(_0x192937){const _0x1e7843=_0x3951d9,_0x1a5d82=this;this[_0x1e7843('0x1e')]['enqueue'](function(){const _0x58fe75=_0x1e7843;return _0x1a5d82['queryInterface'][_0x58fe75('0x1c')][_0x58fe75('0xb')](_0x192937)[_0x58fe75('0x16')](function(){const _0x3dc37d=_0x58fe75;logger[_0x3dc37d('0x2')](_0x3dc37d('0x1'),_0x192937);})[_0x58fe75('0x1b')](function(_0x1b04ac){const _0xcdbb30=_0x58fe75;logger[_0xcdbb30('0x2')](JSON[_0xcdbb30('0x12')](_0x1b04ac));});});},Migration[_0x3951d9('0x1d')]['removeColumn']=function(_0x271370,_0x356ca3){const _0xb4ea59=_0x3951d9,_0x4bda67=this;this[_0xb4ea59('0x1e')][_0xb4ea59('0xc')](function(){const _0x47cbfa=_0xb4ea59;return _0x4bda67['queryInterface'][_0x47cbfa('0xd')](_0x271370,_0x356ca3)[_0x47cbfa('0x16')](function(){const _0x2341fc=_0x47cbfa;logger[_0x2341fc('0x2')](_0x2341fc('0x1f'),_0x356ca3,_0x271370);})[_0x47cbfa('0x1b')](function(_0x5df08a){const _0x28ca73=_0x47cbfa;logger[_0x28ca73('0x2')](util[_0x28ca73('0x0')](_0x5df08a,{'showHidden':![],'depth':null}));});});},Migration[_0x3951d9('0x1d')]['final']=function(_0x1effb2){const _0x495d45=_0x3951d9;this[_0x495d45('0x1e')][_0x495d45('0xc')](function(){return _0x1effb2();});},module[_0x3951d9('0xe')]={'up':function(_0x351bfe,_0x3ec21d){return new Promise(function(_0xed9d28){const _0x3844cf=a922_0x1a6b,_0x470f2b=new Migration(_0x351bfe);_0x470f2b[_0x3844cf('0x3')](_0x3844cf('0x15'),_0x3844cf('0xa'),{'type':_0x3ec21d[_0x3844cf('0x7')],'defaultValue':![]}),_0x470f2b[_0x3844cf('0x1a')](_0xed9d28);});},'down':function(){}}; \ No newline at end of file +const a922_0x2fb1=['final','prototype','migration','removeColumn','addIndex','tail','query\x20%s','changeColumn','queryInterface','query','addColumn','inspect','info','join','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','util','Added\x20column\x20%s\x20to\x20%s','addIndex\x20%s\x20%s\x20%s','sequelize','then','catch','stringify','sequence'];(function(_0x563e1f,_0x2fb10d){const _0x5aaa92=function(_0x97a89a){while(--_0x97a89a){_0x563e1f['push'](_0x563e1f['shift']());}};_0x5aaa92(++_0x2fb10d);}(a922_0x2fb1,0x99));const a922_0x5aaa=function(_0x563e1f,_0x2fb10d){_0x563e1f=_0x563e1f-0x0;let _0x5aaa92=a922_0x2fb1[_0x563e1f];return _0x5aaa92;};const _0x53e3eb=a922_0x5aaa;'use strict';const logger=require('../config/logger')(_0x53e3eb('0x18')),util=require(_0x53e3eb('0xe')),Sequence=function(){};Sequence['prototype'][_0x53e3eb('0xd')]=function(_0x97a89a){const _0x1ebb44=_0x53e3eb;this[_0x1ebb44('0x2')]=this['tail']?this['tail']['finally'](_0x97a89a):_0x97a89a();};const Migration=function(_0xf4263){const _0x1201ce=_0x53e3eb;this['queryInterface']=_0xf4263,this[_0x1201ce('0x15')]=new Sequence();};Migration[_0x53e3eb('0x17')][_0x53e3eb('0x4')]=function(_0xb7e7,_0x139066,_0x17bfd2){const _0x1b0674=_0x53e3eb,_0x48493f=this;this['sequence'][_0x1b0674('0xd')](function(){const _0x4031c5=_0x1b0674;return _0x48493f['queryInterface'][_0x4031c5('0x4')](_0xb7e7,_0x139066,_0x17bfd2)[_0x4031c5('0x12')](function(){const _0x219a8d=_0x4031c5;logger[_0x219a8d('0x9')](_0x219a8d('0xc'),_0x139066,_0xb7e7);})[_0x4031c5('0x13')](function(_0x570621){logger['info'](JSON['stringify'](_0x570621));});});},Migration[_0x53e3eb('0x17')]['addColumn']=function(_0xef77f3,_0x294b93,_0x1aca5f){const _0x5d0c68=_0x53e3eb,_0x131b00=this;this[_0x5d0c68('0x15')][_0x5d0c68('0xd')](function(){const _0x41d242=_0x5d0c68;return _0x131b00[_0x41d242('0x5')][_0x41d242('0x7')](_0xef77f3,_0x294b93,_0x1aca5f)[_0x41d242('0x12')](function(){const _0x19a808=_0x41d242;logger[_0x19a808('0x9')](_0x19a808('0xf'),_0x294b93,_0xef77f3);})[_0x41d242('0x13')](function(_0x7e3dbf){logger['info'](JSON['stringify'](_0x7e3dbf));});});},Migration[_0x53e3eb('0x17')][_0x53e3eb('0xb')]=function(_0x1fe1fb){const _0x345911=_0x53e3eb,_0x3376e3=this;this[_0x345911('0x15')][_0x345911('0xd')](function(){const _0x4bd65a=_0x345911;return _0x3376e3[_0x4bd65a('0x5')]['dropTable'](_0x1fe1fb,{'force':!![]})['then'](function(){const _0x20e956=_0x4bd65a;logger[_0x20e956('0x9')]('table\x20dropped\x20%s',_0x1fe1fb);})['catch'](function(_0x119d79){const _0x3cd73c=_0x4bd65a;logger[_0x3cd73c('0x9')](JSON[_0x3cd73c('0x14')](_0x119d79));});});},Migration['prototype'][_0x53e3eb('0x1')]=function(_0x1ab291,_0x24647f,_0x4534fc){const _0xd924f4=_0x53e3eb,_0x129fda=this;this[_0xd924f4('0x15')][_0xd924f4('0xd')](function(){const _0x572d1d=_0xd924f4;return _0x129fda[_0x572d1d('0x5')][_0x572d1d('0x1')](_0x1ab291,_0x24647f,{'indexName':_0x4534fc})[_0x572d1d('0x12')](function(){const _0x1c4356=_0x572d1d;logger[_0x1c4356('0x9')](_0x1c4356('0x10'),_0x1ab291,_0x24647f[_0x1c4356('0xa')](','),_0x4534fc);})[_0x572d1d('0x13')](function(_0x2d0c7d){const _0xe41874=_0x572d1d;logger[_0xe41874('0x9')](JSON[_0xe41874('0x14')](_0x2d0c7d));});});},Migration[_0x53e3eb('0x17')][_0x53e3eb('0x6')]=function(_0x51d10f){const _0x5daef1=_0x53e3eb,_0x297797=this;this[_0x5daef1('0x15')][_0x5daef1('0xd')](function(){const _0x34ce49=_0x5daef1;return _0x297797[_0x34ce49('0x5')][_0x34ce49('0x11')][_0x34ce49('0x6')](_0x51d10f)[_0x34ce49('0x12')](function(){const _0x14cc21=_0x34ce49;logger[_0x14cc21('0x9')](_0x14cc21('0x3'),_0x51d10f);})['catch'](function(_0x108aa1){const _0x249b84=_0x34ce49;logger[_0x249b84('0x9')](JSON[_0x249b84('0x14')](_0x108aa1));});});},Migration['prototype'][_0x53e3eb('0x0')]=function(_0x43c0ca,_0x23416c){const _0x1194df=_0x53e3eb,_0x11125f=this;this['sequence'][_0x1194df('0xd')](function(){const _0x173b9c=_0x1194df;return _0x11125f[_0x173b9c('0x5')][_0x173b9c('0x0')](_0x43c0ca,_0x23416c)['then'](function(){const _0x3ae755=_0x173b9c;logger[_0x3ae755('0x9')]('Removed\x20column\x20%s\x20from\x20%s',_0x23416c,_0x43c0ca);})[_0x173b9c('0x13')](function(_0x390b93){const _0x5c71e4=_0x173b9c;logger[_0x5c71e4('0x9')](util[_0x5c71e4('0x8')](_0x390b93,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x53e3eb('0x16')]=function(_0x3203cf){const _0x2a4038=_0x53e3eb;this[_0x2a4038('0x15')][_0x2a4038('0xd')](function(){return _0x3203cf();});},module['exports']={'up':function(_0x378218,_0x351489){return new Promise(function(_0x438ae3){const _0x367d42=a922_0x5aaa,_0x42f6b3=new Migration(_0x378218);_0x42f6b3[_0x367d42('0x7')]('mail_messages','secret',{'type':_0x351489['BOOLEAN'],'defaultValue':![]}),_0x42f6b3[_0x367d42('0x16')](_0x438ae3);});},'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 09d9f37..fe90b81 100644 --- a/server/migrations/2.0.44.js +++ b/server/migrations/2.0.44.js @@ -1 +1 @@ -const a923_0x402a=['ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','dropTable','sms_interactions','enqueue','ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name','mail_interactions','inspect','removeColumn','read1stAt','substatusAt','ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)','STRING','sequence','openchannel_interactions','readAt','mail_messages','chat_interactions','fax_interactions','name','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','chat_messages','catch','query','fax_messages','threadId','finally','voice_dispositions','stringify','table\x20dropped\x20%s','externalUrl','queryInterface','Removed\x20column\x20%s\x20from\x20%s','closingQuestion','join','chat_websites','ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)','addColumn','fax_dispositions','info','openchannel_dispositions','sequelize','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','sms_messages','changeColumn','then','DATE','tail','substatus','sms_dispositions','nameAndAccount','prototype','ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)'];(function(_0x304ad1,_0x402a0e){const _0x173ef3=function(_0x19e7c5){while(--_0x19e7c5){_0x304ad1['push'](_0x304ad1['shift']());}};_0x173ef3(++_0x402a0e);}(a923_0x402a,0xd0));const a923_0x173e=function(_0x304ad1,_0x402a0e){_0x304ad1=_0x304ad1-0x0;let _0x173ef3=a923_0x402a[_0x304ad1];return _0x173ef3;};const _0x4af761=a923_0x173e;'use strict';const logger=require('../config/logger')('migration'),util=require('util'),Sequence=function(){};Sequence[_0x4af761('0x6')][_0x4af761('0xb')]=function(_0x19e7c5){const _0x950a9c=_0x4af761;this['tail']=this[_0x950a9c('0x2')]?this['tail'][_0x950a9c('0x23')](_0x19e7c5):_0x19e7c5();};const Migration=function(_0x4da674){const _0x1ce67e=_0x4af761;this[_0x1ce67e('0x28')]=_0x4da674,this['sequence']=new Sequence();};Migration[_0x4af761('0x6')]['changeColumn']=function(_0x82bba8,_0x40c406,_0x13e499){const _0x9d108=this;this['sequence']['enqueue'](function(){const _0x179317=a923_0x173e;return _0x9d108[_0x179317('0x28')][_0x179317('0x35')](_0x82bba8,_0x40c406,_0x13e499)['then'](function(){const _0x4fb177=_0x179317;logger['info'](_0x4fb177('0x1c'),_0x40c406,_0x82bba8);})[_0x179317('0x1f')](function(_0x2d93a3){const _0x5182cf=_0x179317;logger[_0x5182cf('0x30')](JSON[_0x5182cf('0x25')](_0x2d93a3));});});},Migration[_0x4af761('0x6')]['addColumn']=function(_0x449119,_0x153d94,_0x11b5a0){const _0x465659=_0x4af761,_0xb2254=this;this[_0x465659('0x14')][_0x465659('0xb')](function(){const _0x30003b=_0x465659;return _0xb2254[_0x30003b('0x28')][_0x30003b('0x2e')](_0x449119,_0x153d94,_0x11b5a0)[_0x30003b('0x0')](function(){const _0x2d0d59=_0x30003b;logger[_0x2d0d59('0x30')]('Added\x20column\x20%s\x20to\x20%s',_0x153d94,_0x449119);})[_0x30003b('0x1f')](function(_0x3b5cc0){const _0x36b8d7=_0x30003b;logger[_0x36b8d7('0x30')](JSON['stringify'](_0x3b5cc0));});});},Migration[_0x4af761('0x6')][_0x4af761('0x9')]=function(_0x21deaf){const _0x57fcf1=_0x4af761,_0xefff82=this;this[_0x57fcf1('0x14')][_0x57fcf1('0xb')](function(){const _0x5bcc30=_0x57fcf1;return _0xefff82[_0x5bcc30('0x28')][_0x5bcc30('0x9')](_0x21deaf,{'force':!![]})[_0x5bcc30('0x0')](function(){const _0x3d8e4d=_0x5bcc30;logger[_0x3d8e4d('0x30')](_0x3d8e4d('0x26'),_0x21deaf);})[_0x5bcc30('0x1f')](function(_0x1a1c1b){const _0x15e719=_0x5bcc30;logger[_0x15e719('0x30')](JSON['stringify'](_0x1a1c1b));});});},Migration[_0x4af761('0x6')][_0x4af761('0x1b')]=function(_0x4e96d0,_0x7ea0e1,_0x33288f){const _0x124ca4=_0x4af761,_0x2e1a58=this;this[_0x124ca4('0x14')][_0x124ca4('0xb')](function(){const _0x2298ba=_0x124ca4;return _0x2e1a58[_0x2298ba('0x28')][_0x2298ba('0x1b')](_0x4e96d0,_0x7ea0e1,{'indexName':_0x33288f})[_0x2298ba('0x0')](function(){const _0x342671=_0x2298ba;logger[_0x342671('0x30')]('addIndex\x20%s\x20%s\x20%s',_0x4e96d0,_0x7ea0e1[_0x342671('0x2b')](','),_0x33288f);})[_0x2298ba('0x1f')](function(_0xca6987){const _0x7565a6=_0x2298ba;logger[_0x7565a6('0x30')](JSON[_0x7565a6('0x25')](_0xca6987));});});},Migration['prototype']['query']=function(_0x9717e2){const _0x3078cc=_0x4af761,_0x2afaa5=this;this[_0x3078cc('0x14')][_0x3078cc('0xb')](function(){const _0x53d3a5=_0x3078cc;return _0x2afaa5[_0x53d3a5('0x28')][_0x53d3a5('0x32')][_0x53d3a5('0x20')](_0x9717e2)[_0x53d3a5('0x0')](function(){logger['info']('query\x20%s',_0x9717e2);})['catch'](function(_0x1880aa){const _0x2c43f1=_0x53d3a5;logger['info'](JSON[_0x2c43f1('0x25')](_0x1880aa));});});},Migration[_0x4af761('0x6')][_0x4af761('0xf')]=function(_0x7a0836,_0x3a9b41){const _0x2d2dd6=_0x4af761,_0x4fad31=this;this[_0x2d2dd6('0x14')][_0x2d2dd6('0xb')](function(){const _0x4d882e=_0x2d2dd6;return _0x4fad31[_0x4d882e('0x28')][_0x4d882e('0xf')](_0x7a0836,_0x3a9b41)[_0x4d882e('0x0')](function(){const _0x1f0b13=_0x4d882e;logger[_0x1f0b13('0x30')](_0x1f0b13('0x29'),_0x3a9b41,_0x7a0836);})['catch'](function(_0x241a02){const _0x1e40e8=_0x4d882e;logger[_0x1e40e8('0x30')](util[_0x1e40e8('0xe')](_0x241a02,{'showHidden':![],'depth':null}));});});},Migration[_0x4af761('0x6')]['final']=function(_0x4de004){const _0x480acf=_0x4af761;this['sequence'][_0x480acf('0xb')](function(){return _0x4de004();});},module[_0x4af761('0x1d')]={'up':function(_0x340196,_0x4d2748){return new Promise(function(_0x2287ec){const _0x40519f=a923_0x173e,_0x369adc=new Migration(_0x340196);_0x369adc['addColumn'](_0x40519f('0x2c'),_0x40519f('0x2a'),{'type':_0x4d2748[_0x40519f('0x13')],'defaultValue':_0x40519f('0x33')}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0x18'),_0x40519f('0x10'),{'type':_0x4d2748[_0x40519f('0x1')]}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0x1e'),_0x40519f('0x16'),{'type':_0x4d2748[_0x40519f('0x1')]}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0x19'),_0x40519f('0x10'),{'type':_0x4d2748['DATE']}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0x21'),_0x40519f('0x16'),{'type':_0x4d2748[_0x40519f('0x1')]}),_0x369adc['addColumn'](_0x40519f('0x15'),_0x40519f('0x10'),{'type':_0x4d2748[_0x40519f('0x1')]}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0x15'),_0x40519f('0x22'),{'type':_0x4d2748[_0x40519f('0x13')]}),_0x369adc['addColumn'](_0x40519f('0x15'),_0x40519f('0x27'),{'type':_0x4d2748[_0x40519f('0x13')]}),_0x369adc[_0x40519f('0x2e')]('openchannel_messages',_0x40519f('0x16'),{'type':_0x4d2748[_0x40519f('0x1')]}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0xd'),_0x40519f('0x10'),{'type':_0x4d2748[_0x40519f('0x1')]}),_0x369adc['addColumn']('mail_interactions',_0x40519f('0x3'),{'type':_0x4d2748[_0x40519f('0x13')](0x3c)}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0xd'),_0x40519f('0x11'),{'type':_0x4d2748[_0x40519f('0x1')]}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0x17'),_0x40519f('0x16'),{'type':_0x4d2748['DATE']}),_0x369adc[_0x40519f('0x2e')](_0x40519f('0xa'),_0x40519f('0x10'),{'type':_0x4d2748[_0x40519f('0x1')]}),_0x369adc['addColumn'](_0x40519f('0x34'),_0x40519f('0x16'),{'type':_0x4d2748['DATE']}),_0x369adc[_0x40519f('0x35')]('chat_dispositions','name',{'type':_0x4d2748[_0x40519f('0x13')],'unique':_0x40519f('0x5'),'allowNull':![]}),_0x369adc['changeColumn'](_0x40519f('0x2f'),_0x40519f('0x1a'),{'type':_0x4d2748['STRING'],'unique':_0x40519f('0x5'),'allowNull':![]}),_0x369adc[_0x40519f('0x35')](_0x40519f('0x31'),_0x40519f('0x1a'),{'type':_0x4d2748[_0x40519f('0x13')],'unique':_0x40519f('0x5'),'allowNull':![]}),_0x369adc[_0x40519f('0x35')](_0x40519f('0x4'),_0x40519f('0x1a'),{'type':_0x4d2748[_0x40519f('0x13')],'unique':'nameAndAccount','allowNull':![]}),_0x369adc[_0x40519f('0x35')](_0x40519f('0x24'),_0x40519f('0x1a'),{'type':_0x4d2748['STRING'],'unique':_0x40519f('0x5'),'allowNull':![]}),_0x369adc[_0x40519f('0x20')](_0x40519f('0x2d')),_0x369adc[_0x40519f('0x20')](_0x40519f('0x12')),_0x369adc[_0x40519f('0x20')]('ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)'),_0x369adc['query'](_0x40519f('0x7')),_0x369adc[_0x40519f('0x20')](_0x40519f('0x8')),_0x369adc[_0x40519f('0x35')]('mail_dispositions',_0x40519f('0x1a'),{'type':_0x4d2748[_0x40519f('0x13')],'unique':_0x40519f('0x5'),'allowNull':![]}),_0x369adc[_0x40519f('0x20')](_0x40519f('0xc')),_0x369adc[_0x40519f('0x20')]('ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)'),_0x369adc['final'](_0x2287ec);});},'down':function(){}}; \ No newline at end of file +const a923_0x4e79=['name','chat_interactions','final','sequelize','mail_messages','Do\x20you\x20want\x20to\x20close\x20the\x20interaction?','Added\x20column\x20%s\x20to\x20%s','finally','sms_dispositions','mail_dispositions','voice_dispositions','exports','join','../config/logger','prototype','substatus','migration','chat_messages','ALTER\x20TABLE\x20mail_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20MailAccountId)','mail_interactions','sms_interactions','chat_websites','query','Removed\x20column\x20%s\x20from\x20%s','catch','readAt','info','inspect','queryInterface','ALTER\x20TABLE\x20fax_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20FaxAccountId)','ALTER\x20TABLE\x20openchannel_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20OpenchannelAccountId)','read1stAt','DATE','openchannel_interactions','openchannel_dispositions','query\x20%s','dropTable','STRING','addIndex\x20%s\x20%s\x20%s','ALTER\x20TABLE\x20voice_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ListId)','addColumn','then','substatusAt','openchannel_messages','changeColumn','stringify','removeColumn','externalUrl','addIndex','ALTER\x20TABLE\x20sms_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20SmsAccountId)','sequence','tail','enqueue','nameAndAccount','ALTER\x20TABLE\x20mail_dispositions\x20DROP\x20INDEX\x20name','ALTER\x20TABLE\x20chat_dispositions\x20add\x20UNIQUE\x20INDEX\x20nameAndAccount\x20(name,\x20ChatAccountId)'];(function(_0x39da37,_0x4e7919){const _0x241a27=function(_0x24e476){while(--_0x24e476){_0x39da37['push'](_0x39da37['shift']());}};_0x241a27(++_0x4e7919);}(a923_0x4e79,0xc8));const a923_0x241a=function(_0x39da37,_0x4e7919){_0x39da37=_0x39da37-0x0;let _0x241a27=a923_0x4e79[_0x39da37];return _0x241a27;};const _0x404c55=a923_0x241a;'use strict';const logger=require(_0x404c55('0x25'))(_0x404c55('0x28')),util=require('util'),Sequence=function(){};Sequence[_0x404c55('0x26')]['enqueue']=function(_0x24e476){const _0x1c1736=_0x404c55;this[_0x1c1736('0x13')]=this[_0x1c1736('0x13')]?this[_0x1c1736('0x13')][_0x1c1736('0x1f')](_0x24e476):_0x24e476();};const Migration=function(_0x515034){const _0xb3c109=_0x404c55;this[_0xb3c109('0x34')]=_0x515034,this['sequence']=new Sequence();};Migration[_0x404c55('0x26')]['changeColumn']=function(_0x4eef7b,_0x3f3658,_0x242ae0){const _0x38da28=_0x404c55,_0x25d5bf=this;this[_0x38da28('0x12')][_0x38da28('0x14')](function(){const _0x373aed=_0x38da28;return _0x25d5bf[_0x373aed('0x34')][_0x373aed('0xc')](_0x4eef7b,_0x3f3658,_0x242ae0)[_0x373aed('0x9')](function(){const _0x41c926=_0x373aed;logger[_0x41c926('0x32')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3f3658,_0x4eef7b);})[_0x373aed('0x30')](function(_0x5b8a0d){const _0x5c08da=_0x373aed;logger[_0x5c08da('0x32')](JSON[_0x5c08da('0xd')](_0x5b8a0d));});});},Migration[_0x404c55('0x26')][_0x404c55('0x8')]=function(_0x23008f,_0xf1971c,_0x332f78){const _0x4d5b15=_0x404c55,_0x3c997c=this;this[_0x4d5b15('0x12')][_0x4d5b15('0x14')](function(){const _0x5c2bc4=_0x4d5b15;return _0x3c997c['queryInterface'][_0x5c2bc4('0x8')](_0x23008f,_0xf1971c,_0x332f78)['then'](function(){const _0x4f3b00=_0x5c2bc4;logger['info'](_0x4f3b00('0x1e'),_0xf1971c,_0x23008f);})[_0x5c2bc4('0x30')](function(_0x214016){const _0x6f70f9=_0x5c2bc4;logger[_0x6f70f9('0x32')](JSON[_0x6f70f9('0xd')](_0x214016));});});},Migration[_0x404c55('0x26')][_0x404c55('0x4')]=function(_0x3fd554){const _0x406a8f=_0x404c55,_0x1fa729=this;this['sequence'][_0x406a8f('0x14')](function(){const _0xc06684=_0x406a8f;return _0x1fa729[_0xc06684('0x34')][_0xc06684('0x4')](_0x3fd554,{'force':!![]})[_0xc06684('0x9')](function(){const _0x4dc2ab=_0xc06684;logger[_0x4dc2ab('0x32')]('table\x20dropped\x20%s',_0x3fd554);})['catch'](function(_0xbaf4ed){const _0xa0c4ba=_0xc06684;logger[_0xa0c4ba('0x32')](JSON['stringify'](_0xbaf4ed));});});},Migration[_0x404c55('0x26')][_0x404c55('0x10')]=function(_0x52e22b,_0x458f2b,_0x5d7300){const _0x4cdaf3=_0x404c55,_0x5bf796=this;this['sequence'][_0x4cdaf3('0x14')](function(){const _0x555743=_0x4cdaf3;return _0x5bf796[_0x555743('0x34')][_0x555743('0x10')](_0x52e22b,_0x458f2b,{'indexName':_0x5d7300})[_0x555743('0x9')](function(){const _0x239b58=_0x555743;logger[_0x239b58('0x32')](_0x239b58('0x6'),_0x52e22b,_0x458f2b[_0x239b58('0x24')](','),_0x5d7300);})[_0x555743('0x30')](function(_0x238bc5){const _0x882601=_0x555743;logger[_0x882601('0x32')](JSON[_0x882601('0xd')](_0x238bc5));});});},Migration[_0x404c55('0x26')]['query']=function(_0x5b787e){const _0x5548a7=_0x404c55,_0x5a00e7=this;this[_0x5548a7('0x12')][_0x5548a7('0x14')](function(){const _0x5b0b71=_0x5548a7;return _0x5a00e7[_0x5b0b71('0x34')][_0x5b0b71('0x1b')][_0x5b0b71('0x2e')](_0x5b787e)[_0x5b0b71('0x9')](function(){const _0x295af5=_0x5b0b71;logger['info'](_0x295af5('0x3'),_0x5b787e);})[_0x5b0b71('0x30')](function(_0x466844){const _0x307746=_0x5b0b71;logger[_0x307746('0x32')](JSON[_0x307746('0xd')](_0x466844));});});},Migration[_0x404c55('0x26')][_0x404c55('0xe')]=function(_0x2989d7,_0x3b9e1d){const _0x11455b=_0x404c55,_0x4609b5=this;this[_0x11455b('0x12')][_0x11455b('0x14')](function(){const _0x521c5d=_0x11455b;return _0x4609b5[_0x521c5d('0x34')]['removeColumn'](_0x2989d7,_0x3b9e1d)[_0x521c5d('0x9')](function(){const _0x46801b=_0x521c5d;logger[_0x46801b('0x32')](_0x46801b('0x2f'),_0x3b9e1d,_0x2989d7);})['catch'](function(_0x3b6e97){const _0x535423=_0x521c5d;logger[_0x535423('0x32')](util[_0x535423('0x33')](_0x3b6e97,{'showHidden':![],'depth':null}));});});},Migration[_0x404c55('0x26')][_0x404c55('0x1a')]=function(_0x47af31){const _0x56477f=_0x404c55;this[_0x56477f('0x12')][_0x56477f('0x14')](function(){return _0x47af31();});},module[_0x404c55('0x23')]={'up':function(_0x5d15cb,_0x34deaf){return new Promise(function(_0x18c060){const _0x333c45=a923_0x241a,_0x8d9818=new Migration(_0x5d15cb);_0x8d9818[_0x333c45('0x8')](_0x333c45('0x2d'),'closingQuestion',{'type':_0x34deaf[_0x333c45('0x5')],'defaultValue':_0x333c45('0x1d')}),_0x8d9818[_0x333c45('0x8')](_0x333c45('0x19'),_0x333c45('0x37'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818['addColumn'](_0x333c45('0x29'),_0x333c45('0x31'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818['addColumn']('fax_interactions',_0x333c45('0x37'),{'type':_0x34deaf['DATE']}),_0x8d9818['addColumn']('fax_messages',_0x333c45('0x31'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818['addColumn'](_0x333c45('0x1'),_0x333c45('0x37'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818[_0x333c45('0x8')](_0x333c45('0x1'),'threadId',{'type':_0x34deaf[_0x333c45('0x5')]}),_0x8d9818[_0x333c45('0x8')]('openchannel_interactions',_0x333c45('0xf'),{'type':_0x34deaf[_0x333c45('0x5')]}),_0x8d9818[_0x333c45('0x8')](_0x333c45('0xb'),_0x333c45('0x31'),{'type':_0x34deaf['DATE']}),_0x8d9818['addColumn']('mail_interactions',_0x333c45('0x37'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818[_0x333c45('0x8')](_0x333c45('0x2b'),_0x333c45('0x27'),{'type':_0x34deaf[_0x333c45('0x5')](0x3c)}),_0x8d9818[_0x333c45('0x8')](_0x333c45('0x2b'),_0x333c45('0xa'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818[_0x333c45('0x8')](_0x333c45('0x1c'),_0x333c45('0x31'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818[_0x333c45('0x8')](_0x333c45('0x2c'),_0x333c45('0x37'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818['addColumn']('sms_messages',_0x333c45('0x31'),{'type':_0x34deaf[_0x333c45('0x0')]}),_0x8d9818[_0x333c45('0xc')]('chat_dispositions',_0x333c45('0x18'),{'type':_0x34deaf['STRING'],'unique':_0x333c45('0x15'),'allowNull':![]}),_0x8d9818['changeColumn']('fax_dispositions','name',{'type':_0x34deaf['STRING'],'unique':_0x333c45('0x15'),'allowNull':![]}),_0x8d9818[_0x333c45('0xc')](_0x333c45('0x2'),_0x333c45('0x18'),{'type':_0x34deaf[_0x333c45('0x5')],'unique':_0x333c45('0x15'),'allowNull':![]}),_0x8d9818['changeColumn'](_0x333c45('0x20'),_0x333c45('0x18'),{'type':_0x34deaf[_0x333c45('0x5')],'unique':_0x333c45('0x15'),'allowNull':![]}),_0x8d9818['changeColumn'](_0x333c45('0x22'),_0x333c45('0x18'),{'type':_0x34deaf[_0x333c45('0x5')],'unique':_0x333c45('0x15'),'allowNull':![]}),_0x8d9818[_0x333c45('0x2e')](_0x333c45('0x17')),_0x8d9818[_0x333c45('0x2e')](_0x333c45('0x35')),_0x8d9818['query'](_0x333c45('0x36')),_0x8d9818['query'](_0x333c45('0x11')),_0x8d9818[_0x333c45('0x2e')](_0x333c45('0x7')),_0x8d9818[_0x333c45('0xc')](_0x333c45('0x21'),_0x333c45('0x18'),{'type':_0x34deaf[_0x333c45('0x5')],'unique':_0x333c45('0x15'),'allowNull':![]}),_0x8d9818[_0x333c45('0x2e')](_0x333c45('0x16')),_0x8d9818[_0x333c45('0x2e')](_0x333c45('0x2a')),_0x8d9818['final'](_0x18c060);});},'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 4085bb1..281ff7e 100644 --- a/server/migrations/2.0.45.js +++ b/server/migrations/2.0.45.js @@ -1 +1 @@ -var a924_0x2fb0=['exports'];(function(_0x2dde45,_0x2fb042){var _0x34e238=function(_0x2ec898){while(--_0x2ec898){_0x2dde45['push'](_0x2dde45['shift']());}};_0x34e238(++_0x2fb042);}(a924_0x2fb0,0x1f2));var a924_0x34e2=function(_0x2dde45,_0x2fb042){_0x2dde45=_0x2dde45-0x0;var _0x34e238=a924_0x2fb0[_0x2dde45];return _0x34e238;};var _0x4489d5=a924_0x34e2;'use strict';module[_0x4489d5('0x0')]={'up':function(){},'down':function(){}}; \ No newline at end of file +var a924_0x3556=['exports'];(function(_0x331b82,_0x355606){var _0x16ad4e=function(_0x4d5665){while(--_0x4d5665){_0x331b82['push'](_0x331b82['shift']());}};_0x16ad4e(++_0x355606);}(a924_0x3556,0x116));var a924_0x16ad=function(_0x331b82,_0x355606){_0x331b82=_0x331b82-0x0;var _0x16ad4e=a924_0x3556[_0x331b82];return _0x16ad4e;};var _0x28829b=a924_0x16ad;'use strict';module[_0x28829b('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 9ec2a1e..12f99b5 100644 --- a/server/migrations/2.0.46.js +++ b/server/migrations/2.0.46.js @@ -1 +1 @@ -const a925_0x1d72=['catch','info','INTEGER','../config/logger','then','util','query','join','sequelize','sequence','addIndex','changeColumn','final','inspect','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)','STRING','addIndex\x20%s\x20%s\x20%s','prototype','noteTitle','addColumn','stringify','exports','finally','fax_interactions','Changed\x20column\x20%s\x20in\x20table\x20%s','placeholderMessage','removeColumn','showWebBar','chat_websites','queryInterface','query\x20%s','tail','table\x20dropped\x20%s','users','dropTable','Added\x20column\x20%s\x20to\x20%s','crudPermissions','enqueue'];(function(_0x290fe3,_0x1d7285){const _0x797f50=function(_0x5eb01b){while(--_0x5eb01b){_0x290fe3['push'](_0x290fe3['shift']());}};_0x797f50(++_0x1d7285);}(a925_0x1d72,0x1b1));const a925_0x797f=function(_0x290fe3,_0x1d7285){_0x290fe3=_0x290fe3-0x0;let _0x797f50=a925_0x1d72[_0x290fe3];return _0x797f50;};const _0x3703f2=a925_0x797f;'use strict';const logger=require(_0x3703f2('0x1a'))('migration'),util=require(_0x3703f2('0x1c')),Sequence=function(){};Sequence[_0x3703f2('0x2')]['enqueue']=function(_0x5eb01b){const _0x48cc98=_0x3703f2;this[_0x48cc98('0x10')]=this['tail']?this[_0x48cc98('0x10')][_0x48cc98('0x7')](_0x5eb01b):_0x5eb01b();};const Migration=function(_0x3b23a4){const _0x2f4ec6=_0x3703f2;this[_0x2f4ec6('0xe')]=_0x3b23a4,this[_0x2f4ec6('0x20')]=new Sequence();};Migration['prototype'][_0x3703f2('0x22')]=function(_0x394765,_0x3ff2de,_0x458fe8){const _0x387fb0=_0x3703f2,_0x2d5a44=this;this[_0x387fb0('0x20')][_0x387fb0('0x16')](function(){const _0x1b83f6=_0x387fb0;return _0x2d5a44['queryInterface'][_0x1b83f6('0x22')](_0x394765,_0x3ff2de,_0x458fe8)[_0x1b83f6('0x1b')](function(){const _0x247037=_0x1b83f6;logger[_0x247037('0x18')](_0x247037('0x9'),_0x3ff2de,_0x394765);})[_0x1b83f6('0x17')](function(_0x57cd35){const _0x923404=_0x1b83f6;logger[_0x923404('0x18')](JSON[_0x923404('0x5')](_0x57cd35));});});},Migration[_0x3703f2('0x2')][_0x3703f2('0x4')]=function(_0x86eff5,_0x536b36,_0x103f62){const _0x47edda=_0x3703f2,_0x357ede=this;this[_0x47edda('0x20')][_0x47edda('0x16')](function(){const _0x3710ad=_0x47edda;return _0x357ede[_0x3710ad('0xe')]['addColumn'](_0x86eff5,_0x536b36,_0x103f62)[_0x3710ad('0x1b')](function(){const _0x1bb56f=_0x3710ad;logger[_0x1bb56f('0x18')](_0x1bb56f('0x14'),_0x536b36,_0x86eff5);})['catch'](function(_0x36d308){const _0x4df66f=_0x3710ad;logger['info'](JSON[_0x4df66f('0x5')](_0x36d308));});});},Migration['prototype'][_0x3703f2('0x13')]=function(_0x36c02e){const _0x4f16b6=_0x3703f2,_0x36e83b=this;this[_0x4f16b6('0x20')][_0x4f16b6('0x16')](function(){const _0x2b5808=_0x4f16b6;return _0x36e83b[_0x2b5808('0xe')][_0x2b5808('0x13')](_0x36c02e,{'force':!![]})[_0x2b5808('0x1b')](function(){const _0x433fcf=_0x2b5808;logger['info'](_0x433fcf('0x11'),_0x36c02e);})['catch'](function(_0x163ab4){const _0x581ffe=_0x2b5808;logger[_0x581ffe('0x18')](JSON[_0x581ffe('0x5')](_0x163ab4));});});},Migration[_0x3703f2('0x2')][_0x3703f2('0x21')]=function(_0x13c0b1,_0x1ecbf6,_0x506c10){const _0x1a9750=_0x3703f2,_0x18a2a5=this;this[_0x1a9750('0x20')][_0x1a9750('0x16')](function(){const _0x40fb29=_0x1a9750;return _0x18a2a5['queryInterface'][_0x40fb29('0x21')](_0x13c0b1,_0x1ecbf6,{'indexName':_0x506c10})['then'](function(){const _0x4edc58=_0x40fb29;logger[_0x4edc58('0x18')](_0x4edc58('0x1'),_0x13c0b1,_0x1ecbf6[_0x4edc58('0x1e')](','),_0x506c10);})[_0x40fb29('0x17')](function(_0xb1f630){const _0x5d4d7e=_0x40fb29;logger[_0x5d4d7e('0x18')](JSON[_0x5d4d7e('0x5')](_0xb1f630));});});},Migration[_0x3703f2('0x2')][_0x3703f2('0x1d')]=function(_0x74b10d){const _0xf7acab=_0x3703f2,_0x22fa94=this;this[_0xf7acab('0x20')][_0xf7acab('0x16')](function(){const _0x12978d=_0xf7acab;return _0x22fa94[_0x12978d('0xe')][_0x12978d('0x1f')][_0x12978d('0x1d')](_0x74b10d)[_0x12978d('0x1b')](function(){const _0x154383=_0x12978d;logger[_0x154383('0x18')](_0x154383('0xf'),_0x74b10d);})['catch'](function(_0x5f92a7){const _0x33f2c9=_0x12978d;logger[_0x33f2c9('0x18')](JSON[_0x33f2c9('0x5')](_0x5f92a7));});});},Migration['prototype'][_0x3703f2('0xb')]=function(_0x5122df,_0x6b4d38){const _0x2acca0=_0x3703f2,_0x5e9d24=this;this[_0x2acca0('0x20')][_0x2acca0('0x16')](function(){const _0x3f51c2=_0x2acca0;return _0x5e9d24[_0x3f51c2('0xe')][_0x3f51c2('0xb')](_0x5122df,_0x6b4d38)[_0x3f51c2('0x1b')](function(){const _0x5a083d=_0x3f51c2;logger[_0x5a083d('0x18')]('Removed\x20column\x20%s\x20from\x20%s',_0x6b4d38,_0x5122df);})['catch'](function(_0x725e9b){const _0x689473=_0x3f51c2;logger['info'](util[_0x689473('0x24')](_0x725e9b,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x540320){const _0x388430=_0x3703f2;this[_0x388430('0x20')][_0x388430('0x16')](function(){return _0x540320();});},module[_0x3703f2('0x6')]={'up':function(_0x5b0a99,_0x221f1b){return new Promise(function(_0x12486b){const _0x5059f5=a925_0x797f,_0x398a17=new Migration(_0x5b0a99);_0x398a17['changeColumn'](_0x5059f5('0x12'),_0x5059f5('0xc'),{'type':_0x221f1b[_0x5059f5('0x19')],'defaultValue':0x0}),_0x398a17[_0x5059f5('0x1d')](_0x5059f5('0x25')),_0x398a17[_0x5059f5('0x4')]('users',_0x5059f5('0x15'),{'type':_0x221f1b['INTEGER'],'defaultValue':0x0}),_0x398a17['addColumn'](_0x5059f5('0xd'),_0x5059f5('0x3'),{'type':_0x221f1b['STRING'],'defaultValue':'Note'}),_0x398a17['addColumn']('chat_websites',_0x5059f5('0xa'),{'type':_0x221f1b[_0x5059f5('0x0')],'defaultValue':'Type\x20a\x20message'}),_0x398a17[_0x5059f5('0x4')](_0x5059f5('0x8'),'fax',{'type':_0x221f1b[_0x5059f5('0x0')]}),_0x398a17[_0x5059f5('0x1d')]('UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax'),_0x398a17[_0x5059f5('0x23')](_0x12486b);});},'down':function(){}}; \ No newline at end of file +const a925_0x220d=['crudPermissions','final','sequelize','changeColumn','noteTitle','INTEGER','then','Added\x20column\x20%s\x20to\x20%s','stringify','Note','query\x20%s','info','dropTable','UPDATE\x20fax_interactions\x20as\x20t1\x20JOIN\x20cm_contacts\x20AS\x20t2\x20ON\x20t1.ContactId\x20=\x20t2.id\x20SET\x20t1.fax\x20=\x20t2.fax','enqueue','fax_interactions','exports','showWebBar','Changed\x20column\x20%s\x20in\x20table\x20%s','placeholderMessage','queryInterface','STRING','removeColumn','finally','Type\x20a\x20message','addIndex','table\x20dropped\x20%s','catch','query','inspect','fax','prototype','addIndex\x20%s\x20%s\x20%s','addColumn','join','sequence'];(function(_0x2939d6,_0x220d96){const _0x148856=function(_0x510a44){while(--_0x510a44){_0x2939d6['push'](_0x2939d6['shift']());}};_0x148856(++_0x220d96);}(a925_0x220d,0x151));const a925_0x1488=function(_0x2939d6,_0x220d96){_0x2939d6=_0x2939d6-0x0;let _0x148856=a925_0x220d[_0x2939d6];return _0x148856;};const _0x1bf0a7=a925_0x1488;'use strict';const logger=require('../config/logger')('migration'),util=require('util'),Sequence=function(){};Sequence[_0x1bf0a7('0x12')][_0x1bf0a7('0x1')]=function(_0x510a44){const _0x4c5e27=_0x1bf0a7;this['tail']=this['tail']?this['tail'][_0x4c5e27('0xa')](_0x510a44):_0x510a44();};const Migration=function(_0x1d0175){const _0x462e7f=_0x1bf0a7;this[_0x462e7f('0x7')]=_0x1d0175,this[_0x462e7f('0x16')]=new Sequence();};Migration[_0x1bf0a7('0x12')][_0x1bf0a7('0x1a')]=function(_0x470cd2,_0x49fb14,_0x2162ce){const _0x42b135=_0x1bf0a7,_0x277878=this;this[_0x42b135('0x16')][_0x42b135('0x1')](function(){const _0xd152f7=_0x42b135;return _0x277878[_0xd152f7('0x7')][_0xd152f7('0x1a')](_0x470cd2,_0x49fb14,_0x2162ce)[_0xd152f7('0x1d')](function(){const _0x20e020=_0xd152f7;logger[_0x20e020('0x22')](_0x20e020('0x5'),_0x49fb14,_0x470cd2);})[_0xd152f7('0xe')](function(_0x1dde1d){logger['info'](JSON['stringify'](_0x1dde1d));});});},Migration[_0x1bf0a7('0x12')]['addColumn']=function(_0x90f2ef,_0x36d1f3,_0x396025){const _0xb7bd6d=_0x1bf0a7,_0x2fc466=this;this[_0xb7bd6d('0x16')][_0xb7bd6d('0x1')](function(){const _0x5266e6=_0xb7bd6d;return _0x2fc466[_0x5266e6('0x7')]['addColumn'](_0x90f2ef,_0x36d1f3,_0x396025)[_0x5266e6('0x1d')](function(){const _0x445e76=_0x5266e6;logger['info'](_0x445e76('0x1e'),_0x36d1f3,_0x90f2ef);})[_0x5266e6('0xe')](function(_0x5273c2){logger['info'](JSON['stringify'](_0x5273c2));});});},Migration['prototype'][_0x1bf0a7('0x23')]=function(_0x3b22e7){const _0x51ff92=_0x1bf0a7,_0x3d3126=this;this[_0x51ff92('0x16')]['enqueue'](function(){const _0x11b953=_0x51ff92;return _0x3d3126['queryInterface'][_0x11b953('0x23')](_0x3b22e7,{'force':!![]})[_0x11b953('0x1d')](function(){const _0x2f323f=_0x11b953;logger['info'](_0x2f323f('0xd'),_0x3b22e7);})[_0x11b953('0xe')](function(_0x1d973a){const _0x519836=_0x11b953;logger['info'](JSON[_0x519836('0x1f')](_0x1d973a));});});},Migration['prototype'][_0x1bf0a7('0xc')]=function(_0x5018a1,_0x232f9e,_0x52003f){const _0x4ef729=_0x1bf0a7,_0xf59a8b=this;this['sequence'][_0x4ef729('0x1')](function(){const _0x57973a=_0x4ef729;return _0xf59a8b[_0x57973a('0x7')][_0x57973a('0xc')](_0x5018a1,_0x232f9e,{'indexName':_0x52003f})[_0x57973a('0x1d')](function(){const _0x13be8a=_0x57973a;logger[_0x13be8a('0x22')](_0x13be8a('0x13'),_0x5018a1,_0x232f9e[_0x13be8a('0x15')](','),_0x52003f);})['catch'](function(_0x2b73f4){const _0xfd89b1=_0x57973a;logger[_0xfd89b1('0x22')](JSON[_0xfd89b1('0x1f')](_0x2b73f4));});});},Migration[_0x1bf0a7('0x12')][_0x1bf0a7('0xf')]=function(_0x14ed25){const _0x464c6e=_0x1bf0a7,_0x17f5c0=this;this['sequence'][_0x464c6e('0x1')](function(){const _0x523886=_0x464c6e;return _0x17f5c0['queryInterface'][_0x523886('0x19')]['query'](_0x14ed25)['then'](function(){const _0x3077cd=_0x523886;logger[_0x3077cd('0x22')](_0x3077cd('0x21'),_0x14ed25);})[_0x523886('0xe')](function(_0xc5d7d2){logger['info'](JSON['stringify'](_0xc5d7d2));});});},Migration[_0x1bf0a7('0x12')][_0x1bf0a7('0x9')]=function(_0x3faf7e,_0xcf35a8){const _0x2093d9=_0x1bf0a7,_0x49a9a6=this;this[_0x2093d9('0x16')][_0x2093d9('0x1')](function(){const _0x4adfc7=_0x2093d9;return _0x49a9a6[_0x4adfc7('0x7')][_0x4adfc7('0x9')](_0x3faf7e,_0xcf35a8)[_0x4adfc7('0x1d')](function(){const _0x3bce26=_0x4adfc7;logger[_0x3bce26('0x22')]('Removed\x20column\x20%s\x20from\x20%s',_0xcf35a8,_0x3faf7e);})[_0x4adfc7('0xe')](function(_0x403fb3){const _0x59b1da=_0x4adfc7;logger[_0x59b1da('0x22')](util[_0x59b1da('0x10')](_0x403fb3,{'showHidden':![],'depth':null}));});});},Migration[_0x1bf0a7('0x12')][_0x1bf0a7('0x18')]=function(_0x30267b){const _0x1e7685=_0x1bf0a7;this[_0x1e7685('0x16')][_0x1e7685('0x1')](function(){return _0x30267b();});},module[_0x1bf0a7('0x3')]={'up':function(_0x11fac8,_0x1b861c){return new Promise(function(_0x1aafbd){const _0x4d4aac=a925_0x1488,_0x405d9f=new Migration(_0x11fac8);_0x405d9f['changeColumn']('users',_0x4d4aac('0x4'),{'type':_0x1b861c[_0x4d4aac('0x1c')],'defaultValue':0x0}),_0x405d9f['query']('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)'),_0x405d9f[_0x4d4aac('0x14')]('users',_0x4d4aac('0x17'),{'type':_0x1b861c[_0x4d4aac('0x1c')],'defaultValue':0x0}),_0x405d9f[_0x4d4aac('0x14')]('chat_websites',_0x4d4aac('0x1b'),{'type':_0x1b861c[_0x4d4aac('0x8')],'defaultValue':_0x4d4aac('0x20')}),_0x405d9f['addColumn']('chat_websites',_0x4d4aac('0x6'),{'type':_0x1b861c['STRING'],'defaultValue':_0x4d4aac('0xb')}),_0x405d9f[_0x4d4aac('0x14')](_0x4d4aac('0x2'),_0x4d4aac('0x11'),{'type':_0x1b861c['STRING']}),_0x405d9f['query'](_0x4d4aac('0x0')),_0x405d9f['final'](_0x1aafbd);});},'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 c7944bc..f4fb9cb 100644 --- a/server/migrations/2.0.47.js +++ b/server/migrations/2.0.47.js @@ -1 +1 @@ -const a926_0x3696=['table\x20dropped\x20%s','dropTable','data','info','tail','Form\x20submission\x20error','sms_messages','stringify','Form\x20properly\x20submitted','removeColumn','type','prototype','exports','formSubmitSuccessMessage','dashboards','final','formSubmitFailureMessage','addColumn','inspect','changeColumn','sequence','util','migration','attrs','title','Removed\x20column\x20%s\x20from\x20%s','../config/logger','interval','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','query','then','catch','secret','addIndex','dashboard_items','join','enqueue','Added\x20column\x20%s\x20to\x20%s','finally','queryInterface','STRING','long','TEXT','chat_websites'];(function(_0x38b379,_0x3696b3){const _0x5bf535=function(_0x52bdd1){while(--_0x52bdd1){_0x38b379['push'](_0x38b379['shift']());}};_0x5bf535(++_0x3696b3);}(a926_0x3696,0x1d9));const a926_0x5bf5=function(_0x38b379,_0x3696b3){_0x38b379=_0x38b379-0x0;let _0x5bf535=a926_0x3696[_0x38b379];return _0x5bf535;};const _0x5ddb33=a926_0x5bf5;'use strict';const logger=require(_0x5ddb33('0x3'))(_0x5ddb33('0x2c')),util=require(_0x5ddb33('0x2b')),Sequence=function(){};Sequence[_0x5ddb33('0x21')][_0x5ddb33('0xe')]=function(_0x52bdd1){const _0x8760d6=_0x5ddb33;this[_0x8760d6('0x1a')]=this[_0x8760d6('0x1a')]?this[_0x8760d6('0x1a')][_0x8760d6('0x10')](_0x52bdd1):_0x52bdd1();};const Migration=function(_0x2d8acb){const _0x1315d1=_0x5ddb33;this['queryInterface']=_0x2d8acb,this[_0x1315d1('0x2a')]=new Sequence();};Migration['prototype'][_0x5ddb33('0x29')]=function(_0x1c7906,_0x15f3d3,_0x9fa32a){const _0x1dff28=_0x5ddb33,_0x2d9bdb=this;this[_0x1dff28('0x2a')][_0x1dff28('0xe')](function(){const _0x472763=_0x1dff28;return _0x2d9bdb[_0x472763('0x11')][_0x472763('0x29')](_0x1c7906,_0x15f3d3,_0x9fa32a)[_0x472763('0x8')](function(){const _0x2975f1=_0x472763;logger[_0x2975f1('0x19')](_0x2975f1('0x6'),_0x15f3d3,_0x1c7906);})[_0x472763('0x9')](function(_0x197962){const _0x18c7b0=_0x472763;logger['info'](JSON[_0x18c7b0('0x1d')](_0x197962));});});},Migration[_0x5ddb33('0x21')][_0x5ddb33('0x27')]=function(_0x3d35b0,_0x1c7f64,_0x32c877){const _0xd7f65b=_0x5ddb33,_0x196e23=this;this['sequence'][_0xd7f65b('0xe')](function(){const _0x1aa3b5=_0xd7f65b;return _0x196e23['queryInterface']['addColumn'](_0x3d35b0,_0x1c7f64,_0x32c877)[_0x1aa3b5('0x8')](function(){const _0x1305b8=_0x1aa3b5;logger['info'](_0x1305b8('0xf'),_0x1c7f64,_0x3d35b0);})[_0x1aa3b5('0x9')](function(_0x205dc7){const _0x34c15d=_0x1aa3b5;logger[_0x34c15d('0x19')](JSON['stringify'](_0x205dc7));});});},Migration[_0x5ddb33('0x21')][_0x5ddb33('0x17')]=function(_0x209ff6){const _0x31a736=_0x5ddb33,_0xad859e=this;this[_0x31a736('0x2a')][_0x31a736('0xe')](function(){const _0xf6932d=_0x31a736;return _0xad859e['queryInterface'][_0xf6932d('0x17')](_0x209ff6,{'force':!![]})[_0xf6932d('0x8')](function(){const _0x3edb31=_0xf6932d;logger['info'](_0x3edb31('0x16'),_0x209ff6);})[_0xf6932d('0x9')](function(_0x2bde92){const _0x3f37c0=_0xf6932d;logger[_0x3f37c0('0x19')](JSON['stringify'](_0x2bde92));});});},Migration[_0x5ddb33('0x21')][_0x5ddb33('0xb')]=function(_0x2f5719,_0x3d79b4,_0x386418){const _0x4e848a=_0x5ddb33,_0x40a7aa=this;this[_0x4e848a('0x2a')][_0x4e848a('0xe')](function(){const _0x5e4697=_0x4e848a;return _0x40a7aa['queryInterface'][_0x5e4697('0xb')](_0x2f5719,_0x3d79b4,{'indexName':_0x386418})[_0x5e4697('0x8')](function(){const _0x588258=_0x5e4697;logger[_0x588258('0x19')]('addIndex\x20%s\x20%s\x20%s',_0x2f5719,_0x3d79b4[_0x588258('0xd')](','),_0x386418);})[_0x5e4697('0x9')](function(_0x4375ce){const _0x4c53b8=_0x5e4697;logger[_0x4c53b8('0x19')](JSON[_0x4c53b8('0x1d')](_0x4375ce));});});},Migration[_0x5ddb33('0x21')][_0x5ddb33('0x7')]=function(_0x1ad81e){const _0x1990bd=_0x5ddb33,_0x594f01=this;this[_0x1990bd('0x2a')]['enqueue'](function(){const _0x468b6b=_0x1990bd;return _0x594f01['queryInterface']['sequelize'][_0x468b6b('0x7')](_0x1ad81e)[_0x468b6b('0x8')](function(){const _0x18505c=_0x468b6b;logger[_0x18505c('0x19')]('query\x20%s',_0x1ad81e);})[_0x468b6b('0x9')](function(_0x548548){const _0x4214d7=_0x468b6b;logger[_0x4214d7('0x19')](JSON[_0x4214d7('0x1d')](_0x548548));});});},Migration[_0x5ddb33('0x21')]['removeColumn']=function(_0x4b123c,_0x33a414){const _0x26164e=_0x5ddb33,_0x57b6b9=this;this[_0x26164e('0x2a')][_0x26164e('0xe')](function(){const _0x83e744=_0x26164e;return _0x57b6b9[_0x83e744('0x11')][_0x83e744('0x1f')](_0x4b123c,_0x33a414)[_0x83e744('0x8')](function(){const _0x180558=_0x83e744;logger[_0x180558('0x19')](_0x180558('0x2'),_0x33a414,_0x4b123c);})[_0x83e744('0x9')](function(_0x480643){const _0x42c3f9=_0x83e744;logger[_0x42c3f9('0x19')](util[_0x42c3f9('0x28')](_0x480643,{'showHidden':![],'depth':null}));});});},Migration[_0x5ddb33('0x21')][_0x5ddb33('0x25')]=function(_0x266cc6){const _0x14036b=_0x5ddb33;this[_0x14036b('0x2a')][_0x14036b('0xe')](function(){return _0x266cc6();});},module[_0x5ddb33('0x22')]={'up':function(_0x4e5e8f,_0x301624){return new Promise(function(_0x129120){const _0x14d03e=a926_0x5bf5,_0x570dba=new Migration(_0x4e5e8f);_0x570dba['query']('DELETE\x20FROM\x20dashboards'),_0x570dba['removeColumn'](_0x14d03e('0x24'),_0x14d03e('0x4')),_0x570dba[_0x14d03e('0x29')]('dashboard_items',_0x14d03e('0x20'),{'type':_0x301624['STRING'](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x570dba[_0x14d03e('0x1f')]('dashboard_items',_0x14d03e('0x7')),_0x570dba[_0x14d03e('0x1f')](_0x14d03e('0xc'),_0x14d03e('0x18')),_0x570dba[_0x14d03e('0x27')](_0x14d03e('0xc'),_0x14d03e('0x1'),{'type':_0x301624[_0x14d03e('0x12')](0x14),'validate':{'len':[0x0,0x14]}}),_0x570dba[_0x14d03e('0x27')](_0x14d03e('0xc'),_0x14d03e('0x0'),{'type':_0x301624[_0x14d03e('0x14')](_0x14d03e('0x13'))}),_0x570dba[_0x14d03e('0x27')](_0x14d03e('0x1c'),_0x14d03e('0xa'),{'type':_0x301624[_0x14d03e('0x5')],'defaultValue':![]}),_0x570dba[_0x14d03e('0x27')](_0x14d03e('0x15'),_0x14d03e('0x23'),{'type':_0x301624[_0x14d03e('0x12')],'defaultValue':_0x14d03e('0x1e')}),_0x570dba[_0x14d03e('0x27')]('chat_websites',_0x14d03e('0x26'),{'type':_0x301624[_0x14d03e('0x12')],'defaultValue':_0x14d03e('0x1b')}),_0x570dba[_0x14d03e('0x25')](_0x129120);});},'down':function(){}}; \ No newline at end of file +const a926_0x6ae3=['inspect','STRING','changeColumn','Added\x20column\x20%s\x20to\x20%s','util','query\x20%s','interval','data','../config/logger','stringify','migration','addIndex\x20%s\x20%s\x20%s','removeColumn','TEXT','formSubmitSuccessMessage','dashboard_items','queryInterface','prototype','addIndex','addColumn','enqueue','final','info','then','table\x20dropped\x20%s','sequelize','dropTable','DELETE\x20FROM\x20dashboards','title','tail','finally','Form\x20submission\x20error','sms_messages','catch','chat_websites','join','dashboards','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','query','long','sequence'];(function(_0x3f7e17,_0x6ae35a){const _0x5f52cf=function(_0x5d8225){while(--_0x5d8225){_0x3f7e17['push'](_0x3f7e17['shift']());}};_0x5f52cf(++_0x6ae35a);}(a926_0x6ae3,0x1d5));const a926_0x5f52=function(_0x3f7e17,_0x6ae35a){_0x3f7e17=_0x3f7e17-0x0;let _0x5f52cf=a926_0x6ae3[_0x3f7e17];return _0x5f52cf;};const _0x6ecce7=a926_0x5f52;'use strict';const logger=require(_0x6ecce7('0x1'))(_0x6ecce7('0x3')),util=require(_0x6ecce7('0x27')),Sequence=function(){};Sequence[_0x6ecce7('0xa')][_0x6ecce7('0xd')]=function(_0x5d8225){const _0x5ddfc0=_0x6ecce7;this[_0x5ddfc0('0x16')]=this[_0x5ddfc0('0x16')]?this[_0x5ddfc0('0x16')][_0x5ddfc0('0x17')](_0x5d8225):_0x5d8225();};const Migration=function(_0x26a994){const _0x1c868e=_0x6ecce7;this[_0x1c868e('0x9')]=_0x26a994,this[_0x1c868e('0x22')]=new Sequence();};Migration['prototype'][_0x6ecce7('0x25')]=function(_0xdfc530,_0x557376,_0x24903f){const _0x2d47a1=_0x6ecce7,_0x18af56=this;this[_0x2d47a1('0x22')][_0x2d47a1('0xd')](function(){const _0x352a23=_0x2d47a1;return _0x18af56[_0x352a23('0x9')][_0x352a23('0x25')](_0xdfc530,_0x557376,_0x24903f)[_0x352a23('0x10')](function(){const _0x12267a=_0x352a23;logger[_0x12267a('0xf')](_0x12267a('0x1f'),_0x557376,_0xdfc530);})[_0x352a23('0x1a')](function(_0x3d696e){const _0x1bf133=_0x352a23;logger['info'](JSON[_0x1bf133('0x2')](_0x3d696e));});});},Migration['prototype']['addColumn']=function(_0x22e5fb,_0x4ab929,_0x463fc8){const _0x8eba99=_0x6ecce7,_0x4511c5=this;this[_0x8eba99('0x22')][_0x8eba99('0xd')](function(){const _0x9cd4ca=_0x8eba99;return _0x4511c5[_0x9cd4ca('0x9')][_0x9cd4ca('0xc')](_0x22e5fb,_0x4ab929,_0x463fc8)['then'](function(){const _0x55ff27=_0x9cd4ca;logger['info'](_0x55ff27('0x26'),_0x4ab929,_0x22e5fb);})[_0x9cd4ca('0x1a')](function(_0x11bbb5){const _0x8cc542=_0x9cd4ca;logger[_0x8cc542('0xf')](JSON[_0x8cc542('0x2')](_0x11bbb5));});});},Migration['prototype'][_0x6ecce7('0x13')]=function(_0x3c3c68){const _0x46c86d=_0x6ecce7,_0x3c5a10=this;this[_0x46c86d('0x22')][_0x46c86d('0xd')](function(){const _0x12aecc=_0x46c86d;return _0x3c5a10[_0x12aecc('0x9')][_0x12aecc('0x13')](_0x3c3c68,{'force':!![]})[_0x12aecc('0x10')](function(){const _0x19427a=_0x12aecc;logger[_0x19427a('0xf')](_0x19427a('0x11'),_0x3c3c68);})[_0x12aecc('0x1a')](function(_0x538f90){const _0x1234fc=_0x12aecc;logger[_0x1234fc('0xf')](JSON[_0x1234fc('0x2')](_0x538f90));});});},Migration[_0x6ecce7('0xa')][_0x6ecce7('0xb')]=function(_0x5c0f8a,_0x4e4b03,_0x174741){const _0x25a8aa=_0x6ecce7,_0x5a3294=this;this['sequence'][_0x25a8aa('0xd')](function(){const _0x352cdc=_0x25a8aa;return _0x5a3294['queryInterface'][_0x352cdc('0xb')](_0x5c0f8a,_0x4e4b03,{'indexName':_0x174741})[_0x352cdc('0x10')](function(){const _0x46152a=_0x352cdc;logger['info'](_0x46152a('0x4'),_0x5c0f8a,_0x4e4b03[_0x46152a('0x1c')](','),_0x174741);})['catch'](function(_0x1966b4){const _0x3db93c=_0x352cdc;logger['info'](JSON[_0x3db93c('0x2')](_0x1966b4));});});},Migration['prototype'][_0x6ecce7('0x20')]=function(_0x1951e2){const _0x451c00=_0x6ecce7,_0x280b57=this;this[_0x451c00('0x22')][_0x451c00('0xd')](function(){const _0x1d44b7=_0x451c00;return _0x280b57[_0x1d44b7('0x9')][_0x1d44b7('0x12')][_0x1d44b7('0x20')](_0x1951e2)[_0x1d44b7('0x10')](function(){const _0x4d5123=_0x1d44b7;logger[_0x4d5123('0xf')](_0x4d5123('0x28'),_0x1951e2);})[_0x1d44b7('0x1a')](function(_0x40a469){const _0x147868=_0x1d44b7;logger[_0x147868('0xf')](JSON[_0x147868('0x2')](_0x40a469));});});},Migration['prototype'][_0x6ecce7('0x5')]=function(_0x135e86,_0x347466){const _0x368261=_0x6ecce7,_0x4d35d0=this;this[_0x368261('0x22')][_0x368261('0xd')](function(){const _0x3f1642=_0x368261;return _0x4d35d0[_0x3f1642('0x9')][_0x3f1642('0x5')](_0x135e86,_0x347466)['then'](function(){const _0x189e71=_0x3f1642;logger[_0x189e71('0xf')]('Removed\x20column\x20%s\x20from\x20%s',_0x347466,_0x135e86);})[_0x3f1642('0x1a')](function(_0x3ffc3e){const _0x4a5508=_0x3f1642;logger[_0x4a5508('0xf')](util[_0x4a5508('0x23')](_0x3ffc3e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x6ecce7('0xe')]=function(_0x433970){const _0x3778d1=_0x6ecce7;this[_0x3778d1('0x22')][_0x3778d1('0xd')](function(){return _0x433970();});},module['exports']={'up':function(_0x16e52e,_0xaa5b2b){return new Promise(function(_0x47f535){const _0x1ba314=a926_0x5f52,_0x15711d=new Migration(_0x16e52e);_0x15711d[_0x1ba314('0x20')](_0x1ba314('0x14')),_0x15711d[_0x1ba314('0x5')](_0x1ba314('0x1d'),_0x1ba314('0x29')),_0x15711d[_0x1ba314('0x25')](_0x1ba314('0x8'),'type',{'type':_0xaa5b2b[_0x1ba314('0x24')](0x14),'allowNull':![],'validate':{'len':[0x1,0x14]}}),_0x15711d['removeColumn'](_0x1ba314('0x8'),_0x1ba314('0x20')),_0x15711d[_0x1ba314('0x5')](_0x1ba314('0x8'),_0x1ba314('0x0')),_0x15711d['addColumn'](_0x1ba314('0x8'),_0x1ba314('0x15'),{'type':_0xaa5b2b[_0x1ba314('0x24')](0x14),'validate':{'len':[0x0,0x14]}}),_0x15711d[_0x1ba314('0xc')](_0x1ba314('0x8'),'attrs',{'type':_0xaa5b2b[_0x1ba314('0x6')](_0x1ba314('0x21'))}),_0x15711d[_0x1ba314('0xc')](_0x1ba314('0x19'),'secret',{'type':_0xaa5b2b[_0x1ba314('0x1e')],'defaultValue':![]}),_0x15711d[_0x1ba314('0xc')](_0x1ba314('0x1b'),_0x1ba314('0x7'),{'type':_0xaa5b2b[_0x1ba314('0x24')],'defaultValue':'Form\x20properly\x20submitted'}),_0x15711d['addColumn'](_0x1ba314('0x1b'),'formSubmitFailureMessage',{'type':_0xaa5b2b[_0x1ba314('0x24')],'defaultValue':_0x1ba314('0x18')}),_0x15711d[_0x1ba314('0xe')](_0x47f535);});},'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 c142113..a2107d3 100644 --- a/server/migrations/2.0.48.js +++ b/server/migrations/2.0.48.js @@ -1 +1 @@ -const a927_0x4499=['query','/etc/asterisk/stun_xcally.conf','sequence','settings','turnusername','readFileSync','[ice_host_candidates]','turnpassword','utf8','/etc/asterisk/rtp.conf','info','../config/logger','addColumn','then','Added\x20column\x20%s\x20to\x20%s','#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]','catch','table\x20dropped\x20%s','replace','yes','join','query\x20%s','enqueue','addIndex\x20%s\x20%s\x20%s','prototype','addIndex','stringify','queryInterface','firstMsgDirection','sequelize','writeFileSync','ENUM','changeColumn',';\x20TURN\x20server\x20list\x0a','dropTable','mail_interactions','fax_interactions','users','STRING','UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2','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;','/etc/asterisk/res_stun_monitor.conf','tail',';\x20STUN\x20server\x20list\x0a','lodash','Removed\x20column\x20%s\x20from\x20%s','out','#include\x20\x22stun_xcally.conf\x22','final','/etc/asterisk/turn_xcally.conf','removeColumn'];(function(_0x1d72f0,_0x4499ab){const _0x22889c=function(_0x161574){while(--_0x161574){_0x1d72f0['push'](_0x1d72f0['shift']());}};_0x22889c(++_0x4499ab);}(a927_0x4499,0x16d));const a927_0x2288=function(_0x1d72f0,_0x4499ab){_0x1d72f0=_0x1d72f0-0x0;let _0x22889c=a927_0x4499[_0x1d72f0];return _0x22889c;};const _0x1fc252=a927_0x2288;'use strict';const fs=require('fs'),util=require('util'),_=require(_0x1fc252('0x24')),logger=require(_0x1fc252('0x3'))('migration'),Sequence=function(){};Sequence[_0x1fc252('0x10')]['enqueue']=function(_0x161574){const _0x35c3d6=_0x1fc252;this[_0x35c3d6('0x22')]=this[_0x35c3d6('0x22')]?this[_0x35c3d6('0x22')]['finally'](_0x161574):_0x161574();};const Migration=function(_0x1d290a){const _0x10f899=_0x1fc252;this[_0x10f899('0x13')]=_0x1d290a,this[_0x10f899('0x2d')]=new Sequence();};Migration[_0x1fc252('0x10')]['changeColumn']=function(_0x4f38a1,_0x442741,_0x1b5238){const _0x229324=_0x1fc252,_0x42f995=this;this['sequence'][_0x229324('0xe')](function(){const _0x1c1d28=_0x229324;return _0x42f995[_0x1c1d28('0x13')][_0x1c1d28('0x18')](_0x4f38a1,_0x442741,_0x1b5238)[_0x1c1d28('0x5')](function(){const _0x185d16=_0x1c1d28;logger[_0x185d16('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x442741,_0x4f38a1);})[_0x1c1d28('0x8')](function(_0x22410e){const _0x27ef7c=_0x1c1d28;logger[_0x27ef7c('0x2')](JSON[_0x27ef7c('0x12')](_0x22410e));});});},Migration[_0x1fc252('0x10')][_0x1fc252('0x4')]=function(_0x14b9df,_0x1749bb,_0x26a15d){const _0x548964=_0x1fc252,_0x42654b=this;this[_0x548964('0x2d')][_0x548964('0xe')](function(){const _0x56696c=_0x548964;return _0x42654b[_0x56696c('0x13')][_0x56696c('0x4')](_0x14b9df,_0x1749bb,_0x26a15d)[_0x56696c('0x5')](function(){const _0x3952a3=_0x56696c;logger[_0x3952a3('0x2')](_0x3952a3('0x6'),_0x1749bb,_0x14b9df);})[_0x56696c('0x8')](function(_0x11b3ba){const _0x3b984e=_0x56696c;logger[_0x3b984e('0x2')](JSON[_0x3b984e('0x12')](_0x11b3ba));});});},Migration['prototype'][_0x1fc252('0x1a')]=function(_0x168135){const _0x148db1=_0x1fc252,_0x47b5ca=this;this[_0x148db1('0x2d')]['enqueue'](function(){const _0x34f43d=_0x148db1;return _0x47b5ca[_0x34f43d('0x13')][_0x34f43d('0x1a')](_0x168135,{'force':!![]})['then'](function(){const _0x4aa19c=_0x34f43d;logger[_0x4aa19c('0x2')](_0x4aa19c('0x9'),_0x168135);})['catch'](function(_0x153ff0){const _0x5aa39d=_0x34f43d;logger[_0x5aa39d('0x2')](JSON[_0x5aa39d('0x12')](_0x153ff0));});});},Migration[_0x1fc252('0x10')][_0x1fc252('0x11')]=function(_0x113149,_0x15b91,_0x3dc130){const _0xad56bc=_0x1fc252,_0x469a9f=this;this[_0xad56bc('0x2d')][_0xad56bc('0xe')](function(){const _0x4891d1=_0xad56bc;return _0x469a9f[_0x4891d1('0x13')]['addIndex'](_0x113149,_0x15b91,{'indexName':_0x3dc130})[_0x4891d1('0x5')](function(){const _0x214b65=_0x4891d1;logger[_0x214b65('0x2')](_0x214b65('0xf'),_0x113149,_0x15b91[_0x214b65('0xc')](','),_0x3dc130);})[_0x4891d1('0x8')](function(_0xdbb2f){const _0x1c0140=_0x4891d1;logger[_0x1c0140('0x2')](JSON[_0x1c0140('0x12')](_0xdbb2f));});});},Migration['prototype'][_0x1fc252('0x2b')]=function(_0x398a8a){const _0x531730=_0x1fc252,_0x48d8e4=this;this['sequence'][_0x531730('0xe')](function(){const _0x9df99d=_0x531730;return _0x48d8e4[_0x9df99d('0x13')][_0x9df99d('0x15')][_0x9df99d('0x2b')](_0x398a8a)['then'](function(){const _0x3787b3=_0x9df99d;logger[_0x3787b3('0x2')](_0x3787b3('0xd'),_0x398a8a);})['catch'](function(_0x174a71){const _0x3049a7=_0x9df99d;logger['info'](JSON[_0x3049a7('0x12')](_0x174a71));});});},Migration['prototype'][_0x1fc252('0x2a')]=function(_0x2cf509,_0xcd7685){const _0x2487b4=this;this['sequence']['enqueue'](function(){const _0x2d3809=a927_0x2288;return _0x2487b4['queryInterface'][_0x2d3809('0x2a')](_0x2cf509,_0xcd7685)[_0x2d3809('0x5')](function(){const _0x439b88=_0x2d3809;logger[_0x439b88('0x2')](_0x439b88('0x25'),_0xcd7685,_0x2cf509);})[_0x2d3809('0x8')](function(_0x3e489c){const _0x4365f0=_0x2d3809;logger[_0x4365f0('0x2')](util['inspect'](_0x3e489c,{'showHidden':![],'depth':null}));});});},Migration[_0x1fc252('0x10')]['final']=function(_0x1efdd1){const _0xdf1bba=_0x1fc252;this[_0xdf1bba('0x2d')]['enqueue'](function(){return _0x1efdd1();});},module['exports']={'up':function(_0x324f51,_0x3a39fe){return new Promise(function(_0x53f4ed){const _0x120369=a927_0x2288,_0x5f5216=new Migration(_0x324f51);_0x5f5216[_0x120369('0x4')]('settings','turnaddr',{'type':_0x3a39fe['STRING']}),_0x5f5216[_0x120369('0x4')](_0x120369('0x2e'),_0x120369('0x2f'),{'type':_0x3a39fe['STRING']}),_0x5f5216['addColumn']('settings',_0x120369('0x32'),{'type':_0x3a39fe[_0x120369('0x1e')]}),_0x5f5216[_0x120369('0x4')](_0x120369('0x1d'),'rtcp_mux',{'type':_0x3a39fe[_0x120369('0x17')](_0x120369('0xb'),'no'),'defaultValue':'no'}),_0x5f5216[_0x120369('0x2b')](_0x120369('0x1f')),_0x5f5216[_0x120369('0x4')]('sms_interactions',_0x120369('0x14'),{'type':_0x3a39fe[_0x120369('0x17')]('in',_0x120369('0x26')),'defaultValue':'in','allowNull':![]}),_0x5f5216[_0x120369('0x2b')]('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;'),_0x5f5216[_0x120369('0x4')](_0x120369('0x1b'),_0x120369('0x14'),{'type':_0x3a39fe['ENUM']('in',_0x120369('0x26')),'defaultValue':'in','allowNull':![]}),_0x5f5216[_0x120369('0x2b')]('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;'),_0x5f5216[_0x120369('0x4')](_0x120369('0x1c'),'firstMsgDirection',{'type':_0x3a39fe['ENUM']('in','out'),'defaultValue':'in','allowNull':![]}),_0x5f5216[_0x120369('0x2b')](_0x120369('0x20'));try{fs[_0x120369('0x16')](_0x120369('0x2c'),_0x120369('0x23'),{'encoding':_0x120369('0x0')}),fs[_0x120369('0x16')](_0x120369('0x29'),_0x120369('0x19'),{'encoding':_0x120369('0x0')});let _0x4bfe04=fs[_0x120369('0x30')](_0x120369('0x1'),{'encoding':_0x120369('0x0')});_0x4bfe04=_[_0x120369('0xa')](_0x4bfe04,_0x120369('0x31'),_0x120369('0x7')),fs[_0x120369('0x16')](_0x120369('0x1'),_0x4bfe04,{'encoding':_0x120369('0x0')}),fs['appendFileSync'](_0x120369('0x21'),_0x120369('0x27'),{'encoding':_0x120369('0x0')});}catch(_0x5d3c8f){logger[_0x120369('0x2')](JSON[_0x120369('0x12')](_0x5d3c8f));}_0x5f5216[_0x120369('0x28')](_0x53f4ed);});},'down':function(){}}; \ No newline at end of file +const a927_0x5486=[';\x20TURN\x20server\x20list\x0a','sequelize','fax_interactions','[ice_host_candidates]','#include\x20\x22stun_xcally.conf\x22','out','mail_interactions','replace','../config/logger','STRING','catch','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;','utf8','settings','sequence','info','addIndex','appendFileSync','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;','Added\x20column\x20%s\x20to\x20%s','addColumn','readFileSync','join','enqueue','query','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','firstMsgDirection','ENUM','turnpassword','users','/etc/asterisk/turn_xcally.conf','/etc/asterisk/res_stun_monitor.conf','query\x20%s','final','turnusername','lodash','inspect','stringify','/etc/asterisk/stun_xcally.conf','Removed\x20column\x20%s\x20from\x20%s','then','changeColumn','dropTable','table\x20dropped\x20%s','migration','exports','finally','turnaddr',';\x20STUN\x20server\x20list\x0a','#include\x20\x22stun_xcally.conf\x22\x0a#include\x20\x22turn_xcally.conf\x22\x0a[ice_host_candidates]','removeColumn','yes','/etc/asterisk/rtp.conf','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;','sms_interactions','prototype','queryInterface'];(function(_0x224b25,_0x5486a2){const _0x45a770=function(_0x400e85){while(--_0x400e85){_0x224b25['push'](_0x224b25['shift']());}};_0x45a770(++_0x5486a2);}(a927_0x5486,0x195));const a927_0x45a7=function(_0x224b25,_0x5486a2){_0x224b25=_0x224b25-0x0;let _0x45a770=a927_0x5486[_0x224b25];return _0x45a770;};const _0x1dd992=a927_0x45a7;'use strict';const fs=require('fs'),util=require('util'),_=require(_0x1dd992('0x2d')),logger=require(_0x1dd992('0x10'))(_0x1dd992('0x36')),Sequence=function(){};Sequence[_0x1dd992('0x6')]['enqueue']=function(_0x400e85){const _0x10057d=_0x1dd992;this['tail']=this[_0x10057d('0x23')]?this[_0x10057d('0x23')][_0x10057d('0x38')](_0x400e85):_0x400e85();};const Migration=function(_0x2bca54){const _0x475009=_0x1dd992;this[_0x475009('0x7')]=_0x2bca54,this[_0x475009('0x17')]=new Sequence();};Migration['prototype'][_0x1dd992('0x33')]=function(_0x33e063,_0x122d6c,_0x48acdb){const _0x57a5d=_0x1dd992,_0x14ccf1=this;this[_0x57a5d('0x17')][_0x57a5d('0x20')](function(){const _0x49e82e=_0x57a5d;return _0x14ccf1[_0x49e82e('0x7')]['changeColumn'](_0x33e063,_0x122d6c,_0x48acdb)['then'](function(){const _0x1b87fa=_0x49e82e;logger[_0x1b87fa('0x18')](_0x1b87fa('0x22'),_0x122d6c,_0x33e063);})[_0x49e82e('0x12')](function(_0x4c31b3){logger['info'](JSON['stringify'](_0x4c31b3));});});},Migration[_0x1dd992('0x6')][_0x1dd992('0x1d')]=function(_0x4a42c9,_0x1c1fe8,_0x215bca){const _0x22ed8a=_0x1dd992,_0x44e1ef=this;this[_0x22ed8a('0x17')][_0x22ed8a('0x20')](function(){const _0x565c8e=_0x22ed8a;return _0x44e1ef[_0x565c8e('0x7')][_0x565c8e('0x1d')](_0x4a42c9,_0x1c1fe8,_0x215bca)[_0x565c8e('0x32')](function(){const _0x4e7a52=_0x565c8e;logger[_0x4e7a52('0x18')](_0x4e7a52('0x1c'),_0x1c1fe8,_0x4a42c9);})[_0x565c8e('0x12')](function(_0x5e2c23){const _0x1f624a=_0x565c8e;logger['info'](JSON[_0x1f624a('0x2f')](_0x5e2c23));});});},Migration[_0x1dd992('0x6')][_0x1dd992('0x34')]=function(_0x2e23ab){const _0x6fcb15=_0x1dd992,_0x499338=this;this['sequence'][_0x6fcb15('0x20')](function(){const _0x1eb312=_0x6fcb15;return _0x499338[_0x1eb312('0x7')][_0x1eb312('0x34')](_0x2e23ab,{'force':!![]})[_0x1eb312('0x32')](function(){const _0xd815=_0x1eb312;logger['info'](_0xd815('0x35'),_0x2e23ab);})[_0x1eb312('0x12')](function(_0x4fcc8c){const _0xa9e6ec=_0x1eb312;logger[_0xa9e6ec('0x18')](JSON[_0xa9e6ec('0x2f')](_0x4fcc8c));});});},Migration[_0x1dd992('0x6')][_0x1dd992('0x19')]=function(_0x211af0,_0x5e480f,_0x483432){const _0x366c5a=_0x1dd992,_0x38f1a2=this;this[_0x366c5a('0x17')][_0x366c5a('0x20')](function(){const _0x31880e=_0x366c5a;return _0x38f1a2[_0x31880e('0x7')]['addIndex'](_0x211af0,_0x5e480f,{'indexName':_0x483432})[_0x31880e('0x32')](function(){const _0x2f7681=_0x31880e;logger[_0x2f7681('0x18')]('addIndex\x20%s\x20%s\x20%s',_0x211af0,_0x5e480f[_0x2f7681('0x1f')](','),_0x483432);})[_0x31880e('0x12')](function(_0x3ec137){const _0x36f2f4=_0x31880e;logger[_0x36f2f4('0x18')](JSON[_0x36f2f4('0x2f')](_0x3ec137));});});},Migration['prototype']['query']=function(_0x20d7b3){const _0x2c7553=_0x1dd992,_0xc8770a=this;this[_0x2c7553('0x17')][_0x2c7553('0x20')](function(){const _0x20913c=_0x2c7553;return _0xc8770a[_0x20913c('0x7')][_0x20913c('0x9')][_0x20913c('0x21')](_0x20d7b3)[_0x20913c('0x32')](function(){const _0x13ac8a=_0x20913c;logger[_0x13ac8a('0x18')](_0x13ac8a('0x2a'),_0x20d7b3);})[_0x20913c('0x12')](function(_0xf04606){const _0x4e340f=_0x20913c;logger['info'](JSON[_0x4e340f('0x2f')](_0xf04606));});});},Migration[_0x1dd992('0x6')][_0x1dd992('0x1')]=function(_0x23d2e8,_0xe009f2){const _0x9b6ca3=_0x1dd992,_0x4f1ea8=this;this['sequence'][_0x9b6ca3('0x20')](function(){const _0x1eba69=_0x9b6ca3;return _0x4f1ea8[_0x1eba69('0x7')]['removeColumn'](_0x23d2e8,_0xe009f2)[_0x1eba69('0x32')](function(){const _0x325425=_0x1eba69;logger[_0x325425('0x18')](_0x325425('0x31'),_0xe009f2,_0x23d2e8);})[_0x1eba69('0x12')](function(_0x59e01a){const _0x5f25f9=_0x1eba69;logger[_0x5f25f9('0x18')](util[_0x5f25f9('0x2e')](_0x59e01a,{'showHidden':![],'depth':null}));});});},Migration[_0x1dd992('0x6')][_0x1dd992('0x2b')]=function(_0x3b9e03){const _0x305801=_0x1dd992;this[_0x305801('0x17')][_0x305801('0x20')](function(){return _0x3b9e03();});},module[_0x1dd992('0x37')]={'up':function(_0x5e60ed,_0x1f3b44){return new Promise(function(_0x1e7b0f){const _0x15a102=a927_0x45a7,_0x2061a3=new Migration(_0x5e60ed);_0x2061a3['addColumn']('settings',_0x15a102('0x39'),{'type':_0x1f3b44['STRING']}),_0x2061a3['addColumn'](_0x15a102('0x16'),_0x15a102('0x2c'),{'type':_0x1f3b44[_0x15a102('0x11')]}),_0x2061a3['addColumn'](_0x15a102('0x16'),_0x15a102('0x26'),{'type':_0x1f3b44[_0x15a102('0x11')]}),_0x2061a3[_0x15a102('0x1d')](_0x15a102('0x27'),'rtcp_mux',{'type':_0x1f3b44['ENUM'](_0x15a102('0x2'),'no'),'defaultValue':'no'}),_0x2061a3[_0x15a102('0x21')]('UPDATE\x20users\x20SET\x20rtcp_mux=\x27yes\x27\x20WHERE\x20showWebBar=2'),_0x2061a3[_0x15a102('0x1d')](_0x15a102('0x5'),_0x15a102('0x24'),{'type':_0x1f3b44[_0x15a102('0x25')]('in',_0x15a102('0xd')),'defaultValue':'in','allowNull':![]}),_0x2061a3['query'](_0x15a102('0x1b')),_0x2061a3[_0x15a102('0x1d')](_0x15a102('0xe'),_0x15a102('0x24'),{'type':_0x1f3b44[_0x15a102('0x25')]('in',_0x15a102('0xd')),'defaultValue':'in','allowNull':![]}),_0x2061a3['query'](_0x15a102('0x4')),_0x2061a3['addColumn'](_0x15a102('0xa'),_0x15a102('0x24'),{'type':_0x1f3b44[_0x15a102('0x25')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x2061a3[_0x15a102('0x21')](_0x15a102('0x14'));try{fs['writeFileSync'](_0x15a102('0x30'),_0x15a102('0x3a'),{'encoding':'utf8'}),fs[_0x15a102('0x13')](_0x15a102('0x28'),_0x15a102('0x8'),{'encoding':_0x15a102('0x15')});let _0x6ab3e1=fs[_0x15a102('0x1e')](_0x15a102('0x3'),{'encoding':_0x15a102('0x15')});_0x6ab3e1=_[_0x15a102('0xf')](_0x6ab3e1,_0x15a102('0xb'),_0x15a102('0x0')),fs[_0x15a102('0x13')](_0x15a102('0x3'),_0x6ab3e1,{'encoding':'utf8'}),fs[_0x15a102('0x1a')](_0x15a102('0x29'),_0x15a102('0xc'),{'encoding':_0x15a102('0x15')});}catch(_0x9e2045){logger[_0x15a102('0x18')](JSON[_0x15a102('0x2f')](_0x9e2045));}_0x2061a3['final'](_0x1e7b0f);});},'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 8516eda..2085db4 100644 --- a/server/migrations/2.0.49.js +++ b/server/migrations/2.0.49.js @@ -1 +1 @@ -const a928_0x4ff1=['users','Removed\x20column\x20%s\x20from\x20%s','dialAgiAfterHangupAgent','phoneBarOutboundProxy','offlineMessageBody','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());','cm_hopper_final','then','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());','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\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());','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','query\x20%s','join','dialQueueProject2','stringify','query','prototype','tail','Added\x20column\x20%s\x20to\x20%s','DATE','exports','dropTable','finally','inspect','changeColumn','sequence','final','dialAgiAfterHangupClient','voice_queues','enqueue','BOOLEAN','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());','STRING','Changed\x20column\x20%s\x20in\x20table\x20%s','info','password','addColumn','chat_websites','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','catch','allowmessenger','senderString','basic','deliveryReport','sms_accounts','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','agiafterat','queryInterface'];(function(_0x26e389,_0x4ff17a){const _0xe2a9fc=function(_0x53af93){while(--_0x53af93){_0x26e389['push'](_0x26e389['shift']());}};_0xe2a9fc(++_0x4ff17a);}(a928_0x4ff1,0x1c5));const a928_0xe2a9=function(_0x26e389,_0x4ff17a){_0x26e389=_0x26e389-0x0;let _0xe2a9fc=a928_0x4ff1[_0x26e389];return _0xe2a9fc;};const _0x55a10b=a928_0xe2a9;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x55a10b('0xe')][_0x55a10b('0x1b')]=function(_0x53af93){const _0x160346=_0x55a10b;this[_0x160346('0xf')]=this['tail']?this['tail'][_0x160346('0x14')](_0x53af93):_0x53af93();};const Migration=function(_0x5b0005){const _0x3b9978=_0x55a10b;this[_0x3b9978('0x2e')]=_0x5b0005,this[_0x3b9978('0x17')]=new Sequence();};Migration[_0x55a10b('0xe')][_0x55a10b('0x16')]=function(_0xd7dbea,_0x2cb105,_0x55b55d){const _0x3c62d5=_0x55a10b,_0x457f59=this;this[_0x3c62d5('0x17')][_0x3c62d5('0x1b')](function(){const _0x4ef470=_0x3c62d5;return _0x457f59['queryInterface']['changeColumn'](_0xd7dbea,_0x2cb105,_0x55b55d)[_0x4ef470('0x4')](function(){const _0x501a9d=_0x4ef470;logger[_0x501a9d('0x20')](_0x501a9d('0x1f'),_0x2cb105,_0xd7dbea);})[_0x4ef470('0x25')](function(_0x56456b){const _0x28ec7f=_0x4ef470;logger[_0x28ec7f('0x20')](JSON['stringify'](_0x56456b));});});},Migration[_0x55a10b('0xe')][_0x55a10b('0x22')]=function(_0x431cd4,_0x38f610,_0x3b7e67){const _0x341458=_0x55a10b,_0xc9d9a5=this;this[_0x341458('0x17')][_0x341458('0x1b')](function(){const _0x2d4245=_0x341458;return _0xc9d9a5[_0x2d4245('0x2e')][_0x2d4245('0x22')](_0x431cd4,_0x38f610,_0x3b7e67)[_0x2d4245('0x4')](function(){const _0x1bbe87=_0x2d4245;logger[_0x1bbe87('0x20')](_0x1bbe87('0x10'),_0x38f610,_0x431cd4);})['catch'](function(_0x452811){const _0x3ee07d=_0x2d4245;logger['info'](JSON[_0x3ee07d('0xc')](_0x452811));});});},Migration[_0x55a10b('0xe')][_0x55a10b('0x13')]=function(_0x4928c9){const _0x1dde42=_0x55a10b,_0x39375c=this;this[_0x1dde42('0x17')][_0x1dde42('0x1b')](function(){const _0x2166f9=_0x1dde42;return _0x39375c[_0x2166f9('0x2e')][_0x2166f9('0x13')](_0x4928c9,{'force':!![]})[_0x2166f9('0x4')](function(){const _0x2ea3fc=_0x2166f9;logger[_0x2ea3fc('0x20')]('table\x20dropped\x20%s',_0x4928c9);})[_0x2166f9('0x25')](function(_0x4765b1){const _0xc28113=_0x2166f9;logger[_0xc28113('0x20')](JSON[_0xc28113('0xc')](_0x4765b1));});});},Migration[_0x55a10b('0xe')][_0x55a10b('0x6')]=function(_0x1d81cb,_0x15741e,_0x8a27c3){const _0x3fab71=_0x55a10b,_0x26eef8=this;this[_0x3fab71('0x17')]['enqueue'](function(){const _0x1ec53d=_0x3fab71;return _0x26eef8[_0x1ec53d('0x2e')][_0x1ec53d('0x6')](_0x1d81cb,_0x15741e,{'indexName':_0x8a27c3})[_0x1ec53d('0x4')](function(){const _0x3a1476=_0x1ec53d;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x1d81cb,_0x15741e[_0x3a1476('0xa')](','),_0x8a27c3);})[_0x1ec53d('0x25')](function(_0x5d98f0){const _0x3a5540=_0x1ec53d;logger[_0x3a5540('0x20')](JSON[_0x3a5540('0xc')](_0x5d98f0));});});},Migration['prototype'][_0x55a10b('0xd')]=function(_0x182a07){const _0x58ba34=_0x55a10b,_0x74940=this;this[_0x58ba34('0x17')][_0x58ba34('0x1b')](function(){const _0x3b0d29=_0x58ba34;return _0x74940[_0x3b0d29('0x2e')]['sequelize'][_0x3b0d29('0xd')](_0x182a07)[_0x3b0d29('0x4')](function(){const _0x451f0b=_0x3b0d29;logger[_0x451f0b('0x20')](_0x451f0b('0x9'),_0x182a07);})[_0x3b0d29('0x25')](function(_0x1d84e2){const _0x58a65c=_0x3b0d29;logger['info'](JSON[_0x58a65c('0xc')](_0x1d84e2));});});},Migration[_0x55a10b('0xe')]['removeColumn']=function(_0xa05455,_0x5b0df2){const _0x257bb6=_0x55a10b,_0x3c32aa=this;this[_0x257bb6('0x17')][_0x257bb6('0x1b')](function(){const _0x2c69b5=_0x257bb6;return _0x3c32aa[_0x2c69b5('0x2e')]['removeColumn'](_0xa05455,_0x5b0df2)[_0x2c69b5('0x4')](function(){const _0xfc0df=_0x2c69b5;logger[_0xfc0df('0x20')](_0xfc0df('0x30'),_0x5b0df2,_0xa05455);})['catch'](function(_0x1621d7){const _0x5a4e29=_0x2c69b5;logger['info'](util[_0x5a4e29('0x15')](_0x1621d7,{'showHidden':![],'depth':null}));});});},Migration[_0x55a10b('0xe')][_0x55a10b('0x18')]=function(_0x47c611){const _0x192d70=_0x55a10b;this[_0x192d70('0x17')][_0x192d70('0x1b')](function(){return _0x47c611();});},module[_0x55a10b('0x12')]={'up':function(_0xf0d0cf,_0x1155b7){return new Promise(function(_0x286181){const _0x31ef74=a928_0xe2a9,_0x503fac=new Migration(_0xf0d0cf);_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x2a'),'smsMethod',{'type':_0x1155b7['ENUM'](_0x31ef74('0x28'),'classic','classic+')}),_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x2a'),'username',{'type':_0x1155b7[_0x31ef74('0x1e')]}),_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x2a'),_0x31ef74('0x21'),{'type':_0x1155b7[_0x31ef74('0x1e')]}),_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x2a'),_0x31ef74('0x27'),{'type':_0x1155b7[_0x31ef74('0x1e')]}),_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x2a'),_0x31ef74('0x29'),{'type':_0x1155b7['BOOLEAN'],'defaultValue':![]}),_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x2f'),_0x31ef74('0x26'),{'type':_0x1155b7[_0x31ef74('0x1c')],'defaultValue':!![]}),_0x503fac['addColumn']('users',_0x31ef74('0x0'),{'type':_0x1155b7['STRING']}),_0x503fac['addColumn'](_0x31ef74('0x23'),'offlineMessageSubject',{'type':_0x1155b7[_0x31ef74('0x1e')],'defaultValue':'New\x20offline\x20message\x20from\x20websiteName'}),_0x503fac['addColumn']('chat_websites',_0x31ef74('0x1'),{'type':_0x1155b7[_0x31ef74('0x1e')],'defaultValue':_0x31ef74('0x2c')}),_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x1a'),_0x31ef74('0xb'),{'type':_0x1155b7[_0x31ef74('0x1e')]}),_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x1a'),_0x31ef74('0x19'),{'type':_0x1155b7[_0x31ef74('0x1c')],'defaultValue':![]}),_0x503fac[_0x31ef74('0x22')](_0x31ef74('0x1a'),_0x31ef74('0x31'),{'type':_0x1155b7['BOOLEAN'],'defaultValue':![]}),_0x503fac[_0x31ef74('0xd')](_0x31ef74('0x8')),_0x503fac[_0x31ef74('0xd')](_0x31ef74('0x1d')),_0x503fac['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());'),_0x503fac['query'](_0x31ef74('0x24')),_0x503fac[_0x31ef74('0xd')](_0x31ef74('0x2b')),_0x503fac[_0x31ef74('0xd')](_0x31ef74('0x2')),_0x503fac[_0x31ef74('0xd')](_0x31ef74('0x7')),_0x503fac['query'](_0x31ef74('0x5')),_0x503fac['addColumn'](_0x31ef74('0x3'),_0x31ef74('0x2d'),{'type':_0x1155b7[_0x31ef74('0x11')]}),_0x503fac[_0x31ef74('0x18')](_0x286181);});},'down':function(){}}; \ No newline at end of file +const a928_0x33ef=['DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x204','dialAgiAfterHangupAgent','removeColumn','addIndex','../config/logger','sequence','voice_queues','STRING','then','dialAgiAfterHangupClient','username','changeColumn','queryInterface','DATE','enqueue','classic','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','password','classic+','Added\x20column\x20%s\x20to\x20%s','addColumn','users','tail','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());','offlineMessageBody','migration','sms_accounts','query','table\x20dropped\x20%s','allowmessenger','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());','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-dialer\x27\x20AND\x20`priority`=\x2011','info','final','deliveryReport','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());','prototype','phoneBarOutboundProxy','You\x20received\x20a\x20new\x20offline\x20message\x20from\x20websiteName.\x20Here\x20you\x20can\x20find\x20the\x20details\x20of\x20the\x20request:','offlineMessageSubject','basic','cm_hopper_final','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x2712\x27,\x20\x27Hangup\x27,\x20\x27system\x27,\x20\x27dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','catch','chat_websites','New\x20offline\x20message\x20from\x20websiteName','query\x20%s','dropTable','stringify','BOOLEAN','util'];(function(_0x4e182b,_0x33ef32){const _0x38d16c=function(_0x5999fc){while(--_0x5999fc){_0x4e182b['push'](_0x4e182b['shift']());}};_0x38d16c(++_0x33ef32);}(a928_0x33ef,0xa7));const a928_0x38d1=function(_0x4e182b,_0x33ef32){_0x4e182b=_0x4e182b-0x0;let _0x38d16c=a928_0x33ef[_0x4e182b];return _0x38d16c;};const _0x5bdff3=a928_0x38d1;'use strict';const util=require(_0x5bdff3('0x28')),logger=require(_0x5bdff3('0x2d'))(_0x5bdff3('0xf')),Sequence=function(){};Sequence[_0x5bdff3('0x1a')]['enqueue']=function(_0x5999fc){const _0x28cf16=_0x5bdff3;this[_0x28cf16('0xc')]=this[_0x28cf16('0xc')]?this[_0x28cf16('0xc')]['finally'](_0x5999fc):_0x5999fc();};const Migration=function(_0x18954a){const _0x4618cc=_0x5bdff3;this[_0x4618cc('0x1')]=_0x18954a,this[_0x4618cc('0x2e')]=new Sequence();};Migration[_0x5bdff3('0x1a')][_0x5bdff3('0x0')]=function(_0x5d396d,_0x3de4c5,_0xa33ae5){const _0x55e6eb=_0x5bdff3,_0xd6cbd5=this;this[_0x55e6eb('0x2e')]['enqueue'](function(){const _0x122f31=_0x55e6eb;return _0xd6cbd5[_0x122f31('0x1')][_0x122f31('0x0')](_0x5d396d,_0x3de4c5,_0xa33ae5)[_0x122f31('0x31')](function(){const _0x15991b=_0x122f31;logger[_0x15991b('0x16')](_0x15991b('0x5'),_0x3de4c5,_0x5d396d);})[_0x122f31('0x21')](function(_0x4d7ab2){const _0x3efc5a=_0x122f31;logger['info'](JSON[_0x3efc5a('0x26')](_0x4d7ab2));});});},Migration[_0x5bdff3('0x1a')][_0x5bdff3('0xa')]=function(_0x140979,_0x547bca,_0xcc0a33){const _0x4a45cf=_0x5bdff3,_0x7b996=this;this[_0x4a45cf('0x2e')]['enqueue'](function(){const _0x158e6d=_0x4a45cf;return _0x7b996[_0x158e6d('0x1')][_0x158e6d('0xa')](_0x140979,_0x547bca,_0xcc0a33)[_0x158e6d('0x31')](function(){const _0x5c6609=_0x158e6d;logger['info'](_0x5c6609('0x9'),_0x547bca,_0x140979);})[_0x158e6d('0x21')](function(_0x35ffcf){const _0x3213c3=_0x158e6d;logger[_0x3213c3('0x16')](JSON[_0x3213c3('0x26')](_0x35ffcf));});});},Migration['prototype'][_0x5bdff3('0x25')]=function(_0x11eb9e){const _0x114cea=_0x5bdff3,_0x13cd7c=this;this[_0x114cea('0x2e')][_0x114cea('0x3')](function(){const _0x32a5e0=_0x114cea;return _0x13cd7c[_0x32a5e0('0x1')][_0x32a5e0('0x25')](_0x11eb9e,{'force':!![]})[_0x32a5e0('0x31')](function(){const _0x51adc8=_0x32a5e0;logger[_0x51adc8('0x16')](_0x51adc8('0x12'),_0x11eb9e);})['catch'](function(_0x4aed97){const _0x1d7018=_0x32a5e0;logger[_0x1d7018('0x16')](JSON['stringify'](_0x4aed97));});});},Migration['prototype']['addIndex']=function(_0x6227b2,_0x531f24,_0xc31302){const _0x2ebd67=_0x5bdff3,_0x42c92c=this;this[_0x2ebd67('0x2e')][_0x2ebd67('0x3')](function(){const _0x4c71d2=_0x2ebd67;return _0x42c92c['queryInterface'][_0x4c71d2('0x2c')](_0x6227b2,_0x531f24,{'indexName':_0xc31302})[_0x4c71d2('0x31')](function(){const _0x5cb749=_0x4c71d2;logger[_0x5cb749('0x16')]('addIndex\x20%s\x20%s\x20%s',_0x6227b2,_0x531f24['join'](','),_0xc31302);})[_0x4c71d2('0x21')](function(_0x44862b){const _0x136db7=_0x4c71d2;logger[_0x136db7('0x16')](JSON[_0x136db7('0x26')](_0x44862b));});});},Migration[_0x5bdff3('0x1a')][_0x5bdff3('0x11')]=function(_0x1252f3){const _0x18a0a4=this;this['sequence']['enqueue'](function(){const _0x575756=a928_0x38d1;return _0x18a0a4[_0x575756('0x1')][_0x575756('0x6')][_0x575756('0x11')](_0x1252f3)[_0x575756('0x31')](function(){const _0x19421c=_0x575756;logger[_0x19421c('0x16')](_0x19421c('0x24'),_0x1252f3);})[_0x575756('0x21')](function(_0x372b68){const _0x35f36e=_0x575756;logger[_0x35f36e('0x16')](JSON[_0x35f36e('0x26')](_0x372b68));});});},Migration[_0x5bdff3('0x1a')]['removeColumn']=function(_0x4426be,_0x64dea6){const _0x31c1d2=_0x5bdff3,_0x3a2813=this;this[_0x31c1d2('0x2e')]['enqueue'](function(){const _0x44a622=_0x31c1d2;return _0x3a2813['queryInterface'][_0x44a622('0x2b')](_0x4426be,_0x64dea6)[_0x44a622('0x31')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x64dea6,_0x4426be);})[_0x44a622('0x21')](function(_0x49ee8d){const _0x330b20=_0x44a622;logger[_0x330b20('0x16')](util['inspect'](_0x49ee8d,{'showHidden':![],'depth':null}));});});},Migration[_0x5bdff3('0x1a')][_0x5bdff3('0x17')]=function(_0x57cc13){const _0x3e7e29=_0x5bdff3;this[_0x3e7e29('0x2e')][_0x3e7e29('0x3')](function(){return _0x57cc13();});},module['exports']={'up':function(_0x4d2847,_0x21e14a){return new Promise(function(_0x359feb){const _0xb07d20=a928_0x38d1,_0x17297c=new Migration(_0x4d2847);_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x10'),'smsMethod',{'type':_0x21e14a['ENUM'](_0xb07d20('0x1e'),_0xb07d20('0x4'),_0xb07d20('0x8'))}),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x10'),_0xb07d20('0x33'),{'type':_0x21e14a[_0xb07d20('0x30')]}),_0x17297c['addColumn'](_0xb07d20('0x10'),_0xb07d20('0x7'),{'type':_0x21e14a[_0xb07d20('0x30')]}),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x10'),'senderString',{'type':_0x21e14a['STRING']}),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x10'),_0xb07d20('0x18'),{'type':_0x21e14a['BOOLEAN'],'defaultValue':![]}),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0xb'),_0xb07d20('0x13'),{'type':_0x21e14a[_0xb07d20('0x27')],'defaultValue':!![]}),_0x17297c['addColumn'](_0xb07d20('0xb'),_0xb07d20('0x1b'),{'type':_0x21e14a[_0xb07d20('0x30')]}),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x22'),_0xb07d20('0x1d'),{'type':_0x21e14a[_0xb07d20('0x30')],'defaultValue':_0xb07d20('0x23')}),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x22'),_0xb07d20('0xe'),{'type':_0x21e14a['STRING'],'defaultValue':_0xb07d20('0x1c')}),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x2f'),'dialQueueProject2',{'type':_0x21e14a[_0xb07d20('0x30')]}),_0x17297c[_0xb07d20('0xa')]('voice_queues',_0xb07d20('0x32'),{'type':_0x21e14a[_0xb07d20('0x27')],'defaultValue':![]}),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x2f'),_0xb07d20('0x2a'),{'type':_0x21e14a[_0xb07d20('0x27')],'defaultValue':![]}),_0x17297c[_0xb07d20('0x11')](_0xb07d20('0x15')),_0x17297c[_0xb07d20('0x11')](_0xb07d20('0x14')),_0x17297c[_0xb07d20('0x11')](_0xb07d20('0x20')),_0x17297c[_0xb07d20('0x11')](_0xb07d20('0x29')),_0x17297c[_0xb07d20('0x11')]('DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x205'),_0x17297c[_0xb07d20('0x11')]('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());'),_0x17297c[_0xb07d20('0x11')](_0xb07d20('0x19')),_0x17297c[_0xb07d20('0x11')](_0xb07d20('0xd')),_0x17297c[_0xb07d20('0xa')](_0xb07d20('0x1f'),'agiafterat',{'type':_0x21e14a[_0xb07d20('0x2')]}),_0x17297c[_0xb07d20('0x17')](_0x359feb);});},'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 a2587d7..5a2a7d0 100644 --- a/server/migrations/2.0.50.js +++ b/server/migrations/2.0.50.js @@ -1 +1 @@ -const a929_0x21b1=['catch','prototype','dialMethod','util','migration','progressive','dropTable','addColumn','preview','power','enqueue','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','predictive','Removed\x20column\x20%s\x20from\x20%s','tail','sequence','query\x20%s','voice_queues','Changed\x20column\x20%s\x20in\x20table\x20%s','info','sequelize','stringify','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());','table\x20dropped\x20%s','exports','queryInterface','sms_messages','removeColumn','messageId','changeColumn','ENUM','join','STRING','final','addIndex','finally','query','addIndex\x20%s\x20%s\x20%s','then'];(function(_0x2edbc5,_0x21b198){const _0x4723b3=function(_0x5edfa6){while(--_0x5edfa6){_0x2edbc5['push'](_0x2edbc5['shift']());}};_0x4723b3(++_0x21b198);}(a929_0x21b1,0x1af));const a929_0x4723=function(_0x2edbc5,_0x21b198){_0x2edbc5=_0x2edbc5-0x0;let _0x4723b3=a929_0x21b1[_0x2edbc5];return _0x4723b3;};const _0x5e85dd=a929_0x4723;'use strict';const util=require(_0x5e85dd('0x1')),logger=require('../config/logger')(_0x5e85dd('0x2')),Sequence=function(){};Sequence[_0x5e85dd('0x26')]['enqueue']=function(_0x5edfa6){const _0x14fe62=_0x5e85dd;this[_0x14fe62('0xc')]=this[_0x14fe62('0xc')]?this['tail'][_0x14fe62('0x21')](_0x5edfa6):_0x5edfa6();};const Migration=function(_0x11c4dd){this['queryInterface']=_0x11c4dd,this['sequence']=new Sequence();};Migration[_0x5e85dd('0x26')]['changeColumn']=function(_0x5e07d4,_0x11ef05,_0x86acef){const _0x56d48d=_0x5e85dd,_0x255d3b=this;this[_0x56d48d('0xd')][_0x56d48d('0x8')](function(){const _0xdc5215=_0x56d48d;return _0x255d3b['queryInterface'][_0xdc5215('0x1b')](_0x5e07d4,_0x11ef05,_0x86acef)[_0xdc5215('0x24')](function(){const _0x345c15=_0xdc5215;logger[_0x345c15('0x11')](_0x345c15('0x10'),_0x11ef05,_0x5e07d4);})[_0xdc5215('0x25')](function(_0x51f3bd){const _0x7788ed=_0xdc5215;logger[_0x7788ed('0x11')](JSON[_0x7788ed('0x13')](_0x51f3bd));});});},Migration[_0x5e85dd('0x26')][_0x5e85dd('0x5')]=function(_0x1973ad,_0x5c6336,_0x2ec068){const _0x3e579e=_0x5e85dd,_0x2b2eeb=this;this[_0x3e579e('0xd')][_0x3e579e('0x8')](function(){const _0x3e0679=_0x3e579e;return _0x2b2eeb[_0x3e0679('0x17')][_0x3e0679('0x5')](_0x1973ad,_0x5c6336,_0x2ec068)[_0x3e0679('0x24')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x5c6336,_0x1973ad);})[_0x3e0679('0x25')](function(_0x4732b2){logger['info'](JSON['stringify'](_0x4732b2));});});},Migration[_0x5e85dd('0x26')][_0x5e85dd('0x4')]=function(_0x386613){const _0x11e4d4=_0x5e85dd,_0x38e096=this;this[_0x11e4d4('0xd')]['enqueue'](function(){const _0x1f651f=_0x11e4d4;return _0x38e096[_0x1f651f('0x17')][_0x1f651f('0x4')](_0x386613,{'force':!![]})['then'](function(){const _0x227155=_0x1f651f;logger[_0x227155('0x11')](_0x227155('0x15'),_0x386613);})['catch'](function(_0x229f61){const _0x4973a8=_0x1f651f;logger[_0x4973a8('0x11')](JSON[_0x4973a8('0x13')](_0x229f61));});});},Migration['prototype'][_0x5e85dd('0x20')]=function(_0x1fe6d5,_0x3efd2f,_0x578ef7){const _0x5013e6=_0x5e85dd,_0x26730b=this;this[_0x5013e6('0xd')]['enqueue'](function(){const _0x1204b2=_0x5013e6;return _0x26730b['queryInterface'][_0x1204b2('0x20')](_0x1fe6d5,_0x3efd2f,{'indexName':_0x578ef7})[_0x1204b2('0x24')](function(){const _0x2fd4df=_0x1204b2;logger[_0x2fd4df('0x11')](_0x2fd4df('0x23'),_0x1fe6d5,_0x3efd2f[_0x2fd4df('0x1d')](','),_0x578ef7);})['catch'](function(_0x48b761){const _0xe5622=_0x1204b2;logger['info'](JSON[_0xe5622('0x13')](_0x48b761));});});},Migration[_0x5e85dd('0x26')][_0x5e85dd('0x22')]=function(_0x5b37c7){const _0xd3ef9=_0x5e85dd,_0x9663f9=this;this['sequence'][_0xd3ef9('0x8')](function(){const _0x400679=_0xd3ef9;return _0x9663f9[_0x400679('0x17')][_0x400679('0x12')][_0x400679('0x22')](_0x5b37c7)[_0x400679('0x24')](function(){const _0x2da9a0=_0x400679;logger['info'](_0x2da9a0('0xe'),_0x5b37c7);})[_0x400679('0x25')](function(_0x5942df){const _0x50faec=_0x400679;logger[_0x50faec('0x11')](JSON['stringify'](_0x5942df));});});},Migration[_0x5e85dd('0x26')][_0x5e85dd('0x19')]=function(_0x15e1a4,_0x38016c){const _0x585c77=_0x5e85dd,_0x20986d=this;this['sequence'][_0x585c77('0x8')](function(){const _0x286cdd=_0x585c77;return _0x20986d[_0x286cdd('0x17')][_0x286cdd('0x19')](_0x15e1a4,_0x38016c)[_0x286cdd('0x24')](function(){const _0x408749=_0x286cdd;logger[_0x408749('0x11')](_0x408749('0xb'),_0x38016c,_0x15e1a4);})[_0x286cdd('0x25')](function(_0x1f2a55){const _0x2a901a=_0x286cdd;logger[_0x2a901a('0x11')](util['inspect'](_0x1f2a55,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5e85dd('0x1f')]=function(_0x4aeee0){const _0x871932=_0x5e85dd;this[_0x871932('0xd')]['enqueue'](function(){return _0x4aeee0();});},module[_0x5e85dd('0x16')]={'up':function(_0x18a444,_0x1f30e2){return new Promise(function(_0x2a714a){const _0xe17e8=a929_0x4723,_0x244ded=new Migration(_0x18a444);_0x244ded[_0xe17e8('0x1b')](_0xe17e8('0x18'),_0xe17e8('0x1a'),{'type':_0x1f30e2[_0xe17e8('0x1e')](0xbe)}),_0x244ded[_0xe17e8('0x20')](_0xe17e8('0x18'),[_0xe17e8('0x1a')],'messageId'),_0x244ded[_0xe17e8('0x1b')](_0xe17e8('0xf'),_0xe17e8('0x0'),{'type':_0x1f30e2[_0xe17e8('0x1c')](_0xe17e8('0x6'),_0xe17e8('0x3'),_0xe17e8('0x7'),_0xe17e8('0xa'),'booked'),'defaultValue':_0xe17e8('0x3')}),_0x244ded[_0xe17e8('0x22')](_0xe17e8('0x9')),_0x244ded[_0xe17e8('0x22')](_0xe17e8('0x14')),_0x244ded[_0xe17e8('0x22')]('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());'),_0x244ded['final'](_0x2a714a);});},'down':function(){}}; \ No newline at end of file +const a929_0x4123=['stringify','join','then','changeColumn','addIndex\x20%s\x20%s\x20%s','preview','booked','Changed\x20column\x20%s\x20in\x20table\x20%s','STRING','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20`exten`=\x27xcally-motion-preview\x27\x20AND\x20`priority`=\x206','sequence','query','dialMethod','removeColumn','addIndex','util','Added\x20column\x20%s\x20to\x20%s','messageId','sequelize','table\x20dropped\x20%s','info','tail','enqueue','migration','progressive','addColumn','final','queryInterface','query\x20%s','prototype','exports','dropTable','catch','ENUM','Removed\x20column\x20%s\x20from\x20%s','finally','sms_messages','inspect'];(function(_0x153eab,_0x4123c2){const _0x53b55b=function(_0x3aee58){while(--_0x3aee58){_0x153eab['push'](_0x153eab['shift']());}};_0x53b55b(++_0x4123c2);}(a929_0x4123,0x167));const a929_0x53b5=function(_0x153eab,_0x4123c2){_0x153eab=_0x153eab-0x0;let _0x53b55b=a929_0x4123[_0x153eab];return _0x53b55b;};const _0x36752e=a929_0x53b5;'use strict';const util=require(_0x36752e('0x24')),logger=require('../config/logger')(_0x36752e('0x6')),Sequence=function(){};Sequence['prototype'][_0x36752e('0x5')]=function(_0x3aee58){const _0x4b779b=_0x36752e;this[_0x4b779b('0x4')]=this['tail']?this[_0x4b779b('0x4')][_0x4b779b('0x12')](_0x3aee58):_0x3aee58();};const Migration=function(_0x2f2aa5){const _0x1fb90b=_0x36752e;this[_0x1fb90b('0xa')]=_0x2f2aa5,this[_0x1fb90b('0x1f')]=new Sequence();};Migration[_0x36752e('0xc')][_0x36752e('0x18')]=function(_0x2b2890,_0x2a1ed6,_0x47be0a){const _0x30eac0=_0x36752e,_0x3ba9ff=this;this[_0x30eac0('0x1f')]['enqueue'](function(){const _0x21eadd=_0x30eac0;return _0x3ba9ff[_0x21eadd('0xa')][_0x21eadd('0x18')](_0x2b2890,_0x2a1ed6,_0x47be0a)[_0x21eadd('0x17')](function(){const _0x2d2156=_0x21eadd;logger['info'](_0x2d2156('0x1c'),_0x2a1ed6,_0x2b2890);})[_0x21eadd('0xf')](function(_0x54125f){const _0x5e42c1=_0x21eadd;logger[_0x5e42c1('0x3')](JSON['stringify'](_0x54125f));});});},Migration[_0x36752e('0xc')][_0x36752e('0x8')]=function(_0x4ff897,_0x4a6a39,_0x161138){const _0xabdfe4=_0x36752e,_0x5a3001=this;this['sequence'][_0xabdfe4('0x5')](function(){const _0x33fd0b=_0xabdfe4;return _0x5a3001[_0x33fd0b('0xa')][_0x33fd0b('0x8')](_0x4ff897,_0x4a6a39,_0x161138)[_0x33fd0b('0x17')](function(){const _0x1b2528=_0x33fd0b;logger['info'](_0x1b2528('0x25'),_0x4a6a39,_0x4ff897);})[_0x33fd0b('0xf')](function(_0x149643){const _0x1b13d4=_0x33fd0b;logger[_0x1b13d4('0x3')](JSON[_0x1b13d4('0x15')](_0x149643));});});},Migration[_0x36752e('0xc')][_0x36752e('0xe')]=function(_0x44e570){const _0x4e16fc=_0x36752e,_0x380d23=this;this[_0x4e16fc('0x1f')]['enqueue'](function(){const _0x5986d0=_0x4e16fc;return _0x380d23[_0x5986d0('0xa')][_0x5986d0('0xe')](_0x44e570,{'force':!![]})[_0x5986d0('0x17')](function(){const _0x279991=_0x5986d0;logger[_0x279991('0x3')](_0x279991('0x2'),_0x44e570);})[_0x5986d0('0xf')](function(_0x938c34){const _0x13c0a1=_0x5986d0;logger[_0x13c0a1('0x3')](JSON[_0x13c0a1('0x15')](_0x938c34));});});},Migration['prototype'][_0x36752e('0x23')]=function(_0x328052,_0x56dd34,_0x4177ca){const _0x41ed69=_0x36752e,_0x5d9a8=this;this[_0x41ed69('0x1f')][_0x41ed69('0x5')](function(){const _0x1f5282=_0x41ed69;return _0x5d9a8[_0x1f5282('0xa')][_0x1f5282('0x23')](_0x328052,_0x56dd34,{'indexName':_0x4177ca})[_0x1f5282('0x17')](function(){const _0x5eb5f8=_0x1f5282;logger[_0x5eb5f8('0x3')](_0x5eb5f8('0x19'),_0x328052,_0x56dd34[_0x5eb5f8('0x16')](','),_0x4177ca);})[_0x1f5282('0xf')](function(_0x5b1ffc){const _0x55592f=_0x1f5282;logger[_0x55592f('0x3')](JSON[_0x55592f('0x15')](_0x5b1ffc));});});},Migration[_0x36752e('0xc')][_0x36752e('0x20')]=function(_0x129d90){const _0x31f6f6=_0x36752e,_0xd0769b=this;this[_0x31f6f6('0x1f')][_0x31f6f6('0x5')](function(){const _0x340604=_0x31f6f6;return _0xd0769b[_0x340604('0xa')][_0x340604('0x1')][_0x340604('0x20')](_0x129d90)['then'](function(){const _0x301bd=_0x340604;logger['info'](_0x301bd('0xb'),_0x129d90);})[_0x340604('0xf')](function(_0x3bfc38){const _0x4b1d5c=_0x340604;logger[_0x4b1d5c('0x3')](JSON[_0x4b1d5c('0x15')](_0x3bfc38));});});},Migration[_0x36752e('0xc')]['removeColumn']=function(_0x545c50,_0x4e7260){const _0x132dd0=_0x36752e,_0x1c67d5=this;this['sequence'][_0x132dd0('0x5')](function(){const _0x1a9617=_0x132dd0;return _0x1c67d5[_0x1a9617('0xa')][_0x1a9617('0x22')](_0x545c50,_0x4e7260)[_0x1a9617('0x17')](function(){const _0x5bf5c5=_0x1a9617;logger[_0x5bf5c5('0x3')](_0x5bf5c5('0x11'),_0x4e7260,_0x545c50);})[_0x1a9617('0xf')](function(_0x140b60){const _0x44f36b=_0x1a9617;logger[_0x44f36b('0x3')](util[_0x44f36b('0x14')](_0x140b60,{'showHidden':![],'depth':null}));});});},Migration[_0x36752e('0xc')]['final']=function(_0x201ddc){const _0x55c4e2=_0x36752e;this['sequence'][_0x55c4e2('0x5')](function(){return _0x201ddc();});},module[_0x36752e('0xd')]={'up':function(_0x1fb5a2,_0x431dce){return new Promise(function(_0xf74bbb){const _0x2281c7=a929_0x53b5,_0x2b2407=new Migration(_0x1fb5a2);_0x2b2407[_0x2281c7('0x18')](_0x2281c7('0x13'),_0x2281c7('0x0'),{'type':_0x431dce[_0x2281c7('0x1d')](0xbe)}),_0x2b2407[_0x2281c7('0x23')](_0x2281c7('0x13'),[_0x2281c7('0x0')],_0x2281c7('0x0')),_0x2b2407[_0x2281c7('0x18')]('voice_queues',_0x2281c7('0x21'),{'type':_0x431dce[_0x2281c7('0x10')](_0x2281c7('0x1a'),'progressive','power','predictive',_0x2281c7('0x1b')),'defaultValue':_0x2281c7('0x7')}),_0x2b2407[_0x2281c7('0x20')](_0x2281c7('0x1e')),_0x2b2407[_0x2281c7('0x20')]('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());'),_0x2b2407[_0x2281c7('0x20')]('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());'),_0x2b2407[_0x2281c7('0x9')](_0xf74bbb);});},'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 55b9e23..b1e4aa3 100644 --- a/server/migrations/2.0.51.js +++ b/server/migrations/2.0.51.js @@ -1 +1 @@ -const a930_0x247d=['migration','Removed\x20column\x20%s\x20from\x20%s','InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.','addColumn','INTEGER','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','stringify','cm_contacts','dropTable','Mail','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','ChatGroupId','exports','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','fax_interactions','membername','connectel','membername_interface','sms_accounts','uniqueid','mail_interactions','openchannel_interactions','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-dialer\x27,\x20\x273\x27,\x20\x27set\x27,\x20\x27CALLERID(all)=${XMD-CALLERID}\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x272\x27,\x20\x27set\x27,\x20\x27CDR(type)=dialer\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','cm_hopper_history','skebby','toLowerCase','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;','chat_interactions','chat_internal_messages','voice_recordings','DATE','InteractionId;','out','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());','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());','removeColumn','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());','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','type','prototype','report_member','addIndex\x20%s\x20%s\x20%s','queryInterface','inspect','interface','tail','then','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x276\x27,\x20\x27background\x27,\x20\x27silence/1\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','enqueue','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','sequence','ChatInternalMessageId','Chat','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-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());','report_call','sequelize','table\x20dropped\x20%s','query','addIndex','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\x2711\x27,\x20\x27execif\x27,\x20\x27$[\x22${XMD-AGI}\x22\x20!=\x20\x22NONE\x22\x20]?AGI(${XMD-AGI})\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\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());','changeColumn','Sms','sms_interactions','lastMsgDirection','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`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());','lastMsgAt','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,\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'];(function(_0xf8ddfa,_0x247dbe){const _0x13d214=function(_0x6f082d){while(--_0x6f082d){_0xf8ddfa['push'](_0xf8ddfa['shift']());}};_0x13d214(++_0x247dbe);}(a930_0x247d,0xeb));const a930_0x13d2=function(_0xf8ddfa,_0x247dbe){_0xf8ddfa=_0xf8ddfa-0x0;let _0x13d214=a930_0x247d[_0xf8ddfa];return _0x13d214;};const _0x2d0ec5=a930_0x13d2;'use strict';const util=require('util'),logger=require('../config/logger')(_0x2d0ec5('0x41')),Sequence=function(){};Sequence[_0x2d0ec5('0x20')][_0x2d0ec5('0x29')]=function(_0x6f082d){const _0x136f38=_0x2d0ec5;this[_0x136f38('0x26')]=this[_0x136f38('0x26')]?this[_0x136f38('0x26')]['finally'](_0x6f082d):_0x6f082d();};const Migration=function(_0x1654ff){const _0xe85a73=_0x2d0ec5;this[_0xe85a73('0x23')]=_0x1654ff,this[_0xe85a73('0x2b')]=new Sequence();};Migration['prototype'][_0x2d0ec5('0x38')]=function(_0x50c3d8,_0x51109f,_0x12c72c){const _0x2659dd=_0x2d0ec5,_0x127ac8=this;this['sequence'][_0x2659dd('0x29')](function(){const _0x2ca492=_0x2659dd;return _0x127ac8[_0x2ca492('0x23')][_0x2ca492('0x38')](_0x50c3d8,_0x51109f,_0x12c72c)[_0x2ca492('0x27')](function(){const _0x578c67=_0x2ca492;logger[_0x578c67('0x2e')](_0x578c67('0x1e'),_0x51109f,_0x50c3d8);})[_0x2ca492('0x1d')](function(_0x3e533e){const _0x38b24f=_0x2ca492;logger[_0x38b24f('0x2e')](JSON[_0x38b24f('0x47')](_0x3e533e));});});},Migration['prototype'][_0x2d0ec5('0x44')]=function(_0x2cb364,_0x18feb1,_0x47204d){const _0x2d1b65=_0x2d0ec5,_0x3e166d=this;this[_0x2d1b65('0x2b')]['enqueue'](function(){const _0x48a902=_0x2d1b65;return _0x3e166d[_0x48a902('0x23')][_0x48a902('0x44')](_0x2cb364,_0x18feb1,_0x47204d)[_0x48a902('0x27')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x18feb1,_0x2cb364);})[_0x48a902('0x1d')](function(_0x28ba40){const _0x25b191=_0x48a902;logger[_0x25b191('0x2e')](JSON[_0x25b191('0x47')](_0x28ba40));});});},Migration[_0x2d0ec5('0x20')][_0x2d0ec5('0x49')]=function(_0x1a7e6a){const _0xa1af6=_0x2d0ec5,_0x3beb54=this;this[_0xa1af6('0x2b')][_0xa1af6('0x29')](function(){const _0x284d97=_0xa1af6;return _0x3beb54[_0x284d97('0x23')][_0x284d97('0x49')](_0x1a7e6a,{'force':!![]})['then'](function(){const _0x364956=_0x284d97;logger['info'](_0x364956('0x32'),_0x1a7e6a);})[_0x284d97('0x1d')](function(_0xa1ef4d){const _0x1db283=_0x284d97;logger[_0x1db283('0x2e')](JSON[_0x1db283('0x47')](_0xa1ef4d));});});},Migration[_0x2d0ec5('0x20')][_0x2d0ec5('0x34')]=function(_0x470bc8,_0x37f815,_0x34850a){const _0x4280a9=_0x2d0ec5,_0x88110e=this;this[_0x4280a9('0x2b')][_0x4280a9('0x29')](function(){const _0x3301fb=_0x4280a9;return _0x88110e[_0x3301fb('0x23')][_0x3301fb('0x34')](_0x470bc8,_0x37f815,{'indexName':_0x34850a})['then'](function(){const _0x4c79cc=_0x3301fb;logger[_0x4c79cc('0x2e')](_0x4c79cc('0x22'),_0x470bc8,_0x37f815['join'](','),_0x34850a);})[_0x3301fb('0x1d')](function(_0x31d5c6){const _0xfe876e=_0x3301fb;logger[_0xfe876e('0x2e')](JSON['stringify'](_0x31d5c6));});});},Migration['prototype'][_0x2d0ec5('0x33')]=function(_0x2dd1e6){const _0x40205b=_0x2d0ec5,_0x15b25d=this;this[_0x40205b('0x2b')][_0x40205b('0x29')](function(){const _0x3bb838=_0x40205b;return _0x15b25d[_0x3bb838('0x23')][_0x3bb838('0x31')][_0x3bb838('0x33')](_0x2dd1e6)['then'](function(){const _0x2fdcba=_0x3bb838;logger[_0x2fdcba('0x2e')]('query\x20%s',_0x2dd1e6);})[_0x3bb838('0x1d')](function(_0x41c5e6){const _0x13435f=_0x3bb838;logger[_0x13435f('0x2e')](JSON[_0x13435f('0x47')](_0x41c5e6));});});},Migration[_0x2d0ec5('0x20')][_0x2d0ec5('0x1b')]=function(_0x143d11,_0x32548c){const _0x48d913=_0x2d0ec5,_0x5d3da0=this;this[_0x48d913('0x2b')][_0x48d913('0x29')](function(){const _0x53117e=_0x48d913;return _0x5d3da0[_0x53117e('0x23')][_0x53117e('0x1b')](_0x143d11,_0x32548c)['then'](function(){const _0x563bbf=_0x53117e;logger[_0x563bbf('0x2e')](_0x563bbf('0x42'),_0x32548c,_0x143d11);})['catch'](function(_0x3da766){const _0x3fd98c=_0x53117e;logger[_0x3fd98c('0x2e')](util[_0x3fd98c('0x24')](_0x3da766,{'showHidden':![],'depth':null}));});});},Migration[_0x2d0ec5('0x20')][_0x2d0ec5('0x35')]=function(_0xd62a9e){const _0x2afd0e=_0x2d0ec5;this[_0x2afd0e('0x2b')][_0x2afd0e('0x29')](function(){return _0xd62a9e();});},module[_0x2d0ec5('0x2')]={'up':function(_0x1cedb2,_0x25bbb5){return new Promise(function(_0x290a63){const _0x1bec80=a930_0x13d2,_0x4dfc8d=new Migration(_0x1cedb2);_0x4dfc8d['addColumn'](_0x1bec80('0x14'),_0x1bec80('0x2c'),{'type':_0x25bbb5[_0x1bec80('0x45')]}),_0x4dfc8d[_0x1bec80('0x44')]('chat_internal_messages',_0x1bec80('0x1'),{'type':_0x25bbb5[_0x1bec80('0x45')]}),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x46')),_0x4dfc8d[_0x1bec80('0x44')](_0x1bec80('0x13'),'lastMsgDirection',{'type':_0x25bbb5[_0x1bec80('0xc')]('in',_0x1bec80('0x18')),'defaultValue':'in','allowNull':![]}),_0x4dfc8d[_0x1bec80('0x44')](_0x1bec80('0x13'),_0x1bec80('0x3e'),{'type':_0x25bbb5[_0x1bec80('0x16')]}),_0x4dfc8d[_0x1bec80('0x44')]('mail_interactions',_0x1bec80('0x3b'),{'type':_0x25bbb5[_0x1bec80('0xc')]('in',_0x1bec80('0x18')),'defaultValue':'in','allowNull':![]}),_0x4dfc8d['addColumn'](_0x1bec80('0xa'),'lastMsgAt',{'type':_0x25bbb5[_0x1bec80('0x16')]}),_0x4dfc8d[_0x1bec80('0x44')]('sms_interactions',_0x1bec80('0x3b'),{'type':_0x25bbb5[_0x1bec80('0xc')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x4dfc8d[_0x1bec80('0x44')](_0x1bec80('0x3a'),_0x1bec80('0x3e'),{'type':_0x25bbb5['DATE']}),_0x4dfc8d['addColumn'](_0x1bec80('0xb'),_0x1bec80('0x3b'),{'type':_0x25bbb5[_0x1bec80('0xc')]('in',_0x1bec80('0x18')),'defaultValue':'in','allowNull':![]}),_0x4dfc8d[_0x1bec80('0x44')]('openchannel_interactions',_0x1bec80('0x3e'),{'type':_0x25bbb5[_0x1bec80('0x16')]}),_0x4dfc8d[_0x1bec80('0x44')](_0x1bec80('0x4'),_0x1bec80('0x3b'),{'type':_0x25bbb5[_0x1bec80('0xc')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x4dfc8d[_0x1bec80('0x44')](_0x1bec80('0x4'),_0x1bec80('0x3e'),{'type':_0x25bbb5['DATE']});const _0x493090=[_0x1bec80('0x2d'),_0x1bec80('0x4a'),_0x1bec80('0x39'),'Openchannel'];for(let _0x317a17=0x0;_0x317a17<_0x493090['length'];_0x317a17++){_0x4dfc8d['query']('UPDATE\x20'+_0x493090[_0x317a17][_0x1bec80('0x11')]()+'_interactions\x20t1,\x20(SELECT\x20'+_0x493090[_0x317a17]+_0x1bec80('0x40')+_0x493090[_0x317a17][_0x1bec80('0x11')]()+_0x1bec80('0x3')+_0x493090[_0x317a17]+_0x1bec80('0x0')+_0x493090[_0x317a17]+_0x1bec80('0x43')+_0x493090[_0x317a17]+_0x1bec80('0x17'));}_0x4dfc8d['query'](_0x1bec80('0x12')),_0x4dfc8d['changeColumn'](_0x1bec80('0x8'),_0x1bec80('0x1f'),{'type':_0x25bbb5[_0x1bec80('0xc')]('twilio',_0x1bec80('0x10'),_0x1bec80('0x6'))}),_0x4dfc8d[_0x1bec80('0x44')](_0x1bec80('0x30'),'note',{'type':_0x25bbb5['STRING']}),_0x4dfc8d['addIndex'](_0x1bec80('0x48'),['phone'],'phone'),_0x4dfc8d[_0x1bec80('0x34')]('cm_hopper_final',[_0x1bec80('0x9')],'uniqueid'),_0x4dfc8d[_0x1bec80('0x34')](_0x1bec80('0xf'),[_0x1bec80('0x9')],'uniqueid'),_0x4dfc8d[_0x1bec80('0x34')](_0x1bec80('0x15'),[_0x1bec80('0x9')],_0x1bec80('0x9')),_0x4dfc8d['addIndex'](_0x1bec80('0x21'),[_0x1bec80('0x5'),_0x1bec80('0x25')],_0x1bec80('0x7')),_0x4dfc8d['query'](_0x1bec80('0x2a')),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x3c')),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x19')),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0xe')),_0x4dfc8d['query'](_0x1bec80('0xd')),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x2f')),_0x4dfc8d['query'](_0x1bec80('0x3d')),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x28')),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x1c')),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x37')),_0x4dfc8d[_0x1bec80('0x33')]('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());'),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x3f')),_0x4dfc8d['query'](_0x1bec80('0x36')),_0x4dfc8d['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\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());'),_0x4dfc8d[_0x1bec80('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-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());'),_0x4dfc8d[_0x1bec80('0x33')](_0x1bec80('0x1a')),_0x4dfc8d[_0x1bec80('0x35')](_0x290a63);});},'down':function(){}}; \ No newline at end of file +const a930_0x1821=['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());','chat_interactions','table\x20dropped\x20%s','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','InteractionId)\x20t2\x20SET\x20t1.lastMsgDirection\x20=\x20t2.direction,\x20t1.lastMsgAt\x20=\x20t2.createdAt\x20WHERE\x20t1.id\x20=\x20t2.','_messages\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20','query','INSERT\x20INTO\x20`voice_extensions`\x20(`context`,\x20`exten`,\x20`priority`,\x20`app`,\x20`appdata`,\x20`type`,\x20`description`,`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27from-sip\x27,\x20\x27xcally-motion-dialer\x27,\x20\x279\x27,\x20\x27gotoif\x27,\x20\x27$[\x22${AMDSTATUS}\x22\x20==\x20\x22NOTSURE\x22\x20]?11:10\x27,\x20\x27system\x27,\x20\x27Dialer\x20extensions\x20auto\x20generated\x27,\x20NOW(),\x20NOW());','mail_interactions','../config/logger','skebby','catch','membername_interface','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','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;','InteractionId;','join','uniqueid','addColumn','removeColumn','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\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());','changeColumn','info','Chat','_interactions\x20t1,\x20(SELECT\x20','toLowerCase','phone','interface','report_call','DATE','cm_hopper_history','out','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());','finally','addIndex','cm_contacts','inspect','chat_internal_messages','queryInterface','ChatInternalMessageId','DELETE\x20FROM\x20`voice_extensions`\x20WHERE\x20exten\x20=\x20\x27xcally-motion-dialer\x27;','membername','ENUM','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());','tail','INTEGER','connectel','enqueue','then','Removed\x20column\x20%s\x20from\x20%s','sequelize','twilio','final','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','length','voice_recordings','dropTable','migration','lastMsgAt','lastMsgDirection','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\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());','Changed\x20column\x20%s\x20in\x20table\x20%s','Sms','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());','Mail','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());','sequence','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\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());','prototype','openchannel_interactions','stringify'];(function(_0x274d8a,_0x1821ef){const _0x4223c6=function(_0x2661ca){while(--_0x2661ca){_0x274d8a['push'](_0x274d8a['shift']());}};_0x4223c6(++_0x1821ef);}(a930_0x1821,0x172));const a930_0x4223=function(_0x274d8a,_0x1821ef){_0x274d8a=_0x274d8a-0x0;let _0x4223c6=a930_0x1821[_0x274d8a];return _0x4223c6;};const _0x1dcb4a=a930_0x4223;'use strict';const util=require(_0x1dcb4a('0x43')),logger=require(_0x1dcb4a('0xe'))(_0x1dcb4a('0x40')),Sequence=function(){};Sequence[_0x1dcb4a('0x2')][_0x1dcb4a('0x35')]=function(_0x2661ca){const _0xec0e68=_0x1dcb4a;this[_0xec0e68('0x32')]=this[_0xec0e68('0x32')]?this[_0xec0e68('0x32')][_0xec0e68('0x27')](_0x2661ca):_0x2661ca();};const Migration=function(_0x4fbe76){const _0x1e73a1=_0x1dcb4a;this[_0x1e73a1('0x2c')]=_0x4fbe76,this['sequence']=new Sequence();};Migration[_0x1dcb4a('0x2')][_0x1dcb4a('0x1b')]=function(_0x43223c,_0x11e328,_0x115cf8){const _0x1e8cc0=_0x1dcb4a,_0x55cf6f=this;this[_0x1e8cc0('0x4a')][_0x1e8cc0('0x35')](function(){const _0x32b555=_0x1e8cc0;return _0x55cf6f[_0x32b555('0x2c')]['changeColumn'](_0x43223c,_0x11e328,_0x115cf8)[_0x32b555('0x36')](function(){const _0x6943dc=_0x32b555;logger[_0x6943dc('0x1c')](_0x6943dc('0x45'),_0x11e328,_0x43223c);})[_0x32b555('0x10')](function(_0x4f632b){const _0x13fa78=_0x32b555;logger[_0x13fa78('0x1c')](JSON[_0x13fa78('0x4')](_0x4f632b));});});},Migration['prototype'][_0x1dcb4a('0x17')]=function(_0x25d5bd,_0x1e2dc1,_0xb9a705){const _0x4982c8=_0x1dcb4a,_0x2beb70=this;this[_0x4982c8('0x4a')][_0x4982c8('0x35')](function(){const _0xa37876=_0x4982c8;return _0x2beb70[_0xa37876('0x2c')][_0xa37876('0x17')](_0x25d5bd,_0x1e2dc1,_0xb9a705)[_0xa37876('0x36')](function(){const _0x35fc9c=_0xa37876;logger[_0x35fc9c('0x1c')](_0x35fc9c('0x3c'),_0x1e2dc1,_0x25d5bd);})['catch'](function(_0x227f58){const _0x45177a=_0xa37876;logger['info'](JSON[_0x45177a('0x4')](_0x227f58));});});},Migration[_0x1dcb4a('0x2')][_0x1dcb4a('0x3f')]=function(_0x1e9cf9){const _0xa7cb90=_0x1dcb4a,_0x2744cf=this;this[_0xa7cb90('0x4a')][_0xa7cb90('0x35')](function(){const _0x3ccdde=_0xa7cb90;return _0x2744cf['queryInterface'][_0x3ccdde('0x3f')](_0x1e9cf9,{'force':!![]})['then'](function(){const _0x56a68c=_0x3ccdde;logger[_0x56a68c('0x1c')](_0x56a68c('0x7'),_0x1e9cf9);})['catch'](function(_0x1e8294){const _0x2b64a1=_0x3ccdde;logger[_0x2b64a1('0x1c')](JSON['stringify'](_0x1e8294));});});},Migration['prototype']['addIndex']=function(_0x3430d3,_0x546f23,_0x5c8624){const _0x1bab66=_0x1dcb4a,_0xcf1176=this;this['sequence'][_0x1bab66('0x35')](function(){const _0x500596=_0x1bab66;return _0xcf1176[_0x500596('0x2c')][_0x500596('0x28')](_0x3430d3,_0x546f23,{'indexName':_0x5c8624})[_0x500596('0x36')](function(){const _0x24c908=_0x500596;logger[_0x24c908('0x1c')](_0x24c908('0x3b'),_0x3430d3,_0x546f23[_0x24c908('0x15')](','),_0x5c8624);})[_0x500596('0x10')](function(_0x1e8b46){const _0x26887b=_0x500596;logger[_0x26887b('0x1c')](JSON[_0x26887b('0x4')](_0x1e8b46));});});},Migration[_0x1dcb4a('0x2')]['query']=function(_0x57cdea){const _0x5ad3c3=_0x1dcb4a,_0x1bca13=this;this[_0x5ad3c3('0x4a')]['enqueue'](function(){const _0x5ef36b=_0x5ad3c3;return _0x1bca13[_0x5ef36b('0x2c')][_0x5ef36b('0x38')][_0x5ef36b('0xb')](_0x57cdea)[_0x5ef36b('0x36')](function(){const _0x20e60c=_0x5ef36b;logger[_0x20e60c('0x1c')]('query\x20%s',_0x57cdea);})[_0x5ef36b('0x10')](function(_0x56990b){const _0x5507b6=_0x5ef36b;logger['info'](JSON[_0x5507b6('0x4')](_0x56990b));});});},Migration[_0x1dcb4a('0x2')][_0x1dcb4a('0x18')]=function(_0x16ab9c,_0x4fdfb3){const _0x2c2e0f=_0x1dcb4a,_0x2c9e2e=this;this[_0x2c2e0f('0x4a')]['enqueue'](function(){const _0xe54d9c=_0x2c2e0f;return _0x2c9e2e[_0xe54d9c('0x2c')][_0xe54d9c('0x18')](_0x16ab9c,_0x4fdfb3)[_0xe54d9c('0x36')](function(){const _0x6dbef5=_0xe54d9c;logger[_0x6dbef5('0x1c')](_0x6dbef5('0x37'),_0x4fdfb3,_0x16ab9c);})[_0xe54d9c('0x10')](function(_0x47b74d){const _0x217661=_0xe54d9c;logger[_0x217661('0x1c')](util[_0x217661('0x2a')](_0x47b74d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1dcb4a('0x3a')]=function(_0x413c9a){const _0x5e6a30=_0x1dcb4a;this['sequence'][_0x5e6a30('0x35')](function(){return _0x413c9a();});},module['exports']={'up':function(_0x23785c,_0x17ec9d){return new Promise(function(_0x5d0a38){const _0x52853c=a930_0x4223,_0x5640ce=new Migration(_0x23785c);_0x5640ce['addColumn'](_0x52853c('0x2b'),_0x52853c('0x2d'),{'type':_0x17ec9d['INTEGER']}),_0x5640ce['addColumn'](_0x52853c('0x2b'),'ChatGroupId',{'type':_0x17ec9d[_0x52853c('0x33')]}),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x12')),_0x5640ce[_0x52853c('0x17')](_0x52853c('0x6'),_0x52853c('0x42'),{'type':_0x17ec9d[_0x52853c('0x30')]('in',_0x52853c('0x25')),'defaultValue':'in','allowNull':![]}),_0x5640ce[_0x52853c('0x17')]('chat_interactions',_0x52853c('0x41'),{'type':_0x17ec9d[_0x52853c('0x23')]}),_0x5640ce[_0x52853c('0x17')](_0x52853c('0xd'),_0x52853c('0x42'),{'type':_0x17ec9d[_0x52853c('0x30')]('in',_0x52853c('0x25')),'defaultValue':'in','allowNull':![]}),_0x5640ce[_0x52853c('0x17')](_0x52853c('0xd'),'lastMsgAt',{'type':_0x17ec9d['DATE']}),_0x5640ce[_0x52853c('0x17')](_0x52853c('0x0'),_0x52853c('0x42'),{'type':_0x17ec9d[_0x52853c('0x30')]('in','out'),'defaultValue':'in','allowNull':![]}),_0x5640ce[_0x52853c('0x17')](_0x52853c('0x0'),_0x52853c('0x41'),{'type':_0x17ec9d[_0x52853c('0x23')]}),_0x5640ce[_0x52853c('0x17')]('openchannel_interactions',_0x52853c('0x42'),{'type':_0x17ec9d['ENUM']('in',_0x52853c('0x25')),'defaultValue':'in','allowNull':![]}),_0x5640ce[_0x52853c('0x17')](_0x52853c('0x3'),_0x52853c('0x41'),{'type':_0x17ec9d[_0x52853c('0x23')]}),_0x5640ce[_0x52853c('0x17')]('fax_interactions',_0x52853c('0x42'),{'type':_0x17ec9d['ENUM']('in',_0x52853c('0x25')),'defaultValue':'in','allowNull':![]}),_0x5640ce[_0x52853c('0x17')]('fax_interactions',_0x52853c('0x41'),{'type':_0x17ec9d[_0x52853c('0x23')]});const _0x176585=[_0x52853c('0x1d'),_0x52853c('0x48'),_0x52853c('0x46'),'Openchannel'];for(let _0x18c448=0x0;_0x18c448<_0x176585[_0x52853c('0x3d')];_0x18c448++){_0x5640ce[_0x52853c('0xb')]('UPDATE\x20'+_0x176585[_0x18c448][_0x52853c('0x1f')]()+_0x52853c('0x1e')+_0x176585[_0x18c448]+'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'+_0x176585[_0x18c448][_0x52853c('0x1f')]()+_0x52853c('0xa')+_0x176585[_0x18c448]+_0x52853c('0x8')+_0x176585[_0x18c448]+_0x52853c('0x9')+_0x176585[_0x18c448]+_0x52853c('0x14'));}_0x5640ce[_0x52853c('0xb')](_0x52853c('0x13')),_0x5640ce['changeColumn']('sms_accounts','type',{'type':_0x17ec9d[_0x52853c('0x30')](_0x52853c('0x39'),_0x52853c('0xf'),_0x52853c('0x34'))}),_0x5640ce[_0x52853c('0x17')](_0x52853c('0x22'),'note',{'type':_0x17ec9d['STRING']}),_0x5640ce[_0x52853c('0x28')](_0x52853c('0x29'),[_0x52853c('0x20')],'phone'),_0x5640ce['addIndex']('cm_hopper_final',[_0x52853c('0x16')],_0x52853c('0x16')),_0x5640ce[_0x52853c('0x28')](_0x52853c('0x24'),[_0x52853c('0x16')],_0x52853c('0x16')),_0x5640ce[_0x52853c('0x28')](_0x52853c('0x3e'),[_0x52853c('0x16')],'uniqueid'),_0x5640ce[_0x52853c('0x28')]('report_member',[_0x52853c('0x2f'),_0x52853c('0x21')],_0x52853c('0x11')),_0x5640ce[_0x52853c('0xb')]('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'),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x2e')),_0x5640ce[_0x52853c('0xb')]('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());'),_0x5640ce[_0x52853c('0xb')]('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());'),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x47')),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x44')),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x19')),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x26')),_0x5640ce['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\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());'),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x1a')),_0x5640ce[_0x52853c('0xb')](_0x52853c('0xc')),_0x5640ce[_0x52853c('0xb')]('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());'),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x49')),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x1')),_0x5640ce['query'](_0x52853c('0x5')),_0x5640ce[_0x52853c('0xb')](_0x52853c('0x31')),_0x5640ce['final'](_0x5d0a38);});},'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 812ecb2..e284ebd 100644 --- a/server/migrations/2.0.52.js +++ b/server/migrations/2.0.52.js @@ -1 +1 @@ -const a931_0x51a3=['dropTable','settings','STRING','passwordResetAt','holdtime','join','background','DATE','skebby','Added\x20column\x20%s\x20to\x20%s','stringify','addIndex\x20%s\x20%s\x20%s','type','ChatWebsiteId','enqueue','link','sms_accounts','Removed\x20column\x20%s\x20from\x20%s','migration','query','users','OpenchannelAccountId','FaxAccountId','util','query\x20%s','tools_canned_answers','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','dashboard_items','final','catch','connectel','addColumn','callRecordingEncryption','INTEGER','sequence','changeColumn','queryInterface','prototype','tail','SmsAccountId','#2196f3','info','#ffffff','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','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','clicksend','then','report_dial','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','billableseconds','removeColumn'];(function(_0x3643ea,_0x51a384){const _0x4776ad=function(_0x219c70){while(--_0x219c70){_0x3643ea['push'](_0x3643ea['shift']());}};_0x4776ad(++_0x51a384);}(a931_0x51a3,0x130));const a931_0x4776=function(_0x3643ea,_0x51a384){_0x3643ea=_0x3643ea-0x0;let _0x4776ad=a931_0x51a3[_0x3643ea];return _0x4776ad;};const _0x19d1df=a931_0x4776;'use strict';const util=require(_0x19d1df('0x1f')),logger=require('../config/logger')(_0x19d1df('0x1a')),Sequence=function(){};Sequence[_0x19d1df('0x2d')][_0x19d1df('0x16')]=function(_0x219c70){const _0x140cb9=_0x19d1df;this[_0x140cb9('0x2e')]=this[_0x140cb9('0x2e')]?this[_0x140cb9('0x2e')]['finally'](_0x219c70):_0x219c70();};const Migration=function(_0x23df32){const _0x3fde8d=_0x19d1df;this[_0x3fde8d('0x2c')]=_0x23df32,this[_0x3fde8d('0x2a')]=new Sequence();};Migration[_0x19d1df('0x2d')]['changeColumn']=function(_0x465a56,_0x13dacc,_0x4ead1c){const _0x52012d=this;this['sequence']['enqueue'](function(){const _0x395383=a931_0x4776;return _0x52012d['queryInterface']['changeColumn'](_0x465a56,_0x13dacc,_0x4ead1c)['then'](function(){const _0x511cac=a931_0x4776;logger[_0x511cac('0x31')](_0x511cac('0x33'),_0x13dacc,_0x465a56);})[_0x395383('0x25')](function(_0x78bbd1){const _0x119d45=_0x395383;logger[_0x119d45('0x31')](JSON['stringify'](_0x78bbd1));});});},Migration[_0x19d1df('0x2d')][_0x19d1df('0x27')]=function(_0x1208c1,_0x3ff951,_0x4f4f93){const _0x2b1151=_0x19d1df,_0xddedb7=this;this['sequence'][_0x2b1151('0x16')](function(){const _0x50e822=_0x2b1151;return _0xddedb7[_0x50e822('0x2c')]['addColumn'](_0x1208c1,_0x3ff951,_0x4f4f93)[_0x50e822('0x3')](function(){const _0x2085d7=_0x50e822;logger[_0x2085d7('0x31')](_0x2085d7('0x11'),_0x3ff951,_0x1208c1);})[_0x50e822('0x25')](function(_0x472dcc){const _0x449be1=_0x50e822;logger[_0x449be1('0x31')](JSON['stringify'](_0x472dcc));});});},Migration[_0x19d1df('0x2d')]['dropTable']=function(_0x5100a2){const _0x31da6a=_0x19d1df,_0xb551df=this;this[_0x31da6a('0x2a')][_0x31da6a('0x16')](function(){const _0x4d62ea=_0x31da6a;return _0xb551df[_0x4d62ea('0x2c')][_0x4d62ea('0x8')](_0x5100a2,{'force':!![]})[_0x4d62ea('0x3')](function(){const _0x9875b5=_0x4d62ea;logger[_0x9875b5('0x31')]('table\x20dropped\x20%s',_0x5100a2);})[_0x4d62ea('0x25')](function(_0xe01152){const _0x129c9f=_0x4d62ea;logger[_0x129c9f('0x31')](JSON['stringify'](_0xe01152));});});},Migration['prototype']['addIndex']=function(_0x58201a,_0x3b0af5,_0x2ae0bb){const _0x14ae90=this;this['sequence']['enqueue'](function(){const _0x4be8bd=a931_0x4776;return _0x14ae90['queryInterface']['addIndex'](_0x58201a,_0x3b0af5,{'indexName':_0x2ae0bb})[_0x4be8bd('0x3')](function(){const _0x480dd1=_0x4be8bd;logger['info'](_0x480dd1('0x13'),_0x58201a,_0x3b0af5[_0x480dd1('0xd')](','),_0x2ae0bb);})['catch'](function(_0x2e5340){const _0x56880e=_0x4be8bd;logger['info'](JSON[_0x56880e('0x12')](_0x2e5340));});});},Migration['prototype'][_0x19d1df('0x1b')]=function(_0x4fe6df){const _0x3f0bb7=_0x19d1df,_0x420fef=this;this[_0x3f0bb7('0x2a')][_0x3f0bb7('0x16')](function(){const _0x549dad=_0x3f0bb7;return _0x420fef[_0x549dad('0x2c')][_0x549dad('0x0')]['query'](_0x4fe6df)[_0x549dad('0x3')](function(){const _0x17afda=_0x549dad;logger[_0x17afda('0x31')](_0x17afda('0x20'),_0x4fe6df);})['catch'](function(_0x576920){logger['info'](JSON['stringify'](_0x576920));});});},Migration[_0x19d1df('0x2d')][_0x19d1df('0x7')]=function(_0x41ea94,_0x18dc29){const _0x217f0d=_0x19d1df,_0x1eab00=this;this['sequence'][_0x217f0d('0x16')](function(){const _0x574d8b=_0x217f0d;return _0x1eab00[_0x574d8b('0x2c')]['removeColumn'](_0x41ea94,_0x18dc29)[_0x574d8b('0x3')](function(){const _0x3bd969=_0x574d8b;logger[_0x3bd969('0x31')](_0x3bd969('0x19'),_0x18dc29,_0x41ea94);})['catch'](function(_0x138519){const _0x378070=_0x574d8b;logger[_0x378070('0x31')](util['inspect'](_0x138519,{'showHidden':![],'depth':null}));});});},Migration[_0x19d1df('0x2d')][_0x19d1df('0x24')]=function(_0x2a736c){const _0x117966=_0x19d1df;this[_0x117966('0x2a')][_0x117966('0x16')](function(){return _0x2a736c();});},module['exports']={'up':function(_0x59513a,_0x5897fd){return new Promise(function(_0x1f1d8a){const _0x388c53=a931_0x4776,_0x1199ea=new Migration(_0x59513a);_0x1199ea[_0x388c53('0x27')](_0x388c53('0x9'),_0x388c53('0x28'),{'type':_0x5897fd['BOOLEAN'],'defaultValue':![]}),_0x1199ea[_0x388c53('0x27')]('settings','passwordExpiresDays',{'type':_0x5897fd[_0x388c53('0x29')](0xb),'defaultValue':0x5a}),_0x1199ea['query']('UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1'),_0x1199ea['addColumn'](_0x388c53('0x21'),'MailAccountId',{'type':_0x5897fd[_0x388c53('0x29')]}),_0x1199ea[_0x388c53('0x27')](_0x388c53('0x21'),_0x388c53('0x1e'),{'type':_0x5897fd[_0x388c53('0x29')]}),_0x1199ea[_0x388c53('0x27')]('tools_canned_answers',_0x388c53('0x2f'),{'type':_0x5897fd[_0x388c53('0x29')]}),_0x1199ea[_0x388c53('0x27')](_0x388c53('0x21'),_0x388c53('0x1d'),{'type':_0x5897fd[_0x388c53('0x29')]}),_0x1199ea['addColumn']('tools_canned_answers',_0x388c53('0x15'),{'type':_0x5897fd[_0x388c53('0x29')]}),_0x1199ea[_0x388c53('0x1b')]('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'),_0x1199ea[_0x388c53('0x1b')]('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'),_0x1199ea[_0x388c53('0x1b')](_0x388c53('0x1')),_0x1199ea[_0x388c53('0x1b')](_0x388c53('0x22')),_0x1199ea['query'](_0x388c53('0x5')),_0x1199ea[_0x388c53('0x27')](_0x388c53('0x1c'),_0x388c53('0xb'),{'type':_0x5897fd[_0x388c53('0xf')],'defaultValue':null}),_0x1199ea[_0x388c53('0x1b')]('UPDATE\x20users\x20SET\x20passwordResetAt=NOW()'),_0x1199ea['addColumn'](_0x388c53('0x4'),'duration',{'type':_0x5897fd[_0x388c53('0x29')]}),_0x1199ea[_0x388c53('0x27')](_0x388c53('0x4'),_0x388c53('0xc'),{'type':_0x5897fd['INTEGER']}),_0x1199ea[_0x388c53('0x27')]('report_dial',_0x388c53('0x6'),{'type':_0x5897fd[_0x388c53('0x29')]}),_0x1199ea[_0x388c53('0x2b')](_0x388c53('0x18'),_0x388c53('0x14'),{'type':_0x5897fd['ENUM']('twilio',_0x388c53('0x10'),_0x388c53('0x26'),_0x388c53('0x2'))}),_0x1199ea[_0x388c53('0x27')]('dashboard_items',_0x388c53('0xe'),{'type':_0x5897fd[_0x388c53('0xa')],'allowNull':![],'defaultValue':_0x388c53('0x32'),'validate':{'notEmpty':!![]}}),_0x1199ea['addColumn'](_0x388c53('0x23'),'foreground',{'type':_0x5897fd[_0x388c53('0xa')],'allowNull':![],'defaultValue':_0x388c53('0x30'),'validate':{'notEmpty':!![]}}),_0x1199ea[_0x388c53('0x27')](_0x388c53('0x23'),_0x388c53('0x17'),{'type':_0x5897fd['STRING']}),_0x1199ea[_0x388c53('0x24')](_0x1f1d8a);});},'down':function(){}}; \ No newline at end of file +const a931_0x3814=['BOOLEAN','settings','STRING','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','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','clicksend','enqueue','#2196f3','billableseconds','final','join','migration','DATE','Added\x20column\x20%s\x20to\x20%s','catch','FaxAccountId','dashboard_items','passwordResetAt','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','dropTable','util','connectel','background','stringify','addColumn','UPDATE\x20settings\x20SET\x20securePassword=false\x20WHERE\x20id=1','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','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','report_dial','ChatWebsiteId','SmsAccountId','passwordExpiresDays','changeColumn','UPDATE\x20users\x20SET\x20passwordResetAt=NOW()','info','queryInterface','skebby','query','then','type','callRecordingEncryption','tail','prototype','duration','exports','INTEGER','sequence','twilio','inspect','foreground','MailAccountId','tools_canned_answers','removeColumn','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'];(function(_0x5db3a4,_0x38145a){const _0x28f0c3=function(_0x5a47d7){while(--_0x5a47d7){_0x5db3a4['push'](_0x5db3a4['shift']());}};_0x28f0c3(++_0x38145a);}(a931_0x3814,0x19a));const a931_0x28f0=function(_0x5db3a4,_0x38145a){_0x5db3a4=_0x5db3a4-0x0;let _0x28f0c3=a931_0x3814[_0x5db3a4];return _0x28f0c3;};const _0x9cc1b8=a931_0x28f0;'use strict';const util=require(_0x9cc1b8('0x32')),logger=require('../config/logger')(_0x9cc1b8('0x29')),Sequence=function(){};Sequence['prototype'][_0x9cc1b8('0x24')]=function(_0x5a47d7){const _0x8ddf3=_0x9cc1b8;this[_0x8ddf3('0x11')]=this[_0x8ddf3('0x11')]?this[_0x8ddf3('0x11')]['finally'](_0x5a47d7):_0x5a47d7();};const Migration=function(_0x1f6486){const _0x29208a=_0x9cc1b8;this[_0x29208a('0xb')]=_0x1f6486,this[_0x29208a('0x16')]=new Sequence();};Migration[_0x9cc1b8('0x12')]['changeColumn']=function(_0x257a1b,_0xde151,_0x4a4db1){const _0x24e674=_0x9cc1b8,_0x391682=this;this[_0x24e674('0x16')][_0x24e674('0x24')](function(){const _0x11dabe=_0x24e674;return _0x391682['queryInterface'][_0x11dabe('0x8')](_0x257a1b,_0xde151,_0x4a4db1)[_0x11dabe('0xe')](function(){const _0x4b3a4a=_0x11dabe;logger[_0x4b3a4a('0xa')](_0x4b3a4a('0x1'),_0xde151,_0x257a1b);})['catch'](function(_0x176dbc){const _0x566dd7=_0x11dabe;logger[_0x566dd7('0xa')](JSON[_0x566dd7('0x35')](_0x176dbc));});});},Migration[_0x9cc1b8('0x12')][_0x9cc1b8('0x36')]=function(_0x5a057b,_0x28f2e3,_0x467ca7){const _0x43ca94=this;this['sequence']['enqueue'](function(){const _0x38fd76=a931_0x28f0;return _0x43ca94['queryInterface'][_0x38fd76('0x36')](_0x5a057b,_0x28f2e3,_0x467ca7)[_0x38fd76('0xe')](function(){const _0x4302b8=_0x38fd76;logger[_0x4302b8('0xa')](_0x4302b8('0x2b'),_0x28f2e3,_0x5a057b);})[_0x38fd76('0x2c')](function(_0xbdecc2){const _0x47f1fe=_0x38fd76;logger[_0x47f1fe('0xa')](JSON['stringify'](_0xbdecc2));});});},Migration[_0x9cc1b8('0x12')][_0x9cc1b8('0x31')]=function(_0x37c337){const _0x3cdef9=_0x9cc1b8,_0x47018f=this;this[_0x3cdef9('0x16')]['enqueue'](function(){const _0x1b570b=_0x3cdef9;return _0x47018f[_0x1b570b('0xb')][_0x1b570b('0x31')](_0x37c337,{'force':!![]})[_0x1b570b('0xe')](function(){const _0x3de688=_0x1b570b;logger[_0x3de688('0xa')]('table\x20dropped\x20%s',_0x37c337);})[_0x1b570b('0x2c')](function(_0x4bf764){const _0x3c07ec=_0x1b570b;logger[_0x3c07ec('0xa')](JSON[_0x3c07ec('0x35')](_0x4bf764));});});},Migration['prototype'][_0x9cc1b8('0x2')]=function(_0x2917fa,_0x33f6c7,_0xd26b7c){const _0x4a0ff7=_0x9cc1b8,_0x1ae25a=this;this[_0x4a0ff7('0x16')][_0x4a0ff7('0x24')](function(){const _0x117d01=_0x4a0ff7;return _0x1ae25a[_0x117d01('0xb')][_0x117d01('0x2')](_0x2917fa,_0x33f6c7,{'indexName':_0xd26b7c})[_0x117d01('0xe')](function(){const _0x549f11=_0x117d01;logger[_0x549f11('0xa')]('addIndex\x20%s\x20%s\x20%s',_0x2917fa,_0x33f6c7[_0x549f11('0x28')](','),_0xd26b7c);})[_0x117d01('0x2c')](function(_0x417d5e){const _0x38717b=_0x117d01;logger[_0x38717b('0xa')](JSON['stringify'](_0x417d5e));});});},Migration[_0x9cc1b8('0x12')][_0x9cc1b8('0xd')]=function(_0x54d723){const _0x211cef=_0x9cc1b8,_0x2cf9ea=this;this[_0x211cef('0x16')][_0x211cef('0x24')](function(){const _0x50d622=_0x211cef;return _0x2cf9ea[_0x50d622('0xb')]['sequelize'][_0x50d622('0xd')](_0x54d723)['then'](function(){const _0x26aa0c=_0x50d622;logger[_0x26aa0c('0xa')]('query\x20%s',_0x54d723);})[_0x50d622('0x2c')](function(_0x3d788f){const _0x2ff44b=_0x50d622;logger[_0x2ff44b('0xa')](JSON[_0x2ff44b('0x35')](_0x3d788f));});});},Migration[_0x9cc1b8('0x12')][_0x9cc1b8('0x1c')]=function(_0x1a3adc,_0x4d1ee9){const _0x59d0a3=_0x9cc1b8,_0x5e2e79=this;this[_0x59d0a3('0x16')][_0x59d0a3('0x24')](function(){const _0x1bd56e=_0x59d0a3;return _0x5e2e79[_0x1bd56e('0xb')][_0x1bd56e('0x1c')](_0x1a3adc,_0x4d1ee9)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4d1ee9,_0x1a3adc);})[_0x1bd56e('0x2c')](function(_0x7662c2){const _0x4ef441=_0x1bd56e;logger[_0x4ef441('0xa')](util[_0x4ef441('0x18')](_0x7662c2,{'showHidden':![],'depth':null}));});});},Migration[_0x9cc1b8('0x12')][_0x9cc1b8('0x27')]=function(_0x121db9){const _0x38d87f=_0x9cc1b8;this[_0x38d87f('0x16')]['enqueue'](function(){return _0x121db9();});},module[_0x9cc1b8('0x14')]={'up':function(_0x1a8020,_0x153458){return new Promise(function(_0x46b249){const _0x3f9c60=a931_0x28f0,_0x3ca5fe=new Migration(_0x1a8020);_0x3ca5fe['addColumn'](_0x3f9c60('0x1f'),_0x3f9c60('0x10'),{'type':_0x153458[_0x3f9c60('0x1e')],'defaultValue':![]}),_0x3ca5fe[_0x3f9c60('0x36')](_0x3f9c60('0x1f'),_0x3f9c60('0x7'),{'type':_0x153458[_0x3f9c60('0x15')](0xb),'defaultValue':0x5a}),_0x3ca5fe['query'](_0x3f9c60('0x0')),_0x3ca5fe['addColumn'](_0x3f9c60('0x1b'),_0x3f9c60('0x1a'),{'type':_0x153458['INTEGER']}),_0x3ca5fe[_0x3f9c60('0x36')](_0x3f9c60('0x1b'),_0x3f9c60('0x2d'),{'type':_0x153458['INTEGER']}),_0x3ca5fe['addColumn'](_0x3f9c60('0x1b'),_0x3f9c60('0x6'),{'type':_0x153458[_0x3f9c60('0x15')]}),_0x3ca5fe[_0x3f9c60('0x36')](_0x3f9c60('0x1b'),'OpenchannelAccountId',{'type':_0x153458[_0x3f9c60('0x15')]}),_0x3ca5fe[_0x3f9c60('0x36')](_0x3f9c60('0x1b'),_0x3f9c60('0x5'),{'type':_0x153458[_0x3f9c60('0x15')]}),_0x3ca5fe['query'](_0x3f9c60('0x3')),_0x3ca5fe[_0x3f9c60('0xd')](_0x3f9c60('0x30')),_0x3ca5fe['query'](_0x3f9c60('0x1d')),_0x3ca5fe['query'](_0x3f9c60('0x22')),_0x3ca5fe[_0x3f9c60('0xd')](_0x3f9c60('0x21')),_0x3ca5fe[_0x3f9c60('0x36')]('users',_0x3f9c60('0x2f'),{'type':_0x153458[_0x3f9c60('0x2a')],'defaultValue':null}),_0x3ca5fe[_0x3f9c60('0xd')](_0x3f9c60('0x9')),_0x3ca5fe['addColumn'](_0x3f9c60('0x4'),_0x3f9c60('0x13'),{'type':_0x153458['INTEGER']}),_0x3ca5fe[_0x3f9c60('0x36')]('report_dial','holdtime',{'type':_0x153458[_0x3f9c60('0x15')]}),_0x3ca5fe['addColumn'](_0x3f9c60('0x4'),_0x3f9c60('0x26'),{'type':_0x153458[_0x3f9c60('0x15')]}),_0x3ca5fe['changeColumn']('sms_accounts',_0x3f9c60('0xf'),{'type':_0x153458['ENUM'](_0x3f9c60('0x17'),_0x3f9c60('0xc'),_0x3f9c60('0x33'),_0x3f9c60('0x23'))}),_0x3ca5fe[_0x3f9c60('0x36')](_0x3f9c60('0x2e'),_0x3f9c60('0x34'),{'type':_0x153458[_0x3f9c60('0x20')],'allowNull':![],'defaultValue':'#ffffff','validate':{'notEmpty':!![]}}),_0x3ca5fe[_0x3f9c60('0x36')](_0x3f9c60('0x2e'),_0x3f9c60('0x19'),{'type':_0x153458['STRING'],'allowNull':![],'defaultValue':_0x3f9c60('0x25'),'validate':{'notEmpty':!![]}}),_0x3ca5fe[_0x3f9c60('0x36')](_0x3f9c60('0x2e'),'link',{'type':_0x153458[_0x3f9c60('0x20')]}),_0x3ca5fe[_0x3f9c60('0x27')](_0x46b249);});},'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 d11f54c..14d58f1 100644 --- a/server/migrations/2.0.53.js +++ b/server/migrations/2.0.53.js @@ -1 +1 @@ -const a932_0x3e9f=['plivo','cm_contacts','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','query\x20%s','table\x20dropped\x20%s','tail','exports','prototype','queryInterface','STRING','stringify','description','xlsx','twilio','removeColumn','insecure','ENUM','then','Removed\x20column\x20%s\x20from\x20%s','connectel','changeColumn','../config/logger','info','addColumn','type','join','final','enqueue','addIndex','finally','catch','analytics_extracted_reports','csv','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','inspect','addIndex\x20%s\x20%s\x20%s','dropTable','users','skebby','pdf','util','sms_accounts','query'];(function(_0x4b22e7,_0x3e9f9d){const _0x32e86a=function(_0x4d9cb1){while(--_0x4d9cb1){_0x4b22e7['push'](_0x4b22e7['shift']());}};_0x32e86a(++_0x3e9f9d);}(a932_0x3e9f,0x19f));const a932_0x32e8=function(_0x4b22e7,_0x3e9f9d){_0x4b22e7=_0x4b22e7-0x0;let _0x32e86a=a932_0x3e9f[_0x4b22e7];return _0x32e86a;};const _0x3b2017=a932_0x32e8;'use strict';const util=require(_0x3b2017('0x16')),logger=require(_0x3b2017('0x3'))('migration'),Sequence=function(){};Sequence[_0x3b2017('0x21')]['enqueue']=function(_0x4d9cb1){const _0x427b3c=_0x3b2017;this[_0x427b3c('0x1f')]=this[_0x427b3c('0x1f')]?this['tail'][_0x427b3c('0xb')](_0x4d9cb1):_0x4d9cb1();};const Migration=function(_0x54cebb){const _0x43f179=_0x3b2017;this[_0x43f179('0x22')]=_0x54cebb,this[_0x43f179('0x1c')]=new Sequence();};Migration['prototype'][_0x3b2017('0x2')]=function(_0x31f7f6,_0x33b82c,_0x8fb2e7){const _0xaa2882=_0x3b2017,_0x19eed3=this;this['sequence'][_0xaa2882('0x9')](function(){const _0x2f2413=_0xaa2882;return _0x19eed3[_0x2f2413('0x22')][_0x2f2413('0x2')](_0x31f7f6,_0x33b82c,_0x8fb2e7)[_0x2f2413('0x2b')](function(){const _0x323565=_0x2f2413;logger[_0x323565('0x4')](_0x323565('0x1b'),_0x33b82c,_0x31f7f6);})[_0x2f2413('0xc')](function(_0x1bc4f6){const _0x5ef069=_0x2f2413;logger[_0x5ef069('0x4')](JSON[_0x5ef069('0x24')](_0x1bc4f6));});});},Migration[_0x3b2017('0x21')][_0x3b2017('0x5')]=function(_0x1c256b,_0x175181,_0x363987){const _0x87303f=_0x3b2017,_0x48cf20=this;this['sequence'][_0x87303f('0x9')](function(){const _0x43cec0=_0x87303f;return _0x48cf20[_0x43cec0('0x22')]['addColumn'](_0x1c256b,_0x175181,_0x363987)[_0x43cec0('0x2b')](function(){const _0x377bbb=_0x43cec0;logger[_0x377bbb('0x4')]('Added\x20column\x20%s\x20to\x20%s',_0x175181,_0x1c256b);})[_0x43cec0('0xc')](function(_0x1837b1){const _0x4524f3=_0x43cec0;logger[_0x4524f3('0x4')](JSON[_0x4524f3('0x24')](_0x1837b1));});});},Migration[_0x3b2017('0x21')][_0x3b2017('0x12')]=function(_0x45b1b4){const _0x4f84eb=_0x3b2017,_0x1d3823=this;this[_0x4f84eb('0x1c')]['enqueue'](function(){const _0x47792=_0x4f84eb;return _0x1d3823['queryInterface'][_0x47792('0x12')](_0x45b1b4,{'force':!![]})[_0x47792('0x2b')](function(){const _0x44f789=_0x47792;logger[_0x44f789('0x4')](_0x44f789('0x1e'),_0x45b1b4);})['catch'](function(_0x3073b0){logger['info'](JSON['stringify'](_0x3073b0));});});},Migration[_0x3b2017('0x21')][_0x3b2017('0xa')]=function(_0x2334cf,_0x48dbcb,_0x412e33){const _0x5654d8=_0x3b2017,_0x3ef9c4=this;this[_0x5654d8('0x1c')][_0x5654d8('0x9')](function(){const _0x1d12d5=_0x5654d8;return _0x3ef9c4[_0x1d12d5('0x22')]['addIndex'](_0x2334cf,_0x48dbcb,{'indexName':_0x412e33})['then'](function(){const _0x38bcf8=_0x1d12d5;logger[_0x38bcf8('0x4')](_0x38bcf8('0x11'),_0x2334cf,_0x48dbcb[_0x38bcf8('0x7')](','),_0x412e33);})[_0x1d12d5('0xc')](function(_0x14d6c6){const _0x2f6bfa=_0x1d12d5;logger[_0x2f6bfa('0x4')](JSON[_0x2f6bfa('0x24')](_0x14d6c6));});});},Migration[_0x3b2017('0x21')]['query']=function(_0x524ad0){const _0x30f958=_0x3b2017,_0x197683=this;this['sequence'][_0x30f958('0x9')](function(){const _0x4bdfd2=_0x30f958;return _0x197683[_0x4bdfd2('0x22')]['sequelize']['query'](_0x524ad0)[_0x4bdfd2('0x2b')](function(){const _0x1a28e6=_0x4bdfd2;logger['info'](_0x1a28e6('0x1d'),_0x524ad0);})['catch'](function(_0x4967be){const _0xf7de23=_0x4bdfd2;logger[_0xf7de23('0x4')](JSON['stringify'](_0x4967be));});});},Migration[_0x3b2017('0x21')][_0x3b2017('0x28')]=function(_0x497fc1,_0x5ddd20){const _0x38842a=_0x3b2017,_0x5cbc7e=this;this[_0x38842a('0x1c')][_0x38842a('0x9')](function(){const _0xd3c432=_0x38842a;return _0x5cbc7e['queryInterface'][_0xd3c432('0x28')](_0x497fc1,_0x5ddd20)['then'](function(){const _0xf496dc=_0xd3c432;logger['info'](_0xf496dc('0x0'),_0x5ddd20,_0x497fc1);})[_0xd3c432('0xc')](function(_0x4302b4){const _0x46d56f=_0xd3c432;logger[_0x46d56f('0x4')](util[_0x46d56f('0x10')](_0x4302b4,{'showHidden':![],'depth':null}));});});},Migration[_0x3b2017('0x21')][_0x3b2017('0x8')]=function(_0x2b0c5a){const _0x7b70cf=_0x3b2017;this['sequence'][_0x7b70cf('0x9')](function(){return _0x2b0c5a();});},module[_0x3b2017('0x20')]={'up':function(_0x30ccab,_0x5c058c){return new Promise(function(_0x1866cd){const _0x347f04=a932_0x32e8,_0x240951=new Migration(_0x30ccab);_0x240951[_0x347f04('0x2')](_0x347f04('0x1a'),_0x347f04('0x25'),{'type':_0x5c058c['TEXT']}),_0x240951['changeColumn'](_0x347f04('0x17'),_0x347f04('0x6'),{'type':_0x5c058c[_0x347f04('0x2a')](_0x347f04('0x27'),_0x347f04('0x14'),_0x347f04('0x1'),'clicksend',_0x347f04('0x19'))}),_0x240951[_0x347f04('0x2')](_0x347f04('0xd'),'output',{'type':_0x5c058c['ENUM']('csv',_0x347f04('0x15'),'xls',_0x347f04('0x26')),'allowNull':![],'defaultValue':'csv'}),_0x240951[_0x347f04('0x18')]('UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27'),_0x240951[_0x347f04('0x2')](_0x347f04('0xd'),'output',{'type':_0x5c058c[_0x347f04('0x2a')]('csv',_0x347f04('0x15'),'xlsx'),'allowNull':![],'defaultValue':_0x347f04('0xe')}),_0x240951[_0x347f04('0x18')](_0x347f04('0xf')),_0x240951[_0x347f04('0x2')](_0x347f04('0x13'),_0x347f04('0x29'),{'type':_0x5c058c[_0x347f04('0x23')],'allowNull':!![]}),_0x240951[_0x347f04('0x8')](_0x1866cd);});},'down':function(){}}; \ No newline at end of file +const a932_0x17d8=['final','query','addIndex\x20%s\x20%s\x20%s','twilio','../config/logger','info','queryInterface','inspect','csv','UPDATE\x20users\x20SET\x20insecure=NULL\x20WHERE\x20insecure=\x27port,invite\x27','sms_accounts','changeColumn','prototype','exports','ENUM','addIndex','sequelize','migration','tail','plivo','connectel','UPDATE\x20analytics_extracted_reports\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','insecure','output','xls','join','then','cm_contacts','xlsx','TEXT','table\x20dropped\x20%s','catch','query\x20%s','description','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','analytics_extracted_reports','addColumn','util','skebby','clicksend','pdf','finally','dropTable','Added\x20column\x20%s\x20to\x20%s','stringify','removeColumn','enqueue'];(function(_0x1c171c,_0x17d8ce){const _0x495edb=function(_0x27814f){while(--_0x27814f){_0x1c171c['push'](_0x1c171c['shift']());}};_0x495edb(++_0x17d8ce);}(a932_0x17d8,0x17e));const a932_0x495e=function(_0x1c171c,_0x17d8ce){_0x1c171c=_0x1c171c-0x0;let _0x495edb=a932_0x17d8[_0x1c171c];return _0x495edb;};const _0x28f8ff=a932_0x495e;'use strict';const util=require(_0x28f8ff('0x28')),logger=require(_0x28f8ff('0x6'))(_0x28f8ff('0x13')),Sequence=function(){};Sequence[_0x28f8ff('0xe')][_0x28f8ff('0x1')]=function(_0x27814f){const _0x596774=_0x28f8ff;this[_0x596774('0x14')]=this[_0x596774('0x14')]?this[_0x596774('0x14')][_0x596774('0x2c')](_0x27814f):_0x27814f();};const Migration=function(_0xbbdcd){const _0x52e8b4=_0x28f8ff;this[_0x52e8b4('0x8')]=_0xbbdcd,this[_0x52e8b4('0x24')]=new Sequence();};Migration[_0x28f8ff('0xe')][_0x28f8ff('0xd')]=function(_0x6cdcb3,_0x1fffbb,_0x191378){const _0x440c29=_0x28f8ff,_0x3e0d8d=this;this[_0x440c29('0x24')][_0x440c29('0x1')](function(){const _0x49f257=_0x440c29;return _0x3e0d8d[_0x49f257('0x8')]['changeColumn'](_0x6cdcb3,_0x1fffbb,_0x191378)['then'](function(){const _0x1f4153=_0x49f257;logger[_0x1f4153('0x7')](_0x1f4153('0x25'),_0x1fffbb,_0x6cdcb3);})['catch'](function(_0x448225){const _0x5d3f06=_0x49f257;logger['info'](JSON[_0x5d3f06('0x2f')](_0x448225));});});},Migration[_0x28f8ff('0xe')]['addColumn']=function(_0xf4680d,_0x31e8d7,_0x16ea3c){const _0x240111=_0x28f8ff,_0x507d6b=this;this[_0x240111('0x24')][_0x240111('0x1')](function(){const _0x16c06e=_0x240111;return _0x507d6b['queryInterface'][_0x16c06e('0x27')](_0xf4680d,_0x31e8d7,_0x16ea3c)['then'](function(){const _0x4cf9cd=_0x16c06e;logger[_0x4cf9cd('0x7')](_0x4cf9cd('0x2e'),_0x31e8d7,_0xf4680d);})[_0x16c06e('0x21')](function(_0x383972){const _0x232709=_0x16c06e;logger[_0x232709('0x7')](JSON[_0x232709('0x2f')](_0x383972));});});},Migration[_0x28f8ff('0xe')]['dropTable']=function(_0x5d8b50){const _0xaf67d6=_0x28f8ff,_0x488868=this;this[_0xaf67d6('0x24')][_0xaf67d6('0x1')](function(){const _0x90e5b=_0xaf67d6;return _0x488868[_0x90e5b('0x8')][_0x90e5b('0x2d')](_0x5d8b50,{'force':!![]})[_0x90e5b('0x1c')](function(){const _0x117670=_0x90e5b;logger[_0x117670('0x7')](_0x117670('0x20'),_0x5d8b50);})[_0x90e5b('0x21')](function(_0xd91f56){const _0x303e56=_0x90e5b;logger[_0x303e56('0x7')](JSON['stringify'](_0xd91f56));});});},Migration[_0x28f8ff('0xe')][_0x28f8ff('0x11')]=function(_0xd1d197,_0x15e91d,_0x196fd8){const _0x223070=_0x28f8ff,_0x2cae52=this;this[_0x223070('0x24')][_0x223070('0x1')](function(){const _0x4b2d34=_0x223070;return _0x2cae52['queryInterface'][_0x4b2d34('0x11')](_0xd1d197,_0x15e91d,{'indexName':_0x196fd8})[_0x4b2d34('0x1c')](function(){const _0x37403d=_0x4b2d34;logger[_0x37403d('0x7')](_0x37403d('0x4'),_0xd1d197,_0x15e91d[_0x37403d('0x1b')](','),_0x196fd8);})[_0x4b2d34('0x21')](function(_0x60dfe7){const _0xeb6106=_0x4b2d34;logger[_0xeb6106('0x7')](JSON[_0xeb6106('0x2f')](_0x60dfe7));});});},Migration['prototype'][_0x28f8ff('0x3')]=function(_0xcbb4f9){const _0xf97b1d=_0x28f8ff,_0x3571c2=this;this[_0xf97b1d('0x24')][_0xf97b1d('0x1')](function(){const _0x2efe6f=_0xf97b1d;return _0x3571c2[_0x2efe6f('0x8')][_0x2efe6f('0x12')][_0x2efe6f('0x3')](_0xcbb4f9)[_0x2efe6f('0x1c')](function(){const _0x310b33=_0x2efe6f;logger['info'](_0x310b33('0x22'),_0xcbb4f9);})[_0x2efe6f('0x21')](function(_0x22ff73){const _0x195558=_0x2efe6f;logger[_0x195558('0x7')](JSON[_0x195558('0x2f')](_0x22ff73));});});},Migration['prototype']['removeColumn']=function(_0x1afe58,_0x520230){const _0x3f9651=_0x28f8ff,_0x18f4de=this;this['sequence'][_0x3f9651('0x1')](function(){const _0x5a06ba=_0x3f9651;return _0x18f4de['queryInterface'][_0x5a06ba('0x0')](_0x1afe58,_0x520230)[_0x5a06ba('0x1c')](function(){const _0x83d734=_0x5a06ba;logger[_0x83d734('0x7')]('Removed\x20column\x20%s\x20from\x20%s',_0x520230,_0x1afe58);})[_0x5a06ba('0x21')](function(_0x33daa8){const _0x13e9ce=_0x5a06ba;logger[_0x13e9ce('0x7')](util[_0x13e9ce('0x9')](_0x33daa8,{'showHidden':![],'depth':null}));});});},Migration[_0x28f8ff('0xe')][_0x28f8ff('0x2')]=function(_0x3996a9){const _0xa073bc=_0x28f8ff;this[_0xa073bc('0x24')][_0xa073bc('0x1')](function(){return _0x3996a9();});},module[_0x28f8ff('0xf')]={'up':function(_0x1c2f41,_0x6d0180){return new Promise(function(_0xc5bbd0){const _0x5366f6=a932_0x495e,_0x39f1ee=new Migration(_0x1c2f41);_0x39f1ee['changeColumn'](_0x5366f6('0x1d'),_0x5366f6('0x23'),{'type':_0x6d0180[_0x5366f6('0x1f')]}),_0x39f1ee['changeColumn'](_0x5366f6('0xc'),'type',{'type':_0x6d0180[_0x5366f6('0x10')](_0x5366f6('0x5'),_0x5366f6('0x29'),_0x5366f6('0x16'),_0x5366f6('0x2a'),_0x5366f6('0x15'))}),_0x39f1ee[_0x5366f6('0xd')]('analytics_extracted_reports',_0x5366f6('0x19'),{'type':_0x6d0180[_0x5366f6('0x10')](_0x5366f6('0xa'),_0x5366f6('0x2b'),_0x5366f6('0x1a'),'xlsx'),'allowNull':![],'defaultValue':_0x5366f6('0xa')}),_0x39f1ee['query'](_0x5366f6('0x17')),_0x39f1ee['changeColumn'](_0x5366f6('0x26'),_0x5366f6('0x19'),{'type':_0x6d0180[_0x5366f6('0x10')](_0x5366f6('0xa'),_0x5366f6('0x2b'),_0x5366f6('0x1e')),'allowNull':![],'defaultValue':_0x5366f6('0xa')}),_0x39f1ee[_0x5366f6('0x3')](_0x5366f6('0xb')),_0x39f1ee[_0x5366f6('0xd')]('users',_0x5366f6('0x18'),{'type':_0x6d0180['STRING'],'allowNull':!![]}),_0x39f1ee[_0x5366f6('0x2')](_0xc5bbd0);});},'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 eedee08..652b058 100644 --- a/server/migrations/2.0.54.js +++ b/server/migrations/2.0.54.js @@ -1 +1 @@ -const a933_0xb439=['STRING','chat_websites','removeColumn','BOOLEAN','changeColumn','sequelize','catch','fontSize','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','textColor','join','info','#ffffff','query','Removed\x20column\x20%s\x20from\x20%s','tail','markAsUnread','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','fontFamily','query\x20%s','queryInterface','output','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','Arial,Helvetica,sans-serif','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','tools_schedules','INTEGER','addColumn','UNSIGNED','migration','csv','Added\x20column\x20%s\x20to\x20%s','pdf','renameColumn','enqueue','inspect','addIndex\x20%s\x20%s\x20%s','timezone','xls','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ENUM','addIndex','xlsx','finally','template','sequence','then','prototype','mail_accounts','stringify','table\x20dropped\x20%s'];(function(_0xb72fd6,_0xb4398e){const _0x17d8fd=function(_0x3c7fc8){while(--_0x3c7fc8){_0xb72fd6['push'](_0xb72fd6['shift']());}};_0x17d8fd(++_0xb4398e);}(a933_0xb439,0x1ce));const a933_0x17d8=function(_0xb72fd6,_0xb4398e){_0xb72fd6=_0xb72fd6-0x0;let _0x17d8fd=a933_0xb439[_0xb72fd6];return _0x17d8fd;};const _0x3e53a9=a933_0x17d8;'use strict';const util=require('util'),logger=require('../config/logger')(_0x3e53a9('0x2e')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x3c7fc8){const _0x4cb677=_0x3e53a9;this['tail']=this[_0x4cb677('0x1e')]?this[_0x4cb677('0x1e')][_0x4cb677('0x7')](_0x3c7fc8):_0x3c7fc8();};const Migration=function(_0x451319){const _0x44c9a2=_0x3e53a9;this['queryInterface']=_0x451319,this[_0x44c9a2('0x9')]=new Sequence();};Migration[_0x3e53a9('0xb')][_0x3e53a9('0x13')]=function(_0xd09377,_0x3fcee3,_0x3a1e13){const _0x24864a=_0x3e53a9,_0x393a79=this;this[_0x24864a('0x9')][_0x24864a('0x33')](function(){const _0x3db0f7=_0x24864a;return _0x393a79['queryInterface'][_0x3db0f7('0x13')](_0xd09377,_0x3fcee3,_0x3a1e13)['then'](function(){const _0x431ca8=_0x3db0f7;logger['info'](_0x431ca8('0x29'),_0x3fcee3,_0xd09377);})[_0x3db0f7('0x15')](function(_0x2258e3){const _0x2e3b2b=_0x3db0f7;logger['info'](JSON[_0x2e3b2b('0xd')](_0x2258e3));});});},Migration['prototype'][_0x3e53a9('0x2c')]=function(_0x284fa9,_0x55e12c,_0x3d785d){const _0x1e2a0d=_0x3e53a9,_0x47fdf5=this;this[_0x1e2a0d('0x9')]['enqueue'](function(){const _0x20fad3=_0x1e2a0d;return _0x47fdf5[_0x20fad3('0x24')][_0x20fad3('0x2c')](_0x284fa9,_0x55e12c,_0x3d785d)[_0x20fad3('0xa')](function(){const _0x4f9b0a=_0x20fad3;logger['info'](_0x4f9b0a('0x30'),_0x55e12c,_0x284fa9);})['catch'](function(_0x42c2ac){const _0x4148ef=_0x20fad3;logger['info'](JSON[_0x4148ef('0xd')](_0x42c2ac));});});},Migration[_0x3e53a9('0xb')]['dropTable']=function(_0x539f62){const _0x31edb5=_0x3e53a9,_0x131c41=this;this[_0x31edb5('0x9')][_0x31edb5('0x33')](function(){const _0x2df9d2=_0x31edb5;return _0x131c41[_0x2df9d2('0x24')]['dropTable'](_0x539f62,{'force':!![]})[_0x2df9d2('0xa')](function(){const _0x4a67bb=_0x2df9d2;logger['info'](_0x4a67bb('0xe'),_0x539f62);})[_0x2df9d2('0x15')](function(_0x542cd4){logger['info'](JSON['stringify'](_0x542cd4));});});},Migration['prototype'][_0x3e53a9('0x5')]=function(_0x1d8c86,_0x4398de,_0x14190c){const _0x3c223c=_0x3e53a9,_0x356e64=this;this['sequence'][_0x3c223c('0x33')](function(){const _0x3a59fd=_0x3c223c;return _0x356e64[_0x3a59fd('0x24')][_0x3a59fd('0x5')](_0x1d8c86,_0x4398de,{'indexName':_0x14190c})[_0x3a59fd('0xa')](function(){const _0xd5449a=_0x3a59fd;logger[_0xd5449a('0x1a')](_0xd5449a('0x0'),_0x1d8c86,_0x4398de[_0xd5449a('0x19')](','),_0x14190c);})[_0x3a59fd('0x15')](function(_0x2efb12){const _0xc24adb=_0x3a59fd;logger[_0xc24adb('0x1a')](JSON['stringify'](_0x2efb12));});});},Migration[_0x3e53a9('0xb')][_0x3e53a9('0x1c')]=function(_0x566325){const _0x33c94c=_0x3e53a9,_0x278e94=this;this[_0x33c94c('0x9')][_0x33c94c('0x33')](function(){const _0x72d49b=_0x33c94c;return _0x278e94[_0x72d49b('0x24')][_0x72d49b('0x14')]['query'](_0x566325)['then'](function(){const _0x1d74b2=_0x72d49b;logger['info'](_0x1d74b2('0x23'),_0x566325);})[_0x72d49b('0x15')](function(_0xba8729){const _0xcdb5d0=_0x72d49b;logger[_0xcdb5d0('0x1a')](JSON[_0xcdb5d0('0xd')](_0xba8729));});});},Migration['prototype']['removeColumn']=function(_0x18f23c,_0x4d53c0){const _0x7fe513=_0x3e53a9,_0x562215=this;this[_0x7fe513('0x9')]['enqueue'](function(){const _0x23f0c3=_0x7fe513;return _0x562215[_0x23f0c3('0x24')][_0x23f0c3('0x11')](_0x18f23c,_0x4d53c0)[_0x23f0c3('0xa')](function(){const _0x280ab6=_0x23f0c3;logger[_0x280ab6('0x1a')](_0x280ab6('0x1d'),_0x4d53c0,_0x18f23c);})[_0x23f0c3('0x15')](function(_0xdd406e){const _0x293397=_0x23f0c3;logger[_0x293397('0x1a')](util[_0x293397('0x34')](_0xdd406e,{'showHidden':![],'depth':null}));});});},Migration[_0x3e53a9('0xb')]['renameColumn']=function(_0x451be0,_0x5dd6d4,_0x355b05){const _0x43bb53=_0x3e53a9,_0x2a749a=this;this[_0x43bb53('0x9')][_0x43bb53('0x33')](function(){const _0x2ded56=_0x43bb53;return _0x2a749a[_0x2ded56('0x24')]['renameColumn'](_0x451be0,_0x5dd6d4,_0x355b05)['then'](function(){const _0x5c03cc=_0x2ded56;logger[_0x5c03cc('0x1a')](_0x5c03cc('0x3'),_0x5dd6d4,_0x355b05,_0x451be0);})[_0x2ded56('0x15')](function(_0x489563){const _0x180d48=_0x2ded56;logger[_0x180d48('0x1a')](util[_0x180d48('0x34')](_0x489563,{'showHidden':![],'depth':null}));});});},Migration[_0x3e53a9('0xb')]['final']=function(_0x52e106){const _0x3a6688=_0x3e53a9;this[_0x3a6688('0x9')]['enqueue'](function(){return _0x52e106();});},module[_0x3e53a9('0x28')]={'up':function(_0x569825,_0x3c26c8){return new Promise(function(_0x567ddb){const _0x43b01e=a933_0x17d8,_0x58cca7=new Migration(_0x569825);_0x58cca7[_0x43b01e('0x2c')](_0x43b01e('0x10'),_0x43b01e('0x18'),{'type':_0x3c26c8[_0x43b01e('0xf')],'allowNull':![],'defaultValue':_0x43b01e('0x1b'),'validate':{'notEmpty':!![]}}),_0x58cca7['addColumn']('chat_websites',_0x43b01e('0x16'),{'type':_0x3c26c8['INTEGER'],'defaultValue':0xf}),_0x58cca7['addColumn'](_0x43b01e('0x10'),_0x43b01e('0x1'),{'type':_0x3c26c8[_0x43b01e('0xf')]}),_0x58cca7[_0x43b01e('0x1c')](_0x43b01e('0x26')),_0x58cca7[_0x43b01e('0x1c')](_0x43b01e('0x20')),_0x58cca7['query'](_0x43b01e('0x17')),_0x58cca7['changeColumn'](_0x43b01e('0x2a'),_0x43b01e('0x25'),{'type':_0x3c26c8[_0x43b01e('0x4')](_0x43b01e('0x2f'),_0x43b01e('0x31'),_0x43b01e('0x2'),_0x43b01e('0x6')),'allowNull':![],'defaultValue':'csv'}),_0x58cca7[_0x43b01e('0x1c')](_0x43b01e('0x21')),_0x58cca7['changeColumn'](_0x43b01e('0x2a'),_0x43b01e('0x25'),{'type':_0x3c26c8[_0x43b01e('0x4')](_0x43b01e('0x2f'),_0x43b01e('0x31'),_0x43b01e('0x6')),'allowNull':![],'defaultValue':'csv'}),_0x58cca7[_0x43b01e('0x2c')](_0x43b01e('0xc'),_0x43b01e('0x1f'),{'type':_0x3c26c8[_0x43b01e('0x12')],'defaultValue':![]}),_0x58cca7[_0x43b01e('0x2c')](_0x43b01e('0xc'),_0x43b01e('0x22'),{'type':_0x3c26c8[_0x43b01e('0xf')],'allowNull':![],'defaultValue':_0x43b01e('0x27')}),_0x58cca7[_0x43b01e('0x2c')]('mail_accounts',_0x43b01e('0x16'),{'type':_0x3c26c8[_0x43b01e('0x2b')](0x2)[_0x43b01e('0x2d')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x58cca7[_0x43b01e('0x32')](_0x43b01e('0xc'),'signature',_0x43b01e('0x8')),_0x58cca7['final'](_0x567ddb);});},'down':function(){}}; \ No newline at end of file +const a933_0x58e0=['STRING','Arial,Helvetica,sans-serif','#ffffff','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','final','enqueue','table\x20dropped\x20%s','ENUM','sequence','inspect','removeColumn','addColumn','xls','catch','renameColumn','UPDATE\x20users\x20SET\x20nat=\x27force_rport,comedia\x27\x20WHERE\x20nat\x20IS\x20NULL','exports','timezone','util','csv','info','xlsx','mail_accounts','UPDATE\x20tools_schedules\x20SET\x20output=\x27xlsx\x27\x20WHERE\x20output=\x27xls\x27','Added\x20column\x20%s\x20to\x20%s','prototype','tools_schedules','fontSize','migration','UNSIGNED','addIndex','pdf','UPDATE\x20users\x20SET\x20transport=\x27udp\x27\x20WHERE\x20avpf\x20IS\x20NULL\x20AND\x20transport\x20IS\x20NULL','INTEGER','queryInterface','chat_websites','UPDATE\x20users\x20SET\x20transport=\x27wss\x27\x20WHERE\x20avpf\x20IS\x20NOT\x20NULL','signature','../config/logger','query','fontFamily','finally','output','join','dropTable','changeColumn','query\x20%s','tail','then'];(function(_0x183b9a,_0x58e009){const _0x42d960=function(_0x20312c){while(--_0x20312c){_0x183b9a['push'](_0x183b9a['shift']());}};_0x42d960(++_0x58e009);}(a933_0x58e0,0x1ba));const a933_0x42d9=function(_0x183b9a,_0x58e009){_0x183b9a=_0x183b9a-0x0;let _0x42d960=a933_0x58e0[_0x183b9a];return _0x42d960;};const _0x487836=a933_0x42d9;'use strict';const util=require(_0x487836('0x25')),logger=require(_0x487836('0x6'))(_0x487836('0x2f')),Sequence=function(){};Sequence[_0x487836('0x2c')][_0x487836('0x18')]=function(_0x20312c){const _0x235633=_0x487836;this[_0x235633('0xf')]=this['tail']?this[_0x235633('0xf')][_0x235633('0x9')](_0x20312c):_0x20312c();};const Migration=function(_0x11a543){const _0x399070=_0x487836;this[_0x399070('0x2')]=_0x11a543,this[_0x399070('0x1b')]=new Sequence();};Migration[_0x487836('0x2c')][_0x487836('0xd')]=function(_0x363757,_0x414701,_0x285270){const _0x10d9f7=_0x487836,_0x87550e=this;this[_0x10d9f7('0x1b')]['enqueue'](function(){const _0x19e303=_0x10d9f7;return _0x87550e[_0x19e303('0x2')][_0x19e303('0xd')](_0x363757,_0x414701,_0x285270)[_0x19e303('0x10')](function(){const _0x2d3aa2=_0x19e303;logger[_0x2d3aa2('0x27')](_0x2d3aa2('0x15'),_0x414701,_0x363757);})[_0x19e303('0x20')](function(_0x50bbb4){const _0x51516a=_0x19e303;logger[_0x51516a('0x27')](JSON['stringify'](_0x50bbb4));});});},Migration[_0x487836('0x2c')][_0x487836('0x1e')]=function(_0x1e780f,_0x2533d4,_0x539b85){const _0x59f557=_0x487836,_0x4587a5=this;this[_0x59f557('0x1b')][_0x59f557('0x18')](function(){const _0x22074d=_0x59f557;return _0x4587a5[_0x22074d('0x2')][_0x22074d('0x1e')](_0x1e780f,_0x2533d4,_0x539b85)[_0x22074d('0x10')](function(){const _0x50f1a6=_0x22074d;logger['info'](_0x50f1a6('0x2b'),_0x2533d4,_0x1e780f);})['catch'](function(_0x2e8163){const _0x5d8af3=_0x22074d;logger[_0x5d8af3('0x27')](JSON[_0x5d8af3('0x16')](_0x2e8163));});});},Migration[_0x487836('0x2c')][_0x487836('0xc')]=function(_0x34b0b4){const _0x1a4df2=_0x487836,_0x399554=this;this[_0x1a4df2('0x1b')][_0x1a4df2('0x18')](function(){const _0x2e463f=_0x1a4df2;return _0x399554[_0x2e463f('0x2')][_0x2e463f('0xc')](_0x34b0b4,{'force':!![]})[_0x2e463f('0x10')](function(){const _0x2a1811=_0x2e463f;logger[_0x2a1811('0x27')](_0x2a1811('0x19'),_0x34b0b4);})[_0x2e463f('0x20')](function(_0x31c0da){const _0x205d97=_0x2e463f;logger[_0x205d97('0x27')](JSON[_0x205d97('0x16')](_0x31c0da));});});},Migration[_0x487836('0x2c')]['addIndex']=function(_0x2d459e,_0x4fcacf,_0x154965){const _0x3da40a=_0x487836,_0x25676b=this;this[_0x3da40a('0x1b')][_0x3da40a('0x18')](function(){const _0x1d7606=_0x3da40a;return _0x25676b[_0x1d7606('0x2')][_0x1d7606('0x31')](_0x2d459e,_0x4fcacf,{'indexName':_0x154965})['then'](function(){const _0x55f2ff=_0x1d7606;logger[_0x55f2ff('0x27')](_0x55f2ff('0x14'),_0x2d459e,_0x4fcacf[_0x55f2ff('0xb')](','),_0x154965);})[_0x1d7606('0x20')](function(_0x594f85){const _0x21246e=_0x1d7606;logger[_0x21246e('0x27')](JSON['stringify'](_0x594f85));});});},Migration[_0x487836('0x2c')][_0x487836('0x7')]=function(_0x41eac3){const _0x3e8b55=_0x487836,_0x483ee3=this;this[_0x3e8b55('0x1b')][_0x3e8b55('0x18')](function(){const _0x55b486=_0x3e8b55;return _0x483ee3[_0x55b486('0x2')]['sequelize'][_0x55b486('0x7')](_0x41eac3)[_0x55b486('0x10')](function(){const _0x861799=_0x55b486;logger['info'](_0x861799('0xe'),_0x41eac3);})[_0x55b486('0x20')](function(_0x473294){const _0x389a7a=_0x55b486;logger[_0x389a7a('0x27')](JSON['stringify'](_0x473294));});});},Migration[_0x487836('0x2c')][_0x487836('0x1d')]=function(_0x2ed08b,_0x166f40){const _0x56402d=_0x487836,_0x417c55=this;this['sequence'][_0x56402d('0x18')](function(){const _0x451932=_0x56402d;return _0x417c55[_0x451932('0x2')][_0x451932('0x1d')](_0x2ed08b,_0x166f40)[_0x451932('0x10')](function(){const _0x2f7a37=_0x451932;logger[_0x2f7a37('0x27')]('Removed\x20column\x20%s\x20from\x20%s',_0x166f40,_0x2ed08b);})[_0x451932('0x20')](function(_0xcb6f71){const _0x1521f9=_0x451932;logger[_0x1521f9('0x27')](util['inspect'](_0xcb6f71,{'showHidden':![],'depth':null}));});});},Migration[_0x487836('0x2c')][_0x487836('0x21')]=function(_0x2c8b34,_0x5b4f90,_0x21aa2c){const _0x3a1a08=_0x487836,_0x37ae83=this;this[_0x3a1a08('0x1b')][_0x3a1a08('0x18')](function(){const _0x11f52a=_0x3a1a08;return _0x37ae83['queryInterface'][_0x11f52a('0x21')](_0x2c8b34,_0x5b4f90,_0x21aa2c)[_0x11f52a('0x10')](function(){const _0x34f24a=_0x11f52a;logger[_0x34f24a('0x27')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5b4f90,_0x21aa2c,_0x2c8b34);})['catch'](function(_0x106f48){const _0x1479d9=_0x11f52a;logger[_0x1479d9('0x27')](util[_0x1479d9('0x1c')](_0x106f48,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x4d3111){const _0x30350d=_0x487836;this[_0x30350d('0x1b')]['enqueue'](function(){return _0x4d3111();});},module[_0x487836('0x23')]={'up':function(_0x211261,_0x4e658d){return new Promise(function(_0x417a61){const _0x564457=a933_0x42d9,_0x30697b=new Migration(_0x211261);_0x30697b[_0x564457('0x1e')](_0x564457('0x3'),'textColor',{'type':_0x4e658d[_0x564457('0x11')],'allowNull':![],'defaultValue':_0x564457('0x13'),'validate':{'notEmpty':!![]}}),_0x30697b[_0x564457('0x1e')](_0x564457('0x3'),'fontSize',{'type':_0x4e658d[_0x564457('0x1')],'defaultValue':0xf}),_0x30697b[_0x564457('0x1e')](_0x564457('0x3'),_0x564457('0x24'),{'type':_0x4e658d[_0x564457('0x11')]}),_0x30697b['query'](_0x564457('0x22')),_0x30697b[_0x564457('0x7')](_0x564457('0x0')),_0x30697b[_0x564457('0x7')](_0x564457('0x4')),_0x30697b[_0x564457('0xd')](_0x564457('0x2d'),'output',{'type':_0x4e658d[_0x564457('0x1a')](_0x564457('0x26'),'pdf',_0x564457('0x1f'),'xlsx'),'allowNull':![],'defaultValue':_0x564457('0x26')}),_0x30697b[_0x564457('0x7')](_0x564457('0x2a')),_0x30697b[_0x564457('0xd')](_0x564457('0x2d'),_0x564457('0xa'),{'type':_0x4e658d[_0x564457('0x1a')](_0x564457('0x26'),_0x564457('0x32'),_0x564457('0x28')),'allowNull':![],'defaultValue':_0x564457('0x26')}),_0x30697b[_0x564457('0x1e')]('mail_accounts','markAsUnread',{'type':_0x4e658d['BOOLEAN'],'defaultValue':![]}),_0x30697b[_0x564457('0x1e')](_0x564457('0x29'),_0x564457('0x8'),{'type':_0x4e658d[_0x564457('0x11')],'allowNull':![],'defaultValue':_0x564457('0x12')}),_0x30697b[_0x564457('0x1e')]('mail_accounts',_0x564457('0x2e'),{'type':_0x4e658d[_0x564457('0x1')](0x2)[_0x564457('0x30')],'defaultValue':0xd,'validate':{'min':0x8,'max':0x48}}),_0x30697b[_0x564457('0x21')]('mail_accounts',_0x564457('0x5'),'template'),_0x30697b[_0x564457('0x17')](_0x417a61);});},'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 3811038..2dfc84d 100644 --- a/server/migrations/2.0.55.js +++ b/server/migrations/2.0.55.js @@ -1 +1 @@ -const a934_0x4a04=['renameColumn','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());','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','info','queryInterface','then','tail','removeColumn','migration','sms_accounts','sequence','prototype','sequelize','join','query','final','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;','exports','Removed\x20column\x20%s\x20from\x20%s','util','addColumn','Added\x20column\x20%s\x20to\x20%s','authId','enqueue','inspect','dropTable','finally','query\x20%s','catch','stringify'];(function(_0x5abd48,_0x4a0427){const _0x1ddac0=function(_0x2e474f){while(--_0x2e474f){_0x5abd48['push'](_0x5abd48['shift']());}};_0x1ddac0(++_0x4a0427);}(a934_0x4a04,0x16e));const a934_0x1dda=function(_0x5abd48,_0x4a0427){_0x5abd48=_0x5abd48-0x0;let _0x1ddac0=a934_0x4a04[_0x5abd48];return _0x1ddac0;};const _0x3fc16a=a934_0x1dda;'use strict';const util=require(_0x3fc16a('0x13')),logger=require('../config/logger')(_0x3fc16a('0x8')),Sequence=function(){};Sequence['prototype'][_0x3fc16a('0x17')]=function(_0x2e474f){const _0x5967b4=_0x3fc16a;this[_0x5967b4('0x6')]=this[_0x5967b4('0x6')]?this[_0x5967b4('0x6')][_0x5967b4('0x1a')](_0x2e474f):_0x2e474f();};const Migration=function(_0x4ee70e){const _0xe59f19=_0x3fc16a;this[_0xe59f19('0x4')]=_0x4ee70e,this[_0xe59f19('0xa')]=new Sequence();};Migration[_0x3fc16a('0xb')][_0x3fc16a('0x2')]=function(_0x46ae9f,_0x52416e,_0x28c1f0){const _0x1443ac=_0x3fc16a,_0x5f1098=this;this[_0x1443ac('0xa')][_0x1443ac('0x17')](function(){const _0x287d02=_0x1443ac;return _0x5f1098['queryInterface']['changeColumn'](_0x46ae9f,_0x52416e,_0x28c1f0)[_0x287d02('0x5')](function(){const _0x44e682=_0x287d02;logger[_0x44e682('0x3')](_0x44e682('0x20'),_0x52416e,_0x46ae9f);})[_0x287d02('0x1c')](function(_0x1f5182){const _0x5c8259=_0x287d02;logger[_0x5c8259('0x3')](JSON[_0x5c8259('0x1d')](_0x1f5182));});});},Migration[_0x3fc16a('0xb')]['addColumn']=function(_0x4082e8,_0x394a66,_0x4ee05b){const _0x21821d=_0x3fc16a,_0x17fed8=this;this[_0x21821d('0xa')][_0x21821d('0x17')](function(){const _0x1f644e=_0x21821d;return _0x17fed8[_0x1f644e('0x4')][_0x1f644e('0x14')](_0x4082e8,_0x394a66,_0x4ee05b)[_0x1f644e('0x5')](function(){const _0x1427c2=_0x1f644e;logger['info'](_0x1427c2('0x15'),_0x394a66,_0x4082e8);})[_0x1f644e('0x1c')](function(_0xe775e8){const _0x217d1f=_0x1f644e;logger[_0x217d1f('0x3')](JSON[_0x217d1f('0x1d')](_0xe775e8));});});},Migration[_0x3fc16a('0xb')][_0x3fc16a('0x19')]=function(_0x25dd80){const _0x2464dd=_0x3fc16a,_0x5bf317=this;this['sequence'][_0x2464dd('0x17')](function(){const _0x120041=_0x2464dd;return _0x5bf317['queryInterface'][_0x120041('0x19')](_0x25dd80,{'force':!![]})[_0x120041('0x5')](function(){const _0x47f478=_0x120041;logger[_0x47f478('0x3')]('table\x20dropped\x20%s',_0x25dd80);})[_0x120041('0x1c')](function(_0x5d2e5c){const _0x3db65c=_0x120041;logger[_0x3db65c('0x3')](JSON[_0x3db65c('0x1d')](_0x5d2e5c));});});},Migration[_0x3fc16a('0xb')]['addIndex']=function(_0x41d5fa,_0x19f064,_0x21ac8a){const _0x91d1db=_0x3fc16a,_0x15126d=this;this['sequence'][_0x91d1db('0x17')](function(){const _0x318826=_0x91d1db;return _0x15126d['queryInterface'][_0x318826('0x0')](_0x41d5fa,_0x19f064,{'indexName':_0x21ac8a})[_0x318826('0x5')](function(){const _0x18452b=_0x318826;logger[_0x18452b('0x3')]('addIndex\x20%s\x20%s\x20%s',_0x41d5fa,_0x19f064[_0x18452b('0xd')](','),_0x21ac8a);})[_0x318826('0x1c')](function(_0x35f534){const _0xa0a68d=_0x318826;logger[_0xa0a68d('0x3')](JSON[_0xa0a68d('0x1d')](_0x35f534));});});},Migration[_0x3fc16a('0xb')][_0x3fc16a('0xe')]=function(_0x1c2bb0){const _0xa08d00=_0x3fc16a,_0x388f04=this;this[_0xa08d00('0xa')]['enqueue'](function(){const _0x58dfc4=_0xa08d00;return _0x388f04['queryInterface'][_0x58dfc4('0xc')][_0x58dfc4('0xe')](_0x1c2bb0)[_0x58dfc4('0x5')](function(){const _0x18bc37=_0x58dfc4;logger[_0x18bc37('0x3')](_0x18bc37('0x1b'),_0x1c2bb0);})[_0x58dfc4('0x1c')](function(_0x5a8085){logger['info'](JSON['stringify'](_0x5a8085));});});},Migration[_0x3fc16a('0xb')][_0x3fc16a('0x7')]=function(_0xf1f109,_0x11a6f7){const _0x1ef301=_0x3fc16a,_0x1f0345=this;this['sequence'][_0x1ef301('0x17')](function(){const _0x23d687=_0x1ef301;return _0x1f0345['queryInterface']['removeColumn'](_0xf1f109,_0x11a6f7)[_0x23d687('0x5')](function(){const _0x6e5f79=_0x23d687;logger[_0x6e5f79('0x3')](_0x6e5f79('0x12'),_0x11a6f7,_0xf1f109);})[_0x23d687('0x1c')](function(_0x2d658b){const _0x54c076=_0x23d687;logger[_0x54c076('0x3')](util[_0x54c076('0x18')](_0x2d658b,{'showHidden':![],'depth':null}));});});},Migration[_0x3fc16a('0xb')][_0x3fc16a('0x1e')]=function(_0x18a7c4,_0x3276fe,_0x2c1810){const _0x243bd1=_0x3fc16a,_0x144678=this;this[_0x243bd1('0xa')]['enqueue'](function(){const _0x5b0a12=_0x243bd1;return _0x144678[_0x5b0a12('0x4')]['renameColumn'](_0x18a7c4,_0x3276fe,_0x2c1810)[_0x5b0a12('0x5')](function(){const _0x5d7f77=_0x5b0a12;logger[_0x5d7f77('0x3')](_0x5d7f77('0x1'),_0x3276fe,_0x2c1810,_0x18a7c4);})[_0x5b0a12('0x1c')](function(_0x5a7aa5){const _0x275d2e=_0x5b0a12;logger['info'](util[_0x275d2e('0x18')](_0x5a7aa5,{'showHidden':![],'depth':null}));});});},Migration[_0x3fc16a('0xb')][_0x3fc16a('0xf')]=function(_0x18d117){const _0x53a7e6=_0x3fc16a;this[_0x53a7e6('0xa')][_0x53a7e6('0x17')](function(){return _0x18d117();});},module[_0x3fc16a('0x11')]={'up':function(_0x582097,_0xc9ab8a){return new Promise(function(_0x1c18de){const _0x2c635f=a934_0x1dda,_0xd16af3=new Migration(_0x582097);_0xd16af3[_0x2c635f('0x14')](_0x2c635f('0x9'),_0x2c635f('0x16'),{'type':_0xc9ab8a['STRING']}),_0xd16af3['query'](_0x2c635f('0x10')),_0xd16af3[_0x2c635f('0xe')](_0x2c635f('0x1f')),_0xd16af3[_0x2c635f('0xf')](_0x1c18de);});},'down':function(){}}; \ No newline at end of file +const a934_0x1bc7=['enqueue','dropTable','finally','Added\x20column\x20%s\x20to\x20%s','sequence','util','Changed\x20column\x20%s\x20in\x20table\x20%s','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());','then','info','STRING','addIndex','catch','addColumn','removeColumn','renameColumn','query\x20%s','migration','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','final','prototype','stringify','table\x20dropped\x20%s','authId','sms_accounts','queryInterface','inspect','query','changeColumn','join'];(function(_0x14bee1,_0x1bc7a7){const _0x2218d3=function(_0x4e4465){while(--_0x4e4465){_0x14bee1['push'](_0x14bee1['shift']());}};_0x2218d3(++_0x1bc7a7);}(a934_0x1bc7,0x1da));const a934_0x2218=function(_0x14bee1,_0x1bc7a7){_0x14bee1=_0x14bee1-0x0;let _0x2218d3=a934_0x1bc7[_0x14bee1];return _0x2218d3;};const _0x17a460=a934_0x2218;'use strict';const util=require(_0x17a460('0xb')),logger=require('../config/logger')(_0x17a460('0x17')),Sequence=function(){};Sequence['prototype'][_0x17a460('0x6')]=function(_0x4e4465){const _0x5c2c08=_0x17a460;this[_0x5c2c08('0x1a')]=this[_0x5c2c08('0x1a')]?this[_0x5c2c08('0x1a')][_0x5c2c08('0x8')](_0x4e4465):_0x4e4465();};const Migration=function(_0x297852){const _0x441050=_0x17a460;this[_0x441050('0x1')]=_0x297852,this['sequence']=new Sequence();};Migration[_0x17a460('0x1c')]['changeColumn']=function(_0x39a600,_0x108e26,_0x47e10c){const _0x2aafb8=_0x17a460,_0x154298=this;this[_0x2aafb8('0xa')][_0x2aafb8('0x6')](function(){const _0x229854=_0x2aafb8;return _0x154298[_0x229854('0x1')][_0x229854('0x4')](_0x39a600,_0x108e26,_0x47e10c)[_0x229854('0xe')](function(){const _0x50bcbf=_0x229854;logger['info'](_0x50bcbf('0xc'),_0x108e26,_0x39a600);})[_0x229854('0x12')](function(_0x1587d7){const _0x17658a=_0x229854;logger[_0x17658a('0xf')](JSON[_0x17658a('0x1d')](_0x1587d7));});});},Migration[_0x17a460('0x1c')][_0x17a460('0x13')]=function(_0x576268,_0x34e6e1,_0x5c4cb8){const _0xd05941=_0x17a460,_0x51c312=this;this[_0xd05941('0xa')][_0xd05941('0x6')](function(){const _0x2c800b=_0xd05941;return _0x51c312[_0x2c800b('0x1')][_0x2c800b('0x13')](_0x576268,_0x34e6e1,_0x5c4cb8)[_0x2c800b('0xe')](function(){const _0x5b5251=_0x2c800b;logger['info'](_0x5b5251('0x9'),_0x34e6e1,_0x576268);})[_0x2c800b('0x12')](function(_0x15085e){const _0x351b4a=_0x2c800b;logger[_0x351b4a('0xf')](JSON[_0x351b4a('0x1d')](_0x15085e));});});},Migration[_0x17a460('0x1c')]['dropTable']=function(_0x15de19){const _0x25ba97=_0x17a460,_0x112170=this;this[_0x25ba97('0xa')]['enqueue'](function(){const _0x248d88=_0x25ba97;return _0x112170[_0x248d88('0x1')][_0x248d88('0x7')](_0x15de19,{'force':!![]})[_0x248d88('0xe')](function(){const _0x3d9e25=_0x248d88;logger['info'](_0x3d9e25('0x1e'),_0x15de19);})['catch'](function(_0x1509a3){const _0x38ea26=_0x248d88;logger[_0x38ea26('0xf')](JSON[_0x38ea26('0x1d')](_0x1509a3));});});},Migration[_0x17a460('0x1c')]['addIndex']=function(_0x1bd974,_0x1d133f,_0x3a7778){const _0x24df1b=_0x17a460,_0x2b2b8d=this;this['sequence'][_0x24df1b('0x6')](function(){const _0x10d6a7=_0x24df1b;return _0x2b2b8d[_0x10d6a7('0x1')][_0x10d6a7('0x11')](_0x1bd974,_0x1d133f,{'indexName':_0x3a7778})['then'](function(){const _0x409a36=_0x10d6a7;logger[_0x409a36('0xf')]('addIndex\x20%s\x20%s\x20%s',_0x1bd974,_0x1d133f[_0x409a36('0x5')](','),_0x3a7778);})[_0x10d6a7('0x12')](function(_0x424b84){const _0x16a48e=_0x10d6a7;logger[_0x16a48e('0xf')](JSON[_0x16a48e('0x1d')](_0x424b84));});});},Migration[_0x17a460('0x1c')][_0x17a460('0x3')]=function(_0x1ef068){const _0xaca8c8=this;this['sequence']['enqueue'](function(){const _0x156539=a934_0x2218;return _0xaca8c8[_0x156539('0x1')]['sequelize']['query'](_0x1ef068)[_0x156539('0xe')](function(){const _0x4540d6=_0x156539;logger[_0x4540d6('0xf')](_0x4540d6('0x16'),_0x1ef068);})[_0x156539('0x12')](function(_0x485216){const _0x4455d6=_0x156539;logger[_0x4455d6('0xf')](JSON[_0x4455d6('0x1d')](_0x485216));});});},Migration[_0x17a460('0x1c')][_0x17a460('0x14')]=function(_0x107cb8,_0x19eaa5){const _0x67609b=_0x17a460,_0xbe3331=this;this[_0x67609b('0xa')][_0x67609b('0x6')](function(){const _0x17d355=_0x67609b;return _0xbe3331['queryInterface'][_0x17d355('0x14')](_0x107cb8,_0x19eaa5)[_0x17d355('0xe')](function(){const _0x47475a=_0x17d355;logger[_0x47475a('0xf')]('Removed\x20column\x20%s\x20from\x20%s',_0x19eaa5,_0x107cb8);})['catch'](function(_0x197ace){const _0x52a828=_0x17d355;logger['info'](util[_0x52a828('0x2')](_0x197ace,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x17a460('0x15')]=function(_0x12d867,_0x33d100,_0x203417){const _0xcfee78=_0x17a460,_0x48714a=this;this['sequence'][_0xcfee78('0x6')](function(){const _0x232c50=_0xcfee78;return _0x48714a[_0x232c50('0x1')][_0x232c50('0x15')](_0x12d867,_0x33d100,_0x203417)[_0x232c50('0xe')](function(){const _0x40fa32=_0x232c50;logger['info'](_0x40fa32('0x19'),_0x33d100,_0x203417,_0x12d867);})['catch'](function(_0xb62caa){const _0x2167dd=_0x232c50;logger[_0x2167dd('0xf')](util[_0x2167dd('0x2')](_0xb62caa,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x377c84){const _0x335587=_0x17a460;this[_0x335587('0xa')][_0x335587('0x6')](function(){return _0x377c84();});},module[_0x17a460('0x18')]={'up':function(_0x43dfcb,_0x164c6f){return new Promise(function(_0x37dd4a){const _0x12713f=a934_0x2218,_0x42dd14=new Migration(_0x43dfcb);_0x42dd14[_0x12713f('0x13')](_0x12713f('0x0'),_0x12713f('0x1f'),{'type':_0x164c6f[_0x12713f('0x10')]}),_0x42dd14['query']('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;'),_0x42dd14[_0x12713f('0x3')](_0x12713f('0xd')),_0x42dd14[_0x12713f('0x1b')](_0x37dd4a);});},'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 8f5d37a..af46a09 100644 --- a/server/migrations/2.0.56.js +++ b/server/migrations/2.0.56.js @@ -1 +1 @@ -const a935_0x4b8c=['enqueue','notificationShake','ringall','finally','query\x20%s','UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','addColumn','fax_accounts','sms_accounts','dropTable','then','query','strategy','final','info','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','mail_accounts','changeColumn','catch','removeColumn','roundrobin','random','notificationSound','tail','inspect','linear','chat_websites','openchannel_accounts','exports','UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','leastrecent','notificationTemplate','queryInterface','UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','BOOLEAN','sequence','fewestcalls','ENUM','rrordered','prototype','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','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','TEXT','join'];(function(_0x4894e3,_0x4b8cc2){const _0x352509=function(_0x5545aa){while(--_0x5545aa){_0x4894e3['push'](_0x4894e3['shift']());}};_0x352509(++_0x4b8cc2);}(a935_0x4b8c,0x92));const a935_0x3525=function(_0x4894e3,_0x4b8cc2){_0x4894e3=_0x4894e3-0x0;let _0x352509=a935_0x4b8c[_0x4894e3];return _0x352509;};const _0x19cbbe=a935_0x3525;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x19cbbe('0x24')]['enqueue']=function(_0x5545aa){const _0x194df6=_0x19cbbe;this[_0x194df6('0x14')]=this[_0x194df6('0x14')]?this[_0x194df6('0x14')][_0x194df6('0x2d')](_0x5545aa):_0x5545aa();};const Migration=function(_0x54993e){const _0x425881=_0x19cbbe;this[_0x425881('0x1d')]=_0x54993e,this[_0x425881('0x20')]=new Sequence();};Migration[_0x19cbbe('0x24')][_0x19cbbe('0xe')]=function(_0x548a36,_0x4a8b86,_0x379b99){const _0xcce1c=_0x19cbbe,_0x58acbc=this;this[_0xcce1c('0x20')]['enqueue'](function(){const _0x2a8bfc=_0xcce1c;return _0x58acbc[_0x2a8bfc('0x1d')]['changeColumn'](_0x548a36,_0x4a8b86,_0x379b99)[_0x2a8bfc('0x5')](function(){const _0x33f0e2=_0x2a8bfc;logger[_0x33f0e2('0x9')](_0x33f0e2('0x26'),_0x4a8b86,_0x548a36);})['catch'](function(_0xd8ddde){const _0x12fa62=_0x2a8bfc;logger[_0x12fa62('0x9')](JSON[_0x12fa62('0x25')](_0xd8ddde));});});},Migration['prototype']['addColumn']=function(_0x58a9a3,_0x1ea30a,_0x2f4787){const _0x193835=_0x19cbbe,_0x2fccf7=this;this[_0x193835('0x20')][_0x193835('0x2a')](function(){const _0x4a1d97=_0x193835;return _0x2fccf7[_0x4a1d97('0x1d')]['addColumn'](_0x58a9a3,_0x1ea30a,_0x2f4787)[_0x4a1d97('0x5')](function(){const _0x4ab0ca=_0x4a1d97;logger[_0x4ab0ca('0x9')]('Added\x20column\x20%s\x20to\x20%s',_0x1ea30a,_0x58a9a3);})['catch'](function(_0x326f7e){const _0x19327e=_0x4a1d97;logger[_0x19327e('0x9')](JSON['stringify'](_0x326f7e));});});},Migration['prototype'][_0x19cbbe('0x4')]=function(_0x4315dd){const _0x1e3a4f=_0x19cbbe,_0x4ed003=this;this[_0x1e3a4f('0x20')][_0x1e3a4f('0x2a')](function(){const _0x47d4d7=_0x1e3a4f;return _0x4ed003['queryInterface'][_0x47d4d7('0x4')](_0x4315dd,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x4315dd);})[_0x47d4d7('0xf')](function(_0xcd3959){const _0x1b3f42=_0x47d4d7;logger[_0x1b3f42('0x9')](JSON[_0x1b3f42('0x25')](_0xcd3959));});});},Migration[_0x19cbbe('0x24')][_0x19cbbe('0xa')]=function(_0x23c45f,_0x436bd5,_0x2228dc){const _0x4888d8=_0x19cbbe,_0x4fc2b8=this;this['sequence'][_0x4888d8('0x2a')](function(){const _0x1b8987=_0x4888d8;return _0x4fc2b8[_0x1b8987('0x1d')][_0x1b8987('0xa')](_0x23c45f,_0x436bd5,{'indexName':_0x2228dc})[_0x1b8987('0x5')](function(){const _0x260dbe=_0x1b8987;logger[_0x260dbe('0x9')]('addIndex\x20%s\x20%s\x20%s',_0x23c45f,_0x436bd5[_0x260dbe('0x29')](','),_0x2228dc);})['catch'](function(_0x6b7224){const _0x3f783d=_0x1b8987;logger[_0x3f783d('0x9')](JSON[_0x3f783d('0x25')](_0x6b7224));});});},Migration[_0x19cbbe('0x24')][_0x19cbbe('0x6')]=function(_0x1280f0){const _0x570180=_0x19cbbe,_0x7fd7d0=this;this['sequence'][_0x570180('0x2a')](function(){const _0x48e46f=_0x570180;return _0x7fd7d0[_0x48e46f('0x1d')]['sequelize'][_0x48e46f('0x6')](_0x1280f0)['then'](function(){const _0x3e1474=_0x48e46f;logger[_0x3e1474('0x9')](_0x3e1474('0x2e'),_0x1280f0);})[_0x48e46f('0xf')](function(_0x4a1e03){const _0x4f9b4b=_0x48e46f;logger['info'](JSON[_0x4f9b4b('0x25')](_0x4a1e03));});});},Migration[_0x19cbbe('0x24')][_0x19cbbe('0x10')]=function(_0x59cb81,_0x2a0320){const _0xc3a926=_0x19cbbe,_0x389fad=this;this[_0xc3a926('0x20')][_0xc3a926('0x2a')](function(){const _0x2ffa64=_0xc3a926;return _0x389fad[_0x2ffa64('0x1d')][_0x2ffa64('0x10')](_0x59cb81,_0x2a0320)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x2a0320,_0x59cb81);})['catch'](function(_0xee977e){const _0x55b2bf=_0x2ffa64;logger[_0x55b2bf('0x9')](util['inspect'](_0xee977e,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x529af5,_0x1fa415,_0x2724fb){const _0x4dcc8e=_0x19cbbe,_0x14f8e2=this;this['sequence'][_0x4dcc8e('0x2a')](function(){const _0x28ff04=_0x4dcc8e;return _0x14f8e2['queryInterface'][_0x28ff04('0xc')](_0x529af5,_0x1fa415,_0x2724fb)[_0x28ff04('0x5')](function(){const _0x177592=_0x28ff04;logger[_0x177592('0x9')](_0x177592('0xb'),_0x1fa415,_0x2724fb,_0x529af5);})['catch'](function(_0x3bf3ce){const _0x2eb6be=_0x28ff04;logger[_0x2eb6be('0x9')](util[_0x2eb6be('0x15')](_0x3bf3ce,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x19cbbe('0x8')]=function(_0x528b24){const _0x33d9aa=_0x19cbbe;this[_0x33d9aa('0x20')][_0x33d9aa('0x2a')](function(){return _0x528b24();});},module[_0x19cbbe('0x19')]={'up':function(_0x3a50a1,_0x9e9e9f){return new Promise(function(_0x357a68){const _0x226420=a935_0x3525,_0x19ed9f=new Migration(_0x3a50a1);_0x19ed9f[_0x226420('0xe')]('voice_queues',_0x226420('0x7'),{'type':_0x9e9e9f[_0x226420('0x22')](_0x226420('0x11'),_0x226420('0x2c'),_0x226420('0x1b'),_0x226420('0x21'),_0x226420('0x12'),'rrmemory',_0x226420('0x16'),'wrandom',_0x226420('0x23')),'allowNull':![],'defaultValue':_0x226420('0x2c')}),_0x19ed9f[_0x226420('0x1')]('analytics_extracted_reports','basename',{'type':_0x9e9e9f['STRING'],'allowNull':![]}),_0x19ed9f[_0x226420('0x1')](_0x226420('0xd'),_0x226420('0x1c'),{'type':_0x9e9e9f[_0x226420('0x28')]}),_0x19ed9f['addColumn'](_0x226420('0xd'),_0x226420('0x13'),{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':!![]}),_0x19ed9f['addColumn'](_0x226420('0xd'),'notificationShake',{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':![]}),_0x19ed9f[_0x226420('0x1')](_0x226420('0x17'),_0x226420('0x1c'),{'type':_0x9e9e9f[_0x226420('0x28')]}),_0x19ed9f['addColumn'](_0x226420('0x17'),_0x226420('0x13'),{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':!![]}),_0x19ed9f['addColumn'](_0x226420('0x17'),_0x226420('0x2b'),{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':![]}),_0x19ed9f['addColumn']('fax_accounts',_0x226420('0x1c'),{'type':_0x9e9e9f[_0x226420('0x28')]}),_0x19ed9f[_0x226420('0x1')](_0x226420('0x2'),'notificationSound',{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':!![]}),_0x19ed9f['addColumn']('fax_accounts','notificationShake',{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':![]}),_0x19ed9f[_0x226420('0x1')](_0x226420('0x3'),'notificationTemplate',{'type':_0x9e9e9f[_0x226420('0x28')]}),_0x19ed9f[_0x226420('0x1')](_0x226420('0x3'),_0x226420('0x13'),{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':!![]}),_0x19ed9f[_0x226420('0x1')](_0x226420('0x3'),_0x226420('0x2b'),{'type':_0x9e9e9f['BOOLEAN'],'defaultValue':![]}),_0x19ed9f[_0x226420('0x1')](_0x226420('0x18'),_0x226420('0x1c'),{'type':_0x9e9e9f[_0x226420('0x28')]}),_0x19ed9f[_0x226420('0x1')](_0x226420('0x18'),_0x226420('0x13'),{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':!![]}),_0x19ed9f[_0x226420('0x1')]('openchannel_accounts',_0x226420('0x2b'),{'type':_0x9e9e9f[_0x226420('0x1f')],'defaultValue':![]}),_0x19ed9f['query'](_0x226420('0x1a')),_0x19ed9f[_0x226420('0x6')](_0x226420('0x27')),_0x19ed9f[_0x226420('0x6')](_0x226420('0x1e')),_0x19ed9f[_0x226420('0x6')]('UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27'),_0x19ed9f[_0x226420('0x6')](_0x226420('0x0')),_0x19ed9f[_0x226420('0x8')](_0x357a68);});},'down':function(){}}; \ No newline at end of file +const a935_0x1a77=['changeColumn','Added\x20column\x20%s\x20to\x20%s','finally','UPDATE\x20fax_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','tail','sequence','addColumn','rrmemory','mail_accounts','leastrecent','info','enqueue','rrordered','addIndex\x20%s\x20%s\x20%s','wrandom','sms_accounts','TEXT','chat_websites','prototype','sequelize','join','query','stringify','fax_accounts','STRING','ringall','UPDATE\x20sms_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','analytics_extracted_reports','queryInterface','addIndex','dropTable','catch','BOOLEAN','UPDATE\x20openchannel_accounts\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','UPDATE\x20chat_websites\x20SET\x20notificationTemplate=\x27Account:\x20{{account.name}}
{{#queue}}Queue:\x20{{queue.name}}
{{/queue}}From\x20:\x20{{from}}\x27','notificationShake','query\x20%s','fewestcalls','removeColumn','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','notificationSound','final','then','openchannel_accounts','inspect','migration','voice_queues','linear','renameColumn','ENUM','Removed\x20column\x20%s\x20from\x20%s','strategy','roundrobin','notificationTemplate'];(function(_0xf5a0bf,_0x1a7788){const _0x522c61=function(_0x4b9a63){while(--_0x4b9a63){_0xf5a0bf['push'](_0xf5a0bf['shift']());}};_0x522c61(++_0x1a7788);}(a935_0x1a77,0xa9));const a935_0x522c=function(_0xf5a0bf,_0x1a7788){_0xf5a0bf=_0xf5a0bf-0x0;let _0x522c61=a935_0x1a77[_0xf5a0bf];return _0x522c61;};const _0x543fa7=a935_0x522c;'use strict';const util=require('util'),logger=require('../config/logger')(_0x543fa7('0x2a')),Sequence=function(){};Sequence[_0x543fa7('0xe')][_0x543fa7('0x7')]=function(_0x4b9a63){const _0x141ce2=_0x543fa7;this[_0x141ce2('0x0')]=this[_0x141ce2('0x0')]?this['tail'][_0x141ce2('0x35')](_0x4b9a63):_0x4b9a63();};const Migration=function(_0x44d8c1){const _0x302bd9=_0x543fa7;this[_0x302bd9('0x18')]=_0x44d8c1,this[_0x302bd9('0x1')]=new Sequence();};Migration[_0x543fa7('0xe')][_0x543fa7('0x33')]=function(_0x94f3c8,_0x504d88,_0x1bf61){const _0x353131=_0x543fa7,_0x23de74=this;this[_0x353131('0x1')][_0x353131('0x7')](function(){const _0x41c409=_0x353131;return _0x23de74[_0x41c409('0x18')]['changeColumn'](_0x94f3c8,_0x504d88,_0x1bf61)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x504d88,_0x94f3c8);})['catch'](function(_0x43b33a){const _0x4710c2=_0x41c409;logger[_0x4710c2('0x6')](JSON[_0x4710c2('0x12')](_0x43b33a));});});},Migration['prototype']['addColumn']=function(_0x245c87,_0x54ea04,_0x4fd4a2){const _0x4b00ed=_0x543fa7,_0x46bb12=this;this['sequence'][_0x4b00ed('0x7')](function(){const _0x361810=_0x4b00ed;return _0x46bb12[_0x361810('0x18')][_0x361810('0x2')](_0x245c87,_0x54ea04,_0x4fd4a2)['then'](function(){const _0x59c709=_0x361810;logger[_0x59c709('0x6')](_0x59c709('0x34'),_0x54ea04,_0x245c87);})[_0x361810('0x1b')](function(_0x510818){const _0x4a4e3d=_0x361810;logger[_0x4a4e3d('0x6')](JSON['stringify'](_0x510818));});});},Migration['prototype'][_0x543fa7('0x1a')]=function(_0x1f986c){const _0x38438f=_0x543fa7,_0x5a66c5=this;this[_0x38438f('0x1')][_0x38438f('0x7')](function(){const _0x1148ee=_0x38438f;return _0x5a66c5[_0x1148ee('0x18')][_0x1148ee('0x1a')](_0x1f986c,{'force':!![]})['then'](function(){const _0x279194=_0x1148ee;logger[_0x279194('0x6')]('table\x20dropped\x20%s',_0x1f986c);})[_0x1148ee('0x1b')](function(_0x5b1f0e){const _0x572934=_0x1148ee;logger[_0x572934('0x6')](JSON[_0x572934('0x12')](_0x5b1f0e));});});},Migration[_0x543fa7('0xe')][_0x543fa7('0x19')]=function(_0x32ebd6,_0x49f303,_0x4c4824){const _0x4798e0=_0x543fa7,_0x3c0f58=this;this[_0x4798e0('0x1')][_0x4798e0('0x7')](function(){const _0x39a784=_0x4798e0;return _0x3c0f58[_0x39a784('0x18')][_0x39a784('0x19')](_0x32ebd6,_0x49f303,{'indexName':_0x4c4824})[_0x39a784('0x27')](function(){const _0x32100f=_0x39a784;logger[_0x32100f('0x6')](_0x32100f('0x9'),_0x32ebd6,_0x49f303[_0x32100f('0x10')](','),_0x4c4824);})[_0x39a784('0x1b')](function(_0x21917f){const _0x4717eb=_0x39a784;logger[_0x4717eb('0x6')](JSON[_0x4717eb('0x12')](_0x21917f));});});},Migration[_0x543fa7('0xe')][_0x543fa7('0x11')]=function(_0x5b3119){const _0x43f866=_0x543fa7,_0x3626a5=this;this[_0x43f866('0x1')][_0x43f866('0x7')](function(){const _0x35b3e7=_0x43f866;return _0x3626a5['queryInterface'][_0x35b3e7('0xf')][_0x35b3e7('0x11')](_0x5b3119)[_0x35b3e7('0x27')](function(){const _0x36fc8c=_0x35b3e7;logger[_0x36fc8c('0x6')](_0x36fc8c('0x21'),_0x5b3119);})[_0x35b3e7('0x1b')](function(_0x1c70ad){const _0x29d7d3=_0x35b3e7;logger[_0x29d7d3('0x6')](JSON['stringify'](_0x1c70ad));});});},Migration['prototype'][_0x543fa7('0x23')]=function(_0x349d0d,_0x515a7e){const _0xe70237=this;this['sequence']['enqueue'](function(){const _0x9ebab=a935_0x522c;return _0xe70237['queryInterface'][_0x9ebab('0x23')](_0x349d0d,_0x515a7e)[_0x9ebab('0x27')](function(){const _0x2793a0=_0x9ebab;logger[_0x2793a0('0x6')](_0x2793a0('0x2f'),_0x515a7e,_0x349d0d);})[_0x9ebab('0x1b')](function(_0x3e66cd){const _0x1d3b75=_0x9ebab;logger[_0x1d3b75('0x6')](util['inspect'](_0x3e66cd,{'showHidden':![],'depth':null}));});});},Migration[_0x543fa7('0xe')][_0x543fa7('0x2d')]=function(_0xd1b65e,_0x5aae7c,_0x6551c8){const _0x28f5c6=_0x543fa7,_0x350b53=this;this[_0x28f5c6('0x1')]['enqueue'](function(){const _0x3e10c4=_0x28f5c6;return _0x350b53[_0x3e10c4('0x18')][_0x3e10c4('0x2d')](_0xd1b65e,_0x5aae7c,_0x6551c8)[_0x3e10c4('0x27')](function(){const _0x2d899c=_0x3e10c4;logger[_0x2d899c('0x6')](_0x2d899c('0x1e'),_0x5aae7c,_0x6551c8,_0xd1b65e);})[_0x3e10c4('0x1b')](function(_0x3ff4e3){const _0x2acc56=_0x3e10c4;logger[_0x2acc56('0x6')](util[_0x2acc56('0x29')](_0x3ff4e3,{'showHidden':![],'depth':null}));});});},Migration[_0x543fa7('0xe')][_0x543fa7('0x26')]=function(_0x4f7760){this['sequence']['enqueue'](function(){return _0x4f7760();});},module['exports']={'up':function(_0x1aa9b8,_0x1d05b8){return new Promise(function(_0x5852f6){const _0x125cf8=a935_0x522c,_0x14a021=new Migration(_0x1aa9b8);_0x14a021[_0x125cf8('0x33')](_0x125cf8('0x2b'),_0x125cf8('0x30'),{'type':_0x1d05b8[_0x125cf8('0x2e')](_0x125cf8('0x31'),_0x125cf8('0x15'),_0x125cf8('0x5'),_0x125cf8('0x22'),'random',_0x125cf8('0x3'),_0x125cf8('0x2c'),_0x125cf8('0xa'),_0x125cf8('0x8')),'allowNull':![],'defaultValue':'ringall'}),_0x14a021[_0x125cf8('0x2')](_0x125cf8('0x17'),'basename',{'type':_0x1d05b8[_0x125cf8('0x14')],'allowNull':![]}),_0x14a021[_0x125cf8('0x2')](_0x125cf8('0x4'),_0x125cf8('0x32'),{'type':_0x1d05b8[_0x125cf8('0xc')]}),_0x14a021[_0x125cf8('0x2')](_0x125cf8('0x4'),_0x125cf8('0x25'),{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':!![]}),_0x14a021[_0x125cf8('0x2')]('mail_accounts',_0x125cf8('0x20'),{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':![]}),_0x14a021[_0x125cf8('0x2')](_0x125cf8('0xd'),_0x125cf8('0x32'),{'type':_0x1d05b8[_0x125cf8('0xc')]}),_0x14a021['addColumn']('chat_websites',_0x125cf8('0x25'),{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':!![]}),_0x14a021['addColumn'](_0x125cf8('0xd'),_0x125cf8('0x20'),{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':![]}),_0x14a021['addColumn']('fax_accounts',_0x125cf8('0x32'),{'type':_0x1d05b8['TEXT']}),_0x14a021[_0x125cf8('0x2')](_0x125cf8('0x13'),_0x125cf8('0x25'),{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':!![]}),_0x14a021[_0x125cf8('0x2')]('fax_accounts',_0x125cf8('0x20'),{'type':_0x1d05b8['BOOLEAN'],'defaultValue':![]}),_0x14a021[_0x125cf8('0x2')]('sms_accounts',_0x125cf8('0x32'),{'type':_0x1d05b8[_0x125cf8('0xc')]}),_0x14a021[_0x125cf8('0x2')](_0x125cf8('0xb'),'notificationSound',{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':!![]}),_0x14a021['addColumn'](_0x125cf8('0xb'),_0x125cf8('0x20'),{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':![]}),_0x14a021['addColumn']('openchannel_accounts',_0x125cf8('0x32'),{'type':_0x1d05b8[_0x125cf8('0xc')]}),_0x14a021[_0x125cf8('0x2')]('openchannel_accounts',_0x125cf8('0x25'),{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':!![]}),_0x14a021[_0x125cf8('0x2')](_0x125cf8('0x28'),_0x125cf8('0x20'),{'type':_0x1d05b8[_0x125cf8('0x1c')],'defaultValue':![]}),_0x14a021[_0x125cf8('0x11')](_0x125cf8('0x1f')),_0x14a021[_0x125cf8('0x11')](_0x125cf8('0x24')),_0x14a021['query'](_0x125cf8('0x16')),_0x14a021[_0x125cf8('0x11')](_0x125cf8('0x36')),_0x14a021[_0x125cf8('0x11')](_0x125cf8('0x1d')),_0x14a021[_0x125cf8('0x26')](_0x5852f6);});},'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 66422bc..8ab96cc 100644 --- a/server/migrations/2.0.57.js +++ b/server/migrations/2.0.57.js @@ -1 +1 @@ -const a936_0x4cb9=['table\x20dropped\x20%s','periodic_announce','util','chat_websites','query','info','inspect','queryInterface','migration','join','hideWhenOffline','addIndex\x20%s\x20%s\x20%s','sequence','stringify','addIndex','sequelize','enqueue','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','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','voice_queues','query\x20%s','changeColumn','addColumn','then','renameColumn','tail','Removed\x20column\x20%s\x20from\x20%s','TEXT','dropTable','removeColumn','prototype','catch'];(function(_0x3f6dc3,_0x4cb9f7){const _0x1bf863=function(_0x12e0b6){while(--_0x12e0b6){_0x3f6dc3['push'](_0x3f6dc3['shift']());}};_0x1bf863(++_0x4cb9f7);}(a936_0x4cb9,0x88));const a936_0x1bf8=function(_0x3f6dc3,_0x4cb9f7){_0x3f6dc3=_0x3f6dc3-0x0;let _0x1bf863=a936_0x4cb9[_0x3f6dc3];return _0x1bf863;};const _0x31eabf=a936_0x1bf8;'use strict';const util=require(_0x31eabf('0x1f')),logger=require('../config/logger')(_0x31eabf('0x4')),Sequence=function(){};Sequence['prototype'][_0x31eabf('0xc')]=function(_0x12e0b6){const _0x1d8f68=_0x31eabf;this[_0x1d8f68('0x16')]=this[_0x1d8f68('0x16')]?this[_0x1d8f68('0x16')]['finally'](_0x12e0b6):_0x12e0b6();};const Migration=function(_0x4a6e43){const _0x278e2e=_0x31eabf;this[_0x278e2e('0x3')]=_0x4a6e43,this['sequence']=new Sequence();};Migration[_0x31eabf('0x1b')]['changeColumn']=function(_0x56a832,_0x3b2180,_0x38322b){const _0x344846=_0x31eabf,_0x38bc1b=this;this[_0x344846('0x8')][_0x344846('0xc')](function(){const _0x5448b8=_0x344846;return _0x38bc1b['queryInterface']['changeColumn'](_0x56a832,_0x3b2180,_0x38322b)[_0x5448b8('0x14')](function(){const _0x36f7bf=_0x5448b8;logger['info'](_0x36f7bf('0xf'),_0x3b2180,_0x56a832);})['catch'](function(_0x1180d5){const _0x5d9215=_0x5448b8;logger[_0x5d9215('0x1')](JSON['stringify'](_0x1180d5));});});},Migration['prototype']['addColumn']=function(_0x4d8dff,_0x3fb4f7,_0x40d542){const _0x3718e5=_0x31eabf,_0x1786a2=this;this[_0x3718e5('0x8')]['enqueue'](function(){const _0x1f6d65=_0x3718e5;return _0x1786a2['queryInterface'][_0x1f6d65('0x13')](_0x4d8dff,_0x3fb4f7,_0x40d542)[_0x1f6d65('0x14')](function(){const _0xd461c8=_0x1f6d65;logger[_0xd461c8('0x1')](_0xd461c8('0xe'),_0x3fb4f7,_0x4d8dff);})['catch'](function(_0x38bb4c){const _0x1c2ba8=_0x1f6d65;logger[_0x1c2ba8('0x1')](JSON[_0x1c2ba8('0x9')](_0x38bb4c));});});},Migration[_0x31eabf('0x1b')][_0x31eabf('0x19')]=function(_0x168f52){const _0x5c69f3=_0x31eabf,_0x1e6b7b=this;this[_0x5c69f3('0x8')][_0x5c69f3('0xc')](function(){const _0x29acab=_0x5c69f3;return _0x1e6b7b[_0x29acab('0x3')][_0x29acab('0x19')](_0x168f52,{'force':!![]})[_0x29acab('0x14')](function(){const _0x55ed3e=_0x29acab;logger[_0x55ed3e('0x1')](_0x55ed3e('0x1d'),_0x168f52);})[_0x29acab('0x1c')](function(_0x155fef){const _0x32e6c9=_0x29acab;logger[_0x32e6c9('0x1')](JSON[_0x32e6c9('0x9')](_0x155fef));});});},Migration[_0x31eabf('0x1b')][_0x31eabf('0xa')]=function(_0x568c3a,_0x19c4ec,_0x3f7ee4){const _0x31cee7=_0x31eabf,_0x3721cd=this;this[_0x31cee7('0x8')][_0x31cee7('0xc')](function(){const _0x363c8a=_0x31cee7;return _0x3721cd[_0x363c8a('0x3')][_0x363c8a('0xa')](_0x568c3a,_0x19c4ec,{'indexName':_0x3f7ee4})[_0x363c8a('0x14')](function(){const _0x134675=_0x363c8a;logger[_0x134675('0x1')](_0x134675('0x7'),_0x568c3a,_0x19c4ec[_0x134675('0x5')](','),_0x3f7ee4);})[_0x363c8a('0x1c')](function(_0x502c17){const _0x38f4b5=_0x363c8a;logger['info'](JSON[_0x38f4b5('0x9')](_0x502c17));});});},Migration[_0x31eabf('0x1b')][_0x31eabf('0x0')]=function(_0x3d305c){const _0x4de62d=_0x31eabf,_0x20541f=this;this[_0x4de62d('0x8')]['enqueue'](function(){const _0x533de3=_0x4de62d;return _0x20541f[_0x533de3('0x3')][_0x533de3('0xb')][_0x533de3('0x0')](_0x3d305c)['then'](function(){const _0x4dd7a0=_0x533de3;logger[_0x4dd7a0('0x1')](_0x4dd7a0('0x11'),_0x3d305c);})[_0x533de3('0x1c')](function(_0x28969a){const _0x278a68=_0x533de3;logger[_0x278a68('0x1')](JSON[_0x278a68('0x9')](_0x28969a));});});},Migration[_0x31eabf('0x1b')][_0x31eabf('0x1a')]=function(_0x5bf7e4,_0x41d1c8){const _0x1338cd=_0x31eabf,_0x554120=this;this[_0x1338cd('0x8')][_0x1338cd('0xc')](function(){const _0x165c20=_0x1338cd;return _0x554120[_0x165c20('0x3')][_0x165c20('0x1a')](_0x5bf7e4,_0x41d1c8)[_0x165c20('0x14')](function(){const _0x1493cd=_0x165c20;logger[_0x1493cd('0x1')](_0x1493cd('0x17'),_0x41d1c8,_0x5bf7e4);})[_0x165c20('0x1c')](function(_0x81364a){const _0x309e3e=_0x165c20;logger[_0x309e3e('0x1')](util[_0x309e3e('0x2')](_0x81364a,{'showHidden':![],'depth':null}));});});},Migration[_0x31eabf('0x1b')][_0x31eabf('0x15')]=function(_0x8e8cb7,_0x280db7,_0x126120){const _0x58d4b4=_0x31eabf,_0x3168e4=this;this[_0x58d4b4('0x8')][_0x58d4b4('0xc')](function(){const _0x56778f=_0x58d4b4;return _0x3168e4[_0x56778f('0x3')][_0x56778f('0x15')](_0x8e8cb7,_0x280db7,_0x126120)[_0x56778f('0x14')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x280db7,_0x126120,_0x8e8cb7);})[_0x56778f('0x1c')](function(_0x46f25e){const _0x398acc=_0x56778f;logger[_0x398acc('0x1')](util[_0x398acc('0x2')](_0x46f25e,{'showHidden':![],'depth':null}));});});},Migration[_0x31eabf('0x1b')]['final']=function(_0x1a3fd1){const _0x553c4e=_0x31eabf;this['sequence'][_0x553c4e('0xc')](function(){return _0x1a3fd1();});},module['exports']={'up':function(_0x33e07f,_0x25a63a){return new Promise(function(_0xb47d62){const _0xf8235c=a936_0x1bf8,_0x1b982b=new Migration(_0x33e07f);_0x1b982b['addColumn'](_0xf8235c('0x20'),_0xf8235c('0x6'),{'type':_0x25a63a['BOOLEAN'],'defaultValue':![]}),_0x1b982b[_0xf8235c('0x12')](_0xf8235c('0x10'),_0xf8235c('0x1e'),{'type':_0x25a63a[_0xf8235c('0x18')]}),_0x1b982b[_0xf8235c('0x0')](_0xf8235c('0xd')),_0x1b982b[_0xf8235c('0x0')]('UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22'),_0x1b982b['final'](_0xb47d62);});},'down':function(){}}; \ No newline at end of file +const a936_0x44f1=['hideWhenOffline','Removed\x20column\x20%s\x20from\x20%s','renameColumn','sequelize','enqueue','addIndex','changeColumn','dropTable','info','addIndex\x20%s\x20%s\x20%s','UPDATE\x20report_queue\x20SET\x20lastAssignedTo=NULL\x20\x20WHERE\x20lastAssignedTo=\x22\x22','TEXT','then','stringify','prototype','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','catch','queryInterface','join','table\x20dropped\x20%s','addColumn','inspect','tail','BOOLEAN','final','sequence','removeColumn','../config/logger','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','query\x20%s'];(function(_0x22335e,_0x44f13a){const _0xf1857d=function(_0x2dab57){while(--_0x2dab57){_0x22335e['push'](_0x22335e['shift']());}};_0xf1857d(++_0x44f13a);}(a936_0x44f1,0x1db));const a936_0xf185=function(_0x22335e,_0x44f13a){_0x22335e=_0x22335e-0x0;let _0xf1857d=a936_0x44f1[_0x22335e];return _0xf1857d;};const _0x49dc37=a936_0xf185;'use strict';const util=require('util'),logger=require(_0x49dc37('0x11'))('migration'),Sequence=function(){};Sequence[_0x49dc37('0x4')][_0x49dc37('0x19')]=function(_0x2dab57){const _0x2a161c=_0x49dc37;this[_0x2a161c('0xc')]=this[_0x2a161c('0xc')]?this[_0x2a161c('0xc')]['finally'](_0x2dab57):_0x2dab57();};const Migration=function(_0x379643){this['queryInterface']=_0x379643,this['sequence']=new Sequence();};Migration[_0x49dc37('0x4')][_0x49dc37('0x1b')]=function(_0x4d37ec,_0x487ff6,_0x558690){const _0x2e1345=_0x49dc37,_0x496286=this;this['sequence'][_0x2e1345('0x19')](function(){const _0x178c23=_0x2e1345;return _0x496286[_0x178c23('0x7')][_0x178c23('0x1b')](_0x4d37ec,_0x487ff6,_0x558690)[_0x178c23('0x2')](function(){const _0x529172=_0x178c23;logger[_0x529172('0x1d')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x487ff6,_0x4d37ec);})[_0x178c23('0x6')](function(_0x5ba2b8){const _0x5660ac=_0x178c23;logger[_0x5660ac('0x1d')](JSON['stringify'](_0x5ba2b8));});});},Migration[_0x49dc37('0x4')]['addColumn']=function(_0x4fa3b6,_0x27677d,_0x4abb86){const _0x60877f=_0x49dc37,_0x32a669=this;this['sequence'][_0x60877f('0x19')](function(){const _0x54bfbf=_0x60877f;return _0x32a669[_0x54bfbf('0x7')][_0x54bfbf('0xa')](_0x4fa3b6,_0x27677d,_0x4abb86)[_0x54bfbf('0x2')](function(){const _0x5bec17=_0x54bfbf;logger[_0x5bec17('0x1d')]('Added\x20column\x20%s\x20to\x20%s',_0x27677d,_0x4fa3b6);})['catch'](function(_0x37a3c4){const _0x525c44=_0x54bfbf;logger[_0x525c44('0x1d')](JSON[_0x525c44('0x3')](_0x37a3c4));});});},Migration[_0x49dc37('0x4')]['dropTable']=function(_0x4447a){const _0x43f59a=_0x49dc37,_0x1c4258=this;this[_0x43f59a('0xf')][_0x43f59a('0x19')](function(){const _0x3d5476=_0x43f59a;return _0x1c4258[_0x3d5476('0x7')][_0x3d5476('0x1c')](_0x4447a,{'force':!![]})['then'](function(){const _0x5cb92d=_0x3d5476;logger['info'](_0x5cb92d('0x9'),_0x4447a);})['catch'](function(_0x1d14f9){const _0x3f582b=_0x3d5476;logger[_0x3f582b('0x1d')](JSON['stringify'](_0x1d14f9));});});},Migration[_0x49dc37('0x4')][_0x49dc37('0x1a')]=function(_0x3db936,_0x199277,_0xe9358e){const _0x1a529a=_0x49dc37,_0x1ccc8a=this;this[_0x1a529a('0xf')][_0x1a529a('0x19')](function(){const _0xe9827d=_0x1a529a;return _0x1ccc8a[_0xe9827d('0x7')][_0xe9827d('0x1a')](_0x3db936,_0x199277,{'indexName':_0xe9358e})[_0xe9827d('0x2')](function(){const _0x3c087f=_0xe9827d;logger[_0x3c087f('0x1d')](_0x3c087f('0x1e'),_0x3db936,_0x199277[_0x3c087f('0x8')](','),_0xe9358e);})['catch'](function(_0x59db5a){const _0x5642fe=_0xe9827d;logger[_0x5642fe('0x1d')](JSON['stringify'](_0x59db5a));});});},Migration[_0x49dc37('0x4')][_0x49dc37('0x13')]=function(_0x4737ee){const _0x933890=_0x49dc37,_0x2abcac=this;this[_0x933890('0xf')][_0x933890('0x19')](function(){const _0x32b172=_0x933890;return _0x2abcac[_0x32b172('0x7')][_0x32b172('0x18')]['query'](_0x4737ee)[_0x32b172('0x2')](function(){const _0x33939f=_0x32b172;logger[_0x33939f('0x1d')](_0x33939f('0x14'),_0x4737ee);})[_0x32b172('0x6')](function(_0x3f6b5d){const _0x566b28=_0x32b172;logger[_0x566b28('0x1d')](JSON[_0x566b28('0x3')](_0x3f6b5d));});});},Migration[_0x49dc37('0x4')][_0x49dc37('0x10')]=function(_0x59da45,_0x167561){const _0x39f8e4=_0x49dc37,_0x10b666=this;this[_0x39f8e4('0xf')][_0x39f8e4('0x19')](function(){const _0xe6eac1=_0x39f8e4;return _0x10b666[_0xe6eac1('0x7')]['removeColumn'](_0x59da45,_0x167561)[_0xe6eac1('0x2')](function(){const _0xf9038a=_0xe6eac1;logger[_0xf9038a('0x1d')](_0xf9038a('0x16'),_0x167561,_0x59da45);})['catch'](function(_0x4049d7){const _0xc7b646=_0xe6eac1;logger[_0xc7b646('0x1d')](util[_0xc7b646('0xb')](_0x4049d7,{'showHidden':![],'depth':null}));});});},Migration[_0x49dc37('0x4')]['renameColumn']=function(_0x2941a8,_0x5d052d,_0x3e4c6d){const _0x226666=_0x49dc37,_0x11676f=this;this[_0x226666('0xf')][_0x226666('0x19')](function(){const _0x666aec=_0x226666;return _0x11676f[_0x666aec('0x7')][_0x666aec('0x17')](_0x2941a8,_0x5d052d,_0x3e4c6d)['then'](function(){const _0xd2c1df=_0x666aec;logger[_0xd2c1df('0x1d')](_0xd2c1df('0x12'),_0x5d052d,_0x3e4c6d,_0x2941a8);})[_0x666aec('0x6')](function(_0x486bae){const _0x295863=_0x666aec;logger[_0x295863('0x1d')](util[_0x295863('0xb')](_0x486bae,{'showHidden':![],'depth':null}));});});},Migration[_0x49dc37('0x4')][_0x49dc37('0xe')]=function(_0x2fc565){const _0x43d02c=_0x49dc37;this[_0x43d02c('0xf')]['enqueue'](function(){return _0x2fc565();});},module['exports']={'up':function(_0xe684db,_0x4977a2){return new Promise(function(_0x2b10bd){const _0x4ad33b=a936_0xf185,_0x5aaf75=new Migration(_0xe684db);_0x5aaf75['addColumn']('chat_websites',_0x4ad33b('0x15'),{'type':_0x4977a2[_0x4ad33b('0xd')],'defaultValue':![]}),_0x5aaf75[_0x4ad33b('0x1b')]('voice_queues','periodic_announce',{'type':_0x4977a2[_0x4ad33b('0x1')]}),_0x5aaf75['query'](_0x4ad33b('0x5')),_0x5aaf75['query'](_0x4ad33b('0x0')),_0x5aaf75[_0x4ad33b('0xe')](_0x2b10bd);});},'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 54cce4f..25b6f18 100644 --- a/server/migrations/2.0.58.js +++ b/server/migrations/2.0.58.js @@ -1 +1 @@ -const a937_0x530d=['STRING','inspect','removeColumn','finally','addIndex\x20%s\x20%s\x20%s','changeColumn','join','final','addColumn','dropTable','Added\x20column\x20%s\x20to\x20%s','../config/logger','table\x20dropped\x20%s','sequence','queue','enqueue','query\x20%s','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);','migration','queuecallerexitreason','stringify','query','prototype','exports','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);','then','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`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);','report_queue','queryInterface','disposition','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','tail','catch','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\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);','info','util','addIndex'];(function(_0x2de55a,_0x530d07){const _0x4add95=function(_0x220a31){while(--_0x220a31){_0x2de55a['push'](_0x2de55a['shift']());}};_0x4add95(++_0x530d07);}(a937_0x530d,0x1db));const a937_0x4add=function(_0x2de55a,_0x530d07){_0x2de55a=_0x2de55a-0x0;let _0x4add95=a937_0x530d[_0x2de55a];return _0x4add95;};const _0x41af46=a937_0x4add;'use strict';const util=require(_0x41af46('0x3')),logger=require(_0x41af46('0x10'))(_0x41af46('0x17')),Sequence=function(){};Sequence[_0x41af46('0x1b')][_0x41af46('0x14')]=function(_0x220a31){const _0x3ba01c=_0x41af46;this[_0x3ba01c('0x26')]=this[_0x3ba01c('0x26')]?this[_0x3ba01c('0x26')][_0x3ba01c('0x8')](_0x220a31):_0x220a31();};const Migration=function(_0x11b011){const _0x2454f7=_0x41af46;this['queryInterface']=_0x11b011,this[_0x2454f7('0x12')]=new Sequence();};Migration[_0x41af46('0x1b')][_0x41af46('0xa')]=function(_0xaf54a1,_0x48f895,_0x2f98e7){const _0x141cda=_0x41af46,_0x598c86=this;this['sequence'][_0x141cda('0x14')](function(){const _0x2444cc=_0x141cda;return _0x598c86[_0x2444cc('0x22')][_0x2444cc('0xa')](_0xaf54a1,_0x48f895,_0x2f98e7)[_0x2444cc('0x1e')](function(){const _0x2d5dee=_0x2444cc;logger[_0x2d5dee('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x48f895,_0xaf54a1);})[_0x2444cc('0x27')](function(_0x12c276){const _0x23bd13=_0x2444cc;logger[_0x23bd13('0x2')](JSON[_0x23bd13('0x19')](_0x12c276));});});},Migration[_0x41af46('0x1b')]['addColumn']=function(_0x3ec885,_0x22fa97,_0xaeeb0b){const _0x40b5cc=_0x41af46,_0x2b5989=this;this[_0x40b5cc('0x12')]['enqueue'](function(){const _0x32395a=_0x40b5cc;return _0x2b5989[_0x32395a('0x22')][_0x32395a('0xd')](_0x3ec885,_0x22fa97,_0xaeeb0b)[_0x32395a('0x1e')](function(){const _0x150513=_0x32395a;logger['info'](_0x150513('0xf'),_0x22fa97,_0x3ec885);})[_0x32395a('0x27')](function(_0x2a49ae){const _0x1cf35c=_0x32395a;logger['info'](JSON[_0x1cf35c('0x19')](_0x2a49ae));});});},Migration[_0x41af46('0x1b')][_0x41af46('0xe')]=function(_0x139cef){const _0x1563b2=_0x41af46,_0x45a700=this;this[_0x1563b2('0x12')][_0x1563b2('0x14')](function(){const _0x314708=_0x1563b2;return _0x45a700[_0x314708('0x22')]['dropTable'](_0x139cef,{'force':!![]})[_0x314708('0x1e')](function(){const _0x369dd3=_0x314708;logger[_0x369dd3('0x2')](_0x369dd3('0x11'),_0x139cef);})[_0x314708('0x27')](function(_0x2e7c73){const _0x12d1c9=_0x314708;logger[_0x12d1c9('0x2')](JSON[_0x12d1c9('0x19')](_0x2e7c73));});});},Migration[_0x41af46('0x1b')][_0x41af46('0x4')]=function(_0x2e6332,_0x25ea46,_0x145a68){const _0x1e7fe1=_0x41af46,_0x5a0e06=this;this[_0x1e7fe1('0x12')][_0x1e7fe1('0x14')](function(){const _0x12154e=_0x1e7fe1;return _0x5a0e06['queryInterface'][_0x12154e('0x4')](_0x2e6332,_0x25ea46,{'indexName':_0x145a68})[_0x12154e('0x1e')](function(){const _0x35acb2=_0x12154e;logger[_0x35acb2('0x2')](_0x35acb2('0x9'),_0x2e6332,_0x25ea46[_0x35acb2('0xb')](','),_0x145a68);})[_0x12154e('0x27')](function(_0x5d7552){const _0x150743=_0x12154e;logger[_0x150743('0x2')](JSON['stringify'](_0x5d7552));});});},Migration[_0x41af46('0x1b')]['query']=function(_0x40c26d){const _0x519daa=_0x41af46,_0x3f1d52=this;this['sequence'][_0x519daa('0x14')](function(){const _0x5d2e81=_0x519daa;return _0x3f1d52[_0x5d2e81('0x22')][_0x5d2e81('0x25')][_0x5d2e81('0x1a')](_0x40c26d)[_0x5d2e81('0x1e')](function(){const _0x1093a7=_0x5d2e81;logger[_0x1093a7('0x2')](_0x1093a7('0x15'),_0x40c26d);})[_0x5d2e81('0x27')](function(_0x4def10){const _0x273f8f=_0x5d2e81;logger[_0x273f8f('0x2')](JSON[_0x273f8f('0x19')](_0x4def10));});});},Migration[_0x41af46('0x1b')][_0x41af46('0x7')]=function(_0xde6e48,_0xe4c6e4){const _0x39021b=_0x41af46,_0x2f7bed=this;this['sequence'][_0x39021b('0x14')](function(){const _0x4ac999=_0x39021b;return _0x2f7bed[_0x4ac999('0x22')]['removeColumn'](_0xde6e48,_0xe4c6e4)[_0x4ac999('0x1e')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0xe4c6e4,_0xde6e48);})[_0x4ac999('0x27')](function(_0x35cfbf){const _0x2d2aec=_0x4ac999;logger['info'](util[_0x2d2aec('0x6')](_0x35cfbf,{'showHidden':![],'depth':null}));});});},Migration[_0x41af46('0x1b')][_0x41af46('0x0')]=function(_0x32102c,_0x2b3570,_0x34e9fe){const _0x298a77=_0x41af46,_0x5004a2=this;this['sequence'][_0x298a77('0x14')](function(){const _0x559dd5=_0x298a77;return _0x5004a2[_0x559dd5('0x22')][_0x559dd5('0x0')](_0x32102c,_0x2b3570,_0x34e9fe)[_0x559dd5('0x1e')](function(){const _0x9e3eef=_0x559dd5;logger['info'](_0x9e3eef('0x24'),_0x2b3570,_0x34e9fe,_0x32102c);})['catch'](function(_0x1cddee){const _0x32d7cd=_0x559dd5;logger[_0x32d7cd('0x2')](util['inspect'](_0x1cddee,{'showHidden':![],'depth':null}));});});},Migration[_0x41af46('0x1b')][_0x41af46('0xc')]=function(_0x443391){const _0x157d9d=_0x41af46;this[_0x157d9d('0x12')][_0x157d9d('0x14')](function(){return _0x443391();});},module[_0x41af46('0x1c')]={'up':function(_0x5806cc,_0x27ea3f){return new Promise(function(_0x19b0db){const _0x549951=a937_0x4add,_0x1e8491=new Migration(_0x5806cc);_0x1e8491['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'),_0x1e8491[_0x549951('0x4')](_0x549951('0x21'),[_0x549951('0x13')],_0x549951('0x13')),_0x1e8491[_0x549951('0x4')](_0x549951('0x21'),[_0x549951('0x18')],_0x549951('0x18')),_0x1e8491[_0x549951('0xd')](_0x549951('0x21'),_0x549951('0x23'),{'type':_0x27ea3f[_0x549951('0x5')]}),_0x1e8491['query'](_0x549951('0x16')),_0x1e8491['query'](_0x549951('0x1')),_0x1e8491[_0x549951('0x1a')](_0x549951('0x20')),_0x1e8491['query']('INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\x20Menu\x27,\x20\x27agentmanagement-menu\x27,\x20\x27Agent\x20Menu\x27,\x20\x27auto\x20generated\x20sound\x27,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x27wav\x27,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20NULL,\x20\x272018-05-24\x2011:44:53\x27,\x20\x272018-05-24\x2011:44:53\x27);'),_0x1e8491[_0x549951('0x1a')](_0x549951('0x1d')),_0x1e8491['query'](_0x549951('0x1f')),_0x1e8491[_0x549951('0x1a')]('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);'),_0x1e8491['final'](_0x19b0db);});},'down':function(){}}; \ No newline at end of file +const a937_0x5848=['report_queue','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','join','final','addColumn','queue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','STRING','sequence','queryInterface','stringify','catch','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','renameColumn','dropTable','queuecallerexitreason','query','Added\x20column\x20%s\x20to\x20%s','removeColumn','tail','../config/logger','then','table\x20dropped\x20%s','exports','migration','info','sequelize','query\x20%s','disposition','Removed\x20column\x20%s\x20from\x20%s','prototype','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\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);','util','addIndex\x20%s\x20%s\x20%s','inspect','changeColumn','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);','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);','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);'];(function(_0x407ae2,_0x584823){const _0x73b1e5=function(_0x39d49e){while(--_0x39d49e){_0x407ae2['push'](_0x407ae2['shift']());}};_0x73b1e5(++_0x584823);}(a937_0x5848,0x1bd));const a937_0x73b1=function(_0x407ae2,_0x584823){_0x407ae2=_0x407ae2-0x0;let _0x73b1e5=a937_0x5848[_0x407ae2];return _0x73b1e5;};const _0x364da8=a937_0x73b1;'use strict';const util=require(_0x364da8('0x28')),logger=require(_0x364da8('0x1b'))(_0x364da8('0x1f')),Sequence=function(){};Sequence[_0x364da8('0x25')][_0x364da8('0x26')]=function(_0x39d49e){const _0x7cd01b=_0x364da8;this[_0x7cd01b('0x1a')]=this[_0x7cd01b('0x1a')]?this[_0x7cd01b('0x1a')]['finally'](_0x39d49e):_0x39d49e();};const Migration=function(_0x4c3029){const _0x3c1223=_0x364da8;this[_0x3c1223('0x10')]=_0x4c3029,this['sequence']=new Sequence();};Migration[_0x364da8('0x25')]['changeColumn']=function(_0xa9268a,_0x4150f4,_0x3fb021){const _0x470574=_0x364da8,_0x32608e=this;this[_0x470574('0xf')][_0x470574('0x26')](function(){const _0x11a7db=_0x470574;return _0x32608e['queryInterface'][_0x11a7db('0x2')](_0xa9268a,_0x4150f4,_0x3fb021)[_0x11a7db('0x1c')](function(){const _0x2a5777=_0x11a7db;logger[_0x2a5777('0x20')](_0x2a5777('0x7'),_0x4150f4,_0xa9268a);})[_0x11a7db('0x12')](function(_0x5031a0){const _0x424e63=_0x11a7db;logger[_0x424e63('0x20')](JSON['stringify'](_0x5031a0));});});},Migration[_0x364da8('0x25')][_0x364da8('0xb')]=function(_0x3800a5,_0x258a11,_0x42f212){const _0x3c092e=_0x364da8,_0x407a0f=this;this['sequence'][_0x3c092e('0x26')](function(){const _0x587523=_0x3c092e;return _0x407a0f[_0x587523('0x10')]['addColumn'](_0x3800a5,_0x258a11,_0x42f212)[_0x587523('0x1c')](function(){const _0x4a8b18=_0x587523;logger[_0x4a8b18('0x20')](_0x4a8b18('0x18'),_0x258a11,_0x3800a5);})[_0x587523('0x12')](function(_0x380e56){const _0x600c7d=_0x587523;logger[_0x600c7d('0x20')](JSON['stringify'](_0x380e56));});});},Migration[_0x364da8('0x25')]['dropTable']=function(_0x54ab5c){const _0x4ec6f4=this;this['sequence']['enqueue'](function(){const _0x1d08dc=a937_0x73b1;return _0x4ec6f4[_0x1d08dc('0x10')][_0x1d08dc('0x15')](_0x54ab5c,{'force':!![]})[_0x1d08dc('0x1c')](function(){const _0x1292b9=_0x1d08dc;logger[_0x1292b9('0x20')](_0x1292b9('0x1d'),_0x54ab5c);})['catch'](function(_0x1c3d50){const _0x955f9b=_0x1d08dc;logger[_0x955f9b('0x20')](JSON['stringify'](_0x1c3d50));});});},Migration['prototype'][_0x364da8('0x8')]=function(_0x53f098,_0xf4d971,_0x487f3f){const _0x3bb78d=_0x364da8,_0x1432c2=this;this[_0x3bb78d('0xf')][_0x3bb78d('0x26')](function(){const _0x1b50f0=_0x3bb78d;return _0x1432c2[_0x1b50f0('0x10')][_0x1b50f0('0x8')](_0x53f098,_0xf4d971,{'indexName':_0x487f3f})[_0x1b50f0('0x1c')](function(){const _0x32904c=_0x1b50f0;logger['info'](_0x32904c('0x0'),_0x53f098,_0xf4d971[_0x32904c('0x9')](','),_0x487f3f);})[_0x1b50f0('0x12')](function(_0x27618b){const _0xd2130f=_0x1b50f0;logger['info'](JSON[_0xd2130f('0x11')](_0x27618b));});});},Migration[_0x364da8('0x25')]['query']=function(_0x17206f){const _0x46d37e=_0x364da8,_0x4aa8d8=this;this[_0x46d37e('0xf')][_0x46d37e('0x26')](function(){const _0xd7474a=_0x46d37e;return _0x4aa8d8[_0xd7474a('0x10')][_0xd7474a('0x21')][_0xd7474a('0x17')](_0x17206f)[_0xd7474a('0x1c')](function(){const _0x46971a=_0xd7474a;logger[_0x46971a('0x20')](_0x46971a('0x22'),_0x17206f);})['catch'](function(_0x3e8092){const _0x5ae0fc=_0xd7474a;logger['info'](JSON[_0x5ae0fc('0x11')](_0x3e8092));});});},Migration['prototype'][_0x364da8('0x19')]=function(_0x23e4b6,_0xfd0d29){const _0xb505b1=_0x364da8,_0x3b32d3=this;this[_0xb505b1('0xf')][_0xb505b1('0x26')](function(){const _0x1d4491=_0xb505b1;return _0x3b32d3[_0x1d4491('0x10')][_0x1d4491('0x19')](_0x23e4b6,_0xfd0d29)[_0x1d4491('0x1c')](function(){const _0x7d1733=_0x1d4491;logger['info'](_0x7d1733('0x24'),_0xfd0d29,_0x23e4b6);})[_0x1d4491('0x12')](function(_0x28b340){const _0x1cdd06=_0x1d4491;logger[_0x1cdd06('0x20')](util[_0x1cdd06('0x1')](_0x28b340,{'showHidden':![],'depth':null}));});});},Migration[_0x364da8('0x25')][_0x364da8('0x14')]=function(_0x4de123,_0x9c23aa,_0x2d3313){const _0x28e228=_0x364da8,_0x4b0b15=this;this[_0x28e228('0xf')]['enqueue'](function(){const _0x35bc96=_0x28e228;return _0x4b0b15[_0x35bc96('0x10')]['renameColumn'](_0x4de123,_0x9c23aa,_0x2d3313)['then'](function(){const _0x53bf8f=_0x35bc96;logger[_0x53bf8f('0x20')](_0x53bf8f('0xd'),_0x9c23aa,_0x2d3313,_0x4de123);})[_0x35bc96('0x12')](function(_0x5483b4){const _0x5111a8=_0x35bc96;logger[_0x5111a8('0x20')](util[_0x5111a8('0x1')](_0x5483b4,{'showHidden':![],'depth':null}));});});},Migration[_0x364da8('0x25')][_0x364da8('0xa')]=function(_0x574503){const _0x164230=_0x364da8;this[_0x164230('0xf')]['enqueue'](function(){return _0x574503();});},module[_0x364da8('0x1e')]={'up':function(_0x4a4654,_0x3e0d5d){return new Promise(function(_0x1c9222){const _0x3ab739=a937_0x73b1,_0x170b08=new Migration(_0x4a4654);_0x170b08['query'](_0x3ab739('0x13')),_0x170b08[_0x3ab739('0x8')](_0x3ab739('0x6'),[_0x3ab739('0xc')],'queue'),_0x170b08[_0x3ab739('0x8')](_0x3ab739('0x6'),[_0x3ab739('0x16')],_0x3ab739('0x16')),_0x170b08[_0x3ab739('0xb')](_0x3ab739('0x6'),_0x3ab739('0x23'),{'type':_0x3e0d5d[_0x3ab739('0xe')]}),_0x170b08[_0x3ab739('0x17')](_0x3ab739('0x4')),_0x170b08[_0x3ab739('0x17')](_0x3ab739('0x3')),_0x170b08[_0x3ab739('0x17')](_0x3ab739('0x27')),_0x170b08[_0x3ab739('0x17')]('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);'),_0x170b08[_0x3ab739('0x17')]('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);'),_0x170b08[_0x3ab739('0x17')](_0x3ab739('0x5')),_0x170b08['query']('INSERT\x20INTO\x20`tools_sounds`\x20(`name`,\x20`save_name`,\x20`display_name`,\x20`description`,\x20`original_format`,\x20`original_duration`,\x20`original_sampleCount`,\x20`original_channelCount`,\x20`original_bitRate`,\x20`original_sampleRate`,\x20`converted_format`,\x20`converted_duration`,\x20`converted_sampleCount`,\x20`converted_channelCount`,\x20`converted_bitRate`,\x20`converted_sampleRate`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Agent\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);'),_0x170b08[_0x3ab739('0xa')](_0x1c9222);});},'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 9adbf3d..35f73d8 100644 --- a/server/migrations/2.0.59.js +++ b/server/migrations/2.0.59.js @@ -1 +1 @@ -const a938_0x88a5=['skype','join','chat_interactions','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','renameColumn','exports','Removed\x20column\x20%s\x20from\x20%s','fax_interactions','then','enqueue','alias','STRING','addIndex\x20%s\x20%s\x20%s','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','mail_interactions','phoneBarAutoUpdaterUrl','changeColumn','cm_contacts','NOW','info','campaigns','final','removeColumn','queryInterface','dialPrefix','tail','migration','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','cm_lists','openedBy','openchannel_interactions','../config/logger','UserId','DATE','finally','prototype','sms_interactions','addIndex','catch','settings','addColumn','DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)','dropTable','table\x20dropped\x20%s','https://www.xcally.com/bar/phonebar/autoupdater.xml','stringify','query','BOOLEAN','INTEGER'];(function(_0x5042ae,_0x88a506){const _0x1d2e38=function(_0x5bf008){while(--_0x5bf008){_0x5042ae['push'](_0x5042ae['shift']());}};_0x1d2e38(++_0x88a506);}(a938_0x88a5,0x10e));const a938_0x1d2e=function(_0x5042ae,_0x88a506){_0x5042ae=_0x5042ae-0x0;let _0x1d2e38=a938_0x88a5[_0x5042ae];return _0x1d2e38;};const _0x5b4ebc=a938_0x1d2e;'use strict';const util=require('util'),logger=require(_0x5b4ebc('0x18'))(_0x5b4ebc('0x12')),Sequence=function(){};Sequence[_0x5b4ebc('0x1c')][_0x5b4ebc('0x1')]=function(_0x5bf008){const _0x17049e=_0x5b4ebc;this['tail']=this['tail']?this[_0x17049e('0x11')][_0x17049e('0x1b')](_0x5bf008):_0x5bf008();};const Migration=function(_0x2864fe){const _0x764ac7=_0x5b4ebc;this[_0x764ac7('0xf')]=_0x2864fe,this[_0x764ac7('0x2d')]=new Sequence();};Migration[_0x5b4ebc('0x1c')][_0x5b4ebc('0x8')]=function(_0x3229cc,_0x1c53aa,_0x2bbfef){const _0x1cdc8d=_0x5b4ebc,_0x554548=this;this[_0x1cdc8d('0x2d')][_0x1cdc8d('0x1')](function(){const _0x114ade=_0x1cdc8d;return _0x554548['queryInterface'][_0x114ade('0x8')](_0x3229cc,_0x1c53aa,_0x2bbfef)[_0x114ade('0x0')](function(){const _0x548395=_0x114ade;logger[_0x548395('0xb')](_0x548395('0x2e'),_0x1c53aa,_0x3229cc);})[_0x114ade('0x1f')](function(_0x1814f3){const _0x43f4c3=_0x114ade;logger[_0x43f4c3('0xb')](JSON[_0x43f4c3('0x26')](_0x1814f3));});});},Migration[_0x5b4ebc('0x1c')][_0x5b4ebc('0x21')]=function(_0x549333,_0x3e6a73,_0x5e09d8){const _0xb956bc=_0x5b4ebc,_0x32cfc1=this;this[_0xb956bc('0x2d')][_0xb956bc('0x1')](function(){const _0x1ac879=_0xb956bc;return _0x32cfc1['queryInterface'][_0x1ac879('0x21')](_0x549333,_0x3e6a73,_0x5e09d8)[_0x1ac879('0x0')](function(){const _0x12ecff=_0x1ac879;logger[_0x12ecff('0xb')]('Added\x20column\x20%s\x20to\x20%s',_0x3e6a73,_0x549333);})[_0x1ac879('0x1f')](function(_0x49f8af){const _0x4cba62=_0x1ac879;logger[_0x4cba62('0xb')](JSON[_0x4cba62('0x26')](_0x49f8af));});});},Migration[_0x5b4ebc('0x1c')][_0x5b4ebc('0x23')]=function(_0x3bf87f){const _0x3d9b84=_0x5b4ebc,_0xc223d2=this;this[_0x3d9b84('0x2d')][_0x3d9b84('0x1')](function(){const _0x13bf2b=_0x3d9b84;return _0xc223d2[_0x13bf2b('0xf')]['dropTable'](_0x3bf87f,{'force':!![]})['then'](function(){const _0x3c1e76=_0x13bf2b;logger['info'](_0x3c1e76('0x24'),_0x3bf87f);})[_0x13bf2b('0x1f')](function(_0x301eb8){const _0x28c026=_0x13bf2b;logger[_0x28c026('0xb')](JSON[_0x28c026('0x26')](_0x301eb8));});});},Migration[_0x5b4ebc('0x1c')]['addIndex']=function(_0x22501c,_0x547bd1,_0x4d538d){const _0x546e47=_0x5b4ebc,_0xf58db1=this;this[_0x546e47('0x2d')]['enqueue'](function(){const _0x4cc6d4=_0x546e47;return _0xf58db1[_0x4cc6d4('0xf')][_0x4cc6d4('0x1e')](_0x22501c,_0x547bd1,{'indexName':_0x4d538d})[_0x4cc6d4('0x0')](function(){const _0x52ae0e=_0x4cc6d4;logger['info'](_0x52ae0e('0x4'),_0x22501c,_0x547bd1[_0x52ae0e('0x2b')](','),_0x4d538d);})['catch'](function(_0x4b95ed){const _0xe58735=_0x4cc6d4;logger[_0xe58735('0xb')](JSON[_0xe58735('0x26')](_0x4b95ed));});});},Migration[_0x5b4ebc('0x1c')][_0x5b4ebc('0x27')]=function(_0x52e23e){const _0x4df0f6=_0x5b4ebc,_0xea9aaa=this;this[_0x4df0f6('0x2d')][_0x4df0f6('0x1')](function(){const _0x5c1171=_0x4df0f6;return _0xea9aaa[_0x5c1171('0xf')]['sequelize'][_0x5c1171('0x27')](_0x52e23e)[_0x5c1171('0x0')](function(){const _0x5ae38d=_0x5c1171;logger[_0x5ae38d('0xb')](_0x5ae38d('0x13'),_0x52e23e);})[_0x5c1171('0x1f')](function(_0x20914f){const _0x2e9693=_0x5c1171;logger[_0x2e9693('0xb')](JSON[_0x2e9693('0x26')](_0x20914f));});});},Migration[_0x5b4ebc('0x1c')][_0x5b4ebc('0xe')]=function(_0x238ecd,_0x1d075b){const _0x2d15db=_0x5b4ebc,_0x1ed1b1=this;this[_0x2d15db('0x2d')][_0x2d15db('0x1')](function(){const _0x10ffa9=_0x2d15db;return _0x1ed1b1[_0x10ffa9('0xf')][_0x10ffa9('0xe')](_0x238ecd,_0x1d075b)[_0x10ffa9('0x0')](function(){const _0x54be14=_0x10ffa9;logger[_0x54be14('0xb')](_0x54be14('0x32'),_0x1d075b,_0x238ecd);})[_0x10ffa9('0x1f')](function(_0x5f5cf9){const _0x223b5b=_0x10ffa9;logger[_0x223b5b('0xb')](util[_0x223b5b('0x2f')](_0x5f5cf9,{'showHidden':![],'depth':null}));});});},Migration[_0x5b4ebc('0x1c')]['renameColumn']=function(_0x432dcb,_0x350627,_0x120f27){const _0x5ce7ce=_0x5b4ebc,_0x570b2e=this;this[_0x5ce7ce('0x2d')][_0x5ce7ce('0x1')](function(){const _0xa6317f=_0x5ce7ce;return _0x570b2e[_0xa6317f('0xf')][_0xa6317f('0x30')](_0x432dcb,_0x350627,_0x120f27)[_0xa6317f('0x0')](function(){const _0x494108=_0xa6317f;logger[_0x494108('0xb')](_0x494108('0x14'),_0x350627,_0x120f27,_0x432dcb);})[_0xa6317f('0x1f')](function(_0x308bbb){const _0x4e03b5=_0xa6317f;logger[_0x4e03b5('0xb')](util[_0x4e03b5('0x2f')](_0x308bbb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5b4ebc('0xd')]=function(_0x17b779){const _0x2031d8=_0x5b4ebc;this[_0x2031d8('0x2d')][_0x2031d8('0x1')](function(){return _0x17b779();});},module[_0x5b4ebc('0x31')]={'up':function(_0x5ec919,_0x3fa184){return new Promise(function(_0x579fa3){const _0x5be9e3=a938_0x1d2e,_0x55f541=new Migration(_0x5ec919);_0x55f541[_0x5be9e3('0x21')](_0x5be9e3('0x20'),'phoneBarAutoUpdater',{'type':_0x3fa184[_0x5be9e3('0x28')],'defaultValue':!![]}),_0x55f541[_0x5be9e3('0x21')]('settings',_0x5be9e3('0x7'),{'type':_0x3fa184[_0x5be9e3('0x3')],'defaultValue':_0x5be9e3('0x25')}),_0x55f541[_0x5be9e3('0x21')](_0x5be9e3('0xc'),_0x5be9e3('0x10'),{'type':_0x3fa184[_0x5be9e3('0x3')]}),_0x55f541['addColumn'](_0x5be9e3('0x15'),'dialPrefix',{'type':_0x3fa184[_0x5be9e3('0x3')]}),_0x55f541[_0x5be9e3('0x21')]('users',_0x5be9e3('0x2'),{'type':_0x3fa184[_0x5be9e3('0x3')]}),_0x55f541['addColumn'](_0x5be9e3('0x9'),_0x5be9e3('0x2a'),{'type':_0x3fa184['STRING']}),_0x55f541['addColumn'](_0x5be9e3('0x9'),_0x5be9e3('0x19'),{'type':_0x3fa184[_0x5be9e3('0x29')]}),_0x55f541[_0x5be9e3('0x21')](_0x5be9e3('0x9'),'priority',{'type':_0x3fa184[_0x5be9e3('0x29')](0x2)['UNSIGNED'],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0x55f541[_0x5be9e3('0x21')](_0x5be9e3('0x9'),'scheduledat',{'type':_0x3fa184[_0x5be9e3('0x1a')],'defaultValue':_0x3fa184[_0x5be9e3('0xa')]}),_0x55f541[_0x5be9e3('0x21')](_0x5be9e3('0x6'),_0x5be9e3('0x16'),{'type':_0x3fa184['STRING'],'defaultValue':''}),_0x55f541[_0x5be9e3('0x21')](_0x5be9e3('0x2c'),_0x5be9e3('0x16'),{'type':_0x3fa184[_0x5be9e3('0x3')],'defaultValue':''}),_0x55f541['addColumn'](_0x5be9e3('0x1d'),_0x5be9e3('0x16'),{'type':_0x3fa184['STRING'],'defaultValue':''}),_0x55f541['addColumn'](_0x5be9e3('0x17'),_0x5be9e3('0x16'),{'type':_0x3fa184[_0x5be9e3('0x3')],'defaultValue':''}),_0x55f541[_0x5be9e3('0x21')](_0x5be9e3('0x33'),_0x5be9e3('0x16'),{'type':_0x3fa184[_0x5be9e3('0x3')],'defaultValue':''}),_0x55f541['query'](_0x5be9e3('0x22')),_0x55f541[_0x5be9e3('0x27')](_0x5be9e3('0x5')),_0x55f541[_0x5be9e3('0xd')](_0x579fa3);});},'down':function(){}}; \ No newline at end of file +const a938_0x302d=['catch','addIndex','removeColumn','UserId','campaigns','../config/logger','sequence','Removed\x20column\x20%s\x20from\x20%s','enqueue','migration','table\x20dropped\x20%s','query\x20%s','BOOLEAN','Added\x20column\x20%s\x20to\x20%s','priority','INTEGER','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','DATE','exports','renameColumn','cm_lists','dropTable','settings','prototype','dialPrefix','changeColumn','openedBy','phoneBarAutoUpdaterUrl','chat_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','final','cm_contacts','fax_interactions','DELETE\x20FROM\x20`voice_voicemail_messages`\x20WHERE\x20`mailboxuser`\x20NOT\x20IN\x20(SELECT\x20`mailbox`\x20FROM\x20`voice_voicemail`)','tail','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s','https://www.xcally.com/bar/phonebar/autoupdater.xml','UNSIGNED','queryInterface','stringify','addColumn','alias','skype','info','then','sms_interactions','STRING','NOW','phoneBarAutoUpdater'];(function(_0x5f4852,_0x302d28){const _0xa09016=function(_0x18e398){while(--_0x18e398){_0x5f4852['push'](_0x5f4852['shift']());}};_0xa09016(++_0x302d28);}(a938_0x302d,0x1e9));const a938_0xa090=function(_0x5f4852,_0x302d28){_0x5f4852=_0x5f4852-0x0;let _0xa09016=a938_0x302d[_0x5f4852];return _0xa09016;};const _0x952edf=a938_0xa090;'use strict';const util=require('util'),logger=require(_0x952edf('0x1a'))(_0x952edf('0x1e')),Sequence=function(){};Sequence[_0x952edf('0x2d')][_0x952edf('0x1d')]=function(_0x18e398){const _0x1d7c6c=_0x952edf;this[_0x1d7c6c('0x5')]=this[_0x1d7c6c('0x5')]?this['tail']['finally'](_0x18e398):_0x18e398();};const Migration=function(_0x195bf4){const _0x4c951f=_0x952edf;this[_0x4c951f('0xa')]=_0x195bf4,this[_0x4c951f('0x1b')]=new Sequence();};Migration[_0x952edf('0x2d')]['changeColumn']=function(_0x4f8359,_0x48e472,_0xced173){const _0x359611=_0x952edf,_0x2ad95d=this;this[_0x359611('0x1b')]['enqueue'](function(){const _0x2bbee8=_0x359611;return _0x2ad95d['queryInterface'][_0x2bbee8('0x2f')](_0x4f8359,_0x48e472,_0xced173)[_0x2bbee8('0x10')](function(){const _0x591772=_0x2bbee8;logger[_0x591772('0xf')](_0x591772('0x7'),_0x48e472,_0x4f8359);})[_0x2bbee8('0x15')](function(_0x570c8f){const _0x525d67=_0x2bbee8;logger[_0x525d67('0xf')](JSON[_0x525d67('0xb')](_0x570c8f));});});},Migration[_0x952edf('0x2d')]['addColumn']=function(_0x1a59aa,_0x3ccfbf,_0x1c851e){const _0x321cf7=_0x952edf,_0x2e21a9=this;this[_0x321cf7('0x1b')][_0x321cf7('0x1d')](function(){const _0x3592cb=_0x321cf7;return _0x2e21a9[_0x3592cb('0xa')][_0x3592cb('0xc')](_0x1a59aa,_0x3ccfbf,_0x1c851e)[_0x3592cb('0x10')](function(){const _0x5a622a=_0x3592cb;logger[_0x5a622a('0xf')](_0x5a622a('0x22'),_0x3ccfbf,_0x1a59aa);})['catch'](function(_0x42d8bc){const _0x31a8aa=_0x3592cb;logger[_0x31a8aa('0xf')](JSON['stringify'](_0x42d8bc));});});},Migration['prototype'][_0x952edf('0x2b')]=function(_0xcb7e84){const _0x4e8798=_0x952edf,_0x48ab20=this;this[_0x4e8798('0x1b')][_0x4e8798('0x1d')](function(){const _0x2ba5db=_0x4e8798;return _0x48ab20[_0x2ba5db('0xa')][_0x2ba5db('0x2b')](_0xcb7e84,{'force':!![]})[_0x2ba5db('0x10')](function(){const _0xe920b6=_0x2ba5db;logger[_0xe920b6('0xf')](_0xe920b6('0x1f'),_0xcb7e84);})[_0x2ba5db('0x15')](function(_0x2e364f){const _0xc00716=_0x2ba5db;logger[_0xc00716('0xf')](JSON[_0xc00716('0xb')](_0x2e364f));});});},Migration[_0x952edf('0x2d')][_0x952edf('0x16')]=function(_0x4a48d6,_0x2471b5,_0x5de326){const _0x1fca1f=_0x952edf,_0x340797=this;this[_0x1fca1f('0x1b')][_0x1fca1f('0x1d')](function(){const _0x51985a=_0x1fca1f;return _0x340797[_0x51985a('0xa')][_0x51985a('0x16')](_0x4a48d6,_0x2471b5,{'indexName':_0x5de326})[_0x51985a('0x10')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x4a48d6,_0x2471b5['join'](','),_0x5de326);})[_0x51985a('0x15')](function(_0x372cc1){const _0x2fce4f=_0x51985a;logger[_0x2fce4f('0xf')](JSON['stringify'](_0x372cc1));});});},Migration[_0x952edf('0x2d')][_0x952edf('0x26')]=function(_0x28c910){const _0x2099f4=_0x952edf,_0x3f63fa=this;this[_0x2099f4('0x1b')][_0x2099f4('0x1d')](function(){const _0x4e0425=_0x2099f4;return _0x3f63fa[_0x4e0425('0xa')]['sequelize']['query'](_0x28c910)['then'](function(){const _0x295fed=_0x4e0425;logger[_0x295fed('0xf')](_0x295fed('0x20'),_0x28c910);})[_0x4e0425('0x15')](function(_0x22b760){const _0x259451=_0x4e0425;logger[_0x259451('0xf')](JSON[_0x259451('0xb')](_0x22b760));});});},Migration[_0x952edf('0x2d')][_0x952edf('0x17')]=function(_0x1c7e8c,_0x49c8ba){const _0xc410c9=_0x952edf,_0x483168=this;this['sequence'][_0xc410c9('0x1d')](function(){const _0x2cd407=_0xc410c9;return _0x483168['queryInterface']['removeColumn'](_0x1c7e8c,_0x49c8ba)['then'](function(){const _0x5134d4=a938_0xa090;logger[_0x5134d4('0xf')](_0x5134d4('0x1c'),_0x49c8ba,_0x1c7e8c);})[_0x2cd407('0x15')](function(_0x1c13ff){const _0x25c65d=_0x2cd407;logger['info'](util[_0x25c65d('0x6')](_0x1c13ff,{'showHidden':![],'depth':null}));});});},Migration[_0x952edf('0x2d')]['renameColumn']=function(_0x3d68e0,_0x3718bb,_0x43f1e4){const _0xc53e98=_0x952edf,_0x54d00b=this;this[_0xc53e98('0x1b')][_0xc53e98('0x1d')](function(){const _0x4de91d=_0xc53e98;return _0x54d00b['queryInterface'][_0x4de91d('0x29')](_0x3d68e0,_0x3718bb,_0x43f1e4)[_0x4de91d('0x10')](function(){const _0x7a757c=_0x4de91d;logger[_0x7a757c('0xf')](_0x7a757c('0x25'),_0x3718bb,_0x43f1e4,_0x3d68e0);})[_0x4de91d('0x15')](function(_0x53eb6b){const _0x217a2f=_0x4de91d;logger[_0x217a2f('0xf')](util[_0x217a2f('0x6')](_0x53eb6b,{'showHidden':![],'depth':null}));});});},Migration[_0x952edf('0x2d')]['final']=function(_0xe6ba65){const _0x4a04d8=_0x952edf;this[_0x4a04d8('0x1b')]['enqueue'](function(){return _0xe6ba65();});},module[_0x952edf('0x28')]={'up':function(_0x45e20f,_0x772598){return new Promise(function(_0x16e520){const _0x5e4822=a938_0xa090,_0xf1a723=new Migration(_0x45e20f);_0xf1a723[_0x5e4822('0xc')]('settings',_0x5e4822('0x14'),{'type':_0x772598[_0x5e4822('0x21')],'defaultValue':!![]}),_0xf1a723[_0x5e4822('0xc')](_0x5e4822('0x2c'),_0x5e4822('0x31'),{'type':_0x772598[_0x5e4822('0x12')],'defaultValue':_0x5e4822('0x8')}),_0xf1a723[_0x5e4822('0xc')](_0x5e4822('0x19'),'dialPrefix',{'type':_0x772598[_0x5e4822('0x12')]}),_0xf1a723[_0x5e4822('0xc')](_0x5e4822('0x2a'),_0x5e4822('0x2e'),{'type':_0x772598[_0x5e4822('0x12')]}),_0xf1a723[_0x5e4822('0xc')]('users',_0x5e4822('0xd'),{'type':_0x772598['STRING']}),_0xf1a723[_0x5e4822('0xc')]('cm_contacts',_0x5e4822('0xe'),{'type':_0x772598['STRING']}),_0xf1a723[_0x5e4822('0xc')](_0x5e4822('0x2'),_0x5e4822('0x18'),{'type':_0x772598[_0x5e4822('0x24')]}),_0xf1a723[_0x5e4822('0xc')]('cm_contacts',_0x5e4822('0x23'),{'type':_0x772598[_0x5e4822('0x24')](0x2)[_0x5e4822('0x9')],'defaultValue':0x2,'validate':{'min':0x0,'max':0x4}}),_0xf1a723[_0x5e4822('0xc')](_0x5e4822('0x2'),'scheduledat',{'type':_0x772598[_0x5e4822('0x27')],'defaultValue':_0x772598[_0x5e4822('0x13')]}),_0xf1a723[_0x5e4822('0xc')]('mail_interactions',_0x5e4822('0x30'),{'type':_0x772598[_0x5e4822('0x12')],'defaultValue':''}),_0xf1a723[_0x5e4822('0xc')](_0x5e4822('0x32'),_0x5e4822('0x30'),{'type':_0x772598['STRING'],'defaultValue':''}),_0xf1a723[_0x5e4822('0xc')](_0x5e4822('0x11'),_0x5e4822('0x30'),{'type':_0x772598[_0x5e4822('0x12')],'defaultValue':''}),_0xf1a723[_0x5e4822('0xc')]('openchannel_interactions','openedBy',{'type':_0x772598[_0x5e4822('0x12')],'defaultValue':''}),_0xf1a723['addColumn'](_0x5e4822('0x3'),_0x5e4822('0x30'),{'type':_0x772598[_0x5e4822('0x12')],'defaultValue':''}),_0xf1a723[_0x5e4822('0x26')](_0x5e4822('0x4')),_0xf1a723[_0x5e4822('0x26')](_0x5e4822('0x0')),_0xf1a723[_0x5e4822('0x1')](_0x16e520);});},'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 b625403..fb0a53e 100644 --- a/server/migrations/2.0.60.js +++ b/server/migrations/2.0.60.js @@ -1 +1 @@ -const a939_0x2b17=['query\x20%s','phoneBarEnableJaws','fax_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','final','exports','STRING','openchannel_interactions','enqueue','finally','table\x20dropped\x20%s','join','inspect','catch','prototype','agentIdentifier','Removed\x20column\x20%s\x20from\x20%s','sms_accounts','from','chat_websites','then','stringify','removeColumn','query','tail','util','dropTable','openchannel_accounts','renameColumn','info','changeColumn','sequelize','addIndex','sequence','migration','lastMsgBody','users','long','waitForTheAssignedAgent','mail_accounts','queryInterface','website_alias','openedBy','INTEGER','chat_interactions','Added\x20column\x20%s\x20to\x20%s'];(function(_0x12fc95,_0x2b17b7){const _0xab6aa6=function(_0xf96770){while(--_0xf96770){_0x12fc95['push'](_0x12fc95['shift']());}};_0xab6aa6(++_0x2b17b7);}(a939_0x2b17,0x11d));const a939_0xab6a=function(_0x12fc95,_0x2b17b7){_0x12fc95=_0x12fc95-0x0;let _0xab6aa6=a939_0x2b17[_0x12fc95];return _0xab6aa6;};const _0x32d313=a939_0xab6a;'use strict';const util=require(_0x32d313('0x17')),logger=require('../config/logger')(_0x32d313('0x20')),Sequence=function(){};Sequence[_0x32d313('0xc')][_0x32d313('0x6')]=function(_0xf96770){const _0xfc7484=_0x32d313;this[_0xfc7484('0x16')]=this[_0xfc7484('0x16')]?this[_0xfc7484('0x16')][_0xfc7484('0x7')](_0xf96770):_0xf96770();};const Migration=function(_0x19c7bb){const _0x2ba35b=_0x32d313;this[_0x2ba35b('0x26')]=_0x19c7bb,this[_0x2ba35b('0x1f')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x2b8bcd,_0x483747,_0x31c59a){const _0xb74c4b=_0x32d313,_0x2a1489=this;this[_0xb74c4b('0x1f')][_0xb74c4b('0x6')](function(){const _0x514a7c=_0xb74c4b;return _0x2a1489[_0x514a7c('0x26')][_0x514a7c('0x1c')](_0x2b8bcd,_0x483747,_0x31c59a)[_0x514a7c('0x12')](function(){const _0x37ba06=_0x514a7c;logger['info'](_0x37ba06('0x0'),_0x483747,_0x2b8bcd);})[_0x514a7c('0xb')](function(_0x49d879){const _0xccdee6=_0x514a7c;logger[_0xccdee6('0x1b')](JSON[_0xccdee6('0x13')](_0x49d879));});});},Migration[_0x32d313('0xc')][_0x32d313('0x1')]=function(_0x2c5c00,_0x1f0d62,_0x16ae91){const _0x293bd9=_0x32d313,_0x3d96d1=this;this[_0x293bd9('0x1f')][_0x293bd9('0x6')](function(){const _0x3795e2=_0x293bd9;return _0x3d96d1[_0x3795e2('0x26')][_0x3795e2('0x1')](_0x2c5c00,_0x1f0d62,_0x16ae91)['then'](function(){const _0x1e0a8a=_0x3795e2;logger[_0x1e0a8a('0x1b')](_0x1e0a8a('0x2b'),_0x1f0d62,_0x2c5c00);})[_0x3795e2('0xb')](function(_0x2e2af6){const _0x15fdc4=_0x3795e2;logger[_0x15fdc4('0x1b')](JSON['stringify'](_0x2e2af6));});});},Migration[_0x32d313('0xc')][_0x32d313('0x18')]=function(_0x321809){const _0x1a959b=_0x32d313,_0x2cfd45=this;this[_0x1a959b('0x1f')][_0x1a959b('0x6')](function(){const _0x2bacd5=_0x1a959b;return _0x2cfd45['queryInterface'][_0x2bacd5('0x18')](_0x321809,{'force':!![]})[_0x2bacd5('0x12')](function(){const _0x2ee2a0=_0x2bacd5;logger[_0x2ee2a0('0x1b')](_0x2ee2a0('0x8'),_0x321809);})[_0x2bacd5('0xb')](function(_0x4aa9cf){const _0x51d656=_0x2bacd5;logger[_0x51d656('0x1b')](JSON[_0x51d656('0x13')](_0x4aa9cf));});});},Migration[_0x32d313('0xc')][_0x32d313('0x1e')]=function(_0xcc3e20,_0x193374,_0x41de7c){const _0x28dc71=_0x32d313,_0x33bbba=this;this['sequence'][_0x28dc71('0x6')](function(){const _0x453380=_0x28dc71;return _0x33bbba[_0x453380('0x26')][_0x453380('0x1e')](_0xcc3e20,_0x193374,{'indexName':_0x41de7c})['then'](function(){const _0x33a9fa=_0x453380;logger[_0x33a9fa('0x1b')]('addIndex\x20%s\x20%s\x20%s',_0xcc3e20,_0x193374[_0x33a9fa('0x9')](','),_0x41de7c);})[_0x453380('0xb')](function(_0x7f3fd3){const _0x64180f=_0x453380;logger[_0x64180f('0x1b')](JSON['stringify'](_0x7f3fd3));});});},Migration[_0x32d313('0xc')]['query']=function(_0x2789e9){const _0x67e0f5=this;this['sequence']['enqueue'](function(){const _0x96f254=a939_0xab6a;return _0x67e0f5['queryInterface'][_0x96f254('0x1d')][_0x96f254('0x15')](_0x2789e9)[_0x96f254('0x12')](function(){const _0x526a45=_0x96f254;logger[_0x526a45('0x1b')](_0x526a45('0x2c'),_0x2789e9);})[_0x96f254('0xb')](function(_0x4e2e93){const _0x37645a=_0x96f254;logger[_0x37645a('0x1b')](JSON[_0x37645a('0x13')](_0x4e2e93));});});},Migration[_0x32d313('0xc')][_0x32d313('0x14')]=function(_0x44e560,_0x5a1a5f){const _0x2262fa=_0x32d313,_0x4d0842=this;this[_0x2262fa('0x1f')]['enqueue'](function(){const _0x2c7acb=_0x2262fa;return _0x4d0842[_0x2c7acb('0x26')]['removeColumn'](_0x44e560,_0x5a1a5f)[_0x2c7acb('0x12')](function(){const _0x25844e=_0x2c7acb;logger['info'](_0x25844e('0xe'),_0x5a1a5f,_0x44e560);})[_0x2c7acb('0xb')](function(_0x426b64){const _0x455c3d=_0x2c7acb;logger[_0x455c3d('0x1b')](util[_0x455c3d('0xa')](_0x426b64,{'showHidden':![],'depth':null}));});});},Migration[_0x32d313('0xc')][_0x32d313('0x1a')]=function(_0x47cf24,_0x154da6,_0x522fce){const _0x1f6b55=_0x32d313,_0x5d629b=this;this[_0x1f6b55('0x1f')][_0x1f6b55('0x6')](function(){const _0x1ef3e4=_0x1f6b55;return _0x5d629b[_0x1ef3e4('0x26')][_0x1ef3e4('0x1a')](_0x47cf24,_0x154da6,_0x522fce)[_0x1ef3e4('0x12')](function(){const _0x119247=_0x1ef3e4;logger[_0x119247('0x1b')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x154da6,_0x522fce,_0x47cf24);})['catch'](function(_0xdacf79){const _0x3eb6df=_0x1ef3e4;logger[_0x3eb6df('0x1b')](util[_0x3eb6df('0xa')](_0xdacf79,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x729f5){const _0x19217f=_0x32d313;this['sequence'][_0x19217f('0x6')](function(){return _0x729f5();});},module[_0x32d313('0x3')]={'up':function(_0xbbab01,_0x30e216){return new Promise(function(_0x204f82){const _0x216efa=a939_0xab6a,_0xd858a3=new Migration(_0xbbab01);_0xd858a3['addColumn']('chat_websites',_0x216efa('0xd'),{'type':_0x30e216[_0x216efa('0x4')],'defaultValue':_0x216efa('0x27')}),_0xd858a3[_0x216efa('0x1')](_0x216efa('0x11'),_0x216efa('0x24'),{'type':_0x30e216[_0x216efa('0x29')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0xd858a3[_0x216efa('0x14')](_0x216efa('0x2a'),_0x216efa('0x28')),_0xd858a3['removeColumn']('mail_interactions',_0x216efa('0x28')),_0xd858a3[_0x216efa('0x1')]('mail_interactions',_0x216efa('0x21'),{'type':_0x30e216['TEXT'](_0x216efa('0x23'))}),_0xd858a3[_0x216efa('0x14')]('sms_interactions','openedBy'),_0xd858a3[_0x216efa('0x14')]('fax_interactions',_0x216efa('0x28')),_0xd858a3['removeColumn'](_0x216efa('0x5'),_0x216efa('0x28')),_0xd858a3['addColumn'](_0x216efa('0x5'),_0x216efa('0x10'),{'type':_0x30e216[_0x216efa('0x4')]}),_0xd858a3[_0x216efa('0x1')](_0x216efa('0x25'),_0x216efa('0x24'),{'type':_0x30e216[_0x216efa('0x29')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0xd858a3[_0x216efa('0x1')](_0x216efa('0x19'),_0x216efa('0x24'),{'type':_0x30e216[_0x216efa('0x29')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0xd858a3['addColumn'](_0x216efa('0x2e'),_0x216efa('0x24'),{'type':_0x30e216[_0x216efa('0x29')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0xd858a3['addColumn'](_0x216efa('0xf'),_0x216efa('0x24'),{'type':_0x30e216['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0xd858a3[_0x216efa('0x1')](_0x216efa('0x22'),_0x216efa('0x2d'),{'type':_0x30e216['BOOLEAN'],'defaultValue':![]}),_0xd858a3[_0x216efa('0x2')](_0x204f82);});},'down':function(){}}; \ No newline at end of file +const a939_0x23f1=['addIndex\x20%s\x20%s\x20%s','finally','inspect','from','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','renameColumn','catch','fax_accounts','website_alias','agentIdentifier','table\x20dropped\x20%s','changeColumn','tail','enqueue','removeColumn','STRING','info','mail_accounts','addIndex','sms_interactions','query','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','lastMsgBody','waitForTheAssignedAgent','Added\x20column\x20%s\x20to\x20%s','query\x20%s','users','migration','INTEGER','long','TEXT','chat_websites','chat_interactions','exports','final','openchannel_interactions','sequence','addColumn','openedBy','prototype','../config/logger','sequelize','queryInterface','mail_interactions','phoneBarEnableJaws','stringify','join'];(function(_0x26a0e4,_0x23f175){const _0x2653f7=function(_0x60a783){while(--_0x60a783){_0x26a0e4['push'](_0x26a0e4['shift']());}};_0x2653f7(++_0x23f175);}(a939_0x23f1,0x17b));const a939_0x2653=function(_0x26a0e4,_0x23f175){_0x26a0e4=_0x26a0e4-0x0;let _0x2653f7=a939_0x23f1[_0x26a0e4];return _0x2653f7;};const _0x43b18e=a939_0x2653;'use strict';const util=require('util'),logger=require(_0x43b18e('0x6'))(_0x43b18e('0x2a')),Sequence=function(){};Sequence['prototype'][_0x43b18e('0x1b')]=function(_0x60a783){const _0x59a423=_0x43b18e;this['tail']=this['tail']?this[_0x59a423('0x1a')][_0x59a423('0xe')](_0x60a783):_0x60a783();};const Migration=function(_0x45c9a9){this['queryInterface']=_0x45c9a9,this['sequence']=new Sequence();};Migration[_0x43b18e('0x5')][_0x43b18e('0x19')]=function(_0x3e30d5,_0x3379e4,_0x4b1724){const _0x25438c=this;this['sequence']['enqueue'](function(){const _0x1247d0=a939_0x2653;return _0x25438c[_0x1247d0('0x8')][_0x1247d0('0x19')](_0x3e30d5,_0x3379e4,_0x4b1724)[_0x1247d0('0x12')](function(){const _0x19df11=_0x1247d0;logger['info'](_0x19df11('0x24'),_0x3379e4,_0x3e30d5);})['catch'](function(_0x1f9f6f){const _0x496591=_0x1247d0;logger[_0x496591('0x1e')](JSON['stringify'](_0x1f9f6f));});});},Migration['prototype'][_0x43b18e('0x3')]=function(_0x236fb9,_0x1e8596,_0x548322){const _0x24b1ad=_0x43b18e,_0x432aa0=this;this[_0x24b1ad('0x2')][_0x24b1ad('0x1b')](function(){const _0x597e20=_0x24b1ad;return _0x432aa0[_0x597e20('0x8')][_0x597e20('0x3')](_0x236fb9,_0x1e8596,_0x548322)[_0x597e20('0x12')](function(){const _0x322fcd=_0x597e20;logger[_0x322fcd('0x1e')](_0x322fcd('0x27'),_0x1e8596,_0x236fb9);})['catch'](function(_0x452335){const _0x3aa672=_0x597e20;logger[_0x3aa672('0x1e')](JSON[_0x3aa672('0xb')](_0x452335));});});},Migration['prototype'][_0x43b18e('0x23')]=function(_0x122206){const _0x398213=_0x43b18e,_0x24a2fc=this;this['sequence'][_0x398213('0x1b')](function(){const _0x5b7298=_0x398213;return _0x24a2fc[_0x5b7298('0x8')]['dropTable'](_0x122206,{'force':!![]})[_0x5b7298('0x12')](function(){const _0x455806=_0x5b7298;logger[_0x455806('0x1e')](_0x455806('0x18'),_0x122206);})[_0x5b7298('0x14')](function(_0x1812a4){const _0x2f3fbd=_0x5b7298;logger[_0x2f3fbd('0x1e')](JSON[_0x2f3fbd('0xb')](_0x1812a4));});});},Migration[_0x43b18e('0x5')][_0x43b18e('0x20')]=function(_0x46d2ca,_0x5ec544,_0x4ebc7e){const _0x59ac03=_0x43b18e,_0x1cfa31=this;this[_0x59ac03('0x2')]['enqueue'](function(){const _0xce8eb7=_0x59ac03;return _0x1cfa31[_0xce8eb7('0x8')][_0xce8eb7('0x20')](_0x46d2ca,_0x5ec544,{'indexName':_0x4ebc7e})[_0xce8eb7('0x12')](function(){const _0x596fb7=_0xce8eb7;logger[_0x596fb7('0x1e')](_0x596fb7('0xd'),_0x46d2ca,_0x5ec544[_0x596fb7('0xc')](','),_0x4ebc7e);})[_0xce8eb7('0x14')](function(_0x3889dc){const _0x5b3a00=_0xce8eb7;logger[_0x5b3a00('0x1e')](JSON[_0x5b3a00('0xb')](_0x3889dc));});});},Migration['prototype'][_0x43b18e('0x22')]=function(_0x1ba105){const _0x21c438=_0x43b18e,_0xd8fd1b=this;this['sequence'][_0x21c438('0x1b')](function(){const _0x48103d=_0x21c438;return _0xd8fd1b['queryInterface'][_0x48103d('0x7')][_0x48103d('0x22')](_0x1ba105)[_0x48103d('0x12')](function(){const _0x1cad26=_0x48103d;logger[_0x1cad26('0x1e')](_0x1cad26('0x28'),_0x1ba105);})[_0x48103d('0x14')](function(_0x5f5a50){const _0x45a4d7=_0x48103d;logger[_0x45a4d7('0x1e')](JSON[_0x45a4d7('0xb')](_0x5f5a50));});});},Migration[_0x43b18e('0x5')][_0x43b18e('0x1c')]=function(_0x146465,_0x2ae049){const _0x4a1f04=_0x43b18e,_0x2bb37c=this;this[_0x4a1f04('0x2')][_0x4a1f04('0x1b')](function(){const _0x56adc7=_0x4a1f04;return _0x2bb37c[_0x56adc7('0x8')]['removeColumn'](_0x146465,_0x2ae049)[_0x56adc7('0x12')](function(){const _0x505f5f=_0x56adc7;logger[_0x505f5f('0x1e')]('Removed\x20column\x20%s\x20from\x20%s',_0x2ae049,_0x146465);})[_0x56adc7('0x14')](function(_0x35daa5){const _0x3bc041=_0x56adc7;logger['info'](util[_0x3bc041('0xf')](_0x35daa5,{'showHidden':![],'depth':null}));});});},Migration[_0x43b18e('0x5')][_0x43b18e('0x13')]=function(_0x4f15f5,_0x578a23,_0x569670){const _0xc3baab=_0x43b18e,_0x32c610=this;this[_0xc3baab('0x2')][_0xc3baab('0x1b')](function(){const _0x46b833=_0xc3baab;return _0x32c610[_0x46b833('0x8')][_0x46b833('0x13')](_0x4f15f5,_0x578a23,_0x569670)[_0x46b833('0x12')](function(){const _0x10798f=_0x46b833;logger[_0x10798f('0x1e')](_0x10798f('0x11'),_0x578a23,_0x569670,_0x4f15f5);})[_0x46b833('0x14')](function(_0x16e648){const _0x25a8f7=_0x46b833;logger[_0x25a8f7('0x1e')](util['inspect'](_0x16e648,{'showHidden':![],'depth':null}));});});},Migration[_0x43b18e('0x5')]['final']=function(_0x40425e){const _0x20a64d=_0x43b18e;this[_0x20a64d('0x2')][_0x20a64d('0x1b')](function(){return _0x40425e();});},module[_0x43b18e('0x30')]={'up':function(_0x48e3d7,_0x50fad5){return new Promise(function(_0x37338b){const _0x226c6d=a939_0x2653,_0x4d48d7=new Migration(_0x48e3d7);_0x4d48d7[_0x226c6d('0x3')]('chat_websites',_0x226c6d('0x17'),{'type':_0x50fad5[_0x226c6d('0x1d')],'defaultValue':_0x226c6d('0x16')}),_0x4d48d7[_0x226c6d('0x3')](_0x226c6d('0x2e'),_0x226c6d('0x26'),{'type':_0x50fad5[_0x226c6d('0x2b')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x4d48d7[_0x226c6d('0x1c')](_0x226c6d('0x2f'),_0x226c6d('0x4')),_0x4d48d7[_0x226c6d('0x1c')]('mail_interactions',_0x226c6d('0x4')),_0x4d48d7[_0x226c6d('0x3')](_0x226c6d('0x9'),_0x226c6d('0x25'),{'type':_0x50fad5[_0x226c6d('0x2d')](_0x226c6d('0x2c'))}),_0x4d48d7[_0x226c6d('0x1c')](_0x226c6d('0x21'),_0x226c6d('0x4')),_0x4d48d7[_0x226c6d('0x1c')]('fax_interactions',_0x226c6d('0x4')),_0x4d48d7['removeColumn'](_0x226c6d('0x1'),_0x226c6d('0x4')),_0x4d48d7['addColumn'](_0x226c6d('0x1'),_0x226c6d('0x10'),{'type':_0x50fad5[_0x226c6d('0x1d')]}),_0x4d48d7[_0x226c6d('0x3')](_0x226c6d('0x1f'),_0x226c6d('0x26'),{'type':_0x50fad5[_0x226c6d('0x2b')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x4d48d7[_0x226c6d('0x3')]('openchannel_accounts',_0x226c6d('0x26'),{'type':_0x50fad5[_0x226c6d('0x2b')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x4d48d7[_0x226c6d('0x3')](_0x226c6d('0x15'),_0x226c6d('0x26'),{'type':_0x50fad5[_0x226c6d('0x2b')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x4d48d7['addColumn']('sms_accounts',_0x226c6d('0x26'),{'type':_0x50fad5['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0xa}),_0x4d48d7[_0x226c6d('0x3')](_0x226c6d('0x29'),_0x226c6d('0xa'),{'type':_0x50fad5['BOOLEAN'],'defaultValue':![]}),_0x4d48d7[_0x226c6d('0x0')](_0x37338b);});},'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 7ef33b5..df4e1f8 100644 --- a/server/migrations/2.0.61.js +++ b/server/migrations/2.0.61.js @@ -1 +1 @@ -const a940_0x45dd=['Changed\x20column\x20%s\x20in\x20table\x20%s','query','catch','changeColumn','addColumn','stringify','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','util','finally','sequence','dropTable','tail','final','addIndex','info','prototype','Removed\x20column\x20%s\x20from\x20%s','then','addIndex\x20%s\x20%s\x20%s','renameColumn','query\x20%s','queryInterface','inspect','join','removeColumn'];(function(_0x58df41,_0x45ddf1){const _0x501259=function(_0x1cf244){while(--_0x1cf244){_0x58df41['push'](_0x58df41['shift']());}};_0x501259(++_0x45ddf1);}(a940_0x45dd,0x8a));const a940_0x5012=function(_0x58df41,_0x45ddf1){_0x58df41=_0x58df41-0x0;let _0x501259=a940_0x45dd[_0x58df41];return _0x501259;};const _0xd43199=a940_0x5012;'use strict';const util=require(_0xd43199('0x6')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0xd43199('0xe')][_0xd43199('0x3')]=function(_0x1cf244){const _0x38c447=_0xd43199;this[_0x38c447('0xa')]=this[_0x38c447('0xa')]?this[_0x38c447('0xa')][_0x38c447('0x7')](_0x1cf244):_0x1cf244();};const Migration=function(_0x429c4d){const _0xba60a=_0xd43199;this[_0xba60a('0x14')]=_0x429c4d,this['sequence']=new Sequence();};Migration[_0xd43199('0xe')][_0xd43199('0x0')]=function(_0x36181a,_0x3f5744,_0x4a9908){const _0x2adade=_0xd43199,_0x4c9e2c=this;this[_0x2adade('0x8')][_0x2adade('0x3')](function(){const _0x56a155=_0x2adade;return _0x4c9e2c['queryInterface'][_0x56a155('0x0')](_0x36181a,_0x3f5744,_0x4a9908)[_0x56a155('0x10')](function(){const _0x476c74=_0x56a155;logger[_0x476c74('0xd')](_0x476c74('0x18'),_0x3f5744,_0x36181a);})[_0x56a155('0x1a')](function(_0x5baf9d){const _0x29f1d1=_0x56a155;logger['info'](JSON[_0x29f1d1('0x2')](_0x5baf9d));});});},Migration[_0xd43199('0xe')][_0xd43199('0x1')]=function(_0x50dc34,_0x3ea0bd,_0xaa7b99){const _0x45be58=_0xd43199,_0x555e64=this;this[_0x45be58('0x8')][_0x45be58('0x3')](function(){const _0x4474ac=_0x45be58;return _0x555e64[_0x4474ac('0x14')][_0x4474ac('0x1')](_0x50dc34,_0x3ea0bd,_0xaa7b99)[_0x4474ac('0x10')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x3ea0bd,_0x50dc34);})['catch'](function(_0x4633f2){const _0x83246d=_0x4474ac;logger[_0x83246d('0xd')](JSON[_0x83246d('0x2')](_0x4633f2));});});},Migration['prototype'][_0xd43199('0x9')]=function(_0x2a3409){const _0x3200cc=_0xd43199,_0x40cde7=this;this[_0x3200cc('0x8')]['enqueue'](function(){const _0x3674b4=_0x3200cc;return _0x40cde7['queryInterface']['dropTable'](_0x2a3409,{'force':!![]})[_0x3674b4('0x10')](function(){const _0x305661=_0x3674b4;logger[_0x305661('0xd')]('table\x20dropped\x20%s',_0x2a3409);})[_0x3674b4('0x1a')](function(_0x7b4a05){const _0x4915c3=_0x3674b4;logger['info'](JSON[_0x4915c3('0x2')](_0x7b4a05));});});},Migration[_0xd43199('0xe')][_0xd43199('0xc')]=function(_0x15d28f,_0x47ec9b,_0x4ed3c6){const _0x447c2f=_0xd43199,_0x20c23f=this;this[_0x447c2f('0x8')][_0x447c2f('0x3')](function(){const _0x16ff7e=_0x447c2f;return _0x20c23f['queryInterface'][_0x16ff7e('0xc')](_0x15d28f,_0x47ec9b,{'indexName':_0x4ed3c6})[_0x16ff7e('0x10')](function(){const _0x45d5e7=_0x16ff7e;logger['info'](_0x45d5e7('0x11'),_0x15d28f,_0x47ec9b[_0x45d5e7('0x16')](','),_0x4ed3c6);})[_0x16ff7e('0x1a')](function(_0x316858){const _0x108618=_0x16ff7e;logger[_0x108618('0xd')](JSON[_0x108618('0x2')](_0x316858));});});},Migration['prototype']['query']=function(_0xa58d5d){const _0x2d6f7a=_0xd43199,_0x1afef6=this;this[_0x2d6f7a('0x8')][_0x2d6f7a('0x3')](function(){const _0x51b8a5=_0x2d6f7a;return _0x1afef6[_0x51b8a5('0x14')]['sequelize'][_0x51b8a5('0x19')](_0xa58d5d)[_0x51b8a5('0x10')](function(){const _0x301991=_0x51b8a5;logger[_0x301991('0xd')](_0x301991('0x13'),_0xa58d5d);})[_0x51b8a5('0x1a')](function(_0x33c747){const _0x4c1088=_0x51b8a5;logger[_0x4c1088('0xd')](JSON[_0x4c1088('0x2')](_0x33c747));});});},Migration[_0xd43199('0xe')]['removeColumn']=function(_0x475b43,_0x58d552){const _0x7fc359=_0xd43199,_0x4ec19d=this;this['sequence'][_0x7fc359('0x3')](function(){const _0xfe5e4a=_0x7fc359;return _0x4ec19d[_0xfe5e4a('0x14')][_0xfe5e4a('0x17')](_0x475b43,_0x58d552)['then'](function(){const _0x5f48ad=_0xfe5e4a;logger[_0x5f48ad('0xd')](_0x5f48ad('0xf'),_0x58d552,_0x475b43);})['catch'](function(_0x936474){const _0x550c0b=_0xfe5e4a;logger[_0x550c0b('0xd')](util['inspect'](_0x936474,{'showHidden':![],'depth':null}));});});},Migration[_0xd43199('0xe')][_0xd43199('0x12')]=function(_0x3819bd,_0x19447d,_0x20f9c1){const _0x5df19b=_0xd43199,_0x75cad3=this;this[_0x5df19b('0x8')][_0x5df19b('0x3')](function(){const _0x248501=_0x5df19b;return _0x75cad3[_0x248501('0x14')][_0x248501('0x12')](_0x3819bd,_0x19447d,_0x20f9c1)[_0x248501('0x10')](function(){const _0x40e2fb=_0x248501;logger[_0x40e2fb('0xd')](_0x40e2fb('0x4'),_0x19447d,_0x20f9c1,_0x3819bd);})[_0x248501('0x1a')](function(_0x575ea2){const _0x1a2d73=_0x248501;logger[_0x1a2d73('0xd')](util[_0x1a2d73('0x15')](_0x575ea2,{'showHidden':![],'depth':null}));});});},Migration[_0xd43199('0xe')][_0xd43199('0xb')]=function(_0x698273){const _0x46acf3=_0xd43199;this[_0x46acf3('0x8')][_0x46acf3('0x3')](function(){return _0x698273();});},module[_0xd43199('0x5')]={'up':function(_0x219cb9){return new Promise(function(_0x31a389){const _0x2b9d2c=a940_0x5012,_0x44f61d=new Migration(_0x219cb9);_0x44f61d[_0x2b9d2c('0xb')](_0x31a389);});},'down':function(){}}; \ No newline at end of file +const a940_0x1a9d=['queryInterface','Removed\x20column\x20%s\x20from\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','enqueue','../config/logger','prototype','table\x20dropped\x20%s','renameColumn','then','sequelize','info','join','addColumn','finally','migration','final','util','changeColumn','addIndex','catch','query','inspect','query\x20%s','tail','dropTable','addIndex\x20%s\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','sequence','removeColumn','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x1b23c9,_0x1a9d89){const _0x2808be=function(_0x41d982){while(--_0x41d982){_0x1b23c9['push'](_0x1b23c9['shift']());}};_0x2808be(++_0x1a9d89);}(a940_0x1a9d,0x1d2));const a940_0x2808=function(_0x1b23c9,_0x1a9d89){_0x1b23c9=_0x1b23c9-0x0;let _0x2808be=a940_0x1a9d[_0x1b23c9];return _0x2808be;};const _0x12894b=a940_0x2808;'use strict';const util=require(_0x12894b('0xf')),logger=require(_0x12894b('0x3'))(_0x12894b('0xd')),Sequence=function(){};Sequence[_0x12894b('0x4')][_0x12894b('0x2')]=function(_0x41d982){const _0x572f1d=_0x12894b;this[_0x572f1d('0x16')]=this[_0x572f1d('0x16')]?this['tail'][_0x572f1d('0xc')](_0x41d982):_0x41d982();};const Migration=function(_0x17c88d){const _0x498b93=_0x12894b;this['queryInterface']=_0x17c88d,this[_0x498b93('0x1a')]=new Sequence();};Migration['prototype'][_0x12894b('0x10')]=function(_0x3928dc,_0x24b360,_0x5a3ded){const _0x420dbd=_0x12894b,_0x38c5b0=this;this[_0x420dbd('0x1a')]['enqueue'](function(){const _0x3a4e90=_0x420dbd;return _0x38c5b0[_0x3a4e90('0x1e')]['changeColumn'](_0x3928dc,_0x24b360,_0x5a3ded)['then'](function(){const _0x5ca70e=_0x3a4e90;logger['info'](_0x5ca70e('0x1'),_0x24b360,_0x3928dc);})[_0x3a4e90('0x12')](function(_0x946f66){const _0x455e9c=_0x3a4e90;logger[_0x455e9c('0x9')](JSON[_0x455e9c('0x1c')](_0x946f66));});});},Migration[_0x12894b('0x4')][_0x12894b('0xb')]=function(_0x36dca4,_0x302957,_0x1b0c52){const _0x508d60=_0x12894b,_0xb154f=this;this[_0x508d60('0x1a')][_0x508d60('0x2')](function(){const _0x5478cd=_0x508d60;return _0xb154f[_0x5478cd('0x1e')][_0x5478cd('0xb')](_0x36dca4,_0x302957,_0x1b0c52)['then'](function(){const _0x1dfe8b=_0x5478cd;logger[_0x1dfe8b('0x9')](_0x1dfe8b('0x19'),_0x302957,_0x36dca4);})[_0x5478cd('0x12')](function(_0xd12210){const _0x5fabb9=_0x5478cd;logger[_0x5fabb9('0x9')](JSON[_0x5fabb9('0x1c')](_0xd12210));});});},Migration[_0x12894b('0x4')][_0x12894b('0x17')]=function(_0x257b9d){const _0x559e69=_0x12894b,_0x219e95=this;this[_0x559e69('0x1a')][_0x559e69('0x2')](function(){const _0x377b31=_0x559e69;return _0x219e95[_0x377b31('0x1e')][_0x377b31('0x17')](_0x257b9d,{'force':!![]})['then'](function(){const _0x397ca7=_0x377b31;logger[_0x397ca7('0x9')](_0x397ca7('0x5'),_0x257b9d);})[_0x377b31('0x12')](function(_0x1f4150){const _0x16dc90=_0x377b31;logger['info'](JSON[_0x16dc90('0x1c')](_0x1f4150));});});},Migration[_0x12894b('0x4')][_0x12894b('0x11')]=function(_0x3e235c,_0x331a31,_0x34714c){const _0x5703f9=_0x12894b,_0x341daa=this;this[_0x5703f9('0x1a')]['enqueue'](function(){const _0x31b651=_0x5703f9;return _0x341daa[_0x31b651('0x1e')][_0x31b651('0x11')](_0x3e235c,_0x331a31,{'indexName':_0x34714c})[_0x31b651('0x7')](function(){const _0x22390b=_0x31b651;logger['info'](_0x22390b('0x18'),_0x3e235c,_0x331a31[_0x22390b('0xa')](','),_0x34714c);})[_0x31b651('0x12')](function(_0x1378e6){const _0x316286=_0x31b651;logger[_0x316286('0x9')](JSON[_0x316286('0x1c')](_0x1378e6));});});},Migration[_0x12894b('0x4')][_0x12894b('0x13')]=function(_0x268a2b){const _0x42e560=_0x12894b,_0x11bceb=this;this[_0x42e560('0x1a')][_0x42e560('0x2')](function(){const _0x41b0cf=_0x42e560;return _0x11bceb[_0x41b0cf('0x1e')][_0x41b0cf('0x8')][_0x41b0cf('0x13')](_0x268a2b)[_0x41b0cf('0x7')](function(){const _0x4de9c1=_0x41b0cf;logger[_0x4de9c1('0x9')](_0x4de9c1('0x15'),_0x268a2b);})[_0x41b0cf('0x12')](function(_0x15a84b){const _0xeff990=_0x41b0cf;logger['info'](JSON[_0xeff990('0x1c')](_0x15a84b));});});},Migration[_0x12894b('0x4')][_0x12894b('0x1b')]=function(_0x43bc70,_0x145c35){const _0x43e765=_0x12894b,_0x32f9fa=this;this[_0x43e765('0x1a')][_0x43e765('0x2')](function(){const _0xcbc210=_0x43e765;return _0x32f9fa[_0xcbc210('0x1e')]['removeColumn'](_0x43bc70,_0x145c35)[_0xcbc210('0x7')](function(){const _0xd2ef15=_0xcbc210;logger[_0xd2ef15('0x9')](_0xd2ef15('0x0'),_0x145c35,_0x43bc70);})[_0xcbc210('0x12')](function(_0xbae11a){const _0x3c5b53=_0xcbc210;logger[_0x3c5b53('0x9')](util[_0x3c5b53('0x14')](_0xbae11a,{'showHidden':![],'depth':null}));});});},Migration[_0x12894b('0x4')][_0x12894b('0x6')]=function(_0x59ccb4,_0x5eb42b,_0x323d16){const _0x51b984=_0x12894b,_0x3b65b1=this;this['sequence'][_0x51b984('0x2')](function(){const _0x5e1540=_0x51b984;return _0x3b65b1['queryInterface']['renameColumn'](_0x59ccb4,_0x5eb42b,_0x323d16)[_0x5e1540('0x7')](function(){const _0x2a5e1c=_0x5e1540;logger[_0x2a5e1c('0x9')](_0x2a5e1c('0x1d'),_0x5eb42b,_0x323d16,_0x59ccb4);})[_0x5e1540('0x12')](function(_0x380ebc){const _0x4efa48=_0x5e1540;logger[_0x4efa48('0x9')](util[_0x4efa48('0x14')](_0x380ebc,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x29ab9){const _0x5330de=_0x12894b;this['sequence'][_0x5330de('0x2')](function(){return _0x29ab9();});},module['exports']={'up':function(_0x1b3e1c){return new Promise(function(_0x2d6f24){const _0x465d23=a940_0x2808,_0x267222=new Migration(_0x1b3e1c);_0x267222[_0x465d23('0xe')](_0x2d6f24);});},'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 b349429..90a8981 100644 --- a/server/migrations/2.0.62.js +++ b/server/migrations/2.0.62.js @@ -1 +1 @@ -const a941_0x38e4=['INTEGER','util','cm_contacts','dropTable','query\x20%s','addColumn','final','phone','tail','catch','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tools_schedules','addIndex\x20%s\x20%s\x20%s','changeColumn','prototype','renameColumn','exports','inspect','stringify','queryInterface','sequelize','removeColumn','Removed\x20column\x20%s\x20from\x20%s','chat_websites','BOOLEAN','addIndex','STRING','alignment','finally','Added\x20column\x20%s\x20to\x20%s','bottom_right','info','enqueue','then','migration','sequence','../config/logger','verticalAlignment'];(function(_0x2e8051,_0x38e4ad){const _0x120c2d=function(_0x52db68){while(--_0x52db68){_0x2e8051['push'](_0x2e8051['shift']());}};_0x120c2d(++_0x38e4ad);}(a941_0x38e4,0x14b));const a941_0x120c=function(_0x2e8051,_0x38e4ad){_0x2e8051=_0x2e8051-0x0;let _0x120c2d=a941_0x38e4[_0x2e8051];return _0x120c2d;};const _0x105af1=a941_0x120c;'use strict';const util=require(_0x105af1('0x15')),logger=require(_0x105af1('0x12'))(_0x105af1('0x10')),Sequence=function(){};Sequence[_0x105af1('0x23')][_0x105af1('0xe')]=function(_0x52db68){const _0x270553=_0x105af1;this[_0x270553('0x1c')]=this[_0x270553('0x1c')]?this[_0x270553('0x1c')][_0x270553('0xa')](_0x52db68):_0x52db68();};const Migration=function(_0x3d0375){const _0x1867a8=_0x105af1;this['queryInterface']=_0x3d0375,this[_0x1867a8('0x11')]=new Sequence();};Migration[_0x105af1('0x23')][_0x105af1('0x22')]=function(_0x2d2fac,_0x3c22b3,_0x1443e2){const _0x20aa22=_0x105af1,_0x2bdcf6=this;this[_0x20aa22('0x11')][_0x20aa22('0xe')](function(){const _0x40803a=_0x20aa22;return _0x2bdcf6['queryInterface']['changeColumn'](_0x2d2fac,_0x3c22b3,_0x1443e2)[_0x40803a('0xf')](function(){const _0x30476c=_0x40803a;logger[_0x30476c('0xd')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3c22b3,_0x2d2fac);})[_0x40803a('0x1d')](function(_0x5143ae){const _0x5d14b9=_0x40803a;logger[_0x5d14b9('0xd')](JSON[_0x5d14b9('0x0')](_0x5143ae));});});},Migration['prototype'][_0x105af1('0x19')]=function(_0x4a33ab,_0x4c7d10,_0x3dd4a3){const _0x207b98=_0x105af1,_0x3153c8=this;this[_0x207b98('0x11')][_0x207b98('0xe')](function(){const _0x6c4c6e=_0x207b98;return _0x3153c8[_0x6c4c6e('0x1')]['addColumn'](_0x4a33ab,_0x4c7d10,_0x3dd4a3)[_0x6c4c6e('0xf')](function(){const _0x15c11a=_0x6c4c6e;logger[_0x15c11a('0xd')](_0x15c11a('0xb'),_0x4c7d10,_0x4a33ab);})['catch'](function(_0xa860f6){const _0x28db8e=_0x6c4c6e;logger[_0x28db8e('0xd')](JSON[_0x28db8e('0x0')](_0xa860f6));});});},Migration[_0x105af1('0x23')][_0x105af1('0x17')]=function(_0x2232cc){const _0x481e00=_0x105af1,_0x19b836=this;this[_0x481e00('0x11')][_0x481e00('0xe')](function(){const _0x3a0663=_0x481e00;return _0x19b836[_0x3a0663('0x1')][_0x3a0663('0x17')](_0x2232cc,{'force':!![]})[_0x3a0663('0xf')](function(){const _0x5e4a29=_0x3a0663;logger[_0x5e4a29('0xd')]('table\x20dropped\x20%s',_0x2232cc);})['catch'](function(_0x115099){const _0x36af97=_0x3a0663;logger['info'](JSON[_0x36af97('0x0')](_0x115099));});});},Migration[_0x105af1('0x23')][_0x105af1('0x7')]=function(_0x4805bd,_0x1b09ff,_0x395a3e){const _0x4c7eb0=_0x105af1,_0x50f0a4=this;this[_0x4c7eb0('0x11')][_0x4c7eb0('0xe')](function(){const _0x464269=_0x4c7eb0;return _0x50f0a4[_0x464269('0x1')][_0x464269('0x7')](_0x4805bd,_0x1b09ff,{'indexName':_0x395a3e})[_0x464269('0xf')](function(){const _0x3ff729=_0x464269;logger[_0x3ff729('0xd')](_0x3ff729('0x21'),_0x4805bd,_0x1b09ff['join'](','),_0x395a3e);})[_0x464269('0x1d')](function(_0x482067){const _0x32221a=_0x464269;logger[_0x32221a('0xd')](JSON['stringify'](_0x482067));});});},Migration['prototype'][_0x105af1('0x1e')]=function(_0x4c88f1){const _0x2efd7d=_0x105af1,_0x5b2512=this;this[_0x2efd7d('0x11')][_0x2efd7d('0xe')](function(){const _0x5a5c88=_0x2efd7d;return _0x5b2512[_0x5a5c88('0x1')][_0x5a5c88('0x2')]['query'](_0x4c88f1)[_0x5a5c88('0xf')](function(){const _0x38f1ba=_0x5a5c88;logger[_0x38f1ba('0xd')](_0x38f1ba('0x18'),_0x4c88f1);})[_0x5a5c88('0x1d')](function(_0x2c70af){const _0x59384e=_0x5a5c88;logger[_0x59384e('0xd')](JSON[_0x59384e('0x0')](_0x2c70af));});});},Migration['prototype'][_0x105af1('0x3')]=function(_0x47cbcc,_0x407e64){const _0xa30245=_0x105af1,_0x2cf1be=this;this[_0xa30245('0x11')][_0xa30245('0xe')](function(){const _0x25e43e=_0xa30245;return _0x2cf1be['queryInterface'][_0x25e43e('0x3')](_0x47cbcc,_0x407e64)['then'](function(){const _0x2afbe3=_0x25e43e;logger['info'](_0x2afbe3('0x4'),_0x407e64,_0x47cbcc);})[_0x25e43e('0x1d')](function(_0x3be2ea){const _0x57f945=_0x25e43e;logger[_0x57f945('0xd')](util[_0x57f945('0x26')](_0x3be2ea,{'showHidden':![],'depth':null}));});});},Migration[_0x105af1('0x23')][_0x105af1('0x24')]=function(_0x4da71e,_0x4094ea,_0x232855){const _0x315841=this;this['sequence']['enqueue'](function(){const _0x3be2a0=a941_0x120c;return _0x315841[_0x3be2a0('0x1')][_0x3be2a0('0x24')](_0x4da71e,_0x4094ea,_0x232855)['then'](function(){const _0x5e07a6=_0x3be2a0;logger[_0x5e07a6('0xd')](_0x5e07a6('0x1f'),_0x4094ea,_0x232855,_0x4da71e);})[_0x3be2a0('0x1d')](function(_0x1a94c5){const _0x35795e=_0x3be2a0;logger['info'](util[_0x35795e('0x26')](_0x1a94c5,{'showHidden':![],'depth':null}));});});},Migration[_0x105af1('0x23')][_0x105af1('0x1a')]=function(_0x488b7d){const _0x895402=_0x105af1;this[_0x895402('0x11')][_0x895402('0xe')](function(){return _0x488b7d();});},module[_0x105af1('0x25')]={'up':function(_0x34eb47,_0x56150c){return new Promise(function(_0x37c998){const _0x45835d=a941_0x120c,_0x26b85e=new Migration(_0x34eb47);_0x26b85e[_0x45835d('0x19')](_0x45835d('0x20'),'sendIfEmpty',{'type':_0x56150c[_0x45835d('0x6')],'defaultValue':!![]}),_0x26b85e[_0x45835d('0x22')](_0x45835d('0x16'),_0x45835d('0x1b'),{'type':_0x56150c[_0x45835d('0x8')],'allowNull':!![]}),_0x26b85e[_0x45835d('0x19')]('settings','enableEmailPreview',{'type':_0x56150c[_0x45835d('0x6')],'defaultValue':![]}),_0x26b85e['addColumn'](_0x45835d('0x5'),_0x45835d('0x9'),{'type':_0x56150c['STRING'],'defaultValue':_0x45835d('0xc')}),_0x26b85e[_0x45835d('0x19')]('chat_websites',_0x45835d('0x13'),{'type':_0x56150c[_0x45835d('0x14')],'defaultValue':0x1e}),_0x26b85e[_0x45835d('0x1a')](_0x37c998);});},'down':function(){}}; \ No newline at end of file +const a941_0x2a00=['Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','sendIfEmpty','query\x20%s','addColumn','join','prototype','cm_contacts','BOOLEAN','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enableEmailPreview','stringify','renameColumn','STRING','exports','inspect','catch','enqueue','../config/logger','queryInterface','alignment','INTEGER','info','final','removeColumn','finally','tail','Removed\x20column\x20%s\x20from\x20%s','phone','addIndex','changeColumn','table\x20dropped\x20%s','chat_websites','verticalAlignment','then','tools_schedules','sequence','query'];(function(_0x29dce7,_0x2a0054){const _0x57d632=function(_0x3fdab5){while(--_0x3fdab5){_0x29dce7['push'](_0x29dce7['shift']());}};_0x57d632(++_0x2a0054);}(a941_0x2a00,0xc4));const a941_0x57d6=function(_0x29dce7,_0x2a0054){_0x29dce7=_0x29dce7-0x0;let _0x57d632=a941_0x2a00[_0x29dce7];return _0x57d632;};const _0x4ccb65=a941_0x57d6;'use strict';const util=require('util'),logger=require(_0x4ccb65('0xc'))('migration'),Sequence=function(){};Sequence[_0x4ccb65('0x0')][_0x4ccb65('0xb')]=function(_0x3fdab5){const _0x14bfae=_0x4ccb65;this[_0x14bfae('0x14')]=this[_0x14bfae('0x14')]?this[_0x14bfae('0x14')][_0x14bfae('0x13')](_0x3fdab5):_0x3fdab5();};const Migration=function(_0x1a36bb){const _0x2dcd25=_0x4ccb65;this[_0x2dcd25('0xd')]=_0x1a36bb,this[_0x2dcd25('0x1e')]=new Sequence();};Migration[_0x4ccb65('0x0')][_0x4ccb65('0x18')]=function(_0x34c2f1,_0x1921e5,_0x16aa25){const _0x422380=_0x4ccb65,_0x5b5c7f=this;this[_0x422380('0x1e')]['enqueue'](function(){const _0x2e84e3=_0x422380;return _0x5b5c7f['queryInterface']['changeColumn'](_0x34c2f1,_0x1921e5,_0x16aa25)[_0x2e84e3('0x1c')](function(){const _0x36a3d5=_0x2e84e3;logger['info'](_0x36a3d5('0x20'),_0x1921e5,_0x34c2f1);})['catch'](function(_0x12c57a){const _0x1e6ea0=_0x2e84e3;logger[_0x1e6ea0('0x10')](JSON[_0x1e6ea0('0x5')](_0x12c57a));});});},Migration[_0x4ccb65('0x0')][_0x4ccb65('0x24')]=function(_0x1c9ce4,_0x233cf1,_0x1611a6){const _0x347ff4=_0x4ccb65,_0x106ccf=this;this[_0x347ff4('0x1e')][_0x347ff4('0xb')](function(){const _0x2aa504=_0x347ff4;return _0x106ccf['queryInterface']['addColumn'](_0x1c9ce4,_0x233cf1,_0x1611a6)[_0x2aa504('0x1c')](function(){const _0x14ceba=_0x2aa504;logger[_0x14ceba('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x233cf1,_0x1c9ce4);})['catch'](function(_0x2b8f17){const _0x35699e=_0x2aa504;logger[_0x35699e('0x10')](JSON['stringify'](_0x2b8f17));});});},Migration[_0x4ccb65('0x0')][_0x4ccb65('0x21')]=function(_0x4f3961){const _0x199638=_0x4ccb65,_0x4fb051=this;this[_0x199638('0x1e')]['enqueue'](function(){const _0x466d1d=_0x199638;return _0x4fb051['queryInterface']['dropTable'](_0x4f3961,{'force':!![]})[_0x466d1d('0x1c')](function(){const _0x2596aa=_0x466d1d;logger[_0x2596aa('0x10')](_0x2596aa('0x19'),_0x4f3961);})['catch'](function(_0x584536){const _0x183144=_0x466d1d;logger[_0x183144('0x10')](JSON[_0x183144('0x5')](_0x584536));});});},Migration[_0x4ccb65('0x0')][_0x4ccb65('0x17')]=function(_0x2bdd04,_0x58816d,_0xe340b1){const _0x10893b=_0x4ccb65,_0x1349d1=this;this[_0x10893b('0x1e')]['enqueue'](function(){const _0x54d193=_0x10893b;return _0x1349d1[_0x54d193('0xd')][_0x54d193('0x17')](_0x2bdd04,_0x58816d,{'indexName':_0xe340b1})['then'](function(){const _0x299688=_0x54d193;logger[_0x299688('0x10')]('addIndex\x20%s\x20%s\x20%s',_0x2bdd04,_0x58816d[_0x299688('0x25')](','),_0xe340b1);})['catch'](function(_0xd5127){const _0x142f5d=_0x54d193;logger[_0x142f5d('0x10')](JSON[_0x142f5d('0x5')](_0xd5127));});});},Migration[_0x4ccb65('0x0')][_0x4ccb65('0x1f')]=function(_0x5b16a0){const _0x29322b=_0x4ccb65,_0x182e4d=this;this['sequence'][_0x29322b('0xb')](function(){const _0x179b5b=_0x29322b;return _0x182e4d[_0x179b5b('0xd')]['sequelize'][_0x179b5b('0x1f')](_0x5b16a0)['then'](function(){const _0x41a792=_0x179b5b;logger['info'](_0x41a792('0x23'),_0x5b16a0);})[_0x179b5b('0xa')](function(_0x5c2e96){const _0x5f03df=_0x179b5b;logger[_0x5f03df('0x10')](JSON[_0x5f03df('0x5')](_0x5c2e96));});});},Migration[_0x4ccb65('0x0')][_0x4ccb65('0x12')]=function(_0x46e65c,_0x3c6ac8){const _0x159f4c=_0x4ccb65,_0x33554c=this;this[_0x159f4c('0x1e')][_0x159f4c('0xb')](function(){const _0x3c2e83=_0x159f4c;return _0x33554c[_0x3c2e83('0xd')][_0x3c2e83('0x12')](_0x46e65c,_0x3c6ac8)['then'](function(){const _0x171a9a=_0x3c2e83;logger[_0x171a9a('0x10')](_0x171a9a('0x15'),_0x3c6ac8,_0x46e65c);})['catch'](function(_0x29aef0){const _0x4a8944=_0x3c2e83;logger[_0x4a8944('0x10')](util[_0x4a8944('0x9')](_0x29aef0,{'showHidden':![],'depth':null}));});});},Migration[_0x4ccb65('0x0')]['renameColumn']=function(_0x5a74a8,_0x3ed363,_0x4bbe93){const _0x287cc4=_0x4ccb65,_0x36cfb7=this;this[_0x287cc4('0x1e')]['enqueue'](function(){const _0x598a3d=_0x287cc4;return _0x36cfb7[_0x598a3d('0xd')][_0x598a3d('0x6')](_0x5a74a8,_0x3ed363,_0x4bbe93)[_0x598a3d('0x1c')](function(){const _0x44cb3c=_0x598a3d;logger[_0x44cb3c('0x10')](_0x44cb3c('0x3'),_0x3ed363,_0x4bbe93,_0x5a74a8);})['catch'](function(_0x90e22){const _0x5bfa18=_0x598a3d;logger[_0x5bfa18('0x10')](util[_0x5bfa18('0x9')](_0x90e22,{'showHidden':![],'depth':null}));});});},Migration[_0x4ccb65('0x0')][_0x4ccb65('0x11')]=function(_0x2645e2){const _0x3cc8d5=_0x4ccb65;this[_0x3cc8d5('0x1e')][_0x3cc8d5('0xb')](function(){return _0x2645e2();});},module[_0x4ccb65('0x8')]={'up':function(_0x15e847,_0x50ce27){return new Promise(function(_0x2c4ad1){const _0x1773df=a941_0x57d6,_0x3d0a62=new Migration(_0x15e847);_0x3d0a62[_0x1773df('0x24')](_0x1773df('0x1d'),_0x1773df('0x22'),{'type':_0x50ce27['BOOLEAN'],'defaultValue':!![]}),_0x3d0a62[_0x1773df('0x18')](_0x1773df('0x1'),_0x1773df('0x16'),{'type':_0x50ce27[_0x1773df('0x7')],'allowNull':!![]}),_0x3d0a62[_0x1773df('0x24')]('settings',_0x1773df('0x4'),{'type':_0x50ce27[_0x1773df('0x2')],'defaultValue':![]}),_0x3d0a62[_0x1773df('0x24')](_0x1773df('0x1a'),_0x1773df('0xe'),{'type':_0x50ce27['STRING'],'defaultValue':'bottom_right'}),_0x3d0a62[_0x1773df('0x24')]('chat_websites',_0x1773df('0x1b'),{'type':_0x50ce27[_0x1773df('0xf')],'defaultValue':0x1e}),_0x3d0a62['final'](_0x2c4ad1);});},'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 620689f..dc46e28 100644 --- a/server/migrations/2.0.63.js +++ b/server/migrations/2.0.63.js @@ -1 +1 @@ -const a942_0x304e=['enqueue','queryInterface','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','catch','changeColumn','messagesAlignment','TEXT','TagId','then','tail','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','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','util','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','chat_websites','chat_applications','title','BOOLEAN','sequelize','exports','Removed\x20column\x20%s\x20from\x20%s','STRING','stringify','info','openchannel_accounts','inspect','query\x20%s','sequence','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','voice_queues_log','INTEGER','prototype','renameColumn','defaultTitle','addIndex','../config/logger','dropTable','dashboard_items','openchannel_applications','query','addIndex\x20%s\x20%s\x20%s'];(function(_0x3deb96,_0x304e09){const _0x339713=function(_0x46c48b){while(--_0x46c48b){_0x3deb96['push'](_0x3deb96['shift']());}};_0x339713(++_0x304e09);}(a942_0x304e,0x153));const a942_0x3397=function(_0x3deb96,_0x304e09){_0x3deb96=_0x3deb96-0x0;let _0x339713=a942_0x304e[_0x3deb96];return _0x339713;};const _0x48fccf=a942_0x3397;'use strict';const util=require(_0x48fccf('0x12')),logger=require(_0x48fccf('0x2a'))('migration'),Sequence=function(){};Sequence['prototype'][_0x48fccf('0x5')]=function(_0x46c48b){const _0x2485a7=_0x48fccf;this['tail']=this['tail']?this[_0x2485a7('0xe')]['finally'](_0x46c48b):_0x46c48b();};const Migration=function(_0xea4779){const _0x145ef6=_0x48fccf;this[_0x145ef6('0x6')]=_0xea4779,this['sequence']=new Sequence();};Migration[_0x48fccf('0x26')][_0x48fccf('0x9')]=function(_0x5e6dea,_0x4d2ac1,_0x168976){const _0x1a3be7=_0x48fccf,_0x1fc419=this;this[_0x1a3be7('0x22')][_0x1a3be7('0x5')](function(){const _0x14a56e=_0x1a3be7;return _0x1fc419[_0x14a56e('0x6')]['changeColumn'](_0x5e6dea,_0x4d2ac1,_0x168976)[_0x14a56e('0xd')](function(){const _0x5d2ab9=_0x14a56e;logger['info'](_0x5d2ab9('0x11'),_0x4d2ac1,_0x5e6dea);})['catch'](function(_0x4e1607){const _0x31ff24=_0x14a56e;logger[_0x31ff24('0x1e')](JSON[_0x31ff24('0x1d')](_0x4e1607));});});},Migration['prototype']['addColumn']=function(_0x58223c,_0x561f40,_0x435c04){const _0x13444a=_0x48fccf,_0x21c7a2=this;this['sequence'][_0x13444a('0x5')](function(){const _0x333b74=_0x13444a;return _0x21c7a2[_0x333b74('0x6')][_0x333b74('0x10')](_0x58223c,_0x561f40,_0x435c04)[_0x333b74('0xd')](function(){const _0x52498a=_0x333b74;logger[_0x52498a('0x1e')]('Added\x20column\x20%s\x20to\x20%s',_0x561f40,_0x58223c);})[_0x333b74('0x8')](function(_0x364f65){const _0x41468f=_0x333b74;logger[_0x41468f('0x1e')](JSON[_0x41468f('0x1d')](_0x364f65));});});},Migration[_0x48fccf('0x26')][_0x48fccf('0x0')]=function(_0x424fea){const _0x27f9a8=_0x48fccf,_0x232d7f=this;this[_0x27f9a8('0x22')]['enqueue'](function(){const _0x475fdd=_0x27f9a8;return _0x232d7f[_0x475fdd('0x6')][_0x475fdd('0x0')](_0x424fea,{'force':!![]})[_0x475fdd('0xd')](function(){const _0x569381=_0x475fdd;logger[_0x569381('0x1e')]('table\x20dropped\x20%s',_0x424fea);})[_0x475fdd('0x8')](function(_0x840489){const _0x3ae438=_0x475fdd;logger[_0x3ae438('0x1e')](JSON[_0x3ae438('0x1d')](_0x840489));});});},Migration[_0x48fccf('0x26')][_0x48fccf('0x29')]=function(_0x16495e,_0x4a664c,_0x29685d){const _0x2810d9=_0x48fccf,_0x26d305=this;this[_0x2810d9('0x22')][_0x2810d9('0x5')](function(){const _0x407302=_0x2810d9;return _0x26d305[_0x407302('0x6')][_0x407302('0x29')](_0x16495e,_0x4a664c,{'indexName':_0x29685d})[_0x407302('0xd')](function(){const _0x19c39e=_0x407302;logger[_0x19c39e('0x1e')](_0x19c39e('0x4'),_0x16495e,_0x4a664c[_0x19c39e('0x13')](','),_0x29685d);})[_0x407302('0x8')](function(_0x2fd089){const _0x22b0ed=_0x407302;logger[_0x22b0ed('0x1e')](JSON['stringify'](_0x2fd089));});});},Migration[_0x48fccf('0x26')][_0x48fccf('0x3')]=function(_0x5ebe4a){const _0x10c130=_0x48fccf,_0x216a78=this;this[_0x10c130('0x22')]['enqueue'](function(){const _0x26ff11=_0x10c130;return _0x216a78['queryInterface'][_0x26ff11('0x19')][_0x26ff11('0x3')](_0x5ebe4a)[_0x26ff11('0xd')](function(){const _0x17d79f=_0x26ff11;logger['info'](_0x17d79f('0x21'),_0x5ebe4a);})[_0x26ff11('0x8')](function(_0x19a79f){const _0x28f0e4=_0x26ff11;logger[_0x28f0e4('0x1e')](JSON[_0x28f0e4('0x1d')](_0x19a79f));});});},Migration[_0x48fccf('0x26')]['removeColumn']=function(_0x4279ed,_0x5e701b){const _0x3bd885=_0x48fccf,_0x213805=this;this[_0x3bd885('0x22')][_0x3bd885('0x5')](function(){const _0x56837b=_0x3bd885;return _0x213805[_0x56837b('0x6')]['removeColumn'](_0x4279ed,_0x5e701b)[_0x56837b('0xd')](function(){const _0x7e0f26=_0x56837b;logger[_0x7e0f26('0x1e')](_0x7e0f26('0x1b'),_0x5e701b,_0x4279ed);})[_0x56837b('0x8')](function(_0x4a03bb){const _0x4582e3=_0x56837b;logger['info'](util[_0x4582e3('0x20')](_0x4a03bb,{'showHidden':![],'depth':null}));});});},Migration[_0x48fccf('0x26')]['renameColumn']=function(_0x235b1a,_0x336f18,_0x5c3d1a){const _0x48261d=this;this['sequence']['enqueue'](function(){const _0x23acd4=a942_0x3397;return _0x48261d['queryInterface'][_0x23acd4('0x27')](_0x235b1a,_0x336f18,_0x5c3d1a)[_0x23acd4('0xd')](function(){const _0x2476b2=_0x23acd4;logger[_0x2476b2('0x1e')](_0x2476b2('0x14'),_0x336f18,_0x5c3d1a,_0x235b1a);})[_0x23acd4('0x8')](function(_0x285d74){const _0x1d7ecf=_0x23acd4;logger['info'](util[_0x1d7ecf('0x20')](_0x285d74,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x44aabd){const _0xe9e2e8=_0x48fccf;this[_0xe9e2e8('0x22')]['enqueue'](function(){return _0x44aabd();});},module[_0x48fccf('0x1a')]={'up':function(_0x47eed3,_0x145c0e){return new Promise(function(_0x294548){const _0x4a93ae=a942_0x3397,_0x5390a7=new Migration(_0x47eed3);_0x5390a7[_0x4a93ae('0x10')]('chat_websites',_0x4a93ae('0xa'),{'type':_0x145c0e[_0x4a93ae('0x1c')],'defaultValue':'alternate'}),_0x5390a7[_0x4a93ae('0x10')]('chat_websites',_0x4a93ae('0x28'),{'type':_0x145c0e[_0x4a93ae('0x1c')]}),_0x5390a7[_0x4a93ae('0x10')](_0x4a93ae('0x15'),'customerAvatar',{'type':_0x145c0e[_0x4a93ae('0xb')]}),_0x5390a7['addColumn'](_0x4a93ae('0x15'),'showCustomerAvatar',{'type':_0x145c0e[_0x4a93ae('0x18')],'defaultValue':![]}),_0x5390a7[_0x4a93ae('0x10')](_0x4a93ae('0x16'),_0x4a93ae('0xc'),{'type':_0x145c0e[_0x4a93ae('0x25')]}),_0x5390a7[_0x4a93ae('0x3')](_0x4a93ae('0x7')),_0x5390a7[_0x4a93ae('0x10')]('fax_applications','TagId',{'type':_0x145c0e[_0x4a93ae('0x25')]}),_0x5390a7[_0x4a93ae('0x3')]('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'),_0x5390a7[_0x4a93ae('0x10')]('mail_applications',_0x4a93ae('0xc'),{'type':_0x145c0e[_0x4a93ae('0x25')]}),_0x5390a7[_0x4a93ae('0x3')]('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'),_0x5390a7['addColumn'](_0x4a93ae('0x2'),_0x4a93ae('0xc'),{'type':_0x145c0e[_0x4a93ae('0x25')]}),_0x5390a7['query'](_0x4a93ae('0xf')),_0x5390a7[_0x4a93ae('0x10')]('sms_applications',_0x4a93ae('0xc'),{'type':_0x145c0e[_0x4a93ae('0x25')]}),_0x5390a7['query'](_0x4a93ae('0x23')),_0x5390a7['query']('ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL'),_0x5390a7[_0x4a93ae('0x10')](_0x4a93ae('0x1f'),'token',{'type':_0x145c0e[_0x4a93ae('0x1c')]}),_0x5390a7[_0x4a93ae('0x10')](_0x4a93ae('0x24'),'data',{'type':_0x145c0e['STRING'],'allowNull':![],'defaultValue':''}),_0x5390a7[_0x4a93ae('0x9')](_0x4a93ae('0x1'),_0x4a93ae('0x17'),{'type':_0x145c0e['STRING'],'allowNull':![]}),_0x5390a7['final'](_0x294548);});},'down':function(){}}; \ No newline at end of file +const a942_0x2b65=['changeColumn','join','queryInterface','chat_websites','addColumn','../config/logger','Added\x20column\x20%s\x20to\x20%s','voice_queues_log','customerAvatar','table\x20dropped\x20%s','BOOLEAN','sms_applications','renameColumn','query','dropTable','inspect','removeColumn','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','finally','stringify','util','info','Removed\x20column\x20%s\x20from\x20%s','messagesAlignment','addIndex','INTEGER','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','TagId','tail','sequelize','dashboard_items','mail_applications','data','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','fax_applications','final','ALTER\x20TABLE\x20report_dial\x20CHANGE\x20`hodltime`\x20`holdtime`\x20INT(11)\x20DEFAULT\x20NULL','enqueue','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','alternate','then','catch','addIndex\x20%s\x20%s\x20%s','STRING','openchannel_applications'];(function(_0x1e0e48,_0x2b65f0){const _0x3e2030=function(_0x4f0eee){while(--_0x4f0eee){_0x1e0e48['push'](_0x1e0e48['shift']());}};_0x3e2030(++_0x2b65f0);}(a942_0x2b65,0x126));const a942_0x3e20=function(_0x1e0e48,_0x2b65f0){_0x1e0e48=_0x1e0e48-0x0;let _0x3e2030=a942_0x2b65[_0x1e0e48];return _0x3e2030;};const _0x31ff6d=a942_0x3e20;'use strict';const util=require(_0x31ff6d('0x8')),logger=require(_0x31ff6d('0x28'))('migration'),Sequence=function(){};Sequence[_0x31ff6d('0x1b')][_0x31ff6d('0x1a')]=function(_0x4f0eee){const _0x11d414=_0x31ff6d;this['tail']=this['tail']?this[_0x11d414('0x10')][_0x11d414('0x6')](_0x4f0eee):_0x4f0eee();};const Migration=function(_0x2db659){const _0x3177a9=_0x31ff6d;this[_0x3177a9('0x25')]=_0x2db659,this[_0x3177a9('0x15')]=new Sequence();};Migration[_0x31ff6d('0x1b')][_0x31ff6d('0x23')]=function(_0x177d23,_0x394ea8,_0x31d355){const _0x1b6d55=_0x31ff6d,_0x997ce7=this;this[_0x1b6d55('0x15')][_0x1b6d55('0x1a')](function(){const _0x3d95ca=_0x1b6d55;return _0x997ce7['queryInterface'][_0x3d95ca('0x23')](_0x177d23,_0x394ea8,_0x31d355)[_0x3d95ca('0x1e')](function(){const _0x3e3ddf=_0x3d95ca;logger['info'](_0x3e3ddf('0x16'),_0x394ea8,_0x177d23);})[_0x3d95ca('0x1f')](function(_0x3615e8){const _0x51bb42=_0x3d95ca;logger[_0x51bb42('0x9')](JSON[_0x51bb42('0x7')](_0x3615e8));});});},Migration[_0x31ff6d('0x1b')][_0x31ff6d('0x27')]=function(_0x211b74,_0x2ac71c,_0x1426db){const _0x3d76da=_0x31ff6d,_0x1e9e3f=this;this['sequence'][_0x3d76da('0x1a')](function(){const _0x55b6c3=_0x3d76da;return _0x1e9e3f['queryInterface'][_0x55b6c3('0x27')](_0x211b74,_0x2ac71c,_0x1426db)[_0x55b6c3('0x1e')](function(){const _0x624322=_0x55b6c3;logger[_0x624322('0x9')](_0x624322('0x29'),_0x2ac71c,_0x211b74);})[_0x55b6c3('0x1f')](function(_0x2a1215){const _0x30e1e4=_0x55b6c3;logger['info'](JSON[_0x30e1e4('0x7')](_0x2a1215));});});},Migration[_0x31ff6d('0x1b')]['dropTable']=function(_0x518b2d){const _0x5a3bbb=_0x31ff6d,_0x2df680=this;this[_0x5a3bbb('0x15')][_0x5a3bbb('0x1a')](function(){const _0x346468=_0x5a3bbb;return _0x2df680[_0x346468('0x25')][_0x346468('0x2')](_0x518b2d,{'force':!![]})['then'](function(){const _0x5e1e8a=_0x346468;logger['info'](_0x5e1e8a('0x2c'),_0x518b2d);})[_0x346468('0x1f')](function(_0x35b31d){const _0x3c3003=_0x346468;logger[_0x3c3003('0x9')](JSON[_0x3c3003('0x7')](_0x35b31d));});});},Migration[_0x31ff6d('0x1b')]['addIndex']=function(_0x33a92d,_0x2d677f,_0x3036da){const _0x11cdda=_0x31ff6d,_0x3fca43=this;this[_0x11cdda('0x15')][_0x11cdda('0x1a')](function(){const _0x258e8b=_0x11cdda;return _0x3fca43[_0x258e8b('0x25')][_0x258e8b('0xc')](_0x33a92d,_0x2d677f,{'indexName':_0x3036da})[_0x258e8b('0x1e')](function(){const _0x6e1970=_0x258e8b;logger[_0x6e1970('0x9')](_0x6e1970('0x20'),_0x33a92d,_0x2d677f[_0x6e1970('0x24')](','),_0x3036da);})[_0x258e8b('0x1f')](function(_0x58c133){const _0xdd33d1=_0x258e8b;logger['info'](JSON[_0xdd33d1('0x7')](_0x58c133));});});},Migration['prototype'][_0x31ff6d('0x1')]=function(_0x2884aa){const _0x331f2a=_0x31ff6d,_0x1f1a98=this;this[_0x331f2a('0x15')]['enqueue'](function(){const _0x18c318=_0x331f2a;return _0x1f1a98[_0x18c318('0x25')][_0x18c318('0x11')][_0x18c318('0x1')](_0x2884aa)[_0x18c318('0x1e')](function(){const _0x48d441=_0x18c318;logger[_0x48d441('0x9')]('query\x20%s',_0x2884aa);})[_0x18c318('0x1f')](function(_0x16166b){const _0x1f309e=_0x18c318;logger[_0x1f309e('0x9')](JSON[_0x1f309e('0x7')](_0x16166b));});});},Migration[_0x31ff6d('0x1b')]['removeColumn']=function(_0x5bb98e,_0xbfc3b7){const _0x4ccfb0=_0x31ff6d,_0x53247d=this;this['sequence'][_0x4ccfb0('0x1a')](function(){const _0x583248=_0x4ccfb0;return _0x53247d['queryInterface'][_0x583248('0x4')](_0x5bb98e,_0xbfc3b7)[_0x583248('0x1e')](function(){const _0x59350d=_0x583248;logger[_0x59350d('0x9')](_0x59350d('0xa'),_0xbfc3b7,_0x5bb98e);})['catch'](function(_0x2570d5){const _0x31d541=_0x583248;logger[_0x31d541('0x9')](util[_0x31d541('0x3')](_0x2570d5,{'showHidden':![],'depth':null}));});});},Migration[_0x31ff6d('0x1b')]['renameColumn']=function(_0x12dcc0,_0x9a8d1e,_0x75d186){const _0x25c1eb=_0x31ff6d,_0x21912b=this;this[_0x25c1eb('0x15')][_0x25c1eb('0x1a')](function(){const _0x4b03f1=_0x25c1eb;return _0x21912b[_0x4b03f1('0x25')][_0x4b03f1('0x0')](_0x12dcc0,_0x9a8d1e,_0x75d186)['then'](function(){const _0x448702=_0x4b03f1;logger[_0x448702('0x9')](_0x448702('0x1c'),_0x9a8d1e,_0x75d186,_0x12dcc0);})[_0x4b03f1('0x1f')](function(_0x702998){const _0x349227=_0x4b03f1;logger[_0x349227('0x9')](util[_0x349227('0x3')](_0x702998,{'showHidden':![],'depth':null}));});});},Migration[_0x31ff6d('0x1b')][_0x31ff6d('0x18')]=function(_0x100816){this['sequence']['enqueue'](function(){return _0x100816();});},module['exports']={'up':function(_0x1d90af,_0x18c9c9){return new Promise(function(_0x1755c5){const _0x22aea1=a942_0x3e20,_0x5ef63b=new Migration(_0x1d90af);_0x5ef63b[_0x22aea1('0x27')](_0x22aea1('0x26'),_0x22aea1('0xb'),{'type':_0x18c9c9['STRING'],'defaultValue':_0x22aea1('0x1d')}),_0x5ef63b[_0x22aea1('0x27')](_0x22aea1('0x26'),'defaultTitle',{'type':_0x18c9c9[_0x22aea1('0x21')]}),_0x5ef63b[_0x22aea1('0x27')](_0x22aea1('0x26'),_0x22aea1('0x2b'),{'type':_0x18c9c9['TEXT']}),_0x5ef63b[_0x22aea1('0x27')](_0x22aea1('0x26'),'showCustomerAvatar',{'type':_0x18c9c9[_0x22aea1('0x2d')],'defaultValue':![]}),_0x5ef63b[_0x22aea1('0x27')]('chat_applications',_0x22aea1('0xf'),{'type':_0x18c9c9[_0x22aea1('0xd')]}),_0x5ef63b[_0x22aea1('0x1')]('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'),_0x5ef63b[_0x22aea1('0x27')](_0x22aea1('0x17'),'TagId',{'type':_0x18c9c9[_0x22aea1('0xd')]}),_0x5ef63b[_0x22aea1('0x1')]('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'),_0x5ef63b['addColumn'](_0x22aea1('0x13'),_0x22aea1('0xf'),{'type':_0x18c9c9['INTEGER']}),_0x5ef63b['query'](_0x22aea1('0x5')),_0x5ef63b[_0x22aea1('0x27')](_0x22aea1('0x22'),_0x22aea1('0xf'),{'type':_0x18c9c9[_0x22aea1('0xd')]}),_0x5ef63b[_0x22aea1('0x1')](_0x22aea1('0xe')),_0x5ef63b['addColumn'](_0x22aea1('0x2e'),_0x22aea1('0xf'),{'type':_0x18c9c9[_0x22aea1('0xd')]}),_0x5ef63b[_0x22aea1('0x1')]('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'),_0x5ef63b[_0x22aea1('0x1')](_0x22aea1('0x19')),_0x5ef63b[_0x22aea1('0x27')]('openchannel_accounts','token',{'type':_0x18c9c9[_0x22aea1('0x21')]}),_0x5ef63b['addColumn'](_0x22aea1('0x2a'),_0x22aea1('0x14'),{'type':_0x18c9c9[_0x22aea1('0x21')],'allowNull':![],'defaultValue':''}),_0x5ef63b['changeColumn'](_0x22aea1('0x12'),'title',{'type':_0x18c9c9[_0x22aea1('0x21')],'allowNull':![]}),_0x5ef63b['final'](_0x1755c5);});},'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 a8acd3c..b7604c5 100644 --- a/server/migrations/2.0.64.js +++ b/server/migrations/2.0.64.js @@ -1 +1 @@ -const a943_0x4feb=['query','then','dropTable','removeColumn','Removed\x20column\x20%s\x20from\x20%s','report_call','enqueue','addIndex\x20%s\x20%s\x20%s','BOOLEAN','lastdata','analytics_report_fields','stringify','inspect','TEXT','STRING','phoneBarEnableVideoRecording','exports','util','Added\x20column\x20%s\x20to\x20%s','addIndex','migration','sequence','query\x20%s','field','finally','users','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','final','customerAlias','addColumn','removeIndex','changeColumn','prototype','table\x20dropped\x20%s','queryInterface','chat_websites','catch','renameColumn','info'];(function(_0x13930a,_0x4feb8d){const _0x52b356=function(_0x2d41a2){while(--_0x2d41a2){_0x13930a['push'](_0x13930a['shift']());}};_0x52b356(++_0x4feb8d);}(a943_0x4feb,0x8d));const a943_0x52b3=function(_0x13930a,_0x4feb8d){_0x13930a=_0x13930a-0x0;let _0x52b356=a943_0x4feb[_0x13930a];return _0x52b356;};const _0x55a22d=a943_0x52b3;'use strict';const util=require(_0x55a22d('0x28')),logger=require('../config/logger')(_0x55a22d('0x2')),Sequence=function(){};Sequence[_0x55a22d('0x10')][_0x55a22d('0x1d')]=function(_0x2d41a2){const _0x3ba8bd=_0x55a22d;this[_0x3ba8bd('0xa')]=this['tail']?this[_0x3ba8bd('0xa')][_0x3ba8bd('0x6')](_0x2d41a2):_0x2d41a2();};const Migration=function(_0x422f25){this['queryInterface']=_0x422f25,this['sequence']=new Sequence();};Migration[_0x55a22d('0x10')]['changeColumn']=function(_0x38cd28,_0x475f92,_0x426c6e){const _0x1c1d99=_0x55a22d,_0x29db8e=this;this[_0x1c1d99('0x3')][_0x1c1d99('0x1d')](function(){const _0x69a82e=_0x1c1d99;return _0x29db8e[_0x69a82e('0x12')][_0x69a82e('0xf')](_0x38cd28,_0x475f92,_0x426c6e)[_0x69a82e('0x18')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x475f92,_0x38cd28);})[_0x69a82e('0x14')](function(_0x2487d2){const _0x549184=_0x69a82e;logger['info'](JSON[_0x549184('0x22')](_0x2487d2));});});},Migration['prototype'][_0x55a22d('0xd')]=function(_0x71fb8b,_0x5634c9,_0x22aaa2){const _0x4bdeb5=_0x55a22d,_0x50137b=this;this[_0x4bdeb5('0x3')][_0x4bdeb5('0x1d')](function(){const _0x5e8ff4=_0x4bdeb5;return _0x50137b[_0x5e8ff4('0x12')][_0x5e8ff4('0xd')](_0x71fb8b,_0x5634c9,_0x22aaa2)[_0x5e8ff4('0x18')](function(){const _0x2d3320=_0x5e8ff4;logger[_0x2d3320('0x16')](_0x2d3320('0x0'),_0x5634c9,_0x71fb8b);})['catch'](function(_0x576390){const _0x4bed18=_0x5e8ff4;logger[_0x4bed18('0x16')](JSON[_0x4bed18('0x22')](_0x576390));});});},Migration['prototype'][_0x55a22d('0x19')]=function(_0x11f194){const _0x31d6fa=_0x55a22d,_0x51428c=this;this[_0x31d6fa('0x3')][_0x31d6fa('0x1d')](function(){const _0x3ba4eb=_0x31d6fa;return _0x51428c['queryInterface']['dropTable'](_0x11f194,{'force':!![]})[_0x3ba4eb('0x18')](function(){const _0x4bfccc=_0x3ba4eb;logger[_0x4bfccc('0x16')](_0x4bfccc('0x11'),_0x11f194);})[_0x3ba4eb('0x14')](function(_0x188d2d){const _0x11a703=_0x3ba4eb;logger['info'](JSON[_0x11a703('0x22')](_0x188d2d));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0x1')]=function(_0x10cd4d,_0x12a4fe,_0x349f48){const _0x35f4d2=_0x55a22d,_0x3fa5d9=this;this['sequence'][_0x35f4d2('0x1d')](function(){const _0x5b00a1=_0x35f4d2;return _0x3fa5d9['queryInterface'][_0x5b00a1('0x1')](_0x10cd4d,_0x12a4fe,{'indexName':_0x349f48})[_0x5b00a1('0x18')](function(){const _0x4f814f=_0x5b00a1;logger[_0x4f814f('0x16')](_0x4f814f('0x1e'),_0x10cd4d,_0x12a4fe['join'](','),_0x349f48);})[_0x5b00a1('0x14')](function(_0x4c11cb){const _0xfcc2a9=_0x5b00a1;logger[_0xfcc2a9('0x16')](JSON[_0xfcc2a9('0x22')](_0x4c11cb));});});},Migration['prototype'][_0x55a22d('0xe')]=function(_0x43be28,_0x1dd0fd){const _0x2619ab=_0x55a22d,_0x3a5f0d=this;this[_0x2619ab('0x3')][_0x2619ab('0x1d')](function(){const _0x125e8c=_0x2619ab;return _0x3a5f0d[_0x125e8c('0x12')][_0x125e8c('0xe')](_0x43be28,_0x1dd0fd)[_0x125e8c('0x18')](function(){const _0x443ece=_0x125e8c;logger[_0x443ece('0x16')]('removeIndex\x20%s\x20%s',_0x43be28,_0x1dd0fd);})[_0x125e8c('0x14')](function(_0x56b0df){const _0x5ea06f=_0x125e8c;logger[_0x5ea06f('0x16')](JSON[_0x5ea06f('0x22')](_0x56b0df));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0x17')]=function(_0x1b3622){const _0x191002=_0x55a22d,_0x2837fc=this;this[_0x191002('0x3')][_0x191002('0x1d')](function(){const _0xf33cb6=_0x191002;return _0x2837fc[_0xf33cb6('0x12')][_0xf33cb6('0x8')][_0xf33cb6('0x17')](_0x1b3622)[_0xf33cb6('0x18')](function(){const _0x4f5b64=_0xf33cb6;logger[_0x4f5b64('0x16')](_0x4f5b64('0x4'),_0x1b3622);})['catch'](function(_0x285f76){const _0x57e598=_0xf33cb6;logger['info'](JSON[_0x57e598('0x22')](_0x285f76));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0x1a')]=function(_0x46e587,_0x11649e){const _0x1a1752=_0x55a22d,_0xfe410a=this;this[_0x1a1752('0x3')][_0x1a1752('0x1d')](function(){const _0x7a790a=_0x1a1752;return _0xfe410a[_0x7a790a('0x12')]['removeColumn'](_0x46e587,_0x11649e)[_0x7a790a('0x18')](function(){const _0x1fb79b=_0x7a790a;logger[_0x1fb79b('0x16')](_0x1fb79b('0x1b'),_0x11649e,_0x46e587);})[_0x7a790a('0x14')](function(_0x33ded3){const _0x1fd7a5=_0x7a790a;logger[_0x1fd7a5('0x16')](util['inspect'](_0x33ded3,{'showHidden':![],'depth':null}));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0x15')]=function(_0x138678,_0x41d90c,_0x5dba49){const _0x190fcf=_0x55a22d,_0x78f45f=this;this[_0x190fcf('0x3')][_0x190fcf('0x1d')](function(){const _0x4682dc=_0x190fcf;return _0x78f45f[_0x4682dc('0x12')][_0x4682dc('0x15')](_0x138678,_0x41d90c,_0x5dba49)[_0x4682dc('0x18')](function(){const _0x40c880=_0x4682dc;logger[_0x40c880('0x16')](_0x40c880('0x9'),_0x41d90c,_0x5dba49,_0x138678);})['catch'](function(_0x1c3061){const _0x333ac8=_0x4682dc;logger['info'](util[_0x333ac8('0x23')](_0x1c3061,{'showHidden':![],'depth':null}));});});},Migration[_0x55a22d('0x10')][_0x55a22d('0xb')]=function(_0x5631de){const _0x251275=_0x55a22d;this[_0x251275('0x3')][_0x251275('0x1d')](function(){return _0x5631de();});},module[_0x55a22d('0x27')]={'up':function(_0x44ba9b,_0x4dfe57){return new Promise(function(_0x4aa6e4){const _0x22eedc=a943_0x52b3,_0x33eca9=new Migration(_0x44ba9b);_0x33eca9['addColumn'](_0x22eedc('0x7'),_0x22eedc('0x26'),{'type':_0x4dfe57[_0x22eedc('0x1f')],'defaultValue':![]}),_0x33eca9['changeColumn']('report_call',_0x22eedc('0x20'),{'type':_0x4dfe57[_0x22eedc('0x24')]}),_0x33eca9[_0x22eedc('0xd')](_0x22eedc('0x13'),_0x22eedc('0xc'),{'type':_0x4dfe57[_0x22eedc('0x25')],'defaultValue':'Me'}),_0x33eca9['changeColumn'](_0x22eedc('0x21'),_0x22eedc('0x5'),{'type':_0x4dfe57[_0x22eedc('0x24')],'allowNull':![]}),_0x33eca9[_0x22eedc('0xe')](_0x22eedc('0x1c'),'uniqueid'),_0x33eca9[_0x22eedc('0xb')](_0x4aa6e4);});},'down':function(){}}; \ No newline at end of file +const a943_0x36c0=['prototype','queryInterface','lastdata','tail','final','exports','catch','report_call','sequelize','enqueue','STRING','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','users','uniqueid','changeColumn','../config/logger','sequence','TEXT','info','stringify','field','dropTable','removeIndex','addColumn','addIndex','then','chat_websites','inspect','renameColumn','util','query\x20%s','addIndex\x20%s\x20%s\x20%s','query','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','finally','analytics_report_fields','join'];(function(_0x365892,_0x36c00b){const _0x3499cb=function(_0x42d043){while(--_0x42d043){_0x365892['push'](_0x365892['shift']());}};_0x3499cb(++_0x36c00b);}(a943_0x36c0,0x8c));const a943_0x3499=function(_0x365892,_0x36c00b){_0x365892=_0x365892-0x0;let _0x3499cb=a943_0x36c0[_0x365892];return _0x3499cb;};const _0x19880f=a943_0x3499;'use strict';const util=require(_0x19880f('0xc')),logger=require(_0x19880f('0x27'))('migration'),Sequence=function(){};Sequence[_0x19880f('0x18')][_0x19880f('0x21')]=function(_0x42d043){const _0x3126ad=_0x19880f;this[_0x3126ad('0x1b')]=this[_0x3126ad('0x1b')]?this[_0x3126ad('0x1b')][_0x3126ad('0x15')](_0x42d043):_0x42d043();};const Migration=function(_0x4bd376){this['queryInterface']=_0x4bd376,this['sequence']=new Sequence();};Migration[_0x19880f('0x18')]['changeColumn']=function(_0x27c5e1,_0xae59ad,_0x17e30c){const _0x1a47ab=_0x19880f,_0xb1b985=this;this[_0x1a47ab('0x28')][_0x1a47ab('0x21')](function(){const _0xf36c18=_0x1a47ab;return _0xb1b985[_0xf36c18('0x19')][_0xf36c18('0x26')](_0x27c5e1,_0xae59ad,_0x17e30c)[_0xf36c18('0x8')](function(){const _0x1e377c=_0xf36c18;logger[_0x1e377c('0x1')](_0x1e377c('0x13'),_0xae59ad,_0x27c5e1);})['catch'](function(_0x53d1bb){const _0x37dc84=_0xf36c18;logger[_0x37dc84('0x1')](JSON['stringify'](_0x53d1bb));});});},Migration['prototype'][_0x19880f('0x6')]=function(_0x109828,_0x57e45a,_0x476641){const _0x1d32a2=_0x19880f,_0x385822=this;this[_0x1d32a2('0x28')]['enqueue'](function(){const _0x135c9c=_0x1d32a2;return _0x385822[_0x135c9c('0x19')]['addColumn'](_0x109828,_0x57e45a,_0x476641)['then'](function(){const _0xec5202=_0x135c9c;logger[_0xec5202('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0x57e45a,_0x109828);})[_0x135c9c('0x1e')](function(_0x4eb004){const _0x36698d=_0x135c9c;logger['info'](JSON[_0x36698d('0x2')](_0x4eb004));});});},Migration[_0x19880f('0x18')]['dropTable']=function(_0x50d2aa){const _0x4aab18=_0x19880f,_0x500c6f=this;this[_0x4aab18('0x28')][_0x4aab18('0x21')](function(){const _0x2f972c=_0x4aab18;return _0x500c6f[_0x2f972c('0x19')][_0x2f972c('0x4')](_0x50d2aa,{'force':!![]})[_0x2f972c('0x8')](function(){const _0x2c1d4e=_0x2f972c;logger[_0x2c1d4e('0x1')](_0x2c1d4e('0x10'),_0x50d2aa);})[_0x2f972c('0x1e')](function(_0x1a8b1c){const _0x3c4b3a=_0x2f972c;logger[_0x3c4b3a('0x1')](JSON[_0x3c4b3a('0x2')](_0x1a8b1c));});});},Migration[_0x19880f('0x18')][_0x19880f('0x7')]=function(_0x10beb1,_0x3ab3e5,_0x1b535c){const _0x2bdc64=_0x19880f,_0xe4f9a0=this;this[_0x2bdc64('0x28')]['enqueue'](function(){const _0x4bbf50=_0x2bdc64;return _0xe4f9a0[_0x4bbf50('0x19')][_0x4bbf50('0x7')](_0x10beb1,_0x3ab3e5,{'indexName':_0x1b535c})[_0x4bbf50('0x8')](function(){const _0x71d498=_0x4bbf50;logger['info'](_0x71d498('0xe'),_0x10beb1,_0x3ab3e5[_0x71d498('0x17')](','),_0x1b535c);})[_0x4bbf50('0x1e')](function(_0x3fae0e){const _0x2f83ff=_0x4bbf50;logger[_0x2f83ff('0x1')](JSON[_0x2f83ff('0x2')](_0x3fae0e));});});},Migration['prototype'][_0x19880f('0x5')]=function(_0x25ad9a,_0x5e89c3){const _0x442b8c=_0x19880f,_0x40323a=this;this[_0x442b8c('0x28')][_0x442b8c('0x21')](function(){const _0xcf2de1=_0x442b8c;return _0x40323a[_0xcf2de1('0x19')][_0xcf2de1('0x5')](_0x25ad9a,_0x5e89c3)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x25ad9a,_0x5e89c3);})['catch'](function(_0xcc7958){const _0x2c4eb8=_0xcf2de1;logger[_0x2c4eb8('0x1')](JSON['stringify'](_0xcc7958));});});},Migration[_0x19880f('0x18')]['query']=function(_0x531eb3){const _0xfe8e96=_0x19880f,_0x36cf36=this;this[_0xfe8e96('0x28')][_0xfe8e96('0x21')](function(){const _0x12997d=_0xfe8e96;return _0x36cf36['queryInterface'][_0x12997d('0x20')][_0x12997d('0xf')](_0x531eb3)[_0x12997d('0x8')](function(){const _0x5a12a4=_0x12997d;logger[_0x5a12a4('0x1')](_0x5a12a4('0xd'),_0x531eb3);})[_0x12997d('0x1e')](function(_0x5c7e3b){logger['info'](JSON['stringify'](_0x5c7e3b));});});},Migration['prototype'][_0x19880f('0x12')]=function(_0x140aba,_0x3ff832){const _0x41e204=_0x19880f,_0x276404=this;this['sequence'][_0x41e204('0x21')](function(){const _0x2a02b2=_0x41e204;return _0x276404[_0x2a02b2('0x19')][_0x2a02b2('0x12')](_0x140aba,_0x3ff832)['then'](function(){const _0x22ebb0=_0x2a02b2;logger[_0x22ebb0('0x1')](_0x22ebb0('0x11'),_0x3ff832,_0x140aba);})[_0x2a02b2('0x1e')](function(_0x42a369){const _0x12091a=_0x2a02b2;logger[_0x12091a('0x1')](util['inspect'](_0x42a369,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x34a102,_0x24dfe2,_0x2b2efb){const _0x10702b=_0x19880f,_0x3d8f9e=this;this[_0x10702b('0x28')][_0x10702b('0x21')](function(){const _0x291627=_0x10702b;return _0x3d8f9e['queryInterface'][_0x291627('0xb')](_0x34a102,_0x24dfe2,_0x2b2efb)[_0x291627('0x8')](function(){const _0x35035d=_0x291627;logger[_0x35035d('0x1')](_0x35035d('0x23'),_0x24dfe2,_0x2b2efb,_0x34a102);})[_0x291627('0x1e')](function(_0x5271d0){const _0x3ed375=_0x291627;logger[_0x3ed375('0x1')](util[_0x3ed375('0xa')](_0x5271d0,{'showHidden':![],'depth':null}));});});},Migration[_0x19880f('0x18')][_0x19880f('0x1c')]=function(_0x27b6f0){const _0x55edc2=_0x19880f;this[_0x55edc2('0x28')][_0x55edc2('0x21')](function(){return _0x27b6f0();});},module[_0x19880f('0x1d')]={'up':function(_0x6fd331,_0x3df0ee){return new Promise(function(_0x51052a){const _0x81951=a943_0x3499,_0xdc95a=new Migration(_0x6fd331);_0xdc95a[_0x81951('0x6')](_0x81951('0x24'),'phoneBarEnableVideoRecording',{'type':_0x3df0ee[_0x81951('0x14')],'defaultValue':![]}),_0xdc95a[_0x81951('0x26')](_0x81951('0x1f'),_0x81951('0x1a'),{'type':_0x3df0ee['TEXT']}),_0xdc95a['addColumn'](_0x81951('0x9'),'customerAlias',{'type':_0x3df0ee[_0x81951('0x22')],'defaultValue':'Me'}),_0xdc95a[_0x81951('0x26')](_0x81951('0x16'),_0x81951('0x3'),{'type':_0x3df0ee[_0x81951('0x0')],'allowNull':![]}),_0xdc95a[_0x81951('0x5')](_0x81951('0x1f'),_0x81951('0x25')),_0xdc95a[_0x81951('0x1c')](_0x51052a);});},'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 c85169d..7890549 100644 --- a/server/migrations/2.0.65.js +++ b/server/migrations/2.0.65.js @@ -1 +1 @@ -const a944_0x1299=['enqueue','sequelize','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','voice_queues','addColumn','INTEGER','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','Removed\x20column\x20%s\x20from\x20%s','query\x20%s','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','migration','tail','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)','query','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','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;','renameColumn','catch','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(8)','info','dialRandomLastDigitCallerIdNumber','final','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)','table\x20dropped\x20%s','prototype','util','stringify','campaigns','removeIndex\x20%s\x20%s','cm_contacts','sequence','addIndex\x20%s\x20%s\x20%s','changeColumn','finally','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)','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\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;','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)','then','queryInterface','inspect','removeIndex','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','dropTable','UNSIGNED','removeColumn','exports','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)'];(function(_0x387f4d,_0x1299a1){const _0x41f712=function(_0x2a30f9){while(--_0x2a30f9){_0x387f4d['push'](_0x387f4d['shift']());}};_0x41f712(++_0x1299a1);}(a944_0x1299,0x73));const a944_0x41f7=function(_0x387f4d,_0x1299a1){_0x387f4d=_0x387f4d-0x0;let _0x41f712=a944_0x1299[_0x387f4d];return _0x41f712;};const _0x65a3b=a944_0x41f7;'use strict';const util=require(_0x65a3b('0xf')),logger=require('../config/logger')(_0x65a3b('0x31')),Sequence=function(){};Sequence[_0x65a3b('0xe')][_0x65a3b('0x26')]=function(_0x2a30f9){const _0xe79642=_0x65a3b;this['tail']=this[_0xe79642('0x32')]?this[_0xe79642('0x32')][_0xe79642('0x17')](_0x2a30f9):_0x2a30f9();};const Migration=function(_0x22b7b6){const _0x23fa1c=_0x65a3b;this[_0x23fa1c('0x1d')]=_0x22b7b6,this[_0x23fa1c('0x14')]=new Sequence();};Migration[_0x65a3b('0xe')]['changeColumn']=function(_0x320eb3,_0x47ebde,_0x2e99cf){const _0x4104f8=_0x65a3b,_0x561e05=this;this['sequence'][_0x4104f8('0x26')](function(){const _0x273481=_0x4104f8;return _0x561e05[_0x273481('0x1d')][_0x273481('0x16')](_0x320eb3,_0x47ebde,_0x2e99cf)[_0x273481('0x1c')](function(){const _0x593ab8=_0x273481;logger[_0x593ab8('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x47ebde,_0x320eb3);})[_0x273481('0x6')](function(_0xa1113){const _0x1544a5=_0x273481;logger[_0x1544a5('0x9')](JSON[_0x1544a5('0x10')](_0xa1113));});});},Migration[_0x65a3b('0xe')][_0x65a3b('0x2b')]=function(_0x558eff,_0x16a1db,_0x3e2af8){const _0x51d6fa=_0x65a3b,_0x157c83=this;this[_0x51d6fa('0x14')][_0x51d6fa('0x26')](function(){const _0x36b9b3=_0x51d6fa;return _0x157c83['queryInterface'][_0x36b9b3('0x2b')](_0x558eff,_0x16a1db,_0x3e2af8)['then'](function(){const _0x72e89c=_0x36b9b3;logger[_0x72e89c('0x9')]('Added\x20column\x20%s\x20to\x20%s',_0x16a1db,_0x558eff);})['catch'](function(_0x2a0fab){const _0x2fabeb=_0x36b9b3;logger[_0x2fabeb('0x9')](JSON[_0x2fabeb('0x10')](_0x2a0fab));});});},Migration[_0x65a3b('0xe')][_0x65a3b('0x21')]=function(_0x5d61d1){const _0x48a693=this;this['sequence']['enqueue'](function(){const _0x279e59=a944_0x41f7;return _0x48a693[_0x279e59('0x1d')][_0x279e59('0x21')](_0x5d61d1,{'force':!![]})[_0x279e59('0x1c')](function(){const _0x46efc7=_0x279e59;logger[_0x46efc7('0x9')](_0x46efc7('0xd'),_0x5d61d1);})[_0x279e59('0x6')](function(_0x22d1f7){logger['info'](JSON['stringify'](_0x22d1f7));});});},Migration[_0x65a3b('0xe')]['addIndex']=function(_0x44a309,_0x936dbd,_0x1ae470){const _0x3927f8=_0x65a3b,_0x340cc6=this;this[_0x3927f8('0x14')][_0x3927f8('0x26')](function(){const _0x140672=_0x3927f8;return _0x340cc6[_0x140672('0x1d')]['addIndex'](_0x44a309,_0x936dbd,{'indexName':_0x1ae470})['then'](function(){const _0x5b646d=_0x140672;logger['info'](_0x5b646d('0x15'),_0x44a309,_0x936dbd['join'](','),_0x1ae470);})[_0x140672('0x6')](function(_0x128d83){const _0x306f1e=_0x140672;logger[_0x306f1e('0x9')](JSON['stringify'](_0x128d83));});});},Migration[_0x65a3b('0xe')][_0x65a3b('0x1f')]=function(_0x5cc480,_0x583081){const _0x32f59f=_0x65a3b,_0xfcec83=this;this['sequence'][_0x32f59f('0x26')](function(){const _0x4c867e=_0x32f59f;return _0xfcec83[_0x4c867e('0x1d')]['removeIndex'](_0x5cc480,_0x583081)[_0x4c867e('0x1c')](function(){const _0x3b5899=_0x4c867e;logger[_0x3b5899('0x9')](_0x3b5899('0x12'),_0x5cc480,_0x583081);})[_0x4c867e('0x6')](function(_0xb38c95){const _0x445b26=_0x4c867e;logger[_0x445b26('0x9')](JSON[_0x445b26('0x10')](_0xb38c95));});});},Migration[_0x65a3b('0xe')][_0x65a3b('0x1')]=function(_0x59a1d2){const _0x4fa1ba=_0x65a3b,_0x5ee5f4=this;this[_0x4fa1ba('0x14')][_0x4fa1ba('0x26')](function(){const _0x45cbf8=_0x4fa1ba;return _0x5ee5f4[_0x45cbf8('0x1d')][_0x45cbf8('0x27')]['query'](_0x59a1d2)[_0x45cbf8('0x1c')](function(){const _0x2979a7=_0x45cbf8;logger[_0x2979a7('0x9')](_0x2979a7('0x2f'),_0x59a1d2);})[_0x45cbf8('0x6')](function(_0xfd2dd4){const _0xf91d6d=_0x45cbf8;logger['info'](JSON[_0xf91d6d('0x10')](_0xfd2dd4));});});},Migration[_0x65a3b('0xe')][_0x65a3b('0x23')]=function(_0x43dbc8,_0x2a3c41){const _0x42b6b5=_0x65a3b,_0x225282=this;this[_0x42b6b5('0x14')][_0x42b6b5('0x26')](function(){const _0x536355=_0x42b6b5;return _0x225282[_0x536355('0x1d')]['removeColumn'](_0x43dbc8,_0x2a3c41)[_0x536355('0x1c')](function(){const _0x11243f=_0x536355;logger[_0x11243f('0x9')](_0x11243f('0x2e'),_0x2a3c41,_0x43dbc8);})[_0x536355('0x6')](function(_0x12a482){const _0x1eb1b4=_0x536355;logger[_0x1eb1b4('0x9')](util[_0x1eb1b4('0x1e')](_0x12a482,{'showHidden':![],'depth':null}));});});},Migration[_0x65a3b('0xe')]['renameColumn']=function(_0x406d70,_0x677879,_0x349c7d){const _0x23d838=_0x65a3b,_0x4372ee=this;this[_0x23d838('0x14')]['enqueue'](function(){const _0x58f402=_0x23d838;return _0x4372ee[_0x58f402('0x1d')][_0x58f402('0x5')](_0x406d70,_0x677879,_0x349c7d)[_0x58f402('0x1c')](function(){const _0x30b5cf=_0x58f402;logger[_0x30b5cf('0x9')](_0x30b5cf('0x29'),_0x677879,_0x349c7d,_0x406d70);})[_0x58f402('0x6')](function(_0x273a18){const _0x9dbec7=_0x58f402;logger['info'](util[_0x9dbec7('0x1e')](_0x273a18,{'showHidden':![],'depth':null}));});});},Migration[_0x65a3b('0xe')][_0x65a3b('0xb')]=function(_0xeb4418){const _0x3b22ea=_0x65a3b;this[_0x3b22ea('0x14')][_0x3b22ea('0x26')](function(){return _0xeb4418();});},module[_0x65a3b('0x24')]={'up':function(_0x47f4a8,_0x3737db){return new Promise(function(_0x362a39){const _0x210eac=a944_0x41f7,_0x27b72f=new Migration(_0x47f4a8);_0x27b72f['addColumn'](_0x210eac('0x2a'),_0x210eac('0xa'),{'type':_0x3737db[_0x210eac('0x2c')](0x3)[_0x210eac('0x22')],'defaultValue':0x0}),_0x27b72f[_0x210eac('0x2b')](_0x210eac('0x2a'),'dialCutDigit',{'type':_0x3737db[_0x210eac('0x2c')](0x3)[_0x210eac('0x22')],'defaultValue':0x0}),_0x27b72f[_0x210eac('0x2b')](_0x210eac('0x11'),_0x210eac('0xa'),{'type':_0x3737db[_0x210eac('0x2c')](0x3)[_0x210eac('0x22')],'defaultValue':0x0}),_0x27b72f['addColumn'](_0x210eac('0x11'),'dialCutDigit',{'type':_0x3737db[_0x210eac('0x2c')](0x3)['UNSIGNED'],'defaultValue':0x0}),_0x27b72f[_0x210eac('0x2b')](_0x210eac('0x13'),'teams',{'type':_0x3737db['STRING']}),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x7')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x1a')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x3')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x20')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0xc')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x28')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x1b')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x0')),_0x27b72f['query'](_0x210eac('0x30')),_0x27b72f['query'](_0x210eac('0x2d')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x25')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x8')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x18')),_0x27b72f['query'](_0x210eac('0x2')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x4')),_0x27b72f[_0x210eac('0x1')](_0x210eac('0x19')),_0x27b72f[_0x210eac('0xb')](_0x362a39);});},'down':function(){}}; \ No newline at end of file +const a944_0xdc80=['voice_queues','final','addColumn','info','queryInterface','STRING','removeIndex','inspect','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(0)','dialRandomLastDigitCallerIdNumber','prototype','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(9)','join','exports','then','../config/logger','renameColumn','addIndex\x20%s\x20%s\x20%s','util','table\x20dropped\x20%s','CREATE\x20TABLE\x20ints(i\x20int(11)\x20DEFAULT\x20NULL,UNIQUE\x20KEY\x20i_UNIQUE\x20(i))\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(2)','query','addIndex','Added\x20column\x20%s\x20to\x20%s','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(6)','changeColumn','dialCutDigit','teams','query\x20%s','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;','enqueue','UNSIGNED','tail','finally','INSERT\x20INTO\x20ints(i)\x20VALUES\x20(5)','campaigns','sequelize','dropTable','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;','catch','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;','ALTER\x20TABLE\x20tmp_tools_tags\x20ADD\x20COLUMN\x20contact_id\x20INT\x20NULL','stringify','INTEGER','cm_contacts','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x36bf72,_0xdc80f3){const _0x547749=function(_0x460f29){while(--_0x460f29){_0x36bf72['push'](_0x36bf72['shift']());}};_0x547749(++_0xdc80f3);}(a944_0xdc80,0xf6));const a944_0x5477=function(_0x36bf72,_0xdc80f3){_0x36bf72=_0x36bf72-0x0;let _0x547749=a944_0xdc80[_0x36bf72];return _0x547749;};const _0x10582e=a944_0x5477;'use strict';const util=require(_0x10582e('0x16')),logger=require(_0x10582e('0x13'))('migration'),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x460f29){const _0xf33c88=_0x10582e;this[_0xf33c88('0x27')]=this['tail']?this[_0xf33c88('0x27')][_0xf33c88('0x28')](_0x460f29):_0x460f29();};const Migration=function(_0x5283d8){const _0x28ede1=_0x10582e;this[_0x28ede1('0x8')]=_0x5283d8,this[_0x28ede1('0x2')]=new Sequence();};Migration[_0x10582e('0xe')][_0x10582e('0x20')]=function(_0x1ce95d,_0x9b805f,_0x121548){const _0x2bcf56=_0x10582e,_0x1a9ac0=this;this[_0x2bcf56('0x2')][_0x2bcf56('0x25')](function(){const _0x9316bb=_0x2bcf56;return _0x1a9ac0[_0x9316bb('0x8')][_0x9316bb('0x20')](_0x1ce95d,_0x9b805f,_0x121548)[_0x9316bb('0x12')](function(){const _0x309d5e=_0x9316bb;logger[_0x309d5e('0x7')](_0x309d5e('0x3'),_0x9b805f,_0x1ce95d);})[_0x9316bb('0x2e')](function(_0x588888){const _0x2cc3c5=_0x9316bb;logger[_0x2cc3c5('0x7')](JSON['stringify'](_0x588888));});});},Migration[_0x10582e('0xe')][_0x10582e('0x6')]=function(_0x358afa,_0x5092f7,_0x414899){const _0x1b6b2d=_0x10582e,_0x9a01db=this;this[_0x1b6b2d('0x2')][_0x1b6b2d('0x25')](function(){const _0x13fca2=_0x1b6b2d;return _0x9a01db[_0x13fca2('0x8')][_0x13fca2('0x6')](_0x358afa,_0x5092f7,_0x414899)[_0x13fca2('0x12')](function(){const _0x4f3d94=_0x13fca2;logger['info'](_0x4f3d94('0x1e'),_0x5092f7,_0x358afa);})[_0x13fca2('0x2e')](function(_0x2dd817){const _0x22269a=_0x13fca2;logger[_0x22269a('0x7')](JSON[_0x22269a('0x31')](_0x2dd817));});});},Migration[_0x10582e('0xe')][_0x10582e('0x2c')]=function(_0x4f3a23){const _0x4f5e3d=this;this['sequence']['enqueue'](function(){const _0x31b410=a944_0x5477;return _0x4f5e3d[_0x31b410('0x8')]['dropTable'](_0x4f3a23,{'force':!![]})['then'](function(){const _0x51267e=_0x31b410;logger[_0x51267e('0x7')](_0x51267e('0x17'),_0x4f3a23);})[_0x31b410('0x2e')](function(_0x359495){const _0x531aa1=_0x31b410;logger[_0x531aa1('0x7')](JSON[_0x531aa1('0x31')](_0x359495));});});},Migration['prototype'][_0x10582e('0x1d')]=function(_0x2d1f68,_0xd0a35,_0x3caab7){const _0x5c80bf=_0x10582e,_0x58e9a6=this;this[_0x5c80bf('0x2')][_0x5c80bf('0x25')](function(){const _0x575c3f=_0x5c80bf;return _0x58e9a6['queryInterface']['addIndex'](_0x2d1f68,_0xd0a35,{'indexName':_0x3caab7})[_0x575c3f('0x12')](function(){const _0x447bb0=_0x575c3f;logger[_0x447bb0('0x7')](_0x447bb0('0x15'),_0x2d1f68,_0xd0a35[_0x447bb0('0x10')](','),_0x3caab7);})[_0x575c3f('0x2e')](function(_0x5aaae2){const _0x1efe9d=_0x575c3f;logger['info'](JSON[_0x1efe9d('0x31')](_0x5aaae2));});});},Migration[_0x10582e('0xe')][_0x10582e('0xa')]=function(_0x2c0f56,_0x3a68a8){const _0x2a3ae6=_0x10582e,_0x2020e3=this;this[_0x2a3ae6('0x2')][_0x2a3ae6('0x25')](function(){const _0x9868b0=_0x2a3ae6;return _0x2020e3[_0x9868b0('0x8')][_0x9868b0('0xa')](_0x2c0f56,_0x3a68a8)[_0x9868b0('0x12')](function(){const _0x455ea2=_0x9868b0;logger[_0x455ea2('0x7')](_0x455ea2('0x1a'),_0x2c0f56,_0x3a68a8);})['catch'](function(_0x3dd895){const _0x9693f0=_0x9868b0;logger[_0x9693f0('0x7')](JSON[_0x9693f0('0x31')](_0x3dd895));});});},Migration[_0x10582e('0xe')][_0x10582e('0x1c')]=function(_0x4389e2){const _0x2e9fde=_0x10582e,_0x371ded=this;this[_0x2e9fde('0x2')][_0x2e9fde('0x25')](function(){const _0x1ff608=_0x2e9fde;return _0x371ded[_0x1ff608('0x8')][_0x1ff608('0x2b')]['query'](_0x4389e2)[_0x1ff608('0x12')](function(){const _0x332391=_0x1ff608;logger[_0x332391('0x7')](_0x332391('0x23'),_0x4389e2);})[_0x1ff608('0x2e')](function(_0x25ae90){const _0x2422bc=_0x1ff608;logger[_0x2422bc('0x7')](JSON[_0x2422bc('0x31')](_0x25ae90));});});},Migration[_0x10582e('0xe')]['removeColumn']=function(_0xde2bcd,_0x36299d){const _0x481e7a=_0x10582e,_0x51f041=this;this[_0x481e7a('0x2')]['enqueue'](function(){const _0x41ab32=_0x481e7a;return _0x51f041[_0x41ab32('0x8')]['removeColumn'](_0xde2bcd,_0x36299d)[_0x41ab32('0x12')](function(){const _0x87a064=_0x41ab32;logger[_0x87a064('0x7')]('Removed\x20column\x20%s\x20from\x20%s',_0x36299d,_0xde2bcd);})['catch'](function(_0x5d3228){const _0x21a93b=_0x41ab32;logger['info'](util[_0x21a93b('0xb')](_0x5d3228,{'showHidden':![],'depth':null}));});});},Migration[_0x10582e('0xe')][_0x10582e('0x14')]=function(_0x1b29f3,_0x3f9abf,_0x52b349){const _0x5b5591=_0x10582e,_0x2a6534=this;this['sequence'][_0x5b5591('0x25')](function(){const _0x12e884=_0x5b5591;return _0x2a6534[_0x12e884('0x8')][_0x12e884('0x14')](_0x1b29f3,_0x3f9abf,_0x52b349)[_0x12e884('0x12')](function(){const _0x5c0ec0=_0x12e884;logger['info'](_0x5c0ec0('0x19'),_0x3f9abf,_0x52b349,_0x1b29f3);})[_0x12e884('0x2e')](function(_0x34adfd){const _0x1d0349=_0x12e884;logger['info'](util[_0x1d0349('0xb')](_0x34adfd,{'showHidden':![],'depth':null}));});});},Migration[_0x10582e('0xe')][_0x10582e('0x5')]=function(_0x83bce2){this['sequence']['enqueue'](function(){return _0x83bce2();});},module[_0x10582e('0x11')]={'up':function(_0xc19afe,_0x4b603d){return new Promise(function(_0x55514c){const _0x399bad=a944_0x5477,_0xb6dfd7=new Migration(_0xc19afe);_0xb6dfd7[_0x399bad('0x6')](_0x399bad('0x4'),'dialRandomLastDigitCallerIdNumber',{'type':_0x4b603d[_0x399bad('0x0')](0x3)[_0x399bad('0x26')],'defaultValue':0x0}),_0xb6dfd7[_0x399bad('0x6')](_0x399bad('0x4'),_0x399bad('0x21'),{'type':_0x4b603d[_0x399bad('0x0')](0x3)[_0x399bad('0x26')],'defaultValue':0x0}),_0xb6dfd7[_0x399bad('0x6')](_0x399bad('0x2a'),_0x399bad('0xd'),{'type':_0x4b603d['INTEGER'](0x3)['UNSIGNED'],'defaultValue':0x0}),_0xb6dfd7[_0x399bad('0x6')](_0x399bad('0x2a'),'dialCutDigit',{'type':_0x4b603d[_0x399bad('0x0')](0x3)[_0x399bad('0x26')],'defaultValue':0x0}),_0xb6dfd7[_0x399bad('0x6')](_0x399bad('0x1'),_0x399bad('0x22'),{'type':_0x4b603d[_0x399bad('0x9')]}),_0xb6dfd7['query'](_0x399bad('0x2d')),_0xb6dfd7['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;'),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0x18')),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0xc')),_0xb6dfd7[_0x399bad('0x1c')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(1)'),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0x1b')),_0xb6dfd7[_0x399bad('0x1c')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(3)'),_0xb6dfd7['query']('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(4)'),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0x29')),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0x1f')),_0xb6dfd7[_0x399bad('0x1c')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(7)'),_0xb6dfd7[_0x399bad('0x1c')]('INSERT\x20INTO\x20ints(i)\x20VALUES\x20(8)'),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0xf')),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0x30')),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0x2f')),_0xb6dfd7[_0x399bad('0x1c')](_0x399bad('0x24')),_0xb6dfd7['final'](_0x55514c);});},'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 c5ea063..213a35b 100644 --- a/server/migrations/2.0.66.js +++ b/server/migrations/2.0.66.js @@ -1 +1 @@ -const a945_0x3fe6=['tools_schedules','renameColumn','long','query','queueTransferTimeout','lastMsgBody','addIndex','stringify','sequelize','util','enqueue','sequence','INTEGER','splitSizeCsv','BOOLEAN','../config/logger','changeColumn','info','phoneBarPrefixRequired','removeColumn','queueTransfer','TEXT','mail_accounts','migration','then','agentTransferTimeout','catch','addColumn','subject','join','users','queryInterface','STRING','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','bcc','split','prototype','agentTransfer','cm_contacts','removeIndex','inspect','Removed\x20column\x20%s\x20from\x20%s','mail_interactions','tail','dropTable','settings','analytics_report_fields'];(function(_0x151d7d,_0x3fe6ee){const _0x9d2b22=function(_0x288ee1){while(--_0x288ee1){_0x151d7d['push'](_0x151d7d['shift']());}};_0x9d2b22(++_0x3fe6ee);}(a945_0x3fe6,0x182));const a945_0x9d2b=function(_0x151d7d,_0x3fe6ee){_0x151d7d=_0x151d7d-0x0;let _0x9d2b22=a945_0x3fe6[_0x151d7d];return _0x9d2b22;};const _0x21416b=a945_0x9d2b;'use strict';const util=require(_0x21416b('0x7')),logger=require(_0x21416b('0xd'))(_0x21416b('0x15')),Sequence=function(){};Sequence[_0x21416b('0x23')]['enqueue']=function(_0x288ee1){const _0x241182=_0x21416b;this['tail']=this[_0x241182('0x2a')]?this[_0x241182('0x2a')]['finally'](_0x288ee1):_0x288ee1();};const Migration=function(_0x307939){const _0xb24174=_0x21416b;this[_0xb24174('0x1d')]=_0x307939,this[_0xb24174('0x9')]=new Sequence();};Migration[_0x21416b('0x23')][_0x21416b('0xe')]=function(_0x48c9e9,_0x5ce12d,_0x5d31cd){const _0x480605=_0x21416b,_0x3a2033=this;this[_0x480605('0x9')][_0x480605('0x8')](function(){const _0x21fd4a=_0x480605;return _0x3a2033[_0x21fd4a('0x1d')]['changeColumn'](_0x48c9e9,_0x5ce12d,_0x5d31cd)[_0x21fd4a('0x16')](function(){const _0x36445a=_0x21fd4a;logger[_0x36445a('0xf')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5ce12d,_0x48c9e9);})[_0x21fd4a('0x18')](function(_0x32c1cc){const _0xc66b29=_0x21fd4a;logger[_0xc66b29('0xf')](JSON[_0xc66b29('0x5')](_0x32c1cc));});});},Migration['prototype'][_0x21416b('0x19')]=function(_0x16f312,_0x1fd12b,_0x4654d2){const _0x1e9cf3=_0x21416b,_0x4e649f=this;this['sequence'][_0x1e9cf3('0x8')](function(){const _0x5643f2=_0x1e9cf3;return _0x4e649f[_0x5643f2('0x1d')][_0x5643f2('0x19')](_0x16f312,_0x1fd12b,_0x4654d2)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x1fd12b,_0x16f312);})[_0x5643f2('0x18')](function(_0x4632d5){const _0x520599=_0x5643f2;logger['info'](JSON[_0x520599('0x5')](_0x4632d5));});});},Migration[_0x21416b('0x23')][_0x21416b('0x2b')]=function(_0x1c44ff){const _0x585315=_0x21416b,_0x10652f=this;this[_0x585315('0x9')]['enqueue'](function(){const _0xcc2689=_0x585315;return _0x10652f[_0xcc2689('0x1d')][_0xcc2689('0x2b')](_0x1c44ff,{'force':!![]})[_0xcc2689('0x16')](function(){const _0x1ef38a=_0xcc2689;logger[_0x1ef38a('0xf')](_0x1ef38a('0x1f'),_0x1c44ff);})[_0xcc2689('0x18')](function(_0x383900){const _0x18bdc2=_0xcc2689;logger['info'](JSON[_0x18bdc2('0x5')](_0x383900));});});},Migration[_0x21416b('0x23')][_0x21416b('0x4')]=function(_0x533b3e,_0x2b5563,_0x182dfa){const _0x59831b=_0x21416b,_0x333a02=this;this[_0x59831b('0x9')][_0x59831b('0x8')](function(){const _0x2b4403=_0x59831b;return _0x333a02[_0x2b4403('0x1d')][_0x2b4403('0x4')](_0x533b3e,_0x2b5563,{'indexName':_0x182dfa})[_0x2b4403('0x16')](function(){const _0x11ec91=_0x2b4403;logger[_0x11ec91('0xf')]('addIndex\x20%s\x20%s\x20%s',_0x533b3e,_0x2b5563[_0x11ec91('0x1b')](','),_0x182dfa);})[_0x2b4403('0x18')](function(_0x3df614){const _0x4fec2f=_0x2b4403;logger['info'](JSON[_0x4fec2f('0x5')](_0x3df614));});});},Migration[_0x21416b('0x23')][_0x21416b('0x26')]=function(_0x1ae978,_0x5d96c2){const _0x5143a5=_0x21416b,_0x1bb36c=this;this[_0x5143a5('0x9')]['enqueue'](function(){const _0x3e2318=_0x5143a5;return _0x1bb36c['queryInterface']['removeIndex'](_0x1ae978,_0x5d96c2)[_0x3e2318('0x16')](function(){const _0x4f9fe8=_0x3e2318;logger[_0x4f9fe8('0xf')]('removeIndex\x20%s\x20%s',_0x1ae978,_0x5d96c2);})[_0x3e2318('0x18')](function(_0x3a7a22){const _0x4b9ac7=_0x3e2318;logger[_0x4b9ac7('0xf')](JSON[_0x4b9ac7('0x5')](_0x3a7a22));});});},Migration[_0x21416b('0x23')][_0x21416b('0x1')]=function(_0x15138e){const _0x4cbed4=_0x21416b,_0x23ddef=this;this['sequence'][_0x4cbed4('0x8')](function(){const _0x197f0e=_0x4cbed4;return _0x23ddef[_0x197f0e('0x1d')][_0x197f0e('0x6')][_0x197f0e('0x1')](_0x15138e)['then'](function(){logger['info']('query\x20%s',_0x15138e);})[_0x197f0e('0x18')](function(_0x171435){const _0x1343cc=_0x197f0e;logger[_0x1343cc('0xf')](JSON[_0x1343cc('0x5')](_0x171435));});});},Migration['prototype'][_0x21416b('0x11')]=function(_0x1d9ae5,_0x3bcc40){const _0x48c4b3=_0x21416b,_0x996425=this;this[_0x48c4b3('0x9')]['enqueue'](function(){const _0x1f1b76=_0x48c4b3;return _0x996425[_0x1f1b76('0x1d')][_0x1f1b76('0x11')](_0x1d9ae5,_0x3bcc40)['then'](function(){const _0x59028b=_0x1f1b76;logger[_0x59028b('0xf')](_0x59028b('0x28'),_0x3bcc40,_0x1d9ae5);})[_0x1f1b76('0x18')](function(_0x3c8b1a){const _0x1cf0e2=_0x1f1b76;logger['info'](util[_0x1cf0e2('0x27')](_0x3c8b1a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x21416b('0x2f')]=function(_0xcbacd2,_0x4d8ba9,_0x5f5a7b){const _0x3a0473=_0x21416b,_0x135c7a=this;this[_0x3a0473('0x9')]['enqueue'](function(){const _0xd77d5=_0x3a0473;return _0x135c7a[_0xd77d5('0x1d')][_0xd77d5('0x2f')](_0xcbacd2,_0x4d8ba9,_0x5f5a7b)[_0xd77d5('0x16')](function(){const _0x6ab251=_0xd77d5;logger[_0x6ab251('0xf')](_0x6ab251('0x20'),_0x4d8ba9,_0x5f5a7b,_0xcbacd2);})['catch'](function(_0x490957){const _0x5057bf=_0xd77d5;logger[_0x5057bf('0xf')](util['inspect'](_0x490957,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x4aabcc){const _0x16a32e=_0x21416b;this[_0x16a32e('0x9')][_0x16a32e('0x8')](function(){return _0x4aabcc();});},module['exports']={'up':function(_0x2caa00,_0x4b4fa1){return new Promise(function(_0x457915){const _0x1923cc=a945_0x9d2b,_0x5655fe=new Migration(_0x2caa00);_0x5655fe[_0x1923cc('0xe')](_0x1923cc('0x2d'),'field',{'type':_0x4b4fa1[_0x1923cc('0x13')]}),_0x5655fe[_0x1923cc('0x19')]('tools_schedules','cc',{'type':_0x4b4fa1[_0x1923cc('0x13')]}),_0x5655fe[_0x1923cc('0x19')](_0x1923cc('0x2e'),_0x1923cc('0x21'),{'type':_0x4b4fa1['TEXT']}),_0x5655fe[_0x1923cc('0x19')]('settings',_0x1923cc('0x22'),{'type':_0x4b4fa1['BOOLEAN'],'defaultValue':!![]}),_0x5655fe[_0x1923cc('0x19')](_0x1923cc('0x2c'),_0x1923cc('0xb'),{'type':_0x4b4fa1[_0x1923cc('0xa')],'defaultValue':0x1388}),_0x5655fe[_0x1923cc('0x19')](_0x1923cc('0x2c'),'splitSizePdf',{'type':_0x4b4fa1[_0x1923cc('0xa')],'defaultValue':0x3e8}),_0x5655fe[_0x1923cc('0x19')](_0x1923cc('0x2c'),'splitSizeXlsx',{'type':_0x4b4fa1[_0x1923cc('0xa')],'defaultValue':0x1388}),_0x5655fe['addColumn'](_0x1923cc('0x14'),_0x1923cc('0x12'),{'type':_0x4b4fa1[_0x1923cc('0xc')],'defaultValue':![]}),_0x5655fe['addColumn'](_0x1923cc('0x14'),_0x1923cc('0x2'),{'type':_0x4b4fa1[_0x1923cc('0xa')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5655fe[_0x1923cc('0x19')](_0x1923cc('0x14'),_0x1923cc('0x24'),{'type':_0x4b4fa1[_0x1923cc('0xc')],'defaultValue':![]}),_0x5655fe[_0x1923cc('0x19')](_0x1923cc('0x14'),_0x1923cc('0x17'),{'type':_0x4b4fa1['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5655fe[_0x1923cc('0x19')](_0x1923cc('0x1c'),_0x1923cc('0x10'),{'type':_0x4b4fa1[_0x1923cc('0xc')],'defaultValue':![]}),_0x5655fe[_0x1923cc('0xe')](_0x1923cc('0x29'),_0x1923cc('0x1a'),{'type':_0x4b4fa1[_0x1923cc('0x13')]('')+'\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'}),_0x5655fe[_0x1923cc('0xe')](_0x1923cc('0x29'),_0x1923cc('0x3'),{'type':_0x4b4fa1['TEXT'](_0x1923cc('0x0'))+'\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'}),_0x5655fe[_0x1923cc('0x19')](_0x1923cc('0x25'),'viber',{'type':_0x4b4fa1[_0x1923cc('0x1e')]}),_0x5655fe['final'](_0x457915);});},'down':function(){}}; \ No newline at end of file +const a945_0x4567=['finally','long','mail_interactions','TEXT','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','removeIndex','splitSizeCsv','settings','prototype','BOOLEAN','split','tools_schedules','dropTable','removeColumn','migration','query','users','stringify','then','mail_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','enqueue','changeColumn','lastMsgBody','inspect','field','INTEGER','analytics_report_fields','agentTransferTimeout','renameColumn','sequence','cm_contacts','Added\x20column\x20%s\x20to\x20%s','\x20CHARSET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','tail','catch','queueTransfer','splitSizePdf','../config/logger','STRING','exports','sequelize','info','addColumn','viber','phoneBarPrefixRequired','addIndex','table\x20dropped\x20%s'];(function(_0x20ae88,_0x456725){const _0x2f55e7=function(_0x2d5441){while(--_0x2d5441){_0x20ae88['push'](_0x20ae88['shift']());}};_0x2f55e7(++_0x456725);}(a945_0x4567,0x11a));const a945_0x2f55=function(_0x20ae88,_0x456725){_0x20ae88=_0x20ae88-0x0;let _0x2f55e7=a945_0x4567[_0x20ae88];return _0x2f55e7;};const _0xb8fb53=a945_0x2f55;'use strict';const util=require('util'),logger=require(_0xb8fb53('0x8'))(_0xb8fb53('0x21')),Sequence=function(){};Sequence[_0xb8fb53('0x1b')][_0xb8fb53('0x29')]=function(_0x2d5441){const _0x27cd64=_0xb8fb53;this[_0x27cd64('0x4')]=this[_0x27cd64('0x4')]?this[_0x27cd64('0x4')][_0x27cd64('0x12')](_0x2d5441):_0x2d5441();};const Migration=function(_0x427844){const _0x47ab80=_0xb8fb53;this[_0x47ab80('0x28')]=_0x427844,this[_0x47ab80('0x0')]=new Sequence();};Migration[_0xb8fb53('0x1b')]['changeColumn']=function(_0x291f80,_0x55358f,_0x17ff3c){const _0x52e088=_0xb8fb53,_0xc09d6a=this;this[_0x52e088('0x0')][_0x52e088('0x29')](function(){const _0x2f96b4=_0x52e088;return _0xc09d6a['queryInterface']['changeColumn'](_0x291f80,_0x55358f,_0x17ff3c)[_0x2f96b4('0x25')](function(){const _0x4a58d9=_0x2f96b4;logger[_0x4a58d9('0xc')](_0x4a58d9('0x27'),_0x55358f,_0x291f80);})[_0x2f96b4('0x5')](function(_0x5ea45d){const _0x5ef0f2=_0x2f96b4;logger[_0x5ef0f2('0xc')](JSON[_0x5ef0f2('0x24')](_0x5ea45d));});});},Migration['prototype'][_0xb8fb53('0xd')]=function(_0x508c44,_0x296eea,_0x452968){const _0x23fb7=this;this['sequence']['enqueue'](function(){const _0x2bb83c=a945_0x2f55;return _0x23fb7[_0x2bb83c('0x28')][_0x2bb83c('0xd')](_0x508c44,_0x296eea,_0x452968)['then'](function(){const _0x63e505=_0x2bb83c;logger['info'](_0x63e505('0x2'),_0x296eea,_0x508c44);})[_0x2bb83c('0x5')](function(_0x4fc5ea){const _0x430163=_0x2bb83c;logger[_0x430163('0xc')](JSON[_0x430163('0x24')](_0x4fc5ea));});});},Migration['prototype'][_0xb8fb53('0x1f')]=function(_0x1f6b9){const _0x1b9fb9=_0xb8fb53,_0xdeac12=this;this['sequence'][_0x1b9fb9('0x29')](function(){const _0x429893=_0x1b9fb9;return _0xdeac12['queryInterface'][_0x429893('0x1f')](_0x1f6b9,{'force':!![]})[_0x429893('0x25')](function(){const _0x2e367b=_0x429893;logger[_0x2e367b('0xc')](_0x2e367b('0x11'),_0x1f6b9);})[_0x429893('0x5')](function(_0x2714c6){const _0x20c79d=_0x429893;logger[_0x20c79d('0xc')](JSON[_0x20c79d('0x24')](_0x2714c6));});});},Migration['prototype'][_0xb8fb53('0x10')]=function(_0x28dba5,_0x209da3,_0x393e21){const _0x541e1c=_0xb8fb53,_0x122833=this;this['sequence'][_0x541e1c('0x29')](function(){const _0xd145e=_0x541e1c;return _0x122833[_0xd145e('0x28')][_0xd145e('0x10')](_0x28dba5,_0x209da3,{'indexName':_0x393e21})[_0xd145e('0x25')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x28dba5,_0x209da3['join'](','),_0x393e21);})[_0xd145e('0x5')](function(_0x40e145){const _0x2edd8b=_0xd145e;logger[_0x2edd8b('0xc')](JSON[_0x2edd8b('0x24')](_0x40e145));});});},Migration[_0xb8fb53('0x1b')][_0xb8fb53('0x18')]=function(_0x11b66f,_0x3c845f){const _0x3817a2=_0xb8fb53,_0x49849f=this;this[_0x3817a2('0x0')][_0x3817a2('0x29')](function(){const _0x3251cc=_0x3817a2;return _0x49849f[_0x3251cc('0x28')][_0x3251cc('0x18')](_0x11b66f,_0x3c845f)[_0x3251cc('0x25')](function(){const _0x494ea7=_0x3251cc;logger[_0x494ea7('0xc')]('removeIndex\x20%s\x20%s',_0x11b66f,_0x3c845f);})['catch'](function(_0x78ea47){const _0x56a7d2=_0x3251cc;logger['info'](JSON[_0x56a7d2('0x24')](_0x78ea47));});});},Migration[_0xb8fb53('0x1b')][_0xb8fb53('0x22')]=function(_0x4dda74){const _0x2fcbe8=_0xb8fb53,_0x5ded09=this;this[_0x2fcbe8('0x0')]['enqueue'](function(){const _0x10c68b=_0x2fcbe8;return _0x5ded09[_0x10c68b('0x28')][_0x10c68b('0xb')][_0x10c68b('0x22')](_0x4dda74)[_0x10c68b('0x25')](function(){const _0x54113d=_0x10c68b;logger[_0x54113d('0xc')](_0x54113d('0x17'),_0x4dda74);})[_0x10c68b('0x5')](function(_0x30c369){const _0x1ebf6c=_0x10c68b;logger[_0x1ebf6c('0xc')](JSON[_0x1ebf6c('0x24')](_0x30c369));});});},Migration[_0xb8fb53('0x1b')][_0xb8fb53('0x20')]=function(_0x52d3f7,_0x1f4438){const _0x1f235c=_0xb8fb53,_0x25d499=this;this[_0x1f235c('0x0')][_0x1f235c('0x29')](function(){const _0x16f9e3=_0x1f235c;return _0x25d499[_0x16f9e3('0x28')]['removeColumn'](_0x52d3f7,_0x1f4438)[_0x16f9e3('0x25')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x1f4438,_0x52d3f7);})[_0x16f9e3('0x5')](function(_0x3037b3){const _0xeca1e=_0x16f9e3;logger[_0xeca1e('0xc')](util[_0xeca1e('0x2c')](_0x3037b3,{'showHidden':![],'depth':null}));});});},Migration[_0xb8fb53('0x1b')][_0xb8fb53('0x31')]=function(_0x1c3b53,_0x248582,_0x14c291){const _0x30f31c=_0xb8fb53,_0x42fd67=this;this[_0x30f31c('0x0')][_0x30f31c('0x29')](function(){const _0x34866a=_0x30f31c;return _0x42fd67[_0x34866a('0x28')][_0x34866a('0x31')](_0x1c3b53,_0x248582,_0x14c291)[_0x34866a('0x25')](function(){const _0x579c7b=_0x34866a;logger[_0x579c7b('0xc')](_0x579c7b('0x16'),_0x248582,_0x14c291,_0x1c3b53);})[_0x34866a('0x5')](function(_0xc79c49){const _0x7a38c2=_0x34866a;logger[_0x7a38c2('0xc')](util[_0x7a38c2('0x2c')](_0xc79c49,{'showHidden':![],'depth':null}));});});},Migration[_0xb8fb53('0x1b')]['final']=function(_0x140474){const _0x209926=_0xb8fb53;this[_0x209926('0x0')][_0x209926('0x29')](function(){return _0x140474();});},module[_0xb8fb53('0xa')]={'up':function(_0x51330b,_0x2ad6d9){return new Promise(function(_0x55e9fd){const _0x5e4faa=a945_0x2f55,_0xc22b34=new Migration(_0x51330b);_0xc22b34[_0x5e4faa('0x2a')](_0x5e4faa('0x2f'),_0x5e4faa('0x2d'),{'type':_0x2ad6d9[_0x5e4faa('0x15')]}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x1e'),'cc',{'type':_0x2ad6d9['TEXT']}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x1e'),'bcc',{'type':_0x2ad6d9[_0x5e4faa('0x15')]}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x1a'),_0x5e4faa('0x1d'),{'type':_0x2ad6d9[_0x5e4faa('0x1c')],'defaultValue':!![]}),_0xc22b34[_0x5e4faa('0xd')]('settings',_0x5e4faa('0x19'),{'type':_0x2ad6d9[_0x5e4faa('0x2e')],'defaultValue':0x1388}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x1a'),_0x5e4faa('0x7'),{'type':_0x2ad6d9[_0x5e4faa('0x2e')],'defaultValue':0x3e8}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x1a'),'splitSizeXlsx',{'type':_0x2ad6d9['INTEGER'],'defaultValue':0x1388}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x26'),_0x5e4faa('0x6'),{'type':_0x2ad6d9[_0x5e4faa('0x1c')],'defaultValue':![]}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x26'),'queueTransferTimeout',{'type':_0x2ad6d9[_0x5e4faa('0x2e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xc22b34[_0x5e4faa('0xd')]('mail_accounts','agentTransfer',{'type':_0x2ad6d9['BOOLEAN'],'defaultValue':![]}),_0xc22b34['addColumn'](_0x5e4faa('0x26'),_0x5e4faa('0x30'),{'type':_0x2ad6d9[_0x5e4faa('0x2e')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x23'),_0x5e4faa('0xf'),{'type':_0x2ad6d9[_0x5e4faa('0x1c')],'defaultValue':![]}),_0xc22b34['changeColumn'](_0x5e4faa('0x14'),'subject',{'type':_0x2ad6d9['TEXT']('')+_0x5e4faa('0x3')}),_0xc22b34[_0x5e4faa('0x2a')](_0x5e4faa('0x14'),_0x5e4faa('0x2b'),{'type':_0x2ad6d9['TEXT'](_0x5e4faa('0x13'))+_0x5e4faa('0x3')}),_0xc22b34[_0x5e4faa('0xd')](_0x5e4faa('0x1'),_0x5e4faa('0xe'),{'type':_0x2ad6d9[_0x5e4faa('0x9')]}),_0xc22b34['final'](_0x55e9fd);});},'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 e1773c7..f6d5571 100644 --- a/server/migrations/2.0.67.js +++ b/server/migrations/2.0.67.js @@ -1 +1 @@ -const a946_0x4886=['addIndex\x20%s\x20%s\x20%s','renameColumn','removeIndex','then','addColumn','sequence','removeColumn','stringify','originTo','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;','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;','Added\x20column\x20%s\x20to\x20%s','enqueue','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;','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','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;','changeColumn','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;','query\x20%s','queryInterface','query','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`OpenchannelAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`OpenchannelAccountId`\x20FROM\x20openchannel_dispositions;','tail','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;','finally','sequelize','join','mail_messages','exports','prototype','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;','util','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;','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;','originCc','catch','dropTable','info','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;','../config/logger','final','addIndex','table\x20dropped\x20%s','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;','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x501eb4,_0x488627){const _0x35c855=function(_0x43111f){while(--_0x43111f){_0x501eb4['push'](_0x501eb4['shift']());}};_0x35c855(++_0x488627);}(a946_0x4886,0x1d3));const a946_0x35c8=function(_0x501eb4,_0x488627){_0x501eb4=_0x501eb4-0x0;let _0x35c855=a946_0x4886[_0x501eb4];return _0x35c855;};const _0x21e1fc=a946_0x35c8;'use strict';const util=require(_0x21e1fc('0xe')),logger=require(_0x21e1fc('0x16'))('migration'),Sequence=function(){};Sequence[_0x21e1fc('0xc')]['enqueue']=function(_0x43111f){const _0x3e05c9=_0x21e1fc;this[_0x3e05c9('0x5')]=this[_0x3e05c9('0x5')]?this['tail'][_0x3e05c9('0x7')](_0x43111f):_0x43111f();};const Migration=function(_0x503c16){const _0x4e645a=_0x21e1fc;this[_0x4e645a('0x2')]=_0x503c16,this['sequence']=new Sequence();};Migration[_0x21e1fc('0xc')][_0x21e1fc('0x2c')]=function(_0x5bd682,_0x14772a,_0x358987){const _0x1927e8=this;this['sequence']['enqueue'](function(){const _0x498f98=a946_0x35c8;return _0x1927e8[_0x498f98('0x2')][_0x498f98('0x2c')](_0x5bd682,_0x14772a,_0x358987)[_0x498f98('0x1f')](function(){const _0x16b4be=_0x498f98;logger[_0x16b4be('0x14')](_0x16b4be('0x1b'),_0x14772a,_0x5bd682);})['catch'](function(_0x134ef5){const _0x1ae3ec=_0x498f98;logger['info'](JSON[_0x1ae3ec('0x23')](_0x134ef5));});});},Migration[_0x21e1fc('0xc')][_0x21e1fc('0x20')]=function(_0x3cda0a,_0x48da38,_0x5f4d72){const _0x140fe4=_0x21e1fc,_0x186f4b=this;this['sequence'][_0x140fe4('0x28')](function(){const _0x588492=_0x140fe4;return _0x186f4b['queryInterface']['addColumn'](_0x3cda0a,_0x48da38,_0x5f4d72)[_0x588492('0x1f')](function(){const _0x557fa5=_0x588492;logger[_0x557fa5('0x14')](_0x557fa5('0x27'),_0x48da38,_0x3cda0a);})['catch'](function(_0x468e9a){const _0x30f754=_0x588492;logger[_0x30f754('0x14')](JSON[_0x30f754('0x23')](_0x468e9a));});});},Migration[_0x21e1fc('0xc')]['dropTable']=function(_0x263d5f){const _0x318478=_0x21e1fc,_0x30d926=this;this[_0x318478('0x21')][_0x318478('0x28')](function(){const _0x3dba5e=_0x318478;return _0x30d926['queryInterface'][_0x3dba5e('0x13')](_0x263d5f,{'force':!![]})[_0x3dba5e('0x1f')](function(){const _0x3c7878=_0x3dba5e;logger[_0x3c7878('0x14')](_0x3c7878('0x19'),_0x263d5f);})['catch'](function(_0x40b704){const _0x5e9269=_0x3dba5e;logger[_0x5e9269('0x14')](JSON[_0x5e9269('0x23')](_0x40b704));});});},Migration[_0x21e1fc('0xc')]['addIndex']=function(_0x3eeac4,_0x2b6712,_0xe117a9){const _0x30c52b=this;this['sequence']['enqueue'](function(){const _0x15dbf3=a946_0x35c8;return _0x30c52b[_0x15dbf3('0x2')][_0x15dbf3('0x18')](_0x3eeac4,_0x2b6712,{'indexName':_0xe117a9})[_0x15dbf3('0x1f')](function(){const _0x3affd9=_0x15dbf3;logger[_0x3affd9('0x14')](_0x3affd9('0x1c'),_0x3eeac4,_0x2b6712[_0x3affd9('0x9')](','),_0xe117a9);})[_0x15dbf3('0x12')](function(_0x12b9f4){const _0x498cc7=_0x15dbf3;logger[_0x498cc7('0x14')](JSON[_0x498cc7('0x23')](_0x12b9f4));});});},Migration[_0x21e1fc('0xc')][_0x21e1fc('0x1e')]=function(_0x414065,_0x507a00){const _0x181798=_0x21e1fc,_0x520acb=this;this[_0x181798('0x21')]['enqueue'](function(){const _0x485bd6=_0x181798;return _0x520acb[_0x485bd6('0x2')][_0x485bd6('0x1e')](_0x414065,_0x507a00)[_0x485bd6('0x1f')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x414065,_0x507a00);})[_0x485bd6('0x12')](function(_0x59e1e0){const _0x1c9c7f=_0x485bd6;logger[_0x1c9c7f('0x14')](JSON['stringify'](_0x59e1e0));});});},Migration['prototype'][_0x21e1fc('0x3')]=function(_0x5b909a){const _0x2d244c=_0x21e1fc,_0x4427f6=this;this[_0x2d244c('0x21')][_0x2d244c('0x28')](function(){const _0x411ada=_0x2d244c;return _0x4427f6[_0x411ada('0x2')][_0x411ada('0x8')][_0x411ada('0x3')](_0x5b909a)[_0x411ada('0x1f')](function(){const _0x484276=_0x411ada;logger[_0x484276('0x14')](_0x484276('0x1'),_0x5b909a);})[_0x411ada('0x12')](function(_0x3f5b49){const _0x551157=_0x411ada;logger[_0x551157('0x14')](JSON[_0x551157('0x23')](_0x3f5b49));});});},Migration['prototype'][_0x21e1fc('0x22')]=function(_0xaa1509,_0x4981ad){const _0x50d8c6=this;this['sequence']['enqueue'](function(){const _0x4e1690=a946_0x35c8;return _0x50d8c6[_0x4e1690('0x2')][_0x4e1690('0x22')](_0xaa1509,_0x4981ad)[_0x4e1690('0x1f')](function(){const _0x5c8be4=_0x4e1690;logger[_0x5c8be4('0x14')]('Removed\x20column\x20%s\x20from\x20%s',_0x4981ad,_0xaa1509);})[_0x4e1690('0x12')](function(_0x5c777e){const _0x13cf7a=_0x4e1690;logger[_0x13cf7a('0x14')](util['inspect'](_0x5c777e,{'showHidden':![],'depth':null}));});});},Migration[_0x21e1fc('0xc')][_0x21e1fc('0x1d')]=function(_0x88edf9,_0x5e2132,_0xc89046){const _0x5ed4df=_0x21e1fc,_0x489260=this;this[_0x5ed4df('0x21')][_0x5ed4df('0x28')](function(){const _0x179cd2=_0x5ed4df;return _0x489260['queryInterface'][_0x179cd2('0x1d')](_0x88edf9,_0x5e2132,_0xc89046)[_0x179cd2('0x1f')](function(){const _0x3696d6=_0x179cd2;logger['info'](_0x3696d6('0x2a'),_0x5e2132,_0xc89046,_0x88edf9);})[_0x179cd2('0x12')](function(_0xec9f16){logger['info'](util['inspect'](_0xec9f16,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x21e1fc('0x17')]=function(_0x5304de){const _0x3dc1bc=_0x21e1fc;this[_0x3dc1bc('0x21')][_0x3dc1bc('0x28')](function(){return _0x5304de();});},module[_0x21e1fc('0xb')]={'up':function(_0x28ec4e,_0xf2f0ce){return new Promise(function(_0x22cd9f){const _0x5a7d45=a946_0x35c8,_0xf5033d=new Migration(_0x28ec4e),_0x777e60=_0x5a7d45('0x25');_0xf5033d['query'](_0x777e60),_0xf5033d['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;'),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0x29')),_0xf5033d[_0x5a7d45('0x3')]('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;'),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0xd')),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0x4')),_0xf5033d['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;'),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0x2b')),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0x1a')),_0xf5033d[_0x5a7d45('0x3')]('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;'),_0xf5033d['query'](_0x5a7d45('0xf')),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0x26')),_0xf5033d['query'](_0x5a7d45('0x6')),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0x15')),_0xf5033d[_0x5a7d45('0x3')]('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;'),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0x0')),_0xf5033d[_0x5a7d45('0x3')](_0x5a7d45('0x10')),_0xf5033d[_0x5a7d45('0x20')]('mail_messages',_0x5a7d45('0x24'),{'type':_0xf2f0ce['TEXT']('long')}),_0xf5033d[_0x5a7d45('0x20')](_0x5a7d45('0xa'),_0x5a7d45('0x11'),{'type':_0xf2f0ce['TEXT']('long')}),_0xf5033d[_0x5a7d45('0x17')](_0x22cd9f);});},'down':function(){}}; \ No newline at end of file +const a946_0x385a=['util','INSERT\x20INTO\x20user_has_mail_accounts\x20(`UserId`,\x20`MailAccountId`,\x20`createdAt`,\x20`updatedAt`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20u.id\x20as\x20`UserId`,\x20a.id\x20as\x20`MailAccountId`,\x20NOW()\x20as\x20`createdAt`,\x20NOW()\x20as\x20`updatedAt`\x20\x20\x20\x20\x20\x20\x20FROM\x20users\x20as\x20u,\x20mail_accounts\x20as\x20a\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20u.id,\x20a.id;','changeColumn','mail_messages','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;','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','CREATE\x20TABLE\x20`tools_dispositions`\x20(\x20\x20\x20\x20\x20\x20\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,\x20\x20\x20\x20\x20\x20\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`MailAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`FaxAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`SmsAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`OpenchannelAccountId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`ChatWebsiteId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,\x20\x20\x20\x20\x20\x20\x20\x20PRIMARY\x20KEY\x20(`id`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_voice`\x20(`name`,`ListId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_chat`\x20(`name`,`ChatWebsiteId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_mail`\x20(`name`,`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_sms`\x20(`name`,`SmsAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_fax`\x20(`name`,`FaxAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20UNIQUE\x20KEY\x20`name_openchannel`\x20(`name`,`OpenchannelAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`MailAccountId`\x20(`MailAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`FaxAccountId`\x20(`FaxAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`SmsAccountId`\x20(`SmsAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`OpenchannelAccountId`\x20(`OpenchannelAccountId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ChatWebsiteId`\x20(`ChatWebsiteId`),\x20\x20\x20\x20\x20\x20\x20\x20KEY\x20`ListId`\x20(`ListId`),\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_1`\x20FOREIGN\x20KEY\x20(`MailAccountId`)\x20REFERENCES\x20`mail_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_2`\x20FOREIGN\x20KEY\x20(`FaxAccountId`)\x20REFERENCES\x20`fax_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_3`\x20FOREIGN\x20KEY\x20(`SmsAccountId`)\x20REFERENCES\x20`sms_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_4`\x20FOREIGN\x20KEY\x20(`OpenchannelAccountId`)\x20REFERENCES\x20`openchannel_accounts`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_5`\x20FOREIGN\x20KEY\x20(`ChatWebsiteId`)\x20REFERENCES\x20`chat_websites`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE,\x20\x20\x20\x20\x20\x20\x20\x20CONSTRAINT\x20`tools_dispositions_ibfk_6`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20)\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','INSERT\x20INTO\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\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;','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','then','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;','sequence','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;','query\x20%s','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;','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;','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;','originCc','dropTable','Removed\x20column\x20%s\x20from\x20%s','exports','info','catch','stringify','renameColumn','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;','../config/logger','addIndex','tail','finally','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;','table\x20dropped\x20%s','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;','removeIndex','inspect','enqueue','addColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`,\x20`FaxAccountId`)\x20\x20\x20\x20\x20\x20\x20SELECT\x20`name`,\x20`createdAt`,\x20`updatedAt`,\x20`FaxAccountId`\x20FROM\x20fax_dispositions;','sequelize','removeColumn','query','TEXT','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;','Added\x20column\x20%s\x20to\x20%s','queryInterface','long','final'];(function(_0x227bd3,_0x385a73){const _0x24b9fe=function(_0x3cf063){while(--_0x3cf063){_0x227bd3['push'](_0x227bd3['shift']());}};_0x24b9fe(++_0x385a73);}(a946_0x385a,0x140));const a946_0x24b9=function(_0x227bd3,_0x385a73){_0x227bd3=_0x227bd3-0x0;let _0x24b9fe=a946_0x385a[_0x227bd3];return _0x24b9fe;};const _0x512415=a946_0x24b9;'use strict';const util=require(_0x512415('0x25')),logger=require(_0x512415('0x10'))('migration'),Sequence=function(){};Sequence[_0x512415('0x31')][_0x512415('0x19')]=function(_0x3cf063){const _0x1e92c2=_0x512415;this['tail']=this[_0x1e92c2('0x12')]?this[_0x1e92c2('0x12')][_0x1e92c2('0x13')](_0x3cf063):_0x3cf063();};const Migration=function(_0x92b373){const _0x2676e8=_0x512415;this['queryInterface']=_0x92b373,this[_0x2676e8('0x1')]=new Sequence();};Migration['prototype'][_0x512415('0x27')]=function(_0x3df4c1,_0x568784,_0x4df7aa){const _0x4358db=_0x512415,_0xc0df62=this;this[_0x4358db('0x1')][_0x4358db('0x19')](function(){const _0x52ea78=_0x4358db;return _0xc0df62[_0x52ea78('0x22')][_0x52ea78('0x27')](_0x3df4c1,_0x568784,_0x4df7aa)[_0x52ea78('0x32')](function(){const _0x3ab541=_0x52ea78;logger[_0x3ab541('0xb')](_0x3ab541('0x2a'),_0x568784,_0x3df4c1);})[_0x52ea78('0xc')](function(_0x44d971){const _0x4fa1da=_0x52ea78;logger['info'](JSON[_0x4fa1da('0xd')](_0x44d971));});});},Migration[_0x512415('0x31')][_0x512415('0x1a')]=function(_0x59a853,_0x15d8d6,_0x3c6310){const _0x693a79=this;this['sequence']['enqueue'](function(){const _0x1e008f=a946_0x24b9;return _0x693a79[_0x1e008f('0x22')][_0x1e008f('0x1a')](_0x59a853,_0x15d8d6,_0x3c6310)[_0x1e008f('0x32')](function(){const _0x1ef8ef=_0x1e008f;logger[_0x1ef8ef('0xb')](_0x1ef8ef('0x21'),_0x15d8d6,_0x59a853);})[_0x1e008f('0xc')](function(_0x227511){const _0x505aae=_0x1e008f;logger[_0x505aae('0xb')](JSON['stringify'](_0x227511));});});},Migration[_0x512415('0x31')][_0x512415('0x8')]=function(_0x7dd5ca){const _0x393fe1=_0x512415,_0x44be50=this;this[_0x393fe1('0x1')]['enqueue'](function(){const _0x4b67b0=_0x393fe1;return _0x44be50['queryInterface'][_0x4b67b0('0x8')](_0x7dd5ca,{'force':!![]})[_0x4b67b0('0x32')](function(){const _0x1dfdda=_0x4b67b0;logger[_0x1dfdda('0xb')](_0x1dfdda('0x15'),_0x7dd5ca);})[_0x4b67b0('0xc')](function(_0x29d4e8){const _0x3b31b0=_0x4b67b0;logger[_0x3b31b0('0xb')](JSON[_0x3b31b0('0xd')](_0x29d4e8));});});},Migration[_0x512415('0x31')][_0x512415('0x11')]=function(_0xe88931,_0x21bfb0,_0x51dbe4){const _0x53f0df=_0x512415,_0x5b2d44=this;this[_0x53f0df('0x1')][_0x53f0df('0x19')](function(){const _0x87e14b=_0x53f0df;return _0x5b2d44[_0x87e14b('0x22')]['addIndex'](_0xe88931,_0x21bfb0,{'indexName':_0x51dbe4})['then'](function(){const _0x23dc7d=_0x87e14b;logger[_0x23dc7d('0xb')](_0x23dc7d('0x2b'),_0xe88931,_0x21bfb0[_0x23dc7d('0x2f')](','),_0x51dbe4);})[_0x87e14b('0xc')](function(_0x3809a9){const _0x563aab=_0x87e14b;logger[_0x563aab('0xb')](JSON[_0x563aab('0xd')](_0x3809a9));});});},Migration[_0x512415('0x31')][_0x512415('0x17')]=function(_0x5d0b6c,_0x22e466){const _0x3faf44=_0x512415,_0x2a198c=this;this[_0x3faf44('0x1')][_0x3faf44('0x19')](function(){const _0xdb1058=_0x3faf44;return _0x2a198c[_0xdb1058('0x22')][_0xdb1058('0x17')](_0x5d0b6c,_0x22e466)['then'](function(){const _0x154a2f=_0xdb1058;logger[_0x154a2f('0xb')]('removeIndex\x20%s\x20%s',_0x5d0b6c,_0x22e466);})[_0xdb1058('0xc')](function(_0x2511ea){const _0x2b9d68=_0xdb1058;logger[_0x2b9d68('0xb')](JSON[_0x2b9d68('0xd')](_0x2511ea));});});},Migration['prototype'][_0x512415('0x1e')]=function(_0x246655){const _0x53731b=_0x512415,_0x107fd8=this;this[_0x53731b('0x1')][_0x53731b('0x19')](function(){const _0x116614=_0x53731b;return _0x107fd8[_0x116614('0x22')][_0x116614('0x1c')]['query'](_0x246655)[_0x116614('0x32')](function(){const _0xb7f290=_0x116614;logger[_0xb7f290('0xb')](_0xb7f290('0x3'),_0x246655);})[_0x116614('0xc')](function(_0x1e63c3){const _0x585541=_0x116614;logger[_0x585541('0xb')](JSON[_0x585541('0xd')](_0x1e63c3));});});},Migration[_0x512415('0x31')][_0x512415('0x1d')]=function(_0x3aff65,_0x4a6698){const _0x3e7190=this;this['sequence']['enqueue'](function(){const _0x266373=a946_0x24b9;return _0x3e7190[_0x266373('0x22')][_0x266373('0x1d')](_0x3aff65,_0x4a6698)['then'](function(){const _0x38afb0=_0x266373;logger['info'](_0x38afb0('0x9'),_0x4a6698,_0x3aff65);})[_0x266373('0xc')](function(_0x4d2bf8){logger['info'](util['inspect'](_0x4d2bf8,{'showHidden':![],'depth':null}));});});},Migration[_0x512415('0x31')][_0x512415('0xe')]=function(_0xac7b53,_0x3a5da3,_0x526368){const _0x40ac98=_0x512415,_0x1c801f=this;this[_0x40ac98('0x1')]['enqueue'](function(){const _0x197c0f=_0x40ac98;return _0x1c801f[_0x197c0f('0x22')]['renameColumn'](_0xac7b53,_0x3a5da3,_0x526368)[_0x197c0f('0x32')](function(){const _0x475668=_0x197c0f;logger['info'](_0x475668('0x30'),_0x3a5da3,_0x526368,_0xac7b53);})['catch'](function(_0x31cbbb){const _0x22aad5=_0x197c0f;logger[_0x22aad5('0xb')](util[_0x22aad5('0x18')](_0x31cbbb,{'showHidden':![],'depth':null}));});});},Migration[_0x512415('0x31')][_0x512415('0x24')]=function(_0x21b29f){const _0x5b5355=_0x512415;this[_0x5b5355('0x1')][_0x5b5355('0x19')](function(){return _0x21b29f();});},module[_0x512415('0xa')]={'up':function(_0x5a9d48,_0x4645c4){return new Promise(function(_0x5ed7ea){const _0x1e0c0b=a946_0x24b9,_0x4acb9b=new Migration(_0x5a9d48),_0x2028a8=_0x1e0c0b('0x2c');_0x4acb9b[_0x1e0c0b('0x1e')](_0x2028a8),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x5')),_0x4acb9b[_0x1e0c0b('0x1e')]('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;'),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x1b')),_0x4acb9b[_0x1e0c0b('0x1e')]('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;'),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x2e')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x29')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x4')),_0x4acb9b['query'](_0x1e0c0b('0x2')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x6')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x26')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x0')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x16')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x14')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0xf')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x20')),_0x4acb9b[_0x1e0c0b('0x1e')](_0x1e0c0b('0x2d')),_0x4acb9b['addColumn'](_0x1e0c0b('0x28'),'originTo',{'type':_0x4645c4[_0x1e0c0b('0x1f')](_0x1e0c0b('0x23'))}),_0x4acb9b[_0x1e0c0b('0x1a')]('mail_messages',_0x1e0c0b('0x7'),{'type':_0x4645c4['TEXT'](_0x1e0c0b('0x23'))}),_0x4acb9b[_0x1e0c0b('0x24')](_0x5ed7ea);});},'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 d802acc..d843e93 100644 --- a/server/migrations/2.0.68.js +++ b/server/migrations/2.0.68.js @@ -1 +1 @@ -const a947_0x5ee1=['Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','messagesAlignment','util','sequelize','dropTable','catch','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())','inspect','STRING','settings','addColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','enqueue','migration','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','table\x20dropped\x20%s','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())','then','tail','mapKey','removeColumn','closeReason','query\x20%s','exports','renameColumn','queryInterface','addIndex','sequence','changeColumn','query','info','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','openchannel_accounts','../config/logger','prototype','final','stringify'];(function(_0x50de31,_0x5ee137){const _0x20768c=function(_0x507114){while(--_0x507114){_0x50de31['push'](_0x50de31['shift']());}};_0x20768c(++_0x5ee137);}(a947_0x5ee1,0x17e));const a947_0x2076=function(_0x50de31,_0x5ee137){_0x50de31=_0x50de31-0x0;let _0x20768c=a947_0x5ee1[_0x50de31];return _0x20768c;};const _0x33215e=a947_0x2076;'use strict';const util=require(_0x33215e('0x1')),logger=require(_0x33215e('0x20'))(_0x33215e('0xc')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x507114){const _0x44566c=_0x33215e;this[_0x44566c('0x11')]=this[_0x44566c('0x11')]?this[_0x44566c('0x11')]['finally'](_0x507114):_0x507114();};const Migration=function(_0xff95aa){const _0x414cea=_0x33215e;this[_0x414cea('0x18')]=_0xff95aa,this[_0x414cea('0x1a')]=new Sequence();};Migration[_0x33215e('0x21')]['changeColumn']=function(_0x3fac12,_0x24088d,_0x3e0343){const _0x458b2c=_0x33215e,_0x1d98df=this;this['sequence'][_0x458b2c('0xb')](function(){const _0x51a7c2=_0x458b2c;return _0x1d98df[_0x51a7c2('0x18')][_0x51a7c2('0x1b')](_0x3fac12,_0x24088d,_0x3e0343)[_0x51a7c2('0x10')](function(){const _0x681af1=_0x51a7c2;logger[_0x681af1('0x1d')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x24088d,_0x3fac12);})[_0x51a7c2('0x4')](function(_0x5cf492){const _0x383023=_0x51a7c2;logger[_0x383023('0x1d')](JSON['stringify'](_0x5cf492));});});},Migration[_0x33215e('0x21')][_0x33215e('0x9')]=function(_0x54e39d,_0x213e0f,_0x40ad81){const _0x39936e=_0x33215e,_0x40740f=this;this[_0x39936e('0x1a')][_0x39936e('0xb')](function(){const _0x29bb13=_0x39936e;return _0x40740f[_0x29bb13('0x18')][_0x29bb13('0x9')](_0x54e39d,_0x213e0f,_0x40ad81)[_0x29bb13('0x10')](function(){const _0x1e77e1=_0x29bb13;logger[_0x1e77e1('0x1d')]('Added\x20column\x20%s\x20to\x20%s',_0x213e0f,_0x54e39d);})[_0x29bb13('0x4')](function(_0x15a22c){const _0x492a60=_0x29bb13;logger[_0x492a60('0x1d')](JSON[_0x492a60('0x23')](_0x15a22c));});});},Migration['prototype'][_0x33215e('0x3')]=function(_0x744aa0){const _0x1f0b2c=_0x33215e,_0x2d0b2a=this;this['sequence'][_0x1f0b2c('0xb')](function(){const _0x30763c=_0x1f0b2c;return _0x2d0b2a[_0x30763c('0x18')][_0x30763c('0x3')](_0x744aa0,{'force':!![]})[_0x30763c('0x10')](function(){const _0x444f8a=_0x30763c;logger[_0x444f8a('0x1d')](_0x444f8a('0xe'),_0x744aa0);})[_0x30763c('0x4')](function(_0x21ef44){const _0x46fb7b=_0x30763c;logger['info'](JSON[_0x46fb7b('0x23')](_0x21ef44));});});},Migration[_0x33215e('0x21')][_0x33215e('0x19')]=function(_0x7dfd39,_0x13708b,_0x4239bd){const _0x7cea02=_0x33215e,_0x5cea25=this;this[_0x7cea02('0x1a')][_0x7cea02('0xb')](function(){const _0x53404a=_0x7cea02;return _0x5cea25[_0x53404a('0x18')][_0x53404a('0x19')](_0x7dfd39,_0x13708b,{'indexName':_0x4239bd})['then'](function(){const _0x4dcd47=_0x53404a;logger[_0x4dcd47('0x1d')](_0x4dcd47('0x25'),_0x7dfd39,_0x13708b['join'](','),_0x4239bd);})[_0x53404a('0x4')](function(_0x2cf7f8){const _0x40799b=_0x53404a;logger[_0x40799b('0x1d')](JSON[_0x40799b('0x23')](_0x2cf7f8));});});},Migration[_0x33215e('0x21')]['removeIndex']=function(_0x2dc516,_0x100db8){const _0x3254f2=this;this['sequence']['enqueue'](function(){const _0x21486a=a947_0x2076;return _0x3254f2[_0x21486a('0x18')]['removeIndex'](_0x2dc516,_0x100db8)['then'](function(){const _0x3bf94e=_0x21486a;logger[_0x3bf94e('0x1d')]('removeIndex\x20%s\x20%s',_0x2dc516,_0x100db8);})['catch'](function(_0x1d5079){const _0x1a57ee=_0x21486a;logger[_0x1a57ee('0x1d')](JSON['stringify'](_0x1d5079));});});},Migration[_0x33215e('0x21')][_0x33215e('0x1c')]=function(_0x5c3140){const _0xda17bf=_0x33215e,_0x1babb2=this;this[_0xda17bf('0x1a')]['enqueue'](function(){const _0x1cddff=_0xda17bf;return _0x1babb2['queryInterface'][_0x1cddff('0x2')]['query'](_0x5c3140)[_0x1cddff('0x10')](function(){const _0x231ccb=_0x1cddff;logger['info'](_0x231ccb('0x15'),_0x5c3140);})[_0x1cddff('0x4')](function(_0x282d3c){const _0x258640=_0x1cddff;logger['info'](JSON[_0x258640('0x23')](_0x282d3c));});});},Migration['prototype'][_0x33215e('0x13')]=function(_0x24e2f8,_0xe543b8){const _0x3c3a88=_0x33215e,_0x1656a6=this;this['sequence'][_0x3c3a88('0xb')](function(){const _0x3044c2=_0x3c3a88;return _0x1656a6[_0x3044c2('0x18')][_0x3044c2('0x13')](_0x24e2f8,_0xe543b8)['then'](function(){const _0x5449db=_0x3044c2;logger[_0x5449db('0x1d')](_0x5449db('0x24'),_0xe543b8,_0x24e2f8);})[_0x3044c2('0x4')](function(_0x575c36){const _0x552853=_0x3044c2;logger['info'](util[_0x552853('0x6')](_0x575c36,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x39ea38,_0x36bdc8,_0x170587){const _0x513191=_0x33215e,_0x1275cf=this;this['sequence'][_0x513191('0xb')](function(){const _0x3edf94=_0x513191;return _0x1275cf[_0x3edf94('0x18')][_0x3edf94('0x17')](_0x39ea38,_0x36bdc8,_0x170587)[_0x3edf94('0x10')](function(){const _0x25f911=_0x3edf94;logger[_0x25f911('0x1d')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x36bdc8,_0x170587,_0x39ea38);})['catch'](function(_0x48e8b2){const _0x7c38b2=_0x3edf94;logger[_0x7c38b2('0x1d')](util[_0x7c38b2('0x6')](_0x48e8b2,{'showHidden':![],'depth':null}));});});},Migration[_0x33215e('0x21')]['final']=function(_0x249d17){const _0x47a87b=_0x33215e;this[_0x47a87b('0x1a')][_0x47a87b('0xb')](function(){return _0x249d17();});},module[_0x33215e('0x16')]={'up':function(_0x6e6802,_0x11ae46){return new Promise(function(_0xf613be){const _0x188de4=a947_0x2076,_0x280b6b=new Migration(_0x6e6802);_0x280b6b['query'](_0x188de4('0x5')),_0x280b6b[_0x188de4('0x1c')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())'),_0x280b6b[_0x188de4('0x1c')](_0x188de4('0xf')),_0x280b6b[_0x188de4('0x1c')](_0x188de4('0xa')),_0x280b6b[_0x188de4('0x1c')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())'),_0x280b6b[_0x188de4('0x1c')](_0x188de4('0x1e')),_0x280b6b['addColumn'](_0x188de4('0x1f'),_0x188de4('0x12'),{'type':_0x11ae46[_0x188de4('0x7')]}),_0x280b6b[_0x188de4('0x9')]('chat_interactions',_0x188de4('0x14'),{'type':_0x11ae46[_0x188de4('0x7')]}),_0x280b6b[_0x188de4('0x9')](_0x188de4('0x8'),_0x188de4('0x0'),{'type':_0x11ae46[_0x188de4('0x7')]}),_0x280b6b[_0x188de4('0x1c')](_0x188de4('0xd')),_0x280b6b[_0x188de4('0x22')](_0xf613be);});},'down':function(){}}; \ No newline at end of file +const a947_0x4ebb=['changeColumn','catch','join','removeIndex\x20%s\x20%s','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Answer\x20Machine\x27,\x20NOW(),\x20NOW())','stringify','Added\x20column\x20%s\x20to\x20%s','UPDATE\x20settings\x20SET\x20messagesAlignment=\x27alternate\x27','openchannel_accounts','dropTable','exports','enqueue','chat_interactions','final','query\x20%s','mapKey','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Special\x27,\x20NOW(),\x20NOW())','inspect','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Not\x20Interested\x27,\x20NOW(),\x20NOW())','info','query','finally','addColumn','queryInterface','Removed\x20column\x20%s\x20from\x20%s','util','sequence','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','STRING','then','closeReason','settings','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Sold\x27,\x20NOW(),\x20NOW())','sequelize','../config/logger','removeColumn','prototype'];(function(_0x18f5a3,_0x4ebb4f){const _0x32773e=function(_0x107cc3){while(--_0x107cc3){_0x18f5a3['push'](_0x18f5a3['shift']());}};_0x32773e(++_0x4ebb4f);}(a947_0x4ebb,0x1cc));const a947_0x3277=function(_0x18f5a3,_0x4ebb4f){_0x18f5a3=_0x18f5a3-0x0;let _0x32773e=a947_0x4ebb[_0x18f5a3];return _0x32773e;};const _0x3a38b2=a947_0x3277;'use strict';const util=require(_0x3a38b2('0x1b')),logger=require(_0x3a38b2('0x29'))('migration'),Sequence=function(){};Sequence[_0x3a38b2('0x1')][_0x3a38b2('0xd')]=function(_0x107cc3){const _0x19bc9c=_0x3a38b2;this['tail']=this[_0x19bc9c('0x24')]?this['tail'][_0x19bc9c('0x17')](_0x107cc3):_0x107cc3();};const Migration=function(_0x464330){const _0x47b8fe=_0x3a38b2;this[_0x47b8fe('0x19')]=_0x464330,this[_0x47b8fe('0x1c')]=new Sequence();};Migration[_0x3a38b2('0x1')][_0x3a38b2('0x2')]=function(_0x5673e0,_0x1c2c45,_0x5ec154){const _0x1f7d9c=_0x3a38b2,_0x566942=this;this[_0x1f7d9c('0x1c')][_0x1f7d9c('0xd')](function(){const _0x19fd8c=_0x1f7d9c;return _0x566942[_0x19fd8c('0x19')][_0x19fd8c('0x2')](_0x5673e0,_0x1c2c45,_0x5ec154)[_0x19fd8c('0x21')](function(){const _0x10d016=_0x19fd8c;logger[_0x10d016('0x15')](_0x10d016('0x1e'),_0x1c2c45,_0x5673e0);})[_0x19fd8c('0x3')](function(_0x592ccc){const _0x578494=_0x19fd8c;logger[_0x578494('0x15')](JSON[_0x578494('0x7')](_0x592ccc));});});},Migration[_0x3a38b2('0x1')][_0x3a38b2('0x18')]=function(_0x1fdaaf,_0x5c13cc,_0x22a706){const _0x4c9064=_0x3a38b2,_0x564e6e=this;this[_0x4c9064('0x1c')][_0x4c9064('0xd')](function(){const _0x1fc424=_0x4c9064;return _0x564e6e[_0x1fc424('0x19')][_0x1fc424('0x18')](_0x1fdaaf,_0x5c13cc,_0x22a706)[_0x1fc424('0x21')](function(){const _0x255f1b=_0x1fc424;logger[_0x255f1b('0x15')](_0x255f1b('0x8'),_0x5c13cc,_0x1fdaaf);})['catch'](function(_0x5f1160){logger['info'](JSON['stringify'](_0x5f1160));});});},Migration[_0x3a38b2('0x1')]['dropTable']=function(_0x13fde7){const _0x4480ea=_0x3a38b2,_0x2c1f81=this;this[_0x4480ea('0x1c')]['enqueue'](function(){const _0x25bc78=_0x4480ea;return _0x2c1f81[_0x25bc78('0x19')][_0x25bc78('0xb')](_0x13fde7,{'force':!![]})['then'](function(){const _0x5be98f=_0x25bc78;logger[_0x5be98f('0x15')]('table\x20dropped\x20%s',_0x13fde7);})[_0x25bc78('0x3')](function(_0x1086f1){logger['info'](JSON['stringify'](_0x1086f1));});});},Migration['prototype'][_0x3a38b2('0x1d')]=function(_0xfabf33,_0x196eac,_0xb5e73){const _0x109dc1=_0x3a38b2,_0x5a8e4d=this;this[_0x109dc1('0x1c')]['enqueue'](function(){const _0x5a021a=_0x109dc1;return _0x5a8e4d[_0x5a021a('0x19')]['addIndex'](_0xfabf33,_0x196eac,{'indexName':_0xb5e73})[_0x5a021a('0x21')](function(){const _0x47af24=_0x5a021a;logger[_0x47af24('0x15')]('addIndex\x20%s\x20%s\x20%s',_0xfabf33,_0x196eac[_0x47af24('0x4')](','),_0xb5e73);})[_0x5a021a('0x3')](function(_0x4f9722){const _0x260d40=_0x5a021a;logger[_0x260d40('0x15')](JSON[_0x260d40('0x7')](_0x4f9722));});});},Migration['prototype'][_0x3a38b2('0x1f')]=function(_0x32c233,_0x51b2f0){const _0x41ba03=_0x3a38b2,_0x4631cd=this;this['sequence'][_0x41ba03('0xd')](function(){const _0x10c664=_0x41ba03;return _0x4631cd['queryInterface'][_0x10c664('0x1f')](_0x32c233,_0x51b2f0)[_0x10c664('0x21')](function(){const _0x5401d2=_0x10c664;logger[_0x5401d2('0x15')](_0x5401d2('0x5'),_0x32c233,_0x51b2f0);})[_0x10c664('0x3')](function(_0x5f21b7){const _0x33f783=_0x10c664;logger['info'](JSON[_0x33f783('0x7')](_0x5f21b7));});});},Migration[_0x3a38b2('0x1')]['query']=function(_0x550608){const _0x13504c=_0x3a38b2,_0x4d918c=this;this[_0x13504c('0x1c')][_0x13504c('0xd')](function(){const _0x4d499d=_0x13504c;return _0x4d918c['queryInterface'][_0x4d499d('0x28')][_0x4d499d('0x16')](_0x550608)[_0x4d499d('0x21')](function(){const _0x461f9d=_0x4d499d;logger[_0x461f9d('0x15')](_0x461f9d('0x10'),_0x550608);})[_0x4d499d('0x3')](function(_0x1149ba){const _0x5ced77=_0x4d499d;logger[_0x5ced77('0x15')](JSON['stringify'](_0x1149ba));});});},Migration[_0x3a38b2('0x1')][_0x3a38b2('0x0')]=function(_0x483f28,_0x23b6b4){const _0x5cb2d5=_0x3a38b2,_0x102a72=this;this[_0x5cb2d5('0x1c')]['enqueue'](function(){const _0x11e7c6=_0x5cb2d5;return _0x102a72[_0x11e7c6('0x19')][_0x11e7c6('0x0')](_0x483f28,_0x23b6b4)[_0x11e7c6('0x21')](function(){const _0x1b17f9=_0x11e7c6;logger['info'](_0x1b17f9('0x1a'),_0x23b6b4,_0x483f28);})[_0x11e7c6('0x3')](function(_0xbad8c0){const _0x6d381f=_0x11e7c6;logger[_0x6d381f('0x15')](util['inspect'](_0xbad8c0,{'showHidden':![],'depth':null}));});});},Migration[_0x3a38b2('0x1')][_0x3a38b2('0x26')]=function(_0x434fe6,_0x76cc1a,_0x42f3a4){const _0x1308f2=_0x3a38b2,_0x211c07=this;this[_0x1308f2('0x1c')]['enqueue'](function(){const _0x347f85=_0x1308f2;return _0x211c07['queryInterface'][_0x347f85('0x26')](_0x434fe6,_0x76cc1a,_0x42f3a4)[_0x347f85('0x21')](function(){const _0x3c216e=_0x347f85;logger[_0x3c216e('0x15')](_0x3c216e('0x25'),_0x76cc1a,_0x42f3a4,_0x434fe6);})['catch'](function(_0x19e0fb){const _0x4a07d8=_0x347f85;logger[_0x4a07d8('0x15')](util[_0x4a07d8('0x13')](_0x19e0fb,{'showHidden':![],'depth':null}));});});},Migration[_0x3a38b2('0x1')][_0x3a38b2('0xf')]=function(_0x7cdf67){const _0x5b2cd9=_0x3a38b2;this[_0x5b2cd9('0x1c')][_0x5b2cd9('0xd')](function(){return _0x7cdf67();});},module[_0x3a38b2('0xc')]={'up':function(_0x7730d1,_0x566d28){return new Promise(function(_0x3b19cc){const _0x58a97f=a947_0x3277,_0x3f803b=new Migration(_0x7730d1);_0x3f803b[_0x58a97f('0x16')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Fax\x27,\x20NOW(),\x20NOW())'),_0x3f803b[_0x58a97f('0x16')](_0x58a97f('0x6')),_0x3f803b[_0x58a97f('0x16')]('INSERT\x20INTO\x20tools_dispositions\x20(`name`,\x20`createdAt`,\x20`updatedAt`)\x20VALUES\x20(\x27Interested\x27,\x20NOW(),\x20NOW())'),_0x3f803b[_0x58a97f('0x16')](_0x58a97f('0x14')),_0x3f803b['query'](_0x58a97f('0x27')),_0x3f803b['query'](_0x58a97f('0x12')),_0x3f803b[_0x58a97f('0x18')](_0x58a97f('0xa'),_0x58a97f('0x11'),{'type':_0x566d28['STRING']}),_0x3f803b['addColumn'](_0x58a97f('0xe'),_0x58a97f('0x22'),{'type':_0x566d28[_0x58a97f('0x20')]}),_0x3f803b[_0x58a97f('0x18')](_0x58a97f('0x23'),'messagesAlignment',{'type':_0x566d28[_0x58a97f('0x20')]}),_0x3f803b['query'](_0x58a97f('0x9')),_0x3f803b['final'](_0x3b19cc);});},'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 7b05f44..91a607e 100644 --- a/server/migrations/2.0.69.js +++ b/server/migrations/2.0.69.js @@ -1 +1 @@ -const a948_0xd155=['Removed\x20column\x20%s\x20from\x20%s','long','sequence','query','migration','catch','cm_contacts','report_jscripty_questions','report_jscripty_answers','prefix','#fafafa','exports','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','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','dropTable','line','tools_sounds','tail','join','callerIdAll','Added\x20column\x20%s\x20to\x20%s','VoicePrefixId','addColumn','inspect','enqueue','voice_prefixes','changeColumn','STRING','removeIndex','chat_websites','INTEGER','backgroundColor','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','removeIndex\x20%s\x20%s','info','removeColumn','renameColumn','query\x20%s','name','table\x20dropped\x20%s','voice_extensions','DELETE\x20FROM\x20`user_has_voice_prefixes`','stringify','final','prototype','sequelize','answer','then','VoiceExtensionId'];(function(_0x12aab7,_0xd15532){const _0x17752f=function(_0x13885a){while(--_0x13885a){_0x12aab7['push'](_0x12aab7['shift']());}};_0x17752f(++_0xd15532);}(a948_0xd155,0x1d3));const a948_0x1775=function(_0x12aab7,_0xd15532){_0x12aab7=_0x12aab7-0x0;let _0x17752f=a948_0xd155[_0x12aab7];return _0x17752f;};const _0x2244cb=a948_0x1775;'use strict';const util=require(_0x2244cb('0xe')),logger=require('../config/logger')(_0x2244cb('0x5')),Sequence=function(){};Sequence[_0x2244cb('0x30')]['enqueue']=function(_0x13885a){const _0x33de21=_0x2244cb;this[_0x33de21('0x14')]=this[_0x33de21('0x14')]?this[_0x33de21('0x14')]['finally'](_0x13885a):_0x13885a();};const Migration=function(_0x3a7791){const _0x12ac7b=_0x2244cb;this[_0x12ac7b('0x24')]=_0x3a7791,this[_0x12ac7b('0x3')]=new Sequence();};Migration[_0x2244cb('0x30')][_0x2244cb('0x1d')]=function(_0x1ead85,_0x568836,_0x52e38d){const _0x5f0b9c=_0x2244cb,_0x5671f3=this;this[_0x5f0b9c('0x3')][_0x5f0b9c('0x1b')](function(){const _0x30282d=_0x5f0b9c;return _0x5671f3['queryInterface']['changeColumn'](_0x1ead85,_0x568836,_0x52e38d)['then'](function(){const _0x57ad5d=a948_0x1775;logger['info'](_0x57ad5d('0x23'),_0x568836,_0x1ead85);})[_0x30282d('0x6')](function(_0x2c0fe9){const _0x1a89fe=_0x30282d;logger[_0x1a89fe('0x26')](JSON['stringify'](_0x2c0fe9));});});},Migration[_0x2244cb('0x30')][_0x2244cb('0x19')]=function(_0x79a991,_0x15eba7,_0x20d09f){const _0x5a0102=_0x2244cb,_0x3ed387=this;this['sequence'][_0x5a0102('0x1b')](function(){const _0x328cb0=_0x5a0102;return _0x3ed387[_0x328cb0('0x24')][_0x328cb0('0x19')](_0x79a991,_0x15eba7,_0x20d09f)[_0x328cb0('0x33')](function(){const _0x4c1179=_0x328cb0;logger[_0x4c1179('0x26')](_0x4c1179('0x17'),_0x15eba7,_0x79a991);})[_0x328cb0('0x6')](function(_0x384f8d){const _0x2845d2=_0x328cb0;logger[_0x2845d2('0x26')](JSON['stringify'](_0x384f8d));});});},Migration[_0x2244cb('0x30')][_0x2244cb('0x11')]=function(_0x49e247){const _0x59ef75=_0x2244cb,_0x3bacd5=this;this[_0x59ef75('0x3')][_0x59ef75('0x1b')](function(){const _0x70ab14=_0x59ef75;return _0x3bacd5[_0x70ab14('0x24')]['dropTable'](_0x49e247,{'force':!![]})['then'](function(){const _0xdeaea5=_0x70ab14;logger['info'](_0xdeaea5('0x2b'),_0x49e247);})[_0x70ab14('0x6')](function(_0x2613e4){const _0x4eb59d=_0x70ab14;logger[_0x4eb59d('0x26')](JSON[_0x4eb59d('0x2e')](_0x2613e4));});});},Migration[_0x2244cb('0x30')][_0x2244cb('0x10')]=function(_0x22cb52,_0x2374a1,_0x50f1b3){const _0x41049e=_0x2244cb,_0x39b38c=this;this[_0x41049e('0x3')][_0x41049e('0x1b')](function(){const _0x42b57e=_0x41049e;return _0x39b38c[_0x42b57e('0x24')]['addIndex'](_0x22cb52,_0x2374a1,{'indexName':_0x50f1b3})[_0x42b57e('0x33')](function(){const _0x59ad52=_0x42b57e;logger[_0x59ad52('0x26')]('addIndex\x20%s\x20%s\x20%s',_0x22cb52,_0x2374a1[_0x59ad52('0x15')](','),_0x50f1b3);})[_0x42b57e('0x6')](function(_0x379afe){const _0x51a927=_0x42b57e;logger[_0x51a927('0x26')](JSON['stringify'](_0x379afe));});});},Migration['prototype'][_0x2244cb('0x1f')]=function(_0x43d76a,_0x535059){const _0xcb8be1=_0x2244cb,_0x4f3c67=this;this[_0xcb8be1('0x3')][_0xcb8be1('0x1b')](function(){const _0x39d407=_0xcb8be1;return _0x4f3c67[_0x39d407('0x24')]['removeIndex'](_0x43d76a,_0x535059)['then'](function(){const _0x204db4=_0x39d407;logger[_0x204db4('0x26')](_0x204db4('0x25'),_0x43d76a,_0x535059);})[_0x39d407('0x6')](function(_0x18ea8b){const _0x418d62=_0x39d407;logger[_0x418d62('0x26')](JSON[_0x418d62('0x2e')](_0x18ea8b));});});},Migration[_0x2244cb('0x30')]['query']=function(_0x5c6d41){const _0x5cce2c=_0x2244cb,_0x12990c=this;this[_0x5cce2c('0x3')][_0x5cce2c('0x1b')](function(){const _0x241959=_0x5cce2c;return _0x12990c[_0x241959('0x24')][_0x241959('0x31')][_0x241959('0x4')](_0x5c6d41)[_0x241959('0x33')](function(){const _0xe1b814=_0x241959;logger[_0xe1b814('0x26')](_0xe1b814('0x29'),_0x5c6d41);})['catch'](function(_0xfc514){logger['info'](JSON['stringify'](_0xfc514));});});},Migration['prototype'][_0x2244cb('0x27')]=function(_0xb239e0,_0x3fa292){const _0x57a837=_0x2244cb,_0x2195b6=this;this[_0x57a837('0x3')]['enqueue'](function(){const _0x3aada9=_0x57a837;return _0x2195b6[_0x3aada9('0x24')][_0x3aada9('0x27')](_0xb239e0,_0x3fa292)[_0x3aada9('0x33')](function(){const _0x258307=_0x3aada9;logger['info'](_0x258307('0x1'),_0x3fa292,_0xb239e0);})['catch'](function(_0x5a6612){const _0x3e54cb=_0x3aada9;logger[_0x3e54cb('0x26')](util[_0x3e54cb('0x1a')](_0x5a6612,{'showHidden':![],'depth':null}));});});},Migration[_0x2244cb('0x30')][_0x2244cb('0x28')]=function(_0x126108,_0x558861,_0x2c2fa8){const _0x5bcb9a=_0x2244cb,_0x3806d5=this;this['sequence'][_0x5bcb9a('0x1b')](function(){const _0x55fe61=_0x5bcb9a;return _0x3806d5[_0x55fe61('0x24')][_0x55fe61('0x28')](_0x126108,_0x558861,_0x2c2fa8)[_0x55fe61('0x33')](function(){const _0x44a7e4=_0x55fe61;logger['info'](_0x44a7e4('0xf'),_0x558861,_0x2c2fa8,_0x126108);})[_0x55fe61('0x6')](function(_0xde7792){const _0x4993fb=_0x55fe61;logger['info'](util[_0x4993fb('0x1a')](_0xde7792,{'showHidden':![],'depth':null}));});});},Migration[_0x2244cb('0x30')]['final']=function(_0x5c3761){const _0x2dcc42=_0x2244cb;this[_0x2dcc42('0x3')]['enqueue'](function(){return _0x5c3761();});},module[_0x2244cb('0xc')]={'up':function(_0x1542ad,_0x4995a1){return new Promise(function(_0x3120b5){const _0x31904c=a948_0x1775,_0x34261a=new Migration(_0x1542ad);_0x34261a['changeColumn'](_0x31904c('0x9'),_0x31904c('0x32'),{'type':_0x4995a1['TEXT'](_0x31904c('0x2'))}),_0x34261a[_0x31904c('0x1d')](_0x31904c('0x8'),'answer',{'type':_0x4995a1['TEXT'](_0x31904c('0x2'))}),_0x34261a[_0x31904c('0x4')]('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)))'),_0x34261a[_0x31904c('0x1d')](_0x31904c('0x13'),_0x31904c('0x2a'),{'type':_0x4995a1[_0x31904c('0x1e')],'unique':!![],'allowNull':![]}),_0x34261a[_0x31904c('0x19')](_0x31904c('0x20'),'messageFontSize',{'type':_0x4995a1[_0x31904c('0x21')],'defaultValue':0xc}),_0x34261a[_0x31904c('0x19')]('chat_websites',_0x31904c('0x22'),{'type':_0x4995a1[_0x31904c('0x1e')],'allowNull':![],'defaultValue':_0x31904c('0xb'),'validate':{'notEmpty':!![]}}),_0x34261a[_0x31904c('0x19')](_0x31904c('0x7'),_0x31904c('0x12'),{'type':_0x4995a1[_0x31904c('0x1e')]}),_0x34261a[_0x31904c('0x4')]('DELETE\x20FROM\x20`voice_prefixes`'),_0x34261a['query'](_0x31904c('0x2d')),_0x34261a[_0x31904c('0x1f')](_0x31904c('0x1c'),_0x31904c('0xa')),_0x34261a['removeColumn']('voice_prefixes','prefix'),_0x34261a[_0x31904c('0x19')](_0x31904c('0x1c'),_0x31904c('0x16'),{'type':_0x4995a1['STRING']}),_0x34261a['addColumn'](_0x31904c('0x1c'),_0x31904c('0x0'),{'type':_0x4995a1[_0x31904c('0x21')]}),_0x34261a[_0x31904c('0x19')](_0x31904c('0x2c'),_0x31904c('0x18'),{'type':_0x4995a1[_0x31904c('0x21')]}),_0x34261a['query']('ALTER\x20TABLE\x20`voice_extensions`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ADD\x20CONSTRAINT\x20`voice_extensions_ibfk_7`\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FOREIGN\x20KEY\x20(`VoicePrefixId`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20REFERENCES\x20voice_prefixes(`id`)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20UPDATE\x20CASCADE\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ON\x20DELETE\x20CASCADE'),_0x34261a[_0x31904c('0x4')](_0x31904c('0xd')),_0x34261a[_0x31904c('0x19')]('report_call','prefix',{'type':_0x4995a1['STRING']}),_0x34261a[_0x31904c('0x2f')](_0x3120b5);});},'down':function(){}}; \ No newline at end of file +const a948_0x1c8b=['sequence','migration','line','INTEGER','catch','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)))','info','addColumn','stringify','dropTable','removeIndex\x20%s\x20%s','voice_prefixes','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','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','inspect','util','voice_extensions','final','finally','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','TEXT','prototype','answer','DELETE\x20FROM\x20`voice_prefixes`','prefix','queryInterface','sequelize','Added\x20column\x20%s\x20to\x20%s','report_jscripty_answers','removeColumn','report_call','backgroundColor','table\x20dropped\x20%s','name','chat_websites','query','addIndex','long','then','removeIndex','renameColumn','STRING','changeColumn','DELETE\x20FROM\x20`user_has_voice_prefixes`','../config/logger','cm_contacts','VoicePrefixId','tools_sounds','tail','Removed\x20column\x20%s\x20from\x20%s','join','VoiceExtensionId','enqueue'];(function(_0x15eed4,_0x1c8b49){const _0x3ba32f=function(_0xbae06a){while(--_0xbae06a){_0x15eed4['push'](_0x15eed4['shift']());}};_0x3ba32f(++_0x1c8b49);}(a948_0x1c8b,0x16a));const a948_0x3ba3=function(_0x15eed4,_0x1c8b49){_0x15eed4=_0x15eed4-0x0;let _0x3ba32f=a948_0x1c8b[_0x15eed4];return _0x3ba32f;};const _0x3dadcc=a948_0x3ba3;'use strict';const util=require(_0x3dadcc('0x20')),logger=require(_0x3dadcc('0x7'))(_0x3dadcc('0x11')),Sequence=function(){};Sequence[_0x3dadcc('0x26')]['enqueue']=function(_0xbae06a){const _0xb74fc8=_0x3dadcc;this[_0xb74fc8('0xb')]=this[_0xb74fc8('0xb')]?this[_0xb74fc8('0xb')][_0xb74fc8('0x23')](_0xbae06a):_0xbae06a();};const Migration=function(_0xc66da4){const _0x7621b4=_0x3dadcc;this[_0x7621b4('0x2a')]=_0xc66da4,this[_0x7621b4('0x10')]=new Sequence();};Migration[_0x3dadcc('0x26')]['changeColumn']=function(_0x3d9845,_0x4573d6,_0x2d9051){const _0x2c6e3a=_0x3dadcc,_0x202463=this;this['sequence'][_0x2c6e3a('0xf')](function(){const _0x36b8c2=_0x2c6e3a;return _0x202463['queryInterface'][_0x36b8c2('0x5')](_0x3d9845,_0x4573d6,_0x2d9051)[_0x36b8c2('0x1')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4573d6,_0x3d9845);})[_0x36b8c2('0x14')](function(_0x1e414c){logger['info'](JSON['stringify'](_0x1e414c));});});},Migration['prototype'][_0x3dadcc('0x17')]=function(_0x323c91,_0xc5c2b5,_0x4275a7){const _0x36c682=_0x3dadcc,_0x173d7d=this;this[_0x36c682('0x10')]['enqueue'](function(){const _0x25649c=_0x36c682;return _0x173d7d[_0x25649c('0x2a')][_0x25649c('0x17')](_0x323c91,_0xc5c2b5,_0x4275a7)[_0x25649c('0x1')](function(){const _0x16061d=_0x25649c;logger[_0x16061d('0x16')](_0x16061d('0x2c'),_0xc5c2b5,_0x323c91);})[_0x25649c('0x14')](function(_0x5371b9){const _0x5c8cfd=_0x25649c;logger['info'](JSON[_0x5c8cfd('0x18')](_0x5371b9));});});},Migration[_0x3dadcc('0x26')][_0x3dadcc('0x19')]=function(_0x247f04){const _0x3da392=_0x3dadcc,_0x2042f7=this;this[_0x3da392('0x10')]['enqueue'](function(){const _0x593486=_0x3da392;return _0x2042f7['queryInterface'][_0x593486('0x19')](_0x247f04,{'force':!![]})[_0x593486('0x1')](function(){const _0xa586be=_0x593486;logger[_0xa586be('0x16')](_0xa586be('0x31'),_0x247f04);})['catch'](function(_0x5f0627){logger['info'](JSON['stringify'](_0x5f0627));});});},Migration[_0x3dadcc('0x26')][_0x3dadcc('0x35')]=function(_0x5aa6c5,_0x53cbbe,_0x53d8b8){const _0x460e23=_0x3dadcc,_0x3bd3ba=this;this['sequence'][_0x460e23('0xf')](function(){const _0x59f8ec=_0x460e23;return _0x3bd3ba[_0x59f8ec('0x2a')]['addIndex'](_0x5aa6c5,_0x53cbbe,{'indexName':_0x53d8b8})[_0x59f8ec('0x1')](function(){const _0x6a7ef3=_0x59f8ec;logger[_0x6a7ef3('0x16')](_0x6a7ef3('0x1c'),_0x5aa6c5,_0x53cbbe[_0x6a7ef3('0xd')](','),_0x53d8b8);})[_0x59f8ec('0x14')](function(_0x236e1c){const _0x182d20=_0x59f8ec;logger[_0x182d20('0x16')](JSON[_0x182d20('0x18')](_0x236e1c));});});},Migration[_0x3dadcc('0x26')][_0x3dadcc('0x2')]=function(_0x1eba10,_0x29e5c6){const _0x4b8bcf=_0x3dadcc,_0x326a38=this;this['sequence'][_0x4b8bcf('0xf')](function(){const _0x43dbf5=_0x4b8bcf;return _0x326a38[_0x43dbf5('0x2a')][_0x43dbf5('0x2')](_0x1eba10,_0x29e5c6)[_0x43dbf5('0x1')](function(){const _0x1bfa0b=_0x43dbf5;logger[_0x1bfa0b('0x16')](_0x1bfa0b('0x1a'),_0x1eba10,_0x29e5c6);})[_0x43dbf5('0x14')](function(_0x33ebd4){const _0x5e0962=_0x43dbf5;logger['info'](JSON[_0x5e0962('0x18')](_0x33ebd4));});});},Migration['prototype'][_0x3dadcc('0x34')]=function(_0x3edd42){const _0x2cba32=this;this['sequence']['enqueue'](function(){const _0x559c64=a948_0x3ba3;return _0x2cba32[_0x559c64('0x2a')][_0x559c64('0x2b')][_0x559c64('0x34')](_0x3edd42)['then'](function(){logger['info']('query\x20%s',_0x3edd42);})['catch'](function(_0x501bab){const _0x1e7bba=_0x559c64;logger[_0x1e7bba('0x16')](JSON[_0x1e7bba('0x18')](_0x501bab));});});},Migration[_0x3dadcc('0x26')][_0x3dadcc('0x2e')]=function(_0x15896f,_0x17d0b5){const _0x2a9387=_0x3dadcc,_0x3e699b=this;this[_0x2a9387('0x10')][_0x2a9387('0xf')](function(){const _0x57ee7e=_0x2a9387;return _0x3e699b[_0x57ee7e('0x2a')][_0x57ee7e('0x2e')](_0x15896f,_0x17d0b5)[_0x57ee7e('0x1')](function(){const _0x360db7=_0x57ee7e;logger[_0x360db7('0x16')](_0x360db7('0xc'),_0x17d0b5,_0x15896f);})[_0x57ee7e('0x14')](function(_0xb5e3d){const _0x25140a=_0x57ee7e;logger[_0x25140a('0x16')](util['inspect'](_0xb5e3d,{'showHidden':![],'depth':null}));});});},Migration[_0x3dadcc('0x26')][_0x3dadcc('0x3')]=function(_0x470e89,_0x44ae99,_0x4eca61){const _0x3462de=_0x3dadcc,_0x384826=this;this[_0x3462de('0x10')]['enqueue'](function(){const _0x316a4b=_0x3462de;return _0x384826[_0x316a4b('0x2a')][_0x316a4b('0x3')](_0x470e89,_0x44ae99,_0x4eca61)['then'](function(){const _0x16e1a0=_0x316a4b;logger['info'](_0x16e1a0('0x1d'),_0x44ae99,_0x4eca61,_0x470e89);})[_0x316a4b('0x14')](function(_0x25382b){const _0x20966d=_0x316a4b;logger['info'](util[_0x20966d('0x1f')](_0x25382b,{'showHidden':![],'depth':null}));});});},Migration[_0x3dadcc('0x26')][_0x3dadcc('0x22')]=function(_0x3ab61f){const _0x54297d=_0x3dadcc;this[_0x54297d('0x10')][_0x54297d('0xf')](function(){return _0x3ab61f();});},module['exports']={'up':function(_0x4693eb,_0x1109ce){return new Promise(function(_0x21fb36){const _0x4944fc=a948_0x3ba3,_0x5f512d=new Migration(_0x4693eb);_0x5f512d[_0x4944fc('0x5')](_0x4944fc('0x2d'),_0x4944fc('0x27'),{'type':_0x1109ce[_0x4944fc('0x25')](_0x4944fc('0x0'))}),_0x5f512d['changeColumn']('report_jscripty_questions',_0x4944fc('0x27'),{'type':_0x1109ce[_0x4944fc('0x25')](_0x4944fc('0x0'))}),_0x5f512d[_0x4944fc('0x34')](_0x4944fc('0x15')),_0x5f512d[_0x4944fc('0x5')](_0x4944fc('0xa'),_0x4944fc('0x32'),{'type':_0x1109ce[_0x4944fc('0x4')],'unique':!![],'allowNull':![]}),_0x5f512d[_0x4944fc('0x17')]('chat_websites','messageFontSize',{'type':_0x1109ce[_0x4944fc('0x13')],'defaultValue':0xc}),_0x5f512d[_0x4944fc('0x17')](_0x4944fc('0x33'),_0x4944fc('0x30'),{'type':_0x1109ce[_0x4944fc('0x4')],'allowNull':![],'defaultValue':'#fafafa','validate':{'notEmpty':!![]}}),_0x5f512d[_0x4944fc('0x17')](_0x4944fc('0x8'),_0x4944fc('0x12'),{'type':_0x1109ce['STRING']}),_0x5f512d[_0x4944fc('0x34')](_0x4944fc('0x28')),_0x5f512d['query'](_0x4944fc('0x6')),_0x5f512d[_0x4944fc('0x2')](_0x4944fc('0x1b'),_0x4944fc('0x29')),_0x5f512d[_0x4944fc('0x2e')](_0x4944fc('0x1b'),_0x4944fc('0x29')),_0x5f512d[_0x4944fc('0x17')](_0x4944fc('0x1b'),'callerIdAll',{'type':_0x1109ce[_0x4944fc('0x4')]}),_0x5f512d['addColumn']('voice_prefixes',_0x4944fc('0xe'),{'type':_0x1109ce[_0x4944fc('0x13')]}),_0x5f512d['addColumn'](_0x4944fc('0x21'),_0x4944fc('0x9'),{'type':_0x1109ce[_0x4944fc('0x13')]}),_0x5f512d[_0x4944fc('0x34')](_0x4944fc('0x1e')),_0x5f512d[_0x4944fc('0x34')](_0x4944fc('0x24')),_0x5f512d['addColumn'](_0x4944fc('0x2f'),'prefix',{'type':_0x1109ce[_0x4944fc('0x4')]}),_0x5f512d['final'](_0x21fb36);});},'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 8731b10..79d858f 100644 --- a/server/migrations/2.0.70.js +++ b/server/migrations/2.0.70.js @@ -1 +1 @@ -const a949_0x50e3=['join','report_queue','enqueue','dropTable','queryInterface','query\x20%s','info','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','Added\x20column\x20%s\x20to\x20%s','tail','then','migration','catch','table\x20dropped\x20%s','mohtime','addColumn','removeColumn','util','Removed\x20column\x20%s\x20from\x20%s','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','exports','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','INTEGER','prototype','stringify','sequence','final','addIndex','finally','query','report_call'];(function(_0x237bce,_0x50e382){const _0x1cb126=function(_0x539b00){while(--_0x539b00){_0x237bce['push'](_0x237bce['shift']());}};_0x1cb126(++_0x50e382);}(a949_0x50e3,0x83));const a949_0x1cb1=function(_0x237bce,_0x50e382){_0x237bce=_0x237bce-0x0;let _0x1cb126=a949_0x50e3[_0x237bce];return _0x1cb126;};const _0x20aba8=a949_0x1cb1;'use strict';const util=require(_0x20aba8('0x1c')),logger=require('../config/logger')(_0x20aba8('0x16')),Sequence=function(){};Sequence[_0x20aba8('0x1')][_0x20aba8('0xb')]=function(_0x539b00){const _0x1aeb2a=_0x20aba8;this[_0x1aeb2a('0x14')]=this[_0x1aeb2a('0x14')]?this[_0x1aeb2a('0x14')][_0x1aeb2a('0x6')](_0x539b00):_0x539b00();};const Migration=function(_0x52d9d7){this['queryInterface']=_0x52d9d7,this['sequence']=new Sequence();};Migration[_0x20aba8('0x1')][_0x20aba8('0x10')]=function(_0xaf1c76,_0xd0f4ee,_0x79d095){const _0x2234fa=this;this['sequence']['enqueue'](function(){const _0x18e468=a949_0x1cb1;return _0x2234fa[_0x18e468('0xd')]['changeColumn'](_0xaf1c76,_0xd0f4ee,_0x79d095)[_0x18e468('0x15')](function(){const _0x5b2a10=_0x18e468;logger['info'](_0x5b2a10('0x1f'),_0xd0f4ee,_0xaf1c76);})['catch'](function(_0x117e23){const _0x1cdbf9=_0x18e468;logger[_0x1cdbf9('0xf')](JSON[_0x1cdbf9('0x2')](_0x117e23));});});},Migration['prototype']['addColumn']=function(_0x2da483,_0x5588ec,_0x87cede){const _0x58e04f=_0x20aba8,_0x3fb431=this;this['sequence'][_0x58e04f('0xb')](function(){const _0x495329=_0x58e04f;return _0x3fb431[_0x495329('0xd')][_0x495329('0x1a')](_0x2da483,_0x5588ec,_0x87cede)[_0x495329('0x15')](function(){const _0x16339f=_0x495329;logger['info'](_0x16339f('0x13'),_0x5588ec,_0x2da483);})['catch'](function(_0xe0a80e){const _0x32a6c1=_0x495329;logger[_0x32a6c1('0xf')](JSON[_0x32a6c1('0x2')](_0xe0a80e));});});},Migration[_0x20aba8('0x1')][_0x20aba8('0xc')]=function(_0x433389){const _0x290d1a=_0x20aba8,_0x2c46f4=this;this['sequence'][_0x290d1a('0xb')](function(){const _0x3787b9=_0x290d1a;return _0x2c46f4[_0x3787b9('0xd')][_0x3787b9('0xc')](_0x433389,{'force':!![]})[_0x3787b9('0x15')](function(){const _0x2368c1=_0x3787b9;logger['info'](_0x2368c1('0x18'),_0x433389);})[_0x3787b9('0x17')](function(_0x1b124a){const _0x1254b7=_0x3787b9;logger[_0x1254b7('0xf')](JSON['stringify'](_0x1b124a));});});},Migration[_0x20aba8('0x1')][_0x20aba8('0x5')]=function(_0x424c3d,_0x3af799,_0x18e369){const _0x577a21=_0x20aba8,_0x329f3d=this;this[_0x577a21('0x3')][_0x577a21('0xb')](function(){const _0x25e25f=_0x577a21;return _0x329f3d[_0x25e25f('0xd')][_0x25e25f('0x5')](_0x424c3d,_0x3af799,{'indexName':_0x18e369})[_0x25e25f('0x15')](function(){const _0x436e89=_0x25e25f;logger[_0x436e89('0xf')]('addIndex\x20%s\x20%s\x20%s',_0x424c3d,_0x3af799[_0x436e89('0x9')](','),_0x18e369);})['catch'](function(_0x596ee4){const _0x459f30=_0x25e25f;logger[_0x459f30('0xf')](JSON[_0x459f30('0x2')](_0x596ee4));});});},Migration[_0x20aba8('0x1')][_0x20aba8('0x12')]=function(_0x17514f,_0x1dec18){const _0x2c4df8=this;this['sequence']['enqueue'](function(){const _0x2e83e0=a949_0x1cb1;return _0x2c4df8[_0x2e83e0('0xd')][_0x2e83e0('0x12')](_0x17514f,_0x1dec18)[_0x2e83e0('0x15')](function(){const _0x37c13a=_0x2e83e0;logger[_0x37c13a('0xf')](_0x37c13a('0x20'),_0x17514f,_0x1dec18);})[_0x2e83e0('0x17')](function(_0x6721cc){const _0x103888=_0x2e83e0;logger['info'](JSON[_0x103888('0x2')](_0x6721cc));});});},Migration[_0x20aba8('0x1')][_0x20aba8('0x7')]=function(_0x35f317){const _0x3e602b=_0x20aba8,_0x3ce749=this;this[_0x3e602b('0x3')][_0x3e602b('0xb')](function(){const _0x25973a=_0x3e602b;return _0x3ce749[_0x25973a('0xd')][_0x25973a('0x1e')][_0x25973a('0x7')](_0x35f317)[_0x25973a('0x15')](function(){const _0x503882=_0x25973a;logger['info'](_0x503882('0xe'),_0x35f317);})[_0x25973a('0x17')](function(_0x483eb5){const _0x3b0016=_0x25973a;logger[_0x3b0016('0xf')](JSON[_0x3b0016('0x2')](_0x483eb5));});});},Migration[_0x20aba8('0x1')][_0x20aba8('0x1b')]=function(_0x52d2fa,_0x3d453c){const _0x5239bd=_0x20aba8,_0x5deec9=this;this[_0x5239bd('0x3')]['enqueue'](function(){const _0x431e00=_0x5239bd;return _0x5deec9[_0x431e00('0xd')][_0x431e00('0x1b')](_0x52d2fa,_0x3d453c)[_0x431e00('0x15')](function(){const _0x308281=_0x431e00;logger[_0x308281('0xf')](_0x308281('0x1d'),_0x3d453c,_0x52d2fa);})[_0x431e00('0x17')](function(_0x3de172){logger['info'](util['inspect'](_0x3de172,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x85446,_0x1e309f,_0x3c3abc){const _0x4bd5a7=_0x20aba8,_0x32868f=this;this[_0x4bd5a7('0x3')]['enqueue'](function(){const _0x58ebf7=_0x4bd5a7;return _0x32868f[_0x58ebf7('0xd')]['renameColumn'](_0x85446,_0x1e309f,_0x3c3abc)['then'](function(){const _0x150ff2=_0x58ebf7;logger[_0x150ff2('0xf')](_0x150ff2('0x11'),_0x1e309f,_0x3c3abc,_0x85446);})[_0x58ebf7('0x17')](function(_0x7925a4){const _0x5af78c=_0x58ebf7;logger[_0x5af78c('0xf')](util['inspect'](_0x7925a4,{'showHidden':![],'depth':null}));});});},Migration[_0x20aba8('0x1')][_0x20aba8('0x4')]=function(_0x4bf238){this['sequence']['enqueue'](function(){return _0x4bf238();});},module[_0x20aba8('0x21')]={'up':function(_0x3e9980,_0x27eb0d){return new Promise(function(_0x56cdb6){const _0x87b932=a949_0x1cb1,_0x368ac0=new Migration(_0x3e9980);_0x368ac0['addColumn'](_0x87b932('0xa'),_0x87b932('0x19'),{'type':_0x27eb0d['INTEGER'],'defaultValue':0x0}),_0x368ac0['addColumn'](_0x87b932('0x8'),_0x87b932('0x19'),{'type':_0x27eb0d[_0x87b932('0x0')],'defaultValue':0x0}),_0x368ac0[_0x87b932('0x7')](_0x87b932('0x22')),_0x368ac0[_0x87b932('0x4')](_0x56cdb6);});},'down':function(){}}; \ No newline at end of file +const a949_0x1897=['catch','report_call','ALTER\x20TABLE\x20int_vtiger_accounts\x20ENCRYPTION=\x27Y\x27;','then','addColumn','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','tail','sequelize','inspect','changeColumn','query','prototype','info','sequence','INTEGER','mohtime','addIndex','renameColumn','final','report_queue','util','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','query\x20%s','migration','exports','../config/logger','removeColumn','stringify','enqueue','queryInterface'];(function(_0x5e81ee,_0x189786){const _0x1e792a=function(_0x44bc80){while(--_0x44bc80){_0x5e81ee['push'](_0x5e81ee['shift']());}};_0x1e792a(++_0x189786);}(a949_0x1897,0x81));const a949_0x1e79=function(_0x5e81ee,_0x189786){_0x5e81ee=_0x5e81ee-0x0;let _0x1e792a=a949_0x1897[_0x5e81ee];return _0x1e792a;};const _0x2dc691=a949_0x1e79;'use strict';const util=require(_0x2dc691('0x1d')),logger=require(_0x2dc691('0x2'))(_0x2dc691('0x0')),Sequence=function(){};Sequence[_0x2dc691('0x14')][_0x2dc691('0x5')]=function(_0x44bc80){const _0x39051f=_0x2dc691;this[_0x39051f('0xf')]=this[_0x39051f('0xf')]?this[_0x39051f('0xf')][_0x39051f('0x1e')](_0x44bc80):_0x44bc80();};const Migration=function(_0x23ab44){this['queryInterface']=_0x23ab44,this['sequence']=new Sequence();};Migration[_0x2dc691('0x14')][_0x2dc691('0x12')]=function(_0x2ab9ee,_0x3c66a3,_0x24b6a8){const _0x502020=_0x2dc691,_0x1f2ce3=this;this[_0x502020('0x16')][_0x502020('0x5')](function(){const _0x6c4a29=_0x502020;return _0x1f2ce3['queryInterface'][_0x6c4a29('0x12')](_0x2ab9ee,_0x3c66a3,_0x24b6a8)[_0x6c4a29('0xa')](function(){const _0x2c4de1=_0x6c4a29;logger[_0x2c4de1('0x15')](_0x2c4de1('0x1f'),_0x3c66a3,_0x2ab9ee);})[_0x6c4a29('0x7')](function(_0x33036e){const _0x970550=_0x6c4a29;logger[_0x970550('0x15')](JSON[_0x970550('0x4')](_0x33036e));});});},Migration[_0x2dc691('0x14')]['addColumn']=function(_0x58498e,_0x198267,_0x66c142){const _0x4cb7f6=_0x2dc691,_0x4e9f8d=this;this[_0x4cb7f6('0x16')][_0x4cb7f6('0x5')](function(){const _0x44c06b=_0x4cb7f6;return _0x4e9f8d[_0x44c06b('0x6')]['addColumn'](_0x58498e,_0x198267,_0x66c142)['then'](function(){const _0x59b8c3=_0x44c06b;logger['info'](_0x59b8c3('0xc'),_0x198267,_0x58498e);})['catch'](function(_0x4fcc3e){const _0x435b1f=_0x44c06b;logger[_0x435b1f('0x15')](JSON[_0x435b1f('0x4')](_0x4fcc3e));});});},Migration[_0x2dc691('0x14')]['dropTable']=function(_0x1e94ba){const _0xed3fb3=_0x2dc691,_0x33d612=this;this[_0xed3fb3('0x16')][_0xed3fb3('0x5')](function(){const _0x45fc9a=_0xed3fb3;return _0x33d612[_0x45fc9a('0x6')]['dropTable'](_0x1e94ba,{'force':!![]})[_0x45fc9a('0xa')](function(){const _0x384b24=_0x45fc9a;logger[_0x384b24('0x15')]('table\x20dropped\x20%s',_0x1e94ba);})[_0x45fc9a('0x7')](function(_0x40fb3f){const _0x438be5=_0x45fc9a;logger[_0x438be5('0x15')](JSON['stringify'](_0x40fb3f));});});},Migration[_0x2dc691('0x14')][_0x2dc691('0x19')]=function(_0x14e8ef,_0x47bacf,_0x4f3c14){const _0x47bb49=_0x2dc691,_0xeb3390=this;this['sequence'][_0x47bb49('0x5')](function(){const _0x50f04f=_0x47bb49;return _0xeb3390[_0x50f04f('0x6')]['addIndex'](_0x14e8ef,_0x47bacf,{'indexName':_0x4f3c14})['then'](function(){const _0x48e4a3=_0x50f04f;logger[_0x48e4a3('0x15')](_0x48e4a3('0xe'),_0x14e8ef,_0x47bacf['join'](','),_0x4f3c14);})['catch'](function(_0x16ce46){const _0x2f9329=_0x50f04f;logger['info'](JSON[_0x2f9329('0x4')](_0x16ce46));});});},Migration['prototype'][_0x2dc691('0x20')]=function(_0x2d6c3b,_0x58e6a4){const _0x448cee=_0x2dc691,_0x1e1daa=this;this[_0x448cee('0x16')][_0x448cee('0x5')](function(){return _0x1e1daa['queryInterface']['removeIndex'](_0x2d6c3b,_0x58e6a4)['then'](function(){const _0x9ea2de=a949_0x1e79;logger[_0x9ea2de('0x15')]('removeIndex\x20%s\x20%s',_0x2d6c3b,_0x58e6a4);})['catch'](function(_0x4ef9d8){const _0x2fad01=a949_0x1e79;logger[_0x2fad01('0x15')](JSON[_0x2fad01('0x4')](_0x4ef9d8));});});},Migration[_0x2dc691('0x14')]['query']=function(_0x3794be){const _0x4ae214=_0x2dc691,_0x28b521=this;this[_0x4ae214('0x16')]['enqueue'](function(){const _0x11043a=_0x4ae214;return _0x28b521[_0x11043a('0x6')][_0x11043a('0x10')][_0x11043a('0x13')](_0x3794be)[_0x11043a('0xa')](function(){const _0x3d0031=_0x11043a;logger[_0x3d0031('0x15')](_0x3d0031('0x21'),_0x3794be);})[_0x11043a('0x7')](function(_0x1e8f3c){const _0x11e7d4=_0x11043a;logger[_0x11e7d4('0x15')](JSON[_0x11e7d4('0x4')](_0x1e8f3c));});});},Migration[_0x2dc691('0x14')]['removeColumn']=function(_0x56afbe,_0x2a4948){const _0x213084=_0x2dc691,_0x14cd2d=this;this[_0x213084('0x16')][_0x213084('0x5')](function(){const _0x52dbcb=_0x213084;return _0x14cd2d[_0x52dbcb('0x6')][_0x52dbcb('0x3')](_0x56afbe,_0x2a4948)[_0x52dbcb('0xa')](function(){const _0x4cf76d=_0x52dbcb;logger[_0x4cf76d('0x15')]('Removed\x20column\x20%s\x20from\x20%s',_0x2a4948,_0x56afbe);})['catch'](function(_0x49a03a){const _0x46f98f=_0x52dbcb;logger[_0x46f98f('0x15')](util[_0x46f98f('0x11')](_0x49a03a,{'showHidden':![],'depth':null}));});});},Migration[_0x2dc691('0x14')][_0x2dc691('0x1a')]=function(_0x2c3226,_0x34ebbf,_0x25a433){const _0x5a42ff=this;this['sequence']['enqueue'](function(){const _0x4cc16f=a949_0x1e79;return _0x5a42ff[_0x4cc16f('0x6')][_0x4cc16f('0x1a')](_0x2c3226,_0x34ebbf,_0x25a433)['then'](function(){const _0x5774e0=_0x4cc16f;logger[_0x5774e0('0x15')](_0x5774e0('0xd'),_0x34ebbf,_0x25a433,_0x2c3226);})[_0x4cc16f('0x7')](function(_0xac7afc){const _0x5e17f7=_0x4cc16f;logger['info'](util[_0x5e17f7('0x11')](_0xac7afc,{'showHidden':![],'depth':null}));});});},Migration[_0x2dc691('0x14')][_0x2dc691('0x1b')]=function(_0x2b7e5a){const _0x2deba3=_0x2dc691;this[_0x2deba3('0x16')][_0x2deba3('0x5')](function(){return _0x2b7e5a();});},module[_0x2dc691('0x1')]={'up':function(_0x7a497,_0x5d6bbc){return new Promise(function(_0x3f167c){const _0x351a42=a949_0x1e79,_0x2b1d66=new Migration(_0x7a497);_0x2b1d66[_0x351a42('0xb')](_0x351a42('0x1c'),_0x351a42('0x18'),{'type':_0x5d6bbc[_0x351a42('0x17')],'defaultValue':0x0}),_0x2b1d66[_0x351a42('0xb')](_0x351a42('0x8'),_0x351a42('0x18'),{'type':_0x5d6bbc[_0x351a42('0x17')],'defaultValue':0x0}),_0x2b1d66[_0x351a42('0x13')](_0x351a42('0x9')),_0x2b1d66[_0x351a42('0x1b')](_0x3f167c);});},'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 0c801ab..ae92aa6 100644 --- a/server/migrations/2.0.71.js +++ b/server/migrations/2.0.71.js @@ -1 +1 @@ -const a950_0x337f=['System','util','Added\x20column\x20%s\x20to\x20%s','queueTransferTimeout','INTEGER','inspect','license','tail','queryInterface','systemAlias','openchannel_accounts','systemAvatar','query\x20%s','STRING','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','data7','query','exports','dropTable','agentTransfer','info','settings','removeColumn','tools_actions','sequence','addColumn','chatTimeout','changeColumn','agentTransferTimeout','sequelize','addIndex','Removed\x20column\x20%s\x20from\x20%s','prototype','addIndex\x20%s\x20%s\x20%s','then','migration','removeIndex\x20%s\x20%s','BOOLEAN','stringify','fax_accounts','chat_websites','enableCustomerCheckmarks','TEXT','queueTransfer','enqueue','sms_accounts','renameColumn'];(function(_0x3f4eb0,_0x337fdf){const _0x1b5376=function(_0x2aef44){while(--_0x2aef44){_0x3f4eb0['push'](_0x3f4eb0['shift']());}};_0x1b5376(++_0x337fdf);}(a950_0x337f,0x194));const a950_0x1b53=function(_0x3f4eb0,_0x337fdf){_0x3f4eb0=_0x3f4eb0-0x0;let _0x1b5376=a950_0x337f[_0x3f4eb0];return _0x1b5376;};const _0x3ff72f=a950_0x1b53;'use strict';const util=require(_0x3ff72f('0x1d')),logger=require('../config/logger')(_0x3ff72f('0x10')),Sequence=function(){};Sequence[_0x3ff72f('0xd')]['enqueue']=function(_0x2aef44){const _0x271584=_0x3ff72f;this[_0x271584('0x23')]=this[_0x271584('0x23')]?this[_0x271584('0x23')]['finally'](_0x2aef44):_0x2aef44();};const Migration=function(_0x1f67d3){const _0x66342f=_0x3ff72f;this['queryInterface']=_0x1f67d3,this[_0x66342f('0x5')]=new Sequence();};Migration[_0x3ff72f('0xd')][_0x3ff72f('0x8')]=function(_0x58fa01,_0x377e65,_0x33d410){const _0x36ec94=_0x3ff72f,_0x43bea2=this;this['sequence'][_0x36ec94('0x19')](function(){const _0x4af7f7=_0x36ec94;return _0x43bea2['queryInterface'][_0x4af7f7('0x8')](_0x58fa01,_0x377e65,_0x33d410)['then'](function(){const _0x5c3507=_0x4af7f7;logger[_0x5c3507('0x1')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x377e65,_0x58fa01);})['catch'](function(_0x515085){const _0x4a6c75=_0x4af7f7;logger[_0x4a6c75('0x1')](JSON[_0x4a6c75('0x13')](_0x515085));});});},Migration[_0x3ff72f('0xd')][_0x3ff72f('0x6')]=function(_0xd9f055,_0x12ca7f,_0x10db3d){const _0x14c69b=this;this['sequence']['enqueue'](function(){const _0x42f504=a950_0x1b53;return _0x14c69b[_0x42f504('0x24')]['addColumn'](_0xd9f055,_0x12ca7f,_0x10db3d)[_0x42f504('0xf')](function(){const _0x8118c4=_0x42f504;logger[_0x8118c4('0x1')](_0x8118c4('0x1e'),_0x12ca7f,_0xd9f055);})[_0x42f504('0x2b')](function(_0x4f88f3){const _0xaca8db=_0x42f504;logger[_0xaca8db('0x1')](JSON['stringify'](_0x4f88f3));});});},Migration[_0x3ff72f('0xd')][_0x3ff72f('0x2f')]=function(_0x388d08){const _0x3879a6=_0x3ff72f,_0xae40e2=this;this[_0x3879a6('0x5')]['enqueue'](function(){const _0x3c2080=_0x3879a6;return _0xae40e2[_0x3c2080('0x24')][_0x3c2080('0x2f')](_0x388d08,{'force':!![]})[_0x3c2080('0xf')](function(){logger['info']('table\x20dropped\x20%s',_0x388d08);})[_0x3c2080('0x2b')](function(_0x2da22d){const _0x229e04=_0x3c2080;logger[_0x229e04('0x1')](JSON[_0x229e04('0x13')](_0x2da22d));});});},Migration[_0x3ff72f('0xd')]['addIndex']=function(_0x5660a9,_0x24461b,_0x488b70){const _0x3b462d=_0x3ff72f,_0x309262=this;this[_0x3b462d('0x5')][_0x3b462d('0x19')](function(){const _0x214afd=_0x3b462d;return _0x309262['queryInterface'][_0x214afd('0xb')](_0x5660a9,_0x24461b,{'indexName':_0x488b70})[_0x214afd('0xf')](function(){const _0x154b83=_0x214afd;logger[_0x154b83('0x1')](_0x154b83('0xe'),_0x5660a9,_0x24461b['join'](','),_0x488b70);})[_0x214afd('0x2b')](function(_0x3b50f5){const _0x54d1a3=_0x214afd;logger[_0x54d1a3('0x1')](JSON[_0x54d1a3('0x13')](_0x3b50f5));});});},Migration['prototype']['removeIndex']=function(_0xeeb676,_0x38ce1d){const _0x74d5e4=_0x3ff72f,_0xe86525=this;this[_0x74d5e4('0x5')]['enqueue'](function(){const _0xb31942=_0x74d5e4;return _0xe86525['queryInterface']['removeIndex'](_0xeeb676,_0x38ce1d)[_0xb31942('0xf')](function(){const _0x461603=_0xb31942;logger[_0x461603('0x1')](_0x461603('0x11'),_0xeeb676,_0x38ce1d);})[_0xb31942('0x2b')](function(_0x354765){const _0x339c12=_0xb31942;logger[_0x339c12('0x1')](JSON['stringify'](_0x354765));});});},Migration['prototype'][_0x3ff72f('0x2d')]=function(_0x54fa08){const _0x207e3f=this;this['sequence']['enqueue'](function(){const _0x3a30cd=a950_0x1b53;return _0x207e3f[_0x3a30cd('0x24')][_0x3a30cd('0xa')][_0x3a30cd('0x2d')](_0x54fa08)[_0x3a30cd('0xf')](function(){const _0x263d4a=_0x3a30cd;logger[_0x263d4a('0x1')](_0x263d4a('0x28'),_0x54fa08);})[_0x3a30cd('0x2b')](function(_0x270a1f){const _0x480c23=_0x3a30cd;logger[_0x480c23('0x1')](JSON[_0x480c23('0x13')](_0x270a1f));});});},Migration['prototype'][_0x3ff72f('0x3')]=function(_0x196cdf,_0x234408){const _0x50330b=_0x3ff72f,_0x5cece3=this;this['sequence'][_0x50330b('0x19')](function(){const _0x17d428=_0x50330b;return _0x5cece3['queryInterface'][_0x17d428('0x3')](_0x196cdf,_0x234408)[_0x17d428('0xf')](function(){const _0x3051df=_0x17d428;logger[_0x3051df('0x1')](_0x3051df('0xc'),_0x234408,_0x196cdf);})[_0x17d428('0x2b')](function(_0x275da8){const _0x47d9da=_0x17d428;logger[_0x47d9da('0x1')](util['inspect'](_0x275da8,{'showHidden':![],'depth':null}));});});},Migration[_0x3ff72f('0xd')][_0x3ff72f('0x1b')]=function(_0x468ff2,_0x383432,_0x396912){const _0x53c8ae=_0x3ff72f,_0x5816a7=this;this[_0x53c8ae('0x5')][_0x53c8ae('0x19')](function(){const _0x341bcc=_0x53c8ae;return _0x5816a7[_0x341bcc('0x24')][_0x341bcc('0x1b')](_0x468ff2,_0x383432,_0x396912)[_0x341bcc('0xf')](function(){const _0x3cbe84=_0x341bcc;logger['info'](_0x3cbe84('0x2a'),_0x383432,_0x396912,_0x468ff2);})[_0x341bcc('0x2b')](function(_0x5cfbb4){const _0x11469f=_0x341bcc;logger[_0x11469f('0x1')](util[_0x11469f('0x21')](_0x5cfbb4,{'showHidden':![],'depth':null}));});});},Migration[_0x3ff72f('0xd')]['final']=function(_0x2763b3){const _0x59baba=_0x3ff72f;this[_0x59baba('0x5')]['enqueue'](function(){return _0x2763b3();});},module[_0x3ff72f('0x2e')]={'up':function(_0x1c0324,_0x241be9){return new Promise(function(_0x5e4fbf){const _0x26ea4b=a950_0x1b53,_0x209a0c=new Migration(_0x1c0324);_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x15'),_0x26ea4b('0x18'),{'type':_0x241be9[_0x26ea4b('0x12')],'defaultValue':![]}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x15'),_0x26ea4b('0x16'),{'type':_0x241be9[_0x26ea4b('0x12')],'defaultValue':![]}),_0x209a0c['addColumn'](_0x26ea4b('0x15'),_0x26ea4b('0x1f'),{'type':_0x241be9[_0x26ea4b('0x20')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x15'),_0x26ea4b('0x0'),{'type':_0x241be9['BOOLEAN'],'defaultValue':![]}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x15'),'agentTransferTimeout',{'type':_0x241be9[_0x26ea4b('0x20')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x15'),_0x26ea4b('0x25'),{'type':_0x241be9[_0x26ea4b('0x29')],'defaultValue':_0x26ea4b('0x1c')}),_0x209a0c['addColumn']('chat_websites',_0x26ea4b('0x27'),{'type':_0x241be9[_0x26ea4b('0x17')]}),_0x209a0c['addColumn'](_0x26ea4b('0x14'),'queueTransfer',{'type':_0x241be9[_0x26ea4b('0x12')],'defaultValue':![]}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x14'),_0x26ea4b('0x1f'),{'type':_0x241be9['INTEGER'],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x14'),_0x26ea4b('0x0'),{'type':_0x241be9[_0x26ea4b('0x12')],'defaultValue':![]}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x14'),_0x26ea4b('0x9'),{'type':_0x241be9[_0x26ea4b('0x20')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x26'),_0x26ea4b('0x18'),{'type':_0x241be9[_0x26ea4b('0x12')],'defaultValue':![]}),_0x209a0c[_0x26ea4b('0x6')]('openchannel_accounts',_0x26ea4b('0x1f'),{'type':_0x241be9[_0x26ea4b('0x20')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x209a0c[_0x26ea4b('0x6')]('openchannel_accounts',_0x26ea4b('0x0'),{'type':_0x241be9[_0x26ea4b('0x12')],'defaultValue':![]}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x26'),_0x26ea4b('0x9'),{'type':_0x241be9[_0x26ea4b('0x20')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x209a0c['addColumn'](_0x26ea4b('0x1a'),_0x26ea4b('0x18'),{'type':_0x241be9[_0x26ea4b('0x12')],'defaultValue':![]}),_0x209a0c['addColumn'](_0x26ea4b('0x1a'),'queueTransferTimeout',{'type':_0x241be9[_0x26ea4b('0x20')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x209a0c['addColumn'](_0x26ea4b('0x1a'),_0x26ea4b('0x0'),{'type':_0x241be9['BOOLEAN'],'defaultValue':![]}),_0x209a0c['addColumn'](_0x26ea4b('0x1a'),_0x26ea4b('0x9'),{'type':_0x241be9[_0x26ea4b('0x20')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x2'),_0x26ea4b('0x7'),{'type':_0x241be9['INTEGER'],'defaultValue':0x1e}),_0x209a0c[_0x26ea4b('0x2d')]('UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;'),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x2'),'phoneBarRememberMeEnabled',{'type':_0x241be9[_0x26ea4b('0x12')],'defaultValue':!![]}),_0x209a0c[_0x26ea4b('0x6')](_0x26ea4b('0x22'),'chatLicenseExceeded',{'type':_0x241be9['INTEGER'],'defaultValue':0x0}),_0x209a0c['addColumn'](_0x26ea4b('0x4'),_0x26ea4b('0x2c'),{'type':_0x241be9['TEXT']}),_0x209a0c['final'](_0x5e4fbf);});},'down':function(){}}; \ No newline at end of file +const a950_0xb90d=['chat_websites','chatLicenseExceeded','addIndex','info','queryInterface','systemAlias','removeIndex','agentTransferTimeout','final','prototype','sms_accounts','changeColumn','renameColumn','table\x20dropped\x20%s','../config/logger','STRING','catch','settings','agentTransfer','openchannel_accounts','fax_accounts','Changed\x20column\x20%s\x20in\x20table\x20%s','sequence','queueTransferTimeout','TEXT','addColumn','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','BOOLEAN','finally','enableCustomerCheckmarks','tail','join','enqueue','sequelize','util','dropTable','then','queueTransfer','UPDATE\x20settings\x20SET\x20chatTimeout\x20=\x200;','exports','Added\x20column\x20%s\x20to\x20%s','removeColumn','INTEGER','stringify','inspect','query'];(function(_0x9f3c4c,_0xb90dac){const _0x2e5a04=function(_0x1e394a){while(--_0x1e394a){_0x9f3c4c['push'](_0x9f3c4c['shift']());}};_0x2e5a04(++_0xb90dac);}(a950_0xb90d,0x17e));const a950_0x2e5a=function(_0x9f3c4c,_0xb90dac){_0x9f3c4c=_0x9f3c4c-0x0;let _0x2e5a04=a950_0xb90d[_0x9f3c4c];return _0x2e5a04;};const _0x414d48=a950_0x2e5a;'use strict';const util=require(_0x414d48('0x1d')),logger=require(_0x414d48('0x8'))('migration'),Sequence=function(){};Sequence[_0x414d48('0x3')]['enqueue']=function(_0x1e394a){const _0x17b7a3=_0x414d48;this[_0x17b7a3('0x19')]=this[_0x17b7a3('0x19')]?this[_0x17b7a3('0x19')][_0x17b7a3('0x17')](_0x1e394a):_0x1e394a();};const Migration=function(_0x5bd8f6){const _0x412cab=_0x414d48;this[_0x412cab('0x2d')]=_0x5bd8f6,this[_0x412cab('0x10')]=new Sequence();};Migration['prototype'][_0x414d48('0x5')]=function(_0x41f613,_0x2c64f9,_0x1eeed8){const _0x2114ff=this;this['sequence']['enqueue'](function(){const _0x49ac81=a950_0x2e5a;return _0x2114ff[_0x49ac81('0x2d')][_0x49ac81('0x5')](_0x41f613,_0x2c64f9,_0x1eeed8)[_0x49ac81('0x1f')](function(){const _0x50e0d3=_0x49ac81;logger['info'](_0x50e0d3('0xf'),_0x2c64f9,_0x41f613);})[_0x49ac81('0xa')](function(_0x2adcf3){logger['info'](JSON['stringify'](_0x2adcf3));});});},Migration[_0x414d48('0x3')][_0x414d48('0x13')]=function(_0x2cda12,_0x4742e4,_0x2006ad){const _0x5316f6=_0x414d48,_0x36dd9b=this;this[_0x5316f6('0x10')]['enqueue'](function(){const _0x34d671=_0x5316f6;return _0x36dd9b[_0x34d671('0x2d')]['addColumn'](_0x2cda12,_0x4742e4,_0x2006ad)[_0x34d671('0x1f')](function(){const _0x57a6df=_0x34d671;logger[_0x57a6df('0x2c')](_0x57a6df('0x23'),_0x4742e4,_0x2cda12);})['catch'](function(_0x1cadea){const _0x49ec84=_0x34d671;logger[_0x49ec84('0x2c')](JSON[_0x49ec84('0x26')](_0x1cadea));});});},Migration['prototype'][_0x414d48('0x1e')]=function(_0x386dfb){const _0x2bdc35=_0x414d48,_0x54ba85=this;this['sequence'][_0x2bdc35('0x1b')](function(){const _0x495df2=_0x2bdc35;return _0x54ba85['queryInterface'][_0x495df2('0x1e')](_0x386dfb,{'force':!![]})[_0x495df2('0x1f')](function(){const _0x592db9=_0x495df2;logger[_0x592db9('0x2c')](_0x592db9('0x7'),_0x386dfb);})[_0x495df2('0xa')](function(_0x2b266b){const _0x49791b=_0x495df2;logger['info'](JSON[_0x49791b('0x26')](_0x2b266b));});});},Migration[_0x414d48('0x3')][_0x414d48('0x2b')]=function(_0x321d37,_0x1e7106,_0x484b2c){const _0x4bee28=_0x414d48,_0x2c46b4=this;this[_0x4bee28('0x10')]['enqueue'](function(){const _0xd916f6=_0x4bee28;return _0x2c46b4[_0xd916f6('0x2d')]['addIndex'](_0x321d37,_0x1e7106,{'indexName':_0x484b2c})[_0xd916f6('0x1f')](function(){const _0x4fb1d2=_0xd916f6;logger[_0x4fb1d2('0x2c')](_0x4fb1d2('0x14'),_0x321d37,_0x1e7106[_0x4fb1d2('0x1a')](','),_0x484b2c);})[_0xd916f6('0xa')](function(_0xeda5e1){const _0x1375d4=_0xd916f6;logger[_0x1375d4('0x2c')](JSON[_0x1375d4('0x26')](_0xeda5e1));});});},Migration[_0x414d48('0x3')][_0x414d48('0x0')]=function(_0x43ae2a,_0x53fa0b){const _0x5ae145=_0x414d48,_0x460b90=this;this[_0x5ae145('0x10')][_0x5ae145('0x1b')](function(){const _0x1679a9=_0x5ae145;return _0x460b90[_0x1679a9('0x2d')][_0x1679a9('0x0')](_0x43ae2a,_0x53fa0b)[_0x1679a9('0x1f')](function(){const _0x2d1570=_0x1679a9;logger[_0x2d1570('0x2c')]('removeIndex\x20%s\x20%s',_0x43ae2a,_0x53fa0b);})[_0x1679a9('0xa')](function(_0xb140ac){const _0x39565a=_0x1679a9;logger[_0x39565a('0x2c')](JSON['stringify'](_0xb140ac));});});},Migration[_0x414d48('0x3')][_0x414d48('0x28')]=function(_0x238829){const _0x279f41=_0x414d48,_0x5b856f=this;this['sequence'][_0x279f41('0x1b')](function(){const _0x517dd7=_0x279f41;return _0x5b856f['queryInterface'][_0x517dd7('0x1c')][_0x517dd7('0x28')](_0x238829)[_0x517dd7('0x1f')](function(){const _0x184065=_0x517dd7;logger[_0x184065('0x2c')]('query\x20%s',_0x238829);})[_0x517dd7('0xa')](function(_0x9f2c22){logger['info'](JSON['stringify'](_0x9f2c22));});});},Migration[_0x414d48('0x3')][_0x414d48('0x24')]=function(_0x404082,_0x4ff3fb){const _0x3a7142=_0x414d48,_0x3c785c=this;this[_0x3a7142('0x10')][_0x3a7142('0x1b')](function(){const _0x5479e8=_0x3a7142;return _0x3c785c['queryInterface'][_0x5479e8('0x24')](_0x404082,_0x4ff3fb)['then'](function(){const _0x22210c=_0x5479e8;logger[_0x22210c('0x2c')](_0x22210c('0x15'),_0x4ff3fb,_0x404082);})[_0x5479e8('0xa')](function(_0x40ca10){const _0xa9f643=_0x5479e8;logger['info'](util[_0xa9f643('0x27')](_0x40ca10,{'showHidden':![],'depth':null}));});});},Migration[_0x414d48('0x3')][_0x414d48('0x6')]=function(_0x2645d0,_0x5344af,_0x383f75){const _0x230fd4=_0x414d48,_0x1661da=this;this[_0x230fd4('0x10')][_0x230fd4('0x1b')](function(){const _0x21444c=_0x230fd4;return _0x1661da[_0x21444c('0x2d')][_0x21444c('0x6')](_0x2645d0,_0x5344af,_0x383f75)['then'](function(){const _0x383a5b=_0x21444c;logger[_0x383a5b('0x2c')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5344af,_0x383f75,_0x2645d0);})[_0x21444c('0xa')](function(_0x722d51){const _0x1cbdb4=_0x21444c;logger[_0x1cbdb4('0x2c')](util['inspect'](_0x722d51,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x414d48('0x2')]=function(_0x2e6397){const _0x15df61=_0x414d48;this[_0x15df61('0x10')][_0x15df61('0x1b')](function(){return _0x2e6397();});},module[_0x414d48('0x22')]={'up':function(_0x4e79a2,_0x5eb68e){return new Promise(function(_0x3e14e1){const _0xd30a15=a950_0x2e5a,_0x5c46f5=new Migration(_0x4e79a2);_0x5c46f5['addColumn'](_0xd30a15('0x29'),_0xd30a15('0x20'),{'type':_0x5eb68e['BOOLEAN'],'defaultValue':![]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0x29'),_0xd30a15('0x18'),{'type':_0x5eb68e['BOOLEAN'],'defaultValue':![]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0x29'),_0xd30a15('0x11'),{'type':_0x5eb68e[_0xd30a15('0x25')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5c46f5[_0xd30a15('0x13')]('chat_websites',_0xd30a15('0xc'),{'type':_0x5eb68e[_0xd30a15('0x16')],'defaultValue':![]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0x29'),_0xd30a15('0x1'),{'type':_0x5eb68e[_0xd30a15('0x25')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0x29'),_0xd30a15('0x2e'),{'type':_0x5eb68e[_0xd30a15('0x9')],'defaultValue':'System'}),_0x5c46f5['addColumn']('chat_websites','systemAvatar',{'type':_0x5eb68e[_0xd30a15('0x12')]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0xe'),'queueTransfer',{'type':_0x5eb68e[_0xd30a15('0x16')],'defaultValue':![]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0xe'),_0xd30a15('0x11'),{'type':_0x5eb68e[_0xd30a15('0x25')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0xe'),'agentTransfer',{'type':_0x5eb68e[_0xd30a15('0x16')],'defaultValue':![]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0xe'),_0xd30a15('0x1'),{'type':_0x5eb68e[_0xd30a15('0x25')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0xd'),_0xd30a15('0x20'),{'type':_0x5eb68e[_0xd30a15('0x16')],'defaultValue':![]}),_0x5c46f5['addColumn'](_0xd30a15('0xd'),_0xd30a15('0x11'),{'type':_0x5eb68e[_0xd30a15('0x25')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0xd'),_0xd30a15('0xc'),{'type':_0x5eb68e[_0xd30a15('0x16')],'defaultValue':![]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0xd'),'agentTransferTimeout',{'type':_0x5eb68e[_0xd30a15('0x25')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5c46f5[_0xd30a15('0x13')]('sms_accounts',_0xd30a15('0x20'),{'type':_0x5eb68e['BOOLEAN'],'defaultValue':![]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0x4'),_0xd30a15('0x11'),{'type':_0x5eb68e[_0xd30a15('0x25')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0x4'),_0xd30a15('0xc'),{'type':_0x5eb68e['BOOLEAN'],'defaultValue':![]}),_0x5c46f5[_0xd30a15('0x13')](_0xd30a15('0x4'),_0xd30a15('0x1'),{'type':_0x5eb68e[_0xd30a15('0x25')],'validate':{'min':0x1,'max':0x20c49b},'defaultValue':0x12c}),_0x5c46f5[_0xd30a15('0x13')]('settings','chatTimeout',{'type':_0x5eb68e[_0xd30a15('0x25')],'defaultValue':0x1e}),_0x5c46f5[_0xd30a15('0x28')](_0xd30a15('0x21')),_0x5c46f5['addColumn'](_0xd30a15('0xb'),'phoneBarRememberMeEnabled',{'type':_0x5eb68e[_0xd30a15('0x16')],'defaultValue':!![]}),_0x5c46f5[_0xd30a15('0x13')]('license',_0xd30a15('0x2a'),{'type':_0x5eb68e[_0xd30a15('0x25')],'defaultValue':0x0}),_0x5c46f5[_0xd30a15('0x13')]('tools_actions','data7',{'type':_0x5eb68e['TEXT']}),_0x5c46f5['final'](_0x3e14e1);});},'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 99e8ede..c8a3069 100644 --- a/server/migrations/2.0.72.js +++ b/server/migrations/2.0.72.js @@ -1 +1 @@ -const a951_0x556d=['exports','queryInterface','removeColumn','uniqueid','query','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','then','info','sequence','Added\x20column\x20%s\x20to\x20%s','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','removeIndex\x20%s\x20%s','query\x20%s','leaveAt','project_name','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','finally','renameColumn','report_square','addColumn','../config/logger','inspect','enqueue','prototype','dropTable','changeColumn','tail','join','final'];(function(_0x3153df,_0x556d12){const _0x18700c=function(_0xdbf23f){while(--_0xdbf23f){_0x3153df['push'](_0x3153df['shift']());}};_0x18700c(++_0x556d12);}(a951_0x556d,0xc9));const a951_0x1870=function(_0x3153df,_0x556d12){_0x3153df=_0x3153df-0x0;let _0x18700c=a951_0x556d[_0x3153df];return _0x18700c;};const _0x1967b7=a951_0x1870;'use strict';const util=require('util'),logger=require(_0x1967b7('0x15'))('migration'),Sequence=function(){};Sequence[_0x1967b7('0x18')][_0x1967b7('0x17')]=function(_0xdbf23f){const _0x2f8c67=_0x1967b7;this['tail']=this[_0x2f8c67('0x1b')]?this['tail'][_0x2f8c67('0x11')](_0xdbf23f):_0xdbf23f();};const Migration=function(_0x27f407){const _0x346520=_0x1967b7;this[_0x346520('0x1f')]=_0x27f407,this[_0x346520('0x7')]=new Sequence();};Migration[_0x1967b7('0x18')][_0x1967b7('0x1a')]=function(_0xba6903,_0x5e72a6,_0x135321){const _0x4b1826=_0x1967b7,_0x5d6c98=this;this['sequence'][_0x4b1826('0x17')](function(){const _0x1fb13f=_0x4b1826;return _0x5d6c98[_0x1fb13f('0x1f')]['changeColumn'](_0xba6903,_0x5e72a6,_0x135321)[_0x1fb13f('0x5')](function(){const _0x225261=_0x1fb13f;logger['info'](_0x225261('0x3'),_0x5e72a6,_0xba6903);})[_0x1fb13f('0xb')](function(_0x79fa46){const _0x35e13b=_0x1fb13f;logger[_0x35e13b('0x6')](JSON[_0x35e13b('0x4')](_0x79fa46));});});},Migration['prototype'][_0x1967b7('0x14')]=function(_0x12c278,_0x25248f,_0x4425b4){const _0xfc8325=_0x1967b7,_0x267faf=this;this[_0xfc8325('0x7')][_0xfc8325('0x17')](function(){const _0x4d4be9=_0xfc8325;return _0x267faf[_0x4d4be9('0x1f')][_0x4d4be9('0x14')](_0x12c278,_0x25248f,_0x4425b4)['then'](function(){const _0x1ae304=_0x4d4be9;logger[_0x1ae304('0x6')](_0x1ae304('0x8'),_0x25248f,_0x12c278);})[_0x4d4be9('0xb')](function(_0x10b89e){const _0x3ff69d=_0x4d4be9;logger[_0x3ff69d('0x6')](JSON[_0x3ff69d('0x4')](_0x10b89e));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x19')]=function(_0x1c01c7){const _0x1fd8c8=_0x1967b7,_0x49ae9e=this;this[_0x1fd8c8('0x7')][_0x1fd8c8('0x17')](function(){const _0x35f715=_0x1fd8c8;return _0x49ae9e[_0x35f715('0x1f')][_0x35f715('0x19')](_0x1c01c7,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x1c01c7);})[_0x35f715('0xb')](function(_0x5140cc){const _0x150986=_0x35f715;logger[_0x150986('0x6')](JSON[_0x150986('0x4')](_0x5140cc));});});},Migration[_0x1967b7('0x18')]['addIndex']=function(_0x3ca94b,_0xbae9be,_0x422700){const _0x4abb1=_0x1967b7,_0x3e315b=this;this[_0x4abb1('0x7')][_0x4abb1('0x17')](function(){const _0x2c5a9b=_0x4abb1;return _0x3e315b['queryInterface'][_0x2c5a9b('0x9')](_0x3ca94b,_0xbae9be,{'indexName':_0x422700})[_0x2c5a9b('0x5')](function(){const _0xec1d78=_0x2c5a9b;logger[_0xec1d78('0x6')](_0xec1d78('0x2'),_0x3ca94b,_0xbae9be[_0xec1d78('0x1c')](','),_0x422700);})[_0x2c5a9b('0xb')](function(_0xbe8193){const _0x4c73d3=_0x2c5a9b;logger[_0x4c73d3('0x6')](JSON['stringify'](_0xbe8193));});});},Migration['prototype']['removeIndex']=function(_0x355ff5,_0x2cd147){const _0x760bbf=_0x1967b7,_0x280ac8=this;this[_0x760bbf('0x7')][_0x760bbf('0x17')](function(){const _0x40aa1a=_0x760bbf;return _0x280ac8[_0x40aa1a('0x1f')]['removeIndex'](_0x355ff5,_0x2cd147)['then'](function(){const _0x59486e=_0x40aa1a;logger[_0x59486e('0x6')](_0x59486e('0xc'),_0x355ff5,_0x2cd147);})[_0x40aa1a('0xb')](function(_0x31656a){const _0x49d0f6=_0x40aa1a;logger[_0x49d0f6('0x6')](JSON['stringify'](_0x31656a));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x1')]=function(_0x348886){const _0x16af02=_0x1967b7,_0x24b92a=this;this[_0x16af02('0x7')]['enqueue'](function(){const _0x45953b=_0x16af02;return _0x24b92a[_0x45953b('0x1f')]['sequelize'][_0x45953b('0x1')](_0x348886)[_0x45953b('0x5')](function(){const _0x510bee=_0x45953b;logger[_0x510bee('0x6')](_0x510bee('0xd'),_0x348886);})[_0x45953b('0xb')](function(_0x3f7f57){const _0x40a95c=_0x45953b;logger['info'](JSON[_0x40a95c('0x4')](_0x3f7f57));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x20')]=function(_0x7b8cee,_0x2640c6){const _0x37338e=_0x1967b7,_0x48a7c4=this;this[_0x37338e('0x7')][_0x37338e('0x17')](function(){const _0xf553df=_0x37338e;return _0x48a7c4[_0xf553df('0x1f')][_0xf553df('0x20')](_0x7b8cee,_0x2640c6)[_0xf553df('0x5')](function(){const _0x417c10=_0xf553df;logger[_0x417c10('0x6')]('Removed\x20column\x20%s\x20from\x20%s',_0x2640c6,_0x7b8cee);})[_0xf553df('0xb')](function(_0x31122b){const _0x1dfb04=_0xf553df;logger[_0x1dfb04('0x6')](util['inspect'](_0x31122b,{'showHidden':![],'depth':null}));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x12')]=function(_0x322049,_0x3d3c43,_0x71a1ef){const _0x2e6fc3=_0x1967b7,_0x5493f4=this;this[_0x2e6fc3('0x7')]['enqueue'](function(){const _0x2cb300=_0x2e6fc3;return _0x5493f4[_0x2cb300('0x1f')]['renameColumn'](_0x322049,_0x3d3c43,_0x71a1ef)['then'](function(){const _0x4488eb=_0x2cb300;logger[_0x4488eb('0x6')](_0x4488eb('0xa'),_0x3d3c43,_0x71a1ef,_0x322049);})[_0x2cb300('0xb')](function(_0x141518){const _0x7704f1=_0x2cb300;logger['info'](util[_0x7704f1('0x16')](_0x141518,{'showHidden':![],'depth':null}));});});},Migration[_0x1967b7('0x18')][_0x1967b7('0x1d')]=function(_0x42a1b2){const _0x3f4dc6=_0x1967b7;this[_0x3f4dc6('0x7')]['enqueue'](function(){return _0x42a1b2();});},module[_0x1967b7('0x1e')]={'up':function(_0x1182bd){return new Promise(function(_0x3dbec8){const _0xd44997=a951_0x1870,_0x4c6811=new Migration(_0x1182bd);_0x4c6811['query'](_0xd44997('0x10')),_0x4c6811[_0xd44997('0x9')](_0xd44997('0x13'),[_0xd44997('0x0'),_0xd44997('0xf')],'uid_pname'),_0x4c6811[_0xd44997('0x9')](_0xd44997('0x13'),[_0xd44997('0xe')],'leaveAt'),_0x4c6811['final'](_0x3dbec8);});},'down':function(){}}; \ No newline at end of file +const a951_0x4595=['removeIndex','join','query','final','prototype','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','leaveAt','enqueue','Removed\x20column\x20%s\x20from\x20%s','tail','stringify','renameColumn','queryInterface','report_square','query\x20%s','info','dropTable','then','../config/logger','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','removeColumn','DELETE\x20FROM\x20user_has_voice_queues_rt\x20WHERE\x20UserId\x20NOT\x20IN\x20(SELECT\x20id\x20FROM\x20users\x20WHERE\x20role\x20=\x20\x27agent\x27)','project_name','catch','finally','removeIndex\x20%s\x20%s','addColumn','changeColumn','uid_pname','addIndex\x20%s\x20%s\x20%s','sequelize'];(function(_0x4e8074,_0x45953e){const _0x549ed0=function(_0x251519){while(--_0x251519){_0x4e8074['push'](_0x4e8074['shift']());}};_0x549ed0(++_0x45953e);}(a951_0x4595,0xeb));const a951_0x549e=function(_0x4e8074,_0x45953e){_0x4e8074=_0x4e8074-0x0;let _0x549ed0=a951_0x4595[_0x4e8074];return _0x549ed0;};const _0x30f6c0=a951_0x549e;'use strict';const util=require('util'),logger=require(_0x30f6c0('0x16'))('migration'),Sequence=function(){};Sequence[_0x30f6c0('0x7')]['enqueue']=function(_0x251519){const _0x3fceb9=_0x30f6c0;this[_0x3fceb9('0xd')]=this[_0x3fceb9('0xd')]?this[_0x3fceb9('0xd')][_0x3fceb9('0x1e')](_0x251519):_0x251519();};const Migration=function(_0x55f97e){const _0x4fb848=_0x30f6c0;this['queryInterface']=_0x55f97e,this[_0x4fb848('0x17')]=new Sequence();};Migration['prototype'][_0x30f6c0('0x21')]=function(_0x166765,_0x251cff,_0x454e50){const _0x11d807=_0x30f6c0,_0x59fe53=this;this[_0x11d807('0x17')]['enqueue'](function(){const _0x2c4d4d=_0x11d807;return _0x59fe53[_0x2c4d4d('0x10')]['changeColumn'](_0x166765,_0x251cff,_0x454e50)[_0x2c4d4d('0x15')](function(){const _0x39b3eb=_0x2c4d4d;logger[_0x39b3eb('0x13')](_0x39b3eb('0x9'),_0x251cff,_0x166765);})[_0x2c4d4d('0x1d')](function(_0x1ef24e){const _0x13203f=_0x2c4d4d;logger[_0x13203f('0x13')](JSON[_0x13203f('0xe')](_0x1ef24e));});});},Migration[_0x30f6c0('0x7')][_0x30f6c0('0x20')]=function(_0x2387db,_0x2088c7,_0x142618){const _0x36a2d2=_0x30f6c0,_0x27a3df=this;this[_0x36a2d2('0x17')][_0x36a2d2('0xb')](function(){const _0x118633=_0x36a2d2;return _0x27a3df['queryInterface']['addColumn'](_0x2387db,_0x2088c7,_0x142618)[_0x118633('0x15')](function(){const _0x2accc5=_0x118633;logger['info'](_0x2accc5('0x19'),_0x2088c7,_0x2387db);})[_0x118633('0x1d')](function(_0x3509ef){const _0x3395fc=_0x118633;logger[_0x3395fc('0x13')](JSON['stringify'](_0x3509ef));});});},Migration[_0x30f6c0('0x7')]['dropTable']=function(_0x25043c){const _0x2911ed=_0x30f6c0,_0x7c0d56=this;this[_0x2911ed('0x17')][_0x2911ed('0xb')](function(){const _0x4d3eb5=_0x2911ed;return _0x7c0d56['queryInterface'][_0x4d3eb5('0x14')](_0x25043c,{'force':!![]})[_0x4d3eb5('0x15')](function(){const _0x2ba68a=_0x4d3eb5;logger[_0x2ba68a('0x13')]('table\x20dropped\x20%s',_0x25043c);})['catch'](function(_0x5a9339){const _0x4a1514=_0x4d3eb5;logger[_0x4a1514('0x13')](JSON[_0x4a1514('0xe')](_0x5a9339));});});},Migration['prototype'][_0x30f6c0('0x8')]=function(_0x36f7c1,_0x8dd61b,_0x313070){const _0x5e5673=_0x30f6c0,_0x3b4a37=this;this[_0x5e5673('0x17')]['enqueue'](function(){const _0x5b0d13=_0x5e5673;return _0x3b4a37[_0x5b0d13('0x10')]['addIndex'](_0x36f7c1,_0x8dd61b,{'indexName':_0x313070})[_0x5b0d13('0x15')](function(){const _0x33dd1c=_0x5b0d13;logger[_0x33dd1c('0x13')](_0x33dd1c('0x1'),_0x36f7c1,_0x8dd61b[_0x33dd1c('0x4')](','),_0x313070);})['catch'](function(_0x5e7414){const _0x2edde0=_0x5b0d13;logger['info'](JSON[_0x2edde0('0xe')](_0x5e7414));});});},Migration[_0x30f6c0('0x7')][_0x30f6c0('0x3')]=function(_0x1063db,_0x1dbeb2){const _0xed1273=_0x30f6c0,_0x2a0c11=this;this[_0xed1273('0x17')][_0xed1273('0xb')](function(){const _0x284d89=_0xed1273;return _0x2a0c11['queryInterface'][_0x284d89('0x3')](_0x1063db,_0x1dbeb2)[_0x284d89('0x15')](function(){const _0x16fc23=_0x284d89;logger['info'](_0x16fc23('0x1f'),_0x1063db,_0x1dbeb2);})['catch'](function(_0x1c0a73){const _0x4a65e9=_0x284d89;logger[_0x4a65e9('0x13')](JSON[_0x4a65e9('0xe')](_0x1c0a73));});});},Migration[_0x30f6c0('0x7')][_0x30f6c0('0x5')]=function(_0x711862){const _0x3ca8d2=_0x30f6c0,_0x4303fd=this;this[_0x3ca8d2('0x17')][_0x3ca8d2('0xb')](function(){const _0x2c5245=_0x3ca8d2;return _0x4303fd[_0x2c5245('0x10')][_0x2c5245('0x2')][_0x2c5245('0x5')](_0x711862)[_0x2c5245('0x15')](function(){const _0x32a16a=_0x2c5245;logger[_0x32a16a('0x13')](_0x32a16a('0x12'),_0x711862);})[_0x2c5245('0x1d')](function(_0x409bcc){const _0x5327f=_0x2c5245;logger['info'](JSON[_0x5327f('0xe')](_0x409bcc));});});},Migration[_0x30f6c0('0x7')][_0x30f6c0('0x1a')]=function(_0x3b95ba,_0x33bd71){const _0x5305c7=_0x30f6c0,_0x46cf18=this;this[_0x5305c7('0x17')]['enqueue'](function(){const _0x5c0faa=_0x5305c7;return _0x46cf18['queryInterface'][_0x5c0faa('0x1a')](_0x3b95ba,_0x33bd71)['then'](function(){const _0x4c313e=_0x5c0faa;logger[_0x4c313e('0x13')](_0x4c313e('0xc'),_0x33bd71,_0x3b95ba);})[_0x5c0faa('0x1d')](function(_0xf0f610){const _0x3033d3=_0x5c0faa;logger[_0x3033d3('0x13')](util['inspect'](_0xf0f610,{'showHidden':![],'depth':null}));});});},Migration[_0x30f6c0('0x7')]['renameColumn']=function(_0x25fc98,_0x5d593f,_0x1de14e){const _0x20441e=_0x30f6c0,_0x29d3aa=this;this[_0x20441e('0x17')][_0x20441e('0xb')](function(){const _0x44fadc=_0x20441e;return _0x29d3aa[_0x44fadc('0x10')][_0x44fadc('0xf')](_0x25fc98,_0x5d593f,_0x1de14e)[_0x44fadc('0x15')](function(){const _0xf83fa7=_0x44fadc;logger[_0xf83fa7('0x13')](_0xf83fa7('0x18'),_0x5d593f,_0x1de14e,_0x25fc98);})[_0x44fadc('0x1d')](function(_0x444bc5){const _0x161ed0=_0x44fadc;logger[_0x161ed0('0x13')](util['inspect'](_0x444bc5,{'showHidden':![],'depth':null}));});});},Migration[_0x30f6c0('0x7')][_0x30f6c0('0x6')]=function(_0x458a05){const _0x21ce78=_0x30f6c0;this['sequence'][_0x21ce78('0xb')](function(){return _0x458a05();});},module['exports']={'up':function(_0x726691){return new Promise(function(_0x495c59){const _0x440ea0=a951_0x549e,_0x51e603=new Migration(_0x726691);_0x51e603[_0x440ea0('0x5')](_0x440ea0('0x1b')),_0x51e603[_0x440ea0('0x8')](_0x440ea0('0x11'),['uniqueid',_0x440ea0('0x1c')],_0x440ea0('0x0')),_0x51e603[_0x440ea0('0x8')]('report_square',[_0x440ea0('0xa')],_0x440ea0('0xa')),_0x51e603['final'](_0x495c59);});},'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 86f0d80..8026421 100644 --- a/server/migrations/2.0.73.js +++ b/server/migrations/2.0.73.js @@ -1 +1 @@ -const a952_0x28d8=['../config/logger','dropTable','prototype','table\x20dropped\x20%s','originatecalleridnum','sequence','finally','exports','migration','Added\x20column\x20%s\x20to\x20%s','query','stringify','join','inspect','INTEGER','renameColumn','wechat','addIndex','originatecalleridname','routeid','changeColumn','catch','enqueue','removeIndex','cm_hopper_final','addColumn','final','addIndex\x20%s\x20%s\x20%s','cm_hopper_history','fb_data','STRING','queryInterface','info','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','removeColumn','tail'];(function(_0x3f8230,_0x28d87e){const _0x166594=function(_0x48f43b){while(--_0x48f43b){_0x3f8230['push'](_0x3f8230['shift']());}};_0x166594(++_0x28d87e);}(a952_0x28d8,0x88));const a952_0x1665=function(_0x3f8230,_0x28d87e){_0x3f8230=_0x3f8230-0x0;let _0x166594=a952_0x28d8[_0x3f8230];return _0x166594;};const _0x1dc393=a952_0x1665;'use strict';const util=require('util'),logger=require(_0x1dc393('0x10'))(_0x1dc393('0x18')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x48f43b){const _0x34fe1a=_0x1dc393;this[_0x34fe1a('0xf')]=this[_0x34fe1a('0xf')]?this[_0x34fe1a('0xf')][_0x34fe1a('0x16')](_0x48f43b):_0x48f43b();};const Migration=function(_0x11cc70){const _0x3b8508=_0x1dc393;this[_0x3b8508('0x9')]=_0x11cc70,this[_0x3b8508('0x15')]=new Sequence();};Migration[_0x1dc393('0x12')][_0x1dc393('0x24')]=function(_0x51e6f5,_0x172e77,_0x3be62f){const _0x3f3fb6=_0x1dc393,_0x4131d8=this;this[_0x3f3fb6('0x15')][_0x3f3fb6('0x0')](function(){const _0x54d1d8=_0x3f3fb6;return _0x4131d8[_0x54d1d8('0x9')][_0x54d1d8('0x24')](_0x51e6f5,_0x172e77,_0x3be62f)[_0x54d1d8('0xb')](function(){const _0x13fb03=_0x54d1d8;logger[_0x13fb03('0xa')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x172e77,_0x51e6f5);})[_0x54d1d8('0x25')](function(_0x56f909){const _0xd0b170=_0x54d1d8;logger[_0xd0b170('0xa')](JSON[_0xd0b170('0x1b')](_0x56f909));});});},Migration[_0x1dc393('0x12')][_0x1dc393('0x3')]=function(_0x43efb7,_0x462d21,_0x21570a){const _0x48eb01=_0x1dc393,_0x3b0834=this;this['sequence'][_0x48eb01('0x0')](function(){const _0x54c5a3=_0x48eb01;return _0x3b0834[_0x54c5a3('0x9')][_0x54c5a3('0x3')](_0x43efb7,_0x462d21,_0x21570a)[_0x54c5a3('0xb')](function(){const _0x37ea3a=_0x54c5a3;logger[_0x37ea3a('0xa')](_0x37ea3a('0x19'),_0x462d21,_0x43efb7);})['catch'](function(_0x2f979f){logger['info'](JSON['stringify'](_0x2f979f));});});},Migration[_0x1dc393('0x12')][_0x1dc393('0x11')]=function(_0x354c1f){const _0xd03641=_0x1dc393,_0x4e2f45=this;this[_0xd03641('0x15')][_0xd03641('0x0')](function(){const _0x5688bc=_0xd03641;return _0x4e2f45[_0x5688bc('0x9')][_0x5688bc('0x11')](_0x354c1f,{'force':!![]})[_0x5688bc('0xb')](function(){const _0x30b474=_0x5688bc;logger[_0x30b474('0xa')](_0x30b474('0x13'),_0x354c1f);})['catch'](function(_0x1a6f14){const _0x4953eb=_0x5688bc;logger[_0x4953eb('0xa')](JSON[_0x4953eb('0x1b')](_0x1a6f14));});});},Migration['prototype'][_0x1dc393('0x21')]=function(_0x2c21b0,_0x1e14df,_0x120380){const _0x17c972=_0x1dc393,_0x2f362f=this;this[_0x17c972('0x15')][_0x17c972('0x0')](function(){const _0x5bdc49=_0x17c972;return _0x2f362f[_0x5bdc49('0x9')][_0x5bdc49('0x21')](_0x2c21b0,_0x1e14df,{'indexName':_0x120380})['then'](function(){const _0x2d21c1=_0x5bdc49;logger[_0x2d21c1('0xa')](_0x2d21c1('0x5'),_0x2c21b0,_0x1e14df[_0x2d21c1('0x1c')](','),_0x120380);})[_0x5bdc49('0x25')](function(_0x3bcc52){const _0x368fd3=_0x5bdc49;logger[_0x368fd3('0xa')](JSON['stringify'](_0x3bcc52));});});},Migration[_0x1dc393('0x12')][_0x1dc393('0x1')]=function(_0x58b1c7,_0x258eda){const _0x1eaa11=_0x1dc393,_0x3b128e=this;this['sequence'][_0x1eaa11('0x0')](function(){const _0x1e2c0b=_0x1eaa11;return _0x3b128e[_0x1e2c0b('0x9')][_0x1e2c0b('0x1')](_0x58b1c7,_0x258eda)[_0x1e2c0b('0xb')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x58b1c7,_0x258eda);})['catch'](function(_0x2fc616){const _0xb2294c=_0x1e2c0b;logger[_0xb2294c('0xa')](JSON[_0xb2294c('0x1b')](_0x2fc616));});});},Migration[_0x1dc393('0x12')][_0x1dc393('0x1a')]=function(_0x31d269){const _0x48a185=_0x1dc393,_0xde5131=this;this[_0x48a185('0x15')][_0x48a185('0x0')](function(){const _0x351835=_0x48a185;return _0xde5131[_0x351835('0x9')]['sequelize'][_0x351835('0x1a')](_0x31d269)[_0x351835('0xb')](function(){const _0x565131=_0x351835;logger[_0x565131('0xa')]('query\x20%s',_0x31d269);})[_0x351835('0x25')](function(_0x5e3a92){const _0x1646bd=_0x351835;logger[_0x1646bd('0xa')](JSON[_0x1646bd('0x1b')](_0x5e3a92));});});},Migration[_0x1dc393('0x12')][_0x1dc393('0xe')]=function(_0x3a0cc1,_0x5abaee){const _0x27752d=_0x1dc393,_0x334af5=this;this[_0x27752d('0x15')]['enqueue'](function(){const _0x1a37c1=_0x27752d;return _0x334af5[_0x1a37c1('0x9')][_0x1a37c1('0xe')](_0x3a0cc1,_0x5abaee)[_0x1a37c1('0xb')](function(){const _0x2a0603=_0x1a37c1;logger[_0x2a0603('0xa')](_0x2a0603('0xd'),_0x5abaee,_0x3a0cc1);})[_0x1a37c1('0x25')](function(_0x1e3ac5){const _0xa52307=_0x1a37c1;logger[_0xa52307('0xa')](util['inspect'](_0x1e3ac5,{'showHidden':![],'depth':null}));});});},Migration[_0x1dc393('0x12')][_0x1dc393('0x1f')]=function(_0x3d099a,_0x2a4075,_0x98b029){const _0x3d23f1=_0x1dc393,_0x35e5d7=this;this[_0x3d23f1('0x15')][_0x3d23f1('0x0')](function(){const _0xb77817=_0x3d23f1;return _0x35e5d7['queryInterface']['renameColumn'](_0x3d099a,_0x2a4075,_0x98b029)[_0xb77817('0xb')](function(){const _0x304696=_0xb77817;logger[_0x304696('0xa')](_0x304696('0xc'),_0x2a4075,_0x98b029,_0x3d099a);})[_0xb77817('0x25')](function(_0x612a5e){const _0x47e3fd=_0xb77817;logger['info'](util[_0x47e3fd('0x1d')](_0x612a5e,{'showHidden':![],'depth':null}));});});},Migration[_0x1dc393('0x12')]['final']=function(_0x4b1c4d){const _0x54a6f0=_0x1dc393;this[_0x54a6f0('0x15')][_0x54a6f0('0x0')](function(){return _0x4b1c4d();});},module[_0x1dc393('0x17')]={'up':function(_0x29508e,_0x17108e){return new Promise(function(_0x5f42ee){const _0x33beaf=a952_0x1665,_0x596810=new Migration(_0x29508e);_0x596810[_0x33beaf('0x3')]('report_call',_0x33beaf('0x23'),{'type':_0x17108e[_0x33beaf('0x1e')]}),_0x596810['addColumn'](_0x33beaf('0x2'),_0x33beaf('0x14'),{'type':_0x17108e['STRING']}),_0x596810[_0x33beaf('0x3')](_0x33beaf('0x2'),'originatecalleridname',{'type':_0x17108e[_0x33beaf('0x8')]}),_0x596810[_0x33beaf('0x3')](_0x33beaf('0x6'),'originatecalleridnum',{'type':_0x17108e['STRING']}),_0x596810[_0x33beaf('0x3')](_0x33beaf('0x6'),_0x33beaf('0x22'),{'type':_0x17108e['STRING']}),_0x596810[_0x33beaf('0x3')]('cm_contacts',_0x33beaf('0x20'),{'type':_0x17108e[_0x33beaf('0x8')]}),_0x596810[_0x33beaf('0x3')]('cm_contacts',_0x33beaf('0x7'),{'type':_0x17108e[_0x33beaf('0x8')]}),_0x596810[_0x33beaf('0x4')](_0x5f42ee);});},'down':function(){}}; \ No newline at end of file +const a952_0x4789=['STRING','catch','removeIndex\x20%s\x20%s','join','routeid','queryInterface','Added\x20column\x20%s\x20to\x20%s','sequence','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','addColumn','cm_contacts','cm_hopper_final','addIndex','stringify','finally','prototype','final','cm_hopper_history','addIndex\x20%s\x20%s\x20%s','then','renameColumn','query\x20%s','removeIndex','inspect','originatecalleridname','query','changeColumn','INTEGER','tail','util','enqueue','table\x20dropped\x20%s','removeColumn','info','migration','dropTable'];(function(_0x2a6d7a,_0x478902){const _0x20f651=function(_0x1ac7ee){while(--_0x1ac7ee){_0x2a6d7a['push'](_0x2a6d7a['shift']());}};_0x20f651(++_0x478902);}(a952_0x4789,0xdf));const a952_0x20f6=function(_0x2a6d7a,_0x478902){_0x2a6d7a=_0x2a6d7a-0x0;let _0x20f651=a952_0x4789[_0x2a6d7a];return _0x20f651;};const _0x2bb420=a952_0x20f6;'use strict';const util=require(_0x2bb420('0x24')),logger=require('../config/logger')(_0x2bb420('0x3')),Sequence=function(){};Sequence[_0x2bb420('0x16')][_0x2bb420('0x25')]=function(_0x1ac7ee){const _0x351d1a=_0x2bb420;this[_0x351d1a('0x23')]=this[_0x351d1a('0x23')]?this[_0x351d1a('0x23')][_0x351d1a('0x15')](_0x1ac7ee):_0x1ac7ee();};const Migration=function(_0x169108){const _0x594e22=_0x2bb420;this['queryInterface']=_0x169108,this[_0x594e22('0xc')]=new Sequence();};Migration[_0x2bb420('0x16')][_0x2bb420('0x21')]=function(_0x31bf3a,_0x570f51,_0x37ae69){const _0x32d3b2=_0x2bb420,_0x208705=this;this[_0x32d3b2('0xc')][_0x32d3b2('0x25')](function(){const _0x37d5b3=_0x32d3b2;return _0x208705[_0x37d5b3('0xa')][_0x37d5b3('0x21')](_0x31bf3a,_0x570f51,_0x37ae69)[_0x37d5b3('0x1a')](function(){const _0x4d17fc=_0x37d5b3;logger['info'](_0x4d17fc('0xe'),_0x570f51,_0x31bf3a);})[_0x37d5b3('0x6')](function(_0x12e90d){const _0x1f5cbf=_0x37d5b3;logger[_0x1f5cbf('0x2')](JSON[_0x1f5cbf('0x14')](_0x12e90d));});});},Migration[_0x2bb420('0x16')][_0x2bb420('0x10')]=function(_0x1b37d1,_0x45f7c6,_0x26909f){const _0x2ff6f3=_0x2bb420,_0x5a4ea3=this;this[_0x2ff6f3('0xc')][_0x2ff6f3('0x25')](function(){const _0x2e1ba1=_0x2ff6f3;return _0x5a4ea3[_0x2e1ba1('0xa')][_0x2e1ba1('0x10')](_0x1b37d1,_0x45f7c6,_0x26909f)[_0x2e1ba1('0x1a')](function(){const _0xb50b42=_0x2e1ba1;logger['info'](_0xb50b42('0xb'),_0x45f7c6,_0x1b37d1);})[_0x2e1ba1('0x6')](function(_0x549ca7){const _0x185ad1=_0x2e1ba1;logger['info'](JSON[_0x185ad1('0x14')](_0x549ca7));});});},Migration['prototype'][_0x2bb420('0x4')]=function(_0x532a0f){const _0x402420=_0x2bb420,_0x557ecd=this;this[_0x402420('0xc')]['enqueue'](function(){const _0x4f07c9=_0x402420;return _0x557ecd[_0x4f07c9('0xa')][_0x4f07c9('0x4')](_0x532a0f,{'force':!![]})[_0x4f07c9('0x1a')](function(){const _0x37ce8d=_0x4f07c9;logger[_0x37ce8d('0x2')](_0x37ce8d('0x0'),_0x532a0f);})[_0x4f07c9('0x6')](function(_0xa2700d){const _0x43974b=_0x4f07c9;logger[_0x43974b('0x2')](JSON[_0x43974b('0x14')](_0xa2700d));});});},Migration['prototype'][_0x2bb420('0x13')]=function(_0x1a3033,_0x3fbf2e,_0x480efb){const _0x19c5fc=_0x2bb420,_0x2b3e0d=this;this['sequence'][_0x19c5fc('0x25')](function(){const _0x293a0e=_0x19c5fc;return _0x2b3e0d[_0x293a0e('0xa')][_0x293a0e('0x13')](_0x1a3033,_0x3fbf2e,{'indexName':_0x480efb})[_0x293a0e('0x1a')](function(){const _0x120038=_0x293a0e;logger[_0x120038('0x2')](_0x120038('0x19'),_0x1a3033,_0x3fbf2e[_0x120038('0x8')](','),_0x480efb);})['catch'](function(_0x1335f3){const _0x438bdf=_0x293a0e;logger[_0x438bdf('0x2')](JSON['stringify'](_0x1335f3));});});},Migration[_0x2bb420('0x16')]['removeIndex']=function(_0x399117,_0x3927fc){const _0x31b6b2=_0x2bb420,_0x53e690=this;this[_0x31b6b2('0xc')][_0x31b6b2('0x25')](function(){const _0x542170=_0x31b6b2;return _0x53e690['queryInterface'][_0x542170('0x1d')](_0x399117,_0x3927fc)[_0x542170('0x1a')](function(){const _0x2d1e85=_0x542170;logger[_0x2d1e85('0x2')](_0x2d1e85('0x7'),_0x399117,_0x3927fc);})[_0x542170('0x6')](function(_0x117022){const _0x229c6f=_0x542170;logger['info'](JSON[_0x229c6f('0x14')](_0x117022));});});},Migration[_0x2bb420('0x16')]['query']=function(_0x2b9bcd){const _0x4f19ee=_0x2bb420,_0x46288a=this;this[_0x4f19ee('0xc')]['enqueue'](function(){const _0x5ab15b=_0x4f19ee;return _0x46288a[_0x5ab15b('0xa')][_0x5ab15b('0xd')][_0x5ab15b('0x20')](_0x2b9bcd)[_0x5ab15b('0x1a')](function(){const _0x114ba1=_0x5ab15b;logger['info'](_0x114ba1('0x1c'),_0x2b9bcd);})['catch'](function(_0x15ba9a){const _0x5e24d4=_0x5ab15b;logger[_0x5e24d4('0x2')](JSON[_0x5e24d4('0x14')](_0x15ba9a));});});},Migration[_0x2bb420('0x16')][_0x2bb420('0x1')]=function(_0x4e738b,_0xa99718){const _0x56d9eb=_0x2bb420,_0x39a8a1=this;this[_0x56d9eb('0xc')][_0x56d9eb('0x25')](function(){const _0x27f145=_0x56d9eb;return _0x39a8a1[_0x27f145('0xa')][_0x27f145('0x1')](_0x4e738b,_0xa99718)[_0x27f145('0x1a')](function(){const _0x4ca18f=_0x27f145;logger[_0x4ca18f('0x2')]('Removed\x20column\x20%s\x20from\x20%s',_0xa99718,_0x4e738b);})[_0x27f145('0x6')](function(_0x2fc132){const _0x4d616f=_0x27f145;logger[_0x4d616f('0x2')](util[_0x4d616f('0x1e')](_0x2fc132,{'showHidden':![],'depth':null}));});});},Migration[_0x2bb420('0x16')][_0x2bb420('0x1b')]=function(_0x267757,_0x531d97,_0x5dabbf){const _0x254ac8=_0x2bb420,_0x2c1df3=this;this['sequence'][_0x254ac8('0x25')](function(){const _0x481c40=_0x254ac8;return _0x2c1df3['queryInterface'][_0x481c40('0x1b')](_0x267757,_0x531d97,_0x5dabbf)[_0x481c40('0x1a')](function(){const _0x1282fb=_0x481c40;logger[_0x1282fb('0x2')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x531d97,_0x5dabbf,_0x267757);})[_0x481c40('0x6')](function(_0x51d988){const _0x1a223b=_0x481c40;logger[_0x1a223b('0x2')](util[_0x1a223b('0x1e')](_0x51d988,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2bb420('0x17')]=function(_0x15838d){this['sequence']['enqueue'](function(){return _0x15838d();});},module[_0x2bb420('0xf')]={'up':function(_0x125ba9,_0x578f34){return new Promise(function(_0x1ec922){const _0x5448ed=a952_0x20f6,_0x1526a2=new Migration(_0x125ba9);_0x1526a2[_0x5448ed('0x10')]('report_call',_0x5448ed('0x9'),{'type':_0x578f34[_0x5448ed('0x22')]}),_0x1526a2['addColumn'](_0x5448ed('0x12'),'originatecalleridnum',{'type':_0x578f34[_0x5448ed('0x5')]}),_0x1526a2[_0x5448ed('0x10')](_0x5448ed('0x12'),_0x5448ed('0x1f'),{'type':_0x578f34[_0x5448ed('0x5')]}),_0x1526a2[_0x5448ed('0x10')](_0x5448ed('0x18'),'originatecalleridnum',{'type':_0x578f34[_0x5448ed('0x5')]}),_0x1526a2[_0x5448ed('0x10')](_0x5448ed('0x18'),_0x5448ed('0x1f'),{'type':_0x578f34[_0x5448ed('0x5')]}),_0x1526a2['addColumn'](_0x5448ed('0x11'),'wechat',{'type':_0x578f34[_0x5448ed('0x5')]}),_0x1526a2['addColumn']('cm_contacts','fb_data',{'type':_0x578f34['STRING']}),_0x1526a2['final'](_0x1ec922);});},'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 e15c148..d21f143 100644 --- a/server/migrations/2.0.74.js +++ b/server/migrations/2.0.74.js @@ -1 +1 @@ -const a953_0x5b77=['sequence','dropTable','addColumn','renameColumn','tail','exports','changeColumn','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype','util','info','enqueue','query\x20%s','inspect','addIndex','catch','removeIndex','final','finally','join','queryInterface','removeColumn','then','Added\x20column\x20%s\x20to\x20%s','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x2d19af,_0x5b7784){const _0x3c503e=function(_0x3c63f7){while(--_0x3c63f7){_0x2d19af['push'](_0x2d19af['shift']());}};_0x3c503e(++_0x5b7784);}(a953_0x5b77,0x1e8));const a953_0x3c50=function(_0x2d19af,_0x5b7784){_0x2d19af=_0x2d19af-0x0;let _0x3c503e=a953_0x5b77[_0x2d19af];return _0x3c503e;};const _0x2d7b5b=a953_0x3c50;'use strict';const util=require(_0x2d7b5b('0x10')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x2d7b5b('0x12')]=function(_0x3c63f7){const _0x18f09f=_0x2d7b5b;this[_0x18f09f('0xa')]=this[_0x18f09f('0xa')]?this[_0x18f09f('0xa')][_0x18f09f('0x19')](_0x3c63f7):_0x3c63f7();};const Migration=function(_0x1b031d){const _0x344a76=_0x2d7b5b;this[_0x344a76('0x1')]=_0x1b031d,this['sequence']=new Sequence();};Migration[_0x2d7b5b('0xf')][_0x2d7b5b('0xc')]=function(_0x1cd22a,_0x3efcea,_0x127fa3){const _0x5b5163=_0x2d7b5b,_0x3e0fef=this;this[_0x5b5163('0x6')][_0x5b5163('0x12')](function(){const _0x590a9f=_0x5b5163;return _0x3e0fef['queryInterface'][_0x590a9f('0xc')](_0x1cd22a,_0x3efcea,_0x127fa3)['then'](function(){const _0x2cb603=_0x590a9f;logger[_0x2cb603('0x11')](_0x2cb603('0xe'),_0x3efcea,_0x1cd22a);})[_0x590a9f('0x16')](function(_0x3a856a){const _0x139c48=_0x590a9f;logger[_0x139c48('0x11')](JSON[_0x139c48('0xd')](_0x3a856a));});});},Migration[_0x2d7b5b('0xf')][_0x2d7b5b('0x8')]=function(_0x112c0f,_0x24366f,_0x4698db){const _0x163a8f=_0x2d7b5b,_0x527f55=this;this[_0x163a8f('0x6')][_0x163a8f('0x12')](function(){const _0x5e6107=_0x163a8f;return _0x527f55['queryInterface'][_0x5e6107('0x8')](_0x112c0f,_0x24366f,_0x4698db)['then'](function(){const _0x31a70c=_0x5e6107;logger['info'](_0x31a70c('0x4'),_0x24366f,_0x112c0f);})[_0x5e6107('0x16')](function(_0x29c05d){logger['info'](JSON['stringify'](_0x29c05d));});});},Migration[_0x2d7b5b('0xf')][_0x2d7b5b('0x7')]=function(_0x2921a2){const _0x140f44=_0x2d7b5b,_0x13c456=this;this[_0x140f44('0x6')][_0x140f44('0x12')](function(){const _0x168ad3=_0x140f44;return _0x13c456[_0x168ad3('0x1')][_0x168ad3('0x7')](_0x2921a2,{'force':!![]})['then'](function(){const _0x1ecf00=_0x168ad3;logger[_0x1ecf00('0x11')]('table\x20dropped\x20%s',_0x2921a2);})['catch'](function(_0x3cb0f3){const _0x38f796=_0x168ad3;logger['info'](JSON[_0x38f796('0xd')](_0x3cb0f3));});});},Migration[_0x2d7b5b('0xf')]['addIndex']=function(_0x343be8,_0x35a841,_0x5e9a07){const _0x2af6c7=_0x2d7b5b,_0x2e8393=this;this[_0x2af6c7('0x6')][_0x2af6c7('0x12')](function(){const _0x49b1ac=_0x2af6c7;return _0x2e8393[_0x49b1ac('0x1')][_0x49b1ac('0x15')](_0x343be8,_0x35a841,{'indexName':_0x5e9a07})[_0x49b1ac('0x3')](function(){const _0x4f10ea=_0x49b1ac;logger[_0x4f10ea('0x11')]('addIndex\x20%s\x20%s\x20%s',_0x343be8,_0x35a841[_0x4f10ea('0x0')](','),_0x5e9a07);})[_0x49b1ac('0x16')](function(_0x4832b3){const _0x21eb84=_0x49b1ac;logger[_0x21eb84('0x11')](JSON[_0x21eb84('0xd')](_0x4832b3));});});},Migration[_0x2d7b5b('0xf')][_0x2d7b5b('0x17')]=function(_0x39cf23,_0x464c82){const _0x3e4dd0=_0x2d7b5b,_0x39b7cd=this;this[_0x3e4dd0('0x6')][_0x3e4dd0('0x12')](function(){const _0x2d7499=_0x3e4dd0;return _0x39b7cd[_0x2d7499('0x1')][_0x2d7499('0x17')](_0x39cf23,_0x464c82)[_0x2d7499('0x3')](function(){const _0x596b4a=_0x2d7499;logger[_0x596b4a('0x11')]('removeIndex\x20%s\x20%s',_0x39cf23,_0x464c82);})[_0x2d7499('0x16')](function(_0x425bc9){const _0x1e3a22=_0x2d7499;logger[_0x1e3a22('0x11')](JSON[_0x1e3a22('0xd')](_0x425bc9));});});},Migration[_0x2d7b5b('0xf')]['query']=function(_0x1f3567){const _0x150476=_0x2d7b5b,_0x495e63=this;this['sequence'][_0x150476('0x12')](function(){const _0x28fabb=_0x150476;return _0x495e63['queryInterface']['sequelize']['query'](_0x1f3567)['then'](function(){const _0x4e8a83=a953_0x3c50;logger['info'](_0x4e8a83('0x13'),_0x1f3567);})[_0x28fabb('0x16')](function(_0x84227e){const _0x188ca7=_0x28fabb;logger[_0x188ca7('0x11')](JSON['stringify'](_0x84227e));});});},Migration[_0x2d7b5b('0xf')][_0x2d7b5b('0x2')]=function(_0x59353f,_0x183b0d){const _0x5aa3dc=this;this['sequence']['enqueue'](function(){const _0x4f1dfe=a953_0x3c50;return _0x5aa3dc[_0x4f1dfe('0x1')][_0x4f1dfe('0x2')](_0x59353f,_0x183b0d)[_0x4f1dfe('0x3')](function(){const _0x353675=_0x4f1dfe;logger[_0x353675('0x11')](_0x353675('0x5'),_0x183b0d,_0x59353f);})[_0x4f1dfe('0x16')](function(_0x5c9e97){const _0x3a16f5=_0x4f1dfe;logger[_0x3a16f5('0x11')](util[_0x3a16f5('0x14')](_0x5c9e97,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2d7b5b('0x9')]=function(_0x2e646e,_0x132e1c,_0x31a731){const _0x9241f5=_0x2d7b5b,_0x3ca4dd=this;this[_0x9241f5('0x6')]['enqueue'](function(){const _0x2487d5=_0x9241f5;return _0x3ca4dd['queryInterface']['renameColumn'](_0x2e646e,_0x132e1c,_0x31a731)[_0x2487d5('0x3')](function(){const _0x5d31e7=_0x2487d5;logger[_0x5d31e7('0x11')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x132e1c,_0x31a731,_0x2e646e);})['catch'](function(_0x35d3f0){const _0x2e30ff=_0x2487d5;logger[_0x2e30ff('0x11')](util[_0x2e30ff('0x14')](_0x35d3f0,{'showHidden':![],'depth':null}));});});},Migration[_0x2d7b5b('0xf')][_0x2d7b5b('0x18')]=function(_0x1eab00){const _0x14d3a8=_0x2d7b5b;this[_0x14d3a8('0x6')][_0x14d3a8('0x12')](function(){return _0x1eab00();});},module[_0x2d7b5b('0xb')]={'up':function(_0x159781){return new Promise(function(_0x4c8c35){const _0x3b049c=a953_0x3c50,_0x1e01ea=new Migration(_0x159781);_0x1e01ea[_0x3b049c('0x18')](_0x4c8c35);});},'down':function(){}}; \ No newline at end of file +const a953_0x33ea=['../config/logger','table\x20dropped\x20%s','addIndex','final','tail','finally','Added\x20column\x20%s\x20to\x20%s','info','changeColumn','inspect','query\x20%s','query','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','queryInterface','dropTable','renameColumn','then','join','removeColumn','util','Removed\x20column\x20%s\x20from\x20%s','sequelize','stringify','migration','sequence','enqueue','prototype','addIndex\x20%s\x20%s\x20%s','addColumn','catch'];(function(_0x57d103,_0x33eab9){const _0x5eca99=function(_0x1780b3){while(--_0x1780b3){_0x57d103['push'](_0x57d103['shift']());}};_0x5eca99(++_0x33eab9);}(a953_0x33ea,0x1b9));const a953_0x5eca=function(_0x57d103,_0x33eab9){_0x57d103=_0x57d103-0x0;let _0x5eca99=a953_0x33ea[_0x57d103];return _0x5eca99;};const _0x3717d6=a953_0x5eca;'use strict';const util=require(_0x3717d6('0xd')),logger=require(_0x3717d6('0x18'))(_0x3717d6('0x11')),Sequence=function(){};Sequence[_0x3717d6('0x14')][_0x3717d6('0x13')]=function(_0x1780b3){const _0x440f34=_0x3717d6;this['tail']=this[_0x440f34('0x1c')]?this[_0x440f34('0x1c')][_0x440f34('0x1d')](_0x1780b3):_0x1780b3();};const Migration=function(_0x2a14d8){const _0xd1fba=_0x3717d6;this[_0xd1fba('0x7')]=_0x2a14d8,this[_0xd1fba('0x12')]=new Sequence();};Migration[_0x3717d6('0x14')]['changeColumn']=function(_0x441c5f,_0x469fbd,_0x1f0f90){const _0x5b65a5=_0x3717d6,_0xe76da8=this;this[_0x5b65a5('0x12')]['enqueue'](function(){const _0x61499f=_0x5b65a5;return _0xe76da8[_0x61499f('0x7')][_0x61499f('0x1')](_0x441c5f,_0x469fbd,_0x1f0f90)['then'](function(){const _0x269ada=_0x61499f;logger[_0x269ada('0x0')](_0x269ada('0x5'),_0x469fbd,_0x441c5f);})[_0x61499f('0x17')](function(_0x12189c){logger['info'](JSON['stringify'](_0x12189c));});});},Migration[_0x3717d6('0x14')][_0x3717d6('0x16')]=function(_0x47ba50,_0x177649,_0x315e56){const _0x7daf82=_0x3717d6,_0x1f1a67=this;this[_0x7daf82('0x12')][_0x7daf82('0x13')](function(){const _0x276725=_0x7daf82;return _0x1f1a67['queryInterface'][_0x276725('0x16')](_0x47ba50,_0x177649,_0x315e56)[_0x276725('0xa')](function(){const _0xe869b6=_0x276725;logger[_0xe869b6('0x0')](_0xe869b6('0x1e'),_0x177649,_0x47ba50);})[_0x276725('0x17')](function(_0x197e19){const _0x107312=_0x276725;logger['info'](JSON[_0x107312('0x10')](_0x197e19));});});},Migration[_0x3717d6('0x14')][_0x3717d6('0x8')]=function(_0x4b1e1a){const _0x2f3d4a=_0x3717d6,_0x5479bb=this;this[_0x2f3d4a('0x12')][_0x2f3d4a('0x13')](function(){const _0x168cfb=_0x2f3d4a;return _0x5479bb[_0x168cfb('0x7')][_0x168cfb('0x8')](_0x4b1e1a,{'force':!![]})[_0x168cfb('0xa')](function(){const _0x17986a=_0x168cfb;logger[_0x17986a('0x0')](_0x17986a('0x19'),_0x4b1e1a);})[_0x168cfb('0x17')](function(_0x49bef5){logger['info'](JSON['stringify'](_0x49bef5));});});},Migration[_0x3717d6('0x14')][_0x3717d6('0x1a')]=function(_0x1944d9,_0x594dc1,_0x4673a0){const _0x3d2ad8=_0x3717d6,_0x5d36d0=this;this['sequence'][_0x3d2ad8('0x13')](function(){const _0x2d3359=_0x3d2ad8;return _0x5d36d0[_0x2d3359('0x7')][_0x2d3359('0x1a')](_0x1944d9,_0x594dc1,{'indexName':_0x4673a0})[_0x2d3359('0xa')](function(){const _0x55ea1a=_0x2d3359;logger[_0x55ea1a('0x0')](_0x55ea1a('0x15'),_0x1944d9,_0x594dc1[_0x55ea1a('0xb')](','),_0x4673a0);})[_0x2d3359('0x17')](function(_0x5f0fa5){const _0x538805=_0x2d3359;logger[_0x538805('0x0')](JSON['stringify'](_0x5f0fa5));});});},Migration[_0x3717d6('0x14')][_0x3717d6('0x6')]=function(_0x3321ae,_0x1c5d1a){const _0x47e117=_0x3717d6,_0x2093de=this;this[_0x47e117('0x12')][_0x47e117('0x13')](function(){const _0x16dbf3=_0x47e117;return _0x2093de[_0x16dbf3('0x7')]['removeIndex'](_0x3321ae,_0x1c5d1a)[_0x16dbf3('0xa')](function(){const _0x2e025e=_0x16dbf3;logger[_0x2e025e('0x0')]('removeIndex\x20%s\x20%s',_0x3321ae,_0x1c5d1a);})[_0x16dbf3('0x17')](function(_0x52807f){const _0x1f33dc=_0x16dbf3;logger[_0x1f33dc('0x0')](JSON[_0x1f33dc('0x10')](_0x52807f));});});},Migration[_0x3717d6('0x14')]['query']=function(_0x3861a8){const _0x48ecb1=_0x3717d6,_0x902115=this;this[_0x48ecb1('0x12')][_0x48ecb1('0x13')](function(){const _0x343905=_0x48ecb1;return _0x902115['queryInterface'][_0x343905('0xf')][_0x343905('0x4')](_0x3861a8)['then'](function(){const _0x1617c3=_0x343905;logger[_0x1617c3('0x0')](_0x1617c3('0x3'),_0x3861a8);})[_0x343905('0x17')](function(_0x41fd7a){const _0x519f4e=_0x343905;logger[_0x519f4e('0x0')](JSON['stringify'](_0x41fd7a));});});},Migration[_0x3717d6('0x14')][_0x3717d6('0xc')]=function(_0x1d3aad,_0x20a4f3){const _0x46447e=_0x3717d6,_0x1bbd93=this;this['sequence'][_0x46447e('0x13')](function(){const _0x2769ef=_0x46447e;return _0x1bbd93[_0x2769ef('0x7')][_0x2769ef('0xc')](_0x1d3aad,_0x20a4f3)[_0x2769ef('0xa')](function(){const _0x19766d=_0x2769ef;logger[_0x19766d('0x0')](_0x19766d('0xe'),_0x20a4f3,_0x1d3aad);})[_0x2769ef('0x17')](function(_0x3d3960){const _0x66a582=_0x2769ef;logger['info'](util[_0x66a582('0x2')](_0x3d3960,{'showHidden':![],'depth':null}));});});},Migration[_0x3717d6('0x14')][_0x3717d6('0x9')]=function(_0x2d61da,_0x45cb38,_0xe864c8){const _0x19cfd5=_0x3717d6,_0x2a3c81=this;this[_0x19cfd5('0x12')][_0x19cfd5('0x13')](function(){const _0x58cad3=_0x19cfd5;return _0x2a3c81[_0x58cad3('0x7')][_0x58cad3('0x9')](_0x2d61da,_0x45cb38,_0xe864c8)[_0x58cad3('0xa')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x45cb38,_0xe864c8,_0x2d61da);})[_0x58cad3('0x17')](function(_0x48865f){const _0x33f54a=_0x58cad3;logger[_0x33f54a('0x0')](util[_0x33f54a('0x2')](_0x48865f,{'showHidden':![],'depth':null}));});});},Migration[_0x3717d6('0x14')][_0x3717d6('0x1b')]=function(_0xbac5d6){const _0x5380a8=_0x3717d6;this['sequence'][_0x5380a8('0x13')](function(){return _0xbac5d6();});},module['exports']={'up':function(_0x4f9590){return new Promise(function(_0x240ad0){const _0x4d6297=a953_0x5eca,_0xda0b45=new Migration(_0x4f9590);_0xda0b45[_0x4d6297('0x1b')](_0x240ad0);});},'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 c094435..bfc945e 100644 --- a/server/migrations/2.0.75.js +++ b/server/migrations/2.0.75.js @@ -1 +1 @@ -const a954_0x56fa=['query','queryInterface','addIndex','renameColumn','sequence','inspect','final','Changed\x20column\x20%s\x20in\x20table\x20%s','info','../config/logger','then','enqueue','prototype','Removed\x20column\x20%s\x20from\x20%s','tail','addIndex\x20%s\x20%s\x20%s','addColumn','table\x20dropped\x20%s','sequelize','removeIndex','catch','dropTable','stringify','finally','Added\x20column\x20%s\x20to\x20%s','query\x20%s','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x1e13dc,_0x56fa54){const _0x24bc2d=function(_0x6bad17){while(--_0x6bad17){_0x1e13dc['push'](_0x1e13dc['shift']());}};_0x24bc2d(++_0x56fa54);}(a954_0x56fa,0x81));const a954_0x24bc=function(_0x1e13dc,_0x56fa54){_0x1e13dc=_0x1e13dc-0x0;let _0x24bc2d=a954_0x56fa[_0x1e13dc];return _0x24bc2d;};const _0x40dc86=a954_0x24bc;'use strict';const util=require('util'),logger=require(_0x40dc86('0x14'))('migration'),Sequence=function(){};Sequence[_0x40dc86('0x17')][_0x40dc86('0x16')]=function(_0x6bad17){const _0x5b4d5f=_0x40dc86;this[_0x5b4d5f('0x19')]=this[_0x5b4d5f('0x19')]?this[_0x5b4d5f('0x19')][_0x5b4d5f('0x6')](_0x6bad17):_0x6bad17();};const Migration=function(_0x57184d){const _0x436763=_0x40dc86;this[_0x436763('0xc')]=_0x57184d,this['sequence']=new Sequence();};Migration[_0x40dc86('0x17')]['changeColumn']=function(_0x28d2ae,_0x57565b,_0x463fec){const _0x1ff9c1=_0x40dc86,_0x149982=this;this[_0x1ff9c1('0xf')][_0x1ff9c1('0x16')](function(){const _0x4852d9=_0x1ff9c1;return _0x149982[_0x4852d9('0xc')]['changeColumn'](_0x28d2ae,_0x57565b,_0x463fec)[_0x4852d9('0x15')](function(){const _0x2ede47=_0x4852d9;logger['info'](_0x2ede47('0x12'),_0x57565b,_0x28d2ae);})[_0x4852d9('0x3')](function(_0x24aac4){const _0xd37664=_0x4852d9;logger[_0xd37664('0x13')](JSON[_0xd37664('0x5')](_0x24aac4));});});},Migration['prototype'][_0x40dc86('0x1b')]=function(_0x5a5a7a,_0x56c7cb,_0x2a2295){const _0x519c88=_0x40dc86,_0x1a3dd5=this;this[_0x519c88('0xf')][_0x519c88('0x16')](function(){const _0x44bf00=_0x519c88;return _0x1a3dd5[_0x44bf00('0xc')][_0x44bf00('0x1b')](_0x5a5a7a,_0x56c7cb,_0x2a2295)[_0x44bf00('0x15')](function(){const _0x1c8f9e=_0x44bf00;logger[_0x1c8f9e('0x13')](_0x1c8f9e('0x7'),_0x56c7cb,_0x5a5a7a);})[_0x44bf00('0x3')](function(_0x4fac50){const _0x321650=_0x44bf00;logger[_0x321650('0x13')](JSON[_0x321650('0x5')](_0x4fac50));});});},Migration['prototype'][_0x40dc86('0x4')]=function(_0x517cce){const _0x25f8dc=_0x40dc86,_0x1d4812=this;this['sequence'][_0x25f8dc('0x16')](function(){const _0x29a9c2=_0x25f8dc;return _0x1d4812[_0x29a9c2('0xc')][_0x29a9c2('0x4')](_0x517cce,{'force':!![]})[_0x29a9c2('0x15')](function(){const _0x62e841=_0x29a9c2;logger[_0x62e841('0x13')](_0x62e841('0x0'),_0x517cce);})[_0x29a9c2('0x3')](function(_0x756de1){const _0x2e2210=_0x29a9c2;logger[_0x2e2210('0x13')](JSON['stringify'](_0x756de1));});});},Migration[_0x40dc86('0x17')][_0x40dc86('0xd')]=function(_0x17b0ec,_0x1537ff,_0xe0d6bb){const _0x150ef1=_0x40dc86,_0x50c0c=this;this[_0x150ef1('0xf')]['enqueue'](function(){const _0xb03391=_0x150ef1;return _0x50c0c[_0xb03391('0xc')][_0xb03391('0xd')](_0x17b0ec,_0x1537ff,{'indexName':_0xe0d6bb})[_0xb03391('0x15')](function(){const _0x44a201=_0xb03391;logger[_0x44a201('0x13')](_0x44a201('0x1a'),_0x17b0ec,_0x1537ff['join'](','),_0xe0d6bb);})[_0xb03391('0x3')](function(_0x41d422){const _0x2874f0=_0xb03391;logger[_0x2874f0('0x13')](JSON[_0x2874f0('0x5')](_0x41d422));});});},Migration[_0x40dc86('0x17')][_0x40dc86('0x2')]=function(_0x48af33,_0x1de25e){const _0x4889ba=_0x40dc86,_0x2e6c1a=this;this['sequence'][_0x4889ba('0x16')](function(){const _0x1a3470=_0x4889ba;return _0x2e6c1a[_0x1a3470('0xc')][_0x1a3470('0x2')](_0x48af33,_0x1de25e)[_0x1a3470('0x15')](function(){const _0x110b78=_0x1a3470;logger[_0x110b78('0x13')](_0x110b78('0x9'),_0x48af33,_0x1de25e);})[_0x1a3470('0x3')](function(_0x117fb9){const _0x2f851b=_0x1a3470;logger[_0x2f851b('0x13')](JSON[_0x2f851b('0x5')](_0x117fb9));});});},Migration['prototype'][_0x40dc86('0xb')]=function(_0x261afa){const _0x271850=_0x40dc86,_0x3ddebe=this;this[_0x271850('0xf')]['enqueue'](function(){const _0x543d81=_0x271850;return _0x3ddebe['queryInterface'][_0x543d81('0x1')][_0x543d81('0xb')](_0x261afa)[_0x543d81('0x15')](function(){const _0x425b04=_0x543d81;logger[_0x425b04('0x13')](_0x425b04('0x8'),_0x261afa);})['catch'](function(_0x241a9c){const _0x4524ff=_0x543d81;logger[_0x4524ff('0x13')](JSON[_0x4524ff('0x5')](_0x241a9c));});});},Migration[_0x40dc86('0x17')]['removeColumn']=function(_0x5eea97,_0x5cdc7d){const _0x35b1bb=_0x40dc86,_0x2d275b=this;this[_0x35b1bb('0xf')][_0x35b1bb('0x16')](function(){const _0x30dcc8=_0x35b1bb;return _0x2d275b[_0x30dcc8('0xc')]['removeColumn'](_0x5eea97,_0x5cdc7d)['then'](function(){const _0x1c9c89=_0x30dcc8;logger['info'](_0x1c9c89('0x18'),_0x5cdc7d,_0x5eea97);})['catch'](function(_0x44ac3a){const _0x56e5e7=_0x30dcc8;logger[_0x56e5e7('0x13')](util[_0x56e5e7('0x10')](_0x44ac3a,{'showHidden':![],'depth':null}));});});},Migration[_0x40dc86('0x17')]['renameColumn']=function(_0x333038,_0x418775,_0x25774d){const _0x22db7c=_0x40dc86,_0x224ed7=this;this[_0x22db7c('0xf')]['enqueue'](function(){const _0x391ba2=_0x22db7c;return _0x224ed7[_0x391ba2('0xc')][_0x391ba2('0xe')](_0x333038,_0x418775,_0x25774d)[_0x391ba2('0x15')](function(){const _0x1c8afc=_0x391ba2;logger['info'](_0x1c8afc('0xa'),_0x418775,_0x25774d,_0x333038);})[_0x391ba2('0x3')](function(_0x1a70a4){const _0x1d6d8b=_0x391ba2;logger[_0x1d6d8b('0x13')](util['inspect'](_0x1a70a4,{'showHidden':![],'depth':null}));});});},Migration[_0x40dc86('0x17')][_0x40dc86('0x11')]=function(_0x57844e){const _0x436967=_0x40dc86;this[_0x436967('0xf')][_0x436967('0x16')](function(){return _0x57844e();});},module['exports']={'up':function(_0xa4e42e){return new Promise(function(_0x372c5e){const _0x1a6606=a954_0x24bc,_0x79dc4b=new Migration(_0xa4e42e);_0x79dc4b[_0x1a6606('0x11')](_0x372c5e);});},'down':function(){}}; \ No newline at end of file +const a954_0x3812=['inspect','addIndex\x20%s\x20%s\x20%s','addIndex','Added\x20column\x20%s\x20to\x20%s','sequelize','finally','catch','renameColumn','queryInterface','final','stringify','table\x20dropped\x20%s','prototype','enqueue','query\x20%s','dropTable','info','sequence','../config/logger','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','query','Removed\x20column\x20%s\x20from\x20%s','tail','removeIndex','changeColumn','join','addColumn','exports','then'];(function(_0x39ade8,_0x381270){const _0x48b6e9=function(_0x39224f){while(--_0x39224f){_0x39ade8['push'](_0x39ade8['shift']());}};_0x48b6e9(++_0x381270);}(a954_0x3812,0x83));const a954_0x48b6=function(_0x39ade8,_0x381270){_0x39ade8=_0x39ade8-0x0;let _0x48b6e9=a954_0x3812[_0x39ade8];return _0x48b6e9;};const _0x3f8bc7=a954_0x48b6;'use strict';const util=require('util'),logger=require(_0x3f8bc7('0xb'))('migration'),Sequence=function(){};Sequence[_0x3f8bc7('0x5')][_0x3f8bc7('0x6')]=function(_0x39224f){const _0x26d0f7=_0x3f8bc7;this[_0x26d0f7('0x11')]=this['tail']?this['tail'][_0x26d0f7('0x1d')](_0x39224f):_0x39224f();};const Migration=function(_0x43b2af){const _0x150203=_0x3f8bc7;this[_0x150203('0x1')]=_0x43b2af,this[_0x150203('0xa')]=new Sequence();};Migration[_0x3f8bc7('0x5')][_0x3f8bc7('0x13')]=function(_0x24cf65,_0xf665dd,_0x2b1f01){const _0x1213e3=_0x3f8bc7,_0x18e485=this;this['sequence'][_0x1213e3('0x6')](function(){const _0x23769e=_0x1213e3;return _0x18e485['queryInterface']['changeColumn'](_0x24cf65,_0xf665dd,_0x2b1f01)['then'](function(){const _0x439c17=a954_0x48b6;logger['info'](_0x439c17('0xe'),_0xf665dd,_0x24cf65);})[_0x23769e('0x1e')](function(_0x446fae){const _0xde00f2=_0x23769e;logger[_0xde00f2('0x9')](JSON['stringify'](_0x446fae));});});},Migration['prototype'][_0x3f8bc7('0x15')]=function(_0x279268,_0x68b3b5,_0x2a2c32){const _0x4913a3=_0x3f8bc7,_0x34a26d=this;this[_0x4913a3('0xa')][_0x4913a3('0x6')](function(){const _0xe2c436=_0x4913a3;return _0x34a26d[_0xe2c436('0x1')]['addColumn'](_0x279268,_0x68b3b5,_0x2a2c32)[_0xe2c436('0x17')](function(){const _0xdbe735=_0xe2c436;logger[_0xdbe735('0x9')](_0xdbe735('0x1b'),_0x68b3b5,_0x279268);})[_0xe2c436('0x1e')](function(_0xaaf58c){const _0x271d8b=_0xe2c436;logger[_0x271d8b('0x9')](JSON[_0x271d8b('0x3')](_0xaaf58c));});});},Migration['prototype'][_0x3f8bc7('0x8')]=function(_0x515a51){const _0x2f5cb9=_0x3f8bc7,_0x33b0e0=this;this['sequence'][_0x2f5cb9('0x6')](function(){const _0x4771e7=_0x2f5cb9;return _0x33b0e0[_0x4771e7('0x1')][_0x4771e7('0x8')](_0x515a51,{'force':!![]})['then'](function(){const _0x53a4fa=_0x4771e7;logger[_0x53a4fa('0x9')](_0x53a4fa('0x4'),_0x515a51);})[_0x4771e7('0x1e')](function(_0x1059d5){const _0x39f9c9=_0x4771e7;logger[_0x39f9c9('0x9')](JSON[_0x39f9c9('0x3')](_0x1059d5));});});},Migration[_0x3f8bc7('0x5')]['addIndex']=function(_0x4ed127,_0x51d34f,_0xb7a514){const _0x84e52=_0x3f8bc7,_0x3ad8af=this;this[_0x84e52('0xa')][_0x84e52('0x6')](function(){const _0x5d58e2=_0x84e52;return _0x3ad8af[_0x5d58e2('0x1')][_0x5d58e2('0x1a')](_0x4ed127,_0x51d34f,{'indexName':_0xb7a514})[_0x5d58e2('0x17')](function(){const _0x5c938b=_0x5d58e2;logger[_0x5c938b('0x9')](_0x5c938b('0x19'),_0x4ed127,_0x51d34f[_0x5c938b('0x14')](','),_0xb7a514);})['catch'](function(_0xa3fd2f){const _0x4996fd=_0x5d58e2;logger[_0x4996fd('0x9')](JSON[_0x4996fd('0x3')](_0xa3fd2f));});});},Migration[_0x3f8bc7('0x5')][_0x3f8bc7('0x12')]=function(_0x448f07,_0x2236b9){const _0x41d392=this;this['sequence']['enqueue'](function(){const _0x58cf70=a954_0x48b6;return _0x41d392[_0x58cf70('0x1')]['removeIndex'](_0x448f07,_0x2236b9)[_0x58cf70('0x17')](function(){const _0x2e70b6=_0x58cf70;logger[_0x2e70b6('0x9')](_0x2e70b6('0xc'),_0x448f07,_0x2236b9);})[_0x58cf70('0x1e')](function(_0x3ea606){const _0x2de126=_0x58cf70;logger['info'](JSON[_0x2de126('0x3')](_0x3ea606));});});},Migration[_0x3f8bc7('0x5')][_0x3f8bc7('0xf')]=function(_0xa323eb){const _0x1e6ff0=_0x3f8bc7,_0x38a138=this;this[_0x1e6ff0('0xa')][_0x1e6ff0('0x6')](function(){const _0x40fc6f=_0x1e6ff0;return _0x38a138[_0x40fc6f('0x1')][_0x40fc6f('0x1c')]['query'](_0xa323eb)['then'](function(){const _0x3920fc=_0x40fc6f;logger[_0x3920fc('0x9')](_0x3920fc('0x7'),_0xa323eb);})[_0x40fc6f('0x1e')](function(_0x407d49){const _0x5d5b9a=_0x40fc6f;logger[_0x5d5b9a('0x9')](JSON[_0x5d5b9a('0x3')](_0x407d49));});});},Migration[_0x3f8bc7('0x5')]['removeColumn']=function(_0xc291a4,_0x213df1){const _0x557e22=_0x3f8bc7,_0x1cc6b5=this;this['sequence'][_0x557e22('0x6')](function(){const _0x43bb5c=_0x557e22;return _0x1cc6b5[_0x43bb5c('0x1')]['removeColumn'](_0xc291a4,_0x213df1)[_0x43bb5c('0x17')](function(){const _0x5ea66a=_0x43bb5c;logger[_0x5ea66a('0x9')](_0x5ea66a('0x10'),_0x213df1,_0xc291a4);})[_0x43bb5c('0x1e')](function(_0x555d9a){const _0x3312e5=_0x43bb5c;logger[_0x3312e5('0x9')](util[_0x3312e5('0x18')](_0x555d9a,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3f8bc7('0x0')]=function(_0x5b6b13,_0x32f2c3,_0xdbf39d){const _0x275615=_0x3f8bc7,_0x89cec8=this;this[_0x275615('0xa')][_0x275615('0x6')](function(){const _0x29a9ea=_0x275615;return _0x89cec8[_0x29a9ea('0x1')][_0x29a9ea('0x0')](_0x5b6b13,_0x32f2c3,_0xdbf39d)['then'](function(){const _0x5de32b=_0x29a9ea;logger[_0x5de32b('0x9')](_0x5de32b('0xd'),_0x32f2c3,_0xdbf39d,_0x5b6b13);})[_0x29a9ea('0x1e')](function(_0x52cfa6){const _0x3ad1cd=_0x29a9ea;logger[_0x3ad1cd('0x9')](util[_0x3ad1cd('0x18')](_0x52cfa6,{'showHidden':![],'depth':null}));});});},Migration[_0x3f8bc7('0x5')][_0x3f8bc7('0x2')]=function(_0x523fcc){const _0x6d53d6=_0x3f8bc7;this[_0x6d53d6('0xa')][_0x6d53d6('0x6')](function(){return _0x523fcc();});},module[_0x3f8bc7('0x16')]={'up':function(_0x5e0dc1){return new Promise(function(_0xf8bd3f){const _0x53c6db=new Migration(_0x5e0dc1);_0x53c6db['final'](_0xf8bd3f);});},'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 1eb7636..6bbdb49 100644 --- a/server/migrations/2.0.76.js +++ b/server/migrations/2.0.76.js @@ -1 +1 @@ -const a955_0x57cb=['then','info','enqueue','prototype','addColumn','dropTable','ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;','stringify','util','table\x20dropped\x20%s','addIndex','ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;','removeColumn','../config/logger','ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;','sequence','removeIndex\x20%s\x20%s','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex','inspect','migration','hotdesk','addIndex\x20%s\x20%s\x20%s','query','ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;','Added\x20column\x20%s\x20to\x20%s','renameColumn','final','tail','users','sequelize','Removed\x20column\x20%s\x20from\x20%s','queryInterface','exports','BOOLEAN','finally','catch'];(function(_0x5892a0,_0x57cb75){const _0x39a876=function(_0x3b2324){while(--_0x3b2324){_0x5892a0['push'](_0x5892a0['shift']());}};_0x39a876(++_0x57cb75);}(a955_0x57cb,0x191));const a955_0x39a8=function(_0x5892a0,_0x57cb75){_0x5892a0=_0x5892a0-0x0;let _0x39a876=a955_0x57cb[_0x5892a0];return _0x39a876;};const _0x568eaf=a955_0x39a8;'use strict';const util=require(_0x568eaf('0x19')),logger=require(_0x568eaf('0x1e'))(_0x568eaf('0x0')),Sequence=function(){};Sequence[_0x568eaf('0x14')]['enqueue']=function(_0x3b2324){const _0x4fcc20=_0x568eaf;this[_0x4fcc20('0x8')]=this['tail']?this['tail'][_0x4fcc20('0xf')](_0x3b2324):_0x3b2324();};const Migration=function(_0x4a8253){const _0x190547=_0x568eaf;this[_0x190547('0xc')]=_0x4a8253,this[_0x190547('0x20')]=new Sequence();};Migration[_0x568eaf('0x14')][_0x568eaf('0x22')]=function(_0x20bf3d,_0x3a4239,_0x446ddf){const _0x5877e6=_0x568eaf,_0x13ab64=this;this[_0x5877e6('0x20')]['enqueue'](function(){const _0x312f51=_0x5877e6;return _0x13ab64[_0x312f51('0xc')]['changeColumn'](_0x20bf3d,_0x3a4239,_0x446ddf)[_0x312f51('0x11')](function(){const _0x4a8d9f=_0x312f51;logger[_0x4a8d9f('0x12')](_0x4a8d9f('0x23'),_0x3a4239,_0x20bf3d);})['catch'](function(_0x2c682d){const _0x276b44=_0x312f51;logger['info'](JSON[_0x276b44('0x18')](_0x2c682d));});});},Migration[_0x568eaf('0x14')][_0x568eaf('0x15')]=function(_0x409064,_0x13ab00,_0x4ebf98){const _0x3b0c1b=_0x568eaf,_0x282aa1=this;this[_0x3b0c1b('0x20')]['enqueue'](function(){const _0x17c96f=_0x3b0c1b;return _0x282aa1[_0x17c96f('0xc')][_0x17c96f('0x15')](_0x409064,_0x13ab00,_0x4ebf98)['then'](function(){const _0x4efb91=_0x17c96f;logger['info'](_0x4efb91('0x5'),_0x13ab00,_0x409064);})[_0x17c96f('0x10')](function(_0x3cd483){const _0x205aa4=_0x17c96f;logger[_0x205aa4('0x12')](JSON['stringify'](_0x3cd483));});});},Migration[_0x568eaf('0x14')]['dropTable']=function(_0x1d140d){const _0x3e27d1=this;this['sequence']['enqueue'](function(){const _0x114562=a955_0x39a8;return _0x3e27d1['queryInterface'][_0x114562('0x16')](_0x1d140d,{'force':!![]})['then'](function(){const _0x4b6f94=_0x114562;logger[_0x4b6f94('0x12')](_0x4b6f94('0x1a'),_0x1d140d);})[_0x114562('0x10')](function(_0x53fd62){const _0x27c3ee=_0x114562;logger[_0x27c3ee('0x12')](JSON['stringify'](_0x53fd62));});});},Migration[_0x568eaf('0x14')][_0x568eaf('0x1b')]=function(_0x43bece,_0x3d448f,_0x43a520){const _0x353f29=_0x568eaf,_0x339355=this;this['sequence'][_0x353f29('0x13')](function(){const _0x222d34=_0x353f29;return _0x339355['queryInterface'][_0x222d34('0x1b')](_0x43bece,_0x3d448f,{'indexName':_0x43a520})[_0x222d34('0x11')](function(){const _0x18b74d=_0x222d34;logger['info'](_0x18b74d('0x2'),_0x43bece,_0x3d448f['join'](','),_0x43a520);})[_0x222d34('0x10')](function(_0x1eb893){const _0x486efc=_0x222d34;logger[_0x486efc('0x12')](JSON['stringify'](_0x1eb893));});});},Migration[_0x568eaf('0x14')][_0x568eaf('0x24')]=function(_0x471055,_0x57e931){const _0x21d1d5=_0x568eaf,_0x5160a6=this;this['sequence'][_0x21d1d5('0x13')](function(){const _0x58be93=_0x21d1d5;return _0x5160a6[_0x58be93('0xc')][_0x58be93('0x24')](_0x471055,_0x57e931)[_0x58be93('0x11')](function(){const _0x1486fd=_0x58be93;logger['info'](_0x1486fd('0x21'),_0x471055,_0x57e931);})[_0x58be93('0x10')](function(_0x2f6b78){const _0x22372f=_0x58be93;logger['info'](JSON[_0x22372f('0x18')](_0x2f6b78));});});},Migration['prototype'][_0x568eaf('0x3')]=function(_0xbfbbf4){const _0x5206a3=_0x568eaf,_0x4d8eef=this;this[_0x5206a3('0x20')][_0x5206a3('0x13')](function(){const _0x46c81b=_0x5206a3;return _0x4d8eef['queryInterface'][_0x46c81b('0xa')][_0x46c81b('0x3')](_0xbfbbf4)[_0x46c81b('0x11')](function(){logger['info']('query\x20%s',_0xbfbbf4);})['catch'](function(_0x3249f5){const _0x3565f8=_0x46c81b;logger[_0x3565f8('0x12')](JSON[_0x3565f8('0x18')](_0x3249f5));});});},Migration[_0x568eaf('0x14')][_0x568eaf('0x1d')]=function(_0x42949a,_0x37524e){const _0x172a8b=_0x568eaf,_0x125ad8=this;this[_0x172a8b('0x20')][_0x172a8b('0x13')](function(){const _0x158192=_0x172a8b;return _0x125ad8[_0x158192('0xc')][_0x158192('0x1d')](_0x42949a,_0x37524e)['then'](function(){const _0x3ec28f=_0x158192;logger[_0x3ec28f('0x12')](_0x3ec28f('0xb'),_0x37524e,_0x42949a);})[_0x158192('0x10')](function(_0x40469d){const _0xc8156a=_0x158192;logger[_0xc8156a('0x12')](util[_0xc8156a('0x25')](_0x40469d,{'showHidden':![],'depth':null}));});});},Migration[_0x568eaf('0x14')][_0x568eaf('0x6')]=function(_0x354acf,_0x2202d5,_0x3c3577){const _0x23dda=_0x568eaf,_0x244157=this;this[_0x23dda('0x20')][_0x23dda('0x13')](function(){const _0xef85bb=_0x23dda;return _0x244157[_0xef85bb('0xc')][_0xef85bb('0x6')](_0x354acf,_0x2202d5,_0x3c3577)[_0xef85bb('0x11')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2202d5,_0x3c3577,_0x354acf);})[_0xef85bb('0x10')](function(_0x363931){const _0x57c3fe=_0xef85bb;logger[_0x57c3fe('0x12')](util[_0x57c3fe('0x25')](_0x363931,{'showHidden':![],'depth':null}));});});},Migration[_0x568eaf('0x14')][_0x568eaf('0x7')]=function(_0x3928eb){const _0x142df4=_0x568eaf;this[_0x142df4('0x20')][_0x142df4('0x13')](function(){return _0x3928eb();});},module[_0x568eaf('0xd')]={'up':function(_0x463194,_0x50c69b){return new Promise(function(_0x973b06){const _0x15eae5=a955_0x39a8,_0x32a99c=new Migration(_0x463194);_0x32a99c[_0x15eae5('0x3')]('TRUNCATE\x20sessions'),_0x32a99c['query'](_0x15eae5('0x17')),_0x32a99c[_0x15eae5('0x3')]('ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x32a99c[_0x15eae5('0x3')](_0x15eae5('0x4')),_0x32a99c[_0x15eae5('0x3')](_0x15eae5('0x1c')),_0x32a99c[_0x15eae5('0x3')](_0x15eae5('0x1f')),_0x32a99c[_0x15eae5('0x15')](_0x15eae5('0x9'),_0x15eae5('0x1'),{'type':_0x50c69b[_0x15eae5('0xe')],'defaultValue':![]}),_0x32a99c['final'](_0x973b06);});},'down':function(){}}; \ No newline at end of file +const a955_0x29de=['removeColumn','addIndex','catch','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','BOOLEAN','Removed\x20column\x20%s\x20from\x20%s','dropTable','prototype','exports','ALTER\x20TABLE\x20report_openchannel_transfer\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20report_sms_transfer\x20ENCRYPTION=\x27Y\x27;','inspect','final','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','removeIndex','finally','queryInterface','addColumn','info','util','removeIndex\x20%s\x20%s','stringify','then','users','sequence','hotdesk','renameColumn','ALTER\x20TABLE\x20report_chat_transfer\x20ENCRYPTION=\x27Y\x27;','changeColumn','table\x20dropped\x20%s','enqueue','query','tail','TRUNCATE\x20sessions'];(function(_0x32767a,_0x29de99){const _0x5aec2b=function(_0x3ee274){while(--_0x3ee274){_0x32767a['push'](_0x32767a['shift']());}};_0x5aec2b(++_0x29de99);}(a955_0x29de,0x14f));const a955_0x5aec=function(_0x32767a,_0x29de99){_0x32767a=_0x32767a-0x0;let _0x5aec2b=a955_0x29de[_0x32767a];return _0x5aec2b;};const _0x1e3ec1=a955_0x5aec;'use strict';const util=require(_0x1e3ec1('0x14')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x1e3ec1('0x1f')]=function(_0x3ee274){const _0x53e79d=_0x1e3ec1;this[_0x53e79d('0x21')]=this[_0x53e79d('0x21')]?this['tail'][_0x53e79d('0x10')](_0x3ee274):_0x3ee274();};const Migration=function(_0x19e672){const _0x578082=_0x1e3ec1;this[_0x578082('0x11')]=_0x19e672,this[_0x578082('0x19')]=new Sequence();};Migration[_0x1e3ec1('0x6')][_0x1e3ec1('0x1d')]=function(_0x48d61c,_0x565520,_0x59ac83){const _0x2fac4f=_0x1e3ec1,_0x40922f=this;this[_0x2fac4f('0x19')][_0x2fac4f('0x1f')](function(){const _0x498e64=_0x2fac4f;return _0x40922f[_0x498e64('0x11')][_0x498e64('0x1d')](_0x48d61c,_0x565520,_0x59ac83)[_0x498e64('0x17')](function(){const _0x3c75aa=_0x498e64;logger[_0x3c75aa('0x13')](_0x3c75aa('0xd'),_0x565520,_0x48d61c);})[_0x498e64('0x0')](function(_0x497e41){const _0x6bb535=_0x498e64;logger[_0x6bb535('0x13')](JSON[_0x6bb535('0x16')](_0x497e41));});});},Migration[_0x1e3ec1('0x6')][_0x1e3ec1('0x12')]=function(_0x163b0d,_0x47f655,_0x4c98a6){const _0x5a590d=_0x1e3ec1,_0x3e773a=this;this[_0x5a590d('0x19')][_0x5a590d('0x1f')](function(){const _0x3af4d2=_0x5a590d;return _0x3e773a[_0x3af4d2('0x11')][_0x3af4d2('0x12')](_0x163b0d,_0x47f655,_0x4c98a6)[_0x3af4d2('0x17')](function(){const _0x46dd54=_0x3af4d2;logger['info'](_0x46dd54('0xc'),_0x47f655,_0x163b0d);})[_0x3af4d2('0x0')](function(_0x500a8a){const _0x4ba2e4=_0x3af4d2;logger[_0x4ba2e4('0x13')](JSON[_0x4ba2e4('0x16')](_0x500a8a));});});},Migration[_0x1e3ec1('0x6')][_0x1e3ec1('0x5')]=function(_0x50ab39){const _0x4c722e=_0x1e3ec1,_0x34f19c=this;this[_0x4c722e('0x19')][_0x4c722e('0x1f')](function(){const _0x36b660=_0x4c722e;return _0x34f19c[_0x36b660('0x11')]['dropTable'](_0x50ab39,{'force':!![]})['then'](function(){const _0x31be7a=_0x36b660;logger[_0x31be7a('0x13')](_0x31be7a('0x1e'),_0x50ab39);})[_0x36b660('0x0')](function(_0x3ba61a){const _0x2777b2=_0x36b660;logger[_0x2777b2('0x13')](JSON[_0x2777b2('0x16')](_0x3ba61a));});});},Migration[_0x1e3ec1('0x6')]['addIndex']=function(_0x2364db,_0x7444a6,_0x477d1c){const _0x5c3321=_0x1e3ec1,_0x2c0d60=this;this[_0x5c3321('0x19')][_0x5c3321('0x1f')](function(){const _0x243f42=_0x5c3321;return _0x2c0d60[_0x243f42('0x11')][_0x243f42('0x24')](_0x2364db,_0x7444a6,{'indexName':_0x477d1c})[_0x243f42('0x17')](function(){const _0x340b69=_0x243f42;logger[_0x340b69('0x13')](_0x340b69('0xe'),_0x2364db,_0x7444a6['join'](','),_0x477d1c);})['catch'](function(_0x115512){logger['info'](JSON['stringify'](_0x115512));});});},Migration[_0x1e3ec1('0x6')][_0x1e3ec1('0xf')]=function(_0x5737ec,_0x3c99de){const _0x4912de=_0x1e3ec1,_0x54925f=this;this[_0x4912de('0x19')]['enqueue'](function(){const _0x24c4ee=_0x4912de;return _0x54925f[_0x24c4ee('0x11')]['removeIndex'](_0x5737ec,_0x3c99de)['then'](function(){const _0x47951a=_0x24c4ee;logger['info'](_0x47951a('0x15'),_0x5737ec,_0x3c99de);})[_0x24c4ee('0x0')](function(_0x1778f5){const _0x2235e5=_0x24c4ee;logger['info'](JSON[_0x2235e5('0x16')](_0x1778f5));});});},Migration['prototype'][_0x1e3ec1('0x20')]=function(_0x1783d9){const _0x5adcfc=_0x1e3ec1,_0x339aa7=this;this['sequence'][_0x5adcfc('0x1f')](function(){const _0x42bcba=_0x5adcfc;return _0x339aa7[_0x42bcba('0x11')][_0x42bcba('0x1')][_0x42bcba('0x20')](_0x1783d9)[_0x42bcba('0x17')](function(){const _0x3a2853=_0x42bcba;logger[_0x3a2853('0x13')]('query\x20%s',_0x1783d9);})[_0x42bcba('0x0')](function(_0x2ba749){const _0x58d9a3=_0x42bcba;logger[_0x58d9a3('0x13')](JSON[_0x58d9a3('0x16')](_0x2ba749));});});},Migration[_0x1e3ec1('0x6')]['removeColumn']=function(_0x456922,_0xe74214){const _0x1fb1c5=_0x1e3ec1,_0x3aff2c=this;this[_0x1fb1c5('0x19')][_0x1fb1c5('0x1f')](function(){const _0x15d5c7=_0x1fb1c5;return _0x3aff2c['queryInterface'][_0x15d5c7('0x23')](_0x456922,_0xe74214)[_0x15d5c7('0x17')](function(){const _0x491a8c=_0x15d5c7;logger[_0x491a8c('0x13')](_0x491a8c('0x4'),_0xe74214,_0x456922);})[_0x15d5c7('0x0')](function(_0x29d292){const _0x5a62bb=_0x15d5c7;logger['info'](util[_0x5a62bb('0xa')](_0x29d292,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1e3ec1('0x1b')]=function(_0x451f28,_0x45f5ac,_0x28ed93){const _0x30625e=_0x1e3ec1,_0x19c860=this;this[_0x30625e('0x19')]['enqueue'](function(){const _0x44b226=_0x30625e;return _0x19c860[_0x44b226('0x11')][_0x44b226('0x1b')](_0x451f28,_0x45f5ac,_0x28ed93)[_0x44b226('0x17')](function(){const _0x4b04dd=_0x44b226;logger[_0x4b04dd('0x13')](_0x4b04dd('0x2'),_0x45f5ac,_0x28ed93,_0x451f28);})[_0x44b226('0x0')](function(_0x52cd3d){const _0x3d54cd=_0x44b226;logger[_0x3d54cd('0x13')](util['inspect'](_0x52cd3d,{'showHidden':![],'depth':null}));});});},Migration[_0x1e3ec1('0x6')]['final']=function(_0x2ad921){this['sequence']['enqueue'](function(){return _0x2ad921();});},module[_0x1e3ec1('0x7')]={'up':function(_0x4cab42,_0x1d2202){return new Promise(function(_0x36c2ee){const _0x4b592d=a955_0x5aec,_0x50065=new Migration(_0x4cab42);_0x50065['query'](_0x4b592d('0x22')),_0x50065[_0x4b592d('0x20')](_0x4b592d('0x1c')),_0x50065['query']('ALTER\x20TABLE\x20report_mail_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x50065['query']('ALTER\x20TABLE\x20report_fax_transfer\x20ENCRYPTION=\x27Y\x27;'),_0x50065[_0x4b592d('0x20')](_0x4b592d('0x8')),_0x50065[_0x4b592d('0x20')](_0x4b592d('0x9')),_0x50065['addColumn'](_0x4b592d('0x18'),_0x4b592d('0x1a'),{'type':_0x1d2202[_0x4b592d('0x3')],'defaultValue':![]}),_0x50065[_0x4b592d('0xb')](_0x36c2ee);});},'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 cc852fc..bfc2a86 100644 --- a/server/migrations/2.0.77.js +++ b/server/migrations/2.0.77.js @@ -1 +1 @@ -const a956_0x3008=['removeIndex','stringify','enqueue','changeColumn','query\x20%s','removeColumn','queryInterface','then','bot','STRING','query','../config/logger','table\x20dropped\x20%s','privacyEnabled','join','Added\x20column\x20%s\x20to\x20%s','util','report_square','final','catch','sequelize','exports','sequence','info','migration','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','users','inspect','Removed\x20column\x20%s\x20from\x20%s','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','prototype','renameColumn','tail'];(function(_0x3c9a4a,_0x30088d){const _0x35ac43=function(_0x27b18f){while(--_0x27b18f){_0x3c9a4a['push'](_0x3c9a4a['shift']());}};_0x35ac43(++_0x30088d);}(a956_0x3008,0x159));const a956_0x35ac=function(_0x3c9a4a,_0x30088d){_0x3c9a4a=_0x3c9a4a-0x0;let _0x35ac43=a956_0x3008[_0x3c9a4a];return _0x35ac43;};const _0x71cf42=a956_0x35ac;'use strict';const util=require(_0x71cf42('0x4')),logger=require(_0x71cf42('0x24'))(_0x71cf42('0xc')),Sequence=function(){};Sequence[_0x71cf42('0x16')]['enqueue']=function(_0x27b18f){const _0x3547df=_0x71cf42;this[_0x3547df('0x18')]=this[_0x3547df('0x18')]?this[_0x3547df('0x18')]['finally'](_0x27b18f):_0x27b18f();};const Migration=function(_0x2a14fa){const _0x6be4db=_0x71cf42;this[_0x6be4db('0x1f')]=_0x2a14fa,this['sequence']=new Sequence();};Migration[_0x71cf42('0x16')][_0x71cf42('0x1c')]=function(_0x219b7d,_0x51110b,_0x57a701){const _0x5ccb3a=_0x71cf42,_0xfd2553=this;this[_0x5ccb3a('0xa')][_0x5ccb3a('0x1b')](function(){const _0x1f6c56=_0x5ccb3a;return _0xfd2553['queryInterface'][_0x1f6c56('0x1c')](_0x219b7d,_0x51110b,_0x57a701)[_0x1f6c56('0x20')](function(){const _0x57a306=_0x1f6c56;logger[_0x57a306('0xb')](_0x57a306('0x14'),_0x51110b,_0x219b7d);})['catch'](function(_0x214ca2){const _0x28026b=_0x1f6c56;logger[_0x28026b('0xb')](JSON[_0x28026b('0x1a')](_0x214ca2));});});},Migration[_0x71cf42('0x16')][_0x71cf42('0xd')]=function(_0x4167cd,_0x1ea03c,_0x1ff519){const _0x27ca46=_0x71cf42,_0x1a9840=this;this[_0x27ca46('0xa')][_0x27ca46('0x1b')](function(){const _0x2910db=_0x27ca46;return _0x1a9840[_0x2910db('0x1f')][_0x2910db('0xd')](_0x4167cd,_0x1ea03c,_0x1ff519)['then'](function(){const _0x18cae4=_0x2910db;logger['info'](_0x18cae4('0x3'),_0x1ea03c,_0x4167cd);})[_0x2910db('0x7')](function(_0x5e44c5){const _0x3e7199=_0x2910db;logger[_0x3e7199('0xb')](JSON['stringify'](_0x5e44c5));});});},Migration[_0x71cf42('0x16')][_0x71cf42('0x13')]=function(_0x157d7c){const _0x486bd6=_0x71cf42,_0x5ae451=this;this[_0x486bd6('0xa')][_0x486bd6('0x1b')](function(){const _0xeddade=_0x486bd6;return _0x5ae451['queryInterface'][_0xeddade('0x13')](_0x157d7c,{'force':!![]})[_0xeddade('0x20')](function(){const _0x1eafc3=_0xeddade;logger['info'](_0x1eafc3('0x0'),_0x157d7c);})[_0xeddade('0x7')](function(_0x42f5b3){const _0x2130bd=_0xeddade;logger[_0x2130bd('0xb')](JSON[_0x2130bd('0x1a')](_0x42f5b3));});});},Migration[_0x71cf42('0x16')]['addIndex']=function(_0x18921e,_0x10d2a7,_0x14e933){const _0x3149c8=_0x71cf42,_0x5557b3=this;this[_0x3149c8('0xa')][_0x3149c8('0x1b')](function(){const _0x3e8522=_0x3149c8;return _0x5557b3['queryInterface']['addIndex'](_0x18921e,_0x10d2a7,{'indexName':_0x14e933})[_0x3e8522('0x20')](function(){const _0x4dfe33=_0x3e8522;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x18921e,_0x10d2a7[_0x4dfe33('0x2')](','),_0x14e933);})[_0x3e8522('0x7')](function(_0x20e592){const _0x447bc8=_0x3e8522;logger[_0x447bc8('0xb')](JSON[_0x447bc8('0x1a')](_0x20e592));});});},Migration[_0x71cf42('0x16')][_0x71cf42('0x19')]=function(_0x3f850f,_0x3c18b3){const _0x215557=_0x71cf42,_0x547cab=this;this[_0x215557('0xa')]['enqueue'](function(){const _0x5b12de=_0x215557;return _0x547cab[_0x5b12de('0x1f')][_0x5b12de('0x19')](_0x3f850f,_0x3c18b3)['then'](function(){const _0x36e8ab=_0x5b12de;logger['info'](_0x36e8ab('0xf'),_0x3f850f,_0x3c18b3);})['catch'](function(_0x465c7e){const _0x3d4ac5=_0x5b12de;logger['info'](JSON[_0x3d4ac5('0x1a')](_0x465c7e));});});},Migration['prototype'][_0x71cf42('0x23')]=function(_0x5bb87c){const _0x5d1a36=_0x71cf42,_0x1dbe77=this;this[_0x5d1a36('0xa')][_0x5d1a36('0x1b')](function(){const _0x26163c=_0x5d1a36;return _0x1dbe77[_0x26163c('0x1f')][_0x26163c('0x8')][_0x26163c('0x23')](_0x5bb87c)[_0x26163c('0x20')](function(){const _0x100d14=_0x26163c;logger[_0x100d14('0xb')](_0x100d14('0x1d'),_0x5bb87c);})[_0x26163c('0x7')](function(_0xaf7c74){const _0x4a0937=_0x26163c;logger[_0x4a0937('0xb')](JSON['stringify'](_0xaf7c74));});});},Migration[_0x71cf42('0x16')][_0x71cf42('0x1e')]=function(_0x2e8fde,_0x13d117){const _0x57222e=_0x71cf42,_0x12dae0=this;this['sequence'][_0x57222e('0x1b')](function(){const _0x156e30=_0x57222e;return _0x12dae0[_0x156e30('0x1f')]['removeColumn'](_0x2e8fde,_0x13d117)[_0x156e30('0x20')](function(){const _0x1993c3=_0x156e30;logger[_0x1993c3('0xb')](_0x1993c3('0x12'),_0x13d117,_0x2e8fde);})[_0x156e30('0x7')](function(_0x48f9f2){const _0x72eab2=_0x156e30;logger['info'](util[_0x72eab2('0x11')](_0x48f9f2,{'showHidden':![],'depth':null}));});});},Migration[_0x71cf42('0x16')][_0x71cf42('0x17')]=function(_0x58ce00,_0x2ee206,_0x5a5471){const _0x3da57c=_0x71cf42,_0x22d097=this;this[_0x3da57c('0xa')]['enqueue'](function(){const _0x468243=_0x3da57c;return _0x22d097[_0x468243('0x1f')]['renameColumn'](_0x58ce00,_0x2ee206,_0x5a5471)['then'](function(){const _0x1052f7=_0x468243;logger[_0x1052f7('0xb')](_0x1052f7('0xe'),_0x2ee206,_0x5a5471,_0x58ce00);})[_0x468243('0x7')](function(_0x34a534){const _0x3f2e0c=_0x468243;logger['info'](util[_0x3f2e0c('0x11')](_0x34a534,{'showHidden':![],'depth':null}));});});},Migration[_0x71cf42('0x16')][_0x71cf42('0x6')]=function(_0x6ed25){const _0xa21197=_0x71cf42;this['sequence'][_0xa21197('0x1b')](function(){return _0x6ed25();});},module[_0x71cf42('0x9')]={'up':function(_0x2274cc,_0x57c19a){return new Promise(function(_0x5055e2){const _0x64fb2c=a956_0x35ac,_0x31226a=new Migration(_0x2274cc);_0x31226a[_0x64fb2c('0xd')](_0x64fb2c('0x5'),_0x64fb2c('0x21'),{'type':_0x57c19a[_0x64fb2c('0x15')],'defaultValue':![]}),_0x31226a[_0x64fb2c('0xd')](_0x64fb2c('0x10'),'interface',{'type':_0x57c19a[_0x64fb2c('0x22')],'defaultValue':null}),_0x31226a['addColumn'](_0x64fb2c('0x10'),_0x64fb2c('0x1'),{'type':_0x57c19a['BOOLEAN'],'defaultValue':![]}),_0x31226a['final'](_0x5055e2);});},'down':function(){}}; \ No newline at end of file +const a956_0x4509=['../config/logger','changeColumn','BOOLEAN','exports','sequence','Added\x20column\x20%s\x20to\x20%s','removeColumn','migration','removeIndex','table\x20dropped\x20%s','sequelize','then','addColumn','inspect','enqueue','info','addIndex','bot','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','users','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','stringify','query','query\x20%s','finally','tail','util','privacyEnabled','join','queryInterface','final','Removed\x20column\x20%s\x20from\x20%s','renameColumn','report_square','prototype'];(function(_0x3339e6,_0x4509c3){const _0x4e73eb=function(_0x22fdbd){while(--_0x22fdbd){_0x3339e6['push'](_0x3339e6['shift']());}};_0x4e73eb(++_0x4509c3);}(a956_0x4509,0x71));const a956_0x4e73=function(_0x3339e6,_0x4509c3){_0x3339e6=_0x3339e6-0x0;let _0x4e73eb=a956_0x4509[_0x3339e6];return _0x4e73eb;};const _0x22646b=a956_0x4e73;'use strict';const util=require(_0x22646b('0x1a')),logger=require(_0x22646b('0x23'))(_0x22646b('0x5')),Sequence=function(){};Sequence['prototype'][_0x22646b('0xc')]=function(_0x22fdbd){const _0x33c8e3=_0x22646b;this[_0x33c8e3('0x19')]=this[_0x33c8e3('0x19')]?this['tail'][_0x33c8e3('0x18')](_0x22fdbd):_0x22fdbd();};const Migration=function(_0x532a12){const _0x59c6b8=_0x22646b;this[_0x59c6b8('0x1d')]=_0x532a12,this[_0x59c6b8('0x2')]=new Sequence();};Migration[_0x22646b('0x22')][_0x22646b('0x24')]=function(_0x267934,_0x19a6a2,_0x35363a){const _0x28c68f=_0x22646b,_0x471800=this;this[_0x28c68f('0x2')]['enqueue'](function(){const _0x4853a2=_0x28c68f;return _0x471800[_0x4853a2('0x1d')][_0x4853a2('0x24')](_0x267934,_0x19a6a2,_0x35363a)[_0x4853a2('0x9')](function(){const _0x380d84=_0x4853a2;logger['info'](_0x380d84('0x10'),_0x19a6a2,_0x267934);})[_0x4853a2('0x11')](function(_0x34e821){const _0x1cd462=_0x4853a2;logger[_0x1cd462('0xd')](JSON[_0x1cd462('0x15')](_0x34e821));});});},Migration[_0x22646b('0x22')]['addColumn']=function(_0x9d86ea,_0x21e86f,_0x3f18e7){const _0x1ae19d=_0x22646b,_0x2acac7=this;this[_0x1ae19d('0x2')][_0x1ae19d('0xc')](function(){const _0x212af8=_0x1ae19d;return _0x2acac7['queryInterface'][_0x212af8('0xa')](_0x9d86ea,_0x21e86f,_0x3f18e7)[_0x212af8('0x9')](function(){const _0x487fe6=_0x212af8;logger[_0x487fe6('0xd')](_0x487fe6('0x3'),_0x21e86f,_0x9d86ea);})[_0x212af8('0x11')](function(_0x27fdd8){const _0x22b706=_0x212af8;logger[_0x22b706('0xd')](JSON[_0x22b706('0x15')](_0x27fdd8));});});},Migration[_0x22646b('0x22')][_0x22646b('0x14')]=function(_0x3558f7){const _0x275b44=_0x22646b,_0x404b03=this;this[_0x275b44('0x2')]['enqueue'](function(){const _0x5a7f2f=_0x275b44;return _0x404b03[_0x5a7f2f('0x1d')][_0x5a7f2f('0x14')](_0x3558f7,{'force':!![]})[_0x5a7f2f('0x9')](function(){const _0x12096f=_0x5a7f2f;logger[_0x12096f('0xd')](_0x12096f('0x7'),_0x3558f7);})[_0x5a7f2f('0x11')](function(_0x3bfe9a){const _0x543342=_0x5a7f2f;logger[_0x543342('0xd')](JSON[_0x543342('0x15')](_0x3bfe9a));});});},Migration[_0x22646b('0x22')][_0x22646b('0xe')]=function(_0x229318,_0x2ed201,_0x37f776){const _0x2e424a=_0x22646b,_0x3e332e=this;this['sequence'][_0x2e424a('0xc')](function(){const _0x319d33=_0x2e424a;return _0x3e332e[_0x319d33('0x1d')][_0x319d33('0xe')](_0x229318,_0x2ed201,{'indexName':_0x37f776})[_0x319d33('0x9')](function(){const _0x42a86b=_0x319d33;logger[_0x42a86b('0xd')]('addIndex\x20%s\x20%s\x20%s',_0x229318,_0x2ed201[_0x42a86b('0x1c')](','),_0x37f776);})[_0x319d33('0x11')](function(_0x398f2f){const _0x5d1a7e=_0x319d33;logger[_0x5d1a7e('0xd')](JSON[_0x5d1a7e('0x15')](_0x398f2f));});});},Migration[_0x22646b('0x22')]['removeIndex']=function(_0x1dcead,_0x2f1985){const _0x17ec17=_0x22646b,_0x48b290=this;this[_0x17ec17('0x2')][_0x17ec17('0xc')](function(){const _0x496b73=_0x17ec17;return _0x48b290['queryInterface'][_0x496b73('0x6')](_0x1dcead,_0x2f1985)['then'](function(){const _0x1c3a30=_0x496b73;logger[_0x1c3a30('0xd')]('removeIndex\x20%s\x20%s',_0x1dcead,_0x2f1985);})['catch'](function(_0xa53440){const _0x3b77ea=_0x496b73;logger[_0x3b77ea('0xd')](JSON[_0x3b77ea('0x15')](_0xa53440));});});},Migration[_0x22646b('0x22')][_0x22646b('0x16')]=function(_0x30546f){const _0x5b2f44=_0x22646b,_0x1810ac=this;this['sequence'][_0x5b2f44('0xc')](function(){const _0xa79b3d=_0x5b2f44;return _0x1810ac['queryInterface'][_0xa79b3d('0x8')][_0xa79b3d('0x16')](_0x30546f)['then'](function(){const _0x39b1d9=_0xa79b3d;logger[_0x39b1d9('0xd')](_0x39b1d9('0x17'),_0x30546f);})[_0xa79b3d('0x11')](function(_0x4d1160){const _0x1b3473=_0xa79b3d;logger['info'](JSON[_0x1b3473('0x15')](_0x4d1160));});});},Migration[_0x22646b('0x22')][_0x22646b('0x4')]=function(_0x39a4aa,_0x297757){const _0x4ace71=_0x22646b,_0x23ecf0=this;this['sequence'][_0x4ace71('0xc')](function(){const _0x494dec=_0x4ace71;return _0x23ecf0[_0x494dec('0x1d')]['removeColumn'](_0x39a4aa,_0x297757)[_0x494dec('0x9')](function(){const _0x5cb8f5=_0x494dec;logger[_0x5cb8f5('0xd')](_0x5cb8f5('0x1f'),_0x297757,_0x39a4aa);})['catch'](function(_0x3d159f){const _0x5e3daa=_0x494dec;logger[_0x5e3daa('0xd')](util[_0x5e3daa('0xb')](_0x3d159f,{'showHidden':![],'depth':null}));});});},Migration[_0x22646b('0x22')][_0x22646b('0x20')]=function(_0x355ae0,_0x43fef0,_0x3d6573){const _0x2d96f9=_0x22646b,_0x21b12f=this;this[_0x2d96f9('0x2')][_0x2d96f9('0xc')](function(){const _0x1eb369=_0x2d96f9;return _0x21b12f[_0x1eb369('0x1d')][_0x1eb369('0x20')](_0x355ae0,_0x43fef0,_0x3d6573)['then'](function(){const _0x5355e5=_0x1eb369;logger[_0x5355e5('0xd')](_0x5355e5('0x13'),_0x43fef0,_0x3d6573,_0x355ae0);})[_0x1eb369('0x11')](function(_0x536b51){const _0x305e38=_0x1eb369;logger[_0x305e38('0xd')](util['inspect'](_0x536b51,{'showHidden':![],'depth':null}));});});},Migration[_0x22646b('0x22')][_0x22646b('0x1e')]=function(_0x40e4d5){const _0xfe72f3=_0x22646b;this[_0xfe72f3('0x2')]['enqueue'](function(){return _0x40e4d5();});},module[_0x22646b('0x1')]={'up':function(_0x32a0aa,_0x450c82){return new Promise(function(_0x3fa5b5){const _0x55d796=a956_0x4e73,_0x473973=new Migration(_0x32a0aa);_0x473973[_0x55d796('0xa')](_0x55d796('0x21'),_0x55d796('0xf'),{'type':_0x450c82[_0x55d796('0x0')],'defaultValue':![]}),_0x473973['addColumn'](_0x55d796('0x12'),'interface',{'type':_0x450c82['STRING'],'defaultValue':null}),_0x473973['addColumn']('users',_0x55d796('0x1b'),{'type':_0x450c82['BOOLEAN'],'defaultValue':![]}),_0x473973[_0x55d796('0x1e')](_0x3fa5b5);});},'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 d72332b..87e6ae5 100644 --- a/server/migrations/2.0.78.js +++ b/server/migrations/2.0.78.js @@ -1 +1 @@ -const a957_0x378e=['catch','sequence','enqueue','addColumn','stringify','removeIndex','finally','dropTable','query\x20%s','addIndex\x20%s\x20%s\x20%s','util','info','removeIndex\x20%s\x20%s','queryInterface','query','sequelize','then','renameColumn','prototype','final','addIndex','../config/logger','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','migration','tail','inspect','exports'];(function(_0x5d3219,_0x378ea4){const _0x4ea516=function(_0x4bf94c){while(--_0x4bf94c){_0x5d3219['push'](_0x5d3219['shift']());}};_0x4ea516(++_0x378ea4);}(a957_0x378e,0x103));const a957_0x4ea5=function(_0x5d3219,_0x378ea4){_0x5d3219=_0x5d3219-0x0;let _0x4ea516=a957_0x378e[_0x5d3219];return _0x4ea516;};const _0x54f0b8=a957_0x4ea5;'use strict';const util=require(_0x54f0b8('0x15')),logger=require(_0x54f0b8('0x2'))(_0x54f0b8('0x7')),Sequence=function(){};Sequence[_0x54f0b8('0x1d')][_0x54f0b8('0xd')]=function(_0x4bf94c){const _0x16a632=_0x54f0b8;this[_0x16a632('0x8')]=this[_0x16a632('0x8')]?this[_0x16a632('0x8')][_0x16a632('0x11')](_0x4bf94c):_0x4bf94c();};const Migration=function(_0x3520a5){const _0x135136=_0x54f0b8;this[_0x135136('0x18')]=_0x3520a5,this[_0x135136('0xc')]=new Sequence();};Migration[_0x54f0b8('0x1d')]['changeColumn']=function(_0x459694,_0xf56854,_0x5533e6){const _0x5339ca=_0x54f0b8,_0x55685d=this;this[_0x5339ca('0xc')][_0x5339ca('0xd')](function(){const _0x1da2ab=_0x5339ca;return _0x55685d[_0x1da2ab('0x18')]['changeColumn'](_0x459694,_0xf56854,_0x5533e6)[_0x1da2ab('0x1b')](function(){const _0x400a41=_0x1da2ab;logger[_0x400a41('0x16')](_0x400a41('0x5'),_0xf56854,_0x459694);})[_0x1da2ab('0xb')](function(_0x3d1acb){const _0x1c1e4f=_0x1da2ab;logger['info'](JSON[_0x1c1e4f('0xf')](_0x3d1acb));});});},Migration[_0x54f0b8('0x1d')]['addColumn']=function(_0x395016,_0x5ea7f2,_0x5f4f4a){const _0x4f310f=_0x54f0b8,_0x406757=this;this[_0x4f310f('0xc')][_0x4f310f('0xd')](function(){const _0x2922de=_0x4f310f;return _0x406757[_0x2922de('0x18')][_0x2922de('0xe')](_0x395016,_0x5ea7f2,_0x5f4f4a)[_0x2922de('0x1b')](function(){const _0x49f814=_0x2922de;logger[_0x49f814('0x16')]('Added\x20column\x20%s\x20to\x20%s',_0x5ea7f2,_0x395016);})['catch'](function(_0x51f213){logger['info'](JSON['stringify'](_0x51f213));});});},Migration[_0x54f0b8('0x1d')]['dropTable']=function(_0x1b7b6a){const _0x26ab97=_0x54f0b8,_0x473b0b=this;this[_0x26ab97('0xc')][_0x26ab97('0xd')](function(){const _0x2bcf15=_0x26ab97;return _0x473b0b[_0x2bcf15('0x18')][_0x2bcf15('0x12')](_0x1b7b6a,{'force':!![]})[_0x2bcf15('0x1b')](function(){const _0x3db58f=_0x2bcf15;logger[_0x3db58f('0x16')]('table\x20dropped\x20%s',_0x1b7b6a);})[_0x2bcf15('0xb')](function(_0x4469ad){const _0x781889=_0x2bcf15;logger[_0x781889('0x16')](JSON[_0x781889('0xf')](_0x4469ad));});});},Migration[_0x54f0b8('0x1d')][_0x54f0b8('0x1')]=function(_0x4157bb,_0x39936b,_0x283520){const _0x1211ec=_0x54f0b8,_0x5cb6f0=this;this['sequence'][_0x1211ec('0xd')](function(){const _0x12ea3f=_0x1211ec;return _0x5cb6f0['queryInterface'][_0x12ea3f('0x1')](_0x4157bb,_0x39936b,{'indexName':_0x283520})[_0x12ea3f('0x1b')](function(){const _0x5964a4=_0x12ea3f;logger[_0x5964a4('0x16')](_0x5964a4('0x14'),_0x4157bb,_0x39936b['join'](','),_0x283520);})['catch'](function(_0x38f066){const _0x47d42c=_0x12ea3f;logger['info'](JSON[_0x47d42c('0xf')](_0x38f066));});});},Migration[_0x54f0b8('0x1d')][_0x54f0b8('0x10')]=function(_0x2a1c04,_0x4ec605){const _0x10e890=_0x54f0b8,_0x2e7566=this;this[_0x10e890('0xc')][_0x10e890('0xd')](function(){const _0x1ded11=_0x10e890;return _0x2e7566[_0x1ded11('0x18')]['removeIndex'](_0x2a1c04,_0x4ec605)['then'](function(){const _0x5002d6=_0x1ded11;logger['info'](_0x5002d6('0x17'),_0x2a1c04,_0x4ec605);})['catch'](function(_0x52cead){const _0x462c10=_0x1ded11;logger[_0x462c10('0x16')](JSON[_0x462c10('0xf')](_0x52cead));});});},Migration['prototype'][_0x54f0b8('0x19')]=function(_0x44f0a3){const _0x510667=this;this['sequence']['enqueue'](function(){const _0x2f31bb=a957_0x4ea5;return _0x510667[_0x2f31bb('0x18')][_0x2f31bb('0x1a')]['query'](_0x44f0a3)[_0x2f31bb('0x1b')](function(){const _0x5f1110=_0x2f31bb;logger[_0x5f1110('0x16')](_0x5f1110('0x13'),_0x44f0a3);})['catch'](function(_0x251ffd){const _0x6e9b32=_0x2f31bb;logger[_0x6e9b32('0x16')](JSON[_0x6e9b32('0xf')](_0x251ffd));});});},Migration[_0x54f0b8('0x1d')][_0x54f0b8('0x4')]=function(_0x4dc0bc,_0x2160dd){const _0xbdec76=_0x54f0b8,_0x43926e=this;this[_0xbdec76('0xc')][_0xbdec76('0xd')](function(){const _0x4f547f=_0xbdec76;return _0x43926e[_0x4f547f('0x18')][_0x4f547f('0x4')](_0x4dc0bc,_0x2160dd)[_0x4f547f('0x1b')](function(){const _0x41c829=_0x4f547f;logger[_0x41c829('0x16')](_0x41c829('0x6'),_0x2160dd,_0x4dc0bc);})[_0x4f547f('0xb')](function(_0x42e8fc){const _0x2b7720=_0x4f547f;logger['info'](util[_0x2b7720('0x9')](_0x42e8fc,{'showHidden':![],'depth':null}));});});},Migration[_0x54f0b8('0x1d')][_0x54f0b8('0x1c')]=function(_0x132261,_0x56c81c,_0x40926d){const _0x12d004=_0x54f0b8,_0x2c99df=this;this[_0x12d004('0xc')][_0x12d004('0xd')](function(){const _0x42c702=_0x12d004;return _0x2c99df[_0x42c702('0x18')]['renameColumn'](_0x132261,_0x56c81c,_0x40926d)[_0x42c702('0x1b')](function(){const _0xbcf2e7=_0x42c702;logger[_0xbcf2e7('0x16')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x56c81c,_0x40926d,_0x132261);})['catch'](function(_0x4f9a73){const _0x2654ba=_0x42c702;logger[_0x2654ba('0x16')](util[_0x2654ba('0x9')](_0x4f9a73,{'showHidden':![],'depth':null}));});});},Migration[_0x54f0b8('0x1d')][_0x54f0b8('0x0')]=function(_0x107c20){const _0x5d7645=_0x54f0b8;this[_0x5d7645('0xc')][_0x5d7645('0xd')](function(){return _0x107c20();});},module[_0x54f0b8('0xa')]={'up':function(_0x16f1cb){return new Promise(function(_0x2b837b){const _0x1d035d=a957_0x4ea5,_0x1b2317=new Migration(_0x16f1cb);_0x1b2317[_0x1d035d('0x19')](_0x1d035d('0x3')),_0x1b2317['final'](_0x2b837b);});},'down':function(){}}; \ No newline at end of file +const a957_0x33fb=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','query','inspect','sequelize','info','addColumn','then','catch','renameColumn','removeColumn','dropTable','addIndex\x20%s\x20%s\x20%s','changeColumn','ALTER\x20TABLE\x20square_messages\x20ENCRYPTION=\x27Y\x27;','stringify','removeIndex','query\x20%s','queryInterface','final','sequence','addIndex','exports','Removed\x20column\x20%s\x20from\x20%s','enqueue','removeIndex\x20%s\x20%s','tail'];(function(_0x1418d8,_0x33fbb5){const _0x3635b4=function(_0x4d4909){while(--_0x4d4909){_0x1418d8['push'](_0x1418d8['shift']());}};_0x3635b4(++_0x33fbb5);}(a957_0x33fb,0x19a));const a957_0x3635=function(_0x1418d8,_0x33fbb5){_0x1418d8=_0x1418d8-0x0;let _0x3635b4=a957_0x33fb[_0x1418d8];return _0x3635b4;};const _0x42ccc6=a957_0x3635;'use strict';const util=require('util'),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x42ccc6('0x1a')]['enqueue']=function(_0x4d4909){const _0x19583c=_0x42ccc6;this['tail']=this[_0x19583c('0x18')]?this[_0x19583c('0x18')]['finally'](_0x4d4909):_0x4d4909();};const Migration=function(_0x4d9add){const _0x12fe08=_0x42ccc6;this[_0x12fe08('0x10')]=_0x4d9add,this[_0x12fe08('0x12')]=new Sequence();};Migration[_0x42ccc6('0x1a')][_0x42ccc6('0xb')]=function(_0x4cb8de,_0x549a57,_0x572197){const _0x1cfc77=_0x42ccc6,_0x566339=this;this[_0x1cfc77('0x12')]['enqueue'](function(){const _0x4ed7ae=_0x1cfc77;return _0x566339['queryInterface'][_0x4ed7ae('0xb')](_0x4cb8de,_0x549a57,_0x572197)['then'](function(){const _0x31c7c3=_0x4ed7ae;logger[_0x31c7c3('0x3')](_0x31c7c3('0x1c'),_0x549a57,_0x4cb8de);})[_0x4ed7ae('0x6')](function(_0x2bf49a){const _0x57eb18=_0x4ed7ae;logger['info'](JSON[_0x57eb18('0xd')](_0x2bf49a));});});},Migration[_0x42ccc6('0x1a')][_0x42ccc6('0x4')]=function(_0x197562,_0x5c15c9,_0x2af316){const _0x584ebc=_0x42ccc6,_0x4572da=this;this['sequence'][_0x584ebc('0x16')](function(){const _0x39a481=_0x584ebc;return _0x4572da[_0x39a481('0x10')]['addColumn'](_0x197562,_0x5c15c9,_0x2af316)['then'](function(){const _0x30114a=_0x39a481;logger[_0x30114a('0x3')](_0x30114a('0x1b'),_0x5c15c9,_0x197562);})['catch'](function(_0x1209d8){const _0x208b68=_0x39a481;logger[_0x208b68('0x3')](JSON['stringify'](_0x1209d8));});});},Migration[_0x42ccc6('0x1a')]['dropTable']=function(_0x112791){const _0x2e0c7b=_0x42ccc6,_0x5eebd7=this;this['sequence'][_0x2e0c7b('0x16')](function(){const _0x1dde9b=_0x2e0c7b;return _0x5eebd7[_0x1dde9b('0x10')][_0x1dde9b('0x9')](_0x112791,{'force':!![]})[_0x1dde9b('0x5')](function(){const _0x2c7c5c=_0x1dde9b;logger[_0x2c7c5c('0x3')]('table\x20dropped\x20%s',_0x112791);})[_0x1dde9b('0x6')](function(_0x2b369f){const _0x1c66e0=_0x1dde9b;logger[_0x1c66e0('0x3')](JSON[_0x1c66e0('0xd')](_0x2b369f));});});},Migration[_0x42ccc6('0x1a')][_0x42ccc6('0x13')]=function(_0x3ebd1c,_0x4b52b8,_0x4d55a6){const _0xcc8ba=_0x42ccc6,_0x2e6ab2=this;this[_0xcc8ba('0x12')]['enqueue'](function(){const _0x2f6fa9=_0xcc8ba;return _0x2e6ab2[_0x2f6fa9('0x10')][_0x2f6fa9('0x13')](_0x3ebd1c,_0x4b52b8,{'indexName':_0x4d55a6})[_0x2f6fa9('0x5')](function(){const _0x1a601c=_0x2f6fa9;logger[_0x1a601c('0x3')](_0x1a601c('0xa'),_0x3ebd1c,_0x4b52b8['join'](','),_0x4d55a6);})[_0x2f6fa9('0x6')](function(_0x2b0c5d){const _0x16a23b=_0x2f6fa9;logger['info'](JSON[_0x16a23b('0xd')](_0x2b0c5d));});});},Migration[_0x42ccc6('0x1a')][_0x42ccc6('0xe')]=function(_0x2c1839,_0x2c9f15){const _0x1f18a5=_0x42ccc6,_0x1ae5ca=this;this[_0x1f18a5('0x12')][_0x1f18a5('0x16')](function(){const _0x2c5ff3=_0x1f18a5;return _0x1ae5ca[_0x2c5ff3('0x10')][_0x2c5ff3('0xe')](_0x2c1839,_0x2c9f15)[_0x2c5ff3('0x5')](function(){const _0x446187=_0x2c5ff3;logger[_0x446187('0x3')](_0x446187('0x17'),_0x2c1839,_0x2c9f15);})[_0x2c5ff3('0x6')](function(_0x264e28){const _0x2a59ac=_0x2c5ff3;logger[_0x2a59ac('0x3')](JSON[_0x2a59ac('0xd')](_0x264e28));});});},Migration[_0x42ccc6('0x1a')][_0x42ccc6('0x0')]=function(_0x16e707){const _0x4bc0f9=_0x42ccc6,_0x4a69b7=this;this[_0x4bc0f9('0x12')]['enqueue'](function(){const _0x1a683d=_0x4bc0f9;return _0x4a69b7[_0x1a683d('0x10')][_0x1a683d('0x2')][_0x1a683d('0x0')](_0x16e707)[_0x1a683d('0x5')](function(){const _0x3d1d71=_0x1a683d;logger[_0x3d1d71('0x3')](_0x3d1d71('0xf'),_0x16e707);})[_0x1a683d('0x6')](function(_0x5ab29f){const _0x4460f1=_0x1a683d;logger[_0x4460f1('0x3')](JSON[_0x4460f1('0xd')](_0x5ab29f));});});},Migration[_0x42ccc6('0x1a')][_0x42ccc6('0x8')]=function(_0x118dea,_0x1973f1){const _0x475aa4=_0x42ccc6,_0x434ed3=this;this[_0x475aa4('0x12')][_0x475aa4('0x16')](function(){const _0xaf03d7=_0x475aa4;return _0x434ed3[_0xaf03d7('0x10')][_0xaf03d7('0x8')](_0x118dea,_0x1973f1)[_0xaf03d7('0x5')](function(){const _0xc25a05=_0xaf03d7;logger[_0xc25a05('0x3')](_0xc25a05('0x15'),_0x1973f1,_0x118dea);})[_0xaf03d7('0x6')](function(_0x389348){const _0x385b0c=_0xaf03d7;logger[_0x385b0c('0x3')](util['inspect'](_0x389348,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x42ccc6('0x7')]=function(_0x105868,_0x4a5a33,_0x172d79){const _0x183676=_0x42ccc6,_0x3a9b93=this;this[_0x183676('0x12')][_0x183676('0x16')](function(){const _0x35955e=_0x183676;return _0x3a9b93[_0x35955e('0x10')][_0x35955e('0x7')](_0x105868,_0x4a5a33,_0x172d79)[_0x35955e('0x5')](function(){const _0x292cd5=_0x35955e;logger[_0x292cd5('0x3')](_0x292cd5('0x19'),_0x4a5a33,_0x172d79,_0x105868);})[_0x35955e('0x6')](function(_0x208f59){const _0x56df2e=_0x35955e;logger[_0x56df2e('0x3')](util[_0x56df2e('0x1')](_0x208f59,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x42ccc6('0x11')]=function(_0x516a2c){const _0x2f12d2=_0x42ccc6;this[_0x2f12d2('0x12')][_0x2f12d2('0x16')](function(){return _0x516a2c();});},module[_0x42ccc6('0x14')]={'up':function(_0x4bba74){return new Promise(function(_0x198125){const _0x5808b=a957_0x3635,_0xae580d=new Migration(_0x4bba74);_0xae580d['query'](_0x5808b('0xc')),_0xae580d['final'](_0x198125);});},'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 b8c586f..6c82b56 100644 --- a/server/migrations/2.0.79.js +++ b/server/migrations/2.0.79.js @@ -1 +1 @@ -const a958_0x1e90=['Removed\x20column\x20%s\x20from\x20%s','addIndex','tail','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','sequence','removeIndex\x20%s\x20%s','addColumn','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','dropTable','query','addIndex\x20%s\x20%s\x20%s','query\x20%s','exports','final','catch','sequelize','then','util','../config/logger','changeColumn','Added\x20column\x20%s\x20to\x20%s','inspect','table\x20dropped\x20%s','info','removeIndex','enqueue','removeColumn','stringify','prototype'];(function(_0x222d50,_0x1e9084){const _0x27877f=function(_0x38b183){while(--_0x38b183){_0x222d50['push'](_0x222d50['shift']());}};_0x27877f(++_0x1e9084);}(a958_0x1e90,0x11a));const a958_0x2787=function(_0x222d50,_0x1e9084){_0x222d50=_0x222d50-0x0;let _0x27877f=a958_0x1e90[_0x222d50];return _0x27877f;};const _0x6bb307=a958_0x2787;'use strict';const util=require(_0x6bb307('0x10')),logger=require(_0x6bb307('0x11'))('migration'),Sequence=function(){};Sequence[_0x6bb307('0x1b')][_0x6bb307('0x18')]=function(_0x38b183){const _0x2c6416=_0x6bb307;this['tail']=this[_0x2c6416('0x1e')]?this[_0x2c6416('0x1e')]['finally'](_0x38b183):_0x38b183();};const Migration=function(_0x30c4de){const _0x43d852=_0x6bb307;this[_0x43d852('0x2')]=_0x30c4de,this[_0x43d852('0x3')]=new Sequence();};Migration[_0x6bb307('0x1b')][_0x6bb307('0x12')]=function(_0xda0dc6,_0xd75f05,_0x34dbe){const _0x450b24=_0x6bb307,_0x339667=this;this[_0x450b24('0x3')][_0x450b24('0x18')](function(){const _0x1c4664=_0x450b24;return _0x339667['queryInterface'][_0x1c4664('0x12')](_0xda0dc6,_0xd75f05,_0x34dbe)[_0x1c4664('0xf')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xd75f05,_0xda0dc6);})[_0x1c4664('0xd')](function(_0x56c618){const _0x2123a5=_0x1c4664;logger[_0x2123a5('0x16')](JSON[_0x2123a5('0x1a')](_0x56c618));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x5')]=function(_0x3734e6,_0x3f2ab2,_0x46ca98){const _0x559075=_0x6bb307,_0x183d63=this;this[_0x559075('0x3')][_0x559075('0x18')](function(){const _0x1207fc=_0x559075;return _0x183d63[_0x1207fc('0x2')][_0x1207fc('0x5')](_0x3734e6,_0x3f2ab2,_0x46ca98)[_0x1207fc('0xf')](function(){const _0x27cc10=_0x1207fc;logger['info'](_0x27cc10('0x13'),_0x3f2ab2,_0x3734e6);})[_0x1207fc('0xd')](function(_0x7e5ead){const _0x360430=_0x1207fc;logger[_0x360430('0x16')](JSON['stringify'](_0x7e5ead));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x7')]=function(_0x185e6f){const _0x59f74e=_0x6bb307,_0x14943c=this;this['sequence'][_0x59f74e('0x18')](function(){const _0x54f6f1=_0x59f74e;return _0x14943c['queryInterface'][_0x54f6f1('0x7')](_0x185e6f,{'force':!![]})[_0x54f6f1('0xf')](function(){const _0x4a18a3=_0x54f6f1;logger[_0x4a18a3('0x16')](_0x4a18a3('0x15'),_0x185e6f);})[_0x54f6f1('0xd')](function(_0x2f3336){logger['info'](JSON['stringify'](_0x2f3336));});});},Migration[_0x6bb307('0x1b')]['addIndex']=function(_0x168d76,_0x4b239d,_0x167fa5){const _0x4103fd=_0x6bb307,_0x59070e=this;this[_0x4103fd('0x3')][_0x4103fd('0x18')](function(){const _0x43232d=_0x4103fd;return _0x59070e['queryInterface'][_0x43232d('0x1d')](_0x168d76,_0x4b239d,{'indexName':_0x167fa5})[_0x43232d('0xf')](function(){const _0x2e0995=_0x43232d;logger['info'](_0x2e0995('0x9'),_0x168d76,_0x4b239d['join'](','),_0x167fa5);})[_0x43232d('0xd')](function(_0x2e9631){const _0x11cd72=_0x43232d;logger[_0x11cd72('0x16')](JSON[_0x11cd72('0x1a')](_0x2e9631));});});},Migration[_0x6bb307('0x1b')]['removeIndex']=function(_0x492ba1,_0x129c2b){const _0x49bb94=_0x6bb307,_0x1ed164=this;this[_0x49bb94('0x3')]['enqueue'](function(){const _0x29418b=_0x49bb94;return _0x1ed164[_0x29418b('0x2')][_0x29418b('0x17')](_0x492ba1,_0x129c2b)[_0x29418b('0xf')](function(){const _0x44ad9f=_0x29418b;logger[_0x44ad9f('0x16')](_0x44ad9f('0x4'),_0x492ba1,_0x129c2b);})[_0x29418b('0xd')](function(_0x1c3a98){const _0x32fc5a=_0x29418b;logger[_0x32fc5a('0x16')](JSON[_0x32fc5a('0x1a')](_0x1c3a98));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x8')]=function(_0x4a4c27){const _0x25fa8f=_0x6bb307,_0x3e1e27=this;this[_0x25fa8f('0x3')][_0x25fa8f('0x18')](function(){const _0x5c645c=_0x25fa8f;return _0x3e1e27[_0x5c645c('0x2')][_0x5c645c('0xe')][_0x5c645c('0x8')](_0x4a4c27)[_0x5c645c('0xf')](function(){const _0x40e65d=_0x5c645c;logger[_0x40e65d('0x16')](_0x40e65d('0xa'),_0x4a4c27);})['catch'](function(_0x1b2519){const _0x3b421a=_0x5c645c;logger[_0x3b421a('0x16')](JSON[_0x3b421a('0x1a')](_0x1b2519));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x19')]=function(_0x2230c4,_0x2bfaf9){const _0x1f1dfe=_0x6bb307,_0x2b4252=this;this[_0x1f1dfe('0x3')][_0x1f1dfe('0x18')](function(){const _0x1bffe3=_0x1f1dfe;return _0x2b4252[_0x1bffe3('0x2')]['removeColumn'](_0x2230c4,_0x2bfaf9)[_0x1bffe3('0xf')](function(){const _0xdae2c6=_0x1bffe3;logger[_0xdae2c6('0x16')](_0xdae2c6('0x1c'),_0x2bfaf9,_0x2230c4);})['catch'](function(_0x5cfe3e){const _0x23b212=_0x1bffe3;logger[_0x23b212('0x16')](util['inspect'](_0x5cfe3e,{'showHidden':![],'depth':null}));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0x0')]=function(_0x27e996,_0x2628b8,_0x3c0202){const _0xc147f5=_0x6bb307,_0xd61360=this;this['sequence'][_0xc147f5('0x18')](function(){const _0x4bf30c=_0xc147f5;return _0xd61360[_0x4bf30c('0x2')][_0x4bf30c('0x0')](_0x27e996,_0x2628b8,_0x3c0202)[_0x4bf30c('0xf')](function(){const _0x24c469=_0x4bf30c;logger[_0x24c469('0x16')](_0x24c469('0x1'),_0x2628b8,_0x3c0202,_0x27e996);})[_0x4bf30c('0xd')](function(_0x353350){const _0xd2ee2f=_0x4bf30c;logger['info'](util[_0xd2ee2f('0x14')](_0x353350,{'showHidden':![],'depth':null}));});});},Migration[_0x6bb307('0x1b')][_0x6bb307('0xc')]=function(_0x1a9d68){const _0x534004=_0x6bb307;this[_0x534004('0x3')][_0x534004('0x18')](function(){return _0x1a9d68();});},module[_0x6bb307('0xb')]={'up':function(_0x1ecb4a){return new Promise(function(_0x25ea39){const _0x5c0e3e=a958_0x2787,_0x2d4e=new Migration(_0x1ecb4a);_0x2d4e[_0x5c0e3e('0x8')](_0x5c0e3e('0x6')),_0x2d4e[_0x5c0e3e('0xc')](_0x25ea39);});},'down':function(){}}; \ No newline at end of file +const a958_0x299b=['prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','inspect','dropTable','Removed\x20column\x20%s\x20from\x20%s','sequence','tail','table\x20dropped\x20%s','finally','removeIndex','stringify','enqueue','migration','changeColumn','removeColumn','then','final','queryInterface','../config/logger','query','join','query\x20%s','info','removeIndex\x20%s\x20%s','renameColumn','catch','util','addIndex','addColumn'];(function(_0x359900,_0x299bf2){const _0x44c029=function(_0x178e5b){while(--_0x178e5b){_0x359900['push'](_0x359900['shift']());}};_0x44c029(++_0x299bf2);}(a958_0x299b,0x173));const a958_0x44c0=function(_0x359900,_0x299bf2){_0x359900=_0x359900-0x0;let _0x44c029=a958_0x299b[_0x359900];return _0x44c029;};const _0x2771a7=a958_0x44c0;'use strict';const util=require(_0x2771a7('0x3')),logger=require(_0x2771a7('0x18'))(_0x2771a7('0x12')),Sequence=function(){};Sequence[_0x2771a7('0x6')]['enqueue']=function(_0x178e5b){const _0x41ff47=_0x2771a7;this[_0x41ff47('0xc')]=this['tail']?this[_0x41ff47('0xc')][_0x41ff47('0xe')](_0x178e5b):_0x178e5b();};const Migration=function(_0xa2836c){const _0x45a1b3=_0x2771a7;this[_0x45a1b3('0x17')]=_0xa2836c,this[_0x45a1b3('0xb')]=new Sequence();};Migration['prototype'][_0x2771a7('0x13')]=function(_0x2d7232,_0x34c877,_0x3a7243){const _0xf1d29a=_0x2771a7,_0x3bc850=this;this[_0xf1d29a('0xb')]['enqueue'](function(){const _0x46058e=_0xf1d29a;return _0x3bc850[_0x46058e('0x17')][_0x46058e('0x13')](_0x2d7232,_0x34c877,_0x3a7243)['then'](function(){const _0x59c4be=_0x46058e;logger[_0x59c4be('0x1c')](_0x59c4be('0x7'),_0x34c877,_0x2d7232);})[_0x46058e('0x2')](function(_0x131282){const _0x4647d8=_0x46058e;logger[_0x4647d8('0x1c')](JSON[_0x4647d8('0x10')](_0x131282));});});},Migration[_0x2771a7('0x6')][_0x2771a7('0x5')]=function(_0x363706,_0x3284ce,_0x394061){const _0x3c0a04=_0x2771a7,_0x59cef2=this;this[_0x3c0a04('0xb')]['enqueue'](function(){const _0x8f8412=_0x3c0a04;return _0x59cef2[_0x8f8412('0x17')][_0x8f8412('0x5')](_0x363706,_0x3284ce,_0x394061)[_0x8f8412('0x15')](function(){const _0x3a4cf1=_0x8f8412;logger[_0x3a4cf1('0x1c')]('Added\x20column\x20%s\x20to\x20%s',_0x3284ce,_0x363706);})[_0x8f8412('0x2')](function(_0x5123f9){const _0x194e22=_0x8f8412;logger[_0x194e22('0x1c')](JSON[_0x194e22('0x10')](_0x5123f9));});});},Migration['prototype'][_0x2771a7('0x9')]=function(_0x4b0b50){const _0x28d375=_0x2771a7,_0x23ab11=this;this['sequence'][_0x28d375('0x11')](function(){const _0x15e39e=_0x28d375;return _0x23ab11['queryInterface'][_0x15e39e('0x9')](_0x4b0b50,{'force':!![]})[_0x15e39e('0x15')](function(){const _0x5abc9c=_0x15e39e;logger['info'](_0x5abc9c('0xd'),_0x4b0b50);})[_0x15e39e('0x2')](function(_0x1889e9){const _0x59e316=_0x15e39e;logger[_0x59e316('0x1c')](JSON[_0x59e316('0x10')](_0x1889e9));});});},Migration[_0x2771a7('0x6')]['addIndex']=function(_0x180ec0,_0x389ae7,_0x3f2d89){const _0x458951=_0x2771a7,_0x4209f6=this;this[_0x458951('0xb')]['enqueue'](function(){const _0x543574=_0x458951;return _0x4209f6[_0x543574('0x17')][_0x543574('0x4')](_0x180ec0,_0x389ae7,{'indexName':_0x3f2d89})['then'](function(){const _0x3e999d=_0x543574;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x180ec0,_0x389ae7[_0x3e999d('0x1a')](','),_0x3f2d89);})[_0x543574('0x2')](function(_0x16930a){const _0x52d14f=_0x543574;logger[_0x52d14f('0x1c')](JSON[_0x52d14f('0x10')](_0x16930a));});});},Migration[_0x2771a7('0x6')]['removeIndex']=function(_0x12dd3e,_0x489402){const _0x339a57=_0x2771a7,_0x366e1a=this;this['sequence'][_0x339a57('0x11')](function(){const _0x369056=_0x339a57;return _0x366e1a[_0x369056('0x17')][_0x369056('0xf')](_0x12dd3e,_0x489402)[_0x369056('0x15')](function(){const _0x37d9f8=_0x369056;logger['info'](_0x37d9f8('0x0'),_0x12dd3e,_0x489402);})[_0x369056('0x2')](function(_0x40a553){logger['info'](JSON['stringify'](_0x40a553));});});},Migration[_0x2771a7('0x6')]['query']=function(_0x31fed5){const _0x16826a=_0x2771a7,_0x24383d=this;this[_0x16826a('0xb')][_0x16826a('0x11')](function(){const _0x276fcf=_0x16826a;return _0x24383d[_0x276fcf('0x17')]['sequelize'][_0x276fcf('0x19')](_0x31fed5)[_0x276fcf('0x15')](function(){const _0x35191f=_0x276fcf;logger[_0x35191f('0x1c')](_0x35191f('0x1b'),_0x31fed5);})[_0x276fcf('0x2')](function(_0x33eb62){const _0x28cbfe=_0x276fcf;logger[_0x28cbfe('0x1c')](JSON[_0x28cbfe('0x10')](_0x33eb62));});});},Migration['prototype'][_0x2771a7('0x14')]=function(_0x51d605,_0x13b875){const _0xb14a8f=_0x2771a7,_0x49aed7=this;this['sequence'][_0xb14a8f('0x11')](function(){const _0x2f950d=_0xb14a8f;return _0x49aed7[_0x2f950d('0x17')]['removeColumn'](_0x51d605,_0x13b875)[_0x2f950d('0x15')](function(){const _0x165c17=_0x2f950d;logger['info'](_0x165c17('0xa'),_0x13b875,_0x51d605);})[_0x2f950d('0x2')](function(_0x50e86e){const _0x4580a5=_0x2f950d;logger[_0x4580a5('0x1c')](util[_0x4580a5('0x8')](_0x50e86e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x2771a7('0x1')]=function(_0x5e78ac,_0x426587,_0x2836b4){const _0x345c06=_0x2771a7,_0x3f77ae=this;this[_0x345c06('0xb')]['enqueue'](function(){const _0x505e72=_0x345c06;return _0x3f77ae[_0x505e72('0x17')][_0x505e72('0x1')](_0x5e78ac,_0x426587,_0x2836b4)['then'](function(){const _0x5f43e6=_0x505e72;logger[_0x5f43e6('0x1c')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x426587,_0x2836b4,_0x5e78ac);})[_0x505e72('0x2')](function(_0xb5c445){const _0x33c0d0=_0x505e72;logger[_0x33c0d0('0x1c')](util[_0x33c0d0('0x8')](_0xb5c445,{'showHidden':![],'depth':null}));});});},Migration[_0x2771a7('0x6')]['final']=function(_0x35e9f6){const _0x97aad4=_0x2771a7;this[_0x97aad4('0xb')]['enqueue'](function(){return _0x35e9f6();});},module['exports']={'up':function(_0x3a67ab){return new Promise(function(_0x84e51e){const _0x1b054c=a958_0x44c0,_0x3edb36=new Migration(_0x3a67ab);_0x3edb36[_0x1b054c('0x19')]('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'),_0x3edb36[_0x1b054c('0x16')](_0x84e51e);});},'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 6bebb21..7bd53da 100644 --- a/server/migrations/2.0.80.js +++ b/server/migrations/2.0.80.js @@ -1 +1 @@ -const a959_0x3b79=['dropTable','join','addIndex\x20%s\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','Added\x20column\x20%s\x20to\x20%s','then','../config/logger','settings','final','stringify','inspect','sequelize','queryInterface','migration','query\x20%s','enqueue','tail','defaultPreferred','Removed\x20column\x20%s\x20from\x20%s','exports','info','sequence','preferred','removeIndex','changeColumn','catch','removeIndex\x20%s\x20%s','addColumn','renameColumn','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','prototype'];(function(_0x43b8cd,_0x3b79d0){const _0x4534cc=function(_0x20ffbe){while(--_0x20ffbe){_0x43b8cd['push'](_0x43b8cd['shift']());}};_0x4534cc(++_0x3b79d0);}(a959_0x3b79,0x122));const a959_0x4534=function(_0x43b8cd,_0x3b79d0){_0x43b8cd=_0x43b8cd-0x0;let _0x4534cc=a959_0x3b79[_0x43b8cd];return _0x4534cc;};const _0x1820b4=a959_0x4534;'use strict';const util=require('util'),logger=require(_0x1820b4('0xe'))(_0x1820b4('0x15')),Sequence=function(){};Sequence[_0x1820b4('0x6')][_0x1820b4('0x17')]=function(_0x20ffbe){const _0x3c398e=_0x1820b4;this[_0x3c398e('0x18')]=this['tail']?this[_0x3c398e('0x18')]['finally'](_0x20ffbe):_0x20ffbe();};const Migration=function(_0x52224a){const _0x1fbe54=_0x1820b4;this[_0x1fbe54('0x14')]=_0x52224a,this[_0x1fbe54('0x1d')]=new Sequence();};Migration['prototype'][_0x1820b4('0x20')]=function(_0xd53429,_0x52e1eb,_0x193fb3){const _0x4d4b6f=_0x1820b4,_0x45d03a=this;this[_0x4d4b6f('0x1d')][_0x4d4b6f('0x17')](function(){const _0x2a744c=_0x4d4b6f;return _0x45d03a[_0x2a744c('0x14')][_0x2a744c('0x20')](_0xd53429,_0x52e1eb,_0x193fb3)[_0x2a744c('0xd')](function(){const _0x58d09a=_0x2a744c;logger['info'](_0x58d09a('0x5'),_0x52e1eb,_0xd53429);})[_0x2a744c('0x0')](function(_0x3e99dc){const _0x248ca4=_0x2a744c;logger['info'](JSON[_0x248ca4('0x11')](_0x3e99dc));});});},Migration[_0x1820b4('0x6')]['addColumn']=function(_0x5a892e,_0x534d72,_0xe20d6){const _0x1e6d66=_0x1820b4,_0x29c8bc=this;this['sequence'][_0x1e6d66('0x17')](function(){const _0x4a98bd=_0x1e6d66;return _0x29c8bc[_0x4a98bd('0x14')]['addColumn'](_0x5a892e,_0x534d72,_0xe20d6)[_0x4a98bd('0xd')](function(){const _0x5050ae=_0x4a98bd;logger['info'](_0x5050ae('0xc'),_0x534d72,_0x5a892e);})[_0x4a98bd('0x0')](function(_0x5127ab){const _0x199872=_0x4a98bd;logger['info'](JSON[_0x199872('0x11')](_0x5127ab));});});},Migration['prototype'][_0x1820b4('0x7')]=function(_0x1983f3){const _0x3da3aa=_0x1820b4,_0x3c37bb=this;this[_0x3da3aa('0x1d')][_0x3da3aa('0x17')](function(){const _0x1cbfa6=_0x3da3aa;return _0x3c37bb['queryInterface'][_0x1cbfa6('0x7')](_0x1983f3,{'force':!![]})[_0x1cbfa6('0xd')](function(){const _0xa16611=_0x1cbfa6;logger[_0xa16611('0x1c')]('table\x20dropped\x20%s',_0x1983f3);})[_0x1cbfa6('0x0')](function(_0x523b1d){const _0x59eabe=_0x1cbfa6;logger[_0x59eabe('0x1c')](JSON[_0x59eabe('0x11')](_0x523b1d));});});},Migration[_0x1820b4('0x6')][_0x1820b4('0xb')]=function(_0x496d0d,_0x26f18f,_0x28ac2d){const _0x3b470a=_0x1820b4,_0x523a25=this;this[_0x3b470a('0x1d')]['enqueue'](function(){const _0x14bdbb=_0x3b470a;return _0x523a25[_0x14bdbb('0x14')][_0x14bdbb('0xb')](_0x496d0d,_0x26f18f,{'indexName':_0x28ac2d})[_0x14bdbb('0xd')](function(){const _0x1811be=_0x14bdbb;logger[_0x1811be('0x1c')](_0x1811be('0x9'),_0x496d0d,_0x26f18f[_0x1811be('0x8')](','),_0x28ac2d);})[_0x14bdbb('0x0')](function(_0x5c55f9){const _0x339f1b=_0x14bdbb;logger[_0x339f1b('0x1c')](JSON['stringify'](_0x5c55f9));});});},Migration[_0x1820b4('0x6')][_0x1820b4('0x1f')]=function(_0x529eed,_0x2d1937){const _0x5b8eba=_0x1820b4,_0x371381=this;this[_0x5b8eba('0x1d')]['enqueue'](function(){const _0x273931=_0x5b8eba;return _0x371381[_0x273931('0x14')][_0x273931('0x1f')](_0x529eed,_0x2d1937)[_0x273931('0xd')](function(){const _0x26f2e2=_0x273931;logger[_0x26f2e2('0x1c')](_0x26f2e2('0x1'),_0x529eed,_0x2d1937);})[_0x273931('0x0')](function(_0x34f922){logger['info'](JSON['stringify'](_0x34f922));});});},Migration[_0x1820b4('0x6')]['query']=function(_0x2f781d){const _0x338984=_0x1820b4,_0x409216=this;this[_0x338984('0x1d')][_0x338984('0x17')](function(){const _0x256bf3=_0x338984;return _0x409216[_0x256bf3('0x14')][_0x256bf3('0x13')]['query'](_0x2f781d)['then'](function(){const _0x2fe884=_0x256bf3;logger['info'](_0x2fe884('0x16'),_0x2f781d);})['catch'](function(_0x12d277){const _0x9aa1a5=_0x256bf3;logger[_0x9aa1a5('0x1c')](JSON[_0x9aa1a5('0x11')](_0x12d277));});});},Migration[_0x1820b4('0x6')][_0x1820b4('0x4')]=function(_0x20ea27,_0xf0694a){const _0x170558=_0x1820b4,_0x113556=this;this[_0x170558('0x1d')][_0x170558('0x17')](function(){const _0x37592b=_0x170558;return _0x113556[_0x37592b('0x14')]['removeColumn'](_0x20ea27,_0xf0694a)[_0x37592b('0xd')](function(){const _0x19dc26=_0x37592b;logger[_0x19dc26('0x1c')](_0x19dc26('0x1a'),_0xf0694a,_0x20ea27);})[_0x37592b('0x0')](function(_0x219799){const _0x19d124=_0x37592b;logger[_0x19d124('0x1c')](util[_0x19d124('0x12')](_0x219799,{'showHidden':![],'depth':null}));});});},Migration[_0x1820b4('0x6')][_0x1820b4('0x3')]=function(_0x134450,_0x5d7b24,_0x488a92){const _0x427f1f=_0x1820b4,_0x16468b=this;this[_0x427f1f('0x1d')][_0x427f1f('0x17')](function(){const _0x49facc=_0x427f1f;return _0x16468b[_0x49facc('0x14')][_0x49facc('0x3')](_0x134450,_0x5d7b24,_0x488a92)[_0x49facc('0xd')](function(){const _0x4977a2=_0x49facc;logger[_0x4977a2('0x1c')](_0x4977a2('0xa'),_0x5d7b24,_0x488a92,_0x134450);})[_0x49facc('0x0')](function(_0xe19bc5){const _0x540a87=_0x49facc;logger[_0x540a87('0x1c')](util[_0x540a87('0x12')](_0xe19bc5,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1820b4('0x10')]=function(_0x2625fe){const _0xb355f6=_0x1820b4;this[_0xb355f6('0x1d')]['enqueue'](function(){return _0x2625fe();});},module[_0x1820b4('0x1b')]={'up':function(_0x54d68c,_0x437498){return new Promise(function(_0x1a42ad){const _0xed1456=a959_0x4534,_0x53b7ab=new Migration(_0x54d68c);_0x53b7ab[_0xed1456('0x2')](_0xed1456('0xf'),_0xed1456('0x1e'),{'type':_0x437498['STRING']}),_0x53b7ab[_0xed1456('0x2')]('settings',_0xed1456('0x19'),{'type':_0x437498['BOOLEAN'],'defaultValue':!![]}),_0x53b7ab[_0xed1456('0x10')](_0x1a42ad);});},'down':function(){}}; \ No newline at end of file +const a959_0x591f=['query\x20%s','addIndex','../config/logger','enqueue','changeColumn','BOOLEAN','table\x20dropped\x20%s','sequence','tail','renameColumn','addIndex\x20%s\x20%s\x20%s','inspect','util','removeIndex','prototype','final','dropTable','removeColumn','then','defaultPreferred','catch','info','settings','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','preferred','join','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','queryInterface','stringify','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','query'];(function(_0x27c881,_0x591f0e){const _0x54f3a8=function(_0x574a75){while(--_0x574a75){_0x27c881['push'](_0x27c881['shift']());}};_0x54f3a8(++_0x591f0e);}(a959_0x591f,0x6b));const a959_0x54f3=function(_0x27c881,_0x591f0e){_0x27c881=_0x27c881-0x0;let _0x54f3a8=a959_0x591f[_0x27c881];return _0x54f3a8;};const _0x304e09=a959_0x54f3;'use strict';const util=require(_0x304e09('0x7')),logger=require(_0x304e09('0x1f'))('migration'),Sequence=function(){};Sequence[_0x304e09('0x9')][_0x304e09('0x20')]=function(_0x574a75){const _0x3ba8d1=_0x304e09;this['tail']=this[_0x3ba8d1('0x3')]?this[_0x3ba8d1('0x3')][_0x3ba8d1('0x17')](_0x574a75):_0x574a75();};const Migration=function(_0x31439d){const _0x173891=_0x304e09;this[_0x173891('0x18')]=_0x31439d,this[_0x173891('0x2')]=new Sequence();};Migration[_0x304e09('0x9')][_0x304e09('0x21')]=function(_0x31ed0a,_0x438a47,_0x4b1768){const _0x10ff86=_0x304e09,_0x55d55e=this;this[_0x10ff86('0x2')][_0x10ff86('0x20')](function(){const _0x193c72=_0x10ff86;return _0x55d55e[_0x193c72('0x18')][_0x193c72('0x21')](_0x31ed0a,_0x438a47,_0x4b1768)['then'](function(){const _0x16e068=_0x193c72;logger[_0x16e068('0x10')](_0x16e068('0x16'),_0x438a47,_0x31ed0a);})[_0x193c72('0xf')](function(_0x4eb1ab){const _0x8e786f=_0x193c72;logger[_0x8e786f('0x10')](JSON[_0x8e786f('0x19')](_0x4eb1ab));});});},Migration['prototype'][_0x304e09('0x12')]=function(_0x51798b,_0xa6184b,_0x148897){const _0x59c9fb=this;this['sequence']['enqueue'](function(){const _0x12cd5e=a959_0x54f3;return _0x59c9fb['queryInterface'][_0x12cd5e('0x12')](_0x51798b,_0xa6184b,_0x148897)[_0x12cd5e('0xd')](function(){const _0x5f4356=_0x12cd5e;logger['info'](_0x5f4356('0x1b'),_0xa6184b,_0x51798b);})[_0x12cd5e('0xf')](function(_0x495653){const _0x5d0589=_0x12cd5e;logger[_0x5d0589('0x10')](JSON[_0x5d0589('0x19')](_0x495653));});});},Migration[_0x304e09('0x9')][_0x304e09('0xb')]=function(_0x34cf39){const _0x162569=_0x304e09,_0xf35468=this;this['sequence'][_0x162569('0x20')](function(){const _0x9a6fa8=_0x162569;return _0xf35468[_0x9a6fa8('0x18')][_0x9a6fa8('0xb')](_0x34cf39,{'force':!![]})['then'](function(){const _0x4289fd=_0x9a6fa8;logger[_0x4289fd('0x10')](_0x4289fd('0x1'),_0x34cf39);})[_0x9a6fa8('0xf')](function(_0x103e00){const _0x1764a2=_0x9a6fa8;logger['info'](JSON[_0x1764a2('0x19')](_0x103e00));});});},Migration['prototype'][_0x304e09('0x1e')]=function(_0x2aa85a,_0x574fd9,_0x320f30){const _0x3ec367=_0x304e09,_0x1d9238=this;this[_0x3ec367('0x2')][_0x3ec367('0x20')](function(){const _0x25eec1=_0x3ec367;return _0x1d9238[_0x25eec1('0x18')][_0x25eec1('0x1e')](_0x2aa85a,_0x574fd9,{'indexName':_0x320f30})['then'](function(){const _0x333548=_0x25eec1;logger[_0x333548('0x10')](_0x333548('0x5'),_0x2aa85a,_0x574fd9[_0x333548('0x15')](','),_0x320f30);})[_0x25eec1('0xf')](function(_0x595254){const _0x39010c=_0x25eec1;logger['info'](JSON[_0x39010c('0x19')](_0x595254));});});},Migration[_0x304e09('0x9')][_0x304e09('0x8')]=function(_0x178377,_0x53acf5){const _0x29932e=_0x304e09,_0x5a0169=this;this[_0x29932e('0x2')][_0x29932e('0x20')](function(){const _0x12b0c0=_0x29932e;return _0x5a0169[_0x12b0c0('0x18')][_0x12b0c0('0x8')](_0x178377,_0x53acf5)[_0x12b0c0('0xd')](function(){const _0x42b56a=_0x12b0c0;logger[_0x42b56a('0x10')]('removeIndex\x20%s\x20%s',_0x178377,_0x53acf5);})[_0x12b0c0('0xf')](function(_0x1cbf2a){const _0x29b317=_0x12b0c0;logger[_0x29b317('0x10')](JSON[_0x29b317('0x19')](_0x1cbf2a));});});},Migration[_0x304e09('0x9')]['query']=function(_0xec9cb8){const _0x3220d6=_0x304e09,_0x143170=this;this[_0x3220d6('0x2')][_0x3220d6('0x20')](function(){const _0x4c4eff=_0x3220d6;return _0x143170['queryInterface']['sequelize'][_0x4c4eff('0x1c')](_0xec9cb8)[_0x4c4eff('0xd')](function(){const _0x538cb6=_0x4c4eff;logger['info'](_0x538cb6('0x1d'),_0xec9cb8);})['catch'](function(_0x3b0253){const _0x4623a4=_0x4c4eff;logger['info'](JSON[_0x4623a4('0x19')](_0x3b0253));});});},Migration[_0x304e09('0x9')][_0x304e09('0xc')]=function(_0x1b861e,_0x2a26be){const _0x3ab9aa=_0x304e09,_0x3c40c4=this;this['sequence'][_0x3ab9aa('0x20')](function(){const _0x1f2369=_0x3ab9aa;return _0x3c40c4[_0x1f2369('0x18')][_0x1f2369('0xc')](_0x1b861e,_0x2a26be)['then'](function(){const _0x624451=_0x1f2369;logger['info'](_0x624451('0x1a'),_0x2a26be,_0x1b861e);})[_0x1f2369('0xf')](function(_0x1c63ae){const _0x2335c3=_0x1f2369;logger[_0x2335c3('0x10')](util[_0x2335c3('0x6')](_0x1c63ae,{'showHidden':![],'depth':null}));});});},Migration[_0x304e09('0x9')][_0x304e09('0x4')]=function(_0x1305a6,_0x55fc9d,_0xa6acb){const _0x155e85=this;this['sequence']['enqueue'](function(){const _0x39fe81=a959_0x54f3;return _0x155e85[_0x39fe81('0x18')][_0x39fe81('0x4')](_0x1305a6,_0x55fc9d,_0xa6acb)[_0x39fe81('0xd')](function(){const _0x1cb06d=_0x39fe81;logger[_0x1cb06d('0x10')](_0x1cb06d('0x13'),_0x55fc9d,_0xa6acb,_0x1305a6);})[_0x39fe81('0xf')](function(_0x1f23c9){const _0x1411a2=_0x39fe81;logger[_0x1411a2('0x10')](util[_0x1411a2('0x6')](_0x1f23c9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x304e09('0xa')]=function(_0x529073){const _0x3b6236=_0x304e09;this[_0x3b6236('0x2')][_0x3b6236('0x20')](function(){return _0x529073();});},module['exports']={'up':function(_0x278575,_0xf0925c){return new Promise(function(_0x1ef860){const _0x26156d=a959_0x54f3,_0x4e4406=new Migration(_0x278575);_0x4e4406[_0x26156d('0x12')](_0x26156d('0x11'),_0x26156d('0x14'),{'type':_0xf0925c['STRING']}),_0x4e4406[_0x26156d('0x12')](_0x26156d('0x11'),_0x26156d('0xe'),{'type':_0xf0925c[_0x26156d('0x0')],'defaultValue':!![]}),_0x4e4406[_0x26156d('0xa')](_0x1ef860);});},'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 a5e5801..af35de2 100644 --- a/server/migrations/2.0.81.js +++ b/server/migrations/2.0.81.js @@ -1 +1 @@ -const a960_0x16ac=['addIndex','stringify','dropTable','classic+','addColumn','inspect','sms_accounts','ENUM','Added\x20column\x20%s\x20to\x20%s','final','migration','basic','query','prototype','removeColumn','catch','renameColumn','query\x20%s','removeIndex\x20%s\x20%s','enqueue','queryInterface','removeIndex','finally','cm_contacts','smsMethod','info','tail','Removed\x20column\x20%s\x20from\x20%s','STRING','then','classic','changeColumn','telegram','sequence','addIndex\x20%s\x20%s\x20%s','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27SI\x27\x20WHERE\x20smsMethod\x20=\x20\x27basic\x27','util'];(function(_0x2fa4a6,_0x16ac1f){const _0x358f2c=function(_0x26abb5){while(--_0x26abb5){_0x2fa4a6['push'](_0x2fa4a6['shift']());}};_0x358f2c(++_0x16ac1f);}(a960_0x16ac,0x78));const a960_0x358f=function(_0x2fa4a6,_0x16ac1f){_0x2fa4a6=_0x2fa4a6-0x0;let _0x358f2c=a960_0x16ac[_0x2fa4a6];return _0x358f2c;};const _0x4b53d3=a960_0x358f;'use strict';const util=require(_0x4b53d3('0x1b')),logger=require('../config/logger')(_0x4b53d3('0x1')),Sequence=function(){};Sequence['prototype'][_0x4b53d3('0xa')]=function(_0x26abb5){const _0x507a73=_0x4b53d3;this[_0x507a73('0x11')]=this[_0x507a73('0x11')]?this[_0x507a73('0x11')][_0x507a73('0xd')](_0x26abb5):_0x26abb5();};const Migration=function(_0x7efe58){const _0x1da28e=_0x4b53d3;this[_0x1da28e('0xb')]=_0x7efe58,this[_0x1da28e('0x18')]=new Sequence();};Migration[_0x4b53d3('0x4')][_0x4b53d3('0x16')]=function(_0x4b0190,_0x28c88b,_0x1aa20b){const _0xf65cd0=_0x4b53d3,_0x54be26=this;this[_0xf65cd0('0x18')][_0xf65cd0('0xa')](function(){const _0x1843ef=_0xf65cd0;return _0x54be26[_0x1843ef('0xb')][_0x1843ef('0x16')](_0x4b0190,_0x28c88b,_0x1aa20b)[_0x1843ef('0x14')](function(){const _0x501ab6=_0x1843ef;logger[_0x501ab6('0x10')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x28c88b,_0x4b0190);})['catch'](function(_0x2386c8){const _0x13a5ba=_0x1843ef;logger[_0x13a5ba('0x10')](JSON['stringify'](_0x2386c8));});});},Migration[_0x4b53d3('0x4')][_0x4b53d3('0x20')]=function(_0x530626,_0x165164,_0x22f698){const _0xab2a83=_0x4b53d3,_0x9a4582=this;this['sequence'][_0xab2a83('0xa')](function(){const _0x13a3bb=_0xab2a83;return _0x9a4582[_0x13a3bb('0xb')][_0x13a3bb('0x20')](_0x530626,_0x165164,_0x22f698)['then'](function(){const _0x48223f=_0x13a3bb;logger[_0x48223f('0x10')](_0x48223f('0x24'),_0x165164,_0x530626);})[_0x13a3bb('0x6')](function(_0x5e4bc2){const _0x12178f=_0x13a3bb;logger[_0x12178f('0x10')](JSON['stringify'](_0x5e4bc2));});});},Migration[_0x4b53d3('0x4')][_0x4b53d3('0x1e')]=function(_0x47f900){const _0x59ee7d=_0x4b53d3,_0xa5c059=this;this[_0x59ee7d('0x18')][_0x59ee7d('0xa')](function(){const _0xe16923=_0x59ee7d;return _0xa5c059['queryInterface'][_0xe16923('0x1e')](_0x47f900,{'force':!![]})[_0xe16923('0x14')](function(){const _0x7bab5f=_0xe16923;logger[_0x7bab5f('0x10')]('table\x20dropped\x20%s',_0x47f900);})['catch'](function(_0x2ee56e){const _0xa24bdb=_0xe16923;logger[_0xa24bdb('0x10')](JSON['stringify'](_0x2ee56e));});});},Migration['prototype'][_0x4b53d3('0x1c')]=function(_0x3b6c9e,_0x509b38,_0x7fc293){const _0x16f429=_0x4b53d3,_0x3ebbef=this;this[_0x16f429('0x18')][_0x16f429('0xa')](function(){const _0x4d6832=_0x16f429;return _0x3ebbef[_0x4d6832('0xb')][_0x4d6832('0x1c')](_0x3b6c9e,_0x509b38,{'indexName':_0x7fc293})[_0x4d6832('0x14')](function(){const _0x18e3c5=_0x4d6832;logger[_0x18e3c5('0x10')](_0x18e3c5('0x19'),_0x3b6c9e,_0x509b38['join'](','),_0x7fc293);})[_0x4d6832('0x6')](function(_0x52fdbd){const _0x4e96a7=_0x4d6832;logger[_0x4e96a7('0x10')](JSON['stringify'](_0x52fdbd));});});},Migration[_0x4b53d3('0x4')][_0x4b53d3('0xc')]=function(_0x3c3e33,_0x36d42f){const _0x4fc5cc=this;this['sequence']['enqueue'](function(){const _0x542db6=a960_0x358f;return _0x4fc5cc[_0x542db6('0xb')][_0x542db6('0xc')](_0x3c3e33,_0x36d42f)[_0x542db6('0x14')](function(){const _0x16789c=_0x542db6;logger[_0x16789c('0x10')](_0x16789c('0x9'),_0x3c3e33,_0x36d42f);})[_0x542db6('0x6')](function(_0xfb422d){const _0x4023b8=_0x542db6;logger['info'](JSON[_0x4023b8('0x1d')](_0xfb422d));});});},Migration[_0x4b53d3('0x4')]['query']=function(_0x23fd6f){const _0x9368be=_0x4b53d3,_0x4077c1=this;this['sequence'][_0x9368be('0xa')](function(){const _0x495434=_0x9368be;return _0x4077c1[_0x495434('0xb')]['sequelize'][_0x495434('0x3')](_0x23fd6f)['then'](function(){const _0x240bce=_0x495434;logger[_0x240bce('0x10')](_0x240bce('0x8'),_0x23fd6f);})[_0x495434('0x6')](function(_0x955056){const _0x73494f=_0x495434;logger['info'](JSON[_0x73494f('0x1d')](_0x955056));});});},Migration['prototype'][_0x4b53d3('0x5')]=function(_0x536ff2,_0x28ff12){const _0x2fbc47=_0x4b53d3,_0x5bb3a5=this;this[_0x2fbc47('0x18')][_0x2fbc47('0xa')](function(){const _0x2b95a2=_0x2fbc47;return _0x5bb3a5[_0x2b95a2('0xb')][_0x2b95a2('0x5')](_0x536ff2,_0x28ff12)[_0x2b95a2('0x14')](function(){const _0x2f0df6=_0x2b95a2;logger['info'](_0x2f0df6('0x12'),_0x28ff12,_0x536ff2);})['catch'](function(_0x5a5afe){const _0x256b72=_0x2b95a2;logger['info'](util[_0x256b72('0x21')](_0x5a5afe,{'showHidden':![],'depth':null}));});});},Migration[_0x4b53d3('0x4')][_0x4b53d3('0x7')]=function(_0x4e0f2f,_0x58daa,_0x2a9999){const _0x14c399=_0x4b53d3,_0x5142c4=this;this[_0x14c399('0x18')]['enqueue'](function(){const _0x24a6be=_0x14c399;return _0x5142c4[_0x24a6be('0xb')][_0x24a6be('0x7')](_0x4e0f2f,_0x58daa,_0x2a9999)[_0x24a6be('0x14')](function(){const _0x901ad9=_0x24a6be;logger[_0x901ad9('0x10')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x58daa,_0x2a9999,_0x4e0f2f);})[_0x24a6be('0x6')](function(_0x2d4587){const _0x17fb67=_0x24a6be;logger[_0x17fb67('0x10')](util['inspect'](_0x2d4587,{'showHidden':![],'depth':null}));});});},Migration[_0x4b53d3('0x4')][_0x4b53d3('0x0')]=function(_0x8ffabe){const _0xe08df7=_0x4b53d3;this[_0xe08df7('0x18')]['enqueue'](function(){return _0x8ffabe();});},module['exports']={'up':function(_0x3f413e,_0x382b4f){return new Promise(function(_0x520b8b){const _0x6d2624=a960_0x358f,_0x4b106a=new Migration(_0x3f413e);_0x4b106a[_0x6d2624('0x16')](_0x6d2624('0x22'),'smsMethod',{'type':_0x382b4f['ENUM'](_0x6d2624('0x2'),_0x6d2624('0x15'),_0x6d2624('0x1f'),'SI','TI','GP')}),_0x4b106a[_0x6d2624('0x3')](_0x6d2624('0x1a')),_0x4b106a[_0x6d2624('0x3')]('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'),_0x4b106a[_0x6d2624('0x3')]('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'),_0x4b106a[_0x6d2624('0x16')](_0x6d2624('0x22'),_0x6d2624('0xf'),{'type':_0x382b4f[_0x6d2624('0x23')]('SI','TI','GP')}),_0x4b106a[_0x6d2624('0x20')](_0x6d2624('0xe'),_0x6d2624('0x17'),{'type':_0x382b4f[_0x6d2624('0x13')]}),_0x4b106a[_0x6d2624('0x0')](_0x520b8b);});},'down':function(){}}; \ No newline at end of file +const a960_0x3ffa=['tail','removeIndex','Removed\x20column\x20%s\x20from\x20%s','finally','then','Added\x20column\x20%s\x20to\x20%s','info','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','inspect','removeIndex\x20%s\x20%s','migration','join','smsMethod','removeColumn','ENUM','classic+','catch','addIndex','basic','cm_contacts','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','final','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','enqueue','classic','sequelize','telegram','table\x20dropped\x20%s','UPDATE\x20sms_accounts\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SET\x20smsMethod\x20=\x20\x27GP\x27\x20WHERE\x20smsMethod\x20=\x20\x27classic+\x27','stringify','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','renameColumn','addIndex\x20%s\x20%s\x20%s','sms_accounts','query','sequence','addColumn','prototype','../config/logger','changeColumn'];(function(_0x10d3ef,_0x3ffa97){const _0xefae=function(_0x572b65){while(--_0x572b65){_0x10d3ef['push'](_0x10d3ef['shift']());}};_0xefae(++_0x3ffa97);}(a960_0x3ffa,0x1cf));const a960_0xefae=function(_0x10d3ef,_0x3ffa97){_0x10d3ef=_0x10d3ef-0x0;let _0xefae=a960_0x3ffa[_0x10d3ef];return _0xefae;};const _0x3afcd4=a960_0xefae;'use strict';const util=require('util'),logger=require(_0x3afcd4('0x27'))(_0x3afcd4('0xa')),Sequence=function(){};Sequence[_0x3afcd4('0x26')]['enqueue']=function(_0x572b65){const _0x556a86=_0x3afcd4;this[_0x556a86('0x29')]=this[_0x556a86('0x29')]?this[_0x556a86('0x29')][_0x556a86('0x2')](_0x572b65):_0x572b65();};const Migration=function(_0x1344f2){const _0x1a0b75=_0x3afcd4;this[_0x1a0b75('0x7')]=_0x1344f2,this['sequence']=new Sequence();};Migration[_0x3afcd4('0x26')]['changeColumn']=function(_0x3e0ad1,_0x183d63,_0x3b4cbb){const _0x2c00ae=_0x3afcd4,_0x578aaf=this;this[_0x2c00ae('0x24')][_0x2c00ae('0x18')](function(){const _0x3df331=_0x2c00ae;return _0x578aaf[_0x3df331('0x7')]['changeColumn'](_0x3e0ad1,_0x183d63,_0x3b4cbb)[_0x3df331('0x3')](function(){const _0x5c0e64=_0x3df331;logger[_0x5c0e64('0x5')](_0x5c0e64('0x16'),_0x183d63,_0x3e0ad1);})['catch'](function(_0x418dc4){logger['info'](JSON['stringify'](_0x418dc4));});});},Migration[_0x3afcd4('0x26')][_0x3afcd4('0x25')]=function(_0xed522b,_0x1019d4,_0x2f14b3){const _0x4029e8=this;this['sequence']['enqueue'](function(){const _0x940076=a960_0xefae;return _0x4029e8[_0x940076('0x7')][_0x940076('0x25')](_0xed522b,_0x1019d4,_0x2f14b3)[_0x940076('0x3')](function(){const _0x508740=_0x940076;logger[_0x508740('0x5')](_0x508740('0x4'),_0x1019d4,_0xed522b);})[_0x940076('0x10')](function(_0x1841fb){const _0x347069=_0x940076;logger[_0x347069('0x5')](JSON[_0x347069('0x1e')](_0x1841fb));});});},Migration[_0x3afcd4('0x26')][_0x3afcd4('0x17')]=function(_0x4706d7){const _0x269f38=_0x3afcd4,_0x530a42=this;this[_0x269f38('0x24')]['enqueue'](function(){const _0x52d12b=_0x269f38;return _0x530a42[_0x52d12b('0x7')][_0x52d12b('0x17')](_0x4706d7,{'force':!![]})[_0x52d12b('0x3')](function(){const _0x3ed1d3=_0x52d12b;logger['info'](_0x3ed1d3('0x1c'),_0x4706d7);})[_0x52d12b('0x10')](function(_0x3b0952){const _0x4bef32=_0x52d12b;logger[_0x4bef32('0x5')](JSON['stringify'](_0x3b0952));});});},Migration[_0x3afcd4('0x26')][_0x3afcd4('0x11')]=function(_0x2b6e10,_0x5918d4,_0x198fd5){const _0x25cab3=_0x3afcd4,_0x16fee9=this;this[_0x25cab3('0x24')][_0x25cab3('0x18')](function(){const _0x404435=_0x25cab3;return _0x16fee9[_0x404435('0x7')][_0x404435('0x11')](_0x2b6e10,_0x5918d4,{'indexName':_0x198fd5})[_0x404435('0x3')](function(){const _0x5bc5b3=_0x404435;logger['info'](_0x5bc5b3('0x21'),_0x2b6e10,_0x5918d4[_0x5bc5b3('0xb')](','),_0x198fd5);})['catch'](function(_0x43218a){const _0x3aec65=_0x404435;logger[_0x3aec65('0x5')](JSON['stringify'](_0x43218a));});});},Migration[_0x3afcd4('0x26')][_0x3afcd4('0x0')]=function(_0x17562d,_0x2bc92b){const _0xb1d59=this;this['sequence']['enqueue'](function(){const _0x1cec4c=a960_0xefae;return _0xb1d59[_0x1cec4c('0x7')]['removeIndex'](_0x17562d,_0x2bc92b)[_0x1cec4c('0x3')](function(){const _0xd11823=_0x1cec4c;logger['info'](_0xd11823('0x9'),_0x17562d,_0x2bc92b);})[_0x1cec4c('0x10')](function(_0xf23bcd){const _0x734f74=_0x1cec4c;logger[_0x734f74('0x5')](JSON['stringify'](_0xf23bcd));});});},Migration[_0x3afcd4('0x26')]['query']=function(_0x181574){const _0x2bcc1f=_0x3afcd4,_0x9f1314=this;this[_0x2bcc1f('0x24')][_0x2bcc1f('0x18')](function(){const _0x4599cc=_0x2bcc1f;return _0x9f1314[_0x4599cc('0x7')][_0x4599cc('0x1a')][_0x4599cc('0x23')](_0x181574)[_0x4599cc('0x3')](function(){const _0x4618f9=_0x4599cc;logger[_0x4618f9('0x5')]('query\x20%s',_0x181574);})[_0x4599cc('0x10')](function(_0x32e119){const _0x11d275=_0x4599cc;logger[_0x11d275('0x5')](JSON['stringify'](_0x32e119));});});},Migration['prototype'][_0x3afcd4('0xd')]=function(_0x462333,_0x474303){const _0x448e92=_0x3afcd4,_0x5ebbb3=this;this[_0x448e92('0x24')][_0x448e92('0x18')](function(){const _0x33ad9c=_0x448e92;return _0x5ebbb3['queryInterface'][_0x33ad9c('0xd')](_0x462333,_0x474303)['then'](function(){const _0x18aafa=_0x33ad9c;logger['info'](_0x18aafa('0x1'),_0x474303,_0x462333);})['catch'](function(_0x2a9b3c){const _0x304404=_0x33ad9c;logger[_0x304404('0x5')](util[_0x304404('0x8')](_0x2a9b3c,{'showHidden':![],'depth':null}));});});},Migration[_0x3afcd4('0x26')][_0x3afcd4('0x20')]=function(_0x144bf0,_0x2802ee,_0x566a0d){const _0x2786f8=_0x3afcd4,_0x441e90=this;this[_0x2786f8('0x24')][_0x2786f8('0x18')](function(){const _0x52d187=_0x2786f8;return _0x441e90[_0x52d187('0x7')][_0x52d187('0x20')](_0x144bf0,_0x2802ee,_0x566a0d)[_0x52d187('0x3')](function(){const _0x1d12c4=_0x52d187;logger[_0x1d12c4('0x5')](_0x1d12c4('0x6'),_0x2802ee,_0x566a0d,_0x144bf0);})['catch'](function(_0x140dae){const _0x2d12f6=_0x52d187;logger[_0x2d12f6('0x5')](util[_0x2d12f6('0x8')](_0x140dae,{'showHidden':![],'depth':null}));});});},Migration[_0x3afcd4('0x26')][_0x3afcd4('0x15')]=function(_0x3518a5){const _0x1d5933=_0x3afcd4;this[_0x1d5933('0x24')][_0x1d5933('0x18')](function(){return _0x3518a5();});},module['exports']={'up':function(_0x35af8b,_0x475109){return new Promise(function(_0x1ab3bb){const _0x2b3e04=a960_0xefae,_0x5cd4e5=new Migration(_0x35af8b);_0x5cd4e5[_0x2b3e04('0x28')](_0x2b3e04('0x22'),_0x2b3e04('0xc'),{'type':_0x475109[_0x2b3e04('0xe')](_0x2b3e04('0x12'),_0x2b3e04('0x19'),_0x2b3e04('0xf'),'SI','TI','GP')}),_0x5cd4e5[_0x2b3e04('0x23')](_0x2b3e04('0x1f')),_0x5cd4e5[_0x2b3e04('0x23')](_0x2b3e04('0x14')),_0x5cd4e5[_0x2b3e04('0x23')](_0x2b3e04('0x1d')),_0x5cd4e5[_0x2b3e04('0x28')]('sms_accounts',_0x2b3e04('0xc'),{'type':_0x475109[_0x2b3e04('0xe')]('SI','TI','GP')}),_0x5cd4e5['addColumn'](_0x2b3e04('0x13'),_0x2b3e04('0x1b'),{'type':_0x475109['STRING']}),_0x5cd4e5[_0x2b3e04('0x15')](_0x1ab3bb);});},'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 b28ac87..4f33f95 100644 --- a/server/migrations/2.0.82.js +++ b/server/migrations/2.0.82.js @@ -1 +1 @@ -const a961_0x2931=['Removed\x20column\x20%s\x20from\x20%s','apiKey','twilio','removeIndex','info','enqueue','STRING','query','catch','migration','plivo','sequelize','csc','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','clickatell','then','util','exports','queryInterface','sequence','dropTable','prototype','skebby','changeColumn','final','addIndex','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','ENUM','stringify','sms_accounts','removeColumn','inspect','addColumn','clicksend','table\x20dropped\x20%s'];(function(_0x3939b8,_0x293116){const _0x5c6e81=function(_0x5c878e){while(--_0x5c878e){_0x3939b8['push'](_0x3939b8['shift']());}};_0x5c6e81(++_0x293116);}(a961_0x2931,0x105));const a961_0x5c6e=function(_0x3939b8,_0x293116){_0x3939b8=_0x3939b8-0x0;let _0x5c6e81=a961_0x2931[_0x3939b8];return _0x5c6e81;};const _0x9e50ad=a961_0x5c6e;'use strict';const util=require(_0x9e50ad('0xe')),logger=require('../config/logger')(_0x9e50ad('0x7')),Sequence=function(){};Sequence['prototype'][_0x9e50ad('0x3')]=function(_0x5c878e){const _0x160bfc=_0x9e50ad;this[_0x160bfc('0x1a')]=this['tail']?this[_0x160bfc('0x1a')]['finally'](_0x5c878e):_0x5c878e();};const Migration=function(_0x4f3e0d){const _0x347808=_0x9e50ad;this[_0x347808('0x10')]=_0x4f3e0d,this[_0x347808('0x11')]=new Sequence();};Migration[_0x9e50ad('0x13')][_0x9e50ad('0x15')]=function(_0x41e27d,_0x1afc35,_0x1f1571){const _0x59bb32=_0x9e50ad,_0x3e9f9c=this;this[_0x59bb32('0x11')]['enqueue'](function(){const _0x37fc1f=_0x59bb32;return _0x3e9f9c[_0x37fc1f('0x10')]['changeColumn'](_0x41e27d,_0x1afc35,_0x1f1571)[_0x37fc1f('0xd')](function(){const _0x48b7ac=_0x37fc1f;logger[_0x48b7ac('0x2')](_0x48b7ac('0x19'),_0x1afc35,_0x41e27d);})[_0x37fc1f('0x6')](function(_0x3b9507){const _0x53a6d7=_0x37fc1f;logger[_0x53a6d7('0x2')](JSON['stringify'](_0x3b9507));});});},Migration[_0x9e50ad('0x13')]['addColumn']=function(_0x287b0a,_0xd3b221,_0x3582c3){const _0x2cf64c=_0x9e50ad,_0x17c5c5=this;this[_0x2cf64c('0x11')][_0x2cf64c('0x3')](function(){const _0x361747=_0x2cf64c;return _0x17c5c5[_0x361747('0x10')][_0x361747('0x20')](_0x287b0a,_0xd3b221,_0x3582c3)[_0x361747('0xd')](function(){const _0x23ad0a=_0x361747;logger[_0x23ad0a('0x2')]('Added\x20column\x20%s\x20to\x20%s',_0xd3b221,_0x287b0a);})[_0x361747('0x6')](function(_0x563cf9){const _0x5e9984=_0x361747;logger['info'](JSON[_0x5e9984('0x1c')](_0x563cf9));});});},Migration[_0x9e50ad('0x13')]['dropTable']=function(_0x480916){const _0x58e182=_0x9e50ad,_0x4a4286=this;this[_0x58e182('0x11')][_0x58e182('0x3')](function(){const _0x5c6ba5=_0x58e182;return _0x4a4286[_0x5c6ba5('0x10')][_0x5c6ba5('0x12')](_0x480916,{'force':!![]})['then'](function(){const _0x29f9ce=_0x5c6ba5;logger['info'](_0x29f9ce('0x22'),_0x480916);})[_0x5c6ba5('0x6')](function(_0x37a6bf){const _0x114faf=_0x5c6ba5;logger[_0x114faf('0x2')](JSON[_0x114faf('0x1c')](_0x37a6bf));});});},Migration[_0x9e50ad('0x13')][_0x9e50ad('0x17')]=function(_0x472336,_0x3d2d21,_0x144a7c){const _0x450973=_0x9e50ad,_0x3eb060=this;this[_0x450973('0x11')][_0x450973('0x3')](function(){const _0x2ede43=_0x450973;return _0x3eb060[_0x2ede43('0x10')][_0x2ede43('0x17')](_0x472336,_0x3d2d21,{'indexName':_0x144a7c})['then'](function(){const _0xd25258=_0x2ede43;logger[_0xd25258('0x2')]('addIndex\x20%s\x20%s\x20%s',_0x472336,_0x3d2d21['join'](','),_0x144a7c);})[_0x2ede43('0x6')](function(_0x264605){const _0x567d79=_0x2ede43;logger[_0x567d79('0x2')](JSON[_0x567d79('0x1c')](_0x264605));});});},Migration['prototype'][_0x9e50ad('0x1')]=function(_0xdf3a1a,_0x427d12){const _0x168411=this;this['sequence']['enqueue'](function(){const _0x5767b3=a961_0x5c6e;return _0x168411[_0x5767b3('0x10')][_0x5767b3('0x1')](_0xdf3a1a,_0x427d12)[_0x5767b3('0xd')](function(){logger['info']('removeIndex\x20%s\x20%s',_0xdf3a1a,_0x427d12);})[_0x5767b3('0x6')](function(_0x4be668){const _0x2cffe7=_0x5767b3;logger[_0x2cffe7('0x2')](JSON[_0x2cffe7('0x1c')](_0x4be668));});});},Migration[_0x9e50ad('0x13')][_0x9e50ad('0x5')]=function(_0x1375da){const _0x25c39d=_0x9e50ad,_0x491190=this;this['sequence'][_0x25c39d('0x3')](function(){const _0x3d471d=_0x25c39d;return _0x491190[_0x3d471d('0x10')][_0x3d471d('0x9')][_0x3d471d('0x5')](_0x1375da)[_0x3d471d('0xd')](function(){const _0x1fc796=_0x3d471d;logger[_0x1fc796('0x2')](_0x1fc796('0x18'),_0x1375da);})[_0x3d471d('0x6')](function(_0x3ae275){logger['info'](JSON['stringify'](_0x3ae275));});});},Migration[_0x9e50ad('0x13')][_0x9e50ad('0x1e')]=function(_0x507ac4,_0x12fe95){const _0x2e6db1=_0x9e50ad,_0x5d598e=this;this[_0x2e6db1('0x11')][_0x2e6db1('0x3')](function(){const _0x5b9bc6=_0x2e6db1;return _0x5d598e[_0x5b9bc6('0x10')]['removeColumn'](_0x507ac4,_0x12fe95)[_0x5b9bc6('0xd')](function(){const _0x4e0387=_0x5b9bc6;logger[_0x4e0387('0x2')](_0x4e0387('0x23'),_0x12fe95,_0x507ac4);})[_0x5b9bc6('0x6')](function(_0x2e654c){const _0x2dcf00=_0x5b9bc6;logger[_0x2dcf00('0x2')](util[_0x2dcf00('0x1f')](_0x2e654c,{'showHidden':![],'depth':null}));});});},Migration[_0x9e50ad('0x13')]['renameColumn']=function(_0x4f927c,_0x13fbde,_0x5d138d){const _0x1e99b5=this;this['sequence']['enqueue'](function(){const _0x49c97b=a961_0x5c6e;return _0x1e99b5[_0x49c97b('0x10')]['renameColumn'](_0x4f927c,_0x13fbde,_0x5d138d)['then'](function(){const _0x3d3680=_0x49c97b;logger['info'](_0x3d3680('0xb'),_0x13fbde,_0x5d138d,_0x4f927c);})[_0x49c97b('0x6')](function(_0x1fbfde){const _0x291c76=_0x49c97b;logger[_0x291c76('0x2')](util[_0x291c76('0x1f')](_0x1fbfde,{'showHidden':![],'depth':null}));});});},Migration[_0x9e50ad('0x13')]['final']=function(_0x258738){const _0x431d14=_0x9e50ad;this[_0x431d14('0x11')][_0x431d14('0x3')](function(){return _0x258738();});},module[_0x9e50ad('0xf')]={'up':function(_0x46578d,_0xfbe5f7){return new Promise(function(_0x3c6aa6){const _0xb01b08=a961_0x5c6e,_0x3908da=new Migration(_0x46578d);_0x3908da[_0xb01b08('0x20')](_0xb01b08('0x1d'),_0xb01b08('0x24'),{'type':_0xfbe5f7[_0xb01b08('0x4')]}),_0x3908da[_0xb01b08('0x15')](_0xb01b08('0x1d'),'type',{'type':_0xfbe5f7[_0xb01b08('0x1b')](_0xb01b08('0x0'),_0xb01b08('0x14'),'connectel',_0xb01b08('0x21'),_0xb01b08('0x8'),_0xb01b08('0xc'),_0xb01b08('0xa'))}),_0x3908da[_0xb01b08('0x16')](_0x3c6aa6);});},'down':function(){}}; \ No newline at end of file +const a961_0x122a=['then','STRING','addIndex','Added\x20column\x20%s\x20to\x20%s','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','util','sequence','enqueue','removeColumn','sequelize','plivo','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','info','csc','join','addIndex\x20%s\x20%s\x20%s','inspect','finally','prototype','connectel','apiKey','migration','sms_accounts','table\x20dropped\x20%s','exports','query\x20%s','../config/logger','changeColumn','renameColumn','stringify','queryInterface','query','removeIndex\x20%s\x20%s','twilio','dropTable','final'];(function(_0x356f72,_0x122ac9){const _0x305fd0=function(_0x5e67b9){while(--_0x5e67b9){_0x356f72['push'](_0x356f72['shift']());}};_0x305fd0(++_0x122ac9);}(a961_0x122a,0x16a));const a961_0x305f=function(_0x356f72,_0x122ac9){_0x356f72=_0x356f72-0x0;let _0x305fd0=a961_0x122a[_0x356f72];return _0x305fd0;};const _0x29960b=a961_0x305f;'use strict';const util=require(_0x29960b('0x23')),logger=require(_0x29960b('0x12'))(_0x29960b('0xd')),Sequence=function(){};Sequence[_0x29960b('0xa')][_0x29960b('0x25')]=function(_0x5e67b9){const _0x4160ca=_0x29960b;this[_0x4160ca('0x22')]=this[_0x4160ca('0x22')]?this[_0x4160ca('0x22')][_0x4160ca('0x9')](_0x5e67b9):_0x5e67b9();};const Migration=function(_0x7e4977){const _0x21b22b=_0x29960b;this['queryInterface']=_0x7e4977,this[_0x21b22b('0x24')]=new Sequence();};Migration[_0x29960b('0xa')][_0x29960b('0x13')]=function(_0x54e079,_0x1375eb,_0x4d8b35){const _0x470ff3=_0x29960b,_0x2fa237=this;this[_0x470ff3('0x24')][_0x470ff3('0x25')](function(){return _0x2fa237['queryInterface']['changeColumn'](_0x54e079,_0x1375eb,_0x4d8b35)['then'](function(){const _0x2291b7=a961_0x305f;logger[_0x2291b7('0x4')](_0x2291b7('0x3'),_0x1375eb,_0x54e079);})['catch'](function(_0x21a012){const _0xc1037b=a961_0x305f;logger[_0xc1037b('0x4')](JSON[_0xc1037b('0x15')](_0x21a012));});});},Migration[_0x29960b('0xa')][_0x29960b('0x2')]=function(_0x2bf9f9,_0x134fdb,_0x3b3dec){const _0x4514a0=_0x29960b,_0x55ac4b=this;this[_0x4514a0('0x24')][_0x4514a0('0x25')](function(){const _0x52ff6e=_0x4514a0;return _0x55ac4b[_0x52ff6e('0x16')][_0x52ff6e('0x2')](_0x2bf9f9,_0x134fdb,_0x3b3dec)[_0x52ff6e('0x1c')](function(){const _0x8ac734=_0x52ff6e;logger[_0x8ac734('0x4')](_0x8ac734('0x1f'),_0x134fdb,_0x2bf9f9);})[_0x52ff6e('0x20')](function(_0x202a54){const _0x38e808=_0x52ff6e;logger[_0x38e808('0x4')](JSON['stringify'](_0x202a54));});});},Migration[_0x29960b('0xa')][_0x29960b('0x1a')]=function(_0x5b9755){const _0xa60bd7=_0x29960b,_0x53113a=this;this[_0xa60bd7('0x24')]['enqueue'](function(){const _0x40f811=_0xa60bd7;return _0x53113a[_0x40f811('0x16')][_0x40f811('0x1a')](_0x5b9755,{'force':!![]})[_0x40f811('0x1c')](function(){const _0x5e596d=_0x40f811;logger[_0x5e596d('0x4')](_0x5e596d('0xf'),_0x5b9755);})['catch'](function(_0x298857){const _0x1b3970=_0x40f811;logger[_0x1b3970('0x4')](JSON[_0x1b3970('0x15')](_0x298857));});});},Migration[_0x29960b('0xa')][_0x29960b('0x1e')]=function(_0x2f7d4c,_0xf496e,_0x2efc01){const _0x436da4=_0x29960b,_0x451ffa=this;this['sequence'][_0x436da4('0x25')](function(){const _0x381c65=_0x436da4;return _0x451ffa['queryInterface'][_0x381c65('0x1e')](_0x2f7d4c,_0xf496e,{'indexName':_0x2efc01})[_0x381c65('0x1c')](function(){const _0x54f62a=_0x381c65;logger[_0x54f62a('0x4')](_0x54f62a('0x7'),_0x2f7d4c,_0xf496e[_0x54f62a('0x6')](','),_0x2efc01);})[_0x381c65('0x20')](function(_0x194413){const _0x32184c=_0x381c65;logger[_0x32184c('0x4')](JSON['stringify'](_0x194413));});});},Migration[_0x29960b('0xa')]['removeIndex']=function(_0x2a3e09,_0x3ecd81){const _0x125e27=_0x29960b,_0x42c826=this;this[_0x125e27('0x24')]['enqueue'](function(){const _0x50160d=_0x125e27;return _0x42c826[_0x50160d('0x16')]['removeIndex'](_0x2a3e09,_0x3ecd81)[_0x50160d('0x1c')](function(){const _0x3f6de5=_0x50160d;logger[_0x3f6de5('0x4')](_0x3f6de5('0x18'),_0x2a3e09,_0x3ecd81);})['catch'](function(_0x445c6c){const _0xf670ad=_0x50160d;logger[_0xf670ad('0x4')](JSON['stringify'](_0x445c6c));});});},Migration['prototype'][_0x29960b('0x17')]=function(_0x183c0d){const _0x5d9710=_0x29960b,_0x43de5b=this;this[_0x5d9710('0x24')]['enqueue'](function(){const _0x353fbd=_0x5d9710;return _0x43de5b['queryInterface'][_0x353fbd('0x0')][_0x353fbd('0x17')](_0x183c0d)[_0x353fbd('0x1c')](function(){const _0x20ef49=_0x353fbd;logger[_0x20ef49('0x4')](_0x20ef49('0x11'),_0x183c0d);})[_0x353fbd('0x20')](function(_0x52c146){const _0x2563d1=_0x353fbd;logger[_0x2563d1('0x4')](JSON[_0x2563d1('0x15')](_0x52c146));});});},Migration[_0x29960b('0xa')][_0x29960b('0x26')]=function(_0x546d31,_0x151c4d){const _0x5be1af=_0x29960b,_0x27cdec=this;this['sequence'][_0x5be1af('0x25')](function(){const _0x548f9e=_0x5be1af;return _0x27cdec[_0x548f9e('0x16')][_0x548f9e('0x26')](_0x546d31,_0x151c4d)[_0x548f9e('0x1c')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x151c4d,_0x546d31);})[_0x548f9e('0x20')](function(_0x409e34){const _0xa24f77=_0x548f9e;logger[_0xa24f77('0x4')](util[_0xa24f77('0x8')](_0x409e34,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x29960b('0x14')]=function(_0x471e14,_0x2c3f74,_0x213ef6){const _0x1ddc9f=_0x29960b,_0x27f103=this;this[_0x1ddc9f('0x24')]['enqueue'](function(){const _0x1a2b00=_0x1ddc9f;return _0x27f103[_0x1a2b00('0x16')][_0x1a2b00('0x14')](_0x471e14,_0x2c3f74,_0x213ef6)[_0x1a2b00('0x1c')](function(){const _0xaaf5c=_0x1a2b00;logger[_0xaaf5c('0x4')](_0xaaf5c('0x21'),_0x2c3f74,_0x213ef6,_0x471e14);})[_0x1a2b00('0x20')](function(_0xd5b2e9){const _0xebe5=_0x1a2b00;logger[_0xebe5('0x4')](util[_0xebe5('0x8')](_0xd5b2e9,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x29960b('0x1b')]=function(_0x5d2c7f){const _0x3f356f=_0x29960b;this[_0x3f356f('0x24')][_0x3f356f('0x25')](function(){return _0x5d2c7f();});},module[_0x29960b('0x10')]={'up':function(_0x152a50,_0x40f546){return new Promise(function(_0x15d400){const _0x4f1b62=a961_0x305f,_0xae518a=new Migration(_0x152a50);_0xae518a[_0x4f1b62('0x2')](_0x4f1b62('0xe'),_0x4f1b62('0xc'),{'type':_0x40f546[_0x4f1b62('0x1d')]}),_0xae518a[_0x4f1b62('0x13')](_0x4f1b62('0xe'),'type',{'type':_0x40f546['ENUM'](_0x4f1b62('0x19'),'skebby',_0x4f1b62('0xb'),'clicksend',_0x4f1b62('0x1'),'clickatell',_0x4f1b62('0x5'))}),_0xae518a[_0x4f1b62('0x1b')](_0x15d400);});},'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 2fd1f66..49c8031 100644 --- a/server/migrations/2.0.83.js +++ b/server/migrations/2.0.83.js @@ -1 +1 @@ -const a962_0x190b=['queryInterface','removeColumn','prototype','OwnerId','final','migration','cm_contacts','renameColumn','dropTable','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','STRING','INTEGER','finally','connectel','then','ENUM','sms_accounts','removeIndex','report_queue','infobip','skebby','type','changeColumn','addIndex','fb_data','sequence','query\x20%s','table\x20dropped\x20%s','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','csc','cm_hopper','Added\x20column\x20%s\x20to\x20%s','clicksend','../config/logger','util','sequelize','queuecallerenterreason','Removed\x20column\x20%s\x20from\x20%s','inspect','info','stringify','twilio','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s','enqueue','baseUrl','plivo'];(function(_0x4afc4a,_0x190b3f){const _0x469b90=function(_0x5291b1){while(--_0x5291b1){_0x4afc4a['push'](_0x4afc4a['shift']());}};_0x469b90(++_0x190b3f);}(a962_0x190b,0x129));const a962_0x469b=function(_0x4afc4a,_0x190b3f){_0x4afc4a=_0x4afc4a-0x0;let _0x469b90=a962_0x190b[_0x4afc4a];return _0x469b90;};const _0x157ff2=a962_0x469b;'use strict';const util=require(_0x157ff2('0x27')),logger=require(_0x157ff2('0x26'))(_0x157ff2('0x8')),Sequence=function(){};Sequence[_0x157ff2('0x5')][_0x157ff2('0x0')]=function(_0x5291b1){const _0x24d1cd=_0x157ff2;this[_0x24d1cd('0xd')]=this[_0x24d1cd('0xd')]?this[_0x24d1cd('0xd')][_0x24d1cd('0x10')](_0x5291b1):_0x5291b1();};const Migration=function(_0x49bd61){const _0x28f3b3=_0x157ff2;this[_0x28f3b3('0x3')]=_0x49bd61,this[_0x28f3b3('0x1d')]=new Sequence();};Migration[_0x157ff2('0x5')][_0x157ff2('0x1a')]=function(_0xa2be6c,_0x5455f3,_0x1f533a){const _0x2409e6=_0x157ff2,_0x47a3a7=this;this[_0x2409e6('0x1d')][_0x2409e6('0x0')](function(){const _0x36d0e0=_0x2409e6;return _0x47a3a7[_0x36d0e0('0x3')]['changeColumn'](_0xa2be6c,_0x5455f3,_0x1f533a)[_0x36d0e0('0x12')](function(){const _0x14b045=_0x36d0e0;logger['info'](_0x14b045('0x21'),_0x5455f3,_0xa2be6c);})[_0x36d0e0('0x2f')](function(_0x1bdede){const _0x246330=_0x36d0e0;logger['info'](JSON[_0x246330('0x2d')](_0x1bdede));});});},Migration[_0x157ff2('0x5')][_0x157ff2('0x20')]=function(_0x397215,_0x3b3504,_0x1ad148){const _0x1817b5=_0x157ff2,_0x267559=this;this[_0x1817b5('0x1d')][_0x1817b5('0x0')](function(){const _0x27cdf9=_0x1817b5;return _0x267559[_0x27cdf9('0x3')]['addColumn'](_0x397215,_0x3b3504,_0x1ad148)[_0x27cdf9('0x12')](function(){const _0xc5793b=_0x27cdf9;logger['info'](_0xc5793b('0x24'),_0x3b3504,_0x397215);})['catch'](function(_0x313471){const _0x25f152=_0x27cdf9;logger[_0x25f152('0x2c')](JSON[_0x25f152('0x2d')](_0x313471));});});},Migration['prototype'][_0x157ff2('0xb')]=function(_0x2fda39){const _0x108457=_0x157ff2,_0x34a16a=this;this[_0x108457('0x1d')][_0x108457('0x0')](function(){const _0x51d7e3=_0x108457;return _0x34a16a[_0x51d7e3('0x3')][_0x51d7e3('0xb')](_0x2fda39,{'force':!![]})[_0x51d7e3('0x12')](function(){const _0x54806d=_0x51d7e3;logger['info'](_0x54806d('0x1f'),_0x2fda39);})[_0x51d7e3('0x2f')](function(_0x46e1e6){const _0x11b90c=_0x51d7e3;logger[_0x11b90c('0x2c')](JSON[_0x11b90c('0x2d')](_0x46e1e6));});});},Migration[_0x157ff2('0x5')][_0x157ff2('0x1b')]=function(_0x490338,_0x20b6b1,_0x4c468b){const _0x6d71d6=_0x157ff2,_0x4e7e62=this;this[_0x6d71d6('0x1d')][_0x6d71d6('0x0')](function(){const _0x2da27a=_0x6d71d6;return _0x4e7e62['queryInterface'][_0x2da27a('0x1b')](_0x490338,_0x20b6b1,{'indexName':_0x4c468b})['then'](function(){const _0x4b44c4=_0x2da27a;logger[_0x4b44c4('0x2c')](_0x4b44c4('0x31'),_0x490338,_0x20b6b1['join'](','),_0x4c468b);})[_0x2da27a('0x2f')](function(_0x1505a1){const _0x1ac9ba=_0x2da27a;logger[_0x1ac9ba('0x2c')](JSON['stringify'](_0x1505a1));});});},Migration[_0x157ff2('0x5')][_0x157ff2('0x15')]=function(_0x4d5305,_0x3fd060){const _0x59d6d4=_0x157ff2,_0x2e869b=this;this[_0x59d6d4('0x1d')]['enqueue'](function(){const _0x169369=_0x59d6d4;return _0x2e869b[_0x169369('0x3')][_0x169369('0x15')](_0x4d5305,_0x3fd060)[_0x169369('0x12')](function(){const _0x164a08=_0x169369;logger[_0x164a08('0x2c')]('removeIndex\x20%s\x20%s',_0x4d5305,_0x3fd060);})[_0x169369('0x2f')](function(_0x1cc954){const _0x4571d1=_0x169369;logger[_0x4571d1('0x2c')](JSON[_0x4571d1('0x2d')](_0x1cc954));});});},Migration['prototype']['query']=function(_0x4ef76c){const _0x309ad9=_0x157ff2,_0x5434dc=this;this[_0x309ad9('0x1d')][_0x309ad9('0x0')](function(){const _0x399f3a=_0x309ad9;return _0x5434dc['queryInterface'][_0x399f3a('0x28')]['query'](_0x4ef76c)[_0x399f3a('0x12')](function(){const _0x2e6beb=_0x399f3a;logger['info'](_0x2e6beb('0x1e'),_0x4ef76c);})[_0x399f3a('0x2f')](function(_0x124bbc){logger['info'](JSON['stringify'](_0x124bbc));});});},Migration[_0x157ff2('0x5')][_0x157ff2('0x4')]=function(_0xd83cf6,_0x1b9aa6){const _0x28eca3=_0x157ff2,_0x53af1d=this;this[_0x28eca3('0x1d')][_0x28eca3('0x0')](function(){const _0x8036e5=_0x28eca3;return _0x53af1d['queryInterface'][_0x8036e5('0x4')](_0xd83cf6,_0x1b9aa6)[_0x8036e5('0x12')](function(){const _0x107ba4=_0x8036e5;logger[_0x107ba4('0x2c')](_0x107ba4('0x2a'),_0x1b9aa6,_0xd83cf6);})['catch'](function(_0x288ff4){const _0x57975b=_0x8036e5;logger[_0x57975b('0x2c')](util[_0x57975b('0x2b')](_0x288ff4,{'showHidden':![],'depth':null}));});});},Migration[_0x157ff2('0x5')][_0x157ff2('0xa')]=function(_0x171f1b,_0x21f45d,_0x14a1c0){const _0x783a67=_0x157ff2,_0x31a198=this;this[_0x783a67('0x1d')][_0x783a67('0x0')](function(){const _0x483538=_0x783a67;return _0x31a198[_0x483538('0x3')]['renameColumn'](_0x171f1b,_0x21f45d,_0x14a1c0)[_0x483538('0x12')](function(){const _0x4a2404=_0x483538;logger[_0x4a2404('0x2c')](_0x4a2404('0x30'),_0x21f45d,_0x14a1c0,_0x171f1b);})['catch'](function(_0xde2ebd){const _0x28e585=_0x483538;logger[_0x28e585('0x2c')](util[_0x28e585('0x2b')](_0xde2ebd,{'showHidden':![],'depth':null}));});});},Migration[_0x157ff2('0x5')][_0x157ff2('0x7')]=function(_0x42901b){const _0x10e2e4=_0x157ff2;this[_0x10e2e4('0x1d')][_0x10e2e4('0x0')](function(){return _0x42901b();});},module['exports']={'up':function(_0x1c8a4d,_0x3e656a){return new Promise(function(_0x3d3bee){const _0x31c9ea=a962_0x469b,_0x1a07e4=new Migration(_0x1c8a4d);_0x1a07e4['addColumn'](_0x31c9ea('0x23'),_0x31c9ea('0x6'),{'type':_0x3e656a[_0x31c9ea('0xf')](0xb)}),_0x1a07e4['query'](_0x31c9ea('0xc')),_0x1a07e4[_0x31c9ea('0x20')](_0x31c9ea('0x9'),_0x31c9ea('0x1c'),{'type':_0x3e656a[_0x31c9ea('0xe')]}),_0x1a07e4[_0x31c9ea('0x1a')](_0x31c9ea('0x14'),_0x31c9ea('0x19'),{'type':_0x3e656a[_0x31c9ea('0x13')](_0x31c9ea('0x2e'),_0x31c9ea('0x18'),_0x31c9ea('0x11'),_0x31c9ea('0x25'),_0x31c9ea('0x2'),'clickatell',_0x31c9ea('0x22'),_0x31c9ea('0x17'))}),_0x1a07e4[_0x31c9ea('0x20')]('sms_accounts',_0x31c9ea('0x1'),{'type':_0x3e656a['STRING']}),_0x1a07e4[_0x31c9ea('0x20')](_0x31c9ea('0x16'),_0x31c9ea('0x29'),{'type':_0x3e656a[_0x31c9ea('0xf')],'defaultValue':0x0}),_0x1a07e4[_0x31c9ea('0x7')](_0x3d3bee);});},'down':function(){}}; \ No newline at end of file +const a962_0x50d7=['table\x20dropped\x20%s','query\x20%s','Added\x20column\x20%s\x20to\x20%s','prototype','STRING','catch','renameColumn','addIndex','inspect','enqueue','skebby','infobip','csc','OwnerId','finally','changeColumn','plivo','removeIndex','final','dropTable','fb_data','queryInterface','query','info','connectel','then','addIndex\x20%s\x20%s\x20%s','clickatell','sequelize','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','clicksend','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','Removed\x20column\x20%s\x20from\x20%s','join','cm_hopper','baseUrl','addColumn','removeIndex\x20%s\x20%s','sms_accounts','queuecallerenterreason','INTEGER','stringify','cm_contacts','util'];(function(_0x3531d5,_0x50d7d5){const _0x5bb1ae=function(_0x269e5b){while(--_0x269e5b){_0x3531d5['push'](_0x3531d5['shift']());}};_0x5bb1ae(++_0x50d7d5);}(a962_0x50d7,0x199));const a962_0x5bb1=function(_0x3531d5,_0x50d7d5){_0x3531d5=_0x3531d5-0x0;let _0x5bb1ae=a962_0x50d7[_0x3531d5];return _0x5bb1ae;};const _0x10dd57=a962_0x5bb1;'use strict';const util=require(_0x10dd57('0x4')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x10dd57('0x8')][_0x10dd57('0xe')]=function(_0x269e5b){const _0x122f2a=_0x10dd57;this['tail']=this[_0x122f2a('0x26')]?this[_0x122f2a('0x26')][_0x122f2a('0x13')](_0x269e5b):_0x269e5b();};const Migration=function(_0x413d93){const _0x631f1e=_0x10dd57;this['queryInterface']=_0x413d93,this[_0x631f1e('0x22')]=new Sequence();};Migration[_0x10dd57('0x8')][_0x10dd57('0x14')]=function(_0x4e850b,_0xadd6e8,_0x417fb3){const _0x54b6f4=_0x10dd57,_0xbf5897=this;this[_0x54b6f4('0x22')][_0x54b6f4('0xe')](function(){const _0x46a23f=_0x54b6f4;return _0xbf5897['queryInterface']['changeColumn'](_0x4e850b,_0xadd6e8,_0x417fb3)['then'](function(){const _0x3007c9=a962_0x5bb1;logger[_0x3007c9('0x1c')](_0x3007c9('0x25'),_0xadd6e8,_0x4e850b);})[_0x46a23f('0xa')](function(_0x18466f){const _0x2f6854=_0x46a23f;logger['info'](JSON[_0x2f6854('0x2')](_0x18466f));});});},Migration[_0x10dd57('0x8')]['addColumn']=function(_0x9fca95,_0x3b7253,_0x2dea78){const _0x175460=_0x10dd57,_0x4cec2f=this;this[_0x175460('0x22')][_0x175460('0xe')](function(){const _0x5d4c9b=_0x175460;return _0x4cec2f[_0x5d4c9b('0x1a')][_0x5d4c9b('0x2b')](_0x9fca95,_0x3b7253,_0x2dea78)[_0x5d4c9b('0x1e')](function(){const _0x31d898=_0x5d4c9b;logger[_0x31d898('0x1c')](_0x31d898('0x7'),_0x3b7253,_0x9fca95);})['catch'](function(_0x2ad280){const _0x3462f6=_0x5d4c9b;logger[_0x3462f6('0x1c')](JSON[_0x3462f6('0x2')](_0x2ad280));});});},Migration[_0x10dd57('0x8')][_0x10dd57('0x18')]=function(_0xdc96ea){const _0x465d28=_0x10dd57,_0x3a4b0b=this;this[_0x465d28('0x22')][_0x465d28('0xe')](function(){const _0x5d125c=_0x465d28;return _0x3a4b0b['queryInterface'][_0x5d125c('0x18')](_0xdc96ea,{'force':!![]})[_0x5d125c('0x1e')](function(){const _0x4e603f=_0x5d125c;logger['info'](_0x4e603f('0x5'),_0xdc96ea);})[_0x5d125c('0xa')](function(_0x309108){const _0x417b9f=_0x5d125c;logger['info'](JSON[_0x417b9f('0x2')](_0x309108));});});},Migration[_0x10dd57('0x8')]['addIndex']=function(_0x2cd8b7,_0x5277fa,_0x204d7c){const _0x175d9c=_0x10dd57,_0x187873=this;this['sequence'][_0x175d9c('0xe')](function(){const _0x42bd36=_0x175d9c;return _0x187873[_0x42bd36('0x1a')][_0x42bd36('0xc')](_0x2cd8b7,_0x5277fa,{'indexName':_0x204d7c})[_0x42bd36('0x1e')](function(){const _0x39c99b=_0x42bd36;logger['info'](_0x39c99b('0x1f'),_0x2cd8b7,_0x5277fa[_0x39c99b('0x28')](','),_0x204d7c);})['catch'](function(_0xbd12af){const _0x160153=_0x42bd36;logger[_0x160153('0x1c')](JSON[_0x160153('0x2')](_0xbd12af));});});},Migration['prototype'][_0x10dd57('0x16')]=function(_0x96e21c,_0x4064e0){const _0x590a66=_0x10dd57,_0x327c23=this;this[_0x590a66('0x22')]['enqueue'](function(){const _0x4e09db=_0x590a66;return _0x327c23[_0x4e09db('0x1a')][_0x4e09db('0x16')](_0x96e21c,_0x4064e0)[_0x4e09db('0x1e')](function(){const _0x51c6e8=_0x4e09db;logger[_0x51c6e8('0x1c')](_0x51c6e8('0x2c'),_0x96e21c,_0x4064e0);})[_0x4e09db('0xa')](function(_0x1c2fc8){const _0x26c8e6=_0x4e09db;logger[_0x26c8e6('0x1c')](JSON[_0x26c8e6('0x2')](_0x1c2fc8));});});},Migration[_0x10dd57('0x8')]['query']=function(_0x2d8f63){const _0x4da920=this;this['sequence']['enqueue'](function(){const _0x5337cb=a962_0x5bb1;return _0x4da920[_0x5337cb('0x1a')][_0x5337cb('0x21')][_0x5337cb('0x1b')](_0x2d8f63)[_0x5337cb('0x1e')](function(){const _0x2beab3=_0x5337cb;logger[_0x2beab3('0x1c')](_0x2beab3('0x6'),_0x2d8f63);})['catch'](function(_0x138f63){const _0x49b1e3=_0x5337cb;logger[_0x49b1e3('0x1c')](JSON[_0x49b1e3('0x2')](_0x138f63));});});},Migration[_0x10dd57('0x8')]['removeColumn']=function(_0x3dabbe,_0x517997){const _0x10412b=_0x10dd57,_0x9f0a4e=this;this[_0x10412b('0x22')][_0x10412b('0xe')](function(){const _0x2e682f=_0x10412b;return _0x9f0a4e[_0x2e682f('0x1a')]['removeColumn'](_0x3dabbe,_0x517997)['then'](function(){const _0x55ce7c=_0x2e682f;logger[_0x55ce7c('0x1c')](_0x55ce7c('0x27'),_0x517997,_0x3dabbe);})[_0x2e682f('0xa')](function(_0x5f16de){const _0xd98a45=_0x2e682f;logger[_0xd98a45('0x1c')](util[_0xd98a45('0xd')](_0x5f16de,{'showHidden':![],'depth':null}));});});},Migration[_0x10dd57('0x8')][_0x10dd57('0xb')]=function(_0x4efa5b,_0x54575e,_0x2cef1e){const _0x29f115=_0x10dd57,_0x465e37=this;this[_0x29f115('0x22')]['enqueue'](function(){const _0x30f47d=_0x29f115;return _0x465e37[_0x30f47d('0x1a')][_0x30f47d('0xb')](_0x4efa5b,_0x54575e,_0x2cef1e)[_0x30f47d('0x1e')](function(){const _0x186fb9=_0x30f47d;logger[_0x186fb9('0x1c')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x54575e,_0x2cef1e,_0x4efa5b);})['catch'](function(_0x3dd073){const _0x587e1c=_0x30f47d;logger[_0x587e1c('0x1c')](util[_0x587e1c('0xd')](_0x3dd073,{'showHidden':![],'depth':null}));});});},Migration[_0x10dd57('0x8')][_0x10dd57('0x17')]=function(_0x1c2e00){const _0x42df5d=_0x10dd57;this['sequence'][_0x42df5d('0xe')](function(){return _0x1c2e00();});},module['exports']={'up':function(_0x16784f,_0x18efaf){return new Promise(function(_0x43fe48){const _0x31d7ab=a962_0x5bb1,_0x21c10d=new Migration(_0x16784f);_0x21c10d['addColumn'](_0x31d7ab('0x29'),_0x31d7ab('0x12'),{'type':_0x18efaf[_0x31d7ab('0x1')](0xb)}),_0x21c10d['query'](_0x31d7ab('0x23')),_0x21c10d[_0x31d7ab('0x2b')](_0x31d7ab('0x3'),_0x31d7ab('0x19'),{'type':_0x18efaf[_0x31d7ab('0x9')]}),_0x21c10d[_0x31d7ab('0x14')]('sms_accounts','type',{'type':_0x18efaf['ENUM']('twilio',_0x31d7ab('0xf'),_0x31d7ab('0x1d'),_0x31d7ab('0x24'),_0x31d7ab('0x15'),_0x31d7ab('0x20'),_0x31d7ab('0x11'),_0x31d7ab('0x10'))}),_0x21c10d[_0x31d7ab('0x2b')](_0x31d7ab('0x2d'),_0x31d7ab('0x2a'),{'type':_0x18efaf[_0x31d7ab('0x9')]}),_0x21c10d[_0x31d7ab('0x2b')]('report_queue',_0x31d7ab('0x0'),{'type':_0x18efaf[_0x31d7ab('0x1')],'defaultValue':0x0}),_0x21c10d[_0x31d7ab('0x17')](_0x43fe48);});},'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 9725160..dd6e53d 100644 --- a/server/migrations/2.0.84.js +++ b/server/migrations/2.0.84.js @@ -1 +1 @@ -const a963_0x3ef8=['migration','then','removeIndex\x20%s\x20%s','removeColumn','exports','catch','changeColumn','tail','info','Added\x20column\x20%s\x20to\x20%s','sequence','queryInterface','renameColumn','removeIndex','util','stringify','addIndex','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','dropTable','inspect','table\x20dropped\x20%s','addColumn','enqueue','final','finally','prototype','query'];(function(_0x2233b7,_0x3ef826){const _0x2d390f=function(_0x56d625){while(--_0x56d625){_0x2233b7['push'](_0x2233b7['shift']());}};_0x2d390f(++_0x3ef826);}(a963_0x3ef8,0x1d6));const a963_0x2d39=function(_0x2233b7,_0x3ef826){_0x2233b7=_0x2233b7-0x0;let _0x2d390f=a963_0x3ef8[_0x2233b7];return _0x2d390f;};const _0x42916a=a963_0x2d39;'use strict';const util=require(_0x42916a('0x14')),logger=require('../config/logger')(_0x42916a('0x6')),Sequence=function(){};Sequence[_0x42916a('0x4')][_0x42916a('0x1')]=function(_0x56d625){const _0x4225a3=_0x42916a;this[_0x4225a3('0xd')]=this['tail']?this['tail'][_0x4225a3('0x3')](_0x56d625):_0x56d625();};const Migration=function(_0x20d06b){const _0x118481=_0x42916a;this[_0x118481('0x11')]=_0x20d06b,this['sequence']=new Sequence();};Migration[_0x42916a('0x4')][_0x42916a('0xc')]=function(_0x17e2c5,_0x1d7c33,_0x506aa5){const _0x3e425c=_0x42916a,_0x3dd4a1=this;this[_0x3e425c('0x10')][_0x3e425c('0x1')](function(){const _0x385728=_0x3e425c;return _0x3dd4a1['queryInterface'][_0x385728('0xc')](_0x17e2c5,_0x1d7c33,_0x506aa5)['then'](function(){const _0xb5ff92=_0x385728;logger[_0xb5ff92('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1d7c33,_0x17e2c5);})['catch'](function(_0x38b972){const _0x403b7a=_0x385728;logger['info'](JSON[_0x403b7a('0x15')](_0x38b972));});});},Migration[_0x42916a('0x4')][_0x42916a('0x0')]=function(_0x200265,_0x2027d3,_0x5e3b68){const _0x4c259a=this;this['sequence']['enqueue'](function(){const _0x3e7fb4=a963_0x2d39;return _0x4c259a[_0x3e7fb4('0x11')]['addColumn'](_0x200265,_0x2027d3,_0x5e3b68)[_0x3e7fb4('0x7')](function(){const _0x22542e=_0x3e7fb4;logger['info'](_0x22542e('0xf'),_0x2027d3,_0x200265);})[_0x3e7fb4('0xb')](function(_0x3cea70){const _0xf8d7b4=_0x3e7fb4;logger[_0xf8d7b4('0xe')](JSON['stringify'](_0x3cea70));});});},Migration[_0x42916a('0x4')][_0x42916a('0x19')]=function(_0x27515d){const _0x5aa7ad=_0x42916a,_0x452593=this;this[_0x5aa7ad('0x10')][_0x5aa7ad('0x1')](function(){const _0x457605=_0x5aa7ad;return _0x452593[_0x457605('0x11')][_0x457605('0x19')](_0x27515d,{'force':!![]})['then'](function(){const _0x47c321=_0x457605;logger[_0x47c321('0xe')](_0x47c321('0x1b'),_0x27515d);})[_0x457605('0xb')](function(_0x4d955a){const _0x126c80=_0x457605;logger[_0x126c80('0xe')](JSON[_0x126c80('0x15')](_0x4d955a));});});},Migration[_0x42916a('0x4')][_0x42916a('0x16')]=function(_0x323816,_0xf0d911,_0x780f4a){const _0xfa934b=_0x42916a,_0x411a39=this;this['sequence'][_0xfa934b('0x1')](function(){const _0x1162a3=_0xfa934b;return _0x411a39[_0x1162a3('0x11')][_0x1162a3('0x16')](_0x323816,_0xf0d911,{'indexName':_0x780f4a})[_0x1162a3('0x7')](function(){const _0x1b4d8=_0x1162a3;logger[_0x1b4d8('0xe')]('addIndex\x20%s\x20%s\x20%s',_0x323816,_0xf0d911['join'](','),_0x780f4a);})[_0x1162a3('0xb')](function(_0x128ccd){const _0x4e4998=_0x1162a3;logger[_0x4e4998('0xe')](JSON[_0x4e4998('0x15')](_0x128ccd));});});},Migration['prototype'][_0x42916a('0x13')]=function(_0x501ce7,_0x447356){const _0xaf4ffe=_0x42916a,_0x1b7e77=this;this[_0xaf4ffe('0x10')][_0xaf4ffe('0x1')](function(){const _0x50343f=_0xaf4ffe;return _0x1b7e77['queryInterface'][_0x50343f('0x13')](_0x501ce7,_0x447356)[_0x50343f('0x7')](function(){const _0x55be39=_0x50343f;logger[_0x55be39('0xe')](_0x55be39('0x8'),_0x501ce7,_0x447356);})['catch'](function(_0x141848){const _0x54eade=_0x50343f;logger['info'](JSON[_0x54eade('0x15')](_0x141848));});});},Migration[_0x42916a('0x4')][_0x42916a('0x5')]=function(_0x4b0626){const _0x543640=_0x42916a,_0x311eec=this;this[_0x543640('0x10')][_0x543640('0x1')](function(){const _0x1e8f7b=_0x543640;return _0x311eec[_0x1e8f7b('0x11')]['sequelize']['query'](_0x4b0626)['then'](function(){const _0x579cb7=_0x1e8f7b;logger[_0x579cb7('0xe')](_0x579cb7('0x17'),_0x4b0626);})[_0x1e8f7b('0xb')](function(_0x2cf222){logger['info'](JSON['stringify'](_0x2cf222));});});},Migration['prototype'][_0x42916a('0x9')]=function(_0x9310c4,_0x3d178a){const _0x47229e=_0x42916a,_0x5bcc9d=this;this['sequence'][_0x47229e('0x1')](function(){const _0x6e6cea=_0x47229e;return _0x5bcc9d[_0x6e6cea('0x11')]['removeColumn'](_0x9310c4,_0x3d178a)[_0x6e6cea('0x7')](function(){const _0x49708a=_0x6e6cea;logger[_0x49708a('0xe')](_0x49708a('0x18'),_0x3d178a,_0x9310c4);})[_0x6e6cea('0xb')](function(_0x33e8d2){const _0x3c8b63=_0x6e6cea;logger[_0x3c8b63('0xe')](util[_0x3c8b63('0x1a')](_0x33e8d2,{'showHidden':![],'depth':null}));});});},Migration[_0x42916a('0x4')][_0x42916a('0x12')]=function(_0x8e03ab,_0xd6d786,_0x2e5400){const _0x112247=_0x42916a,_0x5d4177=this;this[_0x112247('0x10')][_0x112247('0x1')](function(){const _0x16b301=_0x112247;return _0x5d4177[_0x16b301('0x11')][_0x16b301('0x12')](_0x8e03ab,_0xd6d786,_0x2e5400)[_0x16b301('0x7')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xd6d786,_0x2e5400,_0x8e03ab);})[_0x16b301('0xb')](function(_0x565b56){const _0x2c4832=_0x16b301;logger['info'](util[_0x2c4832('0x1a')](_0x565b56,{'showHidden':![],'depth':null}));});});},Migration[_0x42916a('0x4')][_0x42916a('0x2')]=function(_0x252cd7){const _0x4ee808=_0x42916a;this[_0x4ee808('0x10')][_0x4ee808('0x1')](function(){return _0x252cd7();});},module[_0x42916a('0xa')]={'up':function(_0x5103b4){return new Promise(function(_0xeef890){const _0x29e328=a963_0x2d39,_0xd25024=new Migration(_0x5103b4);_0xd25024[_0x29e328('0x2')](_0xeef890);});},'down':function(){}}; \ No newline at end of file +const a963_0x2875=['enqueue','removeIndex','inspect','addColumn','catch','migration','addIndex\x20%s\x20%s\x20%s','then','sequence','final','Added\x20column\x20%s\x20to\x20%s','removeColumn','prototype','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','queryInterface','info','changeColumn','dropTable','finally','renameColumn','tail','util','join','sequelize','stringify','exports','addIndex'];(function(_0x2511ca,_0x287598){const _0x17ae6a=function(_0x2deb8f){while(--_0x2deb8f){_0x2511ca['push'](_0x2511ca['shift']());}};_0x17ae6a(++_0x287598);}(a963_0x2875,0x112));const a963_0x17ae=function(_0x2511ca,_0x287598){_0x2511ca=_0x2511ca-0x0;let _0x17ae6a=a963_0x2875[_0x2511ca];return _0x17ae6a;};const _0x420013=a963_0x17ae;'use strict';const util=require(_0x420013('0x8')),logger=require('../config/logger')(_0x420013('0x13')),Sequence=function(){};Sequence[_0x420013('0x1a')]['enqueue']=function(_0x2deb8f){const _0x39c5e4=_0x420013;this[_0x39c5e4('0x7')]=this[_0x39c5e4('0x7')]?this[_0x39c5e4('0x7')][_0x39c5e4('0x5')](_0x2deb8f):_0x2deb8f();};const Migration=function(_0x817bf8){const _0x2555ed=_0x420013;this[_0x2555ed('0x1')]=_0x817bf8,this[_0x2555ed('0x16')]=new Sequence();};Migration[_0x420013('0x1a')][_0x420013('0x3')]=function(_0x2e5211,_0x5ac064,_0x1cb480){const _0x13ca1a=_0x420013,_0x24c92c=this;this[_0x13ca1a('0x16')][_0x13ca1a('0xe')](function(){const _0x566815=_0x13ca1a;return _0x24c92c[_0x566815('0x1')][_0x566815('0x3')](_0x2e5211,_0x5ac064,_0x1cb480)[_0x566815('0x15')](function(){const _0x5255b0=_0x566815;logger[_0x5255b0('0x2')](_0x5255b0('0x1f'),_0x5ac064,_0x2e5211);})[_0x566815('0x12')](function(_0x157366){const _0x599d39=_0x566815;logger[_0x599d39('0x2')](JSON[_0x599d39('0xb')](_0x157366));});});},Migration[_0x420013('0x1a')][_0x420013('0x11')]=function(_0x47bba7,_0x15a443,_0x5ee245){const _0x568433=_0x420013,_0x2ce7c7=this;this[_0x568433('0x16')]['enqueue'](function(){const _0x37748f=_0x568433;return _0x2ce7c7['queryInterface'][_0x37748f('0x11')](_0x47bba7,_0x15a443,_0x5ee245)[_0x37748f('0x15')](function(){const _0x59c66d=_0x37748f;logger[_0x59c66d('0x2')](_0x59c66d('0x18'),_0x15a443,_0x47bba7);})[_0x37748f('0x12')](function(_0x25510c){const _0x4d168c=_0x37748f;logger[_0x4d168c('0x2')](JSON[_0x4d168c('0xb')](_0x25510c));});});},Migration[_0x420013('0x1a')][_0x420013('0x4')]=function(_0x2e9e56){const _0x291bb6=_0x420013,_0x5e3842=this;this[_0x291bb6('0x16')][_0x291bb6('0xe')](function(){const _0xe1140b=_0x291bb6;return _0x5e3842[_0xe1140b('0x1')]['dropTable'](_0x2e9e56,{'force':!![]})[_0xe1140b('0x15')](function(){const _0x15788e=_0xe1140b;logger['info'](_0x15788e('0x0'),_0x2e9e56);})[_0xe1140b('0x12')](function(_0x469d56){const _0x2d312f=_0xe1140b;logger[_0x2d312f('0x2')](JSON[_0x2d312f('0xb')](_0x469d56));});});},Migration[_0x420013('0x1a')][_0x420013('0xd')]=function(_0x5ca68b,_0x181264,_0x3f0cc4){const _0x3075d2=_0x420013,_0x261759=this;this['sequence'][_0x3075d2('0xe')](function(){const _0x43028d=_0x3075d2;return _0x261759[_0x43028d('0x1')]['addIndex'](_0x5ca68b,_0x181264,{'indexName':_0x3f0cc4})[_0x43028d('0x15')](function(){const _0xc4c47=_0x43028d;logger[_0xc4c47('0x2')](_0xc4c47('0x14'),_0x5ca68b,_0x181264[_0xc4c47('0x9')](','),_0x3f0cc4);})[_0x43028d('0x12')](function(_0x38a1be){const _0x986108=_0x43028d;logger[_0x986108('0x2')](JSON['stringify'](_0x38a1be));});});},Migration[_0x420013('0x1a')][_0x420013('0xf')]=function(_0xeeaa6d,_0x49dbda){const _0x33f5df=_0x420013,_0x5add08=this;this[_0x33f5df('0x16')][_0x33f5df('0xe')](function(){const _0xc2310f=_0x33f5df;return _0x5add08[_0xc2310f('0x1')][_0xc2310f('0xf')](_0xeeaa6d,_0x49dbda)['then'](function(){const _0x333cd4=_0xc2310f;logger[_0x333cd4('0x2')](_0x333cd4('0x1d'),_0xeeaa6d,_0x49dbda);})['catch'](function(_0x497db9){const _0x573884=_0xc2310f;logger['info'](JSON[_0x573884('0xb')](_0x497db9));});});},Migration[_0x420013('0x1a')]['query']=function(_0x3be316){const _0xf66d8f=_0x420013,_0x40d8f0=this;this[_0xf66d8f('0x16')]['enqueue'](function(){const _0x11147c=_0xf66d8f;return _0x40d8f0[_0x11147c('0x1')][_0x11147c('0xa')]['query'](_0x3be316)['then'](function(){const _0x5b44b3=_0x11147c;logger[_0x5b44b3('0x2')](_0x5b44b3('0x1e'),_0x3be316);})['catch'](function(_0x7181af){const _0x3dc414=_0x11147c;logger[_0x3dc414('0x2')](JSON[_0x3dc414('0xb')](_0x7181af));});});},Migration['prototype'][_0x420013('0x19')]=function(_0x315bc4,_0x3a768b){const _0x587d8e=_0x420013,_0x1a979b=this;this['sequence'][_0x587d8e('0xe')](function(){const _0x44404e=_0x587d8e;return _0x1a979b[_0x44404e('0x1')][_0x44404e('0x19')](_0x315bc4,_0x3a768b)[_0x44404e('0x15')](function(){const _0x5743ed=_0x44404e;logger['info'](_0x5743ed('0x1b'),_0x3a768b,_0x315bc4);})[_0x44404e('0x12')](function(_0x3f14e5){const _0x1c60c0=_0x44404e;logger[_0x1c60c0('0x2')](util[_0x1c60c0('0x10')](_0x3f14e5,{'showHidden':![],'depth':null}));});});},Migration[_0x420013('0x1a')][_0x420013('0x6')]=function(_0x33cfeb,_0x12784e,_0x420802){const _0x27c79e=_0x420013,_0x342846=this;this['sequence'][_0x27c79e('0xe')](function(){const _0x4bf42a=_0x27c79e;return _0x342846['queryInterface'][_0x4bf42a('0x6')](_0x33cfeb,_0x12784e,_0x420802)[_0x4bf42a('0x15')](function(){const _0x3b24b2=_0x4bf42a;logger[_0x3b24b2('0x2')](_0x3b24b2('0x1c'),_0x12784e,_0x420802,_0x33cfeb);})['catch'](function(_0x3f3b36){const _0x559428=_0x4bf42a;logger[_0x559428('0x2')](util[_0x559428('0x10')](_0x3f3b36,{'showHidden':![],'depth':null}));});});},Migration[_0x420013('0x1a')][_0x420013('0x17')]=function(_0x4a276f){const _0xe4bec9=_0x420013;this[_0xe4bec9('0x16')][_0xe4bec9('0xe')](function(){return _0x4a276f();});},module[_0x420013('0xc')]={'up':function(_0x1d3961){return new Promise(function(_0xe84a2){const _0x65765f=new Migration(_0x1d3961);_0x65765f['final'](_0xe84a2);});},'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 3c5f88c..e0f1cbb 100644 --- a/server/migrations/2.1.0.js +++ b/server/migrations/2.1.0.js @@ -1 +1 @@ -const a964_0x505b=['\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','query','\x20\x20\x20\x20autoAssociation\x20tinyint\x20not\x20null,','\x20\x20PRIMARY\x20KEY\x20(`id`),','SELECT\x20NULL\x20FROM','join','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null','../config/logger','\x20\x20WHERE\x20x.sectionId\x20=\x20801;','\x20\x20\x20\x20enabled\x20tinyint\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\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','\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=\x201308\x20THEN\x20\x27VtigerAccounts\x27','\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId','\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201501\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27outbound\x27),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\x27','\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.userId','\x20\x20\x20\x20\x20\x20\x20\x20r.insertedSectionId\x20insertedSectionId,','then','changeColumn','\x20\x20\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20400\x20THEN\x20\x27DELETE\x27','users','INSERT\x20INTO\x20tmpPermissions','INSERT\x20INTO\x20tmpSingleProfiles','\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','CREATE\x20TABLE\x20tmpSingleProfiles','\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','\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\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),','\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\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>=\x20100000\x20THEN\x20\x27CustomDashboards\x27','INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)','REFERENCES\x20user_profiles(`id`)\x20','\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\x20ORDER\x20BY\x20GROUP_CONCAT(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\x20SELECT\x20id,\x20permissions,\x20null','\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\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`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,','\x20\x20);','\x20\x20`type`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,','CREATE\x20TABLE\x20`user_profile_has_sections`\x20(','addIndex\x20%s\x20%s\x20%s','INSERT\x20INTO\x20tmpCustomResources','CREATE\x20TABLE\x20tmpCustomResources','\x20\x20`updatedAt`\x20datetime\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\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27Plugins\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20plugins\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20302\x20THEN\x20\x27Companies\x27','\x20\x20\x20\x20\x20\x20resourceId\x20text,','Added\x20column\x20%s\x20to\x20%s','INSERT\x20INTO\x20tmpSections','\x20\x20\x20\x20t.permissions\x20permissions','\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),','\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\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','FOREIGN\x20KEY\x20(`userProfileId`)\x20','\x20\x20`resourceId`\x20int(11)\x20NOT\x20NULL,','\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=\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=\x20405\x20THEN\x20\x27Contexts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','\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\x20(SELECT\x20GROUP_CONCAT(userId\x20ORDER\x20BY\x20userId\x20ASC)\x20AS\x20users','\x20\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','INSERT\x20INTO\x20tmpExtractedResources','\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\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY','\x20\x20\x20\x20\x20\x20userIds\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=\x201500\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)','\x20\x20\x20\x20\x20\x20name\x20=\x20(SELECT','\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\x20WHERE\x20x.sectionId\x20=\x20501;','\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId',',(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\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\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId','\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\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=\x201011\x20THEN\x20\x27Trunks\x27','\x20\x20sectionId\x20int(11)\x20not\x20null,','removeIndex\x20%s\x20%s','query\x20%s','\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','Changed\x20column\x20%s\x20in\x20table\x20%s','\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\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','\x20\x20UNION','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(501,\x20502,\x20510)\x20THEN\x20\x27Chat\x27','\x20\x20WHERE\x20x.sectionId\x20=\x201103;','UPDATE\x20tmpSections','\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','\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','CREATE\x20TABLE\x20tmpExtractedResources\x20(',',(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\x20FROM\x20tmpSections;','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201010\x20THEN\x20\x27Triggers\x27','UPDATE\x20tmpFinalProfiles','\x20\x20SELECT\x20userId,\x20permissions','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally','util','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','\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\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=\x20409\x20THEN\x20\x27ChanSpies\x27','\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','addColumn','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId','INSERT\x20INTO\x20tmpGroupedPermissions','sequence','addIndex','\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20userId\x20text,','\x20\x20CONSTRAINT\x20`user_profile_has_sections_ibfk_1`\x20FOREIGN\x20KEY\x20(`userProfileId`)\x20REFERENCES\x20`user_profiles`\x20(`id`)\x20ON\x20DELETE\x20CASCADE\x20ON\x20UPDATE\x20CASCADE','\x20\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=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27','\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20userId,','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','INSERT\x20INTO\x20tally\x20(n)','\x20\x20SELECT\x20*','\x20\x20\x20\x20sectionId\x20int(11)','CREATE\x20TABLE\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\x20ORDER\x20BY\x20users)\x20b','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;','\x20\x20FROM\x20tmpCustomResources;','\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','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','tail','\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM','\x20\x20\x20\x20\x20\x20sectionId\x20int(11)','\x20\x20FROM\x20tmpNormalizedResources;','\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','sequelize','\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\x20FROM\x20tmpFinalProfiles\x20t','\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\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','\x20\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;','removeColumn','\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\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=\x201600\x20THEN\x20\x27Help\x27','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20901\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20fax_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20200\x20THEN\x20\x27DELETE\x27','queryInterface','dropTable','\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\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=\x20301\x20THEN\x20\x27Lists\x27','\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;','migration','\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);','removeIndex','\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\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','CREATE\x20TABLE\x20tmpNormalizedUsers','inspect','INSERT\x20INTO\x20tmpFinalProfiles','stringify','\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId','\x20\x20resourceId\x20int(11),','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','\x20\x20\x20\x20p.userIds\x20userId','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','TRUNCATE\x20TABLE\x20tmpPermissions;','\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\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId','\x20\x20WHERE\x20name\x20=\x20\x27DELETE\x27;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27','CREATE\x20TABLE\x20tmpPermissions','\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\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','DELETE\x20FROM\x20tmpSections','\x20\x20FROM\x20tmpGroupedPermissions',',(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','INSERT\x20INTO\x20tmpNormalizedResources','name','userProfileId','\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\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;','\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\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=\x20910\x20THEN\x20\x27Realtime\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\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27AppZone\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\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)','\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','table\x20dropped\x20%s','\x20\x20FROM\x20users','\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\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;','INTEGER','\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=\x201302\x20THEN\x20\x27SalesforceAccounts\x27','INSERT\x20INTO\x20tmpNormalizedPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201100\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20810\x20THEN\x20\x27Realtime\x27','UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s','\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\x20\x20FROM\x20user_profile_has_sections\x20x','exports','\x20\x20\x20\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\x20WHEN\x20sectionId\x20=\x20411\x20THEN\x20\x27Realtime\x27','\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);','\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27','\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId','\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','\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,','\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=\x20700\x20THEN\x20\x27DELETE\x27','STRING','INSERT\x20INTO\x20tmpSharedProfiles','\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;','ON\x20UPDATE\x20CASCADE','\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;','\x20\x20INNER\x20JOIN\x20user_has_mail_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=\x20601\x20THEN\x20\x27MailQueues\x27','\x20\x20FROM\x20tally\x20INNER\x20JOIN\x20tmpPermissions\x20t\x20ON\x20CHAR_LENGTH(t.userIds)\x20-\x20CHAR_LENGTH(REPLACE(t.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','finally','\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,','\x20\x20userId\x20int(11)','\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\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20800\x20THEN\x20\x27DELETE\x27','INSERT\x20INTO\x20tmpResources','\x20\x20\x20\x20\x20\x20\x20\x20fp.profileId\x20profileId,','\x20\x20ORDER\x20BY\x20userId;','\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)','\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;','CREATE\x20TABLE\x20tmpNormalizedPermissions','\x20\x20FROM\x20tmpSections\x20s','\x20\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId','\x20\x20\x20\x20\x20\x20END','\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;','\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId','\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','final','\x20\x20WHERE\x20x.sectionId\x20=\x20401\x20AND\x20q.type\x20=\x20\x27inbound\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\x20WHEN\x20sectionId\x20=\x201103\x20THEN\x20\x27SquareProjects\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','\x20\x20SELECT\x20userId,\x20permissions,\x20null','\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','CREATE\x20TABLE\x20tmpGroupedPermissions','\x20\x20\x20\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`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27','\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=\x201203\x20THEN\x20\x27Reports\x27','\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null','\x20\x20SET\x20insertedId\x20=\x20(SELECT\x20id','\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\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId','\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x201103\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20square_projects\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\x20\x20\x20\x20insertedId\x20int(11),','\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','INSERT\x20INTO\x20tmpNormalizedUsers','\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','Removed\x20column\x20%s\x20from\x20%s','UPDATE\x20tmpSections\x20s','\x20\x20SELECT\x20permission,\x20userId,\x200','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\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=\x20202\x20THEN\x20\x27Agents\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','CREATE\x20TABLE\x20`user_profiles`\x20(','\x20\x20ORDER\x20BY\x20id;','CREATE\x20TABLE\x20tmpSharedProfiles','\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\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\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','\x20\x20\x20\x20permissions\x20text\x20not\x20null,','INSERT\x20INTO\x20user_profile_has_resources\x20(name,\x20resourceId,\x20type,\x20createdAt,\x20updatedAt,\x20sectionId)','\x20\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20s.userProfileId\x20=\x20x.userProfileId\x20AND\x20s.sectionId\x20=\x20x.sectionId);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201510\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27','\x20\x20WHERE\x20x.sectionId\x20=\x20502;','reportType','\x20\x20\x20\x20userId\x20text','\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\x20SET\x20insertedId\x20=\x20(SELECT','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201301\x20THEN\x20\x27ZendeskAccounts\x27','\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,','\x20\x20GROUP\x20BY\x20permissions','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','\x20\x20s.sectionId\x20permission,','\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)','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','INSERT\x20INTO\x20tmpNormalizedSections','\x20\x20\x20\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\x20SET','INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)','\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\x20SET\x20u.userProfileId\x20=\x201','\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)','UPDATE\x20tmpNormalizedResources\x20x','\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\x20`category`\x20varchar(255)\x20NOT\x20NULL,','enqueue','\x20\x20WHERE\x20x.sectionId\x20=\x20602;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201012\x20THEN\x20\x27Variables\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201300\x20THEN\x20\x27DELETE\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;','\x20\x20\x20\x20userProfileId\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=\x20408\x20THEN\x20\x27VoiceRecordings\x27','\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId','analytics_extracted_reports','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','reportId','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;','\x20\x20\x20\x20category\x20varchar(255)\x20not\x20null,','INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)','\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','CREATE\x20TABLE\x20tmpNormalizedResources','info','UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f','\x20\x20FROM\x20tmpSections','\x20\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId','catch','\x20\x20(','prototype','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),','\x20\x20FROM\x20(SELECT','\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20GROUP\x20BY\x20resourceId,\x20sectionId','\x20\x20WHERE\x20x.sectionId\x20=\x20601;'];(function(_0x3a8427,_0x505b74){const _0x1a00b0=function(_0x26962f){while(--_0x26962f){_0x3a8427['push'](_0x3a8427['shift']());}};_0x1a00b0(++_0x505b74);}(a964_0x505b,0x1d6));const a964_0x1a00=function(_0x3a8427,_0x505b74){_0x3a8427=_0x3a8427-0x0;let _0x1a00b0=a964_0x505b[_0x3a8427];return _0x1a00b0;};const _0x28f830=a964_0x1a00;'use strict';const util=require(_0x28f830('0x1')),logger=require(_0x28f830('0x102'))(_0x28f830('0x3a')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x26962f){const _0x5d9b5b=_0x28f830;this['tail']=this[_0x5d9b5b('0x20')]?this[_0x5d9b5b('0x20')][_0x5d9b5b('0x86')](_0x26962f):_0x26962f();};const Migration=function(_0x321640){const _0x22447d=_0x28f830;this[_0x22447d('0x31')]=_0x321640,this[_0x22447d('0xc')]=new Sequence();};Migration[_0x28f830('0xf4')][_0x28f830('0x10f')]=function(_0x621942,_0x31797c,_0xc5fcd3){const _0x24c841=_0x28f830,_0x5a4d13=this;this['sequence'][_0x24c841('0xdc')](function(){const _0x3cfe1c=_0x24c841;return _0x5a4d13['queryInterface'][_0x3cfe1c('0x10f')](_0x621942,_0x31797c,_0xc5fcd3)[_0x3cfe1c('0x10e')](function(){const _0x248979=_0x3cfe1c;logger[_0x248979('0xee')](_0x248979('0x157'),_0x31797c,_0x621942);})['catch'](function(_0x1bb343){const _0x5955be=_0x3cfe1c;logger[_0x5955be('0xee')](JSON['stringify'](_0x1bb343));});});},Migration[_0x28f830('0xf4')]['addColumn']=function(_0x353a25,_0x5355c4,_0x5b20cf){const _0x334dec=_0x28f830,_0x258a24=this;this[_0x334dec('0xc')][_0x334dec('0xdc')](function(){const _0x2f09dd=_0x334dec;return _0x258a24[_0x2f09dd('0x31')][_0x2f09dd('0x7')](_0x353a25,_0x5355c4,_0x5b20cf)[_0x2f09dd('0x10e')](function(){const _0x943e19=_0x2f09dd;logger[_0x943e19('0xee')](_0x943e19('0x133'),_0x5355c4,_0x353a25);})[_0x2f09dd('0xf2')](function(_0x59330c){const _0xde8eb7=_0x2f09dd;logger[_0xde8eb7('0xee')](JSON[_0xde8eb7('0x42')](_0x59330c));});});},Migration[_0x28f830('0xf4')]['dropTable']=function(_0x24598a){const _0x515ac9=_0x28f830,_0x23dc70=this;this[_0x515ac9('0xc')][_0x515ac9('0xdc')](function(){const _0x3ab108=_0x515ac9;return _0x23dc70['queryInterface'][_0x3ab108('0x32')](_0x24598a,{'force':!![]})['then'](function(){const _0x58342e=_0x3ab108;logger[_0x58342e('0xee')](_0x58342e('0x65'),_0x24598a);})[_0x3ab108('0xf2')](function(_0x4d081c){const _0x4e9740=_0x3ab108;logger[_0x4e9740('0xee')](JSON[_0x4e9740('0x42')](_0x4d081c));});});},Migration[_0x28f830('0xf4')][_0x28f830('0xd')]=function(_0x58f88b,_0x3fc8d4,_0x568175){const _0x1f6aa8=_0x28f830,_0x1e3565=this;this[_0x1f6aa8('0xc')][_0x1f6aa8('0xdc')](function(){const _0x351a01=_0x1f6aa8;return _0x1e3565[_0x351a01('0x31')][_0x351a01('0xd')](_0x58f88b,_0x3fc8d4,{'indexName':_0x568175})['then'](function(){const _0xf09222=_0x351a01;logger[_0xf09222('0xee')](_0xf09222('0x12b'),_0x58f88b,_0x3fc8d4[_0xf09222('0xff')](','),_0x568175);})[_0x351a01('0xf2')](function(_0x130703){logger['info'](JSON['stringify'](_0x130703));});});},Migration[_0x28f830('0xf4')][_0x28f830('0x3c')]=function(_0x1c9533,_0x222c82){const _0x107c87=this;this['sequence']['enqueue'](function(){const _0x561050=a964_0x1a00;return _0x107c87['queryInterface'][_0x561050('0x3c')](_0x1c9533,_0x222c82)[_0x561050('0x10e')](function(){const _0x3016e4=_0x561050;logger['info'](_0x3016e4('0x154'),_0x1c9533,_0x222c82);})['catch'](function(_0x51b2bb){logger['info'](JSON['stringify'](_0x51b2bb));});});},Migration['prototype']['query']=function(_0xb60088){const _0x1cea5c=_0x28f830,_0x546302=this;this[_0x1cea5c('0xc')][_0x1cea5c('0xdc')](function(){const _0x13e400=_0x1cea5c;return _0x546302['queryInterface'][_0x13e400('0x25')][_0x13e400('0xfb')](_0xb60088)['then'](function(){const _0xe9acf7=_0x13e400;logger[_0xe9acf7('0xee')](_0xe9acf7('0x155'),_0xb60088);})[_0x13e400('0xf2')](function(_0x43775e){const _0x11dd97=_0x13e400;logger['info'](JSON[_0x11dd97('0x42')](_0x43775e));});});},Migration[_0x28f830('0xf4')]['removeColumn']=function(_0x5e926b,_0x16f4c1){const _0x64e552=_0x28f830,_0x5aa1fd=this;this['sequence'][_0x64e552('0xdc')](function(){const _0x3aed3c=_0x64e552;return _0x5aa1fd['queryInterface'][_0x3aed3c('0x2b')](_0x5e926b,_0x16f4c1)[_0x3aed3c('0x10e')](function(){const _0x2cd2e0=_0x3aed3c;logger['info'](_0x2cd2e0('0xb1'),_0x16f4c1,_0x5e926b);})[_0x3aed3c('0xf2')](function(_0x201f50){const _0x3529c1=_0x3aed3c;logger[_0x3529c1('0xee')](util[_0x3529c1('0x40')](_0x201f50,{'showHidden':![],'depth':null}));});});},Migration[_0x28f830('0xf4')]['renameColumn']=function(_0x263cea,_0x512206,_0x5685bf){const _0xa1794f=_0x28f830,_0x32f87e=this;this[_0xa1794f('0xc')]['enqueue'](function(){const _0xa9b1ec=_0xa1794f;return _0x32f87e[_0xa9b1ec('0x31')]['renameColumn'](_0x263cea,_0x512206,_0x5685bf)[_0xa9b1ec('0x10e')](function(){const _0x427389=_0xa9b1ec;logger[_0x427389('0xee')](_0x427389('0xd1'),_0x512206,_0x5685bf,_0x263cea);})[_0xa9b1ec('0xf2')](function(_0x468e6d){const _0x5cb05c=_0xa9b1ec;logger[_0x5cb05c('0xee')](util[_0x5cb05c('0x40')](_0x468e6d,{'showHidden':![],'depth':null}));});});},Migration[_0x28f830('0xf4')][_0x28f830('0x99')]=function(_0x3fefc7){const _0x59f27d=_0x28f830;this[_0x59f27d('0xc')][_0x59f27d('0xdc')](function(){return _0x3fefc7();});},module[_0x28f830('0x72')]={'up':function(_0x3ef521,_0x1ec3fa){return new Promise(function(_0x4e41c8){const _0x1b0e31=a964_0x1a00,_0x3f330e=new Migration(_0x3ef521);_0x3f330e[_0x1b0e31('0x7')]('analytics_extracted_reports',_0x1b0e31('0xe8'),{'type':_0x1ec3fa[_0x1b0e31('0x69')]}),_0x3f330e[_0x1b0e31('0x7')](_0x1b0e31('0xe5'),_0x1b0e31('0xc6'),{'type':_0x1ec3fa[_0x1b0e31('0x7e')]}),_0x3f330e[_0x1b0e31('0x7')](_0x1b0e31('0x112'),_0x1b0e31('0x57'),{'type':_0x1ec3fa['INTEGER']}),_0x3f330e['removeColumn']('voice_voicemail',_0x1b0e31('0x56')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xb8')+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+'\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,'+'\x20\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x1b0e31('0x7b')+_0x1b0e31('0x12e')+_0x1b0e31('0xfd')+'\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)'+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xd5')+_0x1b0e31('0xce')),_0x3f330e[_0x1b0e31('0xfb')]('ALTER\x20TABLE\x20`users`\x20'+_0x1b0e31('0x1f')+_0x1b0e31('0x13a')+_0x1b0e31('0x11f')+_0x1b0e31('0x81')),_0x3f330e['query'](_0x1b0e31('0x12a')+_0x1b0e31('0xa4')+_0x1b0e31('0x13')+_0x1b0e31('0xdb')+'\x20\x20`sectionId`\x20int(11)\x20NOT\x20NULL,'+_0x1b0e31('0x126')+'\x20\x20`autoAssociation`\x20tinyint(1)\x20DEFAULT\x20NULL,'+_0x1b0e31('0x35')+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x1b0e31('0x12e')+_0x1b0e31('0x140')+_0x1b0e31('0xfd')+_0x1b0e31('0x136')+_0x1b0e31('0x76')+_0x1b0e31('0x10')+_0x1b0e31('0x138')),_0x3f330e[_0x1b0e31('0xfb')]('CREATE\x20TABLE\x20`user_profile_has_resources`\x20('+'\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0x1b0e31('0x13')+_0x1b0e31('0x13b')+_0x1b0e31('0x128')+'\x20\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0x1b0e31('0x12e')+_0x1b0e31('0x129')+_0x1b0e31('0xfd')+_0x1b0e31('0x1b')+_0x1b0e31('0x11a')+_0x1b0e31('0x5b')+_0x1b0e31('0x138')),_0x3f330e[_0x1b0e31('0xfb')]('CREATE\x20TABLE\x20tally\x20('+_0x1b0e31('0x145')+');'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x16')+_0x1b0e31('0xfe')+_0x1b0e31('0x48')+',(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'+_0x1b0e31('0x14d')+_0x1b0e31('0x54')+_0x1b0e31('0x161')+';'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x4f')+_0x1b0e31('0xf3')+_0x1b0e31('0x146')+_0x1b0e31('0x9f')+'\x20\x20\x20\x20\x20\x20profileId\x20int(11)'+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x113')+_0x1b0e31('0x123')+_0x1b0e31('0x66')+_0x1b0e31('0x2')+_0x1b0e31('0xb9')),_0x3f330e[_0x1b0e31('0xfb')]('CREATE\x20TABLE\x20tmpNormalizedSections'+_0x1b0e31('0xf3')+_0x1b0e31('0x87')+_0x1b0e31('0xf')+'\x20\x20\x20\x20resourceId\x20text'+_0x1b0e31('0x127')),_0x3f330e['query'](_0x1b0e31('0xd2')+'\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200'+_0x1b0e31('0xf6')+_0x1b0e31('0x51')+_0x1b0e31('0x46')+'\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'+_0x1b0e31('0x11')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x91')+_0x1b0e31('0xf3')+_0x1b0e31('0xbe')+_0x1b0e31('0xa6')+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x6c')+_0x1b0e31('0x93')+'\x20\x20FROM\x20tmpNormalizedSections'+'\x20\x20GROUP\x20BY\x20userId;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x167')+'\x20\x20SET\x20u.permissions\x20=\x20t.permissions'+_0x1b0e31('0x124')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x4a')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x113')+'\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null'+_0x1b0e31('0x66')+_0x1b0e31('0x2')+'\x20\x20GROUP\x20BY\x20permissions'+_0x1b0e31('0x121')),_0x3f330e['query'](_0x1b0e31('0x3f')+_0x1b0e31('0xf3')+_0x1b0e31('0x87')+_0x1b0e31('0xf')+'\x20\x20\x20\x20resourceId\x20text'+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xaf')+_0x1b0e31('0xb3')+_0x1b0e31('0xf6')+_0x1b0e31('0xcf')+_0x1b0e31('0x50')+_0x1b0e31('0x1e')+_0x1b0e31('0x11')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x160')+_0x1b0e31('0x153')+_0x1b0e31('0x44')+_0x1b0e31('0x88')+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x143')+_0x1b0e31('0x43')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x1b0e31('0x64')+_0x1b0e31('0x109')+_0x1b0e31('0x9a')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x143')+_0x1b0e31('0xc0')+_0x1b0e31('0x13c')+_0x1b0e31('0xe')+_0x1b0e31('0x14b')),_0x3f330e[_0x1b0e31('0xfb')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x1b0e31('0x142')+_0x1b0e31('0x13c')+_0x1b0e31('0x75')+_0x1b0e31('0xc5')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x143')+_0x1b0e31('0xf1')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_mail_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x1b0e31('0xf9')),_0x3f330e['query'](_0x1b0e31('0x143')+'\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId'+_0x1b0e31('0x13c')+_0x1b0e31('0x83')+_0x1b0e31('0xdd')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x143')+_0x1b0e31('0x36')+_0x1b0e31('0x13c')+_0x1b0e31('0x3e')+'\x20\x20WHERE\x20x.sectionId\x20=\x20701;'),_0x3f330e['query']('INSERT\x20INTO\x20tmpExtractedResources'+'\x20\x20SELECT\x20x.sectionId,\x20u.SmsAccountId,\x20x.userId'+_0x1b0e31('0x13c')+_0x1b0e31('0x70')+'\x20\x20WHERE\x20x.sectionId\x20=\x20702;'),_0x3f330e['query'](_0x1b0e31('0x143')+'\x20\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId'+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x1b0e31('0x14c')+_0x1b0e31('0x103')),_0x3f330e['query'](_0x1b0e31('0x143')+_0x1b0e31('0x5c')+_0x1b0e31('0x13c')+_0x1b0e31('0x9')+'\x20\x20WHERE\x20x.sectionId\x20=\x20802;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x143')+_0x1b0e31('0x4c')+_0x1b0e31('0x13c')+_0x1b0e31('0xe3')+'\x20\x20WHERE\x20x.sectionId\x20=\x20901;'),_0x3f330e['query'](_0x1b0e31('0x143')+_0x1b0e31('0x108')+_0x1b0e31('0x13c')+_0x1b0e31('0x137')+_0x1b0e31('0x4')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x143')+_0x1b0e31('0x95')+_0x1b0e31('0x13c')+_0x1b0e31('0xa')+_0x1b0e31('0x15c')),_0x3f330e['query'](_0x1b0e31('0x143')+_0x1b0e31('0x43')+_0x1b0e31('0x13c')+_0x1b0e31('0x64')+_0x1b0e31('0x109')+'\x20\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\x27;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xa2')+_0x1b0e31('0xf3')+'\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,'+_0x1b0e31('0x101')+'\x20\x20);'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xb')+_0x1b0e31('0x166')+_0x1b0e31('0xf6')+_0x1b0e31('0x14')+_0x1b0e31('0x135')+_0x1b0e31('0x85')+_0x1b0e31('0x11')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xba')+_0x1b0e31('0xf3')+_0x1b0e31('0x146')+_0x1b0e31('0x9f')+_0x1b0e31('0x15')+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x7f')+_0x1b0e31('0xa8')+_0x1b0e31('0x53')+_0x1b0e31('0x10c')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(SELECT'+_0x1b0e31('0x73')+'\x20\x20\x20\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'+_0x1b0e31('0x125')+_0x1b0e31('0x105')+'\x20\x20\x20\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'+_0x1b0e31('0x21')+_0x1b0e31('0x141')+_0x1b0e31('0x2d')+_0x1b0e31('0xf8')+_0x1b0e31('0x1a')+_0x1b0e31('0x29')+_0x1b0e31('0xcd')+'\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x116')+_0x1b0e31('0xf3')+_0x1b0e31('0xb4')+_0x1b0e31('0x9f')+_0x1b0e31('0x15')+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x114')+_0x1b0e31('0xa0')+'\x20\x20FROM\x20tmpGroupedPermissions'+'\x20\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId'+_0x1b0e31('0xc1')+_0x1b0e31('0x11c')+_0x1b0e31('0x100')+_0x1b0e31('0x28')+_0x1b0e31('0x21')+'\x20\x20\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'+_0x1b0e31('0x9d')+'\x20\x20\x20\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'+_0x1b0e31('0xd3')+_0x1b0e31('0xa3')+_0x1b0e31('0x8d')),_0x3f330e[_0x1b0e31('0xfb')]('CREATE\x20TABLE\x20tmpFinalProfiles'+'\x20\x20('+_0x1b0e31('0xb4')+_0x1b0e31('0x9f')+_0x1b0e31('0x15')+'\x20\x20);'),_0x3f330e['query'](_0x1b0e31('0x41')+'\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles'+_0x1b0e31('0x15a')+'\x20\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xeb')+'\x20\x20SELECT\x20CONCAT(\x27Profile_\x27,\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber'+_0x1b0e31('0x27')+_0x1b0e31('0x34')+'\x20\x20FROM\x20tmpFinalProfiles;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x165')+'\x20\x20SET\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber'+'\x20\x20FROM\x20user_profiles\x20u'+'\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x201)\x20as\x20dummy\x20LIMIT\x201)'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x19')+_0x1b0e31('0xf3')+_0x1b0e31('0x8')+_0x1b0e31('0xea')+'\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,'+_0x1b0e31('0xfc')+_0x1b0e31('0xe1')+_0x1b0e31('0xad')+'\x20\x20\x20\x20userId\x20text'+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x134')+'\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId'+'\x20\x20FROM\x20(SELECT'+_0x1b0e31('0x8c')+_0x1b0e31('0x14a')+'\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId'+_0x1b0e31('0x0')+'\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'+_0x1b0e31('0xbd')),_0x3f330e['query'](_0x1b0e31('0x15d')+_0x1b0e31('0xd4')+_0x1b0e31('0x149')+_0x1b0e31('0x13f')+'\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'+_0x1b0e31('0xa1')+_0x1b0e31('0x30')+_0x1b0e31('0xb0')+_0x1b0e31('0xb6')+_0x1b0e31('0x8f')+_0x1b0e31('0x7a')+'\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'+_0x1b0e31('0x38')+_0x1b0e31('0x131')+'\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'+_0x1b0e31('0x158')+_0x1b0e31('0x111')+_0x1b0e31('0xc8')+'\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'+_0x1b0e31('0xae')+'\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'+_0x1b0e31('0x13e')+'\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'+_0x1b0e31('0x120')+_0x1b0e31('0xe2')+_0x1b0e31('0x5')+'\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'+_0x1b0e31('0x74')+'\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'+_0x1b0e31('0x115')+_0x1b0e31('0x122')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20510\x20THEN\x20\x27Realtime\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20600\x20THEN\x20\x27DELETE\x27'+_0x1b0e31('0x84')+_0x1b0e31('0x37')+_0x1b0e31('0xaa')+'\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'+_0x1b0e31('0x7d')+'\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'+_0x1b0e31('0x13d')+_0x1b0e31('0x24')+_0x1b0e31('0x8a')+_0x1b0e31('0x2c')+'\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'+_0x1b0e31('0x6e')+_0x1b0e31('0x4b')+_0x1b0e31('0x14e')+_0x1b0e31('0x163')+_0x1b0e31('0x5d')+'\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'+_0x1b0e31('0x3d')+_0x1b0e31('0x117')+'\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'+_0x1b0e31('0xfa')+_0x1b0e31('0x15f')+'\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'+_0x1b0e31('0x98')+_0x1b0e31('0xb5')+_0x1b0e31('0x11b')+_0x1b0e31('0x164')+_0x1b0e31('0x152')+_0x1b0e31('0xde')+_0x1b0e31('0x6d')+_0x1b0e31('0x26')+_0x1b0e31('0x12f')+_0x1b0e31('0x9c')+_0x1b0e31('0x58')+'\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'+_0x1b0e31('0x89')+_0x1b0e31('0xa7')+_0x1b0e31('0xdf')+_0x1b0e31('0xcb')+_0x1b0e31('0x6b')+_0x1b0e31('0x12')+_0x1b0e31('0x144')+_0x1b0e31('0x6a')+'\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'+_0x1b0e31('0x107')+_0x1b0e31('0xec')+'\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'+_0x1b0e31('0x147')+'\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'+_0x1b0e31('0x67')+_0x1b0e31('0xc3')+_0x1b0e31('0x2e')+'\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'+_0x1b0e31('0xbb')+_0x1b0e31('0x150')+_0x1b0e31('0x15e')+_0x1b0e31('0x11d')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27'+_0x1b0e31('0x49')+_0x1b0e31('0xf5')+'\x20\x20category\x20=\x20(SELECT'+'\x20\x20\x20\x20\x20\x20CASE'+_0x1b0e31('0x62')+_0x1b0e31('0xe7')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27'+_0x1b0e31('0x106')+_0x1b0e31('0xd6')+_0x1b0e31('0x15b')+'\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\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27'+_0x1b0e31('0x10b')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(901,\x20902,\x20910)\x20THEN\x20\x27Fax\x27'+_0x1b0e31('0x139')+_0x1b0e31('0x4e')+_0x1b0e31('0xa5')+_0x1b0e31('0xca')+_0x1b0e31('0xb7')+_0x1b0e31('0x59')+_0x1b0e31('0xc4')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27'+_0x1b0e31('0x5f')+_0x1b0e31('0x78')+_0x1b0e31('0x94')+'\x20\x20);'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x52')+_0x1b0e31('0x4d')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x12d')+'\x20\x20('+_0x1b0e31('0x8')+_0x1b0e31('0xea')+'\x20\x20\x20\x20sectionId\x20int(11)\x20not\x20null,'+_0x1b0e31('0x104')+_0x1b0e31('0xfc')+'\x20\x20\x20\x20userProfileId\x20int(11)\x20not\x20null,'+_0x1b0e31('0xad')+_0x1b0e31('0xc7')+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x12c')+_0x1b0e31('0x17')+_0x1b0e31('0xf0')+_0x1b0e31('0x3b')),_0x3f330e[_0x1b0e31('0xfb')]('DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2'+_0x1b0e31('0x82')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x15d')+_0x1b0e31('0x9e')),_0x3f330e[_0x1b0e31('0xfb')]('UPDATE\x20tmpSections'+_0x1b0e31('0x7c')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x15d')+_0x1b0e31('0x68')),_0x3f330e[_0x1b0e31('0xfb')]('UPDATE\x20tmpCustomResources'+_0x1b0e31('0xc9')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'+_0x1b0e31('0x148')+_0x1b0e31('0xd8')+_0x1b0e31('0x60')+_0x1b0e31('0x77')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x11e')+_0x1b0e31('0xe4')+_0x1b0e31('0x162')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xb2')+_0x1b0e31('0xa9')+_0x1b0e31('0x71')+_0x1b0e31('0xc2')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x6f')+_0x1b0e31('0xf7')+_0x1b0e31('0x39')),_0x3f330e[_0x1b0e31('0xfb')]('CREATE\x20TABLE\x20tmpResources'+_0x1b0e31('0xf3')+_0x1b0e31('0x132')+_0x1b0e31('0x9b')+_0x1b0e31('0x110')+_0x1b0e31('0x22')+_0x1b0e31('0x127')),_0x3f330e['query'](_0x1b0e31('0x8b')+_0x1b0e31('0x97')+_0x1b0e31('0x92')+_0x1b0e31('0x2a')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xed')+_0x1b0e31('0xf3')+_0x1b0e31('0x8')+_0x1b0e31('0x33')+_0x1b0e31('0x6')+_0x1b0e31('0xcc')+_0x1b0e31('0x18')+_0x1b0e31('0x127')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x55')+_0x1b0e31('0x14f')+'\x20\x20FROM\x20(SELECT'+_0x1b0e31('0x119')+'\x20\x20\x20\x20\x20\x20\x20\x20r.type\x20type,'+_0x1b0e31('0x10d')+_0x1b0e31('0x79')+_0x1b0e31('0x0')+_0x1b0e31('0x156')+_0x1b0e31('0xbd')),_0x3f330e['query'](_0x1b0e31('0x55')+_0x1b0e31('0x45')+_0x1b0e31('0x1d')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xd9')+'\x20\x20SET\x20name\x20=\x20(SELECT'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20401\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27inbound\x27),\x27DELETE_MIGRATION\x27)'+_0x1b0e31('0x8e')+'\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)'+_0x1b0e31('0x3')+_0x1b0e31('0x47')+_0x1b0e31('0xd0')+_0x1b0e31('0x5e')+'\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)'+_0x1b0e31('0xda')+_0x1b0e31('0x2f')+_0x1b0e31('0xbc')+_0x1b0e31('0xac')+_0x1b0e31('0x10a')+_0x1b0e31('0x130')+_0x1b0e31('0x63')+'\x20\x20END'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);'),_0x3f330e[_0x1b0e31('0xfb')]('DELETE\x20FROM\x20tmpNormalizedResources'+'\x20\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xbf')+_0x1b0e31('0xab')+_0x1b0e31('0x23')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xef')+'\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId'+_0x1b0e31('0x151')),_0x3f330e['query']('UPDATE\x20users\x20u'+_0x1b0e31('0xd7')+_0x1b0e31('0x159')),_0x3f330e['query'](_0x1b0e31('0x80')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x5a')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xe6')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xe9')),_0x3f330e[_0x1b0e31('0xfb')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x90')),_0x3f330e['query'](_0x1b0e31('0x61')),_0x3f330e[_0x1b0e31('0xfb')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;'),_0x3f330e['query']('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;'),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x96')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0xe0')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x1c')),_0x3f330e[_0x1b0e31('0xfb')](_0x1b0e31('0x118')),_0x3f330e[_0x1b0e31('0x99')](_0x4e41c8);});},'down':function(){}}; \ No newline at end of file +const a964_0x229e=['DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedSections;','\x20\x20s.sectionId\x20permission,','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20as\x20split','INSERT\x20INTO\x20tmpSections','\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\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27Projects\x27','\x20\x20ORDER\x20BY\x20userId;','\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\x20SELECT\x20x.sectionId,\x20u.OpenchannelQueueId,\x20x.userId','\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)','\x20\x20UNIQUE\x20KEY\x20`name`\x20(`name`)','\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=\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=\x20710\x20THEN\x20\x27Realtime\x27','UPDATE\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20(SELECT','INSERT\x20INTO\x20tmpCustomResources','\x20\x20\x20\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\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=\x20900\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','\x20\x20INNER\x20JOIN\x20voice_queues\x20q\x20ON\x20u.VoiceQueueId\x20=\x20q.id','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(userId);','\x20\x20SELECT\x20\x27\x27,\x20insertedId,\x20name,\x20sectionId,\x20null','name','CREATE\x20TABLE\x20tmpGroupedPermissions','\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\x20SELECT\x20*\x20FROM\x20tmpSingleProfiles;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20>=\x20100000\x20THEN\x20\x27Tools\x27','\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,','changeColumn','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201700\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20position(\x27,\x27\x20in\x20b.users)\x20=\x200))','\x20\x20KEY\x20`compositeIndex`\x20(`resourceId`,`sectionId`),','\x20\x20sectionId\x20int(11)\x20not\x20null,','(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\x20WHERE\x20x.sectionId\x20=\x201501\x20AND\x20q.type\x20=\x20\x27outbound\x27;','\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27Plugins\x27\x20THEN\x20(sectionId\x20-\x2088888)','\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=\x20408\x20THEN\x20\x27VoiceRecordings\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\x20ORDER\x20BY\x20users)\x20b','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(r.resourceId,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20resourceId,','INSERT\x20INTO\x20tmpNormalizedResources','\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','INTEGER','\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\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1301,\x201302,\x201303,\x201305,\x201306,\x201307,\x201308)\x20THEN\x20\x27Integrations\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\x20\x20\x20r.insertedSectionId\x20insertedSectionId,','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(202,\x20203,\x20204)\x20THEN\x20\x27Staff\x27','\x20\x20WHERE\x20userProfileId\x20is\x20null\x20AND\x20role\x20=\x20\x27user\x27;','UPDATE\x20tmpNormalizedResources\x20x','\x20\x20SELECT\x20id,\x20permissions,\x20null','\x20\x20INNER\x20JOIN\x20user_has_openchannel_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20WHERE\x20x.sectionId\x20=\x20702;','\x20\x20KEY\x20`compositeIndex`\x20(`sectionId`,`userProfileId`),','\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','\x20\x20\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(fp.userId,\x20\x27,\x27,\x201)\x20userId','\x20\x20WHERE\x20x.sectionId\x20=\x20501;','\x20\x20CROSS\x20JOIN\x20(SELECT\x20@cnt\x20:=\x200)\x20as\x20dummy\x20LIMIT\x201)),\x20\x27red\x27,\x20now(),\x20now()','\x20\x20\x20\x20t.permissions\x20permissions','CREATE\x20TABLE\x20tmpNormalizedUsers','\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','../config/logger','\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','CREATE\x20TABLE\x20tmpNormalizedResources','\x20\x20\x20\x20\x20\x20profileId\x20int(11)','renameColumn','\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`createdAt`\x20datetime\x20NOT\x20NULL,','CREATE\x20TABLE\x20tmpNormalizedSections','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSharedProfiles;','FOREIGN\x20KEY\x20(`userProfileId`)\x20','\x20\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\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\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','enqueue','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20),','\x20\x20FROM\x20tmpFinalProfiles\x20t','\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','UPDATE\x20users\x20u','sequence','\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=\x20203\x20THEN\x20\x27Telephones\x27','\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=\x20407\x20THEN\x20\x27MusicOnHolds\x27','\x20\x20FROM\x20tally\x20INNER\x20JOIN\x20tmpPermissions\x20t\x20ON\x20CHAR_LENGTH(t.userIds)\x20-\x20CHAR_LENGTH(REPLACE(t.userIds,\x20\x27,\x27,\x20\x27\x27))\x20>=\x20tally.n-1','\x20\x20\x20\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','catch','\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\x20FROM\x20tmpNormalizedUsers\x20x','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20POSITION(\x27,\x27\x20in\x20r.userIds)\x20>\x200','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20802\x20THEN\x20\x27OpenchannelAccounts\x27','INSERT\x20INTO\x20tmpNormalizedUsers','\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(t.userIds,\x20\x27,\x27,\x20tally.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\x20WHEN\x20sectionId\x20=\x201007\x20THEN\x20\x27Sounds\x27','\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\x20SET\x20autoAssociation\x20=\x201\x20WHERE\x20sectionId\x20=\x20100;','\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','inspect','\x20\x20SELECT\x20\x27\x27,\x20resourceId,\x20type,\x20insertedSectionId,\x20sectionId','\x20\x20\x20\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpGroupedPermissions;','\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\x20WHEN\x20sectionId\x20=\x20202\x20THEN\x20\x27Agents\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\x20SELECT\x20x.sectionId,\x20u.OpenchannelAccountId,\x20x.userId','\x20\x20FROM\x20tmpCustomResources;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE','CREATE\x20TABLE\x20tmpResources','migration','\x20\x20`sectionId`\x20int(11)\x20NOT\x20NULL,','\x20\x20SELECT\x20\x27\x27,\x20\x27\x27,\x20permission,\x201,\x200,\x20profileId,\x20null,\x20userId','\x20\x20WHERE\x20u.id\x20=\x20f.userId;','dropTable','\x20\x20\x20\x20insertedId\x20int(11),','INSERT\x20INTO\x20tmpExtractedResources','\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','addIndex','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','\x20\x20FROM\x20(SELECT','INSERT\x20INTO\x20tmpFinalProfiles','\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\x20WHERE\x20x.sectionId\x20=\x20701;','\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\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','info','\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\x20resourceId\x20text','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20name\x20=\x20\x27CustomDashboards\x27\x20THEN\x20(sectionId\x20-\x2099999)','\x20\x20INNER\x20JOIN\x20user_has_mail_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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201502\x20THEN\x20\x27IvrCampaigns\x27','INSERT\x20INTO\x20tmpGroupedPermissions','\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=\x201102\x20THEN\x20\x27SquareRecordings\x27','\x20\x20SET\x20u.permissions\x20=\x20t.permissions','\x20\x20\x20\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','reportType','\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','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSections;','analytics_extracted_reports','VALUES\x20(\x27Default\x27,\x20\x27red\x27,\x20NULL,\x20NOW(),\x20NOW());','\x20\x20n\x20INT\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY','ALTER\x20TABLE\x20`users`\x20','\x20\x20WHERE\x20x.sectionId\x20=\x20602;','\x20\x20FROM\x20tmpFinalProfiles;','UPDATE\x20tmpSections','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','\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\x20SELECT\x20permission,\x20userId,\x200','ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20','\x20\x20INNER\x20JOIN\x20user_has_fax_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20WHERE\x20x.sectionId\x20=\x20502;','\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;','userProfileId','\x20\x20\x20\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\x20WHEN\x20x.sectionId\x20=\x20501\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20chat_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)','\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=\x201300\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1501,\x201502,\x201510)\x20THEN\x20\x27MotionDialer\x27','prototype','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20600\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20411\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=\x201001\x20THEN\x20\x27CannedAnswers\x27','\x20\x20SELECT\x20x.sectionId,\x20u.SmsQueueId,\x20x.userId','\x20\x20GROUP\x20BY\x20permissions','\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',',(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\x20SELECT\x20x.sectionId,\x20u.ChatWebsiteId,\x20x.userId','\x20\x20);','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedResources;','\x20\x20\x20\x20permissions\x20text\x20not\x20null,','\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\x20INNER\x20JOIN\x20user_has_sms_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpNormalizedUsers;','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201400\x20THEN\x20\x27Settings\x27','ON\x20UPDATE\x20CASCADE','\x20\x20SELECT\x20name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20\x27red\x27,\x20now(),\x20now(),\x20userProfileId','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201303\x20THEN\x20\x27FreshdeskAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHERE\x20s.userProfileId\x20=\x20x.userProfileId\x20AND\x20s.sectionId\x20=\x20x.sectionId);','users','INSERT\x20INTO\x20tmpSingleProfiles','\x20\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','Changed\x20column\x20%s\x20in\x20table\x20%s','\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','REFERENCES\x20user_profiles(`id`)\x20','removeColumn','util','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpExtractedResources;','\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','INSERT\x20INTO\x20`user_profiles`\x20(`name`,\x20`crudPermissions`,\x20`description`,\x20`createdAt`,\x20`updatedAt`)','\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\x20FROM\x20user_profiles\x20u','\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\x20SELECT\x20userId,\x20permissions,\x20null','\x20\x20SELECT\x20GROUP_CONCAT(id),\x20permissions,\x20null','\x20\x20`category`\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=\x201200\x20THEN\x20\x27DELETE\x27','\x20\x20KEY\x20`sectionId`\x20(`sectionId`),','\x20\x20\x20\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\x20profileId\x20=\x20(SELECT\x20(@cnt\x20:=\x20@cnt\x20+\x201)\x20AS\x20rowNumber','\x20\x20INNER\x20JOIN\x20user_has_openchannel_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\x20\x20\x20\x20\x20\x20SUBSTRING_INDEX(SUBSTRING_INDEX(s.userId,\x20\x27,\x27,\x20t.n),\x20\x27,\x27,\x20-1)\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\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`description`\x20varchar(255)\x20DEFAULT\x20NULL,','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpSingleProfiles;','\x20\x20\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','CREATE\x20TABLE\x20`user_profile_has_sections`\x20(','\x20\x20SELECT\x20*','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tmpNormalizedUsers','Removed\x20column\x20%s\x20from\x20%s','CREATE\x20TABLE\x20tmpPermissions','\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20100\x20THEN\x20\x27Dashboards\x27','\x20\x20\x20\x20\x20\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)','TRUNCATE\x20TABLE\x20tmpPermissions;','UPDATE\x20tmpSections\x20s','\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\x20SUBSTRING_INDEX(SUBSTRING_INDEX(p.permissions,\x20\x27,\x27,\x20tally.n),\x20\x27,\x27,\x20-1)\x20permission,','\x20\x20\x20\x20\x20\x20\x20\x20r.sectionId\x20sectionId','UPDATE\x20tmpCustomResources\x20r,\x20tmpSections\x20s','\x20DROP\x20TABLE\x20IF\x20EXISTS\x20tally;','\x20\x20SET\x20r.sectionId\x20=\x20s.insertedId','\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\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=\x20303\x20THEN\x20\x27Contacts\x27','\x20\x20\x20\x20\x20\x20resourceId\x20text,','\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\x20WHERE\x20name\x20=\x20\x27DELETE_MIGRATION\x27;','\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=\x20409\x20THEN\x20\x27ChanSpies\x27','stringify','\x20\x20WHERE\x20u.id\x20=\x20t.userId;','INSERT\x20INTO\x20tmpNormalizedPermissions','\x20\x20END','\x20\x20SELECT\x20x.sectionId,\x20u.FaxQueueId,\x20x.userId','\x20\x20`crudPermissions`\x20varchar(255)\x20NOT\x20NULL\x20DEFAULT\x20\x27r\x27,','\x20\x20\x20\x20\x20\x20name\x20=\x20(SELECT','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpResources;',',(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\x20END','finally','\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','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201701\x20THEN\x20\x27jscripty\x27','then','STRING','\x20\x20resourceId\x20int(11),','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1401,\x201402,\x201403,\x201404,\x201405,\x201406,\x201407)\x20THEN\x20\x27DELETE\x27','\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','queryInterface','INSERT\x20INTO\x20tmpNormalizedSections','UPDATE\x20users\x20u,\x20tmpNormalizedPermissions\x20t','\x20\x20WHERE\x20role\x20=\x20\x27user\x27\x20and\x20permissions\x20is\x20not\x20null\x20and\x20permissions\x20<>\x20\x27\x27','\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\x20WHEN\x20sectionId\x20=\x20300\x20THEN\x20\x27DELETE\x27','\x20\x20\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,','CREATE\x20TABLE\x20tmpCustomResources','INSERT\x20INTO\x20tmpPermissions','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20END','sequelize',',(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\x20SELECT\x20x.sectionId,\x20u.ChatQueueId,\x20x.userId','\x20\x20\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,','\x20\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,',')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20702\x20THEN\x20\x27SmsAccounts\x27','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(801,\x20802,\x20810)\x20THEN\x20\x27Openchannel\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=\x201005\x20THEN\x20\x27Pauses\x27','INSERT\x20INTO\x20tally\x20(n)','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201003\x20THEN\x20\x27CustomDashboards\x27','\x20\x20FROM\x20tmpNormalizedSections','\x20\x20SELECT\x20x.sectionId,\x20u.MailAccountId,\x20x.userId','\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(701,\x20702,\x20710)\x20THEN\x20\x27Sms\x27','\x20\x20(','join','removeIndex','\x20\x20\x20\x20\x20\x20userId\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,','\x20\x20\x20\x20\x20\x20\x20\x20FROM\x20tally',',(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\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\x20WHEN\x20sectionId\x20=\x20101\x20THEN\x20\x27DELETE\x27','INSERT\x20INTO\x20tmpSharedProfiles','\x20\x20\x20\x20\x20\x20\x20\x20fp.profileId\x20profileId,','\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,','\x20\x20SET\x20u.userProfileId\x20=\x20f.profileId','query\x20%s','\x20\x20`type`\x20varchar(255)\x20NOT\x20NULL,','DELETE\x20t1\x20FROM\x20tmpSections\x20t1,\x20tmpCustomResources\x20t2','\x20\x20SELECT\x20cr.resourceId,\x20name,\x20s.insertedId,\x20s.sectionId','\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','INSERT\x20INTO\x20user_profile_has_resources\x20(name,\x20resourceId,\x20type,\x20createdAt,\x20updatedAt,\x20sectionId)','\x20\x20FROM\x20tmpSections','final','INSERT\x20INTO\x20tmpResources','DELETE\x20FROM\x20tmpSections','\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\x20\x20\x20\x20userIds\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=\x20201\x20THEN\x20\x27DELETE\x27','\x20\x20SET\x20insertedId\x20=\x20(SELECT\x20id','\x20\x20FROM\x20tmpSections;','\x20\x20PRIMARY\x20KEY\x20(`id`),','\x20\x20INNER\x20JOIN\x20user_has_mail_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId','\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\x20WHEN\x20sectionId\x20=\x20204\x20THEN\x20\x27Teams\x27','query','\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\x20\x20\x20\x20\x20\x20\x20r.type\x20type,','\x20\x20SELECT\x20userId,\x20permissions','\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\x20SELECT\x20x.sectionId,\x20u.MailQueueId,\x20x.userId','\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\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\x20WHEN\x20sectionId\x20in\x20(1101,\x201102,\x201103)\x20THEN\x20\x27CallySquare\x27','DROP\x20TABLE\x20IF\x20EXISTS\x20tmpFinalProfiles;','\x20\x20SELECT\x20GROUP_CONCAT(sectionId\x20ORDER\x20BY\x20sectionId),\x20userId','tail','\x20\x20\x20\x20userProfileId\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=\x201600\x20THEN\x20\x27Help\x27','\x20\x20WHERE\x20userId\x20NOT\x20IN\x20(SELECT\x20split.userId','\x20\x20\x20\x20userId\x20text','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201500\x20THEN\x20\x27DELETE\x27','\x20\x20GROUP\x20BY\x20userId;','\x20\x20WHERE\x20split.userId\x20IN\x20(SELECT\x20*\x20FROM','CREATE\x20TABLE\x20tmpFinalProfiles','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201008\x20THEN\x20\x27Tags\x27','UPDATE\x20tmpCustomResources','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201201\x20THEN\x20\x27Metrics\x27','\x20\x20SET\x20sectionId\x20=\x201003\x20WHERE\x20sectionId\x20>=\x20100000;','\x20\x20FROM\x20tmpSections\x20s','\x20\x20ORDER\x20BY\x20GROUP_CONCAT(id);','\x20\x20category\x20=\x20(SELECT','\x20\x20INNER\x20JOIN\x20user_has_chat_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId','CREATE\x20TABLE\x20`user_profiles`\x20(','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x20406\x20THEN\x20\x27Voicemails\x27','\x20\x20SET\x20name\x20=\x20(SELECT','\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=\x201103\x20THEN\x20\x27SquareProjects\x27','\x20\x20FROM\x20tmpGroupedPermissions','\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\x20INNER\x20JOIN\x20tmpExtractedResources\x20cr\x20ON\x20cr.userId\x20=\x20s.userId\x20AND\x20cr.sectionId\x20=\x20s.sectionId\x20AND\x20cr.resourceId\x20IS\x20NOT\x20NULL;','addColumn','\x20\x20FROM\x20users','\x20\x20SET\x20sectionId\x20=\x201801\x20WHERE\x20sectionId\x20between\x2088889\x20AND\x2099999;','\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=\x201510\x20THEN\x20\x27Realtime\x27','\x20\x20\x20\x20\x20\x20CASE','\x20\x20SELECT\x20*\x20FROM\x20tmpSharedProfiles'];(function(_0xdfd268,_0x229e36){const _0x2a21e0=function(_0x40fee0){while(--_0x40fee0){_0xdfd268['push'](_0xdfd268['shift']());}};_0x2a21e0(++_0x229e36);}(a964_0x229e,0x120));const a964_0x2a21=function(_0xdfd268,_0x229e36){_0xdfd268=_0xdfd268-0x0;let _0x2a21e0=a964_0x229e[_0xdfd268];return _0x2a21e0;};const _0x502eb3=a964_0x2a21;'use strict';const util=require(_0x502eb3('0xfe')),logger=require(_0x502eb3('0x80'))(_0x502eb3('0xaf')),Sequence=function(){};Sequence[_0x502eb3('0xe2')]['enqueue']=function(_0x40fee0){const _0x5a6337=_0x502eb3;this[_0x5a6337('0x21')]=this[_0x5a6337('0x21')]?this[_0x5a6337('0x21')][_0x5a6337('0x136')](_0x40fee0):_0x40fee0();};const Migration=function(_0x49ea86){const _0x253fe8=_0x502eb3;this[_0x253fe8('0x13e')]=_0x49ea86,this[_0x253fe8('0x92')]=new Sequence();};Migration[_0x502eb3('0xe2')]['changeColumn']=function(_0x5f271a,_0x461819,_0x2fa5ed){const _0x2a9164=_0x502eb3,_0x516dd1=this;this[_0x2a9164('0x92')][_0x2a9164('0x8d')](function(){const _0x19035d=_0x2a9164;return _0x516dd1[_0x19035d('0x13e')][_0x19035d('0x5f')](_0x5f271a,_0x461819,_0x2fa5ed)[_0x19035d('0x139')](function(){const _0x35c745=_0x19035d;logger[_0x35c745('0xbf')](_0x35c745('0xfa'),_0x461819,_0x5f271a);})[_0x19035d('0x99')](function(_0x347056){const _0x15aeb2=_0x19035d;logger['info'](JSON[_0x15aeb2('0x12c')](_0x347056));});});},Migration[_0x502eb3('0xe2')][_0x502eb3('0x3a')]=function(_0x32728a,_0x4f82ae,_0x4c30ff){const _0x1f5d27=_0x502eb3,_0x4fb9ce=this;this['sequence'][_0x1f5d27('0x8d')](function(){const _0x577496=_0x1f5d27;return _0x4fb9ce[_0x577496('0x13e')][_0x577496('0x3a')](_0x32728a,_0x4f82ae,_0x4c30ff)[_0x577496('0x139')](function(){const _0x588258=_0x577496;logger[_0x588258('0xbf')]('Added\x20column\x20%s\x20to\x20%s',_0x4f82ae,_0x32728a);})[_0x577496('0x99')](function(_0x385b9f){const _0x1f8107=_0x577496;logger[_0x1f8107('0xbf')](JSON[_0x1f8107('0x12c')](_0x385b9f));});});},Migration[_0x502eb3('0xe2')][_0x502eb3('0xb3')]=function(_0x4e46ec){const _0x9ef76f=_0x502eb3,_0x86946a=this;this[_0x9ef76f('0x92')]['enqueue'](function(){const _0x14fe26=_0x9ef76f;return _0x86946a[_0x14fe26('0x13e')][_0x14fe26('0xb3')](_0x4e46ec,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x4e46ec);})[_0x14fe26('0x99')](function(_0x42821d){const _0x204d70=_0x14fe26;logger[_0x204d70('0xbf')](JSON['stringify'](_0x42821d));});});},Migration[_0x502eb3('0xe2')][_0x502eb3('0xb7')]=function(_0x1a0239,_0x156a4b,_0xc15a5a){const _0x4a26c5=_0x502eb3,_0x59549a=this;this['sequence'][_0x4a26c5('0x8d')](function(){const _0x281569=_0x4a26c5;return _0x59549a[_0x281569('0x13e')]['addIndex'](_0x1a0239,_0x156a4b,{'indexName':_0xc15a5a})[_0x281569('0x139')](function(){const _0x1ef2c7=_0x281569;logger[_0x1ef2c7('0xbf')]('addIndex\x20%s\x20%s\x20%s',_0x1a0239,_0x156a4b[_0x1ef2c7('0x158')](','),_0xc15a5a);})[_0x281569('0x99')](function(_0x408878){const _0x588afc=_0x281569;logger[_0x588afc('0xbf')](JSON[_0x588afc('0x12c')](_0x408878));});});},Migration[_0x502eb3('0xe2')][_0x502eb3('0x159')]=function(_0x446316,_0x4019aa){const _0x2a248c=_0x502eb3,_0x288fe0=this;this[_0x2a248c('0x92')][_0x2a248c('0x8d')](function(){const _0x2d0b27=_0x2a248c;return _0x288fe0[_0x2d0b27('0x13e')][_0x2d0b27('0x159')](_0x446316,_0x4019aa)[_0x2d0b27('0x139')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x446316,_0x4019aa);})['catch'](function(_0x2f53a8){const _0x3f3dbb=_0x2d0b27;logger[_0x3f3dbb('0xbf')](JSON[_0x3f3dbb('0x12c')](_0x2f53a8));});});},Migration[_0x502eb3('0xe2')]['query']=function(_0x486bbd){const _0x475a21=_0x502eb3,_0x98d8ba=this;this[_0x475a21('0x92')][_0x475a21('0x8d')](function(){const _0x858505=_0x475a21;return _0x98d8ba[_0x858505('0x13e')][_0x858505('0x148')][_0x858505('0x16')](_0x486bbd)[_0x858505('0x139')](function(){const _0x590239=_0x858505;logger[_0x590239('0xbf')](_0x590239('0x3'),_0x486bbd);})['catch'](function(_0x1b2901){const _0xcd669a=_0x858505;logger[_0xcd669a('0xbf')](JSON[_0xcd669a('0x12c')](_0x1b2901));});});},Migration[_0x502eb3('0xe2')]['removeColumn']=function(_0x20c66e,_0x392fa4){const _0x3cf759=_0x502eb3,_0x387f57=this;this[_0x3cf759('0x92')][_0x3cf759('0x8d')](function(){const _0x567c2a=_0x3cf759;return _0x387f57['queryInterface'][_0x567c2a('0xfd')](_0x20c66e,_0x392fa4)[_0x567c2a('0x139')](function(){const _0x3d6454=_0x567c2a;logger[_0x3d6454('0xbf')](_0x3d6454('0x117'),_0x392fa4,_0x20c66e);})[_0x567c2a('0x99')](function(_0x242853){const _0x4f5179=_0x567c2a;logger[_0x4f5179('0xbf')](util[_0x4f5179('0xa4')](_0x242853,{'showHidden':![],'depth':null}));});});},Migration[_0x502eb3('0xe2')][_0x502eb3('0x84')]=function(_0x3ad18d,_0xbecb5a,_0x30fdc8){const _0x512e3d=_0x502eb3,_0x25e955=this;this['sequence'][_0x512e3d('0x8d')](function(){const _0x598d16=_0x512e3d;return _0x25e955['queryInterface'][_0x598d16('0x84')](_0x3ad18d,_0xbecb5a,_0x30fdc8)[_0x598d16('0x139')](function(){const _0x2527f9=_0x598d16;logger[_0x2527f9('0xbf')](_0x2527f9('0xd5'),_0xbecb5a,_0x30fdc8,_0x3ad18d);})[_0x598d16('0x99')](function(_0x23b683){const _0x4e062a=_0x598d16;logger['info'](util[_0x4e062a('0xa4')](_0x23b683,{'showHidden':![],'depth':null}));});});},Migration[_0x502eb3('0xe2')][_0x502eb3('0xa')]=function(_0x396970){const _0x2cf8ce=_0x502eb3;this['sequence'][_0x2cf8ce('0x8d')](function(){return _0x396970();});},module['exports']={'up':function(_0x285051,_0x182b0d){return new Promise(function(_0x34b20a){const _0x4ab040=a964_0x2a21,_0x14191e=new Migration(_0x285051);_0x14191e[_0x4ab040('0x3a')](_0x4ab040('0xce'),'reportId',{'type':_0x182b0d[_0x4ab040('0x6d')]}),_0x14191e[_0x4ab040('0x3a')](_0x4ab040('0xce'),_0x4ab040('0xcb'),{'type':_0x182b0d[_0x4ab040('0x13a')]}),_0x14191e[_0x4ab040('0x3a')](_0x4ab040('0xf7'),_0x4ab040('0xdc'),{'type':_0x182b0d[_0x4ab040('0x6d')]}),_0x14191e[_0x4ab040('0xfd')]('voice_voicemail',_0x4ab040('0x59')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x32')+_0x4ab040('0x14c')+'\x20\x20`name`\x20varchar(255)\x20NOT\x20NULL,'+_0x4ab040('0x131')+_0x4ab040('0x111')+_0x4ab040('0x86')+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+_0x4ab040('0x12')+_0x4ab040('0x4b')+_0x4ab040('0x14d')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x101')+_0x4ab040('0xcf')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xd1')+_0x4ab040('0xd8')+_0x4ab040('0x89')+_0x4ab040('0xfc')+_0x4ab040('0xf3')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x114')+_0x4ab040('0x14c')+_0x4ab040('0x5e')+_0x4ab040('0x107')+_0x4ab040('0xb0')+'\x20\x20`enabled`\x20tinyint(1)\x20DEFAULT\x20NULL,'+_0x4ab040('0x3d')+'\x20\x20`crudPermissions`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x4ab040('0x86')+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+_0x4ab040('0xa8')+_0x4ab040('0x12')+'\x20\x20KEY\x20`userProfileId`\x20(`userProfileId`),'+_0x4ab040('0x78')+'\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'+_0x4ab040('0x14d')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x10e')+_0x4ab040('0x14c')+_0x4ab040('0x5e')+'\x20\x20`resourceId`\x20int(11)\x20NOT\x20NULL,'+_0x4ab040('0x4')+_0x4ab040('0x86')+'\x20\x20`updatedAt`\x20datetime\x20NOT\x20NULL,'+'\x20\x20`sectionId`\x20int(11)\x20DEFAULT\x20NULL,'+_0x4ab040('0x12')+_0x4ab040('0x109')+_0x4ab040('0x62')+_0x4ab040('0x8b')+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x14191e[_0x4ab040('0x16')]('CREATE\x20TABLE\x20tally\x20('+_0x4ab040('0xd0')+');'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x152')+'SELECT\x20NULL\x20FROM'+_0x4ab040('0x64')+_0x4ab040('0x15d')+_0x4ab040('0x149')+_0x4ab040('0xea')+_0x4ab040('0x134')+';'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x118')+_0x4ab040('0x157')+_0x4ab040('0xe')+_0x4ab040('0x15b')+_0x4ab040('0x83')+_0x4ab040('0xec')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x146')+_0x4ab040('0x75')+_0x4ab040('0x3b')+_0x4ab040('0x141')+'\x20\x20ORDER\x20BY\x20id;'),_0x14191e['query'](_0x4ab040('0x87')+_0x4ab040('0x157')+_0x4ab040('0x35')+'\x20\x20\x20\x20userId\x20text,'+_0x4ab040('0xc1')+_0x4ab040('0xec')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x13f')+'\x20\x20SELECT\x20DISTINCT\x20permission,\x20userId,\x200'+_0x4ab040('0xb9')+_0x4ab040('0x11f')+'\x20\x20\x20\x20p.userIds\x20userId'+'\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'+'\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x14191e['query'](_0x4ab040('0x10f')+_0x4ab040('0x157')+_0x4ab040('0xee')+_0x4ab040('0x53')+'\x20\x20);'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x12e')+_0x4ab040('0x20')+_0x4ab040('0x154')+_0x4ab040('0x27')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x140')+_0x4ab040('0xc9')+_0x4ab040('0x12d')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x11c')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x146')+_0x4ab040('0x106')+_0x4ab040('0x3b')+_0x4ab040('0x141')+_0x4ab040('0xe8')+_0x4ab040('0x2f')),_0x14191e['query'](_0x4ab040('0x7e')+'\x20\x20('+_0x4ab040('0x35')+'\x20\x20\x20\x20userId\x20text,'+_0x4ab040('0xc1')+_0x4ab040('0xec')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x9e')+_0x4ab040('0xd7')+'\x20\x20FROM\x20(SELECT'+_0x4ab040('0x42')+_0x4ab040('0x10d')+_0x4ab040('0xbd')+_0x4ab040('0xdb')),_0x14191e[_0x4ab040('0x16')]('CREATE\x20TABLE\x20tmpExtractedResources\x20('+_0x4ab040('0x63')+_0x4ab040('0x13b')+'\x20\x20userId\x20int(11)'+'\x20\x20);'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xb5')+'\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId'+_0x4ab040('0x9b')+'\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x4ab040('0x56')+_0x4ab040('0xc7')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xb5')+_0x4ab040('0x14a')+_0x4ab040('0x9b')+_0x4ab040('0x31')+_0x4ab040('0x7b')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xb5')+_0x4ab040('0xeb')+_0x4ab040('0x9b')+'\x20\x20INNER\x20JOIN\x20user_has_chat_websites\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x4ab040('0xda')),_0x14191e[_0x4ab040('0x16')]('INSERT\x20INTO\x20tmpExtractedResources'+_0x4ab040('0x1b')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x4ab040('0xc3')+'\x20\x20WHERE\x20x.sectionId\x20=\x20601;'),_0x14191e['query'](_0x4ab040('0xb5')+_0x4ab040('0x155')+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+_0x4ab040('0x13')+_0x4ab040('0xd2')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xb5')+_0x4ab040('0xe7')+_0x4ab040('0x9b')+_0x4ab040('0xf0')+_0x4ab040('0xbc')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xb5')+'\x20\x20SELECT\x20x.sectionId,\x20u.SmsAccountId,\x20x.userId'+_0x4ab040('0x9b')+_0x4ab040('0x12a')+_0x4ab040('0x77')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xb5')+_0x4ab040('0x49')+_0x4ab040('0x9b')+_0x4ab040('0x10c')+_0x4ab040('0x4c')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xb5')+_0x4ab040('0xab')+_0x4ab040('0x9b')+_0x4ab040('0x76')+'\x20\x20WHERE\x20x.sectionId\x20=\x20802;'),_0x14191e['query'](_0x4ab040('0xb5')+_0x4ab040('0x130')+_0x4ab040('0x9b')+_0x4ab040('0xd9')+'\x20\x20WHERE\x20x.sectionId\x20=\x20901;'),_0x14191e['query'](_0x4ab040('0xb5')+'\x20\x20SELECT\x20x.sectionId,\x20u.FaxAccountId,\x20x.userId'+'\x20\x20FROM\x20tmpNormalizedUsers\x20x'+'\x20\x20INNER\x20JOIN\x20user_has_fax_accounts\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x4ab040('0xdf')),_0x14191e[_0x4ab040('0x16')]('INSERT\x20INTO\x20tmpExtractedResources'+'\x20\x20SELECT\x20x.sectionId,\x20u.SquareProjectId,\x20x.userId'+_0x4ab040('0x9b')+'\x20\x20INNER\x20JOIN\x20user_has_square_projects\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+'\x20\x20WHERE\x20x.sectionId\x20=\x201103;'),_0x14191e[_0x4ab040('0x16')]('INSERT\x20INTO\x20tmpExtractedResources'+'\x20\x20SELECT\x20x.sectionId,\x20u.VoiceQueueId,\x20x.userId'+_0x4ab040('0x9b')+'\x20\x20INNER\x20JOIN\x20user_has_voice_queues\x20u\x20ON\x20u.UserId\x20=\x20x.userId'+_0x4ab040('0x56')+_0x4ab040('0x65')),_0x14191e['query'](_0x4ab040('0x5a')+'\x20\x20('+_0x4ab040('0x15a')+'\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null'+_0x4ab040('0xec')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xc6')+_0x4ab040('0x19')+_0x4ab040('0xb9')+_0x4ab040('0x9f')+_0x4ab040('0x7d')+_0x4ab040('0x97')+_0x4ab040('0xdb')),_0x14191e[_0x4ab040('0x16')]('CREATE\x20TABLE\x20tmpSharedProfiles'+_0x4ab040('0x157')+_0x4ab040('0xe')+_0x4ab040('0x15b')+_0x4ab040('0x83')+_0x4ab040('0xec')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x160')+'\x20\x20SELECT\x20GROUP_CONCAT(userId),\x20permissions,\x20null'+'\x20\x20FROM\x20tmpGroupedPermissions'+_0x4ab040('0x24')+_0x4ab040('0x50')+_0x4ab040('0x110')+_0x4ab040('0x98')+_0x4ab040('0xa6')+_0x4ab040('0x9c')+_0x4ab040('0xca')+_0x4ab040('0x28')+'\x20\x20\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'+_0x4ab040('0x116')+_0x4ab040('0x8a')+_0x4ab040('0xf9')+_0x4ab040('0x61')+_0x4ab040('0xe8')+_0x4ab040('0x57')),_0x14191e[_0x4ab040('0x16')]('CREATE\x20TABLE\x20tmpSingleProfiles'+_0x4ab040('0x157')+_0x4ab040('0x15a')+'\x20\x20\x20\x20\x20\x20permissions\x20text\x20not\x20null,'+'\x20\x20\x20\x20\x20\x20profileId\x20int(11)'+'\x20\x20);'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xf8')+_0x4ab040('0x105')+_0x4ab040('0x37')+'\x20\x20WHERE\x20userId\x20IN\x20(SELECT\x20split.userId'+_0x4ab040('0x104')+_0x4ab040('0xc0')+'\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'+_0x4ab040('0x43')+_0x4ab040('0x28')+_0x4ab040('0x113')+_0x4ab040('0xdd')+_0x4ab040('0x10a')+_0x4ab040('0x69')+_0x4ab040('0x52')+_0x4ab040('0x47')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x29')+'\x20\x20('+_0x4ab040('0x15a')+_0x4ab040('0x15b')+_0x4ab040('0x83')+_0x4ab040('0xec')),_0x14191e['query'](_0x4ab040('0xba')+_0x4ab040('0x40')+'\x20\x20UNION'+_0x4ab040('0x5c')),_0x14191e[_0x4ab040('0x16')]('INSERT\x20INTO\x20user_profiles\x20(name,\x20crudPermissions,\x20createdAt,\x20updatedAt)'+_0x4ab040('0xe5')+_0x4ab040('0x8f')+_0x4ab040('0x7c')+_0x4ab040('0xd3')),_0x14191e['query'](_0x4ab040('0x4f')+_0x4ab040('0x10b')+_0x4ab040('0x103')+_0x4ab040('0x14')),_0x14191e[_0x4ab040('0x16')]('CREATE\x20TABLE\x20tmpSections'+_0x4ab040('0x157')+_0x4ab040('0x1')+_0x4ab040('0x125')+_0x4ab040('0x35')+'\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,'+_0x4ab040('0x93')+_0x4ab040('0x22')+_0x4ab040('0xb4')+_0x4ab040('0x25')+_0x4ab040('0xec')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x44')+_0x4ab040('0xb1')+_0x4ab040('0xb9')+_0x4ab040('0x0')+_0x4ab040('0xd6')+_0x4ab040('0x7a')+_0x4ab040('0x15c')+_0x4ab040('0x137')+_0x4ab040('0x67')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xd4')+'\x20\x20SET'+_0x4ab040('0x132')+_0x4ab040('0xad')+_0x4ab040('0x11a')+_0x4ab040('0x15f')+_0x4ab040('0x7f')+_0x4ab040('0xf')+_0x4ab040('0xa9')+_0x4ab040('0x94')+_0x4ab040('0x15')+_0x4ab040('0x143')+_0x4ab040('0x81')+_0x4ab040('0x17')+_0x4ab040('0x126')+'\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=\x20400\x20THEN\x20\x27DELETE\x27'+_0x4ab040('0x15e')+_0x4ab040('0xfb')+_0x4ab040('0x48')+_0x4ab040('0x11e')+_0x4ab040('0x4d')+_0x4ab040('0x33')+_0x4ab040('0x96')+_0x4ab040('0x68')+_0x4ab040('0x12b')+_0x4ab040('0x142')+_0x4ab040('0xe4')+'\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'+_0x4ab040('0x13d')+_0x4ab040('0xa1')+'\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'+_0x4ab040('0xe3')+_0x4ab040('0xef')+'\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=\x20603\x20THEN\x20\x27MailSubstatuses\x27'+_0x4ab040('0x102')+_0x4ab040('0xcc')+'\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'+_0x4ab040('0x14e')+_0x4ab040('0x4e')+'\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'+_0x4ab040('0x119')+_0x4ab040('0x9d')+_0x4ab040('0xb6')+_0x4ab040('0x54')+_0x4ab040('0x90')+_0x4ab040('0xd')+_0x4ab040('0x6e')+_0x4ab040('0x1a')+_0x4ab040('0xe6')+_0x4ab040('0xbb')+_0x4ab040('0x153')+_0x4ab040('0x45')+_0x4ab040('0x151')+_0x4ab040('0x85')+_0x4ab040('0xa0')+_0x4ab040('0x2a')+'\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=\x201010\x20THEN\x20\x27Triggers\x27'+_0x4ab040('0x7')+_0x4ab040('0x8c')+_0x4ab040('0xaa')+_0x4ab040('0x5b')+_0x4ab040('0xc8')+_0x4ab040('0x36')+_0x4ab040('0x108')+_0x4ab040('0x2c')+_0x4ab040('0x128')+'\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'+_0x4ab040('0xe0')+_0x4ab040('0x6c')+'\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'+_0x4ab040('0xf5')+_0x4ab040('0x9a')+'\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'+_0x4ab040('0x1d')+_0x4ab040('0x100')+_0x4ab040('0xe9')+_0x4ab040('0x13c')+_0x4ab040('0x26')+_0x4ab040('0x124')+_0x4ab040('0xc5')+_0x4ab040('0x3e')+_0x4ab040('0x23')+'\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'+_0x4ab040('0x60')+_0x4ab040('0x46')+_0x4ab040('0x79')+'\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27'+_0x4ab040('0x147')+_0x4ab040('0x8e')+_0x4ab040('0x30')+_0x4ab040('0x3f')+_0x4ab040('0xb8')+_0x4ab040('0x5d')+_0x4ab040('0x72')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(301,\x20302,\x20303,\x20304)\x20THEN\x20\x27ContactManager\x27'+_0x4ab040('0xa3')+'\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\x20WHEN\x20sectionId\x20in\x20(601,\x20602,\x20603,\x20610)\x20THEN\x20\x27Mail\x27'+_0x4ab040('0x156')+_0x4ab040('0x14f')+'\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\x20in\x20(1001,\x201002,\x201003,\x201004,\x201005,\x201006,\x201007,\x201008,\x201009,\x201010,\x201011,\x201012)\x20THEN\x20\x27Tools\x27'+_0x4ab040('0x1e')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20in\x20(1201,\x201202,\x201203)\x20THEN\x20\x27Analytics\x27'+_0x4ab040('0x6f')+_0x4ab040('0xf2')+_0x4ab040('0xe1')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20=\x201600\x20THEN\x20\x27Help\x27'+_0x4ab040('0x138')+'\x20\x20\x20\x20\x20\x20\x20\x20WHEN\x20sectionId\x20between\x2088889\x20AND\x2099999\x20THEN\x20\x27AppZone\x27'+'\x20\x20\x20\x20\x20\x20\x20\x20ELSE\x20\x27\x27'+_0x4ab040('0x135')+'\x20\x20);'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xc')+_0x4ab040('0x150')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x145')+'\x20\x20('+'\x20\x20\x20\x20name\x20varchar(255)\x20not\x20null,'+_0x4ab040('0x125')+_0x4ab040('0x35')+'\x20\x20\x20\x20enabled\x20tinyint\x20not\x20null,'+_0x4ab040('0x93')+_0x4ab040('0x22')+_0x4ab040('0xb4')+_0x4ab040('0x25')+_0x4ab040('0xec')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x51')+_0x4ab040('0x115')+_0x4ab040('0x9')+'\x20\x20WHERE\x20name\x20in\x20(\x27Plugins\x27,\x20\x27CustomDashboards\x27);'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x5')+'\x20\x20WHERE\x20t1.name\x20=\x20t2.name\x20AND\x20t1.userProfileId\x20=\x20t2.userProfileId\x20AND\x20t1.sectionId\x20>\x20t2.sectionId;'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xd4')+_0x4ab040('0x3c')),_0x14191e['query'](_0x4ab040('0xd4')+_0x4ab040('0x2d')),_0x14191e[_0x4ab040('0x16')]('UPDATE\x20tmpSections'+_0x4ab040('0xa2')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x2b')+'\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'+_0x4ab040('0x66')+_0x4ab040('0xc2')+_0x4ab040('0x55')+_0x4ab040('0xc4')),_0x14191e[_0x4ab040('0x16')]('INSERT\x20INTO\x20user_profile_has_sections\x20(name,\x20category,\x20sectionId,\x20enabled,\x20autoAssociation,\x20crudPermissions,\x20createdAt,\x20updatedAt,\x20userProfileId)'+_0x4ab040('0xf4')+_0x4ab040('0x11')),_0x14191e['query'](_0x4ab040('0x11d')+_0x4ab040('0x10')+_0x4ab040('0x95')+_0x4ab040('0xf6')),_0x14191e['query'](_0x4ab040('0x121')+_0x4ab040('0x123')+'\x20\x20WHERE\x20r.name\x20=\x20s.name\x20AND\x20r.userProfileId\x20=\x20s.userProfileId;'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xae')+_0x4ab040('0x157')+_0x4ab040('0x127')+_0x4ab040('0x14b')+_0x4ab040('0x144')+'\x20\x20\x20\x20\x20\x20sectionId\x20int(11)'+_0x4ab040('0xec')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xb')+_0x4ab040('0x6')+_0x4ab040('0x2e')+_0x4ab040('0x39')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x82')+_0x4ab040('0x157')+_0x4ab040('0x1')+'\x20\x20\x20\x20resourceId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20type\x20varchar(255)\x20not\x20null,'+'\x20\x20\x20\x20insertedSectionId\x20int(11)\x20not\x20null,'+'\x20\x20\x20\x20sectionId\x20int(11)'+_0x4ab040('0xec')),_0x14191e['query'](_0x4ab040('0x6b')+_0x4ab040('0xa5')+_0x4ab040('0xb9')+_0x4ab040('0x6a')+_0x4ab040('0x18')+_0x4ab040('0x71')+_0x4ab040('0x120')+_0x4ab040('0x15c')+_0x4ab040('0xbe')+'\x20\x20\x20\x20\x20\x20\x20\x20ORDER\x20BY\x20n)\x20AS\x20split;'),_0x14191e['query']('INSERT\x20INTO\x20tmpNormalizedResources'+_0x4ab040('0x58')+_0x4ab040('0xac')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x74')+_0x4ab040('0x34')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CASE'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20401\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20voice_queues\x20WHERE\x20id\x20=\x20x.resourceId\x20AND\x20type\x20=\x20\x27inbound\x27),\x27DELETE_MIGRATION\x27)'+_0x4ab040('0xde')+'\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\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20601\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_queues\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.sectionId\x20=\x20602\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20mail_accounts\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x4ab040('0x4a')+_0x4ab040('0x1c')+'\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)'+_0x4ab040('0x38')+'\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)'+_0x4ab040('0x70')+'\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)'+_0x4ab040('0x11b')+'\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27Plugins\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20plugins\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+'\x20\x20\x20\x20\x20\x20WHEN\x20x.type\x20=\x20\x27CustomDashboards\x27\x20THEN\x20COALESCE((SELECT\x20name\x20FROM\x20dashboards\x20WHERE\x20id\x20=\x20x.resourceId),\x27DELETE_MIGRATION\x27)'+_0x4ab040('0x12f')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20);'),_0x14191e[_0x4ab040('0x16')]('DELETE\x20FROM\x20tmpNormalizedResources'+_0x4ab040('0x129')),_0x14191e['query'](_0x4ab040('0x8')+'\x20\x20SELECT\x20name,\x20resourceId,\x20type,\x20now(),\x20now(),\x20insertedSectionId'+'\x20\x20FROM\x20tmpNormalizedResources;'),_0x14191e[_0x4ab040('0x16')]('UPDATE\x20users\x20u,\x20tmpFinalProfiles\x20f'+_0x4ab040('0x2')+_0x4ab040('0xb2')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x91')+'\x20\x20SET\x20u.userProfileId\x20=\x201'+_0x4ab040('0x73')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x122')),_0x14191e[_0x4ab040('0x16')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpPermissions;'),_0x14191e['query'](_0x4ab040('0x41')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xf1')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xff')),_0x14191e['query'](_0x4ab040('0xa7')),_0x14191e['query'](_0x4ab040('0x88')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x112')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x1f')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xcd')),_0x14191e[_0x4ab040('0x16')]('DROP\x20TABLE\x20IF\x20EXISTS\x20tmpCustomResources;'),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0x133')),_0x14191e[_0x4ab040('0x16')](_0x4ab040('0xed')),_0x14191e[_0x4ab040('0xa')](_0x34b20a);});},'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 8c62548..608332f 100644 --- a/server/migrations/2.2.0.js +++ b/server/migrations/2.2.0.js @@ -1 +1 @@ -const a965_0x4481=['Added\x20column\x20%s\x20to\x20%s','dropTable','clicksend','Removed\x20column\x20%s\x20from\x20%s','removeIndex','info','sequelize','exports','final','type','renameColumn','plivo','catch','query','join','table\x20dropped\x20%s','ENUM','stringify','queryInterface','sequence','phoneBarListenPort','tail','finally','removeColumn','util','removeIndex\x20%s\x20%s','inspect','intelepeer','enqueue','addColumn','clickatell','Changed\x20column\x20%s\x20in\x20table\x20%s','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','csc','changeColumn','twilio','prototype','addIndex'];(function(_0x564ed5,_0x448142){const _0x2f2464=function(_0x2267b1){while(--_0x2267b1){_0x564ed5['push'](_0x564ed5['shift']());}};_0x2f2464(++_0x448142);}(a965_0x4481,0x1ab));const a965_0x2f24=function(_0x564ed5,_0x448142){_0x564ed5=_0x564ed5-0x0;let _0x2f2464=a965_0x4481[_0x564ed5];return _0x2f2464;};const _0x3d6e3a=a965_0x2f24;'use strict';const util=require(_0x3d6e3a('0x1a')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x3d6e3a('0x0')][_0x3d6e3a('0x1e')]=function(_0x2267b1){const _0x5e629f=_0x3d6e3a;this[_0x5e629f('0x17')]=this[_0x5e629f('0x17')]?this[_0x5e629f('0x17')][_0x5e629f('0x18')](_0x2267b1):_0x2267b1();};const Migration=function(_0x334486){const _0x4ab811=_0x3d6e3a;this[_0x4ab811('0x14')]=_0x334486,this[_0x4ab811('0x15')]=new Sequence();};Migration[_0x3d6e3a('0x0')][_0x3d6e3a('0x25')]=function(_0x3695a8,_0x1ccda9,_0x42eeda){const _0x1895a8=_0x3d6e3a,_0x34000f=this;this['sequence'][_0x1895a8('0x1e')](function(){const _0x309f48=_0x1895a8;return _0x34000f['queryInterface'][_0x309f48('0x25')](_0x3695a8,_0x1ccda9,_0x42eeda)[_0x309f48('0x22')](function(){const _0x5c1b38=_0x309f48;logger[_0x5c1b38('0x7')](_0x5c1b38('0x21'),_0x1ccda9,_0x3695a8);})[_0x309f48('0xe')](function(_0x524dae){const _0x4947f2=_0x309f48;logger[_0x4947f2('0x7')](JSON['stringify'](_0x524dae));});});},Migration[_0x3d6e3a('0x0')][_0x3d6e3a('0x1f')]=function(_0x4d3b5a,_0x3645ce,_0x44839d){const _0x4ca04e=_0x3d6e3a,_0xa829c8=this;this[_0x4ca04e('0x15')][_0x4ca04e('0x1e')](function(){const _0xe84998=_0x4ca04e;return _0xa829c8['queryInterface'][_0xe84998('0x1f')](_0x4d3b5a,_0x3645ce,_0x44839d)['then'](function(){const _0x1d1505=_0xe84998;logger[_0x1d1505('0x7')](_0x1d1505('0x2'),_0x3645ce,_0x4d3b5a);})[_0xe84998('0xe')](function(_0x346d98){const _0x16571c=_0xe84998;logger[_0x16571c('0x7')](JSON[_0x16571c('0x13')](_0x346d98));});});},Migration[_0x3d6e3a('0x0')][_0x3d6e3a('0x3')]=function(_0x294020){const _0x123c9c=_0x3d6e3a,_0x41b655=this;this['sequence'][_0x123c9c('0x1e')](function(){const _0x8097dd=_0x123c9c;return _0x41b655['queryInterface'][_0x8097dd('0x3')](_0x294020,{'force':!![]})[_0x8097dd('0x22')](function(){const _0x5cd4aa=_0x8097dd;logger[_0x5cd4aa('0x7')](_0x5cd4aa('0x11'),_0x294020);})[_0x8097dd('0xe')](function(_0x421c5a){const _0x3c7df3=_0x8097dd;logger[_0x3c7df3('0x7')](JSON[_0x3c7df3('0x13')](_0x421c5a));});});},Migration[_0x3d6e3a('0x0')][_0x3d6e3a('0x1')]=function(_0x4e4fcb,_0x5b6e77,_0xb3dab5){const _0xb8ed3e=_0x3d6e3a,_0x3f6067=this;this[_0xb8ed3e('0x15')]['enqueue'](function(){const _0x182583=_0xb8ed3e;return _0x3f6067['queryInterface']['addIndex'](_0x4e4fcb,_0x5b6e77,{'indexName':_0xb3dab5})[_0x182583('0x22')](function(){const _0x58e3cd=_0x182583;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x4e4fcb,_0x5b6e77[_0x58e3cd('0x10')](','),_0xb3dab5);})[_0x182583('0xe')](function(_0x1ca570){const _0x21771d=_0x182583;logger[_0x21771d('0x7')](JSON['stringify'](_0x1ca570));});});},Migration[_0x3d6e3a('0x0')][_0x3d6e3a('0x6')]=function(_0x2938cc,_0x6077ba){const _0x4c0f59=_0x3d6e3a,_0xadb109=this;this['sequence'][_0x4c0f59('0x1e')](function(){const _0x4b8e67=_0x4c0f59;return _0xadb109[_0x4b8e67('0x14')]['removeIndex'](_0x2938cc,_0x6077ba)[_0x4b8e67('0x22')](function(){const _0x3cc88b=_0x4b8e67;logger[_0x3cc88b('0x7')](_0x3cc88b('0x1b'),_0x2938cc,_0x6077ba);})[_0x4b8e67('0xe')](function(_0x1cc66c){const _0x264e55=_0x4b8e67;logger['info'](JSON[_0x264e55('0x13')](_0x1cc66c));});});},Migration[_0x3d6e3a('0x0')][_0x3d6e3a('0xf')]=function(_0x1a59be){const _0x507bbd=_0x3d6e3a,_0x39ac48=this;this[_0x507bbd('0x15')][_0x507bbd('0x1e')](function(){const _0x11d939=_0x507bbd;return _0x39ac48[_0x11d939('0x14')][_0x11d939('0x8')][_0x11d939('0xf')](_0x1a59be)[_0x11d939('0x22')](function(){const _0x403807=_0x11d939;logger[_0x403807('0x7')]('query\x20%s',_0x1a59be);})[_0x11d939('0xe')](function(_0x30fcdc){const _0x535706=_0x11d939;logger[_0x535706('0x7')](JSON[_0x535706('0x13')](_0x30fcdc));});});},Migration[_0x3d6e3a('0x0')]['removeColumn']=function(_0x39d6c2,_0x3b7630){const _0x10ee34=_0x3d6e3a,_0x4d0fc0=this;this[_0x10ee34('0x15')][_0x10ee34('0x1e')](function(){const _0x24ad19=_0x10ee34;return _0x4d0fc0[_0x24ad19('0x14')][_0x24ad19('0x19')](_0x39d6c2,_0x3b7630)['then'](function(){const _0x98de6=_0x24ad19;logger[_0x98de6('0x7')](_0x98de6('0x5'),_0x3b7630,_0x39d6c2);})[_0x24ad19('0xe')](function(_0x6ea242){const _0x2bef9a=_0x24ad19;logger[_0x2bef9a('0x7')](util[_0x2bef9a('0x1c')](_0x6ea242,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3d6e3a('0xc')]=function(_0x1eacb9,_0x2b3633,_0x506670){const _0x1dd19b=_0x3d6e3a,_0xca9880=this;this[_0x1dd19b('0x15')]['enqueue'](function(){const _0x2e95a0=_0x1dd19b;return _0xca9880[_0x2e95a0('0x14')][_0x2e95a0('0xc')](_0x1eacb9,_0x2b3633,_0x506670)['then'](function(){const _0x2ff1f5=_0x2e95a0;logger['info'](_0x2ff1f5('0x23'),_0x2b3633,_0x506670,_0x1eacb9);})[_0x2e95a0('0xe')](function(_0x476e20){const _0x47dcc8=_0x2e95a0;logger[_0x47dcc8('0x7')](util[_0x47dcc8('0x1c')](_0x476e20,{'showHidden':![],'depth':null}));});});},Migration[_0x3d6e3a('0x0')][_0x3d6e3a('0xa')]=function(_0x36bf42){const _0x352f15=_0x3d6e3a;this[_0x352f15('0x15')]['enqueue'](function(){return _0x36bf42();});},module[_0x3d6e3a('0x9')]={'up':function(_0x2b85a3,_0x56cfe7){return new Promise(function(_0x436623){const _0x35db6f=a965_0x2f24,_0x473615=new Migration(_0x2b85a3);_0x473615['changeColumn']('sms_accounts',_0x35db6f('0xb'),{'type':_0x56cfe7[_0x35db6f('0x12')](_0x35db6f('0x26'),'skebby','connectel',_0x35db6f('0x4'),_0x35db6f('0xd'),_0x35db6f('0x20'),_0x35db6f('0x24'),'infobip',_0x35db6f('0x1d'))}),_0x473615['changeColumn']('users',_0x35db6f('0x16'),{'type':_0x56cfe7['INTEGER'](0x5),'defaultValue':0x1428}),_0x473615[_0x35db6f('0xa')](_0x436623);});},'down':function(){}}; \ No newline at end of file +const a965_0x57be=['dropTable','exports','changeColumn','migration','csc','inspect','query','final','finally','connectel','clicksend','prototype','removeColumn','plivo','tail','../config/logger','addIndex\x20%s\x20%s\x20%s','stringify','skebby','queryInterface','ENUM','sequence','table\x20dropped\x20%s','enqueue','sequelize','util','then','addIndex','catch','phoneBarListenPort','addColumn','removeIndex','info','sms_accounts','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','type','Changed\x20column\x20%s\x20in\x20table\x20%s','twilio','removeIndex\x20%s\x20%s'];(function(_0x123f3e,_0x57be2b){const _0x5829d0=function(_0x226f05){while(--_0x226f05){_0x123f3e['push'](_0x123f3e['shift']());}};_0x5829d0(++_0x57be2b);}(a965_0x57be,0x8d));const a965_0x5829=function(_0x123f3e,_0x57be2b){_0x123f3e=_0x123f3e-0x0;let _0x5829d0=a965_0x57be[_0x123f3e];return _0x5829d0;};const _0x1928e8=a965_0x5829;'use strict';const util=require(_0x1928e8('0x7')),logger=require(_0x1928e8('0x26'))(_0x1928e8('0x1a')),Sequence=function(){};Sequence['prototype'][_0x1928e8('0x5')]=function(_0x226f05){const _0x5a6d74=_0x1928e8;this['tail']=this[_0x5a6d74('0x25')]?this[_0x5a6d74('0x25')][_0x5a6d74('0x1f')](_0x226f05):_0x226f05();};const Migration=function(_0x44cf36){const _0x3b6695=_0x1928e8;this[_0x3b6695('0x1')]=_0x44cf36,this['sequence']=new Sequence();};Migration['prototype'][_0x1928e8('0x19')]=function(_0x1525dd,_0x932748,_0x276317){const _0x51b4e4=_0x1928e8,_0x3fcc20=this;this[_0x51b4e4('0x3')][_0x51b4e4('0x5')](function(){const _0x38c396=_0x51b4e4;return _0x3fcc20[_0x38c396('0x1')][_0x38c396('0x19')](_0x1525dd,_0x932748,_0x276317)[_0x38c396('0x8')](function(){const _0x34e15e=_0x38c396;logger[_0x34e15e('0xe')](_0x34e15e('0x14'),_0x932748,_0x1525dd);})[_0x38c396('0xa')](function(_0x3fc40f){const _0x14f16c=_0x38c396;logger[_0x14f16c('0xe')](JSON[_0x14f16c('0x28')](_0x3fc40f));});});},Migration['prototype'][_0x1928e8('0xc')]=function(_0x4648d7,_0x4465ff,_0x1b9edd){const _0x50c2c9=_0x1928e8,_0x4dddef=this;this[_0x50c2c9('0x3')][_0x50c2c9('0x5')](function(){const _0x389f31=_0x50c2c9;return _0x4dddef[_0x389f31('0x1')][_0x389f31('0xc')](_0x4648d7,_0x4465ff,_0x1b9edd)[_0x389f31('0x8')](function(){const _0x409162=_0x389f31;logger['info'](_0x409162('0x11'),_0x4465ff,_0x4648d7);})[_0x389f31('0xa')](function(_0x1480e4){const _0x35bc18=_0x389f31;logger[_0x35bc18('0xe')](JSON[_0x35bc18('0x28')](_0x1480e4));});});},Migration['prototype']['dropTable']=function(_0x1773f0){const _0x210cd5=_0x1928e8,_0x14d348=this;this[_0x210cd5('0x3')][_0x210cd5('0x5')](function(){const _0x831857=_0x210cd5;return _0x14d348['queryInterface'][_0x831857('0x17')](_0x1773f0,{'force':!![]})['then'](function(){const _0x30b10b=_0x831857;logger[_0x30b10b('0xe')](_0x30b10b('0x4'),_0x1773f0);})[_0x831857('0xa')](function(_0x3fea43){logger['info'](JSON['stringify'](_0x3fea43));});});},Migration['prototype']['addIndex']=function(_0x111091,_0x11117b,_0x2963e7){const _0x3ede86=_0x1928e8,_0x343a0e=this;this['sequence'][_0x3ede86('0x5')](function(){const _0x55c6d=_0x3ede86;return _0x343a0e[_0x55c6d('0x1')][_0x55c6d('0x9')](_0x111091,_0x11117b,{'indexName':_0x2963e7})['then'](function(){const _0x1174ba=_0x55c6d;logger['info'](_0x1174ba('0x27'),_0x111091,_0x11117b['join'](','),_0x2963e7);})[_0x55c6d('0xa')](function(_0x563294){const _0x1fc7bd=_0x55c6d;logger[_0x1fc7bd('0xe')](JSON['stringify'](_0x563294));});});},Migration[_0x1928e8('0x22')][_0x1928e8('0xd')]=function(_0x21058b,_0x4c7bcd){const _0x5cb23b=_0x1928e8,_0x43d4d9=this;this[_0x5cb23b('0x3')][_0x5cb23b('0x5')](function(){const _0x3dd457=_0x5cb23b;return _0x43d4d9['queryInterface']['removeIndex'](_0x21058b,_0x4c7bcd)[_0x3dd457('0x8')](function(){const _0x5d70a7=_0x3dd457;logger[_0x5d70a7('0xe')](_0x5d70a7('0x16'),_0x21058b,_0x4c7bcd);})['catch'](function(_0x2408d1){const _0x1c555a=_0x3dd457;logger[_0x1c555a('0xe')](JSON[_0x1c555a('0x28')](_0x2408d1));});});},Migration[_0x1928e8('0x22')][_0x1928e8('0x1d')]=function(_0x1372e3){const _0x20462f=_0x1928e8,_0xe2c6ee=this;this['sequence'][_0x20462f('0x5')](function(){const _0x585d7e=_0x20462f;return _0xe2c6ee[_0x585d7e('0x1')][_0x585d7e('0x6')][_0x585d7e('0x1d')](_0x1372e3)[_0x585d7e('0x8')](function(){const _0x1bd5d1=_0x585d7e;logger[_0x1bd5d1('0xe')]('query\x20%s',_0x1372e3);})['catch'](function(_0x29920d){const _0x2296fd=_0x585d7e;logger['info'](JSON[_0x2296fd('0x28')](_0x29920d));});});},Migration['prototype'][_0x1928e8('0x23')]=function(_0x1c29b4,_0x4600d4){const _0x28514d=_0x1928e8,_0x304abd=this;this[_0x28514d('0x3')]['enqueue'](function(){const _0x38be50=_0x28514d;return _0x304abd[_0x38be50('0x1')][_0x38be50('0x23')](_0x1c29b4,_0x4600d4)[_0x38be50('0x8')](function(){const _0x4b867e=_0x38be50;logger[_0x4b867e('0xe')](_0x4b867e('0x10'),_0x4600d4,_0x1c29b4);})['catch'](function(_0x11cc0c){const _0x28a59c=_0x38be50;logger[_0x28a59c('0xe')](util['inspect'](_0x11cc0c,{'showHidden':![],'depth':null}));});});},Migration[_0x1928e8('0x22')]['renameColumn']=function(_0x164a3e,_0x2071c3,_0x5b4bdd){const _0x4a36e0=_0x1928e8,_0x532f30=this;this[_0x4a36e0('0x3')][_0x4a36e0('0x5')](function(){const _0x25b817=_0x4a36e0;return _0x532f30[_0x25b817('0x1')]['renameColumn'](_0x164a3e,_0x2071c3,_0x5b4bdd)[_0x25b817('0x8')](function(){const _0x2a6678=_0x25b817;logger[_0x2a6678('0xe')](_0x2a6678('0x12'),_0x2071c3,_0x5b4bdd,_0x164a3e);})[_0x25b817('0xa')](function(_0x114f98){const _0x343560=_0x25b817;logger[_0x343560('0xe')](util[_0x343560('0x1c')](_0x114f98,{'showHidden':![],'depth':null}));});});},Migration[_0x1928e8('0x22')][_0x1928e8('0x1e')]=function(_0x1e2305){const _0x42dd23=_0x1928e8;this[_0x42dd23('0x3')][_0x42dd23('0x5')](function(){return _0x1e2305();});},module[_0x1928e8('0x18')]={'up':function(_0x5d6201,_0x467f67){return new Promise(function(_0x5bca3a){const _0x3825e2=a965_0x5829,_0x30529f=new Migration(_0x5d6201);_0x30529f['changeColumn'](_0x3825e2('0xf'),_0x3825e2('0x13'),{'type':_0x467f67[_0x3825e2('0x2')](_0x3825e2('0x15'),_0x3825e2('0x0'),_0x3825e2('0x20'),_0x3825e2('0x21'),_0x3825e2('0x24'),'clickatell',_0x3825e2('0x1b'),'infobip','intelepeer')}),_0x30529f[_0x3825e2('0x19')]('users',_0x3825e2('0xb'),{'type':_0x467f67['INTEGER'](0x5),'defaultValue':0x1428}),_0x30529f[_0x3825e2('0x1e')](_0x5bca3a);});},'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 6f01f09..007b57b 100644 --- a/server/migrations/2.2.1.js +++ b/server/migrations/2.2.1.js @@ -1 +1 @@ -const a966_0x4f14=['query','exports','removeColumn','queryInterface','query\x20%s','../config/logger','removeIndex','prototype','sequelize','enqueue','dropTable','addColumn','sequence','Removed\x20column\x20%s\x20from\x20%s','migration','stringify','addIndex','final','catch','table\x20dropped\x20%s','info','changeColumn','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','inspect','util','then','join','Added\x20column\x20%s\x20to\x20%s','renameColumn','tail'];(function(_0x569398,_0x4f147f){const _0x253abf=function(_0x5500e7){while(--_0x5500e7){_0x569398['push'](_0x569398['shift']());}};_0x253abf(++_0x4f147f);}(a966_0x4f14,0x13a));const a966_0x253a=function(_0x569398,_0x4f147f){_0x569398=_0x569398-0x0;let _0x253abf=a966_0x4f14[_0x569398];return _0x253abf;};const _0x572c75=a966_0x253a;'use strict';const util=require(_0x572c75('0x15')),logger=require(_0x572c75('0x1'))(_0x572c75('0xa')),Sequence=function(){};Sequence['prototype'][_0x572c75('0x5')]=function(_0x5500e7){const _0x1612d8=_0x572c75;this[_0x1612d8('0x1a')]=this['tail']?this[_0x1612d8('0x1a')][_0x1612d8('0x12')](_0x5500e7):_0x5500e7();};const Migration=function(_0x436122){const _0x3816d9=_0x572c75;this['queryInterface']=_0x436122,this[_0x3816d9('0x8')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x46fcf3,_0xa96038,_0x5e3ad7){const _0x11b716=_0x572c75,_0x250a24=this;this[_0x11b716('0x8')][_0x11b716('0x5')](function(){const _0x29a629=_0x11b716;return _0x250a24['queryInterface'][_0x29a629('0x11')](_0x46fcf3,_0xa96038,_0x5e3ad7)[_0x29a629('0x16')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xa96038,_0x46fcf3);})[_0x29a629('0xe')](function(_0x451698){const _0x115c32=_0x29a629;logger[_0x115c32('0x10')](JSON[_0x115c32('0xb')](_0x451698));});});},Migration[_0x572c75('0x3')][_0x572c75('0x7')]=function(_0x5dadca,_0x487b9b,_0xf2809f){const _0x33e030=_0x572c75,_0x388810=this;this[_0x33e030('0x8')][_0x33e030('0x5')](function(){const _0x4f09fa=_0x33e030;return _0x388810[_0x4f09fa('0x1e')]['addColumn'](_0x5dadca,_0x487b9b,_0xf2809f)[_0x4f09fa('0x16')](function(){const _0x811dfa=_0x4f09fa;logger['info'](_0x811dfa('0x18'),_0x487b9b,_0x5dadca);})[_0x4f09fa('0xe')](function(_0x42b7c){const _0x58f14d=_0x4f09fa;logger[_0x58f14d('0x10')](JSON[_0x58f14d('0xb')](_0x42b7c));});});},Migration[_0x572c75('0x3')][_0x572c75('0x6')]=function(_0x53088e){const _0x4fc3ca=_0x572c75,_0x42325d=this;this[_0x4fc3ca('0x8')][_0x4fc3ca('0x5')](function(){const _0x5ae85b=_0x4fc3ca;return _0x42325d[_0x5ae85b('0x1e')][_0x5ae85b('0x6')](_0x53088e,{'force':!![]})[_0x5ae85b('0x16')](function(){const _0x47f8f9=_0x5ae85b;logger['info'](_0x47f8f9('0xf'),_0x53088e);})[_0x5ae85b('0xe')](function(_0x3e5ff1){const _0x360597=_0x5ae85b;logger['info'](JSON[_0x360597('0xb')](_0x3e5ff1));});});},Migration['prototype'][_0x572c75('0xc')]=function(_0x12b4a6,_0x1eacd9,_0x4b54a0){const _0x11d2b6=_0x572c75,_0x811bd=this;this[_0x11d2b6('0x8')][_0x11d2b6('0x5')](function(){const _0x4d37bd=_0x11d2b6;return _0x811bd['queryInterface'][_0x4d37bd('0xc')](_0x12b4a6,_0x1eacd9,{'indexName':_0x4b54a0})[_0x4d37bd('0x16')](function(){const _0x28fa12=_0x4d37bd;logger[_0x28fa12('0x10')]('addIndex\x20%s\x20%s\x20%s',_0x12b4a6,_0x1eacd9[_0x28fa12('0x17')](','),_0x4b54a0);})['catch'](function(_0x370522){const _0xd39a59=_0x4d37bd;logger[_0xd39a59('0x10')](JSON['stringify'](_0x370522));});});},Migration[_0x572c75('0x3')][_0x572c75('0x2')]=function(_0x33c983,_0x45d35a){const _0x8093e9=_0x572c75,_0x35c4e6=this;this['sequence'][_0x8093e9('0x5')](function(){const _0x9c75c9=_0x8093e9;return _0x35c4e6[_0x9c75c9('0x1e')][_0x9c75c9('0x2')](_0x33c983,_0x45d35a)['then'](function(){logger['info']('removeIndex\x20%s\x20%s',_0x33c983,_0x45d35a);})['catch'](function(_0x2b8ef7){logger['info'](JSON['stringify'](_0x2b8ef7));});});},Migration[_0x572c75('0x3')]['query']=function(_0x5b2221){const _0x3f7c6=_0x572c75,_0x5060d7=this;this['sequence'][_0x3f7c6('0x5')](function(){const _0x1066a7=_0x3f7c6;return _0x5060d7[_0x1066a7('0x1e')][_0x1066a7('0x4')][_0x1066a7('0x1b')](_0x5b2221)['then'](function(){const _0x2d86ba=_0x1066a7;logger[_0x2d86ba('0x10')](_0x2d86ba('0x0'),_0x5b2221);})[_0x1066a7('0xe')](function(_0x54420f){const _0xf1b3dc=_0x1066a7;logger[_0xf1b3dc('0x10')](JSON[_0xf1b3dc('0xb')](_0x54420f));});});},Migration[_0x572c75('0x3')][_0x572c75('0x1d')]=function(_0x48b933,_0x14ea54){const _0x1a0f42=_0x572c75,_0xcce72e=this;this[_0x1a0f42('0x8')][_0x1a0f42('0x5')](function(){const _0x5207bc=_0x1a0f42;return _0xcce72e['queryInterface'][_0x5207bc('0x1d')](_0x48b933,_0x14ea54)[_0x5207bc('0x16')](function(){const _0x3b94bf=_0x5207bc;logger[_0x3b94bf('0x10')](_0x3b94bf('0x9'),_0x14ea54,_0x48b933);})[_0x5207bc('0xe')](function(_0x5c9375){const _0x5bcbf8=_0x5207bc;logger[_0x5bcbf8('0x10')](util[_0x5bcbf8('0x14')](_0x5c9375,{'showHidden':![],'depth':null}));});});},Migration[_0x572c75('0x3')][_0x572c75('0x19')]=function(_0x5327ba,_0x31dfc9,_0x5b5abf){const _0x4fe074=_0x572c75,_0x4bf392=this;this['sequence'][_0x4fe074('0x5')](function(){const _0x175542=_0x4fe074;return _0x4bf392[_0x175542('0x1e')]['renameColumn'](_0x5327ba,_0x31dfc9,_0x5b5abf)[_0x175542('0x16')](function(){const _0x30460d=_0x175542;logger[_0x30460d('0x10')](_0x30460d('0x13'),_0x31dfc9,_0x5b5abf,_0x5327ba);})['catch'](function(_0x104d5c){const _0xd4dc9b=_0x175542;logger['info'](util[_0xd4dc9b('0x14')](_0x104d5c,{'showHidden':![],'depth':null}));});});},Migration[_0x572c75('0x3')][_0x572c75('0xd')]=function(_0x2db6f2){this['sequence']['enqueue'](function(){return _0x2db6f2();});},module[_0x572c75('0x1c')]={'up':function(_0x2c04f4){return new Promise(function(_0x4704a0){const _0x721eb=a966_0x253a,_0x38d646=new Migration(_0x2c04f4);_0x38d646[_0x721eb('0xd')](_0x4704a0);});},'down':function(){}}; \ No newline at end of file +const a966_0x1f46=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','catch','exports','final','tail','removeIndex','Added\x20column\x20%s\x20to\x20%s','../config/logger','queryInterface','inspect','renameColumn','sequelize','migration','dropTable','stringify','addIndex\x20%s\x20%s\x20%s','util','prototype','addIndex','query\x20%s','info','removeColumn','changeColumn','enqueue','then','query','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0xfec16e,_0x1f4614){const _0x274b63=function(_0x561307){while(--_0x561307){_0xfec16e['push'](_0xfec16e['shift']());}};_0x274b63(++_0x1f4614);}(a966_0x1f46,0x100));const a966_0x274b=function(_0xfec16e,_0x1f4614){_0xfec16e=_0xfec16e-0x0;let _0x274b63=a966_0x1f46[_0xfec16e];return _0x274b63;};const _0x240a4b=a966_0x274b;'use strict';const util=require(_0x240a4b('0x16')),logger=require(_0x240a4b('0xd'))(_0x240a4b('0x12')),Sequence=function(){};Sequence[_0x240a4b('0x17')][_0x240a4b('0x0')]=function(_0x561307){const _0x2995ca=_0x240a4b;this[_0x2995ca('0xa')]=this['tail']?this[_0x2995ca('0xa')]['finally'](_0x561307):_0x561307();};const Migration=function(_0x5e8009){this['queryInterface']=_0x5e8009,this['sequence']=new Sequence();};Migration[_0x240a4b('0x17')][_0x240a4b('0x1c')]=function(_0x4ff55f,_0x176eb9,_0xf77bcd){const _0x1dafb5=_0x240a4b,_0x2e6b10=this;this['sequence'][_0x1dafb5('0x0')](function(){const _0x29f2f9=_0x1dafb5;return _0x2e6b10['queryInterface'][_0x29f2f9('0x1c')](_0x4ff55f,_0x176eb9,_0xf77bcd)['then'](function(){const _0x65d58a=_0x29f2f9;logger['info'](_0x65d58a('0x4'),_0x176eb9,_0x4ff55f);})[_0x29f2f9('0x7')](function(_0x1d0677){const _0x11efbf=_0x29f2f9;logger[_0x11efbf('0x1a')](JSON[_0x11efbf('0x14')](_0x1d0677));});});},Migration[_0x240a4b('0x17')]['addColumn']=function(_0x2bd568,_0x638cd8,_0x419e97){const _0x24ac5e=_0x240a4b,_0x584813=this;this[_0x24ac5e('0x3')]['enqueue'](function(){const _0x4f2582=_0x24ac5e;return _0x584813[_0x4f2582('0xe')]['addColumn'](_0x2bd568,_0x638cd8,_0x419e97)[_0x4f2582('0x1')](function(){const _0x28f1d4=_0x4f2582;logger[_0x28f1d4('0x1a')](_0x28f1d4('0xc'),_0x638cd8,_0x2bd568);})[_0x4f2582('0x7')](function(_0x290757){const _0x172d4e=_0x4f2582;logger[_0x172d4e('0x1a')](JSON[_0x172d4e('0x14')](_0x290757));});});},Migration[_0x240a4b('0x17')][_0x240a4b('0x13')]=function(_0x273d12){const _0x3c3d9a=_0x240a4b,_0x5c7e61=this;this[_0x3c3d9a('0x3')][_0x3c3d9a('0x0')](function(){const _0x138b2f=_0x3c3d9a;return _0x5c7e61[_0x138b2f('0xe')]['dropTable'](_0x273d12,{'force':!![]})['then'](function(){const _0x4aeb98=_0x138b2f;logger[_0x4aeb98('0x1a')]('table\x20dropped\x20%s',_0x273d12);})[_0x138b2f('0x7')](function(_0x13af6e){const _0x3b0ace=_0x138b2f;logger[_0x3b0ace('0x1a')](JSON[_0x3b0ace('0x14')](_0x13af6e));});});},Migration['prototype']['addIndex']=function(_0xec1fb7,_0xfc3c0a,_0x3a23c6){const _0x1a0ae3=this;this['sequence']['enqueue'](function(){const _0xe77265=a966_0x274b;return _0x1a0ae3[_0xe77265('0xe')][_0xe77265('0x18')](_0xec1fb7,_0xfc3c0a,{'indexName':_0x3a23c6})[_0xe77265('0x1')](function(){const _0xd9e419=_0xe77265;logger['info'](_0xd9e419('0x15'),_0xec1fb7,_0xfc3c0a['join'](','),_0x3a23c6);})[_0xe77265('0x7')](function(_0x34bdf7){const _0x1be051=_0xe77265;logger[_0x1be051('0x1a')](JSON[_0x1be051('0x14')](_0x34bdf7));});});},Migration[_0x240a4b('0x17')][_0x240a4b('0xb')]=function(_0x54777e,_0x50d1b8){const _0xdbb78e=_0x240a4b,_0x377d73=this;this[_0xdbb78e('0x3')]['enqueue'](function(){const _0x42e16d=_0xdbb78e;return _0x377d73['queryInterface'][_0x42e16d('0xb')](_0x54777e,_0x50d1b8)['then'](function(){const _0x31af37=_0x42e16d;logger[_0x31af37('0x1a')]('removeIndex\x20%s\x20%s',_0x54777e,_0x50d1b8);})[_0x42e16d('0x7')](function(_0x14293f){logger['info'](JSON['stringify'](_0x14293f));});});},Migration['prototype'][_0x240a4b('0x2')]=function(_0xd51a57){const _0x1bcb76=_0x240a4b,_0x6eacca=this;this[_0x1bcb76('0x3')][_0x1bcb76('0x0')](function(){const _0x3fc8a7=_0x1bcb76;return _0x6eacca[_0x3fc8a7('0xe')][_0x3fc8a7('0x11')][_0x3fc8a7('0x2')](_0xd51a57)['then'](function(){const _0x1c2a99=_0x3fc8a7;logger[_0x1c2a99('0x1a')](_0x1c2a99('0x19'),_0xd51a57);})[_0x3fc8a7('0x7')](function(_0x2eeb01){const _0x2eec3c=_0x3fc8a7;logger['info'](JSON[_0x2eec3c('0x14')](_0x2eeb01));});});},Migration[_0x240a4b('0x17')][_0x240a4b('0x1b')]=function(_0x167133,_0x2b1e23){const _0x850fa6=_0x240a4b,_0x5bee53=this;this[_0x850fa6('0x3')][_0x850fa6('0x0')](function(){const _0xa73441=_0x850fa6;return _0x5bee53[_0xa73441('0xe')][_0xa73441('0x1b')](_0x167133,_0x2b1e23)[_0xa73441('0x1')](function(){const _0x22a27d=_0xa73441;logger['info'](_0x22a27d('0x6'),_0x2b1e23,_0x167133);})[_0xa73441('0x7')](function(_0x6f3c37){const _0x2fe839=_0xa73441;logger['info'](util[_0x2fe839('0xf')](_0x6f3c37,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x5ed872,_0x232451,_0x589723){const _0x550c1b=_0x240a4b,_0x544d26=this;this[_0x550c1b('0x3')][_0x550c1b('0x0')](function(){const _0x448b82=_0x550c1b;return _0x544d26[_0x448b82('0xe')][_0x448b82('0x10')](_0x5ed872,_0x232451,_0x589723)[_0x448b82('0x1')](function(){const _0x591ce2=_0x448b82;logger[_0x591ce2('0x1a')](_0x591ce2('0x5'),_0x232451,_0x589723,_0x5ed872);})['catch'](function(_0x3fb7f0){logger['info'](util['inspect'](_0x3fb7f0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x240a4b('0x9')]=function(_0x54f3d0){const _0x769f3b=_0x240a4b;this[_0x769f3b('0x3')][_0x769f3b('0x0')](function(){return _0x54f3d0();});},module[_0x240a4b('0x8')]={'up':function(_0x48ab4e){return new Promise(function(_0x1c6ff3){const _0x2e1405=new Migration(_0x48ab4e);_0x2e1405['final'](_0x1c6ff3);});},'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 8bec68e..d979230 100644 --- a/server/migrations/2.2.2.js +++ b/server/migrations/2.2.2.js @@ -1 +1 @@ -const a967_0x2baa=['enqueue','changeColumn','addColumn','inspect','info','query\x20%s','tail','dropTable','util','renameColumn','then','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','migration','join','prototype','removeColumn','Added\x20column\x20%s\x20to\x20%s','addIndex','finally','removeIndex','queryInterface','query','table\x20dropped\x20%s','stringify','sequence'];(function(_0x4aee2a,_0x2baae5){const _0x52337b=function(_0x452656){while(--_0x452656){_0x4aee2a['push'](_0x4aee2a['shift']());}};_0x52337b(++_0x2baae5);}(a967_0x2baa,0x66));const a967_0x5233=function(_0x4aee2a,_0x2baae5){_0x4aee2a=_0x4aee2a-0x0;let _0x52337b=a967_0x2baa[_0x4aee2a];return _0x52337b;};const _0x218211=a967_0x5233;'use strict';const util=require(_0x218211('0xe')),logger=require('../config/logger')(_0x218211('0x14')),Sequence=function(){};Sequence[_0x218211('0x16')]['enqueue']=function(_0x452656){const _0x5341fc=_0x218211;this[_0x5341fc('0xc')]=this[_0x5341fc('0xc')]?this[_0x5341fc('0xc')][_0x5341fc('0x1a')](_0x452656):_0x452656();};const Migration=function(_0x1b3684){const _0x1c2c80=_0x218211;this[_0x1c2c80('0x1')]=_0x1b3684,this['sequence']=new Sequence();};Migration['prototype'][_0x218211('0x7')]=function(_0x5ddfdd,_0x5d46ba,_0x5776eb){const _0x301f16=_0x218211,_0x2ee9cc=this;this[_0x301f16('0x5')]['enqueue'](function(){const _0x5d403a=_0x301f16;return _0x2ee9cc['queryInterface'][_0x5d403a('0x7')](_0x5ddfdd,_0x5d46ba,_0x5776eb)[_0x5d403a('0x10')](function(){const _0x3de752=_0x5d403a;logger['info'](_0x3de752('0x12'),_0x5d46ba,_0x5ddfdd);})[_0x5d403a('0x11')](function(_0x5ab6cf){const _0x50fb8f=_0x5d403a;logger[_0x50fb8f('0xa')](JSON[_0x50fb8f('0x4')](_0x5ab6cf));});});},Migration[_0x218211('0x16')][_0x218211('0x8')]=function(_0x1efae4,_0x337959,_0x1c84b5){const _0x4f2385=_0x218211,_0x23b76e=this;this[_0x4f2385('0x5')][_0x4f2385('0x6')](function(){const _0x26aeb9=_0x4f2385;return _0x23b76e[_0x26aeb9('0x1')][_0x26aeb9('0x8')](_0x1efae4,_0x337959,_0x1c84b5)[_0x26aeb9('0x10')](function(){const _0x54a061=_0x26aeb9;logger[_0x54a061('0xa')](_0x54a061('0x18'),_0x337959,_0x1efae4);})[_0x26aeb9('0x11')](function(_0x37a2e5){const _0x10aabf=_0x26aeb9;logger[_0x10aabf('0xa')](JSON['stringify'](_0x37a2e5));});});},Migration[_0x218211('0x16')][_0x218211('0xd')]=function(_0x59fcd1){const _0x3f4598=_0x218211,_0x1ab7a8=this;this['sequence'][_0x3f4598('0x6')](function(){const _0x507afc=_0x3f4598;return _0x1ab7a8['queryInterface'][_0x507afc('0xd')](_0x59fcd1,{'force':!![]})[_0x507afc('0x10')](function(){const _0x9ad774=_0x507afc;logger['info'](_0x9ad774('0x3'),_0x59fcd1);})['catch'](function(_0x67b771){const _0x7b64ba=_0x507afc;logger[_0x7b64ba('0xa')](JSON[_0x7b64ba('0x4')](_0x67b771));});});},Migration[_0x218211('0x16')][_0x218211('0x19')]=function(_0x40f945,_0x399914,_0x67956e){const _0x5d71fb=_0x218211,_0x1cc5e4=this;this[_0x5d71fb('0x5')]['enqueue'](function(){const _0x597318=_0x5d71fb;return _0x1cc5e4[_0x597318('0x1')]['addIndex'](_0x40f945,_0x399914,{'indexName':_0x67956e})[_0x597318('0x10')](function(){const _0x91ae6b=_0x597318;logger[_0x91ae6b('0xa')](_0x91ae6b('0x13'),_0x40f945,_0x399914[_0x91ae6b('0x15')](','),_0x67956e);})[_0x597318('0x11')](function(_0x4b866e){const _0x486aa6=_0x597318;logger[_0x486aa6('0xa')](JSON[_0x486aa6('0x4')](_0x4b866e));});});},Migration[_0x218211('0x16')][_0x218211('0x0')]=function(_0x161a7c,_0x41a9ad){const _0x37d0f5=_0x218211,_0x494661=this;this[_0x37d0f5('0x5')][_0x37d0f5('0x6')](function(){const _0x4fb78d=_0x37d0f5;return _0x494661[_0x4fb78d('0x1')][_0x4fb78d('0x0')](_0x161a7c,_0x41a9ad)[_0x4fb78d('0x10')](function(){const _0x47fb03=_0x4fb78d;logger[_0x47fb03('0xa')]('removeIndex\x20%s\x20%s',_0x161a7c,_0x41a9ad);})[_0x4fb78d('0x11')](function(_0xb2a0e3){const _0x532723=_0x4fb78d;logger[_0x532723('0xa')](JSON[_0x532723('0x4')](_0xb2a0e3));});});},Migration['prototype']['query']=function(_0x56da67){const _0x5e0361=_0x218211,_0x19597f=this;this[_0x5e0361('0x5')][_0x5e0361('0x6')](function(){const _0x16b0ad=_0x5e0361;return _0x19597f['queryInterface']['sequelize'][_0x16b0ad('0x2')](_0x56da67)[_0x16b0ad('0x10')](function(){const _0x3cab31=_0x16b0ad;logger[_0x3cab31('0xa')](_0x3cab31('0xb'),_0x56da67);})[_0x16b0ad('0x11')](function(_0x5af430){const _0x543831=_0x16b0ad;logger[_0x543831('0xa')](JSON[_0x543831('0x4')](_0x5af430));});});},Migration['prototype'][_0x218211('0x17')]=function(_0x5de793,_0x8cd14a){const _0x24d603=_0x218211,_0x54b6eb=this;this['sequence'][_0x24d603('0x6')](function(){const _0x317cc7=_0x24d603;return _0x54b6eb[_0x317cc7('0x1')][_0x317cc7('0x17')](_0x5de793,_0x8cd14a)[_0x317cc7('0x10')](function(){const _0x254e21=_0x317cc7;logger[_0x254e21('0xa')]('Removed\x20column\x20%s\x20from\x20%s',_0x8cd14a,_0x5de793);})[_0x317cc7('0x11')](function(_0x35c171){const _0x330879=_0x317cc7;logger[_0x330879('0xa')](util['inspect'](_0x35c171,{'showHidden':![],'depth':null}));});});},Migration[_0x218211('0x16')]['renameColumn']=function(_0x55e6f5,_0x1c110f,_0x59bd15){const _0x388f09=_0x218211,_0x517aa9=this;this[_0x388f09('0x5')][_0x388f09('0x6')](function(){const _0x47800e=_0x388f09;return _0x517aa9[_0x47800e('0x1')][_0x47800e('0xf')](_0x55e6f5,_0x1c110f,_0x59bd15)[_0x47800e('0x10')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1c110f,_0x59bd15,_0x55e6f5);})[_0x47800e('0x11')](function(_0x5d3b16){const _0x28cce3=_0x47800e;logger['info'](util[_0x28cce3('0x9')](_0x5d3b16,{'showHidden':![],'depth':null}));});});},Migration[_0x218211('0x16')]['final']=function(_0x25a5fa){const _0x16bf5b=_0x218211;this[_0x16bf5b('0x5')][_0x16bf5b('0x6')](function(){return _0x25a5fa();});},module['exports']={'up':function(_0x29edc1){return new Promise(function(_0x5c76c3){const _0x50a8bd=new Migration(_0x29edc1);_0x50a8bd['final'](_0x5c76c3);});},'down':function(){}}; \ No newline at end of file +const a967_0x3a6f=['finally','query','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','util','inspect','catch','sequelize','prototype','join','Added\x20column\x20%s\x20to\x20%s','sequence','../config/logger','queryInterface','removeColumn','tail','stringify','removeIndex\x20%s\x20%s','removeIndex','Removed\x20column\x20%s\x20from\x20%s','addIndex\x20%s\x20%s\x20%s','info','enqueue','then','final','dropTable','changeColumn','migration','addIndex'];(function(_0x2e30a9,_0x3a6ffd){const _0xd35aca=function(_0x5ece7c){while(--_0x5ece7c){_0x2e30a9['push'](_0x2e30a9['shift']());}};_0xd35aca(++_0x3a6ffd);}(a967_0x3a6f,0x9c));const a967_0xd35a=function(_0x2e30a9,_0x3a6ffd){_0x2e30a9=_0x2e30a9-0x0;let _0xd35aca=a967_0x3a6f[_0x2e30a9];return _0xd35aca;};const _0x9fc53e=a967_0xd35a;'use strict';const util=require(_0x9fc53e('0x1d')),logger=require(_0x9fc53e('0x7'))(_0x9fc53e('0x16')),Sequence=function(){};Sequence[_0x9fc53e('0x3')][_0x9fc53e('0x11')]=function(_0x5ece7c){const _0x27bc14=_0x9fc53e;this[_0x27bc14('0xa')]=this['tail']?this[_0x27bc14('0xa')][_0x27bc14('0x18')](_0x5ece7c):_0x5ece7c();};const Migration=function(_0x19d66f){const _0x19de18=_0x9fc53e;this[_0x19de18('0x8')]=_0x19d66f,this['sequence']=new Sequence();};Migration['prototype'][_0x9fc53e('0x15')]=function(_0x43340b,_0x119512,_0x22b98e){const _0x37dec8=_0x9fc53e,_0x20745a=this;this['sequence'][_0x37dec8('0x11')](function(){const _0x597241=_0x37dec8;return _0x20745a[_0x597241('0x8')][_0x597241('0x15')](_0x43340b,_0x119512,_0x22b98e)[_0x597241('0x12')](function(){const _0x51e5d0=_0x597241;logger[_0x51e5d0('0x10')](_0x51e5d0('0x1b'),_0x119512,_0x43340b);})[_0x597241('0x1')](function(_0x3bd134){const _0x438e87=_0x597241;logger[_0x438e87('0x10')](JSON[_0x438e87('0xb')](_0x3bd134));});});},Migration[_0x9fc53e('0x3')][_0x9fc53e('0x1c')]=function(_0x29a114,_0x349957,_0x42de98){const _0x4c736c=_0x9fc53e,_0x25cbee=this;this[_0x4c736c('0x6')][_0x4c736c('0x11')](function(){const _0xeb6b90=_0x4c736c;return _0x25cbee['queryInterface']['addColumn'](_0x29a114,_0x349957,_0x42de98)[_0xeb6b90('0x12')](function(){const _0xc0cfdb=_0xeb6b90;logger[_0xc0cfdb('0x10')](_0xc0cfdb('0x5'),_0x349957,_0x29a114);})[_0xeb6b90('0x1')](function(_0x1b899a){const _0x3cbeab=_0xeb6b90;logger['info'](JSON[_0x3cbeab('0xb')](_0x1b899a));});});},Migration[_0x9fc53e('0x3')][_0x9fc53e('0x14')]=function(_0xd1dcd4){const _0x172434=_0x9fc53e,_0x46d1f1=this;this[_0x172434('0x6')]['enqueue'](function(){const _0x4a75bb=_0x172434;return _0x46d1f1[_0x4a75bb('0x8')][_0x4a75bb('0x14')](_0xd1dcd4,{'force':!![]})[_0x4a75bb('0x12')](function(){const _0x1c3bea=_0x4a75bb;logger[_0x1c3bea('0x10')]('table\x20dropped\x20%s',_0xd1dcd4);})[_0x4a75bb('0x1')](function(_0x3506d8){const _0x510c04=_0x4a75bb;logger[_0x510c04('0x10')](JSON[_0x510c04('0xb')](_0x3506d8));});});},Migration['prototype']['addIndex']=function(_0x666d4d,_0x1bc867,_0x1ad1a6){const _0x322e19=_0x9fc53e,_0x2f1396=this;this[_0x322e19('0x6')]['enqueue'](function(){const _0x1d84e3=_0x322e19;return _0x2f1396[_0x1d84e3('0x8')][_0x1d84e3('0x17')](_0x666d4d,_0x1bc867,{'indexName':_0x1ad1a6})['then'](function(){const _0x54768a=_0x1d84e3;logger[_0x54768a('0x10')](_0x54768a('0xf'),_0x666d4d,_0x1bc867[_0x54768a('0x4')](','),_0x1ad1a6);})[_0x1d84e3('0x1')](function(_0x775b1){const _0xe4b773=_0x1d84e3;logger[_0xe4b773('0x10')](JSON['stringify'](_0x775b1));});});},Migration[_0x9fc53e('0x3')][_0x9fc53e('0xd')]=function(_0x1b5d61,_0x7ad341){const _0x1dcde2=_0x9fc53e,_0x13c51f=this;this[_0x1dcde2('0x6')][_0x1dcde2('0x11')](function(){const _0x25f70c=_0x1dcde2;return _0x13c51f['queryInterface']['removeIndex'](_0x1b5d61,_0x7ad341)[_0x25f70c('0x12')](function(){const _0x4e6bde=_0x25f70c;logger[_0x4e6bde('0x10')](_0x4e6bde('0xc'),_0x1b5d61,_0x7ad341);})[_0x25f70c('0x1')](function(_0x2c8dfb){const _0x3d46a2=_0x25f70c;logger[_0x3d46a2('0x10')](JSON[_0x3d46a2('0xb')](_0x2c8dfb));});});},Migration[_0x9fc53e('0x3')][_0x9fc53e('0x19')]=function(_0x52dac3){const _0x3295c4=_0x9fc53e,_0x3c8dda=this;this[_0x3295c4('0x6')][_0x3295c4('0x11')](function(){const _0x484bdf=_0x3295c4;return _0x3c8dda[_0x484bdf('0x8')][_0x484bdf('0x2')][_0x484bdf('0x19')](_0x52dac3)['then'](function(){const _0x134941=_0x484bdf;logger[_0x134941('0x10')]('query\x20%s',_0x52dac3);})[_0x484bdf('0x1')](function(_0x31930a){const _0x2b1d88=_0x484bdf;logger[_0x2b1d88('0x10')](JSON['stringify'](_0x31930a));});});},Migration[_0x9fc53e('0x3')][_0x9fc53e('0x9')]=function(_0x1c5fac,_0x4273c3){const _0x51cd96=_0x9fc53e,_0x958d2c=this;this['sequence'][_0x51cd96('0x11')](function(){const _0xc6b221=_0x51cd96;return _0x958d2c[_0xc6b221('0x8')]['removeColumn'](_0x1c5fac,_0x4273c3)['then'](function(){const _0x30d4ec=_0xc6b221;logger[_0x30d4ec('0x10')](_0x30d4ec('0xe'),_0x4273c3,_0x1c5fac);})[_0xc6b221('0x1')](function(_0x5015e6){const _0x43b2d8=_0xc6b221;logger[_0x43b2d8('0x10')](util[_0x43b2d8('0x0')](_0x5015e6,{'showHidden':![],'depth':null}));});});},Migration[_0x9fc53e('0x3')]['renameColumn']=function(_0x56c710,_0x41f064,_0x5e8fbe){const _0x3762b1=_0x9fc53e,_0x486898=this;this[_0x3762b1('0x6')]['enqueue'](function(){const _0x1389b8=_0x3762b1;return _0x486898['queryInterface']['renameColumn'](_0x56c710,_0x41f064,_0x5e8fbe)[_0x1389b8('0x12')](function(){const _0xc0490f=_0x1389b8;logger[_0xc0490f('0x10')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x41f064,_0x5e8fbe,_0x56c710);})['catch'](function(_0x1ab57b){const _0x26d45f=_0x1389b8;logger[_0x26d45f('0x10')](util[_0x26d45f('0x0')](_0x1ab57b,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x9fc53e('0x13')]=function(_0xdf036f){const _0x4ce5e6=_0x9fc53e;this[_0x4ce5e6('0x6')]['enqueue'](function(){return _0xdf036f();});},module[_0x9fc53e('0x1a')]={'up':function(_0x3ffa4d){return new Promise(function(_0x2ed207){const _0x2048c7=a967_0xd35a,_0xab7831=new Migration(_0x3ffa4d);_0xab7831[_0x2048c7('0x13')](_0x2ed207);});},'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 11a4b38..b89bc86 100644 --- a/server/migrations/2.2.3.js +++ b/server/migrations/2.2.3.js @@ -1 +1 @@ -const a968_0x5553=['final','mail_messages','query\x20%s','inspect','info','exports','renameColumn','then','../config/logger','Added\x20column\x20%s\x20to\x20%s','enqueue','finally','messageId','addIndex','stringify','queryInterface','prototype','migration','util','dropTable','addIndex\x20%s\x20%s\x20%s','catch','inReplyTo','join','STRING','changeColumn','table\x20dropped\x20%s','tail','Removed\x20column\x20%s\x20from\x20%s','query','removeColumn','removeIndex\x20%s\x20%s','mail_interactions','sequence'];(function(_0x37b673,_0x55532b){const _0x5c720d=function(_0x5bead6){while(--_0x5bead6){_0x37b673['push'](_0x37b673['shift']());}};_0x5c720d(++_0x55532b);}(a968_0x5553,0x1b5));const a968_0x5c72=function(_0x37b673,_0x55532b){_0x37b673=_0x37b673-0x0;let _0x5c720d=a968_0x5553[_0x37b673];return _0x5c720d;};const _0x263d65=a968_0x5c72;'use strict';const util=require(_0x263d65('0x17')),logger=require(_0x263d65('0xd'))(_0x263d65('0x16')),Sequence=function(){};Sequence[_0x263d65('0x15')][_0x263d65('0xf')]=function(_0x5bead6){const _0x51a34e=_0x263d65;this[_0x51a34e('0x20')]=this[_0x51a34e('0x20')]?this['tail'][_0x51a34e('0x10')](_0x5bead6):_0x5bead6();};const Migration=function(_0x3a39d5){const _0x754a87=_0x263d65;this[_0x754a87('0x14')]=_0x3a39d5,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x1006c0,_0x196259,_0x2de62c){const _0x5ea4ae=_0x263d65,_0x35be9a=this;this[_0x5ea4ae('0x4')][_0x5ea4ae('0xf')](function(){const _0x43dc11=_0x5ea4ae;return _0x35be9a[_0x43dc11('0x14')][_0x43dc11('0x1e')](_0x1006c0,_0x196259,_0x2de62c)[_0x43dc11('0xc')](function(){const _0x642e84=_0x43dc11;logger[_0x642e84('0x9')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x196259,_0x1006c0);})[_0x43dc11('0x1a')](function(_0x5a68c7){const _0x55c103=_0x43dc11;logger[_0x55c103('0x9')](JSON[_0x55c103('0x13')](_0x5a68c7));});});},Migration['prototype']['addColumn']=function(_0x3e91db,_0x4f52e1,_0x5b8593){const _0x4945d1=this;this['sequence']['enqueue'](function(){const _0x4137e4=a968_0x5c72;return _0x4945d1['queryInterface']['addColumn'](_0x3e91db,_0x4f52e1,_0x5b8593)[_0x4137e4('0xc')](function(){const _0x3ab28a=_0x4137e4;logger[_0x3ab28a('0x9')](_0x3ab28a('0xe'),_0x4f52e1,_0x3e91db);})['catch'](function(_0x515b82){const _0x3bf933=_0x4137e4;logger[_0x3bf933('0x9')](JSON[_0x3bf933('0x13')](_0x515b82));});});},Migration[_0x263d65('0x15')][_0x263d65('0x18')]=function(_0x4eb4cd){const _0x46f175=_0x263d65,_0x3e52a2=this;this[_0x46f175('0x4')]['enqueue'](function(){const _0x2a1ef6=_0x46f175;return _0x3e52a2['queryInterface'][_0x2a1ef6('0x18')](_0x4eb4cd,{'force':!![]})[_0x2a1ef6('0xc')](function(){const _0x453fe9=_0x2a1ef6;logger['info'](_0x453fe9('0x1f'),_0x4eb4cd);})['catch'](function(_0x5f4584){const _0x2f63e6=_0x2a1ef6;logger[_0x2f63e6('0x9')](JSON[_0x2f63e6('0x13')](_0x5f4584));});});},Migration[_0x263d65('0x15')][_0x263d65('0x12')]=function(_0x4aa7a0,_0x43c0b4,_0x405d36){const _0x166022=_0x263d65,_0x49d826=this;this['sequence'][_0x166022('0xf')](function(){const _0x287219=_0x166022;return _0x49d826[_0x287219('0x14')][_0x287219('0x12')](_0x4aa7a0,_0x43c0b4,{'indexName':_0x405d36})[_0x287219('0xc')](function(){const _0x3012af=_0x287219;logger[_0x3012af('0x9')](_0x3012af('0x19'),_0x4aa7a0,_0x43c0b4[_0x3012af('0x1c')](','),_0x405d36);})[_0x287219('0x1a')](function(_0x52f6a3){const _0x571a9a=_0x287219;logger[_0x571a9a('0x9')](JSON[_0x571a9a('0x13')](_0x52f6a3));});});},Migration['prototype']['removeIndex']=function(_0x59c520,_0x44030e){const _0x53e5ea=_0x263d65,_0x555745=this;this['sequence'][_0x53e5ea('0xf')](function(){const _0x1aa123=_0x53e5ea;return _0x555745[_0x1aa123('0x14')]['removeIndex'](_0x59c520,_0x44030e)[_0x1aa123('0xc')](function(){const _0x1a2125=_0x1aa123;logger[_0x1a2125('0x9')](_0x1a2125('0x2'),_0x59c520,_0x44030e);})[_0x1aa123('0x1a')](function(_0x39fb20){const _0x4469aa=_0x1aa123;logger[_0x4469aa('0x9')](JSON['stringify'](_0x39fb20));});});},Migration[_0x263d65('0x15')][_0x263d65('0x0')]=function(_0x16c504){const _0x53a34a=_0x263d65,_0x356296=this;this['sequence'][_0x53a34a('0xf')](function(){const _0x1d5d5f=_0x53a34a;return _0x356296['queryInterface']['sequelize'][_0x1d5d5f('0x0')](_0x16c504)[_0x1d5d5f('0xc')](function(){const _0x313e6e=_0x1d5d5f;logger[_0x313e6e('0x9')](_0x313e6e('0x7'),_0x16c504);})[_0x1d5d5f('0x1a')](function(_0x4a3999){const _0x7d5d85=_0x1d5d5f;logger[_0x7d5d85('0x9')](JSON[_0x7d5d85('0x13')](_0x4a3999));});});},Migration['prototype']['removeColumn']=function(_0x85e72e,_0x2a1192){const _0x470356=_0x263d65,_0x3f00c5=this;this[_0x470356('0x4')][_0x470356('0xf')](function(){const _0x290e4c=_0x470356;return _0x3f00c5[_0x290e4c('0x14')][_0x290e4c('0x1')](_0x85e72e,_0x2a1192)[_0x290e4c('0xc')](function(){const _0x27a989=_0x290e4c;logger[_0x27a989('0x9')](_0x27a989('0x21'),_0x2a1192,_0x85e72e);})[_0x290e4c('0x1a')](function(_0x12dad1){const _0x43723d=_0x290e4c;logger[_0x43723d('0x9')](util[_0x43723d('0x8')](_0x12dad1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x263d65('0xb')]=function(_0x59ea2e,_0x51c447,_0x40fd93){const _0x20d785=_0x263d65,_0x49c7d5=this;this['sequence'][_0x20d785('0xf')](function(){const _0x49b084=_0x20d785;return _0x49c7d5[_0x49b084('0x14')][_0x49b084('0xb')](_0x59ea2e,_0x51c447,_0x40fd93)['then'](function(){const _0x3172e5=_0x49b084;logger[_0x3172e5('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x51c447,_0x40fd93,_0x59ea2e);})['catch'](function(_0x169fea){const _0x2d7231=_0x49b084;logger[_0x2d7231('0x9')](util[_0x2d7231('0x8')](_0x169fea,{'showHidden':![],'depth':null}));});});},Migration[_0x263d65('0x15')][_0x263d65('0x5')]=function(_0x514509){const _0x2dee02=_0x263d65;this['sequence'][_0x2dee02('0xf')](function(){return _0x514509();});},module[_0x263d65('0xa')]={'up':function(_0xdc4650,_0x5ad612){return new Promise(function(_0xd2d774){const _0x598a4c=a968_0x5c72,_0x1a1cd3=new Migration(_0xdc4650);_0x1a1cd3[_0x598a4c('0x1e')](_0x598a4c('0x3'),_0x598a4c('0x1b'),{'type':_0x5ad612[_0x598a4c('0x1d')](0x1fe)}),_0x1a1cd3[_0x598a4c('0x1e')](_0x598a4c('0x6'),_0x598a4c('0x11'),{'type':_0x5ad612['STRING'](0x1fe)}),_0x1a1cd3[_0x598a4c('0x5')](_0xd2d774);});},'down':function(){}}; \ No newline at end of file +const a968_0x386e=['removeIndex','inspect','join','../config/logger','sequelize','changeColumn','util','prototype','removeColumn','inReplyTo','mail_interactions','catch','enqueue','Removed\x20column\x20%s\x20from\x20%s','renameColumn','exports','tail','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','Added\x20column\x20%s\x20to\x20%s','then','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','queryInterface','addColumn','messageId','info','addIndex','stringify','STRING','sequence','finally'];(function(_0x309e99,_0x386e6f){const _0x46a84b=function(_0x310920){while(--_0x310920){_0x309e99['push'](_0x309e99['shift']());}};_0x46a84b(++_0x386e6f);}(a968_0x386e,0xf3));const a968_0x46a8=function(_0x309e99,_0x386e6f){_0x309e99=_0x309e99-0x0;let _0x46a84b=a968_0x386e[_0x309e99];return _0x46a84b;};const _0x3d0bca=a968_0x46a8;'use strict';const util=require(_0x3d0bca('0x1b')),logger=require(_0x3d0bca('0x18'))(_0x3d0bca('0x7')),Sequence=function(){};Sequence[_0x3d0bca('0x1c')][_0x3d0bca('0x0')]=function(_0x310920){const _0xf9339f=_0x3d0bca;this[_0xf9339f('0x4')]=this[_0xf9339f('0x4')]?this['tail'][_0xf9339f('0x14')](_0x310920):_0x310920();};const Migration=function(_0x281b42){const _0x53cf33=_0x3d0bca;this[_0x53cf33('0xc')]=_0x281b42,this[_0x53cf33('0x13')]=new Sequence();};Migration['prototype'][_0x3d0bca('0x1a')]=function(_0x42b9f3,_0x12618e,_0x381137){const _0x2de02c=_0x3d0bca,_0x11e8aa=this;this[_0x2de02c('0x13')][_0x2de02c('0x0')](function(){const _0x172a14=_0x2de02c;return _0x11e8aa[_0x172a14('0xc')][_0x172a14('0x1a')](_0x42b9f3,_0x12618e,_0x381137)[_0x172a14('0x9')](function(){const _0x15fad6=_0x172a14;logger[_0x15fad6('0xf')](_0x15fad6('0x6'),_0x12618e,_0x42b9f3);})[_0x172a14('0x20')](function(_0x407e82){const _0x484007=_0x172a14;logger['info'](JSON[_0x484007('0x11')](_0x407e82));});});},Migration['prototype'][_0x3d0bca('0xd')]=function(_0x167229,_0x214854,_0x51162a){const _0x19dfad=_0x3d0bca,_0x49e3b5=this;this[_0x19dfad('0x13')][_0x19dfad('0x0')](function(){const _0x2f528a=_0x19dfad;return _0x49e3b5[_0x2f528a('0xc')][_0x2f528a('0xd')](_0x167229,_0x214854,_0x51162a)['then'](function(){const _0x4bfe2a=_0x2f528a;logger[_0x4bfe2a('0xf')](_0x4bfe2a('0x8'),_0x214854,_0x167229);})[_0x2f528a('0x20')](function(_0x384d8b){const _0x5bf704=_0x2f528a;logger[_0x5bf704('0xf')](JSON[_0x5bf704('0x11')](_0x384d8b));});});},Migration['prototype']['dropTable']=function(_0x11170b){const _0x4f1bdf=_0x3d0bca,_0x40a74d=this;this[_0x4f1bdf('0x13')][_0x4f1bdf('0x0')](function(){const _0xc02a61=_0x4f1bdf;return _0x40a74d['queryInterface'][_0xc02a61('0xb')](_0x11170b,{'force':!![]})[_0xc02a61('0x9')](function(){const _0x43793e=_0xc02a61;logger[_0x43793e('0xf')]('table\x20dropped\x20%s',_0x11170b);})[_0xc02a61('0x20')](function(_0x2bd451){const _0x18f693=_0xc02a61;logger[_0x18f693('0xf')](JSON[_0x18f693('0x11')](_0x2bd451));});});},Migration[_0x3d0bca('0x1c')][_0x3d0bca('0x10')]=function(_0x421fc8,_0x25bc98,_0x54e85){const _0x38b783=_0x3d0bca,_0x21f441=this;this['sequence'][_0x38b783('0x0')](function(){const _0x5844b0=_0x38b783;return _0x21f441[_0x5844b0('0xc')][_0x5844b0('0x10')](_0x421fc8,_0x25bc98,{'indexName':_0x54e85})[_0x5844b0('0x9')](function(){const _0x2435be=_0x5844b0;logger[_0x2435be('0xf')]('addIndex\x20%s\x20%s\x20%s',_0x421fc8,_0x25bc98[_0x2435be('0x17')](','),_0x54e85);})[_0x5844b0('0x20')](function(_0x323a0b){const _0x572cbc=_0x5844b0;logger[_0x572cbc('0xf')](JSON[_0x572cbc('0x11')](_0x323a0b));});});},Migration[_0x3d0bca('0x1c')][_0x3d0bca('0x15')]=function(_0x178922,_0x4e9bb8){const _0x294563=_0x3d0bca,_0x3bdb8a=this;this[_0x294563('0x13')]['enqueue'](function(){const _0x35d509=_0x294563;return _0x3bdb8a[_0x35d509('0xc')][_0x35d509('0x15')](_0x178922,_0x4e9bb8)[_0x35d509('0x9')](function(){const _0x276299=_0x35d509;logger[_0x276299('0xf')]('removeIndex\x20%s\x20%s',_0x178922,_0x4e9bb8);})[_0x35d509('0x20')](function(_0x59f88c){const _0x3dc6ea=_0x35d509;logger[_0x3dc6ea('0xf')](JSON[_0x3dc6ea('0x11')](_0x59f88c));});});},Migration[_0x3d0bca('0x1c')]['query']=function(_0x15ef5d){const _0x4e77c2=_0x3d0bca,_0x56e5a7=this;this[_0x4e77c2('0x13')][_0x4e77c2('0x0')](function(){const _0x49d9b5=_0x4e77c2;return _0x56e5a7[_0x49d9b5('0xc')][_0x49d9b5('0x19')]['query'](_0x15ef5d)[_0x49d9b5('0x9')](function(){const _0x2ef01e=_0x49d9b5;logger[_0x2ef01e('0xf')](_0x2ef01e('0x5'),_0x15ef5d);})[_0x49d9b5('0x20')](function(_0x259195){const _0x3d851b=_0x49d9b5;logger[_0x3d851b('0xf')](JSON[_0x3d851b('0x11')](_0x259195));});});},Migration[_0x3d0bca('0x1c')][_0x3d0bca('0x1d')]=function(_0x32116f,_0x4ce820){const _0x52f575=_0x3d0bca,_0x530a27=this;this[_0x52f575('0x13')]['enqueue'](function(){const _0x5dbdb7=_0x52f575;return _0x530a27['queryInterface'][_0x5dbdb7('0x1d')](_0x32116f,_0x4ce820)[_0x5dbdb7('0x9')](function(){const _0x48080c=_0x5dbdb7;logger[_0x48080c('0xf')](_0x48080c('0x1'),_0x4ce820,_0x32116f);})[_0x5dbdb7('0x20')](function(_0x1f2637){const _0x47a81a=_0x5dbdb7;logger[_0x47a81a('0xf')](util[_0x47a81a('0x16')](_0x1f2637,{'showHidden':![],'depth':null}));});});},Migration[_0x3d0bca('0x1c')][_0x3d0bca('0x2')]=function(_0x4ee089,_0x3978a3,_0x1fcbcb){const _0x3c29a7=_0x3d0bca,_0x2c7b45=this;this[_0x3c29a7('0x13')][_0x3c29a7('0x0')](function(){const _0x5e7aa1=_0x3c29a7;return _0x2c7b45[_0x5e7aa1('0xc')][_0x5e7aa1('0x2')](_0x4ee089,_0x3978a3,_0x1fcbcb)[_0x5e7aa1('0x9')](function(){const _0x3d8fc4=_0x5e7aa1;logger['info'](_0x3d8fc4('0xa'),_0x3978a3,_0x1fcbcb,_0x4ee089);})[_0x5e7aa1('0x20')](function(_0x23098e){const _0x18b4b0=_0x5e7aa1;logger[_0x18b4b0('0xf')](util[_0x18b4b0('0x16')](_0x23098e,{'showHidden':![],'depth':null}));});});},Migration[_0x3d0bca('0x1c')]['final']=function(_0x1627aa){const _0x2173bf=_0x3d0bca;this[_0x2173bf('0x13')][_0x2173bf('0x0')](function(){return _0x1627aa();});},module[_0x3d0bca('0x3')]={'up':function(_0x5984e5,_0x512998){return new Promise(function(_0x1a019e){const _0xc6b02c=a968_0x46a8,_0x144d5e=new Migration(_0x5984e5);_0x144d5e[_0xc6b02c('0x1a')](_0xc6b02c('0x1f'),_0xc6b02c('0x1e'),{'type':_0x512998['STRING'](0x1fe)}),_0x144d5e[_0xc6b02c('0x1a')]('mail_messages',_0xc6b02c('0xe'),{'type':_0x512998[_0xc6b02c('0x12')](0x1fe)}),_0x144d5e['final'](_0x1a019e);});},'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 28716c3..a9e4991 100644 --- a/server/migrations/2.2.4.js +++ b/server/migrations/2.2.4.js @@ -1 +1 @@ -const a969_0x3dd5=['queryInterface','sequence','inspect','removeIndex','Added\x20column\x20%s\x20to\x20%s','../config/logger','tail','removeIndex\x20%s\x20%s','info','renameColumn','sequelize','stringify','ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)','enqueue','addColumn','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)','prototype','then','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)','removeColumn','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','catch','Removed\x20column\x20%s\x20from\x20%s','util','changeColumn','query','dropTable','join','exports','query\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex'];(function(_0x29b51e,_0x3dd5ec){const _0x39ec30=function(_0x21a757){while(--_0x21a757){_0x29b51e['push'](_0x29b51e['shift']());}};_0x39ec30(++_0x3dd5ec);}(a969_0x3dd5,0xd3));const a969_0x39ec=function(_0x29b51e,_0x3dd5ec){_0x29b51e=_0x29b51e-0x0;let _0x39ec30=a969_0x3dd5[_0x29b51e];return _0x39ec30;};const _0x1dd725=a969_0x39ec;'use strict';const util=require(_0x1dd725('0x19')),logger=require(_0x1dd725('0x4'))('migration'),Sequence=function(){};Sequence[_0x1dd725('0x12')][_0x1dd725('0xc')]=function(_0x21a757){const _0x3a66b9=_0x1dd725;this['tail']=this[_0x3a66b9('0x5')]?this[_0x3a66b9('0x5')]['finally'](_0x21a757):_0x21a757();};const Migration=function(_0x51db99){const _0x21c1ca=_0x1dd725;this[_0x21c1ca('0x22')]=_0x51db99,this[_0x21c1ca('0x0')]=new Sequence();};Migration[_0x1dd725('0x12')][_0x1dd725('0x1a')]=function(_0x3af019,_0x3abd69,_0x233ebe){const _0x34061f=_0x1dd725,_0x45c46e=this;this[_0x34061f('0x0')][_0x34061f('0xc')](function(){const _0x2b5693=_0x34061f;return _0x45c46e[_0x2b5693('0x22')][_0x2b5693('0x1a')](_0x3af019,_0x3abd69,_0x233ebe)[_0x2b5693('0x13')](function(){const _0x22849f=_0x2b5693;logger[_0x22849f('0x7')](_0x22849f('0x20'),_0x3abd69,_0x3af019);})['catch'](function(_0x45154c){const _0x14c4bb=_0x2b5693;logger['info'](JSON[_0x14c4bb('0xa')](_0x45154c));});});},Migration[_0x1dd725('0x12')][_0x1dd725('0xd')]=function(_0x4e091d,_0x41d458,_0x18de9f){const _0x2b9364=_0x1dd725,_0x3f2cd1=this;this[_0x2b9364('0x0')][_0x2b9364('0xc')](function(){const _0x236dec=_0x2b9364;return _0x3f2cd1['queryInterface'][_0x236dec('0xd')](_0x4e091d,_0x41d458,_0x18de9f)[_0x236dec('0x13')](function(){const _0x4a756d=_0x236dec;logger[_0x4a756d('0x7')](_0x4a756d('0x3'),_0x41d458,_0x4e091d);})[_0x236dec('0x17')](function(_0x17490c){const _0x1b17d6=_0x236dec;logger[_0x1b17d6('0x7')](JSON[_0x1b17d6('0xa')](_0x17490c));});});},Migration[_0x1dd725('0x12')][_0x1dd725('0x1c')]=function(_0x2be2dc){const _0x5a18ef=_0x1dd725,_0x387be9=this;this[_0x5a18ef('0x0')][_0x5a18ef('0xc')](function(){const _0x1619cc=_0x5a18ef;return _0x387be9['queryInterface'][_0x1619cc('0x1c')](_0x2be2dc,{'force':!![]})[_0x1619cc('0x13')](function(){const _0x8c3d17=_0x1619cc;logger[_0x8c3d17('0x7')]('table\x20dropped\x20%s',_0x2be2dc);})[_0x1619cc('0x17')](function(_0x2068c5){const _0xf7ded0=_0x1619cc;logger[_0xf7ded0('0x7')](JSON[_0xf7ded0('0xa')](_0x2068c5));});});},Migration['prototype'][_0x1dd725('0x21')]=function(_0x1cb95b,_0x50746b,_0x25beb9){const _0x59ac3f=_0x1dd725,_0x132f5f=this;this[_0x59ac3f('0x0')][_0x59ac3f('0xc')](function(){const _0x1db4e2=_0x59ac3f;return _0x132f5f[_0x1db4e2('0x22')][_0x1db4e2('0x21')](_0x1cb95b,_0x50746b,{'indexName':_0x25beb9})[_0x1db4e2('0x13')](function(){const _0x1deec5=_0x1db4e2;logger[_0x1deec5('0x7')]('addIndex\x20%s\x20%s\x20%s',_0x1cb95b,_0x50746b[_0x1deec5('0x1d')](','),_0x25beb9);})[_0x1db4e2('0x17')](function(_0x54d471){const _0x950a5c=_0x1db4e2;logger[_0x950a5c('0x7')](JSON['stringify'](_0x54d471));});});},Migration[_0x1dd725('0x12')][_0x1dd725('0x2')]=function(_0x430724,_0x3c015a){const _0x5c6a0b=_0x1dd725,_0x5352a5=this;this[_0x5c6a0b('0x0')][_0x5c6a0b('0xc')](function(){const _0x5156aa=_0x5c6a0b;return _0x5352a5[_0x5156aa('0x22')]['removeIndex'](_0x430724,_0x3c015a)['then'](function(){const _0x2cc2a8=_0x5156aa;logger[_0x2cc2a8('0x7')](_0x2cc2a8('0x6'),_0x430724,_0x3c015a);})['catch'](function(_0x4341ed){const _0x47fd71=_0x5156aa;logger[_0x47fd71('0x7')](JSON[_0x47fd71('0xa')](_0x4341ed));});});},Migration[_0x1dd725('0x12')][_0x1dd725('0x1b')]=function(_0x1cb1eb){const _0x37ea43=_0x1dd725,_0x3c912a=this;this[_0x37ea43('0x0')][_0x37ea43('0xc')](function(){const _0x38f58e=_0x37ea43;return _0x3c912a[_0x38f58e('0x22')][_0x38f58e('0x9')][_0x38f58e('0x1b')](_0x1cb1eb)[_0x38f58e('0x13')](function(){const _0x398064=_0x38f58e;logger[_0x398064('0x7')](_0x398064('0x1f'),_0x1cb1eb);})[_0x38f58e('0x17')](function(_0x2b6aa0){const _0x31c738=_0x38f58e;logger[_0x31c738('0x7')](JSON[_0x31c738('0xa')](_0x2b6aa0));});});},Migration[_0x1dd725('0x12')][_0x1dd725('0x15')]=function(_0x37230d,_0x54e63c){const _0x46dd22=_0x1dd725,_0x11929a=this;this[_0x46dd22('0x0')][_0x46dd22('0xc')](function(){const _0x2f6de4=_0x46dd22;return _0x11929a[_0x2f6de4('0x22')][_0x2f6de4('0x15')](_0x37230d,_0x54e63c)[_0x2f6de4('0x13')](function(){const _0x7fa501=_0x2f6de4;logger['info'](_0x7fa501('0x18'),_0x54e63c,_0x37230d);})[_0x2f6de4('0x17')](function(_0x52c2f5){const _0x46e882=_0x2f6de4;logger[_0x46e882('0x7')](util[_0x46e882('0x1')](_0x52c2f5,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x4c05e0,_0x2bf456,_0x28ba29){const _0x4901aa=_0x1dd725,_0x393385=this;this[_0x4901aa('0x0')]['enqueue'](function(){const _0xbc12dc=_0x4901aa;return _0x393385['queryInterface'][_0xbc12dc('0x8')](_0x4c05e0,_0x2bf456,_0x28ba29)[_0xbc12dc('0x13')](function(){const _0x11ba29=_0xbc12dc;logger['info'](_0x11ba29('0x10'),_0x2bf456,_0x28ba29,_0x4c05e0);})[_0xbc12dc('0x17')](function(_0x1ee5bc){const _0x303b2f=_0xbc12dc;logger[_0x303b2f('0x7')](util[_0x303b2f('0x1')](_0x1ee5bc,{'showHidden':![],'depth':null}));});});},Migration[_0x1dd725('0x12')]['final']=function(_0x2a51cf){const _0x2d9297=_0x1dd725;this['sequence'][_0x2d9297('0xc')](function(){return _0x2a51cf();});},module[_0x1dd725('0x1e')]={'up':function(_0x157cc5){return new Promise(function(_0x2bd75b){const _0x703bff=a969_0x39ec,_0x5b48f6=new Migration(_0x157cc5);_0x5b48f6['query'](_0x703bff('0xe')),_0x5b48f6['query'](_0x703bff('0x16')),_0x5b48f6[_0x703bff('0x1b')](_0x703bff('0x11')),_0x5b48f6[_0x703bff('0x1b')]('ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)'),_0x5b48f6['query'](_0x703bff('0xf')),_0x5b48f6[_0x703bff('0x1b')](_0x703bff('0x14')),_0x5b48f6[_0x703bff('0x1b')](_0x703bff('0xb')),_0x5b48f6['final'](_0x2bd75b);});},'down':function(){}}; \ No newline at end of file +const a969_0x2c9c=['query','changeColumn','ALTER\x20TABLE\x20int_zoho_fields\x20add\x20UNIQUE\x20INDEX\x20zoho_unique_index\x20(idField,\x20FieldId)','addColumn','renameColumn','ALTER\x20TABLE\x20int_desk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ALTER\x20TABLE\x20int_sugarcrm_fields\x20add\x20UNIQUE\x20INDEX\x20sugarcrm_unique_index\x20(idField,\x20FieldId)','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','catch','tail','stringify','sequelize','addIndex\x20%s\x20%s\x20%s','enqueue','ALTER\x20TABLE\x20int_zendesk_fields\x20add\x20UNIQUE\x20INDEX\x20zendesk_unique_index\x20(idField,\x20FieldId)','final','query\x20%s','info','ALTER\x20TABLE\x20int_salesforce_fields\x20add\x20UNIQUE\x20INDEX\x20salesforce_unique_index\x20(idField,\x20FieldId)','join','then','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','prototype','sequence','dropTable','ALTER\x20TABLE\x20int_freshdesk_fields\x20add\x20UNIQUE\x20INDEX\x20desk_unique_index\x20(idField,\x20FieldId)','finally','queryInterface'];(function(_0x80aaaa,_0x2c9c8e){const _0x428075=function(_0xba135b){while(--_0xba135b){_0x80aaaa['push'](_0x80aaaa['shift']());}};_0x428075(++_0x2c9c8e);}(a969_0x2c9c,0xc4));const a969_0x4280=function(_0x80aaaa,_0x2c9c8e){_0x80aaaa=_0x80aaaa-0x0;let _0x428075=a969_0x2c9c[_0x80aaaa];return _0x428075;};const _0xbe0255=a969_0x4280;'use strict';const util=require('util'),logger=require('../config/logger')(_0xbe0255('0x6')),Sequence=function(){};Sequence[_0xbe0255('0x16')][_0xbe0255('0xc')]=function(_0xba135b){const _0x5e742d=_0xbe0255;this[_0x5e742d('0x8')]=this[_0x5e742d('0x8')]?this[_0x5e742d('0x8')][_0x5e742d('0x1a')](_0xba135b):_0xba135b();};const Migration=function(_0x31be73){const _0x4489a7=_0xbe0255;this['queryInterface']=_0x31be73,this[_0x4489a7('0x17')]=new Sequence();};Migration[_0xbe0255('0x16')][_0xbe0255('0x1d')]=function(_0x46b051,_0x476f1c,_0x29ee5c){const _0x4a9e1=_0xbe0255,_0x5c207a=this;this[_0x4a9e1('0x17')][_0x4a9e1('0xc')](function(){const _0x284fd0=_0x4a9e1;return _0x5c207a['queryInterface']['changeColumn'](_0x46b051,_0x476f1c,_0x29ee5c)[_0x284fd0('0x13')](function(){const _0x3ba070=_0x284fd0;logger[_0x3ba070('0x10')](_0x3ba070('0x5'),_0x476f1c,_0x46b051);})['catch'](function(_0x5c2c7f){const _0x3e6a8d=_0x284fd0;logger[_0x3e6a8d('0x10')](JSON[_0x3e6a8d('0x9')](_0x5c2c7f));});});},Migration['prototype'][_0xbe0255('0x1f')]=function(_0x170d5b,_0x5d7b62,_0x59b064){const _0x1363f0=_0xbe0255,_0x41eb5a=this;this[_0x1363f0('0x17')][_0x1363f0('0xc')](function(){const _0x250609=_0x1363f0;return _0x41eb5a[_0x250609('0x1b')][_0x250609('0x1f')](_0x170d5b,_0x5d7b62,_0x59b064)[_0x250609('0x13')](function(){const _0xf5e498=_0x250609;logger[_0xf5e498('0x10')]('Added\x20column\x20%s\x20to\x20%s',_0x5d7b62,_0x170d5b);})[_0x250609('0x7')](function(_0x7744f3){const _0x40d62e=_0x250609;logger[_0x40d62e('0x10')](JSON['stringify'](_0x7744f3));});});},Migration['prototype'][_0xbe0255('0x18')]=function(_0x2714fc){const _0x3dd0ac=_0xbe0255,_0x4fc9ec=this;this[_0x3dd0ac('0x17')]['enqueue'](function(){const _0x18157a=_0x3dd0ac;return _0x4fc9ec['queryInterface'][_0x18157a('0x18')](_0x2714fc,{'force':!![]})[_0x18157a('0x13')](function(){const _0x2d39ce=_0x18157a;logger[_0x2d39ce('0x10')](_0x2d39ce('0x15'),_0x2714fc);})[_0x18157a('0x7')](function(_0x3af73c){const _0x4ea59a=_0x18157a;logger['info'](JSON[_0x4ea59a('0x9')](_0x3af73c));});});},Migration['prototype'][_0xbe0255('0x2')]=function(_0x5e2e4d,_0x29eb16,_0x105429){const _0x3b71eb=_0xbe0255,_0x48f466=this;this[_0x3b71eb('0x17')][_0x3b71eb('0xc')](function(){const _0x33883c=_0x3b71eb;return _0x48f466[_0x33883c('0x1b')][_0x33883c('0x2')](_0x5e2e4d,_0x29eb16,{'indexName':_0x105429})['then'](function(){const _0x334a33=_0x33883c;logger[_0x334a33('0x10')](_0x334a33('0xb'),_0x5e2e4d,_0x29eb16[_0x334a33('0x12')](','),_0x105429);})['catch'](function(_0xc8eebc){const _0x33e3b9=_0x33883c;logger[_0x33e3b9('0x10')](JSON[_0x33e3b9('0x9')](_0xc8eebc));});});},Migration[_0xbe0255('0x16')]['removeIndex']=function(_0x54cb65,_0x41eff3){const _0x4b9373=_0xbe0255,_0x20e023=this;this[_0x4b9373('0x17')][_0x4b9373('0xc')](function(){const _0x5484e8=_0x4b9373;return _0x20e023[_0x5484e8('0x1b')]['removeIndex'](_0x54cb65,_0x41eff3)[_0x5484e8('0x13')](function(){const _0x3352ca=_0x5484e8;logger[_0x3352ca('0x10')](_0x3352ca('0x14'),_0x54cb65,_0x41eff3);})[_0x5484e8('0x7')](function(_0x48e1c5){const _0x509223=_0x5484e8;logger[_0x509223('0x10')](JSON[_0x509223('0x9')](_0x48e1c5));});});},Migration[_0xbe0255('0x16')][_0xbe0255('0x1c')]=function(_0x5eb221){const _0x35a31c=_0xbe0255,_0x2adcca=this;this[_0x35a31c('0x17')][_0x35a31c('0xc')](function(){const _0x429491=_0x35a31c;return _0x2adcca['queryInterface'][_0x429491('0xa')][_0x429491('0x1c')](_0x5eb221)[_0x429491('0x13')](function(){const _0x263e5a=_0x429491;logger['info'](_0x263e5a('0xf'),_0x5eb221);})[_0x429491('0x7')](function(_0x2731c1){const _0x3386d9=_0x429491;logger[_0x3386d9('0x10')](JSON[_0x3386d9('0x9')](_0x2731c1));});});},Migration[_0xbe0255('0x16')]['removeColumn']=function(_0x1c5f87,_0x37dee1){const _0x747b70=_0xbe0255,_0x5100bb=this;this['sequence'][_0x747b70('0xc')](function(){const _0x572618=_0x747b70;return _0x5100bb[_0x572618('0x1b')]['removeColumn'](_0x1c5f87,_0x37dee1)[_0x572618('0x13')](function(){const _0x5a1d7a=_0x572618;logger[_0x5a1d7a('0x10')]('Removed\x20column\x20%s\x20from\x20%s',_0x37dee1,_0x1c5f87);})['catch'](function(_0x1d86c1){logger['info'](util['inspect'](_0x1d86c1,{'showHidden':![],'depth':null}));});});},Migration[_0xbe0255('0x16')][_0xbe0255('0x0')]=function(_0x497dbe,_0x3baf49,_0x3481f4){const _0x6598d3=_0xbe0255,_0x1f8bda=this;this['sequence'][_0x6598d3('0xc')](function(){const _0x269104=_0x6598d3;return _0x1f8bda[_0x269104('0x1b')][_0x269104('0x0')](_0x497dbe,_0x3baf49,_0x3481f4)[_0x269104('0x13')](function(){const _0xeee0f3=_0x269104;logger[_0xeee0f3('0x10')](_0xeee0f3('0x3'),_0x3baf49,_0x3481f4,_0x497dbe);})['catch'](function(_0xa4b23a){const _0x26e19c=_0x269104;logger[_0x26e19c('0x10')](util['inspect'](_0xa4b23a,{'showHidden':![],'depth':null}));});});},Migration[_0xbe0255('0x16')][_0xbe0255('0xe')]=function(_0x50f00f){const _0x18b3b7=_0xbe0255;this[_0x18b3b7('0x17')][_0x18b3b7('0xc')](function(){return _0x50f00f();});},module['exports']={'up':function(_0x34e071){return new Promise(function(_0x146b02){const _0x391d0e=a969_0x4280,_0x1ae84a=new Migration(_0x34e071);_0x1ae84a[_0x391d0e('0x1c')](_0x391d0e('0x1')),_0x1ae84a[_0x391d0e('0x1c')](_0x391d0e('0x19')),_0x1ae84a[_0x391d0e('0x1c')](_0x391d0e('0x11')),_0x1ae84a['query'](_0x391d0e('0x4')),_0x1ae84a[_0x391d0e('0x1c')]('ALTER\x20TABLE\x20int_vtiger_fields\x20add\x20UNIQUE\x20INDEX\x20vtiger_unique_index\x20(idField,\x20FieldId)'),_0x1ae84a[_0x391d0e('0x1c')](_0x391d0e('0xd')),_0x1ae84a[_0x391d0e('0x1c')](_0x391d0e('0x1e')),_0x1ae84a['final'](_0x146b02);});},'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 7504a93..9614408 100644 --- a/server/migrations/2.2.5.js +++ b/server/migrations/2.2.5.js @@ -1 +1 @@ -const a970_0x3e32=['addColumn','dropTable','addIndex\x20%s\x20%s\x20%s','changeColumn','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','../config/logger','final','sequelize','enqueue','tail','info','addIndex','inspect','finally','removeIndex\x20%s\x20%s','exports','catch','then','query','sequence','Removed\x20column\x20%s\x20from\x20%s','queryInterface','renameColumn','prototype'];(function(_0x486c0a,_0x3e32ec){const _0x55a01f=function(_0x6b711f){while(--_0x6b711f){_0x486c0a['push'](_0x486c0a['shift']());}};_0x55a01f(++_0x3e32ec);}(a970_0x3e32,0x86));const a970_0x55a0=function(_0x486c0a,_0x3e32ec){_0x486c0a=_0x486c0a-0x0;let _0x55a01f=a970_0x3e32[_0x486c0a];return _0x55a01f;};const _0xa21bc4=a970_0x55a0;'use strict';const util=require('util'),logger=require(_0xa21bc4('0x3'))('migration'),Sequence=function(){};Sequence[_0xa21bc4('0x15')][_0xa21bc4('0x6')]=function(_0x6b711f){const _0x191b95=_0xa21bc4;this[_0x191b95('0x7')]=this[_0x191b95('0x7')]?this[_0x191b95('0x7')][_0x191b95('0xb')](_0x6b711f):_0x6b711f();};const Migration=function(_0x27937b){const _0x3cf8ac=_0xa21bc4;this[_0x3cf8ac('0x13')]=_0x27937b,this[_0x3cf8ac('0x11')]=new Sequence();};Migration[_0xa21bc4('0x15')][_0xa21bc4('0x19')]=function(_0x23b17c,_0x305bee,_0x53ce78){const _0x4bf9e7=_0xa21bc4,_0x149e38=this;this[_0x4bf9e7('0x11')][_0x4bf9e7('0x6')](function(){const _0x388390=_0x4bf9e7;return _0x149e38[_0x388390('0x13')][_0x388390('0x19')](_0x23b17c,_0x305bee,_0x53ce78)[_0x388390('0xf')](function(){const _0x1d9ee4=_0x388390;logger[_0x1d9ee4('0x8')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x305bee,_0x23b17c);})[_0x388390('0xe')](function(_0x5e7684){const _0x593c62=_0x388390;logger[_0x593c62('0x8')](JSON[_0x593c62('0x0')](_0x5e7684));});});},Migration['prototype']['addColumn']=function(_0x27ca9a,_0x4ae1cf,_0x2e8fe4){const _0x3feafe=_0xa21bc4,_0x4ea52=this;this[_0x3feafe('0x11')][_0x3feafe('0x6')](function(){const _0x2dfa2f=_0x3feafe;return _0x4ea52['queryInterface'][_0x2dfa2f('0x16')](_0x27ca9a,_0x4ae1cf,_0x2e8fe4)[_0x2dfa2f('0xf')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4ae1cf,_0x27ca9a);})['catch'](function(_0xf89fcc){const _0xc7eac1=_0x2dfa2f;logger[_0xc7eac1('0x8')](JSON[_0xc7eac1('0x0')](_0xf89fcc));});});},Migration[_0xa21bc4('0x15')][_0xa21bc4('0x17')]=function(_0x315461){const _0x4f728e=_0xa21bc4,_0x4ca788=this;this[_0x4f728e('0x11')][_0x4f728e('0x6')](function(){const _0x4edd9d=_0x4f728e;return _0x4ca788[_0x4edd9d('0x13')][_0x4edd9d('0x17')](_0x315461,{'force':!![]})[_0x4edd9d('0xf')](function(){const _0x563daf=_0x4edd9d;logger[_0x563daf('0x8')]('table\x20dropped\x20%s',_0x315461);})[_0x4edd9d('0xe')](function(_0x27d52b){const _0x38ef2f=_0x4edd9d;logger[_0x38ef2f('0x8')](JSON['stringify'](_0x27d52b));});});},Migration[_0xa21bc4('0x15')][_0xa21bc4('0x9')]=function(_0x23254f,_0x43b23f,_0x1f9002){const _0x4a2a7b=_0xa21bc4,_0x2d4c1f=this;this[_0x4a2a7b('0x11')][_0x4a2a7b('0x6')](function(){const _0x876a9b=_0x4a2a7b;return _0x2d4c1f[_0x876a9b('0x13')][_0x876a9b('0x9')](_0x23254f,_0x43b23f,{'indexName':_0x1f9002})[_0x876a9b('0xf')](function(){const _0x5774fc=_0x876a9b;logger[_0x5774fc('0x8')](_0x5774fc('0x18'),_0x23254f,_0x43b23f['join'](','),_0x1f9002);})[_0x876a9b('0xe')](function(_0x288d66){const _0x4548b6=_0x876a9b;logger['info'](JSON[_0x4548b6('0x0')](_0x288d66));});});},Migration['prototype'][_0xa21bc4('0x2')]=function(_0x102d22,_0x195e6a){const _0x7253b0=_0xa21bc4,_0x352e57=this;this[_0x7253b0('0x11')][_0x7253b0('0x6')](function(){const _0x11efc3=_0x7253b0;return _0x352e57[_0x11efc3('0x13')]['removeIndex'](_0x102d22,_0x195e6a)[_0x11efc3('0xf')](function(){const _0x2b691d=_0x11efc3;logger[_0x2b691d('0x8')](_0x2b691d('0xc'),_0x102d22,_0x195e6a);})[_0x11efc3('0xe')](function(_0x4ab348){const _0x1e00d8=_0x11efc3;logger[_0x1e00d8('0x8')](JSON[_0x1e00d8('0x0')](_0x4ab348));});});},Migration[_0xa21bc4('0x15')][_0xa21bc4('0x10')]=function(_0x4e9932){const _0x5dbd31=_0xa21bc4,_0x5ce120=this;this[_0x5dbd31('0x11')][_0x5dbd31('0x6')](function(){const _0x1aad4a=_0x5dbd31;return _0x5ce120[_0x1aad4a('0x13')][_0x1aad4a('0x5')]['query'](_0x4e9932)[_0x1aad4a('0xf')](function(){const _0x47308a=_0x1aad4a;logger[_0x47308a('0x8')]('query\x20%s',_0x4e9932);})[_0x1aad4a('0xe')](function(_0x12fe57){const _0x41c581=_0x1aad4a;logger[_0x41c581('0x8')](JSON['stringify'](_0x12fe57));});});},Migration['prototype']['removeColumn']=function(_0xe49cda,_0x25d0cd){const _0x384be5=_0xa21bc4,_0x52e8f1=this;this[_0x384be5('0x11')][_0x384be5('0x6')](function(){const _0x3ad7d6=_0x384be5;return _0x52e8f1['queryInterface']['removeColumn'](_0xe49cda,_0x25d0cd)[_0x3ad7d6('0xf')](function(){const _0x23356b=_0x3ad7d6;logger[_0x23356b('0x8')](_0x23356b('0x12'),_0x25d0cd,_0xe49cda);})[_0x3ad7d6('0xe')](function(_0x22962f){const _0x202e5f=_0x3ad7d6;logger[_0x202e5f('0x8')](util['inspect'](_0x22962f,{'showHidden':![],'depth':null}));});});},Migration[_0xa21bc4('0x15')]['renameColumn']=function(_0x36a8f8,_0x32a352,_0xd681f){const _0x459b75=_0xa21bc4,_0x31dc61=this;this[_0x459b75('0x11')][_0x459b75('0x6')](function(){const _0x3583a4=_0x459b75;return _0x31dc61[_0x3583a4('0x13')][_0x3583a4('0x14')](_0x36a8f8,_0x32a352,_0xd681f)['then'](function(){const _0x35bdc5=_0x3583a4;logger[_0x35bdc5('0x8')](_0x35bdc5('0x1'),_0x32a352,_0xd681f,_0x36a8f8);})['catch'](function(_0xb115d3){const _0x4a371d=_0x3583a4;logger['info'](util[_0x4a371d('0xa')](_0xb115d3,{'showHidden':![],'depth':null}));});});},Migration[_0xa21bc4('0x15')][_0xa21bc4('0x4')]=function(_0x243441){const _0x4bb7f5=_0xa21bc4;this[_0x4bb7f5('0x11')]['enqueue'](function(){return _0x243441();});},module[_0xa21bc4('0xd')]={'up':function(_0x1e8c27){return new Promise(function(_0x1f43b6){const _0x3a580b=a970_0x55a0,_0x3a68ef=new Migration(_0x1e8c27);_0x3a68ef[_0x3a580b('0x4')](_0x1f43b6);});},'down':function(){}}; \ No newline at end of file +const a970_0xc522=['addColumn','finally','inspect','exports','sequence','enqueue','then','sequelize','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','catch','join','queryInterface','table\x20dropped\x20%s','renameColumn','info','final','../config/logger','dropTable','removeColumn','removeIndex','migration','addIndex','stringify','query','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','Removed\x20column\x20%s\x20from\x20%s'];(function(_0x3a25a4,_0xc52284){const _0x315650=function(_0x5a28fb){while(--_0x5a28fb){_0x3a25a4['push'](_0x3a25a4['shift']());}};_0x315650(++_0xc52284);}(a970_0xc522,0x103));const a970_0x3156=function(_0x3a25a4,_0xc52284){_0x3a25a4=_0x3a25a4-0x0;let _0x315650=a970_0xc522[_0x3a25a4];return _0x315650;};const _0x1c7a2a=a970_0x3156;'use strict';const util=require('util'),logger=require(_0x1c7a2a('0x9'))(_0x1c7a2a('0xd')),Sequence=function(){};Sequence[_0x1c7a2a('0x11')][_0x1c7a2a('0x1a')]=function(_0x5a28fb){const _0x338c61=_0x1c7a2a;this['tail']=this[_0x338c61('0x13')]?this[_0x338c61('0x13')][_0x338c61('0x16')](_0x5a28fb):_0x5a28fb();};const Migration=function(_0x21bb9b){const _0x34da85=_0x1c7a2a;this[_0x34da85('0x4')]=_0x21bb9b,this[_0x34da85('0x19')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x5d508c,_0x9556,_0x20a61a){const _0x5ab16a=_0x1c7a2a,_0x390a33=this;this[_0x5ab16a('0x19')][_0x5ab16a('0x1a')](function(){const _0x2c5738=_0x5ab16a;return _0x390a33['queryInterface']['changeColumn'](_0x5d508c,_0x9556,_0x20a61a)[_0x2c5738('0x1b')](function(){const _0x4b34f6=_0x2c5738;logger[_0x4b34f6('0x7')](_0x4b34f6('0x12'),_0x9556,_0x5d508c);})['catch'](function(_0x4f68e9){logger['info'](JSON['stringify'](_0x4f68e9));});});},Migration[_0x1c7a2a('0x11')][_0x1c7a2a('0x15')]=function(_0x1772f8,_0x4182c5,_0x344871){const _0x2da51=_0x1c7a2a,_0x44e6e2=this;this['sequence'][_0x2da51('0x1a')](function(){const _0x727ee=_0x2da51;return _0x44e6e2[_0x727ee('0x4')][_0x727ee('0x15')](_0x1772f8,_0x4182c5,_0x344871)[_0x727ee('0x1b')](function(){const _0x74d940=_0x727ee;logger[_0x74d940('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0x4182c5,_0x1772f8);})[_0x727ee('0x2')](function(_0x58e0d5){const _0x53c0e8=_0x727ee;logger[_0x53c0e8('0x7')](JSON[_0x53c0e8('0xf')](_0x58e0d5));});});},Migration[_0x1c7a2a('0x11')][_0x1c7a2a('0xa')]=function(_0x5a4f4d){const _0x2c7237=_0x1c7a2a,_0x596b0b=this;this[_0x2c7237('0x19')]['enqueue'](function(){const _0x55cdbf=_0x2c7237;return _0x596b0b[_0x55cdbf('0x4')][_0x55cdbf('0xa')](_0x5a4f4d,{'force':!![]})[_0x55cdbf('0x1b')](function(){const _0x4c1b8d=_0x55cdbf;logger[_0x4c1b8d('0x7')](_0x4c1b8d('0x5'),_0x5a4f4d);})['catch'](function(_0x10cd4f){const _0x46c384=_0x55cdbf;logger[_0x46c384('0x7')](JSON['stringify'](_0x10cd4f));});});},Migration[_0x1c7a2a('0x11')][_0x1c7a2a('0xe')]=function(_0xf0504e,_0x206c5a,_0x34b616){const _0x495c31=_0x1c7a2a,_0x234627=this;this[_0x495c31('0x19')]['enqueue'](function(){const _0x51412c=_0x495c31;return _0x234627['queryInterface'][_0x51412c('0xe')](_0xf0504e,_0x206c5a,{'indexName':_0x34b616})[_0x51412c('0x1b')](function(){const _0x5410d1=_0x51412c;logger[_0x5410d1('0x7')]('addIndex\x20%s\x20%s\x20%s',_0xf0504e,_0x206c5a[_0x5410d1('0x3')](','),_0x34b616);})[_0x51412c('0x2')](function(_0x21601c){const _0x390206=_0x51412c;logger[_0x390206('0x7')](JSON[_0x390206('0xf')](_0x21601c));});});},Migration[_0x1c7a2a('0x11')][_0x1c7a2a('0xc')]=function(_0x5bb9bb,_0x1d58e4){const _0x18db21=_0x1c7a2a,_0x2dad0f=this;this[_0x18db21('0x19')][_0x18db21('0x1a')](function(){const _0x4c75c8=_0x18db21;return _0x2dad0f[_0x4c75c8('0x4')][_0x4c75c8('0xc')](_0x5bb9bb,_0x1d58e4)['then'](function(){const _0x3b1c5f=_0x4c75c8;logger[_0x3b1c5f('0x7')]('removeIndex\x20%s\x20%s',_0x5bb9bb,_0x1d58e4);})[_0x4c75c8('0x2')](function(_0x40846c){const _0xc7332e=_0x4c75c8;logger[_0xc7332e('0x7')](JSON['stringify'](_0x40846c));});});},Migration[_0x1c7a2a('0x11')]['query']=function(_0x3205ef){const _0xf12ce2=_0x1c7a2a,_0x43f976=this;this[_0xf12ce2('0x19')]['enqueue'](function(){const _0x67af95=_0xf12ce2;return _0x43f976[_0x67af95('0x4')][_0x67af95('0x0')][_0x67af95('0x10')](_0x3205ef)[_0x67af95('0x1b')](function(){const _0xa952bb=_0x67af95;logger[_0xa952bb('0x7')]('query\x20%s',_0x3205ef);})[_0x67af95('0x2')](function(_0x401daf){const _0x5ac2b1=_0x67af95;logger[_0x5ac2b1('0x7')](JSON[_0x5ac2b1('0xf')](_0x401daf));});});},Migration[_0x1c7a2a('0x11')]['removeColumn']=function(_0x408127,_0x13fb9e){const _0xf315dd=_0x1c7a2a,_0x147c74=this;this[_0xf315dd('0x19')]['enqueue'](function(){const _0x6fb380=_0xf315dd;return _0x147c74[_0x6fb380('0x4')][_0x6fb380('0xb')](_0x408127,_0x13fb9e)['then'](function(){const _0x179ef6=_0x6fb380;logger[_0x179ef6('0x7')](_0x179ef6('0x14'),_0x13fb9e,_0x408127);})[_0x6fb380('0x2')](function(_0x5afec2){const _0x574bbf=_0x6fb380;logger[_0x574bbf('0x7')](util['inspect'](_0x5afec2,{'showHidden':![],'depth':null}));});});},Migration[_0x1c7a2a('0x11')][_0x1c7a2a('0x6')]=function(_0x22af2b,_0xedf52d,_0x5573da){const _0x315a3a=_0x1c7a2a,_0x3b971d=this;this[_0x315a3a('0x19')]['enqueue'](function(){const _0x4ed492=_0x315a3a;return _0x3b971d[_0x4ed492('0x4')][_0x4ed492('0x6')](_0x22af2b,_0xedf52d,_0x5573da)[_0x4ed492('0x1b')](function(){const _0x188a22=_0x4ed492;logger[_0x188a22('0x7')](_0x188a22('0x1'),_0xedf52d,_0x5573da,_0x22af2b);})[_0x4ed492('0x2')](function(_0xb51f22){const _0x389d0f=_0x4ed492;logger['info'](util[_0x389d0f('0x17')](_0xb51f22,{'showHidden':![],'depth':null}));});});},Migration[_0x1c7a2a('0x11')][_0x1c7a2a('0x8')]=function(_0x9987da){const _0x5752cd=_0x1c7a2a;this[_0x5752cd('0x19')][_0x5752cd('0x1a')](function(){return _0x9987da();});},module[_0x1c7a2a('0x18')]={'up':function(_0x66c19e){return new Promise(function(_0x2f4150){const _0xe9c6ba=a970_0x3156,_0x515d34=new Migration(_0x66c19e);_0x515d34[_0xe9c6ba('0x8')](_0x2f4150);});},'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 95567c4..7f135ae 100644 --- a/server/migrations/2.2.6.js +++ b/server/migrations/2.2.6.js @@ -1 +1 @@ -const a971_0x4576=['exports','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','dropTable','mail_accounts','removeIndex','tail','catch','query','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','removeColumn','addColumn','addIndex\x20%s\x20%s\x20%s','finally','addIndex','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','table\x20dropped\x20%s','sms_accounts','query\x20%s','ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','../config/logger','mandatoryDispositionPauseId','stringify','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','util','openchannel_accounts','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','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','chat_websites','INTEGER','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','info','sequelize','fax_accounts','UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','sequence','changeColumn','inspect','prototype','BOOLEAN','then','mandatoryDisposition','enqueue','migration','queryInterface','voice_queues'];(function(_0x9f0eb8,_0x457678){const _0x470978=function(_0x3be5f5){while(--_0x3be5f5){_0x9f0eb8['push'](_0x9f0eb8['shift']());}};_0x470978(++_0x457678);}(a971_0x4576,0x1a1));const a971_0x4709=function(_0x9f0eb8,_0x457678){_0x9f0eb8=_0x9f0eb8-0x0;let _0x470978=a971_0x4576[_0x9f0eb8];return _0x470978;};const _0x5d9804=a971_0x4709;'use strict';const util=require(_0x5d9804('0x28')),logger=require(_0x5d9804('0x24'))(_0x5d9804('0xc')),Sequence=function(){};Sequence[_0x5d9804('0x7')][_0x5d9804('0xb')]=function(_0x3be5f5){const _0x45d0d9=_0x5d9804;this[_0x45d0d9('0x14')]=this[_0x45d0d9('0x14')]?this[_0x45d0d9('0x14')][_0x45d0d9('0x1d')](_0x3be5f5):_0x3be5f5();};const Migration=function(_0x3a908d){const _0x4126f7=_0x5d9804;this[_0x4126f7('0xd')]=_0x3a908d,this[_0x4126f7('0x4')]=new Sequence();};Migration[_0x5d9804('0x7')]['changeColumn']=function(_0x4b33bf,_0x3c4e95,_0x40fddd){const _0x2072f6=_0x5d9804,_0x3a6df0=this;this[_0x2072f6('0x4')][_0x2072f6('0xb')](function(){const _0x302531=_0x2072f6;return _0x3a6df0[_0x302531('0xd')][_0x302531('0x5')](_0x4b33bf,_0x3c4e95,_0x40fddd)[_0x302531('0x9')](function(){const _0x1e7468=_0x302531;logger[_0x1e7468('0x0')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3c4e95,_0x4b33bf);})['catch'](function(_0x130516){logger['info'](JSON['stringify'](_0x130516));});});},Migration[_0x5d9804('0x7')][_0x5d9804('0x1b')]=function(_0x1ad02f,_0x410417,_0x1c5bf0){const _0x29959e=_0x5d9804,_0x58c8fd=this;this[_0x29959e('0x4')][_0x29959e('0xb')](function(){const _0x2d05ce=_0x29959e;return _0x58c8fd[_0x2d05ce('0xd')]['addColumn'](_0x1ad02f,_0x410417,_0x1c5bf0)[_0x2d05ce('0x9')](function(){const _0x3736fb=_0x2d05ce;logger[_0x3736fb('0x0')](_0x3736fb('0x18'),_0x410417,_0x1ad02f);})['catch'](function(_0x5378a8){const _0x740788=_0x2d05ce;logger[_0x740788('0x0')](JSON['stringify'](_0x5378a8));});});},Migration[_0x5d9804('0x7')][_0x5d9804('0x11')]=function(_0x4725ac){const _0x5e6f35=this;this['sequence']['enqueue'](function(){const _0x1756e4=a971_0x4709;return _0x5e6f35[_0x1756e4('0xd')]['dropTable'](_0x4725ac,{'force':!![]})['then'](function(){const _0x24e92a=_0x1756e4;logger[_0x24e92a('0x0')](_0x24e92a('0x20'),_0x4725ac);})['catch'](function(_0x333ad5){const _0x5387b7=_0x1756e4;logger['info'](JSON[_0x5387b7('0x26')](_0x333ad5));});});},Migration[_0x5d9804('0x7')]['addIndex']=function(_0x331d3a,_0x472127,_0x4785dd){const _0x3e948a=_0x5d9804,_0x342d10=this;this[_0x3e948a('0x4')][_0x3e948a('0xb')](function(){const _0x59c86c=_0x3e948a;return _0x342d10[_0x59c86c('0xd')][_0x59c86c('0x1e')](_0x331d3a,_0x472127,{'indexName':_0x4785dd})[_0x59c86c('0x9')](function(){const _0x452930=_0x59c86c;logger[_0x452930('0x0')](_0x452930('0x1c'),_0x331d3a,_0x472127['join'](','),_0x4785dd);})[_0x59c86c('0x15')](function(_0x5b4174){const _0x1e35b6=_0x59c86c;logger[_0x1e35b6('0x0')](JSON[_0x1e35b6('0x26')](_0x5b4174));});});},Migration[_0x5d9804('0x7')][_0x5d9804('0x13')]=function(_0x4c2041,_0x53ff01){const _0x5534d8=_0x5d9804,_0x5419f8=this;this['sequence'][_0x5534d8('0xb')](function(){const _0x5731e5=_0x5534d8;return _0x5419f8[_0x5731e5('0xd')][_0x5731e5('0x13')](_0x4c2041,_0x53ff01)[_0x5731e5('0x9')](function(){const _0x4ce778=_0x5731e5;logger[_0x4ce778('0x0')]('removeIndex\x20%s\x20%s',_0x4c2041,_0x53ff01);})[_0x5731e5('0x15')](function(_0x139a39){const _0x41882f=_0x5731e5;logger[_0x41882f('0x0')](JSON[_0x41882f('0x26')](_0x139a39));});});},Migration[_0x5d9804('0x7')][_0x5d9804('0x16')]=function(_0x379091){const _0x299107=_0x5d9804,_0x2e0feb=this;this[_0x299107('0x4')][_0x299107('0xb')](function(){const _0x2f0c53=_0x299107;return _0x2e0feb[_0x2f0c53('0xd')][_0x2f0c53('0x1')][_0x2f0c53('0x16')](_0x379091)[_0x2f0c53('0x9')](function(){const _0x4b98f9=_0x2f0c53;logger['info'](_0x4b98f9('0x22'),_0x379091);})[_0x2f0c53('0x15')](function(_0x47face){const _0x38a33e=_0x2f0c53;logger[_0x38a33e('0x0')](JSON[_0x38a33e('0x26')](_0x47face));});});},Migration['prototype']['removeColumn']=function(_0x4e2d28,_0x5c804c){const _0x363dd1=_0x5d9804,_0x4579b4=this;this[_0x363dd1('0x4')][_0x363dd1('0xb')](function(){const _0x448e85=_0x363dd1;return _0x4579b4[_0x448e85('0xd')][_0x448e85('0x1a')](_0x4e2d28,_0x5c804c)[_0x448e85('0x9')](function(){const _0x4d7b1b=_0x448e85;logger['info'](_0x4d7b1b('0x17'),_0x5c804c,_0x4e2d28);})['catch'](function(_0x3bd58c){const _0x16e855=_0x448e85;logger[_0x16e855('0x0')](util[_0x16e855('0x6')](_0x3bd58c,{'showHidden':![],'depth':null}));});});},Migration[_0x5d9804('0x7')]['renameColumn']=function(_0x398184,_0x51651d,_0x442c14){const _0x52b4be=_0x5d9804,_0x755446=this;this[_0x52b4be('0x4')]['enqueue'](function(){const _0x457a16=_0x52b4be;return _0x755446[_0x457a16('0xd')]['renameColumn'](_0x398184,_0x51651d,_0x442c14)[_0x457a16('0x9')](function(){const _0x5ef71c=_0x457a16;logger['info'](_0x5ef71c('0x2a'),_0x51651d,_0x442c14,_0x398184);})[_0x457a16('0x15')](function(_0x4b0ca1){const _0x159af9=_0x457a16;logger[_0x159af9('0x0')](util['inspect'](_0x4b0ca1,{'showHidden':![],'depth':null}));});});},Migration[_0x5d9804('0x7')][_0x5d9804('0x2c')]=function(_0x32b616){const _0x47224b=_0x5d9804;this[_0x47224b('0x4')][_0x47224b('0xb')](function(){return _0x32b616();});},module[_0x5d9804('0xf')]={'up':function(_0x101418,_0x536d5e){return new Promise(function(_0x24a9db){const _0x4939ca=a971_0x4709,_0x40d684=new Migration(_0x101418);_0x40d684['query'](_0x4939ca('0x23')),_0x40d684['query']('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'),_0x40d684[_0x4939ca('0x16')](_0x4939ca('0x3')),_0x40d684[_0x4939ca('0x16')](_0x4939ca('0x19')),_0x40d684[_0x4939ca('0x1b')](_0x4939ca('0xe'),_0x4939ca('0xa'),{'type':_0x536d5e['BOOLEAN'],'defaultValue':![]}),_0x40d684[_0x4939ca('0x1b')]('voice_queues',_0x4939ca('0x25'),{'type':_0x536d5e[_0x4939ca('0x2e')]}),_0x40d684[_0x4939ca('0x16')]('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'),_0x40d684[_0x4939ca('0x1b')](_0x4939ca('0x2d'),'mandatoryDisposition',{'type':_0x536d5e[_0x4939ca('0x8')],'defaultValue':![]}),_0x40d684[_0x4939ca('0x1b')](_0x4939ca('0x2d'),_0x4939ca('0x25'),{'type':_0x536d5e[_0x4939ca('0x2e')]}),_0x40d684['query'](_0x4939ca('0x1f')),_0x40d684[_0x4939ca('0x1b')](_0x4939ca('0x2'),_0x4939ca('0xa'),{'type':_0x536d5e[_0x4939ca('0x8')],'defaultValue':![]}),_0x40d684[_0x4939ca('0x1b')]('fax_accounts',_0x4939ca('0x25'),{'type':_0x536d5e[_0x4939ca('0x2e')]}),_0x40d684[_0x4939ca('0x16')](_0x4939ca('0x2f')),_0x40d684['addColumn'](_0x4939ca('0x12'),'mandatoryDisposition',{'type':_0x536d5e[_0x4939ca('0x8')],'defaultValue':![]}),_0x40d684[_0x4939ca('0x1b')]('mail_accounts',_0x4939ca('0x25'),{'type':_0x536d5e[_0x4939ca('0x2e')]}),_0x40d684[_0x4939ca('0x16')](_0x4939ca('0x27')),_0x40d684[_0x4939ca('0x1b')](_0x4939ca('0x29'),'mandatoryDisposition',{'type':_0x536d5e[_0x4939ca('0x8')],'defaultValue':![]}),_0x40d684[_0x4939ca('0x1b')](_0x4939ca('0x29'),_0x4939ca('0x25'),{'type':_0x536d5e[_0x4939ca('0x2e')]}),_0x40d684[_0x4939ca('0x16')](_0x4939ca('0x2b')),_0x40d684[_0x4939ca('0x1b')](_0x4939ca('0x21'),'mandatoryDisposition',{'type':_0x536d5e[_0x4939ca('0x8')],'defaultValue':![]}),_0x40d684[_0x4939ca('0x1b')](_0x4939ca('0x21'),_0x4939ca('0x25'),{'type':_0x536d5e[_0x4939ca('0x2e')]}),_0x40d684['query'](_0x4939ca('0x10')),_0x40d684[_0x4939ca('0x2c')](_0x24a9db);});},'down':function(){}}; \ No newline at end of file +const a971_0x229f=['catch','openchannel_accounts','mandatoryDisposition','inspect','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','fax_accounts','table\x20dropped\x20%s','changeColumn','mandatoryDispositionPauseId','sequelize','addIndex','addColumn','removeIndex\x20%s\x20%s','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','queryInterface','query','chat_websites','INTEGER','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','then','ALTER\x20TABLE\x20mail_interactions\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','final','Removed\x20column\x20%s\x20from\x20%s','join','sms_accounts','enqueue','prototype','exports','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','addIndex\x20%s\x20%s\x20%s','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','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','removeIndex','query\x20%s','removeColumn','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','info','UPDATE\x20square_projects\x20SET\x20preproduction\x20=\x20REPLACE(preproduction,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','tail','util','UPDATE\x20square_projects\x20SET\x20production\x20=\x20REPLACE(production,\x27labelBackgroundColor=#ffffff;\x27,\x27\x27)','sequence','voice_queues','finally'];(function(_0x496cdb,_0x229f61){const _0x4185c1=function(_0x5f2e30){while(--_0x5f2e30){_0x496cdb['push'](_0x496cdb['shift']());}};_0x4185c1(++_0x229f61);}(a971_0x229f,0x1da));const a971_0x4185=function(_0x496cdb,_0x229f61){_0x496cdb=_0x496cdb-0x0;let _0x4185c1=a971_0x229f[_0x496cdb];return _0x4185c1;};const _0x32c1cf=a971_0x4185;'use strict';const util=require(_0x32c1cf('0x26')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x32c1cf('0x17')]['enqueue']=function(_0x5f2e30){const _0x23e3b6=_0x32c1cf;this[_0x23e3b6('0x25')]=this[_0x23e3b6('0x25')]?this[_0x23e3b6('0x25')][_0x23e3b6('0x2a')](_0x5f2e30):_0x5f2e30();};const Migration=function(_0x2f98fb){const _0xa0f838=_0x32c1cf;this[_0xa0f838('0xb')]=_0x2f98fb,this[_0xa0f838('0x28')]=new Sequence();};Migration['prototype'][_0x32c1cf('0x3')]=function(_0x3918d7,_0x4f63fe,_0x4f5e80){const _0x2299d9=_0x32c1cf,_0x18df09=this;this[_0x2299d9('0x28')]['enqueue'](function(){const _0x22c012=_0x2299d9;return _0x18df09[_0x22c012('0xb')]['changeColumn'](_0x3918d7,_0x4f63fe,_0x4f5e80)[_0x22c012('0x10')](function(){const _0xa61117=_0x22c012;logger['info'](_0xa61117('0xa'),_0x4f63fe,_0x3918d7);})[_0x22c012('0x2b')](function(_0x4ef1e2){const _0x38afec=_0x22c012;logger[_0x38afec('0x23')](JSON[_0x38afec('0x22')](_0x4ef1e2));});});},Migration[_0x32c1cf('0x17')]['addColumn']=function(_0xb068cf,_0x2188bb,_0x5d8470){const _0x3382db=_0x32c1cf,_0x839a8a=this;this[_0x3382db('0x28')][_0x3382db('0x16')](function(){const _0x5f5881=_0x3382db;return _0x839a8a[_0x5f5881('0xb')][_0x5f5881('0x7')](_0xb068cf,_0x2188bb,_0x5d8470)[_0x5f5881('0x10')](function(){const _0x2c6493=_0x5f5881;logger['info'](_0x2c6493('0x1c'),_0x2188bb,_0xb068cf);})[_0x5f5881('0x2b')](function(_0xe93e2f){const _0x2d346c=_0x5f5881;logger[_0x2d346c('0x23')](JSON[_0x2d346c('0x22')](_0xe93e2f));});});},Migration['prototype']['dropTable']=function(_0x262e99){const _0x1b1875=_0x32c1cf,_0x3da20e=this;this[_0x1b1875('0x28')][_0x1b1875('0x16')](function(){const _0x486bae=_0x1b1875;return _0x3da20e['queryInterface']['dropTable'](_0x262e99,{'force':!![]})[_0x486bae('0x10')](function(){const _0x14f1fd=_0x486bae;logger[_0x14f1fd('0x23')](_0x14f1fd('0x2'),_0x262e99);})[_0x486bae('0x2b')](function(_0x3f00c5){const _0x2d34c4=_0x486bae;logger['info'](JSON[_0x2d34c4('0x22')](_0x3f00c5));});});},Migration[_0x32c1cf('0x17')]['addIndex']=function(_0x64390b,_0x416944,_0x2ae5a5){const _0x3091af=_0x32c1cf,_0x49c927=this;this['sequence'][_0x3091af('0x16')](function(){const _0x29d614=_0x3091af;return _0x49c927['queryInterface'][_0x29d614('0x6')](_0x64390b,_0x416944,{'indexName':_0x2ae5a5})[_0x29d614('0x10')](function(){const _0x5b92ae=_0x29d614;logger[_0x5b92ae('0x23')](_0x5b92ae('0x1a'),_0x64390b,_0x416944[_0x5b92ae('0x14')](','),_0x2ae5a5);})['catch'](function(_0xf55dbf){const _0x317689=_0x29d614;logger['info'](JSON[_0x317689('0x22')](_0xf55dbf));});});},Migration[_0x32c1cf('0x17')][_0x32c1cf('0x1e')]=function(_0x43429e,_0x175d2b){const _0x136c7f=_0x32c1cf,_0x1f23a6=this;this[_0x136c7f('0x28')][_0x136c7f('0x16')](function(){const _0x148e60=_0x136c7f;return _0x1f23a6['queryInterface']['removeIndex'](_0x43429e,_0x175d2b)[_0x148e60('0x10')](function(){const _0x46df31=_0x148e60;logger[_0x46df31('0x23')](_0x46df31('0x8'),_0x43429e,_0x175d2b);})[_0x148e60('0x2b')](function(_0x2cc350){const _0x14680b=_0x148e60;logger[_0x14680b('0x23')](JSON[_0x14680b('0x22')](_0x2cc350));});});},Migration[_0x32c1cf('0x17')]['query']=function(_0x3b56a7){const _0x721011=_0x32c1cf,_0x59ffbb=this;this[_0x721011('0x28')]['enqueue'](function(){const _0x394303=_0x721011;return _0x59ffbb[_0x394303('0xb')][_0x394303('0x5')][_0x394303('0xc')](_0x3b56a7)[_0x394303('0x10')](function(){const _0x5e0ae1=_0x394303;logger['info'](_0x5e0ae1('0x1f'),_0x3b56a7);})[_0x394303('0x2b')](function(_0x1832a4){const _0x1a91bb=_0x394303;logger[_0x1a91bb('0x23')](JSON[_0x1a91bb('0x22')](_0x1832a4));});});},Migration[_0x32c1cf('0x17')][_0x32c1cf('0x20')]=function(_0x577427,_0xddfde2){const _0x3f040c=_0x32c1cf,_0x35f7dd=this;this[_0x3f040c('0x28')][_0x3f040c('0x16')](function(){const _0xa6a496=_0x3f040c;return _0x35f7dd[_0xa6a496('0xb')][_0xa6a496('0x20')](_0x577427,_0xddfde2)[_0xa6a496('0x10')](function(){const _0x51bd6f=_0xa6a496;logger['info'](_0x51bd6f('0x13'),_0xddfde2,_0x577427);})[_0xa6a496('0x2b')](function(_0x502abc){const _0x4af90a=_0xa6a496;logger[_0x4af90a('0x23')](util[_0x4af90a('0x2e')](_0x502abc,{'showHidden':![],'depth':null}));});});},Migration[_0x32c1cf('0x17')][_0x32c1cf('0x9')]=function(_0x1cd585,_0x4e1783,_0x50bebe){const _0x3276ad=_0x32c1cf,_0x3d80e0=this;this[_0x3276ad('0x28')]['enqueue'](function(){const _0x55bbf6=_0x3276ad;return _0x3d80e0[_0x55bbf6('0xb')]['renameColumn'](_0x1cd585,_0x4e1783,_0x50bebe)[_0x55bbf6('0x10')](function(){const _0x27e57b=_0x55bbf6;logger[_0x27e57b('0x23')](_0x27e57b('0x0'),_0x4e1783,_0x50bebe,_0x1cd585);})[_0x55bbf6('0x2b')](function(_0x351e87){const _0x2984dd=_0x55bbf6;logger[_0x2984dd('0x23')](util[_0x2984dd('0x2e')](_0x351e87,{'showHidden':![],'depth':null}));});});},Migration[_0x32c1cf('0x17')][_0x32c1cf('0x12')]=function(_0x584097){const _0x46958e=_0x32c1cf;this['sequence'][_0x46958e('0x16')](function(){return _0x584097();});},module[_0x32c1cf('0x18')]={'up':function(_0x3a5967,_0x4d5943){return new Promise(function(_0x4c96d2){const _0x21b2e6=a971_0x4185,_0x1d3bb0=new Migration(_0x3a5967);_0x1d3bb0[_0x21b2e6('0xc')](_0x21b2e6('0x11')),_0x1d3bb0['query'](_0x21b2e6('0xf')),_0x1d3bb0[_0x21b2e6('0xc')](_0x21b2e6('0x24')),_0x1d3bb0[_0x21b2e6('0xc')](_0x21b2e6('0x27')),_0x1d3bb0[_0x21b2e6('0x7')]('voice_queues',_0x21b2e6('0x2d'),{'type':_0x4d5943[_0x21b2e6('0x1d')],'defaultValue':![]}),_0x1d3bb0[_0x21b2e6('0x7')](_0x21b2e6('0x29'),_0x21b2e6('0x4'),{'type':_0x4d5943[_0x21b2e6('0xe')]}),_0x1d3bb0[_0x21b2e6('0xc')](_0x21b2e6('0x1b')),_0x1d3bb0[_0x21b2e6('0x7')](_0x21b2e6('0xd'),_0x21b2e6('0x2d'),{'type':_0x4d5943[_0x21b2e6('0x1d')],'defaultValue':![]}),_0x1d3bb0[_0x21b2e6('0x7')](_0x21b2e6('0xd'),_0x21b2e6('0x4'),{'type':_0x4d5943[_0x21b2e6('0xe')]}),_0x1d3bb0[_0x21b2e6('0xc')]('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'),_0x1d3bb0[_0x21b2e6('0x7')](_0x21b2e6('0x1'),_0x21b2e6('0x2d'),{'type':_0x4d5943['BOOLEAN'],'defaultValue':![]}),_0x1d3bb0['addColumn'](_0x21b2e6('0x1'),_0x21b2e6('0x4'),{'type':_0x4d5943[_0x21b2e6('0xe')]}),_0x1d3bb0[_0x21b2e6('0xc')](_0x21b2e6('0x21')),_0x1d3bb0[_0x21b2e6('0x7')]('mail_accounts',_0x21b2e6('0x2d'),{'type':_0x4d5943[_0x21b2e6('0x1d')],'defaultValue':![]}),_0x1d3bb0['addColumn']('mail_accounts','mandatoryDispositionPauseId',{'type':_0x4d5943[_0x21b2e6('0xe')]}),_0x1d3bb0['query']('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'),_0x1d3bb0['addColumn'](_0x21b2e6('0x2c'),'mandatoryDisposition',{'type':_0x4d5943['BOOLEAN'],'defaultValue':![]}),_0x1d3bb0[_0x21b2e6('0x7')](_0x21b2e6('0x2c'),'mandatoryDispositionPauseId',{'type':_0x4d5943[_0x21b2e6('0xe')]}),_0x1d3bb0[_0x21b2e6('0xc')](_0x21b2e6('0x19')),_0x1d3bb0[_0x21b2e6('0x7')](_0x21b2e6('0x15'),_0x21b2e6('0x2d'),{'type':_0x4d5943[_0x21b2e6('0x1d')],'defaultValue':![]}),_0x1d3bb0[_0x21b2e6('0x7')](_0x21b2e6('0x15'),_0x21b2e6('0x4'),{'type':_0x4d5943[_0x21b2e6('0xe')]}),_0x1d3bb0[_0x21b2e6('0xc')]('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'),_0x1d3bb0[_0x21b2e6('0x12')](_0x4c96d2);});},'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 f11d789..b404109 100644 --- a/server/migrations/2.3.0.js +++ b/server/migrations/2.3.0.js @@ -1 +1 @@ -const a972_0x4952=['apiKeyNonce','report_call','STRING','renameColumn','../config/logger','stringify','then','tail','queryInterface','removeIndex','Added\x20column\x20%s\x20to\x20%s','enqueue','util','addColumn','addIndex','uniqueid','users','Removed\x20column\x20%s\x20from\x20%s','query','final','query\x20%s','catch','sequence','info','removeColumn','sequelize','migration','join','dropTable','apiKeyIat','changeColumn','inspect','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype'];(function(_0x175b18,_0x49523a){const _0x375b46=function(_0x5d34b3){while(--_0x5d34b3){_0x175b18['push'](_0x175b18['shift']());}};_0x375b46(++_0x49523a);}(a972_0x4952,0x10a));const a972_0x375b=function(_0x175b18,_0x49523a){_0x175b18=_0x175b18-0x0;let _0x375b46=a972_0x4952[_0x175b18];return _0x375b46;};const _0x4fe2f2=a972_0x375b;'use strict';const util=require(_0x4fe2f2('0x1a')),logger=require(_0x4fe2f2('0x12'))(_0x4fe2f2('0x5')),Sequence=function(){};Sequence[_0x4fe2f2('0xd')][_0x4fe2f2('0x19')]=function(_0x5d34b3){const _0x7da9c2=_0x4fe2f2;this['tail']=this[_0x7da9c2('0x15')]?this[_0x7da9c2('0x15')]['finally'](_0x5d34b3):_0x5d34b3();};const Migration=function(_0x333ec3){const _0x7031a4=_0x4fe2f2;this[_0x7031a4('0x16')]=_0x333ec3,this[_0x7031a4('0x1')]=new Sequence();};Migration[_0x4fe2f2('0xd')][_0x4fe2f2('0x9')]=function(_0x2fc200,_0x5a1d42,_0x572df9){const _0x629dcb=_0x4fe2f2,_0x3138b8=this;this['sequence'][_0x629dcb('0x19')](function(){const _0x3036bf=_0x629dcb;return _0x3138b8[_0x3036bf('0x16')][_0x3036bf('0x9')](_0x2fc200,_0x5a1d42,_0x572df9)['then'](function(){const _0x38b4c6=_0x3036bf;logger[_0x38b4c6('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5a1d42,_0x2fc200);})[_0x3036bf('0x0')](function(_0x4a0380){const _0x499783=_0x3036bf;logger['info'](JSON[_0x499783('0x13')](_0x4a0380));});});},Migration['prototype'][_0x4fe2f2('0x1b')]=function(_0x53d30f,_0x43186f,_0x33eec4){const _0x54a68a=_0x4fe2f2,_0x2d9d6c=this;this[_0x54a68a('0x1')][_0x54a68a('0x19')](function(){const _0x1c13be=_0x54a68a;return _0x2d9d6c['queryInterface'][_0x1c13be('0x1b')](_0x53d30f,_0x43186f,_0x33eec4)[_0x1c13be('0x14')](function(){const _0x2ac68a=_0x1c13be;logger[_0x2ac68a('0x2')](_0x2ac68a('0x18'),_0x43186f,_0x53d30f);})['catch'](function(_0x2acd07){const _0x2e3c87=_0x1c13be;logger[_0x2e3c87('0x2')](JSON['stringify'](_0x2acd07));});});},Migration['prototype'][_0x4fe2f2('0x7')]=function(_0x14ac16){const _0xe3c06a=_0x4fe2f2,_0x598aeb=this;this[_0xe3c06a('0x1')][_0xe3c06a('0x19')](function(){const _0x5e08d1=_0xe3c06a;return _0x598aeb[_0x5e08d1('0x16')]['dropTable'](_0x14ac16,{'force':!![]})['then'](function(){const _0x127383=_0x5e08d1;logger[_0x127383('0x2')](_0x127383('0xb'),_0x14ac16);})[_0x5e08d1('0x0')](function(_0xb86a5d){logger['info'](JSON['stringify'](_0xb86a5d));});});},Migration[_0x4fe2f2('0xd')][_0x4fe2f2('0x1c')]=function(_0x195ea4,_0x3ce0e0,_0x2e1745){const _0x2aa5e1=_0x4fe2f2,_0x81dacf=this;this[_0x2aa5e1('0x1')][_0x2aa5e1('0x19')](function(){const _0x176e3a=_0x2aa5e1;return _0x81dacf[_0x176e3a('0x16')][_0x176e3a('0x1c')](_0x195ea4,_0x3ce0e0,{'indexName':_0x2e1745})[_0x176e3a('0x14')](function(){const _0x9515f4=_0x176e3a;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x195ea4,_0x3ce0e0[_0x9515f4('0x6')](','),_0x2e1745);})[_0x176e3a('0x0')](function(_0x2492ff){const _0x138362=_0x176e3a;logger[_0x138362('0x2')](JSON[_0x138362('0x13')](_0x2492ff));});});},Migration[_0x4fe2f2('0xd')][_0x4fe2f2('0x17')]=function(_0x33a43b,_0x3224be){const _0x23fdd2=_0x4fe2f2,_0x4b8691=this;this[_0x23fdd2('0x1')][_0x23fdd2('0x19')](function(){const _0x1593b0=_0x23fdd2;return _0x4b8691[_0x1593b0('0x16')]['removeIndex'](_0x33a43b,_0x3224be)[_0x1593b0('0x14')](function(){const _0x2b87f8=_0x1593b0;logger[_0x2b87f8('0x2')]('removeIndex\x20%s\x20%s',_0x33a43b,_0x3224be);})['catch'](function(_0x26154f){const _0x1d7d86=_0x1593b0;logger[_0x1d7d86('0x2')](JSON[_0x1d7d86('0x13')](_0x26154f));});});},Migration[_0x4fe2f2('0xd')][_0x4fe2f2('0x20')]=function(_0x572f4f){const _0x517829=_0x4fe2f2,_0x3a3147=this;this[_0x517829('0x1')][_0x517829('0x19')](function(){const _0x58b53d=_0x517829;return _0x3a3147[_0x58b53d('0x16')][_0x58b53d('0x4')]['query'](_0x572f4f)[_0x58b53d('0x14')](function(){const _0x461b5a=_0x58b53d;logger[_0x461b5a('0x2')](_0x461b5a('0x22'),_0x572f4f);})[_0x58b53d('0x0')](function(_0x560610){const _0x3648eb=_0x58b53d;logger[_0x3648eb('0x2')](JSON[_0x3648eb('0x13')](_0x560610));});});},Migration[_0x4fe2f2('0xd')][_0x4fe2f2('0x3')]=function(_0x4d7b83,_0x514ee9){const _0xb4a89a=_0x4fe2f2,_0x1afcf9=this;this['sequence'][_0xb4a89a('0x19')](function(){const _0x369c72=_0xb4a89a;return _0x1afcf9[_0x369c72('0x16')][_0x369c72('0x3')](_0x4d7b83,_0x514ee9)[_0x369c72('0x14')](function(){const _0x2ceed3=_0x369c72;logger['info'](_0x2ceed3('0x1f'),_0x514ee9,_0x4d7b83);})['catch'](function(_0x1dd5f5){const _0x54d9e4=_0x369c72;logger['info'](util[_0x54d9e4('0xa')](_0x1dd5f5,{'showHidden':![],'depth':null}));});});},Migration[_0x4fe2f2('0xd')][_0x4fe2f2('0x11')]=function(_0x240f94,_0x181731,_0x2c20d7){const _0x399075=_0x4fe2f2,_0x1978c7=this;this[_0x399075('0x1')][_0x399075('0x19')](function(){const _0x1df243=_0x399075;return _0x1978c7[_0x1df243('0x16')][_0x1df243('0x11')](_0x240f94,_0x181731,_0x2c20d7)[_0x1df243('0x14')](function(){const _0x43fdd4=_0x1df243;logger[_0x43fdd4('0x2')](_0x43fdd4('0xc'),_0x181731,_0x2c20d7,_0x240f94);})[_0x1df243('0x0')](function(_0x391fc6){const _0x9cd28d=_0x1df243;logger[_0x9cd28d('0x2')](util[_0x9cd28d('0xa')](_0x391fc6,{'showHidden':![],'depth':null}));});});},Migration[_0x4fe2f2('0xd')][_0x4fe2f2('0x21')]=function(_0x18639b){const _0x392477=_0x4fe2f2;this[_0x392477('0x1')]['enqueue'](function(){return _0x18639b();});},module['exports']={'up':function(_0x37cfb0,_0x324757){return new Promise(function(_0x330da1){const _0x46b66a=a972_0x375b,_0x42df32=new Migration(_0x37cfb0);_0x42df32[_0x46b66a('0x1b')](_0x46b66a('0x1e'),_0x46b66a('0xe'),{'type':_0x324757[_0x46b66a('0x10')]}),_0x42df32[_0x46b66a('0x1b')](_0x46b66a('0x1e'),_0x46b66a('0x8'),{'type':_0x324757[_0x46b66a('0x10')]}),_0x42df32[_0x46b66a('0x1c')](_0x46b66a('0xf'),[_0x46b66a('0x1d')],_0x46b66a('0x1d')),_0x42df32['final'](_0x330da1);});},'down':function(){}}; \ No newline at end of file +const a972_0x2883=['info','Changed\x20column\x20%s\x20in\x20table\x20%s','query','tail','Removed\x20column\x20%s\x20from\x20%s','apiKeyIat','Added\x20column\x20%s\x20to\x20%s','dropTable','query\x20%s','addIndex\x20%s\x20%s\x20%s','removeIndex\x20%s\x20%s','finally','inspect','removeIndex','sequence','removeColumn','users','util','STRING','table\x20dropped\x20%s','addIndex','stringify','catch','queryInterface','../config/logger','prototype','final','exports','report_call','uniqueid','then','sequelize','changeColumn','renameColumn','addColumn','enqueue','join'];(function(_0x5d338,_0x28839b){const _0xc75709=function(_0xf54e0){while(--_0xf54e0){_0x5d338['push'](_0x5d338['shift']());}};_0xc75709(++_0x28839b);}(a972_0x2883,0xb6));const a972_0xc757=function(_0x5d338,_0x28839b){_0x5d338=_0x5d338-0x0;let _0xc75709=a972_0x2883[_0x5d338];return _0xc75709;};const _0x161999=a972_0xc757;'use strict';const util=require(_0x161999('0x14')),logger=require(_0x161999('0x1b'))('migration'),Sequence=function(){};Sequence['prototype'][_0x161999('0x1')]=function(_0xf54e0){const _0x4f1991=_0x161999;this[_0x4f1991('0x6')]=this[_0x4f1991('0x6')]?this[_0x4f1991('0x6')][_0x4f1991('0xe')](_0xf54e0):_0xf54e0();};const Migration=function(_0x13a5f7){const _0x10d7f3=_0x161999;this[_0x10d7f3('0x1a')]=_0x13a5f7,this[_0x10d7f3('0x11')]=new Sequence();};Migration[_0x161999('0x1c')][_0x161999('0x23')]=function(_0x1fb21b,_0x359aea,_0x41f36d){const _0x2618cd=_0x161999,_0x4c862c=this;this['sequence'][_0x2618cd('0x1')](function(){const _0x4811be=_0x2618cd;return _0x4c862c[_0x4811be('0x1a')]['changeColumn'](_0x1fb21b,_0x359aea,_0x41f36d)[_0x4811be('0x21')](function(){const _0x5296e6=_0x4811be;logger['info'](_0x5296e6('0x4'),_0x359aea,_0x1fb21b);})[_0x4811be('0x19')](function(_0x444373){const _0x4b0dcb=_0x4811be;logger[_0x4b0dcb('0x3')](JSON[_0x4b0dcb('0x18')](_0x444373));});});},Migration[_0x161999('0x1c')]['addColumn']=function(_0x555295,_0x2e3d1f,_0x34ba87){const _0x5b3821=this;this['sequence']['enqueue'](function(){const _0x292989=a972_0xc757;return _0x5b3821[_0x292989('0x1a')]['addColumn'](_0x555295,_0x2e3d1f,_0x34ba87)[_0x292989('0x21')](function(){const _0x280a1a=_0x292989;logger['info'](_0x280a1a('0x9'),_0x2e3d1f,_0x555295);})['catch'](function(_0x2a7cc9){logger['info'](JSON['stringify'](_0x2a7cc9));});});},Migration[_0x161999('0x1c')][_0x161999('0xa')]=function(_0x5983a2){const _0x1dd75a=this;this['sequence']['enqueue'](function(){const _0x50a3cd=a972_0xc757;return _0x1dd75a[_0x50a3cd('0x1a')][_0x50a3cd('0xa')](_0x5983a2,{'force':!![]})[_0x50a3cd('0x21')](function(){const _0x44d38f=_0x50a3cd;logger['info'](_0x44d38f('0x16'),_0x5983a2);})[_0x50a3cd('0x19')](function(_0x16be05){const _0x2fe25a=_0x50a3cd;logger[_0x2fe25a('0x3')](JSON['stringify'](_0x16be05));});});},Migration[_0x161999('0x1c')]['addIndex']=function(_0x5cb645,_0x216678,_0x4ea5e3){const _0x14aba9=_0x161999,_0x3c874d=this;this['sequence'][_0x14aba9('0x1')](function(){const _0x10b3e2=_0x14aba9;return _0x3c874d[_0x10b3e2('0x1a')][_0x10b3e2('0x17')](_0x5cb645,_0x216678,{'indexName':_0x4ea5e3})[_0x10b3e2('0x21')](function(){const _0x1b6477=_0x10b3e2;logger[_0x1b6477('0x3')](_0x1b6477('0xc'),_0x5cb645,_0x216678[_0x1b6477('0x2')](','),_0x4ea5e3);})[_0x10b3e2('0x19')](function(_0x26ca68){const _0x5ded07=_0x10b3e2;logger[_0x5ded07('0x3')](JSON[_0x5ded07('0x18')](_0x26ca68));});});},Migration['prototype'][_0x161999('0x10')]=function(_0x576535,_0x426ee4){const _0x383dbb=_0x161999,_0x11511b=this;this[_0x383dbb('0x11')][_0x383dbb('0x1')](function(){const _0x3686de=_0x383dbb;return _0x11511b[_0x3686de('0x1a')]['removeIndex'](_0x576535,_0x426ee4)['then'](function(){const _0x1dfbcf=_0x3686de;logger[_0x1dfbcf('0x3')](_0x1dfbcf('0xd'),_0x576535,_0x426ee4);})[_0x3686de('0x19')](function(_0x49236c){const _0x922362=_0x3686de;logger[_0x922362('0x3')](JSON['stringify'](_0x49236c));});});},Migration[_0x161999('0x1c')][_0x161999('0x5')]=function(_0x5a288d){const _0x2b29c0=_0x161999,_0xaedadd=this;this[_0x2b29c0('0x11')][_0x2b29c0('0x1')](function(){const _0x481f58=_0x2b29c0;return _0xaedadd[_0x481f58('0x1a')][_0x481f58('0x22')][_0x481f58('0x5')](_0x5a288d)[_0x481f58('0x21')](function(){const _0x4f438a=_0x481f58;logger[_0x4f438a('0x3')](_0x4f438a('0xb'),_0x5a288d);})[_0x481f58('0x19')](function(_0x4ee9d6){const _0x26ed25=_0x481f58;logger['info'](JSON[_0x26ed25('0x18')](_0x4ee9d6));});});},Migration[_0x161999('0x1c')][_0x161999('0x12')]=function(_0x2cd6f7,_0x16c2d3){const _0x11ac08=_0x161999,_0x1f2023=this;this[_0x11ac08('0x11')][_0x11ac08('0x1')](function(){const _0x1e8fe4=_0x11ac08;return _0x1f2023['queryInterface'][_0x1e8fe4('0x12')](_0x2cd6f7,_0x16c2d3)['then'](function(){const _0x1bd5b5=_0x1e8fe4;logger['info'](_0x1bd5b5('0x7'),_0x16c2d3,_0x2cd6f7);})[_0x1e8fe4('0x19')](function(_0x593428){const _0x279f4a=_0x1e8fe4;logger[_0x279f4a('0x3')](util[_0x279f4a('0xf')](_0x593428,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x161999('0x24')]=function(_0x5a4ca2,_0x101ec6,_0x1aaa28){const _0x9dab39=_0x161999,_0x42b9a1=this;this[_0x9dab39('0x11')][_0x9dab39('0x1')](function(){const _0x930e29=_0x9dab39;return _0x42b9a1[_0x930e29('0x1a')]['renameColumn'](_0x5a4ca2,_0x101ec6,_0x1aaa28)[_0x930e29('0x21')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x101ec6,_0x1aaa28,_0x5a4ca2);})[_0x930e29('0x19')](function(_0x23530){const _0x5e8c22=_0x930e29;logger[_0x5e8c22('0x3')](util[_0x5e8c22('0xf')](_0x23530,{'showHidden':![],'depth':null}));});});},Migration[_0x161999('0x1c')]['final']=function(_0x33fc8d){const _0x3b9932=_0x161999;this[_0x3b9932('0x11')]['enqueue'](function(){return _0x33fc8d();});},module[_0x161999('0x1e')]={'up':function(_0x281ac8,_0x5c6ce5){return new Promise(function(_0x2b6671){const _0x27a07b=a972_0xc757,_0x15d155=new Migration(_0x281ac8);_0x15d155['addColumn'](_0x27a07b('0x13'),'apiKeyNonce',{'type':_0x5c6ce5['STRING']}),_0x15d155[_0x27a07b('0x0')](_0x27a07b('0x13'),_0x27a07b('0x8'),{'type':_0x5c6ce5[_0x27a07b('0x15')]}),_0x15d155[_0x27a07b('0x17')](_0x27a07b('0x1f'),[_0x27a07b('0x20')],_0x27a07b('0x20')),_0x15d155[_0x27a07b('0x1d')](_0x2b6671);});},'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 5556afe..ea59be8 100644 --- a/server/migrations/2.3.1.js +++ b/server/migrations/2.3.1.js @@ -1 +1 @@ -const a973_0x45db=['inspect','query','changeColumn','table\x20dropped\x20%s','enqueue','exports','sequelize','queryInterface','info','final','addIndex\x20%s\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','prototype','removeIndex','removeIndex\x20%s\x20%s','addIndex','query\x20%s','migration','stringify','then','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','Added\x20column\x20%s\x20to\x20%s','catch','util','../config/logger','dropTable','tail'];(function(_0x161118,_0x45dbc4){const _0x888c02=function(_0x69b704){while(--_0x69b704){_0x161118['push'](_0x161118['shift']());}};_0x888c02(++_0x45dbc4);}(a973_0x45db,0x1b1));const a973_0x888c=function(_0x161118,_0x45dbc4){_0x161118=_0x161118-0x0;let _0x888c02=a973_0x45db[_0x161118];return _0x888c02;};const _0x3c68d7=a973_0x888c;'use strict';const util=require(_0x3c68d7('0x1c')),logger=require(_0x3c68d7('0x1d'))(_0x3c68d7('0x14')),Sequence=function(){};Sequence[_0x3c68d7('0xf')]['enqueue']=function(_0x69b704){const _0x25f44f=_0x3c68d7;this[_0x25f44f('0x0')]=this['tail']?this[_0x25f44f('0x0')]['finally'](_0x69b704):_0x69b704();};const Migration=function(_0x513b5b){const _0x45a960=_0x3c68d7;this['queryInterface']=_0x513b5b,this[_0x45a960('0x17')]=new Sequence();};Migration[_0x3c68d7('0xf')]['changeColumn']=function(_0x2c5d45,_0x533752,_0x5121fb){const _0x37e4df=_0x3c68d7,_0x388dd1=this;this[_0x37e4df('0x17')][_0x37e4df('0x5')](function(){const _0x18ce3d=_0x37e4df;return _0x388dd1['queryInterface'][_0x18ce3d('0x3')](_0x2c5d45,_0x533752,_0x5121fb)[_0x18ce3d('0x16')](function(){const _0x2ae80b=_0x18ce3d;logger[_0x2ae80b('0x9')](_0x2ae80b('0x18'),_0x533752,_0x2c5d45);})[_0x18ce3d('0x1b')](function(_0x40e89e){const _0x520dd2=_0x18ce3d;logger[_0x520dd2('0x9')](JSON[_0x520dd2('0x15')](_0x40e89e));});});},Migration[_0x3c68d7('0xf')]['addColumn']=function(_0x4d6b83,_0x5afd28,_0x5744ef){const _0x403c3b=_0x3c68d7,_0x2ab01b=this;this[_0x403c3b('0x17')][_0x403c3b('0x5')](function(){const _0x53e94c=_0x403c3b;return _0x2ab01b[_0x53e94c('0x8')][_0x53e94c('0x19')](_0x4d6b83,_0x5afd28,_0x5744ef)[_0x53e94c('0x16')](function(){const _0x1af5d1=_0x53e94c;logger[_0x1af5d1('0x9')](_0x1af5d1('0x1a'),_0x5afd28,_0x4d6b83);})[_0x53e94c('0x1b')](function(_0x244a4d){const _0x22b2a8=_0x53e94c;logger[_0x22b2a8('0x9')](JSON['stringify'](_0x244a4d));});});},Migration[_0x3c68d7('0xf')]['dropTable']=function(_0x4417f4){const _0x19036d=_0x3c68d7,_0x4f3a81=this;this[_0x19036d('0x17')][_0x19036d('0x5')](function(){const _0x248fdc=_0x19036d;return _0x4f3a81[_0x248fdc('0x8')][_0x248fdc('0x1e')](_0x4417f4,{'force':!![]})[_0x248fdc('0x16')](function(){const _0x56bb7f=_0x248fdc;logger[_0x56bb7f('0x9')](_0x56bb7f('0x4'),_0x4417f4);})['catch'](function(_0x171844){const _0x4d8df6=_0x248fdc;logger[_0x4d8df6('0x9')](JSON[_0x4d8df6('0x15')](_0x171844));});});},Migration[_0x3c68d7('0xf')][_0x3c68d7('0x12')]=function(_0x58163f,_0xc153cf,_0xf032c4){const _0x211e7c=_0x3c68d7,_0x2637eb=this;this['sequence'][_0x211e7c('0x5')](function(){const _0x12374a=_0x211e7c;return _0x2637eb[_0x12374a('0x8')][_0x12374a('0x12')](_0x58163f,_0xc153cf,{'indexName':_0xf032c4})['then'](function(){const _0x93645c=_0x12374a;logger[_0x93645c('0x9')](_0x93645c('0xb'),_0x58163f,_0xc153cf['join'](','),_0xf032c4);})[_0x12374a('0x1b')](function(_0x38d7aa){const _0x543a91=_0x12374a;logger[_0x543a91('0x9')](JSON['stringify'](_0x38d7aa));});});},Migration['prototype'][_0x3c68d7('0x10')]=function(_0x4265a3,_0x48c101){const _0x324496=_0x3c68d7,_0x27a441=this;this[_0x324496('0x17')][_0x324496('0x5')](function(){const _0x328719=_0x324496;return _0x27a441[_0x328719('0x8')][_0x328719('0x10')](_0x4265a3,_0x48c101)['then'](function(){const _0x55b194=_0x328719;logger[_0x55b194('0x9')](_0x55b194('0x11'),_0x4265a3,_0x48c101);})[_0x328719('0x1b')](function(_0x2c54db){const _0x308b7d=_0x328719;logger['info'](JSON[_0x308b7d('0x15')](_0x2c54db));});});},Migration['prototype'][_0x3c68d7('0x2')]=function(_0x2d3cf9){const _0x25dab9=_0x3c68d7,_0x14cb8e=this;this[_0x25dab9('0x17')]['enqueue'](function(){const _0x11a150=_0x25dab9;return _0x14cb8e[_0x11a150('0x8')][_0x11a150('0x7')][_0x11a150('0x2')](_0x2d3cf9)[_0x11a150('0x16')](function(){const _0x2d6888=_0x11a150;logger[_0x2d6888('0x9')](_0x2d6888('0x13'),_0x2d3cf9);})[_0x11a150('0x1b')](function(_0x3f39dd){const _0x5d06d9=_0x11a150;logger['info'](JSON[_0x5d06d9('0x15')](_0x3f39dd));});});},Migration[_0x3c68d7('0xf')]['removeColumn']=function(_0x3488cb,_0x15b0da){const _0x16e920=this;this['sequence']['enqueue'](function(){const _0x3f1f3c=a973_0x888c;return _0x16e920[_0x3f1f3c('0x8')]['removeColumn'](_0x3488cb,_0x15b0da)['then'](function(){const _0x3fadd6=_0x3f1f3c;logger[_0x3fadd6('0x9')](_0x3fadd6('0xc'),_0x15b0da,_0x3488cb);})[_0x3f1f3c('0x1b')](function(_0x3bd3a2){const _0x51a2e0=_0x3f1f3c;logger[_0x51a2e0('0x9')](util[_0x51a2e0('0x1')](_0x3bd3a2,{'showHidden':![],'depth':null}));});});},Migration[_0x3c68d7('0xf')][_0x3c68d7('0xe')]=function(_0x26263c,_0x615be7,_0x1b879a){const _0x5977fe=_0x3c68d7,_0x34897d=this;this[_0x5977fe('0x17')]['enqueue'](function(){const _0x911cf=_0x5977fe;return _0x34897d[_0x911cf('0x8')][_0x911cf('0xe')](_0x26263c,_0x615be7,_0x1b879a)[_0x911cf('0x16')](function(){const _0x1a0693=_0x911cf;logger[_0x1a0693('0x9')](_0x1a0693('0xd'),_0x615be7,_0x1b879a,_0x26263c);})[_0x911cf('0x1b')](function(_0x28179e){const _0x3d2fb0=_0x911cf;logger['info'](util[_0x3d2fb0('0x1')](_0x28179e,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3c68d7('0xa')]=function(_0x109172){const _0x21b4eb=_0x3c68d7;this[_0x21b4eb('0x17')][_0x21b4eb('0x5')](function(){return _0x109172();});},module[_0x3c68d7('0x6')]={'up':function(_0x57a31b){return new Promise(function(_0x3f7cc1){const _0x2d38a8=a973_0x888c,_0x196ff5=new Migration(_0x57a31b);_0x196ff5[_0x2d38a8('0xa')](_0x3f7cc1);});},'down':function(){}}; \ No newline at end of file +const a973_0x11b2=['tail','addColumn','changeColumn','util','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','join','dropTable','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','inspect','../config/logger','removeColumn','info','prototype','query','migration','final','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s','enqueue','table\x20dropped\x20%s','addIndex','then','catch','exports','renameColumn','sequence'];(function(_0x26028d,_0x11b2fe){const _0x4496d2=function(_0x548c67){while(--_0x548c67){_0x26028d['push'](_0x26028d['shift']());}};_0x4496d2(++_0x11b2fe);}(a973_0x11b2,0xc2));const a973_0x4496=function(_0x26028d,_0x11b2fe){_0x26028d=_0x26028d-0x0;let _0x4496d2=a973_0x11b2[_0x26028d];return _0x4496d2;};const _0xdc5ebe=a973_0x4496;'use strict';const util=require(_0xdc5ebe('0x13')),logger=require(_0xdc5ebe('0x1d'))(_0xdc5ebe('0x4')),Sequence=function(){};Sequence[_0xdc5ebe('0x2')][_0xdc5ebe('0x8')]=function(_0x548c67){const _0x32ccce=_0xdc5ebe;this['tail']=this[_0x32ccce('0x10')]?this[_0x32ccce('0x10')]['finally'](_0x548c67):_0x548c67();};const Migration=function(_0x15fdb9){const _0x4775d8=_0xdc5ebe;this[_0x4775d8('0x1b')]=_0x15fdb9,this['sequence']=new Sequence();};Migration[_0xdc5ebe('0x2')][_0xdc5ebe('0x12')]=function(_0x27985d,_0x5acda9,_0x1fab76){const _0x499076=_0xdc5ebe,_0x14013a=this;this['sequence'][_0x499076('0x8')](function(){const _0x85edfd=_0x499076;return _0x14013a[_0x85edfd('0x1b')][_0x85edfd('0x12')](_0x27985d,_0x5acda9,_0x1fab76)[_0x85edfd('0xb')](function(){const _0x50d249=_0x85edfd;logger['info'](_0x50d249('0x6'),_0x5acda9,_0x27985d);})['catch'](function(_0x362f6e){const _0x7700a4=_0x85edfd;logger[_0x7700a4('0x1')](JSON[_0x7700a4('0x19')](_0x362f6e));});});},Migration[_0xdc5ebe('0x2')][_0xdc5ebe('0x11')]=function(_0x571ea7,_0x3f75a2,_0x14a6a6){const _0x224f28=_0xdc5ebe,_0x353e26=this;this[_0x224f28('0xf')]['enqueue'](function(){const _0x55a0ce=_0x224f28;return _0x353e26[_0x55a0ce('0x1b')][_0x55a0ce('0x11')](_0x571ea7,_0x3f75a2,_0x14a6a6)[_0x55a0ce('0xb')](function(){const _0x4dfb63=_0x55a0ce;logger[_0x4dfb63('0x1')](_0x4dfb63('0x15'),_0x3f75a2,_0x571ea7);})[_0x55a0ce('0xc')](function(_0x1ea8cd){const _0x2157be=_0x55a0ce;logger[_0x2157be('0x1')](JSON[_0x2157be('0x19')](_0x1ea8cd));});});},Migration[_0xdc5ebe('0x2')][_0xdc5ebe('0x18')]=function(_0x3412d0){const _0x45ce30=_0xdc5ebe,_0x286ab2=this;this[_0x45ce30('0xf')][_0x45ce30('0x8')](function(){const _0x579784=_0x45ce30;return _0x286ab2['queryInterface'][_0x579784('0x18')](_0x3412d0,{'force':!![]})[_0x579784('0xb')](function(){const _0x2f9d12=_0x579784;logger[_0x2f9d12('0x1')](_0x2f9d12('0x9'),_0x3412d0);})[_0x579784('0xc')](function(_0x121523){const _0x2ad3e4=_0x579784;logger[_0x2ad3e4('0x1')](JSON[_0x2ad3e4('0x19')](_0x121523));});});},Migration[_0xdc5ebe('0x2')][_0xdc5ebe('0xa')]=function(_0x253c40,_0xa575fc,_0x362b47){const _0x5dd116=_0xdc5ebe,_0x4da08d=this;this[_0x5dd116('0xf')][_0x5dd116('0x8')](function(){const _0xdf37=_0x5dd116;return _0x4da08d[_0xdf37('0x1b')][_0xdf37('0xa')](_0x253c40,_0xa575fc,{'indexName':_0x362b47})[_0xdf37('0xb')](function(){const _0x38c973=_0xdf37;logger['info'](_0x38c973('0x7'),_0x253c40,_0xa575fc[_0x38c973('0x17')](','),_0x362b47);})[_0xdf37('0xc')](function(_0x23f415){const _0x3b7311=_0xdf37;logger['info'](JSON[_0x3b7311('0x19')](_0x23f415));});});},Migration[_0xdc5ebe('0x2')]['removeIndex']=function(_0x29f8f7,_0x31e21c){const _0x15b35c=_0xdc5ebe,_0x90c726=this;this[_0x15b35c('0xf')][_0x15b35c('0x8')](function(){const _0x1eb466=_0x15b35c;return _0x90c726[_0x1eb466('0x1b')]['removeIndex'](_0x29f8f7,_0x31e21c)[_0x1eb466('0xb')](function(){const _0x4fc730=_0x1eb466;logger['info'](_0x4fc730('0x16'),_0x29f8f7,_0x31e21c);})[_0x1eb466('0xc')](function(_0x203026){const _0x48539e=_0x1eb466;logger[_0x48539e('0x1')](JSON[_0x48539e('0x19')](_0x203026));});});},Migration[_0xdc5ebe('0x2')][_0xdc5ebe('0x3')]=function(_0x15fe33){const _0x33cf42=_0xdc5ebe,_0x20328b=this;this[_0x33cf42('0xf')][_0x33cf42('0x8')](function(){const _0x54f335=_0x33cf42;return _0x20328b[_0x54f335('0x1b')]['sequelize'][_0x54f335('0x3')](_0x15fe33)[_0x54f335('0xb')](function(){logger['info']('query\x20%s',_0x15fe33);})[_0x54f335('0xc')](function(_0x319d15){const _0x1604ec=_0x54f335;logger[_0x1604ec('0x1')](JSON[_0x1604ec('0x19')](_0x319d15));});});},Migration[_0xdc5ebe('0x2')][_0xdc5ebe('0x0')]=function(_0x531884,_0x18881b){const _0x1517f3=_0xdc5ebe,_0x5c1ac2=this;this[_0x1517f3('0xf')][_0x1517f3('0x8')](function(){const _0x52a2b1=_0x1517f3;return _0x5c1ac2[_0x52a2b1('0x1b')]['removeColumn'](_0x531884,_0x18881b)[_0x52a2b1('0xb')](function(){const _0x182985=_0x52a2b1;logger[_0x182985('0x1')](_0x182985('0x14'),_0x18881b,_0x531884);})['catch'](function(_0x59ddce){const _0x2b24ee=_0x52a2b1;logger[_0x2b24ee('0x1')](util[_0x2b24ee('0x1c')](_0x59ddce,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0xdc5ebe('0xe')]=function(_0x2b4536,_0x58c160,_0xde4ff7){const _0x529826=_0xdc5ebe,_0x4e8e1f=this;this[_0x529826('0xf')][_0x529826('0x8')](function(){const _0x5a798=_0x529826;return _0x4e8e1f[_0x5a798('0x1b')][_0x5a798('0xe')](_0x2b4536,_0x58c160,_0xde4ff7)[_0x5a798('0xb')](function(){const _0x5f4667=_0x5a798;logger['info'](_0x5f4667('0x1a'),_0x58c160,_0xde4ff7,_0x2b4536);})[_0x5a798('0xc')](function(_0x323495){const _0x1a768c=_0x5a798;logger[_0x1a768c('0x1')](util[_0x1a768c('0x1c')](_0x323495,{'showHidden':![],'depth':null}));});});},Migration[_0xdc5ebe('0x2')][_0xdc5ebe('0x5')]=function(_0x4ff402){const _0x57c5fb=_0xdc5ebe;this['sequence'][_0x57c5fb('0x8')](function(){return _0x4ff402();});},module[_0xdc5ebe('0xd')]={'up':function(_0x3959aa){return new Promise(function(_0x51de7a){const _0x5b7902=a973_0x4496,_0x31c13a=new Migration(_0x3959aa);_0x31c13a[_0x5b7902('0x5')](_0x51de7a);});},'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 6acac89..134d9f6 100644 --- a/server/migrations/2.3.10.js +++ b/server/migrations/2.3.10.js @@ -1 +1 @@ -const a974_0x3d49=['STRING','queryInterface','sequelize','sequence','finally','report_call','Added\x20column\x20%s\x20to\x20%s','query','removeIndex','../config/logger','inspect','removeIndex\x20%s\x20%s','info','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','join','prototype','util','migration','addColumn','final','catch','stringify','sipcallid','table\x20dropped\x20%s','changeColumn','removeColumn','Removed\x20column\x20%s\x20from\x20%s','enqueue','then','exports'];(function(_0x371b91,_0x3d498c){const _0xa10c6f=function(_0x12a161){while(--_0x12a161){_0x371b91['push'](_0x371b91['shift']());}};_0xa10c6f(++_0x3d498c);}(a974_0x3d49,0x17a));const a974_0xa10c=function(_0x371b91,_0x3d498c){_0x371b91=_0x371b91-0x0;let _0xa10c6f=a974_0x3d49[_0x371b91];return _0xa10c6f;};const _0x4affe8=a974_0xa10c;'use strict';const util=require(_0x4affe8('0xb')),logger=require(_0x4affe8('0x3'))(_0x4affe8('0xc')),Sequence=function(){};Sequence[_0x4affe8('0xa')]['enqueue']=function(_0x12a161){const _0x186105=_0x4affe8;this[_0x186105('0x8')]=this[_0x186105('0x8')]?this[_0x186105('0x8')][_0x186105('0x1d')](_0x12a161):_0x12a161();};const Migration=function(_0x5be174){const _0x3ad0d5=_0x4affe8;this[_0x3ad0d5('0x1a')]=_0x5be174,this[_0x3ad0d5('0x1c')]=new Sequence();};Migration[_0x4affe8('0xa')][_0x4affe8('0x13')]=function(_0x3d8900,_0x3173a0,_0x254d5a){const _0x956bc9=_0x4affe8,_0xe25cb6=this;this['sequence'][_0x956bc9('0x16')](function(){const _0x4f6dce=_0x956bc9;return _0xe25cb6['queryInterface'][_0x4f6dce('0x13')](_0x3d8900,_0x3173a0,_0x254d5a)['then'](function(){const _0x3b8b49=_0x4f6dce;logger[_0x3b8b49('0x6')](_0x3b8b49('0x7'),_0x3173a0,_0x3d8900);})[_0x4f6dce('0xf')](function(_0x58f389){logger['info'](JSON['stringify'](_0x58f389));});});},Migration[_0x4affe8('0xa')][_0x4affe8('0xd')]=function(_0x1b16fd,_0x12208e,_0x26d990){const _0x57ca08=_0x4affe8,_0x4f9a87=this;this[_0x57ca08('0x1c')][_0x57ca08('0x16')](function(){const _0x20d945=_0x57ca08;return _0x4f9a87[_0x20d945('0x1a')][_0x20d945('0xd')](_0x1b16fd,_0x12208e,_0x26d990)[_0x20d945('0x17')](function(){const _0x35e2ff=_0x20d945;logger[_0x35e2ff('0x6')](_0x35e2ff('0x0'),_0x12208e,_0x1b16fd);})[_0x20d945('0xf')](function(_0x363615){const _0x4244c9=_0x20d945;logger[_0x4244c9('0x6')](JSON[_0x4244c9('0x10')](_0x363615));});});},Migration['prototype']['dropTable']=function(_0x29afdb){const _0x27299f=_0x4affe8,_0x2a1d0a=this;this['sequence'][_0x27299f('0x16')](function(){const _0x26f32f=_0x27299f;return _0x2a1d0a[_0x26f32f('0x1a')]['dropTable'](_0x29afdb,{'force':!![]})['then'](function(){const _0x3247b0=_0x26f32f;logger['info'](_0x3247b0('0x12'),_0x29afdb);})[_0x26f32f('0xf')](function(_0x33c874){const _0x5e053a=_0x26f32f;logger[_0x5e053a('0x6')](JSON['stringify'](_0x33c874));});});},Migration[_0x4affe8('0xa')]['addIndex']=function(_0x5b85b7,_0x1547ef,_0xd495fd){const _0x1acb32=_0x4affe8,_0xdd314b=this;this[_0x1acb32('0x1c')][_0x1acb32('0x16')](function(){const _0x33ab82=_0x1acb32;return _0xdd314b[_0x33ab82('0x1a')]['addIndex'](_0x5b85b7,_0x1547ef,{'indexName':_0xd495fd})[_0x33ab82('0x17')](function(){const _0x3c1c64=_0x33ab82;logger[_0x3c1c64('0x6')]('addIndex\x20%s\x20%s\x20%s',_0x5b85b7,_0x1547ef[_0x3c1c64('0x9')](','),_0xd495fd);})['catch'](function(_0x1f93ce){const _0x738ae1=_0x33ab82;logger['info'](JSON[_0x738ae1('0x10')](_0x1f93ce));});});},Migration['prototype'][_0x4affe8('0x2')]=function(_0x32878d,_0x33dec5){const _0x2b1e2d=_0x4affe8,_0x51a0f7=this;this[_0x2b1e2d('0x1c')][_0x2b1e2d('0x16')](function(){const _0x28dbae=_0x2b1e2d;return _0x51a0f7[_0x28dbae('0x1a')][_0x28dbae('0x2')](_0x32878d,_0x33dec5)[_0x28dbae('0x17')](function(){const _0x51b886=_0x28dbae;logger[_0x51b886('0x6')](_0x51b886('0x5'),_0x32878d,_0x33dec5);})['catch'](function(_0x1a2faf){const _0x25dc51=_0x28dbae;logger[_0x25dc51('0x6')](JSON['stringify'](_0x1a2faf));});});},Migration[_0x4affe8('0xa')][_0x4affe8('0x1')]=function(_0x38e954){const _0x7443a9=_0x4affe8,_0x12e71c=this;this[_0x7443a9('0x1c')]['enqueue'](function(){const _0x908927=_0x7443a9;return _0x12e71c[_0x908927('0x1a')][_0x908927('0x1b')][_0x908927('0x1')](_0x38e954)[_0x908927('0x17')](function(){const _0x3bc679=_0x908927;logger[_0x3bc679('0x6')]('query\x20%s',_0x38e954);})['catch'](function(_0x24abeb){logger['info'](JSON['stringify'](_0x24abeb));});});},Migration[_0x4affe8('0xa')][_0x4affe8('0x14')]=function(_0x45569b,_0x485c25){const _0x5662a6=_0x4affe8,_0xdd20e5=this;this['sequence'][_0x5662a6('0x16')](function(){const _0x94fa8c=_0x5662a6;return _0xdd20e5[_0x94fa8c('0x1a')][_0x94fa8c('0x14')](_0x45569b,_0x485c25)[_0x94fa8c('0x17')](function(){const _0x4a6fdc=_0x94fa8c;logger[_0x4a6fdc('0x6')](_0x4a6fdc('0x15'),_0x485c25,_0x45569b);})[_0x94fa8c('0xf')](function(_0x4486c4){const _0xe9b493=_0x94fa8c;logger[_0xe9b493('0x6')](util[_0xe9b493('0x4')](_0x4486c4,{'showHidden':![],'depth':null}));});});},Migration[_0x4affe8('0xa')]['renameColumn']=function(_0xc735d5,_0x451b5b,_0xad38d7){const _0x17a286=this;this['sequence']['enqueue'](function(){const _0x4d7db5=a974_0xa10c;return _0x17a286['queryInterface']['renameColumn'](_0xc735d5,_0x451b5b,_0xad38d7)['then'](function(){const _0x1fd9f4=a974_0xa10c;logger[_0x1fd9f4('0x6')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x451b5b,_0xad38d7,_0xc735d5);})[_0x4d7db5('0xf')](function(_0x3cf0aa){const _0x1923b6=_0x4d7db5;logger[_0x1923b6('0x6')](util[_0x1923b6('0x4')](_0x3cf0aa,{'showHidden':![],'depth':null}));});});},Migration[_0x4affe8('0xa')][_0x4affe8('0xe')]=function(_0x5ce654){const _0x3f3424=_0x4affe8;this['sequence'][_0x3f3424('0x16')](function(){return _0x5ce654();});},module[_0x4affe8('0x18')]={'up':function(_0x3da105,_0x378c91){return new Promise(function(_0x5e381b){const _0x181e7f=a974_0xa10c,_0x1c8f54=new Migration(_0x3da105);_0x1c8f54[_0x181e7f('0xd')](_0x181e7f('0x1e'),_0x181e7f('0x11'),{'type':_0x378c91[_0x181e7f('0x19')]}),_0x1c8f54[_0x181e7f('0xe')](_0x5e381b);});},'down':function(){}}; \ No newline at end of file +const a974_0x58f5=['Removed\x20column\x20%s\x20from\x20%s','removeIndex','removeColumn','removeIndex\x20%s\x20%s','catch','changeColumn','dropTable','enqueue','query','sipcallid','final','../config/logger','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','exports','util','query\x20%s','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','inspect','stringify','info','sequence','then','sequelize','tail','addIndex\x20%s\x20%s\x20%s','addIndex','prototype','addColumn','queryInterface','migration'];(function(_0x8bd959,_0x58f55b){const _0x6da789=function(_0x242e8e){while(--_0x242e8e){_0x8bd959['push'](_0x8bd959['shift']());}};_0x6da789(++_0x58f55b);}(a974_0x58f5,0x112));const a974_0x6da7=function(_0x8bd959,_0x58f55b){_0x8bd959=_0x8bd959-0x0;let _0x6da789=a974_0x58f5[_0x8bd959];return _0x6da789;};const _0x5cd72b=a974_0x6da7;'use strict';const util=require(_0x5cd72b('0x1d')),logger=require(_0x5cd72b('0x19'))(_0x5cd72b('0xd')),Sequence=function(){};Sequence[_0x5cd72b('0xa')][_0x5cd72b('0x15')]=function(_0x242e8e){const _0x11d81c=_0x5cd72b;this[_0x11d81c('0x7')]=this[_0x11d81c('0x7')]?this[_0x11d81c('0x7')]['finally'](_0x242e8e):_0x242e8e();};const Migration=function(_0x38ca3f){const _0x3f9f6f=_0x5cd72b;this[_0x3f9f6f('0xc')]=_0x38ca3f,this[_0x3f9f6f('0x4')]=new Sequence();};Migration['prototype'][_0x5cd72b('0x13')]=function(_0x37be04,_0xba666d,_0x227cb9){const _0x209535=_0x5cd72b,_0x14cd1c=this;this[_0x209535('0x4')][_0x209535('0x15')](function(){const _0x3bb7ea=_0x209535;return _0x14cd1c['queryInterface']['changeColumn'](_0x37be04,_0xba666d,_0x227cb9)[_0x3bb7ea('0x5')](function(){const _0x3e2721=_0x3bb7ea;logger[_0x3e2721('0x3')](_0x3e2721('0x1b'),_0xba666d,_0x37be04);})['catch'](function(_0x180a42){const _0x21ee5c=_0x3bb7ea;logger['info'](JSON[_0x21ee5c('0x2')](_0x180a42));});});},Migration['prototype'][_0x5cd72b('0xb')]=function(_0x5863a7,_0x3f68c0,_0x2a2301){const _0xb23ba0=_0x5cd72b,_0x5559b2=this;this[_0xb23ba0('0x4')][_0xb23ba0('0x15')](function(){const _0x480754=_0xb23ba0;return _0x5559b2['queryInterface']['addColumn'](_0x5863a7,_0x3f68c0,_0x2a2301)[_0x480754('0x5')](function(){const _0x2858f2=_0x480754;logger['info'](_0x2858f2('0x1f'),_0x3f68c0,_0x5863a7);})[_0x480754('0x12')](function(_0x30389d){const _0x4b2f0e=_0x480754;logger[_0x4b2f0e('0x3')](JSON[_0x4b2f0e('0x2')](_0x30389d));});});},Migration[_0x5cd72b('0xa')]['dropTable']=function(_0x3f8edf){const _0x34f46d=_0x5cd72b,_0x4ef1c0=this;this[_0x34f46d('0x4')][_0x34f46d('0x15')](function(){const _0x136602=_0x34f46d;return _0x4ef1c0[_0x136602('0xc')][_0x136602('0x14')](_0x3f8edf,{'force':!![]})[_0x136602('0x5')](function(){const _0x36220a=_0x136602;logger[_0x36220a('0x3')](_0x36220a('0x0'),_0x3f8edf);})[_0x136602('0x12')](function(_0x460afc){const _0x32a4f1=_0x136602;logger[_0x32a4f1('0x3')](JSON[_0x32a4f1('0x2')](_0x460afc));});});},Migration['prototype']['addIndex']=function(_0x41c3b8,_0x7c4bb6,_0x5833a6){const _0x1b0e92=_0x5cd72b,_0x2d0682=this;this['sequence'][_0x1b0e92('0x15')](function(){const _0x1fadf1=_0x1b0e92;return _0x2d0682[_0x1fadf1('0xc')][_0x1fadf1('0x9')](_0x41c3b8,_0x7c4bb6,{'indexName':_0x5833a6})[_0x1fadf1('0x5')](function(){const _0x406ff4=_0x1fadf1;logger[_0x406ff4('0x3')](_0x406ff4('0x8'),_0x41c3b8,_0x7c4bb6['join'](','),_0x5833a6);})[_0x1fadf1('0x12')](function(_0x5a0495){const _0x5bc576=_0x1fadf1;logger['info'](JSON[_0x5bc576('0x2')](_0x5a0495));});});},Migration[_0x5cd72b('0xa')][_0x5cd72b('0xf')]=function(_0x5e60da,_0x202b35){const _0xa7dfe=_0x5cd72b,_0x2c2782=this;this['sequence'][_0xa7dfe('0x15')](function(){const _0x2f8275=_0xa7dfe;return _0x2c2782[_0x2f8275('0xc')][_0x2f8275('0xf')](_0x5e60da,_0x202b35)[_0x2f8275('0x5')](function(){const _0x35f808=_0x2f8275;logger[_0x35f808('0x3')](_0x35f808('0x11'),_0x5e60da,_0x202b35);})[_0x2f8275('0x12')](function(_0x95796b){const _0x699adb=_0x2f8275;logger[_0x699adb('0x3')](JSON['stringify'](_0x95796b));});});},Migration[_0x5cd72b('0xa')][_0x5cd72b('0x16')]=function(_0x4b79dc){const _0x1d2e95=_0x5cd72b,_0x48d42b=this;this[_0x1d2e95('0x4')]['enqueue'](function(){const _0x317a6a=_0x1d2e95;return _0x48d42b['queryInterface'][_0x317a6a('0x6')][_0x317a6a('0x16')](_0x4b79dc)[_0x317a6a('0x5')](function(){const _0x3d8d96=_0x317a6a;logger[_0x3d8d96('0x3')](_0x3d8d96('0x1e'),_0x4b79dc);})[_0x317a6a('0x12')](function(_0x2508ac){const _0x121b59=_0x317a6a;logger['info'](JSON[_0x121b59('0x2')](_0x2508ac));});});},Migration[_0x5cd72b('0xa')][_0x5cd72b('0x10')]=function(_0x4e9608,_0x2ed7df){const _0x1eeef2=_0x5cd72b,_0x4dd248=this;this[_0x1eeef2('0x4')][_0x1eeef2('0x15')](function(){const _0x1ea579=_0x1eeef2;return _0x4dd248[_0x1ea579('0xc')][_0x1ea579('0x10')](_0x4e9608,_0x2ed7df)[_0x1ea579('0x5')](function(){const _0x2fe33a=_0x1ea579;logger['info'](_0x2fe33a('0xe'),_0x2ed7df,_0x4e9608);})[_0x1ea579('0x12')](function(_0x13bc9d){const _0x57287f=_0x1ea579;logger[_0x57287f('0x3')](util[_0x57287f('0x1')](_0x13bc9d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5cd72b('0x1a')]=function(_0x5b04ee,_0x3d8bfa,_0x50b43b){const _0x1ce232=_0x5cd72b,_0xe01378=this;this[_0x1ce232('0x4')][_0x1ce232('0x15')](function(){const _0x4cf229=_0x1ce232;return _0xe01378[_0x4cf229('0xc')][_0x4cf229('0x1a')](_0x5b04ee,_0x3d8bfa,_0x50b43b)[_0x4cf229('0x5')](function(){const _0x1a417f=_0x4cf229;logger[_0x1a417f('0x3')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3d8bfa,_0x50b43b,_0x5b04ee);})[_0x4cf229('0x12')](function(_0x43e2ff){const _0x11f59c=_0x4cf229;logger[_0x11f59c('0x3')](util[_0x11f59c('0x1')](_0x43e2ff,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5cd72b('0x18')]=function(_0x19d1ca){const _0x46661e=_0x5cd72b;this[_0x46661e('0x4')]['enqueue'](function(){return _0x19d1ca();});},module[_0x5cd72b('0x1c')]={'up':function(_0x2aa6af,_0x39e8ed){return new Promise(function(_0x22b05c){const _0x7ccd86=a974_0x6da7,_0x3ad936=new Migration(_0x2aa6af);_0x3ad936[_0x7ccd86('0xb')]('report_call',_0x7ccd86('0x17'),{'type':_0x39e8ed['STRING']}),_0x3ad936[_0x7ccd86('0x18')](_0x22b05c);});},'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 1afdecd..304cd52 100644 --- a/server/migrations/2.3.2.js +++ b/server/migrations/2.3.2.js @@ -1 +1 @@ -const a975_0x119c=['table\x20dropped\x20%s','then','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','dropTable','removeIndex\x20%s\x20%s','queryInterface','renameColumn','query','catch','info','util','settings','stringify','ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;','migration','join','final','tail','prototype','changeColumn','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','sequence','addColumn','enqueue','addIndex','rtlSupport','../config/logger','removeColumn','inspect','removeIndex','exports','BOOLEAN','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x255e51,_0x119c63){const _0x973b7c=function(_0xe2252a){while(--_0xe2252a){_0x255e51['push'](_0x255e51['shift']());}};_0x973b7c(++_0x119c63);}(a975_0x119c,0x168));const a975_0x973b=function(_0x255e51,_0x119c63){_0x255e51=_0x255e51-0x0;let _0x973b7c=a975_0x119c[_0x255e51];return _0x973b7c;};const _0x166fa1=a975_0x973b;'use strict';const util=require(_0x166fa1('0x2')),logger=require(_0x166fa1('0x12'))(_0x166fa1('0x6')),Sequence=function(){};Sequence[_0x166fa1('0xa')]['enqueue']=function(_0xe2252a){const _0x4bc465=_0x166fa1;this[_0x4bc465('0x9')]=this['tail']?this[_0x4bc465('0x9')][_0x4bc465('0x1d')](_0xe2252a):_0xe2252a();};const Migration=function(_0x4d6394){const _0xaff685=_0x166fa1;this['queryInterface']=_0x4d6394,this[_0xaff685('0xd')]=new Sequence();};Migration[_0x166fa1('0xa')][_0x166fa1('0xb')]=function(_0x3eb79b,_0xae4443,_0x43d082){const _0x48bdf1=_0x166fa1,_0x132d15=this;this[_0x48bdf1('0xd')][_0x48bdf1('0xf')](function(){const _0x2dfec5=_0x48bdf1;return _0x132d15['queryInterface'][_0x2dfec5('0xb')](_0x3eb79b,_0xae4443,_0x43d082)[_0x2dfec5('0x1a')](function(){const _0x581194=_0x2dfec5;logger[_0x581194('0x1')](_0x581194('0x1c'),_0xae4443,_0x3eb79b);})['catch'](function(_0x55a38c){logger['info'](JSON['stringify'](_0x55a38c));});});},Migration['prototype'][_0x166fa1('0xe')]=function(_0x2da21f,_0x49942d,_0x5b4988){const _0x328963=_0x166fa1,_0x17936e=this;this[_0x328963('0xd')][_0x328963('0xf')](function(){const _0x36ee54=_0x328963;return _0x17936e[_0x36ee54('0x20')]['addColumn'](_0x2da21f,_0x49942d,_0x5b4988)[_0x36ee54('0x1a')](function(){const _0x81d500=_0x36ee54;logger[_0x81d500('0x1')](_0x81d500('0x1b'),_0x49942d,_0x2da21f);})[_0x36ee54('0x0')](function(_0x9cfbc8){logger['info'](JSON['stringify'](_0x9cfbc8));});});},Migration[_0x166fa1('0xa')]['dropTable']=function(_0x33348f){const _0x3f745d=_0x166fa1,_0x473c74=this;this['sequence'][_0x3f745d('0xf')](function(){const _0x5a0012=_0x3f745d;return _0x473c74[_0x5a0012('0x20')][_0x5a0012('0x1e')](_0x33348f,{'force':!![]})['then'](function(){const _0x25e57e=_0x5a0012;logger[_0x25e57e('0x1')](_0x25e57e('0x19'),_0x33348f);})[_0x5a0012('0x0')](function(_0x37bdf5){const _0xb3052c=_0x5a0012;logger[_0xb3052c('0x1')](JSON['stringify'](_0x37bdf5));});});},Migration['prototype'][_0x166fa1('0x10')]=function(_0x5f40bd,_0x5b33e7,_0x24530f){const _0x8babe2=_0x166fa1,_0x57d910=this;this[_0x8babe2('0xd')][_0x8babe2('0xf')](function(){const _0x3190a8=_0x8babe2;return _0x57d910[_0x3190a8('0x20')]['addIndex'](_0x5f40bd,_0x5b33e7,{'indexName':_0x24530f})[_0x3190a8('0x1a')](function(){const _0x1b638a=_0x3190a8;logger[_0x1b638a('0x1')]('addIndex\x20%s\x20%s\x20%s',_0x5f40bd,_0x5b33e7[_0x1b638a('0x7')](','),_0x24530f);})[_0x3190a8('0x0')](function(_0x2b51d8){const _0x23d883=_0x3190a8;logger[_0x23d883('0x1')](JSON[_0x23d883('0x4')](_0x2b51d8));});});},Migration['prototype']['removeIndex']=function(_0x3f43b8,_0x278656){const _0x20196e=_0x166fa1,_0x46bd54=this;this[_0x20196e('0xd')][_0x20196e('0xf')](function(){const _0x2d299a=_0x20196e;return _0x46bd54[_0x2d299a('0x20')][_0x2d299a('0x15')](_0x3f43b8,_0x278656)[_0x2d299a('0x1a')](function(){const _0x296697=_0x2d299a;logger['info'](_0x296697('0x1f'),_0x3f43b8,_0x278656);})[_0x2d299a('0x0')](function(_0x3554b2){const _0x387bee=_0x2d299a;logger[_0x387bee('0x1')](JSON[_0x387bee('0x4')](_0x3554b2));});});},Migration[_0x166fa1('0xa')][_0x166fa1('0x22')]=function(_0x4f21ed){const _0x56fda0=_0x166fa1,_0x5068d8=this;this[_0x56fda0('0xd')][_0x56fda0('0xf')](function(){const _0x25e136=_0x56fda0;return _0x5068d8[_0x25e136('0x20')]['sequelize'][_0x25e136('0x22')](_0x4f21ed)[_0x25e136('0x1a')](function(){const _0x2b9e33=_0x25e136;logger[_0x2b9e33('0x1')]('query\x20%s',_0x4f21ed);})['catch'](function(_0x43ce94){const _0xfe3be1=_0x25e136;logger[_0xfe3be1('0x1')](JSON['stringify'](_0x43ce94));});});},Migration[_0x166fa1('0xa')]['removeColumn']=function(_0x3b50c1,_0x2dc559){const _0x2a00f4=this;this['sequence']['enqueue'](function(){const _0x2944d4=a975_0x973b;return _0x2a00f4[_0x2944d4('0x20')][_0x2944d4('0x13')](_0x3b50c1,_0x2dc559)['then'](function(){const _0x4285fc=_0x2944d4;logger[_0x4285fc('0x1')]('Removed\x20column\x20%s\x20from\x20%s',_0x2dc559,_0x3b50c1);})['catch'](function(_0x6471c6){const _0x102f7e=_0x2944d4;logger[_0x102f7e('0x1')](util['inspect'](_0x6471c6,{'showHidden':![],'depth':null}));});});},Migration[_0x166fa1('0xa')][_0x166fa1('0x21')]=function(_0x5b2474,_0x59d8eb,_0x52a88a){const _0x1dc41f=_0x166fa1,_0x1e3377=this;this[_0x1dc41f('0xd')][_0x1dc41f('0xf')](function(){const _0x2b1f84=_0x1dc41f;return _0x1e3377[_0x2b1f84('0x20')][_0x2b1f84('0x21')](_0x5b2474,_0x59d8eb,_0x52a88a)[_0x2b1f84('0x1a')](function(){const _0x4d00c1=_0x2b1f84;logger[_0x4d00c1('0x1')](_0x4d00c1('0x18'),_0x59d8eb,_0x52a88a,_0x5b2474);})[_0x2b1f84('0x0')](function(_0x59dc39){const _0x559a71=_0x2b1f84;logger[_0x559a71('0x1')](util[_0x559a71('0x14')](_0x59dc39,{'showHidden':![],'depth':null}));});});},Migration[_0x166fa1('0xa')]['final']=function(_0x1f4c9d){const _0xc3b802=_0x166fa1;this[_0xc3b802('0xd')][_0xc3b802('0xf')](function(){return _0x1f4c9d();});},module[_0x166fa1('0x16')]={'up':function(_0x20c5d8,_0x1376eb){return new Promise(function(_0x13bf29){const _0xf15ce3=a975_0x973b,_0xf24a7b=new Migration(_0x20c5d8);_0xf24a7b[_0xf15ce3('0x22')](_0xf15ce3('0x5')),_0xf24a7b[_0xf15ce3('0x22')](_0xf15ce3('0xc')),_0xf24a7b[_0xf15ce3('0xe')](_0xf15ce3('0x3'),_0xf15ce3('0x11'),{'type':_0x1376eb[_0xf15ce3('0x17')],'defaultValue':![]}),_0xf24a7b[_0xf15ce3('0x8')](_0x13bf29);});},'down':function(){}}; \ No newline at end of file +const a975_0x494a=['info','addColumn','stringify','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','BOOLEAN','removeIndex','then','inspect','catch','dropTable','Added\x20column\x20%s\x20to\x20%s','enqueue','final','migration','prototype','addIndex\x20%s\x20%s\x20%s','addIndex','../config/logger','removeColumn','queryInterface','rtlSupport','settings','ALTER\x20TABLE\x20int_dynamics365_accounts\x20ENCRYPTION=\x27Y\x27;','query','changeColumn','ALTER\x20TABLE\x20int_servicenow_accounts\x20ENCRYPTION=\x27Y\x27;','join','tail','finally','sequence','exports'];(function(_0x2d6813,_0x494ab7){const _0x109a53=function(_0x471df9){while(--_0x471df9){_0x2d6813['push'](_0x2d6813['shift']());}};_0x109a53(++_0x494ab7);}(a975_0x494a,0x1ca));const a975_0x109a=function(_0x2d6813,_0x494ab7){_0x2d6813=_0x2d6813-0x0;let _0x109a53=a975_0x494a[_0x2d6813];return _0x109a53;};const _0x27ae62=a975_0x109a;'use strict';const util=require('util'),logger=require(_0x27ae62('0x17'))(_0x27ae62('0x13')),Sequence=function(){};Sequence['prototype'][_0x27ae62('0x11')]=function(_0x471df9){const _0x4bd77f=_0x27ae62;this[_0x4bd77f('0x0')]=this[_0x4bd77f('0x0')]?this[_0x4bd77f('0x0')][_0x4bd77f('0x1')](_0x471df9):_0x471df9();};const Migration=function(_0x2fbdc7){const _0x1651ad=_0x27ae62;this['queryInterface']=_0x2fbdc7,this[_0x1651ad('0x2')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0xf5f8d0,_0x379080,_0x38f0f9){const _0x1e9e66=_0x27ae62,_0x108820=this;this[_0x1e9e66('0x2')][_0x1e9e66('0x11')](function(){const _0x3c92c6=_0x1e9e66;return _0x108820['queryInterface'][_0x3c92c6('0x1e')](_0xf5f8d0,_0x379080,_0x38f0f9)[_0x3c92c6('0xc')](function(){const _0x29bc9b=_0x3c92c6;logger[_0x29bc9b('0x4')](_0x29bc9b('0x8'),_0x379080,_0xf5f8d0);})[_0x3c92c6('0xe')](function(_0x51a56e){const _0x4fe644=_0x3c92c6;logger['info'](JSON[_0x4fe644('0x6')](_0x51a56e));});});},Migration[_0x27ae62('0x14')]['addColumn']=function(_0x2fcd18,_0x14489e,_0x3f893c){const _0x185ca8=_0x27ae62,_0x4a8159=this;this['sequence'][_0x185ca8('0x11')](function(){const _0x507b94=_0x185ca8;return _0x4a8159[_0x507b94('0x19')][_0x507b94('0x5')](_0x2fcd18,_0x14489e,_0x3f893c)[_0x507b94('0xc')](function(){const _0x4b5bdf=_0x507b94;logger[_0x4b5bdf('0x4')](_0x4b5bdf('0x10'),_0x14489e,_0x2fcd18);})[_0x507b94('0xe')](function(_0xaa9940){const _0x514ac2=_0x507b94;logger[_0x514ac2('0x4')](JSON[_0x514ac2('0x6')](_0xaa9940));});});},Migration[_0x27ae62('0x14')][_0x27ae62('0xf')]=function(_0x2a2ce9){const _0x5e5cfb=this;this['sequence']['enqueue'](function(){const _0x2f448e=a975_0x109a;return _0x5e5cfb[_0x2f448e('0x19')][_0x2f448e('0xf')](_0x2a2ce9,{'force':!![]})[_0x2f448e('0xc')](function(){const _0x2e84eb=_0x2f448e;logger[_0x2e84eb('0x4')]('table\x20dropped\x20%s',_0x2a2ce9);})[_0x2f448e('0xe')](function(_0x4dac65){const _0x476a89=_0x2f448e;logger[_0x476a89('0x4')](JSON[_0x476a89('0x6')](_0x4dac65));});});},Migration[_0x27ae62('0x14')][_0x27ae62('0x16')]=function(_0x55c4bb,_0xc744f4,_0x3dddb6){const _0x18530d=_0x27ae62,_0x5b6f2a=this;this['sequence'][_0x18530d('0x11')](function(){const _0x24034e=_0x18530d;return _0x5b6f2a[_0x24034e('0x19')]['addIndex'](_0x55c4bb,_0xc744f4,{'indexName':_0x3dddb6})[_0x24034e('0xc')](function(){const _0xf3feda=_0x24034e;logger[_0xf3feda('0x4')](_0xf3feda('0x15'),_0x55c4bb,_0xc744f4[_0xf3feda('0x20')](','),_0x3dddb6);})[_0x24034e('0xe')](function(_0x1d73a6){logger['info'](JSON['stringify'](_0x1d73a6));});});},Migration[_0x27ae62('0x14')][_0x27ae62('0xb')]=function(_0x57f77a,_0x52e4a8){const _0x47885e=_0x27ae62,_0x591eb1=this;this[_0x47885e('0x2')][_0x47885e('0x11')](function(){const _0x1db7e5=_0x47885e;return _0x591eb1[_0x1db7e5('0x19')][_0x1db7e5('0xb')](_0x57f77a,_0x52e4a8)[_0x1db7e5('0xc')](function(){const _0x117c69=_0x1db7e5;logger[_0x117c69('0x4')]('removeIndex\x20%s\x20%s',_0x57f77a,_0x52e4a8);})[_0x1db7e5('0xe')](function(_0x399328){const _0x87d9a3=_0x1db7e5;logger[_0x87d9a3('0x4')](JSON[_0x87d9a3('0x6')](_0x399328));});});},Migration[_0x27ae62('0x14')][_0x27ae62('0x1d')]=function(_0x310fbe){const _0x157349=_0x27ae62,_0x150f52=this;this[_0x157349('0x2')][_0x157349('0x11')](function(){const _0x590217=_0x157349;return _0x150f52[_0x590217('0x19')][_0x590217('0x9')][_0x590217('0x1d')](_0x310fbe)[_0x590217('0xc')](function(){const _0x282c03=_0x590217;logger[_0x282c03('0x4')]('query\x20%s',_0x310fbe);})['catch'](function(_0x23e140){logger['info'](JSON['stringify'](_0x23e140));});});},Migration[_0x27ae62('0x14')][_0x27ae62('0x18')]=function(_0x3d539d,_0x45da65){const _0x5b228a=_0x27ae62,_0x5d1047=this;this[_0x5b228a('0x2')][_0x5b228a('0x11')](function(){const _0xa54efd=_0x5b228a;return _0x5d1047['queryInterface'][_0xa54efd('0x18')](_0x3d539d,_0x45da65)[_0xa54efd('0xc')](function(){const _0x5960d0=_0xa54efd;logger[_0x5960d0('0x4')]('Removed\x20column\x20%s\x20from\x20%s',_0x45da65,_0x3d539d);})[_0xa54efd('0xe')](function(_0x2c4ecf){const _0x712d1e=_0xa54efd;logger[_0x712d1e('0x4')](util[_0x712d1e('0xd')](_0x2c4ecf,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x27ae62('0x7')]=function(_0x1a3fb1,_0x15161f,_0x319d9f){const _0xc8132d=_0x27ae62,_0x550e2d=this;this[_0xc8132d('0x2')]['enqueue'](function(){const _0x4c0d32=_0xc8132d;return _0x550e2d[_0x4c0d32('0x19')][_0x4c0d32('0x7')](_0x1a3fb1,_0x15161f,_0x319d9f)[_0x4c0d32('0xc')](function(){const _0x2ae39a=_0x4c0d32;logger[_0x2ae39a('0x4')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x15161f,_0x319d9f,_0x1a3fb1);})[_0x4c0d32('0xe')](function(_0x3cd4a8){const _0x5f1f3b=_0x4c0d32;logger['info'](util[_0x5f1f3b('0xd')](_0x3cd4a8,{'showHidden':![],'depth':null}));});});},Migration[_0x27ae62('0x14')][_0x27ae62('0x12')]=function(_0x12d935){const _0x4ca9f6=_0x27ae62;this[_0x4ca9f6('0x2')][_0x4ca9f6('0x11')](function(){return _0x12d935();});},module[_0x27ae62('0x3')]={'up':function(_0xfd3429,_0x4ae694){return new Promise(function(_0x421a94){const _0x3c38e3=a975_0x109a,_0x388c80=new Migration(_0xfd3429);_0x388c80[_0x3c38e3('0x1d')](_0x3c38e3('0x1c')),_0x388c80[_0x3c38e3('0x1d')](_0x3c38e3('0x1f')),_0x388c80[_0x3c38e3('0x5')](_0x3c38e3('0x1b'),_0x3c38e3('0x1a'),{'type':_0x4ae694[_0x3c38e3('0xa')],'defaultValue':![]}),_0x388c80['final'](_0x421a94);});},'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 5a44de3..e965b9d 100644 --- a/server/migrations/2.3.3.js +++ b/server/migrations/2.3.3.js @@ -1 +1 @@ -const a976_0x850d=['changeColumn','final','removeColumn','TEXT','then','queryInterface','info','addIndex','sequelize','query','../config/logger','addIndex\x20%s\x20%s\x20%s','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','removeIndex\x20%s\x20%s','dropTable','Added\x20column\x20%s\x20to\x20%s','prototype','stringify','exports','table\x20dropped\x20%s','inspect','sms_applications','appdata','removeIndex','tail','addColumn','enqueue','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','Removed\x20column\x20%s\x20from\x20%s','sequence','query\x20%s','util','chat_applications','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s'];(function(_0x15c425,_0x850d7e){const _0x3c9d26=function(_0x3f0942){while(--_0x3f0942){_0x15c425['push'](_0x15c425['shift']());}};_0x3c9d26(++_0x850d7e);}(a976_0x850d,0x156));const a976_0x3c9d=function(_0x15c425,_0x850d7e){_0x15c425=_0x15c425-0x0;let _0x3c9d26=a976_0x850d[_0x15c425];return _0x3c9d26;};const _0x5dc58a=a976_0x3c9d;'use strict';const util=require(_0x5dc58a('0xf')),logger=require(_0x5dc58a('0x1c'))('migration'),Sequence=function(){};Sequence[_0x5dc58a('0x22')][_0x5dc58a('0x8')]=function(_0x3f0942){const _0x237064=_0x5dc58a;this[_0x237064('0x6')]=this[_0x237064('0x6')]?this[_0x237064('0x6')]['finally'](_0x3f0942):_0x3f0942();};const Migration=function(_0x217502){const _0x1130ad=_0x5dc58a;this[_0x1130ad('0x17')]=_0x217502,this[_0x1130ad('0xd')]=new Sequence();};Migration['prototype'][_0x5dc58a('0x12')]=function(_0x5b4c4f,_0x3e4cae,_0x4c0731){const _0xbf69d0=_0x5dc58a,_0x490c92=this;this[_0xbf69d0('0xd')][_0xbf69d0('0x8')](function(){const _0x180a08=_0xbf69d0;return _0x490c92[_0x180a08('0x17')][_0x180a08('0x12')](_0x5b4c4f,_0x3e4cae,_0x4c0731)[_0x180a08('0x16')](function(){const _0x24deb5=_0x180a08;logger[_0x24deb5('0x18')](_0x24deb5('0xa'),_0x3e4cae,_0x5b4c4f);})['catch'](function(_0x109d17){const _0x31c19e=_0x180a08;logger[_0x31c19e('0x18')](JSON[_0x31c19e('0x23')](_0x109d17));});});},Migration[_0x5dc58a('0x22')][_0x5dc58a('0x7')]=function(_0x315c89,_0x20e2b6,_0x4b9d52){const _0x23e7e6=_0x5dc58a,_0x4ee873=this;this[_0x23e7e6('0xd')][_0x23e7e6('0x8')](function(){const _0x5bacff=_0x23e7e6;return _0x4ee873['queryInterface'][_0x5bacff('0x7')](_0x315c89,_0x20e2b6,_0x4b9d52)[_0x5bacff('0x16')](function(){const _0x5bf7b3=_0x5bacff;logger[_0x5bf7b3('0x18')](_0x5bf7b3('0x21'),_0x20e2b6,_0x315c89);})[_0x5bacff('0x9')](function(_0x1b6ccd){const _0x191938=_0x5bacff;logger[_0x191938('0x18')](JSON[_0x191938('0x23')](_0x1b6ccd));});});},Migration['prototype'][_0x5dc58a('0x20')]=function(_0xdac2f){const _0x1d9460=_0x5dc58a,_0x2ca85a=this;this[_0x1d9460('0xd')][_0x1d9460('0x8')](function(){const _0x28eae7=_0x1d9460;return _0x2ca85a[_0x28eae7('0x17')][_0x28eae7('0x20')](_0xdac2f,{'force':!![]})[_0x28eae7('0x16')](function(){const _0x292393=_0x28eae7;logger[_0x292393('0x18')](_0x292393('0x1'),_0xdac2f);})[_0x28eae7('0x9')](function(_0x363694){const _0x593a81=_0x28eae7;logger['info'](JSON[_0x593a81('0x23')](_0x363694));});});},Migration[_0x5dc58a('0x22')][_0x5dc58a('0x19')]=function(_0x962ea0,_0x59b088,_0x155fc3){const _0x134a54=_0x5dc58a,_0x546e7e=this;this[_0x134a54('0xd')][_0x134a54('0x8')](function(){const _0x342d34=_0x134a54;return _0x546e7e['queryInterface']['addIndex'](_0x962ea0,_0x59b088,{'indexName':_0x155fc3})[_0x342d34('0x16')](function(){const _0x339a6e=_0x342d34;logger[_0x339a6e('0x18')](_0x339a6e('0x1d'),_0x962ea0,_0x59b088['join'](','),_0x155fc3);})[_0x342d34('0x9')](function(_0x591d04){const _0x23f073=_0x342d34;logger['info'](JSON[_0x23f073('0x23')](_0x591d04));});});},Migration[_0x5dc58a('0x22')]['removeIndex']=function(_0xf928b6,_0x5e754f){const _0x39dc18=_0x5dc58a,_0x4a449a=this;this['sequence'][_0x39dc18('0x8')](function(){const _0x407157=_0x39dc18;return _0x4a449a[_0x407157('0x17')][_0x407157('0x5')](_0xf928b6,_0x5e754f)[_0x407157('0x16')](function(){const _0x3188f6=_0x407157;logger[_0x3188f6('0x18')](_0x3188f6('0x1f'),_0xf928b6,_0x5e754f);})[_0x407157('0x9')](function(_0x596a98){const _0x174e32=_0x407157;logger['info'](JSON[_0x174e32('0x23')](_0x596a98));});});},Migration[_0x5dc58a('0x22')][_0x5dc58a('0x1b')]=function(_0x2efaef){const _0x287d2d=this;this['sequence']['enqueue'](function(){const _0xf9add9=a976_0x3c9d;return _0x287d2d[_0xf9add9('0x17')][_0xf9add9('0x1a')][_0xf9add9('0x1b')](_0x2efaef)[_0xf9add9('0x16')](function(){const _0x5ca965=_0xf9add9;logger[_0x5ca965('0x18')](_0x5ca965('0xe'),_0x2efaef);})[_0xf9add9('0x9')](function(_0x3f5208){const _0x367043=_0xf9add9;logger[_0x367043('0x18')](JSON[_0x367043('0x23')](_0x3f5208));});});},Migration[_0x5dc58a('0x22')][_0x5dc58a('0x14')]=function(_0x5150e2,_0x1b848c){const _0x272be6=_0x5dc58a,_0x4fdd5a=this;this[_0x272be6('0xd')][_0x272be6('0x8')](function(){const _0x1ac329=_0x272be6;return _0x4fdd5a[_0x1ac329('0x17')][_0x1ac329('0x14')](_0x5150e2,_0x1b848c)[_0x1ac329('0x16')](function(){const _0x5356dc=_0x1ac329;logger[_0x5356dc('0x18')](_0x5356dc('0xc'),_0x1b848c,_0x5150e2);})[_0x1ac329('0x9')](function(_0x489959){const _0x39d698=_0x1ac329;logger[_0x39d698('0x18')](util[_0x39d698('0x2')](_0x489959,{'showHidden':![],'depth':null}));});});},Migration[_0x5dc58a('0x22')][_0x5dc58a('0xb')]=function(_0x42e8d3,_0x240421,_0xdce67e){const _0x3d578e=this;this['sequence']['enqueue'](function(){const _0xedeb9=a976_0x3c9d;return _0x3d578e['queryInterface'][_0xedeb9('0xb')](_0x42e8d3,_0x240421,_0xdce67e)[_0xedeb9('0x16')](function(){const _0x52c4c2=_0xedeb9;logger[_0x52c4c2('0x18')](_0x52c4c2('0x11'),_0x240421,_0xdce67e,_0x42e8d3);})[_0xedeb9('0x9')](function(_0x39d149){const _0x148be8=_0xedeb9;logger[_0x148be8('0x18')](util[_0x148be8('0x2')](_0x39d149,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5dc58a('0x13')]=function(_0x9810f7){const _0x5cbdb0=_0x5dc58a;this[_0x5cbdb0('0xd')][_0x5cbdb0('0x8')](function(){return _0x9810f7();});},module[_0x5dc58a('0x0')]={'up':function(_0x31f2ae,_0x59d6b8){return new Promise(function(_0x13e10b){const _0x18d1fe=a976_0x3c9d,_0x342931=new Migration(_0x31f2ae);_0x342931[_0x18d1fe('0x1b')](_0x18d1fe('0x1e')),_0x342931[_0x18d1fe('0x12')](_0x18d1fe('0x10'),'appdata',{'type':_0x59d6b8[_0x18d1fe('0x15')]()}),_0x342931[_0x18d1fe('0x12')]('fax_applications',_0x18d1fe('0x4'),{'type':_0x59d6b8['TEXT']()}),_0x342931['changeColumn']('mail_applications',_0x18d1fe('0x4'),{'type':_0x59d6b8['TEXT']()}),_0x342931['changeColumn']('openchannel_applications','appdata',{'type':_0x59d6b8['TEXT']()}),_0x342931[_0x18d1fe('0x12')](_0x18d1fe('0x3'),'appdata',{'type':_0x59d6b8[_0x18d1fe('0x15')]()}),_0x342931[_0x18d1fe('0x13')](_0x13e10b);});},'down':function(){}}; \ No newline at end of file +const a976_0x3b0b=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','util','finally','enqueue','addColumn','queryInterface','then','../config/logger','openchannel_applications','query','removeIndex','TEXT','changeColumn','tail','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','chat_applications','Removed\x20column\x20%s\x20from\x20%s','ALTER\x20TABLE\x20tools_canned_answers\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci;','join','addIndex\x20%s\x20%s\x20%s','sequence','query\x20%s','table\x20dropped\x20%s','final','inspect','dropTable','addIndex','appdata','info','migration','mail_applications','renameColumn','sms_applications','catch','stringify','removeIndex\x20%s\x20%s'];(function(_0x3bf7b8,_0x3b0bfa){const _0x36f2ed=function(_0xd8017b){while(--_0xd8017b){_0x3bf7b8['push'](_0x3bf7b8['shift']());}};_0x36f2ed(++_0x3b0bfa);}(a976_0x3b0b,0x9a));const a976_0x36f2=function(_0x3bf7b8,_0x3b0bfa){_0x3bf7b8=_0x3bf7b8-0x0;let _0x36f2ed=a976_0x3b0b[_0x3bf7b8];return _0x36f2ed;};const _0xc6b673=a976_0x36f2;'use strict';const util=require(_0xc6b673('0x0')),logger=require(_0xc6b673('0x6'))(_0xc6b673('0x1d')),Sequence=function(){};Sequence[_0xc6b673('0xd')][_0xc6b673('0x2')]=function(_0xd8017b){const _0x44a566=_0xc6b673;this['tail']=this[_0x44a566('0xc')]?this[_0x44a566('0xc')][_0x44a566('0x1')](_0xd8017b):_0xd8017b();};const Migration=function(_0xe4ea09){const _0x1645eb=_0xc6b673;this[_0x1645eb('0x4')]=_0xe4ea09,this[_0x1645eb('0x14')]=new Sequence();};Migration[_0xc6b673('0xd')]['changeColumn']=function(_0x371020,_0x4b69f7,_0x3e00c9){const _0xab7761=_0xc6b673,_0x182ef9=this;this['sequence'][_0xab7761('0x2')](function(){const _0x471275=_0xab7761;return _0x182ef9[_0x471275('0x4')][_0x471275('0xb')](_0x371020,_0x4b69f7,_0x3e00c9)[_0x471275('0x5')](function(){const _0x48ca11=_0x471275;logger[_0x48ca11('0x1c')](_0x48ca11('0xe'),_0x4b69f7,_0x371020);})[_0x471275('0x21')](function(_0x17d6ca){const _0x43b108=_0x471275;logger['info'](JSON[_0x43b108('0x22')](_0x17d6ca));});});},Migration[_0xc6b673('0xd')][_0xc6b673('0x3')]=function(_0x21048a,_0x5adc32,_0x21b8a6){const _0x1dc1c7=_0xc6b673,_0x40ab49=this;this[_0x1dc1c7('0x14')]['enqueue'](function(){const _0x1ad215=_0x1dc1c7;return _0x40ab49[_0x1ad215('0x4')][_0x1ad215('0x3')](_0x21048a,_0x5adc32,_0x21b8a6)[_0x1ad215('0x5')](function(){const _0x36f6b2=_0x1ad215;logger[_0x36f6b2('0x1c')](_0x36f6b2('0x25'),_0x5adc32,_0x21048a);})[_0x1ad215('0x21')](function(_0x482f04){const _0x595789=_0x1ad215;logger['info'](JSON[_0x595789('0x22')](_0x482f04));});});},Migration[_0xc6b673('0xd')][_0xc6b673('0x19')]=function(_0x375db2){const _0x435ec6=_0xc6b673,_0x418ff6=this;this[_0x435ec6('0x14')][_0x435ec6('0x2')](function(){const _0x2f4c25=_0x435ec6;return _0x418ff6[_0x2f4c25('0x4')][_0x2f4c25('0x19')](_0x375db2,{'force':!![]})[_0x2f4c25('0x5')](function(){const _0x159885=_0x2f4c25;logger[_0x159885('0x1c')](_0x159885('0x16'),_0x375db2);})[_0x2f4c25('0x21')](function(_0x160573){const _0x5057ec=_0x2f4c25;logger[_0x5057ec('0x1c')](JSON['stringify'](_0x160573));});});},Migration[_0xc6b673('0xd')]['addIndex']=function(_0x47df4a,_0x22191c,_0x49ce2d){const _0x546d95=_0xc6b673,_0x5069dc=this;this[_0x546d95('0x14')]['enqueue'](function(){const _0x4a14ba=_0x546d95;return _0x5069dc[_0x4a14ba('0x4')][_0x4a14ba('0x1a')](_0x47df4a,_0x22191c,{'indexName':_0x49ce2d})[_0x4a14ba('0x5')](function(){const _0x1c1ded=_0x4a14ba;logger[_0x1c1ded('0x1c')](_0x1c1ded('0x13'),_0x47df4a,_0x22191c[_0x1c1ded('0x12')](','),_0x49ce2d);})[_0x4a14ba('0x21')](function(_0x441afe){logger['info'](JSON['stringify'](_0x441afe));});});},Migration[_0xc6b673('0xd')][_0xc6b673('0x9')]=function(_0x10fc95,_0x28d008){const _0x31759b=_0xc6b673,_0x304da9=this;this[_0x31759b('0x14')][_0x31759b('0x2')](function(){const _0x2a7558=_0x31759b;return _0x304da9['queryInterface'][_0x2a7558('0x9')](_0x10fc95,_0x28d008)[_0x2a7558('0x5')](function(){const _0x51b8ce=_0x2a7558;logger[_0x51b8ce('0x1c')](_0x51b8ce('0x23'),_0x10fc95,_0x28d008);})[_0x2a7558('0x21')](function(_0x25d5c9){const _0x393802=_0x2a7558;logger[_0x393802('0x1c')](JSON[_0x393802('0x22')](_0x25d5c9));});});},Migration['prototype'][_0xc6b673('0x8')]=function(_0xe75dca){const _0xf6c7d0=this;this['sequence']['enqueue'](function(){const _0xc8336b=a976_0x36f2;return _0xf6c7d0[_0xc8336b('0x4')]['sequelize'][_0xc8336b('0x8')](_0xe75dca)[_0xc8336b('0x5')](function(){const _0x41ab18=_0xc8336b;logger[_0x41ab18('0x1c')](_0x41ab18('0x15'),_0xe75dca);})[_0xc8336b('0x21')](function(_0x3b8e5a){const _0x5f5ac5=_0xc8336b;logger[_0x5f5ac5('0x1c')](JSON[_0x5f5ac5('0x22')](_0x3b8e5a));});});},Migration[_0xc6b673('0xd')]['removeColumn']=function(_0x14f544,_0x178513){const _0x592f33=_0xc6b673,_0x2aebfe=this;this[_0x592f33('0x14')][_0x592f33('0x2')](function(){const _0x58e895=_0x592f33;return _0x2aebfe[_0x58e895('0x4')]['removeColumn'](_0x14f544,_0x178513)[_0x58e895('0x5')](function(){const _0x25b74a=_0x58e895;logger['info'](_0x25b74a('0x10'),_0x178513,_0x14f544);})[_0x58e895('0x21')](function(_0x1b733f){const _0x54d7b8=_0x58e895;logger[_0x54d7b8('0x1c')](util[_0x54d7b8('0x18')](_0x1b733f,{'showHidden':![],'depth':null}));});});},Migration[_0xc6b673('0xd')][_0xc6b673('0x1f')]=function(_0x5f6f3e,_0x20146d,_0x4ada3e){const _0x4fcc24=this;this['sequence']['enqueue'](function(){const _0x594306=a976_0x36f2;return _0x4fcc24[_0x594306('0x4')][_0x594306('0x1f')](_0x5f6f3e,_0x20146d,_0x4ada3e)[_0x594306('0x5')](function(){const _0x22a08f=_0x594306;logger[_0x22a08f('0x1c')](_0x22a08f('0x24'),_0x20146d,_0x4ada3e,_0x5f6f3e);})[_0x594306('0x21')](function(_0x5e77cb){const _0x233252=_0x594306;logger[_0x233252('0x1c')](util[_0x233252('0x18')](_0x5e77cb,{'showHidden':![],'depth':null}));});});},Migration[_0xc6b673('0xd')][_0xc6b673('0x17')]=function(_0x5c76a4){const _0x5c4789=_0xc6b673;this['sequence'][_0x5c4789('0x2')](function(){return _0x5c76a4();});},module['exports']={'up':function(_0x2b3dce,_0x177a0a){return new Promise(function(_0x5ab462){const _0x64c8f9=a976_0x36f2,_0x23e5cb=new Migration(_0x2b3dce);_0x23e5cb['query'](_0x64c8f9('0x11')),_0x23e5cb[_0x64c8f9('0xb')](_0x64c8f9('0xf'),_0x64c8f9('0x1b'),{'type':_0x177a0a[_0x64c8f9('0xa')]()}),_0x23e5cb[_0x64c8f9('0xb')]('fax_applications','appdata',{'type':_0x177a0a[_0x64c8f9('0xa')]()}),_0x23e5cb[_0x64c8f9('0xb')](_0x64c8f9('0x1e'),_0x64c8f9('0x1b'),{'type':_0x177a0a[_0x64c8f9('0xa')]()}),_0x23e5cb[_0x64c8f9('0xb')](_0x64c8f9('0x7'),_0x64c8f9('0x1b'),{'type':_0x177a0a['TEXT']()}),_0x23e5cb[_0x64c8f9('0xb')](_0x64c8f9('0x20'),_0x64c8f9('0x1b'),{'type':_0x177a0a['TEXT']()}),_0x23e5cb[_0x64c8f9('0x17')](_0x5ab462);});},'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 8ff290d..b838ec4 100644 --- a/server/migrations/2.3.4.js +++ b/server/migrations/2.3.4.js @@ -1 +1 @@ -const a977_0x396b=['query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','sequelize','finally','prototype','dropTable','tail','catch','addIndex','sequence','removeIndex','changeColumn','enqueue','removeColumn','migration','info','inspect','renameColumn','removeIndex\x20%s\x20%s','queryInterface','stringify','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','table\x20dropped\x20%s','then','addColumn','Removed\x20column\x20%s\x20from\x20%s','final'];(function(_0x2806f3,_0x396b20){const _0x4d194c=function(_0x31ea62){while(--_0x31ea62){_0x2806f3['push'](_0x2806f3['shift']());}};_0x4d194c(++_0x396b20);}(a977_0x396b,0xca));const a977_0x4d19=function(_0x2806f3,_0x396b20){_0x2806f3=_0x2806f3-0x0;let _0x4d194c=a977_0x396b[_0x2806f3];return _0x4d194c;};const _0x1aa4e3=a977_0x4d19;'use strict';const util=require('util'),logger=require('../config/logger')(_0x1aa4e3('0x10')),Sequence=function(){};Sequence['prototype'][_0x1aa4e3('0xe')]=function(_0x31ea62){const _0x47272c=_0x1aa4e3;this[_0x47272c('0x8')]=this[_0x47272c('0x8')]?this[_0x47272c('0x8')][_0x47272c('0x5')](_0x31ea62):_0x31ea62();};const Migration=function(_0x24c077){const _0xb42a2d=_0x1aa4e3;this[_0xb42a2d('0x15')]=_0x24c077,this['sequence']=new Sequence();};Migration[_0x1aa4e3('0x6')][_0x1aa4e3('0xd')]=function(_0x49a2c7,_0x448edb,_0xbb0b1c){const _0x53a702=_0x1aa4e3,_0x3155cf=this;this['sequence'][_0x53a702('0xe')](function(){const _0x20bfe4=_0x53a702;return _0x3155cf['queryInterface'][_0x20bfe4('0xd')](_0x49a2c7,_0x448edb,_0xbb0b1c)['then'](function(){const _0xcc20a5=_0x20bfe4;logger[_0xcc20a5('0x11')](_0xcc20a5('0x17'),_0x448edb,_0x49a2c7);})[_0x20bfe4('0x9')](function(_0x328832){const _0x5d43e5=_0x20bfe4;logger[_0x5d43e5('0x11')](JSON[_0x5d43e5('0x16')](_0x328832));});});},Migration[_0x1aa4e3('0x6')][_0x1aa4e3('0x1b')]=function(_0x13dfe0,_0xeab9c6,_0x281e89){const _0x4b9916=_0x1aa4e3,_0x2da678=this;this[_0x4b9916('0xb')][_0x4b9916('0xe')](function(){const _0xa4239b=_0x4b9916;return _0x2da678['queryInterface']['addColumn'](_0x13dfe0,_0xeab9c6,_0x281e89)[_0xa4239b('0x1a')](function(){const _0x33867e=_0xa4239b;logger[_0x33867e('0x11')]('Added\x20column\x20%s\x20to\x20%s',_0xeab9c6,_0x13dfe0);})['catch'](function(_0x9d9da4){const _0x142e6c=_0xa4239b;logger[_0x142e6c('0x11')](JSON[_0x142e6c('0x16')](_0x9d9da4));});});},Migration['prototype'][_0x1aa4e3('0x7')]=function(_0x29c300){const _0x50765e=_0x1aa4e3,_0x2edd52=this;this[_0x50765e('0xb')]['enqueue'](function(){const _0x5127aa=_0x50765e;return _0x2edd52[_0x5127aa('0x15')]['dropTable'](_0x29c300,{'force':!![]})[_0x5127aa('0x1a')](function(){const _0x300d60=_0x5127aa;logger[_0x300d60('0x11')](_0x300d60('0x19'),_0x29c300);})[_0x5127aa('0x9')](function(_0x56fb00){const _0x1c2526=_0x5127aa;logger[_0x1c2526('0x11')](JSON[_0x1c2526('0x16')](_0x56fb00));});});},Migration[_0x1aa4e3('0x6')][_0x1aa4e3('0xa')]=function(_0x586806,_0x58b654,_0x2f7a6c){const _0x3d0403=_0x1aa4e3,_0x49478a=this;this[_0x3d0403('0xb')]['enqueue'](function(){const _0xbeee01=_0x3d0403;return _0x49478a['queryInterface'][_0xbeee01('0xa')](_0x586806,_0x58b654,{'indexName':_0x2f7a6c})[_0xbeee01('0x1a')](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0x586806,_0x58b654['join'](','),_0x2f7a6c);})[_0xbeee01('0x9')](function(_0x97ef11){const _0x41ab5c=_0xbeee01;logger[_0x41ab5c('0x11')](JSON[_0x41ab5c('0x16')](_0x97ef11));});});},Migration['prototype']['removeIndex']=function(_0x3b22c0,_0x39afba){const _0x33ffc8=this;this['sequence']['enqueue'](function(){const _0x5c897c=a977_0x4d19;return _0x33ffc8[_0x5c897c('0x15')][_0x5c897c('0xc')](_0x3b22c0,_0x39afba)[_0x5c897c('0x1a')](function(){const _0x280075=_0x5c897c;logger[_0x280075('0x11')](_0x280075('0x14'),_0x3b22c0,_0x39afba);})[_0x5c897c('0x9')](function(_0x1da84a){const _0x40dffb=_0x5c897c;logger[_0x40dffb('0x11')](JSON[_0x40dffb('0x16')](_0x1da84a));});});},Migration['prototype'][_0x1aa4e3('0x1')]=function(_0x5813fe){const _0x2b875a=_0x1aa4e3,_0x4ff217=this;this['sequence'][_0x2b875a('0xe')](function(){const _0x2f1715=_0x2b875a;return _0x4ff217['queryInterface'][_0x2f1715('0x4')][_0x2f1715('0x1')](_0x5813fe)['then'](function(){const _0x21d407=_0x2f1715;logger['info'](_0x21d407('0x18'),_0x5813fe);})[_0x2f1715('0x9')](function(_0x32d317){const _0x473208=_0x2f1715;logger[_0x473208('0x11')](JSON[_0x473208('0x16')](_0x32d317));});});},Migration[_0x1aa4e3('0x6')][_0x1aa4e3('0xf')]=function(_0x36a6eb,_0x25690d){const _0x37abfb=_0x1aa4e3,_0xf3a9e2=this;this['sequence'][_0x37abfb('0xe')](function(){const _0x3c4383=_0x37abfb;return _0xf3a9e2[_0x3c4383('0x15')][_0x3c4383('0xf')](_0x36a6eb,_0x25690d)[_0x3c4383('0x1a')](function(){const _0x367e07=_0x3c4383;logger[_0x367e07('0x11')](_0x367e07('0x1c'),_0x25690d,_0x36a6eb);})[_0x3c4383('0x9')](function(_0x3c03bc){const _0x5128c3=_0x3c4383;logger[_0x5128c3('0x11')](util[_0x5128c3('0x12')](_0x3c03bc,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x2fd70d,_0x5b11d9,_0x4b63fb){const _0x127a6b=_0x1aa4e3,_0x19fc2c=this;this[_0x127a6b('0xb')]['enqueue'](function(){const _0x59e153=_0x127a6b;return _0x19fc2c['queryInterface'][_0x59e153('0x13')](_0x2fd70d,_0x5b11d9,_0x4b63fb)[_0x59e153('0x1a')](function(){const _0x336de1=_0x59e153;logger[_0x336de1('0x11')](_0x336de1('0x2'),_0x5b11d9,_0x4b63fb,_0x2fd70d);})['catch'](function(_0x5827f8){const _0x1d8de0=_0x59e153;logger[_0x1d8de0('0x11')](util[_0x1d8de0('0x12')](_0x5827f8,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1aa4e3('0x0')]=function(_0x4bb37c){const _0x5df23e=_0x1aa4e3;this[_0x5df23e('0xb')][_0x5df23e('0xe')](function(){return _0x4bb37c();});},module[_0x1aa4e3('0x3')]={'up':function(_0x33c8e4){return new Promise(function(_0x565252){const _0x7ab5e1=new Migration(_0x33c8e4);_0x7ab5e1['final'](_0x565252);});},'down':function(){}}; \ No newline at end of file +const a977_0x1492=['queryInterface','../config/logger','exports','enqueue','info','catch','then','removeIndex\x20%s\x20%s','inspect','stringify','dropTable','changeColumn','Added\x20column\x20%s\x20to\x20%s','tail','removeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','query','sequence','sequelize','final','prototype','finally','addColumn','util','addIndex\x20%s\x20%s\x20%s','removeIndex','addIndex','query\x20%s','renameColumn'];(function(_0x52e619,_0x14925d){const _0x69a31b=function(_0x3fd05f){while(--_0x3fd05f){_0x52e619['push'](_0x52e619['shift']());}};_0x69a31b(++_0x14925d);}(a977_0x1492,0x109));const a977_0x69a3=function(_0x52e619,_0x14925d){_0x52e619=_0x52e619-0x0;let _0x69a31b=a977_0x1492[_0x52e619];return _0x69a31b;};const _0x23c690=a977_0x69a3;'use strict';const util=require(_0x23c690('0x1d')),logger=require(_0x23c690('0x6'))('migration'),Sequence=function(){};Sequence['prototype'][_0x23c690('0x8')]=function(_0x3fd05f){const _0x514a9e=_0x23c690;this[_0x514a9e('0x12')]=this['tail']?this[_0x514a9e('0x12')][_0x514a9e('0x1b')](_0x3fd05f):_0x3fd05f();};const Migration=function(_0x4261b3){const _0x5bb623=_0x23c690;this['queryInterface']=_0x4261b3,this[_0x5bb623('0x17')]=new Sequence();};Migration[_0x23c690('0x1a')]['changeColumn']=function(_0x5f408b,_0x58ee24,_0x2fc0c4){const _0x59e1c2=_0x23c690,_0x1e0434=this;this[_0x59e1c2('0x17')]['enqueue'](function(){const _0xe6f9ad=_0x59e1c2;return _0x1e0434[_0xe6f9ad('0x5')][_0xe6f9ad('0x10')](_0x5f408b,_0x58ee24,_0x2fc0c4)[_0xe6f9ad('0xb')](function(){const _0x45ce5b=_0xe6f9ad;logger[_0x45ce5b('0x9')](_0x45ce5b('0x14'),_0x58ee24,_0x5f408b);})[_0xe6f9ad('0xa')](function(_0x2dbff8){const _0x54f050=_0xe6f9ad;logger['info'](JSON[_0x54f050('0xe')](_0x2dbff8));});});},Migration['prototype'][_0x23c690('0x1c')]=function(_0xdb602f,_0x3ffa83,_0x3c70d0){const _0x23e8f9=_0x23c690,_0xdf8abc=this;this[_0x23e8f9('0x17')]['enqueue'](function(){const _0x54ff3a=_0x23e8f9;return _0xdf8abc[_0x54ff3a('0x5')]['addColumn'](_0xdb602f,_0x3ffa83,_0x3c70d0)[_0x54ff3a('0xb')](function(){const _0x573dbf=_0x54ff3a;logger[_0x573dbf('0x9')](_0x573dbf('0x11'),_0x3ffa83,_0xdb602f);})[_0x54ff3a('0xa')](function(_0x42dc08){const _0x50f28a=_0x54ff3a;logger[_0x50f28a('0x9')](JSON[_0x50f28a('0xe')](_0x42dc08));});});},Migration[_0x23c690('0x1a')]['dropTable']=function(_0x1e978e){const _0x2cee37=_0x23c690,_0x497c7b=this;this[_0x2cee37('0x17')][_0x2cee37('0x8')](function(){const _0x516fce=_0x2cee37;return _0x497c7b[_0x516fce('0x5')][_0x516fce('0xf')](_0x1e978e,{'force':!![]})[_0x516fce('0xb')](function(){const _0x35125a=_0x516fce;logger[_0x35125a('0x9')](_0x35125a('0x15'),_0x1e978e);})[_0x516fce('0xa')](function(_0x433e1b){const _0x4f95e2=_0x516fce;logger[_0x4f95e2('0x9')](JSON[_0x4f95e2('0xe')](_0x433e1b));});});},Migration[_0x23c690('0x1a')][_0x23c690('0x2')]=function(_0xc23de7,_0x46df4d,_0x37a360){const _0x15ec4f=_0x23c690,_0x338c51=this;this[_0x15ec4f('0x17')]['enqueue'](function(){const _0x5ed4e4=_0x15ec4f;return _0x338c51[_0x5ed4e4('0x5')]['addIndex'](_0xc23de7,_0x46df4d,{'indexName':_0x37a360})[_0x5ed4e4('0xb')](function(){const _0x5db3cb=_0x5ed4e4;logger['info'](_0x5db3cb('0x0'),_0xc23de7,_0x46df4d['join'](','),_0x37a360);})['catch'](function(_0x32bdb6){const _0x511e97=_0x5ed4e4;logger[_0x511e97('0x9')](JSON[_0x511e97('0xe')](_0x32bdb6));});});},Migration[_0x23c690('0x1a')][_0x23c690('0x1')]=function(_0x2eb453,_0x58b50f){const _0x1b14fc=_0x23c690,_0x550234=this;this['sequence'][_0x1b14fc('0x8')](function(){const _0x2a5e24=_0x1b14fc;return _0x550234[_0x2a5e24('0x5')][_0x2a5e24('0x1')](_0x2eb453,_0x58b50f)[_0x2a5e24('0xb')](function(){const _0x279cbd=_0x2a5e24;logger[_0x279cbd('0x9')](_0x279cbd('0xc'),_0x2eb453,_0x58b50f);})[_0x2a5e24('0xa')](function(_0x217dab){const _0x477e50=_0x2a5e24;logger[_0x477e50('0x9')](JSON[_0x477e50('0xe')](_0x217dab));});});},Migration[_0x23c690('0x1a')][_0x23c690('0x16')]=function(_0x528790){const _0x44b389=_0x23c690,_0x4937b9=this;this[_0x44b389('0x17')][_0x44b389('0x8')](function(){const _0x4daeaf=_0x44b389;return _0x4937b9[_0x4daeaf('0x5')][_0x4daeaf('0x18')][_0x4daeaf('0x16')](_0x528790)[_0x4daeaf('0xb')](function(){const _0xc28eda=_0x4daeaf;logger[_0xc28eda('0x9')](_0xc28eda('0x3'),_0x528790);})[_0x4daeaf('0xa')](function(_0x261e54){const _0x408014=_0x4daeaf;logger[_0x408014('0x9')](JSON['stringify'](_0x261e54));});});},Migration[_0x23c690('0x1a')]['removeColumn']=function(_0x1e8499,_0x43dff9){const _0x188285=this;this['sequence']['enqueue'](function(){const _0x2274e6=a977_0x69a3;return _0x188285['queryInterface'][_0x2274e6('0x13')](_0x1e8499,_0x43dff9)[_0x2274e6('0xb')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x43dff9,_0x1e8499);})[_0x2274e6('0xa')](function(_0x171a1b){const _0x220e8a=_0x2274e6;logger[_0x220e8a('0x9')](util[_0x220e8a('0xd')](_0x171a1b,{'showHidden':![],'depth':null}));});});},Migration[_0x23c690('0x1a')][_0x23c690('0x4')]=function(_0x4519d3,_0x3a133a,_0x32ac50){const _0x57bd68=_0x23c690,_0x58d99c=this;this[_0x57bd68('0x17')][_0x57bd68('0x8')](function(){const _0x4ea856=_0x57bd68;return _0x58d99c['queryInterface'][_0x4ea856('0x4')](_0x4519d3,_0x3a133a,_0x32ac50)[_0x4ea856('0xb')](function(){const _0x2ea669=_0x4ea856;logger[_0x2ea669('0x9')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3a133a,_0x32ac50,_0x4519d3);})['catch'](function(_0x3f3620){const _0x50ea3d=_0x4ea856;logger[_0x50ea3d('0x9')](util[_0x50ea3d('0xd')](_0x3f3620,{'showHidden':![],'depth':null}));});});},Migration[_0x23c690('0x1a')][_0x23c690('0x19')]=function(_0x4aa66c){const _0x40697a=_0x23c690;this['sequence'][_0x40697a('0x8')](function(){return _0x4aa66c();});},module[_0x23c690('0x7')]={'up':function(_0x1d6bc4){return new Promise(function(_0x2812e){const _0x1cd7fe=a977_0x69a3,_0x13b4b7=new Migration(_0x1d6bc4);_0x13b4b7[_0x1cd7fe('0x19')](_0x2812e);});},'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 d81c221..e34bd87 100644 --- a/server/migrations/2.3.5.js +++ b/server/migrations/2.3.5.js @@ -1 +1 @@ -const a978_0x2e2c=['addIndex\x20%s\x20%s\x20%s\x20[%s]','info','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Added\x20column\x20%s\x20to\x20%s','queryInterface','addIndex','join','prototype','finally','Removed\x20column\x20%s\x20from\x20%s','dropTable','exports','stringify','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','tail','table\x20dropped\x20%s','util','renameColumn','enqueue','final','then','catch','query\x20%s','removeIndex','query','removeColumn','inspect','addColumn','indicesType'];(function(_0x1c4d0a,_0x2e2c48){const _0x177de0=function(_0x436aef){while(--_0x436aef){_0x1c4d0a['push'](_0x1c4d0a['shift']());}};_0x177de0(++_0x2e2c48);}(a978_0x2e2c,0x1eb));const a978_0x177d=function(_0x1c4d0a,_0x2e2c48){_0x1c4d0a=_0x1c4d0a-0x0;let _0x177de0=a978_0x2e2c[_0x1c4d0a];return _0x177de0;};const _0x545d8c=a978_0x177d;'use strict';const util=require(_0x545d8c('0x17')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x545d8c('0xd')][_0x545d8c('0x19')]=function(_0x436aef){const _0x2473fd=_0x545d8c;this[_0x2473fd('0x15')]=this[_0x2473fd('0x15')]?this[_0x2473fd('0x15')][_0x2473fd('0xe')](_0x436aef):_0x436aef();};const Migration=function(_0x5cc4b4){const _0x55ba06=_0x545d8c;this[_0x55ba06('0xa')]=_0x5cc4b4,this['sequence']=new Sequence();};Migration[_0x545d8c('0xd')][_0x545d8c('0x7')]=function(_0x45d312,_0x553e2b,_0x5ad4ac){const _0x2d5998=_0x545d8c,_0x57ebc5=this;this[_0x2d5998('0x13')][_0x2d5998('0x19')](function(){const _0x12b58f=_0x2d5998;return _0x57ebc5[_0x12b58f('0xa')][_0x12b58f('0x7')](_0x45d312,_0x553e2b,_0x5ad4ac)[_0x12b58f('0x1b')](function(){const _0xffc244=_0x12b58f;logger[_0xffc244('0x6')](_0xffc244('0x14'),_0x553e2b,_0x45d312);})[_0x12b58f('0x1c')](function(_0x2e8352){const _0x401dd2=_0x12b58f;logger['info'](JSON[_0x401dd2('0x12')](_0x2e8352));});});},Migration['prototype'][_0x545d8c('0x3')]=function(_0x1ead3a,_0xe531cc,_0x3008de){const _0x2bddac=_0x545d8c,_0x12870e=this;this[_0x2bddac('0x13')]['enqueue'](function(){const _0x1c0e15=_0x2bddac;return _0x12870e[_0x1c0e15('0xa')][_0x1c0e15('0x3')](_0x1ead3a,_0xe531cc,_0x3008de)[_0x1c0e15('0x1b')](function(){const _0x218641=_0x1c0e15;logger[_0x218641('0x6')](_0x218641('0x9'),_0xe531cc,_0x1ead3a);})['catch'](function(_0x47b09f){const _0x1bae15=_0x1c0e15;logger[_0x1bae15('0x6')](JSON[_0x1bae15('0x12')](_0x47b09f));});});},Migration[_0x545d8c('0xd')][_0x545d8c('0x10')]=function(_0x4c1501){const _0x20626f=_0x545d8c,_0x228465=this;this[_0x20626f('0x13')][_0x20626f('0x19')](function(){const _0xbc173d=_0x20626f;return _0x228465[_0xbc173d('0xa')][_0xbc173d('0x10')](_0x4c1501,{'force':!![]})[_0xbc173d('0x1b')](function(){const _0x8dfd16=_0xbc173d;logger[_0x8dfd16('0x6')](_0x8dfd16('0x16'),_0x4c1501);})[_0xbc173d('0x1c')](function(_0x5c9184){const _0x49cab0=_0xbc173d;logger[_0x49cab0('0x6')](JSON[_0x49cab0('0x12')](_0x5c9184));});});},Migration['prototype']['addIndex']=function(_0x465a2e,_0xd232d8,_0x4a6988){const _0x5c59b9=_0x545d8c,_0x3a53cc=this;this[_0x5c59b9('0x13')][_0x5c59b9('0x19')](function(){const _0x54bcd7=_0x5c59b9;return _0x3a53cc[_0x54bcd7('0xa')][_0x54bcd7('0xb')](_0x465a2e,_0xd232d8,{'indexName':_0x4a6988['indexName'],'indicesType':_0x4a6988[_0x54bcd7('0x4')]})[_0x54bcd7('0x1b')](function(){const _0x433c2d=_0x54bcd7;logger[_0x433c2d('0x6')](_0x433c2d('0x5'),_0x465a2e,_0xd232d8[_0x433c2d('0xc')](','),_0x4a6988['indexName'],_0x4a6988[_0x433c2d('0x4')]);})[_0x54bcd7('0x1c')](function(_0x5537e0){const _0x546ff1=_0x54bcd7;logger['info'](JSON[_0x546ff1('0x12')](_0x5537e0));});});},Migration[_0x545d8c('0xd')]['removeIndex']=function(_0x1724f1,_0x4ab245){const _0x1258ed=_0x545d8c,_0xc258fa=this;this[_0x1258ed('0x13')]['enqueue'](function(){const _0x599656=_0x1258ed;return _0xc258fa[_0x599656('0xa')][_0x599656('0x1e')](_0x1724f1,_0x4ab245)[_0x599656('0x1b')](function(){const _0x11528f=_0x599656;logger[_0x11528f('0x6')]('removeIndex\x20%s\x20%s',_0x1724f1,_0x4ab245);})['catch'](function(_0x2eb1a6){const _0xed1076=_0x599656;logger[_0xed1076('0x6')](JSON['stringify'](_0x2eb1a6));});});},Migration[_0x545d8c('0xd')]['query']=function(_0x4a2531){const _0x3c7028=_0x545d8c,_0x3ab102=this;this[_0x3c7028('0x13')][_0x3c7028('0x19')](function(){const _0x28b867=_0x3c7028;return _0x3ab102['queryInterface']['sequelize'][_0x28b867('0x0')](_0x4a2531)[_0x28b867('0x1b')](function(){const _0x27c784=_0x28b867;logger[_0x27c784('0x6')](_0x27c784('0x1d'),_0x4a2531);})['catch'](function(_0x8178c2){const _0x506ce9=_0x28b867;logger[_0x506ce9('0x6')](JSON[_0x506ce9('0x12')](_0x8178c2));});});},Migration[_0x545d8c('0xd')][_0x545d8c('0x1')]=function(_0x17df54,_0x5f5115){const _0x46577a=_0x545d8c,_0x37310d=this;this[_0x46577a('0x13')][_0x46577a('0x19')](function(){const _0x1ea53a=_0x46577a;return _0x37310d[_0x1ea53a('0xa')][_0x1ea53a('0x1')](_0x17df54,_0x5f5115)[_0x1ea53a('0x1b')](function(){const _0x500d1a=_0x1ea53a;logger['info'](_0x500d1a('0xf'),_0x5f5115,_0x17df54);})[_0x1ea53a('0x1c')](function(_0x3c1267){const _0x43964f=_0x1ea53a;logger[_0x43964f('0x6')](util[_0x43964f('0x2')](_0x3c1267,{'showHidden':![],'depth':null}));});});},Migration[_0x545d8c('0xd')]['renameColumn']=function(_0x17c0e8,_0x223ffa,_0x330929){const _0x2e856f=_0x545d8c,_0x52d344=this;this[_0x2e856f('0x13')][_0x2e856f('0x19')](function(){const _0x12dd5a=_0x2e856f;return _0x52d344[_0x12dd5a('0xa')][_0x12dd5a('0x18')](_0x17c0e8,_0x223ffa,_0x330929)[_0x12dd5a('0x1b')](function(){const _0xf467e8=_0x12dd5a;logger['info'](_0xf467e8('0x8'),_0x223ffa,_0x330929,_0x17c0e8);})[_0x12dd5a('0x1c')](function(_0x144f10){const _0x2c3ca5=_0x12dd5a;logger[_0x2c3ca5('0x6')](util[_0x2c3ca5('0x2')](_0x144f10,{'showHidden':![],'depth':null}));});});},Migration[_0x545d8c('0xd')][_0x545d8c('0x1a')]=function(_0x4b58be){const _0x45deff=_0x545d8c;this[_0x45deff('0x13')][_0x45deff('0x19')](function(){return _0x4b58be();});},module[_0x545d8c('0x11')]={'up':function(_0x2d3c50){return new Promise(function(_0x35dd84){const _0x1f14be=new Migration(_0x2d3c50);_0x1f14be['final'](_0x35dd84);});},'down':function(){}}; \ No newline at end of file +const a978_0x1eba=['removeIndex','inspect','removeColumn','exports','Added\x20column\x20%s\x20to\x20%s','tail','indicesType','removeIndex\x20%s\x20%s','finally','util','Removed\x20column\x20%s\x20from\x20%s','sequence','table\x20dropped\x20%s','final','addIndex\x20%s\x20%s\x20%s\x20[%s]','addColumn','query','catch','info','addIndex','dropTable','stringify','indexName','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','then','queryInterface','enqueue','renameColumn','changeColumn','prototype'];(function(_0x101d7d,_0x1eba88){const _0x9651a0=function(_0x40b96d){while(--_0x40b96d){_0x101d7d['push'](_0x101d7d['shift']());}};_0x9651a0(++_0x1eba88);}(a978_0x1eba,0x9a));const a978_0x9651=function(_0x101d7d,_0x1eba88){_0x101d7d=_0x101d7d-0x0;let _0x9651a0=a978_0x1eba[_0x101d7d];return _0x9651a0;};const _0x4a94a8=a978_0x9651;'use strict';const util=require(_0x4a94a8('0xa')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x4a94a8('0x0')]['enqueue']=function(_0x40b96d){const _0x54227f=_0x4a94a8;this[_0x54227f('0x6')]=this[_0x54227f('0x6')]?this['tail'][_0x54227f('0x9')](_0x40b96d):_0x40b96d();};const Migration=function(_0x69dcac){const _0x4589ae=_0x4a94a8;this[_0x4589ae('0x1b')]=_0x69dcac,this[_0x4589ae('0xc')]=new Sequence();};Migration[_0x4a94a8('0x0')][_0x4a94a8('0x1e')]=function(_0x26c656,_0x1f1740,_0x5d77d6){const _0x259578=_0x4a94a8,_0x1f1684=this;this['sequence'][_0x259578('0x1c')](function(){const _0xe89915=_0x259578;return _0x1f1684[_0xe89915('0x1b')]['changeColumn'](_0x26c656,_0x1f1740,_0x5d77d6)[_0xe89915('0x1a')](function(){const _0x59cff2=_0xe89915;logger[_0x59cff2('0x13')](_0x59cff2('0x18'),_0x1f1740,_0x26c656);})[_0xe89915('0x12')](function(_0x5b67a4){const _0x3f20bb=_0xe89915;logger[_0x3f20bb('0x13')](JSON[_0x3f20bb('0x16')](_0x5b67a4));});});},Migration['prototype']['addColumn']=function(_0x15212b,_0x392bd8,_0x14bbf9){const _0x50f15c=_0x4a94a8,_0x46d382=this;this[_0x50f15c('0xc')][_0x50f15c('0x1c')](function(){const _0xef70d3=_0x50f15c;return _0x46d382['queryInterface'][_0xef70d3('0x10')](_0x15212b,_0x392bd8,_0x14bbf9)[_0xef70d3('0x1a')](function(){const _0x47729f=_0xef70d3;logger[_0x47729f('0x13')](_0x47729f('0x5'),_0x392bd8,_0x15212b);})[_0xef70d3('0x12')](function(_0x34913d){const _0x72fa6d=_0xef70d3;logger['info'](JSON[_0x72fa6d('0x16')](_0x34913d));});});},Migration[_0x4a94a8('0x0')][_0x4a94a8('0x15')]=function(_0x3ae5ed){const _0x5c4a74=_0x4a94a8,_0x2af7b1=this;this['sequence'][_0x5c4a74('0x1c')](function(){const _0x3a1bb5=_0x5c4a74;return _0x2af7b1[_0x3a1bb5('0x1b')][_0x3a1bb5('0x15')](_0x3ae5ed,{'force':!![]})[_0x3a1bb5('0x1a')](function(){const _0x1fb457=_0x3a1bb5;logger[_0x1fb457('0x13')](_0x1fb457('0xd'),_0x3ae5ed);})[_0x3a1bb5('0x12')](function(_0x482b14){const _0x38b645=_0x3a1bb5;logger['info'](JSON[_0x38b645('0x16')](_0x482b14));});});},Migration[_0x4a94a8('0x0')]['addIndex']=function(_0x573e4f,_0x2288ec,_0x19c885){const _0x294cf7=_0x4a94a8,_0x1afd10=this;this['sequence'][_0x294cf7('0x1c')](function(){const _0x51368a=_0x294cf7;return _0x1afd10['queryInterface'][_0x51368a('0x14')](_0x573e4f,_0x2288ec,{'indexName':_0x19c885[_0x51368a('0x17')],'indicesType':_0x19c885[_0x51368a('0x7')]})[_0x51368a('0x1a')](function(){const _0x162c48=_0x51368a;logger[_0x162c48('0x13')](_0x162c48('0xf'),_0x573e4f,_0x2288ec['join'](','),_0x19c885[_0x162c48('0x17')],_0x19c885['indicesType']);})[_0x51368a('0x12')](function(_0x57284c){const _0x1fa127=_0x51368a;logger[_0x1fa127('0x13')](JSON['stringify'](_0x57284c));});});},Migration[_0x4a94a8('0x0')][_0x4a94a8('0x1')]=function(_0x2bd3ed,_0x1442f6){const _0x60f4f2=_0x4a94a8,_0x3730fa=this;this[_0x60f4f2('0xc')][_0x60f4f2('0x1c')](function(){const _0x414e7d=_0x60f4f2;return _0x3730fa['queryInterface'][_0x414e7d('0x1')](_0x2bd3ed,_0x1442f6)[_0x414e7d('0x1a')](function(){const _0x47b9ea=_0x414e7d;logger[_0x47b9ea('0x13')](_0x47b9ea('0x8'),_0x2bd3ed,_0x1442f6);})['catch'](function(_0x57981a){const _0x4a46c8=_0x414e7d;logger[_0x4a46c8('0x13')](JSON[_0x4a46c8('0x16')](_0x57981a));});});},Migration[_0x4a94a8('0x0')][_0x4a94a8('0x11')]=function(_0x3f7729){const _0x2cb03b=_0x4a94a8,_0x5eb15a=this;this[_0x2cb03b('0xc')]['enqueue'](function(){const _0x530afa=_0x2cb03b;return _0x5eb15a['queryInterface'][_0x530afa('0x19')]['query'](_0x3f7729)[_0x530afa('0x1a')](function(){const _0x4317a0=_0x530afa;logger[_0x4317a0('0x13')]('query\x20%s',_0x3f7729);})['catch'](function(_0x334632){const _0x1baea5=_0x530afa;logger['info'](JSON[_0x1baea5('0x16')](_0x334632));});});},Migration[_0x4a94a8('0x0')][_0x4a94a8('0x3')]=function(_0x1db9e0,_0x5a907d){const _0x2ce32e=this;this['sequence']['enqueue'](function(){const _0x4d6227=a978_0x9651;return _0x2ce32e[_0x4d6227('0x1b')]['removeColumn'](_0x1db9e0,_0x5a907d)[_0x4d6227('0x1a')](function(){const _0x5d22c5=_0x4d6227;logger[_0x5d22c5('0x13')](_0x5d22c5('0xb'),_0x5a907d,_0x1db9e0);})[_0x4d6227('0x12')](function(_0x28f34e){const _0x5dbb36=_0x4d6227;logger['info'](util[_0x5dbb36('0x2')](_0x28f34e,{'showHidden':![],'depth':null}));});});},Migration[_0x4a94a8('0x0')][_0x4a94a8('0x1d')]=function(_0x2748f5,_0xc27939,_0x514a36){const _0x5ab08d=_0x4a94a8,_0x3205a6=this;this[_0x5ab08d('0xc')]['enqueue'](function(){const _0x38b4ed=_0x5ab08d;return _0x3205a6['queryInterface']['renameColumn'](_0x2748f5,_0xc27939,_0x514a36)[_0x38b4ed('0x1a')](function(){const _0x3cf1cd=_0x38b4ed;logger[_0x3cf1cd('0x13')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xc27939,_0x514a36,_0x2748f5);})[_0x38b4ed('0x12')](function(_0x3ad67a){const _0x286e6d=_0x38b4ed;logger[_0x286e6d('0x13')](util['inspect'](_0x3ad67a,{'showHidden':![],'depth':null}));});});},Migration[_0x4a94a8('0x0')][_0x4a94a8('0xe')]=function(_0x4084f2){const _0x14e540=_0x4a94a8;this[_0x14e540('0xc')][_0x14e540('0x1c')](function(){return _0x4084f2();});},module[_0x4a94a8('0x4')]={'up':function(_0x45b7ca){return new Promise(function(_0x884592){const _0x49d010=a978_0x9651,_0x500403=new Migration(_0x45b7ca);_0x500403[_0x49d010('0xe')](_0x884592);});},'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 01bdb3b..45b0eb7 100644 --- a/server/migrations/2.3.6.js +++ b/server/migrations/2.3.6.js @@ -1 +1 @@ -const a979_0x6aa3=['indicesType','util','indexName','queryInterface','addIndex','then','sequence','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','enqueue','tail','removeColumn','sequelize','table\x20dropped\x20%s','migration','stringify','join','addColumn','exports','removeIndex','query\x20%s','removeIndex\x20%s\x20%s','changeColumn','inspect','catch','info','Removed\x20column\x20%s\x20from\x20%s','renameColumn','query','final','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x16979f,_0x6aa3e2){const _0x1387e4=function(_0x2fa68c){while(--_0x2fa68c){_0x16979f['push'](_0x16979f['shift']());}};_0x1387e4(++_0x6aa3e2);}(a979_0x6aa3,0x73));const a979_0x1387=function(_0x16979f,_0x6aa3e2){_0x16979f=_0x16979f-0x0;let _0x1387e4=a979_0x6aa3[_0x16979f];return _0x1387e4;};const _0x306d3b=a979_0x1387;'use strict';const util=require(_0x306d3b('0xe')),logger=require('../config/logger')(_0x306d3b('0x1c')),Sequence=function(){};Sequence[_0x306d3b('0x14')][_0x306d3b('0x17')]=function(_0x2fa68c){const _0x5087fa=_0x306d3b;this[_0x5087fa('0x18')]=this['tail']?this[_0x5087fa('0x18')]['finally'](_0x2fa68c):_0x2fa68c();};const Migration=function(_0x4b670c){const _0xad1251=_0x306d3b;this[_0xad1251('0x10')]=_0x4b670c,this[_0xad1251('0x13')]=new Sequence();};Migration[_0x306d3b('0x14')]['changeColumn']=function(_0x48ead0,_0x10908e,_0x216395){const _0x3709de=_0x306d3b,_0xbcec5e=this;this[_0x3709de('0x13')][_0x3709de('0x17')](function(){const _0x508ecd=_0x3709de;return _0xbcec5e[_0x508ecd('0x10')][_0x508ecd('0x4')](_0x48ead0,_0x10908e,_0x216395)['then'](function(){const _0x3932b3=_0x508ecd;logger[_0x3932b3('0x7')](_0x3932b3('0xc'),_0x10908e,_0x48ead0);})[_0x508ecd('0x6')](function(_0x5bd748){const _0x348ba5=_0x508ecd;logger[_0x348ba5('0x7')](JSON[_0x348ba5('0x1d')](_0x5bd748));});});},Migration['prototype'][_0x306d3b('0x1f')]=function(_0x54f67c,_0x13728e,_0x3e5835){const _0x391328=_0x306d3b,_0x12e94b=this;this['sequence'][_0x391328('0x17')](function(){const _0xd2370e=_0x391328;return _0x12e94b['queryInterface'][_0xd2370e('0x1f')](_0x54f67c,_0x13728e,_0x3e5835)[_0xd2370e('0x12')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x13728e,_0x54f67c);})[_0xd2370e('0x6')](function(_0x14ce25){const _0x4e9481=_0xd2370e;logger['info'](JSON[_0x4e9481('0x1d')](_0x14ce25));});});},Migration[_0x306d3b('0x14')]['dropTable']=function(_0x4cbb6b){const _0x6e658c=this;this['sequence']['enqueue'](function(){const _0xca6232=a979_0x1387;return _0x6e658c[_0xca6232('0x10')][_0xca6232('0x16')](_0x4cbb6b,{'force':!![]})[_0xca6232('0x12')](function(){const _0x347f9c=_0xca6232;logger['info'](_0x347f9c('0x1b'),_0x4cbb6b);})[_0xca6232('0x6')](function(_0x17700a){const _0x3b1397=_0xca6232;logger['info'](JSON[_0x3b1397('0x1d')](_0x17700a));});});},Migration[_0x306d3b('0x14')][_0x306d3b('0x11')]=function(_0x59f3eb,_0x24b4af,_0x169a30){const _0x2276c9=_0x306d3b,_0x3ec70=this;this[_0x2276c9('0x13')][_0x2276c9('0x17')](function(){const _0x30ec0c=_0x2276c9;return _0x3ec70[_0x30ec0c('0x10')][_0x30ec0c('0x11')](_0x59f3eb,_0x24b4af,{'indexName':_0x169a30[_0x30ec0c('0xf')],'indicesType':_0x169a30['indicesType']})[_0x30ec0c('0x12')](function(){const _0x2d09d6=_0x30ec0c;logger[_0x2d09d6('0x7')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x59f3eb,_0x24b4af[_0x2d09d6('0x1e')](','),_0x169a30[_0x2d09d6('0xf')],_0x169a30[_0x2d09d6('0xd')]);})[_0x30ec0c('0x6')](function(_0x1a788e){const _0x27284f=_0x30ec0c;logger[_0x27284f('0x7')](JSON[_0x27284f('0x1d')](_0x1a788e));});});},Migration[_0x306d3b('0x14')][_0x306d3b('0x1')]=function(_0x400747,_0x17412a){const _0xd8ff1b=_0x306d3b,_0x5d7ce9=this;this[_0xd8ff1b('0x13')][_0xd8ff1b('0x17')](function(){const _0x244778=_0xd8ff1b;return _0x5d7ce9[_0x244778('0x10')][_0x244778('0x1')](_0x400747,_0x17412a)[_0x244778('0x12')](function(){const _0x2f8326=_0x244778;logger['info'](_0x2f8326('0x3'),_0x400747,_0x17412a);})[_0x244778('0x6')](function(_0x37c458){const _0x567522=_0x244778;logger[_0x567522('0x7')](JSON[_0x567522('0x1d')](_0x37c458));});});},Migration['prototype'][_0x306d3b('0xa')]=function(_0x248482){const _0x453d18=this;this['sequence']['enqueue'](function(){const _0x66cf7d=a979_0x1387;return _0x453d18['queryInterface'][_0x66cf7d('0x1a')][_0x66cf7d('0xa')](_0x248482)[_0x66cf7d('0x12')](function(){const _0x20baa5=_0x66cf7d;logger['info'](_0x20baa5('0x2'),_0x248482);})[_0x66cf7d('0x6')](function(_0x5ce337){const _0x30c1d7=_0x66cf7d;logger['info'](JSON[_0x30c1d7('0x1d')](_0x5ce337));});});},Migration['prototype'][_0x306d3b('0x19')]=function(_0x25b7fd,_0x42ca1e){const _0x4df2e8=_0x306d3b,_0x42f500=this;this[_0x4df2e8('0x13')]['enqueue'](function(){const _0x3146c6=_0x4df2e8;return _0x42f500[_0x3146c6('0x10')][_0x3146c6('0x19')](_0x25b7fd,_0x42ca1e)[_0x3146c6('0x12')](function(){const _0x2192ad=_0x3146c6;logger[_0x2192ad('0x7')](_0x2192ad('0x8'),_0x42ca1e,_0x25b7fd);})['catch'](function(_0x3b6bf0){const _0xf07e92=_0x3146c6;logger[_0xf07e92('0x7')](util[_0xf07e92('0x5')](_0x3b6bf0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x306d3b('0x9')]=function(_0x43e48e,_0x573d40,_0x234436){const _0x3421c4=this;this['sequence']['enqueue'](function(){const _0x28d3ce=a979_0x1387;return _0x3421c4[_0x28d3ce('0x10')]['renameColumn'](_0x43e48e,_0x573d40,_0x234436)[_0x28d3ce('0x12')](function(){const _0x3b8cea=_0x28d3ce;logger[_0x3b8cea('0x7')](_0x3b8cea('0x15'),_0x573d40,_0x234436,_0x43e48e);})['catch'](function(_0x4ba0b4){const _0x29b131=_0x28d3ce;logger[_0x29b131('0x7')](util[_0x29b131('0x5')](_0x4ba0b4,{'showHidden':![],'depth':null}));});});},Migration[_0x306d3b('0x14')][_0x306d3b('0xb')]=function(_0x5ece78){const _0x5a9566=_0x306d3b;this[_0x5a9566('0x13')]['enqueue'](function(){return _0x5ece78();});},module[_0x306d3b('0x0')]={'up':function(_0x33630f){return new Promise(function(_0x6403a8){const _0x1a588f=a979_0x1387,_0xdc112e=new Migration(_0x33630f);_0xdc112e[_0x1a588f('0xb')](_0x6403a8);});},'down':function(){}}; \ No newline at end of file +const a979_0x1245=['prototype','indicesType','changeColumn','sequence','sequelize','then','finally','catch','info','migration','addColumn','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','table\x20dropped\x20%s','dropTable','removeIndex','tail','enqueue','inspect','Added\x20column\x20%s\x20to\x20%s','util','stringify','removeColumn','removeIndex\x20%s\x20%s','addIndex','query','renameColumn'];(function(_0x201fac,_0x1245a7){const _0x35cc6d=function(_0x46b33e){while(--_0x46b33e){_0x201fac['push'](_0x201fac['shift']());}};_0x35cc6d(++_0x1245a7);}(a979_0x1245,0xa1));const a979_0x35cc=function(_0x201fac,_0x1245a7){_0x201fac=_0x201fac-0x0;let _0x35cc6d=a979_0x1245[_0x201fac];return _0x35cc6d;};const _0x3ceae1=a979_0x35cc;'use strict';const util=require(_0x3ceae1('0x0')),logger=require('../config/logger')(_0x3ceae1('0x10')),Sequence=function(){};Sequence[_0x3ceae1('0x7')]['enqueue']=function(_0x46b33e){const _0x3d6f1d=_0x3ceae1;this[_0x3d6f1d('0x18')]=this[_0x3d6f1d('0x18')]?this[_0x3d6f1d('0x18')][_0x3d6f1d('0xd')](_0x46b33e):_0x46b33e();};const Migration=function(_0x3a4d03){const _0x4b391d=_0x3ceae1;this[_0x4b391d('0x12')]=_0x3a4d03,this['sequence']=new Sequence();};Migration[_0x3ceae1('0x7')]['changeColumn']=function(_0x176f06,_0x332d75,_0x1ac8d0){const _0x48a95c=_0x3ceae1,_0xfbae0e=this;this[_0x48a95c('0xa')][_0x48a95c('0x19')](function(){const _0x4dc9d9=_0x48a95c;return _0xfbae0e[_0x4dc9d9('0x12')][_0x4dc9d9('0x9')](_0x176f06,_0x332d75,_0x1ac8d0)['then'](function(){const _0x42a68b=_0x4dc9d9;logger[_0x42a68b('0xf')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x332d75,_0x176f06);})['catch'](function(_0x3f99a6){const _0x374ebc=_0x4dc9d9;logger[_0x374ebc('0xf')](JSON[_0x374ebc('0x1')](_0x3f99a6));});});},Migration[_0x3ceae1('0x7')][_0x3ceae1('0x11')]=function(_0x259ac5,_0x3d592f,_0xba002){const _0x51cd87=_0x3ceae1,_0x4207a0=this;this[_0x51cd87('0xa')][_0x51cd87('0x19')](function(){const _0x3cc22a=_0x51cd87;return _0x4207a0['queryInterface']['addColumn'](_0x259ac5,_0x3d592f,_0xba002)[_0x3cc22a('0xc')](function(){const _0x16ae1f=_0x3cc22a;logger['info'](_0x16ae1f('0x1b'),_0x3d592f,_0x259ac5);})[_0x3cc22a('0xe')](function(_0x311d09){const _0x10319f=_0x3cc22a;logger[_0x10319f('0xf')](JSON['stringify'](_0x311d09));});});},Migration[_0x3ceae1('0x7')][_0x3ceae1('0x16')]=function(_0x4cea58){const _0x5297da=_0x3ceae1,_0xe93931=this;this[_0x5297da('0xa')][_0x5297da('0x19')](function(){const _0x43b94d=_0x5297da;return _0xe93931['queryInterface'][_0x43b94d('0x16')](_0x4cea58,{'force':!![]})['then'](function(){const _0x33346e=_0x43b94d;logger[_0x33346e('0xf')](_0x33346e('0x15'),_0x4cea58);})['catch'](function(_0x263bac){const _0x4aabbb=_0x43b94d;logger[_0x4aabbb('0xf')](JSON['stringify'](_0x263bac));});});},Migration['prototype'][_0x3ceae1('0x4')]=function(_0x4ea201,_0x1d0712,_0xf7b590){const _0x5d0853=_0x3ceae1,_0x1784de=this;this['sequence'][_0x5d0853('0x19')](function(){const _0x16ff67=_0x5d0853;return _0x1784de['queryInterface'][_0x16ff67('0x4')](_0x4ea201,_0x1d0712,{'indexName':_0xf7b590['indexName'],'indicesType':_0xf7b590[_0x16ff67('0x8')]})[_0x16ff67('0xc')](function(){const _0xd7d85=_0x16ff67;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x4ea201,_0x1d0712['join'](','),_0xf7b590['indexName'],_0xf7b590[_0xd7d85('0x8')]);})[_0x16ff67('0xe')](function(_0x126e7b){const _0x487937=_0x16ff67;logger[_0x487937('0xf')](JSON['stringify'](_0x126e7b));});});},Migration[_0x3ceae1('0x7')]['removeIndex']=function(_0x3e2898,_0x21d164){const _0x3c097c=_0x3ceae1,_0x10d2b8=this;this[_0x3c097c('0xa')][_0x3c097c('0x19')](function(){const _0x218440=_0x3c097c;return _0x10d2b8[_0x218440('0x12')][_0x218440('0x17')](_0x3e2898,_0x21d164)[_0x218440('0xc')](function(){const _0x280967=_0x218440;logger['info'](_0x280967('0x3'),_0x3e2898,_0x21d164);})[_0x218440('0xe')](function(_0xe29a2b){const _0xeba051=_0x218440;logger[_0xeba051('0xf')](JSON[_0xeba051('0x1')](_0xe29a2b));});});},Migration[_0x3ceae1('0x7')][_0x3ceae1('0x5')]=function(_0x4eb028){const _0x41fb8e=_0x3ceae1,_0x5b481a=this;this[_0x41fb8e('0xa')][_0x41fb8e('0x19')](function(){const _0x107d0e=_0x41fb8e;return _0x5b481a[_0x107d0e('0x12')][_0x107d0e('0xb')][_0x107d0e('0x5')](_0x4eb028)[_0x107d0e('0xc')](function(){const _0x99dd4f=_0x107d0e;logger[_0x99dd4f('0xf')](_0x99dd4f('0x14'),_0x4eb028);})[_0x107d0e('0xe')](function(_0x367b72){const _0x253ed5=_0x107d0e;logger[_0x253ed5('0xf')](JSON[_0x253ed5('0x1')](_0x367b72));});});},Migration[_0x3ceae1('0x7')][_0x3ceae1('0x2')]=function(_0x418875,_0x353355){const _0x406ed9=_0x3ceae1,_0x45411b=this;this[_0x406ed9('0xa')][_0x406ed9('0x19')](function(){const _0x329412=_0x406ed9;return _0x45411b['queryInterface'][_0x329412('0x2')](_0x418875,_0x353355)[_0x329412('0xc')](function(){const _0x1978d6=_0x329412;logger[_0x1978d6('0xf')]('Removed\x20column\x20%s\x20from\x20%s',_0x353355,_0x418875);})[_0x329412('0xe')](function(_0x4c78fc){const _0x267d54=_0x329412;logger[_0x267d54('0xf')](util['inspect'](_0x4c78fc,{'showHidden':![],'depth':null}));});});},Migration[_0x3ceae1('0x7')]['renameColumn']=function(_0x342481,_0x49ba45,_0x15b29c){const _0x36b04d=_0x3ceae1,_0x1e137e=this;this[_0x36b04d('0xa')][_0x36b04d('0x19')](function(){const _0xd4ae2e=_0x36b04d;return _0x1e137e['queryInterface'][_0xd4ae2e('0x6')](_0x342481,_0x49ba45,_0x15b29c)[_0xd4ae2e('0xc')](function(){const _0x47490a=_0xd4ae2e;logger[_0x47490a('0xf')](_0x47490a('0x13'),_0x49ba45,_0x15b29c,_0x342481);})[_0xd4ae2e('0xe')](function(_0x2de04f){const _0x5aee0f=_0xd4ae2e;logger[_0x5aee0f('0xf')](util[_0x5aee0f('0x1a')](_0x2de04f,{'showHidden':![],'depth':null}));});});},Migration[_0x3ceae1('0x7')]['final']=function(_0xec51a3){const _0x54534a=_0x3ceae1;this[_0x54534a('0xa')][_0x54534a('0x19')](function(){return _0xec51a3();});},module['exports']={'up':function(_0x10b489){return new Promise(function(_0x5d4672){const _0xee86f7=new Migration(_0x10b489);_0xee86f7['final'](_0x5d4672);});},'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 457a113..ed1cacb 100644 --- a/server/migrations/2.3.7.js +++ b/server/migrations/2.3.7.js @@ -1 +1 @@ -const a980_0x247e=['query','report_call','../config/logger','removeColumn','join','then','addIndex','removeIndex','prototype','DATE','sequence','Added\x20column\x20%s\x20to\x20%s','ENUM','addIndex\x20%s\x20%s\x20%s','finally','systemanswertime','changeColumn','Case','queryInterface','Task','transferexten','removeIndex\x20%s\x20%s','tail','transfertype','util','dropTable','final','Removed\x20column\x20%s\x20from\x20%s','stringify','info','STRING','transferuniqueid','catch','renameColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','FORWARD,\x20BLIND,\x20ATTENDED','addColumn','enqueue','int_salesforce_configurations','report_agent'];(function(_0x66c5c,_0x247eee){const _0x3c03ac=function(_0x1ff81d){while(--_0x1ff81d){_0x66c5c['push'](_0x66c5c['shift']());}};_0x3c03ac(++_0x247eee);}(a980_0x247e,0x141));const a980_0x3c03=function(_0x66c5c,_0x247eee){_0x66c5c=_0x66c5c-0x0;let _0x3c03ac=a980_0x247e[_0x66c5c];return _0x3c03ac;};const _0x5b8648=a980_0x3c03;'use strict';const util=require(_0x5b8648('0x1f')),logger=require(_0x5b8648('0x9'))('migration'),Sequence=function(){};Sequence['prototype'][_0x5b8648('0x4')]=function(_0x1ff81d){const _0x3b39c9=_0x5b8648;this[_0x3b39c9('0x1d')]=this[_0x3b39c9('0x1d')]?this[_0x3b39c9('0x1d')][_0x3b39c9('0x15')](_0x1ff81d):_0x1ff81d();};const Migration=function(_0x496c10){const _0x250ab9=_0x5b8648;this[_0x250ab9('0x19')]=_0x496c10,this[_0x250ab9('0x11')]=new Sequence();};Migration[_0x5b8648('0xf')][_0x5b8648('0x17')]=function(_0x9f8b0e,_0x7270ba,_0x388467){const _0x29ad21=_0x5b8648,_0x1c2cea=this;this['sequence'][_0x29ad21('0x4')](function(){const _0x235cde=_0x29ad21;return _0x1c2cea[_0x235cde('0x19')][_0x235cde('0x17')](_0x9f8b0e,_0x7270ba,_0x388467)[_0x235cde('0xc')](function(){const _0x4f7975=_0x235cde;logger[_0x4f7975('0x24')](_0x4f7975('0x0'),_0x7270ba,_0x9f8b0e);})[_0x235cde('0x27')](function(_0x31d8cf){const _0x17b4ae=_0x235cde;logger[_0x17b4ae('0x24')](JSON[_0x17b4ae('0x23')](_0x31d8cf));});});},Migration[_0x5b8648('0xf')][_0x5b8648('0x3')]=function(_0x3c7b06,_0x3d6f96,_0x33eb48){const _0x111b88=_0x5b8648,_0x20ecfa=this;this[_0x111b88('0x11')]['enqueue'](function(){const _0x5b2882=_0x111b88;return _0x20ecfa['queryInterface'][_0x5b2882('0x3')](_0x3c7b06,_0x3d6f96,_0x33eb48)[_0x5b2882('0xc')](function(){const _0x552639=_0x5b2882;logger[_0x552639('0x24')](_0x552639('0x12'),_0x3d6f96,_0x3c7b06);})['catch'](function(_0x1c49c2){const _0x538828=_0x5b2882;logger[_0x538828('0x24')](JSON['stringify'](_0x1c49c2));});});},Migration['prototype'][_0x5b8648('0x20')]=function(_0x4b47b5){const _0x4d6fc6=_0x5b8648,_0x417880=this;this[_0x4d6fc6('0x11')][_0x4d6fc6('0x4')](function(){const _0x5eab7e=_0x4d6fc6;return _0x417880[_0x5eab7e('0x19')]['dropTable'](_0x4b47b5,{'force':!![]})[_0x5eab7e('0xc')](function(){const _0x334b51=_0x5eab7e;logger[_0x334b51('0x24')]('table\x20dropped\x20%s',_0x4b47b5);})[_0x5eab7e('0x27')](function(_0x846521){const _0x17c7ac=_0x5eab7e;logger[_0x17c7ac('0x24')](JSON[_0x17c7ac('0x23')](_0x846521));});});},Migration[_0x5b8648('0xf')][_0x5b8648('0xd')]=function(_0x5ca2ba,_0x2705a4,_0x26c4ab){const _0xee56e8=_0x5b8648,_0x2b3ee4=this;this[_0xee56e8('0x11')][_0xee56e8('0x4')](function(){const _0x9eb6f5=_0xee56e8;return _0x2b3ee4[_0x9eb6f5('0x19')]['addIndex'](_0x5ca2ba,_0x2705a4,{'indexName':_0x26c4ab})[_0x9eb6f5('0xc')](function(){const _0x3ba689=_0x9eb6f5;logger['info'](_0x3ba689('0x14'),_0x5ca2ba,_0x2705a4[_0x3ba689('0xb')](','),_0x26c4ab);})['catch'](function(_0x30a184){const _0x30528d=_0x9eb6f5;logger[_0x30528d('0x24')](JSON[_0x30528d('0x23')](_0x30a184));});});},Migration[_0x5b8648('0xf')]['removeIndex']=function(_0xaff23a,_0x3624c0){const _0x21bf90=_0x5b8648,_0x18da24=this;this[_0x21bf90('0x11')]['enqueue'](function(){const _0xbae354=_0x21bf90;return _0x18da24[_0xbae354('0x19')][_0xbae354('0xe')](_0xaff23a,_0x3624c0)[_0xbae354('0xc')](function(){const _0x4af01f=_0xbae354;logger[_0x4af01f('0x24')](_0x4af01f('0x1c'),_0xaff23a,_0x3624c0);})[_0xbae354('0x27')](function(_0x4e66e1){logger['info'](JSON['stringify'](_0x4e66e1));});});},Migration['prototype']['query']=function(_0x4dd8f3){const _0x17d711=_0x5b8648,_0x31b135=this;this['sequence'][_0x17d711('0x4')](function(){const _0xedb54e=_0x17d711;return _0x31b135[_0xedb54e('0x19')]['sequelize'][_0xedb54e('0x7')](_0x4dd8f3)[_0xedb54e('0xc')](function(){const _0x3cd4bb=_0xedb54e;logger[_0x3cd4bb('0x24')]('query\x20%s',_0x4dd8f3);})[_0xedb54e('0x27')](function(_0x430106){const _0x269fbc=_0xedb54e;logger[_0x269fbc('0x24')](JSON[_0x269fbc('0x23')](_0x430106));});});},Migration['prototype'][_0x5b8648('0xa')]=function(_0x153fb5,_0x47c3bf){const _0x268a3a=_0x5b8648,_0x411bd3=this;this[_0x268a3a('0x11')][_0x268a3a('0x4')](function(){const _0x5910e8=_0x268a3a;return _0x411bd3['queryInterface'][_0x5910e8('0xa')](_0x153fb5,_0x47c3bf)[_0x5910e8('0xc')](function(){const _0x23446d=_0x5910e8;logger[_0x23446d('0x24')](_0x23446d('0x22'),_0x47c3bf,_0x153fb5);})[_0x5910e8('0x27')](function(_0x5d895c){logger['info'](util['inspect'](_0x5d895c,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5b8648('0x28')]=function(_0x35d7b5,_0x503280,_0x5ef0c1){const _0x2871dd=_0x5b8648,_0x587526=this;this[_0x2871dd('0x11')][_0x2871dd('0x4')](function(){const _0x2e4030=_0x2871dd;return _0x587526[_0x2e4030('0x19')][_0x2e4030('0x28')](_0x35d7b5,_0x503280,_0x5ef0c1)['then'](function(){const _0x3b63a3=_0x2e4030;logger[_0x3b63a3('0x24')](_0x3b63a3('0x1'),_0x503280,_0x5ef0c1,_0x35d7b5);})[_0x2e4030('0x27')](function(_0x30d11d){const _0x3b53ea=_0x2e4030;logger[_0x3b53ea('0x24')](util['inspect'](_0x30d11d,{'showHidden':![],'depth':null}));});});},Migration[_0x5b8648('0xf')][_0x5b8648('0x21')]=function(_0x6b6a55){const _0x1001bf=_0x5b8648;this[_0x1001bf('0x11')][_0x1001bf('0x4')](function(){return _0x6b6a55();});},module['exports']={'up':function(_0x47eeff,_0x36c5b9){return new Promise(function(_0x50f4f3){const _0x232cc3=a980_0x3c03,_0x457ade=new Migration(_0x47eeff);_0x457ade[_0x232cc3('0x3')](_0x232cc3('0x6'),'transfer',{'type':_0x36c5b9['BOOLEAN'],'defaultValue':![]}),_0x457ade[_0x232cc3('0x3')](_0x232cc3('0x6'),_0x232cc3('0x1e'),{'type':_0x36c5b9['STRING'],'comment':_0x232cc3('0x2')}),_0x457ade[_0x232cc3('0x3')](_0x232cc3('0x6'),_0x232cc3('0x1b'),{'type':_0x36c5b9[_0x232cc3('0x25')]}),_0x457ade[_0x232cc3('0x3')]('report_agent',_0x232cc3('0x26'),{'type':_0x36c5b9[_0x232cc3('0x25')]}),_0x457ade[_0x232cc3('0x3')](_0x232cc3('0x6'),'agententerreason',{'type':_0x36c5b9['INTEGER'],'defaultValue':0x0}),_0x457ade[_0x232cc3('0x3')](_0x232cc3('0x8'),_0x232cc3('0x16'),{'type':_0x36c5b9[_0x232cc3('0x10')]}),_0x457ade[_0x232cc3('0x3')](_0x232cc3('0x5'),'ticketType',{'type':_0x36c5b9[_0x232cc3('0x13')](_0x232cc3('0x1a'),_0x232cc3('0x18')),'defaultValue':_0x232cc3('0x1a')}),_0x457ade[_0x232cc3('0x21')](_0x50f4f3);});},'down':function(){}}; \ No newline at end of file +const a980_0x44dd=['finally','Changed\x20column\x20%s\x20in\x20table\x20%s','report_agent','tail','migration','queryInterface','transferuniqueid','../config/logger','Task','transfer','stringify','Case','STRING','query','BOOLEAN','INTEGER','FORWARD,\x20BLIND,\x20ATTENDED','removeIndex','transferexten','addIndex\x20%s\x20%s\x20%s','util','ticketType','DATE','sequelize','addColumn','removeColumn','ENUM','report_call','sequence','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','removeIndex\x20%s\x20%s','catch','int_salesforce_configurations','systemanswertime','addIndex','transfertype','changeColumn','inspect','Removed\x20column\x20%s\x20from\x20%s','final','prototype','then','renameColumn','agententerreason','exports'];(function(_0x4b825b,_0x44dd18){const _0xe5ecf=function(_0x506e73){while(--_0x506e73){_0x4b825b['push'](_0x4b825b['shift']());}};_0xe5ecf(++_0x44dd18);}(a980_0x44dd,0x131));const a980_0xe5ec=function(_0x4b825b,_0x44dd18){_0x4b825b=_0x4b825b-0x0;let _0xe5ecf=a980_0x44dd[_0x4b825b];return _0xe5ecf;};const _0x175ac2=a980_0xe5ec;'use strict';const util=require(_0x175ac2('0x2c')),logger=require(_0x175ac2('0x1f'))(_0x175ac2('0x1c')),Sequence=function(){};Sequence[_0x175ac2('0x13')][_0x175ac2('0x6')]=function(_0x506e73){const _0x229669=_0x175ac2;this['tail']=this[_0x229669('0x1b')]?this[_0x229669('0x1b')][_0x229669('0x18')](_0x506e73):_0x506e73();};const Migration=function(_0x1584cd){this['queryInterface']=_0x1584cd,this['sequence']=new Sequence();};Migration[_0x175ac2('0x13')]['changeColumn']=function(_0x125c89,_0x5ce3dd,_0x5bbb1b){const _0x1c9915=_0x175ac2,_0x31647f=this;this[_0x1c9915('0x5')][_0x1c9915('0x6')](function(){const _0x8e0d51=_0x1c9915;return _0x31647f[_0x8e0d51('0x1d')][_0x8e0d51('0xf')](_0x125c89,_0x5ce3dd,_0x5bbb1b)[_0x8e0d51('0x14')](function(){const _0x2bb932=_0x8e0d51;logger[_0x2bb932('0x8')](_0x2bb932('0x19'),_0x5ce3dd,_0x125c89);})[_0x8e0d51('0xa')](function(_0x44925c){const _0x39c69b=_0x8e0d51;logger[_0x39c69b('0x8')](JSON[_0x39c69b('0x22')](_0x44925c));});});},Migration[_0x175ac2('0x13')]['addColumn']=function(_0x14b348,_0x17683e,_0x4b56d2){const _0x2b6f3b=_0x175ac2,_0xa529a8=this;this['sequence'][_0x2b6f3b('0x6')](function(){const _0x51931d=_0x2b6f3b;return _0xa529a8[_0x51931d('0x1d')][_0x51931d('0x1')](_0x14b348,_0x17683e,_0x4b56d2)[_0x51931d('0x14')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x17683e,_0x14b348);})[_0x51931d('0xa')](function(_0x3716c1){const _0x505e67=_0x51931d;logger[_0x505e67('0x8')](JSON['stringify'](_0x3716c1));});});},Migration[_0x175ac2('0x13')]['dropTable']=function(_0x3f6265){const _0x429356=_0x175ac2,_0x30bc24=this;this[_0x429356('0x5')]['enqueue'](function(){const _0x34779f=_0x429356;return _0x30bc24['queryInterface']['dropTable'](_0x3f6265,{'force':!![]})[_0x34779f('0x14')](function(){const _0xb7e6cd=_0x34779f;logger[_0xb7e6cd('0x8')]('table\x20dropped\x20%s',_0x3f6265);})[_0x34779f('0xa')](function(_0x1d9599){const _0x384764=_0x34779f;logger[_0x384764('0x8')](JSON[_0x384764('0x22')](_0x1d9599));});});},Migration[_0x175ac2('0x13')][_0x175ac2('0xd')]=function(_0x1e7737,_0x2d9e82,_0x1f9f81){const _0x3156d5=_0x175ac2,_0x1b7077=this;this[_0x3156d5('0x5')]['enqueue'](function(){const _0x3e6b00=_0x3156d5;return _0x1b7077[_0x3e6b00('0x1d')][_0x3e6b00('0xd')](_0x1e7737,_0x2d9e82,{'indexName':_0x1f9f81})[_0x3e6b00('0x14')](function(){const _0x499d3f=_0x3e6b00;logger[_0x499d3f('0x8')](_0x499d3f('0x2b'),_0x1e7737,_0x2d9e82['join'](','),_0x1f9f81);})[_0x3e6b00('0xa')](function(_0x51e534){const _0x23b65f=_0x3e6b00;logger['info'](JSON[_0x23b65f('0x22')](_0x51e534));});});},Migration[_0x175ac2('0x13')][_0x175ac2('0x29')]=function(_0xf7c0ca,_0x59f40d){const _0x142970=_0x175ac2,_0x5482d7=this;this[_0x142970('0x5')]['enqueue'](function(){const _0x3b80d7=_0x142970;return _0x5482d7['queryInterface'][_0x3b80d7('0x29')](_0xf7c0ca,_0x59f40d)[_0x3b80d7('0x14')](function(){const _0x4c8424=_0x3b80d7;logger[_0x4c8424('0x8')](_0x4c8424('0x9'),_0xf7c0ca,_0x59f40d);})[_0x3b80d7('0xa')](function(_0x4761e2){const _0xb84900=_0x3b80d7;logger[_0xb84900('0x8')](JSON['stringify'](_0x4761e2));});});},Migration[_0x175ac2('0x13')][_0x175ac2('0x25')]=function(_0x22412a){const _0x448f20=_0x175ac2,_0x43634a=this;this[_0x448f20('0x5')][_0x448f20('0x6')](function(){const _0x2d1f1a=_0x448f20;return _0x43634a[_0x2d1f1a('0x1d')][_0x2d1f1a('0x0')][_0x2d1f1a('0x25')](_0x22412a)[_0x2d1f1a('0x14')](function(){logger['info']('query\x20%s',_0x22412a);})[_0x2d1f1a('0xa')](function(_0x311cdf){const _0x26b4aa=_0x2d1f1a;logger[_0x26b4aa('0x8')](JSON[_0x26b4aa('0x22')](_0x311cdf));});});},Migration[_0x175ac2('0x13')][_0x175ac2('0x2')]=function(_0x258a30,_0x420a2f){const _0x260070=_0x175ac2,_0x5b0a39=this;this['sequence'][_0x260070('0x6')](function(){const _0xf5a233=_0x260070;return _0x5b0a39['queryInterface']['removeColumn'](_0x258a30,_0x420a2f)[_0xf5a233('0x14')](function(){const _0x46022c=_0xf5a233;logger[_0x46022c('0x8')](_0x46022c('0x11'),_0x420a2f,_0x258a30);})['catch'](function(_0x159342){const _0x15324c=_0xf5a233;logger[_0x15324c('0x8')](util['inspect'](_0x159342,{'showHidden':![],'depth':null}));});});},Migration[_0x175ac2('0x13')][_0x175ac2('0x15')]=function(_0x24c2fd,_0x1207ee,_0x3d2c3d){const _0x2e148b=_0x175ac2,_0x43b052=this;this[_0x2e148b('0x5')][_0x2e148b('0x6')](function(){const _0x16cb58=_0x2e148b;return _0x43b052[_0x16cb58('0x1d')]['renameColumn'](_0x24c2fd,_0x1207ee,_0x3d2c3d)[_0x16cb58('0x14')](function(){const _0x3464d7=_0x16cb58;logger['info'](_0x3464d7('0x7'),_0x1207ee,_0x3d2c3d,_0x24c2fd);})[_0x16cb58('0xa')](function(_0x5975ff){const _0xb0dad=_0x16cb58;logger[_0xb0dad('0x8')](util[_0xb0dad('0x10')](_0x5975ff,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x175ac2('0x12')]=function(_0x3bf772){const _0x1bc9f2=_0x175ac2;this[_0x1bc9f2('0x5')][_0x1bc9f2('0x6')](function(){return _0x3bf772();});},module[_0x175ac2('0x17')]={'up':function(_0x6815bc,_0x330efd){return new Promise(function(_0x28074e){const _0x33e2ff=a980_0xe5ec,_0x147ba8=new Migration(_0x6815bc);_0x147ba8[_0x33e2ff('0x1')](_0x33e2ff('0x1a'),_0x33e2ff('0x21'),{'type':_0x330efd[_0x33e2ff('0x26')],'defaultValue':![]}),_0x147ba8['addColumn'](_0x33e2ff('0x1a'),_0x33e2ff('0xe'),{'type':_0x330efd[_0x33e2ff('0x24')],'comment':_0x33e2ff('0x28')}),_0x147ba8[_0x33e2ff('0x1')](_0x33e2ff('0x1a'),_0x33e2ff('0x2a'),{'type':_0x330efd[_0x33e2ff('0x24')]}),_0x147ba8['addColumn'](_0x33e2ff('0x1a'),_0x33e2ff('0x1e'),{'type':_0x330efd['STRING']}),_0x147ba8['addColumn'](_0x33e2ff('0x1a'),_0x33e2ff('0x16'),{'type':_0x330efd[_0x33e2ff('0x27')],'defaultValue':0x0}),_0x147ba8['addColumn'](_0x33e2ff('0x4'),_0x33e2ff('0xc'),{'type':_0x330efd[_0x33e2ff('0x2e')]}),_0x147ba8[_0x33e2ff('0x1')](_0x33e2ff('0xb'),_0x33e2ff('0x2d'),{'type':_0x330efd[_0x33e2ff('0x3')](_0x33e2ff('0x20'),_0x33e2ff('0x23')),'defaultValue':_0x33e2ff('0x20')}),_0x147ba8[_0x33e2ff('0x12')](_0x28074e);});},'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 79518d6..42af1bc 100644 --- a/server/migrations/2.3.8.js +++ b/server/migrations/2.3.8.js @@ -1 +1 @@ -const a981_0x5e69=['query\x20%s','stringify','addIndex','final','Removed\x20column\x20%s\x20from\x20%s','finally','queryInterface','addColumn','removeIndex','inspect','../config/logger','Added\x20column\x20%s\x20to\x20%s','query','info','sequence','catch','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','util','enqueue','renameColumn','removeColumn','then','changeColumn','prototype','tail','addIndex\x20%s\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x3f6126,_0x5e697d){const _0x43b280=function(_0x480e52){while(--_0x480e52){_0x3f6126['push'](_0x3f6126['shift']());}};_0x43b280(++_0x5e697d);}(a981_0x5e69,0x102));const a981_0x43b2=function(_0x3f6126,_0x5e697d){_0x3f6126=_0x3f6126-0x0;let _0x43b280=a981_0x5e69[_0x3f6126];return _0x43b280;};const _0x4613bb=a981_0x43b2;'use strict';const util=require(_0x4613bb('0xc')),logger=require(_0x4613bb('0x4'))('migration'),Sequence=function(){};Sequence[_0x4613bb('0x12')][_0x4613bb('0xd')]=function(_0x480e52){const _0x11e060=_0x4613bb;this[_0x11e060('0x13')]=this['tail']?this[_0x11e060('0x13')][_0x11e060('0x1b')](_0x480e52):_0x480e52();};const Migration=function(_0x54f09c){const _0x39f8ea=_0x4613bb;this[_0x39f8ea('0x0')]=_0x54f09c,this[_0x39f8ea('0x8')]=new Sequence();};Migration[_0x4613bb('0x12')][_0x4613bb('0x11')]=function(_0x3b7e36,_0x42b3f4,_0x425354){const _0x1ee2da=_0x4613bb,_0x34f67e=this;this[_0x1ee2da('0x8')]['enqueue'](function(){const _0x23ae5a=_0x1ee2da;return _0x34f67e[_0x23ae5a('0x0')]['changeColumn'](_0x3b7e36,_0x42b3f4,_0x425354)[_0x23ae5a('0x10')](function(){const _0x7ed781=_0x23ae5a;logger[_0x7ed781('0x7')](_0x7ed781('0x15'),_0x42b3f4,_0x3b7e36);})['catch'](function(_0x190374){const _0x1bf675=_0x23ae5a;logger[_0x1bf675('0x7')](JSON[_0x1bf675('0x17')](_0x190374));});});},Migration[_0x4613bb('0x12')][_0x4613bb('0x1')]=function(_0x484b00,_0xf54cda,_0x3be713){const _0x4c9f92=this;this['sequence']['enqueue'](function(){const _0x30add2=a981_0x43b2;return _0x4c9f92[_0x30add2('0x0')][_0x30add2('0x1')](_0x484b00,_0xf54cda,_0x3be713)['then'](function(){const _0x305e22=_0x30add2;logger[_0x305e22('0x7')](_0x305e22('0x5'),_0xf54cda,_0x484b00);})[_0x30add2('0x9')](function(_0xab93cc){const _0x3b8b87=_0x30add2;logger[_0x3b8b87('0x7')](JSON[_0x3b8b87('0x17')](_0xab93cc));});});},Migration[_0x4613bb('0x12')]['dropTable']=function(_0x5c82c8){const _0x464761=_0x4613bb,_0x126dc0=this;this[_0x464761('0x8')]['enqueue'](function(){const _0x4047c8=_0x464761;return _0x126dc0[_0x4047c8('0x0')]['dropTable'](_0x5c82c8,{'force':!![]})[_0x4047c8('0x10')](function(){const _0x546a3d=_0x4047c8;logger[_0x546a3d('0x7')]('table\x20dropped\x20%s',_0x5c82c8);})[_0x4047c8('0x9')](function(_0x1dcc6d){const _0x5da688=_0x4047c8;logger[_0x5da688('0x7')](JSON[_0x5da688('0x17')](_0x1dcc6d));});});},Migration[_0x4613bb('0x12')][_0x4613bb('0x18')]=function(_0x10eb18,_0x2bf560,_0x4ab203){const _0xaf67a5=this;this['sequence']['enqueue'](function(){const _0x128ea1=a981_0x43b2;return _0xaf67a5[_0x128ea1('0x0')][_0x128ea1('0x18')](_0x10eb18,_0x2bf560,{'indexName':_0x4ab203})[_0x128ea1('0x10')](function(){const _0x7c300e=_0x128ea1;logger[_0x7c300e('0x7')](_0x7c300e('0x14'),_0x10eb18,_0x2bf560['join'](','),_0x4ab203);})[_0x128ea1('0x9')](function(_0x3b7107){const _0x319ead=_0x128ea1;logger[_0x319ead('0x7')](JSON[_0x319ead('0x17')](_0x3b7107));});});},Migration['prototype'][_0x4613bb('0x2')]=function(_0x244766,_0x2cf693){const _0x585386=_0x4613bb,_0xd0e22c=this;this[_0x585386('0x8')][_0x585386('0xd')](function(){const _0x2cd450=_0x585386;return _0xd0e22c[_0x2cd450('0x0')][_0x2cd450('0x2')](_0x244766,_0x2cf693)[_0x2cd450('0x10')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x244766,_0x2cf693);})[_0x2cd450('0x9')](function(_0x4ace53){const _0x36165b=_0x2cd450;logger['info'](JSON[_0x36165b('0x17')](_0x4ace53));});});},Migration[_0x4613bb('0x12')][_0x4613bb('0x6')]=function(_0x2ce0f2){const _0x50dd4b=_0x4613bb,_0x20accf=this;this['sequence'][_0x50dd4b('0xd')](function(){const _0x2fa700=_0x50dd4b;return _0x20accf[_0x2fa700('0x0')]['sequelize']['query'](_0x2ce0f2)[_0x2fa700('0x10')](function(){const _0x40d0a2=_0x2fa700;logger['info'](_0x40d0a2('0x16'),_0x2ce0f2);})[_0x2fa700('0x9')](function(_0x59813c){const _0x21108a=_0x2fa700;logger[_0x21108a('0x7')](JSON[_0x21108a('0x17')](_0x59813c));});});},Migration[_0x4613bb('0x12')][_0x4613bb('0xf')]=function(_0x3d6657,_0x41bcb7){const _0x5d89d1=_0x4613bb,_0x2095bf=this;this[_0x5d89d1('0x8')][_0x5d89d1('0xd')](function(){const _0x3f2614=_0x5d89d1;return _0x2095bf[_0x3f2614('0x0')]['removeColumn'](_0x3d6657,_0x41bcb7)['then'](function(){const _0x5ea363=_0x3f2614;logger[_0x5ea363('0x7')](_0x5ea363('0x1a'),_0x41bcb7,_0x3d6657);})['catch'](function(_0x518eef){const _0x247173=_0x3f2614;logger[_0x247173('0x7')](util[_0x247173('0x3')](_0x518eef,{'showHidden':![],'depth':null}));});});},Migration[_0x4613bb('0x12')][_0x4613bb('0xe')]=function(_0x57302d,_0x301ba5,_0x1d286c){const _0x16dff2=_0x4613bb,_0x3d38bb=this;this['sequence'][_0x16dff2('0xd')](function(){const _0x1cdcfe=_0x16dff2;return _0x3d38bb[_0x1cdcfe('0x0')]['renameColumn'](_0x57302d,_0x301ba5,_0x1d286c)[_0x1cdcfe('0x10')](function(){const _0x5482ad=_0x1cdcfe;logger['info'](_0x5482ad('0xa'),_0x301ba5,_0x1d286c,_0x57302d);})['catch'](function(_0x165679){const _0x2125a4=_0x1cdcfe;logger[_0x2125a4('0x7')](util[_0x2125a4('0x3')](_0x165679,{'showHidden':![],'depth':null}));});});},Migration[_0x4613bb('0x12')][_0x4613bb('0x19')]=function(_0x3dc60f){const _0xe8e66a=_0x4613bb;this['sequence'][_0xe8e66a('0xd')](function(){return _0x3dc60f();});},module[_0x4613bb('0xb')]={'up':function(_0x3b6a91){return new Promise(function(_0x167dd1){const _0x183af5=new Migration(_0x3b6a91);_0x183af5['final'](_0x167dd1);});},'down':function(){}}; \ No newline at end of file +const a981_0x43ab=['catch','removeColumn','final','Removed\x20column\x20%s\x20from\x20%s','addIndex','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','enqueue','tail','then','queryInterface','exports','addColumn','join','finally','prototype','inspect','Added\x20column\x20%s\x20to\x20%s','info','renameColumn','changeColumn','sequence','removeIndex','stringify','util','dropTable'];(function(_0x130549,_0x43abe8){const _0x3601e2=function(_0x42b333){while(--_0x42b333){_0x130549['push'](_0x130549['shift']());}};_0x3601e2(++_0x43abe8);}(a981_0x43ab,0xb4));const a981_0x3601=function(_0x130549,_0x43abe8){_0x130549=_0x130549-0x0;let _0x3601e2=a981_0x43ab[_0x130549];return _0x3601e2;};const _0x55733d=a981_0x3601;'use strict';const util=require(_0x55733d('0x7')),logger=require('../config/logger')(_0x55733d('0xe')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x42b333){const _0x717235=_0x55733d;this[_0x717235('0x12')]=this[_0x717235('0x12')]?this['tail'][_0x717235('0x18')](_0x42b333):_0x42b333();};const Migration=function(_0xa9e4a6){this['queryInterface']=_0xa9e4a6,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x1d90e5,_0x384e05,_0xf352de){const _0x286b90=_0x55733d,_0x18056a=this;this['sequence'][_0x286b90('0x11')](function(){const _0x419536=_0x286b90;return _0x18056a[_0x419536('0x14')][_0x419536('0x3')](_0x1d90e5,_0x384e05,_0xf352de)['then'](function(){const _0x2b31a1=_0x419536;logger[_0x2b31a1('0x1')](_0x2b31a1('0xf'),_0x384e05,_0x1d90e5);})[_0x419536('0x9')](function(_0x598efa){logger['info'](JSON['stringify'](_0x598efa));});});},Migration['prototype'][_0x55733d('0x16')]=function(_0xdd6471,_0xc2d01c,_0x3c999c){const _0xb7375c=_0x55733d,_0x39ea5a=this;this[_0xb7375c('0x4')][_0xb7375c('0x11')](function(){const _0x2ea990=_0xb7375c;return _0x39ea5a['queryInterface'][_0x2ea990('0x16')](_0xdd6471,_0xc2d01c,_0x3c999c)[_0x2ea990('0x13')](function(){const _0xced4ba=_0x2ea990;logger[_0xced4ba('0x1')](_0xced4ba('0x0'),_0xc2d01c,_0xdd6471);})['catch'](function(_0x3b00e3){const _0x5ccc28=_0x2ea990;logger[_0x5ccc28('0x1')](JSON['stringify'](_0x3b00e3));});});},Migration['prototype'][_0x55733d('0x8')]=function(_0x3cc91c){const _0x1a771a=_0x55733d,_0x242f89=this;this[_0x1a771a('0x4')][_0x1a771a('0x11')](function(){const _0x524840=_0x1a771a;return _0x242f89[_0x524840('0x14')]['dropTable'](_0x3cc91c,{'force':!![]})['then'](function(){const _0x180fb8=_0x524840;logger[_0x180fb8('0x1')]('table\x20dropped\x20%s',_0x3cc91c);})[_0x524840('0x9')](function(_0x3c0dc8){const _0x40f906=_0x524840;logger['info'](JSON[_0x40f906('0x6')](_0x3c0dc8));});});},Migration[_0x55733d('0x19')][_0x55733d('0xd')]=function(_0x330772,_0x17a24d,_0x345b17){const _0x42084b=_0x55733d,_0x42780c=this;this[_0x42084b('0x4')][_0x42084b('0x11')](function(){const _0x582884=_0x42084b;return _0x42780c['queryInterface'][_0x582884('0xd')](_0x330772,_0x17a24d,{'indexName':_0x345b17})[_0x582884('0x13')](function(){const _0x4d770a=_0x582884;logger[_0x4d770a('0x1')]('addIndex\x20%s\x20%s\x20%s',_0x330772,_0x17a24d[_0x4d770a('0x17')](','),_0x345b17);})[_0x582884('0x9')](function(_0x4f2d15){const _0x4e5da0=_0x582884;logger[_0x4e5da0('0x1')](JSON[_0x4e5da0('0x6')](_0x4f2d15));});});},Migration[_0x55733d('0x19')][_0x55733d('0x5')]=function(_0x5114aa,_0x3cedc2){const _0x4a5519=_0x55733d,_0x29dd50=this;this[_0x4a5519('0x4')][_0x4a5519('0x11')](function(){const _0x2e5be6=_0x4a5519;return _0x29dd50[_0x2e5be6('0x14')][_0x2e5be6('0x5')](_0x5114aa,_0x3cedc2)[_0x2e5be6('0x13')](function(){const _0x545996=_0x2e5be6;logger[_0x545996('0x1')]('removeIndex\x20%s\x20%s',_0x5114aa,_0x3cedc2);})[_0x2e5be6('0x9')](function(_0x3115a4){const _0x2653df=_0x2e5be6;logger['info'](JSON[_0x2653df('0x6')](_0x3115a4));});});},Migration[_0x55733d('0x19')]['query']=function(_0x5ac0a6){const _0x207003=_0x55733d,_0x4bb414=this;this[_0x207003('0x4')][_0x207003('0x11')](function(){const _0xe6d2fe=_0x207003;return _0x4bb414[_0xe6d2fe('0x14')]['sequelize']['query'](_0x5ac0a6)['then'](function(){const _0x5dc03d=_0xe6d2fe;logger[_0x5dc03d('0x1')](_0x5dc03d('0x10'),_0x5ac0a6);})['catch'](function(_0x597f48){const _0x3fcea6=_0xe6d2fe;logger[_0x3fcea6('0x1')](JSON['stringify'](_0x597f48));});});},Migration['prototype'][_0x55733d('0xa')]=function(_0x10502f,_0x28f9f7){const _0x2abf23=_0x55733d,_0x48cbe0=this;this[_0x2abf23('0x4')][_0x2abf23('0x11')](function(){const _0x35346a=_0x2abf23;return _0x48cbe0['queryInterface'][_0x35346a('0xa')](_0x10502f,_0x28f9f7)[_0x35346a('0x13')](function(){const _0x1b521b=_0x35346a;logger[_0x1b521b('0x1')](_0x1b521b('0xc'),_0x28f9f7,_0x10502f);})[_0x35346a('0x9')](function(_0x3b2c74){const _0x49e2e5=_0x35346a;logger[_0x49e2e5('0x1')](util['inspect'](_0x3b2c74,{'showHidden':![],'depth':null}));});});},Migration[_0x55733d('0x19')][_0x55733d('0x2')]=function(_0x295908,_0x1150d3,_0x3c6a80){const _0x4bca06=_0x55733d,_0x107f09=this;this['sequence'][_0x4bca06('0x11')](function(){const _0x1af042=_0x4bca06;return _0x107f09[_0x1af042('0x14')][_0x1af042('0x2')](_0x295908,_0x1150d3,_0x3c6a80)['then'](function(){const _0x2d714a=_0x1af042;logger[_0x2d714a('0x1')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1150d3,_0x3c6a80,_0x295908);})['catch'](function(_0x2eb8e6){const _0x44649f=_0x1af042;logger[_0x44649f('0x1')](util[_0x44649f('0x1a')](_0x2eb8e6,{'showHidden':![],'depth':null}));});});},Migration[_0x55733d('0x19')][_0x55733d('0xb')]=function(_0x39dd58){const _0x5b093a=_0x55733d;this[_0x5b093a('0x4')][_0x5b093a('0x11')](function(){return _0x39dd58();});},module[_0x55733d('0x15')]={'up':function(_0x24806e){return new Promise(function(_0x25014c){const _0x1cdd91=a981_0x3601,_0x358836=new Migration(_0x24806e);_0x358836[_0x1cdd91('0xb')](_0x25014c);});},'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 a5b3774..b8f8f84 100644 --- a/server/migrations/2.3.9.js +++ b/server/migrations/2.3.9.js @@ -1 +1 @@ -const a982_0x91b3=['indicesType','removeColumn','indexName','tail','inspect','finally','../config/logger','query\x20%s','stringify','prototype','sequence','query','changeColumn','Added\x20column\x20%s\x20to\x20%s','queryInterface','addColumn','exports','info','Removed\x20column\x20%s\x20from\x20%s','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','enqueue','table\x20dropped\x20%s','then','join','migration','removeIndex','dropTable','removeIndex\x20%s\x20%s','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex'];(function(_0x308186,_0x91b3d8){const _0x2433fa=function(_0x1d5dfa){while(--_0x1d5dfa){_0x308186['push'](_0x308186['shift']());}};_0x2433fa(++_0x91b3d8);}(a982_0x91b3,0x1a1));const a982_0x2433=function(_0x308186,_0x91b3d8){_0x308186=_0x308186-0x0;let _0x2433fa=a982_0x91b3[_0x308186];return _0x2433fa;};const _0x50d2d9=a982_0x2433;'use strict';const util=require('util'),logger=require(_0x50d2d9('0x1f'))(_0x50d2d9('0x12')),Sequence=function(){};Sequence[_0x50d2d9('0x0')][_0x50d2d9('0xe')]=function(_0x1d5dfa){const _0x2469a4=_0x50d2d9;this['tail']=this[_0x2469a4('0x1c')]?this[_0x2469a4('0x1c')][_0x2469a4('0x1e')](_0x1d5dfa):_0x1d5dfa();};const Migration=function(_0x228a47){const _0x484abf=_0x50d2d9;this['queryInterface']=_0x228a47,this[_0x484abf('0x1')]=new Sequence();};Migration[_0x50d2d9('0x0')][_0x50d2d9('0x3')]=function(_0x5d1a1d,_0x519bfb,_0x436a07){const _0x5a16f8=_0x50d2d9,_0x41df56=this;this[_0x5a16f8('0x1')][_0x5a16f8('0xe')](function(){const _0x2dc2e8=_0x5a16f8;return _0x41df56[_0x2dc2e8('0x5')][_0x2dc2e8('0x3')](_0x5d1a1d,_0x519bfb,_0x436a07)[_0x2dc2e8('0x10')](function(){const _0x44073c=_0x2dc2e8;logger[_0x44073c('0x8')](_0x44073c('0x17'),_0x519bfb,_0x5d1a1d);})[_0x2dc2e8('0x16')](function(_0x392ebc){const _0x5a16e3=_0x2dc2e8;logger[_0x5a16e3('0x8')](JSON[_0x5a16e3('0x21')](_0x392ebc));});});},Migration[_0x50d2d9('0x0')][_0x50d2d9('0x6')]=function(_0x3e9bf4,_0x2f9253,_0x560e85){const _0x40c623=_0x50d2d9,_0x33f871=this;this[_0x40c623('0x1')][_0x40c623('0xe')](function(){const _0x487be9=_0x40c623;return _0x33f871[_0x487be9('0x5')][_0x487be9('0x6')](_0x3e9bf4,_0x2f9253,_0x560e85)['then'](function(){const _0x3a2435=_0x487be9;logger[_0x3a2435('0x8')](_0x3a2435('0x4'),_0x2f9253,_0x3e9bf4);})['catch'](function(_0x40c884){const _0x5afb6b=_0x487be9;logger['info'](JSON[_0x5afb6b('0x21')](_0x40c884));});});},Migration[_0x50d2d9('0x0')][_0x50d2d9('0x14')]=function(_0x475717){const _0x1c41d6=_0x50d2d9,_0x3e7714=this;this['sequence'][_0x1c41d6('0xe')](function(){const _0x53a2de=_0x1c41d6;return _0x3e7714[_0x53a2de('0x5')][_0x53a2de('0x14')](_0x475717,{'force':!![]})[_0x53a2de('0x10')](function(){const _0x1d9f92=_0x53a2de;logger[_0x1d9f92('0x8')](_0x1d9f92('0xf'),_0x475717);})[_0x53a2de('0x16')](function(_0x1316e8){const _0x1035cf=_0x53a2de;logger[_0x1035cf('0x8')](JSON[_0x1035cf('0x21')](_0x1316e8));});});},Migration['prototype']['addIndex']=function(_0x44a3f8,_0xb04815,_0x22dee8){const _0x10f23b=_0x50d2d9,_0x1d90e7=this;this[_0x10f23b('0x1')][_0x10f23b('0xe')](function(){const _0xabb0bc=_0x10f23b;return _0x1d90e7[_0xabb0bc('0x5')][_0xabb0bc('0x18')](_0x44a3f8,_0xb04815,{'indexName':_0x22dee8[_0xabb0bc('0x1b')],'indicesType':_0x22dee8['indicesType']})[_0xabb0bc('0x10')](function(){const _0x51f4f9=_0xabb0bc;logger[_0x51f4f9('0x8')](_0x51f4f9('0xd'),_0x44a3f8,_0xb04815[_0x51f4f9('0x11')](','),_0x22dee8[_0x51f4f9('0x1b')],_0x22dee8[_0x51f4f9('0x19')]);})[_0xabb0bc('0x16')](function(_0x569488){const _0x12d8fb=_0xabb0bc;logger[_0x12d8fb('0x8')](JSON['stringify'](_0x569488));});});},Migration['prototype'][_0x50d2d9('0x13')]=function(_0x2ea175,_0xab73d6){const _0x2d5db3=_0x50d2d9,_0xd1cf82=this;this[_0x2d5db3('0x1')][_0x2d5db3('0xe')](function(){const _0x9437c7=_0x2d5db3;return _0xd1cf82[_0x9437c7('0x5')][_0x9437c7('0x13')](_0x2ea175,_0xab73d6)['then'](function(){const _0x302289=_0x9437c7;logger[_0x302289('0x8')](_0x302289('0x15'),_0x2ea175,_0xab73d6);})[_0x9437c7('0x16')](function(_0xd2990c){const _0x3d747a=_0x9437c7;logger[_0x3d747a('0x8')](JSON[_0x3d747a('0x21')](_0xd2990c));});});},Migration['prototype'][_0x50d2d9('0x2')]=function(_0x260827){const _0x2a1cdf=_0x50d2d9,_0x3b87bc=this;this[_0x2a1cdf('0x1')][_0x2a1cdf('0xe')](function(){const _0x4d5dc8=_0x2a1cdf;return _0x3b87bc[_0x4d5dc8('0x5')]['sequelize']['query'](_0x260827)[_0x4d5dc8('0x10')](function(){const _0x5c1ddb=_0x4d5dc8;logger[_0x5c1ddb('0x8')](_0x5c1ddb('0x20'),_0x260827);})[_0x4d5dc8('0x16')](function(_0x1b6736){const _0xb8b37f=_0x4d5dc8;logger[_0xb8b37f('0x8')](JSON[_0xb8b37f('0x21')](_0x1b6736));});});},Migration[_0x50d2d9('0x0')]['removeColumn']=function(_0x550337,_0x4774df){const _0x1d4769=_0x50d2d9,_0x43f2b8=this;this['sequence'][_0x1d4769('0xe')](function(){const _0x33f35a=_0x1d4769;return _0x43f2b8[_0x33f35a('0x5')][_0x33f35a('0x1a')](_0x550337,_0x4774df)[_0x33f35a('0x10')](function(){const _0x3f1899=_0x33f35a;logger[_0x3f1899('0x8')](_0x3f1899('0x9'),_0x4774df,_0x550337);})[_0x33f35a('0x16')](function(_0x30f9eb){const _0xc2e7d3=_0x33f35a;logger[_0xc2e7d3('0x8')](util[_0xc2e7d3('0x1d')](_0x30f9eb,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x50d2d9('0xc')]=function(_0x46d57f,_0x2425e6,_0x77b467){const _0x2c305f=_0x50d2d9,_0x246f5a=this;this['sequence'][_0x2c305f('0xe')](function(){const _0x3eceed=_0x2c305f;return _0x246f5a[_0x3eceed('0x5')][_0x3eceed('0xc')](_0x46d57f,_0x2425e6,_0x77b467)[_0x3eceed('0x10')](function(){const _0x6ff725=_0x3eceed;logger['info'](_0x6ff725('0xb'),_0x2425e6,_0x77b467,_0x46d57f);})['catch'](function(_0x173ba5){const _0x1dda39=_0x3eceed;logger[_0x1dda39('0x8')](util[_0x1dda39('0x1d')](_0x173ba5,{'showHidden':![],'depth':null}));});});},Migration[_0x50d2d9('0x0')][_0x50d2d9('0xa')]=function(_0x9ebb2b){const _0x1a60e7=_0x50d2d9;this[_0x1a60e7('0x1')][_0x1a60e7('0xe')](function(){return _0x9ebb2b();});},module[_0x50d2d9('0x7')]={'up':function(_0x2fdc08){return new Promise(function(_0x3bf21e){const _0x1c7b93=a982_0x2433,_0x1fecd8=new Migration(_0x2fdc08);_0x1fecd8[_0x1c7b93('0xa')](_0x3bf21e);});},'down':function(){}}; \ No newline at end of file +const a982_0x335b=['catch','removeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','final','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','query\x20%s','queryInterface','finally','util','addIndex','enqueue','then','sequelize','removeIndex\x20%s\x20%s','changeColumn','dropTable','Added\x20column\x20%s\x20to\x20%s','renameColumn','indicesType','stringify','Removed\x20column\x20%s\x20from\x20%s','tail','exports','prototype','sequence','info'];(function(_0x1c57cd,_0x335b82){const _0x1bd0f4=function(_0x22726e){while(--_0x22726e){_0x1c57cd['push'](_0x1c57cd['shift']());}};_0x1bd0f4(++_0x335b82);}(a982_0x335b,0x69));const a982_0x1bd0=function(_0x1c57cd,_0x335b82){_0x1c57cd=_0x1c57cd-0x0;let _0x1bd0f4=a982_0x335b[_0x1c57cd];return _0x1bd0f4;};const _0x51bcff=a982_0x1bd0;'use strict';const util=require(_0x51bcff('0x1')),logger=require(_0x51bcff('0x1c'))('migration'),Sequence=function(){};Sequence[_0x51bcff('0x10')][_0x51bcff('0x3')]=function(_0x22726e){const _0x5ed74a=_0x51bcff;this['tail']=this[_0x5ed74a('0xe')]?this['tail'][_0x5ed74a('0x0')](_0x22726e):_0x22726e();};const Migration=function(_0xc0d850){const _0x1588ce=_0x51bcff;this[_0x1588ce('0x1e')]=_0xc0d850,this[_0x1588ce('0x11')]=new Sequence();};Migration[_0x51bcff('0x10')][_0x51bcff('0x7')]=function(_0x231223,_0x4d8444,_0xa35013){const _0x5e331=_0x51bcff,_0x4f80b7=this;this[_0x5e331('0x11')][_0x5e331('0x3')](function(){const _0x839d0c=_0x5e331;return _0x4f80b7['queryInterface'][_0x839d0c('0x7')](_0x231223,_0x4d8444,_0xa35013)['then'](function(){const _0x38ac50=_0x839d0c;logger[_0x38ac50('0x12')](_0x38ac50('0x19'),_0x4d8444,_0x231223);})[_0x839d0c('0x13')](function(_0x5a90df){const _0x2d7d6c=_0x839d0c;logger[_0x2d7d6c('0x12')](JSON['stringify'](_0x5a90df));});});},Migration[_0x51bcff('0x10')][_0x51bcff('0x18')]=function(_0x4de437,_0x42f33b,_0x1eecb7){const _0x1a43d4=_0x51bcff,_0x1f30e5=this;this[_0x1a43d4('0x11')]['enqueue'](function(){const _0x453e2e=_0x1a43d4;return _0x1f30e5[_0x453e2e('0x1e')][_0x453e2e('0x18')](_0x4de437,_0x42f33b,_0x1eecb7)[_0x453e2e('0x4')](function(){const _0x3f5f6f=_0x453e2e;logger[_0x3f5f6f('0x12')](_0x3f5f6f('0x9'),_0x42f33b,_0x4de437);})[_0x453e2e('0x13')](function(_0x55085d){const _0x126fa2=_0x453e2e;logger[_0x126fa2('0x12')](JSON[_0x126fa2('0xc')](_0x55085d));});});},Migration[_0x51bcff('0x10')][_0x51bcff('0x8')]=function(_0x56de1c){const _0x1bd846=_0x51bcff,_0x44f31d=this;this[_0x1bd846('0x11')][_0x1bd846('0x3')](function(){const _0x1b7afc=_0x1bd846;return _0x44f31d[_0x1b7afc('0x1e')][_0x1b7afc('0x8')](_0x56de1c,{'force':!![]})[_0x1b7afc('0x4')](function(){const _0x4d19b3=_0x1b7afc;logger[_0x4d19b3('0x12')]('table\x20dropped\x20%s',_0x56de1c);})['catch'](function(_0x2a441a){const _0x44fb69=_0x1b7afc;logger[_0x44fb69('0x12')](JSON[_0x44fb69('0xc')](_0x2a441a));});});},Migration[_0x51bcff('0x10')][_0x51bcff('0x2')]=function(_0x2ba31d,_0x87e3db,_0x13c69b){const _0x3c2d72=_0x51bcff,_0x179df0=this;this['sequence'][_0x3c2d72('0x3')](function(){const _0xaa98d2=_0x3c2d72;return _0x179df0['queryInterface'][_0xaa98d2('0x2')](_0x2ba31d,_0x87e3db,{'indexName':_0x13c69b['indexName'],'indicesType':_0x13c69b[_0xaa98d2('0xb')]})[_0xaa98d2('0x4')](function(){const _0x40e082=_0xaa98d2;logger[_0x40e082('0x12')](_0x40e082('0x1b'),_0x2ba31d,_0x87e3db[_0x40e082('0x16')](','),_0x13c69b['indexName'],_0x13c69b[_0x40e082('0xb')]);})['catch'](function(_0x3ff6fc){const _0x2d6ec4=_0xaa98d2;logger['info'](JSON[_0x2d6ec4('0xc')](_0x3ff6fc));});});},Migration['prototype']['removeIndex']=function(_0x1e19fa,_0x7b34f6){const _0x16031b=_0x51bcff,_0x5abc51=this;this['sequence'][_0x16031b('0x3')](function(){const _0x2502e7=_0x16031b;return _0x5abc51['queryInterface']['removeIndex'](_0x1e19fa,_0x7b34f6)[_0x2502e7('0x4')](function(){const _0x1d60e5=_0x2502e7;logger['info'](_0x1d60e5('0x6'),_0x1e19fa,_0x7b34f6);})[_0x2502e7('0x13')](function(_0x1d3335){const _0x4d2a3b=_0x2502e7;logger[_0x4d2a3b('0x12')](JSON[_0x4d2a3b('0xc')](_0x1d3335));});});},Migration['prototype'][_0x51bcff('0x1a')]=function(_0x4a7ef5){const _0x247e37=_0x51bcff,_0x2c8163=this;this[_0x247e37('0x11')][_0x247e37('0x3')](function(){const _0x4352cd=_0x247e37;return _0x2c8163[_0x4352cd('0x1e')][_0x4352cd('0x5')]['query'](_0x4a7ef5)[_0x4352cd('0x4')](function(){const _0x1e90c7=_0x4352cd;logger[_0x1e90c7('0x12')](_0x1e90c7('0x1d'),_0x4a7ef5);})[_0x4352cd('0x13')](function(_0x4024be){const _0xfa7f18=_0x4352cd;logger[_0xfa7f18('0x12')](JSON[_0xfa7f18('0xc')](_0x4024be));});});},Migration[_0x51bcff('0x10')]['removeColumn']=function(_0x34e523,_0x10c4a8){const _0x24183d=_0x51bcff,_0x2ebd57=this;this[_0x24183d('0x11')][_0x24183d('0x3')](function(){const _0x6fa597=_0x24183d;return _0x2ebd57['queryInterface'][_0x6fa597('0x14')](_0x34e523,_0x10c4a8)['then'](function(){const _0x5d7a15=_0x6fa597;logger[_0x5d7a15('0x12')](_0x5d7a15('0xd'),_0x10c4a8,_0x34e523);})[_0x6fa597('0x13')](function(_0x515842){const _0x2ef587=_0x6fa597;logger[_0x2ef587('0x12')](util['inspect'](_0x515842,{'showHidden':![],'depth':null}));});});},Migration[_0x51bcff('0x10')]['renameColumn']=function(_0x2eb5a4,_0x207c9b,_0x3822df){const _0x1216e1=_0x51bcff,_0x39ba34=this;this['sequence'][_0x1216e1('0x3')](function(){const _0x46f47f=_0x1216e1;return _0x39ba34[_0x46f47f('0x1e')][_0x46f47f('0xa')](_0x2eb5a4,_0x207c9b,_0x3822df)[_0x46f47f('0x4')](function(){const _0x1901b0=_0x46f47f;logger['info'](_0x1901b0('0x15'),_0x207c9b,_0x3822df,_0x2eb5a4);})[_0x46f47f('0x13')](function(_0x196746){const _0x5bb910=_0x46f47f;logger[_0x5bb910('0x12')](util['inspect'](_0x196746,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x51bcff('0x17')]=function(_0x65b7cd){const _0x585571=_0x51bcff;this[_0x585571('0x11')][_0x585571('0x3')](function(){return _0x65b7cd();});},module[_0x51bcff('0xf')]={'up':function(_0xd1d64e){return new Promise(function(_0x4aba27){const _0x5998b6=a982_0x1bd0,_0x5ade97=new Migration(_0xd1d64e);_0x5ade97[_0x5998b6('0x17')](_0x4aba27);});},'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 e43d74c..c3be1f1 100644 --- a/server/migrations/2.3.91.js +++ b/server/migrations/2.3.91.js @@ -1 +1 @@ -const a983_0x2120=['tail','dropTable','catch','query\x20%s','renameColumn','final','queryInterface','removeIndex','info','finally','enqueue','sequelize','report_call','exports','prototype','table\x20dropped\x20%s','addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','addIndex','addIndex\x20%s\x20%s\x20%s','sipcallid','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','stringify','migration','sequence','removeColumn','query','join','STRING','inspect'];(function(_0x559133,_0x212091){const _0x37f94b=function(_0x4819ce){while(--_0x4819ce){_0x559133['push'](_0x559133['shift']());}};_0x37f94b(++_0x212091);}(a983_0x2120,0x6e));const a983_0x37f9=function(_0x559133,_0x212091){_0x559133=_0x559133-0x0;let _0x37f94b=a983_0x2120[_0x559133];return _0x37f94b;};const _0x11c01e=a983_0x37f9;'use strict';const util=require('util'),logger=require('../config/logger')(_0x11c01e('0xb')),Sequence=function(){};Sequence[_0x11c01e('0x0')]['enqueue']=function(_0x4819ce){const _0x450080=_0x11c01e;this[_0x450080('0x12')]=this[_0x450080('0x12')]?this[_0x450080('0x12')][_0x450080('0x1b')](_0x4819ce):_0x4819ce();};const Migration=function(_0x357f48){const _0x4a2844=_0x11c01e;this['queryInterface']=_0x357f48,this[_0x4a2844('0xc')]=new Sequence();};Migration[_0x11c01e('0x0')]['changeColumn']=function(_0x23e317,_0x3d16a2,_0x223d74){const _0x5a63e4=_0x11c01e,_0x24a845=this;this[_0x5a63e4('0xc')][_0x5a63e4('0x1c')](function(){const _0x120f61=_0x5a63e4;return _0x24a845[_0x120f61('0x18')]['changeColumn'](_0x23e317,_0x3d16a2,_0x223d74)['then'](function(){const _0x4ad53e=_0x120f61;logger['info'](_0x4ad53e('0x8'),_0x3d16a2,_0x23e317);})[_0x120f61('0x14')](function(_0x1868d0){const _0x50ace3=_0x120f61;logger['info'](JSON[_0x50ace3('0xa')](_0x1868d0));});});},Migration[_0x11c01e('0x0')]['addColumn']=function(_0x59f4c9,_0x4c8d0c,_0x59ec58){const _0xdfa4f2=_0x11c01e,_0x34ef95=this;this[_0xdfa4f2('0xc')][_0xdfa4f2('0x1c')](function(){const _0x48c961=_0xdfa4f2;return _0x34ef95[_0x48c961('0x18')]['addColumn'](_0x59f4c9,_0x4c8d0c,_0x59ec58)[_0x48c961('0x4')](function(){const _0x56bb5a=_0x48c961;logger[_0x56bb5a('0x1a')]('Added\x20column\x20%s\x20to\x20%s',_0x4c8d0c,_0x59f4c9);})[_0x48c961('0x14')](function(_0x46056a){const _0x4bd4de=_0x48c961;logger[_0x4bd4de('0x1a')](JSON[_0x4bd4de('0xa')](_0x46056a));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x13')]=function(_0xdcff5b){const _0x524c83=_0x11c01e,_0x337599=this;this[_0x524c83('0xc')][_0x524c83('0x1c')](function(){const _0x7673f6=_0x524c83;return _0x337599[_0x7673f6('0x18')]['dropTable'](_0xdcff5b,{'force':!![]})[_0x7673f6('0x4')](function(){const _0x33e1b4=_0x7673f6;logger[_0x33e1b4('0x1a')](_0x33e1b4('0x1'),_0xdcff5b);})[_0x7673f6('0x14')](function(_0x962498){const _0xc5e671=_0x7673f6;logger['info'](JSON[_0xc5e671('0xa')](_0x962498));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x5')]=function(_0x300c4b,_0x2172bc,_0x517cc0){const _0x226e05=_0x11c01e,_0x59ca88=this;this[_0x226e05('0xc')][_0x226e05('0x1c')](function(){const _0x452e9b=_0x226e05;return _0x59ca88[_0x452e9b('0x18')]['addIndex'](_0x300c4b,_0x2172bc,{'indexName':_0x517cc0})[_0x452e9b('0x4')](function(){const _0x2a19c6=_0x452e9b;logger[_0x2a19c6('0x1a')](_0x2a19c6('0x6'),_0x300c4b,_0x2172bc[_0x2a19c6('0xf')](','),_0x517cc0);})[_0x452e9b('0x14')](function(_0x2ded53){logger['info'](JSON['stringify'](_0x2ded53));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x19')]=function(_0x285747,_0x137d8a){const _0x38a2b5=_0x11c01e,_0x22f096=this;this[_0x38a2b5('0xc')][_0x38a2b5('0x1c')](function(){const _0x304d57=_0x38a2b5;return _0x22f096['queryInterface']['removeIndex'](_0x285747,_0x137d8a)[_0x304d57('0x4')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x285747,_0x137d8a);})['catch'](function(_0x2c57ee){const _0x72a740=_0x304d57;logger[_0x72a740('0x1a')](JSON[_0x72a740('0xa')](_0x2c57ee));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0xe')]=function(_0xc1668d){const _0x5a0a24=_0x11c01e,_0x2fcd89=this;this[_0x5a0a24('0xc')][_0x5a0a24('0x1c')](function(){const _0x39e1e6=_0x5a0a24;return _0x2fcd89[_0x39e1e6('0x18')][_0x39e1e6('0x1d')]['query'](_0xc1668d)['then'](function(){const _0x1450b0=_0x39e1e6;logger[_0x1450b0('0x1a')](_0x1450b0('0x15'),_0xc1668d);})[_0x39e1e6('0x14')](function(_0x3357da){const _0x3606b2=_0x39e1e6;logger[_0x3606b2('0x1a')](JSON['stringify'](_0x3357da));});});},Migration[_0x11c01e('0x0')]['removeColumn']=function(_0x1cbd8e,_0x52d3d6){const _0x577cb7=_0x11c01e,_0x322f8c=this;this[_0x577cb7('0xc')][_0x577cb7('0x1c')](function(){const _0x650b6f=_0x577cb7;return _0x322f8c['queryInterface'][_0x650b6f('0xd')](_0x1cbd8e,_0x52d3d6)[_0x650b6f('0x4')](function(){const _0x57eb74=_0x650b6f;logger[_0x57eb74('0x1a')](_0x57eb74('0x9'),_0x52d3d6,_0x1cbd8e);})[_0x650b6f('0x14')](function(_0x1041c0){const _0x33cd9f=_0x650b6f;logger[_0x33cd9f('0x1a')](util[_0x33cd9f('0x11')](_0x1041c0,{'showHidden':![],'depth':null}));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x16')]=function(_0x1c0c93,_0x2549b9,_0x3c47c1){const _0x4c19ea=_0x11c01e,_0x568c74=this;this[_0x4c19ea('0xc')][_0x4c19ea('0x1c')](function(){const _0x24b561=_0x4c19ea;return _0x568c74[_0x24b561('0x18')][_0x24b561('0x16')](_0x1c0c93,_0x2549b9,_0x3c47c1)[_0x24b561('0x4')](function(){const _0x21df8b=_0x24b561;logger[_0x21df8b('0x1a')](_0x21df8b('0x3'),_0x2549b9,_0x3c47c1,_0x1c0c93);})[_0x24b561('0x14')](function(_0x444b09){const _0x390084=_0x24b561;logger[_0x390084('0x1a')](util[_0x390084('0x11')](_0x444b09,{'showHidden':![],'depth':null}));});});},Migration[_0x11c01e('0x0')][_0x11c01e('0x17')]=function(_0x1c5c69){const _0x567cc=_0x11c01e;this[_0x567cc('0xc')][_0x567cc('0x1c')](function(){return _0x1c5c69();});},module[_0x11c01e('0x1f')]={'up':function(_0x4ffabd,_0x2436ad){return new Promise(function(_0xa2e6ef){const _0x421050=a983_0x37f9,_0x4ff8cb=new Migration(_0x4ffabd);_0x4ff8cb[_0x421050('0x2')](_0x421050('0x1e'),_0x421050('0x7'),{'type':_0x2436ad[_0x421050('0x10')]}),_0x4ff8cb[_0x421050('0x17')](_0xa2e6ef);});},'down':function(){}}; \ No newline at end of file +const a983_0x210e=['STRING','Added\x20column\x20%s\x20to\x20%s','changeColumn','removeIndex','stringify','catch','table\x20dropped\x20%s','addColumn','queryInterface','then','finally','enqueue','addIndex','util','Removed\x20column\x20%s\x20from\x20%s','exports','join','removeIndex\x20%s\x20%s','final','query','removeColumn','renameColumn','sipcallid','info','addIndex\x20%s\x20%s\x20%s','sequence','report_call','inspect','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','dropTable','prototype'];(function(_0x5c9197,_0x210e69){const _0x3cedd7=function(_0x1fbdfd){while(--_0x1fbdfd){_0x5c9197['push'](_0x5c9197['shift']());}};_0x3cedd7(++_0x210e69);}(a983_0x210e,0xd0));const a983_0x3ced=function(_0x5c9197,_0x210e69){_0x5c9197=_0x5c9197-0x0;let _0x3cedd7=a983_0x210e[_0x5c9197];return _0x3cedd7;};const _0x9dbb3f=a983_0x3ced;'use strict';const util=require(_0x9dbb3f('0x1d')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x9dbb3f('0xf')][_0x9dbb3f('0x1b')]=function(_0x1fbdfd){const _0xe1ea28=_0x9dbb3f;this[_0xe1ea28('0xc')]=this[_0xe1ea28('0xc')]?this[_0xe1ea28('0xc')][_0xe1ea28('0x1a')](_0x1fbdfd):_0x1fbdfd();};const Migration=function(_0xec0c78){const _0xe43cc4=_0x9dbb3f;this[_0xe43cc4('0x18')]=_0xec0c78,this[_0xe43cc4('0x9')]=new Sequence();};Migration[_0x9dbb3f('0xf')][_0x9dbb3f('0x12')]=function(_0x12f7e6,_0x5f4336,_0x1342df){const _0x34241e=_0x9dbb3f,_0x22e7bf=this;this[_0x34241e('0x9')][_0x34241e('0x1b')](function(){const _0x4d8ce6=_0x34241e;return _0x22e7bf[_0x4d8ce6('0x18')][_0x4d8ce6('0x12')](_0x12f7e6,_0x5f4336,_0x1342df)[_0x4d8ce6('0x19')](function(){const _0x5203bf=_0x4d8ce6;logger[_0x5203bf('0x7')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5f4336,_0x12f7e6);})['catch'](function(_0x414c00){const _0x33a4e8=_0x4d8ce6;logger[_0x33a4e8('0x7')](JSON['stringify'](_0x414c00));});});},Migration['prototype'][_0x9dbb3f('0x17')]=function(_0x23b828,_0x24a465,_0x52e48c){const _0x4523c5=_0x9dbb3f,_0x1e3152=this;this[_0x4523c5('0x9')][_0x4523c5('0x1b')](function(){const _0xe9421d=_0x4523c5;return _0x1e3152['queryInterface']['addColumn'](_0x23b828,_0x24a465,_0x52e48c)[_0xe9421d('0x19')](function(){const _0xe009f3=_0xe9421d;logger['info'](_0xe009f3('0x11'),_0x24a465,_0x23b828);})['catch'](function(_0x53e95c){const _0x1699f6=_0xe9421d;logger[_0x1699f6('0x7')](JSON[_0x1699f6('0x14')](_0x53e95c));});});},Migration['prototype'][_0x9dbb3f('0xe')]=function(_0x53beb0){const _0x3075c9=_0x9dbb3f,_0x5141ca=this;this[_0x3075c9('0x9')][_0x3075c9('0x1b')](function(){const _0x999330=_0x3075c9;return _0x5141ca[_0x999330('0x18')][_0x999330('0xe')](_0x53beb0,{'force':!![]})[_0x999330('0x19')](function(){const _0x10ce62=_0x999330;logger[_0x10ce62('0x7')](_0x10ce62('0x16'),_0x53beb0);})['catch'](function(_0x59597e){const _0x56588c=_0x999330;logger[_0x56588c('0x7')](JSON[_0x56588c('0x14')](_0x59597e));});});},Migration[_0x9dbb3f('0xf')]['addIndex']=function(_0x71afd8,_0x23055c,_0x33e194){const _0x430503=_0x9dbb3f,_0x3c356e=this;this['sequence'][_0x430503('0x1b')](function(){const _0x4ef045=_0x430503;return _0x3c356e[_0x4ef045('0x18')][_0x4ef045('0x1c')](_0x71afd8,_0x23055c,{'indexName':_0x33e194})[_0x4ef045('0x19')](function(){const _0x2168af=_0x4ef045;logger[_0x2168af('0x7')](_0x2168af('0x8'),_0x71afd8,_0x23055c[_0x2168af('0x0')](','),_0x33e194);})[_0x4ef045('0x15')](function(_0xbd7af8){const _0xa1e04c=_0x4ef045;logger['info'](JSON[_0xa1e04c('0x14')](_0xbd7af8));});});},Migration['prototype'][_0x9dbb3f('0x13')]=function(_0xdd81de,_0x4794ad){const _0x4b0f0d=_0x9dbb3f,_0x2a1b09=this;this[_0x4b0f0d('0x9')][_0x4b0f0d('0x1b')](function(){const _0x324386=_0x4b0f0d;return _0x2a1b09['queryInterface'][_0x324386('0x13')](_0xdd81de,_0x4794ad)['then'](function(){const _0x39851f=_0x324386;logger[_0x39851f('0x7')](_0x39851f('0x1'),_0xdd81de,_0x4794ad);})[_0x324386('0x15')](function(_0x5256dc){const _0x467076=_0x324386;logger[_0x467076('0x7')](JSON[_0x467076('0x14')](_0x5256dc));});});},Migration[_0x9dbb3f('0xf')]['query']=function(_0x3b0bb1){const _0x514768=_0x9dbb3f,_0xbdbef2=this;this[_0x514768('0x9')][_0x514768('0x1b')](function(){const _0x5a641f=_0x514768;return _0xbdbef2[_0x5a641f('0x18')]['sequelize'][_0x5a641f('0x3')](_0x3b0bb1)[_0x5a641f('0x19')](function(){logger['info']('query\x20%s',_0x3b0bb1);})['catch'](function(_0x180533){const _0x35dca0=_0x5a641f;logger[_0x35dca0('0x7')](JSON[_0x35dca0('0x14')](_0x180533));});});},Migration[_0x9dbb3f('0xf')]['removeColumn']=function(_0x2ce56d,_0x54d57c){const _0x1b2885=_0x9dbb3f,_0x79f814=this;this[_0x1b2885('0x9')][_0x1b2885('0x1b')](function(){const _0x4199d8=_0x1b2885;return _0x79f814[_0x4199d8('0x18')][_0x4199d8('0x4')](_0x2ce56d,_0x54d57c)[_0x4199d8('0x19')](function(){const _0x3124a1=_0x4199d8;logger[_0x3124a1('0x7')](_0x3124a1('0x1e'),_0x54d57c,_0x2ce56d);})['catch'](function(_0x1fb1cb){const _0xa72ec0=_0x4199d8;logger[_0xa72ec0('0x7')](util[_0xa72ec0('0xb')](_0x1fb1cb,{'showHidden':![],'depth':null}));});});},Migration[_0x9dbb3f('0xf')][_0x9dbb3f('0x5')]=function(_0x286938,_0x2cbc59,_0x13f841){const _0x2444bb=_0x9dbb3f,_0x5954f7=this;this[_0x2444bb('0x9')]['enqueue'](function(){const _0x41b02c=_0x2444bb;return _0x5954f7[_0x41b02c('0x18')][_0x41b02c('0x5')](_0x286938,_0x2cbc59,_0x13f841)['then'](function(){const _0x1ce390=_0x41b02c;logger[_0x1ce390('0x7')](_0x1ce390('0xd'),_0x2cbc59,_0x13f841,_0x286938);})['catch'](function(_0x54c31a){const _0x4d9776=_0x41b02c;logger['info'](util[_0x4d9776('0xb')](_0x54c31a,{'showHidden':![],'depth':null}));});});},Migration[_0x9dbb3f('0xf')][_0x9dbb3f('0x2')]=function(_0x2dff9c){const _0x17a89f=_0x9dbb3f;this[_0x17a89f('0x9')][_0x17a89f('0x1b')](function(){return _0x2dff9c();});},module[_0x9dbb3f('0x1f')]={'up':function(_0x1a6a9d,_0x50ec76){return new Promise(function(_0x3af08f){const _0x4db506=a983_0x3ced,_0x124ec9=new Migration(_0x1a6a9d);_0x124ec9[_0x4db506('0x17')](_0x4db506('0xa'),_0x4db506('0x6'),{'type':_0x50ec76[_0x4db506('0x10')]}),_0x124ec9[_0x4db506('0x2')](_0x3af08f);});},'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 e7d65d0..b8ac6bd 100644 --- a/server/migrations/2.3.92.js +++ b/server/migrations/2.3.92.js @@ -1 +1 @@ -const a984_0x3467=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequence','Added\x20column\x20%s\x20to\x20%s','finally','renameColumn','migration','addIndex\x20%s\x20%s\x20%s','stringify','catch','final','../config/logger','removeColumn','query\x20%s','exports','removeIndex','addColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','sequelize','dropTable','info','queryInterface','tail','changeColumn','inspect','prototype','then','join','enqueue','removeIndex\x20%s\x20%s','query','table\x20dropped\x20%s'];(function(_0x18a357,_0x346701){const _0x7e76d6=function(_0x3ce032){while(--_0x3ce032){_0x18a357['push'](_0x18a357['shift']());}};_0x7e76d6(++_0x346701);}(a984_0x3467,0x128));const a984_0x7e76=function(_0x18a357,_0x346701){_0x18a357=_0x18a357-0x0;let _0x7e76d6=a984_0x3467[_0x18a357];return _0x7e76d6;};const _0x3fd879=a984_0x7e76;'use strict';const util=require('util'),logger=require(_0x3fd879('0x2'))(_0x3fd879('0x1d')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x3ce032){const _0x1f8077=_0x3fd879;this[_0x1f8077('0xe')]=this[_0x1f8077('0xe')]?this[_0x1f8077('0xe')][_0x1f8077('0x1b')](_0x3ce032):_0x3ce032();};const Migration=function(_0x168674){const _0x2dccf2=_0x3fd879;this[_0x2dccf2('0xd')]=_0x168674,this[_0x2dccf2('0x19')]=new Sequence();};Migration[_0x3fd879('0x11')][_0x3fd879('0xf')]=function(_0x26730a,_0x40c738,_0x30cbae){const _0x52128f=_0x3fd879,_0x54dd8c=this;this[_0x52128f('0x19')][_0x52128f('0x14')](function(){const _0x3c3784=_0x52128f;return _0x54dd8c[_0x3c3784('0xd')]['changeColumn'](_0x26730a,_0x40c738,_0x30cbae)[_0x3c3784('0x12')](function(){const _0x162454=_0x3c3784;logger[_0x162454('0xc')](_0x162454('0x8'),_0x40c738,_0x26730a);})[_0x3c3784('0x0')](function(_0x2516ae){const _0x4273d9=_0x3c3784;logger[_0x4273d9('0xc')](JSON[_0x4273d9('0x1f')](_0x2516ae));});});},Migration[_0x3fd879('0x11')][_0x3fd879('0x7')]=function(_0x29eef7,_0x503ee8,_0x36eb88){const _0x31c1d0=_0x3fd879,_0x15acbd=this;this[_0x31c1d0('0x19')]['enqueue'](function(){const _0x1f9fcb=_0x31c1d0;return _0x15acbd[_0x1f9fcb('0xd')][_0x1f9fcb('0x7')](_0x29eef7,_0x503ee8,_0x36eb88)[_0x1f9fcb('0x12')](function(){const _0x5893ab=_0x1f9fcb;logger[_0x5893ab('0xc')](_0x5893ab('0x1a'),_0x503ee8,_0x29eef7);})[_0x1f9fcb('0x0')](function(_0xde4424){const _0x36e735=_0x1f9fcb;logger['info'](JSON[_0x36e735('0x1f')](_0xde4424));});});},Migration[_0x3fd879('0x11')]['dropTable']=function(_0xaaad1e){const _0x125a49=_0x3fd879,_0x4b9bb3=this;this[_0x125a49('0x19')][_0x125a49('0x14')](function(){const _0x558ca0=_0x125a49;return _0x4b9bb3[_0x558ca0('0xd')][_0x558ca0('0xb')](_0xaaad1e,{'force':!![]})['then'](function(){const _0x11c311=_0x558ca0;logger[_0x11c311('0xc')](_0x11c311('0x17'),_0xaaad1e);})[_0x558ca0('0x0')](function(_0x4557c4){const _0x31899e=_0x558ca0;logger[_0x31899e('0xc')](JSON[_0x31899e('0x1f')](_0x4557c4));});});},Migration[_0x3fd879('0x11')][_0x3fd879('0x9')]=function(_0x28f50f,_0x5c867e,_0x4e4656){const _0x343b9e=_0x3fd879,_0x3ab674=this;this[_0x343b9e('0x19')]['enqueue'](function(){const _0x55120b=_0x343b9e;return _0x3ab674[_0x55120b('0xd')][_0x55120b('0x9')](_0x28f50f,_0x5c867e,{'indexName':_0x4e4656})[_0x55120b('0x12')](function(){const _0x3090d5=_0x55120b;logger[_0x3090d5('0xc')](_0x3090d5('0x1e'),_0x28f50f,_0x5c867e[_0x3090d5('0x13')](','),_0x4e4656);})[_0x55120b('0x0')](function(_0x17ec80){const _0x27c7e1=_0x55120b;logger[_0x27c7e1('0xc')](JSON[_0x27c7e1('0x1f')](_0x17ec80));});});},Migration['prototype'][_0x3fd879('0x6')]=function(_0x47abab,_0x434527){const _0x2f076e=_0x3fd879,_0x43e0f0=this;this[_0x2f076e('0x19')]['enqueue'](function(){const _0x5ba4bf=_0x2f076e;return _0x43e0f0['queryInterface'][_0x5ba4bf('0x6')](_0x47abab,_0x434527)[_0x5ba4bf('0x12')](function(){const _0x3ea9c8=_0x5ba4bf;logger[_0x3ea9c8('0xc')](_0x3ea9c8('0x15'),_0x47abab,_0x434527);})[_0x5ba4bf('0x0')](function(_0x277830){const _0x36b68a=_0x5ba4bf;logger[_0x36b68a('0xc')](JSON[_0x36b68a('0x1f')](_0x277830));});});},Migration[_0x3fd879('0x11')][_0x3fd879('0x16')]=function(_0x4d622f){const _0x4ec088=_0x3fd879,_0x2b3ea9=this;this[_0x4ec088('0x19')][_0x4ec088('0x14')](function(){const _0xe9ac5d=_0x4ec088;return _0x2b3ea9[_0xe9ac5d('0xd')][_0xe9ac5d('0xa')][_0xe9ac5d('0x16')](_0x4d622f)[_0xe9ac5d('0x12')](function(){const _0x2e944a=_0xe9ac5d;logger[_0x2e944a('0xc')](_0x2e944a('0x4'),_0x4d622f);})[_0xe9ac5d('0x0')](function(_0x2089aa){const _0x1b284c=_0xe9ac5d;logger['info'](JSON[_0x1b284c('0x1f')](_0x2089aa));});});},Migration[_0x3fd879('0x11')]['removeColumn']=function(_0x1bdb97,_0x5cac70){const _0x2cd89b=_0x3fd879,_0x3e1302=this;this[_0x2cd89b('0x19')][_0x2cd89b('0x14')](function(){const _0x5d9972=_0x2cd89b;return _0x3e1302[_0x5d9972('0xd')][_0x5d9972('0x3')](_0x1bdb97,_0x5cac70)[_0x5d9972('0x12')](function(){const _0x19522f=_0x5d9972;logger[_0x19522f('0xc')]('Removed\x20column\x20%s\x20from\x20%s',_0x5cac70,_0x1bdb97);})[_0x5d9972('0x0')](function(_0x43c797){const _0x478c10=_0x5d9972;logger[_0x478c10('0xc')](util[_0x478c10('0x10')](_0x43c797,{'showHidden':![],'depth':null}));});});},Migration[_0x3fd879('0x11')][_0x3fd879('0x1c')]=function(_0x29e059,_0x200c92,_0x1d2bc2){const _0xe7a1c0=_0x3fd879,_0x5df4b2=this;this[_0xe7a1c0('0x19')][_0xe7a1c0('0x14')](function(){const _0x44eb1a=_0xe7a1c0;return _0x5df4b2[_0x44eb1a('0xd')][_0x44eb1a('0x1c')](_0x29e059,_0x200c92,_0x1d2bc2)['then'](function(){const _0x461efc=_0x44eb1a;logger[_0x461efc('0xc')](_0x461efc('0x18'),_0x200c92,_0x1d2bc2,_0x29e059);})[_0x44eb1a('0x0')](function(_0x94d75b){const _0x111098=_0x44eb1a;logger['info'](util[_0x111098('0x10')](_0x94d75b,{'showHidden':![],'depth':null}));});});},Migration[_0x3fd879('0x11')][_0x3fd879('0x1')]=function(_0xb29a6a){const _0x1a48ec=_0x3fd879;this[_0x1a48ec('0x19')][_0x1a48ec('0x14')](function(){return _0xb29a6a();});},module[_0x3fd879('0x5')]={'up':function(_0x5d3211){return new Promise(function(_0x5b8e41){const _0x1ac0b7=new Migration(_0x5d3211);_0x1ac0b7['final'](_0x5b8e41);});},'down':function(){}}; \ No newline at end of file +const a984_0x1ce3=['addIndex','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','join','Added\x20column\x20%s\x20to\x20%s','../config/logger','Removed\x20column\x20%s\x20from\x20%s','stringify','final','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','renameColumn','info','migration','tail','queryInterface','prototype','removeColumn','changeColumn','query\x20%s','then','sequelize','exports','inspect','removeIndex','catch','sequence','dropTable','addColumn','removeIndex\x20%s\x20%s','query'];(function(_0x47e74c,_0x1ce339){const _0x1f3d58=function(_0x280743){while(--_0x280743){_0x47e74c['push'](_0x47e74c['shift']());}};_0x1f3d58(++_0x1ce339);}(a984_0x1ce3,0x14d));const a984_0x1f3d=function(_0x47e74c,_0x1ce339){_0x47e74c=_0x47e74c-0x0;let _0x1f3d58=a984_0x1ce3[_0x47e74c];return _0x1f3d58;};const _0x4e6472=a984_0x1f3d;'use strict';const util=require('util'),logger=require(_0x4e6472('0xd'))(_0x4e6472('0x15')),Sequence=function(){};Sequence[_0x4e6472('0x18')][_0x4e6472('0xa')]=function(_0x280743){const _0x5635bc=_0x4e6472;this[_0x5635bc('0x16')]=this[_0x5635bc('0x16')]?this[_0x5635bc('0x16')][_0x5635bc('0x12')](_0x280743):_0x280743();};const Migration=function(_0x56a18c){const _0x4e4fc5=_0x4e6472;this[_0x4e4fc5('0x17')]=_0x56a18c,this[_0x4e4fc5('0x3')]=new Sequence();};Migration[_0x4e6472('0x18')]['changeColumn']=function(_0x4fd6ec,_0x34e6ee,_0x3910f4){const _0x48b171=_0x4e6472,_0x1a232e=this;this['sequence'][_0x48b171('0xa')](function(){const _0x59cf8e=_0x48b171;return _0x1a232e['queryInterface'][_0x59cf8e('0x1a')](_0x4fd6ec,_0x34e6ee,_0x3910f4)[_0x59cf8e('0x1c')](function(){const _0x210fb5=_0x59cf8e;logger[_0x210fb5('0x14')](_0x210fb5('0x11'),_0x34e6ee,_0x4fd6ec);})[_0x59cf8e('0x2')](function(_0x325a27){const _0x50063d=_0x59cf8e;logger[_0x50063d('0x14')](JSON[_0x50063d('0xf')](_0x325a27));});});},Migration[_0x4e6472('0x18')][_0x4e6472('0x5')]=function(_0x1cdd81,_0x5c6012,_0x3264ea){const _0x314796=_0x4e6472,_0x476cc=this;this[_0x314796('0x3')][_0x314796('0xa')](function(){const _0x5d1bd6=_0x314796;return _0x476cc[_0x5d1bd6('0x17')][_0x5d1bd6('0x5')](_0x1cdd81,_0x5c6012,_0x3264ea)[_0x5d1bd6('0x1c')](function(){const _0x1eb124=_0x5d1bd6;logger[_0x1eb124('0x14')](_0x1eb124('0xc'),_0x5c6012,_0x1cdd81);})[_0x5d1bd6('0x2')](function(_0x4d4cd7){const _0x15c170=_0x5d1bd6;logger[_0x15c170('0x14')](JSON[_0x15c170('0xf')](_0x4d4cd7));});});},Migration[_0x4e6472('0x18')]['dropTable']=function(_0x21d839){const _0x1e499d=_0x4e6472,_0x48510b=this;this[_0x1e499d('0x3')][_0x1e499d('0xa')](function(){const _0x519eb1=_0x1e499d;return _0x48510b[_0x519eb1('0x17')][_0x519eb1('0x4')](_0x21d839,{'force':!![]})[_0x519eb1('0x1c')](function(){const _0x1a1eec=_0x519eb1;logger[_0x1a1eec('0x14')]('table\x20dropped\x20%s',_0x21d839);})['catch'](function(_0x505f2c){const _0x271db7=_0x519eb1;logger['info'](JSON[_0x271db7('0xf')](_0x505f2c));});});},Migration[_0x4e6472('0x18')][_0x4e6472('0x8')]=function(_0x35f207,_0x23f644,_0x38421a){const _0x43c39b=_0x4e6472,_0x51c823=this;this[_0x43c39b('0x3')][_0x43c39b('0xa')](function(){const _0x505600=_0x43c39b;return _0x51c823[_0x505600('0x17')][_0x505600('0x8')](_0x35f207,_0x23f644,{'indexName':_0x38421a})[_0x505600('0x1c')](function(){const _0x46c9bf=_0x505600;logger[_0x46c9bf('0x14')]('addIndex\x20%s\x20%s\x20%s',_0x35f207,_0x23f644[_0x46c9bf('0xb')](','),_0x38421a);})[_0x505600('0x2')](function(_0x3414df){const _0x3b8fdb=_0x505600;logger[_0x3b8fdb('0x14')](JSON[_0x3b8fdb('0xf')](_0x3414df));});});},Migration['prototype'][_0x4e6472('0x1')]=function(_0xb2692b,_0x3bcdfa){const _0x10f097=_0x4e6472,_0x4d2afe=this;this[_0x10f097('0x3')]['enqueue'](function(){const _0x332fc6=_0x10f097;return _0x4d2afe[_0x332fc6('0x17')][_0x332fc6('0x1')](_0xb2692b,_0x3bcdfa)[_0x332fc6('0x1c')](function(){const _0x154b43=_0x332fc6;logger[_0x154b43('0x14')](_0x154b43('0x6'),_0xb2692b,_0x3bcdfa);})[_0x332fc6('0x2')](function(_0x4b4cc8){const _0x4aebd1=_0x332fc6;logger[_0x4aebd1('0x14')](JSON[_0x4aebd1('0xf')](_0x4b4cc8));});});},Migration['prototype'][_0x4e6472('0x7')]=function(_0x26619e){const _0x5555c9=_0x4e6472,_0x491042=this;this[_0x5555c9('0x3')][_0x5555c9('0xa')](function(){const _0x48bbb3=_0x5555c9;return _0x491042[_0x48bbb3('0x17')][_0x48bbb3('0x1d')][_0x48bbb3('0x7')](_0x26619e)['then'](function(){const _0x59d748=_0x48bbb3;logger[_0x59d748('0x14')](_0x59d748('0x1b'),_0x26619e);})[_0x48bbb3('0x2')](function(_0x4066c0){const _0x34071f=_0x48bbb3;logger[_0x34071f('0x14')](JSON[_0x34071f('0xf')](_0x4066c0));});});},Migration[_0x4e6472('0x18')][_0x4e6472('0x19')]=function(_0xde9895,_0x29b56b){const _0x5de475=_0x4e6472,_0xe38ecf=this;this[_0x5de475('0x3')][_0x5de475('0xa')](function(){const _0x5a8b0f=_0x5de475;return _0xe38ecf[_0x5a8b0f('0x17')]['removeColumn'](_0xde9895,_0x29b56b)['then'](function(){const _0x1b78c1=_0x5a8b0f;logger['info'](_0x1b78c1('0xe'),_0x29b56b,_0xde9895);})[_0x5a8b0f('0x2')](function(_0x2bfd78){const _0x4523b6=_0x5a8b0f;logger[_0x4523b6('0x14')](util['inspect'](_0x2bfd78,{'showHidden':![],'depth':null}));});});},Migration[_0x4e6472('0x18')]['renameColumn']=function(_0x2d8813,_0x33faf0,_0x29f21a){const _0x442965=_0x4e6472,_0x1145fb=this;this['sequence'][_0x442965('0xa')](function(){const _0x4a7997=_0x442965;return _0x1145fb[_0x4a7997('0x17')][_0x4a7997('0x13')](_0x2d8813,_0x33faf0,_0x29f21a)[_0x4a7997('0x1c')](function(){const _0x1202f7=_0x4a7997;logger[_0x1202f7('0x14')](_0x1202f7('0x9'),_0x33faf0,_0x29f21a,_0x2d8813);})[_0x4a7997('0x2')](function(_0x4cfe89){const _0x55aa95=_0x4a7997;logger[_0x55aa95('0x14')](util[_0x55aa95('0x0')](_0x4cfe89,{'showHidden':![],'depth':null}));});});},Migration[_0x4e6472('0x18')]['final']=function(_0x201adc){const _0x23667a=_0x4e6472;this[_0x23667a('0x3')][_0x23667a('0xa')](function(){return _0x201adc();});},module[_0x4e6472('0x1e')]={'up':function(_0x4e11a0){return new Promise(function(_0x5521ae){const _0x3ed00c=a984_0x1f3d,_0x289c72=new Migration(_0x4e11a0);_0x289c72[_0x3ed00c('0x10')](_0x5521ae);});},'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 5501ce4..04949e2 100644 --- a/server/migrations/2.3.93.js +++ b/server/migrations/2.3.93.js @@ -1 +1 @@ -const a985_0x508c=['addColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','Added\x20column\x20%s\x20to\x20%s','changeColumn','queryInterface','tail','exports','addIndex\x20%s\x20%s\x20%s','table\x20dropped\x20%s','dropTable','../config/logger','migration','addIndex','finally','stringify','removeIndex','sequelize','inspect','prototype','enqueue','query','query\x20%s','then','info','util','removeColumn','renameColumn','sequence','catch'];(function(_0x49921c,_0x508c34){const _0x5a36dd=function(_0x573151){while(--_0x573151){_0x49921c['push'](_0x49921c['shift']());}};_0x5a36dd(++_0x508c34);}(a985_0x508c,0xe6));const a985_0x5a36=function(_0x49921c,_0x508c34){_0x49921c=_0x49921c-0x0;let _0x5a36dd=a985_0x508c[_0x49921c];return _0x5a36dd;};const _0x436004=a985_0x5a36;'use strict';const util=require(_0x436004('0x5')),logger=require(_0x436004('0x15'))(_0x436004('0x16')),Sequence=function(){};Sequence[_0x436004('0x1d')]['enqueue']=function(_0x573151){const _0x4087fd=_0x436004;this['tail']=this['tail']?this[_0x4087fd('0x10')][_0x4087fd('0x18')](_0x573151):_0x573151();};const Migration=function(_0x33bd18){const _0x4a5670=_0x436004;this[_0x4a5670('0xf')]=_0x33bd18,this[_0x4a5670('0x8')]=new Sequence();};Migration['prototype'][_0x436004('0xe')]=function(_0x18f1df,_0xfba2f,_0xb42a6){const _0x13121d=this;this['sequence']['enqueue'](function(){const _0x5da6d9=a985_0x5a36;return _0x13121d[_0x5da6d9('0xf')][_0x5da6d9('0xe')](_0x18f1df,_0xfba2f,_0xb42a6)['then'](function(){const _0x4add15=_0x5da6d9;logger[_0x4add15('0x4')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xfba2f,_0x18f1df);})[_0x5da6d9('0x9')](function(_0x9d757d){const _0x4aff65=_0x5da6d9;logger[_0x4aff65('0x4')](JSON['stringify'](_0x9d757d));});});},Migration[_0x436004('0x1d')][_0x436004('0xa')]=function(_0x2ba6f0,_0x1eb310,_0xf58651){const _0x3cedd8=_0x436004,_0x4c3339=this;this[_0x3cedd8('0x8')][_0x3cedd8('0x0')](function(){const _0x5f2e1e=_0x3cedd8;return _0x4c3339[_0x5f2e1e('0xf')][_0x5f2e1e('0xa')](_0x2ba6f0,_0x1eb310,_0xf58651)[_0x5f2e1e('0x3')](function(){const _0x3d99ae=_0x5f2e1e;logger['info'](_0x3d99ae('0xd'),_0x1eb310,_0x2ba6f0);})['catch'](function(_0x39f1c8){const _0xd915b7=_0x5f2e1e;logger[_0xd915b7('0x4')](JSON[_0xd915b7('0x19')](_0x39f1c8));});});},Migration['prototype'][_0x436004('0x14')]=function(_0x8a07e5){const _0x379591=_0x436004,_0x5d39cc=this;this[_0x379591('0x8')][_0x379591('0x0')](function(){const _0x15c97e=_0x379591;return _0x5d39cc[_0x15c97e('0xf')][_0x15c97e('0x14')](_0x8a07e5,{'force':!![]})[_0x15c97e('0x3')](function(){const _0x843c65=_0x15c97e;logger['info'](_0x843c65('0x13'),_0x8a07e5);})[_0x15c97e('0x9')](function(_0x4c5bd7){const _0x40ab15=_0x15c97e;logger[_0x40ab15('0x4')](JSON[_0x40ab15('0x19')](_0x4c5bd7));});});},Migration[_0x436004('0x1d')]['addIndex']=function(_0x1e40ba,_0x4660a5,_0x57aee3){const _0x48f709=_0x436004,_0x2cf48b=this;this[_0x48f709('0x8')][_0x48f709('0x0')](function(){const _0x4b3d72=_0x48f709;return _0x2cf48b[_0x4b3d72('0xf')][_0x4b3d72('0x17')](_0x1e40ba,_0x4660a5,{'indexName':_0x57aee3})[_0x4b3d72('0x3')](function(){const _0x4cf0e7=_0x4b3d72;logger['info'](_0x4cf0e7('0x12'),_0x1e40ba,_0x4660a5['join'](','),_0x57aee3);})[_0x4b3d72('0x9')](function(_0x7b7b87){const _0x293ed4=_0x4b3d72;logger[_0x293ed4('0x4')](JSON[_0x293ed4('0x19')](_0x7b7b87));});});},Migration[_0x436004('0x1d')]['removeIndex']=function(_0x203ddf,_0x1cca62){const _0xac8d73=_0x436004,_0x4997de=this;this[_0xac8d73('0x8')][_0xac8d73('0x0')](function(){const _0x262ffd=_0xac8d73;return _0x4997de[_0x262ffd('0xf')][_0x262ffd('0x1a')](_0x203ddf,_0x1cca62)['then'](function(){const _0x5f067c=_0x262ffd;logger[_0x5f067c('0x4')]('removeIndex\x20%s\x20%s',_0x203ddf,_0x1cca62);})[_0x262ffd('0x9')](function(_0x55b76e){const _0x3b71b7=_0x262ffd;logger[_0x3b71b7('0x4')](JSON['stringify'](_0x55b76e));});});},Migration[_0x436004('0x1d')][_0x436004('0x1')]=function(_0xfc4221){const _0x1fcc3d=_0x436004,_0x3cda3e=this;this[_0x1fcc3d('0x8')][_0x1fcc3d('0x0')](function(){const _0xa1e716=_0x1fcc3d;return _0x3cda3e['queryInterface'][_0xa1e716('0x1b')][_0xa1e716('0x1')](_0xfc4221)[_0xa1e716('0x3')](function(){const _0x4bf912=_0xa1e716;logger[_0x4bf912('0x4')](_0x4bf912('0x2'),_0xfc4221);})[_0xa1e716('0x9')](function(_0x28000b){const _0x19cfb8=_0xa1e716;logger[_0x19cfb8('0x4')](JSON[_0x19cfb8('0x19')](_0x28000b));});});},Migration[_0x436004('0x1d')][_0x436004('0x6')]=function(_0x406e2c,_0x188c36){const _0x29ab4b=_0x436004,_0x1cbe7d=this;this[_0x29ab4b('0x8')][_0x29ab4b('0x0')](function(){const _0x39487e=_0x29ab4b;return _0x1cbe7d[_0x39487e('0xf')]['removeColumn'](_0x406e2c,_0x188c36)[_0x39487e('0x3')](function(){const _0x29c276=_0x39487e;logger[_0x29c276('0x4')]('Removed\x20column\x20%s\x20from\x20%s',_0x188c36,_0x406e2c);})[_0x39487e('0x9')](function(_0x266b02){const _0x1c5c47=_0x39487e;logger['info'](util[_0x1c5c47('0x1c')](_0x266b02,{'showHidden':![],'depth':null}));});});},Migration[_0x436004('0x1d')]['renameColumn']=function(_0x796f34,_0x4ebacb,_0x41795c){const _0x217456=_0x436004,_0x149fc4=this;this[_0x217456('0x8')][_0x217456('0x0')](function(){const _0xfb4b78=_0x217456;return _0x149fc4[_0xfb4b78('0xf')][_0xfb4b78('0x7')](_0x796f34,_0x4ebacb,_0x41795c)[_0xfb4b78('0x3')](function(){const _0x33bae0=_0xfb4b78;logger[_0x33bae0('0x4')](_0x33bae0('0xb'),_0x4ebacb,_0x41795c,_0x796f34);})['catch'](function(_0x3aa645){const _0x30ba5f=_0xfb4b78;logger[_0x30ba5f('0x4')](util['inspect'](_0x3aa645,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x436004('0xc')]=function(_0x2771bc){const _0x51565c=_0x436004;this[_0x51565c('0x8')][_0x51565c('0x0')](function(){return _0x2771bc();});},module[_0x436004('0x11')]={'up':function(_0xa6575f){return new Promise(function(_0x3569ad){const _0x4e5b43=a985_0x5a36,_0x86e051=new Migration(_0xa6575f);_0x86e051[_0x4e5b43('0xc')](_0x3569ad);});},'down':function(){}}; \ No newline at end of file +const a985_0x5cff=['stringify','changeColumn','query\x20%s','info','sequelize','../config/logger','addIndex','table\x20dropped\x20%s','sequence','util','renameColumn','catch','dropTable','tail','then','prototype','removeIndex\x20%s\x20%s','queryInterface','addColumn','migration','enqueue','inspect','removeIndex','exports','removeColumn','join','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','query','addIndex\x20%s\x20%s\x20%s','final','finally'];(function(_0x1d3bb4,_0x5cff8e){const _0x38abd9=function(_0x45da60){while(--_0x45da60){_0x1d3bb4['push'](_0x1d3bb4['shift']());}};_0x38abd9(++_0x5cff8e);}(a985_0x5cff,0xab));const a985_0x38ab=function(_0x1d3bb4,_0x5cff8e){_0x1d3bb4=_0x1d3bb4-0x0;let _0x38abd9=a985_0x5cff[_0x1d3bb4];return _0x38abd9;};const _0xc57b37=a985_0x38ab;'use strict';const util=require(_0xc57b37('0x3')),logger=require(_0xc57b37('0x20'))(_0xc57b37('0xd')),Sequence=function(){};Sequence['prototype'][_0xc57b37('0xe')]=function(_0x45da60){const _0x4ad369=_0xc57b37;this[_0x4ad369('0x7')]=this[_0x4ad369('0x7')]?this[_0x4ad369('0x7')][_0x4ad369('0x1a')](_0x45da60):_0x45da60();};const Migration=function(_0xcf48d2){const _0x2158aa=_0xc57b37;this[_0x2158aa('0xb')]=_0xcf48d2,this['sequence']=new Sequence();};Migration[_0xc57b37('0x9')][_0xc57b37('0x1c')]=function(_0x4d28d6,_0x3536c6,_0x5c7089){const _0x544b63=_0xc57b37,_0x4c6b24=this;this[_0x544b63('0x2')][_0x544b63('0xe')](function(){const _0x292f8a=_0x544b63;return _0x4c6b24[_0x292f8a('0xb')]['changeColumn'](_0x4d28d6,_0x3536c6,_0x5c7089)[_0x292f8a('0x8')](function(){const _0x3f3333=_0x292f8a;logger[_0x3f3333('0x1e')](_0x3f3333('0x15'),_0x3536c6,_0x4d28d6);})[_0x292f8a('0x5')](function(_0x24a271){const _0x4fd420=_0x292f8a;logger[_0x4fd420('0x1e')](JSON[_0x4fd420('0x1b')](_0x24a271));});});},Migration[_0xc57b37('0x9')][_0xc57b37('0xc')]=function(_0x2dbed7,_0x1ea714,_0x432b84){const _0x57d0c8=_0xc57b37,_0x321ae9=this;this[_0x57d0c8('0x2')][_0x57d0c8('0xe')](function(){const _0x28f00f=_0x57d0c8;return _0x321ae9['queryInterface'][_0x28f00f('0xc')](_0x2dbed7,_0x1ea714,_0x432b84)[_0x28f00f('0x8')](function(){const _0x16f2f6=_0x28f00f;logger[_0x16f2f6('0x1e')](_0x16f2f6('0x14'),_0x1ea714,_0x2dbed7);})[_0x28f00f('0x5')](function(_0x3bbe2f){const _0x4d8643=_0x28f00f;logger[_0x4d8643('0x1e')](JSON['stringify'](_0x3bbe2f));});});},Migration[_0xc57b37('0x9')]['dropTable']=function(_0x498e71){const _0x4b3512=_0xc57b37,_0x446763=this;this[_0x4b3512('0x2')]['enqueue'](function(){const _0x56fa0a=_0x4b3512;return _0x446763[_0x56fa0a('0xb')][_0x56fa0a('0x6')](_0x498e71,{'force':!![]})[_0x56fa0a('0x8')](function(){const _0x2f5ab4=_0x56fa0a;logger['info'](_0x2f5ab4('0x1'),_0x498e71);})[_0x56fa0a('0x5')](function(_0x5b5a6b){const _0xeabc52=_0x56fa0a;logger[_0xeabc52('0x1e')](JSON['stringify'](_0x5b5a6b));});});},Migration[_0xc57b37('0x9')][_0xc57b37('0x0')]=function(_0x159ad9,_0x29ab2c,_0x44de5f){const _0x59014b=_0xc57b37,_0xc90390=this;this[_0x59014b('0x2')][_0x59014b('0xe')](function(){const _0xa4ab2b=_0x59014b;return _0xc90390[_0xa4ab2b('0xb')][_0xa4ab2b('0x0')](_0x159ad9,_0x29ab2c,{'indexName':_0x44de5f})[_0xa4ab2b('0x8')](function(){const _0x134351=_0xa4ab2b;logger[_0x134351('0x1e')](_0x134351('0x18'),_0x159ad9,_0x29ab2c[_0x134351('0x13')](','),_0x44de5f);})[_0xa4ab2b('0x5')](function(_0x1220d6){const _0x22756b=_0xa4ab2b;logger[_0x22756b('0x1e')](JSON[_0x22756b('0x1b')](_0x1220d6));});});},Migration['prototype'][_0xc57b37('0x10')]=function(_0x220681,_0x396c88){const _0x4447e1=_0xc57b37,_0x57db74=this;this[_0x4447e1('0x2')][_0x4447e1('0xe')](function(){const _0x5c0567=_0x4447e1;return _0x57db74['queryInterface'][_0x5c0567('0x10')](_0x220681,_0x396c88)[_0x5c0567('0x8')](function(){const _0x4cb4d0=_0x5c0567;logger[_0x4cb4d0('0x1e')](_0x4cb4d0('0xa'),_0x220681,_0x396c88);})[_0x5c0567('0x5')](function(_0x17fdfa){const _0x4470bf=_0x5c0567;logger['info'](JSON[_0x4470bf('0x1b')](_0x17fdfa));});});},Migration[_0xc57b37('0x9')][_0xc57b37('0x17')]=function(_0x32b3f5){const _0x12e1ec=_0xc57b37,_0x410e12=this;this[_0x12e1ec('0x2')][_0x12e1ec('0xe')](function(){const _0x35aeb4=_0x12e1ec;return _0x410e12[_0x35aeb4('0xb')][_0x35aeb4('0x1f')]['query'](_0x32b3f5)['then'](function(){const _0x303169=_0x35aeb4;logger['info'](_0x303169('0x1d'),_0x32b3f5);})[_0x35aeb4('0x5')](function(_0x33831a){const _0x44f889=_0x35aeb4;logger['info'](JSON[_0x44f889('0x1b')](_0x33831a));});});},Migration[_0xc57b37('0x9')]['removeColumn']=function(_0x5c2d06,_0x4f33f1){const _0x3943e0=_0xc57b37,_0x4ed692=this;this[_0x3943e0('0x2')][_0x3943e0('0xe')](function(){const _0x35446a=_0x3943e0;return _0x4ed692[_0x35446a('0xb')][_0x35446a('0x12')](_0x5c2d06,_0x4f33f1)['then'](function(){const _0x5cf002=_0x35446a;logger[_0x5cf002('0x1e')](_0x5cf002('0x16'),_0x4f33f1,_0x5c2d06);})[_0x35446a('0x5')](function(_0x4197bd){const _0x4608af=_0x35446a;logger[_0x4608af('0x1e')](util[_0x4608af('0xf')](_0x4197bd,{'showHidden':![],'depth':null}));});});},Migration[_0xc57b37('0x9')][_0xc57b37('0x4')]=function(_0x4e57a2,_0x1036ea,_0x3e40b2){const _0x48d660=_0xc57b37,_0x16e38d=this;this[_0x48d660('0x2')]['enqueue'](function(){const _0x5b999c=_0x48d660;return _0x16e38d[_0x5b999c('0xb')][_0x5b999c('0x4')](_0x4e57a2,_0x1036ea,_0x3e40b2)[_0x5b999c('0x8')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1036ea,_0x3e40b2,_0x4e57a2);})[_0x5b999c('0x5')](function(_0x56064d){const _0x4d826f=_0x5b999c;logger[_0x4d826f('0x1e')](util['inspect'](_0x56064d,{'showHidden':![],'depth':null}));});});},Migration[_0xc57b37('0x9')][_0xc57b37('0x19')]=function(_0x149127){const _0x1f39dd=_0xc57b37;this[_0x1f39dd('0x2')]['enqueue'](function(){return _0x149127();});},module[_0xc57b37('0x11')]={'up':function(_0x19b877){return new Promise(function(_0x3de95c){const _0x381f06=new Migration(_0x19b877);_0x381f06['final'](_0x3de95c);});},'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 d9a448c..638e414 100644 --- a/server/migrations/2.3.94.js +++ b/server/migrations/2.3.94.js @@ -1 +1 @@ -const a986_0x7536=['final','info','addColumn','Added\x20column\x20%s\x20to\x20%s','stringify','join','table\x20dropped\x20%s','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','sequence','exports','prototype','queryInterface','renameColumn','inspect','query\x20%s','then','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','enqueue','sequelize','Removed\x20column\x20%s\x20from\x20%s','catch','addIndex','util','tail','finally','removeColumn','../config/logger','query','removeIndex'];(function(_0x1937b1,_0x753619){const _0x5dd995=function(_0x4c5f0d){while(--_0x4c5f0d){_0x1937b1['push'](_0x1937b1['shift']());}};_0x5dd995(++_0x753619);}(a986_0x7536,0x1d0));const a986_0x5dd9=function(_0x1937b1,_0x753619){_0x1937b1=_0x1937b1-0x0;let _0x5dd995=a986_0x7536[_0x1937b1];return _0x5dd995;};const _0x434758=a986_0x5dd9;'use strict';const util=require(_0x434758('0x9')),logger=require(_0x434758('0xd'))(_0x434758('0x19')),Sequence=function(){};Sequence['prototype'][_0x434758('0x4')]=function(_0x4c5f0d){const _0x1f5252=_0x434758;this[_0x1f5252('0xa')]=this[_0x1f5252('0xa')]?this[_0x1f5252('0xa')][_0x1f5252('0xb')](_0x4c5f0d):_0x4c5f0d();};const Migration=function(_0x3b8c47){const _0x24e9a7=_0x434758;this[_0x24e9a7('0x1d')]=_0x3b8c47,this['sequence']=new Sequence();};Migration['prototype'][_0x434758('0x17')]=function(_0x3b4818,_0x2eabe9,_0x2dcec9){const _0x1f6781=_0x434758,_0x20d40a=this;this['sequence'][_0x1f6781('0x4')](function(){const _0x36c8c0=_0x1f6781;return _0x20d40a[_0x36c8c0('0x1d')][_0x36c8c0('0x17')](_0x3b4818,_0x2eabe9,_0x2dcec9)[_0x36c8c0('0x1')](function(){const _0x2bf8a5=_0x36c8c0;logger[_0x2bf8a5('0x11')](_0x2bf8a5('0x2'),_0x2eabe9,_0x3b4818);})[_0x36c8c0('0x7')](function(_0x1fbf78){const _0x3b4deb=_0x36c8c0;logger[_0x3b4deb('0x11')](JSON[_0x3b4deb('0x14')](_0x1fbf78));});});},Migration[_0x434758('0x1c')][_0x434758('0x12')]=function(_0x145aa9,_0x4804f5,_0x1c2f52){const _0x2eee2e=_0x434758,_0x27585f=this;this[_0x2eee2e('0x1a')][_0x2eee2e('0x4')](function(){const _0x56f1e7=_0x2eee2e;return _0x27585f[_0x56f1e7('0x1d')][_0x56f1e7('0x12')](_0x145aa9,_0x4804f5,_0x1c2f52)[_0x56f1e7('0x1')](function(){const _0x4389cd=_0x56f1e7;logger[_0x4389cd('0x11')](_0x4389cd('0x13'),_0x4804f5,_0x145aa9);})['catch'](function(_0x42b2bc){const _0x1db237=_0x56f1e7;logger[_0x1db237('0x11')](JSON[_0x1db237('0x14')](_0x42b2bc));});});},Migration[_0x434758('0x1c')][_0x434758('0x3')]=function(_0x173849){const _0x5407c2=_0x434758,_0x41ec17=this;this[_0x5407c2('0x1a')][_0x5407c2('0x4')](function(){const _0x43edd9=_0x5407c2;return _0x41ec17[_0x43edd9('0x1d')][_0x43edd9('0x3')](_0x173849,{'force':!![]})[_0x43edd9('0x1')](function(){const _0x2efe3f=_0x43edd9;logger[_0x2efe3f('0x11')](_0x2efe3f('0x16'),_0x173849);})[_0x43edd9('0x7')](function(_0x2a6493){logger['info'](JSON['stringify'](_0x2a6493));});});},Migration['prototype'][_0x434758('0x8')]=function(_0x231b73,_0x5d0c29,_0x5e76ad){const _0xcd44c8=_0x434758,_0x1055b8=this;this[_0xcd44c8('0x1a')][_0xcd44c8('0x4')](function(){const _0x39715f=_0xcd44c8;return _0x1055b8['queryInterface'][_0x39715f('0x8')](_0x231b73,_0x5d0c29,{'indexName':_0x5e76ad})['then'](function(){const _0x5ee3c6=_0x39715f;logger[_0x5ee3c6('0x11')]('addIndex\x20%s\x20%s\x20%s',_0x231b73,_0x5d0c29[_0x5ee3c6('0x15')](','),_0x5e76ad);})[_0x39715f('0x7')](function(_0x2131b0){const _0x2eda97=_0x39715f;logger[_0x2eda97('0x11')](JSON['stringify'](_0x2131b0));});});},Migration['prototype'][_0x434758('0xf')]=function(_0x3293f1,_0x352617){const _0x2c9f0a=this;this['sequence']['enqueue'](function(){const _0x25a88b=a986_0x5dd9;return _0x2c9f0a[_0x25a88b('0x1d')]['removeIndex'](_0x3293f1,_0x352617)['then'](function(){const _0x397ca5=_0x25a88b;logger[_0x397ca5('0x11')]('removeIndex\x20%s\x20%s',_0x3293f1,_0x352617);})[_0x25a88b('0x7')](function(_0x1f3e8c){const _0x39679c=_0x25a88b;logger[_0x39679c('0x11')](JSON[_0x39679c('0x14')](_0x1f3e8c));});});},Migration[_0x434758('0x1c')][_0x434758('0xe')]=function(_0x28806d){const _0x547e0e=_0x434758,_0x37366e=this;this['sequence'][_0x547e0e('0x4')](function(){const _0x11b951=_0x547e0e;return _0x37366e[_0x11b951('0x1d')][_0x11b951('0x5')][_0x11b951('0xe')](_0x28806d)['then'](function(){const _0x59693d=_0x11b951;logger['info'](_0x59693d('0x0'),_0x28806d);})[_0x11b951('0x7')](function(_0xbc71c6){const _0x561e75=_0x11b951;logger[_0x561e75('0x11')](JSON[_0x561e75('0x14')](_0xbc71c6));});});},Migration[_0x434758('0x1c')][_0x434758('0xc')]=function(_0x13b0aa,_0x400418){const _0x2e23d5=_0x434758,_0x1893f8=this;this[_0x2e23d5('0x1a')][_0x2e23d5('0x4')](function(){const _0xb4f6f=_0x2e23d5;return _0x1893f8[_0xb4f6f('0x1d')][_0xb4f6f('0xc')](_0x13b0aa,_0x400418)['then'](function(){const _0x482b83=_0xb4f6f;logger['info'](_0x482b83('0x6'),_0x400418,_0x13b0aa);})['catch'](function(_0x259567){const _0x1565bb=_0xb4f6f;logger[_0x1565bb('0x11')](util['inspect'](_0x259567,{'showHidden':![],'depth':null}));});});},Migration[_0x434758('0x1c')][_0x434758('0x1e')]=function(_0x565bfd,_0x391f06,_0x51cd2b){const _0x2db8bc=_0x434758,_0x7db65=this;this['sequence'][_0x2db8bc('0x4')](function(){const _0x4bf26c=_0x2db8bc;return _0x7db65[_0x4bf26c('0x1d')][_0x4bf26c('0x1e')](_0x565bfd,_0x391f06,_0x51cd2b)[_0x4bf26c('0x1')](function(){const _0x4edbf8=_0x4bf26c;logger[_0x4edbf8('0x11')](_0x4edbf8('0x18'),_0x391f06,_0x51cd2b,_0x565bfd);})[_0x4bf26c('0x7')](function(_0x37c69d){const _0x49442f=_0x4bf26c;logger[_0x49442f('0x11')](util[_0x49442f('0x1f')](_0x37c69d,{'showHidden':![],'depth':null}));});});},Migration[_0x434758('0x1c')]['final']=function(_0x5250a1){const _0x7245b8=_0x434758;this[_0x7245b8('0x1a')][_0x7245b8('0x4')](function(){return _0x5250a1();});},module[_0x434758('0x1b')]={'up':function(_0x56ffc4){return new Promise(function(_0x25ac2e){const _0x2a9460=a986_0x5dd9,_0x4cf2c2=new Migration(_0x56ffc4);_0x4cf2c2[_0x2a9460('0x10')](_0x25ac2e);});},'down':function(){}}; \ No newline at end of file +const a986_0x7469=['removeIndex','migration','Removed\x20column\x20%s\x20from\x20%s','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','exports','sequelize','dropTable','join','addIndex','util','stringify','finally','renameColumn','sequence','info','final','enqueue','inspect','query','changeColumn','Added\x20column\x20%s\x20to\x20%s','prototype','addIndex\x20%s\x20%s\x20%s','catch','removeColumn','tail','query\x20%s','then'];(function(_0x1cfe47,_0x74699f){const _0x2bf6c8=function(_0x1bebf6){while(--_0x1bebf6){_0x1cfe47['push'](_0x1cfe47['shift']());}};_0x2bf6c8(++_0x74699f);}(a986_0x7469,0xfd));const a986_0x2bf6=function(_0x1cfe47,_0x74699f){_0x1cfe47=_0x1cfe47-0x0;let _0x2bf6c8=a986_0x7469[_0x1cfe47];return _0x2bf6c8;};const _0x487403=a986_0x2bf6;'use strict';const util=require(_0x487403('0x1c')),logger=require('../config/logger')(_0x487403('0x12')),Sequence=function(){};Sequence['prototype'][_0x487403('0x5')]=function(_0x1bebf6){const _0x2611f1=_0x487403;this[_0x2611f1('0xe')]=this[_0x2611f1('0xe')]?this['tail'][_0x2611f1('0x0')](_0x1bebf6):_0x1bebf6();};const Migration=function(_0x5625d4){const _0x207c70=_0x487403;this[_0x207c70('0x16')]=_0x5625d4,this[_0x207c70('0x2')]=new Sequence();};Migration[_0x487403('0xa')][_0x487403('0x8')]=function(_0x3ac525,_0x1d237b,_0x24ac66){const _0x4dd350=_0x487403,_0x5041ba=this;this[_0x4dd350('0x2')][_0x4dd350('0x5')](function(){const _0x5dc91a=_0x4dd350;return _0x5041ba[_0x5dc91a('0x16')][_0x5dc91a('0x8')](_0x3ac525,_0x1d237b,_0x24ac66)[_0x5dc91a('0x10')](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1d237b,_0x3ac525);})[_0x5dc91a('0xc')](function(_0x21533a){const _0xffb4d2=_0x5dc91a;logger['info'](JSON[_0xffb4d2('0x1d')](_0x21533a));});});},Migration[_0x487403('0xa')]['addColumn']=function(_0x57cde3,_0x5d1268,_0x310cce){const _0x449023=_0x487403,_0x23af6f=this;this['sequence'][_0x449023('0x5')](function(){const _0xd3275c=_0x449023;return _0x23af6f[_0xd3275c('0x16')]['addColumn'](_0x57cde3,_0x5d1268,_0x310cce)['then'](function(){const _0x3aa4b9=_0xd3275c;logger[_0x3aa4b9('0x3')](_0x3aa4b9('0x9'),_0x5d1268,_0x57cde3);})[_0xd3275c('0xc')](function(_0x34b9df){const _0x43e743=_0xd3275c;logger[_0x43e743('0x3')](JSON[_0x43e743('0x1d')](_0x34b9df));});});},Migration['prototype'][_0x487403('0x19')]=function(_0x52a93d){const _0x38bc50=_0x487403,_0x2355c1=this;this[_0x38bc50('0x2')][_0x38bc50('0x5')](function(){const _0xaadcb5=_0x38bc50;return _0x2355c1['queryInterface'][_0xaadcb5('0x19')](_0x52a93d,{'force':!![]})[_0xaadcb5('0x10')](function(){const _0x539a05=_0xaadcb5;logger[_0x539a05('0x3')]('table\x20dropped\x20%s',_0x52a93d);})['catch'](function(_0x285fcd){const _0x477fa5=_0xaadcb5;logger['info'](JSON[_0x477fa5('0x1d')](_0x285fcd));});});},Migration[_0x487403('0xa')][_0x487403('0x1b')]=function(_0x3166f5,_0x5362b6,_0x1619dc){const _0x37f66d=_0x487403,_0x403f10=this;this[_0x37f66d('0x2')]['enqueue'](function(){const _0x16515c=_0x37f66d;return _0x403f10[_0x16515c('0x16')][_0x16515c('0x1b')](_0x3166f5,_0x5362b6,{'indexName':_0x1619dc})['then'](function(){const _0x1f76c0=_0x16515c;logger['info'](_0x1f76c0('0xb'),_0x3166f5,_0x5362b6[_0x1f76c0('0x1a')](','),_0x1619dc);})[_0x16515c('0xc')](function(_0x5da43d){const _0x12179d=_0x16515c;logger[_0x12179d('0x3')](JSON[_0x12179d('0x1d')](_0x5da43d));});});},Migration[_0x487403('0xa')]['removeIndex']=function(_0x4bff3a,_0x1b07a6){const _0x2571e3=_0x487403,_0x1684f4=this;this[_0x2571e3('0x2')][_0x2571e3('0x5')](function(){const _0x5037c6=_0x2571e3;return _0x1684f4[_0x5037c6('0x16')][_0x5037c6('0x11')](_0x4bff3a,_0x1b07a6)[_0x5037c6('0x10')](function(){const _0x40754b=_0x5037c6;logger[_0x40754b('0x3')](_0x40754b('0x14'),_0x4bff3a,_0x1b07a6);})[_0x5037c6('0xc')](function(_0xe41ff1){const _0x3d4750=_0x5037c6;logger['info'](JSON[_0x3d4750('0x1d')](_0xe41ff1));});});},Migration[_0x487403('0xa')][_0x487403('0x7')]=function(_0xf4d4bf){const _0x26a3bd=_0x487403,_0x2e3995=this;this['sequence'][_0x26a3bd('0x5')](function(){const _0x571c17=_0x26a3bd;return _0x2e3995['queryInterface'][_0x571c17('0x18')][_0x571c17('0x7')](_0xf4d4bf)['then'](function(){const _0x8cc5b9=_0x571c17;logger[_0x8cc5b9('0x3')](_0x8cc5b9('0xf'),_0xf4d4bf);})[_0x571c17('0xc')](function(_0xbc0b44){const _0x3f7018=_0x571c17;logger[_0x3f7018('0x3')](JSON[_0x3f7018('0x1d')](_0xbc0b44));});});},Migration[_0x487403('0xa')][_0x487403('0xd')]=function(_0xac7a0d,_0x240605){const _0x40da70=_0x487403,_0x33489d=this;this['sequence'][_0x40da70('0x5')](function(){const _0x3b2872=_0x40da70;return _0x33489d[_0x3b2872('0x16')]['removeColumn'](_0xac7a0d,_0x240605)[_0x3b2872('0x10')](function(){const _0x2fc0f0=_0x3b2872;logger[_0x2fc0f0('0x3')](_0x2fc0f0('0x13'),_0x240605,_0xac7a0d);})[_0x3b2872('0xc')](function(_0x2d1c85){const _0x98b0a5=_0x3b2872;logger[_0x98b0a5('0x3')](util[_0x98b0a5('0x6')](_0x2d1c85,{'showHidden':![],'depth':null}));});});},Migration[_0x487403('0xa')]['renameColumn']=function(_0x34c2ff,_0x440c7d,_0x24365e){const _0x2b0445=_0x487403,_0x2e2dcc=this;this[_0x2b0445('0x2')][_0x2b0445('0x5')](function(){const _0x1ece53=_0x2b0445;return _0x2e2dcc[_0x1ece53('0x16')][_0x1ece53('0x1')](_0x34c2ff,_0x440c7d,_0x24365e)[_0x1ece53('0x10')](function(){const _0x547d71=_0x1ece53;logger[_0x547d71('0x3')](_0x547d71('0x15'),_0x440c7d,_0x24365e,_0x34c2ff);})[_0x1ece53('0xc')](function(_0x657e6f){const _0x5def06=_0x1ece53;logger[_0x5def06('0x3')](util[_0x5def06('0x6')](_0x657e6f,{'showHidden':![],'depth':null}));});});},Migration[_0x487403('0xa')][_0x487403('0x4')]=function(_0x26022b){const _0x50f913=_0x487403;this[_0x50f913('0x2')][_0x50f913('0x5')](function(){return _0x26022b();});},module[_0x487403('0x17')]={'up':function(_0x1d88d3){return new Promise(function(_0x4dab0b){const _0x4a3155=new Migration(_0x1d88d3);_0x4a3155['final'](_0x4dab0b);});},'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 ee7ff5f..e4b269a 100644 --- a/server/migrations/2.3.95.js +++ b/server/migrations/2.3.95.js @@ -1 +1 @@ -const a987_0xb5fe=['Removed\x20column\x20%s\x20from\x20%s','query','addIndex\x20%s\x20%s\x20%s','queryInterface','addIndex','dropTable','prototype','join','final','enqueue','removeIndex','renameColumn','../config/logger','removeIndex\x20%s\x20%s','util','exports','query\x20%s','finally','sequence','table\x20dropped\x20%s','addColumn','then','removeColumn','stringify','catch','info','changeColumn','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','sequelize','inspect'];(function(_0x41f49f,_0xb5fe88){const _0x202c10=function(_0x35426c){while(--_0x35426c){_0x41f49f['push'](_0x41f49f['shift']());}};_0x202c10(++_0xb5fe88);}(a987_0xb5fe,0x138));const a987_0x202c=function(_0x41f49f,_0xb5fe88){_0x41f49f=_0x41f49f-0x0;let _0x202c10=a987_0xb5fe[_0x41f49f];return _0x202c10;};const _0x495128=a987_0x202c;'use strict';const util=require(_0x495128('0xc')),logger=require(_0x495128('0xa'))('migration'),Sequence=function(){};Sequence[_0x495128('0x4')][_0x495128('0x7')]=function(_0x35426c){const _0x1ef9b8=_0x495128;this[_0x1ef9b8('0x19')]=this['tail']?this[_0x1ef9b8('0x19')][_0x1ef9b8('0xf')](_0x35426c):_0x35426c();};const Migration=function(_0xdfa193){const _0x3645c3=_0x495128;this['queryInterface']=_0xdfa193,this[_0x3645c3('0x10')]=new Sequence();};Migration['prototype'][_0x495128('0x18')]=function(_0x555272,_0x470144,_0x1ad4bd){const _0x597dde=_0x495128,_0x5e31f9=this;this[_0x597dde('0x10')]['enqueue'](function(){const _0x13d2b0=_0x597dde;return _0x5e31f9['queryInterface'][_0x13d2b0('0x18')](_0x555272,_0x470144,_0x1ad4bd)[_0x13d2b0('0x13')](function(){const _0x510698=_0x13d2b0;logger['info'](_0x510698('0x1a'),_0x470144,_0x555272);})[_0x13d2b0('0x16')](function(_0x29c455){const _0x20649e=_0x13d2b0;logger[_0x20649e('0x17')](JSON['stringify'](_0x29c455));});});},Migration[_0x495128('0x4')]['addColumn']=function(_0x328be3,_0x3ebd2d,_0x2ebad0){const _0x46fc5b=_0x495128,_0x504842=this;this[_0x46fc5b('0x10')][_0x46fc5b('0x7')](function(){const _0x3105ea=_0x46fc5b;return _0x504842[_0x3105ea('0x1')][_0x3105ea('0x12')](_0x328be3,_0x3ebd2d,_0x2ebad0)[_0x3105ea('0x13')](function(){const _0x11bdfe=_0x3105ea;logger[_0x11bdfe('0x17')]('Added\x20column\x20%s\x20to\x20%s',_0x3ebd2d,_0x328be3);})[_0x3105ea('0x16')](function(_0x1c1e5f){const _0x5127d4=_0x3105ea;logger['info'](JSON[_0x5127d4('0x15')](_0x1c1e5f));});});},Migration[_0x495128('0x4')][_0x495128('0x3')]=function(_0x3eb379){const _0x1f3999=_0x495128,_0x34b1d4=this;this[_0x1f3999('0x10')][_0x1f3999('0x7')](function(){const _0x181d5a=_0x1f3999;return _0x34b1d4['queryInterface'][_0x181d5a('0x3')](_0x3eb379,{'force':!![]})['then'](function(){const _0x36974f=_0x181d5a;logger['info'](_0x36974f('0x11'),_0x3eb379);})['catch'](function(_0x96e7e4){const _0x5479c9=_0x181d5a;logger['info'](JSON[_0x5479c9('0x15')](_0x96e7e4));});});},Migration[_0x495128('0x4')]['addIndex']=function(_0x312735,_0x214dfc,_0x18b209){const _0xe75d58=_0x495128,_0x1ef8f6=this;this[_0xe75d58('0x10')][_0xe75d58('0x7')](function(){const _0x37eb12=_0xe75d58;return _0x1ef8f6[_0x37eb12('0x1')][_0x37eb12('0x2')](_0x312735,_0x214dfc,{'indexName':_0x18b209})[_0x37eb12('0x13')](function(){const _0x5d0aee=_0x37eb12;logger[_0x5d0aee('0x17')](_0x5d0aee('0x0'),_0x312735,_0x214dfc[_0x5d0aee('0x5')](','),_0x18b209);})[_0x37eb12('0x16')](function(_0x3c15e3){const _0x44593b=_0x37eb12;logger['info'](JSON[_0x44593b('0x15')](_0x3c15e3));});});},Migration['prototype']['removeIndex']=function(_0x324dc7,_0x86e89b){const _0x3676c7=_0x495128,_0x2a1be7=this;this[_0x3676c7('0x10')]['enqueue'](function(){const _0x40c599=_0x3676c7;return _0x2a1be7[_0x40c599('0x1')][_0x40c599('0x8')](_0x324dc7,_0x86e89b)[_0x40c599('0x13')](function(){const _0x5d72cc=_0x40c599;logger['info'](_0x5d72cc('0xb'),_0x324dc7,_0x86e89b);})[_0x40c599('0x16')](function(_0xcc4174){const _0x2b7835=_0x40c599;logger[_0x2b7835('0x17')](JSON[_0x2b7835('0x15')](_0xcc4174));});});},Migration[_0x495128('0x4')][_0x495128('0x1e')]=function(_0x483729){const _0x232d7d=_0x495128,_0x36164b=this;this[_0x232d7d('0x10')][_0x232d7d('0x7')](function(){const _0x4be860=_0x232d7d;return _0x36164b[_0x4be860('0x1')][_0x4be860('0x1b')]['query'](_0x483729)[_0x4be860('0x13')](function(){const _0x17f848=_0x4be860;logger[_0x17f848('0x17')](_0x17f848('0xe'),_0x483729);})[_0x4be860('0x16')](function(_0x396082){const _0x4dd811=_0x4be860;logger['info'](JSON[_0x4dd811('0x15')](_0x396082));});});},Migration[_0x495128('0x4')][_0x495128('0x14')]=function(_0x55c212,_0x444afe){const _0x4f2cd8=_0x495128,_0x137d17=this;this['sequence'][_0x4f2cd8('0x7')](function(){const _0x2a5a89=_0x4f2cd8;return _0x137d17['queryInterface'][_0x2a5a89('0x14')](_0x55c212,_0x444afe)[_0x2a5a89('0x13')](function(){const _0x21d65d=_0x2a5a89;logger[_0x21d65d('0x17')](_0x21d65d('0x1d'),_0x444afe,_0x55c212);})['catch'](function(_0x380898){const _0xc5438c=_0x2a5a89;logger[_0xc5438c('0x17')](util[_0xc5438c('0x1c')](_0x380898,{'showHidden':![],'depth':null}));});});},Migration[_0x495128('0x4')][_0x495128('0x9')]=function(_0x1d7270,_0x1b132c,_0x3615d2){const _0xe2b0f2=_0x495128,_0xb4f547=this;this[_0xe2b0f2('0x10')][_0xe2b0f2('0x7')](function(){const _0x9f6cc2=_0xe2b0f2;return _0xb4f547['queryInterface'][_0x9f6cc2('0x9')](_0x1d7270,_0x1b132c,_0x3615d2)[_0x9f6cc2('0x13')](function(){const _0x10e28f=_0x9f6cc2;logger[_0x10e28f('0x17')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1b132c,_0x3615d2,_0x1d7270);})[_0x9f6cc2('0x16')](function(_0x50a745){const _0xc83f=_0x9f6cc2;logger[_0xc83f('0x17')](util[_0xc83f('0x1c')](_0x50a745,{'showHidden':![],'depth':null}));});});},Migration[_0x495128('0x4')]['final']=function(_0x434d24){const _0x41eb05=_0x495128;this[_0x41eb05('0x10')]['enqueue'](function(){return _0x434d24();});},module[_0x495128('0xd')]={'up':function(_0x28cef7){return new Promise(function(_0x34e950){const _0x48ab2a=a987_0x202c,_0x385fe1=new Migration(_0x28cef7);_0x385fe1[_0x48ab2a('0x6')](_0x34e950);});},'down':function(){}}; \ No newline at end of file +const a987_0x4f15=['info','then','queryInterface','query\x20%s','../config/logger','stringify','enqueue','finally','dropTable','exports','sequelize','table\x20dropped\x20%s','addColumn','removeIndex','query','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','removeIndex\x20%s\x20%s','catch','addIndex','removeColumn','inspect','tail','Added\x20column\x20%s\x20to\x20%s','sequence','prototype','changeColumn'];(function(_0x2ded73,_0x4f15d4){const _0x19970d=function(_0x5d8f04){while(--_0x5d8f04){_0x2ded73['push'](_0x2ded73['shift']());}};_0x19970d(++_0x4f15d4);}(a987_0x4f15,0x103));const a987_0x1997=function(_0x2ded73,_0x4f15d4){_0x2ded73=_0x2ded73-0x0;let _0x19970d=a987_0x4f15[_0x2ded73];return _0x19970d;};const _0x2a59a6=a987_0x1997;'use strict';const util=require('util'),logger=require(_0x2a59a6('0x19'))('migration'),Sequence=function(){};Sequence[_0x2a59a6('0x13')][_0x2a59a6('0x1b')]=function(_0x5d8f04){const _0x5bed80=_0x2a59a6;this[_0x5bed80('0x10')]=this[_0x5bed80('0x10')]?this[_0x5bed80('0x10')][_0x5bed80('0x0')](_0x5d8f04):_0x5d8f04();};const Migration=function(_0x467614){const _0xf4c2f=_0x2a59a6;this[_0xf4c2f('0x17')]=_0x467614,this[_0xf4c2f('0x12')]=new Sequence();};Migration[_0x2a59a6('0x13')]['changeColumn']=function(_0x8eb7ba,_0x2c0eb5,_0x5a69d9){const _0x1335df=_0x2a59a6,_0x5861bd=this;this[_0x1335df('0x12')][_0x1335df('0x1b')](function(){const _0x42f3e7=_0x1335df;return _0x5861bd[_0x42f3e7('0x17')][_0x42f3e7('0x14')](_0x8eb7ba,_0x2c0eb5,_0x5a69d9)['then'](function(){const _0x27bfda=_0x42f3e7;logger[_0x27bfda('0x15')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x2c0eb5,_0x8eb7ba);})[_0x42f3e7('0xc')](function(_0x269649){const _0x459dbe=_0x42f3e7;logger[_0x459dbe('0x15')](JSON['stringify'](_0x269649));});});},Migration[_0x2a59a6('0x13')][_0x2a59a6('0x5')]=function(_0x2c6889,_0x5a9b5f,_0x13b14b){const _0x134bc4=_0x2a59a6,_0x539d69=this;this[_0x134bc4('0x12')][_0x134bc4('0x1b')](function(){const _0x10b2d6=_0x134bc4;return _0x539d69[_0x10b2d6('0x17')][_0x10b2d6('0x5')](_0x2c6889,_0x5a9b5f,_0x13b14b)[_0x10b2d6('0x16')](function(){const _0x5f05c2=_0x10b2d6;logger[_0x5f05c2('0x15')](_0x5f05c2('0x11'),_0x5a9b5f,_0x2c6889);})['catch'](function(_0x2b312b){const _0x138109=_0x10b2d6;logger['info'](JSON[_0x138109('0x1a')](_0x2b312b));});});},Migration['prototype'][_0x2a59a6('0x1')]=function(_0x319bc2){const _0x214f49=_0x2a59a6,_0x3c4577=this;this[_0x214f49('0x12')][_0x214f49('0x1b')](function(){const _0x644e1d=_0x214f49;return _0x3c4577[_0x644e1d('0x17')][_0x644e1d('0x1')](_0x319bc2,{'force':!![]})[_0x644e1d('0x16')](function(){const _0x5ea42b=_0x644e1d;logger[_0x5ea42b('0x15')](_0x5ea42b('0x4'),_0x319bc2);})[_0x644e1d('0xc')](function(_0x5ee032){const _0x3da886=_0x644e1d;logger[_0x3da886('0x15')](JSON[_0x3da886('0x1a')](_0x5ee032));});});},Migration[_0x2a59a6('0x13')]['addIndex']=function(_0x1b5311,_0x103207,_0x42f481){const _0xc74884=_0x2a59a6,_0x3cd81c=this;this[_0xc74884('0x12')][_0xc74884('0x1b')](function(){const _0x34c4e5=_0xc74884;return _0x3cd81c['queryInterface'][_0x34c4e5('0xd')](_0x1b5311,_0x103207,{'indexName':_0x42f481})['then'](function(){const _0x201948=_0x34c4e5;logger['info']('addIndex\x20%s\x20%s\x20%s',_0x1b5311,_0x103207[_0x201948('0xa')](','),_0x42f481);})[_0x34c4e5('0xc')](function(_0x565a80){const _0x5d2f49=_0x34c4e5;logger[_0x5d2f49('0x15')](JSON[_0x5d2f49('0x1a')](_0x565a80));});});},Migration[_0x2a59a6('0x13')]['removeIndex']=function(_0x4da1e1,_0x3a4ea7){const _0x283b33=_0x2a59a6,_0x1bd60c=this;this[_0x283b33('0x12')][_0x283b33('0x1b')](function(){const _0x30bf17=_0x283b33;return _0x1bd60c[_0x30bf17('0x17')][_0x30bf17('0x6')](_0x4da1e1,_0x3a4ea7)[_0x30bf17('0x16')](function(){const _0x5eeace=_0x30bf17;logger['info'](_0x5eeace('0xb'),_0x4da1e1,_0x3a4ea7);})[_0x30bf17('0xc')](function(_0x21e528){const _0x436ac7=_0x30bf17;logger['info'](JSON[_0x436ac7('0x1a')](_0x21e528));});});},Migration[_0x2a59a6('0x13')][_0x2a59a6('0x7')]=function(_0x294e08){const _0xd4ca5b=_0x2a59a6,_0x34c275=this;this[_0xd4ca5b('0x12')][_0xd4ca5b('0x1b')](function(){const _0x39ce63=_0xd4ca5b;return _0x34c275[_0x39ce63('0x17')][_0x39ce63('0x3')][_0x39ce63('0x7')](_0x294e08)[_0x39ce63('0x16')](function(){const _0x414e46=_0x39ce63;logger[_0x414e46('0x15')](_0x414e46('0x18'),_0x294e08);})['catch'](function(_0x53485){const _0xc27dea=_0x39ce63;logger[_0xc27dea('0x15')](JSON[_0xc27dea('0x1a')](_0x53485));});});},Migration[_0x2a59a6('0x13')]['removeColumn']=function(_0x46128c,_0x516628){const _0x24c7cf=_0x2a59a6,_0x819f23=this;this[_0x24c7cf('0x12')][_0x24c7cf('0x1b')](function(){const _0x3e6a1f=_0x24c7cf;return _0x819f23[_0x3e6a1f('0x17')][_0x3e6a1f('0xe')](_0x46128c,_0x516628)[_0x3e6a1f('0x16')](function(){const _0x50ef43=_0x3e6a1f;logger[_0x50ef43('0x15')]('Removed\x20column\x20%s\x20from\x20%s',_0x516628,_0x46128c);})['catch'](function(_0x2361b4){const _0x4318e7=_0x3e6a1f;logger[_0x4318e7('0x15')](util[_0x4318e7('0xf')](_0x2361b4,{'showHidden':![],'depth':null}));});});},Migration[_0x2a59a6('0x13')]['renameColumn']=function(_0x3e281f,_0x27cc61,_0x4298e5){const _0x4f1a61=_0x2a59a6,_0x701562=this;this['sequence'][_0x4f1a61('0x1b')](function(){const _0x1136a3=_0x4f1a61;return _0x701562[_0x1136a3('0x17')]['renameColumn'](_0x3e281f,_0x27cc61,_0x4298e5)[_0x1136a3('0x16')](function(){const _0x285f39=_0x1136a3;logger[_0x285f39('0x15')](_0x285f39('0x9'),_0x27cc61,_0x4298e5,_0x3e281f);})[_0x1136a3('0xc')](function(_0x33ee7c){logger['info'](util['inspect'](_0x33ee7c,{'showHidden':![],'depth':null}));});});},Migration[_0x2a59a6('0x13')][_0x2a59a6('0x8')]=function(_0x1266d2){const _0x105397=_0x2a59a6;this[_0x105397('0x12')][_0x105397('0x1b')](function(){return _0x1266d2();});},module[_0x2a59a6('0x2')]={'up':function(_0x378e44){return new Promise(function(_0x5242f6){const _0x15958e=a987_0x1997,_0x3f3a2b=new Migration(_0x378e44);_0x3f3a2b[_0x15958e('0x8')](_0x5242f6);});},'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 b358943..223b194 100644 --- a/server/migrations/2.3.96.js +++ b/server/migrations/2.3.96.js @@ -1 +1 @@ -const a988_0x5e83=['Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','stringify','query','removeColumn','tail','exports','enqueue','addIndex\x20%s\x20%s\x20%s','../config/logger','final','then','sequence','dropTable','removeIndex\x20%s\x20%s','removeIndex','queryInterface','renameColumn','prototype','catch','defaultScreenRecordingPath','inspect','query\x20%s','addIndex','sequelize','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','info','addColumn'];(function(_0x5902ba,_0x5e83cb){const _0x222f57=function(_0x1307db){while(--_0x1307db){_0x5902ba['push'](_0x5902ba['shift']());}};_0x222f57(++_0x5e83cb);}(a988_0x5e83,0x1b3));const a988_0x222f=function(_0x5902ba,_0x5e83cb){_0x5902ba=_0x5902ba-0x0;let _0x222f57=a988_0x5e83[_0x5902ba];return _0x222f57;};const _0x49b9af=a988_0x222f;'use strict';const util=require('util'),logger=require(_0x49b9af('0x18'))('migration'),Sequence=function(){};Sequence[_0x49b9af('0x3')][_0x49b9af('0x16')]=function(_0x1307db){const _0x3a39e5=_0x49b9af;this[_0x3a39e5('0x14')]=this['tail']?this[_0x3a39e5('0x14')]['finally'](_0x1307db):_0x1307db();};const Migration=function(_0x38f8e8){const _0xf93abd=_0x49b9af;this[_0xf93abd('0x1')]=_0x38f8e8,this['sequence']=new Sequence();};Migration[_0x49b9af('0x3')][_0x49b9af('0xa')]=function(_0x252d77,_0x579503,_0xf1f953){const _0x4fdebd=_0x49b9af,_0x1a70ce=this;this['sequence'][_0x4fdebd('0x16')](function(){const _0x2f59bc=_0x4fdebd;return _0x1a70ce[_0x2f59bc('0x1')][_0x2f59bc('0xa')](_0x252d77,_0x579503,_0xf1f953)[_0x2f59bc('0x1a')](function(){const _0x576816=_0x2f59bc;logger[_0x576816('0xd')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x579503,_0x252d77);})[_0x2f59bc('0x4')](function(_0x1f03f4){const _0x554006=_0x2f59bc;logger[_0x554006('0xd')](JSON['stringify'](_0x1f03f4));});});},Migration['prototype']['addColumn']=function(_0x52b12a,_0x178bf2,_0x1c68f5){const _0x404dcf=_0x49b9af,_0x13144c=this;this[_0x404dcf('0x1b')][_0x404dcf('0x16')](function(){const _0x348121=_0x404dcf;return _0x13144c[_0x348121('0x1')][_0x348121('0xe')](_0x52b12a,_0x178bf2,_0x1c68f5)[_0x348121('0x1a')](function(){const _0x2c71ac=_0x348121;logger[_0x2c71ac('0xd')](_0x2c71ac('0xf'),_0x178bf2,_0x52b12a);})['catch'](function(_0x353493){logger['info'](JSON['stringify'](_0x353493));});});},Migration[_0x49b9af('0x3')][_0x49b9af('0x1c')]=function(_0xb177e3){const _0x3c377d=_0x49b9af,_0x4968bf=this;this[_0x3c377d('0x1b')]['enqueue'](function(){const _0x124501=_0x3c377d;return _0x4968bf[_0x124501('0x1')][_0x124501('0x1c')](_0xb177e3,{'force':!![]})[_0x124501('0x1a')](function(){const _0x394027=_0x124501;logger[_0x394027('0xd')](_0x394027('0x10'),_0xb177e3);})[_0x124501('0x4')](function(_0x3c4ab3){const _0x3583fd=_0x124501;logger['info'](JSON[_0x3583fd('0x11')](_0x3c4ab3));});});},Migration[_0x49b9af('0x3')]['addIndex']=function(_0x1a4774,_0x18be05,_0x8b9a58){const _0x240a10=_0x49b9af,_0x4a2dc7=this;this[_0x240a10('0x1b')][_0x240a10('0x16')](function(){const _0x55130e=_0x240a10;return _0x4a2dc7[_0x55130e('0x1')][_0x55130e('0x8')](_0x1a4774,_0x18be05,{'indexName':_0x8b9a58})[_0x55130e('0x1a')](function(){const _0x511e7c=_0x55130e;logger[_0x511e7c('0xd')](_0x511e7c('0x17'),_0x1a4774,_0x18be05[_0x511e7c('0xc')](','),_0x8b9a58);})['catch'](function(_0x5a6e8d){const _0x225aab=_0x55130e;logger['info'](JSON[_0x225aab('0x11')](_0x5a6e8d));});});},Migration[_0x49b9af('0x3')][_0x49b9af('0x0')]=function(_0x20cd6f,_0x51800c){const _0xa5fdf3=_0x49b9af,_0x47e0d7=this;this[_0xa5fdf3('0x1b')][_0xa5fdf3('0x16')](function(){const _0x1f2894=_0xa5fdf3;return _0x47e0d7[_0x1f2894('0x1')][_0x1f2894('0x0')](_0x20cd6f,_0x51800c)[_0x1f2894('0x1a')](function(){const _0x170697=_0x1f2894;logger[_0x170697('0xd')](_0x170697('0x1d'),_0x20cd6f,_0x51800c);})[_0x1f2894('0x4')](function(_0x2fb439){const _0x2c31d5=_0x1f2894;logger[_0x2c31d5('0xd')](JSON[_0x2c31d5('0x11')](_0x2fb439));});});},Migration[_0x49b9af('0x3')][_0x49b9af('0x12')]=function(_0x14f65e){const _0x2c4a76=_0x49b9af,_0x206216=this;this[_0x2c4a76('0x1b')][_0x2c4a76('0x16')](function(){const _0x5bc03a=_0x2c4a76;return _0x206216[_0x5bc03a('0x1')][_0x5bc03a('0x9')][_0x5bc03a('0x12')](_0x14f65e)['then'](function(){const _0x4197d9=_0x5bc03a;logger[_0x4197d9('0xd')](_0x4197d9('0x7'),_0x14f65e);})[_0x5bc03a('0x4')](function(_0x3d1d60){const _0x3c1ab8=_0x5bc03a;logger[_0x3c1ab8('0xd')](JSON[_0x3c1ab8('0x11')](_0x3d1d60));});});},Migration[_0x49b9af('0x3')]['removeColumn']=function(_0x1c3d31,_0x4325fd){const _0x353cad=_0x49b9af,_0x45ab9f=this;this[_0x353cad('0x1b')][_0x353cad('0x16')](function(){const _0x4d4491=_0x353cad;return _0x45ab9f[_0x4d4491('0x1')][_0x4d4491('0x13')](_0x1c3d31,_0x4325fd)[_0x4d4491('0x1a')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x4325fd,_0x1c3d31);})[_0x4d4491('0x4')](function(_0x78f71){const _0x1340bf=_0x4d4491;logger[_0x1340bf('0xd')](util[_0x1340bf('0x6')](_0x78f71,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x49b9af('0x2')]=function(_0x4de3ee,_0x5bb1a0,_0x4473b4){const _0x238872=_0x49b9af,_0x301dba=this;this[_0x238872('0x1b')][_0x238872('0x16')](function(){const _0x4bc6b6=_0x238872;return _0x301dba[_0x4bc6b6('0x1')][_0x4bc6b6('0x2')](_0x4de3ee,_0x5bb1a0,_0x4473b4)[_0x4bc6b6('0x1a')](function(){const _0x4ea53d=_0x4bc6b6;logger[_0x4ea53d('0xd')](_0x4ea53d('0xb'),_0x5bb1a0,_0x4473b4,_0x4de3ee);})['catch'](function(_0x4e82b9){const _0x48f663=_0x4bc6b6;logger[_0x48f663('0xd')](util['inspect'](_0x4e82b9,{'showHidden':![],'depth':null}));});});},Migration[_0x49b9af('0x3')][_0x49b9af('0x19')]=function(_0x538607){const _0x198dbf=_0x49b9af;this[_0x198dbf('0x1b')][_0x198dbf('0x16')](function(){return _0x538607();});},module[_0x49b9af('0x15')]={'up':function(_0x293b5a,_0x4b8f8d){return new Promise(function(_0x55bad9){const _0x31d1c1=a988_0x222f,_0x4d700d=new Migration(_0x293b5a);_0x4d700d[_0x31d1c1('0xe')]('settings',_0x31d1c1('0x5'),{'type':_0x4b8f8d['STRING']}),_0x4d700d['final'](_0x55bad9);});},'down':function(){}}; \ No newline at end of file +const a988_0x5024=['inspect','changeColumn','migration','Removed\x20column\x20%s\x20from\x20%s','dropTable','addColumn','table\x20dropped\x20%s','query\x20%s','queryInterface','info','enqueue','query','removeIndex','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex','Added\x20column\x20%s\x20to\x20%s','removeColumn','util','../config/logger','prototype','exports','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','renameColumn','STRING','sequence','stringify','settings','finally','defaultScreenRecordingPath','tail','then'];(function(_0x177370,_0x502448){const _0x76957e=function(_0x55a61a){while(--_0x55a61a){_0x177370['push'](_0x177370['shift']());}};_0x76957e(++_0x502448);}(a988_0x5024,0x158));const a988_0x7695=function(_0x177370,_0x502448){_0x177370=_0x177370-0x0;let _0x76957e=a988_0x5024[_0x177370];return _0x76957e;};const _0x4d0834=a988_0x7695;'use strict';const util=require(_0x4d0834('0x4')),logger=require(_0x4d0834('0x5'))(_0x4d0834('0x15')),Sequence=function(){};Sequence[_0x4d0834('0x6')][_0x4d0834('0x1d')]=function(_0x55a61a){const _0x486b13=_0x4d0834;this[_0x486b13('0x11')]=this[_0x486b13('0x11')]?this[_0x486b13('0x11')][_0x486b13('0xf')](_0x55a61a):_0x55a61a();};const Migration=function(_0x20a4ef){const _0x37b0d0=_0x4d0834;this[_0x37b0d0('0x1b')]=_0x20a4ef,this[_0x37b0d0('0xc')]=new Sequence();};Migration[_0x4d0834('0x6')]['changeColumn']=function(_0x4d6624,_0x5c744f,_0x4d7464){const _0x1227e1=_0x4d0834,_0x819113=this;this[_0x1227e1('0xc')][_0x1227e1('0x1d')](function(){const _0x2d7f67=_0x1227e1;return _0x819113[_0x2d7f67('0x1b')][_0x2d7f67('0x14')](_0x4d6624,_0x5c744f,_0x4d7464)[_0x2d7f67('0x12')](function(){const _0x54e856=_0x2d7f67;logger['info'](_0x54e856('0x8'),_0x5c744f,_0x4d6624);})[_0x2d7f67('0x9')](function(_0x1d086b){const _0x445221=_0x2d7f67;logger['info'](JSON[_0x445221('0xd')](_0x1d086b));});});},Migration[_0x4d0834('0x6')][_0x4d0834('0x18')]=function(_0x28309c,_0x14f6ca,_0x18fe6b){const _0x93ee42=_0x4d0834,_0x32332f=this;this[_0x93ee42('0xc')][_0x93ee42('0x1d')](function(){const _0x5efac9=_0x93ee42;return _0x32332f[_0x5efac9('0x1b')]['addColumn'](_0x28309c,_0x14f6ca,_0x18fe6b)['then'](function(){const _0x1368d9=_0x5efac9;logger[_0x1368d9('0x1c')](_0x1368d9('0x2'),_0x14f6ca,_0x28309c);})[_0x5efac9('0x9')](function(_0x38bb6c){const _0x6a6ccd=_0x5efac9;logger['info'](JSON[_0x6a6ccd('0xd')](_0x38bb6c));});});},Migration[_0x4d0834('0x6')][_0x4d0834('0x17')]=function(_0x50df82){const _0x43c1e3=_0x4d0834,_0x3d610d=this;this['sequence'][_0x43c1e3('0x1d')](function(){const _0x5c1b32=_0x43c1e3;return _0x3d610d['queryInterface'][_0x5c1b32('0x17')](_0x50df82,{'force':!![]})[_0x5c1b32('0x12')](function(){const _0x1445db=_0x5c1b32;logger[_0x1445db('0x1c')](_0x1445db('0x19'),_0x50df82);})[_0x5c1b32('0x9')](function(_0x5acfa0){const _0x2e2e54=_0x5c1b32;logger[_0x2e2e54('0x1c')](JSON[_0x2e2e54('0xd')](_0x5acfa0));});});},Migration[_0x4d0834('0x6')][_0x4d0834('0x1')]=function(_0xe2407f,_0x341e9a,_0xdfcf77){const _0x267b91=_0x4d0834,_0x3be14e=this;this[_0x267b91('0xc')][_0x267b91('0x1d')](function(){const _0x257faf=_0x267b91;return _0x3be14e['queryInterface'][_0x257faf('0x1')](_0xe2407f,_0x341e9a,{'indexName':_0xdfcf77})['then'](function(){logger['info']('addIndex\x20%s\x20%s\x20%s',_0xe2407f,_0x341e9a['join'](','),_0xdfcf77);})['catch'](function(_0x4982cd){const _0xb549a9=_0x257faf;logger[_0xb549a9('0x1c')](JSON[_0xb549a9('0xd')](_0x4982cd));});});},Migration[_0x4d0834('0x6')][_0x4d0834('0x1f')]=function(_0x2cd11d,_0x351f30){const _0x35db0f=_0x4d0834,_0x25613e=this;this[_0x35db0f('0xc')][_0x35db0f('0x1d')](function(){const _0x4e25b7=_0x35db0f;return _0x25613e[_0x4e25b7('0x1b')][_0x4e25b7('0x1f')](_0x2cd11d,_0x351f30)[_0x4e25b7('0x12')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x2cd11d,_0x351f30);})[_0x4e25b7('0x9')](function(_0x18dddd){const _0x18118c=_0x4e25b7;logger['info'](JSON[_0x18118c('0xd')](_0x18dddd));});});},Migration[_0x4d0834('0x6')][_0x4d0834('0x1e')]=function(_0x534861){const _0xe3fd4e=_0x4d0834,_0x143d13=this;this[_0xe3fd4e('0xc')][_0xe3fd4e('0x1d')](function(){const _0x4c5fc6=_0xe3fd4e;return _0x143d13['queryInterface']['sequelize'][_0x4c5fc6('0x1e')](_0x534861)['then'](function(){const _0x162aa1=_0x4c5fc6;logger[_0x162aa1('0x1c')](_0x162aa1('0x1a'),_0x534861);})[_0x4c5fc6('0x9')](function(_0x33fc02){const _0x46478e=_0x4c5fc6;logger[_0x46478e('0x1c')](JSON['stringify'](_0x33fc02));});});},Migration[_0x4d0834('0x6')][_0x4d0834('0x3')]=function(_0x28941d,_0x5916bb){const _0x5c252e=_0x4d0834,_0x8fa4be=this;this[_0x5c252e('0xc')][_0x5c252e('0x1d')](function(){const _0xb8cf87=_0x5c252e;return _0x8fa4be[_0xb8cf87('0x1b')][_0xb8cf87('0x3')](_0x28941d,_0x5916bb)['then'](function(){const _0x5f3279=_0xb8cf87;logger['info'](_0x5f3279('0x16'),_0x5916bb,_0x28941d);})[_0xb8cf87('0x9')](function(_0x11f103){const _0x507b5b=_0xb8cf87;logger[_0x507b5b('0x1c')](util[_0x507b5b('0x13')](_0x11f103,{'showHidden':![],'depth':null}));});});},Migration[_0x4d0834('0x6')][_0x4d0834('0xa')]=function(_0x18ce8c,_0x52936b,_0x35ba02){const _0x2bc8a7=_0x4d0834,_0x45346d=this;this[_0x2bc8a7('0xc')][_0x2bc8a7('0x1d')](function(){const _0x9e8490=_0x2bc8a7;return _0x45346d['queryInterface']['renameColumn'](_0x18ce8c,_0x52936b,_0x35ba02)[_0x9e8490('0x12')](function(){const _0x33ed08=_0x9e8490;logger[_0x33ed08('0x1c')](_0x33ed08('0x0'),_0x52936b,_0x35ba02,_0x18ce8c);})[_0x9e8490('0x9')](function(_0x2b7a1f){const _0x5be424=_0x9e8490;logger[_0x5be424('0x1c')](util[_0x5be424('0x13')](_0x2b7a1f,{'showHidden':![],'depth':null}));});});},Migration[_0x4d0834('0x6')][_0x4d0834('0x20')]=function(_0x1018ce){const _0x107edc=_0x4d0834;this['sequence'][_0x107edc('0x1d')](function(){return _0x1018ce();});},module[_0x4d0834('0x7')]={'up':function(_0x4b98ee,_0x5b6d85){return new Promise(function(_0x104440){const _0x5f236f=a988_0x7695,_0x2a5079=new Migration(_0x4b98ee);_0x2a5079[_0x5f236f('0x18')](_0x5f236f('0xe'),_0x5f236f('0x10'),{'type':_0x5b6d85[_0x5f236f('0xb')]}),_0x2a5079[_0x5f236f('0x20')](_0x104440);});},'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 57675a8..672945d 100644 --- a/server/migrations/2.3.97.js +++ b/server/migrations/2.3.97.js @@ -1 +1 @@ -const a989_0x3fd4=['../config/logger','stringify','query','prototype','final','Added\x20column\x20%s\x20to\x20%s','tail','then','removeIndex','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','dialPredictiveIntervalMaxThreshold','Changed\x20column\x20%s\x20in\x20table\x20%s','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','removeIndex\x20%s\x20%s','exports','Removed\x20column\x20%s\x20from\x20%s','finally','UNSIGNED','dropTable','catch','INTEGER','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query\x20%s','enqueue','addIndex','changeColumn','addColumn','sequence','addIndex\x20%s\x20%s\x20%s','removeColumn','join','migration','inspect','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','sequelize','voice_queues','info','renameColumn'];(function(_0xbe78d9,_0x3fd425){const _0x4a4026=function(_0x44414b){while(--_0x44414b){_0xbe78d9['push'](_0xbe78d9['shift']());}};_0x4a4026(++_0x3fd425);}(a989_0x3fd4,0xe3));const a989_0x4a40=function(_0xbe78d9,_0x3fd425){_0xbe78d9=_0xbe78d9-0x0;let _0x4a4026=a989_0x3fd4[_0xbe78d9];return _0x4a4026;};const _0x466eab=a989_0x4a40;'use strict';const util=require('util'),logger=require(_0x466eab('0x7'))(_0x466eab('0x0')),Sequence=function(){};Sequence[_0x466eab('0xa')]['enqueue']=function(_0x44414b){const _0x4285df=_0x466eab;this[_0x4285df('0xd')]=this[_0x4285df('0xd')]?this[_0x4285df('0xd')][_0x4285df('0x17')](_0x44414b):_0x44414b();};const Migration=function(_0xaaaa20){this['queryInterface']=_0xaaaa20,this['sequence']=new Sequence();};Migration[_0x466eab('0xa')]['changeColumn']=function(_0x11f69b,_0x55550c,_0x428fae){const _0x17d878=this;this['sequence']['enqueue'](function(){const _0x59fe91=a989_0x4a40;return _0x17d878[_0x59fe91('0x1c')][_0x59fe91('0x21')](_0x11f69b,_0x55550c,_0x428fae)['then'](function(){const _0x5c9ac0=_0x59fe91;logger[_0x5c9ac0('0x5')](_0x5c9ac0('0x12'),_0x55550c,_0x11f69b);})[_0x59fe91('0x1a')](function(_0xa5da8){const _0x2363d0=_0x59fe91;logger['info'](JSON[_0x2363d0('0x8')](_0xa5da8));});});},Migration[_0x466eab('0xa')][_0x466eab('0x22')]=function(_0x5bcd95,_0x214655,_0x18c8af){const _0x1316a7=_0x466eab,_0x4833db=this;this[_0x1316a7('0x23')][_0x1316a7('0x1f')](function(){const _0x4b8986=_0x1316a7;return _0x4833db[_0x4b8986('0x1c')]['addColumn'](_0x5bcd95,_0x214655,_0x18c8af)[_0x4b8986('0xe')](function(){const _0x3792f5=_0x4b8986;logger[_0x3792f5('0x5')](_0x3792f5('0xc'),_0x214655,_0x5bcd95);})[_0x4b8986('0x1a')](function(_0x373ab2){logger['info'](JSON['stringify'](_0x373ab2));});});},Migration['prototype'][_0x466eab('0x19')]=function(_0xa5a7ea){const _0x39dbae=_0x466eab,_0x4f4375=this;this[_0x39dbae('0x23')][_0x39dbae('0x1f')](function(){const _0xd25e5d=_0x39dbae;return _0x4f4375['queryInterface'][_0xd25e5d('0x19')](_0xa5a7ea,{'force':!![]})[_0xd25e5d('0xe')](function(){logger['info']('table\x20dropped\x20%s',_0xa5a7ea);})[_0xd25e5d('0x1a')](function(_0x29e4e2){const _0x5d618d=_0xd25e5d;logger[_0x5d618d('0x5')](JSON[_0x5d618d('0x8')](_0x29e4e2));});});},Migration[_0x466eab('0xa')]['addIndex']=function(_0x920e17,_0x1bf814,_0x34541a){const _0x1aca76=_0x466eab,_0x5b7d38=this;this[_0x1aca76('0x23')][_0x1aca76('0x1f')](function(){const _0x3cbeca=_0x1aca76;return _0x5b7d38[_0x3cbeca('0x1c')][_0x3cbeca('0x20')](_0x920e17,_0x1bf814,{'indexName':_0x34541a})['then'](function(){const _0x56b36e=_0x3cbeca;logger[_0x56b36e('0x5')](_0x56b36e('0x24'),_0x920e17,_0x1bf814[_0x56b36e('0x26')](','),_0x34541a);})[_0x3cbeca('0x1a')](function(_0x561ef5){const _0x1570c1=_0x3cbeca;logger[_0x1570c1('0x5')](JSON[_0x1570c1('0x8')](_0x561ef5));});});},Migration[_0x466eab('0xa')][_0x466eab('0xf')]=function(_0x132523,_0x4d7f09){const _0x2ea811=_0x466eab,_0x118401=this;this[_0x2ea811('0x23')]['enqueue'](function(){const _0x3a025b=_0x2ea811;return _0x118401[_0x3a025b('0x1c')][_0x3a025b('0xf')](_0x132523,_0x4d7f09)[_0x3a025b('0xe')](function(){const _0x4ca332=_0x3a025b;logger['info'](_0x4ca332('0x14'),_0x132523,_0x4d7f09);})[_0x3a025b('0x1a')](function(_0x316634){const _0x110fbe=_0x3a025b;logger[_0x110fbe('0x5')](JSON[_0x110fbe('0x8')](_0x316634));});});},Migration[_0x466eab('0xa')][_0x466eab('0x9')]=function(_0x110f62){const _0x4901a7=_0x466eab,_0x5a1c5f=this;this['sequence'][_0x4901a7('0x1f')](function(){const _0x47dd1b=_0x4901a7;return _0x5a1c5f[_0x47dd1b('0x1c')][_0x47dd1b('0x3')][_0x47dd1b('0x9')](_0x110f62)['then'](function(){const _0x15e6f0=_0x47dd1b;logger['info'](_0x15e6f0('0x1e'),_0x110f62);})[_0x47dd1b('0x1a')](function(_0xff1e82){const _0x27925b=_0x47dd1b;logger[_0x27925b('0x5')](JSON[_0x27925b('0x8')](_0xff1e82));});});},Migration[_0x466eab('0xa')][_0x466eab('0x25')]=function(_0x2c49c8,_0x546595){const _0x3b7b54=_0x466eab,_0x187674=this;this[_0x3b7b54('0x23')]['enqueue'](function(){const _0x1efa90=_0x3b7b54;return _0x187674[_0x1efa90('0x1c')][_0x1efa90('0x25')](_0x2c49c8,_0x546595)[_0x1efa90('0xe')](function(){const _0xc9964d=_0x1efa90;logger[_0xc9964d('0x5')](_0xc9964d('0x16'),_0x546595,_0x2c49c8);})['catch'](function(_0x40edcd){const _0x432839=_0x1efa90;logger['info'](util[_0x432839('0x1')](_0x40edcd,{'showHidden':![],'depth':null}));});});},Migration[_0x466eab('0xa')][_0x466eab('0x6')]=function(_0xc2c17c,_0x32f07e,_0x3201b2){const _0x494443=_0x466eab,_0x3936f3=this;this['sequence'][_0x494443('0x1f')](function(){const _0x1a280a=_0x494443;return _0x3936f3['queryInterface'][_0x1a280a('0x6')](_0xc2c17c,_0x32f07e,_0x3201b2)[_0x1a280a('0xe')](function(){const _0x4cb2e1=_0x1a280a;logger['info'](_0x4cb2e1('0x1d'),_0x32f07e,_0x3201b2,_0xc2c17c);})[_0x1a280a('0x1a')](function(_0x36f5f8){const _0x397598=_0x1a280a;logger[_0x397598('0x5')](util[_0x397598('0x1')](_0x36f5f8,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x466eab('0xb')]=function(_0x2b3645){const _0xe24916=_0x466eab;this[_0xe24916('0x23')][_0xe24916('0x1f')](function(){return _0x2b3645();});},module[_0x466eab('0x15')]={'up':function(_0x1d8a0e,_0x521080){return new Promise(function(_0x21257a){const _0xc5dc25=a989_0x4a40,_0x1f836a=new Migration(_0x1d8a0e);_0x1f836a[_0xc5dc25('0x22')](_0xc5dc25('0x4'),_0xc5dc25('0x11'),{'type':_0x521080[_0xc5dc25('0x1b')](0x3)[_0xc5dc25('0x18')],'defaultValue':0x14}),_0x1f836a[_0xc5dc25('0x22')](_0xc5dc25('0x4'),'dialPredictiveIntervalMinThreshold',{'type':_0x521080[_0xc5dc25('0x1b')](0x3)[_0xc5dc25('0x18')],'defaultValue':0xa}),_0x1f836a[_0xc5dc25('0x9')](_0xc5dc25('0x10')),_0x1f836a[_0xc5dc25('0x9')](_0xc5dc25('0x2')),_0x1f836a[_0xc5dc25('0x9')]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST'),_0x1f836a[_0xc5dc25('0x9')]('ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version'),_0x1f836a[_0xc5dc25('0x9')](_0xc5dc25('0x13')),_0x1f836a[_0xc5dc25('0xb')](_0x21257a);});},'down':function(){}}; \ No newline at end of file +const a989_0x1bbd=['sequence','enqueue','tail','queryInterface','renameColumn','final','exports','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20updatedAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20createdAt','removeIndex\x20%s\x20%s','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20createdAt\x20datetime\x20NOT\x20NULL\x20DEFAULT\x20CURRENT_TIMESTAMP\x20AFTER\x20version','query','inspect','changeColumn','../config/logger','removeIndex','catch','addIndex','util','ALTER\x20TABLE\x20migrations\x20MODIFY\x20COLUMN\x20version\x20varchar(255)\x20NOT\x20NULL\x20UNIQUE','migration','dropTable','removeColumn','then','ALTER\x20TABLE\x20migrations\x20DROP\x20PRIMARY\x20KEY','ALTER\x20TABLE\x20migrations\x20ADD\x20COLUMN\x20id\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT\x20PRIMARY\x20KEY\x20FIRST','info','finally','dialPredictiveIntervalMinThreshold','Removed\x20column\x20%s\x20from\x20%s','prototype','UNSIGNED','addIndex\x20%s\x20%s\x20%s','voice_queues','addColumn','dialPredictiveIntervalMaxThreshold','stringify','INTEGER'];(function(_0x36f8c,_0x1bbdab){const _0x467e55=function(_0x59edc8){while(--_0x59edc8){_0x36f8c['push'](_0x36f8c['shift']());}};_0x467e55(++_0x1bbdab);}(a989_0x1bbd,0x11a));const a989_0x467e=function(_0x36f8c,_0x1bbdab){_0x36f8c=_0x36f8c-0x0;let _0x467e55=a989_0x1bbd[_0x36f8c];return _0x467e55;};const _0x6588a=a989_0x467e;'use strict';const util=require(_0x6588a('0x1f')),logger=require(_0x6588a('0x1b'))(_0x6588a('0x21')),Sequence=function(){};Sequence['prototype'][_0x6588a('0xf')]=function(_0x59edc8){const _0xf4edb=_0x6588a;this[_0xf4edb('0x10')]=this[_0xf4edb('0x10')]?this[_0xf4edb('0x10')][_0xf4edb('0x3')](_0x59edc8):_0x59edc8();};const Migration=function(_0x3b959d){const _0x4bbf0c=_0x6588a;this['queryInterface']=_0x3b959d,this[_0x4bbf0c('0xe')]=new Sequence();};Migration[_0x6588a('0x6')][_0x6588a('0x1a')]=function(_0x3e230e,_0x58b7b1,_0x44d17e){const _0x5dafe7=_0x6588a,_0x200cd7=this;this[_0x5dafe7('0xe')][_0x5dafe7('0xf')](function(){const _0x5600df=_0x5dafe7;return _0x200cd7[_0x5600df('0x11')][_0x5600df('0x1a')](_0x3e230e,_0x58b7b1,_0x44d17e)['then'](function(){const _0x1b9a6f=_0x5600df;logger[_0x1b9a6f('0x2')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x58b7b1,_0x3e230e);})[_0x5600df('0x1d')](function(_0x2a90a4){logger['info'](JSON['stringify'](_0x2a90a4));});});},Migration[_0x6588a('0x6')][_0x6588a('0xa')]=function(_0x101670,_0xd87af0,_0x2a0995){const _0x163c11=_0x6588a,_0x4392ef=this;this[_0x163c11('0xe')][_0x163c11('0xf')](function(){const _0x2ecce1=_0x163c11;return _0x4392ef[_0x2ecce1('0x11')][_0x2ecce1('0xa')](_0x101670,_0xd87af0,_0x2a0995)[_0x2ecce1('0x24')](function(){const _0x57aecd=_0x2ecce1;logger[_0x57aecd('0x2')]('Added\x20column\x20%s\x20to\x20%s',_0xd87af0,_0x101670);})[_0x2ecce1('0x1d')](function(_0x4b1f1d){const _0x261d6a=_0x2ecce1;logger[_0x261d6a('0x2')](JSON['stringify'](_0x4b1f1d));});});},Migration[_0x6588a('0x6')]['dropTable']=function(_0x208cde){const _0x501640=_0x6588a,_0x4636f3=this;this[_0x501640('0xe')][_0x501640('0xf')](function(){const _0x2917f6=_0x501640;return _0x4636f3[_0x2917f6('0x11')][_0x2917f6('0x22')](_0x208cde,{'force':!![]})[_0x2917f6('0x24')](function(){const _0x518d15=_0x2917f6;logger[_0x518d15('0x2')]('table\x20dropped\x20%s',_0x208cde);})[_0x2917f6('0x1d')](function(_0x2e3036){const _0x5d7fb0=_0x2917f6;logger[_0x5d7fb0('0x2')](JSON['stringify'](_0x2e3036));});});},Migration[_0x6588a('0x6')]['addIndex']=function(_0x5b6f1d,_0x28d22a,_0x532883){const _0x4d9717=_0x6588a,_0x53721b=this;this[_0x4d9717('0xe')][_0x4d9717('0xf')](function(){const _0x57cdc9=_0x4d9717;return _0x53721b[_0x57cdc9('0x11')][_0x57cdc9('0x1e')](_0x5b6f1d,_0x28d22a,{'indexName':_0x532883})[_0x57cdc9('0x24')](function(){const _0x140e93=_0x57cdc9;logger['info'](_0x140e93('0x8'),_0x5b6f1d,_0x28d22a['join'](','),_0x532883);})[_0x57cdc9('0x1d')](function(_0x572be2){const _0x2be4ea=_0x57cdc9;logger[_0x2be4ea('0x2')](JSON[_0x2be4ea('0xc')](_0x572be2));});});},Migration[_0x6588a('0x6')]['removeIndex']=function(_0x1ab102,_0x10c133){const _0x1cbc11=_0x6588a,_0x2e6578=this;this[_0x1cbc11('0xe')][_0x1cbc11('0xf')](function(){const _0x31f4d3=_0x1cbc11;return _0x2e6578[_0x31f4d3('0x11')][_0x31f4d3('0x1c')](_0x1ab102,_0x10c133)['then'](function(){const _0x172708=_0x31f4d3;logger[_0x172708('0x2')](_0x172708('0x16'),_0x1ab102,_0x10c133);})[_0x31f4d3('0x1d')](function(_0x5884b1){const _0x32dd57=_0x31f4d3;logger[_0x32dd57('0x2')](JSON[_0x32dd57('0xc')](_0x5884b1));});});},Migration['prototype'][_0x6588a('0x18')]=function(_0x56055b){const _0x54e4b6=this;this['sequence']['enqueue'](function(){const _0x5a5974=a989_0x467e;return _0x54e4b6[_0x5a5974('0x11')]['sequelize']['query'](_0x56055b)[_0x5a5974('0x24')](function(){const _0x4035c9=_0x5a5974;logger[_0x4035c9('0x2')]('query\x20%s',_0x56055b);})[_0x5a5974('0x1d')](function(_0x28886c){const _0x439042=_0x5a5974;logger['info'](JSON[_0x439042('0xc')](_0x28886c));});});},Migration['prototype'][_0x6588a('0x23')]=function(_0x4a4d3e,_0x355e1f){const _0x404e46=_0x6588a,_0x1649ff=this;this[_0x404e46('0xe')]['enqueue'](function(){const _0x228869=_0x404e46;return _0x1649ff['queryInterface']['removeColumn'](_0x4a4d3e,_0x355e1f)[_0x228869('0x24')](function(){const _0x3c9da3=_0x228869;logger[_0x3c9da3('0x2')](_0x3c9da3('0x5'),_0x355e1f,_0x4a4d3e);})['catch'](function(_0x21df74){logger['info'](util['inspect'](_0x21df74,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x6588a('0x12')]=function(_0x5291bd,_0xbf1e3d,_0x3a7926){const _0xcd99e6=_0x6588a,_0x2971d3=this;this[_0xcd99e6('0xe')]['enqueue'](function(){const _0x540466=_0xcd99e6;return _0x2971d3[_0x540466('0x11')]['renameColumn'](_0x5291bd,_0xbf1e3d,_0x3a7926)[_0x540466('0x24')](function(){const _0x33d699=_0x540466;logger[_0x33d699('0x2')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0xbf1e3d,_0x3a7926,_0x5291bd);})[_0x540466('0x1d')](function(_0x33c0cf){const _0x42da6e=_0x540466;logger[_0x42da6e('0x2')](util[_0x42da6e('0x19')](_0x33c0cf,{'showHidden':![],'depth':null}));});});},Migration[_0x6588a('0x6')][_0x6588a('0x13')]=function(_0x3c01bc){const _0x11cd74=_0x6588a;this[_0x11cd74('0xe')][_0x11cd74('0xf')](function(){return _0x3c01bc();});},module[_0x6588a('0x14')]={'up':function(_0x55ed70,_0x2972dc){return new Promise(function(_0x5c79e8){const _0x5be02e=a989_0x467e,_0x3ab9f8=new Migration(_0x55ed70);_0x3ab9f8[_0x5be02e('0xa')](_0x5be02e('0x9'),_0x5be02e('0xb'),{'type':_0x2972dc[_0x5be02e('0xd')](0x3)[_0x5be02e('0x7')],'defaultValue':0x14}),_0x3ab9f8[_0x5be02e('0xa')](_0x5be02e('0x9'),_0x5be02e('0x4'),{'type':_0x2972dc[_0x5be02e('0xd')](0x3)[_0x5be02e('0x7')],'defaultValue':0xa}),_0x3ab9f8['query'](_0x5be02e('0x0')),_0x3ab9f8[_0x5be02e('0x18')](_0x5be02e('0x20')),_0x3ab9f8['query'](_0x5be02e('0x1')),_0x3ab9f8['query'](_0x5be02e('0x17')),_0x3ab9f8['query'](_0x5be02e('0x15')),_0x3ab9f8[_0x5be02e('0x13')](_0x5c79e8);});},'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 3a01ad5..3c0e4af 100644 --- a/server/migrations/2.3.98.js +++ b/server/migrations/2.3.98.js @@ -1 +1 @@ -const a990_0x99ff=['query','enqueue','stringify','addColumn','table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','migration','join','addIndex','catch','tail','inspect','../config/logger','Removed\x20column\x20%s\x20from\x20%s','then','renameColumn','removeIndex','removeColumn','final','changeColumn','query\x20%s','prototype','info','Added\x20column\x20%s\x20to\x20%s','finally','sequence','dropTable','queryInterface'];(function(_0x57af7c,_0x99ffbf){const _0xc785ee=function(_0x1a5fb1){while(--_0x1a5fb1){_0x57af7c['push'](_0x57af7c['shift']());}};_0xc785ee(++_0x99ffbf);}(a990_0x99ff,0xd2));const a990_0xc785=function(_0x57af7c,_0x99ffbf){_0x57af7c=_0x57af7c-0x0;let _0xc785ee=a990_0x99ff[_0x57af7c];return _0xc785ee;};const _0x239a0d=a990_0xc785;'use strict';const util=require('util'),logger=require(_0x239a0d('0x1a'))(_0x239a0d('0x14')),Sequence=function(){};Sequence[_0x239a0d('0x7')]['enqueue']=function(_0x1a5fb1){const _0x40aeaf=_0x239a0d;this['tail']=this[_0x40aeaf('0x18')]?this[_0x40aeaf('0x18')][_0x40aeaf('0xa')](_0x1a5fb1):_0x1a5fb1();};const Migration=function(_0x285b53){const _0x2b3d91=_0x239a0d;this[_0x2b3d91('0xd')]=_0x285b53,this[_0x2b3d91('0xb')]=new Sequence();};Migration[_0x239a0d('0x7')][_0x239a0d('0x5')]=function(_0x306219,_0x1b23f2,_0xbc08e0){const _0x4badc0=_0x239a0d,_0x214e30=this;this[_0x4badc0('0xb')][_0x4badc0('0xf')](function(){const _0x6ab2fe=_0x4badc0;return _0x214e30[_0x6ab2fe('0xd')]['changeColumn'](_0x306219,_0x1b23f2,_0xbc08e0)[_0x6ab2fe('0x0')](function(){const _0x3bd203=_0x6ab2fe;logger[_0x3bd203('0x8')](_0x3bd203('0x13'),_0x1b23f2,_0x306219);})[_0x6ab2fe('0x17')](function(_0x1e0f1a){const _0x3f9dc6=_0x6ab2fe;logger[_0x3f9dc6('0x8')](JSON['stringify'](_0x1e0f1a));});});},Migration[_0x239a0d('0x7')][_0x239a0d('0x11')]=function(_0x43334c,_0x3b5e51,_0x158ab0){const _0x4d16bf=_0x239a0d,_0x1dc997=this;this[_0x4d16bf('0xb')][_0x4d16bf('0xf')](function(){const _0x2eee10=_0x4d16bf;return _0x1dc997[_0x2eee10('0xd')][_0x2eee10('0x11')](_0x43334c,_0x3b5e51,_0x158ab0)[_0x2eee10('0x0')](function(){const _0x26f153=_0x2eee10;logger[_0x26f153('0x8')](_0x26f153('0x9'),_0x3b5e51,_0x43334c);})[_0x2eee10('0x17')](function(_0x2c8b07){const _0x38b99a=_0x2eee10;logger[_0x38b99a('0x8')](JSON[_0x38b99a('0x10')](_0x2c8b07));});});},Migration[_0x239a0d('0x7')]['dropTable']=function(_0x46121b){const _0x44080=_0x239a0d,_0x5c2d8f=this;this[_0x44080('0xb')]['enqueue'](function(){const _0x30e49b=_0x44080;return _0x5c2d8f['queryInterface'][_0x30e49b('0xc')](_0x46121b,{'force':!![]})[_0x30e49b('0x0')](function(){const _0x2f4fa5=_0x30e49b;logger[_0x2f4fa5('0x8')](_0x2f4fa5('0x12'),_0x46121b);})[_0x30e49b('0x17')](function(_0x354610){const _0x43be20=_0x30e49b;logger[_0x43be20('0x8')](JSON[_0x43be20('0x10')](_0x354610));});});},Migration[_0x239a0d('0x7')]['addIndex']=function(_0x27bd7d,_0x1e99d8,_0x501b71){const _0x31b98e=_0x239a0d,_0x239f36=this;this[_0x31b98e('0xb')]['enqueue'](function(){const _0x1e3d53=_0x31b98e;return _0x239f36[_0x1e3d53('0xd')][_0x1e3d53('0x16')](_0x27bd7d,_0x1e99d8,{'indexName':_0x501b71})['then'](function(){const _0x3b3e65=_0x1e3d53;logger[_0x3b3e65('0x8')]('addIndex\x20%s\x20%s\x20%s',_0x27bd7d,_0x1e99d8[_0x3b3e65('0x15')](','),_0x501b71);})[_0x1e3d53('0x17')](function(_0x2d406b){logger['info'](JSON['stringify'](_0x2d406b));});});},Migration[_0x239a0d('0x7')][_0x239a0d('0x2')]=function(_0x19a2f0,_0x36926f){const _0x3349f6=_0x239a0d,_0x6e027a=this;this['sequence'][_0x3349f6('0xf')](function(){const _0x4e804c=_0x3349f6;return _0x6e027a[_0x4e804c('0xd')][_0x4e804c('0x2')](_0x19a2f0,_0x36926f)[_0x4e804c('0x0')](function(){const _0x366eac=_0x4e804c;logger[_0x366eac('0x8')]('removeIndex\x20%s\x20%s',_0x19a2f0,_0x36926f);})[_0x4e804c('0x17')](function(_0x108205){const _0x3bd8ba=_0x4e804c;logger[_0x3bd8ba('0x8')](JSON[_0x3bd8ba('0x10')](_0x108205));});});},Migration[_0x239a0d('0x7')][_0x239a0d('0xe')]=function(_0xcda5b9){const _0x3ee10a=_0x239a0d,_0x51cea1=this;this['sequence'][_0x3ee10a('0xf')](function(){const _0x59c7ec=_0x3ee10a;return _0x51cea1[_0x59c7ec('0xd')]['sequelize'][_0x59c7ec('0xe')](_0xcda5b9)[_0x59c7ec('0x0')](function(){const _0x44c835=_0x59c7ec;logger[_0x44c835('0x8')](_0x44c835('0x6'),_0xcda5b9);})[_0x59c7ec('0x17')](function(_0x3b10e1){const _0x2487f8=_0x59c7ec;logger[_0x2487f8('0x8')](JSON[_0x2487f8('0x10')](_0x3b10e1));});});},Migration['prototype'][_0x239a0d('0x3')]=function(_0x59ff12,_0x4c1f05){const _0x1df196=_0x239a0d,_0x4b89d0=this;this[_0x1df196('0xb')][_0x1df196('0xf')](function(){const _0xcf5e82=_0x1df196;return _0x4b89d0[_0xcf5e82('0xd')][_0xcf5e82('0x3')](_0x59ff12,_0x4c1f05)[_0xcf5e82('0x0')](function(){const _0x59a8b4=_0xcf5e82;logger['info'](_0x59a8b4('0x1b'),_0x4c1f05,_0x59ff12);})[_0xcf5e82('0x17')](function(_0x4053f4){const _0x4a62e1=_0xcf5e82;logger[_0x4a62e1('0x8')](util[_0x4a62e1('0x19')](_0x4053f4,{'showHidden':![],'depth':null}));});});},Migration[_0x239a0d('0x7')][_0x239a0d('0x1')]=function(_0x39e9f3,_0x563751,_0x5e4fe4){const _0x3a2db5=_0x239a0d,_0x4b5bce=this;this[_0x3a2db5('0xb')][_0x3a2db5('0xf')](function(){const _0x473192=_0x3a2db5;return _0x4b5bce[_0x473192('0xd')][_0x473192('0x1')](_0x39e9f3,_0x563751,_0x5e4fe4)[_0x473192('0x0')](function(){const _0x214045=_0x473192;logger[_0x214045('0x8')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x563751,_0x5e4fe4,_0x39e9f3);})['catch'](function(_0x3a8d14){const _0x4a49d7=_0x473192;logger[_0x4a49d7('0x8')](util[_0x4a49d7('0x19')](_0x3a8d14,{'showHidden':![],'depth':null}));});});},Migration[_0x239a0d('0x7')][_0x239a0d('0x4')]=function(_0x1972e4){const _0x229023=_0x239a0d;this[_0x229023('0xb')]['enqueue'](function(){return _0x1972e4();});},module['exports']={'up':function(_0x58a79e){return new Promise(function(_0x31f7dd){const _0xf7bcd3=a990_0xc785,_0xfc79d=new Migration(_0x58a79e);_0xfc79d[_0xf7bcd3('0x4')](_0x31f7dd);});},'down':function(){}}; \ No newline at end of file +const a990_0x17ab=['prototype','catch','enqueue','addColumn','exports','stringify','sequence','inspect','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','finally','then','changeColumn','addIndex\x20%s\x20%s\x20%s','info','final','util','removeIndex','join','addIndex','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','queryInterface','tail'];(function(_0x3c0410,_0x17ab5a){const _0x9e93e7=function(_0x1a73cb){while(--_0x1a73cb){_0x3c0410['push'](_0x3c0410['shift']());}};_0x9e93e7(++_0x17ab5a);}(a990_0x17ab,0x19c));const a990_0x9e93=function(_0x3c0410,_0x17ab5a){_0x3c0410=_0x3c0410-0x0;let _0x9e93e7=a990_0x17ab[_0x3c0410];return _0x9e93e7;};const _0xfc697b=a990_0x9e93;'use strict';const util=require(_0xfc697b('0x19')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0xfc697b('0x8')]['enqueue']=function(_0x1a73cb){const _0x2e8650=_0xfc697b;this[_0x2e8650('0x7')]=this[_0x2e8650('0x7')]?this[_0x2e8650('0x7')][_0x2e8650('0x13')](_0x1a73cb):_0x1a73cb();};const Migration=function(_0x4fbf71){const _0x51d10c=_0xfc697b;this[_0x51d10c('0x6')]=_0x4fbf71,this[_0x51d10c('0xe')]=new Sequence();};Migration[_0xfc697b('0x8')][_0xfc697b('0x15')]=function(_0x8c8280,_0xe5dcf9,_0x4696c7){const _0x1227e9=_0xfc697b,_0x24535b=this;this[_0x1227e9('0xe')][_0x1227e9('0xa')](function(){const _0x14c7ca=_0x1227e9;return _0x24535b['queryInterface'][_0x14c7ca('0x15')](_0x8c8280,_0xe5dcf9,_0x4696c7)[_0x14c7ca('0x14')](function(){const _0x3dcf15=_0x14c7ca;logger[_0x3dcf15('0x17')](_0x3dcf15('0x4'),_0xe5dcf9,_0x8c8280);})[_0x14c7ca('0x9')](function(_0x5bb017){logger['info'](JSON['stringify'](_0x5bb017));});});},Migration[_0xfc697b('0x8')][_0xfc697b('0xb')]=function(_0x575793,_0x203b60,_0x451c4b){const _0x4ac5b3=_0xfc697b,_0x183bf1=this;this[_0x4ac5b3('0xe')][_0x4ac5b3('0xa')](function(){const _0x1e8f51=_0x4ac5b3;return _0x183bf1[_0x1e8f51('0x6')][_0x1e8f51('0xb')](_0x575793,_0x203b60,_0x451c4b)[_0x1e8f51('0x14')](function(){const _0x15a47a=_0x1e8f51;logger['info'](_0x15a47a('0x10'),_0x203b60,_0x575793);})[_0x1e8f51('0x9')](function(_0x1c94f7){const _0x34e5c5=_0x1e8f51;logger[_0x34e5c5('0x17')](JSON[_0x34e5c5('0xd')](_0x1c94f7));});});},Migration[_0xfc697b('0x8')][_0xfc697b('0x1')]=function(_0x487fa3){const _0x358e44=_0xfc697b,_0x102153=this;this[_0x358e44('0xe')][_0x358e44('0xa')](function(){const _0x2704ff=_0x358e44;return _0x102153[_0x2704ff('0x6')][_0x2704ff('0x1')](_0x487fa3,{'force':!![]})[_0x2704ff('0x14')](function(){const _0x59e24c=_0x2704ff;logger[_0x59e24c('0x17')](_0x59e24c('0x11'),_0x487fa3);})['catch'](function(_0x16cd69){const _0x1f9fcb=_0x2704ff;logger[_0x1f9fcb('0x17')](JSON[_0x1f9fcb('0xd')](_0x16cd69));});});},Migration[_0xfc697b('0x8')][_0xfc697b('0x0')]=function(_0x4cb8ed,_0x12f642,_0x4b1a89){const _0x2aa4f3=_0xfc697b,_0x4c3f99=this;this[_0x2aa4f3('0xe')][_0x2aa4f3('0xa')](function(){const _0x1e7f8e=_0x2aa4f3;return _0x4c3f99['queryInterface'][_0x1e7f8e('0x0')](_0x4cb8ed,_0x12f642,{'indexName':_0x4b1a89})[_0x1e7f8e('0x14')](function(){const _0xdf5b68=_0x1e7f8e;logger['info'](_0xdf5b68('0x16'),_0x4cb8ed,_0x12f642[_0xdf5b68('0x1b')](','),_0x4b1a89);})['catch'](function(_0x2d4cdb){logger['info'](JSON['stringify'](_0x2d4cdb));});});},Migration[_0xfc697b('0x8')][_0xfc697b('0x1a')]=function(_0x8f2552,_0x30ab72){const _0x799514=_0xfc697b,_0x5af5f7=this;this[_0x799514('0xe')][_0x799514('0xa')](function(){const _0x136ac9=_0x799514;return _0x5af5f7['queryInterface'][_0x136ac9('0x1a')](_0x8f2552,_0x30ab72)[_0x136ac9('0x14')](function(){const _0x5d9ab1=_0x136ac9;logger[_0x5d9ab1('0x17')]('removeIndex\x20%s\x20%s',_0x8f2552,_0x30ab72);})[_0x136ac9('0x9')](function(_0x6cb0b0){const _0xdc4444=_0x136ac9;logger[_0xdc4444('0x17')](JSON['stringify'](_0x6cb0b0));});});},Migration[_0xfc697b('0x8')][_0xfc697b('0x3')]=function(_0x525830){const _0x25336f=_0xfc697b,_0x21794a=this;this[_0x25336f('0xe')][_0x25336f('0xa')](function(){const _0x339290=_0x25336f;return _0x21794a[_0x339290('0x6')]['sequelize'][_0x339290('0x3')](_0x525830)['then'](function(){const _0xeef414=_0x339290;logger[_0xeef414('0x17')]('query\x20%s',_0x525830);})['catch'](function(_0x1d4b51){const _0x3169f9=_0x339290;logger[_0x3169f9('0x17')](JSON[_0x3169f9('0xd')](_0x1d4b51));});});},Migration[_0xfc697b('0x8')]['removeColumn']=function(_0x11f389,_0x3ae055){const _0x29c726=_0xfc697b,_0xf55710=this;this['sequence'][_0x29c726('0xa')](function(){const _0x36b42b=_0x29c726;return _0xf55710[_0x36b42b('0x6')]['removeColumn'](_0x11f389,_0x3ae055)[_0x36b42b('0x14')](function(){const _0x1dd494=_0x36b42b;logger['info'](_0x1dd494('0x12'),_0x3ae055,_0x11f389);})[_0x36b42b('0x9')](function(_0x43da45){const _0x2dc776=_0x36b42b;logger[_0x2dc776('0x17')](util[_0x2dc776('0xf')](_0x43da45,{'showHidden':![],'depth':null}));});});},Migration[_0xfc697b('0x8')]['renameColumn']=function(_0x3dd192,_0x2ca224,_0x38dd99){const _0x469429=_0xfc697b,_0x56a0f2=this;this['sequence'][_0x469429('0xa')](function(){const _0x4e50ab=_0x469429;return _0x56a0f2[_0x4e50ab('0x6')][_0x4e50ab('0x5')](_0x3dd192,_0x2ca224,_0x38dd99)['then'](function(){const _0x299dbb=_0x4e50ab;logger[_0x299dbb('0x17')](_0x299dbb('0x2'),_0x2ca224,_0x38dd99,_0x3dd192);})[_0x4e50ab('0x9')](function(_0x48dfe9){const _0x33e865=_0x4e50ab;logger[_0x33e865('0x17')](util[_0x33e865('0xf')](_0x48dfe9,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x1d02c9){const _0x3f9ad9=_0xfc697b;this[_0x3f9ad9('0xe')]['enqueue'](function(){return _0x1d02c9();});},module[_0xfc697b('0xc')]={'up':function(_0x1bb013){return new Promise(function(_0x23d395){const _0x1c4f46=a990_0x9e93,_0x3db0bd=new Migration(_0x1bb013);_0x3db0bd[_0x1c4f46('0x18')](_0x23d395);});},'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 e257289..69ca5cc 100644 --- a/server/migrations/2.4.0.js +++ b/server/migrations/2.4.0.js @@ -1 +1 @@ -const a991_0x3262=['query','mail_interactions','phoneBarEnableVideoRecording','phoneBarEnableScreenRecordingByAgent','renameColumn','exports','stringify','addIndex\x20%s\x20%s\x20%s\x20[%s]','lastMsgBody','then','fti_openchannel_messages','TEXT','ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','migration','addIndex','final','prototype','tiny','mail_messages','lastMsgText','phoneBarEnableAutomaticScreenRecording','ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','queryInterface','Removed\x20column\x20%s\x20from\x20%s','addColumn','fti_mail_interactions','util','BOOLEAN','query\x20%s','FULLTEXT','indicesType','../config/logger','ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','sequence','fti_chat_messages','chat_messages','indexName','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','inspect','removeIndex','join','finally','body','users','enqueue','dropTable','table\x20dropped\x20%s','info','tail','catch','changeColumn','plainBody','Added\x20column\x20%s\x20to\x20%s'];(function(_0x58406b,_0x326248){const _0x5007d3=function(_0x28558f){while(--_0x28558f){_0x58406b['push'](_0x58406b['shift']());}};_0x5007d3(++_0x326248);}(a991_0x3262,0x1af));const a991_0x5007=function(_0x58406b,_0x326248){_0x58406b=_0x58406b-0x0;let _0x5007d3=a991_0x3262[_0x58406b];return _0x5007d3;};const _0x4064cc=a991_0x5007;'use strict';const util=require(_0x4064cc('0x23')),logger=require(_0x4064cc('0x28'))(_0x4064cc('0x16')),Sequence=function(){};Sequence[_0x4064cc('0x19')]['enqueue']=function(_0x28558f){const _0x1c423c=_0x4064cc;this[_0x1c423c('0x4')]=this['tail']?this[_0x1c423c('0x4')][_0x1c423c('0x34')](_0x28558f):_0x28558f();};const Migration=function(_0x3b3371){const _0x4bee2d=_0x4064cc;this['queryInterface']=_0x3b3371,this[_0x4bee2d('0x2b')]=new Sequence();};Migration[_0x4064cc('0x19')][_0x4064cc('0x6')]=function(_0x46f236,_0x592fb5,_0xe73aea){const _0x4afce6=_0x4064cc,_0x1e027e=this;this[_0x4afce6('0x2b')]['enqueue'](function(){const _0x4bba87=_0x4afce6;return _0x1e027e[_0x4bba87('0x1f')]['changeColumn'](_0x46f236,_0x592fb5,_0xe73aea)[_0x4bba87('0x12')](function(){const _0x45880c=_0x4bba87;logger['info'](_0x45880c('0x2f'),_0x592fb5,_0x46f236);})[_0x4bba87('0x5')](function(_0x385f46){const _0x4dd878=_0x4bba87;logger[_0x4dd878('0x3')](JSON[_0x4dd878('0xf')](_0x385f46));});});},Migration[_0x4064cc('0x19')][_0x4064cc('0x21')]=function(_0x2674d2,_0x3d884b,_0x284f89){const _0x37f7ea=_0x4064cc,_0x4a2ba2=this;this[_0x37f7ea('0x2b')][_0x37f7ea('0x0')](function(){const _0x1c3493=_0x37f7ea;return _0x4a2ba2[_0x1c3493('0x1f')][_0x1c3493('0x21')](_0x2674d2,_0x3d884b,_0x284f89)[_0x1c3493('0x12')](function(){const _0x5f3092=_0x1c3493;logger['info'](_0x5f3092('0x8'),_0x3d884b,_0x2674d2);})[_0x1c3493('0x5')](function(_0x4ded8c){const _0x1af52d=_0x1c3493;logger['info'](JSON[_0x1af52d('0xf')](_0x4ded8c));});});},Migration[_0x4064cc('0x19')]['dropTable']=function(_0xe6ef91){const _0x47bab0=_0x4064cc,_0x7bf7fe=this;this[_0x47bab0('0x2b')][_0x47bab0('0x0')](function(){const _0x85ae33=_0x47bab0;return _0x7bf7fe[_0x85ae33('0x1f')][_0x85ae33('0x1')](_0xe6ef91,{'force':!![]})[_0x85ae33('0x12')](function(){const _0x12d711=_0x85ae33;logger[_0x12d711('0x3')](_0x12d711('0x2'),_0xe6ef91);})[_0x85ae33('0x5')](function(_0x576605){const _0x6e2216=_0x85ae33;logger[_0x6e2216('0x3')](JSON[_0x6e2216('0xf')](_0x576605));});});},Migration['prototype'][_0x4064cc('0x17')]=function(_0x81a94b,_0x533a7c,_0x24f9e5){const _0x536661=_0x4064cc,_0x3938a1=this;this['sequence'][_0x536661('0x0')](function(){const _0x274ee0=_0x536661;return _0x3938a1['queryInterface'][_0x274ee0('0x17')](_0x81a94b,_0x533a7c,{'indexName':_0x24f9e5[_0x274ee0('0x2e')],'indicesType':_0x24f9e5[_0x274ee0('0x27')]})[_0x274ee0('0x12')](function(){const _0x2935ae=_0x274ee0;logger[_0x2935ae('0x3')](_0x2935ae('0x10'),_0x81a94b,_0x533a7c[_0x2935ae('0x33')](','),_0x24f9e5[_0x2935ae('0x2e')],_0x24f9e5[_0x2935ae('0x27')]);})[_0x274ee0('0x5')](function(_0xe026f5){const _0x46344a=_0x274ee0;logger[_0x46344a('0x3')](JSON[_0x46344a('0xf')](_0xe026f5));});});},Migration[_0x4064cc('0x19')]['removeIndex']=function(_0x562263,_0x118fb3){const _0x39cca4=_0x4064cc,_0x774cfd=this;this[_0x39cca4('0x2b')][_0x39cca4('0x0')](function(){const _0x5d7717=_0x39cca4;return _0x774cfd[_0x5d7717('0x1f')][_0x5d7717('0x32')](_0x562263,_0x118fb3)[_0x5d7717('0x12')](function(){const _0x2f8d5a=_0x5d7717;logger[_0x2f8d5a('0x3')](_0x2f8d5a('0x30'),_0x562263,_0x118fb3);})[_0x5d7717('0x5')](function(_0x30293b){const _0x5654ce=_0x5d7717;logger[_0x5654ce('0x3')](JSON[_0x5654ce('0xf')](_0x30293b));});});},Migration[_0x4064cc('0x19')][_0x4064cc('0x9')]=function(_0x3be8fd){const _0x13bcf1=_0x4064cc,_0x4e185b=this;this[_0x13bcf1('0x2b')][_0x13bcf1('0x0')](function(){const _0x202a13=_0x13bcf1;return _0x4e185b[_0x202a13('0x1f')]['sequelize'][_0x202a13('0x9')](_0x3be8fd)[_0x202a13('0x12')](function(){const _0x5c33ba=_0x202a13;logger['info'](_0x5c33ba('0x25'),_0x3be8fd);})[_0x202a13('0x5')](function(_0x5658d7){const _0x47dbc4=_0x202a13;logger[_0x47dbc4('0x3')](JSON[_0x47dbc4('0xf')](_0x5658d7));});});},Migration[_0x4064cc('0x19')]['removeColumn']=function(_0x3961b6,_0x46bd9f){const _0xc0efe2=_0x4064cc,_0x108138=this;this[_0xc0efe2('0x2b')][_0xc0efe2('0x0')](function(){const _0x29565e=_0xc0efe2;return _0x108138[_0x29565e('0x1f')]['removeColumn'](_0x3961b6,_0x46bd9f)[_0x29565e('0x12')](function(){const _0x39a150=_0x29565e;logger[_0x39a150('0x3')](_0x39a150('0x20'),_0x46bd9f,_0x3961b6);})[_0x29565e('0x5')](function(_0x2f86fe){const _0x103417=_0x29565e;logger[_0x103417('0x3')](util[_0x103417('0x31')](_0x2f86fe,{'showHidden':![],'depth':null}));});});},Migration[_0x4064cc('0x19')][_0x4064cc('0xd')]=function(_0x39d267,_0x18cd62,_0x4717d5){const _0x59d861=_0x4064cc,_0xd3ea40=this;this[_0x59d861('0x2b')][_0x59d861('0x0')](function(){const _0x4a52b3=_0x59d861;return _0xd3ea40[_0x4a52b3('0x1f')]['renameColumn'](_0x39d267,_0x18cd62,_0x4717d5)[_0x4a52b3('0x12')](function(){const _0x4790a0=_0x4a52b3;logger[_0x4790a0('0x3')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x18cd62,_0x4717d5,_0x39d267);})[_0x4a52b3('0x5')](function(_0x51dde3){const _0x335d73=_0x4a52b3;logger['info'](util[_0x335d73('0x31')](_0x51dde3,{'showHidden':![],'depth':null}));});});},Migration[_0x4064cc('0x19')][_0x4064cc('0x18')]=function(_0x378ab9){const _0x15b887=_0x4064cc;this[_0x15b887('0x2b')]['enqueue'](function(){return _0x378ab9();});},module[_0x4064cc('0xe')]={'up':function(_0x479ca9,_0x23893e){return new Promise(function(_0x11e1db){const _0x31c5dd=a991_0x5007,_0x16ebb5=new Migration(_0x479ca9);_0x16ebb5['renameColumn'](_0x31c5dd('0x36'),_0x31c5dd('0xb'),_0x31c5dd('0xc')),_0x16ebb5[_0x31c5dd('0x21')](_0x31c5dd('0x36'),_0x31c5dd('0x1d'),{'type':_0x23893e[_0x31c5dd('0x24')],'defaultValue':![]}),_0x16ebb5['addColumn']('users','screenrecording',{'type':_0x23893e['BOOLEAN'],'defaultValue':![]}),_0x16ebb5[_0x31c5dd('0x17')](_0x31c5dd('0x2d'),[_0x31c5dd('0x35')],{'indexName':_0x31c5dd('0x2c'),'indicesType':'FULLTEXT'}),_0x16ebb5[_0x31c5dd('0x17')]('mail_interactions',['subject','to'],{'indexName':_0x31c5dd('0x22'),'indicesType':_0x31c5dd('0x26')}),_0x16ebb5['addColumn'](_0x31c5dd('0xa'),_0x31c5dd('0x1c'),{'type':_0x23893e[_0x31c5dd('0x14')](_0x31c5dd('0x1a')),'after':_0x31c5dd('0x11')}),_0x16ebb5['addColumn'](_0x31c5dd('0x1b'),_0x31c5dd('0x7'),{'type':_0x23893e[_0x31c5dd('0x14')]('medium'),'after':_0x31c5dd('0x35')}),_0x16ebb5[_0x31c5dd('0x17')]('mail_messages',[_0x31c5dd('0x7'),'subject'],{'indexName':'fti_mail_messages','indicesType':'FULLTEXT'}),_0x16ebb5[_0x31c5dd('0x17')]('openchannel_messages',[_0x31c5dd('0x35')],{'indexName':_0x31c5dd('0x13'),'indicesType':'FULLTEXT'}),_0x16ebb5[_0x31c5dd('0x17')]('sms_messages',[_0x31c5dd('0x35')],{'indexName':'fti_sms_messages','indicesType':_0x31c5dd('0x26')}),_0x16ebb5[_0x31c5dd('0x9')](_0x31c5dd('0x2a')),_0x16ebb5[_0x31c5dd('0x9')]('ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0x16ebb5[_0x31c5dd('0x9')](_0x31c5dd('0x29')),_0x16ebb5['query'](_0x31c5dd('0x15')),_0x16ebb5[_0x31c5dd('0x9')](_0x31c5dd('0x1e')),_0x16ebb5[_0x31c5dd('0x18')](_0x11e1db);});},'down':function(){}}; \ No newline at end of file +const a991_0x5860=['indexName','fti_mail_messages','migration','addColumn','lastMsgBody','sms_messages','tiny','plainBody','query','query\x20%s','body','queryInterface','then','renameColumn','Removed\x20column\x20%s\x20from\x20%s','medium','prototype','BOOLEAN','ALTER\x20TABLE\x20openchannel_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','fti_mail_interactions','catch','openchannel_messages','changeColumn','../config/logger','users','exports','FULLTEXT','sequence','phoneBarEnableVideoRecording','final','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','ALTER\x20TABLE\x20fax_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','inspect','phoneBarEnableAutomaticScreenRecording','phoneBarEnableScreenRecordingByAgent','subject','indicesType','removeIndex\x20%s\x20%s','enqueue','mail_interactions','fti_sms_messages','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','ALTER\x20TABLE\x20chat_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci','addIndex','finally','fti_openchannel_messages','TEXT','removeIndex','info','chat_messages','screenrecording','sequelize','mail_messages','fti_chat_messages','join','tail','Added\x20column\x20%s\x20to\x20%s'];(function(_0x27dd2b,_0x5860ed){const _0x479d54=function(_0x1d3e30){while(--_0x1d3e30){_0x27dd2b['push'](_0x27dd2b['shift']());}};_0x479d54(++_0x5860ed);}(a991_0x5860,0x14c));const a991_0x479d=function(_0x27dd2b,_0x5860ed){_0x27dd2b=_0x27dd2b-0x0;let _0x479d54=a991_0x5860[_0x27dd2b];return _0x479d54;};const _0x19e6d9=a991_0x479d;'use strict';const util=require('util'),logger=require(_0x19e6d9('0x2d'))(_0x19e6d9('0x18')),Sequence=function(){};Sequence['prototype'][_0x19e6d9('0x3')]=function(_0x1d3e30){const _0x5306a3=_0x19e6d9;this[_0x5306a3('0x14')]=this[_0x5306a3('0x14')]?this['tail'][_0x5306a3('0x9')](_0x1d3e30):_0x1d3e30();};const Migration=function(_0x3accf1){const _0x386808=_0x19e6d9;this[_0x386808('0x21')]=_0x3accf1,this[_0x386808('0x31')]=new Sequence();};Migration['prototype'][_0x19e6d9('0x2c')]=function(_0x5b3f14,_0x34730a,_0x3dddbe){const _0x3df276=_0x19e6d9,_0x38c4de=this;this[_0x3df276('0x31')][_0x3df276('0x3')](function(){const _0x34e165=_0x3df276;return _0x38c4de[_0x34e165('0x21')][_0x34e165('0x2c')](_0x5b3f14,_0x34730a,_0x3dddbe)[_0x34e165('0x22')](function(){const _0x5ba0d4=_0x34e165;logger[_0x5ba0d4('0xd')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x34730a,_0x5b3f14);})[_0x34e165('0x2a')](function(_0x3f3eaf){const _0x7007b9=_0x34e165;logger[_0x7007b9('0xd')](JSON[_0x7007b9('0x36')](_0x3f3eaf));});});},Migration['prototype'][_0x19e6d9('0x19')]=function(_0x38b928,_0x515564,_0x8b120c){const _0x2b48e9=_0x19e6d9,_0x967be8=this;this['sequence'][_0x2b48e9('0x3')](function(){const _0x4e7009=_0x2b48e9;return _0x967be8[_0x4e7009('0x21')]['addColumn'](_0x38b928,_0x515564,_0x8b120c)[_0x4e7009('0x22')](function(){const _0x415d55=_0x4e7009;logger['info'](_0x415d55('0x15'),_0x515564,_0x38b928);})[_0x4e7009('0x2a')](function(_0x3fe4e1){const _0x2bccac=_0x4e7009;logger[_0x2bccac('0xd')](JSON['stringify'](_0x3fe4e1));});});},Migration['prototype'][_0x19e6d9('0x34')]=function(_0x1a1011){const _0x197666=this;this['sequence']['enqueue'](function(){const _0x2d5992=a991_0x479d;return _0x197666['queryInterface'][_0x2d5992('0x34')](_0x1a1011,{'force':!![]})[_0x2d5992('0x22')](function(){const _0x26e0ff=_0x2d5992;logger[_0x26e0ff('0xd')]('table\x20dropped\x20%s',_0x1a1011);})[_0x2d5992('0x2a')](function(_0x4eb728){const _0xfaff30=_0x2d5992;logger[_0xfaff30('0xd')](JSON[_0xfaff30('0x36')](_0x4eb728));});});},Migration['prototype']['addIndex']=function(_0x347422,_0x29980d,_0x31d737){const _0x59c1a3=_0x19e6d9,_0x1ffcfd=this;this['sequence'][_0x59c1a3('0x3')](function(){const _0x57c7e7=_0x59c1a3;return _0x1ffcfd['queryInterface'][_0x57c7e7('0x8')](_0x347422,_0x29980d,{'indexName':_0x31d737[_0x57c7e7('0x16')],'indicesType':_0x31d737['indicesType']})[_0x57c7e7('0x22')](function(){const _0x1eba28=_0x57c7e7;logger[_0x1eba28('0xd')](_0x1eba28('0x35'),_0x347422,_0x29980d[_0x1eba28('0x13')](','),_0x31d737['indexName'],_0x31d737[_0x1eba28('0x1')]);})[_0x57c7e7('0x2a')](function(_0x1b18c6){const _0x188b75=_0x57c7e7;logger[_0x188b75('0xd')](JSON['stringify'](_0x1b18c6));});});},Migration[_0x19e6d9('0x26')][_0x19e6d9('0xc')]=function(_0x535adc,_0x2c2920){const _0x9d6c45=_0x19e6d9,_0x969c0c=this;this['sequence'][_0x9d6c45('0x3')](function(){const _0x2cda45=_0x9d6c45;return _0x969c0c[_0x2cda45('0x21')][_0x2cda45('0xc')](_0x535adc,_0x2c2920)['then'](function(){const _0x397794=_0x2cda45;logger[_0x397794('0xd')](_0x397794('0x2'),_0x535adc,_0x2c2920);})[_0x2cda45('0x2a')](function(_0x4435cf){const _0x18a1a8=_0x2cda45;logger['info'](JSON[_0x18a1a8('0x36')](_0x4435cf));});});},Migration[_0x19e6d9('0x26')][_0x19e6d9('0x1e')]=function(_0x32580b){const _0x148a27=_0x19e6d9,_0x1a3fe3=this;this[_0x148a27('0x31')][_0x148a27('0x3')](function(){const _0x54bf00=_0x148a27;return _0x1a3fe3[_0x54bf00('0x21')][_0x54bf00('0x10')]['query'](_0x32580b)['then'](function(){const _0xc91624=_0x54bf00;logger[_0xc91624('0xd')](_0xc91624('0x1f'),_0x32580b);})['catch'](function(_0x3b0fc9){const _0x3ee645=_0x54bf00;logger[_0x3ee645('0xd')](JSON[_0x3ee645('0x36')](_0x3b0fc9));});});},Migration['prototype']['removeColumn']=function(_0x36c1f6,_0x6f6ae2){const _0x4785ec=_0x19e6d9,_0x389e22=this;this[_0x4785ec('0x31')]['enqueue'](function(){const _0x4bef17=_0x4785ec;return _0x389e22[_0x4bef17('0x21')]['removeColumn'](_0x36c1f6,_0x6f6ae2)[_0x4bef17('0x22')](function(){const _0x2b56e8=_0x4bef17;logger[_0x2b56e8('0xd')](_0x2b56e8('0x24'),_0x6f6ae2,_0x36c1f6);})[_0x4bef17('0x2a')](function(_0x5522a6){const _0x3c524c=_0x4bef17;logger['info'](util[_0x3c524c('0x38')](_0x5522a6,{'showHidden':![],'depth':null}));});});},Migration[_0x19e6d9('0x26')]['renameColumn']=function(_0x2a7ccf,_0x2c2724,_0x5029c6){const _0x11c4cc=_0x19e6d9,_0x4f4445=this;this[_0x11c4cc('0x31')][_0x11c4cc('0x3')](function(){const _0x18f36e=_0x11c4cc;return _0x4f4445['queryInterface'][_0x18f36e('0x23')](_0x2a7ccf,_0x2c2724,_0x5029c6)[_0x18f36e('0x22')](function(){const _0x3d8bd5=_0x18f36e;logger['info'](_0x3d8bd5('0x6'),_0x2c2724,_0x5029c6,_0x2a7ccf);})[_0x18f36e('0x2a')](function(_0xd78661){const _0x5e0055=_0x18f36e;logger[_0x5e0055('0xd')](util[_0x5e0055('0x38')](_0xd78661,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x19e6d9('0x33')]=function(_0x1cc4ec){const _0x1d1c11=_0x19e6d9;this[_0x1d1c11('0x31')][_0x1d1c11('0x3')](function(){return _0x1cc4ec();});},module[_0x19e6d9('0x2f')]={'up':function(_0x23b7fc,_0x1cada5){return new Promise(function(_0x4e4035){const _0x2ef10c=a991_0x479d,_0x3a478a=new Migration(_0x23b7fc);_0x3a478a[_0x2ef10c('0x23')](_0x2ef10c('0x2e'),_0x2ef10c('0x32'),_0x2ef10c('0x3a')),_0x3a478a[_0x2ef10c('0x19')](_0x2ef10c('0x2e'),_0x2ef10c('0x39'),{'type':_0x1cada5[_0x2ef10c('0x27')],'defaultValue':![]}),_0x3a478a[_0x2ef10c('0x19')](_0x2ef10c('0x2e'),_0x2ef10c('0xf'),{'type':_0x1cada5[_0x2ef10c('0x27')],'defaultValue':![]}),_0x3a478a[_0x2ef10c('0x8')](_0x2ef10c('0xe'),[_0x2ef10c('0x20')],{'indexName':_0x2ef10c('0x12'),'indicesType':_0x2ef10c('0x30')}),_0x3a478a[_0x2ef10c('0x8')](_0x2ef10c('0x4'),[_0x2ef10c('0x0'),'to'],{'indexName':_0x2ef10c('0x29'),'indicesType':_0x2ef10c('0x30')}),_0x3a478a[_0x2ef10c('0x19')]('mail_interactions','lastMsgText',{'type':_0x1cada5[_0x2ef10c('0xb')](_0x2ef10c('0x1c')),'after':_0x2ef10c('0x1a')}),_0x3a478a[_0x2ef10c('0x19')](_0x2ef10c('0x11'),_0x2ef10c('0x1d'),{'type':_0x1cada5[_0x2ef10c('0xb')](_0x2ef10c('0x25')),'after':_0x2ef10c('0x20')}),_0x3a478a[_0x2ef10c('0x8')]('mail_messages',[_0x2ef10c('0x1d'),_0x2ef10c('0x0')],{'indexName':_0x2ef10c('0x17'),'indicesType':_0x2ef10c('0x30')}),_0x3a478a['addIndex'](_0x2ef10c('0x2b'),[_0x2ef10c('0x20')],{'indexName':_0x2ef10c('0xa'),'indicesType':'FULLTEXT'}),_0x3a478a[_0x2ef10c('0x8')](_0x2ef10c('0x1b'),[_0x2ef10c('0x20')],{'indexName':_0x2ef10c('0x5'),'indicesType':_0x2ef10c('0x30')}),_0x3a478a[_0x2ef10c('0x1e')](_0x2ef10c('0x7')),_0x3a478a[_0x2ef10c('0x1e')](_0x2ef10c('0x37')),_0x3a478a[_0x2ef10c('0x1e')]('ALTER\x20TABLE\x20mail_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0x3a478a[_0x2ef10c('0x1e')](_0x2ef10c('0x28')),_0x3a478a[_0x2ef10c('0x1e')]('ALTER\x20TABLE\x20sms_applications\x20CONVERT\x20TO\x20CHARACTER\x20SET\x20utf8mb4\x20COLLATE\x20utf8mb4_unicode_ci'),_0x3a478a[_0x2ef10c('0x33')](_0x4e4035);});},'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 90ce8aa..1304c1d 100644 --- a/server/migrations/2.4.1.js +++ b/server/migrations/2.4.1.js @@ -1 +1 @@ -const a992_0x2882=['indexName','final','removeColumn','catch','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','query','indicesType','prototype','sequelize','tail','info','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','sequence','enqueue','Added\x20column\x20%s\x20to\x20%s','removeIndex\x20%s\x20%s','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex','finally','exports','inspect','migration','Removed\x20column\x20%s\x20from\x20%s','stringify','util','renameColumn','../config/logger','queryInterface','then'];(function(_0x4875a8,_0x2882f9){const _0xd4a8e3=function(_0x2fa6e5){while(--_0x2fa6e5){_0x4875a8['push'](_0x4875a8['shift']());}};_0xd4a8e3(++_0x2882f9);}(a992_0x2882,0x198));const a992_0xd4a8=function(_0x4875a8,_0x2882f9){_0x4875a8=_0x4875a8-0x0;let _0xd4a8e3=a992_0x2882[_0x4875a8];return _0xd4a8e3;};const _0x41a821=a992_0xd4a8;'use strict';const util=require(_0x41a821('0x3')),logger=require(_0x41a821('0x5'))(_0x41a821('0x0')),Sequence=function(){};Sequence[_0x41a821('0x10')][_0x41a821('0x17')]=function(_0x2fa6e5){const _0x163527=_0x41a821;this[_0x163527('0x12')]=this[_0x163527('0x12')]?this[_0x163527('0x12')][_0x163527('0x1d')](_0x2fa6e5):_0x2fa6e5();};const Migration=function(_0x2273dd){const _0x15221f=_0x41a821;this[_0x15221f('0x6')]=_0x2273dd,this[_0x15221f('0x16')]=new Sequence();};Migration[_0x41a821('0x10')][_0x41a821('0xc')]=function(_0x5b8c0c,_0x19a47b,_0x1f2bbe){const _0x100efd=_0x41a821,_0x5817d7=this;this['sequence'][_0x100efd('0x17')](function(){const _0x4792c2=_0x100efd;return _0x5817d7[_0x4792c2('0x6')][_0x4792c2('0xc')](_0x5b8c0c,_0x19a47b,_0x1f2bbe)[_0x4792c2('0x7')](function(){const _0x1348a5=_0x4792c2;logger[_0x1348a5('0x13')](_0x1348a5('0x14'),_0x19a47b,_0x5b8c0c);})[_0x4792c2('0xb')](function(_0x3e5a02){const _0x3ea6f4=_0x4792c2;logger[_0x3ea6f4('0x13')](JSON[_0x3ea6f4('0x2')](_0x3e5a02));});});},Migration['prototype'][_0x41a821('0x15')]=function(_0x4b93fa,_0x372c0b,_0x1cdc59){const _0x226f6=_0x41a821,_0x3ea4d0=this;this[_0x226f6('0x16')]['enqueue'](function(){const _0x416c85=_0x226f6;return _0x3ea4d0['queryInterface'][_0x416c85('0x15')](_0x4b93fa,_0x372c0b,_0x1cdc59)[_0x416c85('0x7')](function(){const _0x534c23=_0x416c85;logger['info'](_0x534c23('0x18'),_0x372c0b,_0x4b93fa);})['catch'](function(_0x121141){const _0xcf11cc=_0x416c85;logger[_0xcf11cc('0x13')](JSON['stringify'](_0x121141));});});},Migration[_0x41a821('0x10')][_0x41a821('0x1a')]=function(_0x276ecb){const _0x102f48=_0x41a821,_0x1bf382=this;this[_0x102f48('0x16')][_0x102f48('0x17')](function(){const _0x5207de=_0x102f48;return _0x1bf382[_0x5207de('0x6')][_0x5207de('0x1a')](_0x276ecb,{'force':!![]})[_0x5207de('0x7')](function(){logger['info']('table\x20dropped\x20%s',_0x276ecb);})['catch'](function(_0x474ee5){logger['info'](JSON['stringify'](_0x474ee5));});});},Migration[_0x41a821('0x10')]['addIndex']=function(_0x509ddf,_0x4511a6,_0x124004){const _0x15bd9e=_0x41a821,_0x10773b=this;this['sequence'][_0x15bd9e('0x17')](function(){const _0xac155=_0x15bd9e;return _0x10773b['queryInterface']['addIndex'](_0x509ddf,_0x4511a6,{'indexName':_0x124004[_0xac155('0x8')],'indicesType':_0x124004['indicesType']})[_0xac155('0x7')](function(){const _0x4d8ef3=_0xac155;logger[_0x4d8ef3('0x13')](_0x4d8ef3('0xd'),_0x509ddf,_0x4511a6['join'](','),_0x124004[_0x4d8ef3('0x8')],_0x124004[_0x4d8ef3('0xf')]);})[_0xac155('0xb')](function(_0xad1e52){const _0x425096=_0xac155;logger[_0x425096('0x13')](JSON[_0x425096('0x2')](_0xad1e52));});});},Migration[_0x41a821('0x10')][_0x41a821('0x1c')]=function(_0x5ba038,_0x2c0732){const _0x24b1b4=_0x41a821,_0x208951=this;this[_0x24b1b4('0x16')]['enqueue'](function(){const _0x1e986d=_0x24b1b4;return _0x208951[_0x1e986d('0x6')]['removeIndex'](_0x5ba038,_0x2c0732)[_0x1e986d('0x7')](function(){const _0x1e2505=_0x1e986d;logger[_0x1e2505('0x13')](_0x1e2505('0x19'),_0x5ba038,_0x2c0732);})[_0x1e986d('0xb')](function(_0x338d8c){const _0x3dd504=_0x1e986d;logger[_0x3dd504('0x13')](JSON['stringify'](_0x338d8c));});});},Migration[_0x41a821('0x10')]['query']=function(_0xaec915){const _0x4a5e6d=_0x41a821,_0x568af2=this;this[_0x4a5e6d('0x16')][_0x4a5e6d('0x17')](function(){const _0x4e6422=_0x4a5e6d;return _0x568af2[_0x4e6422('0x6')][_0x4e6422('0x11')][_0x4e6422('0xe')](_0xaec915)['then'](function(){const _0x1ae27d=_0x4e6422;logger[_0x1ae27d('0x13')]('query\x20%s',_0xaec915);})[_0x4e6422('0xb')](function(_0x27df65){const _0x154394=_0x4e6422;logger[_0x154394('0x13')](JSON['stringify'](_0x27df65));});});},Migration['prototype'][_0x41a821('0xa')]=function(_0x11292a,_0x363c6a){const _0x53c4b7=_0x41a821,_0x198747=this;this['sequence'][_0x53c4b7('0x17')](function(){const _0x332ce2=_0x53c4b7;return _0x198747[_0x332ce2('0x6')][_0x332ce2('0xa')](_0x11292a,_0x363c6a)[_0x332ce2('0x7')](function(){const _0x7fc754=_0x332ce2;logger[_0x7fc754('0x13')](_0x7fc754('0x1'),_0x363c6a,_0x11292a);})[_0x332ce2('0xb')](function(_0x6df4c1){const _0xecf9d=_0x332ce2;logger[_0xecf9d('0x13')](util[_0xecf9d('0x1f')](_0x6df4c1,{'showHidden':![],'depth':null}));});});},Migration[_0x41a821('0x10')]['renameColumn']=function(_0x2c313b,_0x3a8384,_0x23cca3){const _0x47c546=_0x41a821,_0x3da833=this;this[_0x47c546('0x16')]['enqueue'](function(){const _0x26102f=_0x47c546;return _0x3da833[_0x26102f('0x6')][_0x26102f('0x4')](_0x2c313b,_0x3a8384,_0x23cca3)[_0x26102f('0x7')](function(){const _0x3c07ee=_0x26102f;logger[_0x3c07ee('0x13')](_0x3c07ee('0x1b'),_0x3a8384,_0x23cca3,_0x2c313b);})[_0x26102f('0xb')](function(_0x179aae){const _0x46f710=_0x26102f;logger[_0x46f710('0x13')](util[_0x46f710('0x1f')](_0x179aae,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x41a821('0x9')]=function(_0xd639b9){const _0x4e779c=_0x41a821;this['sequence'][_0x4e779c('0x17')](function(){return _0xd639b9();});},module[_0x41a821('0x1e')]={'up':function(_0x5475d0){return new Promise(function(_0x72f1d7){const _0x1c0163=a992_0xd4a8,_0x2cdc97=new Migration(_0x5475d0);_0x2cdc97[_0x1c0163('0x9')](_0x72f1d7);});},'down':function(){}}; \ No newline at end of file +const a992_0x56cb=['sequelize','table\x20dropped\x20%s','query','finally','migration','enqueue','addIndex','util','join','stringify','Removed\x20column\x20%s\x20from\x20%s','sequence','indicesType','../config/logger','queryInterface','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','inspect','changeColumn','final','then','tail','catch','renameColumn','removeIndex','exports','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','prototype','addColumn','info'];(function(_0x216c8b,_0x56cb4b){const _0x3553cd=function(_0x2b881b){while(--_0x2b881b){_0x216c8b['push'](_0x216c8b['shift']());}};_0x3553cd(++_0x56cb4b);}(a992_0x56cb,0x1b2));const a992_0x3553=function(_0x216c8b,_0x56cb4b){_0x216c8b=_0x216c8b-0x0;let _0x3553cd=a992_0x56cb[_0x216c8b];return _0x3553cd;};const _0x3771c2=a992_0x3553;'use strict';const util=require(_0x3771c2('0x15')),logger=require(_0x3771c2('0x1b'))(_0x3771c2('0x12')),Sequence=function(){};Sequence['prototype'][_0x3771c2('0x13')]=function(_0x2b881b){const _0x5f83b9=_0x3771c2;this[_0x5f83b9('0x4')]=this['tail']?this[_0x5f83b9('0x4')][_0x5f83b9('0x11')](_0x2b881b):_0x2b881b();};const Migration=function(_0x3de238){const _0x2a6660=_0x3771c2;this[_0x2a6660('0x1c')]=_0x3de238,this['sequence']=new Sequence();};Migration[_0x3771c2('0xb')][_0x3771c2('0x1')]=function(_0x4fc51c,_0x3a4219,_0x300d3f){const _0x1ee530=_0x3771c2,_0x36b825=this;this[_0x1ee530('0x19')][_0x1ee530('0x13')](function(){const _0x4110df=_0x1ee530;return _0x36b825[_0x4110df('0x1c')][_0x4110df('0x1')](_0x4fc51c,_0x3a4219,_0x300d3f)[_0x4110df('0x3')](function(){const _0x4978d6=_0x4110df;logger[_0x4978d6('0xd')](_0x4978d6('0x1e'),_0x3a4219,_0x4fc51c);})[_0x4110df('0x5')](function(_0x5d3daf){const _0x56d96e=_0x4110df;logger[_0x56d96e('0xd')](JSON[_0x56d96e('0x17')](_0x5d3daf));});});},Migration['prototype'][_0x3771c2('0xc')]=function(_0x3ea63e,_0x5e6017,_0x4417da){const _0x5176ff=_0x3771c2,_0x8aebbf=this;this[_0x5176ff('0x19')][_0x5176ff('0x13')](function(){const _0x2fb15f=_0x5176ff;return _0x8aebbf['queryInterface'][_0x2fb15f('0xc')](_0x3ea63e,_0x5e6017,_0x4417da)[_0x2fb15f('0x3')](function(){const _0x5474cb=_0x2fb15f;logger[_0x5474cb('0xd')]('Added\x20column\x20%s\x20to\x20%s',_0x5e6017,_0x3ea63e);})[_0x2fb15f('0x5')](function(_0x1da726){logger['info'](JSON['stringify'](_0x1da726));});});},Migration[_0x3771c2('0xb')][_0x3771c2('0x1d')]=function(_0x1461ca){const _0x2de492=_0x3771c2,_0x1814f1=this;this[_0x2de492('0x19')][_0x2de492('0x13')](function(){const _0x47f753=_0x2de492;return _0x1814f1[_0x47f753('0x1c')][_0x47f753('0x1d')](_0x1461ca,{'force':!![]})[_0x47f753('0x3')](function(){const _0x46c828=_0x47f753;logger['info'](_0x46c828('0xf'),_0x1461ca);})[_0x47f753('0x5')](function(_0x4b62f){const _0x4d5486=_0x47f753;logger[_0x4d5486('0xd')](JSON[_0x4d5486('0x17')](_0x4b62f));});});},Migration[_0x3771c2('0xb')]['addIndex']=function(_0x479f05,_0x58f60a,_0x4bfbf7){const _0x39f646=_0x3771c2,_0x46a2ed=this;this[_0x39f646('0x19')]['enqueue'](function(){const _0x4a958f=_0x39f646;return _0x46a2ed[_0x4a958f('0x1c')][_0x4a958f('0x14')](_0x479f05,_0x58f60a,{'indexName':_0x4bfbf7['indexName'],'indicesType':_0x4bfbf7[_0x4a958f('0x1a')]})[_0x4a958f('0x3')](function(){const _0x5d3af0=_0x4a958f;logger[_0x5d3af0('0xd')](_0x5d3af0('0x9'),_0x479f05,_0x58f60a[_0x5d3af0('0x16')](','),_0x4bfbf7['indexName'],_0x4bfbf7[_0x5d3af0('0x1a')]);})['catch'](function(_0x9df869){const _0x56d19b=_0x4a958f;logger[_0x56d19b('0xd')](JSON[_0x56d19b('0x17')](_0x9df869));});});},Migration[_0x3771c2('0xb')][_0x3771c2('0x7')]=function(_0x13875b,_0x46fb75){const _0x5cebdb=_0x3771c2,_0x32b8a0=this;this[_0x5cebdb('0x19')][_0x5cebdb('0x13')](function(){const _0x5caf77=_0x5cebdb;return _0x32b8a0[_0x5caf77('0x1c')]['removeIndex'](_0x13875b,_0x46fb75)[_0x5caf77('0x3')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x13875b,_0x46fb75);})[_0x5caf77('0x5')](function(_0x11532b){const _0x2ff851=_0x5caf77;logger[_0x2ff851('0xd')](JSON[_0x2ff851('0x17')](_0x11532b));});});},Migration[_0x3771c2('0xb')][_0x3771c2('0x10')]=function(_0x32df5e){const _0xb1f71f=_0x3771c2,_0x503b34=this;this['sequence'][_0xb1f71f('0x13')](function(){const _0x408daf=_0xb1f71f;return _0x503b34[_0x408daf('0x1c')][_0x408daf('0xe')][_0x408daf('0x10')](_0x32df5e)[_0x408daf('0x3')](function(){const _0x34707c=_0x408daf;logger[_0x34707c('0xd')](_0x34707c('0x1f'),_0x32df5e);})[_0x408daf('0x5')](function(_0x12f08c){const _0x1e3df5=_0x408daf;logger['info'](JSON[_0x1e3df5('0x17')](_0x12f08c));});});},Migration[_0x3771c2('0xb')][_0x3771c2('0xa')]=function(_0x5611f1,_0x157443){const _0x5c4412=_0x3771c2,_0x31420d=this;this[_0x5c4412('0x19')][_0x5c4412('0x13')](function(){const _0x3bfba7=_0x5c4412;return _0x31420d['queryInterface']['removeColumn'](_0x5611f1,_0x157443)[_0x3bfba7('0x3')](function(){const _0x12525e=_0x3bfba7;logger['info'](_0x12525e('0x18'),_0x157443,_0x5611f1);})[_0x3bfba7('0x5')](function(_0x8cbd73){const _0x3db7d3=_0x3bfba7;logger[_0x3db7d3('0xd')](util[_0x3db7d3('0x0')](_0x8cbd73,{'showHidden':![],'depth':null}));});});},Migration[_0x3771c2('0xb')][_0x3771c2('0x6')]=function(_0x288881,_0x5b30ab,_0x12cd72){const _0x538218=_0x3771c2,_0x58476f=this;this[_0x538218('0x19')][_0x538218('0x13')](function(){const _0x5cd40b=_0x538218;return _0x58476f[_0x5cd40b('0x1c')][_0x5cd40b('0x6')](_0x288881,_0x5b30ab,_0x12cd72)[_0x5cd40b('0x3')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5b30ab,_0x12cd72,_0x288881);})[_0x5cd40b('0x5')](function(_0xa813d7){const _0x397a42=_0x5cd40b;logger[_0x397a42('0xd')](util[_0x397a42('0x0')](_0xa813d7,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3771c2('0x2')]=function(_0xa52dea){const _0x38aea5=_0x3771c2;this[_0x38aea5('0x19')][_0x38aea5('0x13')](function(){return _0xa52dea();});},module[_0x3771c2('0x8')]={'up':function(_0x1a59d6){return new Promise(function(_0x396ea4){const _0x62b69d=a992_0x3553,_0x4f06d2=new Migration(_0x1a59d6);_0x4f06d2[_0x62b69d('0x2')](_0x396ea4);});},'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 62d4db3..3e8ebe3 100644 --- a/server/migrations/2.4.10.js +++ b/server/migrations/2.4.10.js @@ -1 +1 @@ -const a993_0x4a9d=['favicon','catch','chat_interactions','util','defaultFavicon','removeIndex\x20%s\x20%s','finally','addIndex','sequence','removeColumn','final','Added\x20column\x20%s\x20to\x20%s','queryInterface','changeColumn','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','inspect','addColumn','../config/logger','enqueue','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','indexName','referer','exports','dropTable','then','sequelize','query','removeIndex','indicesType','settings','Removed\x20column\x20%s\x20from\x20%s','prototype','TEXT','tail','migration','query\x20%s'];(function(_0x29afd8,_0x4a9d02){const _0x589a3e=function(_0x509e3b){while(--_0x509e3b){_0x29afd8['push'](_0x29afd8['shift']());}};_0x589a3e(++_0x4a9d02);}(a993_0x4a9d,0x14a));const a993_0x589a=function(_0x29afd8,_0x4a9d02){_0x29afd8=_0x29afd8-0x0;let _0x589a3e=a993_0x4a9d[_0x29afd8];return _0x589a3e;};const _0x1489b9=a993_0x589a;'use strict';const util=require(_0x1489b9('0xf')),logger=require(_0x1489b9('0x1e'))(_0x1489b9('0xa')),Sequence=function(){};Sequence[_0x1489b9('0x7')][_0x1489b9('0x1f')]=function(_0x509e3b){const _0x229773=_0x1489b9;this['tail']=this['tail']?this[_0x229773('0x9')][_0x229773('0x12')](_0x509e3b):_0x509e3b();};const Migration=function(_0x1c719d){const _0x61515c=_0x1489b9;this['queryInterface']=_0x1c719d,this[_0x61515c('0x14')]=new Sequence();};Migration[_0x1489b9('0x7')][_0x1489b9('0x19')]=function(_0x451487,_0x1920bd,_0x364159){const _0x9e9bef=_0x1489b9,_0x5199af=this;this['sequence'][_0x9e9bef('0x1f')](function(){const _0x545e94=_0x9e9bef;return _0x5199af['queryInterface']['changeColumn'](_0x451487,_0x1920bd,_0x364159)[_0x545e94('0x0')](function(){const _0x49eba9=_0x545e94;logger[_0x49eba9('0x20')](_0x49eba9('0x1a'),_0x1920bd,_0x451487);})[_0x545e94('0xd')](function(_0x30611e){const _0x2382a9=_0x545e94;logger[_0x2382a9('0x20')](JSON[_0x2382a9('0x1b')](_0x30611e));});});},Migration[_0x1489b9('0x7')]['addColumn']=function(_0x3fb08c,_0x2331a7,_0x3b22d8){const _0x464317=_0x1489b9,_0x2a5a60=this;this[_0x464317('0x14')][_0x464317('0x1f')](function(){const _0x44dd74=_0x464317;return _0x2a5a60[_0x44dd74('0x18')][_0x44dd74('0x1d')](_0x3fb08c,_0x2331a7,_0x3b22d8)[_0x44dd74('0x0')](function(){const _0x1e4195=_0x44dd74;logger[_0x1e4195('0x20')](_0x1e4195('0x17'),_0x2331a7,_0x3fb08c);})[_0x44dd74('0xd')](function(_0x156049){const _0x3d0fd2=_0x44dd74;logger[_0x3d0fd2('0x20')](JSON[_0x3d0fd2('0x1b')](_0x156049));});});},Migration[_0x1489b9('0x7')][_0x1489b9('0x25')]=function(_0x185f90){const _0x493bca=_0x1489b9,_0x1f40f3=this;this[_0x493bca('0x14')][_0x493bca('0x1f')](function(){const _0x1cf878=_0x493bca;return _0x1f40f3[_0x1cf878('0x18')][_0x1cf878('0x25')](_0x185f90,{'force':!![]})[_0x1cf878('0x0')](function(){logger['info']('table\x20dropped\x20%s',_0x185f90);})['catch'](function(_0x108840){const _0x1703c0=_0x1cf878;logger[_0x1703c0('0x20')](JSON[_0x1703c0('0x1b')](_0x108840));});});},Migration[_0x1489b9('0x7')]['addIndex']=function(_0x177c38,_0x4d960f,_0x17dd8c){const _0x16cb46=_0x1489b9,_0x524982=this;this[_0x16cb46('0x14')][_0x16cb46('0x1f')](function(){const _0x5f0683=_0x16cb46;return _0x524982[_0x5f0683('0x18')][_0x5f0683('0x13')](_0x177c38,_0x4d960f,{'indexName':_0x17dd8c[_0x5f0683('0x22')],'indicesType':_0x17dd8c[_0x5f0683('0x4')]})[_0x5f0683('0x0')](function(){const _0x475868=_0x5f0683;logger[_0x475868('0x20')](_0x475868('0x21'),_0x177c38,_0x4d960f['join'](','),_0x17dd8c[_0x475868('0x22')],_0x17dd8c['indicesType']);})[_0x5f0683('0xd')](function(_0x7ee44f){const _0x157723=_0x5f0683;logger[_0x157723('0x20')](JSON[_0x157723('0x1b')](_0x7ee44f));});});},Migration[_0x1489b9('0x7')][_0x1489b9('0x3')]=function(_0xf58453,_0x2dcd9d){const _0x57df0b=_0x1489b9,_0x4ffb4c=this;this['sequence'][_0x57df0b('0x1f')](function(){const _0x432a71=_0x57df0b;return _0x4ffb4c[_0x432a71('0x18')][_0x432a71('0x3')](_0xf58453,_0x2dcd9d)[_0x432a71('0x0')](function(){const _0x1b3549=_0x432a71;logger[_0x1b3549('0x20')](_0x1b3549('0x11'),_0xf58453,_0x2dcd9d);})[_0x432a71('0xd')](function(_0x4f0afa){const _0x9d97f7=_0x432a71;logger[_0x9d97f7('0x20')](JSON[_0x9d97f7('0x1b')](_0x4f0afa));});});},Migration['prototype'][_0x1489b9('0x2')]=function(_0x442f47){const _0x553ec3=_0x1489b9,_0x4e6ebd=this;this[_0x553ec3('0x14')][_0x553ec3('0x1f')](function(){const _0xb8c6fd=_0x553ec3;return _0x4e6ebd[_0xb8c6fd('0x18')][_0xb8c6fd('0x1')]['query'](_0x442f47)['then'](function(){const _0x407dcb=_0xb8c6fd;logger['info'](_0x407dcb('0xb'),_0x442f47);})[_0xb8c6fd('0xd')](function(_0x862073){const _0x47d9bc=_0xb8c6fd;logger[_0x47d9bc('0x20')](JSON[_0x47d9bc('0x1b')](_0x862073));});});},Migration[_0x1489b9('0x7')]['removeColumn']=function(_0x5a9048,_0x5e2715){const _0x115e01=_0x1489b9,_0x18ed09=this;this['sequence'][_0x115e01('0x1f')](function(){const _0x3ab54d=_0x115e01;return _0x18ed09[_0x3ab54d('0x18')][_0x3ab54d('0x15')](_0x5a9048,_0x5e2715)[_0x3ab54d('0x0')](function(){const _0x190272=_0x3ab54d;logger[_0x190272('0x20')](_0x190272('0x6'),_0x5e2715,_0x5a9048);})['catch'](function(_0x3accd8){const _0x31c547=_0x3ab54d;logger[_0x31c547('0x20')](util[_0x31c547('0x1c')](_0x3accd8,{'showHidden':![],'depth':null}));});});},Migration[_0x1489b9('0x7')]['renameColumn']=function(_0x2d108f,_0x1c413b,_0x7f4f){const _0x4b024b=_0x1489b9,_0x473a12=this;this[_0x4b024b('0x14')]['enqueue'](function(){const _0xaa4f13=_0x4b024b;return _0x473a12[_0xaa4f13('0x18')]['renameColumn'](_0x2d108f,_0x1c413b,_0x7f4f)[_0xaa4f13('0x0')](function(){const _0xd95f13=_0xaa4f13;logger[_0xd95f13('0x20')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1c413b,_0x7f4f,_0x2d108f);})[_0xaa4f13('0xd')](function(_0x2e86eb){const _0x409cf4=_0xaa4f13;logger[_0x409cf4('0x20')](util[_0x409cf4('0x1c')](_0x2e86eb,{'showHidden':![],'depth':null}));});});},Migration[_0x1489b9('0x7')][_0x1489b9('0x16')]=function(_0x3b34b3){const _0x30d975=_0x1489b9;this[_0x30d975('0x14')]['enqueue'](function(){return _0x3b34b3();});},module[_0x1489b9('0x24')]={'up':function(_0x5cce63,_0x1e0e20){return new Promise(function(_0x3fe26b){const _0x5cd3ce=a993_0x589a,_0x1d58b8=new Migration(_0x5cce63);_0x1d58b8[_0x5cd3ce('0x19')](_0x5cd3ce('0xe'),_0x5cd3ce('0x23'),{'type':_0x1e0e20[_0x5cd3ce('0x8')]}),_0x1d58b8['addColumn'](_0x5cd3ce('0x5'),_0x5cd3ce('0xc'),{'type':_0x1e0e20['STRING']}),_0x1d58b8['addColumn'](_0x5cd3ce('0x5'),_0x5cd3ce('0x10'),{'type':_0x1e0e20['BOOLEAN'],'defaultValue':!![]}),_0x1d58b8[_0x5cd3ce('0x16')](_0x3fe26b);});},'down':function(){}}; \ No newline at end of file +const a993_0x3f95=['tail','then','sequence','renameColumn','prototype','migration','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequelize','enqueue','indicesType','final','changeColumn','chat_interactions','query','../config/logger','removeColumn','info','TEXT','STRING','table\x20dropped\x20%s','addIndex','addColumn','referer','join','stringify','exports','queryInterface','dropTable','inspect','Added\x20column\x20%s\x20to\x20%s','indexName','removeIndex\x20%s\x20%s','catch','settings','favicon','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x429e68,_0x3f9582){const _0x3a99e2=function(_0x3dbee1){while(--_0x3dbee1){_0x429e68['push'](_0x429e68['shift']());}};_0x3a99e2(++_0x3f9582);}(a993_0x3f95,0x76));const a993_0x3a99=function(_0x429e68,_0x3f9582){_0x429e68=_0x429e68-0x0;let _0x3a99e2=a993_0x3f95[_0x429e68];return _0x3a99e2;};const _0x123813=a993_0x3a99;'use strict';const util=require('util'),logger=require(_0x123813('0x4'))(_0x123813('0x1f')),Sequence=function(){};Sequence[_0x123813('0x1e')][_0x123813('0x22')]=function(_0x3dbee1){const _0x353db4=_0x123813;this[_0x353db4('0x1a')]=this[_0x353db4('0x1a')]?this[_0x353db4('0x1a')]['finally'](_0x3dbee1):_0x3dbee1();};const Migration=function(_0xf3ad5a){const _0x338f05=_0x123813;this['queryInterface']=_0xf3ad5a,this[_0x338f05('0x1c')]=new Sequence();};Migration[_0x123813('0x1e')]['changeColumn']=function(_0x503712,_0x5481c6,_0x5cff51){const _0x47d079=_0x123813,_0x423063=this;this[_0x47d079('0x1c')][_0x47d079('0x22')](function(){const _0x455928=_0x47d079;return _0x423063['queryInterface']['changeColumn'](_0x503712,_0x5481c6,_0x5cff51)[_0x455928('0x1b')](function(){const _0x193525=_0x455928;logger[_0x193525('0x6')](_0x193525('0x19'),_0x5481c6,_0x503712);})[_0x455928('0x16')](function(_0x415e0e){const _0x2d9cdf=_0x455928;logger[_0x2d9cdf('0x6')](JSON[_0x2d9cdf('0xe')](_0x415e0e));});});},Migration[_0x123813('0x1e')][_0x123813('0xb')]=function(_0xdb4e80,_0x4b7df9,_0x382c0b){const _0x3fd567=_0x123813,_0x422530=this;this[_0x3fd567('0x1c')][_0x3fd567('0x22')](function(){const _0x866b89=_0x3fd567;return _0x422530[_0x866b89('0x10')][_0x866b89('0xb')](_0xdb4e80,_0x4b7df9,_0x382c0b)['then'](function(){const _0x1beddf=_0x866b89;logger['info'](_0x1beddf('0x13'),_0x4b7df9,_0xdb4e80);})[_0x866b89('0x16')](function(_0x18cd75){const _0x442b6c=_0x866b89;logger['info'](JSON[_0x442b6c('0xe')](_0x18cd75));});});},Migration[_0x123813('0x1e')][_0x123813('0x11')]=function(_0x330c8d){const _0x202c8d=_0x123813,_0x8e1ca1=this;this[_0x202c8d('0x1c')]['enqueue'](function(){const _0x1ac963=_0x202c8d;return _0x8e1ca1[_0x1ac963('0x10')][_0x1ac963('0x11')](_0x330c8d,{'force':!![]})[_0x1ac963('0x1b')](function(){const _0x37d6c0=_0x1ac963;logger['info'](_0x37d6c0('0x9'),_0x330c8d);})[_0x1ac963('0x16')](function(_0x515db3){const _0x108afe=_0x1ac963;logger[_0x108afe('0x6')](JSON[_0x108afe('0xe')](_0x515db3));});});},Migration['prototype'][_0x123813('0xa')]=function(_0x118a71,_0x1119aa,_0x1aa0cc){const _0x2546a9=_0x123813,_0x2d8416=this;this[_0x2546a9('0x1c')][_0x2546a9('0x22')](function(){const _0x597da0=_0x2546a9;return _0x2d8416[_0x597da0('0x10')][_0x597da0('0xa')](_0x118a71,_0x1119aa,{'indexName':_0x1aa0cc[_0x597da0('0x14')],'indicesType':_0x1aa0cc[_0x597da0('0x23')]})['then'](function(){const _0x305310=_0x597da0;logger[_0x305310('0x6')](_0x305310('0x20'),_0x118a71,_0x1119aa[_0x305310('0xd')](','),_0x1aa0cc[_0x305310('0x14')],_0x1aa0cc['indicesType']);})[_0x597da0('0x16')](function(_0x18785a){const _0x489385=_0x597da0;logger[_0x489385('0x6')](JSON['stringify'](_0x18785a));});});},Migration['prototype']['removeIndex']=function(_0x45097b,_0x3e3ab2){const _0x249475=this;this['sequence']['enqueue'](function(){const _0x282be8=a993_0x3a99;return _0x249475['queryInterface']['removeIndex'](_0x45097b,_0x3e3ab2)[_0x282be8('0x1b')](function(){const _0x3107bf=_0x282be8;logger[_0x3107bf('0x6')](_0x3107bf('0x15'),_0x45097b,_0x3e3ab2);})[_0x282be8('0x16')](function(_0x77dab){const _0x30eac5=_0x282be8;logger[_0x30eac5('0x6')](JSON[_0x30eac5('0xe')](_0x77dab));});});},Migration['prototype'][_0x123813('0x3')]=function(_0x2f75a8){const _0x39d696=_0x123813,_0x472939=this;this[_0x39d696('0x1c')][_0x39d696('0x22')](function(){const _0x127b88=_0x39d696;return _0x472939['queryInterface'][_0x127b88('0x21')]['query'](_0x2f75a8)[_0x127b88('0x1b')](function(){const _0x529bc3=_0x127b88;logger[_0x529bc3('0x6')]('query\x20%s',_0x2f75a8);})[_0x127b88('0x16')](function(_0x258819){const _0x17ec98=_0x127b88;logger[_0x17ec98('0x6')](JSON[_0x17ec98('0xe')](_0x258819));});});},Migration[_0x123813('0x1e')][_0x123813('0x5')]=function(_0x19f9c5,_0x589b18){const _0x24dd53=_0x123813,_0x3d04c9=this;this[_0x24dd53('0x1c')][_0x24dd53('0x22')](function(){const _0x25012f=_0x24dd53;return _0x3d04c9['queryInterface'][_0x25012f('0x5')](_0x19f9c5,_0x589b18)[_0x25012f('0x1b')](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x589b18,_0x19f9c5);})['catch'](function(_0x3371fc){const _0x5be33c=_0x25012f;logger[_0x5be33c('0x6')](util[_0x5be33c('0x12')](_0x3371fc,{'showHidden':![],'depth':null}));});});},Migration[_0x123813('0x1e')][_0x123813('0x1d')]=function(_0x5e5476,_0x2445aa,_0x5b06b2){const _0x570dd5=_0x123813,_0x41b1ba=this;this[_0x570dd5('0x1c')][_0x570dd5('0x22')](function(){const _0x55e2ea=_0x570dd5;return _0x41b1ba['queryInterface'][_0x55e2ea('0x1d')](_0x5e5476,_0x2445aa,_0x5b06b2)[_0x55e2ea('0x1b')](function(){const _0x49983c=_0x55e2ea;logger[_0x49983c('0x6')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2445aa,_0x5b06b2,_0x5e5476);})[_0x55e2ea('0x16')](function(_0x422d01){const _0x296682=_0x55e2ea;logger[_0x296682('0x6')](util[_0x296682('0x12')](_0x422d01,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x123813('0x0')]=function(_0x1e35ff){const _0x5ac7f3=_0x123813;this['sequence'][_0x5ac7f3('0x22')](function(){return _0x1e35ff();});},module[_0x123813('0xf')]={'up':function(_0x81d523,_0x512081){return new Promise(function(_0x4756a8){const _0x4e876d=a993_0x3a99,_0x507a3f=new Migration(_0x81d523);_0x507a3f[_0x4e876d('0x1')](_0x4e876d('0x2'),_0x4e876d('0xc'),{'type':_0x512081[_0x4e876d('0x7')]}),_0x507a3f[_0x4e876d('0xb')]('settings',_0x4e876d('0x18'),{'type':_0x512081[_0x4e876d('0x8')]}),_0x507a3f['addColumn'](_0x4e876d('0x17'),'defaultFavicon',{'type':_0x512081['BOOLEAN'],'defaultValue':!![]}),_0x507a3f['final'](_0x4756a8);});},'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 e52ba32..9352f7e 100644 --- a/server/migrations/2.4.11.js +++ b/server/migrations/2.4.11.js @@ -1 +1 @@ -const a994_0x36e6=['catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','enqueue','sequelize','sequence','dropTable','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','table\x20dropped\x20%s','final','prototype','stringify','exports','queryInterface','removeColumn','addColumn','query','../config/logger','addIndex','then','finally','removeIndex','Removed\x20column\x20%s\x20from\x20%s','renameColumn','util','indicesType','indexName','removeIndex\x20%s\x20%s','tail','info','changeColumn','Added\x20column\x20%s\x20to\x20%s'];(function(_0x3a1392,_0x36e68c){const _0x2bea27=function(_0x485ea3){while(--_0x485ea3){_0x3a1392['push'](_0x3a1392['shift']());}};_0x2bea27(++_0x36e68c);}(a994_0x36e6,0x98));const a994_0x2bea=function(_0x3a1392,_0x36e68c){_0x3a1392=_0x3a1392-0x0;let _0x2bea27=a994_0x36e6[_0x3a1392];return _0x2bea27;};const _0x15d4f8=a994_0x2bea;'use strict';const util=require(_0x15d4f8('0x5')),logger=require(_0x15d4f8('0x1f'))(_0x15d4f8('0x15')),Sequence=function(){};Sequence[_0x15d4f8('0x18')]['enqueue']=function(_0x485ea3){const _0x70df03=_0x15d4f8;this[_0x70df03('0x9')]=this[_0x70df03('0x9')]?this[_0x70df03('0x9')][_0x70df03('0x1')](_0x485ea3):_0x485ea3();};const Migration=function(_0x4e0569){const _0x54b3d9=_0x15d4f8;this[_0x54b3d9('0x1b')]=_0x4e0569,this[_0x54b3d9('0x11')]=new Sequence();};Migration[_0x15d4f8('0x18')][_0x15d4f8('0xb')]=function(_0x5cb9a4,_0x1b92c9,_0x4e60b4){const _0x3b1c4e=_0x15d4f8,_0x322de9=this;this[_0x3b1c4e('0x11')]['enqueue'](function(){const _0x5b3a7a=_0x3b1c4e;return _0x322de9[_0x5b3a7a('0x1b')][_0x5b3a7a('0xb')](_0x5cb9a4,_0x1b92c9,_0x4e60b4)[_0x5b3a7a('0x0')](function(){const _0x3ed133=_0x5b3a7a;logger[_0x3ed133('0xa')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1b92c9,_0x5cb9a4);})[_0x5b3a7a('0xd')](function(_0x2fdcfe){const _0x386ea2=_0x5b3a7a;logger['info'](JSON[_0x386ea2('0x19')](_0x2fdcfe));});});},Migration[_0x15d4f8('0x18')][_0x15d4f8('0x1d')]=function(_0x194af2,_0x107cc2,_0x614a53){const _0x384180=_0x15d4f8,_0x368cde=this;this['sequence'][_0x384180('0xf')](function(){const _0x5ee550=_0x384180;return _0x368cde[_0x5ee550('0x1b')][_0x5ee550('0x1d')](_0x194af2,_0x107cc2,_0x614a53)[_0x5ee550('0x0')](function(){const _0x20fe36=_0x5ee550;logger[_0x20fe36('0xa')](_0x20fe36('0xc'),_0x107cc2,_0x194af2);})[_0x5ee550('0xd')](function(_0x4f8410){const _0x18ecec=_0x5ee550;logger[_0x18ecec('0xa')](JSON[_0x18ecec('0x19')](_0x4f8410));});});},Migration[_0x15d4f8('0x18')][_0x15d4f8('0x12')]=function(_0x5f58ef){const _0x1f8b16=_0x15d4f8,_0x161671=this;this['sequence'][_0x1f8b16('0xf')](function(){const _0x349472=_0x1f8b16;return _0x161671[_0x349472('0x1b')]['dropTable'](_0x5f58ef,{'force':!![]})[_0x349472('0x0')](function(){const _0x127ab0=_0x349472;logger[_0x127ab0('0xa')](_0x127ab0('0x16'),_0x5f58ef);})[_0x349472('0xd')](function(_0x4e1192){const _0x481522=_0x349472;logger[_0x481522('0xa')](JSON[_0x481522('0x19')](_0x4e1192));});});},Migration[_0x15d4f8('0x18')][_0x15d4f8('0x20')]=function(_0x447ad4,_0x1c918d,_0x17d153){const _0x22c561=_0x15d4f8,_0x52c3c0=this;this['sequence'][_0x22c561('0xf')](function(){const _0x2769e6=_0x22c561;return _0x52c3c0[_0x2769e6('0x1b')]['addIndex'](_0x447ad4,_0x1c918d,{'indexName':_0x17d153[_0x2769e6('0x7')],'indicesType':_0x17d153[_0x2769e6('0x6')]})['then'](function(){const _0x41458c=_0x2769e6;logger[_0x41458c('0xa')](_0x41458c('0xe'),_0x447ad4,_0x1c918d['join'](','),_0x17d153[_0x41458c('0x7')],_0x17d153[_0x41458c('0x6')]);})[_0x2769e6('0xd')](function(_0x371fbf){const _0x473046=_0x2769e6;logger[_0x473046('0xa')](JSON[_0x473046('0x19')](_0x371fbf));});});},Migration[_0x15d4f8('0x18')][_0x15d4f8('0x2')]=function(_0x53d009,_0x104789){const _0xf3bd83=_0x15d4f8,_0x41cb82=this;this[_0xf3bd83('0x11')][_0xf3bd83('0xf')](function(){const _0x5afdcf=_0xf3bd83;return _0x41cb82[_0x5afdcf('0x1b')][_0x5afdcf('0x2')](_0x53d009,_0x104789)[_0x5afdcf('0x0')](function(){const _0x40009a=_0x5afdcf;logger[_0x40009a('0xa')](_0x40009a('0x8'),_0x53d009,_0x104789);})[_0x5afdcf('0xd')](function(_0x313cbd){const _0x24a086=_0x5afdcf;logger[_0x24a086('0xa')](JSON[_0x24a086('0x19')](_0x313cbd));});});},Migration[_0x15d4f8('0x18')][_0x15d4f8('0x1e')]=function(_0x18366a){const _0x3deb28=_0x15d4f8,_0x4cd2ab=this;this[_0x3deb28('0x11')][_0x3deb28('0xf')](function(){const _0x55ad5b=_0x3deb28;return _0x4cd2ab[_0x55ad5b('0x1b')][_0x55ad5b('0x10')][_0x55ad5b('0x1e')](_0x18366a)[_0x55ad5b('0x0')](function(){const _0x5b7ef6=_0x55ad5b;logger[_0x5b7ef6('0xa')](_0x5b7ef6('0x13'),_0x18366a);})['catch'](function(_0x1cc705){const _0x43d68b=_0x55ad5b;logger['info'](JSON[_0x43d68b('0x19')](_0x1cc705));});});},Migration['prototype'][_0x15d4f8('0x1c')]=function(_0x354e0c,_0x12bc31){const _0x18f403=_0x15d4f8,_0x455f0c=this;this[_0x18f403('0x11')][_0x18f403('0xf')](function(){const _0x1aa293=_0x18f403;return _0x455f0c[_0x1aa293('0x1b')][_0x1aa293('0x1c')](_0x354e0c,_0x12bc31)['then'](function(){const _0x52275e=_0x1aa293;logger[_0x52275e('0xa')](_0x52275e('0x3'),_0x12bc31,_0x354e0c);})['catch'](function(_0x1618d6){const _0x4321b9=_0x1aa293;logger[_0x4321b9('0xa')](util['inspect'](_0x1618d6,{'showHidden':![],'depth':null}));});});},Migration[_0x15d4f8('0x18')][_0x15d4f8('0x4')]=function(_0x4ef838,_0x5d9cbc,_0x3ac3ce){const _0xd0a22=_0x15d4f8,_0xf7a272=this;this[_0xd0a22('0x11')][_0xd0a22('0xf')](function(){const _0x157dbf=_0xd0a22;return _0xf7a272[_0x157dbf('0x1b')][_0x157dbf('0x4')](_0x4ef838,_0x5d9cbc,_0x3ac3ce)['then'](function(){const _0x43de29=_0x157dbf;logger['info'](_0x43de29('0x14'),_0x5d9cbc,_0x3ac3ce,_0x4ef838);})['catch'](function(_0x397286){const _0xdbcc37=_0x157dbf;logger[_0xdbcc37('0xa')](util['inspect'](_0x397286,{'showHidden':![],'depth':null}));});});},Migration[_0x15d4f8('0x18')][_0x15d4f8('0x17')]=function(_0x278b06){const _0x1c25aa=_0x15d4f8;this[_0x1c25aa('0x11')][_0x1c25aa('0xf')](function(){return _0x278b06();});},module[_0x15d4f8('0x1a')]={'up':function(_0x43717d){return new Promise(function(_0x1f2e3e){const _0x59ee02=a994_0x2bea,_0x514cbc=new Migration(_0x43717d);_0x514cbc[_0x59ee02('0x17')](_0x1f2e3e);});},'down':function(){}}; \ No newline at end of file +const a994_0x1dd3=['table\x20dropped\x20%s','changeColumn','../config/logger','inspect','tail','query\x20%s','addColumn','queryInterface','final','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','sequelize','info','removeColumn','catch','indexName','removeIndex\x20%s\x20%s','migration','util','sequence','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','exports','addIndex','then','removeIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','renameColumn','join','enqueue','Added\x20column\x20%s\x20to\x20%s'];(function(_0x5cd6e9,_0x1dd382){const _0x3f6898=function(_0x5320eb){while(--_0x5320eb){_0x5cd6e9['push'](_0x5cd6e9['shift']());}};_0x3f6898(++_0x1dd382);}(a994_0x1dd3,0x6a));const a994_0x3f68=function(_0x5cd6e9,_0x1dd382){_0x5cd6e9=_0x5cd6e9-0x0;let _0x3f6898=a994_0x1dd3[_0x5cd6e9];return _0x3f6898;};const _0x42e5b7=a994_0x3f68;'use strict';const util=require(_0x42e5b7('0xf')),logger=require(_0x42e5b7('0x20'))(_0x42e5b7('0xe')),Sequence=function(){};Sequence[_0x42e5b7('0x11')][_0x42e5b7('0x1c')]=function(_0x5320eb){const _0x2f5ca0=_0x42e5b7;this[_0x2f5ca0('0x0')]=this['tail']?this[_0x2f5ca0('0x0')][_0x2f5ca0('0x7')](_0x5320eb):_0x5320eb();};const Migration=function(_0x3471fb){const _0x5d3e6b=_0x42e5b7;this[_0x5d3e6b('0x3')]=_0x3471fb,this['sequence']=new Sequence();};Migration['prototype'][_0x42e5b7('0x1f')]=function(_0x124412,_0x72c884,_0x58e6a4){const _0x1df469=_0x42e5b7,_0x18938f=this;this[_0x1df469('0x10')][_0x1df469('0x1c')](function(){const _0x383d28=_0x1df469;return _0x18938f[_0x383d28('0x3')][_0x383d28('0x1f')](_0x124412,_0x72c884,_0x58e6a4)[_0x383d28('0x16')](function(){const _0x1a2cdf=_0x383d28;logger[_0x1a2cdf('0x9')](_0x1a2cdf('0x12'),_0x72c884,_0x124412);})[_0x383d28('0xb')](function(_0x1ae1e6){const _0x38bbe4=_0x383d28;logger[_0x38bbe4('0x9')](JSON['stringify'](_0x1ae1e6));});});},Migration[_0x42e5b7('0x11')][_0x42e5b7('0x2')]=function(_0x1ed1d6,_0x30f51f,_0x362003){const _0x3ee602=this;this['sequence']['enqueue'](function(){const _0x241d4b=a994_0x3f68;return _0x3ee602[_0x241d4b('0x3')][_0x241d4b('0x2')](_0x1ed1d6,_0x30f51f,_0x362003)['then'](function(){const _0x1e926b=_0x241d4b;logger[_0x1e926b('0x9')](_0x1e926b('0x1d'),_0x30f51f,_0x1ed1d6);})[_0x241d4b('0xb')](function(_0x20e951){const _0x432968=_0x241d4b;logger[_0x432968('0x9')](JSON['stringify'](_0x20e951));});});},Migration['prototype']['dropTable']=function(_0x2d58d8){const _0x1d04b3=_0x42e5b7,_0x473523=this;this[_0x1d04b3('0x10')][_0x1d04b3('0x1c')](function(){const _0x85a522=_0x1d04b3;return _0x473523[_0x85a522('0x3')]['dropTable'](_0x2d58d8,{'force':!![]})[_0x85a522('0x16')](function(){const _0x3adcdd=_0x85a522;logger[_0x3adcdd('0x9')](_0x3adcdd('0x1e'),_0x2d58d8);})[_0x85a522('0xb')](function(_0x5b1b3a){const _0xf274e7=_0x85a522;logger['info'](JSON[_0xf274e7('0x13')](_0x5b1b3a));});});},Migration['prototype'][_0x42e5b7('0x15')]=function(_0x18a080,_0x2a8e00,_0x54f31d){const _0x522298=_0x42e5b7,_0x143667=this;this['sequence'][_0x522298('0x1c')](function(){const _0x56f35f=_0x522298;return _0x143667[_0x56f35f('0x3')][_0x56f35f('0x15')](_0x18a080,_0x2a8e00,{'indexName':_0x54f31d[_0x56f35f('0xc')],'indicesType':_0x54f31d[_0x56f35f('0x19')]})[_0x56f35f('0x16')](function(){const _0x38debe=_0x56f35f;logger[_0x38debe('0x9')](_0x38debe('0x18'),_0x18a080,_0x2a8e00[_0x38debe('0x1b')](','),_0x54f31d[_0x38debe('0xc')],_0x54f31d['indicesType']);})['catch'](function(_0x4c73ad){const _0x81df3e=_0x56f35f;logger[_0x81df3e('0x9')](JSON['stringify'](_0x4c73ad));});});},Migration['prototype'][_0x42e5b7('0x17')]=function(_0x9c91f1,_0x7f49c5){const _0x1f7fbc=_0x42e5b7,_0x3de124=this;this[_0x1f7fbc('0x10')]['enqueue'](function(){const _0x5ac23f=_0x1f7fbc;return _0x3de124[_0x5ac23f('0x3')]['removeIndex'](_0x9c91f1,_0x7f49c5)[_0x5ac23f('0x16')](function(){const _0x57330b=_0x5ac23f;logger[_0x57330b('0x9')](_0x57330b('0xd'),_0x9c91f1,_0x7f49c5);})[_0x5ac23f('0xb')](function(_0xe36708){const _0x39c7e0=_0x5ac23f;logger[_0x39c7e0('0x9')](JSON['stringify'](_0xe36708));});});},Migration['prototype'][_0x42e5b7('0x5')]=function(_0x459552){const _0x50c9d0=_0x42e5b7,_0xb2df01=this;this[_0x50c9d0('0x10')]['enqueue'](function(){const _0x11625b=_0x50c9d0;return _0xb2df01[_0x11625b('0x3')][_0x11625b('0x8')][_0x11625b('0x5')](_0x459552)[_0x11625b('0x16')](function(){const _0x5cd127=_0x11625b;logger[_0x5cd127('0x9')](_0x5cd127('0x1'),_0x459552);})['catch'](function(_0x4e9f91){const _0x22b943=_0x11625b;logger[_0x22b943('0x9')](JSON[_0x22b943('0x13')](_0x4e9f91));});});},Migration[_0x42e5b7('0x11')][_0x42e5b7('0xa')]=function(_0x2d95ef,_0x3ee458){const _0xebb348=_0x42e5b7,_0x105159=this;this[_0xebb348('0x10')][_0xebb348('0x1c')](function(){const _0x387efe=_0xebb348;return _0x105159[_0x387efe('0x3')]['removeColumn'](_0x2d95ef,_0x3ee458)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x3ee458,_0x2d95ef);})[_0x387efe('0xb')](function(_0x3ee97c){const _0x494ae2=_0x387efe;logger['info'](util[_0x494ae2('0x21')](_0x3ee97c,{'showHidden':![],'depth':null}));});});},Migration[_0x42e5b7('0x11')][_0x42e5b7('0x1a')]=function(_0x6f633a,_0x4769cd,_0x66bb81){const _0x3adc45=_0x42e5b7,_0x480c86=this;this[_0x3adc45('0x10')][_0x3adc45('0x1c')](function(){const _0xf689af=_0x3adc45;return _0x480c86[_0xf689af('0x3')][_0xf689af('0x1a')](_0x6f633a,_0x4769cd,_0x66bb81)[_0xf689af('0x16')](function(){const _0x189ca9=_0xf689af;logger[_0x189ca9('0x9')](_0x189ca9('0x6'),_0x4769cd,_0x66bb81,_0x6f633a);})[_0xf689af('0xb')](function(_0x15bdec){const _0x5ddf2f=_0xf689af;logger[_0x5ddf2f('0x9')](util['inspect'](_0x15bdec,{'showHidden':![],'depth':null}));});});},Migration[_0x42e5b7('0x11')][_0x42e5b7('0x4')]=function(_0x2e20cf){const _0x1dd0a7=_0x42e5b7;this[_0x1dd0a7('0x10')]['enqueue'](function(){return _0x2e20cf();});},module[_0x42e5b7('0x14')]={'up':function(_0x2b462b){return new Promise(function(_0x8cd943){const _0x52bef9=a994_0x3f68,_0x19cfbd=new Migration(_0x2b462b);_0x19cfbd[_0x52bef9('0x4')](_0x8cd943);});},'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 57af3cf..50235cb 100644 --- a/server/migrations/2.4.12.js +++ b/server/migrations/2.4.12.js @@ -1 +1 @@ -const a995_0x1664=['indexName','join','indicesType','finally','addColumn','queryInterface','loginMailFrequency','inspect','sequelize','removeColumn','query\x20%s','final','then','removeIndex','dropTable','tail','table\x20dropped\x20%s','INTEGER','prototype','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeIndex\x20%s\x20%s','addIndex','migration','query','../config/logger','stringify','Removed\x20column\x20%s\x20from\x20%s','renameColumn','sequence','util','info','exports'];(function(_0x3613ca,_0x1664ec){const _0x2641a0=function(_0x5c1020){while(--_0x5c1020){_0x3613ca['push'](_0x3613ca['shift']());}};_0x2641a0(++_0x1664ec);}(a995_0x1664,0x18a));const a995_0x2641=function(_0x3613ca,_0x1664ec){_0x3613ca=_0x3613ca-0x0;let _0x2641a0=a995_0x1664[_0x3613ca];return _0x2641a0;};const _0x283cb2=a995_0x2641;'use strict';const util=require(_0x283cb2('0x17')),logger=require(_0x283cb2('0x12'))(_0x283cb2('0x10')),Sequence=function(){};Sequence[_0x283cb2('0x9')][_0x283cb2('0xc')]=function(_0x5c1020){const _0x52fed4=_0x283cb2;this[_0x52fed4('0x6')]=this[_0x52fed4('0x6')]?this['tail'][_0x52fed4('0x1d')](_0x5c1020):_0x5c1020();};const Migration=function(_0x456979){this['queryInterface']=_0x456979,this['sequence']=new Sequence();};Migration[_0x283cb2('0x9')]['changeColumn']=function(_0x407cf4,_0x108208,_0x43009e){const _0x59987e=_0x283cb2,_0x22d7e4=this;this[_0x59987e('0x16')][_0x59987e('0xc')](function(){const _0x198dbf=_0x59987e;return _0x22d7e4[_0x198dbf('0x1f')]['changeColumn'](_0x407cf4,_0x108208,_0x43009e)['then'](function(){logger['info']('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x108208,_0x407cf4);})[_0x198dbf('0xa')](function(_0x1457f6){const _0x1f2ab9=_0x198dbf;logger['info'](JSON[_0x1f2ab9('0x13')](_0x1457f6));});});},Migration[_0x283cb2('0x9')][_0x283cb2('0x1e')]=function(_0x316563,_0x204eba,_0x4b1868){const _0x20dcf7=_0x283cb2,_0x41d19f=this;this[_0x20dcf7('0x16')][_0x20dcf7('0xc')](function(){const _0x15e702=_0x20dcf7;return _0x41d19f[_0x15e702('0x1f')][_0x15e702('0x1e')](_0x316563,_0x204eba,_0x4b1868)[_0x15e702('0x3')](function(){const _0x527170=_0x15e702;logger[_0x527170('0x18')]('Added\x20column\x20%s\x20to\x20%s',_0x204eba,_0x316563);})[_0x15e702('0xa')](function(_0x1ea29b){const _0x100045=_0x15e702;logger[_0x100045('0x18')](JSON[_0x100045('0x13')](_0x1ea29b));});});},Migration[_0x283cb2('0x9')][_0x283cb2('0x5')]=function(_0x59dd85){const _0x4a8f8d=_0x283cb2,_0x159e65=this;this[_0x4a8f8d('0x16')][_0x4a8f8d('0xc')](function(){const _0x1a9dad=_0x4a8f8d;return _0x159e65[_0x1a9dad('0x1f')][_0x1a9dad('0x5')](_0x59dd85,{'force':!![]})['then'](function(){const _0x155d91=_0x1a9dad;logger[_0x155d91('0x18')](_0x155d91('0x7'),_0x59dd85);})[_0x1a9dad('0xa')](function(_0x553124){const _0x3f8411=_0x1a9dad;logger[_0x3f8411('0x18')](JSON[_0x3f8411('0x13')](_0x553124));});});},Migration[_0x283cb2('0x9')]['addIndex']=function(_0x53ed0a,_0x386c0d,_0x5abf36){const _0x247fb0=_0x283cb2,_0xdb3de=this;this['sequence'][_0x247fb0('0xc')](function(){const _0x3fd824=_0x247fb0;return _0xdb3de[_0x3fd824('0x1f')][_0x3fd824('0xf')](_0x53ed0a,_0x386c0d,{'indexName':_0x5abf36[_0x3fd824('0x1a')],'indicesType':_0x5abf36[_0x3fd824('0x1c')]})[_0x3fd824('0x3')](function(){const _0x3b8d5f=_0x3fd824;logger[_0x3b8d5f('0x18')](_0x3b8d5f('0xb'),_0x53ed0a,_0x386c0d[_0x3b8d5f('0x1b')](','),_0x5abf36[_0x3b8d5f('0x1a')],_0x5abf36[_0x3b8d5f('0x1c')]);})[_0x3fd824('0xa')](function(_0x259ded){const _0x2221d7=_0x3fd824;logger[_0x2221d7('0x18')](JSON[_0x2221d7('0x13')](_0x259ded));});});},Migration['prototype'][_0x283cb2('0x4')]=function(_0x364463,_0x39bb16){const _0x5de576=_0x283cb2,_0x2ef1bc=this;this[_0x5de576('0x16')][_0x5de576('0xc')](function(){const _0x457d8a=_0x5de576;return _0x2ef1bc[_0x457d8a('0x1f')][_0x457d8a('0x4')](_0x364463,_0x39bb16)[_0x457d8a('0x3')](function(){const _0x304c4f=_0x457d8a;logger[_0x304c4f('0x18')](_0x304c4f('0xe'),_0x364463,_0x39bb16);})[_0x457d8a('0xa')](function(_0x5cda4d){const _0x39b9be=_0x457d8a;logger['info'](JSON[_0x39b9be('0x13')](_0x5cda4d));});});},Migration[_0x283cb2('0x9')][_0x283cb2('0x11')]=function(_0x3a273d){const _0x5e23fa=_0x283cb2,_0x5ef2f2=this;this[_0x5e23fa('0x16')][_0x5e23fa('0xc')](function(){const _0x8e8ea5=_0x5e23fa;return _0x5ef2f2['queryInterface'][_0x8e8ea5('0x22')][_0x8e8ea5('0x11')](_0x3a273d)[_0x8e8ea5('0x3')](function(){const _0x1cf064=_0x8e8ea5;logger[_0x1cf064('0x18')](_0x1cf064('0x1'),_0x3a273d);})[_0x8e8ea5('0xa')](function(_0xb8cba4){const _0x2f2f3b=_0x8e8ea5;logger[_0x2f2f3b('0x18')](JSON[_0x2f2f3b('0x13')](_0xb8cba4));});});},Migration[_0x283cb2('0x9')]['removeColumn']=function(_0x315726,_0x57a846){const _0x15ad84=this;this['sequence']['enqueue'](function(){const _0x2287db=a995_0x2641;return _0x15ad84[_0x2287db('0x1f')][_0x2287db('0x0')](_0x315726,_0x57a846)[_0x2287db('0x3')](function(){const _0x52926b=_0x2287db;logger['info'](_0x52926b('0x14'),_0x57a846,_0x315726);})['catch'](function(_0x426ec2){const _0x49ffec=_0x2287db;logger[_0x49ffec('0x18')](util[_0x49ffec('0x21')](_0x426ec2,{'showHidden':![],'depth':null}));});});},Migration[_0x283cb2('0x9')][_0x283cb2('0x15')]=function(_0x2ce5af,_0x35b6bb,_0x19bf51){const _0x853fb4=_0x283cb2,_0x553234=this;this[_0x853fb4('0x16')][_0x853fb4('0xc')](function(){const _0x3ab2f6=_0x853fb4;return _0x553234['queryInterface'][_0x3ab2f6('0x15')](_0x2ce5af,_0x35b6bb,_0x19bf51)[_0x3ab2f6('0x3')](function(){const _0x2d5c25=_0x3ab2f6;logger['info'](_0x2d5c25('0xd'),_0x35b6bb,_0x19bf51,_0x2ce5af);})[_0x3ab2f6('0xa')](function(_0x20d6db){const _0x468696=_0x3ab2f6;logger[_0x468696('0x18')](util[_0x468696('0x21')](_0x20d6db,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x283cb2('0x2')]=function(_0x2c3f3e){const _0x19db43=_0x283cb2;this[_0x19db43('0x16')][_0x19db43('0xc')](function(){return _0x2c3f3e();});},module[_0x283cb2('0x19')]={'up':function(_0x491ca8,_0x551729){return new Promise(function(_0x309d5a){const _0x1153a4=a995_0x2641,_0x102b01=new Migration(_0x491ca8);_0x102b01['addColumn']('settings',_0x1153a4('0x20'),{'type':_0x551729[_0x1153a4('0x8')],'defaultValue':0xa}),_0x102b01[_0x1153a4('0x11')]('UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22'),_0x102b01[_0x1153a4('0x2')](_0x309d5a);});},'down':function(){}}; \ No newline at end of file +const a995_0x2333=['indicesType','settings','addColumn','removeIndex','prototype','tail','query\x20%s','queryInterface','sequelize','inspect','catch','join','UPDATE\x20tools_actions\x20SET\x20tools_actions.data5\x20=\x20\x225\x22\x20WHERE\x20tools_actions.action\x20=\x20\x22urlForward\x22','renameColumn','../config/logger','changeColumn','Removed\x20column\x20%s\x20from\x20%s','enqueue','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','addIndex','INTEGER','sequence','info','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','removeColumn','query','migration','util','stringify','Added\x20column\x20%s\x20to\x20%s','indexName','dropTable','table\x20dropped\x20%s','final'];(function(_0x4418aa,_0x2333a3){const _0x579b18=function(_0x3dbe41){while(--_0x3dbe41){_0x4418aa['push'](_0x4418aa['shift']());}};_0x579b18(++_0x2333a3);}(a995_0x2333,0x1c6));const a995_0x579b=function(_0x4418aa,_0x2333a3){_0x4418aa=_0x4418aa-0x0;let _0x579b18=a995_0x2333[_0x4418aa];return _0x579b18;};const _0x213ac7=a995_0x579b;'use strict';const util=require(_0x213ac7('0x14')),logger=require(_0x213ac7('0x4'))(_0x213ac7('0x13')),Sequence=function(){};Sequence[_0x213ac7('0x1f')][_0x213ac7('0x7')]=function(_0x3dbe41){const _0x570d1f=_0x213ac7;this[_0x570d1f('0x20')]=this['tail']?this[_0x570d1f('0x20')][_0x570d1f('0x10')](_0x3dbe41):_0x3dbe41();};const Migration=function(_0x429688){const _0x58387a=_0x213ac7;this[_0x58387a('0x22')]=_0x429688,this[_0x58387a('0xc')]=new Sequence();};Migration[_0x213ac7('0x1f')][_0x213ac7('0x5')]=function(_0x1056b2,_0xa17e20,_0x163033){const _0x490595=_0x213ac7,_0x586667=this;this[_0x490595('0xc')][_0x490595('0x7')](function(){const _0x5e3b7f=_0x490595;return _0x586667['queryInterface'][_0x5e3b7f('0x5')](_0x1056b2,_0xa17e20,_0x163033)[_0x5e3b7f('0x9')](function(){const _0x94fe3f=_0x5e3b7f;logger[_0x94fe3f('0xd')](_0x94fe3f('0xf'),_0xa17e20,_0x1056b2);})['catch'](function(_0x33c12e){logger['info'](JSON['stringify'](_0x33c12e));});});},Migration['prototype']['addColumn']=function(_0x3d47af,_0x3fc0ad,_0x435f7b){const _0x4151cb=_0x213ac7,_0x204acc=this;this[_0x4151cb('0xc')][_0x4151cb('0x7')](function(){const _0x1d7aec=_0x4151cb;return _0x204acc['queryInterface'][_0x1d7aec('0x1d')](_0x3d47af,_0x3fc0ad,_0x435f7b)[_0x1d7aec('0x9')](function(){const _0x31c893=_0x1d7aec;logger[_0x31c893('0xd')](_0x31c893('0x16'),_0x3fc0ad,_0x3d47af);})[_0x1d7aec('0x0')](function(_0x36c6fd){const _0x2bc7af=_0x1d7aec;logger[_0x2bc7af('0xd')](JSON['stringify'](_0x36c6fd));});});},Migration[_0x213ac7('0x1f')][_0x213ac7('0x18')]=function(_0xb75b50){const _0x5ce11f=_0x213ac7,_0xb4dbee=this;this[_0x5ce11f('0xc')][_0x5ce11f('0x7')](function(){const _0x142b50=_0x5ce11f;return _0xb4dbee[_0x142b50('0x22')]['dropTable'](_0xb75b50,{'force':!![]})['then'](function(){const _0x46122f=_0x142b50;logger[_0x46122f('0xd')](_0x46122f('0x19'),_0xb75b50);})[_0x142b50('0x0')](function(_0x528d13){const _0xaae286=_0x142b50;logger['info'](JSON[_0xaae286('0x15')](_0x528d13));});});},Migration['prototype'][_0x213ac7('0xa')]=function(_0x49e4e4,_0x333864,_0x1d5b65){const _0x2a468a=_0x213ac7,_0x15ab92=this;this[_0x2a468a('0xc')][_0x2a468a('0x7')](function(){const _0x38f2e2=_0x2a468a;return _0x15ab92[_0x38f2e2('0x22')][_0x38f2e2('0xa')](_0x49e4e4,_0x333864,{'indexName':_0x1d5b65[_0x38f2e2('0x17')],'indicesType':_0x1d5b65[_0x38f2e2('0x1b')]})[_0x38f2e2('0x9')](function(){const _0x1473cd=_0x38f2e2;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x49e4e4,_0x333864[_0x1473cd('0x1')](','),_0x1d5b65[_0x1473cd('0x17')],_0x1d5b65[_0x1473cd('0x1b')]);})[_0x38f2e2('0x0')](function(_0x2a2eb9){const _0x4a3223=_0x38f2e2;logger[_0x4a3223('0xd')](JSON[_0x4a3223('0x15')](_0x2a2eb9));});});},Migration[_0x213ac7('0x1f')][_0x213ac7('0x1e')]=function(_0x4d7f75,_0x316fb8){const _0x159db9=_0x213ac7,_0x24ca70=this;this['sequence'][_0x159db9('0x7')](function(){const _0x9fe1cb=_0x159db9;return _0x24ca70[_0x9fe1cb('0x22')][_0x9fe1cb('0x1e')](_0x4d7f75,_0x316fb8)[_0x9fe1cb('0x9')](function(){const _0x106841=_0x9fe1cb;logger['info'](_0x106841('0xe'),_0x4d7f75,_0x316fb8);})[_0x9fe1cb('0x0')](function(_0x3c2272){const _0x49276d=_0x9fe1cb;logger[_0x49276d('0xd')](JSON[_0x49276d('0x15')](_0x3c2272));});});},Migration[_0x213ac7('0x1f')][_0x213ac7('0x12')]=function(_0x1aca32){const _0x11cbc4=_0x213ac7,_0x25f326=this;this[_0x11cbc4('0xc')][_0x11cbc4('0x7')](function(){const _0x355d22=_0x11cbc4;return _0x25f326[_0x355d22('0x22')][_0x355d22('0x23')][_0x355d22('0x12')](_0x1aca32)[_0x355d22('0x9')](function(){const _0x7cddef=_0x355d22;logger[_0x7cddef('0xd')](_0x7cddef('0x21'),_0x1aca32);})[_0x355d22('0x0')](function(_0x1a8f2b){const _0x44d397=_0x355d22;logger['info'](JSON[_0x44d397('0x15')](_0x1a8f2b));});});},Migration[_0x213ac7('0x1f')][_0x213ac7('0x11')]=function(_0x3bbc4f,_0x15afa4){const _0x573175=_0x213ac7,_0x34f867=this;this[_0x573175('0xc')][_0x573175('0x7')](function(){const _0x1f6cd0=_0x573175;return _0x34f867[_0x1f6cd0('0x22')]['removeColumn'](_0x3bbc4f,_0x15afa4)['then'](function(){const _0x8a27de=_0x1f6cd0;logger[_0x8a27de('0xd')](_0x8a27de('0x6'),_0x15afa4,_0x3bbc4f);})[_0x1f6cd0('0x0')](function(_0x25307d){const _0x55a246=_0x1f6cd0;logger[_0x55a246('0xd')](util[_0x55a246('0x24')](_0x25307d,{'showHidden':![],'depth':null}));});});},Migration[_0x213ac7('0x1f')]['renameColumn']=function(_0x4c119c,_0x3aad61,_0x4a7a5c){const _0x229aa0=_0x213ac7,_0x11ec55=this;this[_0x229aa0('0xc')][_0x229aa0('0x7')](function(){const _0x22d96a=_0x229aa0;return _0x11ec55[_0x22d96a('0x22')][_0x22d96a('0x3')](_0x4c119c,_0x3aad61,_0x4a7a5c)[_0x22d96a('0x9')](function(){const _0x3c38a3=_0x22d96a;logger['info'](_0x3c38a3('0x8'),_0x3aad61,_0x4a7a5c,_0x4c119c);})[_0x22d96a('0x0')](function(_0x58579b){const _0x461b09=_0x22d96a;logger[_0x461b09('0xd')](util[_0x461b09('0x24')](_0x58579b,{'showHidden':![],'depth':null}));});});},Migration[_0x213ac7('0x1f')]['final']=function(_0xffdf04){const _0x3551fd=_0x213ac7;this[_0x3551fd('0xc')]['enqueue'](function(){return _0xffdf04();});},module['exports']={'up':function(_0x18bbec,_0x4a0cae){return new Promise(function(_0xbbf669){const _0x57f552=a995_0x579b,_0xa2c82e=new Migration(_0x18bbec);_0xa2c82e[_0x57f552('0x1d')](_0x57f552('0x1c'),'loginMailFrequency',{'type':_0x4a0cae[_0x57f552('0xb')],'defaultValue':0xa}),_0xa2c82e['query'](_0x57f552('0x2')),_0xa2c82e[_0x57f552('0x1a')](_0xbbf669);});},'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 681b006..2678b12 100644 --- a/server/migrations/2.4.13.js +++ b/server/migrations/2.4.13.js @@ -1 +1 @@ -const a996_0x3ccc=['addIndex','info','util','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','inspect','Added\x20column\x20%s\x20to\x20%s','renameColumn','catch','finally','removeColumn','stringify','sequence','prototype','../config/logger','queryInterface','then','table\x20dropped\x20%s','changeColumn','dropTable','enqueue','BOOLEAN','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sendUnpauseOnSubmit','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','final','addColumn','query','indicesType','sequelize','removeIndex'];(function(_0x72b8dc,_0x3ccc41){const _0x2bc482=function(_0x2ce0c3){while(--_0x2ce0c3){_0x72b8dc['push'](_0x72b8dc['shift']());}};_0x2bc482(++_0x3ccc41);}(a996_0x3ccc,0x1b2));const a996_0x2bc4=function(_0x72b8dc,_0x3ccc41){_0x72b8dc=_0x72b8dc-0x0;let _0x2bc482=a996_0x3ccc[_0x72b8dc];return _0x2bc482;};const _0x18538b=a996_0x2bc4;'use strict';const util=require(_0x18538b('0x1e')),logger=require(_0x18538b('0x9'))('migration'),Sequence=function(){};Sequence[_0x18538b('0x8')][_0x18538b('0xf')]=function(_0x2ce0c3){const _0x351f31=_0x18538b;this[_0x351f31('0x14')]=this[_0x351f31('0x14')]?this[_0x351f31('0x14')][_0x351f31('0x4')](_0x2ce0c3):_0x2ce0c3();};const Migration=function(_0x46247c){this['queryInterface']=_0x46247c,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x33b9a1,_0x199abb,_0x2c63db){const _0x21baf5=_0x18538b,_0x2dd6d8=this;this[_0x21baf5('0x7')][_0x21baf5('0xf')](function(){const _0x378ba6=_0x21baf5;return _0x2dd6d8[_0x378ba6('0xa')][_0x378ba6('0xd')](_0x33b9a1,_0x199abb,_0x2c63db)[_0x378ba6('0xb')](function(){const _0xa17c6c=_0x378ba6;logger[_0xa17c6c('0x1d')](_0xa17c6c('0x1f'),_0x199abb,_0x33b9a1);})[_0x378ba6('0x3')](function(_0x55928b){const _0x895fd8=_0x378ba6;logger[_0x895fd8('0x1d')](JSON[_0x895fd8('0x6')](_0x55928b));});});},Migration[_0x18538b('0x8')][_0x18538b('0x17')]=function(_0x4449e3,_0x404272,_0x36626c){const _0x1a3a45=_0x18538b,_0x2b4b74=this;this[_0x1a3a45('0x7')]['enqueue'](function(){const _0x2055f6=_0x1a3a45;return _0x2b4b74[_0x2055f6('0xa')]['addColumn'](_0x4449e3,_0x404272,_0x36626c)[_0x2055f6('0xb')](function(){const _0x487943=_0x2055f6;logger['info'](_0x487943('0x1'),_0x404272,_0x4449e3);})['catch'](function(_0x46c885){logger['info'](JSON['stringify'](_0x46c885));});});},Migration[_0x18538b('0x8')]['dropTable']=function(_0x144af3){const _0x275040=_0x18538b,_0x5cd94f=this;this[_0x275040('0x7')][_0x275040('0xf')](function(){const _0x2908b7=_0x275040;return _0x5cd94f[_0x2908b7('0xa')][_0x2908b7('0xe')](_0x144af3,{'force':!![]})[_0x2908b7('0xb')](function(){const _0x15dd7b=_0x2908b7;logger[_0x15dd7b('0x1d')](_0x15dd7b('0xc'),_0x144af3);})[_0x2908b7('0x3')](function(_0x3a4b32){const _0x59cf90=_0x2908b7;logger[_0x59cf90('0x1d')](JSON['stringify'](_0x3a4b32));});});},Migration[_0x18538b('0x8')][_0x18538b('0x1c')]=function(_0x167c42,_0x3d5c6e,_0x51a243){const _0x45cce5=_0x18538b,_0x2aa08d=this;this[_0x45cce5('0x7')][_0x45cce5('0xf')](function(){const _0x319640=_0x45cce5;return _0x2aa08d[_0x319640('0xa')][_0x319640('0x1c')](_0x167c42,_0x3d5c6e,{'indexName':_0x51a243[_0x319640('0x11')],'indicesType':_0x51a243[_0x319640('0x19')]})['then'](function(){const _0x46cdab=_0x319640;logger[_0x46cdab('0x1d')](_0x46cdab('0x15'),_0x167c42,_0x3d5c6e['join'](','),_0x51a243[_0x46cdab('0x11')],_0x51a243['indicesType']);})[_0x319640('0x3')](function(_0x1a0af0){const _0xad1417=_0x319640;logger[_0xad1417('0x1d')](JSON[_0xad1417('0x6')](_0x1a0af0));});});},Migration['prototype'][_0x18538b('0x1b')]=function(_0x4c0965,_0x26ab80){const _0x8f1244=this;this['sequence']['enqueue'](function(){const _0x1fe3b4=a996_0x2bc4;return _0x8f1244[_0x1fe3b4('0xa')][_0x1fe3b4('0x1b')](_0x4c0965,_0x26ab80)[_0x1fe3b4('0xb')](function(){logger['info']('removeIndex\x20%s\x20%s',_0x4c0965,_0x26ab80);})['catch'](function(_0x119ee0){const _0x294f95=_0x1fe3b4;logger[_0x294f95('0x1d')](JSON[_0x294f95('0x6')](_0x119ee0));});});},Migration[_0x18538b('0x8')][_0x18538b('0x18')]=function(_0x542b62){const _0x132139=_0x18538b,_0x43d062=this;this[_0x132139('0x7')][_0x132139('0xf')](function(){const _0xe291d4=_0x132139;return _0x43d062['queryInterface'][_0xe291d4('0x1a')]['query'](_0x542b62)[_0xe291d4('0xb')](function(){const _0x5144cc=_0xe291d4;logger[_0x5144cc('0x1d')]('query\x20%s',_0x542b62);})['catch'](function(_0x3d55de){const _0x4431ac=_0xe291d4;logger[_0x4431ac('0x1d')](JSON[_0x4431ac('0x6')](_0x3d55de));});});},Migration[_0x18538b('0x8')][_0x18538b('0x5')]=function(_0x57a3cb,_0x5e6923){const _0x50cf96=_0x18538b,_0x511f3b=this;this[_0x50cf96('0x7')][_0x50cf96('0xf')](function(){const _0x3383c4=_0x50cf96;return _0x511f3b[_0x3383c4('0xa')]['removeColumn'](_0x57a3cb,_0x5e6923)[_0x3383c4('0xb')](function(){const _0x2959b0=_0x3383c4;logger[_0x2959b0('0x1d')](_0x2959b0('0x20'),_0x5e6923,_0x57a3cb);})[_0x3383c4('0x3')](function(_0x42a503){const _0x93d05f=_0x3383c4;logger[_0x93d05f('0x1d')](util[_0x93d05f('0x0')](_0x42a503,{'showHidden':![],'depth':null}));});});},Migration[_0x18538b('0x8')][_0x18538b('0x2')]=function(_0x45e0e1,_0x35a2e7,_0xdf1b94){const _0x29ee27=_0x18538b,_0x16745c=this;this['sequence'][_0x29ee27('0xf')](function(){const _0x190ad7=_0x29ee27;return _0x16745c[_0x190ad7('0xa')][_0x190ad7('0x2')](_0x45e0e1,_0x35a2e7,_0xdf1b94)[_0x190ad7('0xb')](function(){const _0x41ddcc=_0x190ad7;logger[_0x41ddcc('0x1d')](_0x41ddcc('0x12'),_0x35a2e7,_0xdf1b94,_0x45e0e1);})[_0x190ad7('0x3')](function(_0x3215d5){const _0x1508f8=_0x190ad7;logger[_0x1508f8('0x1d')](util[_0x1508f8('0x0')](_0x3215d5,{'showHidden':![],'depth':null}));});});},Migration[_0x18538b('0x8')]['final']=function(_0x23e8b9){const _0x3a5ee1=_0x18538b;this[_0x3a5ee1('0x7')][_0x3a5ee1('0xf')](function(){return _0x23e8b9();});},module['exports']={'up':function(_0x4c24bf,_0x535344){return new Promise(function(_0x4218cd){const _0x584442=a996_0x2bc4,_0x5d345f=new Migration(_0x4c24bf);_0x5d345f[_0x584442('0x17')]('jscripty_projects',_0x584442('0x13'),{'type':_0x535344[_0x584442('0x10')],'defaultValue':![]}),_0x5d345f[_0x584442('0x16')](_0x4218cd);});},'down':function(){}}; \ No newline at end of file +const a996_0x8d76=['util','sequence','addColumn','catch','removeIndex\x20%s\x20%s','BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','then','removeIndex','final','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','jscripty_projects','Removed\x20column\x20%s\x20from\x20%s','tail','addIndex','migration','join','enqueue','indexName','exports','changeColumn','removeColumn','prototype','inspect','stringify','indicesType','finally','addIndex\x20%s\x20%s\x20%s\x20[%s]','query','queryInterface','sendUnpauseOnSubmit','info','renameColumn','sequelize'];(function(_0x376b89,_0x8d7630){const _0x5ec4a6=function(_0x5e9370){while(--_0x5e9370){_0x376b89['push'](_0x376b89['shift']());}};_0x5ec4a6(++_0x8d7630);}(a996_0x8d76,0x103));const a996_0x5ec4=function(_0x376b89,_0x8d7630){_0x376b89=_0x376b89-0x0;let _0x5ec4a6=a996_0x8d76[_0x376b89];return _0x5ec4a6;};const _0x207fc6=a996_0x5ec4;'use strict';const util=require(_0x207fc6('0x15')),logger=require('../config/logger')(_0x207fc6('0x2')),Sequence=function(){};Sequence[_0x207fc6('0x9')]['enqueue']=function(_0x5e9370){const _0x340f9f=_0x207fc6;this[_0x340f9f('0x0')]=this[_0x340f9f('0x0')]?this['tail'][_0x340f9f('0xd')](_0x5e9370):_0x5e9370();};const Migration=function(_0x50ae2e){this['queryInterface']=_0x50ae2e,this['sequence']=new Sequence();};Migration[_0x207fc6('0x9')][_0x207fc6('0x7')]=function(_0x332065,_0xffb860,_0x5dcc74){const _0x2e31c1=_0x207fc6,_0xa85412=this;this[_0x2e31c1('0x16')][_0x2e31c1('0x4')](function(){const _0x4abc50=_0x2e31c1;return _0xa85412['queryInterface'][_0x4abc50('0x7')](_0x332065,_0xffb860,_0x5dcc74)[_0x4abc50('0x1c')](function(){const _0x1fee46=_0x4abc50;logger[_0x1fee46('0x12')](_0x1fee46('0x1b'),_0xffb860,_0x332065);})['catch'](function(_0x520678){const _0x3a0510=_0x4abc50;logger['info'](JSON[_0x3a0510('0xb')](_0x520678));});});},Migration[_0x207fc6('0x9')][_0x207fc6('0x17')]=function(_0x51d9c0,_0x31b700,_0x2ada7b){const _0x2b219a=_0x207fc6,_0x708f4=this;this['sequence'][_0x2b219a('0x4')](function(){const _0x458ab8=_0x2b219a;return _0x708f4['queryInterface'][_0x458ab8('0x17')](_0x51d9c0,_0x31b700,_0x2ada7b)[_0x458ab8('0x1c')](function(){const _0x1a7a70=_0x458ab8;logger[_0x1a7a70('0x12')]('Added\x20column\x20%s\x20to\x20%s',_0x31b700,_0x51d9c0);})['catch'](function(_0x5c5ae){logger['info'](JSON['stringify'](_0x5c5ae));});});},Migration[_0x207fc6('0x9')]['dropTable']=function(_0x39aa06){const _0x2d54a5=_0x207fc6,_0x59810f=this;this['sequence'][_0x2d54a5('0x4')](function(){const _0x1ab455=_0x2d54a5;return _0x59810f['queryInterface']['dropTable'](_0x39aa06,{'force':!![]})[_0x1ab455('0x1c')](function(){const _0x4895da=_0x1ab455;logger[_0x4895da('0x12')](_0x4895da('0x20'),_0x39aa06);})['catch'](function(_0x2327b4){const _0x5cfb56=_0x1ab455;logger[_0x5cfb56('0x12')](JSON[_0x5cfb56('0xb')](_0x2327b4));});});},Migration[_0x207fc6('0x9')][_0x207fc6('0x1')]=function(_0x45f372,_0x5b53af,_0x1c4d5b){const _0x4beb22=_0x207fc6,_0x15b68d=this;this[_0x4beb22('0x16')][_0x4beb22('0x4')](function(){const _0x2bc3e2=_0x4beb22;return _0x15b68d[_0x2bc3e2('0x10')][_0x2bc3e2('0x1')](_0x45f372,_0x5b53af,{'indexName':_0x1c4d5b[_0x2bc3e2('0x5')],'indicesType':_0x1c4d5b[_0x2bc3e2('0xc')]})[_0x2bc3e2('0x1c')](function(){const _0xccfc96=_0x2bc3e2;logger['info'](_0xccfc96('0xe'),_0x45f372,_0x5b53af[_0xccfc96('0x3')](','),_0x1c4d5b['indexName'],_0x1c4d5b[_0xccfc96('0xc')]);})['catch'](function(_0x252f16){const _0x564758=_0x2bc3e2;logger['info'](JSON[_0x564758('0xb')](_0x252f16));});});},Migration[_0x207fc6('0x9')][_0x207fc6('0x1d')]=function(_0x27155d,_0x55f7b1){const _0x1a5a1d=_0x207fc6,_0x41c9fd=this;this[_0x1a5a1d('0x16')][_0x1a5a1d('0x4')](function(){const _0x3d4cd9=_0x1a5a1d;return _0x41c9fd['queryInterface']['removeIndex'](_0x27155d,_0x55f7b1)[_0x3d4cd9('0x1c')](function(){const _0xe57182=_0x3d4cd9;logger[_0xe57182('0x12')](_0xe57182('0x19'),_0x27155d,_0x55f7b1);})[_0x3d4cd9('0x18')](function(_0x7d3602){const _0x1941b7=_0x3d4cd9;logger[_0x1941b7('0x12')](JSON[_0x1941b7('0xb')](_0x7d3602));});});},Migration['prototype'][_0x207fc6('0xf')]=function(_0x59ff10){const _0x44c060=this;this['sequence']['enqueue'](function(){const _0x43e087=a996_0x5ec4;return _0x44c060[_0x43e087('0x10')][_0x43e087('0x14')]['query'](_0x59ff10)[_0x43e087('0x1c')](function(){const _0x50d7c2=_0x43e087;logger[_0x50d7c2('0x12')]('query\x20%s',_0x59ff10);})[_0x43e087('0x18')](function(_0x5dc41d){const _0x245a57=_0x43e087;logger[_0x245a57('0x12')](JSON[_0x245a57('0xb')](_0x5dc41d));});});},Migration[_0x207fc6('0x9')][_0x207fc6('0x8')]=function(_0x13dfcd,_0x17cb72){const _0x2cc50e=this;this['sequence']['enqueue'](function(){const _0x146382=a996_0x5ec4;return _0x2cc50e[_0x146382('0x10')][_0x146382('0x8')](_0x13dfcd,_0x17cb72)[_0x146382('0x1c')](function(){const _0x87c4db=_0x146382;logger['info'](_0x87c4db('0x22'),_0x17cb72,_0x13dfcd);})[_0x146382('0x18')](function(_0x560417){const _0x4a9e54=_0x146382;logger[_0x4a9e54('0x12')](util[_0x4a9e54('0xa')](_0x560417,{'showHidden':![],'depth':null}));});});},Migration[_0x207fc6('0x9')][_0x207fc6('0x13')]=function(_0x515b79,_0x108a9c,_0x4b8114){const _0x3b505d=_0x207fc6,_0x35c911=this;this[_0x3b505d('0x16')][_0x3b505d('0x4')](function(){const _0x4a58b4=_0x3b505d;return _0x35c911[_0x4a58b4('0x10')][_0x4a58b4('0x13')](_0x515b79,_0x108a9c,_0x4b8114)[_0x4a58b4('0x1c')](function(){const _0x33f338=_0x4a58b4;logger[_0x33f338('0x12')](_0x33f338('0x1f'),_0x108a9c,_0x4b8114,_0x515b79);})[_0x4a58b4('0x18')](function(_0x4e90c8){const _0xed70=_0x4a58b4;logger['info'](util[_0xed70('0xa')](_0x4e90c8,{'showHidden':![],'depth':null}));});});},Migration[_0x207fc6('0x9')]['final']=function(_0x47de4e){const _0x345f1b=_0x207fc6;this[_0x345f1b('0x16')][_0x345f1b('0x4')](function(){return _0x47de4e();});},module[_0x207fc6('0x6')]={'up':function(_0x194b26,_0x2e4930){return new Promise(function(_0x445da2){const _0x3ba15e=a996_0x5ec4,_0x273269=new Migration(_0x194b26);_0x273269[_0x3ba15e('0x17')](_0x3ba15e('0x21'),_0x3ba15e('0x11'),{'type':_0x2e4930[_0x3ba15e('0x1a')],'defaultValue':![]}),_0x273269[_0x3ba15e('0x1e')](_0x445da2);});},'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 aa10b11..82b274d 100644 --- a/server/migrations/2.4.14.js +++ b/server/migrations/2.4.14.js @@ -1 +1 @@ -const a997_0x1cdb=['Changed\x20column\x20%s\x20in\x20table\x20%s','exports','addColumn','sequelize','stringify','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','tail','migration','enqueue','queryInterface','then','Added\x20column\x20%s\x20to\x20%s','info','removeColumn','../config/logger','inspect','indexName','final','util','sequence','catch','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','addIndex','removeIndex','changeColumn','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','dropTable','indicesType','renameColumn','query'];(function(_0x4d7672,_0x1cdb1b){const _0x34935c=function(_0x53f88f){while(--_0x53f88f){_0x4d7672['push'](_0x4d7672['shift']());}};_0x34935c(++_0x1cdb1b);}(a997_0x1cdb,0x1c5));const a997_0x3493=function(_0x4d7672,_0x1cdb1b){_0x4d7672=_0x4d7672-0x0;let _0x34935c=a997_0x1cdb[_0x4d7672];return _0x34935c;};const _0x3e8384=a997_0x3493;'use strict';const util=require(_0x3e8384('0x1c')),logger=require(_0x3e8384('0x18'))(_0x3e8384('0x11')),Sequence=function(){};Sequence['prototype'][_0x3e8384('0x12')]=function(_0x53f88f){const _0x54df0f=_0x3e8384;this[_0x54df0f('0x10')]=this[_0x54df0f('0x10')]?this[_0x54df0f('0x10')]['finally'](_0x53f88f):_0x53f88f();};const Migration=function(_0x4c6b66){const _0x4f36a3=_0x3e8384;this[_0x4f36a3('0x13')]=_0x4c6b66,this[_0x4f36a3('0x1d')]=new Sequence();};Migration[_0x3e8384('0xe')][_0x3e8384('0x2')]=function(_0x3a1f95,_0x84dd3c,_0x5a1d75){const _0x119ad7=_0x3e8384,_0x1ca545=this;this[_0x119ad7('0x1d')][_0x119ad7('0x12')](function(){const _0x778b40=_0x119ad7;return _0x1ca545[_0x778b40('0x13')][_0x778b40('0x2')](_0x3a1f95,_0x84dd3c,_0x5a1d75)[_0x778b40('0x14')](function(){const _0x17ab46=_0x778b40;logger[_0x17ab46('0x16')](_0x17ab46('0x9'),_0x84dd3c,_0x3a1f95);})['catch'](function(_0x3b8683){const _0x18697a=_0x778b40;logger[_0x18697a('0x16')](JSON[_0x18697a('0xd')](_0x3b8683));});});},Migration[_0x3e8384('0xe')]['addColumn']=function(_0x1116e3,_0xc9a75a,_0x2250d9){const _0x276d2a=_0x3e8384,_0x3734a6=this;this[_0x276d2a('0x1d')][_0x276d2a('0x12')](function(){const _0x14e9f3=_0x276d2a;return _0x3734a6[_0x14e9f3('0x13')][_0x14e9f3('0xb')](_0x1116e3,_0xc9a75a,_0x2250d9)[_0x14e9f3('0x14')](function(){const _0x4b8733=_0x14e9f3;logger[_0x4b8733('0x16')](_0x4b8733('0x15'),_0xc9a75a,_0x1116e3);})[_0x14e9f3('0x1e')](function(_0x259f91){const _0x438853=_0x14e9f3;logger[_0x438853('0x16')](JSON[_0x438853('0xd')](_0x259f91));});});},Migration['prototype'][_0x3e8384('0x5')]=function(_0x1cbe4d){const _0x33d9a9=_0x3e8384,_0x88eb32=this;this[_0x33d9a9('0x1d')][_0x33d9a9('0x12')](function(){const _0x27d71a=_0x33d9a9;return _0x88eb32['queryInterface'][_0x27d71a('0x5')](_0x1cbe4d,{'force':!![]})[_0x27d71a('0x14')](function(){const _0x1b7071=_0x27d71a;logger[_0x1b7071('0x16')](_0x1b7071('0x20'),_0x1cbe4d);})[_0x27d71a('0x1e')](function(_0x57cbad){const _0x313da0=_0x27d71a;logger[_0x313da0('0x16')](JSON['stringify'](_0x57cbad));});});},Migration[_0x3e8384('0xe')][_0x3e8384('0x0')]=function(_0x1f80bd,_0x3a3693,_0x501495){const _0x24b1c2=_0x3e8384,_0x5d313f=this;this[_0x24b1c2('0x1d')][_0x24b1c2('0x12')](function(){const _0x1d3a84=_0x24b1c2;return _0x5d313f[_0x1d3a84('0x13')]['addIndex'](_0x1f80bd,_0x3a3693,{'indexName':_0x501495[_0x1d3a84('0x1a')],'indicesType':_0x501495[_0x1d3a84('0x6')]})[_0x1d3a84('0x14')](function(){const _0x77bb59=_0x1d3a84;logger[_0x77bb59('0x16')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x1f80bd,_0x3a3693['join'](','),_0x501495[_0x77bb59('0x1a')],_0x501495[_0x77bb59('0x6')]);})[_0x1d3a84('0x1e')](function(_0x22566e){const _0xb1ded5=_0x1d3a84;logger[_0xb1ded5('0x16')](JSON[_0xb1ded5('0xd')](_0x22566e));});});},Migration[_0x3e8384('0xe')][_0x3e8384('0x1')]=function(_0x339108,_0x2842aa){const _0x378e06=_0x3e8384,_0x788f38=this;this[_0x378e06('0x1d')][_0x378e06('0x12')](function(){const _0x40fd02=_0x378e06;return _0x788f38[_0x40fd02('0x13')][_0x40fd02('0x1')](_0x339108,_0x2842aa)[_0x40fd02('0x14')](function(){const _0x13f472=_0x40fd02;logger[_0x13f472('0x16')](_0x13f472('0x1f'),_0x339108,_0x2842aa);})['catch'](function(_0x468d76){const _0x568c76=_0x40fd02;logger[_0x568c76('0x16')](JSON[_0x568c76('0xd')](_0x468d76));});});},Migration['prototype'][_0x3e8384('0x8')]=function(_0x4c7771){const _0x324e34=_0x3e8384,_0x572c76=this;this['sequence'][_0x324e34('0x12')](function(){const _0x547249=_0x324e34;return _0x572c76[_0x547249('0x13')][_0x547249('0xc')][_0x547249('0x8')](_0x4c7771)[_0x547249('0x14')](function(){const _0x11aa5b=_0x547249;logger[_0x11aa5b('0x16')](_0x11aa5b('0x3'),_0x4c7771);})[_0x547249('0x1e')](function(_0x54c04d){const _0x19a0a7=_0x547249;logger[_0x19a0a7('0x16')](JSON['stringify'](_0x54c04d));});});},Migration[_0x3e8384('0xe')][_0x3e8384('0x17')]=function(_0x177961,_0x159638){const _0x52c93e=_0x3e8384,_0xc27ea8=this;this[_0x52c93e('0x1d')][_0x52c93e('0x12')](function(){const _0x55d47b=_0x52c93e;return _0xc27ea8[_0x55d47b('0x13')]['removeColumn'](_0x177961,_0x159638)[_0x55d47b('0x14')](function(){const _0x2d5efb=_0x55d47b;logger['info'](_0x2d5efb('0x4'),_0x159638,_0x177961);})[_0x55d47b('0x1e')](function(_0xc5ca17){const _0x29ed09=_0x55d47b;logger[_0x29ed09('0x16')](util[_0x29ed09('0x19')](_0xc5ca17,{'showHidden':![],'depth':null}));});});},Migration[_0x3e8384('0xe')][_0x3e8384('0x7')]=function(_0x472b49,_0x49096e,_0x2fb1f2){const _0xb1c39c=_0x3e8384,_0x46e930=this;this[_0xb1c39c('0x1d')][_0xb1c39c('0x12')](function(){const _0x2def45=_0xb1c39c;return _0x46e930[_0x2def45('0x13')]['renameColumn'](_0x472b49,_0x49096e,_0x2fb1f2)['then'](function(){const _0x38e812=_0x2def45;logger[_0x38e812('0x16')](_0x38e812('0xf'),_0x49096e,_0x2fb1f2,_0x472b49);})[_0x2def45('0x1e')](function(_0x143366){const _0x4bdf69=_0x2def45;logger[_0x4bdf69('0x16')](util[_0x4bdf69('0x19')](_0x143366,{'showHidden':![],'depth':null}));});});},Migration[_0x3e8384('0xe')][_0x3e8384('0x1b')]=function(_0x24f74d){const _0x221fad=_0x3e8384;this[_0x221fad('0x1d')][_0x221fad('0x12')](function(){return _0x24f74d();});},module[_0x3e8384('0xa')]={'up':function(_0x3f9a74){return new Promise(function(_0x1a5332){const _0x10e04c=a997_0x3493,_0x29b027=new Migration(_0x3f9a74);_0x29b027[_0x10e04c('0x1b')](_0x1a5332);});},'down':function(){}}; \ No newline at end of file +const a997_0x4e23=['inspect','tail','dropTable','removeColumn','indexName','prototype','changeColumn','finally','info','Removed\x20column\x20%s\x20from\x20%s','migration','stringify','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','addIndex','sequelize','enqueue','queryInterface','query\x20%s','Added\x20column\x20%s\x20to\x20%s','addColumn','then','util','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','join','catch','sequence','renameColumn','exports','removeIndex','indicesType'];(function(_0x2a22b2,_0x4e2307){const _0x57b0f3=function(_0x1bf47a){while(--_0x1bf47a){_0x2a22b2['push'](_0x2a22b2['shift']());}};_0x57b0f3(++_0x4e2307);}(a997_0x4e23,0xca));const a997_0x57b0=function(_0x2a22b2,_0x4e2307){_0x2a22b2=_0x2a22b2-0x0;let _0x57b0f3=a997_0x4e23[_0x2a22b2];return _0x57b0f3;};const _0x54dd22=a997_0x57b0;'use strict';const util=require(_0x54dd22('0xc')),logger=require('../config/logger')(_0x54dd22('0x0')),Sequence=function(){};Sequence[_0x54dd22('0x1b')][_0x54dd22('0x6')]=function(_0x1bf47a){const _0xbccadf=_0x54dd22;this[_0xbccadf('0x17')]=this[_0xbccadf('0x17')]?this['tail'][_0xbccadf('0x1d')](_0x1bf47a):_0x1bf47a();};const Migration=function(_0x28e0dd){const _0x3aa705=_0x54dd22;this[_0x3aa705('0x7')]=_0x28e0dd,this[_0x3aa705('0x11')]=new Sequence();};Migration['prototype'][_0x54dd22('0x1c')]=function(_0x2d4094,_0xdbb414,_0x26ff7b){const _0x33f5d4=_0x54dd22,_0x1d14c5=this;this['sequence'][_0x33f5d4('0x6')](function(){const _0x11b4e8=_0x33f5d4;return _0x1d14c5[_0x11b4e8('0x7')]['changeColumn'](_0x2d4094,_0xdbb414,_0x26ff7b)['then'](function(){const _0x29e457=_0x11b4e8;logger[_0x29e457('0x1e')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0xdbb414,_0x2d4094);})['catch'](function(_0x52c30f){const _0x14f3a2=_0x11b4e8;logger[_0x14f3a2('0x1e')](JSON[_0x14f3a2('0x1')](_0x52c30f));});});},Migration[_0x54dd22('0x1b')][_0x54dd22('0xa')]=function(_0x5e22df,_0x17a26a,_0x5d2204){const _0x19195c=_0x54dd22,_0x4cc56b=this;this[_0x19195c('0x11')][_0x19195c('0x6')](function(){const _0x3b675a=_0x19195c;return _0x4cc56b[_0x3b675a('0x7')][_0x3b675a('0xa')](_0x5e22df,_0x17a26a,_0x5d2204)['then'](function(){const _0x5845af=_0x3b675a;logger[_0x5845af('0x1e')](_0x5845af('0x9'),_0x17a26a,_0x5e22df);})['catch'](function(_0x5aa0fe){const _0x472b47=_0x3b675a;logger[_0x472b47('0x1e')](JSON['stringify'](_0x5aa0fe));});});},Migration['prototype'][_0x54dd22('0x18')]=function(_0x1f85b3){const _0x26a8d8=_0x54dd22,_0x1cf2fe=this;this[_0x26a8d8('0x11')][_0x26a8d8('0x6')](function(){const _0x7754a8=_0x26a8d8;return _0x1cf2fe['queryInterface'][_0x7754a8('0x18')](_0x1f85b3,{'force':!![]})[_0x7754a8('0xb')](function(){const _0x561b7b=_0x7754a8;logger[_0x561b7b('0x1e')](_0x561b7b('0xd'),_0x1f85b3);})[_0x7754a8('0x10')](function(_0x3ceacc){const _0x16e829=_0x7754a8;logger[_0x16e829('0x1e')](JSON[_0x16e829('0x1')](_0x3ceacc));});});},Migration[_0x54dd22('0x1b')][_0x54dd22('0x4')]=function(_0x1a61ee,_0x323ce1,_0x22d7c7){const _0x33097e=_0x54dd22,_0x412753=this;this[_0x33097e('0x11')][_0x33097e('0x6')](function(){const _0x2599b4=_0x33097e;return _0x412753['queryInterface'][_0x2599b4('0x4')](_0x1a61ee,_0x323ce1,{'indexName':_0x22d7c7['indexName'],'indicesType':_0x22d7c7['indicesType']})['then'](function(){const _0x28b27c=_0x2599b4;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x1a61ee,_0x323ce1[_0x28b27c('0xf')](','),_0x22d7c7[_0x28b27c('0x1a')],_0x22d7c7[_0x28b27c('0x15')]);})[_0x2599b4('0x10')](function(_0x469ccf){const _0x682499=_0x2599b4;logger[_0x682499('0x1e')](JSON[_0x682499('0x1')](_0x469ccf));});});},Migration[_0x54dd22('0x1b')][_0x54dd22('0x14')]=function(_0x3e020a,_0x450f07){const _0x3bb6ad=_0x54dd22,_0x1153b3=this;this['sequence'][_0x3bb6ad('0x6')](function(){const _0xe4b801=_0x3bb6ad;return _0x1153b3[_0xe4b801('0x7')][_0xe4b801('0x14')](_0x3e020a,_0x450f07)['then'](function(){const _0x17a40a=_0xe4b801;logger[_0x17a40a('0x1e')](_0x17a40a('0xe'),_0x3e020a,_0x450f07);})[_0xe4b801('0x10')](function(_0x50d439){const _0x4d6e51=_0xe4b801;logger[_0x4d6e51('0x1e')](JSON[_0x4d6e51('0x1')](_0x50d439));});});},Migration[_0x54dd22('0x1b')]['query']=function(_0x3ca2c3){const _0xf2963c=_0x54dd22,_0x4568e3=this;this[_0xf2963c('0x11')]['enqueue'](function(){const _0x1a762f=_0xf2963c;return _0x4568e3[_0x1a762f('0x7')][_0x1a762f('0x5')]['query'](_0x3ca2c3)['then'](function(){const _0x54a888=_0x1a762f;logger['info'](_0x54a888('0x8'),_0x3ca2c3);})[_0x1a762f('0x10')](function(_0x7203ec){const _0xd42299=_0x1a762f;logger[_0xd42299('0x1e')](JSON[_0xd42299('0x1')](_0x7203ec));});});},Migration[_0x54dd22('0x1b')][_0x54dd22('0x19')]=function(_0x2fbadc,_0x1a5dfe){const _0x3abe4c=_0x54dd22,_0x382aa0=this;this[_0x3abe4c('0x11')][_0x3abe4c('0x6')](function(){const _0x426d21=_0x3abe4c;return _0x382aa0[_0x426d21('0x7')][_0x426d21('0x19')](_0x2fbadc,_0x1a5dfe)[_0x426d21('0xb')](function(){const _0x17e670=_0x426d21;logger[_0x17e670('0x1e')](_0x17e670('0x1f'),_0x1a5dfe,_0x2fbadc);})['catch'](function(_0x5adef7){const _0x146c11=_0x426d21;logger[_0x146c11('0x1e')](util[_0x146c11('0x16')](_0x5adef7,{'showHidden':![],'depth':null}));});});},Migration[_0x54dd22('0x1b')]['renameColumn']=function(_0x2e1c95,_0x1e5235,_0x4faa33){const _0x5a45be=_0x54dd22,_0x3766ac=this;this[_0x5a45be('0x11')][_0x5a45be('0x6')](function(){const _0x3e854e=_0x5a45be;return _0x3766ac[_0x3e854e('0x7')][_0x3e854e('0x12')](_0x2e1c95,_0x1e5235,_0x4faa33)['then'](function(){const _0x124080=_0x3e854e;logger['info'](_0x124080('0x2'),_0x1e5235,_0x4faa33,_0x2e1c95);})[_0x3e854e('0x10')](function(_0x492702){const _0x5eff62=_0x3e854e;logger[_0x5eff62('0x1e')](util[_0x5eff62('0x16')](_0x492702,{'showHidden':![],'depth':null}));});});},Migration[_0x54dd22('0x1b')]['final']=function(_0x55f237){const _0x371f68=_0x54dd22;this[_0x371f68('0x11')]['enqueue'](function(){return _0x55f237();});},module[_0x54dd22('0x13')]={'up':function(_0x47f325){return new Promise(function(_0x2050c6){const _0x5f04e4=a997_0x57b0,_0x4b8cc3=new Migration(_0x47f325);_0x4b8cc3[_0x5f04e4('0x3')](_0x2050c6);});},'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 db85027..5a82e8f 100644 --- a/server/migrations/2.4.15.js +++ b/server/migrations/2.4.15.js @@ -1 +1 @@ -const a998_0x89f6=['addColumn','Removed\x20column\x20%s\x20from\x20%s','addIndex','catch','query','join','sequence','renameColumn','sequelize','tail','changeColumn','dropTable','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','prototype','enqueue','finally','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','removeIndex','queryInterface','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','migration','indicesType','UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22','stringify','removeColumn','then','../config/logger','final','util','info'];(function(_0x395310,_0x89f630){const _0x4482e4=function(_0x13dd6c){while(--_0x13dd6c){_0x395310['push'](_0x395310['shift']());}};_0x4482e4(++_0x89f630);}(a998_0x89f6,0x120));const a998_0x4482=function(_0x395310,_0x89f630){_0x395310=_0x395310-0x0;let _0x4482e4=a998_0x89f6[_0x395310];return _0x4482e4;};const _0x3b11fd=a998_0x4482;'use strict';const util=require(_0x3b11fd('0x7')),logger=require(_0x3b11fd('0x5'))(_0x3b11fd('0x20')),Sequence=function(){};Sequence[_0x3b11fd('0x17')][_0x3b11fd('0x18')]=function(_0x13dd6c){const _0x3177b9=_0x3b11fd;this[_0x3177b9('0x12')]=this[_0x3177b9('0x12')]?this[_0x3177b9('0x12')][_0x3177b9('0x19')](_0x13dd6c):_0x13dd6c();};const Migration=function(_0x5158ba){const _0x56484f=_0x3b11fd;this[_0x56484f('0x1d')]=_0x5158ba,this[_0x56484f('0xf')]=new Sequence();};Migration[_0x3b11fd('0x17')][_0x3b11fd('0x13')]=function(_0x3a7d62,_0x39fdb3,_0x1f4869){const _0x2f1905=this;this['sequence']['enqueue'](function(){const _0x3f2fbb=a998_0x4482;return _0x2f1905[_0x3f2fbb('0x1d')][_0x3f2fbb('0x13')](_0x3a7d62,_0x39fdb3,_0x1f4869)[_0x3f2fbb('0x4')](function(){const _0x253ade=_0x3f2fbb;logger[_0x253ade('0x8')](_0x253ade('0x1a'),_0x39fdb3,_0x3a7d62);})[_0x3f2fbb('0xc')](function(_0x3b24ae){logger['info'](JSON['stringify'](_0x3b24ae));});});},Migration[_0x3b11fd('0x17')]['addColumn']=function(_0xdc191,_0x2cd39b,_0x324572){const _0x3b0e05=this;this['sequence']['enqueue'](function(){const _0x46eb1b=a998_0x4482;return _0x3b0e05[_0x46eb1b('0x1d')][_0x46eb1b('0x9')](_0xdc191,_0x2cd39b,_0x324572)['then'](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x2cd39b,_0xdc191);})['catch'](function(_0x51ab70){const _0x374225=_0x46eb1b;logger[_0x374225('0x8')](JSON[_0x374225('0x2')](_0x51ab70));});});},Migration[_0x3b11fd('0x17')][_0x3b11fd('0x14')]=function(_0x1a859a){const _0x508d8c=this;this['sequence']['enqueue'](function(){const _0x2d78e1=a998_0x4482;return _0x508d8c[_0x2d78e1('0x1d')][_0x2d78e1('0x14')](_0x1a859a,{'force':!![]})[_0x2d78e1('0x4')](function(){const _0x3cc968=_0x2d78e1;logger[_0x3cc968('0x8')](_0x3cc968('0x1b'),_0x1a859a);})['catch'](function(_0x3fc15a){const _0x167921=_0x2d78e1;logger[_0x167921('0x8')](JSON[_0x167921('0x2')](_0x3fc15a));});});},Migration[_0x3b11fd('0x17')]['addIndex']=function(_0x4e1e2d,_0x59131a,_0xc185df){const _0x5480b6=_0x3b11fd,_0x2d50aa=this;this[_0x5480b6('0xf')][_0x5480b6('0x18')](function(){const _0x43b0a6=_0x5480b6;return _0x2d50aa[_0x43b0a6('0x1d')][_0x43b0a6('0xb')](_0x4e1e2d,_0x59131a,{'indexName':_0xc185df['indexName'],'indicesType':_0xc185df[_0x43b0a6('0x0')]})[_0x43b0a6('0x4')](function(){const _0x2ede88=_0x43b0a6;logger[_0x2ede88('0x8')](_0x2ede88('0x16'),_0x4e1e2d,_0x59131a[_0x2ede88('0xe')](','),_0xc185df['indexName'],_0xc185df[_0x2ede88('0x0')]);})[_0x43b0a6('0xc')](function(_0x43940d){const _0x594372=_0x43b0a6;logger[_0x594372('0x8')](JSON[_0x594372('0x2')](_0x43940d));});});},Migration[_0x3b11fd('0x17')][_0x3b11fd('0x1c')]=function(_0x2bb017,_0x3c8dbb){const _0x545b39=_0x3b11fd,_0x456669=this;this[_0x545b39('0xf')][_0x545b39('0x18')](function(){const _0x1e4fda=_0x545b39;return _0x456669[_0x1e4fda('0x1d')][_0x1e4fda('0x1c')](_0x2bb017,_0x3c8dbb)['then'](function(){const _0x4039e8=_0x1e4fda;logger[_0x4039e8('0x8')](_0x4039e8('0x1e'),_0x2bb017,_0x3c8dbb);})[_0x1e4fda('0xc')](function(_0x596f72){const _0x56b2e4=_0x1e4fda;logger[_0x56b2e4('0x8')](JSON[_0x56b2e4('0x2')](_0x596f72));});});},Migration['prototype'][_0x3b11fd('0xd')]=function(_0x5ab398){const _0x210e78=_0x3b11fd,_0x5535f1=this;this[_0x210e78('0xf')][_0x210e78('0x18')](function(){const _0x419265=_0x210e78;return _0x5535f1[_0x419265('0x1d')][_0x419265('0x11')][_0x419265('0xd')](_0x5ab398)['then'](function(){logger['info']('query\x20%s',_0x5ab398);})[_0x419265('0xc')](function(_0x42f3cc){const _0x543301=_0x419265;logger['info'](JSON[_0x543301('0x2')](_0x42f3cc));});});},Migration['prototype'][_0x3b11fd('0x3')]=function(_0x5ca616,_0x3c4160){const _0x74b042=_0x3b11fd,_0x798f8d=this;this['sequence'][_0x74b042('0x18')](function(){const _0x428ed1=_0x74b042;return _0x798f8d[_0x428ed1('0x1d')][_0x428ed1('0x3')](_0x5ca616,_0x3c4160)[_0x428ed1('0x4')](function(){const _0x55db14=_0x428ed1;logger[_0x55db14('0x8')](_0x55db14('0xa'),_0x3c4160,_0x5ca616);})[_0x428ed1('0xc')](function(_0x544f6f){const _0x50d3de=_0x428ed1;logger[_0x50d3de('0x8')](util['inspect'](_0x544f6f,{'showHidden':![],'depth':null}));});});},Migration[_0x3b11fd('0x17')][_0x3b11fd('0x10')]=function(_0x2ea4e5,_0x20cb83,_0x5b745a){const _0x460cd6=_0x3b11fd,_0x2aa825=this;this[_0x460cd6('0xf')][_0x460cd6('0x18')](function(){const _0x1a66ce=_0x460cd6;return _0x2aa825[_0x1a66ce('0x1d')][_0x1a66ce('0x10')](_0x2ea4e5,_0x20cb83,_0x5b745a)[_0x1a66ce('0x4')](function(){const _0x517c18=_0x1a66ce;logger[_0x517c18('0x8')](_0x517c18('0x1f'),_0x20cb83,_0x5b745a,_0x2ea4e5);})[_0x1a66ce('0xc')](function(_0x5b4481){const _0x57b4a7=_0x1a66ce;logger['info'](util[_0x57b4a7('0x15')](_0x5b4481,{'showHidden':![],'depth':null}));});});},Migration[_0x3b11fd('0x17')][_0x3b11fd('0x6')]=function(_0x587d5a){const _0x56c445=_0x3b11fd;this[_0x56c445('0xf')][_0x56c445('0x18')](function(){return _0x587d5a();});},module['exports']={'up':function(_0x31e202){return new Promise(function(_0x44aece){const _0x5bfdea=a998_0x4482,_0x11a10d=new Migration(_0x31e202);_0x11a10d[_0x5bfdea('0xd')](_0x5bfdea('0x1')),_0x11a10d['final'](_0x44aece);});},'down':function(){}}; \ No newline at end of file +const a998_0x2d4a=['dropTable','util','final','then','query','indicesType','removeIndex\x20%s\x20%s','sequence','removeIndex','migration','tail','prototype','exports','stringify','catch','join','removeColumn','enqueue','addColumn','changeColumn','indexName','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','queryInterface','../config/logger','sequelize','table\x20dropped\x20%s','addIndex','renameColumn','info'];(function(_0x4a35a7,_0x2d4a3c){const _0x4f993f=function(_0x42e5a9){while(--_0x42e5a9){_0x4a35a7['push'](_0x4a35a7['shift']());}};_0x4f993f(++_0x2d4a3c);}(a998_0x2d4a,0xff));const a998_0x4f99=function(_0x4a35a7,_0x2d4a3c){_0x4a35a7=_0x4a35a7-0x0;let _0x4f993f=a998_0x2d4a[_0x4a35a7];return _0x4f993f;};const _0x12ae00=a998_0x4f99;'use strict';const util=require(_0x12ae00('0x10')),logger=require(_0x12ae00('0x9'))(_0x12ae00('0x18')),Sequence=function(){};Sequence[_0x12ae00('0x1a')][_0x12ae00('0x2')]=function(_0x42e5a9){const _0xda447c=_0x12ae00;this[_0xda447c('0x19')]=this['tail']?this[_0xda447c('0x19')]['finally'](_0x42e5a9):_0x42e5a9();};const Migration=function(_0x1b8004){const _0x1b685d=_0x12ae00;this[_0x1b685d('0x8')]=_0x1b8004,this[_0x1b685d('0x16')]=new Sequence();};Migration[_0x12ae00('0x1a')][_0x12ae00('0x4')]=function(_0x562475,_0x4d2c53,_0x311749){const _0x32af24=_0x12ae00,_0x1aa482=this;this[_0x32af24('0x16')][_0x32af24('0x2')](function(){const _0x579e17=_0x32af24;return _0x1aa482[_0x579e17('0x8')]['changeColumn'](_0x562475,_0x4d2c53,_0x311749)[_0x579e17('0x12')](function(){const _0x5b7be5=_0x579e17;logger[_0x5b7be5('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x4d2c53,_0x562475);})[_0x579e17('0x1d')](function(_0x15b099){const _0x2761c5=_0x579e17;logger[_0x2761c5('0xe')](JSON[_0x2761c5('0x1c')](_0x15b099));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0x3')]=function(_0x3ad593,_0x4f68b5,_0x4eb798){const _0x818b7d=_0x12ae00,_0x110d06=this;this[_0x818b7d('0x16')][_0x818b7d('0x2')](function(){const _0x6185fc=_0x818b7d;return _0x110d06['queryInterface'][_0x6185fc('0x3')](_0x3ad593,_0x4f68b5,_0x4eb798)[_0x6185fc('0x12')](function(){const _0x40f343=_0x6185fc;logger[_0x40f343('0xe')]('Added\x20column\x20%s\x20to\x20%s',_0x4f68b5,_0x3ad593);})['catch'](function(_0x5c3e31){const _0x71b99c=_0x6185fc;logger[_0x71b99c('0xe')](JSON[_0x71b99c('0x1c')](_0x5c3e31));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0xf')]=function(_0x359e0f){const _0x1c3b25=_0x12ae00,_0x494a38=this;this[_0x1c3b25('0x16')]['enqueue'](function(){const _0x12dba0=_0x1c3b25;return _0x494a38[_0x12dba0('0x8')][_0x12dba0('0xf')](_0x359e0f,{'force':!![]})[_0x12dba0('0x12')](function(){const _0x43bf14=_0x12dba0;logger[_0x43bf14('0xe')](_0x43bf14('0xb'),_0x359e0f);})['catch'](function(_0x3ec1f6){const _0x2db799=_0x12dba0;logger[_0x2db799('0xe')](JSON[_0x2db799('0x1c')](_0x3ec1f6));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0xc')]=function(_0x5b8963,_0x1ed65a,_0x183d96){const _0x311b8d=_0x12ae00,_0x414bae=this;this['sequence'][_0x311b8d('0x2')](function(){const _0x1630db=_0x311b8d;return _0x414bae[_0x1630db('0x8')][_0x1630db('0xc')](_0x5b8963,_0x1ed65a,{'indexName':_0x183d96[_0x1630db('0x5')],'indicesType':_0x183d96[_0x1630db('0x14')]})[_0x1630db('0x12')](function(){const _0x150b2b=_0x1630db;logger[_0x150b2b('0xe')](_0x150b2b('0x6'),_0x5b8963,_0x1ed65a[_0x150b2b('0x0')](','),_0x183d96[_0x150b2b('0x5')],_0x183d96[_0x150b2b('0x14')]);})[_0x1630db('0x1d')](function(_0x2e4226){const _0x3b1836=_0x1630db;logger[_0x3b1836('0xe')](JSON[_0x3b1836('0x1c')](_0x2e4226));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0x17')]=function(_0x182231,_0x208f88){const _0x463742=_0x12ae00,_0x382a01=this;this[_0x463742('0x16')][_0x463742('0x2')](function(){const _0xb8d49d=_0x463742;return _0x382a01[_0xb8d49d('0x8')][_0xb8d49d('0x17')](_0x182231,_0x208f88)[_0xb8d49d('0x12')](function(){const _0x293f95=_0xb8d49d;logger[_0x293f95('0xe')](_0x293f95('0x15'),_0x182231,_0x208f88);})[_0xb8d49d('0x1d')](function(_0x90ba74){const _0x485914=_0xb8d49d;logger[_0x485914('0xe')](JSON[_0x485914('0x1c')](_0x90ba74));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0x13')]=function(_0x156bc0){const _0x1b8b74=_0x12ae00,_0x134f33=this;this[_0x1b8b74('0x16')][_0x1b8b74('0x2')](function(){const _0x12b345=_0x1b8b74;return _0x134f33['queryInterface'][_0x12b345('0xa')][_0x12b345('0x13')](_0x156bc0)[_0x12b345('0x12')](function(){const _0x21a7a9=_0x12b345;logger[_0x21a7a9('0xe')]('query\x20%s',_0x156bc0);})[_0x12b345('0x1d')](function(_0x395cf9){const _0x272db6=_0x12b345;logger[_0x272db6('0xe')](JSON[_0x272db6('0x1c')](_0x395cf9));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0x1')]=function(_0x348d35,_0x1a69f2){const _0x34aa33=_0x12ae00,_0x2c66fe=this;this['sequence'][_0x34aa33('0x2')](function(){const _0x40c29e=_0x34aa33;return _0x2c66fe[_0x40c29e('0x8')][_0x40c29e('0x1')](_0x348d35,_0x1a69f2)[_0x40c29e('0x12')](function(){const _0x17638e=_0x40c29e;logger[_0x17638e('0xe')]('Removed\x20column\x20%s\x20from\x20%s',_0x1a69f2,_0x348d35);})[_0x40c29e('0x1d')](function(_0x231dc6){const _0x338829=_0x40c29e;logger[_0x338829('0xe')](util[_0x338829('0x7')](_0x231dc6,{'showHidden':![],'depth':null}));});});},Migration[_0x12ae00('0x1a')][_0x12ae00('0xd')]=function(_0x4e3b91,_0x4b0d9a,_0x5ebee6){const _0x4dddfa=_0x12ae00,_0x484f01=this;this[_0x4dddfa('0x16')]['enqueue'](function(){const _0x3b01a0=_0x4dddfa;return _0x484f01['queryInterface'][_0x3b01a0('0xd')](_0x4e3b91,_0x4b0d9a,_0x5ebee6)[_0x3b01a0('0x12')](function(){const _0x57867c=_0x3b01a0;logger[_0x57867c('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4b0d9a,_0x5ebee6,_0x4e3b91);})[_0x3b01a0('0x1d')](function(_0x17aab8){const _0x18cdb2=_0x3b01a0;logger[_0x18cdb2('0xe')](util[_0x18cdb2('0x7')](_0x17aab8,{'showHidden':![],'depth':null}));});});},Migration[_0x12ae00('0x1a')]['final']=function(_0x3c61fd){const _0x2548db=_0x12ae00;this[_0x2548db('0x16')]['enqueue'](function(){return _0x3c61fd();});},module[_0x12ae00('0x1b')]={'up':function(_0x3be940){return new Promise(function(_0x21ebbe){const _0x5bffb1=a998_0x4f99,_0x4fe43d=new Migration(_0x3be940);_0x4fe43d[_0x5bffb1('0x13')]('UPDATE\x20sms_accounts\x20SET\x20baseUrl\x20=\x20\x22https://sms.csc.lv\x22\x20WHERE\x20type\x20=\x20\x22csc\x22'),_0x4fe43d[_0x5bffb1('0x11')](_0x21ebbe);});},'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 7d2200e..ee8dd4f 100644 --- a/server/migrations/2.4.16.js +++ b/server/migrations/2.4.16.js @@ -1 +1 @@ -const a999_0x1f7f=['removeIndex','addColumn','cm_contacts','FULLTEXT','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','enqueue','queryInterface','addIndex','fti_cm_contacts','table\x20dropped\x20%s','indexName','stringify','exports','info','prototype','../config/logger','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','final','Added\x20column\x20%s\x20to\x20%s','mobile','then','renameColumn','catch','dropTable','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','sequence','tail','firstName','query\x20%s','email','migration','phone','inspect','changeColumn','fax','query','indicesType','finally'];(function(_0x57db7d,_0x1f7f10){const _0x15ab65=function(_0x2320dd){while(--_0x2320dd){_0x57db7d['push'](_0x57db7d['shift']());}};_0x15ab65(++_0x1f7f10);}(a999_0x1f7f,0x11e));const a999_0x15ab=function(_0x57db7d,_0x1f7f10){_0x57db7d=_0x57db7d-0x0;let _0x15ab65=a999_0x1f7f[_0x57db7d];return _0x15ab65;};const _0x13f25f=a999_0x15ab;'use strict';const util=require('util'),logger=require(_0x13f25f('0x11'))(_0x13f25f('0x22')),Sequence=function(){};Sequence['prototype'][_0x13f25f('0x7')]=function(_0x2320dd){const _0x47e0d2=_0x13f25f;this[_0x47e0d2('0x1e')]=this[_0x47e0d2('0x1e')]?this[_0x47e0d2('0x1e')][_0x47e0d2('0x0')](_0x2320dd):_0x2320dd();};const Migration=function(_0x5d8f98){const _0x195071=_0x13f25f;this[_0x195071('0x8')]=_0x5d8f98,this[_0x195071('0x1d')]=new Sequence();};Migration[_0x13f25f('0x10')][_0x13f25f('0x25')]=function(_0x5f4ccc,_0x1bf8d0,_0x221d67){const _0x3f7116=_0x13f25f,_0x2a8da1=this;this[_0x3f7116('0x1d')][_0x3f7116('0x7')](function(){const _0x4a7b06=_0x3f7116;return _0x2a8da1[_0x4a7b06('0x8')][_0x4a7b06('0x25')](_0x5f4ccc,_0x1bf8d0,_0x221d67)['then'](function(){const _0x11ea95=_0x4a7b06;logger[_0x11ea95('0xf')](_0x11ea95('0x5'),_0x1bf8d0,_0x5f4ccc);})[_0x4a7b06('0x19')](function(_0x32e3fd){const _0x2680c4=_0x4a7b06;logger[_0x2680c4('0xf')](JSON[_0x2680c4('0xd')](_0x32e3fd));});});},Migration[_0x13f25f('0x10')][_0x13f25f('0x2')]=function(_0x51908e,_0xb7f3e0,_0x21232a){const _0x2ef62b=_0x13f25f,_0x292561=this;this[_0x2ef62b('0x1d')][_0x2ef62b('0x7')](function(){const _0x2cc950=_0x2ef62b;return _0x292561[_0x2cc950('0x8')][_0x2cc950('0x2')](_0x51908e,_0xb7f3e0,_0x21232a)[_0x2cc950('0x17')](function(){const _0x7f1f5b=_0x2cc950;logger['info'](_0x7f1f5b('0x15'),_0xb7f3e0,_0x51908e);})[_0x2cc950('0x19')](function(_0x449f05){const _0x9b5753=_0x2cc950;logger[_0x9b5753('0xf')](JSON[_0x9b5753('0xd')](_0x449f05));});});},Migration[_0x13f25f('0x10')][_0x13f25f('0x1a')]=function(_0x1c3f6e){const _0x3ef541=_0x13f25f,_0x2683b7=this;this[_0x3ef541('0x1d')]['enqueue'](function(){const _0x429881=_0x3ef541;return _0x2683b7[_0x429881('0x8')]['dropTable'](_0x1c3f6e,{'force':!![]})[_0x429881('0x17')](function(){const _0x1e3bf1=_0x429881;logger[_0x1e3bf1('0xf')](_0x1e3bf1('0xb'),_0x1c3f6e);})[_0x429881('0x19')](function(_0x3751a0){const _0x14dea2=_0x429881;logger[_0x14dea2('0xf')](JSON[_0x14dea2('0xd')](_0x3751a0));});});},Migration[_0x13f25f('0x10')]['addIndex']=function(_0x31d408,_0x10d7e9,_0x370d89){const _0xafde61=_0x13f25f,_0x5d31b5=this;this[_0xafde61('0x1d')]['enqueue'](function(){const _0x29d4cd=_0xafde61;return _0x5d31b5[_0x29d4cd('0x8')][_0x29d4cd('0x9')](_0x31d408,_0x10d7e9,{'indexName':_0x370d89[_0x29d4cd('0xc')],'indicesType':_0x370d89[_0x29d4cd('0x28')]})['then'](function(){const _0x281de1=_0x29d4cd;logger[_0x281de1('0xf')](_0x281de1('0x13'),_0x31d408,_0x10d7e9[_0x281de1('0x1c')](','),_0x370d89[_0x281de1('0xc')],_0x370d89[_0x281de1('0x28')]);})[_0x29d4cd('0x19')](function(_0x40aae7){const _0x40b2e1=_0x29d4cd;logger[_0x40b2e1('0xf')](JSON[_0x40b2e1('0xd')](_0x40aae7));});});},Migration[_0x13f25f('0x10')]['removeIndex']=function(_0x30a229,_0x12b3ad){const _0x1c011b=_0x13f25f,_0x281cd9=this;this[_0x1c011b('0x1d')][_0x1c011b('0x7')](function(){const _0x24de8c=_0x1c011b;return _0x281cd9['queryInterface'][_0x24de8c('0x1')](_0x30a229,_0x12b3ad)['then'](function(){const _0x462e8b=_0x24de8c;logger['info'](_0x462e8b('0x12'),_0x30a229,_0x12b3ad);})[_0x24de8c('0x19')](function(_0x3f4365){const _0x3b1ffb=_0x24de8c;logger['info'](JSON[_0x3b1ffb('0xd')](_0x3f4365));});});},Migration[_0x13f25f('0x10')][_0x13f25f('0x27')]=function(_0x4cc987){const _0x4a4c72=_0x13f25f,_0x1b602d=this;this[_0x4a4c72('0x1d')][_0x4a4c72('0x7')](function(){const _0x240bb9=_0x4a4c72;return _0x1b602d[_0x240bb9('0x8')]['sequelize'][_0x240bb9('0x27')](_0x4cc987)[_0x240bb9('0x17')](function(){const _0x149682=_0x240bb9;logger[_0x149682('0xf')](_0x149682('0x20'),_0x4cc987);})['catch'](function(_0x4d255e){const _0x56a3db=_0x240bb9;logger[_0x56a3db('0xf')](JSON[_0x56a3db('0xd')](_0x4d255e));});});},Migration[_0x13f25f('0x10')]['removeColumn']=function(_0xc06e78,_0x3079a1){const _0x306443=_0x13f25f,_0x47040b=this;this[_0x306443('0x1d')][_0x306443('0x7')](function(){const _0x1e52e7=_0x306443;return _0x47040b[_0x1e52e7('0x8')]['removeColumn'](_0xc06e78,_0x3079a1)['then'](function(){const _0x6c4514=_0x1e52e7;logger[_0x6c4514('0xf')](_0x6c4514('0x6'),_0x3079a1,_0xc06e78);})[_0x1e52e7('0x19')](function(_0x43d8e7){const _0x3830e2=_0x1e52e7;logger[_0x3830e2('0xf')](util[_0x3830e2('0x24')](_0x43d8e7,{'showHidden':![],'depth':null}));});});},Migration[_0x13f25f('0x10')][_0x13f25f('0x18')]=function(_0x38443b,_0x1bae43,_0x1c6a4c){const _0x4f6bce=_0x13f25f,_0x36cbe2=this;this['sequence'][_0x4f6bce('0x7')](function(){const _0x89d897=_0x4f6bce;return _0x36cbe2['queryInterface'][_0x89d897('0x18')](_0x38443b,_0x1bae43,_0x1c6a4c)['then'](function(){const _0x12311d=_0x89d897;logger[_0x12311d('0xf')](_0x12311d('0x1b'),_0x1bae43,_0x1c6a4c,_0x38443b);})[_0x89d897('0x19')](function(_0x251917){const _0x11f770=_0x89d897;logger[_0x11f770('0xf')](util[_0x11f770('0x24')](_0x251917,{'showHidden':![],'depth':null}));});});},Migration[_0x13f25f('0x10')][_0x13f25f('0x14')]=function(_0x5128e8){const _0x23373b=_0x13f25f;this[_0x23373b('0x1d')]['enqueue'](function(){return _0x5128e8();});},module[_0x13f25f('0xe')]={'up':function(_0x59d578){return new Promise(function(_0xfb3f80){const _0x4761ba=a999_0x15ab,_0x20d75b=new Migration(_0x59d578);_0x20d75b['addIndex'](_0x4761ba('0x3'),[_0x4761ba('0x1f'),'lastName',_0x4761ba('0x23'),_0x4761ba('0x16'),_0x4761ba('0x26'),_0x4761ba('0x21')],{'indexName':_0x4761ba('0xa'),'indicesType':_0x4761ba('0x4')}),_0x20d75b[_0x4761ba('0x14')](_0xfb3f80);});},'down':function(){}}; \ No newline at end of file +const a999_0x50df=['queryInterface','query','firstName','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','inspect','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','renameColumn','then','indicesType','sequence','phone','prototype','catch','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','migration','util','FULLTEXT','indexName','stringify','dropTable','join','fax','removeColumn','addIndex','Added\x20column\x20%s\x20to\x20%s','final','lastName','mobile','enqueue','query\x20%s','exports','cm_contacts','addColumn','finally','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','fti_cm_contacts'];(function(_0x59dbf0,_0x50dfe0){const _0x4ccadc=function(_0x2a4a1f){while(--_0x2a4a1f){_0x59dbf0['push'](_0x59dbf0['shift']());}};_0x4ccadc(++_0x50dfe0);}(a999_0x50df,0xd5));const a999_0x4cca=function(_0x59dbf0,_0x50dfe0){_0x59dbf0=_0x59dbf0-0x0;let _0x4ccadc=a999_0x50df[_0x59dbf0];return _0x4ccadc;};const _0x4fbddd=a999_0x4cca;'use strict';const util=require(_0x4fbddd('0x5')),logger=require('../config/logger')(_0x4fbddd('0x4')),Sequence=function(){};Sequence[_0x4fbddd('0x0')][_0x4fbddd('0x12')]=function(_0x2a4a1f){const _0x35f543=_0x4fbddd;this[_0x35f543('0x18')]=this['tail']?this[_0x35f543('0x18')][_0x35f543('0x17')](_0x2a4a1f):_0x2a4a1f();};const Migration=function(_0x5e94b5){const _0x12e840=_0x4fbddd;this[_0x12e840('0x1b')]=_0x5e94b5,this[_0x12e840('0x26')]=new Sequence();};Migration[_0x4fbddd('0x0')][_0x4fbddd('0x1f')]=function(_0x15eecd,_0x2c7676,_0x55961d){const _0x153c39=_0x4fbddd,_0x542cab=this;this[_0x153c39('0x26')][_0x153c39('0x12')](function(){const _0x5130c3=_0x153c39;return _0x542cab[_0x5130c3('0x1b')][_0x5130c3('0x1f')](_0x15eecd,_0x2c7676,_0x55961d)['then'](function(){const _0x52f3ec=_0x5130c3;logger['info'](_0x52f3ec('0x1e'),_0x2c7676,_0x15eecd);})[_0x5130c3('0x1')](function(_0x3028d6){const _0x268db1=_0x5130c3;logger[_0x268db1('0x2')](JSON[_0x268db1('0x8')](_0x3028d6));});});},Migration[_0x4fbddd('0x0')][_0x4fbddd('0x16')]=function(_0x2cc2d0,_0x1868a8,_0x5b56c8){const _0x547bf2=_0x4fbddd,_0x4e4c2d=this;this['sequence'][_0x547bf2('0x12')](function(){const _0x3f5c85=_0x547bf2;return _0x4e4c2d['queryInterface']['addColumn'](_0x2cc2d0,_0x1868a8,_0x5b56c8)['then'](function(){const _0x339f4e=a999_0x4cca;logger[_0x339f4e('0x2')](_0x339f4e('0xe'),_0x1868a8,_0x2cc2d0);})[_0x3f5c85('0x1')](function(_0x33b615){const _0x4af64c=_0x3f5c85;logger[_0x4af64c('0x2')](JSON[_0x4af64c('0x8')](_0x33b615));});});},Migration[_0x4fbddd('0x0')][_0x4fbddd('0x9')]=function(_0x521802){const _0x44a26=_0x4fbddd,_0x4d3a52=this;this[_0x44a26('0x26')][_0x44a26('0x12')](function(){const _0x4e9124=_0x44a26;return _0x4d3a52[_0x4e9124('0x1b')][_0x4e9124('0x9')](_0x521802,{'force':!![]})[_0x4e9124('0x24')](function(){logger['info']('table\x20dropped\x20%s',_0x521802);})['catch'](function(_0x29e249){const _0x532829=_0x4e9124;logger[_0x532829('0x2')](JSON[_0x532829('0x8')](_0x29e249));});});},Migration[_0x4fbddd('0x0')]['addIndex']=function(_0x11d576,_0x3acba3,_0x1c83bb){const _0x17886a=_0x4fbddd,_0x2ce698=this;this[_0x17886a('0x26')][_0x17886a('0x12')](function(){const _0x7ba49d=_0x17886a;return _0x2ce698[_0x7ba49d('0x1b')][_0x7ba49d('0xd')](_0x11d576,_0x3acba3,{'indexName':_0x1c83bb[_0x7ba49d('0x7')],'indicesType':_0x1c83bb[_0x7ba49d('0x25')]})[_0x7ba49d('0x24')](function(){const _0x4f954d=_0x7ba49d;logger[_0x4f954d('0x2')](_0x4f954d('0x3'),_0x11d576,_0x3acba3[_0x4f954d('0xa')](','),_0x1c83bb[_0x4f954d('0x7')],_0x1c83bb['indicesType']);})[_0x7ba49d('0x1')](function(_0x3faa7c){const _0x5cdcea=_0x7ba49d;logger[_0x5cdcea('0x2')](JSON[_0x5cdcea('0x8')](_0x3faa7c));});});},Migration[_0x4fbddd('0x0')]['removeIndex']=function(_0x42a6a8,_0x5719e6){const _0x58614f=_0x4fbddd,_0x5af1e0=this;this[_0x58614f('0x26')]['enqueue'](function(){const _0x13880a=_0x58614f;return _0x5af1e0[_0x13880a('0x1b')]['removeIndex'](_0x42a6a8,_0x5719e6)[_0x13880a('0x24')](function(){const _0x38b1bb=_0x13880a;logger[_0x38b1bb('0x2')](_0x38b1bb('0x21'),_0x42a6a8,_0x5719e6);})[_0x13880a('0x1')](function(_0x2f680e){const _0x408300=_0x13880a;logger[_0x408300('0x2')](JSON[_0x408300('0x8')](_0x2f680e));});});},Migration['prototype'][_0x4fbddd('0x1c')]=function(_0x27ea1a){const _0x21835d=_0x4fbddd,_0x41033b=this;this[_0x21835d('0x26')][_0x21835d('0x12')](function(){const _0x4ac40f=_0x21835d;return _0x41033b['queryInterface']['sequelize'][_0x4ac40f('0x1c')](_0x27ea1a)[_0x4ac40f('0x24')](function(){const _0x3ba30f=_0x4ac40f;logger[_0x3ba30f('0x2')](_0x3ba30f('0x13'),_0x27ea1a);})[_0x4ac40f('0x1')](function(_0x53e084){const _0x38c2c9=_0x4ac40f;logger[_0x38c2c9('0x2')](JSON[_0x38c2c9('0x8')](_0x53e084));});});},Migration[_0x4fbddd('0x0')][_0x4fbddd('0xc')]=function(_0x104fe4,_0x1fa5ec){const _0x559700=_0x4fbddd,_0x188885=this;this[_0x559700('0x26')][_0x559700('0x12')](function(){const _0x1af100=_0x559700;return _0x188885[_0x1af100('0x1b')][_0x1af100('0xc')](_0x104fe4,_0x1fa5ec)[_0x1af100('0x24')](function(){const _0x20712a=_0x1af100;logger[_0x20712a('0x2')](_0x20712a('0x22'),_0x1fa5ec,_0x104fe4);})[_0x1af100('0x1')](function(_0x2c063a){const _0x2caac6=_0x1af100;logger[_0x2caac6('0x2')](util[_0x2caac6('0x20')](_0x2c063a,{'showHidden':![],'depth':null}));});});},Migration[_0x4fbddd('0x0')][_0x4fbddd('0x23')]=function(_0x5ac274,_0xbdb101,_0x33eb00){const _0x1f6a56=_0x4fbddd,_0x376259=this;this[_0x1f6a56('0x26')][_0x1f6a56('0x12')](function(){const _0x325e36=_0x1f6a56;return _0x376259['queryInterface'][_0x325e36('0x23')](_0x5ac274,_0xbdb101,_0x33eb00)['then'](function(){const _0x2258b7=_0x325e36;logger[_0x2258b7('0x2')](_0x2258b7('0x19'),_0xbdb101,_0x33eb00,_0x5ac274);})['catch'](function(_0x42c198){const _0x31d9dd=_0x325e36;logger[_0x31d9dd('0x2')](util[_0x31d9dd('0x20')](_0x42c198,{'showHidden':![],'depth':null}));});});},Migration[_0x4fbddd('0x0')][_0x4fbddd('0xf')]=function(_0x240229){const _0x570841=_0x4fbddd;this[_0x570841('0x26')]['enqueue'](function(){return _0x240229();});},module[_0x4fbddd('0x14')]={'up':function(_0x1474aa){return new Promise(function(_0xfc77d5){const _0x5e68f6=a999_0x4cca,_0x2214d9=new Migration(_0x1474aa);_0x2214d9[_0x5e68f6('0xd')](_0x5e68f6('0x15'),[_0x5e68f6('0x1d'),_0x5e68f6('0x10'),_0x5e68f6('0x27'),_0x5e68f6('0x11'),_0x5e68f6('0xb'),'email'],{'indexName':_0x5e68f6('0x1a'),'indicesType':_0x5e68f6('0x6')}),_0x2214d9[_0x5e68f6('0xf')](_0xfc77d5);});},'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 7600f08..d2c0e0e 100644 --- a/server/migrations/2.4.17.js +++ b/server/migrations/2.4.17.js @@ -1 +1 @@ -const a1000_0x5ad5=['renameColumn','removeColumn','addColumn','query','prototype','indexName','stringify','Removed\x20column\x20%s\x20from\x20%s','exports','then','query\x20%s','finally','changeColumn','catch','queryInterface','join','table\x20dropped\x20%s','enqueue','removeIndex','sequence','tail','final','indicesType','util','sequelize','info','inspect','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','removeIndex\x20%s\x20%s'];(function(_0x3d0737,_0x5ad53d){const _0x596cc4=function(_0x782582){while(--_0x782582){_0x3d0737['push'](_0x3d0737['shift']());}};_0x596cc4(++_0x5ad53d);}(a1000_0x5ad5,0x8a));const a1000_0x596c=function(_0x3d0737,_0x5ad53d){_0x3d0737=_0x3d0737-0x0;let _0x596cc4=a1000_0x5ad5[_0x3d0737];return _0x596cc4;};const _0x292539=a1000_0x596c;'use strict';const util=require(_0x292539('0x5')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x292539('0x10')]['enqueue']=function(_0x782582){const _0x50536b=_0x292539;this[_0x50536b('0x2')]=this[_0x50536b('0x2')]?this[_0x50536b('0x2')][_0x50536b('0x17')](_0x782582):_0x782582();};const Migration=function(_0x3ed396){const _0xc762aa=_0x292539;this[_0xc762aa('0x1a')]=_0x3ed396,this[_0xc762aa('0x1')]=new Sequence();};Migration[_0x292539('0x10')][_0x292539('0x18')]=function(_0x1a1f47,_0x1506fd,_0x1949ca){const _0x27e3db=_0x292539,_0x52d5e5=this;this[_0x27e3db('0x1')][_0x27e3db('0x1d')](function(){const _0x47973a=_0x27e3db;return _0x52d5e5['queryInterface'][_0x47973a('0x18')](_0x1a1f47,_0x1506fd,_0x1949ca)[_0x47973a('0x15')](function(){const _0x38ed6b=_0x47973a;logger[_0x38ed6b('0x7')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1506fd,_0x1a1f47);})[_0x47973a('0x19')](function(_0xe4bc98){const _0x21743b=_0x47973a;logger[_0x21743b('0x7')](JSON[_0x21743b('0x12')](_0xe4bc98));});});},Migration['prototype'][_0x292539('0xe')]=function(_0x41be3d,_0x413308,_0x492f74){const _0xcda94e=_0x292539,_0x3c1561=this;this[_0xcda94e('0x1')][_0xcda94e('0x1d')](function(){const _0x2ce4b7=_0xcda94e;return _0x3c1561['queryInterface'][_0x2ce4b7('0xe')](_0x41be3d,_0x413308,_0x492f74)['then'](function(){const _0xf6f7e9=_0x2ce4b7;logger[_0xf6f7e9('0x7')]('Added\x20column\x20%s\x20to\x20%s',_0x413308,_0x41be3d);})[_0x2ce4b7('0x19')](function(_0xf0a551){const _0x3c244a=_0x2ce4b7;logger[_0x3c244a('0x7')](JSON[_0x3c244a('0x12')](_0xf0a551));});});},Migration[_0x292539('0x10')][_0x292539('0xa')]=function(_0x281f0a){const _0x492b02=_0x292539,_0x3f6bbe=this;this[_0x492b02('0x1')][_0x492b02('0x1d')](function(){const _0x16bf8b=_0x492b02;return _0x3f6bbe['queryInterface'][_0x16bf8b('0xa')](_0x281f0a,{'force':!![]})[_0x16bf8b('0x15')](function(){const _0x5367b6=_0x16bf8b;logger['info'](_0x5367b6('0x1c'),_0x281f0a);})[_0x16bf8b('0x19')](function(_0x5abd4f){const _0x25cf49=_0x16bf8b;logger[_0x25cf49('0x7')](JSON[_0x25cf49('0x12')](_0x5abd4f));});});},Migration[_0x292539('0x10')]['addIndex']=function(_0x2bc277,_0x2f2d97,_0x296037){const _0x247444=_0x292539,_0x1830d9=this;this[_0x247444('0x1')][_0x247444('0x1d')](function(){const _0x5cb8c1=_0x247444;return _0x1830d9[_0x5cb8c1('0x1a')]['addIndex'](_0x2bc277,_0x2f2d97,{'indexName':_0x296037['indexName'],'indicesType':_0x296037[_0x5cb8c1('0x4')]})[_0x5cb8c1('0x15')](function(){const _0x4332c1=_0x5cb8c1;logger['info'](_0x4332c1('0x9'),_0x2bc277,_0x2f2d97[_0x4332c1('0x1b')](','),_0x296037[_0x4332c1('0x11')],_0x296037[_0x4332c1('0x4')]);})[_0x5cb8c1('0x19')](function(_0x36c438){const _0x1b4015=_0x5cb8c1;logger[_0x1b4015('0x7')](JSON[_0x1b4015('0x12')](_0x36c438));});});},Migration[_0x292539('0x10')][_0x292539('0x0')]=function(_0x181633,_0x32284a){const _0x584319=_0x292539,_0x521719=this;this['sequence'][_0x584319('0x1d')](function(){const _0x1221de=_0x584319;return _0x521719[_0x1221de('0x1a')][_0x1221de('0x0')](_0x181633,_0x32284a)[_0x1221de('0x15')](function(){const _0x254160=_0x1221de;logger[_0x254160('0x7')](_0x254160('0xb'),_0x181633,_0x32284a);})[_0x1221de('0x19')](function(_0x3e410b){const _0x1d46c4=_0x1221de;logger['info'](JSON[_0x1d46c4('0x12')](_0x3e410b));});});},Migration[_0x292539('0x10')][_0x292539('0xf')]=function(_0x14c8f6){const _0x1945dd=_0x292539,_0x384442=this;this['sequence'][_0x1945dd('0x1d')](function(){const _0xce2f9d=_0x1945dd;return _0x384442[_0xce2f9d('0x1a')][_0xce2f9d('0x6')]['query'](_0x14c8f6)[_0xce2f9d('0x15')](function(){const _0x2bc4d6=_0xce2f9d;logger[_0x2bc4d6('0x7')](_0x2bc4d6('0x16'),_0x14c8f6);})[_0xce2f9d('0x19')](function(_0x32019b){const _0x492016=_0xce2f9d;logger[_0x492016('0x7')](JSON['stringify'](_0x32019b));});});},Migration[_0x292539('0x10')][_0x292539('0xd')]=function(_0x2c78ad,_0x1e7dcb){const _0x320115=_0x292539,_0x2d3f57=this;this['sequence'][_0x320115('0x1d')](function(){const _0x5e62cc=_0x320115;return _0x2d3f57[_0x5e62cc('0x1a')][_0x5e62cc('0xd')](_0x2c78ad,_0x1e7dcb)[_0x5e62cc('0x15')](function(){const _0xa1dc7d=_0x5e62cc;logger['info'](_0xa1dc7d('0x13'),_0x1e7dcb,_0x2c78ad);})['catch'](function(_0x329262){const _0xaabc2c=_0x5e62cc;logger[_0xaabc2c('0x7')](util[_0xaabc2c('0x8')](_0x329262,{'showHidden':![],'depth':null}));});});},Migration[_0x292539('0x10')][_0x292539('0xc')]=function(_0x3d70d2,_0x1af6e5,_0x430f24){const _0x4cb33f=_0x292539,_0xe39101=this;this[_0x4cb33f('0x1')]['enqueue'](function(){const _0x14b183=_0x4cb33f;return _0xe39101[_0x14b183('0x1a')][_0x14b183('0xc')](_0x3d70d2,_0x1af6e5,_0x430f24)[_0x14b183('0x15')](function(){const _0x1dbbac=_0x14b183;logger[_0x1dbbac('0x7')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1af6e5,_0x430f24,_0x3d70d2);})[_0x14b183('0x19')](function(_0x29b976){const _0x17a547=_0x14b183;logger[_0x17a547('0x7')](util[_0x17a547('0x8')](_0x29b976,{'showHidden':![],'depth':null}));});});},Migration[_0x292539('0x10')]['final']=function(_0x2539aa){const _0x290976=_0x292539;this[_0x290976('0x1')][_0x290976('0x1d')](function(){return _0x2539aa();});},module[_0x292539('0x14')]={'up':function(_0x3c24ef){return new Promise(function(_0x1e460a){const _0x2e2617=a1000_0x596c,_0x2ed848=new Migration(_0x3c24ef);_0x2ed848[_0x2e2617('0x3')](_0x1e460a);});},'down':function(){}}; \ No newline at end of file +const a1000_0x287c=['query\x20%s','indexName','util','addIndex','removeIndex','Removed\x20column\x20%s\x20from\x20%s','query','dropTable','exports','catch','prototype','table\x20dropped\x20%s','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally','../config/logger','then','inspect','renameColumn','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','enqueue','join','addColumn','migration','removeColumn','info','removeIndex\x20%s\x20%s','tail','stringify','final','sequence'];(function(_0x2af00d,_0x287c02){const _0x253165=function(_0x148417){while(--_0x148417){_0x2af00d['push'](_0x2af00d['shift']());}};_0x253165(++_0x287c02);}(a1000_0x287c,0x1bc));const a1000_0x2531=function(_0x2af00d,_0x287c02){_0x2af00d=_0x2af00d-0x0;let _0x253165=a1000_0x287c[_0x2af00d];return _0x253165;};const _0x4a60f4=a1000_0x2531;'use strict';const util=require(_0x4a60f4('0x14')),logger=require(_0x4a60f4('0x0'))(_0x4a60f4('0xa')),Sequence=function(){};Sequence[_0x4a60f4('0x1c')][_0x4a60f4('0x7')]=function(_0x148417){const _0x2f51fe=_0x4a60f4;this[_0x2f51fe('0xe')]=this[_0x2f51fe('0xe')]?this[_0x2f51fe('0xe')][_0x2f51fe('0x20')](_0x148417):_0x148417();};const Migration=function(_0x29eebc){const _0x396c05=_0x4a60f4;this[_0x396c05('0x6')]=_0x29eebc,this['sequence']=new Sequence();};Migration[_0x4a60f4('0x1c')][_0x4a60f4('0x4')]=function(_0xe44531,_0x5d4879,_0x2b01b5){const _0x3382d8=_0x4a60f4,_0x335db5=this;this['sequence'][_0x3382d8('0x7')](function(){const _0x435bda=_0x3382d8;return _0x335db5[_0x435bda('0x6')][_0x435bda('0x4')](_0xe44531,_0x5d4879,_0x2b01b5)[_0x435bda('0x1')](function(){const _0x280315=_0x435bda;logger[_0x280315('0xc')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x5d4879,_0xe44531);})[_0x435bda('0x1b')](function(_0x1bc950){const _0x2f8336=_0x435bda;logger[_0x2f8336('0xc')](JSON['stringify'](_0x1bc950));});});},Migration[_0x4a60f4('0x1c')]['addColumn']=function(_0x5b1a66,_0x207e6c,_0x3a3daa){const _0x17a5c4=this;this['sequence']['enqueue'](function(){const _0x1df843=a1000_0x2531;return _0x17a5c4[_0x1df843('0x6')][_0x1df843('0x9')](_0x5b1a66,_0x207e6c,_0x3a3daa)[_0x1df843('0x1')](function(){const _0x3ace29=_0x1df843;logger['info'](_0x3ace29('0x1e'),_0x207e6c,_0x5b1a66);})[_0x1df843('0x1b')](function(_0x483f75){const _0x116701=_0x1df843;logger['info'](JSON[_0x116701('0xf')](_0x483f75));});});},Migration['prototype'][_0x4a60f4('0x19')]=function(_0x251fb4){const _0x27af9c=_0x4a60f4,_0x26c614=this;this[_0x27af9c('0x11')][_0x27af9c('0x7')](function(){const _0x178ed6=_0x27af9c;return _0x26c614[_0x178ed6('0x6')][_0x178ed6('0x19')](_0x251fb4,{'force':!![]})[_0x178ed6('0x1')](function(){const _0x224191=_0x178ed6;logger[_0x224191('0xc')](_0x224191('0x1d'),_0x251fb4);})[_0x178ed6('0x1b')](function(_0x58e9c5){logger['info'](JSON['stringify'](_0x58e9c5));});});},Migration[_0x4a60f4('0x1c')]['addIndex']=function(_0x157cbb,_0x397f14,_0x3ebaa9){const _0x32e5ae=_0x4a60f4,_0x376312=this;this[_0x32e5ae('0x11')][_0x32e5ae('0x7')](function(){const _0x1fd48d=_0x32e5ae;return _0x376312[_0x1fd48d('0x6')][_0x1fd48d('0x15')](_0x157cbb,_0x397f14,{'indexName':_0x3ebaa9[_0x1fd48d('0x13')],'indicesType':_0x3ebaa9['indicesType']})[_0x1fd48d('0x1')](function(){const _0x48c58b=_0x1fd48d;logger[_0x48c58b('0xc')](_0x48c58b('0x5'),_0x157cbb,_0x397f14[_0x48c58b('0x8')](','),_0x3ebaa9[_0x48c58b('0x13')],_0x3ebaa9['indicesType']);})[_0x1fd48d('0x1b')](function(_0x3c3668){const _0x573161=_0x1fd48d;logger[_0x573161('0xc')](JSON[_0x573161('0xf')](_0x3c3668));});});},Migration[_0x4a60f4('0x1c')][_0x4a60f4('0x16')]=function(_0x168245,_0x534ac9){const _0x54d8cd=_0x4a60f4,_0xda950c=this;this[_0x54d8cd('0x11')][_0x54d8cd('0x7')](function(){const _0x29eac7=_0x54d8cd;return _0xda950c[_0x29eac7('0x6')][_0x29eac7('0x16')](_0x168245,_0x534ac9)['then'](function(){const _0xc80dca=_0x29eac7;logger[_0xc80dca('0xc')](_0xc80dca('0xd'),_0x168245,_0x534ac9);})[_0x29eac7('0x1b')](function(_0x1b39ff){const _0x5a7310=_0x29eac7;logger[_0x5a7310('0xc')](JSON[_0x5a7310('0xf')](_0x1b39ff));});});},Migration[_0x4a60f4('0x1c')][_0x4a60f4('0x18')]=function(_0x3d3e01){const _0x45e12e=_0x4a60f4,_0x1af76f=this;this[_0x45e12e('0x11')][_0x45e12e('0x7')](function(){const _0x41df44=_0x45e12e;return _0x1af76f[_0x41df44('0x6')]['sequelize'][_0x41df44('0x18')](_0x3d3e01)[_0x41df44('0x1')](function(){const _0x41bff1=_0x41df44;logger[_0x41bff1('0xc')](_0x41bff1('0x12'),_0x3d3e01);})[_0x41df44('0x1b')](function(_0xb2d04f){const _0x16cee7=_0x41df44;logger[_0x16cee7('0xc')](JSON['stringify'](_0xb2d04f));});});},Migration[_0x4a60f4('0x1c')][_0x4a60f4('0xb')]=function(_0x5978bd,_0x3e7151){const _0x13b7a4=_0x4a60f4,_0x234722=this;this['sequence'][_0x13b7a4('0x7')](function(){const _0x2b980e=_0x13b7a4;return _0x234722[_0x2b980e('0x6')][_0x2b980e('0xb')](_0x5978bd,_0x3e7151)[_0x2b980e('0x1')](function(){const _0x1b82eb=_0x2b980e;logger[_0x1b82eb('0xc')](_0x1b82eb('0x17'),_0x3e7151,_0x5978bd);})[_0x2b980e('0x1b')](function(_0x1a46c4){const _0x5f111c=_0x2b980e;logger['info'](util[_0x5f111c('0x2')](_0x1a46c4,{'showHidden':![],'depth':null}));});});},Migration[_0x4a60f4('0x1c')][_0x4a60f4('0x3')]=function(_0xf3b93f,_0x116386,_0xb6c4a6){const _0x13bb50=_0x4a60f4,_0x302d15=this;this[_0x13bb50('0x11')][_0x13bb50('0x7')](function(){const _0x43e609=_0x13bb50;return _0x302d15[_0x43e609('0x6')][_0x43e609('0x3')](_0xf3b93f,_0x116386,_0xb6c4a6)['then'](function(){const _0xc64c99=_0x43e609;logger[_0xc64c99('0xc')](_0xc64c99('0x1f'),_0x116386,_0xb6c4a6,_0xf3b93f);})['catch'](function(_0x486523){const _0x176d7a=_0x43e609;logger[_0x176d7a('0xc')](util[_0x176d7a('0x2')](_0x486523,{'showHidden':![],'depth':null}));});});},Migration[_0x4a60f4('0x1c')]['final']=function(_0x34b7c4){const _0x4f6ce4=_0x4a60f4;this[_0x4f6ce4('0x11')][_0x4f6ce4('0x7')](function(){return _0x34b7c4();});},module[_0x4a60f4('0x1a')]={'up':function(_0x1bbed1){return new Promise(function(_0x4230d6){const _0x4677b5=a1000_0x2531,_0x509395=new Migration(_0x1bbed1);_0x509395[_0x4677b5('0x10')](_0x4230d6);});},'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 409afe1..983d8c1 100644 --- a/server/migrations/2.4.18.js +++ b/server/migrations/2.4.18.js @@ -1 +1 @@ -const a1001_0x5399=['migration','sequence','indexName','inspect','table\x20dropped\x20%s','removeColumn','sequelize','query\x20%s','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','Removed\x20column\x20%s\x20from\x20%s','queryInterface','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','stringify','catch','indicesType','util','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','then','addIndex','final','finally','renameColumn','dropTable','enqueue','exports','tail','addColumn','changeColumn','info','removeIndex','join','../config/logger','UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL'];(function(_0x44ac09,_0x53991a){const _0x547421=function(_0x1132f7){while(--_0x1132f7){_0x44ac09['push'](_0x44ac09['shift']());}};_0x547421(++_0x53991a);}(a1001_0x5399,0x95));const a1001_0x5474=function(_0x44ac09,_0x53991a){_0x44ac09=_0x44ac09-0x0;let _0x547421=a1001_0x5399[_0x44ac09];return _0x547421;};const _0x26d42f=a1001_0x5474;'use strict';const util=require(_0x26d42f('0x11')),logger=require(_0x26d42f('0x22'))(_0x26d42f('0x24')),Sequence=function(){};Sequence[_0x26d42f('0x7')][_0x26d42f('0x1a')]=function(_0x1132f7){const _0x588f31=_0x26d42f;this['tail']=this[_0x588f31('0x1c')]?this[_0x588f31('0x1c')][_0x588f31('0x17')](_0x1132f7):_0x1132f7();};const Migration=function(_0x5531f){const _0x24dbe5=_0x26d42f;this[_0x24dbe5('0xc')]=_0x5531f,this[_0x24dbe5('0x0')]=new Sequence();};Migration[_0x26d42f('0x7')][_0x26d42f('0x1e')]=function(_0x3c5f8e,_0x5057d1,_0x188c70){const _0x605a98=_0x26d42f,_0x32ec11=this;this[_0x605a98('0x0')]['enqueue'](function(){const _0x5573ae=_0x605a98;return _0x32ec11[_0x5573ae('0xc')][_0x5573ae('0x1e')](_0x3c5f8e,_0x5057d1,_0x188c70)['then'](function(){const _0x57ea5d=_0x5573ae;logger[_0x57ea5d('0x1f')](_0x57ea5d('0xa'),_0x5057d1,_0x3c5f8e);})[_0x5573ae('0xf')](function(_0x3b31a5){const _0x485694=_0x5573ae;logger[_0x485694('0x1f')](JSON[_0x485694('0xe')](_0x3b31a5));});});},Migration[_0x26d42f('0x7')][_0x26d42f('0x1d')]=function(_0x5dbce7,_0x12a71c,_0x1505ff){const _0x148ca4=this;this['sequence']['enqueue'](function(){const _0x82f205=a1001_0x5474;return _0x148ca4[_0x82f205('0xc')]['addColumn'](_0x5dbce7,_0x12a71c,_0x1505ff)[_0x82f205('0x14')](function(){const _0x4b3b65=_0x82f205;logger[_0x4b3b65('0x1f')]('Added\x20column\x20%s\x20to\x20%s',_0x12a71c,_0x5dbce7);})[_0x82f205('0xf')](function(_0x222b5e){const _0xe73574=_0x82f205;logger[_0xe73574('0x1f')](JSON[_0xe73574('0xe')](_0x222b5e));});});},Migration['prototype']['dropTable']=function(_0x59e64c){const _0x3db20c=_0x26d42f,_0x47f086=this;this['sequence'][_0x3db20c('0x1a')](function(){const _0x3fd5df=_0x3db20c;return _0x47f086[_0x3fd5df('0xc')][_0x3fd5df('0x19')](_0x59e64c,{'force':!![]})[_0x3fd5df('0x14')](function(){const _0x4b27bc=_0x3fd5df;logger['info'](_0x4b27bc('0x3'),_0x59e64c);})[_0x3fd5df('0xf')](function(_0x5adef8){const _0x4a2db4=_0x3fd5df;logger[_0x4a2db4('0x1f')](JSON[_0x4a2db4('0xe')](_0x5adef8));});});},Migration['prototype'][_0x26d42f('0x15')]=function(_0x1fc047,_0x11c91d,_0x593e8e){const _0xdbb94f=_0x26d42f,_0x53967d=this;this[_0xdbb94f('0x0')][_0xdbb94f('0x1a')](function(){const _0x2b0b3c=_0xdbb94f;return _0x53967d['queryInterface'][_0x2b0b3c('0x15')](_0x1fc047,_0x11c91d,{'indexName':_0x593e8e[_0x2b0b3c('0x1')],'indicesType':_0x593e8e[_0x2b0b3c('0x10')]})[_0x2b0b3c('0x14')](function(){const _0x503ad8=_0x2b0b3c;logger[_0x503ad8('0x1f')](_0x503ad8('0x8'),_0x1fc047,_0x11c91d[_0x503ad8('0x21')](','),_0x593e8e[_0x503ad8('0x1')],_0x593e8e['indicesType']);})[_0x2b0b3c('0xf')](function(_0x535f5c){const _0x37141f=_0x2b0b3c;logger[_0x37141f('0x1f')](JSON[_0x37141f('0xe')](_0x535f5c));});});},Migration['prototype'][_0x26d42f('0x20')]=function(_0x4e12e4,_0x3a5b0e){const _0xff2115=_0x26d42f,_0x484e07=this;this[_0xff2115('0x0')][_0xff2115('0x1a')](function(){const _0x5c7ccb=_0xff2115;return _0x484e07[_0x5c7ccb('0xc')][_0x5c7ccb('0x20')](_0x4e12e4,_0x3a5b0e)['then'](function(){const _0x459887=_0x5c7ccb;logger[_0x459887('0x1f')](_0x459887('0x9'),_0x4e12e4,_0x3a5b0e);})['catch'](function(_0x27ddf3){const _0x4a43d6=_0x5c7ccb;logger[_0x4a43d6('0x1f')](JSON['stringify'](_0x27ddf3));});});},Migration[_0x26d42f('0x7')][_0x26d42f('0x12')]=function(_0x380572){const _0x2b7969=_0x26d42f,_0x43444c=this;this[_0x2b7969('0x0')][_0x2b7969('0x1a')](function(){const _0x69bd38=_0x2b7969;return _0x43444c['queryInterface'][_0x69bd38('0x5')][_0x69bd38('0x12')](_0x380572)[_0x69bd38('0x14')](function(){const _0x2233d3=_0x69bd38;logger['info'](_0x2233d3('0x6'),_0x380572);})[_0x69bd38('0xf')](function(_0x1b251d){const _0x1444d8=_0x69bd38;logger[_0x1444d8('0x1f')](JSON[_0x1444d8('0xe')](_0x1b251d));});});},Migration[_0x26d42f('0x7')][_0x26d42f('0x4')]=function(_0x251843,_0x34093e){const _0x1c2361=_0x26d42f,_0x4c19c3=this;this[_0x1c2361('0x0')]['enqueue'](function(){const _0x530c3e=_0x1c2361;return _0x4c19c3[_0x530c3e('0xc')][_0x530c3e('0x4')](_0x251843,_0x34093e)['then'](function(){const _0x46b931=_0x530c3e;logger['info'](_0x46b931('0xb'),_0x34093e,_0x251843);})[_0x530c3e('0xf')](function(_0x51b647){const _0x409aae=_0x530c3e;logger[_0x409aae('0x1f')](util[_0x409aae('0x2')](_0x51b647,{'showHidden':![],'depth':null}));});});},Migration[_0x26d42f('0x7')]['renameColumn']=function(_0x11c390,_0x1e6855,_0x45572f){const _0x26bf9e=_0x26d42f,_0x41c827=this;this[_0x26bf9e('0x0')][_0x26bf9e('0x1a')](function(){const _0x20a0c1=_0x26bf9e;return _0x41c827[_0x20a0c1('0xc')][_0x20a0c1('0x18')](_0x11c390,_0x1e6855,_0x45572f)[_0x20a0c1('0x14')](function(){const _0x22ae22=_0x20a0c1;logger[_0x22ae22('0x1f')](_0x22ae22('0x13'),_0x1e6855,_0x45572f,_0x11c390);})[_0x20a0c1('0xf')](function(_0x136823){const _0x3d91c6=_0x20a0c1;logger[_0x3d91c6('0x1f')](util[_0x3d91c6('0x2')](_0x136823,{'showHidden':![],'depth':null}));});});},Migration[_0x26d42f('0x7')][_0x26d42f('0x16')]=function(_0x349f29){const _0x3c54da=_0x26d42f;this[_0x3c54da('0x0')][_0x3c54da('0x1a')](function(){return _0x349f29();});},module[_0x26d42f('0x1b')]={'up':function(_0x5a03d3){return new Promise(function(_0x239b5d){const _0x29ccec=a1001_0x5474,_0x103083=new Migration(_0x5a03d3);_0x103083[_0x29ccec('0x12')](_0x29ccec('0x23')),_0x103083[_0x29ccec('0x12')](_0x29ccec('0xd')),_0x103083[_0x29ccec('0x16')](_0x239b5d);});},'down':function(){}}; \ No newline at end of file +const a1001_0x4d80=['finally','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','util','changeColumn','UPDATE\x20voice_queues\x20SET\x20leavewhenempty\x20=\x20\x22no\x22\x20WHERE\x20leavewhenempty\x20=\x20\x27\x27\x20or\x20leavewhenempty\x20IS\x20NULL','dropTable','prototype','addIndex','indicesType','Removed\x20column\x20%s\x20from\x20%s','join','sequelize','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','queryInterface','indexName','query\x20%s','final','info','exports','removeIndex','stringify','query','removeColumn','removeIndex\x20%s\x20%s','enqueue','addColumn','tail','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','inspect','renameColumn','sequence'];(function(_0x1742c1,_0x4d8005){const _0x21000e=function(_0xcf9759){while(--_0xcf9759){_0x1742c1['push'](_0x1742c1['shift']());}};_0x21000e(++_0x4d8005);}(a1001_0x4d80,0x1cc));const a1001_0x2100=function(_0x1742c1,_0x4d8005){_0x1742c1=_0x1742c1-0x0;let _0x21000e=a1001_0x4d80[_0x1742c1];return _0x21000e;};const _0x125530=a1001_0x2100;'use strict';const util=require(_0x125530('0x13')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x125530('0x17')][_0x125530('0x8')]=function(_0xcf9759){const _0x4845be=_0x125530;this[_0x4845be('0xa')]=this[_0x4845be('0xa')]?this[_0x4845be('0xa')][_0x4845be('0x10')](_0xcf9759):_0xcf9759();};const Migration=function(_0xd14c73){const _0x28fcbf=_0x125530;this[_0x28fcbf('0x1f')]=_0xd14c73,this['sequence']=new Sequence();};Migration['prototype']['changeColumn']=function(_0x5c3843,_0x4c684a,_0x52b37a){const _0x51411f=_0x125530,_0x18fabf=this;this[_0x51411f('0xf')][_0x51411f('0x8')](function(){const _0x51ad74=_0x51411f;return _0x18fabf[_0x51ad74('0x1f')][_0x51ad74('0x14')](_0x5c3843,_0x4c684a,_0x52b37a)[_0x51ad74('0xb')](function(){const _0x2f650f=_0x51ad74;logger[_0x2f650f('0x1')](_0x2f650f('0x12'),_0x4c684a,_0x5c3843);})['catch'](function(_0x363d01){const _0x3f5353=_0x51ad74;logger[_0x3f5353('0x1')](JSON[_0x3f5353('0x4')](_0x363d01));});});},Migration[_0x125530('0x17')][_0x125530('0x9')]=function(_0x5ebf27,_0x490370,_0x2d08b2){const _0x3d77b1=_0x125530,_0x1f0bf3=this;this[_0x3d77b1('0xf')][_0x3d77b1('0x8')](function(){const _0x6d5366=_0x3d77b1;return _0x1f0bf3[_0x6d5366('0x1f')]['addColumn'](_0x5ebf27,_0x490370,_0x2d08b2)[_0x6d5366('0xb')](function(){const _0xb837d3=_0x6d5366;logger[_0xb837d3('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0x490370,_0x5ebf27);})[_0x6d5366('0x11')](function(_0x4c3eb2){const _0x47f211=_0x6d5366;logger[_0x47f211('0x1')](JSON[_0x47f211('0x4')](_0x4c3eb2));});});},Migration[_0x125530('0x17')][_0x125530('0x16')]=function(_0x25da5a){const _0x1cfd8c=_0x125530,_0x58cf63=this;this['sequence'][_0x1cfd8c('0x8')](function(){const _0xe5f13b=_0x1cfd8c;return _0x58cf63['queryInterface'][_0xe5f13b('0x16')](_0x25da5a,{'force':!![]})[_0xe5f13b('0xb')](function(){const _0x1a65d8=_0xe5f13b;logger[_0x1a65d8('0x1')](_0x1a65d8('0x1d'),_0x25da5a);})[_0xe5f13b('0x11')](function(_0x5d8d58){const _0x19ad94=_0xe5f13b;logger['info'](JSON[_0x19ad94('0x4')](_0x5d8d58));});});},Migration[_0x125530('0x17')][_0x125530('0x18')]=function(_0x3af64d,_0xf244e3,_0x1326e4){const _0x46879e=_0x125530,_0x5aa27e=this;this[_0x46879e('0xf')][_0x46879e('0x8')](function(){const _0xa84d53=_0x46879e;return _0x5aa27e[_0xa84d53('0x1f')][_0xa84d53('0x18')](_0x3af64d,_0xf244e3,{'indexName':_0x1326e4[_0xa84d53('0x20')],'indicesType':_0x1326e4[_0xa84d53('0x19')]})[_0xa84d53('0xb')](function(){const _0x235f8a=_0xa84d53;logger[_0x235f8a('0x1')](_0x235f8a('0xc'),_0x3af64d,_0xf244e3[_0x235f8a('0x1b')](','),_0x1326e4[_0x235f8a('0x20')],_0x1326e4[_0x235f8a('0x19')]);})[_0xa84d53('0x11')](function(_0x30f34e){const _0x3a9df1=_0xa84d53;logger['info'](JSON[_0x3a9df1('0x4')](_0x30f34e));});});},Migration[_0x125530('0x17')][_0x125530('0x3')]=function(_0x5f2906,_0x2fa5ad){const _0x406044=_0x125530,_0xcf3b59=this;this[_0x406044('0xf')][_0x406044('0x8')](function(){const _0x8b4e3f=_0x406044;return _0xcf3b59['queryInterface'][_0x8b4e3f('0x3')](_0x5f2906,_0x2fa5ad)[_0x8b4e3f('0xb')](function(){const _0x341bb1=_0x8b4e3f;logger[_0x341bb1('0x1')](_0x341bb1('0x7'),_0x5f2906,_0x2fa5ad);})[_0x8b4e3f('0x11')](function(_0x1871ff){const _0x4297e9=_0x8b4e3f;logger[_0x4297e9('0x1')](JSON[_0x4297e9('0x4')](_0x1871ff));});});},Migration['prototype'][_0x125530('0x5')]=function(_0x1fc397){const _0x425c82=_0x125530,_0x3f3b8c=this;this[_0x425c82('0xf')]['enqueue'](function(){const _0x192b26=_0x425c82;return _0x3f3b8c['queryInterface'][_0x192b26('0x1c')]['query'](_0x1fc397)[_0x192b26('0xb')](function(){const _0x1c4b22=_0x192b26;logger['info'](_0x1c4b22('0x21'),_0x1fc397);})[_0x192b26('0x11')](function(_0x935be8){const _0x56479f=_0x192b26;logger[_0x56479f('0x1')](JSON['stringify'](_0x935be8));});});},Migration[_0x125530('0x17')][_0x125530('0x6')]=function(_0x1dfee0,_0x34844d){const _0x25e3f9=_0x125530,_0x46bb73=this;this[_0x25e3f9('0xf')]['enqueue'](function(){const _0x26ea69=_0x25e3f9;return _0x46bb73[_0x26ea69('0x1f')][_0x26ea69('0x6')](_0x1dfee0,_0x34844d)['then'](function(){const _0x15d12c=_0x26ea69;logger[_0x15d12c('0x1')](_0x15d12c('0x1a'),_0x34844d,_0x1dfee0);})[_0x26ea69('0x11')](function(_0x3434ab){const _0x132d6b=_0x26ea69;logger['info'](util[_0x132d6b('0xd')](_0x3434ab,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x125530('0xe')]=function(_0x26d893,_0x2194bd,_0x463928){const _0x3f61ec=_0x125530,_0x459b34=this;this['sequence'][_0x3f61ec('0x8')](function(){const _0x5c5596=_0x3f61ec;return _0x459b34[_0x5c5596('0x1f')][_0x5c5596('0xe')](_0x26d893,_0x2194bd,_0x463928)[_0x5c5596('0xb')](function(){const _0x58c4f3=_0x5c5596;logger['info'](_0x58c4f3('0x1e'),_0x2194bd,_0x463928,_0x26d893);})[_0x5c5596('0x11')](function(_0x80af80){const _0x60bc45=_0x5c5596;logger[_0x60bc45('0x1')](util[_0x60bc45('0xd')](_0x80af80,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x125530('0x0')]=function(_0x4279c8){const _0x103a93=_0x125530;this[_0x103a93('0xf')]['enqueue'](function(){return _0x4279c8();});},module[_0x125530('0x2')]={'up':function(_0x3f722e){return new Promise(function(_0x45451c){const _0x2e026f=a1001_0x2100,_0x29902f=new Migration(_0x3f722e);_0x29902f[_0x2e026f('0x5')]('UPDATE\x20voice_queues\x20SET\x20joinempty\x20=\x20\x22yes\x22\x20WHERE\x20joinempty\x20=\x20\x27\x27\x20or\x20joinempty\x20IS\x20NULL'),_0x29902f[_0x2e026f('0x5')](_0x2e026f('0x15')),_0x29902f['final'](_0x45451c);});},'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 dc3c982..b4685ac 100644 --- a/server/migrations/2.4.19.js +++ b/server/migrations/2.4.19.js @@ -1 +1 @@ -const a1002_0x2733=['changeColumn','int_zoho_configurations','dropTable','INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27','tail','removeIndex','network','stun','contact_lead','migration','stringify','queryInterface','join','info','moduleSearch','indicesType','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27','Removed\x20column\x20%s\x20from\x20%s','moduleCreate','contact','then','sequelize','renameColumn','Leads','../config/logger','query\x20%s','externip','lead','localnet','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','addIndex','catch','addIndex\x20%s\x20%s\x20%s\x20[%s]','turn','STRING','removeIndex\x20%s\x20%s','sequence','util','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','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','nothing','addColumn','enqueue','ENUM','Added\x20column\x20%s\x20to\x20%s','query','removeColumn','indexName','type','prototype','inspect','username'];(function(_0x309e6f,_0x2733c3){const _0x47ea7e=function(_0x1099ac){while(--_0x1099ac){_0x309e6f['push'](_0x309e6f['shift']());}};_0x47ea7e(++_0x2733c3);}(a1002_0x2733,0x180));const a1002_0x47ea=function(_0x309e6f,_0x2733c3){_0x309e6f=_0x309e6f-0x0;let _0x47ea7e=a1002_0x2733[_0x309e6f];return _0x47ea7e;};const _0x4d48ce=a1002_0x47ea;'use strict';const util=require(_0x4d48ce('0x19')),logger=require(_0x4d48ce('0xb'))(_0x4d48ce('0x31')),Sequence=function(){};Sequence['prototype'][_0x4d48ce('0x1e')]=function(_0x1099ac){const _0x9c7047=_0x4d48ce;this[_0x9c7047('0x2c')]=this[_0x9c7047('0x2c')]?this[_0x9c7047('0x2c')]['finally'](_0x1099ac):_0x1099ac();};const Migration=function(_0x11cb3e){const _0x4a6f87=_0x4d48ce;this['queryInterface']=_0x11cb3e,this[_0x4a6f87('0x18')]=new Sequence();};Migration[_0x4d48ce('0x25')][_0x4d48ce('0x28')]=function(_0x1dac4c,_0x3b968f,_0x4d92c3){const _0x564309=_0x4d48ce,_0xb4fd21=this;this[_0x564309('0x18')]['enqueue'](function(){const _0x3f6b8f=_0x564309;return _0xb4fd21[_0x3f6b8f('0x33')][_0x3f6b8f('0x28')](_0x1dac4c,_0x3b968f,_0x4d92c3)['then'](function(){const _0x1980e3=_0x3f6b8f;logger[_0x1980e3('0x0')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3b968f,_0x1dac4c);})[_0x3f6b8f('0x13')](function(_0x35eb51){const _0x544098=_0x3f6b8f;logger[_0x544098('0x0')](JSON[_0x544098('0x32')](_0x35eb51));});});},Migration[_0x4d48ce('0x25')][_0x4d48ce('0x1d')]=function(_0x277cb5,_0x2f0ecd,_0x57edb0){const _0x261ab3=_0x4d48ce,_0x139ecc=this;this['sequence'][_0x261ab3('0x1e')](function(){const _0x5e8599=_0x261ab3;return _0x139ecc['queryInterface'][_0x5e8599('0x1d')](_0x277cb5,_0x2f0ecd,_0x57edb0)['then'](function(){const _0x436874=_0x5e8599;logger[_0x436874('0x0')](_0x436874('0x20'),_0x2f0ecd,_0x277cb5);})[_0x5e8599('0x13')](function(_0x19a451){const _0x3ba437=_0x5e8599;logger['info'](JSON[_0x3ba437('0x32')](_0x19a451));});});},Migration[_0x4d48ce('0x25')]['dropTable']=function(_0x46c3cf){const _0x5bf98b=_0x4d48ce,_0x47a3df=this;this[_0x5bf98b('0x18')]['enqueue'](function(){const _0x5af353=_0x5bf98b;return _0x47a3df[_0x5af353('0x33')][_0x5af353('0x2a')](_0x46c3cf,{'force':!![]})[_0x5af353('0x7')](function(){const _0x54b495=_0x5af353;logger[_0x54b495('0x0')]('table\x20dropped\x20%s',_0x46c3cf);})[_0x5af353('0x13')](function(_0x3dd322){const _0x114440=_0x5af353;logger[_0x114440('0x0')](JSON[_0x114440('0x32')](_0x3dd322));});});},Migration[_0x4d48ce('0x25')]['addIndex']=function(_0x431ad3,_0x3bcd84,_0x544d9c){const _0x533be2=_0x4d48ce,_0x4219e9=this;this[_0x533be2('0x18')][_0x533be2('0x1e')](function(){const _0x47c07c=_0x533be2;return _0x4219e9[_0x47c07c('0x33')][_0x47c07c('0x12')](_0x431ad3,_0x3bcd84,{'indexName':_0x544d9c[_0x47c07c('0x23')],'indicesType':_0x544d9c[_0x47c07c('0x2')]})[_0x47c07c('0x7')](function(){const _0x249e29=_0x47c07c;logger['info'](_0x249e29('0x14'),_0x431ad3,_0x3bcd84[_0x249e29('0x34')](','),_0x544d9c[_0x249e29('0x23')],_0x544d9c[_0x249e29('0x2')]);})[_0x47c07c('0x13')](function(_0x19d0a8){const _0x311e52=_0x47c07c;logger[_0x311e52('0x0')](JSON['stringify'](_0x19d0a8));});});},Migration[_0x4d48ce('0x25')][_0x4d48ce('0x2d')]=function(_0x1b74da,_0x5c7b66){const _0x73ee43=_0x4d48ce,_0x376aac=this;this[_0x73ee43('0x18')][_0x73ee43('0x1e')](function(){const _0x414596=_0x73ee43;return _0x376aac[_0x414596('0x33')]['removeIndex'](_0x1b74da,_0x5c7b66)[_0x414596('0x7')](function(){const _0x40257e=_0x414596;logger[_0x40257e('0x0')](_0x40257e('0x17'),_0x1b74da,_0x5c7b66);})['catch'](function(_0x54b933){const _0x1382f0=_0x414596;logger[_0x1382f0('0x0')](JSON[_0x1382f0('0x32')](_0x54b933));});});},Migration[_0x4d48ce('0x25')]['query']=function(_0x3a2e63){const _0x31d584=_0x4d48ce,_0x442f33=this;this['sequence'][_0x31d584('0x1e')](function(){const _0xa494d5=_0x31d584;return _0x442f33[_0xa494d5('0x33')][_0xa494d5('0x8')][_0xa494d5('0x21')](_0x3a2e63)[_0xa494d5('0x7')](function(){const _0x52f904=_0xa494d5;logger[_0x52f904('0x0')](_0x52f904('0xc'),_0x3a2e63);})['catch'](function(_0x5b726f){const _0x5c4a20=_0xa494d5;logger[_0x5c4a20('0x0')](JSON[_0x5c4a20('0x32')](_0x5b726f));});});},Migration['prototype']['removeColumn']=function(_0x318105,_0x333491){const _0x5827be=_0x4d48ce,_0x566e3e=this;this['sequence'][_0x5827be('0x1e')](function(){const _0x542312=_0x5827be;return _0x566e3e[_0x542312('0x33')][_0x542312('0x22')](_0x318105,_0x333491)['then'](function(){const _0x410a89=_0x542312;logger['info'](_0x410a89('0x4'),_0x333491,_0x318105);})[_0x542312('0x13')](function(_0x131a3e){const _0x4b2af2=_0x542312;logger[_0x4b2af2('0x0')](util['inspect'](_0x131a3e,{'showHidden':![],'depth':null}));});});},Migration[_0x4d48ce('0x25')][_0x4d48ce('0x9')]=function(_0x5289da,_0x5e201c,_0x5d917e){const _0x560205=_0x4d48ce,_0x3dd742=this;this[_0x560205('0x18')][_0x560205('0x1e')](function(){const _0x389244=_0x560205;return _0x3dd742['queryInterface'][_0x389244('0x9')](_0x5289da,_0x5e201c,_0x5d917e)[_0x389244('0x7')](function(){const _0x17cea8=_0x389244;logger[_0x17cea8('0x0')](_0x17cea8('0x10'),_0x5e201c,_0x5d917e,_0x5289da);})['catch'](function(_0x1196de){const _0x3f3cb9=_0x389244;logger[_0x3f3cb9('0x0')](util[_0x3f3cb9('0x26')](_0x1196de,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x4d48ce('0x11')]=function(_0x4dc3bb){const _0x1ee09d=_0x4d48ce;this['sequence'][_0x1ee09d('0x1e')](function(){return _0x4dc3bb();});},module['exports']={'up':function(_0x2b15ab,_0x43cc42){return new Promise(function(_0x209b21){const _0x357424=a1002_0x47ea,_0x1a4165=new Migration(_0x2b15ab);_0x1a4165[_0x357424('0x1d')](_0x357424('0x29'),_0x357424('0x1'),{'type':_0x43cc42[_0x357424('0x1f')](_0x357424('0x30'),_0x357424('0x6'),_0x357424('0xe')),'defaultValue':_0x357424('0x30')}),_0x1a4165['changeColumn']('int_zoho_configurations',_0x357424('0x5'),{'type':_0x43cc42['ENUM'](_0x357424('0xa'),'Contacts',_0x357424('0x1c'),_0x357424('0x6'),_0x357424('0xe'))}),_0x1a4165[_0x357424('0x21')](_0x357424('0x3')),_0x1a4165[_0x357424('0x21')](_0x357424('0x1a')),_0x1a4165[_0x357424('0x28')]('int_zoho_configurations',_0x357424('0x5'),{'type':_0x43cc42[_0x357424('0x1f')]('nothing',_0x357424('0x6'),_0x357424('0xe')),'defaultValue':_0x357424('0xe')}),_0x1a4165[_0x357424('0x1d')](_0x357424('0x2e'),_0x357424('0x27'),{'type':_0x43cc42[_0x357424('0x16')]}),_0x1a4165[_0x357424('0x1d')](_0x357424('0x2e'),'password',{'type':_0x43cc42['STRING']}),_0x1a4165[_0x357424('0x28')](_0x357424('0x2e'),_0x357424('0x24'),{'type':_0x43cc42[_0x357424('0x1f')](_0x357424('0xf'),_0x357424('0xd'),_0x357424('0x2f'),_0x357424('0x15'))}),_0x1a4165[_0x357424('0x21')](_0x357424('0x2b')),_0x1a4165['query'](_0x357424('0x1b')),_0x1a4165[_0x357424('0x11')](_0x209b21);});},'down':function(){}}; \ No newline at end of file +const a1002_0x1efc=['addIndex','indexName','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','query','prototype','Removed\x20column\x20%s\x20from\x20%s','sequence','../config/logger','contact','info','finally','STRING','sequelize','then','table\x20dropped\x20%s','moduleCreate','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','inspect','join','dropTable','stun','contact_lead','renameColumn','int_zoho_configurations','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]','moduleSearch','indicesType','lead','removeIndex\x20%s\x20%s','turn','password','localnet','ENUM','final','removeIndex','tail','Leads','addColumn','externip','INSERT\x20INTO\x20network\x20(type,value,\x20createdAt,\x20updatedAt)\x20SELECT\x20\x27stun\x27,\x20stunaddr,\x20current_timestamp(),\x20current_timestamp()\x20from\x20settings\x20WHERE\x20stunaddr<>\x27\x27','util','Contacts','username','UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27lead\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Leads\x27','enqueue','network','nothing','catch','exports','stringify','Added\x20column\x20%s\x20to\x20%s','type','removeColumn'];(function(_0x1b64eb,_0x1efc8f){const _0xa9c5ac=function(_0x5b4ac8){while(--_0x5b4ac8){_0x1b64eb['push'](_0x1b64eb['shift']());}};_0xa9c5ac(++_0x1efc8f);}(a1002_0x1efc,0x11a));const a1002_0xa9c5=function(_0x1b64eb,_0x1efc8f){_0x1b64eb=_0x1b64eb-0x0;let _0xa9c5ac=a1002_0x1efc[_0x1b64eb];return _0xa9c5ac;};const _0x545ae5=a1002_0xa9c5;'use strict';const util=require(_0x545ae5('0x23')),logger=require(_0x545ae5('0x0'))('migration'),Sequence=function(){};Sequence[_0x545ae5('0x34')]['enqueue']=function(_0x5b4ac8){const _0x41aeb7=_0x545ae5;this[_0x41aeb7('0x1e')]=this[_0x41aeb7('0x1e')]?this['tail'][_0x41aeb7('0x3')](_0x5b4ac8):_0x5b4ac8();};const Migration=function(_0x593c38){const _0x190bee=_0x545ae5;this[_0x190bee('0x12')]=_0x593c38,this[_0x190bee('0x36')]=new Sequence();};Migration[_0x545ae5('0x34')]['changeColumn']=function(_0x37beae,_0x1d474f,_0x62f022){const _0xa365fd=_0x545ae5,_0x50cc5b=this;this[_0xa365fd('0x36')][_0xa365fd('0x27')](function(){const _0xe051ad=_0xa365fd;return _0x50cc5b[_0xe051ad('0x12')]['changeColumn'](_0x37beae,_0x1d474f,_0x62f022)[_0xe051ad('0x6')](function(){const _0x3412d5=_0xe051ad;logger[_0x3412d5('0x2')](_0x3412d5('0x9'),_0x1d474f,_0x37beae);})[_0xe051ad('0x2a')](function(_0x437c86){const _0x178053=_0xe051ad;logger[_0x178053('0x2')](JSON[_0x178053('0x2c')](_0x437c86));});});},Migration['prototype'][_0x545ae5('0x20')]=function(_0x36230c,_0x1e3f93,_0x1927b9){const _0x2dae0e=_0x545ae5,_0xd118fe=this;this[_0x2dae0e('0x36')]['enqueue'](function(){const _0x2e33a3=_0x2dae0e;return _0xd118fe[_0x2e33a3('0x12')][_0x2e33a3('0x20')](_0x36230c,_0x1e3f93,_0x1927b9)['then'](function(){const _0x550da3=_0x2e33a3;logger[_0x550da3('0x2')](_0x550da3('0x2d'),_0x1e3f93,_0x36230c);})[_0x2e33a3('0x2a')](function(_0x5acc12){const _0x4ab99c=_0x2e33a3;logger[_0x4ab99c('0x2')](JSON[_0x4ab99c('0x2c')](_0x5acc12));});});},Migration['prototype']['dropTable']=function(_0x1b6a6a){const _0x4ac787=_0x545ae5,_0x56d8ba=this;this[_0x4ac787('0x36')][_0x4ac787('0x27')](function(){const _0x42dbf4=_0x4ac787;return _0x56d8ba[_0x42dbf4('0x12')][_0x42dbf4('0xd')](_0x1b6a6a,{'force':!![]})[_0x42dbf4('0x6')](function(){const _0x51c8af=_0x42dbf4;logger[_0x51c8af('0x2')](_0x51c8af('0x7'),_0x1b6a6a);})[_0x42dbf4('0x2a')](function(_0x52b37b){const _0x1ac4b1=_0x42dbf4;logger['info'](JSON[_0x1ac4b1('0x2c')](_0x52b37b));});});},Migration[_0x545ae5('0x34')]['addIndex']=function(_0x1ca95b,_0x30eb13,_0x2805de){const _0x384c93=_0x545ae5,_0x175077=this;this[_0x384c93('0x36')][_0x384c93('0x27')](function(){const _0x4eb9b9=_0x384c93;return _0x175077['queryInterface'][_0x4eb9b9('0x30')](_0x1ca95b,_0x30eb13,{'indexName':_0x2805de[_0x4eb9b9('0x31')],'indicesType':_0x2805de['indicesType']})[_0x4eb9b9('0x6')](function(){const _0xc06b6d=_0x4eb9b9;logger[_0xc06b6d('0x2')](_0xc06b6d('0x13'),_0x1ca95b,_0x30eb13[_0xc06b6d('0xc')](','),_0x2805de['indexName'],_0x2805de[_0xc06b6d('0x15')]);})[_0x4eb9b9('0x2a')](function(_0x1011a4){const _0x18c786=_0x4eb9b9;logger['info'](JSON[_0x18c786('0x2c')](_0x1011a4));});});},Migration['prototype'][_0x545ae5('0x1d')]=function(_0x48ed91,_0x28e730){const _0x311bec=_0x545ae5,_0x160a48=this;this[_0x311bec('0x36')][_0x311bec('0x27')](function(){const _0x36285e=_0x311bec;return _0x160a48[_0x36285e('0x12')][_0x36285e('0x1d')](_0x48ed91,_0x28e730)[_0x36285e('0x6')](function(){const _0x1d0421=_0x36285e;logger[_0x1d0421('0x2')](_0x1d0421('0x17'),_0x48ed91,_0x28e730);})[_0x36285e('0x2a')](function(_0x1737fd){const _0x4b7225=_0x36285e;logger[_0x4b7225('0x2')](JSON[_0x4b7225('0x2c')](_0x1737fd));});});},Migration[_0x545ae5('0x34')][_0x545ae5('0x33')]=function(_0x3134e8){const _0x59954a=this;this['sequence']['enqueue'](function(){const _0x4b2753=a1002_0xa9c5;return _0x59954a[_0x4b2753('0x12')][_0x4b2753('0x5')][_0x4b2753('0x33')](_0x3134e8)[_0x4b2753('0x6')](function(){const _0x4328c4=_0x4b2753;logger[_0x4328c4('0x2')]('query\x20%s',_0x3134e8);})[_0x4b2753('0x2a')](function(_0x1ece52){logger['info'](JSON['stringify'](_0x1ece52));});});},Migration['prototype'][_0x545ae5('0x2f')]=function(_0x372622,_0x1af2c4){const _0x41ff9=_0x545ae5,_0x5b724b=this;this['sequence'][_0x41ff9('0x27')](function(){const _0x259435=_0x41ff9;return _0x5b724b[_0x259435('0x12')][_0x259435('0x2f')](_0x372622,_0x1af2c4)[_0x259435('0x6')](function(){const _0x458de9=_0x259435;logger[_0x458de9('0x2')](_0x458de9('0x35'),_0x1af2c4,_0x372622);})[_0x259435('0x2a')](function(_0x578f28){const _0x19a596=_0x259435;logger['info'](util[_0x19a596('0xb')](_0x578f28,{'showHidden':![],'depth':null}));});});},Migration[_0x545ae5('0x34')][_0x545ae5('0x10')]=function(_0x1a01c7,_0x28235b,_0x1f95a8){const _0x5c09cc=_0x545ae5,_0x3a208f=this;this[_0x5c09cc('0x36')][_0x5c09cc('0x27')](function(){const _0x10bd0f=_0x5c09cc;return _0x3a208f[_0x10bd0f('0x12')][_0x10bd0f('0x10')](_0x1a01c7,_0x28235b,_0x1f95a8)[_0x10bd0f('0x6')](function(){const _0x1ec4d8=_0x10bd0f;logger['info'](_0x1ec4d8('0x32'),_0x28235b,_0x1f95a8,_0x1a01c7);})[_0x10bd0f('0x2a')](function(_0x4c0460){logger['info'](util['inspect'](_0x4c0460,{'showHidden':![],'depth':null}));});});},Migration[_0x545ae5('0x34')][_0x545ae5('0x1c')]=function(_0x1b7cd1){const _0xfeb3e5=_0x545ae5;this[_0xfeb3e5('0x36')][_0xfeb3e5('0x27')](function(){return _0x1b7cd1();});},module[_0x545ae5('0x2b')]={'up':function(_0x11ca78,_0x3f6db2){return new Promise(function(_0xbd8f1e){const _0x10b792=a1002_0xa9c5,_0x2740f5=new Migration(_0x11ca78);_0x2740f5['addColumn']('int_zoho_configurations',_0x10b792('0x14'),{'type':_0x3f6db2['ENUM'](_0x10b792('0xf'),_0x10b792('0x1'),_0x10b792('0x16')),'defaultValue':_0x10b792('0xf')}),_0x2740f5[_0x10b792('0xa')](_0x10b792('0x11'),'moduleCreate',{'type':_0x3f6db2[_0x10b792('0x1b')](_0x10b792('0x1f'),_0x10b792('0x24'),'nothing',_0x10b792('0x1'),_0x10b792('0x16'))}),_0x2740f5[_0x10b792('0x33')]('UPDATE\x20int_zoho_configurations\x20SET\x20moduleCreate\x20=\x20\x27contact\x27\x20WHERE\x20moduleCreate\x20=\x20\x27Contacts\x27'),_0x2740f5[_0x10b792('0x33')](_0x10b792('0x26')),_0x2740f5[_0x10b792('0xa')](_0x10b792('0x11'),_0x10b792('0x8'),{'type':_0x3f6db2['ENUM'](_0x10b792('0x29'),_0x10b792('0x1'),_0x10b792('0x16')),'defaultValue':_0x10b792('0x16')}),_0x2740f5[_0x10b792('0x20')](_0x10b792('0x28'),_0x10b792('0x25'),{'type':_0x3f6db2[_0x10b792('0x4')]}),_0x2740f5['addColumn'](_0x10b792('0x28'),_0x10b792('0x19'),{'type':_0x3f6db2[_0x10b792('0x4')]}),_0x2740f5[_0x10b792('0xa')]('network',_0x10b792('0x2e'),{'type':_0x3f6db2['ENUM'](_0x10b792('0x1a'),_0x10b792('0x21'),_0x10b792('0xe'),_0x10b792('0x18'))}),_0x2740f5[_0x10b792('0x33')](_0x10b792('0x22')),_0x2740f5[_0x10b792('0x33')]('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'),_0x2740f5[_0x10b792('0x1c')](_0xbd8f1e);});},'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 8194dea..130141d 100644 --- a/server/migrations/2.4.2.js +++ b/server/migrations/2.4.2.js @@ -1 +1 @@ -const a1003_0x4407=['BOOLEAN','Changed\x20column\x20%s\x20in\x20table\x20%s','DATE','changeColumn','inspect','removeIndex\x20%s\x20%s','blockedAt','allowedLoginAttempts','blocked','blockDuration','exports','addColumn','settings','addIndex','Removed\x20column\x20%s\x20from\x20%s','INTEGER','util','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','enqueue','then','UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;','tail','indexName','loginAttempts','users','info','query','final','catch','sequence','indicesType','stringify','Added\x20column\x20%s\x20to\x20%s','queryInterface','renameColumn','finally','sequelize','removeIndex','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','migration','../config/logger','dropTable'];(function(_0x43b5e7,_0x4407db){const _0x41d6e5=function(_0x28d17d){while(--_0x28d17d){_0x43b5e7['push'](_0x43b5e7['shift']());}};_0x41d6e5(++_0x4407db);}(a1003_0x4407,0x9e));const a1003_0x41d6=function(_0x43b5e7,_0x4407db){_0x43b5e7=_0x43b5e7-0x0;let _0x41d6e5=a1003_0x4407[_0x43b5e7];return _0x41d6e5;};const _0x1a85bc=a1003_0x41d6;'use strict';const util=require(_0x1a85bc('0x1e')),logger=require(_0x1a85bc('0xc'))(_0x1a85bc('0xb')),Sequence=function(){};Sequence[_0x1a85bc('0x9')][_0x1a85bc('0x20')]=function(_0x28d17d){const _0x26e6b1=_0x1a85bc;this[_0x26e6b1('0x23')]=this[_0x26e6b1('0x23')]?this[_0x26e6b1('0x23')][_0x26e6b1('0x6')](_0x28d17d):_0x28d17d();};const Migration=function(_0x5a4ba2){const _0x210608=_0x1a85bc;this['queryInterface']=_0x5a4ba2,this[_0x210608('0x0')]=new Sequence();};Migration[_0x1a85bc('0x9')][_0x1a85bc('0x11')]=function(_0x3bfba0,_0xba8a72,_0x1eb434){const _0x475eed=_0x1a85bc,_0x4395cc=this;this[_0x475eed('0x0')]['enqueue'](function(){const _0x40298b=_0x475eed;return _0x4395cc['queryInterface'][_0x40298b('0x11')](_0x3bfba0,_0xba8a72,_0x1eb434)[_0x40298b('0x21')](function(){const _0x16f9c9=_0x40298b;logger[_0x16f9c9('0x27')](_0x16f9c9('0xf'),_0xba8a72,_0x3bfba0);})[_0x40298b('0x2a')](function(_0x2af3fd){const _0x59b1bd=_0x40298b;logger[_0x59b1bd('0x27')](JSON[_0x59b1bd('0x2')](_0x2af3fd));});});},Migration[_0x1a85bc('0x9')][_0x1a85bc('0x19')]=function(_0x1202ea,_0x3c75c1,_0xe078b){const _0x239892=_0x1a85bc,_0x2bc2d2=this;this[_0x239892('0x0')][_0x239892('0x20')](function(){const _0x410e84=_0x239892;return _0x2bc2d2['queryInterface'][_0x410e84('0x19')](_0x1202ea,_0x3c75c1,_0xe078b)['then'](function(){const _0x4d10a3=_0x410e84;logger['info'](_0x4d10a3('0x3'),_0x3c75c1,_0x1202ea);})[_0x410e84('0x2a')](function(_0x184072){logger['info'](JSON['stringify'](_0x184072));});});},Migration[_0x1a85bc('0x9')][_0x1a85bc('0xd')]=function(_0x5830f4){const _0x535ccd=_0x1a85bc,_0x11f221=this;this[_0x535ccd('0x0')][_0x535ccd('0x20')](function(){const _0x2861ed=_0x535ccd;return _0x11f221[_0x2861ed('0x4')]['dropTable'](_0x5830f4,{'force':!![]})[_0x2861ed('0x21')](function(){const _0x2c23cb=_0x2861ed;logger[_0x2c23cb('0x27')]('table\x20dropped\x20%s',_0x5830f4);})[_0x2861ed('0x2a')](function(_0x2e1b6d){const _0x2278c5=_0x2861ed;logger['info'](JSON[_0x2278c5('0x2')](_0x2e1b6d));});});},Migration[_0x1a85bc('0x9')]['addIndex']=function(_0x17360a,_0x1d4307,_0x47bf63){const _0x1df77a=_0x1a85bc,_0x2261e6=this;this[_0x1df77a('0x0')][_0x1df77a('0x20')](function(){const _0x2b648f=_0x1df77a;return _0x2261e6[_0x2b648f('0x4')][_0x2b648f('0x1b')](_0x17360a,_0x1d4307,{'indexName':_0x47bf63[_0x2b648f('0x24')],'indicesType':_0x47bf63[_0x2b648f('0x1')]})['then'](function(){const _0x377aed=_0x2b648f;logger['info'](_0x377aed('0xa'),_0x17360a,_0x1d4307['join'](','),_0x47bf63['indexName'],_0x47bf63[_0x377aed('0x1')]);})[_0x2b648f('0x2a')](function(_0x16f086){const _0x369f1b=_0x2b648f;logger[_0x369f1b('0x27')](JSON[_0x369f1b('0x2')](_0x16f086));});});},Migration[_0x1a85bc('0x9')]['removeIndex']=function(_0x9afae7,_0x4e9eac){const _0x48e4dc=_0x1a85bc,_0x56dec9=this;this[_0x48e4dc('0x0')][_0x48e4dc('0x20')](function(){const _0x1adac1=_0x48e4dc;return _0x56dec9['queryInterface'][_0x1adac1('0x8')](_0x9afae7,_0x4e9eac)['then'](function(){const _0x13f961=_0x1adac1;logger[_0x13f961('0x27')](_0x13f961('0x13'),_0x9afae7,_0x4e9eac);})[_0x1adac1('0x2a')](function(_0x18acaf){const _0x2b9115=_0x1adac1;logger[_0x2b9115('0x27')](JSON[_0x2b9115('0x2')](_0x18acaf));});});},Migration[_0x1a85bc('0x9')][_0x1a85bc('0x28')]=function(_0x300880){const _0x1b3ee1=_0x1a85bc,_0x2643cb=this;this[_0x1b3ee1('0x0')][_0x1b3ee1('0x20')](function(){const _0x171237=_0x1b3ee1;return _0x2643cb[_0x171237('0x4')][_0x171237('0x7')][_0x171237('0x28')](_0x300880)[_0x171237('0x21')](function(){logger['info']('query\x20%s',_0x300880);})[_0x171237('0x2a')](function(_0x3cbeb0){const _0x2b0379=_0x171237;logger[_0x2b0379('0x27')](JSON[_0x2b0379('0x2')](_0x3cbeb0));});});},Migration['prototype']['removeColumn']=function(_0x85e576,_0x4f4889){const _0x17e030=_0x1a85bc,_0x2c8f28=this;this[_0x17e030('0x0')][_0x17e030('0x20')](function(){const _0x6dd41d=_0x17e030;return _0x2c8f28['queryInterface']['removeColumn'](_0x85e576,_0x4f4889)[_0x6dd41d('0x21')](function(){const _0x56162f=_0x6dd41d;logger[_0x56162f('0x27')](_0x56162f('0x1c'),_0x4f4889,_0x85e576);})[_0x6dd41d('0x2a')](function(_0x5e40a7){const _0x4f3e34=_0x6dd41d;logger[_0x4f3e34('0x27')](util['inspect'](_0x5e40a7,{'showHidden':![],'depth':null}));});});},Migration[_0x1a85bc('0x9')]['renameColumn']=function(_0xec790a,_0x44927c,_0x30ac9b){const _0x28011c=_0x1a85bc,_0x1eb721=this;this[_0x28011c('0x0')][_0x28011c('0x20')](function(){const _0x14b7e1=_0x28011c;return _0x1eb721[_0x14b7e1('0x4')][_0x14b7e1('0x5')](_0xec790a,_0x44927c,_0x30ac9b)['then'](function(){const _0x35a4ea=_0x14b7e1;logger['info'](_0x35a4ea('0x1f'),_0x44927c,_0x30ac9b,_0xec790a);})[_0x14b7e1('0x2a')](function(_0xf81972){const _0x41e5ce=_0x14b7e1;logger[_0x41e5ce('0x27')](util[_0x41e5ce('0x12')](_0xf81972,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1a85bc('0x29')]=function(_0x3ff07c){const _0x1e2fb6=_0x1a85bc;this[_0x1e2fb6('0x0')][_0x1e2fb6('0x20')](function(){return _0x3ff07c();});},module[_0x1a85bc('0x18')]={'up':function(_0x2dee58,_0xc19d3e){return new Promise(function(_0x4cc9e1){const _0x8d674f=a1003_0x41d6,_0xf4baeb=new Migration(_0x2dee58);_0xf4baeb[_0x8d674f('0x19')]('settings',_0x8d674f('0x15'),{'type':_0xc19d3e[_0x8d674f('0x1d')],'defaultValue':0x5}),_0xf4baeb[_0x8d674f('0x19')](_0x8d674f('0x1a'),_0x8d674f('0x17'),{'type':_0xc19d3e[_0x8d674f('0x1d')],'defaultValue':0xa}),_0xf4baeb[_0x8d674f('0x28')](_0x8d674f('0x22')),_0xf4baeb[_0x8d674f('0x19')]('users',_0x8d674f('0x16'),{'type':_0xc19d3e[_0x8d674f('0xe')],'defaultValue':![]}),_0xf4baeb['addColumn'](_0x8d674f('0x26'),_0x8d674f('0x25'),{'type':_0xc19d3e['INTEGER'],'defaultValue':0x0}),_0xf4baeb[_0x8d674f('0x19')](_0x8d674f('0x26'),_0x8d674f('0x14'),{'type':_0xc19d3e[_0x8d674f('0x10')],'defaultValue':null}),_0xf4baeb[_0x8d674f('0x19')](_0x8d674f('0x26'),'disabled',{'type':_0xc19d3e[_0x8d674f('0xe')],'defaultValue':![]}),_0xf4baeb[_0x8d674f('0x28')]('ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;'),_0xf4baeb['final'](_0x4cc9e1);});},'down':function(){}}; \ No newline at end of file +const a1003_0x4140=['query\x20%s','exports','final','inspect','removeColumn','addIndex','prototype','removeIndex','sequelize','util','disabled','removeIndex\x20%s\x20%s','indexName','BOOLEAN','sequence','Removed\x20column\x20%s\x20from\x20%s','changeColumn','allowedLoginAttempts','query','enqueue','finally','DATE','addColumn','join','Added\x20column\x20%s\x20to\x20%s','blockedAt','renameColumn','table\x20dropped\x20%s','info','users','addIndex\x20%s\x20%s\x20%s\x20[%s]','queryInterface','INTEGER','ALTER\x20TABLE\x20screen_recordings\x20ENCRYPTION=\x27Y\x27;','settings','catch','../config/logger','dropTable','Changed\x20column\x20%s\x20in\x20table\x20%s','loginAttempts','stringify','then','indicesType','tail'];(function(_0x20bb4e,_0x4140ef){const _0x44479c=function(_0x53b20e){while(--_0x53b20e){_0x20bb4e['push'](_0x20bb4e['shift']());}};_0x44479c(++_0x4140ef);}(a1003_0x4140,0xf5));const a1003_0x4447=function(_0x20bb4e,_0x4140ef){_0x20bb4e=_0x20bb4e-0x0;let _0x44479c=a1003_0x4140[_0x20bb4e];return _0x44479c;};const _0x22e99c=a1003_0x4447;'use strict';const util=require(_0x22e99c('0x1c')),logger=require(_0x22e99c('0xb'))('migration'),Sequence=function(){};Sequence[_0x22e99c('0x19')]['enqueue']=function(_0x53b20e){const _0x52b2d4=_0x22e99c;this[_0x52b2d4('0x12')]=this[_0x52b2d4('0x12')]?this['tail'][_0x52b2d4('0x27')](_0x53b20e):_0x53b20e();};const Migration=function(_0xff4621){const _0x509619=_0x22e99c;this[_0x509619('0x6')]=_0xff4621,this[_0x509619('0x21')]=new Sequence();};Migration[_0x22e99c('0x19')][_0x22e99c('0x23')]=function(_0x56b997,_0x11853b,_0x5f4d85){const _0x6c3329=_0x22e99c,_0x553349=this;this['sequence'][_0x6c3329('0x26')](function(){const _0x9bb91a=_0x6c3329;return _0x553349['queryInterface'][_0x9bb91a('0x23')](_0x56b997,_0x11853b,_0x5f4d85)[_0x9bb91a('0x10')](function(){const _0x2d725a=_0x9bb91a;logger[_0x2d725a('0x3')](_0x2d725a('0xd'),_0x11853b,_0x56b997);})['catch'](function(_0x29a997){const _0x3cb4cf=_0x9bb91a;logger[_0x3cb4cf('0x3')](JSON[_0x3cb4cf('0xf')](_0x29a997));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x29')]=function(_0x4da78b,_0x507d7c,_0x94f000){const _0x1b28e9=_0x22e99c,_0x29371f=this;this[_0x1b28e9('0x21')]['enqueue'](function(){const _0x1c4d0a=_0x1b28e9;return _0x29371f[_0x1c4d0a('0x6')][_0x1c4d0a('0x29')](_0x4da78b,_0x507d7c,_0x94f000)[_0x1c4d0a('0x10')](function(){const _0x1fc0a3=_0x1c4d0a;logger['info'](_0x1fc0a3('0x2b'),_0x507d7c,_0x4da78b);})[_0x1c4d0a('0xa')](function(_0x1baf46){const _0x41ffda=_0x1c4d0a;logger[_0x41ffda('0x3')](JSON[_0x41ffda('0xf')](_0x1baf46));});});},Migration['prototype'][_0x22e99c('0xc')]=function(_0x39c029){const _0x622423=_0x22e99c,_0x3f63ef=this;this[_0x622423('0x21')][_0x622423('0x26')](function(){const _0x25bbb9=_0x622423;return _0x3f63ef['queryInterface'][_0x25bbb9('0xc')](_0x39c029,{'force':!![]})[_0x25bbb9('0x10')](function(){const _0x2a6cef=_0x25bbb9;logger[_0x2a6cef('0x3')](_0x2a6cef('0x2'),_0x39c029);})['catch'](function(_0x22da36){const _0x1ab3bc=_0x25bbb9;logger[_0x1ab3bc('0x3')](JSON[_0x1ab3bc('0xf')](_0x22da36));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x18')]=function(_0x20944f,_0x23be96,_0x12a0df){const _0x31471b=_0x22e99c,_0x158df4=this;this[_0x31471b('0x21')][_0x31471b('0x26')](function(){const _0x3828ef=_0x31471b;return _0x158df4[_0x3828ef('0x6')][_0x3828ef('0x18')](_0x20944f,_0x23be96,{'indexName':_0x12a0df[_0x3828ef('0x1f')],'indicesType':_0x12a0df['indicesType']})[_0x3828ef('0x10')](function(){const _0x5e17d6=_0x3828ef;logger[_0x5e17d6('0x3')](_0x5e17d6('0x5'),_0x20944f,_0x23be96[_0x5e17d6('0x2a')](','),_0x12a0df[_0x5e17d6('0x1f')],_0x12a0df[_0x5e17d6('0x11')]);})[_0x3828ef('0xa')](function(_0x48ad42){const _0x5917c7=_0x3828ef;logger[_0x5917c7('0x3')](JSON[_0x5917c7('0xf')](_0x48ad42));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x1a')]=function(_0x3721d6,_0x4213f6){const _0x7f7fe8=_0x22e99c,_0x235498=this;this[_0x7f7fe8('0x21')][_0x7f7fe8('0x26')](function(){const _0xe14f0d=_0x7f7fe8;return _0x235498[_0xe14f0d('0x6')][_0xe14f0d('0x1a')](_0x3721d6,_0x4213f6)[_0xe14f0d('0x10')](function(){const _0x58c270=_0xe14f0d;logger[_0x58c270('0x3')](_0x58c270('0x1e'),_0x3721d6,_0x4213f6);})['catch'](function(_0xf619e5){const _0x35badc=_0xe14f0d;logger[_0x35badc('0x3')](JSON[_0x35badc('0xf')](_0xf619e5));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x25')]=function(_0x397821){const _0x40d0f6=_0x22e99c,_0xbcc508=this;this[_0x40d0f6('0x21')][_0x40d0f6('0x26')](function(){const _0x271cfa=_0x40d0f6;return _0xbcc508['queryInterface'][_0x271cfa('0x1b')]['query'](_0x397821)[_0x271cfa('0x10')](function(){const _0xd865c=_0x271cfa;logger['info'](_0xd865c('0x13'),_0x397821);})[_0x271cfa('0xa')](function(_0x156144){const _0x1bb25e=_0x271cfa;logger[_0x1bb25e('0x3')](JSON['stringify'](_0x156144));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x17')]=function(_0x32f28e,_0x138eac){const _0x211c3c=_0x22e99c,_0x419751=this;this['sequence'][_0x211c3c('0x26')](function(){const _0x14803a=_0x211c3c;return _0x419751[_0x14803a('0x6')][_0x14803a('0x17')](_0x32f28e,_0x138eac)[_0x14803a('0x10')](function(){const _0x33ace0=_0x14803a;logger[_0x33ace0('0x3')](_0x33ace0('0x22'),_0x138eac,_0x32f28e);})['catch'](function(_0x20e164){const _0x4140ec=_0x14803a;logger['info'](util[_0x4140ec('0x16')](_0x20e164,{'showHidden':![],'depth':null}));});});},Migration[_0x22e99c('0x19')][_0x22e99c('0x1')]=function(_0x3d8ca4,_0x49e5ea,_0x132c85){const _0xa4e71d=_0x22e99c,_0x2e724d=this;this[_0xa4e71d('0x21')][_0xa4e71d('0x26')](function(){const _0xa75bd1=_0xa4e71d;return _0x2e724d[_0xa75bd1('0x6')][_0xa75bd1('0x1')](_0x3d8ca4,_0x49e5ea,_0x132c85)[_0xa75bd1('0x10')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x49e5ea,_0x132c85,_0x3d8ca4);})[_0xa75bd1('0xa')](function(_0x294bfd){const _0x37e0eb=_0xa75bd1;logger[_0x37e0eb('0x3')](util[_0x37e0eb('0x16')](_0x294bfd,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x22e99c('0x15')]=function(_0x59e3bb){const _0x59c22a=_0x22e99c;this[_0x59c22a('0x21')][_0x59c22a('0x26')](function(){return _0x59e3bb();});},module[_0x22e99c('0x14')]={'up':function(_0x35fa73,_0x148b23){return new Promise(function(_0x17eb03){const _0x13475f=a1003_0x4447,_0x34516f=new Migration(_0x35fa73);_0x34516f[_0x13475f('0x29')](_0x13475f('0x9'),_0x13475f('0x24'),{'type':_0x148b23[_0x13475f('0x7')],'defaultValue':0x5}),_0x34516f[_0x13475f('0x29')](_0x13475f('0x9'),'blockDuration',{'type':_0x148b23[_0x13475f('0x7')],'defaultValue':0xa}),_0x34516f[_0x13475f('0x25')]('UPDATE\x20settings\x20SET\x20allowedLoginAttempts\x20=\x200,\x20blockDuration\x20=\x200;'),_0x34516f['addColumn'](_0x13475f('0x4'),'blocked',{'type':_0x148b23[_0x13475f('0x20')],'defaultValue':![]}),_0x34516f[_0x13475f('0x29')](_0x13475f('0x4'),_0x13475f('0xe'),{'type':_0x148b23[_0x13475f('0x7')],'defaultValue':0x0}),_0x34516f[_0x13475f('0x29')]('users',_0x13475f('0x0'),{'type':_0x148b23[_0x13475f('0x28')],'defaultValue':null}),_0x34516f[_0x13475f('0x29')]('users',_0x13475f('0x1d'),{'type':_0x148b23['BOOLEAN'],'defaultValue':![]}),_0x34516f[_0x13475f('0x25')](_0x13475f('0x8')),_0x34516f['final'](_0x17eb03);});},'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 abdd1d5..9583bec 100644 --- a/server/migrations/2.4.20.js +++ b/server/migrations/2.4.20.js @@ -1 +1 @@ -const a1004_0x2042=['sequence','stringify','changeColumn','inspect','indexName','removeColumn','then','BOOLEAN','finally','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','final','settings','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex','query','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','addColumn','enqueue','UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201','exports','Removed\x20column\x20%s\x20from\x20%s','tail','sequelize','queryInterface','info','catch','migration','Changed\x20column\x20%s\x20in\x20table\x20%s','util','renameColumn','dropTable','join','prototype','../config/logger'];(function(_0x4a73a8,_0x20426e){const _0x424a1b=function(_0x4d57aa){while(--_0x4d57aa){_0x4a73a8['push'](_0x4a73a8['shift']());}};_0x424a1b(++_0x20426e);}(a1004_0x2042,0x185));const a1004_0x424a=function(_0x4a73a8,_0x20426e){_0x4a73a8=_0x4a73a8-0x0;let _0x424a1b=a1004_0x2042[_0x4a73a8];return _0x424a1b;};const _0x52f9b1=a1004_0x424a;'use strict';const util=require(_0x52f9b1('0x19')),logger=require(_0x52f9b1('0x1e'))(_0x52f9b1('0x17')),Sequence=function(){};Sequence[_0x52f9b1('0x1d')][_0x52f9b1('0xe')]=function(_0x4d57aa){const _0x190541=_0x52f9b1;this[_0x190541('0x12')]=this[_0x190541('0x12')]?this['tail'][_0x190541('0x4')](_0x4d57aa):_0x4d57aa();};const Migration=function(_0xad8808){const _0x3eca82=_0x52f9b1;this[_0x3eca82('0x14')]=_0xad8808,this[_0x3eca82('0x1f')]=new Sequence();};Migration['prototype'][_0x52f9b1('0x21')]=function(_0x73f49a,_0x32d939,_0x1c1748){const _0x25ea17=_0x52f9b1,_0x2d3ab8=this;this[_0x25ea17('0x1f')][_0x25ea17('0xe')](function(){const _0x320f94=_0x25ea17;return _0x2d3ab8[_0x320f94('0x14')][_0x320f94('0x21')](_0x73f49a,_0x32d939,_0x1c1748)['then'](function(){const _0x423639=_0x320f94;logger[_0x423639('0x15')](_0x423639('0x18'),_0x32d939,_0x73f49a);})[_0x320f94('0x16')](function(_0x2f8076){const _0x5c3102=_0x320f94;logger[_0x5c3102('0x15')](JSON[_0x5c3102('0x20')](_0x2f8076));});});},Migration[_0x52f9b1('0x1d')]['addColumn']=function(_0x5ceefc,_0x3dc088,_0x45c34d){const _0x3580be=_0x52f9b1,_0xdab8b6=this;this[_0x3580be('0x1f')][_0x3580be('0xe')](function(){const _0x372cff=_0x3580be;return _0xdab8b6['queryInterface'][_0x372cff('0xd')](_0x5ceefc,_0x3dc088,_0x45c34d)[_0x372cff('0x2')](function(){const _0x337d50=_0x372cff;logger[_0x337d50('0x15')]('Added\x20column\x20%s\x20to\x20%s',_0x3dc088,_0x5ceefc);})['catch'](function(_0x3b5055){const _0x90f13d=_0x372cff;logger[_0x90f13d('0x15')](JSON[_0x90f13d('0x20')](_0x3b5055));});});},Migration[_0x52f9b1('0x1d')][_0x52f9b1('0x1b')]=function(_0x1b5121){const _0x218c21=_0x52f9b1,_0x2da0e6=this;this['sequence'][_0x218c21('0xe')](function(){const _0x32ca28=_0x218c21;return _0x2da0e6[_0x32ca28('0x14')][_0x32ca28('0x1b')](_0x1b5121,{'force':!![]})[_0x32ca28('0x2')](function(){const _0x175ef=_0x32ca28;logger['info'](_0x175ef('0xc'),_0x1b5121);})[_0x32ca28('0x16')](function(_0xdac20b){const _0x10c8cb=_0x32ca28;logger[_0x10c8cb('0x15')](JSON['stringify'](_0xdac20b));});});},Migration[_0x52f9b1('0x1d')]['addIndex']=function(_0x1cf49d,_0x4ba81d,_0x1318f2){const _0x6e3e9a=_0x52f9b1,_0x2fae29=this;this[_0x6e3e9a('0x1f')][_0x6e3e9a('0xe')](function(){const _0x3604cf=_0x6e3e9a;return _0x2fae29[_0x3604cf('0x14')]['addIndex'](_0x1cf49d,_0x4ba81d,{'indexName':_0x1318f2[_0x3604cf('0x0')],'indicesType':_0x1318f2['indicesType']})[_0x3604cf('0x2')](function(){const _0x31fe6d=_0x3604cf;logger[_0x31fe6d('0x15')](_0x31fe6d('0x8'),_0x1cf49d,_0x4ba81d[_0x31fe6d('0x1c')](','),_0x1318f2['indexName'],_0x1318f2['indicesType']);})['catch'](function(_0x29b7b3){const _0x5e13ff=_0x3604cf;logger[_0x5e13ff('0x15')](JSON['stringify'](_0x29b7b3));});});},Migration[_0x52f9b1('0x1d')][_0x52f9b1('0x9')]=function(_0x243dc2,_0x5c8f47){const _0x2c15f3=_0x52f9b1,_0x409b81=this;this[_0x2c15f3('0x1f')][_0x2c15f3('0xe')](function(){const _0x2a16b9=_0x2c15f3;return _0x409b81[_0x2a16b9('0x14')][_0x2a16b9('0x9')](_0x243dc2,_0x5c8f47)[_0x2a16b9('0x2')](function(){const _0x42655a=_0x2a16b9;logger[_0x42655a('0x15')](_0x42655a('0xb'),_0x243dc2,_0x5c8f47);})[_0x2a16b9('0x16')](function(_0x3a5216){const _0x5bc936=_0x2a16b9;logger[_0x5bc936('0x15')](JSON[_0x5bc936('0x20')](_0x3a5216));});});},Migration[_0x52f9b1('0x1d')][_0x52f9b1('0xa')]=function(_0x272e46){const _0x2afd21=_0x52f9b1,_0x4c4895=this;this[_0x2afd21('0x1f')][_0x2afd21('0xe')](function(){const _0x499364=_0x2afd21;return _0x4c4895[_0x499364('0x14')][_0x499364('0x13')][_0x499364('0xa')](_0x272e46)[_0x499364('0x2')](function(){const _0x442937=_0x499364;logger[_0x442937('0x15')]('query\x20%s',_0x272e46);})[_0x499364('0x16')](function(_0x16dfa3){const _0x513d0d=_0x499364;logger[_0x513d0d('0x15')](JSON['stringify'](_0x16dfa3));});});},Migration[_0x52f9b1('0x1d')][_0x52f9b1('0x1')]=function(_0x8f36f1,_0x9498e4){const _0x345def=_0x52f9b1,_0x36aa0f=this;this[_0x345def('0x1f')]['enqueue'](function(){const _0x775d3a=_0x345def;return _0x36aa0f[_0x775d3a('0x14')][_0x775d3a('0x1')](_0x8f36f1,_0x9498e4)['then'](function(){const _0x391e07=_0x775d3a;logger[_0x391e07('0x15')](_0x391e07('0x11'),_0x9498e4,_0x8f36f1);})['catch'](function(_0x48d8d8){const _0x4774e=_0x775d3a;logger[_0x4774e('0x15')](util[_0x4774e('0x22')](_0x48d8d8,{'showHidden':![],'depth':null}));});});},Migration[_0x52f9b1('0x1d')]['renameColumn']=function(_0x45591e,_0x38145d,_0x5acad1){const _0x32be9d=_0x52f9b1,_0x5b6f0a=this;this[_0x32be9d('0x1f')][_0x32be9d('0xe')](function(){const _0x279262=_0x32be9d;return _0x5b6f0a['queryInterface'][_0x279262('0x1a')](_0x45591e,_0x38145d,_0x5acad1)[_0x279262('0x2')](function(){const _0x576a94=_0x279262;logger[_0x576a94('0x15')](_0x576a94('0x5'),_0x38145d,_0x5acad1,_0x45591e);})[_0x279262('0x16')](function(_0x406f87){const _0x2a86db=_0x279262;logger[_0x2a86db('0x15')](util[_0x2a86db('0x22')](_0x406f87,{'showHidden':![],'depth':null}));});});},Migration[_0x52f9b1('0x1d')][_0x52f9b1('0x6')]=function(_0x4bc88d){const _0x115c7f=_0x52f9b1;this[_0x115c7f('0x1f')][_0x115c7f('0xe')](function(){return _0x4bc88d();});},module[_0x52f9b1('0x10')]={'up':function(_0x1e3971,_0x5c495c){return new Promise(function(_0x40365f){const _0x585040=a1004_0x424a,_0x5bf851=new Migration(_0x1e3971);_0x5bf851['addColumn'](_0x585040('0x7'),'googleSsoEnabled',{'type':_0x5c495c[_0x585040('0x3')],'defaultValue':![]}),_0x5bf851[_0x585040('0xa')](_0x585040('0xf')),_0x5bf851[_0x585040('0x6')](_0x40365f);});},'down':function(){}}; \ No newline at end of file +const a1004_0x1ce1=['final','addColumn','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','BOOLEAN','settings','sequelize','renameColumn','changeColumn','enqueue','stringify','indexName','tail','migration','queryInterface','exports','info','join','util','removeIndex\x20%s\x20%s','indicesType','catch','dropTable','sequence','Added\x20column\x20%s\x20to\x20%s','query\x20%s','prototype','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','UPDATE\x20settings\x20SET\x20googleSsoEnabled\x20=\x201','query','../config/logger','addIndex','finally','then','inspect'];(function(_0x5cf773,_0x1ce176){const _0xc9ad82=function(_0x16ff71){while(--_0x16ff71){_0x5cf773['push'](_0x5cf773['shift']());}};_0xc9ad82(++_0x1ce176);}(a1004_0x1ce1,0x1ec));const a1004_0xc9ad=function(_0x5cf773,_0x1ce176){_0x5cf773=_0x5cf773-0x0;let _0xc9ad82=a1004_0x1ce1[_0x5cf773];return _0xc9ad82;};const _0x2157fd=a1004_0xc9ad;'use strict';const util=require(_0x2157fd('0x1e')),logger=require(_0x2157fd('0x7'))(_0x2157fd('0x19')),Sequence=function(){};Sequence[_0x2157fd('0x2')]['enqueue']=function(_0x16ff71){const _0x4eab8c=_0x2157fd;this[_0x4eab8c('0x18')]=this[_0x4eab8c('0x18')]?this[_0x4eab8c('0x18')][_0x4eab8c('0x9')](_0x16ff71):_0x16ff71();};const Migration=function(_0xa4242a){const _0x1579b2=_0x2157fd;this[_0x1579b2('0x1a')]=_0xa4242a,this[_0x1579b2('0x23')]=new Sequence();};Migration['prototype'][_0x2157fd('0x14')]=function(_0x1c962e,_0x179b66,_0x10653f){const _0x3ba030=_0x2157fd,_0x56e402=this;this[_0x3ba030('0x23')]['enqueue'](function(){const _0x2880d0=_0x3ba030;return _0x56e402[_0x2880d0('0x1a')][_0x2880d0('0x14')](_0x1c962e,_0x179b66,_0x10653f)['then'](function(){const _0x1fa5f4=_0x2880d0;logger['info'](_0x1fa5f4('0xf'),_0x179b66,_0x1c962e);})[_0x2880d0('0x21')](function(_0x1f3a96){logger['info'](JSON['stringify'](_0x1f3a96));});});},Migration[_0x2157fd('0x2')]['addColumn']=function(_0x292863,_0x7aa0ab,_0x2587cc){const _0x5afdf0=_0x2157fd,_0x50b420=this;this[_0x5afdf0('0x23')][_0x5afdf0('0x15')](function(){const _0x11ae53=_0x5afdf0;return _0x50b420['queryInterface'][_0x11ae53('0xd')](_0x292863,_0x7aa0ab,_0x2587cc)[_0x11ae53('0xa')](function(){const _0x56ded3=_0x11ae53;logger[_0x56ded3('0x1c')](_0x56ded3('0x0'),_0x7aa0ab,_0x292863);})[_0x11ae53('0x21')](function(_0xeaab22){const _0x536d71=_0x11ae53;logger[_0x536d71('0x1c')](JSON[_0x536d71('0x16')](_0xeaab22));});});},Migration[_0x2157fd('0x2')][_0x2157fd('0x22')]=function(_0x248cf0){const _0x4397a4=_0x2157fd,_0xd9522d=this;this[_0x4397a4('0x23')][_0x4397a4('0x15')](function(){const _0x60822=_0x4397a4;return _0xd9522d[_0x60822('0x1a')][_0x60822('0x22')](_0x248cf0,{'force':!![]})[_0x60822('0xa')](function(){const _0x4777eb=_0x60822;logger[_0x4777eb('0x1c')]('table\x20dropped\x20%s',_0x248cf0);})['catch'](function(_0x48c10d){const _0x15011c=_0x60822;logger['info'](JSON[_0x15011c('0x16')](_0x48c10d));});});},Migration[_0x2157fd('0x2')][_0x2157fd('0x8')]=function(_0x5182c9,_0x2afa09,_0x3922bd){const _0x2825f0=_0x2157fd,_0x2d2f63=this;this[_0x2825f0('0x23')][_0x2825f0('0x15')](function(){const _0x1907c1=_0x2825f0;return _0x2d2f63['queryInterface'][_0x1907c1('0x8')](_0x5182c9,_0x2afa09,{'indexName':_0x3922bd[_0x1907c1('0x17')],'indicesType':_0x3922bd[_0x1907c1('0x20')]})[_0x1907c1('0xa')](function(){const _0x39cd2d=_0x1907c1;logger[_0x39cd2d('0x1c')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x5182c9,_0x2afa09[_0x39cd2d('0x1d')](','),_0x3922bd[_0x39cd2d('0x17')],_0x3922bd[_0x39cd2d('0x20')]);})[_0x1907c1('0x21')](function(_0x2bbdf2){const _0x1fa4c0=_0x1907c1;logger[_0x1fa4c0('0x1c')](JSON[_0x1fa4c0('0x16')](_0x2bbdf2));});});},Migration[_0x2157fd('0x2')][_0x2157fd('0xe')]=function(_0x2d3120,_0x3bd673){const _0x2710d0=_0x2157fd,_0x4fd977=this;this[_0x2710d0('0x23')][_0x2710d0('0x15')](function(){const _0x55dabb=_0x2710d0;return _0x4fd977[_0x55dabb('0x1a')][_0x55dabb('0xe')](_0x2d3120,_0x3bd673)['then'](function(){const _0x23e149=_0x55dabb;logger[_0x23e149('0x1c')](_0x23e149('0x1f'),_0x2d3120,_0x3bd673);})[_0x55dabb('0x21')](function(_0x4fb8f2){const _0x1cbd15=_0x55dabb;logger[_0x1cbd15('0x1c')](JSON['stringify'](_0x4fb8f2));});});},Migration[_0x2157fd('0x2')][_0x2157fd('0x6')]=function(_0x1c4f78){const _0x7fa54f=_0x2157fd,_0x3fc9cb=this;this['sequence'][_0x7fa54f('0x15')](function(){const _0x343390=_0x7fa54f;return _0x3fc9cb['queryInterface'][_0x343390('0x12')][_0x343390('0x6')](_0x1c4f78)['then'](function(){const _0x5012ca=_0x343390;logger[_0x5012ca('0x1c')](_0x5012ca('0x1'),_0x1c4f78);})['catch'](function(_0x35abcc){const _0x4d76e6=_0x343390;logger[_0x4d76e6('0x1c')](JSON['stringify'](_0x35abcc));});});},Migration[_0x2157fd('0x2')]['removeColumn']=function(_0xc11d14,_0x7e54ad){const _0x3903eb=_0x2157fd,_0xbc38da=this;this[_0x3903eb('0x23')]['enqueue'](function(){const _0xfa774a=_0x3903eb;return _0xbc38da[_0xfa774a('0x1a')][_0xfa774a('0x4')](_0xc11d14,_0x7e54ad)['then'](function(){const _0x1c5f27=_0xfa774a;logger[_0x1c5f27('0x1c')]('Removed\x20column\x20%s\x20from\x20%s',_0x7e54ad,_0xc11d14);})[_0xfa774a('0x21')](function(_0x271a57){const _0x3c5c06=_0xfa774a;logger[_0x3c5c06('0x1c')](util[_0x3c5c06('0xb')](_0x271a57,{'showHidden':![],'depth':null}));});});},Migration[_0x2157fd('0x2')][_0x2157fd('0x13')]=function(_0x4b5bda,_0x2da9ef,_0x4c6f47){const _0x4618a8=this;this['sequence']['enqueue'](function(){const _0x5713e6=a1004_0xc9ad;return _0x4618a8[_0x5713e6('0x1a')][_0x5713e6('0x13')](_0x4b5bda,_0x2da9ef,_0x4c6f47)['then'](function(){const _0x1c68e4=_0x5713e6;logger['info'](_0x1c68e4('0x3'),_0x2da9ef,_0x4c6f47,_0x4b5bda);})['catch'](function(_0x1fad38){const _0x55c199=_0x5713e6;logger[_0x55c199('0x1c')](util['inspect'](_0x1fad38,{'showHidden':![],'depth':null}));});});},Migration[_0x2157fd('0x2')][_0x2157fd('0xc')]=function(_0x1ba959){const _0x5a69f8=_0x2157fd;this['sequence'][_0x5a69f8('0x15')](function(){return _0x1ba959();});},module[_0x2157fd('0x1b')]={'up':function(_0x2af5ae,_0x3f9873){return new Promise(function(_0x1ecb52){const _0x500c7b=a1004_0xc9ad,_0x5c7b83=new Migration(_0x2af5ae);_0x5c7b83[_0x500c7b('0xd')](_0x500c7b('0x11'),'googleSsoEnabled',{'type':_0x3f9873[_0x500c7b('0x10')],'defaultValue':![]}),_0x5c7b83[_0x500c7b('0x6')](_0x500c7b('0x5')),_0x5c7b83[_0x500c7b('0xc')](_0x1ecb52);});},'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 491f1eb..87cbbcb 100644 --- a/server/migrations/2.4.21.js +++ b/server/migrations/2.4.21.js @@ -1 +1 @@ -const a1005_0x109f=['util','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','indicesType','../config/logger','catch','dropTable','join','renameColumn','Removed\x20column\x20%s\x20from\x20%s','final','removeColumn','then','sequelize','exports','removeIndex\x20%s\x20%s','indexName','enqueue','query\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','changeColumn','inspect','Added\x20column\x20%s\x20to\x20%s','addIndex','finally','sequence','addColumn','info','stringify','queryInterface','table\x20dropped\x20%s','removeIndex','tail','migration','prototype','query'];(function(_0x3fb448,_0x109f4d){const _0x3afb61=function(_0x524ac4){while(--_0x524ac4){_0x3fb448['push'](_0x3fb448['shift']());}};_0x3afb61(++_0x109f4d);}(a1005_0x109f,0x1a9));const a1005_0x3afb=function(_0x3fb448,_0x109f4d){_0x3fb448=_0x3fb448-0x0;let _0x3afb61=a1005_0x109f[_0x3fb448];return _0x3afb61;};const _0x49e0ca=a1005_0x3afb;'use strict';const util=require(_0x49e0ca('0x7')),logger=require(_0x49e0ca('0xb'))(_0x49e0ca('0x4')),Sequence=function(){};Sequence[_0x49e0ca('0x5')][_0x49e0ca('0x18')]=function(_0x524ac4){const _0xdc917e=_0x49e0ca;this[_0xdc917e('0x3')]=this['tail']?this['tail'][_0xdc917e('0x1f')](_0x524ac4):_0x524ac4();};const Migration=function(_0x1f0420){const _0x381638=_0x49e0ca;this[_0x381638('0x0')]=_0x1f0420,this[_0x381638('0x20')]=new Sequence();};Migration[_0x49e0ca('0x5')][_0x49e0ca('0x1b')]=function(_0x48b1bc,_0x57abbe,_0x24af74){const _0xd59ffc=_0x49e0ca,_0x1fb33f=this;this['sequence'][_0xd59ffc('0x18')](function(){const _0x2ff891=_0xd59ffc;return _0x1fb33f[_0x2ff891('0x0')][_0x2ff891('0x1b')](_0x48b1bc,_0x57abbe,_0x24af74)[_0x2ff891('0x13')](function(){const _0x45ed8a=_0x2ff891;logger[_0x45ed8a('0x22')](_0x45ed8a('0x8'),_0x57abbe,_0x48b1bc);})[_0x2ff891('0xc')](function(_0x41049a){const _0x3b0284=_0x2ff891;logger[_0x3b0284('0x22')](JSON[_0x3b0284('0x23')](_0x41049a));});});},Migration[_0x49e0ca('0x5')][_0x49e0ca('0x21')]=function(_0x3af02a,_0x76c4b5,_0x6729ed){const _0x39d027=_0x49e0ca,_0x19ad3c=this;this['sequence'][_0x39d027('0x18')](function(){const _0x4f0600=_0x39d027;return _0x19ad3c['queryInterface']['addColumn'](_0x3af02a,_0x76c4b5,_0x6729ed)[_0x4f0600('0x13')](function(){const _0xb19405=_0x4f0600;logger['info'](_0xb19405('0x1d'),_0x76c4b5,_0x3af02a);})[_0x4f0600('0xc')](function(_0x125f9b){const _0x2f7d8c=_0x4f0600;logger[_0x2f7d8c('0x22')](JSON['stringify'](_0x125f9b));});});},Migration[_0x49e0ca('0x5')][_0x49e0ca('0xd')]=function(_0x5d2560){const _0x3cfe25=_0x49e0ca,_0x1b70e9=this;this['sequence'][_0x3cfe25('0x18')](function(){const _0x4d9f04=_0x3cfe25;return _0x1b70e9[_0x4d9f04('0x0')][_0x4d9f04('0xd')](_0x5d2560,{'force':!![]})[_0x4d9f04('0x13')](function(){const _0x4add7d=_0x4d9f04;logger[_0x4add7d('0x22')](_0x4add7d('0x1'),_0x5d2560);})[_0x4d9f04('0xc')](function(_0x1bd220){const _0x11e4b0=_0x4d9f04;logger['info'](JSON[_0x11e4b0('0x23')](_0x1bd220));});});},Migration[_0x49e0ca('0x5')][_0x49e0ca('0x1e')]=function(_0x5949c2,_0x2630a4,_0x32b7f5){const _0x25ca11=_0x49e0ca,_0x9e4be=this;this[_0x25ca11('0x20')][_0x25ca11('0x18')](function(){const _0x22466a=_0x25ca11;return _0x9e4be['queryInterface'][_0x22466a('0x1e')](_0x5949c2,_0x2630a4,{'indexName':_0x32b7f5[_0x22466a('0x17')],'indicesType':_0x32b7f5['indicesType']})[_0x22466a('0x13')](function(){const _0x1527d2=_0x22466a;logger[_0x1527d2('0x22')](_0x1527d2('0x9'),_0x5949c2,_0x2630a4[_0x1527d2('0xe')](','),_0x32b7f5[_0x1527d2('0x17')],_0x32b7f5[_0x1527d2('0xa')]);})[_0x22466a('0xc')](function(_0x4722cc){const _0x4cfba2=_0x22466a;logger[_0x4cfba2('0x22')](JSON[_0x4cfba2('0x23')](_0x4722cc));});});},Migration[_0x49e0ca('0x5')][_0x49e0ca('0x2')]=function(_0x4d04d2,_0x1c1305){const _0x4c4221=_0x49e0ca,_0x38d0be=this;this['sequence'][_0x4c4221('0x18')](function(){const _0x4f9899=_0x4c4221;return _0x38d0be['queryInterface'][_0x4f9899('0x2')](_0x4d04d2,_0x1c1305)[_0x4f9899('0x13')](function(){const _0x2b1c1b=_0x4f9899;logger['info'](_0x2b1c1b('0x16'),_0x4d04d2,_0x1c1305);})['catch'](function(_0x3a27a7){const _0x488ca7=_0x4f9899;logger['info'](JSON[_0x488ca7('0x23')](_0x3a27a7));});});},Migration['prototype'][_0x49e0ca('0x6')]=function(_0xea6789){const _0x2b82c2=_0x49e0ca,_0x4c004a=this;this[_0x2b82c2('0x20')][_0x2b82c2('0x18')](function(){const _0x4ddb8a=_0x2b82c2;return _0x4c004a[_0x4ddb8a('0x0')][_0x4ddb8a('0x14')][_0x4ddb8a('0x6')](_0xea6789)[_0x4ddb8a('0x13')](function(){const _0x42facb=_0x4ddb8a;logger[_0x42facb('0x22')](_0x42facb('0x19'),_0xea6789);})[_0x4ddb8a('0xc')](function(_0x3b99c4){const _0x25a5e4=_0x4ddb8a;logger[_0x25a5e4('0x22')](JSON[_0x25a5e4('0x23')](_0x3b99c4));});});},Migration[_0x49e0ca('0x5')][_0x49e0ca('0x12')]=function(_0x14f9c9,_0x1f72f4){const _0x26f321=_0x49e0ca,_0x4bfff0=this;this[_0x26f321('0x20')]['enqueue'](function(){const _0x491467=_0x26f321;return _0x4bfff0[_0x491467('0x0')]['removeColumn'](_0x14f9c9,_0x1f72f4)[_0x491467('0x13')](function(){const _0x4678ea=_0x491467;logger[_0x4678ea('0x22')](_0x4678ea('0x10'),_0x1f72f4,_0x14f9c9);})['catch'](function(_0x453068){const _0x402a44=_0x491467;logger[_0x402a44('0x22')](util[_0x402a44('0x1c')](_0x453068,{'showHidden':![],'depth':null}));});});},Migration[_0x49e0ca('0x5')][_0x49e0ca('0xf')]=function(_0x28d7b2,_0xdcd7d2,_0x2546a8){const _0x2e2240=_0x49e0ca,_0x14b85f=this;this['sequence'][_0x2e2240('0x18')](function(){const _0x2695e8=_0x2e2240;return _0x14b85f[_0x2695e8('0x0')][_0x2695e8('0xf')](_0x28d7b2,_0xdcd7d2,_0x2546a8)[_0x2695e8('0x13')](function(){const _0x5d502d=_0x2695e8;logger[_0x5d502d('0x22')](_0x5d502d('0x1a'),_0xdcd7d2,_0x2546a8,_0x28d7b2);})[_0x2695e8('0xc')](function(_0x3600a8){logger['info'](util['inspect'](_0x3600a8,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x49e0ca('0x11')]=function(_0x2b0e72){const _0x204a41=_0x49e0ca;this['sequence'][_0x204a41('0x18')](function(){return _0x2b0e72();});},module[_0x49e0ca('0x15')]={'up':function(_0x5e1799){return new Promise(function(_0x21be68){const _0x29d8f2=a1005_0x3afb,_0x43867c=new Migration(_0x5e1799);_0x43867c[_0x29d8f2('0x11')](_0x21be68);});},'down':function(){}}; \ No newline at end of file +const a1005_0x4192=['sequelize','changeColumn','info','removeIndex','catch','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','Added\x20column\x20%s\x20to\x20%s','sequence','join','then','query','renameColumn','addIndex','inspect','addColumn','util','removeColumn','stringify','indicesType','finally','indexName','migration','dropTable','exports','tail','queryInterface','query\x20%s','removeIndex\x20%s\x20%s','Removed\x20column\x20%s\x20from\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','enqueue'];(function(_0x4a2e0d,_0x419293){const _0x34b7f6=function(_0xca2705){while(--_0xca2705){_0x4a2e0d['push'](_0x4a2e0d['shift']());}};_0x34b7f6(++_0x419293);}(a1005_0x4192,0x1bf));const a1005_0x34b7=function(_0x4a2e0d,_0x419293){_0x4a2e0d=_0x4a2e0d-0x0;let _0x34b7f6=a1005_0x4192[_0x4a2e0d];return _0x34b7f6;};const _0x9d07de=a1005_0x34b7;'use strict';const util=require(_0x9d07de('0x1f')),logger=require('../config/logger')(_0x9d07de('0x4')),Sequence=function(){};Sequence[_0x9d07de('0x14')]['enqueue']=function(_0xca2705){const _0x39ae5c=_0x9d07de;this[_0x39ae5c('0x7')]=this['tail']?this[_0x39ae5c('0x7')][_0x39ae5c('0x2')](_0xca2705):_0xca2705();};const Migration=function(_0x41a82){const _0x44ed1e=_0x9d07de;this['queryInterface']=_0x41a82,this[_0x44ed1e('0x17')]=new Sequence();};Migration[_0x9d07de('0x14')][_0x9d07de('0x10')]=function(_0x3c71b2,_0x2cc233,_0x34b4d9){const _0xb42bcb=_0x9d07de,_0x19b603=this;this[_0xb42bcb('0x17')]['enqueue'](function(){const _0x5f15b5=_0xb42bcb;return _0x19b603[_0x5f15b5('0x8')]['changeColumn'](_0x3c71b2,_0x2cc233,_0x34b4d9)[_0x5f15b5('0x19')](function(){const _0x504db9=_0x5f15b5;logger[_0x504db9('0x11')](_0x504db9('0x15'),_0x2cc233,_0x3c71b2);})[_0x5f15b5('0x13')](function(_0x48da9c){const _0x2c1fff=_0x5f15b5;logger[_0x2c1fff('0x11')](JSON['stringify'](_0x48da9c));});});},Migration[_0x9d07de('0x14')][_0x9d07de('0x1e')]=function(_0x5d4aff,_0x292aef,_0x3217ea){const _0x4ea8ff=_0x9d07de,_0x4d4a84=this;this[_0x4ea8ff('0x17')][_0x4ea8ff('0xe')](function(){const _0x1319cf=_0x4ea8ff;return _0x4d4a84[_0x1319cf('0x8')][_0x1319cf('0x1e')](_0x5d4aff,_0x292aef,_0x3217ea)[_0x1319cf('0x19')](function(){const _0x2f7a04=_0x1319cf;logger[_0x2f7a04('0x11')](_0x2f7a04('0x16'),_0x292aef,_0x5d4aff);})[_0x1319cf('0x13')](function(_0x5c78eb){const _0x49e040=_0x1319cf;logger[_0x49e040('0x11')](JSON[_0x49e040('0x0')](_0x5c78eb));});});},Migration[_0x9d07de('0x14')][_0x9d07de('0x5')]=function(_0x22efc2){const _0x1e69cb=_0x9d07de,_0x543e23=this;this[_0x1e69cb('0x17')][_0x1e69cb('0xe')](function(){const _0x5a10aa=_0x1e69cb;return _0x543e23[_0x5a10aa('0x8')]['dropTable'](_0x22efc2,{'force':!![]})[_0x5a10aa('0x19')](function(){const _0x34312d=_0x5a10aa;logger[_0x34312d('0x11')](_0x34312d('0xd'),_0x22efc2);})['catch'](function(_0x3e7ee1){const _0x2e8914=_0x5a10aa;logger['info'](JSON[_0x2e8914('0x0')](_0x3e7ee1));});});},Migration[_0x9d07de('0x14')][_0x9d07de('0x1c')]=function(_0x2f7182,_0x3b51bc,_0x53c657){const _0x524548=_0x9d07de,_0x55bd94=this;this['sequence'][_0x524548('0xe')](function(){const _0x179ec3=_0x524548;return _0x55bd94[_0x179ec3('0x8')][_0x179ec3('0x1c')](_0x2f7182,_0x3b51bc,{'indexName':_0x53c657[_0x179ec3('0x3')],'indicesType':_0x53c657[_0x179ec3('0x1')]})[_0x179ec3('0x19')](function(){const _0x28bbf6=_0x179ec3;logger[_0x28bbf6('0x11')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x2f7182,_0x3b51bc[_0x28bbf6('0x18')](','),_0x53c657[_0x28bbf6('0x3')],_0x53c657[_0x28bbf6('0x1')]);})[_0x179ec3('0x13')](function(_0x5732e0){const _0xbff0c6=_0x179ec3;logger[_0xbff0c6('0x11')](JSON['stringify'](_0x5732e0));});});},Migration[_0x9d07de('0x14')][_0x9d07de('0x12')]=function(_0x53071e,_0x2b7201){const _0x4a79ab=_0x9d07de,_0x3a5266=this;this[_0x4a79ab('0x17')][_0x4a79ab('0xe')](function(){const _0x2606ab=_0x4a79ab;return _0x3a5266[_0x2606ab('0x8')][_0x2606ab('0x12')](_0x53071e,_0x2b7201)[_0x2606ab('0x19')](function(){const _0x36be8c=_0x2606ab;logger[_0x36be8c('0x11')](_0x36be8c('0xa'),_0x53071e,_0x2b7201);})[_0x2606ab('0x13')](function(_0x258344){const _0x1f23d2=_0x2606ab;logger[_0x1f23d2('0x11')](JSON[_0x1f23d2('0x0')](_0x258344));});});},Migration['prototype'][_0x9d07de('0x1a')]=function(_0x1c7330){const _0x31046b=_0x9d07de,_0x4b84ac=this;this[_0x31046b('0x17')][_0x31046b('0xe')](function(){const _0x475af1=_0x31046b;return _0x4b84ac[_0x475af1('0x8')][_0x475af1('0xf')][_0x475af1('0x1a')](_0x1c7330)[_0x475af1('0x19')](function(){const _0x539dc4=_0x475af1;logger[_0x539dc4('0x11')](_0x539dc4('0x9'),_0x1c7330);})[_0x475af1('0x13')](function(_0x49afad){const _0x9c2561=_0x475af1;logger['info'](JSON[_0x9c2561('0x0')](_0x49afad));});});},Migration[_0x9d07de('0x14')][_0x9d07de('0x20')]=function(_0xddb627,_0x274bf5){const _0x283017=_0x9d07de,_0x3c985a=this;this[_0x283017('0x17')][_0x283017('0xe')](function(){const _0x158b09=_0x283017;return _0x3c985a[_0x158b09('0x8')]['removeColumn'](_0xddb627,_0x274bf5)['then'](function(){const _0x4ab071=_0x158b09;logger['info'](_0x4ab071('0xb'),_0x274bf5,_0xddb627);})[_0x158b09('0x13')](function(_0x157a4a){const _0x396cb8=_0x158b09;logger[_0x396cb8('0x11')](util[_0x396cb8('0x1d')](_0x157a4a,{'showHidden':![],'depth':null}));});});},Migration[_0x9d07de('0x14')][_0x9d07de('0x1b')]=function(_0x3440c5,_0x10e049,_0x3968bd){const _0x709d2b=_0x9d07de,_0x5267bf=this;this[_0x709d2b('0x17')][_0x709d2b('0xe')](function(){const _0x343091=_0x709d2b;return _0x5267bf['queryInterface'][_0x343091('0x1b')](_0x3440c5,_0x10e049,_0x3968bd)['then'](function(){const _0x1d5d56=_0x343091;logger[_0x1d5d56('0x11')](_0x1d5d56('0xc'),_0x10e049,_0x3968bd,_0x3440c5);})[_0x343091('0x13')](function(_0x2a2ed4){const _0x35eff2=_0x343091;logger[_0x35eff2('0x11')](util[_0x35eff2('0x1d')](_0x2a2ed4,{'showHidden':![],'depth':null}));});});},Migration[_0x9d07de('0x14')]['final']=function(_0x498f57){const _0x4a8649=_0x9d07de;this[_0x4a8649('0x17')][_0x4a8649('0xe')](function(){return _0x498f57();});},module[_0x9d07de('0x6')]={'up':function(_0x22cb76){return new Promise(function(_0x25aa95){const _0xe5c6f8=new Migration(_0x22cb76);_0xe5c6f8['final'](_0x25aa95);});},'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 a5d9fbc..ea63be7 100644 --- a/server/migrations/2.4.3.js +++ b/server/migrations/2.4.3.js @@ -1 +1 @@ -const a1006_0x3189=['addIndex','addColumn','finally','prototype','changeColumn','enqueue','inspect','table\x20dropped\x20%s','migration','join','info','catch','query','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','indexName','sequence','tail','renameColumn','util','final','query\x20%s','Removed\x20column\x20%s\x20from\x20%s','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','exports','addIndex\x20%s\x20%s\x20%s\x20[%s]','dropTable','queryInterface','then','stringify','indicesType'];(function(_0xd56b96,_0x3189e3){const _0x554ba2=function(_0x8728c1){while(--_0x8728c1){_0xd56b96['push'](_0xd56b96['shift']());}};_0x554ba2(++_0x3189e3);}(a1006_0x3189,0x71));const a1006_0x554b=function(_0xd56b96,_0x3189e3){_0xd56b96=_0xd56b96-0x0;let _0x554ba2=a1006_0x3189[_0xd56b96];return _0x554ba2;};const _0x2152b0=a1006_0x554b;'use strict';const util=require(_0x2152b0('0x2')),logger=require(_0x2152b0('0x1c'))(_0x2152b0('0x17')),Sequence=function(){};Sequence[_0x2152b0('0x12')]['enqueue']=function(_0x8728c1){const _0x276a80=_0x2152b0;this[_0x276a80('0x0')]=this[_0x276a80('0x0')]?this['tail'][_0x276a80('0x11')](_0x8728c1):_0x8728c1();};const Migration=function(_0x1426a3){const _0x5cd659=_0x2152b0;this[_0x5cd659('0xb')]=_0x1426a3,this[_0x5cd659('0x1f')]=new Sequence();};Migration[_0x2152b0('0x12')][_0x2152b0('0x13')]=function(_0x2de531,_0x102c15,_0x2a0be6){const _0x3f1fae=_0x2152b0,_0x331aaf=this;this['sequence'][_0x3f1fae('0x14')](function(){const _0x21d01c=_0x3f1fae;return _0x331aaf[_0x21d01c('0xb')][_0x21d01c('0x13')](_0x2de531,_0x102c15,_0x2a0be6)['then'](function(){const _0xc8d12e=_0x21d01c;logger['info'](_0xc8d12e('0x1d'),_0x102c15,_0x2de531);})[_0x21d01c('0x1a')](function(_0x479e80){const _0x2bb814=_0x21d01c;logger[_0x2bb814('0x19')](JSON[_0x2bb814('0xd')](_0x479e80));});});},Migration['prototype'][_0x2152b0('0x10')]=function(_0x4d8fb6,_0x4b9c43,_0x41d4cc){const _0x77c459=_0x2152b0,_0x41ff5c=this;this[_0x77c459('0x1f')][_0x77c459('0x14')](function(){const _0x543f06=_0x77c459;return _0x41ff5c[_0x543f06('0xb')]['addColumn'](_0x4d8fb6,_0x4b9c43,_0x41d4cc)['then'](function(){const _0x789bdd=_0x543f06;logger[_0x789bdd('0x19')](_0x789bdd('0x6'),_0x4b9c43,_0x4d8fb6);})['catch'](function(_0x3a702a){const _0x3a8343=_0x543f06;logger[_0x3a8343('0x19')](JSON[_0x3a8343('0xd')](_0x3a702a));});});},Migration[_0x2152b0('0x12')][_0x2152b0('0xa')]=function(_0x212509){const _0x20dd0a=_0x2152b0,_0xf376e6=this;this[_0x20dd0a('0x1f')]['enqueue'](function(){const _0x354113=_0x20dd0a;return _0xf376e6['queryInterface']['dropTable'](_0x212509,{'force':!![]})[_0x354113('0xc')](function(){const _0x4d9991=_0x354113;logger[_0x4d9991('0x19')](_0x4d9991('0x16'),_0x212509);})[_0x354113('0x1a')](function(_0x34c719){const _0x2b6761=_0x354113;logger[_0x2b6761('0x19')](JSON[_0x2b6761('0xd')](_0x34c719));});});},Migration[_0x2152b0('0x12')][_0x2152b0('0xf')]=function(_0x25bc22,_0x4a91db,_0x2b7d9b){const _0x5c0529=_0x2152b0,_0x2f1050=this;this[_0x5c0529('0x1f')][_0x5c0529('0x14')](function(){const _0xf9aab8=_0x5c0529;return _0x2f1050['queryInterface'][_0xf9aab8('0xf')](_0x25bc22,_0x4a91db,{'indexName':_0x2b7d9b[_0xf9aab8('0x1e')],'indicesType':_0x2b7d9b[_0xf9aab8('0xe')]})[_0xf9aab8('0xc')](function(){const _0x1fb4e1=_0xf9aab8;logger[_0x1fb4e1('0x19')](_0x1fb4e1('0x9'),_0x25bc22,_0x4a91db[_0x1fb4e1('0x18')](','),_0x2b7d9b[_0x1fb4e1('0x1e')],_0x2b7d9b[_0x1fb4e1('0xe')]);})['catch'](function(_0xdc13eb){const _0x389ed7=_0xf9aab8;logger[_0x389ed7('0x19')](JSON[_0x389ed7('0xd')](_0xdc13eb));});});},Migration['prototype']['removeIndex']=function(_0x32554c,_0x4cce8){const _0x49c723=_0x2152b0,_0x48c62c=this;this[_0x49c723('0x1f')][_0x49c723('0x14')](function(){const _0x26102e=_0x49c723;return _0x48c62c[_0x26102e('0xb')]['removeIndex'](_0x32554c,_0x4cce8)['then'](function(){const _0x23b58b=_0x26102e;logger[_0x23b58b('0x19')]('removeIndex\x20%s\x20%s',_0x32554c,_0x4cce8);})[_0x26102e('0x1a')](function(_0x22df7b){const _0x6ea0d3=_0x26102e;logger[_0x6ea0d3('0x19')](JSON[_0x6ea0d3('0xd')](_0x22df7b));});});},Migration[_0x2152b0('0x12')][_0x2152b0('0x1b')]=function(_0x96ce46){const _0x4c4788=_0x2152b0,_0x5e7738=this;this[_0x4c4788('0x1f')][_0x4c4788('0x14')](function(){const _0x2683f4=_0x4c4788;return _0x5e7738['queryInterface']['sequelize'][_0x2683f4('0x1b')](_0x96ce46)[_0x2683f4('0xc')](function(){const _0x1383b1=_0x2683f4;logger[_0x1383b1('0x19')](_0x1383b1('0x4'),_0x96ce46);})[_0x2683f4('0x1a')](function(_0x35e8af){const _0x34dced=_0x2683f4;logger[_0x34dced('0x19')](JSON['stringify'](_0x35e8af));});});},Migration['prototype']['removeColumn']=function(_0x1352e7,_0x7c771e){const _0x5f052c=_0x2152b0,_0x802881=this;this[_0x5f052c('0x1f')][_0x5f052c('0x14')](function(){const _0x576bcb=_0x5f052c;return _0x802881['queryInterface']['removeColumn'](_0x1352e7,_0x7c771e)[_0x576bcb('0xc')](function(){const _0xf63455=_0x576bcb;logger[_0xf63455('0x19')](_0xf63455('0x5'),_0x7c771e,_0x1352e7);})[_0x576bcb('0x1a')](function(_0x2ef611){const _0x397730=_0x576bcb;logger['info'](util[_0x397730('0x15')](_0x2ef611,{'showHidden':![],'depth':null}));});});},Migration[_0x2152b0('0x12')][_0x2152b0('0x1')]=function(_0x3cdd0c,_0x4056cd,_0x2949bd){const _0x4a6c76=_0x2152b0,_0x5a1047=this;this['sequence'][_0x4a6c76('0x14')](function(){const _0x9af0ee=_0x4a6c76;return _0x5a1047['queryInterface'][_0x9af0ee('0x1')](_0x3cdd0c,_0x4056cd,_0x2949bd)[_0x9af0ee('0xc')](function(){const _0x3ddc78=_0x9af0ee;logger[_0x3ddc78('0x19')](_0x3ddc78('0x7'),_0x4056cd,_0x2949bd,_0x3cdd0c);})[_0x9af0ee('0x1a')](function(_0x43f8f8){const _0x45f263=_0x9af0ee;logger[_0x45f263('0x19')](util[_0x45f263('0x15')](_0x43f8f8,{'showHidden':![],'depth':null}));});});},Migration[_0x2152b0('0x12')][_0x2152b0('0x3')]=function(_0x287746){const _0x5d31fc=_0x2152b0;this[_0x5d31fc('0x1f')][_0x5d31fc('0x14')](function(){return _0x287746();});},module[_0x2152b0('0x8')]={'up':function(_0x1f7460){return new Promise(function(_0x13ccf8){const _0x19d6c3=a1006_0x554b,_0x471641=new Migration(_0x1f7460);_0x471641[_0x19d6c3('0x3')](_0x13ccf8);});},'down':function(){}}; \ No newline at end of file +const a1006_0xf848=['Removed\x20column\x20%s\x20from\x20%s','catch','query\x20%s','renameColumn','removeIndex\x20%s\x20%s','indicesType','../config/logger','sequelize','tail','removeColumn','info','changeColumn','inspect','indexName','prototype','addColumn','exports','migration','join','queryInterface','Added\x20column\x20%s\x20to\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','addIndex','removeIndex','stringify','util','enqueue','then','sequence','final','dropTable'];(function(_0x2aa640,_0xf84840){const _0x31523e=function(_0x2cec85){while(--_0x2cec85){_0x2aa640['push'](_0x2aa640['shift']());}};_0x31523e(++_0xf84840);}(a1006_0xf848,0x1e4));const a1006_0x3152=function(_0x2aa640,_0xf84840){_0x2aa640=_0x2aa640-0x0;let _0x31523e=a1006_0xf848[_0x2aa640];return _0x31523e;};const _0x59109a=a1006_0x3152;'use strict';const util=require(_0x59109a('0x6')),logger=require(_0x59109a('0x12'))(_0x59109a('0x1d')),Sequence=function(){};Sequence[_0x59109a('0x1a')][_0x59109a('0x7')]=function(_0x2cec85){const _0x29e3b5=_0x59109a;this[_0x29e3b5('0x14')]=this[_0x29e3b5('0x14')]?this[_0x29e3b5('0x14')]['finally'](_0x2cec85):_0x2cec85();};const Migration=function(_0x35e5c0){const _0x1cdb53=_0x59109a;this['queryInterface']=_0x35e5c0,this[_0x1cdb53('0x9')]=new Sequence();};Migration[_0x59109a('0x1a')][_0x59109a('0x17')]=function(_0x40b907,_0x2fbcc9,_0x4117a3){const _0x5e41d2=_0x59109a,_0x14d135=this;this[_0x5e41d2('0x9')][_0x5e41d2('0x7')](function(){const _0x270ec3=_0x5e41d2;return _0x14d135[_0x270ec3('0x0')]['changeColumn'](_0x40b907,_0x2fbcc9,_0x4117a3)['then'](function(){const _0x1256e4=_0x270ec3;logger[_0x1256e4('0x16')](_0x1256e4('0x2'),_0x2fbcc9,_0x40b907);})['catch'](function(_0x5a9969){const _0x1add54=_0x270ec3;logger[_0x1add54('0x16')](JSON[_0x1add54('0x5')](_0x5a9969));});});},Migration[_0x59109a('0x1a')][_0x59109a('0x1b')]=function(_0x417c6c,_0x22b99f,_0x488fbb){const _0x47e9be=this;this['sequence']['enqueue'](function(){const _0x8e7ce3=a1006_0x3152;return _0x47e9be['queryInterface'][_0x8e7ce3('0x1b')](_0x417c6c,_0x22b99f,_0x488fbb)[_0x8e7ce3('0x8')](function(){const _0x30549e=_0x8e7ce3;logger[_0x30549e('0x16')](_0x30549e('0x1'),_0x22b99f,_0x417c6c);})['catch'](function(_0xd6675e){const _0x11e7f5=_0x8e7ce3;logger[_0x11e7f5('0x16')](JSON['stringify'](_0xd6675e));});});},Migration[_0x59109a('0x1a')][_0x59109a('0xb')]=function(_0x1441e0){const _0x48e46a=_0x59109a,_0x2c8ef9=this;this[_0x48e46a('0x9')][_0x48e46a('0x7')](function(){const _0x25c82d=_0x48e46a;return _0x2c8ef9[_0x25c82d('0x0')][_0x25c82d('0xb')](_0x1441e0,{'force':!![]})[_0x25c82d('0x8')](function(){logger['info']('table\x20dropped\x20%s',_0x1441e0);})[_0x25c82d('0xd')](function(_0x56a2d1){const _0x4253aa=_0x25c82d;logger['info'](JSON[_0x4253aa('0x5')](_0x56a2d1));});});},Migration[_0x59109a('0x1a')][_0x59109a('0x3')]=function(_0x370cc6,_0x8a8a4a,_0x297df0){const _0x26d783=_0x59109a,_0x4ef30c=this;this[_0x26d783('0x9')][_0x26d783('0x7')](function(){const _0x15992b=_0x26d783;return _0x4ef30c[_0x15992b('0x0')][_0x15992b('0x3')](_0x370cc6,_0x8a8a4a,{'indexName':_0x297df0[_0x15992b('0x19')],'indicesType':_0x297df0[_0x15992b('0x11')]})[_0x15992b('0x8')](function(){const _0x25bf22=_0x15992b;logger[_0x25bf22('0x16')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x370cc6,_0x8a8a4a[_0x25bf22('0x1e')](','),_0x297df0['indexName'],_0x297df0[_0x25bf22('0x11')]);})[_0x15992b('0xd')](function(_0xc28d18){const _0x1fd0cc=_0x15992b;logger[_0x1fd0cc('0x16')](JSON[_0x1fd0cc('0x5')](_0xc28d18));});});},Migration[_0x59109a('0x1a')][_0x59109a('0x4')]=function(_0xc8448e,_0x5b8847){const _0x5203c3=_0x59109a,_0x345a93=this;this[_0x5203c3('0x9')][_0x5203c3('0x7')](function(){const _0x15e3f8=_0x5203c3;return _0x345a93[_0x15e3f8('0x0')][_0x15e3f8('0x4')](_0xc8448e,_0x5b8847)[_0x15e3f8('0x8')](function(){const _0x28563f=_0x15e3f8;logger[_0x28563f('0x16')](_0x28563f('0x10'),_0xc8448e,_0x5b8847);})[_0x15e3f8('0xd')](function(_0x561967){const _0x5759ab=_0x15e3f8;logger[_0x5759ab('0x16')](JSON[_0x5759ab('0x5')](_0x561967));});});},Migration[_0x59109a('0x1a')]['query']=function(_0x26e25b){const _0x14164c=_0x59109a,_0xc0c5b9=this;this[_0x14164c('0x9')]['enqueue'](function(){const _0x35209a=_0x14164c;return _0xc0c5b9[_0x35209a('0x0')][_0x35209a('0x13')]['query'](_0x26e25b)[_0x35209a('0x8')](function(){const _0x1df097=_0x35209a;logger[_0x1df097('0x16')](_0x1df097('0xe'),_0x26e25b);})[_0x35209a('0xd')](function(_0x528173){const _0x4c6a43=_0x35209a;logger[_0x4c6a43('0x16')](JSON[_0x4c6a43('0x5')](_0x528173));});});},Migration['prototype'][_0x59109a('0x15')]=function(_0x5d7b9d,_0x3ce2dc){const _0x40f8b4=_0x59109a,_0x348696=this;this[_0x40f8b4('0x9')][_0x40f8b4('0x7')](function(){const _0x29e1a6=_0x40f8b4;return _0x348696[_0x29e1a6('0x0')][_0x29e1a6('0x15')](_0x5d7b9d,_0x3ce2dc)[_0x29e1a6('0x8')](function(){const _0x43c893=_0x29e1a6;logger[_0x43c893('0x16')](_0x43c893('0xc'),_0x3ce2dc,_0x5d7b9d);})[_0x29e1a6('0xd')](function(_0x310618){const _0x123f07=_0x29e1a6;logger[_0x123f07('0x16')](util[_0x123f07('0x18')](_0x310618,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x59109a('0xf')]=function(_0x34821a,_0x5ad38e,_0x54791e){const _0x382cf5=_0x59109a,_0x98616d=this;this[_0x382cf5('0x9')][_0x382cf5('0x7')](function(){const _0x87c1f2=_0x382cf5;return _0x98616d[_0x87c1f2('0x0')][_0x87c1f2('0xf')](_0x34821a,_0x5ad38e,_0x54791e)[_0x87c1f2('0x8')](function(){const _0x55158d=_0x87c1f2;logger[_0x55158d('0x16')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5ad38e,_0x54791e,_0x34821a);})[_0x87c1f2('0xd')](function(_0x34e074){const _0xdb32ea=_0x87c1f2;logger[_0xdb32ea('0x16')](util[_0xdb32ea('0x18')](_0x34e074,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x59109a('0xa')]=function(_0x283052){const _0x17cf49=_0x59109a;this[_0x17cf49('0x9')]['enqueue'](function(){return _0x283052();});},module[_0x59109a('0x1c')]={'up':function(_0x33c6aa){return new Promise(function(_0x2e0a93){const _0x383ae3=a1006_0x3152,_0x3504a9=new Migration(_0x33c6aa);_0x3504a9[_0x383ae3('0xa')](_0x2e0a93);});},'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 158c35d..5c895a1 100644 --- a/server/migrations/2.4.4.js +++ b/server/migrations/2.4.4.js @@ -1 +1 @@ -const a1007_0x480e=['enqueue','removeIndex\x20%s\x20%s','authToken','removeIndex','migration','addColumn','changeColumn','queryInterface','exports','indexName','catch','Changed\x20column\x20%s\x20in\x20table\x20%s','code','util','refreshToken','info','renameColumn','final','zone','tail','prototype','clientId','inspect','indicesType','addIndex','query','stringify','STRING','sequence','int_zoho_accounts','then','finally','removeColumn'];(function(_0x3bedaa,_0x480e8b){const _0x1c45c4=function(_0xdd43a9){while(--_0xdd43a9){_0x3bedaa['push'](_0x3bedaa['shift']());}};_0x1c45c4(++_0x480e8b);}(a1007_0x480e,0xf5));const a1007_0x1c45=function(_0x3bedaa,_0x480e8b){_0x3bedaa=_0x3bedaa-0x0;let _0x1c45c4=a1007_0x480e[_0x3bedaa];return _0x1c45c4;};const _0x200eac=a1007_0x1c45;'use strict';const util=require(_0x200eac('0x20')),logger=require('../config/logger')(_0x200eac('0x17')),Sequence=function(){};Sequence[_0x200eac('0x6')][_0x200eac('0x13')]=function(_0xdd43a9){const _0x346a3b=_0x200eac;this['tail']=this[_0x346a3b('0x5')]?this[_0x346a3b('0x5')][_0x346a3b('0x11')](_0xdd43a9):_0xdd43a9();};const Migration=function(_0x469dc2){const _0x4c7edb=_0x200eac;this['queryInterface']=_0x469dc2,this[_0x4c7edb('0xe')]=new Sequence();};Migration['prototype'][_0x200eac('0x19')]=function(_0x3939c4,_0xe12e0e,_0x3b0583){const _0x46b2fb=_0x200eac,_0x1c4ef2=this;this[_0x46b2fb('0xe')][_0x46b2fb('0x13')](function(){const _0x576462=_0x46b2fb;return _0x1c4ef2['queryInterface']['changeColumn'](_0x3939c4,_0xe12e0e,_0x3b0583)[_0x576462('0x10')](function(){const _0x407daa=_0x576462;logger[_0x407daa('0x1')](_0x407daa('0x1e'),_0xe12e0e,_0x3939c4);})[_0x576462('0x1d')](function(_0x3830ff){const _0x328ff0=_0x576462;logger[_0x328ff0('0x1')](JSON[_0x328ff0('0xc')](_0x3830ff));});});},Migration[_0x200eac('0x6')]['addColumn']=function(_0xfb826d,_0x4147ce,_0x39f725){const _0x506545=_0x200eac,_0x33527c=this;this[_0x506545('0xe')][_0x506545('0x13')](function(){const _0x553e59=_0x506545;return _0x33527c[_0x553e59('0x1a')][_0x553e59('0x18')](_0xfb826d,_0x4147ce,_0x39f725)[_0x553e59('0x10')](function(){const _0x53894e=_0x553e59;logger[_0x53894e('0x1')]('Added\x20column\x20%s\x20to\x20%s',_0x4147ce,_0xfb826d);})[_0x553e59('0x1d')](function(_0x55b145){logger['info'](JSON['stringify'](_0x55b145));});});},Migration[_0x200eac('0x6')]['dropTable']=function(_0x28ac21){const _0x5cc7d4=_0x200eac,_0x134f24=this;this[_0x5cc7d4('0xe')]['enqueue'](function(){const _0x361997=_0x5cc7d4;return _0x134f24[_0x361997('0x1a')]['dropTable'](_0x28ac21,{'force':!![]})[_0x361997('0x10')](function(){const _0x366edc=_0x361997;logger[_0x366edc('0x1')]('table\x20dropped\x20%s',_0x28ac21);})[_0x361997('0x1d')](function(_0x59c3f4){const _0x470e84=_0x361997;logger['info'](JSON[_0x470e84('0xc')](_0x59c3f4));});});},Migration[_0x200eac('0x6')]['addIndex']=function(_0x3c5246,_0x1e2300,_0x325b8f){const _0x33f002=_0x200eac,_0x83997a=this;this[_0x33f002('0xe')][_0x33f002('0x13')](function(){const _0x26ba29=_0x33f002;return _0x83997a[_0x26ba29('0x1a')][_0x26ba29('0xa')](_0x3c5246,_0x1e2300,{'indexName':_0x325b8f[_0x26ba29('0x1c')],'indicesType':_0x325b8f[_0x26ba29('0x9')]})[_0x26ba29('0x10')](function(){const _0x155f34=_0x26ba29;logger[_0x155f34('0x1')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x3c5246,_0x1e2300['join'](','),_0x325b8f[_0x155f34('0x1c')],_0x325b8f['indicesType']);})['catch'](function(_0x2895cb){const _0x2614d1=_0x26ba29;logger['info'](JSON[_0x2614d1('0xc')](_0x2895cb));});});},Migration[_0x200eac('0x6')][_0x200eac('0x16')]=function(_0x442bb4,_0x1bdb1e){const _0x35ff23=_0x200eac,_0x30a819=this;this[_0x35ff23('0xe')][_0x35ff23('0x13')](function(){const _0x11dd2b=_0x35ff23;return _0x30a819[_0x11dd2b('0x1a')]['removeIndex'](_0x442bb4,_0x1bdb1e)[_0x11dd2b('0x10')](function(){const _0x557615=_0x11dd2b;logger[_0x557615('0x1')](_0x557615('0x14'),_0x442bb4,_0x1bdb1e);})[_0x11dd2b('0x1d')](function(_0xe30f53){const _0x17f875=_0x11dd2b;logger[_0x17f875('0x1')](JSON[_0x17f875('0xc')](_0xe30f53));});});},Migration[_0x200eac('0x6')]['query']=function(_0x9297d3){const _0x24be8e=_0x200eac,_0x250492=this;this[_0x24be8e('0xe')][_0x24be8e('0x13')](function(){const _0x10a4ae=_0x24be8e;return _0x250492[_0x10a4ae('0x1a')]['sequelize'][_0x10a4ae('0xb')](_0x9297d3)['then'](function(){logger['info']('query\x20%s',_0x9297d3);})[_0x10a4ae('0x1d')](function(_0x14ff6c){const _0x39b40a=_0x10a4ae;logger[_0x39b40a('0x1')](JSON[_0x39b40a('0xc')](_0x14ff6c));});});},Migration[_0x200eac('0x6')]['removeColumn']=function(_0x5685d6,_0xb3e8dd){const _0x399142=_0x200eac,_0x228c58=this;this[_0x399142('0xe')]['enqueue'](function(){const _0x2916ed=_0x399142;return _0x228c58[_0x2916ed('0x1a')][_0x2916ed('0x12')](_0x5685d6,_0xb3e8dd)['then'](function(){const _0x3545e4=_0x2916ed;logger[_0x3545e4('0x1')]('Removed\x20column\x20%s\x20from\x20%s',_0xb3e8dd,_0x5685d6);})[_0x2916ed('0x1d')](function(_0x4ca258){const _0x19613f=_0x2916ed;logger[_0x19613f('0x1')](util['inspect'](_0x4ca258,{'showHidden':![],'depth':null}));});});},Migration[_0x200eac('0x6')][_0x200eac('0x2')]=function(_0x249ba7,_0x5388f4,_0x1d00de){const _0x3a998d=_0x200eac,_0x2c5f4a=this;this[_0x3a998d('0xe')]['enqueue'](function(){const _0x495da3=_0x3a998d;return _0x2c5f4a[_0x495da3('0x1a')]['renameColumn'](_0x249ba7,_0x5388f4,_0x1d00de)[_0x495da3('0x10')](function(){const _0x2b7ca7=_0x495da3;logger[_0x2b7ca7('0x1')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x5388f4,_0x1d00de,_0x249ba7);})[_0x495da3('0x1d')](function(_0x397ed1){const _0xfdb14a=_0x495da3;logger['info'](util[_0xfdb14a('0x8')](_0x397ed1,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x200eac('0x3')]=function(_0x355d79){const _0x4d80d5=_0x200eac;this['sequence'][_0x4d80d5('0x13')](function(){return _0x355d79();});},module[_0x200eac('0x1b')]={'up':function(_0x2b1918,_0x1fda77){return new Promise(function(_0x4d5490){const _0x4526de=a1007_0x1c45,_0x3828c5=new Migration(_0x2b1918);_0x3828c5[_0x4526de('0x12')](_0x4526de('0xf'),_0x4526de('0x15')),_0x3828c5[_0x4526de('0x18')]('int_zoho_accounts',_0x4526de('0x4'),{'type':_0x1fda77[_0x4526de('0xd')],'defaultValue':'EU'}),_0x3828c5['addColumn'](_0x4526de('0xf'),_0x4526de('0x7'),{'type':_0x1fda77['STRING']}),_0x3828c5['addColumn']('int_zoho_accounts','clientSecret',{'type':_0x1fda77[_0x4526de('0xd')]}),_0x3828c5['addColumn'](_0x4526de('0xf'),_0x4526de('0x1f'),{'type':_0x1fda77[_0x4526de('0xd')]}),_0x3828c5[_0x4526de('0x18')](_0x4526de('0xf'),_0x4526de('0x0'),{'type':_0x1fda77['STRING']}),_0x3828c5[_0x4526de('0x3')](_0x4d5490);});},'down':function(){}}; \ No newline at end of file +const a1007_0x27d0=['clientSecret','stringify','zone','queryInterface','exports','STRING','indexName','info','finally','table\x20dropped\x20%s','removeIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','addColumn','query','catch','query\x20%s','sequelize','tail','refreshToken','prototype','int_zoho_accounts','clientId','inspect','renameColumn','removeColumn','indicesType','final','Removed\x20column\x20%s\x20from\x20%s','then','../config/logger','enqueue','migration','sequence','addIndex\x20%s\x20%s\x20%s\x20[%s]','code','Added\x20column\x20%s\x20to\x20%s','dropTable','authToken'];(function(_0x6defc5,_0x27d013){const _0x3a80b4=function(_0x5ab038){while(--_0x5ab038){_0x6defc5['push'](_0x6defc5['shift']());}};_0x3a80b4(++_0x27d013);}(a1007_0x27d0,0x12d));const a1007_0x3a80=function(_0x6defc5,_0x27d013){_0x6defc5=_0x6defc5-0x0;let _0x3a80b4=a1007_0x27d0[_0x6defc5];return _0x3a80b4;};const _0x47b30d=a1007_0x3a80;'use strict';const util=require('util'),logger=require(_0x47b30d('0x20'))(_0x47b30d('0x22')),Sequence=function(){};Sequence[_0x47b30d('0x16')][_0x47b30d('0x21')]=function(_0x5ab038){const _0x4bcfa2=_0x47b30d;this[_0x4bcfa2('0x14')]=this['tail']?this[_0x4bcfa2('0x14')][_0x4bcfa2('0xb')](_0x5ab038):_0x5ab038();};const Migration=function(_0x36b8ac){const _0x314836=_0x47b30d;this[_0x314836('0x6')]=_0x36b8ac,this[_0x314836('0x23')]=new Sequence();};Migration[_0x47b30d('0x16')]['changeColumn']=function(_0x485c69,_0x39db3e,_0x48b574){const _0x4b4a59=_0x47b30d,_0x4fdaae=this;this['sequence'][_0x4b4a59('0x21')](function(){const _0x2d0e31=_0x4b4a59;return _0x4fdaae[_0x2d0e31('0x6')]['changeColumn'](_0x485c69,_0x39db3e,_0x48b574)['then'](function(){const _0x391aa9=_0x2d0e31;logger['info'](_0x391aa9('0xe'),_0x39db3e,_0x485c69);})[_0x2d0e31('0x11')](function(_0x5617e5){const _0x3e8ee7=_0x2d0e31;logger[_0x3e8ee7('0xa')](JSON['stringify'](_0x5617e5));});});},Migration['prototype'][_0x47b30d('0xf')]=function(_0x356dcf,_0x7f92ff,_0x5dc740){const _0x560c46=_0x47b30d,_0x1d54bd=this;this[_0x560c46('0x23')][_0x560c46('0x21')](function(){const _0x379486=_0x560c46;return _0x1d54bd[_0x379486('0x6')][_0x379486('0xf')](_0x356dcf,_0x7f92ff,_0x5dc740)[_0x379486('0x1f')](function(){const _0x417222=_0x379486;logger['info'](_0x417222('0x0'),_0x7f92ff,_0x356dcf);})[_0x379486('0x11')](function(_0x2570a3){const _0x54622d=_0x379486;logger['info'](JSON[_0x54622d('0x4')](_0x2570a3));});});},Migration[_0x47b30d('0x16')]['dropTable']=function(_0x1cf7c4){const _0x1277d3=_0x47b30d,_0x1f7652=this;this[_0x1277d3('0x23')][_0x1277d3('0x21')](function(){const _0x36c8af=_0x1277d3;return _0x1f7652['queryInterface'][_0x36c8af('0x1')](_0x1cf7c4,{'force':!![]})[_0x36c8af('0x1f')](function(){const _0x132005=_0x36c8af;logger[_0x132005('0xa')](_0x132005('0xc'),_0x1cf7c4);})[_0x36c8af('0x11')](function(_0x36d1cb){const _0x101f42=_0x36c8af;logger['info'](JSON[_0x101f42('0x4')](_0x36d1cb));});});},Migration[_0x47b30d('0x16')]['addIndex']=function(_0x439f1c,_0x4012ed,_0x26d712){const _0x3664b6=_0x47b30d,_0x1e109d=this;this[_0x3664b6('0x23')][_0x3664b6('0x21')](function(){const _0x47c933=_0x3664b6;return _0x1e109d[_0x47c933('0x6')]['addIndex'](_0x439f1c,_0x4012ed,{'indexName':_0x26d712[_0x47c933('0x9')],'indicesType':_0x26d712['indicesType']})[_0x47c933('0x1f')](function(){const _0x342903=_0x47c933;logger['info'](_0x342903('0x24'),_0x439f1c,_0x4012ed['join'](','),_0x26d712[_0x342903('0x9')],_0x26d712[_0x342903('0x1c')]);})[_0x47c933('0x11')](function(_0x4898b2){const _0x5e67fe=_0x47c933;logger[_0x5e67fe('0xa')](JSON[_0x5e67fe('0x4')](_0x4898b2));});});},Migration[_0x47b30d('0x16')]['removeIndex']=function(_0xa7f65c,_0x232df1){const _0x25ca2e=_0x47b30d,_0x2d07e0=this;this[_0x25ca2e('0x23')]['enqueue'](function(){const _0x15c808=_0x25ca2e;return _0x2d07e0[_0x15c808('0x6')][_0x15c808('0xd')](_0xa7f65c,_0x232df1)['then'](function(){const _0x4b6a07=_0x15c808;logger[_0x4b6a07('0xa')]('removeIndex\x20%s\x20%s',_0xa7f65c,_0x232df1);})[_0x15c808('0x11')](function(_0xa2197c){const _0xc5f409=_0x15c808;logger[_0xc5f409('0xa')](JSON[_0xc5f409('0x4')](_0xa2197c));});});},Migration[_0x47b30d('0x16')][_0x47b30d('0x10')]=function(_0x536835){const _0x1bcbdc=_0x47b30d,_0x1a942c=this;this[_0x1bcbdc('0x23')][_0x1bcbdc('0x21')](function(){const _0x5970ca=_0x1bcbdc;return _0x1a942c[_0x5970ca('0x6')][_0x5970ca('0x13')]['query'](_0x536835)[_0x5970ca('0x1f')](function(){const _0x555955=_0x5970ca;logger[_0x555955('0xa')](_0x555955('0x12'),_0x536835);})['catch'](function(_0x11bc58){const _0x1bc22a=_0x5970ca;logger['info'](JSON[_0x1bc22a('0x4')](_0x11bc58));});});},Migration['prototype']['removeColumn']=function(_0x240cb5,_0x19495b){const _0x5609fe=_0x47b30d,_0x90089f=this;this['sequence'][_0x5609fe('0x21')](function(){const _0x3ce6ae=_0x5609fe;return _0x90089f[_0x3ce6ae('0x6')][_0x3ce6ae('0x1b')](_0x240cb5,_0x19495b)['then'](function(){const _0x3f264a=_0x3ce6ae;logger['info'](_0x3f264a('0x1e'),_0x19495b,_0x240cb5);})[_0x3ce6ae('0x11')](function(_0x205326){const _0x40bd11=_0x3ce6ae;logger[_0x40bd11('0xa')](util[_0x40bd11('0x19')](_0x205326,{'showHidden':![],'depth':null}));});});},Migration[_0x47b30d('0x16')][_0x47b30d('0x1a')]=function(_0x4a4e3d,_0x1260ed,_0x31d2b2){const _0x5c4fb6=_0x47b30d,_0x513286=this;this[_0x5c4fb6('0x23')][_0x5c4fb6('0x21')](function(){const _0x450d76=_0x5c4fb6;return _0x513286[_0x450d76('0x6')][_0x450d76('0x1a')](_0x4a4e3d,_0x1260ed,_0x31d2b2)[_0x450d76('0x1f')](function(){const _0x2ca010=_0x450d76;logger[_0x2ca010('0xa')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x1260ed,_0x31d2b2,_0x4a4e3d);})[_0x450d76('0x11')](function(_0x40147f){const _0xfb7479=_0x450d76;logger['info'](util[_0xfb7479('0x19')](_0x40147f,{'showHidden':![],'depth':null}));});});},Migration[_0x47b30d('0x16')][_0x47b30d('0x1d')]=function(_0x3d358d){const _0x56b035=_0x47b30d;this[_0x56b035('0x23')][_0x56b035('0x21')](function(){return _0x3d358d();});},module[_0x47b30d('0x7')]={'up':function(_0x49dfac,_0x428963){return new Promise(function(_0x35efd0){const _0x39c32e=a1007_0x3a80,_0x506bae=new Migration(_0x49dfac);_0x506bae[_0x39c32e('0x1b')](_0x39c32e('0x17'),_0x39c32e('0x2')),_0x506bae[_0x39c32e('0xf')](_0x39c32e('0x17'),_0x39c32e('0x5'),{'type':_0x428963[_0x39c32e('0x8')],'defaultValue':'EU'}),_0x506bae[_0x39c32e('0xf')]('int_zoho_accounts',_0x39c32e('0x18'),{'type':_0x428963[_0x39c32e('0x8')]}),_0x506bae[_0x39c32e('0xf')](_0x39c32e('0x17'),_0x39c32e('0x3'),{'type':_0x428963[_0x39c32e('0x8')]}),_0x506bae[_0x39c32e('0xf')]('int_zoho_accounts',_0x39c32e('0x25'),{'type':_0x428963[_0x39c32e('0x8')]}),_0x506bae[_0x39c32e('0xf')]('int_zoho_accounts',_0x39c32e('0x15'),{'type':_0x428963['STRING']}),_0x506bae['final'](_0x35efd0);});},'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 c7a40b5..047d25a 100644 --- a/server/migrations/2.4.5.js +++ b/server/migrations/2.4.5.js @@ -1 +1 @@ -const a1008_0x28c7=['info','final','query','dropTable','finally','enqueue','renameColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s','then','join','Added\x20column\x20%s\x20to\x20%s','exports','removeIndex','addColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','addIndex','stringify','tail','migration','catch','query\x20%s','queryInterface','indicesType','inspect','table\x20dropped\x20%s','sequence','removeColumn','changeColumn','indexName','../config/logger','removeIndex\x20%s\x20%s'];(function(_0x1fc321,_0x28c728){const _0x451023=function(_0x2cde3b){while(--_0x2cde3b){_0x1fc321['push'](_0x1fc321['shift']());}};_0x451023(++_0x28c728);}(a1008_0x28c7,0x10e));const a1008_0x4510=function(_0x1fc321,_0x28c728){_0x1fc321=_0x1fc321-0x0;let _0x451023=a1008_0x28c7[_0x1fc321];return _0x451023;};const _0x540685=a1008_0x4510;'use strict';const util=require('util'),logger=require(_0x540685('0x19'))(_0x540685('0xe')),Sequence=function(){};Sequence[_0x540685('0x2')][_0x540685('0x20')]=function(_0x2cde3b){const _0x6480f7=_0x540685;this['tail']=this[_0x6480f7('0xd')]?this['tail'][_0x6480f7('0x1f')](_0x2cde3b):_0x2cde3b();};const Migration=function(_0x32b40f){this['queryInterface']=_0x32b40f,this['sequence']=new Sequence();};Migration[_0x540685('0x2')][_0x540685('0x17')]=function(_0x500710,_0x4ae6d0,_0x312f6c){const _0x26fab5=_0x540685,_0x5f5eac=this;this[_0x26fab5('0x15')][_0x26fab5('0x20')](function(){const _0x30d5d0=_0x26fab5;return _0x5f5eac[_0x30d5d0('0x11')][_0x30d5d0('0x17')](_0x500710,_0x4ae6d0,_0x312f6c)[_0x30d5d0('0x4')](function(){const _0x5d97f2=_0x30d5d0;logger['info'](_0x5d97f2('0x3'),_0x4ae6d0,_0x500710);})[_0x30d5d0('0xf')](function(_0x6bf744){const _0x341ae4=_0x30d5d0;logger['info'](JSON[_0x341ae4('0xc')](_0x6bf744));});});},Migration[_0x540685('0x2')][_0x540685('0x9')]=function(_0x35f108,_0xbcee12,_0x3e952a){const _0x2d76cc=_0x540685,_0xcb818b=this;this[_0x2d76cc('0x15')][_0x2d76cc('0x20')](function(){const _0x5692b8=_0x2d76cc;return _0xcb818b[_0x5692b8('0x11')][_0x5692b8('0x9')](_0x35f108,_0xbcee12,_0x3e952a)['then'](function(){const _0x13732c=_0x5692b8;logger[_0x13732c('0x1b')](_0x13732c('0x6'),_0xbcee12,_0x35f108);})[_0x5692b8('0xf')](function(_0x6f0f58){const _0x23cbac=_0x5692b8;logger[_0x23cbac('0x1b')](JSON[_0x23cbac('0xc')](_0x6f0f58));});});},Migration[_0x540685('0x2')][_0x540685('0x1e')]=function(_0x5ef57f){const _0x14c951=_0x540685,_0x197507=this;this['sequence'][_0x14c951('0x20')](function(){const _0x2d5af5=_0x14c951;return _0x197507[_0x2d5af5('0x11')][_0x2d5af5('0x1e')](_0x5ef57f,{'force':!![]})[_0x2d5af5('0x4')](function(){const _0x5994fd=_0x2d5af5;logger[_0x5994fd('0x1b')](_0x5994fd('0x14'),_0x5ef57f);})[_0x2d5af5('0xf')](function(_0x247aad){const _0x54a057=_0x2d5af5;logger[_0x54a057('0x1b')](JSON[_0x54a057('0xc')](_0x247aad));});});},Migration[_0x540685('0x2')][_0x540685('0xb')]=function(_0x19b148,_0x3672c5,_0x529c6e){const _0x1a7043=this;this['sequence']['enqueue'](function(){const _0x10cef5=a1008_0x4510;return _0x1a7043[_0x10cef5('0x11')][_0x10cef5('0xb')](_0x19b148,_0x3672c5,{'indexName':_0x529c6e[_0x10cef5('0x18')],'indicesType':_0x529c6e[_0x10cef5('0x12')]})[_0x10cef5('0x4')](function(){const _0xdb8e87=_0x10cef5;logger['info'](_0xdb8e87('0xa'),_0x19b148,_0x3672c5[_0xdb8e87('0x5')](','),_0x529c6e[_0xdb8e87('0x18')],_0x529c6e['indicesType']);})[_0x10cef5('0xf')](function(_0x12104a){const _0x209617=_0x10cef5;logger['info'](JSON[_0x209617('0xc')](_0x12104a));});});},Migration[_0x540685('0x2')][_0x540685('0x8')]=function(_0x317b4d,_0x5d4ee9){const _0x2cca4b=_0x540685,_0x1ee1d0=this;this[_0x2cca4b('0x15')][_0x2cca4b('0x20')](function(){const _0x52a6bf=_0x2cca4b;return _0x1ee1d0['queryInterface']['removeIndex'](_0x317b4d,_0x5d4ee9)[_0x52a6bf('0x4')](function(){const _0xf00efe=_0x52a6bf;logger[_0xf00efe('0x1b')](_0xf00efe('0x1a'),_0x317b4d,_0x5d4ee9);})[_0x52a6bf('0xf')](function(_0x4c309b){const _0x170696=_0x52a6bf;logger['info'](JSON[_0x170696('0xc')](_0x4c309b));});});},Migration['prototype'][_0x540685('0x1d')]=function(_0xa248eb){const _0x55098f=_0x540685,_0x18dd01=this;this['sequence'][_0x55098f('0x20')](function(){const _0x4b664b=_0x55098f;return _0x18dd01[_0x4b664b('0x11')]['sequelize'][_0x4b664b('0x1d')](_0xa248eb)['then'](function(){const _0x3b3eea=_0x4b664b;logger[_0x3b3eea('0x1b')](_0x3b3eea('0x10'),_0xa248eb);})[_0x4b664b('0xf')](function(_0x1b4d2f){const _0x4a337b=_0x4b664b;logger['info'](JSON[_0x4a337b('0xc')](_0x1b4d2f));});});},Migration[_0x540685('0x2')][_0x540685('0x16')]=function(_0x4a376c,_0x13fb68){const _0x5f08bb=_0x540685,_0x4e5626=this;this[_0x5f08bb('0x15')][_0x5f08bb('0x20')](function(){const _0xa6b7fb=_0x5f08bb;return _0x4e5626[_0xa6b7fb('0x11')]['removeColumn'](_0x4a376c,_0x13fb68)[_0xa6b7fb('0x4')](function(){const _0x599980=_0xa6b7fb;logger[_0x599980('0x1b')]('Removed\x20column\x20%s\x20from\x20%s',_0x13fb68,_0x4a376c);})[_0xa6b7fb('0xf')](function(_0x1b7dd5){const _0x3e4b84=_0xa6b7fb;logger['info'](util[_0x3e4b84('0x13')](_0x1b7dd5,{'showHidden':![],'depth':null}));});});},Migration[_0x540685('0x2')][_0x540685('0x0')]=function(_0x747872,_0x4f5634,_0x27bce4){const _0x2027f4=this;this['sequence']['enqueue'](function(){const _0x47e57e=a1008_0x4510;return _0x2027f4[_0x47e57e('0x11')][_0x47e57e('0x0')](_0x747872,_0x4f5634,_0x27bce4)['then'](function(){const _0x15cfdf=_0x47e57e;logger['info'](_0x15cfdf('0x1'),_0x4f5634,_0x27bce4,_0x747872);})['catch'](function(_0x2b8ab0){const _0x5980c6=_0x47e57e;logger[_0x5980c6('0x1b')](util[_0x5980c6('0x13')](_0x2b8ab0,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x540685('0x1c')]=function(_0x46097b){const _0x578aa7=_0x540685;this['sequence'][_0x578aa7('0x20')](function(){return _0x46097b();});},module[_0x540685('0x7')]={'up':function(_0x23e737){return new Promise(function(_0x28f0ad){const _0x1a6bab=a1008_0x4510,_0x393cd1=new Migration(_0x23e737);_0x393cd1[_0x1a6bab('0x1c')](_0x28f0ad);});},'down':function(){}}; \ No newline at end of file +const a1008_0x1b19=['exports','indicesType','removeIndex','migration','join','enqueue','queryInterface','removeColumn','inspect','then','tail','prototype','stringify','util','Added\x20column\x20%s\x20to\x20%s','sequence','finally','../config/logger','query\x20%s','final','removeIndex\x20%s\x20%s','query','catch','indexName','changeColumn','sequelize','Removed\x20column\x20%s\x20from\x20%s','info','table\x20dropped\x20%s','dropTable','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]'];(function(_0x84c3a4,_0x1b19b3){const _0x48f035=function(_0x1dae30){while(--_0x1dae30){_0x84c3a4['push'](_0x84c3a4['shift']());}};_0x48f035(++_0x1b19b3);}(a1008_0x1b19,0xad));const a1008_0x48f0=function(_0x84c3a4,_0x1b19b3){_0x84c3a4=_0x84c3a4-0x0;let _0x48f035=a1008_0x1b19[_0x84c3a4];return _0x48f035;};const _0x1cfc36=a1008_0x48f0;'use strict';const util=require(_0x1cfc36('0x0')),logger=require(_0x1cfc36('0x4'))(_0x1cfc36('0x16')),Sequence=function(){};Sequence[_0x1cfc36('0x1e')][_0x1cfc36('0x18')]=function(_0x1dae30){const _0x280db7=_0x1cfc36;this[_0x280db7('0x1d')]=this[_0x280db7('0x1d')]?this[_0x280db7('0x1d')][_0x280db7('0x3')](_0x1dae30):_0x1dae30();};const Migration=function(_0x14353f){const _0x53512e=_0x1cfc36;this[_0x53512e('0x19')]=_0x14353f,this[_0x53512e('0x2')]=new Sequence();};Migration[_0x1cfc36('0x1e')][_0x1cfc36('0xb')]=function(_0x502ab2,_0x22c6d8,_0x89b197){const _0x3b8bf3=_0x1cfc36,_0x27d6d4=this;this[_0x3b8bf3('0x2')][_0x3b8bf3('0x18')](function(){const _0x56423b=_0x3b8bf3;return _0x27d6d4[_0x56423b('0x19')][_0x56423b('0xb')](_0x502ab2,_0x22c6d8,_0x89b197)['then'](function(){const _0x5b16a5=_0x56423b;logger[_0x5b16a5('0xe')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x22c6d8,_0x502ab2);})[_0x56423b('0x9')](function(_0x3ca903){logger['info'](JSON['stringify'](_0x3ca903));});});},Migration[_0x1cfc36('0x1e')]['addColumn']=function(_0x3887a5,_0x3963e1,_0x2e7dcd){const _0x167c14=_0x1cfc36,_0x3f3da1=this;this[_0x167c14('0x2')]['enqueue'](function(){const _0x34ab22=_0x167c14;return _0x3f3da1[_0x34ab22('0x19')]['addColumn'](_0x3887a5,_0x3963e1,_0x2e7dcd)[_0x34ab22('0x1c')](function(){const _0x4c2c03=_0x34ab22;logger[_0x4c2c03('0xe')](_0x4c2c03('0x1'),_0x3963e1,_0x3887a5);})[_0x34ab22('0x9')](function(_0x2e1f73){const _0x54b175=_0x34ab22;logger[_0x54b175('0xe')](JSON[_0x54b175('0x1f')](_0x2e1f73));});});},Migration[_0x1cfc36('0x1e')][_0x1cfc36('0x10')]=function(_0x43cf7f){const _0x2349f3=_0x1cfc36,_0x831108=this;this['sequence'][_0x2349f3('0x18')](function(){const _0x10c1d7=_0x2349f3;return _0x831108[_0x10c1d7('0x19')]['dropTable'](_0x43cf7f,{'force':!![]})[_0x10c1d7('0x1c')](function(){const _0x1ded44=_0x10c1d7;logger['info'](_0x1ded44('0xf'),_0x43cf7f);})[_0x10c1d7('0x9')](function(_0x75eb4f){const _0x6e8124=_0x10c1d7;logger[_0x6e8124('0xe')](JSON[_0x6e8124('0x1f')](_0x75eb4f));});});},Migration[_0x1cfc36('0x1e')]['addIndex']=function(_0x15bf71,_0x490732,_0x2aa5d0){const _0x3fe06d=_0x1cfc36,_0x57bddf=this;this['sequence'][_0x3fe06d('0x18')](function(){const _0x45257e=_0x3fe06d;return _0x57bddf[_0x45257e('0x19')]['addIndex'](_0x15bf71,_0x490732,{'indexName':_0x2aa5d0['indexName'],'indicesType':_0x2aa5d0[_0x45257e('0x14')]})['then'](function(){const _0x41916a=_0x45257e;logger['info'](_0x41916a('0x12'),_0x15bf71,_0x490732[_0x41916a('0x17')](','),_0x2aa5d0[_0x41916a('0xa')],_0x2aa5d0[_0x41916a('0x14')]);})[_0x45257e('0x9')](function(_0x5d438a){const _0x9e0529=_0x45257e;logger[_0x9e0529('0xe')](JSON[_0x9e0529('0x1f')](_0x5d438a));});});},Migration[_0x1cfc36('0x1e')]['removeIndex']=function(_0xc76897,_0x14d779){const _0x5d1eb1=_0x1cfc36,_0x20908e=this;this[_0x5d1eb1('0x2')][_0x5d1eb1('0x18')](function(){const _0x4293fd=_0x5d1eb1;return _0x20908e[_0x4293fd('0x19')][_0x4293fd('0x15')](_0xc76897,_0x14d779)['then'](function(){const _0x1e8b39=_0x4293fd;logger[_0x1e8b39('0xe')](_0x1e8b39('0x7'),_0xc76897,_0x14d779);})[_0x4293fd('0x9')](function(_0x5ccf3a){const _0x471a00=_0x4293fd;logger['info'](JSON[_0x471a00('0x1f')](_0x5ccf3a));});});},Migration[_0x1cfc36('0x1e')][_0x1cfc36('0x8')]=function(_0x43d17f){const _0x12ed44=_0x1cfc36,_0x54cc21=this;this[_0x12ed44('0x2')][_0x12ed44('0x18')](function(){const _0x58fd5c=_0x12ed44;return _0x54cc21[_0x58fd5c('0x19')][_0x58fd5c('0xc')][_0x58fd5c('0x8')](_0x43d17f)[_0x58fd5c('0x1c')](function(){const _0x418470=_0x58fd5c;logger['info'](_0x418470('0x5'),_0x43d17f);})[_0x58fd5c('0x9')](function(_0x2b3cb5){const _0xcc6b9c=_0x58fd5c;logger[_0xcc6b9c('0xe')](JSON[_0xcc6b9c('0x1f')](_0x2b3cb5));});});},Migration['prototype'][_0x1cfc36('0x1a')]=function(_0x3fafae,_0x514248){const _0x23baf9=_0x1cfc36,_0x36a528=this;this[_0x23baf9('0x2')]['enqueue'](function(){const _0x254e4d=_0x23baf9;return _0x36a528['queryInterface'][_0x254e4d('0x1a')](_0x3fafae,_0x514248)[_0x254e4d('0x1c')](function(){const _0x436481=_0x254e4d;logger[_0x436481('0xe')](_0x436481('0xd'),_0x514248,_0x3fafae);})[_0x254e4d('0x9')](function(_0x4d3f45){const _0x4c9ef9=_0x254e4d;logger['info'](util[_0x4c9ef9('0x1b')](_0x4d3f45,{'showHidden':![],'depth':null}));});});},Migration[_0x1cfc36('0x1e')][_0x1cfc36('0x11')]=function(_0x4fa432,_0x4d54fa,_0x50b2b4){const _0x7c22d0=_0x1cfc36,_0xa37a6f=this;this[_0x7c22d0('0x2')][_0x7c22d0('0x18')](function(){const _0x80d41d=_0x7c22d0;return _0xa37a6f[_0x80d41d('0x19')][_0x80d41d('0x11')](_0x4fa432,_0x4d54fa,_0x50b2b4)[_0x80d41d('0x1c')](function(){const _0x569017=_0x80d41d;logger[_0x569017('0xe')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x4d54fa,_0x50b2b4,_0x4fa432);})['catch'](function(_0x41df0a){const _0x2595b8=_0x80d41d;logger['info'](util[_0x2595b8('0x1b')](_0x41df0a,{'showHidden':![],'depth':null}));});});},Migration[_0x1cfc36('0x1e')][_0x1cfc36('0x6')]=function(_0x336794){const _0x14c058=_0x1cfc36;this[_0x14c058('0x2')][_0x14c058('0x18')](function(){return _0x336794();});},module[_0x1cfc36('0x13')]={'up':function(_0x483d1b){return new Promise(function(_0x169a47){const _0x4322c9=a1008_0x48f0,_0x1dc60b=new Migration(_0x483d1b);_0x1dc60b[_0x4322c9('0x6')](_0x169a47);});},'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 f79af87..7bc23e0 100644 --- a/server/migrations/2.4.6.js +++ b/server/migrations/2.4.6.js @@ -1 +1 @@ -const a1009_0x1adc=['sequence','removeColumn','catch','../config/logger','addIndex','Changed\x20column\x20%s\x20in\x20table\x20%s','removeIndex\x20%s\x20%s','Added\x20column\x20%s\x20to\x20%s','stringify','then','table\x20dropped\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','info','enqueue','prototype','sequelize','dropTable','inspect','tail','exports','renameColumn','indexName','indicesType','addColumn','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','final','migration','removeIndex','query\x20%s','query','changeColumn','join'];(function(_0x4082c8,_0x1adc1c){const _0x21858e=function(_0x437276){while(--_0x437276){_0x4082c8['push'](_0x4082c8['shift']());}};_0x21858e(++_0x1adc1c);}(a1009_0x1adc,0x1e8));const a1009_0x2185=function(_0x4082c8,_0x1adc1c){_0x4082c8=_0x4082c8-0x0;let _0x21858e=a1009_0x1adc[_0x4082c8];return _0x21858e;};const _0x527651=a1009_0x2185;'use strict';const util=require('util'),logger=require(_0x527651('0x19'))(_0x527651('0x10')),Sequence=function(){};Sequence[_0x527651('0x2')][_0x527651('0x1')]=function(_0x437276){const _0x3cf468=_0x527651;this['tail']=this[_0x3cf468('0x6')]?this[_0x3cf468('0x6')]['finally'](_0x437276):_0x437276();};const Migration=function(_0x34bf4d){const _0x1ffc74=_0x527651;this[_0x1ffc74('0xc')]=_0x34bf4d,this[_0x1ffc74('0x16')]=new Sequence();};Migration[_0x527651('0x2')][_0x527651('0x14')]=function(_0x1c3f22,_0x50e34f,_0x3be1ee){const _0x3bac8b=_0x527651,_0x2e605d=this;this[_0x3bac8b('0x16')]['enqueue'](function(){const _0x1ff4d2=_0x3bac8b;return _0x2e605d[_0x1ff4d2('0xc')][_0x1ff4d2('0x14')](_0x1c3f22,_0x50e34f,_0x3be1ee)[_0x1ff4d2('0x1f')](function(){const _0xb1dc79=_0x1ff4d2;logger[_0xb1dc79('0x0')](_0xb1dc79('0x1b'),_0x50e34f,_0x1c3f22);})['catch'](function(_0x209f92){const _0x1443fe=_0x1ff4d2;logger['info'](JSON[_0x1443fe('0x1e')](_0x209f92));});});},Migration[_0x527651('0x2')]['addColumn']=function(_0x4d49ba,_0x52175f,_0x58913f){const _0x1d27a1=_0x527651,_0x405e08=this;this[_0x1d27a1('0x16')]['enqueue'](function(){const _0x1bcb65=_0x1d27a1;return _0x405e08['queryInterface'][_0x1bcb65('0xb')](_0x4d49ba,_0x52175f,_0x58913f)[_0x1bcb65('0x1f')](function(){const _0x245640=_0x1bcb65;logger[_0x245640('0x0')](_0x245640('0x1d'),_0x52175f,_0x4d49ba);})[_0x1bcb65('0x18')](function(_0x5ba926){const _0x3a2cf8=_0x1bcb65;logger[_0x3a2cf8('0x0')](JSON[_0x3a2cf8('0x1e')](_0x5ba926));});});},Migration[_0x527651('0x2')][_0x527651('0x4')]=function(_0x585658){const _0x44f7f7=_0x527651,_0x7e0fc2=this;this[_0x44f7f7('0x16')]['enqueue'](function(){const _0x19fa89=_0x44f7f7;return _0x7e0fc2['queryInterface'][_0x19fa89('0x4')](_0x585658,{'force':!![]})[_0x19fa89('0x1f')](function(){const _0xbd54e3=_0x19fa89;logger[_0xbd54e3('0x0')](_0xbd54e3('0x20'),_0x585658);})[_0x19fa89('0x18')](function(_0x5449ce){const _0x5a3067=_0x19fa89;logger[_0x5a3067('0x0')](JSON['stringify'](_0x5449ce));});});},Migration[_0x527651('0x2')]['addIndex']=function(_0x317bc2,_0x3f4c76,_0xb49bc0){const _0x2b8cd8=_0x527651,_0x2cca74=this;this[_0x2b8cd8('0x16')][_0x2b8cd8('0x1')](function(){const _0x18d6a5=_0x2b8cd8;return _0x2cca74['queryInterface'][_0x18d6a5('0x1a')](_0x317bc2,_0x3f4c76,{'indexName':_0xb49bc0['indexName'],'indicesType':_0xb49bc0[_0x18d6a5('0xa')]})[_0x18d6a5('0x1f')](function(){const _0x3203b8=_0x18d6a5;logger[_0x3203b8('0x0')](_0x3203b8('0xd'),_0x317bc2,_0x3f4c76[_0x3203b8('0x15')](','),_0xb49bc0[_0x3203b8('0x9')],_0xb49bc0[_0x3203b8('0xa')]);})[_0x18d6a5('0x18')](function(_0x2611c8){const _0x54217e=_0x18d6a5;logger[_0x54217e('0x0')](JSON['stringify'](_0x2611c8));});});},Migration[_0x527651('0x2')]['removeIndex']=function(_0xa3d6a0,_0x47010c){const _0x2446c8=_0x527651,_0x2f63e0=this;this[_0x2446c8('0x16')][_0x2446c8('0x1')](function(){const _0x5069ad=_0x2446c8;return _0x2f63e0[_0x5069ad('0xc')][_0x5069ad('0x11')](_0xa3d6a0,_0x47010c)[_0x5069ad('0x1f')](function(){const _0x3b02ac=_0x5069ad;logger[_0x3b02ac('0x0')](_0x3b02ac('0x1c'),_0xa3d6a0,_0x47010c);})[_0x5069ad('0x18')](function(_0x1382d4){const _0x1acd0e=_0x5069ad;logger[_0x1acd0e('0x0')](JSON[_0x1acd0e('0x1e')](_0x1382d4));});});},Migration[_0x527651('0x2')][_0x527651('0x13')]=function(_0x1e42d9){const _0x17f763=_0x527651,_0x6deaa3=this;this['sequence'][_0x17f763('0x1')](function(){const _0x48adb0=_0x17f763;return _0x6deaa3['queryInterface'][_0x48adb0('0x3')]['query'](_0x1e42d9)[_0x48adb0('0x1f')](function(){const _0x3a6a4f=_0x48adb0;logger[_0x3a6a4f('0x0')](_0x3a6a4f('0x12'),_0x1e42d9);})[_0x48adb0('0x18')](function(_0x53e7da){const _0x49c54f=_0x48adb0;logger[_0x49c54f('0x0')](JSON['stringify'](_0x53e7da));});});},Migration[_0x527651('0x2')][_0x527651('0x17')]=function(_0x510ec1,_0x5ace2b){const _0x51dc76=_0x527651,_0x2c1430=this;this[_0x51dc76('0x16')][_0x51dc76('0x1')](function(){const _0x186faf=_0x51dc76;return _0x2c1430[_0x186faf('0xc')][_0x186faf('0x17')](_0x510ec1,_0x5ace2b)[_0x186faf('0x1f')](function(){const _0x23aac4=_0x186faf;logger[_0x23aac4('0x0')](_0x23aac4('0xe'),_0x5ace2b,_0x510ec1);})['catch'](function(_0x2e8177){const _0x38e57f=_0x186faf;logger[_0x38e57f('0x0')](util[_0x38e57f('0x5')](_0x2e8177,{'showHidden':![],'depth':null}));});});},Migration[_0x527651('0x2')][_0x527651('0x8')]=function(_0x104bce,_0x1f10b4,_0x5465ea){const _0x29b008=_0x527651,_0x20dc45=this;this[_0x29b008('0x16')][_0x29b008('0x1')](function(){const _0x344d7c=_0x29b008;return _0x20dc45[_0x344d7c('0xc')][_0x344d7c('0x8')](_0x104bce,_0x1f10b4,_0x5465ea)[_0x344d7c('0x1f')](function(){const _0x337685=_0x344d7c;logger[_0x337685('0x0')](_0x337685('0x21'),_0x1f10b4,_0x5465ea,_0x104bce);})['catch'](function(_0x44dc77){const _0x23da74=_0x344d7c;logger[_0x23da74('0x0')](util[_0x23da74('0x5')](_0x44dc77,{'showHidden':![],'depth':null}));});});},Migration[_0x527651('0x2')][_0x527651('0xf')]=function(_0x407f30){const _0x4f7c02=_0x527651;this[_0x4f7c02('0x16')][_0x4f7c02('0x1')](function(){return _0x407f30();});},module[_0x527651('0x7')]={'up':function(_0x5dd99){return new Promise(function(_0x570934){const _0x1e6fe5=a1009_0x2185,_0x3493ed=new Migration(_0x5dd99);_0x3493ed[_0x1e6fe5('0xf')](_0x570934);});},'down':function(){}}; \ No newline at end of file +const a1009_0x51aa=['join','final','enqueue','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','table\x20dropped\x20%s','info','prototype','stringify','inspect','catch','dropTable','finally','queryInterface','tail','exports','addColumn','then','removeColumn','sequence','indicesType','renameColumn','changeColumn','Added\x20column\x20%s\x20to\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','addIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeIndex\x20%s\x20%s','removeIndex','util'];(function(_0x205918,_0x51aa61){const _0xa66f65=function(_0x22f5c5){while(--_0x22f5c5){_0x205918['push'](_0x205918['shift']());}};_0xa66f65(++_0x51aa61);}(a1009_0x51aa,0xbf));const a1009_0xa66f=function(_0x205918,_0x51aa61){_0x205918=_0x205918-0x0;let _0xa66f65=a1009_0x51aa[_0x205918];return _0xa66f65;};const _0x78e3c4=a1009_0xa66f;'use strict';const util=require(_0x78e3c4('0x19')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x78e3c4('0x1c')]=function(_0x22f5c5){const _0x1135ed=_0x78e3c4;this['tail']=this[_0x1135ed('0x9')]?this['tail'][_0x1135ed('0x7')](_0x22f5c5):_0x22f5c5();};const Migration=function(_0x2f4c3f){const _0x59b293=_0x78e3c4;this[_0x59b293('0x8')]=_0x2f4c3f,this[_0x59b293('0xe')]=new Sequence();};Migration[_0x78e3c4('0x2')][_0x78e3c4('0x11')]=function(_0x37cc21,_0x5f47c7,_0x5cf972){const _0x18a37f=_0x78e3c4,_0x51b32e=this;this[_0x18a37f('0xe')][_0x18a37f('0x1c')](function(){const _0x167b94=_0x18a37f;return _0x51b32e[_0x167b94('0x8')][_0x167b94('0x11')](_0x37cc21,_0x5f47c7,_0x5cf972)[_0x167b94('0xc')](function(){const _0x2c7a87=_0x167b94;logger[_0x2c7a87('0x1')](_0x2c7a87('0x1e'),_0x5f47c7,_0x37cc21);})[_0x167b94('0x5')](function(_0x1d63ae){const _0x488427=_0x167b94;logger[_0x488427('0x1')](JSON[_0x488427('0x3')](_0x1d63ae));});});},Migration['prototype'][_0x78e3c4('0xb')]=function(_0x449320,_0x4e553f,_0x4216b5){const _0xb9293f=_0x78e3c4,_0x662db8=this;this['sequence'][_0xb9293f('0x1c')](function(){const _0x308117=_0xb9293f;return _0x662db8[_0x308117('0x8')][_0x308117('0xb')](_0x449320,_0x4e553f,_0x4216b5)[_0x308117('0xc')](function(){const _0x3d4646=_0x308117;logger[_0x3d4646('0x1')](_0x3d4646('0x12'),_0x4e553f,_0x449320);})['catch'](function(_0x27be7c){const _0x397a54=_0x308117;logger['info'](JSON[_0x397a54('0x3')](_0x27be7c));});});},Migration[_0x78e3c4('0x2')][_0x78e3c4('0x6')]=function(_0x4d97fe){const _0x3aea51=_0x78e3c4,_0x3148e8=this;this[_0x3aea51('0xe')]['enqueue'](function(){const _0x265732=_0x3aea51;return _0x3148e8[_0x265732('0x8')][_0x265732('0x6')](_0x4d97fe,{'force':!![]})[_0x265732('0xc')](function(){const _0x44a08c=_0x265732;logger[_0x44a08c('0x1')](_0x44a08c('0x0'),_0x4d97fe);})[_0x265732('0x5')](function(_0x355481){const _0x2c49aa=_0x265732;logger[_0x2c49aa('0x1')](JSON['stringify'](_0x355481));});});},Migration[_0x78e3c4('0x2')][_0x78e3c4('0x15')]=function(_0x42e4f0,_0x3cfed5,_0x2d31a7){const _0x4e0cd5=_0x78e3c4,_0x275953=this;this[_0x4e0cd5('0xe')][_0x4e0cd5('0x1c')](function(){const _0x41b46a=_0x4e0cd5;return _0x275953[_0x41b46a('0x8')][_0x41b46a('0x15')](_0x42e4f0,_0x3cfed5,{'indexName':_0x2d31a7[_0x41b46a('0x14')],'indicesType':_0x2d31a7[_0x41b46a('0xf')]})[_0x41b46a('0xc')](function(){const _0x58f5a7=_0x41b46a;logger[_0x58f5a7('0x1')](_0x58f5a7('0x16'),_0x42e4f0,_0x3cfed5[_0x58f5a7('0x1a')](','),_0x2d31a7['indexName'],_0x2d31a7[_0x58f5a7('0xf')]);})[_0x41b46a('0x5')](function(_0x3463d3){const _0x480ae6=_0x41b46a;logger['info'](JSON[_0x480ae6('0x3')](_0x3463d3));});});},Migration['prototype'][_0x78e3c4('0x18')]=function(_0x4622fc,_0x1ee231){const _0x3f854a=_0x78e3c4,_0x5518aa=this;this['sequence'][_0x3f854a('0x1c')](function(){const _0x4fb6ae=_0x3f854a;return _0x5518aa['queryInterface']['removeIndex'](_0x4622fc,_0x1ee231)['then'](function(){const _0x24b83d=a1009_0xa66f;logger['info'](_0x24b83d('0x17'),_0x4622fc,_0x1ee231);})[_0x4fb6ae('0x5')](function(_0xbad781){const _0x51181d=_0x4fb6ae;logger[_0x51181d('0x1')](JSON[_0x51181d('0x3')](_0xbad781));});});},Migration[_0x78e3c4('0x2')]['query']=function(_0x548ff0){const _0x5780e8=_0x78e3c4,_0x1699b9=this;this[_0x5780e8('0xe')][_0x5780e8('0x1c')](function(){const _0x3777f3=_0x5780e8;return _0x1699b9[_0x3777f3('0x8')][_0x3777f3('0x1d')]['query'](_0x548ff0)[_0x3777f3('0xc')](function(){logger['info']('query\x20%s',_0x548ff0);})[_0x3777f3('0x5')](function(_0x34ad7e){const _0x3ee099=_0x3777f3;logger[_0x3ee099('0x1')](JSON[_0x3ee099('0x3')](_0x34ad7e));});});},Migration[_0x78e3c4('0x2')][_0x78e3c4('0xd')]=function(_0x563a13,_0x3dc315){const _0x12619d=_0x78e3c4,_0x2ad99a=this;this[_0x12619d('0xe')][_0x12619d('0x1c')](function(){const _0x59540d=_0x12619d;return _0x2ad99a[_0x59540d('0x8')][_0x59540d('0xd')](_0x563a13,_0x3dc315)['then'](function(){logger['info']('Removed\x20column\x20%s\x20from\x20%s',_0x3dc315,_0x563a13);})[_0x59540d('0x5')](function(_0x498bde){const _0x1beb25=_0x59540d;logger[_0x1beb25('0x1')](util[_0x1beb25('0x4')](_0x498bde,{'showHidden':![],'depth':null}));});});},Migration[_0x78e3c4('0x2')][_0x78e3c4('0x10')]=function(_0x408d10,_0x4a0754,_0x320861){const _0xd0c0a9=_0x78e3c4,_0x3a6507=this;this[_0xd0c0a9('0xe')][_0xd0c0a9('0x1c')](function(){const _0x5a970d=_0xd0c0a9;return _0x3a6507[_0x5a970d('0x8')][_0x5a970d('0x10')](_0x408d10,_0x4a0754,_0x320861)[_0x5a970d('0xc')](function(){const _0x36ef88=_0x5a970d;logger[_0x36ef88('0x1')](_0x36ef88('0x13'),_0x4a0754,_0x320861,_0x408d10);})[_0x5a970d('0x5')](function(_0x52ffdd){const _0x139872=_0x5a970d;logger[_0x139872('0x1')](util[_0x139872('0x4')](_0x52ffdd,{'showHidden':![],'depth':null}));});});},Migration[_0x78e3c4('0x2')]['final']=function(_0x324f56){const _0x173caf=_0x78e3c4;this[_0x173caf('0xe')][_0x173caf('0x1c')](function(){return _0x324f56();});},module[_0x78e3c4('0xa')]={'up':function(_0x5d06f2){return new Promise(function(_0x316301){const _0x2a31d3=a1009_0xa66f,_0x3d73ac=new Migration(_0x5d06f2);_0x3d73ac[_0x2a31d3('0x1b')](_0x316301);});},'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 68c3f59..dbc01b4 100644 --- a/server/migrations/2.4.7.js +++ b/server/migrations/2.4.7.js @@ -1 +1 @@ -const a1010_0x2635=['inspect','renameColumn','removeIndex\x20%s\x20%s','changeColumn','then','Removed\x20column\x20%s\x20from\x20%s','queryInterface','addIndex\x20%s\x20%s\x20%s\x20[%s]','enableSendButton','indexName','Added\x20column\x20%s\x20to\x20%s','BOOLEAN','Contacts','tail','Changed\x20column\x20%s\x20in\x20table\x20%s','indicesType','Leads','customerPort','exports','migration','query','dropTable','catch','addIndex','stringify','prototype','moduleCreate','removeIndex','info','finally','query\x20%s','enqueue','table\x20dropped\x20%s','sequence','../config/logger','chat_websites','addColumn','removeColumn','STRING','join'];(function(_0x6fef8c,_0x263589){const _0x4f48a1=function(_0x2460b8){while(--_0x2460b8){_0x6fef8c['push'](_0x6fef8c['shift']());}};_0x4f48a1(++_0x263589);}(a1010_0x2635,0x67));const a1010_0x4f48=function(_0x6fef8c,_0x263589){_0x6fef8c=_0x6fef8c-0x0;let _0x4f48a1=a1010_0x2635[_0x6fef8c];return _0x4f48a1;};const _0x3eb67f=a1010_0x4f48;'use strict';const util=require('util'),logger=require(_0x3eb67f('0xb'))(_0x3eb67f('0x24')),Sequence=function(){};Sequence[_0x3eb67f('0x2')][_0x3eb67f('0x8')]=function(_0x2460b8){const _0x36186c=_0x3eb67f;this[_0x36186c('0x1e')]=this[_0x36186c('0x1e')]?this[_0x36186c('0x1e')][_0x36186c('0x6')](_0x2460b8):_0x2460b8();};const Migration=function(_0x29c5d1){const _0x562cd3=_0x3eb67f;this[_0x562cd3('0x17')]=_0x29c5d1,this[_0x562cd3('0xa')]=new Sequence();};Migration[_0x3eb67f('0x2')][_0x3eb67f('0x14')]=function(_0xb3cfd2,_0x33d250,_0x1f7931){const _0x5b62cc=_0x3eb67f,_0x55b64e=this;this[_0x5b62cc('0xa')][_0x5b62cc('0x8')](function(){const _0x3e350c=_0x5b62cc;return _0x55b64e[_0x3e350c('0x17')]['changeColumn'](_0xb3cfd2,_0x33d250,_0x1f7931)['then'](function(){const _0x2da8d8=_0x3e350c;logger['info'](_0x2da8d8('0x1f'),_0x33d250,_0xb3cfd2);})[_0x3e350c('0x27')](function(_0x57a1cb){const _0x5ae566=_0x3e350c;logger[_0x5ae566('0x5')](JSON[_0x5ae566('0x1')](_0x57a1cb));});});},Migration[_0x3eb67f('0x2')][_0x3eb67f('0xd')]=function(_0x14b1eb,_0x2370e0,_0x5cfa92){const _0x1c2f16=_0x3eb67f,_0xd3e172=this;this['sequence'][_0x1c2f16('0x8')](function(){const _0x23d67c=_0x1c2f16;return _0xd3e172[_0x23d67c('0x17')][_0x23d67c('0xd')](_0x14b1eb,_0x2370e0,_0x5cfa92)[_0x23d67c('0x15')](function(){const _0x4d69e8=_0x23d67c;logger['info'](_0x4d69e8('0x1b'),_0x2370e0,_0x14b1eb);})[_0x23d67c('0x27')](function(_0x42908f){const _0x4ad779=_0x23d67c;logger[_0x4ad779('0x5')](JSON[_0x4ad779('0x1')](_0x42908f));});});},Migration['prototype'][_0x3eb67f('0x26')]=function(_0xadd9be){const _0x4e92a2=_0x3eb67f,_0x25529a=this;this['sequence'][_0x4e92a2('0x8')](function(){const _0x142abb=_0x4e92a2;return _0x25529a[_0x142abb('0x17')][_0x142abb('0x26')](_0xadd9be,{'force':!![]})[_0x142abb('0x15')](function(){const _0x1bbee0=_0x142abb;logger[_0x1bbee0('0x5')](_0x1bbee0('0x9'),_0xadd9be);})[_0x142abb('0x27')](function(_0x440fbf){const _0x2fd0d3=_0x142abb;logger[_0x2fd0d3('0x5')](JSON[_0x2fd0d3('0x1')](_0x440fbf));});});},Migration[_0x3eb67f('0x2')][_0x3eb67f('0x0')]=function(_0x5e4893,_0x421842,_0x2aad46){const _0x19fcf2=_0x3eb67f,_0x53ca90=this;this[_0x19fcf2('0xa')][_0x19fcf2('0x8')](function(){const _0x192460=_0x19fcf2;return _0x53ca90[_0x192460('0x17')][_0x192460('0x0')](_0x5e4893,_0x421842,{'indexName':_0x2aad46[_0x192460('0x1a')],'indicesType':_0x2aad46[_0x192460('0x20')]})[_0x192460('0x15')](function(){const _0x116409=_0x192460;logger['info'](_0x116409('0x18'),_0x5e4893,_0x421842[_0x116409('0x10')](','),_0x2aad46['indexName'],_0x2aad46[_0x116409('0x20')]);})[_0x192460('0x27')](function(_0x491646){const _0x2e240f=_0x192460;logger[_0x2e240f('0x5')](JSON[_0x2e240f('0x1')](_0x491646));});});},Migration['prototype'][_0x3eb67f('0x4')]=function(_0x214456,_0x2afe18){const _0xc28961=_0x3eb67f,_0x3860f5=this;this[_0xc28961('0xa')]['enqueue'](function(){const _0x45ed80=_0xc28961;return _0x3860f5['queryInterface'][_0x45ed80('0x4')](_0x214456,_0x2afe18)[_0x45ed80('0x15')](function(){const _0x20c0c0=_0x45ed80;logger[_0x20c0c0('0x5')](_0x20c0c0('0x13'),_0x214456,_0x2afe18);})['catch'](function(_0x3d51be){const _0x533d65=_0x45ed80;logger['info'](JSON[_0x533d65('0x1')](_0x3d51be));});});},Migration[_0x3eb67f('0x2')][_0x3eb67f('0x25')]=function(_0x295095){const _0x8fc12c=_0x3eb67f,_0x1dcb98=this;this[_0x8fc12c('0xa')][_0x8fc12c('0x8')](function(){const _0x41c992=_0x8fc12c;return _0x1dcb98['queryInterface']['sequelize'][_0x41c992('0x25')](_0x295095)[_0x41c992('0x15')](function(){const _0x44557f=_0x41c992;logger['info'](_0x44557f('0x7'),_0x295095);})[_0x41c992('0x27')](function(_0x5d7614){const _0x44254b=_0x41c992;logger[_0x44254b('0x5')](JSON[_0x44254b('0x1')](_0x5d7614));});});},Migration['prototype'][_0x3eb67f('0xe')]=function(_0x1cbec4,_0x35e2b0){const _0x5f54ea=_0x3eb67f,_0x3d3a46=this;this[_0x5f54ea('0xa')][_0x5f54ea('0x8')](function(){const _0x22b560=_0x5f54ea;return _0x3d3a46['queryInterface'][_0x22b560('0xe')](_0x1cbec4,_0x35e2b0)['then'](function(){const _0x15337d=_0x22b560;logger['info'](_0x15337d('0x16'),_0x35e2b0,_0x1cbec4);})[_0x22b560('0x27')](function(_0x1fccd6){const _0x18c01a=_0x22b560;logger[_0x18c01a('0x5')](util['inspect'](_0x1fccd6,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3eb67f('0x12')]=function(_0x1ae6ab,_0x278115,_0x3fcfd9){const _0x5d4119=_0x3eb67f,_0x5b63bc=this;this[_0x5d4119('0xa')][_0x5d4119('0x8')](function(){const _0x485c6a=_0x5d4119;return _0x5b63bc[_0x485c6a('0x17')][_0x485c6a('0x12')](_0x1ae6ab,_0x278115,_0x3fcfd9)[_0x485c6a('0x15')](function(){const _0x5150af=_0x485c6a;logger[_0x5150af('0x5')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x278115,_0x3fcfd9,_0x1ae6ab);})['catch'](function(_0x10a8ca){const _0x23dff7=_0x485c6a;logger[_0x23dff7('0x5')](util[_0x23dff7('0x11')](_0x10a8ca,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x4e74ba){const _0x4f7494=_0x3eb67f;this[_0x4f7494('0xa')][_0x4f7494('0x8')](function(){return _0x4e74ba();});},module[_0x3eb67f('0x23')]={'up':function(_0x2e759d,_0x39773a){return new Promise(function(_0x53a81f){const _0x1c8385=a1010_0x4f48,_0x4fb947=new Migration(_0x2e759d);_0x4fb947[_0x1c8385('0xd')]('int_zoho_configurations',_0x1c8385('0x3'),{'type':_0x39773a['ENUM'](_0x1c8385('0x21'),_0x1c8385('0x1d')),'defaultValue':_0x1c8385('0x21')}),_0x4fb947['addColumn']('chat_interactions',_0x1c8385('0x22'),{'type':_0x39773a[_0x1c8385('0xf')]}),_0x4fb947[_0x1c8385('0xd')](_0x1c8385('0xc'),_0x1c8385('0x19'),{'type':_0x39773a[_0x1c8385('0x1c')],'defaultValue':![]}),_0x4fb947[_0x1c8385('0xd')](_0x1c8385('0xc'),'feedbackTitle',{'type':_0x39773a[_0x1c8385('0xf')],'defaultValue':'Feedback'}),_0x4fb947['final'](_0x53a81f);});},'down':function(){}}; \ No newline at end of file +const a1010_0x2e35=['query','int_zoho_configurations','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indicesType','chat_interactions','addIndex','Added\x20column\x20%s\x20to\x20%s','catch','prototype','moduleCreate','query\x20%s','Leads','../config/logger','customerPort','renameColumn','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','chat_websites','migration','enqueue','tail','queryInterface','final','Removed\x20column\x20%s\x20from\x20%s','inspect','BOOLEAN','info','STRING','Changed\x20column\x20%s\x20in\x20table\x20%s','feedbackTitle','removeIndex','stringify','finally','join','Feedback','changeColumn','addColumn','removeColumn','table\x20dropped\x20%s','indexName','Contacts','sequence'];(function(_0x59d07d,_0x2e3500){const _0x48fe20=function(_0x514540){while(--_0x514540){_0x59d07d['push'](_0x59d07d['shift']());}};_0x48fe20(++_0x2e3500);}(a1010_0x2e35,0x1cf));const a1010_0x48fe=function(_0x59d07d,_0x2e3500){_0x59d07d=_0x59d07d-0x0;let _0x48fe20=a1010_0x2e35[_0x59d07d];return _0x48fe20;};const _0x5cd5d8=a1010_0x48fe;'use strict';const util=require('util'),logger=require(_0x5cd5d8('0xb'))(_0x5cd5d8('0x11')),Sequence=function(){};Sequence['prototype'][_0x5cd5d8('0x12')]=function(_0x514540){const _0x1e36dc=_0x5cd5d8;this[_0x1e36dc('0x13')]=this[_0x1e36dc('0x13')]?this[_0x1e36dc('0x13')][_0x1e36dc('0x1f')](_0x514540):_0x514540();};const Migration=function(_0x2f2b45){const _0x5b6827=_0x5cd5d8;this[_0x5b6827('0x14')]=_0x2f2b45,this[_0x5b6827('0x28')]=new Sequence();};Migration[_0x5cd5d8('0x7')]['changeColumn']=function(_0x1978de,_0x51168d,_0x316ce1){const _0x3570b8=_0x5cd5d8,_0x56bb94=this;this[_0x3570b8('0x28')][_0x3570b8('0x12')](function(){const _0x493126=_0x3570b8;return _0x56bb94[_0x493126('0x14')][_0x493126('0x22')](_0x1978de,_0x51168d,_0x316ce1)['then'](function(){const _0x64d66d=_0x493126;logger['info'](_0x64d66d('0x1b'),_0x51168d,_0x1978de);})['catch'](function(_0x1a9091){const _0x604bd8=_0x493126;logger[_0x604bd8('0x19')](JSON[_0x604bd8('0x1e')](_0x1a9091));});});},Migration[_0x5cd5d8('0x7')][_0x5cd5d8('0x23')]=function(_0x68c51f,_0x1302e6,_0x4b0da9){const _0xe2ff63=_0x5cd5d8,_0x2f2769=this;this[_0xe2ff63('0x28')][_0xe2ff63('0x12')](function(){const _0x5cb881=_0xe2ff63;return _0x2f2769[_0x5cb881('0x14')][_0x5cb881('0x23')](_0x68c51f,_0x1302e6,_0x4b0da9)['then'](function(){const _0x4a7531=_0x5cb881;logger['info'](_0x4a7531('0x5'),_0x1302e6,_0x68c51f);})[_0x5cb881('0x6')](function(_0x165d35){const _0x3c953c=_0x5cb881;logger[_0x3c953c('0x19')](JSON[_0x3c953c('0x1e')](_0x165d35));});});},Migration[_0x5cd5d8('0x7')]['dropTable']=function(_0x1b3fc4){const _0xcff76=this;this['sequence']['enqueue'](function(){const _0x363dba=a1010_0x48fe;return _0xcff76[_0x363dba('0x14')]['dropTable'](_0x1b3fc4,{'force':!![]})[_0x363dba('0xe')](function(){const _0x20b574=_0x363dba;logger[_0x20b574('0x19')](_0x20b574('0x25'),_0x1b3fc4);})[_0x363dba('0x6')](function(_0x4409fe){const _0x7db03a=_0x363dba;logger[_0x7db03a('0x19')](JSON[_0x7db03a('0x1e')](_0x4409fe));});});},Migration['prototype'][_0x5cd5d8('0x4')]=function(_0x5c6383,_0xfa30f1,_0x32baa1){const _0x1b9aab=_0x5cd5d8,_0x5e6e7e=this;this[_0x1b9aab('0x28')]['enqueue'](function(){const _0x2ba7c4=_0x1b9aab;return _0x5e6e7e[_0x2ba7c4('0x14')][_0x2ba7c4('0x4')](_0x5c6383,_0xfa30f1,{'indexName':_0x32baa1[_0x2ba7c4('0x26')],'indicesType':_0x32baa1[_0x2ba7c4('0x2')]})['then'](function(){const _0x53a6de=_0x2ba7c4;logger[_0x53a6de('0x19')](_0x53a6de('0xf'),_0x5c6383,_0xfa30f1[_0x53a6de('0x20')](','),_0x32baa1[_0x53a6de('0x26')],_0x32baa1[_0x53a6de('0x2')]);})[_0x2ba7c4('0x6')](function(_0xdb5e31){const _0x244203=_0x2ba7c4;logger[_0x244203('0x19')](JSON[_0x244203('0x1e')](_0xdb5e31));});});},Migration[_0x5cd5d8('0x7')][_0x5cd5d8('0x1d')]=function(_0xcad069,_0x59d1db){const _0x212bc2=_0x5cd5d8,_0x525e37=this;this['sequence'][_0x212bc2('0x12')](function(){const _0x57a33f=_0x212bc2;return _0x525e37[_0x57a33f('0x14')][_0x57a33f('0x1d')](_0xcad069,_0x59d1db)[_0x57a33f('0xe')](function(){logger['info']('removeIndex\x20%s\x20%s',_0xcad069,_0x59d1db);})[_0x57a33f('0x6')](function(_0x5923f5){const _0x19f8de=_0x57a33f;logger[_0x19f8de('0x19')](JSON[_0x19f8de('0x1e')](_0x5923f5));});});},Migration[_0x5cd5d8('0x7')]['query']=function(_0x3c6fcc){const _0x2b096e=this;this['sequence']['enqueue'](function(){const _0x1fbed0=a1010_0x48fe;return _0x2b096e[_0x1fbed0('0x14')]['sequelize'][_0x1fbed0('0x29')](_0x3c6fcc)[_0x1fbed0('0xe')](function(){const _0x39d6ea=_0x1fbed0;logger[_0x39d6ea('0x19')](_0x39d6ea('0x9'),_0x3c6fcc);})[_0x1fbed0('0x6')](function(_0x1245fb){const _0x31a236=_0x1fbed0;logger['info'](JSON[_0x31a236('0x1e')](_0x1245fb));});});},Migration['prototype'][_0x5cd5d8('0x24')]=function(_0x4d3939,_0x53b1d9){const _0xdd95b2=_0x5cd5d8,_0x2bd750=this;this[_0xdd95b2('0x28')]['enqueue'](function(){const _0x228df9=_0xdd95b2;return _0x2bd750[_0x228df9('0x14')]['removeColumn'](_0x4d3939,_0x53b1d9)[_0x228df9('0xe')](function(){const _0x41176a=_0x228df9;logger[_0x41176a('0x19')](_0x41176a('0x16'),_0x53b1d9,_0x4d3939);})[_0x228df9('0x6')](function(_0x1fc757){const _0x165c3f=_0x228df9;logger[_0x165c3f('0x19')](util[_0x165c3f('0x17')](_0x1fc757,{'showHidden':![],'depth':null}));});});},Migration[_0x5cd5d8('0x7')][_0x5cd5d8('0xd')]=function(_0x3cbf4e,_0x32f31c,_0xa4100c){const _0x3c1465=_0x5cd5d8,_0x1cb13a=this;this['sequence'][_0x3c1465('0x12')](function(){const _0x1fc0da=_0x3c1465;return _0x1cb13a['queryInterface'][_0x1fc0da('0xd')](_0x3cbf4e,_0x32f31c,_0xa4100c)[_0x1fc0da('0xe')](function(){const _0x3810b0=_0x1fc0da;logger['info'](_0x3810b0('0x1'),_0x32f31c,_0xa4100c,_0x3cbf4e);})[_0x1fc0da('0x6')](function(_0xae275b){const _0x114853=_0x1fc0da;logger[_0x114853('0x19')](util['inspect'](_0xae275b,{'showHidden':![],'depth':null}));});});},Migration[_0x5cd5d8('0x7')]['final']=function(_0x47f8bc){const _0x2975e0=_0x5cd5d8;this[_0x2975e0('0x28')][_0x2975e0('0x12')](function(){return _0x47f8bc();});},module['exports']={'up':function(_0x587474,_0x2de3f6){return new Promise(function(_0x293cdd){const _0x1edc56=a1010_0x48fe,_0x381c6f=new Migration(_0x587474);_0x381c6f[_0x1edc56('0x23')](_0x1edc56('0x0'),_0x1edc56('0x8'),{'type':_0x2de3f6['ENUM'](_0x1edc56('0xa'),_0x1edc56('0x27')),'defaultValue':'Leads'}),_0x381c6f[_0x1edc56('0x23')](_0x1edc56('0x3'),_0x1edc56('0xc'),{'type':_0x2de3f6[_0x1edc56('0x1a')]}),_0x381c6f[_0x1edc56('0x23')](_0x1edc56('0x10'),'enableSendButton',{'type':_0x2de3f6[_0x1edc56('0x18')],'defaultValue':![]}),_0x381c6f[_0x1edc56('0x23')](_0x1edc56('0x10'),_0x1edc56('0x1c'),{'type':_0x2de3f6[_0x1edc56('0x1a')],'defaultValue':_0x1edc56('0x21')}),_0x381c6f[_0x1edc56('0x15')](_0x293cdd);});},'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 6d8e1a4..b5b3cac 100644 --- a/server/migrations/2.4.8.js +++ b/server/migrations/2.4.8.js @@ -1 +1 @@ -const a1011_0x19a5=['info','removeIndex\x20%s\x20%s','changeColumn','addColumn','renameColumn','addIndex','util','prototype','dropTable','then','stringify','catch','join','Added\x20column\x20%s\x20to\x20%s','sequelize','indicesType','query','tail','finally','queryInterface','enqueue','sequence','indexName','removeColumn','removeIndex','inspect','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x4bcfc3,_0x19a581){const _0x215aa2=function(_0x2cc939){while(--_0x2cc939){_0x4bcfc3['push'](_0x4bcfc3['shift']());}};_0x215aa2(++_0x19a581);}(a1011_0x19a5,0xe6));const a1011_0x215a=function(_0x4bcfc3,_0x19a581){_0x4bcfc3=_0x4bcfc3-0x0;let _0x215aa2=a1011_0x19a5[_0x4bcfc3];return _0x215aa2;};const _0x55f6c2=a1011_0x215a;'use strict';const util=require(_0x55f6c2('0x13')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence[_0x55f6c2('0x14')][_0x55f6c2('0x6')]=function(_0x2cc939){const _0x410d43=_0x55f6c2;this[_0x410d43('0x3')]=this[_0x410d43('0x3')]?this[_0x410d43('0x3')][_0x410d43('0x4')](_0x2cc939):_0x2cc939();};const Migration=function(_0x548d4d){const _0x2e0413=_0x55f6c2;this[_0x2e0413('0x5')]=_0x548d4d,this[_0x2e0413('0x7')]=new Sequence();};Migration[_0x55f6c2('0x14')][_0x55f6c2('0xf')]=function(_0xe22683,_0x3750a1,_0x46980e){const _0x575e45=_0x55f6c2,_0x5c97d8=this;this[_0x575e45('0x7')][_0x575e45('0x6')](function(){const _0x717c9b=_0x575e45;return _0x5c97d8['queryInterface'][_0x717c9b('0xf')](_0xe22683,_0x3750a1,_0x46980e)['then'](function(){const _0x51d8d4=_0x717c9b;logger[_0x51d8d4('0xd')](_0x51d8d4('0xc'),_0x3750a1,_0xe22683);})['catch'](function(_0x1e9749){const _0x810a85=_0x717c9b;logger[_0x810a85('0xd')](JSON[_0x810a85('0x17')](_0x1e9749));});});},Migration[_0x55f6c2('0x14')]['addColumn']=function(_0x4aa517,_0x21b12c,_0x4d7a1f){const _0x1fb20e=_0x55f6c2,_0x348cfb=this;this[_0x1fb20e('0x7')][_0x1fb20e('0x6')](function(){const _0x912168=_0x1fb20e;return _0x348cfb[_0x912168('0x5')][_0x912168('0x10')](_0x4aa517,_0x21b12c,_0x4d7a1f)[_0x912168('0x16')](function(){const _0x17bb5b=_0x912168;logger['info'](_0x17bb5b('0x1a'),_0x21b12c,_0x4aa517);})['catch'](function(_0x5c3670){const _0x75815=_0x912168;logger['info'](JSON[_0x75815('0x17')](_0x5c3670));});});},Migration['prototype'][_0x55f6c2('0x15')]=function(_0x19dbaf){const _0x1e5fdd=_0x55f6c2,_0x251a33=this;this[_0x1e5fdd('0x7')]['enqueue'](function(){const _0x50ec1c=_0x1e5fdd;return _0x251a33[_0x50ec1c('0x5')][_0x50ec1c('0x15')](_0x19dbaf,{'force':!![]})[_0x50ec1c('0x16')](function(){const _0x2d7cee=_0x50ec1c;logger[_0x2d7cee('0xd')]('table\x20dropped\x20%s',_0x19dbaf);})[_0x50ec1c('0x18')](function(_0x881a6e){logger['info'](JSON['stringify'](_0x881a6e));});});},Migration[_0x55f6c2('0x14')][_0x55f6c2('0x12')]=function(_0x56b94b,_0x34f288,_0x6bb85a){const _0x3b7af8=_0x55f6c2,_0x3a5837=this;this[_0x3b7af8('0x7')][_0x3b7af8('0x6')](function(){const _0x2d2c39=_0x3b7af8;return _0x3a5837['queryInterface'][_0x2d2c39('0x12')](_0x56b94b,_0x34f288,{'indexName':_0x6bb85a[_0x2d2c39('0x8')],'indicesType':_0x6bb85a[_0x2d2c39('0x1')]})['then'](function(){const _0x2fe3fc=_0x2d2c39;logger[_0x2fe3fc('0xd')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x56b94b,_0x34f288[_0x2fe3fc('0x19')](','),_0x6bb85a['indexName'],_0x6bb85a[_0x2fe3fc('0x1')]);})['catch'](function(_0x9ab801){logger['info'](JSON['stringify'](_0x9ab801));});});},Migration[_0x55f6c2('0x14')][_0x55f6c2('0xa')]=function(_0x15ce00,_0xebc026){const _0x178398=_0x55f6c2,_0x2f7cea=this;this[_0x178398('0x7')][_0x178398('0x6')](function(){const _0x1138d7=_0x178398;return _0x2f7cea[_0x1138d7('0x5')][_0x1138d7('0xa')](_0x15ce00,_0xebc026)[_0x1138d7('0x16')](function(){const _0x3dc144=_0x1138d7;logger['info'](_0x3dc144('0xe'),_0x15ce00,_0xebc026);})['catch'](function(_0x5a692a){const _0x2c4ca7=_0x1138d7;logger[_0x2c4ca7('0xd')](JSON['stringify'](_0x5a692a));});});},Migration[_0x55f6c2('0x14')][_0x55f6c2('0x2')]=function(_0x4db31f){const _0x326edd=_0x55f6c2,_0x1984b0=this;this[_0x326edd('0x7')][_0x326edd('0x6')](function(){const _0x53d124=_0x326edd;return _0x1984b0['queryInterface'][_0x53d124('0x0')][_0x53d124('0x2')](_0x4db31f)['then'](function(){const _0x195458=_0x53d124;logger[_0x195458('0xd')]('query\x20%s',_0x4db31f);})[_0x53d124('0x18')](function(_0x3d4e49){const _0x433dd2=_0x53d124;logger[_0x433dd2('0xd')](JSON['stringify'](_0x3d4e49));});});},Migration[_0x55f6c2('0x14')][_0x55f6c2('0x9')]=function(_0x547bda,_0x7e5da8){const _0x4e497f=_0x55f6c2,_0x4af05c=this;this[_0x4e497f('0x7')]['enqueue'](function(){const _0xfb0936=_0x4e497f;return _0x4af05c[_0xfb0936('0x5')][_0xfb0936('0x9')](_0x547bda,_0x7e5da8)[_0xfb0936('0x16')](function(){const _0x2c7d44=_0xfb0936;logger[_0x2c7d44('0xd')]('Removed\x20column\x20%s\x20from\x20%s',_0x7e5da8,_0x547bda);})[_0xfb0936('0x18')](function(_0x4ca919){logger['info'](util['inspect'](_0x4ca919,{'showHidden':![],'depth':null}));});});},Migration[_0x55f6c2('0x14')][_0x55f6c2('0x11')]=function(_0xcb14ed,_0x41b55,_0x31ce48){const _0x2d79e0=_0x55f6c2,_0x200a37=this;this[_0x2d79e0('0x7')][_0x2d79e0('0x6')](function(){const _0x3313ec=_0x2d79e0;return _0x200a37[_0x3313ec('0x5')][_0x3313ec('0x11')](_0xcb14ed,_0x41b55,_0x31ce48)['then'](function(){const _0x286912=_0x3313ec;logger[_0x286912('0xd')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x41b55,_0x31ce48,_0xcb14ed);})[_0x3313ec('0x18')](function(_0x47ba59){const _0x5ad6a9=_0x3313ec;logger['info'](util[_0x5ad6a9('0xb')](_0x47ba59,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x24f968){const _0xcb34c8=_0x55f6c2;this[_0xcb34c8('0x7')][_0xcb34c8('0x6')](function(){return _0x24f968();});},module['exports']={'up':function(_0xbaa0de){return new Promise(function(_0x294ce3){const _0x10ed57=new Migration(_0xbaa0de);_0x10ed57['final'](_0x294ce3);});},'down':function(){}}; \ No newline at end of file +const a1011_0x44ba=['final','enqueue','removeIndex\x20%s\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','../config/logger','finally','sequence','indexName','tail','table\x20dropped\x20%s','migration','addIndex','Added\x20column\x20%s\x20to\x20%s','query','info','exports','queryInterface','addColumn','prototype','inspect','then','Changed\x20column\x20%s\x20in\x20table\x20%s','renameColumn','changeColumn','removeIndex','catch','stringify','removeColumn','join'];(function(_0x572297,_0x44ba3d){const _0x4c4d60=function(_0x2f2301){while(--_0x2f2301){_0x572297['push'](_0x572297['shift']());}};_0x4c4d60(++_0x44ba3d);}(a1011_0x44ba,0xc8));const a1011_0x4c4d=function(_0x572297,_0x44ba3d){_0x572297=_0x572297-0x0;let _0x4c4d60=a1011_0x44ba[_0x572297];return _0x4c4d60;};const _0x511f1b=a1011_0x4c4d;'use strict';const util=require('util'),logger=require(_0x511f1b('0x7'))(_0x511f1b('0xd')),Sequence=function(){};Sequence['prototype'][_0x511f1b('0x4')]=function(_0x2f2301){const _0x2b39a1=_0x511f1b;this[_0x2b39a1('0xb')]=this[_0x2b39a1('0xb')]?this[_0x2b39a1('0xb')][_0x2b39a1('0x8')](_0x2f2301):_0x2f2301();};const Migration=function(_0x216cb4){const _0x42d981=_0x511f1b;this[_0x42d981('0x13')]=_0x216cb4,this[_0x42d981('0x9')]=new Sequence();};Migration[_0x511f1b('0x15')]['changeColumn']=function(_0x2ca187,_0x327196,_0x453468){const _0x551463=_0x511f1b,_0x59f944=this;this['sequence'][_0x551463('0x4')](function(){const _0x22f35c=_0x551463;return _0x59f944[_0x22f35c('0x13')][_0x22f35c('0x1a')](_0x2ca187,_0x327196,_0x453468)[_0x22f35c('0x17')](function(){const _0x5e2cc7=_0x22f35c;logger[_0x5e2cc7('0x11')](_0x5e2cc7('0x18'),_0x327196,_0x2ca187);})[_0x22f35c('0x1c')](function(_0x1d3eb0){const _0x3eba33=_0x22f35c;logger[_0x3eba33('0x11')](JSON[_0x3eba33('0x0')](_0x1d3eb0));});});},Migration[_0x511f1b('0x15')]['addColumn']=function(_0x4a5051,_0x542263,_0x559515){const _0x1cba31=_0x511f1b,_0x3d156b=this;this[_0x1cba31('0x9')]['enqueue'](function(){const _0x3df264=_0x1cba31;return _0x3d156b['queryInterface'][_0x3df264('0x14')](_0x4a5051,_0x542263,_0x559515)[_0x3df264('0x17')](function(){const _0x19a783=_0x3df264;logger[_0x19a783('0x11')](_0x19a783('0xf'),_0x542263,_0x4a5051);})[_0x3df264('0x1c')](function(_0x41342a){const _0x4fadfa=_0x3df264;logger[_0x4fadfa('0x11')](JSON['stringify'](_0x41342a));});});},Migration['prototype']['dropTable']=function(_0x15767a){const _0x2a1b2b=_0x511f1b,_0x4e3f28=this;this[_0x2a1b2b('0x9')][_0x2a1b2b('0x4')](function(){const _0x175483=_0x2a1b2b;return _0x4e3f28['queryInterface']['dropTable'](_0x15767a,{'force':!![]})['then'](function(){const _0x1bb3cd=a1011_0x4c4d;logger[_0x1bb3cd('0x11')](_0x1bb3cd('0xc'),_0x15767a);})[_0x175483('0x1c')](function(_0x1dbb05){const _0x33e0db=_0x175483;logger[_0x33e0db('0x11')](JSON[_0x33e0db('0x0')](_0x1dbb05));});});},Migration['prototype'][_0x511f1b('0xe')]=function(_0x5af9d7,_0x40efdc,_0x4e2edd){const _0x2d045c=_0x511f1b,_0x2995f7=this;this[_0x2d045c('0x9')]['enqueue'](function(){const _0x3239cc=_0x2d045c;return _0x2995f7[_0x3239cc('0x13')][_0x3239cc('0xe')](_0x5af9d7,_0x40efdc,{'indexName':_0x4e2edd[_0x3239cc('0xa')],'indicesType':_0x4e2edd['indicesType']})['then'](function(){const _0xbbec47=_0x3239cc;logger['info'](_0xbbec47('0x6'),_0x5af9d7,_0x40efdc[_0xbbec47('0x2')](','),_0x4e2edd['indexName'],_0x4e2edd['indicesType']);})[_0x3239cc('0x1c')](function(_0x5eca40){const _0x543d0c=_0x3239cc;logger[_0x543d0c('0x11')](JSON['stringify'](_0x5eca40));});});},Migration[_0x511f1b('0x15')][_0x511f1b('0x1b')]=function(_0x1ce948,_0x559d1e){const _0x8389b6=_0x511f1b,_0xcb24c2=this;this[_0x8389b6('0x9')][_0x8389b6('0x4')](function(){const _0x326139=_0x8389b6;return _0xcb24c2[_0x326139('0x13')][_0x326139('0x1b')](_0x1ce948,_0x559d1e)[_0x326139('0x17')](function(){const _0x11ac64=_0x326139;logger[_0x11ac64('0x11')](_0x11ac64('0x5'),_0x1ce948,_0x559d1e);})['catch'](function(_0x5b07ed){const _0x307676=_0x326139;logger[_0x307676('0x11')](JSON[_0x307676('0x0')](_0x5b07ed));});});},Migration[_0x511f1b('0x15')][_0x511f1b('0x10')]=function(_0x763a93){const _0x32fe9e=_0x511f1b,_0x347204=this;this[_0x32fe9e('0x9')][_0x32fe9e('0x4')](function(){const _0x295f76=_0x32fe9e;return _0x347204[_0x295f76('0x13')]['sequelize'][_0x295f76('0x10')](_0x763a93)[_0x295f76('0x17')](function(){const _0x26cd48=_0x295f76;logger[_0x26cd48('0x11')]('query\x20%s',_0x763a93);})['catch'](function(_0x101d95){const _0x46fd6d=_0x295f76;logger['info'](JSON[_0x46fd6d('0x0')](_0x101d95));});});},Migration['prototype'][_0x511f1b('0x1')]=function(_0x23f0cb,_0x2f8d33){const _0x598f38=_0x511f1b,_0x164927=this;this['sequence'][_0x598f38('0x4')](function(){const _0x343859=_0x598f38;return _0x164927['queryInterface'][_0x343859('0x1')](_0x23f0cb,_0x2f8d33)[_0x343859('0x17')](function(){const _0x579b90=_0x343859;logger[_0x579b90('0x11')]('Removed\x20column\x20%s\x20from\x20%s',_0x2f8d33,_0x23f0cb);})[_0x343859('0x1c')](function(_0xd480ae){const _0x127a6b=_0x343859;logger[_0x127a6b('0x11')](util[_0x127a6b('0x16')](_0xd480ae,{'showHidden':![],'depth':null}));});});},Migration[_0x511f1b('0x15')][_0x511f1b('0x19')]=function(_0x17e093,_0x395a00,_0xed6f7){const _0xd0dc58=_0x511f1b,_0x4bd497=this;this[_0xd0dc58('0x9')][_0xd0dc58('0x4')](function(){const _0x928697=_0xd0dc58;return _0x4bd497[_0x928697('0x13')][_0x928697('0x19')](_0x17e093,_0x395a00,_0xed6f7)['then'](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x395a00,_0xed6f7,_0x17e093);})[_0x928697('0x1c')](function(_0x423cfd){const _0x1dd4b1=_0x928697;logger[_0x1dd4b1('0x11')](util[_0x1dd4b1('0x16')](_0x423cfd,{'showHidden':![],'depth':null}));});});},Migration[_0x511f1b('0x15')][_0x511f1b('0x3')]=function(_0x207fe3){const _0x59289e=_0x511f1b;this['sequence'][_0x59289e('0x4')](function(){return _0x207fe3();});},module[_0x511f1b('0x12')]={'up':function(_0x439abb){return new Promise(function(_0x1a46d5){const _0x28f366=new Migration(_0x439abb);_0x28f366['final'](_0x1a46d5);});},'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 5c39626..6e982ea 100644 --- a/server/migrations/2.4.9.js +++ b/server/migrations/2.4.9.js @@ -1 +1 @@ -const a1012_0x3e33=['../config/logger','queryInterface','then','addIndex\x20%s\x20%s\x20%s\x20[%s]','sequence','tail','removeIndex\x20%s\x20%s','addColumn','prototype','enqueue','inspect','join','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','indexName','util','Changed\x20column\x20%s\x20in\x20table\x20%s','finally','stringify','removeColumn','addIndex','final','removeIndex','catch','dropTable','renameColumn','query','changeColumn','indicesType','sequelize','info'];(function(_0x5ee429,_0x3e3325){const _0x407a08=function(_0x40717b){while(--_0x40717b){_0x5ee429['push'](_0x5ee429['shift']());}};_0x407a08(++_0x3e3325);}(a1012_0x3e33,0x131));const a1012_0x407a=function(_0x5ee429,_0x3e3325){_0x5ee429=_0x5ee429-0x0;let _0x407a08=a1012_0x3e33[_0x5ee429];return _0x407a08;};const _0x11fceb=a1012_0x407a;'use strict';const util=require(_0x11fceb('0x9')),logger=require(_0x11fceb('0x19'))('migration'),Sequence=function(){};Sequence[_0x11fceb('0x3')]['enqueue']=function(_0x40717b){const _0x310f67=_0x11fceb;this[_0x310f67('0x0')]=this[_0x310f67('0x0')]?this[_0x310f67('0x0')][_0x310f67('0xb')](_0x40717b):_0x40717b();};const Migration=function(_0x4e880d){const _0x4beb8a=_0x11fceb;this[_0x4beb8a('0x1a')]=_0x4e880d,this[_0x4beb8a('0x1d')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x47f581,_0x4689c8,_0x436851){const _0x3c3d5b=_0x11fceb,_0x48c37f=this;this[_0x3c3d5b('0x1d')][_0x3c3d5b('0x4')](function(){const _0x2b06cc=_0x3c3d5b;return _0x48c37f['queryInterface'][_0x2b06cc('0x15')](_0x47f581,_0x4689c8,_0x436851)[_0x2b06cc('0x1b')](function(){const _0x4c296e=_0x2b06cc;logger[_0x4c296e('0x18')](_0x4c296e('0xa'),_0x4689c8,_0x47f581);})[_0x2b06cc('0x11')](function(_0x955ab8){const _0x52ac31=_0x2b06cc;logger[_0x52ac31('0x18')](JSON[_0x52ac31('0xc')](_0x955ab8));});});},Migration['prototype'][_0x11fceb('0x2')]=function(_0x6c5793,_0x5b2b73,_0x55d168){const _0x117358=_0x11fceb,_0x9bd579=this;this[_0x117358('0x1d')][_0x117358('0x4')](function(){const _0x2ceb56=_0x117358;return _0x9bd579[_0x2ceb56('0x1a')][_0x2ceb56('0x2')](_0x6c5793,_0x5b2b73,_0x55d168)[_0x2ceb56('0x1b')](function(){const _0x18fcf2=_0x2ceb56;logger[_0x18fcf2('0x18')]('Added\x20column\x20%s\x20to\x20%s',_0x5b2b73,_0x6c5793);})[_0x2ceb56('0x11')](function(_0x4038b2){const _0x5a0747=_0x2ceb56;logger['info'](JSON[_0x5a0747('0xc')](_0x4038b2));});});},Migration['prototype'][_0x11fceb('0x12')]=function(_0x12c7f3){const _0x5856f5=_0x11fceb,_0x5ed6b8=this;this[_0x5856f5('0x1d')][_0x5856f5('0x4')](function(){const _0x5ecd07=_0x5856f5;return _0x5ed6b8[_0x5ecd07('0x1a')][_0x5ecd07('0x12')](_0x12c7f3,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x12c7f3);})[_0x5ecd07('0x11')](function(_0x41344d){const _0xb81e3c=_0x5ecd07;logger[_0xb81e3c('0x18')](JSON[_0xb81e3c('0xc')](_0x41344d));});});},Migration[_0x11fceb('0x3')][_0x11fceb('0xe')]=function(_0x1fb072,_0x33f782,_0x4fb5a4){const _0x1aa5aa=_0x11fceb,_0x1b40f5=this;this[_0x1aa5aa('0x1d')][_0x1aa5aa('0x4')](function(){const _0x4df766=_0x1aa5aa;return _0x1b40f5[_0x4df766('0x1a')][_0x4df766('0xe')](_0x1fb072,_0x33f782,{'indexName':_0x4fb5a4[_0x4df766('0x8')],'indicesType':_0x4fb5a4[_0x4df766('0x16')]})[_0x4df766('0x1b')](function(){const _0x505f31=_0x4df766;logger['info'](_0x505f31('0x1c'),_0x1fb072,_0x33f782[_0x505f31('0x6')](','),_0x4fb5a4[_0x505f31('0x8')],_0x4fb5a4['indicesType']);})['catch'](function(_0x473728){const _0x46cee5=_0x4df766;logger[_0x46cee5('0x18')](JSON[_0x46cee5('0xc')](_0x473728));});});},Migration[_0x11fceb('0x3')]['removeIndex']=function(_0x246a68,_0x3cec0d){const _0x43c1ef=_0x11fceb,_0x24e9ff=this;this[_0x43c1ef('0x1d')]['enqueue'](function(){const _0x5075a6=_0x43c1ef;return _0x24e9ff['queryInterface'][_0x5075a6('0x10')](_0x246a68,_0x3cec0d)[_0x5075a6('0x1b')](function(){const _0x4d0c71=_0x5075a6;logger[_0x4d0c71('0x18')](_0x4d0c71('0x1'),_0x246a68,_0x3cec0d);})[_0x5075a6('0x11')](function(_0x486458){const _0x152d8d=_0x5075a6;logger[_0x152d8d('0x18')](JSON[_0x152d8d('0xc')](_0x486458));});});},Migration[_0x11fceb('0x3')]['query']=function(_0x14bf97){const _0x5ca94a=_0x11fceb,_0x17ccf6=this;this[_0x5ca94a('0x1d')][_0x5ca94a('0x4')](function(){const _0x534c4a=_0x5ca94a;return _0x17ccf6[_0x534c4a('0x1a')][_0x534c4a('0x17')][_0x534c4a('0x14')](_0x14bf97)[_0x534c4a('0x1b')](function(){const _0x24d6ff=_0x534c4a;logger[_0x24d6ff('0x18')]('query\x20%s',_0x14bf97);})[_0x534c4a('0x11')](function(_0x39f69c){logger['info'](JSON['stringify'](_0x39f69c));});});},Migration['prototype'][_0x11fceb('0xd')]=function(_0x10a622,_0x5f02a0){const _0x57dd52=_0x11fceb,_0x2834ea=this;this[_0x57dd52('0x1d')][_0x57dd52('0x4')](function(){const _0x4cd9d7=_0x57dd52;return _0x2834ea[_0x4cd9d7('0x1a')][_0x4cd9d7('0xd')](_0x10a622,_0x5f02a0)[_0x4cd9d7('0x1b')](function(){const _0x32b9b9=_0x4cd9d7;logger[_0x32b9b9('0x18')]('Removed\x20column\x20%s\x20from\x20%s',_0x5f02a0,_0x10a622);})[_0x4cd9d7('0x11')](function(_0x930b50){const _0x15f7eb=_0x4cd9d7;logger[_0x15f7eb('0x18')](util['inspect'](_0x930b50,{'showHidden':![],'depth':null}));});});},Migration[_0x11fceb('0x3')][_0x11fceb('0x13')]=function(_0x11bb39,_0x4aaa6e,_0x298831){const _0x5960ca=_0x11fceb,_0x163721=this;this[_0x5960ca('0x1d')][_0x5960ca('0x4')](function(){const _0x71bda0=_0x5960ca;return _0x163721['queryInterface'][_0x71bda0('0x13')](_0x11bb39,_0x4aaa6e,_0x298831)[_0x71bda0('0x1b')](function(){const _0x8832d6=_0x71bda0;logger['info'](_0x8832d6('0x7'),_0x4aaa6e,_0x298831,_0x11bb39);})[_0x71bda0('0x11')](function(_0x43ba90){const _0x553204=_0x71bda0;logger[_0x553204('0x18')](util[_0x553204('0x5')](_0x43ba90,{'showHidden':![],'depth':null}));});});},Migration[_0x11fceb('0x3')]['final']=function(_0x1c7d19){const _0x4c46c5=_0x11fceb;this[_0x4c46c5('0x1d')][_0x4c46c5('0x4')](function(){return _0x1c7d19();});},module['exports']={'up':function(_0x3bad3c){return new Promise(function(_0x1e31c7){const _0x3e5c67=a1012_0x407a,_0x402d15=new Migration(_0x3bad3c);_0x402d15[_0x3e5c67('0xf')](_0x1e31c7);});},'down':function(){}}; \ No newline at end of file +const a1012_0x1e6e=['catch','indicesType','../config/logger','Added\x20column\x20%s\x20to\x20%s','addIndex','sequelize','dropTable','queryInterface','enqueue','indexName','finally','Removed\x20column\x20%s\x20from\x20%s','query','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','sequence','migration','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','table\x20dropped\x20%s','final','exports','prototype','addColumn','inspect','tail','changeColumn','stringify','removeIndex','renameColumn','then','info'];(function(_0x413e95,_0x1e6ea9){const _0x563044=function(_0x702fae){while(--_0x702fae){_0x413e95['push'](_0x413e95['shift']());}};_0x563044(++_0x1e6ea9);}(a1012_0x1e6e,0x1a3));const a1012_0x5630=function(_0x413e95,_0x1e6ea9){_0x413e95=_0x413e95-0x0;let _0x563044=a1012_0x1e6e[_0x413e95];return _0x563044;};const _0x10dac6=a1012_0x5630;'use strict';const util=require('util'),logger=require(_0x10dac6('0x1f'))(_0x10dac6('0xe')),Sequence=function(){};Sequence['prototype'][_0x10dac6('0x5')]=function(_0x702fae){const _0x4a0f9e=_0x10dac6;this[_0x4a0f9e('0x16')]=this[_0x4a0f9e('0x16')]?this[_0x4a0f9e('0x16')][_0x4a0f9e('0x7')](_0x702fae):_0x702fae();};const Migration=function(_0x2cfa82){const _0x474e4f=_0x10dac6;this['queryInterface']=_0x2cfa82,this[_0x474e4f('0xd')]=new Sequence();};Migration['prototype'][_0x10dac6('0x17')]=function(_0x5c54a0,_0x45dceb,_0x27e802){const _0x5750c6=_0x10dac6,_0x39fa64=this;this[_0x5750c6('0xd')][_0x5750c6('0x5')](function(){const _0x5c0583=_0x5750c6;return _0x39fa64[_0x5c0583('0x4')]['changeColumn'](_0x5c54a0,_0x45dceb,_0x27e802)[_0x5c0583('0x1b')](function(){const _0x2de0f3=_0x5c0583;logger['info'](_0x2de0f3('0xb'),_0x45dceb,_0x5c54a0);})[_0x5c0583('0x1d')](function(_0xd56f21){const _0x2965a3=_0x5c0583;logger[_0x2965a3('0x1c')](JSON['stringify'](_0xd56f21));});});},Migration['prototype'][_0x10dac6('0x14')]=function(_0x43ec80,_0x19a3e7,_0x4b8bf9){const _0x5666de=_0x10dac6,_0x7c0f4a=this;this[_0x5666de('0xd')]['enqueue'](function(){const _0x102832=_0x5666de;return _0x7c0f4a[_0x102832('0x4')][_0x102832('0x14')](_0x43ec80,_0x19a3e7,_0x4b8bf9)[_0x102832('0x1b')](function(){const _0x4c2b0d=_0x102832;logger[_0x4c2b0d('0x1c')](_0x4c2b0d('0x0'),_0x19a3e7,_0x43ec80);})['catch'](function(_0x26156d){const _0x7822be=_0x102832;logger[_0x7822be('0x1c')](JSON[_0x7822be('0x18')](_0x26156d));});});},Migration['prototype']['dropTable']=function(_0x3e83cd){const _0xfeda30=_0x10dac6,_0x7d3bd5=this;this[_0xfeda30('0xd')][_0xfeda30('0x5')](function(){const _0x1f2d50=_0xfeda30;return _0x7d3bd5['queryInterface'][_0x1f2d50('0x3')](_0x3e83cd,{'force':!![]})[_0x1f2d50('0x1b')](function(){const _0x27d155=_0x1f2d50;logger[_0x27d155('0x1c')](_0x27d155('0x10'),_0x3e83cd);})[_0x1f2d50('0x1d')](function(_0x47c917){logger['info'](JSON['stringify'](_0x47c917));});});},Migration[_0x10dac6('0x13')][_0x10dac6('0x1')]=function(_0x227cf0,_0x31cfbd,_0x192f9c){const _0x15e79f=_0x10dac6,_0x3ca6bd=this;this[_0x15e79f('0xd')][_0x15e79f('0x5')](function(){const _0x23014e=_0x15e79f;return _0x3ca6bd[_0x23014e('0x4')][_0x23014e('0x1')](_0x227cf0,_0x31cfbd,{'indexName':_0x192f9c['indexName'],'indicesType':_0x192f9c[_0x23014e('0x1e')]})[_0x23014e('0x1b')](function(){const _0x3e4cde=_0x23014e;logger[_0x3e4cde('0x1c')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x227cf0,_0x31cfbd['join'](','),_0x192f9c[_0x3e4cde('0x6')],_0x192f9c['indicesType']);})[_0x23014e('0x1d')](function(_0x1474fc){const _0x15b169=_0x23014e;logger[_0x15b169('0x1c')](JSON[_0x15b169('0x18')](_0x1474fc));});});},Migration[_0x10dac6('0x13')][_0x10dac6('0x19')]=function(_0x19d04d,_0x45c2ce){const _0x343e97=_0x10dac6,_0x3b45e4=this;this['sequence'][_0x343e97('0x5')](function(){const _0x421bf3=_0x343e97;return _0x3b45e4[_0x421bf3('0x4')][_0x421bf3('0x19')](_0x19d04d,_0x45c2ce)[_0x421bf3('0x1b')](function(){const _0x28ae79=_0x421bf3;logger[_0x28ae79('0x1c')](_0x28ae79('0xa'),_0x19d04d,_0x45c2ce);})[_0x421bf3('0x1d')](function(_0x238d03){const _0x61b4b9=_0x421bf3;logger['info'](JSON[_0x61b4b9('0x18')](_0x238d03));});});},Migration[_0x10dac6('0x13')][_0x10dac6('0x9')]=function(_0x1057d0){const _0x2020a7=_0x10dac6,_0x2803eb=this;this['sequence'][_0x2020a7('0x5')](function(){const _0x3c8898=_0x2020a7;return _0x2803eb['queryInterface'][_0x3c8898('0x2')][_0x3c8898('0x9')](_0x1057d0)['then'](function(){const _0x3a3fa5=_0x3c8898;logger[_0x3a3fa5('0x1c')](_0x3a3fa5('0xc'),_0x1057d0);})[_0x3c8898('0x1d')](function(_0x1f491a){const _0x5db30d=_0x3c8898;logger[_0x5db30d('0x1c')](JSON[_0x5db30d('0x18')](_0x1f491a));});});},Migration['prototype']['removeColumn']=function(_0x1b3a50,_0x123147){const _0x43287e=_0x10dac6,_0x28d493=this;this[_0x43287e('0xd')][_0x43287e('0x5')](function(){const _0x2beb59=_0x43287e;return _0x28d493[_0x2beb59('0x4')]['removeColumn'](_0x1b3a50,_0x123147)[_0x2beb59('0x1b')](function(){const _0x571cde=_0x2beb59;logger[_0x571cde('0x1c')](_0x571cde('0x8'),_0x123147,_0x1b3a50);})[_0x2beb59('0x1d')](function(_0x47330c){const _0x1d17f2=_0x2beb59;logger[_0x1d17f2('0x1c')](util[_0x1d17f2('0x15')](_0x47330c,{'showHidden':![],'depth':null}));});});},Migration[_0x10dac6('0x13')][_0x10dac6('0x1a')]=function(_0x479e9c,_0x2b4bf1,_0x587088){const _0x395510=_0x10dac6,_0x2c5ab=this;this[_0x395510('0xd')][_0x395510('0x5')](function(){const _0x53a157=_0x395510;return _0x2c5ab[_0x53a157('0x4')][_0x53a157('0x1a')](_0x479e9c,_0x2b4bf1,_0x587088)[_0x53a157('0x1b')](function(){const _0x2c69a8=_0x53a157;logger['info'](_0x2c69a8('0xf'),_0x2b4bf1,_0x587088,_0x479e9c);})[_0x53a157('0x1d')](function(_0x430257){const _0x1b6fe5=_0x53a157;logger[_0x1b6fe5('0x1c')](util['inspect'](_0x430257,{'showHidden':![],'depth':null}));});});},Migration[_0x10dac6('0x13')][_0x10dac6('0x11')]=function(_0xdcd0fe){this['sequence']['enqueue'](function(){return _0xdcd0fe();});},module[_0x10dac6('0x12')]={'up':function(_0x527cdd){return new Promise(function(_0x670f4b){const _0x167fd9=a1012_0x5630,_0xacc4b2=new Migration(_0x527cdd);_0xacc4b2[_0x167fd9('0x11')](_0x670f4b);});},'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 6853d58..806d0be 100644 --- a/server/migrations/2.5.0.js +++ b/server/migrations/2.5.0.js @@ -1 +1 @@ -const a1013_0x44c6=['\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','fileUri','removeIndex','whatsappCapacity','transcribeName','transcribe','renameColumn','Removed\x20column\x20%s\x20from\x20%s','sMixed','util','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE','transcribeAccountId','BOOLEAN','\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','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','WhatsappAccountId','INTEGER','addColumn','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','vidaooSessionId','indexName','language','final','location','sNegative','chat_interactions','\x20`createdAt`\x20datetime\x20NOT\x20NULL,','STRING','sequence','settings','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','tools_dispositions','removeColumn','bucket','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','join','transcribeRegion','enqueue','failureReason','stringify','inspect','catch','sequelize','../config/logger','vidaooEscalation','\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addIndex\x20%s\x20%s\x20%s\x20[%s]','\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,','sentiment','\x20PRIMARY\x20KEY\x20(`id`),','\x20`notificationShake`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','addIndex','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','TEXT','\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','chat_websites','prototype','vidaooApiKey','sPositive','indicesType','tail','finally','FLOAT','then','dropTable','voice_recordings','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','sNeutral','queryInterface','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','removeIndex\x20%s\x20%s','\x20`notificationTemplate`\x20text,','automaticSentiment','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','tempSentiment','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','\x20KEY\x20`ListId`\x20(`ListId`),','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','migration','automaticTranscribe','fileText','query\x20%s','info','query'];(function(_0x19ce77,_0x44c644){const _0x4a1ba9=function(_0xb41e61){while(--_0xb41e61){_0x19ce77['push'](_0x19ce77['shift']());}};_0x4a1ba9(++_0x44c644);}(a1013_0x44c6,0x14a));const a1013_0x4a1b=function(_0x19ce77,_0x44c644){_0x19ce77=_0x19ce77-0x0;let _0x4a1ba9=a1013_0x44c6[_0x19ce77];return _0x4a1ba9;};const _0x7a387=a1013_0x4a1b;'use strict';const util=require(_0x7a387('0x1f')),logger=require(_0x7a387('0x43'))(_0x7a387('0x10')),Sequence=function(){};Sequence[_0x7a387('0x51')]['enqueue']=function(_0xb41e61){const _0x1be421=_0x7a387;this['tail']=this[_0x1be421('0x55')]?this[_0x1be421('0x55')][_0x1be421('0x56')](_0xb41e61):_0xb41e61();};const Migration=function(_0x4ad611){const _0x42d296=_0x7a387;this[_0x42d296('0x6')]=_0x4ad611,this[_0x42d296('0x33')]=new Sequence();};Migration[_0x7a387('0x51')]['changeColumn']=function(_0x67570a,_0x3234c0,_0x2ea116){const _0x94598b=_0x7a387,_0x5f42ba=this;this[_0x94598b('0x33')][_0x94598b('0x3d')](function(){const _0x44925a=_0x94598b;return _0x5f42ba[_0x44925a('0x6')]['changeColumn'](_0x67570a,_0x3234c0,_0x2ea116)['then'](function(){const _0x2be1a7=_0x44925a;logger[_0x2be1a7('0x14')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x3234c0,_0x67570a);})['catch'](function(_0x10b70c){const _0x29b6b2=_0x44925a;logger[_0x29b6b2('0x14')](JSON[_0x29b6b2('0x3f')](_0x10b70c));});});},Migration[_0x7a387('0x51')][_0x7a387('0x27')]=function(_0x13e989,_0x312cb3,_0x48ac68){const _0x4f67fb=_0x7a387,_0x2f2a9f=this;this['sequence'][_0x4f67fb('0x3d')](function(){const _0x16c2a3=_0x4f67fb;return _0x2f2a9f[_0x16c2a3('0x6')][_0x16c2a3('0x27')](_0x13e989,_0x312cb3,_0x48ac68)[_0x16c2a3('0x0')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x312cb3,_0x13e989);})[_0x16c2a3('0x41')](function(_0x30fb54){const _0x1b9fc6=_0x16c2a3;logger[_0x1b9fc6('0x14')](JSON['stringify'](_0x30fb54));});});},Migration[_0x7a387('0x51')][_0x7a387('0x1')]=function(_0x298e1f){const _0x5b240a=_0x7a387,_0x51b84d=this;this[_0x5b240a('0x33')][_0x5b240a('0x3d')](function(){const _0x385ce9=_0x5b240a;return _0x51b84d[_0x385ce9('0x6')][_0x385ce9('0x1')](_0x298e1f,{'force':!![]})[_0x385ce9('0x0')](function(){const _0x53ad8b=_0x385ce9;logger[_0x53ad8b('0x14')]('table\x20dropped\x20%s',_0x298e1f);})[_0x385ce9('0x41')](function(_0x467375){const _0x1f5b30=_0x385ce9;logger[_0x1f5b30('0x14')](JSON['stringify'](_0x467375));});});},Migration[_0x7a387('0x51')]['addIndex']=function(_0x20493b,_0x2fd255,_0x46c3ea){const _0x199401=_0x7a387,_0x359ba7=this;this[_0x199401('0x33')][_0x199401('0x3d')](function(){const _0xe3a099=_0x199401;return _0x359ba7[_0xe3a099('0x6')][_0xe3a099('0x4c')](_0x20493b,_0x2fd255,{'indexName':_0x46c3ea[_0xe3a099('0x2b')],'indicesType':_0x46c3ea['indicesType']})[_0xe3a099('0x0')](function(){const _0x3b888c=_0xe3a099;logger[_0x3b888c('0x14')](_0x3b888c('0x47'),_0x20493b,_0x2fd255[_0x3b888c('0x3b')](','),_0x46c3ea[_0x3b888c('0x2b')],_0x46c3ea[_0x3b888c('0x54')]);})[_0xe3a099('0x41')](function(_0x175bd4){const _0x33710e=_0xe3a099;logger[_0x33710e('0x14')](JSON[_0x33710e('0x3f')](_0x175bd4));});});},Migration[_0x7a387('0x51')][_0x7a387('0x18')]=function(_0x42bb19,_0x105921){const _0x48e63a=_0x7a387,_0x5c8500=this;this[_0x48e63a('0x33')][_0x48e63a('0x3d')](function(){const _0x51294b=_0x48e63a;return _0x5c8500[_0x51294b('0x6')]['removeIndex'](_0x42bb19,_0x105921)[_0x51294b('0x0')](function(){const _0x40f41c=_0x51294b;logger[_0x40f41c('0x14')](_0x40f41c('0x8'),_0x42bb19,_0x105921);})[_0x51294b('0x41')](function(_0x3bd632){const _0x5e8af7=_0x51294b;logger['info'](JSON[_0x5e8af7('0x3f')](_0x3bd632));});});},Migration['prototype'][_0x7a387('0x15')]=function(_0x3a33ca){const _0x3b0c7e=_0x7a387,_0x2e341f=this;this[_0x3b0c7e('0x33')][_0x3b0c7e('0x3d')](function(){const _0x3c1240=_0x3b0c7e;return _0x2e341f[_0x3c1240('0x6')][_0x3c1240('0x42')][_0x3c1240('0x15')](_0x3a33ca)[_0x3c1240('0x0')](function(){const _0x38fd8d=_0x3c1240;logger['info'](_0x38fd8d('0x13'),_0x3a33ca);})[_0x3c1240('0x41')](function(_0x5e5098){const _0x5e65f2=_0x3c1240;logger[_0x5e65f2('0x14')](JSON[_0x5e65f2('0x3f')](_0x5e5098));});});},Migration['prototype']['removeColumn']=function(_0x436ea8,_0x1b29de){const _0x59efc5=_0x7a387,_0x57bdce=this;this[_0x59efc5('0x33')][_0x59efc5('0x3d')](function(){const _0x1d4639=_0x59efc5;return _0x57bdce[_0x1d4639('0x6')][_0x1d4639('0x37')](_0x436ea8,_0x1b29de)[_0x1d4639('0x0')](function(){const _0x334d14=_0x1d4639;logger[_0x334d14('0x14')](_0x334d14('0x1d'),_0x1b29de,_0x436ea8);})[_0x1d4639('0x41')](function(_0x164b4d){const _0x8dea3b=_0x1d4639;logger[_0x8dea3b('0x14')](util[_0x8dea3b('0x40')](_0x164b4d,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x7a387('0x1c')]=function(_0x4b08e4,_0x44222c,_0x39f743){const _0xec56d2=_0x7a387,_0x16e669=this;this[_0xec56d2('0x33')]['enqueue'](function(){const _0x4f2b52=_0xec56d2;return _0x16e669[_0x4f2b52('0x6')][_0x4f2b52('0x1c')](_0x4b08e4,_0x44222c,_0x39f743)[_0x4f2b52('0x0')](function(){const _0x330944=_0x4f2b52;logger[_0x330944('0x14')](_0x330944('0x46'),_0x44222c,_0x39f743,_0x4b08e4);})[_0x4f2b52('0x41')](function(_0x58c316){const _0x470b82=_0x4f2b52;logger[_0x470b82('0x14')](util['inspect'](_0x58c316,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x7a387('0x2d')]=function(_0xfbfe24){const _0x53aa35=_0x7a387;this['sequence'][_0x53aa35('0x3d')](function(){return _0xfbfe24();});},module['exports']={'up':function(_0x48d585,_0x1d122e){return new Promise(function(_0x2b40dc){const _0x53fbf0=a1013_0x4a1b,_0x24ac62=new Migration(_0x48d585);_0x24ac62[_0x53fbf0('0x15')](_0x53fbf0('0x3')+'\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0x53fbf0('0x4')+'\x20`key`\x20varchar(255)\x20NOT\x20NULL,'+'\x20`remote`\x20varchar(255)\x20NOT\x20NULL,'+_0x53fbf0('0x48')+_0x53fbf0('0x3a')+'\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,'+_0x53fbf0('0x28')+_0x53fbf0('0x45')+_0x53fbf0('0x9')+_0x53fbf0('0x7')+_0x53fbf0('0x4b')+'\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,'+_0x53fbf0('0x39')+_0x53fbf0('0x23')+_0x53fbf0('0xb')+'\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,'+_0x53fbf0('0x16')+_0x53fbf0('0x4f')+'\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0x53fbf0('0x31')+_0x53fbf0('0xf')+_0x53fbf0('0x4d')+_0x53fbf0('0x4a')+'\x20UNIQUE\x20KEY\x20`name`\x20(`name`),'+_0x53fbf0('0x29')+_0x53fbf0('0xe')+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,'+_0x53fbf0('0x20')+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x36'),'WhatsappAccountId',{'type':_0x1d122e[_0x53fbf0('0x26')]}),_0x24ac62[_0x53fbf0('0x27')]('tools_canned_answers',_0x53fbf0('0x25'),{'type':_0x1d122e[_0x53fbf0('0x26')]}),_0x24ac62[_0x53fbf0('0x27')]('users','whatsappPause',{'type':_0x1d122e[_0x53fbf0('0x22')],'defaultValue':![]}),_0x24ac62['addColumn']('users',_0x53fbf0('0x19'),{'type':_0x1d122e[_0x53fbf0('0x22')],'defaultValue':![]}),_0x24ac62[_0x53fbf0('0x15')](_0x53fbf0('0x35')),_0x24ac62[_0x53fbf0('0x15')]('ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)'),_0x24ac62[_0x53fbf0('0x15')](_0x53fbf0('0x24')),_0x24ac62[_0x53fbf0('0x15')](_0x53fbf0('0xd')),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x30'),_0x53fbf0('0x2a'),{'type':_0x1d122e[_0x53fbf0('0x4e')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x50'),_0x53fbf0('0x44'),{'type':_0x1d122e[_0x53fbf0('0x22')],'defaultValue':![]}),_0x24ac62['addColumn']('chat_websites',_0x53fbf0('0x52'),{'type':_0x1d122e[_0x53fbf0('0x32')]}),_0x24ac62['addColumn']('voice_recordings',_0x53fbf0('0x2e'),{'type':_0x1d122e[_0x53fbf0('0x4e')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x2'),_0x53fbf0('0x1a'),{'type':_0x1d122e[_0x53fbf0('0x32')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x2'),'transcribeStatus',{'type':_0x1d122e[_0x53fbf0('0x32')],'defaultValue':'NEW'}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x2'),_0x53fbf0('0x17'),{'type':_0x1d122e[_0x53fbf0('0x4e')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x2'),_0x53fbf0('0x12'),{'type':_0x1d122e[_0x53fbf0('0x4e')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x2'),_0x53fbf0('0x3e'),{'type':_0x1d122e[_0x53fbf0('0x4e')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x2'),_0x53fbf0('0x49'),{'type':_0x1d122e[_0x53fbf0('0x32')]}),_0x24ac62['addColumn'](_0x53fbf0('0x2'),_0x53fbf0('0x53'),{'type':_0x1d122e[_0x53fbf0('0x57')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x2'),_0x53fbf0('0x2f'),{'type':_0x1d122e['FLOAT']}),_0x24ac62[_0x53fbf0('0x27')]('voice_recordings',_0x53fbf0('0x5'),{'type':_0x1d122e[_0x53fbf0('0x57')]}),_0x24ac62[_0x53fbf0('0x27')]('voice_recordings',_0x53fbf0('0x1e'),{'type':_0x1d122e[_0x53fbf0('0x57')]}),_0x24ac62['addColumn']('voice_recordings',_0x53fbf0('0xc'),{'type':_0x1d122e[_0x53fbf0('0x22')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x34'),_0x53fbf0('0x1b'),{'type':_0x1d122e[_0x53fbf0('0x22')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x34'),_0x53fbf0('0x11'),{'type':_0x1d122e[_0x53fbf0('0x22')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x34'),_0x53fbf0('0x21'),{'type':_0x1d122e[_0x53fbf0('0x26')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x34'),_0x53fbf0('0x3c'),{'type':_0x1d122e[_0x53fbf0('0x32')]}),_0x24ac62['addColumn']('settings',_0x53fbf0('0x49'),{'type':_0x1d122e[_0x53fbf0('0x22')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x34'),_0x53fbf0('0xa'),{'type':_0x1d122e['BOOLEAN']}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x34'),'sentimentAccountId',{'type':_0x1d122e['INTEGER']}),_0x24ac62[_0x53fbf0('0x27')]('settings','sentimentRegion',{'type':_0x1d122e[_0x53fbf0('0x32')]}),_0x24ac62['addColumn'](_0x53fbf0('0x34'),_0x53fbf0('0x2c'),{'type':_0x1d122e[_0x53fbf0('0x32')]}),_0x24ac62[_0x53fbf0('0x27')](_0x53fbf0('0x34'),_0x53fbf0('0x38'),{'type':_0x1d122e[_0x53fbf0('0x32')]}),_0x24ac62['final'](_0x2b40dc);});},'down':function(){}}; \ No newline at end of file +const a1013_0x555c=['addColumn','\x20`name`\x20varchar(255)\x20NOT\x20NULL,','automaticTranscribe','\x20`phone`\x20varchar(255)\x20DEFAULT\x20NULL,','ALTER\x20TABLE\x20tools_dispositions\x20ADD\x20CONSTRAINT\x20`name_whatsapp`\x20UNIQUE\x20KEY\x20(`name`,`WhatsappAccountId`)','\x20`key`\x20varchar(255)\x20NOT\x20NULL,','sentimentAccountId','inspect','transcribeStatus','sentimentRegion','settings','\x20`queueTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','indicesType','automaticSentiment','whatsappCapacity','final','FLOAT','bucket','\x20`type`\x20enum(\x27twilio\x27)\x20DEFAULT\x20NULL,','\x20`waitForTheAssignedAgent`\x20int(11)\x20DEFAULT\x20\x2710\x27,','chat_websites','BOOLEAN','indexName','\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_1`\x20FOREIGN\x20KEY\x20(`mandatoryDispositionPauseId`)\x20REFERENCES\x20`tools_pauses`\x20(`id`)\x20ON\x20DELETE\x20NO\x20ACTION\x20ON\x20UPDATE\x20CASCADE,','catch','\x20KEY\x20`ListId`\x20(`ListId`),','sequence','CREATE\x20TABLE\x20`whatsapp_accounts`\x20(','table\x20dropped\x20%s','users','tail','then','failureReason','queryInterface','sMixed','sentiment','fileText','language','whatsappPause','\x20`mandatoryDispositionPauseId`\x20int(11)\x20DEFAULT\x20NULL,','tools_canned_answers','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','util','migration','removeColumn','location','TEXT','sNeutral','stringify','vidaooSessionId','removeIndex','renameColumn','NEW','query\x20%s','sequelize','removeIndex\x20%s\x20%s','\x20`agentTransfer`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','../config/logger','Changed\x20column\x20%s\x20in\x20table\x20%s','\x20`accountSid`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`updatedAt`\x20datetime\x20NOT\x20NULL,','transcribeName','STRING','sNegative','WhatsappAccountId','\x20`notificationSound`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,','exports','\x20UNIQUE\x20KEY\x20`name`\x20(`name`),','INTEGER','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','voice_recordings','Removed\x20column\x20%s\x20from\x20%s','finally','prototype','\x20`agentTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,','tempSentiment','\x20`notificationShake`\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','addIndex','addIndex\x20%s\x20%s\x20%s\x20[%s]','\x20`description`\x20varchar(255)\x20DEFAULT\x20NULL,','\x20`ListId`\x20int(11)\x20DEFAULT\x20NULL,','changeColumn','dropTable','\x20KEY\x20`mandatoryDispositionPauseId`\x20(`mandatoryDispositionPauseId`),','enqueue','chat_interactions','info','query','join','transcribe','\x20`notificationTemplate`\x20text,','transcribeAccountId'];(function(_0xf54e20,_0x555c7b){const _0x464cc7=function(_0x34c3bd){while(--_0x34c3bd){_0xf54e20['push'](_0xf54e20['shift']());}};_0x464cc7(++_0x555c7b);}(a1013_0x555c,0x74));const a1013_0x464c=function(_0xf54e20,_0x555c7b){_0xf54e20=_0xf54e20-0x0;let _0x464cc7=a1013_0x555c[_0xf54e20];return _0x464cc7;};const _0x19f9ec=a1013_0x464c;'use strict';const util=require(_0x19f9ec('0x13')),logger=require(_0x19f9ec('0x22'))(_0x19f9ec('0x14')),Sequence=function(){};Sequence[_0x19f9ec('0x32')]['enqueue']=function(_0x34c3bd){const _0x41dab5=_0x19f9ec;this[_0x41dab5('0x7')]=this[_0x41dab5('0x7')]?this[_0x41dab5('0x7')][_0x41dab5('0x31')](_0x34c3bd):_0x34c3bd();};const Migration=function(_0x3272c5){const _0x426cda=_0x19f9ec;this['queryInterface']=_0x3272c5,this[_0x426cda('0x3')]=new Sequence();};Migration[_0x19f9ec('0x32')][_0x19f9ec('0x3b')]=function(_0x20f0ec,_0x56c8d0,_0x44926d){const _0x6f7ea2=_0x19f9ec,_0x30a02c=this;this[_0x6f7ea2('0x3')][_0x6f7ea2('0x3e')](function(){const _0x189985=_0x6f7ea2;return _0x30a02c[_0x189985('0xa')]['changeColumn'](_0x20f0ec,_0x56c8d0,_0x44926d)[_0x189985('0x8')](function(){const _0x2971a5=_0x189985;logger[_0x2971a5('0x40')](_0x2971a5('0x23'),_0x56c8d0,_0x20f0ec);})[_0x189985('0x1')](function(_0x20a0a7){const _0x4000c8=_0x189985;logger['info'](JSON[_0x4000c8('0x19')](_0x20a0a7));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x46')]=function(_0x343437,_0x4fddd7,_0x5561d1){const _0x3f3d81=_0x19f9ec,_0x48aba0=this;this[_0x3f3d81('0x3')][_0x3f3d81('0x3e')](function(){const _0x11eaf4=_0x3f3d81;return _0x48aba0[_0x11eaf4('0xa')]['addColumn'](_0x343437,_0x4fddd7,_0x5561d1)[_0x11eaf4('0x8')](function(){logger['info']('Added\x20column\x20%s\x20to\x20%s',_0x4fddd7,_0x343437);})[_0x11eaf4('0x1')](function(_0x3404eb){const _0x271b0b=_0x11eaf4;logger[_0x271b0b('0x40')](JSON['stringify'](_0x3404eb));});});},Migration['prototype'][_0x19f9ec('0x3c')]=function(_0x37ba95){const _0x23b869=_0x19f9ec,_0x9ad9b6=this;this[_0x23b869('0x3')][_0x23b869('0x3e')](function(){const _0x487e72=_0x23b869;return _0x9ad9b6[_0x487e72('0xa')]['dropTable'](_0x37ba95,{'force':!![]})['then'](function(){const _0x2c3318=_0x487e72;logger[_0x2c3318('0x40')](_0x2c3318('0x5'),_0x37ba95);})[_0x487e72('0x1')](function(_0x2c624c){const _0x3728e8=_0x487e72;logger[_0x3728e8('0x40')](JSON[_0x3728e8('0x19')](_0x2c624c));});});},Migration['prototype'][_0x19f9ec('0x37')]=function(_0x1da424,_0x303cab,_0x2d9848){const _0x448195=_0x19f9ec,_0x1f1792=this;this[_0x448195('0x3')][_0x448195('0x3e')](function(){const _0x545187=_0x448195;return _0x1f1792[_0x545187('0xa')]['addIndex'](_0x1da424,_0x303cab,{'indexName':_0x2d9848[_0x545187('0x5c')],'indicesType':_0x2d9848[_0x545187('0x52')]})[_0x545187('0x8')](function(){const _0xfabf24=_0x545187;logger['info'](_0xfabf24('0x38'),_0x1da424,_0x303cab[_0xfabf24('0x42')](','),_0x2d9848[_0xfabf24('0x5c')],_0x2d9848[_0xfabf24('0x52')]);})[_0x545187('0x1')](function(_0xa8cb1e){const _0x237dcc=_0x545187;logger[_0x237dcc('0x40')](JSON[_0x237dcc('0x19')](_0xa8cb1e));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x1b')]=function(_0x813460,_0x123da4){const _0x301dcb=_0x19f9ec,_0x145853=this;this[_0x301dcb('0x3')][_0x301dcb('0x3e')](function(){const _0x57142d=_0x301dcb;return _0x145853[_0x57142d('0xa')][_0x57142d('0x1b')](_0x813460,_0x123da4)[_0x57142d('0x8')](function(){const _0x14cb3f=_0x57142d;logger[_0x14cb3f('0x40')](_0x14cb3f('0x20'),_0x813460,_0x123da4);})[_0x57142d('0x1')](function(_0x2b8a81){const _0x515762=_0x57142d;logger[_0x515762('0x40')](JSON[_0x515762('0x19')](_0x2b8a81));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x41')]=function(_0x3ad0d8){const _0x17b378=_0x19f9ec,_0x3c138d=this;this[_0x17b378('0x3')][_0x17b378('0x3e')](function(){const _0x5ec124=_0x17b378;return _0x3c138d['queryInterface'][_0x5ec124('0x1f')]['query'](_0x3ad0d8)[_0x5ec124('0x8')](function(){const _0x3f9368=_0x5ec124;logger[_0x3f9368('0x40')](_0x3f9368('0x1e'),_0x3ad0d8);})[_0x5ec124('0x1')](function(_0x305d41){const _0x4f4b00=_0x5ec124;logger['info'](JSON[_0x4f4b00('0x19')](_0x305d41));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x15')]=function(_0x25feb9,_0x3e9da6){const _0x13b7df=_0x19f9ec,_0x296155=this;this[_0x13b7df('0x3')][_0x13b7df('0x3e')](function(){const _0x4375f8=_0x13b7df;return _0x296155[_0x4375f8('0xa')][_0x4375f8('0x15')](_0x25feb9,_0x3e9da6)[_0x4375f8('0x8')](function(){const _0x1417b8=_0x4375f8;logger[_0x1417b8('0x40')](_0x1417b8('0x30'),_0x3e9da6,_0x25feb9);})[_0x4375f8('0x1')](function(_0x2fc29b){logger['info'](util['inspect'](_0x2fc29b,{'showHidden':![],'depth':null}));});});},Migration[_0x19f9ec('0x32')][_0x19f9ec('0x1c')]=function(_0x436ac5,_0x2a0ad8,_0x4a13ce){const _0x2f6f60=_0x19f9ec,_0x5b826e=this;this[_0x2f6f60('0x3')][_0x2f6f60('0x3e')](function(){const _0x595cf4=_0x2f6f60;return _0x5b826e[_0x595cf4('0xa')]['renameColumn'](_0x436ac5,_0x2a0ad8,_0x4a13ce)[_0x595cf4('0x8')](function(){const _0x3081e0=_0x595cf4;logger[_0x3081e0('0x40')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x2a0ad8,_0x4a13ce,_0x436ac5);})[_0x595cf4('0x1')](function(_0x11b1f9){const _0x24db15=_0x595cf4;logger[_0x24db15('0x40')](util[_0x24db15('0x4d')](_0x11b1f9,{'showHidden':![],'depth':null}));});});},Migration[_0x19f9ec('0x32')]['final']=function(_0x51e3c8){const _0x3dce71=_0x19f9ec;this[_0x3dce71('0x3')][_0x3dce71('0x3e')](function(){return _0x51e3c8();});},module[_0x19f9ec('0x2b')]={'up':function(_0x59035d,_0x1fa6d3){return new Promise(function(_0x432b18){const _0xbafccd=a1013_0x464c,_0x523d81=new Migration(_0x59035d);_0x523d81[_0xbafccd('0x41')](_0xbafccd('0x4')+'\x20`id`\x20int(11)\x20NOT\x20NULL\x20AUTO_INCREMENT,'+_0xbafccd('0x47')+_0xbafccd('0x4b')+'\x20`remote`\x20varchar(255)\x20NOT\x20NULL,'+'\x20`token`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0xbafccd('0x49')+_0xbafccd('0x58')+_0xbafccd('0x24')+'\x20`authToken`\x20varchar(255)\x20DEFAULT\x20NULL,'+_0xbafccd('0x44')+_0xbafccd('0x2a')+_0xbafccd('0x35')+_0xbafccd('0x59')+_0xbafccd('0x51')+'\x20`queueTransferTimeout`\x20int(11)\x20DEFAULT\x20\x27300\x27,'+_0xbafccd('0x21')+_0xbafccd('0x33')+_0xbafccd('0x10')+'\x20`mandatoryDisposition`\x20tinyint(1)\x20DEFAULT\x20\x270\x27,'+_0xbafccd('0x39')+'\x20`createdAt`\x20datetime\x20NOT\x20NULL,'+_0xbafccd('0x25')+_0xbafccd('0x3a')+'\x20PRIMARY\x20KEY\x20(`id`),'+_0xbafccd('0x2c')+_0xbafccd('0x3d')+_0xbafccd('0x2')+_0xbafccd('0x0')+'\x20CONSTRAINT\x20`whatsapp_accounts_ibfk_2`\x20FOREIGN\x20KEY\x20(`ListId`)\x20REFERENCES\x20`cm_lists`\x20(`id`)\x20ON\x20DELETE\x20SET\x20NULL\x20ON\x20UPDATE\x20CASCADE'+')\x20ENGINE=InnoDB\x20DEFAULT\x20CHARSET=utf8;'),_0x523d81[_0xbafccd('0x46')]('tools_dispositions',_0xbafccd('0x29'),{'type':_0x1fa6d3['INTEGER']}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x11'),'WhatsappAccountId',{'type':_0x1fa6d3[_0xbafccd('0x2d')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x6'),_0xbafccd('0xf'),{'type':_0x1fa6d3[_0xbafccd('0x5b')],'defaultValue':![]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x6'),_0xbafccd('0x54'),{'type':_0x1fa6d3[_0xbafccd('0x5b')],'defaultValue':![]}),_0x523d81['query'](_0xbafccd('0x12')),_0x523d81['query'](_0xbafccd('0x4a')),_0x523d81[_0xbafccd('0x41')](_0xbafccd('0x2e')),_0x523d81[_0xbafccd('0x41')](_0xbafccd('0x36')),_0x523d81['addColumn'](_0xbafccd('0x3f'),_0xbafccd('0x1a'),{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81['addColumn'](_0xbafccd('0x5a'),'vidaooEscalation',{'type':_0x1fa6d3[_0xbafccd('0x5b')],'defaultValue':![]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x5a'),'vidaooApiKey',{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),_0xbafccd('0x16'),{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81['addColumn'](_0xbafccd('0x2f'),_0xbafccd('0x26'),{'type':_0x1fa6d3['STRING']}),_0x523d81[_0xbafccd('0x46')]('voice_recordings',_0xbafccd('0x4e'),{'type':_0x1fa6d3[_0xbafccd('0x27')],'defaultValue':_0xbafccd('0x1d')}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),'fileUri',{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81[_0xbafccd('0x46')]('voice_recordings',_0xbafccd('0xd'),{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81['addColumn']('voice_recordings',_0xbafccd('0x9'),{'type':_0x1fa6d3[_0xbafccd('0x17')]}),_0x523d81[_0xbafccd('0x46')]('voice_recordings',_0xbafccd('0xc'),{'type':_0x1fa6d3['STRING']}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),'sPositive',{'type':_0x1fa6d3[_0xbafccd('0x56')]}),_0x523d81[_0xbafccd('0x46')]('voice_recordings',_0xbafccd('0x28'),{'type':_0x1fa6d3['FLOAT']}),_0x523d81['addColumn']('voice_recordings',_0xbafccd('0x18'),{'type':_0x1fa6d3[_0xbafccd('0x56')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),_0xbafccd('0xb'),{'type':_0x1fa6d3[_0xbafccd('0x56')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x2f'),_0xbafccd('0x34'),{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81['addColumn'](_0xbafccd('0x50'),_0xbafccd('0x43'),{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81[_0xbafccd('0x46')]('settings',_0xbafccd('0x48'),{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x45'),{'type':_0x1fa6d3['INTEGER']}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),'transcribeRegion',{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),'sentiment',{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x53'),{'type':_0x1fa6d3[_0xbafccd('0x5b')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x4c'),{'type':_0x1fa6d3[_0xbafccd('0x2d')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x4f'),{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0xe'),{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x46')](_0xbafccd('0x50'),_0xbafccd('0x57'),{'type':_0x1fa6d3[_0xbafccd('0x27')]}),_0x523d81[_0xbafccd('0x55')](_0x432b18);});},'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 6ede388..1c2f0b2 100644 --- a/server/migrations/2.5.1.js +++ b/server/migrations/2.5.1.js @@ -1 +1 @@ -const a1014_0x3de7=['query','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','removeIndex','enqueue','indexName','dropTable','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','queryInterface','inspect','removeIndex\x20%s\x20%s','join','indicesType','addColumn','renameColumn','prototype','table\x20dropped\x20%s','sequence','info','addIndex','removeColumn','stringify','migration','final','catch','util','../config/logger','addIndex\x20%s\x20%s\x20%s\x20[%s]','query\x20%s','exports','then'];(function(_0x346f07,_0x3de728){const _0x473043=function(_0x527d24){while(--_0x527d24){_0x346f07['push'](_0x346f07['shift']());}};_0x473043(++_0x3de728);}(a1014_0x3de7,0x1ca));const a1014_0x4730=function(_0x346f07,_0x3de728){_0x346f07=_0x346f07-0x0;let _0x473043=a1014_0x3de7[_0x346f07];return _0x473043;};const _0x41222f=a1014_0x4730;'use strict';const util=require(_0x41222f('0x1f')),logger=require(_0x41222f('0x20'))(_0x41222f('0x1c')),Sequence=function(){};Sequence[_0x41222f('0x15')][_0x41222f('0x8')]=function(_0x527d24){const _0x1dbf03=_0x41222f;this['tail']=this[_0x1dbf03('0xb')]?this[_0x1dbf03('0xb')]['finally'](_0x527d24):_0x527d24();};const Migration=function(_0x3dc82b){const _0x4540a5=_0x41222f;this[_0x4540a5('0xe')]=_0x3dc82b,this[_0x4540a5('0x17')]=new Sequence();};Migration[_0x41222f('0x15')]['changeColumn']=function(_0x4bfcea,_0x5a5938,_0xe32a44){const _0x59e734=_0x41222f,_0x137d23=this;this[_0x59e734('0x17')][_0x59e734('0x8')](function(){const _0x4bd6d8=_0x59e734;return _0x137d23[_0x4bd6d8('0xe')][_0x4bd6d8('0x6')](_0x4bfcea,_0x5a5938,_0xe32a44)[_0x4bd6d8('0x3')](function(){const _0x2cffe2=_0x4bd6d8;logger[_0x2cffe2('0x18')](_0x2cffe2('0x5'),_0x5a5938,_0x4bfcea);})[_0x4bd6d8('0x1e')](function(_0x312b32){const _0x1eef7d=_0x4bd6d8;logger[_0x1eef7d('0x18')](JSON[_0x1eef7d('0x1b')](_0x312b32));});});},Migration['prototype'][_0x41222f('0x13')]=function(_0x416a5e,_0x3e9170,_0x311cac){const _0x106e7c=_0x41222f,_0x198e14=this;this[_0x106e7c('0x17')][_0x106e7c('0x8')](function(){const _0xac0567=_0x106e7c;return _0x198e14['queryInterface'][_0xac0567('0x13')](_0x416a5e,_0x3e9170,_0x311cac)[_0xac0567('0x3')](function(){const _0x2a0dc4=_0xac0567;logger[_0x2a0dc4('0x18')]('Added\x20column\x20%s\x20to\x20%s',_0x3e9170,_0x416a5e);})[_0xac0567('0x1e')](function(_0x1a1acd){const _0x19d8a1=_0xac0567;logger[_0x19d8a1('0x18')](JSON[_0x19d8a1('0x1b')](_0x1a1acd));});});},Migration[_0x41222f('0x15')]['dropTable']=function(_0x23e991){const _0x5d2382=_0x41222f,_0x205a32=this;this[_0x5d2382('0x17')][_0x5d2382('0x8')](function(){const _0x53018d=_0x5d2382;return _0x205a32['queryInterface'][_0x53018d('0xa')](_0x23e991,{'force':!![]})[_0x53018d('0x3')](function(){const _0x26ce60=_0x53018d;logger[_0x26ce60('0x18')](_0x26ce60('0x16'),_0x23e991);})[_0x53018d('0x1e')](function(_0xbf57b5){const _0x1e74fe=_0x53018d;logger[_0x1e74fe('0x18')](JSON[_0x1e74fe('0x1b')](_0xbf57b5));});});},Migration['prototype'][_0x41222f('0x19')]=function(_0x133efd,_0x2a7a8c,_0x2d4be2){const _0x2c4f61=_0x41222f,_0x2ba1cf=this;this[_0x2c4f61('0x17')][_0x2c4f61('0x8')](function(){const _0x29e9ca=_0x2c4f61;return _0x2ba1cf[_0x29e9ca('0xe')][_0x29e9ca('0x19')](_0x133efd,_0x2a7a8c,{'indexName':_0x2d4be2[_0x29e9ca('0x9')],'indicesType':_0x2d4be2[_0x29e9ca('0x12')]})[_0x29e9ca('0x3')](function(){const _0x2d8c58=_0x29e9ca;logger[_0x2d8c58('0x18')](_0x2d8c58('0x0'),_0x133efd,_0x2a7a8c[_0x2d8c58('0x11')](','),_0x2d4be2['indexName'],_0x2d4be2[_0x2d8c58('0x12')]);})[_0x29e9ca('0x1e')](function(_0x16fa93){const _0x4f0948=_0x29e9ca;logger[_0x4f0948('0x18')](JSON[_0x4f0948('0x1b')](_0x16fa93));});});},Migration[_0x41222f('0x15')][_0x41222f('0x7')]=function(_0x40ba25,_0x96fe32){const _0x59b8e1=_0x41222f,_0x25ffdb=this;this[_0x59b8e1('0x17')][_0x59b8e1('0x8')](function(){const _0x495f98=_0x59b8e1;return _0x25ffdb[_0x495f98('0xe')][_0x495f98('0x7')](_0x40ba25,_0x96fe32)[_0x495f98('0x3')](function(){const _0x4d9e86=_0x495f98;logger[_0x4d9e86('0x18')](_0x4d9e86('0x10'),_0x40ba25,_0x96fe32);})[_0x495f98('0x1e')](function(_0x15978a){const _0x1ed409=_0x495f98;logger['info'](JSON[_0x1ed409('0x1b')](_0x15978a));});});},Migration[_0x41222f('0x15')][_0x41222f('0x4')]=function(_0x23f84b){const _0x11c4e0=_0x41222f,_0x145885=this;this[_0x11c4e0('0x17')][_0x11c4e0('0x8')](function(){const _0x515d2b=_0x11c4e0;return _0x145885['queryInterface'][_0x515d2b('0xd')][_0x515d2b('0x4')](_0x23f84b)[_0x515d2b('0x3')](function(){const _0x561c5b=_0x515d2b;logger[_0x561c5b('0x18')](_0x561c5b('0x1'),_0x23f84b);})[_0x515d2b('0x1e')](function(_0x172438){const _0x16b179=_0x515d2b;logger[_0x16b179('0x18')](JSON['stringify'](_0x172438));});});},Migration[_0x41222f('0x15')][_0x41222f('0x1a')]=function(_0x1ff946,_0x4a9c63){const _0x2c1ed9=_0x41222f,_0x33133b=this;this[_0x2c1ed9('0x17')][_0x2c1ed9('0x8')](function(){const _0x5e1c63=_0x2c1ed9;return _0x33133b[_0x5e1c63('0xe')][_0x5e1c63('0x1a')](_0x1ff946,_0x4a9c63)['then'](function(){const _0x13d9ab=_0x5e1c63;logger[_0x13d9ab('0x18')]('Removed\x20column\x20%s\x20from\x20%s',_0x4a9c63,_0x1ff946);})[_0x5e1c63('0x1e')](function(_0x197c56){const _0x55d7b5=_0x5e1c63;logger[_0x55d7b5('0x18')](util['inspect'](_0x197c56,{'showHidden':![],'depth':null}));});});},Migration[_0x41222f('0x15')][_0x41222f('0x14')]=function(_0x416913,_0x3f3285,_0x5a0fab){const _0x3ce11b=_0x41222f,_0x361930=this;this[_0x3ce11b('0x17')][_0x3ce11b('0x8')](function(){const _0x24dae9=_0x3ce11b;return _0x361930['queryInterface']['renameColumn'](_0x416913,_0x3f3285,_0x5a0fab)[_0x24dae9('0x3')](function(){const _0x3637a3=_0x24dae9;logger[_0x3637a3('0x18')](_0x3637a3('0xc'),_0x3f3285,_0x5a0fab,_0x416913);})['catch'](function(_0x48282f){const _0x5ccb6f=_0x24dae9;logger[_0x5ccb6f('0x18')](util[_0x5ccb6f('0xf')](_0x48282f,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x41222f('0x1d')]=function(_0x4c12db){const _0x3e84af=_0x41222f;this[_0x3e84af('0x17')][_0x3e84af('0x8')](function(){return _0x4c12db();});},module[_0x41222f('0x2')]={'up':function(_0xb010d2){return new Promise(function(_0x23c66f){const _0x5433d6=a1014_0x4730,_0x156199=new Migration(_0xb010d2);_0x156199[_0x5433d6('0x1d')](_0x23c66f);});},'down':function(){}}; \ No newline at end of file +const a1014_0x3ead=['Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','addColumn','join','removeColumn','queryInterface','enqueue','exports','dropTable','sequelize','final','Removed\x20column\x20%s\x20from\x20%s','stringify','inspect','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','query\x20%s','prototype','info','renameColumn','indexName','util','removeIndex','table\x20dropped\x20%s','removeIndex\x20%s\x20%s','tail','then','indicesType','addIndex\x20%s\x20%s\x20%s\x20[%s]','finally','catch'];(function(_0x2f7f4f,_0x3ead60){const _0x2c6e32=function(_0x7c19d9){while(--_0x7c19d9){_0x2f7f4f['push'](_0x2f7f4f['shift']());}};_0x2c6e32(++_0x3ead60);}(a1014_0x3ead,0x1ed));const a1014_0x2c6e=function(_0x2f7f4f,_0x3ead60){_0x2f7f4f=_0x2f7f4f-0x0;let _0x2c6e32=a1014_0x3ead[_0x2f7f4f];return _0x2c6e32;};const _0x505498=a1014_0x2c6e;'use strict';const util=require(_0x505498('0x7')),logger=require('../config/logger')('migration'),Sequence=function(){};Sequence['prototype'][_0x505498('0x16')]=function(_0x7c19d9){const _0x435966=_0x505498;this['tail']=this[_0x435966('0xb')]?this[_0x435966('0xb')][_0x435966('0xf')](_0x7c19d9):_0x7c19d9();};const Migration=function(_0x2c6991){this['queryInterface']=_0x2c6991,this['sequence']=new Sequence();};Migration[_0x505498('0x3')]['changeColumn']=function(_0x3371cd,_0x355f07,_0x3744a1){const _0x5bf9b2=this;this['sequence']['enqueue'](function(){const _0x4e0f23=a1014_0x2c6e;return _0x5bf9b2[_0x4e0f23('0x15')]['changeColumn'](_0x3371cd,_0x355f07,_0x3744a1)[_0x4e0f23('0xc')](function(){const _0x102875=_0x4e0f23;logger[_0x102875('0x4')](_0x102875('0x1'),_0x355f07,_0x3371cd);})[_0x4e0f23('0x10')](function(_0x3df3c8){const _0x1c9a61=_0x4e0f23;logger[_0x1c9a61('0x4')](JSON[_0x1c9a61('0x1c')](_0x3df3c8));});});},Migration[_0x505498('0x3')][_0x505498('0x12')]=function(_0x72ed17,_0xfc73be,_0x4c28b1){const _0x428fc7=_0x505498,_0x4c0112=this;this['sequence'][_0x428fc7('0x16')](function(){const _0x1a73a2=_0x428fc7;return _0x4c0112[_0x1a73a2('0x15')][_0x1a73a2('0x12')](_0x72ed17,_0xfc73be,_0x4c28b1)[_0x1a73a2('0xc')](function(){const _0x20c63e=_0x1a73a2;logger[_0x20c63e('0x4')]('Added\x20column\x20%s\x20to\x20%s',_0xfc73be,_0x72ed17);})[_0x1a73a2('0x10')](function(_0xd6f8a){const _0x1d6191=_0x1a73a2;logger['info'](JSON[_0x1d6191('0x1c')](_0xd6f8a));});});},Migration[_0x505498('0x3')][_0x505498('0x18')]=function(_0x2fa47e){const _0x27b468=_0x505498,_0x1e0622=this;this['sequence'][_0x27b468('0x16')](function(){const _0x3611c5=_0x27b468;return _0x1e0622[_0x3611c5('0x15')][_0x3611c5('0x18')](_0x2fa47e,{'force':!![]})[_0x3611c5('0xc')](function(){const _0x29252b=_0x3611c5;logger[_0x29252b('0x4')](_0x29252b('0x9'),_0x2fa47e);})['catch'](function(_0x14787e){const _0x3fbd8b=_0x3611c5;logger[_0x3fbd8b('0x4')](JSON[_0x3fbd8b('0x1c')](_0x14787e));});});},Migration['prototype']['addIndex']=function(_0x4e3fac,_0x503451,_0x28c780){const _0x3daf40=_0x505498,_0x5d84cf=this;this[_0x3daf40('0x0')][_0x3daf40('0x16')](function(){const _0x5d89a8=_0x3daf40;return _0x5d84cf['queryInterface']['addIndex'](_0x4e3fac,_0x503451,{'indexName':_0x28c780[_0x5d89a8('0x6')],'indicesType':_0x28c780['indicesType']})['then'](function(){const _0x522330=_0x5d89a8;logger[_0x522330('0x4')](_0x522330('0xe'),_0x4e3fac,_0x503451[_0x522330('0x13')](','),_0x28c780[_0x522330('0x6')],_0x28c780[_0x522330('0xd')]);})[_0x5d89a8('0x10')](function(_0x454be1){logger['info'](JSON['stringify'](_0x454be1));});});},Migration[_0x505498('0x3')][_0x505498('0x8')]=function(_0xc40b14,_0x5b72ce){const _0xdb5de5=_0x505498,_0x260dcd=this;this[_0xdb5de5('0x0')][_0xdb5de5('0x16')](function(){const _0x52d404=_0xdb5de5;return _0x260dcd[_0x52d404('0x15')][_0x52d404('0x8')](_0xc40b14,_0x5b72ce)['then'](function(){const _0x177740=_0x52d404;logger[_0x177740('0x4')](_0x177740('0xa'),_0xc40b14,_0x5b72ce);})['catch'](function(_0x4d1fd4){const _0x446e6f=_0x52d404;logger[_0x446e6f('0x4')](JSON[_0x446e6f('0x1c')](_0x4d1fd4));});});},Migration[_0x505498('0x3')]['query']=function(_0x33c4f7){const _0xb54ed5=_0x505498,_0x570fe2=this;this[_0xb54ed5('0x0')]['enqueue'](function(){const _0x4d63dd=_0xb54ed5;return _0x570fe2['queryInterface'][_0x4d63dd('0x19')]['query'](_0x33c4f7)[_0x4d63dd('0xc')](function(){const _0x58a76f=_0x4d63dd;logger[_0x58a76f('0x4')](_0x58a76f('0x2'),_0x33c4f7);})[_0x4d63dd('0x10')](function(_0x5ab8f3){const _0x31ab74=_0x4d63dd;logger[_0x31ab74('0x4')](JSON['stringify'](_0x5ab8f3));});});},Migration[_0x505498('0x3')][_0x505498('0x14')]=function(_0x287d5e,_0x48fdf6){const _0x3ae72f=_0x505498,_0x15c0ad=this;this[_0x3ae72f('0x0')][_0x3ae72f('0x16')](function(){const _0x3ca29f=_0x3ae72f;return _0x15c0ad[_0x3ca29f('0x15')][_0x3ca29f('0x14')](_0x287d5e,_0x48fdf6)[_0x3ca29f('0xc')](function(){const _0x36c60f=_0x3ca29f;logger['info'](_0x36c60f('0x1b'),_0x48fdf6,_0x287d5e);})[_0x3ca29f('0x10')](function(_0x1e96fc){const _0x5bf8fc=_0x3ca29f;logger[_0x5bf8fc('0x4')](util[_0x5bf8fc('0x1d')](_0x1e96fc,{'showHidden':![],'depth':null}));});});},Migration[_0x505498('0x3')][_0x505498('0x5')]=function(_0x319ff3,_0x10e377,_0x4a6893){const _0x984469=_0x505498,_0x1762e2=this;this[_0x984469('0x0')][_0x984469('0x16')](function(){const _0x2e7736=_0x984469;return _0x1762e2[_0x2e7736('0x15')][_0x2e7736('0x5')](_0x319ff3,_0x10e377,_0x4a6893)[_0x2e7736('0xc')](function(){const _0x524b7f=_0x2e7736;logger['info'](_0x524b7f('0x11'),_0x10e377,_0x4a6893,_0x319ff3);})[_0x2e7736('0x10')](function(_0x1ec5ce){const _0x214af6=_0x2e7736;logger[_0x214af6('0x4')](util[_0x214af6('0x1d')](_0x1ec5ce,{'showHidden':![],'depth':null}));});});},Migration[_0x505498('0x3')][_0x505498('0x1a')]=function(_0x5d0d1c){const _0x4b8746=_0x505498;this['sequence'][_0x4b8746('0x16')](function(){return _0x5d0d1c();});},module[_0x505498('0x17')]={'up':function(_0x41fcb9){return new Promise(function(_0x137125){const _0x2629cb=a1014_0x2c6e,_0x3ab563=new Migration(_0x41fcb9);_0x3ab563[_0x2629cb('0x1a')](_0x137125);});},'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 4c7eb5e..50cd2b5 100644 --- a/server/migrations/2.5.2.js +++ b/server/migrations/2.5.2.js @@ -1 +1 @@ -const a1015_0x44c1=['sequelize','exports','dialNoSuchNumberMaxRetry','dialDropMaxRetry','prototype','voice_queues','then','dropTable','query\x20%s','cm_hopper_history','countabandonedretry','util','renameColumn','migration','indicesType','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7','query','indexName','countmachineretry','cm_hopper','ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;','INTEGER','sequence','../config/logger','dialAgentRejectMaxRetry','queryInterface','dialAbandonedMaxRetry','campaigns','enqueue','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','info','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;','addColumn','inspect','dialMachineMaxRetry','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','dialNoSuchNumberRetryFrequency','Changed\x20column\x20%s\x20in\x20table\x20%s','catch','dialAbandonedRetryFrequency','countnosuchnumberretry','stringify','countagentrejectretry','Removed\x20column\x20%s\x20from\x20%s','dialDropRetryFrequency','tail','final','cm_hopper_final','Added\x20column\x20%s\x20to\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','changeColumn','finally','removeIndex','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;','dialAgentRejectRetryFrequency'];(function(_0x8538b8,_0x44c1a5){const _0x87fd73=function(_0x24a235){while(--_0x24a235){_0x8538b8['push'](_0x8538b8['shift']());}};_0x87fd73(++_0x44c1a5);}(a1015_0x44c1,0x1b4));const a1015_0x87fd=function(_0x8538b8,_0x44c1a5){_0x8538b8=_0x8538b8-0x0;let _0x87fd73=a1015_0x44c1[_0x8538b8];return _0x87fd73;};const _0x152a8f=a1015_0x87fd;'use strict';const util=require(_0x152a8f('0x17')),logger=require(_0x152a8f('0x23'))(_0x152a8f('0x19')),Sequence=function(){};Sequence[_0x152a8f('0x10')]['enqueue']=function(_0x24a235){const _0x2ec5fe=_0x152a8f;this['tail']=this[_0x2ec5fe('0x2')]?this[_0x2ec5fe('0x2')][_0x2ec5fe('0x8')](_0x24a235):_0x24a235();};const Migration=function(_0x515a58){const _0x21124b=_0x152a8f;this[_0x21124b('0x25')]=_0x515a58,this[_0x21124b('0x22')]=new Sequence();};Migration[_0x152a8f('0x10')][_0x152a8f('0x7')]=function(_0x181e33,_0xb98ac0,_0x20a4f4){const _0xfa8a28=_0x152a8f,_0x5f5481=this;this[_0xfa8a28('0x22')]['enqueue'](function(){const _0x77d43b=_0xfa8a28;return _0x5f5481[_0x77d43b('0x25')][_0x77d43b('0x7')](_0x181e33,_0xb98ac0,_0x20a4f4)[_0x77d43b('0x12')](function(){const _0xbabf1a=_0x77d43b;logger[_0xbabf1a('0x2a')](_0xbabf1a('0x32'),_0xb98ac0,_0x181e33);})[_0x77d43b('0x33')](function(_0x3c8e1c){const _0x509541=_0x77d43b;logger[_0x509541('0x2a')](JSON['stringify'](_0x3c8e1c));});});},Migration['prototype'][_0x152a8f('0x2c')]=function(_0x125b17,_0x42e309,_0x4eee73){const _0x41af3a=_0x152a8f,_0x53f1d1=this;this[_0x41af3a('0x22')][_0x41af3a('0x28')](function(){const _0x20c09a=_0x41af3a;return _0x53f1d1[_0x20c09a('0x25')][_0x20c09a('0x2c')](_0x125b17,_0x42e309,_0x4eee73)[_0x20c09a('0x12')](function(){const _0x55f097=_0x20c09a;logger[_0x55f097('0x2a')](_0x55f097('0x5'),_0x42e309,_0x125b17);})[_0x20c09a('0x33')](function(_0x2082e3){const _0x318028=_0x20c09a;logger[_0x318028('0x2a')](JSON[_0x318028('0x36')](_0x2082e3));});});},Migration[_0x152a8f('0x10')][_0x152a8f('0x13')]=function(_0x31d4e6){const _0x1f211e=_0x152a8f,_0x5c61ff=this;this[_0x1f211e('0x22')][_0x1f211e('0x28')](function(){const _0xd6a099=_0x1f211e;return _0x5c61ff['queryInterface'][_0xd6a099('0x13')](_0x31d4e6,{'force':!![]})['then'](function(){logger['info']('table\x20dropped\x20%s',_0x31d4e6);})['catch'](function(_0x3cce94){const _0x1f7492=_0xd6a099;logger['info'](JSON[_0x1f7492('0x36')](_0x3cce94));});});},Migration[_0x152a8f('0x10')]['addIndex']=function(_0x585dd1,_0x1d0b4b,_0x49dc99){const _0x1cc0d7=_0x152a8f,_0x3177f1=this;this[_0x1cc0d7('0x22')][_0x1cc0d7('0x28')](function(){const _0x30605d=_0x1cc0d7;return _0x3177f1[_0x30605d('0x25')]['addIndex'](_0x585dd1,_0x1d0b4b,{'indexName':_0x49dc99[_0x30605d('0x1d')],'indicesType':_0x49dc99[_0x30605d('0x1a')]})[_0x30605d('0x12')](function(){const _0xf4f8ec=_0x30605d;logger[_0xf4f8ec('0x2a')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x585dd1,_0x1d0b4b['join'](','),_0x49dc99[_0xf4f8ec('0x1d')],_0x49dc99['indicesType']);})[_0x30605d('0x33')](function(_0x1b3fe2){const _0x385503=_0x30605d;logger['info'](JSON[_0x385503('0x36')](_0x1b3fe2));});});},Migration[_0x152a8f('0x10')][_0x152a8f('0x9')]=function(_0x1a380b,_0x5aad3a){const _0x16e10e=_0x152a8f,_0x35db81=this;this[_0x16e10e('0x22')]['enqueue'](function(){const _0x39dc19=_0x16e10e;return _0x35db81[_0x39dc19('0x25')][_0x39dc19('0x9')](_0x1a380b,_0x5aad3a)[_0x39dc19('0x12')](function(){const _0xac3523=_0x39dc19;logger[_0xac3523('0x2a')]('removeIndex\x20%s\x20%s',_0x1a380b,_0x5aad3a);})['catch'](function(_0x502051){const _0x302e8a=_0x39dc19;logger[_0x302e8a('0x2a')](JSON[_0x302e8a('0x36')](_0x502051));});});},Migration[_0x152a8f('0x10')][_0x152a8f('0x1c')]=function(_0x1e9b40){const _0x104811=_0x152a8f,_0x539ad3=this;this[_0x104811('0x22')]['enqueue'](function(){const _0x2387d3=_0x104811;return _0x539ad3[_0x2387d3('0x25')][_0x2387d3('0xc')][_0x2387d3('0x1c')](_0x1e9b40)[_0x2387d3('0x12')](function(){const _0x232772=_0x2387d3;logger[_0x232772('0x2a')](_0x232772('0x14'),_0x1e9b40);})[_0x2387d3('0x33')](function(_0x450c61){const _0x1dddc1=_0x2387d3;logger[_0x1dddc1('0x2a')](JSON[_0x1dddc1('0x36')](_0x450c61));});});},Migration[_0x152a8f('0x10')][_0x152a8f('0x30')]=function(_0x328c6a,_0x3d8c72){const _0x32add0=_0x152a8f,_0x32a132=this;this['sequence'][_0x32add0('0x28')](function(){const _0x426e90=_0x32add0;return _0x32a132[_0x426e90('0x25')][_0x426e90('0x30')](_0x328c6a,_0x3d8c72)[_0x426e90('0x12')](function(){const _0x1361e3=_0x426e90;logger[_0x1361e3('0x2a')](_0x1361e3('0x0'),_0x3d8c72,_0x328c6a);})[_0x426e90('0x33')](function(_0x55bad5){logger['info'](util['inspect'](_0x55bad5,{'showHidden':![],'depth':null}));});});},Migration[_0x152a8f('0x10')][_0x152a8f('0x18')]=function(_0x2f1f6e,_0x1ae868,_0x5a1f3b){const _0x336583=_0x152a8f,_0x13c8f5=this;this[_0x336583('0x22')]['enqueue'](function(){const _0x2f72f4=_0x336583;return _0x13c8f5[_0x2f72f4('0x25')]['renameColumn'](_0x2f1f6e,_0x1ae868,_0x5a1f3b)[_0x2f72f4('0x12')](function(){const _0x18e1fe=_0x2f72f4;logger[_0x18e1fe('0x2a')](_0x18e1fe('0x2f'),_0x1ae868,_0x5a1f3b,_0x2f1f6e);})[_0x2f72f4('0x33')](function(_0x4265cc){const _0x4fd33d=_0x2f72f4;logger[_0x4fd33d('0x2a')](util[_0x4fd33d('0x2d')](_0x4265cc,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x152a8f('0x3')]=function(_0x253186){const _0xe3b4ee=_0x152a8f;this[_0xe3b4ee('0x22')][_0xe3b4ee('0x28')](function(){return _0x253186();});},module[_0x152a8f('0xd')]={'up':function(_0x1e717b,_0x394814){return new Promise(function(_0x2eabcf){const _0x354a35=a1015_0x87fd,_0x489523=new Migration(_0x1e717b);_0x489523[_0x354a35('0x1c')](_0x354a35('0x2b')),_0x489523[_0x354a35('0x1c')](_0x354a35('0x29')),_0x489523[_0x354a35('0x1c')]('ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;'),_0x489523['query'](_0x354a35('0x20')),_0x489523['query'](_0x354a35('0xa')),_0x489523[_0x354a35('0x1c')]('ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7'),_0x489523[_0x354a35('0x1c')](_0x354a35('0x1b')),_0x489523[_0x354a35('0x1c')](_0x354a35('0x6')),_0x489523[_0x354a35('0x2c')](_0x354a35('0x11'),_0x354a35('0xe'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x3}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x11'),_0x354a35('0x31'),{'type':_0x394814['INTEGER'],'defaultValue':0x96}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x11'),_0x354a35('0xf'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x3}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x11'),_0x354a35('0x1'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x96}),_0x489523['addColumn']('voice_queues',_0x354a35('0x26'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x3}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x11'),'dialAbandonedRetryFrequency',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x96}),_0x489523[_0x354a35('0x2c')]('voice_queues',_0x354a35('0x2e'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x3}),_0x489523['addColumn']('voice_queues','dialMachineRetryFrequency',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x96}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x11'),_0x354a35('0x24'),{'type':_0x394814['INTEGER'],'defaultValue':0x3}),_0x489523[_0x354a35('0x2c')]('voice_queues','dialAgentRejectRetryFrequency',{'type':_0x394814['INTEGER'],'defaultValue':0x96}),_0x489523[_0x354a35('0x2c')]('campaigns','dialNoSuchNumberMaxRetry',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x3}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x27'),'dialNoSuchNumberRetryFrequency',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x96}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x27'),_0x354a35('0xf'),{'type':_0x394814['INTEGER'],'defaultValue':0x3}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x27'),_0x354a35('0x1'),{'type':_0x394814['INTEGER'],'defaultValue':0x96}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x27'),'dialAbandonedMaxRetry',{'type':_0x394814['INTEGER'],'defaultValue':0x3}),_0x489523['addColumn'](_0x354a35('0x27'),_0x354a35('0x34'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x96}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x27'),_0x354a35('0x2e'),{'type':_0x394814['INTEGER'],'defaultValue':0x3}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x27'),'dialMachineRetryFrequency',{'type':_0x394814['INTEGER'],'defaultValue':0x96}),_0x489523['addColumn'](_0x354a35('0x27'),'dialAgentRejectMaxRetry',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x3}),_0x489523['addColumn']('campaigns',_0x354a35('0xb'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x96}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x1f'),'countnosuchnumberretry',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x1f'),'countdropretry',{'type':_0x394814['INTEGER'],'defaultValue':0x0}),_0x489523['addColumn']('cm_hopper',_0x354a35('0x16'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x1f'),_0x354a35('0x1e'),{'type':_0x394814['INTEGER'],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x1f'),'countagentrejectretry',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x4'),_0x354a35('0x35'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x4'),'countdropretry',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x4'),_0x354a35('0x16'),{'type':_0x394814['INTEGER'],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x4'),_0x354a35('0x1e'),{'type':_0x394814['INTEGER'],'defaultValue':0x0}),_0x489523['addColumn'](_0x354a35('0x4'),_0x354a35('0x37'),{'type':_0x394814['INTEGER'],'defaultValue':0x0}),_0x489523['addColumn'](_0x354a35('0x15'),_0x354a35('0x35'),{'type':_0x394814['INTEGER'],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x15'),'countdropretry',{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')]('cm_hopper_history',_0x354a35('0x16'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523[_0x354a35('0x2c')](_0x354a35('0x15'),_0x354a35('0x1e'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523['addColumn']('cm_hopper_history',_0x354a35('0x37'),{'type':_0x394814[_0x354a35('0x21')],'defaultValue':0x0}),_0x489523['final'](_0x2eabcf);});},'down':function(){}}; \ No newline at end of file +const a1015_0x4e85=['dialDropRetryFrequency','Changed\x20column\x20%s\x20in\x20table\x20%s','campaigns','addIndex','then','cm_hopper_final','Removed\x20column\x20%s\x20from\x20%s','../config/logger','ALTER\x20TABLE\x20report_whatsapp_queue\x20ENCRYPTION=\x27Y\x27;','ALTER\x20TABLE\x20voice_extensions\x20DROP\x20INDEX\x20voice_extensions_ibfk_7','countnosuchnumberretry','addIndex\x20%s\x20%s\x20%s\x20[%s]','stringify','dialAgentRejectRetryFrequency','cm_hopper_history','sequence','ALTER\x20TABLE\x20whatsapp_interactions\x20ENCRYPTION=\x27Y\x27;','removeIndex\x20%s\x20%s','dialAgentRejectMaxRetry','queryInterface','Added\x20column\x20%s\x20to\x20%s','renameColumn','tail','dialNoSuchNumberMaxRetry','dialMachineRetryFrequency','voice_queues','addColumn','ALTER\x20TABLE\x20whatsapp_messages\x20ENCRYPTION=\x27Y\x27;','countagentrejectretry','dialNoSuchNumberRetryFrequency','countabandonedretry','countmachineretry','dropTable','enqueue','ALTER\x20TABLE\x20whatsapp_accounts\x20ENCRYPTION=\x27Y\x27;','catch','indexName','dialDropMaxRetry','finally','removeColumn','countdropretry','indicesType','INTEGER','dialAbandonedRetryFrequency','changeColumn','dialMachineMaxRetry','inspect','sequelize','removeIndex','util','ALTER\x20TABLE\x20cloud_providers\x20ENCRYPTION=\x27Y\x27;','migration','query','prototype','exports','final','cm_hopper','info','dialAbandonedMaxRetry','ALTER\x20TABLE\x20voice_extensions\x20ADD\x20CONSTRAINT\x20voice_extensions_ibfk_7\x20FOREIGN\x20KEY\x20(VoicePrefixId)\x20REFERENCES\x20voice_prefixes(id)\x20ON\x20UPDATE\x20CASCADE\x20ON\x20DELETE\x20CASCADE'];(function(_0x38bd4f,_0x4e8529){const _0x313832=function(_0x389632){while(--_0x389632){_0x38bd4f['push'](_0x38bd4f['shift']());}};_0x313832(++_0x4e8529);}(a1015_0x4e85,0xb0));const a1015_0x3138=function(_0x38bd4f,_0x4e8529){_0x38bd4f=_0x38bd4f-0x0;let _0x313832=a1015_0x4e85[_0x38bd4f];return _0x313832;};const _0x4d6dd4=a1015_0x3138;'use strict';const util=require(_0x4d6dd4('0x35')),logger=require(_0x4d6dd4('0xb'))(_0x4d6dd4('0x37')),Sequence=function(){};Sequence['prototype'][_0x4d6dd4('0x25')]=function(_0x389632){const _0x3fb74f=_0x4d6dd4;this[_0x3fb74f('0x1a')]=this[_0x3fb74f('0x1a')]?this['tail'][_0x3fb74f('0x2a')](_0x389632):_0x389632();};const Migration=function(_0x5187c5){const _0x256be9=_0x4d6dd4;this['queryInterface']=_0x5187c5,this[_0x256be9('0x13')]=new Sequence();};Migration[_0x4d6dd4('0x39')][_0x4d6dd4('0x30')]=function(_0x71021a,_0x2cda6d,_0x38f4c6){const _0x159d0c=_0x4d6dd4,_0x1d4098=this;this[_0x159d0c('0x13')][_0x159d0c('0x25')](function(){const _0x2035e3=_0x159d0c;return _0x1d4098['queryInterface'][_0x2035e3('0x30')](_0x71021a,_0x2cda6d,_0x38f4c6)[_0x2035e3('0x8')](function(){const _0xd5789e=_0x2035e3;logger[_0xd5789e('0x1')](_0xd5789e('0x5'),_0x2cda6d,_0x71021a);})[_0x2035e3('0x27')](function(_0x54f99d){const _0x251080=_0x2035e3;logger[_0x251080('0x1')](JSON[_0x251080('0x10')](_0x54f99d));});});},Migration['prototype'][_0x4d6dd4('0x1e')]=function(_0x158d6a,_0x576b96,_0x41f07b){const _0x3f4fff=_0x4d6dd4,_0x57346a=this;this[_0x3f4fff('0x13')][_0x3f4fff('0x25')](function(){const _0x3e6f54=_0x3f4fff;return _0x57346a[_0x3e6f54('0x17')][_0x3e6f54('0x1e')](_0x158d6a,_0x576b96,_0x41f07b)['then'](function(){const _0x35607b=_0x3e6f54;logger[_0x35607b('0x1')](_0x35607b('0x18'),_0x576b96,_0x158d6a);})[_0x3e6f54('0x27')](function(_0x4991e2){const _0xa26c7d=_0x3e6f54;logger[_0xa26c7d('0x1')](JSON[_0xa26c7d('0x10')](_0x4991e2));});});},Migration[_0x4d6dd4('0x39')][_0x4d6dd4('0x24')]=function(_0x59b284){const _0x760e2d=this;this['sequence']['enqueue'](function(){const _0x4d6177=a1015_0x3138;return _0x760e2d['queryInterface'][_0x4d6177('0x24')](_0x59b284,{'force':!![]})[_0x4d6177('0x8')](function(){const _0x332955=_0x4d6177;logger[_0x332955('0x1')]('table\x20dropped\x20%s',_0x59b284);})['catch'](function(_0x401a62){const _0xbdf96b=_0x4d6177;logger[_0xbdf96b('0x1')](JSON[_0xbdf96b('0x10')](_0x401a62));});});},Migration['prototype'][_0x4d6dd4('0x7')]=function(_0xfe76b0,_0x2e01f9,_0x10d675){const _0x45c4a1=_0x4d6dd4,_0x4f6dfa=this;this[_0x45c4a1('0x13')][_0x45c4a1('0x25')](function(){const _0xc1e1b1=_0x45c4a1;return _0x4f6dfa[_0xc1e1b1('0x17')][_0xc1e1b1('0x7')](_0xfe76b0,_0x2e01f9,{'indexName':_0x10d675[_0xc1e1b1('0x28')],'indicesType':_0x10d675[_0xc1e1b1('0x2d')]})[_0xc1e1b1('0x8')](function(){const _0x1a383=_0xc1e1b1;logger['info'](_0x1a383('0xf'),_0xfe76b0,_0x2e01f9['join'](','),_0x10d675[_0x1a383('0x28')],_0x10d675['indicesType']);})[_0xc1e1b1('0x27')](function(_0x9fb8b1){const _0x34520b=_0xc1e1b1;logger[_0x34520b('0x1')](JSON[_0x34520b('0x10')](_0x9fb8b1));});});},Migration[_0x4d6dd4('0x39')][_0x4d6dd4('0x34')]=function(_0x1a957,_0x164ad2){const _0x189d7a=_0x4d6dd4,_0x5a3071=this;this[_0x189d7a('0x13')][_0x189d7a('0x25')](function(){const _0x3443b2=_0x189d7a;return _0x5a3071[_0x3443b2('0x17')][_0x3443b2('0x34')](_0x1a957,_0x164ad2)[_0x3443b2('0x8')](function(){const _0x27b424=_0x3443b2;logger['info'](_0x27b424('0x15'),_0x1a957,_0x164ad2);})[_0x3443b2('0x27')](function(_0xc7ffa3){const _0x12cb55=_0x3443b2;logger[_0x12cb55('0x1')](JSON[_0x12cb55('0x10')](_0xc7ffa3));});});},Migration[_0x4d6dd4('0x39')][_0x4d6dd4('0x38')]=function(_0x3c5251){const _0x4868f9=_0x4d6dd4,_0x23d7d8=this;this[_0x4868f9('0x13')]['enqueue'](function(){const _0x14ed01=_0x4868f9;return _0x23d7d8[_0x14ed01('0x17')][_0x14ed01('0x33')]['query'](_0x3c5251)[_0x14ed01('0x8')](function(){const _0x1ebb5c=_0x14ed01;logger[_0x1ebb5c('0x1')]('query\x20%s',_0x3c5251);})[_0x14ed01('0x27')](function(_0x1b3180){const _0x14b448=_0x14ed01;logger[_0x14b448('0x1')](JSON[_0x14b448('0x10')](_0x1b3180));});});},Migration[_0x4d6dd4('0x39')][_0x4d6dd4('0x2b')]=function(_0x225c86,_0x300c51){const _0x1780c0=_0x4d6dd4,_0x5f85f9=this;this[_0x1780c0('0x13')][_0x1780c0('0x25')](function(){const _0x1de639=_0x1780c0;return _0x5f85f9[_0x1de639('0x17')][_0x1de639('0x2b')](_0x225c86,_0x300c51)[_0x1de639('0x8')](function(){const _0x1af079=_0x1de639;logger['info'](_0x1af079('0xa'),_0x300c51,_0x225c86);})[_0x1de639('0x27')](function(_0x30a117){const _0x1539bd=_0x1de639;logger['info'](util[_0x1539bd('0x32')](_0x30a117,{'showHidden':![],'depth':null}));});});},Migration[_0x4d6dd4('0x39')][_0x4d6dd4('0x19')]=function(_0x3daf6b,_0x538a72,_0x344620){const _0x39ffea=_0x4d6dd4,_0x3c9eef=this;this[_0x39ffea('0x13')][_0x39ffea('0x25')](function(){const _0x5f05fb=_0x39ffea;return _0x3c9eef[_0x5f05fb('0x17')][_0x5f05fb('0x19')](_0x3daf6b,_0x538a72,_0x344620)['then'](function(){const _0x3545f1=_0x5f05fb;logger[_0x3545f1('0x1')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x538a72,_0x344620,_0x3daf6b);})[_0x5f05fb('0x27')](function(_0x4f2863){const _0x1b50fd=_0x5f05fb;logger[_0x1b50fd('0x1')](util['inspect'](_0x4f2863,{'showHidden':![],'depth':null}));});});},Migration[_0x4d6dd4('0x39')][_0x4d6dd4('0x3b')]=function(_0xfcb94c){const _0x234d6b=_0x4d6dd4;this[_0x234d6b('0x13')]['enqueue'](function(){return _0xfcb94c();});},module[_0x4d6dd4('0x3a')]={'up':function(_0x4497ff,_0x2b410a){return new Promise(function(_0xe437fa){const _0x35b0b8=a1015_0x3138,_0x2a047f=new Migration(_0x4497ff);_0x2a047f['query'](_0x35b0b8('0x26')),_0x2a047f['query'](_0x35b0b8('0x14')),_0x2a047f[_0x35b0b8('0x38')](_0x35b0b8('0x1f')),_0x2a047f[_0x35b0b8('0x38')](_0x35b0b8('0xc')),_0x2a047f[_0x35b0b8('0x38')](_0x35b0b8('0x36')),_0x2a047f[_0x35b0b8('0x38')]('ALTER\x20TABLE\x20voice_extensions\x20DROP\x20FOREIGN\x20KEY\x20voice_extensions_ibfk_7'),_0x2a047f[_0x35b0b8('0x38')](_0x35b0b8('0xd')),_0x2a047f[_0x35b0b8('0x38')](_0x35b0b8('0x3')),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x1d'),_0x35b0b8('0x1b'),{'type':_0x2b410a['INTEGER'],'defaultValue':0x3}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x1d'),'dialNoSuchNumberRetryFrequency',{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f[_0x35b0b8('0x1e')]('voice_queues',_0x35b0b8('0x29'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x3}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x1d'),'dialDropRetryFrequency',{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x1d'),_0x35b0b8('0x2'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x3}),_0x2a047f['addColumn'](_0x35b0b8('0x1d'),_0x35b0b8('0x2f'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x1d'),_0x35b0b8('0x31'),{'type':_0x2b410a['INTEGER'],'defaultValue':0x3}),_0x2a047f['addColumn'](_0x35b0b8('0x1d'),_0x35b0b8('0x1c'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f['addColumn']('voice_queues',_0x35b0b8('0x16'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x3}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x1d'),_0x35b0b8('0x11'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x6'),'dialNoSuchNumberMaxRetry',{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x3}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x6'),_0x35b0b8('0x21'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f['addColumn'](_0x35b0b8('0x6'),'dialDropMaxRetry',{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x3}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x6'),_0x35b0b8('0x4'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f['addColumn'](_0x35b0b8('0x6'),_0x35b0b8('0x2'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x3}),_0x2a047f[_0x35b0b8('0x1e')]('campaigns',_0x35b0b8('0x2f'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x6'),_0x35b0b8('0x31'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x3}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x6'),'dialMachineRetryFrequency',{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x6'),'dialAgentRejectMaxRetry',{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x3}),_0x2a047f['addColumn'](_0x35b0b8('0x6'),_0x35b0b8('0x11'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x96}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x0'),_0x35b0b8('0xe'),{'type':_0x2b410a['INTEGER'],'defaultValue':0x0}),_0x2a047f['addColumn'](_0x35b0b8('0x0'),_0x35b0b8('0x2c'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x0'),_0x35b0b8('0x22'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x0'),_0x35b0b8('0x23'),{'type':_0x2b410a['INTEGER'],'defaultValue':0x0}),_0x2a047f['addColumn'](_0x35b0b8('0x0'),'countagentrejectretry',{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')]('cm_hopper_final',_0x35b0b8('0xe'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x9'),'countdropretry',{'type':_0x2b410a['INTEGER'],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x9'),_0x35b0b8('0x22'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f['addColumn']('cm_hopper_final',_0x35b0b8('0x23'),{'type':_0x2b410a['INTEGER'],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x9'),_0x35b0b8('0x20'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x12'),'countnosuchnumberretry',{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f['addColumn'](_0x35b0b8('0x12'),_0x35b0b8('0x2c'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x12'),_0x35b0b8('0x22'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x12'),_0x35b0b8('0x23'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f[_0x35b0b8('0x1e')](_0x35b0b8('0x12'),_0x35b0b8('0x20'),{'type':_0x2b410a[_0x35b0b8('0x2e')],'defaultValue':0x0}),_0x2a047f['final'](_0xe437fa);});},'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 fc98e3f..9a6abb4 100644 --- a/server/migrations/2.5.3.js +++ b/server/migrations/2.5.3.js @@ -1 +1 @@ -const a1016_0x131a=['tail','finally','indexName','exports','chat_websites','#011F6A','sequelize','enqueue','final','../config/logger','catch','color','queryInterface','then','dropTable','addIndex','removeIndex\x20%s\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','query','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','join','renameColumn','changeColumn','util','prototype','table\x20dropped\x20%s','info','addColumn','sequence','inspect','Removed\x20column\x20%s\x20from\x20%s','STRING','removeColumn','indicesType','removeIndex'];(function(_0x5c755a,_0x131ae3){const _0x5b55f3=function(_0x3429be){while(--_0x3429be){_0x5c755a['push'](_0x5c755a['shift']());}};_0x5b55f3(++_0x131ae3);}(a1016_0x131a,0x8d));const a1016_0x5b55=function(_0x5c755a,_0x131ae3){_0x5c755a=_0x5c755a-0x0;let _0x5b55f3=a1016_0x131a[_0x5c755a];return _0x5b55f3;};const _0x575981=a1016_0x5b55;'use strict';const util=require(_0x575981('0x1b')),logger=require(_0x575981('0xc'))('migration'),Sequence=function(){};Sequence[_0x575981('0x1c')]['enqueue']=function(_0x3429be){const _0x29f098=_0x575981;this[_0x29f098('0x3')]=this['tail']?this[_0x29f098('0x3')][_0x29f098('0x4')](_0x3429be):_0x3429be();};const Migration=function(_0x981fb2){const _0x12b335=_0x575981;this[_0x12b335('0xf')]=_0x981fb2,this[_0x12b335('0x20')]=new Sequence();};Migration[_0x575981('0x1c')][_0x575981('0x1a')]=function(_0x467d5f,_0x229bde,_0x419a2f){const _0x3c1049=_0x575981,_0x1590a7=this;this[_0x3c1049('0x20')][_0x3c1049('0xa')](function(){const _0x14133f=_0x3c1049;return _0x1590a7[_0x14133f('0xf')]['changeColumn'](_0x467d5f,_0x229bde,_0x419a2f)[_0x14133f('0x10')](function(){const _0x55d8ec=_0x14133f;logger[_0x55d8ec('0x1e')](_0x55d8ec('0x14'),_0x229bde,_0x467d5f);})['catch'](function(_0x4eb961){logger['info'](JSON['stringify'](_0x4eb961));});});},Migration['prototype'][_0x575981('0x1f')]=function(_0x1cf3cf,_0x56fd5b,_0x303cc7){const _0x44e6af=_0x575981,_0x323d89=this;this[_0x44e6af('0x20')]['enqueue'](function(){const _0x237f97=_0x44e6af;return _0x323d89[_0x237f97('0xf')][_0x237f97('0x1f')](_0x1cf3cf,_0x56fd5b,_0x303cc7)['then'](function(){const _0x59de9e=_0x237f97;logger[_0x59de9e('0x1e')]('Added\x20column\x20%s\x20to\x20%s',_0x56fd5b,_0x1cf3cf);})[_0x237f97('0xd')](function(_0x864c38){const _0x5ae633=_0x237f97;logger[_0x5ae633('0x1e')](JSON[_0x5ae633('0x15')](_0x864c38));});});},Migration[_0x575981('0x1c')][_0x575981('0x11')]=function(_0x23ff72){const _0x538555=_0x575981,_0x462597=this;this[_0x538555('0x20')][_0x538555('0xa')](function(){const _0x470b0e=_0x538555;return _0x462597[_0x470b0e('0xf')]['dropTable'](_0x23ff72,{'force':!![]})[_0x470b0e('0x10')](function(){const _0x512e82=_0x470b0e;logger[_0x512e82('0x1e')](_0x512e82('0x1d'),_0x23ff72);})['catch'](function(_0x45538b){const _0x48da6f=_0x470b0e;logger['info'](JSON[_0x48da6f('0x15')](_0x45538b));});});},Migration[_0x575981('0x1c')][_0x575981('0x12')]=function(_0x494469,_0x5a9f4c,_0x354b2d){const _0x5c6dbb=_0x575981,_0x3e10e9=this;this[_0x5c6dbb('0x20')][_0x5c6dbb('0xa')](function(){const _0x4d3d27=_0x5c6dbb;return _0x3e10e9[_0x4d3d27('0xf')][_0x4d3d27('0x12')](_0x494469,_0x5a9f4c,{'indexName':_0x354b2d[_0x4d3d27('0x5')],'indicesType':_0x354b2d[_0x4d3d27('0x1')]})[_0x4d3d27('0x10')](function(){const _0x326220=_0x4d3d27;logger[_0x326220('0x1e')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x494469,_0x5a9f4c[_0x326220('0x18')](','),_0x354b2d[_0x326220('0x5')],_0x354b2d[_0x326220('0x1')]);})[_0x4d3d27('0xd')](function(_0x37e869){const _0x2e0084=_0x4d3d27;logger[_0x2e0084('0x1e')](JSON[_0x2e0084('0x15')](_0x37e869));});});},Migration['prototype'][_0x575981('0x2')]=function(_0xcf2441,_0x448903){const _0x2525a4=_0x575981,_0x3dc849=this;this[_0x2525a4('0x20')]['enqueue'](function(){const _0x1c9a24=_0x2525a4;return _0x3dc849[_0x1c9a24('0xf')]['removeIndex'](_0xcf2441,_0x448903)['then'](function(){const _0x23d88f=_0x1c9a24;logger[_0x23d88f('0x1e')](_0x23d88f('0x13'),_0xcf2441,_0x448903);})[_0x1c9a24('0xd')](function(_0x16cba2){logger['info'](JSON['stringify'](_0x16cba2));});});},Migration[_0x575981('0x1c')][_0x575981('0x16')]=function(_0x928bca){const _0x2ea993=_0x575981,_0xa097df=this;this[_0x2ea993('0x20')]['enqueue'](function(){const _0x547445=_0x2ea993;return _0xa097df['queryInterface'][_0x547445('0x9')][_0x547445('0x16')](_0x928bca)[_0x547445('0x10')](function(){const _0x236612=_0x547445;logger[_0x236612('0x1e')]('query\x20%s',_0x928bca);})[_0x547445('0xd')](function(_0x47e811){logger['info'](JSON['stringify'](_0x47e811));});});},Migration[_0x575981('0x1c')][_0x575981('0x0')]=function(_0xc25334,_0x2d8ecc){const _0x4d525b=_0x575981,_0x6ad804=this;this['sequence'][_0x4d525b('0xa')](function(){const _0x45d0a2=_0x4d525b;return _0x6ad804['queryInterface'][_0x45d0a2('0x0')](_0xc25334,_0x2d8ecc)[_0x45d0a2('0x10')](function(){const _0xa17f49=_0x45d0a2;logger[_0xa17f49('0x1e')](_0xa17f49('0x22'),_0x2d8ecc,_0xc25334);})['catch'](function(_0x4fd7b9){const _0x1e832d=_0x45d0a2;logger[_0x1e832d('0x1e')](util[_0x1e832d('0x21')](_0x4fd7b9,{'showHidden':![],'depth':null}));});});},Migration[_0x575981('0x1c')][_0x575981('0x19')]=function(_0x20a753,_0x2bb63f,_0x5662d8){const _0xf61e89=_0x575981,_0xc027da=this;this['sequence'][_0xf61e89('0xa')](function(){const _0x57e076=_0xf61e89;return _0xc027da[_0x57e076('0xf')]['renameColumn'](_0x20a753,_0x2bb63f,_0x5662d8)['then'](function(){const _0x32ace3=_0x57e076;logger[_0x32ace3('0x1e')](_0x32ace3('0x17'),_0x2bb63f,_0x5662d8,_0x20a753);})[_0x57e076('0xd')](function(_0x382d0a){const _0x41d336=_0x57e076;logger[_0x41d336('0x1e')](util['inspect'](_0x382d0a,{'showHidden':![],'depth':null}));});});},Migration[_0x575981('0x1c')][_0x575981('0xb')]=function(_0x56460d){const _0x2c99ee=_0x575981;this[_0x2c99ee('0x20')]['enqueue'](function(){return _0x56460d();});},module[_0x575981('0x6')]={'up':function(_0x206e1f,_0x173a1d){return new Promise(function(_0x4f1321){const _0x5d9122=a1016_0x5b55,_0x212615=new Migration(_0x206e1f);_0x212615[_0x5d9122('0x1a')](_0x5d9122('0x7'),_0x5d9122('0xe'),{'type':_0x173a1d['STRING'],'allowNull':![],'defaultValue':_0x5d9122('0x8'),'validate':{'notEmpty':!![]}}),_0x212615[_0x5d9122('0x1a')](_0x5d9122('0x7'),'color_button',{'type':_0x173a1d[_0x5d9122('0x23')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x212615[_0x5d9122('0xb')](_0x4f1321);});},'down':function(){}}; \ No newline at end of file +const a1016_0x56e3=['indicesType','query','join','queryInterface','stringify','info','removeColumn','then','indexName','color','chat_websites','sequence','changeColumn','sequelize','exports','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','renameColumn','Added\x20column\x20%s\x20to\x20%s','../config/logger','tail','addIndex','catch','enqueue','Removed\x20column\x20%s\x20from\x20%s','addColumn','query\x20%s','removeIndex','migration','STRING','util','dropTable','addIndex\x20%s\x20%s\x20%s\x20[%s]','color_button','finally','final','inspect','prototype','Changed\x20column\x20%s\x20in\x20table\x20%s'];(function(_0x4857b9,_0x56e390){const _0x128a75=function(_0x57cbd3){while(--_0x57cbd3){_0x4857b9['push'](_0x4857b9['shift']());}};_0x128a75(++_0x56e390);}(a1016_0x56e3,0x14e));const a1016_0x128a=function(_0x4857b9,_0x56e390){_0x4857b9=_0x4857b9-0x0;let _0x128a75=a1016_0x56e3[_0x4857b9];return _0x128a75;};const _0x517fc4=a1016_0x128a;'use strict';const util=require(_0x517fc4('0x25')),logger=require(_0x517fc4('0x1a'))(_0x517fc4('0x23')),Sequence=function(){};Sequence[_0x517fc4('0x6')]['enqueue']=function(_0x57cbd3){const _0x45a30e=_0x517fc4;this[_0x45a30e('0x1b')]=this['tail']?this[_0x45a30e('0x1b')][_0x45a30e('0x3')](_0x57cbd3):_0x57cbd3();};const Migration=function(_0x1a0708){const _0x2fb97d=_0x517fc4;this['queryInterface']=_0x1a0708,this[_0x2fb97d('0x13')]=new Sequence();};Migration[_0x517fc4('0x6')][_0x517fc4('0x14')]=function(_0x4fb07a,_0x174549,_0x4ea45b){const _0x48dd1e=_0x517fc4,_0x213b53=this;this[_0x48dd1e('0x13')]['enqueue'](function(){const _0x281206=_0x48dd1e;return _0x213b53[_0x281206('0xb')][_0x281206('0x14')](_0x4fb07a,_0x174549,_0x4ea45b)[_0x281206('0xf')](function(){const _0x1e633b=_0x281206;logger[_0x1e633b('0xd')](_0x1e633b('0x7'),_0x174549,_0x4fb07a);})['catch'](function(_0xc290f1){const _0x434e64=_0x281206;logger[_0x434e64('0xd')](JSON[_0x434e64('0xc')](_0xc290f1));});});},Migration['prototype'][_0x517fc4('0x20')]=function(_0x5381be,_0x466a06,_0x28da50){const _0x3b8b62=_0x517fc4,_0x2c364c=this;this[_0x3b8b62('0x13')][_0x3b8b62('0x1e')](function(){const _0x2670da=_0x3b8b62;return _0x2c364c['queryInterface']['addColumn'](_0x5381be,_0x466a06,_0x28da50)[_0x2670da('0xf')](function(){const _0x3c0e9d=_0x2670da;logger[_0x3c0e9d('0xd')](_0x3c0e9d('0x19'),_0x466a06,_0x5381be);})['catch'](function(_0x55901c){const _0x1781e5=_0x2670da;logger[_0x1781e5('0xd')](JSON[_0x1781e5('0xc')](_0x55901c));});});},Migration[_0x517fc4('0x6')]['dropTable']=function(_0x188e11){const _0xe407c2=_0x517fc4,_0x15abb7=this;this[_0xe407c2('0x13')][_0xe407c2('0x1e')](function(){const _0x5f0b02=_0xe407c2;return _0x15abb7['queryInterface'][_0x5f0b02('0x0')](_0x188e11,{'force':!![]})[_0x5f0b02('0xf')](function(){const _0x4bcaa8=_0x5f0b02;logger[_0x4bcaa8('0xd')]('table\x20dropped\x20%s',_0x188e11);})['catch'](function(_0x54fc43){logger['info'](JSON['stringify'](_0x54fc43));});});},Migration[_0x517fc4('0x6')][_0x517fc4('0x1c')]=function(_0x39998d,_0x254695,_0x254dbf){const _0x135476=_0x517fc4,_0x2f907c=this;this[_0x135476('0x13')][_0x135476('0x1e')](function(){const _0x4e38aa=_0x135476;return _0x2f907c['queryInterface'][_0x4e38aa('0x1c')](_0x39998d,_0x254695,{'indexName':_0x254dbf[_0x4e38aa('0x10')],'indicesType':_0x254dbf[_0x4e38aa('0x8')]})['then'](function(){const _0x576a06=_0x4e38aa;logger['info'](_0x576a06('0x1'),_0x39998d,_0x254695[_0x576a06('0xa')](','),_0x254dbf[_0x576a06('0x10')],_0x254dbf[_0x576a06('0x8')]);})['catch'](function(_0x3a19b0){const _0x56e0d9=_0x4e38aa;logger[_0x56e0d9('0xd')](JSON['stringify'](_0x3a19b0));});});},Migration[_0x517fc4('0x6')][_0x517fc4('0x22')]=function(_0x46b4fc,_0x39a3f3){const _0x11f526=_0x517fc4,_0x313110=this;this[_0x11f526('0x13')][_0x11f526('0x1e')](function(){const _0x75633a=_0x11f526;return _0x313110['queryInterface'][_0x75633a('0x22')](_0x46b4fc,_0x39a3f3)['then'](function(){const _0x4060e6=_0x75633a;logger[_0x4060e6('0xd')]('removeIndex\x20%s\x20%s',_0x46b4fc,_0x39a3f3);})[_0x75633a('0x1d')](function(_0x344977){const _0x5a110a=_0x75633a;logger[_0x5a110a('0xd')](JSON[_0x5a110a('0xc')](_0x344977));});});},Migration['prototype'][_0x517fc4('0x9')]=function(_0x344add){const _0x688b2d=_0x517fc4,_0x40b27d=this;this[_0x688b2d('0x13')][_0x688b2d('0x1e')](function(){const _0x20f66b=_0x688b2d;return _0x40b27d[_0x20f66b('0xb')][_0x20f66b('0x15')]['query'](_0x344add)[_0x20f66b('0xf')](function(){const _0x50811f=_0x20f66b;logger[_0x50811f('0xd')](_0x50811f('0x21'),_0x344add);})[_0x20f66b('0x1d')](function(_0x20d109){const _0x1b9f03=_0x20f66b;logger[_0x1b9f03('0xd')](JSON[_0x1b9f03('0xc')](_0x20d109));});});},Migration['prototype'][_0x517fc4('0xe')]=function(_0x4ae226,_0x176d41){const _0x31eed4=_0x517fc4,_0x32cf64=this;this[_0x31eed4('0x13')]['enqueue'](function(){const _0x37c68f=_0x31eed4;return _0x32cf64[_0x37c68f('0xb')][_0x37c68f('0xe')](_0x4ae226,_0x176d41)['then'](function(){const _0x5301cc=_0x37c68f;logger['info'](_0x5301cc('0x1f'),_0x176d41,_0x4ae226);})[_0x37c68f('0x1d')](function(_0x1ee959){const _0x4f4c13=_0x37c68f;logger[_0x4f4c13('0xd')](util[_0x4f4c13('0x5')](_0x1ee959,{'showHidden':![],'depth':null}));});});},Migration['prototype']['renameColumn']=function(_0x22b3b7,_0x948e2b,_0x31e454){const _0x59916b=_0x517fc4,_0x275e5b=this;this[_0x59916b('0x13')]['enqueue'](function(){const _0x46aafb=_0x59916b;return _0x275e5b['queryInterface'][_0x46aafb('0x18')](_0x22b3b7,_0x948e2b,_0x31e454)[_0x46aafb('0xf')](function(){const _0x572adc=_0x46aafb;logger['info'](_0x572adc('0x17'),_0x948e2b,_0x31e454,_0x22b3b7);})['catch'](function(_0x5c1d2d){const _0x45149a=_0x46aafb;logger[_0x45149a('0xd')](util[_0x45149a('0x5')](_0x5c1d2d,{'showHidden':![],'depth':null}));});});},Migration[_0x517fc4('0x6')][_0x517fc4('0x4')]=function(_0x1ed397){const _0x4f3032=_0x517fc4;this[_0x4f3032('0x13')][_0x4f3032('0x1e')](function(){return _0x1ed397();});},module[_0x517fc4('0x16')]={'up':function(_0x235b22,_0x1a2f3e){return new Promise(function(_0x448214){const _0x93cccf=a1016_0x128a,_0x4cb3c4=new Migration(_0x235b22);_0x4cb3c4[_0x93cccf('0x14')](_0x93cccf('0x12'),_0x93cccf('0x11'),{'type':_0x1a2f3e[_0x93cccf('0x24')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x4cb3c4[_0x93cccf('0x14')]('chat_websites',_0x93cccf('0x2'),{'type':_0x1a2f3e[_0x93cccf('0x24')],'allowNull':![],'defaultValue':'#011F6A','validate':{'notEmpty':!![]}}),_0x4cb3c4[_0x93cccf('0x4')](_0x448214);});},'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 d29c839..faaadd3 100644 --- a/server/migrations/2.5.4.js +++ b/server/migrations/2.5.4.js @@ -1 +1 @@ -const a1017_0x11c8=['table\x20dropped\x20%s','Changed\x20column\x20%s\x20in\x20table\x20%s','query','stringify','addIndex','then','enqueue','changeColumn','prototype','catch','exports','removeIndex\x20%s\x20%s','final','Added\x20column\x20%s\x20to\x20%s','queryInterface','info','removeIndex','removeColumn','join','renameColumn','addColumn','indicesType','indexName','tail','Removed\x20column\x20%s\x20from\x20%s','migration','query\x20%s','dropTable','../config/logger','sequence','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','finally'];(function(_0x248794,_0x11c8dc){const _0x464e77=function(_0x4c5a51){while(--_0x4c5a51){_0x248794['push'](_0x248794['shift']());}};_0x464e77(++_0x11c8dc);}(a1017_0x11c8,0x14a));const a1017_0x464e=function(_0x248794,_0x11c8dc){_0x248794=_0x248794-0x0;let _0x464e77=a1017_0x11c8[_0x248794];return _0x464e77;};const _0x36a320=a1017_0x464e;'use strict';const util=require('util'),logger=require(_0x36a320('0x12'))(_0x36a320('0xf')),Sequence=function(){};Sequence[_0x36a320('0x1e')]['enqueue']=function(_0x4c5a51){const _0x601d54=_0x36a320;this[_0x601d54('0xd')]=this[_0x601d54('0xd')]?this['tail'][_0x601d54('0x15')](_0x4c5a51):_0x4c5a51();};const Migration=function(_0x5cfe1e){const _0x2599fc=_0x36a320;this[_0x2599fc('0x4')]=_0x5cfe1e,this[_0x2599fc('0x13')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0x24b001,_0x1f3535,_0x3d1d4c){const _0x628875=_0x36a320,_0x41ddc0=this;this[_0x628875('0x13')][_0x628875('0x1c')](function(){const _0x591581=_0x628875;return _0x41ddc0[_0x591581('0x4')][_0x591581('0x1d')](_0x24b001,_0x1f3535,_0x3d1d4c)[_0x591581('0x1b')](function(){const _0x25aeae=_0x591581;logger['info'](_0x25aeae('0x17'),_0x1f3535,_0x24b001);})['catch'](function(_0x4b8205){const _0x412457=_0x591581;logger[_0x412457('0x5')](JSON[_0x412457('0x19')](_0x4b8205));});});},Migration[_0x36a320('0x1e')][_0x36a320('0xa')]=function(_0x5f309e,_0x55d8f4,_0x88b946){const _0x3d3820=this;this['sequence']['enqueue'](function(){const _0x469d6a=a1017_0x464e;return _0x3d3820['queryInterface'][_0x469d6a('0xa')](_0x5f309e,_0x55d8f4,_0x88b946)[_0x469d6a('0x1b')](function(){const _0x323ae5=_0x469d6a;logger['info'](_0x323ae5('0x3'),_0x55d8f4,_0x5f309e);})[_0x469d6a('0x1f')](function(_0x2b49d9){const _0x241e0d=_0x469d6a;logger[_0x241e0d('0x5')](JSON[_0x241e0d('0x19')](_0x2b49d9));});});},Migration[_0x36a320('0x1e')][_0x36a320('0x11')]=function(_0x1f06d1){const _0x183a45=_0x36a320,_0x2a68c2=this;this['sequence'][_0x183a45('0x1c')](function(){const _0x4adb74=_0x183a45;return _0x2a68c2[_0x4adb74('0x4')][_0x4adb74('0x11')](_0x1f06d1,{'force':!![]})[_0x4adb74('0x1b')](function(){const _0x110181=_0x4adb74;logger[_0x110181('0x5')](_0x110181('0x16'),_0x1f06d1);})[_0x4adb74('0x1f')](function(_0x1e5f28){const _0x1d16aa=_0x4adb74;logger[_0x1d16aa('0x5')](JSON[_0x1d16aa('0x19')](_0x1e5f28));});});},Migration[_0x36a320('0x1e')][_0x36a320('0x1a')]=function(_0x36987e,_0x2f39ed,_0x35d374){const _0x2dc574=_0x36a320,_0x2baad0=this;this[_0x2dc574('0x13')][_0x2dc574('0x1c')](function(){const _0xa9e92d=_0x2dc574;return _0x2baad0[_0xa9e92d('0x4')]['addIndex'](_0x36987e,_0x2f39ed,{'indexName':_0x35d374[_0xa9e92d('0xc')],'indicesType':_0x35d374[_0xa9e92d('0xb')]})[_0xa9e92d('0x1b')](function(){const _0x2abce9=_0xa9e92d;logger[_0x2abce9('0x5')]('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x36987e,_0x2f39ed[_0x2abce9('0x8')](','),_0x35d374[_0x2abce9('0xc')],_0x35d374['indicesType']);})[_0xa9e92d('0x1f')](function(_0x3f03a9){const _0x5bbbc5=_0xa9e92d;logger[_0x5bbbc5('0x5')](JSON[_0x5bbbc5('0x19')](_0x3f03a9));});});},Migration['prototype'][_0x36a320('0x6')]=function(_0x161f4a,_0x49c296){const _0x312c4f=_0x36a320,_0x4eeca1=this;this[_0x312c4f('0x13')]['enqueue'](function(){const _0x39f2f8=_0x312c4f;return _0x4eeca1[_0x39f2f8('0x4')][_0x39f2f8('0x6')](_0x161f4a,_0x49c296)['then'](function(){const _0x36bf29=_0x39f2f8;logger[_0x36bf29('0x5')](_0x36bf29('0x1'),_0x161f4a,_0x49c296);})[_0x39f2f8('0x1f')](function(_0x463f4e){const _0x79e332=_0x39f2f8;logger[_0x79e332('0x5')](JSON['stringify'](_0x463f4e));});});},Migration[_0x36a320('0x1e')][_0x36a320('0x18')]=function(_0x7aeca6){const _0x1e77f1=_0x36a320,_0x21379c=this;this[_0x1e77f1('0x13')][_0x1e77f1('0x1c')](function(){const _0x58c799=_0x1e77f1;return _0x21379c[_0x58c799('0x4')]['sequelize']['query'](_0x7aeca6)[_0x58c799('0x1b')](function(){const _0x1784c7=_0x58c799;logger[_0x1784c7('0x5')](_0x1784c7('0x10'),_0x7aeca6);})['catch'](function(_0x508ef8){const _0x3c4f66=_0x58c799;logger[_0x3c4f66('0x5')](JSON[_0x3c4f66('0x19')](_0x508ef8));});});},Migration['prototype'][_0x36a320('0x7')]=function(_0x2a2d87,_0x47c134){const _0x5e8c21=_0x36a320,_0x4d47a8=this;this[_0x5e8c21('0x13')][_0x5e8c21('0x1c')](function(){const _0x41f867=_0x5e8c21;return _0x4d47a8['queryInterface'][_0x41f867('0x7')](_0x2a2d87,_0x47c134)[_0x41f867('0x1b')](function(){const _0x2cd059=_0x41f867;logger[_0x2cd059('0x5')](_0x2cd059('0xe'),_0x47c134,_0x2a2d87);})[_0x41f867('0x1f')](function(_0x174971){const _0x35ea6d=_0x41f867;logger[_0x35ea6d('0x5')](util['inspect'](_0x174971,{'showHidden':![],'depth':null}));});});},Migration[_0x36a320('0x1e')][_0x36a320('0x9')]=function(_0x2b1997,_0x309890,_0x1052c7){const _0x14b76d=_0x36a320,_0x1c366c=this;this[_0x14b76d('0x13')][_0x14b76d('0x1c')](function(){const _0x2e5971=_0x14b76d;return _0x1c366c[_0x2e5971('0x4')][_0x2e5971('0x9')](_0x2b1997,_0x309890,_0x1052c7)[_0x2e5971('0x1b')](function(){const _0x5e6945=_0x2e5971;logger[_0x5e6945('0x5')](_0x5e6945('0x14'),_0x309890,_0x1052c7,_0x2b1997);})[_0x2e5971('0x1f')](function(_0x42b14b){const _0x57460f=_0x2e5971;logger[_0x57460f('0x5')](util['inspect'](_0x42b14b,{'showHidden':![],'depth':null}));});});},Migration[_0x36a320('0x1e')]['final']=function(_0x1e3a2d){const _0x3f0c2b=_0x36a320;this[_0x3f0c2b('0x13')][_0x3f0c2b('0x1c')](function(){return _0x1e3a2d();});},module[_0x36a320('0x0')]={'up':function(_0x584f06){return new Promise(function(_0x19bad2){const _0x54c840=a1017_0x464e,_0x96fc50=new Migration(_0x584f06);_0x96fc50[_0x54c840('0x2')](_0x19bad2);});},'down':function(){}}; \ No newline at end of file +const a1017_0x2c44=['dropTable','join','indicesType','../config/logger','Removed\x20column\x20%s\x20from\x20%s','inspect','then','query','addIndex\x20%s\x20%s\x20%s\x20[%s]','util','stringify','enqueue','finally','removeIndex\x20%s\x20%s','addColumn','sequence','tail','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','sequelize','Changed\x20column\x20%s\x20in\x20table\x20%s','changeColumn','addIndex','removeIndex','renameColumn','Added\x20column\x20%s\x20to\x20%s','removeColumn','query\x20%s','info','table\x20dropped\x20%s','prototype','indexName','queryInterface','catch'];(function(_0x323a64,_0x2c44a5){const _0x276920=function(_0x48ed92){while(--_0x48ed92){_0x323a64['push'](_0x323a64['shift']());}};_0x276920(++_0x2c44a5);}(a1017_0x2c44,0x1e2));const a1017_0x2769=function(_0x323a64,_0x2c44a5){_0x323a64=_0x323a64-0x0;let _0x276920=a1017_0x2c44[_0x323a64];return _0x276920;};const _0x5b0b1a=a1017_0x2769;'use strict';const util=require(_0x5b0b1a('0x16')),logger=require(_0x5b0b1a('0x10'))('migration'),Sequence=function(){};Sequence['prototype'][_0x5b0b1a('0x18')]=function(_0x48ed92){const _0xc8cf36=_0x5b0b1a;this[_0xc8cf36('0x1d')]=this[_0xc8cf36('0x1d')]?this[_0xc8cf36('0x1d')][_0xc8cf36('0x19')](_0x48ed92):_0x48ed92();};const Migration=function(_0x18267e){const _0x368c4c=_0x5b0b1a;this[_0x368c4c('0xb')]=_0x18267e,this[_0x368c4c('0x1c')]=new Sequence();};Migration[_0x5b0b1a('0x9')][_0x5b0b1a('0x0')]=function(_0x2d3ddd,_0x248657,_0x520f4a){const _0x14f698=_0x5b0b1a,_0x2bdaeb=this;this[_0x14f698('0x1c')][_0x14f698('0x18')](function(){const _0x3c953e=_0x14f698;return _0x2bdaeb[_0x3c953e('0xb')]['changeColumn'](_0x2d3ddd,_0x248657,_0x520f4a)[_0x3c953e('0x13')](function(){const _0x5caf90=_0x3c953e;logger[_0x5caf90('0x7')](_0x5caf90('0x20'),_0x248657,_0x2d3ddd);})[_0x3c953e('0xc')](function(_0x25dc77){const _0x250b7d=_0x3c953e;logger['info'](JSON[_0x250b7d('0x17')](_0x25dc77));});});},Migration[_0x5b0b1a('0x9')][_0x5b0b1a('0x1b')]=function(_0x28ff55,_0x58daca,_0x561558){const _0x25fd6c=_0x5b0b1a,_0x1269e0=this;this[_0x25fd6c('0x1c')][_0x25fd6c('0x18')](function(){const _0x48d85a=_0x25fd6c;return _0x1269e0['queryInterface'][_0x48d85a('0x1b')](_0x28ff55,_0x58daca,_0x561558)[_0x48d85a('0x13')](function(){const _0x5c3e91=_0x48d85a;logger[_0x5c3e91('0x7')](_0x5c3e91('0x4'),_0x58daca,_0x28ff55);})[_0x48d85a('0xc')](function(_0x9c0b44){const _0x3e028e=_0x48d85a;logger[_0x3e028e('0x7')](JSON[_0x3e028e('0x17')](_0x9c0b44));});});},Migration[_0x5b0b1a('0x9')][_0x5b0b1a('0xd')]=function(_0x1be0c7){const _0x369fa8=_0x5b0b1a,_0x43229e=this;this[_0x369fa8('0x1c')][_0x369fa8('0x18')](function(){const _0x21ce59=_0x369fa8;return _0x43229e['queryInterface'][_0x21ce59('0xd')](_0x1be0c7,{'force':!![]})[_0x21ce59('0x13')](function(){const _0x19db71=_0x21ce59;logger['info'](_0x19db71('0x8'),_0x1be0c7);})[_0x21ce59('0xc')](function(_0x3d755d){const _0x47173c=_0x21ce59;logger[_0x47173c('0x7')](JSON[_0x47173c('0x17')](_0x3d755d));});});},Migration[_0x5b0b1a('0x9')][_0x5b0b1a('0x1')]=function(_0x30ad43,_0x4e55f2,_0x57326a){const _0x18b5d0=_0x5b0b1a,_0x467bcc=this;this[_0x18b5d0('0x1c')]['enqueue'](function(){const _0x4f1d80=_0x18b5d0;return _0x467bcc[_0x4f1d80('0xb')][_0x4f1d80('0x1')](_0x30ad43,_0x4e55f2,{'indexName':_0x57326a[_0x4f1d80('0xa')],'indicesType':_0x57326a[_0x4f1d80('0xf')]})[_0x4f1d80('0x13')](function(){const _0x1cd6c6=_0x4f1d80;logger['info'](_0x1cd6c6('0x15'),_0x30ad43,_0x4e55f2[_0x1cd6c6('0xe')](','),_0x57326a[_0x1cd6c6('0xa')],_0x57326a['indicesType']);})['catch'](function(_0x2ccfa4){const _0x5b6293=_0x4f1d80;logger[_0x5b6293('0x7')](JSON[_0x5b6293('0x17')](_0x2ccfa4));});});},Migration['prototype'][_0x5b0b1a('0x2')]=function(_0x1285b5,_0x2e513c){const _0x4c4c6a=_0x5b0b1a,_0x5a2572=this;this[_0x4c4c6a('0x1c')][_0x4c4c6a('0x18')](function(){const _0x2cb796=_0x4c4c6a;return _0x5a2572['queryInterface'][_0x2cb796('0x2')](_0x1285b5,_0x2e513c)[_0x2cb796('0x13')](function(){const _0x39efd6=_0x2cb796;logger[_0x39efd6('0x7')](_0x39efd6('0x1a'),_0x1285b5,_0x2e513c);})[_0x2cb796('0xc')](function(_0x26fc6e){const _0xc728d4=_0x2cb796;logger[_0xc728d4('0x7')](JSON[_0xc728d4('0x17')](_0x26fc6e));});});},Migration[_0x5b0b1a('0x9')]['query']=function(_0x2c0a0d){const _0x162e2f=_0x5b0b1a,_0x34c8cb=this;this[_0x162e2f('0x1c')][_0x162e2f('0x18')](function(){const _0x8a48de=_0x162e2f;return _0x34c8cb[_0x8a48de('0xb')][_0x8a48de('0x1f')][_0x8a48de('0x14')](_0x2c0a0d)[_0x8a48de('0x13')](function(){const _0x2df13e=_0x8a48de;logger['info'](_0x2df13e('0x6'),_0x2c0a0d);})[_0x8a48de('0xc')](function(_0x5b6e02){const _0x3784b8=_0x8a48de;logger[_0x3784b8('0x7')](JSON[_0x3784b8('0x17')](_0x5b6e02));});});},Migration[_0x5b0b1a('0x9')][_0x5b0b1a('0x5')]=function(_0x805f23,_0x34c1b3){const _0x44b059=_0x5b0b1a,_0x51f2e3=this;this[_0x44b059('0x1c')][_0x44b059('0x18')](function(){const _0x5c1e13=_0x44b059;return _0x51f2e3[_0x5c1e13('0xb')]['removeColumn'](_0x805f23,_0x34c1b3)['then'](function(){const _0x2cd2c5=_0x5c1e13;logger[_0x2cd2c5('0x7')](_0x2cd2c5('0x11'),_0x34c1b3,_0x805f23);})[_0x5c1e13('0xc')](function(_0x4e67d8){const _0x23efe4=_0x5c1e13;logger[_0x23efe4('0x7')](util[_0x23efe4('0x12')](_0x4e67d8,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x5b0b1a('0x3')]=function(_0x4695ef,_0x85d0c7,_0x44577a){const _0x46bafd=_0x5b0b1a,_0x2399c8=this;this[_0x46bafd('0x1c')][_0x46bafd('0x18')](function(){const _0x2e7ff5=_0x46bafd;return _0x2399c8['queryInterface'][_0x2e7ff5('0x3')](_0x4695ef,_0x85d0c7,_0x44577a)['then'](function(){const _0x1aaba9=_0x2e7ff5;logger[_0x1aaba9('0x7')](_0x1aaba9('0x1e'),_0x85d0c7,_0x44577a,_0x4695ef);})[_0x2e7ff5('0xc')](function(_0x6f5a51){const _0x3b6697=_0x2e7ff5;logger['info'](util[_0x3b6697('0x12')](_0x6f5a51,{'showHidden':![],'depth':null}));});});},Migration['prototype']['final']=function(_0x15bbe9){const _0x26f301=_0x5b0b1a;this[_0x26f301('0x1c')][_0x26f301('0x18')](function(){return _0x15bbe9();});},module['exports']={'up':function(_0x1d7ef5){return new Promise(function(_0xaed7d8){const _0x2b939=new Migration(_0x1d7ef5);_0x2b939['final'](_0xaed7d8);});},'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 9f1e44e..7d8f1bc 100644 --- a/server/migrations/2.5.5.js +++ b/server/migrations/2.5.5.js @@ -1 +1 @@ -const a1018_0x3a83=['whatsapp_interactions','report_queue','removeColumn','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','voice','catch','enforcePasswordHistory','ParentId','disposition','indicesType','mail_interactions','final','thirdDisposition','enqueue','name','migration','cm_hopper_final','query','openchannel_interactions','settings','Added\x20column\x20%s\x20to\x20%s','ENUM','level','dropTable','tail','actionType','then','BOOLEAN','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','cm_custom_fields','changeColumn','join','queryInterface','finally','secondDisposition','first','voice_recordings','userSecondDisposition','removeIndex','previousPasswords','query\x20%s','addColumn','info','addIndex','description','third','stringify','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','passwordHistoryLimit','sequence','updatedAt','sms_interactions','inspect','chat_interactions','userDisposition','fax_interactions','userThirdDisposition','prototype','report_call','STRING','renameColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','INTEGER','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','../config/logger','tools_dispositions','settingsEnabled'];(function(_0x1f43fc,_0x3a8354){const _0x3c9eb6=function(_0x372400){while(--_0x372400){_0x1f43fc['push'](_0x1f43fc['shift']());}};_0x3c9eb6(++_0x3a8354);}(a1018_0x3a83,0x85));const a1018_0x3c9e=function(_0x1f43fc,_0x3a8354){_0x1f43fc=_0x1f43fc-0x0;let _0x3c9eb6=a1018_0x3a83[_0x1f43fc];return _0x3c9eb6;};const _0x1fe45f=a1018_0x3c9e;'use strict';const util=require('util'),logger=require(_0x1fe45f('0x41'))(_0x1fe45f('0x10')),Sequence=function(){};Sequence[_0x1fe45f('0x3a')][_0x1fe45f('0xe')]=function(_0x372400){const _0x817129=_0x1fe45f;this[_0x817129('0x19')]=this['tail']?this['tail'][_0x817129('0x22')](_0x372400):_0x372400();};const Migration=function(_0x4e848b){this['queryInterface']=_0x4e848b,this['sequence']=new Sequence();};Migration[_0x1fe45f('0x3a')][_0x1fe45f('0x1f')]=function(_0xabe94,_0x1a6e3f,_0x4a71a){const _0x1a3a82=_0x1fe45f,_0x58f4c2=this;this['sequence'][_0x1a3a82('0xe')](function(){const _0x113726=_0x1a3a82;return _0x58f4c2[_0x113726('0x21')]['changeColumn'](_0xabe94,_0x1a6e3f,_0x4a71a)[_0x113726('0x1b')](function(){const _0x5d1473=_0x113726;logger[_0x5d1473('0x2b')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1a6e3f,_0xabe94);})['catch'](function(_0x2c6a7f){const _0x476143=_0x113726;logger['info'](JSON[_0x476143('0x2f')](_0x2c6a7f));});});},Migration[_0x1fe45f('0x3a')][_0x1fe45f('0x2a')]=function(_0x48293d,_0x34daff,_0x2e1b76){const _0x26cb93=_0x1fe45f,_0x62e55d=this;this[_0x26cb93('0x32')][_0x26cb93('0xe')](function(){const _0x24cb09=_0x26cb93;return _0x62e55d[_0x24cb09('0x21')]['addColumn'](_0x48293d,_0x34daff,_0x2e1b76)[_0x24cb09('0x1b')](function(){const _0x8dd045=_0x24cb09;logger[_0x8dd045('0x2b')](_0x8dd045('0x15'),_0x34daff,_0x48293d);})['catch'](function(_0x7f550b){const _0x3423de=_0x24cb09;logger[_0x3423de('0x2b')](JSON[_0x3423de('0x2f')](_0x7f550b));});});},Migration['prototype']['dropTable']=function(_0x2e9fd4){const _0x531c36=_0x1fe45f,_0x50d357=this;this[_0x531c36('0x32')]['enqueue'](function(){const _0x2139e5=_0x531c36;return _0x50d357[_0x2139e5('0x21')][_0x2139e5('0x18')](_0x2e9fd4,{'force':!![]})[_0x2139e5('0x1b')](function(){const _0x16e594=_0x2139e5;logger[_0x16e594('0x2b')]('table\x20dropped\x20%s',_0x2e9fd4);})[_0x2139e5('0x6')](function(_0x13f1d3){const _0x2152a4=_0x2139e5;logger[_0x2152a4('0x2b')](JSON[_0x2152a4('0x2f')](_0x13f1d3));});});},Migration[_0x1fe45f('0x3a')][_0x1fe45f('0x2c')]=function(_0x5c1142,_0x4aefb9,_0x5415e6){const _0x16f503=this;this['sequence']['enqueue'](function(){const _0x5b514f=a1018_0x3c9e;return _0x16f503[_0x5b514f('0x21')][_0x5b514f('0x2c')](_0x5c1142,_0x4aefb9,{'indexName':_0x5415e6['indexName'],'indicesType':_0x5415e6[_0x5b514f('0xa')]})[_0x5b514f('0x1b')](function(){const _0x47c260=_0x5b514f;logger[_0x47c260('0x2b')](_0x47c260('0x3e'),_0x5c1142,_0x4aefb9[_0x47c260('0x20')](','),_0x5415e6['indexName'],_0x5415e6[_0x47c260('0xa')]);})[_0x5b514f('0x6')](function(_0x2c57a6){const _0x4e2cd1=_0x5b514f;logger[_0x4e2cd1('0x2b')](JSON['stringify'](_0x2c57a6));});});},Migration[_0x1fe45f('0x3a')][_0x1fe45f('0x27')]=function(_0x5f2724,_0x147b91){const _0x568096=_0x1fe45f,_0x31b52e=this;this[_0x568096('0x32')][_0x568096('0xe')](function(){const _0x7688ea=_0x568096;return _0x31b52e[_0x7688ea('0x21')][_0x7688ea('0x27')](_0x5f2724,_0x147b91)[_0x7688ea('0x1b')](function(){const _0x156362=_0x7688ea;logger[_0x156362('0x2b')]('removeIndex\x20%s\x20%s',_0x5f2724,_0x147b91);})[_0x7688ea('0x6')](function(_0x105d62){const _0x18d0b1=_0x7688ea;logger[_0x18d0b1('0x2b')](JSON[_0x18d0b1('0x2f')](_0x105d62));});});},Migration[_0x1fe45f('0x3a')][_0x1fe45f('0x12')]=function(_0x53e858){const _0x55c640=_0x1fe45f,_0x3da000=this;this[_0x55c640('0x32')][_0x55c640('0xe')](function(){const _0x10fbcb=_0x55c640;return _0x3da000[_0x10fbcb('0x21')]['sequelize'][_0x10fbcb('0x12')](_0x53e858)[_0x10fbcb('0x1b')](function(){const _0xf44613=_0x10fbcb;logger['info'](_0xf44613('0x29'),_0x53e858);})['catch'](function(_0x4b2ed2){const _0x4c1669=_0x10fbcb;logger['info'](JSON[_0x4c1669('0x2f')](_0x4b2ed2));});});},Migration[_0x1fe45f('0x3a')][_0x1fe45f('0x3')]=function(_0x3624a5,_0x1c53bd){const _0x25a4e0=_0x1fe45f,_0xe48cb2=this;this[_0x25a4e0('0x32')]['enqueue'](function(){const _0x333cf3=_0x25a4e0;return _0xe48cb2[_0x333cf3('0x21')][_0x333cf3('0x3')](_0x3624a5,_0x1c53bd)[_0x333cf3('0x1b')](function(){const _0x343e67=_0x333cf3;logger[_0x343e67('0x2b')]('Removed\x20column\x20%s\x20from\x20%s',_0x1c53bd,_0x3624a5);})[_0x333cf3('0x6')](function(_0xc9ab57){const _0x39771d=_0x333cf3;logger['info'](util[_0x39771d('0x35')](_0xc9ab57,{'showHidden':![],'depth':null}));});});},Migration[_0x1fe45f('0x3a')][_0x1fe45f('0x3d')]=function(_0x509c45,_0x5a02f2,_0x44a5be){const _0x5a506c=_0x1fe45f,_0x1b9df3=this;this['sequence'][_0x5a506c('0xe')](function(){const _0x43a534=_0x5a506c;return _0x1b9df3[_0x43a534('0x21')][_0x43a534('0x3d')](_0x509c45,_0x5a02f2,_0x44a5be)[_0x43a534('0x1b')](function(){const _0x59da4b=_0x43a534;logger['info'](_0x59da4b('0x1d'),_0x5a02f2,_0x44a5be,_0x509c45);})[_0x43a534('0x6')](function(_0x450174){const _0x5c0a5d=_0x43a534;logger[_0x5c0a5d('0x2b')](util[_0x5c0a5d('0x35')](_0x450174,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x1fe45f('0xc')]=function(_0x4cd322){const _0x4b32d=_0x1fe45f;this[_0x4b32d('0x32')][_0x4b32d('0xe')](function(){return _0x4cd322();});},module['exports']={'up':function(_0x3bdc46,_0x3c84f3){return new Promise(function(_0x1dd0f8){const _0x40b775=a1018_0x3c9e,_0x377997=new Migration(_0x3bdc46);_0x377997['query']('UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27'),_0x377997['query'](_0x40b775('0x40')),_0x377997[_0x40b775('0x12')](_0x40b775('0x30')),_0x377997[_0x40b775('0x2a')](_0x40b775('0x14'),_0x40b775('0x7'),{'type':_0x3c84f3['BOOLEAN'],'defaultValue':!![]}),_0x377997[_0x40b775('0x2a')]('settings',_0x40b775('0x31'),{'type':_0x3c84f3['INTEGER'](0x2)['UNSIGNED'],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x377997[_0x40b775('0x2a')]('users',_0x40b775('0x28'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':'passwordResetAt'}),_0x377997[_0x40b775('0x2a')]('users',_0x40b775('0x0'),{'type':_0x3c84f3[_0x40b775('0x1c')],'defaultValue':!![]}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x1e'),'clickToAction',{'type':_0x3c84f3['BOOLEAN'],'defaultValue':![]}),_0x377997[_0x40b775('0x2a')]('cm_custom_fields',_0x40b775('0x1a'),{'type':_0x3c84f3['ENUM']('voice'),'allowNull':![],'defaultValue':_0x40b775('0x5')}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x42'),_0x40b775('0x17'),{'type':_0x3c84f3[_0x40b775('0x16')](_0x40b775('0x24'),'second',_0x40b775('0x2e')),'allowNull':![],'defaultValue':_0x40b775('0x24'),'after':_0x40b775('0xf')}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x42'),_0x40b775('0x2d'),{'type':_0x3c84f3['STRING'],'after':_0x40b775('0x17')}),_0x377997[_0x40b775('0x2a')]('tools_dispositions',_0x40b775('0x8'),{'type':_0x3c84f3[_0x40b775('0x3f')],'after':_0x40b775('0x33')}),_0x377997[_0x40b775('0x12')](_0x40b775('0x4')),_0x377997[_0x40b775('0x2a')]('report_call',_0x40b775('0x26'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':_0x40b775('0x37')}),_0x377997['addColumn'](_0x40b775('0x3b'),_0x40b775('0x39'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':_0x40b775('0x26')}),_0x377997['addColumn'](_0x40b775('0x2'),_0x40b775('0x23'),{'type':_0x3c84f3['STRING'],'after':_0x40b775('0x9')}),_0x377997['addColumn'](_0x40b775('0x2'),_0x40b775('0xd'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':_0x40b775('0x23')}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x25'),'userSecondDisposition',{'type':_0x3c84f3[_0x40b775('0x3c')],'after':'userDisposition'}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x25'),_0x40b775('0x39'),{'type':_0x3c84f3['STRING'],'after':_0x40b775('0x26')}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x36'),_0x40b775('0x23'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':'disposition'}),_0x377997['addColumn'](_0x40b775('0x36'),_0x40b775('0xd'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':'secondDisposition'}),_0x377997[_0x40b775('0x2a')]('fax_interactions',_0x40b775('0x23'),{'type':_0x3c84f3['STRING'],'after':'disposition'}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x38'),_0x40b775('0xd'),{'type':_0x3c84f3['STRING'],'after':_0x40b775('0x23')}),_0x377997['addColumn']('mail_interactions','secondDisposition',{'type':_0x3c84f3[_0x40b775('0x3c')],'after':_0x40b775('0x9')}),_0x377997[_0x40b775('0x2a')](_0x40b775('0xb'),_0x40b775('0xd'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':_0x40b775('0x23')}),_0x377997['addColumn'](_0x40b775('0x13'),_0x40b775('0x23'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':'disposition'}),_0x377997['addColumn'](_0x40b775('0x13'),_0x40b775('0xd'),{'type':_0x3c84f3['STRING'],'after':'secondDisposition'}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x34'),_0x40b775('0x23'),{'type':_0x3c84f3['STRING'],'after':_0x40b775('0x9')}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x34'),_0x40b775('0xd'),{'type':_0x3c84f3['STRING'],'after':_0x40b775('0x23')}),_0x377997['addColumn']('whatsapp_interactions',_0x40b775('0x23'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':'disposition'}),_0x377997[_0x40b775('0x2a')](_0x40b775('0x1'),_0x40b775('0xd'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':_0x40b775('0x23')}),_0x377997['addColumn'](_0x40b775('0x11'),_0x40b775('0x23'),{'type':_0x3c84f3[_0x40b775('0x3c')],'after':_0x40b775('0x9')}),_0x377997['addColumn'](_0x40b775('0x11'),'thirdDisposition',{'type':_0x3c84f3[_0x40b775('0x3c')],'after':_0x40b775('0x23')}),_0x377997[_0x40b775('0xc')](_0x1dd0f8);});},'down':function(){}}; \ No newline at end of file +const a1018_0x541e=['description','voice_recordings','previousPasswords','removeColumn','userDisposition','query\x20%s','thirdDisposition','name','userThirdDisposition','secondDisposition','STRING','voice','final','chat_interactions','indicesType','BOOLEAN','migration','stringify','Removed\x20column\x20%s\x20from\x20%s','report_call','sequence','INTEGER','ParentId','exports','userSecondDisposition','../config/logger','clickToAction','UNSIGNED','sms_interactions','whatsapp_interactions','queryInterface','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','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','removeIndex','cm_custom_fields','settingsEnabled','third','info','join','openchannel_interactions','enqueue','renameColumn','tail','mail_interactions','addIndex\x20%s\x20%s\x20%s\x20[%s]','then','UPDATE\x20tools_actions\x20SET\x20data4\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data4\x20=\x20\x270\x27','users','settings','disposition','ENUM','tools_dispositions','addColumn','cm_hopper_final','level','addIndex','passwordHistoryLimit','second','report_queue','Added\x20column\x20%s\x20to\x20%s','table\x20dropped\x20%s','catch','prototype','first','query','changeColumn','inspect','dropTable','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'];(function(_0x1068ff,_0x541e48){const _0x4cafff=function(_0x712dd){while(--_0x712dd){_0x1068ff['push'](_0x1068ff['shift']());}};_0x4cafff(++_0x541e48);}(a1018_0x541e,0x101));const a1018_0x4caf=function(_0x1068ff,_0x541e48){_0x1068ff=_0x1068ff-0x0;let _0x4cafff=a1018_0x541e[_0x1068ff];return _0x4cafff;};const _0x40c2f7=a1018_0x4caf;'use strict';const util=require('util'),logger=require(_0x40c2f7('0x2c'))(_0x40c2f7('0x23')),Sequence=function(){};Sequence['prototype'][_0x40c2f7('0x3b')]=function(_0x712dd){const _0x7381c9=_0x40c2f7;this['tail']=this[_0x7381c9('0x3d')]?this['tail']['finally'](_0x712dd):_0x712dd();};const Migration=function(_0x3e3f7f){const _0x4c6a35=_0x40c2f7;this[_0x4c6a35('0x31')]=_0x3e3f7f,this[_0x4c6a35('0x27')]=new Sequence();};Migration[_0x40c2f7('0xc')][_0x40c2f7('0xf')]=function(_0x3249d0,_0x1807a3,_0x43413b){const _0x1c1ce7=_0x40c2f7,_0x58a382=this;this['sequence'][_0x1c1ce7('0x3b')](function(){const _0x2dfb23=_0x1c1ce7;return _0x58a382[_0x2dfb23('0x31')]['changeColumn'](_0x3249d0,_0x1807a3,_0x43413b)[_0x2dfb23('0x40')](function(){const _0x2e7af8=_0x2dfb23;logger[_0x2e7af8('0x38')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1807a3,_0x3249d0);})[_0x2dfb23('0xb')](function(_0x15f55a){const _0xcb002f=_0x2dfb23;logger[_0xcb002f('0x38')](JSON[_0xcb002f('0x24')](_0x15f55a));});});},Migration[_0x40c2f7('0xc')][_0x40c2f7('0x2')]=function(_0x171d18,_0x544685,_0x1b8258){const _0x277071=_0x40c2f7,_0x5d2ae1=this;this['sequence'][_0x277071('0x3b')](function(){const _0x330057=_0x277071;return _0x5d2ae1[_0x330057('0x31')][_0x330057('0x2')](_0x171d18,_0x544685,_0x1b8258)[_0x330057('0x40')](function(){const _0x18a3f0=_0x330057;logger[_0x18a3f0('0x38')](_0x18a3f0('0x9'),_0x544685,_0x171d18);})[_0x330057('0xb')](function(_0x116ab6){const _0x4aa422=_0x330057;logger['info'](JSON[_0x4aa422('0x24')](_0x116ab6));});});},Migration[_0x40c2f7('0xc')]['dropTable']=function(_0x39881e){const _0x44aeaa=_0x40c2f7,_0x4128f0=this;this[_0x44aeaa('0x27')]['enqueue'](function(){const _0x34f659=_0x44aeaa;return _0x4128f0[_0x34f659('0x31')][_0x34f659('0x11')](_0x39881e,{'force':!![]})['then'](function(){const _0x4c44af=_0x34f659;logger[_0x4c44af('0x38')](_0x4c44af('0xa'),_0x39881e);})['catch'](function(_0x3f79bf){const _0x2ff29b=_0x34f659;logger['info'](JSON[_0x2ff29b('0x24')](_0x3f79bf));});});},Migration[_0x40c2f7('0xc')][_0x40c2f7('0x5')]=function(_0x4b03b7,_0x5ab478,_0x1da849){const _0x563c80=_0x40c2f7,_0xdc3a5e=this;this[_0x563c80('0x27')][_0x563c80('0x3b')](function(){const _0x38e652=_0x563c80;return _0xdc3a5e[_0x38e652('0x31')]['addIndex'](_0x4b03b7,_0x5ab478,{'indexName':_0x1da849['indexName'],'indicesType':_0x1da849[_0x38e652('0x21')]})[_0x38e652('0x40')](function(){const _0x62d63c=_0x38e652;logger[_0x62d63c('0x38')](_0x62d63c('0x3f'),_0x4b03b7,_0x5ab478[_0x62d63c('0x39')](','),_0x1da849['indexName'],_0x1da849[_0x62d63c('0x21')]);})[_0x38e652('0xb')](function(_0x18cdc7){logger['info'](JSON['stringify'](_0x18cdc7));});});},Migration['prototype']['removeIndex']=function(_0x3b7915,_0x15dbc1){const _0x457f42=_0x40c2f7,_0x574492=this;this[_0x457f42('0x27')][_0x457f42('0x3b')](function(){const _0x46d27c=_0x457f42;return _0x574492[_0x46d27c('0x31')][_0x46d27c('0x34')](_0x3b7915,_0x15dbc1)[_0x46d27c('0x40')](function(){const _0x2936ee=_0x46d27c;logger[_0x2936ee('0x38')]('removeIndex\x20%s\x20%s',_0x3b7915,_0x15dbc1);})[_0x46d27c('0xb')](function(_0x4f3bf9){const _0x542d2d=_0x46d27c;logger[_0x542d2d('0x38')](JSON['stringify'](_0x4f3bf9));});});},Migration['prototype'][_0x40c2f7('0xe')]=function(_0x5cf7ae){const _0x19bef3=_0x40c2f7,_0x2e9af9=this;this[_0x19bef3('0x27')][_0x19bef3('0x3b')](function(){const _0x20b827=_0x19bef3;return _0x2e9af9[_0x20b827('0x31')]['sequelize'][_0x20b827('0xe')](_0x5cf7ae)['then'](function(){const _0x417e6a=_0x20b827;logger['info'](_0x417e6a('0x18'),_0x5cf7ae);})['catch'](function(_0x383365){const _0x3b3810=_0x20b827;logger[_0x3b3810('0x38')](JSON[_0x3b3810('0x24')](_0x383365));});});},Migration['prototype'][_0x40c2f7('0x16')]=function(_0x51d6be,_0x39798e){const _0x423646=_0x40c2f7,_0x58e6a3=this;this[_0x423646('0x27')][_0x423646('0x3b')](function(){const _0x293bea=_0x423646;return _0x58e6a3[_0x293bea('0x31')]['removeColumn'](_0x51d6be,_0x39798e)[_0x293bea('0x40')](function(){const _0xf8e999=_0x293bea;logger['info'](_0xf8e999('0x25'),_0x39798e,_0x51d6be);})[_0x293bea('0xb')](function(_0x3fea2d){const _0x4ce16a=_0x293bea;logger[_0x4ce16a('0x38')](util[_0x4ce16a('0x10')](_0x3fea2d,{'showHidden':![],'depth':null}));});});},Migration[_0x40c2f7('0xc')][_0x40c2f7('0x3c')]=function(_0x447cc9,_0x364f61,_0x18178a){const _0x29e148=_0x40c2f7,_0x31aa82=this;this['sequence'][_0x29e148('0x3b')](function(){const _0x13a949=_0x29e148;return _0x31aa82[_0x13a949('0x31')][_0x13a949('0x3c')](_0x447cc9,_0x364f61,_0x18178a)['then'](function(){const _0x2e963f=_0x13a949;logger[_0x2e963f('0x38')](_0x2e963f('0x32'),_0x364f61,_0x18178a,_0x447cc9);})[_0x13a949('0xb')](function(_0x47b82a){const _0x5a02b2=_0x13a949;logger[_0x5a02b2('0x38')](util['inspect'](_0x47b82a,{'showHidden':![],'depth':null}));});});},Migration[_0x40c2f7('0xc')]['final']=function(_0x31f2c9){const _0x51cc3f=_0x40c2f7;this[_0x51cc3f('0x27')][_0x51cc3f('0x3b')](function(){return _0x31f2c9();});},module[_0x40c2f7('0x2a')]={'up':function(_0x3d9238,_0x330961){return new Promise(function(_0x3d5099){const _0x528d46=a1018_0x4caf,_0x164ea3=new Migration(_0x3d9238);_0x164ea3[_0x528d46('0xe')]('UPDATE\x20tools_actions\x20SET\x20data3\x20=\x20\x27phone\x27\x20WHERE\x20action\x20=\x20\x27contactManager\x27\x20AND\x20data3\x20=\x20\x270\x27'),_0x164ea3[_0x528d46('0xe')](_0x528d46('0x33')),_0x164ea3[_0x528d46('0xe')](_0x528d46('0x41')),_0x164ea3['addColumn'](_0x528d46('0x43'),'enforcePasswordHistory',{'type':_0x330961[_0x528d46('0x22')],'defaultValue':!![]}),_0x164ea3['addColumn']('settings',_0x528d46('0x6'),{'type':_0x330961['INTEGER'](0x2)[_0x528d46('0x2e')],'defaultValue':0x3,'validate':{'min':0x1,'max':0x5}}),_0x164ea3[_0x528d46('0x2')]('users',_0x528d46('0x15'),{'type':_0x330961[_0x528d46('0x1d')],'after':'passwordResetAt'}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x42'),_0x528d46('0x36'),{'type':_0x330961['BOOLEAN'],'defaultValue':!![]}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x35'),_0x528d46('0x2d'),{'type':_0x330961[_0x528d46('0x22')],'defaultValue':![]}),_0x164ea3['addColumn'](_0x528d46('0x35'),'actionType',{'type':_0x330961['ENUM'](_0x528d46('0x1e')),'allowNull':![],'defaultValue':'voice'}),_0x164ea3[_0x528d46('0x2')]('tools_dispositions',_0x528d46('0x4'),{'type':_0x330961[_0x528d46('0x0')](_0x528d46('0xd'),_0x528d46('0x7'),_0x528d46('0x37')),'allowNull':![],'defaultValue':_0x528d46('0xd'),'after':_0x528d46('0x1a')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x1'),_0x528d46('0x13'),{'type':_0x330961['STRING'],'after':_0x528d46('0x4')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x1'),_0x528d46('0x29'),{'type':_0x330961[_0x528d46('0x28')],'after':'updatedAt'}),_0x164ea3[_0x528d46('0xe')](_0x528d46('0x12')),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x26'),_0x528d46('0x2b'),{'type':_0x330961['STRING'],'after':_0x528d46('0x17')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x26'),_0x528d46('0x1b'),{'type':_0x330961['STRING'],'after':'userSecondDisposition'}),_0x164ea3['addColumn'](_0x528d46('0x8'),_0x528d46('0x1c'),{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x44')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x8'),_0x528d46('0x19'),{'type':_0x330961['STRING'],'after':_0x528d46('0x1c')}),_0x164ea3['addColumn'](_0x528d46('0x14'),_0x528d46('0x2b'),{'type':_0x330961['STRING'],'after':_0x528d46('0x17')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x14'),_0x528d46('0x1b'),{'type':_0x330961['STRING'],'after':'userSecondDisposition'}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x20'),_0x528d46('0x1c'),{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x44')}),_0x164ea3[_0x528d46('0x2')]('chat_interactions',_0x528d46('0x19'),{'type':_0x330961[_0x528d46('0x1d')],'after':'secondDisposition'}),_0x164ea3['addColumn']('fax_interactions',_0x528d46('0x1c'),{'type':_0x330961['STRING'],'after':'disposition'}),_0x164ea3[_0x528d46('0x2')]('fax_interactions',_0x528d46('0x19'),{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x1c')}),_0x164ea3['addColumn'](_0x528d46('0x3e'),_0x528d46('0x1c'),{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x44')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x3e'),_0x528d46('0x19'),{'type':_0x330961['STRING'],'after':_0x528d46('0x1c')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x3a'),'secondDisposition',{'type':_0x330961['STRING'],'after':_0x528d46('0x44')}),_0x164ea3['addColumn'](_0x528d46('0x3a'),'thirdDisposition',{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x1c')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x2f'),_0x528d46('0x1c'),{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x44')}),_0x164ea3[_0x528d46('0x2')]('sms_interactions','thirdDisposition',{'type':_0x330961['STRING'],'after':_0x528d46('0x1c')}),_0x164ea3['addColumn'](_0x528d46('0x30'),'secondDisposition',{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x44')}),_0x164ea3[_0x528d46('0x2')]('whatsapp_interactions',_0x528d46('0x19'),{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x1c')}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x3'),_0x528d46('0x1c'),{'type':_0x330961[_0x528d46('0x1d')],'after':'disposition'}),_0x164ea3[_0x528d46('0x2')](_0x528d46('0x3'),'thirdDisposition',{'type':_0x330961[_0x528d46('0x1d')],'after':_0x528d46('0x1c')}),_0x164ea3[_0x528d46('0x1f')](_0x3d5099);});},'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 f48ef24..9469a28 100644 --- a/server/migrations/2.5.6.js +++ b/server/migrations/2.5.6.js @@ -1 +1 @@ -const a1019_0x2546=['sequence','changeColumn','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','Removed\x20column\x20%s\x20from\x20%s','indexName','indicesType','tail','query\x20%s','dropTable','renameColumn','finally','email','FULLTEXT','util','catch','firstName','mobile','removeIndex','stringify','inspect','addColumn','removeColumn','info','Changed\x20column\x20%s\x20in\x20table\x20%s','cm_contacts','query','addIndex','lastName','final','../config/logger','Added\x20column\x20%s\x20to\x20%s','fti_cm_contacts','then','exports','enqueue','queryInterface','prototype','removeIndex\x20%s\x20%s'];(function(_0x4172cc,_0x254609){const _0x1ac16c=function(_0xa17a51){while(--_0xa17a51){_0x4172cc['push'](_0x4172cc['shift']());}};_0x1ac16c(++_0x254609);}(a1019_0x2546,0x1b1));const a1019_0x1ac1=function(_0x4172cc,_0x254609){_0x4172cc=_0x4172cc-0x0;let _0x1ac16c=a1019_0x2546[_0x4172cc];return _0x1ac16c;};const _0x5b00a9=a1019_0x1ac1;'use strict';const util=require(_0x5b00a9('0x24')),logger=require(_0x5b00a9('0xe'))('migration'),Sequence=function(){};Sequence[_0x5b00a9('0x15')][_0x5b00a9('0x13')]=function(_0xa17a51){const _0xd3bb38=_0x5b00a9;this[_0xd3bb38('0x1d')]=this[_0xd3bb38('0x1d')]?this[_0xd3bb38('0x1d')][_0xd3bb38('0x21')](_0xa17a51):_0xa17a51();};const Migration=function(_0x2c0401){const _0x14e140=_0x5b00a9;this[_0x14e140('0x14')]=_0x2c0401,this[_0x14e140('0x17')]=new Sequence();};Migration['prototype']['changeColumn']=function(_0xb68400,_0x27880d,_0x3426db){const _0x568bbb=_0x5b00a9,_0x36db7c=this;this['sequence'][_0x568bbb('0x13')](function(){const _0x4a4cb4=_0x568bbb;return _0x36db7c[_0x4a4cb4('0x14')][_0x4a4cb4('0x18')](_0xb68400,_0x27880d,_0x3426db)[_0x4a4cb4('0x11')](function(){const _0x1e2c6f=_0x4a4cb4;logger[_0x1e2c6f('0x7')](_0x1e2c6f('0x8'),_0x27880d,_0xb68400);})['catch'](function(_0x4c279c){const _0x1eb4b0=_0x4a4cb4;logger[_0x1eb4b0('0x7')](JSON['stringify'](_0x4c279c));});});},Migration[_0x5b00a9('0x15')][_0x5b00a9('0x5')]=function(_0x402b55,_0x4ec3a3,_0x372ff3){const _0x4aa2bb=_0x5b00a9,_0xbda236=this;this[_0x4aa2bb('0x17')][_0x4aa2bb('0x13')](function(){const _0x1b2704=_0x4aa2bb;return _0xbda236['queryInterface']['addColumn'](_0x402b55,_0x4ec3a3,_0x372ff3)[_0x1b2704('0x11')](function(){const _0x4971ab=_0x1b2704;logger['info'](_0x4971ab('0xf'),_0x4ec3a3,_0x402b55);})[_0x1b2704('0x25')](function(_0x7c75cc){const _0x4397a7=_0x1b2704;logger[_0x4397a7('0x7')](JSON['stringify'](_0x7c75cc));});});},Migration['prototype'][_0x5b00a9('0x1f')]=function(_0x5822f6){const _0x35c9d8=_0x5b00a9,_0x437dc6=this;this[_0x35c9d8('0x17')][_0x35c9d8('0x13')](function(){const _0x593bb7=_0x35c9d8;return _0x437dc6[_0x593bb7('0x14')][_0x593bb7('0x1f')](_0x5822f6,{'force':!![]})[_0x593bb7('0x11')](function(){const _0x19171a=_0x593bb7;logger[_0x19171a('0x7')]('table\x20dropped\x20%s',_0x5822f6);})[_0x593bb7('0x25')](function(_0xa54ed0){const _0x5d2427=_0x593bb7;logger[_0x5d2427('0x7')](JSON[_0x5d2427('0x3')](_0xa54ed0));});});},Migration[_0x5b00a9('0x15')][_0x5b00a9('0xb')]=function(_0x25ebc4,_0x8c1673,_0x28cc6b){const _0x7c8ce7=_0x5b00a9,_0x1c62ba=this;this[_0x7c8ce7('0x17')][_0x7c8ce7('0x13')](function(){const _0x148f84=_0x7c8ce7;return _0x1c62ba[_0x148f84('0x14')][_0x148f84('0xb')](_0x25ebc4,_0x8c1673,{'indexName':_0x28cc6b[_0x148f84('0x1b')],'indicesType':_0x28cc6b['indicesType']})[_0x148f84('0x11')](function(){const _0x2224e2=_0x148f84;logger['info']('addIndex\x20%s\x20%s\x20%s\x20[%s]',_0x25ebc4,_0x8c1673['join'](','),_0x28cc6b[_0x2224e2('0x1b')],_0x28cc6b[_0x2224e2('0x1c')]);})[_0x148f84('0x25')](function(_0x5b0e46){const _0x3b52a5=_0x148f84;logger[_0x3b52a5('0x7')](JSON[_0x3b52a5('0x3')](_0x5b0e46));});});},Migration[_0x5b00a9('0x15')]['removeIndex']=function(_0x3d13c0,_0x237ac1){const _0x49c1b8=_0x5b00a9,_0x321a1a=this;this['sequence'][_0x49c1b8('0x13')](function(){const _0x5790f9=_0x49c1b8;return _0x321a1a[_0x5790f9('0x14')][_0x5790f9('0x2')](_0x3d13c0,_0x237ac1)[_0x5790f9('0x11')](function(){const _0x5183cf=_0x5790f9;logger[_0x5183cf('0x7')](_0x5183cf('0x16'),_0x3d13c0,_0x237ac1);})[_0x5790f9('0x25')](function(_0x586484){const _0x477c73=_0x5790f9;logger[_0x477c73('0x7')](JSON[_0x477c73('0x3')](_0x586484));});});},Migration[_0x5b00a9('0x15')]['query']=function(_0x1f3f5a){const _0x4f35f4=_0x5b00a9,_0x2a860b=this;this[_0x4f35f4('0x17')][_0x4f35f4('0x13')](function(){const _0xa556e4=_0x4f35f4;return _0x2a860b['queryInterface']['sequelize'][_0xa556e4('0xa')](_0x1f3f5a)[_0xa556e4('0x11')](function(){const _0x24385d=_0xa556e4;logger[_0x24385d('0x7')](_0x24385d('0x1e'),_0x1f3f5a);})[_0xa556e4('0x25')](function(_0x408cd5){const _0x5ac9df=_0xa556e4;logger[_0x5ac9df('0x7')](JSON['stringify'](_0x408cd5));});});},Migration[_0x5b00a9('0x15')]['removeColumn']=function(_0x246153,_0x47abfa){const _0x2ea8e5=_0x5b00a9,_0x6b4cc3=this;this[_0x2ea8e5('0x17')][_0x2ea8e5('0x13')](function(){const _0xc0d4ca=_0x2ea8e5;return _0x6b4cc3['queryInterface'][_0xc0d4ca('0x6')](_0x246153,_0x47abfa)['then'](function(){const _0x33ca49=_0xc0d4ca;logger[_0x33ca49('0x7')](_0x33ca49('0x1a'),_0x47abfa,_0x246153);})['catch'](function(_0x246e8d){const _0x27224f=_0xc0d4ca;logger[_0x27224f('0x7')](util[_0x27224f('0x4')](_0x246e8d,{'showHidden':![],'depth':null}));});});},Migration[_0x5b00a9('0x15')][_0x5b00a9('0x20')]=function(_0x314b1c,_0x5ced99,_0x108684){const _0x2e0b88=_0x5b00a9,_0x51ec52=this;this[_0x2e0b88('0x17')]['enqueue'](function(){const _0x564bd5=_0x2e0b88;return _0x51ec52[_0x564bd5('0x14')][_0x564bd5('0x20')](_0x314b1c,_0x5ced99,_0x108684)[_0x564bd5('0x11')](function(){const _0x1b6d33=_0x564bd5;logger[_0x1b6d33('0x7')](_0x1b6d33('0x19'),_0x5ced99,_0x108684,_0x314b1c);})[_0x564bd5('0x25')](function(_0x55dcf5){const _0x1349ae=_0x564bd5;logger[_0x1349ae('0x7')](util[_0x1349ae('0x4')](_0x55dcf5,{'showHidden':![],'depth':null}));});});},Migration[_0x5b00a9('0x15')]['final']=function(_0x43afbf){const _0x2238b3=_0x5b00a9;this[_0x2238b3('0x17')]['enqueue'](function(){return _0x43afbf();});},module[_0x5b00a9('0x12')]={'up':function(_0x2f289c){return new Promise(function(_0x22584c){const _0x57d75a=a1019_0x1ac1,_0x27e00b=new Migration(_0x2f289c);_0x27e00b[_0x57d75a('0xb')](_0x57d75a('0x9'),[_0x57d75a('0x0'),_0x57d75a('0xc'),'phone',_0x57d75a('0x1'),'fax',_0x57d75a('0x22')],{'indexName':_0x57d75a('0x10'),'indicesType':_0x57d75a('0x23')}),_0x27e00b[_0x57d75a('0xd')](_0x22584c);});},'down':function(){}}; \ No newline at end of file +const a1019_0x1279=['../config/logger','util','removeIndex','inspect','mobile','phone','email','then','query\x20%s','sequence','tail','renameColumn','fti_cm_contacts','query','fax','addIndex','enqueue','stringify','sequelize','exports','changeColumn','addIndex\x20%s\x20%s\x20%s\x20[%s]','finally','removeColumn','table\x20dropped\x20%s','final','firstName','migration','join','queryInterface','dropTable','prototype','FULLTEXT','cm_contacts','indexName','Added\x20column\x20%s\x20to\x20%s','info','catch','removeIndex\x20%s\x20%s'];(function(_0x234574,_0x12794c){const _0x218204=function(_0x5c8a53){while(--_0x5c8a53){_0x234574['push'](_0x234574['shift']());}};_0x218204(++_0x12794c);}(a1019_0x1279,0xe2));const a1019_0x2182=function(_0x234574,_0x12794c){_0x234574=_0x234574-0x0;let _0x218204=a1019_0x1279[_0x234574];return _0x218204;};const _0x5bbf8b=a1019_0x2182;'use strict';const util=require(_0x5bbf8b('0x9')),logger=require(_0x5bbf8b('0x8'))(_0x5bbf8b('0x23')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x5c8a53){const _0xb71d37=_0x5bbf8b;this['tail']=this[_0xb71d37('0x12')]?this['tail'][_0xb71d37('0x1e')](_0x5c8a53):_0x5c8a53();};const Migration=function(_0x135533){const _0xeae0e4=_0x5bbf8b;this[_0xeae0e4('0x25')]=_0x135533,this[_0xeae0e4('0x11')]=new Sequence();};Migration[_0x5bbf8b('0x0')][_0x5bbf8b('0x1c')]=function(_0x281657,_0x1ad0f9,_0x314a86){const _0x35bab5=_0x5bbf8b,_0x3661cb=this;this[_0x35bab5('0x11')][_0x35bab5('0x18')](function(){const _0x451571=_0x35bab5;return _0x3661cb[_0x451571('0x25')]['changeColumn'](_0x281657,_0x1ad0f9,_0x314a86)[_0x451571('0xf')](function(){const _0xa58d89=_0x451571;logger[_0xa58d89('0x5')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x1ad0f9,_0x281657);})[_0x451571('0x6')](function(_0x32d56a){const _0x4e5b0b=_0x451571;logger[_0x4e5b0b('0x5')](JSON[_0x4e5b0b('0x19')](_0x32d56a));});});},Migration[_0x5bbf8b('0x0')]['addColumn']=function(_0x327a15,_0xc744c0,_0x44c191){const _0x5d85a2=_0x5bbf8b,_0x33c714=this;this[_0x5d85a2('0x11')]['enqueue'](function(){const _0x24a782=_0x5d85a2;return _0x33c714[_0x24a782('0x25')]['addColumn'](_0x327a15,_0xc744c0,_0x44c191)[_0x24a782('0xf')](function(){const _0x4c879b=_0x24a782;logger[_0x4c879b('0x5')](_0x4c879b('0x4'),_0xc744c0,_0x327a15);})[_0x24a782('0x6')](function(_0x77dc7b){const _0x1287a8=_0x24a782;logger[_0x1287a8('0x5')](JSON['stringify'](_0x77dc7b));});});},Migration[_0x5bbf8b('0x0')][_0x5bbf8b('0x26')]=function(_0x27b02e){const _0x518b8b=_0x5bbf8b,_0x36df5a=this;this[_0x518b8b('0x11')][_0x518b8b('0x18')](function(){const _0x3b4140=_0x518b8b;return _0x36df5a['queryInterface'][_0x3b4140('0x26')](_0x27b02e,{'force':!![]})[_0x3b4140('0xf')](function(){const _0x1400c2=_0x3b4140;logger[_0x1400c2('0x5')](_0x1400c2('0x20'),_0x27b02e);})['catch'](function(_0x415d92){const _0x51c5d7=_0x3b4140;logger['info'](JSON[_0x51c5d7('0x19')](_0x415d92));});});},Migration[_0x5bbf8b('0x0')][_0x5bbf8b('0x17')]=function(_0xa2d40c,_0x22fa60,_0x49b6a9){const _0x4a0c7c=_0x5bbf8b,_0x2cc1a5=this;this['sequence'][_0x4a0c7c('0x18')](function(){const _0x16b9a4=_0x4a0c7c;return _0x2cc1a5[_0x16b9a4('0x25')][_0x16b9a4('0x17')](_0xa2d40c,_0x22fa60,{'indexName':_0x49b6a9['indexName'],'indicesType':_0x49b6a9['indicesType']})[_0x16b9a4('0xf')](function(){const _0x49c026=_0x16b9a4;logger[_0x49c026('0x5')](_0x49c026('0x1d'),_0xa2d40c,_0x22fa60[_0x49c026('0x24')](','),_0x49b6a9[_0x49c026('0x3')],_0x49b6a9['indicesType']);})[_0x16b9a4('0x6')](function(_0xafdbe3){const _0x1ee400=_0x16b9a4;logger['info'](JSON[_0x1ee400('0x19')](_0xafdbe3));});});},Migration['prototype'][_0x5bbf8b('0xa')]=function(_0x5a53d6,_0x5dd640){const _0x1d8233=_0x5bbf8b,_0x65d87=this;this[_0x1d8233('0x11')][_0x1d8233('0x18')](function(){const _0x7b6cb9=_0x1d8233;return _0x65d87[_0x7b6cb9('0x25')]['removeIndex'](_0x5a53d6,_0x5dd640)['then'](function(){const _0x40a23b=_0x7b6cb9;logger[_0x40a23b('0x5')](_0x40a23b('0x7'),_0x5a53d6,_0x5dd640);})[_0x7b6cb9('0x6')](function(_0x4325f1){logger['info'](JSON['stringify'](_0x4325f1));});});},Migration[_0x5bbf8b('0x0')][_0x5bbf8b('0x15')]=function(_0x5a07a8){const _0x575278=_0x5bbf8b,_0x2dbada=this;this[_0x575278('0x11')][_0x575278('0x18')](function(){const _0x196504=_0x575278;return _0x2dbada['queryInterface'][_0x196504('0x1a')][_0x196504('0x15')](_0x5a07a8)[_0x196504('0xf')](function(){const _0x4ff103=_0x196504;logger[_0x4ff103('0x5')](_0x4ff103('0x10'),_0x5a07a8);})['catch'](function(_0x1bcb20){const _0x1b9221=_0x196504;logger[_0x1b9221('0x5')](JSON[_0x1b9221('0x19')](_0x1bcb20));});});},Migration[_0x5bbf8b('0x0')]['removeColumn']=function(_0x44d034,_0x4622c7){const _0x256b61=_0x5bbf8b,_0x541450=this;this['sequence'][_0x256b61('0x18')](function(){const _0xbca52f=_0x256b61;return _0x541450['queryInterface'][_0xbca52f('0x1f')](_0x44d034,_0x4622c7)['then'](function(){const _0x2ad2eb=_0xbca52f;logger[_0x2ad2eb('0x5')]('Removed\x20column\x20%s\x20from\x20%s',_0x4622c7,_0x44d034);})[_0xbca52f('0x6')](function(_0x2adfc8){const _0x1fdf03=_0xbca52f;logger[_0x1fdf03('0x5')](util['inspect'](_0x2adfc8,{'showHidden':![],'depth':null}));});});},Migration[_0x5bbf8b('0x0')][_0x5bbf8b('0x13')]=function(_0x56dbfd,_0x42da04,_0xedeb13){const _0x4284e2=_0x5bbf8b,_0x39345f=this;this['sequence'][_0x4284e2('0x18')](function(){const _0x51a037=_0x4284e2;return _0x39345f[_0x51a037('0x25')][_0x51a037('0x13')](_0x56dbfd,_0x42da04,_0xedeb13)[_0x51a037('0xf')](function(){logger['info']('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x42da04,_0xedeb13,_0x56dbfd);})[_0x51a037('0x6')](function(_0x1ec8a0){const _0x2c4383=_0x51a037;logger[_0x2c4383('0x5')](util[_0x2c4383('0xb')](_0x1ec8a0,{'showHidden':![],'depth':null}));});});},Migration[_0x5bbf8b('0x0')][_0x5bbf8b('0x21')]=function(_0xcfe830){const _0x3351c5=_0x5bbf8b;this[_0x3351c5('0x11')][_0x3351c5('0x18')](function(){return _0xcfe830();});},module[_0x5bbf8b('0x1b')]={'up':function(_0x5f48fd){return new Promise(function(_0x306116){const _0xbc0023=a1019_0x2182,_0x3e0579=new Migration(_0x5f48fd);_0x3e0579[_0xbc0023('0x17')](_0xbc0023('0x2'),[_0xbc0023('0x22'),'lastName',_0xbc0023('0xd'),_0xbc0023('0xc'),_0xbc0023('0x16'),_0xbc0023('0xe')],{'indexName':_0xbc0023('0x14'),'indicesType':_0xbc0023('0x1')}),_0x3e0579[_0xbc0023('0x21')](_0x306116);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/2.5.7.js b/server/migrations/2.5.7.js new file mode 100644 index 0000000..22281f6 --- /dev/null +++ b/server/migrations/2.5.7.js @@ -0,0 +1 @@ +const a1020_0x3a45=['indicesType','migration','catch','chat_messages','exports','sequence','square_messages','renameColumn','then','providerResponse','enqueue','providerName','whatsapp_messages','addIndex','removeIndex','final','Changed\x20column\x20%s\x20in\x20table\x20%s','stringify','sms_messages','sequelize','info','addIndex\x20%s\x20%s\x20%s\x20[%s]','removeColumn','queryInterface','changeColumn','openchannel_messages','query','finally','removeIndex\x20%s\x20%s','table\x20dropped\x20%s','STRING','addColumn','tail','inspect','dropTable','prototype','Added\x20column\x20%s\x20to\x20%s','join','TEXT','indexName'];(function(_0x28395a,_0x3a45b9){const _0x37d26d=function(_0x3e17b3){while(--_0x3e17b3){_0x28395a['push'](_0x28395a['shift']());}};_0x37d26d(++_0x3a45b9);}(a1020_0x3a45,0x112));const a1020_0x37d2=function(_0x28395a,_0x3a45b9){_0x28395a=_0x28395a-0x0;let _0x37d26d=a1020_0x3a45[_0x28395a];return _0x37d26d;};const _0x3a7665=a1020_0x37d2;'use strict';const util=require('util'),logger=require('../config/logger')(_0x3a7665('0x7')),Sequence=function(){};Sequence[_0x3a7665('0x1')][_0x3a7665('0x10')]=function(_0x3e17b3){const _0x3c04a2=_0x3a7665;this[_0x3c04a2('0x26')]=this[_0x3c04a2('0x26')]?this['tail'][_0x3c04a2('0x21')](_0x3e17b3):_0x3e17b3();};const Migration=function(_0x14b0fc){const _0x1df6b5=_0x3a7665;this[_0x1df6b5('0x1d')]=_0x14b0fc,this[_0x1df6b5('0xb')]=new Sequence();};Migration['prototype'][_0x3a7665('0x1e')]=function(_0x524e93,_0x28372e,_0x2b0906){const _0x558971=_0x3a7665,_0x51c218=this;this[_0x558971('0xb')][_0x558971('0x10')](function(){const _0x1e3721=_0x558971;return _0x51c218[_0x1e3721('0x1d')]['changeColumn'](_0x524e93,_0x28372e,_0x2b0906)[_0x1e3721('0xe')](function(){const _0x102e73=_0x1e3721;logger[_0x102e73('0x1a')](_0x102e73('0x16'),_0x28372e,_0x524e93);})[_0x1e3721('0x8')](function(_0x8532b){const _0x1bd53c=_0x1e3721;logger[_0x1bd53c('0x1a')](JSON[_0x1bd53c('0x17')](_0x8532b));});});},Migration[_0x3a7665('0x1')]['addColumn']=function(_0x275252,_0x557c8c,_0x1cba4f){const _0x34b6c1=_0x3a7665,_0x9cff49=this;this[_0x34b6c1('0xb')][_0x34b6c1('0x10')](function(){const _0xa46d7=_0x34b6c1;return _0x9cff49[_0xa46d7('0x1d')][_0xa46d7('0x25')](_0x275252,_0x557c8c,_0x1cba4f)['then'](function(){const _0x2b40d0=_0xa46d7;logger[_0x2b40d0('0x1a')](_0x2b40d0('0x2'),_0x557c8c,_0x275252);})['catch'](function(_0x2a4772){const _0x3aeca1=_0xa46d7;logger[_0x3aeca1('0x1a')](JSON['stringify'](_0x2a4772));});});},Migration['prototype'][_0x3a7665('0x0')]=function(_0x3cb068){const _0x3a4658=_0x3a7665,_0x360204=this;this[_0x3a4658('0xb')]['enqueue'](function(){const _0x157b5b=_0x3a4658;return _0x360204[_0x157b5b('0x1d')][_0x157b5b('0x0')](_0x3cb068,{'force':!![]})['then'](function(){const _0x6a5368=_0x157b5b;logger[_0x6a5368('0x1a')](_0x6a5368('0x23'),_0x3cb068);})[_0x157b5b('0x8')](function(_0xf762f7){const _0x3c289d=_0x157b5b;logger[_0x3c289d('0x1a')](JSON[_0x3c289d('0x17')](_0xf762f7));});});},Migration[_0x3a7665('0x1')][_0x3a7665('0x13')]=function(_0x7f8573,_0x15ac46,_0x24610b){const _0xe28f61=_0x3a7665,_0x15f5b6=this;this['sequence'][_0xe28f61('0x10')](function(){const _0x39f712=_0xe28f61;return _0x15f5b6[_0x39f712('0x1d')]['addIndex'](_0x7f8573,_0x15ac46,{'indexName':_0x24610b[_0x39f712('0x5')],'indicesType':_0x24610b[_0x39f712('0x6')]})[_0x39f712('0xe')](function(){const _0x4edfad=_0x39f712;logger['info'](_0x4edfad('0x1b'),_0x7f8573,_0x15ac46[_0x4edfad('0x3')](','),_0x24610b[_0x4edfad('0x5')],_0x24610b[_0x4edfad('0x6')]);})[_0x39f712('0x8')](function(_0x1b4597){const _0x51e10a=_0x39f712;logger['info'](JSON[_0x51e10a('0x17')](_0x1b4597));});});},Migration['prototype']['removeIndex']=function(_0x415949,_0x29a98f){const _0x446383=_0x3a7665,_0x1657e0=this;this[_0x446383('0xb')][_0x446383('0x10')](function(){const _0x2d9c80=_0x446383;return _0x1657e0[_0x2d9c80('0x1d')][_0x2d9c80('0x14')](_0x415949,_0x29a98f)[_0x2d9c80('0xe')](function(){const _0x497b5c=_0x2d9c80;logger[_0x497b5c('0x1a')](_0x497b5c('0x22'),_0x415949,_0x29a98f);})[_0x2d9c80('0x8')](function(_0x122750){const _0x12fd6c=_0x2d9c80;logger[_0x12fd6c('0x1a')](JSON[_0x12fd6c('0x17')](_0x122750));});});},Migration[_0x3a7665('0x1')][_0x3a7665('0x20')]=function(_0x39efd2){const _0x5dc962=_0x3a7665,_0x138b24=this;this['sequence'][_0x5dc962('0x10')](function(){const _0x266de1=_0x5dc962;return _0x138b24[_0x266de1('0x1d')][_0x266de1('0x19')][_0x266de1('0x20')](_0x39efd2)['then'](function(){const _0x2bc05e=_0x266de1;logger[_0x2bc05e('0x1a')]('query\x20%s',_0x39efd2);})['catch'](function(_0x119df3){const _0x54fcdd=_0x266de1;logger[_0x54fcdd('0x1a')](JSON['stringify'](_0x119df3));});});},Migration[_0x3a7665('0x1')][_0x3a7665('0x1c')]=function(_0x18ab1e,_0x54fbb6){const _0xec4ca0=_0x3a7665,_0x56f1a1=this;this[_0xec4ca0('0xb')][_0xec4ca0('0x10')](function(){const _0x16dfcf=_0xec4ca0;return _0x56f1a1['queryInterface']['removeColumn'](_0x18ab1e,_0x54fbb6)[_0x16dfcf('0xe')](function(){const _0x3e5cec=_0x16dfcf;logger[_0x3e5cec('0x1a')]('Removed\x20column\x20%s\x20from\x20%s',_0x54fbb6,_0x18ab1e);})[_0x16dfcf('0x8')](function(_0x11d52d){const _0x21591f=_0x16dfcf;logger[_0x21591f('0x1a')](util[_0x21591f('0x27')](_0x11d52d,{'showHidden':![],'depth':null}));});});},Migration[_0x3a7665('0x1')][_0x3a7665('0xd')]=function(_0x3b3359,_0x35eacd,_0x59bc77){const _0x714268=_0x3a7665,_0x2738b5=this;this[_0x714268('0xb')][_0x714268('0x10')](function(){const _0x18b3e3=_0x714268;return _0x2738b5[_0x18b3e3('0x1d')][_0x18b3e3('0xd')](_0x3b3359,_0x35eacd,_0x59bc77)[_0x18b3e3('0xe')](function(){const _0x490374=_0x18b3e3;logger[_0x490374('0x1a')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x35eacd,_0x59bc77,_0x3b3359);})[_0x18b3e3('0x8')](function(_0x3fd095){const _0x296fc1=_0x18b3e3;logger[_0x296fc1('0x1a')](util[_0x296fc1('0x27')](_0x3fd095,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x3a7665('0x15')]=function(_0xaf534e){const _0x1222a0=_0x3a7665;this[_0x1222a0('0xb')]['enqueue'](function(){return _0xaf534e();});},module[_0x3a7665('0xa')]={'up':function(_0x3d93e5,_0x1272cc){return new Promise(function(_0x568e33){const _0x46bf2d=a1020_0x37d2,_0x19f172=new Migration(_0x3d93e5);_0x19f172[_0x46bf2d('0x25')](_0x46bf2d('0x9'),_0x46bf2d('0x11'),{'type':_0x1272cc['STRING']}),_0x19f172[_0x46bf2d('0x25')]('chat_messages',_0x46bf2d('0xf'),{'type':_0x1272cc['TEXT']}),_0x19f172[_0x46bf2d('0x25')](_0x46bf2d('0x1f'),_0x46bf2d('0x11'),{'type':_0x1272cc[_0x46bf2d('0x24')]}),_0x19f172[_0x46bf2d('0x25')](_0x46bf2d('0x1f'),_0x46bf2d('0xf'),{'type':_0x1272cc[_0x46bf2d('0x4')]}),_0x19f172[_0x46bf2d('0x25')](_0x46bf2d('0x18'),_0x46bf2d('0x11'),{'type':_0x1272cc[_0x46bf2d('0x24')]}),_0x19f172[_0x46bf2d('0x25')](_0x46bf2d('0x18'),_0x46bf2d('0xf'),{'type':_0x1272cc[_0x46bf2d('0x4')]}),_0x19f172[_0x46bf2d('0x25')](_0x46bf2d('0x12'),_0x46bf2d('0x11'),{'type':_0x1272cc[_0x46bf2d('0x24')]}),_0x19f172[_0x46bf2d('0x25')]('whatsapp_messages',_0x46bf2d('0xf'),{'type':_0x1272cc[_0x46bf2d('0x4')]}),_0x19f172[_0x46bf2d('0x25')](_0x46bf2d('0xc'),_0x46bf2d('0x11'),{'type':_0x1272cc[_0x46bf2d('0x24')]}),_0x19f172[_0x46bf2d('0x25')](_0x46bf2d('0xc'),_0x46bf2d('0xf'),{'type':_0x1272cc[_0x46bf2d('0x4')]}),_0x19f172[_0x46bf2d('0x15')](_0x568e33);});},'down':function(){}}; \ No newline at end of file diff --git a/server/migrations/3.0.0-alpha.js b/server/migrations/3.0.0-alpha.js index ec7c5a1..707fcfb 100644 --- a/server/migrations/3.0.0-alpha.js +++ b/server/migrations/3.0.0-alpha.js @@ -1 +1 @@ -const a1020_0x4ffd=['indicesType','then','queryInterface','ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`','addColumn','util','sequence','stringify','table\x20dropped\x20%s','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT','Added\x20column\x20%s\x20to\x20%s','enqueue','renameColumn','removeIndex','indexName','join','inspect','prototype','addIndex\x20%s\x20%s\x20%s\x20[%s]','Removed\x20column\x20%s\x20from\x20%s','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','dropTable','removeIndex\x20%s\x20%s','Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s','removeColumn','changeColumn','final','tail','migration','query','sequelize','finally','catch','../config/logger','query\x20%s','addIndex','info'];(function(_0x5f9d95,_0x4ffd5d){const _0x12baa1=function(_0x351eda){while(--_0x351eda){_0x5f9d95['push'](_0x5f9d95['shift']());}};_0x12baa1(++_0x4ffd5d);}(a1020_0x4ffd,0x14b));const a1020_0x12ba=function(_0x5f9d95,_0x4ffd5d){_0x5f9d95=_0x5f9d95-0x0;let _0x12baa1=a1020_0x4ffd[_0x5f9d95];return _0x12baa1;};const _0x212fc2=a1020_0x12ba;'use strict';const util=require(_0x212fc2('0x7')),logger=require(_0x212fc2('0x23'))(_0x212fc2('0x1e')),Sequence=function(){};Sequence[_0x212fc2('0x13')]['enqueue']=function(_0x351eda){const _0x16c781=_0x212fc2;this[_0x16c781('0x1d')]=this[_0x16c781('0x1d')]?this[_0x16c781('0x1d')][_0x16c781('0x21')](_0x351eda):_0x351eda();};const Migration=function(_0x11b25e){const _0x196b2d=_0x212fc2;this[_0x196b2d('0x4')]=_0x11b25e,this[_0x196b2d('0x8')]=new Sequence();};Migration['prototype'][_0x212fc2('0x1b')]=function(_0x2d2fd1,_0x52a1b9,_0xfef298){const _0x1f74ce=_0x212fc2,_0x41e662=this;this[_0x1f74ce('0x8')]['enqueue'](function(){const _0x574df4=_0x1f74ce;return _0x41e662[_0x574df4('0x4')][_0x574df4('0x1b')](_0x2d2fd1,_0x52a1b9,_0xfef298)[_0x574df4('0x3')](function(){const _0x32c817=_0x574df4;logger[_0x32c817('0x1')]('Changed\x20column\x20%s\x20in\x20table\x20%s',_0x52a1b9,_0x2d2fd1);})[_0x574df4('0x22')](function(_0x18d3f5){const _0x1349c4=_0x574df4;logger[_0x1349c4('0x1')](JSON[_0x1349c4('0x9')](_0x18d3f5));});});},Migration[_0x212fc2('0x13')][_0x212fc2('0x6')]=function(_0x3475f3,_0x4d64cf,_0x4538a1){const _0x4304f4=_0x212fc2,_0x320e3c=this;this['sequence'][_0x4304f4('0xd')](function(){const _0x22cac7=_0x4304f4;return _0x320e3c[_0x22cac7('0x4')][_0x22cac7('0x6')](_0x3475f3,_0x4d64cf,_0x4538a1)[_0x22cac7('0x3')](function(){const _0x263231=_0x22cac7;logger[_0x263231('0x1')](_0x263231('0xc'),_0x4d64cf,_0x3475f3);})[_0x22cac7('0x22')](function(_0x53778b){const _0xb0bbed=_0x22cac7;logger[_0xb0bbed('0x1')](JSON[_0xb0bbed('0x9')](_0x53778b));});});},Migration[_0x212fc2('0x13')][_0x212fc2('0x17')]=function(_0x2f0c0e){const _0x9dc442=_0x212fc2,_0x40770b=this;this[_0x9dc442('0x8')][_0x9dc442('0xd')](function(){const _0x15e8fa=_0x9dc442;return _0x40770b['queryInterface'][_0x15e8fa('0x17')](_0x2f0c0e,{'force':!![]})[_0x15e8fa('0x3')](function(){const _0x16ea9c=_0x15e8fa;logger['info'](_0x16ea9c('0xa'),_0x2f0c0e);})['catch'](function(_0x1680e9){const _0x2fc3f0=_0x15e8fa;logger[_0x2fc3f0('0x1')](JSON['stringify'](_0x1680e9));});});},Migration[_0x212fc2('0x13')][_0x212fc2('0x0')]=function(_0x4f95c7,_0x1ed718,_0x1a66af){const _0x54ec21=_0x212fc2,_0x2b44ac=this;this[_0x54ec21('0x8')][_0x54ec21('0xd')](function(){const _0x11794a=_0x54ec21;return _0x2b44ac[_0x11794a('0x4')][_0x11794a('0x0')](_0x4f95c7,_0x1ed718,{'indexName':_0x1a66af[_0x11794a('0x10')],'indicesType':_0x1a66af[_0x11794a('0x2')]})[_0x11794a('0x3')](function(){const _0x496cc1=_0x11794a;logger[_0x496cc1('0x1')](_0x496cc1('0x14'),_0x4f95c7,_0x1ed718[_0x496cc1('0x11')](','),_0x1a66af[_0x496cc1('0x10')],_0x1a66af[_0x496cc1('0x2')]);})[_0x11794a('0x22')](function(_0x21a0a2){const _0x4839b4=_0x11794a;logger[_0x4839b4('0x1')](JSON[_0x4839b4('0x9')](_0x21a0a2));});});},Migration[_0x212fc2('0x13')][_0x212fc2('0xf')]=function(_0x506f4e,_0x501116){const _0xcdc4ce=_0x212fc2,_0x117a5a=this;this[_0xcdc4ce('0x8')]['enqueue'](function(){const _0x33a7e9=_0xcdc4ce;return _0x117a5a[_0x33a7e9('0x4')]['removeIndex'](_0x506f4e,_0x501116)[_0x33a7e9('0x3')](function(){const _0x21ac83=_0x33a7e9;logger[_0x21ac83('0x1')](_0x21ac83('0x18'),_0x506f4e,_0x501116);})['catch'](function(_0x557296){const _0x363507=_0x33a7e9;logger[_0x363507('0x1')](JSON[_0x363507('0x9')](_0x557296));});});},Migration[_0x212fc2('0x13')][_0x212fc2('0x1f')]=function(_0x459292){const _0x6fc516=_0x212fc2,_0x53a760=this;this[_0x6fc516('0x8')]['enqueue'](function(){const _0x23da95=_0x6fc516;return _0x53a760[_0x23da95('0x4')][_0x23da95('0x20')]['query'](_0x459292)[_0x23da95('0x3')](function(){const _0x451549=_0x23da95;logger[_0x451549('0x1')](_0x451549('0x24'),_0x459292);})['catch'](function(_0x2c709b){const _0x160061=_0x23da95;logger[_0x160061('0x1')](JSON[_0x160061('0x9')](_0x2c709b));});});},Migration[_0x212fc2('0x13')]['removeColumn']=function(_0x977e7c,_0x2bfe45){const _0x5725f5=_0x212fc2,_0x876873=this;this[_0x5725f5('0x8')][_0x5725f5('0xd')](function(){const _0x5231e6=_0x5725f5;return _0x876873[_0x5231e6('0x4')][_0x5231e6('0x1a')](_0x977e7c,_0x2bfe45)['then'](function(){const _0x46f542=_0x5231e6;logger[_0x46f542('0x1')](_0x46f542('0x15'),_0x2bfe45,_0x977e7c);})['catch'](function(_0x21bd17){const _0x3afdba=_0x5231e6;logger[_0x3afdba('0x1')](util[_0x3afdba('0x12')](_0x21bd17,{'showHidden':![],'depth':null}));});});},Migration['prototype'][_0x212fc2('0xe')]=function(_0x3b4de0,_0x2da46d,_0x2f1e7e){const _0x23ba05=_0x212fc2,_0x31f7a6=this;this[_0x23ba05('0x8')][_0x23ba05('0xd')](function(){const _0x384406=_0x23ba05;return _0x31f7a6[_0x384406('0x4')]['renameColumn'](_0x3b4de0,_0x2da46d,_0x2f1e7e)[_0x384406('0x3')](function(){const _0x15fdb5=_0x384406;logger[_0x15fdb5('0x1')](_0x15fdb5('0x19'),_0x2da46d,_0x2f1e7e,_0x3b4de0);})['catch'](function(_0xe2a75e){const _0x3b32ac=_0x384406;logger[_0x3b32ac('0x1')](util['inspect'](_0xe2a75e,{'showHidden':![],'depth':null}));});});},Migration[_0x212fc2('0x13')][_0x212fc2('0x1c')]=function(_0xd0e2fd){const _0x15e7cd=_0x212fc2;this[_0x15e7cd('0x8')]['enqueue'](function(){return _0xd0e2fd();});},module['exports']={'up':function(_0x1a3691){return new Promise(function(_0x3df767){const _0x2fbcdf=a1020_0x12ba,_0x3b64d6=new Migration(_0x1a3691);_0x3b64d6[_0x2fbcdf('0x1f')](_0x2fbcdf('0x5')),_0x3b64d6[_0x2fbcdf('0x1f')](_0x2fbcdf('0x16')),_0x3b64d6[_0x2fbcdf('0x1f')](_0x2fbcdf('0xb')),_0x3b64d6[_0x2fbcdf('0x1c')](_0x3df767);});},'down':function(){}}; \ No newline at end of file +const a1021_0x18d9=['removeIndex','exports','table\x20dropped\x20%s','Removed\x20column\x20%s\x20from\x20%s','ALTER\x20TABLE\x20users\x20ADD\x20CONSTRAINT\x20`users_ibfk_1`\x20FOREIGN\x20KEY\x20(userProfileId)\x20REFERENCES\x20user_profiles(id)\x20ON\x20DELETE\x20RESTRICT','addIndex','then','stringify','util','tail','addIndex\x20%s\x20%s\x20%s\x20[%s]','DROP\x20INDEX\x20`users_ibfk_1`\x20ON\x20users','sequelize','queryInterface','addColumn','prototype','final','finally','catch','removeIndex\x20%s\x20%s','removeColumn','enqueue','sequence','Changed\x20column\x20%s\x20in\x20table\x20%s','dropTable','query','inspect','renameColumn','join','Added\x20column\x20%s\x20to\x20%s','info','indicesType','migration'];(function(_0x13859a,_0x18d96c){const _0x34954a=function(_0x32c901){while(--_0x32c901){_0x13859a['push'](_0x13859a['shift']());}};_0x34954a(++_0x18d96c);}(a1021_0x18d9,0x108));const a1021_0x3495=function(_0x13859a,_0x18d96c){_0x13859a=_0x13859a-0x0;let _0x34954a=a1021_0x18d9[_0x13859a];return _0x34954a;};const _0x4f17b4=a1021_0x3495;'use strict';const util=require(_0x4f17b4('0x8')),logger=require('../config/logger')(_0x4f17b4('0x20')),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x32c901){const _0x24dfd7=_0x4f17b4;this[_0x24dfd7('0x9')]=this[_0x24dfd7('0x9')]?this[_0x24dfd7('0x9')][_0x24dfd7('0x11')](_0x32c901):_0x32c901();};const Migration=function(_0x13edd8){const _0x339ead=_0x4f17b4;this[_0x339ead('0xd')]=_0x13edd8,this[_0x339ead('0x16')]=new Sequence();};Migration[_0x4f17b4('0xf')]['changeColumn']=function(_0x3efaf8,_0x5c1e39,_0x40a51e){const _0x48350c=_0x4f17b4,_0x348b9d=this;this[_0x48350c('0x16')][_0x48350c('0x15')](function(){const _0x580607=_0x48350c;return _0x348b9d[_0x580607('0xd')]['changeColumn'](_0x3efaf8,_0x5c1e39,_0x40a51e)[_0x580607('0x6')](function(){const _0x47ac00=_0x580607;logger[_0x47ac00('0x1e')](_0x47ac00('0x17'),_0x5c1e39,_0x3efaf8);})[_0x580607('0x12')](function(_0x20bd6c){const _0x56f881=_0x580607;logger[_0x56f881('0x1e')](JSON[_0x56f881('0x7')](_0x20bd6c));});});},Migration[_0x4f17b4('0xf')]['addColumn']=function(_0x106bf1,_0x162eed,_0x2ca82b){const _0x4a429d=_0x4f17b4,_0xd75b3f=this;this[_0x4a429d('0x16')]['enqueue'](function(){const _0x5b4c21=_0x4a429d;return _0xd75b3f[_0x5b4c21('0xd')][_0x5b4c21('0xe')](_0x106bf1,_0x162eed,_0x2ca82b)[_0x5b4c21('0x6')](function(){const _0x53641a=_0x5b4c21;logger[_0x53641a('0x1e')](_0x53641a('0x1d'),_0x162eed,_0x106bf1);})[_0x5b4c21('0x12')](function(_0xa67e9b){const _0x149e0b=_0x5b4c21;logger[_0x149e0b('0x1e')](JSON[_0x149e0b('0x7')](_0xa67e9b));});});},Migration[_0x4f17b4('0xf')][_0x4f17b4('0x18')]=function(_0x3d6813){const _0x970aaf=_0x4f17b4,_0x9efe78=this;this['sequence'][_0x970aaf('0x15')](function(){const _0x2938e9=_0x970aaf;return _0x9efe78[_0x2938e9('0xd')][_0x2938e9('0x18')](_0x3d6813,{'force':!![]})[_0x2938e9('0x6')](function(){const _0x3bfd14=_0x2938e9;logger[_0x3bfd14('0x1e')](_0x3bfd14('0x2'),_0x3d6813);})[_0x2938e9('0x12')](function(_0x46e87e){const _0x242bdf=_0x2938e9;logger['info'](JSON[_0x242bdf('0x7')](_0x46e87e));});});},Migration[_0x4f17b4('0xf')]['addIndex']=function(_0xbc6f26,_0x16c63c,_0x5f2cfc){const _0x48c098=_0x4f17b4,_0x5984a6=this;this[_0x48c098('0x16')][_0x48c098('0x15')](function(){const _0x296e7b=_0x48c098;return _0x5984a6['queryInterface'][_0x296e7b('0x5')](_0xbc6f26,_0x16c63c,{'indexName':_0x5f2cfc['indexName'],'indicesType':_0x5f2cfc['indicesType']})['then'](function(){const _0x489138=_0x296e7b;logger[_0x489138('0x1e')](_0x489138('0xa'),_0xbc6f26,_0x16c63c[_0x489138('0x1c')](','),_0x5f2cfc['indexName'],_0x5f2cfc[_0x489138('0x1f')]);})['catch'](function(_0x33fa5b){const _0x5bd2cf=_0x296e7b;logger[_0x5bd2cf('0x1e')](JSON[_0x5bd2cf('0x7')](_0x33fa5b));});});},Migration['prototype']['removeIndex']=function(_0x36cd50,_0x15eeb3){const _0x31ffbd=_0x4f17b4,_0x1449cf=this;this['sequence'][_0x31ffbd('0x15')](function(){const _0x30f312=_0x31ffbd;return _0x1449cf['queryInterface'][_0x30f312('0x0')](_0x36cd50,_0x15eeb3)[_0x30f312('0x6')](function(){const _0x31f1fc=_0x30f312;logger[_0x31f1fc('0x1e')](_0x31f1fc('0x13'),_0x36cd50,_0x15eeb3);})[_0x30f312('0x12')](function(_0x59843){const _0x156b6d=_0x30f312;logger[_0x156b6d('0x1e')](JSON['stringify'](_0x59843));});});},Migration['prototype'][_0x4f17b4('0x19')]=function(_0x383794){const _0x5ef57f=_0x4f17b4,_0x50cec5=this;this['sequence'][_0x5ef57f('0x15')](function(){const _0x4cbee0=_0x5ef57f;return _0x50cec5[_0x4cbee0('0xd')][_0x4cbee0('0xc')][_0x4cbee0('0x19')](_0x383794)[_0x4cbee0('0x6')](function(){const _0x32adea=_0x4cbee0;logger[_0x32adea('0x1e')]('query\x20%s',_0x383794);})['catch'](function(_0x2e4304){const _0x4fb004=_0x4cbee0;logger['info'](JSON[_0x4fb004('0x7')](_0x2e4304));});});},Migration[_0x4f17b4('0xf')][_0x4f17b4('0x14')]=function(_0x3ed858,_0x38e090){const _0x149cf4=_0x4f17b4,_0x4ee0f8=this;this[_0x149cf4('0x16')][_0x149cf4('0x15')](function(){const _0xc9c25a=_0x149cf4;return _0x4ee0f8[_0xc9c25a('0xd')][_0xc9c25a('0x14')](_0x3ed858,_0x38e090)[_0xc9c25a('0x6')](function(){const _0x33efe3=_0xc9c25a;logger[_0x33efe3('0x1e')](_0x33efe3('0x3'),_0x38e090,_0x3ed858);})[_0xc9c25a('0x12')](function(_0x55555c){const _0x3c2aad=_0xc9c25a;logger[_0x3c2aad('0x1e')](util[_0x3c2aad('0x1a')](_0x55555c,{'showHidden':![],'depth':null}));});});},Migration[_0x4f17b4('0xf')]['renameColumn']=function(_0x3af20a,_0x3db2eb,_0x512e31){const _0x5ebda1=_0x4f17b4,_0x2febe0=this;this['sequence'][_0x5ebda1('0x15')](function(){const _0x2470c2=_0x5ebda1;return _0x2febe0[_0x2470c2('0xd')][_0x2470c2('0x1b')](_0x3af20a,_0x3db2eb,_0x512e31)[_0x2470c2('0x6')](function(){const _0x135240=_0x2470c2;logger[_0x135240('0x1e')]('Renamed\x20column\x20from\x20%s\x20to\x20%s\x20on\x20%s',_0x3db2eb,_0x512e31,_0x3af20a);})['catch'](function(_0x251c3d){const _0x54ab6e=_0x2470c2;logger['info'](util[_0x54ab6e('0x1a')](_0x251c3d,{'showHidden':![],'depth':null}));});});},Migration[_0x4f17b4('0xf')][_0x4f17b4('0x10')]=function(_0x2ea737){const _0x1d355b=_0x4f17b4;this[_0x1d355b('0x16')][_0x1d355b('0x15')](function(){return _0x2ea737();});},module[_0x4f17b4('0x1')]={'up':function(_0x559768){return new Promise(function(_0x5b16da){const _0x365b0a=a1021_0x3495,_0x122b8b=new Migration(_0x559768);_0x122b8b[_0x365b0a('0x19')]('ALTER\x20TABLE\x20users\x20DROP\x20FOREIGN\x20KEY\x20`users_ibfk_1`'),_0x122b8b[_0x365b0a('0x19')](_0x365b0a('0xb')),_0x122b8b[_0x365b0a('0x19')](_0x365b0a('0x4')),_0x122b8b['final'](_0x5b16da);});},'down':function(){}}; \ No newline at end of file diff --git a/server/mysqldb/index.js b/server/mysqldb/index.js index 7818dc0..5afe688 100644 --- a/server/mysqldb/index.js +++ b/server/mysqldb/index.js @@ -1 +1 @@ -const a1021_0x6f7c=['SquareProjects','../api/userChatQueue/userChatQueue.model','OpenchannelApplication','../api/cmCompany/cmCompany.model','Schedule','HopperBlacks','SmsInteractions','AnalyticMetric','../api/smsQueue/smsQueue.model','exports','../api/cmHopper/cmHopper.model','FaxApplications','chat_group_has_users','ZohoAccount','DeskConfiguration','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','Queue','SmsQueues','Sound','MailTransferReport','../api/faxAccount/faxAccount.model','Recordings','Interactions','user_has_whatsapp_interactions','OpenchannelAccountId','IntervalId','UserWhatsappInteractions','Notification','../api/voiceRecording/voiceRecording.model','username','MemberReport','FreshdeskField','AnalyticCustomReport','user_has_fax_interactions','SquareDetailsReport','Hoppers','../api/cmHopperFinal/cmHopperFinal.model','Disposition','../api/intSalesforceField/intSalesforceField.model','FreshdeskConfiguration','SmsAccounts','AutomationAllId','../api/network/network.model','SmsQueueId','user_has_chat_interactions','Actions','../api/mailQueueReport/mailQueueReport.model','Sounds','user_has_fax_accounts','SmsMessage','Description','belongsTo','ZohoConfiguration','JscriptySessionReport','VoiceQueueId','VoiceRecording','WhatsappInteractions','ZendeskConfiguration','TrunkId','ChatWebsite','SquareRecording','SalesforceConfiguration','../api/faxInteraction/faxInteraction.model','WhatsappQueueReport','SmsApplications','SmsInteractionId','Tag','openchannel_interaction_has_tags','OpenchannelAccounts','mandatoryDispositionPauseId','sequelize','MailQueueReport','Interaction','../api/intDeskAccount/intDeskAccount.model','OneAny','../api/tag/tag.model','team_has_mail_queues','OpenchannelInteractionId','../api/userVoiceQueueRt/userVoiceQueueRt.model','SalesforceField','../api/userVoiceQueue/userVoiceQueue.model','user_has_voice_prefixes','SmsQueue','whatsapp_interaction_has_tags','HopperFinals','UserChatQueue','../api/cmContact/cmContact.model','../api/intVtigerAccount/intVtigerAccount.model','TagId','OpenchannelQueue','userProfileId','Intervals','../api/campaign/campaign.model','../api/chatGroup/chatGroup.model','fax_interaction_has_tags','AnalyticFieldReport','ZendeskField','sectionId','password','Lists','../api/chatWebsite/chatWebsite.model','../api/cdr/cdr.model','ChatProactiveAction','FaxApplication','MailInteraction','int_desk_configuration_has_tags','ChatInternalMessage','defaultsDeep','ChatInteraction','JscriptyAnswerReport','FreshsalesField','VtigerField','../api/chatQueue/chatQueue.model','../api/integration/integration.model','../api/analyticDefaultReport/analyticDefaultReport.model','Trunk','Contacts','UserOpenchannelQueue','Applications','UserProfileSection','../api/chatTransferReport/chatTransferReport.model','FaxQueue','ChatQueues','../api/variable/variable.model','FaxAccount','QueueCalls','MailAccounts','ToMailAccountId','HopperHistory','team_has_voice_queues','../api/template/template.model','../api/whatsappInteraction/whatsappInteraction.model','ZohoField','../api/userProfileResource/userProfileResource.model','../api/sound/sound.model','TrunkBackup','mail_interaction_has_tags','FromUserId','FaxMessage','ServicenowAccount','ChatMessage','Extensions','ListId','../api/userMailQueue/userMailQueue.model','mysqlUser','ToChatQueueId','VoiceQueueReport','Website','UserChatInteractions','campaigns_has_cm_blacklists','../api/userProfileSection/userProfileSection.model','Contact','../api/voiceQueueReport/voiceQueueReport.model','../api/analyticCustomReport/analyticCustomReport.model','WhatsappAccounts','OpenchannelMessage','team_has_whatsapp_queues','Imap','FaxQueues','ToAgent','SpiedAgents','../api/voiceMusicOnHold/voiceMusicOnHold.model','Users','int_freshdesk_configuration_has_tags','CmContact','Attachment','WhatsappApplication','Answers','ToSmsQueueId','Owner','FaxInteractionId','CompanyId','../api/intSugarcrmAccount/intSugarcrmAccount.model','ServicenowField','UserId','ToFaxQueueId','UserSmsInteractions','JscriptyProject','MetricId','../api/mailMessage/mailMessage.model','ToChatWebsiteId','CmCompany','UserVoiceQueue','user_has_teams','WhatsappMessage','ChatTransferReport','../api/openchannelMessage/openchannelMessage.model','../api/intFreshsalesField/intFreshsalesField.model','Notifications','DescriptionId','../api/intServicenowAccount/intServicenowAccount.model','../api/smsQueueReport/smsQueueReport.model','CmHopperHistory','voice_queues_has_cm_lists','../api/voiceExtension/voiceExtension.model','ToMailQueueId','VoicePrefixes','ParentId','Action','../api/userOpenchannelQueue/userOpenchannelQueue.model','UserWhatsappQueue','../api/chatInternalMessage/chatInternalMessage.model','../api/voiceCallReport/voiceCallReport.model','../api/cmList/cmList.model','info','OwnerId','List','AgentReports','WhatsappQueueId','user_has_sms_accounts','../api/memberReport/memberReport.model','ChatGroup','Plugin','jstz','UserProfileResource','ProactiveActions','AllCondition','FaxAccountId','DashboardItem','team_has_sms_queues','user_has_mail_interactions','ZendeskAccount','../api/mailApplication/mailApplication.model','Resources','VoiceMusicOnHold','MailAccount','OpenchannelInteractions','../api/voiceAgentReport/voiceAgentReport.model','CmHopperFinal','VoiceContext','belongsToMany','UserVoiceQueueRt','user_has_sms_interactions','Cdr','AnyCondition','OneAll','OpenchannelTransferReport','FromFaxAccountId','Dashboard','Dynamics365Field','../api/smsTransferReport/smsTransferReport.model','../api/cmHopperHistory/cmHopperHistory.model','Template','User','../api/integrationReport/integrationReport.model','name','cm_user_has_lists','SugarcrmField','utf8_general_ci','ToAccount','ToFaxAccountId','SugarcrmConfiguration','utf8mb4','../api/cmCustomField/cmCustomField.model','VoiceExtension','../api/cloudProvider/cloudProvider.model','../api/whatsappQueueReport/whatsappQueueReport.model','CustomReportId','FaxQueueReport','Smtp','Field','Dynamics365Configuration','int_zendesk_configuration_has_tags','../api/mailServerOut/mailServerOut.model','UserFaxQueue','../api/faxQueueReport/faxQueueReport.model','ReportAgentPreview','../api/voiceQueuesLog/voiceQueuesLog.model','SessionId','mysqlPassword','../api/intServicenowField/intServicenowField.model','VoiceQueues','../api/pause/pause.model','../api/dashboard/dashboard.model','VoiceAgentReport','Dispositions','ChatQueueId','../api/voiceDialReport/voiceDialReport.model','AccountId','CmHopper','user_has_whatsapp_accounts','user_has_mail_accounts','FaxInteractions','../api/automation/automation.model','Setting','FromChatWebsiteId','HopperHistories','SmsAccount','hasMany','FreshsalesConfiguration','OpenchannelQueues','Fields','../api/chatApplication/chatApplication.model','../api/analyticExtractedReport/analyticExtractedReport.model','JscriptySessions','../api/smsAccount/smsAccount.model','Migration','../api/intZendeskField/intZendeskField.model','MailServerIn','../api/openchannelQueueReport/openchannelQueueReport.model','mysql','../api/mailServerIn/mailServerIn.model','BlackLists','../api/screenRecording/screenRecording.model','MailInteractionId','Integration','WhatsappInteractionId','../api/intSugarcrmField/intSugarcrmField.model','../api/smsApplication/smsApplication.model','SmsInteraction','Network','Members','Messages','FromOpenchannelAccountId','ToOpenchannelAccountId','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','../api/chatMessage/chatMessage.model','Campaign','ToQueueId','TriggerAllId','DeskAccount','../api/userFaxQueue/userFaxQueue.model','MailQueues','../api/smsInteraction/smsInteraction.model','CannedAnswer','AnalyticDefaultReport','Interval','Mohs','Teams','WhatsappTransferReport','../api/disposition/disposition.model','MailQueue','voice_queues_has_cm_blacklists','ThroughTags','../api/intDynamics365Account/intDynamics365Account.model','ChatInteractions','../api/smsMessage/smsMessage.model','AnalyticExtractedReport','AutomationAnyId','VoiceCallReport','../api/faxTransferReport/faxTransferReport.model','../api/intSalesforceAccount/intSalesforceAccount.model','FromAccount','../api/intDeskField/intDeskField.model','chat_interaction_has_tags','../api/voiceMailMessage/voiceMailMessage.model','UserProfile','UserProfileSections','WhatsappQueue','../api/chatOfflineMessage/chatOfflineMessage.model','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','ChatOfflineMessage','../api/squareRecording/squareRecording.model','VoiceTransferReport','Variable','IntegrationReport','ToQueue','SmsApplication','restrict','AttachmentId','Descriptions','ChatQueue','Agents','ChatQueueReport','Trigger','../api/action/action.model','team_has_openchannel_queues','FieldId','../api/dashboardItem/dashboardItem.model','../api/openchannelApplication/openchannelApplication.model','../api/mailSubstatus/mailSubstatus.model','WhatsappInteraction','FromMailAccountId','cm_user_has_contacts','../api/trunk/trunk.model','SubjectId','Subjects','../api/cannedAnswer/cannedAnswer.model','Dynamics365Account','../api/schedule/schedule.model','VoiceMail','VoicePrefix','../api/analyticTreeReport/analyticTreeReport.model','TrunkBackupId','VoiceChanSpy','uniqueid','ChatWebsiteId','SquareOdbc','MailSubstatus','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','../api/condition/condition.model','VoiceQueue','Pause','../api/userProfile/userProfile.model','FreshdeskAccount','../api/team/team.model','ToId','../config/logger','getConfigService','user_has_chat_websites','Attachments','sequelizeHistory','../api/whatsappAccount/whatsappAccount.model','ContactId','VariableId','user_has_openchannel_accounts','WhatsappAccountId','VtigerAccount','VoiceMailMessage','../api/whatsappTransferReport/whatsappTransferReport.model','Condition','OpenchannelAccount','../api/voiceChanSpy/voiceChanSpy.model','DefaultReportId','MailAccountId','db-query','VoiceDialReport','UserMailQueue','ChatInteractionId','OpenchannelQueueReport','MailServerOut','../api/voiceQueue/voiceQueue.model','FaxInteraction','CustomFields','ToUserId','mandatoryDispositionPause','ProjectId','../config/config.service','sms_interaction_has_tags','Tags','../api/jscriptyProject/jscriptyProject.model','Team','../api/intFreshsalesAccount/intFreshsalesAccount.model','../api/chatInteraction/chatInteraction.model','Queues','WhatsappQueues','MailApplication','../api/openchannelInteraction/openchannelInteraction.model','../api/mailInteraction/mailInteraction.model','Groups','FaxTransferReport','../api/whatsappMessage/whatsappMessage.model','Agent','../api/intDynamics365Field/intDynamics365Field.model','../api/intVtigerField/intVtigerField.model','../api/squareReportDetail/squareReportDetail.model','SmsAccountId','cm_contact_has_tags','UserOpenchannelInteractions','../api/intZendeskAccount/intZendeskAccount.model','SugarcrmAccount','../api/user/user.model','OpenchannelQueueId','../api/whatsappApplication/whatsappApplication.model','FromAgent','hasOne','FreshsalesAccount','../api/intVtigerConfiguration/intVtigerConfiguration.model','Account','../api/intFreshdeskAccount/intFreshdeskAccount.model','../api/faxQueue/faxQueue.model','SmsTransferReport','VtigerConfiguration','OpenchannelInteraction','CmHopperBlack','../api/faxMessage/faxMessage.model','team_has_chat_queues','mailbox','All','Company','../api/reportAgentPreview/reportAgentPreview.model','../api/voiceMail/voiceMail.model','ChatGroupId','SalesforceAccount','WhatsappAccount','cascade','database','options','UserSmsQueue','CmList','../api/notification/notification.model','dbPort','ChatApplications','CloudProvider','MailMessage','../api/cmHopperBlack/cmHopperBlack.model','ScreenRecording','ServicenowConfiguration','../api/openchannelQueue/openchannelQueue.model','../api/squareMessage/squareMessage.model','../api/plugin/plugin.model','SmsQueueReport','Automation','ChatWebsites','SenderId','mailboxuser','DataTypes','CampaignId','user_has_openchannel_interactions','ChatApplication','DeskField','../api/squareProject/squareProject.model','SquareReport','SquareProject','Configurations','campaigns_has_cm_lists','Subject','UserFaxInteractions','mysqlDatabase'];(function(_0x1128ec,_0x6f7cad){const _0x558043=function(_0xb63252){while(--_0xb63252){_0x1128ec['push'](_0x1128ec['shift']());}};_0x558043(++_0x6f7cad);}(a1021_0x6f7c,0x6d));const a1021_0x5580=function(_0x1128ec,_0x6f7cad){_0x1128ec=_0x1128ec-0x0;let _0x558043=a1021_0x6f7c[_0x1128ec];return _0x558043;};const _0x5caf1e=a1021_0x5580;'use strict';const config=require('../config/environment'),cs=require(_0x5caf1e('0x13e'))[_0x5caf1e('0x121')](),Sequelize=require(_0x5caf1e('0x1d6')),logger=require(_0x5caf1e('0x120')),_=require('lodash'),jstz=require(_0x5caf1e('0x68')),timezone=jstz['determine'](),queryLogger=logger(_0x5caf1e('0x132')),DEFAULTS={'database':cs[_0x5caf1e('0x18f')],'username':cs[_0x5caf1e('0x23')],'password':cs[_0x5caf1e('0xa0')],'options':{'host':cs['dbHost'],'port':cs[_0x5caf1e('0x174')],'dialect':_0x5caf1e('0xbf'),'dialectOptions':{'charset':_0x5caf1e('0x8f')},'logging':cs['isProduction']?![]:_0xb63252=>queryLogger[_0x5caf1e('0x5f')](_0xb63252),'timezone':timezone[_0x5caf1e('0x88')](),'define':{'charset':'utf8','collate':_0x5caf1e('0x8b')}}};config[_0x5caf1e('0x1d6')]=_[_0x5caf1e('0x1fb')](config[_0x5caf1e('0x1d6')],DEFAULTS),config['sequelizeHistory']=_[_0x5caf1e('0x1fb')](config[_0x5caf1e('0x124')],DEFAULTS);const db={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0x5caf1e('0x1d6')][_0x5caf1e('0x16f')],config['sequelize'][_0x5caf1e('0x1ad')],config[_0x5caf1e('0x1d6')][_0x5caf1e('0x1f2')],config[_0x5caf1e('0x1d6')][_0x5caf1e('0x170')])},dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0x5caf1e('0x124')]['database'],config[_0x5caf1e('0x124')]['username'],config[_0x5caf1e('0x124')][_0x5caf1e('0x1f2')],config[_0x5caf1e('0x124')][_0x5caf1e('0x170')])};db[_0x5caf1e('0x86')]=require(_0x5caf1e('0x156'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x113')]=require(_0x5caf1e('0x12f'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x78')]=require('../api/voiceContext/voiceContext.model')(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x91')]=require(_0x5caf1e('0x55'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x73')]=require(_0x5caf1e('0x34'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x11a')]=require(_0x5caf1e('0x138'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x1c7')]=require(_0x5caf1e('0x1ac'))(db['sequelize'],Sequelize['DataTypes']),db[_0x5caf1e('0x179')]=require(_0x5caf1e('0xc2'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x10f')]=require(_0x5caf1e('0x16a'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x12b')]=require(_0x5caf1e('0xec'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xe6')]=require(_0x5caf1e('0x5d'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x133')]=require(_0x5caf1e('0xa8'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xa5')]=require(_0x5caf1e('0x76'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x25')]=require(_0x5caf1e('0x2b'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x1ae')]=require(_0x5caf1e('0x65'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x6')]=require(_0x5caf1e('0x109'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xf4')]=require('../api/voiceTransferReport/voiceTransferReport.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x7a')]=require(_0x5caf1e('0x1de'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x49')]=require(_0x5caf1e('0x1e0'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['UserChatQueue']=require(_0x5caf1e('0x191'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x134')]=require(_0x5caf1e('0x22'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x9b')]=require(_0x5caf1e('0xd4'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x171')]=require('../api/userSmsQueue/userSmsQueue.model')(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db['UserOpenchannelQueue']=require(_0x5caf1e('0x5a'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x5b')]=require('../api/userWhatsappQueue/userWhatsappQueue.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['MailServerIn']=require(_0x5caf1e('0xc0'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x137')]=require(_0x5caf1e('0x9a'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x74')]=require('../api/mailAccount/mailAccount.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xde')]=require('../api/mailQueue/mailQueue.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x117')]=require(_0x5caf1e('0x105'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1f8')]=require(_0x5caf1e('0x149'))(db['sequelize'],Sequelize['DataTypes']),db[_0x5caf1e('0x177')]=require(_0x5caf1e('0x46'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db['MailApplication']=require(_0x5caf1e('0x71'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['MailQueueReport']=require(_0x5caf1e('0x1be'))(db['sequelize'],Sequelize['DataTypes']),db[_0x5caf1e('0x81')]=require(_0x5caf1e('0xa4'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db['DashboardItem']=require(_0x5caf1e('0x103'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xf')]=require(_0x5caf1e('0x1a4'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x1f7')]=require('../api/faxApplication/faxApplication.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db['FaxInteraction']=require(_0x5caf1e('0x1ce'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1d')]=require(_0x5caf1e('0x164'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0xc')]=require(_0x5caf1e('0x15f'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['FaxQueueReport']=require(_0x5caf1e('0x9c'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xb2')]=require(_0x5caf1e('0xba'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['SmsApplication']=require(_0x5caf1e('0xc7'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db['SmsInteraction']=require(_0x5caf1e('0xd6'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1c1')]=require(_0x5caf1e('0xe3'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1e2')]=require(_0x5caf1e('0x198'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x12e')]=require('../api/openchannelAccount/openchannelAccount.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x192')]=require(_0x5caf1e('0x104'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x162')]=require(_0x5caf1e('0x148'))(db['sequelize'],Sequelize['DataTypes']),db[_0x5caf1e('0x2e')]=require(_0x5caf1e('0x4d'))(db['sequelize'],Sequelize['DataTypes']),db[_0x5caf1e('0x1e9')]=require(_0x5caf1e('0x17b'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1cb')]=require(_0x5caf1e('0x1f4'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x136')]=require(_0x5caf1e('0xbe'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db['ChatApplication']=require(_0x5caf1e('0xb7'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x1fc')]=require(_0x5caf1e('0x144'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1f')]=require(_0x5caf1e('0xcf'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xf2')]=require(_0x5caf1e('0xf0'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xfc')]=require(_0x5caf1e('0x3'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x66')]=require(_0x5caf1e('0x1ed'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1f6')]=require('../api/chatProactiveAction/chatProactiveAction.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x48')]=require(_0x5caf1e('0x193'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db['CmContact']=require(_0x5caf1e('0x1e6'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xaa')]=require(_0x5caf1e('0x19a'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x163')]=require(_0x5caf1e('0x178'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x77')]=require(_0x5caf1e('0x1b4'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x53')]=require(_0x5caf1e('0x84'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x9d')]=require(_0x5caf1e('0x169'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['CmCustomField']=require(_0x5caf1e('0x90'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db['Action']=require(_0x5caf1e('0x100'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x17f')]=require(_0x5caf1e('0xae'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xd7')]=require(_0x5caf1e('0x10c'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1b5')]=require(_0x5caf1e('0xdd'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x12d')]=require(_0x5caf1e('0x119'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xd9')]=require('../api/interval/interval.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x11b')]=require(_0x5caf1e('0xa3'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x7c')]=require(_0x5caf1e('0x1f5'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['VoiceQueuesLog']=require(_0x5caf1e('0x9e'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x194')]=require(_0x5caf1e('0x10e'))(db['sequelize'],Sequelize['DataTypes']),db['Sound']=require(_0x5caf1e('0x19'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1d2')]=require(_0x5caf1e('0x1db'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x85')]=require(_0x5caf1e('0x15'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xff')]=require('../api/trigger/trigger.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xf5')]=require(_0x5caf1e('0xe'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['Integration']=require(_0x5caf1e('0x4'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0xf6')]=require(_0x5caf1e('0x87'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db['AnalyticCustomReport']=require(_0x5caf1e('0x2c'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0xd8')]=require(_0x5caf1e('0x5'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0xe4')]=require(_0x5caf1e('0xb8'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x197')]=require('../api/analyticMetric/analyticMetric.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1ef')]=require('../api/analyticFieldReport/analyticFieldReport.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['AnalyticTreeReport']=require(_0x5caf1e('0x111'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x16c')]=require(_0x5caf1e('0xe8'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db['SalesforceConfiguration']=require(_0x5caf1e('0xce'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1df')]=require(_0x5caf1e('0x1b6'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x155')]=require(_0x5caf1e('0x3f'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x8e')]=require(_0x5caf1e('0xf1'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db['SugarcrmField']=require(_0x5caf1e('0xc6'))(db['sequelize'],Sequelize['DataTypes']),db[_0x5caf1e('0xd3')]=require(_0x5caf1e('0x1d9'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x19e')]=require('../api/intDeskConfiguration/intDeskConfiguration.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x187')]=require(_0x5caf1e('0xea'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x19d')]=require('../api/intZohoAccount/intZohoAccount.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1c4')]=require('../api/intZohoConfiguration/intZohoConfiguration.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db['ZohoField']=require('../api/intZohoField/intZohoField.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x70')]=require(_0x5caf1e('0x154'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['ZendeskConfiguration']=require('../api/intZendeskConfiguration/intZendeskConfiguration.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1f0')]=require(_0x5caf1e('0xbc'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x11d')]=require(_0x5caf1e('0x15e'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1b7')]=require(_0x5caf1e('0x19f'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1af')]=require('../api/intFreshdeskField/intFreshdeskField.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x12a')]=require(_0x5caf1e('0x1e7'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x161')]=require(_0x5caf1e('0x15c'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db['VtigerField']=require(_0x5caf1e('0x14f'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1e')]=require(_0x5caf1e('0x51'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x17a')]=require('../api/intServicenowConfiguration/intServicenowConfiguration.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x40')]=require(_0x5caf1e('0xa1'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x10d')]=require(_0x5caf1e('0xe1'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x98')]=require('../api/intDynamics365Configuration/intDynamics365Configuration.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x82')]=require(_0x5caf1e('0x14e'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['FreshsalesAccount']=require(_0x5caf1e('0x143'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0xb4')]=require('../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1')]=require(_0x5caf1e('0x4e'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xc4')]=require(_0x5caf1e('0x4'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xc9')]=require(_0x5caf1e('0x1ba'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xfe')]=require('../api/chatQueueReport/chatQueueReport.model')(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db['ChatInternalMessage']=require(_0x5caf1e('0x5c'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x0')]=require('../api/jscriptyAnswerReport/jscriptyAnswerReport.model')(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db['JscriptyQuestionReport']=require(_0x5caf1e('0x118'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['JscriptySessionReport']=require('../api/jscriptySessionReport/jscriptySessionReport.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x17e')]=require(_0x5caf1e('0x52'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x189')]=require('../api/squareReport/squareReport.model')(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x1b2')]=require(_0x5caf1e('0x150'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x44')]=require(_0x5caf1e('0x141'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xaf')]=require('../api/setting/setting.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x116')]=require('../api/squareOdbc/squareOdbc.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x18a')]=require(_0x5caf1e('0x188'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x1cc')]=require(_0x5caf1e('0xf3'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['SquareMessage']=require(_0x5caf1e('0x17c'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x142')]=require(_0x5caf1e('0x11e'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['License']=require('../api/license/license.model')(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0xd0')]=require(_0x5caf1e('0x1ec'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xbb')]=require('../api/migration/migration.model')(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x38')]=require('../api/attachment/attachment.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x67')]=require(_0x5caf1e('0x17d'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['MailTransferReport']=require('../api/mailTransferReport/mailTransferReport.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['ChatTransferReport']=require(_0x5caf1e('0xb'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x14b')]=require(_0x5caf1e('0xe7'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x7f')]=require('../api/openchannelTransferReport/openchannelTransferReport.model')(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x160')]=require(_0x5caf1e('0x83'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x172')]=require(_0x5caf1e('0x5e'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x110')]=require('../api/voicePrefix/voicePrefix.model')(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xed')]=require(_0x5caf1e('0x11c'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xa')]=require(_0x5caf1e('0x29'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db['UserProfileResource']=require(_0x5caf1e('0x18'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0x1ab')]=require(_0x5caf1e('0x173'))(db['sequelize'],Sequelize['DataTypes']),db['WhatsappAccount']=require(_0x5caf1e('0x125'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x39')]=require(_0x5caf1e('0x158'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x106')]=require(_0x5caf1e('0x16'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x4b')]=require(_0x5caf1e('0x14c'))(db['sequelize'],Sequelize['DataTypes']),db[_0x5caf1e('0x1cf')]=require(_0x5caf1e('0x93'))(db[_0x5caf1e('0x1d6')],Sequelize['DataTypes']),db[_0x5caf1e('0xdc')]=require(_0x5caf1e('0x12c'))(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0xef')]=require('../api/whatsappQueue/whatsappQueue.model')(db[_0x5caf1e('0x1d6')],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x176')]=require(_0x5caf1e('0x92'))(db['sequelize'],Sequelize[_0x5caf1e('0x183')]),db[_0x5caf1e('0x86')]['hasOne'](db[_0x5caf1e('0x10f')],{'as':_0x5caf1e('0x10f'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x86')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1c7')],{'as':_0x5caf1e('0x1a5'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x86')][_0x5caf1e('0xb3')](db['UserVoiceQueueRt'],{'as':'VoiceQueuesRt','foreignKey':'UserId'}),db['User'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x91')],{'as':'Extensions','onDelete':_0x5caf1e('0x16e'),'hooks':!![]}),db['User'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x77')],{'as':_0x5caf1e('0x1e4'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x86')]['hasMany'](db[_0x5caf1e('0x53')],{'as':_0x5caf1e('0x13'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x86')]['hasMany'](db[_0x5caf1e('0x9d')],{'as':_0x5caf1e('0x9d'),'foreignKey':_0x5caf1e('0x41')}),db['User'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x162')],{'as':_0x5caf1e('0x75'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x86')]['hasMany'](db[_0x5caf1e('0x1fc')],{'as':_0x5caf1e('0xe2'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x86')][_0x5caf1e('0xb3')](db['SmsInteraction'],{'as':'SmsInteractions','foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x86')]['hasMany'](db['FaxInteraction'],{'as':_0x5caf1e('0xad'),'foreignKey':_0x5caf1e('0x41')}),db['User'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1f8')],{'as':'MailInteractions','foreignKey':_0x5caf1e('0x41')}),db['User'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x106')],{'as':_0x5caf1e('0x1c8'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x86')]['hasMany'](db[_0x5caf1e('0x1ab')],{'as':_0x5caf1e('0x4f'),'foreignKey':_0x5caf1e('0x181')}),db[_0x5caf1e('0x86')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xed')],{'as':'UserProfile','foreignKey':'userProfileId','onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x66')],{'as':_0x5caf1e('0x14a'),'through':_0x5caf1e('0x19c')}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x37')],{'as':'Contacts','through':_0x5caf1e('0x108')}),db['User'][_0x5caf1e('0x79')](db[_0x5caf1e('0x172')],{'as':'Lists','through':_0x5caf1e('0x89')}),db['User']['belongsToMany'](db['Team'],{'through':_0x5caf1e('0x4a')}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1f8')],{'as':'UserMailInteractions','through':_0x5caf1e('0x6f')}),db['User']['belongsToMany'](db[_0x5caf1e('0x1fc')],{'as':_0x5caf1e('0x27'),'through':_0x5caf1e('0x1bc')}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x139')],{'as':_0x5caf1e('0x18e'),'through':'user_has_fax_interactions'}),db['User']['belongsToMany'](db[_0x5caf1e('0xc8')],{'as':_0x5caf1e('0x43'),'through':'user_has_sms_interactions'}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db['OpenchannelInteraction'],{'as':_0x5caf1e('0x153'),'through':_0x5caf1e('0x185')}),db[_0x5caf1e('0x86')]['belongsToMany'](db[_0x5caf1e('0x106')],{'as':_0x5caf1e('0x1aa'),'through':_0x5caf1e('0x1a7')}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db['VoiceQueue'],{'as':_0x5caf1e('0xa2'),'through':_0x5caf1e('0x49'),'required':![]}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0xde')],{'as':_0x5caf1e('0xd5'),'through':'UserMailQueue','required':![]}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db['ChatQueue'],{'as':'ChatQueues','through':'UserChatQueue','required':![],'hooks':!![]}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0xc')],{'as':_0x5caf1e('0x31'),'through':_0x5caf1e('0x9b'),'required':![]}),db['User'][_0x5caf1e('0x79')](db[_0x5caf1e('0x1e2')],{'as':_0x5caf1e('0x1a1'),'through':_0x5caf1e('0x171'),'required':![]}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1e9')],{'as':_0x5caf1e('0xb5'),'through':'UserOpenchannelQueue','required':![]}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0xef')],{'as':_0x5caf1e('0x146'),'through':_0x5caf1e('0x5b'),'required':![]}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x172')],{'through':_0x5caf1e('0x89')}),db[_0x5caf1e('0x86')]['belongsToMany'](db[_0x5caf1e('0x110')],{'as':_0x5caf1e('0x57'),'through':'user_has_voice_prefixes','required':![]}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1cb')],{'as':_0x5caf1e('0x180'),'through':_0x5caf1e('0x122')}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0xf')],{'as':'FaxAccounts','through':'user_has_fax_accounts'}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x74')],{'as':_0x5caf1e('0x11'),'through':'user_has_mail_accounts'}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db[_0x5caf1e('0x12e')],{'as':_0x5caf1e('0x1d4'),'through':'user_has_openchannel_accounts'}),db[_0x5caf1e('0x86')][_0x5caf1e('0x79')](db['SmsAccount'],{'as':_0x5caf1e('0x1b8'),'through':_0x5caf1e('0x64')}),db[_0x5caf1e('0x86')]['belongsToMany'](db[_0x5caf1e('0x16d')],{'as':_0x5caf1e('0x2d'),'through':'user_has_whatsapp_accounts'}),db['User']['belongsToMany'](db[_0x5caf1e('0x18a')],{'as':_0x5caf1e('0x190'),'through':'user_has_square_projects'}),db[_0x5caf1e('0x113')][_0x5caf1e('0xb3')](db['VoiceExtension'],{'as':_0x5caf1e('0x33'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':'ChanSpyId'}),db[_0x5caf1e('0x78')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x91')],{'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x91')]['hasMany'](db[_0x5caf1e('0x91')],{'as':'Applications','onDelete':'cascade'}),db['VoiceMusicOnHold']['belongsToMany'](db[_0x5caf1e('0x1a2')],{'as':_0x5caf1e('0x1bf'),'through':'moh_has_sounds'}),db[_0x5caf1e('0x11a')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x7a')],{'as':'Members','foreignKey':_0x5caf1e('0x1c6')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0xb3')](db['CmHopper'],{'as':'Hoppers','foreignKey':_0x5caf1e('0x1c6')}),db[_0x5caf1e('0x11a')]['hasMany'](db[_0x5caf1e('0x77')],{'as':'HopperFinals','foreignKey':_0x5caf1e('0x1c6')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x53')],{'as':_0x5caf1e('0xb1'),'foreignKey':_0x5caf1e('0x1c6')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x9d')],{'as':_0x5caf1e('0x9d'),'foreignKey':'VoiceQueueId'}),db['VoiceQueue'][_0x5caf1e('0xb3')](db['CmHopperBlack'],{'as':_0x5caf1e('0x195'),'foreignKey':_0x5caf1e('0x1c6')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1c5')],{'as':_0x5caf1e('0xb9'),'foreignKey':_0x5caf1e('0x1c6')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x6')],{'as':_0x5caf1e('0x6'),'foreignKey':_0x5caf1e('0x1ca')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0x1c3')](db['Trunk'],{'as':_0x5caf1e('0x1a'),'foreignKey':_0x5caf1e('0x112')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xd9')],{'as':_0x5caf1e('0xd9'),'foreignKey':_0x5caf1e('0x1a9')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0x1c3')](db['Pause'],{'as':_0x5caf1e('0x13c'),'foreignKey':_0x5caf1e('0x1d5')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0x79')](db[_0x5caf1e('0x172')],{'as':'Lists','through':'voice_queues_has_cm_lists'}),db[_0x5caf1e('0x11a')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x49')}),db[_0x5caf1e('0x11a')][_0x5caf1e('0x79')](db[_0x5caf1e('0x142')],{'as':_0x5caf1e('0xdb'),'through':_0x5caf1e('0x14')}),db['VoiceQueue'][_0x5caf1e('0x79')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0xc1'),'through':_0x5caf1e('0xdf')}),db[_0x5caf1e('0x1c7')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x86'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x179')]['belongsTo'](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x86'),'foreignKey':'UserId'}),db[_0x5caf1e('0x10f')][_0x5caf1e('0xb3')](db['VoiceMailMessage'],{'as':_0x5caf1e('0xcb'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':'mailboxuser','sourceKey':'mailbox'}),db[_0x5caf1e('0x12b')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x10f')],{'foreignKey':_0x5caf1e('0x182'),'targetKey':_0x5caf1e('0x166')}),db['VoiceCallReport'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x25')],{'as':_0x5caf1e('0x10'),'foreignKey':_0x5caf1e('0x114'),'constraints':![]}),db[_0x5caf1e('0xe6')][_0x5caf1e('0xb3')](db[_0x5caf1e('0xa5')],{'as':_0x5caf1e('0x62'),'foreignKey':_0x5caf1e('0x114'),'constraints':![]}),db['VoiceCallReport'][_0x5caf1e('0x1c3')](db['User'],{'as':_0x5caf1e('0x86'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0xe6')][_0x5caf1e('0x1c3')](db['CmContact'],{'as':'Contact','foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x74')][_0x5caf1e('0x15a')](db[_0x5caf1e('0xbd')],{'as':_0x5caf1e('0x30'),'foreignKey':_0x5caf1e('0x131'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x74')][_0x5caf1e('0x15a')](db[_0x5caf1e('0x137')],{'as':_0x5caf1e('0x96'),'foreignKey':_0x5caf1e('0x131'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x74')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1b5')],{'as':'Dispositions','foreignKey':'MailAccountId'}),db['MailAccount'][_0x5caf1e('0xb3')](db[_0x5caf1e('0xd7')],{'as':_0x5caf1e('0x3a'),'foreignKey':_0x5caf1e('0x131')}),db[_0x5caf1e('0x74')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x177')],{'as':'Messages','foreignKey':_0x5caf1e('0x131')}),db['MailAccount']['hasMany'](db[_0x5caf1e('0x1f8')],{'as':_0x5caf1e('0x1a6')}),db[_0x5caf1e('0x74')][_0x5caf1e('0xb3')](db['MailApplication'],{'as':_0x5caf1e('0x9')}),db[_0x5caf1e('0x74')]['belongsTo'](db[_0x5caf1e('0x172')],{'as':'List','foreignKey':_0x5caf1e('0x21')}),db['MailAccount'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x85')],{'as':_0x5caf1e('0x85'),'foreignKey':'TemplateId'}),db[_0x5caf1e('0x74')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x11b')],{'as':_0x5caf1e('0x13c'),'foreignKey':_0x5caf1e('0x1d5')}),db[_0x5caf1e('0x74')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0xac')}),db[_0x5caf1e('0xde')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':'Agents','through':_0x5caf1e('0x134')}),db[_0x5caf1e('0xde')][_0x5caf1e('0x79')](db[_0x5caf1e('0x142')],{'through':_0x5caf1e('0x1dc'),'as':_0x5caf1e('0xdb')}),db[_0x5caf1e('0x1f8')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x177')],{'as':_0x5caf1e('0xcb'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':'MailInteractionId'}),db[_0x5caf1e('0x1f8')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x74')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0x131')}),db[_0x5caf1e('0x1f8')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x37')],{'as':'Contact','foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x1f8')]['belongsTo'](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x3c'),'foreignKey':'UserId'}),db[_0x5caf1e('0x1f8')]['belongsToMany'](db[_0x5caf1e('0x1d2')],{'through':_0x5caf1e('0x1b'),'as':'Tags'}),db['MailInteraction']['belongsToMany'](db['Tag'],{'through':_0x5caf1e('0x1b'),'as':_0x5caf1e('0xe0')}),db[_0x5caf1e('0x1f8')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x35'),'through':_0x5caf1e('0x6f'),'foreignKey':_0x5caf1e('0xc3')}),db[_0x5caf1e('0x177')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x38')],{'as':_0x5caf1e('0x123'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x177')]['belongsTo'](db['User'],{'as':_0x5caf1e('0x86')}),db['MailMessage'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x37')],{'onDelete':_0x5caf1e('0x16e'),'as':'Contact'}),db[_0x5caf1e('0x177')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1f8')],{'as':'Interaction','foreignKey':_0x5caf1e('0xc3')}),db[_0x5caf1e('0x177')]['belongsTo'](db[_0x5caf1e('0x74')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0x131')}),db[_0x5caf1e('0x147')]['belongsTo'](db[_0x5caf1e('0x86')],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x147')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xde')],{'onDelete':_0x5caf1e('0xf9')}),db['MailApplication'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x74')],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x147')]['belongsTo'](db[_0x5caf1e('0xd9')],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':_0x5caf1e('0x1a9')}),db[_0x5caf1e('0x147')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1d2')],{'onDelete':'restrict','foreignKey':_0x5caf1e('0x1e8')}),db[_0x5caf1e('0x1d7')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x74')],{}),db[_0x5caf1e('0x1d7')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x1d7')]['belongsTo'](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x2a'),'foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x1d7')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1f8')],{}),db[_0x5caf1e('0x1d7')]['belongsTo'](db[_0x5caf1e('0x177')],{}),db[_0x5caf1e('0x1d7')]['belongsTo'](db[_0x5caf1e('0x86')],{}),db[_0x5caf1e('0x1d7')][_0x5caf1e('0x1c3')](db['MailQueue'],{}),db[_0x5caf1e('0x81')]['hasMany'](db[_0x5caf1e('0x6d')],{'as':'Items','onDelete':_0x5caf1e('0x16e')}),db['FaxAccount']['hasMany'](db[_0x5caf1e('0x1b5')],{'as':_0x5caf1e('0xa6'),'foreignKey':'FaxAccountId'}),db[_0x5caf1e('0xf')][_0x5caf1e('0xb3')](db[_0x5caf1e('0xd7')],{'as':_0x5caf1e('0x3a'),'foreignKey':_0x5caf1e('0x6c')}),db['FaxAccount'][_0x5caf1e('0xb3')](db['FaxInteraction'],{'as':_0x5caf1e('0x1a6')}),db['FaxAccount']['hasMany'](db[_0x5caf1e('0x1f7')],{'as':'Applications'}),db[_0x5caf1e('0xf')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x91')],{'as':'Exntensions','onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0xf')]['hasMany'](db[_0x5caf1e('0x1d')],{'as':_0x5caf1e('0xcb')}),db['FaxAccount'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x6')],{'as':_0x5caf1e('0x6')}),db['FaxAccount'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':'List','foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0xf')]['belongsTo'](db['Pause'],{'as':'mandatoryDispositionPause','foreignKey':_0x5caf1e('0x1d5')}),db[_0x5caf1e('0xf')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x1c0')}),db['FaxApplication'][_0x5caf1e('0x1c3')](db['User'],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x1f7')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xc')],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x1f7')]['belongsTo'](db[_0x5caf1e('0xf')],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x1f7')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1d2')],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':'TagId'}),db[_0x5caf1e('0x139')][_0x5caf1e('0xb3')](db['FaxMessage'],{'as':_0x5caf1e('0xcb'),'onDelete':'cascade','foreignKey':_0x5caf1e('0x3d')}),db[_0x5caf1e('0x139')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf')],{'as':'Account','foreignKey':_0x5caf1e('0x6c')}),db[_0x5caf1e('0x139')][_0x5caf1e('0x1c3')](db['CmContact'],{'as':'Contact','foreignKey':_0x5caf1e('0x126')}),db['FaxInteraction']['belongsTo'](db['User'],{'as':_0x5caf1e('0x3c'),'foreignKey':_0x5caf1e('0x41')}),db['FaxInteraction'][_0x5caf1e('0x79')](db['Tag'],{'through':'fax_interaction_has_tags','as':'Tags'}),db[_0x5caf1e('0x139')]['belongsToMany'](db[_0x5caf1e('0x1d2')],{'through':_0x5caf1e('0x1ee'),'as':_0x5caf1e('0xe0')}),db[_0x5caf1e('0x139')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x35'),'through':_0x5caf1e('0x1b1'),'foreignKey':_0x5caf1e('0x3d')}),db[_0x5caf1e('0x1d')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'onDelete':_0x5caf1e('0x16e'),'as':'User'}),db['FaxMessage']['belongsTo'](db[_0x5caf1e('0x139')],{'as':_0x5caf1e('0x1d8'),'foreignKey':'FaxInteractionId'}),db['FaxMessage']['belongsTo'](db[_0x5caf1e('0x37')],{'onDelete':_0x5caf1e('0x16e'),'as':_0x5caf1e('0x2a')}),db[_0x5caf1e('0x1d')]['belongsTo'](db[_0x5caf1e('0x38')],{'as':_0x5caf1e('0x38'),'foreignKey':'AttachmentId'}),db[_0x5caf1e('0x1d')]['belongsTo'](db[_0x5caf1e('0xf')],{'as':'Account','foreignKey':_0x5caf1e('0x6c')}),db['FaxQueue'][_0x5caf1e('0x79')](db['User'],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x9b')}),db[_0x5caf1e('0xc')][_0x5caf1e('0x79')](db[_0x5caf1e('0x142')],{'through':'team_has_fax_queues','as':'Teams'}),db[_0x5caf1e('0x95')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf')],{}),db[_0x5caf1e('0x95')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x95')][_0x5caf1e('0x1c3')](db['CmContact'],{'as':'Contact','foreignKey':'ContactId'}),db[_0x5caf1e('0x95')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x139')],{}),db[_0x5caf1e('0x95')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1d')],{}),db[_0x5caf1e('0x95')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{}),db[_0x5caf1e('0x95')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xc')],{}),db[_0x5caf1e('0xb2')]['hasMany'](db[_0x5caf1e('0x1b5')],{'as':_0x5caf1e('0xa6'),'foreignKey':'SmsAccountId'}),db[_0x5caf1e('0xb2')][_0x5caf1e('0xb3')](db[_0x5caf1e('0xd7')],{'as':_0x5caf1e('0x3a'),'foreignKey':_0x5caf1e('0x151')}),db[_0x5caf1e('0xb2')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1c1')],{'as':_0x5caf1e('0xcb'),'foreignKey':_0x5caf1e('0x151')}),db[_0x5caf1e('0xb2')][_0x5caf1e('0xb3')](db[_0x5caf1e('0xc8')],{'as':'Interactions'}),db[_0x5caf1e('0xb2')]['hasMany'](db[_0x5caf1e('0xf8')],{'as':_0x5caf1e('0x9')}),db[_0x5caf1e('0xb2')][_0x5caf1e('0x1c3')](db['CmList'],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0xb2')]['belongsTo'](db['Pause'],{'as':_0x5caf1e('0x13c'),'foreignKey':_0x5caf1e('0x1d5')}),db[_0x5caf1e('0xb2')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':'Agents','through':_0x5caf1e('0x64')}),db[_0x5caf1e('0xf8')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'onDelete':_0x5caf1e('0xf9')}),db['SmsApplication'][_0x5caf1e('0x1c3')](db['SmsQueue'],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0xf8')][_0x5caf1e('0x1c3')](db['SmsAccount'],{'onDelete':'restrict'}),db[_0x5caf1e('0xf8')][_0x5caf1e('0x1c3')](db['Interval'],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':_0x5caf1e('0x1a9')}),db[_0x5caf1e('0xf8')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1d2')],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':'TagId'}),db['SmsInteraction'][_0x5caf1e('0xb3')](db['SmsMessage'],{'as':_0x5caf1e('0xcb'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x1d1')}),db[_0x5caf1e('0xc8')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xb2')],{'as':'Account','foreignKey':_0x5caf1e('0x151')}),db['SmsInteraction'][_0x5caf1e('0x1c3')](db['CmContact'],{'as':'Contact','foreignKey':'ContactId'}),db[_0x5caf1e('0xc8')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'as':'Owner','foreignKey':'UserId'}),db[_0x5caf1e('0xc8')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':_0x5caf1e('0x13f'),'as':'Tags'}),db[_0x5caf1e('0xc8')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':'sms_interaction_has_tags','as':_0x5caf1e('0xe0')}),db[_0x5caf1e('0xc8')]['belongsToMany'](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x35'),'through':_0x5caf1e('0x7b'),'foreignKey':_0x5caf1e('0x1d1')}),db['SmsMessage'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x86')}),db[_0x5caf1e('0x1c1')][_0x5caf1e('0x1c3')](db['CmContact'],{'onDelete':_0x5caf1e('0x16e'),'as':_0x5caf1e('0x2a')}),db[_0x5caf1e('0x1c1')]['belongsTo'](db[_0x5caf1e('0xc8')],{'onDelete':_0x5caf1e('0x16e'),'as':_0x5caf1e('0x1d8'),'foreignKey':_0x5caf1e('0x1d1')}),db[_0x5caf1e('0x1c1')]['belongsTo'](db[_0x5caf1e('0xb2')],{'as':'Account','foreignKey':'SmsAccountId'}),db[_0x5caf1e('0x1e2')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x171'),'foreignKey':_0x5caf1e('0x1bb')}),db[_0x5caf1e('0x1e2')][_0x5caf1e('0x79')](db['Team'],{'through':_0x5caf1e('0x6e'),'as':_0x5caf1e('0xdb')}),db[_0x5caf1e('0x12e')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1b5')],{'as':_0x5caf1e('0xa6'),'foreignKey':_0x5caf1e('0x1a8')}),db[_0x5caf1e('0x12e')][_0x5caf1e('0xb3')](db[_0x5caf1e('0xd7')],{'as':'Answers','foreignKey':_0x5caf1e('0x1a8')}),db['OpenchannelAccount']['hasMany'](db[_0x5caf1e('0x162')],{'as':_0x5caf1e('0x1a6'),'foreignKey':_0x5caf1e('0x1a8')}),db[_0x5caf1e('0x12e')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x2e')],{'as':'Messages','foreignKey':_0x5caf1e('0x1a8')}),db[_0x5caf1e('0x12e')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x192')],{'as':_0x5caf1e('0x9'),'foreignKey':'OpenchannelAccountId'}),db[_0x5caf1e('0x12e')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':'List','foreignKey':'ListId'}),db[_0x5caf1e('0x12e')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x11b')],{'as':'mandatoryDispositionPause','foreignKey':_0x5caf1e('0x1d5')}),db[_0x5caf1e('0x12e')]['belongsToMany'](db['User'],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x128')}),db[_0x5caf1e('0x192')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x192')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1e9')],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':_0x5caf1e('0x157')}),db[_0x5caf1e('0x192')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x12e')],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':'OpenchannelAccountId'}),db['OpenchannelApplication']['belongsTo'](db[_0x5caf1e('0xd9')],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':'IntervalId'}),db['OpenchannelApplication'][_0x5caf1e('0x1c3')](db['Tag'],{'onDelete':'restrict','foreignKey':_0x5caf1e('0x1e8')}),db[_0x5caf1e('0x162')]['hasMany'](db[_0x5caf1e('0x2e')],{'as':_0x5caf1e('0xcb'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':'OpenchannelInteractionId'}),db[_0x5caf1e('0x162')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x12e')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0x1a8')}),db['OpenchannelInteraction'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x37')],{'as':'Contact','foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x162')]['belongsTo'](db['User'],{'as':'Owner','foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x162')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':_0x5caf1e('0x1d3'),'as':_0x5caf1e('0x140')}),db[_0x5caf1e('0x162')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':'openchannel_interaction_has_tags','as':'ThroughTags'}),db[_0x5caf1e('0x162')]['belongsToMany'](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x35'),'through':_0x5caf1e('0x185'),'foreignKey':_0x5caf1e('0x1dd')}),db[_0x5caf1e('0x2e')]['belongsTo'](db[_0x5caf1e('0x86')],{'onDelete':_0x5caf1e('0x16e'),'as':'User'}),db[_0x5caf1e('0x2e')][_0x5caf1e('0x1c3')](db['CmContact'],{'onDelete':'cascade','as':'Contact'}),db[_0x5caf1e('0x2e')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x162')],{'onDelete':_0x5caf1e('0x16e'),'as':'Interaction','foreignKey':_0x5caf1e('0x1dd')}),db[_0x5caf1e('0x2e')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x38')],{'as':_0x5caf1e('0x38'),'foreignKey':'AttachmentId'}),db[_0x5caf1e('0x2e')]['belongsTo'](db[_0x5caf1e('0x12e')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0x1a8')}),db['OpenchannelQueue']['belongsToMany'](db[_0x5caf1e('0x86')],{'as':'Agents','through':_0x5caf1e('0x8'),'foreignKey':_0x5caf1e('0x157')}),db[_0x5caf1e('0x1e9')][_0x5caf1e('0x79')](db[_0x5caf1e('0x142')],{'through':_0x5caf1e('0x101'),'as':_0x5caf1e('0xdb')}),db[_0x5caf1e('0x1cb')][_0x5caf1e('0xb3')](db['Disposition'],{'as':_0x5caf1e('0xa6'),'foreignKey':_0x5caf1e('0x115')}),db[_0x5caf1e('0x1cb')][_0x5caf1e('0xb3')](db['CannedAnswer'],{'as':_0x5caf1e('0x3a'),'foreignKey':_0x5caf1e('0x115')}),db[_0x5caf1e('0x1cb')]['hasMany'](db[_0x5caf1e('0x1f6')],{'as':_0x5caf1e('0x6a')}),db['ChatWebsite'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1fc')],{'as':_0x5caf1e('0x1a6')}),db[_0x5caf1e('0x1cb')]['hasMany'](db['ChatApplication'],{'as':'Applications'}),db[_0x5caf1e('0x1cb')]['hasMany'](db[_0x5caf1e('0x1f')],{'as':_0x5caf1e('0xcb')}),db['ChatWebsite'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x1cb')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xd9')],{'as':_0x5caf1e('0xd9'),'foreignKey':_0x5caf1e('0x1a9')}),db['ChatWebsite'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x11b')],{'as':'mandatoryDispositionPause','foreignKey':_0x5caf1e('0x1d5')}),db[_0x5caf1e('0x1cb')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x122')}),db[_0x5caf1e('0x136')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x12e')],{}),db[_0x5caf1e('0x136')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x136')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x37')],{'as':'Contact','foreignKey':_0x5caf1e('0x126')}),db['OpenchannelQueueReport']['belongsTo'](db[_0x5caf1e('0x162')],{}),db[_0x5caf1e('0x136')]['belongsTo'](db[_0x5caf1e('0x2e')],{}),db['OpenchannelQueueReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{}),db[_0x5caf1e('0x136')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1e9')],{}),db[_0x5caf1e('0x186')][_0x5caf1e('0x1c3')](db['User'],{'as':_0x5caf1e('0x14d'),'foreignKey':_0x5caf1e('0x41'),'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x186')][_0x5caf1e('0x1c3')](db['ChatQueue'],{'as':'Queue','foreignKey':_0x5caf1e('0xa7'),'onDelete':_0x5caf1e('0xf9')}),db['ChatApplication'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1cb')],{'as':_0x5caf1e('0x26'),'foreignKey':'ChatWebsiteId','onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x186')][_0x5caf1e('0x1c3')](db['Tag'],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':_0x5caf1e('0x1e8')}),db['ChatInteraction'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1f')],{'as':'Messages','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x135')}),db[_0x5caf1e('0x1fc')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1cb')],{'as':'Account','foreignKey':_0x5caf1e('0x115')}),db['ChatInteraction']['belongsTo'](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x2a'),'foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x1fc')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x3c'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x1fc')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':_0x5caf1e('0xeb'),'as':'Tags'}),db[_0x5caf1e('0x1fc')]['belongsToMany'](db['Tag'],{'through':_0x5caf1e('0xeb'),'as':'ThroughTags'}),db[_0x5caf1e('0x1fc')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x35'),'through':'user_has_chat_interactions','foreignKey':'ChatInteractionId'}),db[_0x5caf1e('0x1f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'onDelete':_0x5caf1e('0x16e'),'as':'User'}),db[_0x5caf1e('0x1f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x37')],{'onDelete':_0x5caf1e('0x16e'),'as':_0x5caf1e('0x2a'),'foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x1f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1fc')],{'onDelete':_0x5caf1e('0x16e'),'as':'Interaction','foreignKey':_0x5caf1e('0x135')}),db[_0x5caf1e('0x1f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x38')],{'as':_0x5caf1e('0x38'),'foreignKey':_0x5caf1e('0xfa')}),db[_0x5caf1e('0x1f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1cb')],{'as':_0x5caf1e('0x15d'),'foreignKey':'ChatWebsiteId'}),db['ChatOfflineMessage']['belongsTo'](db[_0x5caf1e('0x37')],{'onDelete':'cascade','as':_0x5caf1e('0x2a'),'foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0xf2')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1cb')],{'as':_0x5caf1e('0x15d'),'foreignKey':'ChatWebsiteId'}),db[_0x5caf1e('0xfc')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x1e5'),'hooks':!![]}),db[_0x5caf1e('0xfc')][_0x5caf1e('0x79')](db[_0x5caf1e('0x142')],{'through':_0x5caf1e('0x165'),'as':_0x5caf1e('0xdb')}),db[_0x5caf1e('0x66')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1fa')],{'as':_0x5caf1e('0xcb'),'foreignKey':_0x5caf1e('0x16b'),'onDelete':_0x5caf1e('0x16e')}),db['ChatGroup'][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xca'),'through':_0x5caf1e('0x19c')}),db[_0x5caf1e('0x1f6')]['belongsTo'](db[_0x5caf1e('0x1cb')],{'as':'Website','foreignKey':_0x5caf1e('0x115')}),db[_0x5caf1e('0x48')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x7'),'foreignKey':_0x5caf1e('0x3e')}),db[_0x5caf1e('0x37')][_0x5caf1e('0xb3')](db[_0x5caf1e('0xaa')],{'as':'Hoppers','foreignKey':_0x5caf1e('0x126')}),db['CmContact'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x77')],{'as':'HopperFinals','foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x37')][_0x5caf1e('0xb3')](db['CmHopperHistory'],{'as':'HopperHistories','foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x37')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x9d')],{'as':_0x5caf1e('0x9d'),'foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x37')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1c5')],{'as':_0x5caf1e('0xb9'),'foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x37')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x162')],{'as':_0x5caf1e('0x75'),'foreignKey':_0x5caf1e('0x126'),'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x37')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1fc')],{'as':_0x5caf1e('0xe2'),'foreignKey':_0x5caf1e('0x126'),'onDelete':'restrict'}),db['CmContact'][_0x5caf1e('0xb3')](db[_0x5caf1e('0xc8')],{'as':_0x5caf1e('0x196'),'foreignKey':'ContactId','onDelete':_0x5caf1e('0xf9')}),db['CmContact']['hasMany'](db['FaxInteraction'],{'as':_0x5caf1e('0xad'),'foreignKey':_0x5caf1e('0x126'),'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x37')][_0x5caf1e('0xb3')](db['MailInteraction'],{'as':'MailInteractions','foreignKey':'ContactId','onDelete':'restrict'}),db[_0x5caf1e('0x37')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x48')],{'as':_0x5caf1e('0x168'),'foreignKey':'CompanyId'}),db['CmContact'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x37')]['belongsToMany'](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x35'),'through':_0x5caf1e('0x108')}),db['CmContact'][_0x5caf1e('0x79')](db['Tag'],{'as':_0x5caf1e('0x140'),'through':_0x5caf1e('0x152')}),db['CmContact'][_0x5caf1e('0x79')](db['Tag'],{'through':_0x5caf1e('0x152'),'as':_0x5caf1e('0xe0')}),db[_0x5caf1e('0xaa')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x2a'),'foreignKey':_0x5caf1e('0x126'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0xaa')][_0x5caf1e('0x1c3')](db['CmList'],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21'),'onDelete':'cascade'}),db['CmHopper'][_0x5caf1e('0x1c3')](db['User'],{'as':_0x5caf1e('0x14d'),'foreignKey':'UserId'}),db[_0x5caf1e('0xaa')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x11a')],{'as':'Queue','foreignKey':'VoiceQueueId','onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0xaa')]['belongsTo'](db[_0x5caf1e('0xd0')],{'as':_0x5caf1e('0xd0'),'foreignKey':_0x5caf1e('0x184'),'onDelete':'cascade'}),db['CmHopper'][_0x5caf1e('0x1c3')](db['User'],{'as':_0x5caf1e('0x3c'),'foreignKey':_0x5caf1e('0x60')}),db['CmHopperBlack']['belongsTo'](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x2a'),'foreignKey':_0x5caf1e('0x126'),'onDelete':'cascade'}),db['CmHopperBlack'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':'List','foreignKey':_0x5caf1e('0x21'),'onDelete':'cascade'}),db['CmHopperBlack'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x11a')],{'as':_0x5caf1e('0x1a0'),'foreignKey':'VoiceQueueId','onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x163')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xd0')],{'as':'Campaign','foreignKey':_0x5caf1e('0x184'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x17f')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x12d')],{'as':{'plural':_0x5caf1e('0x167'),'singular':_0x5caf1e('0x7e')},'foreignKey':_0x5caf1e('0x1b9'),'onDelete':_0x5caf1e('0x16e'),'hooks':!![]}),db['Automation']['hasMany'](db['Condition'],{'as':{'plural':'Any','singular':_0x5caf1e('0x1da')},'foreignKey':_0x5caf1e('0xe5'),'onDelete':_0x5caf1e('0x16e'),'hooks':!![]}),db[_0x5caf1e('0x17f')]['hasMany'](db[_0x5caf1e('0x59')],{'as':'Actions','foreignKey':'AutomationId','onDelete':_0x5caf1e('0x16e'),'hooks':!![]}),db[_0x5caf1e('0x1b5')]['hasMany'](db[_0x5caf1e('0x1b5')],{'as':_0x5caf1e('0xa6'),'foreignKey':_0x5caf1e('0x58'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0xd9')][_0x5caf1e('0xb3')](db['Interval'],{'as':_0x5caf1e('0x1eb'),'foreignKey':_0x5caf1e('0x1a9'),'onDelete':_0x5caf1e('0x16e'),'hooks':!![],'required':![]}),db[_0x5caf1e('0xd9')]['hasMany'](db['VoiceExtension'],{'as':_0x5caf1e('0x20'),'foreignKey':_0x5caf1e('0x1a9'),'onDelete':'restrict'}),db[_0x5caf1e('0xd9')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x147')],{'as':'MailApplications','foreignKey':_0x5caf1e('0x1a9')}),db[_0x5caf1e('0xd9')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x186')],{'as':_0x5caf1e('0x175'),'foreignKey':'IntervalId'}),db[_0x5caf1e('0xd9')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1f7')],{'as':_0x5caf1e('0x19b'),'foreignKey':'IntervalId'}),db[_0x5caf1e('0xd9')]['hasMany'](db[_0x5caf1e('0xf8')],{'as':_0x5caf1e('0x1d0'),'foreignKey':'IntervalId'}),db[_0x5caf1e('0x194')][_0x5caf1e('0x1c3')](db['MailAccount'],{}),db[_0x5caf1e('0x194')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xd8')],{'foreignKey':_0x5caf1e('0x130')}),db['Schedule'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1b0')],{'foreignKey':_0x5caf1e('0x94')}),db[_0x5caf1e('0x1a2')][_0x5caf1e('0x79')](db[_0x5caf1e('0x73')],{'as':_0x5caf1e('0xda'),'through':'moh_has_sounds','onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x1d2')][_0x5caf1e('0x79')](db[_0x5caf1e('0x37')],{'through':_0x5caf1e('0x152')}),db[_0x5caf1e('0x1d2')]['belongsToMany'](db[_0x5caf1e('0x1fc')],{'through':_0x5caf1e('0xeb')}),db[_0x5caf1e('0x1d2')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1f8')],{'through':'mail_interaction_has_tags'}),db[_0x5caf1e('0x1d2')][_0x5caf1e('0x79')](db['SmsInteraction'],{'through':_0x5caf1e('0x13f')}),db[_0x5caf1e('0x1d2')][_0x5caf1e('0x79')](db[_0x5caf1e('0x139')],{'through':_0x5caf1e('0x1ee')}),db[_0x5caf1e('0x1d2')]['belongsToMany'](db['OpenchannelInteraction'],{'through':_0x5caf1e('0x1d3')}),db[_0x5caf1e('0x1d2')][_0x5caf1e('0x79')](db[_0x5caf1e('0x106')],{'through':'whatsapp_interaction_has_tags'}),db['Trigger'][_0x5caf1e('0xb3')](db['Condition'],{'as':{'plural':'AllConditions','singular':_0x5caf1e('0x6b')},'foreignKey':_0x5caf1e('0xd2'),'onDelete':_0x5caf1e('0x16e'),'hooks':!![]}),db[_0x5caf1e('0xff')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x12d')],{'as':{'plural':'AnyConditions','singular':_0x5caf1e('0x7d')},'foreignKey':'TriggerAnyId','onDelete':'cascade','hooks':!![]}),db[_0x5caf1e('0xff')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x59')],{'as':_0x5caf1e('0x1bd'),'foreignKey':'TriggerId','onDelete':_0x5caf1e('0x16e'),'hooks':!![]}),db['AnalyticCustomReport'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1ef')],{'as':'Fields','onDelete':'cascade','foreignKey':'CustomReportId','hooks':!![]}),db['AnalyticDefaultReport']['hasMany'](db[_0x5caf1e('0x1ef')],{'as':_0x5caf1e('0xb6'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x130')}),db[_0x5caf1e('0x197')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1ef')],{'as':_0x5caf1e('0xb6'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x45')}),db[_0x5caf1e('0x1ef')][_0x5caf1e('0x1c3')](db['AnalyticMetric'],{'foreignKey':_0x5caf1e('0x45')}),db['SalesforceAccount']['hasMany'](db[_0x5caf1e('0x1cd')],{'as':'Configurations','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x1cd')]['hasMany'](db[_0x5caf1e('0x1df')],{'as':'Subjects','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x1cd')]['hasMany'](db[_0x5caf1e('0x1df')],{'as':'Descriptions','onDelete':'cascade','foreignKey':'DescriptionId'}),db['SalesforceConfiguration'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1df')],{'as':_0x5caf1e('0xb6'),'onDelete':'cascade','foreignKey':_0x5caf1e('0x102')}),db['SalesforceConfiguration'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x16c')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x1df')]['hasMany'](db['SalesforceField'],{'as':_0x5caf1e('0x18d'),'foreignKey':'SubjectId'}),db['SalesforceField'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1df')],{'as':_0x5caf1e('0x1c2'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x1df')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1df')],{'as':_0x5caf1e('0x97'),'foreignKey':_0x5caf1e('0x102')}),db['SalesforceField'][_0x5caf1e('0x1c3')](db['Variable'],{'as':_0x5caf1e('0xf5'),'foreignKey':_0x5caf1e('0x127')}),db['SugarcrmAccount'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x8e')],{'as':'Configurations','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x8e')]['hasMany'](db[_0x5caf1e('0x8a')],{'as':_0x5caf1e('0x10b'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x10a')}),db['SugarcrmConfiguration'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x8a')],{'as':_0x5caf1e('0xfb'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x8e')]['hasMany'](db[_0x5caf1e('0x8a')],{'as':_0x5caf1e('0xb6'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x102')}),db['SugarcrmConfiguration']['belongsTo'](db['SugarcrmAccount'],{'as':'Account','foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x8a')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x8a')],{'as':_0x5caf1e('0x18d'),'foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x8a')][_0x5caf1e('0xb3')](db['SugarcrmField'],{'as':_0x5caf1e('0x1c2'),'foreignKey':_0x5caf1e('0x50')}),db['SugarcrmField'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x8a')],{'as':'Field','foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x8a')]['belongsTo'](db['Variable'],{'as':_0x5caf1e('0xf5'),'foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0xd3')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x19e')],{'as':_0x5caf1e('0x18b'),'onDelete':'cascade','foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x19e')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x187')],{'as':_0x5caf1e('0x10b'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x10a')}),db['DeskConfiguration']['hasMany'](db[_0x5caf1e('0x187')],{'as':_0x5caf1e('0xfb'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x19e')][_0x5caf1e('0xb3')](db['DeskField'],{'as':'Fields','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x19e')]['belongsTo'](db['DeskAccount'],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x19e')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':_0x5caf1e('0x1f9')}),db[_0x5caf1e('0x187')][_0x5caf1e('0xb3')](db['DeskField'],{'as':_0x5caf1e('0x18d'),'foreignKey':'SubjectId'}),db[_0x5caf1e('0x187')]['hasMany'](db[_0x5caf1e('0x187')],{'as':_0x5caf1e('0x1c2'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x187')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x187')],{'as':'Field','foreignKey':_0x5caf1e('0x102')}),db['DeskField'][_0x5caf1e('0x1c3')](db['Variable'],{'as':'Variable','foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0x19d')]['hasMany'](db['ZohoConfiguration'],{'as':'Configurations','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x1c4')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x17')],{'as':_0x5caf1e('0x10b'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x10a')}),db['ZohoConfiguration'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x17')],{'as':_0x5caf1e('0xfb'),'onDelete':'cascade','foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x1c4')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x17')],{'as':'Fields','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x1c4')][_0x5caf1e('0x1c3')](db['ZohoAccount'],{'as':_0x5caf1e('0x15d'),'foreignKey':'AccountId'}),db[_0x5caf1e('0x17')][_0x5caf1e('0xb3')](db['ZohoField'],{'as':_0x5caf1e('0x18d'),'foreignKey':'SubjectId'}),db[_0x5caf1e('0x17')]['hasMany'](db[_0x5caf1e('0x17')],{'as':'Description','foreignKey':'DescriptionId'}),db[_0x5caf1e('0x17')]['hasMany'](db[_0x5caf1e('0x17')],{'as':'Field','foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x17')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf5')],{'as':_0x5caf1e('0xf5'),'foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0x70')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1c9')],{'as':_0x5caf1e('0x18b'),'onDelete':'cascade','foreignKey':_0x5caf1e('0xa9')}),db['ZendeskConfiguration'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1f0')],{'as':_0x5caf1e('0x10b'),'foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x1c9')][_0x5caf1e('0xb3')](db['ZendeskField'],{'as':_0x5caf1e('0xfb'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x1c9')]['hasMany'](db['ZendeskField'],{'as':'Fields','foreignKey':_0x5caf1e('0x102')}),db['ZendeskConfiguration'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x70')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x1c9')][_0x5caf1e('0x79')](db['Tag'],{'through':_0x5caf1e('0x99')}),db['ZendeskField'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1f0')],{'as':_0x5caf1e('0x18d'),'foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x1f0')]['hasMany'](db[_0x5caf1e('0x1f0')],{'as':_0x5caf1e('0x1c2'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x1f0')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1f0')],{'as':_0x5caf1e('0x97'),'foreignKey':_0x5caf1e('0x102')}),db['ZendeskField'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf5')],{'as':_0x5caf1e('0xf5'),'foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0x11d')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1b7')],{'as':'Configurations','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xa9')}),db['FreshdeskConfiguration']['hasMany'](db['FreshdeskField'],{'as':_0x5caf1e('0x10b'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':'SubjectId'}),db['FreshdeskConfiguration'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1af')],{'as':_0x5caf1e('0xfb'),'onDelete':'cascade','foreignKey':'DescriptionId'}),db[_0x5caf1e('0x1b7')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1af')],{'as':'Fields','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x1b7')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x11d')],{'as':'Account','foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x1b7')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':_0x5caf1e('0x36')}),db['FreshdeskField'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1af')],{'as':_0x5caf1e('0x18d'),'foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x1af')]['hasMany'](db['FreshdeskField'],{'as':_0x5caf1e('0x1c2'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x1af')][_0x5caf1e('0xb3')](db['FreshdeskField'],{'as':_0x5caf1e('0x97'),'foreignKey':_0x5caf1e('0x102')}),db['FreshdeskField'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf5')],{'as':'Variable','foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0x12a')]['hasMany'](db[_0x5caf1e('0x161')],{'as':_0x5caf1e('0x18b'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x161')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x2')],{'as':'Subjects','foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x161')]['hasMany'](db[_0x5caf1e('0x2')],{'as':'Descriptions','foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x161')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x2')],{'as':_0x5caf1e('0xb6'),'foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x161')][_0x5caf1e('0x1c3')](db['VtigerAccount'],{'as':'Account','foreignKey':'AccountId'}),db['VtigerField']['hasMany'](db[_0x5caf1e('0x2')],{'as':_0x5caf1e('0x18d'),'foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x2')][_0x5caf1e('0xb3')](db['VtigerField'],{'as':_0x5caf1e('0x1c2'),'foreignKey':_0x5caf1e('0x50')}),db['VtigerField']['hasMany'](db[_0x5caf1e('0x2')],{'as':_0x5caf1e('0x97'),'foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x2')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf5')],{'as':_0x5caf1e('0xf5'),'foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0x1e')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x17a')],{'as':'Configurations','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x17a')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x40')],{'as':_0x5caf1e('0x10b'),'foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x17a')][_0x5caf1e('0xb3')](db['ServicenowField'],{'as':_0x5caf1e('0xfb'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x17a')][_0x5caf1e('0xb3')](db['ServicenowField'],{'as':_0x5caf1e('0xb6'),'foreignKey':'FieldId'}),db[_0x5caf1e('0x17a')]['belongsTo'](db[_0x5caf1e('0x1e')],{'as':'Account','foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x40')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x40')],{'as':_0x5caf1e('0x18d'),'foreignKey':_0x5caf1e('0x10a')}),db['ServicenowField']['hasMany'](db[_0x5caf1e('0x40')],{'as':_0x5caf1e('0x1c2'),'foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x40')][_0x5caf1e('0xb3')](db['ServicenowField'],{'as':'Field','foreignKey':'FieldId'}),db[_0x5caf1e('0x40')]['belongsTo'](db['Variable'],{'as':_0x5caf1e('0xf5'),'foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0x10d')][_0x5caf1e('0xb3')](db['Dynamics365Configuration'],{'as':_0x5caf1e('0x18b'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xa9')}),db['Dynamics365Configuration']['hasMany'](db[_0x5caf1e('0x82')],{'as':'Subjects','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x10a')}),db['Dynamics365Configuration'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x82')],{'as':_0x5caf1e('0xfb'),'onDelete':'cascade','foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0x98')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x82')],{'as':'Fields','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x98')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x10d')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x82')][_0x5caf1e('0xb3')](db['Dynamics365Field'],{'as':'Subject','foreignKey':'SubjectId'}),db[_0x5caf1e('0x82')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x82')],{'as':'Description','foreignKey':'DescriptionId'}),db['Dynamics365Field']['hasMany'](db[_0x5caf1e('0x82')],{'as':_0x5caf1e('0x97'),'foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0x82')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf5')],{'as':'Variable','foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0x15b')][_0x5caf1e('0xb3')](db[_0x5caf1e('0xb4')],{'as':_0x5caf1e('0x18b'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0xb4')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1')],{'as':'Subjects','foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0xb4')]['hasMany'](db[_0x5caf1e('0x1')],{'as':'Descriptions','foreignKey':_0x5caf1e('0x50')}),db[_0x5caf1e('0xb4')]['hasMany'](db[_0x5caf1e('0x1')],{'as':'Fields','foreignKey':_0x5caf1e('0x102')}),db[_0x5caf1e('0xb4')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x15b')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0xa9')}),db[_0x5caf1e('0x1')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1')],{'as':_0x5caf1e('0x18d'),'foreignKey':_0x5caf1e('0x10a')}),db[_0x5caf1e('0x1')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1')],{'as':_0x5caf1e('0x1c2'),'foreignKey':'DescriptionId'}),db[_0x5caf1e('0x1')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1')],{'as':_0x5caf1e('0x97'),'foreignKey':'FieldId'}),db[_0x5caf1e('0x1')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf5')],{'as':_0x5caf1e('0xf5'),'foreignKey':_0x5caf1e('0x127')}),db[_0x5caf1e('0xfe')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1cb')],{}),db['ChatQueueReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':'List','foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0xfe')]['belongsTo'](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x2a'),'foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0xfe')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1fc')],{}),db[_0x5caf1e('0xfe')][_0x5caf1e('0x1c3')](db['ChatMessage'],{}),db['ChatQueueReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{}),db[_0x5caf1e('0xfe')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xfc')],{}),db[_0x5caf1e('0x1fa')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'onDelete':_0x5caf1e('0x16e'),'foreignKey':'FromId'}),db[_0x5caf1e('0x1fa')]['belongsTo'](db[_0x5caf1e('0x86')],{'onDelete':'cascade','foreignKey':_0x5caf1e('0x11f')}),db['JscriptySessionReport'][_0x5caf1e('0xb3')](db['JscriptyQuestionReport'],{'foreignKey':_0x5caf1e('0x9f'),'onDelete':'cascade'}),db[_0x5caf1e('0x1c5')]['hasMany'](db[_0x5caf1e('0x0')],{'foreignKey':_0x5caf1e('0x9f'),'onDelete':'cascade'}),db['SmsQueueReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xb2')],{}),db[_0x5caf1e('0x17e')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x17e')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x37')],{'as':'Contact','foreignKey':_0x5caf1e('0x126')}),db[_0x5caf1e('0x17e')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xc8')],{}),db[_0x5caf1e('0x17e')][_0x5caf1e('0x1c3')](db['SmsMessage'],{}),db['SmsQueueReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{}),db['SmsQueueReport'][_0x5caf1e('0x1c3')](db['SmsQueue'],{}),db[_0x5caf1e('0x44')]['hasMany'](db[_0x5caf1e('0x1c5')],{'foreignKey':_0x5caf1e('0x13d')}),db[_0x5caf1e('0x44')][_0x5caf1e('0xb3')](db['JscriptyQuestionReport'],{'foreignKey':_0x5caf1e('0x13d')}),db[_0x5caf1e('0x44')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x0')],{'foreignKey':_0x5caf1e('0x13d')}),db[_0x5caf1e('0x18a')]['belongsToMany'](db[_0x5caf1e('0x86')],{'as':'Users','through':'user_has_square_projects'}),db[_0x5caf1e('0x142')]['belongsToMany'](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x4a')}),db[_0x5caf1e('0x142')][_0x5caf1e('0x79')](db[_0x5caf1e('0x11a')],{'through':_0x5caf1e('0x14'),'as':'VoiceQueues'}),db[_0x5caf1e('0x142')][_0x5caf1e('0x79')](db[_0x5caf1e('0xde')],{'through':_0x5caf1e('0x1dc'),'as':'MailQueues'}),db[_0x5caf1e('0x142')]['belongsToMany'](db[_0x5caf1e('0xfc')],{'through':_0x5caf1e('0x165'),'as':_0x5caf1e('0xd')}),db[_0x5caf1e('0x142')][_0x5caf1e('0x79')](db[_0x5caf1e('0xc')],{'through':'team_has_fax_queues','as':_0x5caf1e('0x31')}),db[_0x5caf1e('0x142')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1e2')],{'through':_0x5caf1e('0x6e'),'as':'SmsQueues'}),db[_0x5caf1e('0x142')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1e9')],{'through':_0x5caf1e('0x101'),'as':'OpenchannelQueues'}),db[_0x5caf1e('0x142')][_0x5caf1e('0x79')](db[_0x5caf1e('0xef')],{'through':_0x5caf1e('0x2f'),'as':_0x5caf1e('0x146')}),db['Campaign'][_0x5caf1e('0xb3')](db['CmHopper'],{'as':_0x5caf1e('0x1b3'),'foreignKey':_0x5caf1e('0x184')}),db['Campaign'][_0x5caf1e('0xb3')](db['CmHopperFinal'],{'as':_0x5caf1e('0x1e4'),'foreignKey':_0x5caf1e('0x184')}),db['Campaign']['hasMany'](db[_0x5caf1e('0x53')],{'as':_0x5caf1e('0xb1'),'foreignKey':_0x5caf1e('0x184')}),db[_0x5caf1e('0xd0')]['hasMany'](db[_0x5caf1e('0x163')],{'as':_0x5caf1e('0x195'),'foreignKey':'CampaignId'}),db['Campaign'][_0x5caf1e('0x1c3')](db['Trunk'],{'as':_0x5caf1e('0x6'),'foreignKey':_0x5caf1e('0x1ca')}),db['Campaign']['belongsTo'](db[_0x5caf1e('0x6')],{'as':_0x5caf1e('0x1a'),'foreignKey':_0x5caf1e('0x112')}),db[_0x5caf1e('0xd0')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xd9')],{'as':_0x5caf1e('0xd9'),'foreignKey':_0x5caf1e('0x1a9')}),db[_0x5caf1e('0xd0')][_0x5caf1e('0x1c3')](db['SquareProject'],{'as':'SquareProject','foreignKey':'SquareProjectId'}),db[_0x5caf1e('0xd0')][_0x5caf1e('0x79')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x1f3'),'through':_0x5caf1e('0x18c')}),db[_0x5caf1e('0xd0')][_0x5caf1e('0x79')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0xc1'),'through':_0x5caf1e('0x28')}),db[_0x5caf1e('0x1a3')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x177')],{}),db[_0x5caf1e('0x1a3')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1f8')],{}),db['MailTransferReport']['belongsTo'](db[_0x5caf1e('0x74')],{'foreignKey':_0x5caf1e('0x107'),'as':'FromAccount'}),db[_0x5caf1e('0x1a3')][_0x5caf1e('0x1c3')](db['User'],{'foreignKey':'FromUserId','as':_0x5caf1e('0x159')}),db[_0x5caf1e('0x1a3')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':'ToUserId','as':_0x5caf1e('0x32')}),db[_0x5caf1e('0x1a3')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xde')],{'foreignKey':_0x5caf1e('0x56'),'as':_0x5caf1e('0xf7')}),db[_0x5caf1e('0x1a3')]['belongsTo'](db[_0x5caf1e('0x74')],{'foreignKey':_0x5caf1e('0x12'),'as':_0x5caf1e('0x8c')}),db[_0x5caf1e('0x4c')]['belongsTo'](db[_0x5caf1e('0x1f')],{}),db[_0x5caf1e('0x4c')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1fc')],{}),db['ChatTransferReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1cb')],{'foreignKey':_0x5caf1e('0xb0'),'as':_0x5caf1e('0xe9')}),db[_0x5caf1e('0x4c')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x1c'),'as':_0x5caf1e('0x159')}),db[_0x5caf1e('0x4c')]['belongsTo'](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x13b'),'as':_0x5caf1e('0x32')}),db[_0x5caf1e('0x4c')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xfc')],{'foreignKey':_0x5caf1e('0x24'),'as':_0x5caf1e('0xf7')}),db[_0x5caf1e('0x4c')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1cb')],{'foreignKey':_0x5caf1e('0x47'),'as':_0x5caf1e('0x8c')}),db[_0x5caf1e('0x14b')]['belongsTo'](db[_0x5caf1e('0x1d')],{}),db[_0x5caf1e('0x14b')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x139')],{}),db[_0x5caf1e('0x14b')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xf')],{'foreignKey':_0x5caf1e('0x80'),'as':_0x5caf1e('0xe9')}),db[_0x5caf1e('0x14b')]['belongsTo'](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x1c'),'as':_0x5caf1e('0x159')}),db['FaxTransferReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x13b'),'as':'ToAgent'}),db[_0x5caf1e('0x14b')]['belongsTo'](db[_0x5caf1e('0xc')],{'foreignKey':_0x5caf1e('0x42'),'as':_0x5caf1e('0xf7')}),db[_0x5caf1e('0x14b')]['belongsTo'](db[_0x5caf1e('0xf')],{'foreignKey':_0x5caf1e('0x8d'),'as':'ToAccount'}),db[_0x5caf1e('0x7f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x2e')],{}),db[_0x5caf1e('0x7f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x162')],{}),db[_0x5caf1e('0x7f')][_0x5caf1e('0x1c3')](db['OpenchannelAccount'],{'foreignKey':_0x5caf1e('0xcc'),'as':_0x5caf1e('0xe9')}),db[_0x5caf1e('0x7f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x1c'),'as':_0x5caf1e('0x159')}),db['OpenchannelTransferReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x13b'),'as':_0x5caf1e('0x32')}),db[_0x5caf1e('0x7f')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1e9')],{'foreignKey':'ToOpenchannelQueueId','as':_0x5caf1e('0xf7')}),db[_0x5caf1e('0x7f')]['belongsTo'](db[_0x5caf1e('0x12e')],{'foreignKey':_0x5caf1e('0xcd'),'as':_0x5caf1e('0x8c')}),db[_0x5caf1e('0x160')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1c1')],{}),db[_0x5caf1e('0x160')][_0x5caf1e('0x1c3')](db['SmsInteraction'],{}),db[_0x5caf1e('0x160')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xb2')],{'foreignKey':'FromSmsAccountId','as':_0x5caf1e('0xe9')}),db[_0x5caf1e('0x160')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x1c'),'as':'FromAgent'}),db[_0x5caf1e('0x160')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x13b'),'as':_0x5caf1e('0x32')}),db[_0x5caf1e('0x160')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1e2')],{'foreignKey':_0x5caf1e('0x3b'),'as':'ToQueue'}),db['SmsTransferReport']['belongsTo'](db[_0x5caf1e('0xb2')],{'foreignKey':'ToSmsAccountId','as':_0x5caf1e('0x8c')}),db[_0x5caf1e('0x172')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x1b5')],{'as':_0x5caf1e('0xa6'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x172')][_0x5caf1e('0xb3')](db['CmCustomField'],{'as':_0x5caf1e('0x13a'),'foreignKey':_0x5caf1e('0x21')}),db['CmList']['hasMany'](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x7'),'onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x172')]['hasMany'](db['CmHopperFinal'],{'as':_0x5caf1e('0x1e4'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x172')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x53')],{'as':'HopperHistory','foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x172')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x9d')],{'as':_0x5caf1e('0x9d'),'foreignKey':_0x5caf1e('0x21')}),db['CmList'][_0x5caf1e('0x79')](db[_0x5caf1e('0x11a')],{'as':_0x5caf1e('0x145'),'through':_0x5caf1e('0x54')}),db[_0x5caf1e('0x172')]['belongsToMany'](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x89')}),db['VoicePrefix'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x91')],{'as':_0x5caf1e('0x20'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x110')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0x1e1')}),db['UserProfile'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x35'),'foreignKey':'userProfileId','onDelete':_0x5caf1e('0xf9')}),db['UserProfile']['hasMany'](db[_0x5caf1e('0xa')],{'as':_0x5caf1e('0xee'),'foreignKey':_0x5caf1e('0x1ea'),'onDelete':_0x5caf1e('0x16e')}),db['UserProfileSection'][_0x5caf1e('0xb3')](db[_0x5caf1e('0x69')],{'as':_0x5caf1e('0x72'),'foreignKey':_0x5caf1e('0x1f1'),'onDelete':_0x5caf1e('0x16e')}),db[_0x5caf1e('0x16d')]['hasMany'](db[_0x5caf1e('0x1b5')],{'as':_0x5caf1e('0xa6'),'foreignKey':'WhatsappAccountId'}),db[_0x5caf1e('0x16d')][_0x5caf1e('0xb3')](db[_0x5caf1e('0xd7')],{'as':_0x5caf1e('0x3a'),'foreignKey':'WhatsappAccountId'}),db['WhatsappAccount']['hasMany'](db[_0x5caf1e('0x4b')],{'as':_0x5caf1e('0xcb'),'foreignKey':_0x5caf1e('0x129')}),db[_0x5caf1e('0x16d')]['hasMany'](db['WhatsappInteraction'],{'as':'Interactions'}),db[_0x5caf1e('0x16d')][_0x5caf1e('0xb3')](db[_0x5caf1e('0x39')],{'as':_0x5caf1e('0x9')}),db[_0x5caf1e('0x16d')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x61'),'foreignKey':_0x5caf1e('0x21')}),db[_0x5caf1e('0x16d')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x11b')],{'as':_0x5caf1e('0x13c'),'foreignKey':_0x5caf1e('0x1d5')}),db[_0x5caf1e('0x16d')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0xfd'),'through':_0x5caf1e('0xab')}),db['WhatsappApplication']['belongsTo'](db['User'],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x39')][_0x5caf1e('0x1c3')](db['WhatsappQueue'],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x39')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x16d')],{'onDelete':_0x5caf1e('0xf9')}),db[_0x5caf1e('0x39')][_0x5caf1e('0x1c3')](db['Interval'],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':_0x5caf1e('0x1a9')}),db[_0x5caf1e('0x39')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x1d2')],{'onDelete':_0x5caf1e('0xf9'),'foreignKey':_0x5caf1e('0x1e8')}),db['WhatsappInteraction']['hasMany'](db[_0x5caf1e('0x4b')],{'as':'Messages','onDelete':_0x5caf1e('0x16e'),'foreignKey':_0x5caf1e('0xc5')}),db['WhatsappInteraction'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x16d')],{'as':_0x5caf1e('0x15d'),'foreignKey':_0x5caf1e('0x129')}),db[_0x5caf1e('0x106')]['belongsTo'](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x2a'),'foreignKey':'ContactId'}),db[_0x5caf1e('0x106')][_0x5caf1e('0x1c3')](db['User'],{'as':_0x5caf1e('0x3c'),'foreignKey':_0x5caf1e('0x41')}),db[_0x5caf1e('0x106')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':'whatsapp_interaction_has_tags','as':'Tags'}),db[_0x5caf1e('0x106')][_0x5caf1e('0x79')](db[_0x5caf1e('0x1d2')],{'through':_0x5caf1e('0x1e3'),'as':_0x5caf1e('0xe0')}),db[_0x5caf1e('0x106')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x35'),'through':_0x5caf1e('0x1a7'),'foreignKey':_0x5caf1e('0xc5')}),db[_0x5caf1e('0x4b')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'as':_0x5caf1e('0x86')}),db[_0x5caf1e('0x4b')]['belongsTo'](db[_0x5caf1e('0x37')],{'onDelete':_0x5caf1e('0x16e'),'as':_0x5caf1e('0x2a')}),db[_0x5caf1e('0x4b')]['belongsTo'](db[_0x5caf1e('0x106')],{'onDelete':_0x5caf1e('0x16e'),'as':_0x5caf1e('0x1d8'),'foreignKey':_0x5caf1e('0xc5')}),db[_0x5caf1e('0x4b')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x16d')],{'as':'Account','foreignKey':_0x5caf1e('0x129')}),db[_0x5caf1e('0x1cf')]['belongsTo'](db[_0x5caf1e('0x16d')],{}),db[_0x5caf1e('0x1cf')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x172')],{'as':_0x5caf1e('0x61'),'foreignKey':'ListId'}),db[_0x5caf1e('0x1cf')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x37')],{'as':_0x5caf1e('0x2a'),'foreignKey':_0x5caf1e('0x126')}),db['WhatsappQueueReport'][_0x5caf1e('0x1c3')](db['WhatsappInteraction'],{}),db[_0x5caf1e('0x1cf')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xef')],{}),db[_0x5caf1e('0x1cf')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x4b')],{}),db[_0x5caf1e('0x1cf')]['belongsTo'](db[_0x5caf1e('0x86')],{}),db['WhatsappTransferReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x4b')],{}),db[_0x5caf1e('0xdc')][_0x5caf1e('0x1c3')](db['WhatsappInteraction'],{}),db[_0x5caf1e('0xdc')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x16d')],{'foreignKey':'FromWhatsappAccountId','as':_0x5caf1e('0xe9')}),db[_0x5caf1e('0xdc')]['belongsTo'](db['WhatsappAccount'],{'foreignKey':'ToWhatsappAccountId','as':'ToAccount'}),db['WhatsappTransferReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0xef')],{'foreignKey':_0x5caf1e('0xd1'),'as':'ToQueue'}),db['WhatsappTransferReport'][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':'FromUserId','as':'FromAgent'}),db[_0x5caf1e('0xdc')][_0x5caf1e('0x1c3')](db[_0x5caf1e('0x86')],{'foreignKey':_0x5caf1e('0x13b'),'as':'ToAgent'}),db[_0x5caf1e('0xef')][_0x5caf1e('0x79')](db[_0x5caf1e('0x86')],{'as':'Agents','through':_0x5caf1e('0x5b'),'foreignKey':_0x5caf1e('0x63')}),db['WhatsappQueue']['belongsToMany'](db[_0x5caf1e('0x142')],{'through':_0x5caf1e('0x2f'),'as':'Teams'}),module[_0x5caf1e('0x199')]={'db':db,'dbH':dbH}; \ No newline at end of file +const a1022_0x73b6=['team_has_sms_queues','../api/openchannelQueueReport/openchannelQueueReport.model','../api/cmList/cmList.model','Subject','AutomationAllId','SquareDetailsReport','VtigerConfiguration','../api/cmHopperFinal/cmHopperFinal.model','user_has_mail_interactions','hasOne','SmsQueue','OpenchannelTransferReport','user_has_sms_interactions','database','Hoppers','../api/voiceMusicOnHold/voiceMusicOnHold.model','MemberReport','VoiceTransferReport','FreshdeskConfiguration','OpenchannelAccount','MailMessage','belongsToMany','BlackLists','OpenchannelInteraction','userProfileId','jstz','Extensions','../api/voiceContext/voiceContext.model','../api/interval/interval.model','Action','ToSmsAccountId','UserWhatsappQueue','../api/cmHopperBlack/cmHopperBlack.model','VoiceQueueId','ContactId','../api/intZendeskAccount/intZendeskAccount.model','dbHost','FromOpenchannelAccountId','openchannel_interaction_has_tags','../api/mailServerOut/mailServerOut.model','VoiceQueue','user_has_mail_accounts','../api/chatGroup/chatGroup.model','SalesforceField','FaxQueueReport','UserFaxQueue','WhatsappQueue','JscriptySessions','../api/chatInternalMessage/chatInternalMessage.model','../api/intDeskConfiguration/intDeskConfiguration.model','CmList','FieldId','FromAccount','../api/faxMessage/faxMessage.model','Recordings','FaxAccounts','../api/intSalesforceField/intSalesforceField.model','../api/squareReportDetail/squareReportDetail.model','../api/chatApplication/chatApplication.model','FreshsalesConfiguration','JscriptyQuestionReport','team_has_openchannel_queues','CannedAnswer','FreshdeskAccount','../api/faxQueueReport/faxQueueReport.model','SmsInteractionId','FromChatWebsiteId','team_has_chat_queues','UserProfileSection','../api/smsInteraction/smsInteraction.model','user_has_chat_interactions','Dispositions','Attachment','UserOpenchannelInteractions','../api/license/license.model','../api/campaign/campaign.model','UserVoiceQueue','SmsInteractions','AnyConditions','../api/intFreshdeskConfiguration/intFreshdeskConfiguration.model','../api/integration/integration.model','mandatoryDispositionPause','cm_user_has_lists','SalesforceConfiguration','../api/voiceMail/voiceMail.model','hasMany','ListId','voice_queues_has_cm_blacklists','SmsAccount','WhatsappAccountId','../api/chatOfflineMessage/chatOfflineMessage.model','OpenchannelQueueReport','Actions','password','UserProfileResource','Descriptions','Interval','cascade','FromUserId','UserWhatsappInteractions','SquareProjects','chat_group_has_users','Owner','ProjectId','Variable','WhatsappQueues','Campaign','SmsAccounts','DashboardItem','WhatsappTransferReport','user_has_chat_websites','ParentId','SessionId','OpenchannelQueue','AnalyticMetric','../api/intSugarcrmConfiguration/intSugarcrmConfiguration.model','ToChatWebsiteId','defaultsDeep','../api/whatsappAccount/whatsappAccount.model','../api/intFreshdeskField/intFreshdeskField.model','Interaction','FaxAccountId','../api/intVtigerConfiguration/intVtigerConfiguration.model','DeskAccount','VoiceCallReport','ZendeskConfiguration','FromMailAccountId','../api/intZendeskConfiguration/intZendeskConfiguration.model','team_has_voice_queues','UserId','Dynamics365Field','../api/intSalesforceConfiguration/intSalesforceConfiguration.model','WhatsappInteractionId','cm_contact_has_tags','Dashboard','ChatWebsiteId','FreshdeskField','Setting','MailQueueReport','Fields','WhatsappInteractions','Any','SmsApplications','../api/reportAgentPreview/reportAgentPreview.model','../api/voiceDialReport/voiceDialReport.model','ServicenowField','UserOpenchannelQueue','SugarcrmAccount','../api/intDynamics365Configuration/intDynamics365Configuration.model','Template','OwnerId','../api/jscriptySessionReport/jscriptySessionReport.model','AnalyticTreeReport','../api/dashboardItem/dashboardItem.model','CustomReportId','ToQueue','IntegrationReport','../api/voicePrefix/voicePrefix.model','../api/smsTransferReport/smsTransferReport.model','AnalyticDefaultReport','Automation','name','OpenchannelInteractionId','Messages','../api/openchannelQueue/openchannelQueue.model','sectionId','TagId','../api/whatsappTransferReport/whatsappTransferReport.model','../api/chatProactiveAction/chatProactiveAction.model','SquareMessage','ToFaxAccountId','user_has_whatsapp_accounts','ChatGroupId','user_has_square_projects','../api/userOpenchannelQueue/userOpenchannelQueue.model','../api/notification/notification.model','getConfigService','Users','VoiceRecording','../api/condition/condition.model','VoiceMusicOnHold','FaxInteractions','MailAccountId','mandatoryDispositionPauseId','VoiceExtension','../api/disposition/disposition.model','Agent','../api/userVoiceQueue/userVoiceQueue.model','team_has_mail_queues','Website','AnalyticExtractedReport','moh_has_sounds','AutomationId','user_has_voice_prefixes','mailboxuser','ChatQueues','UserChatQueue','../api/openchannelApplication/openchannelApplication.model','ToAgent','FaxInteraction','db-query','../api/cloudProvider/cloudProvider.model','MailTransferReport','FaxMessage','JscriptyProject','SmsInteraction','Agents','../api/smsQueue/smsQueue.model','FaxTransferReport','sequelize','../api/jscriptyProject/jscriptyProject.model','CampaignId','user_has_teams','mysqlUser','Contact','ServicenowAccount','MailApplication','int_desk_configuration_has_tags','CmContact','../api/trigger/trigger.model','ToUserId','../api/faxInteraction/faxInteraction.model','../api/intServicenowField/intServicenowField.model','ZohoField','../api/jscriptyAnswerReport/jscriptyAnswerReport.model','../api/voiceAgentReport/voiceAgentReport.model','CmCompany','VtigerField','../api/intZohoAccount/intZohoAccount.model','OpenchannelMessage','Cdr','ChatInteraction','HopperHistories','MailQueues','../api/voiceRecording/voiceRecording.model','../api/voiceTransferReport/voiceTransferReport.model','MailQueue','TrunkId','VoiceQueues','VoiceQueuesLog','../api/intFreshdeskAccount/intFreshdeskAccount.model','License','Trigger','HopperBlacks','cm_user_has_contacts','../api/variable/variable.model','Answers','SmsApplication','MailInteractions','ToId','../api/userFaxQueue/userFaxQueue.model','MailApplications','../api/intVtigerAccount/intVtigerAccount.model','whatsapp_interaction_has_tags','UserMailQueue','SmsQueueReport','../api/faxAccount/faxAccount.model','VoiceQueuesRt','../api/cannedAnswer/cannedAnswer.model','ServicenowConfiguration','JscriptyAnswerReport','belongsTo','ChatMessage','../api/mailServerIn/mailServerIn.model','CompanyId','uniqueid','../api/smsMessage/smsMessage.model','../api/intDeskAccount/intDeskAccount.model','../api/intFreshsalesField/intFreshsalesField.model','ToChatQueueId','../api/squareMessage/squareMessage.model','ChatApplication','WhatsappAccount','VoicePrefix','../api/userSmsQueue/userSmsQueue.model','../api/mailTransferReport/mailTransferReport.model','ChatOfflineMessage','../api/intZohoField/intZohoField.model','ToMailAccountId','options','ChatInternalMessage','WhatsappQueueId','HopperHistory','Items','../api/smsApplication/smsApplication.model','FreshsalesField','DataTypes','../api/mailApplication/mailApplication.model','../api/intServicenowConfiguration/intServicenowConfiguration.model','../api/attachment/attachment.model','sms_interaction_has_tags','../api/cmContact/cmContact.model','Pause','SmsTransferReport','SmsAccountId','DeskField','mailbox','info','IntervalId','Contacts','Plugin','../api/integrationReport/integrationReport.model','team_has_whatsapp_queues','FaxInteractionId','../api/cmHopperHistory/cmHopperHistory.model','../config/environment','SquareRecording','../api/setting/setting.model','VoiceAgentReport','../api/whatsappApplication/whatsappApplication.model','ZohoAccount','Configurations','../api/voiceMailMessage/voiceMailMessage.model','VoiceContext','dbPort','username','VtigerAccount','user_has_openchannel_accounts','CmHopper','AnyCondition','WhatsappApplication','team_has_fax_queues','mysqlPassword','OpenchannelApplication','SmsQueues','SugarcrmConfiguration','int_zendesk_configuration_has_tags','DefaultReportId','utf8mb4','Notification','ZohoConfiguration','../api/mailMessage/mailMessage.model','CmCustomField','ChatApplications','../api/screenRecording/screenRecording.model','../api/squareRecording/squareRecording.model','ZendeskAccount','QueueCalls','MailInteraction','ChatInteractionId','Lists','ToWhatsappAccountId','ProactiveActions','ChatWebsites','user_has_openchannel_interactions','FaxQueue','user_has_whatsapp_interactions','SubjectId','../api/whatsappQueueReport/whatsappQueueReport.model','utf8_general_ci','OpenchannelAccounts','ToMailQueueId','AttachmentId','FromAgent','ChatQueue','../api/analyticCustomReport/analyticCustomReport.model','../api/plugin/plugin.model','mail_interaction_has_tags','OneAll','UserVoiceQueueRt','Field','../api/whatsappInteraction/whatsappInteraction.model','Notifications','../api/squareOdbc/squareOdbc.model','Trunk','../api/migration/migration.model','../api/intVtigerField/intVtigerField.model','OpenchannelQueueId','../api/userChatQueue/userChatQueue.model','../api/squareReport/squareReport.model','../config/config.service','../api/chatWebsite/chatWebsite.model','../api/intSugarcrmAccount/intSugarcrmAccount.model','Mohs','FreshsalesAccount','FaxAccount','TriggerAnyId','../api/sound/sound.model','CmHopperBlack','SquareReport','../api/user/user.model','Subjects','OpenchannelAccountId','../api/whatsappMessage/whatsappMessage.model','Tag','Groups','../api/userProfileResource/userProfileResource.model','FaxApplication','ToAccount','../api/smsAccount/smsAccount.model','MailSubstatus','VoiceMailMessage','../api/intDeskField/intDeskField.model','MailAccount','Migration','AnalyticFieldReport','Schedule','../api/openchannelAccount/openchannelAccount.model','SquareProject','UserSmsQueue','Team','ChatInteractions','UserSmsInteractions','MetricId','HopperFinals','../api/userVoiceQueueRt/userVoiceQueueRt.model','../api/userWhatsappQueue/userWhatsappQueue.model','../api/chatQueue/chatQueue.model','../api/intSalesforceAccount/intSalesforceAccount.model','WhatsappInteraction','ThroughTags','../api/voiceQueue/voiceQueue.model','SquareOdbc','Description','../api/jscriptyQuestionReport/jscriptyQuestionReport.model','../api/faxTransferReport/faxTransferReport.model','CmHopperHistory','mysqlDatabase','UserProfileSections','Members','Dynamics365Configuration','../api/intSugarcrmField/intSugarcrmField.model','MailServerOut','ChatGroup','Tags','../api/userProfile/userProfile.model','Smtp','WhatsappQueueReport','user_has_sms_accounts','Account','../api/intFreshsalesConfiguration/intFreshsalesConfiguration.model','../api/faxApplication/faxApplication.model','MailServerIn','ReportAgentPreview','All','User','Dynamics365Account','JscriptySessionReport','TrunkBackup','Disposition','restrict','SalesforceAccount','../api/openchannelMessage/openchannelMessage.model','Sound','user_has_fax_accounts','VariableId','Integration','OpenchannelInteractions','CmHopperFinal','SmsMessage','../api/trunk/trunk.model','MailInteractionId','ChanSpyId','Applications','CustomFields','../api/analyticMetric/analyticMetric.model','AllConditions','../api/schedule/schedule.model','Attachments','../api/chatMessage/chatMessage.model','../api/intDynamics365Field/intDynamics365Field.model','FromWhatsappAccountId','sequelizeHistory','Exntensions','mysql','MailAccounts','Interactions','Queue','../api/voiceChanSpy/voiceChanSpy.model','campaigns_has_cm_blacklists','WhatsappAccounts','FromSmsAccountId','DescriptionId','AnalyticCustomReport','VoicePrefixes','lodash','int_freshdesk_configuration_has_tags','ChatWebsite','SugarcrmField','fax_interaction_has_tags','UserMailInteractions','FaxApplications','../api/analyticTreeReport/analyticTreeReport.model','WhatsappMessage','ZendeskField','ScreenRecording','user_has_fax_interactions','UserProfile','VoiceMail','FromId','TrunkBackupId','chat_interaction_has_tags','DeskConfiguration','ChatQueueReport','../config/logger','VoiceChanSpy','Teams','ToOpenchannelQueueId','ChatTransferReport','../api/network/network.model','../api/team/team.model','AccountId','../api/chatTransferReport/chatTransferReport.model','Condition','List','VoiceQueueReport'];(function(_0x373ea6,_0x73b6bf){const _0x22a1ff=function(_0x1896c8){while(--_0x1896c8){_0x373ea6['push'](_0x373ea6['shift']());}};_0x22a1ff(++_0x73b6bf);}(a1022_0x73b6,0x86));const a1022_0x22a1=function(_0x373ea6,_0x73b6bf){_0x373ea6=_0x373ea6-0x0;let _0x22a1ff=a1022_0x73b6[_0x373ea6];return _0x22a1ff;};const _0x3fe474=a1022_0x22a1;'use strict';const config=require(_0x3fe474('0xab')),cs=require(_0x3fe474('0xec'))[_0x3fe474('0x2a')](),Sequelize=require(_0x3fe474('0x4b')),logger=require(_0x3fe474('0x168')),_=require(_0x3fe474('0x155')),jstz=require(_0x3fe474('0x18d')),timezone=jstz['determine'](),queryLogger=logger(_0x3fe474('0x42')),DEFAULTS={'database':cs[_0x3fe474('0x11b')],'username':cs[_0x3fe474('0x4f')],'password':cs[_0x3fe474('0xbc')],'options':{'host':cs[_0x3fe474('0x198')],'port':cs[_0x3fe474('0xb4')],'dialect':_0x3fe474('0x14a'),'dialectOptions':{'charset':_0x3fe474('0xc2')},'logging':cs['isProduction']?![]:_0x1896c8=>queryLogger[_0x3fe474('0xa3')](_0x1896c8),'timezone':timezone[_0x3fe474('0x1b')](),'define':{'charset':'utf8','collate':_0x3fe474('0xd7')}}};config[_0x3fe474('0x4b')]=_['defaultsDeep'](config[_0x3fe474('0x4b')],DEFAULTS),config[_0x3fe474('0x148')]=_[_0x3fe474('0x1e9')](config[_0x3fe474('0x148')],DEFAULTS);const db={'Sequelize':Sequelize,'sequelize':new Sequelize(config[_0x3fe474('0x4b')][_0x3fe474('0x181')],config['sequelize'][_0x3fe474('0xb5')],config[_0x3fe474('0x4b')][_0x3fe474('0x1d1')],config['sequelize'][_0x3fe474('0x91')])},dbH={'Sequelize':Sequelize,'sequelize':new Sequelize(config['sequelizeHistory'][_0x3fe474('0x181')],config[_0x3fe474('0x148')]['username'],config[_0x3fe474('0x148')][_0x3fe474('0x1d1')],config['sequelizeHistory'][_0x3fe474('0x91')])};db[_0x3fe474('0x12d')]=require(_0x3fe474('0xf6'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x169')]=require(_0x3fe474('0x14e'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xb3')]=require(_0x3fe474('0x18f'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x32')]=require('../api/voiceExtension/voiceExtension.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x2e')]=require(_0x3fe474('0x183'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x19c')]=require(_0x3fe474('0x115'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x2c')]=require(_0x3fe474('0x64'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x15f')]=require(_0x3fe474('0xc8'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x162')]=require(_0x3fe474('0x1c8'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x101')]=require(_0x3fe474('0xb2'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x1f0')]=require('../api/voiceCallReport/voiceCallReport.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['VoiceDialReport']=require(_0x3fe474('0xa'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xae')]=require(_0x3fe474('0x5b'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x173')]=require('../api/voiceQueueReport/voiceQueueReport.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x184')]=require('../api/memberReport/memberReport.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xe6')]=require(_0x3fe474('0x13c'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x185')]=require(_0x3fe474('0x65'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xe1')]=require(_0x3fe474('0x10f'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1c0')]=require(_0x3fe474('0x35'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x3e')]=require(_0x3fe474('0xea'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x78')]=require('../api/userMailQueue/userMailQueue.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['UserFaxQueue']=require(_0x3fe474('0x74'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x109')]=require(_0x3fe474('0x8c'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xc')]=require(_0x3fe474('0x28'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x193')]=require(_0x3fe474('0x110'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x12a')]=require(_0x3fe474('0x81'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x120')]=require(_0x3fe474('0x19b'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db['MailAccount']=require('../api/mailAccount/mailAccount.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x66')]=require('../api/mailQueue/mailQueue.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x100')]=require('../api/mailSubstatus/mailSubstatus.model')(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xcc')]=require('../api/mailInteraction/mailInteraction.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x188')]=require(_0x3fe474('0xc5'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x52')]=require(_0x3fe474('0x99'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x4')]=require('../api/mailQueueReport/mailQueueReport.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x0')]=require('../api/dashboard/dashboard.model')(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1e0')]=require(_0x3fe474('0x13'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['FaxAccount']=require(_0x3fe474('0x7a'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xfd')]=require(_0x3fe474('0x129'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x41')]=require(_0x3fe474('0x57'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x45')]=require(_0x3fe474('0x1a9'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db['FaxQueue']=require('../api/faxQueue/faxQueue.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x1a0')]=require(_0x3fe474('0x1b4'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['SmsAccount']=require(_0x3fe474('0xff'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x71')]=require(_0x3fe474('0x96'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x47')]=require(_0x3fe474('0x1b9'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x13b')]=require(_0x3fe474('0x84'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x17e')]=require(_0x3fe474('0x49'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x187')]=require(_0x3fe474('0x107'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xbd')]=require(_0x3fe474('0x3f'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x18b')]=require('../api/openchannelInteraction/openchannelInteraction.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x5f')]=require(_0x3fe474('0x134'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db['OpenchannelQueue']=require(_0x3fe474('0x1e'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['ChatWebsite']=require(_0x3fe474('0xed'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1cf')]=require(_0x3fe474('0x175'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x89')]=require(_0x3fe474('0x1ae'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x61')]=require('../api/chatInteraction/chatInteraction.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db['ChatMessage']=require(_0x3fe474('0x145'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x8e')]=require(_0x3fe474('0x1ce'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['ChatQueue']=require(_0x3fe474('0x111'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db['ChatGroup']=require(_0x3fe474('0x19e'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['ChatProactiveAction']=require(_0x3fe474('0x22'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x5c')]=require('../api/cmCompany/cmCompany.model')(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x54')]=require(_0x3fe474('0x9d'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['CmHopper']=require('../api/cmHopper/cmHopper.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xf4')]=require(_0x3fe474('0x194'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x13a')]=require(_0x3fe474('0x17b'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x11a')]=require(_0x3fe474('0xaa'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['ReportAgentPreview']=require(_0x3fe474('0x9'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0xc6')]=require('../api/cmCustomField/cmCustomField.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x191')]=require('../api/action/action.model')(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1a')]=require('../api/automation/automation.model')(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1b2')]=require(_0x3fe474('0x7c'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['Disposition']=require(_0x3fe474('0x33'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x171')]=require(_0x3fe474('0x2d'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1d4')]=require(_0x3fe474('0x190'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['Pause']=require('../api/pause/pause.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x60')]=require('../api/cdr/cdr.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x69')]=require('../api/voiceQueuesLog/voiceQueuesLog.model')(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x106')]=require(_0x3fe474('0x143'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['Sound']=require(_0x3fe474('0xf3'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xfa')]=require('../api/tag/tag.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xf')]=require('../api/template/template.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x6c')]=require(_0x3fe474('0x55'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1dc')]=require(_0x3fe474('0x6f'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x138')]=require(_0x3fe474('0x1c4'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x16')]=require(_0x3fe474('0xa7'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x153')]=require(_0x3fe474('0xdd'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['AnalyticDefaultReport']=require('../api/analyticDefaultReport/analyticDefaultReport.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x38')]=require('../api/analyticExtractedReport/analyticExtractedReport.model')(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1e6')]=require(_0x3fe474('0x141'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x105')]=require('../api/analyticFieldReport/analyticFieldReport.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x12')]=require(_0x3fe474('0x15c'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['SalesforceAccount']=require(_0x3fe474('0x112'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x1c7')]=require(_0x3fe474('0x1f7'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x19f')]=require(_0x3fe474('0x1ac'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xd')]=require(_0x3fe474('0xee'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xbf')]=require(_0x3fe474('0x1e7'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x158')]=require(_0x3fe474('0x11f'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1ef')]=require(_0x3fe474('0x85'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x166')]=require(_0x3fe474('0x1a5'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xa1')]=require(_0x3fe474('0x102'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xb0')]=require(_0x3fe474('0x5e'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0xc4')]=require('../api/intZohoConfiguration/intZohoConfiguration.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x59')]=require(_0x3fe474('0x8f'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xca')]=require(_0x3fe474('0x197'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1f1')]=require(_0x3fe474('0x1f3'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['ZendeskField']=require('../api/intZendeskField/intZendeskField.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x1b3')]=require(_0x3fe474('0x6a'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['FreshdeskConfiguration']=require(_0x3fe474('0x1c3'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x2')]=require(_0x3fe474('0x1eb'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['VtigerAccount']=require(_0x3fe474('0x76'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x17a')]=require(_0x3fe474('0x1ee'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x5d')]=require(_0x3fe474('0xe8'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x51')]=require('../api/intServicenowAccount/intServicenowAccount.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x7d')]=require(_0x3fe474('0x9a'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xb')]=require(_0x3fe474('0x58'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['Dynamics365Account']=require('../api/intDynamics365Account/intDynamics365Account.model')(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['Dynamics365Configuration']=require(_0x3fe474('0xe'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1f6')]=require(_0x3fe474('0x146'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xf0')]=require('../api/intFreshsalesAccount/intFreshsalesAccount.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1af')]=require(_0x3fe474('0x128'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['FreshsalesField']=require(_0x3fe474('0x86'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x138')]=require(_0x3fe474('0x1c4'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['Network']=require(_0x3fe474('0x16d'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['ChatQueueReport']=require('../api/chatQueueReport/chatQueueReport.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x92')]=require(_0x3fe474('0x1a4'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x7e')]=require(_0x3fe474('0x5a'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1b0')]=require(_0x3fe474('0x118'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x12f')]=require(_0x3fe474('0x11'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x79')]=require('../api/smsQueueReport/smsQueueReport.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xf5')]=require(_0x3fe474('0xeb'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x179')]=require(_0x3fe474('0x1ad'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['JscriptyProject']=require(_0x3fe474('0x4c'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x3')]=require(_0x3fe474('0xad'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x116')]=require(_0x3fe474('0xe5'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x108')]=require('../api/squareProject/squareProject.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xac')]=require(_0x3fe474('0xc9'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x23')]=require(_0x3fe474('0x88'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x10a')]=require(_0x3fe474('0x16e'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x6b')]=require(_0x3fe474('0x1be'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1de')]=require(_0x3fe474('0x1bf'))(db['sequelize'],Sequelize['DataTypes']),db[_0x3fe474('0x104')]=require(_0x3fe474('0xe7'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['Attachment']=require(_0x3fe474('0x9b'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xa6')]=require(_0x3fe474('0xde'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x44')]=require(_0x3fe474('0x8d'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['ChatTransferReport']=require(_0x3fe474('0x170'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['FaxTransferReport']=require(_0x3fe474('0x119'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x17f')]=require('../api/openchannelTransferReport/openchannelTransferReport.model')(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x9f')]=require(_0x3fe474('0x18'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1a6')]=require(_0x3fe474('0x176'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x8b')]=require(_0x3fe474('0x17'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x161')]=require(_0x3fe474('0x123'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1b8')]=require('../api/userProfileSection/userProfileSection.model')(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1d2')]=require(_0x3fe474('0xfc'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0xc3')]=require(_0x3fe474('0x29'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x8a')]=require(_0x3fe474('0x1ea'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0xba')]=require(_0x3fe474('0xaf'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x113')]=require(_0x3fe474('0xe3'))(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x15d')]=require(_0x3fe474('0xf9'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['WhatsappQueueReport']=require(_0x3fe474('0xd6'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db['WhatsappTransferReport']=require(_0x3fe474('0x21'))(db[_0x3fe474('0x4b')],Sequelize[_0x3fe474('0x98')]),db[_0x3fe474('0x1a2')]=require('../api/whatsappQueue/whatsappQueue.model')(db['sequelize'],Sequelize[_0x3fe474('0x98')]),db['CloudProvider']=require(_0x3fe474('0x43'))(db[_0x3fe474('0x4b')],Sequelize['DataTypes']),db[_0x3fe474('0x12d')][_0x3fe474('0x17d')](db[_0x3fe474('0x162')],{'as':_0x3fe474('0x162'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x1f5')}),db[_0x3fe474('0x12d')]['hasMany'](db[_0x3fe474('0x2c')],{'as':_0x3fe474('0x1aa'),'foreignKey':_0x3fe474('0x1f5')}),db['User'][_0x3fe474('0x1c9')](db[_0x3fe474('0xe1')],{'as':_0x3fe474('0x7b'),'foreignKey':_0x3fe474('0x1f5')}),db[_0x3fe474('0x12d')]['hasMany'](db[_0x3fe474('0x32')],{'as':'Extensions','onDelete':_0x3fe474('0x1d5'),'hooks':!![]}),db[_0x3fe474('0x12d')]['hasMany'](db[_0x3fe474('0x13a')],{'as':_0x3fe474('0x10e'),'foreignKey':_0x3fe474('0x1f5')}),db[_0x3fe474('0x12d')][_0x3fe474('0x1c9')](db[_0x3fe474('0x11a')],{'as':_0x3fe474('0x94'),'foreignKey':'UserId'}),db[_0x3fe474('0x12d')][_0x3fe474('0x1c9')](db[_0x3fe474('0x12b')],{'as':_0x3fe474('0x12b'),'foreignKey':_0x3fe474('0x1f5')}),db['User'][_0x3fe474('0x1c9')](db[_0x3fe474('0x18b')],{'as':_0x3fe474('0x139'),'foreignKey':_0x3fe474('0x1f5')}),db['User'][_0x3fe474('0x1c9')](db['ChatInteraction'],{'as':_0x3fe474('0x10b'),'foreignKey':_0x3fe474('0x1f5')}),db[_0x3fe474('0x12d')][_0x3fe474('0x1c9')](db[_0x3fe474('0x47')],{'as':_0x3fe474('0x1c1'),'foreignKey':'UserId'}),db[_0x3fe474('0x12d')][_0x3fe474('0x1c9')](db['FaxInteraction'],{'as':_0x3fe474('0x2f'),'foreignKey':_0x3fe474('0x1f5')}),db['User'][_0x3fe474('0x1c9')](db[_0x3fe474('0xcc')],{'as':_0x3fe474('0x72'),'foreignKey':'UserId'}),db[_0x3fe474('0x12d')][_0x3fe474('0x1c9')](db[_0x3fe474('0x113')],{'as':_0x3fe474('0x6'),'foreignKey':'UserId'}),db[_0x3fe474('0x12d')][_0x3fe474('0x1c9')](db[_0x3fe474('0xc3')],{'as':_0x3fe474('0xe4'),'foreignKey':'SenderId'}),db[_0x3fe474('0x12d')][_0x3fe474('0x7f')](db['UserProfile'],{'as':_0x3fe474('0x161'),'foreignKey':_0x3fe474('0x18c'),'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x121')],{'as':_0x3fe474('0xfb'),'through':_0x3fe474('0x1d9')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x54')],{'as':_0x3fe474('0xa5'),'through':_0x3fe474('0x6e')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x1a6')],{'as':'Lists','through':_0x3fe474('0x1c6')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x10a')],{'through':_0x3fe474('0x4e')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db['MailInteraction'],{'as':_0x3fe474('0x15a'),'through':_0x3fe474('0x17c')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x61')],{'as':'UserChatInteractions','through':_0x3fe474('0x1ba')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x41')],{'as':'UserFaxInteractions','through':_0x3fe474('0x160')}),db[_0x3fe474('0x12d')]['belongsToMany'](db['SmsInteraction'],{'as':_0x3fe474('0x10c'),'through':_0x3fe474('0x180')}),db[_0x3fe474('0x12d')]['belongsToMany'](db[_0x3fe474('0x18b')],{'as':_0x3fe474('0x1bd'),'through':_0x3fe474('0xd2')}),db['User']['belongsToMany'](db['WhatsappInteraction'],{'as':_0x3fe474('0x1d7'),'through':_0x3fe474('0xd4')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x19c')],{'as':'VoiceQueues','through':'UserVoiceQueue','required':![]}),db[_0x3fe474('0x12d')]['belongsToMany'](db[_0x3fe474('0x66')],{'as':'MailQueues','through':_0x3fe474('0x78'),'required':![]}),db['User'][_0x3fe474('0x189')](db[_0x3fe474('0xdc')],{'as':_0x3fe474('0x3d'),'through':_0x3fe474('0x3e'),'required':![],'hooks':!![]}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db['FaxQueue'],{'as':'FaxQueues','through':_0x3fe474('0x1a1'),'required':![]}),db[_0x3fe474('0x12d')]['belongsToMany'](db['SmsQueue'],{'as':_0x3fe474('0xbe'),'through':'UserSmsQueue','required':![]}),db[_0x3fe474('0x12d')]['belongsToMany'](db[_0x3fe474('0x1e5')],{'as':'OpenchannelQueues','through':_0x3fe474('0xc'),'required':![]}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x1a2')],{'as':_0x3fe474('0x1dd'),'through':_0x3fe474('0x193'),'required':![]}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x1a6')],{'through':_0x3fe474('0x1c6')}),db['User'][_0x3fe474('0x189')](db[_0x3fe474('0x8b')],{'as':_0x3fe474('0x154'),'through':_0x3fe474('0x3b'),'required':![]}),db['User'][_0x3fe474('0x189')](db[_0x3fe474('0x157')],{'as':_0x3fe474('0xd1'),'through':_0x3fe474('0x1e2')}),db['User'][_0x3fe474('0x189')](db[_0x3fe474('0xf1')],{'as':_0x3fe474('0x1ab'),'through':_0x3fe474('0x136')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x103')],{'as':_0x3fe474('0x14b'),'through':'user_has_mail_accounts'}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x187')],{'as':_0x3fe474('0xd8'),'through':_0x3fe474('0xb7')}),db[_0x3fe474('0x12d')][_0x3fe474('0x189')](db[_0x3fe474('0x1cc')],{'as':_0x3fe474('0x1df'),'through':_0x3fe474('0x126')}),db['User'][_0x3fe474('0x189')](db[_0x3fe474('0x8a')],{'as':_0x3fe474('0x150'),'through':_0x3fe474('0x25')}),db['User'][_0x3fe474('0x189')](db[_0x3fe474('0x108')],{'as':_0x3fe474('0x1d8'),'through':'user_has_square_projects'}),db['VoiceChanSpy'][_0x3fe474('0x1c9')](db[_0x3fe474('0x32')],{'as':'SpiedAgents','onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x13e')}),db[_0x3fe474('0xb3')]['hasMany'](db[_0x3fe474('0x32')],{'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x32')][_0x3fe474('0x1c9')](db[_0x3fe474('0x32')],{'as':_0x3fe474('0x13f'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x2e')][_0x3fe474('0x189')](db[_0x3fe474('0x135')],{'as':'Sounds','through':'moh_has_sounds'}),db[_0x3fe474('0x19c')][_0x3fe474('0x1c9')](db[_0x3fe474('0xe1')],{'as':_0x3fe474('0x11d'),'foreignKey':_0x3fe474('0x195')}),db[_0x3fe474('0x19c')]['hasMany'](db[_0x3fe474('0xb8')],{'as':'Hoppers','foreignKey':_0x3fe474('0x195')}),db['VoiceQueue'][_0x3fe474('0x1c9')](db[_0x3fe474('0x13a')],{'as':_0x3fe474('0x10e'),'foreignKey':_0x3fe474('0x195')}),db[_0x3fe474('0x19c')]['hasMany'](db[_0x3fe474('0x11a')],{'as':'HopperHistories','foreignKey':'VoiceQueueId'}),db[_0x3fe474('0x19c')][_0x3fe474('0x1c9')](db[_0x3fe474('0x12b')],{'as':_0x3fe474('0x12b'),'foreignKey':_0x3fe474('0x195')}),db['VoiceQueue'][_0x3fe474('0x1c9')](db[_0x3fe474('0xf4')],{'as':_0x3fe474('0x6d'),'foreignKey':'VoiceQueueId'}),db[_0x3fe474('0x19c')]['hasMany'](db[_0x3fe474('0x12f')],{'as':'JscriptySessions','foreignKey':_0x3fe474('0x195')}),db[_0x3fe474('0x19c')]['belongsTo'](db[_0x3fe474('0xe6')],{'as':'Trunk','foreignKey':_0x3fe474('0x67')}),db[_0x3fe474('0x19c')][_0x3fe474('0x7f')](db[_0x3fe474('0xe6')],{'as':_0x3fe474('0x130'),'foreignKey':_0x3fe474('0x164')}),db[_0x3fe474('0x19c')][_0x3fe474('0x7f')](db[_0x3fe474('0x1d4')],{'as':_0x3fe474('0x1d4'),'foreignKey':_0x3fe474('0xa4')}),db[_0x3fe474('0x19c')][_0x3fe474('0x7f')](db['Pause'],{'as':_0x3fe474('0x1c5'),'foreignKey':_0x3fe474('0x31')}),db[_0x3fe474('0x19c')][_0x3fe474('0x189')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0xce'),'through':'voice_queues_has_cm_lists'}),db[_0x3fe474('0x19c')][_0x3fe474('0x189')](db['User'],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x1c0')}),db[_0x3fe474('0x19c')][_0x3fe474('0x189')](db[_0x3fe474('0x10a')],{'as':_0x3fe474('0x16a'),'through':_0x3fe474('0x1f4')}),db[_0x3fe474('0x19c')][_0x3fe474('0x189')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x18a'),'through':_0x3fe474('0x1cb')}),db[_0x3fe474('0x2c')][_0x3fe474('0x7f')](db['User'],{'as':_0x3fe474('0x12d'),'foreignKey':'UserId'}),db[_0x3fe474('0x15f')][_0x3fe474('0x7f')](db['User'],{'as':_0x3fe474('0x12d'),'foreignKey':_0x3fe474('0x1f5')}),db[_0x3fe474('0x162')][_0x3fe474('0x1c9')](db['VoiceMailMessage'],{'as':_0x3fe474('0x1d'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x3c'),'sourceKey':'mailbox'}),db[_0x3fe474('0x101')]['belongsTo'](db[_0x3fe474('0x162')],{'foreignKey':_0x3fe474('0x3c'),'targetKey':_0x3fe474('0xa2')}),db['VoiceCallReport'][_0x3fe474('0x1c9')](db['VoiceQueueReport'],{'as':_0x3fe474('0xcb'),'foreignKey':_0x3fe474('0x83'),'constraints':![]}),db[_0x3fe474('0x1f0')][_0x3fe474('0x1c9')](db[_0x3fe474('0xae')],{'as':'AgentReports','foreignKey':'uniqueid','constraints':![]}),db[_0x3fe474('0x1f0')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x12d'),'foreignKey':_0x3fe474('0x1f5')}),db[_0x3fe474('0x1f0')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':_0x3fe474('0x50'),'foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x103')][_0x3fe474('0x17d')](db[_0x3fe474('0x12a')],{'as':'Imap','foreignKey':_0x3fe474('0x30'),'onDelete':_0x3fe474('0x1d5')}),db['MailAccount']['hasOne'](db['MailServerOut'],{'as':_0x3fe474('0x124'),'foreignKey':_0x3fe474('0x30'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x103')][_0x3fe474('0x1c9')](db[_0x3fe474('0x131')],{'as':_0x3fe474('0x1bb'),'foreignKey':'MailAccountId'}),db[_0x3fe474('0x103')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1b2')],{'as':_0x3fe474('0x70'),'foreignKey':_0x3fe474('0x30')}),db[_0x3fe474('0x103')][_0x3fe474('0x1c9')](db[_0x3fe474('0x188')],{'as':_0x3fe474('0x1d'),'foreignKey':_0x3fe474('0x30')}),db['MailAccount'][_0x3fe474('0x1c9')](db[_0x3fe474('0xcc')],{'as':_0x3fe474('0x14c')}),db[_0x3fe474('0x103')]['hasMany'](db[_0x3fe474('0x52')],{'as':'Applications'}),db[_0x3fe474('0x103')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db['MailAccount'][_0x3fe474('0x7f')](db[_0x3fe474('0xf')],{'as':_0x3fe474('0xf'),'foreignKey':'TemplateId'}),db[_0x3fe474('0x103')]['belongsTo'](db[_0x3fe474('0x9e')],{'as':_0x3fe474('0x1c5'),'foreignKey':_0x3fe474('0x31')}),db['MailAccount'][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x19d')}),db[_0x3fe474('0x66')]['belongsToMany'](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x78')}),db[_0x3fe474('0x66')][_0x3fe474('0x189')](db['Team'],{'through':_0x3fe474('0x36'),'as':_0x3fe474('0x16a')}),db[_0x3fe474('0xcc')][_0x3fe474('0x1c9')](db[_0x3fe474('0x188')],{'as':_0x3fe474('0x1d'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':'MailInteractionId'}),db[_0x3fe474('0xcc')][_0x3fe474('0x7f')](db[_0x3fe474('0x103')],{'as':_0x3fe474('0x127'),'foreignKey':'MailAccountId'}),db[_0x3fe474('0xcc')][_0x3fe474('0x7f')](db['CmContact'],{'as':_0x3fe474('0x50'),'foreignKey':_0x3fe474('0x196')}),db['MailInteraction'][_0x3fe474('0x7f')](db['User'],{'as':_0x3fe474('0x1da'),'foreignKey':_0x3fe474('0x1f5')}),db['MailInteraction'][_0x3fe474('0x189')](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0xdf'),'as':_0x3fe474('0x122')}),db[_0x3fe474('0xcc')][_0x3fe474('0x189')](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0xdf'),'as':_0x3fe474('0x114')}),db[_0x3fe474('0xcc')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Users','through':_0x3fe474('0x17c'),'foreignKey':_0x3fe474('0x13d')}),db[_0x3fe474('0x188')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1bc')],{'as':_0x3fe474('0x144'),'onDelete':'cascade'}),db[_0x3fe474('0x188')][_0x3fe474('0x7f')](db['User'],{'as':'User'}),db[_0x3fe474('0x188')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'onDelete':'cascade','as':_0x3fe474('0x50')}),db[_0x3fe474('0x188')][_0x3fe474('0x7f')](db['MailInteraction'],{'as':_0x3fe474('0x1ec'),'foreignKey':'MailInteractionId'}),db[_0x3fe474('0x188')]['belongsTo'](db[_0x3fe474('0x103')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x30')}),db[_0x3fe474('0x52')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'onDelete':_0x3fe474('0x132')}),db['MailApplication'][_0x3fe474('0x7f')](db['MailQueue'],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x52')][_0x3fe474('0x7f')](db[_0x3fe474('0x103')],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x52')][_0x3fe474('0x7f')](db[_0x3fe474('0x1d4')],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0xa4')}),db[_0x3fe474('0x52')][_0x3fe474('0x7f')](db[_0x3fe474('0xfa')],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0x20')}),db[_0x3fe474('0x4')][_0x3fe474('0x7f')](db[_0x3fe474('0x103')],{}),db[_0x3fe474('0x4')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x4')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':'Contact','foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x4')][_0x3fe474('0x7f')](db[_0x3fe474('0xcc')],{}),db[_0x3fe474('0x4')]['belongsTo'](db[_0x3fe474('0x188')],{}),db[_0x3fe474('0x4')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{}),db[_0x3fe474('0x4')][_0x3fe474('0x7f')](db[_0x3fe474('0x66')],{}),db[_0x3fe474('0x0')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1e0')],{'as':_0x3fe474('0x95'),'onDelete':_0x3fe474('0x1d5')}),db['FaxAccount']['hasMany'](db[_0x3fe474('0x131')],{'as':_0x3fe474('0x1bb'),'foreignKey':_0x3fe474('0x1ed')}),db[_0x3fe474('0xf1')][_0x3fe474('0x1c9')](db['CannedAnswer'],{'as':_0x3fe474('0x70'),'foreignKey':_0x3fe474('0x1ed')}),db[_0x3fe474('0xf1')][_0x3fe474('0x1c9')](db[_0x3fe474('0x41')],{'as':'Interactions'}),db[_0x3fe474('0xf1')][_0x3fe474('0x1c9')](db[_0x3fe474('0xfd')],{'as':_0x3fe474('0x13f')}),db['FaxAccount'][_0x3fe474('0x1c9')](db['VoiceExtension'],{'as':_0x3fe474('0x149'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0xf1')][_0x3fe474('0x1c9')](db['FaxMessage'],{'as':_0x3fe474('0x1d')}),db['FaxAccount'][_0x3fe474('0x7f')](db[_0x3fe474('0xe6')],{'as':_0x3fe474('0xe6')}),db[_0x3fe474('0xf1')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0xf1')][_0x3fe474('0x7f')](db['Pause'],{'as':_0x3fe474('0x1c5'),'foreignKey':_0x3fe474('0x31')}),db['FaxAccount'][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x136')}),db['FaxApplication']['belongsTo'](db['User'],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0xfd')]['belongsTo'](db[_0x3fe474('0xd3')],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0xfd')][_0x3fe474('0x7f')](db[_0x3fe474('0xf1')],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0xfd')][_0x3fe474('0x7f')](db[_0x3fe474('0xfa')],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0x20')}),db[_0x3fe474('0x41')][_0x3fe474('0x1c9')](db[_0x3fe474('0x45')],{'as':_0x3fe474('0x1d'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0xa9')}),db['FaxInteraction'][_0x3fe474('0x7f')](db[_0x3fe474('0xf1')],{'as':'Account','foreignKey':'FaxAccountId'}),db[_0x3fe474('0x41')]['belongsTo'](db[_0x3fe474('0x54')],{'as':_0x3fe474('0x50'),'foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x41')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x1da'),'foreignKey':_0x3fe474('0x1f5')}),db[_0x3fe474('0x41')]['belongsToMany'](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0x159'),'as':_0x3fe474('0x122')}),db[_0x3fe474('0x41')]['belongsToMany'](db['Tag'],{'through':_0x3fe474('0x159'),'as':'ThroughTags'}),db[_0x3fe474('0x41')]['belongsToMany'](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x2b'),'through':_0x3fe474('0x160'),'foreignKey':'FaxInteractionId'}),db[_0x3fe474('0x45')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'onDelete':'cascade','as':'User'}),db['FaxMessage']['belongsTo'](db[_0x3fe474('0x41')],{'as':_0x3fe474('0x1ec'),'foreignKey':_0x3fe474('0xa9')}),db[_0x3fe474('0x45')]['belongsTo'](db[_0x3fe474('0x54')],{'onDelete':_0x3fe474('0x1d5'),'as':'Contact'}),db[_0x3fe474('0x45')][_0x3fe474('0x7f')](db[_0x3fe474('0x1bc')],{'as':_0x3fe474('0x1bc'),'foreignKey':_0x3fe474('0xda')}),db['FaxMessage'][_0x3fe474('0x7f')](db[_0x3fe474('0xf1')],{'as':'Account','foreignKey':_0x3fe474('0x1ed')}),db[_0x3fe474('0xd3')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x1a1')}),db[_0x3fe474('0xd3')][_0x3fe474('0x189')](db[_0x3fe474('0x10a')],{'through':_0x3fe474('0xbb'),'as':_0x3fe474('0x16a')}),db[_0x3fe474('0x1a0')]['belongsTo'](db['FaxAccount'],{}),db[_0x3fe474('0x1a0')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x1a0')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':'Contact','foreignKey':'ContactId'}),db[_0x3fe474('0x1a0')][_0x3fe474('0x7f')](db['FaxInteraction'],{}),db[_0x3fe474('0x1a0')][_0x3fe474('0x7f')](db['FaxMessage'],{}),db[_0x3fe474('0x1a0')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{}),db['FaxQueueReport']['belongsTo'](db['FaxQueue'],{}),db[_0x3fe474('0x1cc')][_0x3fe474('0x1c9')](db[_0x3fe474('0x131')],{'as':'Dispositions','foreignKey':'SmsAccountId'}),db[_0x3fe474('0x1cc')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1b2')],{'as':_0x3fe474('0x70'),'foreignKey':'SmsAccountId'}),db[_0x3fe474('0x1cc')][_0x3fe474('0x1c9')](db['SmsMessage'],{'as':_0x3fe474('0x1d'),'foreignKey':'SmsAccountId'}),db[_0x3fe474('0x1cc')][_0x3fe474('0x1c9')](db[_0x3fe474('0x47')],{'as':_0x3fe474('0x14c')}),db[_0x3fe474('0x1cc')][_0x3fe474('0x1c9')](db[_0x3fe474('0x71')],{'as':'Applications'}),db['SmsAccount'][_0x3fe474('0x7f')](db['CmList'],{'as':'List','foreignKey':'ListId'}),db[_0x3fe474('0x1cc')][_0x3fe474('0x7f')](db[_0x3fe474('0x9e')],{'as':'mandatoryDispositionPause','foreignKey':_0x3fe474('0x31')}),db[_0x3fe474('0x1cc')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x126')}),db[_0x3fe474('0x71')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x71')][_0x3fe474('0x7f')](db['SmsQueue'],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x71')]['belongsTo'](db[_0x3fe474('0x1cc')],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x71')][_0x3fe474('0x7f')](db[_0x3fe474('0x1d4')],{'onDelete':'restrict','foreignKey':_0x3fe474('0xa4')}),db['SmsApplication']['belongsTo'](db['Tag'],{'onDelete':_0x3fe474('0x132'),'foreignKey':'TagId'}),db[_0x3fe474('0x47')]['hasMany'](db[_0x3fe474('0x13b')],{'as':_0x3fe474('0x1d'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x1b5')}),db['SmsInteraction'][_0x3fe474('0x7f')](db[_0x3fe474('0x1cc')],{'as':'Account','foreignKey':'SmsAccountId'}),db[_0x3fe474('0x47')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':'Contact','foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x47')]['belongsTo'](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x1da'),'foreignKey':'UserId'}),db[_0x3fe474('0x47')][_0x3fe474('0x189')](db['Tag'],{'through':_0x3fe474('0x9c'),'as':_0x3fe474('0x122')}),db['SmsInteraction'][_0x3fe474('0x189')](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0x9c'),'as':_0x3fe474('0x114')}),db[_0x3fe474('0x47')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Users','through':_0x3fe474('0x180'),'foreignKey':'SmsInteractionId'}),db[_0x3fe474('0x13b')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x12d')}),db[_0x3fe474('0x13b')][_0x3fe474('0x7f')](db['CmContact'],{'onDelete':_0x3fe474('0x1d5'),'as':_0x3fe474('0x50')}),db['SmsMessage'][_0x3fe474('0x7f')](db[_0x3fe474('0x47')],{'onDelete':'cascade','as':_0x3fe474('0x1ec'),'foreignKey':_0x3fe474('0x1b5')}),db[_0x3fe474('0x13b')][_0x3fe474('0x7f')](db[_0x3fe474('0x1cc')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0xa0')}),db[_0x3fe474('0x17e')]['belongsToMany'](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x109'),'foreignKey':'SmsQueueId'}),db['SmsQueue'][_0x3fe474('0x189')](db['Team'],{'through':_0x3fe474('0x174'),'as':_0x3fe474('0x16a')}),db[_0x3fe474('0x187')][_0x3fe474('0x1c9')](db[_0x3fe474('0x131')],{'as':_0x3fe474('0x1bb'),'foreignKey':_0x3fe474('0xf8')}),db['OpenchannelAccount'][_0x3fe474('0x1c9')](db[_0x3fe474('0x1b2')],{'as':_0x3fe474('0x70'),'foreignKey':_0x3fe474('0xf8')}),db[_0x3fe474('0x187')][_0x3fe474('0x1c9')](db[_0x3fe474('0x18b')],{'as':_0x3fe474('0x14c'),'foreignKey':_0x3fe474('0xf8')}),db['OpenchannelAccount'][_0x3fe474('0x1c9')](db[_0x3fe474('0x5f')],{'as':_0x3fe474('0x1d'),'foreignKey':_0x3fe474('0xf8')}),db['OpenchannelAccount'][_0x3fe474('0x1c9')](db[_0x3fe474('0xbd')],{'as':'Applications','foreignKey':'OpenchannelAccountId'}),db['OpenchannelAccount']['belongsTo'](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x187')][_0x3fe474('0x7f')](db[_0x3fe474('0x9e')],{'as':_0x3fe474('0x1c5'),'foreignKey':'mandatoryDispositionPauseId'}),db[_0x3fe474('0x187')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Agents','through':_0x3fe474('0xb7')}),db['OpenchannelApplication'][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'onDelete':_0x3fe474('0x132')}),db['OpenchannelApplication']['belongsTo'](db[_0x3fe474('0x1e5')],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0xe9')}),db[_0x3fe474('0xbd')][_0x3fe474('0x7f')](db[_0x3fe474('0x187')],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0xf8')}),db[_0x3fe474('0xbd')][_0x3fe474('0x7f')](db[_0x3fe474('0x1d4')],{'onDelete':_0x3fe474('0x132'),'foreignKey':'IntervalId'}),db[_0x3fe474('0xbd')]['belongsTo'](db['Tag'],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0x20')}),db[_0x3fe474('0x18b')][_0x3fe474('0x1c9')](db[_0x3fe474('0x5f')],{'as':_0x3fe474('0x1d'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x1c')}),db[_0x3fe474('0x18b')][_0x3fe474('0x7f')](db[_0x3fe474('0x187')],{'as':'Account','foreignKey':'OpenchannelAccountId'}),db[_0x3fe474('0x18b')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':'Contact','foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x18b')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x1da'),'foreignKey':'UserId'}),db[_0x3fe474('0x18b')][_0x3fe474('0x189')](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0x19a'),'as':'Tags'}),db['OpenchannelInteraction']['belongsToMany'](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0x19a'),'as':_0x3fe474('0x114')}),db[_0x3fe474('0x18b')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Users','through':_0x3fe474('0xd2'),'foreignKey':'OpenchannelInteractionId'}),db[_0x3fe474('0x5f')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'onDelete':'cascade','as':_0x3fe474('0x12d')}),db[_0x3fe474('0x5f')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'onDelete':'cascade','as':_0x3fe474('0x50')}),db[_0x3fe474('0x5f')][_0x3fe474('0x7f')](db['OpenchannelInteraction'],{'onDelete':_0x3fe474('0x1d5'),'as':'Interaction','foreignKey':_0x3fe474('0x1c')}),db['OpenchannelMessage'][_0x3fe474('0x7f')](db[_0x3fe474('0x1bc')],{'as':_0x3fe474('0x1bc'),'foreignKey':'AttachmentId'}),db['OpenchannelMessage'][_0x3fe474('0x7f')](db[_0x3fe474('0x187')],{'as':_0x3fe474('0x127'),'foreignKey':'OpenchannelAccountId'}),db[_0x3fe474('0x1e5')]['belongsToMany'](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0xc'),'foreignKey':_0x3fe474('0xe9')}),db[_0x3fe474('0x1e5')][_0x3fe474('0x189')](db[_0x3fe474('0x10a')],{'through':'team_has_openchannel_queues','as':'Teams'}),db['ChatWebsite'][_0x3fe474('0x1c9')](db[_0x3fe474('0x131')],{'as':_0x3fe474('0x1bb'),'foreignKey':_0x3fe474('0x1')}),db['ChatWebsite']['hasMany'](db[_0x3fe474('0x1b2')],{'as':_0x3fe474('0x70'),'foreignKey':_0x3fe474('0x1')}),db['ChatWebsite'][_0x3fe474('0x1c9')](db['ChatProactiveAction'],{'as':_0x3fe474('0xd0')}),db[_0x3fe474('0x157')][_0x3fe474('0x1c9')](db[_0x3fe474('0x61')],{'as':'Interactions'}),db[_0x3fe474('0x157')][_0x3fe474('0x1c9')](db['ChatApplication'],{'as':_0x3fe474('0x13f')}),db['ChatWebsite']['hasMany'](db[_0x3fe474('0x80')],{'as':'Messages'}),db[_0x3fe474('0x157')]['belongsTo'](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x157')][_0x3fe474('0x7f')](db[_0x3fe474('0x1d4')],{'as':_0x3fe474('0x1d4'),'foreignKey':_0x3fe474('0xa4')}),db[_0x3fe474('0x157')][_0x3fe474('0x7f')](db['Pause'],{'as':_0x3fe474('0x1c5'),'foreignKey':_0x3fe474('0x31')}),db[_0x3fe474('0x157')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x1e2')}),db[_0x3fe474('0x1cf')][_0x3fe474('0x7f')](db[_0x3fe474('0x187')],{}),db[_0x3fe474('0x1cf')]['belongsTo'](db[_0x3fe474('0x1a6')],{'as':'List','foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x1cf')]['belongsTo'](db[_0x3fe474('0x54')],{'as':_0x3fe474('0x50'),'foreignKey':_0x3fe474('0x196')}),db['OpenchannelQueueReport']['belongsTo'](db[_0x3fe474('0x18b')],{}),db[_0x3fe474('0x1cf')][_0x3fe474('0x7f')](db[_0x3fe474('0x5f')],{}),db[_0x3fe474('0x1cf')][_0x3fe474('0x7f')](db['User'],{}),db[_0x3fe474('0x1cf')][_0x3fe474('0x7f')](db[_0x3fe474('0x1e5')],{}),db[_0x3fe474('0x89')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x34'),'foreignKey':'UserId','onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x89')][_0x3fe474('0x7f')](db[_0x3fe474('0xdc')],{'as':_0x3fe474('0x14d'),'foreignKey':'ChatQueueId','onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x89')]['belongsTo'](db['ChatWebsite'],{'as':_0x3fe474('0x37'),'foreignKey':_0x3fe474('0x1'),'onDelete':'restrict'}),db[_0x3fe474('0x89')][_0x3fe474('0x7f')](db['Tag'],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0x20')}),db[_0x3fe474('0x61')][_0x3fe474('0x1c9')](db['ChatMessage'],{'as':_0x3fe474('0x1d'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0xcd')}),db['ChatInteraction']['belongsTo'](db[_0x3fe474('0x157')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x1')}),db[_0x3fe474('0x61')][_0x3fe474('0x7f')](db['CmContact'],{'as':'Contact','foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x61')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x1da'),'foreignKey':'UserId'}),db[_0x3fe474('0x61')][_0x3fe474('0x189')](db['Tag'],{'through':'chat_interaction_has_tags','as':_0x3fe474('0x122')}),db[_0x3fe474('0x61')][_0x3fe474('0x189')](db['Tag'],{'through':'chat_interaction_has_tags','as':_0x3fe474('0x114')}),db[_0x3fe474('0x61')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Users','through':_0x3fe474('0x1ba'),'foreignKey':_0x3fe474('0xcd')}),db[_0x3fe474('0x80')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'onDelete':_0x3fe474('0x1d5'),'as':'User'}),db[_0x3fe474('0x80')][_0x3fe474('0x7f')](db['CmContact'],{'onDelete':_0x3fe474('0x1d5'),'as':'Contact','foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x80')][_0x3fe474('0x7f')](db['ChatInteraction'],{'onDelete':_0x3fe474('0x1d5'),'as':_0x3fe474('0x1ec'),'foreignKey':'ChatInteractionId'}),db['ChatMessage'][_0x3fe474('0x7f')](db[_0x3fe474('0x1bc')],{'as':'Attachment','foreignKey':_0x3fe474('0xda')}),db[_0x3fe474('0x80')][_0x3fe474('0x7f')](db[_0x3fe474('0x157')],{'as':'Account','foreignKey':_0x3fe474('0x1')}),db[_0x3fe474('0x8e')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'onDelete':_0x3fe474('0x1d5'),'as':_0x3fe474('0x50'),'foreignKey':'ContactId'}),db['ChatOfflineMessage'][_0x3fe474('0x7f')](db[_0x3fe474('0x157')],{'as':_0x3fe474('0x127'),'foreignKey':'ChatWebsiteId'}),db[_0x3fe474('0xdc')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Agents','through':_0x3fe474('0x3e'),'hooks':!![]}),db[_0x3fe474('0xdc')]['belongsToMany'](db[_0x3fe474('0x10a')],{'through':_0x3fe474('0x1b7'),'as':_0x3fe474('0x16a')}),db[_0x3fe474('0x121')]['hasMany'](db[_0x3fe474('0x92')],{'as':_0x3fe474('0x1d'),'foreignKey':_0x3fe474('0x26'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x121')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Members','through':_0x3fe474('0x1d9')}),db['ChatProactiveAction'][_0x3fe474('0x7f')](db[_0x3fe474('0x157')],{'as':_0x3fe474('0x37'),'foreignKey':_0x3fe474('0x1')}),db[_0x3fe474('0x5c')][_0x3fe474('0x1c9')](db[_0x3fe474('0x54')],{'as':_0x3fe474('0xa5'),'foreignKey':_0x3fe474('0x82')}),db['CmContact'][_0x3fe474('0x1c9')](db['CmHopper'],{'as':_0x3fe474('0x182'),'foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x54')][_0x3fe474('0x1c9')](db[_0x3fe474('0x13a')],{'as':_0x3fe474('0x10e'),'foreignKey':_0x3fe474('0x196')}),db['CmContact'][_0x3fe474('0x1c9')](db[_0x3fe474('0x11a')],{'as':_0x3fe474('0x62'),'foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x54')][_0x3fe474('0x1c9')](db[_0x3fe474('0x12b')],{'as':_0x3fe474('0x12b'),'foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x54')][_0x3fe474('0x1c9')](db[_0x3fe474('0x12f')],{'as':_0x3fe474('0x1a3'),'foreignKey':'ContactId'}),db[_0x3fe474('0x54')][_0x3fe474('0x1c9')](db['OpenchannelInteraction'],{'as':_0x3fe474('0x139'),'foreignKey':'ContactId','onDelete':_0x3fe474('0x132')}),db['CmContact']['hasMany'](db[_0x3fe474('0x61')],{'as':_0x3fe474('0x10b'),'foreignKey':_0x3fe474('0x196'),'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x54')][_0x3fe474('0x1c9')](db[_0x3fe474('0x47')],{'as':'SmsInteractions','foreignKey':'ContactId','onDelete':_0x3fe474('0x132')}),db['CmContact'][_0x3fe474('0x1c9')](db['FaxInteraction'],{'as':_0x3fe474('0x2f'),'foreignKey':_0x3fe474('0x196'),'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x54')][_0x3fe474('0x1c9')](db[_0x3fe474('0xcc')],{'as':_0x3fe474('0x72'),'foreignKey':_0x3fe474('0x196'),'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x54')]['belongsTo'](db[_0x3fe474('0x5c')],{'as':'Company','foreignKey':_0x3fe474('0x82')}),db['CmContact'][_0x3fe474('0x7f')](db['CmList'],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca'),'onDelete':'cascade'}),db[_0x3fe474('0x54')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x2b'),'through':_0x3fe474('0x6e')}),db['CmContact']['belongsToMany'](db[_0x3fe474('0xfa')],{'as':_0x3fe474('0x122'),'through':_0x3fe474('0x1f9')}),db[_0x3fe474('0x54')][_0x3fe474('0x189')](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0x1f9'),'as':_0x3fe474('0x114')}),db[_0x3fe474('0xb8')][_0x3fe474('0x7f')](db['CmContact'],{'as':'Contact','foreignKey':_0x3fe474('0x196'),'onDelete':_0x3fe474('0x1d5')}),db['CmHopper'][_0x3fe474('0x7f')](db['CmList'],{'as':'List','foreignKey':'ListId','onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0xb8')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x34'),'foreignKey':'UserId'}),db['CmHopper'][_0x3fe474('0x7f')](db['VoiceQueue'],{'as':'Queue','foreignKey':'VoiceQueueId','onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0xb8')][_0x3fe474('0x7f')](db['Campaign'],{'as':_0x3fe474('0x1de'),'foreignKey':_0x3fe474('0x4d'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0xb8')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x1da'),'foreignKey':_0x3fe474('0x10')}),db[_0x3fe474('0xf4')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':_0x3fe474('0x50'),'foreignKey':_0x3fe474('0x196'),'onDelete':'cascade'}),db[_0x3fe474('0xf4')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0xf4')]['belongsTo'](db[_0x3fe474('0x19c')],{'as':_0x3fe474('0x14d'),'foreignKey':_0x3fe474('0x195'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0xf4')][_0x3fe474('0x7f')](db['Campaign'],{'as':_0x3fe474('0x1de'),'foreignKey':'CampaignId','onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x1a')]['hasMany'](db[_0x3fe474('0x171')],{'as':{'plural':_0x3fe474('0x12c'),'singular':_0x3fe474('0xe0')},'foreignKey':_0x3fe474('0x178'),'onDelete':'cascade','hooks':!![]}),db[_0x3fe474('0x1a')]['hasMany'](db[_0x3fe474('0x171')],{'as':{'plural':_0x3fe474('0x7'),'singular':'OneAny'},'foreignKey':'AutomationAnyId','onDelete':_0x3fe474('0x1d5'),'hooks':!![]}),db[_0x3fe474('0x1a')]['hasMany'](db[_0x3fe474('0x191')],{'as':_0x3fe474('0x1d0'),'foreignKey':_0x3fe474('0x3a'),'onDelete':_0x3fe474('0x1d5'),'hooks':!![]}),db[_0x3fe474('0x131')][_0x3fe474('0x1c9')](db['Disposition'],{'as':_0x3fe474('0x1bb'),'foreignKey':_0x3fe474('0x1e3'),'onDelete':_0x3fe474('0x1d5')}),db['Interval']['hasMany'](db[_0x3fe474('0x1d4')],{'as':'Intervals','foreignKey':'IntervalId','onDelete':'cascade','hooks':!![],'required':![]}),db[_0x3fe474('0x1d4')]['hasMany'](db[_0x3fe474('0x32')],{'as':_0x3fe474('0x18e'),'foreignKey':_0x3fe474('0xa4'),'onDelete':'restrict'}),db[_0x3fe474('0x1d4')]['hasMany'](db[_0x3fe474('0x52')],{'as':_0x3fe474('0x75'),'foreignKey':_0x3fe474('0xa4')}),db['Interval'][_0x3fe474('0x1c9')](db[_0x3fe474('0x89')],{'as':_0x3fe474('0xc7'),'foreignKey':_0x3fe474('0xa4')}),db[_0x3fe474('0x1d4')][_0x3fe474('0x1c9')](db['FaxApplication'],{'as':_0x3fe474('0x15b'),'foreignKey':'IntervalId'}),db[_0x3fe474('0x1d4')][_0x3fe474('0x1c9')](db['SmsApplication'],{'as':_0x3fe474('0x8'),'foreignKey':_0x3fe474('0xa4')}),db[_0x3fe474('0x106')][_0x3fe474('0x7f')](db[_0x3fe474('0x103')],{}),db[_0x3fe474('0x106')]['belongsTo'](db['AnalyticDefaultReport'],{'foreignKey':_0x3fe474('0xc1')}),db[_0x3fe474('0x106')][_0x3fe474('0x7f')](db[_0x3fe474('0x153')],{'foreignKey':_0x3fe474('0x14')}),db[_0x3fe474('0x135')][_0x3fe474('0x189')](db['VoiceMusicOnHold'],{'as':_0x3fe474('0xef'),'through':_0x3fe474('0x39'),'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0xfa')]['belongsToMany'](db[_0x3fe474('0x54')],{'through':_0x3fe474('0x1f9')}),db[_0x3fe474('0xfa')]['belongsToMany'](db['ChatInteraction'],{'through':_0x3fe474('0x165')}),db[_0x3fe474('0xfa')][_0x3fe474('0x189')](db['MailInteraction'],{'through':_0x3fe474('0xdf')}),db['Tag']['belongsToMany'](db[_0x3fe474('0x47')],{'through':_0x3fe474('0x9c')}),db[_0x3fe474('0xfa')][_0x3fe474('0x189')](db['FaxInteraction'],{'through':_0x3fe474('0x159')}),db['Tag']['belongsToMany'](db[_0x3fe474('0x18b')],{'through':_0x3fe474('0x19a')}),db[_0x3fe474('0xfa')]['belongsToMany'](db[_0x3fe474('0x113')],{'through':_0x3fe474('0x77')}),db[_0x3fe474('0x6c')][_0x3fe474('0x1c9')](db[_0x3fe474('0x171')],{'as':{'plural':_0x3fe474('0x142'),'singular':'AllCondition'},'foreignKey':'TriggerAllId','onDelete':'cascade','hooks':!![]}),db[_0x3fe474('0x6c')][_0x3fe474('0x1c9')](db[_0x3fe474('0x171')],{'as':{'plural':_0x3fe474('0x1c2'),'singular':_0x3fe474('0xb9')},'foreignKey':_0x3fe474('0xf2'),'onDelete':_0x3fe474('0x1d5'),'hooks':!![]}),db[_0x3fe474('0x6c')][_0x3fe474('0x1c9')](db[_0x3fe474('0x191')],{'as':_0x3fe474('0x1d0'),'foreignKey':'TriggerId','onDelete':_0x3fe474('0x1d5'),'hooks':!![]}),db[_0x3fe474('0x153')]['hasMany'](db[_0x3fe474('0x105')],{'as':'Fields','onDelete':_0x3fe474('0x1d5'),'foreignKey':'CustomReportId','hooks':!![]}),db[_0x3fe474('0x19')]['hasMany'](db[_0x3fe474('0x105')],{'as':_0x3fe474('0x5'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0xc1')}),db[_0x3fe474('0x1e6')]['hasMany'](db[_0x3fe474('0x105')],{'as':'Fields','onDelete':'cascade','foreignKey':_0x3fe474('0x10d')}),db[_0x3fe474('0x105')][_0x3fe474('0x7f')](db['AnalyticMetric'],{'foreignKey':_0x3fe474('0x10d')}),db[_0x3fe474('0x133')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1c7')],{'as':'Configurations','onDelete':_0x3fe474('0x1d5'),'foreignKey':'AccountId'}),db[_0x3fe474('0x1c7')][_0x3fe474('0x1c9')](db[_0x3fe474('0x19f')],{'as':_0x3fe474('0xf7'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x1c7')][_0x3fe474('0x1c9')](db['SalesforceField'],{'as':_0x3fe474('0x1d3'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':'DescriptionId'}),db[_0x3fe474('0x1c7')][_0x3fe474('0x1c9')](db[_0x3fe474('0x19f')],{'as':_0x3fe474('0x5'),'onDelete':'cascade','foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x1c7')][_0x3fe474('0x7f')](db[_0x3fe474('0x133')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db['SalesforceField'][_0x3fe474('0x1c9')](db['SalesforceField'],{'as':_0x3fe474('0x177'),'foreignKey':'SubjectId'}),db['SalesforceField'][_0x3fe474('0x1c9')](db[_0x3fe474('0x19f')],{'as':_0x3fe474('0x117'),'foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0x19f')][_0x3fe474('0x1c9')](db[_0x3fe474('0x19f')],{'as':_0x3fe474('0xe2'),'foreignKey':'FieldId'}),db[_0x3fe474('0x19f')][_0x3fe474('0x7f')](db[_0x3fe474('0x1dc')],{'as':_0x3fe474('0x1dc'),'foreignKey':_0x3fe474('0x137')}),db[_0x3fe474('0xd')]['hasMany'](db['SugarcrmConfiguration'],{'as':'Configurations','onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x16f')}),db['SugarcrmConfiguration']['hasMany'](db[_0x3fe474('0x158')],{'as':_0x3fe474('0xf7'),'onDelete':'cascade','foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0xbf')][_0x3fe474('0x1c9')](db['SugarcrmField'],{'as':_0x3fe474('0x1d3'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':'DescriptionId'}),db[_0x3fe474('0xbf')][_0x3fe474('0x1c9')](db[_0x3fe474('0x158')],{'as':_0x3fe474('0x5'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':'FieldId'}),db[_0x3fe474('0xbf')][_0x3fe474('0x7f')](db[_0x3fe474('0xd')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x158')][_0x3fe474('0x1c9')](db[_0x3fe474('0x158')],{'as':_0x3fe474('0x177'),'foreignKey':'SubjectId'}),db[_0x3fe474('0x158')]['hasMany'](db[_0x3fe474('0x158')],{'as':_0x3fe474('0x117'),'foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0x158')][_0x3fe474('0x1c9')](db[_0x3fe474('0x158')],{'as':_0x3fe474('0xe2'),'foreignKey':'FieldId'}),db[_0x3fe474('0x158')][_0x3fe474('0x7f')](db[_0x3fe474('0x1dc')],{'as':_0x3fe474('0x1dc'),'foreignKey':'VariableId'}),db[_0x3fe474('0x1ef')]['hasMany'](db[_0x3fe474('0x166')],{'as':'Configurations','onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x166')]['hasMany'](db[_0x3fe474('0xa1')],{'as':_0x3fe474('0xf7'),'onDelete':'cascade','foreignKey':_0x3fe474('0xd5')}),db['DeskConfiguration'][_0x3fe474('0x1c9')](db['DeskField'],{'as':_0x3fe474('0x1d3'),'onDelete':'cascade','foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0x166')][_0x3fe474('0x1c9')](db[_0x3fe474('0xa1')],{'as':_0x3fe474('0x5'),'onDelete':'cascade','foreignKey':'FieldId'}),db[_0x3fe474('0x166')][_0x3fe474('0x7f')](db[_0x3fe474('0x1ef')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x166')]['belongsToMany'](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0x53')}),db[_0x3fe474('0xa1')][_0x3fe474('0x1c9')](db['DeskField'],{'as':_0x3fe474('0x177'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0xa1')]['hasMany'](db[_0x3fe474('0xa1')],{'as':'Description','foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0xa1')][_0x3fe474('0x1c9')](db['DeskField'],{'as':_0x3fe474('0xe2'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0xa1')][_0x3fe474('0x7f')](db[_0x3fe474('0x1dc')],{'as':'Variable','foreignKey':_0x3fe474('0x137')}),db[_0x3fe474('0xb0')][_0x3fe474('0x1c9')](db['ZohoConfiguration'],{'as':'Configurations','onDelete':_0x3fe474('0x1d5'),'foreignKey':'AccountId'}),db[_0x3fe474('0xc4')]['hasMany'](db['ZohoField'],{'as':_0x3fe474('0xf7'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0xc4')][_0x3fe474('0x1c9')](db['ZohoField'],{'as':_0x3fe474('0x1d3'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0xc4')]['hasMany'](db[_0x3fe474('0x59')],{'as':_0x3fe474('0x5'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0xc4')][_0x3fe474('0x7f')](db[_0x3fe474('0xb0')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db['ZohoField'][_0x3fe474('0x1c9')](db[_0x3fe474('0x59')],{'as':'Subject','foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x59')][_0x3fe474('0x1c9')](db[_0x3fe474('0x59')],{'as':_0x3fe474('0x117'),'foreignKey':_0x3fe474('0x152')}),db['ZohoField'][_0x3fe474('0x1c9')](db['ZohoField'],{'as':_0x3fe474('0xe2'),'foreignKey':'FieldId'}),db[_0x3fe474('0x59')][_0x3fe474('0x7f')](db[_0x3fe474('0x1dc')],{'as':_0x3fe474('0x1dc'),'foreignKey':_0x3fe474('0x137')}),db[_0x3fe474('0xca')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1f1')],{'as':_0x3fe474('0xb1'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':'AccountId'}),db[_0x3fe474('0x1f1')]['hasMany'](db[_0x3fe474('0x15e')],{'as':_0x3fe474('0xf7'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x1f1')][_0x3fe474('0x1c9')](db['ZendeskField'],{'as':'Descriptions','foreignKey':'DescriptionId'}),db['ZendeskConfiguration'][_0x3fe474('0x1c9')](db[_0x3fe474('0x15e')],{'as':_0x3fe474('0x5'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x1f1')][_0x3fe474('0x7f')](db[_0x3fe474('0xca')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db['ZendeskConfiguration']['belongsToMany'](db['Tag'],{'through':_0x3fe474('0xc0')}),db['ZendeskField'][_0x3fe474('0x1c9')](db['ZendeskField'],{'as':_0x3fe474('0x177'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x15e')][_0x3fe474('0x1c9')](db['ZendeskField'],{'as':_0x3fe474('0x117'),'foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0x15e')]['hasMany'](db['ZendeskField'],{'as':_0x3fe474('0xe2'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x15e')][_0x3fe474('0x7f')](db[_0x3fe474('0x1dc')],{'as':_0x3fe474('0x1dc'),'foreignKey':_0x3fe474('0x137')}),db[_0x3fe474('0x1b3')][_0x3fe474('0x1c9')](db[_0x3fe474('0x186')],{'as':_0x3fe474('0xb1'),'onDelete':'cascade','foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x186')][_0x3fe474('0x1c9')](db[_0x3fe474('0x2')],{'as':_0x3fe474('0xf7'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x186')]['hasMany'](db[_0x3fe474('0x2')],{'as':_0x3fe474('0x1d3'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0x186')]['hasMany'](db[_0x3fe474('0x2')],{'as':_0x3fe474('0x5'),'onDelete':'cascade','foreignKey':_0x3fe474('0x1a7')}),db['FreshdeskConfiguration'][_0x3fe474('0x7f')](db[_0x3fe474('0x1b3')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x186')]['belongsToMany'](db['Tag'],{'through':_0x3fe474('0x156')}),db[_0x3fe474('0x2')][_0x3fe474('0x1c9')](db[_0x3fe474('0x2')],{'as':_0x3fe474('0x177'),'foreignKey':'SubjectId'}),db['FreshdeskField'][_0x3fe474('0x1c9')](db[_0x3fe474('0x2')],{'as':_0x3fe474('0x117'),'foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0x2')][_0x3fe474('0x1c9')](db[_0x3fe474('0x2')],{'as':_0x3fe474('0xe2'),'foreignKey':'FieldId'}),db[_0x3fe474('0x2')][_0x3fe474('0x7f')](db[_0x3fe474('0x1dc')],{'as':_0x3fe474('0x1dc'),'foreignKey':_0x3fe474('0x137')}),db[_0x3fe474('0xb6')][_0x3fe474('0x1c9')](db['VtigerConfiguration'],{'as':'Configurations','onDelete':'cascade','foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x17a')][_0x3fe474('0x1c9')](db[_0x3fe474('0x5d')],{'as':_0x3fe474('0xf7'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x17a')][_0x3fe474('0x1c9')](db[_0x3fe474('0x5d')],{'as':_0x3fe474('0x1d3'),'foreignKey':_0x3fe474('0x152')}),db['VtigerConfiguration'][_0x3fe474('0x1c9')](db[_0x3fe474('0x5d')],{'as':_0x3fe474('0x5'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x17a')][_0x3fe474('0x7f')](db[_0x3fe474('0xb6')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x5d')][_0x3fe474('0x1c9')](db['VtigerField'],{'as':_0x3fe474('0x177'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x5d')][_0x3fe474('0x1c9')](db[_0x3fe474('0x5d')],{'as':'Description','foreignKey':'DescriptionId'}),db['VtigerField']['hasMany'](db[_0x3fe474('0x5d')],{'as':_0x3fe474('0xe2'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x5d')][_0x3fe474('0x7f')](db[_0x3fe474('0x1dc')],{'as':_0x3fe474('0x1dc'),'foreignKey':'VariableId'}),db['ServicenowAccount'][_0x3fe474('0x1c9')](db[_0x3fe474('0x7d')],{'as':_0x3fe474('0xb1'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x7d')][_0x3fe474('0x1c9')](db[_0x3fe474('0xb')],{'as':_0x3fe474('0xf7'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x7d')]['hasMany'](db['ServicenowField'],{'as':_0x3fe474('0x1d3'),'foreignKey':'DescriptionId'}),db[_0x3fe474('0x7d')]['hasMany'](db[_0x3fe474('0xb')],{'as':_0x3fe474('0x5'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x7d')][_0x3fe474('0x7f')](db[_0x3fe474('0x51')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0xb')][_0x3fe474('0x1c9')](db[_0x3fe474('0xb')],{'as':_0x3fe474('0x177'),'foreignKey':_0x3fe474('0xd5')}),db['ServicenowField'][_0x3fe474('0x1c9')](db[_0x3fe474('0xb')],{'as':_0x3fe474('0x117'),'foreignKey':'DescriptionId'}),db[_0x3fe474('0xb')]['hasMany'](db['ServicenowField'],{'as':_0x3fe474('0xe2'),'foreignKey':'FieldId'}),db[_0x3fe474('0xb')][_0x3fe474('0x7f')](db['Variable'],{'as':_0x3fe474('0x1dc'),'foreignKey':_0x3fe474('0x137')}),db[_0x3fe474('0x12e')]['hasMany'](db[_0x3fe474('0x11e')],{'as':_0x3fe474('0xb1'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x11e')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1f6')],{'as':_0x3fe474('0xf7'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0xd5')}),db['Dynamics365Configuration'][_0x3fe474('0x1c9')](db[_0x3fe474('0x1f6')],{'as':_0x3fe474('0x1d3'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':'DescriptionId'}),db['Dynamics365Configuration'][_0x3fe474('0x1c9')](db[_0x3fe474('0x1f6')],{'as':_0x3fe474('0x5'),'onDelete':'cascade','foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x11e')]['belongsTo'](db[_0x3fe474('0x12e')],{'as':'Account','foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x1f6')][_0x3fe474('0x1c9')](db['Dynamics365Field'],{'as':_0x3fe474('0x177'),'foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x1f6')][_0x3fe474('0x1c9')](db['Dynamics365Field'],{'as':_0x3fe474('0x117'),'foreignKey':'DescriptionId'}),db[_0x3fe474('0x1f6')]['hasMany'](db['Dynamics365Field'],{'as':_0x3fe474('0xe2'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x1f6')]['belongsTo'](db[_0x3fe474('0x1dc')],{'as':_0x3fe474('0x1dc'),'foreignKey':_0x3fe474('0x137')}),db['FreshsalesAccount'][_0x3fe474('0x1c9')](db[_0x3fe474('0x1af')],{'as':_0x3fe474('0xb1'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x1af')]['hasMany'](db[_0x3fe474('0x97')],{'as':'Subjects','foreignKey':_0x3fe474('0xd5')}),db[_0x3fe474('0x1af')][_0x3fe474('0x1c9')](db[_0x3fe474('0x97')],{'as':_0x3fe474('0x1d3'),'foreignKey':_0x3fe474('0x152')}),db[_0x3fe474('0x1af')][_0x3fe474('0x1c9')](db[_0x3fe474('0x97')],{'as':_0x3fe474('0x5'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x1af')]['belongsTo'](db[_0x3fe474('0xf0')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x16f')}),db[_0x3fe474('0x97')][_0x3fe474('0x1c9')](db[_0x3fe474('0x97')],{'as':_0x3fe474('0x177'),'foreignKey':'SubjectId'}),db[_0x3fe474('0x97')][_0x3fe474('0x1c9')](db[_0x3fe474('0x97')],{'as':_0x3fe474('0x117'),'foreignKey':'DescriptionId'}),db[_0x3fe474('0x97')][_0x3fe474('0x1c9')](db[_0x3fe474('0x97')],{'as':_0x3fe474('0xe2'),'foreignKey':_0x3fe474('0x1a7')}),db[_0x3fe474('0x97')][_0x3fe474('0x7f')](db[_0x3fe474('0x1dc')],{'as':_0x3fe474('0x1dc'),'foreignKey':_0x3fe474('0x137')}),db['ChatQueueReport'][_0x3fe474('0x7f')](db['ChatWebsite'],{}),db[_0x3fe474('0x167')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db['ChatQueueReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':_0x3fe474('0x50'),'foreignKey':'ContactId'}),db['ChatQueueReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x61')],{}),db['ChatQueueReport'][_0x3fe474('0x7f')](db['ChatMessage'],{}),db[_0x3fe474('0x167')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{}),db[_0x3fe474('0x167')]['belongsTo'](db[_0x3fe474('0xdc')],{}),db[_0x3fe474('0x92')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x163')}),db[_0x3fe474('0x92')]['belongsTo'](db['User'],{'onDelete':'cascade','foreignKey':_0x3fe474('0x73')}),db[_0x3fe474('0x12f')]['hasMany'](db[_0x3fe474('0x1b0')],{'foreignKey':_0x3fe474('0x1e4'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x12f')][_0x3fe474('0x1c9')](db['JscriptyAnswerReport'],{'foreignKey':_0x3fe474('0x1e4'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x79')][_0x3fe474('0x7f')](db[_0x3fe474('0x1cc')],{}),db[_0x3fe474('0x79')][_0x3fe474('0x7f')](db['CmList'],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db['SmsQueueReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':_0x3fe474('0x50'),'foreignKey':_0x3fe474('0x196')}),db['SmsQueueReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x47')],{}),db[_0x3fe474('0x79')][_0x3fe474('0x7f')](db[_0x3fe474('0x13b')],{}),db['SmsQueueReport']['belongsTo'](db[_0x3fe474('0x12d')],{}),db[_0x3fe474('0x79')][_0x3fe474('0x7f')](db['SmsQueue'],{}),db[_0x3fe474('0x46')][_0x3fe474('0x1c9')](db[_0x3fe474('0x12f')],{'foreignKey':_0x3fe474('0x1db')}),db['JscriptyProject'][_0x3fe474('0x1c9')](db['JscriptyQuestionReport'],{'foreignKey':'ProjectId'}),db['JscriptyProject']['hasMany'](db[_0x3fe474('0x7e')],{'foreignKey':'ProjectId'}),db[_0x3fe474('0x108')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x2b'),'through':_0x3fe474('0x27')}),db[_0x3fe474('0x10a')]['belongsToMany'](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x4e')}),db[_0x3fe474('0x10a')]['belongsToMany'](db[_0x3fe474('0x19c')],{'through':_0x3fe474('0x1f4'),'as':_0x3fe474('0x68')}),db[_0x3fe474('0x10a')]['belongsToMany'](db[_0x3fe474('0x66')],{'through':_0x3fe474('0x36'),'as':_0x3fe474('0x63')}),db[_0x3fe474('0x10a')][_0x3fe474('0x189')](db[_0x3fe474('0xdc')],{'through':_0x3fe474('0x1b7'),'as':_0x3fe474('0x3d')}),db[_0x3fe474('0x10a')][_0x3fe474('0x189')](db['FaxQueue'],{'through':'team_has_fax_queues','as':'FaxQueues'}),db[_0x3fe474('0x10a')][_0x3fe474('0x189')](db[_0x3fe474('0x17e')],{'through':_0x3fe474('0x174'),'as':'SmsQueues'}),db['Team'][_0x3fe474('0x189')](db[_0x3fe474('0x1e5')],{'through':_0x3fe474('0x1b1'),'as':'OpenchannelQueues'}),db[_0x3fe474('0x10a')][_0x3fe474('0x189')](db[_0x3fe474('0x1a2')],{'through':_0x3fe474('0xa8'),'as':_0x3fe474('0x1dd')}),db['Campaign'][_0x3fe474('0x1c9')](db['CmHopper'],{'as':_0x3fe474('0x182'),'foreignKey':'CampaignId'}),db[_0x3fe474('0x1de')][_0x3fe474('0x1c9')](db[_0x3fe474('0x13a')],{'as':'HopperFinals','foreignKey':_0x3fe474('0x4d')}),db[_0x3fe474('0x1de')]['hasMany'](db[_0x3fe474('0x11a')],{'as':'HopperHistories','foreignKey':'CampaignId'}),db[_0x3fe474('0x1de')][_0x3fe474('0x1c9')](db['CmHopperBlack'],{'as':_0x3fe474('0x6d'),'foreignKey':_0x3fe474('0x4d')}),db[_0x3fe474('0x1de')]['belongsTo'](db[_0x3fe474('0xe6')],{'as':_0x3fe474('0xe6'),'foreignKey':_0x3fe474('0x67')}),db[_0x3fe474('0x1de')][_0x3fe474('0x7f')](db[_0x3fe474('0xe6')],{'as':_0x3fe474('0x130'),'foreignKey':_0x3fe474('0x164')}),db[_0x3fe474('0x1de')][_0x3fe474('0x7f')](db['Interval'],{'as':_0x3fe474('0x1d4'),'foreignKey':'IntervalId'}),db[_0x3fe474('0x1de')][_0x3fe474('0x7f')](db['SquareProject'],{'as':_0x3fe474('0x108'),'foreignKey':'SquareProjectId'}),db[_0x3fe474('0x1de')]['belongsToMany'](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0xce'),'through':'campaigns_has_cm_lists'}),db['Campaign'][_0x3fe474('0x189')](db[_0x3fe474('0x1a6')],{'as':'BlackLists','through':_0x3fe474('0x14f')}),db['MailTransferReport']['belongsTo'](db['MailMessage'],{}),db[_0x3fe474('0x44')][_0x3fe474('0x7f')](db['MailInteraction'],{}),db[_0x3fe474('0x44')][_0x3fe474('0x7f')](db[_0x3fe474('0x103')],{'foreignKey':_0x3fe474('0x1f2'),'as':'FromAccount'}),db['MailTransferReport'][_0x3fe474('0x7f')](db['User'],{'foreignKey':_0x3fe474('0x1d6'),'as':'FromAgent'}),db[_0x3fe474('0x44')][_0x3fe474('0x7f')](db['User'],{'foreignKey':_0x3fe474('0x56'),'as':_0x3fe474('0x40')}),db[_0x3fe474('0x44')][_0x3fe474('0x7f')](db[_0x3fe474('0x66')],{'foreignKey':_0x3fe474('0xd9'),'as':'ToQueue'}),db[_0x3fe474('0x44')]['belongsTo'](db[_0x3fe474('0x103')],{'foreignKey':_0x3fe474('0x90'),'as':'ToAccount'}),db['ChatTransferReport'][_0x3fe474('0x7f')](db['ChatMessage'],{}),db['ChatTransferReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x61')],{}),db['ChatTransferReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x157')],{'foreignKey':_0x3fe474('0x1b6'),'as':_0x3fe474('0x1a8')}),db['ChatTransferReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'foreignKey':_0x3fe474('0x1d6'),'as':_0x3fe474('0xdb')}),db[_0x3fe474('0x16c')][_0x3fe474('0x7f')](db['User'],{'foreignKey':'ToUserId','as':_0x3fe474('0x40')}),db['ChatTransferReport'][_0x3fe474('0x7f')](db[_0x3fe474('0xdc')],{'foreignKey':_0x3fe474('0x87'),'as':_0x3fe474('0x15')}),db['ChatTransferReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x157')],{'foreignKey':_0x3fe474('0x1e8'),'as':'ToAccount'}),db[_0x3fe474('0x4a')][_0x3fe474('0x7f')](db[_0x3fe474('0x45')],{}),db[_0x3fe474('0x4a')]['belongsTo'](db[_0x3fe474('0x41')],{}),db[_0x3fe474('0x4a')]['belongsTo'](db[_0x3fe474('0xf1')],{'foreignKey':'FromFaxAccountId','as':'FromAccount'}),db[_0x3fe474('0x4a')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'foreignKey':_0x3fe474('0x1d6'),'as':_0x3fe474('0xdb')}),db[_0x3fe474('0x4a')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'foreignKey':_0x3fe474('0x56'),'as':_0x3fe474('0x40')}),db[_0x3fe474('0x4a')][_0x3fe474('0x7f')](db[_0x3fe474('0xd3')],{'foreignKey':'ToFaxQueueId','as':_0x3fe474('0x15')}),db['FaxTransferReport'][_0x3fe474('0x7f')](db[_0x3fe474('0xf1')],{'foreignKey':_0x3fe474('0x24'),'as':_0x3fe474('0xfe')}),db[_0x3fe474('0x17f')]['belongsTo'](db['OpenchannelMessage'],{}),db[_0x3fe474('0x17f')][_0x3fe474('0x7f')](db[_0x3fe474('0x18b')],{}),db['OpenchannelTransferReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x187')],{'foreignKey':_0x3fe474('0x199'),'as':_0x3fe474('0x1a8')}),db[_0x3fe474('0x17f')]['belongsTo'](db[_0x3fe474('0x12d')],{'foreignKey':_0x3fe474('0x1d6'),'as':'FromAgent'}),db[_0x3fe474('0x17f')]['belongsTo'](db[_0x3fe474('0x12d')],{'foreignKey':_0x3fe474('0x56'),'as':_0x3fe474('0x40')}),db[_0x3fe474('0x17f')][_0x3fe474('0x7f')](db['OpenchannelQueue'],{'foreignKey':_0x3fe474('0x16b'),'as':_0x3fe474('0x15')}),db[_0x3fe474('0x17f')][_0x3fe474('0x7f')](db[_0x3fe474('0x187')],{'foreignKey':'ToOpenchannelAccountId','as':'ToAccount'}),db[_0x3fe474('0x9f')][_0x3fe474('0x7f')](db['SmsMessage'],{}),db[_0x3fe474('0x9f')][_0x3fe474('0x7f')](db[_0x3fe474('0x47')],{}),db[_0x3fe474('0x9f')][_0x3fe474('0x7f')](db[_0x3fe474('0x1cc')],{'foreignKey':_0x3fe474('0x151'),'as':'FromAccount'}),db[_0x3fe474('0x9f')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'foreignKey':'FromUserId','as':_0x3fe474('0xdb')}),db['SmsTransferReport'][_0x3fe474('0x7f')](db['User'],{'foreignKey':_0x3fe474('0x56'),'as':_0x3fe474('0x40')}),db[_0x3fe474('0x9f')]['belongsTo'](db['SmsQueue'],{'foreignKey':'ToSmsQueueId','as':_0x3fe474('0x15')}),db['SmsTransferReport']['belongsTo'](db[_0x3fe474('0x1cc')],{'foreignKey':_0x3fe474('0x192'),'as':_0x3fe474('0xfe')}),db[_0x3fe474('0x1a6')][_0x3fe474('0x1c9')](db[_0x3fe474('0x131')],{'as':_0x3fe474('0x1bb'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x1a6')][_0x3fe474('0x1c9')](db[_0x3fe474('0xc6')],{'as':_0x3fe474('0x140'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x1a6')][_0x3fe474('0x1c9')](db['CmContact'],{'as':_0x3fe474('0xa5'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':'ListId'}),db[_0x3fe474('0x1a6')]['hasMany'](db[_0x3fe474('0x13a')],{'as':_0x3fe474('0x10e'),'foreignKey':_0x3fe474('0x1ca')}),db['CmList'][_0x3fe474('0x1c9')](db[_0x3fe474('0x11a')],{'as':_0x3fe474('0x94'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x1a6')][_0x3fe474('0x1c9')](db[_0x3fe474('0x12b')],{'as':_0x3fe474('0x12b'),'foreignKey':_0x3fe474('0x1ca')}),db['CmList'][_0x3fe474('0x189')](db[_0x3fe474('0x19c')],{'as':'Queues','through':'voice_queues_has_cm_lists'}),db[_0x3fe474('0x1a6')][_0x3fe474('0x189')](db['User'],{'as':_0x3fe474('0x48'),'through':_0x3fe474('0x1c6')}),db[_0x3fe474('0x8b')]['hasMany'](db[_0x3fe474('0x32')],{'as':_0x3fe474('0x18e'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x8b')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':'user_has_voice_prefixes'}),db[_0x3fe474('0x161')]['hasMany'](db['User'],{'as':_0x3fe474('0x2b'),'foreignKey':'userProfileId','onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0x161')][_0x3fe474('0x1c9')](db['UserProfileSection'],{'as':_0x3fe474('0x11c'),'foreignKey':_0x3fe474('0x18c'),'onDelete':_0x3fe474('0x1d5')}),db[_0x3fe474('0x1b8')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1d2')],{'as':'Resources','foreignKey':_0x3fe474('0x1f'),'onDelete':'cascade'}),db[_0x3fe474('0x8a')][_0x3fe474('0x1c9')](db[_0x3fe474('0x131')],{'as':_0x3fe474('0x1bb'),'foreignKey':_0x3fe474('0x1cd')}),db[_0x3fe474('0x8a')][_0x3fe474('0x1c9')](db[_0x3fe474('0x1b2')],{'as':_0x3fe474('0x70'),'foreignKey':'WhatsappAccountId'}),db['WhatsappAccount'][_0x3fe474('0x1c9')](db['WhatsappMessage'],{'as':_0x3fe474('0x1d'),'foreignKey':_0x3fe474('0x1cd')}),db[_0x3fe474('0x8a')][_0x3fe474('0x1c9')](db[_0x3fe474('0x113')],{'as':'Interactions'}),db[_0x3fe474('0x8a')][_0x3fe474('0x1c9')](db[_0x3fe474('0xba')],{'as':_0x3fe474('0x13f')}),db[_0x3fe474('0x8a')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a6')],{'as':_0x3fe474('0x172'),'foreignKey':_0x3fe474('0x1ca')}),db[_0x3fe474('0x8a')][_0x3fe474('0x7f')](db['Pause'],{'as':_0x3fe474('0x1c5'),'foreignKey':_0x3fe474('0x31')}),db[_0x3fe474('0x8a')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Agents','through':'user_has_whatsapp_accounts'}),db[_0x3fe474('0xba')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0xba')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a2')],{'onDelete':'restrict'}),db[_0x3fe474('0xba')][_0x3fe474('0x7f')](db[_0x3fe474('0x8a')],{'onDelete':_0x3fe474('0x132')}),db[_0x3fe474('0xba')]['belongsTo'](db[_0x3fe474('0x1d4')],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0xa4')}),db[_0x3fe474('0xba')][_0x3fe474('0x7f')](db[_0x3fe474('0xfa')],{'onDelete':_0x3fe474('0x132'),'foreignKey':_0x3fe474('0x20')}),db[_0x3fe474('0x113')][_0x3fe474('0x1c9')](db['WhatsappMessage'],{'as':_0x3fe474('0x1d'),'onDelete':_0x3fe474('0x1d5'),'foreignKey':_0x3fe474('0x1f8')}),db[_0x3fe474('0x113')][_0x3fe474('0x7f')](db[_0x3fe474('0x8a')],{'as':_0x3fe474('0x127'),'foreignKey':_0x3fe474('0x1cd')}),db[_0x3fe474('0x113')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':_0x3fe474('0x50'),'foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x113')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x1da'),'foreignKey':_0x3fe474('0x1f5')}),db[_0x3fe474('0x113')][_0x3fe474('0x189')](db[_0x3fe474('0xfa')],{'through':_0x3fe474('0x77'),'as':_0x3fe474('0x122')}),db[_0x3fe474('0x113')][_0x3fe474('0x189')](db['Tag'],{'through':'whatsapp_interaction_has_tags','as':_0x3fe474('0x114')}),db[_0x3fe474('0x113')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':'Users','through':_0x3fe474('0xd4'),'foreignKey':_0x3fe474('0x1f8')}),db[_0x3fe474('0x15d')]['belongsTo'](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x12d')}),db[_0x3fe474('0x15d')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'onDelete':_0x3fe474('0x1d5'),'as':'Contact'}),db[_0x3fe474('0x15d')]['belongsTo'](db[_0x3fe474('0x113')],{'onDelete':_0x3fe474('0x1d5'),'as':_0x3fe474('0x1ec'),'foreignKey':_0x3fe474('0x1f8')}),db[_0x3fe474('0x15d')][_0x3fe474('0x7f')](db[_0x3fe474('0x8a')],{'as':_0x3fe474('0x127'),'foreignKey':'WhatsappAccountId'}),db[_0x3fe474('0x125')][_0x3fe474('0x7f')](db[_0x3fe474('0x8a')],{}),db[_0x3fe474('0x125')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a6')],{'as':'List','foreignKey':'ListId'}),db[_0x3fe474('0x125')][_0x3fe474('0x7f')](db[_0x3fe474('0x54')],{'as':_0x3fe474('0x50'),'foreignKey':_0x3fe474('0x196')}),db[_0x3fe474('0x125')][_0x3fe474('0x7f')](db[_0x3fe474('0x113')],{}),db[_0x3fe474('0x125')][_0x3fe474('0x7f')](db['WhatsappQueue'],{}),db['WhatsappQueueReport'][_0x3fe474('0x7f')](db[_0x3fe474('0x15d')],{}),db[_0x3fe474('0x125')]['belongsTo'](db[_0x3fe474('0x12d')],{}),db[_0x3fe474('0x1e1')][_0x3fe474('0x7f')](db[_0x3fe474('0x15d')],{}),db[_0x3fe474('0x1e1')][_0x3fe474('0x7f')](db[_0x3fe474('0x113')],{}),db[_0x3fe474('0x1e1')][_0x3fe474('0x7f')](db[_0x3fe474('0x8a')],{'foreignKey':_0x3fe474('0x147'),'as':_0x3fe474('0x1a8')}),db[_0x3fe474('0x1e1')][_0x3fe474('0x7f')](db['WhatsappAccount'],{'foreignKey':_0x3fe474('0xcf'),'as':_0x3fe474('0xfe')}),db[_0x3fe474('0x1e1')][_0x3fe474('0x7f')](db[_0x3fe474('0x1a2')],{'foreignKey':'ToQueueId','as':_0x3fe474('0x15')}),db[_0x3fe474('0x1e1')][_0x3fe474('0x7f')](db[_0x3fe474('0x12d')],{'foreignKey':'FromUserId','as':'FromAgent'}),db[_0x3fe474('0x1e1')]['belongsTo'](db['User'],{'foreignKey':_0x3fe474('0x56'),'as':'ToAgent'}),db[_0x3fe474('0x1a2')][_0x3fe474('0x189')](db[_0x3fe474('0x12d')],{'as':_0x3fe474('0x48'),'through':'UserWhatsappQueue','foreignKey':_0x3fe474('0x93')}),db[_0x3fe474('0x1a2')][_0x3fe474('0x189')](db[_0x3fe474('0x10a')],{'through':_0x3fe474('0xa8'),'as':_0x3fe474('0x16a')}),module['exports']={'db':db,'dbH':dbH}; \ No newline at end of file diff --git a/server/rediscache/index.js b/server/rediscache/index.js index bbbe565..f41f633 100644 --- a/server/rediscache/index.js +++ b/server/rediscache/index.js @@ -1 +1 @@ -const a1022_0x2ae1=['ioredis','redisPort','redis','exports','../config/config.service','getConfigService'];(function(_0x2884ab,_0x2ae17a){const _0x3f7ce3=function(_0x22bb41){while(--_0x22bb41){_0x2884ab['push'](_0x2884ab['shift']());}};_0x3f7ce3(++_0x2ae17a);}(a1022_0x2ae1,0x1e2));const a1022_0x3f7c=function(_0x2884ab,_0x2ae17a){_0x2884ab=_0x2884ab-0x0;let _0x3f7ce3=a1022_0x2ae1[_0x2884ab];return _0x3f7ce3;};const _0x2062ce=a1022_0x3f7c,Redis=require(_0x2062ce('0x4')),socketEmitter=require('socket.io-emitter'),config=require('../config/environment'),cs=require(_0x2062ce('0x2'))[_0x2062ce('0x3')](),MAX_RETRIES=0xa,REDIS_CONFIG={'host':cs['redisHost'],'port':cs[_0x2062ce('0x5')],'retryStrategy':function(_0x22bb41){if(_0x22bb41_0x481165[_0x360961('0x104')](/^chat_v/,''))[_0x360961('0xc2')](compareVersions)[_0x360961('0x29')]();_0x6e642a=_0x4a25ac[0x0],_0x46d43f=path[_0x360961('0x6b')](_0x5916cd,_0x360961('0xdb')+_0x6e642a);}}catch(_0xdaeb65){console[_0x360961('0xec')](_0x360961('0x61'),_0xdaeb65);}return{'chatVersion':_0x6e642a,'chatPath':_0x46d43f};}async function routes(_0x303085){const _0xf5633b=_0x333723;_0x303085[_0xf5633b('0xd3')](ewinston['logger']({'winstonInstance':logger,'meta':![],'statusLevels':!![],'msg':function(_0x48c2b4,_0x2ad17d){const _0x1860d5=_0xf5633b;return util[_0x1860d5('0xc9')](_0x1860d5('0x4f'),_0x48c2b4[_0x1860d5('0xb6')],_0x48c2b4[_0x1860d5('0x11f')]['x-forwarded-for']?_0x48c2b4[_0x1860d5('0x11f')][_0x1860d5('0xe8')]:_0x48c2b4[_0x1860d5('0x3b')]['remoteAddress']||_0x48c2b4['ip'],_0x48c2b4[_0x1860d5('0x103')],_0x2ad17d[_0x1860d5('0x11c')],_0x2ad17d[_0x1860d5('0xc5')],_0x48c2b4['user']?_0x48c2b4[_0x1860d5('0x6a')]['id']:null,_0x48c2b4[_0x1860d5('0x6a')]?_0x48c2b4[_0x1860d5('0x6a')][_0x1860d5('0x1c')]:null,_0x48c2b4[_0x1860d5('0x6a')]?_0x48c2b4[_0x1860d5('0x6a')]['role']:null);}})),_0x303085[_0xf5633b('0xd3')](ewinston[_0xf5633b('0x60')]({'winstonInstance':authLogger,'meta':![],'statusLevels':!![],'msg':function(_0x26cb93,_0x18965f){const _0x545abd=_0xf5633b;let _0xf9987a=_0x545abd('0xaf');return _0x26cb93[_0x545abd('0x3a')]&&_0x26cb93[_0x545abd('0x3a')][_0x545abd('0xa5')]&&_0x26cb93[_0x545abd('0x3a')][_0x545abd('0xd9')]&&(_0xf9987a=_0x545abd('0x3c')),util[_0x545abd('0xc9')](_0xf9987a,_0x26cb93[_0x545abd('0xb6')],_0x26cb93[_0x545abd('0x11f')][_0x545abd('0xe8')]?_0x26cb93[_0x545abd('0x11f')][_0x545abd('0xe8')]:_0x26cb93[_0x545abd('0x3b')][_0x545abd('0x2c')]||_0x26cb93['ip'],_0x26cb93[_0x545abd('0x103')],_0x18965f[_0x545abd('0x11c')],_0x18965f[_0x545abd('0xc5')],_0x26cb93[_0x545abd('0x6a')]?_0x26cb93['user']['id']:null,_0x26cb93['user']?_0x26cb93[_0x545abd('0x6a')][_0x545abd('0x1c')]:null,_0x26cb93[_0x545abd('0x6a')]?_0x26cb93[_0x545abd('0x6a')][_0x545abd('0x8b')]:null,_0x26cb93[_0x545abd('0x3a')]&&_0x26cb93[_0x545abd('0x3a')][_0x545abd('0xa5')]?_0x26cb93[_0x545abd('0x3a')]['device']:_0x545abd('0xfd'),_0x26cb93[_0x545abd('0x3a')]&&_0x26cb93[_0x545abd('0x3a')]['agent_id']?_0x26cb93['body']['agent_id']:'',_0x26cb93[_0x545abd('0x3a')]&&_0x26cb93['body'][_0x545abd('0x30')]?_0x26cb93[_0x545abd('0x3a')]['agent_name']:'');},'ignoreRoute':function(_0x47af4d){const _0x4a1fae=_0xf5633b,_0x337240=/\/api\/users\/[0-9]+\/(login|logout)/gi;return!_0x337240[_0x4a1fae('0x7b')](_0x47af4d[_0x4a1fae('0x103')]);}})),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x77'),require('./api/user')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xba'),require(_0xf5633b('0x93'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x92'),require(_0xf5633b('0x66'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x49'),require(_0xf5633b('0xb8'))),_0x303085[_0xf5633b('0xd3')]('/api/voice/mohs',require(_0xf5633b('0x33'))),_0x303085[_0xf5633b('0xd3')]('/api/voice/queues',require(_0xf5633b('0xc0'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xe'),require(_0xf5633b('0x39'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x3e'),require(_0xf5633b('0x2f'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x19'),require(_0xf5633b('0x85'))),_0x303085['use'](_0xf5633b('0x118'),require('./api/voiceMailMessage')),_0x303085['use']('/api/voice/calls/reports',require('./api/voiceCallReport')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x55'),require('./api/voiceDialReport')),_0x303085[_0xf5633b('0xd3')]('/api/voice/agents/reports',require('./api/voiceAgentReport')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x88'),require('./api/voiceQueueReport')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x8e'),require('./api/memberReport')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x22'),require(_0xf5633b('0xe0'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xb3'),require(_0xf5633b('0x62'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x91'),require(_0xf5633b('0x28'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x6d'),require(_0xf5633b('0x13'))),_0x303085['use'](_0xf5633b('0xcf'),require(_0xf5633b('0x44'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x7'),require(_0xf5633b('0xbf'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x101'),require(_0xf5633b('0x64'))),_0x303085['use'](_0xf5633b('0x73'),require(_0xf5633b('0xa7'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x63'),require(_0xf5633b('0x99'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xe1'),require(_0xf5633b('0x4a'))),_0x303085[_0xf5633b('0xd3')]('/api/dashboards',require(_0xf5633b('0x34'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x4c'),require(_0xf5633b('0xe3'))),_0x303085[_0xf5633b('0xd3')]('/api/fax/accounts',require('./api/faxAccount')),_0x303085[_0xf5633b('0xd3')]('/api/fax/applications',require(_0xf5633b('0x12d'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x9c'),require(_0xf5633b('0xa1'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x12f'),require('./api/faxMessage')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x23'),require(_0xf5633b('0xda'))),_0x303085[_0xf5633b('0xd3')]('/api/fax/reports/queue',require(_0xf5633b('0x98'))),_0x303085[_0xf5633b('0xd3')]('/api/sms/accounts',require('./api/smsAccount')),_0x303085['use']('/api/sms/applications',require(_0xf5633b('0xd7'))),_0x303085['use'](_0xf5633b('0x8f'),require('./api/smsInteraction')),_0x303085['use'](_0xf5633b('0xd8'),require(_0xf5633b('0x12a'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xd6'),require('./api/smsQueue')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xbe'),require(_0xf5633b('0xd0'))),_0x303085[_0xf5633b('0xd3')]('/api/openchannel/applications',require(_0xf5633b('0xab'))),_0x303085['use']('/api/openchannel/interactions',require('./api/openchannelInteraction')),_0x303085[_0xf5633b('0xd3')]('/api/openchannel/messages',require('./api/openchannelMessage')),_0x303085['use'](_0xf5633b('0xb0'),require(_0xf5633b('0x16'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x3'),require('./api/chatWebsite')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x84'),require(_0xf5633b('0xb1'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x5f'),require(_0xf5633b('0x81'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xea'),require(_0xf5633b('0x11a'))),_0x303085[_0xf5633b('0xd3')]('/api/chat/messages',require(_0xf5633b('0x37'))),_0x303085['use']('/api/chat/offline_messages',require(_0xf5633b('0x107'))),_0x303085['use'](_0xf5633b('0x57'),require(_0xf5633b('0xa3'))),_0x303085['use'](_0xf5633b('0x9'),require('./api/chatGroup')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x134'),require(_0xf5633b('0x3f'))),_0x303085['use'](_0xf5633b('0xb9'),require('./api/cmCompany')),_0x303085['use'](_0xf5633b('0x10b'),require(_0xf5633b('0x32'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xce'),require('./api/cmHopper')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x133'),require(_0xf5633b('0x6'))),_0x303085[_0xf5633b('0xd3')]('/api/cm/hopper_final',require(_0xf5633b('0xd'))),_0x303085[_0xf5633b('0xd3')]('/api/cm/hopper_history',require('./api/cmHopperHistory')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xb4'),require('./api/cmCustomField')),_0x303085['use']('/api/actions',require(_0xf5633b('0x21'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x5d'),require(_0xf5633b('0x10f'))),_0x303085[_0xf5633b('0xd3')]('/api/canned_answers',require(_0xf5633b('0xa0'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xe7'),require(_0xf5633b('0x6f'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x121'),require('./api/condition')),_0x303085[_0xf5633b('0xd3')]('/api/intervals',require('./api/interval')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x15'),require(_0xf5633b('0xfb'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x74'),require('./api/cdr')),_0x303085['use']('/api/voiceQueuesLog',require(_0xf5633b('0x7c'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xbd'),require(_0xf5633b('0x97'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xa2'),require('./api/sound')),_0x303085[_0xf5633b('0xd3')]('/api/tags',require('./api/tag')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x109'),require(_0xf5633b('0x106'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x113'),require(_0xf5633b('0x7a'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x8c'),require(_0xf5633b('0xcd'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x127'),require(_0xf5633b('0x90'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x102'),require('./api/integrationReport')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xd2'),require(_0xf5633b('0xc'))),_0x303085['use'](_0xf5633b('0x7f'),require(_0xf5633b('0x2a'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x38'),require('./api/analyticExtractedReport')),_0x303085['use'](_0xf5633b('0x1e'),require(_0xf5633b('0xf1'))),_0x303085[_0xf5633b('0xd3')]('/api/analytics/field_reports',require(_0xf5633b('0x100'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xc7'),require(_0xf5633b('0x46'))),_0x303085[_0xf5633b('0xd3')]('/api/integrations/salesforce/accounts',require('./api/intSalesforceAccount')),_0x303085['use'](_0xf5633b('0x12b'),require(_0xf5633b('0x43'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x114'),require(_0xf5633b('0xff'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xc8'),require(_0xf5633b('0x111'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xe5'),require(_0xf5633b('0x131'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x54'),require('./api/intSugarcrmField')),_0x303085['use'](_0xf5633b('0xc4'),require(_0xf5633b('0x1d'))),_0x303085[_0xf5633b('0xd3')]('/api/integrations/desk/configurations',require(_0xf5633b('0x12'))),_0x303085['use'](_0xf5633b('0x123'),require('./api/intDeskField')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xad'),require(_0xf5633b('0x9b'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x110'),require(_0xf5633b('0x53'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x42'),require(_0xf5633b('0x94'))),_0x303085[_0xf5633b('0xd3')]('/api/integrations/zendesk/accounts',require('./api/intZendeskAccount')),_0x303085['use'](_0xf5633b('0x124'),require(_0xf5633b('0x24'))),_0x303085[_0xf5633b('0xd3')]('/api/integrations/zendesk/fields',require(_0xf5633b('0x119'))),_0x303085['use'](_0xf5633b('0x120'),require('./api/intFreshdeskAccount')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x1f'),require(_0xf5633b('0xc3'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xd1'),require(_0xf5633b('0x108'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x5a'),require(_0xf5633b('0x70'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xe2'),require(_0xf5633b('0x11'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xe4'),require(_0xf5633b('0xdd'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xfe'),require(_0xf5633b('0xcb'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x12c'),require(_0xf5633b('0xa8'))),_0x303085['use']('/api/integrations/servicenow/fields',require(_0xf5633b('0x9a'))),_0x303085[_0xf5633b('0xd3')]('/api/integrations/dynamics365/accounts',require(_0xf5633b('0x1a'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x27'),require(_0xf5633b('0xb'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xd5'),require(_0xf5633b('0x8'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xdc'),require(_0xf5633b('0x2'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xa9'),require('./api/intFreshsalesConfiguration')),_0x303085[_0xf5633b('0xd3')]('/api/integrations/freshsales/fields',require('./api/intFreshsalesField')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x122'),require(_0xf5633b('0xb2'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x3d'),require(_0xf5633b('0xaa'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x2d'),require(_0xf5633b('0xa6'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x18'),require(_0xf5633b('0x128'))),_0x303085['use'](_0xf5633b('0x132'),require(_0xf5633b('0x5'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x26'),require(_0xf5633b('0x7d'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x10e'),require(_0xf5633b('0xca'))),_0x303085['use'](_0xf5633b('0x115'),require(_0xf5633b('0x7e'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xa4'),require('./api/squareReportDetail')),_0x303085['use'](_0xf5633b('0x11b'),require('./api/jscriptyProject')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xf8'),require(_0xf5633b('0x83'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x87'),require(_0xf5633b('0xc1'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x67'),require(_0xf5633b('0x4'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x72'),require(_0xf5633b('0x2b'))),_0x303085[_0xf5633b('0xd3')]('/api/square/messages',require(_0xf5633b('0xeb'))),_0x303085[_0xf5633b('0xd3')]('/api/teams',require('./api/team')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xcc'),require(_0xf5633b('0x5b'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x41'),require(_0xf5633b('0x125'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x96'),require('./api/migration')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x0'),require(_0xf5633b('0xee'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xf9'),require(_0xf5633b('0x65'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x52'),require(_0xf5633b('0x59'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x71'),require(_0xf5633b('0x78'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xb5'),require(_0xf5633b('0x17'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xd4'),require(_0xf5633b('0x82'))),_0x303085[_0xf5633b('0xd3')]('/api/sms/reports/transfer',require('./api/smsTransferReport')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x51'),require('./api/cmList')),_0x303085[_0xf5633b('0xd3')]('/api/voice/prefixes',require('./api/voicePrefix')),_0x303085['use'](_0xf5633b('0x130'),require(_0xf5633b('0x80'))),_0x303085['use']('/api/userProfile/sections',require(_0xf5633b('0x35'))),_0x303085['use'](_0xf5633b('0x11e'),require(_0xf5633b('0x129'))),_0x303085[_0xf5633b('0xd3')]('/api/notifications',require(_0xf5633b('0xf2'))),_0x303085['use']('/api/whatsapp/accounts',require(_0xf5633b('0x116'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xc6'),require(_0xf5633b('0x36'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x20'),require(_0xf5633b('0x105'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xde'),require('./api/whatsappMessage')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x6c'),require('./api/whatsappQueueReport')),_0x303085[_0xf5633b('0xd3')]('/api/whatsapp/reports/transfer',require(_0xf5633b('0xf3'))),_0x303085['use'](_0xf5633b('0x12e'),require(_0xf5633b('0x10a'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x79'),require('./api/cloudProvider')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xe9'),require(_0xf5633b('0xf0'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x95'),require(_0xf5633b('0xbb'))),_0x303085['use']('/api/jira',require(_0xf5633b('0xae'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x89'),require(_0xf5633b('0xf5'))),_0x303085[_0xf5633b('0xd3')]('/api/version',require('./api/version')),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x50'),require(_0xf5633b('0xf6'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x4e'),require(_0xf5633b('0x10d'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x5c'),require(_0xf5633b('0x10'))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x9d'),express[_0xf5633b('0x10c')](path['resolve'](config[_0xf5633b('0x126')],'..',_0xf5633b('0x9e')))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x56'),express[_0xf5633b('0x10c')](path[_0xf5633b('0xac')](config['root'],'..',_0xf5633b('0x117')))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0xbc'),express[_0xf5633b('0x10c')](path[_0xf5633b('0xac')](config[_0xf5633b('0x126')],'..',_0xf5633b('0xfc')))),_0x303085[_0xf5633b('0xd3')](_0xf5633b('0x2e'),express[_0xf5633b('0x10c')](path[_0xf5633b('0xac')](config[_0xf5633b('0x126')],_0xf5633b('0x31'))));const {chatPath:_0x3e7a6c,chatVersion:_0x43c126}=await getInstalledChatVersion(),_0x13ef82=getConfigService();!(_0x13ef82['isProduction']||_0x13ef82[_0xf5633b('0xef')])&&console['log']('chatPath,\x20chatVersion',_0x3e7a6c,_0x43c126),_0x3e7a6c&&_0x43c126&&(_0x303085[_0xf5633b('0xf7')](_0xf5633b('0x1'),_0x43c126),_0x303085['use']('/snippet',express[_0xf5633b('0x10c')](_0x3e7a6c))),_0x303085[_0xf5633b('0xfa')](_0xf5633b('0x48'))[_0xf5633b('0x6e')](errors[0x194]),_0x303085['get']('*',function(_0x22f851,_0x57aa27){const _0x1b030a=_0xf5633b;_0x57aa27[_0x1b030a('0x112')](path[_0x1b030a('0xac')](_0x303085['get'](_0x1b030a('0x40'))+_0x1b030a('0x8d')));});}exports['default']=routes; \ No newline at end of file +const a1024_0x246b=['/api/square/projects','/api/teams','./api/intDynamics365Configuration','./api/intFreshdeskConfiguration','package.json','./api/memberReport','agent_name','./api/intZendeskConfiguration','/api/webbar','./api/userProfileResource','./api/chatQueueReport','/api/integrations/desk/fields','/api/mail/substatuses','./api/authGoogle','/api/mail/interactions','files/plugins','/api/sms/reports/transfer','/api/screen/recordings','/api/whatsapp/accounts','./api/dashboard','auth','./api/dashboardItem','./api/notification','agent_id','./api/mailAccount','./api/faxAccount','motion-chat','./api/network','/api/userProfile/resources','/api/voice/agents/reports','./api/condition','./api/attachment','/api/chat/messages','user','chatPath,\x20chatVersion','/api/version','/api/integrations/dynamics365/fields','/api/networks','./api/squareProject','./api/cmHopperHistory','/api/userProfiles','/api/openchannel/queues','./api/migration','/api/plugins','./api/template','/api/dashboards/items','/snippet','/api/variables','./api/automation','./api/intSugarcrmField','/api/fax/reports/queue','./api/cmCompany','./api/screenRecording','/api/intervals','readFile','/api/sms/interactions','/api/voice/recordings','/api/voiceQueuesLog','./api/integration','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s\x20(id=%s\x20name=%s)','/:url(api|auth|components|app|bower_components|assets)/*','/api/mail/out_servers','./api/intZohoField','/api/jscripty/answers/reports','./api/intZohoConfiguration','./api/intFreshsalesAccount','/api/chat/offline_messages','./api/squareRecording','other','parse','./api/intDynamics365Account','./config/logger','environment','./api/system','/api/whatsapp/queues','/api/analytics/default_reports','name','/www','apidoc','./api/intFreshsalesConfiguration','./api/analyticMetric','./api/mailQueue','/api/integrations','chat_v','root','/index.html','./api/squareMessage','/api/integrations/dynamics365/accounts','/api/analytics/metrics','./errors','express-winston','./config/config.service','/api/chat/reports/transfer','./api/voiceCallReport','/api/integrations/freshsales/accounts','./api/faxTransferReport','/api/square/reports','/api/jscripty/questions/reports','./api/pause','/api/conditions','./api/whatsappTransferReport','/api/voice/dials/reports','./api/squareOdbc','error','./api/smsInteraction','/api/jira','./api/voiceMail','replace','./api/faxInteraction','/api/voice/extensions','/api/integrations/zendesk/configurations','./api/voiceQueue','./api/openchannelQueueReport','path','/api/cm/hopper_history','./api/whatsappQueue','./api/intFreshdeskField','remoteAddress','./api/tag','chatVersion','/api/fax/queues','./api/voiceTransferReport','./api/openchannelApplication','/api/voice/transfers/reports','default','./api/smsApplication','./api/campaign','appPath','/api/integrations/freshsales/configurations','/api/fax/applications','./api/mailServerOut','/api/chat/reports/queue','/api/migrations','warn','/api/chat/internal/messages','/api/fax/interactions','./api/intSalesforceConfiguration','role','/api/openchannel/applications','./api/intSugarcrmConfiguration','./api/intServicenowAccount','./api/interval','/api/integrations/salesforce/configurations','getInstalledChatVersion','headers','./api/smsQueueReport','/api/voice/contexts','/api/mail/reports/queue','/api/mail/applications','/api/sms/accounts','./api/intVtigerField','./api/jscriptySessionReport','dist','/api/userProfile/sections','./api/trigger','./api/analyticCustomReport','/api/integrations/dynamics365/configurations','/api/voice/calls/reports','./api/voiceDialReport','./api/cannedAnswer','/api/system','/api/jscripty/projects','route','./api/whatsappInteraction','format','./api/intDynamics365Field','./api/squareReport','api','./api/variable','production','/api/integrations/freshdesk/configurations','./api/mailApplication','/api/chat/groups','./api/whatsappApplication','/demo','./api/faxQueueReport','./api/userProfile','/api/chat/websites','./api/intZendeskField','./api/user','./api/intZohoAccount','/api/integrations/zendesk/fields','utf-8','./api/chatInternalMessage','connection','set','/api/rpc','/api/cm/custom_fields','./api/whatsappQueueReport','use','./api/disposition','/apidoc','/api/integrations/servicenow/accounts','./api/whatsappMessage','/api/integrations/sugarcrm/configurations','./api/pm2','/api/trunks','/api/whatsapp/applications','./api/license','./api/intFreshsalesField','logger','./api/intDeskAccount','%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s','./api/openchannelMessage','/api/cdr','./api/chatGroup','/api/integrations/freshdesk/accounts','/api/voice/prefixes','/api/tags','test','/api/pm2','/api/cm/hopper_black','./api/webbar','./api/setting','/api/auth/local','/api/sounds','./api/trunk','/api/sms/queues','./api/intDeskField','/api/campaigns','./api/cmHopperBlack','device','readdir','snippets','./api/voiceQueuesLog','./config/environment','/api/notifications','/api/mail/messages','/api/integrations/desk/accounts','url','./api/chatApplication','build','./api/chatOfflineMessage','./api/smsAccount','./api/intSalesforceField','/api/cloudProviders','./api/jscriptyProject','/api/whatsapp/interactions','static','./api/jscriptyQuestionReport','Unable\x20to\x20solve\x20chat\x20version','No\x20chat\x20module\x20found\x20at\x20','version','/api/actions','existsSync','./api/intSugarcrmAccount','statusCode','/api/license','./api/mailQueueReport','./api/intServicenowField','/api/whatsapp/reports/transfer','./api/voiceContext','/api/voice/mails/messages','/api/integrations/freshsales/fields','method','./api/cmCustomField','./api/openchannelAccount','log','map','/api/integrations/salesforce/fields','./api/chatProactiveAction','x-forwarded-for','/api/users','./api/openchannelInteraction','/api/cm/hopper','./api/sound','./api/action','/api/cm/hopper_final','/api/templates','./api/version','/api/fax/messages','join','./api/faxMessage','./api/chatTransferReport','./api/chatMessage','./api/chatInteraction','sendFile','/api/dashboards','isProduction','/api/voice/mohs','./api/integrationReport','/api/auth/google','/api/integrations/reports','/api/cm/contacts','/api/sms/reports/queue','compare-versions','./api/analyticExtractedReport','./api/smsQueue','./api/whatsappAccount','/api/voice/queues/reports','./api/cmList','/api/voice/chanspy','/api/square/messages','/api/schedules','/api/members/reports','./api/voiceMusicOnHold','./api/faxApplication','/api/voice/queues','/api/openchannel/interactions','get','/api/integrations/sugarcrm/accounts','/api/openchannel/messages','/api/fax/accounts','/api/whatsapp/messages','/api/mail/accounts','/api/cm/lists','./api/team','resolve','includes','./api/openchannelTransferReport','express','./api/analyticFieldReport','./api/smsTransferReport','./api/jira','/api/integrations/zoho/accounts','./api/intZendeskAccount','./api/mailMessage','/api/openchannel/reports/transfer','/api/cm/companies','body','./api/intServicenowConfiguration','/api/integrations/zoho/fields','/api/chat/queues','./api/voiceRecording','/api/sms/applications'];(function(_0x3c0b96,_0x246bd9){const _0xfffc80=function(_0x3dd0a8){while(--_0x3dd0a8){_0x3c0b96['push'](_0x3c0b96['shift']());}};_0xfffc80(++_0x246bd9);}(a1024_0x246b,0x14c));const a1024_0xfffc=function(_0x3c0b96,_0x246bd9){_0x3c0b96=_0x3c0b96-0x0;let _0xfffc80=a1024_0x246b[_0x3c0b96];return _0xfffc80;};const _0x20bdfb=a1024_0xfffc;'use strict';const path=require(_0x20bdfb('0x6a')),fs=require('fs'),express=require(_0x20bdfb('0x12f')),ewinston=require(_0x20bdfb('0x53')),util=require('util'),errors=require(_0x20bdfb('0x52')),config=require(_0x20bdfb('0xda')),logger=require(_0x20bdfb('0x40'))(_0x20bdfb('0xa0')),authLogger=require(_0x20bdfb('0x40'))(_0x20bdfb('0xd')),{getConfigService}=require(_0x20bdfb('0x54')),compareVersions=require(_0x20bdfb('0x116'));async function getInstalledChatVersion(){const _0x185c72=_0x20bdfb,_0x3dd0a8=getConfigService();let _0x442e96='',_0x596fb3='';try{if(![_0x185c72('0xa2'),_0x185c72('0xe0')][_0x185c72('0x12d')](_0x3dd0a8[_0x185c72('0x41')])){const _0x3f4ae0=path[_0x185c72('0x12c')](config[_0x185c72('0x4d')],'..',_0x185c72('0x13')),_0x1a2a4e=fs[_0x185c72('0xed')](_0x3f4ae0);if(_0x1a2a4e)try{const _0x359af5=await fs['promises'][_0x185c72('0x2f')](path[_0x185c72('0x108')](_0x3f4ae0,_0x185c72('0x142')),_0x185c72('0xaf')),_0x5ad206=JSON[_0x185c72('0x3e')](_0x359af5);_0x442e96=_0x5ad206[_0x185c72('0xeb')],_0x596fb3=path[_0x185c72('0x108')](_0x3f4ae0,_0x185c72('0x91'));}catch(_0x44d521){console[_0x185c72('0x60')](_0x185c72('0x88'),_0x44d521);}else console[_0x185c72('0x7e')](_0x185c72('0xea')+_0x3f4ae0);}else{const _0x55a56e=path[_0x185c72('0x108')](config[_0x185c72('0x4d')],'..',_0x185c72('0xd8')),_0x55f556=await fs['promises'][_0x185c72('0xd7')](_0x55a56e),_0x2af202=_0x55f556[_0x185c72('0xfb')](_0x94f00f=>_0x94f00f[_0x185c72('0x64')](/^chat_v/,''))['sort'](compareVersions)['reverse']();_0x442e96=_0x2af202[0x0],_0x596fb3=path[_0x185c72('0x108')](_0x55a56e,_0x185c72('0x4c')+_0x442e96);}}catch(_0x30c9ff){console[_0x185c72('0x60')](_0x185c72('0xe9'),_0x30c9ff);}return{'chatVersion':_0x442e96,'chatPath':_0x596fb3};}async function routes(_0x250a06){const _0x148f8a=_0x20bdfb;_0x250a06[_0x148f8a('0xb6')](ewinston[_0x148f8a('0xc1')]({'winstonInstance':logger,'meta':![],'statusLevels':!![],'msg':function(_0x571624,_0x533039){const _0xf94c8=_0x148f8a;return util[_0xf94c8('0x9d')](_0xf94c8('0xc3'),_0x571624[_0xf94c8('0xf7')],_0x571624[_0xf94c8('0x89')][_0xf94c8('0xfe')]?_0x571624[_0xf94c8('0x89')][_0xf94c8('0xfe')]:_0x571624[_0xf94c8('0xb1')][_0xf94c8('0x6e')]||_0x571624['ip'],_0x571624['url'],_0x533039[_0xf94c8('0xef')],_0x533039['responseTime'],_0x571624[_0xf94c8('0x1a')]?_0x571624['user']['id']:null,_0x571624[_0xf94c8('0x1a')]?_0x571624[_0xf94c8('0x1a')]['name']:null,_0x571624[_0xf94c8('0x1a')]?_0x571624[_0xf94c8('0x1a')][_0xf94c8('0x82')]:null);}})),_0x250a06[_0x148f8a('0xb6')](ewinston[_0x148f8a('0xc1')]({'winstonInstance':authLogger,'meta':![],'statusLevels':!![],'msg':function(_0x26fcd8,_0x327894){const _0x3f66fe=_0x148f8a;let _0x5eb8b3='%s\x20%s\x20%s\x20%s\x20%sms\x20id=%s\x20name=%s\x20role=%s\x20device=%s';return _0x26fcd8[_0x3f66fe('0x138')]&&_0x26fcd8['body'][_0x3f66fe('0xd6')]&&_0x26fcd8[_0x3f66fe('0x138')]['agent_id']&&(_0x5eb8b3=_0x3f66fe('0x34')),util[_0x3f66fe('0x9d')](_0x5eb8b3,_0x26fcd8['method'],_0x26fcd8[_0x3f66fe('0x89')]['x-forwarded-for']?_0x26fcd8['headers'][_0x3f66fe('0xfe')]:_0x26fcd8['connection'][_0x3f66fe('0x6e')]||_0x26fcd8['ip'],_0x26fcd8[_0x3f66fe('0xde')],_0x327894['statusCode'],_0x327894['responseTime'],_0x26fcd8[_0x3f66fe('0x1a')]?_0x26fcd8[_0x3f66fe('0x1a')]['id']:null,_0x26fcd8[_0x3f66fe('0x1a')]?_0x26fcd8['user'][_0x3f66fe('0x45')]:null,_0x26fcd8[_0x3f66fe('0x1a')]?_0x26fcd8[_0x3f66fe('0x1a')][_0x3f66fe('0x82')]:null,_0x26fcd8[_0x3f66fe('0x138')]&&_0x26fcd8[_0x3f66fe('0x138')][_0x3f66fe('0xd6')]?_0x26fcd8[_0x3f66fe('0x138')][_0x3f66fe('0xd6')]:_0x3f66fe('0x3d'),_0x26fcd8[_0x3f66fe('0x138')]&&_0x26fcd8[_0x3f66fe('0x138')][_0x3f66fe('0x10')]?_0x26fcd8['body'][_0x3f66fe('0x10')]:'',_0x26fcd8[_0x3f66fe('0x138')]&&_0x26fcd8[_0x3f66fe('0x138')][_0x3f66fe('0x144')]?_0x26fcd8[_0x3f66fe('0x138')]['agent_name']:'');},'ignoreRoute':function(_0x1c59a7){const _0x479cbf=_0x148f8a,_0x5cf637=/\/api\/users\/[0-9]+\/(login|logout)/gi;return!_0x5cf637[_0x479cbf('0xca')](_0x1c59a7[_0x479cbf('0xde')]);}})),_0x250a06['use'](_0x148f8a('0xff'),require(_0x148f8a('0xac'))),_0x250a06['use'](_0x148f8a('0x11c'),require('./api/voiceChanSpy')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x8b'),require(_0x148f8a('0xf4'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x66'),require('./api/voiceExtension')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x110'),require(_0x148f8a('0x120'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x122'),require(_0x148f8a('0x68'))),_0x250a06['use'](_0x148f8a('0x31'),require(_0x148f8a('0x13c'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xa'),require(_0x148f8a('0x2d'))),_0x250a06['use']('/api/voice/mails',require(_0x148f8a('0x63'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xf5'),require('./api/voiceMailMessage')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x96'),require(_0x148f8a('0x56'))),_0x250a06['use'](_0x148f8a('0x5e'),require(_0x148f8a('0x97'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x16'),require('./api/voiceAgentReport')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x11a'),require('./api/voiceQueueReport')),_0x250a06['use'](_0x148f8a('0x11f'),require(_0x148f8a('0x143'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xbd'),require(_0x148f8a('0xd1'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x74'),require(_0x148f8a('0x72'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x36'),require(_0x148f8a('0x7b'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x129'),require(_0x148f8a('0x11'))),_0x250a06[_0x148f8a('0xb6')]('/api/mail/queues',require(_0x148f8a('0x4a'))),_0x250a06['use'](_0x148f8a('0x5'),require('./api/mailSubstatus')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x7'),require('./api/mailInteraction')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xdc'),require(_0x148f8a('0x135'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x8d'),require(_0x148f8a('0xa4'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x8c'),require(_0x148f8a('0xf1'))),_0x250a06['use'](_0x148f8a('0x10e'),require(_0x148f8a('0xc'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x26'),require(_0x148f8a('0xe'))),_0x250a06['use'](_0x148f8a('0x127'),require(_0x148f8a('0x12'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x7a'),require(_0x148f8a('0x121'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x80'),require(_0x148f8a('0x65'))),_0x250a06['use'](_0x148f8a('0x107'),require(_0x148f8a('0x109'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x71'),require('./api/faxQueue')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x2b'),require(_0x148f8a('0xa8'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x8e'),require(_0x148f8a('0xe2'))),_0x250a06['use'](_0x148f8a('0x13d'),require(_0x148f8a('0x76'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x30'),require(_0x148f8a('0x61'))),_0x250a06['use']('/api/sms/messages',require('./api/smsMessage')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xd2'),require(_0x148f8a('0x118'))),_0x250a06[_0x148f8a('0xb6')]('/api/openchannel/accounts',require(_0x148f8a('0xf9'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x83'),require(_0x148f8a('0x73'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x123'),require(_0x148f8a('0x100'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x126'),require(_0x148f8a('0xc4'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x22'),require('./api/openchannelQueue')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xaa'),require('./api/chatWebsite')),_0x250a06[_0x148f8a('0xb6')]('/api/openchannel/reports/queue',require(_0x148f8a('0x69'))),_0x250a06[_0x148f8a('0xb6')]('/api/chat/applications',require(_0x148f8a('0xdf'))),_0x250a06[_0x148f8a('0xb6')]('/api/chat/interactions',require(_0x148f8a('0x10c'))),_0x250a06['use'](_0x148f8a('0x19'),require(_0x148f8a('0x10b'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x3b'),require(_0x148f8a('0xe1'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x13b'),require('./api/chatQueue')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xa5'),require(_0x148f8a('0xc6'))),_0x250a06[_0x148f8a('0xb6')]('/api/chat/proactive_actions',require(_0x148f8a('0xfd'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x137'),require(_0x148f8a('0x2c'))),_0x250a06['use'](_0x148f8a('0x114'),require('./api/cmContact')),_0x250a06['use'](_0x148f8a('0x101'),require('./api/cmHopper')),_0x250a06['use'](_0x148f8a('0xcc'),require(_0x148f8a('0xd5'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x104'),require('./api/cmHopperFinal')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x6b'),require(_0x148f8a('0x20'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xb4'),require(_0x148f8a('0xf8'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xec'),require(_0x148f8a('0x103'))),_0x250a06[_0x148f8a('0xb6')]('/api/automations',require(_0x148f8a('0x29'))),_0x250a06[_0x148f8a('0xb6')]('/api/canned_answers',require(_0x148f8a('0x98'))),_0x250a06[_0x148f8a('0xb6')]('/api/dispositions',require(_0x148f8a('0xb7'))),_0x250a06['use'](_0x148f8a('0x5c'),require(_0x148f8a('0x17'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x2e'),require(_0x148f8a('0x86'))),_0x250a06[_0x148f8a('0xb6')]('/api/pauses',require(_0x148f8a('0x5b'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xc5'),require('./api/cdr')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x32'),require(_0x148f8a('0xd9'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x11e'),require('./api/schedule')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xd0'),require(_0x148f8a('0x102'))),_0x250a06['use'](_0x148f8a('0xc9'),require(_0x148f8a('0x6f'))),_0x250a06['use'](_0x148f8a('0x105'),require(_0x148f8a('0x25'))),_0x250a06[_0x148f8a('0xb6')]('/api/triggers',require(_0x148f8a('0x93'))),_0x250a06['use'](_0x148f8a('0x28'),require(_0x148f8a('0xa1'))),_0x250a06['use'](_0x148f8a('0x4b'),require(_0x148f8a('0x33'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x113'),require(_0x148f8a('0x111'))),_0x250a06[_0x148f8a('0xb6')]('/api/analytics/custom_reports',require(_0x148f8a('0x94'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x44'),require('./api/analyticDefaultReport')),_0x250a06[_0x148f8a('0xb6')]('/api/analytics/extracted_reports',require(_0x148f8a('0x117'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x51'),require(_0x148f8a('0x49'))),_0x250a06['use']('/api/analytics/field_reports',require(_0x148f8a('0x130'))),_0x250a06[_0x148f8a('0xb6')]('/api/analytics/tree_reports',require('./api/analyticTreeReport')),_0x250a06[_0x148f8a('0xb6')]('/api/integrations/salesforce/accounts',require('./api/intSalesforceAccount')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x87'),require(_0x148f8a('0x81'))),_0x250a06['use'](_0x148f8a('0xfc'),require(_0x148f8a('0xe3'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x125'),require(_0x148f8a('0xee'))),_0x250a06['use'](_0x148f8a('0xbb'),require(_0x148f8a('0x84'))),_0x250a06[_0x148f8a('0xb6')]('/api/integrations/sugarcrm/fields',require(_0x148f8a('0x2a'))),_0x250a06['use'](_0x148f8a('0xdd'),require(_0x148f8a('0xc2'))),_0x250a06[_0x148f8a('0xb6')]('/api/integrations/desk/configurations',require('./api/intDeskConfiguration')),_0x250a06['use'](_0x148f8a('0x4'),require(_0x148f8a('0xd3'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x133'),require(_0x148f8a('0xad'))),_0x250a06[_0x148f8a('0xb6')]('/api/integrations/zoho/configurations',require(_0x148f8a('0x39'))),_0x250a06['use'](_0x148f8a('0x13a'),require(_0x148f8a('0x37'))),_0x250a06['use']('/api/integrations/zendesk/accounts',require(_0x148f8a('0x134'))),_0x250a06['use'](_0x148f8a('0x67'),require(_0x148f8a('0x0'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xae'),require(_0x148f8a('0xab'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xc7'),require('./api/intFreshdeskAccount')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xa3'),require(_0x148f8a('0x141'))),_0x250a06['use']('/api/integrations/freshdesk/fields',require(_0x148f8a('0x6d'))),_0x250a06[_0x148f8a('0xb6')]('/api/integrations/vtiger/accounts',require('./api/intVtigerAccount')),_0x250a06['use']('/api/integrations/vtiger/configurations',require('./api/intVtigerConfiguration')),_0x250a06['use']('/api/integrations/vtiger/fields',require(_0x148f8a('0x8f'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xb9'),require(_0x148f8a('0x85'))),_0x250a06[_0x148f8a('0xb6')]('/api/integrations/servicenow/configurations',require(_0x148f8a('0x139'))),_0x250a06['use']('/api/integrations/servicenow/fields',require(_0x148f8a('0xf2'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x50'),require(_0x148f8a('0x3f'))),_0x250a06['use'](_0x148f8a('0x95'),require(_0x148f8a('0x140'))),_0x250a06['use'](_0x148f8a('0x1d'),require(_0x148f8a('0x9e'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x57'),require(_0x148f8a('0x3a'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x79'),require(_0x148f8a('0x48'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xf6'),require(_0x148f8a('0xc0'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x1e'),require(_0x148f8a('0x14'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x7c'),require(_0x148f8a('0x3'))),_0x250a06['use'](_0x148f8a('0x7f'),require(_0x148f8a('0xb0'))),_0x250a06['use'](_0x148f8a('0x38'),require('./api/jscriptyAnswerReport')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x5a'),require(_0x148f8a('0xe8'))),_0x250a06[_0x148f8a('0xb6')]('/api/jscripty/sessions/reports',require(_0x148f8a('0x90'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x115'),require(_0x148f8a('0x8a'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x59'),require(_0x148f8a('0x9f'))),_0x250a06[_0x148f8a('0xb6')]('/api/square/details/reports',require('./api/squareReportDetail')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x9a'),require(_0x148f8a('0xe5'))),_0x250a06[_0x148f8a('0xb6')]('/api/settings',require(_0x148f8a('0xce'))),_0x250a06[_0x148f8a('0xb6')]('/api/square/odbc',require(_0x148f8a('0x5f'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x13e'),require(_0x148f8a('0x1f'))),_0x250a06['use']('/api/square/recordings',require(_0x148f8a('0x3c'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x11d'),require(_0x148f8a('0x4f'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x13f'),require(_0x148f8a('0x12b'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xf0'),require(_0x148f8a('0xbf'))),_0x250a06['use'](_0x148f8a('0xd4'),require(_0x148f8a('0x77'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x7d'),require(_0x148f8a('0x23'))),_0x250a06[_0x148f8a('0xb6')]('/api/attachments',require(_0x148f8a('0x18'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x24'),require('./api/plugin')),_0x250a06[_0x148f8a('0xb6')]('/api/mail/reports/transfer',require('./api/mailTransferReport')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x55'),require(_0x148f8a('0x10a'))),_0x250a06[_0x148f8a('0xb6')]('/api/fax/reports/transfer',require(_0x148f8a('0x58'))),_0x250a06['use'](_0x148f8a('0x136'),require(_0x148f8a('0x12e'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x9'),require(_0x148f8a('0x131'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x12a'),require(_0x148f8a('0x11b'))),_0x250a06['use'](_0x148f8a('0xc8'),require('./api/voicePrefix')),_0x250a06['use'](_0x148f8a('0x21'),require(_0x148f8a('0xa9'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x92'),require('./api/userProfileSection')),_0x250a06['use'](_0x148f8a('0x15'),require(_0x148f8a('0x2'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xdb'),require(_0x148f8a('0xf'))),_0x250a06['use'](_0x148f8a('0xb'),require(_0x148f8a('0x119'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xbe'),require(_0x148f8a('0xa6'))),_0x250a06['use'](_0x148f8a('0xe6'),require(_0x148f8a('0x9c'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x128'),require(_0x148f8a('0xba'))),_0x250a06[_0x148f8a('0xb6')]('/api/whatsapp/reports/queue',require(_0x148f8a('0xb5'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xf3'),require(_0x148f8a('0x5d'))),_0x250a06['use'](_0x148f8a('0x43'),require(_0x148f8a('0x6c'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xe4'),require('./api/cloudProvider')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xcf'),require('./api/authLocal')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x112'),require(_0x148f8a('0x6'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x62'),require(_0x148f8a('0x132'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xb3'),require('./api/rpc')),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x1c'),require(_0x148f8a('0x106'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x99'),require(_0x148f8a('0x42'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xcb'),require(_0x148f8a('0xbc'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0x1'),require(_0x148f8a('0xcd'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xb8'),express[_0x148f8a('0xe7')](path[_0x148f8a('0x12c')](config[_0x148f8a('0x4d')],'..',_0x148f8a('0x47')))),_0x250a06['use'](_0x148f8a('0x46'),express[_0x148f8a('0xe7')](path[_0x148f8a('0x12c')](config[_0x148f8a('0x4d')],'..','www'))),_0x250a06[_0x148f8a('0xb6')](_0x148f8a('0xa7'),express[_0x148f8a('0xe7')](path[_0x148f8a('0x12c')](config[_0x148f8a('0x4d')],'..','demo'))),_0x250a06[_0x148f8a('0xb6')]('/plugins',express[_0x148f8a('0xe7')](path['resolve'](config['root'],_0x148f8a('0x8'))));const {chatPath:_0x1b9c9b,chatVersion:_0x52c3a8}=await getInstalledChatVersion(),_0x2b1c33=getConfigService();!(_0x2b1c33[_0x148f8a('0x10f')]||_0x2b1c33['isTest'])&&console[_0x148f8a('0xfa')](_0x148f8a('0x1b'),_0x1b9c9b,_0x52c3a8),_0x1b9c9b&&_0x52c3a8&&(_0x250a06[_0x148f8a('0xb2')](_0x148f8a('0x70'),_0x52c3a8),_0x250a06['use'](_0x148f8a('0x27'),express[_0x148f8a('0xe7')](_0x1b9c9b))),_0x250a06[_0x148f8a('0x9b')](_0x148f8a('0x35'))[_0x148f8a('0x124')](errors[0x194]),_0x250a06[_0x148f8a('0x124')]('*',function(_0x208417,_0x1f9955){const _0x80bd40=_0x148f8a;_0x1f9955[_0x80bd40('0x10d')](path[_0x80bd40('0x12c')](_0x250a06[_0x80bd40('0x124')](_0x80bd40('0x78'))+_0x80bd40('0x4e')));});}exports[_0x20bdfb('0x75')]=routes; \ No newline at end of file diff --git a/server/rpc/index.js b/server/rpc/index.js index efa6801..b7be935 100644 --- a/server/rpc/index.js +++ b/server/rpc/index.js @@ -1 +1 @@ -const a1024_0x22e3=['../api/interval/interval.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','localhost','../api/trigger/trigger.rpc','../api/voiceExtension/voiceExtension.rpc','../api/cmHopper/cmHopper.rpc','rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','merge','jayson/promise','../api/whatsappAccount/whatsappAccount.rpc','../api/chatQueueReport/chatQueueReport.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','../api/intZohoAccount/intZohoAccount.rpc','Express\x20RPC\x20server\x20closed','../api/voiceCallReport/voiceCallReport.rpc','../api/faxAccount/faxAccount.rpc','../api/mailInteraction/mailInteraction.rpc','../api/cmContact/cmContact.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','host','../api/smsMessage/smsMessage.rpc','../api/squareRecording/squareRecording.rpc','../api/faxMessage/faxMessage.rpc','../api/voiceQueue/voiceQueue.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','../api/smsInteraction/smsInteraction.rpc','../api/user/user.rpc','../api/smsAccount/smsAccount.rpc','lodash','../api/openchannelMessage/openchannelMessage.rpc','close','../api/mailServerIn/mailServerIn.rpc','listen','../api/openchannelQueue/openchannelQueue.rpc','../api/sound/sound.rpc','../api/whatsappMessage/whatsappMessage.rpc','../api/mailQueue/mailQueue.rpc','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/intDeskAccount/intDeskAccount.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/chatMessage/chatMessage.rpc','../api/smsQueue/smsQueue.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','log','../api/mailApplication/mailApplication.rpc','../api/squareMessage/squareMessage.rpc','../api/chatInteraction/chatInteraction.rpc','../api/whatsappInteraction/whatsappInteraction.rpc','../api/squareReport/squareReport.rpc','exports','../api/cmHopperFinal/cmHopperFinal.rpc','../api/trunk/trunk.rpc','../api/squareProject/squareProject.rpc','server','../api/attachment/attachment.rpc','../config/triggers','../api/mailAccount/mailAccount.rpc','../api/template/template.rpc','error','../api/voiceRecording/voiceRecording.rpc','../api/intServicenowAccount/intServicenowAccount.rpc','../api/variable/variable.rpc','../api/faxQueueReport/faxQueueReport.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','port','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','../api/mailMessage/mailMessage.rpc','../api/campaign/campaign.rpc','function','../api/voiceDialReport/voiceDialReport.rpc','../api/squareOdbc/squareOdbc.rpc','../api/plugin/plugin.rpc','default','../api/voiceAgentReport/voiceAgentReport.rpc','../api/faxQueue/faxQueue.rpc','../api/faxInteraction/faxInteraction.rpc'];(function(_0x11d0e4,_0x22e395){const _0x3ebe2b=function(_0x19fdc8){while(--_0x19fdc8){_0x11d0e4['push'](_0x11d0e4['shift']());}};_0x3ebe2b(++_0x22e395);}(a1024_0x22e3,0x136));const a1024_0x3ebe=function(_0x11d0e4,_0x22e395){_0x11d0e4=_0x11d0e4-0x0;let _0x3ebe2b=a1024_0x22e3[_0x11d0e4];return _0x3ebe2b;};const _0x56d184=a1024_0x3ebe;'use strict';const jayson=require(_0x56d184('0x7')),_=require(_0x56d184('0x1b')),config=require('../config/environment');function init(){const _0x29291d=_0x56d184;let _0x19fdc8={};return _0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x19'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x2'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x16'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x3a'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0xd'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x44'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x48'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x17'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/memberReport/memberReport.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x32'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0xa'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x3e'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x1e'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x37'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x23'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0xf'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x41'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x2b'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/mailQueueReport/mailQueueReport.rpc')),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0xe'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/faxApplication/faxApplication.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x4a'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x15'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x49'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x3d'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x1a'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x18'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x13'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x28'))),_0x19fdc8=_['merge'](_0x19fdc8,require('../api/openchannelApplication/openchannelApplication.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x26'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x1c'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x20'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x4c'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x2d'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x27'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/chatQueue/chatQueue.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x10'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x3'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/cmHopperBlack/cmHopperBlack.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x31'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/cmHopperHistory/cmHopperHistory.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/reportAgentPreview/reportAgentPreview.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x4b'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/pause/pause.rpc')),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x21'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x38'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x1'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x3c'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/intSalesforceAccount/intSalesforceAccount.rpc')),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x5'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x25'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0xb'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x11'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x24'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x29'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x3b'))),_0x19fdc8=_['merge'](_0x19fdc8,require('../api/intDynamics365Account/intDynamics365Account.rpc')),_0x19fdc8=_['merge'](_0x19fdc8,require('../api/intFreshsalesAccount/intFreshsalesAccount.rpc')),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x9'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/smsQueueReport/smsQueueReport.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x2f'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/squareReportDetail/squareReportDetail.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x45'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x33'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x14'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x2c'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x42'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x35'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x46'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x8'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require(_0x29291d('0x2e'))),_0x19fdc8=_['merge'](_0x19fdc8,require(_0x29291d('0x22'))),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/whatsappQueueReport/whatsappQueueReport.rpc')),_0x19fdc8=_[_0x29291d('0x6')](_0x19fdc8,require('../api/whatsappQueue/whatsappQueue.rpc')),_0x19fdc8;}class RPC{constructor(_0x5ad5e7){const _0x34b159=_0x56d184;this[_0x34b159('0x3f')]=config[_0x34b159('0x4')][_0x34b159('0x3f')]||config[_0x34b159('0x3f')]+0x1,this[_0x34b159('0x12')]=config['rpc']['ip']||_0x34b159('0x0');const _0x23cf0a=init();this[_0x34b159('0x34')]=jayson[_0x34b159('0x34')](_0x23cf0a)['http'](),typeof _0x5ad5e7===_0x34b159('0x43')&&this[_0x34b159('0x34')]['on'](_0x34b159('0x39'),_0x5ad5e7);}[_0x56d184('0x1f')](){const {port:_0x4bfe5a,host:_0x210f47}=this;return new Promise(_0x52feda=>{const _0x5613ea=a1024_0x3ebe;this[_0x5613ea('0x34')][_0x5613ea('0x1f')](_0x4bfe5a,_0x210f47,function(){const _0x455c79=_0x5613ea;console[_0x455c79('0x2a')](_0x455c79('0x40'),_0x210f47,_0x4bfe5a),require(_0x455c79('0x36'))[_0x455c79('0x47')](),_0x52feda('RPC\x20listening\x20on\x20'+_0x210f47+':'+_0x4bfe5a);});});}[_0x56d184('0x1d')](){return new Promise(_0x441851=>{const _0x199fa3=a1024_0x3ebe;this['server'][_0x199fa3('0x1d')](()=>{const _0x2259fb=_0x199fa3;console[_0x2259fb('0x2a')](_0x2259fb('0xc')),_0x441851();});});}}module[_0x56d184('0x30')]={'RPC':RPC}; \ No newline at end of file +const a1025_0x3af6=['../api/squareOdbc/squareOdbc.rpc','../api/userVoiceQueueRt/userVoiceQueueRt.rpc','../api/faxQueueReport/faxQueueReport.rpc','port','error','../api/chatQueueReport/chatQueueReport.rpc','../api/faxMessage/faxMessage.rpc','../api/reportAgentPreview/reportAgentPreview.rpc','../api/voiceCallReport/voiceCallReport.rpc','close','../api/openchannelApplication/openchannelApplication.rpc','../api/faxQueue/faxQueue.rpc','../api/squareReportDetail/squareReportDetail.rpc','function','../api/squareProject/squareProject.rpc','../api/intVtigerAccount/intVtigerAccount.rpc','../api/intZendeskAccount/intZendeskAccount.rpc','../api/cmHopperHistory/cmHopperHistory.rpc','../api/intSugarcrmAccount/intSugarcrmAccount.rpc','../api/trunk/trunk.rpc','../api/trigger/trigger.rpc','../api/openchannelQueueReport/openchannelQueueReport.rpc','../api/mailAccount/mailAccount.rpc','../api/voiceQueue/voiceQueue.rpc','../api/faxApplication/faxApplication.rpc','../api/cmHopperBlack/cmHopperBlack.rpc','../api/whatsappMessage/whatsappMessage.rpc','../api/cmHopperFinal/cmHopperFinal.rpc','../api/voiceAgentReport/voiceAgentReport.rpc','log','../api/attachment/attachment.rpc','../api/openchannelInteraction/openchannelInteraction.rpc','../api/squareReport/squareReport.rpc','../api/smsMessage/smsMessage.rpc','../api/mailInteraction/mailInteraction.rpc','../api/voiceExtension/voiceExtension.rpc','../api/user/user.rpc','../api/voiceQueueReport/voiceQueueReport.rpc','../api/voiceRecording/voiceRecording.rpc','../api/smsQueueReport/smsQueueReport.rpc','../api/voiceTransferReport/voiceTransferReport.rpc','Express\x20RPC\x20server\x20closed','../api/intSalesforceAccount/intSalesforceAccount.rpc','../api/smsInteraction/smsInteraction.rpc','../api/whatsappAccount/whatsappAccount.rpc','../api/variable/variable.rpc','http','../api/chatMessage/chatMessage.rpc','../api/pause/pause.rpc','../api/campaign/campaign.rpc','../api/template/template.rpc','../api/memberReport/memberReport.rpc','../api/squareRecording/squareRecording.rpc','default','rpc','server','../api/cmContact/cmContact.rpc','../config/triggers','../api/intFreshdeskAccount/intFreshdeskAccount.rpc','../api/cmHopper/cmHopper.rpc','../api/whatsappQueueReport/whatsappQueueReport.rpc','../api/chatInteraction/chatInteraction.rpc','../api/intFreshsalesAccount/intFreshsalesAccount.rpc','Express\x20RPC\x20server\x20listening\x20on\x20%s:%d!','listen','../api/sound/sound.rpc','../api/voiceDialReport/voiceDialReport.rpc','../api/whatsappInteraction/whatsappInteraction.rpc','../api/intDeskAccount/intDeskAccount.rpc','merge','../api/mailQueue/mailQueue.rpc','../api/mailApplication/mailApplication.rpc','../api/intZohoAccount/intZohoAccount.rpc'];(function(_0x3656a9,_0x3af604){const _0x41348a=function(_0x4126c6){while(--_0x4126c6){_0x3656a9['push'](_0x3656a9['shift']());}};_0x41348a(++_0x3af604);}(a1025_0x3af6,0x14b));const a1025_0x4134=function(_0x3656a9,_0x3af604){_0x3656a9=_0x3656a9-0x0;let _0x41348a=a1025_0x3af6[_0x3656a9];return _0x41348a;};const _0x385711=a1025_0x4134;'use strict';const jayson=require('jayson/promise'),_=require('lodash'),config=require('../config/environment');function init(){const _0x205b1b=a1025_0x4134;let _0x4126c6={};return _0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x46'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x45'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x39'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x48'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x2a'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x1b'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x3e'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x47'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0xc'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x35'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x1'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x23'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/mailServerIn/mailServerIn.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x38'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x1f'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x44'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/mailMessage/mailMessage.rpc')),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x20'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/mailQueueReport/mailQueueReport.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/faxAccount/faxAccount.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x3a'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/faxInteraction/faxInteraction.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x28'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x2d'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x24'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/smsAccount/smsAccount.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x4'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x43'))),_0x4126c6=_['merge'](_0x4126c6,require('../api/smsQueue/smsQueue.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x2c'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x41'))),_0x4126c6=_['merge'](_0x4126c6,require('../api/openchannelMessage/openchannelMessage.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/openchannelQueue/openchannelQueue.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x37'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x16'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x8'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/chatQueue/chatQueue.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x11'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x14'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x3b'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x3d'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x33'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x29'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/interval/interval.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x9'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x1a'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0xb'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x36'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x6'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x3'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x34'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x1d'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x21'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x32'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x13'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x31'))),_0x4126c6=_['merge'](_0x4126c6,require('../api/intServicenowAccount/intServicenowAccount.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/intDynamics365Account/intDynamics365Account.rpc')),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x17'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x27'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x0'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x42'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x2e'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x22'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x30'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0xd'))),_0x4126c6=_['merge'](_0x4126c6,require('../api/squareMessage/squareMessage.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0xa'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x40'))),_0x4126c6=_['merge'](_0x4126c6,require('../api/plugin/plugin.rpc')),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x5'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x1c'))),_0x4126c6=_['merge'](_0x4126c6,require(_0x205b1b('0x3c'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require(_0x205b1b('0x15'))),_0x4126c6=_[_0x205b1b('0x1e')](_0x4126c6,require('../api/whatsappQueue/whatsappQueue.rpc')),_0x4126c6;}class RPC{constructor(_0x4ee21b){const _0x2b0a4f=a1025_0x4134;this['port']=config['rpc'][_0x2b0a4f('0x25')]||config[_0x2b0a4f('0x25')]+0x1,this['host']=config[_0x2b0a4f('0xf')]['ip']||'localhost';const _0x561061=init();this[_0x2b0a4f('0x10')]=jayson['server'](_0x561061)[_0x2b0a4f('0x7')](),typeof _0x4ee21b===_0x2b0a4f('0x2f')&&this[_0x2b0a4f('0x10')]['on'](_0x2b0a4f('0x26'),_0x4ee21b);}['listen'](){const {port:_0x5d9fe1,host:_0x270987}=this;return new Promise(_0x19eec4=>{const _0x3c5054=a1025_0x4134;this[_0x3c5054('0x10')][_0x3c5054('0x19')](_0x5d9fe1,_0x270987,function(){const _0x1d9f14=_0x3c5054;console[_0x1d9f14('0x3f')](_0x1d9f14('0x18'),_0x270987,_0x5d9fe1),require(_0x1d9f14('0x12'))[_0x1d9f14('0xe')](),_0x19eec4('RPC\x20listening\x20on\x20'+_0x270987+':'+_0x5d9fe1);});});}[_0x385711('0x2b')](){return new Promise(_0x3781a5=>{const _0x17d450=a1025_0x4134;this[_0x17d450('0x10')][_0x17d450('0x2b')](()=>{const _0x4a59b3=_0x17d450;console[_0x4a59b3('0x3f')](_0x4a59b3('0x2')),_0x3781a5();});});}}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 af2d6d4..b92cd8f 100644 --- a/server/services/agi/channel.js +++ b/server/services/agi/channel.js @@ -1 +1 @@ -const a1025_0x42e5=['SET\x20CONTEXT\x20%s','events','prototype','exec','emit','exports','util','noop','inherits','match','WAIT','setPriority','sayDigits','indexOf','SET\x20VARIABLE\x20%s\x20\x22%s\x22','wav','toString','extension','substr','close','E_AGI_SOCKET_TIMEOUT','sync','code','replace','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','destroy','NO\x20MESSAGE','streamFile','agi','ready','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','utf8','E_AGI_SOCKET_ERROR','length','./error','sendRequest','answer','E_AGI_SOCKET_CLOSE','setVariable','label','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','pipe','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','sayPhonetic','beep','lodash','RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s','AGI','SET\x20PRIORITY\x20%s','command','join','result=','format','520\x20End\x20of\x20proper','./reply','error','isBoolean','timeout','HANGUP','setExtension','GOTO\x20%s\x20%s\x20%s','function','wait','SAY\x20DIGITS\x20%s\x20%s','getData','hangup','520-Invalid','startsWith','search','recordFile','SET\x20EXTENSION\x20%s','setContext','sayNumber','BEEP','substring'];(function(_0x4456ce,_0x42e524){const _0x4b4f8a=function(_0x433bb4){while(--_0x433bb4){_0x4456ce['push'](_0x4456ce['shift']());}};_0x4b4f8a(++_0x42e524);}(a1025_0x42e5,0xd3));const a1025_0x4b4f=function(_0x4456ce,_0x42e524){_0x4456ce=_0x4456ce-0x0;let _0x4b4f8a=a1025_0x42e5[_0x4456ce];return _0x4b4f8a;};const _0x174be3=a1025_0x4b4f;'use strict';const util=require(_0x174be3('0x14')),_=require(_0x174be3('0x3b')),EventEmitter=require(_0x174be3('0xf'))['EventEmitter'],AGIReply=require(_0x174be3('0x44')),AGIError=require(_0x174be3('0x30'));function AGIChannel(_0x433bb4){const _0x27be2f=_0x174be3,_0xc0e010=this,_0x16d58b=new AGIReply();let _0x25131b=![],_0x52bc10={};EventEmitter['call'](_0xc0e010),_0x433bb4['setEncoding'](_0x27be2f('0x2d')),_0x433bb4['setTimeout'](0x8*0x3c*0x3c*0x3e8),_0x16d58b['setEncoding']('utf8'),_0x16d58b['on']('headers',function(_0x3f832e){const _0x384891=_0x27be2f;for(const _0x5958e9 in _0x3f832e){_0xc0e010[_0x5958e9]=_0x3f832e[_0x5958e9];}_0xc0e010[_0x384891('0x12')](_0x384891('0x2b'));}),_0x16d58b['on']('line',function(_0x4274c0){const _0x314c05=_0x27be2f;if(_0x4274c0['toLowerCase']()==_0x314c05('0x4')){_0xc0e010['emit']('hangup');return;}_0x4274c0[_0x314c05('0xd')](0x0,0xb)==_0x314c05('0x5')&&(_0x25131b=!![]);_0x25131b?(_0x52bc10['rx']+=_0x4274c0+'\x0a',_0x4274c0[_0x314c05('0x7')](_0x314c05('0x43'))!=-0x1&&(_0x25131b=![])):_0x52bc10['rx']=_0x4274c0;if(_0x25131b)return;if(typeof _0x52bc10['cb']==_0x314c05('0x0')){let _0x309124=_0x52bc10['rx']['substring'](0x0,0x3),_0x19d24c=null,_0x21708b=null;_0x309124=parseInt(_0x309124);if(isNaN(_0x309124)){_0x52bc10['cb'](null,{'code':0x1f4,'result':-0x1,'extra':'no\x20code'});return;}if(_0x309124!=0xc8){_0x52bc10['cb'](null,{'code':_0x309124,'result':-0x1,'extra':'KO'});return;}_0x19d24c=_0x52bc10['rx'][_0x314c05('0xd')](0x4)['replace'](_0x314c05('0x41'),'');_0x19d24c[_0x314c05('0x1b')]('\x20')!=-0x1&&(_0x19d24c=_0x19d24c[_0x314c05('0x20')](0x0,_0x19d24c[_0x314c05('0x1b')]('\x20')));_[_0x314c05('0x6')](_0x19d24c,'-1')&&(_0x19d24c=parseInt(_0x19d24c));_0x21708b=_0x52bc10['rx']['split']('\x20');if(_0x21708b[_0x314c05('0x2f')]==0x3)_0x21708b=_0x21708b[0x2]['substring'](0x1,_0x21708b[0x2][_0x314c05('0x2f')]-0x1);else{if(_0x21708b[_0x314c05('0x2f')]>0x3){const _0xc75b7f=/\((.+)\)/,_0x309aed=_0x52bc10['rx'][_0x314c05('0x17')](_0xc75b7f);_0x309aed?_0x21708b=_0x309aed[0x1]:_0x21708b=null;}else _0x21708b=null;}_0x52bc10['cb'](null,{'code':_0x309124,'result':_0x19d24c,'extra':_0x21708b});}}),_0x433bb4['on'](_0x27be2f('0x45'),function(_0x37f320){const _0x1f3725=_0x27be2f;_0xc0e010[_0x1f3725('0x12')](_0x1f3725('0x45'),new AGIError(_0x1f3725('0x2e'),_0x37f320[_0x1f3725('0x24')]));}),_0x433bb4['on'](_0x27be2f('0x21'),function(){const _0x26c138=_0x27be2f;_0xc0e010[_0x26c138('0x12')](_0x26c138('0x21'),new AGIError(_0x26c138('0x33')));}),_0x433bb4['on'](_0x27be2f('0x47'),function(){const _0x284702=_0x27be2f;_0xc0e010['emit'](_0x284702('0x47'),new AGIError(_0x284702('0x22'))),_0x433bb4[_0x284702('0x27')]();}),_0x433bb4[_0x27be2f('0x37')](_0x16d58b),(this[_0x27be2f('0x3f')]=function(_0x33de10,_0x5ec093){const _0x1d43c9=_0x27be2f;_0x33de10=_0x33de10||'',_0x5ec093=typeof _0x5ec093==_0x1d43c9('0x0')?_0x5ec093:new Function(),_0x52bc10={'tx':_0x33de10,'rx':'','cb':_0x5ec093},_0x433bb4['write'](_0x33de10+'\x0a');},this[_0x27be2f('0x21')]=function(){const _0x3825be=_0x27be2f;_0x433bb4[_0x3825be('0x27')]();});}util[_0x174be3('0x16')](AGIChannel,EventEmitter),AGIChannel[_0x174be3('0x10')]['sendRequest']=function(_0x350e0d){const _0x51efd9=_0x174be3;return this['command'][_0x51efd9('0x23')](this,_0x350e0d);},AGIChannel[_0x174be3('0x10')][_0x174be3('0x32')]=function(){const _0x14dbad=_0x174be3;return this[_0x14dbad('0x31')]('ANSWER');},AGIChannel[_0x174be3('0x10')][_0x174be3('0x3')]=function(_0x411dc2,_0x2fab57,_0x251612){const _0x56ea96=_0x174be3;return _0x411dc2=_0x411dc2===undefined?_0x56ea96('0x3a'):_0x411dc2,_0x2fab57=_0x2fab57===undefined?'5':_0x2fab57,_0x251612=_0x251612===undefined?'1':_0x251612,this[_0x56ea96('0x31')](util[_0x56ea96('0x42')](_0x56ea96('0x2c'),_0x411dc2,_0x2fab57*0x3e8,_0x251612));},AGIChannel[_0x174be3('0x10')][_0x174be3('0x15')]=function(_0x3fe3db){const _0xbb7d97=_0x174be3;return _0x3fe3db=_0x3fe3db||_0xbb7d97('0x28'),this[_0xbb7d97('0x31')](util[_0xbb7d97('0x42')]('VERBOSE\x20\x22%s\x22',_0x3fe3db));},AGIChannel[_0x174be3('0x10')]['exec']=function(_0x49c201,_0x1d0105){const _0x2c12c2=_0x174be3;if(_['isArray'](_0x1d0105))return this['sendRequest'](util['format']('EXEC\x20%s\x20%s',_0x49c201,_0x1d0105[_0x2c12c2('0x40')](',')));return this[_0x2c12c2('0x31')](util[_0x2c12c2('0x42')]('EXEC\x20%s\x20%s',_0x49c201,_0x1d0105));},AGIChannel['prototype'][_0x174be3('0xa')]=function(_0x488f00){const _0x3e000a=_0x174be3;return this[_0x3e000a('0x31')](util[_0x3e000a('0x42')](_0x3e000a('0xe'),_0x488f00));},AGIChannel[_0x174be3('0x10')][_0x174be3('0x49')]=function(_0x4b339c){const _0x5a4e1d=_0x174be3;return this[_0x5a4e1d('0x31')](util[_0x5a4e1d('0x42')](_0x5a4e1d('0x9'),_0x4b339c));},AGIChannel[_0x174be3('0x10')]['setPriority']=function(_0x357a34){const _0x5ee01a=_0x174be3;return this[_0x5ee01a('0x31')](util[_0x5ee01a('0x42')](_0x5ee01a('0x3e'),_0x357a34));},AGIChannel['prototype'][_0x174be3('0x4')]=function(){const _0x392c36=_0x174be3;return this[_0x392c36('0x31')](_0x392c36('0x48'));},AGIChannel[_0x174be3('0x10')][_0x174be3('0x34')]=function(_0x474556,_0x3041f1){const _0x268e0f=_0x174be3,_0x143913=_[_0x268e0f('0x46')](_0x3041f1)||_['isNumber'](_0x3041f1)?_0x3041f1['toString']():_0x3041f1;return this[_0x268e0f('0x31')](util['format'](_0x268e0f('0x1c'),_0x474556,_0x143913?_0x143913[_0x268e0f('0x1e')]()[_0x268e0f('0x25')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel[_0x174be3('0x10')][_0x174be3('0xb')]=function(_0x387647,_0xa20613){const _0x33c80a=_0x174be3;return this[_0x33c80a('0x31')](util[_0x33c80a('0x42')]('SAY\x20NUMBER\x20%s\x20%s',_0x387647,_0xa20613));},AGIChannel[_0x174be3('0x10')][_0x174be3('0x1a')]=function(_0x4752ae,_0x57c90e){const _0x3c1eed=_0x174be3;return this['sendRequest'](util[_0x3c1eed('0x42')](_0x3c1eed('0x2'),_0x4752ae,_0x57c90e));},AGIChannel[_0x174be3('0x10')][_0x174be3('0x39')]=function(_0x171404,_0x453184){const _0x4dfb84=_0x174be3;return this[_0x4dfb84('0x31')](util[_0x4dfb84('0x42')](_0x4dfb84('0x26'),_0x171404,_0x453184));},AGIChannel['prototype']['continueAt']=function(_0xb062d4,_0x29205b,_0x1e48b7){const _0x48101f=_0x174be3;return _0x29205b=_0x29205b||this[_0x48101f('0x1f')],_0x1e48b7=_0x1e48b7||0x1,this[_0x48101f('0xa')](_0xb062d4),this[_0x48101f('0x49')](_0x29205b),this[_0x48101f('0x19')](_0x1e48b7),this[_0x48101f('0x15')](util[_0x48101f('0x42')](_0x48101f('0x4a'),_0xb062d4,_0x29205b,_0x1e48b7));},AGIChannel['prototype']['getVariable']=function(_0x570344){const _0xadf599=_0x174be3;return this[_0xadf599('0x31')](util[_0xadf599('0x42')]('GET\x20VARIABLE\x20\x22%s\x22',_0x570344));},AGIChannel['prototype'][_0x174be3('0x8')]=function(_0x47ea7f,_0x12c9ce,_0x2a52a4,_0x4cc31c,_0x180b27,_0x1ba884){const _0x14900b=_0x174be3;return _0x12c9ce=_0x12c9ce||_0x14900b('0x1d'),_0x2a52a4=_0x2a52a4||'',_0x4cc31c=_0x4cc31c===undefined?-0x1:_0x4cc31c==='-1'?-0x1:_0x4cc31c*0x3e8,_0x180b27=_0x180b27===undefined?'':'s='+_0x180b27,_0x1ba884=_0x1ba884?_0x14900b('0xc'):'',this[_0x14900b('0x31')](util['format'](_0x14900b('0x3c'),_0x47ea7f,_0x12c9ce,_0x2a52a4,_0x4cc31c,_0x1ba884,_0x180b27));},AGIChannel[_0x174be3('0x10')][_0x174be3('0x29')]=function(_0x13e9d2,_0x15e3f8){const _0x8cc6c=_0x174be3;return _0x15e3f8=_0x15e3f8||'',this[_0x8cc6c('0x31')](util['format'](_0x8cc6c('0x38'),_0x13e9d2,_0x15e3f8));},AGIChannel[_0x174be3('0x10')][_0x174be3('0x2a')]=function(_0x3ba3a1){const _0x5d9cc4=_0x174be3;return this[_0x5d9cc4('0x11')](_0x5d9cc4('0x3d'),_0x3ba3a1);},AGIChannel['prototype'][_0x174be3('0x1')]=function(_0x5362fe){const _0x1f79e6=_0x174be3;return this[_0x1f79e6('0x11')](_0x1f79e6('0x18'),_0x5362fe);},AGIChannel[_0x174be3('0x10')]['error']=function(_0x2be93d,_0x4cbd9d){const _0x4f1b26=_0x174be3;return this[_0x4f1b26('0x15')](util[_0x4f1b26('0x42')](_0x4f1b26('0x36'),_0x2be93d['id'],_0x2be93d[_0x4f1b26('0x35')],_0x4cbd9d)),{'code':0x1f4,'result':'-1','extra':''};},module[_0x174be3('0x13')]=AGIChannel; \ No newline at end of file +const a1026_0x58ec=['hangup','sayPhonetic','E_AGI_SOCKET_TIMEOUT','sayDigits','exports','extension','inherits','520-Invalid','./reply','close','agi','emit','isNumber','function','NO\x20MESSAGE','toLowerCase','continueAt','./error','GET\x20VARIABLE\x20\x22%s\x22','startsWith','SET\x20CONTEXT\x20%s','sendRequest','SET\x20EXTENSION\x20%s','getVariable','EventEmitter','streamFile','label','BEEP','SAY\x20PHONETIC\x20\x22%s\x22\x20%s','setEncoding','no\x20code','setTimeout','WAIT','SAY\x20NUMBER\x20%s\x20%s','lodash','AGI','command','format','VERBOSE\x20\x22%s\x22','events','length','line','match','error','answer','520\x20End\x20of\x20proper','prototype','recordFile','code','sayNumber','substring','toString','GET\x20DATA\x20\x22%s\x22\x20%s\x20%s','setExtension','isBoolean','substr','SET\x20PRIORITY\x20%s','sync','pipe','replace','search','wav','ID:%s\x20-\x20LABEL:\x20%s\x20-\x20MSG:\x20%s','destroy','timeout','E_AGI_SOCKET_CLOSE','exec','GOTO\x20%s\x20%s\x20%s','EXEC\x20%s\x20%s','setPriority','call','util','getData','STREAM\x20FILE\x20\x22%s\x22\x20\x22%s\x22','SET\x20VARIABLE\x20%s\x20\x22%s\x22','utf8','setContext'];(function(_0x5807a2,_0x58ec8e){const _0x2794e9=function(_0x49243f){while(--_0x49243f){_0x5807a2['push'](_0x5807a2['shift']());}};_0x2794e9(++_0x58ec8e);}(a1026_0x58ec,0xfb));const a1026_0x2794=function(_0x5807a2,_0x58ec8e){_0x5807a2=_0x5807a2-0x0;let _0x2794e9=a1026_0x58ec[_0x5807a2];return _0x2794e9;};const _0x3e2f7a=a1026_0x2794;'use strict';const util=require(_0x3e2f7a('0x33')),_=require(_0x3e2f7a('0xe')),EventEmitter=require(_0x3e2f7a('0x13'))[_0x3e2f7a('0x4')],AGIReply=require(_0x3e2f7a('0x41')),AGIError=require(_0x3e2f7a('0x4a'));function AGIChannel(_0x49243f){const _0x4799c0=_0x3e2f7a,_0x4454f0=this,_0xa2ffb2=new AGIReply();let _0x501c90=![],_0x472200={};EventEmitter[_0x4799c0('0x32')](_0x4454f0),_0x49243f[_0x4799c0('0x9')](_0x4799c0('0x37')),_0x49243f[_0x4799c0('0xb')](0x8*0x3c*0x3c*0x3e8),_0xa2ffb2[_0x4799c0('0x9')](_0x4799c0('0x37')),_0xa2ffb2['on']('headers',function(_0x86559c){const _0xf5d0dc=_0x4799c0;for(const _0x1970ef in _0x86559c){_0x4454f0[_0x1970ef]=_0x86559c[_0x1970ef];}_0x4454f0[_0xf5d0dc('0x44')]('ready');}),_0xa2ffb2['on'](_0x4799c0('0x15'),function(_0x438b30){const _0x1ecda9=_0x4799c0;if(_0x438b30[_0x1ecda9('0x48')]()=='hangup'){_0x4454f0[_0x1ecda9('0x44')](_0x1ecda9('0x39'));return;}_0x438b30[_0x1ecda9('0x1e')](0x0,0xb)==_0x1ecda9('0x40')&&(_0x501c90=!![]);_0x501c90?(_0x472200['rx']+=_0x438b30+'\x0a',_0x438b30[_0x1ecda9('0x28')](_0x1ecda9('0x19'))!=-0x1&&(_0x501c90=![])):_0x472200['rx']=_0x438b30;if(_0x501c90)return;if(typeof _0x472200['cb']==_0x1ecda9('0x46')){let _0x5eb3e0=_0x472200['rx'][_0x1ecda9('0x1e')](0x0,0x3),_0x257933=null,_0x16ddbd=null;_0x5eb3e0=parseInt(_0x5eb3e0);if(isNaN(_0x5eb3e0)){_0x472200['cb'](null,{'code':0x1f4,'result':-0x1,'extra':_0x1ecda9('0xa')});return;}if(_0x5eb3e0!=0xc8){_0x472200['cb'](null,{'code':_0x5eb3e0,'result':-0x1,'extra':'KO'});return;}_0x257933=_0x472200['rx'][_0x1ecda9('0x1e')](0x4)['replace']('result=','');_0x257933['indexOf']('\x20')!=-0x1&&(_0x257933=_0x257933[_0x1ecda9('0x23')](0x0,_0x257933['indexOf']('\x20')));_[_0x1ecda9('0x4c')](_0x257933,'-1')&&(_0x257933=parseInt(_0x257933));_0x16ddbd=_0x472200['rx']['split']('\x20');if(_0x16ddbd['length']==0x3)_0x16ddbd=_0x16ddbd[0x2][_0x1ecda9('0x1e')](0x1,_0x16ddbd[0x2][_0x1ecda9('0x14')]-0x1);else{if(_0x16ddbd[_0x1ecda9('0x14')]>0x3){const _0x262bbd=/\((.+)\)/,_0x1654a2=_0x472200['rx'][_0x1ecda9('0x16')](_0x262bbd);_0x1654a2?_0x16ddbd=_0x1654a2[0x1]:_0x16ddbd=null;}else _0x16ddbd=null;}_0x472200['cb'](null,{'code':_0x5eb3e0,'result':_0x257933,'extra':_0x16ddbd});}}),_0x49243f['on'](_0x4799c0('0x17'),function(_0x586bcc){const _0x1fe1ff=_0x4799c0;_0x4454f0[_0x1fe1ff('0x44')](_0x1fe1ff('0x17'),new AGIError('E_AGI_SOCKET_ERROR',_0x586bcc[_0x1fe1ff('0x1c')]));}),_0x49243f['on'](_0x4799c0('0x42'),function(){const _0x208ae2=_0x4799c0;_0x4454f0['emit'](_0x208ae2('0x42'),new AGIError(_0x208ae2('0x2d')));}),_0x49243f['on'](_0x4799c0('0x2c'),function(){const _0x5f43c0=_0x4799c0;_0x4454f0[_0x5f43c0('0x44')](_0x5f43c0('0x2c'),new AGIError(_0x5f43c0('0x3b'))),_0x49243f[_0x5f43c0('0x2b')]();}),_0x49243f[_0x4799c0('0x26')](_0xa2ffb2),(this[_0x4799c0('0x10')]=function(_0x2edb60,_0x2f61fc){_0x2edb60=_0x2edb60||'',_0x2f61fc=typeof _0x2f61fc=='function'?_0x2f61fc:new Function(),_0x472200={'tx':_0x2edb60,'rx':'','cb':_0x2f61fc},_0x49243f['write'](_0x2edb60+'\x0a');},this[_0x4799c0('0x42')]=function(){const _0x34b637=_0x4799c0;_0x49243f[_0x34b637('0x2b')]();});}util[_0x3e2f7a('0x3f')](AGIChannel,EventEmitter),AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x1')]=function(_0x290611){const _0x325207=_0x3e2f7a;return this[_0x325207('0x10')][_0x325207('0x25')](this,_0x290611);},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x18')]=function(){return this['sendRequest']('ANSWER');},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x34')]=function(_0x303964,_0x2093ff,_0x3385bf){const _0x1ee03d=_0x3e2f7a;return _0x303964=_0x303964===undefined?'beep':_0x303964,_0x2093ff=_0x2093ff===undefined?'5':_0x2093ff,_0x3385bf=_0x3385bf===undefined?'1':_0x3385bf,this[_0x1ee03d('0x1')](util[_0x1ee03d('0x11')](_0x1ee03d('0x20'),_0x303964,_0x2093ff*0x3e8,_0x3385bf));},AGIChannel['prototype']['noop']=function(_0x146493){const _0x5e44dd=_0x3e2f7a;return _0x146493=_0x146493||_0x5e44dd('0x47'),this[_0x5e44dd('0x1')](util[_0x5e44dd('0x11')](_0x5e44dd('0x12'),_0x146493));},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x2e')]=function(_0x5c76a9,_0x17a1eb){const _0x58382a=_0x3e2f7a;if(_['isArray'](_0x17a1eb))return this[_0x58382a('0x1')](util[_0x58382a('0x11')](_0x58382a('0x30'),_0x5c76a9,_0x17a1eb['join'](',')));return this[_0x58382a('0x1')](util[_0x58382a('0x11')](_0x58382a('0x30'),_0x5c76a9,_0x17a1eb));},AGIChannel['prototype'][_0x3e2f7a('0x38')]=function(_0x3c2189){const _0x1ef328=_0x3e2f7a;return this[_0x1ef328('0x1')](util['format'](_0x1ef328('0x0'),_0x3c2189));},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x21')]=function(_0x2f2b25){const _0x42a015=_0x3e2f7a;return this[_0x42a015('0x1')](util[_0x42a015('0x11')](_0x42a015('0x2'),_0x2f2b25));},AGIChannel[_0x3e2f7a('0x1a')]['setPriority']=function(_0x327446){const _0x10d05f=_0x3e2f7a;return this[_0x10d05f('0x1')](util[_0x10d05f('0x11')](_0x10d05f('0x24'),_0x327446));},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x39')]=function(){const _0x5108dc=_0x3e2f7a;return this[_0x5108dc('0x1')]('HANGUP');},AGIChannel[_0x3e2f7a('0x1a')]['setVariable']=function(_0x57f2ab,_0x2b22b5){const _0x4e6595=_0x3e2f7a,_0x1e0d8e=_[_0x4e6595('0x22')](_0x2b22b5)||_[_0x4e6595('0x45')](_0x2b22b5)?_0x2b22b5[_0x4e6595('0x1f')]():_0x2b22b5;return this['sendRequest'](util[_0x4e6595('0x11')](_0x4e6595('0x36'),_0x57f2ab,_0x1e0d8e?_0x1e0d8e[_0x4e6595('0x1f')]()[_0x4e6595('0x27')](/(\r\n|\n|\r)/gm,'\x20'):''));},AGIChannel['prototype'][_0x3e2f7a('0x1d')]=function(_0x481a21,_0x4e83bc){const _0x1cf800=_0x3e2f7a;return this[_0x1cf800('0x1')](util[_0x1cf800('0x11')](_0x1cf800('0xd'),_0x481a21,_0x4e83bc));},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x3c')]=function(_0x4bc5d2,_0x3928bc){const _0xbfaea5=_0x3e2f7a;return this['sendRequest'](util[_0xbfaea5('0x11')]('SAY\x20DIGITS\x20%s\x20%s',_0x4bc5d2,_0x3928bc));},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x3a')]=function(_0x4c5915,_0x2ba140){const _0x2c39ba=_0x3e2f7a;return this[_0x2c39ba('0x1')](util[_0x2c39ba('0x11')](_0x2c39ba('0x8'),_0x4c5915,_0x2ba140));},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x49')]=function(_0x431b32,_0x149a0d,_0x81095){const _0x2fbdf2=_0x3e2f7a;return _0x149a0d=_0x149a0d||this[_0x2fbdf2('0x3e')],_0x81095=_0x81095||0x1,this[_0x2fbdf2('0x38')](_0x431b32),this['setExtension'](_0x149a0d),this[_0x2fbdf2('0x31')](_0x81095),this['noop'](util['format'](_0x2fbdf2('0x2f'),_0x431b32,_0x149a0d,_0x81095));},AGIChannel['prototype'][_0x3e2f7a('0x3')]=function(_0x29cb0b){const _0x1570f8=_0x3e2f7a;return this[_0x1570f8('0x1')](util['format'](_0x1570f8('0x4b'),_0x29cb0b));},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x1b')]=function(_0x5c24b3,_0x1a324e,_0x5e4281,_0x264f0c,_0x58cf26,_0x225f0f){const _0x23176f=_0x3e2f7a;return _0x1a324e=_0x1a324e||_0x23176f('0x29'),_0x5e4281=_0x5e4281||'',_0x264f0c=_0x264f0c===undefined?-0x1:_0x264f0c==='-1'?-0x1:_0x264f0c*0x3e8,_0x58cf26=_0x58cf26===undefined?'':'s='+_0x58cf26,_0x225f0f=_0x225f0f?_0x23176f('0x7'):'',this[_0x23176f('0x1')](util[_0x23176f('0x11')]('RECORD\x20FILE\x20\x22%s\x22\x20\x22%s\x22\x20\x22%s\x22\x20%s\x20%s\x20%s',_0x5c24b3,_0x1a324e,_0x5e4281,_0x264f0c,_0x225f0f,_0x58cf26));},AGIChannel['prototype'][_0x3e2f7a('0x5')]=function(_0xc01183,_0x993266){const _0x4c8e51=_0x3e2f7a;return _0x993266=_0x993266||'',this['sendRequest'](util[_0x4c8e51('0x11')](_0x4c8e51('0x35'),_0xc01183,_0x993266));},AGIChannel['prototype'][_0x3e2f7a('0x43')]=function(_0x24940d){const _0x118edb=_0x3e2f7a;return this[_0x118edb('0x2e')](_0x118edb('0xf'),_0x24940d);},AGIChannel[_0x3e2f7a('0x1a')]['wait']=function(_0xa857bf){const _0x1729df=_0x3e2f7a;return this[_0x1729df('0x2e')](_0x1729df('0xc'),_0xa857bf);},AGIChannel[_0x3e2f7a('0x1a')][_0x3e2f7a('0x17')]=function(_0x21ae84,_0x2bdef1){const _0x3cac07=_0x3e2f7a;return this['noop'](util[_0x3cac07('0x11')](_0x3cac07('0x2a'),_0x21ae84['id'],_0x21ae84[_0x3cac07('0x6')],_0x2bdef1)),{'code':0x1f4,'result':'-1','extra':''};},module[_0x3e2f7a('0x3d')]=AGIChannel; \ No newline at end of file diff --git a/server/services/agi/error.js b/server/services/agi/error.js index 83b700e..55ea55e 100644 --- a/server/services/agi/error.js +++ b/server/services/agi/error.js @@ -1 +1 @@ -const a1026_0x40b0=['Server\x20error.\x20Code:\x20%s.','format','Server\x20closed.','push','apply','util','Socket\x20error.\x20Code:\x20%s.','[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','message','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','Socket\x20timeout.','Missing\x20\x27ivr.entry\x27\x20menu.'];(function(_0xffa00c,_0x40b04f){const _0x428bf0=function(_0x571f4f){while(--_0x571f4f){_0xffa00c['push'](_0xffa00c['shift']());}};_0x428bf0(++_0x40b04f);}(a1026_0x40b0,0x128));const a1026_0x428b=function(_0xffa00c,_0x40b04f){_0xffa00c=_0xffa00c-0x0;let _0x428bf0=a1026_0x40b0[_0xffa00c];return _0x428bf0;};const _0x4e4a5d=a1026_0x428b;'use strict';const util=require(_0x4e4a5d('0x9')),error={'E_AGI_UNDEFINED':'Undefined\x20error.','E_AGI_ARGUMENT_PORT':_0x4e4a5d('0x1'),'E_AGI_SERVER_ERROR':_0x4e4a5d('0x4'),'E_AGI_SERVER_CLOSE':_0x4e4a5d('0x6'),'E_AGI_SERVER_MAXCONNECTION':'[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','E_AGI_SERVER_VOICE_DISABLED':_0x4e4a5d('0xb'),'E_AGI_SOCKET_ERROR':_0x4e4a5d('0xa'),'E_AGI_SOCKET_CLOSE':'Socket\x20closed.','E_AGI_SOCKET_TIMEOUT':_0x4e4a5d('0x2'),'E_AGI_COMMAND_EMPTY':'Empty\x20command.','E_AGI_IVR_AGI_NETWORK_SCRIPT':'Missing\x20\x27ivr.agi_network_script\x27.','E_AGI_IVR_ENTRY':_0x4e4a5d('0x3')};function AGIError(_0x571f4f){const _0x1d62b0=_0x4e4a5d;_0x571f4f=_0x571f4f||null;const _0x1122e6=_0x1122e6||[];let _0x3c8446=0x1,_0x310079='';!error[_0x571f4f]&&(_0x571f4f='E_AGI_UNDEFINED');_0x1122e6[_0x1d62b0('0x7')](error[_0x571f4f]);while(arguments[_0x3c8446]){_0x1122e6['push'](arguments[_0x3c8446]),_0x3c8446++;}_0x310079=util[_0x1d62b0('0x5')][_0x1d62b0('0x8')](util,_0x1122e6),this[_0x1d62b0('0x0')]=_0x310079,this['name']=_0x571f4f;}module['exports']=AGIError; \ No newline at end of file +const a1027_0x3107=['Socket\x20closed.','Undefined\x20error.','exports','util','format','Socket\x20timeout.','E_AGI_UNDEFINED','Missing\x20\x27ivr.agi_network_script\x27.','push','Socket\x20error.\x20Code:\x20%s.','Missing\x20\x27ivr.entry\x27\x20menu.','[LICENSE]\x20Server\x20max\x20connection.\x20Count:\x20%s.','Argument\x20\x27port\x27\x20missing\x20in\x20function\x20call.','apply','Server\x20closed.','message'];(function(_0x43504e,_0x310750){const _0x3b0397=function(_0x51731b){while(--_0x51731b){_0x43504e['push'](_0x43504e['shift']());}};_0x3b0397(++_0x310750);}(a1027_0x3107,0x1bc));const a1027_0x3b03=function(_0x43504e,_0x310750){_0x43504e=_0x43504e-0x0;let _0x3b0397=a1027_0x3107[_0x43504e];return _0x3b0397;};const _0x39234a=a1027_0x3b03;'use strict';const util=require(_0x39234a('0x7')),error={'E_AGI_UNDEFINED':_0x39234a('0x5'),'E_AGI_ARGUMENT_PORT':_0x39234a('0x0'),'E_AGI_SERVER_ERROR':'Server\x20error.\x20Code:\x20%s.','E_AGI_SERVER_CLOSE':_0x39234a('0x2'),'E_AGI_SERVER_MAXCONNECTION':_0x39234a('0xf'),'E_AGI_SERVER_VOICE_DISABLED':'[LICENSE\x20VOICE]\x20Server\x20license\x20voice\x20disabled.','E_AGI_SOCKET_ERROR':_0x39234a('0xd'),'E_AGI_SOCKET_CLOSE':_0x39234a('0x4'),'E_AGI_SOCKET_TIMEOUT':_0x39234a('0x9'),'E_AGI_COMMAND_EMPTY':'Empty\x20command.','E_AGI_IVR_AGI_NETWORK_SCRIPT':_0x39234a('0xb'),'E_AGI_IVR_ENTRY':_0x39234a('0xe')};function AGIError(_0x51731b){const _0xb58bf8=_0x39234a;_0x51731b=_0x51731b||null;const _0x113b74=_0x113b74||[];let _0x5b1e57=0x1,_0x481e86='';!error[_0x51731b]&&(_0x51731b=_0xb58bf8('0xa'));_0x113b74['push'](error[_0x51731b]);while(arguments[_0x5b1e57]){_0x113b74[_0xb58bf8('0xc')](arguments[_0x5b1e57]),_0x5b1e57++;}_0x481e86=util[_0xb58bf8('0x8')][_0xb58bf8('0x1')](util,_0x113b74),this[_0xb58bf8('0x3')]=_0x481e86,this['name']=_0x51731b;}module[_0x39234a('0x6')]=AGIError; \ No newline at end of file diff --git a/server/services/agi/graph/index.js b/server/services/agi/graph/index.js index fbfcb1d..51c906a 100644 --- a/server/services/agi/graph/index.js +++ b/server/services/agi/graph/index.js @@ -1 +1 @@ -const a1027_0x4353=['size','stop\x20traverse','target','menu','prototype','getdigits','length','../../../config/logger','no\x20vertex\x20found','info','addVertex','addEdge','exports','invalid','edges','traverseBFS','push','default\x20on\x20switch\x20not\x20found','condition','default','includes','getsecretdigits','getVertex','vswitch','condition\x20not\x20found','max\x20retry\x20reach','vertices','agicommand','numberOfEdges'];(function(_0x51589d,_0x43539a){const _0x13a999=function(_0x99c8dc){while(--_0x99c8dc){_0x51589d['push'](_0x51589d['shift']());}};_0x13a999(++_0x43539a);}(a1027_0x4353,0xb1));const a1027_0x13a9=function(_0x51589d,_0x43539a){_0x51589d=_0x51589d-0x0;let _0x13a999=a1027_0x4353[_0x51589d];return _0x13a999;};const _0x16aca5=a1027_0x13a9;'use strict';const _=require('lodash'),logger=require(_0x16aca5('0x4'))('agi'),verticesWithRetry=[_0x16aca5('0x0'),_0x16aca5('0x2'),_0x16aca5('0x12')],Graph=function(){const _0x16254d=_0x16aca5;this['vertices']={},this[_0x16254d('0xb')]={},this[_0x16254d('0x19')]=0x0;};Graph[_0x16aca5('0x1')][_0x16aca5('0x7')]=function(_0x99c8dc){const _0x3e6df0=_0x16aca5;this[_0x3e6df0('0x17')][_0x99c8dc['id']]=_0x99c8dc,this[_0x3e6df0('0xb')][_0x99c8dc['id']]=[];},Graph['prototype'][_0x16aca5('0x8')]=function(_0x1b84d3,_0x512308,_0x3212ee){const _0x5afdb5=_0x16aca5;this[_0x5afdb5('0xb')][_0x1b84d3][_0x5afdb5('0xd')]({'target':_0x512308,'condition':_0x3212ee}),this[_0x5afdb5('0x19')]+=0x1;},Graph[_0x16aca5('0x1')][_0x16aca5('0x1a')]=function(){const _0x206544=_0x16aca5;return _[_0x206544('0x1a')](this[_0x206544('0x17')]);},Graph['prototype']['relations']=function(){return this['numberOfEdges'];},Graph[_0x16aca5('0x1')][_0x16aca5('0x13')]=function(_0xb044bc){const _0x522428=_0x16aca5;return this[_0x522428('0x17')][_0xb044bc];},Graph['prototype']['traverseBFS']=function(_0x5e72d0,_0x1ab1aa){const _0x571643=_0x16aca5;if(!this[_0x571643('0x17')][_0x5e72d0])return logger[_0x571643('0x6')](_0x571643('0x5'));const _0x63101d=_0x1ab1aa(this[_0x571643('0x17')][_0x5e72d0]);if(!_0x63101d)return logger['info'](_0x571643('0x1b'));if(this['edges'][_0x5e72d0][_0x571643('0x3')]===0x0)return logger[_0x571643('0x6')]('no\x20edge/s\x20available');const _0x42f8bb=![],_0x3c4685=[];for(let _0x546af1=0x0,_0x26182d=[],_0x51b043=![];_0x546af1\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','info','[LICENSE]\x20CHANNELS:\x20UNLIMITED','addEdge','getSquareProject','start','resolve','hangup','clear','variables','evtHangup','value','traverseBFS','[%s]\x20%s','agicommand\x20not\x20found','127.0.0.1','../../globals','finally','[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d','../../config/logger','retry','maxRetry','stack','toString','../../config/license/util','source','YYYY-MM-DD\x20HH:mm:ss','continueAt','format','sync','mxGraphModel','target','arg_1','log','xml2json','substring','[LICENSE]','root','moment','port','[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','uniqueid','undefined','./rpc','callysquare','calleridname','context','mxCell','[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','getLicense','defaults','Project\x20%s\x20not\x20found','joinAt','dnid','agicommand','omit','callerid','name','listening','result','[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','[ERROR]\x20%s','addVertex','gotoc\x20block\x20stop\x20traverse\x20BFS','connection','error','agi_','debug','extension','isUndefined','close','stringify','message','catch','./vertices','timeout','code','Project\x20%s\x20not\x20published'];(function(_0x2f80f9,_0x9dfbeb){const _0x3ec99a=function(_0x26751b){while(--_0x26751b){_0x2f80f9['push'](_0x2f80f9['shift']());}};_0x3ec99a(++_0x9dfbeb);}(a1028_0x9dfb,0xe7));const a1028_0x3ec9=function(_0x2f80f9,_0x9dfbeb){_0x2f80f9=_0x2f80f9-0x0;let _0x3ec99a=a1028_0x9dfb[_0x2f80f9];return _0x3ec99a;};const _0x35c64d=a1028_0x3ec9;'use strict';require(_0x35c64d('0x3f'));const parser=require(_0x35c64d('0x51')),_=require(_0x35c64d('0x28')),util=require('util'),moment=require(_0x35c64d('0x55')),config=require('../../config/environment'),logger=require(_0x35c64d('0x42'))(_0x35c64d('0x2b')),utilLicense=require(_0x35c64d('0x47')),rpc=require(_0x35c64d('0x1')),mailRpc=require(_0x35c64d('0x2a')),Graph=require('./graph'),Vertices=require(_0x35c64d('0x20')),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config[_0x35c64d('0x2b')]=_[_0x35c64d('0x8')](config[_0x35c64d('0x2b')],{'ip':_0x35c64d('0x3e'),'port':0x11dd});async function connectionHandler(_0x26751b){const _0x445ad0=_0x35c64d;try{await setChannelVariables(_0x26751b),await agiHandler(_0x26751b);}catch(_0x353887){logger[_0x445ad0('0x17')](_0x353887[_0x445ad0('0x45')]);}}function listeningHandler(){const _0x1274e0=_0x35c64d;console[_0x1274e0('0x50')]('Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!',config[_0x1274e0('0x2b')][_0x1274e0('0x56')]),logger[_0x1274e0('0x30')](util['format'](_0x1274e0('0x41'),config[_0x1274e0('0x2b')]['ip'],config[_0x1274e0('0x2b')][_0x1274e0('0x56')]));}function errorHandler(_0x2a30a0){const _0x28165e=_0x35c64d;_0x2a30a0&&_0x2a30a0['name']&&_0x2a30a0['message']?logger[_0x28165e('0x17')](util['format'](_0x28165e('0x3c'),_0x2a30a0[_0x28165e('0xf')],_0x2a30a0[_0x28165e('0x1e')])):logger[_0x28165e('0x17')](util[_0x28165e('0x4b')](_0x28165e('0x13'),_0x2a30a0[_0x28165e('0x45')]));}function closeHandler(){const _0x1c11cc=_0x35c64d;logger[_0x1c11cc('0x30')](util['format'](_0x1c11cc('0x6'),this['arg_1'],this['calleridname'],this[_0x1c11cc('0xe')],this['dnid'],this['uniqueid']));try{createSquareReport(this);}catch(_0x492e70){logger[_0x1c11cc('0x17')](_0x492e70[_0x1c11cc('0x45')]);}}function timeoutHandler(){const _0x2cd84e=_0x35c64d;logger[_0x2cd84e('0x30')](util[_0x2cd84e('0x4b')]('[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',this['arg_1'],this[_0x2cd84e('0x3')],this[_0x2cd84e('0xe')],this[_0x2cd84e('0xb')],this[_0x2cd84e('0x58')]));}function hangupHandler(){const _0xbfdc2b=_0x35c64d;logger[_0xbfdc2b('0x30')](util[_0xbfdc2b('0x4b')](_0xbfdc2b('0x2f'),this['arg_1'],this[_0xbfdc2b('0x3')],this['callerid'],this[_0xbfdc2b('0xb')],this[_0xbfdc2b('0x58')])),this[_0xbfdc2b('0x39')]=!![];}function getRoot(_0x435877){const _0x279de6=_0x35c64d;return parser['toJson'](_0x435877,{'object':!![]})[_0x279de6('0x4d')]['root'];}function addVertex(_0x353df9,_0x4ad11d,_0x2b484c){const _0x310757=_0x35c64d;_0x4ad11d['agicommand']=_0x2b484c,typeof _0x4ad11d[_0x310757('0x43')]!==_0x310757('0x0')&&(_0x4ad11d[_0x310757('0x44')]=parseInt(_0x4ad11d[_0x310757('0x43')],0xa)),_0x353df9[_0x310757('0x14')](_[_0x310757('0xd')](_0x4ad11d,_0x310757('0x5')));}function initGraph(_0x16c696,_0x34663a){const _0x159c06=_0x35c64d,_0x241303=new Graph();for(const _0x4e9cf2 in _0x16c696){if(typeof _0x16c696[_0x4e9cf2]!==_0x159c06('0x0')){if(_['isArray'](_0x16c696[_0x4e9cf2]))for(let _0x3bad31=0x0;_0x3bad31<_0x16c696[_0x4e9cf2][_0x159c06('0x27')];_0x3bad31+=0x1){addVertex(_0x241303,_0x16c696[_0x4e9cf2][_0x3bad31],_0x4e9cf2);}else addVertex(_0x241303,_0x16c696[_0x4e9cf2],_0x4e9cf2);}}for(let _0x418bee=0x0;_0x418bee<_0x34663a['length'];_0x418bee+=0x1){_0x34663a[_0x418bee][_0x159c06('0x48')]&&_0x34663a[_0x418bee][_0x159c06('0x4e')]&&_0x241303[_0x159c06('0x32')](_0x34663a[_0x418bee][_0x159c06('0x48')],_0x34663a[_0x418bee][_0x159c06('0x4e')],_0x34663a[_0x418bee][_0x159c06('0x3a')]);}return _0x241303;}function getSquareProject(_0x4c3753,_0x26dee3){const _0x264e92=_0x35c64d;rpc[_0x264e92('0x33')](_0x4c3753)[_0x264e92('0x25')](function(_0x50401d){_0x26dee3(null,_0x50401d);})[_0x264e92('0x1f')](function(_0x3a65d2){_0x26dee3(null,_0x3a65d2);});}function createSquareReport(_0x381909,_0x313bdf){const _0x2ff4b5=_0x35c64d;rpc['createSquareReport'](_0x381909)['then'](function(_0x33a557){_0x313bdf&&_0x313bdf(null,_0x33a557);})[_0x2ff4b5('0x1f')](function(_0x9e8280){_0x313bdf&&_0x313bdf(null,_0x9e8280);});}async function setChannelVariables(_0x115fb1){const _0x527375=_0x35c64d;for(const _0x3884e4 in _0x115fb1){typeof _0x115fb1[_0x3884e4]!==_0x527375('0x0')&&(_0x3884e4['indexOf'](_0x527375('0x18'))===0x0&&(_0x115fb1[_0x3884e4[_0x527375('0x52')](0x4)]=_0x115fb1[_0x3884e4],delete _0x115fb1[_0x3884e4]));}return Promise['resolve'](_0x115fb1);}function getLogFromObject(_0x5eb507){const _0x1c7eb4=_0x35c64d;return util[_0x1c7eb4('0x29')](_0x5eb507,{'showHidden':![],'depth':null});}async function agiHandler(_0x34f387){const _0x3041d2=_0x35c64d;let _0x16c27b,_0x52e400,_0x201c59,_0x84d28a;logger[_0x3041d2('0x19')](_0x3041d2('0x38'),JSON[_0x3041d2('0x1d')](_0x34f387,null,0x2)),logger['info'](util[_0x3041d2('0x4b')](_0x3041d2('0x12'),_0x34f387['arg_1'],_0x34f387[_0x3041d2('0x3')],_0x34f387[_0x3041d2('0xe')],_0x34f387[_0x3041d2('0xb')],_0x34f387[_0x3041d2('0x58')])),_0x34f387['on'](_0x3041d2('0x17'),errorHandler),_0x34f387['on'](_0x3041d2('0x1c'),closeHandler),_0x34f387['on'](_0x3041d2('0x21'),timeoutHandler),_0x34f387[_0x3041d2('0x39')]=![],_0x34f387['on'](_0x3041d2('0x36'),hangupHandler);const _0x178cb2=getSquareProject[_0x3041d2('0x4c')](null,_0x34f387[_0x3041d2('0x4f')]);return _0x178cb2?_0x178cb2['production']?(_0x16c27b=getRoot(_0x178cb2['production']),_0x16c27b&&_0x16c27b[_0x3041d2('0x34')]&&(logger[_0x3041d2('0x19')](_0x3041d2('0x54'),JSON[_0x3041d2('0x1d')](_0x16c27b,null,0x2)),_0x34f387[_0x3041d2('0xa')]=moment()[_0x3041d2('0x4b')](_0x3041d2('0x49')),_0x52e400=initGraph(_[_0x3041d2('0xd')](_0x16c27b,_0x3041d2('0x5')),_0x16c27b[_0x3041d2('0x5')]),_0x201c59=new Vertices(_0x34f387,rpc,mailRpc),logger[_0x3041d2('0x30')](util['format'](_0x3041d2('0x2e'),_0x34f387[_0x3041d2('0x4f')],_0x34f387[_0x3041d2('0x3')],_0x34f387[_0x3041d2('0xe')],_0x34f387[_0x3041d2('0xb')],_0x34f387[_0x3041d2('0x58')])),_0x52e400[_0x3041d2('0x3b')](_0x16c27b['start']['id'],function(_0x546b17){const _0x570918=_0x3041d2;try{_0x546b17=_0x201c59[_0x570918('0x37')](_0x546b17),logger['debug']('vertex',JSON[_0x570918('0x1d')](_0x546b17,null,0x2));if(_0x546b17[_0x570918('0xc')]==='gotoc')return logger['info'](_0x570918('0x15')),_0x34f387[_0x570918('0x4')]=_0x546b17[_0x570918('0x4')]||_0x34f387[_0x570918('0x4')],_0x34f387[_0x570918('0x1a')]=_0x546b17['extension'],_0x34f387['priority']=_0x546b17['priority']?_0x546b17[_0x570918('0x26')]-0x1:0x1,null;else return _0x546b17&&_0x201c59[_0x546b17[_0x570918('0xc')]]?(_0x84d28a=_0x201c59[_0x546b17[_0x570918('0xc')]](_0x546b17),logger[_0x570918('0x30')](_0x570918('0x24'),JSON[_0x570918('0x1d')](_0x84d28a,null,0x2)),_0x84d28a&&_0x84d28a[_0x570918('0x22')]===AGI_CODE_SUCCESS&&_0x84d28a[_0x570918('0x11')]!==AGI_RESULT_ERROR&&!_0x34f387[_0x570918('0x39')]?(logger['debug']('response',getLogFromObject(_0x84d28a)),_[_0x570918('0x1b')](_0x84d28a[_0x570918('0x11')])?null:_0x84d28a[_0x570918('0x11')][_0x570918('0x46')]()):(logger[_0x570918('0x17')]('response',getLogFromObject(_0x84d28a)),null)):(logger['error']('agicommand\x20not\x20found'),null);}catch(_0x53417d){return logger['error'](_0x53417d[_0x570918('0x45')]),null;}}),_0x16c27b[_0x3041d2('0x40')]&&(logger[_0x3041d2('0x30')](util['format'](_0x3041d2('0x57'),_0x34f387[_0x3041d2('0x4f')],_0x34f387[_0x3041d2('0x3')],_0x34f387[_0x3041d2('0xe')],_0x34f387[_0x3041d2('0xb')],_0x34f387[_0x3041d2('0x58')])),_0x52e400[_0x3041d2('0x3b')](_0x16c27b[_0x3041d2('0x40')]['id'],function(_0x4c7e68){const _0x17704e=_0x3041d2;try{return _0x4c7e68=_0x201c59[_0x17704e('0x37')](_0x4c7e68),logger['debug']('vertex',JSON[_0x17704e('0x1d')](_0x4c7e68,null,0x2)),_0x4c7e68&&_0x201c59[_0x4c7e68[_0x17704e('0xc')]]?(_0x84d28a=_0x201c59[_0x4c7e68[_0x17704e('0xc')]](_0x4c7e68),_0x84d28a?(logger[_0x17704e('0x19')](_0x17704e('0x24'),getLogFromObject(_0x84d28a)),_[_0x17704e('0x1b')](_0x84d28a['result'])?null:_0x84d28a[_0x17704e('0x11')][_0x17704e('0x46')]()):(logger[_0x17704e('0x17')](_0x17704e('0x24'),getLogFromObject(_0x84d28a)),null)):(logger[_0x17704e('0x17')](_0x17704e('0x3d')),null);}catch(_0x39446b){return logger[_0x17704e('0x17')](_0x39446b[_0x17704e('0x45')]),null;}})),logger[_0x3041d2('0x30')](util[_0x3041d2('0x4b')]('[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x34f387['arg_1'],_0x34f387['calleridname'],_0x34f387['callerid'],_0x34f387[_0x3041d2('0xb')],_0x34f387[_0x3041d2('0x58')])),logger[_0x3041d2('0x30')](util[_0x3041d2('0x4b')](_0x3041d2('0x2c'),_0x34f387[_0x3041d2('0x4')],_0x34f387[_0x3041d2('0x1a')],parseInt(_0x34f387[_0x3041d2('0x26')],0xa)+0x1)),_0x34f387['continueAt'](_0x34f387[_0x3041d2('0x4')],_0x34f387[_0x3041d2('0x1a')],parseInt(_0x34f387['priority'],0xa)+0x1),_0x34f387[_0x3041d2('0x1c')]())):(logger[_0x3041d2('0x17')](util[_0x3041d2('0x4b')](_0x3041d2('0x23'),_0x34f387[_0x3041d2('0x4f')])),_0x34f387['continueAt'](_0x34f387[_0x3041d2('0x4')],_0x34f387[_0x3041d2('0x1a')],parseInt(_0x34f387[_0x3041d2('0x26')],0xa)+0x1),_0x34f387[_0x3041d2('0x1c')]()):(logger['error'](util[_0x3041d2('0x4b')](_0x3041d2('0x9'),_0x34f387[_0x3041d2('0x4f')])),_0x34f387[_0x3041d2('0x4a')](_0x34f387['context'],_0x34f387[_0x3041d2('0x1a')],parseInt(_0x34f387[_0x3041d2('0x26')],0xa)+0x1),_0x34f387[_0x3041d2('0x1c')]()),Promise[_0x3041d2('0x35')]();}function main(){const _0x5f55b6=_0x35c64d;let _0x181824;return utilLicense[_0x5f55b6('0x7')]()['then'](function(_0x315f3e){const _0x17020e=_0x5f55b6;_0x315f3e&&(_0x315f3e[_0x17020e('0x2d')]?_0x315f3e['callysquare']&&_0x315f3e[_0x17020e('0x2')]>0x0?(logger[_0x17020e('0x30')](util[_0x17020e('0x4b')]('[LICENSE]\x20CHANNELS:\x20%s',_0x315f3e[_0x17020e('0x2')])),_0x181824=_0x315f3e[_0x17020e('0x2')]):logger[_0x17020e('0x30')](_0x17020e('0x31')):(logger[_0x17020e('0x30')]('[LICENSE]\x20VOICE\x20IS\x20DISABLED'),_0x181824=-0x1));})['catch'](function(_0x193fa3){const _0x5cca94=_0x5f55b6;logger[_0x5cca94('0x17')](_0x5cca94('0x53'),_0x193fa3[_0x5cca94('0x45')]);})[_0x5f55b6('0x40')](function(){const _0x486d8c=_0x5f55b6,_0x3e8ed2=require('./server')(config[_0x486d8c('0x2b')][_0x486d8c('0x56')],config[_0x486d8c('0x2b')]['ip'],_0x181824);_0x3e8ed2['on']('error',errorHandler),_0x3e8ed2['on'](_0x486d8c('0x10'),listeningHandler),_0x3e8ed2['on'](_0x486d8c('0x16'),connectionHandler),_0x3e8ed2['on'](_0x486d8c('0x1c'),closeHandler);});}main(); \ No newline at end of file +const a1029_0x508d=['./graph','defaults','agi','../../config/logger','joinAt','inspect','./vertices','[CLOSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','agicommand','[LICENSE]','mxCell','createSquareReport','variables','agicommand\x20not\x20found','listening','agi_','mxGraphModel','addEdge','toJson','then','./rpc','close','stringify','result','clear','[%s]\x20%s','addVertex','target','callerid','dnid','uniqueid','calleridname','[END]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','sync','../../config/license/util','timeout','resolve','finally','[ERROR]\x20%s','name','./mailRpc','indexOf','127.0.0.1','evtHangup','log','traverseBFS','./server','start','[START]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','vertex','catch','util','toString','../../config/environment','gotoc','extension','continueAt','Project\x20%s\x20not\x20found','[LICENSE]\x20CHANNELS:\x20%s','context','error','info','format','xml2json','voice','debug','isUndefined','Cally\x20Square\x20server\x20listening\x20on\x20port\x20%d!','retry','production','substring','getSquareProject','port','getLicense','stack','message','omit','priority','arg_1','undefined','lodash','Project\x20%s\x20not\x20published','[LICENSE]\x20VOICE\x20IS\x20DISABLED','[TIMEOUT]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s','callysquare','response','maxRetry','length','root'];(function(_0x402865,_0x508de3){const _0x445aed=function(_0x45e359){while(--_0x45e359){_0x402865['push'](_0x402865['shift']());}};_0x445aed(++_0x508de3);}(a1029_0x508d,0x1cd));const a1029_0x445a=function(_0x402865,_0x508de3){_0x402865=_0x402865-0x0;let _0x445aed=a1029_0x508d[_0x402865];return _0x445aed;};const _0x21635b=a1029_0x445a;'use strict';require('../../globals');const parser=require(_0x21635b('0x2f')),_=require(_0x21635b('0x40')),util=require(_0x21635b('0x23')),moment=require('moment'),config=require(_0x21635b('0x25')),logger=require(_0x21635b('0x4c'))(_0x21635b('0x4b')),utilLicense=require(_0x21635b('0x12')),rpc=require(_0x21635b('0x4')),mailRpc=require(_0x21635b('0x18')),Graph=require(_0x21635b('0x49')),Vertices=require(_0x21635b('0x4f')),AGI_CODE_SUCCESS=0xc8,AGI_RESULT_ERROR=-0x1;config['agi']=_[_0x21635b('0x4a')](config[_0x21635b('0x4b')],{'ip':_0x21635b('0x1a'),'port':0x11dd});async function connectionHandler(_0x45e359){const _0x9c4539=_0x21635b;try{await setChannelVariables(_0x45e359),await agiHandler(_0x45e359);}catch(_0x4b8413){logger[_0x9c4539('0x2c')](_0x4b8413[_0x9c4539('0x3a')]);}}function listeningHandler(){const _0x481934=_0x21635b;console[_0x481934('0x1c')](_0x481934('0x33'),config[_0x481934('0x4b')][_0x481934('0x38')]),logger[_0x481934('0x2d')](util[_0x481934('0x2e')]('[LISTENING]\x20Cally\x20Square\x20listening\x20%s:%d',config[_0x481934('0x4b')]['ip'],config[_0x481934('0x4b')][_0x481934('0x38')]));}function errorHandler(_0xffc13b){const _0x509ab5=_0x21635b;_0xffc13b&&_0xffc13b[_0x509ab5('0x17')]&&_0xffc13b[_0x509ab5('0x3b')]?logger[_0x509ab5('0x2c')](util[_0x509ab5('0x2e')](_0x509ab5('0x9'),_0xffc13b[_0x509ab5('0x17')],_0xffc13b[_0x509ab5('0x3b')])):logger[_0x509ab5('0x2c')](util[_0x509ab5('0x2e')](_0x509ab5('0x16'),_0xffc13b['stack']));}function closeHandler(){const _0x222bbf=_0x21635b;logger[_0x222bbf('0x2d')](util[_0x222bbf('0x2e')](_0x222bbf('0x50'),this[_0x222bbf('0x3e')],this['calleridname'],this[_0x222bbf('0xc')],this[_0x222bbf('0xd')],this[_0x222bbf('0xe')]));try{createSquareReport(this);}catch(_0x41fe08){logger['error'](_0x41fe08['stack']);}}function timeoutHandler(){const _0x5eddb2=_0x21635b;logger[_0x5eddb2('0x2d')](util[_0x5eddb2('0x2e')](_0x5eddb2('0x43'),this[_0x5eddb2('0x3e')],this['calleridname'],this[_0x5eddb2('0xc')],this['dnid'],this[_0x5eddb2('0xe')]));}function hangupHandler(){const _0x57eca7=_0x21635b;logger[_0x57eca7('0x2d')](util[_0x57eca7('0x2e')]('[HANGUP]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',this['arg_1'],this['calleridname'],this[_0x57eca7('0xc')],this[_0x57eca7('0xd')],this['uniqueid'])),this[_0x57eca7('0x1b')]=!![];}function getRoot(_0x5002ea){const _0x165605=_0x21635b;return parser[_0x165605('0x2')](_0x5002ea,{'object':!![]})[_0x165605('0x0')][_0x165605('0x48')];}function addVertex(_0x990c34,_0x34b58d,_0x4d8c31){const _0x280b78=_0x21635b;_0x34b58d[_0x280b78('0x51')]=_0x4d8c31,typeof _0x34b58d[_0x280b78('0x34')]!==_0x280b78('0x3f')&&(_0x34b58d[_0x280b78('0x46')]=parseInt(_0x34b58d['retry'],0xa)),_0x990c34[_0x280b78('0xa')](_[_0x280b78('0x3c')](_0x34b58d,'mxCell'));}function initGraph(_0x464ad9,_0x559045){const _0x2ae34f=_0x21635b,_0x4893fa=new Graph();for(const _0x3d00f8 in _0x464ad9){if(typeof _0x464ad9[_0x3d00f8]!==_0x2ae34f('0x3f')){if(_['isArray'](_0x464ad9[_0x3d00f8]))for(let _0x22a27a=0x0;_0x22a27a<_0x464ad9[_0x3d00f8][_0x2ae34f('0x47')];_0x22a27a+=0x1){addVertex(_0x4893fa,_0x464ad9[_0x3d00f8][_0x22a27a],_0x3d00f8);}else addVertex(_0x4893fa,_0x464ad9[_0x3d00f8],_0x3d00f8);}}for(let _0x6aaa8e=0x0;_0x6aaa8e<_0x559045[_0x2ae34f('0x47')];_0x6aaa8e+=0x1){_0x559045[_0x6aaa8e]['source']&&_0x559045[_0x6aaa8e][_0x2ae34f('0xb')]&&_0x4893fa[_0x2ae34f('0x1')](_0x559045[_0x6aaa8e]['source'],_0x559045[_0x6aaa8e]['target'],_0x559045[_0x6aaa8e]['value']);}return _0x4893fa;}function getSquareProject(_0x3432ab,_0x4f4c49){const _0x2f03a2=_0x21635b;rpc[_0x2f03a2('0x37')](_0x3432ab)[_0x2f03a2('0x3')](function(_0xb93c2a){_0x4f4c49(null,_0xb93c2a);})[_0x2f03a2('0x22')](function(_0xac158b){_0x4f4c49(null,_0xac158b);});}function createSquareReport(_0xf46c4d,_0x235d16){const _0x104d07=_0x21635b;rpc[_0x104d07('0x54')](_0xf46c4d)[_0x104d07('0x3')](function(_0x5d7b13){_0x235d16&&_0x235d16(null,_0x5d7b13);})[_0x104d07('0x22')](function(_0x491f72){_0x235d16&&_0x235d16(null,_0x491f72);});}async function setChannelVariables(_0x54709a){const _0x494a0a=_0x21635b;for(const _0x198560 in _0x54709a){typeof _0x54709a[_0x198560]!==_0x494a0a('0x3f')&&(_0x198560[_0x494a0a('0x19')](_0x494a0a('0x58'))===0x0&&(_0x54709a[_0x198560[_0x494a0a('0x36')](0x4)]=_0x54709a[_0x198560],delete _0x54709a[_0x198560]));}return Promise[_0x494a0a('0x14')](_0x54709a);}function getLogFromObject(_0x2a130d){const _0x4adbc6=_0x21635b;return util[_0x4adbc6('0x4e')](_0x2a130d,{'showHidden':![],'depth':null});}async function agiHandler(_0x128d24){const _0xe8d31a=_0x21635b;let _0x29fb56,_0x4b1e2a,_0x1bd6ce,_0xdc32ad;logger[_0xe8d31a('0x31')](_0xe8d31a('0x55'),JSON[_0xe8d31a('0x6')](_0x128d24,null,0x2)),logger[_0xe8d31a('0x2d')](util['format'](_0xe8d31a('0x20'),_0x128d24[_0xe8d31a('0x3e')],_0x128d24[_0xe8d31a('0xf')],_0x128d24[_0xe8d31a('0xc')],_0x128d24[_0xe8d31a('0xd')],_0x128d24[_0xe8d31a('0xe')])),_0x128d24['on']('error',errorHandler),_0x128d24['on'](_0xe8d31a('0x5'),closeHandler),_0x128d24['on'](_0xe8d31a('0x13'),timeoutHandler),_0x128d24[_0xe8d31a('0x1b')]=![],_0x128d24['on']('hangup',hangupHandler);const _0x51c8e9=getSquareProject[_0xe8d31a('0x11')](null,_0x128d24[_0xe8d31a('0x3e')]);return _0x51c8e9?_0x51c8e9[_0xe8d31a('0x35')]?(_0x29fb56=getRoot(_0x51c8e9['production']),_0x29fb56&&_0x29fb56[_0xe8d31a('0x1f')]&&(logger[_0xe8d31a('0x31')](_0xe8d31a('0x48'),JSON[_0xe8d31a('0x6')](_0x29fb56,null,0x2)),_0x128d24[_0xe8d31a('0x4d')]=moment()[_0xe8d31a('0x2e')]('YYYY-MM-DD\x20HH:mm:ss'),_0x4b1e2a=initGraph(_[_0xe8d31a('0x3c')](_0x29fb56,'mxCell'),_0x29fb56[_0xe8d31a('0x53')]),_0x1bd6ce=new Vertices(_0x128d24,rpc,mailRpc),logger[_0xe8d31a('0x2d')](util[_0xe8d31a('0x2e')]('[START\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x128d24['arg_1'],_0x128d24[_0xe8d31a('0xf')],_0x128d24[_0xe8d31a('0xc')],_0x128d24['dnid'],_0x128d24[_0xe8d31a('0xe')])),_0x4b1e2a[_0xe8d31a('0x1d')](_0x29fb56[_0xe8d31a('0x1f')]['id'],function(_0x39a0ed){const _0x68cbeb=_0xe8d31a;try{_0x39a0ed=_0x1bd6ce[_0x68cbeb('0x8')](_0x39a0ed),logger[_0x68cbeb('0x31')](_0x68cbeb('0x21'),JSON['stringify'](_0x39a0ed,null,0x2));if(_0x39a0ed[_0x68cbeb('0x51')]===_0x68cbeb('0x26'))return logger[_0x68cbeb('0x2d')]('gotoc\x20block\x20stop\x20traverse\x20BFS'),_0x128d24[_0x68cbeb('0x2b')]=_0x39a0ed[_0x68cbeb('0x2b')]||_0x128d24['context'],_0x128d24[_0x68cbeb('0x27')]=_0x39a0ed[_0x68cbeb('0x27')],_0x128d24[_0x68cbeb('0x3d')]=_0x39a0ed['priority']?_0x39a0ed[_0x68cbeb('0x3d')]-0x1:0x1,null;else return _0x39a0ed&&_0x1bd6ce[_0x39a0ed[_0x68cbeb('0x51')]]?(_0xdc32ad=_0x1bd6ce[_0x39a0ed[_0x68cbeb('0x51')]](_0x39a0ed),logger[_0x68cbeb('0x2d')](_0x68cbeb('0x45'),JSON[_0x68cbeb('0x6')](_0xdc32ad,null,0x2)),_0xdc32ad&&_0xdc32ad['code']===AGI_CODE_SUCCESS&&_0xdc32ad[_0x68cbeb('0x7')]!==AGI_RESULT_ERROR&&!_0x128d24['evtHangup']?(logger['debug'](_0x68cbeb('0x45'),getLogFromObject(_0xdc32ad)),_[_0x68cbeb('0x32')](_0xdc32ad[_0x68cbeb('0x7')])?null:_0xdc32ad[_0x68cbeb('0x7')][_0x68cbeb('0x24')]()):(logger[_0x68cbeb('0x2c')](_0x68cbeb('0x45'),getLogFromObject(_0xdc32ad)),null)):(logger['error'](_0x68cbeb('0x56')),null);}catch(_0x39c024){return logger[_0x68cbeb('0x2c')](_0x39c024[_0x68cbeb('0x3a')]),null;}}),_0x29fb56[_0xe8d31a('0x15')]&&(logger[_0xe8d31a('0x2d')](util[_0xe8d31a('0x2e')]('[FINALLY\x20TRAVERSE]\x20%s\x20project:\x20from\x20\x22%s\x22\x20<%s>\x20to\x20extension\x20%s\x20with\x20uniqueid\x20%s',_0x128d24[_0xe8d31a('0x3e')],_0x128d24[_0xe8d31a('0xf')],_0x128d24['callerid'],_0x128d24[_0xe8d31a('0xd')],_0x128d24[_0xe8d31a('0xe')])),_0x4b1e2a[_0xe8d31a('0x1d')](_0x29fb56[_0xe8d31a('0x15')]['id'],function(_0x2c20bb){const _0x56b3fc=_0xe8d31a;try{return _0x2c20bb=_0x1bd6ce[_0x56b3fc('0x8')](_0x2c20bb),logger[_0x56b3fc('0x31')](_0x56b3fc('0x21'),JSON[_0x56b3fc('0x6')](_0x2c20bb,null,0x2)),_0x2c20bb&&_0x1bd6ce[_0x2c20bb[_0x56b3fc('0x51')]]?(_0xdc32ad=_0x1bd6ce[_0x2c20bb[_0x56b3fc('0x51')]](_0x2c20bb),_0xdc32ad?(logger[_0x56b3fc('0x31')](_0x56b3fc('0x45'),getLogFromObject(_0xdc32ad)),_[_0x56b3fc('0x32')](_0xdc32ad[_0x56b3fc('0x7')])?null:_0xdc32ad[_0x56b3fc('0x7')][_0x56b3fc('0x24')]()):(logger['error'](_0x56b3fc('0x45'),getLogFromObject(_0xdc32ad)),null)):(logger[_0x56b3fc('0x2c')]('agicommand\x20not\x20found'),null);}catch(_0x482428){return logger[_0x56b3fc('0x2c')](_0x482428['stack']),null;}})),logger[_0xe8d31a('0x2d')](util['format'](_0xe8d31a('0x10'),_0x128d24[_0xe8d31a('0x3e')],_0x128d24['calleridname'],_0x128d24[_0xe8d31a('0xc')],_0x128d24[_0xe8d31a('0xd')],_0x128d24[_0xe8d31a('0xe')])),logger['info'](util['format']('[GOTO]\x20context:\x20%s\x20extension:\x20%s\x20priority:\x20%s',_0x128d24[_0xe8d31a('0x2b')],_0x128d24[_0xe8d31a('0x27')],parseInt(_0x128d24['priority'],0xa)+0x1)),_0x128d24[_0xe8d31a('0x28')](_0x128d24[_0xe8d31a('0x2b')],_0x128d24[_0xe8d31a('0x27')],parseInt(_0x128d24[_0xe8d31a('0x3d')],0xa)+0x1),_0x128d24[_0xe8d31a('0x5')]())):(logger[_0xe8d31a('0x2c')](util[_0xe8d31a('0x2e')](_0xe8d31a('0x41'),_0x128d24[_0xe8d31a('0x3e')])),_0x128d24['continueAt'](_0x128d24['context'],_0x128d24['extension'],parseInt(_0x128d24[_0xe8d31a('0x3d')],0xa)+0x1),_0x128d24[_0xe8d31a('0x5')]()):(logger['error'](util['format'](_0xe8d31a('0x29'),_0x128d24[_0xe8d31a('0x3e')])),_0x128d24['continueAt'](_0x128d24[_0xe8d31a('0x2b')],_0x128d24[_0xe8d31a('0x27')],parseInt(_0x128d24['priority'],0xa)+0x1),_0x128d24['close']()),Promise[_0xe8d31a('0x14')]();}function main(){const _0x486eac=_0x21635b;let _0x534cbc;return utilLicense[_0x486eac('0x39')]()[_0x486eac('0x3')](function(_0x24bc3a){const _0x1fb250=_0x486eac;_0x24bc3a&&(_0x24bc3a[_0x1fb250('0x30')]?_0x24bc3a[_0x1fb250('0x44')]&&_0x24bc3a['callysquare']>0x0?(logger[_0x1fb250('0x2d')](util[_0x1fb250('0x2e')](_0x1fb250('0x2a'),_0x24bc3a[_0x1fb250('0x44')])),_0x534cbc=_0x24bc3a[_0x1fb250('0x44')]):logger[_0x1fb250('0x2d')]('[LICENSE]\x20CHANNELS:\x20UNLIMITED'):(logger[_0x1fb250('0x2d')](_0x1fb250('0x42')),_0x534cbc=-0x1));})[_0x486eac('0x22')](function(_0x986344){const _0x23e29e=_0x486eac;logger[_0x23e29e('0x2c')](_0x23e29e('0x52'),_0x986344[_0x23e29e('0x3a')]);})[_0x486eac('0x15')](function(){const _0x9e3ab2=_0x486eac,_0x1542a6=require(_0x9e3ab2('0x1e'))(config[_0x9e3ab2('0x4b')][_0x9e3ab2('0x38')],config[_0x9e3ab2('0x4b')]['ip'],_0x534cbc);_0x1542a6['on']('error',errorHandler),_0x1542a6['on'](_0x9e3ab2('0x57'),listeningHandler),_0x1542a6['on']('connection',connectionHandler),_0x1542a6['on']('close',closeHandler);});}main(); \ No newline at end of file diff --git a/server/services/agi/mailRpc/index.js b/server/services/agi/mailRpc/index.js index e5ad443..a47f489 100644 --- a/server/services/agi/mailRpc/index.js +++ b/server/services/agi/mailRpc/index.js @@ -1 +1 @@ -const a1029_0x4a09=['client','http','catch','error','result','then','message','sendMailMessage','jayson/promise','request'];(function(_0x434998,_0x4a0978){const _0x786e48=function(_0xf1af00){while(--_0xf1af00){_0x434998['push'](_0x434998['shift']());}};_0x786e48(++_0x4a0978);}(a1029_0x4a09,0xce));const a1029_0x786e=function(_0x434998,_0x4a0978){_0x434998=_0x434998-0x0;let _0x786e48=a1029_0x4a09[_0x434998];return _0x786e48;};const _0x4f53e3=a1029_0x786e;'use strict';const jayson=require(_0x4f53e3('0x2')),client=jayson[_0x4f53e3('0x4')][_0x4f53e3('0x5')]({'port':0x232b});function request(_0xf1af00,_0x11ccb7){return new Promise(function(_0x12d4e4,_0x3d7127){const _0x3f880a=a1029_0x786e;return client[_0x3f880a('0x3')](_0xf1af00,_0x11ccb7)[_0x3f880a('0x9')](function(_0x4f2244){const _0x15d6ae=_0x3f880a;return _0x4f2244['error']?_0x3d7127(_0x4f2244[_0x15d6ae('0x7')][_0x15d6ae('0x0')]):_0x12d4e4(_0x4f2244[_0x15d6ae('0x8')]);})[_0x3f880a('0x6')](function(_0x447de4){return _0x3d7127(_0x447de4);});});}exports[_0x4f53e3('0x1')]=function(_0x1c8819,_0xf33bd5){return request('SendMail',{'account':_0x1c8819,'message':_0xf33bd5});}; \ No newline at end of file +const a1030_0x56ce=['jayson/promise','http','then','error','message','sendMailMessage','SendMail','request'];(function(_0x34cd75,_0x56ce95){const _0x2092e9=function(_0x14e02b){while(--_0x14e02b){_0x34cd75['push'](_0x34cd75['shift']());}};_0x2092e9(++_0x56ce95);}(a1030_0x56ce,0x127));const a1030_0x2092=function(_0x34cd75,_0x56ce95){_0x34cd75=_0x34cd75-0x0;let _0x2092e9=a1030_0x56ce[_0x34cd75];return _0x2092e9;};const _0x4b102e=a1030_0x2092;'use strict';const jayson=require(_0x4b102e('0x1')),client=jayson['client'][_0x4b102e('0x2')]({'port':0x232b});function request(_0x14e02b,_0x5eda77){return new Promise(function(_0x5537dc,_0x2094a2){const _0x2f1f5d=a1030_0x2092;return client[_0x2f1f5d('0x0')](_0x14e02b,_0x5eda77)[_0x2f1f5d('0x3')](function(_0x44c8c5){const _0x89a83f=_0x2f1f5d;return _0x44c8c5[_0x89a83f('0x4')]?_0x2094a2(_0x44c8c5[_0x89a83f('0x4')][_0x89a83f('0x5')]):_0x5537dc(_0x44c8c5['result']);})['catch'](function(_0x4b0b8b){return _0x2094a2(_0x4b0b8b);});});}exports[_0x4b102e('0x6')]=function(_0x2264e4,_0x35d333){const _0x24c030=_0x4b102e;return request(_0x24c030('0x7'),{'account':_0x2264e4,'message':_0x35d333});}; \ No newline at end of file diff --git a/server/services/agi/reply.js b/server/services/agi/reply.js index 9ff413f..0c3f561 100644 --- a/server/services/agi/reply.js +++ b/server/services/agi/reply.js @@ -1 +1 @@ -const a1030_0x3311=['length','call','indexOf','trim','Transform','inherits','split','toString','emit','substring','util','_inBody','line','slice','_transform','headers','_localBuffer'];(function(_0x36675c,_0x3311b8){const _0x1d891c=function(_0x29b7fa){while(--_0x29b7fa){_0x36675c['push'](_0x36675c['shift']());}};_0x1d891c(++_0x3311b8);}(a1030_0x3311,0x10f));const a1030_0x1d89=function(_0x36675c,_0x3311b8){_0x36675c=_0x36675c-0x0;let _0x1d891c=a1030_0x3311[_0x36675c];return _0x1d891c;};const _0xf1005a=a1030_0x1d89;'use strict';const util=require(_0xf1005a('0xb')),Transform=require('stream')[_0xf1005a('0x5')];function AGIReply(_0x29b7fa){const _0x47e8b5=_0xf1005a;Transform[_0x47e8b5('0x2')](this,_0x29b7fa),this['_localBuffer']='',this['_inBody']=![];}util[_0xf1005a('0x6')](AGIReply,Transform),AGIReply['prototype'][_0xf1005a('0xf')]=function(_0xdc7c8d,_0x512203,_0x527ace){const _0x452faf=_0xf1005a,_0x3fb76f='\x0a',_0x3c766d=['\x0a\x0a','\x0d\x0a\x0d\x0a'];let _0x12ad83=-0x1,_0x835353=-0x1,_0x5500f2='',_0x44e91e=0x0,_0x3301fe='',_0xb4a43e='';this[_0x452faf('0x0')]+=_0xdc7c8d[_0x452faf('0x8')](),_0x3301fe=this[_0x452faf('0x0')];if(!this[_0x452faf('0xc')]){_0x44e91e=0x0;while(_0x3c766d[_0x44e91e]){while((_0x835353=_0x3301fe[_0x452faf('0x3')](_0x3c766d[_0x44e91e]))!=-0x1){_0x5500f2=_0x3c766d[_0x44e91e],_0xb4a43e=_0x3301fe[_0x452faf('0xa')](0x0,_0x835353),_0x3301fe=_0x3301fe[_0x452faf('0xa')](_0x835353+_0x5500f2[_0x452faf('0x1')]);const _0x1d6a31=_0xb4a43e[_0x452faf('0x7')](_0x3fb76f);let _0x25f4fa=0x0;const _0xb5960c={};let _0x967dcf='',_0x2e7b1a='',_0x3573a7=-0x1;while(_0x1d6a31[_0x25f4fa]){_0x3573a7=_0x1d6a31[_0x25f4fa][_0x452faf('0x3')](':');if(_0x3573a7!=-0x1)_0x967dcf=_0x1d6a31[_0x25f4fa][_0x452faf('0xe')](0x0,_0x3573a7)['trim'](),_0x2e7b1a=_0x1d6a31[_0x25f4fa][_0x452faf('0xe')](_0x3573a7+0x1)[_0x452faf('0x4')](),_0x967dcf[_0x452faf('0x1')]>0x0&&(_0xb5960c[_0x967dcf]=_0x2e7b1a);else{}_0x25f4fa++;}this[_0x452faf('0x9')](_0x452faf('0x10'),_0xb5960c),this[_0x452faf('0xc')]=!![];}_0x44e91e++;}this[_0x452faf('0x0')]=_0x3301fe;}else{while((_0x12ad83=_0x3301fe[_0x452faf('0x3')](_0x3fb76f))!=-0x1){_0xb4a43e=_0x3301fe[_0x452faf('0xa')](0x0,_0x12ad83),this[_0x452faf('0x9')](_0x452faf('0xd'),_0xb4a43e),_0x3301fe=_0x3301fe[_0x452faf('0xa')](_0x12ad83+_0x3fb76f[_0x452faf('0x1')]);}this[_0x452faf('0x0')]=_0x3301fe;}_0x527ace();},module['exports']=AGIReply; \ No newline at end of file +const a1031_0x2b5e=['toString','indexOf','_inBody','_transform','prototype','emit','\x0d\x0a\x0d\x0a','call','split','_localBuffer','line','util','length','trim','headers','slice','Transform','substring'];(function(_0x416b5b,_0x2b5ef1){const _0x8460d7=function(_0x18a16b){while(--_0x18a16b){_0x416b5b['push'](_0x416b5b['shift']());}};_0x8460d7(++_0x2b5ef1);}(a1031_0x2b5e,0x187));const a1031_0x8460=function(_0x416b5b,_0x2b5ef1){_0x416b5b=_0x416b5b-0x0;let _0x8460d7=a1031_0x2b5e[_0x416b5b];return _0x8460d7;};const _0x1740a2=a1031_0x8460;'use strict';const util=require(_0x1740a2('0x10')),Transform=require('stream')[_0x1740a2('0x3')];function AGIReply(_0x18a16b){const _0x4ae523=_0x1740a2;Transform[_0x4ae523('0xc')](this,_0x18a16b),this['_localBuffer']='',this['_inBody']=![];}util['inherits'](AGIReply,Transform),AGIReply[_0x1740a2('0x9')][_0x1740a2('0x8')]=function(_0x2b1aac,_0x4946ff,_0x4b9843){const _0x325527=_0x1740a2,_0x2fba72='\x0a',_0x543a87=['\x0a\x0a',_0x325527('0xb')];let _0x46a7db=-0x1,_0x9f5214=-0x1,_0x46f2f8='',_0x2fb0b4=0x0,_0x5dbc47='',_0x32e000='';this[_0x325527('0xe')]+=_0x2b1aac[_0x325527('0x5')](),_0x5dbc47=this[_0x325527('0xe')];if(!this['_inBody']){_0x2fb0b4=0x0;while(_0x543a87[_0x2fb0b4]){while((_0x9f5214=_0x5dbc47[_0x325527('0x6')](_0x543a87[_0x2fb0b4]))!=-0x1){_0x46f2f8=_0x543a87[_0x2fb0b4],_0x32e000=_0x5dbc47[_0x325527('0x4')](0x0,_0x9f5214),_0x5dbc47=_0x5dbc47[_0x325527('0x4')](_0x9f5214+_0x46f2f8[_0x325527('0x11')]);const _0x2b16b2=_0x32e000[_0x325527('0xd')](_0x2fba72);let _0x2a360f=0x0;const _0x453f17={};let _0x15615a='',_0x275c3b='',_0x167f80=-0x1;while(_0x2b16b2[_0x2a360f]){_0x167f80=_0x2b16b2[_0x2a360f][_0x325527('0x6')](':');if(_0x167f80!=-0x1)_0x15615a=_0x2b16b2[_0x2a360f][_0x325527('0x2')](0x0,_0x167f80)[_0x325527('0x0')](),_0x275c3b=_0x2b16b2[_0x2a360f][_0x325527('0x2')](_0x167f80+0x1)[_0x325527('0x0')](),_0x15615a[_0x325527('0x11')]>0x0&&(_0x453f17[_0x15615a]=_0x275c3b);else{}_0x2a360f++;}this['emit'](_0x325527('0x1'),_0x453f17),this[_0x325527('0x7')]=!![];}_0x2fb0b4++;}this[_0x325527('0xe')]=_0x5dbc47;}else{while((_0x46a7db=_0x5dbc47[_0x325527('0x6')](_0x2fba72))!=-0x1){_0x32e000=_0x5dbc47[_0x325527('0x4')](0x0,_0x46a7db),this[_0x325527('0xa')](_0x325527('0xf'),_0x32e000),_0x5dbc47=_0x5dbc47[_0x325527('0x4')](_0x46a7db+_0x2fba72[_0x325527('0x11')]);}this[_0x325527('0xe')]=_0x5dbc47;}_0x4b9843();},module['exports']=AGIReply; \ No newline at end of file diff --git a/server/services/agi/rpc/index.js b/server/services/agi/rpc/index.js index b95c974..08e282f 100644 --- a/server/services/agi/rpc/index.js +++ b/server/services/agi/rpc/index.js @@ -1 +1 @@ -const a1031_0x10ab=['CreateSquareMessage','LoginUser','moment','getSquareOdbcById','ShowInterval','ShowSquareProject','getPauseById','getSquareProjectById','PauseUser','http','phone','dsn','ShowMailAccount','name','createSquareRecording','format','Smtp','CreateCmContact','CreateSmsMessage','agentLogout','result','agentLogin','arg_1','CreateSquareRecording','Interval','then','getSquareProject','production','ShowPause','getSmsAccountById','request','agentUnpause','createSquareMessage','ListId','getMailAccountById','message','createCmContact','ShowVariable','catch','merge','lodash','email','createSquareReport','ShowUser','getIntervalById','getSoundById','ShowTrunk','agentPause','ShowCmHopper','Intervals','getTrunkById','ShowSquareOdbc','createSquareDetailsReport','getVoiceQueueById','arg_2','UnpauseUser'];(function(_0x271633,_0x10abdc){const _0x17f3bb=function(_0x3fb23a){while(--_0x3fb23a){_0x271633['push'](_0x271633['shift']());}};_0x17f3bb(++_0x10abdc);}(a1031_0x10ab,0xa5));const a1031_0x17f3=function(_0x271633,_0x10abdc){_0x271633=_0x271633-0x0;let _0x17f3bb=a1031_0x10ab[_0x271633];return _0x17f3bb;};const _0x1256c3=a1031_0x17f3;'use strict';const moment=require(_0x1256c3('0x5')),_=require(_0x1256c3('0x2b')),jayson=require('jayson/promise'),client=jayson['client'][_0x1256c3('0xc')]({'port':0x2329});function request(_0x3fb23a,_0x401be3){return new Promise(function(_0x6dd620,_0x225871){const _0x1c2b5a=a1031_0x17f3;return client[_0x1c2b5a('0x21')](_0x3fb23a,_0x401be3)['then'](function(_0x18c69b){const _0xcbc45a=_0x1c2b5a;return _0x18c69b['error']?_0x225871(_0x18c69b['error'][_0xcbc45a('0x26')]):_0x6dd620(_0x18c69b[_0xcbc45a('0x17')]);})[_0x1c2b5a('0x29')](function(_0x547175){return _0x225871(_0x547175);});});}exports[_0x1256c3('0x1d')]=function(_0x308e10){const _0x3c600c=_0x1256c3;return request(_0x3c600c('0x8'),{'options':{'raw':![],'where':{'name':_0x308e10},'attributes':[_0x3c600c('0x1e')]}});},exports[_0x1256c3('0x25')]=function(_0xf576d4){const _0x112026=_0x1256c3;return request(_0x112026('0xf'),{'options':{'raw':![],'where':{'id':_0xf576d4},'include':[{'model':'MailServerOut','as':_0x112026('0x13')}],'attributes':['id',_0x112026('0x10'),_0x112026('0x2c')]}});},exports[_0x1256c3('0xa')]=function(_0x5b979d){const _0x2cac6a=_0x1256c3;return request(_0x2cac6a('0x8'),{'options':{'where':{'id':_0x5b979d},'attributes':[_0x2cac6a('0x10')]}});},exports[_0x1256c3('0x0')]=function(_0x515d73){return request('ShowVoiceQueue',{'options':{'where':{'id':_0x515d73},'attributes':['name']}});},exports['getVariableById']=function(_0x29fee6){const _0x3a6bf0=_0x1256c3;return request(_0x3a6bf0('0x28'),{'options':{'where':{'id':_0x29fee6},'attributes':[_0x3a6bf0('0x10')]}});},exports[_0x1256c3('0x6')]=function(_0x334cdc){const _0x3fd804=_0x1256c3;return request(_0x3fd804('0x36'),{'options':{'where':{'id':_0x334cdc},'attributes':[_0x3fd804('0xe')]}});},exports['getUserById']=function(_0x2c17d7){const _0x4d9dc4=_0x1256c3;return request(_0x4d9dc4('0x2e'),{'options':{'where':{'id':_0x2c17d7},'attributes':[_0x4d9dc4('0x10')]}});},exports[_0x1256c3('0x35')]=function(_0x7149f2){const _0x36ae8c=_0x1256c3;return request(_0x36ae8c('0x31'),{'options':{'where':{'id':_0x7149f2},'attributes':[_0x36ae8c('0x10')]}});},exports[_0x1256c3('0x30')]=function(_0x283c93){return request('ShowSound',{'options':{'where':{'id':_0x283c93},'attributes':['save_name']}});},exports[_0x1256c3('0x2f')]=function(_0x3d2b88){const _0x3627f1=_0x1256c3;return request(_0x3627f1('0x7'),{'options':{'raw':![],'where':{'id':_0x3d2b88},'include':[{'model':_0x3627f1('0x1b'),'as':_0x3627f1('0x34')}]}});},exports[_0x1256c3('0x20')]=function(_0x3279ba){const _0x46fdd0=_0x1256c3;return request('ShowSmsAccount',{'options':{'where':{'id':_0x3279ba},'attributes':['id',_0x46fdd0('0x10')]}});},exports['createSmsMessage']=function(_0x209421){const _0x31b291=_0x1256c3;return request(_0x31b291('0x15'),{'body':_0x209421});},exports[_0x1256c3('0x37')]=function(_0x55f1dc){return request('CreateSquareDetailsReport',{'body':_0x55f1dc});},exports[_0x1256c3('0x2d')]=function(_0x3206af){const _0x2ec530=_0x1256c3;return request('CreateSquareReport',{'body':_[_0x2ec530('0x2a')](_0x3206af,{'project_name':_0x3206af[_0x2ec530('0x19')],'prev_project_name':_0x3206af[_0x2ec530('0x1')]||'','is_subproject':_0x3206af[_0x2ec530('0x1')]?!![]:![],'leaveAt':moment()[_0x2ec530('0x12')]('YYYY-MM-DD\x20HH:mm:ss')})});},exports[_0x1256c3('0x11')]=function(_0x2e59e5){const _0x20ef17=_0x1256c3;return request(_0x20ef17('0x1a'),{'body':_0x2e59e5});},exports[_0x1256c3('0x23')]=function(_0x497e75){const _0x5d8a4b=_0x1256c3;return request(_0x5d8a4b('0x3'),{'body':_0x497e75});},exports[_0x1256c3('0x27')]=function(_0x278b9a){const _0x29b3a4=_0x1256c3;return request(_0x29b3a4('0x33'),{'options':{'raw':![],'where':{'phone':_0x278b9a[_0x29b3a4('0xd')],'ListId':_0x278b9a[_0x29b3a4('0x24')]}}})[_0x29b3a4('0x1c')](function(_0x20d3cd){const _0x83ea60=_0x29b3a4;if(_0x20d3cd)return _0x20d3cd;return request(_0x83ea60('0x14'),{'body':_0x278b9a});});},exports[_0x1256c3('0x9')]=function(_0x115187){const _0x5f036e=_0x1256c3;return request(_0x5f036e('0x1f'),{'options':{'where':{'id':_0x115187},'attributes':['name']}});},exports[_0x1256c3('0x18')]=function(_0x2292f0,_0x59e7e5){const _0x5b0998=_0x1256c3;return request(_0x5b0998('0x4'),{'body':{'interface':_0x59e7e5},'options':{'where':_0x2292f0}});},exports[_0x1256c3('0x32')]=function(_0x3b36d7,_0x232836,_0x283867){const _0x4bdfbc=_0x1256c3;return request(_0x4bdfbc('0xb'),{'body':{'type':_0x232836,'uniqueid':_0x283867},'options':{'where':_0x3b36d7}});},exports[_0x1256c3('0x22')]=function(_0x16fad0){const _0x3d10ac=_0x1256c3;return request(_0x3d10ac('0x2'),{'body':{},'options':{'where':_0x16fad0}});},exports[_0x1256c3('0x16')]=function(_0x81bc37){return request('LogoutUser',{'body':{},'options':{'where':_0x81bc37}});}; \ No newline at end of file +const a1032_0x1dc4=['CreateSquareMessage','then','CreateSquareRecording','ShowSound','createCmContact','getPauseById','name','ShowVariable','createSquareDetailsReport','ShowSquareOdbc','agentPause','createSmsMessage','getSmsAccountById','ShowPause','format','MailServerOut','PauseUser','http','getSoundById','getMailAccountById','ShowSquareProject','agentLogout','production','client','arg_2','CreateCmContact','email','getTrunkById','agentLogin','ShowInterval','getSquareOdbcById','getIntervalById','createSquareRecording','dsn','createSquareReport','Intervals','LogoutUser','message','lodash','getUserById','error','getSquareProjectById','catch','LoginUser','ListId','CreateSmsMessage','ShowMailAccount','agentUnpause','ShowSmsAccount','phone','CreateSquareDetailsReport','ShowVoiceQueue','ShowCmHopper','getVoiceQueueById','createSquareMessage','request','getVariableById','YYYY-MM-DD\x20HH:mm:ss'];(function(_0x4e1f23,_0x1dc411){const _0x4f8a2c=function(_0x20c354){while(--_0x20c354){_0x4e1f23['push'](_0x4e1f23['shift']());}};_0x4f8a2c(++_0x1dc411);}(a1032_0x1dc4,0x143));const a1032_0x4f8a=function(_0x4e1f23,_0x1dc411){_0x4e1f23=_0x4e1f23-0x0;let _0x4f8a2c=a1032_0x1dc4[_0x4e1f23];return _0x4f8a2c;};const _0x495266=a1032_0x4f8a;'use strict';const moment=require('moment'),_=require(_0x495266('0x5')),jayson=require('jayson/promise'),client=jayson[_0x495266('0x30')][_0x495266('0x2a')]({'port':0x2329});function request(_0x20c354,_0x1f74fb){return new Promise(function(_0x537933,_0x7d9ef4){const _0x534b12=a1032_0x4f8a;return client[_0x534b12('0x16')](_0x20c354,_0x1f74fb)['then'](function(_0x2b96b3){const _0x5223ca=_0x534b12;return _0x2b96b3['error']?_0x7d9ef4(_0x2b96b3[_0x5223ca('0x7')][_0x5223ca('0x4')]):_0x537933(_0x2b96b3['result']);})[_0x534b12('0x9')](function(_0xd12074){return _0x7d9ef4(_0xd12074);});});}exports['getSquareProject']=function(_0x5b8eaf){const _0x3aa73e=_0x495266;return request(_0x3aa73e('0x2d'),{'options':{'raw':![],'where':{'name':_0x5b8eaf},'attributes':[_0x3aa73e('0x2f')]}});},exports[_0x495266('0x2c')]=function(_0xd8ee82){const _0x2b4a64=_0x495266;return request(_0x2b4a64('0xd'),{'options':{'raw':![],'where':{'id':_0xd8ee82},'include':[{'model':_0x2b4a64('0x28'),'as':'Smtp'}],'attributes':['id',_0x2b4a64('0x1f'),_0x2b4a64('0x33')]}});},exports[_0x495266('0x8')]=function(_0x3710d5){const _0x1a9ef1=_0x495266;return request(_0x1a9ef1('0x2d'),{'options':{'where':{'id':_0x3710d5},'attributes':[_0x1a9ef1('0x1f')]}});},exports[_0x495266('0x14')]=function(_0x1b0663){const _0x17f38f=_0x495266;return request(_0x17f38f('0x12'),{'options':{'where':{'id':_0x1b0663},'attributes':[_0x17f38f('0x1f')]}});},exports[_0x495266('0x17')]=function(_0x227df1){const _0x46fd90=_0x495266;return request(_0x46fd90('0x20'),{'options':{'where':{'id':_0x227df1},'attributes':['name']}});},exports[_0x495266('0x37')]=function(_0xfbb6b6){const _0x24b31c=_0x495266;return request(_0x24b31c('0x22'),{'options':{'where':{'id':_0xfbb6b6},'attributes':[_0x24b31c('0x0')]}});},exports[_0x495266('0x6')]=function(_0x12715c){return request('ShowUser',{'options':{'where':{'id':_0x12715c},'attributes':['name']}});},exports[_0x495266('0x34')]=function(_0x17ef7b){const _0x17f370=_0x495266;return request('ShowTrunk',{'options':{'where':{'id':_0x17ef7b},'attributes':[_0x17f370('0x1f')]}});},exports[_0x495266('0x2b')]=function(_0x1f1f76){const _0x1c907b=_0x495266;return request(_0x1c907b('0x1c'),{'options':{'where':{'id':_0x1f1f76},'attributes':['save_name']}});},exports[_0x495266('0x38')]=function(_0x386823){const _0x15d092=_0x495266;return request(_0x15d092('0x36'),{'options':{'raw':![],'where':{'id':_0x386823},'include':[{'model':'Interval','as':_0x15d092('0x2')}]}});},exports[_0x495266('0x25')]=function(_0x1478e9){const _0x43e9ce=_0x495266;return request(_0x43e9ce('0xf'),{'options':{'where':{'id':_0x1478e9},'attributes':['id',_0x43e9ce('0x1f')]}});},exports[_0x495266('0x24')]=function(_0x5e15c3){const _0x11884a=_0x495266;return request(_0x11884a('0xc'),{'body':_0x5e15c3});},exports[_0x495266('0x21')]=function(_0x258fad){const _0x2778ca=_0x495266;return request(_0x2778ca('0x11'),{'body':_0x258fad});},exports[_0x495266('0x1')]=function(_0x398b23){const _0x3229f9=_0x495266;return request('CreateSquareReport',{'body':_['merge'](_0x398b23,{'project_name':_0x398b23['arg_1'],'prev_project_name':_0x398b23[_0x3229f9('0x31')]||'','is_subproject':_0x398b23[_0x3229f9('0x31')]?!![]:![],'leaveAt':moment()[_0x3229f9('0x27')](_0x3229f9('0x18'))})});},exports[_0x495266('0x39')]=function(_0x280114){const _0x2e433f=_0x495266;return request(_0x2e433f('0x1b'),{'body':_0x280114});},exports[_0x495266('0x15')]=function(_0x5c28aa){const _0x21a45a=_0x495266;return request(_0x21a45a('0x19'),{'body':_0x5c28aa});},exports[_0x495266('0x1d')]=function(_0x15670b){const _0x3367d5=_0x495266;return request(_0x3367d5('0x13'),{'options':{'raw':![],'where':{'phone':_0x15670b[_0x3367d5('0x10')],'ListId':_0x15670b[_0x3367d5('0xb')]}}})[_0x3367d5('0x1a')](function(_0x25a9cd){const _0x356c88=_0x3367d5;if(_0x25a9cd)return _0x25a9cd;return request(_0x356c88('0x32'),{'body':_0x15670b});});},exports[_0x495266('0x1e')]=function(_0x2e062f){const _0x6476cd=_0x495266;return request(_0x6476cd('0x26'),{'options':{'where':{'id':_0x2e062f},'attributes':['name']}});},exports[_0x495266('0x35')]=function(_0x3c3919,_0x21a19b){const _0x33501f=_0x495266;return request(_0x33501f('0xa'),{'body':{'interface':_0x21a19b},'options':{'where':_0x3c3919}});},exports[_0x495266('0x23')]=function(_0x3be769,_0x34cfb8,_0x1d8223){const _0xd82781=_0x495266;return request(_0xd82781('0x29'),{'body':{'type':_0x34cfb8,'uniqueid':_0x1d8223},'options':{'where':_0x3be769}});},exports[_0x495266('0xe')]=function(_0x56a488){return request('UnpauseUser',{'body':{},'options':{'where':_0x56a488}});},exports[_0x495266('0x2e')]=function(_0x442f76){const _0x3b6032=_0x495266;return request(_0x3b6032('0x3'),{'body':{},'options':{'where':_0x442f76}});}; \ 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 8bba50b..c39aa91 100644 --- a/server/services/agi/scripts/aws/index.js +++ b/server/services/agi/scripts/aws/index.js @@ -1 +1 @@ -const a1032_0x25c4=['exports','./lex','./polly'];(function(_0x5dcb62,_0x25c4f0){const _0x42f99d=function(_0x257e7e){while(--_0x257e7e){_0x5dcb62['push'](_0x5dcb62['shift']());}};_0x42f99d(++_0x25c4f0);}(a1032_0x25c4,0x145));const a1032_0x42f9=function(_0x5dcb62,_0x25c4f0){_0x5dcb62=_0x5dcb62-0x0;let _0x42f99d=a1032_0x25c4[_0x5dcb62];return _0x42f99d;};const _0x141b2d=a1032_0x42f9,polly=require(_0x141b2d('0x1')),lex=require(_0x141b2d('0x0'));module[_0x141b2d('0x2')]={'polly':polly,'lex':lex}; \ No newline at end of file +const a1033_0x443d=['exports','./lex'];(function(_0x41ce5a,_0x443dc5){const _0x549b0c=function(_0x537ae9){while(--_0x537ae9){_0x41ce5a['push'](_0x41ce5a['shift']());}};_0x549b0c(++_0x443dc5);}(a1033_0x443d,0x1e6));const a1033_0x549b=function(_0x41ce5a,_0x443dc5){_0x41ce5a=_0x41ce5a-0x0;let _0x549b0c=a1033_0x443d[_0x41ce5a];return _0x549b0c;};const _0x134d29=a1033_0x549b,polly=require('./polly'),lex=require(_0x134d29('0x1'));module[_0x134d29('0x0')]={'polly':polly,'lex':lex}; \ No newline at end of file diff --git a/server/services/agi/scripts/aws/lex/index.js b/server/services/agi/scripts/aws/lex/index.js index 18bee39..79e5d66 100644 --- a/server/services/agi/scripts/aws/lex/index.js +++ b/server/services/agi/scripts/aws/lex/index.js @@ -1 +1 @@ -const a1033_0x134b=['./lib/api','exports'];(function(_0x278701,_0x134be4){const _0x5639c5=function(_0x4da412){while(--_0x4da412){_0x278701['push'](_0x278701['shift']());}};_0x5639c5(++_0x134be4);}(a1033_0x134b,0x140));const a1033_0x5639=function(_0x278701,_0x134be4){_0x278701=_0x278701-0x0;let _0x5639c5=a1033_0x134b[_0x278701];return _0x5639c5;};const _0x3a0108=a1033_0x5639;'use strict';const lex=require(_0x3a0108('0x0'));module[_0x3a0108('0x1')]=function(_0x4da412,_0x1decf6,_0x1a9740,_0x37dbbe,_0x1a3a3a,_0xe3bae2){return lex(_0x4da412,_0x1decf6,_0x1a9740,_0x37dbbe,_0x1a3a3a,_0xe3bae2);}; \ No newline at end of file +const a1034_0x1051=['exports','./lib/api'];(function(_0x33aa90,_0x10513f){const _0x484aaa=function(_0x2f19cd){while(--_0x2f19cd){_0x33aa90['push'](_0x33aa90['shift']());}};_0x484aaa(++_0x10513f);}(a1034_0x1051,0x176));const a1034_0x484a=function(_0x33aa90,_0x10513f){_0x33aa90=_0x33aa90-0x0;let _0x484aaa=a1034_0x1051[_0x33aa90];return _0x484aaa;};const _0x5ba02a=a1034_0x484a;'use strict';const lex=require(_0x5ba02a('0x1'));module[_0x5ba02a('0x0')]=function(_0x2f19cd,_0x2aa787,_0x1f378e,_0xc76f2b,_0x2f7bee,_0x22bf94){return lex(_0x2f19cd,_0x2aa787,_0x1f378e,_0xc76f2b,_0x2f7bee,_0x22bf94);}; \ 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 4d69d09..1272613 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_0x54a6=['$LATEST','exports','LexRuntime','slots','slot_','aws-sdk'];(function(_0x4e6ed8,_0x54a66c){const _0xddacca=function(_0x382607){while(--_0x382607){_0x4e6ed8['push'](_0x4e6ed8['shift']());}};_0xddacca(++_0x54a66c);}(a1034_0x54a6,0x14f));const a1034_0xddac=function(_0x4e6ed8,_0x54a66c){_0x4e6ed8=_0x4e6ed8-0x0;let _0xddacca=a1034_0x54a6[_0x4e6ed8];return _0xddacca;};const _0x523493=a1034_0xddac;'use strict';const AWS=require(_0x523493('0x0'));function lexResult(_0x382607,_0x30b8c0){return new Promise(function(_0x1e585e,_0xc8218c){_0x382607['postText'](_0x30b8c0,function(_0x45122a,_0xc1ca7b){const _0x1f4f71=a1034_0xddac;_0x45122a&&_0xc8218c(_0x45122a);if(_0xc1ca7b['slots'])for(const _0x367968 in _0xc1ca7b['slots']){if(typeof _0xc1ca7b[_0x1f4f71('0x4')][_0x367968]!=='undefined'){const _0x23695e=_0xc1ca7b[_0x1f4f71('0x4')][_0x367968];_0xc1ca7b[_0x1f4f71('0x5')+_0x367968]=_0x23695e;}}_0x1e585e(_0xc1ca7b);});});}module[_0x523493('0x2')]=function(_0x43bfc2,_0x55aff1,_0x407b09,_0x137844,_0x56fffa,_0x3ce965){const _0x107b4b=_0x523493,_0x57401e=new AWS[(_0x107b4b('0x3'))]({'accessKeyId':_0x55aff1,'secretAccessKey':_0x407b09,'region':_0x137844}),_0x71ad55={'botAlias':_0x107b4b('0x1'),'botName':_0x3ce965,'inputText':_0x56fffa,'userId':_0x43bfc2};return lexResult(_0x57401e,_0x71ad55);}; \ No newline at end of file +const a1035_0x4a59=['aws-sdk','slot_','slots','LexRuntime','postText'];(function(_0x10aaef,_0x4a598f){const _0x1fbf3d=function(_0x371890){while(--_0x371890){_0x10aaef['push'](_0x10aaef['shift']());}};_0x1fbf3d(++_0x4a598f);}(a1035_0x4a59,0x1e8));const a1035_0x1fbf=function(_0x10aaef,_0x4a598f){_0x10aaef=_0x10aaef-0x0;let _0x1fbf3d=a1035_0x4a59[_0x10aaef];return _0x1fbf3d;};const _0x39fac4=a1035_0x1fbf;'use strict';const AWS=require(_0x39fac4('0x2'));function lexResult(_0x371890,_0x444e1b){return new Promise(function(_0x4cd6f0,_0x29068a){const _0xe77d74=a1035_0x1fbf;_0x371890[_0xe77d74('0x1')](_0x444e1b,function(_0x28066d,_0x5ead8e){const _0xd189e=_0xe77d74;_0x28066d&&_0x29068a(_0x28066d);if(_0x5ead8e[_0xd189e('0x4')])for(const _0x9a4b74 in _0x5ead8e['slots']){if(typeof _0x5ead8e[_0xd189e('0x4')][_0x9a4b74]!=='undefined'){const _0x1bf2fd=_0x5ead8e[_0xd189e('0x4')][_0x9a4b74];_0x5ead8e[_0xd189e('0x3')+_0x9a4b74]=_0x1bf2fd;}}_0x4cd6f0(_0x5ead8e);});});}module['exports']=function(_0x2bbf75,_0x32c902,_0x468cad,_0x2b65a0,_0x2c8078,_0x257ba3){const _0x5237a6=_0x39fac4,_0x1e5215=new AWS[(_0x5237a6('0x0'))]({'accessKeyId':_0x32c902,'secretAccessKey':_0x468cad,'region':_0x2b65a0}),_0xe30ccf={'botAlias':'$LATEST','botName':_0x257ba3,'inputText':_0x2c8078,'userId':_0x2bbf75};return lexResult(_0x1e5215,_0xe30ccf);}; \ 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 8b47b8e..85885a8 100644 --- a/server/services/agi/scripts/aws/polly/index.js +++ b/server/services/agi/scripts/aws/polly/index.js @@ -1 +1 @@ -const a1035_0x5b92=['./lib/api'];(function(_0x4870e5,_0x5b9251){const _0x8a43d1=function(_0x44ee8b){while(--_0x44ee8b){_0x4870e5['push'](_0x4870e5['shift']());}};_0x8a43d1(++_0x5b9251);}(a1035_0x5b92,0x16c));const a1035_0x8a43=function(_0x4870e5,_0x5b9251){_0x4870e5=_0x4870e5-0x0;let _0x8a43d1=a1035_0x5b92[_0x4870e5];return _0x8a43d1;};const _0x5d9d17=a1035_0x8a43;'use strict';const polly=require(_0x5d9d17('0x0'));module['exports']=function(_0x44ee8b,_0xa49a25,_0x58564f,_0x2b161d,_0x1f574d,_0x5cbddb,_0x2d8f48){return polly(_0x44ee8b,_0xa49a25,_0x58564f,_0x2b161d,_0x1f574d,_0x5cbddb,_0x2d8f48);}; \ No newline at end of file +const a1036_0x44b0=['exports'];(function(_0x1ff6a3,_0x44b0d4){const _0x459d78=function(_0x344e0e){while(--_0x344e0e){_0x1ff6a3['push'](_0x1ff6a3['shift']());}};_0x459d78(++_0x44b0d4);}(a1036_0x44b0,0x1a9));const a1036_0x459d=function(_0x1ff6a3,_0x44b0d4){_0x1ff6a3=_0x1ff6a3-0x0;let _0x459d78=a1036_0x44b0[_0x1ff6a3];return _0x459d78;};const _0x49b022=a1036_0x459d;'use strict';const polly=require('./lib/api');module[_0x49b022('0x0')]=function(_0x344e0e,_0x29e59a,_0x1a1b7a,_0x179105,_0x3651d7,_0xdea70c,_0x1abbad){return polly(_0x344e0e,_0x29e59a,_0x1a1b7a,_0x179105,_0x3651d7,_0xdea70c,_0x1abbad);}; \ 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 5463c83..c0e3fd1 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_0x53bf=['No\x20data\x20response\x20from\x20aws\x20Polly!','writeFile','mp3','Polly','AudioStream','exports'];(function(_0x33f4af,_0x53bf93){const _0x10d5c6=function(_0x22a874){while(--_0x22a874){_0x33f4af['push'](_0x33f4af['shift']());}};_0x10d5c6(++_0x53bf93);}(a1036_0x53bf,0x8a));const a1036_0x10d5=function(_0x33f4af,_0x53bf93){_0x33f4af=_0x33f4af-0x0;let _0x10d5c6=a1036_0x53bf[_0x33f4af];return _0x10d5c6;};const _0x400552=a1036_0x10d5;'use strict';const fs=require('fs'),AWS=require('aws-sdk');function pollyResult(_0x22a874,_0x57f629,_0x36a97f){return new Promise(function(_0x243d38,_0x27b253){_0x22a874['synthesizeSpeech'](_0x57f629,function(_0x5c3511,_0x28f2cf){const _0x31bc72=a1036_0x10d5;if(_0x5c3511)_0x27b253(_0x5c3511);else _0x28f2cf?_0x28f2cf['AudioStream']instanceof Buffer?fs[_0x31bc72('0x1')](_0x36a97f,_0x28f2cf[_0x31bc72('0x4')],function(_0x6292e0){_0x6292e0?_0x27b253(_0x6292e0):_0x243d38();}):_0x27b253(new Error('Invalid\x20data\x20response\x20from\x20aws\x20Polly!')):_0x27b253(new Error(_0x31bc72('0x0')));});});}module[_0x400552('0x5')]=function(_0x1abab5,_0x4da975,_0x1d5b59,_0x323b54,_0x1e3a22,_0x10f86f,_0x2c1bb5){const _0x3cada0=_0x400552,_0x36d10e=new AWS[(_0x3cada0('0x3'))]({'accessKeyId':_0x1abab5,'secretAccessKey':_0x4da975,'region':_0x1d5b59}),_0xc6ea32={'Text':_0x1e3a22,'TextType':_0x10f86f||'text','OutputFormat':_0x3cada0('0x2'),'VoiceId':_0x323b54};return pollyResult(_0x36d10e,_0xc6ea32,_0x2c1bb5);}; \ No newline at end of file +const a1037_0x463f=['synthesizeSpeech','No\x20data\x20response\x20from\x20aws\x20Polly!','text','AudioStream','Invalid\x20data\x20response\x20from\x20aws\x20Polly!','mp3','exports'];(function(_0x3e4455,_0x463f11){const _0x2ae4ce=function(_0x7d4228){while(--_0x7d4228){_0x3e4455['push'](_0x3e4455['shift']());}};_0x2ae4ce(++_0x463f11);}(a1037_0x463f,0x8b));const a1037_0x2ae4=function(_0x3e4455,_0x463f11){_0x3e4455=_0x3e4455-0x0;let _0x2ae4ce=a1037_0x463f[_0x3e4455];return _0x2ae4ce;};const _0xaf17da=a1037_0x2ae4;'use strict';const fs=require('fs'),AWS=require('aws-sdk');function pollyResult(_0x7d4228,_0x188419,_0x50d95d){return new Promise(function(_0x29450a,_0x71d7ca){const _0x52d2f6=a1037_0x2ae4;_0x7d4228[_0x52d2f6('0x1')](_0x188419,function(_0x17a991,_0x3f5971){const _0x35b153=_0x52d2f6;if(_0x17a991)_0x71d7ca(_0x17a991);else _0x3f5971?_0x3f5971['AudioStream']instanceof Buffer?fs['writeFile'](_0x50d95d,_0x3f5971[_0x35b153('0x4')],function(_0x487c16){_0x487c16?_0x71d7ca(_0x487c16):_0x29450a();}):_0x71d7ca(new Error(_0x35b153('0x5'))):_0x71d7ca(new Error(_0x35b153('0x2')));});});}module[_0xaf17da('0x0')]=function(_0x54b88a,_0x2beb2d,_0x48a482,_0x471d5b,_0x2709d9,_0x176670,_0x39b30b){const _0x70b39=_0xaf17da,_0x22d2a8=new AWS['Polly']({'accessKeyId':_0x54b88a,'secretAccessKey':_0x2beb2d,'region':_0x48a482}),_0x3d2790={'Text':_0x2709d9,'TextType':_0x176670||_0x70b39('0x3'),'OutputFormat':_0x70b39('0x6'),'VoiceId':_0x471d5b};return pollyResult(_0x22d2a8,_0x3d2790,_0x39b30b);}; \ 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 ecebd3a..eee2954 100644 --- a/server/services/agi/scripts/google/asr/index.js +++ b/server/services/agi/scripts/google/asr/index.js @@ -1 +1 @@ -const a1037_0x40bb=['./lib/api','exports'];(function(_0x4295c4,_0x40bbb6){const _0xc87262=function(_0x301521){while(--_0x301521){_0x4295c4['push'](_0x4295c4['shift']());}};_0xc87262(++_0x40bbb6);}(a1037_0x40bb,0xa1));const a1037_0xc872=function(_0x4295c4,_0x40bbb6){_0x4295c4=_0x4295c4-0x0;let _0xc87262=a1037_0x40bb[_0x4295c4];return _0xc87262;};const _0x111c6a=a1037_0xc872;'use strict';const asr=require(_0x111c6a('0x1'));module[_0x111c6a('0x0')]=function(_0x301521,_0x1b8f50,_0x13b15d){return asr(_0x301521,_0x1b8f50,_0x13b15d);}; \ No newline at end of file +'use strict';const asr=require('./lib/api');module['exports']=function(_0xff4a76,_0x291689,_0x4ef5f8){return asr(_0xff4a76,_0x291689,_0x4ef5f8);}; \ 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 99f88e9..af045c1 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_0x285c=['/v1/speech:recognize?key=','POST','8000','LINEAR16','filepath\x20should\x20be\x20a\x20string','toString','string','undefined','length','base64','exports','https://speech.googleapis.com','lang\x20should\x20be\x20a\x20string'];(function(_0x559290,_0x285ceb){const _0x470c42=function(_0x1985f3){while(--_0x1985f3){_0x559290['push'](_0x559290['shift']());}};_0x470c42(++_0x285ceb);}(a1038_0x285c,0x16a));const a1038_0x470c=function(_0x559290,_0x285ceb){_0x559290=_0x559290-0x0;let _0x470c42=a1038_0x285c[_0x559290];return _0x470c42;};const _0x1752f2=a1038_0x470c;'use strict';const fs=require('fs'),host=_0x1752f2('0x0');module[_0x1752f2('0xc')]=function(_0x1985f3,_0x4d59ee,_0x317355){return new Promise(function(_0x5cd581,_0x3e9a92){const _0x3e7864=a1038_0x470c;let _0x8ab085;if(typeof _0x1985f3!==_0x3e7864('0x8')||_0x1985f3[_0x3e7864('0xa')]===0x0)return _0x3e9a92(_0x3e7864('0x6'));if(typeof _0x4d59ee!==_0x3e7864('0x8')||_0x4d59ee[_0x3e7864('0xa')]===0x0)return _0x3e9a92('key\x20should\x20be\x20a\x20string');if(typeof _0x317355!==_0x3e7864('0x9')&&(typeof _0x317355!=='string'||_0x317355[_0x3e7864('0xa')]===0x0))return _0x3e9a92(_0x3e7864('0x1'));try{_0x8ab085=fs['readFileSync'](_0x1985f3)[_0x3e7864('0x7')](_0x3e7864('0xb'));}catch(_0x5b5537){return _0x3e9a92(_0x5b5537);}return _0x5cd581({'method':_0x3e7864('0x3'),'uri':host+_0x3e7864('0x2')+_0x4d59ee,'body':{'config':{'encoding':_0x3e7864('0x5'),'sampleRateHertz':_0x3e7864('0x4'),'languageCode':_0x317355},'audio':{'content':_0x8ab085}},'json':!![]});});}; \ No newline at end of file +const a1039_0x59ac=['readFileSync','length','exports','https://speech.googleapis.com','string','/v1/speech:recognize?key=','LINEAR16','POST','toString'];(function(_0x7c87c8,_0x59ac8b){const _0x433d8d=function(_0x250ac6){while(--_0x250ac6){_0x7c87c8['push'](_0x7c87c8['shift']());}};_0x433d8d(++_0x59ac8b);}(a1039_0x59ac,0x12a));const a1039_0x433d=function(_0x7c87c8,_0x59ac8b){_0x7c87c8=_0x7c87c8-0x0;let _0x433d8d=a1039_0x59ac[_0x7c87c8];return _0x433d8d;};const _0x252b77=a1039_0x433d;'use strict';const fs=require('fs'),host=_0x252b77('0x2');module[_0x252b77('0x1')]=function(_0x250ac6,_0x5390df,_0x4a76e6){return new Promise(function(_0x16d7a7,_0x127938){const _0x43f2d0=a1039_0x433d;let _0x15fb4f;if(typeof _0x250ac6!==_0x43f2d0('0x3')||_0x250ac6['length']===0x0)return _0x127938('filepath\x20should\x20be\x20a\x20string');if(typeof _0x5390df!==_0x43f2d0('0x3')||_0x5390df[_0x43f2d0('0x0')]===0x0)return _0x127938('key\x20should\x20be\x20a\x20string');if(typeof _0x4a76e6!=='undefined'&&(typeof _0x4a76e6!==_0x43f2d0('0x3')||_0x4a76e6[_0x43f2d0('0x0')]===0x0))return _0x127938('lang\x20should\x20be\x20a\x20string');try{_0x15fb4f=fs[_0x43f2d0('0x8')](_0x250ac6)[_0x43f2d0('0x7')]('base64');}catch(_0x1de663){return _0x127938(_0x1de663);}return _0x16d7a7({'method':_0x43f2d0('0x6'),'uri':host+_0x43f2d0('0x4')+_0x5390df,'body':{'config':{'encoding':_0x43f2d0('0x5'),'sampleRateHertz':'8000','languageCode':_0x4a76e6},'audio':{'content':_0x15fb4f}},'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 e7998e1..9569d10 100644 --- a/server/services/agi/scripts/google/index.js +++ b/server/services/agi/scripts/google/index.js @@ -1 +1 @@ -const a1039_0x3995=['exports','./asr'];(function(_0x2ab1da,_0x3995c1){const _0x57090c=function(_0x2d60bd){while(--_0x2d60bd){_0x2ab1da['push'](_0x2ab1da['shift']());}};_0x57090c(++_0x3995c1);}(a1039_0x3995,0x1e6));const a1039_0x5709=function(_0x2ab1da,_0x3995c1){_0x2ab1da=_0x2ab1da-0x0;let _0x57090c=a1039_0x3995[_0x2ab1da];return _0x57090c;};const _0x241995=a1039_0x5709,asr=require(_0x241995('0x1'));module[_0x241995('0x0')]={'asr':asr}; \ No newline at end of file +const a1040_0x3d67=['exports','./asr'];(function(_0x345934,_0x3d6734){const _0x5c65b9=function(_0x35d808){while(--_0x35d808){_0x345934['push'](_0x345934['shift']());}};_0x5c65b9(++_0x3d6734);}(a1040_0x3d67,0xa0));const a1040_0x5c65=function(_0x345934,_0x3d6734){_0x345934=_0x345934-0x0;let _0x5c65b9=a1040_0x3d67[_0x345934];return _0x5c65b9;};const _0x48a146=a1040_0x5c65,asr=require(_0x48a146('0x1'));module[_0x48a146('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 5a56992..af38d92 100644 --- a/server/services/agi/scripts/index.js +++ b/server/services/agi/scripts/index.js @@ -1 +1 @@ -const a1040_0x2aa8=['%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s','agi','sox','googleCloudTTS','pipe','path','asr','Tilde\x20ASR\x20transcription','querystring','results','parse','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','toString','Tilde\x20ASR\x20confidence','text','status','channelData','request-promise-native','alternatives','error\x20convert','statusCode','confidence','POST','freeform=3','./google','data','input','googleASR','googleTTS','tildeASR','generate','AudioFromTts','WHAT_EVER','host','googleDialogflow','request\x20to\x20','.wav','./aws','model=%s','text:synthesize','finish','./sestek','result','audiofile','source','from','protocol','base64','Data','stringify','isFallbackIntent','CustomActionData','writeFileSync','awsPolly','http','statusMessage','readFileSync','util','map','metadata','google-tts-api','transcript','nda','info','../../../config/logger','fulfillment','pathname','finish\x20to\x20convert','\x20failed,\x20status\x20code\x20=\x20','apiai-promise','download\x20error','get','action','.mp3','awsLex','https','speech','textRequest','split','./tilde','message','score','start','https:','then','writeFile','createWriteStream','resolve','unlink','ssml','[%s]\x20%s:%s','googleCloudTTS\x20path','catch','googleASR\x20confidence','error','format','ispeechASR','CustomAction','end','777','voice','https://texttospeech.googleapis.com/v1/','md5','join','audioContent','?key=','chmodSync','tmp'];(function(_0xcc6c8,_0x2aa8ba){const _0x62f1b0=function(_0x2561eb){while(--_0x2561eb){_0xcc6c8['push'](_0xcc6c8['shift']());}};_0x62f1b0(++_0x2aa8ba);}(a1040_0x2aa8,0x16f));const a1040_0x62f1=function(_0xcc6c8,_0x2aa8ba){_0xcc6c8=_0xcc6c8-0x0;let _0x62f1b0=a1040_0x2aa8[_0xcc6c8];return _0x62f1b0;};const _0x4f6ab7=a1040_0x62f1;'use strict';const fs=require('fs'),path=require(_0x4f6ab7('0x46')),http=require(_0x4f6ab7('0xb')),https=require(_0x4f6ab7('0x20')),{URL}=require('url'),rs=require('randomstring'),sox=require(_0x4f6ab7('0x43')),rp=require(_0x4f6ab7('0x52')),util=require(_0x4f6ab7('0xe')),querystring=require(_0x4f6ab7('0x49')),tts=require(_0x4f6ab7('0x11')),apiai=require(_0x4f6ab7('0x1a')),md5=require(_0x4f6ab7('0x3b')),google=require(_0x4f6ab7('0x59')),aws=require(_0x4f6ab7('0x66')),tilde=require(_0x4f6ab7('0x24')),sestek=require(_0x4f6ab7('0x6a')),logger=require(_0x4f6ab7('0x15'))(_0x4f6ab7('0x42')),ISPEECH_API='https://api.ispeech.org/api/rest';function downloadFile(_0x2561eb,_0x1f9d24){return new Promise(function(_0x3d5dc9,_0x1c1f46){const _0x2d3138=a1040_0x62f1,_0x58f541=new URL(_0x2561eb),_0x3c683f=_0x58f541[_0x2d3138('0x3')]==='https:'?https:http,_0x37914d={'host':_0x58f541[_0x2d3138('0x62')],'path':_0x58f541['pathname'],'headers':{'user-agent':_0x2d3138('0x61')}};_0x3c683f['get'](_0x37914d,function(_0x3c4e72){const _0x326446=_0x2d3138;if(_0x3c4e72[_0x326446('0x55')]!==0xc8){logger[_0x326446('0x33')](_0x326446('0x64')+_0x2561eb+_0x326446('0x19')+_0x3c4e72[_0x326446('0x55')]+'\x20('+_0x3c4e72[_0x326446('0xc')]+')'),_0x1c1f46(new Error(_0x326446('0x64')+_0x2561eb+'\x20failed,\x20status\x20code\x20=\x20'+_0x3c4e72[_0x326446('0x55')]+'\x20('+_0x3c4e72['statusMessage']+')'));return;}const _0x39e167=fs[_0x326446('0x2b')](_0x1f9d24);_0x39e167['on'](_0x326446('0x69'),function(){const _0x32f1ef=_0x326446;logger[_0x32f1ef('0x14')]('finish\x20download\x20file'),_0x39e167['close'](_0x3d5dc9);}),_0x39e167['on'](_0x326446('0x33'),function(_0x40ea0f){const _0x11c2cf=_0x326446;fs[_0x11c2cf('0x2d')](_0x1f9d24),logger[_0x11c2cf('0x33')](_0x11c2cf('0x1b'),_0x40ea0f),_0x1c1f46(_0x40ea0f);}),_0x3c4e72[_0x326446('0x45')](_0x39e167);})['on']('error',function(_0xb2fc32){const _0x4d7cba=_0x2d3138;logger[_0x4d7cba('0x33')](_0xb2fc32),_0x1c1f46(_0xb2fc32);})['end']();});}function uploadFile(_0x536a0f){return new Promise(function(_0x2ccf35,_0x42eff7){const _0x2602ce=a1040_0x62f1,_0x422778=new URL(_0x536a0f),_0x22beb6=_0x422778[_0x2602ce('0x3')]===_0x2602ce('0x28')?https:http,_0x8437a9={'host':_0x422778[_0x2602ce('0x62')],'path':_0x422778[_0x2602ce('0x17')],'headers':{'user-agent':_0x2602ce('0x61')}};_0x22beb6[_0x2602ce('0x1c')](_0x8437a9,function(_0x3bdb4c){const _0x2f2857=_0x2602ce;if(_0x3bdb4c[_0x2f2857('0x55')]!==0xc8){_0x42eff7(new Error(_0x2f2857('0x64')+_0x536a0f+'\x20failed,\x20status\x20code\x20=\x20'+_0x3bdb4c[_0x2f2857('0x55')]+'\x20('+_0x3bdb4c[_0x2f2857('0xc')]+')'));return;}let _0x43da34='';_0x3bdb4c['on'](_0x2f2857('0x5a'),function(_0x3d0ab7){_0x43da34+=_0x3d0ab7;}),_0x3bdb4c['on'](_0x2f2857('0x37'),function(){_0x2ccf35(_0x43da34);});})['on'](_0x2602ce('0x33'),function(_0x3669af){_0x42eff7(_0x3669af);})[_0x2602ce('0x37')]();});}function convertFile(_0x1c2c36,_0x270929){return new Promise(function(_0x2aec50,_0x1d3ed){const _0x3bc691=a1040_0x62f1,_0x204b5b=sox['transcode'](_0x1c2c36,_0x270929,{'sampleRate':0x1f40,'format':'wav','channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0x204b5b['on'](_0x3bc691('0x33'),function(_0x36f2a1){const _0x1f8f2b=_0x3bc691;logger[_0x1f8f2b('0x33')](_0x1f8f2b('0x54'),_0x36f2a1),_0x1d3ed(_0x36f2a1);}),_0x204b5b['on'](_0x3bc691('0x37'),function(){const _0x52d415=_0x3bc691;logger[_0x52d415('0x14')](_0x52d415('0x18')),_0x2aec50();}),_0x204b5b[_0x3bc691('0x27')]();});}function base64Decode(_0x82f4ea,_0x532dc8){const _0x55fab6=_0x4f6ab7,_0x220b17=path[_0x55fab6('0x2c')](__dirname,_0x55fab6('0x40'),rs[_0x55fab6('0x5f')](0x4)+_0x55fab6('0x65'));return fs[_0x55fab6('0x9')](_0x220b17,_0x82f4ea,_0x55fab6('0x4')),convertFile(_0x220b17,_0x532dc8)[_0x55fab6('0x29')](function(){const _0x1a7955=_0x55fab6;try{fs['unlink'](_0x220b17),fs[_0x1a7955('0x3f')](_0x532dc8,'777');}catch(_0x44ef6f){logger['error'](_0x44ef6f);}return _0x532dc8['split']('.')[0x0];});}function base64Encode(_0x421d44){const _0x3c81ab=_0x4f6ab7,_0x47d186=fs[_0x3c81ab('0xd')](_0x421d44);return Buffer[_0x3c81ab('0x2')](_0x47d186)[_0x3c81ab('0x4d')](_0x3c81ab('0x4'));}exports[_0x4f6ab7('0x44')]=function(_0x14baec,_0xeb58aa,_0x410980,_0x475e6d,_0x3b6a2f){const _0x424176=_0x4f6ab7;let _0x1f811e,_0x1f33dc;const _0x1bb4a1=_0x424176('0x3a'),_0x163e96=_0x424176('0x3e')+_0x14baec,_0x4a07f5={};_0xeb58aa===_0x424176('0x2e')?_0x4a07f5[_0x424176('0x5b')]={'ssml':_0x410980}:_0x4a07f5[_0x424176('0x5b')]={'text':_0x410980};_0x4a07f5[_0x424176('0x39')]={'languageCode':_0x475e6d,'ssmlGender':_0x3b6a2f},_0x4a07f5['audioConfig']={'audioEncoding':'MP3','sampleRateHertz':0x1f40};const _0x52be44={'url':_0x1bb4a1+_0x424176('0x68')+_0x163e96,'method':_0x424176('0x57'),'json':!![],'body':_0x4a07f5};return rp(_0x52be44)[_0x424176('0x29')](function(_0xd2493c){return new Promise(function(_0x2d9f79,_0x454731){const _0x3ceb33=a1040_0x62f1;_0x1f811e=path[_0x3ceb33('0x2c')](__dirname,'tmp',rs[_0x3ceb33('0x5f')](0x4)+_0x3ceb33('0x1e'));const _0x550dfb=Buffer[_0x3ceb33('0x2')](_0xd2493c[_0x3ceb33('0x3d')],_0x3ceb33('0x4'));return fs[_0x3ceb33('0x2a')](_0x1f811e,_0x550dfb,function(_0x3d9335){_0x454731(_0x3d9335);},function(_0x110090){const _0x129052=_0x3ceb33;fs[_0x129052('0x3f')](_0x1f811e,_0x129052('0x38')),_0x2d9f79(_0x110090);});});})['then'](function(){const _0xa98564=_0x424176;return _0x1f33dc=path['resolve'](__dirname,_0xa98564('0x40'),rs[_0xa98564('0x5f')](0x4)+_0xa98564('0x65')),convertFile(_0x1f811e,_0x1f33dc);})['then'](function(){const _0x59e0a5=_0x424176;try{fs[_0x59e0a5('0x2d')](_0x1f811e),fs[_0x59e0a5('0x3f')](_0x1f33dc,'777');}catch(_0x2117a5){logger[_0x59e0a5('0x33')](_0x2117a5);}return logger['info'](_0x59e0a5('0x30'),_0x1f33dc[_0x59e0a5('0x23')]('.')[0x0]),_0x1f33dc[_0x59e0a5('0x23')]('.')[0x0];});},exports[_0x4f6ab7('0x5d')]=function(_0x5537b3,_0x2a97d8){const _0x2f85b5=_0x4f6ab7;let _0xc9b710,_0x48d058;return tts(_0x5537b3,_0x2a97d8||'en',0x1)[_0x2f85b5('0x29')](function(_0x426f88){const _0xe65eef=_0x2f85b5;return logger[_0xe65eef('0x14')](_0x426f88),_0xc9b710=path[_0xe65eef('0x2c')](__dirname,_0xe65eef('0x40'),rs['generate'](0x4)+'.mp3'),downloadFile(_0x426f88,_0xc9b710);})[_0x2f85b5('0x29')](function(){const _0x5ddf58=_0x2f85b5;return _0x48d058=path[_0x5ddf58('0x2c')](__dirname,_0x5ddf58('0x40'),rs[_0x5ddf58('0x5f')](0x4)+_0x5ddf58('0x65')),convertFile(_0xc9b710,_0x48d058);})[_0x2f85b5('0x29')](function(){const _0x3d936b=_0x2f85b5;try{fs['unlink'](_0xc9b710),fs[_0x3d936b('0x3f')](_0x48d058,_0x3d936b('0x38'));}catch(_0x224029){logger[_0x3d936b('0x33')](_0x224029);}return logger[_0x3d936b('0x14')]('goggleTTS\x20path',_0x48d058['split']('.')[0x0]),_0x48d058[_0x3d936b('0x23')]('.')[0x0];});},exports[_0x4f6ab7('0x5c')]=function(_0x33041a,_0x50f694,_0x4fbf9b){const _0x5b7839=_0x4f6ab7;return google[_0x5b7839('0x47')](_0x33041a,_0x50f694,_0x4fbf9b)['then'](function(_0x512d8c){const _0x355b43=_0x5b7839;return logger[_0x355b43('0x14')](_0x512d8c['uri']),rp(_0x512d8c);})[_0x5b7839('0x29')](function(_0x365850){const _0x506a86=_0x5b7839;let _0x159ef0='',_0x51654b=0x0;try{fs[_0x506a86('0x2d')](_0x33041a);}catch(_0x2f5651){logger[_0x506a86('0x33')](_0x2f5651);}return _0x365850&&_0x365850[_0x506a86('0x4a')]&&(_0x159ef0=_0x365850[_0x506a86('0x4a')]['map'](function(_0x5bc78f){const _0x4de49b=_0x506a86;return _0x5bc78f&&_0x5bc78f[_0x4de49b('0x53')][0x0]&&_0x5bc78f[_0x4de49b('0x53')][0x0]['transcript']?_0x5bc78f[_0x4de49b('0x53')][0x0][_0x4de49b('0x12')]:'';})[_0x506a86('0x3c')]('\x0a'),_0x51654b=_0x365850[_0x506a86('0x4a')][_0x506a86('0xf')](function(_0x2ea71a){const _0xd91132=_0x506a86;return _0x2ea71a&&_0x2ea71a[_0xd91132('0x53')][0x0]&&_0x2ea71a[_0xd91132('0x53')][0x0][_0xd91132('0x56')]?_0x2ea71a[_0xd91132('0x53')][0x0]['confidence']:0x0;})[_0x506a86('0x3c')]('\x0a')),logger[_0x506a86('0x14')]('googleASR\x20transcription',_0x159ef0),logger['info'](_0x506a86('0x32'),_0x51654b),{'transcript':_0x159ef0,'confidence':_0x51654b};})[_0x5b7839('0x31')](function(_0x24dd7c){const _0x4a188f=_0x5b7839;logger[_0x4a188f('0x33')](_0x4a188f('0x2f'),_0x24dd7c[_0x4a188f('0x55')],_0x24dd7c['name'],_0x24dd7c[_0x4a188f('0x25')]);});},exports[_0x4f6ab7('0x63')]=function(_0x28af4d,_0x5525d2,_0x2c16b2,_0x38b566){const _0x3b7882=_0x4f6ab7,_0xa9d0d=apiai(_0x5525d2,{'language':_0x38b566||'en'});return _0xa9d0d[_0x3b7882('0x22')](_0x2c16b2,{'sessionId':md5(_0x28af4d)})['then'](function(_0x55a1f8){const _0x5adad2=_0x3b7882;return logger[_0x5adad2('0x14')](JSON[_0x5adad2('0x6')](_0x55a1f8)),{'source':_0x55a1f8[_0x5adad2('0x6b')][_0x5adad2('0x1')],'resolvedQuery':_0x55a1f8[_0x5adad2('0x6b')]['resolvedQuery'],'action':_0x55a1f8[_0x5adad2('0x6b')][_0x5adad2('0x1d')],'actionIncomplete':_0x55a1f8[_0x5adad2('0x6b')]['actionIncomplete'],'speech':_0x55a1f8[_0x5adad2('0x6b')][_0x5adad2('0x16')][_0x5adad2('0x21')],'score':_0x55a1f8[_0x5adad2('0x6b')][_0x5adad2('0x26')],'statusCode':_0x55a1f8[_0x5adad2('0x50')]['code'],'endConversation':_0x55a1f8[_0x5adad2('0x6b')][_0x5adad2('0x10')]['endConversation']||![],'isFallbackIntent':_0x55a1f8[_0x5adad2('0x6b')][_0x5adad2('0x10')][_0x5adad2('0x7')]};});},exports[_0x4f6ab7('0x5e')]=function(_0x15c804,_0x4d50f6,_0x539493,_0x5560d3){const _0x13ec0a=_0x4f6ab7;return tilde['asr'](_0x15c804,_0x4d50f6,_0x539493,_0x5560d3)[_0x13ec0a('0x29')](function(_0x4ae24c){const _0x377664=_0x13ec0a;try{fs[_0x377664('0x2d')](_0x15c804);}catch(_0x5295ba){logger[_0x377664('0x33')](_0x5295ba);}return logger[_0x377664('0x14')](_0x377664('0x48'),_0x4ae24c[_0x377664('0x12')]),logger['info'](_0x377664('0x4e'),_0x4ae24c[_0x377664('0x56')]),_0x4ae24c;});},exports[_0x4f6ab7('0xa')]=function(_0x447b6e,_0x374052,_0x39af6a,_0x520591,_0x2dec29,_0x244f2d){const _0x4dbc50=_0x4f6ab7,_0x4f2528=path[_0x4dbc50('0x2c')](__dirname,'tmp',rs[_0x4dbc50('0x5f')](0x4)+_0x4dbc50('0x1e'));let _0x27031c;return aws['polly'](_0x447b6e,_0x374052,_0x39af6a,_0x520591,_0x2dec29,_0x244f2d,_0x4f2528)['then'](function(){const _0x27cdc1=_0x4dbc50;return _0x27031c=path['resolve'](__dirname,_0x27cdc1('0x40'),rs[_0x27cdc1('0x5f')](0x4)+_0x27cdc1('0x65')),convertFile(_0x4f2528,_0x27031c);})[_0x4dbc50('0x29')](function(){const _0x3f9460=_0x4dbc50;try{fs[_0x3f9460('0x2d')](_0x4f2528),fs[_0x3f9460('0x3f')](_0x27031c,'777');}catch(_0x1c9981){logger[_0x3f9460('0x33')](_0x1c9981);}return _0x27031c['split']('.')[0x0];});},exports[_0x4f6ab7('0x1f')]=function(_0x59e909,_0x3b5041,_0xa342b9,_0x8aa33c,_0x21013c,_0x127f6d){const _0x4e7f91=_0x4f6ab7;return aws['lex'](_0x59e909,_0x3b5041,_0xa342b9,_0x8aa33c,_0x21013c,_0x127f6d)[_0x4e7f91('0x29')](function(_0x24870f){const _0xd5c4f4=_0x4e7f91;return logger[_0xd5c4f4('0x14')](JSON['stringify'](_0x24870f)),_0x24870f;});},exports['ispeechTTS']=function(_0x5a972a,_0x2f728f,_0x547480,_0x10edc1){const _0x55a92a=_0x4f6ab7,_0x3fe29f=util[_0x55a92a('0x34')](_0x55a92a('0x4c'),ISPEECH_API,_0x5a972a,encodeURIComponent(_0x2f728f),_0x547480,_0x10edc1),_0x1fbb93=path[_0x55a92a('0x2c')](__dirname,'tmp',rs['generate'](0x4)+'.mp3');let _0x52bb5d;return downloadFile(_0x3fe29f,_0x1fbb93)['then'](function(){const _0x79a7c1=_0x55a92a;return _0x52bb5d=path[_0x79a7c1('0x2c')](__dirname,'tmp',rs[_0x79a7c1('0x5f')](0x4)+_0x79a7c1('0x65')),convertFile(_0x1fbb93,_0x52bb5d);})[_0x55a92a('0x29')](function(){const _0x19bfc6=_0x55a92a;try{fs[_0x19bfc6('0x2d')](_0x1fbb93),fs[_0x19bfc6('0x3f')](_0x52bb5d,_0x19bfc6('0x38'));}catch(_0x475af0){logger[_0x19bfc6('0x33')](_0x475af0);}return _0x52bb5d[_0x19bfc6('0x23')]('.')[0x0];});},exports[_0x4f6ab7('0x35')]=function(_0x262279,_0x2d984f,_0x51638a,_0xce251c){const _0x4451da=_0x4f6ab7,_0xdaa145=util[_0x4451da('0x34')](_0x4451da('0x41'),ISPEECH_API,_0x2d984f,_0x51638a,base64Encode(_0x262279),_0xce251c?util[_0x4451da('0x34')](_0x4451da('0x67'),encodeURIComponent(_0xce251c)):_0x4451da('0x58'));return uploadFile(_0xdaa145)[_0x4451da('0x29')](function(_0x5be37e){const _0x372430=_0x4451da;return querystring[_0x372430('0x4b')](_0x5be37e);});},exports['sestekNDA']=function(_0x47755d,_0x2b6131){const _0x1c5cf1=_0x4f6ab7;return sestek[_0x1c5cf1('0x13')](_0x47755d,_0x2b6131)[_0x1c5cf1('0x29')](function(_0xd64c47){const _0xa926b3=_0x1c5cf1;logger['info'](JSON[_0xa926b3('0x6')](_0xd64c47));const _0x5a5c70={'speech':_0xd64c47[_0xa926b3('0x4f')],'action':_0xd64c47['channelData']?_0xd64c47[_0xa926b3('0x51')][_0xa926b3('0x36')]:undefined,'actiondata':_0xd64c47[_0xa926b3('0x51')]?_0xd64c47['channelData'][_0xa926b3('0x8')]:undefined};if(_0xd64c47['channelData']&&_0xd64c47[_0xa926b3('0x51')]['AudioFromTts'])return base64Decode(_0xd64c47['channelData'][_0xa926b3('0x60')][_0xa926b3('0x5')],path[_0xa926b3('0x2c')](__dirname,_0xa926b3('0x40'),rs[_0xa926b3('0x5f')](0x4)+'.wav'))[_0xa926b3('0x29')](function(_0xbee449){const _0x264a53=_0xa926b3;return _0x5a5c70[_0x264a53('0x0')]=_0xbee449,_0x5a5c70;});return _0x5a5c70;});},exports['dirName']=function(){return __dirname;}; \ No newline at end of file +const a1041_0x16b4=['polly','unlink','error','finish\x20download\x20file','transcript','WHAT_EVER','url','audioConfig','googleASR\x20confidence','format','MP3','.wav','chmodSync','goggleTTS\x20path','message','split','googleCloudTTS\x20path','from','querystring','join','../../../config/logger','apiai-promise','readFileSync','CustomAction','awsLex','get','tildeASR','statusMessage','voice','info','resolve','allRequiredParamsPresent','freeform=3','action','replace','%s?apikey=%s&action=convert&text=%s&voice=%s&speed=%s&format=mp3','catch','score','googleTTS','isFallbackIntent','audiofile','fulfillmentText','then','pathname','googleASR','path','http','alternatives','sox','end','confidence','finish','intentDetectionConfidence','boolValue','Tilde\x20ASR\x20confidence','audioContent','intent','777','status','finish\x20to\x20convert','diagnosticInfo','googleDialogflow','agi','randomstring','googleCloudTTS','queryResult','CustomActionData','createWriteStream','source','asr','./sestek','code','input','https:','end_conversation','https://api.ispeech.org/api/rest','detectIntent','error\x20convert','map','protocol','results','AudioFromTts','wav','resolvedQuery','model=%s','result','ispeechTTS','awsPolly','tmp','text','https://texttospeech.googleapis.com/v1/','speech','fields','languageCode','[%s]\x20%s:%s','base64','metadata','\x20failed,\x20status\x20code\x20=\x20','dirName','lex','uri','textRequest','endConversation','channelData','Tilde\x20ASR\x20transcription','Dialogflow\x20V2\x20response:','statusCode','request\x20to\x20','Data','stringify','.mp3','generate','@google-cloud/dialogflow','?key=','googleDialogflowV2','writeFile','host','transcode','projectAgentSessionPath','./google','isFallback','data','text:synthesize'];(function(_0xb26c21,_0x16b46e){const _0x1de83a=function(_0x200c98){while(--_0x200c98){_0xb26c21['push'](_0xb26c21['shift']());}};_0x1de83a(++_0x16b46e);}(a1041_0x16b4,0x143));const a1041_0x1de8=function(_0xb26c21,_0x16b46e){_0xb26c21=_0xb26c21-0x0;let _0x1de83a=a1041_0x16b4[_0xb26c21];return _0x1de83a;};const _0x2c5119=a1041_0x1de8;'use strict';const fs=require('fs'),path=require(_0x2c5119('0x5b')),http=require(_0x2c5119('0x5c')),https=require('https'),{URL}=require(_0x2c5119('0x34')),rs=require(_0x2c5119('0x6d')),sox=require(_0x2c5119('0x5e')),rp=require('request-promise-native'),util=require('util'),querystring=require(_0x2c5119('0x40')),tts=require('google-tts-api'),apiai=require(_0x2c5119('0x43')),md5=require('md5'),google=require(_0x2c5119('0x2a')),aws=require('./aws'),tilde=require('./tilde'),sestek=require(_0x2c5119('0x74')),dialogflow=require(_0x2c5119('0x23')),logger=require(_0x2c5119('0x42'))(_0x2c5119('0x6c')),ISPEECH_API=_0x2c5119('0x79');function downloadFile(_0x200c98,_0x19fb7a){return new Promise(function(_0x5f05dd,_0xfbd073){const _0x359569=a1041_0x1de8,_0x415456=new URL(_0x200c98),_0x310c59=_0x415456[_0x359569('0x2')]===_0x359569('0x77')?https:http,_0x345411={'host':_0x415456[_0x359569('0x27')],'path':_0x415456[_0x359569('0x59')],'headers':{'user-agent':_0x359569('0x33')}};_0x310c59[_0x359569('0x47')](_0x345411,function(_0x49ae62){const _0x3e6c8f=_0x359569;if(_0x49ae62[_0x3e6c8f('0x1d')]!==0xc8){logger['error'](_0x3e6c8f('0x1e')+_0x200c98+_0x3e6c8f('0x14')+_0x49ae62[_0x3e6c8f('0x1d')]+'\x20('+_0x49ae62['statusMessage']+')'),_0xfbd073(new Error(_0x3e6c8f('0x1e')+_0x200c98+_0x3e6c8f('0x14')+_0x49ae62[_0x3e6c8f('0x1d')]+'\x20('+_0x49ae62[_0x3e6c8f('0x49')]+')'));return;}const _0x39e5f6=fs[_0x3e6c8f('0x71')](_0x19fb7a);_0x39e5f6['on'](_0x3e6c8f('0x61'),function(){const _0x22afe0=_0x3e6c8f;logger['info'](_0x22afe0('0x31')),_0x39e5f6['close'](_0x5f05dd);}),_0x39e5f6['on'](_0x3e6c8f('0x30'),function(_0x72f484){const _0x171262=_0x3e6c8f;fs['unlink'](_0x19fb7a),logger[_0x171262('0x30')]('download\x20error',_0x72f484),_0xfbd073(_0x72f484);}),_0x49ae62['pipe'](_0x39e5f6);})['on'](_0x359569('0x30'),function(_0x36f734){const _0x1e6c3b=_0x359569;logger[_0x1e6c3b('0x30')](_0x36f734),_0xfbd073(_0x36f734);})[_0x359569('0x5f')]();});}function uploadFile(_0x3a8678){return new Promise(function(_0x57ba81,_0x12b3a5){const _0x4707d1=a1041_0x1de8,_0x37f3b1=new URL(_0x3a8678),_0x38d0c5=_0x37f3b1[_0x4707d1('0x2')]===_0x4707d1('0x77')?https:http,_0x3e2629={'host':_0x37f3b1[_0x4707d1('0x27')],'path':_0x37f3b1[_0x4707d1('0x59')],'headers':{'user-agent':_0x4707d1('0x33')}};_0x38d0c5[_0x4707d1('0x47')](_0x3e2629,function(_0x436485){const _0x571b6b=_0x4707d1;if(_0x436485[_0x571b6b('0x1d')]!==0xc8){_0x12b3a5(new Error(_0x571b6b('0x1e')+_0x3a8678+_0x571b6b('0x14')+_0x436485[_0x571b6b('0x1d')]+'\x20('+_0x436485['statusMessage']+')'));return;}let _0x4d3686='';_0x436485['on'](_0x571b6b('0x2c'),function(_0x26f64d){_0x4d3686+=_0x26f64d;}),_0x436485['on'](_0x571b6b('0x5f'),function(){_0x57ba81(_0x4d3686);});})['on'](_0x4707d1('0x30'),function(_0x4c6b87){_0x12b3a5(_0x4c6b87);})[_0x4707d1('0x5f')]();});}function convertFile(_0x44bf58,_0x307171){return new Promise(function(_0x3603f1,_0x2532d3){const _0x338bbe=a1041_0x1de8,_0xdcdb5f=sox[_0x338bbe('0x28')](_0x44bf58,_0x307171,{'sampleRate':0x1f40,'format':_0x338bbe('0x5'),'channelCount':0x1,'bitRate':0xc0*0x400,'compressionQuality':0x5});_0xdcdb5f['on'](_0x338bbe('0x30'),function(_0x5eb3ad){const _0x3228c5=_0x338bbe;logger[_0x3228c5('0x30')](_0x3228c5('0x0'),_0x5eb3ad),_0x2532d3(_0x5eb3ad);}),_0xdcdb5f['on'](_0x338bbe('0x5f'),function(){const _0x17be7d=_0x338bbe;logger['info'](_0x17be7d('0x69')),_0x3603f1();}),_0xdcdb5f['start']();});}function base64Decode(_0x91c35a,_0x1e3de4){const _0x249947=_0x2c5119,_0x3f8f51=path['resolve'](__dirname,_0x249947('0xb'),rs[_0x249947('0x22')](0x4)+_0x249947('0x39'));return fs['writeFileSync'](_0x3f8f51,_0x91c35a,_0x249947('0x12')),convertFile(_0x3f8f51,_0x1e3de4)[_0x249947('0x58')](function(){const _0x3c130f=_0x249947;try{fs[_0x3c130f('0x2f')](_0x3f8f51),fs[_0x3c130f('0x3a')](_0x1e3de4,'777');}catch(_0x4158d8){logger[_0x3c130f('0x30')](_0x4158d8);}return _0x1e3de4[_0x3c130f('0x3d')]('.')[0x0];});}function base64Encode(_0x559567){const _0xcf8488=_0x2c5119,_0x346048=fs[_0xcf8488('0x44')](_0x559567);return Buffer[_0xcf8488('0x3f')](_0x346048)['toString'](_0xcf8488('0x12'));}exports[_0x2c5119('0x6e')]=function(_0x8eb20d,_0x341ff5,_0xa6fe20,_0x29b263,_0x3cb772){const _0x35e5b5=_0x2c5119;let _0x54f607,_0x121cfa;const _0x551745=_0x35e5b5('0xd'),_0xa21a0a=_0x35e5b5('0x24')+_0x8eb20d,_0x3b3d2f={};_0x341ff5==='ssml'?_0x3b3d2f[_0x35e5b5('0x76')]={'ssml':_0xa6fe20}:_0x3b3d2f['input']={'text':_0xa6fe20};_0x3b3d2f[_0x35e5b5('0x4a')]={'languageCode':_0x29b263,'ssmlGender':_0x3cb772},_0x3b3d2f[_0x35e5b5('0x35')]={'audioEncoding':_0x35e5b5('0x38'),'sampleRateHertz':0x1f40};const _0x33f875={'url':_0x551745+_0x35e5b5('0x2d')+_0xa21a0a,'method':'POST','json':!![],'body':_0x3b3d2f};return rp(_0x33f875)[_0x35e5b5('0x58')](function(_0xe52efc){return new Promise(function(_0x15231f,_0x182bd8){const _0x96fc3a=a1041_0x1de8;_0x54f607=path[_0x96fc3a('0x4c')](__dirname,_0x96fc3a('0xb'),rs[_0x96fc3a('0x22')](0x4)+_0x96fc3a('0x21'));const _0xab2249=Buffer[_0x96fc3a('0x3f')](_0xe52efc[_0x96fc3a('0x65')],'base64');return fs[_0x96fc3a('0x26')](_0x54f607,_0xab2249,function(_0x4c8852){_0x182bd8(_0x4c8852);},function(_0x3ca460){const _0x1d9383=_0x96fc3a;fs['chmodSync'](_0x54f607,_0x1d9383('0x67')),_0x15231f(_0x3ca460);});});})[_0x35e5b5('0x58')](function(){const _0x24c800=_0x35e5b5;return _0x121cfa=path[_0x24c800('0x4c')](__dirname,_0x24c800('0xb'),rs[_0x24c800('0x22')](0x4)+_0x24c800('0x39')),convertFile(_0x54f607,_0x121cfa);})[_0x35e5b5('0x58')](function(){const _0x504ff3=_0x35e5b5;try{fs[_0x504ff3('0x2f')](_0x54f607),fs[_0x504ff3('0x3a')](_0x121cfa,_0x504ff3('0x67'));}catch(_0x260986){logger[_0x504ff3('0x30')](_0x260986);}return logger['info'](_0x504ff3('0x3e'),_0x121cfa[_0x504ff3('0x3d')]('.')[0x0]),_0x121cfa['split']('.')[0x0];});},exports[_0x2c5119('0x54')]=function(_0x28da18,_0x541d46){const _0x54ff71=_0x2c5119;let _0x5d5720,_0x2db277;return tts(_0x28da18,_0x541d46||'en',0x1)[_0x54ff71('0x58')](function(_0x5daf02){const _0x854947=_0x54ff71;return logger[_0x854947('0x4b')](_0x5daf02),_0x5d5720=path[_0x854947('0x4c')](__dirname,'tmp',rs[_0x854947('0x22')](0x4)+'.mp3'),downloadFile(_0x5daf02,_0x5d5720);})[_0x54ff71('0x58')](function(){const _0x236533=_0x54ff71;return _0x2db277=path[_0x236533('0x4c')](__dirname,_0x236533('0xb'),rs['generate'](0x4)+'.wav'),convertFile(_0x5d5720,_0x2db277);})[_0x54ff71('0x58')](function(){const _0x3bc6fd=_0x54ff71;try{fs['unlink'](_0x5d5720),fs[_0x3bc6fd('0x3a')](_0x2db277,'777');}catch(_0x7c3d28){logger[_0x3bc6fd('0x30')](_0x7c3d28);}return logger['info'](_0x3bc6fd('0x3b'),_0x2db277['split']('.')[0x0]),_0x2db277[_0x3bc6fd('0x3d')]('.')[0x0];});},exports[_0x2c5119('0x5a')]=function(_0x5e5c95,_0x5221c0,_0x11f425){const _0x3040f6=_0x2c5119;return google[_0x3040f6('0x73')](_0x5e5c95,_0x5221c0,_0x11f425)['then'](function(_0x18c7c6){const _0x185049=_0x3040f6;return logger[_0x185049('0x4b')](_0x18c7c6[_0x185049('0x17')]),rp(_0x18c7c6);})[_0x3040f6('0x58')](function(_0x1ca35d){const _0x29d144=_0x3040f6;let _0x5b1b16='',_0x184108=0x0;try{fs[_0x29d144('0x2f')](_0x5e5c95);}catch(_0x19ca34){logger[_0x29d144('0x30')](_0x19ca34);}return _0x1ca35d&&_0x1ca35d[_0x29d144('0x3')]&&(_0x5b1b16=_0x1ca35d[_0x29d144('0x3')][_0x29d144('0x1')](function(_0xf1b583){const _0x1fe99b=_0x29d144;return _0xf1b583&&_0xf1b583['alternatives'][0x0]&&_0xf1b583[_0x1fe99b('0x5d')][0x0]['transcript']?_0xf1b583[_0x1fe99b('0x5d')][0x0][_0x1fe99b('0x32')]:'';})[_0x29d144('0x41')]('\x0a'),_0x184108=_0x1ca35d[_0x29d144('0x3')][_0x29d144('0x1')](function(_0x1f0e26){const _0xe3d010=_0x29d144;return _0x1f0e26&&_0x1f0e26['alternatives'][0x0]&&_0x1f0e26[_0xe3d010('0x5d')][0x0][_0xe3d010('0x60')]?_0x1f0e26[_0xe3d010('0x5d')][0x0][_0xe3d010('0x60')]:0x0;})[_0x29d144('0x41')]('\x0a')),logger[_0x29d144('0x4b')]('googleASR\x20transcription',_0x5b1b16),logger[_0x29d144('0x4b')](_0x29d144('0x36'),_0x184108),{'transcript':_0x5b1b16,'confidence':_0x184108};})[_0x3040f6('0x52')](function(_0x398a4f){const _0x415272=_0x3040f6;logger['error'](_0x415272('0x11'),_0x398a4f[_0x415272('0x1d')],_0x398a4f['name'],_0x398a4f[_0x415272('0x3c')]);});},exports[_0x2c5119('0x6b')]=function(_0x4f91bc,_0x2de820,_0x359933,_0x52db06){const _0x124ee4=_0x2c5119,_0x44dfaa=apiai(_0x2de820,{'language':_0x52db06||'en'});return _0x44dfaa[_0x124ee4('0x18')](_0x359933,{'sessionId':md5(_0x4f91bc)})['then'](function(_0x47f02b){const _0x1d3849=_0x124ee4;return logger[_0x1d3849('0x4b')](JSON[_0x1d3849('0x20')](_0x47f02b)),{'source':_0x47f02b['result'][_0x1d3849('0x72')],'resolvedQuery':_0x47f02b[_0x1d3849('0x8')][_0x1d3849('0x6')],'action':_0x47f02b[_0x1d3849('0x8')]['action'],'actionIncomplete':_0x47f02b[_0x1d3849('0x8')]['actionIncomplete'],'speech':_0x47f02b[_0x1d3849('0x8')]['fulfillment'][_0x1d3849('0xe')],'score':_0x47f02b['result'][_0x1d3849('0x53')],'statusCode':_0x47f02b[_0x1d3849('0x68')][_0x1d3849('0x75')],'endConversation':_0x47f02b[_0x1d3849('0x8')][_0x1d3849('0x13')][_0x1d3849('0x19')]||![],'isFallbackIntent':_0x47f02b[_0x1d3849('0x8')][_0x1d3849('0x13')][_0x1d3849('0x55')]};});},exports[_0x2c5119('0x25')]=async function(_0x40efa9,_0x23fe06,_0x544497,_0x1fa7a8,_0x1d6738,_0x3bbf13){const _0x3232b2=_0x2c5119,_0x3a6c79=_0x1fa7a8[_0x3232b2('0x50')](/\\n/g,'\x0a'),_0x237c8b={'credentials':{'private_key':_0x3a6c79,'client_email':_0x544497}},_0x1b233b=new dialogflow['SessionsClient'](_0x237c8b),_0x4736a6=_0x1b233b[_0x3232b2('0x29')](_0x23fe06,md5(_0x40efa9)),_0x54b5eb={'session':_0x4736a6,'queryInput':{'text':{'text':_0x1d6738,'languageCode':_0x3bbf13}}};try{const _0x29c433=await _0x1b233b[_0x3232b2('0x7a')](_0x54b5eb);if(_0x29c433&&_0x29c433['length']){logger[_0x3232b2('0x4b')](_0x3232b2('0x1c'),JSON[_0x3232b2('0x20')](_0x29c433));const _0x54e3f4=_0x29c433[0x0];let _0x4bd9c8;return _0x54e3f4&&(_0x4bd9c8={'action':_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x4f')],'allRequiredParamsPresent':_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x4d')],'endConversation':_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x6a')]&&_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x6a')][_0x3232b2('0xf')]?_0x54e3f4['queryResult']['diagnosticInfo']['fields'][_0x3232b2('0x78')][_0x3232b2('0x63')]:![],'fulfillmentText':_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x57')],'intentName':_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x66')]['name'],'intentDisplayName':_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x66')]['displayName'],'isFallbackIntent':_0x54e3f4['queryResult'][_0x3232b2('0x66')][_0x3232b2('0x2b')],'languageCode':_0x54e3f4['queryResult'][_0x3232b2('0x10')],'queryText':_0x54e3f4[_0x3232b2('0x6f')]['queryText'],'responseId':_0x54e3f4['responseId'],'score':_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x62')],'speech':_0x54e3f4[_0x3232b2('0x6f')][_0x3232b2('0x57')],'providerResponse':JSON[_0x3232b2('0x20')](_0x29c433)}),_0x4bd9c8;}}catch(_0x5e98b2){logger[_0x3232b2('0x30')]('Dialogflow\x20V2\x20response\x20error:',_0x5e98b2);throw _0x5e98b2;}},exports[_0x2c5119('0x48')]=function(_0x4d1665,_0x2586dd,_0x5c92ef,_0x21c4d7){const _0x1b535e=_0x2c5119;return tilde[_0x1b535e('0x73')](_0x4d1665,_0x2586dd,_0x5c92ef,_0x21c4d7)[_0x1b535e('0x58')](function(_0x36a0ad){const _0x2059d6=_0x1b535e;try{fs[_0x2059d6('0x2f')](_0x4d1665);}catch(_0x41d7ae){logger[_0x2059d6('0x30')](_0x41d7ae);}return logger[_0x2059d6('0x4b')](_0x2059d6('0x1b'),_0x36a0ad['transcript']),logger['info'](_0x2059d6('0x64'),_0x36a0ad[_0x2059d6('0x60')]),_0x36a0ad;});},exports[_0x2c5119('0xa')]=function(_0x573901,_0x5158ef,_0x5f5792,_0x4941be,_0x52b9df,_0x5cbafb){const _0x3eab6a=_0x2c5119,_0x48eabb=path['resolve'](__dirname,_0x3eab6a('0xb'),rs[_0x3eab6a('0x22')](0x4)+_0x3eab6a('0x21'));let _0x366757;return aws[_0x3eab6a('0x2e')](_0x573901,_0x5158ef,_0x5f5792,_0x4941be,_0x52b9df,_0x5cbafb,_0x48eabb)[_0x3eab6a('0x58')](function(){return _0x366757=path['resolve'](__dirname,'tmp',rs['generate'](0x4)+'.wav'),convertFile(_0x48eabb,_0x366757);})['then'](function(){const _0x556861=_0x3eab6a;try{fs[_0x556861('0x2f')](_0x48eabb),fs[_0x556861('0x3a')](_0x366757,_0x556861('0x67'));}catch(_0x5387d3){logger['error'](_0x5387d3);}return _0x366757[_0x556861('0x3d')]('.')[0x0];});},exports[_0x2c5119('0x46')]=function(_0x26b490,_0xb6d2a7,_0x41ff89,_0x5e2450,_0x2e9965,_0x1d4d4d){const _0x4b4d37=_0x2c5119;return aws[_0x4b4d37('0x16')](_0x26b490,_0xb6d2a7,_0x41ff89,_0x5e2450,_0x2e9965,_0x1d4d4d)[_0x4b4d37('0x58')](function(_0x1ccbd9){const _0x143bdf=_0x4b4d37;return logger[_0x143bdf('0x4b')](JSON[_0x143bdf('0x20')](_0x1ccbd9)),_0x1ccbd9;});},exports[_0x2c5119('0x9')]=function(_0x4ac591,_0x23b916,_0x33e548,_0x42a944){const _0x329baf=_0x2c5119,_0x5239d8=util[_0x329baf('0x37')](_0x329baf('0x51'),ISPEECH_API,_0x4ac591,encodeURIComponent(_0x23b916),_0x33e548,_0x42a944),_0x3cfe4d=path[_0x329baf('0x4c')](__dirname,'tmp',rs['generate'](0x4)+_0x329baf('0x21'));let _0x20334e;return downloadFile(_0x5239d8,_0x3cfe4d)[_0x329baf('0x58')](function(){const _0x344901=_0x329baf;return _0x20334e=path[_0x344901('0x4c')](__dirname,_0x344901('0xb'),rs[_0x344901('0x22')](0x4)+_0x344901('0x39')),convertFile(_0x3cfe4d,_0x20334e);})['then'](function(){const _0x182ebb=_0x329baf;try{fs[_0x182ebb('0x2f')](_0x3cfe4d),fs[_0x182ebb('0x3a')](_0x20334e,_0x182ebb('0x67'));}catch(_0x2a0523){logger['error'](_0x2a0523);}return _0x20334e[_0x182ebb('0x3d')]('.')[0x0];});},exports['ispeechASR']=function(_0x5c57f7,_0x45a073,_0x430669,_0xb6d136){const _0x3bfcb=_0x2c5119,_0x46329d=util[_0x3bfcb('0x37')]('%s?apikey=%s&action=recognize&locale=%s&content-type=audio/x-wav&audio=%s&%s',ISPEECH_API,_0x45a073,_0x430669,base64Encode(_0x5c57f7),_0xb6d136?util[_0x3bfcb('0x37')](_0x3bfcb('0x7'),encodeURIComponent(_0xb6d136)):_0x3bfcb('0x4e'));return uploadFile(_0x46329d)[_0x3bfcb('0x58')](function(_0xe6ee31){return querystring['parse'](_0xe6ee31);});},exports['sestekNDA']=function(_0x49f7d3,_0x43cfd7){return sestek['nda'](_0x49f7d3,_0x43cfd7)['then'](function(_0x50d851){const _0x1adbfc=a1041_0x1de8;logger[_0x1adbfc('0x4b')](JSON[_0x1adbfc('0x20')](_0x50d851));const _0x39f76a={'speech':_0x50d851[_0x1adbfc('0xc')],'action':_0x50d851[_0x1adbfc('0x1a')]?_0x50d851['channelData'][_0x1adbfc('0x45')]:undefined,'actiondata':_0x50d851[_0x1adbfc('0x1a')]?_0x50d851[_0x1adbfc('0x1a')][_0x1adbfc('0x70')]:undefined};if(_0x50d851[_0x1adbfc('0x1a')]&&_0x50d851[_0x1adbfc('0x1a')][_0x1adbfc('0x4')])return base64Decode(_0x50d851[_0x1adbfc('0x1a')][_0x1adbfc('0x4')][_0x1adbfc('0x1f')],path[_0x1adbfc('0x4c')](__dirname,'tmp',rs[_0x1adbfc('0x22')](0x4)+'.wav'))[_0x1adbfc('0x58')](function(_0x2fc79e){const _0x11f600=_0x1adbfc;return _0x39f76a[_0x11f600('0x56')]=_0x2fc79e,_0x39f76a;});return _0x39f76a;});},exports[_0x2c5119('0x15')]=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 25c88e2..11f63b2 100644 --- a/server/services/agi/scripts/sestek/index.js +++ b/server/services/agi/scripts/sestek/index.js @@ -1 +1 @@ -const a1041_0x499e=['./nda','exports'];(function(_0x39c272,_0x499ecb){const _0x5c70b0=function(_0x328ac3){while(--_0x328ac3){_0x39c272['push'](_0x39c272['shift']());}};_0x5c70b0(++_0x499ecb);}(a1041_0x499e,0x7a));const a1041_0x5c70=function(_0x39c272,_0x499ecb){_0x39c272=_0x39c272-0x0;let _0x5c70b0=a1041_0x499e[_0x39c272];return _0x5c70b0;};const _0x36c36a=a1041_0x5c70,nda=require(_0x36c36a('0x0'));module[_0x36c36a('0x1')]={'nda':nda}; \ No newline at end of file +const a1042_0x25f1=['./nda'];(function(_0x1ecf33,_0x25f172){const _0x4a43ae=function(_0x10a612){while(--_0x10a612){_0x1ecf33['push'](_0x1ecf33['shift']());}};_0x4a43ae(++_0x25f172);}(a1042_0x25f1,0xeb));const a1042_0x4a43=function(_0x1ecf33,_0x25f172){_0x1ecf33=_0x1ecf33-0x0;let _0x4a43ae=a1042_0x25f1[_0x1ecf33];return _0x4a43ae;};const _0x600809=a1042_0x4a43,nda=require(_0x600809('0x0'));module['exports']={'nda':nda}; \ No newline at end of file diff --git a/server/services/agi/scripts/sestek/nda/index.js b/server/services/agi/scripts/sestek/nda/index.js index a1b37e8..0de345e 100644 --- a/server/services/agi/scripts/sestek/nda/index.js +++ b/server/services/agi/scripts/sestek/nda/index.js @@ -1 +1 @@ -const a1042_0x356a=['Bearer\x20','uniqueid','toString','AudioOutputSettings','/token','agi','custom_action','POST','CustomActionData','url','body','extension','ndagenerate_audio','ProjectName','callerid','audio/wav','request-promise-native','message','text','URL','Nda','/api/NaturalDialogAssistant/v1/Run','CustomAction','dnid','access_token','channelData','password','ndauth_url','stringify','project'];(function(_0x1b2ff3,_0x356a0a){const _0x3c501c=function(_0x1be940){while(--_0x1be940){_0x1b2ff3['push'](_0x1b2ff3['shift']());}};_0x3c501c(++_0x356a0a);}(a1042_0x356a,0x1b4));const a1042_0x3c50=function(_0x1b2ff3,_0x356a0a){_0x1b2ff3=_0x1b2ff3-0x0;let _0x3c501c=a1042_0x356a[_0x1b2ff3];return _0x3c501c;};const _0x4940cb=a1042_0x3c50;'use strict';const rp=require(_0x4940cb('0x0')),url=require(_0x4940cb('0x17')),logger=require('../../../../../config/logger')(_0x4940cb('0x13'));module['exports']=function(_0x1be940,_0x163ba1){const _0x54299c=_0x4940cb,_0x6d3eb9=new url['URL'](_0x54299c('0x12'),_0x163ba1[_0x54299c('0xb')])[_0x54299c('0x10')](),_0x58fa4d={'method':'POST','uri':_0x6d3eb9,'form':{'grant_type':_0x54299c('0xa'),'username':_0x163ba1['username'],'password':_0x163ba1['password']},'json':!![]};return rp(_0x58fa4d)['then'](function(_0x43dfca){const _0x43491f=_0x54299c,_0x1ce385=new url[(_0x43491f('0x3'))](_0x43491f('0x5'),_0x163ba1['ndassistant_url'])[_0x43491f('0x10')](),_0x5aa78f={'method':_0x43491f('0x15'),'uri':_0x1ce385,'body':{'type':_0x163ba1['ndaactivity_type']||_0x43491f('0x1'),'channelId':_0x43491f('0x4'),'conversation':{'id':_0x1be940[_0x43491f('0xf')]},'from':{'id':_0x1be940[_0x43491f('0x1c')],'name':_0x1be940['calleridname']},'recipient':{'id':_0x1be940[_0x43491f('0x7')],'name':_0x1be940[_0x43491f('0x19')]},'text':_0x163ba1[_0x43491f('0x2')],'channelData':{}},'headers':{'Authorization':_0x43491f('0xe')+_0x43dfca[_0x43491f('0x8')]},'json':!![]};return _0x163ba1[_0x43491f('0xd')]&&(_0x5aa78f['body']['channelData'][_0x43491f('0x1b')]=_0x163ba1[_0x43491f('0xd')]),_0x163ba1[_0x43491f('0x1a')]=='1'&&(_0x5aa78f[_0x43491f('0x18')][_0x43491f('0x9')][_0x43491f('0x11')]={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':_0x43491f('0x1d')}),_0x163ba1[_0x43491f('0x14')]&&(_0x5aa78f[_0x43491f('0x18')][_0x43491f('0x9')][_0x43491f('0x6')]=_0x163ba1[_0x43491f('0x14')],_0x163ba1['custom_action_data']&&(_0x5aa78f[_0x43491f('0x18')][_0x43491f('0x9')][_0x43491f('0x16')]=_0x163ba1['custom_action_data'])),logger['info'](JSON[_0x43491f('0xc')](_0x5aa78f)),rp(_0x5aa78f);});}; \ No newline at end of file +const a1043_0x4cc2=['custom_action','ndagenerate_audio','/api/NaturalDialogAssistant/v1/Run','callerid','url','agi','ndassistant_url','URL','ndauth_url','request-promise-native','POST','message','calleridname','CustomActionData','AudioOutputSettings','project','toString','ndaactivity_type','username','Bearer\x20','access_token','Nda','password','stringify','uniqueid','then','channelData','body','/token','custom_action_data'];(function(_0x5bac94,_0x4cc299){const _0x19f377=function(_0x399ab3){while(--_0x399ab3){_0x5bac94['push'](_0x5bac94['shift']());}};_0x19f377(++_0x4cc299);}(a1043_0x4cc2,0x1b6));const a1043_0x19f3=function(_0x5bac94,_0x4cc299){_0x5bac94=_0x5bac94-0x0;let _0x19f377=a1043_0x4cc2[_0x5bac94];return _0x19f377;};const _0x1148a2=a1043_0x19f3;'use strict';const rp=require(_0x1148a2('0x15')),url=require(_0x1148a2('0x10')),logger=require('../../../../../config/logger')(_0x1148a2('0x11'));module['exports']=function(_0x399ab3,_0x28905b){const _0x5b70f9=_0x1148a2,_0x452f35=new url[(_0x5b70f9('0x13'))](_0x5b70f9('0xa'),_0x28905b[_0x5b70f9('0x14')])[_0x5b70f9('0x1c')](),_0x25094a={'method':'POST','uri':_0x452f35,'form':{'grant_type':_0x5b70f9('0x4'),'username':_0x28905b[_0x5b70f9('0x0')],'password':_0x28905b[_0x5b70f9('0x4')]},'json':!![]};return rp(_0x25094a)[_0x5b70f9('0x7')](function(_0x30ae69){const _0x1cdb52=_0x5b70f9,_0x1d7e1c=new url[(_0x1cdb52('0x13'))](_0x1cdb52('0xe'),_0x28905b[_0x1cdb52('0x12')])[_0x1cdb52('0x1c')](),_0x50bbcb={'method':_0x1cdb52('0x16'),'uri':_0x1d7e1c,'body':{'type':_0x28905b[_0x1cdb52('0x1d')]||_0x1cdb52('0x17'),'channelId':_0x1cdb52('0x3'),'conversation':{'id':_0x399ab3[_0x1cdb52('0x6')]},'from':{'id':_0x399ab3[_0x1cdb52('0xf')],'name':_0x399ab3[_0x1cdb52('0x18')]},'recipient':{'id':_0x399ab3['dnid'],'name':_0x399ab3['extension']},'text':_0x28905b['text'],'channelData':{}},'headers':{'Authorization':_0x1cdb52('0x1')+_0x30ae69[_0x1cdb52('0x2')]},'json':!![]};return _0x28905b[_0x1cdb52('0x1b')]&&(_0x50bbcb[_0x1cdb52('0x9')][_0x1cdb52('0x8')]['ProjectName']=_0x28905b[_0x1cdb52('0x1b')]),_0x28905b[_0x1cdb52('0xd')]=='1'&&(_0x50bbcb['body']['channelData'][_0x1cdb52('0x1a')]={'Generate':!![],'PutInStructuredPart':![],'ExpectedFormat':'audio/wav'}),_0x28905b[_0x1cdb52('0xc')]&&(_0x50bbcb[_0x1cdb52('0x9')]['channelData']['CustomAction']=_0x28905b[_0x1cdb52('0xc')],_0x28905b['custom_action_data']&&(_0x50bbcb['body'][_0x1cdb52('0x8')][_0x1cdb52('0x19')]=_0x28905b[_0x1cdb52('0xb')])),logger['info'](JSON[_0x1cdb52('0x5')](_0x50bbcb)),rp(_0x50bbcb);});}; \ 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 344415f..39d8e27 100644 --- a/server/services/agi/scripts/tilde/asr/index.js +++ b/server/services/agi/scripts/tilde/asr/index.js @@ -1 +1 @@ -const a1043_0x8d07=['./lib/api'];(function(_0x1009cc,_0x8d0730){const _0x1e7b86=function(_0x47e09d){while(--_0x47e09d){_0x1009cc['push'](_0x1009cc['shift']());}};_0x1e7b86(++_0x8d0730);}(a1043_0x8d07,0xb4));const a1043_0x1e7b=function(_0x1009cc,_0x8d0730){_0x1009cc=_0x1009cc-0x0;let _0x1e7b86=a1043_0x8d07[_0x1009cc];return _0x1e7b86;};const _0x29d176=a1043_0x1e7b;'use strict';const asr=require(_0x29d176('0x0'));module['exports']=function(_0x47e09d,_0x1ab06a,_0x201be5,_0x26d620){return asr(_0x47e09d,_0x1ab06a,_0x201be5,_0x26d620);}; \ No newline at end of file +const a1044_0x48f6=['./lib/api','exports'];(function(_0x4f0f75,_0x48f620){const _0x49c337=function(_0x4fd3d8){while(--_0x4fd3d8){_0x4f0f75['push'](_0x4f0f75['shift']());}};_0x49c337(++_0x48f620);}(a1044_0x48f6,0xb9));const a1044_0x49c3=function(_0x4f0f75,_0x48f620){_0x4f0f75=_0x4f0f75-0x0;let _0x49c337=a1044_0x48f6[_0x4f0f75];return _0x49c337;};const _0x245947=a1044_0x49c3;'use strict';const asr=require(_0x245947('0x1'));module[_0x245947('0x0')]=function(_0x4fd3d8,_0x3c6123,_0x4d2c0c,_0xd09c8d){return asr(_0x4fd3d8,_0x3c6123,_0x4d2c0c,_0xd09c8d);}; \ 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 ec86485..452d457 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_0x41c2=['Authentication\x20failed.','createReadStream','Error\x20Tilde\x20ASR\x20socket','sha1','exports','Close\x20Tilde\x20ASR\x20socket','hypotheses','send','hex','status','data','final','../../../../../../config/logger','update','error','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','crypto','message','lodash','stringify','digest','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','unix','Open\x20Tilde\x20ASR\x20socket','open','likelihood','isObject','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','Success.','EOS','Tilde\x20ASR\x20parse\x20error','result','Not\x20available.\x20Max\x20load\x20limit\x20reached.','terminate','agi','transcript','close','info','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','parse','createHash'];(function(_0x44670c,_0x41c29b){const _0x37bc50=function(_0x55f4b8){while(--_0x55f4b8){_0x44670c['push'](_0x44670c['shift']());}};_0x37bc50(++_0x41c29b);}(a1044_0x41c2,0x189));const a1044_0x37bc=function(_0x44670c,_0x41c29b){_0x44670c=_0x44670c-0x0;let _0x37bc50=a1044_0x41c2[_0x44670c];return _0x37bc50;};const _0x400804=a1044_0x37bc;'use strict';const _=require(_0x400804('0x23')),fs=require('fs'),WebSocket=require('ws'),moment=require('moment'),crypto=require(_0x400804('0x21')),logger=require(_0x400804('0x1d'))(_0x400804('0xa'));module[_0x400804('0x15')]=function(_0x55f4b8,_0x80f93d,_0x4b4d70,_0x1974ff){return new Promise(function(_0x3d50ef){const _0x55eb1a=a1044_0x37bc;logger[_0x55eb1a('0xd')]('Tilde\x20URI',_0x1974ff||_0x55eb1a('0xe'));const _0x39bdb2=new WebSocket(_0x1974ff||_0x55eb1a('0xe'),{'perMessageDeflate':![]});let _0xf131ba='',_0x256312='0',_0x4825bc='1',_0xbeb1a2=_0x55eb1a('0x3');function _0x59386f(_0x5032b6){const _0x5472fb=_0x55eb1a,_0x3f2f36=crypto[_0x5472fb('0x10')](_0x5472fb('0x14'));return _0x3f2f36[_0x5472fb('0x1e')](_0x5032b6),_0x3f2f36[_0x5472fb('0x25')](_0x5472fb('0x19'));}function _0x16a3ae(){const _0x4f0f95=_0x55eb1a;try{logger[_0x4f0f95('0xd')](_0x4f0f95('0x28'));const _0x14a187=moment()[_0x4f0f95('0x27')](),_0x43bf7d=_0x59386f(_0x14a187+_0x80f93d+_0x4b4d70);_0x39bdb2[_0x4f0f95('0x18')](JSON['stringify']({'appID':_0x80f93d,'timestamp':_0x14a187,'appKey':_0x43bf7d}));const _0x3408d3=fs[_0x4f0f95('0x12')](_0x55f4b8);_0x3408d3['on'](_0x4f0f95('0x1b'),function(_0x1dde46){_0x39bdb2['send'](_0x1dde46);}),_0x3408d3['on'](_0x4f0f95('0xc'),function(){const _0x402814=_0x4f0f95;_0x39bdb2[_0x402814('0x18')](_0x402814('0x5'));});}catch(_0x3fa954){logger[_0x4f0f95('0x1f')]('Tilde\x20ASR\x20send\x20error',JSON['stringify'](_0x3fa954)),_0x39bdb2['terminate']();}}function _0x249947(_0x40caa4){const _0x26fe6f=_0x55eb1a;try{if(_0x40caa4){const _0x47c4dc=JSON[_0x26fe6f('0xf')](_0x40caa4);switch(_0x47c4dc[_0x26fe6f('0x1a')]){case 0x0:_0x47c4dc[_0x26fe6f('0x7')]&&(_0x47c4dc['result'][_0x26fe6f('0x1c')]&&(logger['info']('Tilde\x20ASR\x20hypoteses',JSON[_0x26fe6f('0x24')](_0x47c4dc[_0x26fe6f('0x7')][_0x26fe6f('0x17')])),_0xf131ba=_0x47c4dc[_0x26fe6f('0x7')][_0x26fe6f('0x17')][0x0][_0x26fe6f('0xb')],_0x256312=_0x47c4dc[_0x26fe6f('0x7')][_0x26fe6f('0x17')][0x0][_0x26fe6f('0x1')],_0x4825bc='0',_0xbeb1a2=_0x26fe6f('0x4'),_0x39bdb2[_0x26fe6f('0x9')]()));break;case 0x1:logger[_0x26fe6f('0xd')](_0x26fe6f('0x3')),_0x4825bc='1',_0xbeb1a2=_0x26fe6f('0x3');break;case 0x2:logger[_0x26fe6f('0xd')]('Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.'),_0x4825bc='2',_0xbeb1a2=_0x26fe6f('0x26');break;case 0x9:logger[_0x26fe6f('0xd')](_0x26fe6f('0x8')),_0x4825bc='9',_0xbeb1a2='Not\x20available.\x20Max\x20load\x20limit\x20reached.';break;case 0xa:logger[_0x26fe6f('0xd')](_0x26fe6f('0x11')),_0x4825bc='10',_0xbeb1a2=_0x26fe6f('0x11');break;case 0xb:logger['info'](_0x26fe6f('0x20')),_0x4825bc='11',_0xbeb1a2=_0x26fe6f('0x20');}}}catch(_0x3a5ae4){logger[_0x26fe6f('0x1f')](_0x26fe6f('0x6'),JSON[_0x26fe6f('0x24')](_0x3a5ae4)),_0x39bdb2[_0x26fe6f('0x9')]();}}function _0x454d00(){const _0x6ffb39=_0x55eb1a;logger['info'](_0x6ffb39('0x16')),_0x3d50ef({'transcript':_0xf131ba,'confidence':_0x256312,'status':_0x4825bc,'status_message':_0xbeb1a2});}function _0x3c4be0(_0x538572){const _0x434270=_0x55eb1a;logger['error'](_0x434270('0x13')),!_['isNil'](_0x538572)&&logger[_0x434270('0x1f')](_[_0x434270('0x2')](_0x538572)?JSON[_0x434270('0x24')](_0x538572):_0x538572);}_0x39bdb2['on'](_0x55eb1a('0x0'),_0x16a3ae),_0x39bdb2['on'](_0x55eb1a('0x22'),_0x249947),_0x39bdb2['on'](_0x55eb1a('0xc'),_0x454d00),_0x39bdb2['on']('error',_0x3c4be0);});}; \ No newline at end of file +const a1045_0x1128=['stringify','close','Close\x20Tilde\x20ASR\x20socket','No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech','Tilde\x20ASR\x20send\x20error','update','Aborted.\x20Recognition\x20was\x20aborted\x20for\x20some\x20reason.','terminate','send','../../../../../../config/logger','crypto','isNil','message','hypotheses','createHash','data','Authentication\x20failed.','Not\x20available.\x20Max\x20load\x20limit\x20reached.','Tilde\x20ASR\x20hypoteses','info','Open\x20Tilde\x20ASR\x20socket','result','error','Error\x20Tilde\x20ASR\x20socket','wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE','exports','sha1','lodash','agi','All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.','hex','isObject','Success.','unix','createReadStream','status'];(function(_0x14cf9d,_0x112861){const _0x22cb1f=function(_0x36db14){while(--_0x36db14){_0x14cf9d['push'](_0x14cf9d['shift']());}};_0x22cb1f(++_0x112861);}(a1045_0x1128,0x1b8));const a1045_0x22cb=function(_0x14cf9d,_0x112861){_0x14cf9d=_0x14cf9d-0x0;let _0x22cb1f=a1045_0x1128[_0x14cf9d];return _0x22cb1f;};const _0x274778=a1045_0x22cb;'use strict';const _=require(_0x274778('0x13')),fs=require('fs'),WebSocket=require('ws'),moment=require('moment'),crypto=require(_0x274778('0x2')),logger=require(_0x274778('0x1'))(_0x274778('0x14'));module[_0x274778('0x11')]=function(_0x36db14,_0x2633c8,_0x12d2dc,_0x361cb5){return new Promise(function(_0x3c34fd){const _0xff022c=a1045_0x22cb;logger[_0xff022c('0xb')]('Tilde\x20URI',_0x361cb5||'wss://runa.tilde.lv/client/ws/speech/LVASR-ONLINE');const _0x353aa0=new WebSocket(_0x361cb5||_0xff022c('0x10'),{'perMessageDeflate':![]});let _0x4dd75b='',_0x3ea57d='0',_0x1cb5f9='1',_0x3b1f75='No\x20speech.\x20Sent\x20when\x20the\x20incoming\x20audio\x20contains\x20a\x20large\x20portion\x20of\x20silence\x20or\x20non-speech';function _0x715dbe(_0x4956c4){const _0x403a96=_0xff022c,_0x1b882b=crypto[_0x403a96('0x6')](_0x403a96('0x12'));return _0x1b882b[_0x403a96('0x21')](_0x4956c4),_0x1b882b['digest'](_0x403a96('0x16'));}function _0x36374d(){const _0x52c7b7=_0xff022c;try{logger[_0x52c7b7('0xb')](_0x52c7b7('0xc'));const _0x57554f=moment()[_0x52c7b7('0x19')](),_0x11187c=_0x715dbe(_0x57554f+_0x2633c8+_0x12d2dc);_0x353aa0[_0x52c7b7('0x0')](JSON['stringify']({'appID':_0x2633c8,'timestamp':_0x57554f,'appKey':_0x11187c}));const _0x190d5f=fs[_0x52c7b7('0x1a')](_0x36db14);_0x190d5f['on'](_0x52c7b7('0x7'),function(_0x2a39a8){const _0x77058a=_0x52c7b7;_0x353aa0[_0x77058a('0x0')](_0x2a39a8);}),_0x190d5f['on'](_0x52c7b7('0x1d'),function(){const _0x158757=_0x52c7b7;_0x353aa0[_0x158757('0x0')]('EOS');});}catch(_0x127a12){logger['error'](_0x52c7b7('0x20'),JSON['stringify'](_0x127a12)),_0x353aa0[_0x52c7b7('0x23')]();}}function _0x38e323(_0x1c2f63){const _0x118c7f=_0xff022c;try{if(_0x1c2f63){const _0x2c3aff=JSON['parse'](_0x1c2f63);switch(_0x2c3aff[_0x118c7f('0x1b')]){case 0x0:_0x2c3aff['result']&&(_0x2c3aff['result']['final']&&(logger[_0x118c7f('0xb')](_0x118c7f('0xa'),JSON[_0x118c7f('0x1c')](_0x2c3aff[_0x118c7f('0xd')]['hypotheses'])),_0x4dd75b=_0x2c3aff[_0x118c7f('0xd')][_0x118c7f('0x5')][0x0]['transcript'],_0x3ea57d=_0x2c3aff[_0x118c7f('0xd')][_0x118c7f('0x5')][0x0]['likelihood'],_0x1cb5f9='0',_0x3b1f75=_0x118c7f('0x18'),_0x353aa0['terminate']()));break;case 0x1:logger[_0x118c7f('0xb')](_0x118c7f('0x1f')),_0x1cb5f9='1',_0x3b1f75=_0x118c7f('0x1f');break;case 0x2:logger[_0x118c7f('0xb')](_0x118c7f('0x22')),_0x1cb5f9='2',_0x3b1f75=_0x118c7f('0x22');break;case 0x9:logger[_0x118c7f('0xb')](_0x118c7f('0x9')),_0x1cb5f9='9',_0x3b1f75=_0x118c7f('0x9');break;case 0xa:logger['info'](_0x118c7f('0x8')),_0x1cb5f9='10',_0x3b1f75=_0x118c7f('0x8');break;case 0xb:logger['info'](_0x118c7f('0x15')),_0x1cb5f9='11',_0x3b1f75='All\x20recognition\x20workers\x20are\x20currently\x20in\x20use\x20and\x20real-time\x20recognition\x20is\x20not\x20possible.';}}}catch(_0x56ebb8){logger[_0x118c7f('0xe')]('Tilde\x20ASR\x20parse\x20error',JSON[_0x118c7f('0x1c')](_0x56ebb8)),_0x353aa0[_0x118c7f('0x23')]();}}function _0x2f12e4(){const _0x38522f=_0xff022c;logger['info'](_0x38522f('0x1e')),_0x3c34fd({'transcript':_0x4dd75b,'confidence':_0x3ea57d,'status':_0x1cb5f9,'status_message':_0x3b1f75});}function _0x456af4(_0x3153fe){const _0xf98956=_0xff022c;logger[_0xf98956('0xe')](_0xf98956('0xf')),!_[_0xf98956('0x3')](_0x3153fe)&&logger[_0xf98956('0xe')](_[_0xf98956('0x17')](_0x3153fe)?JSON[_0xf98956('0x1c')](_0x3153fe):_0x3153fe);}_0x353aa0['on']('open',_0x36374d),_0x353aa0['on'](_0xff022c('0x4'),_0x38e323),_0x353aa0['on'](_0xff022c('0x1d'),_0x2f12e4),_0x353aa0['on'](_0xff022c('0xe'),_0x456af4);});}; \ 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 c6d64b1..209e060 100644 --- a/server/services/agi/scripts/tilde/index.js +++ b/server/services/agi/scripts/tilde/index.js @@ -1 +1 @@ -const a1045_0x4222=['exports','./asr'];(function(_0x8619a1,_0x4222b2){const _0xd27ece=function(_0x10f314){while(--_0x10f314){_0x8619a1['push'](_0x8619a1['shift']());}};_0xd27ece(++_0x4222b2);}(a1045_0x4222,0x173));const a1045_0xd27e=function(_0x8619a1,_0x4222b2){_0x8619a1=_0x8619a1-0x0;let _0xd27ece=a1045_0x4222[_0x8619a1];return _0xd27ece;};const _0x288c30=a1045_0xd27e,asr=require(_0x288c30('0x0'));module[_0x288c30('0x1')]={'asr':asr}; \ No newline at end of file +const a1046_0x2811=['exports','./asr'];(function(_0x15e1db,_0x281104){const _0x14e017=function(_0x121059){while(--_0x121059){_0x15e1db['push'](_0x15e1db['shift']());}};_0x14e017(++_0x281104);}(a1046_0x2811,0x12f));const a1046_0x14e0=function(_0x15e1db,_0x281104){_0x15e1db=_0x15e1db-0x0;let _0x14e017=a1046_0x2811[_0x15e1db];return _0x14e017;};const _0xaf6f47=a1046_0x14e0,asr=require(_0xaf6f47('0x0'));module[_0xaf6f47('0x1')]={'asr':asr}; \ No newline at end of file diff --git a/server/services/agi/server.js b/server/services/agi/server.js index 0f95ebd..70a8020 100644 --- a/server/services/agi/server.js +++ b/server/services/agi/server.js @@ -1 +1 @@ -const a1046_0x52dc=['./error','nextTick','net','listening','E_AGI_ARGUMENT_PORT','127.0.0.1','emit','call','connection','E_AGI_SERVER_VOICE_DISABLED','events','destroy','close','error','exports','util','inherits','E_AGI_SERVER_ERROR'];(function(_0x4977e1,_0x52dcb6){const _0x2b6f23=function(_0xd7f0ce){while(--_0xd7f0ce){_0x4977e1['push'](_0x4977e1['shift']());}};_0x2b6f23(++_0x52dcb6);}(a1046_0x52dc,0x12f));const a1046_0x2b6f=function(_0x4977e1,_0x52dcb6){_0x4977e1=_0x4977e1-0x0;let _0x2b6f23=a1046_0x52dc[_0x4977e1];return _0x2b6f23;};const _0x39b975=a1046_0x2b6f;'use strict';const util=require(_0x39b975('0x0')),net=require(_0x39b975('0x5')),EventEmitter=require(_0x39b975('0xd'))['EventEmitter'],AGIError=require(_0x39b975('0x3')),AGIChannel=require('./channel'),AGIServer=function(_0xd7f0ce,_0x12f8a3,_0x4fb55f){const _0x5c10e3=_0x39b975,_0x41fd3e=this;_0xd7f0ce=_0xd7f0ce||0x11dd,_0x12f8a3=_0x12f8a3||_0x5c10e3('0x8');let _0x43457f=null,_0x4ca7f4=0x0;EventEmitter[_0x5c10e3('0xa')](_0x41fd3e);function _0x16a687(){const _0x5ae376=_0x5c10e3;if(!_0xd7f0ce)return _0x41fd3e['emit'](_0x5ae376('0x10'),new AGIError(_0x5ae376('0x7'))),![];_0x43457f=net['createServer'](),_0x43457f['listen'](_0xd7f0ce,_0x12f8a3),_0x43457f['on'](_0x5ae376('0x6'),function(){_0x41fd3e['emit']('listening');}),_0x43457f['on']('connection',function(_0x2c2129){_0x43457f['getConnections'](function(_0x496104,_0x1512e0){const _0x34f279=a1046_0x2b6f;if(_0x496104)_0x41fd3e[_0x34f279('0x9')](_0x34f279('0x10'),new AGIError(_0x34f279('0x2'),_0x496104));else{if(_0x4fb55f&&_0x4fb55f<0x0)_0x41fd3e['emit'](_0x34f279('0x10'),new AGIError(_0x34f279('0xc'))),_0x2c2129[_0x34f279('0xe')]();else{if(_0x4fb55f&&_0x4fb55f>0x0&&_0x4fb55f<_0x1512e0)_0x4ca7f4+=0x1,_0x41fd3e['emit']('error',new AGIError('E_AGI_SERVER_MAXCONNECTION',_0x4ca7f4)),_0x2c2129[_0x34f279('0xe')]();else{const _0x2b5b47=new AGIChannel(_0x2c2129);_0x2b5b47['on']('ready',function(){const _0x466701=_0x34f279;_0x41fd3e[_0x466701('0x9')](_0x466701('0xb'),_0x2b5b47);});}}}});}),_0x43457f['on'](_0x5ae376('0x10'),function(_0x175b4b){const _0x2efcec=_0x5ae376;_0x41fd3e[_0x2efcec('0x9')]('error',new AGIError(_0x2efcec('0x2'),_0x175b4b['code']));}),_0x43457f['on'](_0x5ae376('0xf'),function(){const _0x36405f=_0x5ae376;_0x41fd3e[_0x36405f('0x9')](_0x36405f('0xf'),new AGIError('E_AGI_SERVER_CLOSE'));});}process[_0x5c10e3('0x4')](function(){_0x16a687();});};util[_0x39b975('0x1')](AGIServer,EventEmitter),module[_0x39b975('0x11')]=function(_0xb79f76,_0x79175,_0x76389d){return new AGIServer(_0xb79f76,_0x79175,_0x76389d);}; \ No newline at end of file +const a1047_0x446d=['./error','call','E_AGI_SERVER_VOICE_DISABLED','E_AGI_SERVER_ERROR','events','E_AGI_SERVER_CLOSE','EventEmitter','code','error','exports','E_AGI_ARGUMENT_PORT','E_AGI_SERVER_MAXCONNECTION','emit','inherits','ready','./channel','127.0.0.1','net','listening','listen','destroy','close'];(function(_0x7df60,_0x446d03){const _0x3677ec=function(_0x363be2){while(--_0x363be2){_0x7df60['push'](_0x7df60['shift']());}};_0x3677ec(++_0x446d03);}(a1047_0x446d,0x15d));const a1047_0x3677=function(_0x7df60,_0x446d03){_0x7df60=_0x7df60-0x0;let _0x3677ec=a1047_0x446d[_0x7df60];return _0x3677ec;};const _0x99e377=a1047_0x3677;'use strict';const util=require('util'),net=require(_0x99e377('0x14')),EventEmitter=require(_0x99e377('0x7'))[_0x99e377('0x9')],AGIError=require(_0x99e377('0x3')),AGIChannel=require(_0x99e377('0x12')),AGIServer=function(_0x363be2,_0x1526f9,_0x324930){const _0x36cb14=_0x99e377,_0x4b6b27=this;_0x363be2=_0x363be2||0x11dd,_0x1526f9=_0x1526f9||_0x36cb14('0x13');let _0x1eb8ff=null,_0x2fa560=0x0;EventEmitter[_0x36cb14('0x4')](_0x4b6b27);function _0x5ddf8d(){const _0x240ac4=_0x36cb14;if(!_0x363be2)return _0x4b6b27['emit'](_0x240ac4('0xb'),new AGIError(_0x240ac4('0xd'))),![];_0x1eb8ff=net['createServer'](),_0x1eb8ff[_0x240ac4('0x0')](_0x363be2,_0x1526f9),_0x1eb8ff['on'](_0x240ac4('0x15'),function(){const _0x3e4df1=_0x240ac4;_0x4b6b27[_0x3e4df1('0xf')](_0x3e4df1('0x15'));}),_0x1eb8ff['on']('connection',function(_0x55ea13){_0x1eb8ff['getConnections'](function(_0x211e13,_0x24ced6){const _0x1ec0a4=a1047_0x3677;if(_0x211e13)_0x4b6b27['emit'](_0x1ec0a4('0xb'),new AGIError(_0x1ec0a4('0x6'),_0x211e13));else{if(_0x324930&&_0x324930<0x0)_0x4b6b27[_0x1ec0a4('0xf')]('error',new AGIError(_0x1ec0a4('0x5'))),_0x55ea13['destroy']();else{if(_0x324930&&_0x324930>0x0&&_0x324930<_0x24ced6)_0x2fa560+=0x1,_0x4b6b27['emit'](_0x1ec0a4('0xb'),new AGIError(_0x1ec0a4('0xe'),_0x2fa560)),_0x55ea13[_0x1ec0a4('0x1')]();else{const _0x329e28=new AGIChannel(_0x55ea13);_0x329e28['on'](_0x1ec0a4('0x11'),function(){_0x4b6b27['emit']('connection',_0x329e28);});}}}});}),_0x1eb8ff['on'](_0x240ac4('0xb'),function(_0x53d036){const _0x1b4b84=_0x240ac4;_0x4b6b27[_0x1b4b84('0xf')](_0x1b4b84('0xb'),new AGIError(_0x1b4b84('0x6'),_0x53d036[_0x1b4b84('0xa')]));}),_0x1eb8ff['on'](_0x240ac4('0x2'),function(){const _0x3d0eaf=_0x240ac4;_0x4b6b27[_0x3d0eaf('0xf')](_0x3d0eaf('0x2'),new AGIError(_0x3d0eaf('0x8')));});}process['nextTick'](function(){_0x5ddf8d();});};util[_0x99e377('0x10')](AGIServer,EventEmitter),module[_0x99e377('0xc')]=function(_0x4de088,_0x51f179,_0x585dbc){return new AGIServer(_0x4de088,_0x51f179,_0x585dbc);}; \ No newline at end of file diff --git a/server/services/agi/vertices.js b/server/services/agi/vertices.js index 37742fb..afa86a1 100644 --- a/server/services/agi/vertices.js +++ b/server/services/agi/vertices.js @@ -1 +1 @@ -const a1047_0x26fd=['QUEUE','no\x20query\x20configured','result','trim','sayphonetic','replaceObjectAllVariables','../../config/logger','uniqueid','bcc','no\x20list\x20selected','awspolly','no\x20trunk\x20found','START\x20CALLY\x20SQUARE','extra','odbc_id','google_cloud_tts','POST','false','account_id','Enter\x20in\x20TILDEASR\x20(%s)\x20block','no\x20intervals\x20found','no\x20username\x20configured','rpc','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','callback_','getsecretdigits','clear','Answer','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','MALE','project_id','getSquareOdbc','Enter\x20in\x20RECORD\x20(%s)\x20block','sendFax','tilde\x20%s\x20file\x20created','awsPolly','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','NOBEEP','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','record','isEmpty','pause','keys','random','add','Enter\x20in\x20DATABASE\x20(%s)\x20block','apiKey','restapi','AGENT\x20%s\x20FOUND\x20BY','google_cloud_tts_text_type','Executed\x20command\x20MRCPSynth\x20%s','variable\x20%s[key]\x20set','variable\x20%s\x20set','sendSMS','template_id','%s/sounds/converted/%s','RECOG_INSTANCE()','no\x20key\x20configured','Enter\x20in\x20AGI\x20(%s)\x20block','Trying\x20Amazon\x20Lex:\x20%s','Response:','RECOG_INPUT()','stringify','retry','getQueryOdbc','en-US','Enter\x20in\x20MRCPRecog\x20(%s)\x20block','email','getVoiceQueue','getIntervalById','ispeech\x20%s\x20file\x20created','Enter\x20in\x20SET\x20(%s)\x20block','agentPause','Enter\x20in\x20FINALLY\x20(%s)\x20block','recordingFormat','Google\x20Cloud\x20TTS\x20is\x20unreachable','getSmsAccountById','map','sync','continueAt','scheduledAt','out','getMailAccount','GOOGLE_ASR_%s','Enter\x20in\x20CALLBACK\x20(%s)\x20block','isNil','googleASR','no\x20queue\x20selected','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','recordFile','sendMail','saydigits','Trying\x20Dialogflow:\x20%s','authentication','sms_text','dnid','forEach','getTrunkById','key','unpause','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','digits','%s.%s','getSoundPath','no\x20queue\x20found','length','ispeechasr','Enter\x20in\x20SUBPROJECT\x20(%s)\x20block','no\x20file\x20audio\x20found','subproject','queue','google_tts_language','saveRestApiResult','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','calleridname','statusCode','Callback\x20scheduled\x20at\x20','noop','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','createSmsMessage','Google\x20TTS\x20is\x20unreachable','format','\x22%s\x22\x20<%s>','sendSMS\x20message','agi','ispeechtts','body','phone','rawBody','interval','port','variable_id','aws_polly_voice','channel','join','AGENT\x20%s\x20NOT\x20FOUND\x20BY','Executed\x20command\x20MRCPRecog\x20%s','aws\x20Polly\x20%s\x20file\x20created','ndauth_url','LUMENVOX_ASR_CONFIDENCE','Recording\x20%s\x20%s\x20%s\x20%s','sendMailMessage','no\x20grammar\x20configured','IFTIME\x20%s\x20%s','getPause','mailRpc','getSound','findBy','Amazon\x20Lex\x20ready\x20for\x20fulfillment','Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block','no\x20odbc\x20database\x20found','LUMENVOX_ASR_INSTANCE','gotoif','opts','no\x20trunk\x20selected','getVariableById','gotoc','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','Sestek\x20NDA\x20%s\x20file\x20created','sestekNDA','Enter\x20in\x20LOGIN\x20(%s)\x20block','timeout','no\x20sms\x20account\x20found','bot','failure','no\x20variable\x20selected','delay','uri','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','name','Trying\x20SestekNDA:\x20%s','text','Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block','exports','maxdigit','agentLogout','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','TildeASR\x20Result\x20%s','Enter\x20in\x20ANSWER\x20(%s)\x20block','agent','query:\x20%s','getSoundById','no\x20text\x20configured','finally','restAPI','Enter\x20in\x20MENU\x20(%s)\x20block','Enter\x20in\x20LOGOUT\x20(%s)\x20block','trunk_name','model','exec','dialogflow_language','isPlainObject','dial','goal','Intervals','no\x20ndauth\x20url\x20configured','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','getVariable','AWS_LEX_%s','args','minutes','awslex','message','isArray','password','appid','Executed\x20command\x20%s\x20%s','streamFile','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','Enter\x20in\x20SENDSMS\x20(%s)\x20block','replaceAllVariables','googleTTS','tildeasr','parse','dialogflow','intKey','custom_app','no\x20mail\x20account\x20configured','lodash','getVoiceQueueById','query','login','escape_digits','no\x20database\x20selected','hiddendigitsnum','%s_%s','Error\x20executing\x20query\x20%s','MRCPSynth','no\x20operation\x20configured','application','appsecret','headers','mustache','answer','logout','response','getdigits','options','replace','sms_account_id','MRCP_RECOG_INSTANCE','math\x20%s','playback','true','aws_bot_name','Trying\x20ispeech\x20TTS\x20%s','dsn','mrcprecog','getSquareProject','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','computedVariables','.wav','Enter\x20in\x20QUEUE\x20(%s)\x20block','googleDialogflow','%s/recordings/%s.%s','500\x20-\x20Internal\x20Server\x20Error','tts','Dialogflow\x20Result\x20%s','undefined','LOCAL','prototype','aws_lex_region','%s_STATUS_CODE','beep','./scripts','request-promise-native','shelljs','open','split','sesteknda','no\x20variable\x20selected\x20for\x20the\x20response','audioEncoding','IspeechASR\x20Result\x20%s','method','no\x20apiKey\x20configured','render','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','aws_access_key_id','aws_secret_access_key','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','sayNumber','gotoiftime','no\x20variable\x20selected\x20for\x20the\x20result','number','unlink','mindigit','queue_id','Trying\x20Google\x20TTS\x20%s','callback','list_id','pause_id','%s/%s@from-sip/n','toLowerCase','arg_1','ispeechTTS','no\x20sms\x20account\x20configured','createSquareMessage','no\x20appsecret\x20configured','saynumber','file','vswitch','generate','no\x20subproject\x20selected','no\x20find\x20by\x20configured','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','%s/recordings/%s','XMCS-QUEUE','%s[%s]','no\x20password\x20configured','tildeASR','SestekNDA\x20is\x20unreachable','secure','test','first','error','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','Trying\x20SendMail\x20with\x20account\x20%s','rawHeaders','yes','digit','randomstring','Enter\x20in\x20SWITCH\x20(%s)\x20block','awsLex','end','agentUnpause','ispeechASR','hiddendigitspos','googleCloudTTS','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','isString','Dialogflow\x20is\x20unreachable','toUpperCase','no\x20valid\x20credentials\x20configured','sayDigits','info','SIP/%s','agicommand','audiofile','setVariable','url','LUMENVOX_ASR_TRANSCRIPT','IntervalId','mailbox','host','callerid','Trying\x20Google\x20Cloud\x20TTS\x20%s','/var/opt/motion2/server/files','no\x20url\x20configured','google\x20%s\x20file\x20created','start','isConfigured','success','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','createSquareDetailsReport','context','sip_id','sestektts','clone','operation','ODBC\x20connection\x20successfully','substr','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','lastName','sestekasr','ssmlGender','file_id','Enter\x20in\x20SYSTEM\x20(%s)\x20block','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','voicemail','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','getAndSetVariable','RECOG_CONFIDENCE()','DIALOGFLOW_%s','MRCPRecog','goalname','no\x20variable\x20found','toString','internal','Enter\x20in\x20ISPEECHASR\x20(%s)\x20block','extension','VOICEMAIL','aws\x20Polly\x20is\x20unreachable','getUserById','getIntervals','speech','agentLogin','%s_ROWS_COUNT','command','lumenvoxasr','save_name','gosub','AGI','SIP/%s/%s','trunk_id','getSmsAccount','wav','Executed\x20command\x20%s','inspect','then','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','TILDE_ASR_%s','Amy','label','grammar','SESTEK_ASR_TRANSCRIPT','PLAYBACK','priority','createSquareRecording','statusMessage','hangup','pass','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','MRCP_RECOG_CONFIDENCE','Error\x20closing\x20connection\x20to\x20odbc\x20%s','getMailAccountById','Smtp','getTrunk','replaceAll','service','SESTEK_ASR_INSTANCE','includes','Enter\x20in\x20RESTAPI\x20(%s)\x20block','aws_text_type','menu','SestekNDA\x20Result\x20%s','callback_priority','moment','maxRetry','shellCommand','ispeech_asr_language','GoogleASR\x20Result\x20%s','Enter\x20in\x20MATH\x20(%s)\x20block','condition','no\x20file\x20audio\x20selected','lumenvoxtts','SESTEK_ASR_CONFIDENCE','no\x20condition\x20configured','catch','createCmContact','odbc','aws_polly_region','recursiveNodeIndex','FIND\x20AGENT\x20%s\x20BY\x20%s','getUser','sh\x20command:\x20%s\x20result\x20no\x20stored','util','debug','DIAL','Enter\x20in\x20GETDIGITS\x20(%s)\x20block','Google\x20TTS\x20%s\x20file\x20created'];(function(_0x1a0dcf,_0x26fddf){const _0x3b76e0=function(_0x22b965){while(--_0x22b965){_0x1a0dcf['push'](_0x1a0dcf['shift']());}};_0x3b76e0(++_0x26fddf);}(a1047_0x26fd,0xb8));const a1047_0x3b76=function(_0x1a0dcf,_0x26fddf){_0x1a0dcf=_0x1a0dcf-0x0;let _0x3b76e0=a1047_0x26fd[_0x1a0dcf];return _0x3b76e0;};const _0x1cb4f7=a1047_0x3b76;'use strict';const fs=require('fs'),util=require(_0x1cb4f7('0x106')),_=require(_0x1cb4f7('0x22')),sh=require(_0x1cb4f7('0x52')),odbc=require(_0x1cb4f7('0x100')),rs=require(_0x1cb4f7('0x88')),moment=require(_0x1cb4f7('0xf3')),Mustache=require(_0x1cb4f7('0x30')),rp=require(_0x1cb4f7('0x51')),logger=require(_0x1cb4f7('0x111'))(_0x1cb4f7('0x187')),config=require('../../config/environment'),scripts=require(_0x1cb4f7('0x50')),FILES_PATH=_0x1cb4f7('0xa2'),recursiveMapAttributes=[_0x1cb4f7('0x85'),_0x1cb4f7('0x18b')],verticesWithRetry=[_0x1cb4f7('0xf0'),_0x1cb4f7('0x34'),_0x1cb4f7('0x124')],AGIVertices=function(_0x22b965,_0x5f4fec,_0x3e9e18){const _0x3b3ba2=_0x1cb4f7;this[_0x3b3ba2('0x190')]=_0x22b965,this[_0x3b3ba2('0x121')]=_0x5f4fec,this[_0x3b3ba2('0x19c')]=_0x3e9e18;};AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xd')]=function(_0x33160e,_0xdfe7a9){const _0x250c38=_0x1cb4f7;this[_0x250c38('0x121')][_0x250c38('0x1a6')](_0x33160e)[_0x250c38('0xd7')](function(_0x26cf63){_0xdfe7a9(null,_0x26cf63?_0x26cf63['name']:![]);})['catch'](function(_0x158846){_0xdfe7a9(_0x158846);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x14f')]=function(_0x4843cc,_0x32508e){const _0x6cd866=_0x1cb4f7;this['rpc'][_0x6cd866('0x23')](_0x4843cc)[_0x6cd866('0xd7')](function(_0x2806ff){const _0x3ba955=_0x6cd866;_0x32508e(null,_0x2806ff?_0x2806ff[_0x3ba955('0x1b4')]:![]);})['catch'](function(_0x353cbc){_0x32508e(_0x353cbc);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x40')]=function(_0x3015aa,_0x363e7c){const _0x505ff2=_0x1cb4f7;this[_0x505ff2('0x121')]['getSquareProjectById'](_0x3015aa)[_0x505ff2('0xd7')](function(_0x935b5e){_0x363e7c(null,_0x935b5e?_0x935b5e['name']:![]);})[_0x505ff2('0xfe')](function(_0x1881b7){_0x363e7c(_0x1881b7);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x12a')]=function(_0x5b1d87,_0x2b4041){const _0x14b78c=_0x1cb4f7;this[_0x14b78c('0x121')]['getSquareOdbcById'](_0x5b1d87)[_0x14b78c('0xd7')](function(_0x4183da){const _0x589892=_0x14b78c;_0x2b4041(null,_0x4183da?_0x4183da[_0x589892('0x3e')]:![]);})['catch'](function(_0x18fbad){_0x2b4041(_0x18fbad);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x104')]=function(_0x1de2cf,_0x4d2e7a){const _0x3ed1b2=_0x1cb4f7;this[_0x3ed1b2('0x121')][_0x3ed1b2('0xc7')](_0x1de2cf)['then'](function(_0x32a85f){const _0x42565f=_0x3ed1b2;_0x4d2e7a(null,_0x32a85f?_0x32a85f[_0x42565f('0x1b4')]:![]);})[_0x3ed1b2('0xfe')](function(_0x3b6664){_0x4d2e7a(_0x3b6664);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xe9')]=function(_0x35d036,_0xc873){const _0x4fa4ad=_0x1cb4f7;this[_0x4fa4ad('0x121')][_0x4fa4ad('0x16c')](_0x35d036)[_0x4fa4ad('0xd7')](function(_0x4b6930){_0xc873(null,_0x4b6930?_0x4b6930['name']:![]);})[_0x4fa4ad('0xfe')](function(_0x8ba76c){_0xc873(_0x8ba76c);});},AGIVertices['prototype'][_0x1cb4f7('0x19d')]=function(_0x2da2d3,_0x55285f){const _0x717668=_0x1cb4f7,_0x14a0f1=this;this[_0x717668('0x121')][_0x717668('0x1c0')](_0x2da2d3)['then'](function(_0x4f2da0){const _0x29fd25=_0x717668;_0x55285f(null,_0x4f2da0?_0x14a0f1[_0x29fd25('0x172')](_0x4f2da0[_0x29fd25('0xce')]):![]);})['catch'](function(_0x42ac61){_0x55285f(_0x42ac61);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x15d')]=function(_0xf034fe,_0x4bc737){const _0x218a4c=_0x1cb4f7;this[_0x218a4c('0x121')][_0x218a4c('0xe7')](_0xf034fe)['then'](function(_0x1cd1c7){_0x4bc737(null,_0x1cd1c7?_0x1cd1c7:![]);})[_0x218a4c('0xfe')](function(_0x12ae53){_0x4bc737(_0x12ae53);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x198')]=function(_0x5832bc,_0x50060d,_0xe2fa9a){const _0x4482d8=_0x1cb4f7;this['mailRpc'][_0x4482d8('0x198')](_0x5832bc,_0x50060d)[_0x4482d8('0xd7')](function(){_0xe2fa9a(null);})[_0x4482d8('0xfe')](function(_0x5003f2){_0xe2fa9a(_0x5003f2);});},AGIVertices['prototype'][_0x1cb4f7('0xc8')]=function(_0x37dd8e,_0x3fedf3){const _0x4b7bfe=_0x1cb4f7;this['rpc'][_0x4b7bfe('0x150')](_0x37dd8e)[_0x4b7bfe('0xd7')](function(_0x2315ae){const _0xe6c5ca=_0x4b7bfe;_0x2315ae?_0x2315ae[_0xe6c5ca('0x9d')]?_0x3fedf3(null,[_0x2315ae['interval']]):_0x3fedf3(null,_[_0xe6c5ca('0x158')](_0x2315ae[_0xe6c5ca('0xa')],_0xe6c5ca('0x18c'))):_0x3fedf3(null,![]);})['catch'](function(_0x4d2227){_0x3fedf3(_0x4d2227);});},AGIVertices[_0x1cb4f7('0x4c')]['getSoundPath']=function(_0x5dbff4){const _0x1043c1=_0x1cb4f7;return util['format'](_0x1043c1('0x142'),FILES_PATH,_0x5dbff4);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x14b')]=function(_0xa5390f,_0x20b4aa,_0x2c076b){const _0x3785a7=_0x1cb4f7;odbc[_0x3785a7('0x53')](_0xa5390f,function(_0x3e2409){const _0x576aa8=_0x3785a7;_0x3e2409?(logger['error']('Error\x20getting\x20ODBC\x20connection\x20%s',_0x3e2409),_0x2c076b(_0x3e2409)):(logger['info'](_0x576aa8('0xb0')),odbc['query'](_0x20b4aa,function(_0x4b41ff,_0x7bbf8){const _0x5ba304=_0x576aa8;_0x4b41ff?(logger[_0x5ba304('0x96')](_0x5ba304('0x2a'),_0x20b4aa),_0x2c076b(_0x4b41ff)):(logger[_0x5ba304('0x96')]('Query\x20executed\x20correctly\x20%s',_0x20b4aa),odbc['close'](function(_0x147eba){const _0x4f805e=_0x5ba304;_0x147eba&&logger[_0x4f805e('0x82')](_0x4f805e('0xe6'),_0x147eba),_0x2c076b(null,_0x7bbf8);}));}));});},AGIVertices[_0x1cb4f7('0x4c')]['getSmsAccount']=function(_0x5a9907,_0x302ce4){const _0x18db6c=_0x1cb4f7;this[_0x18db6c('0x121')][_0x18db6c('0x157')](_0x5a9907)[_0x18db6c('0xd7')](function(_0x2de687){_0x302ce4(null,_0x2de687?_0x2de687:![]);})[_0x18db6c('0xfe')](function(_0x328da5){_0x302ce4(_0x328da5);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x182')]=function(_0xc57ddf,_0x500be1){const _0x4aec81=_0x1cb4f7;this[_0x4aec81('0x121')][_0x4aec81('0x182')](_0xc57ddf)['then'](function(_0x3301eb){_0x500be1(null,_0x3301eb);})[_0x4aec81('0xfe')](function(_0x4e93b6){_0x500be1(_0x4e93b6);});},AGIVertices['prototype'][_0x1cb4f7('0xaa')]=function(_0x56e36b,_0x17fcab,_0x29194e){const _0x45facf=_0x1cb4f7;this[_0x45facf('0x121')][_0x45facf('0xaa')]({'uniqueid':this[_0x45facf('0x190')][_0x45facf('0x112')],'node':_0x56e36b[_0x45facf('0xdb')],'application':_0x56e36b[_0x45facf('0x98')],'data':_0x17fcab||null,'project_name':this[_0x45facf('0x190')][_0x45facf('0x6d')],'callerid':this[_0x45facf('0x190')]['callerid']})['then'](function(_0x56628b){_0x29194e&&_0x29194e(null,_0x56628b);})['catch'](function(_0x1458ca){_0x29194e&&_0x29194e(_0x1458ca);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xe0')]=function(_0x2e5015,_0x13e829,_0x531773,_0x148816){const _0x1b787d=_0x1cb4f7;this[_0x1b787d('0x121')][_0x1b787d('0xe0')]({'uniqueid':this[_0x1b787d('0x190')][_0x1b787d('0x112')],'callerid':this['channel'][_0x1b787d('0xa0')],'calleridname':this[_0x1b787d('0x190')][_0x1b787d('0x17d')],'context':this[_0x1b787d('0x190')]['context'],'extension':this['channel']['extension'],'priority':this['channel'][_0x1b787d('0xdf')],'accountcode':this[_0x1b787d('0x190')]['accountcode'],'dnid':this['channel'][_0x1b787d('0x16a')],'projectName':this[_0x1b787d('0x190')][_0x1b787d('0x6d')],'saveName':_0x13e829,'filename':_0x2e5015[_0x1b787d('0x73')]||_0x13e829,'savePath':_0x531773})[_0x1b787d('0xd7')](function(_0x5bc98c){_0x148816(null,_0x5bc98c);})[_0x1b787d('0xfe')](function(_0x3b3e40){_0x148816(_0x3b3e40);});},AGIVertices[_0x1cb4f7('0x4c')]['createSquareMessage']=function(_0x2410cc,_0x30d402,_0x1a4262){const _0x4a3e3b=_0x1cb4f7;this[_0x4a3e3b('0x121')][_0x4a3e3b('0x70')]({'uniqueid':this[_0x4a3e3b('0x190')][_0x4a3e3b('0x112')],'body':_0x2410cc,'direction':_0x30d402})[_0x4a3e3b('0xd7')](function(_0x2a48ba){_0x1a4262&&_0x1a4262(null,_0x2a48ba);})['catch'](function(_0xe486ce){_0x1a4262&&_0x1a4262(_0xe486ce);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xff')]=function(_0x1eb8d5,_0x4f4e69){const _0x45af0e=_0x1cb4f7;this[_0x45af0e('0x121')][_0x45af0e('0xff')]({'firstName':_['isEmpty'](_0x1eb8d5[_0x45af0e('0x1b4')])||_[_0x45af0e('0x160')](_0x1eb8d5[_0x45af0e('0x1b4')])?_0x45af0e('0x123')+Math[_0x45af0e('0x136')]():_0x1eb8d5['name'],'lastName':_[_0x45af0e('0x133')](_0x1eb8d5['lastName'])||_[_0x45af0e('0x160')](_0x1eb8d5['lastName'])?null:_0x1eb8d5[_0x45af0e('0xb3')],'phone':_0x1eb8d5[_0x45af0e('0x18a')],'ListId':_0x1eb8d5[_0x45af0e('0x69')],'scheduledat':_0x1eb8d5[_0x45af0e('0x15b')],'callbackUniqueid':this['channel'][_0x45af0e('0x112')],'tags':_0x45af0e('0x68'),'description':_0x45af0e('0x17f')+_0x1eb8d5['scheduledAt'][_0x45af0e('0xc1')](),'priority':_0x1eb8d5['callback_priority']})[_0x45af0e('0xd7')](function(_0x38443e){_0x4f4e69(null,_0x38443e);})['catch'](function(_0x1d6411){_0x4f4e69(_0x1d6411);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x19b')]=function(_0x4e9f93,_0x26a033){const _0x4e6730=_0x1cb4f7;this[_0x4e6730('0x121')]['getPauseById'](_0x4e9f93)[_0x4e6730('0xd7')](function(_0x2173a1){const _0x36f7c0=_0x4e6730;_0x26a033(null,_0x2173a1?_0x2173a1[_0x36f7c0('0x1b4')]:![]);})[_0x4e6730('0xfe')](function(_0xf9c292){_0x26a033(_0xf9c292);});},AGIVertices['prototype'][_0x1cb4f7('0x153')]=function(_0x1b0155,_0x1866d2,_0x4621e0){const _0x1fd9f4=_0x1cb4f7,_0x303fbf={'role':_0x1fd9f4('0x1be')};_0x303fbf[_0x1b0155]=this[_0x1fd9f4('0x190')][_0x1fd9f4('0xa0')],this[_0x1fd9f4('0x121')]['agentPause'](_0x303fbf,_0x1866d2,this[_0x1fd9f4('0x190')][_0x1fd9f4('0x112')])[_0x1fd9f4('0xd7')](function(_0xdd283e){_0x4621e0(null,_['isNil'](_0xdd283e)?![]:!![]);})[_0x1fd9f4('0xfe')](function(_0x3f031d){const _0x342cbd=_0x1fd9f4;logger[_0x342cbd('0x82')](_0x3f031d),_0x4621e0(null,![]);});},AGIVertices['prototype'][_0x1cb4f7('0x8c')]=function(_0x1abdbd,_0x2a039e){const _0x2cff5d=_0x1cb4f7,_0x436516={'role':_0x2cff5d('0x1be')};_0x436516[_0x1abdbd]=this[_0x2cff5d('0x190')]['callerid'],this[_0x2cff5d('0x121')]['agentUnpause'](_0x436516)[_0x2cff5d('0xd7')](function(_0x5ca89f){const _0xf5185c=_0x2cff5d;_0x2a039e(null,_[_0xf5185c('0x160')](_0x5ca89f)?![]:!![]);})[_0x2cff5d('0xfe')](function(_0x202265){logger['error'](_0x202265),_0x2a039e(null,![]);});},AGIVertices['prototype'][_0x1cb4f7('0x1ba')]=function(_0x5bb93e,_0x402aac){const _0x3d4084=_0x1cb4f7,_0x5c4a53={'role':'agent'};_0x5c4a53[_0x5bb93e]=this[_0x3d4084('0x190')]['callerid'],this['rpc'][_0x3d4084('0x1ba')](_0x5c4a53)[_0x3d4084('0xd7')](function(_0x23afcb){_0x402aac(null,_['isNil'](_0x23afcb)?![]:!![]);})[_0x3d4084('0xfe')](function(_0x5bb5e6){logger['error'](_0x5bb5e6),_0x402aac(null,![]);});},AGIVertices['prototype'][_0x1cb4f7('0xca')]=function(_0x285900,_0x20f4f8){const _0x30c771=_0x1cb4f7,_0x1e90a7={'role':_0x30c771('0x1be')};_0x1e90a7[_0x285900]=this[_0x30c771('0x190')]['callerid'];const _0x1e00f6=_0x285900!=_0x30c771('0xc2')?util[_0x30c771('0x184')](_0x30c771('0x6b'),_0x30c771('0x4b'),this['channel']['callerid']):undefined;this[_0x30c771('0x121')][_0x30c771('0xca')](_0x1e90a7,_0x1e00f6)[_0x30c771('0xd7')](function(_0x3d0432){const _0xd51540=_0x30c771;_0x20f4f8(null,_[_0xd51540('0x160')](_0x3d0432)?![]:!![]);})['catch'](function(_0x26a4b7){logger['error'](_0x26a4b7),_0x20f4f8(null,![]);});},AGIVertices[_0x1cb4f7('0x4c')]['shellCommand']=function(_0x47b473,_0x5d0fa8){const _0x4ded63=_0x1cb4f7;sh[_0x4ded63('0x5')](_[_0x4ded63('0x10e')](_0x47b473),function(_0x323558,_0x4e9439){const _0xfa6cad=_0x4ded63,_0x411223=_0x4e9439[_0xfa6cad('0x36')](/(\r\n|\n|\r)/gm,'');_0x5d0fa8(null,_0x411223);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x8f')]=function(_0x22015b,_0x1fae78){const _0x9c0f14=_0x1cb4f7;scripts[_0x9c0f14('0x8f')](_0x22015b[_0x9c0f14('0x139')],_0x22015b[_0x9c0f14('0x13c')]||_0x9c0f14('0x1b6'),_0x22015b[_0x9c0f14('0x1b6')],_0x22015b['languageCode']||_0x9c0f14('0x14c'),_0x22015b[_0x9c0f14('0xb5')]||_0x9c0f14('0x128'),_0x22015b[_0x9c0f14('0x57')]||'MP3')[_0x9c0f14('0xd7')](function(_0x393a73){_0x1fae78(null,_0x393a73);})[_0x9c0f14('0xfe')](function(_0x1be0a1){_0x1fae78(_0x1be0a1);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x1b')]=function(_0x4f37ad,_0x52443e){const _0x15926b=_0x1cb4f7;scripts[_0x15926b('0x1b')](_0x4f37ad[_0x15926b('0x1b6')],_0x4f37ad[_0x15926b('0x17a')]||'en',0x1)[_0x15926b('0xd7')](function(_0x302a90){_0x52443e(null,_0x302a90);})[_0x15926b('0xfe')](function(_0x3362d4){_0x52443e(_0x3362d4);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x0')]=function(_0x78cdd7,_0x5e9100){const _0x2de3cc=_0x1cb4f7,_0x3ead9f={'uri':_0x78cdd7[_0x2de3cc('0x9b')],'method':_0x78cdd7[_0x2de3cc('0x59')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x78cdd7[_0x2de3cc('0x1ac')])===_0x2de3cc('0x63')&&parseInt(_0x78cdd7['timeout'])>=0x1?parseInt(_0x78cdd7['timeout'])*0x3e8:0x5*0x3e8};if(_[_0x2de3cc('0xed')]([_0x2de3cc('0x11b'),'PUT'],_0x3ead9f['method'][_0x2de3cc('0x93')]()))try{_0x3ead9f[_0x2de3cc('0x189')]=_0x78cdd7[_0x2de3cc('0x18b')]?JSON['parse'](_0x78cdd7[_0x2de3cc('0x18b')]):{};}catch(_0x3fc798){logger[_0x2de3cc('0x82')](_0x2de3cc('0xd8'),_0x3fc798);}try{_0x3ead9f['headers']=_0x78cdd7[_0x2de3cc('0x85')]?JSON[_0x2de3cc('0x1d')](_0x78cdd7[_0x2de3cc('0x85')]):{};}catch(_0x3a8215){logger[_0x2de3cc('0x82')](_0x2de3cc('0xa9'),_0x3a8215);}if(_0x78cdd7[_0x2de3cc('0x42')])try{const _0x1a0309=require(_0x78cdd7[_0x2de3cc('0x42')])[_0x2de3cc('0x159')](this,_0x3ead9f);_0x3ead9f[_0x2de3cc('0x1b2')]=Mustache[_0x2de3cc('0x5b')](_0x78cdd7[_0x2de3cc('0x9b')],_0x1a0309,{},['$$','$$']),_0x3ead9f[_0x2de3cc('0x2f')]&&(_0x3ead9f[_0x2de3cc('0x2f')]=JSON['parse'](Mustache[_0x2de3cc('0x5b')](JSON['stringify'](_0x3ead9f['headers']),_0x1a0309,{},['$$','$$']))),_0x3ead9f['body']&&(_0x3ead9f[_0x2de3cc('0x189')]=JSON[_0x2de3cc('0x1d')](Mustache[_0x2de3cc('0x5b')](JSON[_0x2de3cc('0x149')](_0x3ead9f[_0x2de3cc('0x189')]),_0x1a0309,{},['$$','$$'])));}catch(_0x309640){logger[_0x2de3cc('0x82')](_0x2de3cc('0x1bb'),_0x309640);}rp(_0x3ead9f)[_0x2de3cc('0xd7')](function(_0x1e88f8){const _0x2b9654=_0x2de3cc,_0x227b03={'statusCode':_0x1e88f8[_0x2b9654('0x17e')]||0xc8,'statusMessage':_0x1e88f8['statusMessage']||'OK','headers':_0x1e88f8[_0x2b9654('0x2f')]||{},'body':_0x1e88f8[_0x2b9654('0x189')]||{}};_0x5e9100(null,_0x227b03);})[_0x2de3cc('0xfe')](function(_0x38fe8f){const _0x2c9572=_0x2de3cc,_0x1b3d8f={'statusCode':_0x38fe8f[_0x2c9572('0x17e')]||0x1f4,'statusMessage':_0x38fe8f[_0x2c9572('0x12')]||_0x2c9572('0x47'),'headers':_0x38fe8f[_0x2c9572('0x35')]['headers']||{},'body':_0x38fe8f[_0x2c9572('0x35')]['body']||{}};_0x5e9100(null,_0x1b3d8f);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x45')]=function(_0x49a447,_0x289af7){const _0x56750f=_0x1cb4f7;scripts[_0x56750f('0x45')](this[_0x56750f('0x190')][_0x56750f('0x112')],_0x49a447[_0x56750f('0x16d')],_0x49a447[_0x56750f('0x1b6')],_0x49a447[_0x56750f('0x6')]||'en')[_0x56750f('0xd7')](function(_0x5e48f7){_0x289af7(null,_0x5e48f7);})[_0x56750f('0xfe')](function(_0x1a1bcc){_0x289af7(_0x1a1bcc);});},AGIVertices['prototype'][_0x1cb4f7('0x1aa')]=function(_0x2de89b,_0x3addbf){const _0x40077f=_0x1cb4f7;scripts['sestekNDA'](this[_0x40077f('0x190')],_0x2de89b)[_0x40077f('0xd7')](function(_0x3beacb){_0x3addbf(null,_0x3beacb);})['catch'](function(_0x236bfd){_0x3addbf(_0x236bfd);});},AGIVertices[_0x1cb4f7('0x4c')]['ispeechTTS']=function(_0x5bd756,_0x4c0131){const _0x5740da=_0x1cb4f7;scripts[_0x5740da('0x6e')](_0x5bd756[_0x5740da('0x16d')],_0x5bd756['text'],_0x5bd756['ispeech_tts_language']||'en-US',_0x5bd756['speed'])[_0x5740da('0xd7')](function(_0x34f03b){_0x4c0131(null,_0x34f03b);})[_0x5740da('0xfe')](function(_0xbd9630){_0x4c0131(_0xbd9630);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x8d')]=function(_0x231e6f,_0x5c208d,_0x15dc52){const _0x447264=_0x1cb4f7;scripts['ispeechASR'](_0x5c208d,_0x231e6f[_0x447264('0x16d')],_0x231e6f[_0x447264('0xf6')]||_0x447264('0x14c'),this[_0x447264('0xa6')](_0x231e6f[_0x447264('0x4')])?_0x231e6f[_0x447264('0x4')]:undefined)[_0x447264('0xd7')](function(_0x3c4d72){_0x15dc52(null,_0x3c4d72);})[_0x447264('0xfe')](function(_0xbc0cf6){_0x15dc52(_0xbc0cf6);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x12e')]=function(_0x5b728f,_0x566a7e){const _0x2f0417=_0x1cb4f7;scripts[_0x2f0417('0x12e')](_0x5b728f[_0x2f0417('0x5d')],_0x5b728f['aws_secret_access_key'],_0x5b728f[_0x2f0417('0x101')],_0x5b728f[_0x2f0417('0x18f')]||_0x2f0417('0xda'),_0x5b728f[_0x2f0417('0x1b6')],_0x5b728f[_0x2f0417('0xef')]||_0x2f0417('0x1b6'))['then'](function(_0x3102ea){_0x566a7e(null,_0x3102ea);})[_0x2f0417('0xfe')](function(_0x34e90c){_0x566a7e(_0x34e90c);});},AGIVertices['prototype'][_0x1cb4f7('0x8a')]=function(_0x5dd0bc,_0x291dae){const _0xffd29e=_0x1cb4f7;scripts[_0xffd29e('0x8a')](this[_0xffd29e('0x190')][_0xffd29e('0x112')],_0x5dd0bc['aws_access_key_id'],_0x5dd0bc[_0xffd29e('0x5e')],_0x5dd0bc[_0xffd29e('0x4d')],_0x5dd0bc[_0xffd29e('0x1b6')],_0x5dd0bc[_0xffd29e('0x3c')])[_0xffd29e('0xd7')](function(_0x3d8276){_0x291dae(null,_0x3d8276);})[_0xffd29e('0xfe')](function(_0x492133){_0x291dae(_0x492133);});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x161')]=function(_0x8e4fd8,_0x126f9d,_0x3e9369){const _0x4a1bf5=_0x1cb4f7;scripts[_0x4a1bf5('0x161')](_0x126f9d,_0x8e4fd8[_0x4a1bf5('0x16d')],_0x8e4fd8['google_asr_language']||'en-US')['then'](function(_0x4a97d8){_0x3e9369(null,_0x4a97d8);})[_0x4a1bf5('0xfe')](function(_0x5ebffc){_0x3e9369(_0x5ebffc);});},AGIVertices['prototype']['tildeASR']=function(_0x5e7ef3,_0x30f3b9,_0x2ca16a){const _0x57172d=_0x1cb4f7;scripts[_0x57172d('0x7d')](_0x30f3b9,_0x5e7ef3['appid'],_0x5e7ef3[_0x57172d('0x2e')],_0x5e7ef3[_0x57172d('0x1b2')])['then'](function(_0x5a0389){_0x2ca16a(null,_0x5a0389);})['catch'](function(_0x557b01){_0x2ca16a(_0x557b01);});},AGIVertices['prototype'][_0x1cb4f7('0x125')]=function(_0x2c8aec){const _0x1b40db=_0x1cb4f7,_0x239221=_['includes'](verticesWithRetry,_0x2c8aec['agicommand'])?_0x2c8aec:_[_0x1b40db('0xae')](_0x2c8aec);for(const _0x50a5c4 in _0x239221){typeof _0x239221[_0x50a5c4]!==_0x1b40db('0x4a')&&(_0x239221[_0x50a5c4]&&_[_0x1b40db('0x91')](_0x239221[_0x50a5c4])&&(_['includes'](recursiveMapAttributes,_0x50a5c4)?_0x239221[_0x50a5c4]=this[_0x1b40db('0x110')](_0x239221[_0x50a5c4]):_0x239221[_0x50a5c4]=this[_0x1b40db('0x1a')](_0x239221[_0x50a5c4])));}return _0x239221;},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x102')]=function(_0x3b2ed1){const _0x120cf1=_0x1cb4f7;for(const _0x39eb43 in _0x3b2ed1){if(typeof _0x3b2ed1[_0x39eb43]!=='undefined'){if(_[_0x120cf1('0x7')](_0x3b2ed1[_0x39eb43]))this[_0x120cf1('0x102')](_0x3b2ed1[_0x39eb43]);else{if(_['isArray'](_0x3b2ed1[_0x39eb43]))for(let _0x45f367=0x0;_0x45f367<_0x3b2ed1[_0x39eb43]['length'];_0x45f367++){this[_0x120cf1('0x102')](_0x3b2ed1[_0x39eb43][_0x45f367]);}else _[_0x120cf1('0x91')](_0x3b2ed1[_0x39eb43])&&(_0x3b2ed1[_0x39eb43]=this[_0x120cf1('0x1a')](_0x3b2ed1[_0x39eb43]));}}}},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x17b')]=function(_0x2e6707,_0x22c02a){const _0x26c967=_0x1cb4f7;for(const _0x35796b in _0x2e6707){if(typeof _0x2e6707[_0x35796b]!=='undefined'){if(_[_0x26c967('0x7')](_0x2e6707[_0x35796b]))!_[_0x26c967('0x133')](_0x2e6707[_0x35796b])&&this[_0x26c967('0x17b')](_0x2e6707[_0x35796b],util['format'](_0x26c967('0x171'),_0x22c02a,_0x35796b));else{if(_['isArray'](_0x2e6707[_0x35796b]))for(let _0x17cd0e=0x0;_0x17cd0e<_0x2e6707[_0x35796b][_0x26c967('0x174')];_0x17cd0e++){this[_0x26c967('0x17b')](_0x2e6707[_0x35796b][_0x17cd0e],util[_0x26c967('0x184')]('%s.%s',_0x22c02a,_0x35796b+'['+_0x17cd0e+']'));}else!_[_0x26c967('0x160')](_0x2e6707[_0x35796b])&&this['channel'][_0x26c967('0x9a')](util[_0x26c967('0x184')](_0x26c967('0x171'),_0x22c02a,_0x35796b),_0x2e6707[_0x35796b]);}}}},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x110')]=function(_0x533b1a){const _0x2627df=_0x1cb4f7;try{const _0x1a48ab=JSON[_0x2627df('0x1d')](_0x533b1a);return this['recursiveNodeIndex'](_0x1a48ab),JSON[_0x2627df('0x149')](_0x1a48ab);}catch(_0x5b5b29){return this[_0x2627df('0x1a')](_0x533b1a);}},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x1a')]=function(_0x3748c8){const _0x632fa=_0x1cb4f7,_0x3ba1cb=_0x3748c8[_0x632fa('0x54')]('{');for(let _0x58639e=0x1;_0x58639e<_0x3ba1cb[_0x632fa('0x174')];_0x58639e+=0x1){const _0x16f4f4=_0x3ba1cb[_0x58639e][_0x632fa('0x54')]('}');_0x16f4f4[_0x632fa('0x174')]>0x1&&(_0x3748c8=_0x3748c8[_0x632fa('0xea')]('{'+_0x16f4f4[0x0]+'}',this[_0x632fa('0x190')][_0x632fa('0xd')](_0x16f4f4[0x0])[_0x632fa('0x118')]||_0x16f4f4[0x0]));}if(_0x3ba1cb[_0x632fa('0x174')]===0x1)return _0x3748c8['toString']();return this[_0x632fa('0x1a')](_0x3748c8);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xbb')]=function(_0xe9d375,_0x30c484){const _0xeba631=_0x1cb4f7,_0x1690a0=this[_0xeba631('0x190')][_0xeba631('0xd')](_0xe9d375);if(_0x1690a0[_0xeba631('0x10d')]===-0x1)return _0x1690a0;return logger[_0xeba631('0x96')](util[_0xeba631('0x184')](_0xeba631('0xba'),_0x30c484,_0x1690a0[_0xeba631('0x118')])),this[_0xeba631('0x190')][_0xeba631('0x9a')](_0x30c484,_0x1690a0[_0xeba631('0x118')]);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xa6')]=function(_0x18f09b){return _0x18f09b&&_0x18f09b!=='0'&&_0x18f09b!=='-1'&&_0x18f09b!=='';},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xf4')]=function(_0x5525be){const _0x2d6a6a=_0x1cb4f7;return this[_0x2d6a6a('0xaa')]['sync'](this,_0x5525be,'-'),_0x5525be[_0x2d6a6a('0x14a')]=_0x5525be[_0x2d6a6a('0xf4')],{'code':0xc8,'result':'-'};},AGIVertices[_0x1cb4f7('0x4c')]['mrcpsynth']=function(_0x11f6b0){const _0x456aab=_0x1cb4f7;logger['info'](util[_0x456aab('0x184')](_0x456aab('0x17c'),_0x11f6b0[_0x456aab('0xdb')]));if(!this['isConfigured'](_0x11f6b0[_0x456aab('0x1b6')]))return this[_0x456aab('0x190')][_0x456aab('0x180')](_0x456aab('0x1c1'));let _0x327320='\x22'+_0x11f6b0[_0x456aab('0x1b6')]+'\x22';this['isConfigured'](_0x11f6b0[_0x456aab('0x35')])&&(_0x327320+=','+_0x11f6b0[_0x456aab('0x35')]);const _0x16e131=this[_0x456aab('0x190')]['exec'](_0x456aab('0x2b'),_0x327320);if(_0x16e131[_0x456aab('0x10d')]===-0x1)return _0x16e131;return this[_0x456aab('0x190')][_0x456aab('0x180')](util['format']('Executed\x20command\x20MRCPSynth\x20%s',_0x327320));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x3f')]=function(_0x3c1d07){const _0x1448c4=_0x1cb4f7;logger[_0x1448c4('0x96')](util['format'](_0x1448c4('0x14d'),_0x3c1d07[_0x1448c4('0xdb')]));if(!this[_0x1448c4('0xa6')](_0x3c1d07[_0x1448c4('0xdc')]))return this[_0x1448c4('0x190')][_0x1448c4('0x180')](_0x1448c4('0x199'));let _0x364969=_0x3c1d07['grammar'];this[_0x1448c4('0xa6')](_0x3c1d07[_0x1448c4('0x35')])&&(_0x364969+=','+_0x3c1d07[_0x1448c4('0x35')]);const _0x10fb76=this[_0x1448c4('0x190')]['exec'](_0x1448c4('0xbe'),_0x364969);if(_0x10fb76[_0x1448c4('0x10d')]===-0x1)return _0x10fb76;const _0x52a553=this[_0x1448c4('0xbb')]('RECOG_CONFIDENCE()',_0x1448c4('0xe5'));if(_0x52a553[_0x1448c4('0x10d')]===-0x1)return _0x52a553;const _0x156f02=this[_0x1448c4('0xbb')](_0x1448c4('0x148'),'MRCP_RECOG_TRANSCRIPT');if(_0x156f02[_0x1448c4('0x10d')]===-0x1)return _0x156f02;const _0x1e4f93=this[_0x1448c4('0xbb')](_0x1448c4('0x143'),_0x1448c4('0x38'));if(_0x1e4f93[_0x1448c4('0x10d')]===-0x1)return _0x1e4f93;return this[_0x1448c4('0x190')][_0x1448c4('0x180')](util[_0x1448c4('0x184')](_0x1448c4('0x193'),_0x364969));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x187')]=function(_0x1d3ab7){const _0x169b72=_0x1cb4f7;return logger[_0x169b72('0x96')](util[_0x169b72('0x184')](_0x169b72('0x145'),_0x1d3ab7[_0x169b72('0xdb')])),this[_0x169b72('0x190')][_0x169b72('0x187')]([_0x1d3ab7[_0x169b72('0xcc')],_0x1d3ab7[_0x169b72('0xf')]]);},AGIVertices['prototype'][_0x1cb4f7('0x31')]=function(_0x27306b){const _0x57aa42=_0x1cb4f7;logger['info'](util[_0x57aa42('0x184')](_0x57aa42('0x1bd'),_0x27306b[_0x57aa42('0xdb')]));if(this[_0x57aa42('0xa6')](_0x27306b[_0x57aa42('0x1ac')])){logger[_0x57aa42('0x96')](util['format']('Wait\x20%s\x20seconds\x20before\x20answer',_0x27306b['timeout']));const _0x976d67=this[_0x57aa42('0x190')]['wait'](_0x27306b['timeout']);if(_0x976d67[_0x57aa42('0x10d')]===-0x1)return _0x976d67;}return this[_0x57aa42('0x190')][_0x57aa42('0x31')]();},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x68')]=function(_0x419aa5){const _0x5d66f4=_0x1cb4f7;logger[_0x5d66f4('0x96')](util[_0x5d66f4('0x184')](_0x5d66f4('0x15f'),_0x419aa5[_0x5d66f4('0xdb')]));if(!this[_0x5d66f4('0xa6')](_0x419aa5[_0x5d66f4('0x69')]))return this[_0x5d66f4('0x190')]['error'](_0x419aa5,_0x5d66f4('0x114'));return _0x419aa5[_0x5d66f4('0x15b')]=moment(),this[_0x5d66f4('0xa6')](_0x419aa5[_0x5d66f4('0x1b1')])&&(_0x419aa5[_0x5d66f4('0x15b')]=moment()[_0x5d66f4('0x137')](_0x419aa5['delay'],_0x5d66f4('0x10'))),!this[_0x5d66f4('0xa6')](_0x419aa5[_0x5d66f4('0xf2')])&&(_0x419aa5[_0x5d66f4('0xf2')]=0x2),this[_0x5d66f4('0xff')]['sync'](this,_0x419aa5),this[_0x5d66f4('0x190')]['noop'](util[_0x5d66f4('0x184')](_0x5d66f4('0x18'),_0x419aa5[_0x5d66f4('0x18a')],_0x419aa5[_0x5d66f4('0x69')],_0x419aa5[_0x5d66f4('0x15b')]));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x20')]=function(_0x37d959){const _0x4c5e0c=_0x1cb4f7;logger['info'](util[_0x4c5e0c('0x184')](_0x4c5e0c('0x83'),_0x37d959['label']));const _0x5dc376=this[_0x4c5e0c('0x190')][_0x4c5e0c('0x5')](_0x37d959[_0x4c5e0c('0x2d')],_0x37d959[_0x4c5e0c('0x35')]);if(_0x5dc376[_0x4c5e0c('0x10d')]===-0x1)return _0x5dc376;return this[_0x4c5e0c('0x190')][_0x4c5e0c('0x180')](util['format'](_0x4c5e0c('0x16'),_0x37d959[_0x4c5e0c('0x2d')],_0x37d959['options']));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xfb')]=function(_0x221659){const _0x11f2a2=_0x1cb4f7;logger[_0x11f2a2('0x96')](util['format'](_0x11f2a2('0x16f'),_0x221659['label']));if(!this[_0x11f2a2('0xa6')](_0x221659[_0x11f2a2('0x1b6')]))return this[_0x11f2a2('0x190')]['noop'](_0x11f2a2('0x1c1'));let _0xc2dcec='\x22'+_0x221659[_0x11f2a2('0x1b6')]+'\x22';this[_0x11f2a2('0xa6')](_0x221659[_0x11f2a2('0x35')])&&(_0xc2dcec+=','+_0x221659[_0x11f2a2('0x35')]);const _0x23e6cf=this[_0x11f2a2('0x190')][_0x11f2a2('0x5')](_0x11f2a2('0x2b'),_0xc2dcec);if(_0x23e6cf[_0x11f2a2('0x10d')]===-0x1)return _0x23e6cf;return this[_0x11f2a2('0x190')][_0x11f2a2('0x180')](util[_0x11f2a2('0x184')](_0x11f2a2('0x13d'),_0xc2dcec));},AGIVertices['prototype'][_0x1cb4f7('0xad')]=function(_0x5d387d){const _0x2b788d=_0x1cb4f7;logger[_0x2b788d('0x96')](util['format'](_0x2b788d('0x127'),_0x5d387d[_0x2b788d('0xdb')]));if(!this[_0x2b788d('0xa6')](_0x5d387d['text']))return this[_0x2b788d('0x190')][_0x2b788d('0x180')](_0x2b788d('0x1c1'));let _0x339652='\x22'+_0x5d387d[_0x2b788d('0x1b6')]+'\x22';this[_0x2b788d('0xa6')](_0x5d387d[_0x2b788d('0x35')])&&(_0x339652+=','+_0x5d387d['options']);const _0x5a56aa=this[_0x2b788d('0x190')]['exec'](_0x2b788d('0x2b'),_0x339652);if(_0x5a56aa[_0x2b788d('0x10d')]===-0x1)return _0x5a56aa;return this[_0x2b788d('0x190')]['noop'](util['format'](_0x2b788d('0x13d'),_0x339652));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xcd')]=function(_0x478467){const _0x5997f4=_0x1cb4f7;logger['info'](util['format'](_0x5997f4('0xa8'),_0x478467['label']));if(!this['isConfigured'](_0x478467[_0x5997f4('0xdc')]))return this[_0x5997f4('0x190')][_0x5997f4('0x180')](_0x5997f4('0x199'));let _0x1d3069=_0x478467[_0x5997f4('0xdc')];this[_0x5997f4('0xa6')](_0x478467[_0x5997f4('0x35')])&&(_0x1d3069+=','+_0x478467['options']);const _0x7dec94=this[_0x5997f4('0x190')][_0x5997f4('0x5')](_0x5997f4('0xbe'),_0x1d3069);if(_0x7dec94[_0x5997f4('0x10d')]===-0x1)return _0x7dec94;const _0x1ffe2c=this[_0x5997f4('0xbb')](_0x5997f4('0xbc'),_0x5997f4('0x196'));if(_0x1ffe2c[_0x5997f4('0x10d')]===-0x1)return _0x1ffe2c;const _0x52ede5=this[_0x5997f4('0xbb')](_0x5997f4('0x148'),_0x5997f4('0x9c'));if(_0x52ede5[_0x5997f4('0x10d')]===-0x1)return _0x52ede5;const _0x1a0fd0=this['getAndSetVariable'](_0x5997f4('0x143'),_0x5997f4('0x1a2'));if(_0x1a0fd0['result']===-0x1)return _0x1a0fd0;return this[_0x5997f4('0x190')][_0x5997f4('0x180')](util[_0x5997f4('0x184')]('Executed\x20command\x20MRCPRecog\x20%s',_0x1d3069));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xb4')]=function(_0x5a4155){const _0x4c083d=_0x1cb4f7;logger[_0x4c083d('0x96')](util['format'](_0x4c083d('0x78'),_0x5a4155[_0x4c083d('0xdb')]));if(!this[_0x4c083d('0xa6')](_0x5a4155[_0x4c083d('0xdc')]))return this[_0x4c083d('0x190')][_0x4c083d('0x180')](_0x4c083d('0x199'));let _0x280b11=_0x5a4155[_0x4c083d('0xdc')];this[_0x4c083d('0xa6')](_0x5a4155[_0x4c083d('0x35')])&&(_0x280b11+=','+_0x5a4155[_0x4c083d('0x35')]);const _0x20b28e=this[_0x4c083d('0x190')][_0x4c083d('0x5')](_0x4c083d('0xbe'),_0x280b11);if(_0x20b28e[_0x4c083d('0x10d')]===-0x1)return _0x20b28e;const _0x3abd41=this['getAndSetVariable']('RECOG_CONFIDENCE()',_0x4c083d('0xfc'));if(_0x3abd41['result']===-0x1)return _0x3abd41;const _0x80032d=this[_0x4c083d('0xbb')](_0x4c083d('0x148'),_0x4c083d('0xdd'));if(_0x80032d[_0x4c083d('0x10d')]===-0x1)return _0x80032d;const _0x178e42=this[_0x4c083d('0xbb')](_0x4c083d('0x143'),_0x4c083d('0xec'));if(_0x178e42['result']===-0x1)return _0x178e42;return this[_0x4c083d('0x190')][_0x4c083d('0x180')](util['format'](_0x4c083d('0x193'),_0x280b11));},AGIVertices[_0x1cb4f7('0x4c')]['database']=function(_0x598e84){const _0x120401=_0x1cb4f7;logger['info'](util['format'](_0x120401('0x138'),_0x598e84['label']));if(!this[_0x120401('0xa6')](_0x598e84['odbc_id']))return this[_0x120401('0x190')][_0x120401('0x82')](_0x598e84,_0x120401('0x27'));const _0x5b1537=this[_0x120401('0x12a')][_0x120401('0x159')](this,_0x598e84[_0x120401('0x119')]);if(!_0x5b1537)return this['channel'][_0x120401('0x82')](_0x598e84,_0x120401('0x1a1'));if(!this[_0x120401('0xa6')](_0x598e84['query']))return this[_0x120401('0x190')][_0x120401('0x82')](_0x598e84,_0x120401('0x10c'));const _0x11cb43=_0x598e84[_0x120401('0x24')][_0x120401('0x36')](/(\r\n|\n|\r)/gm,'\x20');this['channel'][_0x120401('0x180')](util[_0x120401('0x184')](_0x120401('0x1bf'),_0x11cb43));const _0x4fd690=this['getQueryOdbc']['sync'](this,_0x5b1537,_0x11cb43);this[_0x120401('0xaa')][_0x120401('0x159')](this,_0x598e84,_0x11cb43);if(!this[_0x120401('0xa6')](_0x598e84[_0x120401('0x18e')]))return this[_0x120401('0x190')][_0x120401('0x180')](_0x120401('0x62'));const _0x37650f=this['getVariable'][_0x120401('0x159')](this,_0x598e84[_0x120401('0x18e')]);if(!_0x37650f)return this[_0x120401('0x190')][_0x120401('0x82')](_0x598e84,'no\x20variable\x20found');const _0x17b40c=this;return _0x4fd690[_0x120401('0x16b')](function(_0xd74e1d,_0x3fecf2){const _0x30f698=_0x120401;Object[_0x30f698('0x135')](_0xd74e1d)[_0x30f698('0x16b')](function(_0x470b71){const _0x34aab5=_0x30f698;_0x17b40c[_0x34aab5('0x190')]['setVariable'](util[_0x34aab5('0x184')]('%s[%s][%s]',_0x37650f,_0x3fecf2,_0x470b71),_0xd74e1d[_0x470b71]);});}),this[_0x120401('0x190')]['setVariable'](util[_0x120401('0x184')](_0x120401('0xcb'),_0x37650f),_0x4fd690[_0x120401('0x174')]),this[_0x120401('0x190')][_0x120401('0x180')](util[_0x120401('0x184')](_0x120401('0x13f'),_0x37650f));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x8')]=function(_0x37af73){const _0xc5b09c=_0x1cb4f7;logger[_0xc5b09c('0x107')](util[_0xc5b09c('0x184')]('Enter\x20in\x20DIAL\x20(%s)\x20block',_0x37af73[_0xc5b09c('0xdb')]));if(!this[_0xc5b09c('0xa6')](_0x37af73[_0xc5b09c('0xac')]))return this[_0xc5b09c('0x190')][_0xc5b09c('0x82')](_0x37af73,'no\x20user\x20selected');const _0x3a2d03=this['getUser'][_0xc5b09c('0x159')](this,_0x37af73[_0xc5b09c('0xac')]);if(!_0x3a2d03)return this[_0xc5b09c('0x190')]['error'](_0x37af73,'no\x20user\x20found');const _0x249951=this[_0xc5b09c('0x190')][_0xc5b09c('0x5')]('DIAL',[util[_0xc5b09c('0x184')](_0xc5b09c('0x97'),_0x3a2d03),_0x37af73['timeout'],_0x37af73[_0xc5b09c('0x1a4')],_0x37af73[_0xc5b09c('0x9b')]]);if(_0x249951[_0xc5b09c('0x10d')]===-0x1)return _0x249951;return this['channel'][_0xc5b09c('0x180')](util[_0xc5b09c('0x184')](_0xc5b09c('0xd5'),'DIAL'));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x1e')]=function(_0xe0451c){const _0x3727b1=_0x1cb4f7;logger[_0x3727b1('0x96')](util[_0x3727b1('0x184')](_0x3727b1('0x5c'),_0xe0451c[_0x3727b1('0xdb')]));if(!this[_0x3727b1('0xa6')](_0xe0451c[_0x3727b1('0x16d')]))return this[_0x3727b1('0x190')][_0x3727b1('0x180')](_0x3727b1('0x144'));if(!this['isConfigured'](_0xe0451c[_0x3727b1('0x1b6')]))return this[_0x3727b1('0x190')]['noop'](_0x3727b1('0x1c1'));this['channel'][_0x3727b1('0x1ae')]=!![],this[_0x3727b1('0xaa')](_0xe0451c),this[_0x3727b1('0x70')](_0xe0451c[_0x3727b1('0x1b6')],'in'),this['channel'][_0x3727b1('0x180')](util[_0x3727b1('0x184')](_0x3727b1('0x167'),_0xe0451c['text']));const _0x4d4839=this[_0x3727b1('0x45')]['sync'](this,_0xe0451c);if(_0x4d4839){for(const _0x65a0f3 in _0x4d4839){typeof _0x4d4839[_0x65a0f3]!==_0x3727b1('0x4a')&&this[_0x3727b1('0x190')]['setVariable'](util[_0x3727b1('0x184')](_0x3727b1('0xbd'),_0x65a0f3['toUpperCase']()),_0x4d4839[_0x65a0f3]);}return this[_0x3727b1('0x70')](_0x4d4839[_0x3727b1('0xc9')],_0x3727b1('0x15c')),this[_0x3727b1('0x190')][_0x3727b1('0x180')](util['format'](_0x3727b1('0x49'),_0x4d4839[_0x3727b1('0xc9')]));}return this[_0x3727b1('0x190')][_0x3727b1('0x82')](_0xe0451c,_0x3727b1('0x92'));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x55')]=function(_0xdee04f){const _0x3940b5=_0x1cb4f7;logger[_0x3940b5('0x96')](util[_0x3940b5('0x184')](_0x3940b5('0x131'),_0xdee04f[_0x3940b5('0xdb')]));if(!this[_0x3940b5('0xa6')](_0xdee04f[_0x3940b5('0x195')]))return this['channel'][_0x3940b5('0x180')](_0x3940b5('0xb'));if(!this['isConfigured'](_0xdee04f['username']))return this['channel'][_0x3940b5('0x180')](_0x3940b5('0x120'));if(!this[_0x3940b5('0xa6')](_0xdee04f[_0x3940b5('0x14')]))return this[_0x3940b5('0x190')]['noop'](_0x3940b5('0x7c'));if(!this['isConfigured'](_0xdee04f['ndassistant_url']))return this[_0x3940b5('0x190')]['noop'](_0x3940b5('0x1c1'));this[_0x3940b5('0x190')][_0x3940b5('0x1ae')]=!![],this[_0x3940b5('0xaa')](_0xdee04f),this[_0x3940b5('0x70')](_0xdee04f['text'],'in'),this[_0x3940b5('0x190')][_0x3940b5('0x180')](util[_0x3940b5('0x184')](_0x3940b5('0x1b5'),_0xdee04f[_0x3940b5('0x1b6')]));const _0x1ac56b=this[_0x3940b5('0x1aa')][_0x3940b5('0x159')](this,_0xdee04f);if(_0x1ac56b){for(const _0x35e2c7 in _0x1ac56b){typeof _0x1ac56b[_0x35e2c7]!==_0x3940b5('0x4a')&&this[_0x3940b5('0x190')][_0x3940b5('0x9a')](util[_0x3940b5('0x184')]('SESTEK_NDA_%s',_0x35e2c7[_0x3940b5('0x93')]()),_0x1ac56b[_0x35e2c7]);}this['createSquareMessage'](_0x1ac56b['speech'],_0x3940b5('0x15c'));if(_0x1ac56b[_0x3940b5('0x99')]){this[_0x3940b5('0x190')][_0x3940b5('0x180')](util[_0x3940b5('0x184')](_0x3940b5('0x1a9'),_0x1ac56b[_0x3940b5('0x99')]));const _0xc1417f=this[_0x3940b5('0x190')][_0x3940b5('0x17')](_0x1ac56b[_0x3940b5('0x99')]);try{fs[_0x3940b5('0x64')](_0x1ac56b[_0x3940b5('0x99')]+_0x3940b5('0x43'));}catch(_0x21c3cb){logger[_0x3940b5('0x82')](_0x21c3cb);}return _0xc1417f;}else return this[_0x3940b5('0x190')][_0x3940b5('0x180')](util[_0x3940b5('0x184')](_0x3940b5('0xf1'),_0x1ac56b[_0x3940b5('0xc9')]));}return this[_0x3940b5('0x190')][_0x3940b5('0x82')](_0xdee04f,_0x3940b5('0x7e'));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x8b')]=function(_0x7a714){const _0x1fd257=_0x1cb4f7;return logger[_0x1fd257('0x96')](util['format']('Enter\x20in\x20END\x20(%s)\x20block',_0x7a714['label'])),this[_0x1fd257('0x190')][_0x1fd257('0x180')]('end');},AGIVertices[_0x1cb4f7('0x4c')]['ext_dial']=function(_0x1bac79){const _0x3c7384=_0x1cb4f7;logger[_0x3c7384('0x96')](util[_0x3c7384('0x184')](_0x3c7384('0x1b7'),_0x1bac79['label']));let _0x1dd778='';if(_0x1bac79[_0x3c7384('0xd2')]){if(!this[_0x3c7384('0xa6')](_0x1bac79[_0x3c7384('0xd2')]))return this[_0x3c7384('0x190')]['error'](_0x1bac79,'no\x20trunk\x20selected');else{const _0x2c3f64=parseInt(_0x1bac79[_0x3c7384('0xd2')],0xa);if(isNaN(_0x2c3f64))_0x1dd778=_0x1bac79['trunk_id'];else{_0x1dd778=this[_0x3c7384('0xe9')][_0x3c7384('0x159')](this,_0x1bac79['trunk_id']);if(!_0x1dd778)return this[_0x3c7384('0x190')][_0x3c7384('0x82')](_0x1bac79,_0x3c7384('0x116'));}}}else{if(_0x1bac79[_0x3c7384('0x3')])_0x1dd778=_0x1bac79[_0x3c7384('0x3')];else return this['channel']['error'](_0x1bac79,_0x3c7384('0x1a5'));}const _0x2793e1=this[_0x3c7384('0x190')]['exec'](_0x3c7384('0x108'),[util[_0x3c7384('0x184')](_0x3c7384('0xd1'),_0x1dd778,_0x1bac79[_0x3c7384('0x18a')]),_0x1bac79['timeout'],_0x1bac79[_0x3c7384('0x1a4')],_0x1bac79[_0x3c7384('0x9b')]]);if(_0x2793e1[_0x3c7384('0x10d')]===-0x1)return _0x2793e1;return this['channel'][_0x3c7384('0x180')](util[_0x3c7384('0x184')](_0x3c7384('0xd5'),_0x3c7384('0x108')));},AGIVertices['prototype'][_0x1cb4f7('0x1c2')]=function(_0x32d42a){const _0xddee07=_0x1cb4f7;return logger['info'](util[_0xddee07('0x184')](_0xddee07('0x154'),_0x32d42a[_0xddee07('0xdb')])),this[_0xddee07('0x190')][_0xddee07('0x180')](_0xddee07('0x1c2'));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x34')]=function(_0x20e547){const _0x25cc05=_0x1cb4f7;logger[_0x25cc05('0x96')](util[_0x25cc05('0x184')](_0x25cc05('0x109'),_0x20e547[_0x25cc05('0xdb')]));if(_0x20e547[_0x25cc05('0x14a')]===0x0)return this[_0x25cc05('0xf4')](_0x20e547);_0x20e547['retry']-=0x1;if(!this[_0x25cc05('0xa6')](_0x20e547['file_id']))return this[_0x25cc05('0x190')]['error'](_0x20e547,_0x25cc05('0xfa'));const _0x1fc979=this[_0x25cc05('0x19d')]['sync'](this,_0x20e547['file_id']);if(!_0x1fc979)return this['channel'][_0x25cc05('0x82')](_0x20e547,_0x25cc05('0x177'));if(!this[_0x25cc05('0xa6')](_0x20e547[_0x25cc05('0x18e')]))return this[_0x25cc05('0x190')][_0x25cc05('0x82')](_0x25cc05('0x62'));const _0x4a6c4e=this[_0x25cc05('0x190')]['getData'](_0x1fc979,_0x20e547[_0x25cc05('0x33')],_0x20e547[_0x25cc05('0x1b9')]),_0x5492dc=_0x4a6c4e[_0x25cc05('0x10d')]?_0x4a6c4e[_0x25cc05('0x10d')]['toString']():'';logger[_0x25cc05('0x96')](_0x25cc05('0x80'),JSON[_0x25cc05('0x149')](_0x4a6c4e));if(_0x4a6c4e[_0x25cc05('0x10d')]===-0x1)return this['createSquareDetailsReport'][_0x25cc05('0x159')](this,_0x20e547,_0x5492dc),_0x4a6c4e;else _0x4a6c4e[_0x25cc05('0x118')]===_0x25cc05('0x1ac')?_0x4a6c4e[_0x25cc05('0x10d')]=_0x5492dc[_0x25cc05('0x174')]>=parseInt(_0x20e547[_0x25cc05('0x65')])?'x':'i':_0x4a6c4e['result']=_0x5492dc['length']>=parseInt(_0x20e547[_0x25cc05('0x65')])&&_0x5492dc[_0x25cc05('0x174')]<=parseInt(_0x20e547['maxdigit'])?'x':'i';const _0x3d53c0=this[_0x25cc05('0xd')][_0x25cc05('0x159')](this,_0x20e547[_0x25cc05('0x18e')]);if(!_0x3d53c0)return this[_0x25cc05('0x190')][_0x25cc05('0x82')](_0x20e547,_0x25cc05('0xc0'));this[_0x25cc05('0x190')][_0x25cc05('0x9a')](_0x3d53c0,_0x5492dc);if(this[_0x25cc05('0xa6')](_0x20e547[_0x25cc05('0x28')])){const _0x187e25=parseInt(_0x20e547[_0x25cc05('0x28')],0xa),_0x2d466c=rs[_0x25cc05('0x75')]({'charset':'*','length':_0x187e25}),_0x4de608=_0x5492dc[_0x25cc05('0x174')];_0x4de608>0x0?_0x4de608>_0x187e25?this[_0x25cc05('0xaa')][_0x25cc05('0x159')](this,_0x20e547,_0x20e547[_0x25cc05('0x8e')]===_0x25cc05('0x81')?_0x2d466c+_0x5492dc[_0x25cc05('0xb1')](_0x187e25):_0x5492dc['substr'](0x0,_0x4de608-_0x187e25)+_0x2d466c):this['createSquareDetailsReport']['sync'](this,_0x20e547,rs[_0x25cc05('0x75')]({'charset':'*','length':_0x4de608})):this[_0x25cc05('0xaa')][_0x25cc05('0x159')](this,_0x20e547,'');}else this[_0x25cc05('0xaa')][_0x25cc05('0x159')](this,_0x20e547,_0x5492dc);return _0x4a6c4e;},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x124')]=function(_0x419beb){const _0x16ae1a=_0x1cb4f7;return logger['info'](util['format'](_0x16ae1a('0x163'),_0x419beb['label'])),this[_0x16ae1a('0x34')](_0x419beb);},AGIVertices['prototype'][_0x1cb4f7('0x9')]=function(_0x107451){const _0x3f8db9=_0x1cb4f7;return logger['info'](util[_0x3f8db9('0x184')]('Enter\x20in\x20GOAL\x20(%s)\x20block',_0x107451['label'])),this[_0x3f8db9('0xaa')][_0x3f8db9('0x159')](this,_0x107451,_0x107451[_0x3f8db9('0xbf')]),this['channel']['noop'](util[_0x3f8db9('0x184')]('GOAL\x20%s',_0x107451['goalname']));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x115')]=function(_0x502940){const _0x261f62=_0x1cb4f7;logger['info'](util[_0x261f62('0x184')](_0x261f62('0x5f'),_0x502940[_0x261f62('0xdb')]));if(!this[_0x261f62('0xa6')](_0x502940['aws_access_key_id'])||!this[_0x261f62('0xa6')](_0x502940[_0x261f62('0x5e')]))return this[_0x261f62('0x190')][_0x261f62('0x180')](_0x261f62('0x94'));if(!this['isConfigured'](_0x502940[_0x261f62('0x1b6')]))return this['channel'][_0x261f62('0x180')](_0x261f62('0x1c1'));this[_0x261f62('0x190')][_0x261f62('0x180')](util[_0x261f62('0x184')]('Trying\x20aws\x20Polly\x20%s',_0x502940['text']));const _0x503043=this[_0x261f62('0x12e')][_0x261f62('0x159')](this,_0x502940);if(_0x503043){this['channel'][_0x261f62('0x180')](util[_0x261f62('0x184')](_0x261f62('0x194'),_0x503043));const _0x46702a=this[_0x261f62('0x190')][_0x261f62('0x17')](_0x503043);try{fs[_0x261f62('0x64')](_0x503043+'.wav');}catch(_0xbde19f){logger[_0x261f62('0x82')](_0xbde19f);}return _0x46702a;}return this[_0x261f62('0x190')][_0x261f62('0x82')](_0x502940,_0x261f62('0xc6'));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x11')]=function(_0x6da3a8){const _0x4d00fd=_0x1cb4f7;logger[_0x4d00fd('0x96')](util[_0x4d00fd('0x184')](_0x4d00fd('0x1a0'),_0x6da3a8[_0x4d00fd('0xdb')]));if(!this[_0x4d00fd('0xa6')](_0x6da3a8['aws_access_key_id'])||!this[_0x4d00fd('0xa6')](_0x6da3a8[_0x4d00fd('0x5e')]))return this[_0x4d00fd('0x190')][_0x4d00fd('0x180')](_0x4d00fd('0x94'));if(!this[_0x4d00fd('0xa6')](_0x6da3a8[_0x4d00fd('0x3c')]))return this[_0x4d00fd('0x190')][_0x4d00fd('0x180')]('no\x20bot\x20name\x20configured');if(!this[_0x4d00fd('0xa6')](_0x6da3a8[_0x4d00fd('0x1b6')]))return this[_0x4d00fd('0x190')][_0x4d00fd('0x180')](_0x4d00fd('0x1c1'));this[_0x4d00fd('0x190')][_0x4d00fd('0x1ae')]=!![],this[_0x4d00fd('0xaa')](_0x6da3a8),this[_0x4d00fd('0x70')](_0x6da3a8[_0x4d00fd('0x1b6')],'in'),this[_0x4d00fd('0x190')]['noop'](util[_0x4d00fd('0x184')](_0x4d00fd('0x146'),_0x6da3a8[_0x4d00fd('0x1b6')]));const _0x5962b1=this[_0x4d00fd('0x8a')][_0x4d00fd('0x159')](this,_0x6da3a8);if(_0x5962b1){for(const _0x38fad5 in _0x5962b1){typeof _0x5962b1[_0x38fad5]!=='undefined'&&_[_0x4d00fd('0x91')](_0x5962b1[_0x38fad5])&&this[_0x4d00fd('0x190')][_0x4d00fd('0x9a')](util[_0x4d00fd('0x184')](_0x4d00fd('0xe'),_0x38fad5[_0x4d00fd('0x93')]()),_0x5962b1[_0x38fad5]);}return _[_0x4d00fd('0x160')](_0x5962b1[_0x4d00fd('0x12')])?this[_0x4d00fd('0x190')][_0x4d00fd('0x180')](_0x4d00fd('0x19f')):(this['createSquareMessage'](_0x5962b1[_0x4d00fd('0x12')],_0x4d00fd('0x15c')),this[_0x4d00fd('0x190')]['noop'](util[_0x4d00fd('0x184')]('Amazon\x20Lex\x20Result\x20%s',_0x5962b1[_0x4d00fd('0x12')])));}return this[_0x4d00fd('0x190')][_0x4d00fd('0x82')](_0x6da3a8,'Amazon\x20Lex\x20is\x20unreachable');},AGIVertices['prototype']['googleasr']=function(_0x386a62){const _0xc35a8c=_0x1cb4f7;logger[_0xc35a8c('0x96')](util['format'](_0xc35a8c('0x1b3'),_0x386a62[_0xc35a8c('0xdb')],_0x386a62[_0xc35a8c('0x1ac')]));if(!this[_0xc35a8c('0xa6')](_0x386a62['key']))return this[_0xc35a8c('0x190')][_0xc35a8c('0x180')]('no\x20key\x20configured');const _0x3b1b96=_0xc35a8c('0xd4'),_0x5787d6=util[_0xc35a8c('0x184')](_0xc35a8c('0x79'),FILES_PATH,rs[_0xc35a8c('0x75')](0x4)),_0x2e5453=util[_0xc35a8c('0x184')](_0xc35a8c('0x171'),_0x5787d6,_0x3b1b96);let _0x50e7c9=!![];_0x386a62[_0xc35a8c('0x4f')]===_0xc35a8c('0x130')&&(_0x50e7c9=![]);const _0x5c94c9=this[_0xc35a8c('0x190')][_0xc35a8c('0x164')](_0x5787d6,_0x3b1b96,_0x386a62['intKey'],_0x386a62[_0xc35a8c('0x1ac')],undefined,_0x50e7c9);if(_0x5c94c9[_0xc35a8c('0x10d')]!==-0x1){this['channel'][_0xc35a8c('0x180')](util[_0xc35a8c('0x184')](_0xc35a8c('0xa4'),_0x2e5453));const _0x3203d4=this[_0xc35a8c('0x161')][_0xc35a8c('0x159')](this,_0x386a62,_0x2e5453);if(_0x3203d4){for(const _0x4125cc in _0x3203d4){typeof _0x3203d4[_0x4125cc]!==_0xc35a8c('0x4a')&&this[_0xc35a8c('0x190')][_0xc35a8c('0x9a')](util[_0xc35a8c('0x184')](_0xc35a8c('0x15e'),_0x4125cc['toUpperCase']()),_0x3203d4[_0x4125cc]);}return this['channel']['noop'](util[_0xc35a8c('0x184')](_0xc35a8c('0xf7'),JSON[_0xc35a8c('0x149')](_0x3203d4)));}}return _0x5c94c9;},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x1c')]=function(_0x34dc97){const _0x595058=_0x1cb4f7;logger[_0x595058('0x96')](util[_0x595058('0x184')](_0x595058('0x11e'),_0x34dc97[_0x595058('0xdb')]));if(!this[_0x595058('0xa6')](_0x34dc97[_0x595058('0x15')]))return this[_0x595058('0x190')][_0x595058('0x180')]('no\x20appid\x20configured');if(!this[_0x595058('0xa6')](_0x34dc97[_0x595058('0x2e')]))return this['channel'][_0x595058('0x180')](_0x595058('0x71'));const _0x398342=_0x595058('0xd4'),_0x4c4d4c=util[_0x595058('0x184')](_0x595058('0x79'),FILES_PATH,rs[_0x595058('0x75')](0x4)),_0x5df3c9=util[_0x595058('0x184')](_0x595058('0x171'),_0x4c4d4c,_0x398342);let _0x4ecede=!![];_0x34dc97[_0x595058('0x4f')]===_0x595058('0x130')&&(_0x4ecede=![]);const _0x190f24=this['channel']['recordFile'](_0x4c4d4c,_0x398342,_0x34dc97['intKey'],_0x34dc97[_0x595058('0x1ac')],undefined,_0x4ecede);if(_0x190f24[_0x595058('0x10d')]!==-0x1){this[_0x595058('0x190')][_0x595058('0x180')](util[_0x595058('0x184')](_0x595058('0x12d'),_0x5df3c9));const _0x1a02d8=this['tildeASR'][_0x595058('0x159')](this,_0x34dc97,_0x5df3c9);if(_0x1a02d8){for(const _0x118a79 in _0x1a02d8){typeof _0x1a02d8[_0x118a79]!==_0x595058('0x4a')&&this[_0x595058('0x190')][_0x595058('0x9a')](util['format'](_0x595058('0xd9'),_0x118a79[_0x595058('0x93')]()),_0x1a02d8[_0x118a79]);}return this[_0x595058('0x190')]['noop'](util[_0x595058('0x184')](_0x595058('0x1bc'),JSON[_0x595058('0x149')](_0x1a02d8)));}}return _0x190f24;},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x1a7')]=function(_0x2a82b3){const _0xa9919a=_0x1cb4f7;return logger[_0xa9919a('0x96')](util[_0xa9919a('0x184')]('Enter\x20in\x20GOTO\x20(%s)\x20block',_0x2a82b3['label'])),this[_0xa9919a('0x190')][_0xa9919a('0x15a')](_0x2a82b3[_0xa9919a('0xab')],_0x2a82b3[_0xa9919a('0xc4')],_0x2a82b3[_0xa9919a('0xdf')]);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x1a3')]=function(_0x48a317){const _0x2d44ee=_0x1cb4f7;logger[_0x2d44ee('0x96')](util[_0x2d44ee('0x184')]('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x48a317['label']));if(!this[_0x2d44ee('0xa6')](_0x48a317[_0x2d44ee('0xf9')]))return this[_0x2d44ee('0x190')][_0x2d44ee('0x82')](_0x48a317,_0x2d44ee('0xfd'));try{const _0x559a5e=eval(_0x48a317[_0x2d44ee('0xf9')])?_0x2d44ee('0x3b'):_0x2d44ee('0x11c');return this[_0x2d44ee('0x190')][_0x2d44ee('0x180')](util[_0x2d44ee('0x184')]('EVAL\x20CONDITION\x20%s\x20%s',_0x48a317['condition'],_0x559a5e)),{'code':0xc8,'result':_0x559a5e};}catch(_0x565920){return{'code':0xc8,'result':'false'};}},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x61')]=function(_0x26d9f8){const _0x4a281d=_0x1cb4f7;logger[_0x4a281d('0x96')](util[_0x4a281d('0x184')](_0x4a281d('0xb2'),_0x26d9f8[_0x4a281d('0xdb')]));if(!this[_0x4a281d('0xa6')](_0x26d9f8['interval_id']))return this[_0x4a281d('0x190')][_0x4a281d('0x82')](_0x26d9f8,'no\x20interval\x20configured');const _0x37abbf=this[_0x4a281d('0xc8')][_0x4a281d('0x159')](this,_0x26d9f8['interval_id']);if(!_0x37abbf)return this[_0x4a281d('0x190')]['error'](_0x26d9f8,_0x4a281d('0x11f'));for(let _0x3fb17e=0x0;_0x3fb17e<_0x37abbf[_0x4a281d('0x174')];_0x3fb17e+=0x1){const _0x190ba4=this[_0x4a281d('0x190')][_0x4a281d('0xd')](util['format']('IFTIME(%s?true:false)',_0x37abbf[_0x3fb17e]));if(_0x190ba4[_0x4a281d('0x10d')]===-0x1)return _0x190ba4;logger[_0x4a281d('0x96')](util[_0x4a281d('0x184')](_0x4a281d('0x19a'),_0x37abbf[_0x3fb17e],_0x190ba4[_0x4a281d('0x118')]));if(_0x190ba4['extra']==='true')return logger[_0x4a281d('0x96')](util['format'](_0x4a281d('0x19a'),_0x37abbf[_0x3fb17e],_0x4a281d('0x3b'))),this[_0x4a281d('0x190')][_0x4a281d('0x180')](util[_0x4a281d('0x184')](_0x4a281d('0x19a'),_0x37abbf[_0x3fb17e],_0x4a281d('0x3b'))),{'code':0xc8,'result':'true'};else logger['info'](util[_0x4a281d('0x184')]('IFTIME\x20%s\x20%s',_0x37abbf[_0x3fb17e],_0x4a281d('0x11c'))),this['channel'][_0x4a281d('0x180')](util['format']('IFTIME\x20%s\x20%s',_0x37abbf[_0x3fb17e],_0x4a281d('0x11c')));}return{'code':0xc8,'result':_0x4a281d('0x11c')};},AGIVertices[_0x1cb4f7('0x4c')]['hangup']=function(_0x176643){const _0x4e6901=_0x1cb4f7;return logger['info'](util[_0x4e6901('0x184')]('Enter\x20in\x20HANGUP\x20(%s)\x20block',_0x176643[_0x4e6901('0xdb')])),this[_0x4e6901('0x190')][_0x4e6901('0xe2')]();},AGIVertices['prototype'][_0x1cb4f7('0x175')]=function(_0x5435f8){const _0x36775c=_0x1cb4f7;logger['info'](util[_0x36775c('0x184')](_0x36775c('0xc3'),_0x5435f8[_0x36775c('0xdb')]));if(!this[_0x36775c('0xa6')](_0x5435f8[_0x36775c('0x16d')]))return this[_0x36775c('0x190')][_0x36775c('0x180')]('no\x20key\x20configured');const _0x34166f=_0x36775c('0xd4'),_0x44f266=util[_0x36775c('0x184')](_0x36775c('0x79'),FILES_PATH,rs[_0x36775c('0x75')](0x4)),_0x5415af=util[_0x36775c('0x184')](_0x36775c('0x171'),_0x44f266,_0x34166f);let _0x5df048=!![];_0x5435f8[_0x36775c('0x4f')]===_0x36775c('0x130')&&(_0x5df048=![]);const _0x49ab17=this['channel'][_0x36775c('0x164')](_0x44f266,_0x34166f,_0x5435f8['intKey'],_0x5435f8[_0x36775c('0x1ac')],undefined,_0x5df048);if(_0x49ab17[_0x36775c('0x10d')]!==-0x1){this[_0x36775c('0x190')][_0x36775c('0x180')](util[_0x36775c('0x184')]('ispeech\x20%s\x20file\x20created',_0x5415af));const _0x5abf7d=this['ispeechASR'][_0x36775c('0x159')](this,_0x5435f8,_0x5415af);if(_0x5abf7d){for(const _0x30da24 in _0x5abf7d){typeof _0x5abf7d[_0x30da24]!=='undefined'&&this['channel']['setVariable'](util[_0x36775c('0x184')]('ISPEECH_ASR_%s',_0x30da24[_0x36775c('0x93')]()),_0x5abf7d[_0x30da24]);}return this[_0x36775c('0x190')]['noop'](util[_0x36775c('0x184')](_0x36775c('0x58'),JSON['stringify'](_0x5abf7d)));}}return _0x49ab17;},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x188')]=function(_0x450a28){const _0x2a61db=_0x1cb4f7;logger['info'](util[_0x2a61db('0x184')](_0x2a61db('0x90'),_0x450a28[_0x2a61db('0xdb')]));if(!this[_0x2a61db('0xa6')](_0x450a28[_0x2a61db('0x16d')]))return this['channel'][_0x2a61db('0x180')](_0x2a61db('0x144'));if(!this['isConfigured'](_0x450a28[_0x2a61db('0x1b6')]))return this['channel'][_0x2a61db('0x180')]('no\x20text\x20configured');this['channel'][_0x2a61db('0x180')](util[_0x2a61db('0x184')](_0x2a61db('0x3d'),_0x450a28['text']));const _0x3ebdd9=this[_0x2a61db('0x6e')][_0x2a61db('0x159')](this,_0x450a28);if(_0x3ebdd9){this[_0x2a61db('0x190')][_0x2a61db('0x180')](util[_0x2a61db('0x184')](_0x2a61db('0x151'),_0x3ebdd9));const _0x1d08fe=this[_0x2a61db('0x190')][_0x2a61db('0x17')](_0x3ebdd9,_0x450a28[_0x2a61db('0x1f')]);try{fs[_0x2a61db('0x64')](_0x3ebdd9+_0x2a61db('0x43'));}catch(_0x2b092d){logger[_0x2a61db('0x82')](_0x2b092d);}return _0x1d08fe;}return this[_0x2a61db('0x190')][_0x2a61db('0x82')](_0x450a28,'ispeech\x20TTS\x20is\x20unreachable');},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x25')]=function(_0x3916c0){const _0xa7e6e0=_0x1cb4f7;logger[_0xa7e6e0('0x96')](util[_0xa7e6e0('0x184')](_0xa7e6e0('0x1ab'),_0x3916c0[_0xa7e6e0('0xdb')]));if(!this[_0xa7e6e0('0xa6')](_0x3916c0[_0xa7e6e0('0x19e')]))return this[_0xa7e6e0('0x190')]['error'](_0x3916c0,_0xa7e6e0('0x77'));logger[_0xa7e6e0('0x96')](util[_0xa7e6e0('0x184')](_0xa7e6e0('0x103'),this['channel'][_0xa7e6e0('0xa0')],_0x3916c0['findBy']));const _0x46ff19=this[_0xa7e6e0('0xca')][_0xa7e6e0('0x159')](this,_0x3916c0[_0xa7e6e0('0x19e')]);return _0x46ff19?(logger[_0xa7e6e0('0x96')](util[_0xa7e6e0('0x184')](_0xa7e6e0('0x13b'),this[_0xa7e6e0('0x190')]['callerid'],_0x3916c0['findBy'])),this[_0xa7e6e0('0x190')][_0xa7e6e0('0x180')](util[_0xa7e6e0('0x184')](_0xa7e6e0('0x13b'),this['channel']['callerid'],_0x3916c0['findBy'])),{'code':0xc8,'result':_0xa7e6e0('0xa7')}):(logger['info'](util['format'](_0xa7e6e0('0x192'),this['channel'][_0xa7e6e0('0xa0')],_0x3916c0['findBy'])),this[_0xa7e6e0('0x190')][_0xa7e6e0('0x180')](util[_0xa7e6e0('0x184')](_0xa7e6e0('0x192'),this[_0xa7e6e0('0x190')][_0xa7e6e0('0xa0')],_0x3916c0[_0xa7e6e0('0x19e')])),{'code':0xc8,'result':_0xa7e6e0('0x1af')});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x32')]=function(_0x505db4){const _0x5873dc=_0x1cb4f7;logger[_0x5873dc('0x96')](util[_0x5873dc('0x184')](_0x5873dc('0x2'),_0x505db4['label']));if(!this[_0x5873dc('0xa6')](_0x505db4[_0x5873dc('0x19e')]))return this[_0x5873dc('0x190')][_0x5873dc('0x82')](_0x505db4,_0x5873dc('0x77'));logger[_0x5873dc('0x96')](util[_0x5873dc('0x184')]('FIND\x20AGENT\x20%s\x20BY\x20%s',this[_0x5873dc('0x190')][_0x5873dc('0xa0')],_0x505db4[_0x5873dc('0x19e')]));const _0x349ae5=this['agentLogout'][_0x5873dc('0x159')](this,_0x505db4[_0x5873dc('0x19e')]);return _0x349ae5?(logger[_0x5873dc('0x96')](util[_0x5873dc('0x184')](_0x5873dc('0x13b'),this['channel'][_0x5873dc('0xa0')],_0x505db4[_0x5873dc('0x19e')])),this[_0x5873dc('0x190')][_0x5873dc('0x180')](util[_0x5873dc('0x184')](_0x5873dc('0x13b'),this['channel'][_0x5873dc('0xa0')],_0x505db4[_0x5873dc('0x19e')])),{'code':0xc8,'result':_0x5873dc('0xa7')}):(logger[_0x5873dc('0x96')](util[_0x5873dc('0x184')](_0x5873dc('0x192'),this[_0x5873dc('0x190')][_0x5873dc('0xa0')],_0x505db4['findBy'])),this[_0x5873dc('0x190')][_0x5873dc('0x180')](util[_0x5873dc('0x184')](_0x5873dc('0x192'),this['channel'][_0x5873dc('0xa0')],_0x505db4[_0x5873dc('0x19e')])),{'code':0xc8,'result':_0x5873dc('0x1af')});},AGIVertices['prototype']['math']=function(_0x14b970){const _0x451d82=_0x1cb4f7;logger[_0x451d82('0x96')](util[_0x451d82('0x184')](_0x451d82('0xf8'),_0x14b970[_0x451d82('0xdb')]));if(!this[_0x451d82('0xa6')](_0x14b970[_0x451d82('0xaf')]))return this[_0x451d82('0x190')][_0x451d82('0x82')](_0x14b970,_0x451d82('0x2c'));this[_0x451d82('0x190')][_0x451d82('0x180')](util[_0x451d82('0x184')](_0x451d82('0x39'),_0x14b970[_0x451d82('0xaf')]));const _0x528fc3=eval(_0x14b970[_0x451d82('0xaf')]);if(!this[_0x451d82('0xa6')](_0x14b970[_0x451d82('0x18e')]))return this[_0x451d82('0x190')][_0x451d82('0x180')]('no\x20variable\x20selected\x20for\x20the\x20result');const _0x5a5801=this[_0x451d82('0xd')][_0x451d82('0x159')](this,_0x14b970['variable_id']);if(!_0x5a5801)return this['channel'][_0x451d82('0x82')](_0x14b970,'no\x20variable\x20found');if(_[_0x451d82('0x13')](_0x528fc3)){const _0x11276c=this;return _0x528fc3[_0x451d82('0x16b')](function(_0x3a1d52,_0x121347){const _0x492baf=_0x451d82;_0x11276c[_0x492baf('0x190')]['setVariable'](util[_0x492baf('0x184')](_0x492baf('0x7b'),_0x5a5801,_0x121347),_0x3a1d52);}),this[_0x451d82('0x190')][_0x451d82('0x180')](util[_0x451d82('0x184')](_0x451d82('0x13e'),_0x5a5801));}else return this[_0x451d82('0x190')]['setVariable'](_0x5a5801,_0x528fc3);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xf0')]=function(_0x57e07e){const _0x553775=_0x1cb4f7;logger['info'](util[_0x553775('0x184')](_0x553775('0x1'),_0x57e07e[_0x553775('0xdb')]));if(_0x57e07e[_0x553775('0x14a')]===0x0)return this[_0x553775('0xf4')](_0x57e07e);_0x57e07e[_0x553775('0x14a')]-=0x1;if(!this[_0x553775('0xa6')](_0x57e07e['file_id']))return this['channel'][_0x553775('0x82')](_0x57e07e,_0x553775('0xfa'));const _0x4e342d=this[_0x553775('0x19d')][_0x553775('0x159')](this,_0x57e07e[_0x553775('0xb6')]);if(!_0x4e342d)return this['channel']['error'](_0x57e07e,_0x553775('0x177'));const _0x544d71=this[_0x553775('0x190')]['getData'](_0x4e342d,_0x57e07e[_0x553775('0x33')],_0x57e07e[_0x553775('0x87')]);let _0x42fe0c=_0x544d71[_0x553775('0x10d')];if(_0x544d71[_0x553775('0x10d')]===-0x1)return this['createSquareDetailsReport']['sync'](this,_0x57e07e,'-1'),_0x544d71;else{if(_0x544d71[_0x553775('0x118')]===_0x553775('0x1ac'))_0x544d71[_0x553775('0x10d')]=_0x544d71['result'][_0x553775('0x174')]>0x0?_0x544d71['result']:'t';else _[_0x553775('0x133')](_0x544d71['result'])&&(_0x544d71['result']='#',_0x42fe0c='#');}if(!this['isConfigured'](_0x57e07e['variable_id']))this['channel'][_0x553775('0x180')](_0x553775('0x62'));else{const _0x4957ad=this[_0x553775('0xd')][_0x553775('0x159')](this,_0x57e07e['variable_id']);if(!_0x4957ad)return this[_0x553775('0x190')]['error'](_0x57e07e,_0x553775('0xc0'));this[_0x553775('0x190')]['setVariable'](_0x4957ad,_0x42fe0c);}return this[_0x553775('0xaa')][_0x553775('0x159')](this,_0x57e07e,_0x42fe0c),_0x544d71;},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x180')]=function(_0x5cc1fb){const _0xe41a0e=_0x1cb4f7;return logger[_0xe41a0e('0x96')](util[_0xe41a0e('0x184')]('Enter\x20in\x20NOOP\x20(%s)\x20block',_0x5cc1fb[_0xe41a0e('0xdb')])),this['channel']['noop'](_0x5cc1fb['output']||_0x5cc1fb['label']);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x134')]=function(_0x2114ab){const _0x2451a0=_0x1cb4f7;logger[_0x2451a0('0x96')](util[_0x2451a0('0x184')]('Enter\x20in\x20PAUSE\x20(%s)\x20block',_0x2114ab[_0x2451a0('0xdb')]));if(!this['isConfigured'](_0x2114ab[_0x2451a0('0x19e')]))return this[_0x2451a0('0x190')][_0x2451a0('0x82')](_0x2114ab,_0x2451a0('0x77'));logger[_0x2451a0('0x96')](util['format'](_0x2451a0('0x103'),this[_0x2451a0('0x190')][_0x2451a0('0xa0')],_0x2114ab['findBy']));const _0x547a50=this['getPause'][_0x2451a0('0x159')](this,_0x2114ab[_0x2451a0('0x6a')]),_0x5e8a50=this[_0x2451a0('0x153')][_0x2451a0('0x159')](this,_0x2114ab['findBy'],_0x547a50);return _0x5e8a50?(logger[_0x2451a0('0x96')](util['format'](_0x2451a0('0x13b'),this[_0x2451a0('0x190')][_0x2451a0('0xa0')],_0x2114ab['findBy'])),this[_0x2451a0('0x190')][_0x2451a0('0x180')](util[_0x2451a0('0x184')]('AGENT\x20%s\x20FOUND\x20BY',this[_0x2451a0('0x190')][_0x2451a0('0xa0')],_0x2114ab[_0x2451a0('0x19e')])),{'code':0xc8,'result':_0x2451a0('0xa7')}):(logger[_0x2451a0('0x96')](util[_0x2451a0('0x184')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x2451a0('0x190')][_0x2451a0('0xa0')],_0x2114ab[_0x2451a0('0x19e')])),this[_0x2451a0('0x190')]['noop'](util[_0x2451a0('0x184')](_0x2451a0('0x13b'),this[_0x2451a0('0x190')][_0x2451a0('0xa0')],_0x2114ab[_0x2451a0('0x19e')])),{'code':0xc8,'result':_0x2451a0('0x1af')});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x3a')]=function(_0x191063){const _0x9418f7=_0x1cb4f7;logger[_0x9418f7('0x96')](util[_0x9418f7('0x184')](_0x9418f7('0x12f'),_0x191063[_0x9418f7('0xdb')]));if(!this[_0x9418f7('0xa6')](_0x191063[_0x9418f7('0xb6')]))return this[_0x9418f7('0x190')]['error'](_0x191063,_0x9418f7('0xfa'));const _0xf9aaad=this[_0x9418f7('0x19d')][_0x9418f7('0x159')](this,_0x191063['file_id']);if(!_0xf9aaad)return this[_0x9418f7('0x190')][_0x9418f7('0x82')](_0x191063,_0x9418f7('0x177'));const _0x23fbd2=this['channel']['exec']('PLAYBACK',[_0xf9aaad,_0x191063[_0x9418f7('0x1a4')]]);if(_0x23fbd2[_0x9418f7('0x10d')]===-0x1)return _0x23fbd2;return this[_0x9418f7('0x190')][_0x9418f7('0x180')](util[_0x9418f7('0x184')](_0x9418f7('0x16'),_0x9418f7('0xde'),_0xf9aaad));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x179')]=function(_0x5f4f8d){const _0xc91012=_0x1cb4f7;logger[_0xc91012('0x96')](util[_0xc91012('0x184')](_0xc91012('0x44'),_0x5f4f8d[_0xc91012('0xdb')]));if(!this[_0xc91012('0xa6')](_0x5f4f8d[_0xc91012('0x66')]))return this[_0xc91012('0x190')][_0xc91012('0x82')](_0x5f4f8d,_0xc91012('0x162'));let _0x38e918='';const _0x36af87=parseInt(_0x5f4f8d[_0xc91012('0x66')],0xa);if(isNaN(_0x36af87))_0x38e918=_0x5f4f8d[_0xc91012('0x66')];else{_0x38e918=this[_0xc91012('0x14f')][_0xc91012('0x159')](this,_0x5f4f8d['queue_id']);if(!_0x38e918)return this[_0xc91012('0x190')]['error'](_0x5f4f8d,_0xc91012('0x173'));}let _0x3c8c89='';if(this['isConfigured'](_0x5f4f8d[_0xc91012('0xb6')])){const _0xe4f841=this[_0xc91012('0x19d')][_0xc91012('0x159')](this,_0x5f4f8d[_0xc91012('0xb6')]);_0xe4f841&&(_0x3c8c89=_0xe4f841);}this[_0xc91012('0xaa')]['sync'](this,_0x5f4f8d,_0x38e918);_0x5f4f8d[_0xc91012('0x1a4')]['indexOf']('x')<0x0&&(_0x5f4f8d[_0xc91012('0x1a4')]+='x');_0x5f4f8d[_0xc91012('0x1a4')]['indexOf']('X')<0x0&&(_0x5f4f8d[_0xc91012('0x1a4')]+='X');this[_0xc91012('0x190')][_0xc91012('0x9a')](_0xc91012('0x7a'),_0x38e918?_0x38e918[_0xc91012('0x6c')]():'');const _0x4821a5=this[_0xc91012('0x190')]['exec'](_0xc91012('0x10b'),[_0x38e918,_0x5f4f8d[_0xc91012('0x1a4')],_0x5f4f8d[_0xc91012('0x9b')],_0x3c8c89,_0x5f4f8d[_0xc91012('0x1ac')],_0x5f4f8d[_0xc91012('0x187')],_0x5f4f8d['macro'],_0x5f4f8d[_0xc91012('0xcf')],'',_0x5f4f8d['position']]);if(_0x4821a5['result']===-0x1)return _0x4821a5;return this[_0xc91012('0x190')][_0xc91012('0x180')](util[_0xc91012('0x184')](_0xc91012('0x16'),_0xc91012('0x10b'),_0x38e918));},AGIVertices['prototype'][_0x1cb4f7('0x132')]=function(_0x285f2b){const _0x2cf028=_0x1cb4f7;logger[_0x2cf028('0x96')](util[_0x2cf028('0x184')](_0x2cf028('0x12b'),_0x285f2b[_0x2cf028('0xdb')]));const _0x314a47=_0x285f2b[_0x2cf028('0x155')]||'wav',_0x42bd4d=util[_0x2cf028('0x184')](_0x2cf028('0x29'),this[_0x2cf028('0x190')][_0x2cf028('0x112')],rs[_0x2cf028('0x75')](0x5)),_0x389312=util['format'](_0x2cf028('0x46'),FILES_PATH,_0x42bd4d,_0x314a47),_0x1d361e=util['format'](_0x2cf028('0x79'),FILES_PATH,_0x42bd4d);return this['createSquareRecording'][_0x2cf028('0x159')](this,_0x285f2b,_0x42bd4d,_0x389312),this[_0x2cf028('0x190')][_0x2cf028('0x9a')]('RECORDING_SAVENAME',_0x42bd4d),logger[_0x2cf028('0x96')](_0x2cf028('0x197'),_0x1d361e,_0x314a47,_0x285f2b[_0x2cf028('0x26')],_0x285f2b[_0x2cf028('0x1ac')]),this['channel']['recordFile'](_0x1d361e,_0x314a47,_0x285f2b['escape_digits'],_0x285f2b[_0x2cf028('0x1ac')],undefined,!![]);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x13a')]=function(_0xad157b){const _0x4b8870=_0x1cb4f7;logger[_0x4b8870('0x96')](util['format'](_0x4b8870('0xee'),_0xad157b['label']));if(!this[_0x4b8870('0xa6')](_0xad157b['url']))return this[_0x4b8870('0x190')][_0x4b8870('0x180')](_0x4b8870('0xa3'));const _0x27434b=this['restAPI'][_0x4b8870('0x159')](this,_0xad157b);logger[_0x4b8870('0x96')](util['format'](_0x4b8870('0x147'),util[_0x4b8870('0xd6')](_0x27434b,{'showHidden':![],'depth':null})));if(!this[_0x4b8870('0xa6')](_0xad157b[_0x4b8870('0x18e')]))return this['channel'][_0x4b8870('0x180')](_0x4b8870('0x56'));const _0x328e86=this[_0x4b8870('0xd')][_0x4b8870('0x159')](this,_0xad157b[_0x4b8870('0x18e')]);if(!_0x328e86)return this[_0x4b8870('0x190')][_0x4b8870('0x82')](_0xad157b,_0x4b8870('0xc0'));this[_0x4b8870('0x190')][_0x4b8870('0x9a')](util[_0x4b8870('0x184')](_0x4b8870('0x4e'),_0x328e86),_0x27434b[_0x4b8870('0x17e')]?_0x27434b[_0x4b8870('0x17e')]:'200'),this['channel'][_0x4b8870('0x9a')](util['format']('%s_STATUS_MESSAGE',_0x328e86),_0x27434b[_0x4b8870('0xe1')]?_0x27434b[_0x4b8870('0xe1')]:'OK');if(_0x27434b[_0x4b8870('0x189')])try{this[_0x4b8870('0x17b')](_0x27434b[_0x4b8870('0x189')],_0x328e86);}catch(_0x1dceb9){logger['error'](util[_0x4b8870('0x184')]('Unable\x20to\x20set\x20result\x20in\x20variable\x20%s',_0x328e86));}return this[_0x4b8870('0x190')][_0x4b8870('0x180')](util[_0x4b8870('0x184')](_0x4b8870('0x13f'),_0x328e86));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x166')]=function(_0x223125){const _0x2f09e2=_0x1cb4f7;return logger[_0x2f09e2('0x96')](util[_0x2f09e2('0x184')](_0x2f09e2('0x41'),_0x223125[_0x2f09e2('0xdb')])),this[_0x2f09e2('0x190')][_0x2f09e2('0x95')](_0x223125[_0x2f09e2('0x170')][_0x2f09e2('0x36')](/\s+/g,''),_0x223125['escape_digits']);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x72')]=function(_0x3ce808){const _0x821029=_0x1cb4f7;return logger[_0x821029('0x96')](util[_0x821029('0x184')]('Enter\x20in\x20SAYNUMBER\x20(%s)\x20block',_0x3ce808[_0x821029('0xdb')])),this['channel'][_0x821029('0x60')](_0x3ce808[_0x821029('0x63')][_0x821029('0x36')](/\s+/g,''),_0x3ce808[_0x821029('0x26')]);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x10f')]=function(_0x458cfc){const _0x49a0c0=_0x1cb4f7;return logger[_0x49a0c0('0x96')](util[_0x49a0c0('0x184')](_0x49a0c0('0xe4'),_0x458cfc[_0x49a0c0('0xdb')])),this[_0x49a0c0('0x190')]['sayPhonetic'](_0x458cfc['text'],_0x458cfc['escape_digits']);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x165')]=function(_0x3ec321){const _0x170a55=_0x1cb4f7;logger[_0x170a55('0x96')](util[_0x170a55('0x184')](_0x170a55('0xb8'),_0x3ec321['label']));if(!this[_0x170a55('0xa6')](_0x3ec321[_0x170a55('0x11d')]))return this[_0x170a55('0x190')][_0x170a55('0x180')](_0x170a55('0x21'));const _0x11e659=this[_0x170a55('0x15d')][_0x170a55('0x159')](this,_0x3ec321[_0x170a55('0x11d')]);if(!_0x11e659||!_0x11e659[_0x170a55('0xe8')])return this['channel'][_0x170a55('0x82')](_0x3ec321,'no\x20mail\x20account\x20found');const _0x313975={'from':util['format'](_0x170a55('0x185'),_0x11e659['name'],_0x11e659[_0x170a55('0x14e')]||_0x11e659['Smtp']['user']),'to':_0x3ec321['to']||'','cc':_0x3ec321['cc']||'','bcc':_0x3ec321[_0x170a55('0x113')]||'','subject':_0x3ec321['subject'],'html':_0x3ec321[_0x170a55('0x1b6')],'text':_0x3ec321['text']},_0x412ba8={'tls':{'rejectUnauthorized':![]}};_0x11e659[_0x170a55('0xe8')][_0x170a55('0xeb')]?_0x412ba8[_0x170a55('0xeb')]=_0x11e659[_0x170a55('0xe8')][_0x170a55('0xeb')]:(_0x412ba8[_0x170a55('0x9f')]=_0x11e659[_0x170a55('0xe8')][_0x170a55('0x9f')],_0x412ba8[_0x170a55('0x18d')]=_0x11e659[_0x170a55('0xe8')][_0x170a55('0x18d')],_0x412ba8[_0x170a55('0x7f')]=_0x11e659['Smtp'][_0x170a55('0x7f')]);_0x11e659[_0x170a55('0xe8')][_0x170a55('0x168')]&&(_0x412ba8['auth']={'user':_0x11e659[_0x170a55('0xe8')]['user'],'pass':_0x11e659[_0x170a55('0xe8')][_0x170a55('0xe3')]});if(this[_0x170a55('0xa6')](_0x3ec321[_0x170a55('0x141')])){}return logger[_0x170a55('0x107')]('sendMail\x20message',JSON[_0x170a55('0x149')](_0x313975)),this['createSquareDetailsReport'][_0x170a55('0x159')](this,_0x3ec321,_0x3ec321[_0x170a55('0x11d')]),this[_0x170a55('0x190')][_0x170a55('0x180')](util['format'](_0x170a55('0x84'),_0x11e659['name'])),this['sendMailMessage']['sync'](this,_0x412ba8,_0x313975),this[_0x170a55('0x190')]['noop']('Mail\x20message\x20added\x20to\x20outgoing\x20process');},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x12c')]=function(_0x30f495){const _0x39586b=_0x1cb4f7;return logger[_0x39586b('0x96')](util['format']('Enter\x20in\x20SENDFAX\x20(%s)\x20block',_0x30f495[_0x39586b('0xdb')])),this['channel'][_0x39586b('0x180')]('SENDFAX\x20block\x20not\x20implemented');},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x140')]=function(_0x32fd53){const _0x5285fc=_0x1cb4f7;logger[_0x5285fc('0x96')](util[_0x5285fc('0x184')](_0x5285fc('0x19'),_0x32fd53['label']));if(!this[_0x5285fc('0xa6')](_0x32fd53[_0x5285fc('0x37')]))return this[_0x5285fc('0x190')][_0x5285fc('0x180')](_0x5285fc('0x6f'));const _0x4c97b3=this[_0x5285fc('0xd3')][_0x5285fc('0x159')](this,_0x32fd53[_0x5285fc('0x37')]);if(!_0x4c97b3)return this[_0x5285fc('0x190')][_0x5285fc('0x82')](_0x32fd53,_0x5285fc('0x1ad'));const _0x771556={'body':_0x32fd53[_0x5285fc('0x169')],'phone':_0x32fd53['to']||'','SmsAccountId':_0x4c97b3['id']};return logger[_0x5285fc('0x107')](_0x5285fc('0x186'),JSON['stringify'](_0x771556)),this[_0x5285fc('0xaa')][_0x5285fc('0x159')](this,_0x32fd53,_0x32fd53[_0x5285fc('0x37')]),this[_0x5285fc('0x190')][_0x5285fc('0x180')](util['format']('Trying\x20SendSMS\x20with\x20account\x20%s',_0x4c97b3[_0x5285fc('0x1b4')])),this[_0x5285fc('0x182')]['sync'](this,_0x771556),this[_0x5285fc('0x190')]['noop']('Sms\x20message\x20added\x20to\x20outgoing\x20process');},AGIVertices['prototype']['set']=function(_0x1801ef){const _0xd5e12d=_0x1cb4f7;logger[_0xd5e12d('0x96')](util['format'](_0xd5e12d('0x152'),_0x1801ef['label']));if(!this[_0xd5e12d('0xa6')](_0x1801ef[_0xd5e12d('0x18e')]))return this['channel']['error'](_0x1801ef,_0xd5e12d('0x1b0'));const _0x414d6f=this[_0xd5e12d('0xd')][_0xd5e12d('0x159')](this,_0x1801ef[_0xd5e12d('0x18e')]);if(!_0x414d6f)return this['channel'][_0xd5e12d('0x82')](_0x1801ef,_0xd5e12d('0xc0'));return this['channel'][_0xd5e12d('0x9a')](_0x414d6f,_0x1801ef['variable_value']);},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xa5')]=function(_0x7a2190){const _0x4434fc=_0x1cb4f7;logger['info'](util[_0x4434fc('0x184')]('Enter\x20in\x20START\x20(%s)\x20block',_0x7a2190[_0x4434fc('0xdb')])),this[_0x4434fc('0x190')]['noop'](_0x4434fc('0x117'));if(_0x7a2190['answer']===_0x4434fc('0x86'))return this[_0x4434fc('0x190')]['noop'](_0x4434fc('0x126')),this[_0x4434fc('0x190')][_0x4434fc('0x31')]();return this[_0x4434fc('0x190')]['noop']('Skipped\x20Answer');},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x178')]=function(_0x5f4475){const _0x1b2736=_0x1cb4f7;logger[_0x1b2736('0x96')](util[_0x1b2736('0x184')](_0x1b2736('0x176'),_0x5f4475['label']));if(!this[_0x1b2736('0xa6')](_0x5f4475[_0x1b2736('0x129')]))return this[_0x1b2736('0x190')][_0x1b2736('0x82')](_0x5f4475,_0x1b2736('0x76'));const _0x523fb8=this[_0x1b2736('0x40')][_0x1b2736('0x159')](this,_0x5f4475[_0x1b2736('0x129')]);if(!this[_0x1b2736('0xa6')](_0x523fb8))return this[_0x1b2736('0x190')][_0x1b2736('0x82')](_0x5f4475,util[_0x1b2736('0x184')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0x5f4475[_0x1b2736('0x129')]));if(_0x523fb8===this[_0x1b2736('0x190')][_0x1b2736('0x6d')])return this[_0x1b2736('0x190')][_0x1b2736('0x82')](_0x5f4475,_0x1b2736('0x181'));this['createSquareDetailsReport']['sync'](this,_0x5f4475,_0x523fb8);const _0x3b897c=this[_0x1b2736('0x190')][_0x1b2736('0x5')](_0x1b2736('0xd0'),util[_0x1b2736('0x184')]('agi://%s/square,\x22%s\x22,\x22%s\x22',config[_0x1b2736('0x187')][_0x1b2736('0x9f')]||'127.0.0.1',_0x523fb8,this[_0x1b2736('0x190')][_0x1b2736('0x6d')]));if(_0x3b897c[_0x1b2736('0x10d')]===-0x1)return _0x3b897c;return this[_0x1b2736('0x190')]['noop'](util[_0x1b2736('0x184')](_0x1b2736('0x16'),_0x1b2736('0xd0'),_0x523fb8));},AGIVertices['prototype']['system']=function(_0x127489){const _0x1928a4=_0x1cb4f7;logger[_0x1928a4('0x96')](util[_0x1928a4('0x184')](_0x1928a4('0xb7'),_0x127489[_0x1928a4('0xdb')]));const _0x2c2e64=this[_0x1928a4('0xf5')][_0x1928a4('0x159')](this,_0x127489[_0x1928a4('0xcc')]);this[_0x1928a4('0xaa')]['sync'](this,_0x127489,_0x127489[_0x1928a4('0xcc')]);if(this['isConfigured'](_0x127489[_0x1928a4('0x18e')])){const _0x51f7f6=this[_0x1928a4('0xd')][_0x1928a4('0x159')](this,_0x127489[_0x1928a4('0x18e')]);if(_0x51f7f6)return this['channel'][_0x1928a4('0x9a')](_0x51f7f6,_0x2c2e64),this[_0x1928a4('0x190')]['noop'](util['format'](_0x1928a4('0x1a8'),_0x127489[_0x1928a4('0xcc')],_0x51f7f6));}return this[_0x1928a4('0x190')][_0x1928a4('0x180')](util['format'](_0x1928a4('0x105'),_0x127489[_0x1928a4('0xcc')]));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x11a')]=function(_0x49229f){const _0xd402b4=_0x1cb4f7;logger[_0xd402b4('0x96')](util[_0xd402b4('0x184')]('Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block',_0x49229f[_0xd402b4('0xdb')])),_0x49229f[_0xd402b4('0x1b6')]=_0x49229f[_0xd402b4('0x1b6')][_0xd402b4('0x36')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0xd402b4('0xa6')](_0x49229f[_0xd402b4('0x139')]))return this[_0xd402b4('0x190')][_0xd402b4('0x180')](_0xd402b4('0x5a'));if(!this[_0xd402b4('0xa6')](_0x49229f[_0xd402b4('0x1b6')]))return this['channel'][_0xd402b4('0x180')](_0xd402b4('0x1c1'));this[_0xd402b4('0x190')][_0xd402b4('0x180')](util[_0xd402b4('0x184')](_0xd402b4('0xa1'),_0x49229f[_0xd402b4('0x1b6')]));const _0x2091e6=this[_0xd402b4('0x8f')][_0xd402b4('0x159')](this,_0x49229f);if(_0x2091e6){this[_0xd402b4('0x190')][_0xd402b4('0x180')](util['format']('Google\x20Cloud\x20TTS\x20%s\x20file\x20created',_0x2091e6));const _0x57719b=this[_0xd402b4('0x190')]['streamFile'](_0x2091e6);try{fs[_0xd402b4('0x64')](_0x2091e6+_0xd402b4('0x43'));}catch(_0x2d161f){logger[_0xd402b4('0x82')](_0x2d161f);}return _0x57719b;}return this[_0xd402b4('0x190')][_0xd402b4('0x82')](_0x49229f,_0xd402b4('0x156'));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x48')]=function(_0x231f3b){const _0x1855a9=_0x1cb4f7;logger[_0x1855a9('0x96')](util[_0x1855a9('0x184')](_0x1855a9('0xc'),_0x231f3b[_0x1855a9('0xdb')])),_0x231f3b[_0x1855a9('0x1b6')]=_0x231f3b['text'][_0x1855a9('0x36')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x1855a9('0xa6')](_0x231f3b[_0x1855a9('0x1b6')]))return this['channel']['noop']('no\x20text\x20configured');this[_0x1855a9('0x190')][_0x1855a9('0x180')](util[_0x1855a9('0x184')](_0x1855a9('0x67'),_0x231f3b['text']));const _0x419e1d=this[_0x1855a9('0x1b')][_0x1855a9('0x159')](this,_0x231f3b);if(_0x419e1d){this[_0x1855a9('0x190')]['noop'](util[_0x1855a9('0x184')](_0x1855a9('0x10a'),_0x419e1d));const _0x3521c3=this[_0x1855a9('0x190')]['streamFile'](_0x419e1d);try{fs[_0x1855a9('0x64')](_0x419e1d+_0x1855a9('0x43'));}catch(_0x2d9f14){logger['error'](_0x2d9f14);}return _0x3521c3;}return this[_0x1855a9('0x190')][_0x1855a9('0x82')](_0x231f3b,_0x1855a9('0x183'));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x16e')]=function(_0x5d2cbb){const _0xf93e54=_0x1cb4f7;logger[_0xf93e54('0x96')](util[_0xf93e54('0x184')]('Enter\x20in\x20UNPAUSE\x20(%s)\x20block',_0x5d2cbb[_0xf93e54('0xdb')]));if(!this[_0xf93e54('0xa6')](_0x5d2cbb['findBy']))return this[_0xf93e54('0x190')][_0xf93e54('0x82')](_0x5d2cbb,'no\x20find\x20by\x20configured');logger[_0xf93e54('0x96')](util['format'](_0xf93e54('0x103'),this['channel'][_0xf93e54('0xa0')],_0x5d2cbb['findBy']));const _0x265ae7=this['agentUnpause'][_0xf93e54('0x159')](this,_0x5d2cbb[_0xf93e54('0x19e')]);return _0x265ae7?(logger[_0xf93e54('0x96')](util['format'](_0xf93e54('0x13b'),this[_0xf93e54('0x190')]['callerid'],_0x5d2cbb['findBy'])),this[_0xf93e54('0x190')][_0xf93e54('0x180')](util['format'](_0xf93e54('0x13b'),this[_0xf93e54('0x190')][_0xf93e54('0xa0')],_0x5d2cbb[_0xf93e54('0x19e')])),{'code':0xc8,'result':_0xf93e54('0xa7')}):(logger[_0xf93e54('0x96')](util[_0xf93e54('0x184')](_0xf93e54('0x192'),this[_0xf93e54('0x190')][_0xf93e54('0xa0')],_0x5d2cbb[_0xf93e54('0x19e')])),this[_0xf93e54('0x190')][_0xf93e54('0x180')](util[_0xf93e54('0x184')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0xf93e54('0x190')][_0xf93e54('0xa0')],_0x5d2cbb[_0xf93e54('0x19e')])),{'code':0xc8,'result':_0xf93e54('0x1af')});},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0xb9')]=function(_0x880a72){const _0x46f0dd=_0x1cb4f7;logger['info'](util[_0x46f0dd('0x184')](_0x46f0dd('0x122'),_0x880a72[_0x46f0dd('0xdb')]));const _0x3c493f=this[_0x46f0dd('0x190')][_0x46f0dd('0x5')](_0x46f0dd('0xc5'),[_0x880a72[_0x46f0dd('0x9e')],_0x880a72[_0x46f0dd('0x35')]]);if(_0x3c493f[_0x46f0dd('0x10d')]===-0x1)return _0x3c493f;return this[_0x46f0dd('0x190')]['noop'](util['format'](_0x46f0dd('0x16'),'VOICEMAIL',_0x880a72[_0x46f0dd('0x9e')]));},AGIVertices[_0x1cb4f7('0x4c')][_0x1cb4f7('0x74')]=function(_0x4a27f5){const _0x4df339=_0x1cb4f7;logger[_0x4df339('0x96')](util[_0x4df339('0x184')](_0x4df339('0x89'),_0x4a27f5[_0x4df339('0xdb')]));if(!this[_0x4df339('0xa6')](_0x4a27f5[_0x4df339('0x18e')]))return this[_0x4df339('0x190')][_0x4df339('0x82')](_0x4a27f5,_0x4df339('0x1b0'));const _0x590d90=this['getVariable'][_0x4df339('0x159')](this,_0x4a27f5[_0x4df339('0x18e')]);if(!_0x590d90)return this[_0x4df339('0x190')]['error'](_0x4a27f5,_0x4df339('0xc0'));const _0x3cd90d=this[_0x4df339('0x190')][_0x4df339('0xd')](_0x590d90);return{'code':0xc8,'result':_0x3cd90d[_0x4df339('0x118')]?_0x3cd90d['extra']:'-'};},String['prototype'][_0x1cb4f7('0xea')]=function(_0x216cf5,_0x282e50){const _0x94e580=_0x1cb4f7;return this[_0x94e580('0x54')](_0x216cf5)[_0x94e580('0x191')](_0x282e50);},module[_0x1cb4f7('0x1b8')]=AGIVertices; \ No newline at end of file +const a1048_0x466b=['getSmsAccountById','body','Enter\x20in\x20SESTEKTTS\x20(%s)\x20block','Answer','DialogflowV2\x20is\x20unreachable','goalname','The\x20\x22%s\x22\x20variable\x20value\x20is:\x20%s','ispeech\x20%s\x20file\x20created','googleASR','getUserById','project_id','awspolly','tildeASR','Enter\x20in\x20GOTO\x20(%s)\x20block','trim','Enter\x20in\x20SAYNUMBER\x20(%s)\x20block','generate','email','saynumber','getMailAccountById','success','Enter\x20in\x20CALLBACK\x20(%s)\x20block','pause','sayNumber','Smtp','wav','odbc','ndassistant_url','output','speed','format','digits','sync','replace','Enter\x20in\x20LOGOUT\x20(%s)\x20block','sendMailMessage','Executed\x20command\x20MRCPRecog\x20%s','IspeechASR\x20Result\x20%s','render','Enter\x20in\x20TILDEASR\x20(%s)\x20block','Enter\x20in\x20SESTEKASR\x20(%s)\x20block','createSquareMessage','Enter\x20in\x20ISPEECHTTS\x20(%s)\x20block','Executed\x20command\x20%s\x20%s','label','no\x20bot\x20name\x20configured','AWS_LEX_%s','getIntervalById','getVariableById','isString','isPlainObject','timeout','trunk_id','Enter\x20in\x20PLAYBACK\x20(%s)\x20block','no\x20appsecret\x20configured','Amazon\x20Lex\x20Result\x20%s','toString','SESTEK_ASR_TRANSCRIPT','dialogflow','no\x20variable\x20selected','query:\x20%s','saveRestApiResult','%s/sounds/converted/%s','awsPolly','client_email','no\x20text\x20configured','ispeech\x20TTS\x20is\x20unreachable','map','stringify','google\x20%s\x20file\x20created','no\x20find\x20by\x20configured','host','Enter\x20in\x20MENU\x20(%s)\x20block','isConfigured','googleDialogflowV2','Enter\x20in\x20GOTOIFTIME\x20(%s)\x20block','hangup','An\x20incorrect\x20formatted\x20json\x20has\x20been\x20passed\x20to\x20the\x20function','Error\x20getting\x20ODBC\x20connection\x20%s','Response:','Enter\x20in\x20RESTAPI\x20(%s)\x20block','Enter\x20in\x20MATH\x20(%s)\x20block','exports','getSoundPath','awslex','getMailAccount','Enter\x20in\x20GETSECRETDIGITS\x20(%s)\x20block','IFTIME\x20%s\x20%s','Executed\x20command\x20%s','providerResponse','%s.%s','appid','google_asr_language','username','beep','no\x20password\x20configured','method','no\x20valid\x20credentials\x20configured','vswitch','getSquareOdbcById','aws_secret_access_key','hiddendigitsnum','no\x20mail\x20account\x20found','clone','interval_id','voicemail','error','dsn','util','Enter\x20in\x20UNPAUSE\x20(%s)\x20block','condition','scheduledAt','NOBEEP','Enter\x20in\x20DIALOGFLOW\x20V2\x20(%s)\x20block','RECOG_INPUT()','PLAYBACK','parse','auth','setVariable','callback_priority','200','result','context','sendSMS\x20message','digit','replaceAllVariables','getPause','getIntervals','subject','toUpperCase','Enter\x20in\x20LUMENVOXTTS\x20(%s)\x20block','Dialogflow\x20is\x20unreachable','googleasr','MRCP_RECOG_TRANSCRIPT','forEach','%s/recordings/%s','QUEUE','127.0.0.1','command','dial','no\x20grammar\x20configured','SENDFAX\x20block\x20not\x20implemented','maxRetry','googleDialogflow','awsLex','Enter\x20in\x20SENDFAX\x20(%s)\x20block','bcc','inspect','Enter\x20in\x20SAYPHONETIC\x20(%s)\x20block','service','GoogleASR\x20Result\x20%s','Enter\x20in\x20SYSTEM\x20(%s)\x20block','lastName','agent','intKey','mailbox','en-US','FIND\x20AGENT\x20%s\x20BY\x20%s','Enter\x20in\x20MRCPSynth\x20(%s)\x20block','recordFile','createCmContact','TildeASR\x20Result\x20%s','Enter\x20in\x20ANSWER\x20(%s)\x20block','set','macro','extra','query','shellCommand','computedVariables','agentLogin','appsecret','An\x20incorrect\x20formatted\x20json\x20headers\x20has\x20been\x20passed\x20to\x20the\x20function','MALE','subproject','createSquareRecording','number','no\x20private_key\x20configured','gosub','getSmsAccount','args','DIAL','getSound','out','%s_%s','gotoiftime','agi://%s/square,\x22%s\x22,\x22%s\x22','Enter\x20in\x20Google\x20Cloud\x20TTS\x20(%s)\x20block','sms_account_id','open','SestekNDA\x20is\x20unreachable','getTrunk','no\x20database\x20selected','googleTTS','speech','sh\x20command:\x20%s\x20result\x20on\x20variable:\x20%s','sestekNDA','accountcode','Trying\x20SestekNDA:\x20%s','languageCode','getSquareOdbc','escape_digits','Intervals','rpc','LUMENVOX_ASR_TRANSCRIPT','no\x20mail\x20account\x20configured','LUMENVOX_ASR_CONFIDENCE','Trying\x20Google\x20TTS\x20%s','pass','AGENT\x20%s\x20FOUND\x20BY','includes','custom_app','sh\x20command:\x20%s\x20result\x20no\x20stored','end','gotoif','add','Sestek\x20NDA\x20%s\x20file\x20created','no\x20client_email\x20configured','phone','IntervalId','no\x20user\x20selected','moment','aws_text_type','getPauseById','Trying\x20DialogflowV2:\x20%s','google_cloud_tts','ext_dial','SestekNDA\x20Result\x20%s','Trying\x20SendMail\x20with\x20account\x20%s','Enter\x20in\x20GOAL\x20(%s)\x20block','no\x20variable\x20selected\x20for\x20the\x20response','../../config/environment','Enter\x20in\x20SET\x20(%s)\x20block','MRCPRecog','lumenvoxasr','name','private_key','ndauth_url','Enter\x20in\x20LUMENVOXASR\x20(%s)\x20block','rawHeaders','file','variable_id','.wav','DialogflowV2\x20Result\x20%s','no\x20subproject\x20selected','no\x20trunk\x20found','agicommand','sestektts','%s[%s]','PUT','createSmsMessage','undefined','substr','randomstring','statusCode','Amy','getSquareProject','mrcprecog','no\x20odbc\x20database\x20found','%s_ROWS_COUNT','no\x20trunk\x20selected','math','GOOGLE_ASR_%s','MRCPSynth','database','catch','isNil','ODBC\x20connection\x20successfully','exec','isEmpty','keys','Trying\x20Amazon\x20Lex:\x20%s','no\x20operation\x20configured','isArray','queue','list_id','key','XMCS-QUEUE','Skipped\x20Answer','\x22%s\x22\x20<%s>','Enter\x20in\x20GOOGLETTS\x20(%s)\x20block','answer','Enter\x20in\x20SENDSMS\x20(%s)\x20block','Enter\x20in\x20START\x20(%s)\x20block','ispeechASR','dialogflowV2','calleridname','Enter\x20in\x20GOOGLEASR\x20(%s)\x20block\x20%s','random','delay','project\x20in\x20subproject\x20must\x20be\x20different\x20from\x20the\x20called\x20project','Google\x20TTS\x20%s\x20file\x20created','Google\x20Cloud\x20TTS\x20is\x20unreachable','interval','sayPhonetic','sendMail\x20message','sendSMS','Enter\x20in\x20SENDMAIL\x20(%s)\x20block','Error\x20executing\x20query\x20%s','extension','Enter\x20in\x20SAYDIGITS\x20(%s)\x20block','Enter\x20in\x20END\x20(%s)\x20block','Enter\x20in\x20HANGUP\x20(%s)\x20block','%s_STATUS_CODE','debug','secure','getsecretdigits','tilde\x20%s\x20file\x20created','text','goal','mrcpsynth','no\x20user\x20found','length','no\x20url\x20configured','mindigit','agentUnpause','finally','Enter\x20in\x20SWITCH\x20(%s)\x20block','queue_id','restAPI','sayDigits','statusMessage','mustache','getQueryOdbc','replaceObjectAllVariables','./scripts','variable\x20%s\x20set','application','Executed\x20command\x20MRCPSynth\x20%s','close','clear','gotoc','agentLogout','Sms\x20message\x20added\x20to\x20outgoing\x20process','false','getVoiceQueue','SESTEK_ASR_CONFIDENCE','then','priority','template_id','ispeech_tts_language','no\x20queue\x20found','Enter\x20in\x20LOGIN\x20(%s)\x20block','replaceAll','sms_text','Enter\x20in\x20DIALOGFLOW\x20(%s)\x20block','audiofile','AGENT\x20%s\x20NOT\x20FOUND\x20BY','no\x20queue\x20selected','dialogflowV2_project_id','sip_id','recordingFormat','sayphonetic','500\x20-\x20Internal\x20Server\x20Error','An\x20incorrect\x20formatted\x20json\x20body\x20has\x20been\x20passed\x20to\x20the\x20function','toLowerCase','channel','headers','retry','Unable\x20to\x20set\x20result\x20in\x20variable\x20%s','failure','Google\x20TTS\x20is\x20unreachable','[AGI]\x20Enter\x20in\x20AWSPOLLY\x20(%s)\x20block','getVariable','createSquareDetailsReport','test','uniqueid','no\x20variable\x20found','no\x20variable\x20selected\x20for\x20the\x20result','aws_bot_name','no\x20file\x20audio\x20found','password','minutes','RECORDING_SAVENAME','getUser','callback_','AGI','noop','apiKey','GOAL\x20%s','aws_polly_voice','dialogflow_language','maxdigit','getdigits','operation','CALLBACK\x20added\x20phone:\x20%s\x20on\x20list:\x20%s\x20at\x20%s','no\x20apiKey\x20configured','user','url','ispeechTTS','SIP/%s/%s','grammar','hiddendigitspos','callerid','split','no\x20intervals\x20found','Amazon\x20Lex\x20is\x20unreachable','callback','TILDE_ASR_%s','Trying\x20Google\x20Cloud\x20TTS\x20%s','Enter\x20in\x20CUSTOM\x20APP\x20(%s)\x20block','true','google_tts_language','Wait\x20%s\x20seconds\x20before\x20answer','aws_lex_region','aws_access_key_id','streamFile','save_name','account_id','internal','no\x20sms\x20account\x20found','sesteknda','Trying\x20aws\x20Polly\x20%s','Enter\x20in\x20PAUSE\x20(%s)\x20block','no\x20project_id\x20configured','VOICEMAIL','lumenvoxtts','Enter\x20in\x20NOOP\x20(%s)\x20block','position','model','uri','Enter\x20in\x20DATABASE\x20(%s)\x20block','tts','unlink','pause_id','rawBody','trunk_name','Enter\x20in\x20SESTEKNDA\x20(%s)\x20block','mailRpc','no\x20condition\x20configured','continueAt','RECOG_CONFIDENCE()','SIP/%s','saydigits','bot','../../config/logger','no\x20file\x20audio\x20selected','prototype','googleCloudTTS','no\x20sms\x20account\x20configured','MP3','no\x20key\x20configured','opts','/var/opt/motion2/server/files','record','Enter\x20in\x20VOICEMAIL\x20(%s)\x20block','%s/%s@from-sip/n','amazonlex','arg_1','RECOG_INSTANCE()','info','%s_STATUS_MESSAGE','findBy','message','getAndSetVariable','ISPEECH_ASR_%s','agi','audioEncoding','wait','ssmlGender','recursiveNodeIndex','aws\x20Polly\x20%s\x20file\x20created','start','Mail\x20message\x20added\x20to\x20outgoing\x20process','options','Enter\x20in\x20DIAL\x20(%s)\x20block','agentPause','request-promise-native','file_id','no\x20appid\x20configured'];(function(_0x1f171f,_0x466b0c){const _0x1040cb=function(_0x1ecbf3){while(--_0x1ecbf3){_0x1f171f['push'](_0x1f171f['shift']());}};_0x1040cb(++_0x466b0c);}(a1048_0x466b,0x1c9));const a1048_0x1040=function(_0x1f171f,_0x466b0c){_0x1f171f=_0x1f171f-0x0;let _0x1040cb=a1048_0x466b[_0x1f171f];return _0x1040cb;};const _0x2948f2=a1048_0x1040;'use strict';const fs=require('fs'),util=require(_0x2948f2('0x78')),_=require('lodash'),sh=require('shelljs'),odbc=require(_0x2948f2('0x26')),rs=require(_0x2948f2('0x108')),moment=require(_0x2948f2('0xe8')),Mustache=require(_0x2948f2('0x14d')),rp=require(_0x2948f2('0x9')),logger=require(_0x2948f2('0x1be'))(_0x2948f2('0x1d3')),config=require(_0x2948f2('0xf2')),scripts=require(_0x2948f2('0x150')),FILES_PATH=_0x2948f2('0x1c6'),recursiveMapAttributes=[_0x2948f2('0xfa'),_0x2948f2('0x1b4')],verticesWithRetry=['menu',_0x2948f2('0x18a'),_0x2948f2('0x13d')],AGIVertices=function(_0x1ecbf3,_0x1994dc,_0x4bd183){const _0x432cf6=_0x2948f2;this['channel']=_0x1ecbf3,this[_0x432cf6('0xd6')]=_0x1994dc,this[_0x432cf6('0x1b7')]=_0x4bd183;};AGIVertices[_0x2948f2('0x1c0')]['getVariable']=function(_0x3cac7c,_0x2d9217){const _0x15ab0a=_0x2948f2;this['rpc'][_0x15ab0a('0x3c')](_0x3cac7c)[_0x15ab0a('0x15c')](function(_0x297340){const _0x3ee781=_0x15ab0a;_0x2d9217(null,_0x297340?_0x297340[_0x3ee781('0xf6')]:![]);})['catch'](function(_0x6ff7a){_0x2d9217(_0x6ff7a);});},AGIVertices['prototype'][_0x2948f2('0x15a')]=function(_0x362ab0,_0x8ba430){const _0x4d8a05=_0x2948f2;this[_0x4d8a05('0xd6')]['getVoiceQueueById'](_0x362ab0)['then'](function(_0xbaa59a){const _0x386fed=_0x4d8a05;_0x8ba430(null,_0xbaa59a?_0xbaa59a[_0x386fed('0xf6')]:![]);})[_0x4d8a05('0x114')](function(_0x268378){_0x8ba430(_0x268378);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x10b')]=function(_0x5d9bbc,_0x31138e){const _0x5e97fa=_0x2948f2;this[_0x5e97fa('0xd6')]['getSquareProjectById'](_0x5d9bbc)[_0x5e97fa('0x15c')](function(_0x1ac6a1){const _0x59f675=_0x5e97fa;_0x31138e(null,_0x1ac6a1?_0x1ac6a1[_0x59f675('0xf6')]:![]);})[_0x5e97fa('0x114')](function(_0x30026f){_0x31138e(_0x30026f);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xd3')]=function(_0x21fb33,_0xbc81bd){const _0x4d605a=_0x2948f2;this[_0x4d605a('0xd6')][_0x4d605a('0x6f')](_0x21fb33)[_0x4d605a('0x15c')](function(_0x2481ab){const _0x2deeba=_0x4d605a;_0xbc81bd(null,_0x2481ab?_0x2481ab[_0x2deeba('0x77')]:![]);})['catch'](function(_0x119632){_0xbc81bd(_0x119632);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x181')]=function(_0x1e0717,_0x21c10f){const _0x486834=_0x2948f2;this[_0x486834('0xd6')][_0x486834('0x15')](_0x1e0717)['then'](function(_0x54378a){const _0x5bd592=_0x486834;_0x21c10f(null,_0x54378a?_0x54378a[_0x5bd592('0xf6')]:![]);})[_0x486834('0x114')](function(_0x3791c9){_0x21c10f(_0x3791c9);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xca')]=function(_0x5bdf1a,_0x210e0d){const _0x122471=_0x2948f2;this[_0x122471('0xd6')]['getTrunkById'](_0x5bdf1a)[_0x122471('0x15c')](function(_0x2c1c8a){const _0x436ea0=_0x122471;_0x210e0d(null,_0x2c1c8a?_0x2c1c8a[_0x436ea0('0xf6')]:![]);})[_0x122471('0x114')](function(_0x1a10f2){_0x210e0d(_0x1a10f2);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xc1')]=function(_0x5b5401,_0x23d155){const _0x3f4a57=_0x2948f2,_0x29fa91=this;this[_0x3f4a57('0xd6')]['getSoundById'](_0x5b5401)['then'](function(_0x4a31c0){const _0x400dd6=_0x3f4a57;_0x23d155(null,_0x4a31c0?_0x29fa91[_0x400dd6('0x5f')](_0x4a31c0[_0x400dd6('0x1a2')]):![]);})[_0x3f4a57('0x114')](function(_0x1d7cdf){_0x23d155(_0x1d7cdf);});},AGIVertices['prototype'][_0x2948f2('0x61')]=function(_0x93e209,_0x1d1c68){const _0x41581a=_0x2948f2;this[_0x41581a('0xd6')][_0x41581a('0x1f')](_0x93e209)['then'](function(_0x3dd787){_0x1d1c68(null,_0x3dd787?_0x3dd787:![]);})[_0x41581a('0x114')](function(_0x271b6f){_0x1d1c68(_0x271b6f);});},AGIVertices['prototype'][_0x2948f2('0x2f')]=function(_0x3ed899,_0x5b8a1f,_0x185c49){const _0x3b32ae=_0x2948f2;this[_0x3b32ae('0x1b7')][_0x3b32ae('0x2f')](_0x3ed899,_0x5b8a1f)[_0x3b32ae('0x15c')](function(){_0x185c49(null);})['catch'](function(_0x28b813){_0x185c49(_0x28b813);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x8b')]=function(_0xdf26bb,_0x8bf76d){const _0x26cbed=_0x2948f2;this[_0x26cbed('0xd6')][_0x26cbed('0x3b')](_0xdf26bb)[_0x26cbed('0x15c')](function(_0x3510e2){const _0x4c7c6a=_0x26cbed;_0x3510e2?_0x3510e2[_0x4c7c6a('0xe6')]?_0x8bf76d(null,[_0x3510e2[_0x4c7c6a('0x130')]]):_0x8bf76d(null,_[_0x4c7c6a('0x4f')](_0x3510e2[_0x4c7c6a('0xd5')],'interval')):_0x8bf76d(null,![]);})[_0x26cbed('0x114')](function(_0xad812c){_0x8bf76d(_0xad812c);});},AGIVertices[_0x2948f2('0x1c0')]['getSoundPath']=function(_0x565a5d){const _0x3dc260=_0x2948f2;return util['format'](_0x3dc260('0x4a'),FILES_PATH,_0x565a5d);},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x14e')]=function(_0x107ee0,_0x4d6018,_0x1b145c){const _0x157f95=_0x2948f2;odbc[_0x157f95('0xc8')](_0x107ee0,function(_0x19d702){const _0x28d379=_0x157f95;_0x19d702?(logger[_0x28d379('0x76')](_0x28d379('0x5a'),_0x19d702),_0x1b145c(_0x19d702)):(logger['info'](_0x28d379('0x116')),odbc[_0x28d379('0xb2')](_0x4d6018,function(_0x1d13b5,_0x18be4c){const _0x3a0b6e=_0x28d379;_0x1d13b5?(logger[_0x3a0b6e('0x1cd')](_0x3a0b6e('0x135'),_0x4d6018),_0x1b145c(_0x1d13b5)):(logger[_0x3a0b6e('0x1cd')]('Query\x20executed\x20correctly\x20%s',_0x4d6018),odbc[_0x3a0b6e('0x154')](function(_0x4ca2f0){const _0x2fc230=_0x3a0b6e;_0x4ca2f0&&logger[_0x2fc230('0x76')]('Error\x20closing\x20connection\x20to\x20odbc\x20%s',_0x4ca2f0),_0x1b145c(null,_0x18be4c);}));}));});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xbe')]=function(_0xf5d906,_0x562012){const _0x1a28bb=_0x2948f2;this[_0x1a28bb('0xd6')][_0x1a28bb('0xc')](_0xf5d906)[_0x1a28bb('0x15c')](function(_0x49d0df){_0x562012(null,_0x49d0df?_0x49d0df:![]);})[_0x1a28bb('0x114')](function(_0x58ad5f){_0x562012(_0x58ad5f);});},AGIVertices['prototype'][_0x2948f2('0x105')]=function(_0x15422a,_0x1f15c7){const _0x3896e3=_0x2948f2;this[_0x3896e3('0xd6')][_0x3896e3('0x105')](_0x15422a)[_0x3896e3('0x15c')](function(_0x3d4326){_0x1f15c7(null,_0x3d4326);})['catch'](function(_0x38e201){_0x1f15c7(_0x38e201);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x177')]=function(_0x3f0cda,_0x4f7d97,_0x11fce3){const _0x3e90ad=_0x2948f2;this[_0x3e90ad('0xd6')][_0x3e90ad('0x177')]({'uniqueid':this[_0x3e90ad('0x16f')]['uniqueid'],'node':_0x3f0cda[_0x3e90ad('0x38')],'application':_0x3f0cda['agicommand'],'data':_0x4f7d97||null,'project_name':this[_0x3e90ad('0x16f')][_0x3e90ad('0x1cb')],'callerid':this[_0x3e90ad('0x16f')][_0x3e90ad('0x194')]})[_0x3e90ad('0x15c')](function(_0x57332e){_0x11fce3&&_0x11fce3(null,_0x57332e);})[_0x3e90ad('0x114')](function(_0x1896a1){_0x11fce3&&_0x11fce3(_0x1896a1);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xba')]=function(_0x8a47ec,_0x290ea3,_0x468adb,_0x125276){const _0x365b47=_0x2948f2;this[_0x365b47('0xd6')][_0x365b47('0xba')]({'uniqueid':this[_0x365b47('0x16f')][_0x365b47('0x179')],'callerid':this['channel'][_0x365b47('0x194')],'calleridname':this['channel'][_0x365b47('0x129')],'context':this[_0x365b47('0x16f')][_0x365b47('0x86')],'extension':this[_0x365b47('0x16f')][_0x365b47('0x136')],'priority':this[_0x365b47('0x16f')][_0x365b47('0x15d')],'accountcode':this[_0x365b47('0x16f')][_0x365b47('0xd0')],'dnid':this[_0x365b47('0x16f')]['dnid'],'projectName':this[_0x365b47('0x16f')]['arg_1'],'saveName':_0x290ea3,'filename':_0x8a47ec[_0x365b47('0xfb')]||_0x290ea3,'savePath':_0x468adb})[_0x365b47('0x15c')](function(_0x3e97e5){_0x125276(null,_0x3e97e5);})[_0x365b47('0x114')](function(_0x58e4e3){_0x125276(_0x58e4e3);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x35')]=function(_0x39ddb1,_0x38f196,_0x1c18cd,_0xc2cbec,_0x292121){const _0x469a51=_0x2948f2;this[_0x469a51('0xd6')]['createSquareMessage']({'uniqueid':this['channel'][_0x469a51('0x179')],'body':_0x39ddb1,'direction':_0x38f196,'providerName':_0x1c18cd,'providerResponse':_0xc2cbec})[_0x469a51('0x15c')](function(_0x466bd4){_0x292121&&_0x292121(null,_0x466bd4);})[_0x469a51('0x114')](function(_0x10075b){_0x292121&&_0x292121(_0x10075b);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xac')]=function(_0x492f48,_0x4e8d5f){const _0x34ae5c=_0x2948f2;this['rpc']['createCmContact']({'firstName':_[_0x34ae5c('0x118')](_0x492f48[_0x34ae5c('0xf6')])||_['isNil'](_0x492f48[_0x34ae5c('0xf6')])?_0x34ae5c('0x182')+Math[_0x34ae5c('0x12b')]():_0x492f48[_0x34ae5c('0xf6')],'lastName':_['isEmpty'](_0x492f48['lastName'])||_[_0x34ae5c('0x115')](_0x492f48[_0x34ae5c('0xa4')])?null:_0x492f48[_0x34ae5c('0xa4')],'phone':_0x492f48[_0x34ae5c('0xe5')],'ListId':_0x492f48[_0x34ae5c('0x11e')],'scheduledat':_0x492f48[_0x34ae5c('0x7b')],'callbackUniqueid':this[_0x34ae5c('0x16f')][_0x34ae5c('0x179')],'tags':_0x34ae5c('0x198'),'description':'Callback\x20scheduled\x20at\x20'+_0x492f48[_0x34ae5c('0x7b')][_0x34ae5c('0x44')](),'priority':_0x492f48[_0x34ae5c('0x83')]})['then'](function(_0x26ba37){_0x4e8d5f(null,_0x26ba37);})[_0x34ae5c('0x114')](function(_0x4eb7c6){_0x4e8d5f(_0x4eb7c6);});},AGIVertices['prototype'][_0x2948f2('0x8a')]=function(_0x524e6b,_0x5e9377){const _0x8a9fcf=_0x2948f2;this['rpc'][_0x8a9fcf('0xea')](_0x524e6b)[_0x8a9fcf('0x15c')](function(_0x1eb2b0){const _0x15fc98=_0x8a9fcf;_0x5e9377(null,_0x1eb2b0?_0x1eb2b0[_0x15fc98('0xf6')]:![]);})['catch'](function(_0x337dd1){_0x5e9377(_0x337dd1);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x8')]=function(_0x3d0547,_0xdb24cf,_0x3766eb){const _0x2896e8=_0x2948f2,_0x410bd5={'role':'agent'};_0x410bd5[_0x3d0547]=this['channel'][_0x2896e8('0x194')],this[_0x2896e8('0xd6')][_0x2896e8('0x8')](_0x410bd5,_0xdb24cf,this[_0x2896e8('0x16f')][_0x2896e8('0x179')])[_0x2896e8('0x15c')](function(_0x12592e){const _0x994318=_0x2896e8;_0x3766eb(null,_[_0x994318('0x115')](_0x12592e)?![]:!![]);})['catch'](function(_0x5e3a73){const _0x3073ca=_0x2896e8;logger[_0x3073ca('0x76')](_0x5e3a73),_0x3766eb(null,![]);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x146')]=function(_0x499af4,_0x29d89e){const _0x2f07b2=_0x2948f2,_0x3f69bb={'role':_0x2f07b2('0xa5')};_0x3f69bb[_0x499af4]=this[_0x2f07b2('0x16f')]['callerid'],this[_0x2f07b2('0xd6')][_0x2f07b2('0x146')](_0x3f69bb)[_0x2f07b2('0x15c')](function(_0x39c516){const _0x1b25d4=_0x2f07b2;_0x29d89e(null,_[_0x1b25d4('0x115')](_0x39c516)?![]:!![]);})[_0x2f07b2('0x114')](function(_0x3b74eb){const _0x50bf2a=_0x2f07b2;logger[_0x50bf2a('0x76')](_0x3b74eb),_0x29d89e(null,![]);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x157')]=function(_0x540ba5,_0x4b8afe){const _0x571137=_0x2948f2,_0x172df7={'role':_0x571137('0xa5')};_0x172df7[_0x540ba5]=this['channel'][_0x571137('0x194')],this[_0x571137('0xd6')][_0x571137('0x157')](_0x172df7)['then'](function(_0x31d2f1){const _0x55624b=_0x571137;_0x4b8afe(null,_[_0x55624b('0x115')](_0x31d2f1)?![]:!![]);})[_0x571137('0x114')](function(_0x2bbeb2){const _0x31f293=_0x571137;logger[_0x31f293('0x76')](_0x2bbeb2),_0x4b8afe(null,![]);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xb5')]=function(_0x110d84,_0xcab511){const _0x4dd5fd=_0x2948f2,_0x4eced6={'role':'agent'};_0x4eced6[_0x110d84]=this[_0x4dd5fd('0x16f')]['callerid'];const _0x46072c=_0x110d84!=_0x4dd5fd('0x1a4')?util[_0x4dd5fd('0x2a')](_0x4dd5fd('0x1c9'),'LOCAL',this[_0x4dd5fd('0x16f')]['callerid']):undefined;this['rpc'][_0x4dd5fd('0xb5')](_0x4eced6,_0x46072c)['then'](function(_0xf8bf1b){_0xcab511(null,_['isNil'](_0xf8bf1b)?![]:!![]);})[_0x4dd5fd('0x114')](function(_0x3f69fc){const _0x2f5678=_0x4dd5fd;logger[_0x2f5678('0x76')](_0x3f69fc),_0xcab511(null,![]);});},AGIVertices['prototype'][_0x2948f2('0xb3')]=function(_0x22fb33,_0x40667b){const _0x57db9c=_0x2948f2;sh[_0x57db9c('0x117')](_[_0x57db9c('0x1a')](_0x22fb33),function(_0x4ceb48,_0x34709b){const _0x5e16a5=_0x34709b['replace'](/(\r\n|\n|\r)/gm,'');_0x40667b(null,_0x5e16a5);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x1c1')]=function(_0x5e586d,_0x5582fc){const _0x20d530=_0x2948f2;scripts[_0x20d530('0x1c1')](_0x5e586d[_0x20d530('0x185')],_0x5e586d['google_cloud_tts_text_type']||'text',_0x5e586d['text'],_0x5e586d[_0x20d530('0xd2')]||'en-US',_0x5e586d[_0x20d530('0x1')]||_0x20d530('0xb8'),_0x5e586d[_0x20d530('0x1d4')]||_0x20d530('0x1c3'))[_0x20d530('0x15c')](function(_0xe9a1d0){_0x5582fc(null,_0xe9a1d0);})[_0x20d530('0x114')](function(_0x1ca4cb){_0x5582fc(_0x1ca4cb);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xcc')]=function(_0x398926,_0x3866d4){const _0x51ff21=_0x2948f2;scripts[_0x51ff21('0xcc')](_0x398926[_0x51ff21('0x13f')],_0x398926[_0x51ff21('0x19d')]||'en',0x1)['then'](function(_0xea1a43){_0x3866d4(null,_0xea1a43);})[_0x51ff21('0x114')](function(_0x371028){_0x3866d4(_0x371028);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x14a')]=function(_0x4bbb5d,_0x51e076){const _0x402753=_0x2948f2,_0x10f54b={'uri':_0x4bbb5d[_0x402753('0x18f')],'method':_0x4bbb5d[_0x402753('0x6c')],'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x4bbb5d['timeout'])==='number'&&parseInt(_0x4bbb5d[_0x402753('0x3f')])>=0x1?parseInt(_0x4bbb5d[_0x402753('0x3f')])*0x3e8:0x5*0x3e8};if(_[_0x402753('0xdd')](['POST',_0x402753('0x104')],_0x10f54b['method']['toUpperCase']()))try{_0x10f54b[_0x402753('0xd')]=_0x4bbb5d['rawBody']?JSON['parse'](_0x4bbb5d['rawBody']):{};}catch(_0x91a2c4){logger[_0x402753('0x76')](_0x402753('0x16d'),_0x91a2c4);}try{_0x10f54b[_0x402753('0x170')]=_0x4bbb5d[_0x402753('0xfa')]?JSON[_0x402753('0x80')](_0x4bbb5d['rawHeaders']):{};}catch(_0x3d46fb){logger['error'](_0x402753('0xb7'),_0x3d46fb);}if(_0x4bbb5d[_0x402753('0xb4')])try{const _0x3404d2=require(_0x4bbb5d[_0x402753('0xb4')])[_0x402753('0x2c')](this,_0x10f54b);_0x10f54b[_0x402753('0x1af')]=Mustache[_0x402753('0x32')](_0x4bbb5d[_0x402753('0x18f')],_0x3404d2,{},['$$','$$']),_0x10f54b[_0x402753('0x170')]&&(_0x10f54b[_0x402753('0x170')]=JSON[_0x402753('0x80')](Mustache[_0x402753('0x32')](JSON[_0x402753('0x50')](_0x10f54b[_0x402753('0x170')]),_0x3404d2,{},['$$','$$']))),_0x10f54b['body']&&(_0x10f54b[_0x402753('0xd')]=JSON[_0x402753('0x80')](Mustache[_0x402753('0x32')](JSON[_0x402753('0x50')](_0x10f54b[_0x402753('0xd')]),_0x3404d2,{},['$$','$$'])));}catch(_0x51d132){logger['error'](_0x402753('0x59'),_0x51d132);}rp(_0x10f54b)[_0x402753('0x15c')](function(_0x5830ea){const _0x5c03b8=_0x402753,_0x54ebb0={'statusCode':_0x5830ea[_0x5c03b8('0x109')]||0xc8,'statusMessage':_0x5830ea[_0x5c03b8('0x14c')]||'OK','headers':_0x5830ea['headers']||{},'body':_0x5830ea[_0x5c03b8('0xd')]||{}};_0x51e076(null,_0x54ebb0);})['catch'](function(_0x2ebfb9){const _0x433f89=_0x402753,_0xc1660c={'statusCode':_0x2ebfb9['statusCode']||0x1f4,'statusMessage':_0x2ebfb9[_0x433f89('0x1d0')]||_0x433f89('0x16c'),'headers':_0x2ebfb9[_0x433f89('0x6')][_0x433f89('0x170')]||{},'body':_0x2ebfb9[_0x433f89('0x6')][_0x433f89('0xd')]||{}};_0x51e076(null,_0xc1660c);});},AGIVertices['prototype'][_0x2948f2('0x9b')]=function(_0x2e1270,_0x2fb594){const _0xca9d04=_0x2948f2;scripts['googleDialogflow'](this['channel'][_0xca9d04('0x179')],_0x2e1270[_0xca9d04('0x11f')],_0x2e1270['text'],_0x2e1270[_0xca9d04('0x188')]||'en')[_0xca9d04('0x15c')](function(_0x493ac4){_0x2fb594(null,_0x493ac4);})[_0xca9d04('0x114')](function(_0xd3f1a2){_0x2fb594(_0xd3f1a2);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x56')]=function(_0x5e989d,_0x23689c){const _0x4d5e1e=_0x2948f2;scripts[_0x4d5e1e('0x56')](this[_0x4d5e1e('0x16f')][_0x4d5e1e('0x179')],_0x5e989d[_0x4d5e1e('0x168')],_0x5e989d[_0x4d5e1e('0x4c')],_0x5e989d[_0x4d5e1e('0xf7')],_0x5e989d[_0x4d5e1e('0x13f')],_0x5e989d['dialogflowV2_language']||'en')[_0x4d5e1e('0x15c')](function(_0x3552f0){_0x23689c(null,_0x3552f0);})[_0x4d5e1e('0x114')](function(_0xac95c){_0x23689c(_0xac95c);});},AGIVertices[_0x2948f2('0x1c0')]['sestekNDA']=function(_0x2105df,_0x55537c){const _0x462e58=_0x2948f2;scripts[_0x462e58('0xcf')](this[_0x462e58('0x16f')],_0x2105df)['then'](function(_0x2193c3){_0x55537c(null,_0x2193c3);})['catch'](function(_0x133084){_0x55537c(_0x133084);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x190')]=function(_0x1c3739,_0x178371){const _0x299902=_0x2948f2;scripts[_0x299902('0x190')](_0x1c3739['key'],_0x1c3739[_0x299902('0x13f')],_0x1c3739[_0x299902('0x15f')]||_0x299902('0xa8'),_0x1c3739[_0x299902('0x29')])[_0x299902('0x15c')](function(_0x278d59){_0x178371(null,_0x278d59);})[_0x299902('0x114')](function(_0x1dee1d){_0x178371(_0x1dee1d);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x127')]=function(_0x3ec4c2,_0x50b9c,_0x58faa){const _0x24948d=_0x2948f2;scripts[_0x24948d('0x127')](_0x50b9c,_0x3ec4c2[_0x24948d('0x11f')],_0x3ec4c2['ispeech_asr_language']||'en-US',this[_0x24948d('0x55')](_0x3ec4c2[_0x24948d('0x1ae')])?_0x3ec4c2['model']:undefined)['then'](function(_0x306771){_0x58faa(null,_0x306771);})[_0x24948d('0x114')](function(_0x1e6f2d){_0x58faa(_0x1e6f2d);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x4b')]=function(_0x4b3bf7,_0x1d8a0a){const _0xd3237c=_0x2948f2;scripts[_0xd3237c('0x4b')](_0x4b3bf7['aws_access_key_id'],_0x4b3bf7[_0xd3237c('0x70')],_0x4b3bf7['aws_polly_region'],_0x4b3bf7[_0xd3237c('0x187')]||_0xd3237c('0x10a'),_0x4b3bf7['text'],_0x4b3bf7[_0xd3237c('0xe9')]||_0xd3237c('0x13f'))['then'](function(_0x58a71d){_0x1d8a0a(null,_0x58a71d);})[_0xd3237c('0x114')](function(_0x52cf4b){_0x1d8a0a(_0x52cf4b);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x9c')]=function(_0x3de153,_0xe772e1){const _0x1a25de=_0x2948f2;scripts[_0x1a25de('0x9c')](this[_0x1a25de('0x16f')]['uniqueid'],_0x3de153[_0x1a25de('0x1a0')],_0x3de153[_0x1a25de('0x70')],_0x3de153[_0x1a25de('0x19f')],_0x3de153[_0x1a25de('0x13f')],_0x3de153[_0x1a25de('0x17c')])[_0x1a25de('0x15c')](function(_0x357601){_0xe772e1(null,_0x357601);})[_0x1a25de('0x114')](function(_0x4785e6){_0xe772e1(_0x4785e6);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x14')]=function(_0x328288,_0x233c2b,_0x281b33){const _0x11a297=_0x2948f2;scripts[_0x11a297('0x14')](_0x233c2b,_0x328288['key'],_0x328288[_0x11a297('0x68')]||'en-US')[_0x11a297('0x15c')](function(_0x500368){_0x281b33(null,_0x500368);})[_0x11a297('0x114')](function(_0x3a064d){_0x281b33(_0x3a064d);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x18')]=function(_0x42101e,_0xc00c,_0x19235f){const _0x1c5e59=_0x2948f2;scripts['tildeASR'](_0xc00c,_0x42101e[_0x1c5e59('0x67')],_0x42101e[_0x1c5e59('0xb6')],_0x42101e[_0x1c5e59('0x1af')])[_0x1c5e59('0x15c')](function(_0x5e9cbd){_0x19235f(null,_0x5e9cbd);})[_0x1c5e59('0x114')](function(_0x1cdcb8){_0x19235f(_0x1cdcb8);});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x155')]=function(_0x1725f0){const _0x5623c6=_0x2948f2,_0x323ea8=_[_0x5623c6('0xdd')](verticesWithRetry,_0x1725f0[_0x5623c6('0x101')])?_0x1725f0:_[_0x5623c6('0x73')](_0x1725f0);for(const _0x207f66 in _0x323ea8){typeof _0x323ea8[_0x207f66]!==_0x5623c6('0x106')&&(_0x323ea8[_0x207f66]&&_[_0x5623c6('0x3d')](_0x323ea8[_0x207f66])&&(_[_0x5623c6('0xdd')](recursiveMapAttributes,_0x207f66)?_0x323ea8[_0x207f66]=this[_0x5623c6('0x14f')](_0x323ea8[_0x207f66]):_0x323ea8[_0x207f66]=this['replaceAllVariables'](_0x323ea8[_0x207f66])));}return _0x323ea8;},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x2')]=function(_0x59d0aa){const _0x6daa2a=_0x2948f2;for(const _0x11afc0 in _0x59d0aa){if(typeof _0x59d0aa[_0x11afc0]!=='undefined'){if(_['isPlainObject'](_0x59d0aa[_0x11afc0]))this[_0x6daa2a('0x2')](_0x59d0aa[_0x11afc0]);else{if(_['isArray'](_0x59d0aa[_0x11afc0]))for(let _0x1c0daf=0x0;_0x1c0daf<_0x59d0aa[_0x11afc0]['length'];_0x1c0daf++){this[_0x6daa2a('0x2')](_0x59d0aa[_0x11afc0][_0x1c0daf]);}else _[_0x6daa2a('0x3d')](_0x59d0aa[_0x11afc0])&&(_0x59d0aa[_0x11afc0]=this[_0x6daa2a('0x89')](_0x59d0aa[_0x11afc0]));}}}},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x49')]=function(_0x741a91,_0x1c5603){const _0x512ac7=_0x2948f2;for(const _0x918004 in _0x741a91){if(typeof _0x741a91[_0x918004]!==_0x512ac7('0x106')){if(_[_0x512ac7('0x3e')](_0x741a91[_0x918004]))!_[_0x512ac7('0x118')](_0x741a91[_0x918004])&&this['saveRestApiResult'](_0x741a91[_0x918004],util[_0x512ac7('0x2a')]('%s.%s',_0x1c5603,_0x918004));else{if(_[_0x512ac7('0x11c')](_0x741a91[_0x918004]))for(let _0x2b105c=0x0;_0x2b105c<_0x741a91[_0x918004]['length'];_0x2b105c++){this['saveRestApiResult'](_0x741a91[_0x918004][_0x2b105c],util[_0x512ac7('0x2a')](_0x512ac7('0x66'),_0x1c5603,_0x918004+'['+_0x2b105c+']'));}else!_[_0x512ac7('0x115')](_0x741a91[_0x918004])&&this[_0x512ac7('0x16f')]['setVariable'](util[_0x512ac7('0x2a')](_0x512ac7('0x66'),_0x1c5603,_0x918004),_0x741a91[_0x918004]);}}}},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x14f')]=function(_0x2ee606){const _0x275c70=_0x2948f2;try{const _0x3eef9c=JSON[_0x275c70('0x80')](_0x2ee606);return this['recursiveNodeIndex'](_0x3eef9c),JSON[_0x275c70('0x50')](_0x3eef9c);}catch(_0x161ba4){return this[_0x275c70('0x89')](_0x2ee606);}},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x89')]=function(_0x4e0ad9){const _0x6e0aa8=_0x2948f2,_0x4ae814=_0x4e0ad9[_0x6e0aa8('0x195')]('{');for(let _0x55ff48=0x1;_0x55ff48<_0x4ae814[_0x6e0aa8('0x143')];_0x55ff48+=0x1){const _0xdd42d8=_0x4ae814[_0x55ff48][_0x6e0aa8('0x195')]('}');_0xdd42d8[_0x6e0aa8('0x143')]>0x1&&(_0x4e0ad9=_0x4e0ad9['replaceAll']('{'+_0xdd42d8[0x0]+'}',this[_0x6e0aa8('0x16f')][_0x6e0aa8('0x176')](_0xdd42d8[0x0])[_0x6e0aa8('0xb1')]||_0xdd42d8[0x0]));}if(_0x4ae814[_0x6e0aa8('0x143')]===0x1)return _0x4e0ad9[_0x6e0aa8('0x44')]();return this[_0x6e0aa8('0x89')](_0x4e0ad9);},AGIVertices['prototype'][_0x2948f2('0x1d1')]=function(_0xc4e8af,_0x5b2fab){const _0x26192d=_0x2948f2,_0x3e5cca=this[_0x26192d('0x16f')][_0x26192d('0x176')](_0xc4e8af);if(_0x3e5cca[_0x26192d('0x85')]===-0x1)return _0x3e5cca;return logger['info'](util[_0x26192d('0x2a')](_0x26192d('0x12'),_0x5b2fab,_0x3e5cca[_0x26192d('0xb1')])),this[_0x26192d('0x16f')][_0x26192d('0x82')](_0x5b2fab,_0x3e5cca[_0x26192d('0xb1')]);},AGIVertices[_0x2948f2('0x1c0')]['isConfigured']=function(_0x194da0){return _0x194da0&&_0x194da0!=='0'&&_0x194da0!=='-1'&&_0x194da0!=='';},AGIVertices[_0x2948f2('0x1c0')]['maxRetry']=function(_0x2178e4){const _0x1926f7=_0x2948f2;return this[_0x1926f7('0x177')][_0x1926f7('0x2c')](this,_0x2178e4,'-'),_0x2178e4[_0x1926f7('0x171')]=_0x2178e4[_0x1926f7('0x9a')],{'code':0xc8,'result':'-'};},AGIVertices['prototype'][_0x2948f2('0x141')]=function(_0x399acf){const _0x28c0fa=_0x2948f2;logger[_0x28c0fa('0x1cd')](util[_0x28c0fa('0x2a')](_0x28c0fa('0xaa'),_0x399acf['label']));if(!this['isConfigured'](_0x399acf['text']))return this[_0x28c0fa('0x16f')]['noop']('no\x20text\x20configured');let _0x41c84f='\x22'+_0x399acf[_0x28c0fa('0x13f')]+'\x22';this[_0x28c0fa('0x55')](_0x399acf[_0x28c0fa('0x6')])&&(_0x41c84f+=','+_0x399acf[_0x28c0fa('0x6')]);const _0x3888fb=this[_0x28c0fa('0x16f')][_0x28c0fa('0x117')](_0x28c0fa('0x112'),_0x41c84f);if(_0x3888fb[_0x28c0fa('0x85')]===-0x1)return _0x3888fb;return this[_0x28c0fa('0x16f')]['noop'](util[_0x28c0fa('0x2a')](_0x28c0fa('0x153'),_0x41c84f));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x10c')]=function(_0x1c37d1){const _0x851bf6=_0x2948f2;logger[_0x851bf6('0x1cd')](util[_0x851bf6('0x2a')]('Enter\x20in\x20MRCPRecog\x20(%s)\x20block',_0x1c37d1['label']));if(!this[_0x851bf6('0x55')](_0x1c37d1['grammar']))return this[_0x851bf6('0x16f')][_0x851bf6('0x184')](_0x851bf6('0x98'));let _0x31bbd6=_0x1c37d1[_0x851bf6('0x192')];this[_0x851bf6('0x55')](_0x1c37d1['options'])&&(_0x31bbd6+=','+_0x1c37d1[_0x851bf6('0x6')]);const _0x235c2a=this[_0x851bf6('0x16f')][_0x851bf6('0x117')]('MRCPRecog',_0x31bbd6);if(_0x235c2a[_0x851bf6('0x85')]===-0x1)return _0x235c2a;const _0x15fcbd=this[_0x851bf6('0x1d1')](_0x851bf6('0x1ba'),'MRCP_RECOG_CONFIDENCE');if(_0x15fcbd[_0x851bf6('0x85')]===-0x1)return _0x15fcbd;const _0x493517=this['getAndSetVariable']('RECOG_INPUT()',_0x851bf6('0x91'));if(_0x493517[_0x851bf6('0x85')]===-0x1)return _0x493517;const _0x405fbe=this['getAndSetVariable']('RECOG_INSTANCE()','MRCP_RECOG_INSTANCE');if(_0x405fbe[_0x851bf6('0x85')]===-0x1)return _0x405fbe;return this[_0x851bf6('0x16f')][_0x851bf6('0x184')](util['format'](_0x851bf6('0x30'),_0x31bbd6));},AGIVertices[_0x2948f2('0x1c0')]['agi']=function(_0x2423ea){const _0x2ab7a7=_0x2948f2;return logger[_0x2ab7a7('0x1cd')](util[_0x2ab7a7('0x2a')]('Enter\x20in\x20AGI\x20(%s)\x20block',_0x2423ea[_0x2ab7a7('0x38')])),this[_0x2ab7a7('0x16f')][_0x2ab7a7('0x1d3')]([_0x2423ea['command'],_0x2423ea[_0x2ab7a7('0xbf')]]);},AGIVertices[_0x2948f2('0x1c0')]['answer']=function(_0x39891c){const _0x4c09dc=_0x2948f2;logger['info'](util[_0x4c09dc('0x2a')](_0x4c09dc('0xae'),_0x39891c[_0x4c09dc('0x38')]));if(this[_0x4c09dc('0x55')](_0x39891c['timeout'])){logger[_0x4c09dc('0x1cd')](util[_0x4c09dc('0x2a')](_0x4c09dc('0x19e'),_0x39891c[_0x4c09dc('0x3f')]));const _0x2c2213=this[_0x4c09dc('0x16f')][_0x4c09dc('0x0')](_0x39891c['timeout']);if(_0x2c2213[_0x4c09dc('0x85')]===-0x1)return _0x2c2213;}return this[_0x4c09dc('0x16f')][_0x4c09dc('0x124')]();},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x198')]=function(_0x5bff36){const _0x466da5=_0x2948f2;logger[_0x466da5('0x1cd')](util[_0x466da5('0x2a')](_0x466da5('0x21'),_0x5bff36[_0x466da5('0x38')]));if(!this[_0x466da5('0x55')](_0x5bff36[_0x466da5('0x11e')]))return this[_0x466da5('0x16f')][_0x466da5('0x76')](_0x5bff36,'no\x20list\x20selected');return _0x5bff36['scheduledAt']=moment(),this[_0x466da5('0x55')](_0x5bff36['delay'])&&(_0x5bff36[_0x466da5('0x7b')]=moment()[_0x466da5('0xe2')](_0x5bff36[_0x466da5('0x12c')],_0x466da5('0x17f'))),!this[_0x466da5('0x55')](_0x5bff36['callback_priority'])&&(_0x5bff36['callback_priority']=0x2),this['createCmContact'][_0x466da5('0x2c')](this,_0x5bff36),this[_0x466da5('0x16f')]['noop'](util['format'](_0x466da5('0x18c'),_0x5bff36[_0x466da5('0xe5')],_0x5bff36[_0x466da5('0x11e')],_0x5bff36[_0x466da5('0x7b')]));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xde')]=function(_0x4f1cf6){const _0x4ac4e7=_0x2948f2;logger['info'](util[_0x4ac4e7('0x2a')](_0x4ac4e7('0x19b'),_0x4f1cf6[_0x4ac4e7('0x38')]));const _0x5457a0=this[_0x4ac4e7('0x16f')][_0x4ac4e7('0x117')](_0x4f1cf6[_0x4ac4e7('0x152')],_0x4f1cf6[_0x4ac4e7('0x6')]);if(_0x5457a0[_0x4ac4e7('0x85')]===-0x1)return _0x5457a0;return this[_0x4ac4e7('0x16f')][_0x4ac4e7('0x184')](util['format'](_0x4ac4e7('0x37'),_0x4f1cf6[_0x4ac4e7('0x152')],_0x4f1cf6['options']));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x1ab')]=function(_0x2ec200){const _0x4513ac=_0x2948f2;logger['info'](util[_0x4513ac('0x2a')](_0x4513ac('0x8e'),_0x2ec200[_0x4513ac('0x38')]));if(!this[_0x4513ac('0x55')](_0x2ec200['text']))return this[_0x4513ac('0x16f')][_0x4513ac('0x184')](_0x4513ac('0x4d'));let _0x13eeb6='\x22'+_0x2ec200['text']+'\x22';this['isConfigured'](_0x2ec200[_0x4513ac('0x6')])&&(_0x13eeb6+=','+_0x2ec200['options']);const _0x286ece=this[_0x4513ac('0x16f')]['exec'](_0x4513ac('0x112'),_0x13eeb6);if(_0x286ece[_0x4513ac('0x85')]===-0x1)return _0x286ece;return this[_0x4513ac('0x16f')][_0x4513ac('0x184')](util[_0x4513ac('0x2a')]('Executed\x20command\x20MRCPSynth\x20%s',_0x13eeb6));},AGIVertices['prototype'][_0x2948f2('0x102')]=function(_0x3e9c49){const _0xf25a7d=_0x2948f2;logger[_0xf25a7d('0x1cd')](util[_0xf25a7d('0x2a')](_0xf25a7d('0xe'),_0x3e9c49[_0xf25a7d('0x38')]));if(!this[_0xf25a7d('0x55')](_0x3e9c49['text']))return this['channel'][_0xf25a7d('0x184')](_0xf25a7d('0x4d'));let _0x36ade5='\x22'+_0x3e9c49[_0xf25a7d('0x13f')]+'\x22';this[_0xf25a7d('0x55')](_0x3e9c49[_0xf25a7d('0x6')])&&(_0x36ade5+=','+_0x3e9c49[_0xf25a7d('0x6')]);const _0x3cfce3=this[_0xf25a7d('0x16f')][_0xf25a7d('0x117')](_0xf25a7d('0x112'),_0x36ade5);if(_0x3cfce3['result']===-0x1)return _0x3cfce3;return this[_0xf25a7d('0x16f')][_0xf25a7d('0x184')](util[_0xf25a7d('0x2a')](_0xf25a7d('0x153'),_0x36ade5));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xf5')]=function(_0x2f3e19){const _0x6756f0=_0x2948f2;logger['info'](util['format'](_0x6756f0('0xf9'),_0x2f3e19[_0x6756f0('0x38')]));if(!this[_0x6756f0('0x55')](_0x2f3e19[_0x6756f0('0x192')]))return this[_0x6756f0('0x16f')][_0x6756f0('0x184')](_0x6756f0('0x98'));let _0x19db42=_0x2f3e19['grammar'];this[_0x6756f0('0x55')](_0x2f3e19['options'])&&(_0x19db42+=','+_0x2f3e19['options']);const _0x223a33=this['channel'][_0x6756f0('0x117')]('MRCPRecog',_0x19db42);if(_0x223a33[_0x6756f0('0x85')]===-0x1)return _0x223a33;const _0x293f25=this[_0x6756f0('0x1d1')](_0x6756f0('0x1ba'),_0x6756f0('0xd9'));if(_0x293f25[_0x6756f0('0x85')]===-0x1)return _0x293f25;const _0x4922ac=this[_0x6756f0('0x1d1')](_0x6756f0('0x7e'),_0x6756f0('0xd7'));if(_0x4922ac['result']===-0x1)return _0x4922ac;const _0x525f40=this[_0x6756f0('0x1d1')](_0x6756f0('0x1cc'),'LUMENVOX_ASR_INSTANCE');if(_0x525f40[_0x6756f0('0x85')]===-0x1)return _0x525f40;return this[_0x6756f0('0x16f')][_0x6756f0('0x184')](util[_0x6756f0('0x2a')](_0x6756f0('0x30'),_0x19db42));},AGIVertices[_0x2948f2('0x1c0')]['sestekasr']=function(_0x55f8c7){const _0x35454b=_0x2948f2;logger['info'](util[_0x35454b('0x2a')](_0x35454b('0x34'),_0x55f8c7[_0x35454b('0x38')]));if(!this[_0x35454b('0x55')](_0x55f8c7[_0x35454b('0x192')]))return this[_0x35454b('0x16f')][_0x35454b('0x184')](_0x35454b('0x98'));let _0x140301=_0x55f8c7[_0x35454b('0x192')];this[_0x35454b('0x55')](_0x55f8c7['options'])&&(_0x140301+=','+_0x55f8c7['options']);const _0x127454=this['channel']['exec'](_0x35454b('0xf4'),_0x140301);if(_0x127454[_0x35454b('0x85')]===-0x1)return _0x127454;const _0x376378=this['getAndSetVariable'](_0x35454b('0x1ba'),_0x35454b('0x15b'));if(_0x376378[_0x35454b('0x85')]===-0x1)return _0x376378;const _0x11c93a=this[_0x35454b('0x1d1')]('RECOG_INPUT()',_0x35454b('0x45'));if(_0x11c93a[_0x35454b('0x85')]===-0x1)return _0x11c93a;const _0x46bbf8=this[_0x35454b('0x1d1')](_0x35454b('0x1cc'),'SESTEK_ASR_INSTANCE');if(_0x46bbf8[_0x35454b('0x85')]===-0x1)return _0x46bbf8;return this[_0x35454b('0x16f')][_0x35454b('0x184')](util[_0x35454b('0x2a')](_0x35454b('0x30'),_0x140301));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x113')]=function(_0x1569fd){const _0x7191fd=_0x2948f2;logger[_0x7191fd('0x1cd')](util[_0x7191fd('0x2a')](_0x7191fd('0x1b0'),_0x1569fd['label']));if(!this[_0x7191fd('0x55')](_0x1569fd['odbc_id']))return this[_0x7191fd('0x16f')][_0x7191fd('0x76')](_0x1569fd,_0x7191fd('0xcb'));const _0x1eda62=this[_0x7191fd('0xd3')]['sync'](this,_0x1569fd['odbc_id']);if(!_0x1eda62)return this[_0x7191fd('0x16f')]['error'](_0x1569fd,_0x7191fd('0x10d'));if(!this['isConfigured'](_0x1569fd[_0x7191fd('0xb2')]))return this[_0x7191fd('0x16f')][_0x7191fd('0x76')](_0x1569fd,'no\x20query\x20configured');const _0xdf3044=_0x1569fd['query'][_0x7191fd('0x2d')](/(\r\n|\n|\r)/gm,'\x20');this[_0x7191fd('0x16f')][_0x7191fd('0x184')](util[_0x7191fd('0x2a')](_0x7191fd('0x48'),_0xdf3044));const _0x1bffdc=this['getQueryOdbc'][_0x7191fd('0x2c')](this,_0x1eda62,_0xdf3044);this[_0x7191fd('0x177')][_0x7191fd('0x2c')](this,_0x1569fd,_0xdf3044);if(!this[_0x7191fd('0x55')](_0x1569fd[_0x7191fd('0xfc')]))return this[_0x7191fd('0x16f')][_0x7191fd('0x184')](_0x7191fd('0x17b'));const _0x124d7b=this[_0x7191fd('0x176')][_0x7191fd('0x2c')](this,_0x1569fd[_0x7191fd('0xfc')]);if(!_0x124d7b)return this[_0x7191fd('0x16f')]['error'](_0x1569fd,_0x7191fd('0x17a'));const _0x1e04d0=this;return _0x1bffdc['forEach'](function(_0x12a6ca,_0x278c1b){const _0x143486=_0x7191fd;Object[_0x143486('0x119')](_0x12a6ca)[_0x143486('0x92')](function(_0x210a00){const _0x2e45bf=_0x143486;_0x1e04d0[_0x2e45bf('0x16f')]['setVariable'](util[_0x2e45bf('0x2a')]('%s[%s][%s]',_0x124d7b,_0x278c1b,_0x210a00),_0x12a6ca[_0x210a00]);});}),this[_0x7191fd('0x16f')]['setVariable'](util[_0x7191fd('0x2a')](_0x7191fd('0x10e'),_0x124d7b),_0x1bffdc[_0x7191fd('0x143')]),this[_0x7191fd('0x16f')][_0x7191fd('0x184')](util[_0x7191fd('0x2a')](_0x7191fd('0x151'),_0x124d7b));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x97')]=function(_0x2695c2){const _0x37be91=_0x2948f2;logger[_0x37be91('0x13b')](util[_0x37be91('0x2a')](_0x37be91('0x7'),_0x2695c2[_0x37be91('0x38')]));if(!this[_0x37be91('0x55')](_0x2695c2[_0x37be91('0x169')]))return this[_0x37be91('0x16f')]['error'](_0x2695c2,_0x37be91('0xe7'));const _0x4beda0=this[_0x37be91('0x181')][_0x37be91('0x2c')](this,_0x2695c2['sip_id']);if(!_0x4beda0)return this['channel']['error'](_0x2695c2,_0x37be91('0x142'));const _0x10fa92=this[_0x37be91('0x16f')]['exec'](_0x37be91('0xc0'),[util[_0x37be91('0x2a')](_0x37be91('0x1bb'),_0x4beda0),_0x2695c2[_0x37be91('0x3f')],_0x2695c2[_0x37be91('0x1c5')],_0x2695c2['url']]);if(_0x10fa92['result']===-0x1)return _0x10fa92;return this[_0x37be91('0x16f')][_0x37be91('0x184')](util[_0x37be91('0x2a')](_0x37be91('0x64'),_0x37be91('0xc0')));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x46')]=function(_0x3d75ca){const _0x22465b=_0x2948f2;logger['info'](util[_0x22465b('0x2a')](_0x22465b('0x164'),_0x3d75ca['label']));if(!this[_0x22465b('0x55')](_0x3d75ca[_0x22465b('0x11f')]))return this['channel'][_0x22465b('0x184')]('no\x20key\x20configured');if(!this[_0x22465b('0x55')](_0x3d75ca[_0x22465b('0x13f')]))return this[_0x22465b('0x16f')][_0x22465b('0x184')](_0x22465b('0x4d'));this[_0x22465b('0x16f')]['bot']=!![],this['createSquareDetailsReport'](_0x3d75ca),this['createSquareMessage'](_0x3d75ca[_0x22465b('0x13f')],'in','',''),this['channel']['noop'](util[_0x22465b('0x2a')]('Trying\x20Dialogflow:\x20%s',_0x3d75ca['text']));const _0x4ef7ff=this['googleDialogflow'][_0x22465b('0x2c')](this,_0x3d75ca);if(_0x4ef7ff){for(const _0x2da476 in _0x4ef7ff){typeof _0x4ef7ff[_0x2da476]!==_0x22465b('0x106')&&this[_0x22465b('0x16f')][_0x22465b('0x82')](util['format']('DIALOGFLOW_%s',_0x2da476[_0x22465b('0x8d')]()),_0x4ef7ff[_0x2da476]);}return this[_0x22465b('0x35')](_0x4ef7ff[_0x22465b('0xcd')],_0x22465b('0xc2'),_0x22465b('0x46'),''),this[_0x22465b('0x16f')][_0x22465b('0x184')](util[_0x22465b('0x2a')]('Dialogflow\x20Result\x20%s',_0x4ef7ff[_0x22465b('0xcd')]));}return this[_0x22465b('0x16f')][_0x22465b('0x76')](_0x3d75ca,_0x22465b('0x8f'));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x128')]=function(_0x51bf38){const _0x1d0894=_0x2948f2;logger[_0x1d0894('0x1cd')](util[_0x1d0894('0x2a')](_0x1d0894('0x7d'),_0x51bf38[_0x1d0894('0x38')]));if(!this['isConfigured'](_0x51bf38[_0x1d0894('0x168')]))return this[_0x1d0894('0x16f')][_0x1d0894('0x184')](_0x1d0894('0x1a9'));if(!this[_0x1d0894('0x55')](_0x51bf38[_0x1d0894('0x4c')]))return this[_0x1d0894('0x16f')]['noop'](_0x1d0894('0xe4'));if(!this['isConfigured'](_0x51bf38[_0x1d0894('0xf7')]))return this[_0x1d0894('0x16f')]['noop'](_0x1d0894('0xbc'));if(!this[_0x1d0894('0x55')](_0x51bf38['dialogflowV2_language']))return this[_0x1d0894('0x16f')][_0x1d0894('0x184')]('no\x20anguage\x20configured');if(!this[_0x1d0894('0x55')](_0x51bf38[_0x1d0894('0x13f')]))return this['channel'][_0x1d0894('0x184')]('no\x20text\x20configured');this[_0x1d0894('0x16f')][_0x1d0894('0x1bd')]=!![],this[_0x1d0894('0x177')](_0x51bf38),this[_0x1d0894('0x35')](_0x51bf38['text'],'in','',''),this[_0x1d0894('0x16f')][_0x1d0894('0x184')](util[_0x1d0894('0x2a')](_0x1d0894('0xeb'),_0x51bf38[_0x1d0894('0x13f')]));const _0x1ff093=this[_0x1d0894('0x56')]['sync'](this,_0x51bf38);if(_0x1ff093){for(const _0x19ade8 in _0x1ff093){typeof _0x1ff093[_0x19ade8]!==_0x1d0894('0x106')&&(_0x19ade8!==_0x1d0894('0x65')&&this[_0x1d0894('0x16f')]['setVariable'](util['format']('DIALOGFLOW_%s',_0x19ade8[_0x1d0894('0x8d')]()),_0x1ff093[_0x19ade8]));}return this['createSquareMessage'](_0x1ff093[_0x1d0894('0xcd')],_0x1d0894('0xc2'),_0x1d0894('0x128'),_0x1ff093['providerResponse']),this['channel'][_0x1d0894('0x184')](util[_0x1d0894('0x2a')](_0x1d0894('0xfe'),_0x1ff093['speech']));}return this[_0x1d0894('0x16f')]['error'](_0x51bf38,_0x1d0894('0x10'));},AGIVertices['prototype'][_0x2948f2('0x1a6')]=function(_0x2450a4){const _0x25e471=_0x2948f2;logger[_0x25e471('0x1cd')](util[_0x25e471('0x2a')](_0x25e471('0x1b6'),_0x2450a4[_0x25e471('0x38')]));if(!this[_0x25e471('0x55')](_0x2450a4[_0x25e471('0xf8')]))return this['channel']['noop']('no\x20ndauth\x20url\x20configured');if(!this[_0x25e471('0x55')](_0x2450a4[_0x25e471('0x69')]))return this[_0x25e471('0x16f')][_0x25e471('0x184')]('no\x20username\x20configured');if(!this[_0x25e471('0x55')](_0x2450a4[_0x25e471('0x17e')]))return this[_0x25e471('0x16f')][_0x25e471('0x184')](_0x25e471('0x6b'));if(!this[_0x25e471('0x55')](_0x2450a4[_0x25e471('0x27')]))return this[_0x25e471('0x16f')][_0x25e471('0x184')](_0x25e471('0x4d'));this[_0x25e471('0x16f')]['bot']=!![],this[_0x25e471('0x177')](_0x2450a4),this[_0x25e471('0x35')](_0x2450a4[_0x25e471('0x13f')],'in','',''),this['channel'][_0x25e471('0x184')](util['format'](_0x25e471('0xd1'),_0x2450a4[_0x25e471('0x13f')]));const _0x2aff81=this[_0x25e471('0xcf')][_0x25e471('0x2c')](this,_0x2450a4);if(_0x2aff81){for(const _0x17073f in _0x2aff81){typeof _0x2aff81[_0x17073f]!==_0x25e471('0x106')&&this[_0x25e471('0x16f')][_0x25e471('0x82')](util[_0x25e471('0x2a')]('SESTEK_NDA_%s',_0x17073f[_0x25e471('0x8d')]()),_0x2aff81[_0x17073f]);}this[_0x25e471('0x35')](_0x2aff81[_0x25e471('0xcd')],_0x25e471('0xc2'),_0x25e471('0x1a6'),'');if(_0x2aff81[_0x25e471('0x165')]){this[_0x25e471('0x16f')][_0x25e471('0x184')](util[_0x25e471('0x2a')](_0x25e471('0xe3'),_0x2aff81[_0x25e471('0x165')]));const _0x179126=this[_0x25e471('0x16f')][_0x25e471('0x1a1')](_0x2aff81[_0x25e471('0x165')]);try{fs['unlink'](_0x2aff81[_0x25e471('0x165')]+'.wav');}catch(_0x388924){logger[_0x25e471('0x76')](_0x388924);}return _0x179126;}else return this[_0x25e471('0x16f')]['noop'](util[_0x25e471('0x2a')](_0x25e471('0xee'),_0x2aff81[_0x25e471('0xcd')]));}return this[_0x25e471('0x16f')][_0x25e471('0x76')](_0x2450a4,_0x25e471('0xc9'));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xe0')]=function(_0x4fe5eb){const _0x259cb5=_0x2948f2;return logger[_0x259cb5('0x1cd')](util[_0x259cb5('0x2a')](_0x259cb5('0x138'),_0x4fe5eb[_0x259cb5('0x38')])),this[_0x259cb5('0x16f')][_0x259cb5('0x184')](_0x259cb5('0xe0'));},AGIVertices['prototype'][_0x2948f2('0xed')]=function(_0xa7566){const _0x4bc84b=_0x2948f2;logger[_0x4bc84b('0x1cd')](util[_0x4bc84b('0x2a')]('Enter\x20in\x20EXTERNAL\x20DIAL\x20(%s)\x20block',_0xa7566['label']));let _0x43a5ae='';if(_0xa7566[_0x4bc84b('0x40')]){if(!this[_0x4bc84b('0x55')](_0xa7566[_0x4bc84b('0x40')]))return this[_0x4bc84b('0x16f')][_0x4bc84b('0x76')](_0xa7566,_0x4bc84b('0x10f'));else{const _0x462472=parseInt(_0xa7566['trunk_id'],0xa);if(isNaN(_0x462472))_0x43a5ae=_0xa7566[_0x4bc84b('0x40')];else{_0x43a5ae=this[_0x4bc84b('0xca')][_0x4bc84b('0x2c')](this,_0xa7566[_0x4bc84b('0x40')]);if(!_0x43a5ae)return this[_0x4bc84b('0x16f')][_0x4bc84b('0x76')](_0xa7566,_0x4bc84b('0x100'));}}}else{if(_0xa7566[_0x4bc84b('0x1b5')])_0x43a5ae=_0xa7566[_0x4bc84b('0x1b5')];else return this[_0x4bc84b('0x16f')][_0x4bc84b('0x76')](_0xa7566,_0x4bc84b('0x10f'));}const _0x25889b=this[_0x4bc84b('0x16f')][_0x4bc84b('0x117')]('DIAL',[util[_0x4bc84b('0x2a')](_0x4bc84b('0x191'),_0x43a5ae,_0xa7566[_0x4bc84b('0xe5')]),_0xa7566[_0x4bc84b('0x3f')],_0xa7566[_0x4bc84b('0x1c5')],_0xa7566['url']]);if(_0x25889b['result']===-0x1)return _0x25889b;return this[_0x4bc84b('0x16f')][_0x4bc84b('0x184')](util['format']('Executed\x20command\x20%s',_0x4bc84b('0xc0')));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x147')]=function(_0x48245a){const _0x4e5709=_0x2948f2;return logger[_0x4e5709('0x1cd')](util[_0x4e5709('0x2a')]('Enter\x20in\x20FINALLY\x20(%s)\x20block',_0x48245a['label'])),this[_0x4e5709('0x16f')][_0x4e5709('0x184')]('finally');},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x18a')]=function(_0x4654f0){const _0x255341=_0x2948f2;logger['info'](util[_0x255341('0x2a')]('Enter\x20in\x20GETDIGITS\x20(%s)\x20block',_0x4654f0['label']));if(_0x4654f0[_0x255341('0x171')]===0x0)return this[_0x255341('0x9a')](_0x4654f0);_0x4654f0['retry']-=0x1;if(!this[_0x255341('0x55')](_0x4654f0[_0x255341('0xa')]))return this[_0x255341('0x16f')]['error'](_0x4654f0,_0x255341('0x1bf'));const _0x2af6e4=this[_0x255341('0xc1')][_0x255341('0x2c')](this,_0x4654f0[_0x255341('0xa')]);if(!_0x2af6e4)return this[_0x255341('0x16f')]['error'](_0x4654f0,'no\x20file\x20audio\x20found');if(!this[_0x255341('0x55')](_0x4654f0[_0x255341('0xfc')]))return this[_0x255341('0x16f')][_0x255341('0x76')](_0x255341('0x17b'));const _0x3dd831=this[_0x255341('0x16f')]['getData'](_0x2af6e4,_0x4654f0['response'],_0x4654f0['maxdigit']),_0x594240=_0x3dd831[_0x255341('0x85')]?_0x3dd831[_0x255341('0x85')][_0x255341('0x44')]():'';logger[_0x255341('0x1cd')](_0x255341('0x178'),JSON['stringify'](_0x3dd831));if(_0x3dd831[_0x255341('0x85')]===-0x1)return this['createSquareDetailsReport'][_0x255341('0x2c')](this,_0x4654f0,_0x594240),_0x3dd831;else _0x3dd831[_0x255341('0xb1')]===_0x255341('0x3f')?_0x3dd831['result']=_0x594240[_0x255341('0x143')]>=parseInt(_0x4654f0[_0x255341('0x145')])?'x':'i':_0x3dd831[_0x255341('0x85')]=_0x594240[_0x255341('0x143')]>=parseInt(_0x4654f0[_0x255341('0x145')])&&_0x594240['length']<=parseInt(_0x4654f0[_0x255341('0x189')])?'x':'i';const _0x13d713=this[_0x255341('0x176')][_0x255341('0x2c')](this,_0x4654f0[_0x255341('0xfc')]);if(!_0x13d713)return this[_0x255341('0x16f')][_0x255341('0x76')](_0x4654f0,_0x255341('0x17a'));this['channel'][_0x255341('0x82')](_0x13d713,_0x594240);if(this[_0x255341('0x55')](_0x4654f0['hiddendigitsnum'])){const _0x2e6882=parseInt(_0x4654f0[_0x255341('0x71')],0xa),_0x28cc4b=rs['generate']({'charset':'*','length':_0x2e6882}),_0x472a1a=_0x594240[_0x255341('0x143')];_0x472a1a>0x0?_0x472a1a>_0x2e6882?this['createSquareDetailsReport']['sync'](this,_0x4654f0,_0x4654f0[_0x255341('0x193')]==='first'?_0x28cc4b+_0x594240['substr'](_0x2e6882):_0x594240[_0x255341('0x107')](0x0,_0x472a1a-_0x2e6882)+_0x28cc4b):this['createSquareDetailsReport']['sync'](this,_0x4654f0,rs[_0x255341('0x1c')]({'charset':'*','length':_0x472a1a})):this[_0x255341('0x177')][_0x255341('0x2c')](this,_0x4654f0,'');}else this[_0x255341('0x177')][_0x255341('0x2c')](this,_0x4654f0,_0x594240);return _0x3dd831;},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x13d')]=function(_0x53c13a){const _0x561a1d=_0x2948f2;return logger['info'](util[_0x561a1d('0x2a')](_0x561a1d('0x62'),_0x53c13a[_0x561a1d('0x38')])),this[_0x561a1d('0x18a')](_0x53c13a);},AGIVertices['prototype'][_0x2948f2('0x140')]=function(_0xa42a4a){const _0x5b75ad=_0x2948f2;return logger['info'](util[_0x5b75ad('0x2a')](_0x5b75ad('0xf0'),_0xa42a4a[_0x5b75ad('0x38')])),this['createSquareDetailsReport'][_0x5b75ad('0x2c')](this,_0xa42a4a,_0xa42a4a['goalname']),this[_0x5b75ad('0x16f')][_0x5b75ad('0x184')](util['format'](_0x5b75ad('0x186'),_0xa42a4a[_0x5b75ad('0x11')]));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x17')]=function(_0x1594cd){const _0x31a619=_0x2948f2;logger['info'](util['format'](_0x31a619('0x175'),_0x1594cd[_0x31a619('0x38')]));if(!this[_0x31a619('0x55')](_0x1594cd[_0x31a619('0x1a0')])||!this['isConfigured'](_0x1594cd['aws_secret_access_key']))return this['channel']['noop'](_0x31a619('0x6d'));if(!this[_0x31a619('0x55')](_0x1594cd[_0x31a619('0x13f')]))return this[_0x31a619('0x16f')][_0x31a619('0x184')](_0x31a619('0x4d'));this[_0x31a619('0x16f')][_0x31a619('0x184')](util['format'](_0x31a619('0x1a7'),_0x1594cd['text']));const _0xd0ff4=this[_0x31a619('0x4b')][_0x31a619('0x2c')](this,_0x1594cd);if(_0xd0ff4){this[_0x31a619('0x16f')][_0x31a619('0x184')](util['format'](_0x31a619('0x3'),_0xd0ff4));const _0x1386ef=this[_0x31a619('0x16f')][_0x31a619('0x1a1')](_0xd0ff4);try{fs[_0x31a619('0x1b2')](_0xd0ff4+_0x31a619('0xfd'));}catch(_0x49d12d){logger[_0x31a619('0x76')](_0x49d12d);}return _0x1386ef;}return this[_0x31a619('0x16f')]['error'](_0x1594cd,'aws\x20Polly\x20is\x20unreachable');},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x60')]=function(_0x39749d){const _0xd5230d=_0x2948f2;logger[_0xd5230d('0x1cd')](util[_0xd5230d('0x2a')]('Enter\x20in\x20Amazon\x20Lex\x20(%s)\x20block',_0x39749d['label']));if(!this[_0xd5230d('0x55')](_0x39749d[_0xd5230d('0x1a0')])||!this[_0xd5230d('0x55')](_0x39749d[_0xd5230d('0x70')]))return this['channel'][_0xd5230d('0x184')](_0xd5230d('0x6d'));if(!this[_0xd5230d('0x55')](_0x39749d[_0xd5230d('0x17c')]))return this[_0xd5230d('0x16f')][_0xd5230d('0x184')](_0xd5230d('0x39'));if(!this[_0xd5230d('0x55')](_0x39749d[_0xd5230d('0x13f')]))return this[_0xd5230d('0x16f')][_0xd5230d('0x184')](_0xd5230d('0x4d'));this['channel'][_0xd5230d('0x1bd')]=!![],this[_0xd5230d('0x177')](_0x39749d),this[_0xd5230d('0x35')](_0x39749d[_0xd5230d('0x13f')],'in','',''),this['channel'][_0xd5230d('0x184')](util['format'](_0xd5230d('0x11a'),_0x39749d[_0xd5230d('0x13f')]));const _0x574796=this[_0xd5230d('0x9c')][_0xd5230d('0x2c')](this,_0x39749d);if(_0x574796){for(const _0x507df2 in _0x574796){typeof _0x574796[_0x507df2]!==_0xd5230d('0x106')&&_[_0xd5230d('0x3d')](_0x574796[_0x507df2])&&this[_0xd5230d('0x16f')]['setVariable'](util[_0xd5230d('0x2a')](_0xd5230d('0x3a'),_0x507df2[_0xd5230d('0x8d')]()),_0x574796[_0x507df2]);}return _['isNil'](_0x574796[_0xd5230d('0x1d0')])?this[_0xd5230d('0x16f')][_0xd5230d('0x184')]('Amazon\x20Lex\x20ready\x20for\x20fulfillment'):(this[_0xd5230d('0x35')](_0x574796[_0xd5230d('0x1d0')],'out',_0xd5230d('0x1ca'),''),this[_0xd5230d('0x16f')][_0xd5230d('0x184')](util['format'](_0xd5230d('0x43'),_0x574796[_0xd5230d('0x1d0')])));}return this['channel'][_0xd5230d('0x76')](_0x39749d,_0xd5230d('0x197'));},AGIVertices['prototype'][_0x2948f2('0x90')]=function(_0x1abb0e){const _0x1c7e39=_0x2948f2;logger['info'](util[_0x1c7e39('0x2a')](_0x1c7e39('0x12a'),_0x1abb0e[_0x1c7e39('0x38')],_0x1abb0e[_0x1c7e39('0x3f')]));if(!this['isConfigured'](_0x1abb0e[_0x1c7e39('0x11f')]))return this[_0x1c7e39('0x16f')][_0x1c7e39('0x184')](_0x1c7e39('0x1c4'));const _0x412bc1=_0x1c7e39('0x25'),_0x30069c=util[_0x1c7e39('0x2a')](_0x1c7e39('0x93'),FILES_PATH,rs['generate'](0x4)),_0x2bd2ee=util[_0x1c7e39('0x2a')](_0x1c7e39('0x66'),_0x30069c,_0x412bc1);let _0x1a4bb5=!![];_0x1abb0e['beep']==='NOBEEP'&&(_0x1a4bb5=![]);const _0x52e521=this[_0x1c7e39('0x16f')]['recordFile'](_0x30069c,_0x412bc1,_0x1abb0e[_0x1c7e39('0xa6')],_0x1abb0e[_0x1c7e39('0x3f')],undefined,_0x1a4bb5);if(_0x52e521[_0x1c7e39('0x85')]!==-0x1){this[_0x1c7e39('0x16f')][_0x1c7e39('0x184')](util[_0x1c7e39('0x2a')](_0x1c7e39('0x51'),_0x2bd2ee));const _0x5ec683=this[_0x1c7e39('0x14')]['sync'](this,_0x1abb0e,_0x2bd2ee);if(_0x5ec683){for(const _0x52a577 in _0x5ec683){typeof _0x5ec683[_0x52a577]!=='undefined'&&this[_0x1c7e39('0x16f')][_0x1c7e39('0x82')](util[_0x1c7e39('0x2a')](_0x1c7e39('0x111'),_0x52a577['toUpperCase']()),_0x5ec683[_0x52a577]);}return this['channel']['noop'](util[_0x1c7e39('0x2a')](_0x1c7e39('0xa2'),JSON[_0x1c7e39('0x50')](_0x5ec683)));}}return _0x52e521;},AGIVertices[_0x2948f2('0x1c0')]['tildeasr']=function(_0x324ddc){const _0x56e036=_0x2948f2;logger[_0x56e036('0x1cd')](util[_0x56e036('0x2a')](_0x56e036('0x33'),_0x324ddc[_0x56e036('0x38')]));if(!this['isConfigured'](_0x324ddc['appid']))return this['channel']['noop'](_0x56e036('0xb'));if(!this[_0x56e036('0x55')](_0x324ddc['appsecret']))return this[_0x56e036('0x16f')][_0x56e036('0x184')](_0x56e036('0x42'));const _0x577a9c=_0x56e036('0x25'),_0x2c05a2=util['format'](_0x56e036('0x93'),FILES_PATH,rs[_0x56e036('0x1c')](0x4)),_0x50cb1d=util[_0x56e036('0x2a')](_0x56e036('0x66'),_0x2c05a2,_0x577a9c);let _0x33d73a=!![];_0x324ddc['beep']==='NOBEEP'&&(_0x33d73a=![]);const _0xf3c2a7=this['channel'][_0x56e036('0xab')](_0x2c05a2,_0x577a9c,_0x324ddc[_0x56e036('0xa6')],_0x324ddc[_0x56e036('0x3f')],undefined,_0x33d73a);if(_0xf3c2a7[_0x56e036('0x85')]!==-0x1){this[_0x56e036('0x16f')][_0x56e036('0x184')](util[_0x56e036('0x2a')](_0x56e036('0x13e'),_0x50cb1d));const _0x1ce8e3=this['tildeASR'][_0x56e036('0x2c')](this,_0x324ddc,_0x50cb1d);if(_0x1ce8e3){for(const _0x1e3130 in _0x1ce8e3){typeof _0x1ce8e3[_0x1e3130]!==_0x56e036('0x106')&&this[_0x56e036('0x16f')][_0x56e036('0x82')](util[_0x56e036('0x2a')](_0x56e036('0x199'),_0x1e3130['toUpperCase']()),_0x1ce8e3[_0x1e3130]);}return this[_0x56e036('0x16f')]['noop'](util[_0x56e036('0x2a')](_0x56e036('0xad'),JSON[_0x56e036('0x50')](_0x1ce8e3)));}}return _0xf3c2a7;},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x156')]=function(_0x322553){const _0x4c9422=_0x2948f2;return logger[_0x4c9422('0x1cd')](util[_0x4c9422('0x2a')](_0x4c9422('0x19'),_0x322553[_0x4c9422('0x38')])),this[_0x4c9422('0x16f')][_0x4c9422('0x1b9')](_0x322553['context'],_0x322553[_0x4c9422('0x136')],_0x322553[_0x4c9422('0x15d')]);},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xe1')]=function(_0x19f191){const _0x9d54b6=_0x2948f2;logger[_0x9d54b6('0x1cd')](util['format']('Enter\x20in\x20GOTOIF\x20(%s)\x20block',_0x19f191[_0x9d54b6('0x38')]));if(!this[_0x9d54b6('0x55')](_0x19f191[_0x9d54b6('0x7a')]))return this[_0x9d54b6('0x16f')][_0x9d54b6('0x76')](_0x19f191,_0x9d54b6('0x1b8'));try{const _0x5285b1=eval(_0x19f191[_0x9d54b6('0x7a')])?_0x9d54b6('0x19c'):_0x9d54b6('0x159');return this[_0x9d54b6('0x16f')][_0x9d54b6('0x184')](util[_0x9d54b6('0x2a')]('EVAL\x20CONDITION\x20%s\x20%s',_0x19f191[_0x9d54b6('0x7a')],_0x5285b1)),{'code':0xc8,'result':_0x5285b1};}catch(_0x520857){return{'code':0xc8,'result':_0x9d54b6('0x159')};}},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xc4')]=function(_0x40d44a){const _0x44db81=_0x2948f2;logger['info'](util[_0x44db81('0x2a')](_0x44db81('0x57'),_0x40d44a[_0x44db81('0x38')]));if(!this[_0x44db81('0x55')](_0x40d44a[_0x44db81('0x74')]))return this['channel'][_0x44db81('0x76')](_0x40d44a,'no\x20interval\x20configured');const _0x16b81b=this['getIntervals'][_0x44db81('0x2c')](this,_0x40d44a[_0x44db81('0x74')]);if(!_0x16b81b)return this['channel']['error'](_0x40d44a,_0x44db81('0x196'));for(let _0x264c73=0x0;_0x264c73<_0x16b81b[_0x44db81('0x143')];_0x264c73+=0x1){const _0x51041d=this[_0x44db81('0x16f')][_0x44db81('0x176')](util[_0x44db81('0x2a')]('IFTIME(%s?true:false)',_0x16b81b[_0x264c73]));if(_0x51041d['result']===-0x1)return _0x51041d;logger[_0x44db81('0x1cd')](util[_0x44db81('0x2a')](_0x44db81('0x63'),_0x16b81b[_0x264c73],_0x51041d[_0x44db81('0xb1')]));if(_0x51041d['extra']===_0x44db81('0x19c'))return logger[_0x44db81('0x1cd')](util['format']('IFTIME\x20%s\x20%s',_0x16b81b[_0x264c73],_0x44db81('0x19c'))),this[_0x44db81('0x16f')]['noop'](util[_0x44db81('0x2a')](_0x44db81('0x63'),_0x16b81b[_0x264c73],_0x44db81('0x19c'))),{'code':0xc8,'result':_0x44db81('0x19c')};else logger[_0x44db81('0x1cd')](util['format'](_0x44db81('0x63'),_0x16b81b[_0x264c73],_0x44db81('0x159'))),this['channel']['noop'](util['format'](_0x44db81('0x63'),_0x16b81b[_0x264c73],'false'));}return{'code':0xc8,'result':_0x44db81('0x159')};},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x58')]=function(_0x182401){const _0x5b041b=_0x2948f2;return logger['info'](util[_0x5b041b('0x2a')](_0x5b041b('0x139'),_0x182401[_0x5b041b('0x38')])),this[_0x5b041b('0x16f')][_0x5b041b('0x58')]();},AGIVertices[_0x2948f2('0x1c0')]['ispeechasr']=function(_0x231609){const _0x8e6b9c=_0x2948f2;logger[_0x8e6b9c('0x1cd')](util[_0x8e6b9c('0x2a')]('Enter\x20in\x20ISPEECHASR\x20(%s)\x20block',_0x231609[_0x8e6b9c('0x38')]));if(!this[_0x8e6b9c('0x55')](_0x231609[_0x8e6b9c('0x11f')]))return this[_0x8e6b9c('0x16f')][_0x8e6b9c('0x184')](_0x8e6b9c('0x1c4'));const _0x2c7340=_0x8e6b9c('0x25'),_0x21fb79=util[_0x8e6b9c('0x2a')](_0x8e6b9c('0x93'),FILES_PATH,rs['generate'](0x4)),_0x4b8f54=util[_0x8e6b9c('0x2a')](_0x8e6b9c('0x66'),_0x21fb79,_0x2c7340);let _0x4433fe=!![];_0x231609[_0x8e6b9c('0x6a')]===_0x8e6b9c('0x7c')&&(_0x4433fe=![]);const _0x22b10a=this[_0x8e6b9c('0x16f')][_0x8e6b9c('0xab')](_0x21fb79,_0x2c7340,_0x231609[_0x8e6b9c('0xa6')],_0x231609['timeout'],undefined,_0x4433fe);if(_0x22b10a['result']!==-0x1){this[_0x8e6b9c('0x16f')]['noop'](util[_0x8e6b9c('0x2a')](_0x8e6b9c('0x13'),_0x4b8f54));const _0x250b0f=this[_0x8e6b9c('0x127')][_0x8e6b9c('0x2c')](this,_0x231609,_0x4b8f54);if(_0x250b0f){for(const _0x44fac0 in _0x250b0f){typeof _0x250b0f[_0x44fac0]!==_0x8e6b9c('0x106')&&this['channel'][_0x8e6b9c('0x82')](util['format'](_0x8e6b9c('0x1d2'),_0x44fac0[_0x8e6b9c('0x8d')]()),_0x250b0f[_0x44fac0]);}return this[_0x8e6b9c('0x16f')][_0x8e6b9c('0x184')](util[_0x8e6b9c('0x2a')](_0x8e6b9c('0x31'),JSON[_0x8e6b9c('0x50')](_0x250b0f)));}}return _0x22b10a;},AGIVertices[_0x2948f2('0x1c0')]['ispeechtts']=function(_0x248ba2){const _0x2980c6=_0x2948f2;logger[_0x2980c6('0x1cd')](util[_0x2980c6('0x2a')](_0x2980c6('0x36'),_0x248ba2[_0x2980c6('0x38')]));if(!this[_0x2980c6('0x55')](_0x248ba2[_0x2980c6('0x11f')]))return this[_0x2980c6('0x16f')][_0x2980c6('0x184')](_0x2980c6('0x1c4'));if(!this['isConfigured'](_0x248ba2['text']))return this[_0x2980c6('0x16f')][_0x2980c6('0x184')](_0x2980c6('0x4d'));this[_0x2980c6('0x16f')][_0x2980c6('0x184')](util[_0x2980c6('0x2a')]('Trying\x20ispeech\x20TTS\x20%s',_0x248ba2[_0x2980c6('0x13f')]));const _0x99236e=this[_0x2980c6('0x190')][_0x2980c6('0x2c')](this,_0x248ba2);if(_0x99236e){this[_0x2980c6('0x16f')][_0x2980c6('0x184')](util[_0x2980c6('0x2a')](_0x2980c6('0x13'),_0x99236e));const _0x3b861c=this[_0x2980c6('0x16f')][_0x2980c6('0x1a1')](_0x99236e,_0x248ba2['intKey']);try{fs['unlink'](_0x99236e+_0x2980c6('0xfd'));}catch(_0x3b4c27){logger[_0x2980c6('0x76')](_0x3b4c27);}return _0x3b861c;}return this[_0x2980c6('0x16f')][_0x2980c6('0x76')](_0x248ba2,_0x2980c6('0x4e'));},AGIVertices[_0x2948f2('0x1c0')]['login']=function(_0xf44023){const _0x5e10d8=_0x2948f2;logger['info'](util[_0x5e10d8('0x2a')](_0x5e10d8('0x161'),_0xf44023['label']));if(!this[_0x5e10d8('0x55')](_0xf44023[_0x5e10d8('0x1cf')]))return this[_0x5e10d8('0x16f')][_0x5e10d8('0x76')](_0xf44023,_0x5e10d8('0x52'));logger[_0x5e10d8('0x1cd')](util[_0x5e10d8('0x2a')](_0x5e10d8('0xa9'),this[_0x5e10d8('0x16f')][_0x5e10d8('0x194')],_0xf44023['findBy']));const _0x32bb17=this[_0x5e10d8('0xb5')][_0x5e10d8('0x2c')](this,_0xf44023[_0x5e10d8('0x1cf')]);return _0x32bb17?(logger['info'](util[_0x5e10d8('0x2a')](_0x5e10d8('0xdc'),this[_0x5e10d8('0x16f')][_0x5e10d8('0x194')],_0xf44023[_0x5e10d8('0x1cf')])),this[_0x5e10d8('0x16f')]['noop'](util[_0x5e10d8('0x2a')](_0x5e10d8('0xdc'),this[_0x5e10d8('0x16f')][_0x5e10d8('0x194')],_0xf44023[_0x5e10d8('0x1cf')])),{'code':0xc8,'result':_0x5e10d8('0x20')}):(logger[_0x5e10d8('0x1cd')](util[_0x5e10d8('0x2a')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x5e10d8('0x16f')]['callerid'],_0xf44023[_0x5e10d8('0x1cf')])),this['channel']['noop'](util[_0x5e10d8('0x2a')](_0x5e10d8('0x166'),this[_0x5e10d8('0x16f')][_0x5e10d8('0x194')],_0xf44023[_0x5e10d8('0x1cf')])),{'code':0xc8,'result':_0x5e10d8('0x173')});},AGIVertices['prototype']['logout']=function(_0x28d0a0){const _0x1b43b7=_0x2948f2;logger[_0x1b43b7('0x1cd')](util[_0x1b43b7('0x2a')](_0x1b43b7('0x2e'),_0x28d0a0[_0x1b43b7('0x38')]));if(!this[_0x1b43b7('0x55')](_0x28d0a0[_0x1b43b7('0x1cf')]))return this[_0x1b43b7('0x16f')]['error'](_0x28d0a0,_0x1b43b7('0x52'));logger['info'](util[_0x1b43b7('0x2a')](_0x1b43b7('0xa9'),this[_0x1b43b7('0x16f')][_0x1b43b7('0x194')],_0x28d0a0[_0x1b43b7('0x1cf')]));const _0x5e9248=this['agentLogout'][_0x1b43b7('0x2c')](this,_0x28d0a0['findBy']);return _0x5e9248?(logger[_0x1b43b7('0x1cd')](util['format'](_0x1b43b7('0xdc'),this[_0x1b43b7('0x16f')][_0x1b43b7('0x194')],_0x28d0a0['findBy'])),this[_0x1b43b7('0x16f')][_0x1b43b7('0x184')](util[_0x1b43b7('0x2a')](_0x1b43b7('0xdc'),this[_0x1b43b7('0x16f')]['callerid'],_0x28d0a0[_0x1b43b7('0x1cf')])),{'code':0xc8,'result':_0x1b43b7('0x20')}):(logger[_0x1b43b7('0x1cd')](util['format']('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this[_0x1b43b7('0x16f')]['callerid'],_0x28d0a0[_0x1b43b7('0x1cf')])),this[_0x1b43b7('0x16f')]['noop'](util[_0x1b43b7('0x2a')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel'][_0x1b43b7('0x194')],_0x28d0a0[_0x1b43b7('0x1cf')])),{'code':0xc8,'result':'failure'});},AGIVertices['prototype'][_0x2948f2('0x110')]=function(_0x531d61){const _0x31104d=_0x2948f2;logger[_0x31104d('0x1cd')](util['format'](_0x31104d('0x5d'),_0x531d61[_0x31104d('0x38')]));if(!this[_0x31104d('0x55')](_0x531d61[_0x31104d('0x18b')]))return this[_0x31104d('0x16f')][_0x31104d('0x76')](_0x531d61,_0x31104d('0x11b'));this[_0x31104d('0x16f')][_0x31104d('0x184')](util['format']('math\x20%s',_0x531d61[_0x31104d('0x18b')]));const _0x588e64=eval(_0x531d61[_0x31104d('0x18b')]);if(!this[_0x31104d('0x55')](_0x531d61['variable_id']))return this[_0x31104d('0x16f')][_0x31104d('0x184')](_0x31104d('0x17b'));const _0x39b371=this[_0x31104d('0x176')]['sync'](this,_0x531d61[_0x31104d('0xfc')]);if(!_0x39b371)return this['channel'][_0x31104d('0x76')](_0x531d61,_0x31104d('0x17a'));if(_[_0x31104d('0x11c')](_0x588e64)){const _0x58716b=this;return _0x588e64[_0x31104d('0x92')](function(_0x277697,_0x4d3a9c){const _0x2e5d41=_0x31104d;_0x58716b['channel'][_0x2e5d41('0x82')](util['format'](_0x2e5d41('0x103'),_0x39b371,_0x4d3a9c),_0x277697);}),this[_0x31104d('0x16f')]['noop'](util[_0x31104d('0x2a')]('variable\x20%s[key]\x20set',_0x39b371));}else return this[_0x31104d('0x16f')][_0x31104d('0x82')](_0x39b371,_0x588e64);},AGIVertices[_0x2948f2('0x1c0')]['menu']=function(_0x125893){const _0x223a3b=_0x2948f2;logger[_0x223a3b('0x1cd')](util['format'](_0x223a3b('0x54'),_0x125893[_0x223a3b('0x38')]));if(_0x125893[_0x223a3b('0x171')]===0x0)return this[_0x223a3b('0x9a')](_0x125893);_0x125893[_0x223a3b('0x171')]-=0x1;if(!this[_0x223a3b('0x55')](_0x125893[_0x223a3b('0xa')]))return this[_0x223a3b('0x16f')][_0x223a3b('0x76')](_0x125893,_0x223a3b('0x1bf'));const _0x4c6a83=this[_0x223a3b('0xc1')][_0x223a3b('0x2c')](this,_0x125893[_0x223a3b('0xa')]);if(!_0x4c6a83)return this[_0x223a3b('0x16f')][_0x223a3b('0x76')](_0x125893,_0x223a3b('0x17d'));const _0x4585fa=this['channel']['getData'](_0x4c6a83,_0x125893['response'],_0x125893[_0x223a3b('0x88')]);let _0x3e07b1=_0x4585fa[_0x223a3b('0x85')];if(_0x4585fa[_0x223a3b('0x85')]===-0x1)return this[_0x223a3b('0x177')][_0x223a3b('0x2c')](this,_0x125893,'-1'),_0x4585fa;else{if(_0x4585fa[_0x223a3b('0xb1')]===_0x223a3b('0x3f'))_0x4585fa[_0x223a3b('0x85')]=_0x4585fa['result']['length']>0x0?_0x4585fa[_0x223a3b('0x85')]:'t';else _[_0x223a3b('0x118')](_0x4585fa['result'])&&(_0x4585fa[_0x223a3b('0x85')]='#',_0x3e07b1='#');}if(!this[_0x223a3b('0x55')](_0x125893[_0x223a3b('0xfc')]))this[_0x223a3b('0x16f')][_0x223a3b('0x184')](_0x223a3b('0x17b'));else{const _0x1ed0c3=this[_0x223a3b('0x176')]['sync'](this,_0x125893[_0x223a3b('0xfc')]);if(!_0x1ed0c3)return this[_0x223a3b('0x16f')][_0x223a3b('0x76')](_0x125893,_0x223a3b('0x17a'));this[_0x223a3b('0x16f')][_0x223a3b('0x82')](_0x1ed0c3,_0x3e07b1);}return this[_0x223a3b('0x177')][_0x223a3b('0x2c')](this,_0x125893,_0x3e07b1),_0x4585fa;},AGIVertices[_0x2948f2('0x1c0')]['noop']=function(_0x549297){const _0x2b527f=_0x2948f2;return logger['info'](util['format'](_0x2b527f('0x1ac'),_0x549297['label'])),this[_0x2b527f('0x16f')][_0x2b527f('0x184')](_0x549297[_0x2b527f('0x28')]||_0x549297[_0x2b527f('0x38')]);},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x22')]=function(_0x1a669c){const _0xde0253=_0x2948f2;logger['info'](util['format'](_0xde0253('0x1a8'),_0x1a669c['label']));if(!this[_0xde0253('0x55')](_0x1a669c[_0xde0253('0x1cf')]))return this['channel'][_0xde0253('0x76')](_0x1a669c,'no\x20find\x20by\x20configured');logger[_0xde0253('0x1cd')](util['format'](_0xde0253('0xa9'),this[_0xde0253('0x16f')][_0xde0253('0x194')],_0x1a669c[_0xde0253('0x1cf')]));const _0x56414f=this['getPause'][_0xde0253('0x2c')](this,_0x1a669c[_0xde0253('0x1b3')]),_0x3cdaef=this['agentPause'][_0xde0253('0x2c')](this,_0x1a669c[_0xde0253('0x1cf')],_0x56414f);return _0x3cdaef?(logger[_0xde0253('0x1cd')](util[_0xde0253('0x2a')](_0xde0253('0xdc'),this[_0xde0253('0x16f')][_0xde0253('0x194')],_0x1a669c[_0xde0253('0x1cf')])),this[_0xde0253('0x16f')]['noop'](util[_0xde0253('0x2a')](_0xde0253('0xdc'),this[_0xde0253('0x16f')]['callerid'],_0x1a669c['findBy'])),{'code':0xc8,'result':_0xde0253('0x20')}):(logger[_0xde0253('0x1cd')](util[_0xde0253('0x2a')]('AGENT\x20%s\x20NOT\x20FOUND\x20BY',this['channel']['callerid'],_0x1a669c['findBy'])),this[_0xde0253('0x16f')][_0xde0253('0x184')](util[_0xde0253('0x2a')](_0xde0253('0xdc'),this[_0xde0253('0x16f')]['callerid'],_0x1a669c[_0xde0253('0x1cf')])),{'code':0xc8,'result':'failure'});},AGIVertices[_0x2948f2('0x1c0')]['playback']=function(_0x2fef2f){const _0x4699bf=_0x2948f2;logger[_0x4699bf('0x1cd')](util[_0x4699bf('0x2a')](_0x4699bf('0x41'),_0x2fef2f[_0x4699bf('0x38')]));if(!this[_0x4699bf('0x55')](_0x2fef2f['file_id']))return this[_0x4699bf('0x16f')][_0x4699bf('0x76')](_0x2fef2f,_0x4699bf('0x1bf'));const _0x535d74=this[_0x4699bf('0xc1')][_0x4699bf('0x2c')](this,_0x2fef2f['file_id']);if(!_0x535d74)return this[_0x4699bf('0x16f')][_0x4699bf('0x76')](_0x2fef2f,_0x4699bf('0x17d'));const _0x54cad5=this[_0x4699bf('0x16f')][_0x4699bf('0x117')](_0x4699bf('0x7f'),[_0x535d74,_0x2fef2f['opts']]);if(_0x54cad5[_0x4699bf('0x85')]===-0x1)return _0x54cad5;return this['channel'][_0x4699bf('0x184')](util[_0x4699bf('0x2a')](_0x4699bf('0x37'),'PLAYBACK',_0x535d74));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x11d')]=function(_0x48d049){const _0x119bdc=_0x2948f2;logger[_0x119bdc('0x1cd')](util['format']('Enter\x20in\x20QUEUE\x20(%s)\x20block',_0x48d049[_0x119bdc('0x38')]));if(!this['isConfigured'](_0x48d049[_0x119bdc('0x149')]))return this['channel'][_0x119bdc('0x76')](_0x48d049,_0x119bdc('0x167'));let _0x1f1fb9='';const _0x5128cb=parseInt(_0x48d049['queue_id'],0xa);if(isNaN(_0x5128cb))_0x1f1fb9=_0x48d049[_0x119bdc('0x149')];else{_0x1f1fb9=this['getVoiceQueue'][_0x119bdc('0x2c')](this,_0x48d049[_0x119bdc('0x149')]);if(!_0x1f1fb9)return this[_0x119bdc('0x16f')][_0x119bdc('0x76')](_0x48d049,_0x119bdc('0x160'));}let _0x516f74='';if(this[_0x119bdc('0x55')](_0x48d049[_0x119bdc('0xa')])){const _0x4a9562=this['getSound'][_0x119bdc('0x2c')](this,_0x48d049[_0x119bdc('0xa')]);_0x4a9562&&(_0x516f74=_0x4a9562);}this['createSquareDetailsReport']['sync'](this,_0x48d049,_0x1f1fb9);_0x48d049[_0x119bdc('0x1c5')]['indexOf']('x')<0x0&&(_0x48d049[_0x119bdc('0x1c5')]+='x');_0x48d049[_0x119bdc('0x1c5')]['indexOf']('X')<0x0&&(_0x48d049[_0x119bdc('0x1c5')]+='X');this[_0x119bdc('0x16f')][_0x119bdc('0x82')](_0x119bdc('0x120'),_0x1f1fb9?_0x1f1fb9[_0x119bdc('0x16e')]():'');const _0x569373=this['channel'][_0x119bdc('0x117')]('QUEUE',[_0x1f1fb9,_0x48d049[_0x119bdc('0x1c5')],_0x48d049[_0x119bdc('0x18f')],_0x516f74,_0x48d049[_0x119bdc('0x3f')],_0x48d049[_0x119bdc('0x1d3')],_0x48d049[_0x119bdc('0xb0')],_0x48d049[_0x119bdc('0xbd')],'',_0x48d049[_0x119bdc('0x1ad')]]);if(_0x569373['result']===-0x1)return _0x569373;return this[_0x119bdc('0x16f')][_0x119bdc('0x184')](util[_0x119bdc('0x2a')](_0x119bdc('0x37'),_0x119bdc('0x94'),_0x1f1fb9));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x1c7')]=function(_0x5690e7){const _0x180879=_0x2948f2;logger[_0x180879('0x1cd')](util[_0x180879('0x2a')]('Enter\x20in\x20RECORD\x20(%s)\x20block',_0x5690e7[_0x180879('0x38')]));const _0xd0505e=_0x5690e7[_0x180879('0x16a')]||_0x180879('0x25'),_0x433967=util[_0x180879('0x2a')](_0x180879('0xc3'),this[_0x180879('0x16f')][_0x180879('0x179')],rs[_0x180879('0x1c')](0x5)),_0x3d9cdd=util[_0x180879('0x2a')]('%s/recordings/%s.%s',FILES_PATH,_0x433967,_0xd0505e),_0x43c2b8=util[_0x180879('0x2a')]('%s/recordings/%s',FILES_PATH,_0x433967);return this[_0x180879('0xba')][_0x180879('0x2c')](this,_0x5690e7,_0x433967,_0x3d9cdd),this['channel'][_0x180879('0x82')](_0x180879('0x180'),_0x433967),logger['info']('Recording\x20%s\x20%s\x20%s\x20%s',_0x43c2b8,_0xd0505e,_0x5690e7['escape_digits'],_0x5690e7[_0x180879('0x3f')]),this['channel'][_0x180879('0xab')](_0x43c2b8,_0xd0505e,_0x5690e7['escape_digits'],_0x5690e7[_0x180879('0x3f')],undefined,!![]);},AGIVertices['prototype']['restapi']=function(_0x3d7489){const _0x44fcb5=_0x2948f2;logger[_0x44fcb5('0x1cd')](util[_0x44fcb5('0x2a')](_0x44fcb5('0x5c'),_0x3d7489[_0x44fcb5('0x38')]));if(!this[_0x44fcb5('0x55')](_0x3d7489[_0x44fcb5('0x18f')]))return this['channel'][_0x44fcb5('0x184')](_0x44fcb5('0x144'));const _0x39c318=this[_0x44fcb5('0x14a')][_0x44fcb5('0x2c')](this,_0x3d7489);logger[_0x44fcb5('0x1cd')](util[_0x44fcb5('0x2a')](_0x44fcb5('0x5b'),util[_0x44fcb5('0x9f')](_0x39c318,{'showHidden':![],'depth':null})));if(!this['isConfigured'](_0x3d7489['variable_id']))return this['channel'][_0x44fcb5('0x184')](_0x44fcb5('0xf1'));const _0x2df8ff=this[_0x44fcb5('0x176')][_0x44fcb5('0x2c')](this,_0x3d7489[_0x44fcb5('0xfc')]);if(!_0x2df8ff)return this[_0x44fcb5('0x16f')][_0x44fcb5('0x76')](_0x3d7489,_0x44fcb5('0x17a'));this[_0x44fcb5('0x16f')]['setVariable'](util[_0x44fcb5('0x2a')](_0x44fcb5('0x13a'),_0x2df8ff),_0x39c318['statusCode']?_0x39c318[_0x44fcb5('0x109')]:_0x44fcb5('0x84')),this[_0x44fcb5('0x16f')][_0x44fcb5('0x82')](util['format'](_0x44fcb5('0x1ce'),_0x2df8ff),_0x39c318[_0x44fcb5('0x14c')]?_0x39c318[_0x44fcb5('0x14c')]:'OK');if(_0x39c318['body'])try{this[_0x44fcb5('0x49')](_0x39c318[_0x44fcb5('0xd')],_0x2df8ff);}catch(_0x279a99){logger[_0x44fcb5('0x76')](util[_0x44fcb5('0x2a')](_0x44fcb5('0x172'),_0x2df8ff));}return this[_0x44fcb5('0x16f')][_0x44fcb5('0x184')](util[_0x44fcb5('0x2a')](_0x44fcb5('0x151'),_0x2df8ff));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x1bc')]=function(_0x527270){const _0x27bd99=_0x2948f2;return logger['info'](util[_0x27bd99('0x2a')](_0x27bd99('0x137'),_0x527270[_0x27bd99('0x38')])),this[_0x27bd99('0x16f')][_0x27bd99('0x14b')](_0x527270[_0x27bd99('0x2b')][_0x27bd99('0x2d')](/\s+/g,''),_0x527270[_0x27bd99('0xd4')]);},AGIVertices['prototype'][_0x2948f2('0x1e')]=function(_0x292108){const _0x450747=_0x2948f2;return logger[_0x450747('0x1cd')](util[_0x450747('0x2a')](_0x450747('0x1b'),_0x292108['label'])),this[_0x450747('0x16f')][_0x450747('0x23')](_0x292108[_0x450747('0xbb')][_0x450747('0x2d')](/\s+/g,''),_0x292108[_0x450747('0xd4')]);},AGIVertices['prototype'][_0x2948f2('0x16b')]=function(_0x38b649){const _0x3817aa=_0x2948f2;return logger[_0x3817aa('0x1cd')](util[_0x3817aa('0x2a')](_0x3817aa('0xa0'),_0x38b649[_0x3817aa('0x38')])),this[_0x3817aa('0x16f')][_0x3817aa('0x131')](_0x38b649['text'],_0x38b649[_0x3817aa('0xd4')]);},AGIVertices['prototype']['sendMail']=function(_0xb84978){const _0x1fa979=_0x2948f2;logger[_0x1fa979('0x1cd')](util['format'](_0x1fa979('0x134'),_0xb84978[_0x1fa979('0x38')]));if(!this[_0x1fa979('0x55')](_0xb84978[_0x1fa979('0x1a3')]))return this['channel']['noop'](_0x1fa979('0xd8'));const _0x5b4bf9=this[_0x1fa979('0x61')][_0x1fa979('0x2c')](this,_0xb84978[_0x1fa979('0x1a3')]);if(!_0x5b4bf9||!_0x5b4bf9[_0x1fa979('0x24')])return this[_0x1fa979('0x16f')][_0x1fa979('0x76')](_0xb84978,_0x1fa979('0x72'));const _0x49521f={'from':util[_0x1fa979('0x2a')](_0x1fa979('0x122'),_0x5b4bf9['name'],_0x5b4bf9[_0x1fa979('0x1d')]||_0x5b4bf9['Smtp'][_0x1fa979('0x18e')]),'to':_0xb84978['to']||'','cc':_0xb84978['cc']||'','bcc':_0xb84978[_0x1fa979('0x9e')]||'','subject':_0xb84978[_0x1fa979('0x8c')],'html':_0xb84978[_0x1fa979('0x13f')],'text':_0xb84978[_0x1fa979('0x13f')]},_0x3d829d={'tls':{'rejectUnauthorized':![]}};_0x5b4bf9[_0x1fa979('0x24')]['service']?_0x3d829d[_0x1fa979('0xa1')]=_0x5b4bf9[_0x1fa979('0x24')]['service']:(_0x3d829d['host']=_0x5b4bf9[_0x1fa979('0x24')][_0x1fa979('0x53')],_0x3d829d['port']=_0x5b4bf9[_0x1fa979('0x24')]['port'],_0x3d829d[_0x1fa979('0x13c')]=_0x5b4bf9[_0x1fa979('0x24')][_0x1fa979('0x13c')]);_0x5b4bf9['Smtp']['authentication']&&(_0x3d829d[_0x1fa979('0x81')]={'user':_0x5b4bf9[_0x1fa979('0x24')][_0x1fa979('0x18e')],'pass':_0x5b4bf9[_0x1fa979('0x24')][_0x1fa979('0xdb')]});if(this['isConfigured'](_0xb84978[_0x1fa979('0x15e')])){}return logger['debug'](_0x1fa979('0x132'),JSON['stringify'](_0x49521f)),this[_0x1fa979('0x177')]['sync'](this,_0xb84978,_0xb84978[_0x1fa979('0x1a3')]),this[_0x1fa979('0x16f')][_0x1fa979('0x184')](util[_0x1fa979('0x2a')](_0x1fa979('0xef'),_0x5b4bf9[_0x1fa979('0xf6')])),this[_0x1fa979('0x2f')][_0x1fa979('0x2c')](this,_0x3d829d,_0x49521f),this[_0x1fa979('0x16f')][_0x1fa979('0x184')](_0x1fa979('0x5'));},AGIVertices['prototype']['sendFax']=function(_0x1288ea){const _0xc1d80c=_0x2948f2;return logger[_0xc1d80c('0x1cd')](util[_0xc1d80c('0x2a')](_0xc1d80c('0x9d'),_0x1288ea[_0xc1d80c('0x38')])),this['channel'][_0xc1d80c('0x184')](_0xc1d80c('0x99'));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x133')]=function(_0x576e59){const _0x37f4bd=_0x2948f2;logger['info'](util[_0x37f4bd('0x2a')](_0x37f4bd('0x125'),_0x576e59[_0x37f4bd('0x38')]));if(!this[_0x37f4bd('0x55')](_0x576e59[_0x37f4bd('0xc7')]))return this['channel']['noop'](_0x37f4bd('0x1c2'));const _0x19c912=this[_0x37f4bd('0xbe')][_0x37f4bd('0x2c')](this,_0x576e59[_0x37f4bd('0xc7')]);if(!_0x19c912)return this[_0x37f4bd('0x16f')][_0x37f4bd('0x76')](_0x576e59,_0x37f4bd('0x1a5'));const _0x301a2c={'body':_0x576e59[_0x37f4bd('0x163')],'phone':_0x576e59['to']||'','SmsAccountId':_0x19c912['id']};return logger['debug'](_0x37f4bd('0x87'),JSON['stringify'](_0x301a2c)),this[_0x37f4bd('0x177')][_0x37f4bd('0x2c')](this,_0x576e59,_0x576e59[_0x37f4bd('0xc7')]),this[_0x37f4bd('0x16f')][_0x37f4bd('0x184')](util[_0x37f4bd('0x2a')]('Trying\x20SendSMS\x20with\x20account\x20%s',_0x19c912[_0x37f4bd('0xf6')])),this[_0x37f4bd('0x105')]['sync'](this,_0x301a2c),this[_0x37f4bd('0x16f')][_0x37f4bd('0x184')](_0x37f4bd('0x158'));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xaf')]=function(_0xe6d13){const _0x2d91c9=_0x2948f2;logger[_0x2d91c9('0x1cd')](util[_0x2d91c9('0x2a')](_0x2d91c9('0xf3'),_0xe6d13[_0x2d91c9('0x38')]));if(!this['isConfigured'](_0xe6d13[_0x2d91c9('0xfc')]))return this[_0x2d91c9('0x16f')]['error'](_0xe6d13,_0x2d91c9('0x47'));const _0x1c7279=this[_0x2d91c9('0x176')]['sync'](this,_0xe6d13['variable_id']);if(!_0x1c7279)return this['channel'][_0x2d91c9('0x76')](_0xe6d13,_0x2d91c9('0x17a'));return this[_0x2d91c9('0x16f')]['setVariable'](_0x1c7279,_0xe6d13['variable_value']);},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x4')]=function(_0x39fe61){const _0x17dfe4=_0x2948f2;logger['info'](util[_0x17dfe4('0x2a')](_0x17dfe4('0x126'),_0x39fe61[_0x17dfe4('0x38')])),this['channel'][_0x17dfe4('0x184')]('START\x20CALLY\x20SQUARE');if(_0x39fe61[_0x17dfe4('0x124')]==='yes')return this[_0x17dfe4('0x16f')][_0x17dfe4('0x184')](_0x17dfe4('0xf')),this[_0x17dfe4('0x16f')]['answer']();return this[_0x17dfe4('0x16f')][_0x17dfe4('0x184')](_0x17dfe4('0x121'));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xb9')]=function(_0x5d26ce){const _0x11088e=_0x2948f2;logger['info'](util['format']('Enter\x20in\x20SUBPROJECT\x20(%s)\x20block',_0x5d26ce[_0x11088e('0x38')]));if(!this[_0x11088e('0x55')](_0x5d26ce['project_id']))return this['channel'][_0x11088e('0x76')](_0x5d26ce,_0x11088e('0xff'));const _0x37cc41=this[_0x11088e('0x10b')]['sync'](this,_0x5d26ce[_0x11088e('0x16')]);if(!this['isConfigured'](_0x37cc41))return this[_0x11088e('0x16f')]['error'](_0x5d26ce,util[_0x11088e('0x2a')]('no\x20subproject\x20found\x20with\x20id\x20%d',_0x5d26ce[_0x11088e('0x16')]));if(_0x37cc41===this['channel'][_0x11088e('0x1cb')])return this[_0x11088e('0x16f')][_0x11088e('0x76')](_0x5d26ce,_0x11088e('0x12d'));this[_0x11088e('0x177')][_0x11088e('0x2c')](this,_0x5d26ce,_0x37cc41);const _0x497ef5=this['channel'][_0x11088e('0x117')](_0x11088e('0x183'),util[_0x11088e('0x2a')](_0x11088e('0xc5'),config[_0x11088e('0x1d3')]['host']||_0x11088e('0x95'),_0x37cc41,this[_0x11088e('0x16f')][_0x11088e('0x1cb')]));if(_0x497ef5[_0x11088e('0x85')]===-0x1)return _0x497ef5;return this[_0x11088e('0x16f')][_0x11088e('0x184')](util[_0x11088e('0x2a')](_0x11088e('0x37'),'AGI',_0x37cc41));},AGIVertices['prototype']['system']=function(_0x1918a5){const _0x7ce262=_0x2948f2;logger['info'](util[_0x7ce262('0x2a')](_0x7ce262('0xa3'),_0x1918a5[_0x7ce262('0x38')]));const _0x395a80=this[_0x7ce262('0xb3')][_0x7ce262('0x2c')](this,_0x1918a5['command']);this['createSquareDetailsReport'][_0x7ce262('0x2c')](this,_0x1918a5,_0x1918a5[_0x7ce262('0x96')]);if(this[_0x7ce262('0x55')](_0x1918a5[_0x7ce262('0xfc')])){const _0x1d0bdd=this['getVariable']['sync'](this,_0x1918a5[_0x7ce262('0xfc')]);if(_0x1d0bdd)return this[_0x7ce262('0x16f')][_0x7ce262('0x82')](_0x1d0bdd,_0x395a80),this[_0x7ce262('0x16f')][_0x7ce262('0x184')](util['format'](_0x7ce262('0xce'),_0x1918a5[_0x7ce262('0x96')],_0x1d0bdd));}return this[_0x7ce262('0x16f')][_0x7ce262('0x184')](util[_0x7ce262('0x2a')](_0x7ce262('0xdf'),_0x1918a5['command']));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0xec')]=function(_0x5c724a){const _0x111659=_0x2948f2;logger[_0x111659('0x1cd')](util[_0x111659('0x2a')](_0x111659('0xc6'),_0x5c724a['label'])),_0x5c724a['text']=_0x5c724a[_0x111659('0x13f')][_0x111659('0x2d')](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x111659('0x55')](_0x5c724a[_0x111659('0x185')]))return this[_0x111659('0x16f')][_0x111659('0x184')](_0x111659('0x18d'));if(!this['isConfigured'](_0x5c724a[_0x111659('0x13f')]))return this[_0x111659('0x16f')]['noop']('no\x20text\x20configured');this[_0x111659('0x16f')]['noop'](util[_0x111659('0x2a')](_0x111659('0x19a'),_0x5c724a[_0x111659('0x13f')]));const _0x58cd88=this[_0x111659('0x1c1')][_0x111659('0x2c')](this,_0x5c724a);if(_0x58cd88){this[_0x111659('0x16f')]['noop'](util[_0x111659('0x2a')]('Google\x20Cloud\x20TTS\x20%s\x20file\x20created',_0x58cd88));const _0x2eaafa=this[_0x111659('0x16f')][_0x111659('0x1a1')](_0x58cd88);try{fs[_0x111659('0x1b2')](_0x58cd88+_0x111659('0xfd'));}catch(_0x5612ab){logger[_0x111659('0x76')](_0x5612ab);}return _0x2eaafa;}return this[_0x111659('0x16f')]['error'](_0x5c724a,_0x111659('0x12f'));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x1b1')]=function(_0x21d521){const _0x4bddf3=_0x2948f2;logger[_0x4bddf3('0x1cd')](util[_0x4bddf3('0x2a')](_0x4bddf3('0x123'),_0x21d521[_0x4bddf3('0x38')])),_0x21d521[_0x4bddf3('0x13f')]=_0x21d521['text']['replace'](/(\r\n|\n|\r)/gm,'\x20');if(!this[_0x4bddf3('0x55')](_0x21d521[_0x4bddf3('0x13f')]))return this[_0x4bddf3('0x16f')][_0x4bddf3('0x184')](_0x4bddf3('0x4d'));this[_0x4bddf3('0x16f')][_0x4bddf3('0x184')](util[_0x4bddf3('0x2a')](_0x4bddf3('0xda'),_0x21d521[_0x4bddf3('0x13f')]));const _0x5732ef=this[_0x4bddf3('0xcc')]['sync'](this,_0x21d521);if(_0x5732ef){this[_0x4bddf3('0x16f')][_0x4bddf3('0x184')](util[_0x4bddf3('0x2a')](_0x4bddf3('0x12e'),_0x5732ef));const _0x1eeb51=this[_0x4bddf3('0x16f')][_0x4bddf3('0x1a1')](_0x5732ef);try{fs['unlink'](_0x5732ef+_0x4bddf3('0xfd'));}catch(_0x238b8f){logger[_0x4bddf3('0x76')](_0x238b8f);}return _0x1eeb51;}return this[_0x4bddf3('0x16f')][_0x4bddf3('0x76')](_0x21d521,_0x4bddf3('0x174'));},AGIVertices[_0x2948f2('0x1c0')]['unpause']=function(_0x1b7fe6){const _0x10783d=_0x2948f2;logger[_0x10783d('0x1cd')](util[_0x10783d('0x2a')](_0x10783d('0x79'),_0x1b7fe6['label']));if(!this['isConfigured'](_0x1b7fe6[_0x10783d('0x1cf')]))return this[_0x10783d('0x16f')][_0x10783d('0x76')](_0x1b7fe6,'no\x20find\x20by\x20configured');logger[_0x10783d('0x1cd')](util[_0x10783d('0x2a')](_0x10783d('0xa9'),this[_0x10783d('0x16f')][_0x10783d('0x194')],_0x1b7fe6[_0x10783d('0x1cf')]));const _0x1456b5=this[_0x10783d('0x146')]['sync'](this,_0x1b7fe6[_0x10783d('0x1cf')]);return _0x1456b5?(logger['info'](util[_0x10783d('0x2a')]('AGENT\x20%s\x20FOUND\x20BY',this['channel'][_0x10783d('0x194')],_0x1b7fe6[_0x10783d('0x1cf')])),this['channel']['noop'](util['format'](_0x10783d('0xdc'),this[_0x10783d('0x16f')][_0x10783d('0x194')],_0x1b7fe6[_0x10783d('0x1cf')])),{'code':0xc8,'result':'success'}):(logger['info'](util[_0x10783d('0x2a')](_0x10783d('0x166'),this['channel']['callerid'],_0x1b7fe6[_0x10783d('0x1cf')])),this[_0x10783d('0x16f')][_0x10783d('0x184')](util[_0x10783d('0x2a')](_0x10783d('0x166'),this['channel']['callerid'],_0x1b7fe6['findBy'])),{'code':0xc8,'result':_0x10783d('0x173')});},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x75')]=function(_0x38110f){const _0x1b21ae=_0x2948f2;logger[_0x1b21ae('0x1cd')](util[_0x1b21ae('0x2a')](_0x1b21ae('0x1c8'),_0x38110f['label']));const _0x3d9516=this[_0x1b21ae('0x16f')][_0x1b21ae('0x117')](_0x1b21ae('0x1aa'),[_0x38110f[_0x1b21ae('0xa7')],_0x38110f[_0x1b21ae('0x6')]]);if(_0x3d9516['result']===-0x1)return _0x3d9516;return this[_0x1b21ae('0x16f')][_0x1b21ae('0x184')](util[_0x1b21ae('0x2a')](_0x1b21ae('0x37'),_0x1b21ae('0x1aa'),_0x38110f[_0x1b21ae('0xa7')]));},AGIVertices[_0x2948f2('0x1c0')][_0x2948f2('0x6e')]=function(_0x101052){const _0x3bef0b=_0x2948f2;logger[_0x3bef0b('0x1cd')](util[_0x3bef0b('0x2a')](_0x3bef0b('0x148'),_0x101052[_0x3bef0b('0x38')]));if(!this[_0x3bef0b('0x55')](_0x101052['variable_id']))return this['channel'][_0x3bef0b('0x76')](_0x101052,_0x3bef0b('0x47'));const _0x10d48c=this[_0x3bef0b('0x176')]['sync'](this,_0x101052['variable_id']);if(!_0x10d48c)return this[_0x3bef0b('0x16f')][_0x3bef0b('0x76')](_0x101052,_0x3bef0b('0x17a'));const _0x4acdaf=this['channel'][_0x3bef0b('0x176')](_0x10d48c);return{'code':0xc8,'result':_0x4acdaf[_0x3bef0b('0xb1')]?_0x4acdaf[_0x3bef0b('0xb1')]:'-'};},String[_0x2948f2('0x1c0')][_0x2948f2('0x162')]=function(_0x51cf5c,_0x2561d8){const _0x2c7e7e=_0x2948f2;return this[_0x2c7e7e('0x195')](_0x51cf5c)['join'](_0x2561d8);},module[_0x2948f2('0x5e')]=AGIVertices; \ No newline at end of file diff --git a/server/services/ami/acw/index.js b/server/services/ami/acw/index.js index 118543e..fcd767e 100644 --- a/server/services/ami/acw/index.js +++ b/server/services/ami/acw/index.js @@ -1 +1 @@ -const a1048_0x155d=['diff','syncBlindTransfer','then','[ACW][START]\x20%s','isUndefined','transfereeuniqueid','../ami','[%s][HANGUPATTENDEDTRANSFER:LINKEDID]','queue','stopAcw','custom:agentConnectPreview','attended','name','transfereruniqueid','[ACW][STOP]\x20%s','[%s][HANGUP:UNIQUEID]','autopause','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','voiceQueues','agentringnoanswer','prototype','transfertargetuniqueid','attendedtransfer','update','finally','all','[ACW][syncAgentRingNoAnswer]\x20%s','isNil','lastPauseAt','[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]','[ACW][syncAttendedTransfer]\x20%s','moment','updateAcw','uniqueid','seconds','agentconnect','error','[ACW][TIMERS]','origtransfereruniqueid','blindtransfer','syncAgentRingNoAnswer','savePause','[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]','mandatoryDispositionPause','exports','syncAttendedTransfer','catch','Auto-Pause','saveUnpause','info','channels','[ACW][syncHangupRequest]\x20%s','stringify','ACW','syncAgentConnectPreview','syncAgentConnect','milliseconds','lodash','[%s][START][AGENT:%s][QUEUE:%s]','transfererlinkedid','mandatoryDisposition','[%s][UPDATE][ERRORS:%s]','[ACW][syncHangup]\x20%s','acw','interface','syncHangupRequest','acwTimeout','agents','../rpc/user','bind','linkedid','message','[%s][HANGUP:LINKEDID]','timers','hanguprequest','destlinkedid','secondtransfereruniqueid','syncHangup','[%s][UPDATE][ACWTIME:%s]','startAcw','[%s][BLINDTRANSFER:UNIQUEID]','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer'];(function(_0xc6a2d4,_0x155d49){const _0x41473e=function(_0x4293b0){while(--_0x4293b0){_0xc6a2d4['push'](_0xc6a2d4['shift']());}};_0x41473e(++_0x155d49);}(a1048_0x155d,0x1c9));const a1048_0x4147=function(_0xc6a2d4,_0x155d49){_0xc6a2d4=_0xc6a2d4-0x0;let _0x41473e=a1048_0x155d[_0xc6a2d4];return _0x41473e;};const _0x263804=a1048_0x4147;'use strict';const _=require(_0x263804('0xa')),moment=require(_0x263804('0x42')),ami=require(_0x263804('0x29')),logger=require('../../../config/logger')(_0x263804('0x10')),RpcUser=require(_0x263804('0x15')),RpcVoiceAgentReport=require('../rpc/voiceAgentReport');function Acw(_0x4293b0){const _0x5e11db=_0x263804;this[_0x5e11db('0x35')]=_0x4293b0['voiceQueues'],this[_0x5e11db('0x14')]=_0x4293b0[_0x5e11db('0x14')],this['timers']=_0x4293b0[_0x5e11db('0x1a')],this['channels']={},ami['on'](_0x5e11db('0x46'),this['syncAgentConnect'][_0x5e11db('0x16')](this)),ami['on'](_0x5e11db('0x1b'),this['syncHangupRequest'][_0x5e11db('0x16')](this)),ami['on']('hangup',this[_0x5e11db('0x1e')][_0x5e11db('0x16')](this)),ami['on'](_0x5e11db('0x36'),this[_0x5e11db('0x4b')][_0x5e11db('0x16')](this)),ami['on'](_0x5e11db('0x39'),this[_0x5e11db('0x50')][_0x5e11db('0x16')](this)),ami['on'](_0x5e11db('0x4a'),this[_0x5e11db('0x24')][_0x5e11db('0x16')](this)),ami['on'](_0x5e11db('0x2d'),this[_0x5e11db('0x7')][_0x5e11db('0x16')](this));}function getDiff(_0x29c31f){const _0x226307=_0x263804,_0x3d0576=moment()[_0x226307('0x9')](0x0),_0x2437af=moment(_0x29c31f)[_0x226307('0x9')](0x0);return _0x3d0576[_0x226307('0x23')](_0x2437af,_0x226307('0x45'));}Acw['prototype'][_0x263804('0x20')]=function(_0x17b5a0){const _0x1ce192=_0x263804;try{const _0x2414ec=this,_0x3d6260=this[_0x1ce192('0x3')][_0x17b5a0]['interface'],_0x3e550d=this['channels'][_0x17b5a0][_0x1ce192('0x2b')],_0x586a92=this[_0x1ce192('0x35')][_0x3e550d];let _0x57c7c5=![],_0x37b16a=_0x1ce192('0x6');_0x586a92[_0x1ce192('0xd')]&&(_0x586a92[_0x1ce192('0x4e')]['name']&&(_0x57c7c5=!![],_0x37b16a=_0x586a92['mandatoryDispositionPause'][_0x1ce192('0x2f')])),ami['Action']({'action':'QueuePause','interface':_0x3d6260,'paused':!![],'reason':_0x37b16a})[_0x1ce192('0x25')](function(){const _0xa6ceba=_0x1ce192;if(_0x2414ec['agents'][_0x3d6260])return RpcUser['getAgent'](_0x2414ec[_0xa6ceba('0x14')][_0x3d6260]['id'])[_0xa6ceba('0x25')](function(_0x11ed8f){const _0xe80a6=_0xa6ceba;if(_0x11ed8f&&!_0x11ed8f['voicePause']){logger[_0xe80a6('0x2')](_0xe80a6('0xb'),_0x17b5a0,_0x3d6260,_0x3e550d);const _0xb570ca=_0x2414ec[_0xe80a6('0x3')][_0x17b5a0][_0xe80a6('0x2e')]&&_0x2414ec[_0xe80a6('0x3')][_0x17b5a0][_0xe80a6('0x1c')]?_0x2414ec[_0xe80a6('0x3')][_0x17b5a0]['destlinkedid']:_0x17b5a0;return RpcUser[_0xe80a6('0x4c')](_0x2414ec[_0xe80a6('0x14')][_0x3d6260],_0x37b16a,_0xb570ca)[_0xe80a6('0x25')](function(){const _0x10018d=_0xe80a6;!_0x57c7c5&&(_0x2414ec[_0x10018d('0x1a')][_0x3d6260]={},logger[_0x10018d('0x2')](_0x10018d('0x34'),_0x17b5a0,_0x2414ec[_0x10018d('0x35')][_0x3e550d][_0x10018d('0x13')],_0x3d6260,_0x3e550d),_0x2414ec[_0x10018d('0x1a')][_0x3d6260]['timer']=setTimeout(_0x2414ec[_0x10018d('0x2c')][_0x10018d('0x16')](_0x2414ec,_0x3d6260),_0x2414ec[_0x10018d('0x35')][_0x3e550d][_0x10018d('0x13')]*0x3e8),_0x2414ec[_0x10018d('0x1a')][_0x3d6260][_0x10018d('0x3f')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x2414ec[_0x10018d('0x1a')][_0x3d6260][_0x10018d('0x44')]=_0x17b5a0,_0x2414ec[_0x10018d('0x1a')][_0x3d6260][_0x10018d('0x2b')]=_0x3e550d,_0x2414ec['timers'][_0x3d6260][_0x10018d('0x43')]=function(){const _0x5c0fbe=_0x10018d,_0xd43078=getDiff(_0x2414ec[_0x5c0fbe('0x1a')][_0x3d6260]['lastPauseAt']);clearTimeout(_0x2414ec[_0x5c0fbe('0x1a')][_0x3d6260]['timer']),_0x2414ec['timers'][_0x3d6260]['timer']=![],RpcVoiceAgentReport[_0x5c0fbe('0x3a')]({'acwtime':_0xd43078},_0x2414ec[_0x5c0fbe('0x1a')][_0x3d6260][_0x5c0fbe('0x44')],_0x3d6260)[_0x5c0fbe('0x25')](function(_0x40b29b){const _0x33ce5b=_0x5c0fbe;logger[_0x33ce5b('0x2')](_0x33ce5b('0x1f'),_0x17b5a0,_0xd43078,_0x40b29b);})[_0x5c0fbe('0x51')](function(_0x2b33fa){const _0x411e6d=_0x5c0fbe;logger[_0x411e6d('0x47')](_0x411e6d('0xe'),_0x17b5a0,_0x2b33fa);}),delete _0x2414ec[_0x5c0fbe('0x1a')][_0x3d6260];});});}else logger[_0xe80a6('0x2')]('[%s][INPAUSE][AGENT:%s][QUEUE:%s]',_0x17b5a0,_0x3d6260,_0x3e550d);});})[_0x1ce192('0x51')](function(){const _0x211759=_0x1ce192;logger[_0x211759('0x47')](_0x211759('0x34'),_0x17b5a0,_0x2414ec[_0x211759('0x35')][_0x3e550d][_0x211759('0x13')],_0x3d6260,_0x3e550d);})[_0x1ce192('0x3b')](function(){const _0x47f1ab=_0x1ce192;delete _0x2414ec[_0x47f1ab('0x3')][_0x17b5a0];});}catch(_0x1a29c0){logger[_0x1ce192('0x47')](_0x1ce192('0x26'),_0x1a29c0['message']);}},Acw[_0x263804('0x37')]['stopAcw']=function(_0x757ba1){const _0x39901c=_0x263804;try{const _0x2ca4e1=this;if(_0x2ca4e1[_0x39901c('0x1a')][_0x757ba1]){_0x2ca4e1[_0x39901c('0x1a')][_0x757ba1]['timer']=![];const _0x33a458=_0x2ca4e1['timers'][_0x757ba1][_0x39901c('0x44')],_0x2a07ca=_0x2ca4e1[_0x39901c('0x1a')][_0x757ba1][_0x39901c('0x2b')],_0x5c4299=_0x2ca4e1['voiceQueues'][_0x2a07ca][_0x39901c('0x13')];logger[_0x39901c('0x2')]('[TIMER][STOP][AGENT:%s]',_0x757ba1),RpcUser[_0x39901c('0x1')](this[_0x39901c('0x14')][_0x757ba1]),RpcVoiceAgentReport['update']({'acwtime':_0x5c4299,'agentacw':!![]},_0x33a458,_0x757ba1)[_0x39901c('0x25')](function(_0x6cddb5){const _0x325ff8=_0x39901c;logger[_0x325ff8('0x2')]('[%s][UPDATE][ACWTIME:%s]',_0x33a458,_0x5c4299,_0x6cddb5);})[_0x39901c('0x51')](function(_0x48e5c2){const _0x4cc167=_0x39901c;logger[_0x4cc167('0x47')](_0x4cc167('0xe'),_0x33a458,_0x48e5c2);});}else logger[_0x39901c('0x47')](_0x39901c('0x22'),_0x757ba1),_0x2ca4e1[_0x39901c('0x1a')]&&logger['info'](_0x39901c('0x48'),JSON[_0x39901c('0x5')](_0x2ca4e1[_0x39901c('0x1a')]));}catch(_0x1bbcfa){logger[_0x39901c('0x47')](_0x39901c('0x31'),_0x1bbcfa[_0x39901c('0x18')]);}},Acw[_0x263804('0x37')][_0x263804('0x8')]=function(_0x3bc05b){const _0x3ef1e9=_0x263804;try{this[_0x3ef1e9('0x35')][_0x3bc05b[_0x3ef1e9('0x2b')]]&&(this[_0x3ef1e9('0x35')][_0x3bc05b['queue']][_0x3ef1e9('0x10')]||this[_0x3ef1e9('0x35')][_0x3bc05b[_0x3ef1e9('0x2b')]][_0x3ef1e9('0xd')])&&(this[_0x3ef1e9('0x14')][_0x3bc05b[_0x3ef1e9('0x11')]]&&(this[_0x3ef1e9('0x3')][_0x3bc05b[_0x3ef1e9('0x44')]]={'queue':_0x3bc05b['queue'],'interface':_0x3bc05b['interface'],'destlinkedid':_0x3bc05b[_0x3ef1e9('0x1c')]}));}catch(_0x27aabf){logger[_0x3ef1e9('0x47')]('[ACW][syncAgentConnect]\x20%s',_0x27aabf[_0x3ef1e9('0x18')]);}},Acw[_0x263804('0x37')][_0x263804('0x7')]=function(_0x109d6){const _0x5ce29b=_0x263804;try{this[_0x5ce29b('0x35')][_0x109d6[_0x5ce29b('0x2b')]]&&(this['voiceQueues'][_0x109d6[_0x5ce29b('0x2b')]][_0x5ce29b('0x10')]||this[_0x5ce29b('0x35')][_0x109d6['queue']][_0x5ce29b('0xd')])&&(this[_0x5ce29b('0x14')][_0x109d6['interface']]&&(this[_0x5ce29b('0x3')][_0x109d6[_0x5ce29b('0x44')]]={'queue':_0x109d6['queue'],'interface':_0x109d6['interface']}));}catch(_0x59cb5c){logger[_0x5ce29b('0x47')]('[ACW][syncAgentConnectPreview]\x20%s',_0x59cb5c[_0x5ce29b('0x18')]);}},Acw['prototype'][_0x263804('0x12')]=function(_0x536156){const _0xed0a7f=_0x263804;try{if(this[_0xed0a7f('0x3')][_0x536156[_0xed0a7f('0x44')]]&&_[_0xed0a7f('0x27')](this[_0xed0a7f('0x3')][_0x536156[_0xed0a7f('0x44')]]['attended']))logger['info'](_0xed0a7f('0x32'),_0x536156[_0xed0a7f('0x44')]),this['startAcw'](_0x536156[_0xed0a7f('0x44')]);else this[_0xed0a7f('0x3')][_0x536156[_0xed0a7f('0x17')]]&&_['isUndefined'](this[_0xed0a7f('0x3')][_0x536156[_0xed0a7f('0x17')]][_0xed0a7f('0x2e')])&&(logger[_0xed0a7f('0x2')](_0xed0a7f('0x19'),_0x536156[_0xed0a7f('0x17')]),this[_0xed0a7f('0x20')](_0x536156[_0xed0a7f('0x17')]));}catch(_0xfb3f6a){logger[_0xed0a7f('0x47')](_0xed0a7f('0x4'),_0xfb3f6a[_0xed0a7f('0x18')]);}},Acw['prototype'][_0x263804('0x1e')]=function(_0x5ae4ee){const _0x3f90e4=_0x263804;try{if(this[_0x3f90e4('0x3')][_0x5ae4ee['uniqueid']]&&this['channels'][_0x5ae4ee[_0x3f90e4('0x44')]]['attended'])logger[_0x3f90e4('0x2')](_0x3f90e4('0x4d'),_0x5ae4ee[_0x3f90e4('0x44')]),this[_0x3f90e4('0x20')](_0x5ae4ee['uniqueid']);else this[_0x3f90e4('0x3')][_0x5ae4ee['linkedid']]&&this[_0x3f90e4('0x3')][_0x5ae4ee[_0x3f90e4('0x17')]][_0x3f90e4('0x2e')]&&(logger['info'](_0x3f90e4('0x2a'),_0x5ae4ee[_0x3f90e4('0x17')]),this[_0x3f90e4('0x20')](_0x5ae4ee[_0x3f90e4('0x17')]));}catch(_0x805d64){logger['error'](_0x3f90e4('0xf'),_0x805d64[_0x3f90e4('0x18')]);}},Acw[_0x263804('0x37')]['syncAttendedTransfer']=function(_0x19c98d){const _0x542b38=_0x263804;try{if(!_['isNil'](this[_0x542b38('0x3')][_0x19c98d[_0x542b38('0x28')]]))this[_0x542b38('0x20')](_0x19c98d[_0x542b38('0x28')]),this[_0x542b38('0x3')][_0x19c98d[_0x542b38('0x1d')]]&&(this[_0x542b38('0x3')][_0x19c98d[_0x542b38('0x1d')]][_0x542b38('0x2e')]=!![],this[_0x542b38('0x3')][_0x19c98d['transfertargetuniqueid']]=this[_0x542b38('0x3')][_0x19c98d[_0x542b38('0x1d')]],delete this[_0x542b38('0x3')][_0x19c98d[_0x542b38('0x1d')]]);else!_[_0x542b38('0x3e')](this[_0x542b38('0x3')][_0x19c98d[_0x542b38('0x38')]])&&(this[_0x542b38('0x20')](_0x19c98d[_0x542b38('0x38')]),this[_0x542b38('0x3')][_0x19c98d['origtransfereruniqueid']]&&(this['channels'][_0x19c98d['origtransfereruniqueid']][_0x542b38('0x2e')]=!![],this[_0x542b38('0x3')][_0x19c98d['transfereeuniqueid']]=this[_0x542b38('0x3')][_0x19c98d[_0x542b38('0x49')]],delete this[_0x542b38('0x3')][_0x19c98d[_0x542b38('0x49')]]));}catch(_0x52e0b3){logger[_0x542b38('0x47')](_0x542b38('0x41'),_0x52e0b3[_0x542b38('0x18')]);}},Acw[_0x263804('0x37')][_0x263804('0x24')]=function(_0x423b49){const _0x5112c4=_0x263804;try{if(this[_0x5112c4('0x3')][_0x423b49[_0x5112c4('0x30')]])logger['info'](_0x5112c4('0x21'),JSON[_0x5112c4('0x5')](_0x423b49[_0x5112c4('0x30')])),this[_0x5112c4('0x20')](_0x423b49[_0x5112c4('0x30')]);else this[_0x5112c4('0x3')][_0x423b49[_0x5112c4('0xc')]]&&(logger['info']('[%s][BLINDTRANSFER:LINKEDID]',JSON[_0x5112c4('0x5')](_0x423b49[_0x5112c4('0xc')])),this[_0x5112c4('0x20')](_0x423b49[_0x5112c4('0xc')]));}catch(_0x57e0f5){logger[_0x5112c4('0x47')]('[ACW][syncBlindTransfer]\x20%s',_0x57e0f5[_0x5112c4('0x18')]);}},Acw[_0x263804('0x37')][_0x263804('0x4b')]=function(_0x175ea4){const _0x1e58a6=_0x263804;try{if(this[_0x1e58a6('0x35')][_0x175ea4[_0x1e58a6('0x2b')]]&&this[_0x1e58a6('0x35')][_0x175ea4[_0x1e58a6('0x2b')]][_0x1e58a6('0x33')]===_0x1e58a6('0x3c')){if(this[_0x1e58a6('0x14')][_0x175ea4[_0x1e58a6('0x11')]])return logger[_0x1e58a6('0x2')](_0x1e58a6('0x40'),_0x175ea4[_0x1e58a6('0x44')],_0x175ea4[_0x1e58a6('0x11')],_0x175ea4[_0x1e58a6('0x2b')]),RpcUser[_0x1e58a6('0x4c')](this[_0x1e58a6('0x14')][_0x175ea4['interface']],_0x1e58a6('0x0'),_0x175ea4[_0x1e58a6('0x44')]);}}catch(_0x400a2f){logger[_0x1e58a6('0x47')](_0x1e58a6('0x3d'),_0x400a2f[_0x1e58a6('0x18')]);}},module[_0x263804('0x4f')]=Acw; \ No newline at end of file +const a1049_0xe7d2=['update','mandatoryDisposition','message','error','stringify','acw','[TIMER][STOP][AGENT:%s]','voiceQueues','timers','agents','[%s][HANGUPATTENDEDTRANSFER:LINKEDID]','prototype','catch','origtransfereruniqueid','[%s][UPDATE][ERRORS:%s]','queue','startAcw','moment','isNil','transfereeuniqueid','interface','hanguprequest','syncAgentConnectPreview','transfererlinkedid','syncAgentConnect','../rpc/voiceAgentReport','Auto-Pause','[ACW][syncAgentConnectPreview]\x20%s','exports','mandatoryDispositionPause','custom:agentConnectPreview','syncHangup','uniqueid','agentconnect','secondtransfereruniqueid','getAgent','milliseconds','destlinkedid','autopause','YYYY-MM-DD\x20HH:mm:ss','../rpc/user','[ACW][syncHangup]\x20%s','channels','[ACW][STOP]\x20Interface\x20%s\x20doesn\x27t\x20have\x20timer','bind','[ACW][START]\x20%s','[ACW][syncAgentConnect]\x20%s','attended','syncAttendedTransfer','linkedid','stopAcw','[ACW][syncAgentRingNoAnswer]\x20%s','name','syncBlindTransfer','then','syncAgentRingNoAnswer','lastPauseAt','acwTimeout','info','syncHangupRequest','[%s][TIMER:%s][AGENT:%s][QUEUE:%s]','[%s][HANGUP:LINKEDID]','[%s][BLINDTRANSFER:UNIQUEID]','timer','agentringnoanswer','voicePause','[%s][BLINDTRANSFER:LINKEDID]','saveUnpause','transfertargetuniqueid','savePause','[%s][HANGUP:UNIQUEID]','[ACW][syncHangupRequest]\x20%s','[%s][INPAUSE][AGENT:%s][QUEUE:%s]','[%s][START][AGENT:%s][QUEUE:%s]','Action','lodash','seconds','isUndefined','transfereruniqueid'];(function(_0x1535d4,_0xe7d21d){const _0x27f28f=function(_0x3b0a74){while(--_0x3b0a74){_0x1535d4['push'](_0x1535d4['shift']());}};_0x27f28f(++_0xe7d21d);}(a1049_0xe7d2,0x109));const a1049_0x27f2=function(_0x1535d4,_0xe7d21d){_0x1535d4=_0x1535d4-0x0;let _0x27f28f=a1049_0xe7d2[_0x1535d4];return _0x27f28f;};const _0x2dbaef=a1049_0x27f2;'use strict';const _=require(_0x2dbaef('0x2f')),moment=require(_0x2dbaef('0x44')),ami=require('../ami'),logger=require('../../../config/logger')(_0x2dbaef('0x38')),RpcUser=require(_0x2dbaef('0xc')),RpcVoiceAgentReport=require(_0x2dbaef('0x4c'));function Acw(_0x3b0a74){const _0x12cd70=_0x2dbaef;this[_0x12cd70('0x3a')]=_0x3b0a74[_0x12cd70('0x3a')],this[_0x12cd70('0x3c')]=_0x3b0a74[_0x12cd70('0x3c')],this[_0x12cd70('0x3b')]=_0x3b0a74[_0x12cd70('0x3b')],this[_0x12cd70('0xe')]={},ami['on'](_0x12cd70('0x5'),this[_0x12cd70('0x4b')][_0x12cd70('0x10')](this)),ami['on'](_0x12cd70('0x48'),this[_0x12cd70('0x1f')][_0x12cd70('0x10')](this)),ami['on']('hangup',this['syncHangup'][_0x12cd70('0x10')](this)),ami['on'](_0x12cd70('0x24'),this[_0x12cd70('0x1b')][_0x12cd70('0x10')](this)),ami['on']('attendedtransfer',this[_0x12cd70('0x14')]['bind'](this)),ami['on']('blindtransfer',this[_0x12cd70('0x19')][_0x12cd70('0x10')](this)),ami['on'](_0x12cd70('0x2'),this[_0x12cd70('0x49')][_0x12cd70('0x10')](this));}function getDiff(_0x5890a8){const _0x237c28=_0x2dbaef,_0x40708a=moment()[_0x237c28('0x8')](0x0),_0x129ef2=moment(_0x5890a8)[_0x237c28('0x8')](0x0);return _0x40708a['diff'](_0x129ef2,_0x237c28('0x30'));}Acw['prototype']['startAcw']=function(_0x4aa5fd){const _0x422208=_0x2dbaef;try{const _0x49e1b4=this,_0x5c650e=this['channels'][_0x4aa5fd][_0x422208('0x47')],_0x28ca55=this['channels'][_0x4aa5fd]['queue'],_0x3f1ab0=this['voiceQueues'][_0x28ca55];let _0x43db9e=![],_0x2186a6='ACW';_0x3f1ab0['mandatoryDisposition']&&(_0x3f1ab0[_0x422208('0x1')][_0x422208('0x18')]&&(_0x43db9e=!![],_0x2186a6=_0x3f1ab0['mandatoryDispositionPause']['name'])),ami[_0x422208('0x2e')]({'action':'QueuePause','interface':_0x5c650e,'paused':!![],'reason':_0x2186a6})[_0x422208('0x1a')](function(){const _0x489ceb=_0x422208;if(_0x49e1b4[_0x489ceb('0x3c')][_0x5c650e])return RpcUser[_0x489ceb('0x7')](_0x49e1b4[_0x489ceb('0x3c')][_0x5c650e]['id'])[_0x489ceb('0x1a')](function(_0x525a8d){const _0x390381=_0x489ceb;if(_0x525a8d&&!_0x525a8d[_0x390381('0x25')]){logger['info'](_0x390381('0x2d'),_0x4aa5fd,_0x5c650e,_0x28ca55);const _0x3164a0=_0x49e1b4[_0x390381('0xe')][_0x4aa5fd][_0x390381('0x13')]&&_0x49e1b4[_0x390381('0xe')][_0x4aa5fd]['destlinkedid']?_0x49e1b4[_0x390381('0xe')][_0x4aa5fd]['destlinkedid']:_0x4aa5fd;return RpcUser['savePause'](_0x49e1b4[_0x390381('0x3c')][_0x5c650e],_0x2186a6,_0x3164a0)[_0x390381('0x1a')](function(){const _0x1b89f4=_0x390381;!_0x43db9e&&(_0x49e1b4[_0x1b89f4('0x3b')][_0x5c650e]={},logger[_0x1b89f4('0x1e')](_0x1b89f4('0x20'),_0x4aa5fd,_0x49e1b4[_0x1b89f4('0x3a')][_0x28ca55]['acwTimeout'],_0x5c650e,_0x28ca55),_0x49e1b4['timers'][_0x5c650e][_0x1b89f4('0x23')]=setTimeout(_0x49e1b4[_0x1b89f4('0x16')]['bind'](_0x49e1b4,_0x5c650e),_0x49e1b4['voiceQueues'][_0x28ca55][_0x1b89f4('0x1d')]*0x3e8),_0x49e1b4['timers'][_0x5c650e][_0x1b89f4('0x1c')]=moment()['format'](_0x1b89f4('0xb')),_0x49e1b4[_0x1b89f4('0x3b')][_0x5c650e][_0x1b89f4('0x4')]=_0x4aa5fd,_0x49e1b4[_0x1b89f4('0x3b')][_0x5c650e][_0x1b89f4('0x42')]=_0x28ca55,_0x49e1b4[_0x1b89f4('0x3b')][_0x5c650e]['updateAcw']=function(){const _0xfe8527=_0x1b89f4,_0x3ed5db=getDiff(_0x49e1b4[_0xfe8527('0x3b')][_0x5c650e]['lastPauseAt']);clearTimeout(_0x49e1b4[_0xfe8527('0x3b')][_0x5c650e][_0xfe8527('0x23')]),_0x49e1b4[_0xfe8527('0x3b')][_0x5c650e][_0xfe8527('0x23')]=![],RpcVoiceAgentReport[_0xfe8527('0x33')]({'acwtime':_0x3ed5db},_0x49e1b4[_0xfe8527('0x3b')][_0x5c650e][_0xfe8527('0x4')],_0x5c650e)[_0xfe8527('0x1a')](function(_0x33a1b2){const _0x504da6=_0xfe8527;logger[_0x504da6('0x1e')]('[%s][UPDATE][ACWTIME:%s]',_0x4aa5fd,_0x3ed5db,_0x33a1b2);})[_0xfe8527('0x3f')](function(_0x43bf5e){const _0x443b9e=_0xfe8527;logger['error'](_0x443b9e('0x41'),_0x4aa5fd,_0x43bf5e);}),delete _0x49e1b4['timers'][_0x5c650e];});});}else logger['info'](_0x390381('0x2c'),_0x4aa5fd,_0x5c650e,_0x28ca55);});})[_0x422208('0x3f')](function(){logger['error']('[%s][TIMER:%s][AGENT:%s][QUEUE:%s]',_0x4aa5fd,_0x49e1b4['voiceQueues'][_0x28ca55]['acwTimeout'],_0x5c650e,_0x28ca55);})['finally'](function(){const _0x4e67a0=_0x422208;delete _0x49e1b4[_0x4e67a0('0xe')][_0x4aa5fd];});}catch(_0x36e518){logger['error'](_0x422208('0x11'),_0x36e518[_0x422208('0x35')]);}},Acw[_0x2dbaef('0x3e')]['stopAcw']=function(_0x204510){const _0x2a5575=_0x2dbaef;try{const _0x1f76e7=this;if(_0x1f76e7[_0x2a5575('0x3b')][_0x204510]){_0x1f76e7['timers'][_0x204510]['timer']=![];const _0x1a5f54=_0x1f76e7[_0x2a5575('0x3b')][_0x204510][_0x2a5575('0x4')],_0xc0af1b=_0x1f76e7[_0x2a5575('0x3b')][_0x204510][_0x2a5575('0x42')],_0x316697=_0x1f76e7['voiceQueues'][_0xc0af1b]['acwTimeout'];logger[_0x2a5575('0x1e')](_0x2a5575('0x39'),_0x204510),RpcUser[_0x2a5575('0x27')](this[_0x2a5575('0x3c')][_0x204510]),RpcVoiceAgentReport['update']({'acwtime':_0x316697,'agentacw':!![]},_0x1a5f54,_0x204510)[_0x2a5575('0x1a')](function(_0x135227){const _0x2388a1=_0x2a5575;logger[_0x2388a1('0x1e')]('[%s][UPDATE][ACWTIME:%s]',_0x1a5f54,_0x316697,_0x135227);})[_0x2a5575('0x3f')](function(_0x21f584){const _0x289c1a=_0x2a5575;logger[_0x289c1a('0x36')](_0x289c1a('0x41'),_0x1a5f54,_0x21f584);});}else logger['error'](_0x2a5575('0xf'),_0x204510),_0x1f76e7[_0x2a5575('0x3b')]&&logger[_0x2a5575('0x1e')]('[ACW][TIMERS]',JSON[_0x2a5575('0x37')](_0x1f76e7[_0x2a5575('0x3b')]));}catch(_0x16263c){logger['error']('[ACW][STOP]\x20%s',_0x16263c['message']);}},Acw[_0x2dbaef('0x3e')][_0x2dbaef('0x4b')]=function(_0x5074cf){const _0x230bd5=_0x2dbaef;try{this[_0x230bd5('0x3a')][_0x5074cf[_0x230bd5('0x42')]]&&(this['voiceQueues'][_0x5074cf[_0x230bd5('0x42')]][_0x230bd5('0x38')]||this[_0x230bd5('0x3a')][_0x5074cf[_0x230bd5('0x42')]][_0x230bd5('0x34')])&&(this[_0x230bd5('0x3c')][_0x5074cf[_0x230bd5('0x47')]]&&(this['channels'][_0x5074cf[_0x230bd5('0x4')]]={'queue':_0x5074cf[_0x230bd5('0x42')],'interface':_0x5074cf[_0x230bd5('0x47')],'destlinkedid':_0x5074cf[_0x230bd5('0x9')]}));}catch(_0x2dd458){logger[_0x230bd5('0x36')](_0x230bd5('0x12'),_0x2dd458[_0x230bd5('0x35')]);}},Acw[_0x2dbaef('0x3e')]['syncAgentConnectPreview']=function(_0x399179){const _0x40df32=_0x2dbaef;try{this[_0x40df32('0x3a')][_0x399179[_0x40df32('0x42')]]&&(this[_0x40df32('0x3a')][_0x399179[_0x40df32('0x42')]]['acw']||this[_0x40df32('0x3a')][_0x399179['queue']]['mandatoryDisposition'])&&(this['agents'][_0x399179[_0x40df32('0x47')]]&&(this[_0x40df32('0xe')][_0x399179[_0x40df32('0x4')]]={'queue':_0x399179[_0x40df32('0x42')],'interface':_0x399179[_0x40df32('0x47')]}));}catch(_0x57befe){logger['error'](_0x40df32('0x4e'),_0x57befe['message']);}},Acw['prototype']['syncHangupRequest']=function(_0xbd069d){const _0x351ee0=_0x2dbaef;try{if(this['channels'][_0xbd069d[_0x351ee0('0x4')]]&&_[_0x351ee0('0x31')](this['channels'][_0xbd069d['uniqueid']][_0x351ee0('0x13')]))logger[_0x351ee0('0x1e')](_0x351ee0('0x2a'),_0xbd069d[_0x351ee0('0x4')]),this['startAcw'](_0xbd069d[_0x351ee0('0x4')]);else this[_0x351ee0('0xe')][_0xbd069d[_0x351ee0('0x15')]]&&_['isUndefined'](this['channels'][_0xbd069d[_0x351ee0('0x15')]][_0x351ee0('0x13')])&&(logger[_0x351ee0('0x1e')](_0x351ee0('0x21'),_0xbd069d[_0x351ee0('0x15')]),this[_0x351ee0('0x43')](_0xbd069d['linkedid']));}catch(_0x4b3ba2){logger['error'](_0x351ee0('0x2b'),_0x4b3ba2[_0x351ee0('0x35')]);}},Acw[_0x2dbaef('0x3e')][_0x2dbaef('0x3')]=function(_0xc5b139){const _0x17f05d=_0x2dbaef;try{if(this[_0x17f05d('0xe')][_0xc5b139[_0x17f05d('0x4')]]&&this[_0x17f05d('0xe')][_0xc5b139[_0x17f05d('0x4')]][_0x17f05d('0x13')])logger['info']('[%s][HANGUPATTENDEDTRANSFER:UNIQUEID]',_0xc5b139[_0x17f05d('0x4')]),this[_0x17f05d('0x43')](_0xc5b139[_0x17f05d('0x4')]);else this[_0x17f05d('0xe')][_0xc5b139[_0x17f05d('0x15')]]&&this['channels'][_0xc5b139[_0x17f05d('0x15')]][_0x17f05d('0x13')]&&(logger['info'](_0x17f05d('0x3d'),_0xc5b139[_0x17f05d('0x15')]),this[_0x17f05d('0x43')](_0xc5b139[_0x17f05d('0x15')]));}catch(_0xf81319){logger[_0x17f05d('0x36')](_0x17f05d('0xd'),_0xf81319[_0x17f05d('0x35')]);}},Acw[_0x2dbaef('0x3e')][_0x2dbaef('0x14')]=function(_0x1cc945){const _0x1d177b=_0x2dbaef;try{if(!_[_0x1d177b('0x45')](this['channels'][_0x1cc945[_0x1d177b('0x46')]]))this[_0x1d177b('0x43')](_0x1cc945['transfereeuniqueid']),this[_0x1d177b('0xe')][_0x1cc945[_0x1d177b('0x6')]]&&(this['channels'][_0x1cc945[_0x1d177b('0x6')]]['attended']=!![],this[_0x1d177b('0xe')][_0x1cc945['transfertargetuniqueid']]=this[_0x1d177b('0xe')][_0x1cc945[_0x1d177b('0x6')]],delete this[_0x1d177b('0xe')][_0x1cc945[_0x1d177b('0x6')]]);else!_[_0x1d177b('0x45')](this[_0x1d177b('0xe')][_0x1cc945[_0x1d177b('0x28')]])&&(this[_0x1d177b('0x43')](_0x1cc945[_0x1d177b('0x28')]),this[_0x1d177b('0xe')][_0x1cc945[_0x1d177b('0x40')]]&&(this['channels'][_0x1cc945[_0x1d177b('0x40')]][_0x1d177b('0x13')]=!![],this[_0x1d177b('0xe')][_0x1cc945[_0x1d177b('0x46')]]=this[_0x1d177b('0xe')][_0x1cc945[_0x1d177b('0x40')]],delete this[_0x1d177b('0xe')][_0x1cc945[_0x1d177b('0x40')]]));}catch(_0x7cc353){logger[_0x1d177b('0x36')]('[ACW][syncAttendedTransfer]\x20%s',_0x7cc353[_0x1d177b('0x35')]);}},Acw[_0x2dbaef('0x3e')][_0x2dbaef('0x19')]=function(_0x503bcc){const _0x1bb446=_0x2dbaef;try{if(this[_0x1bb446('0xe')][_0x503bcc[_0x1bb446('0x32')]])logger[_0x1bb446('0x1e')](_0x1bb446('0x22'),JSON[_0x1bb446('0x37')](_0x503bcc[_0x1bb446('0x32')])),this['startAcw'](_0x503bcc[_0x1bb446('0x32')]);else this[_0x1bb446('0xe')][_0x503bcc[_0x1bb446('0x4a')]]&&(logger['info'](_0x1bb446('0x26'),JSON[_0x1bb446('0x37')](_0x503bcc[_0x1bb446('0x4a')])),this[_0x1bb446('0x43')](_0x503bcc[_0x1bb446('0x4a')]));}catch(_0x4a9df8){logger[_0x1bb446('0x36')]('[ACW][syncBlindTransfer]\x20%s',_0x4a9df8[_0x1bb446('0x35')]);}},Acw[_0x2dbaef('0x3e')]['syncAgentRingNoAnswer']=function(_0x3ccc9a){const _0x2e9087=_0x2dbaef;try{if(this[_0x2e9087('0x3a')][_0x3ccc9a[_0x2e9087('0x42')]]&&this[_0x2e9087('0x3a')][_0x3ccc9a['queue']][_0x2e9087('0xa')]==='all'){if(this['agents'][_0x3ccc9a[_0x2e9087('0x47')]])return logger['info']('[%s][AUTOPAUSE][AGENT:%s][QUEUE:%]',_0x3ccc9a[_0x2e9087('0x4')],_0x3ccc9a[_0x2e9087('0x47')],_0x3ccc9a['queue']),RpcUser[_0x2e9087('0x29')](this[_0x2e9087('0x3c')][_0x3ccc9a[_0x2e9087('0x47')]],_0x2e9087('0x4d'),_0x3ccc9a[_0x2e9087('0x4')]);}}catch(_0xe604f5){logger['error'](_0x2e9087('0x17'),_0xe604f5[_0x2e9087('0x35')]);}},module[_0x2dbaef('0x0')]=Acw; \ No newline at end of file diff --git a/server/services/ami/ami.js b/server/services/ami/ami.js index 6022714..35fabe4 100644 --- a/server/services/ami/ami.js +++ b/server/services/ami/ami.js @@ -1 +1 @@ -const a1049_0x1874=['Action','actionSipShowRegistry','Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s','port','asterisk','actionQueueSummary','once','connect','devicestatelist','../../config/environment','coreshowchannels','util','password','Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s','keepConnected','format','actionSipPeerStatus','actionCoreShowChannels','error','then','queuesummary','log','exports','Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s','promisify','info','close','Fullybooted\x20\x22%s\x22\x20to\x20%s:%s','../../config/logger','Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s','actionDeviceStateList','inspect','asterisk-manager','shutdown','username'];(function(_0x1081af,_0x18747c){const _0x4af0dd=function(_0x4cc59a){while(--_0x4cc59a){_0x1081af['push'](_0x1081af['shift']());}};_0x4af0dd(++_0x18747c);}(a1049_0x1874,0x1a9));const a1049_0x4af0=function(_0x1081af,_0x18747c){_0x1081af=_0x1081af-0x0;let _0x4af0dd=a1049_0x1874[_0x1081af];return _0x4af0dd;};const _0x24dcff=a1049_0x4af0;'use strict';const Manager=require(_0x24dcff('0x1b')),util=require(_0x24dcff('0x6')),logger=require(_0x24dcff('0x17'))('ami'),config=require(_0x24dcff('0x4')),ami=new Manager(config[_0x24dcff('0x22')]['port'],config[_0x24dcff('0x22')]['ip'],config[_0x24dcff('0x22')][_0x24dcff('0x1d')],config['asterisk'][_0x24dcff('0x7')],!![]);ami[_0x24dcff('0x9')](),ami['Action']=util[_0x24dcff('0x13')](ami['action']);function error(_0x4cc59a){const _0xba52ec=_0x24dcff;logger[_0xba52ec('0xd')](util[_0xba52ec('0xa')](_0xba52ec('0x20'),config[_0xba52ec('0x22')][_0xba52ec('0x1d')],config[_0xba52ec('0x22')]['ip'],config[_0xba52ec('0x22')][_0xba52ec('0x21')],util[_0xba52ec('0x1a')](_0x4cc59a,![],null)));}function close(){const _0x546baf=_0x24dcff;logger[_0x546baf('0xd')](util[_0x546baf('0xa')](_0x546baf('0x12'),config[_0x546baf('0x22')][_0x546baf('0x1d')],config[_0x546baf('0x22')]['ip'],config['asterisk'][_0x546baf('0x21')]));}ami[_0x24dcff('0x1f')]=function(){return function(){const _0x57834f=a1049_0x4af0;return ami[_0x57834f('0x1e')]({'action':'sipshowregistry'});};},ami[_0x24dcff('0x19')]=function(){return function(){const _0x2eed8c=a1049_0x4af0;return ami[_0x2eed8c('0x1e')]({'action':_0x2eed8c('0x3')});};},ami[_0x24dcff('0xb')]=function(){return function(){const _0x194e09=a1049_0x4af0;return ami[_0x194e09('0x1e')]({'action':'sippeerstatus'});};},ami['actionQueueSummary']=function(){return function(){const _0x2f93ec=a1049_0x4af0;return ami[_0x2f93ec('0x1e')]({'action':_0x2f93ec('0xf')});};},ami['actionCoreShowChannels']=function(){return function(){const _0x548169=a1049_0x4af0;return ami[_0x548169('0x1e')]({'action':_0x548169('0x5')});};};function connect(){const _0x6ac804=_0x24dcff;logger[_0x6ac804('0x14')](util['format'](_0x6ac804('0x8'),config[_0x6ac804('0x22')]['username'],config[_0x6ac804('0x22')]['ip'],config[_0x6ac804('0x22')][_0x6ac804('0x21')])),ami[_0x6ac804('0x1')]('error',error),ami[_0x6ac804('0x1')](_0x6ac804('0x15'),close);}ami['on'](_0x24dcff('0x2'),connect),ami['on'](_0x24dcff('0x1c'),function(_0x32b61d){const _0xf71b71=_0x24dcff;logger['info'](util['format'](_0xf71b71('0x18'),config['asterisk'][_0xf71b71('0x1d')],config[_0xf71b71('0x22')]['ip'],config[_0xf71b71('0x22')][_0xf71b71('0x21')],util[_0xf71b71('0x1a')](_0x32b61d,![],null)));}),ami['on']('fullybooted',function(){const _0x3e286f=_0x24dcff;return logger[_0x3e286f('0x14')](util['format'](_0x3e286f('0x16'),config[_0x3e286f('0x22')][_0x3e286f('0x1d')],config[_0x3e286f('0x22')]['ip'],config[_0x3e286f('0x22')][_0x3e286f('0x21')])),Promise['resolve']()[_0x3e286f('0xe')](ami[_0x3e286f('0x1f')]())[_0x3e286f('0xe')](ami['actionDeviceStateList']())[_0x3e286f('0xe')](ami[_0x3e286f('0xb')]())[_0x3e286f('0xe')](ami[_0x3e286f('0x0')]())[_0x3e286f('0xe')](ami[_0x3e286f('0xc')]())['catch'](function(_0x45aec6){const _0x30006d=_0x3e286f;console[_0x30006d('0x10')](_0x45aec6);});}),ami[_0x24dcff('0x1')](_0x24dcff('0xd'),error),ami['once'](_0x24dcff('0x15'),close),module[_0x24dcff('0x11')]=ami; \ No newline at end of file +const a1050_0x6137=['ami','Action','promisify','close','actionCoreShowChannels','catch','actionQueueSummary','actionSipPeerStatus','username','Manager\x20\x22%s\x22\x20closed\x20to\x20%s:%s','Manager\x20\x22%s\x22\x20error\x20to\x20%s:%s\x20with:\x0a%s','asterisk','devicestatelist','connect','info','util','then','port','keepConnected','exports','once','log','shutdown','coreshowchannels','error','action','resolve','asterisk-manager','Manager\x20\x22%s\x22\x20logged\x20on\x20to\x20%s:%s','sippeerstatus','format','actionDeviceStateList','password','sipshowregistry'];(function(_0x5bea75,_0x61372b){const _0x305855=function(_0x23e06a){while(--_0x23e06a){_0x5bea75['push'](_0x5bea75['shift']());}};_0x305855(++_0x61372b);}(a1050_0x6137,0x1ca));const a1050_0x3058=function(_0x5bea75,_0x61372b){_0x5bea75=_0x5bea75-0x0;let _0x305855=a1050_0x6137[_0x5bea75];return _0x305855;};const _0x9c0f3a=a1050_0x3058;'use strict';const Manager=require(_0x9c0f3a('0xb')),util=require(_0x9c0f3a('0x21')),logger=require('../../config/logger')(_0x9c0f3a('0x12')),config=require('../../config/environment'),ami=new Manager(config['asterisk'][_0x9c0f3a('0x1')],config[_0x9c0f3a('0x1d')]['ip'],config['asterisk'][_0x9c0f3a('0x1a')],config[_0x9c0f3a('0x1d')][_0x9c0f3a('0x10')],!![]);ami[_0x9c0f3a('0x2')](),ami[_0x9c0f3a('0x13')]=util[_0x9c0f3a('0x14')](ami[_0x9c0f3a('0x9')]);function error(_0x23e06a){const _0x31f731=_0x9c0f3a;logger['error'](util[_0x31f731('0xe')](_0x31f731('0x1c'),config[_0x31f731('0x1d')][_0x31f731('0x1a')],config['asterisk']['ip'],config[_0x31f731('0x1d')][_0x31f731('0x1')],util['inspect'](_0x23e06a,![],null)));}function close(){const _0x2e9d06=_0x9c0f3a;logger[_0x2e9d06('0x8')](util[_0x2e9d06('0xe')](_0x2e9d06('0x1b'),config[_0x2e9d06('0x1d')]['username'],config[_0x2e9d06('0x1d')]['ip'],config['asterisk'][_0x2e9d06('0x1')]));}ami['actionSipShowRegistry']=function(){return function(){const _0x353113=a1050_0x3058;return ami[_0x353113('0x13')]({'action':_0x353113('0x11')});};},ami[_0x9c0f3a('0xf')]=function(){return function(){const _0x508a19=a1050_0x3058;return ami[_0x508a19('0x13')]({'action':_0x508a19('0x1e')});};},ami[_0x9c0f3a('0x19')]=function(){return function(){const _0x57a776=a1050_0x3058;return ami[_0x57a776('0x13')]({'action':_0x57a776('0xd')});};},ami['actionQueueSummary']=function(){return function(){const _0x23d6d2=a1050_0x3058;return ami[_0x23d6d2('0x13')]({'action':'queuesummary'});};},ami[_0x9c0f3a('0x16')]=function(){return function(){const _0xa72beb=a1050_0x3058;return ami[_0xa72beb('0x13')]({'action':_0xa72beb('0x7')});};};function connect(){const _0xac29c5=_0x9c0f3a;logger[_0xac29c5('0x20')](util[_0xac29c5('0xe')](_0xac29c5('0xc'),config[_0xac29c5('0x1d')]['username'],config[_0xac29c5('0x1d')]['ip'],config[_0xac29c5('0x1d')][_0xac29c5('0x1')])),ami[_0xac29c5('0x4')](_0xac29c5('0x8'),error),ami[_0xac29c5('0x4')](_0xac29c5('0x15'),close);}ami['on'](_0x9c0f3a('0x1f'),connect),ami['on'](_0x9c0f3a('0x6'),function(_0x53457f){const _0x25832d=_0x9c0f3a;logger[_0x25832d('0x20')](util[_0x25832d('0xe')]('Shutdown\x20\x22%s\x22\x20to\x20%s:%s\x20with:\x0a%s',config['asterisk'][_0x25832d('0x1a')],config[_0x25832d('0x1d')]['ip'],config[_0x25832d('0x1d')][_0x25832d('0x1')],util['inspect'](_0x53457f,![],null)));}),ami['on']('fullybooted',function(){const _0x193a24=_0x9c0f3a;return logger[_0x193a24('0x20')](util['format']('Fullybooted\x20\x22%s\x22\x20to\x20%s:%s',config[_0x193a24('0x1d')][_0x193a24('0x1a')],config['asterisk']['ip'],config[_0x193a24('0x1d')][_0x193a24('0x1')])),Promise[_0x193a24('0xa')]()[_0x193a24('0x0')](ami['actionSipShowRegistry']())[_0x193a24('0x0')](ami[_0x193a24('0xf')]())['then'](ami[_0x193a24('0x19')]())[_0x193a24('0x0')](ami[_0x193a24('0x18')]())[_0x193a24('0x0')](ami[_0x193a24('0x16')]())[_0x193a24('0x17')](function(_0x1e2677){const _0x25bb01=_0x193a24;console[_0x25bb01('0x5')](_0x1e2677);});}),ami['once'](_0x9c0f3a('0x8'),error),ami[_0x9c0f3a('0x4')](_0x9c0f3a('0x15'),close),module[_0x9c0f3a('0x3')]=ami; \ No newline at end of file diff --git a/server/services/ami/client.js b/server/services/ami/client.js index 1a459d7..8229d86 100644 --- a/server/services/ami/client.js +++ b/server/services/ami/client.js @@ -1 +1 @@ -const a1050_0x3c33=['jayson/promise','error','memberReport','client','Request','result','rpc','then','ami','message','../../config/logger','debug','exports'];(function(_0x4533db,_0x3c3388){const _0x1aa68d=function(_0xca81fb){while(--_0xca81fb){_0x4533db['push'](_0x4533db['shift']());}};_0x1aa68d(++_0x3c3388);}(a1050_0x3c33,0x6c));const a1050_0x1aa6=function(_0x4533db,_0x3c3388){_0x4533db=_0x4533db-0x0;let _0x1aa68d=a1050_0x3c33[_0x4533db];return _0x1aa68d;};const _0x1f6078=a1050_0x1aa6;'use strict';const jayson=require(_0x1f6078('0x9')),logger=require(_0x1f6078('0x6'))(_0x1f6078('0x4')),client=jayson[_0x1f6078('0xc')]['http']({'port':0x2329});client[_0x1f6078('0x0')]=function(_0xca81fb,_0x8f7ff2){return new Promise(function(_0x312921,_0x1f6530){const _0x28298e=a1050_0x1aa6;return client['request'](_0xca81fb,_0x8f7ff2)[_0x28298e('0x3')](function(_0x35ec81){const _0x3e3985=_0x28298e;return logger[_0x3e3985('0x7')](_0x3e3985('0x2'),'memberReport',_0xca81fb,_0x8f7ff2,_0x35ec81),_0x35ec81['error']?(logger[_0x3e3985('0xa')](_0x3e3985('0x2'),_0x3e3985('0xb'),_0xca81fb,_0x35ec81['error'][_0x3e3985('0x5')],_0x8f7ff2),_0x1f6530(_0x35ec81[_0x3e3985('0xa')][_0x3e3985('0x5')])):_0x312921(_0x35ec81[_0x3e3985('0x1')]);})['catch'](function(_0x59daeb){const _0x4de601=_0x28298e;return logger[_0x4de601('0xa')](_0x4de601('0x2'),_0x4de601('0xb'),_0xca81fb,_0x59daeb,_0x8f7ff2),_0x1f6530(_0x59daeb);});});},module[_0x1f6078('0x8')]=client; \ No newline at end of file +const a1051_0x50fa=['rpc','client','error','http','Request','catch','memberReport','message','../../config/logger','ami','debug','jayson/promise','result','then','exports'];(function(_0x215fde,_0x50fa2e){const _0x10f4a7=function(_0x18c705){while(--_0x18c705){_0x215fde['push'](_0x215fde['shift']());}};_0x10f4a7(++_0x50fa2e);}(a1051_0x50fa,0xae));const a1051_0x10f4=function(_0x215fde,_0x50fa2e){_0x215fde=_0x215fde-0x0;let _0x10f4a7=a1051_0x50fa[_0x215fde];return _0x10f4a7;};const _0x236ac9=a1051_0x10f4;'use strict';const jayson=require(_0x236ac9('0x2')),logger=require(_0x236ac9('0xe'))(_0x236ac9('0x0')),client=jayson[_0x236ac9('0x7')][_0x236ac9('0x9')]({'port':0x2329});client[_0x236ac9('0xa')]=function(_0x18c705,_0x231a4f){return new Promise(function(_0x4495cc,_0x4a4fba){const _0x242c46=a1051_0x10f4;return client['request'](_0x18c705,_0x231a4f)[_0x242c46('0x4')](function(_0x3d2fad){const _0x30c237=_0x242c46;return logger[_0x30c237('0x1')]('rpc','memberReport',_0x18c705,_0x231a4f,_0x3d2fad),_0x3d2fad['error']?(logger[_0x30c237('0x8')](_0x30c237('0x6'),'memberReport',_0x18c705,_0x3d2fad[_0x30c237('0x8')][_0x30c237('0xd')],_0x231a4f),_0x4a4fba(_0x3d2fad[_0x30c237('0x8')]['message'])):_0x4495cc(_0x3d2fad[_0x30c237('0x3')]);})[_0x242c46('0xb')](function(_0x170656){const _0x54d784=_0x242c46;return logger[_0x54d784('0x8')](_0x54d784('0x6'),_0x54d784('0xc'),_0x18c705,_0x170656,_0x231a4f),_0x4a4fba(_0x170656);});});},module[_0x236ac9('0x5')]=client; \ No newline at end of file diff --git a/server/services/ami/dialer/action.js b/server/services/ami/dialer/action.js index d661cba..4f3af47 100644 --- a/server/services/ami/dialer/action.js +++ b/server/services/ami/dialer/action.js @@ -1 +1 @@ -const a1051_0x3976=['lastName','string','countdropretry','name','queue','phone','CampaignId','originatecalleridname','countnosuchnumberretry','firstName','countbusyretry','substring','getQueue','countcongestionretry','recallme','ContactFirstName','originatecalleridnum','format','VoiceQueueId','scheduledat','active','dialCutDigit','callbackat','countmachineretry','ListId','lodash','prototype','Contact','isNil','uniqueid','UserId','YYYY-MM-DD\x20HH:mm:ss','callback','ContactId','type','idHopper','countabandonedretry','voiceQueue','moment','countnoanswerretry','number','countagentrejectretry','callbackuniqueid'];(function(_0x4f703b,_0x3976d4){const _0x1e5741=function(_0x5e7d9b){while(--_0x5e7d9b){_0x4f703b['push'](_0x4f703b['shift']());}};_0x1e5741(++_0x3976d4);}(a1051_0x3976,0xae));const a1051_0x1e57=function(_0x4f703b,_0x3976d4){_0x4f703b=_0x4f703b-0x0;let _0x1e5741=a1051_0x3976[_0x4f703b];return _0x1e5741;};const _0xdd3530=a1051_0x1e57;'use strict';const util=require('util'),_=require(_0xdd3530('0x17')),moment=require(_0xdd3530('0x24'));function checkNameSurname(_0x5e7d9b,_0x4b9018,_0x1fd09b){const _0x4039a5=_0xdd3530;let _0x36d050='';!_[_0x4039a5('0x1a')](_0x4b9018)&&_0x4039a5('0x2a')===typeof _0x4b9018&&(_0x36d050+=_0x4b9018);!_['isNil'](_0x1fd09b)&&_0x4039a5('0x2a')===typeof _0x1fd09b&&(_0x36d050+='\x20'+_0x1fd09b);if(_0x36d050!=='')return _0x36d050;return _0x5e7d9b;}function Action(_0x237a35,_0x29f907,_0x588317){const _0xa5a0cb=_0xdd3530;this[_0xa5a0cb('0x23')]=_0x237a35,this[_0xa5a0cb('0x1b')]=_0x588317||undefined,this['name']=checkNameSurname(_0x29f907[_0xa5a0cb('0x19')][_0xa5a0cb('0x3')],_0x29f907[_0xa5a0cb('0x19')]['firstName'],_0x29f907[_0xa5a0cb('0x19')][_0xa5a0cb('0x29')]),this[_0xa5a0cb('0x26')]=_0x29f907[_0xa5a0cb('0x19')]['phone'],this['queue']=_0x237a35['name'],this[_0xa5a0cb('0x12')]=_0x29f907[_0xa5a0cb('0x12')]||![],this[_0xa5a0cb('0x20')]=_0x237a35['type'],this['dialQueueTimeout']=_0x237a35['dialQueueTimeout']||0x3,this['scheduledat']=_0x29f907[_0xa5a0cb('0x11')],this[_0xa5a0cb('0x8')]=_0x29f907['countbusyretry'],this[_0xa5a0cb('0xb')]=_0x29f907[_0xa5a0cb('0xb')],this[_0xa5a0cb('0x25')]=_0x29f907['countnoanswerretry'],this[_0xa5a0cb('0x6')]=_0x29f907[_0xa5a0cb('0x6')],this['countdropretry']=_0x29f907[_0xa5a0cb('0x0')],this[_0xa5a0cb('0x22')]=_0x29f907[_0xa5a0cb('0x22')],this[_0xa5a0cb('0x15')]=_0x29f907[_0xa5a0cb('0x15')],this[_0xa5a0cb('0x27')]=_0x29f907[_0xa5a0cb('0x27')],this[_0xa5a0cb('0x1f')]=_0x29f907[_0xa5a0cb('0x1f')],this[_0xa5a0cb('0x16')]=_0x29f907[_0xa5a0cb('0x16')],this['UserId']=_0x29f907[_0xa5a0cb('0x1c')],this[_0xa5a0cb('0x10')]=_0x29f907[_0xa5a0cb('0x10')],this[_0xa5a0cb('0x4')]=_0x29f907['CampaignId'],this[_0xa5a0cb('0x21')]=_0x29f907['id'],this[_0xa5a0cb('0xd')]=_0x29f907[_0xa5a0cb('0x19')][_0xa5a0cb('0x7')]||'',this['starttime']=moment()[_0xa5a0cb('0xf')](_0xa5a0cb('0x1d')),this[_0xa5a0cb('0x1e')]=_0x29f907[_0xa5a0cb('0x1e')],this[_0xa5a0cb('0x28')]=_0x29f907[_0xa5a0cb('0x28')],this[_0xa5a0cb('0x14')]=_0x29f907[_0xa5a0cb('0x14')],this[_0xa5a0cb('0xc')]=_0x29f907[_0xa5a0cb('0xc')],this[_0xa5a0cb('0xe')]='',this[_0xa5a0cb('0x5')]='';}Action[_0xdd3530('0x18')]['getCaller']=function(){const _0x3f0d33=_0xdd3530;return util[_0x3f0d33('0xf')]('\x22%s\x22\x20<%s>',this[_0x3f0d33('0x1')],this[_0x3f0d33('0x23')][_0x3f0d33('0x13')]>0x0?this[_0x3f0d33('0x26')][_0x3f0d33('0x9')](this[_0x3f0d33('0x23')][_0x3f0d33('0x13')]):this[_0x3f0d33('0x26')]);},Action[_0xdd3530('0x18')][_0xdd3530('0xa')]=function(){const _0x578ae1=_0xdd3530;return this[_0x578ae1('0x2')];},module['exports']=Action; \ No newline at end of file +const a1052_0x3307=['active','UserId','Contact','scheduledat','lodash','callbackuniqueid','countagentrejectretry','countdropretry','starttime','countnoanswerretry','exports','idHopper','YYYY-MM-DD\x20HH:mm:ss','type','prototype','ContactId','dialCutDigit','isNil','recallme','countbusyretry','ContactFirstName','countmachineretry','voiceQueue','number','VoiceQueueId','firstName','dialQueueTimeout','queue','format','string','callbackat','ListId','name','callback','lastName','util','countnosuchnumberretry','phone','countcongestionretry','uniqueid','CampaignId'];(function(_0x14d89f,_0x3307c0){const _0x1645db=function(_0x3ec349){while(--_0x3ec349){_0x14d89f['push'](_0x14d89f['shift']());}};_0x1645db(++_0x3307c0);}(a1052_0x3307,0x13c));const a1052_0x1645=function(_0x14d89f,_0x3307c0){_0x14d89f=_0x14d89f-0x0;let _0x1645db=a1052_0x3307[_0x14d89f];return _0x1645db;};const _0x42feb4=a1052_0x1645;'use strict';const util=require(_0x42feb4('0x6')),_=require(_0x42feb4('0x10')),moment=require('moment');function checkNameSurname(_0x3ec349,_0x187aa4,_0x1f3d33){const _0x402fc3=_0x42feb4;let _0x3fd8fa='';!_[_0x402fc3('0x1d')](_0x187aa4)&&_0x402fc3('0x0')===typeof _0x187aa4&&(_0x3fd8fa+=_0x187aa4);!_[_0x402fc3('0x1d')](_0x1f3d33)&&_0x402fc3('0x0')===typeof _0x1f3d33&&(_0x3fd8fa+='\x20'+_0x1f3d33);if(_0x3fd8fa!=='')return _0x3fd8fa;return _0x3ec349;}function Action(_0x3a6875,_0x59930a,_0x5877ff){const _0x5e1af7=_0x42feb4;this[_0x5e1af7('0x22')]=_0x3a6875,this[_0x5e1af7('0xa')]=_0x5877ff||undefined,this[_0x5e1af7('0x3')]=checkNameSurname(_0x59930a[_0x5e1af7('0xe')]['phone'],_0x59930a[_0x5e1af7('0xe')][_0x5e1af7('0x25')],_0x59930a[_0x5e1af7('0xe')][_0x5e1af7('0x5')]),this[_0x5e1af7('0x23')]=_0x59930a[_0x5e1af7('0xe')][_0x5e1af7('0x8')],this[_0x5e1af7('0x27')]=_0x3a6875[_0x5e1af7('0x3')],this[_0x5e1af7('0xc')]=_0x59930a[_0x5e1af7('0xc')]||![],this['type']=_0x3a6875[_0x5e1af7('0x19')],this[_0x5e1af7('0x26')]=_0x3a6875[_0x5e1af7('0x26')]||0x3,this[_0x5e1af7('0xf')]=_0x59930a[_0x5e1af7('0xf')],this[_0x5e1af7('0x1f')]=_0x59930a[_0x5e1af7('0x1f')],this[_0x5e1af7('0x9')]=_0x59930a[_0x5e1af7('0x9')],this[_0x5e1af7('0x15')]=_0x59930a['countnoanswerretry'],this[_0x5e1af7('0x7')]=_0x59930a[_0x5e1af7('0x7')],this[_0x5e1af7('0x13')]=_0x59930a['countdropretry'],this['countabandonedretry']=_0x59930a['countabandonedretry'],this[_0x5e1af7('0x21')]=_0x59930a[_0x5e1af7('0x21')],this['countagentrejectretry']=_0x59930a[_0x5e1af7('0x12')],this[_0x5e1af7('0x1b')]=_0x59930a[_0x5e1af7('0x1b')],this[_0x5e1af7('0x2')]=_0x59930a['ListId'],this[_0x5e1af7('0xd')]=_0x59930a[_0x5e1af7('0xd')],this['VoiceQueueId']=_0x59930a[_0x5e1af7('0x24')],this[_0x5e1af7('0xb')]=_0x59930a[_0x5e1af7('0xb')],this[_0x5e1af7('0x17')]=_0x59930a['id'],this[_0x5e1af7('0x20')]=_0x59930a[_0x5e1af7('0xe')][_0x5e1af7('0x25')]||'',this[_0x5e1af7('0x14')]=moment()[_0x5e1af7('0x28')](_0x5e1af7('0x18')),this['callback']=_0x59930a[_0x5e1af7('0x4')],this['callbackuniqueid']=_0x59930a[_0x5e1af7('0x11')],this[_0x5e1af7('0x1')]=_0x59930a[_0x5e1af7('0x1')],this[_0x5e1af7('0x1e')]=_0x59930a['recallme'],this['originatecalleridnum']='',this['originatecalleridname']='';}Action[_0x42feb4('0x1a')]['getCaller']=function(){const _0x5d0fb3=_0x42feb4;return util[_0x5d0fb3('0x28')]('\x22%s\x22\x20<%s>',this['name'],this[_0x5d0fb3('0x22')][_0x5d0fb3('0x1c')]>0x0?this['number']['substring'](this['voiceQueue']['dialCutDigit']):this['number']);},Action[_0x42feb4('0x1a')]['getQueue']=function(){return this['queue'];},module[_0x42feb4('0x16')]=Action; \ No newline at end of file diff --git a/server/services/ami/dialer/agentComplete.js b/server/services/ami/dialer/agentComplete.js index ae01587..2e3d1c4 100644 --- a/server/services/ami/dialer/agentComplete.js +++ b/server/services/ami/dialer/agentComplete.js @@ -1 +1 @@ -const a1052_0x223b=['recallme','countnoanswerretry','campaigntype','callbackuniqueid','uniqueid','responsetime','UserId','Answer','seconds','milliseconds','countdropretry','originatecalleridnum','callbackat','membername','countagentrejectretry','countnosuchnumberretry','starttime','countmachineretry','reason','ContactId','exports','type','countcongestionretry','format','endtime','number','moment','answertime','calleridname','ListId','queue','holdtime','talktime','originatecalleridname','countbusyretry','YYYY-MM-DD\x20HH:mm:ss','countabandonedretry','statedesc','scheduledat','VoiceQueueId','CampaignId'];(function(_0x279e31,_0x223b37){const _0x29845b=function(_0x32d08a){while(--_0x32d08a){_0x279e31['push'](_0x279e31['shift']());}};_0x29845b(++_0x223b37);}(a1052_0x223b,0x114));const a1052_0x2984=function(_0x279e31,_0x223b37){_0x279e31=_0x279e31-0x0;let _0x29845b=a1052_0x223b[_0x279e31];return _0x29845b;};const _0x100016=a1052_0x2984;'use strict';const moment=require(_0x100016('0x25'));function getSeconds(_0x32d08a,_0x27c70b){const _0x51629e=_0x100016,_0x14308a=moment(_0x32d08a)[_0x51629e('0x14')](0x0),_0x362f51=moment(_0x27c70b)[_0x51629e('0x14')](0x0);return _0x14308a['diff'](_0x362f51,_0x51629e('0x13'));}function AgentComplete(_0x13a86f,_0xeaf5f7){const _0x9db7=_0x100016;this['state']=0x4,this[_0x9db7('0x7')]=_0x9db7('0x12'),this[_0x9db7('0x8')]=_0x13a86f[_0x9db7('0x8')],this[_0x9db7('0x20')]=_0x13a86f[_0x9db7('0x20')],this[_0x9db7('0xd')]=_0x13a86f['type']==='outbound'?_0x9db7('0x0'):_0x13a86f[_0x9db7('0x20')],this['countbusyretry']=_0x13a86f[_0x9db7('0x4')],this['countcongestionretry']=_0x13a86f[_0x9db7('0x21')],this[_0x9db7('0xc')]=_0x13a86f[_0x9db7('0xc')],this['countglobal']=_0x13a86f[_0x9db7('0x4')]+_0x13a86f[_0x9db7('0x21')]+_0x13a86f[_0x9db7('0xc')]+_0x13a86f[_0x9db7('0x1a')]+_0x13a86f['countdropretry']+_0x13a86f['countabandonedretry']+_0x13a86f[_0x9db7('0x1c')]+_0x13a86f[_0x9db7('0x19')],this[_0x9db7('0x1a')]=_0x13a86f[_0x9db7('0x1a')],this['countdropretry']=_0x13a86f[_0x9db7('0x15')],this['countabandonedretry']=_0x13a86f[_0x9db7('0x6')],this[_0x9db7('0x1c')]=_0x13a86f[_0x9db7('0x1c')],this['countagentrejectretry']=_0x13a86f['countagentrejectretry'],this[_0x9db7('0xf')]=_0xeaf5f7[_0x9db7('0xf')],this[_0x9db7('0x27')]=_0x13a86f['name'],this['calleridnum']=_0x13a86f[_0x9db7('0x24')],this[_0x9db7('0x1b')]=_0x13a86f[_0x9db7('0x1b')],this[_0x9db7('0x10')]=_0x13a86f[_0x9db7('0x10')],this[_0x9db7('0x26')]=_0x13a86f['answertime'],this[_0x9db7('0x23')]=moment()[_0x9db7('0x22')](_0x9db7('0x5')),this['ringtime']=getSeconds(_0x13a86f[_0x9db7('0x10')],_0x13a86f['starttime']),this[_0x9db7('0x1')]=getSeconds(_0x13a86f[_0x9db7('0x26')],_0x13a86f['responsetime']),this[_0x9db7('0x2')]=getSeconds(this[_0x9db7('0x23')],_0x13a86f[_0x9db7('0x26')]),this[_0x9db7('0x0')]=_0xeaf5f7['queue'],this['membername']=_0xeaf5f7[_0x9db7('0x18')],this[_0x9db7('0x1d')]=_0xeaf5f7['reason'],this['callback']=_0x13a86f['callback'],this['callbackuniqueid']=_0x13a86f[_0x9db7('0xe')],this[_0x9db7('0x17')]=_0x13a86f[_0x9db7('0x17')],this[_0x9db7('0xb')]=_0x13a86f[_0x9db7('0xb')],this[_0x9db7('0x1e')]=_0x13a86f[_0x9db7('0x1e')],this['ListId']=_0x13a86f[_0x9db7('0x28')],this[_0x9db7('0x11')]=_0x13a86f[_0x9db7('0x11')],this[_0x9db7('0x9')]=_0x13a86f[_0x9db7('0x9')],this[_0x9db7('0xa')]=_0x13a86f['CampaignId'],this[_0x9db7('0x16')]=_0x13a86f[_0x9db7('0x16')]||'',this[_0x9db7('0x3')]=_0x13a86f[_0x9db7('0x3')]||'';}module[_0x100016('0x1f')]=AgentComplete; \ No newline at end of file +const a1053_0x5afa=['ListId','UserId','reason','name','countagentrejectretry','YYYY-MM-DD\x20HH:mm:ss','uniqueid','format','diff','VoiceQueueId','ContactId','calleridname','statedesc','holdtime','starttime','originatecalleridname','countmachineretry','type','countnoanswerretry','countabandonedretry','number','countglobal','queue','callbackuniqueid','moment','recallme','endtime','outbound','countnosuchnumberretry','milliseconds','countbusyretry','countcongestionretry','callbackat','answertime','campaigntype','originatecalleridnum','callback','countdropretry','scheduledat','Answer','membername','ringtime','exports','responsetime'];(function(_0x188b02,_0x5afa74){const _0x1e369d=function(_0xbf195d){while(--_0xbf195d){_0x188b02['push'](_0x188b02['shift']());}};_0x1e369d(++_0x5afa74);}(a1053_0x5afa,0xc6));const a1053_0x1e36=function(_0x188b02,_0x5afa74){_0x188b02=_0x188b02-0x0;let _0x1e369d=a1053_0x5afa[_0x188b02];return _0x1e369d;};const _0x51fed3=a1053_0x1e36;'use strict';const moment=require(_0x51fed3('0x2'));function getSeconds(_0xbf195d,_0x556b03){const _0x3e7c72=_0x51fed3,_0x16ad77=moment(_0xbf195d)['milliseconds'](0x0),_0x11d710=moment(_0x556b03)[_0x3e7c72('0x7')](0x0);return _0x16ad77[_0x3e7c72('0x1e')](_0x11d710,'seconds');}function AgentComplete(_0x490911,_0x1d35ef){const _0x137f0c=_0x51fed3;this['state']=0x4,this[_0x137f0c('0x22')]=_0x137f0c('0x11'),this[_0x137f0c('0x10')]=_0x490911['scheduledat'],this['type']=_0x490911[_0x137f0c('0x27')],this[_0x137f0c('0xc')]=_0x490911[_0x137f0c('0x27')]===_0x137f0c('0x5')?_0x137f0c('0x0'):_0x490911[_0x137f0c('0x27')],this[_0x137f0c('0x8')]=_0x490911[_0x137f0c('0x8')],this[_0x137f0c('0x9')]=_0x490911[_0x137f0c('0x9')],this[_0x137f0c('0x28')]=_0x490911[_0x137f0c('0x28')],this[_0x137f0c('0x2b')]=_0x490911['countbusyretry']+_0x490911[_0x137f0c('0x9')]+_0x490911[_0x137f0c('0x28')]+_0x490911['countnosuchnumberretry']+_0x490911[_0x137f0c('0xf')]+_0x490911[_0x137f0c('0x29')]+_0x490911[_0x137f0c('0x26')]+_0x490911[_0x137f0c('0x1a')],this[_0x137f0c('0x6')]=_0x490911[_0x137f0c('0x6')],this[_0x137f0c('0xf')]=_0x490911[_0x137f0c('0xf')],this['countabandonedretry']=_0x490911['countabandonedretry'],this[_0x137f0c('0x26')]=_0x490911[_0x137f0c('0x26')],this[_0x137f0c('0x1a')]=_0x490911[_0x137f0c('0x1a')],this['uniqueid']=_0x1d35ef[_0x137f0c('0x1c')],this[_0x137f0c('0x21')]=_0x490911[_0x137f0c('0x19')],this['calleridnum']=_0x490911[_0x137f0c('0x2a')],this[_0x137f0c('0x24')]=_0x490911[_0x137f0c('0x24')],this[_0x137f0c('0x15')]=_0x490911[_0x137f0c('0x15')],this[_0x137f0c('0xb')]=_0x490911[_0x137f0c('0xb')],this[_0x137f0c('0x4')]=moment()[_0x137f0c('0x1d')](_0x137f0c('0x1b')),this[_0x137f0c('0x13')]=getSeconds(_0x490911[_0x137f0c('0x15')],_0x490911['starttime']),this[_0x137f0c('0x23')]=getSeconds(_0x490911[_0x137f0c('0xb')],_0x490911['responsetime']),this['talktime']=getSeconds(this['endtime'],_0x490911[_0x137f0c('0xb')]),this[_0x137f0c('0x0')]=_0x1d35ef[_0x137f0c('0x0')],this[_0x137f0c('0x12')]=_0x1d35ef[_0x137f0c('0x12')],this[_0x137f0c('0x18')]=_0x1d35ef[_0x137f0c('0x18')],this[_0x137f0c('0xe')]=_0x490911[_0x137f0c('0xe')],this[_0x137f0c('0x1')]=_0x490911[_0x137f0c('0x1')],this[_0x137f0c('0xa')]=_0x490911[_0x137f0c('0xa')],this[_0x137f0c('0x3')]=_0x490911[_0x137f0c('0x3')],this[_0x137f0c('0x20')]=_0x490911[_0x137f0c('0x20')],this[_0x137f0c('0x16')]=_0x490911[_0x137f0c('0x16')],this[_0x137f0c('0x17')]=_0x490911[_0x137f0c('0x17')],this[_0x137f0c('0x1f')]=_0x490911[_0x137f0c('0x1f')],this['CampaignId']=_0x490911['CampaignId'],this['originatecalleridnum']=_0x490911[_0x137f0c('0xd')]||'',this[_0x137f0c('0x25')]=_0x490911[_0x137f0c('0x25')]||'';}module[_0x51fed3('0x14')]=AgentComplete; \ No newline at end of file diff --git a/server/services/ami/dialer/final.js b/server/services/ami/dialer/final.js index c5e5fe6..26fb0a8 100644 --- a/server/services/ami/dialer/final.js +++ b/server/services/ami/dialer/final.js @@ -1 +1 @@ -var a1053_0x4de4=['ContactId','UserId','countnosuchnumberretry','countagentrejectretry','countmachineretry','countabandonedretry','ListId','exports','countdropretry','holdtime','countnoanswerretry','CampaignId','endtime','starttime','talktime','callbackat','originatecalleridnum','scheduledat','uniqueid','calleridname','ringtime','originatecalleridname','callback','type','recallme','responsetime','countbusyretry','calleridnum','countcongestionretry','VoiceQueueId','queue'];(function(_0x8bfd4e,_0x4de4d6){var _0x302eb2=function(_0x6d63e3){while(--_0x6d63e3){_0x8bfd4e['push'](_0x8bfd4e['shift']());}};_0x302eb2(++_0x4de4d6);}(a1053_0x4de4,0x1dd));var a1053_0x302e=function(_0x8bfd4e,_0x4de4d6){_0x8bfd4e=_0x8bfd4e-0x0;var _0x302eb2=a1053_0x4de4[_0x8bfd4e];return _0x302eb2;};var _0x10d773=a1053_0x302e;'use strict';function Final(_0x6d63e3){var _0xfd71fd=a1053_0x302e;this['uniqueid']=_0x6d63e3[_0xfd71fd('0x6')],this[_0xfd71fd('0x5')]=_0x6d63e3[_0xfd71fd('0x5')],this[_0xfd71fd('0xb')]=_0x6d63e3[_0xfd71fd('0xb')],this['campaigntype']=_0x6d63e3[_0xfd71fd('0xb')]==='outbound'?_0xfd71fd('0x12'):_0x6d63e3[_0xfd71fd('0xb')],this[_0xfd71fd('0xe')]=_0x6d63e3[_0xfd71fd('0xe')],this[_0xfd71fd('0x10')]=_0x6d63e3[_0xfd71fd('0x10')],this['countnoanswerretry']=_0x6d63e3[_0xfd71fd('0x1d')],this['countglobal']=_0x6d63e3['countbusyretry']+_0x6d63e3['countcongestionretry']+_0x6d63e3['countnoanswerretry']+_0x6d63e3[_0xfd71fd('0x15')]+_0x6d63e3[_0xfd71fd('0x1b')]+_0x6d63e3['countabandonedretry']+_0x6d63e3[_0xfd71fd('0x17')]+_0x6d63e3['countagentrejectretry'],this[_0xfd71fd('0x15')]=_0x6d63e3['countnosuchnumberretry'],this[_0xfd71fd('0x1b')]=_0x6d63e3[_0xfd71fd('0x1b')],this[_0xfd71fd('0x18')]=_0x6d63e3[_0xfd71fd('0x18')],this['countmachineretry']=_0x6d63e3[_0xfd71fd('0x17')],this[_0xfd71fd('0x16')]=_0x6d63e3['countagentrejectretry'],this[_0xfd71fd('0x12')]=_0x6d63e3[_0xfd71fd('0x12')],this[_0xfd71fd('0x7')]=_0x6d63e3[_0xfd71fd('0x7')],this[_0xfd71fd('0xf')]=_0x6d63e3[_0xfd71fd('0xf')],this[_0xfd71fd('0x1')]=_0x6d63e3[_0xfd71fd('0x1')],this[_0xfd71fd('0xd')]=_0x6d63e3[_0xfd71fd('0xd')],this[_0xfd71fd('0x0')]=_0x6d63e3[_0xfd71fd('0xd')],this['ringtime']=_0x6d63e3[_0xfd71fd('0x8')]||0x0,this[_0xfd71fd('0x1c')]=_0x6d63e3[_0xfd71fd('0x1c')]||0x0,this[_0xfd71fd('0x2')]=_0x6d63e3[_0xfd71fd('0x2')]||0x0,this[_0xfd71fd('0xa')]=_0x6d63e3[_0xfd71fd('0xa')],this['callbackuniqueid']=_0x6d63e3['callbackuniqueid'],this[_0xfd71fd('0x3')]=_0x6d63e3[_0xfd71fd('0x3')],this['recallme']=_0x6d63e3[_0xfd71fd('0xc')],this[_0xfd71fd('0x13')]=_0x6d63e3[_0xfd71fd('0x13')],this['ListId']=_0x6d63e3[_0xfd71fd('0x19')],this[_0xfd71fd('0x14')]=_0x6d63e3['UserId'],this[_0xfd71fd('0x11')]=_0x6d63e3['VoiceQueueId'],this[_0xfd71fd('0x1e')]=_0x6d63e3['CampaignId'],this[_0xfd71fd('0x4')]=_0x6d63e3[_0xfd71fd('0x4')]||'',this[_0xfd71fd('0x9')]=_0x6d63e3['originatecalleridname']||'';}module[_0x10d773('0x1a')]=Final; \ No newline at end of file +var a1054_0x5b44=['recallme','type','endtime','ringtime','queue','starttime','ListId','campaigntype','talktime','scheduledat','calleridnum','callbackat','countagentrejectretry','countabandonedretry','callbackuniqueid','VoiceQueueId','CampaignId','countdropretry','countcongestionretry','originatecalleridnum','responsetime','countbusyretry','UserId','countnosuchnumberretry','countnoanswerretry','holdtime','calleridname','countmachineretry','uniqueid','ContactId','originatecalleridname','countglobal'];(function(_0x4cd346,_0x5b44fa){var _0x5c5cc0=function(_0x480d3c){while(--_0x480d3c){_0x4cd346['push'](_0x4cd346['shift']());}};_0x5c5cc0(++_0x5b44fa);}(a1054_0x5b44,0x70));var a1054_0x5c5c=function(_0x4cd346,_0x5b44fa){_0x4cd346=_0x4cd346-0x0;var _0x5c5cc0=a1054_0x5b44[_0x4cd346];return _0x5c5cc0;};'use strict';function Final(_0x480d3c){var _0x172d2a=a1054_0x5c5c;this[_0x172d2a('0xc')]=_0x480d3c['uniqueid'],this[_0x172d2a('0x19')]=_0x480d3c['scheduledat'],this[_0x172d2a('0x11')]=_0x480d3c['type'],this[_0x172d2a('0x17')]=_0x480d3c[_0x172d2a('0x11')]==='outbound'?_0x172d2a('0x14'):_0x480d3c[_0x172d2a('0x11')],this[_0x172d2a('0x5')]=_0x480d3c[_0x172d2a('0x5')],this[_0x172d2a('0x2')]=_0x480d3c[_0x172d2a('0x2')],this[_0x172d2a('0x8')]=_0x480d3c[_0x172d2a('0x8')],this[_0x172d2a('0xf')]=_0x480d3c['countbusyretry']+_0x480d3c[_0x172d2a('0x2')]+_0x480d3c[_0x172d2a('0x8')]+_0x480d3c[_0x172d2a('0x7')]+_0x480d3c[_0x172d2a('0x1')]+_0x480d3c[_0x172d2a('0x1d')]+_0x480d3c['countmachineretry']+_0x480d3c[_0x172d2a('0x1c')],this[_0x172d2a('0x7')]=_0x480d3c[_0x172d2a('0x7')],this[_0x172d2a('0x1')]=_0x480d3c['countdropretry'],this[_0x172d2a('0x1d')]=_0x480d3c['countabandonedretry'],this[_0x172d2a('0xb')]=_0x480d3c['countmachineretry'],this[_0x172d2a('0x1c')]=_0x480d3c[_0x172d2a('0x1c')],this[_0x172d2a('0x14')]=_0x480d3c[_0x172d2a('0x14')],this[_0x172d2a('0xa')]=_0x480d3c[_0x172d2a('0xa')],this[_0x172d2a('0x1a')]=_0x480d3c[_0x172d2a('0x1a')],this[_0x172d2a('0x15')]=_0x480d3c[_0x172d2a('0x15')],this['responsetime']=_0x480d3c['responsetime'],this[_0x172d2a('0x12')]=_0x480d3c[_0x172d2a('0x4')],this[_0x172d2a('0x13')]=_0x480d3c[_0x172d2a('0x13')]||0x0,this[_0x172d2a('0x9')]=_0x480d3c[_0x172d2a('0x9')]||0x0,this[_0x172d2a('0x18')]=_0x480d3c['talktime']||0x0,this['callback']=_0x480d3c['callback'],this[_0x172d2a('0x1e')]=_0x480d3c[_0x172d2a('0x1e')],this[_0x172d2a('0x1b')]=_0x480d3c['callbackat'],this[_0x172d2a('0x10')]=_0x480d3c[_0x172d2a('0x10')],this[_0x172d2a('0xd')]=_0x480d3c['ContactId'],this[_0x172d2a('0x16')]=_0x480d3c[_0x172d2a('0x16')],this[_0x172d2a('0x6')]=_0x480d3c[_0x172d2a('0x6')],this[_0x172d2a('0x1f')]=_0x480d3c[_0x172d2a('0x1f')],this[_0x172d2a('0x0')]=_0x480d3c[_0x172d2a('0x0')],this[_0x172d2a('0x3')]=_0x480d3c['originatecalleridnum']||'',this[_0x172d2a('0xe')]=_0x480d3c[_0x172d2a('0xe')]||'';}module['exports']=Final; \ No newline at end of file diff --git a/server/services/ami/dialer/hangup.js b/server/services/ami/dialer/hangup.js index 0417453..4c5190a 100644 --- a/server/services/ami/dialer/hangup.js +++ b/server/services/ami/dialer/hangup.js @@ -1 +1 @@ -const a1054_0xb4d5=['uniqueid','scheduledat','milliseconds','Answer','outbound','countnosuchnumberretry','starttime','moment','callbackat','countglobal','campaigntype','queue','name','countabandonedretry','ContactId','diff','calleridname','countnoanswerretry','countdropretry','YYYY-MM-DD\x20HH:mm:ss','ListId','VoiceQueueId','countcongestionretry','countagentrejectretry','callback','type','responsetime','statedesc','callbackuniqueid','number','seconds','ringtime','countbusyretry','recallme','IVR','endtime','UserId','holdtime','CampaignId','membername','countmachineretry'];(function(_0x1e0a44,_0xb4d5e3){const _0x122aba=function(_0x2e5b10){while(--_0x2e5b10){_0x1e0a44['push'](_0x1e0a44['shift']());}};_0x122aba(++_0xb4d5e3);}(a1054_0xb4d5,0x86));const a1054_0x122a=function(_0x1e0a44,_0xb4d5e3){_0x1e0a44=_0x1e0a44-0x0;let _0x122aba=a1054_0xb4d5[_0x1e0a44];return _0x122aba;};const _0x305c34=a1054_0x122a;'use strict';const moment=require(_0x305c34('0x25'));function getSeconds(_0x2e5b10,_0x37deda){const _0x1bf1ae=_0x305c34,_0xd5ba9c=moment(_0x2e5b10)[_0x1bf1ae('0x20')](0x0),_0x387e2d=moment(_0x37deda)[_0x1bf1ae('0x20')](0x0);return _0xd5ba9c[_0x1bf1ae('0x4')](_0x387e2d,_0x1bf1ae('0x13'));}function Hangup(_0x53f3e6,_0x37e0e){const _0xd70191=_0x305c34;this['state']=0x4,this[_0xd70191('0x10')]=_0xd70191('0x21'),this[_0xd70191('0x1f')]=_0x53f3e6[_0xd70191('0x1f')],this[_0xd70191('0xe')]=_0x53f3e6[_0xd70191('0xe')],this[_0xd70191('0x28')]=_0x53f3e6[_0xd70191('0xe')]===_0xd70191('0x22')?_0xd70191('0x0'):_0x53f3e6[_0xd70191('0xe')],this[_0xd70191('0x15')]=_0x53f3e6[_0xd70191('0x15')],this[_0xd70191('0xb')]=_0x53f3e6[_0xd70191('0xb')],this[_0xd70191('0x6')]=_0x53f3e6[_0xd70191('0x6')],this[_0xd70191('0x27')]=_0x53f3e6[_0xd70191('0x15')]+_0x53f3e6['countcongestionretry']+_0x53f3e6[_0xd70191('0x6')]+_0x53f3e6[_0xd70191('0x23')]+_0x53f3e6['countdropretry']+_0x53f3e6[_0xd70191('0x2')]+_0x53f3e6[_0xd70191('0x1d')]+_0x53f3e6[_0xd70191('0xc')],this[_0xd70191('0x23')]=_0x53f3e6[_0xd70191('0x23')],this[_0xd70191('0x7')]=_0x53f3e6[_0xd70191('0x7')],this[_0xd70191('0x2')]=_0x53f3e6[_0xd70191('0x2')],this[_0xd70191('0x1d')]=_0x53f3e6[_0xd70191('0x1d')],this['countagentrejectretry']=_0x53f3e6[_0xd70191('0xc')],this[_0xd70191('0x1e')]=_0x37e0e['uniqueid'],this[_0xd70191('0x5')]=_0x53f3e6[_0xd70191('0x1')],this['calleridnum']=_0x53f3e6[_0xd70191('0x12')],this[_0xd70191('0x24')]=_0x53f3e6[_0xd70191('0x24')],this['responsetime']=_0x53f3e6[_0xd70191('0xf')],this[_0xd70191('0x18')]=moment()['format'](_0xd70191('0x8')),this[_0xd70191('0x14')]=getSeconds(_0x53f3e6[_0xd70191('0xf')],_0x53f3e6[_0xd70191('0x24')]),this[_0xd70191('0x1a')]=0x0,this['talktime']=getSeconds(this[_0xd70191('0x18')],_0x53f3e6[_0xd70191('0xf')]),this['queue']=_0x53f3e6['queue'],this[_0xd70191('0x1c')]=_0xd70191('0x17'),this['reason']=_0x37e0e['cause-txt'],this['callback']=_0x53f3e6[_0xd70191('0xd')],this[_0xd70191('0x11')]=_0x53f3e6[_0xd70191('0x11')],this[_0xd70191('0x26')]=_0x53f3e6['callbackat'],this[_0xd70191('0x16')]=_0x53f3e6['recallme'],this[_0xd70191('0x3')]=_0x53f3e6[_0xd70191('0x3')],this[_0xd70191('0x9')]=_0x53f3e6['ListId'],this[_0xd70191('0x19')]=_0x53f3e6[_0xd70191('0x19')],this[_0xd70191('0xa')]=_0x53f3e6[_0xd70191('0xa')],this[_0xd70191('0x1b')]=_0x53f3e6[_0xd70191('0x1b')];}module['exports']=Hangup; \ No newline at end of file +const a1055_0x1880=['ContactId','talktime','seconds','recallme','state','diff','moment','countabandonedretry','name','outbound','countagentrejectretry','callbackuniqueid','countdropretry','countnosuchnumberretry','type','countmachineretry','countglobal','UserId','countcongestionretry','number','countnoanswerretry','callbackat','queue','calleridname','calleridnum','exports','reason','format','scheduledat','endtime','ListId','uniqueid','starttime','statedesc','milliseconds','Answer','membername','VoiceQueueId','responsetime','campaigntype','ringtime','callback','CampaignId'];(function(_0x452106,_0x1880f2){const _0x1b94b2=function(_0x35aab0){while(--_0x35aab0){_0x452106['push'](_0x452106['shift']());}};_0x1b94b2(++_0x1880f2);}(a1055_0x1880,0x9e));const a1055_0x1b94=function(_0x452106,_0x1880f2){_0x452106=_0x452106-0x0;let _0x1b94b2=a1055_0x1880[_0x452106];return _0x1b94b2;};const _0x14a9b3=a1055_0x1b94;'use strict';const moment=require(_0x14a9b3('0x14'));function getSeconds(_0x35aab0,_0x4225a8){const _0x198b27=_0x14a9b3,_0x291c32=moment(_0x35aab0)[_0x198b27('0x5')](0x0),_0x4b7157=moment(_0x4225a8)['milliseconds'](0x0);return _0x291c32[_0x198b27('0x13')](_0x4b7157,_0x198b27('0x10'));}function Hangup(_0x2e6daa,_0x4ba8ac){const _0x5c0d35=_0x14a9b3;this[_0x5c0d35('0x12')]=0x4,this[_0x5c0d35('0x4')]=_0x5c0d35('0x6'),this[_0x5c0d35('0x2a')]=_0x2e6daa[_0x5c0d35('0x2a')],this['type']=_0x2e6daa[_0x5c0d35('0x1c')],this[_0x5c0d35('0xa')]=_0x2e6daa[_0x5c0d35('0x1c')]===_0x5c0d35('0x17')?_0x5c0d35('0x24'):_0x2e6daa[_0x5c0d35('0x1c')],this['countbusyretry']=_0x2e6daa['countbusyretry'],this[_0x5c0d35('0x20')]=_0x2e6daa[_0x5c0d35('0x20')],this[_0x5c0d35('0x22')]=_0x2e6daa[_0x5c0d35('0x22')],this[_0x5c0d35('0x1e')]=_0x2e6daa['countbusyretry']+_0x2e6daa[_0x5c0d35('0x20')]+_0x2e6daa[_0x5c0d35('0x22')]+_0x2e6daa['countnosuchnumberretry']+_0x2e6daa[_0x5c0d35('0x1a')]+_0x2e6daa['countabandonedretry']+_0x2e6daa[_0x5c0d35('0x1d')]+_0x2e6daa['countagentrejectretry'],this[_0x5c0d35('0x1b')]=_0x2e6daa['countnosuchnumberretry'],this['countdropretry']=_0x2e6daa['countdropretry'],this[_0x5c0d35('0x15')]=_0x2e6daa[_0x5c0d35('0x15')],this[_0x5c0d35('0x1d')]=_0x2e6daa[_0x5c0d35('0x1d')],this[_0x5c0d35('0x18')]=_0x2e6daa[_0x5c0d35('0x18')],this[_0x5c0d35('0x2')]=_0x4ba8ac['uniqueid'],this[_0x5c0d35('0x25')]=_0x2e6daa[_0x5c0d35('0x16')],this[_0x5c0d35('0x26')]=_0x2e6daa[_0x5c0d35('0x21')],this[_0x5c0d35('0x3')]=_0x2e6daa[_0x5c0d35('0x3')],this[_0x5c0d35('0x9')]=_0x2e6daa[_0x5c0d35('0x9')],this[_0x5c0d35('0x0')]=moment()[_0x5c0d35('0x29')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x5c0d35('0xb')]=getSeconds(_0x2e6daa['responsetime'],_0x2e6daa[_0x5c0d35('0x3')]),this['holdtime']=0x0,this[_0x5c0d35('0xf')]=getSeconds(this[_0x5c0d35('0x0')],_0x2e6daa[_0x5c0d35('0x9')]),this['queue']=_0x2e6daa['queue'],this[_0x5c0d35('0x7')]='IVR',this[_0x5c0d35('0x28')]=_0x4ba8ac['cause-txt'],this[_0x5c0d35('0xc')]=_0x2e6daa[_0x5c0d35('0xc')],this[_0x5c0d35('0x19')]=_0x2e6daa[_0x5c0d35('0x19')],this[_0x5c0d35('0x23')]=_0x2e6daa['callbackat'],this[_0x5c0d35('0x11')]=_0x2e6daa[_0x5c0d35('0x11')],this['ContactId']=_0x2e6daa[_0x5c0d35('0xe')],this[_0x5c0d35('0x1')]=_0x2e6daa['ListId'],this[_0x5c0d35('0x1f')]=_0x2e6daa['UserId'],this[_0x5c0d35('0x8')]=_0x2e6daa[_0x5c0d35('0x8')],this[_0x5c0d35('0xd')]=_0x2e6daa[_0x5c0d35('0xd')];}module[_0x14a9b3('0x27')]=Hangup; \ No newline at end of file diff --git a/server/services/ami/dialer/history.js b/server/services/ami/dialer/history.js index 3f01a18..d3805cf 100644 --- a/server/services/ami/dialer/history.js +++ b/server/services/ami/dialer/history.js @@ -1 +1 @@ -const a1055_0x30d6=['starttime','holdtime','campaigntype','UserId','ListId','originatecalleridname','countcongestionretry','number','countbusyretry','countglobal','recallme','responsetime','seconds','ContactId','talktime','queue','endtime','CampaignId','scheduledat','countmachineretry','type','callbackuniqueid','countabandonedretry','countnosuchnumberretry','countnoanswerretry','originatecalleridnum','milliseconds','countdropretry','countagentrejectretry','ringtime','callback','calleridnum','VoiceQueueId','exports'];(function(_0x47fbd8,_0x30d66f){const _0x47ab27=function(_0x4613d7){while(--_0x4613d7){_0x47fbd8['push'](_0x47fbd8['shift']());}};_0x47ab27(++_0x30d66f);}(a1055_0x30d6,0x151));const a1055_0x47ab=function(_0x47fbd8,_0x30d66f){_0x47fbd8=_0x47fbd8-0x0;let _0x47ab27=a1055_0x30d6[_0x47fbd8];return _0x47ab27;};const _0x169859=a1055_0x47ab;'use strict';const moment=require('moment');function getSeconds(_0x4613d7,_0x18788e){const _0x24a378=a1055_0x47ab,_0x4b1833=moment(_0x4613d7)['milliseconds'](0x0),_0x520906=moment(_0x18788e)[_0x24a378('0x1d')](0x0);return _0x4b1833['diff'](_0x520906,_0x24a378('0xf'));}function History(_0x94dd72){const _0x156965=a1055_0x47ab;this['uniqueid']=_0x94dd72['uniqueid'],this[_0x156965('0x15')]=_0x94dd72[_0x156965('0x15')]||undefined,this[_0x156965('0x17')]=_0x94dd72[_0x156965('0x17')],this[_0x156965('0x5')]=_0x94dd72[_0x156965('0x17')]==='outbound'?_0x156965('0x12'):_0x94dd72['type'],this[_0x156965('0xb')]=_0x94dd72[_0x156965('0xb')],this[_0x156965('0x9')]=_0x94dd72[_0x156965('0x9')],this[_0x156965('0x1b')]=_0x94dd72['countnoanswerretry'],this[_0x156965('0xc')]=_0x94dd72[_0x156965('0xb')]+_0x94dd72[_0x156965('0x9')]+_0x94dd72['countnoanswerretry']+_0x94dd72[_0x156965('0x1a')]+_0x94dd72[_0x156965('0x1e')]+_0x94dd72[_0x156965('0x19')]+_0x94dd72[_0x156965('0x16')]+_0x94dd72[_0x156965('0x1f')],this[_0x156965('0x1a')]=_0x94dd72[_0x156965('0x1a')],this[_0x156965('0x1e')]=_0x94dd72['countdropretry'],this[_0x156965('0x19')]=_0x94dd72[_0x156965('0x19')],this[_0x156965('0x16')]=_0x94dd72[_0x156965('0x16')],this[_0x156965('0x1f')]=_0x94dd72['countagentrejectretry'],this['queue']=_0x94dd72[_0x156965('0x12')],this['calleridname']=_0x94dd72['name'],this[_0x156965('0x0')]=_0x94dd72[_0x156965('0xa')],this['starttime']=_0x94dd72[_0x156965('0x3')],this[_0x156965('0xe')]=_0x94dd72['responsetime'],this[_0x156965('0x13')]=_0x94dd72[_0x156965('0xe')],this[_0x156965('0x20')]=getSeconds(_0x94dd72[_0x156965('0xe')],_0x94dd72[_0x156965('0x3')]),this[_0x156965('0x4')]=0x0,this[_0x156965('0x11')]=0x0,this[_0x156965('0x21')]=_0x94dd72[_0x156965('0x21')],this['callbackuniqueid']=_0x94dd72[_0x156965('0x18')],this['callbackat']=_0x94dd72['callbackat'],this[_0x156965('0xd')]=_0x94dd72[_0x156965('0xd')],this[_0x156965('0x10')]=_0x94dd72[_0x156965('0x10')],this[_0x156965('0x7')]=_0x94dd72[_0x156965('0x7')],this['UserId']=_0x94dd72[_0x156965('0x6')],this['VoiceQueueId']=_0x94dd72[_0x156965('0x1')],this['CampaignId']=_0x94dd72[_0x156965('0x14')],this[_0x156965('0x1c')]=_0x94dd72[_0x156965('0x1c')]||'',this[_0x156965('0x8')]=_0x94dd72['originatecalleridname']||'';}module[_0x169859('0x2')]=History; \ No newline at end of file +const a1056_0x4ca9=['starttime','uniqueid','name','callbackat','endtime','type','outbound','callback','VoiceQueueId','diff','responsetime','countnoanswerretry','countagentrejectretry','milliseconds','moment','countmachineretry','scheduledat','countcongestionretry','seconds','callbackuniqueid','originatecalleridname','exports','ContactId','ListId','queue','countnosuchnumberretry','CampaignId','countbusyretry','holdtime','number','UserId','recallme','countdropretry','calleridname','countabandonedretry','countglobal'];(function(_0x421d47,_0x4ca95c){const _0x12f9d1=function(_0x4a3f95){while(--_0x4a3f95){_0x421d47['push'](_0x421d47['shift']());}};_0x12f9d1(++_0x4ca95c);}(a1056_0x4ca9,0x1af));const a1056_0x12f9=function(_0x421d47,_0x4ca95c){_0x421d47=_0x421d47-0x0;let _0x12f9d1=a1056_0x4ca9[_0x421d47];return _0x12f9d1;};const _0x29c112=a1056_0x12f9;'use strict';const moment=require(_0x29c112('0xf'));function getSeconds(_0x4a3f95,_0x1b1be0){const _0x47b9b5=_0x29c112,_0x472a50=moment(_0x4a3f95)['milliseconds'](0x0),_0x437430=moment(_0x1b1be0)[_0x47b9b5('0xe')](0x0);return _0x472a50[_0x47b9b5('0xa')](_0x437430,_0x47b9b5('0x13'));}function History(_0xa9a9e9){const _0x551108=_0x29c112;this['uniqueid']=_0xa9a9e9[_0x551108('0x2')],this[_0x551108('0x11')]=_0xa9a9e9['scheduledat']||undefined,this['type']=_0xa9a9e9[_0x551108('0x6')],this['campaigntype']=_0xa9a9e9[_0x551108('0x6')]===_0x551108('0x7')?_0x551108('0x19'):_0xa9a9e9[_0x551108('0x6')],this['countbusyretry']=_0xa9a9e9[_0x551108('0x1c')],this[_0x551108('0x12')]=_0xa9a9e9[_0x551108('0x12')],this['countnoanswerretry']=_0xa9a9e9[_0x551108('0xc')],this[_0x551108('0x0')]=_0xa9a9e9[_0x551108('0x1c')]+_0xa9a9e9['countcongestionretry']+_0xa9a9e9[_0x551108('0xc')]+_0xa9a9e9[_0x551108('0x1a')]+_0xa9a9e9['countdropretry']+_0xa9a9e9[_0x551108('0x23')]+_0xa9a9e9[_0x551108('0x10')]+_0xa9a9e9['countagentrejectretry'],this[_0x551108('0x1a')]=_0xa9a9e9[_0x551108('0x1a')],this[_0x551108('0x21')]=_0xa9a9e9[_0x551108('0x21')],this[_0x551108('0x23')]=_0xa9a9e9[_0x551108('0x23')],this[_0x551108('0x10')]=_0xa9a9e9[_0x551108('0x10')],this[_0x551108('0xd')]=_0xa9a9e9[_0x551108('0xd')],this[_0x551108('0x19')]=_0xa9a9e9[_0x551108('0x19')],this[_0x551108('0x22')]=_0xa9a9e9[_0x551108('0x3')],this['calleridnum']=_0xa9a9e9[_0x551108('0x1e')],this[_0x551108('0x1')]=_0xa9a9e9[_0x551108('0x1')],this[_0x551108('0xb')]=_0xa9a9e9[_0x551108('0xb')],this[_0x551108('0x5')]=_0xa9a9e9['responsetime'],this['ringtime']=getSeconds(_0xa9a9e9['responsetime'],_0xa9a9e9[_0x551108('0x1')]),this[_0x551108('0x1d')]=0x0,this['talktime']=0x0,this[_0x551108('0x8')]=_0xa9a9e9[_0x551108('0x8')],this['callbackuniqueid']=_0xa9a9e9[_0x551108('0x14')],this[_0x551108('0x4')]=_0xa9a9e9[_0x551108('0x4')],this[_0x551108('0x20')]=_0xa9a9e9[_0x551108('0x20')],this['ContactId']=_0xa9a9e9[_0x551108('0x17')],this[_0x551108('0x18')]=_0xa9a9e9[_0x551108('0x18')],this[_0x551108('0x1f')]=_0xa9a9e9['UserId'],this[_0x551108('0x9')]=_0xa9a9e9['VoiceQueueId'],this[_0x551108('0x1b')]=_0xa9a9e9[_0x551108('0x1b')],this['originatecalleridnum']=_0xa9a9e9['originatecalleridnum']||'',this[_0x551108('0x15')]=_0xa9a9e9[_0x551108('0x15')]||'';}module[_0x29c112('0x16')]=History; \ No newline at end of file diff --git a/server/services/ami/dialer/index.js b/server/services/ami/dialer/index.js index ede9e87..01c9181 100644 --- a/server/services/ami/dialer/index.js +++ b/server/services/ami/dialer/index.js @@ -1 +1 @@ -const a1056_0x23ad=['interval\x20=\x20','outboundDropCallsDayCallersExit','reason\x208\x20congestion','toUpper','./action','outboundAnswerCallsDay','[Dialer][checkChannel][ivr]','XMD-','outboundNoSuchCallsDay','getQueue','Busy','lodash','ivrOriginated','INTERVAL_IS_NULL','stringify','countcongestionretry','indexOf','[moveContactManagedDialer]\x20','CampaignId','calleridname','[busyFactor]','[updateOriginated]\x20object\x20originated\x20is\x20negative','total','[unlockContact]\x20','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','unlockContact','[syncAgentComplete][createHistory][5]','GLOBAL_INTERVAL_IS_OVERTIME','[Originate][historyBlacklist]','SIP/%s/%s%s','dialAMDActive','cause-txt','dialAMDInitialSilence','dialGlobalMaxRetry','Unknow','outboundOriginateFailureCallsDay','resolve','predictiveIntervalDroppedCallsTimeout','tail','actions','getContactDialer','dialAgentRejectRetryFrequency','TIMEZONE_UNKNOW','[ifTime][promiseAll]','dialAMDBetweenWordsSilence','reason\x2019\x20machine....','[unlock2][syncQueueStatusComplete]','outboundQueuePauses','BLACKLIST','[rescheduleContact]\x20[Busy]','response','tags','recallme','getVoiceQueueRtPauses','originatecalleridname','temp','Contact','dialNoAnswerRetryFrequency','[decremetOriginate]\x20is\x20null\x20or\x20undefined','strategy','outboundRejectCallsDay','util','outboundReCallsDay','contactsId','\x20NOT\x20Active','buildObj','xcally-motion-dialer','NONE','[syncHangupIvr][createHistory]','dialPowerLevel','abandonmentRate','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','abandoned','\x20INTERVAL_IS_NULL','History\x20information\x20are\x20empty','[getContactDialer2]','[rescheduleContact]\x20[Congestion]','[booked][checkContactBlack][else]','error','dialCutDigit','predictiveIntervalAnsweredCalls','startMethodPredictive','format','[ifTime][Action]','Error','originate','Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','contactsRescheduled','No\x20such\x20channel','substring','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','syncNewExten','outboundUnknownCallsDay','nosuchnumber','dialer','Global','RUNNING','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','./final','random','endtime','[syncAgentComplete]','queueStatusComplete:\x20','[Dialer][checkChannel]','[moveContactManagedDialer][0]',')\x20are\x20more\x20than\x20threshold\x20(','true','XMD-AMDGREETING','createStateFinal','countnoanswerretry','[abandonmentRate]','../rpc/cmHopperBlack','Action','[syncAgentComplete][createHistory][3]','predictive','voiceQueues','../rpc/cmHopper','[Catch][Preview][syncQueueStatusComplete]','loggedIn','channel','enqueue','[unlockOriginate][syncQueueStatusComplete]','ACTIVE','\x22%s,%s%s,,,%s\x22','AgentReject','[booked][unlock]','campaign:save','dialGlobalInterval','agiafterat','type','Agent:\x20','Contact.phone','createHistory','syncQueueCallerAbandon','dialLimitQueue','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalDroppedCallsCallersExit','[actionOriginateIvr]\x20','Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20','amd','VoiceQueueId','queuestatuscomplete','reason','[syncQueueSummary]\x20Campaign\x20Queue:\x20','checkIsBlackListIvr','calleridnum','outboundBlacklistCallsDay','clearZombieChannels','../../../config/environment/','predictiveIntervalHitRate','handlePredictive','checkRetriveMax','[startMethodPredictive][StartProgressive][Loop]','[rescheduleContact][Drop]','erlangCallToSecond','RECALLINQUEUE','[syncQueueCallerAbandon]\x20[Drop]','[syncAgentComplete][createHistory][11]','AGENTS_NOT_LOGGED','createdAt','started\x20in\x20predictive\x20at','isSuccess','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','Intervals','INTERVAL_IS_EMPTY','then','originatecalleridnum','countnosuchnumberretry','agent','checkIfTimeIntervals','check\x20predictive\x20is\x20not\x20undefine','startPredictive','Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive','countabandonedretry','predictiveIntervalMultiplicativeFactor','[emptyContact][createHistory]','variable','membername','merge','phone','[unlock][syncQueueStatusComplete]','dialAMDAfterGreetingSilence','pow','sumBillable','dialAbandonedRetryFrequency','reason\x200\x20no\x20such\x20number....','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','[getContactCampaign2][Empty]','inBlackList','Unknown\x20Predictive','countglobal','dialMethod','uuid','catch','stack','congestion','dialTimezone','XMD-AMDTOTALANALYSISTIME','agiIp','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','sumHoldTime','dialAbandonedMaxRetry','XMD-AMDMAXIMUMNUMBEROFWORDS','method\x20not\x20recognized','predictiveIntervalTotalCalls','%s%s','RESCHEDULED_CONTACTS','sumDuration','one\x20call\x20every:','agents','outboundNoAnswerCallsDay','originated','\x20trunk\x20is\x20not\x20reachable','Ts\x20=\x20','[originateError]:\x20%s','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dialAgentRejectMaxRetry','maxNumberOriginate','dialActive','getContactDialerIvr','[actionOriginate]\x20','reachable','reason\x2011\x20abandoned','predictiveIntervalPauses','Max\x20Drop\x20','booked','object','[Originate][MoveBlacklist]','Trunk','statedesc','predictiveCalls','Drop','NoAnswer','[rescheduleContact]\x20','[originate][error]','round','queueStatusComplete','droptime','XMD-CAMPAIGNID','starttime','answered','predictiveIntervalMaxThreshold','[booked][unlockQueueStatus]','XMD-AMDINITIALSILENCE','isTrunkReachable','[booked][RR]','[syncHangupInAMD][createHistory]','ifTime','\x22agi://%s/square,%s\x22','inspect','dialOriginateCallerIdNumber','[getDataPredictive]','\x20Interval\x20is\x20overtime:\x20','check\x20failure','dialOrderByScheduledAt','milliseconds','Amax\x20=\x20','bind','UserId','dialRecallMeTimeout','dialAgiAfterHangupAgent','active','updateOriginated','queueBooked','predictiveIntervalAvgTalktime','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','queuestatus','./hangup','[syncAgentComplete][createHistory][20]','ListId','dialMachineRetryFrequency','responsetime','[CatchErlangB]','checkIfTime','dialCongestionMaxRetry','YYYY-MM-DD\x20HH:mm:ss','loggerHandler','outboundAnswerAgiCallsDay','dialPrefix','actionid','dialMachineMaxRetry','syncAgentComplete','dialAMDSilenceThreshold','[syncAgentComplete][createHistory][0]','dialQueueProject','XMD-AMDMINWORDLENGTH','originateresponse','outboundCongestionCallsDay','ContactId','dialOriginateCallerIdName','run','busyFactor','dialOriginateTimeout','[getContactCampaign2]','minutes','contactAgent-idHopper:\x20','agentBusyFactor','dialQueueProject2','pick','dialRandomLastDigitCallerIdNumber','predictiveIntervalAvailable','checkIsTrunkReachable','countbusyretry','XMD-AMDBETWEENWORDSSILENCE','[decremetOriginate]\x20object\x20originated\x20is\x20negative','startProgressive','erlangCalls','reason19\x20machine....','checkDialMethod','AVAILABLE_CONTACTS_FINISHED','Congestion','Failure','Blacklist','channels','dialBusyRetryFrequency','rescheduleContact','-----\x20Stats\x20Predictive\x20---','dialRecallInQueue','[rescheduleContact][Machine]','Interval','add','ivr','voiceQueue\x20is\x20undefine','getDataPredictive','dropRate','collection\x20data\x20in\x20progressive\x20at','[syncHangupInAMD]','md5','dialPredictiveOptimization','available','[rescheduleContact][NoSuchNumber]','../rpc/cmHopperHistory','custom:agentnosuchnumber','message','reason\x205\x20busy','custom:agentnoanswer','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','isNil','getDataPredictiveOld','seconds','queueBookedRR','fail\x20to\x20scheduled\x20calls','preview','outboundBusyCallsDay','rrmemory','[syncCampaigns]','averageHandleTime','countagentrejectretry','uniqueId','syncAgentConnect','NOT_ACTIVE','[actionOriginatePredictive]\x20','Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Queue:\x20','Drop\x20in\x20this\x20interval','finally','[countReScheduled]\x20','isArray','match','stateGlobal','[syncHangupIvr]','agentcomplete','MACHINE','talking','exten','---------\x20ErlangB\x20---------','isUndefined','custom:queuesummary','Success','syncHangup','clearing\x20variable\x20start\x20progressive','voice:queue:%s','syncOriginateResponse','reason\x2020\x20agentreject','[booked][unlock3]','XMD-ORIGINATECALLERIDNUM','./queueCallerAbandon','not_inuse','evt\x20is\x20undefine','queueCallerAbandonCreateState','countmachineretry','---------------------------','log','[handlePredictive]','uniqueid','interval','Machine','prototype','\x20Intervals\x20is\x20null\x20','sequence','[callProgressDetecting]','dialPredictiveInterval','state','pTalking','check\x20handlePredictive\x20is\x20not\x20undefine','clearing\x20variable\x20start\x20predictive','dialPredictiveOptimizationPercentage','Dropped\x20calls\x20day','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','saveInDb','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','loopClearZombieChannels','queuemember','Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[startMethodPredictive][StartProgressive]','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[getContactDialerPredictive]','agentreject','dialQueueTimeout','syncQueueStatusComplete','tryOriginatePredictive','Predictive\x20after\x20first\x20interval','XMD-AMDSILENCETHRESHOLD','predictiveIntervalMinThreshold','hangup','locked','content','_rr','OriginateError','launchHandleIvr','custom:agentcongestion','[syncHangupInAMDIvr]','[syncAgentComplete][createHistory]','../../../rediscache','dialNoSuchNumberMaxRetry','replace','[getContactDialer]\x20','is\x20disactive','RecallFailedTimeout','p\x20=\x20','[rescheduleContact][Abandoned]','exports','\x20AGENTS\x20NOT\x20LOGGED','isEmpty','Abandoned','trunks','moveContactManagedDialer','trim','dropreason','length','Predictive\x20for\x20every\x20interval','\x22%s\x22\x20<%s>','RECALLFAILEDTIMEOUT','outboundDropCallsDayTimeout','queuecallerabandon','iftime\x20%s,%s','dialDropMaxRetry','RecallInQueue','limitCalls','dialAMDGreeting','handleIvr','./history',')\x20are\x20less\x20than\x20threshold\x20(','string','ivrAnswerCallsDay','timezones','../../../config/config.service','checkIsBlackList','countdropretry','dialQueueOptions','sendMessageOneNotActive','IS_DISACTIVED','erlangAbandonmentRate','checkContactBlack','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','TrunkBackup','queue','AMD','AGI','[createHistory]\x20','newexten','progressive','syncCampaigns','dialBusyMaxRetry','XMD-VOICEQUEUEID','name','amdstatus','dialNoAnswerMaxRetry','scheduledat','push','paused','SIP/%s','outbound','erlangBusyFactor','varset','clearing\x20variable\x20handle\x20predictive','countReScheduled','emit','Agent','actionOriginate','HANGUP','undefined','[getContactDialer2][ReScheduled]','CALLEREXIT','roundrobin','[checkIsBlackList]\x20','[booked][unlock2]','handlePower','[rescheduleContact][AgentReject]','emptyContact','[syncAgentComplete][createHistory][8]','reason\x203\x20ringing\x20no\x20answer','syncQueueSummary','syncVarSet','info','Global:\x20','status','waiting','command','contact\x20is\x20undefine','TRUNK_IS_NOT_REACHABLE','dialDropRetryFrequency','originate\x20action\x20Error','[Originate][HistoryRecallClose]','syncQueueMember','unlockRR','predictiveIntervalErlangCalls','stateinterface','Queue','campaigns','----\x20Agent\x20Busy\x20Factor\x20----','contacts','[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','from-sip','[unlockQueueStatus][undefined]','callProgressDetecting','some','[syncAgentComplete][createHistory][10]','getCaller','../../../config/logger','floor','outboundAbandonedCallsDay','diff','HangupInAMD','ivrTotalCallsDays','predictiveIntervalAvgHoldtime','value','idHopper','Umin\x20=\x20'];(function(_0x805d3b,_0x23ad66){const _0x42ea14=function(_0x21e379){while(--_0x21e379){_0x805d3b['push'](_0x805d3b['shift']());}};_0x42ea14(++_0x23ad66);}(a1056_0x23ad,0x1ab));const a1056_0x42ea=function(_0x805d3b,_0x23ad66){_0x805d3b=_0x805d3b-0x0;let _0x42ea14=a1056_0x23ad[_0x805d3b];return _0x42ea14;};const _0x459c62=a1056_0x42ea;'use strict';const util=require(_0x459c62('0xad')),_=require(_0x459c62('0x7b')),uuid=require(_0x459c62('0x130')),moment=require('moment'),rr=require('rr'),md5=require('md5'),ut=require('../preview/util/util'),config=require(_0x459c62('0x104')),logger=require(_0x459c62('0x66'))(_0x459c62('0xce')),loggerBooked=require(_0x459c62('0x66'))('booked'),loggerPredictive=require('../../../config/logger')('predictive'),loggerPredictiveCalls=require(_0x459c62('0x66'))(_0x459c62('0x156')),loggerSyncQueueSummary=require(_0x459c62('0x66'))(_0x459c62('0x4b')),ami=require('../ami'),{getSocket}=require(_0x459c62('0x217')),io=getSocket(),cmHopper=require(_0x459c62('0xe4')),cmHopperHistory=require(_0x459c62('0x1bb')),cmHopperBlack=require(_0x459c62('0xdf')),voiceQueueRt=require('../rpc/voiceQueueRt'),Action=require(_0x459c62('0x74')),History=require(_0x459c62('0x18')),Final=require(_0x459c62('0xd2')),AgentComplete=require('./agentComplete'),QueueCallerAbandon=require(_0x459c62('0x1e8')),Hangup=require(_0x459c62('0x17b')),{getConfigService}=require(_0x459c62('0x1d')),strategy={'rrmemory':'rrmemory','roundrobin':_0x459c62('0x43')},Sequence=function(){};Sequence[_0x459c62('0x1f3')][_0x459c62('0xe8')]=function(_0x21e379){const _0x32134a=_0x459c62;this[_0x32134a('0x96')]=this[_0x32134a('0x96')]?this[_0x32134a('0x96')][_0x32134a('0x1d3')](_0x21e379):_0x21e379();};function Dialer(_0x5d02f0,_0x30dda4){const _0x410a57=_0x459c62;this[_0x410a57('0x1f5')]=new Sequence(),this[_0x410a57('0x1c6')]=_0x30dda4,this[_0x410a57('0xe3')]=_0x5d02f0['voiceQueues'],this[_0x410a57('0x5c')]=_0x5d02f0[_0x410a57('0x5c')],this[_0x410a57('0x141')]=_0x5d02f0[_0x410a57('0x141')],this[_0x410a57('0x8')]=_0x5d02f0[_0x410a57('0x8')],this[_0x410a57('0x149')]=config[_0x410a57('0x149')]||0x2,this[_0x410a57('0x1a9')]={},this['actions']={},this[_0x410a57('0xaf')]={},this[_0x410a57('0x1cc')]={},this['optionPredictive']={},this['startPredictive']={},this[_0x410a57('0x1a1')]={},this[_0x410a57('0x7c')]={},this[_0x410a57('0x177')]={},this[_0x410a57('0x1c4')]={},ami['on']('agentconnect',this[_0x410a57('0x1cd')]['bind'](this)),ami['on'](_0x410a57('0x11'),this['syncQueueCallerAbandon']['bind'](this)),ami['on'](_0x410a57('0x18e'),this[_0x410a57('0x1e4')][_0x410a57('0x171')](this)),ami['on'](_0x410a57('0x1d9'),this[_0x410a57('0x189')][_0x410a57('0x171')](this)),ami['on'](_0x410a57('0x1df'),this[_0x410a57('0x4b')][_0x410a57('0x171')](this)),ami['on'](_0x410a57('0x20e'),this['syncHangup'][_0x410a57('0x171')](this)),ami['on'](_0x410a57('0x2b'),this[_0x410a57('0xcb')][_0x410a57('0x171')](this)),ami['on'](_0x410a57('0x39'),this[_0x410a57('0x4c')]['bind'](this)),ami['on'](_0x410a57('0x202'),this[_0x410a57('0x57')][_0x410a57('0x171')](this)),ami['on'](_0x410a57('0xfd'),this[_0x410a57('0x209')][_0x410a57('0x171')](this)),this['loopCampaigns'](),this[_0x410a57('0x201')]();}function isNotNull(_0x2e869d){const _0x109356=_0x459c62;return _0x2e869d!==null&&!_[_0x109356('0x1de')](_0x2e869d);}function checkIsLoggedIn(_0x17cd6c,_0x3194d3){return function(){const _0x269529=a1056_0x42ea;if(_0x3194d3<=0x0){_0x17cd6c['message']=_0x269529('0x10e');throw _0x17cd6c[_0x269529('0x30')]+_0x269529('0x5');}};}function isActive(_0x448d32){return _0x448d32;}function checkIsActive(_0x18b972,_0xbcb9d){return function(){const _0x4aa4da=a1056_0x42ea;if(!isActive(_0xbcb9d)){_0x18b972[_0x4aa4da('0x1bd')]=_0x4aa4da('0x1ce');throw _0x18b972[_0x4aa4da('0x30')]+_0x4aa4da('0xb0');}};}function checkInterval(_0x198043){return function(){const _0x2ec581=a1056_0x42ea;if(!isNotNull(_0x198043[_0x2ec581('0x1af')])){_0x198043[_0x2ec581('0x1bd')]='INTERVAL_IS_NULL';throw _0x198043[_0x2ec581('0x30')]+'\x20INTERVAL_IS_NULL';}if(!isNotNull(_0x198043[_0x2ec581('0x1af')][_0x2ec581('0x113')])){_0x198043[_0x2ec581('0x1bd')]=_0x2ec581('0x7d');throw _0x198043[_0x2ec581('0x30')]+'\x20INTERVAL_IS_NULL';}if(!isNotNull(_['isEmpty'](_0x198043[_0x2ec581('0x1af')][_0x2ec581('0x113')]))){_0x198043['message']=_0x2ec581('0x7d');throw _0x198043[_0x2ec581('0x30')]+_0x2ec581('0xb9');}};}function msgResponse(_0x11eab3,_0x15d530,_0x133773){return{'action':_0x11eab3,'response':_0x15d530,'message':_0x133773,'stack':_0x133773};}function myreject(_0x432654){return function(_0x37c872){const _0x565dbd=a1056_0x42ea;return _0x432654(msgResponse(_0x565dbd('0xc3'),_0x565dbd('0xc4'),JSON['stringify'](_0x37c872)));};}function getSeconds(_0xc108ed,_0xc31032){const _0x43a3f5=_0x459c62,_0x19a70f=moment(_0xc108ed)[_0x43a3f5('0x16f')](0x0),_0x2f64a4=moment(_0xc31032)['milliseconds'](0x0);return _0x19a70f[_0x43a3f5('0x69')](_0x2f64a4,_0x43a3f5('0x1c3'));}function emit(_0x23a72e,_0x10b274,_0x3ff57c){const _0x36d364=_0x459c62;io['to'](_0x23a72e)[_0x36d364('0x3c')](_0x10b274,_0x3ff57c);}function emitVoiceQueueSummary(_0x4e1c5a){const _0x329ef0=_0x459c62;if(_0x4e1c5a[_0x329ef0('0xf1')]===_0x329ef0('0x37')){const _0x4ca79d={'id':_0x4e1c5a['id'],'name':_0x4e1c5a[_0x329ef0('0x30')],'strategy':_0x4e1c5a[_0x329ef0('0xab')],'answered':_0x4e1c5a[_0x329ef0('0x160')],'available':_0x4e1c5a[_0x329ef0('0x1b9')],'loggedIn':_0x4e1c5a[_0x329ef0('0xe6')],'pTalking':_0x4e1c5a[_0x329ef0('0x1f9')],'sumBillable':_0x4e1c5a[_0x329ef0('0x127')],'sumDuration':_0x4e1c5a[_0x329ef0('0x13f')],'sumHoldTime':_0x4e1c5a[_0x329ef0('0x138')]||0x0,'talking':_0x4e1c5a[_0x329ef0('0x1db')],'total':_0x4e1c5a[_0x329ef0('0x86')],'type':_0x4e1c5a[_0x329ef0('0xf1')],'unmanaged':_0x4e1c5a['unmanaged'],'abandoned':_0x4e1c5a[_0x329ef0('0xb8')],'waiting':_0x4e1c5a[_0x329ef0('0x50')],'loggedInDb':_0x4e1c5a['loggedInDb'],'dialActive':_0x4e1c5a[_0x329ef0('0x14a')],'dialMethod':_0x4e1c5a[_0x329ef0('0x12f')],'dialOriginateCallerIdName':_0x4e1c5a['dialOriginateCallerIdName'],'dialOriginateCallerIdNumber':_0x4e1c5a[_0x329ef0('0x16a')],'dialOriginateTimeout':_0x4e1c5a[_0x329ef0('0x194')],'dialPrefix':_0x4e1c5a[_0x329ef0('0x186')],'outboundAnswerAgiCallsDay':_0x4e1c5a['outboundAnswerAgiCallsDay'],'outboundAnswerCallsDay':_0x4e1c5a[_0x329ef0('0x75')],'outboundBlacklistCallsDay':_0x4e1c5a[_0x329ef0('0x102')],'outboundBusyCallsDay':_0x4e1c5a[_0x329ef0('0x1c7')],'outboundCongestionCallsDay':_0x4e1c5a['outboundCongestionCallsDay'],'outboundDropCallsDayACS':_0x4e1c5a['outboundDropCallsDayACS'],'outboundDropCallsDayCallersExit':_0x4e1c5a[_0x329ef0('0x71')],'outboundDropCallsDayTimeout':_0x4e1c5a[_0x329ef0('0x10')],'outboundNoAnswerCallsDay':_0x4e1c5a['outboundNoAnswerCallsDay'],'outboundNoSuchCallsDay':_0x4e1c5a[_0x329ef0('0x78')],'outboundOriginateFailureCallsDay':_0x4e1c5a[_0x329ef0('0x93')],'outboundReCallsDay':_0x4e1c5a[_0x329ef0('0xae')],'outboundRejectCallsDay':_0x4e1c5a[_0x329ef0('0xac')],'outboundUnknownCallsDay':_0x4e1c5a[_0x329ef0('0xcc')],'predictiveIntervalAnsweredCalls':_0x4e1c5a[_0x329ef0('0xc0')],'predictiveIntervalAvgHoldtime':_0x4e1c5a[_0x329ef0('0x6c')],'predictiveIntervalAvgTalktime':_0x4e1c5a[_0x329ef0('0x178')],'predictiveIntervalDroppedCallsCallersExit':_0x4e1c5a[_0x329ef0('0xf8')],'predictiveIntervalDroppedCallsTimeout':_0x4e1c5a[_0x329ef0('0x95')],'predictiveIntervalErlangCalls':_0x4e1c5a[_0x329ef0('0x59')],'predictiveIntervalErlangCallsDroppedCalls':_0x4e1c5a[_0x329ef0('0xf7')],'predictiveIntervalHitRate':_0x4e1c5a[_0x329ef0('0x105')],'predictiveIntervalMultiplicativeFactor':_0x4e1c5a[_0x329ef0('0x11e')],'predictiveIntervalPauses':_0x4e1c5a[_0x329ef0('0x14f')],'predictiveIntervalAvailable':_0x4e1c5a[_0x329ef0('0x19c')],'predictiveIntervalTotalCalls':_0x4e1c5a['predictiveIntervalTotalCalls'],'message':_0x4e1c5a[_0x329ef0('0x1bd')],'originated':_0x4e1c5a[_0x329ef0('0x143')],'erlangCalls':_0x4e1c5a[_0x329ef0('0x1a2')],'erlangCallToSecond':_0x4e1c5a[_0x329ef0('0x10a')],'erlangAbandonmentRate':_0x4e1c5a[_0x329ef0('0x23')],'erlangBusyFactor':_0x4e1c5a[_0x329ef0('0x38')],'startPredictive':_0x4e1c5a['startPredictive'],'startProgressive':_0x4e1c5a[_0x329ef0('0x1a1')]};_0x4e1c5a[_0x329ef0('0x154')]&&(_0x4ca79d[_0x329ef0('0x154')]={'id':_0x4e1c5a[_0x329ef0('0x154')]['id'],'name':_0x4e1c5a['Trunk'][_0x329ef0('0x30')],'active':_0x4e1c5a['Trunk'][_0x329ef0('0x175')],'callerid':_0x4e1c5a[_0x329ef0('0x154')]['callerid']});_0x4e1c5a[_0x329ef0('0x1af')]&&(_0x4ca79d[_0x329ef0('0x1af')]={'id':_0x4e1c5a['Interval']['id'],'name':_0x4e1c5a[_0x329ef0('0x1af')]['name']});const _0x96bf7a=md5(JSON[_0x329ef0('0x7e')](_0x4ca79d));_0x4e1c5a[_0x329ef0('0x1b7')]!==_0x96bf7a&&(_0x4e1c5a[_0x329ef0('0x1b7')]=_0x96bf7a,emit(util[_0x329ef0('0xc2')](_0x329ef0('0x1e3'),_0x4ca79d[_0x329ef0('0x30')]),'voice_queue:save',_0x4ca79d));}}function emitCampaignSummary(_0x2e5ede){const _0x6667d0=_0x459c62;_0x2e5ede[_0x6667d0('0xf1')]===_0x6667d0('0x1b1')&&emit(util[_0x6667d0('0xc2')]('campaign:ivr:%s',_0x2e5ede[_0x6667d0('0x30')]),_0x6667d0('0xee'),_0x2e5ede);}function checkGetDataPredictive(_0x161789){const _0x33cdb1=_0x459c62;if(isNotNull(_0x161789)){if(!_[_0x33cdb1('0x6')](_0x161789)){loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0x1ac')),loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0x203'),_0x161789[_0x33cdb1('0x13c')]),loggerPredictive[_0x33cdb1('0x4d')]('Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x161789[_0x33cdb1('0xc0')]),loggerPredictive['info'](_0x33cdb1('0x25'),_0x161789[_0x33cdb1('0x95')]),loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0xb7'),_0x161789['predictiveIntervalDroppedCallsCallersExit']),loggerPredictive[_0x33cdb1('0x4d')]('AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x161789[_0x33cdb1('0x6c')]),loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0x200'),_0x161789[_0x33cdb1('0x178')]),loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0x1ed'));if(_0x161789['predictiveIntervalTotalCalls']>0x0){if(!_['isUndefined'](_0x161789['predictiveIntervalAvgTalktime'])&&_0x161789[_0x33cdb1('0x178')]>0x0)return!![];else loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0x11c'));if(!_[_0x33cdb1('0x1de')](_0x161789[_0x33cdb1('0x6c')])&&_0x161789[_0x33cdb1('0x6c')]>0x0)return!![];else loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0x112'));}else loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0x1fe'));}else loggerPredictive[_0x33cdb1('0x4d')](_0x33cdb1('0xba'));}else loggerPredictive[_0x33cdb1('0x4d')]('History\x20information\x20are\x20empty');return![];}function mergeDataErlangB(_0x378854){return function(_0x472c44){const _0x163bef=a1056_0x42ea;loggerPredictive[_0x163bef('0x4d')](_0x163bef('0x1dd')),loggerPredictive[_0x163bef('0x4d')](_0x163bef('0x1d0'),_0x472c44['erlangCalls']),loggerPredictive[_0x163bef('0x4d')](_0x163bef('0x205'),_0x472c44['erlangCallToSecond']),loggerPredictive[_0x163bef('0x4d')](_0x163bef('0xd1'),_0x472c44[_0x163bef('0x23')]),loggerPredictive['info'](_0x163bef('0xfa'),_0x472c44['erlangBusyFactor']),loggerPredictive[_0x163bef('0x4d')](_0x163bef('0xd1'),_0x472c44[_0x163bef('0x23')]),loggerPredictive[_0x163bef('0x4d')](_0x163bef('0x1ed')),_['merge'](_0x378854,_0x472c44);};}function getDiff(_0x1c94b5){const _0x4f0777=_0x459c62,_0x5a1da0=moment()[_0x4f0777('0x16f')](0x0),_0x260625=moment(_0x1c94b5)[_0x4f0777('0x16f')](0x0);return _0x5a1da0[_0x4f0777('0x69')](_0x260625,_0x4f0777('0x1c3'));}function ifInterval(_0x35038f,_0x4d4a35){const _0x54729c=_0x459c62;if(_[_0x54729c('0x1de')](_0x4d4a35))return![];return getDiff(_0x4d4a35)<_0x35038f*0x3c?!![]:![];}function freeVariablesPredictive(_0x547330){const _0x2e583a=_0x459c62;isNotNull(_0x547330)&&(!_['isUndefined'](_0x547330[_0x2e583a('0x1a1')])&&(_0x547330['startProgressive']=undefined,loggerPredictive[_0x2e583a('0x4d')](_0x547330['name'],_0x2e583a('0x1e2'))),!_['isUndefined'](_0x547330[_0x2e583a('0x11b')])&&(_0x547330[_0x2e583a('0x11b')]=undefined,loggerPredictive[_0x2e583a('0x4d')](_0x547330[_0x2e583a('0x30')],_0x2e583a('0x1fb'))),!_[_0x2e583a('0x1de')](_0x547330['handlePredictive'])&&(clearInterval(_0x547330[_0x2e583a('0x106')]),_0x547330[_0x2e583a('0x106')]=undefined,loggerPredictive[_0x2e583a('0x4d')](_0x547330['name'],_0x2e583a('0x3a'))));}function erlangb(_0x484ad2,_0x57b1e3){if(_0x57b1e3===0x0)return 0x0;let _0x4feded=0x1;for(let _0xd29685=0x1;_0xd29685<=_0x57b1e3;_0xd29685+=0x1){_0x4feded=0x1+_0x4feded*_0xd29685/_0x484ad2;}return 0x1/_0x4feded;}function isVoiceQueueOutbound(_0x4f1b05){const _0x153c63=_0x459c62;return _0x4f1b05===_0x153c63('0x37');}function isNotPreview(_0x502939){const _0x4b43c9=_0x459c62;return _0x502939!==_0x4b43c9('0x1c6');}function isCampaignIvr(_0x514793){const _0x2be670=_0x459c62;return _0x514793===_0x2be670('0x1b1');}function getCallerId(_0x13fb04,_0x21b7a7,_0x3a2578){const _0x1ea25a=_0x459c62;if(!_[_0x1ea25a('0x1de')](_0x3a2578)&&_0x1ea25a('0x1a')===typeof _0x3a2578&&!_['isEmpty'](_0x3a2578)){if(!_[_0x1ea25a('0x1de')](_0x21b7a7)&&_0x1ea25a('0x1a')===typeof _0x21b7a7&&!_[_0x1ea25a('0x6')](_0x21b7a7))return util[_0x1ea25a('0xc2')](_0x1ea25a('0xe'),_0x21b7a7,_0x3a2578);return util[_0x1ea25a('0xc2')](_0x1ea25a('0xe'),_0x3a2578,_0x3a2578);}if(!_[_0x1ea25a('0x1de')](_0x13fb04)&&'string'===typeof _0x13fb04&&!_[_0x1ea25a('0x6')](_0x13fb04))return _0x13fb04;return'\x22\x22\x20<>';}function loggerCatchQueueSummary(_0x44dabf,_0x3b15fd){return function(_0x1cdb8b){const _0x249fd2=a1056_0x42ea;freeVariablesPredictive(_0x3b15fd),emitVoiceQueueSummary(_0x3b15fd),emitCampaignSummary(_0x3b15fd),loggerSyncQueueSummary[_0x249fd2('0xbe')](_0x44dabf,util['inspect'](_0x1cdb8b,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x1c9413,_0x1b99f4){return function(_0x47d7a9){const _0x5b49de=a1056_0x42ea;loggerPredictive[_0x5b49de('0xbe')](_0x1b99f4[_0x5b49de('0x30')],_0x1c9413),loggerPredictive[_0x5b49de('0xbe')](_0x47d7a9[_0x5b49de('0x132')]),freeVariablesPredictive(_0x1b99f4);};}function loggerCatch(_0x261514){return function(_0x1bae65){const _0x20275a=a1056_0x42ea;logger[_0x20275a('0xbe')](_0x261514,util[_0x20275a('0x169')](_0x1bae65,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0xc62848){const _0x36de18=_0x459c62;return _0xc62848&&!_[_0x36de18('0x1de')](_0xc62848)&&_0xc62848[_0x36de18('0xc')]>0x0;}function decremetOriginate(_0x39c77c){const _0x2af1cc=_0x459c62;!_[_0x2af1cc('0x1de')](_0x39c77c)&&_0x39c77c!==null?typeof _0x39c77c[_0x2af1cc('0x143')]!==_0x2af1cc('0x40')&&(_0x39c77c[_0x2af1cc('0x143')]>0x0?_0x39c77c[_0x2af1cc('0x143')]-=0x1:logger['error'](_0x2af1cc('0x1a0'))):logger[_0x2af1cc('0xbe')](_0x2af1cc('0xaa'));}function checkContactLowerLimitOriginate(_0x702bc9,_0x148700,_0x55be61){if(_0x148700>_0x55be61)for(let _0xff1492=0x0;_0xff1492<_0x148700-_0x55be61;_0xff1492+=0x1){decremetOriginate(_0x702bc9);}}function loggerGetContactDialer(_0x2f9878,_0x3bd4b1,_0x27149f){return function(_0x377f81){const _0x291023=a1056_0x42ea;checkContactLowerLimitOriginate(_0x3bd4b1,_0x27149f,0x0),logger[_0x291023('0xbe')](_0x2f9878,util[_0x291023('0x169')](_0x377f81,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x116a1a){return function(_0x13b8b0){const _0x5be9b1=a1056_0x42ea;isNotNull(_0x13b8b0)&&isNotNull(_0x13b8b0[0x0])&&(_0x13b8b0[0x0]['contactsRescheduled']>0x0?(_0x116a1a['message']=_0x5be9b1('0x13e'),logger[_0x5be9b1('0x4d')](_0x5be9b1('0x41')+_0x116a1a[_0x5be9b1('0x30')],_0x13b8b0[0x0][_0x5be9b1('0xc7')],_0x5be9b1('0x5e'))):(_0x116a1a['message']='AVAILABLE_CONTACTS_FINISHED',logger['info']('[getContactDialer2][Empty]'+_0x116a1a[_0x5be9b1('0x30')])));};}function notSendMessagesQueue(_0x3a6991){const _0x1d9910=_0x459c62;_0x3a6991[_0x1d9910('0x21')]&&(freeVariablesPredictive(_0x3a6991),_0x3a6991[_0x1d9910('0x143')]===0x0&&_0x3a6991[_0x1d9910('0x1db')]===0x0&&_0x3a6991[_0x1d9910('0x50')]===0x0&&(_0x3a6991[_0x1d9910('0x1f9')]||0x0)===0x0?(_0x3a6991[_0x1d9910('0x21')]=![],_0x3a6991[_0x1d9910('0x1b9')]=0x0,_0x3a6991[_0x1d9910('0x1bd')]='NOT_ACTIVE',loggerSyncQueueSummary[_0x1d9910('0xbe')](_0x1d9910('0xff'),_0x3a6991[_0x1d9910('0x30')],'is\x20not\x20active')):(_0x3a6991[_0x1d9910('0x1bd')]='IS_DISACTIVED',loggerSyncQueueSummary[_0x1d9910('0xbe')]('[syncQueueSummary]\x20Campaign\x20Queue:\x20',_0x3a6991[_0x1d9910('0x30')],_0x1d9910('0x0'))),emitVoiceQueueSummary(_0x3a6991));}function notSendMessagesCampaign(_0x2bb079){const _0x465d97=_0x459c62;_0x2bb079[_0x465d97('0x21')]&&(_0x2bb079[_0x465d97('0x143')]===0x0?(_0x2bb079[_0x465d97('0x21')]=![],_0x2bb079[_0x465d97('0x1bd')]=_0x465d97('0x1ce'),loggerSyncQueueSummary[_0x465d97('0xbe')](_0x465d97('0x88'),_0x2bb079[_0x465d97('0x30')],'is\x20not\x20active')):(_0x2bb079[_0x465d97('0x1bd')]=_0x465d97('0x22'),loggerSyncQueueSummary[_0x465d97('0xbe')](_0x465d97('0x88'),_0x2bb079[_0x465d97('0x30')],_0x465d97('0x0'))),emitCampaignSummary(_0x2bb079));}function createObjHistory(_0x5760d2,_0x1d3593,_0x4b882d,_0x2ddc2c,_0xaedfda){const _0x514978=_0x459c62;_0x5760d2[_0x514978('0x1bd')]=_0x4b882d;const _0x50e024=new Action(_0x5760d2,_0x1d3593),_0x4c7416=new History(_0x50e024);return _0x4c7416[_0x514978('0x1f8')]=_0x2ddc2c,_0x4c7416[_0x514978('0x155')]=_0xaedfda,_0x4c7416[_0x514978('0xd4')]=_0x50e024['starttime'],_0x4c7416;}Dialer[_0x459c62('0x1f3')][_0x459c62('0x201')]=function(){const _0x17ad17=this;setInterval(function(){const _0x48eb35=a1056_0x42ea;_0x17ad17[_0x48eb35('0x103')](_0x17ad17[_0x48eb35('0x1cc')],'[uniqueid]'),_0x17ad17[_0x48eb35('0x103')](_0x17ad17[_0x48eb35('0x97')],'[actions]');},0x32c8);},Dialer[_0x459c62('0x1f3')][_0x459c62('0x103')]=function(_0x404c58,_0x861c67){const _0x245a5f=_0x459c62,_0x486335=this;for(const _0x1ddbd5 in _0x404c58){typeof _0x404c58[_0x1ddbd5]!==_0x245a5f('0x40')&&this[_0x245a5f('0x1f5')][_0x245a5f('0xe8')](function(){const _0x33b830=_0x245a5f;if(!_['isNil'](_0x404c58[_0x1ddbd5]))return ami['Action']({'action':'status','channel':_0x404c58[_0x1ddbd5]['channel']})[_0x33b830('0x131')](function(_0x5dc2f3){const _0x4365ba=_0x33b830;_0x5dc2f3[_0x4365ba('0x1bd')]===_0x4365ba('0xc8')&&setTimeout(function(){const _0x3b9745=_0x4365ba;_0x404c58[_0x1ddbd5]&&_0x404c58[_0x1ddbd5][_0x3b9745('0xf1')]!==_0x3b9745('0x1b1')&&(_0x486335[_0x3b9745('0x176')](_0x486335[_0x3b9745('0xe3')][_0x404c58[_0x1ddbd5]['queue']]),logger[_0x3b9745('0xbe')](_0x3b9745('0xd7'),_0x861c67,_0x1ddbd5,_0x404c58[_0x1ddbd5][_0x3b9745('0x27')]),delete _0x404c58[_0x1ddbd5]),_0x404c58[_0x1ddbd5]&&_0x404c58[_0x1ddbd5][_0x3b9745('0xf1')]===_0x3b9745('0x1b1')&&(_0x486335['updateOriginated'](_0x486335[_0x3b9745('0x5c')][_0x404c58[_0x1ddbd5]['queue']]),logger[_0x3b9745('0xbe')](_0x3b9745('0x76'),_0x861c67,_0x1ddbd5,_0x404c58[_0x1ddbd5][_0x3b9745('0x27')]),delete _0x404c58[_0x1ddbd5]);},0x2328);});});}},Dialer[_0x459c62('0x1f3')][_0x459c62('0x3b')]=function(_0x5beb34){const _0x256abe=_0x459c62;return Promise[_0x256abe('0x94')]()[_0x256abe('0x115')](cmHopper[_0x256abe('0x3b')](_0x5beb34))[_0x256abe('0x131')](loggerCatch('[countReScheduled]\x20'));},Dialer[_0x459c62('0x1f3')][_0x459c62('0x1e')]=function(_0x3db344){const _0x550fc5=_0x459c62;return Promise[_0x550fc5('0x94')]()['then'](cmHopperBlack[_0x550fc5('0x1e')](_0x3db344))['catch'](loggerCatch(_0x550fc5('0x44')));},Dialer[_0x459c62('0x1f3')]['checkIsBlackListIvr']=function(_0x354eac){const _0x15bb68=_0x459c62;return Promise[_0x15bb68('0x94')]()[_0x15bb68('0x115')](cmHopperBlack[_0x15bb68('0x100')](_0x354eac))[_0x15bb68('0x131')](loggerCatch('[checkIsBlackListIvr]\x20'));},Dialer[_0x459c62('0x1f3')][_0x459c62('0x1ca')]=function(_0x4e73b8){const _0x16c302=_0x459c62;return Promise[_0x16c302('0x94')]()[_0x16c302('0x115')](cmHopperHistory['avgHandleTime'](_0x4e73b8))[_0x16c302('0x131')](loggerCatch('[averageHandleTime]\x20'));},Dialer[_0x459c62('0x1f3')][_0x459c62('0x1ab')]=function(_0x5d487a){const _0x46932d=_0x459c62;return Promise[_0x46932d('0x94')]()[_0x46932d('0x115')](cmHopper[_0x46932d('0x1ab')](_0x5d487a))[_0x46932d('0x131')](loggerCatch(_0x46932d('0x159')));},Dialer[_0x459c62('0x1f3')]['unlockContact']=function(_0x35e599,_0x4a0ec1,_0x14b84c){const _0x2b340e=_0x459c62;return Promise[_0x2b340e('0x94')]()['then'](cmHopper[_0x2b340e('0x89')](_0x35e599,_0x4a0ec1,_0x14b84c))[_0x2b340e('0x131')](loggerCatch(_0x2b340e('0x87')));},Dialer[_0x459c62('0x1f3')]['getContactDialer']=function(_0x30233a,_0x2ccc0b,_0x42aad6,_0x10a1f8){const _0x36380a=_0x459c62;return Promise[_0x36380a('0x94')]()[_0x36380a('0x115')](cmHopper[_0x36380a('0x98')](_0x30233a,_0x2ccc0b,_0x42aad6,_0x10a1f8))[_0x36380a('0x131')](loggerCatch(_0x36380a('0x21a')));},Dialer[_0x459c62('0x1f3')]['getContactDialerIvr']=function(_0x33f1b8,_0x2ece95,_0x3672f8){const _0x531e0d=_0x459c62;return Promise[_0x531e0d('0x94')]()['then'](cmHopper[_0x531e0d('0x14b')](_0x33f1b8,_0x2ece95,_0x3672f8))[_0x531e0d('0x131')](loggerCatch(_0x531e0d('0x21a')));},Dialer[_0x459c62('0x1f3')][_0x459c62('0xa5')]=function(_0x51c355){const _0x8cf1ce=_0x459c62;return Promise['resolve']()[_0x8cf1ce('0x115')](voiceQueueRt[_0x8cf1ce('0xa5')](_0x51c355))[_0x8cf1ce('0x131')](loggerCatch('[getVoiceQueueRtPauses]\x20'));},Dialer['prototype']['moveContactManagedDialer']=function(_0x437803){const _0x4ba300=_0x459c62;return Promise[_0x4ba300('0x94')]()['then'](cmHopper[_0x4ba300('0x9')](_0x437803))[_0x4ba300('0x131')](loggerCatch(_0x4ba300('0x81')));},Dialer[_0x459c62('0x1f3')][_0x459c62('0xf4')]=function(_0x43be91){const _0x6bc294=_0x459c62;return Promise[_0x6bc294('0x94')]()['then'](cmHopperHistory[_0x6bc294('0xf4')](_0x43be91))[_0x6bc294('0x131')](loggerCatch(_0x6bc294('0x2a')));},Dialer[_0x459c62('0x1f3')][_0x459c62('0x176')]=function(_0x413f69){const _0x4a4a0d=_0x459c62;!_[_0x4a4a0d('0x1de')](_0x413f69)&&_0x413f69!==null?typeof _0x413f69[_0x4a4a0d('0x143')]!=='undefined'&&(_0x413f69[_0x4a4a0d('0x143')]>0x0?_0x413f69['originated']-=0x1:logger['error'](_0x4a4a0d('0x85'))):logger['error']('[updateOriginated]\x20is\x20null\x20or\x20undefined');},Dialer['prototype'][_0x459c62('0x184')]=function(_0x7475e0,_0x1257f7){const _0x49c9bd=this;return function(_0x278cc7){const _0x24f3d0=a1056_0x42ea;_0x49c9bd[_0x24f3d0('0x176')](_0x1257f7),logger['error'](_0x7475e0,util['inspect'](_0x278cc7,{'showHidden':![],'depth':null}));};},Dialer['prototype'][_0x459c62('0x48')]=function(_0x162071,_0x4d491f,_0x47e349){const _0x4ff63c=_0x459c62,_0x4d6404={'state':0x19,'statedesc':'notFound'};this['updateOriginated'](_0x4d491f),this[_0x4ff63c('0x1ff')](_[_0x4ff63c('0x122')](_0x4d6404,_[_0x4ff63c('0x19a')](_0x47e349,[_0x4ff63c('0x190'),'ListId',_0x4ff63c('0x172'),_0x4ff63c('0xfc'),'CampaignId'])),_0x4ff63c('0x11f'),'[emptyContact]'),logger[_0x4ff63c('0xbe')](_0x162071);},Dialer[_0x459c62('0x1f3')][_0x459c62('0x111')]=function(_0x577839){const _0x413e2d=_0x459c62;return _0x577839===_0x413e2d('0x1e0');},Dialer[_0x459c62('0x1f3')]['isTrunkReachable']=function(_0x56340f){const _0x134ee2=_0x459c62;return!_[_0x134ee2('0x1de')](_0x56340f)&&_0x56340f&&!_[_0x134ee2('0x1de')](_0x56340f[_0x134ee2('0x30')])&&!_[_0x134ee2('0x1de')](_0x56340f[_0x134ee2('0x175')])&&_0x56340f[_0x134ee2('0x175')]&&(this['trunks'][util[_0x134ee2('0xc2')](_0x134ee2('0x36'),_0x56340f[_0x134ee2('0x30')])][_0x134ee2('0x4f')]===_0x134ee2('0x14d')||this['trunks'][util[_0x134ee2('0xc2')](_0x134ee2('0x36'),_0x56340f['name'])][_0x134ee2('0x4f')]==='unmonitored');},Dialer['prototype']['saveInDb']=function(_0x1f3fcd,_0x17aac9,_0x10dc78){const _0x43e640=_0x459c62;this[_0x43e640('0xf4')](_0x1f3fcd)['catch'](loggerCatch(_0x17aac9)),this[_0x43e640('0x9')](_0x1f3fcd)[_0x43e640('0x131')](loggerCatch(_0x10dc78));},Dialer[_0x459c62('0x1f3')][_0x459c62('0x4c')]=function(_0x2a0a69){const _0x2c9144=_0x459c62,_0x198cd9=this[_0x2c9144('0x1cc')][_0x2a0a69['uniqueid']];let _0x21b64b;if(!_[_0x2c9144('0x1c1')](_0x2a0a69)&&!_['isNil'](_0x2a0a69[_0x2c9144('0x120')])&&!_[_0x2c9144('0x1c1')](_0x2a0a69[_0x2c9144('0x120')][_0x2c9144('0x31')])&&_0x2a0a69[_0x2c9144('0x1dc')]===_0x2c9144('0xb2')&&_0x198cd9){_0x198cd9['type']!==_0x2c9144('0x1b1')&&this[_0x2c9144('0xe3')][_0x198cd9['queue']][_0x2c9144('0x8e')]&&_0x2a0a69[_0x2c9144('0x6d')]===_0x2c9144('0x3f')&&(delete this['uniqueId'][_0x2a0a69['uniqueid']],this['updateOriginated'](this[_0x2c9144('0xe3')][_0x198cd9[_0x2c9144('0x27')]]),this['voiceQueues'][_0x198cd9[_0x2c9144('0x27')]][_0x2c9144('0x75')]+=0x1,this['voiceQueues'][_0x198cd9[_0x2c9144('0x27')]][_0x2c9144('0x185')]+=0x1,_0x21b64b=new Hangup(_0x198cd9,_0x2a0a69),_0x21b64b[_0x2c9144('0x1f8')]=0x12,_0x21b64b['statedesc']=_0x2c9144('0x6a'),_0x21b64b[_0x2c9144('0x121')]=_0x2c9144('0x28'),this[_0x2c9144('0x1ff')](_0x21b64b,_0x2c9144('0x166'),_0x2c9144('0x1b6')));if(_0x198cd9['type']!==_0x2c9144('0x1b1')&&this['voiceQueues'][_0x198cd9[_0x2c9144('0x27')]][_0x2c9144('0x8e')]&&_0x2a0a69[_0x2c9144('0x6d')]===_0x2c9144('0x1da')){const _0x414469=this;return new Promise(function(_0x458cb8,_0x4831c6){const _0x1ee077=_0x2c9144;delete _0x414469['uniqueId'][_0x2a0a69[_0x1ee077('0x1f0')]],_0x414469['updateOriginated'](_0x414469[_0x1ee077('0xe3')][_0x198cd9['queue']]),_0x414469[_0x1ee077('0xe3')][_0x198cd9[_0x1ee077('0x27')]][_0x1ee077('0x75')]+=0x1,_0x414469[_0x1ee077('0xe3')][_0x198cd9[_0x1ee077('0x27')]]['outboundAnswerAgiCallsDay']+=0x1;const _0x15036c=_0x414469['voiceQueues'][_0x198cd9['queue']],_0x40de89=new Hangup(_0x198cd9,_0x2a0a69);_0x40de89[_0x1ee077('0x1f8')]=0x13,_0x40de89[_0x1ee077('0x155')]='Machine',_0x40de89[_0x1ee077('0x121')]=_0x1ee077('0x28'),_0x40de89[_0x1ee077('0x1ec')]+=0x1,_0x40de89[_0x1ee077('0x12e')]+=0x1,_0x40de89[_0x1ee077('0xfb')]=!![],_0x414469['createHistory'](_0x40de89)[_0x1ee077('0x131')](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x40de89[_0x1ee077('0x19e')]+_0x40de89['countcongestionretry']+_0x40de89[_0x1ee077('0xdd')]+_0x40de89['countnosuchnumberretry']+_0x40de89[_0x1ee077('0x1f')]+_0x40de89[_0x1ee077('0x11d')]+_0x40de89[_0x1ee077('0x1ec')]+_0x40de89[_0x1ee077('0x1cb')]>=_0x15036c['dialGlobalMaxRetry']?_0x414469[_0x1ee077('0x1d7')](_0x40de89,_0x458cb8,_0x4831c6,_0x1ee077('0x1a3')):_0x40de89[_0x1ee077('0x1ec')]>=_0x15036c[_0x1ee077('0x188')]?_0x414469[_0x1ee077('0xdc')](_0x40de89,_0x458cb8,_0x4831c6,'reason\x2019\x20machine....'):(_0x414469[_0x1ee077('0x1ab')]({'active':![],'countmachineretry':_0x40de89[_0x1ee077('0x1ec')],'scheduledat':moment()[_0x1ee077('0x1b0')](_0x15036c[_0x1ee077('0x17e')],'minutes')[_0x1ee077('0xc2')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x40de89[_0x1ee077('0x190')],'ListId':_0x40de89['ListId'],'VoiceQueueId':_0x40de89[_0x1ee077('0xfc')]||undefined,'CampaignId':_0x40de89[_0x1ee077('0x82')]||undefined})[_0x1ee077('0x131')](loggerCatch(_0x1ee077('0x1ae'))),_0x458cb8({'reschedule':0x1}));});}_0x198cd9['type']===_0x2c9144('0x1b1')&&this['campaigns'][_0x198cd9[_0x2c9144('0x27')]][_0x2c9144('0x8e')]&&_0x2a0a69['value']===_0x2c9144('0x3f')&&(delete this[_0x2c9144('0x1cc')][_0x2a0a69[_0x2c9144('0x1f0')]],this[_0x2c9144('0x176')](this[_0x2c9144('0x5c')][_0x198cd9[_0x2c9144('0x27')]]),_0x21b64b=new Hangup(_0x198cd9,_0x2a0a69),_0x21b64b[_0x2c9144('0x1f8')]=0x12,_0x21b64b[_0x2c9144('0x155')]=_0x2c9144('0x6a'),_0x21b64b[_0x2c9144('0x121')]=_0x2c9144('0x28'),this[_0x2c9144('0x1ff')](_0x21b64b,'[syncHangupInAMDIvr][createHistory]',_0x2c9144('0x215')));if(_0x198cd9[_0x2c9144('0xf1')]===_0x2c9144('0x1b1')&&this['campaigns'][_0x198cd9[_0x2c9144('0x27')]][_0x2c9144('0x8e')]&&_0x2a0a69[_0x2c9144('0x6d')]===_0x2c9144('0x1da')){const _0x2ab387=this;return new Promise(function(_0x4bf4bb,_0x18e903){const _0x274edf=_0x2c9144;delete _0x2ab387['uniqueId'][_0x2a0a69[_0x274edf('0x1f0')]],_0x2ab387[_0x274edf('0x176')](_0x2ab387[_0x274edf('0x5c')][_0x198cd9['queue']]),_0x2ab387[_0x274edf('0x5c')][_0x198cd9[_0x274edf('0x27')]][_0x274edf('0x75')]+=0x1,_0x2ab387[_0x274edf('0x5c')][_0x198cd9[_0x274edf('0x27')]][_0x274edf('0x185')]+=0x1;const _0x4758cd=_0x2ab387[_0x274edf('0x5c')][_0x198cd9['queue']],_0x48d583=new Hangup(_0x198cd9,_0x2a0a69);_0x48d583[_0x274edf('0x1f8')]=0x13,_0x48d583[_0x274edf('0x155')]=_0x274edf('0x1f2'),_0x48d583['membername']=_0x274edf('0x28'),_0x48d583[_0x274edf('0x1ec')]+=0x1,_0x48d583[_0x274edf('0x12e')]+=0x1,_0x48d583[_0x274edf('0xfb')]=!![],_0x2ab387[_0x274edf('0xf4')](_0x48d583)[_0x274edf('0x131')](loggerCatch(_0x274edf('0x18b'))),_0x48d583['countbusyretry']+_0x48d583[_0x274edf('0x7f')]+_0x48d583[_0x274edf('0xdd')]+_0x48d583[_0x274edf('0x117')]+_0x48d583['countdropretry']+_0x48d583['countabandonedretry']+_0x48d583['countmachineretry']+_0x48d583[_0x274edf('0x1cb')]>=_0x4758cd[_0x274edf('0x91')]?_0x2ab387['stateGlobal'](_0x48d583,_0x4bf4bb,_0x18e903,'reason19\x20machine....'):_0x48d583[_0x274edf('0x1ec')]>=_0x4758cd[_0x274edf('0x188')]?_0x2ab387['createStateFinal'](_0x48d583,_0x4bf4bb,_0x18e903,_0x274edf('0x9d')):(_0x2ab387['rescheduleContact']({'active':![],'countmachineretry':_0x48d583[_0x274edf('0x1ec')],'scheduledat':moment()['add'](_0x4758cd['dialMachineRetryFrequency'],_0x274edf('0x196'))[_0x274edf('0xc2')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x48d583['ContactId'],'ListId':_0x48d583['ListId'],'VoiceQueueId':_0x48d583['VoiceQueueId']||undefined,'CampaignId':_0x48d583[_0x274edf('0x82')]||undefined})[_0x274edf('0x131')](loggerCatch(_0x274edf('0x1ae'))),_0x4bf4bb({'reschedule':0x1}));});}}},Dialer['prototype'][_0x459c62('0x1e1')]=function(_0x45550b){const _0x26a0d7=_0x459c62,_0x57b4bb=this[_0x26a0d7('0x1cc')][_0x45550b[_0x26a0d7('0x1f0')]];let _0x516ed6;_0x57b4bb&&_0x57b4bb[_0x26a0d7('0xf1')]===_0x26a0d7('0x1b1')&&(delete this['uniqueId'][_0x45550b['uniqueid']],this[_0x26a0d7('0x176')](this[_0x26a0d7('0x5c')][_0x57b4bb[_0x26a0d7('0x27')]]),this[_0x26a0d7('0x5c')][_0x57b4bb[_0x26a0d7('0x27')]][_0x26a0d7('0x1b')]+=0x1,_0x516ed6=new Hangup(_0x57b4bb,_0x45550b),this[_0x26a0d7('0xf4')](_0x516ed6)['catch'](loggerCatch('[syncHangupIvr][createHistory]')),this[_0x26a0d7('0x9')](_0x516ed6)[_0x26a0d7('0x131')](loggerCatch('[syncHangupIvr]'))),_0x57b4bb&&_0x57b4bb[_0x26a0d7('0xf1')]!==_0x26a0d7('0x1b1')&&isNotNull(this['voiceQueues'][_0x57b4bb['queue']][_0x26a0d7('0x18c')])&&(delete this['uniqueId'][_0x45550b[_0x26a0d7('0x1f0')]],this['updateOriginated'](this[_0x26a0d7('0xe3')][_0x57b4bb['queue']]),this[_0x26a0d7('0xe3')][_0x57b4bb[_0x26a0d7('0x27')]][_0x26a0d7('0x75')]+=0x1,this[_0x26a0d7('0xe3')][_0x57b4bb['queue']][_0x26a0d7('0x185')]+=0x1,_0x516ed6=new Hangup(_0x57b4bb,_0x45550b),_0x516ed6[_0x26a0d7('0x1f8')]=0x10,_0x516ed6[_0x26a0d7('0x155')]='AnswerAGI',_0x516ed6[_0x26a0d7('0x121')]=_0x26a0d7('0x29'),this[_0x26a0d7('0xf4')](_0x516ed6)['catch'](loggerCatch(_0x26a0d7('0xb4'))),this[_0x26a0d7('0x9')](_0x516ed6)[_0x26a0d7('0x131')](loggerCatch(_0x26a0d7('0x1d8')))),_0x57b4bb&&_0x57b4bb[_0x26a0d7('0xf1')]!==_0x26a0d7('0x1b1')&&!isNotNull(this[_0x26a0d7('0xe3')][_0x57b4bb[_0x26a0d7('0x27')]][_0x26a0d7('0x18c')])&&(delete this[_0x26a0d7('0x1cc')][_0x45550b[_0x26a0d7('0x1f0')]],this[_0x26a0d7('0x176')](this[_0x26a0d7('0xe3')][_0x57b4bb[_0x26a0d7('0x27')]]),this['voiceQueues'][_0x57b4bb[_0x26a0d7('0x27')]][_0x26a0d7('0xcc')]+=0x1,_0x516ed6=new Hangup(_0x57b4bb,_0x45550b),_0x516ed6[_0x26a0d7('0x1f8')]=0xc,_0x516ed6[_0x26a0d7('0x155')]=_0x45550b[_0x26a0d7('0x8f')],_0x516ed6[_0x26a0d7('0x121')]=_0x26a0d7('0x92'),this[_0x26a0d7('0xf4')](_0x516ed6)[_0x26a0d7('0x131')](loggerCatch(_0x26a0d7('0xb4'))),this[_0x26a0d7('0x9')](_0x516ed6)[_0x26a0d7('0x131')](loggerCatch(_0x26a0d7('0x1d8'))));},Dialer[_0x459c62('0x1f3')]['syncAgentComplete']=function(_0x58cddc){const _0x1aa944=_0x459c62,_0x377005=this[_0x1aa944('0x1cc')][_0x58cddc[_0x1aa944('0x1f0')]];if(this[_0x1aa944('0xe3')][_0x58cddc[_0x1aa944('0x27')]]){if(_0x377005&&_0x377005[_0x1aa944('0xf1')]!==_0x1aa944('0x1b1')){delete this[_0x1aa944('0x1cc')][_0x58cddc[_0x1aa944('0x1f0')]],this[_0x1aa944('0xe3')][_0x58cddc[_0x1aa944('0x27')]]['outboundAnswerCallsDay']+=0x1;const _0x593af9=new AgentComplete(_0x377005,_0x58cddc);_0x58cddc[_0x1aa944('0xfe')]===_0x1aa944('0x118')&&(_0x593af9[_0x1aa944('0xf0')]=this[_0x1aa944('0xe3')][_0x58cddc[_0x1aa944('0x27')]][_0x1aa944('0x199')]&&this['voiceQueues'][_0x58cddc['queue']][_0x1aa944('0x174')]?moment()[_0x1aa944('0xc2')](_0x1aa944('0x183')):undefined),this[_0x1aa944('0xf4')](_0x593af9)[_0x1aa944('0x131')](loggerCatch(_0x1aa944('0x216'))),this[_0x1aa944('0x9')](_0x593af9)[_0x1aa944('0x131')](loggerCatch(_0x1aa944('0xd5')));}}},Dialer['prototype'][_0x459c62('0x1cd')]=function(_0x8d60dc){const _0x44b186=_0x459c62;this[_0x44b186('0xe3')][_0x8d60dc[_0x44b186('0x27')]]&&(this['uniqueId'][_0x8d60dc[_0x44b186('0x1f0')]]&&this['uniqueId'][_0x8d60dc[_0x44b186('0x1f0')]]['type']!=='ivr'&&(this[_0x44b186('0x176')](this[_0x44b186('0xe3')][_0x8d60dc[_0x44b186('0x27')]]),this[_0x44b186('0x1cc')][_0x8d60dc[_0x44b186('0x1f0')]]['answertime']=moment()['format'](_0x44b186('0x183'))));},Dialer[_0x459c62('0x1f3')]['queueCallerAbandonCreateState']=function(_0x5e2a25){const _0x401661=_0x459c62;this['createHistory'](_0x5e2a25)[_0x401661('0x131')](loggerCatch(_0x401661('0x216'))),this[_0x401661('0x9')](_0x5e2a25)[_0x401661('0x131')](loggerCatch(_0x401661('0x10c')));},Dialer[_0x459c62('0x1f3')][_0x459c62('0xf5')]=function(_0x877132){const _0x243665=_0x459c62,_0x565551=this[_0x243665('0x1cc')][_0x877132['uniqueid']];if(this[_0x243665('0xe3')][_0x877132['queue']]){if(_0x565551&&_0x565551['type']!=='ivr'){delete this[_0x243665('0x1cc')][_0x877132[_0x243665('0x1f0')]],this[_0x243665('0x176')](this['voiceQueues'][_0x877132[_0x243665('0x27')]]),_0x565551[_0x243665('0x15d')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss');const _0x197495=new QueueCallerAbandon(_0x565551,_0x877132);if(getSeconds(_0x565551[_0x243665('0x15d')],_0x565551[_0x243665('0x17f')])>=_0x565551[_0x243665('0x208')]){this[_0x243665('0xe3')][_0x877132[_0x243665('0x27')]]['predictiveIntervalDroppedCallsTimeout']+=0x1,this[_0x243665('0xe3')][_0x877132[_0x243665('0x27')]][_0x243665('0x10')]+=0x1,this[_0x243665('0xe3')][_0x877132[_0x243665('0x27')]]['predictiveIntervalErlangCallsDroppedCalls']+=0x1,_0x197495[_0x243665('0x1f8')]=0xa,_0x197495[_0x243665('0x155')]=_0x243665('0x157'),_0x197495['dropreason']='TIMEOUT',_0x197495[_0x243665('0xf0')]=this[_0x243665('0xe3')][_0x877132['queue']][_0x243665('0x199')]?moment()[_0x243665('0xc2')]('YYYY-MM-DD\x20HH:mm:ss'):undefined,_0x197495[_0x243665('0x1f')]+=0x1,_0x197495[_0x243665('0x12e')]+=0x1;if(_0x197495[_0x243665('0x1f')]>=this['voiceQueues'][_0x877132['queue']][_0x243665('0x13')])this[_0x243665('0x1eb')](_0x197495);else{this[_0x243665('0x1ab')]({'active':![],'countdropretry':_0x197495['countdropretry'],'scheduledat':moment()[_0x243665('0x1b0')](this[_0x243665('0xe3')][_0x877132[_0x243665('0x27')]][_0x243665('0x54')],'minutes')['format'](_0x243665('0x183')),'ContactId':_0x565551['ContactId'],'ListId':_0x565551['ListId'],'VoiceQueueId':_0x565551['VoiceQueueId']||undefined,'CampaignId':_0x565551['CampaignId']||undefined})[_0x243665('0x131')](loggerCatch(_0x243665('0x109')));const _0x413e64=new History(_0x197495);_0x413e64['state']=0xa,_0x413e64['statedesc']=_0x243665('0x157'),_0x413e64[_0x243665('0x15f')]=moment()[_0x243665('0xc2')](_0x243665('0x183')),_0x413e64[_0x243665('0xd4')]=_0x413e64[_0x243665('0x15f')],_0x413e64['calleridname']=_0x197495['calleridname'],_0x413e64['calleridnum']=_0x197495[_0x243665('0x101')],this[_0x243665('0xf4')](_0x413e64)[_0x243665('0x131')](loggerCatch(_0x243665('0x64')));}}else{this['voiceQueues'][_0x877132[_0x243665('0x27')]][_0x243665('0xf8')]+=0x1,this['voiceQueues'][_0x877132[_0x243665('0x27')]][_0x243665('0x71')]+=0x1,_0x197495[_0x243665('0x1f8')]=0xb,_0x197495[_0x243665('0x155')]=_0x243665('0x7'),_0x197495[_0x243665('0xb')]=_0x243665('0x42'),_0x197495[_0x243665('0x11d')]+=0x1,_0x197495[_0x243665('0x12e')]+=0x1;if(_0x197495['countabandonedretry']>=this[_0x243665('0xe3')][_0x877132[_0x243665('0x27')]][_0x243665('0x139')])this[_0x243665('0x1eb')](_0x197495);else{this[_0x243665('0x1ab')]({'active':![],'countabandonedretry':_0x197495[_0x243665('0x11d')],'scheduledat':moment()[_0x243665('0x1b0')](this['voiceQueues'][_0x877132[_0x243665('0x27')]]['dialAbandonedRetryFrequency'],_0x243665('0x196'))['format'](_0x243665('0x183')),'ContactId':_0x565551[_0x243665('0x190')],'ListId':_0x565551[_0x243665('0x17d')],'VoiceQueueId':_0x565551[_0x243665('0xfc')]||undefined,'CampaignId':_0x565551[_0x243665('0x82')]||undefined})['catch'](loggerCatch('[rescheduleContact][Abandoned]'));const _0x2d2eae=new History(_0x197495);_0x2d2eae['state']=0xb,_0x2d2eae[_0x243665('0x155')]='Abandoned',_0x2d2eae[_0x243665('0x15f')]=moment()['format'](_0x243665('0x183')),_0x2d2eae['endtime']=_0x2d2eae['starttime'],_0x2d2eae[_0x243665('0x83')]=_0x197495[_0x243665('0x83')],_0x2d2eae['calleridnum']=_0x197495[_0x243665('0x101')],this['createHistory'](_0x2d2eae)[_0x243665('0x131')](loggerCatch(_0x243665('0x10d')));}}}}},Dialer[_0x459c62('0x1f3')][_0x459c62('0xcb')]=function(_0x50ffa1){const _0x421fa0=_0x459c62;this[_0x421fa0('0x97')][_0x50ffa1[_0x421fa0('0x1f0')]]&&(this[_0x421fa0('0x97')][_0x50ffa1['uniqueid']][_0x421fa0('0xe7')]=_0x50ffa1['channel']),this[_0x421fa0('0x1cc')][_0x50ffa1[_0x421fa0('0x1f0')]]&&(this[_0x421fa0('0x1cc')][_0x50ffa1[_0x421fa0('0x1f0')]][_0x421fa0('0xe7')]=_0x50ffa1[_0x421fa0('0xe7')]);},Dialer[_0x459c62('0x1f3')][_0x459c62('0x57')]=function(_0x303c55){const _0x2c7f8c=_0x459c62;if(strategy[this[_0x2c7f8c('0xe3')][this[_0x2c7f8c('0x97')][_0x303c55[_0x2c7f8c('0x187')]]['queue']][_0x2c7f8c('0xab')]]===_0x2c7f8c('0x43'))this[_0x2c7f8c('0x97')][_0x303c55[_0x2c7f8c('0x187')]]&&_[_0x2c7f8c('0x1c1')](this[_0x2c7f8c('0x97')][_0x303c55[_0x2c7f8c('0x187')]][_0x2c7f8c('0x20f')])&&_0x303c55['status']==='1'&&_0x303c55[_0x2c7f8c('0x35')]==='0'&&(this[_0x2c7f8c('0x141')][_0x303c55[_0x2c7f8c('0x5a')]]&&(!this[_0x2c7f8c('0x141')][_0x303c55[_0x2c7f8c('0x5a')]]['locked']&&(this[_0x2c7f8c('0x141')][_0x303c55[_0x2c7f8c('0x5a')]][_0x2c7f8c('0x20f')]=!![],this[_0x2c7f8c('0x97')][_0x303c55[_0x2c7f8c('0x187')]]['locked']=!![],this[_0x2c7f8c('0x97')][_0x303c55[_0x2c7f8c('0x187')]][_0x2c7f8c('0x5a')]=_0x303c55[_0x2c7f8c('0x5a')])));else(strategy[this[_0x2c7f8c('0xe3')][this['actions'][_0x303c55[_0x2c7f8c('0x187')]][_0x2c7f8c('0x27')]][_0x2c7f8c('0xab')]]||'rrmemory')===_0x2c7f8c('0x1c8')&&(this[_0x2c7f8c('0x97')][_0x303c55['actionid']]&&(this[_0x2c7f8c('0x141')][_0x303c55[_0x2c7f8c('0x5a')]]&&(this[_0x2c7f8c('0x97')][_0x303c55[_0x2c7f8c('0x187')]][_0x2c7f8c('0x5a')]=_0x303c55[_0x2c7f8c('0x5a')],_[_0x2c7f8c('0x1c1')](this[_0x2c7f8c('0x177')][this[_0x2c7f8c('0x97')][_0x303c55['actionid']][_0x2c7f8c('0x27')]])&&(this['queueBooked'][this[_0x2c7f8c('0x97')][_0x303c55['actionid']][_0x2c7f8c('0x27')]]=[]),this['queueBooked'][this['actions'][_0x303c55[_0x2c7f8c('0x187')]][_0x2c7f8c('0x27')]]['push'](_[_0x2c7f8c('0x122')](_[_0x2c7f8c('0x19a')](this[_0x2c7f8c('0x97')][_0x303c55[_0x2c7f8c('0x187')]],['idHopper',_0x2c7f8c('0x5a')]),{'status':_0x303c55['status'],'paused':_0x303c55[_0x2c7f8c('0x35')]})))));};function unlockQueueStatus(_0x12ab40,_0x42d606){setTimeout(function(){const _0x33a064=a1056_0x42ea;_['isUndefined'](_0x12ab40[_0x33a064('0x15c')])&&loggerBooked[_0x33a064('0xbe')](_0x33a064('0x61'),_0x42d606),_0x12ab40['queueStatusComplete']=!![],loggerBooked[_0x33a064('0x4d')](_0x33a064('0x162'),_0x42d606,JSON['stringify'](_[_0x33a064('0x19a')](_0x12ab40,[_0x33a064('0x30'),_0x33a064('0x15c')])));},0x1f3);}Dialer[_0x459c62('0x1f3')][_0x459c62('0x209')]=function(_0x2f9a51){const _0x5eac0f=_0x459c62,_0x47baef=this,_0x4b331b=_0x47baef[_0x5eac0f('0xe3')][_0x47baef[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]];if(strategy[this[_0x5eac0f('0xe3')][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]][_0x5eac0f('0xab')]]==='roundrobin')this['actions'][_0x2f9a51[_0x5eac0f('0x187')]]&&this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]]['stateinterface']?this[_0x5eac0f('0x1c6')][_0x5eac0f('0x192')](this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x6e')],this['actions'][_0x2f9a51[_0x5eac0f('0x187')]]['stateinterface'])[_0x5eac0f('0x131')](function(_0x2766ae){const _0x4285eb=_0x5eac0f;logger[_0x4285eb('0xbe')](_0x4285eb('0xe5'),util[_0x4285eb('0x169')](_0x2766ae,{'showHidden':![],'depth':null}));})[_0x5eac0f('0x1d3')](function(){const _0xc21e1=_0x5eac0f;_0x47baef[_0xc21e1('0x176')](_0x47baef[_0xc21e1('0xe3')][_0x47baef[_0xc21e1('0x97')][_0x2f9a51[_0xc21e1('0x187')]]['queue']]),_0x47baef[_0xc21e1('0x141')][_0x47baef['actions'][_0x2f9a51[_0xc21e1('0x187')]][_0xc21e1('0x5a')]][_0xc21e1('0x20f')]=![],delete _0x47baef['actions'][_0x2f9a51['actionid']],unlockQueueStatus(_0x4b331b);}):(this['updateOriginated'](this['voiceQueues'][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]]),this[_0x5eac0f('0x1ab')]({'active':![],'ContactId':this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x190')],'ListId':this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x17d')],'VoiceQueueId':this[_0x5eac0f('0x97')][_0x2f9a51['actionid']][_0x5eac0f('0xfc')]||undefined,'CampaignId':this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]]['CampaignId']||undefined})[_0x5eac0f('0x131')](loggerCatch(_0x5eac0f('0x124'))),delete this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]],unlockQueueStatus(_0x4b331b));else{if((strategy[this[_0x5eac0f('0xe3')][this['actions'][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]][_0x5eac0f('0xab')]]||_0x5eac0f('0x1c8'))==='rrmemory'){let _0x5c5d38;if(this['actions'][_0x2f9a51[_0x5eac0f('0x187')]]&&!_[_0x5eac0f('0x6')](this[_0x5eac0f('0x177')][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]]['queue']])){this[_0x5eac0f('0x1c4')][_0x47baef[_0x5eac0f('0x97')][_0x2f9a51['actionid']][_0x5eac0f('0x27')]]&&(this[_0x5eac0f('0x1c4')][_0x47baef[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]]=this[_0x5eac0f('0x1c4')][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]]?this[_0x5eac0f('0x1c4')][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]]:this[_0x5eac0f('0x177')][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]]['queue']]?this[_0x5eac0f('0x177')][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]][_0x5eac0f('0x211')]||0x0:0x0);this[_0x5eac0f('0x177')][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]]['queue']][_0x5eac0f('0x211')]=this['queueBookedRR'][this[_0x5eac0f('0x97')][_0x2f9a51[_0x5eac0f('0x187')]][_0x5eac0f('0x27')]];for(let _0x5b6b8e=0x0;_0x5b6b8e=0x0?!![]:![];})['catch'](myreject(_0x230548)));}else _0x466e11['push'](ami[_0x2c8e52('0xe0')]({'action':_0x2c8e52('0x51'),'command':util['format'](_0x2c8e52('0x12'),_0x36540b,!_['isUndefined'](config[_0x2c8e52('0x1c')][_0xfac758])?_0xfac758:'')})[_0x2c8e52('0x115')](function(_0xa6f6c0){const _0x282416=_0x2c8e52;return _0xa6f6c0[_0x282416('0x210')]['indexOf'](_0x282416('0xda'))>=0x0?!![]:![];})[_0x2c8e52('0x131')](myreject(_0x230548)));Promise['all'](_0x466e11)['then'](function(_0x2a5651){const _0x273b8c=_0x2c8e52,_0x489cdd=_[_0x273b8c('0x63')](_0x2a5651);return _0x489cdd?_0x706974(_0x489cdd):(_0x3eefe6[_0x273b8c('0x1bd')]=_0x395b46?_0x273b8c('0x8b'):'INTERVAL_IS_OVERTIME',_0x230548(msgResponse(_0x273b8c('0x9b'),_0x273b8c('0x1a7'),_0x273b8c('0x4e')+_0x395b46+'\x20'+_0x54ce4f+_0x273b8c('0x16c')+util['inspect'](_0x36540b,{'showHidden':![],'depth':null})+'Timezone:\x20'+_0xfac758)));})[_0x2c8e52('0x131')](function(_0x50423d){const _0x18f444=_0x2c8e52;return _0x230548(msgResponse(_0x18f444('0x167'),_0x18f444('0x1a7'),JSON[_0x18f444('0x7e')](_0x50423d)));});});},Dialer['prototype'][_0x459c62('0x1a4')]=function(_0x14dc87){const _0x2dfd4b=this;return function(){const _0x947c4b=a1056_0x42ea;switch(_0x14dc87[_0x947c4b('0x12f')]){case _0x947c4b('0x2c'):freeVariablesPredictive(_0x14dc87),_0x2dfd4b[_0x947c4b('0x46')](_0x14dc87,0x1);break;case'power':freeVariablesPredictive(_0x14dc87),_0x2dfd4b[_0x947c4b('0x46')](_0x14dc87,_0x14dc87[_0x947c4b('0xb5')]);break;case _0x947c4b('0xe2'):_0x2dfd4b[_0x947c4b('0xe2')](_0x14dc87);break;case _0x947c4b('0x151'):freeVariablesPredictive(_0x14dc87),_0x2dfd4b[_0x947c4b('0x46')](_0x14dc87,0x1);break;default:freeVariablesPredictive(_0x14dc87),logger[_0x947c4b('0xbe')](_0x947c4b('0x5b'),_0x14dc87[_0x947c4b('0x30')],_0x947c4b('0x13b'));}};},Dialer[_0x459c62('0x1f3')][_0x459c62('0x213')]=function(_0x49ee1a){const _0xa46aec=this;return function(){_0xa46aec['handleIvr'](_0x49ee1a);};},Dialer[_0x459c62('0x1f3')][_0x459c62('0x4b')]=function(_0xc0f5a2){const _0x3041f3=_0x459c62,_0x34191e=this;isNotPreview(_0xc0f5a2[_0x3041f3('0x12f')])?isVoiceQueueOutbound(_0xc0f5a2[_0x3041f3('0xf1')])&&isActive(_0xc0f5a2[_0x3041f3('0x14a')])?(_0xc0f5a2[_0x3041f3('0x21')]=!![],Promise[_0x3041f3('0x94')]()[_0x3041f3('0x115')](checkIsLoggedIn(_0xc0f5a2,_0xc0f5a2[_0x3041f3('0xe6')]))['then'](checkIsActive(_0xc0f5a2,_0xc0f5a2[_0x3041f3('0x14a')]))[_0x3041f3('0x115')](checkInterval(_0xc0f5a2))[_0x3041f3('0x115')](_0x34191e[_0x3041f3('0x19d')](_0xc0f5a2))[_0x3041f3('0x115')](_0x34191e[_0x3041f3('0x181')](_0xc0f5a2[_0x3041f3('0xef')],_0xc0f5a2[_0x3041f3('0x134')],_0xc0f5a2[_0x3041f3('0x30')],_0xc0f5a2))[_0x3041f3('0x115')](_0x34191e['checkIfTimeIntervals'](_0xc0f5a2[_0x3041f3('0x1af')],_0xc0f5a2[_0x3041f3('0x134')],_0xc0f5a2[_0x3041f3('0x30')],_0xc0f5a2))[_0x3041f3('0x115')](_0x34191e[_0x3041f3('0x1a4')](_0xc0f5a2))[_0x3041f3('0x131')](loggerCatchQueueSummary('[syncQueueSummary]',_0xc0f5a2))):notSendMessagesQueue(_0xc0f5a2):freeVariablesPredictive(_0xc0f5a2);},Dialer[_0x459c62('0x1f3')][_0x459c62('0x2d')]=function(){const _0x45bd48=_0x459c62,_0x230602=this;let _0x2bcc32;for(const _0x358509 in this[_0x45bd48('0x5c')]){typeof this['campaigns'][_0x358509]!==_0x45bd48('0x40')&&(_0x2bcc32=this[_0x45bd48('0x5c')][_0x358509],isCampaignIvr(_0x2bcc32[_0x45bd48('0xf1')])&&isActive(_0x2bcc32[_0x45bd48('0x175')])?(_0x2bcc32[_0x45bd48('0x21')]=!![],Promise['resolve']()[_0x45bd48('0x115')](checkIsActive(_0x2bcc32,_0x2bcc32[_0x45bd48('0x175')]))[_0x45bd48('0x115')](checkInterval(_0x2bcc32))[_0x45bd48('0x115')](_0x230602[_0x45bd48('0x19d')](_0x2bcc32))['then'](_0x230602[_0x45bd48('0x181')](_0x2bcc32[_0x45bd48('0xef')],_0x2bcc32[_0x45bd48('0x134')],_0x2bcc32[_0x45bd48('0x30')],_0x2bcc32))['then'](_0x230602[_0x45bd48('0x119')](_0x2bcc32[_0x45bd48('0x1af')],_0x2bcc32['dialTimezone'],_0x2bcc32[_0x45bd48('0x30')],_0x2bcc32))['then'](_0x230602[_0x45bd48('0x213')](_0x2bcc32))[_0x45bd48('0x131')](loggerCatchQueueSummary(_0x45bd48('0x1c9'),_0x2bcc32))):notSendMessagesCampaign(_0x2bcc32));}};function getCallerIdRandom(_0x1d52b5,_0xcf7050){const _0x67cd11=_0x459c62;_0xcf7050<=0x0&&(_0xcf7050=0x1);const _0x1e58fc=new RegExp('\x5cw{0,'+_0xcf7050+'}$'),_0x8a35da=Math[_0x67cd11('0x126')](0xa,_0xcf7050-0x1),_0x26b3c6=Math['pow'](0xa,_0xcf7050)-0x1;return util['format']('%s',_[_0x67cd11('0x219')](_0x1d52b5,_0x1e58fc,_[_0x67cd11('0xd3')](_0x8a35da,_0x26b3c6)));}function extractCalleridName(_0x29ad6d){const _0x7329ac=_0x459c62,_0x41c769=_0x29ad6d[_0x7329ac('0x1d6')](/"(.*?)"/);return _0x41c769?_0x41c769[0x1]:_0x29ad6d;}function extractCalleridNumber(_0x2c8b9d){const _0x342d2a=_0x459c62,_0x34a30b=_0x2c8b9d[_0x342d2a('0x1d6')](/<(.*?)>/);return _0x34a30b?_0x34a30b[0x1]:_0x2c8b9d;}Dialer['prototype'][_0x459c62('0x3e')]=function(_0x34879c,_0x5de18f){const _0x25ca43=_0x459c62,_0x149716=getConfigService(),_0x524b1d=this,_0x3306ac=uuid['v4']();return this[_0x25ca43('0x97')][_0x3306ac]=new Action(_0x34879c,_0x5de18f,_0x3306ac),new Promise(function(_0x298393,_0x1be997){const _0x47900c=_0x25ca43;if(_['isUndefined'](_0x34879c)&&_0x47900c('0x152')!==typeof _0x34879c)return _0x1be997(msgResponse(_0x47900c('0xc5'),_0x47900c('0x1a7'),_0x47900c('0x1b2')));if(_[_0x47900c('0x1de')](_0x5de18f[_0x47900c('0xa8')][_0x47900c('0x123')])||_0x5de18f[_0x47900c('0xa8')][_0x47900c('0x123')]===null)return _0x1be997(msgResponse(_0x47900c('0xc5'),'Failure',_0x47900c('0x52')));const _0x4a3085={'XMD-CALLERID':_0x524b1d['actions'][_0x3306ac]['getCaller'](),'XMD-AGI':_0x34879c[_0x47900c('0x18c')]?util[_0x47900c('0xc2')](_0x47900c('0x168'),_0x149716[_0x47900c('0x136')],_0x34879c[_0x47900c('0x18c')]):_0x47900c('0xb3'),'XMD-AGIAFTER':_0x34879c[_0x47900c('0x199')]?util[_0x47900c('0xc2')](_0x47900c('0x168'),_0x149716[_0x47900c('0x136')],_0x34879c['dialQueueProject2']):_0x47900c('0xb3'),'XMD-QUEUE':_0x34879c[_0x47900c('0xf1')]===_0x47900c('0x37')?util[_0x47900c('0xc2')](_0x47900c('0xeb'),_0x34879c['name'],_0x34879c[_0x47900c('0x20')]||'',_0x34879c['dialAgiAfterHangupAgent']?'c':'',_0x34879c[_0x47900c('0x208')]||0x3):_0x47900c('0xb3'),'XMD-CONTACTID':_0x5de18f['ContactId'],'XMD-CDRTYPE':'dialer','CALLERID(all)':_0x524b1d[_0x47900c('0x97')][_0x3306ac][_0x47900c('0x65')](),'XMD-AMD':_0x34879c[_0x47900c('0x8e')]?_0x47900c('0xea'):_0x47900c('0xb3'),'XMD-DESTINATION':_0x47900c('0xb2')};_0x34879c['dialAMDActive']&&(_0x4a3085[_0x47900c('0x163')]=_0x34879c[_0x47900c('0x90')]||0x9c4,_0x4a3085[_0x47900c('0xdb')]=_0x34879c[_0x47900c('0x16')]||0x5dc,_0x4a3085['XMD-AMDAFTERGREETINGSILENCE']=_0x34879c[_0x47900c('0x125')]||0x320,_0x4a3085[_0x47900c('0x135')]=_0x34879c['dialAMDTotalAnalysisTime']||0x1388,_0x4a3085[_0x47900c('0x18d')]=_0x34879c['dialAMDMinWordLength']||0x64,_0x4a3085[_0x47900c('0x19f')]=_0x34879c[_0x47900c('0x9c')]||0x32,_0x4a3085[_0x47900c('0x13a')]=_0x34879c['dialAMDMaximumNumberOfWords']||0x3,_0x4a3085[_0x47900c('0x20c')]=_0x34879c[_0x47900c('0x18a')]||0x100,_0x4a3085['XMD-AMDMAXIMUMWORDLENGTH']=_0x34879c['dialAMDMaximumWordLength']||0x1388);_0x34879c['type']===_0x47900c('0x37')?_0x4a3085[_0x47900c('0x2f')]=_0x5de18f[_0x47900c('0xfc')]:_0x4a3085[_0x47900c('0x15e')]=_0x5de18f['CampaignId'];for(const _0x135353 in _0x5de18f[_0x47900c('0xa8')]){typeof _0x5de18f[_0x47900c('0xa8')][_0x135353]!==_0x47900c('0x40')&&(isNotNull(_0x5de18f[_0x47900c('0xa8')][_0x135353])&&_0x135353!=='id'&&_0x135353!==_0x47900c('0xa3')&&_0x135353!==_0x47900c('0x10f')&&_0x135353!=='updatedAt'&&(_0x4a3085[util[_0x47900c('0xc2')](_0x47900c('0x13d'),_0x47900c('0x77'),_[_0x47900c('0x73')](_0x135353))]=_0x5de18f[_0x47900c('0xa8')][_0x135353]));}const _0x26f1af=_0x524b1d[_0x47900c('0x164')](_0x34879c[_0x47900c('0x154')])?getCallerId(_0x34879c[_0x47900c('0x154')]['callerid'],_0x34879c[_0x47900c('0x191')],_0x34879c[_0x47900c('0x19b')]>0x0?getCallerIdRandom(_0x34879c[_0x47900c('0x16a')],_0x34879c[_0x47900c('0x19b')]):_0x34879c[_0x47900c('0x16a')]):getCallerId(_['isNil'](_0x34879c['TrunkBackup'])?_0x34879c[_0x47900c('0x154')]['callerid']:_0x34879c[_0x47900c('0x26')]['callerid'],_0x34879c[_0x47900c('0x191')],_0x34879c['dialRandomLastDigitCallerIdNumber']>0x0?getCallerIdRandom(_0x34879c[_0x47900c('0x16a')],_0x34879c[_0x47900c('0x19b')]):_0x34879c['dialOriginateCallerIdNumber']);if(_0x26f1af){const _0x52b612=extractCalleridName(_0x26f1af);_0x4a3085['XMD-ORIGINATECALLERIDNAME']=_0x52b612,_0x524b1d[_0x47900c('0x97')][_0x3306ac][_0x47900c('0xa6')]=_0x52b612;const _0x522067=extractCalleridNumber(_0x26f1af);_0x4a3085[_0x47900c('0x1e7')]==_0x522067,_0x524b1d['actions'][_0x3306ac][_0x47900c('0x116')]=_0x522067;}return ami[_0x47900c('0xe0')]({'actionid':_0x3306ac,'action':_0x47900c('0xc5'),'channel':_0x524b1d[_0x47900c('0x164')](_0x34879c['Trunk'])?util[_0x47900c('0xc2')](_0x47900c('0x8d'),_0x34879c['Trunk'][_0x47900c('0x30')],isNotNull(_0x34879c[_0x47900c('0x186')])?_0x34879c[_0x47900c('0x186')][_0x47900c('0xa')]()||'':'',_0x34879c[_0x47900c('0xbf')]>0x0?_0x5de18f[_0x47900c('0xa8')][_0x47900c('0x123')][_0x47900c('0xc9')](_0x34879c[_0x47900c('0xbf')]):_0x5de18f[_0x47900c('0xa8')][_0x47900c('0x123')]):util['format'](_0x47900c('0x8d'),_[_0x47900c('0x1c1')](_0x34879c[_0x47900c('0x26')])?_0x34879c[_0x47900c('0x154')]['name']:_0x34879c[_0x47900c('0x26')][_0x47900c('0x30')],isNotNull(_0x34879c[_0x47900c('0x186')])?_0x34879c[_0x47900c('0x186')][_0x47900c('0xa')]()||'':'',_0x34879c[_0x47900c('0xbf')]>0x0?_0x5de18f[_0x47900c('0xa8')]['phone']['substring'](_0x34879c[_0x47900c('0xbf')]):_0x5de18f['Contact'][_0x47900c('0x123')]),'callerid':_0x26f1af,'Exten':'xcally-motion-dialer','Context':_0x47900c('0x60'),'Priority':'1','variable':_0x4a3085,'timeout':(_0x34879c[_0x47900c('0x194')]||0x1e)*0x3e8,'async':!![],'channelid':_0x3306ac})[_0x47900c('0x115')](function(_0x168518){return _0x298393(_0x168518);})[_0x47900c('0x131')](function(_0x437eaa){const _0x598921=_0x47900c;_0x34879c[_0x598921('0x93')]+=0x1;const _0x229702=new History(_0x524b1d[_0x598921('0x97')][_0x3306ac]);logger[_0x598921('0xbe')](util['format'](_0x598921('0x146'),JSON[_0x598921('0x7e')](_0x437eaa))),_0x229702[_0x598921('0x1f8')]=0xe,_0x229702['statedesc']=_0x598921('0x212'),_0x229702[_0x598921('0x15f')]=moment()[_0x598921('0xc2')](_0x598921('0x183')),_0x229702[_0x598921('0xd4')]=_0x229702[_0x598921('0x15f')],_0x524b1d[_0x598921('0xf4')](_0x229702)['catch'](loggerCatch(_0x598921('0x15a'))),_0x524b1d[_0x598921('0x9')](_0x229702)[_0x598921('0x131')](loggerCatch('[originate][error]'))[_0x598921('0x1d3')](function(){const _0x58d935=_0x598921;return delete _0x524b1d['actions'][_0x3306ac],_0x1be997(msgResponse(_0x58d935('0xc5'),'Error',_0x58d935('0x55')));});});});},Dialer[_0x459c62('0x1f3')]['syncOriginateResponse']=function(_0x52747c){const _0x2fd5a6=_0x459c62,_0x104311=this[_0x2fd5a6('0x97')][_0x52747c['actionid']];if(_0x104311){delete this[_0x2fd5a6('0x97')][_0x52747c[_0x2fd5a6('0x187')]],_0x104311[_0x2fd5a6('0x17f')]=moment()[_0x2fd5a6('0xc2')](_0x2fd5a6('0x183'));const _0x1431d4=_0x104311[_0x2fd5a6('0xf1')]===_0x2fd5a6('0x1b1')?this[_0x2fd5a6('0x5c')][_0x104311[_0x2fd5a6('0x27')]]:this[_0x2fd5a6('0xe3')][_0x104311[_0x2fd5a6('0x79')]()];if(!this[_0x2fd5a6('0x111')](_0x52747c[_0x2fd5a6('0xa2')]))return this[_0x2fd5a6('0x176')](_0x1431d4),this['callProgressDetecting'](_0x104311,_0x1431d4,_0x52747c)[_0x2fd5a6('0x115')](function(){})[_0x2fd5a6('0x131')](loggerCatch('[callProgressDetecting]\x20'));else this[_0x2fd5a6('0x1cc')][_0x52747c[_0x2fd5a6('0x1f0')]]=_0x104311;}},Dialer[_0x459c62('0x1f3')][_0x459c62('0x107')]=function(_0xdea1e5,_0x208430,_0x50c0a4){const _0xaf19dc=_0x459c62,_0x2c8984=new History(_0x208430);if(_0x2c8984[_0xaf19dc('0x19e')]+_0x2c8984['countcongestionretry']+_0x2c8984[_0xaf19dc('0xdd')]+_0x2c8984[_0xaf19dc('0x117')]+_0x2c8984['countdropretry']+_0x2c8984[_0xaf19dc('0x11d')]+_0x2c8984[_0xaf19dc('0x1ec')]+_0x2c8984[_0xaf19dc('0x1cb')]>=_0x50c0a4[_0xaf19dc('0x91')]-0x1)return!![];switch(_0xdea1e5){case 0x3:if(_0x2c8984[_0xaf19dc('0xdd')]>=_0x50c0a4[_0xaf19dc('0x32')]-0x1)return!![];else this[_0xaf19dc('0x1ab')]({'active':![],'countnoanswerretry':_0x2c8984[_0xaf19dc('0xdd')]+=0x1,'scheduledat':moment()[_0xaf19dc('0x1b0')](_0x50c0a4[_0xaf19dc('0xa9')],'minutes')[_0xaf19dc('0xc2')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x2c8984['ContactId'],'ListId':_0x2c8984[_0xaf19dc('0x17d')],'VoiceQueueId':_0x2c8984[_0xaf19dc('0xfc')]||undefined,'CampaignId':_0x2c8984[_0xaf19dc('0x82')]||undefined})[_0xaf19dc('0x131')](loggerCatch('[rescheduleContact][NoAnswer]'));break;case 0x5:if(_0x2c8984[_0xaf19dc('0x19e')]>=_0x50c0a4[_0xaf19dc('0x2e')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countbusyretry':_0x2c8984['countbusyretry']+=0x1,'scheduledat':moment()[_0xaf19dc('0x1b0')](_0x50c0a4[_0xaf19dc('0x1aa')],_0xaf19dc('0x196'))['format'](_0xaf19dc('0x183')),'ContactId':_0x2c8984[_0xaf19dc('0x190')],'ListId':_0x2c8984[_0xaf19dc('0x17d')],'VoiceQueueId':_0x2c8984['VoiceQueueId']||undefined,'CampaignId':_0x2c8984[_0xaf19dc('0x82')]||undefined})[_0xaf19dc('0x131')](loggerCatch(_0xaf19dc('0xa1')));break;case 0x8:if(_0x2c8984[_0xaf19dc('0x7f')]>=_0x50c0a4[_0xaf19dc('0x182')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countcongestionretry':_0x2c8984[_0xaf19dc('0x7f')]+=0x1,'scheduledat':moment()[_0xaf19dc('0x1b0')](_0x50c0a4['dialCongestionRetryFrequency'],'minutes')[_0xaf19dc('0xc2')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x2c8984['ContactId'],'ListId':_0x2c8984[_0xaf19dc('0x17d')],'VoiceQueueId':_0x2c8984[_0xaf19dc('0xfc')]||undefined,'CampaignId':_0x2c8984['CampaignId']||undefined})[_0xaf19dc('0x131')](loggerCatch(_0xaf19dc('0xbc')));break;case 0x0:if(_0x2c8984['countnosuchnumberretry']>=_0x50c0a4[_0xaf19dc('0x218')]-0x1)return!![];else this[_0xaf19dc('0x1ab')]({'active':![],'countnosuchnumberretry':_0x2c8984[_0xaf19dc('0x117')]+=0x1,'scheduledat':moment()[_0xaf19dc('0x1b0')](_0x50c0a4['dialNoSuchNumberRetryFrequency'],_0xaf19dc('0x196'))[_0xaf19dc('0xc2')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x2c8984['ContactId'],'ListId':_0x2c8984[_0xaf19dc('0x17d')],'VoiceQueueId':_0x2c8984[_0xaf19dc('0xfc')]||undefined,'CampaignId':_0x2c8984[_0xaf19dc('0x82')]||undefined})[_0xaf19dc('0x131')](loggerCatch(_0xaf19dc('0x1ba')));break;case 0xa:if(_0x2c8984['countdropretry']>=_0x50c0a4['dialDropMaxRetry']-0x1)return!![];else this[_0xaf19dc('0x1ab')]({'active':![],'countdropretry':_0x2c8984['countdropretry']+=0x1,'scheduledat':moment()['add'](_0x50c0a4[_0xaf19dc('0x54')],'minutes')['format'](_0xaf19dc('0x183')),'ContactId':_0x2c8984[_0xaf19dc('0x190')],'ListId':_0x2c8984[_0xaf19dc('0x17d')],'VoiceQueueId':_0x2c8984[_0xaf19dc('0xfc')]||undefined,'CampaignId':_0x2c8984[_0xaf19dc('0x82')]||undefined})['catch'](loggerCatch(_0xaf19dc('0x109')));break;case 0xb:if(_0x2c8984['countabandonedretry']>=_0x50c0a4['dialAbandonedMaxRetry']-0x1)return!![];else this[_0xaf19dc('0x1ab')]({'active':![],'countabandonedretry':_0x2c8984['countabandonedretry']+=0x1,'scheduledat':moment()[_0xaf19dc('0x1b0')](_0x50c0a4[_0xaf19dc('0x128')],_0xaf19dc('0x196'))[_0xaf19dc('0xc2')](_0xaf19dc('0x183')),'ContactId':_0x2c8984['ContactId'],'ListId':_0x2c8984[_0xaf19dc('0x17d')],'VoiceQueueId':_0x2c8984[_0xaf19dc('0xfc')]||undefined,'CampaignId':_0x2c8984[_0xaf19dc('0x82')]||undefined})[_0xaf19dc('0x131')](loggerCatch(_0xaf19dc('0x3')));break;case 0x13:if(_0x2c8984[_0xaf19dc('0x1ec')]>=_0x50c0a4[_0xaf19dc('0x188')]-0x1)return!![];else this[_0xaf19dc('0x1ab')]({'active':![],'countmachineretry':_0x2c8984['countmachineretry']+=0x1,'scheduledat':moment()['add'](_0x50c0a4['dialMachineRetryFrequency'],'minutes')['format']('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x2c8984['ContactId'],'ListId':_0x2c8984[_0xaf19dc('0x17d')],'VoiceQueueId':_0x2c8984[_0xaf19dc('0xfc')]||undefined,'CampaignId':_0x2c8984[_0xaf19dc('0x82')]||undefined})[_0xaf19dc('0x131')](loggerCatch('[rescheduleContact][Machine]'));break;case 0x14:if(_0x2c8984[_0xaf19dc('0x1cb')]>=_0x50c0a4['dialAgentRejectMaxRetry']-0x1)return!![];else this[_0xaf19dc('0x1ab')]({'active':![],'countagentrejectretry':_0x2c8984[_0xaf19dc('0x1cb')]+=0x1,'scheduledat':moment()[_0xaf19dc('0x1b0')](_0x50c0a4[_0xaf19dc('0x99')],_0xaf19dc('0x196'))[_0xaf19dc('0xc2')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x2c8984[_0xaf19dc('0x190')],'ListId':_0x2c8984['ListId'],'VoiceQueueId':_0x2c8984[_0xaf19dc('0xfc')]||undefined,'CampaignId':_0x2c8984[_0xaf19dc('0x82')]||undefined})[_0xaf19dc('0x131')](loggerCatch(_0xaf19dc('0x47')));break;default:return!![];}},Dialer[_0x459c62('0x1f3')][_0x459c62('0x62')]=function(_0x535b8b,_0x55bb8f,_0x1f7449){const _0x9fa885=this,_0x596e34=new History(_0x535b8b);return new Promise(function(_0x10f355,_0x2504d7){const _0x388a78=a1056_0x42ea;if(_[_0x388a78('0x1de')](_0x55bb8f)&&_0x388a78('0x152')!==typeof _0x55bb8f)return _0x2504d7(msgResponse(_0x388a78('0x1f6'),_0x388a78('0x1a7'),'entity\x20is\x20undefine'));if(_[_0x388a78('0x1de')](_0x1f7449)&&_0x388a78('0x152')!==typeof _0x1f7449)return _0x2504d7(msgResponse('[callProgressDetecting]',_0x388a78('0x1a7'),_0x388a78('0x1ea')));switch(_0x1f7449['reason']){case'0':_0x55bb8f['outboundNoSuchCallsDay']+=0x1,_0x596e34['state']=0x0,_0x596e34['statedesc']='NoSuchNumber',_0x596e34[_0x388a78('0x117')]+=0x1,_0x596e34['countglobal']+=0x1,ami[_0x388a78('0x3c')](_0x388a78('0x1bc'),ut[_0x388a78('0xb1')](_0x535b8b,_0x388a78('0xcd'))),_0x9fa885[_0x388a78('0xf4')](_0x596e34)[_0x388a78('0x131')](loggerCatch('[syncAgentComplete][createHistory][0]'));_0x9fa885[_0x388a78('0x107')](0x0,_0x535b8b,_0x55bb8f)&&(_0x596e34[_0x388a78('0x117')]>=_0x55bb8f[_0x388a78('0x218')]?_0x9fa885[_0x388a78('0xdc')](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x129')):_0x9fa885[_0x388a78('0x1d7')](_0x596e34,_0x10f355,_0x2504d7,'reason\x200\x20no\x20such\x20number....'));break;case'3':_0x55bb8f[_0x388a78('0x142')]+=0x1,_0x596e34[_0x388a78('0x1f8')]=0x3,_0x596e34[_0x388a78('0x155')]=_0x388a78('0x158'),_0x596e34['countnoanswerretry']+=0x1,_0x596e34[_0x388a78('0x12e')]+=0x1,ami[_0x388a78('0x3c')](_0x388a78('0x1bf'),ut['buildObj'](_0x535b8b,'noanswer')),_0x9fa885[_0x388a78('0xf4')](_0x596e34)[_0x388a78('0x131')](loggerCatch(_0x388a78('0xe1')));_0x9fa885[_0x388a78('0x107')](0x3,_0x535b8b,_0x55bb8f)&&(_0x596e34['countnoanswerretry']>=_0x55bb8f[_0x388a78('0x32')]?_0x9fa885[_0x388a78('0xdc')](_0x596e34,_0x10f355,_0x2504d7,'reason\x203\x20ringing\x20no\x20answer'):_0x9fa885['stateGlobal'](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x4a')));break;case'5':_0x55bb8f['outboundBusyCallsDay']+=0x1,_0x596e34[_0x388a78('0x1f8')]=0x5,_0x596e34[_0x388a78('0x155')]=_0x388a78('0x7a'),_0x596e34[_0x388a78('0x19e')]+=0x1,_0x596e34[_0x388a78('0x12e')]+=0x1,ami[_0x388a78('0x3c')]('custom:agentbusy',ut[_0x388a78('0xb1')](_0x535b8b,'busy')),_0x9fa885[_0x388a78('0xf4')](_0x596e34)[_0x388a78('0x131')](loggerCatch(_0x388a78('0x8a')));_0x9fa885['checkRetriveMax'](0x5,_0x535b8b,_0x55bb8f)&&(_0x596e34[_0x388a78('0x19e')]>=_0x55bb8f[_0x388a78('0x2e')]?_0x9fa885[_0x388a78('0xdc')](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x1be')):_0x9fa885[_0x388a78('0x1d7')](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x1be')));break;case'8':_0x55bb8f[_0x388a78('0x18f')]+=0x1,_0x596e34[_0x388a78('0x1f8')]=0x8,_0x596e34[_0x388a78('0x155')]=_0x388a78('0x1a6'),_0x596e34[_0x388a78('0x7f')]+=0x1,_0x596e34[_0x388a78('0x12e')]+=0x1,ami[_0x388a78('0x3c')](_0x388a78('0x214'),ut['buildObj'](_0x535b8b,_0x388a78('0x133'))),_0x9fa885['createHistory'](_0x596e34)['catch'](loggerCatch(_0x388a78('0x49')));_0x9fa885[_0x388a78('0x107')](0x8,_0x535b8b,_0x55bb8f)&&(_0x596e34[_0x388a78('0x7f')]>=_0x55bb8f[_0x388a78('0x182')]?_0x9fa885[_0x388a78('0xdc')](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x72')):_0x9fa885[_0x388a78('0x1d7')](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x72')));break;case'11':_0x55bb8f[_0x388a78('0x68')]+=0x1,_0x596e34['state']=0xb,_0x596e34[_0x388a78('0x155')]=_0x388a78('0x7'),_0x596e34[_0x388a78('0x11d')]+=0x1,_0x596e34['countglobal']+=0x1,_0x9fa885[_0x388a78('0xf4')](_0x596e34)[_0x388a78('0x131')](loggerCatch(_0x388a78('0x10d')));_0x9fa885[_0x388a78('0x107')](0xb,_0x535b8b,_0x55bb8f)&&(_0x596e34[_0x388a78('0x11d')]>=_0x55bb8f['dialAbandonedMaxRetry']?_0x9fa885[_0x388a78('0xdc')](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x14e')):_0x9fa885[_0x388a78('0x1d7')](_0x596e34,_0x10f355,_0x2504d7,'reason\x2011\x20abandoned'));break;case'20':_0x55bb8f[_0x388a78('0xac')]+=0x1,_0x596e34['state']=0x14,_0x596e34[_0x388a78('0x155')]=_0x388a78('0xec'),_0x596e34[_0x388a78('0x1cb')]+=0x1,_0x596e34[_0x388a78('0x12e')]+=0x1,ami[_0x388a78('0x3c')]('custom:agentreject',ut[_0x388a78('0xb1')](_0x535b8b,_0x388a78('0x207'))),_0x9fa885[_0x388a78('0xf4')](_0x596e34)[_0x388a78('0x131')](loggerCatch(_0x388a78('0x17c')));_0x9fa885[_0x388a78('0x107')](0x14,_0x535b8b,_0x55bb8f)&&(_0x596e34[_0x388a78('0x1cb')]>=_0x55bb8f[_0x388a78('0x148')]?_0x9fa885[_0x388a78('0xdc')](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x1e5')):_0x9fa885['stateGlobal'](_0x596e34,_0x10f355,_0x2504d7,_0x388a78('0x1e5')));break;default:_0x55bb8f[_0x388a78('0xcc')]+=0x1,_0x596e34[_0x388a78('0x1f8')]=0xc,_0x596e34['statedesc']=_0x1f7449['reason'],_0x9fa885[_0x388a78('0xf4')](_0x596e34)[_0x388a78('0x131')](loggerCatch('[syncAgentComplete][createHistory][?]'));_0x9fa885[_0x388a78('0x107')](_0x1f7449[_0x388a78('0xfe')],_0x535b8b,_0x55bb8f)&&(_0x596e34[_0x388a78('0x19e')]+_0x596e34[_0x388a78('0x7f')]+_0x596e34[_0x388a78('0xdd')]+_0x596e34[_0x388a78('0x117')]+_0x596e34[_0x388a78('0x1f')]+_0x596e34[_0x388a78('0x11d')]+_0x596e34[_0x388a78('0x1ec')]+_0x596e34[_0x388a78('0x1cb')]>=_0x55bb8f[_0x388a78('0x91')]?_0x9fa885[_0x388a78('0x1d7')](_0x596e34,_0x10f355,_0x2504d7,_0x1f7449[_0x388a78('0xfe')]):_0x9fa885[_0x388a78('0xdc')](_0x596e34,_0x10f355,_0x2504d7,_0x1f7449['reason']));}});},Dialer[_0x459c62('0x1f3')]['stateGlobal']=function(_0x569f51,_0xef3583,_0x35e95b,_0x3657a6){const _0x245de1=_0x459c62,_0x410b70=new Final(_0x569f51);_0x410b70[_0x245de1('0x1f8')]=0xf,_0x410b70[_0x245de1('0x155')]=_0x245de1('0xcf'),this['createStateFinal'](_0x410b70,_0xef3583,_0x35e95b,_0x3657a6);},Dialer['prototype'][_0x459c62('0xdc')]=function(_0x57aa56,_0x1dfcd4,_0x35b03d,_0xdefadf){const _0xd63036=_0x459c62;this[_0xd63036('0x9')](_0x57aa56)[_0xd63036('0x115')](function(){const _0x231aeb=_0xd63036;return _0x1dfcd4(msgResponse(_0x231aeb('0x1f6'),_0x231aeb('0x1e0'),_0xdefadf));})['catch'](function(){const _0x58e466=_0xd63036;return _0x35b03d(msgResponse(_0x58e466('0xd8'),'Failure','contact\x20not\x20moved'));});},Dialer[_0x459c62('0x1f3')]['predictive']=function(_0x31bbdb){const _0x10a6bf=_0x459c62,_0x13a37b=_0x31bbdb[_0x10a6bf('0x1fc')]/0x64,_0x25dd5e=_0x31bbdb['outboundDropCallsDayTimeout']/(_0x31bbdb[_0x10a6bf('0x10')]+_0x31bbdb[_0x10a6bf('0x75')]),_0x1caf41=Math[_0x10a6bf('0x15b')](_0x31bbdb[_0x10a6bf('0x19c')]*(_0x31bbdb[_0x10a6bf('0x161')]/0x64)),_0x4d3d3d=Math['round'](_0x31bbdb[_0x10a6bf('0x19c')]*(_0x31bbdb[_0x10a6bf('0x20d')]/0x64)),_0x230e13=_0x31bbdb[_0x10a6bf('0x1b9')]+_0x31bbdb[_0x10a6bf('0x1db')],_0x42a80b=Math['floor'](_0x31bbdb['erlangCalls']*_0x31bbdb[_0x10a6bf('0x23')]*_0x31bbdb[_0x10a6bf('0x105')]*_0x31bbdb[_0x10a6bf('0x11e')]);if(_[_0x10a6bf('0x1de')](_0x31bbdb['startProgressive']))!_[_0x10a6bf('0x1de')](_0x31bbdb[_0x10a6bf('0x11b')])&&(_0x31bbdb[_0x10a6bf('0x11b')]=undefined,loggerPredictive[_0x10a6bf('0xbe')](_0x10a6bf('0x204'),_0x10a6bf('0x11a'))),!_[_0x10a6bf('0x1de')](_0x31bbdb[_0x10a6bf('0x106')])&&(loggerPredictive[_0x10a6bf('0xbe')]('[startMethodPredictive][StartProgressive]',_0x10a6bf('0x1fa')),clearInterval(_0x31bbdb[_0x10a6bf('0x106')]),_0x31bbdb['handlePredictive']=undefined),_0x31bbdb[_0x10a6bf('0x1a1')]=moment()[_0x10a6bf('0xc2')](_0x10a6bf('0x183')),loggerPredictive[_0x10a6bf('0x4d')](_0x31bbdb[_0x10a6bf('0x30')],_0x10a6bf('0x1b5'),_0x31bbdb[_0x10a6bf('0x1a1')]),this[_0x10a6bf('0x46')](_0x31bbdb,0x1);else{if(ifInterval(_0x31bbdb[_0x10a6bf('0x1f7')],_0x31bbdb['startProgressive']))this[_0x10a6bf('0x46')](_0x31bbdb,0x1),loggerPredictiveCalls[_0x10a6bf('0x4d')](_0x10a6bf('0x108'),_0x31bbdb[_0x10a6bf('0x1a1')],_0x31bbdb[_0x10a6bf('0x30')]),_0x31bbdb[_0x10a6bf('0x1a2')]=0x0,_0x31bbdb[_0x10a6bf('0xf7')]=0x0;else{if(_0x13a37b<_0x25dd5e&&_0x31bbdb[_0x10a6bf('0x1b8')]===_0x10a6bf('0x1b4'))freeVariablesPredictive(_0x31bbdb),loggerPredictive[_0x10a6bf('0x4d')](_0x10a6bf('0xca'),_0x10a6bf('0x1fd'),_0x25dd5e,_0x10a6bf('0x1a1'),_0x31bbdb[_0x10a6bf('0x30')]);else{if(_0x42a80b<_0x31bbdb[_0x10a6bf('0xf7')]&&_0x31bbdb[_0x10a6bf('0x1b8')]===_0x10a6bf('0x1b4'))freeVariablesPredictive(_0x31bbdb),loggerPredictive['info'](_0x10a6bf('0x5f'),_0x10a6bf('0x150'),_0x42a80b,_0x10a6bf('0x1d2'),_0x31bbdb[_0x10a6bf('0xf7')],_0x10a6bf('0x1a1'),_0x31bbdb[_0x10a6bf('0x30')]);else{if(!ifInterval(_0x31bbdb[_0x10a6bf('0x1f7')],_0x31bbdb[_0x10a6bf('0x1a1')])&&_[_0x10a6bf('0x1de')](_0x31bbdb[_0x10a6bf('0x11b')])&&!_[_0x10a6bf('0x1de')](_0x31bbdb['startProgressive']))_0x31bbdb[_0x10a6bf('0x11b')]=moment()[_0x10a6bf('0xc2')](_0x10a6bf('0x183')),loggerPredictive['info'](_0x31bbdb[_0x10a6bf('0x30')],_0x10a6bf('0x110'),_0x31bbdb[_0x10a6bf('0x11b')]),this[_0x10a6bf('0x1ca')](_0x31bbdb[_0x10a6bf('0x1f7')])[_0x10a6bf('0x115')](this[_0x10a6bf('0x1b3')](_0x31bbdb))['then'](mergeDataErlangB(_0x31bbdb))[_0x10a6bf('0x115')](this[_0x10a6bf('0xc1')](_0x31bbdb))[_0x10a6bf('0x131')](loggerCatchPredictive(_0x10a6bf('0x20b'),_0x31bbdb));else{if(!ifInterval(_0x31bbdb['dialPredictiveInterval'],_0x31bbdb['startPredictive']))_0x31bbdb['predictiveIntervalErlangCallsDroppedCalls']=0x0,_0x31bbdb[_0x10a6bf('0x11b')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),loggerPredictive[_0x10a6bf('0x4d')](_0x31bbdb[_0x10a6bf('0x30')],'recalculate\x20predictive\x20at',_0x31bbdb['startPredictive']),clearInterval(_0x31bbdb[_0x10a6bf('0x106')]),_0x31bbdb[_0x10a6bf('0x106')]=undefined,this[_0x10a6bf('0x1ca')](_0x31bbdb['dialPredictiveInterval'])[_0x10a6bf('0x115')](this[_0x10a6bf('0x1b3')](_0x31bbdb))[_0x10a6bf('0x115')](mergeDataErlangB(_0x31bbdb))[_0x10a6bf('0x115')](this['startMethodPredictive'](_0x31bbdb))['catch'](loggerCatchPredictive(_0x10a6bf('0xd'),_0x31bbdb));else{if(_0x31bbdb[_0x10a6bf('0x19c')]&&_0x230e13<_0x31bbdb[_0x10a6bf('0x19c')]-_0x4d3d3d)freeVariablesPredictive(_0x31bbdb),loggerPredictive['info'](_0x31bbdb[_0x10a6bf('0x30')],'switch\x20in\x20progressive\x20because\x20available\x20agents\x20(',_0x230e13,_0x10a6bf('0x19'),_0x31bbdb[_0x10a6bf('0x19c')],'-',_0x4d3d3d,'=',_0x31bbdb[_0x10a6bf('0x19c')]-_0x4d3d3d,')');else _0x31bbdb[_0x10a6bf('0x19c')]&&_0x230e13>_0x31bbdb['predictiveIntervalAvailable']+_0x1caf41&&(freeVariablesPredictive(_0x31bbdb),loggerPredictive[_0x10a6bf('0x4d')](_0x31bbdb[_0x10a6bf('0x30')],_0x10a6bf('0x1c0'),_0x230e13,_0x10a6bf('0xd9'),_0x31bbdb['predictiveIntervalAvailable'],'+',_0x1caf41,'=',_0x31bbdb[_0x10a6bf('0x19c')]+_0x1caf41,')'));}}}}}}},Dialer[_0x459c62('0x1f3')]['getDataPredictive']=function(_0x1e1d9d){const _0x370348=this;return function(_0x36666a){return new Promise(function(_0x1add30,_0x1cce61){const _0xcda9f4=a1056_0x42ea;_['merge'](_0x1e1d9d,_0x36666a[0x0]);if(checkGetDataPredictive(_0x36666a[0x0])){const _0x4c6d18=_0x1e1d9d['talking']+_0x1e1d9d[_0xcda9f4('0x1b9')];_0x1e1d9d[_0xcda9f4('0x19c')]=_0x4c6d18;const _0x5b601c=_0x4c6d18,_0x4e7370=_0x1e1d9d[_0xcda9f4('0x1f7')]*0x3c,_0x350571=_0x36666a[0x0][_0xcda9f4('0x178')]+_0x36666a[0x0]['predictiveIntervalAvgHoldtime'],_0x570424=(_0x36666a[0x0][_0xcda9f4('0xc0')]+_0x36666a[0x0][_0xcda9f4('0x95')]+_0x36666a[0x0]['predictiveIntervalDroppedCallsCallersExit'])/_0x36666a[0x0][_0xcda9f4('0x13c')];_0x1e1d9d['predictiveIntervalHitRate']=_0x570424>0x0?_0x570424:0x1;switch(_0x1e1d9d[_0xcda9f4('0x1b8')]){case _0xcda9f4('0x1b4'):{const _0x15f348=_0x1e1d9d[_0xcda9f4('0x1fc')]/0x64;return _0x370348[_0xcda9f4('0xb6')](_0x5b601c,_0x4e7370,_0x350571,_0x570424,_0x15f348)['then'](function(_0x294ae6){return _0x1add30(_0x294ae6);});}case'agentBusyFactor':{const _0xc52c1f=_0x1e1d9d[_0xcda9f4('0x1fc')]/0x64;return _0x370348[_0xcda9f4('0x193')](_0x5b601c,_0x4e7370,_0x350571,_0x570424,_0xc52c1f)['then'](function(_0x2befcb){return _0x1add30(_0x2befcb);});}default:return _0x1cce61(msgResponse(_0xcda9f4('0x16b'),'Failure',_0xcda9f4('0x12d')));}}else return _0x1cce61(msgResponse(_0xcda9f4('0x16b'),_0xcda9f4('0x1a7'),_0xcda9f4('0x16d')));});};},Dialer[_0x459c62('0x1f3')][_0x459c62('0x1c2')]=function(_0x2e9a4e){const _0x473aa9=this;return function(_0x360528){return new Promise(function(_0x2d5a82,_0x5d47b8){const _0x525177=a1056_0x42ea;_[_0x525177('0x122')](_0x2e9a4e,_0x360528[0x0]);if(checkGetDataPredictive(_0x360528[0x0])){loggerPredictive['info'](JSON[_0x525177('0x7e')](_0x360528[0x0]));if(_0x2e9a4e[_0x525177('0x1b8')]===_0x525177('0x1b4'))return _0x473aa9['getVoiceQueueRtPauses'](_0x2e9a4e['id'])[_0x525177('0x115')](function(_0x4bc627){const _0x54dead=_0x525177,_0x3f260f=_0x2e9a4e[_0x54dead('0xe6')]-_0x4bc627[0x0][_0x54dead('0x9f')],_0x37c04e=_0x2e9a4e[_0x54dead('0x1f7')]*0x3c,_0x272d69=_0x360528[0x0]['predictiveIntervalAvgTalktime']+_0x360528[0x0]['predictiveIntervalAvgHoldtime'],_0x514569=(_0x360528[0x0][_0x54dead('0xc0')]+_0x360528[0x0]['predictiveIntervalDroppedCallsTimeout']+_0x360528[0x0][_0x54dead('0xf8')])/_0x360528[0x0]['predictiveIntervalTotalCalls'],_0x503fee=_0x2e9a4e[_0x54dead('0x1fc')]/0x64;return _0x2e9a4e[_0x54dead('0x14f')]=_0x4bc627[0x0][_0x54dead('0x9f')]||0x0,_0x2e9a4e[_0x54dead('0x105')]=_0x514569>0x0?_0x514569:0x1,_0x473aa9[_0x54dead('0xb6')](_0x3f260f,_0x37c04e,_0x272d69,_0x514569,_0x503fee);})[_0x525177('0x115')](function(_0x4e6733){return _0x2d5a82(_0x4e6733);})[_0x525177('0x131')](function(_0x3a4d48){const _0x2190a8=_0x525177;return _0x5d47b8(msgResponse(_0x2190a8('0x180'),'Failure',JSON[_0x2190a8('0x7e')](_0x3a4d48)));});if(_0x2e9a4e[_0x525177('0x1b8')]===_0x525177('0x198'))return _0x473aa9[_0x525177('0xa5')](_0x2e9a4e['id'])[_0x525177('0x115')](function(_0x498238){const _0x183133=_0x525177,_0x5847c0=_0x2e9a4e[_0x183133('0xe6')]-_0x498238[0x0]['outboundQueuePauses'],_0x2d525a=_0x2e9a4e['dialPredictiveInterval']*0x3c,_0xa0d780=_0x360528[0x0][_0x183133('0x178')]+_0x360528[0x0]['predictiveIntervalAvgHoldtime'],_0x53f3de=(_0x360528[0x0][_0x183133('0xc0')]+_0x360528[0x0][_0x183133('0x95')]+_0x360528[0x0]['predictiveIntervalDroppedCallsCallersExit'])/_0x360528[0x0][_0x183133('0x13c')],_0x204241=_0x2e9a4e[_0x183133('0x1fc')]/0x64;return _0x2e9a4e['predictiveIntervalPauses']=_0x498238[0x0][_0x183133('0x9f')]||0x0,_0x2e9a4e[_0x183133('0x105')]=_0x53f3de>0x0?_0x53f3de:0x1,_0x473aa9[_0x183133('0x193')](_0x5847c0,_0x2d525a,_0xa0d780,_0x53f3de,_0x204241);})[_0x525177('0x115')](function(_0x9bc64c){return _0x2d5a82(_0x9bc64c);})[_0x525177('0x131')](function(_0x32faac){const _0x37ff3c=_0x525177;return _0x5d47b8(msgResponse('[CatchErlangB]',_0x37ff3c('0x1a7'),JSON[_0x37ff3c('0x7e')](_0x32faac)));});}else return _0x5d47b8(msgResponse(_0x525177('0x16b'),_0x525177('0x1a7'),_0x525177('0x16d')));});};},Dialer[_0x459c62('0x1f3')][_0x459c62('0xc1')]=function(_0x1eb614){const _0x97d33f=this;return function(){const _0x51505f=a1056_0x42ea;let _0x1128d8=0x0,_0x293f5b=Math[_0x51505f('0x67')](_0x1eb614[_0x51505f('0x10a')]*0x3e8);_0x293f5b>0x0?(_0x293f5b=_0x293f5b<0x64?0x64:_0x293f5b,loggerPredictive[_0x51505f('0x4d')](_0x1eb614[_0x51505f('0x30')],_0x51505f('0x140'),_0x293f5b,_0x51505f('0x16f')),_0x1eb614['handlePredictive']=setInterval(function(){const _0x3eb18c=_0x51505f;_0x97d33f['handlePredictive'](_0x1eb614),loggerPredictiveCalls[_0x3eb18c('0x4d')](_0x3eb18c('0x1ef'),_0x1128d8+=0x1);},_0x293f5b)):loggerPredictive['info'](_0x1eb614['name'],_0x51505f('0x1c5'));};},Dialer[_0x459c62('0x1f3')][_0x459c62('0x24')]=function(_0x3ba472,_0x16c081){const _0xd6dbf1=this;return function(_0x4000d9){const _0x3b639c=a1056_0x42ea;if(_[_0x3b639c('0x6')](_0x4000d9)){if(_[_0x3b639c('0x1c1')](_0x16c081[_0x3b639c('0x172')])||!_0x16c081[_0x3b639c('0xa4')]){if(_0x3ba472[_0x3b639c('0x12f')]===_0x3b639c('0x151')){_0x3ba472['queueStatusComplete']=_[_0x3b639c('0x1de')](_0x3ba472[_0x3b639c('0x15c')])?!![]:_0x3ba472[_0x3b639c('0x15c')];const _0xb46789=uuid['v4']();_0xd6dbf1[_0x3b639c('0x97')][_0xb46789]=new Action(_0x3ba472,_0x16c081,_0xb46789),loggerBooked[_0x3b639c('0x4d')]('[booked][checkContactBlack]',_0xb46789,_0x3b639c('0xd6'),JSON['stringify'](_0x3ba472[_0x3b639c('0x15c')]),_0x3b639c('0x1d1'),_0x3ba472[_0x3b639c('0x30')]),_0x3ba472[_0x3b639c('0x15c')]?(_0x3ba472[_0x3b639c('0x15c')]=![],_0xd6dbf1[_0x3b639c('0x177')][_0xd6dbf1[_0x3b639c('0x97')][_0xb46789][_0x3b639c('0x27')]]=[],ami[_0x3b639c('0xe0')]({'actionid':_0xb46789,'action':_0x3b639c('0x17a'),'queue':_0x3ba472[_0x3b639c('0x30')]})[_0x3b639c('0x131')](function(){const _0x1f5819=_0x3b639c;_0xd6dbf1[_0x1f5819('0x176')](_0x3ba472),_0xd6dbf1['rescheduleContact']({'active':![],'ContactId':_0xd6dbf1['actions'][_0xb46789][_0x1f5819('0x190')],'ListId':_0xd6dbf1['actions'][_0xb46789][_0x1f5819('0x17d')],'VoiceQueueId':_0xd6dbf1['actions'][_0xb46789][_0x1f5819('0xfc')]||undefined,'CampaignId':_0xd6dbf1[_0x1f5819('0x97')][_0xb46789][_0x1f5819('0x82')]||undefined})['catch'](loggerCatch(_0x1f5819('0xe9'))),delete _0xd6dbf1['actions'][_0xb46789];})):(loggerBooked[_0x3b639c('0x4d')](_0x3b639c('0xbd'),JSON[_0x3b639c('0x7e')](_0x3ba472[_0x3b639c('0x15c')]),'Queue:\x20',_0x3ba472[_0x3b639c('0x30')]),_0xd6dbf1[_0x3b639c('0x176')](_0x3ba472),_0xd6dbf1[_0x3b639c('0x1ab')]({'active':![],'ContactId':_0xd6dbf1['actions'][_0xb46789][_0x3b639c('0x190')],'ListId':_0xd6dbf1[_0x3b639c('0x97')][_0xb46789]['ListId'],'VoiceQueueId':_0xd6dbf1[_0x3b639c('0x97')][_0xb46789][_0x3b639c('0xfc')]||undefined,'CampaignId':_0xd6dbf1['actions'][_0xb46789][_0x3b639c('0x82')]||undefined})[_0x3b639c('0x131')](loggerCatch(_0x3b639c('0xe9'))),delete _0xd6dbf1[_0x3b639c('0x97')][_0xb46789]);}else return _0xd6dbf1[_0x3b639c('0x3e')](_0x3ba472,_0x16c081);}else getDiff(_0x16c081[_0x3b639c('0x33')])<_0x3ba472[_0x3b639c('0x173')]*0x3c?_0x16c081[_0x3b639c('0x3d')]&&!_0x16c081[_0x3b639c('0x3d')]['voicePause']?_0xd6dbf1[_0x3b639c('0x1c6')][_0x3b639c('0x192')](_0x16c081['id'])[_0x3b639c('0x1d3')](function(){_0xd6dbf1['updateOriginated'](_0x3ba472);}):_0xd6dbf1[_0x3b639c('0x89')]({'active':![]},_0x16c081['id'],0x1)[_0x3b639c('0x1d3')](function(){const _0x152d17=_0x3b639c;console[_0x152d17('0x1ee')]('Contact\x20updated'),_0xd6dbf1['updateOriginated'](_0x3ba472);}):(_0x3ba472['outboundReCallsDay']+=0x1,_0xd6dbf1[_0x3b639c('0x176')](_0x3ba472),_0x3ba472[_0x3b639c('0x1ad')]?(_0xd6dbf1[_0x3b639c('0x1ab')]({'active':![],'recallme':![],'UserId':null,'ContactId':_0x16c081[_0x3b639c('0x190')],'ListId':_0x16c081[_0x3b639c('0x17d')],'VoiceQueueId':_0x16c081[_0x3b639c('0xfc')]||undefined,'CampaignId':_0x16c081['CampaignId']||undefined})[_0x3b639c('0x131')](loggerCatch('[rescheduleContact][dialRecallInQueue]')),_0xd6dbf1[_0x3b639c('0xf4')](createObjHistory(_0x3ba472,_0x16c081,_0x3b639c('0x10b'),0x17,_0x3b639c('0x14')))[_0x3b639c('0x131')](loggerCatch('[Originate][HistoryDialRecallInQueue][historyCatch]'))):_0xd6dbf1['saveInDb'](createObjHistory(_0x3ba472,_0x16c081,_0x3b639c('0xf'),0x16,_0x3b639c('0x1')),'[Originate][HistoryRecallClose][historyCatch]',_0x3b639c('0x56')));}else{_0x3ba472[_0x3b639c('0x102')]+=0x1,_0xd6dbf1[_0x3b639c('0x1ff')](createObjHistory(_0x3ba472,_0x16c081,_0x3b639c('0xa0'),0xd,_0x3b639c('0x1a8')),_0x3b639c('0x8c'),_0x3b639c('0x153'));throw _0x3b639c('0x12c');}};},Dialer[_0x459c62('0x1f3')][_0x459c62('0x17')]=function(_0x1d4b68){const _0x68648c=_0x459c62,_0x4c0372=this;let _0x3495b6=_0x1d4b68[_0x68648c('0x15')]-_0x1d4b68[_0x68648c('0x143')]-_0x1d4b68[_0x68648c('0xa7')];emitCampaignSummary(_0x1d4b68),_0x3495b6>0x0&&(_0x3495b6>this[_0x68648c('0x149')]&&(_0x3495b6=this['maxNumberOriginate']),_0x1d4b68[_0x68648c('0xa7')]+=_0x3495b6,this[_0x68648c('0x14b')](_0x1d4b68['id'],_0x3495b6,_0x1d4b68[_0x68648c('0x16e')])[_0x68648c('0x115')](function(_0x236652){const _0x34dfef=_0x68648c;_0x1d4b68[_0x34dfef('0xa7')]-=_0x3495b6,_0x1d4b68[_0x34dfef('0xa7')]=_0x1d4b68[_0x34dfef('0xa7')]>0x0?_0x1d4b68[_0x34dfef('0xa7')]:0x0;if(!checkContactEmpty(_0x236652))_0x1d4b68[_0x34dfef('0x1bd')]=_0x34dfef('0x1a5'),logger['info'](_0x34dfef('0x12b')+_0x1d4b68[_0x34dfef('0x30')]);else{_0x1d4b68[_0x34dfef('0x143')]+=_0x236652[_0x34dfef('0xc')],_0x1d4b68['message']=_0x34dfef('0xd0');for(let _0x2bfb64=0x0;_0x2bfb64<_0x236652[_0x34dfef('0xc')];_0x2bfb64+=0x1){_0x1d4b68[_0x34dfef('0x6b')]+=0x1,_[_0x34dfef('0x1c1')](_0x236652[_0x2bfb64])||_[_0x34dfef('0x1c1')](_0x236652[_0x2bfb64][_0x34dfef('0xa8')])||_[_0x34dfef('0x1c1')](_0x236652[_0x2bfb64]['Contact'][_0x34dfef('0x123')])?_0x4c0372[_0x34dfef('0x48')](_0x34dfef('0x14c'),_0x1d4b68,_0x236652[_0x2bfb64]):_0x4c0372[_0x34dfef('0x100')](_[_0x34dfef('0x19a')](_0x236652[_0x2bfb64],[_0x34dfef('0x82'),_0x34dfef('0xf3')]))[_0x34dfef('0x115')](_0x4c0372[_0x34dfef('0x24')](_0x1d4b68,_0x236652[_0x2bfb64]))[_0x34dfef('0x131')](_0x4c0372[_0x34dfef('0x184')](_0x34dfef('0xf9'),_0x1d4b68));}}})[_0x68648c('0x131')](loggerGetContactDialer(_0x68648c('0x195'),_0x1d4b68,_0x3495b6)));},Dialer[_0x459c62('0x1f3')][_0x459c62('0x46')]=function(_0x12608c,_0x1160a9){const _0x281dfa=_0x459c62,_0x2724b0=this,_0x3dda6b=[];let _0x337016=_0x1160a9>=0x1?_0x1160a9:0x1;_0x12608c[_0x281dfa('0x12f')]==='booked'&&(_0x337016=0x1);let _0x41fd0b=Math[_0x281dfa('0x67')](_0x12608c['available']*_0x337016)-_0x12608c[_0x281dfa('0x143')]-_0x12608c[_0x281dfa('0xa7')];emitVoiceQueueSummary(_0x12608c);if(_0x12608c['dialLimitQueue']>0x0){const _0x512fa5=_0x12608c[_0x281dfa('0xf6')]-_0x12608c[_0x281dfa('0x143')]-_0x12608c[_0x281dfa('0x1db')]-_0x12608c[_0x281dfa('0xa7')]-_0x12608c[_0x281dfa('0x1f9')];_0x41fd0b>_0x512fa5&&(_0x41fd0b=_0x512fa5);}if(_0x41fd0b>0x0){_0x12608c[_0x281dfa('0x12f')]==='booked'&&(_0x41fd0b=0x1);_0x41fd0b>this[_0x281dfa('0x149')]&&(_0x41fd0b=this[_0x281dfa('0x149')]);_0x12608c[_0x281dfa('0xa7')]+=_0x41fd0b;for(const _0x163d77 in this[_0x281dfa('0x141')]){typeof this[_0x281dfa('0x141')][_0x163d77]!==_0x281dfa('0x40')&&(this[_0x281dfa('0x141')][_0x163d77][_0x281dfa('0x1f8')]===_0x281dfa('0x1e9')&&this[_0x281dfa('0x141')][_0x163d77]['status']===_0x281dfa('0x14d')&&_0x3dda6b['push'](this[_0x281dfa('0x141')][_0x163d77]['id']));}this['getContactDialer'](_0x12608c['id'],_0x3dda6b,_0x41fd0b,_0x12608c[_0x281dfa('0x16e')])[_0x281dfa('0x115')](function(_0xe70833){const _0x3a6c6b=_0x281dfa;_0x12608c[_0x3a6c6b('0xa7')]-=_0x41fd0b,_0x12608c[_0x3a6c6b('0xa7')]=_0x12608c['temp']>0x0?_0x12608c[_0x3a6c6b('0xa7')]:0x0;if(!checkContactEmpty(_0xe70833))_0x2724b0[_0x3a6c6b('0x3b')](_0x12608c)[_0x3a6c6b('0x115')](sendMessageReschedule(_0x12608c))[_0x3a6c6b('0x131')](loggerCatch('[countReScheduled]\x20'));else{_0x12608c[_0x3a6c6b('0x143')]+=_0xe70833[_0x3a6c6b('0xc')],_0x12608c[_0x3a6c6b('0x1bd')]=_0x12608c[_0x3a6c6b('0x12f')]===_0x3a6c6b('0x151')?_0x3a6c6b('0xea'):_0x3a6c6b('0xd0');for(let _0x4e278f=0x0;_0x4e278f<_0xe70833[_0x3a6c6b('0xc')];_0x4e278f+=0x1){_['isNil'](_0xe70833[_0x4e278f])||_[_0x3a6c6b('0x1c1')](_0xe70833[_0x4e278f][_0x3a6c6b('0xa8')])||_[_0x3a6c6b('0x1c1')](_0xe70833[_0x4e278f][_0x3a6c6b('0xa8')][_0x3a6c6b('0x123')])?_0x2724b0[_0x3a6c6b('0x48')](_0x3a6c6b('0x14c'),_0x12608c,_0xe70833[_0x4e278f]):_0x2724b0[_0x3a6c6b('0x1e')](_['pick'](_0xe70833[_0x4e278f],[_0x3a6c6b('0xfc'),_0x3a6c6b('0xf3')]))['then'](_0x2724b0[_0x3a6c6b('0x24')](_0x12608c,_0xe70833[_0x4e278f]))[_0x3a6c6b('0x131')](_0x2724b0[_0x3a6c6b('0x184')]('[actionOriginate]\x20',_0x12608c));}}})[_0x281dfa('0x131')](loggerGetContactDialer(_0x281dfa('0xbb'),_0x12608c,_0x41fd0b));}},Dialer[_0x459c62('0x1f3')]['handlePredictive']=function(_0x505e67){const _0x35e9d6=_0x459c62;if(_0x505e67[_0x35e9d6('0xf6')]>0x0){const _0xb6186b=_0x505e67[_0x35e9d6('0xf6')]-_0x505e67['originated']-_0x505e67['talking'];_0xb6186b>0x0?this[_0x35e9d6('0x20a')](_0x505e67):loggerPredictiveCalls[_0x35e9d6('0x4d')]('[handlePredictive][limitChannel]');}else this[_0x35e9d6('0x20a')](_0x505e67);},Dialer[_0x459c62('0x1f3')][_0x459c62('0x20a')]=function(_0x3093dc){const _0x51bf60=_0x459c62,_0x22009e=this,_0x2a5e9d=[];_0x3093dc[_0x51bf60('0x143')]+=0x1;for(const _0x258f5d in this[_0x51bf60('0x141')]){typeof this[_0x51bf60('0x141')][_0x258f5d]!==_0x51bf60('0x40')&&(this[_0x51bf60('0x141')][_0x258f5d][_0x51bf60('0x1f8')]===_0x51bf60('0x1e9')&&this[_0x51bf60('0x141')][_0x258f5d][_0x51bf60('0x4f')]===_0x51bf60('0x14d')&&_0x2a5e9d[_0x51bf60('0x34')](this[_0x51bf60('0x141')][_0x258f5d]['id']));}this[_0x51bf60('0x98')](_0x3093dc['id'],_0x2a5e9d,0x1,_0x3093dc[_0x51bf60('0x16e')])[_0x51bf60('0x115')](function(_0x26be8d){const _0x51b52d=_0x51bf60;!checkContactEmpty(_0x26be8d)?(checkContactLowerLimitOriginate(_0x3093dc,0x1,0x0),_0x22009e['countReScheduled'](_0x3093dc)[_0x51b52d('0x115')](sendMessageReschedule(_0x3093dc))[_0x51b52d('0x131')](loggerCatch(_0x51b52d('0x1d4')))):(_0x3093dc[_0x51b52d('0x1bd')]=_0x51b52d('0xd0'),_['isNil'](_0x26be8d[0x0])||_[_0x51b52d('0x1c1')](_0x26be8d[0x0][_0x51b52d('0xa8')])||_[_0x51b52d('0x1c1')](_0x26be8d[0x0][_0x51b52d('0xa8')][_0x51b52d('0x123')])?_0x22009e[_0x51b52d('0x48')](_0x51b52d('0x14c'),_0x3093dc,_0x26be8d[0x0]):_0x22009e['checkIsBlackList'](_[_0x51b52d('0x19a')](_0x26be8d[0x0],[_0x51b52d('0xfc'),_0x51b52d('0xf3')]))[_0x51b52d('0x115')](_0x22009e['checkContactBlack'](_0x3093dc,_0x26be8d[0x0]))[_0x51b52d('0x131')](_0x22009e['loggerHandler'](_0x51b52d('0x1cf'),_0x3093dc)));})[_0x51bf60('0x131')](loggerGetContactDialer(_0x51bf60('0x206'),_0x3093dc,0x1)),emitVoiceQueueSummary(_0x3093dc);},Dialer[_0x459c62('0x1f3')]['abandonmentRate']=function(_0x5f4657,_0x761c46,_0x51c2d9,_0x9bbba4,_0x30f712,_0x3a0b23){const _0x1b13ab=_0x459c62;return loggerPredictive[_0x1b13ab('0x4d')]('--------\x20Drop\x20Rate\x20--------'),loggerPredictive['info'](_0x1b13ab('0x179'),_0x5f4657),loggerPredictive[_0x1b13ab('0x4d')](_0x1b13ab('0x147'),_0x761c46),loggerPredictive[_0x1b13ab('0x4d')](_0x1b13ab('0x137'),_0x51c2d9),loggerPredictive[_0x1b13ab('0x4d')](_0x1b13ab('0x12a'),_0x9bbba4),loggerPredictive[_0x1b13ab('0x4d')]('Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x30f712),loggerPredictive[_0x1b13ab('0x4d')](_0x1b13ab('0x1ed')),new Promise(function(_0x55f116,_0x5010ac){const _0x50b00c=_0x1b13ab;if(_0x5f4657<=0x0||isNaN(_0x5f4657))return _0x5010ac(msgResponse(_0x50b00c('0xde'),_0x50b00c('0xc4'),'m\x20=\x20'+_0x5f4657));if(_0x51c2d9<=0x0||isNaN(_0x51c2d9))return _0x5010ac(msgResponse(_0x50b00c('0xde'),'Error',_0x50b00c('0x145')+_0x51c2d9));if(_0x9bbba4<=0x0||isNaN(_0x9bbba4))return _0x5010ac(msgResponse(_0x50b00c('0xde'),'Error',_0x50b00c('0x2')+_0x9bbba4));if(_0x761c46<=0x0||isNaN(_0x761c46))return _0x5010ac(msgResponse(_0x50b00c('0xde'),_0x50b00c('0xc4'),'interval\x20=\x20'+_0x761c46));if(_0x30f712<=0x0||isNaN(_0x30f712))return _0x5010ac(msgResponse(_0x50b00c('0xde'),'Error',_0x50b00c('0x170')+_0x30f712));_0x3a0b23=_0x3a0b23||0x0;const _0x46410f=0x1/_0x51c2d9;let _0x47da12=0x0,_0x185bf0=0x0,_0x2e38af=0x0,_0x3677bc=0x0,_0x2cfdb0=0x0;for(_0x2cfdb0=0x0;_0x2e38af<_0x30f712;_0x2cfdb0+=0x1){_0x185bf0=_0x2cfdb0/_0x761c46,_0x47da12=(_0x9bbba4*_0x185bf0+_0x3a0b23)/_0x46410f,_0x2e38af=erlangb(_0x47da12,_0x5f4657),_0x3677bc=_0x47da12/_0x5f4657*(0x1-erlangb(_0x47da12,_0x5f4657));}return _0x55f116({'erlangCalls':_0x2cfdb0,'erlangCallToSecond':_0x761c46/_0x2cfdb0,'erlangAbandonmentRate':_0x2e38af,'erlangBusyFactor':_0x3677bc});});},Dialer[_0x459c62('0x1f3')][_0x459c62('0x193')]=function(_0x2e6ec3,_0xf46bb3,_0x55b9c3,_0x38ac4c,_0x3d22d4,_0x114942){const _0x409487=_0x459c62;return loggerPredictive[_0x409487('0x4d')](_0x409487('0x5d')),loggerPredictive[_0x409487('0x4d')]('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',_0x2e6ec3),loggerPredictive['info'](_0x409487('0x147'),_0xf46bb3),loggerPredictive[_0x409487('0x4d')](_0x409487('0x137'),_0x55b9c3),loggerPredictive[_0x409487('0x4d')](_0x409487('0x12a'),_0x38ac4c),loggerPredictive[_0x409487('0x4d')](_0x409487('0xc6'),_0x3d22d4),loggerPredictive[_0x409487('0x4d')](_0x409487('0x1ed')),new Promise(function(_0x4488b7,_0x527692){const _0x440ee7=_0x409487;if(_0x2e6ec3<=0x0||isNaN(_0x2e6ec3))return _0x527692(msgResponse('[busyFactor]',_0x440ee7('0xc4'),'m\x20=\x20'+_0x2e6ec3));if(_0x55b9c3<=0x0||isNaN(_0x55b9c3))return _0x527692(msgResponse(_0x440ee7('0x84'),_0x440ee7('0xc4'),'Ts\x20=\x20'+_0x55b9c3));if(_0x38ac4c<=0x0||isNaN(_0x38ac4c))return _0x527692(msgResponse(_0x440ee7('0x84'),_0x440ee7('0xc4'),'p\x20=\x20'+_0x38ac4c));if(_0xf46bb3<=0x0||isNaN(_0xf46bb3))return _0x527692(msgResponse('[busyFactor]',_0x440ee7('0xc4'),_0x440ee7('0x70')+_0xf46bb3));if(_0x3d22d4<=0x0||isNaN(_0x3d22d4))return _0x527692(msgResponse(_0x440ee7('0x84'),_0x440ee7('0xc4'),_0x440ee7('0x6f')+_0x3d22d4));_0x114942=_0x114942||0x0;const _0x443dda=0x1/_0x55b9c3;let _0x468231=0x0,_0x4c3a1b=0x0,_0xeb73cf=0x0,_0x197119=0x0,_0x33127e=0x0;for(_0x33127e=0x0;_0x197119<_0x3d22d4;_0x33127e+=0x1){_0x4c3a1b=_0x33127e/_0xf46bb3,_0x468231=(_0x38ac4c*_0x4c3a1b+_0x114942)/_0x443dda,_0xeb73cf=erlangb(_0x468231,_0x2e6ec3),_0x197119=_0x468231/_0x2e6ec3*(0x1-erlangb(_0x468231,_0x2e6ec3));}return _0x4488b7({'erlangCalls':_0x33127e,'erlangCallToSecond':_0xf46bb3/_0x33127e,'erlangAbandonmentRate':_0xeb73cf,'erlangBusyFactor':_0x197119});});},module[_0x459c62('0x4')]=Dialer; \ No newline at end of file +const a1057_0x5693=['saveInDb','dialAMDInitialSilence','[syncQueueSummary]\x20Campaign\x20Ivr:\x20','Avg\x20Talk\x20Time\x20is\x20not\x20enough\x20for\x20predictive','predictiveIntervalPauses','message','voicePause','paused','\x20AGENTS\x20NOT\x20LOGGED','is\x20disactive','callerid','newexten','predictiveIntervalDroppedCallsTimeout','dropRate','[CatchErlangB]','check\x20failure','Amax\x20=\x20','reason\x203\x20ringing\x20no\x20answer','[rescheduleContact][Machine]','dialGlobalMaxRetry','format','pick',')\x20are\x20less\x20than\x20threshold\x20(','%s%s','reason\x208\x20congestion','dialQueueOptions','erlangBusyFactor','averageHandleTime','custom:agentnosuchnumber','dialCongestionMaxRetry','countcongestionretry','Unknown\x20Predictive','booked','---------------------------','[emptyContact][createHistory]','RUNNING','Ts\x20=\x20','xcally-motion-dialer','[Originate][HistoryRecallClose]','total','XMD-AMDMINWORDLENGTH','ListId','outboundReCallsDay','Trunk','dialTimezone','pow','[booked][RR]','originatecalleridnum','[getContactCampaign2]','dialAMDMaximumWordLength','[actions]','agiIp','INTERVAL_IS_NULL','[syncHangupIvr]','dialOriginateTimeout','evt\x20is\x20undefine','[getContactDialer2][Empty]','queuecallerabandon','syncAgentComplete','Agent','../../../config/logger','Dropped\x20calls\x20day','Drop','temp','[getVoiceQueueRtPauses]\x20','clearing\x20variable\x20start\x20progressive','dialAbandonedMaxRetry','active','[createHistory]\x20','predictiveIntervalMaxThreshold','INTERVAL_IS_EMPTY','syncOriginateResponse','[syncHangupIvr][createHistory]','[Originate][historyBlacklist]','contactsId','[getDataPredictive]','dialQueueProject','undefined','dialRandomLastDigitCallerIdNumber','run','responsetime','dialDropMaxRetry','Agent\x20Busy\x20Factor:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Contact\x20updated','emptyContact','dialPredictiveInterval','[syncAgentComplete][createHistory][?]','[syncAgentComplete][createHistory][8]','erlangCallToSecond','\x20INTERVAL_IS_NULL','syncVarSet','unlockRR','XMD-CAMPAIGNID','match','command','predictiveIntervalDroppedCallsCallersExit','\x20Interval\x20is\x20overtime:\x20','countagentrejectretry','agentreject','./action','md5','RecallInQueue','tryOriginatePredictive','channels','updateOriginated','reason19\x20machine....','Dropped\x20Exit:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sequence','dialAMDActive','Predictive\x20for\x20every\x20interval','[rescheduleContact]\x20[Congestion]','[actionOriginate]\x20','prototype','[getContactCampaign2][Empty]','inBlackList','sendMessageOneNotActive','recallme','Interval','outboundQueuePauses','RECALLFAILEDTIMEOUT','\x22%s\x22\x20<%s>','stateinterface','status','RecallFailedTimeout','../rpc/cmHopperBlack','TrunkBackup','handleIvr','originate','statedesc','AVAILABLE_CONTACTS_FINISHED','name','UserId','predictiveIntervalMinThreshold','../ami','----\x20Agent\x20Busy\x20Factor\x20----','XMD-AMDINITIALSILENCE','content','loopCampaigns','starttime','updatedAt','idHopper','phone','endtime','[startMethodPredictive][StartProgressive][Loop]','emit','optionPredictive','predictiveIntervalMultiplicativeFactor','[rescheduleContact][Drop]','custom:agentcongestion','[unlockContact]\x20','fail\x20to\x20scheduled\x20calls','contactsRescheduled','custom:agentreject','reachable','milliseconds','[decremetOriginate]\x20is\x20null\x20or\x20undefined','inspect','AnswerAGI','./queueCallerAbandon','[updateOriginated]\x20is\x20null\x20or\x20undefined','queueCallerAbandonCreateState','[callProgressDetecting]','countglobal','outboundDropCallsDayACS','scheduledat','checkIsTrunkReachable','stringify','[rescheduleContact][NoAnswer]','unmanaged','checkIsBlackListIvr','isArray','bind','Avg\x20Hold\x20Time\x20is\x20not\x20enough\x20for\x20predictive','countbusyretry','XMD-AMDTOTALANALYSISTIME','resolve','indexOf','Failure','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','queue','dialer','[booked][unlock]','getDataPredictive','[unlockOriginate][syncQueueStatusComplete]','countmachineretry','available','[getContactDialer2][ReScheduled]','agiafterat','syncHangup','[uniqueid]','m\x20=\x20','stack','\x20NOT\x20Active','moment','dialQueueProject2','getVoiceQueueRtPauses','then','Contact','dialDropRetryFrequency','trunks','handlePredictive','getContactDialerIvr','IS_DISACTIVED','[syncAgentComplete][createHistory][3]','OriginateError','reason\x2011\x20abandoned','isSuccess','abandonmentRate','talking','\x20Intervals\x20is\x20null\x20','Busy','campaign:save','dialNoSuchNumberMaxRetry','createHistory','calleridnum','dialPrefix','createStateFinal','Contact.phone','[stopMethodPredictive][ReStartProgressive][ExceededDropDay]','amd','syncAgentConnect','countabandonedretry','launchHandleIvr','exports','agent','Dropped\x20Timeout:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','../rpc/voiceQueueRt','[syncAgentComplete][createHistory]','RESCHEDULED_CONTACTS','util','interval\x20=\x20','strategy','Predictive\x20after\x20first\x20interval','exten','YYYY-MM-DD\x20HH:mm:ss','buildObj','[syncAgentComplete][createHistory][5]','avgHandleTime','countdropretry','length','catch','predictiveIntervalTotalCalls','tags','preview','dialCongestionRetryFrequency','ifTime','predictiveIntervalAnsweredCalls','[actionOriginatePredictive]\x20','[ifTime][promiseAll]','outboundAnswerCallsDay','syncQueueCallerAbandon','agentBusyFactor','NoSuchNumber','agentconnect','answered','Queue','pTalking','loopClearZombieChannels','dialAgentRejectRetryFrequency','unlockContact','startProgressive','switch\x20in\x20progressive\x20because\x20available\x20agents\x20(','syncQueueSummary','true','countnosuchnumberretry','[rescheduleContact][AgentReject]','\x22%s,%s%s,,,%s\x22','entity\x20is\x20undefine','not_inuse','membername','loggedIn','[callProgressDetecting]\x20','handlePower','[booked][unlockQueueStatus]','../preview/util/util','dialQueueTimeout','outboundDropCallsDayTimeout','dialActive','trim','startMethodPredictive','outboundRejectCallsDay','replace','NOT_ACTIVE',')\x20are\x20more\x20than\x20threshold\x20(','Abandoned','dialMachineRetryFrequency','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','[syncAgentComplete][createHistory][0]','reason\x205\x20busy','[rescheduleContact][Abandoned]','\x20Intervals\x20is\x20empty\x20','voiceQueue\x20is\x20undefine','reason','rrmemory','substring','dropreason','countnoanswerretry','outboundDropCallsDayCallersExit','ivr','[unlockQueueStatus][undefined]','outboundCongestionCallsDay','[updateOriginated]\x20object\x20originated\x20is\x20negative','reason\x200\x20no\x20such\x20number....','---------\x20ErlangB\x20---------','Error','predictiveIntervalAvgTalktime','erlangCalls','add','[Catch][Preview][syncQueueStatusComplete]','Scheduled\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','abandoned','round','./hangup','\x22\x22\x20<>','SIP/%s','dialBusyMaxRetry','AVG\x20Hold\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Drop\x20in\x20this\x20interval','checkIsBlackList','[moveContactManagedDialer][0]','loggedInDb','getCaller','../../../rediscache','checkIfTimeIntervals','_rr','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','countReScheduled','dialMachineMaxRetry','getQueue','dialAMDSilenceThreshold','[checkIsBlackListIvr]\x20','some','checkDialMethod','Agent:\x20','\x22agi://%s/square,%s\x22','VoiceQueueId','floor','AVG\x20Talk\x20Time:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[decremetOriginate]\x20object\x20originated\x20is\x20negative','channel','Timezone:\x20','dialPredictiveOptimizationPercentage','minutes','calleridname','interval','[ifTime][Action]','clearing\x20variable\x20handle\x20predictive','AGENTS_NOT_LOGGED','cause-txt','outboundBusyCallsDay','agents','SIP/%s/%s%s','[getContactDialerPredictive]','contact\x20not\x20moved','XMD-','dialAgiAfterHangupAgent','erlangAbandonmentRate','[rescheduleContact]\x20[Busy]','[syncHangupInAMD]','syncQueueStatusComplete','dialNoAnswerMaxRetry','getContactDialer','getDataPredictiveOld','iftime\x20%s,%s','method\x20not\x20recognized','Total\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Umin\x20=\x20','outboundAnswerAgiCallsDay','ivrAnswerCallsDay','push','-----\x20Stats\x20Predictive\x20---','isEmpty','moveContactManagedDialer','nosuchnumber','reason\x2020\x20agentreject','outboundOriginateFailureCallsDay','campaigns','[busyFactor]','CampaignId','XMD-ORIGINATECALLERIDNAME','[countReScheduled]\x20','string','[abandonmentRate]','queueBooked','[originate][error]','error','uniqueId','AgentReject','checkContactBlack','object','locked','outboundNoAnswerCallsDay','stateGlobal','type','./final','outbound','[Originate][MoveBlacklist]','waiting','info','Queue:\x20','[syncAgentComplete]','XMD-AMDGREETING','dialPredictiveOptimization','outboundAbandonedCallsDay','contactAgent-idHopper:\x20','is\x20not\x20active','predictiveIntervalHitRate','dialOrderByScheduledAt','../rpc/cmHopper','Interval:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','syncNewExten','state','dialNoAnswerRetryFrequency','voiceQueues','NONE','XMD-VOICEQUEUEID','check\x20handlePredictive\x20is\x20not\x20undefine','TIMEZONE_UNKNOW','[actionOriginateIvr]\x20','queuemember','dialAMDBetweenWordsSilence','[handlePredictive][limitChannel]','maxNumberOriginate','XMD-AMDMAXIMUMNUMBEROFWORDS','dialAMDGreeting','queueStatusComplete','finally','callProgressDetecting','droptime','AMD','toUpper','p\x20=\x20','log','[syncAgentComplete][createHistory][10]','value','XMD-AMDMAXIMUMWORDLENGTH','isUndefined','all','voice_queue:save','originated','collection\x20data\x20in\x20progressive\x20at','[booked][unlock3]','sumBillable','[Originate][HistoryDialRecallInQueue][historyCatch]','Unknow','[syncHangupInAMD][createHistory]','--------\x20Drop\x20Rate\x20--------','checkRetriveMax','[Originate][HistoryRecallClose][historyCatch]','predictiveIntervalAvgHoldtime','predictive','[booked][unlock2]','outboundBlacklistCallsDay','History\x20information\x20are\x20empty','checkIfTime','Success','actions','syncCampaigns','dialLimitQueue','seconds','tail','dialBusyRetryFrequency','predictiveIntervalAvailable','dialAbandonedRetryFrequency','timezones','\x5cw{0,','noanswer','unmonitored','Amax:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ContactId','Global:\x20','power','actionOriginate','Global','merge','predictiveIntervalErlangCallsDroppedCalls','[booked][RR][finaly]','isNil','Action','actionid','[booked][checkContactBlack][else]','dialRecallMeTimeout','predictiveIntervalErlangCalls','dialAgentRejectMaxRetry','clearZombieChannels','queueBookedRR','congestion','roundrobin','XMD-ORIGINATECALLERIDNUM','[getContactDialer]\x20','dialAMDMaximumNumberOfWords','reason\x2019\x20machine....','rescheduleContact','[syncAgentComplete][createHistory][11]','startPredictive','dialMethod','campaign:ivr:%s','isTrunkReachable','dialRecallInQueue','loggerHandler','uniqueid','originatecalleridname','dialAMDTotalAnalysisTime','diff','Total\x20Calls\x20are\x20not\x20enough\x20for\x20predictive','One\x20call\x20every:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[getContactDialer2]','Machine','dialOriginateCallerIdNumber','busyFactor','check\x20predictive\x20is\x20not\x20undefine','[startMethodPredictive][StartProgressive]','outboundUnknownCallsDay','[unlock][syncQueueStatusComplete]','[emptyContact]','Intervals','ACTIVE','enqueue','custom:agentnoanswer','syncQueueMember','dialCutDigit','Drop\x20Rate:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];(function(_0x146403,_0x56935b){const _0x5c3fbd=function(_0x21fcb7){while(--_0x21fcb7){_0x146403['push'](_0x146403['shift']());}};_0x5c3fbd(++_0x56935b);}(a1057_0x5693,0x160));const a1057_0x5c3f=function(_0x146403,_0x56935b){_0x146403=_0x146403-0x0;let _0x5c3fbd=a1057_0x5693[_0x146403];return _0x5c3fbd;};const _0x2fe8b4=a1057_0x5c3f;'use strict';const util=require(_0x2fe8b4('0x18f')),_=require('lodash'),uuid=require('uuid'),moment=require(_0x2fe8b4('0x16b')),rr=require('rr'),md5=require(_0x2fe8b4('0x10e')),ut=require(_0x2fe8b4('0x1bc')),config=require('../../../config/environment/'),logger=require(_0x2fe8b4('0xe6'))(_0x2fe8b4('0x15e')),loggerBooked=require(_0x2fe8b4('0xe6'))(_0x2fe8b4('0xca')),loggerPredictive=require('../../../config/logger')(_0x2fe8b4('0x62')),loggerPredictiveCalls=require('../../../config/logger')('predictiveCalls'),loggerSyncQueueSummary=require(_0x2fe8b4('0xe6'))(_0x2fe8b4('0x1b0')),ami=require(_0x2fe8b4('0x12f')),{getSocket}=require(_0x2fe8b4('0x1ec')),io=getSocket(),cmHopper=require(_0x2fe8b4('0x38')),cmHopperHistory=require('../rpc/cmHopperHistory'),cmHopperBlack=require(_0x2fe8b4('0x126')),voiceQueueRt=require(_0x2fe8b4('0x18c')),Action=require(_0x2fe8b4('0x10d')),History=require('./history'),Final=require(_0x2fe8b4('0x2a')),AgentComplete=require('./agentComplete'),QueueCallerAbandon=require(_0x2fe8b4('0x148')),Hangup=require(_0x2fe8b4('0x1e2')),{getConfigService}=require('../../../config/config.service'),strategy={'rrmemory':_0x2fe8b4('0x1cf'),'roundrobin':_0x2fe8b4('0x87')},Sequence=function(){};Sequence['prototype'][_0x2fe8b4('0xa5')]=function(_0x21fcb7){const _0xebc2c6=_0x2fe8b4;this['tail']=this[_0xebc2c6('0x6c')]?this[_0xebc2c6('0x6c')]['finally'](_0x21fcb7):_0x21fcb7();};function Dialer(_0x49bfbe,_0x5624ea){const _0x49106c=_0x2fe8b4;this[_0x49106c('0x115')]=new Sequence(),this[_0x49106c('0x19d')]=_0x5624ea,this[_0x49106c('0x3d')]=_0x49bfbe['voiceQueues'],this[_0x49106c('0x18')]=_0x49bfbe['campaigns'],this[_0x49106c('0x208')]=_0x49bfbe['agents'],this[_0x49106c('0x171')]=_0x49bfbe[_0x49106c('0x171')],this[_0x49106c('0x46')]=config['maxNumberOriginate']||0x2,this[_0x49106c('0x111')]={},this[_0x49106c('0x68')]={},this[_0x49106c('0xf4')]={},this[_0x49106c('0x22')]={},this[_0x49106c('0x13b')]={},this['startPredictive']={},this[_0x49106c('0x1ae')]={},this['ivrOriginated']={},this[_0x49106c('0x1f')]={},this[_0x49106c('0x85')]={},ami['on'](_0x49106c('0x1a7'),this[_0x49106c('0x186')][_0x49106c('0x155')](this)),ami['on'](_0x49106c('0xe3'),this[_0x49106c('0x1a4')]['bind'](this)),ami['on']('originateresponse',this['syncOriginateResponse'][_0x49106c('0x155')](this)),ami['on']('agentcomplete',this[_0x49106c('0xe4')][_0x49106c('0x155')](this)),ami['on']('custom:queuesummary',this['syncQueueSummary'][_0x49106c('0x155')](this)),ami['on']('hangup',this[_0x49106c('0x166')][_0x49106c('0x155')](this)),ami['on'](_0x49106c('0xb5'),this[_0x49106c('0x3a')][_0x49106c('0x155')](this)),ami['on']('varset',this[_0x49106c('0x104')]['bind'](this)),ami['on'](_0x49106c('0x43'),this['syncQueueMember'][_0x49106c('0x155')](this)),ami['on']('queuestatuscomplete',this[_0x49106c('0x7')][_0x49106c('0x155')](this)),this[_0x49106c('0x133')](),this[_0x49106c('0x1ab')]();}function isNotNull(_0x51436d){const _0x37244b=_0x2fe8b4;return _0x51436d!==null&&!_[_0x37244b('0x54')](_0x51436d);}function checkIsLoggedIn(_0x68ea83,_0x8a8a2e){return function(){const _0x532ad8=a1057_0x5c3f;if(_0x8a8a2e<=0x0){_0x68ea83['message']=_0x532ad8('0x205');throw _0x68ea83['name']+_0x532ad8('0xb2');}};}function isActive(_0x4228d9){return _0x4228d9;}function checkIsActive(_0x2317fa,_0x28778a){return function(){const _0xd17537=a1057_0x5c3f;if(!isActive(_0x28778a)){_0x2317fa[_0xd17537('0xaf')]='NOT_ACTIVE';throw _0x2317fa[_0xd17537('0x12c')]+_0xd17537('0x16a');}};}function checkInterval(_0x24c76b){return function(){const _0x1ec845=a1057_0x5c3f;if(!isNotNull(_0x24c76b['Interval'])){_0x24c76b[_0x1ec845('0xaf')]=_0x1ec845('0xde');throw _0x24c76b[_0x1ec845('0x12c')]+_0x1ec845('0x103');}if(!isNotNull(_0x24c76b[_0x1ec845('0x11f')][_0x1ec845('0xa3')])){_0x24c76b['message']='INTERVAL_IS_NULL';throw _0x24c76b[_0x1ec845('0x12c')]+'\x20INTERVAL_IS_NULL';}if(!isNotNull(_[_0x1ec845('0x13')](_0x24c76b['Interval']['Intervals']))){_0x24c76b[_0x1ec845('0xaf')]=_0x1ec845('0xde');throw _0x24c76b[_0x1ec845('0x12c')]+_0x1ec845('0x103');}};}function msgResponse(_0x43e6ea,_0x3d542c,_0xcee1ca){return{'action':_0x43e6ea,'response':_0x3d542c,'message':_0xcee1ca,'stack':_0xcee1ca};}function myreject(_0x380368){return function(_0x2d74c7){const _0x10edd2=a1057_0x5c3f;return _0x380368(msgResponse(_0x10edd2('0x203'),_0x10edd2('0x1da'),JSON[_0x10edd2('0x150')](_0x2d74c7)));};}function getSeconds(_0x23bc5d,_0x38eccb){const _0x37136c=_0x2fe8b4,_0x51dbc0=moment(_0x23bc5d)[_0x37136c('0x144')](0x0),_0x4f1ac0=moment(_0x38eccb)['milliseconds'](0x0);return _0x51dbc0[_0x37136c('0x97')](_0x4f1ac0,'seconds');}function emit(_0x201196,_0x2e816a,_0x244178){const _0x155991=_0x2fe8b4;io['to'](_0x201196)[_0x155991('0x13a')](_0x2e816a,_0x244178);}function emitVoiceQueueSummary(_0x1e7508){const _0x417ca8=_0x2fe8b4;if(_0x1e7508[_0x417ca8('0x29')]===_0x417ca8('0x2b')){const _0x1ccfb9={'id':_0x1e7508['id'],'name':_0x1e7508['name'],'strategy':_0x1e7508[_0x417ca8('0x191')],'answered':_0x1e7508[_0x417ca8('0x1a8')],'available':_0x1e7508['available'],'loggedIn':_0x1e7508[_0x417ca8('0x1b8')],'pTalking':_0x1e7508[_0x417ca8('0x1aa')],'sumBillable':_0x1e7508[_0x417ca8('0x5a')],'sumDuration':_0x1e7508['sumDuration'],'sumHoldTime':_0x1e7508['sumHoldTime']||0x0,'talking':_0x1e7508[_0x417ca8('0x17a')],'total':_0x1e7508[_0x417ca8('0xd1')],'type':_0x1e7508[_0x417ca8('0x29')],'unmanaged':_0x1e7508[_0x417ca8('0x152')],'abandoned':_0x1e7508[_0x417ca8('0x1e0')],'waiting':_0x1e7508[_0x417ca8('0x2d')],'loggedInDb':_0x1e7508[_0x417ca8('0x1ea')],'dialActive':_0x1e7508[_0x417ca8('0x1bf')],'dialMethod':_0x1e7508['dialMethod'],'dialOriginateCallerIdName':_0x1e7508['dialOriginateCallerIdName'],'dialOriginateCallerIdNumber':_0x1e7508[_0x417ca8('0x9c')],'dialOriginateTimeout':_0x1e7508[_0x417ca8('0xe0')],'dialPrefix':_0x1e7508[_0x417ca8('0x181')],'outboundAnswerAgiCallsDay':_0x1e7508[_0x417ca8('0xf')],'outboundAnswerCallsDay':_0x1e7508[_0x417ca8('0x1a3')],'outboundBlacklistCallsDay':_0x1e7508[_0x417ca8('0x64')],'outboundBusyCallsDay':_0x1e7508[_0x417ca8('0x207')],'outboundCongestionCallsDay':_0x1e7508[_0x417ca8('0x1d6')],'outboundDropCallsDayACS':_0x1e7508[_0x417ca8('0x14d')],'outboundDropCallsDayCallersExit':_0x1e7508['outboundDropCallsDayCallersExit'],'outboundDropCallsDayTimeout':_0x1e7508[_0x417ca8('0x1be')],'outboundNoAnswerCallsDay':_0x1e7508[_0x417ca8('0x27')],'outboundNoSuchCallsDay':_0x1e7508['outboundNoSuchCallsDay'],'outboundOriginateFailureCallsDay':_0x1e7508['outboundOriginateFailureCallsDay'],'outboundReCallsDay':_0x1e7508[_0x417ca8('0xd4')],'outboundRejectCallsDay':_0x1e7508[_0x417ca8('0x1c2')],'outboundUnknownCallsDay':_0x1e7508['outboundUnknownCallsDay'],'predictiveIntervalAnsweredCalls':_0x1e7508[_0x417ca8('0x1a0')],'predictiveIntervalAvgHoldtime':_0x1e7508[_0x417ca8('0x61')],'predictiveIntervalAvgTalktime':_0x1e7508['predictiveIntervalAvgTalktime'],'predictiveIntervalDroppedCallsCallersExit':_0x1e7508[_0x417ca8('0x109')],'predictiveIntervalDroppedCallsTimeout':_0x1e7508[_0x417ca8('0xb6')],'predictiveIntervalErlangCalls':_0x1e7508[_0x417ca8('0x82')],'predictiveIntervalErlangCallsDroppedCalls':_0x1e7508[_0x417ca8('0x7b')],'predictiveIntervalHitRate':_0x1e7508[_0x417ca8('0x36')],'predictiveIntervalMultiplicativeFactor':_0x1e7508[_0x417ca8('0x13c')],'predictiveIntervalPauses':_0x1e7508[_0x417ca8('0xae')],'predictiveIntervalAvailable':_0x1e7508['predictiveIntervalAvailable'],'predictiveIntervalTotalCalls':_0x1e7508[_0x417ca8('0x19b')],'message':_0x1e7508['message'],'originated':_0x1e7508[_0x417ca8('0x57')],'erlangCalls':_0x1e7508[_0x417ca8('0x1dc')],'erlangCallToSecond':_0x1e7508['erlangCallToSecond'],'erlangAbandonmentRate':_0x1e7508[_0x417ca8('0x4')],'erlangBusyFactor':_0x1e7508[_0x417ca8('0xc4')],'startPredictive':_0x1e7508[_0x417ca8('0x8e')],'startProgressive':_0x1e7508[_0x417ca8('0x1ae')]};_0x1e7508[_0x417ca8('0xd5')]&&(_0x1ccfb9[_0x417ca8('0xd5')]={'id':_0x1e7508[_0x417ca8('0xd5')]['id'],'name':_0x1e7508[_0x417ca8('0xd5')][_0x417ca8('0x12c')],'active':_0x1e7508[_0x417ca8('0xd5')]['active'],'callerid':_0x1e7508[_0x417ca8('0xd5')][_0x417ca8('0xb4')]});_0x1e7508[_0x417ca8('0x11f')]&&(_0x1ccfb9[_0x417ca8('0x11f')]={'id':_0x1e7508[_0x417ca8('0x11f')]['id'],'name':_0x1e7508[_0x417ca8('0x11f')][_0x417ca8('0x12c')]});const _0x54969b=md5(JSON['stringify'](_0x1ccfb9));_0x1e7508[_0x417ca8('0x10e')]!==_0x54969b&&(_0x1e7508['md5']=_0x54969b,emit(util[_0x417ca8('0xbe')]('voice:queue:%s',_0x1ccfb9['name']),_0x417ca8('0x56'),_0x1ccfb9));}}function emitCampaignSummary(_0x35be26){const _0x3dd4ce=_0x2fe8b4;_0x35be26[_0x3dd4ce('0x29')]==='ivr'&&emit(util[_0x3dd4ce('0xbe')](_0x3dd4ce('0x90'),_0x35be26['name']),_0x3dd4ce('0x17d'),_0x35be26);}function checkGetDataPredictive(_0x5c3f38){const _0x43d624=_0x2fe8b4;if(isNotNull(_0x5c3f38)){if(!_[_0x43d624('0x13')](_0x5c3f38)){loggerPredictive[_0x43d624('0x2e')](_0x43d624('0x12')),loggerPredictive['info'](_0x43d624('0xd'),_0x5c3f38['predictiveIntervalTotalCalls']),loggerPredictive['info']('Answered\x20Calls:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x5c3f38[_0x43d624('0x1a0')]),loggerPredictive['info'](_0x43d624('0x18b'),_0x5c3f38[_0x43d624('0xb6')]),loggerPredictive[_0x43d624('0x2e')](_0x43d624('0x114'),_0x5c3f38[_0x43d624('0x109')]),loggerPredictive[_0x43d624('0x2e')](_0x43d624('0x1e6'),_0x5c3f38[_0x43d624('0x61')]),loggerPredictive[_0x43d624('0x2e')](_0x43d624('0x1fb'),_0x5c3f38[_0x43d624('0x1db')]),loggerPredictive[_0x43d624('0x2e')](_0x43d624('0xcb'));if(_0x5c3f38['predictiveIntervalTotalCalls']>0x0){if(!_['isUndefined'](_0x5c3f38[_0x43d624('0x1db')])&&_0x5c3f38[_0x43d624('0x1db')]>0x0)return!![];else loggerPredictive[_0x43d624('0x2e')](_0x43d624('0xad'));if(!_[_0x43d624('0x54')](_0x5c3f38[_0x43d624('0x61')])&&_0x5c3f38[_0x43d624('0x61')]>0x0)return!![];else loggerPredictive[_0x43d624('0x2e')](_0x43d624('0x156'));}else loggerPredictive[_0x43d624('0x2e')](_0x43d624('0x98'));}else loggerPredictive[_0x43d624('0x2e')](_0x43d624('0x65'));}else loggerPredictive[_0x43d624('0x2e')]('History\x20information\x20are\x20empty');return![];}function mergeDataErlangB(_0x38f045){return function(_0x51c2b1){const _0x4f552e=a1057_0x5c3f;loggerPredictive[_0x4f552e('0x2e')](_0x4f552e('0x1d9')),loggerPredictive[_0x4f552e('0x2e')](_0x4f552e('0x1df'),_0x51c2b1[_0x4f552e('0x1dc')]),loggerPredictive[_0x4f552e('0x2e')](_0x4f552e('0x99'),_0x51c2b1[_0x4f552e('0x102')]),loggerPredictive[_0x4f552e('0x2e')](_0x4f552e('0xa9'),_0x51c2b1[_0x4f552e('0x4')]),loggerPredictive[_0x4f552e('0x2e')](_0x4f552e('0xfc'),_0x51c2b1['erlangBusyFactor']),loggerPredictive[_0x4f552e('0x2e')](_0x4f552e('0xa9'),_0x51c2b1[_0x4f552e('0x4')]),loggerPredictive[_0x4f552e('0x2e')]('---------------------------'),_[_0x4f552e('0x7a')](_0x38f045,_0x51c2b1);};}function getDiff(_0x19046a){const _0xaf51f9=_0x2fe8b4,_0x103d78=moment()[_0xaf51f9('0x144')](0x0),_0x4c8710=moment(_0x19046a)[_0xaf51f9('0x144')](0x0);return _0x103d78[_0xaf51f9('0x97')](_0x4c8710,_0xaf51f9('0x6b'));}function ifInterval(_0x2bf446,_0x266b0c){const _0x351bf1=_0x2fe8b4;if(_[_0x351bf1('0x54')](_0x266b0c))return![];return getDiff(_0x266b0c)<_0x2bf446*0x3c?!![]:![];}function freeVariablesPredictive(_0x54f990){const _0x1dbecf=_0x2fe8b4;isNotNull(_0x54f990)&&(!_['isUndefined'](_0x54f990[_0x1dbecf('0x1ae')])&&(_0x54f990[_0x1dbecf('0x1ae')]=undefined,loggerPredictive[_0x1dbecf('0x2e')](_0x54f990[_0x1dbecf('0x12c')],_0x1dbecf('0xeb'))),!_['isUndefined'](_0x54f990['startPredictive'])&&(_0x54f990['startPredictive']=undefined,loggerPredictive[_0x1dbecf('0x2e')](_0x54f990[_0x1dbecf('0x12c')],'clearing\x20variable\x20start\x20predictive')),!_[_0x1dbecf('0x54')](_0x54f990['handlePredictive'])&&(clearInterval(_0x54f990[_0x1dbecf('0x172')]),_0x54f990['handlePredictive']=undefined,loggerPredictive['info'](_0x54f990[_0x1dbecf('0x12c')],_0x1dbecf('0x204'))));}function erlangb(_0x110c91,_0x5bc822){if(_0x5bc822===0x0)return 0x0;let _0x5887f1=0x1;for(let _0x2fb2be=0x1;_0x2fb2be<=_0x5bc822;_0x2fb2be+=0x1){_0x5887f1=0x1+_0x5887f1*_0x2fb2be/_0x110c91;}return 0x1/_0x5887f1;}function isVoiceQueueOutbound(_0x87541){return _0x87541==='outbound';}function isNotPreview(_0x41f29e){const _0x30c964=_0x2fe8b4;return _0x41f29e!==_0x30c964('0x19d');}function isCampaignIvr(_0x25449a){return _0x25449a==='ivr';}function getCallerId(_0x3f18c3,_0x3b902d,_0x54766a){const _0x2b07e2=_0x2fe8b4;if(!_[_0x2b07e2('0x54')](_0x54766a)&&_0x2b07e2('0x1d')===typeof _0x54766a&&!_[_0x2b07e2('0x13')](_0x54766a)){if(!_[_0x2b07e2('0x54')](_0x3b902d)&&'string'===typeof _0x3b902d&&!_[_0x2b07e2('0x13')](_0x3b902d))return util[_0x2b07e2('0xbe')](_0x2b07e2('0x122'),_0x3b902d,_0x54766a);return util[_0x2b07e2('0xbe')](_0x2b07e2('0x122'),_0x54766a,_0x54766a);}if(!_[_0x2b07e2('0x54')](_0x3f18c3)&&_0x2b07e2('0x1d')===typeof _0x3f18c3&&!_[_0x2b07e2('0x13')](_0x3f18c3))return _0x3f18c3;return _0x2b07e2('0x1e3');}function loggerCatchQueueSummary(_0x23a3ae,_0x3ec16c){return function(_0x171d48){const _0x2df153=a1057_0x5c3f;freeVariablesPredictive(_0x3ec16c),emitVoiceQueueSummary(_0x3ec16c),emitCampaignSummary(_0x3ec16c),loggerSyncQueueSummary[_0x2df153('0x21')](_0x23a3ae,util['inspect'](_0x171d48,{'showHidden':![],'depth':null}));};}function loggerCatchPredictive(_0x4c7f26,_0xfcc50f){return function(_0x222e72){const _0x4de894=a1057_0x5c3f;loggerPredictive[_0x4de894('0x21')](_0xfcc50f[_0x4de894('0x12c')],_0x4c7f26),loggerPredictive[_0x4de894('0x21')](_0x222e72[_0x4de894('0x169')]),freeVariablesPredictive(_0xfcc50f);};}function loggerCatch(_0x79e03a){return function(_0x50f9c2){const _0x4ef226=a1057_0x5c3f;logger[_0x4ef226('0x21')](_0x79e03a,util[_0x4ef226('0x146')](_0x50f9c2,{'showHidden':![],'depth':null}));};}function checkContactEmpty(_0x5a866c){const _0x2a00fc=_0x2fe8b4;return _0x5a866c&&!_[_0x2a00fc('0x54')](_0x5a866c)&&_0x5a866c[_0x2a00fc('0x199')]>0x0;}function decremetOriginate(_0x1fb1be){const _0x45f0e0=_0x2fe8b4;!_[_0x45f0e0('0x54')](_0x1fb1be)&&_0x1fb1be!==null?typeof _0x1fb1be[_0x45f0e0('0x57')]!=='undefined'&&(_0x1fb1be[_0x45f0e0('0x57')]>0x0?_0x1fb1be[_0x45f0e0('0x57')]-=0x1:logger[_0x45f0e0('0x21')](_0x45f0e0('0x1fc'))):logger[_0x45f0e0('0x21')](_0x45f0e0('0x145'));}function checkContactLowerLimitOriginate(_0x58c4d8,_0x38a9bd,_0x232f50){if(_0x38a9bd>_0x232f50)for(let _0x427b3f=0x0;_0x427b3f<_0x38a9bd-_0x232f50;_0x427b3f+=0x1){decremetOriginate(_0x58c4d8);}}function loggerGetContactDialer(_0x954fce,_0x558ede,_0x433d08){return function(_0x64d958){const _0x5154c4=a1057_0x5c3f;checkContactLowerLimitOriginate(_0x558ede,_0x433d08,0x0),logger[_0x5154c4('0x21')](_0x954fce,util[_0x5154c4('0x146')](_0x64d958,{'showHidden':![],'depth':null}));};}function sendMessageReschedule(_0x5291ee){return function(_0x3a7097){const _0x1617cb=a1057_0x5c3f;isNotNull(_0x3a7097)&&isNotNull(_0x3a7097[0x0])&&(_0x3a7097[0x0][_0x1617cb('0x141')]>0x0?(_0x5291ee[_0x1617cb('0xaf')]=_0x1617cb('0x18e'),logger[_0x1617cb('0x2e')](_0x1617cb('0x164')+_0x5291ee['name'],_0x3a7097[0x0][_0x1617cb('0x141')],'contacts')):(_0x5291ee[_0x1617cb('0xaf')]=_0x1617cb('0x12b'),logger[_0x1617cb('0x2e')](_0x1617cb('0xe2')+_0x5291ee[_0x1617cb('0x12c')])));};}function notSendMessagesQueue(_0x222520){const _0x3beaf5=_0x2fe8b4;_0x222520['sendMessageOneNotActive']&&(freeVariablesPredictive(_0x222520),_0x222520[_0x3beaf5('0x57')]===0x0&&_0x222520[_0x3beaf5('0x17a')]===0x0&&_0x222520[_0x3beaf5('0x2d')]===0x0&&(_0x222520[_0x3beaf5('0x1aa')]||0x0)===0x0?(_0x222520['sendMessageOneNotActive']=![],_0x222520[_0x3beaf5('0x163')]=0x0,_0x222520[_0x3beaf5('0xaf')]=_0x3beaf5('0x1c4'),loggerSyncQueueSummary[_0x3beaf5('0x21')]('[syncQueueSummary]\x20Campaign\x20Queue:\x20',_0x222520[_0x3beaf5('0x12c')],_0x3beaf5('0x35'))):(_0x222520[_0x3beaf5('0xaf')]=_0x3beaf5('0x174'),loggerSyncQueueSummary['error']('[syncQueueSummary]\x20Campaign\x20Queue:\x20',_0x222520[_0x3beaf5('0x12c')],_0x3beaf5('0xb3'))),emitVoiceQueueSummary(_0x222520));}function notSendMessagesCampaign(_0x2d3004){const _0x33d384=_0x2fe8b4;_0x2d3004[_0x33d384('0x11d')]&&(_0x2d3004[_0x33d384('0x57')]===0x0?(_0x2d3004['sendMessageOneNotActive']=![],_0x2d3004[_0x33d384('0xaf')]=_0x33d384('0x1c4'),loggerSyncQueueSummary['error'](_0x33d384('0xac'),_0x2d3004[_0x33d384('0x12c')],_0x33d384('0x35'))):(_0x2d3004[_0x33d384('0xaf')]=_0x33d384('0x174'),loggerSyncQueueSummary['error']('[syncQueueSummary]\x20Campaign\x20Ivr:\x20',_0x2d3004[_0x33d384('0x12c')],_0x33d384('0xb3'))),emitCampaignSummary(_0x2d3004));}function createObjHistory(_0x4213d0,_0x5d23f7,_0x5b38b9,_0x53cca9,_0x3b0ed7){const _0x1a008b=_0x2fe8b4;_0x4213d0[_0x1a008b('0xaf')]=_0x5b38b9;const _0x10676b=new Action(_0x4213d0,_0x5d23f7),_0x368779=new History(_0x10676b);return _0x368779[_0x1a008b('0x3b')]=_0x53cca9,_0x368779[_0x1a008b('0x12a')]=_0x3b0ed7,_0x368779[_0x1a008b('0x138')]=_0x10676b[_0x1a008b('0x134')],_0x368779;}Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x1ab')]=function(){const _0x18a609=this;setInterval(function(){const _0xfe8a78=a1057_0x5c3f;_0x18a609[_0xfe8a78('0x84')](_0x18a609[_0xfe8a78('0x22')],_0xfe8a78('0x167')),_0x18a609[_0xfe8a78('0x84')](_0x18a609[_0xfe8a78('0x68')],_0xfe8a78('0xdc'));},0x32c8);},Dialer[_0x2fe8b4('0x11a')]['clearZombieChannels']=function(_0x596aad,_0xd44e93){const _0x4a1153=_0x2fe8b4,_0x3ae7ab=this;for(const _0x523405 in _0x596aad){typeof _0x596aad[_0x523405]!==_0x4a1153('0xf7')&&this[_0x4a1153('0x115')][_0x4a1153('0xa5')](function(){const _0x2e6e71=_0x4a1153;if(!_[_0x2e6e71('0x7d')](_0x596aad[_0x523405]))return ami[_0x2e6e71('0x7e')]({'action':'status','channel':_0x596aad[_0x523405][_0x2e6e71('0x1fd')]})[_0x2e6e71('0x19a')](function(_0x132c54){const _0x250bcf=_0x2e6e71;_0x132c54[_0x250bcf('0xaf')]==='No\x20such\x20channel'&&setTimeout(function(){const _0x47840f=_0x250bcf;_0x596aad[_0x523405]&&_0x596aad[_0x523405][_0x47840f('0x29')]!==_0x47840f('0x1d4')&&(_0x3ae7ab['updateOriginated'](_0x3ae7ab[_0x47840f('0x3d')][_0x596aad[_0x523405][_0x47840f('0x15d')]]),logger[_0x47840f('0x21')]('[Dialer][checkChannel]',_0xd44e93,_0x523405,_0x596aad[_0x523405]['queue']),delete _0x596aad[_0x523405]),_0x596aad[_0x523405]&&_0x596aad[_0x523405][_0x47840f('0x29')]===_0x47840f('0x1d4')&&(_0x3ae7ab[_0x47840f('0x112')](_0x3ae7ab[_0x47840f('0x18')][_0x596aad[_0x523405]['queue']]),logger[_0x47840f('0x21')]('[Dialer][checkChannel][ivr]',_0xd44e93,_0x523405,_0x596aad[_0x523405]['queue']),delete _0x596aad[_0x523405]);},0x2328);});});}},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x1f0')]=function(_0x31171f){const _0x3b7d31=_0x2fe8b4;return Promise[_0x3b7d31('0x159')]()[_0x3b7d31('0x16e')](cmHopper[_0x3b7d31('0x1f0')](_0x31171f))['catch'](loggerCatch('[countReScheduled]\x20'));},Dialer[_0x2fe8b4('0x11a')]['checkIsBlackList']=function(_0x539706){const _0x29df0f=_0x2fe8b4;return Promise[_0x29df0f('0x159')]()['then'](cmHopperBlack[_0x29df0f('0x1e8')](_0x539706))[_0x29df0f('0x19a')](loggerCatch('[checkIsBlackList]\x20'));},Dialer['prototype']['checkIsBlackListIvr']=function(_0x123bfd){const _0x4ad813=_0x2fe8b4;return Promise['resolve']()['then'](cmHopperBlack[_0x4ad813('0x153')](_0x123bfd))[_0x4ad813('0x19a')](loggerCatch(_0x4ad813('0x1f4')));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0xc5')]=function(_0x2fa722){const _0x2077e4=_0x2fe8b4;return Promise[_0x2077e4('0x159')]()[_0x2077e4('0x16e')](cmHopperHistory[_0x2077e4('0x197')](_0x2fa722))['catch'](loggerCatch('[averageHandleTime]\x20'));},Dialer['prototype'][_0x2fe8b4('0x8c')]=function(_0x22de9f){const _0xaade88=_0x2fe8b4;return Promise['resolve']()[_0xaade88('0x16e')](cmHopper[_0xaade88('0x8c')](_0x22de9f))[_0xaade88('0x19a')](loggerCatch('[rescheduleContact]\x20'));},Dialer['prototype'][_0x2fe8b4('0x1ad')]=function(_0x4b48a7,_0x22ae16,_0x2a0346){const _0x1bd4a8=_0x2fe8b4;return Promise[_0x1bd4a8('0x159')]()[_0x1bd4a8('0x16e')](cmHopper[_0x1bd4a8('0x1ad')](_0x4b48a7,_0x22ae16,_0x2a0346))[_0x1bd4a8('0x19a')](loggerCatch(_0x1bd4a8('0x13f')));},Dialer['prototype']['getContactDialer']=function(_0x540ae6,_0x568733,_0x1c6627,_0x42f49d){const _0x53f0a5=_0x2fe8b4;return Promise[_0x53f0a5('0x159')]()[_0x53f0a5('0x16e')](cmHopper[_0x53f0a5('0x9')](_0x540ae6,_0x568733,_0x1c6627,_0x42f49d))[_0x53f0a5('0x19a')](loggerCatch('[getContactDialer]\x20'));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x173')]=function(_0x537507,_0x4a5173,_0x276a86){const _0x128ed=_0x2fe8b4;return Promise[_0x128ed('0x159')]()[_0x128ed('0x16e')](cmHopper[_0x128ed('0x173')](_0x537507,_0x4a5173,_0x276a86))[_0x128ed('0x19a')](loggerCatch(_0x128ed('0x89')));},Dialer[_0x2fe8b4('0x11a')]['getVoiceQueueRtPauses']=function(_0x15c022){const _0x12ecb2=_0x2fe8b4;return Promise[_0x12ecb2('0x159')]()['then'](voiceQueueRt[_0x12ecb2('0x16d')](_0x15c022))[_0x12ecb2('0x19a')](loggerCatch(_0x12ecb2('0xea')));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x14')]=function(_0x13b66c){const _0xd31890=_0x2fe8b4;return Promise[_0xd31890('0x159')]()[_0xd31890('0x16e')](cmHopper[_0xd31890('0x14')](_0x13b66c))[_0xd31890('0x19a')](loggerCatch('[moveContactManagedDialer]\x20'));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x17f')]=function(_0x202bd1){const _0x4b0025=_0x2fe8b4;return Promise['resolve']()[_0x4b0025('0x16e')](cmHopperHistory[_0x4b0025('0x17f')](_0x202bd1))['catch'](loggerCatch(_0x4b0025('0xee')));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x112')]=function(_0x17b399){const _0x364e06=_0x2fe8b4;!_[_0x364e06('0x54')](_0x17b399)&&_0x17b399!==null?typeof _0x17b399[_0x364e06('0x57')]!==_0x364e06('0xf7')&&(_0x17b399[_0x364e06('0x57')]>0x0?_0x17b399[_0x364e06('0x57')]-=0x1:logger['error'](_0x364e06('0x1d7'))):logger['error'](_0x364e06('0x149'));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x93')]=function(_0x1b1f0e,_0x38c135){const _0x6424ce=this;return function(_0x4555e2){const _0x7a4cf9=a1057_0x5c3f;_0x6424ce[_0x7a4cf9('0x112')](_0x38c135),logger['error'](_0x1b1f0e,util[_0x7a4cf9('0x146')](_0x4555e2,{'showHidden':![],'depth':null}));};},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0xfe')]=function(_0x25d0dd,_0x4da85a,_0x2a8317){const _0x61c044=_0x2fe8b4,_0x41618c={'state':0x19,'statedesc':'notFound'};this[_0x61c044('0x112')](_0x4da85a),this['saveInDb'](_['merge'](_0x41618c,_['pick'](_0x2a8317,[_0x61c044('0x75'),_0x61c044('0xd3'),'UserId','VoiceQueueId',_0x61c044('0x1a')])),_0x61c044('0xcc'),_0x61c044('0xa2')),logger['error'](_0x25d0dd);},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x178')]=function(_0x5411dc){const _0x2d9009=_0x2fe8b4;return _0x5411dc===_0x2d9009('0x67');},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x91')]=function(_0x19e511){const _0x414ac6=_0x2fe8b4;return!_[_0x414ac6('0x54')](_0x19e511)&&_0x19e511&&!_[_0x414ac6('0x54')](_0x19e511[_0x414ac6('0x12c')])&&!_[_0x414ac6('0x54')](_0x19e511['active'])&&_0x19e511[_0x414ac6('0xed')]&&(this[_0x414ac6('0x171')][util[_0x414ac6('0xbe')](_0x414ac6('0x1e4'),_0x19e511[_0x414ac6('0x12c')])][_0x414ac6('0x124')]===_0x414ac6('0x143')||this[_0x414ac6('0x171')][util[_0x414ac6('0xbe')]('SIP/%s',_0x19e511[_0x414ac6('0x12c')])][_0x414ac6('0x124')]===_0x414ac6('0x73'));},Dialer[_0x2fe8b4('0x11a')]['saveInDb']=function(_0x283774,_0x2260c1,_0x5bb655){const _0x52288e=_0x2fe8b4;this['createHistory'](_0x283774)[_0x52288e('0x19a')](loggerCatch(_0x2260c1)),this[_0x52288e('0x14')](_0x283774)[_0x52288e('0x19a')](loggerCatch(_0x5bb655));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x104')]=function(_0x29804b){const _0x42707d=_0x2fe8b4,_0x5be4f0=this[_0x42707d('0x22')][_0x29804b['uniqueid']];let _0x48d22c;if(!_[_0x42707d('0x7d')](_0x29804b)&&!_[_0x42707d('0x7d')](_0x29804b['variable'])&&!_['isNil'](_0x29804b['variable']['amdstatus'])&&_0x29804b[_0x42707d('0x193')]===_0x42707d('0xcf')&&_0x5be4f0){_0x5be4f0[_0x42707d('0x29')]!==_0x42707d('0x1d4')&&this[_0x42707d('0x3d')][_0x5be4f0[_0x42707d('0x15d')]][_0x42707d('0x116')]&&_0x29804b[_0x42707d('0x52')]==='HANGUP'&&(delete this[_0x42707d('0x22')][_0x29804b[_0x42707d('0x94')]],this[_0x42707d('0x112')](this[_0x42707d('0x3d')][_0x5be4f0['queue']]),this[_0x42707d('0x3d')][_0x5be4f0[_0x42707d('0x15d')]][_0x42707d('0x1a3')]+=0x1,this[_0x42707d('0x3d')][_0x5be4f0[_0x42707d('0x15d')]][_0x42707d('0xf')]+=0x1,_0x48d22c=new Hangup(_0x5be4f0,_0x29804b),_0x48d22c[_0x42707d('0x3b')]=0x12,_0x48d22c[_0x42707d('0x12a')]='HangupInAMD',_0x48d22c['membername']=_0x42707d('0x4d'),this[_0x42707d('0xaa')](_0x48d22c,_0x42707d('0x5d'),_0x42707d('0x6')));if(_0x5be4f0[_0x42707d('0x29')]!==_0x42707d('0x1d4')&&this['voiceQueues'][_0x5be4f0[_0x42707d('0x15d')]]['dialAMDActive']&&_0x29804b[_0x42707d('0x52')]==='MACHINE'){const _0x10d9fe=this;return new Promise(function(_0x49426f,_0x838125){const _0x1c2ab1=_0x42707d;delete _0x10d9fe[_0x1c2ab1('0x22')][_0x29804b[_0x1c2ab1('0x94')]],_0x10d9fe[_0x1c2ab1('0x112')](_0x10d9fe['voiceQueues'][_0x5be4f0[_0x1c2ab1('0x15d')]]),_0x10d9fe['voiceQueues'][_0x5be4f0['queue']][_0x1c2ab1('0x1a3')]+=0x1,_0x10d9fe[_0x1c2ab1('0x3d')][_0x5be4f0['queue']]['outboundAnswerAgiCallsDay']+=0x1;const _0x123ae0=_0x10d9fe[_0x1c2ab1('0x3d')][_0x5be4f0[_0x1c2ab1('0x15d')]],_0x4d1d6b=new Hangup(_0x5be4f0,_0x29804b);_0x4d1d6b[_0x1c2ab1('0x3b')]=0x13,_0x4d1d6b[_0x1c2ab1('0x12a')]=_0x1c2ab1('0x9b'),_0x4d1d6b[_0x1c2ab1('0x1b7')]=_0x1c2ab1('0x4d'),_0x4d1d6b['countmachineretry']+=0x1,_0x4d1d6b[_0x1c2ab1('0x14c')]+=0x1,_0x4d1d6b[_0x1c2ab1('0x185')]=!![],_0x10d9fe[_0x1c2ab1('0x17f')](_0x4d1d6b)[_0x1c2ab1('0x19a')](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x4d1d6b[_0x1c2ab1('0x157')]+_0x4d1d6b['countcongestionretry']+_0x4d1d6b[_0x1c2ab1('0x1d2')]+_0x4d1d6b['countnosuchnumberretry']+_0x4d1d6b['countdropretry']+_0x4d1d6b[_0x1c2ab1('0x187')]+_0x4d1d6b[_0x1c2ab1('0x162')]+_0x4d1d6b[_0x1c2ab1('0x10b')]>=_0x123ae0[_0x1c2ab1('0xbd')]?_0x10d9fe[_0x1c2ab1('0x28')](_0x4d1d6b,_0x49426f,_0x838125,_0x1c2ab1('0x113')):_0x4d1d6b[_0x1c2ab1('0x162')]>=_0x123ae0[_0x1c2ab1('0x1f1')]?_0x10d9fe[_0x1c2ab1('0x182')](_0x4d1d6b,_0x49426f,_0x838125,'reason\x2019\x20machine....'):(_0x10d9fe[_0x1c2ab1('0x8c')]({'active':![],'countmachineretry':_0x4d1d6b[_0x1c2ab1('0x162')],'scheduledat':moment()[_0x1c2ab1('0x1dd')](_0x123ae0[_0x1c2ab1('0x1c7')],_0x1c2ab1('0x200'))[_0x1c2ab1('0xbe')](_0x1c2ab1('0x194')),'ContactId':_0x4d1d6b[_0x1c2ab1('0x75')],'ListId':_0x4d1d6b[_0x1c2ab1('0xd3')],'VoiceQueueId':_0x4d1d6b[_0x1c2ab1('0x1f9')]||undefined,'CampaignId':_0x4d1d6b[_0x1c2ab1('0x1a')]||undefined})['catch'](loggerCatch(_0x1c2ab1('0xbc'))),_0x49426f({'reschedule':0x1}));});}_0x5be4f0[_0x42707d('0x29')]===_0x42707d('0x1d4')&&this[_0x42707d('0x18')][_0x5be4f0[_0x42707d('0x15d')]][_0x42707d('0x116')]&&_0x29804b[_0x42707d('0x52')]==='HANGUP'&&(delete this[_0x42707d('0x22')][_0x29804b[_0x42707d('0x94')]],this['updateOriginated'](this[_0x42707d('0x18')][_0x5be4f0['queue']]),_0x48d22c=new Hangup(_0x5be4f0,_0x29804b),_0x48d22c[_0x42707d('0x3b')]=0x12,_0x48d22c[_0x42707d('0x12a')]='HangupInAMD',_0x48d22c['membername']=_0x42707d('0x4d'),this[_0x42707d('0xaa')](_0x48d22c,'[syncHangupInAMDIvr][createHistory]','[syncHangupInAMDIvr]'));if(_0x5be4f0[_0x42707d('0x29')]===_0x42707d('0x1d4')&&this[_0x42707d('0x18')][_0x5be4f0[_0x42707d('0x15d')]][_0x42707d('0x116')]&&_0x29804b[_0x42707d('0x52')]==='MACHINE'){const _0x12f925=this;return new Promise(function(_0x4d2580,_0x524ccc){const _0x1d9fdc=_0x42707d;delete _0x12f925[_0x1d9fdc('0x22')][_0x29804b[_0x1d9fdc('0x94')]],_0x12f925[_0x1d9fdc('0x112')](_0x12f925[_0x1d9fdc('0x18')][_0x5be4f0[_0x1d9fdc('0x15d')]]),_0x12f925[_0x1d9fdc('0x18')][_0x5be4f0[_0x1d9fdc('0x15d')]][_0x1d9fdc('0x1a3')]+=0x1,_0x12f925[_0x1d9fdc('0x18')][_0x5be4f0[_0x1d9fdc('0x15d')]]['outboundAnswerAgiCallsDay']+=0x1;const _0x56898d=_0x12f925['campaigns'][_0x5be4f0[_0x1d9fdc('0x15d')]],_0x35ea98=new Hangup(_0x5be4f0,_0x29804b);_0x35ea98['state']=0x13,_0x35ea98['statedesc']=_0x1d9fdc('0x9b'),_0x35ea98[_0x1d9fdc('0x1b7')]='AMD',_0x35ea98[_0x1d9fdc('0x162')]+=0x1,_0x35ea98[_0x1d9fdc('0x14c')]+=0x1,_0x35ea98[_0x1d9fdc('0x185')]=!![],_0x12f925[_0x1d9fdc('0x17f')](_0x35ea98)[_0x1d9fdc('0x19a')](loggerCatch('[syncAgentComplete][createHistory][0]')),_0x35ea98['countbusyretry']+_0x35ea98[_0x1d9fdc('0xc8')]+_0x35ea98['countnoanswerretry']+_0x35ea98[_0x1d9fdc('0x1b2')]+_0x35ea98[_0x1d9fdc('0x198')]+_0x35ea98[_0x1d9fdc('0x187')]+_0x35ea98[_0x1d9fdc('0x162')]+_0x35ea98[_0x1d9fdc('0x10b')]>=_0x56898d[_0x1d9fdc('0xbd')]?_0x12f925[_0x1d9fdc('0x28')](_0x35ea98,_0x4d2580,_0x524ccc,'reason19\x20machine....'):_0x35ea98['countmachineretry']>=_0x56898d[_0x1d9fdc('0x1f1')]?_0x12f925[_0x1d9fdc('0x182')](_0x35ea98,_0x4d2580,_0x524ccc,_0x1d9fdc('0x8b')):(_0x12f925['rescheduleContact']({'active':![],'countmachineretry':_0x35ea98[_0x1d9fdc('0x162')],'scheduledat':moment()['add'](_0x56898d[_0x1d9fdc('0x1c7')],_0x1d9fdc('0x200'))[_0x1d9fdc('0xbe')]('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x35ea98['ContactId'],'ListId':_0x35ea98['ListId'],'VoiceQueueId':_0x35ea98['VoiceQueueId']||undefined,'CampaignId':_0x35ea98[_0x1d9fdc('0x1a')]||undefined})[_0x1d9fdc('0x19a')](loggerCatch(_0x1d9fdc('0xbc'))),_0x4d2580({'reschedule':0x1}));});}}},Dialer['prototype']['syncHangup']=function(_0x50709c){const _0x30dd0a=_0x2fe8b4,_0x418e46=this[_0x30dd0a('0x22')][_0x50709c[_0x30dd0a('0x94')]];let _0x18ed2e;_0x418e46&&_0x418e46[_0x30dd0a('0x29')]===_0x30dd0a('0x1d4')&&(delete this[_0x30dd0a('0x22')][_0x50709c[_0x30dd0a('0x94')]],this['updateOriginated'](this[_0x30dd0a('0x18')][_0x418e46[_0x30dd0a('0x15d')]]),this[_0x30dd0a('0x18')][_0x418e46[_0x30dd0a('0x15d')]][_0x30dd0a('0x10')]+=0x1,_0x18ed2e=new Hangup(_0x418e46,_0x50709c),this[_0x30dd0a('0x17f')](_0x18ed2e)[_0x30dd0a('0x19a')](loggerCatch('[syncHangupIvr][createHistory]')),this[_0x30dd0a('0x14')](_0x18ed2e)[_0x30dd0a('0x19a')](loggerCatch('[syncHangupIvr]'))),_0x418e46&&_0x418e46['type']!==_0x30dd0a('0x1d4')&&isNotNull(this[_0x30dd0a('0x3d')][_0x418e46[_0x30dd0a('0x15d')]][_0x30dd0a('0xf6')])&&(delete this[_0x30dd0a('0x22')][_0x50709c['uniqueid']],this['updateOriginated'](this[_0x30dd0a('0x3d')][_0x418e46[_0x30dd0a('0x15d')]]),this[_0x30dd0a('0x3d')][_0x418e46['queue']][_0x30dd0a('0x1a3')]+=0x1,this[_0x30dd0a('0x3d')][_0x418e46[_0x30dd0a('0x15d')]]['outboundAnswerAgiCallsDay']+=0x1,_0x18ed2e=new Hangup(_0x418e46,_0x50709c),_0x18ed2e[_0x30dd0a('0x3b')]=0x10,_0x18ed2e[_0x30dd0a('0x12a')]=_0x30dd0a('0x147'),_0x18ed2e[_0x30dd0a('0x1b7')]='AGI',this[_0x30dd0a('0x17f')](_0x18ed2e)[_0x30dd0a('0x19a')](loggerCatch(_0x30dd0a('0xf2'))),this[_0x30dd0a('0x14')](_0x18ed2e)[_0x30dd0a('0x19a')](loggerCatch(_0x30dd0a('0xdf')))),_0x418e46&&_0x418e46[_0x30dd0a('0x29')]!==_0x30dd0a('0x1d4')&&!isNotNull(this[_0x30dd0a('0x3d')][_0x418e46['queue']][_0x30dd0a('0xf6')])&&(delete this[_0x30dd0a('0x22')][_0x50709c[_0x30dd0a('0x94')]],this[_0x30dd0a('0x112')](this[_0x30dd0a('0x3d')][_0x418e46[_0x30dd0a('0x15d')]]),this[_0x30dd0a('0x3d')][_0x418e46[_0x30dd0a('0x15d')]]['outboundUnknownCallsDay']+=0x1,_0x18ed2e=new Hangup(_0x418e46,_0x50709c),_0x18ed2e[_0x30dd0a('0x3b')]=0xc,_0x18ed2e[_0x30dd0a('0x12a')]=_0x50709c[_0x30dd0a('0x206')],_0x18ed2e['membername']=_0x30dd0a('0x5c'),this['createHistory'](_0x18ed2e)[_0x30dd0a('0x19a')](loggerCatch(_0x30dd0a('0xf2'))),this[_0x30dd0a('0x14')](_0x18ed2e)[_0x30dd0a('0x19a')](loggerCatch(_0x30dd0a('0xdf'))));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0xe4')]=function(_0x205fbe){const _0x44bf0d=_0x2fe8b4,_0x224400=this['uniqueId'][_0x205fbe['uniqueid']];if(this[_0x44bf0d('0x3d')][_0x205fbe[_0x44bf0d('0x15d')]]){if(_0x224400&&_0x224400['type']!==_0x44bf0d('0x1d4')){delete this[_0x44bf0d('0x22')][_0x205fbe[_0x44bf0d('0x94')]],this[_0x44bf0d('0x3d')][_0x205fbe['queue']][_0x44bf0d('0x1a3')]+=0x1;const _0x58e2ae=new AgentComplete(_0x224400,_0x205fbe);_0x205fbe[_0x44bf0d('0x1ce')]===_0x44bf0d('0x18a')&&(_0x58e2ae[_0x44bf0d('0x165')]=this[_0x44bf0d('0x3d')][_0x205fbe[_0x44bf0d('0x15d')]]['dialQueueProject2']&&this[_0x44bf0d('0x3d')][_0x205fbe[_0x44bf0d('0x15d')]][_0x44bf0d('0x3')]?moment()[_0x44bf0d('0xbe')](_0x44bf0d('0x194')):undefined),this[_0x44bf0d('0x17f')](_0x58e2ae)[_0x44bf0d('0x19a')](loggerCatch(_0x44bf0d('0x18d'))),this[_0x44bf0d('0x14')](_0x58e2ae)[_0x44bf0d('0x19a')](loggerCatch(_0x44bf0d('0x30')));}}},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x186')]=function(_0x585e6a){const _0x3c4e1c=_0x2fe8b4;this[_0x3c4e1c('0x3d')][_0x585e6a['queue']]&&(this['uniqueId'][_0x585e6a[_0x3c4e1c('0x94')]]&&this['uniqueId'][_0x585e6a[_0x3c4e1c('0x94')]][_0x3c4e1c('0x29')]!==_0x3c4e1c('0x1d4')&&(this[_0x3c4e1c('0x112')](this['voiceQueues'][_0x585e6a[_0x3c4e1c('0x15d')]]),this[_0x3c4e1c('0x22')][_0x585e6a[_0x3c4e1c('0x94')]]['answertime']=moment()[_0x3c4e1c('0xbe')](_0x3c4e1c('0x194'))));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x14a')]=function(_0x4f6011){const _0xda0b0=_0x2fe8b4;this[_0xda0b0('0x17f')](_0x4f6011)[_0xda0b0('0x19a')](loggerCatch('[syncAgentComplete][createHistory]')),this[_0xda0b0('0x14')](_0x4f6011)[_0xda0b0('0x19a')](loggerCatch('[syncQueueCallerAbandon]\x20[Drop]'));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x1a4')]=function(_0x5415dd){const _0x1fc47d=_0x2fe8b4,_0x5b4bc8=this['uniqueId'][_0x5415dd[_0x1fc47d('0x94')]];if(this[_0x1fc47d('0x3d')][_0x5415dd[_0x1fc47d('0x15d')]]){if(_0x5b4bc8&&_0x5b4bc8[_0x1fc47d('0x29')]!=='ivr'){delete this[_0x1fc47d('0x22')][_0x5415dd[_0x1fc47d('0x94')]],this['updateOriginated'](this[_0x1fc47d('0x3d')][_0x5415dd[_0x1fc47d('0x15d')]]),_0x5b4bc8[_0x1fc47d('0x4c')]=moment()[_0x1fc47d('0xbe')]('YYYY-MM-DD\x20HH:mm:ss');const _0x5a0746=new QueueCallerAbandon(_0x5b4bc8,_0x5415dd);if(getSeconds(_0x5b4bc8[_0x1fc47d('0x4c')],_0x5b4bc8[_0x1fc47d('0xfa')])>=_0x5b4bc8[_0x1fc47d('0x1bd')]){this['voiceQueues'][_0x5415dd[_0x1fc47d('0x15d')]][_0x1fc47d('0xb6')]+=0x1,this[_0x1fc47d('0x3d')][_0x5415dd['queue']][_0x1fc47d('0x1be')]+=0x1,this['voiceQueues'][_0x5415dd[_0x1fc47d('0x15d')]][_0x1fc47d('0x7b')]+=0x1,_0x5a0746[_0x1fc47d('0x3b')]=0xa,_0x5a0746[_0x1fc47d('0x12a')]='Drop',_0x5a0746['dropreason']='TIMEOUT',_0x5a0746['agiafterat']=this[_0x1fc47d('0x3d')][_0x5415dd[_0x1fc47d('0x15d')]][_0x1fc47d('0x16c')]?moment()[_0x1fc47d('0xbe')](_0x1fc47d('0x194')):undefined,_0x5a0746[_0x1fc47d('0x198')]+=0x1,_0x5a0746[_0x1fc47d('0x14c')]+=0x1;if(_0x5a0746[_0x1fc47d('0x198')]>=this['voiceQueues'][_0x5415dd[_0x1fc47d('0x15d')]][_0x1fc47d('0xfb')])this[_0x1fc47d('0x14a')](_0x5a0746);else{this['rescheduleContact']({'active':![],'countdropretry':_0x5a0746[_0x1fc47d('0x198')],'scheduledat':moment()[_0x1fc47d('0x1dd')](this[_0x1fc47d('0x3d')][_0x5415dd[_0x1fc47d('0x15d')]][_0x1fc47d('0x170')],_0x1fc47d('0x200'))[_0x1fc47d('0xbe')](_0x1fc47d('0x194')),'ContactId':_0x5b4bc8[_0x1fc47d('0x75')],'ListId':_0x5b4bc8[_0x1fc47d('0xd3')],'VoiceQueueId':_0x5b4bc8[_0x1fc47d('0x1f9')]||undefined,'CampaignId':_0x5b4bc8['CampaignId']||undefined})['catch'](loggerCatch('[rescheduleContact][Drop]'));const _0x134a93=new History(_0x5a0746);_0x134a93[_0x1fc47d('0x3b')]=0xa,_0x134a93[_0x1fc47d('0x12a')]=_0x1fc47d('0xe8'),_0x134a93[_0x1fc47d('0x134')]=moment()[_0x1fc47d('0xbe')](_0x1fc47d('0x194')),_0x134a93[_0x1fc47d('0x138')]=_0x134a93[_0x1fc47d('0x134')],_0x134a93[_0x1fc47d('0x201')]=_0x5a0746[_0x1fc47d('0x201')],_0x134a93[_0x1fc47d('0x180')]=_0x5a0746[_0x1fc47d('0x180')],this[_0x1fc47d('0x17f')](_0x134a93)[_0x1fc47d('0x19a')](loggerCatch(_0x1fc47d('0x51')));}}else{this['voiceQueues'][_0x5415dd['queue']][_0x1fc47d('0x109')]+=0x1,this[_0x1fc47d('0x3d')][_0x5415dd['queue']][_0x1fc47d('0x1d3')]+=0x1,_0x5a0746[_0x1fc47d('0x3b')]=0xb,_0x5a0746[_0x1fc47d('0x12a')]=_0x1fc47d('0x1c6'),_0x5a0746[_0x1fc47d('0x1d1')]='CALLEREXIT',_0x5a0746[_0x1fc47d('0x187')]+=0x1,_0x5a0746[_0x1fc47d('0x14c')]+=0x1;if(_0x5a0746[_0x1fc47d('0x187')]>=this[_0x1fc47d('0x3d')][_0x5415dd['queue']][_0x1fc47d('0xec')])this[_0x1fc47d('0x14a')](_0x5a0746);else{this[_0x1fc47d('0x8c')]({'active':![],'countabandonedretry':_0x5a0746[_0x1fc47d('0x187')],'scheduledat':moment()[_0x1fc47d('0x1dd')](this['voiceQueues'][_0x5415dd[_0x1fc47d('0x15d')]][_0x1fc47d('0x6f')],'minutes')[_0x1fc47d('0xbe')](_0x1fc47d('0x194')),'ContactId':_0x5b4bc8[_0x1fc47d('0x75')],'ListId':_0x5b4bc8[_0x1fc47d('0xd3')],'VoiceQueueId':_0x5b4bc8[_0x1fc47d('0x1f9')]||undefined,'CampaignId':_0x5b4bc8[_0x1fc47d('0x1a')]||undefined})[_0x1fc47d('0x19a')](loggerCatch('[rescheduleContact][Abandoned]'));const _0x4938f0=new History(_0x5a0746);_0x4938f0[_0x1fc47d('0x3b')]=0xb,_0x4938f0[_0x1fc47d('0x12a')]=_0x1fc47d('0x1c6'),_0x4938f0[_0x1fc47d('0x134')]=moment()[_0x1fc47d('0xbe')](_0x1fc47d('0x194')),_0x4938f0[_0x1fc47d('0x138')]=_0x4938f0['starttime'],_0x4938f0['calleridname']=_0x5a0746[_0x1fc47d('0x201')],_0x4938f0[_0x1fc47d('0x180')]=_0x5a0746[_0x1fc47d('0x180')],this[_0x1fc47d('0x17f')](_0x4938f0)[_0x1fc47d('0x19a')](loggerCatch(_0x1fc47d('0x8d')));}}}}},Dialer['prototype']['syncNewExten']=function(_0x2a6ade){const _0x13c9c9=_0x2fe8b4;this[_0x13c9c9('0x68')][_0x2a6ade['uniqueid']]&&(this[_0x13c9c9('0x68')][_0x2a6ade[_0x13c9c9('0x94')]][_0x13c9c9('0x1fd')]=_0x2a6ade['channel']),this[_0x13c9c9('0x22')][_0x2a6ade[_0x13c9c9('0x94')]]&&(this[_0x13c9c9('0x22')][_0x2a6ade[_0x13c9c9('0x94')]]['channel']=_0x2a6ade[_0x13c9c9('0x1fd')]);},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0xa7')]=function(_0xa84060){const _0x6d9bf6=_0x2fe8b4;if(strategy[this[_0x6d9bf6('0x3d')][this[_0x6d9bf6('0x68')][_0xa84060[_0x6d9bf6('0x7f')]][_0x6d9bf6('0x15d')]][_0x6d9bf6('0x191')]]===_0x6d9bf6('0x87'))this[_0x6d9bf6('0x68')][_0xa84060['actionid']]&&_[_0x6d9bf6('0x7d')](this[_0x6d9bf6('0x68')][_0xa84060['actionid']][_0x6d9bf6('0x26')])&&_0xa84060[_0x6d9bf6('0x124')]==='1'&&_0xa84060['paused']==='0'&&(this[_0x6d9bf6('0x208')][_0xa84060[_0x6d9bf6('0x123')]]&&(!this[_0x6d9bf6('0x208')][_0xa84060[_0x6d9bf6('0x123')]][_0x6d9bf6('0x26')]&&(this[_0x6d9bf6('0x208')][_0xa84060['stateinterface']][_0x6d9bf6('0x26')]=!![],this[_0x6d9bf6('0x68')][_0xa84060['actionid']][_0x6d9bf6('0x26')]=!![],this[_0x6d9bf6('0x68')][_0xa84060[_0x6d9bf6('0x7f')]][_0x6d9bf6('0x123')]=_0xa84060['stateinterface'])));else(strategy[this['voiceQueues'][this[_0x6d9bf6('0x68')][_0xa84060[_0x6d9bf6('0x7f')]]['queue']][_0x6d9bf6('0x191')]]||_0x6d9bf6('0x1cf'))===_0x6d9bf6('0x1cf')&&(this['actions'][_0xa84060[_0x6d9bf6('0x7f')]]&&(this[_0x6d9bf6('0x208')][_0xa84060[_0x6d9bf6('0x123')]]&&(this[_0x6d9bf6('0x68')][_0xa84060[_0x6d9bf6('0x7f')]][_0x6d9bf6('0x123')]=_0xa84060[_0x6d9bf6('0x123')],_[_0x6d9bf6('0x7d')](this[_0x6d9bf6('0x1f')][this[_0x6d9bf6('0x68')][_0xa84060[_0x6d9bf6('0x7f')]][_0x6d9bf6('0x15d')]])&&(this[_0x6d9bf6('0x1f')][this['actions'][_0xa84060[_0x6d9bf6('0x7f')]][_0x6d9bf6('0x15d')]]=[]),this[_0x6d9bf6('0x1f')][this[_0x6d9bf6('0x68')][_0xa84060[_0x6d9bf6('0x7f')]][_0x6d9bf6('0x15d')]][_0x6d9bf6('0x11')](_[_0x6d9bf6('0x7a')](_['pick'](this[_0x6d9bf6('0x68')][_0xa84060[_0x6d9bf6('0x7f')]],[_0x6d9bf6('0x136'),_0x6d9bf6('0x123')]),{'status':_0xa84060[_0x6d9bf6('0x124')],'paused':_0xa84060[_0x6d9bf6('0xb1')]})))));};function unlockQueueStatus(_0x190ee8,_0x193646){setTimeout(function(){const _0x258c75=a1057_0x5c3f;_[_0x258c75('0x54')](_0x190ee8[_0x258c75('0x49')])&&loggerBooked[_0x258c75('0x21')](_0x258c75('0x1d5'),_0x193646),_0x190ee8[_0x258c75('0x49')]=!![],loggerBooked['info'](_0x258c75('0x1bb'),_0x193646,JSON['stringify'](_['pick'](_0x190ee8,['name',_0x258c75('0x49')])));},0x1f3);}Dialer[_0x2fe8b4('0x11a')]['syncQueueStatusComplete']=function(_0x360deb){const _0x4f2f26=_0x2fe8b4,_0xb983af=this,_0x4d370b=_0xb983af[_0x4f2f26('0x3d')][_0xb983af[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]];if(strategy[this[_0x4f2f26('0x3d')][this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]][_0x4f2f26('0x191')]]==='roundrobin')this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]]&&this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]]['stateinterface']?this[_0x4f2f26('0x19d')][_0x4f2f26('0xf9')](this['actions'][_0x360deb['actionid']][_0x4f2f26('0x136')],this[_0x4f2f26('0x68')][_0x360deb['actionid']][_0x4f2f26('0x123')])[_0x4f2f26('0x19a')](function(_0x2cc2aa){const _0x2f1570=_0x4f2f26;logger[_0x2f1570('0x21')]('[Catch][Preview][syncQueueStatusComplete]',util[_0x2f1570('0x146')](_0x2cc2aa,{'showHidden':![],'depth':null}));})['finally'](function(){const _0x4e5826=_0x4f2f26;_0xb983af['updateOriginated'](_0xb983af['voiceQueues'][_0xb983af[_0x4e5826('0x68')][_0x360deb[_0x4e5826('0x7f')]]['queue']]),_0xb983af[_0x4e5826('0x208')][_0xb983af['actions'][_0x360deb[_0x4e5826('0x7f')]][_0x4e5826('0x123')]][_0x4e5826('0x26')]=![],delete _0xb983af['actions'][_0x360deb[_0x4e5826('0x7f')]],unlockQueueStatus(_0x4d370b);}):(this[_0x4f2f26('0x112')](this[_0x4f2f26('0x3d')][this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]]),this['rescheduleContact']({'active':![],'ContactId':this['actions'][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x75')],'ListId':this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0xd3')],'VoiceQueueId':this[_0x4f2f26('0x68')][_0x360deb['actionid']]['VoiceQueueId']||undefined,'CampaignId':this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]]['CampaignId']||undefined})[_0x4f2f26('0x19a')](loggerCatch(_0x4f2f26('0xa1'))),delete this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]],unlockQueueStatus(_0x4d370b));else{if((strategy[this[_0x4f2f26('0x3d')][this['actions'][_0x360deb['actionid']][_0x4f2f26('0x15d')]][_0x4f2f26('0x191')]]||'rrmemory')===_0x4f2f26('0x1cf')){let _0x4df63e;if(this['actions'][_0x360deb[_0x4f2f26('0x7f')]]&&!_[_0x4f2f26('0x13')](this['queueBooked'][this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]])){this[_0x4f2f26('0x85')][_0xb983af[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]]&&(this['queueBookedRR'][_0xb983af[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]]=this[_0x4f2f26('0x85')][this['actions'][_0x360deb[_0x4f2f26('0x7f')]]['queue']]?this[_0x4f2f26('0x85')][this[_0x4f2f26('0x68')][_0x360deb['actionid']][_0x4f2f26('0x15d')]]:this['queueBooked'][this[_0x4f2f26('0x68')][_0x360deb['actionid']]['queue']]?this[_0x4f2f26('0x1f')][this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]][_0x4f2f26('0x1ee')]||0x0:0x0);this[_0x4f2f26('0x1f')][this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]][_0x4f2f26('0x1ee')]=this['queueBookedRR'][this[_0x4f2f26('0x68')][_0x360deb[_0x4f2f26('0x7f')]][_0x4f2f26('0x15d')]];for(let _0x158d28=0x0;_0x158d28=0x0?!![]:![];})['catch'](myreject(_0x56d7a7)));}else _0x4e48d0[_0x4b6c87('0x11')](ami[_0x4b6c87('0x7e')]({'action':_0x4b6c87('0x108'),'command':util[_0x4b6c87('0xbe')]('iftime\x20%s,%s',_0x2e18a8,!_[_0x4b6c87('0x54')](config['timezones'][_0x29a152])?_0x29a152:'')})[_0x4b6c87('0x16e')](function(_0x25085c){const _0x2fd4cc=_0x4b6c87;return _0x25085c[_0x2fd4cc('0x132')][_0x2fd4cc('0x15a')](_0x2fd4cc('0x1b1'))>=0x0?!![]:![];})[_0x4b6c87('0x19a')](myreject(_0x56d7a7)));Promise[_0x4b6c87('0x55')](_0x4e48d0)[_0x4b6c87('0x16e')](function(_0xf243c9){const _0x540c4e=_0x4b6c87,_0x45ff07=_[_0x540c4e('0x1f5')](_0xf243c9);return _0x45ff07?_0x5d4c25(_0x45ff07):(_0x295e81[_0x540c4e('0xaf')]=_0x1a876b?'GLOBAL_INTERVAL_IS_OVERTIME':'INTERVAL_IS_OVERTIME',_0x56d7a7(msgResponse(_0x540c4e('0x1a2'),_0x540c4e('0x15b'),_0x540c4e('0x76')+_0x1a876b+'\x20'+_0x5144ec+_0x540c4e('0x10a')+util[_0x540c4e('0x146')](_0x2e18a8,{'showHidden':![],'depth':null})+_0x540c4e('0x1fe')+_0x29a152)));})[_0x4b6c87('0x19a')](function(_0x3ff0fd){const _0xba3dad=_0x4b6c87;return _0x56d7a7(msgResponse(_0xba3dad('0x19f'),'Failure',JSON[_0xba3dad('0x150')](_0x3ff0fd)));});});},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x1f6')]=function(_0x334401){const _0x17bfe9=this;return function(){const _0x56cc51=a1057_0x5c3f;switch(_0x334401[_0x56cc51('0x8f')]){case'progressive':freeVariablesPredictive(_0x334401),_0x17bfe9[_0x56cc51('0x1ba')](_0x334401,0x1);break;case _0x56cc51('0x77'):freeVariablesPredictive(_0x334401),_0x17bfe9[_0x56cc51('0x1ba')](_0x334401,_0x334401['dialPowerLevel']);break;case _0x56cc51('0x62'):_0x17bfe9['predictive'](_0x334401);break;case'booked':freeVariablesPredictive(_0x334401),_0x17bfe9[_0x56cc51('0x1ba')](_0x334401,0x1);break;default:freeVariablesPredictive(_0x334401),logger['error'](_0x56cc51('0x1a9'),_0x334401['name'],_0x56cc51('0xc'));}};},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x188')]=function(_0x5ee82a){const _0x1d08c8=this;return function(){const _0x45fdf9=a1057_0x5c3f;_0x1d08c8[_0x45fdf9('0x128')](_0x5ee82a);};},Dialer[_0x2fe8b4('0x11a')]['syncQueueSummary']=function(_0x219055){const _0x13a7c6=_0x2fe8b4,_0x2d5add=this;isNotPreview(_0x219055['dialMethod'])?isVoiceQueueOutbound(_0x219055[_0x13a7c6('0x29')])&&isActive(_0x219055['dialActive'])?(_0x219055[_0x13a7c6('0x11d')]=!![],Promise[_0x13a7c6('0x159')]()['then'](checkIsLoggedIn(_0x219055,_0x219055[_0x13a7c6('0x1b8')]))['then'](checkIsActive(_0x219055,_0x219055[_0x13a7c6('0x1bf')]))['then'](checkInterval(_0x219055))[_0x13a7c6('0x16e')](_0x2d5add['checkIsTrunkReachable'](_0x219055))[_0x13a7c6('0x16e')](_0x2d5add[_0x13a7c6('0x66')](_0x219055['dialGlobalInterval'],_0x219055[_0x13a7c6('0xd6')],_0x219055[_0x13a7c6('0x12c')],_0x219055))[_0x13a7c6('0x16e')](_0x2d5add['checkIfTimeIntervals'](_0x219055[_0x13a7c6('0x11f')],_0x219055[_0x13a7c6('0xd6')],_0x219055[_0x13a7c6('0x12c')],_0x219055))[_0x13a7c6('0x16e')](_0x2d5add['checkDialMethod'](_0x219055))[_0x13a7c6('0x19a')](loggerCatchQueueSummary('[syncQueueSummary]',_0x219055))):notSendMessagesQueue(_0x219055):freeVariablesPredictive(_0x219055);},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x69')]=function(){const _0x7336a1=_0x2fe8b4,_0xa8c319=this;let _0x5bd7bf;for(const _0x28e8ce in this[_0x7336a1('0x18')]){typeof this[_0x7336a1('0x18')][_0x28e8ce]!=='undefined'&&(_0x5bd7bf=this[_0x7336a1('0x18')][_0x28e8ce],isCampaignIvr(_0x5bd7bf[_0x7336a1('0x29')])&&isActive(_0x5bd7bf[_0x7336a1('0xed')])?(_0x5bd7bf[_0x7336a1('0x11d')]=!![],Promise[_0x7336a1('0x159')]()[_0x7336a1('0x16e')](checkIsActive(_0x5bd7bf,_0x5bd7bf[_0x7336a1('0xed')]))[_0x7336a1('0x16e')](checkInterval(_0x5bd7bf))[_0x7336a1('0x16e')](_0xa8c319['checkIsTrunkReachable'](_0x5bd7bf))[_0x7336a1('0x16e')](_0xa8c319[_0x7336a1('0x66')](_0x5bd7bf['dialGlobalInterval'],_0x5bd7bf[_0x7336a1('0xd6')],_0x5bd7bf['name'],_0x5bd7bf))[_0x7336a1('0x16e')](_0xa8c319[_0x7336a1('0x1ed')](_0x5bd7bf['Interval'],_0x5bd7bf[_0x7336a1('0xd6')],_0x5bd7bf['name'],_0x5bd7bf))[_0x7336a1('0x16e')](_0xa8c319[_0x7336a1('0x188')](_0x5bd7bf))[_0x7336a1('0x19a')](loggerCatchQueueSummary('[syncCampaigns]',_0x5bd7bf))):notSendMessagesCampaign(_0x5bd7bf));}};function getCallerIdRandom(_0x5d86ef,_0x5cccfc){const _0x7c582d=_0x2fe8b4;_0x5cccfc<=0x0&&(_0x5cccfc=0x1);const _0x15d56f=new RegExp(_0x7c582d('0x71')+_0x5cccfc+'}$'),_0x5b3565=Math['pow'](0xa,_0x5cccfc-0x1),_0x339a9f=Math[_0x7c582d('0xd7')](0xa,_0x5cccfc)-0x1;return util['format']('%s',_[_0x7c582d('0x1c3')](_0x5d86ef,_0x15d56f,_['random'](_0x5b3565,_0x339a9f)));}function extractCalleridName(_0x1711b6){const _0x29843c=_0x2fe8b4,_0x500992=_0x1711b6[_0x29843c('0x107')](/"(.*?)"/);return _0x500992?_0x500992[0x1]:_0x1711b6;}function extractCalleridNumber(_0x2ee76b){const _0x4ad493=_0x2fe8b4,_0x252877=_0x2ee76b[_0x4ad493('0x107')](/<(.*?)>/);return _0x252877?_0x252877[0x1]:_0x2ee76b;}Dialer['prototype'][_0x2fe8b4('0x78')]=function(_0x8aaef,_0x59eed3){const _0x4b3584=_0x2fe8b4,_0x21169a=getConfigService(),_0x5b3c11=this,_0x2c0a79=uuid['v4']();return this[_0x4b3584('0x68')][_0x2c0a79]=new Action(_0x8aaef,_0x59eed3,_0x2c0a79),new Promise(function(_0x474304,_0x4f13ff){const _0x44324d=_0x4b3584;if(_[_0x44324d('0x54')](_0x8aaef)&&_0x44324d('0x25')!==typeof _0x8aaef)return _0x4f13ff(msgResponse(_0x44324d('0x129'),_0x44324d('0x15b'),_0x44324d('0x1cd')));if(_[_0x44324d('0x54')](_0x59eed3[_0x44324d('0x16f')][_0x44324d('0x137')])||_0x59eed3['Contact']['phone']===null)return _0x4f13ff(msgResponse(_0x44324d('0x129'),_0x44324d('0x15b'),'contact\x20is\x20undefine'));const _0x332774={'XMD-CALLERID':_0x5b3c11[_0x44324d('0x68')][_0x2c0a79][_0x44324d('0x1eb')](),'XMD-AGI':_0x8aaef[_0x44324d('0xf6')]?util[_0x44324d('0xbe')](_0x44324d('0x1f8'),_0x21169a[_0x44324d('0xdd')],_0x8aaef[_0x44324d('0xf6')]):_0x44324d('0x3e'),'XMD-AGIAFTER':_0x8aaef[_0x44324d('0x16c')]?util['format'](_0x44324d('0x1f8'),_0x21169a[_0x44324d('0xdd')],_0x8aaef[_0x44324d('0x16c')]):_0x44324d('0x3e'),'XMD-QUEUE':_0x8aaef[_0x44324d('0x29')]===_0x44324d('0x2b')?util[_0x44324d('0xbe')](_0x44324d('0x1b4'),_0x8aaef['name'],_0x8aaef[_0x44324d('0xc3')]||'',_0x8aaef[_0x44324d('0x3')]?'c':'',_0x8aaef[_0x44324d('0x1bd')]||0x3):'NONE','XMD-CONTACTID':_0x59eed3[_0x44324d('0x75')],'XMD-CDRTYPE':_0x44324d('0x15e'),'CALLERID(all)':_0x5b3c11['actions'][_0x2c0a79][_0x44324d('0x1eb')](),'XMD-AMD':_0x8aaef[_0x44324d('0x116')]?_0x44324d('0xa4'):_0x44324d('0x3e'),'XMD-DESTINATION':_0x44324d('0xcf')};_0x8aaef[_0x44324d('0x116')]&&(_0x332774[_0x44324d('0x131')]=_0x8aaef[_0x44324d('0xab')]||0x9c4,_0x332774[_0x44324d('0x31')]=_0x8aaef[_0x44324d('0x48')]||0x5dc,_0x332774['XMD-AMDAFTERGREETINGSILENCE']=_0x8aaef['dialAMDAfterGreetingSilence']||0x320,_0x332774[_0x44324d('0x158')]=_0x8aaef[_0x44324d('0x96')]||0x1388,_0x332774[_0x44324d('0xd2')]=_0x8aaef['dialAMDMinWordLength']||0x64,_0x332774['XMD-AMDBETWEENWORDSSILENCE']=_0x8aaef[_0x44324d('0x44')]||0x32,_0x332774[_0x44324d('0x47')]=_0x8aaef[_0x44324d('0x8a')]||0x3,_0x332774['XMD-AMDSILENCETHRESHOLD']=_0x8aaef[_0x44324d('0x1f3')]||0x100,_0x332774[_0x44324d('0x53')]=_0x8aaef[_0x44324d('0xdb')]||0x1388);_0x8aaef['type']===_0x44324d('0x2b')?_0x332774[_0x44324d('0x3f')]=_0x59eed3['VoiceQueueId']:_0x332774[_0x44324d('0x106')]=_0x59eed3[_0x44324d('0x1a')];for(const _0x4fa189 in _0x59eed3[_0x44324d('0x16f')]){typeof _0x59eed3['Contact'][_0x4fa189]!=='undefined'&&(isNotNull(_0x59eed3[_0x44324d('0x16f')][_0x4fa189])&&_0x4fa189!=='id'&&_0x4fa189!==_0x44324d('0x19c')&&_0x4fa189!=='createdAt'&&_0x4fa189!==_0x44324d('0x135')&&(_0x332774[util[_0x44324d('0xbe')](_0x44324d('0xc1'),_0x44324d('0x2'),_[_0x44324d('0x4e')](_0x4fa189))]=_0x59eed3[_0x44324d('0x16f')][_0x4fa189]));}const _0x14adab=_0x5b3c11[_0x44324d('0x91')](_0x8aaef[_0x44324d('0xd5')])?getCallerId(_0x8aaef[_0x44324d('0xd5')][_0x44324d('0xb4')],_0x8aaef['dialOriginateCallerIdName'],_0x8aaef[_0x44324d('0xf8')]>0x0?getCallerIdRandom(_0x8aaef[_0x44324d('0x9c')],_0x8aaef[_0x44324d('0xf8')]):_0x8aaef[_0x44324d('0x9c')]):getCallerId(_['isNil'](_0x8aaef[_0x44324d('0x127')])?_0x8aaef['Trunk']['callerid']:_0x8aaef[_0x44324d('0x127')][_0x44324d('0xb4')],_0x8aaef['dialOriginateCallerIdName'],_0x8aaef['dialRandomLastDigitCallerIdNumber']>0x0?getCallerIdRandom(_0x8aaef[_0x44324d('0x9c')],_0x8aaef[_0x44324d('0xf8')]):_0x8aaef[_0x44324d('0x9c')]);if(_0x14adab){const _0x27642e=extractCalleridName(_0x14adab);_0x332774[_0x44324d('0x1b')]=_0x27642e,_0x5b3c11[_0x44324d('0x68')][_0x2c0a79][_0x44324d('0x95')]=_0x27642e;const _0x20c9e2=extractCalleridNumber(_0x14adab);_0x332774[_0x44324d('0x88')]==_0x20c9e2,_0x5b3c11[_0x44324d('0x68')][_0x2c0a79][_0x44324d('0xd9')]=_0x20c9e2;}return ami['Action']({'actionid':_0x2c0a79,'action':'originate','channel':_0x5b3c11[_0x44324d('0x91')](_0x8aaef[_0x44324d('0xd5')])?util[_0x44324d('0xbe')](_0x44324d('0x209'),_0x8aaef['Trunk']['name'],isNotNull(_0x8aaef[_0x44324d('0x181')])?_0x8aaef['dialPrefix'][_0x44324d('0x1c0')]()||'':'',_0x8aaef[_0x44324d('0xa8')]>0x0?_0x59eed3[_0x44324d('0x16f')]['phone'][_0x44324d('0x1d0')](_0x8aaef[_0x44324d('0xa8')]):_0x59eed3['Contact'][_0x44324d('0x137')]):util['format'](_0x44324d('0x209'),_[_0x44324d('0x7d')](_0x8aaef[_0x44324d('0x127')])?_0x8aaef[_0x44324d('0xd5')]['name']:_0x8aaef[_0x44324d('0x127')][_0x44324d('0x12c')],isNotNull(_0x8aaef['dialPrefix'])?_0x8aaef[_0x44324d('0x181')]['trim']()||'':'',_0x8aaef[_0x44324d('0xa8')]>0x0?_0x59eed3[_0x44324d('0x16f')][_0x44324d('0x137')][_0x44324d('0x1d0')](_0x8aaef[_0x44324d('0xa8')]):_0x59eed3[_0x44324d('0x16f')]['phone']),'callerid':_0x14adab,'Exten':'xcally-motion-dialer','Context':'from-sip','Priority':'1','variable':_0x332774,'timeout':(_0x8aaef[_0x44324d('0xe0')]||0x1e)*0x3e8,'async':!![],'channelid':_0x2c0a79})[_0x44324d('0x16e')](function(_0x588367){return _0x474304(_0x588367);})[_0x44324d('0x19a')](function(_0x56cb55){const _0x3608b0=_0x44324d;_0x8aaef[_0x3608b0('0x17')]+=0x1;const _0x44cb17=new History(_0x5b3c11[_0x3608b0('0x68')][_0x2c0a79]);logger['error'](util['format']('[originateError]:\x20%s',JSON[_0x3608b0('0x150')](_0x56cb55))),_0x44cb17[_0x3608b0('0x3b')]=0xe,_0x44cb17['statedesc']=_0x3608b0('0x176'),_0x44cb17[_0x3608b0('0x134')]=moment()[_0x3608b0('0xbe')](_0x3608b0('0x194')),_0x44cb17[_0x3608b0('0x138')]=_0x44cb17[_0x3608b0('0x134')],_0x5b3c11[_0x3608b0('0x17f')](_0x44cb17)['catch'](loggerCatch(_0x3608b0('0x20'))),_0x5b3c11[_0x3608b0('0x14')](_0x44cb17)['catch'](loggerCatch(_0x3608b0('0x20')))['finally'](function(){const _0x12d784=_0x3608b0;return delete _0x5b3c11[_0x12d784('0x68')][_0x2c0a79],_0x4f13ff(msgResponse(_0x12d784('0x129'),'Error','originate\x20action\x20Error'));});});});},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0xf1')]=function(_0x386bc8){const _0x1b9045=_0x2fe8b4,_0x34e618=this[_0x1b9045('0x68')][_0x386bc8['actionid']];if(_0x34e618){delete this[_0x1b9045('0x68')][_0x386bc8[_0x1b9045('0x7f')]],_0x34e618['responsetime']=moment()[_0x1b9045('0xbe')](_0x1b9045('0x194'));const _0x435c27=_0x34e618[_0x1b9045('0x29')]==='ivr'?this[_0x1b9045('0x18')][_0x34e618[_0x1b9045('0x15d')]]:this['voiceQueues'][_0x34e618[_0x1b9045('0x1f2')]()];if(!this[_0x1b9045('0x178')](_0x386bc8['response']))return this[_0x1b9045('0x112')](_0x435c27),this[_0x1b9045('0x4b')](_0x34e618,_0x435c27,_0x386bc8)[_0x1b9045('0x16e')](function(){})['catch'](loggerCatch(_0x1b9045('0x1b9')));else this['uniqueId'][_0x386bc8[_0x1b9045('0x94')]]=_0x34e618;}},Dialer[_0x2fe8b4('0x11a')]['checkRetriveMax']=function(_0x5f2e30,_0x59bc34,_0x201ed0){const _0x23ad06=_0x2fe8b4,_0x374eca=new History(_0x59bc34);if(_0x374eca[_0x23ad06('0x157')]+_0x374eca[_0x23ad06('0xc8')]+_0x374eca[_0x23ad06('0x1d2')]+_0x374eca['countnosuchnumberretry']+_0x374eca[_0x23ad06('0x198')]+_0x374eca[_0x23ad06('0x187')]+_0x374eca[_0x23ad06('0x162')]+_0x374eca[_0x23ad06('0x10b')]>=_0x201ed0['dialGlobalMaxRetry']-0x1)return!![];switch(_0x5f2e30){case 0x3:if(_0x374eca[_0x23ad06('0x1d2')]>=_0x201ed0[_0x23ad06('0x8')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countnoanswerretry':_0x374eca[_0x23ad06('0x1d2')]+=0x1,'scheduledat':moment()[_0x23ad06('0x1dd')](_0x201ed0[_0x23ad06('0x3c')],_0x23ad06('0x200'))[_0x23ad06('0xbe')](_0x23ad06('0x194')),'ContactId':_0x374eca[_0x23ad06('0x75')],'ListId':_0x374eca[_0x23ad06('0xd3')],'VoiceQueueId':_0x374eca['VoiceQueueId']||undefined,'CampaignId':_0x374eca[_0x23ad06('0x1a')]||undefined})[_0x23ad06('0x19a')](loggerCatch(_0x23ad06('0x151')));break;case 0x5:if(_0x374eca[_0x23ad06('0x157')]>=_0x201ed0[_0x23ad06('0x1e5')]-0x1)return!![];else this['rescheduleContact']({'active':![],'countbusyretry':_0x374eca['countbusyretry']+=0x1,'scheduledat':moment()[_0x23ad06('0x1dd')](_0x201ed0[_0x23ad06('0x6d')],'minutes')[_0x23ad06('0xbe')](_0x23ad06('0x194')),'ContactId':_0x374eca[_0x23ad06('0x75')],'ListId':_0x374eca[_0x23ad06('0xd3')],'VoiceQueueId':_0x374eca[_0x23ad06('0x1f9')]||undefined,'CampaignId':_0x374eca[_0x23ad06('0x1a')]||undefined})[_0x23ad06('0x19a')](loggerCatch(_0x23ad06('0x5')));break;case 0x8:if(_0x374eca[_0x23ad06('0xc8')]>=_0x201ed0[_0x23ad06('0xc7')]-0x1)return!![];else this[_0x23ad06('0x8c')]({'active':![],'countcongestionretry':_0x374eca[_0x23ad06('0xc8')]+=0x1,'scheduledat':moment()[_0x23ad06('0x1dd')](_0x201ed0[_0x23ad06('0x19e')],'minutes')['format'](_0x23ad06('0x194')),'ContactId':_0x374eca[_0x23ad06('0x75')],'ListId':_0x374eca[_0x23ad06('0xd3')],'VoiceQueueId':_0x374eca[_0x23ad06('0x1f9')]||undefined,'CampaignId':_0x374eca['CampaignId']||undefined})[_0x23ad06('0x19a')](loggerCatch(_0x23ad06('0x118')));break;case 0x0:if(_0x374eca[_0x23ad06('0x1b2')]>=_0x201ed0[_0x23ad06('0x17e')]-0x1)return!![];else this[_0x23ad06('0x8c')]({'active':![],'countnosuchnumberretry':_0x374eca[_0x23ad06('0x1b2')]+=0x1,'scheduledat':moment()[_0x23ad06('0x1dd')](_0x201ed0['dialNoSuchNumberRetryFrequency'],_0x23ad06('0x200'))[_0x23ad06('0xbe')](_0x23ad06('0x194')),'ContactId':_0x374eca['ContactId'],'ListId':_0x374eca[_0x23ad06('0xd3')],'VoiceQueueId':_0x374eca[_0x23ad06('0x1f9')]||undefined,'CampaignId':_0x374eca['CampaignId']||undefined})[_0x23ad06('0x19a')](loggerCatch('[rescheduleContact][NoSuchNumber]'));break;case 0xa:if(_0x374eca[_0x23ad06('0x198')]>=_0x201ed0[_0x23ad06('0xfb')]-0x1)return!![];else this[_0x23ad06('0x8c')]({'active':![],'countdropretry':_0x374eca[_0x23ad06('0x198')]+=0x1,'scheduledat':moment()[_0x23ad06('0x1dd')](_0x201ed0[_0x23ad06('0x170')],_0x23ad06('0x200'))['format'](_0x23ad06('0x194')),'ContactId':_0x374eca[_0x23ad06('0x75')],'ListId':_0x374eca['ListId'],'VoiceQueueId':_0x374eca[_0x23ad06('0x1f9')]||undefined,'CampaignId':_0x374eca[_0x23ad06('0x1a')]||undefined})[_0x23ad06('0x19a')](loggerCatch(_0x23ad06('0x13d')));break;case 0xb:if(_0x374eca[_0x23ad06('0x187')]>=_0x201ed0[_0x23ad06('0xec')]-0x1)return!![];else this[_0x23ad06('0x8c')]({'active':![],'countabandonedretry':_0x374eca[_0x23ad06('0x187')]+=0x1,'scheduledat':moment()[_0x23ad06('0x1dd')](_0x201ed0['dialAbandonedRetryFrequency'],_0x23ad06('0x200'))[_0x23ad06('0xbe')](_0x23ad06('0x194')),'ContactId':_0x374eca['ContactId'],'ListId':_0x374eca[_0x23ad06('0xd3')],'VoiceQueueId':_0x374eca[_0x23ad06('0x1f9')]||undefined,'CampaignId':_0x374eca[_0x23ad06('0x1a')]||undefined})[_0x23ad06('0x19a')](loggerCatch(_0x23ad06('0x1cb')));break;case 0x13:if(_0x374eca[_0x23ad06('0x162')]>=_0x201ed0[_0x23ad06('0x1f1')]-0x1)return!![];else this[_0x23ad06('0x8c')]({'active':![],'countmachineretry':_0x374eca['countmachineretry']+=0x1,'scheduledat':moment()[_0x23ad06('0x1dd')](_0x201ed0[_0x23ad06('0x1c7')],'minutes')[_0x23ad06('0xbe')](_0x23ad06('0x194')),'ContactId':_0x374eca[_0x23ad06('0x75')],'ListId':_0x374eca[_0x23ad06('0xd3')],'VoiceQueueId':_0x374eca['VoiceQueueId']||undefined,'CampaignId':_0x374eca[_0x23ad06('0x1a')]||undefined})[_0x23ad06('0x19a')](loggerCatch(_0x23ad06('0xbc')));break;case 0x14:if(_0x374eca[_0x23ad06('0x10b')]>=_0x201ed0[_0x23ad06('0x83')]-0x1)return!![];else this[_0x23ad06('0x8c')]({'active':![],'countagentrejectretry':_0x374eca[_0x23ad06('0x10b')]+=0x1,'scheduledat':moment()[_0x23ad06('0x1dd')](_0x201ed0[_0x23ad06('0x1ac')],_0x23ad06('0x200'))['format'](_0x23ad06('0x194')),'ContactId':_0x374eca[_0x23ad06('0x75')],'ListId':_0x374eca[_0x23ad06('0xd3')],'VoiceQueueId':_0x374eca[_0x23ad06('0x1f9')]||undefined,'CampaignId':_0x374eca[_0x23ad06('0x1a')]||undefined})[_0x23ad06('0x19a')](loggerCatch(_0x23ad06('0x1b3')));break;default:return!![];}},Dialer[_0x2fe8b4('0x11a')]['callProgressDetecting']=function(_0x1278f8,_0x2d61a2,_0x50f08e){const _0x173671=this,_0x22f24a=new History(_0x1278f8);return new Promise(function(_0x45bd31,_0x1b81ad){const _0x8870ff=a1057_0x5c3f;if(_[_0x8870ff('0x54')](_0x2d61a2)&&_0x8870ff('0x25')!==typeof _0x2d61a2)return _0x1b81ad(msgResponse('[callProgressDetecting]','Failure',_0x8870ff('0x1b5')));if(_[_0x8870ff('0x54')](_0x50f08e)&&_0x8870ff('0x25')!==typeof _0x50f08e)return _0x1b81ad(msgResponse(_0x8870ff('0x14b'),_0x8870ff('0x15b'),_0x8870ff('0xe1')));switch(_0x50f08e[_0x8870ff('0x1ce')]){case'0':_0x2d61a2['outboundNoSuchCallsDay']+=0x1,_0x22f24a[_0x8870ff('0x3b')]=0x0,_0x22f24a[_0x8870ff('0x12a')]=_0x8870ff('0x1a6'),_0x22f24a['countnosuchnumberretry']+=0x1,_0x22f24a['countglobal']+=0x1,ami[_0x8870ff('0x13a')](_0x8870ff('0xc6'),ut['buildObj'](_0x1278f8,_0x8870ff('0x15'))),_0x173671[_0x8870ff('0x17f')](_0x22f24a)['catch'](loggerCatch(_0x8870ff('0x1c9')));_0x173671[_0x8870ff('0x5f')](0x0,_0x1278f8,_0x2d61a2)&&(_0x22f24a[_0x8870ff('0x1b2')]>=_0x2d61a2[_0x8870ff('0x17e')]?_0x173671[_0x8870ff('0x182')](_0x22f24a,_0x45bd31,_0x1b81ad,_0x8870ff('0x1d8')):_0x173671[_0x8870ff('0x28')](_0x22f24a,_0x45bd31,_0x1b81ad,_0x8870ff('0x1d8')));break;case'3':_0x2d61a2[_0x8870ff('0x27')]+=0x1,_0x22f24a[_0x8870ff('0x3b')]=0x3,_0x22f24a[_0x8870ff('0x12a')]='NoAnswer',_0x22f24a['countnoanswerretry']+=0x1,_0x22f24a[_0x8870ff('0x14c')]+=0x1,ami[_0x8870ff('0x13a')](_0x8870ff('0xa6'),ut[_0x8870ff('0x195')](_0x1278f8,_0x8870ff('0x72'))),_0x173671[_0x8870ff('0x17f')](_0x22f24a)[_0x8870ff('0x19a')](loggerCatch(_0x8870ff('0x175')));_0x173671[_0x8870ff('0x5f')](0x3,_0x1278f8,_0x2d61a2)&&(_0x22f24a[_0x8870ff('0x1d2')]>=_0x2d61a2['dialNoAnswerMaxRetry']?_0x173671['createStateFinal'](_0x22f24a,_0x45bd31,_0x1b81ad,'reason\x203\x20ringing\x20no\x20answer'):_0x173671[_0x8870ff('0x28')](_0x22f24a,_0x45bd31,_0x1b81ad,_0x8870ff('0xbb')));break;case'5':_0x2d61a2[_0x8870ff('0x207')]+=0x1,_0x22f24a[_0x8870ff('0x3b')]=0x5,_0x22f24a[_0x8870ff('0x12a')]=_0x8870ff('0x17c'),_0x22f24a['countbusyretry']+=0x1,_0x22f24a[_0x8870ff('0x14c')]+=0x1,ami[_0x8870ff('0x13a')]('custom:agentbusy',ut[_0x8870ff('0x195')](_0x1278f8,'busy')),_0x173671[_0x8870ff('0x17f')](_0x22f24a)['catch'](loggerCatch(_0x8870ff('0x196')));_0x173671['checkRetriveMax'](0x5,_0x1278f8,_0x2d61a2)&&(_0x22f24a[_0x8870ff('0x157')]>=_0x2d61a2[_0x8870ff('0x1e5')]?_0x173671[_0x8870ff('0x182')](_0x22f24a,_0x45bd31,_0x1b81ad,_0x8870ff('0x1ca')):_0x173671[_0x8870ff('0x28')](_0x22f24a,_0x45bd31,_0x1b81ad,'reason\x205\x20busy'));break;case'8':_0x2d61a2[_0x8870ff('0x1d6')]+=0x1,_0x22f24a[_0x8870ff('0x3b')]=0x8,_0x22f24a[_0x8870ff('0x12a')]='Congestion',_0x22f24a[_0x8870ff('0xc8')]+=0x1,_0x22f24a[_0x8870ff('0x14c')]+=0x1,ami[_0x8870ff('0x13a')](_0x8870ff('0x13e'),ut[_0x8870ff('0x195')](_0x1278f8,_0x8870ff('0x86'))),_0x173671[_0x8870ff('0x17f')](_0x22f24a)[_0x8870ff('0x19a')](loggerCatch(_0x8870ff('0x101')));_0x173671[_0x8870ff('0x5f')](0x8,_0x1278f8,_0x2d61a2)&&(_0x22f24a[_0x8870ff('0xc8')]>=_0x2d61a2[_0x8870ff('0xc7')]?_0x173671['createStateFinal'](_0x22f24a,_0x45bd31,_0x1b81ad,'reason\x208\x20congestion'):_0x173671[_0x8870ff('0x28')](_0x22f24a,_0x45bd31,_0x1b81ad,_0x8870ff('0xc2')));break;case'11':_0x2d61a2[_0x8870ff('0x33')]+=0x1,_0x22f24a['state']=0xb,_0x22f24a[_0x8870ff('0x12a')]=_0x8870ff('0x1c6'),_0x22f24a[_0x8870ff('0x187')]+=0x1,_0x22f24a['countglobal']+=0x1,_0x173671[_0x8870ff('0x17f')](_0x22f24a)[_0x8870ff('0x19a')](loggerCatch('[syncAgentComplete][createHistory][11]'));_0x173671[_0x8870ff('0x5f')](0xb,_0x1278f8,_0x2d61a2)&&(_0x22f24a['countabandonedretry']>=_0x2d61a2[_0x8870ff('0xec')]?_0x173671[_0x8870ff('0x182')](_0x22f24a,_0x45bd31,_0x1b81ad,_0x8870ff('0x177')):_0x173671[_0x8870ff('0x28')](_0x22f24a,_0x45bd31,_0x1b81ad,'reason\x2011\x20abandoned'));break;case'20':_0x2d61a2[_0x8870ff('0x1c2')]+=0x1,_0x22f24a['state']=0x14,_0x22f24a['statedesc']=_0x8870ff('0x23'),_0x22f24a[_0x8870ff('0x10b')]+=0x1,_0x22f24a[_0x8870ff('0x14c')]+=0x1,ami[_0x8870ff('0x13a')](_0x8870ff('0x142'),ut['buildObj'](_0x1278f8,_0x8870ff('0x10c'))),_0x173671[_0x8870ff('0x17f')](_0x22f24a)['catch'](loggerCatch('[syncAgentComplete][createHistory][20]'));_0x173671['checkRetriveMax'](0x14,_0x1278f8,_0x2d61a2)&&(_0x22f24a[_0x8870ff('0x10b')]>=_0x2d61a2['dialAgentRejectMaxRetry']?_0x173671[_0x8870ff('0x182')](_0x22f24a,_0x45bd31,_0x1b81ad,_0x8870ff('0x16')):_0x173671[_0x8870ff('0x28')](_0x22f24a,_0x45bd31,_0x1b81ad,_0x8870ff('0x16')));break;default:_0x2d61a2[_0x8870ff('0xa0')]+=0x1,_0x22f24a[_0x8870ff('0x3b')]=0xc,_0x22f24a[_0x8870ff('0x12a')]=_0x50f08e[_0x8870ff('0x1ce')],_0x173671['createHistory'](_0x22f24a)[_0x8870ff('0x19a')](loggerCatch(_0x8870ff('0x100')));_0x173671['checkRetriveMax'](_0x50f08e[_0x8870ff('0x1ce')],_0x1278f8,_0x2d61a2)&&(_0x22f24a['countbusyretry']+_0x22f24a[_0x8870ff('0xc8')]+_0x22f24a['countnoanswerretry']+_0x22f24a[_0x8870ff('0x1b2')]+_0x22f24a[_0x8870ff('0x198')]+_0x22f24a[_0x8870ff('0x187')]+_0x22f24a[_0x8870ff('0x162')]+_0x22f24a['countagentrejectretry']>=_0x2d61a2[_0x8870ff('0xbd')]?_0x173671['stateGlobal'](_0x22f24a,_0x45bd31,_0x1b81ad,_0x50f08e[_0x8870ff('0x1ce')]):_0x173671['createStateFinal'](_0x22f24a,_0x45bd31,_0x1b81ad,_0x50f08e[_0x8870ff('0x1ce')]));}});},Dialer['prototype'][_0x2fe8b4('0x28')]=function(_0x95c7de,_0x30a419,_0x50f437,_0x436f46){const _0x1430e8=_0x2fe8b4,_0x33a4de=new Final(_0x95c7de);_0x33a4de['state']=0xf,_0x33a4de[_0x1430e8('0x12a')]=_0x1430e8('0x79'),this[_0x1430e8('0x182')](_0x33a4de,_0x30a419,_0x50f437,_0x436f46);},Dialer[_0x2fe8b4('0x11a')]['createStateFinal']=function(_0x5ed54f,_0x3d04ad,_0x4c3ad5,_0x54c46c){const _0x193434=_0x2fe8b4;this['moveContactManagedDialer'](_0x5ed54f)[_0x193434('0x16e')](function(){const _0x2bf32b=_0x193434;return _0x3d04ad(msgResponse(_0x2bf32b('0x14b'),_0x2bf32b('0x67'),_0x54c46c));})[_0x193434('0x19a')](function(){const _0x2f1301=_0x193434;return _0x4c3ad5(msgResponse(_0x2f1301('0x1e9'),_0x2f1301('0x15b'),_0x2f1301('0x1')));});},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x62')]=function(_0x1aaf8e){const _0x2dd277=_0x2fe8b4,_0x10b258=_0x1aaf8e[_0x2dd277('0x1ff')]/0x64,_0x3dffcd=_0x1aaf8e['outboundDropCallsDayTimeout']/(_0x1aaf8e['outboundDropCallsDayTimeout']+_0x1aaf8e['outboundAnswerCallsDay']),_0x5339ff=Math[_0x2dd277('0x1e1')](_0x1aaf8e[_0x2dd277('0x6e')]*(_0x1aaf8e[_0x2dd277('0xef')]/0x64)),_0x3b64cc=Math[_0x2dd277('0x1e1')](_0x1aaf8e['predictiveIntervalAvailable']*(_0x1aaf8e[_0x2dd277('0x12e')]/0x64)),_0x3fc5fa=_0x1aaf8e[_0x2dd277('0x163')]+_0x1aaf8e[_0x2dd277('0x17a')],_0x4bcef0=Math['floor'](_0x1aaf8e[_0x2dd277('0x1dc')]*_0x1aaf8e[_0x2dd277('0x4')]*_0x1aaf8e[_0x2dd277('0x36')]*_0x1aaf8e[_0x2dd277('0x13c')]);if(_[_0x2dd277('0x54')](_0x1aaf8e['startProgressive']))!_['isUndefined'](_0x1aaf8e[_0x2dd277('0x8e')])&&(_0x1aaf8e[_0x2dd277('0x8e')]=undefined,loggerPredictive[_0x2dd277('0x21')](_0x2dd277('0x9f'),_0x2dd277('0x9e'))),!_['isUndefined'](_0x1aaf8e[_0x2dd277('0x172')])&&(loggerPredictive[_0x2dd277('0x21')](_0x2dd277('0x9f'),_0x2dd277('0x40')),clearInterval(_0x1aaf8e[_0x2dd277('0x172')]),_0x1aaf8e['handlePredictive']=undefined),_0x1aaf8e['startProgressive']=moment()[_0x2dd277('0xbe')](_0x2dd277('0x194')),loggerPredictive[_0x2dd277('0x2e')](_0x1aaf8e[_0x2dd277('0x12c')],_0x2dd277('0x58'),_0x1aaf8e[_0x2dd277('0x1ae')]),this[_0x2dd277('0x1ba')](_0x1aaf8e,0x1);else{if(ifInterval(_0x1aaf8e[_0x2dd277('0xff')],_0x1aaf8e[_0x2dd277('0x1ae')]))this[_0x2dd277('0x1ba')](_0x1aaf8e,0x1),loggerPredictiveCalls['info'](_0x2dd277('0x139'),_0x1aaf8e[_0x2dd277('0x1ae')],_0x1aaf8e['name']),_0x1aaf8e[_0x2dd277('0x1dc')]=0x0,_0x1aaf8e[_0x2dd277('0x7b')]=0x0;else{if(_0x10b258<_0x3dffcd&&_0x1aaf8e[_0x2dd277('0x32')]===_0x2dd277('0xb7'))freeVariablesPredictive(_0x1aaf8e),loggerPredictive['info'](_0x2dd277('0x184'),_0x2dd277('0xe7'),_0x3dffcd,_0x2dd277('0x1ae'),_0x1aaf8e[_0x2dd277('0x12c')]);else{if(_0x4bcef0<_0x1aaf8e[_0x2dd277('0x7b')]&&_0x1aaf8e[_0x2dd277('0x32')]==='dropRate')freeVariablesPredictive(_0x1aaf8e),loggerPredictive[_0x2dd277('0x2e')]('[stopMethodPredictive][ReStartProgressive][ExceededDropInterval]','Max\x20Drop\x20',_0x4bcef0,_0x2dd277('0x1e7'),_0x1aaf8e[_0x2dd277('0x7b')],'startProgressive',_0x1aaf8e[_0x2dd277('0x12c')]);else{if(!ifInterval(_0x1aaf8e[_0x2dd277('0xff')],_0x1aaf8e[_0x2dd277('0x1ae')])&&_[_0x2dd277('0x54')](_0x1aaf8e[_0x2dd277('0x8e')])&&!_[_0x2dd277('0x54')](_0x1aaf8e[_0x2dd277('0x1ae')]))_0x1aaf8e[_0x2dd277('0x8e')]=moment()[_0x2dd277('0xbe')](_0x2dd277('0x194')),loggerPredictive[_0x2dd277('0x2e')](_0x1aaf8e[_0x2dd277('0x12c')],'started\x20in\x20predictive\x20at',_0x1aaf8e['startPredictive']),this[_0x2dd277('0xc5')](_0x1aaf8e[_0x2dd277('0xff')])[_0x2dd277('0x16e')](this[_0x2dd277('0x160')](_0x1aaf8e))['then'](mergeDataErlangB(_0x1aaf8e))[_0x2dd277('0x16e')](this[_0x2dd277('0x1c1')](_0x1aaf8e))['catch'](loggerCatchPredictive(_0x2dd277('0x192'),_0x1aaf8e));else{if(!ifInterval(_0x1aaf8e['dialPredictiveInterval'],_0x1aaf8e[_0x2dd277('0x8e')]))_0x1aaf8e[_0x2dd277('0x7b')]=0x0,_0x1aaf8e[_0x2dd277('0x8e')]=moment()['format'](_0x2dd277('0x194')),loggerPredictive['info'](_0x1aaf8e[_0x2dd277('0x12c')],'recalculate\x20predictive\x20at',_0x1aaf8e[_0x2dd277('0x8e')]),clearInterval(_0x1aaf8e[_0x2dd277('0x172')]),_0x1aaf8e[_0x2dd277('0x172')]=undefined,this['averageHandleTime'](_0x1aaf8e[_0x2dd277('0xff')])[_0x2dd277('0x16e')](this[_0x2dd277('0x160')](_0x1aaf8e))[_0x2dd277('0x16e')](mergeDataErlangB(_0x1aaf8e))[_0x2dd277('0x16e')](this[_0x2dd277('0x1c1')](_0x1aaf8e))[_0x2dd277('0x19a')](loggerCatchPredictive(_0x2dd277('0x117'),_0x1aaf8e));else{if(_0x1aaf8e['predictiveIntervalAvailable']&&_0x3fc5fa<_0x1aaf8e[_0x2dd277('0x6e')]-_0x3b64cc)freeVariablesPredictive(_0x1aaf8e),loggerPredictive[_0x2dd277('0x2e')](_0x1aaf8e['name'],'switch\x20in\x20progressive\x20because\x20available\x20agents\x20(',_0x3fc5fa,_0x2dd277('0xc0'),_0x1aaf8e[_0x2dd277('0x6e')],'-',_0x3b64cc,'=',_0x1aaf8e['predictiveIntervalAvailable']-_0x3b64cc,')');else _0x1aaf8e['predictiveIntervalAvailable']&&_0x3fc5fa>_0x1aaf8e[_0x2dd277('0x6e')]+_0x5339ff&&(freeVariablesPredictive(_0x1aaf8e),loggerPredictive[_0x2dd277('0x2e')](_0x1aaf8e[_0x2dd277('0x12c')],_0x2dd277('0x1af'),_0x3fc5fa,_0x2dd277('0x1c5'),_0x1aaf8e[_0x2dd277('0x6e')],'+',_0x5339ff,'=',_0x1aaf8e[_0x2dd277('0x6e')]+_0x5339ff,')'));}}}}}}},Dialer[_0x2fe8b4('0x11a')]['getDataPredictive']=function(_0x57279e){const _0x66f49e=this;return function(_0x5d4c67){return new Promise(function(_0x1cc34b,_0x4f3fbd){const _0x5a2dc7=a1057_0x5c3f;_[_0x5a2dc7('0x7a')](_0x57279e,_0x5d4c67[0x0]);if(checkGetDataPredictive(_0x5d4c67[0x0])){const _0x5ba05b=_0x57279e['talking']+_0x57279e[_0x5a2dc7('0x163')];_0x57279e[_0x5a2dc7('0x6e')]=_0x5ba05b;const _0x3e3155=_0x5ba05b,_0x13cb49=_0x57279e[_0x5a2dc7('0xff')]*0x3c,_0x3fd437=_0x5d4c67[0x0][_0x5a2dc7('0x1db')]+_0x5d4c67[0x0][_0x5a2dc7('0x61')],_0x3faf2c=(_0x5d4c67[0x0]['predictiveIntervalAnsweredCalls']+_0x5d4c67[0x0][_0x5a2dc7('0xb6')]+_0x5d4c67[0x0][_0x5a2dc7('0x109')])/_0x5d4c67[0x0][_0x5a2dc7('0x19b')];_0x57279e[_0x5a2dc7('0x36')]=_0x3faf2c>0x0?_0x3faf2c:0x1;switch(_0x57279e[_0x5a2dc7('0x32')]){case'dropRate':{const _0x2aaa13=_0x57279e[_0x5a2dc7('0x1ff')]/0x64;return _0x66f49e[_0x5a2dc7('0x179')](_0x3e3155,_0x13cb49,_0x3fd437,_0x3faf2c,_0x2aaa13)['then'](function(_0x193863){return _0x1cc34b(_0x193863);});}case _0x5a2dc7('0x1a5'):{const _0x324841=_0x57279e[_0x5a2dc7('0x1ff')]/0x64;return _0x66f49e[_0x5a2dc7('0x9d')](_0x3e3155,_0x13cb49,_0x3fd437,_0x3faf2c,_0x324841)[_0x5a2dc7('0x16e')](function(_0x3a3e71){return _0x1cc34b(_0x3a3e71);});}default:return _0x4f3fbd(msgResponse('[getDataPredictive]',_0x5a2dc7('0x15b'),_0x5a2dc7('0xc9')));}}else return _0x4f3fbd(msgResponse(_0x5a2dc7('0xf5'),_0x5a2dc7('0x15b'),_0x5a2dc7('0xb9')));});};},Dialer['prototype'][_0x2fe8b4('0xa')]=function(_0x453947){const _0x46d39c=this;return function(_0x187f09){return new Promise(function(_0x2aa6e0,_0x116de8){const _0x4e7549=a1057_0x5c3f;_['merge'](_0x453947,_0x187f09[0x0]);if(checkGetDataPredictive(_0x187f09[0x0])){loggerPredictive[_0x4e7549('0x2e')](JSON[_0x4e7549('0x150')](_0x187f09[0x0]));if(_0x453947[_0x4e7549('0x32')]===_0x4e7549('0xb7'))return _0x46d39c['getVoiceQueueRtPauses'](_0x453947['id'])[_0x4e7549('0x16e')](function(_0x29557c){const _0x37a181=_0x4e7549,_0x1dc59e=_0x453947[_0x37a181('0x1b8')]-_0x29557c[0x0][_0x37a181('0x120')],_0x4ca3ad=_0x453947[_0x37a181('0xff')]*0x3c,_0x36ab39=_0x187f09[0x0][_0x37a181('0x1db')]+_0x187f09[0x0][_0x37a181('0x61')],_0x3800aa=(_0x187f09[0x0]['predictiveIntervalAnsweredCalls']+_0x187f09[0x0][_0x37a181('0xb6')]+_0x187f09[0x0][_0x37a181('0x109')])/_0x187f09[0x0][_0x37a181('0x19b')],_0x5e29d4=_0x453947[_0x37a181('0x1ff')]/0x64;return _0x453947[_0x37a181('0xae')]=_0x29557c[0x0][_0x37a181('0x120')]||0x0,_0x453947[_0x37a181('0x36')]=_0x3800aa>0x0?_0x3800aa:0x1,_0x46d39c['abandonmentRate'](_0x1dc59e,_0x4ca3ad,_0x36ab39,_0x3800aa,_0x5e29d4);})[_0x4e7549('0x16e')](function(_0x1e1d4f){return _0x2aa6e0(_0x1e1d4f);})[_0x4e7549('0x19a')](function(_0x196c1e){const _0x309bca=_0x4e7549;return _0x116de8(msgResponse(_0x309bca('0xb8'),_0x309bca('0x15b'),JSON[_0x309bca('0x150')](_0x196c1e)));});if(_0x453947[_0x4e7549('0x32')]===_0x4e7549('0x1a5'))return _0x46d39c[_0x4e7549('0x16d')](_0x453947['id'])['then'](function(_0x4c3bb6){const _0x6bdd81=_0x4e7549,_0x1e2a1b=_0x453947[_0x6bdd81('0x1b8')]-_0x4c3bb6[0x0][_0x6bdd81('0x120')],_0x34b9ed=_0x453947[_0x6bdd81('0xff')]*0x3c,_0x311324=_0x187f09[0x0][_0x6bdd81('0x1db')]+_0x187f09[0x0][_0x6bdd81('0x61')],_0x4c86ff=(_0x187f09[0x0][_0x6bdd81('0x1a0')]+_0x187f09[0x0]['predictiveIntervalDroppedCallsTimeout']+_0x187f09[0x0][_0x6bdd81('0x109')])/_0x187f09[0x0][_0x6bdd81('0x19b')],_0x365c37=_0x453947[_0x6bdd81('0x1ff')]/0x64;return _0x453947[_0x6bdd81('0xae')]=_0x4c3bb6[0x0][_0x6bdd81('0x120')]||0x0,_0x453947[_0x6bdd81('0x36')]=_0x4c86ff>0x0?_0x4c86ff:0x1,_0x46d39c[_0x6bdd81('0x9d')](_0x1e2a1b,_0x34b9ed,_0x311324,_0x4c86ff,_0x365c37);})[_0x4e7549('0x16e')](function(_0x15b745){return _0x2aa6e0(_0x15b745);})['catch'](function(_0x1b39de){const _0x5d7a2e=_0x4e7549;return _0x116de8(msgResponse('[CatchErlangB]',_0x5d7a2e('0x15b'),JSON[_0x5d7a2e('0x150')](_0x1b39de)));});}else return _0x116de8(msgResponse(_0x4e7549('0xf5'),_0x4e7549('0x15b'),_0x4e7549('0xb9')));});};},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x1c1')]=function(_0x3e3855){const _0x46ae21=this;return function(){const _0x17dd04=a1057_0x5c3f;let _0x4365ab=0x0,_0x52e1e8=Math['floor'](_0x3e3855['erlangCallToSecond']*0x3e8);_0x52e1e8>0x0?(_0x52e1e8=_0x52e1e8<0x64?0x64:_0x52e1e8,loggerPredictive['info'](_0x3e3855[_0x17dd04('0x12c')],'one\x20call\x20every:',_0x52e1e8,'milliseconds'),_0x3e3855[_0x17dd04('0x172')]=setInterval(function(){const _0x120518=_0x17dd04;_0x46ae21['handlePredictive'](_0x3e3855),loggerPredictiveCalls[_0x120518('0x2e')]('[handlePredictive]',_0x4365ab+=0x1);},_0x52e1e8)):loggerPredictive[_0x17dd04('0x2e')](_0x3e3855['name'],_0x17dd04('0x140'));};},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x24')]=function(_0x3ddccb,_0x1469f0){const _0x388805=this;return function(_0x9ca457){const _0x59a01e=a1057_0x5c3f;if(_[_0x59a01e('0x13')](_0x9ca457)){if(_[_0x59a01e('0x7d')](_0x1469f0[_0x59a01e('0x12d')])||!_0x1469f0[_0x59a01e('0x11e')]){if(_0x3ddccb['dialMethod']==='booked'){_0x3ddccb[_0x59a01e('0x49')]=_[_0x59a01e('0x54')](_0x3ddccb[_0x59a01e('0x49')])?!![]:_0x3ddccb['queueStatusComplete'];const _0x14df47=uuid['v4']();_0x388805[_0x59a01e('0x68')][_0x14df47]=new Action(_0x3ddccb,_0x1469f0,_0x14df47),loggerBooked[_0x59a01e('0x2e')]('[booked][checkContactBlack]',_0x14df47,'queueStatusComplete:\x20',JSON[_0x59a01e('0x150')](_0x3ddccb['queueStatusComplete']),_0x59a01e('0x2f'),_0x3ddccb['name']),_0x3ddccb['queueStatusComplete']?(_0x3ddccb[_0x59a01e('0x49')]=![],_0x388805[_0x59a01e('0x1f')][_0x388805[_0x59a01e('0x68')][_0x14df47][_0x59a01e('0x15d')]]=[],ami[_0x59a01e('0x7e')]({'actionid':_0x14df47,'action':'queuestatus','queue':_0x3ddccb[_0x59a01e('0x12c')]})[_0x59a01e('0x19a')](function(){const _0x11399a=_0x59a01e;_0x388805[_0x11399a('0x112')](_0x3ddccb),_0x388805[_0x11399a('0x8c')]({'active':![],'ContactId':_0x388805[_0x11399a('0x68')][_0x14df47][_0x11399a('0x75')],'ListId':_0x388805['actions'][_0x14df47][_0x11399a('0xd3')],'VoiceQueueId':_0x388805[_0x11399a('0x68')][_0x14df47][_0x11399a('0x1f9')]||undefined,'CampaignId':_0x388805['actions'][_0x14df47]['CampaignId']||undefined})[_0x11399a('0x19a')](loggerCatch(_0x11399a('0x161'))),delete _0x388805[_0x11399a('0x68')][_0x14df47];})):(loggerBooked[_0x59a01e('0x2e')](_0x59a01e('0x80'),JSON['stringify'](_0x3ddccb['queueStatusComplete']),'Queue:\x20',_0x3ddccb['name']),_0x388805[_0x59a01e('0x112')](_0x3ddccb),_0x388805[_0x59a01e('0x8c')]({'active':![],'ContactId':_0x388805['actions'][_0x14df47]['ContactId'],'ListId':_0x388805[_0x59a01e('0x68')][_0x14df47][_0x59a01e('0xd3')],'VoiceQueueId':_0x388805[_0x59a01e('0x68')][_0x14df47][_0x59a01e('0x1f9')]||undefined,'CampaignId':_0x388805[_0x59a01e('0x68')][_0x14df47]['CampaignId']||undefined})['catch'](loggerCatch(_0x59a01e('0x161'))),delete _0x388805[_0x59a01e('0x68')][_0x14df47]);}else return _0x388805[_0x59a01e('0x78')](_0x3ddccb,_0x1469f0);}else getDiff(_0x1469f0[_0x59a01e('0x14e')])<_0x3ddccb[_0x59a01e('0x81')]*0x3c?_0x1469f0[_0x59a01e('0xe5')]&&!_0x1469f0['Agent'][_0x59a01e('0xb0')]?_0x388805['preview'][_0x59a01e('0xf9')](_0x1469f0['id'])[_0x59a01e('0x4a')](function(){const _0x10a3c9=_0x59a01e;_0x388805[_0x10a3c9('0x112')](_0x3ddccb);}):_0x388805[_0x59a01e('0x1ad')]({'active':![]},_0x1469f0['id'],0x1)[_0x59a01e('0x4a')](function(){const _0x34691b=_0x59a01e;console[_0x34691b('0x50')](_0x34691b('0xfd')),_0x388805[_0x34691b('0x112')](_0x3ddccb);}):(_0x3ddccb[_0x59a01e('0xd4')]+=0x1,_0x388805[_0x59a01e('0x112')](_0x3ddccb),_0x3ddccb[_0x59a01e('0x92')]?(_0x388805['rescheduleContact']({'active':![],'recallme':![],'UserId':null,'ContactId':_0x1469f0['ContactId'],'ListId':_0x1469f0[_0x59a01e('0xd3')],'VoiceQueueId':_0x1469f0['VoiceQueueId']||undefined,'CampaignId':_0x1469f0['CampaignId']||undefined})[_0x59a01e('0x19a')](loggerCatch('[rescheduleContact][dialRecallInQueue]')),_0x388805['createHistory'](createObjHistory(_0x3ddccb,_0x1469f0,'RECALLINQUEUE',0x17,_0x59a01e('0x10f')))[_0x59a01e('0x19a')](loggerCatch(_0x59a01e('0x5b')))):_0x388805['saveInDb'](createObjHistory(_0x3ddccb,_0x1469f0,_0x59a01e('0x121'),0x16,_0x59a01e('0x125')),_0x59a01e('0x60'),_0x59a01e('0xd0')));}else{_0x3ddccb[_0x59a01e('0x64')]+=0x1,_0x388805[_0x59a01e('0xaa')](createObjHistory(_0x3ddccb,_0x1469f0,'BLACKLIST',0xd,'Blacklist'),_0x59a01e('0xf3'),_0x59a01e('0x2c'));throw _0x59a01e('0x11c');}};},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x128')]=function(_0x33dd40){const _0x44dd40=_0x2fe8b4,_0x3462ab=this;let _0x52281c=_0x33dd40['limitCalls']-_0x33dd40[_0x44dd40('0x57')]-_0x33dd40[_0x44dd40('0xe9')];emitCampaignSummary(_0x33dd40),_0x52281c>0x0&&(_0x52281c>this[_0x44dd40('0x46')]&&(_0x52281c=this[_0x44dd40('0x46')]),_0x33dd40['temp']+=_0x52281c,this['getContactDialerIvr'](_0x33dd40['id'],_0x52281c,_0x33dd40[_0x44dd40('0x37')])[_0x44dd40('0x16e')](function(_0x2c5ea5){const _0x25cd84=_0x44dd40;_0x33dd40[_0x25cd84('0xe9')]-=_0x52281c,_0x33dd40['temp']=_0x33dd40[_0x25cd84('0xe9')]>0x0?_0x33dd40[_0x25cd84('0xe9')]:0x0;if(!checkContactEmpty(_0x2c5ea5))_0x33dd40[_0x25cd84('0xaf')]='AVAILABLE_CONTACTS_FINISHED',logger[_0x25cd84('0x2e')](_0x25cd84('0x11b')+_0x33dd40[_0x25cd84('0x12c')]);else{_0x33dd40['originated']+=_0x2c5ea5[_0x25cd84('0x199')],_0x33dd40['message']=_0x25cd84('0xcd');for(let _0x1937e0=0x0;_0x1937e0<_0x2c5ea5[_0x25cd84('0x199')];_0x1937e0+=0x1){_0x33dd40['ivrTotalCallsDays']+=0x1,_[_0x25cd84('0x7d')](_0x2c5ea5[_0x1937e0])||_[_0x25cd84('0x7d')](_0x2c5ea5[_0x1937e0]['Contact'])||_[_0x25cd84('0x7d')](_0x2c5ea5[_0x1937e0]['Contact'][_0x25cd84('0x137')])?_0x3462ab[_0x25cd84('0xfe')](_0x25cd84('0x119'),_0x33dd40,_0x2c5ea5[_0x1937e0]):_0x3462ab[_0x25cd84('0x153')](_[_0x25cd84('0xbf')](_0x2c5ea5[_0x1937e0],[_0x25cd84('0x1a'),'Contact.phone']))[_0x25cd84('0x16e')](_0x3462ab[_0x25cd84('0x24')](_0x33dd40,_0x2c5ea5[_0x1937e0]))[_0x25cd84('0x19a')](_0x3462ab[_0x25cd84('0x93')](_0x25cd84('0x42'),_0x33dd40));}}})[_0x44dd40('0x19a')](loggerGetContactDialer(_0x44dd40('0xda'),_0x33dd40,_0x52281c)));},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x1ba')]=function(_0x280dfb,_0x2b8ffd){const _0x492b98=_0x2fe8b4,_0x576afd=this,_0x491dd5=[];let _0x2910dc=_0x2b8ffd>=0x1?_0x2b8ffd:0x1;_0x280dfb[_0x492b98('0x8f')]===_0x492b98('0xca')&&(_0x2910dc=0x1);let _0x37923c=Math[_0x492b98('0x1fa')](_0x280dfb[_0x492b98('0x163')]*_0x2910dc)-_0x280dfb['originated']-_0x280dfb[_0x492b98('0xe9')];emitVoiceQueueSummary(_0x280dfb);if(_0x280dfb['dialLimitQueue']>0x0){const _0x20c56d=_0x280dfb['dialLimitQueue']-_0x280dfb['originated']-_0x280dfb[_0x492b98('0x17a')]-_0x280dfb[_0x492b98('0xe9')]-_0x280dfb[_0x492b98('0x1aa')];_0x37923c>_0x20c56d&&(_0x37923c=_0x20c56d);}if(_0x37923c>0x0){_0x280dfb['dialMethod']==='booked'&&(_0x37923c=0x1);_0x37923c>this[_0x492b98('0x46')]&&(_0x37923c=this[_0x492b98('0x46')]);_0x280dfb[_0x492b98('0xe9')]+=_0x37923c;for(const _0x1e2137 in this[_0x492b98('0x208')]){typeof this[_0x492b98('0x208')][_0x1e2137]!==_0x492b98('0xf7')&&(this[_0x492b98('0x208')][_0x1e2137][_0x492b98('0x3b')]==='not_inuse'&&this['agents'][_0x1e2137][_0x492b98('0x124')]===_0x492b98('0x143')&&_0x491dd5[_0x492b98('0x11')](this[_0x492b98('0x208')][_0x1e2137]['id']));}this['getContactDialer'](_0x280dfb['id'],_0x491dd5,_0x37923c,_0x280dfb[_0x492b98('0x37')])[_0x492b98('0x16e')](function(_0x54bb53){const _0x4b1308=_0x492b98;_0x280dfb['temp']-=_0x37923c,_0x280dfb['temp']=_0x280dfb['temp']>0x0?_0x280dfb[_0x4b1308('0xe9')]:0x0;if(!checkContactEmpty(_0x54bb53))_0x576afd[_0x4b1308('0x1f0')](_0x280dfb)['then'](sendMessageReschedule(_0x280dfb))[_0x4b1308('0x19a')](loggerCatch(_0x4b1308('0x1c')));else{_0x280dfb[_0x4b1308('0x57')]+=_0x54bb53[_0x4b1308('0x199')],_0x280dfb[_0x4b1308('0xaf')]=_0x280dfb[_0x4b1308('0x8f')]===_0x4b1308('0xca')?'ACTIVE':_0x4b1308('0xcd');for(let _0x58e296=0x0;_0x58e296<_0x54bb53[_0x4b1308('0x199')];_0x58e296+=0x1){_[_0x4b1308('0x7d')](_0x54bb53[_0x58e296])||_[_0x4b1308('0x7d')](_0x54bb53[_0x58e296][_0x4b1308('0x16f')])||_['isNil'](_0x54bb53[_0x58e296][_0x4b1308('0x16f')]['phone'])?_0x576afd[_0x4b1308('0xfe')](_0x4b1308('0x119'),_0x280dfb,_0x54bb53[_0x58e296]):_0x576afd[_0x4b1308('0x1e8')](_[_0x4b1308('0xbf')](_0x54bb53[_0x58e296],['VoiceQueueId',_0x4b1308('0x183')]))[_0x4b1308('0x16e')](_0x576afd[_0x4b1308('0x24')](_0x280dfb,_0x54bb53[_0x58e296]))[_0x4b1308('0x19a')](_0x576afd[_0x4b1308('0x93')]('[actionOriginate]\x20',_0x280dfb));}}})[_0x492b98('0x19a')](loggerGetContactDialer(_0x492b98('0x9a'),_0x280dfb,_0x37923c));}},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x172')]=function(_0x501432){const _0x7b7ab5=_0x2fe8b4;if(_0x501432[_0x7b7ab5('0x6a')]>0x0){const _0x42741e=_0x501432[_0x7b7ab5('0x6a')]-_0x501432['originated']-_0x501432['talking'];_0x42741e>0x0?this[_0x7b7ab5('0x110')](_0x501432):loggerPredictiveCalls[_0x7b7ab5('0x2e')](_0x7b7ab5('0x45'));}else this[_0x7b7ab5('0x110')](_0x501432);},Dialer['prototype'][_0x2fe8b4('0x110')]=function(_0xebe44f){const _0x5b7568=_0x2fe8b4,_0x2bde19=this,_0x2dc1cb=[];_0xebe44f[_0x5b7568('0x57')]+=0x1;for(const _0x1a936d in this[_0x5b7568('0x208')]){typeof this[_0x5b7568('0x208')][_0x1a936d]!=='undefined'&&(this[_0x5b7568('0x208')][_0x1a936d][_0x5b7568('0x3b')]===_0x5b7568('0x1b6')&&this[_0x5b7568('0x208')][_0x1a936d]['status']===_0x5b7568('0x143')&&_0x2dc1cb[_0x5b7568('0x11')](this[_0x5b7568('0x208')][_0x1a936d]['id']));}this['getContactDialer'](_0xebe44f['id'],_0x2dc1cb,0x1,_0xebe44f[_0x5b7568('0x37')])['then'](function(_0xe8d620){const _0xd64ee7=_0x5b7568;!checkContactEmpty(_0xe8d620)?(checkContactLowerLimitOriginate(_0xebe44f,0x1,0x0),_0x2bde19[_0xd64ee7('0x1f0')](_0xebe44f)[_0xd64ee7('0x16e')](sendMessageReschedule(_0xebe44f))['catch'](loggerCatch(_0xd64ee7('0x1c')))):(_0xebe44f[_0xd64ee7('0xaf')]=_0xd64ee7('0xcd'),_[_0xd64ee7('0x7d')](_0xe8d620[0x0])||_['isNil'](_0xe8d620[0x0][_0xd64ee7('0x16f')])||_[_0xd64ee7('0x7d')](_0xe8d620[0x0][_0xd64ee7('0x16f')][_0xd64ee7('0x137')])?_0x2bde19[_0xd64ee7('0xfe')](_0xd64ee7('0x119'),_0xebe44f,_0xe8d620[0x0]):_0x2bde19[_0xd64ee7('0x1e8')](_[_0xd64ee7('0xbf')](_0xe8d620[0x0],[_0xd64ee7('0x1f9'),'Contact.phone']))[_0xd64ee7('0x16e')](_0x2bde19[_0xd64ee7('0x24')](_0xebe44f,_0xe8d620[0x0]))[_0xd64ee7('0x19a')](_0x2bde19[_0xd64ee7('0x93')](_0xd64ee7('0x1a1'),_0xebe44f)));})['catch'](loggerGetContactDialer(_0x5b7568('0x0'),_0xebe44f,0x1)),emitVoiceQueueSummary(_0xebe44f);},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x179')]=function(_0x3382af,_0x34fdd2,_0x428501,_0x257d97,_0x183a07,_0x20406a){const _0x4dba62=_0x2fe8b4;return loggerPredictive[_0x4dba62('0x2e')](_0x4dba62('0x5e')),loggerPredictive[_0x4dba62('0x2e')](_0x4dba62('0x1ef'),_0x3382af),loggerPredictive['info'](_0x4dba62('0x39'),_0x34fdd2),loggerPredictive[_0x4dba62('0x2e')]('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',_0x428501),loggerPredictive[_0x4dba62('0x2e')](_0x4dba62('0x1c8'),_0x257d97),loggerPredictive[_0x4dba62('0x2e')](_0x4dba62('0x74'),_0x183a07),loggerPredictive[_0x4dba62('0x2e')](_0x4dba62('0xcb')),new Promise(function(_0x2b7411,_0xbc6fc5){const _0x2f2d6a=_0x4dba62;if(_0x3382af<=0x0||isNaN(_0x3382af))return _0xbc6fc5(msgResponse('[abandonmentRate]',_0x2f2d6a('0x1da'),_0x2f2d6a('0x168')+_0x3382af));if(_0x428501<=0x0||isNaN(_0x428501))return _0xbc6fc5(msgResponse(_0x2f2d6a('0x1e'),'Error','Ts\x20=\x20'+_0x428501));if(_0x257d97<=0x0||isNaN(_0x257d97))return _0xbc6fc5(msgResponse(_0x2f2d6a('0x1e'),_0x2f2d6a('0x1da'),_0x2f2d6a('0x4f')+_0x257d97));if(_0x34fdd2<=0x0||isNaN(_0x34fdd2))return _0xbc6fc5(msgResponse(_0x2f2d6a('0x1e'),_0x2f2d6a('0x1da'),_0x2f2d6a('0x190')+_0x34fdd2));if(_0x183a07<=0x0||isNaN(_0x183a07))return _0xbc6fc5(msgResponse('[abandonmentRate]','Error',_0x2f2d6a('0xba')+_0x183a07));_0x20406a=_0x20406a||0x0;const _0x1110dc=0x1/_0x428501;let _0x13b1a9=0x0,_0x91d2e4=0x0,_0x25f7f9=0x0,_0x3e352a=0x0,_0x4d9899=0x0;for(_0x4d9899=0x0;_0x25f7f9<_0x183a07;_0x4d9899+=0x1){_0x91d2e4=_0x4d9899/_0x34fdd2,_0x13b1a9=(_0x257d97*_0x91d2e4+_0x20406a)/_0x1110dc,_0x25f7f9=erlangb(_0x13b1a9,_0x3382af),_0x3e352a=_0x13b1a9/_0x3382af*(0x1-erlangb(_0x13b1a9,_0x3382af));}return _0x2b7411({'erlangCalls':_0x4d9899,'erlangCallToSecond':_0x34fdd2/_0x4d9899,'erlangAbandonmentRate':_0x25f7f9,'erlangBusyFactor':_0x3e352a});});},Dialer[_0x2fe8b4('0x11a')][_0x2fe8b4('0x9d')]=function(_0xfb308e,_0x5d1d3a,_0x3de473,_0x54b588,_0x170775,_0x37ca04){const _0x3a2450=_0x2fe8b4;return loggerPredictive[_0x3a2450('0x2e')](_0x3a2450('0x130')),loggerPredictive[_0x3a2450('0x2e')](_0x3a2450('0x1ef'),_0xfb308e),loggerPredictive[_0x3a2450('0x2e')](_0x3a2450('0x39'),_0x5d1d3a),loggerPredictive['info'](_0x3a2450('0x15c'),_0x3de473),loggerPredictive[_0x3a2450('0x2e')](_0x3a2450('0x1c8'),_0x54b588),loggerPredictive[_0x3a2450('0x2e')]('Umin:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',_0x170775),loggerPredictive['info'](_0x3a2450('0xcb')),new Promise(function(_0x49ea48,_0x1fee60){const _0x59c846=_0x3a2450;if(_0xfb308e<=0x0||isNaN(_0xfb308e))return _0x1fee60(msgResponse(_0x59c846('0x19'),'Error','m\x20=\x20'+_0xfb308e));if(_0x3de473<=0x0||isNaN(_0x3de473))return _0x1fee60(msgResponse(_0x59c846('0x19'),_0x59c846('0x1da'),_0x59c846('0xce')+_0x3de473));if(_0x54b588<=0x0||isNaN(_0x54b588))return _0x1fee60(msgResponse(_0x59c846('0x19'),'Error',_0x59c846('0x4f')+_0x54b588));if(_0x5d1d3a<=0x0||isNaN(_0x5d1d3a))return _0x1fee60(msgResponse(_0x59c846('0x19'),_0x59c846('0x1da'),_0x59c846('0x190')+_0x5d1d3a));if(_0x170775<=0x0||isNaN(_0x170775))return _0x1fee60(msgResponse(_0x59c846('0x19'),_0x59c846('0x1da'),_0x59c846('0xe')+_0x170775));_0x37ca04=_0x37ca04||0x0;const _0x25532a=0x1/_0x3de473;let _0x1fb779=0x0,_0x1d8d8b=0x0,_0x377254=0x0,_0x356240=0x0,_0xcf8e58=0x0;for(_0xcf8e58=0x0;_0x356240<_0x170775;_0xcf8e58+=0x1){_0x1d8d8b=_0xcf8e58/_0x5d1d3a,_0x1fb779=(_0x54b588*_0x1d8d8b+_0x37ca04)/_0x25532a,_0x377254=erlangb(_0x1fb779,_0xfb308e),_0x356240=_0x1fb779/_0xfb308e*(0x1-erlangb(_0x1fb779,_0xfb308e));}return _0x49ea48({'erlangCalls':_0xcf8e58,'erlangCallToSecond':_0x5d1d3a/_0xcf8e58,'erlangAbandonmentRate':_0x377254,'erlangBusyFactor':_0x356240});});},module[_0x2fe8b4('0x189')]=Dialer; \ No newline at end of file diff --git a/server/services/ami/dialer/queueCallerAbandon.js b/server/services/ami/dialer/queueCallerAbandon.js index ebfef97..66e978d 100644 --- a/server/services/ami/dialer/queueCallerAbandon.js +++ b/server/services/ami/dialer/queueCallerAbandon.js @@ -1 +1 @@ -const a1057_0x2bad=['countabandonedretry','countagentrejectretry','countbusyretry','callbackuniqueid','countcongestionretry','holdtime','membername','UserId','milliseconds','VoiceQueueId','connectedlinename','reason','uniqueid','campaigntype','ContactId','starttime','CampaignId','endtime','ListId','outbound','countnosuchnumberretry','moment','talktime','originatecalleridnum','droptime','calleridnum','originatecalleridname','queue','countdropretry','responsetime','exports','type','callback','scheduledat','name','countnoanswerretry','countmachineretry'];(function(_0x2954e9,_0x2bad18){const _0x1feefe=function(_0x862b3e){while(--_0x862b3e){_0x2954e9['push'](_0x2954e9['shift']());}};_0x1feefe(++_0x2bad18);}(a1057_0x2bad,0x157));const a1057_0x1fee=function(_0x2954e9,_0x2bad18){_0x2954e9=_0x2954e9-0x0;let _0x1feefe=a1057_0x2bad[_0x2954e9];return _0x1feefe;};const _0x4c827e=a1057_0x1fee;'use strict';const moment=require(_0x4c827e('0xb'));function getSeconds(_0x862b3e,_0x741df){const _0x4d8837=_0x4c827e,_0x13e8cd=moment(_0x862b3e)[_0x4d8837('0x23')](0x0),_0x508586=moment(_0x741df)[_0x4d8837('0x23')](0x0);return _0x13e8cd['diff'](_0x508586,'seconds');}function QueueCallerAbandon(_0x52bc17,_0x2d5e27){const _0x47d26c=_0x4c827e;this[_0x47d26c('0x17')]=_0x52bc17[_0x47d26c('0x17')],this[_0x47d26c('0x15')]=_0x52bc17[_0x47d26c('0x15')],this[_0x47d26c('0x3')]=_0x52bc17[_0x47d26c('0x15')]===_0x47d26c('0x9')?'queue':_0x52bc17[_0x47d26c('0x15')],this['countbusyretry']=_0x52bc17[_0x47d26c('0x1d')],this[_0x47d26c('0x1f')]=_0x52bc17['countcongestionretry'],this[_0x47d26c('0x19')]=_0x52bc17[_0x47d26c('0x19')],this['countglobal']=_0x52bc17[_0x47d26c('0x1d')]+_0x52bc17[_0x47d26c('0x1f')]+_0x52bc17['countnoanswerretry']+_0x52bc17[_0x47d26c('0xa')]+_0x52bc17[_0x47d26c('0x12')]+_0x52bc17[_0x47d26c('0x1b')]+_0x52bc17[_0x47d26c('0x1a')]+_0x52bc17[_0x47d26c('0x1c')],this[_0x47d26c('0xa')]=_0x52bc17[_0x47d26c('0xa')],this[_0x47d26c('0x12')]=_0x52bc17[_0x47d26c('0x12')],this[_0x47d26c('0x1b')]=_0x52bc17[_0x47d26c('0x1b')],this[_0x47d26c('0x1a')]=_0x52bc17[_0x47d26c('0x1a')],this[_0x47d26c('0x1c')]=_0x52bc17[_0x47d26c('0x1c')],this[_0x47d26c('0x2')]=_0x2d5e27['uniqueid'],this['calleridname']=_0x52bc17[_0x47d26c('0x18')],this[_0x47d26c('0xf')]=_0x52bc17['number'],this[_0x47d26c('0x5')]=_0x52bc17['starttime'],this[_0x47d26c('0x13')]=_0x52bc17['responsetime'],this[_0x47d26c('0xe')]=_0x52bc17[_0x47d26c('0xe')],this[_0x47d26c('0x7')]=this[_0x47d26c('0xe')],this['ringtime']=getSeconds(_0x52bc17[_0x47d26c('0x13')],_0x52bc17[_0x47d26c('0x5')]),this[_0x47d26c('0x20')]=getSeconds(this[_0x47d26c('0xe')],_0x52bc17['responsetime']),this[_0x47d26c('0xc')]=0x0,this[_0x47d26c('0x11')]=_0x2d5e27[_0x47d26c('0x11')],this[_0x47d26c('0x21')]=_0x2d5e27[_0x47d26c('0x0')],this[_0x47d26c('0x1')]=_0x2d5e27[_0x47d26c('0x1')],this['callback']=_0x52bc17[_0x47d26c('0x16')],this['callbackuniqueid']=_0x52bc17[_0x47d26c('0x1e')],this['callbackat']=_0x52bc17['callbackat'],this['recallme']=_0x52bc17['recallme'],this[_0x47d26c('0x4')]=_0x52bc17[_0x47d26c('0x4')],this[_0x47d26c('0x8')]=_0x52bc17[_0x47d26c('0x8')],this[_0x47d26c('0x22')]=_0x52bc17[_0x47d26c('0x22')],this[_0x47d26c('0x24')]=_0x52bc17[_0x47d26c('0x24')],this[_0x47d26c('0x6')]=_0x52bc17[_0x47d26c('0x6')],this[_0x47d26c('0xd')]=_0x52bc17[_0x47d26c('0xd')]||'',this[_0x47d26c('0x10')]=_0x52bc17[_0x47d26c('0x10')]||'';}module[_0x4c827e('0x14')]=QueueCallerAbandon; \ No newline at end of file +const a1058_0x1d9a=['countbusyretry','campaigntype','scheduledat','talktime','responsetime','name','starttime','recallme','diff','queue','UserId','CampaignId','outbound','callback','droptime','callbackat','countagentrejectretry','countmachineretry','calleridname','countnoanswerretry','ContactId','countdropretry','endtime','number','uniqueid','membername','reason','countcongestionretry','exports','countabandonedretry','countnosuchnumberretry','originatecalleridname','seconds','VoiceQueueId','calleridnum','type','callbackuniqueid','originatecalleridnum'];(function(_0x1dd855,_0x1d9a07){const _0x32ddd1=function(_0xcfbb91){while(--_0xcfbb91){_0x1dd855['push'](_0x1dd855['shift']());}};_0x32ddd1(++_0x1d9a07);}(a1058_0x1d9a,0xc2));const a1058_0x32dd=function(_0x1dd855,_0x1d9a07){_0x1dd855=_0x1dd855-0x0;let _0x32ddd1=a1058_0x1d9a[_0x1dd855];return _0x32ddd1;};const _0x8be3e9=a1058_0x32dd;'use strict';const moment=require('moment');function getSeconds(_0xcfbb91,_0x1730f4){const _0x3a7408=a1058_0x32dd,_0x2b0021=moment(_0xcfbb91)['milliseconds'](0x0),_0x2cf231=moment(_0x1730f4)['milliseconds'](0x0);return _0x2b0021[_0x3a7408('0x4')](_0x2cf231,_0x3a7408('0x1c'));}function QueueCallerAbandon(_0x3f313f,_0x104420){const _0x2faaa4=a1058_0x32dd;this[_0x2faaa4('0x24')]=_0x3f313f[_0x2faaa4('0x24')],this[_0x2faaa4('0x1f')]=_0x3f313f[_0x2faaa4('0x1f')],this[_0x2faaa4('0x23')]=_0x3f313f[_0x2faaa4('0x1f')]===_0x2faaa4('0x8')?_0x2faaa4('0x5'):_0x3f313f[_0x2faaa4('0x1f')],this['countbusyretry']=_0x3f313f[_0x2faaa4('0x22')],this[_0x2faaa4('0x17')]=_0x3f313f['countcongestionretry'],this[_0x2faaa4('0xf')]=_0x3f313f[_0x2faaa4('0xf')],this['countglobal']=_0x3f313f['countbusyretry']+_0x3f313f[_0x2faaa4('0x17')]+_0x3f313f['countnoanswerretry']+_0x3f313f['countnosuchnumberretry']+_0x3f313f[_0x2faaa4('0x11')]+_0x3f313f['countabandonedretry']+_0x3f313f['countmachineretry']+_0x3f313f[_0x2faaa4('0xc')],this[_0x2faaa4('0x1a')]=_0x3f313f['countnosuchnumberretry'],this[_0x2faaa4('0x11')]=_0x3f313f[_0x2faaa4('0x11')],this[_0x2faaa4('0x19')]=_0x3f313f[_0x2faaa4('0x19')],this[_0x2faaa4('0xd')]=_0x3f313f['countmachineretry'],this[_0x2faaa4('0xc')]=_0x3f313f[_0x2faaa4('0xc')],this[_0x2faaa4('0x14')]=_0x104420[_0x2faaa4('0x14')],this[_0x2faaa4('0xe')]=_0x3f313f[_0x2faaa4('0x1')],this[_0x2faaa4('0x1e')]=_0x3f313f[_0x2faaa4('0x13')],this[_0x2faaa4('0x2')]=_0x3f313f['starttime'],this[_0x2faaa4('0x0')]=_0x3f313f[_0x2faaa4('0x0')],this[_0x2faaa4('0xa')]=_0x3f313f[_0x2faaa4('0xa')],this[_0x2faaa4('0x12')]=this[_0x2faaa4('0xa')],this['ringtime']=getSeconds(_0x3f313f[_0x2faaa4('0x0')],_0x3f313f[_0x2faaa4('0x2')]),this['holdtime']=getSeconds(this[_0x2faaa4('0xa')],_0x3f313f[_0x2faaa4('0x0')]),this[_0x2faaa4('0x25')]=0x0,this['queue']=_0x104420[_0x2faaa4('0x5')],this[_0x2faaa4('0x15')]=_0x104420['connectedlinename'],this[_0x2faaa4('0x16')]=_0x104420[_0x2faaa4('0x16')],this['callback']=_0x3f313f[_0x2faaa4('0x9')],this[_0x2faaa4('0x20')]=_0x3f313f[_0x2faaa4('0x20')],this['callbackat']=_0x3f313f[_0x2faaa4('0xb')],this[_0x2faaa4('0x3')]=_0x3f313f['recallme'],this[_0x2faaa4('0x10')]=_0x3f313f[_0x2faaa4('0x10')],this['ListId']=_0x3f313f['ListId'],this[_0x2faaa4('0x6')]=_0x3f313f[_0x2faaa4('0x6')],this[_0x2faaa4('0x1d')]=_0x3f313f['VoiceQueueId'],this[_0x2faaa4('0x7')]=_0x3f313f['CampaignId'],this['originatecalleridnum']=_0x3f313f[_0x2faaa4('0x21')]||'',this[_0x2faaa4('0x1b')]=_0x3f313f[_0x2faaa4('0x1b')]||'';}module[_0x8be3e9('0x18')]=QueueCallerAbandon; \ No newline at end of file diff --git a/server/services/ami/fax/action.js b/server/services/ami/fax/action.js index 8e1891a..f5752e5 100644 --- a/server/services/ami/fax/action.js +++ b/server/services/ami/fax/action.js @@ -1 +1 @@ -const a1058_0xec8d=['localstationid','fax','path','AttachmentId','name','util','headerinfo','format','Trunk','exports','uniqueid'];(function(_0x1faa54,_0xec8db3){const _0x408857=function(_0x269acb){while(--_0x269acb){_0x1faa54['push'](_0x1faa54['shift']());}};_0x408857(++_0xec8db3);}(a1058_0xec8d,0xc0));const a1058_0x4088=function(_0x1faa54,_0xec8db3){_0x1faa54=_0x1faa54-0x0;let _0x408857=a1058_0xec8d[_0x1faa54];return _0x408857;};const _0x1ab4df=a1058_0x4088;'use strict';const util=require(_0x1ab4df('0x0'));function Action(_0x269acb,_0x49cc02,_0x33811d){const _0x1c0761=_0x1ab4df;this[_0x1c0761('0x5')]=_0x269acb||undefined,this['channel']=util[_0x1c0761('0x2')]('%s/%s/%s',_0x49cc02['tech'],_0x49cc02[_0x1c0761('0x3')][_0x1c0761('0xa')],_0x33811d[_0x1c0761('0x7')]),this[_0x1c0761('0x6')]=_0x49cc02[_0x1c0761('0x6')],this['headerinfo']=_0x49cc02[_0x1c0761('0x1')],this[_0x1c0761('0x8')]=_0x33811d[_0x1c0761('0x8')],this[_0x1c0761('0x9')]=_0x33811d[_0x1c0761('0x9')];}module[_0x1ab4df('0x4')]=Action; \ No newline at end of file +const a1059_0x1ca4=['localstationid','util','fax','Trunk','tech','name','%s/%s/%s','format','headerinfo','path','channel','AttachmentId'];(function(_0x5022d0,_0x1ca403){const _0xfa63f8=function(_0x1eb903){while(--_0x1eb903){_0x5022d0['push'](_0x5022d0['shift']());}};_0xfa63f8(++_0x1ca403);}(a1059_0x1ca4,0xfc));const a1059_0xfa63=function(_0x5022d0,_0x1ca403){_0x5022d0=_0x5022d0-0x0;let _0xfa63f8=a1059_0x1ca4[_0x5022d0];return _0xfa63f8;};const _0x3a593d=a1059_0xfa63;'use strict';const util=require(_0x3a593d('0x1'));function Action(_0x1eb903,_0x21692d,_0x15b907){const _0x1c2052=_0x3a593d;this['uniqueid']=_0x1eb903||undefined,this[_0x1c2052('0xa')]=util[_0x1c2052('0x7')](_0x1c2052('0x6'),_0x21692d[_0x1c2052('0x4')],_0x21692d[_0x1c2052('0x3')][_0x1c2052('0x5')],_0x15b907[_0x1c2052('0x2')]),this[_0x1c2052('0x0')]=_0x21692d[_0x1c2052('0x0')],this[_0x1c2052('0x8')]=_0x21692d[_0x1c2052('0x8')],this[_0x1c2052('0x9')]=_0x15b907[_0x1c2052('0x9')],this[_0x1c2052('0xb')]=_0x15b907[_0x1c2052('0xb')];}module['exports']=Action; \ No newline at end of file diff --git a/server/services/ami/fax/index.js b/server/services/ami/fax/index.js index 9d856e5..310fec9 100644 --- a/server/services/ami/fax/index.js +++ b/server/services/ami/fax/index.js @@ -1 +1 @@ -const a1060_0x19df=['actions','updateStatus','SIP/%s','logger','parse','../rpc/attachment','faxAccounts','execute','Trunk','addVariables','Empty\x20path','exports','resolution','../ami','\x20notify\x20','variablesAction','reason','[Fax][Message][NoUpdate2]','\x20result\x20conversion\x20file\x20','Convert\x20pdf\x20to\x20tif','dir','[Fax][Message][Error][NoUpdate2]','SENDING\x20FAILED','./util/util','trunks','Empty\x20Fax','channels','value','operation','uniqueid','./action','isTrunkReachable','status','channel','%s/%s.tif','tiff2pdf','Trunk\x20Reachable','syncFaxStatus','Fax\x20received','[Fax][Message][Updated]','[Fax][Message][Error][Updated]','filename','pagestransferred','Fax\x20failed','[Fax][execOriginate][success]','hangup','send','syncNewState','application/pdf','faxstatusstring','newexten','Action','variable','\x20syncFaxStatus\x20','execOriginate','stringify','../rpc/faxMessage','syncOriginateResponse','exten','unmonitored','info','.pdf','SENDING\x20FAILED\x20','AttachmentId','create','active','transferrate','isValid','Trunk\x20not\x20working','undefined','catch','./util/gs','format','FaxAccountId','syncNewExten','syncHangup','\x20receiveFax\x20','then','ext','path','channelstatedesc','fax','calleridnum','/var/opt/motion2/server/files/attachments/','name','isNil','checkAfterSend','[Fax][checkTrunk][Empty\x20Fax]','prototype','Is\x20Valid','update','checkTrunk','newchannel','localstationid','../../../config/logger','SUCCESS','error','syncReceiveFax','syncNewchannel','notify','message','faxpages','receivefax','[Fax][Message][Error][NoUpdate1]','bind','../rpc/faxAccount','originateresponse','remotestationid','util','faxstatus'];(function(_0x1f10e9,_0x19df01){const _0x1345ab=function(_0x452a16){while(--_0x452a16){_0x1f10e9['push'](_0x1f10e9['shift']());}};_0x1345ab(++_0x19df01);}(a1060_0x19df,0x133));const a1060_0x1345=function(_0x1f10e9,_0x19df01){_0x1f10e9=_0x1f10e9-0x0;let _0x1345ab=a1060_0x19df[_0x1f10e9];return _0x1345ab;};const _0xbb18b=a1060_0x1345;'use strict';const util=require(_0xbb18b('0x15')),_=require('lodash'),uuid=require('uuid'),path=require('path'),tiff2pdf=require(_0xbb18b('0x3a')),gs=require(_0xbb18b('0x5e')),logger=require(_0xbb18b('0x7'))('fax'),ami=require(_0xbb18b('0x24')),ut=require(_0xbb18b('0x2e')),Action=require(_0xbb18b('0x35')),faxAccount=require(_0xbb18b('0x12')),attachment=require(_0xbb18b('0x1c')),faxMessage=require(_0xbb18b('0x4f'));function Fax(_0x452a16){const _0x324a70=_0xbb18b;this['channels']={},this[_0x324a70('0x1d')]=_0x452a16['faxAccounts'],this[_0x324a70('0x2f')]=_0x452a16[_0x324a70('0x2f')],this[_0x324a70('0x17')]={},ami['on'](_0x324a70('0x5'),this[_0x324a70('0xb')][_0x324a70('0x11')](this)),ami['on']('varset',this['syncVarSet'][_0x324a70('0x11')](this)),ami['on']('newstate',this[_0x324a70('0x46')][_0x324a70('0x11')](this)),ami['on'](_0x324a70('0x49'),this[_0x324a70('0x61')][_0x324a70('0x11')](this)),ami['on']('faxstatus',this[_0x324a70('0x3c')][_0x324a70('0x11')](this)),ami['on'](_0x324a70('0xf'),this[_0x324a70('0xa')][_0x324a70('0x11')](this)),ami['on'](_0x324a70('0x44'),this[_0x324a70('0x62')]['bind'](this)),ami['on'](_0x324a70('0x13'),this[_0x324a70('0x50')]['bind'](this));}Fax[_0xbb18b('0x1')][_0xbb18b('0xb')]=function(_0x4c9245){const _0x4ea653=_0xbb18b;if(_0x4c9245['context']==='from-voip-provider')for(const _0x4c6092 in this[_0x4ea653('0x1d')]){typeof this[_0x4ea653('0x1d')][_0x4c6092]!==_0x4ea653('0x5c')&&(_0x4c9245[_0x4ea653('0x51')]===this[_0x4ea653('0x1d')][_0x4c6092][_0x4ea653('0x6')]&&(this[_0x4ea653('0x31')][_0x4c9245['uniqueid']]={},this[_0x4ea653('0x31')][_0x4c9245['uniqueid']]['channel']=_0x4c9245[_0x4ea653('0x38')],this[_0x4ea653('0x31')][_0x4c9245[_0x4ea653('0x34')]]['id']=this[_0x4ea653('0x1d')][_0x4c6092]['id'],this[_0x4ea653('0x31')][_0x4c9245[_0x4ea653('0x34')]][_0x4ea653('0x6b')]=this['faxAccounts'][_0x4c6092][_0x4ea653('0x6b')],logger[_0x4ea653('0x53')](_0x4c9245[_0x4ea653('0x34')],'\x20syncNewchannel\x20')));}this['actions'][_0x4c9245['uniqueid']]&&(this[_0x4ea653('0x31')][_0x4c9245[_0x4ea653('0x34')]]={},this[_0x4ea653('0x31')][_0x4c9245[_0x4ea653('0x34')]][_0x4ea653('0x38')]=_0x4c9245[_0x4ea653('0x38')],logger[_0x4ea653('0x53')](_0x4c9245[_0x4ea653('0x34')],'\x20syncNewchannel\x20'));},Fax['prototype']['syncVarSet']=function(_0x3fa853){const _0x4997ba=_0xbb18b;if(this[_0x4997ba('0x31')][_0x3fa853[_0x4997ba('0x34')]])for(const _0x1dc661 in _0x3fa853[_0x4997ba('0x4b')]){typeof _0x3fa853['variable'][_0x1dc661]!=='undefined'&&(this[_0x4997ba('0x31')][_0x3fa853[_0x4997ba('0x34')]][_0x1dc661]=_0x3fa853[_0x4997ba('0x32')]);}},Fax[_0xbb18b('0x1')]['syncNewState']=function(_0x23e072){const _0x49c91a=_0xbb18b;this[_0x49c91a('0x31')][_0x23e072['uniqueid']]&&(this[_0x49c91a('0x31')][_0x23e072[_0x49c91a('0x34')]]['channelstate']=_0x23e072['channelstate'],this['channels'][_0x23e072['uniqueid']]['channelstatedesc']=_0x23e072[_0x49c91a('0x67')]);},Fax[_0xbb18b('0x1')][_0xbb18b('0x61')]=function(_0x32aac2){const _0xd9199b=_0xbb18b;if(this[_0xd9199b('0x31')][_0x32aac2[_0xd9199b('0x34')]])for(const _0xc76cbd in _0x32aac2['variable']){typeof _0x32aac2['variable'][_0xc76cbd]!==_0xd9199b('0x5c')&&(this[_0xd9199b('0x31')][_0x32aac2[_0xd9199b('0x34')]][_0xc76cbd]=_0x32aac2[_0xd9199b('0x32')]);}},Fax[_0xbb18b('0x1')][_0xbb18b('0x3c')]=function(_0x53ada7){const _0x146481=_0xbb18b;this['channels'][_0x53ada7[_0x146481('0x34')]]&&(this[_0x146481('0x31')][_0x53ada7[_0x146481('0x34')]][_0x146481('0x33')]=_0x53ada7[_0x146481('0x33')],this[_0x146481('0x31')][_0x53ada7[_0x146481('0x34')]][_0x146481('0x37')]=_0x53ada7[_0x146481('0x37')],this[_0x146481('0x31')][_0x53ada7[_0x146481('0x34')]][_0x146481('0x6')]=_0x53ada7[_0x146481('0x6')],this[_0x146481('0x31')][_0x53ada7['uniqueid']][_0x146481('0x40')]=_0x53ada7[_0x146481('0x40')],logger[_0x146481('0x53')](_0x53ada7[_0x146481('0x34')],_0x146481('0x4c')));},Fax[_0xbb18b('0x1')][_0xbb18b('0xa')]=function(_0x3930cf){const _0x3010ce=_0xbb18b;if(this[_0x3010ce('0x31')][_0x3930cf[_0x3010ce('0x34')]]){const _0x469b8d=this[_0x3010ce('0x31')][_0x3930cf[_0x3010ce('0x34')]]['id'];this[_0x3010ce('0x31')][_0x3930cf[_0x3010ce('0x34')]][_0x3010ce('0x14')]=_0x3930cf['remotestationid'],this[_0x3010ce('0x31')][_0x3930cf[_0x3010ce('0x34')]][_0x3010ce('0x41')]=_0x3930cf[_0x3010ce('0x41')],this[_0x3010ce('0x31')][_0x3930cf[_0x3010ce('0x34')]][_0x3010ce('0x6')]=_0x3930cf[_0x3010ce('0x6')],this[_0x3010ce('0x31')][_0x3930cf[_0x3010ce('0x34')]][_0x3010ce('0x23')]=_0x3930cf[_0x3010ce('0x23')],this['channels'][_0x3930cf['uniqueid']][_0x3010ce('0x59')]=_0x3930cf[_0x3010ce('0x59')],this[_0x3010ce('0x31')][_0x3930cf['uniqueid']]['filename']=_0x3930cf[_0x3010ce('0x40')],this['channels'][_0x3930cf[_0x3010ce('0x34')]][_0x3010ce('0x69')]=_0x3930cf['calleridnum'],this[_0x3010ce('0x31')][_0x3930cf[_0x3010ce('0x34')]]['pagestransferred']>0x0&&tiff2pdf(_0x3930cf[_0x3010ce('0x40')],_0x3010ce('0x6a'),function(_0x28625f){const _0x19b253=_0x3010ce;logger['info'](_0x3930cf['uniqueid'],_0x19b253('0x29'),_0x28625f[_0x19b253('0xd')]),attachment[_0x19b253('0x57')]({'name':path[_0x19b253('0x1b')](_0x3930cf[_0x19b253('0x40')])[_0x19b253('0x6b')],'basename':path[_0x19b253('0x1b')](_0x3930cf['filename'])[_0x19b253('0x6b')]+_0x19b253('0x54'),'type':_0x19b253('0x47')})[_0x19b253('0x64')](function(_0x33d1e3){const _0x450f0e=_0x19b253;faxAccount[_0x450f0e('0xc')](_0x469b8d,{'from':_0x3930cf['calleridnum'],'mapKey':_0x450f0e('0x68'),'body':path[_0x450f0e('0x1b')](_0x3930cf['filename'])['name']+'.pdf','AttachmentId':_0x33d1e3['id']})[_0x450f0e('0x5d')](function(_0x562c8d){const _0x577c42=_0x450f0e;logger[_0x577c42('0x9')](_0x3930cf[_0x577c42('0x34')],_0x577c42('0x25'),JSON['stringify'](_0x562c8d));});})['catch'](function(_0x1bcdb9){const _0x543d72=_0x19b253;logger[_0x543d72('0x9')](_0x3930cf[_0x543d72('0x34')],'\x20receiveFax\x20',JSON[_0x543d72('0x4e')](_0x1bcdb9));});}),logger[_0x3010ce('0x53')](_0x3930cf[_0x3010ce('0x34')],_0x3010ce('0x63'));}},Fax['prototype'][_0xbb18b('0x50')]=function(_0x2f9588){const _0x2c47b2=_0xbb18b;this[_0x2c47b2('0x17')][_0x2f9588['uniqueid']]&&_['merge'](this[_0x2c47b2('0x31')][_0x2f9588[_0x2c47b2('0x34')]],_['pick'](_0x2f9588,['response',_0x2c47b2('0x27')]));};function updateStatus(_0x4652ec){const _0x7d4c50=_0xbb18b;_0x4652ec[_0x7d4c50('0x56')]?faxMessage[_0x7d4c50('0x3')](_0x4652ec[_0x7d4c50('0x56')],{'failMessage':_0x7d4c50('0x55')})[_0x7d4c50('0x64')](function(_0x2c068b){const _0x26848f=_0x7d4c50;ut['logger'](_0x26848f('0x3f'),_0x2c068b);})[_0x7d4c50('0x5d')](function(_0x473a47){const _0x57214c=_0x7d4c50;ut[_0x57214c('0x1a')](_0x57214c('0x10'),_0x473a47);}):ut['logger'](_0x7d4c50('0x2c'));}Fax['prototype'][_0xbb18b('0x18')]=function(_0x4c1c30,_0x46ce0e,_0x467340){const _0x462718=_0xbb18b,_0x336ec5=this;let _0x506abc={};_0x46ce0e?_0x506abc={'read':_0x46ce0e}:_0x506abc={'failMessage':_0x467340},this[_0x462718('0x17')][_0x4c1c30][_0x462718('0x56')]?faxMessage[_0x462718('0x3')](this['actions'][_0x4c1c30][_0x462718('0x56')],_0x506abc)[_0x462718('0x64')](function(_0x3d04c5){const _0x11fae6=_0x462718;ut['logger'](_0x11fae6('0x3e'),_0x3d04c5);})[_0x462718('0x5d')](function(_0x4f7057){ut['logger']('[Fax][Message][NoUpdate1]',_0x4f7057);})['finally'](function(){const _0x1de223=_0x462718;delete _0x336ec5['channels'][_0x4c1c30],delete _0x336ec5[_0x1de223('0x17')][_0x4c1c30];}):(ut[_0x462718('0x1a')](_0x462718('0x28')),delete this[_0x462718('0x31')][_0x4c1c30],delete this[_0x462718('0x17')][_0x4c1c30]);},Fax[_0xbb18b('0x1')]['syncHangup']=function(_0x3d37a5){const _0xf6b92a=_0xbb18b;this[_0xf6b92a('0x31')][_0x3d37a5['uniqueid']]&&(this[_0xf6b92a('0x17')][_0x3d37a5[_0xf6b92a('0x34')]]&&(this[_0xf6b92a('0x31')][_0x3d37a5[_0xf6b92a('0x34')]]['id']=this[_0xf6b92a('0x17')][_0x3d37a5[_0xf6b92a('0x34')]]['id'],this[_0xf6b92a('0x31')][_0x3d37a5[_0xf6b92a('0x34')]][_0xf6b92a('0x6b')]=this[_0xf6b92a('0x17')][_0x3d37a5[_0xf6b92a('0x34')]][_0xf6b92a('0x6b')]),logger[_0xf6b92a('0x53')](_0x3d37a5[_0xf6b92a('0x34')],this[_0xf6b92a('0x17')][_0x3d37a5['uniqueid']]?'\x20hangup\x20sendFile\x20':'\x20hangup\x20faxRiceive\x20',JSON[_0xf6b92a('0x4e')](this['channels'][_0x3d37a5[_0xf6b92a('0x34')]])),this['actions'][_0x3d37a5['uniqueid']]&&(this[_0xf6b92a('0x31')][_0x3d37a5[_0xf6b92a('0x34')]][_0xf6b92a('0xe')]>0x0&&this[_0xf6b92a('0x31')][_0x3d37a5[_0xf6b92a('0x34')]][_0xf6b92a('0x16')]===_0xf6b92a('0x8')?this[_0xf6b92a('0x18')](_0x3d37a5[_0xf6b92a('0x34')],!![]):this['updateStatus'](_0x3d37a5[_0xf6b92a('0x34')],![],this[_0xf6b92a('0x31')][_0x3d37a5[_0xf6b92a('0x34')]][_0xf6b92a('0x48')]?'SENDING\x20FAILED:\x20'+this[_0xf6b92a('0x31')][_0x3d37a5[_0xf6b92a('0x34')]][_0xf6b92a('0x48')]:_0xf6b92a('0x2d'))));},Fax[_0xbb18b('0x1')][_0xbb18b('0x45')]=function(_0x44b416){const _0x50ff89=this;return new Promise(function(_0x319950,_0x37bd7a){const _0xa3e3bf=a1060_0x1345;_0x50ff89[_0xa3e3bf('0x4d')](_0x44b416,_0x50ff89['faxAccounts'][_0x44b416['FaxAccountId']])[_0xa3e3bf('0x64')](function(_0x449231){const _0x23f7f5=_0xa3e3bf;ut[_0x23f7f5('0x1a')](_0x23f7f5('0x43'),_0x449231),_0x319950(ut[_0x23f7f5('0xd')](_0x23f7f5('0x3d')));})['catch'](function(_0x4dccaf){const _0x428f7b=_0xa3e3bf;ut[_0x428f7b('0x1a')]('[Fax][execOriginate][failure]',_0x4dccaf),updateStatus(_0x44b416),_0x37bd7a(ut['message'](_0x428f7b('0x42')));});});},Fax[_0xbb18b('0x1')][_0xbb18b('0x6d')]=function(_0x29bab6){const _0x149f2d=this;return new Promise(function(_0x568b63,_0x4cbe92){const _0x2af205=a1060_0x1345,_0x28a47d=_0x149f2d[_0x2af205('0x4')](_0x149f2d[_0x2af205('0x1d')][_0x29bab6[_0x2af205('0x60')]][_0x2af205('0x1f')],_0x29bab6);_0x28a47d[_0x2af205('0x5a')]?_0x568b63(ut['message'](_0x2af205('0x3b'))):_0x4cbe92(ut[_0x2af205('0xd')](_0x28a47d[_0x2af205('0xd')]));});};function originate(_0x2bb612,_0x1da352,_0x54f84d){return new Promise(function(_0x4d13f8,_0x377462){const _0x1c4918=a1060_0x1345;if(_0x54f84d){const _0x5f4cbe=util[_0x1c4918('0x5f')]('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[_0x1c4918('0x1b')](_0x2bb612[_0x1c4918('0x66')])['name'],_0x2bb612['path']);gs[_0x1c4918('0x1e')](_0x5f4cbe)['then'](function(){const _0xe8da42=_0x1c4918;_0x2bb612[_0xe8da42('0x66')]=util[_0xe8da42('0x5f')](_0xe8da42('0x39'),path[_0xe8da42('0x1b')](_0x2bb612['path'])[_0xe8da42('0x2b')],path[_0xe8da42('0x1b')](_0x2bb612[_0xe8da42('0x66')])[_0xe8da42('0x6b')]),_0x1da352['XMF-PATH']=_0x2bb612[_0xe8da42('0x66')],ut[_0xe8da42('0x1a')](_0xe8da42('0x2a'),''),ami[_0xe8da42('0x4a')](ut[_0xe8da42('0x26')](_0x2bb612,_0x1da352))['then'](function(_0x54f2c3){_0x4d13f8(_0x54f2c3);})[_0xe8da42('0x5d')](function(_0x5d6084){_0x377462(_0x5d6084);});})[_0x1c4918('0x5d')](function(_0x392d59){_0x377462(_0x392d59);});}else ami[_0x1c4918('0x4a')](ut[_0x1c4918('0x26')](_0x2bb612,_0x1da352))[_0x1c4918('0x64')](function(_0x202af3){_0x4d13f8(_0x202af3);})[_0x1c4918('0x5d')](function(_0x42a4fc){_0x377462(_0x42a4fc);});});}Fax[_0xbb18b('0x1')][_0xbb18b('0x4d')]=function(_0xde1f21,_0x3b6fa7){const _0x3dcfc7=this;return new Promise(function(_0xce1a81,_0x5ed797){const _0x35aff5=a1060_0x1345,_0x3a353e=uuid['v4'](),_0x2070d5=ut[_0x35aff5('0x20')](_0xde1f21,_0x3b6fa7);_0x3dcfc7[_0x35aff5('0x17')][_0x3a353e]=new Action(_0x3a353e,_0x3b6fa7,_0xde1f21);const _0x2baf10=_0x3dcfc7['actions'][_0x3a353e];path[_0x35aff5('0x1b')](_0xde1f21[_0x35aff5('0x66')])[_0x35aff5('0x65')]===_0x35aff5('0x54')?originate(_0x2baf10,_0x2070d5,!![])[_0x35aff5('0x64')](function(_0x2a71fc){_0xce1a81(_0x2a71fc);})[_0x35aff5('0x5d')](function(_0x1ee16a){_0x5ed797(_0x1ee16a);}):originate(_0x2baf10,_0x2070d5,![])['then'](function(_0x5cd9d2){_0xce1a81(_0x5cd9d2);})['catch'](function(_0x39a01a){_0x5ed797(_0x39a01a);});});},Fax[_0xbb18b('0x1')][_0xbb18b('0x36')]=function(_0x4776bd){const _0x46c65d=_0xbb18b;return!_['isNil'](_0x4776bd)&&!_['isNil'](_0x4776bd['name'])&&!_[_0x46c65d('0x6c')](_0x4776bd['active'])&&_0x4776bd[_0x46c65d('0x58')]&&!_[_0x46c65d('0x6c')](this['trunks'][util[_0x46c65d('0x5f')](_0x46c65d('0x19'),_0x4776bd[_0x46c65d('0x6b')])])&&!_[_0x46c65d('0x6c')](this[_0x46c65d('0x2f')][util[_0x46c65d('0x5f')]('SIP/%s',_0x4776bd['name'])]['status'])&&(this[_0x46c65d('0x2f')][util[_0x46c65d('0x5f')](_0x46c65d('0x19'),_0x4776bd[_0x46c65d('0x6b')])]['status']==='reachable'||this[_0x46c65d('0x2f')][util['format'](_0x46c65d('0x19'),_0x4776bd[_0x46c65d('0x6b')])][_0x46c65d('0x37')]===_0x46c65d('0x52'));},Fax[_0xbb18b('0x1')][_0xbb18b('0x4')]=function(_0x4a805b,_0xd0f40a){const _0x4c9212=_0xbb18b;if(!this['isTrunkReachable'](_0x4a805b))return ut[_0x4c9212('0x1a')]('[Fax][checkTrunk][Trunk\x20not\x20work]',_[_0x4c9212('0x6c')](_0x4a805b)?'':_0x4a805b['name']+'\x20Trunk\x20is\x20not\x20active'),{'isValid':![],'message':_0x4c9212('0x5b')};if(_[_0x4c9212('0x6c')](_0xd0f40a['fax']))return ut[_0x4c9212('0x1a')](_0x4c9212('0x0'),JSON[_0x4c9212('0x4e')](_0xd0f40a)),{'isValid':![],'message':_0x4c9212('0x30')};if(_[_0x4c9212('0x6c')](_0xd0f40a[_0x4c9212('0x66')]))return ut[_0x4c9212('0x1a')]('[Fax][checkTrunk][Empty\x20path]',JSON['stringify'](_0xd0f40a)),{'isValid':![],'message':_0x4c9212('0x21')};return{'isValid':!![],'message':_0x4c9212('0x2')};},module[_0xbb18b('0x22')]=Fax; \ No newline at end of file +const a1061_0x58be=['../rpc/faxAccount','response','execOriginate','parse','channel','faxAccounts','Trunk\x20Reachable','../rpc/attachment','[Fax][Message][Error][Updated]','syncNewState','name','syncOriginateResponse','Convert\x20pdf\x20to\x20tif','isTrunkReachable','[Fax][checkTrunk][Empty\x20path]','checkTrunk','SIP/%s','../../../config/logger','message','\x20syncFaxStatus\x20','./action','active','uuid','reason','\x20receiveFax\x20','/var/opt/motion2/server/files/attachments/','varset','[Fax][Message][NoUpdate1]','catch','operation','bind','syncNewchannel','path','calleridnum','./util/gs','actions','send','FaxAccountId','resolution','from-voip-provider','Empty\x20path','Is\x20Valid','remotestationid','lodash','filename','fax','pick','SUCCESS','\x20syncNewchannel\x20','.pdf','transferrate','context','prototype','application/pdf','logger','\x20result\x20conversion\x20file\x20','isNil','[Fax][execOriginate][failure]','%s/%s.tif','syncFaxStatus','updateStatus','undefined','hangup','merge','exports','[Fax][checkTrunk][Trunk\x20not\x20work]','unmonitored','../ami','Trunk','then','XMF-PATH','channelstate','format','trunks','Fax\x20failed','tiff2pdf','value','syncHangup','\x20hangup\x20sendFile\x20','stringify','status','pagestransferred','./util/util','Empty\x20Fax','variable','[Fax][Message][Updated]','syncVarSet','receivefax','create','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','info','uniqueid','syncNewExten','Action','originateresponse','channelstatedesc','isValid','notify','channels','faxstatusstring','SENDING\x20FAILED','AttachmentId','Trunk\x20not\x20working','[Fax][checkTrunk][Empty\x20Fax]','\x20Trunk\x20is\x20not\x20active','localstationid','faxstatus','finally'];(function(_0x5b632d,_0x58be5c){const _0x27ee6e=function(_0x1efbd0){while(--_0x1efbd0){_0x5b632d['push'](_0x5b632d['shift']());}};_0x27ee6e(++_0x58be5c);}(a1061_0x58be,0x124));const a1061_0x27ee=function(_0x5b632d,_0x58be5c){_0x5b632d=_0x5b632d-0x0;let _0x27ee6e=a1061_0x58be[_0x5b632d];return _0x27ee6e;};const _0x35648e=a1061_0x27ee;'use strict';const util=require('util'),_=require(_0x35648e('0x4b')),uuid=require(_0x35648e('0x36')),path=require(_0x35648e('0x40')),tiff2pdf=require(_0x35648e('0x6b')),gs=require(_0x35648e('0x42')),logger=require(_0x35648e('0x31'))(_0x35648e('0x4d')),ami=require(_0x35648e('0x63')),ut=require(_0x35648e('0x6')),Action=require(_0x35648e('0x34')),faxAccount=require(_0x35648e('0x20')),attachment=require(_0x35648e('0x27')),faxMessage=require('../rpc/faxMessage');function Fax(_0x1efbd0){const _0x4af636=_0x35648e;this['channels']={},this[_0x4af636('0x25')]=_0x1efbd0[_0x4af636('0x25')],this[_0x4af636('0x69')]=_0x1efbd0[_0x4af636('0x69')],this[_0x4af636('0x43')]={},ami['on']('newchannel',this[_0x4af636('0x3f')][_0x4af636('0x3e')](this)),ami['on'](_0x4af636('0x3a'),this[_0x4af636('0xa')][_0x4af636('0x3e')](this)),ami['on']('newstate',this[_0x4af636('0x29')][_0x4af636('0x3e')](this)),ami['on']('newexten',this[_0x4af636('0x10')]['bind'](this)),ami['on'](_0x4af636('0x1e'),this[_0x4af636('0x5b')][_0x4af636('0x3e')](this)),ami['on'](_0x4af636('0xb'),this['syncReceiveFax']['bind'](this)),ami['on'](_0x4af636('0x5e'),this[_0x4af636('0x1')][_0x4af636('0x3e')](this)),ami['on'](_0x4af636('0x12'),this[_0x4af636('0x2b')]['bind'](this));}Fax[_0x35648e('0x54')][_0x35648e('0x3f')]=function(_0x3d2c94){const _0x5b79f8=_0x35648e;if(_0x3d2c94[_0x5b79f8('0x53')]===_0x5b79f8('0x47'))for(const _0x1370a6 in this[_0x5b79f8('0x25')]){typeof this[_0x5b79f8('0x25')][_0x1370a6]!==_0x5b79f8('0x5d')&&(_0x3d2c94['exten']===this['faxAccounts'][_0x1370a6][_0x5b79f8('0x1d')]&&(this[_0x5b79f8('0x16')][_0x3d2c94[_0x5b79f8('0xf')]]={},this['channels'][_0x3d2c94[_0x5b79f8('0xf')]]['channel']=_0x3d2c94[_0x5b79f8('0x24')],this['channels'][_0x3d2c94[_0x5b79f8('0xf')]]['id']=this[_0x5b79f8('0x25')][_0x1370a6]['id'],this[_0x5b79f8('0x16')][_0x3d2c94[_0x5b79f8('0xf')]]['name']=this['faxAccounts'][_0x1370a6][_0x5b79f8('0x2a')],logger['info'](_0x3d2c94[_0x5b79f8('0xf')],_0x5b79f8('0x50'))));}this[_0x5b79f8('0x43')][_0x3d2c94[_0x5b79f8('0xf')]]&&(this[_0x5b79f8('0x16')][_0x3d2c94[_0x5b79f8('0xf')]]={},this['channels'][_0x3d2c94[_0x5b79f8('0xf')]]['channel']=_0x3d2c94[_0x5b79f8('0x24')],logger['info'](_0x3d2c94['uniqueid'],'\x20syncNewchannel\x20'));},Fax[_0x35648e('0x54')][_0x35648e('0xa')]=function(_0x47c5f4){const _0x77ce79=_0x35648e;if(this[_0x77ce79('0x16')][_0x47c5f4[_0x77ce79('0xf')]])for(const _0x2f88a9 in _0x47c5f4[_0x77ce79('0x8')]){typeof _0x47c5f4[_0x77ce79('0x8')][_0x2f88a9]!==_0x77ce79('0x5d')&&(this[_0x77ce79('0x16')][_0x47c5f4[_0x77ce79('0xf')]][_0x2f88a9]=_0x47c5f4[_0x77ce79('0x0')]);}},Fax[_0x35648e('0x54')][_0x35648e('0x29')]=function(_0x3c91bd){const _0x10c164=_0x35648e;this[_0x10c164('0x16')][_0x3c91bd[_0x10c164('0xf')]]&&(this[_0x10c164('0x16')][_0x3c91bd[_0x10c164('0xf')]][_0x10c164('0x67')]=_0x3c91bd[_0x10c164('0x67')],this[_0x10c164('0x16')][_0x3c91bd['uniqueid']]['channelstatedesc']=_0x3c91bd[_0x10c164('0x13')]);},Fax[_0x35648e('0x54')][_0x35648e('0x10')]=function(_0xe10bff){const _0x465612=_0x35648e;if(this[_0x465612('0x16')][_0xe10bff['uniqueid']])for(const _0x21fa63 in _0xe10bff[_0x465612('0x8')]){typeof _0xe10bff['variable'][_0x21fa63]!==_0x465612('0x5d')&&(this[_0x465612('0x16')][_0xe10bff['uniqueid']][_0x21fa63]=_0xe10bff[_0x465612('0x0')]);}},Fax[_0x35648e('0x54')]['syncFaxStatus']=function(_0x5a1a32){const _0x358264=_0x35648e;this['channels'][_0x5a1a32[_0x358264('0xf')]]&&(this[_0x358264('0x16')][_0x5a1a32['uniqueid']]['operation']=_0x5a1a32[_0x358264('0x3d')],this[_0x358264('0x16')][_0x5a1a32[_0x358264('0xf')]][_0x358264('0x4')]=_0x5a1a32['status'],this[_0x358264('0x16')][_0x5a1a32[_0x358264('0xf')]][_0x358264('0x1d')]=_0x5a1a32['localstationid'],this[_0x358264('0x16')][_0x5a1a32[_0x358264('0xf')]]['filename']=_0x5a1a32[_0x358264('0x4c')],logger[_0x358264('0xe')](_0x5a1a32['uniqueid'],_0x358264('0x33')));},Fax[_0x35648e('0x54')]['syncReceiveFax']=function(_0x214d09){const _0x397053=_0x35648e;if(this['channels'][_0x214d09[_0x397053('0xf')]]){const _0x35ad70=this['channels'][_0x214d09[_0x397053('0xf')]]['id'];this[_0x397053('0x16')][_0x214d09[_0x397053('0xf')]][_0x397053('0x4a')]=_0x214d09['remotestationid'],this[_0x397053('0x16')][_0x214d09[_0x397053('0xf')]][_0x397053('0x5')]=_0x214d09['pagestransferred'],this[_0x397053('0x16')][_0x214d09['uniqueid']][_0x397053('0x1d')]=_0x214d09[_0x397053('0x1d')],this[_0x397053('0x16')][_0x214d09['uniqueid']][_0x397053('0x46')]=_0x214d09[_0x397053('0x46')],this[_0x397053('0x16')][_0x214d09[_0x397053('0xf')]]['transferrate']=_0x214d09[_0x397053('0x52')],this[_0x397053('0x16')][_0x214d09[_0x397053('0xf')]][_0x397053('0x4c')]=_0x214d09['filename'],this[_0x397053('0x16')][_0x214d09['uniqueid']][_0x397053('0x41')]=_0x214d09['calleridnum'],this[_0x397053('0x16')][_0x214d09[_0x397053('0xf')]]['pagestransferred']>0x0&&tiff2pdf(_0x214d09[_0x397053('0x4c')],_0x397053('0x39'),function(_0x2368fe){const _0x32cc5f=_0x397053;logger[_0x32cc5f('0xe')](_0x214d09[_0x32cc5f('0xf')],_0x32cc5f('0x57'),_0x2368fe[_0x32cc5f('0x32')]),attachment[_0x32cc5f('0xc')]({'name':path['parse'](_0x214d09[_0x32cc5f('0x4c')])[_0x32cc5f('0x2a')],'basename':path[_0x32cc5f('0x23')](_0x214d09[_0x32cc5f('0x4c')])['name']+_0x32cc5f('0x51'),'type':_0x32cc5f('0x55')})[_0x32cc5f('0x65')](function(_0x134060){const _0x55db20=_0x32cc5f;faxAccount[_0x55db20('0x15')](_0x35ad70,{'from':_0x214d09[_0x55db20('0x41')],'mapKey':_0x55db20('0x4d'),'body':path[_0x55db20('0x23')](_0x214d09[_0x55db20('0x4c')])[_0x55db20('0x2a')]+'.pdf','AttachmentId':_0x134060['id']})[_0x55db20('0x3c')](function(_0x1782f7){const _0x29418c=_0x55db20;logger['error'](_0x214d09[_0x29418c('0xf')],'\x20notify\x20',JSON['stringify'](_0x1782f7));});})[_0x32cc5f('0x3c')](function(_0x4fb9b0){const _0x1eb189=_0x32cc5f;logger['error'](_0x214d09[_0x1eb189('0xf')],_0x1eb189('0x38'),JSON[_0x1eb189('0x3')](_0x4fb9b0));});}),logger['info'](_0x214d09['uniqueid'],'\x20receiveFax\x20');}},Fax['prototype'][_0x35648e('0x2b')]=function(_0x2109a2){const _0xaca910=_0x35648e;this[_0xaca910('0x43')][_0x2109a2[_0xaca910('0xf')]]&&_[_0xaca910('0x5f')](this[_0xaca910('0x16')][_0x2109a2[_0xaca910('0xf')]],_[_0xaca910('0x4e')](_0x2109a2,[_0xaca910('0x21'),_0xaca910('0x37')]));};function updateStatus(_0x32550f){const _0xab0c66=_0x35648e;_0x32550f[_0xab0c66('0x19')]?faxMessage['update'](_0x32550f[_0xab0c66('0x19')],{'failMessage':'SENDING\x20FAILED\x20'})[_0xab0c66('0x65')](function(_0xab479f){const _0x20f1f1=_0xab0c66;ut[_0x20f1f1('0x56')](_0x20f1f1('0x28'),_0xab479f);})[_0xab0c66('0x3c')](function(_0x2d5d28){ut['logger']('[Fax][Message][Error][NoUpdate1]',_0x2d5d28);}):ut[_0xab0c66('0x56')]('[Fax][Message][Error][NoUpdate2]');}Fax[_0x35648e('0x54')][_0x35648e('0x5c')]=function(_0x159c29,_0x115ddc,_0xf9a9bf){const _0x1ffc4d=_0x35648e,_0x2bc10c=this;let _0x5690c1={};_0x115ddc?_0x5690c1={'read':_0x115ddc}:_0x5690c1={'failMessage':_0xf9a9bf},this[_0x1ffc4d('0x43')][_0x159c29]['AttachmentId']?faxMessage['update'](this[_0x1ffc4d('0x43')][_0x159c29]['AttachmentId'],_0x5690c1)[_0x1ffc4d('0x65')](function(_0x574407){const _0x551ca2=_0x1ffc4d;ut[_0x551ca2('0x56')](_0x551ca2('0x9'),_0x574407);})[_0x1ffc4d('0x3c')](function(_0x2f0f28){const _0x3121d7=_0x1ffc4d;ut[_0x3121d7('0x56')](_0x3121d7('0x3b'),_0x2f0f28);})[_0x1ffc4d('0x1f')](function(){const _0x5e39d7=_0x1ffc4d;delete _0x2bc10c['channels'][_0x159c29],delete _0x2bc10c[_0x5e39d7('0x43')][_0x159c29];}):(ut['logger']('[Fax][Message][NoUpdate2]'),delete this[_0x1ffc4d('0x16')][_0x159c29],delete this[_0x1ffc4d('0x43')][_0x159c29]);},Fax[_0x35648e('0x54')]['syncHangup']=function(_0x756ddf){const _0x39ecf5=_0x35648e;this[_0x39ecf5('0x16')][_0x756ddf[_0x39ecf5('0xf')]]&&(this['actions'][_0x756ddf[_0x39ecf5('0xf')]]&&(this[_0x39ecf5('0x16')][_0x756ddf[_0x39ecf5('0xf')]]['id']=this[_0x39ecf5('0x43')][_0x756ddf[_0x39ecf5('0xf')]]['id'],this[_0x39ecf5('0x16')][_0x756ddf[_0x39ecf5('0xf')]][_0x39ecf5('0x2a')]=this[_0x39ecf5('0x43')][_0x756ddf[_0x39ecf5('0xf')]][_0x39ecf5('0x2a')]),logger[_0x39ecf5('0xe')](_0x756ddf[_0x39ecf5('0xf')],this[_0x39ecf5('0x43')][_0x756ddf[_0x39ecf5('0xf')]]?_0x39ecf5('0x2'):'\x20hangup\x20faxRiceive\x20',JSON[_0x39ecf5('0x3')](this[_0x39ecf5('0x16')][_0x756ddf[_0x39ecf5('0xf')]])),this['actions'][_0x756ddf[_0x39ecf5('0xf')]]&&(this[_0x39ecf5('0x16')][_0x756ddf[_0x39ecf5('0xf')]]['faxpages']>0x0&&this[_0x39ecf5('0x16')][_0x756ddf[_0x39ecf5('0xf')]][_0x39ecf5('0x1e')]===_0x39ecf5('0x4f')?this[_0x39ecf5('0x5c')](_0x756ddf[_0x39ecf5('0xf')],!![]):this[_0x39ecf5('0x5c')](_0x756ddf[_0x39ecf5('0xf')],![],this[_0x39ecf5('0x16')][_0x756ddf[_0x39ecf5('0xf')]][_0x39ecf5('0x17')]?'SENDING\x20FAILED:\x20'+this[_0x39ecf5('0x16')][_0x756ddf[_0x39ecf5('0xf')]][_0x39ecf5('0x17')]:_0x39ecf5('0x18'))));},Fax['prototype'][_0x35648e('0x44')]=function(_0x530f38){const _0x4b8713=this;return new Promise(function(_0x13f262,_0x37b177){const _0x19d3e8=a1061_0x27ee;_0x4b8713[_0x19d3e8('0x22')](_0x530f38,_0x4b8713[_0x19d3e8('0x25')][_0x530f38[_0x19d3e8('0x45')]])[_0x19d3e8('0x65')](function(_0x5cd17a){const _0x41d46c=_0x19d3e8;ut[_0x41d46c('0x56')]('[Fax][execOriginate][success]',_0x5cd17a),_0x13f262(ut['message']('Fax\x20received'));})['catch'](function(_0x525009){const _0x33cf0c=_0x19d3e8;ut[_0x33cf0c('0x56')](_0x33cf0c('0x59'),_0x525009),updateStatus(_0x530f38),_0x37b177(ut[_0x33cf0c('0x32')](_0x33cf0c('0x6a')));});});},Fax['prototype']['checkAfterSend']=function(_0x5854b3){const _0x38bdcc=this;return new Promise(function(_0x577b1e,_0xc972a3){const _0x49190f=a1061_0x27ee,_0x45ebb3=_0x38bdcc['checkTrunk'](_0x38bdcc[_0x49190f('0x25')][_0x5854b3['FaxAccountId']][_0x49190f('0x64')],_0x5854b3);_0x45ebb3[_0x49190f('0x14')]?_0x577b1e(ut[_0x49190f('0x32')](_0x49190f('0x26'))):_0xc972a3(ut['message'](_0x45ebb3['message']));});};function originate(_0x35a8c4,_0x4cdc16,_0x1d1221){return new Promise(function(_0x580cee,_0x1e4c0b){const _0x20a90a=a1061_0x27ee;if(_0x1d1221){const _0x12d048=util[_0x20a90a('0x68')](_0x20a90a('0xd'),path[_0x20a90a('0x23')](_0x35a8c4['path'])['name'],_0x35a8c4[_0x20a90a('0x40')]);gs['execute'](_0x12d048)['then'](function(){const _0x2973a3=_0x20a90a;_0x35a8c4[_0x2973a3('0x40')]=util['format'](_0x2973a3('0x5a'),path[_0x2973a3('0x23')](_0x35a8c4[_0x2973a3('0x40')])['dir'],path[_0x2973a3('0x23')](_0x35a8c4[_0x2973a3('0x40')])[_0x2973a3('0x2a')]),_0x4cdc16[_0x2973a3('0x66')]=_0x35a8c4[_0x2973a3('0x40')],ut[_0x2973a3('0x56')](_0x2973a3('0x2c'),''),ami[_0x2973a3('0x11')](ut['variablesAction'](_0x35a8c4,_0x4cdc16))[_0x2973a3('0x65')](function(_0x11300b){_0x580cee(_0x11300b);})[_0x2973a3('0x3c')](function(_0x2f0d42){_0x1e4c0b(_0x2f0d42);});})[_0x20a90a('0x3c')](function(_0x3a9973){_0x1e4c0b(_0x3a9973);});}else ami[_0x20a90a('0x11')](ut['variablesAction'](_0x35a8c4,_0x4cdc16))[_0x20a90a('0x65')](function(_0x439135){_0x580cee(_0x439135);})[_0x20a90a('0x3c')](function(_0x4a32fc){_0x1e4c0b(_0x4a32fc);});});}Fax['prototype'][_0x35648e('0x22')]=function(_0x488470,_0x1fb588){const _0x1c5d89=this;return new Promise(function(_0x17eb3c,_0xc5f67){const _0x39356d=a1061_0x27ee,_0x2800b9=uuid['v4'](),_0x5f54ac=ut['addVariables'](_0x488470,_0x1fb588);_0x1c5d89[_0x39356d('0x43')][_0x2800b9]=new Action(_0x2800b9,_0x1fb588,_0x488470);const _0x4aad8e=_0x1c5d89[_0x39356d('0x43')][_0x2800b9];path['parse'](_0x488470[_0x39356d('0x40')])['ext']===_0x39356d('0x51')?originate(_0x4aad8e,_0x5f54ac,!![])['then'](function(_0x520803){_0x17eb3c(_0x520803);})[_0x39356d('0x3c')](function(_0x215b01){_0xc5f67(_0x215b01);}):originate(_0x4aad8e,_0x5f54ac,![])[_0x39356d('0x65')](function(_0x12e58b){_0x17eb3c(_0x12e58b);})[_0x39356d('0x3c')](function(_0x573160){_0xc5f67(_0x573160);});});},Fax[_0x35648e('0x54')][_0x35648e('0x2d')]=function(_0x5736cb){const _0x1a73a0=_0x35648e;return!_['isNil'](_0x5736cb)&&!_['isNil'](_0x5736cb[_0x1a73a0('0x2a')])&&!_[_0x1a73a0('0x58')](_0x5736cb[_0x1a73a0('0x35')])&&_0x5736cb['active']&&!_[_0x1a73a0('0x58')](this[_0x1a73a0('0x69')][util['format'](_0x1a73a0('0x30'),_0x5736cb['name'])])&&!_[_0x1a73a0('0x58')](this[_0x1a73a0('0x69')][util['format'](_0x1a73a0('0x30'),_0x5736cb['name'])][_0x1a73a0('0x4')])&&(this[_0x1a73a0('0x69')][util[_0x1a73a0('0x68')]('SIP/%s',_0x5736cb['name'])][_0x1a73a0('0x4')]==='reachable'||this[_0x1a73a0('0x69')][util['format']('SIP/%s',_0x5736cb[_0x1a73a0('0x2a')])]['status']===_0x1a73a0('0x62'));},Fax[_0x35648e('0x54')][_0x35648e('0x2f')]=function(_0x237e39,_0x4a548a){const _0x4b3cb2=_0x35648e;if(!this[_0x4b3cb2('0x2d')](_0x237e39))return ut['logger'](_0x4b3cb2('0x61'),_[_0x4b3cb2('0x58')](_0x237e39)?'':_0x237e39[_0x4b3cb2('0x2a')]+_0x4b3cb2('0x1c')),{'isValid':![],'message':_0x4b3cb2('0x1a')};if(_[_0x4b3cb2('0x58')](_0x4a548a['fax']))return ut[_0x4b3cb2('0x56')](_0x4b3cb2('0x1b'),JSON[_0x4b3cb2('0x3')](_0x4a548a)),{'isValid':![],'message':_0x4b3cb2('0x7')};if(_[_0x4b3cb2('0x58')](_0x4a548a['path']))return ut[_0x4b3cb2('0x56')](_0x4b3cb2('0x2e'),JSON['stringify'](_0x4a548a)),{'isValid':![],'message':_0x4b3cb2('0x48')};return{'isValid':!![],'message':_0x4b3cb2('0x49')};},module[_0x35648e('0x60')]=Fax; \ No newline at end of file diff --git a/server/services/ami/fax/rpcDb.js b/server/services/ami/fax/rpcDb.js index 2de76a4..e21d1d5 100644 --- a/server/services/ami/fax/rpcDb.js +++ b/server/services/ami/fax/rpcDb.js @@ -1 +1 @@ -const a1061_0x5a30=['catch','preview','[Notify]\x20','then','util','error','inspect','resolve','../rpc/faxAccount','notify'];(function(_0x4b95a3,_0x5a3094){const _0xc7ef8=function(_0x5610ae){while(--_0x5610ae){_0x4b95a3['push'](_0x4b95a3['shift']());}};_0xc7ef8(++_0x5a3094);}(a1061_0x5a30,0x152));const a1061_0xc7ef=function(_0x4b95a3,_0x5a3094){_0x4b95a3=_0x4b95a3-0x0;let _0xc7ef8=a1061_0x5a30[_0x4b95a3];return _0xc7ef8;};const _0x1d8406=a1061_0xc7ef;'use strict';const util=require(_0x1d8406('0x6')),logger=require('../../../config/logger')(_0x1d8406('0x3')),faxAccount=require(_0x1d8406('0x0'));function loggerCatch(_0x5610ae){return function(_0x3704b0){const _0x3f181f=a1061_0xc7ef;logger[_0x3f181f('0x7')](_0x5610ae,util[_0x3f181f('0x8')](_0x3704b0,{'showHidden':![],'depth':null}));};}exports[_0x1d8406('0x1')]=function(_0x10b3d0,_0x49e586){const _0x42e451=_0x1d8406;return Promise[_0x42e451('0x9')]()[_0x42e451('0x5')](faxAccount[_0x42e451('0x1')](_0x10b3d0,_0x49e586))[_0x42e451('0x2')](loggerCatch(_0x42e451('0x4')));}; \ No newline at end of file +const a1062_0x5666=['../../../config/logger','[Notify]\x20','inspect','then','catch','notify'];(function(_0x51f1aa,_0x566610){const _0x3779a4=function(_0x5eb084){while(--_0x5eb084){_0x51f1aa['push'](_0x51f1aa['shift']());}};_0x3779a4(++_0x566610);}(a1062_0x5666,0xaf));const a1062_0x3779=function(_0x51f1aa,_0x566610){_0x51f1aa=_0x51f1aa-0x0;let _0x3779a4=a1062_0x5666[_0x51f1aa];return _0x3779a4;};const _0x1ce431=a1062_0x3779;'use strict';const util=require('util'),logger=require(_0x1ce431('0x5'))('preview'),faxAccount=require('../rpc/faxAccount');function loggerCatch(_0x5eb084){return function(_0x587d3f){const _0x1c8853=a1062_0x3779;logger['error'](_0x5eb084,util[_0x1c8853('0x1')](_0x587d3f,{'showHidden':![],'depth':null}));};}exports[_0x1ce431('0x4')]=function(_0xaf080d,_0x374679){const _0x27f1e1=_0x1ce431;return Promise['resolve']()[_0x27f1e1('0x2')](faxAccount[_0x27f1e1('0x4')](_0xaf080d,_0x374679))[_0x27f1e1('0x3')](loggerCatch(_0x27f1e1('0x0')));}; \ No newline at end of file diff --git a/server/services/ami/fax/util/gs.js b/server/services/ami/fax/util/gs.js index d618e8d..cb5a354 100644 --- a/server/services/ami/fax/util/gs.js +++ b/server/services/ami/fax/util/gs.js @@ -1 +1 @@ -const a1062_0x20b2=['child_process','execute','info','Exec\x20gs','exec','inspect','fax','util'];(function(_0x360ebe,_0x20b2db){const _0x4b1951=function(_0x1eb8ec){while(--_0x1eb8ec){_0x360ebe['push'](_0x360ebe['shift']());}};_0x4b1951(++_0x20b2db);}(a1062_0x20b2,0x6e));const a1062_0x4b19=function(_0x360ebe,_0x20b2db){_0x360ebe=_0x360ebe-0x0;let _0x4b1951=a1062_0x20b2[_0x360ebe];return _0x4b1951;};const _0x179e0a=a1062_0x4b19;'use strict';const util=require(_0x179e0a('0x1')),logger=require('../../../../config/logger')(_0x179e0a('0x0')),exec=require(_0x179e0a('0x2'))[_0x179e0a('0x6')];exports[_0x179e0a('0x3')]=function(_0x1eb8ec){return new Promise(function(_0x36e169,_0xc5bd8a){exec(_0x1eb8ec,function(_0x4b8e51,_0x4bcc8e,_0xb95075){const _0xf66d3f=a1062_0x4b19;logger[_0xf66d3f('0x4')](_0xf66d3f('0x5'),_0x4bcc8e),_0x4b8e51&&(logger[_0xf66d3f('0x4')](_0xf66d3f('0x5'),'\x20Error\x20:',util[_0xf66d3f('0x7')](_0x4b8e51,{'showHidden':![],'depth':null}),_0x4bcc8e,_0xb95075),_0xc5bd8a(_0x4b8e51)),_0x36e169(_0x4bcc8e);});});}; \ No newline at end of file +const a1063_0x53d4=['Exec\x20gs','../../../../config/logger','exec','execute','fax','info'];(function(_0x116ef7,_0x53d40c){const _0x2028ad=function(_0x495488){while(--_0x495488){_0x116ef7['push'](_0x116ef7['shift']());}};_0x2028ad(++_0x53d40c);}(a1063_0x53d4,0xcd));const a1063_0x2028=function(_0x116ef7,_0x53d40c){_0x116ef7=_0x116ef7-0x0;let _0x2028ad=a1063_0x53d4[_0x116ef7];return _0x2028ad;};const _0x2c18a9=a1063_0x2028;'use strict';const util=require('util'),logger=require(_0x2c18a9('0x0'))(_0x2c18a9('0x3')),exec=require('child_process')[_0x2c18a9('0x1')];exports[_0x2c18a9('0x2')]=function(_0x495488){return new Promise(function(_0x480d39,_0x390b50){exec(_0x495488,function(_0x39921e,_0x3d660,_0x19d945){const _0x1d2118=a1063_0x2028;logger[_0x1d2118('0x4')](_0x1d2118('0x5'),_0x3d660),_0x39921e&&(logger[_0x1d2118('0x4')](_0x1d2118('0x5'),'\x20Error\x20:',util['inspect'](_0x39921e,{'showHidden':![],'depth':null}),_0x3d660,_0x19d945),_0x390b50(_0x39921e)),_0x480d39(_0x3d660);});});}; \ 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 c99d73b..05cff6c 100644 --- a/server/services/ami/fax/util/util.js +++ b/server/services/ami/fax/util/util.js @@ -1 +1 @@ -const a1063_0x4a1a=['localstationid','\x22%s\x22','gateway','util','t38timeout','message','\x22%s\x22\x20<%s>','faxdetect','minrate','maxrate','channel','from-sip','path','../../../../config/logger','inspect','originate','format','headerinfo','info','xcally-motion-fax','logger'];(function(_0x25f32e,_0x4a1a06){const _0x4da5c4=function(_0x1fd061){while(--_0x1fd061){_0x25f32e['push'](_0x25f32e['shift']());}};_0x4da5c4(++_0x4a1a06);}(a1063_0x4a1a,0x194));const a1063_0x4da5=function(_0x25f32e,_0x4a1a06){_0x25f32e=_0x25f32e-0x0;let _0x4da5c4=a1063_0x4a1a[_0x25f32e];return _0x4da5c4;};const _0x2f5746=a1063_0x4da5;'use strict';const util=require(_0x2f5746('0x13')),logger=require(_0x2f5746('0x8'))('fax');exports[_0x2f5746('0x0')]=function(_0x1fd061){return{'message':_0x1fd061};},exports[_0x2f5746('0xf')]=function(_0x5528cc,_0x1f28ec){const _0x399493=_0x2f5746;logger[_0x399493('0xd')](_0x5528cc,util[_0x399493('0x9')](_0x1f28ec,{'showHidden':![],'depth':null}));},exports['addVariables']=function(_0x491664,_0x2e5ae3){const _0xb07e05=_0x2f5746,_0x505d15={'XMF-ECM':_0x2e5ae3['ecm'],'XMF-HEADERINFO':_0x2e5ae3[_0xb07e05('0xc')],'XMF-MINRATE':_0x2e5ae3[_0xb07e05('0x3')],'XMF-MAXRATE':_0x2e5ae3[_0xb07e05('0x4')],'XMF-MODEM':util[_0xb07e05('0xb')](_0xb07e05('0x11'),_0x2e5ae3['modem']),'XMF-GATEWAY':_0x2e5ae3[_0xb07e05('0x12')],'XMF-FAXDETECT':_0x2e5ae3[_0xb07e05('0x2')],'XMF-T38TIMEOUT':_0x2e5ae3[_0xb07e05('0x14')],'XMF-LOCALSTATIONID':_0x2e5ae3[_0xb07e05('0x10')],'XMF-PATH':_0x491664[_0xb07e05('0x7')]};return _0x505d15;},exports['variablesAction']=function(_0x416af5,_0x2af8b9){const _0x37d8d1=_0x2f5746;return{'actionid':_0x416af5['uniqueid'],'action':_0x37d8d1('0xa'),'channel':_0x416af5[_0x37d8d1('0x5')],'Exten':_0x37d8d1('0xe'),'Context':_0x37d8d1('0x6'),'Priority':'1','callerid':util['format'](_0x37d8d1('0x1'),_0x416af5[_0x37d8d1('0xc')]?_0x416af5[_0x37d8d1('0xc')]:'',_0x416af5[_0x37d8d1('0x10')]),'variable':_0x2af8b9,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x416af5['uniqueid']};}; \ No newline at end of file +const a1064_0x3f66=['path','message','localstationid','from-sip','t38timeout','maxrate','uniqueid','info','channel','ecm','xcally-motion-fax','format','util','gateway','fax','faxdetect','variablesAction','../../../../config/logger','headerinfo','\x22%s\x22\x20<%s>','modem','addVariables','\x22%s\x22','inspect'];(function(_0x204975,_0x3f6662){const _0x5341b2=function(_0x36c388){while(--_0x36c388){_0x204975['push'](_0x204975['shift']());}};_0x5341b2(++_0x3f6662);}(a1064_0x3f66,0xc8));const a1064_0x5341=function(_0x204975,_0x3f6662){_0x204975=_0x204975-0x0;let _0x5341b2=a1064_0x3f66[_0x204975];return _0x5341b2;};const _0x5086ce=a1064_0x5341;'use strict';const util=require(_0x5086ce('0x4')),logger=require(_0x5086ce('0x9'))(_0x5086ce('0x6'));exports[_0x5086ce('0x11')]=function(_0x36c388){return{'message':_0x36c388};},exports['logger']=function(_0xe16a3,_0x2b9a9f){const _0x3122da=_0x5086ce;logger[_0x3122da('0x17')](_0xe16a3,util[_0x3122da('0xf')](_0x2b9a9f,{'showHidden':![],'depth':null}));},exports[_0x5086ce('0xd')]=function(_0x8ef290,_0x2c8055){const _0xe6c468=_0x5086ce,_0x3099fc={'XMF-ECM':_0x2c8055[_0xe6c468('0x1')],'XMF-HEADERINFO':_0x2c8055[_0xe6c468('0xa')],'XMF-MINRATE':_0x2c8055['minrate'],'XMF-MAXRATE':_0x2c8055[_0xe6c468('0x15')],'XMF-MODEM':util[_0xe6c468('0x3')](_0xe6c468('0xe'),_0x2c8055[_0xe6c468('0xc')]),'XMF-GATEWAY':_0x2c8055[_0xe6c468('0x5')],'XMF-FAXDETECT':_0x2c8055[_0xe6c468('0x7')],'XMF-T38TIMEOUT':_0x2c8055[_0xe6c468('0x14')],'XMF-LOCALSTATIONID':_0x2c8055['localstationid'],'XMF-PATH':_0x8ef290[_0xe6c468('0x10')]};return _0x3099fc;},exports[_0x5086ce('0x8')]=function(_0x351d83,_0xe654cb){const _0x367aa0=_0x5086ce;return{'actionid':_0x351d83[_0x367aa0('0x16')],'action':'originate','channel':_0x351d83[_0x367aa0('0x0')],'Exten':_0x367aa0('0x2'),'Context':_0x367aa0('0x13'),'Priority':'1','callerid':util[_0x367aa0('0x3')](_0x367aa0('0xb'),_0x351d83[_0x367aa0('0xa')]?_0x351d83[_0x367aa0('0xa')]:'',_0x351d83[_0x367aa0('0x12')]),'variable':_0xe654cb,'timeout':0x1e*0x3e8,'async':!![],'channelid':_0x351d83[_0x367aa0('0x16')]};}; \ No newline at end of file diff --git a/server/services/ami/index.js b/server/services/ami/index.js index c42722a..78abc87 100644 --- a/server/services/ami/index.js +++ b/server/services/ami/index.js @@ -1 +1 @@ -const a1064_0x5662=['get','initTemplates','initSugarcrmAccounts','resolve','./preview','getVoiceExtensions','getFaxAccounts','initDeskAccounts','getServicenowAccounts','./server','getCampaigns','./rpc/integrations/freshsales','listen','./report','getZendeskAccounts','getFreshsalesAccounts','initFaxAccounts','initTrunks','./rpc/faxAccount','initAgents','initZohoAccounts','./rpc/integrations/sugarcrm','../../globals','log','./rpc/integrations/dynamics365','./rpc/template','getVoiceCallReports','./rpc/integrations/freshdesk','hour','then','./rpc/integrations/servicenow','getTriggers','getSalesforceAccounts','initDynamics365Accounts','getVoiceQueueHopperHistory','./rpc/integrations/zoho','./rpc/integrations/vtiger','getFreshdeskAccounts','initServicenowAccounts','./rpc/cmHopperHistory','initCampaigns','initVoiceCallReports','initFreshdeskAccounts','getTrunks','initTelephones','./rpc/voiceCallReport','./rpc/voiceQueue','getSugarcrmAccounts','./rpc/voiceExtension','getTelephones','./fax','catch','./rpc/trunk','getCampaignHopperHistory','initTriggers','initVoiceExtensions','initVoiceQueueHopperHistory','./rpc/campaign','./rpc/integrations/zendesk','./rpc/voiceQueueReport','getVoiceQueueReports','./rpc/integrations/salesforce'];(function(_0x205d88,_0x56623){const _0xf92ba3=function(_0x264bb7){while(--_0x264bb7){_0x205d88['push'](_0x205d88['shift']());}};_0xf92ba3(++_0x56623);}(a1064_0x5662,0x1dc));const a1064_0xf92b=function(_0x205d88,_0x56623){_0x205d88=_0x205d88-0x0;let _0xf92ba3=a1064_0x5662[_0x205d88];return _0xf92ba3;};const _0x41ad2e=a1064_0xf92b;'use strict';require(_0x41ad2e('0x2a'));const moment=require('moment'),server=require(_0x41ad2e('0x1d')),Realtime=require('./realtime'),Report=require(_0x41ad2e('0x21')),Preview=require(_0x41ad2e('0x18')),Fax=require(_0x41ad2e('0x8')),user=require('./rpc/user'),voiceQueue=require(_0x41ad2e('0x4')),voiceQueueReport=require(_0x41ad2e('0x11')),voiceCallReport=require(_0x41ad2e('0x3')),trunk=require(_0x41ad2e('0xa')),trigger=require('./rpc/trigger'),template=require(_0x41ad2e('0x2d')),cmHopperHistory=require(_0x41ad2e('0x3b')),campaign=require(_0x41ad2e('0xf')),voiceExtension=require(_0x41ad2e('0x6')),faxAccount=require(_0x41ad2e('0x26')),zendesk=require(_0x41ad2e('0x10')),salesforce=require(_0x41ad2e('0x13')),sugarcrm=require(_0x41ad2e('0x29')),freshdesk=require(_0x41ad2e('0x2f')),desk=require('./rpc/integrations/desk'),zoho=require(_0x41ad2e('0x37')),vtiger=require(_0x41ad2e('0x38')),freshsales=require(_0x41ad2e('0x1f')),servicenow=require(_0x41ad2e('0x32')),dynamics365=require(_0x41ad2e('0x2c')),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x1b1f39=_0x41ad2e;moment()[_0x1b1f39('0x14')](_0x1b1f39('0x30'))===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()['get']('hour')===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0xa1cba6=_0x41ad2e;return ifMidnight(),Promise['resolve']()[_0xa1cba6('0x31')](user['getAgents']())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x27')]())['then'](user[_0xa1cba6('0x7')]())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x2')]())[_0xa1cba6('0x31')](trunk[_0xa1cba6('0x1')]())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x25')]())[_0xa1cba6('0x31')](voiceQueue['getVoiceQueues']())[_0xa1cba6('0x31')](realtime['initVoiceQueues']())[_0xa1cba6('0x31')](trigger[_0xa1cba6('0x33')]())['then'](realtime[_0xa1cba6('0xc')]())['then'](template['getTemplates']())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x15')]())[_0xa1cba6('0x31')](zendesk[_0xa1cba6('0x22')]())['then'](realtime['initZendeskAccounts']())[_0xa1cba6('0x31')](salesforce[_0xa1cba6('0x34')]())[_0xa1cba6('0x31')](realtime['initSalesforceAccounts']())['then'](sugarcrm[_0xa1cba6('0x5')]())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x16')]())[_0xa1cba6('0x31')](freshdesk[_0xa1cba6('0x39')]())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x0')]())[_0xa1cba6('0x31')](desk['getDeskAccounts']())['then'](realtime[_0xa1cba6('0x1b')]())[_0xa1cba6('0x31')](zoho['getZohoAccounts']())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x28')]())['then'](vtiger['getVtigerAccounts']())[_0xa1cba6('0x31')](realtime['initVtigerAccounts']())[_0xa1cba6('0x31')](freshsales[_0xa1cba6('0x23')]())[_0xa1cba6('0x31')](realtime['initFreshsalesAccounts']())['then'](servicenow[_0xa1cba6('0x1c')]())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x3a')]())[_0xa1cba6('0x31')](dynamics365['getDynamics365Accounts']())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x35')]())[_0xa1cba6('0x31')](campaign[_0xa1cba6('0x1e')]())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0x3c')]())[_0xa1cba6('0x31')](voiceExtension[_0xa1cba6('0x19')]())[_0xa1cba6('0x31')](realtime[_0xa1cba6('0xd')]())[_0xa1cba6('0x31')](faxAccount[_0xa1cba6('0x1a')]())['then'](realtime[_0xa1cba6('0x24')]())['then'](function(){return realtime;});}function initParams(){const _0x1dde65=_0x41ad2e;return Promise[_0x1dde65('0x17')]()[_0x1dde65('0x31')](voiceQueueReport[_0x1dde65('0x12')]())[_0x1dde65('0x31')](realtime['initVoiceQueueReports']())[_0x1dde65('0x31')](cmHopperHistory[_0x1dde65('0x36')]())[_0x1dde65('0x31')](realtime[_0x1dde65('0xe')]())[_0x1dde65('0x31')](cmHopperHistory[_0x1dde65('0xb')]())[_0x1dde65('0x31')](realtime['initCampaignHopperHistory']())[_0x1dde65('0x31')](voiceCallReport[_0x1dde65('0x2e')]())[_0x1dde65('0x31')](realtime[_0x1dde65('0x3d')]())['then'](function(){})[_0x1dde65('0x9')](function(_0x264bb7){const _0x24a71a=_0x1dde65;console[_0x24a71a('0x2b')](_0x264bb7);});}function main(){const _0x2ed617=_0x41ad2e;return server[_0x2ed617('0x20')](realtime,preview,fax)[_0x2ed617('0x31')](function(){return initRealtime();})[_0x2ed617('0x31')](function(){return initParams();})['then'](function(){report['sync'](),setInterval(initRealtime,0x1388);})[_0x2ed617('0x9')](function(_0x34cec2){const _0x2c5f75=_0x2ed617;console[_0x2c5f75('0x2b')](_0x34cec2);});}main(); \ No newline at end of file +const a1065_0x22a2=['initDynamics365Accounts','./rpc/voiceQueueReport','initCampaignHopperHistory','./rpc/trunk','initAgents','./rpc/integrations/desk','moment','getZendeskAccounts','./rpc/integrations/zoho','./rpc/integrations/servicenow','initVoiceQueueReports','./rpc/trigger','./realtime','initVoiceQueueHopperHistory','./rpc/template','getVtigerAccounts','getFreshsalesAccounts','catch','log','sync','initTriggers','./rpc/integrations/freshdesk','listen','getVoiceCallReports','resolve','initServicenowAccounts','./rpc/integrations/zendesk','initFreshsalesAccounts','getCampaigns','./rpc/cmHopperHistory','hour','./preview','getServicenowAccounts','./rpc/voiceExtension','./rpc/integrations/vtiger','./rpc/campaign','initFaxAccounts','initVoiceCallReports','get','initTemplates','./fax','initDeskAccounts','./rpc/user','initVoiceExtensions','initSalesforceAccounts','initSugarcrmAccounts','./rpc/integrations/dynamics365','getAgents','./rpc/faxAccount','initZohoAccounts','./rpc/integrations/salesforce','getSalesforceAccounts','../../globals','getVoiceExtensions','initZendeskAccounts','./rpc/integrations/sugarcrm','getVoiceQueues','initCampaigns','initFreshdeskAccounts','then','initVoiceQueues','getVoiceQueueHopperHistory','getCampaignHopperHistory','initVtigerAccounts','getTrunks'];(function(_0x2d409f,_0x22a25b){const _0x109bfe=function(_0x74692b){while(--_0x74692b){_0x2d409f['push'](_0x2d409f['shift']());}};_0x109bfe(++_0x22a25b);}(a1065_0x22a2,0x1ed));const a1065_0x109b=function(_0x2d409f,_0x22a25b){_0x2d409f=_0x2d409f-0x0;let _0x109bfe=a1065_0x22a2[_0x2d409f];return _0x109bfe;};const _0x1d6abd=a1065_0x109b;'use strict';require(_0x1d6abd('0xe'));const moment=require(_0x1d6abd('0x21')),server=require('./server'),Realtime=require(_0x1d6abd('0x27')),Report=require('./report'),Preview=require(_0x1d6abd('0x3a')),Fax=require(_0x1d6abd('0x2')),user=require(_0x1d6abd('0x4')),voiceQueue=require('./rpc/voiceQueue'),voiceQueueReport=require(_0x1d6abd('0x1c')),voiceCallReport=require('./rpc/voiceCallReport'),trunk=require(_0x1d6abd('0x1e')),trigger=require(_0x1d6abd('0x26')),template=require(_0x1d6abd('0x29')),cmHopperHistory=require(_0x1d6abd('0x38')),campaign=require(_0x1d6abd('0x3e')),voiceExtension=require(_0x1d6abd('0x3c')),faxAccount=require(_0x1d6abd('0xa')),zendesk=require(_0x1d6abd('0x35')),salesforce=require(_0x1d6abd('0xc')),sugarcrm=require(_0x1d6abd('0x11')),freshdesk=require(_0x1d6abd('0x30')),desk=require(_0x1d6abd('0x20')),zoho=require(_0x1d6abd('0x23')),vtiger=require(_0x1d6abd('0x3d')),freshsales=require('./rpc/integrations/freshsales'),servicenow=require(_0x1d6abd('0x24')),dynamics365=require(_0x1d6abd('0x8')),realtime=new Realtime(),report=new Report(realtime),preview=new Preview(realtime),fax=new Fax(realtime);let isTrue=!![],initP=!![];function ifMidnight(){const _0x1ce3ea=_0x1d6abd;moment()['get'](_0x1ce3ea('0x39'))===0x0&&initP&&(initP=![],isTrue=!![],initParams()),moment()[_0x1ce3ea('0x0')](_0x1ce3ea('0x39'))===0x1&&isTrue&&(isTrue=![],initP=!![]);}function initRealtime(){const _0x153705=_0x1d6abd;return ifMidnight(),Promise[_0x153705('0x33')]()['then'](user[_0x153705('0x9')]())[_0x153705('0x15')](realtime[_0x153705('0x1f')]())[_0x153705('0x15')](user['getTelephones']())[_0x153705('0x15')](realtime['initTelephones']())['then'](trunk[_0x153705('0x1a')]())[_0x153705('0x15')](realtime['initTrunks']())[_0x153705('0x15')](voiceQueue[_0x153705('0x12')]())[_0x153705('0x15')](realtime[_0x153705('0x16')]())[_0x153705('0x15')](trigger['getTriggers']())[_0x153705('0x15')](realtime[_0x153705('0x2f')]())[_0x153705('0x15')](template['getTemplates']())[_0x153705('0x15')](realtime[_0x153705('0x1')]())[_0x153705('0x15')](zendesk[_0x153705('0x22')]())[_0x153705('0x15')](realtime[_0x153705('0x10')]())['then'](salesforce[_0x153705('0xd')]())[_0x153705('0x15')](realtime[_0x153705('0x6')]())['then'](sugarcrm['getSugarcrmAccounts']())[_0x153705('0x15')](realtime[_0x153705('0x7')]())[_0x153705('0x15')](freshdesk['getFreshdeskAccounts']())[_0x153705('0x15')](realtime[_0x153705('0x14')]())[_0x153705('0x15')](desk['getDeskAccounts']())[_0x153705('0x15')](realtime[_0x153705('0x3')]())[_0x153705('0x15')](zoho['getZohoAccounts']())['then'](realtime[_0x153705('0xb')]())[_0x153705('0x15')](vtiger[_0x153705('0x2a')]())[_0x153705('0x15')](realtime[_0x153705('0x19')]())[_0x153705('0x15')](freshsales[_0x153705('0x2b')]())['then'](realtime[_0x153705('0x36')]())[_0x153705('0x15')](servicenow[_0x153705('0x3b')]())[_0x153705('0x15')](realtime[_0x153705('0x34')]())[_0x153705('0x15')](dynamics365['getDynamics365Accounts']())[_0x153705('0x15')](realtime[_0x153705('0x1b')]())['then'](campaign[_0x153705('0x37')]())[_0x153705('0x15')](realtime[_0x153705('0x13')]())[_0x153705('0x15')](voiceExtension[_0x153705('0xf')]())[_0x153705('0x15')](realtime[_0x153705('0x5')]())['then'](faxAccount['getFaxAccounts']())[_0x153705('0x15')](realtime[_0x153705('0x3f')]())[_0x153705('0x15')](function(){return realtime;});}function initParams(){const _0x58eabf=_0x1d6abd;return Promise[_0x58eabf('0x33')]()[_0x58eabf('0x15')](voiceQueueReport['getVoiceQueueReports']())['then'](realtime[_0x58eabf('0x25')]())['then'](cmHopperHistory[_0x58eabf('0x17')]())[_0x58eabf('0x15')](realtime[_0x58eabf('0x28')]())[_0x58eabf('0x15')](cmHopperHistory[_0x58eabf('0x18')]())[_0x58eabf('0x15')](realtime[_0x58eabf('0x1d')]())[_0x58eabf('0x15')](voiceCallReport[_0x58eabf('0x32')]())[_0x58eabf('0x15')](realtime[_0x58eabf('0x40')]())[_0x58eabf('0x15')](function(){})['catch'](function(_0x74692b){const _0x373f0b=_0x58eabf;console[_0x373f0b('0x2d')](_0x74692b);});}function main(){const _0x4e2ac1=_0x1d6abd;return server[_0x4e2ac1('0x31')](realtime,preview,fax)[_0x4e2ac1('0x15')](function(){return initRealtime();})['then'](function(){return initParams();})[_0x4e2ac1('0x15')](function(){const _0x1512ea=_0x4e2ac1;report[_0x1512ea('0x2e')](),setInterval(initRealtime,0x1388);})[_0x4e2ac1('0x2c')](function(_0x4475ef){console['log'](_0x4475ef);});}main(); \ No newline at end of file diff --git a/server/services/ami/model/agent.js b/server/services/ami/model/agent.js index ec92573..85ed3ff 100644 --- a/server/services/ami/model/agent.js +++ b/server/services/ami/model/agent.js @@ -1 +1 @@ -const a1065_0x5507=['md5','state','fullname','voiceStatusQueue','accountcode','address','voiceStatusCallerIdNumber','exports','stringify','moment','emit','local','status','toNumber','onhold','talking','prototype','format','updateStatusRealtime','online','lodash','user:save','email','not_inuse','interface','inuse','unknown','name','../../../rediscache','stateTime','voiceStatusTime','voiceStatus','user:%s','toLowerCase','phone'];(function(_0xe04c5a,_0x550719){const _0x24d12e=function(_0x2ab5b1){while(--_0x2ab5b1){_0xe04c5a['push'](_0xe04c5a['shift']());}};_0x24d12e(++_0x550719);}(a1065_0x5507,0xf6));const a1065_0x24d1=function(_0xe04c5a,_0x550719){_0xe04c5a=_0xe04c5a-0x0;let _0x24d12e=a1065_0x5507[_0xe04c5a];return _0x24d12e;};const _0x255cd2=a1065_0x24d1;'use strict';const _=require(_0x255cd2('0x13')),util=require('util'),moment=require(_0x255cd2('0x8')),md5=require(_0x255cd2('0x22')),{getSocket}=require(_0x255cd2('0x1b')),io=getSocket();function Agent(_0x2ab5b1){const _0x12ec90=_0x255cd2;this['id']=_0x2ab5b1['id']||0x0,this[_0x12ec90('0x1a')]=_0x2ab5b1[_0x12ec90('0x1a')]||'',this[_0x12ec90('0x15')]=_0x2ab5b1['email']||'',this[_0x12ec90('0x3')]=_0x2ab5b1[_0x12ec90('0x3')]||'',this[_0x12ec90('0x1')]=_0x2ab5b1[_0x12ec90('0x1')]||'',this[_0x12ec90('0x0')]=_0x12ec90('0x19'),this[_0x12ec90('0x1c')]=0x0,this[_0x12ec90('0xb')]=_0x12ec90('0x19'),this['address']='',this[_0x12ec90('0x21')]='',this['mobile']='',this[_0x12ec90('0x17')]='',this['online']=_0x2ab5b1[_0x12ec90('0x12')]||![],this[_0x12ec90('0x1e')]='unknown',this[_0x12ec90('0x1d')]=0x0,this[_0x12ec90('0x5')]='',this[_0x12ec90('0x2')]='',this[_0x12ec90('0xd')]=![],this[_0x12ec90('0xa')]=![],this[_0x12ec90('0x22')]='';}Agent[_0x255cd2('0xf')][_0x255cd2('0x11')]=function(_0x38bacf){const _0x5c2876=_0x255cd2;let _0x139e62;if(_0x38bacf&&_0x38bacf[_0x5c2876('0x0')]){_0x139e62=_0x38bacf['state'][_0x5c2876('0x20')]();switch(_0x139e62){case _0x5c2876('0x16'):_0x139e62='idle';break;case _0x5c2876('0x18'):_0x139e62=_0x5c2876('0xe');break;}}(_0x139e62&&this[_0x5c2876('0x1e')]!==_0x139e62||_0x38bacf['statePause'])&&(this[_0x5c2876('0x1d')]=_[_0x5c2876('0xc')](moment()[_0x5c2876('0x10')]('x')));_0x139e62&&(this[_0x5c2876('0x1e')]=_0x139e62);const _0xc1828={'id':this['id'],'name':this[_0x5c2876('0x1a')],'email':this[_0x5c2876('0x15')],'accountcode':this[_0x5c2876('0x3')],'fullname':this[_0x5c2876('0x1')],'state':this['state'],'stateTime':this[_0x5c2876('0x1c')],'status':this[_0x5c2876('0xb')],'address':this[_0x5c2876('0x4')],'online':this['online'],'voiceStatus':this[_0x5c2876('0x1e')],'voiceStatusTime':this[_0x5c2876('0x1d')],'voiceStatusCallerIdNumber':this[_0x5c2876('0x5')],'voiceStatusQueue':this['voiceStatusQueue'],'interface':this['interface'],'onhold':this['onhold']},_0x236dc7=md5(JSON[_0x5c2876('0x7')](_0xc1828));this[_0x5c2876('0x22')]!==_0x236dc7&&(this['md5']=_0x236dc7,io['to'](util[_0x5c2876('0x10')](_0x5c2876('0x1f'),_0xc1828[_0x5c2876('0x1a')]))[_0x5c2876('0x9')](_0x5c2876('0x14'),_0xc1828));},module[_0x255cd2('0x6')]=Agent; \ No newline at end of file +const a1066_0x2fc2=['phone','user:save','fullname','format','state','unknown','updateStatusRealtime','voiceStatusQueue','stateTime','toNumber','voiceStatusCallerIdNumber','lodash','name','idle','status','address','online','not_inuse','mobile','accountcode','md5','user:%s','email','voiceStatus','talking','statePause','toLowerCase','interface','util','moment','onhold'];(function(_0x19d262,_0x2fc2df){const _0x1bb9d8=function(_0x1dc297){while(--_0x1dc297){_0x19d262['push'](_0x19d262['shift']());}};_0x1bb9d8(++_0x2fc2df);}(a1066_0x2fc2,0x13e));const a1066_0x1bb9=function(_0x19d262,_0x2fc2df){_0x19d262=_0x19d262-0x0;let _0x1bb9d8=a1066_0x2fc2[_0x19d262];return _0x1bb9d8;};const _0x4b2181=a1066_0x1bb9;'use strict';const _=require(_0x4b2181('0x3')),util=require(_0x4b2181('0x14')),moment=require(_0x4b2181('0x15')),md5=require(_0x4b2181('0xc')),{getSocket}=require('../../../rediscache'),io=getSocket();function Agent(_0x1dc297){const _0x3a3cd2=_0x4b2181;this['id']=_0x1dc297['id']||0x0,this[_0x3a3cd2('0x4')]=_0x1dc297[_0x3a3cd2('0x4')]||'',this[_0x3a3cd2('0xe')]=_0x1dc297['email']||'',this['accountcode']=_0x1dc297[_0x3a3cd2('0xb')]||'',this[_0x3a3cd2('0x19')]=_0x1dc297[_0x3a3cd2('0x19')]||'',this[_0x3a3cd2('0x1b')]=_0x3a3cd2('0x1c'),this[_0x3a3cd2('0x0')]=0x0,this[_0x3a3cd2('0x6')]='unknown',this[_0x3a3cd2('0x7')]='',this[_0x3a3cd2('0x17')]='',this[_0x3a3cd2('0xa')]='',this[_0x3a3cd2('0x13')]='',this[_0x3a3cd2('0x8')]=_0x1dc297['online']||![],this[_0x3a3cd2('0xf')]='unknown',this['voiceStatusTime']=0x0,this[_0x3a3cd2('0x2')]='',this[_0x3a3cd2('0x1e')]='',this[_0x3a3cd2('0x16')]=![],this['local']=![],this[_0x3a3cd2('0xc')]='';}Agent['prototype'][_0x4b2181('0x1d')]=function(_0x5215d5){const _0xc8b64=_0x4b2181;let _0x2474cc;if(_0x5215d5&&_0x5215d5[_0xc8b64('0x1b')]){_0x2474cc=_0x5215d5['state'][_0xc8b64('0x12')]();switch(_0x2474cc){case _0xc8b64('0x9'):_0x2474cc=_0xc8b64('0x5');break;case'inuse':_0x2474cc=_0xc8b64('0x10');break;}}(_0x2474cc&&this[_0xc8b64('0xf')]!==_0x2474cc||_0x5215d5[_0xc8b64('0x11')])&&(this['voiceStatusTime']=_[_0xc8b64('0x1')](moment()['format']('x')));_0x2474cc&&(this['voiceStatus']=_0x2474cc);const _0x5259a2={'id':this['id'],'name':this[_0xc8b64('0x4')],'email':this[_0xc8b64('0xe')],'accountcode':this['accountcode'],'fullname':this[_0xc8b64('0x19')],'state':this[_0xc8b64('0x1b')],'stateTime':this[_0xc8b64('0x0')],'status':this[_0xc8b64('0x6')],'address':this[_0xc8b64('0x7')],'online':this[_0xc8b64('0x8')],'voiceStatus':this['voiceStatus'],'voiceStatusTime':this['voiceStatusTime'],'voiceStatusCallerIdNumber':this[_0xc8b64('0x2')],'voiceStatusQueue':this[_0xc8b64('0x1e')],'interface':this['interface'],'onhold':this[_0xc8b64('0x16')]},_0x263a37=md5(JSON['stringify'](_0x5259a2));this[_0xc8b64('0xc')]!==_0x263a37&&(this['md5']=_0x263a37,io['to'](util[_0xc8b64('0x1a')](_0xc8b64('0xd'),_0x5259a2['name']))['emit'](_0xc8b64('0x18'),_0x5259a2));},module['exports']=Agent; \ No newline at end of file diff --git a/server/services/ami/model/campaign.js b/server/services/ami/model/campaign.js index 68ce9d1..387d84f 100644 --- a/server/services/ami/model/campaign.js +++ b/server/services/ami/model/campaign.js @@ -1 +1 @@ -var a1066_0x51da=['dialAMDInitialSilence','dialAMDMaximumNumberOfWords','dialAMDMinWordLength','dialAMDGreeting','dialAbandonedMaxRetry','dialCongestionRetryFrequency','dialCutDigit','dialTimezone','dialBusyMaxRetry','type','dialAMDAfterGreetingSilence','dialNoSuchNumberRetryFrequency','dialAMDActive','dialPrefix','dialAMDMaximumWordLength','ivrAnswerCallsDay','dialNoSuchNumberMaxRetry','dialOriginateTimeout','dialOrderByScheduledAt','Trunk','dialAMDTotalAnalysisTime','dialAMDSilenceThreshold','dialAgentRejectRetryFrequency','dialRandomLastDigitCallerIdNumber','temp','dialOriginateCallerIdNumber','dialDropRetryFrequency','dialGlobalInterval','DESC','TrunkBackup','dialAgentRejectMaxRetry','sendMessageOneNotActive','dialNoAnswerRetryFrequency','dialMachineRetryFrequency','dialAMDBetweenWordsSilence','active','campaign','Interval','dialAbandonedRetryFrequency','dialNoAnswerMaxRetry','dialMachineMaxRetry','limitCalls','dialOriginateCallerIdName','dialCongestionMaxRetry','SquareProject','dialDropMaxRetry','dialGlobalMaxRetry'];(function(_0x39b3f7,_0x51da20){var _0x178e20=function(_0xea0515){while(--_0xea0515){_0x39b3f7['push'](_0x39b3f7['shift']());}};_0x178e20(++_0x51da20);}(a1066_0x51da,0x6a));var a1066_0x178e=function(_0x39b3f7,_0x51da20){_0x39b3f7=_0x39b3f7-0x0;var _0x178e20=a1066_0x51da[_0x39b3f7];return _0x178e20;};'use strict';function Campaign(_0xea0515){var _0x288d43=a1066_0x178e;this['id']=_0xea0515['id']||0x0,this['name']=_0xea0515['name']||'',this[_0x288d43('0x2c')]=_0xea0515['type']||_0x288d43('0x18'),this['originated']=0x0,this[_0x288d43('0xc')]=0x0,this[_0x288d43('0x3')]=0x0,this['ivrTotalCallsDays']=0x0,this['message']='',this[_0x288d43('0x13')]=!![],this[_0x288d43('0x17')]=_0xea0515[_0x288d43('0x17')],this[_0x288d43('0x1d')]=_0xea0515[_0x288d43('0x1d')],this[_0x288d43('0x2a')]=_0xea0515[_0x288d43('0x2a')]||null,this[_0x288d43('0xf')]=_0xea0515[_0x288d43('0xf')]?_0xea0515[_0x288d43('0xf')]:null,this['dialOriginateCallerIdName']=_0xea0515[_0x288d43('0x1e')],this[_0x288d43('0xd')]=_0xea0515[_0x288d43('0xd')],this[_0x288d43('0x5')]=_0xea0515[_0x288d43('0x5')]||0x1e,this[_0x288d43('0x1f')]=_0xea0515['dialCongestionMaxRetry'],this['dialCongestionRetryFrequency']=_0xea0515[_0x288d43('0x28')],this[_0x288d43('0x2b')]=_0xea0515['dialBusyMaxRetry'],this['dialBusyRetryFrequency']=_0xea0515['dialBusyRetryFrequency'],this[_0x288d43('0x1b')]=_0xea0515[_0x288d43('0x1b')],this[_0x288d43('0x14')]=_0xea0515[_0x288d43('0x14')],this[_0x288d43('0x22')]=_0xea0515['dialGlobalMaxRetry'],this['dialNoSuchNumberMaxRetry']=_0xea0515[_0x288d43('0x4')]||0x3,this['dialNoSuchNumberRetryFrequency']=_0xea0515[_0x288d43('0x2e')]||0x96,this[_0x288d43('0x21')]=_0xea0515[_0x288d43('0x21')]||0x3,this[_0x288d43('0xe')]=_0xea0515[_0x288d43('0xe')]||0x96,this[_0x288d43('0x27')]=_0xea0515['dialAbandonedMaxRetry']||0x3,this[_0x288d43('0x1a')]=_0xea0515[_0x288d43('0x1a')]||0x96,this[_0x288d43('0x1c')]=_0xea0515[_0x288d43('0x1c')]||0x3,this[_0x288d43('0x15')]=_0xea0515[_0x288d43('0x15')]||0x96,this[_0x288d43('0x12')]=_0xea0515[_0x288d43('0x12')]||0x3,this[_0x288d43('0xa')]=_0xea0515[_0x288d43('0xa')]||0x96,this['dialOrderByScheduledAt']=_0xea0515[_0x288d43('0x6')]||_0x288d43('0x10'),this[_0x288d43('0x1')]=_0xea0515[_0x288d43('0x1')]||undefined,this[_0x288d43('0xb')]=_0xea0515[_0x288d43('0xb')]||undefined,this[_0x288d43('0x29')]=_0xea0515[_0x288d43('0x29')]||undefined,this['TrunkBackup']=_0xea0515[_0x288d43('0x11')]?_0xea0515[_0x288d43('0x11')]:undefined,this[_0x288d43('0x7')]=_0xea0515[_0x288d43('0x7')]?_0xea0515[_0x288d43('0x7')]:undefined,this[_0x288d43('0x19')]=_0xea0515[_0x288d43('0x19')]?_0xea0515['Interval']:undefined,this['SquareProject']=_0xea0515[_0x288d43('0x20')]?_0xea0515[_0x288d43('0x20')]:undefined,this['dialQueueProject']=_0xea0515[_0x288d43('0x20')]?_0xea0515[_0x288d43('0x20')]['name']:undefined,this['dialAMDActive']=_0xea0515[_0x288d43('0x0')]||![],this['dialAMDInitialSilence']=_0xea0515[_0x288d43('0x23')],this[_0x288d43('0x26')]=_0xea0515['dialAMDGreeting'],this[_0x288d43('0x2d')]=_0xea0515[_0x288d43('0x2d')],this[_0x288d43('0x8')]=_0xea0515[_0x288d43('0x8')],this['dialAMDMinWordLength']=_0xea0515[_0x288d43('0x25')],this[_0x288d43('0x16')]=_0xea0515[_0x288d43('0x16')],this[_0x288d43('0x24')]=_0xea0515[_0x288d43('0x24')],this[_0x288d43('0x9')]=_0xea0515['dialAMDSilenceThreshold'],this[_0x288d43('0x2')]=_0xea0515[_0x288d43('0x2')];}module['exports']=Campaign; \ No newline at end of file +var a1067_0x7a0d=['name','campaign','sendMessageOneNotActive','dialAMDMaximumNumberOfWords','dialMachineMaxRetry','dialOriginateTimeout','dialCongestionMaxRetry','dialGlobalMaxRetry','dialBusyRetryFrequency','dialOriginateCallerIdNumber','dialBusyMaxRetry','dialDropMaxRetry','dialRandomLastDigitCallerIdNumber','Trunk','dialNoAnswerRetryFrequency','dialOriginateCallerIdName','dialDropRetryFrequency','dialOrderByScheduledAt','SquareProject','dialAMDBetweenWordsSilence','dialQueueProject','dialMachineRetryFrequency','active','ivrTotalCallsDays','dialAbandonedMaxRetry','dialAMDSilenceThreshold','dialCongestionRetryFrequency','dialPrefix','DESC','Interval','temp','message','type','dialAMDGreeting','dialCutDigit','dialGlobalInterval','dialAbandonedRetryFrequency','dialAMDTotalAnalysisTime','dialNoSuchNumberRetryFrequency','dialAMDMaximumWordLength','dialNoSuchNumberMaxRetry','ivrAnswerCallsDay','limitCalls','dialAMDInitialSilence','dialTimezone','TrunkBackup','exports','originated','dialNoAnswerMaxRetry','dialAgentRejectRetryFrequency','dialAMDAfterGreetingSilence','dialAgentRejectMaxRetry'];(function(_0x16efb9,_0x7a0d44){var _0x47b547=function(_0x2b3914){while(--_0x2b3914){_0x16efb9['push'](_0x16efb9['shift']());}};_0x47b547(++_0x7a0d44);}(a1067_0x7a0d,0xc2));var a1067_0x47b5=function(_0x16efb9,_0x7a0d44){_0x16efb9=_0x16efb9-0x0;var _0x47b547=a1067_0x7a0d[_0x16efb9];return _0x47b547;};var _0x3f7fc0=a1067_0x47b5;'use strict';function Campaign(_0x2b3914){var _0xde475d=a1067_0x47b5;this['id']=_0x2b3914['id']||0x0,this[_0xde475d('0xe')]=_0x2b3914[_0xde475d('0xe')]||'',this['type']=_0x2b3914[_0xde475d('0x2e')]||_0xde475d('0xf'),this[_0xde475d('0x9')]=0x0,this[_0xde475d('0x2c')]=0x0,this[_0xde475d('0x3')]=0x0,this[_0xde475d('0x25')]=0x0,this[_0xde475d('0x2d')]='',this[_0xde475d('0x10')]=!![],this[_0xde475d('0x24')]=_0x2b3914[_0xde475d('0x24')],this['limitCalls']=_0x2b3914[_0xde475d('0x4')],this['dialTimezone']=_0x2b3914[_0xde475d('0x6')]||null,this[_0xde475d('0x31')]=_0x2b3914[_0xde475d('0x31')]?_0x2b3914[_0xde475d('0x31')]:null,this[_0xde475d('0x1d')]=_0x2b3914[_0xde475d('0x1d')],this[_0xde475d('0x17')]=_0x2b3914[_0xde475d('0x17')],this[_0xde475d('0x13')]=_0x2b3914[_0xde475d('0x13')]||0x1e,this[_0xde475d('0x14')]=_0x2b3914[_0xde475d('0x14')],this[_0xde475d('0x28')]=_0x2b3914[_0xde475d('0x28')],this['dialBusyMaxRetry']=_0x2b3914[_0xde475d('0x18')],this['dialBusyRetryFrequency']=_0x2b3914[_0xde475d('0x16')],this['dialNoAnswerMaxRetry']=_0x2b3914[_0xde475d('0xa')],this['dialNoAnswerRetryFrequency']=_0x2b3914[_0xde475d('0x1c')],this[_0xde475d('0x15')]=_0x2b3914[_0xde475d('0x15')],this[_0xde475d('0x2')]=_0x2b3914['dialNoSuchNumberMaxRetry']||0x3,this[_0xde475d('0x0')]=_0x2b3914['dialNoSuchNumberRetryFrequency']||0x96,this['dialDropMaxRetry']=_0x2b3914[_0xde475d('0x19')]||0x3,this[_0xde475d('0x1e')]=_0x2b3914[_0xde475d('0x1e')]||0x96,this[_0xde475d('0x26')]=_0x2b3914[_0xde475d('0x26')]||0x3,this[_0xde475d('0x32')]=_0x2b3914[_0xde475d('0x32')]||0x96,this[_0xde475d('0x12')]=_0x2b3914[_0xde475d('0x12')]||0x3,this['dialMachineRetryFrequency']=_0x2b3914[_0xde475d('0x23')]||0x96,this[_0xde475d('0xd')]=_0x2b3914['dialAgentRejectMaxRetry']||0x3,this[_0xde475d('0xb')]=_0x2b3914[_0xde475d('0xb')]||0x96,this[_0xde475d('0x1f')]=_0x2b3914[_0xde475d('0x1f')]||_0xde475d('0x2a'),this[_0xde475d('0x29')]=_0x2b3914['dialPrefix']||undefined,this[_0xde475d('0x1a')]=_0x2b3914[_0xde475d('0x1a')]||undefined,this[_0xde475d('0x30')]=_0x2b3914[_0xde475d('0x30')]||undefined,this[_0xde475d('0x7')]=_0x2b3914[_0xde475d('0x7')]?_0x2b3914['TrunkBackup']:undefined,this[_0xde475d('0x1b')]=_0x2b3914['Trunk']?_0x2b3914[_0xde475d('0x1b')]:undefined,this[_0xde475d('0x2b')]=_0x2b3914['Interval']?_0x2b3914[_0xde475d('0x2b')]:undefined,this['SquareProject']=_0x2b3914['SquareProject']?_0x2b3914[_0xde475d('0x20')]:undefined,this[_0xde475d('0x22')]=_0x2b3914[_0xde475d('0x20')]?_0x2b3914[_0xde475d('0x20')][_0xde475d('0xe')]:undefined,this['dialAMDActive']=_0x2b3914['dialAMDActive']||![],this['dialAMDInitialSilence']=_0x2b3914[_0xde475d('0x5')],this[_0xde475d('0x2f')]=_0x2b3914[_0xde475d('0x2f')],this[_0xde475d('0xc')]=_0x2b3914[_0xde475d('0xc')],this[_0xde475d('0x33')]=_0x2b3914[_0xde475d('0x33')],this['dialAMDMinWordLength']=_0x2b3914['dialAMDMinWordLength'],this[_0xde475d('0x21')]=_0x2b3914[_0xde475d('0x21')],this[_0xde475d('0x11')]=_0x2b3914[_0xde475d('0x11')],this['dialAMDSilenceThreshold']=_0x2b3914[_0xde475d('0x27')],this[_0xde475d('0x1')]=_0x2b3914[_0xde475d('0x1')];}module[_0x3f7fc0('0x8')]=Campaign; \ No newline at end of file diff --git a/server/services/ami/model/channel.js b/server/services/ami/model/channel.js index 6460b18..b782715 100644 --- a/server/services/ami/model/channel.js +++ b/server/services/ami/model/channel.js @@ -1 +1 @@ -var a1067_0x2f75=['linkedid','disposition','monitor','billableseconds','lastapplication','holdtime','channel','queue','monitors','mohtime','abandoned','duration','answered','context','monitorFilename','tag','destinationchannel','endtime','connectedlinenum'];(function(_0x3a340b,_0x2f75f8){var _0x3bdfc5=function(_0x517a3a){while(--_0x517a3a){_0x3a340b['push'](_0x3a340b['shift']());}};_0x3bdfc5(++_0x2f75f8);}(a1067_0x2f75,0x17b));var a1067_0x3bdf=function(_0x3a340b,_0x2f75f8){_0x3a340b=_0x3a340b-0x0;var _0x3bdfc5=a1067_0x2f75[_0x3a340b];return _0x3bdfc5;};'use strict';function Channel(){var _0x59561f=a1067_0x3bdf;this['starttime']=null,this[_0x59561f('0x7')]='',this[_0x59561f('0x11')]='',this['calleridnum']=0x0,this['calleridname']='',this[_0x59561f('0x0')]=undefined,this['connectedlinename']=undefined,this['accountcode']=0x0,this[_0x59561f('0xe')]='',this['uniqueid']=0x0,this[_0x59561f('0x1')]=0x0,this['exten']=0x0,this[_0x59561f('0xd')]=![],this['answertime']=null,this[_0x59561f('0x12')]=null,this['unmanaged']=![],this[_0x59561f('0xb')]=![],this[_0x59561f('0x5')]='',this['lastdata']='',this[_0x59561f('0xc')]=0x0,this[_0x59561f('0x4')]=0x0,this[_0x59561f('0x6')]=0x0,this['type']=null,this[_0x59561f('0x10')]=null,this[_0x59561f('0x2')]=null,this[_0x59561f('0x3')]=![],this[_0x59561f('0xf')]=null,this[_0x59561f('0x8')]=null,this[_0x59561f('0x9')]=[],this['transfercalleridnum']=undefined,this['transferconnectedlinenum']=undefined,this[_0x59561f('0xa')]=0x0;}module['exports']=Channel; \ No newline at end of file +var a1068_0x536d=['exports','endtime','connectedlinenum','transfercalleridnum','monitors','unmanaged','linkedid','queue','type','duration','connectedlinename','transferconnectedlinenum','lastapplication','monitorFilename','tag','lastdata','destinationchannel','answered','holdtime','mohtime','billableseconds','exten','starttime','uniqueid','abandoned'];(function(_0xd5a84c,_0x536da2){var _0x254fbf=function(_0x357335){while(--_0x357335){_0xd5a84c['push'](_0xd5a84c['shift']());}};_0x254fbf(++_0x536da2);}(a1068_0x536d,0x107));var a1068_0x254f=function(_0xd5a84c,_0x536da2){_0xd5a84c=_0xd5a84c-0x0;var _0x254fbf=a1068_0x536d[_0xd5a84c];return _0x254fbf;};var _0x1c8b4c=a1068_0x254f;'use strict';function Channel(){var _0x411d79=a1068_0x254f;this[_0x411d79('0x9')]=null,this['channel']='',this[_0x411d79('0x3')]='',this['calleridnum']=0x0,this['calleridname']='',this[_0x411d79('0xe')]=undefined,this[_0x411d79('0x16')]=undefined,this['accountcode']=0x0,this['context']='',this[_0x411d79('0xa')]=0x0,this[_0x411d79('0x12')]=0x0,this[_0x411d79('0x8')]=0x0,this[_0x411d79('0x4')]=![],this['answertime']=null,this[_0x411d79('0xd')]=null,this[_0x411d79('0x11')]=![],this[_0x411d79('0xb')]=![],this[_0x411d79('0x18')]='',this[_0x411d79('0x2')]='',this[_0x411d79('0x15')]=0x0,this[_0x411d79('0x7')]=0x0,this[_0x411d79('0x5')]=0x0,this[_0x411d79('0x14')]=null,this[_0x411d79('0x1')]=null,this['disposition']=null,this['monitor']=![],this[_0x411d79('0x0')]=null,this[_0x411d79('0x13')]=null,this[_0x411d79('0x10')]=[],this[_0x411d79('0xf')]=undefined,this[_0x411d79('0x17')]=undefined,this[_0x411d79('0x6')]=0x0;}module[_0x1c8b4c('0xc')]=Channel; \ No newline at end of file diff --git a/server/services/ami/model/deskAccount.js b/server/services/ami/model/deskAccount.js index 226ce4f..44b1b23 100644 --- a/server/services/ami/model/deskAccount.js +++ b/server/services/ami/model/deskAccount.js @@ -1 +1 @@ -var a1068_0x11c8=['serverUrl','consumerSecret','type','token','username','tokenSecret','authType','exports','password','name','Configurations','remoteUri'];(function(_0x4573db,_0x11c815){var _0x2319d3=function(_0x22586d){while(--_0x22586d){_0x4573db['push'](_0x4573db['shift']());}};_0x2319d3(++_0x11c815);}(a1068_0x11c8,0x165));var a1068_0x2319=function(_0x4573db,_0x11c815){_0x4573db=_0x4573db-0x0;var _0x2319d3=a1068_0x11c8[_0x4573db];return _0x2319d3;};var _0x4c4f84=a1068_0x2319;'use strict';function DeskAccount(_0x22586d){var _0x5bb8ad=a1068_0x2319;this['id']=_0x22586d['id']||0x0,this[_0x5bb8ad('0x0')]=_0x22586d[_0x5bb8ad('0x0')]||'',this[_0x5bb8ad('0x7')]=_0x22586d[_0x5bb8ad('0x7')]||'',this[_0x5bb8ad('0x2')]=_0x22586d[_0x5bb8ad('0x2')]||'',this['authType']=_0x22586d[_0x5bb8ad('0x9')]||'',this[_0x5bb8ad('0xb')]=_0x22586d['password']||'',this['consumerKey']=_0x22586d['consumerKey']||'',this[_0x5bb8ad('0x4')]=_0x22586d['consumerSecret']||'',this['token']=_0x22586d[_0x5bb8ad('0x6')]||'',this[_0x5bb8ad('0x8')]=_0x22586d[_0x5bb8ad('0x8')]||'',this[_0x5bb8ad('0x5')]=_0x22586d[_0x5bb8ad('0x5')]||'',this[_0x5bb8ad('0x3')]=_0x22586d[_0x5bb8ad('0x3')]||'',this[_0x5bb8ad('0x1')]=_0x22586d['Configurations']||{};}module[_0x4c4f84('0xa')]=DeskAccount; \ No newline at end of file +var a1069_0x492b=['type','exports','password','tokenSecret','consumerKey','name','authType','Configurations','token','serverUrl','username','consumerSecret'];(function(_0xe2b64,_0x492b80){var _0x506410=function(_0x2bdd89){while(--_0x2bdd89){_0xe2b64['push'](_0xe2b64['shift']());}};_0x506410(++_0x492b80);}(a1069_0x492b,0x6e));var a1069_0x5064=function(_0xe2b64,_0x492b80){_0xe2b64=_0xe2b64-0x0;var _0x506410=a1069_0x492b[_0xe2b64];return _0x506410;};var _0x4e0edb=a1069_0x5064;'use strict';function DeskAccount(_0x2bdd89){var _0x452ba1=a1069_0x5064;this['id']=_0x2bdd89['id']||0x0,this[_0x452ba1('0x3')]=_0x2bdd89[_0x452ba1('0x3')]||'',this['username']=_0x2bdd89[_0x452ba1('0x8')]||'',this['remoteUri']=_0x2bdd89['remoteUri']||'',this[_0x452ba1('0x4')]=_0x2bdd89[_0x452ba1('0x4')]||'',this[_0x452ba1('0x0')]=_0x2bdd89[_0x452ba1('0x0')]||'',this[_0x452ba1('0x2')]=_0x2bdd89[_0x452ba1('0x2')]||'',this[_0x452ba1('0x9')]=_0x2bdd89[_0x452ba1('0x9')]||'',this['token']=_0x2bdd89[_0x452ba1('0x6')]||'',this[_0x452ba1('0x1')]=_0x2bdd89['tokenSecret']||'',this[_0x452ba1('0xa')]=_0x2bdd89[_0x452ba1('0xa')]||'',this[_0x452ba1('0x7')]=_0x2bdd89[_0x452ba1('0x7')]||'',this[_0x452ba1('0x5')]=_0x2bdd89[_0x452ba1('0x5')]||{};}module[_0x4e0edb('0xb')]=DeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/dynamics365Account.js b/server/services/ami/model/dynamics365Account.js index b1408a2..d0c5270 100644 --- a/server/services/ami/model/dynamics365Account.js +++ b/server/services/ami/model/dynamics365Account.js @@ -1 +1 @@ -var a1069_0x9307=['clientSecret','name','Configurations','serverUrl','tenantId','remoteUri','clientId','exports','username'];(function(_0x453f48,_0x930717){var _0x46fd4c=function(_0x409875){while(--_0x409875){_0x453f48['push'](_0x453f48['shift']());}};_0x46fd4c(++_0x930717);}(a1069_0x9307,0xf8));var a1069_0x46fd=function(_0x453f48,_0x930717){_0x453f48=_0x453f48-0x0;var _0x46fd4c=a1069_0x9307[_0x453f48];return _0x46fd4c;};var _0x588670=a1069_0x46fd;'use strict';function Dynamics365Account(_0x409875){var _0x45f733=a1069_0x46fd;this['id']=_0x409875['id']||0x0,this[_0x45f733('0x5')]=_0x409875[_0x45f733('0x5')]||'',this['username']=_0x409875[_0x45f733('0x3')]||'',this['password']=_0x409875['password']||'',this[_0x45f733('0x0')]=_0x409875['remoteUri']||'',this['tenantId']=_0x409875[_0x45f733('0x8')]||'',this['clientId']=_0x409875[_0x45f733('0x1')]||'',this['clientSecret']=_0x409875[_0x45f733('0x4')]||{},this[_0x45f733('0x7')]=_0x409875[_0x45f733('0x7')]||'',this[_0x45f733('0x6')]=_0x409875[_0x45f733('0x6')]||{};}module[_0x588670('0x2')]=Dynamics365Account; \ No newline at end of file +var a1070_0x2378=['password','clientId','serverUrl','tenantId','username','name','Configurations','clientSecret','exports','remoteUri'];(function(_0x768d82,_0x2378f0){var _0x411ef4=function(_0x38e9e){while(--_0x38e9e){_0x768d82['push'](_0x768d82['shift']());}};_0x411ef4(++_0x2378f0);}(a1070_0x2378,0x1c6));var a1070_0x411e=function(_0x768d82,_0x2378f0){_0x768d82=_0x768d82-0x0;var _0x411ef4=a1070_0x2378[_0x768d82];return _0x411ef4;};var _0x197a66=a1070_0x411e;'use strict';function Dynamics365Account(_0x38e9e){var _0x161c01=a1070_0x411e;this['id']=_0x38e9e['id']||0x0,this[_0x161c01('0x1')]=_0x38e9e[_0x161c01('0x1')]||'',this[_0x161c01('0x0')]=_0x38e9e[_0x161c01('0x0')]||'',this[_0x161c01('0x6')]=_0x38e9e[_0x161c01('0x6')]||'',this['remoteUri']=_0x38e9e[_0x161c01('0x5')]||'',this[_0x161c01('0x9')]=_0x38e9e[_0x161c01('0x9')]||'',this['clientId']=_0x38e9e[_0x161c01('0x7')]||'',this['clientSecret']=_0x38e9e[_0x161c01('0x3')]||{},this[_0x161c01('0x8')]=_0x38e9e[_0x161c01('0x8')]||'',this['Configurations']=_0x38e9e[_0x161c01('0x2')]||{};}module[_0x197a66('0x4')]=Dynamics365Account; \ No newline at end of file diff --git a/server/services/ami/model/faxAccount.js b/server/services/ami/model/faxAccount.js index 7b372e4..f088918 100644 --- a/server/services/ami/model/faxAccount.js +++ b/server/services/ami/model/faxAccount.js @@ -1 +1 @@ -var a1070_0x58bd=['Trunk','tech','name','modem','minrate','ListId','description','localstationid','ecm','maxrate','t38timeout','faxdetect','headerinfo','gateway','key'];(function(_0x4cad09,_0x58bd9d){var _0x2ae304=function(_0x1a6bf4){while(--_0x1a6bf4){_0x4cad09['push'](_0x4cad09['shift']());}};_0x2ae304(++_0x58bd9d);}(a1070_0x58bd,0x6b));var a1070_0x2ae3=function(_0x4cad09,_0x58bd9d){_0x4cad09=_0x4cad09-0x0;var _0x2ae304=a1070_0x58bd[_0x4cad09];return _0x2ae304;};'use strict';function FaxAccount(_0x1a6bf4){var _0x350a70=a1070_0x2ae3;this['id']=_0x1a6bf4['id']||0x0,this[_0x350a70('0x0')]=_0x1a6bf4[_0x350a70('0x0')]||'',this[_0x350a70('0x4')]=_0x1a6bf4[_0x350a70('0x4')],this[_0x350a70('0x6')]=_0x1a6bf4[_0x350a70('0x6')],this[_0x350a70('0xa')]=_0x1a6bf4['headerinfo'],this[_0x350a70('0x5')]=_0x1a6bf4[_0x350a70('0x5')],this[_0x350a70('0x2')]=_0x1a6bf4['minrate']||0x960,this['maxrate']=_0x1a6bf4[_0x350a70('0x7')]||0x3840,this['modem']=_0x1a6bf4[_0x350a70('0x1')]||'v17,v27,v29',this['gateway']=_0x1a6bf4[_0x350a70('0xb')]||'no',this['faxdetect']=_0x1a6bf4[_0x350a70('0x9')]||'no',this[_0x350a70('0x8')]=_0x1a6bf4[_0x350a70('0x8')]||0x1388,this[_0x350a70('0xe')]=_0x1a6bf4['tech']||'SIP',this[_0x350a70('0xd')]=_0x1a6bf4[_0x350a70('0xd')]?_0x1a6bf4['Trunk']:undefined,this[_0x350a70('0x3')]=_0x1a6bf4['ListId'],this[_0x350a70('0xc')]=_0x1a6bf4[_0x350a70('0xc')];}module['exports']=FaxAccount; \ No newline at end of file +var a1071_0x1513=['exports','maxrate','t38timeout','headerinfo','v17,v27,v29','minrate','ecm','Trunk','tech','gateway','faxdetect','modem','key','localstationid','ListId'];(function(_0x20aa22,_0x151358){var _0xe5693f=function(_0x5ac840){while(--_0x5ac840){_0x20aa22['push'](_0x20aa22['shift']());}};_0xe5693f(++_0x151358);}(a1071_0x1513,0x122));var a1071_0xe569=function(_0x20aa22,_0x151358){_0x20aa22=_0x20aa22-0x0;var _0xe5693f=a1071_0x1513[_0x20aa22];return _0xe5693f;};var _0x58c179=a1071_0xe569;'use strict';function FaxAccount(_0x5ac840){var _0x59f389=a1071_0xe569;this['id']=_0x5ac840['id']||0x0,this['name']=_0x5ac840['name']||'',this['description']=_0x5ac840['description'],this['ecm']=_0x5ac840[_0x59f389('0x1')],this[_0x59f389('0xd')]=_0x5ac840[_0x59f389('0xd')],this[_0x59f389('0x8')]=_0x5ac840[_0x59f389('0x8')],this['minrate']=_0x5ac840[_0x59f389('0x0')]||0x960,this[_0x59f389('0xb')]=_0x5ac840[_0x59f389('0xb')]||0x3840,this[_0x59f389('0x6')]=_0x5ac840[_0x59f389('0x6')]||_0x59f389('0xe'),this[_0x59f389('0x4')]=_0x5ac840['gateway']||'no',this[_0x59f389('0x5')]=_0x5ac840[_0x59f389('0x5')]||'no',this[_0x59f389('0xc')]=_0x5ac840['t38timeout']||0x1388,this[_0x59f389('0x3')]=_0x5ac840[_0x59f389('0x3')]||'SIP',this[_0x59f389('0x2')]=_0x5ac840['Trunk']?_0x5ac840[_0x59f389('0x2')]:undefined,this[_0x59f389('0x9')]=_0x5ac840[_0x59f389('0x9')],this[_0x59f389('0x7')]=_0x5ac840[_0x59f389('0x7')];}module[_0x58c179('0xa')]=FaxAccount; \ No newline at end of file diff --git a/server/services/ami/model/freshdeskAccount.js b/server/services/ami/model/freshdeskAccount.js index 2fe4811..ebe3fd2 100644 --- a/server/services/ami/model/freshdeskAccount.js +++ b/server/services/ami/model/freshdeskAccount.js @@ -1 +1 @@ -var a1071_0x4fbb=['apiKey','username','serverUrl','name','token','exports','Configurations'];(function(_0x252a27,_0x4fbb74){var _0x165b3c=function(_0xf84793){while(--_0xf84793){_0x252a27['push'](_0x252a27['shift']());}};_0x165b3c(++_0x4fbb74);}(a1071_0x4fbb,0xdc));var a1071_0x165b=function(_0x252a27,_0x4fbb74){_0x252a27=_0x252a27-0x0;var _0x165b3c=a1071_0x4fbb[_0x252a27];return _0x165b3c;};var _0x3a0129=a1071_0x165b;'use strict';function FreshdeskAccount(_0xf84793){var _0x38c3c7=a1071_0x165b;this['id']=_0xf84793['id']||0x0,this[_0x38c3c7('0x0')]=_0xf84793[_0x38c3c7('0x0')]||'',this['username']=_0xf84793[_0x38c3c7('0x5')]||'',this[_0x38c3c7('0x4')]=_0xf84793[_0x38c3c7('0x1')]||'',this['remoteUri']=_0xf84793['remoteUri']||'',this['serverUrl']=_0xf84793[_0x38c3c7('0x6')]||'',this[_0x38c3c7('0x3')]=_0xf84793[_0x38c3c7('0x3')]||{};}module[_0x3a0129('0x2')]=FreshdeskAccount; \ No newline at end of file +var a1072_0x5bd1=['name','apiKey','Configurations','remoteUri','exports','token','serverUrl'];(function(_0x3d78d9,_0x5bd186){var _0x361047=function(_0x25a623){while(--_0x25a623){_0x3d78d9['push'](_0x3d78d9['shift']());}};_0x361047(++_0x5bd186);}(a1072_0x5bd1,0x1c8));var a1072_0x3610=function(_0x3d78d9,_0x5bd186){_0x3d78d9=_0x3d78d9-0x0;var _0x361047=a1072_0x5bd1[_0x3d78d9];return _0x361047;};var _0x41e72b=a1072_0x3610;'use strict';function FreshdeskAccount(_0x25a623){var _0x279f25=a1072_0x3610;this['id']=_0x25a623['id']||0x0,this['name']=_0x25a623[_0x279f25('0x6')]||'',this['username']=_0x25a623['username']||'',this[_0x279f25('0x0')]=_0x25a623[_0x279f25('0x4')]||'',this['remoteUri']=_0x25a623[_0x279f25('0x2')]||'',this[_0x279f25('0x5')]=_0x25a623[_0x279f25('0x5')]||'',this[_0x279f25('0x1')]=_0x25a623['Configurations']||{};}module[_0x41e72b('0x3')]=FreshdeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/freshsalesAccount.js b/server/services/ami/model/freshsalesAccount.js index f6383b0..0f8d2b1 100644 --- a/server/services/ami/model/freshsalesAccount.js +++ b/server/services/ami/model/freshsalesAccount.js @@ -1 +1 @@ -var a1072_0x2483=['remoteUri','serverUrl','Configurations','token','name','username','exports'];(function(_0x1b7cd3,_0x2483c7){var _0x18b654=function(_0x515607){while(--_0x515607){_0x1b7cd3['push'](_0x1b7cd3['shift']());}};_0x18b654(++_0x2483c7);}(a1072_0x2483,0x198));var a1072_0x18b6=function(_0x1b7cd3,_0x2483c7){_0x1b7cd3=_0x1b7cd3-0x0;var _0x18b654=a1072_0x2483[_0x1b7cd3];return _0x18b654;};var _0x13b90b=a1072_0x18b6;'use strict';function FreshsalesAccount(_0x515607){var _0x44d9e9=a1072_0x18b6;this['id']=_0x515607['id']||0x0,this[_0x44d9e9('0x2')]=_0x515607[_0x44d9e9('0x2')]||'',this['username']=_0x515607[_0x44d9e9('0x3')]||'',this['apiKey']=_0x515607[_0x44d9e9('0x1')]||'',this[_0x44d9e9('0x5')]=_0x515607['remoteUri']||'',this[_0x44d9e9('0x6')]=_0x515607[_0x44d9e9('0x6')]||'',this[_0x44d9e9('0x0')]=_0x515607[_0x44d9e9('0x0')]||{};}module[_0x13b90b('0x4')]=FreshsalesAccount; \ No newline at end of file +var a1073_0x2578=['username','Configurations','name','remoteUri','apiKey','serverUrl'];(function(_0x393fa9,_0x257884){var _0x5c6971=function(_0x7ec14b){while(--_0x7ec14b){_0x393fa9['push'](_0x393fa9['shift']());}};_0x5c6971(++_0x257884);}(a1073_0x2578,0x134));var a1073_0x5c69=function(_0x393fa9,_0x257884){_0x393fa9=_0x393fa9-0x0;var _0x5c6971=a1073_0x2578[_0x393fa9];return _0x5c6971;};'use strict';function FreshsalesAccount(_0x7ec14b){var _0x3048ed=a1073_0x5c69;this['id']=_0x7ec14b['id']||0x0,this[_0x3048ed('0x0')]=_0x7ec14b[_0x3048ed('0x0')]||'',this[_0x3048ed('0x4')]=_0x7ec14b[_0x3048ed('0x4')]||'',this[_0x3048ed('0x2')]=_0x7ec14b['token']||'',this['remoteUri']=_0x7ec14b[_0x3048ed('0x1')]||'',this[_0x3048ed('0x3')]=_0x7ec14b['serverUrl']||'',this[_0x3048ed('0x5')]=_0x7ec14b[_0x3048ed('0x5')]||{};}module['exports']=FreshsalesAccount; \ No newline at end of file diff --git a/server/services/ami/model/queueReport.js b/server/services/ami/model/queueReport.js index e3ed905..82e6513 100644 --- a/server/services/ami/model/queueReport.js +++ b/server/services/ami/model/queueReport.js @@ -1 +1 @@ -var a1073_0x42de=['queuecallerleaveAt','holdtime','assigned','mohtime','queuecallerabandonAt','queuecallerexit','calleridname','exports','type','originalposition','exten','queue','lastAssignedTo','calleridnum','connectedlinenum','inbound','queuecallerabandon','queuecallerexitAt','accountcode','connectedlinename','priority','position','variables'];(function(_0x5cf460,_0x42def5){var _0xefd2d6=function(_0x1df582){while(--_0x1df582){_0x5cf460['push'](_0x5cf460['shift']());}};_0xefd2d6(++_0x42def5);}(a1073_0x42de,0x15c));var a1073_0xefd2=function(_0x5cf460,_0x42def5){_0x5cf460=_0x5cf460-0x0;var _0xefd2d6=a1073_0x42de[_0x5cf460];return _0xefd2d6;};var _0x9a7b12=a1073_0xefd2;'use strict';function QueueReport(){var _0x20d2e4=a1073_0xefd2;this[_0x20d2e4('0x5')]=_0x20d2e4('0xc'),this['uniqueid']='',this[_0x20d2e4('0xa')]='',this[_0x20d2e4('0x3')]='',this[_0x20d2e4('0x8')]='',this['queuecallerjoinAt']=null,this[_0x20d2e4('0x14')]=null,this[_0x20d2e4('0x12')]=0x1,this['count']=0x1,this[_0x20d2e4('0xd')]=![],this[_0x20d2e4('0x1')]=null,this['queuecallercomplete']=![],this['queuecallercompleteAt']=null,this[_0x20d2e4('0x2')]=![],this[_0x20d2e4('0xe')]=null,this[_0x20d2e4('0x6')]=0x1,this['channel']='',this[_0x20d2e4('0xb')]='',this[_0x20d2e4('0x10')]='',this[_0x20d2e4('0xf')]='',this['context']='',this[_0x20d2e4('0x7')]='',this[_0x20d2e4('0x11')]='',this[_0x20d2e4('0x15')]=0x0,this[_0x20d2e4('0x16')]=![],this[_0x20d2e4('0x9')]='',this[_0x20d2e4('0x0')]=0x0,this[_0x20d2e4('0x13')]={};}module[_0x9a7b12('0x4')]=QueueReport; \ No newline at end of file +var a1074_0x5bed=['exten','holdtime','connectedlinenum','context','queuecallerexit','inbound','variables','queuecallerleaveAt','connectedlinename','priority','queuecallerjoinAt','queue','calleridname','mohtime','originalposition','queuecallerabandonAt','queuecallerexitAt','channel','calleridnum','accountcode','queuecallercomplete','type','assigned'];(function(_0x4edccb,_0x5bede3){var _0x11c4cf=function(_0x2f99a6){while(--_0x2f99a6){_0x4edccb['push'](_0x4edccb['shift']());}};_0x11c4cf(++_0x5bede3);}(a1074_0x5bed,0x16d));var a1074_0x11c4=function(_0x4edccb,_0x5bede3){_0x4edccb=_0x4edccb-0x0;var _0x11c4cf=a1074_0x5bed[_0x4edccb];return _0x11c4cf;};'use strict';function QueueReport(){var _0x744519=a1074_0x11c4;this[_0x744519('0x1')]=_0x744519('0x8'),this['uniqueid']='',this[_0x744519('0x15')]='',this[_0x744519('0xf')]='',this[_0x744519('0xe')]='',this[_0x744519('0xd')]=null,this[_0x744519('0xa')]=null,this['position']=0x1,this['count']=0x1,this['queuecallerabandon']=![],this[_0x744519('0x12')]=null,this[_0x744519('0x0')]=![],this['queuecallercompleteAt']=null,this[_0x744519('0x7')]=![],this[_0x744519('0x13')]=null,this[_0x744519('0x11')]=0x1,this[_0x744519('0x14')]='',this[_0x744519('0x5')]='',this[_0x744519('0xb')]='',this[_0x744519('0x16')]='',this[_0x744519('0x6')]='',this[_0x744519('0x3')]='',this[_0x744519('0xc')]='',this[_0x744519('0x4')]=0x0,this[_0x744519('0x2')]=![],this['lastAssignedTo']='',this[_0x744519('0x10')]=0x0,this[_0x744519('0x9')]={};}module['exports']=QueueReport; \ No newline at end of file diff --git a/server/services/ami/model/salesforceAccount.js b/server/services/ami/model/salesforceAccount.js index 8dc518e..c2af617 100644 --- a/server/services/ami/model/salesforceAccount.js +++ b/server/services/ami/model/salesforceAccount.js @@ -1 +1 @@ -var a1074_0x1b02=['remoteUri','exports','integrationTab','clientId','securityToken','Configurations','type','name','serverUrl','username','password','clientSecret'];(function(_0x55188d,_0x1b0233){var _0x398b77=function(_0xe3bcb0){while(--_0xe3bcb0){_0x55188d['push'](_0x55188d['shift']());}};_0x398b77(++_0x1b0233);}(a1074_0x1b02,0x14a));var a1074_0x398b=function(_0x55188d,_0x1b0233){_0x55188d=_0x55188d-0x0;var _0x398b77=a1074_0x1b02[_0x55188d];return _0x398b77;};var _0x30a49e=a1074_0x398b;'use strict';function SalesforceAccount(_0xe3bcb0){var _0x429d44=a1074_0x398b;this['id']=_0xe3bcb0['id']||0x0,this[_0x429d44('0x1')]=_0xe3bcb0[_0x429d44('0x1')]||'',this['username']=_0xe3bcb0[_0x429d44('0x3')]||'',this[_0x429d44('0x6')]=_0xe3bcb0[_0x429d44('0x6')]||'',this[_0x429d44('0x4')]=_0xe3bcb0[_0x429d44('0x4')]||'',this['clientId']=_0xe3bcb0[_0x429d44('0x9')]||'',this[_0x429d44('0x5')]=_0xe3bcb0['clientSecret']||'',this[_0x429d44('0xa')]=_0xe3bcb0[_0x429d44('0xa')]||'',this[_0x429d44('0x0')]=_0xe3bcb0[_0x429d44('0x0')]||_0x429d44('0x8'),this[_0x429d44('0x2')]=_0xe3bcb0[_0x429d44('0x2')]||'',this[_0x429d44('0xb')]=_0xe3bcb0['Configurations']||{};}module[_0x30a49e('0x7')]=SalesforceAccount; \ No newline at end of file +var a1075_0x2e2a=['integrationTab','clientSecret','clientId','serverUrl','securityToken','password','Configurations','exports','type','name'];(function(_0x3ef540,_0x2e2a52){var _0x250839=function(_0x425bd6){while(--_0x425bd6){_0x3ef540['push'](_0x3ef540['shift']());}};_0x250839(++_0x2e2a52);}(a1075_0x2e2a,0x1e0));var a1075_0x2508=function(_0x3ef540,_0x2e2a52){_0x3ef540=_0x3ef540-0x0;var _0x250839=a1075_0x2e2a[_0x3ef540];return _0x250839;};var _0x223137=a1075_0x2508;'use strict';function SalesforceAccount(_0x425bd6){var _0x2fbcdb=a1075_0x2508;this['id']=_0x425bd6['id']||0x0,this[_0x2fbcdb('0x9')]=_0x425bd6[_0x2fbcdb('0x9')]||'',this['username']=_0x425bd6['username']||'',this['remoteUri']=_0x425bd6['remoteUri']||'',this[_0x2fbcdb('0x5')]=_0x425bd6[_0x2fbcdb('0x5')]||'',this['clientId']=_0x425bd6[_0x2fbcdb('0x2')]||'',this[_0x2fbcdb('0x1')]=_0x425bd6['clientSecret']||'',this[_0x2fbcdb('0x4')]=_0x425bd6[_0x2fbcdb('0x4')]||'',this[_0x2fbcdb('0x8')]=_0x425bd6[_0x2fbcdb('0x8')]||_0x2fbcdb('0x0'),this[_0x2fbcdb('0x3')]=_0x425bd6[_0x2fbcdb('0x3')]||'',this[_0x2fbcdb('0x6')]=_0x425bd6[_0x2fbcdb('0x6')]||{};}module[_0x223137('0x7')]=SalesforceAccount; \ No newline at end of file diff --git a/server/services/ami/model/servicenowAccount.js b/server/services/ami/model/servicenowAccount.js index 81e694f..1a869ba 100644 --- a/server/services/ami/model/servicenowAccount.js +++ b/server/services/ami/model/servicenowAccount.js @@ -1 +1 @@ -var a1075_0x1f26=['password','remoteUri','Configurations','name','username','serverUrl'];(function(_0xca6ab3,_0x1f26ec){var _0x595811=function(_0x526be3){while(--_0x526be3){_0xca6ab3['push'](_0xca6ab3['shift']());}};_0x595811(++_0x1f26ec);}(a1075_0x1f26,0x118));var a1075_0x5958=function(_0xca6ab3,_0x1f26ec){_0xca6ab3=_0xca6ab3-0x0;var _0x595811=a1075_0x1f26[_0xca6ab3];return _0x595811;};'use strict';function ServicenowAccount(_0x526be3){var _0x2fb565=a1075_0x5958;this['id']=_0x526be3['id']||0x0,this[_0x2fb565('0x5')]=_0x526be3[_0x2fb565('0x5')]||'',this[_0x2fb565('0x0')]=_0x526be3[_0x2fb565('0x0')]||'',this[_0x2fb565('0x2')]=_0x526be3['password']||'',this[_0x2fb565('0x3')]=_0x526be3[_0x2fb565('0x3')]||'',this['serverUrl']=_0x526be3[_0x2fb565('0x1')]||'',this['Configurations']=_0x526be3[_0x2fb565('0x4')]||{};}module['exports']=ServicenowAccount; \ No newline at end of file +var a1076_0x174c=['exports','remoteUri','password','Configurations','username','name','serverUrl'];(function(_0x32ef9b,_0x174cc0){var _0x24882b=function(_0x4d0eb0){while(--_0x4d0eb0){_0x32ef9b['push'](_0x32ef9b['shift']());}};_0x24882b(++_0x174cc0);}(a1076_0x174c,0x1f2));var a1076_0x2488=function(_0x32ef9b,_0x174cc0){_0x32ef9b=_0x32ef9b-0x0;var _0x24882b=a1076_0x174c[_0x32ef9b];return _0x24882b;};var _0x1d6258=a1076_0x2488;'use strict';function ServicenowAccount(_0x4d0eb0){var _0x1b4e95=a1076_0x2488;this['id']=_0x4d0eb0['id']||0x0,this[_0x1b4e95('0x4')]=_0x4d0eb0[_0x1b4e95('0x4')]||'',this[_0x1b4e95('0x3')]=_0x4d0eb0[_0x1b4e95('0x3')]||'',this[_0x1b4e95('0x1')]=_0x4d0eb0['password']||'',this[_0x1b4e95('0x0')]=_0x4d0eb0[_0x1b4e95('0x0')]||'',this[_0x1b4e95('0x5')]=_0x4d0eb0[_0x1b4e95('0x5')]||'',this[_0x1b4e95('0x2')]=_0x4d0eb0[_0x1b4e95('0x2')]||{};}module[_0x1d6258('0x6')]=ServicenowAccount; \ No newline at end of file diff --git a/server/services/ami/model/sugarcrmAccount.js b/server/services/ami/model/sugarcrmAccount.js index a64b290..2863456 100644 --- a/server/services/ami/model/sugarcrmAccount.js +++ b/server/services/ami/model/sugarcrmAccount.js @@ -1 +1 @@ -var a1076_0x21f6=['password','name','serverUrl','Configurations','username','remoteUri'];(function(_0x31f645,_0x21f616){var _0x38c94d=function(_0x182d4d){while(--_0x182d4d){_0x31f645['push'](_0x31f645['shift']());}};_0x38c94d(++_0x21f616);}(a1076_0x21f6,0x8b));var a1076_0x38c9=function(_0x31f645,_0x21f616){_0x31f645=_0x31f645-0x0;var _0x38c94d=a1076_0x21f6[_0x31f645];return _0x38c94d;};'use strict';function SugarcrmAccount(_0x182d4d){var _0x3de116=a1076_0x38c9;this['id']=_0x182d4d['id']||0x0,this[_0x3de116('0x0')]=_0x182d4d['name']||'',this[_0x3de116('0x3')]=_0x182d4d[_0x3de116('0x3')]||'',this[_0x3de116('0x5')]=_0x182d4d[_0x3de116('0x5')]||'',this[_0x3de116('0x4')]=_0x182d4d[_0x3de116('0x4')]||'',this[_0x3de116('0x1')]=_0x182d4d[_0x3de116('0x1')]||'',this['Configurations']=_0x182d4d[_0x3de116('0x2')]||{};}module['exports']=SugarcrmAccount; \ No newline at end of file +var a1077_0x2d19=['username','Configurations','name','password','serverUrl'];(function(_0x169d64,_0x2d19e7){var _0x2feafd=function(_0x15efb8){while(--_0x15efb8){_0x169d64['push'](_0x169d64['shift']());}};_0x2feafd(++_0x2d19e7);}(a1077_0x2d19,0x119));var a1077_0x2fea=function(_0x169d64,_0x2d19e7){_0x169d64=_0x169d64-0x0;var _0x2feafd=a1077_0x2d19[_0x169d64];return _0x2feafd;};'use strict';function SugarcrmAccount(_0x15efb8){var _0xb8d2=a1077_0x2fea;this['id']=_0x15efb8['id']||0x0,this[_0xb8d2('0x1')]=_0x15efb8[_0xb8d2('0x1')]||'',this[_0xb8d2('0x4')]=_0x15efb8[_0xb8d2('0x4')]||'',this['password']=_0x15efb8[_0xb8d2('0x2')]||'',this['remoteUri']=_0x15efb8['remoteUri']||'',this[_0xb8d2('0x3')]=_0x15efb8[_0xb8d2('0x3')]||'',this[_0xb8d2('0x0')]=_0x15efb8[_0xb8d2('0x0')]||{};}module['exports']=SugarcrmAccount; \ No newline at end of file diff --git a/server/services/ami/model/telephone.js b/server/services/ami/model/telephone.js index e2975d9..2228129 100644 --- a/server/services/ami/model/telephone.js +++ b/server/services/ami/model/telephone.js @@ -1 +1 @@ -var a1077_0x31fc=['state','address','accountcode','status','unknown','name','stateTime'];(function(_0x114d48,_0x31fc93){var _0x382c8e=function(_0x224352){while(--_0x224352){_0x114d48['push'](_0x114d48['shift']());}};_0x382c8e(++_0x31fc93);}(a1077_0x31fc,0x16f));var a1077_0x382c=function(_0x114d48,_0x31fc93){_0x114d48=_0x114d48-0x0;var _0x382c8e=a1077_0x31fc[_0x114d48];return _0x382c8e;};'use strict';function Telephone(_0x224352){var _0x30287b=a1077_0x382c;this['id']=_0x224352['id']||0x0,this['name']=_0x224352[_0x30287b('0x2')]||'',this['accountcode']=_0x224352[_0x30287b('0x6')]||'',this[_0x30287b('0x4')]=_0x30287b('0x1'),this[_0x30287b('0x3')]=0x0,this[_0x30287b('0x0')]=_0x30287b('0x1'),this[_0x30287b('0x5')]='';}module['exports']=Telephone; \ No newline at end of file +var a1078_0x71b8=['status','address','name','exports','state','unknown','stateTime'];(function(_0x127c62,_0x71b8d5){var _0x16530c=function(_0x515a07){while(--_0x515a07){_0x127c62['push'](_0x127c62['shift']());}};_0x16530c(++_0x71b8d5);}(a1078_0x71b8,0x1c5));var a1078_0x1653=function(_0x127c62,_0x71b8d5){_0x127c62=_0x127c62-0x0;var _0x16530c=a1078_0x71b8[_0x127c62];return _0x16530c;};var _0x1d5cbd=a1078_0x1653;'use strict';function Telephone(_0x515a07){var _0x42da58=a1078_0x1653;this['id']=_0x515a07['id']||0x0,this['name']=_0x515a07[_0x42da58('0x4')]||'',this['accountcode']=_0x515a07['accountcode']||'',this[_0x42da58('0x6')]=_0x42da58('0x0'),this[_0x42da58('0x1')]=0x0,this[_0x42da58('0x2')]=_0x42da58('0x0'),this[_0x42da58('0x3')]='';}module[_0x1d5cbd('0x5')]=Telephone; \ No newline at end of file diff --git a/server/services/ami/model/template.js b/server/services/ami/model/template.js index 2ae2339..ee081f0 100644 --- a/server/services/ami/model/template.js +++ b/server/services/ami/model/template.js @@ -1 +1 @@ -var a1078_0x46f6=['name','html'];(function(_0x47ea7d,_0x46f642){var _0x4c5302=function(_0x2944e5){while(--_0x2944e5){_0x47ea7d['push'](_0x47ea7d['shift']());}};_0x4c5302(++_0x46f642);}(a1078_0x46f6,0x1be));var a1078_0x4c53=function(_0x47ea7d,_0x46f642){_0x47ea7d=_0x47ea7d-0x0;var _0x4c5302=a1078_0x46f6[_0x47ea7d];return _0x4c5302;};'use strict';function template(_0x2944e5){var _0x190e34=a1078_0x4c53;this['id']=_0x2944e5['id']||0x0,this[_0x190e34('0x0')]=_0x2944e5[_0x190e34('0x0')]||'',this[_0x190e34('0x1')]=_0x2944e5[_0x190e34('0x1')]||'';}module['exports']=template; \ No newline at end of file +var a1079_0x2112=['html','exports','name'];(function(_0x5eced6,_0x211240){var _0x26703c=function(_0x37efda){while(--_0x37efda){_0x5eced6['push'](_0x5eced6['shift']());}};_0x26703c(++_0x211240);}(a1079_0x2112,0xc2));var a1079_0x2670=function(_0x5eced6,_0x211240){_0x5eced6=_0x5eced6-0x0;var _0x26703c=a1079_0x2112[_0x5eced6];return _0x26703c;};var _0x32b749=a1079_0x2670;'use strict';function template(_0x37efda){var _0x7f18f3=a1079_0x2670;this['id']=_0x37efda['id']||0x0,this[_0x7f18f3('0x0')]=_0x37efda[_0x7f18f3('0x0')]||'',this[_0x7f18f3('0x1')]=_0x37efda[_0x7f18f3('0x1')]||'';}module[_0x32b749('0x2')]=template; \ No newline at end of file diff --git a/server/services/ami/model/trigger.js b/server/services/ami/model/trigger.js index 32af838..8c27c78 100644 --- a/server/services/ami/model/trigger.js +++ b/server/services/ami/model/trigger.js @@ -1 +1 @@ -var a1079_0x40d0=['channel','Actions','name','exports','AnyConditions','status'];(function(_0x4d3d51,_0x40d01a){var _0x2645bc=function(_0x27eea4){while(--_0x27eea4){_0x4d3d51['push'](_0x4d3d51['shift']());}};_0x2645bc(++_0x40d01a);}(a1079_0x40d0,0x16c));var a1079_0x2645=function(_0x4d3d51,_0x40d01a){_0x4d3d51=_0x4d3d51-0x0;var _0x2645bc=a1079_0x40d0[_0x4d3d51];return _0x2645bc;};var _0x408e5b=a1079_0x2645;'use strict';function Trigger(_0x27eea4){var _0x272afc=a1079_0x2645;this['id']=_0x27eea4['id']||0x0,this[_0x272afc('0x4')]=_0x27eea4['name']||'',this[_0x272afc('0x2')]=_0x27eea4['channel']||'voice',this[_0x272afc('0x1')]=_0x27eea4[_0x272afc('0x1')]||![],this['AllConditions']=_0x27eea4['AllConditions']||[],this[_0x272afc('0x0')]=_0x27eea4['AnyConditions']||[],this[_0x272afc('0x3')]=_0x27eea4[_0x272afc('0x3')]||[];}module[_0x408e5b('0x5')]=Trigger; \ No newline at end of file +var a1080_0xaf1a=['status','exports','channel','AnyConditions','name','AllConditions'];(function(_0x420320,_0xaf1af9){var _0x471ea4=function(_0x2a5eaf){while(--_0x2a5eaf){_0x420320['push'](_0x420320['shift']());}};_0x471ea4(++_0xaf1af9);}(a1080_0xaf1a,0x1b1));var a1080_0x471e=function(_0x420320,_0xaf1af9){_0x420320=_0x420320-0x0;var _0x471ea4=a1080_0xaf1a[_0x420320];return _0x471ea4;};var _0x2fef8f=a1080_0x471e;'use strict';function Trigger(_0x2a5eaf){var _0x4aec8a=a1080_0x471e;this['id']=_0x2a5eaf['id']||0x0,this[_0x4aec8a('0x3')]=_0x2a5eaf['name']||'',this[_0x4aec8a('0x1')]=_0x2a5eaf[_0x4aec8a('0x1')]||'voice',this[_0x4aec8a('0x5')]=_0x2a5eaf[_0x4aec8a('0x5')]||![],this[_0x4aec8a('0x4')]=_0x2a5eaf[_0x4aec8a('0x4')]||[],this[_0x4aec8a('0x2')]=_0x2a5eaf[_0x4aec8a('0x2')]||[],this['Actions']=_0x2a5eaf['Actions']||[];}module[_0x2fef8f('0x0')]=Trigger; \ No newline at end of file diff --git a/server/services/ami/model/trunk.js b/server/services/ami/model/trunk.js index 0d9279c..b41caa2 100644 --- a/server/services/ami/model/trunk.js +++ b/server/services/ami/model/trunk.js @@ -1 +1 @@ -var a1080_0x46a8=['state','split','refresh','address','registrationtime','port','unknown','exports','registry','name','stateRegistry','active','domain','stateTime','domainport','host','indexOf'];(function(_0x540807,_0x46a83f){var _0x28a9d0=function(_0x4cddc9){while(--_0x4cddc9){_0x540807['push'](_0x540807['shift']());}};_0x28a9d0(++_0x46a83f);}(a1080_0x46a8,0x1b2));var a1080_0x28a9=function(_0x540807,_0x46a83f){_0x540807=_0x540807-0x0;var _0x28a9d0=a1080_0x46a8[_0x540807];return _0x28a9d0;};var _0x5933c9=a1080_0x28a9;'use strict';function Trunk(_0x4cddc9){var _0x3dda0e=a1080_0x28a9;this['id']=_0x4cddc9['id']||0x0,this[_0x3dda0e('0x2')]=_0x4cddc9['active']||![],this[_0x3dda0e('0x0')]=_0x4cddc9['name']||'',this[_0x3dda0e('0x8')]=_0x3dda0e('0xe'),this[_0x3dda0e('0x4')]=0x0,this['status']=_0x3dda0e('0xe'),this[_0x3dda0e('0x10')]=_0x4cddc9[_0x3dda0e('0x10')]&&_0x4cddc9[_0x3dda0e('0x10')][_0x3dda0e('0x7')](':')?_0x4cddc9[_0x3dda0e('0x10')][_0x3dda0e('0x9')](':')[0x0]:'',this[_0x3dda0e('0x6')]='',this[_0x3dda0e('0xd')]='',this[_0x3dda0e('0x3')]='',this[_0x3dda0e('0x5')]='',this[_0x3dda0e('0xa')]='',this[_0x3dda0e('0x1')]=_0x3dda0e('0xe'),this[_0x3dda0e('0xc')]='',this[_0x3dda0e('0xb')]='';}module[_0x5933c9('0xf')]=Trunk; \ No newline at end of file +var a1081_0x5cdd=['name','status','stateRegistry','registry','domainport','split','domain','indexOf','active','refresh','address','state','unknown','port','registrationtime','host'];(function(_0x461e43,_0x5cdd59){var _0x3caf5b=function(_0x323866){while(--_0x323866){_0x461e43['push'](_0x461e43['shift']());}};_0x3caf5b(++_0x5cdd59);}(a1081_0x5cdd,0x82));var a1081_0x3caf=function(_0x461e43,_0x5cdd59){_0x461e43=_0x461e43-0x0;var _0x3caf5b=a1081_0x5cdd[_0x461e43];return _0x3caf5b;};'use strict';function Trunk(_0x323866){var _0x19f0e5=a1081_0x3caf;this['id']=_0x323866['id']||0x0,this[_0x19f0e5('0x6')]=_0x323866[_0x19f0e5('0x6')]||![],this[_0x19f0e5('0xe')]=_0x323866['name']||'',this[_0x19f0e5('0x9')]='unknown',this['stateTime']=0x0,this[_0x19f0e5('0xf')]=_0x19f0e5('0xa'),this['registry']=_0x323866[_0x19f0e5('0x1')]&&_0x323866['registry'][_0x19f0e5('0x5')](':')?_0x323866[_0x19f0e5('0x1')][_0x19f0e5('0x3')](':')[0x0]:'',this[_0x19f0e5('0xd')]='',this[_0x19f0e5('0xb')]='',this[_0x19f0e5('0x4')]='',this[_0x19f0e5('0x2')]='',this[_0x19f0e5('0x7')]='',this[_0x19f0e5('0x0')]='unknown',this[_0x19f0e5('0xc')]='',this[_0x19f0e5('0x8')]='';}module['exports']=Trunk; \ No newline at end of file diff --git a/server/services/ami/model/voiceExtension.js b/server/services/ami/model/voiceExtension.js index c14fdec..8326305 100644 --- a/server/services/ami/model/voiceExtension.js +++ b/server/services/ami/model/voiceExtension.js @@ -1 +1 @@ -var a1081_0x1c96=['recordingFormat','exten','mandatoryDisposition','exports','none'];(function(_0x19d776,_0x1c96c9){var _0x5ef019=function(_0x20a8a7){while(--_0x20a8a7){_0x19d776['push'](_0x19d776['shift']());}};_0x5ef019(++_0x1c96c9);}(a1081_0x1c96,0x19d));var a1081_0x5ef0=function(_0x19d776,_0x1c96c9){_0x19d776=_0x19d776-0x0;var _0x5ef019=a1081_0x1c96[_0x19d776];return _0x5ef019;};var _0x2be1f6=a1081_0x5ef0;'use strict';function voiceExtension(_0x20a8a7){var _0x2900e2=a1081_0x5ef0;this['id']=_0x20a8a7['id']||0x0,this[_0x2900e2('0x3')]=_0x20a8a7['exten']||'',this[_0x2900e2('0x2')]=_0x20a8a7[_0x2900e2('0x2')]||_0x2900e2('0x1'),this[_0x2900e2('0x4')]=_0x20a8a7['mandatoryDisposition']||![];}module[_0x2be1f6('0x0')]=voiceExtension; \ No newline at end of file +var a1082_0x2fe9=['recordingFormat','exten','exports','mandatoryDisposition','none'];(function(_0x526751,_0x2fe9e4){var _0x53da70=function(_0x2373b1){while(--_0x2373b1){_0x526751['push'](_0x526751['shift']());}};_0x53da70(++_0x2fe9e4);}(a1082_0x2fe9,0x10a));var a1082_0x53da=function(_0x526751,_0x2fe9e4){_0x526751=_0x526751-0x0;var _0x53da70=a1082_0x2fe9[_0x526751];return _0x53da70;};var _0x567823=a1082_0x53da;'use strict';function voiceExtension(_0x2373b1){var _0x5efb46=a1082_0x53da;this['id']=_0x2373b1['id']||0x0,this[_0x5efb46('0x0')]=_0x2373b1[_0x5efb46('0x0')]||'',this[_0x5efb46('0x4')]=_0x2373b1[_0x5efb46('0x4')]||_0x5efb46('0x3'),this[_0x5efb46('0x2')]=_0x2373b1[_0x5efb46('0x2')]||![];}module[_0x567823('0x1')]=voiceExtension; \ No newline at end of file diff --git a/server/services/ami/model/voiceQueue.js b/server/services/ami/model/voiceQueue.js index 9662929..e3da24c 100644 --- a/server/services/ami/model/voiceQueue.js +++ b/server/services/ami/model/voiceQueue.js @@ -1 +1 @@ -const a1082_0x3f10=['sumBillable','dialNoSuchNumberRetryFrequency','predictiveIntervalMaxThreshold','dialQueueProject2','outboundNoAnswerCallsDay','dialMethod','dialBusyMaxRetry','dialCutDigit','sumDuration','tTxX','total','message','Trunk','mandatoryDisposition','dialDropMaxRetry','TrunkBackup','dialAMDMinWordLength','autopause','dialGlobalInterval','outboundDropCallsDayACS','strategy','dialAgentRejectMaxRetry','dialPredictiveIntervalMaxThreshold','predictiveIntervalAnsweredCalls','Interval','dialPowerLevel','dialAMDGreeting','originated','answered','dialOriginateCallerIdNumber','dialCongestionMaxRetry','acwTimeout','dialAMDSilenceThreshold','dialRandomLastDigitCallerIdNumber','gsm','dialDropRetryFrequency','dialAMDTotalAnalysisTime','exports','outboundBusyCallsDay','dialQueueOptions','anonymous','outboundUnknownCallsDay','dialAbandonedRetryFrequency','dialMachineMaxRetry','outboundBlacklistCallsDay','pTalking','dialPredictiveOptimizationPercentage','dialMachineRetryFrequency','dialNoAnswerMaxRetry','dialAMDInitialSilence','dialOrderByScheduledAt','talking','outboundNoSuchCallsDay','wav49','roundrobin','dialAMDBetweenWordsSilence','sendMessageOneNotActive','rrmemory','handlePredictive','dialCongestionRetryFrequency','dialNoSuchNumberMaxRetry','dialAMDAfterGreetingSilence','waiting','dialAgiAfterHangupAgent','dialActive','predictiveIntervalAvailable','erlangCalls','monitor_format','predictiveIntervalHitRate','dialNoAnswerRetryFrequency','dialRecallMeTimeout','temp','dialAbandonedMaxRetry','dialAMDMaximumNumberOfWords','outboundOriginateFailureCallsDay','outboundAnswerCallsDay','outboundAnswerAgiCallsDay','dialGlobalMaxRetry','predictiveIntervalErlangCallsDroppedCalls','predictiveIntervalTotalCalls','dialPrefix','dialAgiAfterHangupClient','acw','startPredictive','type','unmanaged','dialLimitQueue','predictiveIntervalErlangCalls','timeout','wav','inbound','DESC','sumHoldTime','mandatoryDispositionPause','predictiveIntervalPauses','dialLimitChannel','outboundRejectCallsDay','dialPredictiveInterval','dialAMDMaximumWordLength','outboundReCallsDay','queueStatusComplete','dialPredictiveOptimization','dialAgentRejectRetryFrequency','dialOriginateTimeout','available','loggedIn','startProgressive','dialAMDActive','dialQueueTimeout','name','dialOriginateCallerIdName'];(function(_0x1f3a1a,_0x3f1030){const _0x42f6bd=function(_0x3751f6){while(--_0x3751f6){_0x1f3a1a['push'](_0x1f3a1a['shift']());}};_0x42f6bd(++_0x3f1030);}(a1082_0x3f10,0xc4));const a1082_0x42f6=function(_0x1f3a1a,_0x3f1030){_0x1f3a1a=_0x1f3a1a-0x0;let _0x42f6bd=a1082_0x3f10[_0x1f3a1a];return _0x42f6bd;};const _0x59250e=a1082_0x42f6;'use strict';const monitorFormat={'wav':_0x59250e('0x4'),'wav49':_0x59250e('0x4f'),'gsm':_0x59250e('0x3c')},strategy={'rrmemory':_0x59250e('0x53'),'roundrobin':_0x59250e('0x50')};function VoiceQueue(_0x3751f6){const _0x28a4ca=_0x59250e;this['id']=_0x3751f6['id']||0x0,this[_0x28a4ca('0x18')]=_0x3751f6[_0x28a4ca('0x18')]||'',this[_0x28a4ca('0x5d')]=_0x3751f6[_0x28a4ca('0x5d')]||'',this['type']=_0x3751f6[_0x28a4ca('0x6e')]||_0x28a4ca('0x5'),this[_0x28a4ca('0x58')]=0x0,this[_0x28a4ca('0x4d')]=0x0,this[_0x28a4ca('0x24')]=0x0,this[_0x28a4ca('0x36')]=0x0,this[_0x28a4ca('0x22')]=0x0,this[_0x28a4ca('0x7')]=0x0,this[_0x28a4ca('0x1a')]=0x0,this[_0x28a4ca('0x0')]=0x0,this['abandoned']=0x0,this[_0x28a4ca('0x14')]=0x0,this[_0x28a4ca('0x13')]=0x0,this['acw']=_0x3751f6[_0x28a4ca('0x6c')]||![],this[_0x28a4ca('0x39')]=_0x3751f6['acwTimeout']||0xa,this[_0x28a4ca('0x2b')]=_0x3751f6['autopause']||'no',this[_0x28a4ca('0x52')]=!![],this[_0x28a4ca('0x25')]='',this[_0x28a4ca('0x35')]=0x0,this[_0x28a4ca('0x61')]=0x0,this['dialTimezone']=_0x3751f6['dialTimezone']||null,this['dialGlobalInterval']=_0x3751f6['dialGlobalInterval']?_0x3751f6[_0x28a4ca('0x2c')]:null,this[_0x28a4ca('0x5a')]=_0x3751f6['dialActive'],this[_0x28a4ca('0x1f')]=_0x3751f6[_0x28a4ca('0x1f')]||'progressive',this[_0x28a4ca('0xa')]=_0x3751f6[_0x28a4ca('0xa')]||0x0,this[_0x28a4ca('0x1')]=_0x3751f6[_0x28a4ca('0x1')]||0x0,this[_0x28a4ca('0x33')]=_0x3751f6[_0x28a4ca('0x33')]||0x1,this[_0x28a4ca('0x10')]=_0x3751f6[_0x28a4ca('0x10')]||'dropRate',this[_0x28a4ca('0x48')]=_0x3751f6[_0x28a4ca('0x48')]||0.03,this['dialPredictiveInterval']=_0x3751f6[_0x28a4ca('0xc')]||0x258,this['dialOriginateCallerIdName']=_0x3751f6[_0x28a4ca('0x19')]||_0x28a4ca('0x42'),this[_0x28a4ca('0x37')]=_0x3751f6['dialOriginateCallerIdNumber']||_0x28a4ca('0x42'),this[_0x28a4ca('0x12')]=_0x3751f6[_0x28a4ca('0x12')]||0x1e,this[_0x28a4ca('0x41')]=_0x3751f6[_0x28a4ca('0x41')]||_0x28a4ca('0x23'),this[_0x28a4ca('0x17')]=_0x3751f6[_0x28a4ca('0x17')]||0x3,this['dialQueueProject']=_0x3751f6['dialQueueProject']||undefined,this['dialCongestionMaxRetry']=_0x3751f6[_0x28a4ca('0x38')]||0x3,this[_0x28a4ca('0x55')]=_0x3751f6['dialCongestionRetryFrequency']||0x96,this[_0x28a4ca('0x20')]=_0x3751f6['dialBusyMaxRetry']||0x3,this['dialBusyRetryFrequency']=_0x3751f6['dialBusyRetryFrequency']||0x96,this['dialNoAnswerMaxRetry']=_0x3751f6[_0x28a4ca('0x4a')]||0x3,this[_0x28a4ca('0x5f')]=_0x3751f6[_0x28a4ca('0x5f')]||0x96,this[_0x28a4ca('0x56')]=_0x3751f6['dialNoSuchNumberMaxRetry']||0x3,this[_0x28a4ca('0x1b')]=_0x3751f6[_0x28a4ca('0x1b')]||0x96,this[_0x28a4ca('0x28')]=_0x3751f6[_0x28a4ca('0x28')]||0x3,this[_0x28a4ca('0x3d')]=_0x3751f6[_0x28a4ca('0x3d')]||0x96,this[_0x28a4ca('0x62')]=_0x3751f6['dialAbandonedMaxRetry']||0x3,this[_0x28a4ca('0x44')]=_0x3751f6[_0x28a4ca('0x44')]||0x96,this[_0x28a4ca('0x45')]=_0x3751f6[_0x28a4ca('0x45')]||0x3,this[_0x28a4ca('0x49')]=_0x3751f6[_0x28a4ca('0x49')]||0x96,this[_0x28a4ca('0x2f')]=_0x3751f6[_0x28a4ca('0x2f')]||0x3,this[_0x28a4ca('0x11')]=_0x3751f6[_0x28a4ca('0x11')]||0x96,this[_0x28a4ca('0x67')]=_0x3751f6[_0x28a4ca('0x67')]||0x4,this[_0x28a4ca('0x26')]=_0x3751f6[_0x28a4ca('0x26')]?_0x3751f6[_0x28a4ca('0x26')]:undefined,this[_0x28a4ca('0x29')]=_0x3751f6[_0x28a4ca('0x29')]?_0x3751f6[_0x28a4ca('0x29')]:undefined,this[_0x28a4ca('0x6a')]=_0x3751f6[_0x28a4ca('0x6a')]||undefined,this[_0x28a4ca('0x32')]=_0x3751f6[_0x28a4ca('0x32')]?_0x3751f6['Interval']:undefined,this['dialOrderByScheduledAt']=_0x3751f6[_0x28a4ca('0x4c')]||_0x28a4ca('0x6'),this[_0x28a4ca('0x3b')]=_0x3751f6[_0x28a4ca('0x3b')]||undefined,this[_0x28a4ca('0x21')]=_0x3751f6[_0x28a4ca('0x21')]||undefined,this[_0x28a4ca('0x2e')]=strategy[_0x3751f6[_0x28a4ca('0x2e')]]||_0x28a4ca('0x53'),this[_0x28a4ca('0xf')]=!![],this[_0x28a4ca('0x16')]=_0x3751f6[_0x28a4ca('0x16')]||![],this[_0x28a4ca('0x4b')]=_0x3751f6[_0x28a4ca('0x4b')],this[_0x28a4ca('0x34')]=_0x3751f6['dialAMDGreeting'],this['dialAMDAfterGreetingSilence']=_0x3751f6[_0x28a4ca('0x57')],this[_0x28a4ca('0x3e')]=_0x3751f6[_0x28a4ca('0x3e')],this[_0x28a4ca('0x2a')]=_0x3751f6[_0x28a4ca('0x2a')],this[_0x28a4ca('0x51')]=_0x3751f6['dialAMDBetweenWordsSilence'],this[_0x28a4ca('0x63')]=_0x3751f6['dialAMDMaximumNumberOfWords'],this[_0x28a4ca('0x3a')]=_0x3751f6[_0x28a4ca('0x3a')],this['dialAMDMaximumWordLength']=_0x3751f6[_0x28a4ca('0xd')],this[_0x28a4ca('0xb')]=0x0,this[_0x28a4ca('0x47')]=0x0,this[_0x28a4ca('0x3')]=_0x3751f6[_0x28a4ca('0x3')],this[_0x28a4ca('0x65')]=0x0,this[_0x28a4ca('0x66')]=0x0,this[_0x28a4ca('0x1e')]=0x0,this[_0x28a4ca('0x40')]=0x0,this['outboundCongestionCallsDay']=0x0,this[_0x28a4ca('0x4e')]=0x0,this[_0x28a4ca('0x43')]=0x0,this[_0x28a4ca('0x46')]=0x0,this[_0x28a4ca('0x64')]=0x0,this['outboundDropCallsDayCallersExit']=0x0,this['outboundDropCallsDayTimeout']=0x0,this[_0x28a4ca('0x2d')]=0x0,this[_0x28a4ca('0xe')]=0x0,this['outboundAbandonedDay']=0x0,this[_0x28a4ca('0x15')]=undefined,this[_0x28a4ca('0x6d')]=undefined,this[_0x28a4ca('0x54')]=undefined,this['predictiveIntervalMultiplicativeFactor']=1.05,this[_0x28a4ca('0x69')]=0x0,this[_0x28a4ca('0x31')]=0x0,this['predictiveIntervalDroppedCallsCallersExit']=0x0,this['predictiveIntervalDroppedCallsTimeout']=0x0,this['predictiveIntervalAvgHoldtime']=0x0,this['predictiveIntervalAvgTalktime']=0x0,this[_0x28a4ca('0x9')]=0x0,this[_0x28a4ca('0x5b')]=0x0,this[_0x28a4ca('0x1c')]=_0x3751f6[_0x28a4ca('0x30')]||0x14,this['predictiveIntervalMinThreshold']=_0x3751f6[_0x28a4ca('0x30')]||0xa,this[_0x28a4ca('0x2')]=0x0,this[_0x28a4ca('0x68')]=0x0,this[_0x28a4ca('0x5e')]=0x1,this[_0x28a4ca('0x5c')]=0x0,this['erlangCallToSecond']=0x0,this['erlangAbandonmentRate']=0x0,this['erlangBusyFactor']=0x0,this[_0x28a4ca('0x60')]=_0x3751f6[_0x28a4ca('0x60')]||0x1e,this['dialRecallInQueue']=_0x3751f6['dialRecallInQueue']||![],this[_0x28a4ca('0x1d')]=_0x3751f6[_0x28a4ca('0x1d')]||undefined,this[_0x28a4ca('0x6b')]=_0x3751f6[_0x28a4ca('0x6b')]||![],this[_0x28a4ca('0x59')]=_0x3751f6['dialAgiAfterHangupAgent']||![],this[_0x28a4ca('0x5d')]=monitorFormat[_0x3751f6[_0x28a4ca('0x5d')]]?monitorFormat[_0x3751f6[_0x28a4ca('0x5d')]]:undefined,this[_0x28a4ca('0x27')]=_0x3751f6['mandatoryDisposition']||![],this[_0x28a4ca('0x8')]=_0x3751f6[_0x28a4ca('0x8')]?_0x3751f6[_0x28a4ca('0x8')]:undefined;}module[_0x59250e('0x3f')]=VoiceQueue; \ No newline at end of file +const a1083_0x3ea2=['dialCutDigit','DESC','dialQueueProject','dropRate','dialAbandonedMaxRetry','originated','tTxX','acwTimeout','dialNoSuchNumberRetryFrequency','dialTimezone','dialDropMaxRetry','dialQueueOptions','dialAMDAfterGreetingSilence','dialLimitQueue','dialActive','strategy','outboundBlacklistCallsDay','anonymous','predictiveIntervalAnsweredCalls','dialAMDInitialSilence','timeout','gsm','outboundOriginateFailureCallsDay','dialOriginateCallerIdNumber','dialAMDActive','dialNoAnswerRetryFrequency','dialPredictiveOptimizationPercentage','dialAMDGreeting','dialPredictiveInterval','dialPowerLevel','outboundDropCallsDayTimeout','erlangBusyFactor','mandatoryDispositionPause','TrunkBackup','dialAMDBetweenWordsSilence','sendMessageOneNotActive','dialPredictiveIntervalMaxThreshold','dialNoSuchNumberMaxRetry','talking','waiting','loggedIn','temp','autopause','dialGlobalInterval','dialMachineRetryFrequency','predictiveIntervalErlangCallsDroppedCalls','dialAbandonedRetryFrequency','Interval','outboundReCallsDay','outboundNoSuchCallsDay','dialAMDMinWordLength','message','outboundDropCallsDayCallersExit','dialPrefix','dialRecallMeTimeout','progressive','sumHoldTime','dialAMDMaximumNumberOfWords','sumBillable','dialQueueTimeout','inbound','dialMethod','dialDropRetryFrequency','dialOrderByScheduledAt','handlePredictive','startPredictive','queueStatusComplete','dialAMDSilenceThreshold','acw','predictiveIntervalDroppedCallsCallersExit','dialAgentRejectRetryFrequency','available','erlangCalls','dialCongestionRetryFrequency','name','roundrobin','dialAgiAfterHangupAgent','predictiveIntervalMaxThreshold','erlangCallToSecond','dialPredictiveOptimization','dialGlobalMaxRetry','mandatoryDisposition','dialNoAnswerMaxRetry','predictiveIntervalErlangCalls','outboundUnknownCallsDay','rrmemory','Trunk','predictiveIntervalHitRate','predictiveIntervalDroppedCallsTimeout','abandoned','dialOriginateCallerIdName','unmanaged','predictiveIntervalAvgHoldtime','dialAMDMaximumWordLength','monitor_format','dialQueueProject2','dialRecallInQueue','outboundAnswerAgiCallsDay','wav49','dialOriginateTimeout','exports','dialLimitChannel','type','dialBusyRetryFrequency','predictiveIntervalAvailable','erlangAbandonmentRate','dialAMDTotalAnalysisTime','outboundCongestionCallsDay','dialMachineMaxRetry'];(function(_0x252b96,_0x3ea21b){const _0x14a1b2=function(_0x262646){while(--_0x262646){_0x252b96['push'](_0x252b96['shift']());}};_0x14a1b2(++_0x3ea21b);}(a1083_0x3ea2,0x198));const a1083_0x14a1=function(_0x252b96,_0x3ea21b){_0x252b96=_0x252b96-0x0;let _0x14a1b2=a1083_0x3ea2[_0x252b96];return _0x14a1b2;};const _0x34ad3c=a1083_0x14a1;'use strict';const monitorFormat={'wav':'wav','wav49':_0x34ad3c('0x11'),'gsm':_0x34ad3c('0x31')},strategy={'rrmemory':_0x34ad3c('0x4'),'roundrobin':_0x34ad3c('0x67')};function VoiceQueue(_0x262646){const _0x5c7fa9=_0x34ad3c;this['id']=_0x262646['id']||0x0,this[_0x5c7fa9('0x66')]=_0x262646['name']||'',this[_0x5c7fa9('0xd')]=_0x262646[_0x5c7fa9('0xd')]||'',this[_0x5c7fa9('0x15')]=_0x262646[_0x5c7fa9('0x15')]||_0x5c7fa9('0x58'),this[_0x5c7fa9('0x43')]=0x0,this[_0x5c7fa9('0x42')]=0x0,this['total']=0x0,this['answered']=0x0,this['sumDuration']=0x0,this[_0x5c7fa9('0x54')]=0x0,this[_0x5c7fa9('0x56')]=0x0,this[_0x5c7fa9('0xa')]=0x0,this[_0x5c7fa9('0x8')]=0x0,this[_0x5c7fa9('0x44')]=0x0,this[_0x5c7fa9('0x63')]=0x0,this[_0x5c7fa9('0x60')]=_0x262646['acw']||![],this['acwTimeout']=_0x262646[_0x5c7fa9('0x23')]||0xa,this[_0x5c7fa9('0x46')]=_0x262646['autopause']||'no',this[_0x5c7fa9('0x3f')]=!![],this[_0x5c7fa9('0x4f')]='',this[_0x5c7fa9('0x21')]=0x0,this[_0x5c7fa9('0x45')]=0x0,this['dialTimezone']=_0x262646[_0x5c7fa9('0x25')]||null,this[_0x5c7fa9('0x47')]=_0x262646[_0x5c7fa9('0x47')]?_0x262646[_0x5c7fa9('0x47')]:null,this[_0x5c7fa9('0x2a')]=_0x262646[_0x5c7fa9('0x2a')],this[_0x5c7fa9('0x59')]=_0x262646['dialMethod']||_0x5c7fa9('0x53'),this[_0x5c7fa9('0x14')]=_0x262646[_0x5c7fa9('0x14')]||0x0,this[_0x5c7fa9('0x29')]=_0x262646['dialLimitQueue']||0x0,this[_0x5c7fa9('0x39')]=_0x262646['dialPowerLevel']||0x1,this[_0x5c7fa9('0x6b')]=_0x262646['dialPredictiveOptimization']||_0x5c7fa9('0x1f'),this[_0x5c7fa9('0x36')]=_0x262646[_0x5c7fa9('0x36')]||0.03,this[_0x5c7fa9('0x38')]=_0x262646[_0x5c7fa9('0x38')]||0x258,this[_0x5c7fa9('0x9')]=_0x262646[_0x5c7fa9('0x9')]||_0x5c7fa9('0x2d'),this[_0x5c7fa9('0x33')]=_0x262646[_0x5c7fa9('0x33')]||'anonymous',this[_0x5c7fa9('0x12')]=_0x262646[_0x5c7fa9('0x12')]||0x1e,this['dialQueueOptions']=_0x262646[_0x5c7fa9('0x27')]||_0x5c7fa9('0x22'),this[_0x5c7fa9('0x57')]=_0x262646[_0x5c7fa9('0x57')]||0x3,this[_0x5c7fa9('0x1e')]=_0x262646[_0x5c7fa9('0x1e')]||undefined,this['dialCongestionMaxRetry']=_0x262646['dialCongestionMaxRetry']||0x3,this[_0x5c7fa9('0x65')]=_0x262646[_0x5c7fa9('0x65')]||0x96,this['dialBusyMaxRetry']=_0x262646['dialBusyMaxRetry']||0x3,this[_0x5c7fa9('0x16')]=_0x262646[_0x5c7fa9('0x16')]||0x96,this[_0x5c7fa9('0x1')]=_0x262646[_0x5c7fa9('0x1')]||0x3,this[_0x5c7fa9('0x35')]=_0x262646[_0x5c7fa9('0x35')]||0x96,this['dialNoSuchNumberMaxRetry']=_0x262646[_0x5c7fa9('0x41')]||0x3,this['dialNoSuchNumberRetryFrequency']=_0x262646[_0x5c7fa9('0x24')]||0x96,this[_0x5c7fa9('0x26')]=_0x262646[_0x5c7fa9('0x26')]||0x3,this[_0x5c7fa9('0x5a')]=_0x262646[_0x5c7fa9('0x5a')]||0x96,this[_0x5c7fa9('0x20')]=_0x262646[_0x5c7fa9('0x20')]||0x3,this[_0x5c7fa9('0x4a')]=_0x262646[_0x5c7fa9('0x4a')]||0x96,this[_0x5c7fa9('0x1b')]=_0x262646[_0x5c7fa9('0x1b')]||0x3,this[_0x5c7fa9('0x48')]=_0x262646[_0x5c7fa9('0x48')]||0x96,this['dialAgentRejectMaxRetry']=_0x262646['dialAgentRejectMaxRetry']||0x3,this[_0x5c7fa9('0x62')]=_0x262646[_0x5c7fa9('0x62')]||0x96,this[_0x5c7fa9('0x6c')]=_0x262646[_0x5c7fa9('0x6c')]||0x4,this[_0x5c7fa9('0x5')]=_0x262646[_0x5c7fa9('0x5')]?_0x262646[_0x5c7fa9('0x5')]:undefined,this[_0x5c7fa9('0x3d')]=_0x262646[_0x5c7fa9('0x3d')]?_0x262646[_0x5c7fa9('0x3d')]:undefined,this['dialPrefix']=_0x262646[_0x5c7fa9('0x51')]||undefined,this['Interval']=_0x262646['Interval']?_0x262646[_0x5c7fa9('0x4b')]:undefined,this[_0x5c7fa9('0x5b')]=_0x262646[_0x5c7fa9('0x5b')]||_0x5c7fa9('0x1d'),this['dialRandomLastDigitCallerIdNumber']=_0x262646['dialRandomLastDigitCallerIdNumber']||undefined,this[_0x5c7fa9('0x1c')]=_0x262646['dialCutDigit']||undefined,this[_0x5c7fa9('0x2b')]=strategy[_0x262646[_0x5c7fa9('0x2b')]]||_0x5c7fa9('0x4'),this[_0x5c7fa9('0x5e')]=!![],this['dialAMDActive']=_0x262646[_0x5c7fa9('0x34')]||![],this[_0x5c7fa9('0x2f')]=_0x262646['dialAMDInitialSilence'],this['dialAMDGreeting']=_0x262646[_0x5c7fa9('0x37')],this[_0x5c7fa9('0x28')]=_0x262646['dialAMDAfterGreetingSilence'],this[_0x5c7fa9('0x19')]=_0x262646[_0x5c7fa9('0x19')],this[_0x5c7fa9('0x4e')]=_0x262646[_0x5c7fa9('0x4e')],this[_0x5c7fa9('0x3e')]=_0x262646[_0x5c7fa9('0x3e')],this['dialAMDMaximumNumberOfWords']=_0x262646[_0x5c7fa9('0x55')],this[_0x5c7fa9('0x5f')]=_0x262646['dialAMDSilenceThreshold'],this[_0x5c7fa9('0xc')]=_0x262646[_0x5c7fa9('0xc')],this['outboundRejectCallsDay']=0x0,this['pTalking']=0x0,this[_0x5c7fa9('0x30')]=_0x262646[_0x5c7fa9('0x30')],this['outboundAnswerCallsDay']=0x0,this[_0x5c7fa9('0x10')]=0x0,this['outboundNoAnswerCallsDay']=0x0,this['outboundBusyCallsDay']=0x0,this[_0x5c7fa9('0x1a')]=0x0,this[_0x5c7fa9('0x4d')]=0x0,this[_0x5c7fa9('0x3')]=0x0,this[_0x5c7fa9('0x2c')]=0x0,this[_0x5c7fa9('0x32')]=0x0,this[_0x5c7fa9('0x50')]=0x0,this[_0x5c7fa9('0x3a')]=0x0,this['outboundDropCallsDayACS']=0x0,this[_0x5c7fa9('0x4c')]=0x0,this['outboundAbandonedDay']=0x0,this['startProgressive']=undefined,this[_0x5c7fa9('0x5d')]=undefined,this[_0x5c7fa9('0x5c')]=undefined,this['predictiveIntervalMultiplicativeFactor']=1.05,this['predictiveIntervalTotalCalls']=0x0,this[_0x5c7fa9('0x2e')]=0x0,this[_0x5c7fa9('0x61')]=0x0,this[_0x5c7fa9('0x7')]=0x0,this[_0x5c7fa9('0xb')]=0x0,this['predictiveIntervalAvgTalktime']=0x0,this['predictiveIntervalPauses']=0x0,this[_0x5c7fa9('0x17')]=0x0,this[_0x5c7fa9('0x69')]=_0x262646['dialPredictiveIntervalMaxThreshold']||0x14,this['predictiveIntervalMinThreshold']=_0x262646[_0x5c7fa9('0x40')]||0xa,this[_0x5c7fa9('0x2')]=0x0,this[_0x5c7fa9('0x49')]=0x0,this[_0x5c7fa9('0x6')]=0x1,this[_0x5c7fa9('0x64')]=0x0,this[_0x5c7fa9('0x6a')]=0x0,this[_0x5c7fa9('0x18')]=0x0,this[_0x5c7fa9('0x3b')]=0x0,this[_0x5c7fa9('0x52')]=_0x262646[_0x5c7fa9('0x52')]||0x1e,this[_0x5c7fa9('0xf')]=_0x262646['dialRecallInQueue']||![],this[_0x5c7fa9('0xe')]=_0x262646[_0x5c7fa9('0xe')]||undefined,this['dialAgiAfterHangupClient']=_0x262646['dialAgiAfterHangupClient']||![],this[_0x5c7fa9('0x68')]=_0x262646[_0x5c7fa9('0x68')]||![],this[_0x5c7fa9('0xd')]=monitorFormat[_0x262646['monitor_format']]?monitorFormat[_0x262646[_0x5c7fa9('0xd')]]:undefined,this[_0x5c7fa9('0x0')]=_0x262646[_0x5c7fa9('0x0')]||![],this[_0x5c7fa9('0x3c')]=_0x262646[_0x5c7fa9('0x3c')]?_0x262646[_0x5c7fa9('0x3c')]:undefined;}module[_0x34ad3c('0x13')]=VoiceQueue; \ No newline at end of file diff --git a/server/services/ami/model/vtigerAccount.js b/server/services/ami/model/vtigerAccount.js index e0fcee3..1bf0526 100644 --- a/server/services/ami/model/vtigerAccount.js +++ b/server/services/ami/model/vtigerAccount.js @@ -1 +1 @@ -var a1083_0x6a20=['exports','Configurations','serverUrl','accessKey','username','remoteUri'];(function(_0xfd0209,_0x6a204b){var _0x3b741b=function(_0x39e595){while(--_0x39e595){_0xfd0209['push'](_0xfd0209['shift']());}};_0x3b741b(++_0x6a204b);}(a1083_0x6a20,0x135));var a1083_0x3b74=function(_0xfd0209,_0x6a204b){_0xfd0209=_0xfd0209-0x0;var _0x3b741b=a1083_0x6a20[_0xfd0209];return _0x3b741b;};var _0x1d72d9=a1083_0x3b74;'use strict';function VtigerAccount(_0x39e595){var _0x3beff1=a1083_0x3b74;this['id']=_0x39e595['id']||0x0,this['name']=_0x39e595['name']||'',this['username']=_0x39e595[_0x3beff1('0x1')]||'',this[_0x3beff1('0x0')]=_0x39e595[_0x3beff1('0x0')]||'',this[_0x3beff1('0x2')]=_0x39e595['remoteUri']||'',this['serverUrl']=_0x39e595[_0x3beff1('0x5')]||'',this[_0x3beff1('0x4')]=_0x39e595[_0x3beff1('0x4')]||{};}module[_0x1d72d9('0x3')]=VtigerAccount; \ No newline at end of file +var a1084_0xf2fb=['exports','remoteUri','accessKey','username','name','Configurations','serverUrl'];(function(_0x18d6a4,_0xf2fb53){var _0x169ed2=function(_0x18aa89){while(--_0x18aa89){_0x18d6a4['push'](_0x18d6a4['shift']());}};_0x169ed2(++_0xf2fb53);}(a1084_0xf2fb,0x1a9));var a1084_0x169e=function(_0x18d6a4,_0xf2fb53){_0x18d6a4=_0x18d6a4-0x0;var _0x169ed2=a1084_0xf2fb[_0x18d6a4];return _0x169ed2;};var _0x2aa570=a1084_0x169e;'use strict';function VtigerAccount(_0x18aa89){var _0x577495=a1084_0x169e;this['id']=_0x18aa89['id']||0x0,this[_0x577495('0x6')]=_0x18aa89[_0x577495('0x6')]||'',this[_0x577495('0x5')]=_0x18aa89[_0x577495('0x5')]||'',this[_0x577495('0x4')]=_0x18aa89[_0x577495('0x4')]||'',this[_0x577495('0x3')]=_0x18aa89[_0x577495('0x3')]||'',this[_0x577495('0x1')]=_0x18aa89[_0x577495('0x1')]||'',this[_0x577495('0x0')]=_0x18aa89['Configurations']||{};}module[_0x2aa570('0x2')]=VtigerAccount; \ No newline at end of file diff --git a/server/services/ami/model/zendeskAccount.js b/server/services/ami/model/zendeskAccount.js index cefdb1b..7ed4973 100644 --- a/server/services/ami/model/zendeskAccount.js +++ b/server/services/ami/model/zendeskAccount.js @@ -1 +1 @@ -var a1084_0x5d4b=['exports','token','username','serverUrl','password','name','integrationTab','type','authType','Configurations'];(function(_0x27c44d,_0x5d4bd5){var _0x3f31b4=function(_0x5cee50){while(--_0x5cee50){_0x27c44d['push'](_0x27c44d['shift']());}};_0x3f31b4(++_0x5d4bd5);}(a1084_0x5d4b,0x168));var a1084_0x3f31=function(_0x27c44d,_0x5d4bd5){_0x27c44d=_0x27c44d-0x0;var _0x3f31b4=a1084_0x5d4b[_0x27c44d];return _0x3f31b4;};var _0x475198=a1084_0x3f31;'use strict';function ZendeskAccount(_0x5cee50){var _0x58dba6=a1084_0x3f31;this['id']=_0x5cee50['id']||0x0,this[_0x58dba6('0x5')]=_0x5cee50['name']||'',this[_0x58dba6('0x2')]=_0x5cee50[_0x58dba6('0x2')]||'',this[_0x58dba6('0x4')]=_0x5cee50[_0x58dba6('0x4')]||'',this[_0x58dba6('0x1')]=_0x5cee50[_0x58dba6('0x1')]||'',this['remoteUri']=_0x5cee50['remoteUri']||'',this['authType']=_0x5cee50[_0x58dba6('0x8')]||'',this['type']=_0x5cee50[_0x58dba6('0x7')]||_0x58dba6('0x6'),this[_0x58dba6('0x3')]=_0x5cee50[_0x58dba6('0x3')]||'',this[_0x58dba6('0x9')]=_0x5cee50['Configurations']||{};}module[_0x475198('0x0')]=ZendeskAccount; \ No newline at end of file +var a1085_0x5e8a=['exports','token','Configurations','remoteUri','password','name','username','authType'];(function(_0x46d4e4,_0x5e8a7a){var _0x511846=function(_0x3bc50a){while(--_0x3bc50a){_0x46d4e4['push'](_0x46d4e4['shift']());}};_0x511846(++_0x5e8a7a);}(a1085_0x5e8a,0x1ac));var a1085_0x5118=function(_0x46d4e4,_0x5e8a7a){_0x46d4e4=_0x46d4e4-0x0;var _0x511846=a1085_0x5e8a[_0x46d4e4];return _0x511846;};var _0x2dbcab=a1085_0x5118;'use strict';function ZendeskAccount(_0x3bc50a){var _0x4d4f4f=a1085_0x5118;this['id']=_0x3bc50a['id']||0x0,this['name']=_0x3bc50a[_0x4d4f4f('0x1')]||'',this[_0x4d4f4f('0x2')]=_0x3bc50a['username']||'',this[_0x4d4f4f('0x0')]=_0x3bc50a['password']||'',this['token']=_0x3bc50a[_0x4d4f4f('0x5')]||'',this[_0x4d4f4f('0x7')]=_0x3bc50a[_0x4d4f4f('0x7')]||'',this[_0x4d4f4f('0x3')]=_0x3bc50a[_0x4d4f4f('0x3')]||'',this['type']=_0x3bc50a['type']||'integrationTab',this['serverUrl']=_0x3bc50a['serverUrl']||'',this[_0x4d4f4f('0x6')]=_0x3bc50a[_0x4d4f4f('0x6')]||{};}module[_0x2dbcab('0x4')]=ZendeskAccount; \ No newline at end of file diff --git a/server/services/ami/model/zohoAccount.js b/server/services/ami/model/zohoAccount.js index 79f03f8..cb5ec7e 100644 --- a/server/services/ami/model/zohoAccount.js +++ b/server/services/ami/model/zohoAccount.js @@ -1 +1 @@ -var a1085_0x1e79=['refreshToken','description','code','name','Configurations','zone','host','clientId','exports','clientSecret'];(function(_0x169b7b,_0x1e79f8){var _0x363825=function(_0xc8a2b8){while(--_0xc8a2b8){_0x169b7b['push'](_0x169b7b['shift']());}};_0x363825(++_0x1e79f8);}(a1085_0x1e79,0xfb));var a1085_0x3638=function(_0x169b7b,_0x1e79f8){_0x169b7b=_0x169b7b-0x0;var _0x363825=a1085_0x1e79[_0x169b7b];return _0x363825;};var _0x627c10=a1085_0x3638;'use strict';function ZohoAccount(_0xc8a2b8){var _0x27d441=a1085_0x3638;this['id']=_0xc8a2b8['id']||0x0,this[_0x27d441('0x2')]=_0xc8a2b8[_0x27d441('0x2')]||'',this[_0x27d441('0x0')]=_0xc8a2b8['description']||'',this[_0x27d441('0x5')]=_0xc8a2b8[_0x27d441('0x5')]||'',this[_0x27d441('0x4')]=_0xc8a2b8['zone']||'',this[_0x27d441('0x6')]=_0xc8a2b8[_0x27d441('0x6')]||'',this[_0x27d441('0x8')]=_0xc8a2b8[_0x27d441('0x8')]||'',this['serverUrl']=_0xc8a2b8['serverUrl']||'',this[_0x27d441('0x1')]=_0xc8a2b8[_0x27d441('0x1')]||'',this[_0x27d441('0x9')]=_0xc8a2b8[_0x27d441('0x9')]||'',this[_0x27d441('0x3')]=_0xc8a2b8[_0x27d441('0x3')]||{};}module[_0x627c10('0x7')]=ZohoAccount; \ No newline at end of file +var a1086_0x3bba=['zone','name','clientId','refreshToken','clientSecret','serverUrl','code','description','Configurations','exports'];(function(_0x1e4b9a,_0x3bba86){var _0x229a16=function(_0x2145d8){while(--_0x2145d8){_0x1e4b9a['push'](_0x1e4b9a['shift']());}};_0x229a16(++_0x3bba86);}(a1086_0x3bba,0x1c9));var a1086_0x229a=function(_0x1e4b9a,_0x3bba86){_0x1e4b9a=_0x1e4b9a-0x0;var _0x229a16=a1086_0x3bba[_0x1e4b9a];return _0x229a16;};var _0x4e1e70=a1086_0x229a;'use strict';function ZohoAccount(_0x2145d8){var _0x12ab93=a1086_0x229a;this['id']=_0x2145d8['id']||0x0,this[_0x12ab93('0x4')]=_0x2145d8['name']||'',this[_0x12ab93('0x0')]=_0x2145d8[_0x12ab93('0x0')]||'',this['host']=_0x2145d8['host']||'',this[_0x12ab93('0x3')]=_0x2145d8['zone']||'',this['clientId']=_0x2145d8[_0x12ab93('0x5')]||'',this[_0x12ab93('0x7')]=_0x2145d8['clientSecret']||'',this[_0x12ab93('0x8')]=_0x2145d8[_0x12ab93('0x8')]||'',this['code']=_0x2145d8[_0x12ab93('0x9')]||'',this[_0x12ab93('0x6')]=_0x2145d8[_0x12ab93('0x6')]||'',this['Configurations']=_0x2145d8[_0x12ab93('0x1')]||{};}module[_0x4e1e70('0x2')]=ZohoAccount; \ No newline at end of file diff --git a/server/services/ami/preview/action.js b/server/services/ami/preview/action.js index 5558831..bd54476 100644 --- a/server/services/ami/preview/action.js +++ b/server/services/ami/preview/action.js @@ -1 +1 @@ -const a1086_0x1609=['countbusyretry','name','ContactId','VoiceQueueId','membername','countabandonedretry','originatecalleridname','dialAnswer','campaigntype','lodash','countcongestionretry','exports','countnoanswerretry','recallme','\x22%s\x22\x20<%s>','number','callbackuniqueid','queue','originatecalleridnum','idContact','countdropretry','active','format','UserId','countnosuchnumberretry','util','prototype','countagentrejectretry','callbackat','type','countmachineretry','channelAgent','lastName','Contact','ListId','calleridname','scheduledat','callback','isNil','Agent','phone','string'];(function(_0x18da27,_0x16093e){const _0x4472ff=function(_0x435c29){while(--_0x435c29){_0x18da27['push'](_0x18da27['shift']());}};_0x4472ff(++_0x16093e);}(a1086_0x1609,0x1ab));const a1086_0x4472=function(_0x18da27,_0x16093e){_0x18da27=_0x18da27-0x0;let _0x4472ff=a1086_0x1609[_0x18da27];return _0x4472ff;};const _0x460d93=a1086_0x4472;'use strict';const util=require(_0x460d93('0x12')),_=require(_0x460d93('0x2'));function checkNameSurname(_0x435c29,_0x4e0c9b,_0x534ba8){const _0x4eba2a=_0x460d93;let _0x457ffc='';!_['isNil'](_0x4e0c9b)&&_0x4eba2a('0x22')===typeof _0x4e0c9b&&(_0x457ffc+=_0x4e0c9b);!_['isNil'](_0x534ba8)&&_0x4eba2a('0x22')===typeof _0x534ba8&&(_0x457ffc+='\x20'+_0x534ba8);if(_0x457ffc!=='')return _0x457ffc;return _0x435c29;}function Action(_0x50d0b7,_0x201b93,_0x314cee,_0x59cbc2){const _0x163601=_0x460d93;this['uniqueid']=_0x314cee||undefined,this[_0x163601('0xc')]=_0x50d0b7['id'],this[_0x163601('0xa')]=_0x201b93[_0x163601('0x24')],this[_0x163601('0x16')]=_0x201b93['type'],this[_0x163601('0x1')]='queue',this[_0x163601('0x0')]=![],this[_0x163601('0x27')]=_[_0x163601('0x1f')](_0x50d0b7[_0x163601('0x20')])?undefined:_0x50d0b7[_0x163601('0x20')][_0x163601('0x24')],this[_0x163601('0x18')]=this['membername']?util[_0x163601('0xf')]('SIP/%s',this[_0x163601('0x27')]):_0x59cbc2||undefined,this[_0x163601('0x1c')]=checkNameSurname(_0x50d0b7[_0x163601('0x1a')]['phone'],_0x50d0b7['Contact']['firstName'],_0x50d0b7[_0x163601('0x1a')][_0x163601('0x19')]),this[_0x163601('0xe')]=_0x50d0b7[_0x163601('0xe')]||![],this['calleridnum']=_0x50d0b7[_0x163601('0x1a')][_0x163601('0x21')],this[_0x163601('0x1d')]=_0x50d0b7[_0x163601('0x1d')],this['countbusyretry']=_0x50d0b7[_0x163601('0x23')]||0x0,this[_0x163601('0x3')]=_0x50d0b7[_0x163601('0x3')]||0x0,this[_0x163601('0x5')]=_0x50d0b7[_0x163601('0x5')]||0x0,this['countglobal']=(_0x50d0b7[_0x163601('0x23')]||0x0)+(_0x50d0b7[_0x163601('0x3')]||0x0)+(_0x50d0b7['countnoanswerretry']||0x0)+(_0x50d0b7[_0x163601('0x11')]||0x0)+(_0x50d0b7[_0x163601('0xd')]||0x0)+(_0x50d0b7[_0x163601('0x28')]||0x0)+(_0x50d0b7[_0x163601('0x17')]||0x0)+(_0x50d0b7[_0x163601('0x14')]||0x0),this['countnosuchnumberretry']=_0x50d0b7[_0x163601('0x11')]||0x0,this[_0x163601('0xd')]=_0x50d0b7[_0x163601('0xd')]||0x0,this[_0x163601('0x28')]=_0x50d0b7['countabandonedretry']||0x0,this['countmachineretry']=_0x50d0b7[_0x163601('0x17')]||0x0,this['countagentrejectretry']=_0x50d0b7[_0x163601('0x14')]||0x0,this['callback']=_0x50d0b7[_0x163601('0x1e')],this[_0x163601('0x9')]=_0x50d0b7['callbackuniqueid'],this[_0x163601('0x15')]=_0x50d0b7['callbackat'],this[_0x163601('0x6')]=_0x50d0b7[_0x163601('0x6')],this[_0x163601('0x25')]=_0x50d0b7[_0x163601('0x25')],this[_0x163601('0x1b')]=_0x50d0b7[_0x163601('0x1b')],this[_0x163601('0x10')]=_[_0x163601('0x1f')](_0x50d0b7['Agent'])?_0x50d0b7['UserId']:_0x50d0b7[_0x163601('0x20')]['id'],this[_0x163601('0x26')]=_0x50d0b7['VoiceQueueId'],this[_0x163601('0xb')]='',this[_0x163601('0x29')]='';}Action[_0x460d93('0x13')]['getCaller']=function(){const _0x302584=_0x460d93;return util['format'](_0x302584('0x7'),this[_0x302584('0x1c')],this[_0x302584('0x8')]);},module[_0x460d93('0x4')]=Action; \ No newline at end of file +const a1087_0x50fb=['callback','firstName','queue','dialAnswer','membername','countdropretry','getCaller','ContactId','recallme','originatecalleridname','countglobal','callbackat','campaigntype','scheduledat','VoiceQueueId','countcongestionretry','format','lodash','lastName','ListId','callbackuniqueid','\x22%s\x22\x20<%s>','type','countagentrejectretry','util','originatecalleridnum','countnoanswerretry','countnosuchnumberretry','active','countmachineretry','prototype','uniqueid','idContact','calleridname','isNil','countbusyretry','calleridnum','string','name','phone','Agent','Contact','SIP/%s','UserId'];(function(_0x5e9114,_0x50fb7d){const _0x58e12a=function(_0x7ea91){while(--_0x7ea91){_0x5e9114['push'](_0x5e9114['shift']());}};_0x58e12a(++_0x50fb7d);}(a1087_0x50fb,0x165));const a1087_0x58e1=function(_0x5e9114,_0x50fb7d){_0x5e9114=_0x5e9114-0x0;let _0x58e12a=a1087_0x50fb[_0x5e9114];return _0x58e12a;};const _0x51e846=a1087_0x58e1;'use strict';const util=require(_0x51e846('0x13')),_=require(_0x51e846('0xc'));function checkNameSurname(_0x7ea91,_0x2b1768,_0x4f04f4){const _0x33708d=_0x51e846;let _0x3922ca='';!_[_0x33708d('0x1d')](_0x2b1768)&&'string'===typeof _0x2b1768&&(_0x3922ca+=_0x2b1768);!_[_0x33708d('0x1d')](_0x4f04f4)&&_0x33708d('0x20')===typeof _0x4f04f4&&(_0x3922ca+='\x20'+_0x4f04f4);if(_0x3922ca!=='')return _0x3922ca;return _0x7ea91;}function Action(_0x262817,_0x220bf1,_0xd787fa,_0xacb6bf){const _0x2c07bf=_0x51e846;this[_0x2c07bf('0x1a')]=_0xd787fa||undefined,this[_0x2c07bf('0x1b')]=_0x262817['id'],this[_0x2c07bf('0x29')]=_0x220bf1[_0x2c07bf('0x21')],this[_0x2c07bf('0x11')]=_0x220bf1['type'],this[_0x2c07bf('0x7')]='queue',this[_0x2c07bf('0x2a')]=![],this[_0x2c07bf('0x2b')]=_[_0x2c07bf('0x1d')](_0x262817[_0x2c07bf('0x23')])?undefined:_0x262817['Agent'][_0x2c07bf('0x21')],this['channelAgent']=this[_0x2c07bf('0x2b')]?util['format'](_0x2c07bf('0x25'),this[_0x2c07bf('0x2b')]):_0xacb6bf||undefined,this[_0x2c07bf('0x1c')]=checkNameSurname(_0x262817['Contact'][_0x2c07bf('0x22')],_0x262817[_0x2c07bf('0x24')][_0x2c07bf('0x28')],_0x262817[_0x2c07bf('0x24')][_0x2c07bf('0xd')]),this[_0x2c07bf('0x17')]=_0x262817[_0x2c07bf('0x17')]||![],this[_0x2c07bf('0x1f')]=_0x262817[_0x2c07bf('0x24')]['phone'],this[_0x2c07bf('0x8')]=_0x262817[_0x2c07bf('0x8')],this[_0x2c07bf('0x1e')]=_0x262817[_0x2c07bf('0x1e')]||0x0,this[_0x2c07bf('0xa')]=_0x262817['countcongestionretry']||0x0,this[_0x2c07bf('0x15')]=_0x262817[_0x2c07bf('0x15')]||0x0,this[_0x2c07bf('0x5')]=(_0x262817[_0x2c07bf('0x1e')]||0x0)+(_0x262817[_0x2c07bf('0xa')]||0x0)+(_0x262817[_0x2c07bf('0x15')]||0x0)+(_0x262817[_0x2c07bf('0x16')]||0x0)+(_0x262817['countdropretry']||0x0)+(_0x262817['countabandonedretry']||0x0)+(_0x262817[_0x2c07bf('0x18')]||0x0)+(_0x262817[_0x2c07bf('0x12')]||0x0),this[_0x2c07bf('0x16')]=_0x262817['countnosuchnumberretry']||0x0,this[_0x2c07bf('0x0')]=_0x262817['countdropretry']||0x0,this['countabandonedretry']=_0x262817['countabandonedretry']||0x0,this[_0x2c07bf('0x18')]=_0x262817[_0x2c07bf('0x18')]||0x0,this[_0x2c07bf('0x12')]=_0x262817[_0x2c07bf('0x12')]||0x0,this[_0x2c07bf('0x27')]=_0x262817[_0x2c07bf('0x27')],this[_0x2c07bf('0xf')]=_0x262817['callbackuniqueid'],this[_0x2c07bf('0x6')]=_0x262817['callbackat'],this[_0x2c07bf('0x3')]=_0x262817[_0x2c07bf('0x3')],this[_0x2c07bf('0x2')]=_0x262817['ContactId'],this[_0x2c07bf('0xe')]=_0x262817[_0x2c07bf('0xe')],this[_0x2c07bf('0x26')]=_[_0x2c07bf('0x1d')](_0x262817[_0x2c07bf('0x23')])?_0x262817['UserId']:_0x262817[_0x2c07bf('0x23')]['id'],this[_0x2c07bf('0x9')]=_0x262817[_0x2c07bf('0x9')],this[_0x2c07bf('0x14')]='',this[_0x2c07bf('0x4')]='';}Action[_0x51e846('0x19')][_0x51e846('0x1')]=function(){const _0x5554f9=_0x51e846;return util[_0x5554f9('0xb')](_0x5554f9('0x10'),this[_0x5554f9('0x1c')],this['number']);},module['exports']=Action; \ No newline at end of file diff --git a/server/services/ami/preview/index.js b/server/services/ami/preview/index.js index 110601e..dc06970 100644 --- a/server/services/ami/preview/index.js +++ b/server/services/ami/preview/index.js @@ -1 +1 @@ -const a1087_0x20d3=['dialPrefix','reason','getCallerIdRandom','startPredictive','decrementTalkink','outboundOriginateFailureCallsDay','[syncHangup][talking]','No\x20such\x20channel','isNil','[HistoryDialRecallInQueue][historyCatch]','[originated][decrement][callProgressDetectingAgent]','originated','total','IS_DISACTIVED','execRun','[originateFailure][logOriginateFailure]','[callProgressDetectingCustomer][logBusy]','dialNoSuchNumberRetryFrequency','queue','predictiveIntervalDroppedCallsCallersExit','uuid','startProgressive','clearZombieChannel','../../../config/logger','tail','response','outboundCongestionCallsDay','paused','predictiveIntervalErlangCallsDroppedCalls','syncDialEnd','recallMe','[callProgressDetectingCustomer][logCongestionGlobal]','varset','md5','sumHoldTime','outboundAnswerCallsDay','phone','available','syncVarSet','lodash','countnoanswerretry','prototype','nosuchnumber','NoSuchNumber','abandoned','[Blacklist][error]','pTalking','logAgent','dialBusyMaxRetry','callProgressDetectingAgent','dialRandomLastDigitCallerIdNumber','syncAttendedTransfer','cloneAction','Congestion','custom:agentbusy','totalGlobal','sendMessageOneNotActive','status','moment','[Preview][validateContact][Empty\x20Campaign]','[originated][decrement][callProgressDetectingCustomer]','getDiff','starttime','checkIsBlackList','loggedIn','\x20is\x20disactive','RecallInQueue','rescheduleContactInQueue','toLowerVariables','Interval','clearZombieChannels','createHistory','talktime','[callProgressDetectingCustomer][logUnknownGlobal]','destuniqueid','trim','[callProgressDetectingCustomer][logNoSuch]','custom:agentcongestion','[syncHangupRequest][logAgentReject]','outboundBlacklistCallsDay','complete','sumDuration','custom:agentConnectPreview','../ami','dialGlobalMaxRetry','custom:agentconnect','syncCampaigns','loopCampaigns','isEmpty','destlinkedid','OriginateError','ABANDONED','outboundDropCallsDayACS','predictiveIntervalDroppedCallsTimeout','congestion','scheduledat','lookAgent','custom:agentreject','trunks','outboundReCallsDay','originated:\x20','[callProgressDetectingCustomer][logCongestion]','logger2','Contact','syncHangup','campaignsPreview','getContactRecallMe','responsetime','Call\x20failed','channel','logger','name','countcongestionretry','outboundAbandonedCallsDay','erlangBusyFactor','syncNewExten','dialQueueProject','countbusyretry','SIP/%s','[syncHangup][talking][cause]','./rpcDb','type','statedesc','dialNoAnswerRetryFrequency','[callProgressDetectingAgent][logAnswerAGI]','util','[callProgressDetectingCustomer][logBusyGlobal]','Trunk','blindtransfer','RecallFailedTimeout','substring','Queue:\x20','[callProgressDetectingCustomer][logAgentReject]','dialCutDigit','dialOriginateTimeout','variable','isFailure','erlangCalls','unlockContact','[clearZombieChannel]','idContact','\x20Not\x20Active','Answer','dialAnswer','countglobal','linkedid','outboundDropCallsDayTimeout','predictiveIntervalMultiplicativeFactor','active','[Dialer][decrementTalkink][no\x20Hangup][Preview]','createCustomerFinal','../../../rediscache','AnswerAGI','dialBusyRetryFrequency','busy','dialNoAnswerMaxRetry','cause','NOT_ACTIVE','run','outboundUnknownCallsDay','predictiveIntervalTotalCalls','actionid','ListId','outboundBusyCallsDay','voiceQueues','[syncHangup][talking][transfer]','callProgressDetectingCustomer','dialOriginateCallerIdName','preview','object','[callProgressDetectingAgent][logAnswer]','[Preview][checkIsBlackList]','[syncHangup][talking][decrement]','[HistoryRecallClose]','NoAnswer','./util/util','CONGESTION','outboundRejectCallsDay','setMessage','bind','UserId','dialAbandonedRetryFrequency','isTrunkReachable','rescheduleContact','Queue','predictiveIntervalAnsweredCalls','actions','[Preview][getContactPreview]','scheduledAt','logLookAgent','pTalking:\x20','[callProgressDetectingCustomer][logAbandoned]','outboundAnswerAgiCallsDay','[callProgressDetectingCustomer][logNoAnswer]','catch','agents','dialActive','exports','uniqueid','talking','dialMethod','[RecallMe]','loggerError','custom:agentcalled','addVariable','transfertargetlinkedid','BUSY','checkInBlack','outboundNoAnswerCallsDay','dialOriginateCallerIdNumber','\x20is\x20not\x20active','clone','pick','outbound','Contact\x20in\x20black\x20List','answertime','[Preview][validateContact][Campaign\x20Active]','addVariables','./action','loggedInDb','[16]','custom:agentnosuchnumber','ANSWER','predictiveIntervalHitRate','[originated][increment]','predictiveIntervalAvailable','attendedtransfer','createCustomerHistory','[Dialer][checkChannel][pTalking][Preview]','strategy','validateContact','TrunkBackup','Agent','activeContact','Empty\x20Contact','noanswer','voice_queue_channel:remove','Is\x20Valid','sumBillable','[callProgressDetectingAgent][logBusy]','unlockAgent','merge','\x20Trunk\x20Backup\x20is\x20not\x20active','countnosuchnumberretry','originateresponse','[clearZombieChannels][talking]','[callProgressDetectingCustomer][logAnswerGlobal]','isActive','getCallerId','reachable','createAgentHistory','info','extractCalleridName','CANCEL','extractCalleridNumber','YYYY-MM-DD\x20HH:mm:ss','\x20Trunk\x20is\x20not\x20active','clockClearZombieChannels','isUndefined','answered','custom:agentringnoanswer','Busy','originatecalleridname','buildAcw','transfer','Call\x20unsuccessful','predictiveIntervalAvgHoldtime','variablesAction','finally','buildObj','SIP/%s/%s%s','ACTIVE','emit','updateOriginated','outboundNoSuchCallsDay','sequence','voice:queue:%s','booked','[Preview][validateContact][Trunk\x20not\x20work]','actionPreview','disableContact','rejected','[callProgressDetectingCustomer]','syncOriginateResponse','message','format','[callProgressDetectingAgent][logCongestion]','[callProgressDetectingCustomer][logAnswer]','then','TRUNK_IS_NOT_REACHABLE','originatecalleridnum','[default]','AGENTS_NOT_LOGGED','callerid','Global','[callProgressDetectingCustomer][logNoSuchGlobal]','agentreject','stringify','connect','syncHangupRequest','syncBlindTransfer','\x20IdHopper:\x20','error','[getContactRecallMe]','logCustomer','execCall','countabandonedretry','variables','custom:agentcomplete','voice_queue:save','campaign\x20Name:\x20','enqueue','AgentReject','\x20Queue','predictiveIntervalErlangCalls','dialstatus','dialRecallMeTimeout','VoiceQueueId','dialAgentRejectRetryFrequency','channelstate','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','Action','keys','[Preview][execCall][success]'];(function(_0x527e6d,_0x20d30e){const _0x3beb71=function(_0x538a8c){while(--_0x538a8c){_0x527e6d['push'](_0x527e6d['shift']());}};_0x3beb71(++_0x20d30e);}(a1087_0x20d3,0x170));const a1087_0x3beb=function(_0x527e6d,_0x20d30e){_0x527e6d=_0x527e6d-0x0;let _0x3beb71=a1087_0x20d3[_0x527e6d];return _0x3beb71;};const _0x384b5a=a1087_0x3beb;'use strict';const util=require(_0x384b5a('0x51')),_=require(_0x384b5a('0x13f')),uuid=require(_0x384b5a('0x12c')),moment=require(_0x384b5a('0xe')),md5=require('md5'),logger=require(_0x384b5a('0x12f'))(_0x384b5a('0x7c')),loggerAction=require(_0x384b5a('0x12f'))(_0x384b5a('0xeb')),ami=require(_0x384b5a('0x27')),rpcDb=require(_0x384b5a('0x4c')),Action=require(_0x384b5a('0xae')),ut=require(_0x384b5a('0x83')),{getSocket}=require(_0x384b5a('0x6b')),io=getSocket(),Sequence=function(){};Sequence[_0x384b5a('0x141')]['enqueue']=function(_0x538a8c){const _0x4f91b8=_0x384b5a;this[_0x4f91b8('0x130')]=this['tail']?this[_0x4f91b8('0x130')][_0x4f91b8('0xe0')](_0x538a8c):_0x538a8c();};function Preview(_0x2cf65e){const _0x39d760=_0x384b5a;this[_0x39d760('0xe7')]=new Sequence(),this[_0x39d760('0x3d')]=_0x2cf65e[_0x39d760('0x78')],this[_0x39d760('0x36')]=_0x2cf65e[_0x39d760('0x36')],this[_0x39d760('0x8e')]={},this[_0x39d760('0x97')]=_0x2cf65e[_0x39d760('0x97')],this['clockClearZombieChannels']=0x0,ami['on'](_0x39d760('0xc8'),this[_0x39d760('0xef')][_0x39d760('0x87')](this)),ami['on']('hangup',this[_0x39d760('0x3c')][_0x39d760('0x87')](this)),ami['on']('hanguprequest',this[_0x39d760('0xff')][_0x39d760('0x87')](this)),ami['on']('dialend',this[_0x39d760('0x135')][_0x39d760('0x87')](this)),ami['on']('newexten',this['syncNewExten'][_0x39d760('0x87')](this)),ami['on'](_0x39d760('0x138'),this[_0x39d760('0x13e')][_0x39d760('0x87')](this)),ami['on'](_0x39d760('0xb6'),this[_0x39d760('0x7')][_0x39d760('0x87')](this)),ami['on'](_0x39d760('0x54'),this[_0x39d760('0x100')][_0x39d760('0x87')](this)),this[_0x39d760('0x2b')](this[_0x39d760('0x3d')]);}function emit(_0x385034,_0x19943e,_0x1d14b9){const _0x203b00=_0x384b5a;io['to'](_0x385034)[_0x203b00('0xe4')](_0x19943e,_0x1d14b9);}function emitCampaignPreview(_0x483924){const _0x2b37f8=_0x384b5a;if(_0x483924[_0x2b37f8('0x4d')]===_0x2b37f8('0xa9')){const _0x309a50={'id':_0x483924['id'],'name':_0x483924[_0x2b37f8('0x43')],'strategy':_0x483924[_0x2b37f8('0xb9')],'answered':_0x483924[_0x2b37f8('0xd7')],'available':_0x483924[_0x2b37f8('0x13d')],'loggedIn':_0x483924[_0x2b37f8('0x14')],'pTalking':_0x483924[_0x2b37f8('0x2')],'sumBillable':_0x483924[_0x2b37f8('0xc2')],'sumDuration':_0x483924[_0x2b37f8('0x25')],'sumHoldTime':_0x483924[_0x2b37f8('0x13a')]||0x0,'talking':_0x483924[_0x2b37f8('0x9b')],'total':_0x483924[_0x2b37f8('0x124')],'type':_0x483924[_0x2b37f8('0x4d')],'unmanaged':_0x483924['unmanaged'],'abandoned':_0x483924[_0x2b37f8('0x0')],'waiting':_0x483924['waiting'],'loggedInDb':_0x483924[_0x2b37f8('0xaf')],'dialActive':_0x483924[_0x2b37f8('0x98')],'dialMethod':_0x483924[_0x2b37f8('0x9c')],'dialOriginateCallerIdName':_0x483924[_0x2b37f8('0x7b')],'dialOriginateCallerIdNumber':_0x483924[_0x2b37f8('0xa5')],'dialOriginateTimeout':_0x483924[_0x2b37f8('0x5a')],'dialPrefix':_0x483924[_0x2b37f8('0x118')],'outboundAnswerAgiCallsDay':_0x483924[_0x2b37f8('0x94')],'outboundAnswerCallsDay':_0x483924['outboundAnswerCallsDay'],'outboundBlacklistCallsDay':_0x483924[_0x2b37f8('0x23')],'outboundBusyCallsDay':_0x483924[_0x2b37f8('0x77')],'outboundCongestionCallsDay':_0x483924['outboundCongestionCallsDay'],'outboundDropCallsDayACS':_0x483924[_0x2b37f8('0x30')],'outboundDropCallsDayCallersExit':_0x483924['outboundDropCallsDayCallersExit'],'outboundDropCallsDayTimeout':_0x483924[_0x2b37f8('0x66')],'outboundNoAnswerCallsDay':_0x483924[_0x2b37f8('0xa4')],'outboundNoSuchCallsDay':_0x483924['outboundNoSuchCallsDay'],'outboundOriginateFailureCallsDay':_0x483924[_0x2b37f8('0x11d')],'outboundReCallsDay':_0x483924[_0x2b37f8('0x37')],'outboundRejectCallsDay':_0x483924['outboundRejectCallsDay'],'outboundUnknownCallsDay':_0x483924[_0x2b37f8('0x73')],'outboundAbandonedCallsDay':_0x483924[_0x2b37f8('0x45')],'predictiveIntervalAnsweredCalls':_0x483924[_0x2b37f8('0x8d')],'predictiveIntervalAvgHoldtime':_0x483924[_0x2b37f8('0xde')],'predictiveIntervalAvgTalktime':_0x483924['predictiveIntervalAvgTalktime'],'predictiveIntervalDroppedCallsCallersExit':_0x483924[_0x2b37f8('0x12b')],'predictiveIntervalDroppedCallsTimeout':_0x483924[_0x2b37f8('0x31')],'predictiveIntervalErlangCalls':_0x483924[_0x2b37f8('0x10e')],'predictiveIntervalErlangCallsDroppedCalls':_0x483924[_0x2b37f8('0x134')],'predictiveIntervalHitRate':_0x483924[_0x2b37f8('0xb3')],'predictiveIntervalMultiplicativeFactor':_0x483924[_0x2b37f8('0x67')],'predictiveIntervalPauses':_0x483924['predictiveIntervalPauses'],'predictiveIntervalAvailable':_0x483924[_0x2b37f8('0xb5')],'predictiveIntervalTotalCalls':_0x483924[_0x2b37f8('0x74')],'message':_0x483924[_0x2b37f8('0xf0')],'originated':_0x483924[_0x2b37f8('0x123')],'erlangCalls':_0x483924[_0x2b37f8('0x5d')],'erlangCallToSecond':_0x483924['erlangCallToSecond'],'erlangAbandonmentRate':_0x483924['erlangAbandonmentRate'],'erlangBusyFactor':_0x483924[_0x2b37f8('0x46')],'startPredictive':_0x483924[_0x2b37f8('0x11b')],'startProgressive':_0x483924[_0x2b37f8('0x12d')]};_0x483924[_0x2b37f8('0x53')]&&(_0x309a50[_0x2b37f8('0x53')]={'id':_0x483924[_0x2b37f8('0x53')]['id'],'name':_0x483924[_0x2b37f8('0x53')][_0x2b37f8('0x43')],'active':_0x483924[_0x2b37f8('0x53')][_0x2b37f8('0x68')],'callerid':_0x483924[_0x2b37f8('0x53')][_0x2b37f8('0xf9')]});_0x483924[_0x2b37f8('0x19')]&&(_0x309a50[_0x2b37f8('0x19')]={'id':_0x483924[_0x2b37f8('0x19')]['id'],'name':_0x483924[_0x2b37f8('0x19')]['name']});const _0x16d055=md5(JSON[_0x2b37f8('0xfd')](_0x309a50));_0x483924['md5']!==_0x16d055&&(_0x483924[_0x2b37f8('0x139')]=_0x16d055,emit(util[_0x2b37f8('0xf1')]('voice:queue:%s',_0x309a50[_0x2b37f8('0x43')]),_0x2b37f8('0x109'),_0x309a50));}}function emitVoiceQueueChannelRemove(_0x1cd999){const _0x2cb7dc=_0x384b5a;logger['info'](_0x2cb7dc('0x114'),JSON['stringify'](_0x1cd999)),emit(util['format'](_0x2cb7dc('0xe8'),_0x1cd999[_0x2cb7dc('0x43')]),_0x2cb7dc('0xc0'),_0x1cd999);}function notSendMessagesQueue(_0x53f5e5){const _0x28578b=_0x384b5a;_0x53f5e5[_0x28578b('0xc')]&&(_0x53f5e5[_0x28578b('0x123')]===0x0&&_0x53f5e5[_0x28578b('0x2')]===0x0?(_0x53f5e5[_0x28578b('0xc')]=![],_0x53f5e5[_0x28578b('0x13d')]=0x0,_0x53f5e5[_0x28578b('0x133')]=0x0,_0x53f5e5[_0x28578b('0xf0')]=_0x28578b('0x71'),ut[_0x28578b('0x42')]('[CampaignPreview]\x20Campaign\x20Queue:\x20',_0x53f5e5[_0x28578b('0x43')]+_0x28578b('0xa6'))):(_0x53f5e5[_0x28578b('0xf0')]=_0x28578b('0x125'),ut[_0x28578b('0x42')]('[CampaignPreview]\x20Campaign\x20Queue:\x20',_0x53f5e5[_0x28578b('0x43')]+_0x28578b('0x15'))),emitCampaignPreview(_0x53f5e5));}Preview['prototype'][_0x384b5a('0x2b')]=function(){const _0x441a0b=this;setInterval(function(){const _0x3d32dd=a1087_0x3beb;_0x441a0b[_0x3d32dd('0x2a')]();},0x7cf);},Preview[_0x384b5a('0x141')]['syncCampaigns']=function(){const _0x50d520=_0x384b5a,_0x2f4dda=this[_0x50d520('0x3d')];this[_0x50d520('0xd5')]+=0x1;for(const _0x2c6dbe in _0x2f4dda){typeof _0x2f4dda[_0x2c6dbe]!=='undefined'&&(_0x2f4dda[_0x2c6dbe][_0x50d520('0x9c')]===_0x50d520('0x7c')||_0x2f4dda[_0x2c6dbe][_0x50d520('0x9c')]===_0x50d520('0xe9'))&&_0x2f4dda[_0x2c6dbe]['type']===_0x50d520('0xa9')&&(this[_0x50d520('0xd5')]>0x7&&(this[_0x50d520('0xd5')]=0x0,this['clearZombieChannels']())),typeof _0x2f4dda[_0x2c6dbe]!=='undefined'&&_0x2f4dda[_0x2c6dbe][_0x50d520('0x9c')]===_0x50d520('0x7c')&&_0x2f4dda[_0x2c6dbe][_0x50d520('0x4d')]===_0x50d520('0xa9')&&(_0x2f4dda[_0x2c6dbe][_0x50d520('0x98')]?(this['setMessage'](_0x2f4dda[_0x2c6dbe]),this[_0x50d520('0x136')](_0x2f4dda[_0x2c6dbe])):notSendMessagesQueue(_0x2f4dda[_0x2c6dbe]));}},Preview[_0x384b5a('0x141')][_0x384b5a('0x12e')]=function(_0x5ddabc){const _0xfc44c=_0x384b5a,_0x1460b8=this;this[_0xfc44c('0xe7')][_0xfc44c('0x10b')](function(){const _0x35fa73=_0xfc44c;if(!_[_0x35fa73('0x120')](_0x1460b8[_0x35fa73('0x8e')][_0x5ddabc]))return loggerAction['info'](_0x35fa73('0xc9'),_0x5ddabc,_0x35fa73('0x8c'),_0x1460b8[_0x35fa73('0x8e')][_0x5ddabc]['queue'],_0x35fa73('0x38'),JSON[_0x35fa73('0xfd')](_0x1460b8[_0x35fa73('0x3d')][_0x1460b8[_0x35fa73('0x8e')][_0x5ddabc][_0x35fa73('0x12a')]]['originated']),_0x35fa73('0x92'),JSON[_0x35fa73('0xfd')](_0x1460b8[_0x35fa73('0x3d')][_0x1460b8[_0x35fa73('0x8e')][_0x5ddabc][_0x35fa73('0x12a')]]['pTalking']),JSON['stringify'](_0x1460b8['actions'][_0x5ddabc][_0x35fa73('0x63')]),JSON[_0x35fa73('0xfd')](_[_0x35fa73('0xa8')](_0x1460b8[_0x35fa73('0x8e')][_0x5ddabc],['contactId',_0x35fa73('0x88'),'VoiceQueueId',_0x35fa73('0x76')]))),ami[_0x35fa73('0x115')]({'action':_0x35fa73('0xd'),'channel':_0x1460b8[_0x35fa73('0x8e')][_0x5ddabc]['channel']})[_0x35fa73('0x96')](function(_0x3612c6){const _0x5f0cc4=_0x35fa73;_0x3612c6[_0x5f0cc4('0xf0')]===_0x5f0cc4('0x11f')&&setTimeout(function(){const _0x66636a=_0x5f0cc4;_0x1460b8[_0x66636a('0x8e')][_0x5ddabc]&&(ut[_0x66636a('0xe5')](_0x1460b8[_0x66636a('0x3d')][_0x1460b8[_0x66636a('0x8e')][_0x5ddabc][_0x66636a('0x12a')]],_0x66636a('0x5f')),_0x1460b8[_0x66636a('0x8e')][_0x5ddabc][_0x66636a('0x63')]===!![]&&(ut[_0x66636a('0x11c')](_0x1460b8['campaignsPreview'][_0x1460b8['actions'][_0x5ddabc]['queue']],'[clearZombieChannel]'),ut[_0x66636a('0x9e')](_0x66636a('0xb8')+_0x5ddabc,_0x1460b8[_0x66636a('0x8e')][_0x5ddabc]['queue'])),ut[_0x66636a('0x9e')]('[Dialer][checkChannel][Preview]'+_0x5ddabc,_0x1460b8['actions'][_0x5ddabc][_0x66636a('0x12a')]),delete _0x1460b8['actions'][_0x5ddabc]);},0x2328);});});},Preview['prototype'][_0x384b5a('0x1a')]=function(){const _0x18ed48=_0x384b5a,_0x26b41d=this;loggerAction[_0x18ed48('0xcf')]('[action]',_['size'](this[_0x18ed48('0x8e')]));for(const _0xa13565 in this[_0x18ed48('0x8e')]){typeof _0x26b41d['actions'][_0xa13565]!=='undefined'&&_0x26b41d[_0x18ed48('0x12e')](_0xa13565);}},Preview[_0x384b5a('0x141')][_0x384b5a('0x136')]=function(_0x184ee0){const _0x4d8bce=_0x384b5a,_0x42f4ba=this;rpcDb[_0x4d8bce('0x3e')](_0x184ee0['id'],ut['agentReadyId'](this[_0x4d8bce('0x97')]))[_0x4d8bce('0xf4')](function(_0x49a5c8){const _0x3ebab2=_0x4d8bce;if(!_[_0x3ebab2('0x120')](_0x49a5c8))for(let _0x2a194a=0x0;_0x2a194a<_0x49a5c8['length'];_0x2a194a+=0x1){if(ut[_0x3ebab2('0x11')](_0x49a5c8[_0x2a194a][_0x3ebab2('0x33')])<_0x184ee0[_0x3ebab2('0x110')]*0x3c)_0x49a5c8[_0x2a194a][_0x3ebab2('0xbc')]&&!_0x49a5c8[_0x2a194a][_0x3ebab2('0xbc')]['voicePause']?_0x42f4ba['run'](_0x49a5c8[_0x2a194a]['id'])[_0x3ebab2('0xf4')](ut['logger2'](_0x3ebab2('0x9d')))[_0x3ebab2('0x96')](ut[_0x3ebab2('0x3a')](_0x3ebab2('0x9d'))):rpcDb[_0x3ebab2('0xec')](_0x49a5c8[_0x2a194a]['id']);else{const _0x2a3a86=new Action(_0x49a5c8[_0x2a194a],_0x184ee0);_0x2a3a86[_0x3ebab2('0x12')]=moment()['format'](_0x3ebab2('0xd3')),_0x184ee0[_0x3ebab2('0x37')]+=0x1,ut['logCustomer'](_0x2a3a86,0x17,_0x3ebab2('0x16')),_0x184ee0['dialRecallInQueue']?(rpcDb[_0x3ebab2('0x17')](ut['createBody'](_0x49a5c8[_0x2a194a])),rpcDb[_0x3ebab2('0xb7')](_0x2a3a86,_0x3ebab2('0x121'))):(ut[_0x3ebab2('0x104')](_0x2a3a86,0x16,_0x3ebab2('0x55')),rpcDb[_0x3ebab2('0xb7')](_0x2a3a86,'[HistoryRecallClose]'),rpcDb[_0x3ebab2('0x6a')](_0x2a3a86,_0x3ebab2('0x81')));}}})[_0x4d8bce('0x96')](ut[_0x4d8bce('0x3a')](_0x4d8bce('0x103')));},Preview[_0x384b5a('0x141')][_0x384b5a('0x86')]=function(_0x7cb4f0){const _0x98414c=_0x384b5a;_0x7cb4f0[_0x98414c('0xc')]=!![];if(ut['IsNotLoggedIn'](_0x7cb4f0[_0x98414c('0x14')]))_0x7cb4f0[_0x98414c('0xf0')]=_0x98414c('0xf8');else{if(!ut[_0x98414c('0xcb')](_0x7cb4f0[_0x98414c('0x98')]))_0x7cb4f0[_0x98414c('0xf0')]='NOT_ACTIVE';else!this[_0x98414c('0x8a')](_0x7cb4f0['Trunk'])?!this[_0x98414c('0x8a')](_0x7cb4f0[_0x98414c('0xbb')])?_0x7cb4f0['message']=_0x98414c('0xf5'):_0x7cb4f0[_0x98414c('0xf0')]=_0x98414c('0xe3'):_0x7cb4f0[_0x98414c('0xf0')]=_0x98414c('0xe3');}emitCampaignPreview(_0x7cb4f0);},Preview['prototype'][_0x384b5a('0x7a')]=function(_0x2328ec,_0x218543,_0x508ea3){const _0x5c28a3=_0x384b5a,_0x2cd795=this['actions'][_0x218543],_0x2572bd=this[_0x5c28a3('0x3d')][_0x2cd795['queue']];let _0x23776d;if(_0x2572bd){switch(_0x508ea3){case'1':_0x2572bd[_0x5c28a3('0xe6')]+=0x1,_0x2cd795[_0x5c28a3('0xc7')]+=0x1,_0x2cd795['countglobal']=ut['totalGlobal'](_0x2cd795),ut[_0x5c28a3('0x104')](_0x2cd795,0x0,_0x5c28a3('0x143')),ami[_0x5c28a3('0xe4')](_0x5c28a3('0xb1'),ut[_0x5c28a3('0xe1')](_0x2cd795,_0x5c28a3('0x142'))),rpcDb[_0x5c28a3('0xb7')](_0x2cd795,_0x5c28a3('0x20'));ut[_0x5c28a3('0xb')](_0x2cd795)>=_0x2572bd[_0x5c28a3('0x28')]?(_0x23776d=ut['cloneAction'](_0x2cd795,0xf,'Global'),rpcDb[_0x5c28a3('0x6a')](_0x23776d,'[callProgressDetectingCustomer][logNoSuchGlobal]')):_0x2cd795['countnosuchnumberretry']>=_0x2572bd['dialNoSuchNumberMaxRetry']?rpcDb['createCustomerFinal'](_0x2cd795,_0x5c28a3('0xfb')):rpcDb[_0x5c28a3('0x8b')](ut['scheduledAt'](_0x2cd795,_0x5c28a3('0xc7'),_0x2572bd[_0x5c28a3('0x129')]),_0x2cd795[_0x5c28a3('0xc4')],_0x2cd795[_0x5c28a3('0xbd')]);delete this['actions'][_0x2328ec[_0x5c28a3('0x65')]];break;case _0x5c28a3('0xb2'):{const _0x920d74=moment()[_0x5c28a3('0xf1')](_0x5c28a3('0xd3'));_0x2cd795[_0x5c28a3('0x3f')]=_0x920d74,_0x2cd795[_0x5c28a3('0xab')]=_0x920d74,_0x2cd795[_0x5c28a3('0x63')]=!![],_0x2572bd['pTalking']+=0x1,logger[_0x5c28a3('0xcf')]('[syncHangup][talking][increment]',_0x2cd795[_0x5c28a3('0x9a')],_0x5c28a3('0x10d'),_0x2572bd[_0x5c28a3('0x43')],_0x5c28a3('0x92'),_0x2572bd[_0x5c28a3('0x2')]),ami[_0x5c28a3('0xe4')](_0x5c28a3('0x29'),ut['buildObj'](_0x2cd795,_0x5c28a3('0xfe'))),_0x2572bd['acw']&&ami[_0x5c28a3('0xe4')](_0x5c28a3('0x26'),ut[_0x5c28a3('0xdb')](_0x2cd795));}break;case'16':ami['emit'](_0x5c28a3('0x108'),ut['buildObj'](_0x2cd795,_0x5c28a3('0x24'))),emitVoiceQueueChannelRemove(ut['buildObj'](_0x2cd795,'complete')),_0x2572bd[_0x5c28a3('0x13b')]+=0x1,_0x2572bd['total']+=0x1,_0x2572bd[_0x5c28a3('0xd7')]+=0x1,ut['decrementTalkink'](_0x2572bd,_0x5c28a3('0xb0')),_0x2cd795[_0x5c28a3('0x64')]=ut['totalGlobal'](_0x2cd795),ut[_0x5c28a3('0x104')](_0x2cd795,0x4,_0x5c28a3('0x62')),rpcDb['createCustomerHistory'](_0x2cd795,_0x5c28a3('0xf3')),rpcDb[_0x5c28a3('0x6a')](_0x2cd795,_0x5c28a3('0xca')),rpcDb['crateCustomerReportQueue'](_0x2cd795),_0x2572bd[_0x5c28a3('0x25')]+=_0x2cd795[_0x5c28a3('0x1c')],_0x2572bd[_0x5c28a3('0xc2')]+=_0x2cd795[_0x5c28a3('0x1c')],logger[_0x5c28a3('0xcf')](_0x5c28a3('0x80'),_0x2cd795[_0x5c28a3('0x9a')],_0x5c28a3('0x10d'),_0x2572bd[_0x5c28a3('0x43')],_0x5c28a3('0x92'),_0x2572bd[_0x5c28a3('0x2')]),delete this[_0x5c28a3('0x8e')][_0x2328ec[_0x5c28a3('0x65')]];break;case _0x5c28a3('0xa2'):_0x2572bd[_0x5c28a3('0x77')]+=0x1,_0x2cd795[_0x5c28a3('0x49')]+=0x1,_0x2cd795[_0x5c28a3('0x64')]=ut[_0x5c28a3('0xb')](_0x2cd795),ut['logCustomer'](_0x2cd795,0x5,_0x5c28a3('0xd9')),ami[_0x5c28a3('0xe4')](_0x5c28a3('0xa'),ut[_0x5c28a3('0xe1')](_0x2cd795,_0x5c28a3('0x6e'))),rpcDb['createCustomerHistory'](_0x2cd795,'[callProgressDetectingCustomer][logBusy]');ut[_0x5c28a3('0xb')](_0x2cd795)>=_0x2572bd[_0x5c28a3('0x28')]?(_0x23776d=ut[_0x5c28a3('0x8')](_0x2cd795,0xf,'Global'),rpcDb[_0x5c28a3('0x6a')](_0x23776d,_0x5c28a3('0x52'))):_0x2cd795[_0x5c28a3('0x49')]>=_0x2572bd[_0x5c28a3('0x4')]?rpcDb[_0x5c28a3('0x6a')](_0x2cd795,_0x5c28a3('0x128')):rpcDb[_0x5c28a3('0x8b')](ut[_0x5c28a3('0x90')](_0x2cd795,_0x5c28a3('0x49'),_0x2572bd[_0x5c28a3('0x6d')]),_0x2cd795[_0x5c28a3('0xc4')],_0x2cd795[_0x5c28a3('0xbd')]);break;case'NOANSWER':_0x2572bd[_0x5c28a3('0xa4')]+=0x1,_0x2cd795[_0x5c28a3('0x140')]+=0x1,_0x2cd795['countglobal']=ut[_0x5c28a3('0xb')](_0x2cd795),ut[_0x5c28a3('0x104')](_0x2cd795,0x3,'NoAnswer'),ami['emit']('custom:agentnoanswer',ut[_0x5c28a3('0xe1')](_0x2cd795,_0x5c28a3('0xbf'))),rpcDb[_0x5c28a3('0xb7')](_0x2cd795,_0x5c28a3('0x95'));ut['totalGlobal'](_0x2cd795)>=_0x2572bd[_0x5c28a3('0x28')]?(_0x23776d=ut[_0x5c28a3('0x8')](_0x2cd795,0xf,_0x5c28a3('0xfa')),rpcDb[_0x5c28a3('0x6a')](_0x23776d,'[callProgressDetectingCustomer][logNoAnswerGlobal]')):_0x2cd795[_0x5c28a3('0x140')]>=_0x2572bd[_0x5c28a3('0x6f')]?rpcDb[_0x5c28a3('0x6a')](_0x2cd795,'[callProgressDetectingCustomer][logNoAnswer]'):rpcDb[_0x5c28a3('0x8b')](ut['scheduledAt'](_0x2cd795,_0x5c28a3('0x140'),_0x2572bd[_0x5c28a3('0x4f')]),_0x2cd795[_0x5c28a3('0xc4')],_0x2cd795['activeContact']);break;case _0x5c28a3('0x84'):_0x2572bd[_0x5c28a3('0x132')]+=0x1,_0x2cd795[_0x5c28a3('0x44')]+=0x1,_0x2cd795['countglobal']=ut[_0x5c28a3('0xb')](_0x2cd795),ut[_0x5c28a3('0x104')](_0x2cd795,0x8,_0x5c28a3('0x9')),ami[_0x5c28a3('0xe4')](_0x5c28a3('0x21'),ut[_0x5c28a3('0xe1')](_0x2cd795,_0x5c28a3('0x32'))),rpcDb['createCustomerHistory'](_0x2cd795,_0x5c28a3('0x39'));ut[_0x5c28a3('0xb')](_0x2cd795)>=_0x2572bd[_0x5c28a3('0x28')]?(_0x23776d=ut[_0x5c28a3('0x8')](_0x2cd795,0xf,_0x5c28a3('0xfa')),rpcDb['createCustomerFinal'](_0x23776d,_0x5c28a3('0x137'))):_0x2cd795[_0x5c28a3('0x44')]>=_0x2572bd['dialCongestionMaxRetry']?rpcDb[_0x5c28a3('0x6a')](_0x2cd795,'[callProgressDetectingCustomer][logCongestion]'):rpcDb[_0x5c28a3('0x8b')](ut[_0x5c28a3('0x90')](_0x2cd795,_0x5c28a3('0x44'),_0x2572bd[_0x5c28a3('0x6d')]),_0x2cd795[_0x5c28a3('0xc4')],_0x2cd795[_0x5c28a3('0xbd')]);break;case _0x5c28a3('0xd1'):_0x2572bd[_0x5c28a3('0x85')]+=0x1,_0x2cd795['countagentrejectretry']+=0x1,_0x2cd795[_0x5c28a3('0x64')]=ut[_0x5c28a3('0xb')](_0x2cd795),ut[_0x5c28a3('0x104')](_0x2cd795,0x14,_0x5c28a3('0x10c')),ami[_0x5c28a3('0xe4')](_0x5c28a3('0x35'),ut[_0x5c28a3('0xe1')](_0x2cd795,_0x5c28a3('0xfc'))),rpcDb['createCustomerHistory'](_0x2cd795,_0x5c28a3('0x22'));ut[_0x5c28a3('0xb')](_0x2cd795)>=_0x2572bd[_0x5c28a3('0x28')]?(_0x23776d=ut['cloneAction'](_0x2cd795,0x14,'AgentReject'),rpcDb[_0x5c28a3('0x6a')](_0x23776d,_0x5c28a3('0x58'))):_0x2cd795['countagentrejectretry']>=_0x2572bd['dialAgentRejectMaxRetry']?rpcDb[_0x5c28a3('0x6a')](_0x2cd795,_0x5c28a3('0x58')):rpcDb[_0x5c28a3('0x8b')](ut['scheduledAt'](_0x2cd795,'countagentrejectretry',_0x2572bd[_0x5c28a3('0x112')]),_0x2cd795['unlockAgent'],_0x2cd795[_0x5c28a3('0xbd')]);break;case _0x5c28a3('0x2f'):_0x2572bd[_0x5c28a3('0x45')]+=0x1,_0x2cd795[_0x5c28a3('0x106')]+=0x1,_0x2cd795[_0x5c28a3('0x64')]=ut[_0x5c28a3('0xb')](_0x2cd795),ut[_0x5c28a3('0x104')](_0x2cd795,0xb,'Abandoned'),rpcDb[_0x5c28a3('0xb7')](_0x2cd795,'[callProgressDetectingCustomer][logAbandoned]');ut[_0x5c28a3('0xb')](_0x2cd795)>=_0x2572bd[_0x5c28a3('0x28')]?(_0x23776d=ut['cloneAction'](_0x2cd795,0xf,_0x5c28a3('0xfa')),rpcDb[_0x5c28a3('0x6a')](_0x23776d,_0x5c28a3('0x93'))):_0x2cd795['countabandonedetry']>=_0x2572bd['dialAbandonedMaxRety']?rpcDb[_0x5c28a3('0x6a')](_0x2cd795,_0x5c28a3('0x93')):rpcDb[_0x5c28a3('0x8b')](ut['scheduledAt'](_0x2cd795,_0x5c28a3('0x106'),_0x2572bd[_0x5c28a3('0x89')]),_0x2cd795[_0x5c28a3('0xc4')],_0x2cd795[_0x5c28a3('0xbd')]);break;default:_0x2cd795['dialAnswer']&&(ut[_0x5c28a3('0x11c')](_0x2572bd,_0x5c28a3('0xf7')),ut[_0x5c28a3('0x9e')](_0x5c28a3('0x69')+_0x2572bd['name'],_0x2328ec));_0x2572bd[_0x5c28a3('0x73')]+=0x1,_0x2cd795[_0x5c28a3('0x64')]=ut['totalGlobal'](_0x2cd795),ut['logCustomer'](_0x2cd795,0xc,_0x2328ec['cause-txt']||_0x2328ec[_0x5c28a3('0x10f')]),rpcDb['createCustomerHistory'](_0x2cd795,'[callProgressDetectingCustomer][logUnknown]');ut[_0x5c28a3('0xb')](_0x2cd795)>=_0x2572bd[_0x5c28a3('0x28')]?(_0x23776d=ut[_0x5c28a3('0x8')](_0x2cd795,0xf,'Global'),rpcDb[_0x5c28a3('0x6a')](_0x23776d,_0x5c28a3('0x1d'))):rpcDb[_0x5c28a3('0x6a')](_0x2cd795,_0x5c28a3('0x1d'));delete this[_0x5c28a3('0x8e')][_0x2328ec[_0x5c28a3('0x65')]];}!(_0x2cd795['dialAnswer']&&_0x508ea3==='16')&&(ut['updateOriginated'](_0x2572bd,_0x5c28a3('0xee')),logger[_0x5c28a3('0xcf')](_0x5c28a3('0x10'),_0x2cd795[_0x5c28a3('0x9a')],_0x5c28a3('0x10d'),_0x2572bd[_0x5c28a3('0x43')],'originated:\x20',_0x2572bd[_0x5c28a3('0x123')])),_0x508ea3!==_0x5c28a3('0xb2')&&(delete this[_0x5c28a3('0x8e')][_0x2328ec['linkedid']],delete this[_0x5c28a3('0x8e')][_0x2328ec['destlinkedid']]);}},Preview['prototype'][_0x384b5a('0x5')]=function(_0x3f79d4,_0x59b68a,_0x54a058){const _0x36e3e0=_0x384b5a;if(_[_0x36e3e0('0xd6')](_0x59b68a)&&_0x36e3e0('0x7d')!==typeof _0x59b68a)return;if(_[_0x36e3e0('0xd6')](_0x54a058)&&'object'!==typeof _0x54a058)return;switch(_0x54a058[_0x36e3e0('0x119')]){case'0':ut['logAgent'](_0x3f79d4,0x0,_0x36e3e0('0x143')),rpcDb[_0x36e3e0('0xce')](_0x3f79d4,'[callProgressDetectingAgent][logNoSuch]');break;case'3':ut['logAgent'](_0x3f79d4,0x3,_0x36e3e0('0x82')),rpcDb[_0x36e3e0('0xce')](_0x3f79d4,'[callProgressDetectingAgent][logNoAnswer]');break;case'5':ut[_0x36e3e0('0x3')](_0x3f79d4,0x5,_0x36e3e0('0xd9')),rpcDb['createAgentHistory'](_0x3f79d4,_0x36e3e0('0xc3'));break;case'8':ut['logAgent'](_0x3f79d4,0x8,_0x36e3e0('0x9')),rpcDb[_0x36e3e0('0xce')](_0x3f79d4,'[callProgressDetectingAgent][logCongestion]');break;case'22':ut['logAgent'](_0x3f79d4,0x16,_0x36e3e0('0x6c')),rpcDb[_0x36e3e0('0xce')](_0x3f79d4,_0x36e3e0('0x50'));break;default:ut[_0x36e3e0('0x3')](_0x3f79d4,0xc,_0x54a058[_0x36e3e0('0x119')]),rpcDb['createAgentHistory'](_0x3f79d4,_0x36e3e0('0xf2'));}ut[_0x36e3e0('0xe5')](_0x59b68a,'[callProgressDetectingAgent]'),logger['info'](_0x36e3e0('0x122'),_0x3f79d4[_0x36e3e0('0x9a')],_0x36e3e0('0x10d'),_0x59b68a[_0x36e3e0('0x43')],_0x36e3e0('0x38'),_0x59b68a[_0x36e3e0('0x123')]),delete this['actions'][_0x3f79d4[_0x36e3e0('0x9a')]];},Preview[_0x384b5a('0x141')][_0x384b5a('0xa3')]=function(_0x1955db,_0x1bc39e,_0xb01e40,_0x8a222d,_0x333400){const _0x244070=this;return new Promise(function(_0x5a3faf,_0x2abfa1){const _0x3d282e=a1087_0x3beb;if(_[_0x3d282e('0x120')](_0x1bc39e)||_[_0x3d282e('0x120')](_0x1bc39e[_0x3d282e('0x3b')])||_[_0x3d282e('0x120')](_0x1bc39e[_0x3d282e('0x3b')][_0x3d282e('0x13c')])||_[_0x3d282e('0x120')](_0x1bc39e[_0x3d282e('0x111')])){_0x2abfa1(ut[_0x3d282e('0xf0')]('Contact\x20is\x20undefined',_0x8a222d,_0x333400));return;}const _0x9f2910=uuid['v4'](),_0x35adef=_0x244070[_0x3d282e('0x3d')][_0x1bc39e[_0x3d282e('0x8c')][_0x3d282e('0x43')]],_0x56a7c6=_0xb01e40?_0x244070[_0x3d282e('0x97')][_0xb01e40]['id']:undefined;_0x244070[_0x3d282e('0x8e')][_0x9f2910]=new Action(_0x1bc39e,_0x35adef,_0x9f2910,_0xb01e40,_0x56a7c6);const _0x456c27=_0x244070['actions'][_0x9f2910];_0x456c27[_0x3d282e('0xc4')]=_0x8a222d,_0x456c27[_0x3d282e('0xbd')]=_0x333400,_0x456c27[_0x3d282e('0x34')]=_0xb01e40,_[_0x3d282e('0x2c')](_0x1955db)?_0x244070[_0x3d282e('0x105')](_0x456c27,_0x35adef,_0x1bc39e,_0xb01e40)['then'](function(_0x273581){const _0x2c7cf2=_0x3d282e;logger[_0x2c7cf2('0xcf')](_0x2c7cf2('0x117'),_0x2c7cf2('0x57')+_0x456c27[_0x2c7cf2('0x12a')]+_0x2c7cf2('0x101')+_0x456c27[_0x2c7cf2('0x60')],JSON[_0x2c7cf2('0xfd')](_0x273581)),ami[_0x2c7cf2('0xe4')](_0x2c7cf2('0x9f'),ut[_0x2c7cf2('0xe1')](_0x456c27,'called')),_0x5a3faf(ut['message']('Calling'));})[_0x3d282e('0x96')](function(_0x3d687e){const _0x1976fb=_0x3d282e;ut[_0x1976fb('0x42')]('[Preview][execCall][failure]',_0x3d687e),_0x2abfa1(ut[_0x1976fb('0xf0')](_0x1976fb('0x40'),_0x8a222d,_0x333400));}):(_0x35adef['outboundBlacklistCallsDay']+=0x1,ut['logBlacklist'](_0x456c27),rpcDb[_0x3d282e('0x1b')](_0x456c27,_0x3d282e('0x1')),delete _0x244070[_0x3d282e('0x8e')][_0x9f2910],_0x2abfa1(ut[_0x3d282e('0xf0')](_0x3d282e('0xaa'),_0x8a222d,_0x333400)));});},Preview['prototype'][_0x384b5a('0x8a')]=function(_0x3c8839){const _0xfc9c80=_0x384b5a;return!_['isNil'](_0x3c8839)&&!_['isNil'](_0x3c8839[_0xfc9c80('0x43')])&&!_[_0xfc9c80('0x120')](_0x3c8839['active'])&&_0x3c8839[_0xfc9c80('0x68')]&&!_[_0xfc9c80('0x120')](this['trunks'][util[_0xfc9c80('0xf1')](_0xfc9c80('0x4a'),_0x3c8839[_0xfc9c80('0x43')])])&&!_[_0xfc9c80('0x120')](this['trunks'][util['format'](_0xfc9c80('0x4a'),_0x3c8839[_0xfc9c80('0x43')])][_0xfc9c80('0xd')])&&(this[_0xfc9c80('0x36')][util[_0xfc9c80('0xf1')]('SIP/%s',_0x3c8839[_0xfc9c80('0x43')])]['status']===_0xfc9c80('0xcd')||this['trunks'][util['format'](_0xfc9c80('0x4a'),_0x3c8839[_0xfc9c80('0x43')])][_0xfc9c80('0xd')]==='unmonitored');},Preview['prototype'][_0x384b5a('0x72')]=function(_0x27c15b,_0x155572){const _0x281b18=this;return new Promise(function(_0x468e33,_0x30b4b6){const _0xb02d3f=a1087_0x3beb;_0x281b18['execRun'](_0x27c15b,_0x155572)['then'](function(_0x1093b8){_0x468e33(_['pick'](_0x1093b8,['message']));})[_0xb02d3f('0x96')](function(_0x450f3f){const _0x2f2804=_0xb02d3f;_0x450f3f['unlock']&&rpcDb['unlockContact'](_0x27c15b),_0x450f3f['active']&&rpcDb['disableContact'](_0x27c15b),_0x30b4b6(_[_0x2f2804('0xa8')](_0x450f3f,[_0x2f2804('0xf0')]));});});},Preview['prototype'][_0x384b5a('0x126')]=function(_0x261411,_0x4bad5c){const _0x39a193=this;return new Promise(function(_0xbca822,_0x2bfa07){let _0x22cfb5,_0x1ef96c;rpcDb['getContactPreview'](_0x261411)['then'](function(_0x2edb06){const _0x4eca2b=a1087_0x3beb;!_[_0x4eca2b('0x120')](_0x2edb06[0x0])&&(_0x1ef96c=_0x2edb06[0x0]['recallme']?![]:!![],_0x22cfb5=_0x2edb06[0x0]['recallme']?!![]:![],_0x22cfb5=_0x4bad5c?!![]:_0x22cfb5);const _0x3e7050=_0x39a193['validateContact'](_0x2edb06);_0x3e7050['isValid']?rpcDb[_0x4eca2b('0x13')](_['pick'](_0x2edb06[0x0],[_0x4eca2b('0x111'),'Contact.phone']))[_0x4eca2b('0xf4')](function(_0x27e0da){const _0x10a4a7=_0x4eca2b;_0x39a193[_0x10a4a7('0xa3')](_0x27e0da,_0x2edb06[0x0],_0x4bad5c,_0x1ef96c,_0x22cfb5)[_0x10a4a7('0xf4')](function(_0x3817d4){_0xbca822(_0x3817d4);})[_0x10a4a7('0x96')](function(_0x121c52){_0x2bfa07(_0x121c52);});})[_0x4eca2b('0x96')](function(_0xd7d60a){const _0x5b2ef8=_0x4eca2b;ut[_0x5b2ef8('0x42')](_0x5b2ef8('0x7f'),_0xd7d60a),_0x2bfa07(ut[_0x5b2ef8('0xf0')](_0x5b2ef8('0xdd'),_0x1ef96c,_0x22cfb5));}):_0x2bfa07(ut['message'](_0x3e7050[_0x4eca2b('0xf0')],_0x1ef96c,_0x22cfb5));})['catch'](function(_0x1f1424){const _0x5c4e39=a1087_0x3beb;ut[_0x5c4e39('0x42')](_0x5c4e39('0x8f'),_0x1f1424),_0x2bfa07(ut[_0x5c4e39('0xf0')](_0x5c4e39('0xdd'),![],!![]));});});},Preview[_0x384b5a('0x141')][_0x384b5a('0xba')]=function(_0x5756b6){const _0x3453cd=_0x384b5a;if(_['isNil'](_0x5756b6)||_[_0x3453cd('0x2c')](_0x5756b6)||!_['isNil'](_0x5756b6[0x0][_0x3453cd('0xbc')])&&_[_0x3453cd('0x120')](_0x5756b6[0x0][_0x3453cd('0xbc')][_0x3453cd('0x43')]))return ut[_0x3453cd('0x42')]('[Preview][validateContact][Empty\x20Contact]',_0x5756b6),{'isValid':![],'message':_0x3453cd('0xbe')};const _0x2c66fd=this[_0x3453cd('0x3d')][_0x5756b6[0x0][_0x3453cd('0x8c')][_0x3453cd('0x43')]];_0x2c66fd[_0x3453cd('0xf0')]=_0x3453cd('0xe3');if(_['isNil'](_0x2c66fd))return ut[_0x3453cd('0x42')](_0x3453cd('0xf'),_0x2c66fd),{'isValid':![],'message':'Empty\x20Campaign'};if(!this[_0x3453cd('0x8a')](_0x2c66fd[_0x3453cd('0x53')])){ut[_0x3453cd('0x42')]('[Preview][validateContact][Trunk\x20not\x20work]',_0x3453cd('0x10a')+_0x2c66fd['name']+_0x3453cd('0xd4'));if(!this[_0x3453cd('0x8a')](_0x2c66fd['TrunkBackup']))return ut[_0x3453cd('0x42')](_0x3453cd('0xea'),_0x2c66fd[_0x3453cd('0x43')]+_0x3453cd('0xc6')),{'isValid':![],'message':'Trunk\x20not\x20work'};}if(!ut[_0x3453cd('0xcb')](_0x2c66fd[_0x3453cd('0x98')]))return ut[_0x3453cd('0x42')](_0x3453cd('0xac'),_0x2c66fd[_0x3453cd('0x43')]+_0x3453cd('0x61')),{'isValid':![],'message':_0x3453cd('0x10a')+_0x2c66fd['name']+_0x3453cd('0x61')};return{'isValid':!![],'message':_0x3453cd('0xc1')};},Preview[_0x384b5a('0x141')][_0x384b5a('0x105')]=function(_0x1c1d46,_0x5317b0,_0x3e56eb,_0x5d34e2){const _0x85c8e=this;return new Promise(function(_0x5e5cf4,_0x45d61d){const _0x41032a=a1087_0x3beb,_0x5771a3=_0x1c1d46['uniqueid'],_0x565da6=_0x85c8e['isTrunkReachable'](_0x5317b0['Trunk'])?util[_0x41032a('0xf1')](_0x41032a('0xe2'),_0x5317b0[_0x41032a('0x53')][_0x41032a('0x43')],_['isNil'](_0x5317b0[_0x41032a('0x118')])?'':_0x5317b0[_0x41032a('0x118')][_0x41032a('0x1f')]()||'',_0x5317b0['dialCutDigit']>0x0?_0x3e56eb['Contact']['phone']['substring'](_0x5317b0[_0x41032a('0x59')]):_0x3e56eb[_0x41032a('0x3b')][_0x41032a('0x13c')]):util[_0x41032a('0xf1')](_0x41032a('0xe2'),_[_0x41032a('0x120')](_0x5317b0[_0x41032a('0xbb')])?_0x5317b0[_0x41032a('0x53')][_0x41032a('0x43')]:_0x5317b0[_0x41032a('0xbb')][_0x41032a('0x43')],_[_0x41032a('0x120')](_0x5317b0[_0x41032a('0x118')])?'':_0x5317b0[_0x41032a('0x118')][_0x41032a('0x1f')]()||'',_0x5317b0[_0x41032a('0x59')]>0x0?_0x3e56eb[_0x41032a('0x3b')][_0x41032a('0x13c')][_0x41032a('0x56')](_0x5317b0[_0x41032a('0x59')]):_0x3e56eb[_0x41032a('0x3b')]['phone']),_0x2b9b28=_0x85c8e['isTrunkReachable'](_0x5317b0[_0x41032a('0x53')])?ut[_0x41032a('0xcc')](_0x5317b0[_0x41032a('0x53')][_0x41032a('0xf9')],_0x5317b0[_0x41032a('0x7b')],_0x5317b0[_0x41032a('0x6')]>0x0?ut[_0x41032a('0x11a')](_0x5317b0[_0x41032a('0xa5')],_0x5317b0[_0x41032a('0x6')]):_0x5317b0['dialOriginateCallerIdNumber']):ut[_0x41032a('0xcc')](_[_0x41032a('0x120')](_0x5317b0[_0x41032a('0xbb')])?_0x5317b0[_0x41032a('0x53')][_0x41032a('0xf9')]:_0x5317b0[_0x41032a('0xbb')][_0x41032a('0xf9')],_0x5317b0[_0x41032a('0x7b')],_0x5317b0[_0x41032a('0x6')]>0x0?ut[_0x41032a('0x11a')](_0x5317b0[_0x41032a('0xa5')],_0x5317b0[_0x41032a('0x6')]):_0x5317b0[_0x41032a('0xa5')]);_0x2b9b28&&(_0x1c1d46[_0x41032a('0xda')]=ut[_0x41032a('0xd0')](_0x2b9b28),_0x1c1d46[_0x41032a('0xf6')]=ut[_0x41032a('0xd2')](_0x2b9b28));const _0x282687=ut[_0x41032a('0xad')](_0x5317b0,_0x3e56eb,_0x565da6,_0x2b9b28,_0x5771a3,_0x1c1d46);_[_0x41032a('0xc5')](_0x1c1d46,ut[_0x41032a('0x18')](_0x282687)),_0x1c1d46[_0x41032a('0x12')]=moment()[_0x41032a('0xf1')]('YYYY-MM-DD\x20HH:mm:ss'),ami[_0x41032a('0x115')](ut[_0x41032a('0xdf')](_0x1c1d46,_0x5317b0,_0x282687,_0x1c1d46[_0x41032a('0xbd')],_0x5d34e2))['then'](function(_0x1e4b4b){const _0x273380=_0x41032a;_0x5317b0['originated']+=0x1,logger[_0x273380('0xcf')](_0x273380('0xb4'),_0x5771a3,_0x273380('0x10d'),_0x5317b0[_0x273380('0x43')],_0x273380('0x38'),_0x5317b0[_0x273380('0x123')]),_0x5e5cf4(_0x1e4b4b);})[_0x41032a('0x96')](function(_0x389c71){const _0x13239a=_0x41032a;ut[_0x13239a('0x3')](_0x1c1d46,0xe,_0x13239a('0x2e')),rpcDb[_0x13239a('0xce')](_0x1c1d46,_0x13239a('0x127')),_0x45d61d(_0x389c71);});});},Preview['prototype'][_0x384b5a('0x47')]=function(_0xff5a7d){const _0x87c646=_0x384b5a;this['actions'][_0xff5a7d[_0x87c646('0x65')]]&&(this[_0x87c646('0x8e')][_0xff5a7d['linkedid']][_0x87c646('0x41')]=_0xff5a7d['channel']);},Preview[_0x384b5a('0x141')][_0x384b5a('0xef')]=function(_0x4a0237){const _0x584070=_0x384b5a,_0x294952=this,_0x390d21=this[_0x584070('0x8e')][_0x4a0237[_0x584070('0x75')]];if(_0x390d21){_0x390d21[_0x584070('0x34')]&&this[_0x584070('0x97')][_0x390d21[_0x584070('0x34')]]&&ut[_0x584070('0x91')](_0x390d21,this['agents'][_0x390d21[_0x584070('0x34')]][_0x584070('0x43')],this[_0x584070('0x97')][_0x390d21[_0x584070('0x34')]]['id']);const _0x555e91=_[_0x584070('0xa7')](_0x390d21);_0x555e91[_0x584070('0x3f')]=moment()[_0x584070('0xf1')]('YYYY-MM-DD\x20HH:mm:ss');const _0x28f271=_0x294952[_0x584070('0x3d')][_0x390d21['queue']];ut[_0x584070('0x5c')](_0x4a0237[_0x584070('0x131')])?(_0x390d21[_0x584070('0xc4')]&&rpcDb[_0x584070('0x5e')](_0x390d21[_0x584070('0x60')]),_0x390d21[_0x584070('0xbd')]&&rpcDb[_0x584070('0xec')](_0x390d21[_0x584070('0x60')]),ami[_0x584070('0xe4')](_0x584070('0xd8'),ut['buildObj'](_0x390d21,_0x584070('0xed'))),this[_0x584070('0x5')](_0x555e91,_0x28f271,_0x4a0237)):(_0x390d21['starttime']=moment()[_0x584070('0xf1')](_0x584070('0xd3')),ut['logAgent'](_0x555e91,0x4,_0x584070('0x62')),rpcDb[_0x584070('0xce')](_0x555e91,_0x584070('0x7e')));}},Preview[_0x384b5a('0x141')][_0x384b5a('0x3c')]=function(_0x4f5cd1){const _0xc9f62=_0x384b5a,_0x515773=this[_0xc9f62('0x8e')][_0x4f5cd1[_0xc9f62('0x65')]];let _0x127ed1;_0x515773&&(_0x127ed1=this[_0xc9f62('0x3d')][_0x515773[_0xc9f62('0x12a')]],logger['info'](_0xc9f62('0x11e'),_0x4f5cd1[_0xc9f62('0x65')],_0xc9f62('0x10d'),_0x127ed1[_0xc9f62('0x43')],_0xc9f62('0x92'),_0x127ed1[_0xc9f62('0x2')]));if(this[_0xc9f62('0x8e')][_0x4f5cd1[_0xc9f62('0x65')]]&&_0x4f5cd1[_0xc9f62('0x65')]!==_0x4f5cd1[_0xc9f62('0x9a')]){if(_0x4f5cd1[_0xc9f62('0x70')]==='16'&&this[_0xc9f62('0x8e')][_0x4f5cd1[_0xc9f62('0x65')]]['dialAnswer'])this[_0xc9f62('0x7a')](_0x4f5cd1,_0x4f5cd1[_0xc9f62('0x65')],_0x4f5cd1['cause']);else this[_0xc9f62('0x8e')][_0x4f5cd1[_0xc9f62('0x65')]][_0xc9f62('0x63')]&&(logger['info'](_0xc9f62('0x4b'),_0x4f5cd1[_0xc9f62('0x65')],_0x4f5cd1[_0xc9f62('0x70')],'\x20Queue',_0x127ed1[_0xc9f62('0x43')],'pTalking:\x20',_0x127ed1[_0xc9f62('0x2')]),this[_0xc9f62('0x7a')](_0x4f5cd1,_0x4f5cd1[_0xc9f62('0x65')],_0x4f5cd1['cause']));}else{if(_0x515773&&_[_0xc9f62('0x120')](_0x515773[_0xc9f62('0x4e')])&&_0x127ed1[_0xc9f62('0x48')]&&_0x4f5cd1[_0xc9f62('0x65')]===_0x4f5cd1[_0xc9f62('0x9a')]&&_[_0xc9f62('0x120')](_0x4f5cd1[_0xc9f62('0x119')])&&_0x4f5cd1[_0xc9f62('0x70')]==='16'&&_0x4f5cd1[_0xc9f62('0x113')]==='6'&&_[_0xc9f62('0xd6')](_0x515773[_0xc9f62('0xdc')]))_0x515773[_0xc9f62('0xc4')]&&rpcDb[_0xc9f62('0x5e')](_0x515773[_0xc9f62('0x60')]),_0x515773[_0xc9f62('0xbd')]&&rpcDb[_0xc9f62('0xec')](_0x515773[_0xc9f62('0x60')]),_0x4f5cd1[_0xc9f62('0x119')]='22',this[_0xc9f62('0x5')](_0x515773,_0x127ed1,_0x4f5cd1);else{if(_0x515773&&_0x515773[_0xc9f62('0xdc')]){if(_0x4f5cd1['cause']==='16'&&this[_0xc9f62('0x8e')][_0x4f5cd1['linkedid']][_0xc9f62('0x63')])logger['info'](_0xc9f62('0x79'),_0x4f5cd1[_0xc9f62('0x65')],_0x4f5cd1[_0xc9f62('0x70')],_0xc9f62('0x10d'),_0x127ed1[_0xc9f62('0x43')],_0xc9f62('0x92'),_0x127ed1[_0xc9f62('0x2')]),this[_0xc9f62('0x7a')](_0x4f5cd1,_0x4f5cd1[_0xc9f62('0x65')],_0x4f5cd1['cause']);else this[_0xc9f62('0x8e')][_0x4f5cd1[_0xc9f62('0x65')]]['dialAnswer']&&(logger['info'](_0xc9f62('0x4b'),_0x4f5cd1[_0xc9f62('0x65')],_0x4f5cd1['cause'],_0xc9f62('0x10d'),_0x127ed1[_0xc9f62('0x43')],_0xc9f62('0x92'),_0x127ed1[_0xc9f62('0x2')]),this['callProgressDetectingCustomer'](_0x4f5cd1,_0x4f5cd1[_0xc9f62('0x65')],_0x4f5cd1[_0xc9f62('0x70')]));}}}},Preview[_0x384b5a('0x141')][_0x384b5a('0x135')]=function(_0x1669b8){const _0x53a450=_0x384b5a;this['actions'][_0x1669b8[_0x53a450('0x2d')]]&&_0x1669b8['destlinkedid']!==_0x1669b8[_0x53a450('0x1e')]&&this['callProgressDetectingCustomer'](_0x1669b8,_0x1669b8[_0x53a450('0x2d')],_0x1669b8[_0x53a450('0x10f')]);},Preview[_0x384b5a('0x141')][_0x384b5a('0xff')]=function(_0x3475ca){const _0x1917e3=_0x384b5a;this['actions'][_0x3475ca[_0x1917e3('0x65')]]&&_0x3475ca[_0x1917e3('0x65')]!==_0x3475ca[_0x1917e3('0x9a')]&&!this[_0x1917e3('0x8e')][_0x3475ca[_0x1917e3('0x65')]][_0x1917e3('0x63')]&&(_0x3475ca[_0x1917e3('0x70')]==='1'&&this[_0x1917e3('0x7a')](_0x3475ca,_0x3475ca[_0x1917e3('0x65')],_0x3475ca[_0x1917e3('0x70')]));},Preview['prototype'][_0x384b5a('0xa0')]=function(_0x35099a,_0x31445a,_0x1087ce){const _0x957bbb=_0x384b5a;this[_0x957bbb('0x8e')][_0x35099a]&&(_['isNil'](this['actions'][_0x35099a][_0x957bbb('0x107')])&&(this[_0x957bbb('0x8e')][_0x35099a][_0x957bbb('0x107')]={}),this[_0x957bbb('0x8e')][_0x35099a][_0x957bbb('0x107')][_0x31445a]=_0x1087ce);},Preview[_0x384b5a('0x141')][_0x384b5a('0x13e')]=function(_0x898e42){const _0x3b9bd7=_0x384b5a;try{!_[_0x3b9bd7('0x120')](_0x898e42)&&(ut['filterKey'](_[_0x3b9bd7('0x116')](_0x898e42['variable'])[0x0])&&this[_0x3b9bd7('0xa0')](_0x898e42['uniqueid'],_[_0x3b9bd7('0x116')](_0x898e42[_0x3b9bd7('0x5b')])[0x0],_0x898e42['value']));}catch(_0x23680e){logger[_0x3b9bd7('0x102')]('[syncVarSet][Preview]',util['inspect'](_0x23680e,{'showHidden':![],'depth':null}));}},Preview[_0x384b5a('0x141')][_0x384b5a('0x7')]=function(_0x35c050){const _0x2cd420=_0x384b5a;_0x35c050&&(this[_0x2cd420('0x8e')][_0x35c050[_0x2cd420('0xa1')]]&&(this[_0x2cd420('0x8e')][_0x35c050['transfertargetlinkedid']][_0x2cd420('0xdc')]=!![]));},Preview[_0x384b5a('0x141')]['syncBlindTransfer']=function(_0x6b2e0c){const _0x1b2ac8=_0x384b5a;_0x6b2e0c&&(this[_0x1b2ac8('0x8e')][_0x6b2e0c['transfererlinkedid']]&&(this['actions'][_0x6b2e0c['transfererlinkedid']][_0x1b2ac8('0xdc')]=!![]));},module[_0x384b5a('0x99')]=Preview; \ No newline at end of file +const a1088_0x3fb2=['scheduledat','startProgressive','erlangBusyFactor','agentReadyId','[Preview][validateContact][Empty\x20Contact]','isValid','No\x20such\x20channel','[HistoryDialRecallInQueue][historyCatch]','pTalking:\x20','outboundBusyCallsDay','CONGESTION','sumDuration','countglobal','acw','complete','transfer','RecallFailedTimeout','connect','predictiveIntervalAvgHoldtime','logCustomer','extractCalleridName','OriginateError','blindtransfer','BUSY','custom:agentringnoanswer','custom:agentcongestion','addVariable','dialOriginateCallerIdName','info','outboundAnswerCallsDay','./action','AnswerAGI','object','emit','talktime','outboundRejectCallsDay','uniqueid','syncCampaigns','NOT_ACTIVE','enqueue','[Preview][validateContact][Campaign\x20Active]','[syncHangup][talking]','Agent','[callProgressDetectingCustomer][logCongestion]','IsNotLoggedIn','getCallerIdRandom','linkedid','sumBillable','NoAnswer','response','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','totalGlobal','ACTIVE','Contact','setMessage','Global','SIP/%s/%s%s','cause','idContact','logAgent','[callProgressDetectingCustomer][logBusyGlobal]','format','getContactPreview','stringify','countnoanswerretry','sequence','variablesAction','[originateFailure][logOriginateFailure]','custom:agentcomplete','active','Action','loggerError','preview','loopCampaigns','logger','dialOriginateCallerIdNumber','cause-txt','ANSWER','dialNoAnswerRetryFrequency','[callProgressDetectingCustomer][logNoAnswer]','cloneAction','[callProgressDetectingCustomer][logAnswerGlobal]','outboundReCallsDay','[syncHangup][talking][increment]','campaign\x20Name:\x20','dialNoSuchNumberRetryFrequency','dialGlobalMaxRetry','size','actionPreview','Congestion','[Preview][validateContact][Empty\x20Campaign]','countcongestionretry','[callProgressDetectingAgent][logBusy]','rescheduleContactInQueue','hanguprequest','isUndefined','dialNoSuchNumberMaxRetry','[callProgressDetectingAgent][logAnswerAGI]','md5','originateresponse','addVariables','[callProgressDetectingCustomer][logAgentReject]','[originated][decrement][callProgressDetectingCustomer]','util','abandoned','[callProgressDetectingAgent][logCongestion]','Call\x20unsuccessful','loggedInDb','predictiveIntervalDroppedCallsCallersExit','dialOriginateTimeout','value','[syncHangupRequest][logAgentReject]','crateCustomerReportQueue','countabandonedetry','dialRandomLastDigitCallerIdNumber','[Dialer][checkChannel][Preview]','originatecalleridname','Interval','responsetime','exports','pTalking','YYYY-MM-DD\x20HH:mm:ss','Queue','type','disableContact','syncHangupRequest','transfertargetlinkedid','activeContact','outboundCongestionCallsDay','transfererlinkedid','outboundDropCallsDayACS','syncAttendedTransfer','countagentrejectretry','tail','checkInBlack','catch','nosuchnumber','dialAbandonedRetryFrequency','getContactRecallMe','length','status','campaignsPreview','dialRecallInQueue','decrementTalkink','noanswer','lodash','[callProgressDetectingCustomer][logNoSuch]','[Preview][validateContact][Trunk\x20not\x20work]','[callProgressDetectingAgent]','unlockContact','message','isActive','[syncHangup][talking][cause]','pick','dialActive','validateContact','buildObj','dialAgentRejectRetryFrequency','callProgressDetectingCustomer','run','clearZombieChannel','merge','originated:\x20','[callProgressDetectingCustomer][logBusy]','clearZombieChannels','[originated][increment]','dialAbandonedMaxRety','outboundAbandonedCallsDay','finally','[callProgressDetectingAgent][logNoAnswer]','[Dialer][decrementTalkink][no\x20Hangup][Preview]','AGENTS_NOT_LOGGED','buildAcw','unmonitored','[callProgressDetectingCustomer][logCongestionGlobal]','\x20Not\x20Active','syncBlindTransfer','NoSuchNumber','[callProgressDetectingAgent][logNoSuch]','dialRecallMeTimeout','clone','outboundNoSuchCallsDay','isEmpty','[getContactRecallMe]','NOANSWER','[callProgressDetectingCustomer][logUnknownGlobal]','prototype','predictiveIntervalMultiplicativeFactor','[callProgressDetectingCustomer]','custom:agentnosuchnumber','VoiceQueueId','trim','[callProgressDetectingCustomer][logAnswer]','bind','dialPrefix','contactId','updateOriginated','channelstate','dialAnswer','isTrunkReachable','Contact.phone','total','variable','execRun','[action]','destlinkedid','voice_queue_channel:remove','undefined','\x20Trunk\x20is\x20not\x20active','reason','AgentReject','toLowerVariables','logger2','createHistory','createCustomerFinal','available','[syncVarSet][Preview]','booked','syncVarSet','outboundUnknownCallsDay','Call\x20failed','outbound','recallme','phone','ListId','Empty\x20Campaign','predictiveIntervalTotalCalls','outboundOriginateFailureCallsDay','Contact\x20is\x20undefined','outboundNoAnswerCallsDay','originated','[HistoryRecallClose]','Busy','unlockAgent','[Preview][getContactPreview]','unmanaged','clockClearZombieChannels','then','Abandoned','TRUNK_IS_NOT_REACHABLE','syncDialEnd','lookAgent','Answer','Calling','custom:agentConnectPreview','voice:queue:%s','uuid','predictiveIntervalAvgTalktime','custom:agentcalled','createAgentHistory','[callProgressDetectingCustomer][logUnknown]','syncHangup','loggedIn','[clearZombieChannels][talking]','paused','isNil','../../../rediscache','createBody','varset','custom:agentbusy','predictiveIntervalHitRate','variables','getCallerId','dialBusyMaxRetry','newexten','[RecallMe]','actions','channel','predictiveIntervalAnsweredCalls','trunks','substring','callProgressDetectingAgent','[default]','Trunk','execCall','SIP/%s','sendMessageOneNotActive','outboundDropCallsDayCallersExit','voicePause','hangup','rescheduleContact','erlangCalls','[syncHangup][talking][decrement]','CANCEL','predictiveIntervalErlangCallsDroppedCalls','[callProgressDetectingAgent][logAnswer]','[callProgressDetectingCustomer][logAbandoned]','agents','dialCutDigit','outboundAnswerAgiCallsDay','\x20is\x20disactive','outboundBlacklistCallsDay','getDiff','syncNewExten','\x20Queue','scheduledAt','erlangAbandonmentRate','queue','dialMethod','[callProgressDetectingCustomer][logNoAnswerGlobal]','syncOriginateResponse','name','[Preview][execCall][failure]','recallMe','error','TrunkBackup','countnosuchnumberretry','createCustomerHistory','starttime','busy','callerid','[CampaignPreview]\x20Campaign\x20Queue:\x20','[Preview][checkIsBlackList]','predictiveIntervalDroppedCallsTimeout'];(function(_0x3aa435,_0x3fb26f){const _0x1f2a2b=function(_0x5cb006){while(--_0x5cb006){_0x3aa435['push'](_0x3aa435['shift']());}};_0x1f2a2b(++_0x3fb26f);}(a1088_0x3fb2,0x98));const a1088_0x1f2a=function(_0x3aa435,_0x3fb26f){_0x3aa435=_0x3aa435-0x0;let _0x1f2a2b=a1088_0x3fb2[_0x3aa435];return _0x1f2a2b;};const _0x59744b=a1088_0x1f2a;'use strict';const util=require(_0x59744b('0x109')),_=require(_0x59744b('0x133')),uuid=require(_0x59744b('0x5e')),moment=require('moment'),md5=require(_0x59744b('0x104')),logger=require('../../../config/logger')('preview'),loggerAction=require('../../../config/logger')(_0x59744b('0xfa')),ami=require('../ami'),rpcDb=require('./rpcDb'),Action=require(_0x59744b('0xc0')),ut=require('./util/util'),{getSocket}=require(_0x59744b('0x68')),io=getSocket(),Sequence=function(){};Sequence['prototype']['enqueue']=function(_0x5cb006){const _0x389c1c=_0x59744b;this[_0x389c1c('0x127')]=this[_0x389c1c('0x127')]?this[_0x389c1c('0x127')][_0x389c1c('0x10')](_0x5cb006):_0x5cb006();};function Preview(_0x24cea7){const _0xe64f29=_0x59744b;this[_0xe64f29('0xe3')]=new Sequence(),this['campaignsPreview']=_0x24cea7['voiceQueues'],this[_0xe64f29('0x75')]=_0x24cea7[_0xe64f29('0x75')],this['actions']={},this['agents']=_0x24cea7[_0xe64f29('0x87')],this[_0xe64f29('0x54')]=0x0,ami['on'](_0xe64f29('0x105'),this['syncOriginateResponse']['bind'](this)),ami['on'](_0xe64f29('0x7f'),this[_0xe64f29('0x63')]['bind'](this)),ami['on'](_0xe64f29('0x100'),this['syncHangupRequest'][_0xe64f29('0x29')](this)),ami['on']('dialend',this['syncDialEnd']['bind'](this)),ami['on'](_0xe64f29('0x70'),this[_0xe64f29('0x8d')][_0xe64f29('0x29')](this)),ami['on'](_0xe64f29('0x6a'),this[_0xe64f29('0x42')][_0xe64f29('0x29')](this)),ami['on']('attendedtransfer',this[_0xe64f29('0x125')]['bind'](this)),ami['on'](_0xe64f29('0xb8'),this[_0xe64f29('0x18')]['bind'](this)),this['loopCampaigns'](this[_0xe64f29('0x12f')]);}function emit(_0x99de9a,_0x580fc6,_0x38d4bc){io['to'](_0x99de9a)['emit'](_0x580fc6,_0x38d4bc);}function emitCampaignPreview(_0x171d83){const _0x592f49=_0x59744b;if(_0x171d83['type']===_0x592f49('0x45')){const _0x404fa3={'id':_0x171d83['id'],'name':_0x171d83[_0x592f49('0x95')],'strategy':_0x171d83['strategy'],'answered':_0x171d83['answered'],'available':_0x171d83[_0x592f49('0x3f')],'loggedIn':_0x171d83[_0x592f49('0x64')],'pTalking':_0x171d83[_0x592f49('0x11a')],'sumBillable':_0x171d83[_0x592f49('0xd1')],'sumDuration':_0x171d83['sumDuration'],'sumHoldTime':_0x171d83['sumHoldTime']||0x0,'talking':_0x171d83['talking'],'total':_0x171d83[_0x592f49('0x31')],'type':_0x171d83[_0x592f49('0x11d')],'unmanaged':_0x171d83[_0x592f49('0x53')],'abandoned':_0x171d83[_0x592f49('0x10a')],'waiting':_0x171d83['waiting'],'loggedInDb':_0x171d83[_0x592f49('0x10d')],'dialActive':_0x171d83[_0x592f49('0x2')],'dialMethod':_0x171d83[_0x592f49('0x92')],'dialOriginateCallerIdName':_0x171d83['dialOriginateCallerIdName'],'dialOriginateCallerIdNumber':_0x171d83[_0x592f49('0xed')],'dialOriginateTimeout':_0x171d83[_0x592f49('0x10f')],'dialPrefix':_0x171d83[_0x592f49('0x2a')],'outboundAnswerAgiCallsDay':_0x171d83[_0x592f49('0x89')],'outboundAnswerCallsDay':_0x171d83['outboundAnswerCallsDay'],'outboundBlacklistCallsDay':_0x171d83[_0x592f49('0x8b')],'outboundBusyCallsDay':_0x171d83[_0x592f49('0xab')],'outboundCongestionCallsDay':_0x171d83[_0x592f49('0x122')],'outboundDropCallsDayACS':_0x171d83[_0x592f49('0x124')],'outboundDropCallsDayCallersExit':_0x171d83[_0x592f49('0x7d')],'outboundDropCallsDayTimeout':_0x171d83['outboundDropCallsDayTimeout'],'outboundNoAnswerCallsDay':_0x171d83[_0x592f49('0x4d')],'outboundNoSuchCallsDay':_0x171d83[_0x592f49('0x1d')],'outboundOriginateFailureCallsDay':_0x171d83[_0x592f49('0x4b')],'outboundReCallsDay':_0x171d83[_0x592f49('0xf4')],'outboundRejectCallsDay':_0x171d83[_0x592f49('0xc5')],'outboundUnknownCallsDay':_0x171d83[_0x592f49('0x43')],'outboundAbandonedCallsDay':_0x171d83[_0x592f49('0xf')],'predictiveIntervalAnsweredCalls':_0x171d83[_0x592f49('0x74')],'predictiveIntervalAvgHoldtime':_0x171d83[_0x592f49('0xb4')],'predictiveIntervalAvgTalktime':_0x171d83[_0x592f49('0x5f')],'predictiveIntervalDroppedCallsCallersExit':_0x171d83[_0x592f49('0x10e')],'predictiveIntervalDroppedCallsTimeout':_0x171d83[_0x592f49('0xa1')],'predictiveIntervalErlangCalls':_0x171d83['predictiveIntervalErlangCalls'],'predictiveIntervalErlangCallsDroppedCalls':_0x171d83[_0x592f49('0x84')],'predictiveIntervalHitRate':_0x171d83[_0x592f49('0x6c')],'predictiveIntervalMultiplicativeFactor':_0x171d83[_0x592f49('0x23')],'predictiveIntervalPauses':_0x171d83['predictiveIntervalPauses'],'predictiveIntervalAvailable':_0x171d83['predictiveIntervalAvailable'],'predictiveIntervalTotalCalls':_0x171d83[_0x592f49('0x4a')],'message':_0x171d83[_0x592f49('0x138')],'originated':_0x171d83[_0x592f49('0x4e')],'erlangCalls':_0x171d83[_0x592f49('0x81')],'erlangCallToSecond':_0x171d83['erlangCallToSecond'],'erlangAbandonmentRate':_0x171d83[_0x592f49('0x90')],'erlangBusyFactor':_0x171d83[_0x592f49('0xa4')],'startPredictive':_0x171d83['startPredictive'],'startProgressive':_0x171d83[_0x592f49('0xa3')]};_0x171d83[_0x592f49('0x79')]&&(_0x404fa3[_0x592f49('0x79')]={'id':_0x171d83[_0x592f49('0x79')]['id'],'name':_0x171d83[_0x592f49('0x79')]['name'],'active':_0x171d83[_0x592f49('0x79')][_0x592f49('0xe7')],'callerid':_0x171d83['Trunk']['callerid']});_0x171d83[_0x592f49('0x117')]&&(_0x404fa3[_0x592f49('0x117')]={'id':_0x171d83['Interval']['id'],'name':_0x171d83[_0x592f49('0x117')][_0x592f49('0x95')]});const _0x45671f=md5(JSON['stringify'](_0x404fa3));_0x171d83[_0x592f49('0x104')]!==_0x45671f&&(_0x171d83['md5']=_0x45671f,emit(util[_0x592f49('0xdf')](_0x592f49('0x5d'),_0x404fa3[_0x592f49('0x95')]),'voice_queue:save',_0x404fa3));}}function emitVoiceQueueChannelRemove(_0x3b9762){const _0x3566a5=_0x59744b;logger[_0x3566a5('0xbe')](_0x3566a5('0xd4'),JSON[_0x3566a5('0xe1')](_0x3b9762)),emit(util[_0x3566a5('0xdf')](_0x3566a5('0x5d'),_0x3b9762[_0x3566a5('0x95')]),_0x3566a5('0x36'),_0x3b9762);}function notSendMessagesQueue(_0x27c5df){const _0x40cb6a=_0x59744b;_0x27c5df[_0x40cb6a('0x7c')]&&(_0x27c5df[_0x40cb6a('0x4e')]===0x0&&_0x27c5df[_0x40cb6a('0x11a')]===0x0?(_0x27c5df['sendMessageOneNotActive']=![],_0x27c5df['available']=0x0,_0x27c5df[_0x40cb6a('0x66')]=0x0,_0x27c5df['message']=_0x40cb6a('0xc8'),ut[_0x40cb6a('0xec')]('[CampaignPreview]\x20Campaign\x20Queue:\x20',_0x27c5df[_0x40cb6a('0x95')]+'\x20is\x20not\x20active')):(_0x27c5df[_0x40cb6a('0x138')]='IS_DISACTIVED',ut[_0x40cb6a('0xec')](_0x40cb6a('0x9f'),_0x27c5df[_0x40cb6a('0x95')]+_0x40cb6a('0x8a'))),emitCampaignPreview(_0x27c5df));}Preview[_0x59744b('0x22')][_0x59744b('0xeb')]=function(){const _0x1f7bb8=this;setInterval(function(){const _0x165a54=a1088_0x1f2a;_0x1f7bb8[_0x165a54('0xc7')]();},0x7cf);},Preview[_0x59744b('0x22')][_0x59744b('0xc7')]=function(){const _0x3531b2=_0x59744b,_0x423454=this[_0x3531b2('0x12f')];this['clockClearZombieChannels']+=0x1;for(const _0x491261 in _0x423454){typeof _0x423454[_0x491261]!=='undefined'&&(_0x423454[_0x491261][_0x3531b2('0x92')]===_0x3531b2('0xea')||_0x423454[_0x491261]['dialMethod']===_0x3531b2('0x41'))&&_0x423454[_0x491261]['type']==='outbound'&&(this[_0x3531b2('0x54')]>0x7&&(this['clockClearZombieChannels']=0x0,this[_0x3531b2('0xc')]())),typeof _0x423454[_0x491261]!==_0x3531b2('0x37')&&_0x423454[_0x491261][_0x3531b2('0x92')]==='preview'&&_0x423454[_0x491261][_0x3531b2('0x11d')]===_0x3531b2('0x45')&&(_0x423454[_0x491261]['dialActive']?(this['setMessage'](_0x423454[_0x491261]),this[_0x3531b2('0x97')](_0x423454[_0x491261])):notSendMessagesQueue(_0x423454[_0x491261]));}},Preview[_0x59744b('0x22')][_0x59744b('0x8')]=function(_0x571a77){const _0x3c97e4=_0x59744b,_0x5dd932=this;this['sequence'][_0x3c97e4('0xc9')](function(){const _0x1ddf1a=_0x3c97e4;if(!_['isNil'](_0x5dd932[_0x1ddf1a('0x72')][_0x571a77]))return loggerAction[_0x1ddf1a('0xbe')](_0x1ddf1a('0x65'),_0x571a77,_0x1ddf1a('0x11c'),_0x5dd932[_0x1ddf1a('0x72')][_0x571a77][_0x1ddf1a('0x91')],_0x1ddf1a('0xa'),JSON[_0x1ddf1a('0xe1')](_0x5dd932['campaignsPreview'][_0x5dd932['actions'][_0x571a77]['queue']][_0x1ddf1a('0x4e')]),_0x1ddf1a('0xaa'),JSON['stringify'](_0x5dd932[_0x1ddf1a('0x12f')][_0x5dd932[_0x1ddf1a('0x72')][_0x571a77][_0x1ddf1a('0x91')]]['pTalking']),JSON[_0x1ddf1a('0xe1')](_0x5dd932[_0x1ddf1a('0x72')][_0x571a77]['dialAnswer']),JSON[_0x1ddf1a('0xe1')](_[_0x1ddf1a('0x1')](_0x5dd932[_0x1ddf1a('0x72')][_0x571a77],[_0x1ddf1a('0x2b'),'UserId',_0x1ddf1a('0x26'),_0x1ddf1a('0x48')]))),ami[_0x1ddf1a('0xe8')]({'action':_0x1ddf1a('0x12e'),'channel':_0x5dd932[_0x1ddf1a('0x72')][_0x571a77]['channel']})['catch'](function(_0x516f33){const _0x895ee7=_0x1ddf1a;_0x516f33['message']===_0x895ee7('0xa8')&&setTimeout(function(){const _0x56b916=_0x895ee7;_0x5dd932[_0x56b916('0x72')][_0x571a77]&&(ut[_0x56b916('0x2c')](_0x5dd932[_0x56b916('0x12f')][_0x5dd932['actions'][_0x571a77][_0x56b916('0x91')]],'[clearZombieChannel]'),_0x5dd932[_0x56b916('0x72')][_0x571a77][_0x56b916('0x2e')]===!![]&&(ut[_0x56b916('0x131')](_0x5dd932[_0x56b916('0x12f')][_0x5dd932[_0x56b916('0x72')][_0x571a77]['queue']],'[clearZombieChannel]'),ut[_0x56b916('0xe9')]('[Dialer][checkChannel][pTalking][Preview]'+_0x571a77,_0x5dd932[_0x56b916('0x72')][_0x571a77][_0x56b916('0x91')])),ut[_0x56b916('0xe9')](_0x56b916('0x115')+_0x571a77,_0x5dd932['actions'][_0x571a77][_0x56b916('0x91')]),delete _0x5dd932[_0x56b916('0x72')][_0x571a77]);},0x2328);});});},Preview[_0x59744b('0x22')][_0x59744b('0xc')]=function(){const _0x554c8b=_0x59744b,_0x5cb814=this;loggerAction['info'](_0x554c8b('0x34'),_[_0x554c8b('0xf9')](this[_0x554c8b('0x72')]));for(const _0x3bf4e7 in this[_0x554c8b('0x72')]){typeof _0x5cb814['actions'][_0x3bf4e7]!==_0x554c8b('0x37')&&_0x5cb814[_0x554c8b('0x8')](_0x3bf4e7);}},Preview[_0x59744b('0x22')]['recallMe']=function(_0x3c3663){const _0x2909af=_0x59744b,_0x577b8b=this;rpcDb[_0x2909af('0x12c')](_0x3c3663['id'],ut[_0x2909af('0xa5')](this[_0x2909af('0x87')]))[_0x2909af('0x55')](function(_0x1a0b9f){const _0x1fc691=_0x2909af;if(!_['isNil'](_0x1a0b9f))for(let _0x1f2de3=0x0;_0x1f2de3<_0x1a0b9f[_0x1fc691('0x12d')];_0x1f2de3+=0x1){if(ut[_0x1fc691('0x8c')](_0x1a0b9f[_0x1f2de3][_0x1fc691('0xa2')])<_0x3c3663[_0x1fc691('0x1b')]*0x3c)_0x1a0b9f[_0x1f2de3]['Agent']&&!_0x1a0b9f[_0x1f2de3]['Agent'][_0x1fc691('0x7e')]?_0x577b8b[_0x1fc691('0x7')](_0x1a0b9f[_0x1f2de3]['id'])[_0x1fc691('0x55')](ut[_0x1fc691('0x3c')](_0x1fc691('0x71')))[_0x1fc691('0x129')](ut[_0x1fc691('0x3c')](_0x1fc691('0x71'))):rpcDb[_0x1fc691('0x11e')](_0x1a0b9f[_0x1f2de3]['id']);else{const _0x1ee303=new Action(_0x1a0b9f[_0x1f2de3],_0x3c3663);_0x1ee303[_0x1fc691('0x9c')]=moment()[_0x1fc691('0xdf')]('YYYY-MM-DD\x20HH:mm:ss'),_0x3c3663[_0x1fc691('0xf4')]+=0x1,ut[_0x1fc691('0xb5')](_0x1ee303,0x17,'RecallInQueue'),_0x3c3663[_0x1fc691('0x130')]?(rpcDb[_0x1fc691('0xff')](ut[_0x1fc691('0x69')](_0x1a0b9f[_0x1f2de3])),rpcDb['createCustomerHistory'](_0x1ee303,_0x1fc691('0xa9'))):(ut['logCustomer'](_0x1ee303,0x16,_0x1fc691('0xb2')),rpcDb[_0x1fc691('0x9b')](_0x1ee303,_0x1fc691('0x4f')),rpcDb[_0x1fc691('0x3e')](_0x1ee303,_0x1fc691('0x4f')));}}})[_0x2909af('0x129')](ut[_0x2909af('0x3c')](_0x2909af('0x1f')));},Preview[_0x59744b('0x22')][_0x59744b('0xd8')]=function(_0x12579b){const _0x5664e4=_0x59744b;_0x12579b[_0x5664e4('0x7c')]=!![];if(ut[_0x5664e4('0xce')](_0x12579b['loggedIn']))_0x12579b[_0x5664e4('0x138')]=_0x5664e4('0x13');else{if(!ut['isActive'](_0x12579b[_0x5664e4('0x2')]))_0x12579b[_0x5664e4('0x138')]=_0x5664e4('0xc8');else!this['isTrunkReachable'](_0x12579b[_0x5664e4('0x79')])?!this[_0x5664e4('0x2f')](_0x12579b[_0x5664e4('0x99')])?_0x12579b[_0x5664e4('0x138')]=_0x5664e4('0x57'):_0x12579b[_0x5664e4('0x138')]='ACTIVE':_0x12579b[_0x5664e4('0x138')]=_0x5664e4('0xd6');}emitCampaignPreview(_0x12579b);},Preview[_0x59744b('0x22')][_0x59744b('0x6')]=function(_0x20f13d,_0x543afd,_0x24cd85){const _0x57aef0=_0x59744b,_0x348dac=this['actions'][_0x543afd],_0x2939d3=this[_0x57aef0('0x12f')][_0x348dac[_0x57aef0('0x91')]];let _0x238925;if(_0x2939d3){switch(_0x24cd85){case'1':_0x2939d3['outboundNoSuchCallsDay']+=0x1,_0x348dac[_0x57aef0('0x9a')]+=0x1,_0x348dac['countglobal']=ut[_0x57aef0('0xd5')](_0x348dac),ut[_0x57aef0('0xb5')](_0x348dac,0x0,_0x57aef0('0x19')),ami[_0x57aef0('0xc3')](_0x57aef0('0x25'),ut[_0x57aef0('0x4')](_0x348dac,_0x57aef0('0x12a'))),rpcDb['createCustomerHistory'](_0x348dac,_0x57aef0('0x134'));ut['totalGlobal'](_0x348dac)>=_0x2939d3[_0x57aef0('0xf8')]?(_0x238925=ut['cloneAction'](_0x348dac,0xf,_0x57aef0('0xd9')),rpcDb[_0x57aef0('0x3e')](_0x238925,'[callProgressDetectingCustomer][logNoSuchGlobal]')):_0x348dac['countnosuchnumberretry']>=_0x2939d3[_0x57aef0('0x102')]?rpcDb[_0x57aef0('0x3e')](_0x348dac,'[callProgressDetectingCustomer][logNoSuchGlobal]'):rpcDb['rescheduleContact'](ut['scheduledAt'](_0x348dac,_0x57aef0('0x9a'),_0x2939d3[_0x57aef0('0xf7')]),_0x348dac[_0x57aef0('0x51')],_0x348dac[_0x57aef0('0x121')]);delete this[_0x57aef0('0x72')][_0x20f13d[_0x57aef0('0xd0')]];break;case _0x57aef0('0xef'):{const _0x396a66=moment()[_0x57aef0('0xdf')](_0x57aef0('0x11b'));_0x348dac[_0x57aef0('0x118')]=_0x396a66,_0x348dac['answertime']=_0x396a66,_0x348dac[_0x57aef0('0x2e')]=!![],_0x2939d3[_0x57aef0('0x11a')]+=0x1,logger[_0x57aef0('0xbe')](_0x57aef0('0xf5'),_0x348dac[_0x57aef0('0xc6')],'\x20Queue',_0x2939d3[_0x57aef0('0x95')],'pTalking:\x20',_0x2939d3['pTalking']),ami['emit']('custom:agentconnect',ut[_0x57aef0('0x4')](_0x348dac,_0x57aef0('0xb3'))),_0x2939d3[_0x57aef0('0xaf')]&&ami['emit'](_0x57aef0('0x5c'),ut[_0x57aef0('0x14')](_0x348dac));}break;case'16':ami['emit'](_0x57aef0('0xe6'),ut[_0x57aef0('0x4')](_0x348dac,_0x57aef0('0xb0'))),emitVoiceQueueChannelRemove(ut['buildObj'](_0x348dac,_0x57aef0('0xb0'))),_0x2939d3[_0x57aef0('0xbf')]+=0x1,_0x2939d3[_0x57aef0('0x31')]+=0x1,_0x2939d3['answered']+=0x1,ut[_0x57aef0('0x131')](_0x2939d3,'[16]'),_0x348dac[_0x57aef0('0xae')]=ut['totalGlobal'](_0x348dac),ut[_0x57aef0('0xb5')](_0x348dac,0x4,'Answer'),rpcDb[_0x57aef0('0x9b')](_0x348dac,_0x57aef0('0x28')),rpcDb[_0x57aef0('0x3e')](_0x348dac,_0x57aef0('0xf3')),rpcDb[_0x57aef0('0x112')](_0x348dac),_0x2939d3[_0x57aef0('0xad')]+=_0x348dac[_0x57aef0('0xc4')],_0x2939d3['sumBillable']+=_0x348dac['talktime'],logger[_0x57aef0('0xbe')](_0x57aef0('0x82'),_0x348dac[_0x57aef0('0xc6')],_0x57aef0('0x8e'),_0x2939d3['name'],'pTalking:\x20',_0x2939d3['pTalking']),delete this[_0x57aef0('0x72')][_0x20f13d[_0x57aef0('0xd0')]];break;case _0x57aef0('0xb9'):_0x2939d3['outboundBusyCallsDay']+=0x1,_0x348dac['countbusyretry']+=0x1,_0x348dac[_0x57aef0('0xae')]=ut[_0x57aef0('0xd5')](_0x348dac),ut['logCustomer'](_0x348dac,0x5,_0x57aef0('0x50')),ami['emit'](_0x57aef0('0x6b'),ut[_0x57aef0('0x4')](_0x348dac,_0x57aef0('0x9d'))),rpcDb[_0x57aef0('0x9b')](_0x348dac,_0x57aef0('0xb'));ut[_0x57aef0('0xd5')](_0x348dac)>=_0x2939d3[_0x57aef0('0xf8')]?(_0x238925=ut['cloneAction'](_0x348dac,0xf,'Global'),rpcDb['createCustomerFinal'](_0x238925,_0x57aef0('0xde'))):_0x348dac['countbusyretry']>=_0x2939d3[_0x57aef0('0x6f')]?rpcDb[_0x57aef0('0x3e')](_0x348dac,_0x57aef0('0xb')):rpcDb[_0x57aef0('0x80')](ut[_0x57aef0('0x8f')](_0x348dac,'countbusyretry',_0x2939d3['dialBusyRetryFrequency']),_0x348dac[_0x57aef0('0x51')],_0x348dac[_0x57aef0('0x121')]);break;case _0x57aef0('0x20'):_0x2939d3['outboundNoAnswerCallsDay']+=0x1,_0x348dac[_0x57aef0('0xe2')]+=0x1,_0x348dac[_0x57aef0('0xae')]=ut[_0x57aef0('0xd5')](_0x348dac),ut[_0x57aef0('0xb5')](_0x348dac,0x3,_0x57aef0('0xd2')),ami[_0x57aef0('0xc3')]('custom:agentnoanswer',ut[_0x57aef0('0x4')](_0x348dac,_0x57aef0('0x132'))),rpcDb[_0x57aef0('0x9b')](_0x348dac,_0x57aef0('0xf1'));ut[_0x57aef0('0xd5')](_0x348dac)>=_0x2939d3[_0x57aef0('0xf8')]?(_0x238925=ut[_0x57aef0('0xf2')](_0x348dac,0xf,'Global'),rpcDb[_0x57aef0('0x3e')](_0x238925,_0x57aef0('0x93'))):_0x348dac[_0x57aef0('0xe2')]>=_0x2939d3['dialNoAnswerMaxRetry']?rpcDb[_0x57aef0('0x3e')](_0x348dac,_0x57aef0('0xf1')):rpcDb[_0x57aef0('0x80')](ut[_0x57aef0('0x8f')](_0x348dac,_0x57aef0('0xe2'),_0x2939d3[_0x57aef0('0xf0')]),_0x348dac['unlockAgent'],_0x348dac[_0x57aef0('0x121')]);break;case _0x57aef0('0xac'):_0x2939d3[_0x57aef0('0x122')]+=0x1,_0x348dac[_0x57aef0('0xfd')]+=0x1,_0x348dac[_0x57aef0('0xae')]=ut[_0x57aef0('0xd5')](_0x348dac),ut[_0x57aef0('0xb5')](_0x348dac,0x8,_0x57aef0('0xfb')),ami[_0x57aef0('0xc3')](_0x57aef0('0xbb'),ut[_0x57aef0('0x4')](_0x348dac,'congestion')),rpcDb[_0x57aef0('0x9b')](_0x348dac,_0x57aef0('0xcd'));ut[_0x57aef0('0xd5')](_0x348dac)>=_0x2939d3[_0x57aef0('0xf8')]?(_0x238925=ut[_0x57aef0('0xf2')](_0x348dac,0xf,_0x57aef0('0xd9')),rpcDb[_0x57aef0('0x3e')](_0x238925,_0x57aef0('0x16'))):_0x348dac[_0x57aef0('0xfd')]>=_0x2939d3['dialCongestionMaxRetry']?rpcDb[_0x57aef0('0x3e')](_0x348dac,_0x57aef0('0xcd')):rpcDb[_0x57aef0('0x80')](ut[_0x57aef0('0x8f')](_0x348dac,'countcongestionretry',_0x2939d3['dialBusyRetryFrequency']),_0x348dac['unlockAgent'],_0x348dac[_0x57aef0('0x121')]);break;case _0x57aef0('0x83'):_0x2939d3[_0x57aef0('0xc5')]+=0x1,_0x348dac[_0x57aef0('0x126')]+=0x1,_0x348dac[_0x57aef0('0xae')]=ut[_0x57aef0('0xd5')](_0x348dac),ut['logCustomer'](_0x348dac,0x14,_0x57aef0('0x3a')),ami[_0x57aef0('0xc3')]('custom:agentreject',ut['buildObj'](_0x348dac,'agentreject')),rpcDb[_0x57aef0('0x9b')](_0x348dac,_0x57aef0('0x111'));ut[_0x57aef0('0xd5')](_0x348dac)>=_0x2939d3[_0x57aef0('0xf8')]?(_0x238925=ut[_0x57aef0('0xf2')](_0x348dac,0x14,'AgentReject'),rpcDb[_0x57aef0('0x3e')](_0x238925,_0x57aef0('0x107'))):_0x348dac[_0x57aef0('0x126')]>=_0x2939d3['dialAgentRejectMaxRetry']?rpcDb[_0x57aef0('0x3e')](_0x348dac,_0x57aef0('0x107')):rpcDb['rescheduleContact'](ut[_0x57aef0('0x8f')](_0x348dac,'countagentrejectretry',_0x2939d3[_0x57aef0('0x5')]),_0x348dac[_0x57aef0('0x51')],_0x348dac['activeContact']);break;case'ABANDONED':_0x2939d3['outboundAbandonedCallsDay']+=0x1,_0x348dac['countabandonedretry']+=0x1,_0x348dac[_0x57aef0('0xae')]=ut[_0x57aef0('0xd5')](_0x348dac),ut[_0x57aef0('0xb5')](_0x348dac,0xb,_0x57aef0('0x56')),rpcDb[_0x57aef0('0x9b')](_0x348dac,_0x57aef0('0x86'));ut[_0x57aef0('0xd5')](_0x348dac)>=_0x2939d3['dialGlobalMaxRetry']?(_0x238925=ut[_0x57aef0('0xf2')](_0x348dac,0xf,_0x57aef0('0xd9')),rpcDb[_0x57aef0('0x3e')](_0x238925,'[callProgressDetectingCustomer][logAbandoned]')):_0x348dac[_0x57aef0('0x113')]>=_0x2939d3[_0x57aef0('0xe')]?rpcDb['createCustomerFinal'](_0x348dac,_0x57aef0('0x86')):rpcDb[_0x57aef0('0x80')](ut[_0x57aef0('0x8f')](_0x348dac,'countabandonedretry',_0x2939d3[_0x57aef0('0x12b')]),_0x348dac[_0x57aef0('0x51')],_0x348dac[_0x57aef0('0x121')]);break;default:_0x348dac[_0x57aef0('0x2e')]&&(ut[_0x57aef0('0x131')](_0x2939d3,_0x57aef0('0x78')),ut[_0x57aef0('0xe9')](_0x57aef0('0x12')+_0x2939d3[_0x57aef0('0x95')],_0x20f13d));_0x2939d3['outboundUnknownCallsDay']+=0x1,_0x348dac['countglobal']=ut[_0x57aef0('0xd5')](_0x348dac),ut[_0x57aef0('0xb5')](_0x348dac,0xc,_0x20f13d[_0x57aef0('0xee')]||_0x20f13d['dialstatus']),rpcDb['createCustomerHistory'](_0x348dac,_0x57aef0('0x62'));ut[_0x57aef0('0xd5')](_0x348dac)>=_0x2939d3['dialGlobalMaxRetry']?(_0x238925=ut[_0x57aef0('0xf2')](_0x348dac,0xf,_0x57aef0('0xd9')),rpcDb['createCustomerFinal'](_0x238925,_0x57aef0('0x21'))):rpcDb[_0x57aef0('0x3e')](_0x348dac,_0x57aef0('0x21'));delete this['actions'][_0x20f13d['linkedid']];}!(_0x348dac[_0x57aef0('0x2e')]&&_0x24cd85==='16')&&(ut[_0x57aef0('0x2c')](_0x2939d3,_0x57aef0('0x24')),logger[_0x57aef0('0xbe')](_0x57aef0('0x108'),_0x348dac[_0x57aef0('0xc6')],_0x57aef0('0x8e'),_0x2939d3[_0x57aef0('0x95')],_0x57aef0('0xa'),_0x2939d3[_0x57aef0('0x4e')])),_0x24cd85!==_0x57aef0('0xef')&&(delete this[_0x57aef0('0x72')][_0x20f13d[_0x57aef0('0xd0')]],delete this[_0x57aef0('0x72')][_0x20f13d[_0x57aef0('0x35')]]);}},Preview[_0x59744b('0x22')][_0x59744b('0x77')]=function(_0x2f685d,_0x42705a,_0x27d723){const _0x15c520=_0x59744b;if(_[_0x15c520('0x101')](_0x42705a)&&_0x15c520('0xc2')!==typeof _0x42705a)return;if(_[_0x15c520('0x101')](_0x27d723)&&'object'!==typeof _0x27d723)return;switch(_0x27d723['reason']){case'0':ut[_0x15c520('0xdd')](_0x2f685d,0x0,_0x15c520('0x19')),rpcDb[_0x15c520('0x61')](_0x2f685d,_0x15c520('0x1a'));break;case'3':ut[_0x15c520('0xdd')](_0x2f685d,0x3,_0x15c520('0xd2')),rpcDb[_0x15c520('0x61')](_0x2f685d,_0x15c520('0x11'));break;case'5':ut['logAgent'](_0x2f685d,0x5,_0x15c520('0x50')),rpcDb[_0x15c520('0x61')](_0x2f685d,_0x15c520('0xfe'));break;case'8':ut[_0x15c520('0xdd')](_0x2f685d,0x8,_0x15c520('0xfb')),rpcDb[_0x15c520('0x61')](_0x2f685d,'[callProgressDetectingAgent][logCongestion]');break;case'22':ut[_0x15c520('0xdd')](_0x2f685d,0x16,_0x15c520('0xc1')),rpcDb[_0x15c520('0x61')](_0x2f685d,_0x15c520('0x103'));break;default:ut['logAgent'](_0x2f685d,0xc,_0x27d723['reason']),rpcDb[_0x15c520('0x61')](_0x2f685d,_0x15c520('0x10b'));}ut[_0x15c520('0x2c')](_0x42705a,_0x15c520('0x136')),logger[_0x15c520('0xbe')]('[originated][decrement][callProgressDetectingAgent]',_0x2f685d[_0x15c520('0xc6')],'\x20Queue',_0x42705a['name'],_0x15c520('0xa'),_0x42705a['originated']),delete this[_0x15c520('0x72')][_0x2f685d[_0x15c520('0xc6')]];},Preview[_0x59744b('0x22')][_0x59744b('0x128')]=function(_0x22f839,_0x373697,_0x8dc9e5,_0x21692f,_0x18f800){const _0x285d3f=this;return new Promise(function(_0x40bc1e,_0x5eac3d){const _0x3cca69=a1088_0x1f2a;if(_[_0x3cca69('0x67')](_0x373697)||_[_0x3cca69('0x67')](_0x373697['Contact'])||_[_0x3cca69('0x67')](_0x373697[_0x3cca69('0xd7')][_0x3cca69('0x47')])||_[_0x3cca69('0x67')](_0x373697[_0x3cca69('0x26')])){_0x5eac3d(ut[_0x3cca69('0x138')](_0x3cca69('0x4c'),_0x21692f,_0x18f800));return;}const _0x22274d=uuid['v4'](),_0x2b6abe=_0x285d3f['campaignsPreview'][_0x373697['Queue'][_0x3cca69('0x95')]],_0xc0424f=_0x8dc9e5?_0x285d3f[_0x3cca69('0x87')][_0x8dc9e5]['id']:undefined;_0x285d3f[_0x3cca69('0x72')][_0x22274d]=new Action(_0x373697,_0x2b6abe,_0x22274d,_0x8dc9e5,_0xc0424f);const _0x52c375=_0x285d3f[_0x3cca69('0x72')][_0x22274d];_0x52c375['unlockAgent']=_0x21692f,_0x52c375['activeContact']=_0x18f800,_0x52c375['lookAgent']=_0x8dc9e5,_[_0x3cca69('0x1e')](_0x22f839)?_0x285d3f[_0x3cca69('0x7a')](_0x52c375,_0x2b6abe,_0x373697,_0x8dc9e5)[_0x3cca69('0x55')](function(_0x52cb8a){const _0x11e1bc=_0x3cca69;logger[_0x11e1bc('0xbe')]('[Preview][execCall][success]','Queue:\x20'+_0x52c375[_0x11e1bc('0x91')]+'\x20IdHopper:\x20'+_0x52c375[_0x11e1bc('0xdc')],JSON['stringify'](_0x52cb8a)),ami[_0x11e1bc('0xc3')](_0x11e1bc('0x60'),ut[_0x11e1bc('0x4')](_0x52c375,'called')),_0x40bc1e(ut[_0x11e1bc('0x138')](_0x11e1bc('0x5b')));})[_0x3cca69('0x129')](function(_0xf26b5e){const _0x354174=_0x3cca69;ut[_0x354174('0xec')](_0x354174('0x96'),_0xf26b5e),_0x5eac3d(ut['message'](_0x354174('0x44'),_0x21692f,_0x18f800));}):(_0x2b6abe[_0x3cca69('0x8b')]+=0x1,ut['logBlacklist'](_0x52c375),rpcDb[_0x3cca69('0x3d')](_0x52c375,'[Blacklist][error]'),delete _0x285d3f['actions'][_0x22274d],_0x5eac3d(ut[_0x3cca69('0x138')]('Contact\x20in\x20black\x20List',_0x21692f,_0x18f800)));});},Preview[_0x59744b('0x22')]['isTrunkReachable']=function(_0x963cfa){const _0x431d28=_0x59744b;return!_[_0x431d28('0x67')](_0x963cfa)&&!_[_0x431d28('0x67')](_0x963cfa['name'])&&!_[_0x431d28('0x67')](_0x963cfa[_0x431d28('0xe7')])&&_0x963cfa[_0x431d28('0xe7')]&&!_[_0x431d28('0x67')](this['trunks'][util[_0x431d28('0xdf')](_0x431d28('0x7b'),_0x963cfa[_0x431d28('0x95')])])&&!_[_0x431d28('0x67')](this[_0x431d28('0x75')][util['format'](_0x431d28('0x7b'),_0x963cfa[_0x431d28('0x95')])][_0x431d28('0x12e')])&&(this['trunks'][util[_0x431d28('0xdf')]('SIP/%s',_0x963cfa[_0x431d28('0x95')])][_0x431d28('0x12e')]==='reachable'||this['trunks'][util[_0x431d28('0xdf')](_0x431d28('0x7b'),_0x963cfa[_0x431d28('0x95')])]['status']===_0x431d28('0x15'));},Preview['prototype'][_0x59744b('0x7')]=function(_0x140581,_0x456e63){const _0x16a68b=this;return new Promise(function(_0x18a614,_0x2758a5){const _0x4c54d4=a1088_0x1f2a;_0x16a68b['execRun'](_0x140581,_0x456e63)[_0x4c54d4('0x55')](function(_0x15abf7){const _0x2a4ab8=_0x4c54d4;_0x18a614(_[_0x2a4ab8('0x1')](_0x15abf7,['message']));})['catch'](function(_0x2d6020){const _0x553c4f=_0x4c54d4;_0x2d6020['unlock']&&rpcDb[_0x553c4f('0x137')](_0x140581),_0x2d6020[_0x553c4f('0xe7')]&&rpcDb[_0x553c4f('0x11e')](_0x140581),_0x2758a5(_[_0x553c4f('0x1')](_0x2d6020,[_0x553c4f('0x138')]));});});},Preview[_0x59744b('0x22')][_0x59744b('0x33')]=function(_0x4a2f61,_0x5bef7c){const _0x18f260=this;return new Promise(function(_0x25c34b,_0x44f566){const _0x5a6c51=a1088_0x1f2a;let _0x2ae86b,_0x4749ab;rpcDb[_0x5a6c51('0xe0')](_0x4a2f61)[_0x5a6c51('0x55')](function(_0x28f56a){const _0x2a4818=_0x5a6c51;!_[_0x2a4818('0x67')](_0x28f56a[0x0])&&(_0x4749ab=_0x28f56a[0x0][_0x2a4818('0x46')]?![]:!![],_0x2ae86b=_0x28f56a[0x0][_0x2a4818('0x46')]?!![]:![],_0x2ae86b=_0x5bef7c?!![]:_0x2ae86b);const _0x216136=_0x18f260[_0x2a4818('0x3')](_0x28f56a);_0x216136[_0x2a4818('0xa7')]?rpcDb['checkIsBlackList'](_['pick'](_0x28f56a[0x0],[_0x2a4818('0x26'),_0x2a4818('0x30')]))[_0x2a4818('0x55')](function(_0xd77e68){const _0x3784ed=_0x2a4818;_0x18f260[_0x3784ed('0x128')](_0xd77e68,_0x28f56a[0x0],_0x5bef7c,_0x4749ab,_0x2ae86b)[_0x3784ed('0x55')](function(_0x592414){_0x25c34b(_0x592414);})['catch'](function(_0x336236){_0x44f566(_0x336236);});})[_0x2a4818('0x129')](function(_0x9fa16a){const _0x37f7ff=_0x2a4818;ut[_0x37f7ff('0xec')](_0x37f7ff('0xa0'),_0x9fa16a),_0x44f566(ut[_0x37f7ff('0x138')]('Call\x20unsuccessful',_0x4749ab,_0x2ae86b));}):_0x44f566(ut[_0x2a4818('0x138')](_0x216136[_0x2a4818('0x138')],_0x4749ab,_0x2ae86b));})[_0x5a6c51('0x129')](function(_0x4ba0ed){const _0x39344d=_0x5a6c51;ut[_0x39344d('0xec')](_0x39344d('0x52'),_0x4ba0ed),_0x44f566(ut[_0x39344d('0x138')](_0x39344d('0x10c'),![],!![]));});});},Preview[_0x59744b('0x22')][_0x59744b('0x3')]=function(_0x1c72cf){const _0x6c87cc=_0x59744b;if(_[_0x6c87cc('0x67')](_0x1c72cf)||_[_0x6c87cc('0x1e')](_0x1c72cf)||!_[_0x6c87cc('0x67')](_0x1c72cf[0x0][_0x6c87cc('0xcc')])&&_[_0x6c87cc('0x67')](_0x1c72cf[0x0][_0x6c87cc('0xcc')][_0x6c87cc('0x95')]))return ut[_0x6c87cc('0xec')](_0x6c87cc('0xa6'),_0x1c72cf),{'isValid':![],'message':'Empty\x20Contact'};const _0x927836=this[_0x6c87cc('0x12f')][_0x1c72cf[0x0][_0x6c87cc('0x11c')][_0x6c87cc('0x95')]];_0x927836[_0x6c87cc('0x138')]='ACTIVE';if(_[_0x6c87cc('0x67')](_0x927836))return ut['logger'](_0x6c87cc('0xfc'),_0x927836),{'isValid':![],'message':_0x6c87cc('0x49')};if(!this[_0x6c87cc('0x2f')](_0x927836['Trunk'])){ut[_0x6c87cc('0xec')](_0x6c87cc('0x135'),_0x6c87cc('0xf6')+_0x927836[_0x6c87cc('0x95')]+_0x6c87cc('0x38'));if(!this['isTrunkReachable'](_0x927836[_0x6c87cc('0x99')]))return ut[_0x6c87cc('0xec')](_0x6c87cc('0x135'),_0x927836[_0x6c87cc('0x95')]+'\x20Trunk\x20Backup\x20is\x20not\x20active'),{'isValid':![],'message':'Trunk\x20not\x20work'};}if(!ut[_0x6c87cc('0x139')](_0x927836[_0x6c87cc('0x2')]))return ut[_0x6c87cc('0xec')](_0x6c87cc('0xca'),_0x927836[_0x6c87cc('0x95')]+'\x20Not\x20Active'),{'isValid':![],'message':'campaign\x20Name:\x20'+_0x927836[_0x6c87cc('0x95')]+_0x6c87cc('0x17')};return{'isValid':!![],'message':'Is\x20Valid'};},Preview[_0x59744b('0x22')][_0x59744b('0x7a')]=function(_0x3d0f48,_0x1d86ec,_0x2630c5,_0x274ffe){const _0x208f0d=this;return new Promise(function(_0x56f45c,_0x15480c){const _0x26608a=a1088_0x1f2a,_0xbac97f=_0x3d0f48[_0x26608a('0xc6')],_0x213099=_0x208f0d[_0x26608a('0x2f')](_0x1d86ec[_0x26608a('0x79')])?util[_0x26608a('0xdf')](_0x26608a('0xda'),_0x1d86ec[_0x26608a('0x79')][_0x26608a('0x95')],_[_0x26608a('0x67')](_0x1d86ec[_0x26608a('0x2a')])?'':_0x1d86ec['dialPrefix']['trim']()||'',_0x1d86ec['dialCutDigit']>0x0?_0x2630c5['Contact']['phone'][_0x26608a('0x76')](_0x1d86ec['dialCutDigit']):_0x2630c5[_0x26608a('0xd7')][_0x26608a('0x47')]):util[_0x26608a('0xdf')](_0x26608a('0xda'),_['isNil'](_0x1d86ec[_0x26608a('0x99')])?_0x1d86ec[_0x26608a('0x79')][_0x26608a('0x95')]:_0x1d86ec[_0x26608a('0x99')][_0x26608a('0x95')],_[_0x26608a('0x67')](_0x1d86ec[_0x26608a('0x2a')])?'':_0x1d86ec[_0x26608a('0x2a')][_0x26608a('0x27')]()||'',_0x1d86ec[_0x26608a('0x88')]>0x0?_0x2630c5[_0x26608a('0xd7')][_0x26608a('0x47')][_0x26608a('0x76')](_0x1d86ec[_0x26608a('0x88')]):_0x2630c5[_0x26608a('0xd7')]['phone']),_0x2746b9=_0x208f0d[_0x26608a('0x2f')](_0x1d86ec[_0x26608a('0x79')])?ut[_0x26608a('0x6e')](_0x1d86ec['Trunk'][_0x26608a('0x9e')],_0x1d86ec[_0x26608a('0xbd')],_0x1d86ec['dialRandomLastDigitCallerIdNumber']>0x0?ut[_0x26608a('0xcf')](_0x1d86ec[_0x26608a('0xed')],_0x1d86ec[_0x26608a('0x114')]):_0x1d86ec[_0x26608a('0xed')]):ut[_0x26608a('0x6e')](_['isNil'](_0x1d86ec[_0x26608a('0x99')])?_0x1d86ec['Trunk'][_0x26608a('0x9e')]:_0x1d86ec[_0x26608a('0x99')][_0x26608a('0x9e')],_0x1d86ec['dialOriginateCallerIdName'],_0x1d86ec[_0x26608a('0x114')]>0x0?ut['getCallerIdRandom'](_0x1d86ec[_0x26608a('0xed')],_0x1d86ec['dialRandomLastDigitCallerIdNumber']):_0x1d86ec[_0x26608a('0xed')]);_0x2746b9&&(_0x3d0f48[_0x26608a('0x116')]=ut[_0x26608a('0xb6')](_0x2746b9),_0x3d0f48['originatecalleridnum']=ut['extractCalleridNumber'](_0x2746b9));const _0xf3808e=ut[_0x26608a('0x106')](_0x1d86ec,_0x2630c5,_0x213099,_0x2746b9,_0xbac97f,_0x3d0f48);_[_0x26608a('0x9')](_0x3d0f48,ut[_0x26608a('0x3b')](_0xf3808e)),_0x3d0f48[_0x26608a('0x9c')]=moment()[_0x26608a('0xdf')](_0x26608a('0x11b')),ami[_0x26608a('0xe8')](ut[_0x26608a('0xe4')](_0x3d0f48,_0x1d86ec,_0xf3808e,_0x3d0f48[_0x26608a('0x121')],_0x274ffe))[_0x26608a('0x55')](function(_0x553693){const _0x4e7938=_0x26608a;_0x1d86ec[_0x4e7938('0x4e')]+=0x1,logger[_0x4e7938('0xbe')](_0x4e7938('0xd'),_0xbac97f,_0x4e7938('0x8e'),_0x1d86ec[_0x4e7938('0x95')],_0x4e7938('0xa'),_0x1d86ec[_0x4e7938('0x4e')]),_0x56f45c(_0x553693);})[_0x26608a('0x129')](function(_0x5ac2c9){const _0x129667=_0x26608a;ut['logAgent'](_0x3d0f48,0xe,_0x129667('0xb7')),rpcDb[_0x129667('0x61')](_0x3d0f48,_0x129667('0xe5')),_0x15480c(_0x5ac2c9);});});},Preview[_0x59744b('0x22')]['syncNewExten']=function(_0x102e83){const _0xc778fd=_0x59744b;this[_0xc778fd('0x72')][_0x102e83[_0xc778fd('0xd0')]]&&(this['actions'][_0x102e83[_0xc778fd('0xd0')]][_0xc778fd('0x73')]=_0x102e83['channel']);},Preview['prototype'][_0x59744b('0x94')]=function(_0x45de40){const _0x13be7a=_0x59744b,_0x44b806=this,_0x1600f2=this['actions'][_0x45de40['actionid']];if(_0x1600f2){_0x1600f2['lookAgent']&&this[_0x13be7a('0x87')][_0x1600f2[_0x13be7a('0x59')]]&&ut['logLookAgent'](_0x1600f2,this[_0x13be7a('0x87')][_0x1600f2[_0x13be7a('0x59')]][_0x13be7a('0x95')],this[_0x13be7a('0x87')][_0x1600f2['lookAgent']]['id']);const _0x398279=_[_0x13be7a('0x1c')](_0x1600f2);_0x398279['responsetime']=moment()[_0x13be7a('0xdf')](_0x13be7a('0x11b'));const _0x5dd6a2=_0x44b806[_0x13be7a('0x12f')][_0x1600f2['queue']];ut['isFailure'](_0x45de40[_0x13be7a('0xd3')])?(_0x1600f2['unlockAgent']&&rpcDb[_0x13be7a('0x137')](_0x1600f2['idContact']),_0x1600f2[_0x13be7a('0x121')]&&rpcDb[_0x13be7a('0x11e')](_0x1600f2[_0x13be7a('0xdc')]),ami[_0x13be7a('0xc3')](_0x13be7a('0xba'),ut[_0x13be7a('0x4')](_0x1600f2,'rejected')),this['callProgressDetectingAgent'](_0x398279,_0x5dd6a2,_0x45de40)):(_0x1600f2['starttime']=moment()[_0x13be7a('0xdf')](_0x13be7a('0x11b')),ut['logAgent'](_0x398279,0x4,_0x13be7a('0x5a')),rpcDb[_0x13be7a('0x61')](_0x398279,_0x13be7a('0x85')));}},Preview[_0x59744b('0x22')][_0x59744b('0x63')]=function(_0x27299c){const _0x475b5d=_0x59744b,_0x4caad6=this[_0x475b5d('0x72')][_0x27299c['linkedid']];let _0x5ebcdf;_0x4caad6&&(_0x5ebcdf=this['campaignsPreview'][_0x4caad6['queue']],logger[_0x475b5d('0xbe')](_0x475b5d('0xcb'),_0x27299c[_0x475b5d('0xd0')],'\x20Queue',_0x5ebcdf[_0x475b5d('0x95')],_0x475b5d('0xaa'),_0x5ebcdf['pTalking']));if(this[_0x475b5d('0x72')][_0x27299c['linkedid']]&&_0x27299c['linkedid']!==_0x27299c[_0x475b5d('0xc6')]){if(_0x27299c[_0x475b5d('0xdb')]==='16'&&this[_0x475b5d('0x72')][_0x27299c['linkedid']]['dialAnswer'])this['callProgressDetectingCustomer'](_0x27299c,_0x27299c[_0x475b5d('0xd0')],_0x27299c[_0x475b5d('0xdb')]);else this[_0x475b5d('0x72')][_0x27299c[_0x475b5d('0xd0')]][_0x475b5d('0x2e')]&&(logger[_0x475b5d('0xbe')](_0x475b5d('0x0'),_0x27299c[_0x475b5d('0xd0')],_0x27299c[_0x475b5d('0xdb')],_0x475b5d('0x8e'),_0x5ebcdf[_0x475b5d('0x95')],_0x475b5d('0xaa'),_0x5ebcdf[_0x475b5d('0x11a')]),this['callProgressDetectingCustomer'](_0x27299c,_0x27299c[_0x475b5d('0xd0')],_0x27299c[_0x475b5d('0xdb')]));}else{if(_0x4caad6&&_[_0x475b5d('0x67')](_0x4caad6['statedesc'])&&_0x5ebcdf['dialQueueProject']&&_0x27299c[_0x475b5d('0xd0')]===_0x27299c['uniqueid']&&_['isNil'](_0x27299c[_0x475b5d('0x39')])&&_0x27299c[_0x475b5d('0xdb')]==='16'&&_0x27299c[_0x475b5d('0x2d')]==='6'&&_[_0x475b5d('0x101')](_0x4caad6[_0x475b5d('0xb1')]))_0x4caad6[_0x475b5d('0x51')]&&rpcDb['unlockContact'](_0x4caad6[_0x475b5d('0xdc')]),_0x4caad6[_0x475b5d('0x121')]&&rpcDb['disableContact'](_0x4caad6[_0x475b5d('0xdc')]),_0x27299c[_0x475b5d('0x39')]='22',this[_0x475b5d('0x77')](_0x4caad6,_0x5ebcdf,_0x27299c);else{if(_0x4caad6&&_0x4caad6[_0x475b5d('0xb1')]){if(_0x27299c[_0x475b5d('0xdb')]==='16'&&this[_0x475b5d('0x72')][_0x27299c[_0x475b5d('0xd0')]][_0x475b5d('0x2e')])logger[_0x475b5d('0xbe')]('[syncHangup][talking][transfer]',_0x27299c[_0x475b5d('0xd0')],_0x27299c[_0x475b5d('0xdb')],_0x475b5d('0x8e'),_0x5ebcdf[_0x475b5d('0x95')],_0x475b5d('0xaa'),_0x5ebcdf['pTalking']),this[_0x475b5d('0x6')](_0x27299c,_0x27299c[_0x475b5d('0xd0')],_0x27299c[_0x475b5d('0xdb')]);else this[_0x475b5d('0x72')][_0x27299c[_0x475b5d('0xd0')]][_0x475b5d('0x2e')]&&(logger[_0x475b5d('0xbe')](_0x475b5d('0x0'),_0x27299c[_0x475b5d('0xd0')],_0x27299c['cause'],_0x475b5d('0x8e'),_0x5ebcdf[_0x475b5d('0x95')],_0x475b5d('0xaa'),_0x5ebcdf['pTalking']),this[_0x475b5d('0x6')](_0x27299c,_0x27299c[_0x475b5d('0xd0')],_0x27299c[_0x475b5d('0xdb')]));}}}},Preview[_0x59744b('0x22')][_0x59744b('0x58')]=function(_0x15017d){const _0x599673=_0x59744b;this[_0x599673('0x72')][_0x15017d['destlinkedid']]&&_0x15017d[_0x599673('0x35')]!==_0x15017d['destuniqueid']&&this[_0x599673('0x6')](_0x15017d,_0x15017d[_0x599673('0x35')],_0x15017d['dialstatus']);},Preview[_0x59744b('0x22')][_0x59744b('0x11f')]=function(_0xc32d8d){const _0x2e8933=_0x59744b;this[_0x2e8933('0x72')][_0xc32d8d[_0x2e8933('0xd0')]]&&_0xc32d8d[_0x2e8933('0xd0')]!==_0xc32d8d[_0x2e8933('0xc6')]&&!this['actions'][_0xc32d8d[_0x2e8933('0xd0')]]['dialAnswer']&&(_0xc32d8d[_0x2e8933('0xdb')]==='1'&&this[_0x2e8933('0x6')](_0xc32d8d,_0xc32d8d['linkedid'],_0xc32d8d[_0x2e8933('0xdb')]));},Preview['prototype'][_0x59744b('0xbc')]=function(_0x330584,_0x56c67f,_0x441f5e){const _0x49b3f9=_0x59744b;this[_0x49b3f9('0x72')][_0x330584]&&(_[_0x49b3f9('0x67')](this[_0x49b3f9('0x72')][_0x330584][_0x49b3f9('0x6d')])&&(this[_0x49b3f9('0x72')][_0x330584][_0x49b3f9('0x6d')]={}),this[_0x49b3f9('0x72')][_0x330584][_0x49b3f9('0x6d')][_0x56c67f]=_0x441f5e);},Preview[_0x59744b('0x22')]['syncVarSet']=function(_0x3e991a){const _0x80d5d4=_0x59744b;try{!_[_0x80d5d4('0x67')](_0x3e991a)&&(ut['filterKey'](_['keys'](_0x3e991a[_0x80d5d4('0x32')])[0x0])&&this['addVariable'](_0x3e991a[_0x80d5d4('0xc6')],_['keys'](_0x3e991a[_0x80d5d4('0x32')])[0x0],_0x3e991a[_0x80d5d4('0x110')]));}catch(_0x30ab0d){logger[_0x80d5d4('0x98')](_0x80d5d4('0x40'),util['inspect'](_0x30ab0d,{'showHidden':![],'depth':null}));}},Preview['prototype']['syncAttendedTransfer']=function(_0x54de64){const _0x499142=_0x59744b;_0x54de64&&(this[_0x499142('0x72')][_0x54de64[_0x499142('0x120')]]&&(this['actions'][_0x54de64['transfertargetlinkedid']][_0x499142('0xb1')]=!![]));},Preview[_0x59744b('0x22')]['syncBlindTransfer']=function(_0x4db690){const _0x1e137f=_0x59744b;_0x4db690&&(this[_0x1e137f('0x72')][_0x4db690[_0x1e137f('0x123')]]&&(this[_0x1e137f('0x72')][_0x4db690[_0x1e137f('0x123')]]['transfer']=!![]));},module[_0x59744b('0x119')]=Preview; \ No newline at end of file diff --git a/server/services/ami/preview/rpcDb.js b/server/services/ami/preview/rpcDb.js index 91d7b7a..d3130ed 100644 --- a/server/services/ami/preview/rpcDb.js +++ b/server/services/ami/preview/rpcDb.js @@ -1 +1 @@ -const a1088_0x37ea=['unlockContact','calleridname','membername','active','[voiceQueueReport]\x20','[activeContact]\x20','inspect','then','catch','queuecallerjoinAt','disableContact','[getContactPreview]\x20','rescheduleContactInQueue','queuecallerexitreason','util','createAgentHistory','exten','holdtime','answertime','crateCustomerReportQueue','xcally-motion-preview','[countReScheduled]\x20','moveContactManagedDialer','uniqueid','../rpc/cmHopperBlack','[GetContactRecallMe]\x20','connectedlinename','preview','createHistory','error','from-sip','../rpc/cmHopper','queue','getContactRecallMe','checkIsBlackList','../rpc/agentReportPreview','lastAssignedTo','countReScheduled','../../../config/logger','../rpc/cmHopperHistory','rescheduleContact','calleridnum','queuecallerleaveAt','create','createCustomerFinal','[moveContactManagedDialer]\x20','[rescheduleContact]\x20','type','[createHistory]\x20','resolve'];(function(_0x2a0eb9,_0x37ea53){const _0x189458=function(_0x593315){while(--_0x593315){_0x2a0eb9['push'](_0x2a0eb9['shift']());}};_0x189458(++_0x37ea53);}(a1088_0x37ea,0xe3));const a1088_0x1894=function(_0x2a0eb9,_0x37ea53){_0x2a0eb9=_0x2a0eb9-0x0;let _0x189458=a1088_0x37ea[_0x2a0eb9];return _0x189458;};const _0x2a2d52=a1088_0x1894;'use strict';const util=require(_0x2a2d52('0x25')),logger=require(_0x2a2d52('0xb'))(_0x2a2d52('0x0')),cmHopper=require(_0x2a2d52('0x4')),cmHopperHistory=require(_0x2a2d52('0xc')),cmHopperBlack=require(_0x2a2d52('0x2f')),agentReportPreview=require(_0x2a2d52('0x8')),voiceQueueReport=require('../rpc/voiceQueueReport');function loggerCatch(_0x593315){return function(_0x106861){const _0x3a8125=a1088_0x1894;logger[_0x3a8125('0x2')](_0x593315,util[_0x3a8125('0x1d')](_0x106861,{'showHidden':![],'depth':null}));};}function create(_0xc00508){const _0x37470a=_0x2a2d52;return Promise[_0x37470a('0x16')]()['then'](cmHopperHistory[_0x37470a('0x1')](_0xc00508))[_0x37470a('0x1f')](loggerCatch('[createHistory]\x20'));}function createAgent(_0x351dfb){const _0x148259=_0x2a2d52;return Promise['resolve']()['then'](agentReportPreview[_0x148259('0x1')](_0x351dfb))[_0x148259('0x1f')](loggerCatch(_0x148259('0x15')));}function moveContact(_0x24fc8a){const _0x14b826=_0x2a2d52;return Promise[_0x14b826('0x16')]()[_0x14b826('0x1e')](cmHopper[_0x14b826('0x2d')](_0x24fc8a,!![]))[_0x14b826('0x1f')](loggerCatch(_0x14b826('0x12')));}exports[_0x2a2d52('0x7')]=function(_0x2c67d6){const _0x3743df=_0x2a2d52;return Promise['resolve']()[_0x3743df('0x1e')](cmHopperBlack['checkIsBlackList'](_0x2c67d6))['catch'](loggerCatch('[checkIsBlackList]\x20'));},exports['getContactPreview']=function(_0x1307ea){const _0x15b68b=_0x2a2d52;return Promise[_0x15b68b('0x16')]()[_0x15b68b('0x1e')](cmHopper['getContactPreview'](_0x1307ea))[_0x15b68b('0x1f')](loggerCatch(_0x15b68b('0x22')));},exports[_0x2a2d52('0x1')]=function(_0x37369a,_0x2260ab){const _0x1184a5=_0x2a2d52;create(_0x37369a)[_0x1184a5('0x1f')](loggerCatch(_0x2260ab)),moveContact(_0x37369a)[_0x1184a5('0x1f')](loggerCatch(_0x2260ab));},exports[_0x2a2d52('0x26')]=function(_0x34b34b,_0x1b11ca){createAgent(_0x34b34b)['catch'](loggerCatch(_0x1b11ca));},exports['createCustomerHistory']=function(_0x446c28,_0x27ab4b){create(_0x446c28)['catch'](loggerCatch(_0x27ab4b));},exports[_0x2a2d52('0x11')]=function(_0x1ccde0,_0x7b6225){const _0x23e719=_0x2a2d52;moveContact(_0x1ccde0)[_0x23e719('0x1f')](loggerCatch(_0x7b6225));},exports[_0x2a2d52('0xd')]=function(_0x5645af,_0x58470d,_0x5a8b5d){const _0x44b3f3=_0x2a2d52;return _0x58470d&&(_0x5645af['UserId']=null),_0x5a8b5d&&(_0x5645af[_0x44b3f3('0x1a')]=![]),Promise[_0x44b3f3('0x16')]()[_0x44b3f3('0x1e')](cmHopper[_0x44b3f3('0xd')](_0x5645af))['catch'](loggerCatch(_0x44b3f3('0x13')));},exports[_0x2a2d52('0xa')]=function(_0x427504){const _0x103517=_0x2a2d52;return Promise[_0x103517('0x16')]()[_0x103517('0x1e')](cmHopper[_0x103517('0xa')](_0x427504))[_0x103517('0x1f')](loggerCatch(_0x103517('0x2c')));},exports[_0x2a2d52('0x17')]=function(_0x4a5760){const _0x29a8f4=_0x2a2d52;return Promise[_0x29a8f4('0x16')]()[_0x29a8f4('0x1e')](cmHopper[_0x29a8f4('0x17')]({'UserId':null},_0x4a5760,0x1))['catch'](loggerCatch('[unlockContact]\x20'));},exports[_0x2a2d52('0x21')]=function(_0x864eea){const _0x22587e=_0x2a2d52;return Promise[_0x22587e('0x16')]()[_0x22587e('0x1e')](cmHopper[_0x22587e('0x17')]({'active':![]},_0x864eea,0x1))[_0x22587e('0x1f')](loggerCatch(_0x22587e('0x1c')));},exports[_0x2a2d52('0x2a')]=function(_0x47b252){const _0x252ef0=_0x2a2d52,_0x2b5aa9={};return _0x2b5aa9[_0x252ef0('0x14')]=_0x47b252[_0x252ef0('0x14')],_0x2b5aa9[_0x252ef0('0x2e')]=_0x47b252[_0x252ef0('0x2e')],_0x2b5aa9[_0x252ef0('0xe')]=_0x47b252[_0x252ef0('0xe')],_0x2b5aa9[_0x252ef0('0x18')]=_0x47b252['calleridname'],_0x2b5aa9[_0x252ef0('0x5')]=_0x47b252[_0x252ef0('0x5')],_0x2b5aa9[_0x252ef0('0x20')]=_0x47b252[_0x252ef0('0x29')],_0x2b5aa9[_0x252ef0('0xf')]=_0x47b252[_0x252ef0('0x29')],_0x2b5aa9['queuecallercomplete']=0x1,_0x2b5aa9['queuecallercompleteAt']=_0x47b252['endtime'],_0x2b5aa9[_0x252ef0('0x31')]=_0x47b252[_0x252ef0('0x19')],_0x2b5aa9['context']=_0x252ef0('0x3'),_0x2b5aa9[_0x252ef0('0x27')]=_0x252ef0('0x2b'),_0x2b5aa9[_0x252ef0('0x28')]=0x0,_0x2b5aa9['assigned']=0x1,_0x2b5aa9[_0x252ef0('0x9')]=_0x47b252[_0x252ef0('0x19')],_0x2b5aa9[_0x252ef0('0x24')]='COMPLETED',Promise[_0x252ef0('0x16')]()[_0x252ef0('0x1e')](voiceQueueReport[_0x252ef0('0x10')](_0x2b5aa9))[_0x252ef0('0x1f')](loggerCatch(_0x252ef0('0x1b')));},exports[_0x2a2d52('0x6')]=function(_0x3412fe,_0x5817f1){const _0x33608f=_0x2a2d52;return Promise[_0x33608f('0x16')]()[_0x33608f('0x1e')](cmHopper[_0x33608f('0x6')](_0x3412fe,_0x5817f1))[_0x33608f('0x1f')](loggerCatch(_0x33608f('0x30')));},exports[_0x2a2d52('0x23')]=function(_0x386164){const _0x41f240=_0x2a2d52;return Promise[_0x41f240('0x16')]()[_0x41f240('0x1e')](cmHopper['rescheduleContact'](_0x386164,!![],!![]))['catch'](loggerCatch('[rescheduleContactInQueue]\x20'));}; \ No newline at end of file +const a1089_0x1b3f=['calleridnum','xcally-motion-preview','countReScheduled','../../../config/logger','active','[createHistory]\x20','../rpc/agentReportPreview','inspect','createHistory','calleridname','endtime','rescheduleContactInQueue','type','[activeContact]\x20','[unlockContact]\x20','connectedlinename','from-sip','then','holdtime','queue','membername','[GetContactRecallMe]\x20','../rpc/voiceQueueReport','uniqueid','[checkIsBlackList]\x20','queuecallercomplete','createAgentHistory','COMPLETED','checkIsBlackList','unlockContact','queuecallerjoinAt','getContactPreview','preview','[getContactPreview]\x20','moveContactManagedDialer','[voiceQueueReport]\x20','createCustomerFinal','error','rescheduleContact','[rescheduleContactInQueue]\x20','answertime','crateCustomerReportQueue','resolve','queuecallerexitreason','disableContact','getContactRecallMe','util','create','catch','[countReScheduled]\x20'];(function(_0x1c8251,_0x1b3f44){const _0x1e8227=function(_0x9294d6){while(--_0x9294d6){_0x1c8251['push'](_0x1c8251['shift']());}};_0x1e8227(++_0x1b3f44);}(a1089_0x1b3f,0xf9));const a1089_0x1e82=function(_0x1c8251,_0x1b3f44){_0x1c8251=_0x1c8251-0x0;let _0x1e8227=a1089_0x1b3f[_0x1c8251];return _0x1e8227;};const _0x1726a=a1089_0x1e82;'use strict';const util=require(_0x1726a('0x2f')),logger=require(_0x1726a('0x4'))(_0x1726a('0x21')),cmHopper=require('../rpc/cmHopper'),cmHopperHistory=require('../rpc/cmHopperHistory'),cmHopperBlack=require('../rpc/cmHopperBlack'),agentReportPreview=require(_0x1726a('0x7')),voiceQueueReport=require(_0x1726a('0x17'));function loggerCatch(_0x9294d6){return function(_0x84f7f8){const _0x5be6c2=a1089_0x1e82;logger[_0x5be6c2('0x26')](_0x9294d6,util[_0x5be6c2('0x8')](_0x84f7f8,{'showHidden':![],'depth':null}));};}function create(_0x20626a){const _0x5b4c26=_0x1726a;return Promise['resolve']()[_0x5b4c26('0x12')](cmHopperHistory['createHistory'](_0x20626a))[_0x5b4c26('0x31')](loggerCatch(_0x5b4c26('0x6')));}function createAgent(_0x182ed4){const _0x512a5f=_0x1726a;return Promise[_0x512a5f('0x2b')]()[_0x512a5f('0x12')](agentReportPreview['createHistory'](_0x182ed4))['catch'](loggerCatch(_0x512a5f('0x6')));}function moveContact(_0xb3ef9a){const _0xc023c9=_0x1726a;return Promise[_0xc023c9('0x2b')]()[_0xc023c9('0x12')](cmHopper[_0xc023c9('0x23')](_0xb3ef9a,!![]))[_0xc023c9('0x31')](loggerCatch('[moveContactManagedDialer]\x20'));}exports[_0x1726a('0x1d')]=function(_0x5da053){const _0x317693=_0x1726a;return Promise['resolve']()[_0x317693('0x12')](cmHopperBlack[_0x317693('0x1d')](_0x5da053))['catch'](loggerCatch(_0x317693('0x19')));},exports['getContactPreview']=function(_0x547f02){const _0x1790df=_0x1726a;return Promise[_0x1790df('0x2b')]()['then'](cmHopper[_0x1790df('0x20')](_0x547f02))[_0x1790df('0x31')](loggerCatch(_0x1790df('0x22')));},exports[_0x1726a('0x9')]=function(_0x37f2e9,_0x5bbc1a){const _0x2adb31=_0x1726a;create(_0x37f2e9)[_0x2adb31('0x31')](loggerCatch(_0x5bbc1a)),moveContact(_0x37f2e9)[_0x2adb31('0x31')](loggerCatch(_0x5bbc1a));},exports[_0x1726a('0x1b')]=function(_0x583f5c,_0x298514){const _0x394cac=_0x1726a;createAgent(_0x583f5c)[_0x394cac('0x31')](loggerCatch(_0x298514));},exports['createCustomerHistory']=function(_0x3503a9,_0x5a2a3e){create(_0x3503a9)['catch'](loggerCatch(_0x5a2a3e));},exports[_0x1726a('0x25')]=function(_0x16d2bd,_0x371df1){const _0x41116d=_0x1726a;moveContact(_0x16d2bd)[_0x41116d('0x31')](loggerCatch(_0x371df1));},exports['rescheduleContact']=function(_0x417677,_0x3b4227,_0x1fbdcf){const _0x5bbc66=_0x1726a;return _0x3b4227&&(_0x417677['UserId']=null),_0x1fbdcf&&(_0x417677[_0x5bbc66('0x5')]=![]),Promise[_0x5bbc66('0x2b')]()[_0x5bbc66('0x12')](cmHopper[_0x5bbc66('0x27')](_0x417677))[_0x5bbc66('0x31')](loggerCatch('[rescheduleContact]\x20'));},exports[_0x1726a('0x3')]=function(_0x5cbee7){const _0x40416b=_0x1726a;return Promise[_0x40416b('0x2b')]()['then'](cmHopper[_0x40416b('0x3')](_0x5cbee7))[_0x40416b('0x31')](loggerCatch(_0x40416b('0x0')));},exports[_0x1726a('0x1e')]=function(_0x3dba6f){const _0x4d4c80=_0x1726a;return Promise[_0x4d4c80('0x2b')]()[_0x4d4c80('0x12')](cmHopper['unlockContact']({'UserId':null},_0x3dba6f,0x1))[_0x4d4c80('0x31')](loggerCatch(_0x4d4c80('0xf')));},exports[_0x1726a('0x2d')]=function(_0x2e7a69){const _0x547b34=_0x1726a;return Promise['resolve']()[_0x547b34('0x12')](cmHopper['unlockContact']({'active':![]},_0x2e7a69,0x1))[_0x547b34('0x31')](loggerCatch(_0x547b34('0xe')));},exports[_0x1726a('0x2a')]=function(_0x1bd86b){const _0xcb3bdb=_0x1726a,_0x471eda={};return _0x471eda[_0xcb3bdb('0xd')]=_0x1bd86b['type'],_0x471eda[_0xcb3bdb('0x18')]=_0x1bd86b[_0xcb3bdb('0x18')],_0x471eda[_0xcb3bdb('0x1')]=_0x1bd86b[_0xcb3bdb('0x1')],_0x471eda[_0xcb3bdb('0xa')]=_0x1bd86b['calleridname'],_0x471eda[_0xcb3bdb('0x14')]=_0x1bd86b['queue'],_0x471eda[_0xcb3bdb('0x1f')]=_0x1bd86b[_0xcb3bdb('0x29')],_0x471eda['queuecallerleaveAt']=_0x1bd86b['answertime'],_0x471eda[_0xcb3bdb('0x1a')]=0x1,_0x471eda['queuecallercompleteAt']=_0x1bd86b[_0xcb3bdb('0xb')],_0x471eda[_0xcb3bdb('0x10')]=_0x1bd86b[_0xcb3bdb('0x15')],_0x471eda['context']=_0xcb3bdb('0x11'),_0x471eda['exten']=_0xcb3bdb('0x2'),_0x471eda[_0xcb3bdb('0x13')]=0x0,_0x471eda['assigned']=0x1,_0x471eda['lastAssignedTo']=_0x1bd86b[_0xcb3bdb('0x15')],_0x471eda[_0xcb3bdb('0x2c')]=_0xcb3bdb('0x1c'),Promise[_0xcb3bdb('0x2b')]()[_0xcb3bdb('0x12')](voiceQueueReport[_0xcb3bdb('0x30')](_0x471eda))[_0xcb3bdb('0x31')](loggerCatch(_0xcb3bdb('0x24')));},exports[_0x1726a('0x2e')]=function(_0x237b64,_0x1c467b){const _0x4a8191=_0x1726a;return Promise['resolve']()['then'](cmHopper[_0x4a8191('0x2e')](_0x237b64,_0x1c467b))[_0x4a8191('0x31')](loggerCatch(_0x4a8191('0x16')));},exports[_0x1726a('0xc')]=function(_0x43cc23){const _0x2e76c7=_0x1726a;return Promise[_0x2e76c7('0x2b')]()[_0x2e76c7('0x12')](cmHopper[_0x2e76c7('0x27')](_0x43cc23,!![],!![]))[_0x2e76c7('0x31')](loggerCatch(_0x2e76c7('0x28')));}; \ 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 bd017b9..f090d40 100644 --- a/server/services/ami/preview/util/util.js +++ b/server/services/ami/preview/util/util.js @@ -1 +1 @@ -const a1089_0x15cf=['milliseconds','Failure','CampaignId','countagentrejectretry','xmd-contactid','talktime','xmd-voicequeueid','countbusyretry','minutes','buildAcw','NONE','info','sipcallid','logAgent','xmd-dialid','cloneAction','calleridnum','clone','name','originatecalleridnum','\x5cw{0,','logger','endtime','originatecalleridname','ListId','createdAt','isNil','util','seconds','Blacklist','UserId','extractCalleridName','YYYY-MM-DD\x20HH:mm:ss','ContactId','getCallerIdRandom','extractCalleridNumber','rtpaudioqosrtt','xmd-cdrtype','countcongestionretry','dialAnswer','rtpaudioqosjitterbridged','lodash','ringtime','Contact','idContact','membername','toLower','moment','updatedAt','%s%s','originate','totalGlobal','_XCALLY_MIXMONITOR_FORMAT','responsetime','bridgepvtcallid','answertime','xmd-agiafter','countnoanswerretry','match','statedesc','toUpper','[updateOriginated]\x20is\x20null\x20or\x20undefined','timeout','uniqueid','rtpaudioqosloss','channelAgent','dialQueueProject','xmd-dialchannel','rtpaudioqos','addVariables','xmd-phone','reachable','xmd-callerid','filterKey','state','xmd-queue','countglobal','format','createBody','XMD-','isUndefined','undefined','queue','\x22rtTxX%s%s\x22','getDiff','dialQueueProject2','[decrementTalkink]\x20is\x20null\x20or\x20undefined','monitor_format','dialOriginateTimeout','logBlacklist','originated','buildObj','string','campaigntype','pTalking','calleridname','type','[updateOriginated]\x20object\x20originated\x20is\x20negative','\x22%s\x22\x20<%s>','active','Global','[decrementTalkink]\x20object\x20talking\x20is\x20negative','\x22\x22\x20<>','recallme','dialPreviewUrl','BOOKED','xmd-agi','VoiceQueueId','IsNotLoggedIn','callbackuniqueid','error','../../../../config/logger','logger2','callbackat','scheduledat','dialer','isEmpty','\x22agi://%s/square,%s\x22','lastevent','countnosuchnumberretry','replace','Queue','agentReadyId','status','agiIp','rtpaudioqosrttbridged','inspect','_XCALLY_MIXMONITOR_UNIQUEID','pow','starttime','toLowerVariables','xcally-motion-preview','xmd-listid','variablesAction','getCallerId','rtpaudioqosbridged','add','rtpaudioqosjitter'];(function(_0x3a5170,_0x15cfcc){const _0x4f1137=function(_0x2e97d2){while(--_0x2e97d2){_0x3a5170['push'](_0x3a5170['shift']());}};_0x4f1137(++_0x15cfcc);}(a1089_0x15cf,0x124));const a1089_0x4f11=function(_0x3a5170,_0x15cfcc){_0x3a5170=_0x3a5170-0x0;let _0x4f1137=a1089_0x15cf[_0x3a5170];return _0x4f1137;};const _0x35d6fc=a1089_0x4f11;'use strict';const util=require(_0x35d6fc('0xb')),_=require(_0x35d6fc('0x19')),moment=require(_0x35d6fc('0x1f')),logger=require(_0x35d6fc('0x5f'))('preview'),{getConfigService}=require('../../../../config/config.service');function getSeconds(_0x2e97d2,_0x1b1207){const _0x2aae94=_0x35d6fc,_0x18c66e=moment(_0x2e97d2)[_0x2aae94('0x7a')](0x0),_0x534592=moment(_0x1b1207)[_0x2aae94('0x7a')](0x0);return _0x18c66e['diff'](_0x534592,_0x2aae94('0xc'));}exports['loggerCatch']=function(_0xd6f4d2){return function(_0x1265e8){const _0x3835ad=a1089_0x4f11;logger[_0x3835ad('0x5e')](_0xd6f4d2,util[_0x3835ad('0x6e')](_0x1265e8,{'showHidden':![],'depth':null}));};},exports[_0x35d6fc('0x5')]=function(_0x23a3e6,_0x3430b8){const _0x52d063=_0x35d6fc;logger[_0x52d063('0x85')](_0x23a3e6,util[_0x52d063('0x6e')](_0x3430b8,{'showHidden':![],'depth':null}));},exports['loggerError']=function(_0x3201aa,_0x1a0048){const _0x48628e=_0x35d6fc;logger[_0x48628e('0x5e')](_0x3201aa,util[_0x48628e('0x6e')](_0x1a0048,{'showHidden':![],'depth':null}));},exports[_0x35d6fc('0x60')]=function(_0x12b514){return function(_0x30222d){const _0x148f75=a1089_0x4f11;logger[_0x148f75('0x85')](_0x12b514,util[_0x148f75('0x6e')](_0x30222d,{'showHidden':![],'depth':null}));};},exports['message']=function(_0x354440,_0x51a540,_0xbaa0){return{'message':_0x354440,'unlock':_0x51a540,'active':_0xbaa0};},exports[_0x35d6fc('0x76')]=function(_0x3927bb,_0x521420,_0x3a61ce){const _0x76b846=_0x35d6fc;if(!_['isUndefined'](_0x3a61ce)&&'string'===typeof _0x3a61ce&&!_[_0x76b846('0x64')](_0x3a61ce)){if(!_[_0x76b846('0x40')](_0x521420)&&_0x76b846('0x4c')===typeof _0x521420&&!_[_0x76b846('0x64')](_0x521420))return util[_0x76b846('0x3d')](_0x76b846('0x52'),_0x521420,_0x3a61ce);return util[_0x76b846('0x3d')](_0x76b846('0x52'),_0x3a61ce,_0x3a61ce);}if(!_[_0x76b846('0x40')](_0x3927bb)&&_0x76b846('0x4c')===typeof _0x3927bb&&!_['isEmpty'](_0x3927bb))return _0x3927bb;return _0x76b846('0x56');},exports['isActive']=function(_0x120e19){const _0x2ee5bb=_0x35d6fc;if(_[_0x2ee5bb('0xa')](_0x120e19))return![];return _0x120e19;},exports[_0x35d6fc('0x35')]=function(_0x238d06,_0x37932e,_0x219507,_0x3caa22,_0x3f0808,_0x24fceb){const _0x22c544=_0x35d6fc,_0x26bf1a=getConfigService(),_0x761bdc={'XMD-QUEUE':_0x37932e[_0x22c544('0x69')]?_0x37932e[_0x22c544('0x69')][_0x22c544('0x2')]:'','XMD-CALLERID':_0x3caa22,'XMD-CALLERID-PREVIEW':_0x24fceb?util['format'](_0x22c544('0x52'),_0x24fceb[_0x22c544('0x4f')],_0x24fceb[_0x22c544('0x0')]):_0x3caa22,'XMD-DIALID':_0x3f0808,'XMD-CONTACTID':_0x37932e[_0x22c544('0x11')],'XMD-CDRTYPE':_0x22c544('0x63'),'CALLERID(all)':_0x3caa22,'XMD-VOICEQUEUEID':_0x37932e[_0x22c544('0x5b')],'XMD-DIALCHANNEL':_0x219507,'XMD-DIALTIMEOUT':_0x238d06[_0x22c544('0x48')]||0x1e,'XMD-DIALOPTIONS':util['format'](_0x22c544('0x43'),_0x238d06['dialQueueProject2']?'g':'',_[_0x22c544('0x64')](_0x238d06[_0x22c544('0x47')])?'':'U(xcally-mixmonitor-context)'),'XMD-DIALURL':_0x238d06[_0x22c544('0x58')]||'','XMD-AGI':_0x238d06[_0x22c544('0x32')]?util[_0x22c544('0x3d')](_0x22c544('0x65'),_0x26bf1a['agiIp'],_0x238d06[_0x22c544('0x32')]):'NONE','XMD-AGIAFTER':_0x238d06[_0x22c544('0x45')]?util['format'](_0x22c544('0x65'),_0x26bf1a[_0x22c544('0x6c')],_0x238d06[_0x22c544('0x45')]):_0x22c544('0x84'),'XMD-ORIGINATECALLERIDNUM':_0x24fceb?_0x24fceb[_0x22c544('0x3')]:'','XMD-ORIGINATECALLERIDNAME':_0x24fceb?_0x24fceb[_0x22c544('0x7')]:'','XMD-DESTINATION':_0x22c544('0x73')};!_[_0x22c544('0x64')](_0x238d06[_0x22c544('0x47')])&&(_0x761bdc[util[_0x22c544('0x3d')]('%s',_0x22c544('0x24'))]=_0x238d06[_0x22c544('0x47')],_0x761bdc[util[_0x22c544('0x3d')]('%s',_0x22c544('0x6f'))]=_0x3f0808);if(_0x37932e&&_0x37932e[_0x22c544('0x1b')])for(const _0x1d3e88 in _0x37932e[_0x22c544('0x1b')]){typeof _0x37932e['Contact'][_0x1d3e88]!==_0x22c544('0x41')&&(!_[_0x22c544('0xa')](_0x37932e['Contact'][_0x1d3e88])&&_0x1d3e88!=='id'&&_0x1d3e88!=='tags'&&_0x1d3e88!==_0x22c544('0x9')&&_0x1d3e88!==_0x22c544('0x20')&&(_0x761bdc[util[_0x22c544('0x3d')](_0x22c544('0x21'),_0x22c544('0x3f'),_[_0x22c544('0x2c')](_0x1d3e88))]=_0x37932e[_0x22c544('0x1b')][_0x1d3e88]));}return _0x761bdc;},exports[_0x35d6fc('0x72')]=function(_0x1ef614){const _0x3ea554=_0x35d6fc,_0x19a649={};for(const _0x16988b in _0x1ef614){typeof _0x1ef614[_0x16988b]!==_0x3ea554('0x41')&&(_0x19a649[util[_0x3ea554('0x3d')]('%s',_[_0x3ea554('0x1e')](_0x16988b))]=_0x1ef614[_0x16988b]);}return{'variables':_0x19a649};},exports['updateOriginated']=function(_0x3a6151,_0x41cb0a){const _0x5f33e7=_0x35d6fc;!_[_0x5f33e7('0xa')](_0x3a6151)?typeof _0x3a6151['originated']!==_0x5f33e7('0x41')&&(_0x3a6151[_0x5f33e7('0x4a')]>0x0?_0x3a6151[_0x5f33e7('0x4a')]-=0x1:logger[_0x5f33e7('0x5e')](_0x5f33e7('0x51'),_0x41cb0a)):logger['error'](_0x5f33e7('0x2d'),_0x41cb0a);},exports[_0x35d6fc('0x49')]=function(_0x10e13e){const _0x3dd42a=_0x35d6fc,_0x4fbb31=moment()[_0x3dd42a('0x3d')](_0x3dd42a('0x10'));_0x10e13e[_0x3dd42a('0x3a')]=0xd,_0x10e13e[_0x3dd42a('0x2b')]=_0x3dd42a('0xd'),_0x10e13e[_0x3dd42a('0x71')]=_0x4fbb31,_0x10e13e[_0x3dd42a('0x25')]=_0x4fbb31,_0x10e13e[_0x3dd42a('0x6')]=_0x4fbb31;},exports[_0x35d6fc('0x87')]=function(_0x4ca272,_0x46a13c,_0x2ca5bf){const _0x1aa9e6=_0x35d6fc,_0x85c490=moment()['format'](_0x1aa9e6('0x10'));_0x4ca272[_0x1aa9e6('0x3a')]=_0x46a13c,_0x4ca272[_0x1aa9e6('0x2b')]=_0x2ca5bf,_0x4ca272['responsetime']=_0x85c490,_0x4ca272[_0x1aa9e6('0x1a')]=getSeconds(_0x4ca272['responsetime'],_0x4ca272[_0x1aa9e6('0x71')]);},exports['logLookAgent']=function(_0x3feefa,_0x2d73b8,_0x2f993f){const _0x4e40a8=_0x35d6fc;_0x3feefa[_0x4e40a8('0x1d')]=_0x2d73b8,_0x3feefa['UserId']=_0x2f993f;},exports['logCustomer']=function(_0x30b4c0,_0x782ff7,_0x22f4a6){const _0x24934c=_0x35d6fc,_0x555af0=moment()[_0x24934c('0x3d')](_0x24934c('0x10'));_0x30b4c0[_0x24934c('0x3a')]=_0x782ff7,_0x30b4c0['statedesc']=_0x22f4a6,_0x30b4c0[_0x24934c('0x25')]=_0x30b4c0[_0x24934c('0x25')]?_0x30b4c0[_0x24934c('0x25')]:_0x555af0,_0x30b4c0['endtime']=_0x30b4c0[_0x24934c('0x6')]?_0x30b4c0[_0x24934c('0x6')]:_0x555af0,_0x30b4c0[_0x24934c('0x1a')]=getSeconds(_0x30b4c0[_0x24934c('0x25')]||0x0,_0x30b4c0[_0x24934c('0x71')]||0x0),_0x30b4c0[_0x24934c('0x7f')]=_0x30b4c0[_0x24934c('0x27')]?getSeconds(_0x30b4c0[_0x24934c('0x6')],_0x30b4c0[_0x24934c('0x27')]):0x0;},exports['isFailure']=function(_0x3c5f5f){const _0x54eaa3=_0x35d6fc;return _0x3c5f5f===_0x54eaa3('0x7b');},exports[_0x35d6fc('0x75')]=function(_0xd9ed3,_0x2a5e2f,_0xee7d27,_0x1a869d,_0x249d1c){const _0x46fcf0=_0x35d6fc;let _0x552f9e=_0x1a869d?'RECALL':_0xd9ed3[_0x46fcf0('0x4f')];return _0x552f9e=_0x249d1c?_0x46fcf0('0x59'):_0x552f9e,{'actionid':_0xd9ed3[_0x46fcf0('0x2f')],'action':_0x46fcf0('0x22'),'channel':_0xd9ed3[_0x46fcf0('0x31')],'callerid':util['format']('\x22%s\x22\x20<%s>',_0x552f9e,_0xd9ed3[_0x46fcf0('0x0')]),'Exten':_0x46fcf0('0x73'),'Context':'from-sip','Priority':'1','variable':_0xee7d27,'timeout':(_0x2a5e2f[_0x46fcf0('0x2e')]||0x1e)*0x3e8,'async':!![],'channelid':_0xd9ed3['uniqueid']};},exports[_0x35d6fc('0x23')]=function(_0x136e81){const _0x3a004c=_0x35d6fc;return _0x136e81[_0x3a004c('0x81')]+_0x136e81[_0x3a004c('0x16')]+_0x136e81[_0x3a004c('0x29')]+_0x136e81[_0x3a004c('0x7d')]+_0x136e81[_0x3a004c('0x67')];},exports[_0x35d6fc('0x89')]=function(_0x23740d){const _0x353c60=_0x35d6fc,_0x4720b0=_[_0x353c60('0x1')](_0x23740d);return _0x4720b0[_0x353c60('0x3a')]=0xf,_0x4720b0[_0x353c60('0x2b')]=_0x353c60('0x54'),_0x4720b0;},exports['scheduledAt']=function(_0x1c6fb0,_0x2d0128,_0x223b39){const _0x162cdc=_0x35d6fc,_0x2d1d14={};return _0x2d1d14[_0x2d0128]=_0x1c6fb0[_0x2d0128],_0x2d1d14[_0x162cdc('0x53')]=![],_0x2d1d14[_0x162cdc('0x62')]=moment()[_0x162cdc('0x78')](_0x223b39,_0x162cdc('0x82'))['format'](_0x162cdc('0x10')),_0x2d1d14[_0x162cdc('0x11')]=_0x1c6fb0[_0x162cdc('0x11')],_0x2d1d14[_0x162cdc('0x8')]=_0x1c6fb0[_0x162cdc('0x8')],_0x2d1d14['VoiceQueueId']=_0x1c6fb0[_0x162cdc('0x5b')]||undefined,_0x2d1d14;},exports['decrementTalkink']=function(_0x3e4450,_0x1f5407){const _0x1468ed=_0x35d6fc;!_['isNil'](_0x3e4450)?_0x3e4450[_0x1468ed('0x4e')]>0x0?_0x3e4450[_0x1468ed('0x4e')]-=0x1:logger['error'](_0x1f5407,_0x1468ed('0x55')):logger[_0x1468ed('0x5e')](_0x1f5407,_0x1468ed('0x46'));},exports[_0x35d6fc('0x5c')]=function(_0x53647d){if(_0x53647d<=0x0)return!![];return![];},exports[_0x35d6fc('0x4b')]=function(_0x3db8a9,_0xfd92f5){const _0x577283=_0x35d6fc;return _0x3db8a9[_0x577283('0x66')]=_0xfd92f5,_0x3db8a9[_0x577283('0x2')]=_0x3db8a9[_0x577283('0x42')],_0x3db8a9['interface']=_0x3db8a9['channelAgent'],_0x3db8a9;},exports[_0x35d6fc('0x83')]=function(_0x378176){const _0x34756a=_0x35d6fc,_0xa33358={};return _0xa33358[_0x34756a('0x42')]=_0x378176['queue'],_0xa33358['interface']=_0x378176[_0x34756a('0x31')],_0xa33358['uniqueid']=_0x378176['uniqueid'],_0xa33358;},exports[_0x35d6fc('0x6a')]=function(_0x38bf64){const _0x1011f2=_0x35d6fc,_0x865fa0=[];for(const _0x5d3cf0 in _0x38bf64){typeof _0x38bf64[_0x5d3cf0]!==_0x1011f2('0x41')&&(!_[_0x1011f2('0xa')](_0x38bf64[_0x5d3cf0])&&_0x38bf64[_0x5d3cf0][_0x1011f2('0x3a')]==='not_inuse'&&_0x38bf64[_0x5d3cf0][_0x1011f2('0x6b')]===_0x1011f2('0x37')&&_0x865fa0['push'](_0x38bf64[_0x5d3cf0]['id']));}return _0x865fa0;},exports[_0x35d6fc('0x44')]=function(_0x33e83b){const _0x474c7d=_0x35d6fc,_0xbceb71=moment()['milliseconds'](0x0),_0x42cd10=moment(_0x33e83b)[_0x474c7d('0x7a')](0x0);return _0xbceb71['diff'](_0x42cd10,'seconds');},exports[_0x35d6fc('0x3e')]=function(_0x1fba5b){const _0x507a18=_0x35d6fc;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x1fba5b[_0x507a18('0x11')],'ListId':_0x1fba5b['ListId'],'VoiceQueueId':_0x1fba5b[_0x507a18('0x5b')]||undefined,'CampaignId':_0x1fba5b[_0x507a18('0x7c')]||undefined};},exports[_0x35d6fc('0x39')]=function(_0x9a2f10){const _0x26988f=_0x35d6fc;if(_0x9a2f10===_0x26988f('0x2f')||_0x9a2f10===_0x26988f('0x1c')||_0x9a2f10===_0x26988f('0x42')||_0x9a2f10===_0x26988f('0x50')||_0x9a2f10===_0x26988f('0x4d')||_0x9a2f10===_0x26988f('0x17')||_0x9a2f10===_0x26988f('0x1d')||_0x9a2f10==='channelAgent'||_0x9a2f10===_0x26988f('0x4f')||_0x9a2f10===_0x26988f('0x53')||_0x9a2f10===_0x26988f('0x0')||_0x9a2f10===_0x26988f('0x62')||_0x9a2f10===_0x26988f('0x81')||_0x9a2f10===_0x26988f('0x16')||_0x9a2f10==='countnoanswerretry'||_0x9a2f10===_0x26988f('0x3c')||_0x9a2f10==='callback'||_0x9a2f10===_0x26988f('0x5d')||_0x9a2f10===_0x26988f('0x61')||_0x9a2f10===_0x26988f('0x57')||_0x9a2f10==='ContactId'||_0x9a2f10===_0x26988f('0x8')||_0x9a2f10===_0x26988f('0xe')||_0x9a2f10===_0x26988f('0x5b')||_0x9a2f10===_0x26988f('0x86')||_0x9a2f10===_0x26988f('0x80')||_0x9a2f10===_0x26988f('0x3b')||_0x9a2f10===_0x26988f('0x36')||_0x9a2f10===_0x26988f('0x74')||_0x9a2f10==='xmd-dialurl'||_0x9a2f10==='xmd-dialtimeout'||_0x9a2f10==='xmd-dialoptions'||_0x9a2f10===_0x26988f('0x88')||_0x9a2f10===_0x26988f('0x33')||_0x9a2f10===_0x26988f('0x7e')||_0x9a2f10===_0x26988f('0x15')||_0x9a2f10===_0x26988f('0x38')||_0x9a2f10===_0x26988f('0x28')||_0x9a2f10===_0x26988f('0x5a')||_0x9a2f10===_0x26988f('0x34')||_0x9a2f10===_0x26988f('0x77')||_0x9a2f10===_0x26988f('0x79')||_0x9a2f10===_0x26988f('0x18')||_0x9a2f10===_0x26988f('0x30')||_0x9a2f10==='rtpaudioqoslossbridged'||_0x9a2f10===_0x26988f('0x14')||_0x9a2f10==='rtpaudioqosrttbridged'||_0x9a2f10===_0x26988f('0x34')||_0x9a2f10==='rtpaudioqosbridged'||_0x9a2f10===_0x26988f('0x79')||_0x9a2f10===_0x26988f('0x18')||_0x9a2f10===_0x26988f('0x30')||_0x9a2f10==='rtpaudioqoslossbridged'||_0x9a2f10==='rtpaudioqosrtt'||_0x9a2f10===_0x26988f('0x6d')||_0x9a2f10==='bridgepeer'||_0x9a2f10===_0x26988f('0x26')||_0x9a2f10===_0x26988f('0x3a')||_0x9a2f10==='statedesc')return![];return!![];},exports[_0x35d6fc('0x12')]=function(_0x49bb5b,_0x5a588c){const _0x549a7e=_0x35d6fc;_0x5a588c<=0x0&&(_0x5a588c=0x1);const _0x17dca0=new RegExp(_0x549a7e('0x4')+_0x5a588c+'}$'),_0x56b57a=Math[_0x549a7e('0x70')](0xa,_0x5a588c-0x1),_0x3e9a35=Math[_0x549a7e('0x70')](0xa,_0x5a588c)-0x1;return util[_0x549a7e('0x3d')]('%s',_[_0x549a7e('0x68')](_0x49bb5b,_0x17dca0,_['random'](_0x56b57a,_0x3e9a35)));},exports[_0x35d6fc('0xf')]=function(_0x2592a1){const _0x5eacd7=_0x35d6fc,_0x3d0cf9=_0x2592a1[_0x5eacd7('0x2a')](/"(.*?)"/);return _0x3d0cf9?_0x3d0cf9[0x1]:_0x2592a1;},exports[_0x35d6fc('0x13')]=function(_0x1f6998){const _0x47b0a1=_0x35d6fc,_0x25084a=_0x1f6998[_0x47b0a1('0x2a')](/<(.*?)>/);return _0x25084a?_0x25084a[0x1]:_0x1f6998;}; \ No newline at end of file +const a1090_0x1b7b=['add','dialQueueProject2','logCustomer','xmd-queue','talktime','agiIp','string','originatecalleridname','addVariables','getCallerIdRandom','loggerError','reachable','cloneAction','Contact','logLookAgent','clone','callback','CampaignId','seconds','[updateOriginated]\x20is\x20null\x20or\x20undefined','countnosuchnumberretry','logger','updateOriginated','xmd-dialchannel','push','ContactId','status','not_inuse','Queue','ringtime','xmd-agi','VoiceQueueId','sipcallid','tags','scheduledat','ListId','channelAgent','preview','isEmpty','isNil','xmd-agiafter','totalGlobal','milliseconds','countagentrejectretry','extractCalleridName','calleridnum','format','queue','YYYY-MM-DD\x20HH:mm:ss','createdAt','\x22agi://%s/square,%s\x22','answertime','match','isFailure','countbusyretry','moment','toLowerVariables','xmd-listid','rtpaudioqosloss','random','scheduledAt','active','../../../../config/logger','starttime','dialQueueProject','[decrementTalkink]\x20is\x20null\x20or\x20undefined','rtpaudioqosrtt','toUpper','from-sip','campaigntype','xmd-voicequeueid','BOOKED','minutes','xmd-contactid','variablesAction','diff','xcally-motion-preview','rtpaudioqosjitterbridged','membername','getDiff','undefined','\x22\x22\x20<>','countcongestionretry','inspect','NONE','pTalking','endtime','%s%s','replace','buildAcw','buildObj','error','countglobal','name','xmd-dialtimeout','dialer','info','isUndefined','recallme','uniqueid','xmd-dialoptions','getCallerId','bridgepeer','originated','calleridname','rtpaudioqos','monitor_format','state','\x22%s\x22\x20<%s>','agentReadyId','xmd-callerid','countnoanswerretry','interface','type','loggerCatch','toLower','lastevent','message','originate','RECALL','\x22rtTxX%s%s\x22','filterKey','timeout','../../../../config/config.service','Global','responsetime','UserId','dialAnswer','[decrementTalkink]\x20object\x20talking\x20is\x20negative','XMD-','_XCALLY_MIXMONITOR_FORMAT','decrementTalkink','IsNotLoggedIn','xmd-phone','logAgent','rtpaudioqosjitter','rtpaudioqosbridged','rtpaudioqosrttbridged','statedesc'];(function(_0x5cc7ce,_0x1b7b14){const _0x1fadab=function(_0x507cb2){while(--_0x507cb2){_0x5cc7ce['push'](_0x5cc7ce['shift']());}};_0x1fadab(++_0x1b7b14);}(a1090_0x1b7b,0x10a));const a1090_0x1fad=function(_0x5cc7ce,_0x1b7b14){_0x5cc7ce=_0x5cc7ce-0x0;let _0x1fadab=a1090_0x1b7b[_0x5cc7ce];return _0x1fadab;};const _0x431fc1=a1090_0x1fad;'use strict';const util=require('util'),_=require('lodash'),moment=require(_0x431fc1('0x43')),logger=require(_0x431fc1('0x4a'))(_0x431fc1('0x31')),{getConfigService}=require(_0x431fc1('0x87'));function getSeconds(_0x507cb2,_0x4f9674){const _0x285b36=_0x431fc1,_0x378344=moment(_0x507cb2)[_0x285b36('0x36')](0x0),_0x47b191=moment(_0x4f9674)[_0x285b36('0x36')](0x0);return _0x378344[_0x285b36('0x57')](_0x47b191,_0x285b36('0x1e'));}exports[_0x431fc1('0x7e')]=function(_0x274ff1){return function(_0x3684f8){const _0x17b58f=a1090_0x1fad;logger[_0x17b58f('0x67')](_0x274ff1,util[_0x17b58f('0x5f')](_0x3684f8,{'showHidden':![],'depth':null}));};},exports[_0x431fc1('0x21')]=function(_0x205528,_0x503b8){const _0x162699=_0x431fc1;logger[_0x162699('0x6c')](_0x205528,util[_0x162699('0x5f')](_0x503b8,{'showHidden':![],'depth':null}));},exports[_0x431fc1('0x16')]=function(_0x186b00,_0x1fc632){const _0x3f89da=_0x431fc1;logger[_0x3f89da('0x67')](_0x186b00,util['inspect'](_0x1fc632,{'showHidden':![],'depth':null}));},exports['logger2']=function(_0x5849c6){return function(_0x173264){const _0x3be7b1=a1090_0x1fad;logger['info'](_0x5849c6,util[_0x3be7b1('0x5f')](_0x173264,{'showHidden':![],'depth':null}));};},exports[_0x431fc1('0x81')]=function(_0x5e9d07,_0x3b1907,_0x153ac0){return{'message':_0x5e9d07,'unlock':_0x3b1907,'active':_0x153ac0};},exports[_0x431fc1('0x71')]=function(_0x4150f6,_0x53012f,_0x48b5c4){const _0x4b867f=_0x431fc1;if(!_['isUndefined'](_0x48b5c4)&&'string'===typeof _0x48b5c4&&!_[_0x4b867f('0x32')](_0x48b5c4)){if(!_[_0x4b867f('0x6d')](_0x53012f)&&_0x4b867f('0x12')===typeof _0x53012f&&!_['isEmpty'](_0x53012f))return util['format'](_0x4b867f('0x78'),_0x53012f,_0x48b5c4);return util[_0x4b867f('0x3a')](_0x4b867f('0x78'),_0x48b5c4,_0x48b5c4);}if(!_[_0x4b867f('0x6d')](_0x4150f6)&&'string'===typeof _0x4150f6&&!_[_0x4b867f('0x32')](_0x4150f6))return _0x4150f6;return _0x4b867f('0x5d');},exports['isActive']=function(_0x5d3d37){const _0x33a57e=_0x431fc1;if(_[_0x33a57e('0x33')](_0x5d3d37))return![];return _0x5d3d37;},exports[_0x431fc1('0x14')]=function(_0x4bd7de,_0x146770,_0x549a43,_0x441148,_0x1c7c90,_0x56ca8c){const _0x3da4fc=_0x431fc1,_0x10ca66=getConfigService(),_0x56910e={'XMD-QUEUE':_0x146770[_0x3da4fc('0x28')]?_0x146770[_0x3da4fc('0x28')]['name']:'','XMD-CALLERID':_0x441148,'XMD-CALLERID-PREVIEW':_0x56ca8c?util['format']('\x22%s\x22\x20<%s>',_0x56ca8c['calleridname'],_0x56ca8c['calleridnum']):_0x441148,'XMD-DIALID':_0x1c7c90,'XMD-CONTACTID':_0x146770[_0x3da4fc('0x25')],'XMD-CDRTYPE':_0x3da4fc('0x6b'),'CALLERID(all)':_0x441148,'XMD-VOICEQUEUEID':_0x146770['VoiceQueueId'],'XMD-DIALCHANNEL':_0x549a43,'XMD-DIALTIMEOUT':_0x4bd7de['dialOriginateTimeout']||0x1e,'XMD-DIALOPTIONS':util['format'](_0x3da4fc('0x84'),_0x4bd7de[_0x3da4fc('0xd')]?'g':'',_[_0x3da4fc('0x32')](_0x4bd7de[_0x3da4fc('0x76')])?'':'U(xcally-mixmonitor-context)'),'XMD-DIALURL':_0x4bd7de['dialPreviewUrl']||'','XMD-AGI':_0x4bd7de[_0x3da4fc('0x4c')]?util['format'](_0x3da4fc('0x3e'),_0x10ca66[_0x3da4fc('0x11')],_0x4bd7de[_0x3da4fc('0x4c')]):_0x3da4fc('0x60'),'XMD-AGIAFTER':_0x4bd7de[_0x3da4fc('0xd')]?util[_0x3da4fc('0x3a')](_0x3da4fc('0x3e'),_0x10ca66[_0x3da4fc('0x11')],_0x4bd7de[_0x3da4fc('0xd')]):_0x3da4fc('0x60'),'XMD-ORIGINATECALLERIDNUM':_0x56ca8c?_0x56ca8c['originatecalleridnum']:'','XMD-ORIGINATECALLERIDNAME':_0x56ca8c?_0x56ca8c[_0x3da4fc('0x13')]:'','XMD-DESTINATION':_0x3da4fc('0x58')};!_[_0x3da4fc('0x32')](_0x4bd7de['monitor_format'])&&(_0x56910e[util[_0x3da4fc('0x3a')]('%s',_0x3da4fc('0x3'))]=_0x4bd7de[_0x3da4fc('0x76')],_0x56910e[util['format']('%s','_XCALLY_MIXMONITOR_UNIQUEID')]=_0x1c7c90);if(_0x146770&&_0x146770[_0x3da4fc('0x19')])for(const _0x39a3f6 in _0x146770[_0x3da4fc('0x19')]){typeof _0x146770[_0x3da4fc('0x19')][_0x39a3f6]!==_0x3da4fc('0x5c')&&(!_[_0x3da4fc('0x33')](_0x146770[_0x3da4fc('0x19')][_0x39a3f6])&&_0x39a3f6!=='id'&&_0x39a3f6!==_0x3da4fc('0x2d')&&_0x39a3f6!==_0x3da4fc('0x3d')&&_0x39a3f6!=='updatedAt'&&(_0x56910e[util[_0x3da4fc('0x3a')](_0x3da4fc('0x63'),_0x3da4fc('0x2'),_[_0x3da4fc('0x4f')](_0x39a3f6))]=_0x146770['Contact'][_0x39a3f6]));}return _0x56910e;},exports[_0x431fc1('0x44')]=function(_0x5ee717){const _0x4c3217=_0x431fc1,_0x495e51={};for(const _0x57b4d7 in _0x5ee717){typeof _0x5ee717[_0x57b4d7]!=='undefined'&&(_0x495e51[util[_0x4c3217('0x3a')]('%s',_[_0x4c3217('0x7f')](_0x57b4d7))]=_0x5ee717[_0x57b4d7]);}return{'variables':_0x495e51};},exports[_0x431fc1('0x22')]=function(_0x36cc43,_0x2e307e){const _0x3f0d95=_0x431fc1;!_[_0x3f0d95('0x33')](_0x36cc43)?typeof _0x36cc43[_0x3f0d95('0x73')]!==_0x3f0d95('0x5c')&&(_0x36cc43['originated']>0x0?_0x36cc43[_0x3f0d95('0x73')]-=0x1:logger[_0x3f0d95('0x67')]('[updateOriginated]\x20object\x20originated\x20is\x20negative',_0x2e307e)):logger[_0x3f0d95('0x67')](_0x3f0d95('0x1f'),_0x2e307e);},exports['logBlacklist']=function(_0x5e9f51){const _0x5e2726=_0x431fc1,_0x19f919=moment()['format'](_0x5e2726('0x3c'));_0x5e9f51['state']=0xd,_0x5e9f51[_0x5e2726('0xb')]='Blacklist',_0x5e9f51['starttime']=_0x19f919,_0x5e9f51[_0x5e2726('0x89')]=_0x19f919,_0x5e9f51[_0x5e2726('0x62')]=_0x19f919;},exports[_0x431fc1('0x7')]=function(_0x33f9fd,_0x358948,_0x21a7df){const _0x5e3c10=_0x431fc1,_0x39ac7f=moment()['format'](_0x5e3c10('0x3c'));_0x33f9fd[_0x5e3c10('0x77')]=_0x358948,_0x33f9fd[_0x5e3c10('0xb')]=_0x21a7df,_0x33f9fd[_0x5e3c10('0x89')]=_0x39ac7f,_0x33f9fd[_0x5e3c10('0x29')]=getSeconds(_0x33f9fd['responsetime'],_0x33f9fd['starttime']);},exports[_0x431fc1('0x1a')]=function(_0x2583bb,_0x143a10,_0x5b62c4){const _0x4dede5=_0x431fc1;_0x2583bb[_0x4dede5('0x5a')]=_0x143a10,_0x2583bb[_0x4dede5('0x8a')]=_0x5b62c4;},exports[_0x431fc1('0xe')]=function(_0x5c6f9b,_0x2ba0fa,_0x2e32f4){const _0x5aab93=_0x431fc1,_0x37edd4=moment()[_0x5aab93('0x3a')](_0x5aab93('0x3c'));_0x5c6f9b[_0x5aab93('0x77')]=_0x2ba0fa,_0x5c6f9b[_0x5aab93('0xb')]=_0x2e32f4,_0x5c6f9b['responsetime']=_0x5c6f9b[_0x5aab93('0x89')]?_0x5c6f9b['responsetime']:_0x37edd4,_0x5c6f9b[_0x5aab93('0x62')]=_0x5c6f9b[_0x5aab93('0x62')]?_0x5c6f9b['endtime']:_0x37edd4,_0x5c6f9b[_0x5aab93('0x29')]=getSeconds(_0x5c6f9b[_0x5aab93('0x89')]||0x0,_0x5c6f9b[_0x5aab93('0x4b')]||0x0),_0x5c6f9b[_0x5aab93('0x10')]=_0x5c6f9b['answertime']?getSeconds(_0x5c6f9b[_0x5aab93('0x62')],_0x5c6f9b[_0x5aab93('0x3f')]):0x0;},exports[_0x431fc1('0x41')]=function(_0xe8d665){return _0xe8d665==='Failure';},exports[_0x431fc1('0x56')]=function(_0x61aaae,_0x49affa,_0x2de2eb,_0x2d3807,_0x573c95){const _0x532f8d=_0x431fc1;let _0x3bb1b8=_0x2d3807?_0x532f8d('0x83'):_0x61aaae['calleridname'];return _0x3bb1b8=_0x573c95?_0x532f8d('0x53'):_0x3bb1b8,{'actionid':_0x61aaae[_0x532f8d('0x6f')],'action':_0x532f8d('0x82'),'channel':_0x61aaae[_0x532f8d('0x30')],'callerid':util[_0x532f8d('0x3a')](_0x532f8d('0x78'),_0x3bb1b8,_0x61aaae['calleridnum']),'Exten':'xcally-motion-preview','Context':_0x532f8d('0x50'),'Priority':'1','variable':_0x2de2eb,'timeout':(_0x49affa[_0x532f8d('0x86')]||0x1e)*0x3e8,'async':!![],'channelid':_0x61aaae[_0x532f8d('0x6f')]};},exports[_0x431fc1('0x35')]=function(_0x15657c){const _0x167733=_0x431fc1;return _0x15657c['countbusyretry']+_0x15657c['countcongestionretry']+_0x15657c[_0x167733('0x7b')]+_0x15657c[_0x167733('0x37')]+_0x15657c[_0x167733('0x20')];},exports[_0x431fc1('0x18')]=function(_0x432e01){const _0x53d71a=_0x431fc1,_0x4f5a6f=_[_0x53d71a('0x1b')](_0x432e01);return _0x4f5a6f[_0x53d71a('0x77')]=0xf,_0x4f5a6f['statedesc']=_0x53d71a('0x88'),_0x4f5a6f;},exports[_0x431fc1('0x48')]=function(_0x48982c,_0x5f2a9a,_0x315373){const _0x169054=_0x431fc1,_0x522e2d={};return _0x522e2d[_0x5f2a9a]=_0x48982c[_0x5f2a9a],_0x522e2d[_0x169054('0x49')]=![],_0x522e2d['scheduledat']=moment()[_0x169054('0xc')](_0x315373,_0x169054('0x54'))[_0x169054('0x3a')](_0x169054('0x3c')),_0x522e2d['ContactId']=_0x48982c[_0x169054('0x25')],_0x522e2d[_0x169054('0x2f')]=_0x48982c['ListId'],_0x522e2d['VoiceQueueId']=_0x48982c[_0x169054('0x2b')]||undefined,_0x522e2d;},exports[_0x431fc1('0x4')]=function(_0x5b75e2,_0x32e341){const _0x1fba65=_0x431fc1;!_[_0x1fba65('0x33')](_0x5b75e2)?_0x5b75e2[_0x1fba65('0x61')]>0x0?_0x5b75e2[_0x1fba65('0x61')]-=0x1:logger[_0x1fba65('0x67')](_0x32e341,_0x1fba65('0x1')):logger[_0x1fba65('0x67')](_0x32e341,_0x1fba65('0x4d'));},exports[_0x431fc1('0x5')]=function(_0x206efb){if(_0x206efb<=0x0)return!![];return![];},exports[_0x431fc1('0x66')]=function(_0x2712b5,_0x5bf028){const _0x5d7059=_0x431fc1;return _0x2712b5[_0x5d7059('0x80')]=_0x5bf028,_0x2712b5[_0x5d7059('0x69')]=_0x2712b5[_0x5d7059('0x3b')],_0x2712b5[_0x5d7059('0x7c')]=_0x2712b5[_0x5d7059('0x30')],_0x2712b5;},exports[_0x431fc1('0x65')]=function(_0x2aadc9){const _0x2c63e2=_0x431fc1,_0x1adf42={};return _0x1adf42[_0x2c63e2('0x3b')]=_0x2aadc9[_0x2c63e2('0x3b')],_0x1adf42['interface']=_0x2aadc9[_0x2c63e2('0x30')],_0x1adf42[_0x2c63e2('0x6f')]=_0x2aadc9['uniqueid'],_0x1adf42;},exports[_0x431fc1('0x79')]=function(_0x381fc7){const _0x3bb348=_0x431fc1,_0x1bc3a6=[];for(const _0x3301bf in _0x381fc7){typeof _0x381fc7[_0x3301bf]!=='undefined'&&(!_[_0x3bb348('0x33')](_0x381fc7[_0x3301bf])&&_0x381fc7[_0x3301bf][_0x3bb348('0x77')]===_0x3bb348('0x27')&&_0x381fc7[_0x3301bf][_0x3bb348('0x26')]===_0x3bb348('0x17')&&_0x1bc3a6[_0x3bb348('0x24')](_0x381fc7[_0x3301bf]['id']));}return _0x1bc3a6;},exports[_0x431fc1('0x5b')]=function(_0xf616ac){const _0x3994c8=_0x431fc1,_0x1601af=moment()[_0x3994c8('0x36')](0x0),_0x2648dc=moment(_0xf616ac)[_0x3994c8('0x36')](0x0);return _0x1601af[_0x3994c8('0x57')](_0x2648dc,_0x3994c8('0x1e'));},exports['createBody']=function(_0x197604){const _0x125597=_0x431fc1;return{'active':![],'recallme':![],'UserId':null,'ContactId':_0x197604['ContactId'],'ListId':_0x197604['ListId'],'VoiceQueueId':_0x197604['VoiceQueueId']||undefined,'CampaignId':_0x197604[_0x125597('0x1d')]||undefined};},exports[_0x431fc1('0x85')]=function(_0x5cc0ae){const _0x1042b2=_0x431fc1;if(_0x5cc0ae===_0x1042b2('0x6f')||_0x5cc0ae==='idContact'||_0x5cc0ae==='queue'||_0x5cc0ae===_0x1042b2('0x7d')||_0x5cc0ae===_0x1042b2('0x51')||_0x5cc0ae===_0x1042b2('0x0')||_0x5cc0ae===_0x1042b2('0x5a')||_0x5cc0ae===_0x1042b2('0x30')||_0x5cc0ae===_0x1042b2('0x74')||_0x5cc0ae==='active'||_0x5cc0ae===_0x1042b2('0x39')||_0x5cc0ae===_0x1042b2('0x2e')||_0x5cc0ae===_0x1042b2('0x42')||_0x5cc0ae===_0x1042b2('0x5e')||_0x5cc0ae===_0x1042b2('0x7b')||_0x5cc0ae===_0x1042b2('0x68')||_0x5cc0ae===_0x1042b2('0x1c')||_0x5cc0ae==='callbackuniqueid'||_0x5cc0ae==='callbackat'||_0x5cc0ae===_0x1042b2('0x6e')||_0x5cc0ae===_0x1042b2('0x25')||_0x5cc0ae===_0x1042b2('0x2f')||_0x5cc0ae===_0x1042b2('0x8a')||_0x5cc0ae==='VoiceQueueId'||_0x5cc0ae===_0x1042b2('0x2c')||_0x5cc0ae===_0x1042b2('0x52')||_0x5cc0ae===_0x1042b2('0xf')||_0x5cc0ae===_0x1042b2('0x6')||_0x5cc0ae===_0x1042b2('0x45')||_0x5cc0ae==='xmd-dialurl'||_0x5cc0ae===_0x1042b2('0x6a')||_0x5cc0ae===_0x1042b2('0x70')||_0x5cc0ae==='xmd-dialid'||_0x5cc0ae===_0x1042b2('0x23')||_0x5cc0ae===_0x1042b2('0x55')||_0x5cc0ae==='xmd-cdrtype'||_0x5cc0ae===_0x1042b2('0x7a')||_0x5cc0ae===_0x1042b2('0x34')||_0x5cc0ae===_0x1042b2('0x2a')||_0x5cc0ae===_0x1042b2('0x75')||_0x5cc0ae===_0x1042b2('0x9')||_0x5cc0ae==='rtpaudioqosjitter'||_0x5cc0ae===_0x1042b2('0x59')||_0x5cc0ae===_0x1042b2('0x46')||_0x5cc0ae==='rtpaudioqoslossbridged'||_0x5cc0ae===_0x1042b2('0x4e')||_0x5cc0ae===_0x1042b2('0xa')||_0x5cc0ae===_0x1042b2('0x75')||_0x5cc0ae===_0x1042b2('0x9')||_0x5cc0ae===_0x1042b2('0x8')||_0x5cc0ae===_0x1042b2('0x59')||_0x5cc0ae==='rtpaudioqosloss'||_0x5cc0ae==='rtpaudioqoslossbridged'||_0x5cc0ae==='rtpaudioqosrtt'||_0x5cc0ae==='rtpaudioqosrttbridged'||_0x5cc0ae===_0x1042b2('0x72')||_0x5cc0ae==='bridgepvtcallid'||_0x5cc0ae===_0x1042b2('0x77')||_0x5cc0ae===_0x1042b2('0xb'))return![];return!![];},exports[_0x431fc1('0x15')]=function(_0x1b7edd,_0x561a29){const _0x194ff5=_0x431fc1;_0x561a29<=0x0&&(_0x561a29=0x1);const _0x2d8ba4=new RegExp('\x5cw{0,'+_0x561a29+'}$'),_0x101c49=Math['pow'](0xa,_0x561a29-0x1),_0xbe6cfc=Math['pow'](0xa,_0x561a29)-0x1;return util[_0x194ff5('0x3a')]('%s',_[_0x194ff5('0x64')](_0x1b7edd,_0x2d8ba4,_[_0x194ff5('0x47')](_0x101c49,_0xbe6cfc)));},exports[_0x431fc1('0x38')]=function(_0x11b832){const _0x90b1a7=_0x431fc1,_0x4d02b8=_0x11b832[_0x90b1a7('0x40')](/"(.*?)"/);return _0x4d02b8?_0x4d02b8[0x1]:_0x11b832;},exports['extractCalleridNumber']=function(_0x31909e){const _0x28fb26=_0x431fc1,_0x5afc1c=_0x31909e[_0x28fb26('0x40')](/<(.*?)>/);return _0x5afc1c?_0x5afc1c[0x1]:_0x31909e;}; \ No newline at end of file diff --git a/server/services/ami/properties.js b/server/services/ami/properties.js index 9c89ddd..274cd8c 100644 --- a/server/services/ami/properties.js +++ b/server/services/ami/properties.js @@ -1 +1 @@ -var a1090_0x55db=['voicechannel','boolean','queuepause','voicequeuechannelhangup','voicequeuechannel','queueremove','string','reload','number'];(function(_0x458151,_0x55db40){var _0x1fd548=function(_0x5498ff){while(--_0x5498ff){_0x458151['push'](_0x458151['shift']());}};_0x1fd548(++_0x55db40);}(a1090_0x55db,0x67));var a1090_0x1fd5=function(_0x458151,_0x55db40){_0x458151=_0x458151-0x0;var _0x1fd548=a1090_0x55db[_0x458151];return _0x1fd548;};var _0x150ace=a1090_0x1fd5;'use strict';exports['queueadd']={'queue':{'type':_0x150ace('0x2'),'required':!![]},'interface':{'type':_0x150ace('0x2'),'required':!![]},'membername':{'type':_0x150ace('0x2'),'required':!![]},'penalty':{'type':_0x150ace('0x4'),'required':![]},'paused':{'type':_0x150ace('0x6'),'required':![]}},exports[_0x150ace('0x1')]={'queue':{'type':_0x150ace('0x2'),'required':!![]},'interface':{'type':_0x150ace('0x2'),'required':!![]}},exports[_0x150ace('0x7')]={'interface':{'type':_0x150ace('0x2'),'required':!![]},'paused':{'type':_0x150ace('0x6')},'reason':{'type':_0x150ace('0x2'),'required':![]}},exports[_0x150ace('0x3')]={'module':{'type':_0x150ace('0x2'),'required':![]}},exports[_0x150ace('0x0')]={'uniqueid':{'type':_0x150ace('0x2'),'required':!![]}},exports[_0x150ace('0x5')]={'uniqueid':{'type':_0x150ace('0x2'),'required':!![]},'filename':{'type':_0x150ace('0x2')},'format':{'type':_0x150ace('0x2')},'mixmonitorid':{'type':_0x150ace('0x2')}},exports[_0x150ace('0x8')]={'uniqueid':{'type':_0x150ace('0x2'),'required':!![]}},exports['voicequeuechannelredirect']={'uniqueid':{'type':_0x150ace('0x2'),'required':!![]},'exten':{'type':'string','required':!![]},'context':{'type':_0x150ace('0x2')}}; \ No newline at end of file +var a1091_0x468c=['boolean','voicechannel','string','number','reload','queueremove','queueadd','voicequeuechannelredirect','queuepause'];(function(_0x59e81d,_0x468c78){var _0x3b6cac=function(_0x208c1e){while(--_0x208c1e){_0x59e81d['push'](_0x59e81d['shift']());}};_0x3b6cac(++_0x468c78);}(a1091_0x468c,0x1b1));var a1091_0x3b6c=function(_0x59e81d,_0x468c78){_0x59e81d=_0x59e81d-0x0;var _0x3b6cac=a1091_0x468c[_0x59e81d];return _0x3b6cac;};var _0x1e639a=a1091_0x3b6c;'use strict';exports[_0x1e639a('0x5')]={'queue':{'type':_0x1e639a('0x1'),'required':!![]},'interface':{'type':_0x1e639a('0x1'),'required':!![]},'membername':{'type':_0x1e639a('0x1'),'required':!![]},'penalty':{'type':_0x1e639a('0x2'),'required':![]},'paused':{'type':_0x1e639a('0x8'),'required':![]}},exports[_0x1e639a('0x4')]={'queue':{'type':_0x1e639a('0x1'),'required':!![]},'interface':{'type':_0x1e639a('0x1'),'required':!![]}},exports[_0x1e639a('0x7')]={'interface':{'type':_0x1e639a('0x1'),'required':!![]},'paused':{'type':_0x1e639a('0x8')},'reason':{'type':_0x1e639a('0x1'),'required':![]}},exports[_0x1e639a('0x3')]={'module':{'type':_0x1e639a('0x1'),'required':![]}},exports['voicequeuechannel']={'uniqueid':{'type':'string','required':!![]}},exports[_0x1e639a('0x0')]={'uniqueid':{'type':_0x1e639a('0x1'),'required':!![]},'filename':{'type':_0x1e639a('0x1')},'format':{'type':_0x1e639a('0x1')},'mixmonitorid':{'type':_0x1e639a('0x1')}},exports['voicequeuechannelhangup']={'uniqueid':{'type':_0x1e639a('0x1'),'required':!![]}},exports[_0x1e639a('0x6')]={'uniqueid':{'type':_0x1e639a('0x1'),'required':!![]},'exten':{'type':_0x1e639a('0x1'),'required':!![]},'context':{'type':_0x1e639a('0x1')}}; \ No newline at end of file diff --git a/server/services/ami/realtime/index.js b/server/services/ami/realtime/index.js index 313df68..a88f34e 100644 --- a/server/services/ami/realtime/index.js +++ b/server/services/ami/realtime/index.js @@ -1 +1 @@ -const a1091_0x7447=['faxAccounts','util','isNil','../model/deskAccount','initTriggers','sumDuration','../model/servicenowAccount','outboundRejectCallsDay','queuecallerleaveAt','outboundNoAnswerCallsDay','billableseconds','channels','queuecallerjoinAt','initVoiceQueueHopperHistory','duration','initAgents','SquareProject','voiceExtensions','SIP/%s','salesforceAccounts','trunks','outboundBlacklistCallsDay','ivrTotalCallsDays','outboundDropCallsDayCallersExit','queuecallerabandonAt','outboundUnknownCallsDay','outboundOriginateFailureCallsDay','initTemplates','groupBy','prototype','zohoAccounts','queuecallercompleteAt','isEmpty','outboundDropCallsDayTimeout','isUndefined','moment','deskAccounts','initTelephones','initDynamics365Accounts','voiceQueues','initVoiceCallReports','dialQueueProject','freshsalesAccounts','exports','../model/salesforceAccount','undefined','outbound','templates','outboundCongestionCallsDay','seconds','diff','vtigerAccounts','../model/trigger','total','initVtigerAccounts','sugarcrmAccounts','uniqueid','merge','../model/agent','timers','initVoiceQueueReports','../model/vtigerAccount','../model/template','triggers','queueChannels','../model/zendeskAccount','answered','queueStatusComplete','initVoiceQueues','interface','freshdeskAccounts','queuecallerexitAt','../model/voiceQueue','mapKeys','mergeFromDatabase','name','initFreshsalesAccounts','initSugarcrmAccounts','format','../model/dynamics365Account','sumHoldTime','outboundChannels','outboundNoSuchCallsDay','length','../model/campaign','initZohoAccounts','unmanaged','outboundAnswerAgiCallsDay','initDeskAccounts','abandoned','telephones','ANSWERED','initZendeskAccounts','zendeskAccounts','../model/sugarcrmAccount','ivrAnswerCallsDay','outboundReCallsDay','../model/trunk','dynamics365Accounts','servicenowAccounts','campaigns','initCampaignHopperHistory','sumBillable','agents','../model/voiceExtension','queuecallerexit'];(function(_0x175ada,_0x7447db){const _0x474418=function(_0x213fed){while(--_0x213fed){_0x175ada['push'](_0x175ada['shift']());}};_0x474418(++_0x7447db);}(a1091_0x7447,0xe5));const a1091_0x4744=function(_0x175ada,_0x7447db){_0x175ada=_0x175ada-0x0;let _0x474418=a1091_0x7447[_0x175ada];return _0x474418;};const _0x2e2436=a1091_0x4744;'use strict';const util=require(_0x2e2436('0x5a')),_=require('lodash'),moment=require(_0x2e2436('0x12')),Agent=require(_0x2e2436('0x29')),Telephone=require('../model/telephone'),Trunk=require(_0x2e2436('0x50')),VoiceQueue=require(_0x2e2436('0x37')),Trigger=require(_0x2e2436('0x23')),Template=require(_0x2e2436('0x2d')),Campaign=require(_0x2e2436('0x43')),VoiceExtension=require(_0x2e2436('0x57')),ZendeskAccount=require(_0x2e2436('0x30')),SalesforceAccount=require(_0x2e2436('0x1b')),FreshdeskAccount=require('../model/freshdeskAccount'),SugarcrmAccount=require(_0x2e2436('0x4d')),ZohoAccount=require('../model/zohoAccount'),DeskAccount=require(_0x2e2436('0x5c')),VtigerAccount=require(_0x2e2436('0x2c')),ServicenowAccount=require(_0x2e2436('0x5f')),Dynamics365Account=require(_0x2e2436('0x3e')),FreshsalesAccount=require('../model/freshsalesAccount'),FaxAccount=require('../model/faxAccount'),Realtime=function(){const _0xd2d65f=_0x2e2436;this[_0xd2d65f('0x56')]={},this['telephones']={},this[_0xd2d65f('0x3')]={},this[_0xd2d65f('0x16')]={},this['triggers']={},this['campaigns']={},this[_0xd2d65f('0x1e')]={},this[_0xd2d65f('0x1d')]={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this['voiceExtensions']={},this[_0xd2d65f('0x64')]={},this[_0xd2d65f('0x2f')]={},this[_0xd2d65f('0x40')]={},this[_0xd2d65f('0x2a')]={},this[_0xd2d65f('0x4c')]={},this[_0xd2d65f('0x2')]={},this[_0xd2d65f('0x26')]={},this[_0xd2d65f('0x35')]={},this[_0xd2d65f('0xd')]={},this[_0xd2d65f('0x13')]={},this['vtigerAccounts']={},this[_0xd2d65f('0x52')]={},this['dynamics365Accounts']={},this[_0xd2d65f('0x19')]={},this['faxAccounts']={};};function freeIsNotKey(_0x213fed,_0x5a5c68,_0xc1e19){const _0x3863ec=_0x2e2436,_0x5380da=_[_0x3863ec('0x38')](_0x213fed,function(_0x148781){return _0x148781[_0xc1e19];});for(const _0xafa315 in _0x5a5c68){typeof _0x5a5c68[_0xafa315]!==_0x3863ec('0x1c')&&(!_0x5380da[_0xafa315]&&delete _0x5a5c68[_0xafa315]);}}function freeIsNotKeySip(_0x34f18c,_0x132fe0){const _0x2d2518=_0x2e2436,_0x5b6c5f=_[_0x2d2518('0x38')](_0x34f18c,function(_0x1da681){const _0x12a673=_0x2d2518;return util['format'](_0x12a673('0x1'),_0x1da681[_0x12a673('0x3a')]);});for(const _0x7a0ec in _0x132fe0){typeof _0x132fe0[_0x7a0ec]!==_0x2d2518('0x1c')&&(!_0x5b6c5f[_0x7a0ec]&&delete _0x132fe0[_0x7a0ec]);}}function freeIsNotKeyAgent(_0x46ae22,_0x399abc){const _0x3061ba=_0x2e2436,_0x58d8a2=_[_0x3061ba('0x38')](_0x46ae22,function(_0x1ea035){const _0x19e70f=_0x3061ba,_0x54d613=_[_0x19e70f('0x5b')](_0x1ea035[_0x19e70f('0x34')])?util[_0x19e70f('0x3d')](_0x19e70f('0x1'),_0x1ea035[_0x19e70f('0x3a')]):_0x1ea035['interface'];return _0x54d613;});for(const _0x370244 in _0x399abc){typeof _0x399abc[_0x370244]!==_0x3061ba('0x1c')&&(!_0x58d8a2[_0x370244]&&delete _0x399abc[_0x370244]);}}function clearVoiceCallReports(_0x358c84){const _0x304de3=_0x2e2436;_0x358c84['total']=0x0,_0x358c84[_0x304de3('0x31')]=0x0,_0x358c84['sumHoldTime']=0x0,_0x358c84[_0x304de3('0x5e')]=0x0,_0x358c84[_0x304de3('0x55')]=0x0;}function clearCampaigns(_0x5e3d5b){const _0x2c6e0f=_0x2e2436;if(!_['isEmpty'](_0x5e3d5b))for(const _0x1af14e in _0x5e3d5b){typeof _0x5e3d5b[_0x1af14e]!==_0x2c6e0f('0x1c')&&(_0x5e3d5b[_0x1af14e][_0x2c6e0f('0x5')]=0x0,_0x5e3d5b[_0x1af14e][_0x2c6e0f('0x4e')]=0x0);}}function clearVoiceQueues(_0x1a7598){const _0x191e30=_0x2e2436;if(!_[_0x191e30('0xf')](_0x1a7598))for(const _0x4fbff4 in _0x1a7598){typeof _0x1a7598[_0x4fbff4]!=='undefined'&&(_0x1a7598[_0x4fbff4][_0x191e30('0x24')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x31')]=0x0,_0x1a7598[_0x4fbff4]['unmanaged']=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x48')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x3f')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x5e')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x55')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x46')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x62')]=0x0,_0x1a7598[_0x4fbff4]['outboundBusyCallsDay']=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x1f')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x41')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x8')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x10')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x6')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x4')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x9')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x60')]=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x4f')]=0x0,_0x1a7598[_0x4fbff4]['outboundAnswerAgiCallsDay']=0x0,_0x1a7598[_0x4fbff4]['outboundAnswerCallsDay']=0x0,_0x1a7598[_0x4fbff4][_0x191e30('0x32')]=!![]);}}Realtime[_0x2e2436('0xc')]['mergeFromDatabase']=function(_0x16ac4e,_0x3e4e77){const _0x3ea4ff=_0x2e2436;for(const _0x393f14 in _0x3e4e77){typeof _0x16ac4e[_0x393f14]!==_0x3ea4ff('0x1c')&&(_0x16ac4e[_0x393f14]=_0x3e4e77[_0x393f14]);}},Realtime[_0x2e2436('0xc')][_0x2e2436('0x68')]=function(){const _0x1eb4ce=this;return function(_0x4ff55a){const _0xf9528b=a1091_0x4744;if(_0x4ff55a){freeIsNotKeyAgent(_0x4ff55a,_0x1eb4ce[_0xf9528b('0x56')]);for(let _0xe59e4f=0x0,_0x1ecc21={};_0xe59e4f<_0x4ff55a[_0xf9528b('0x42')];_0xe59e4f+=0x1){_0x1ecc21=_0x4ff55a[_0xe59e4f];const _0x2e9738=_['isNil'](_0x1ecc21[_0xf9528b('0x34')])?util[_0xf9528b('0x3d')](_0xf9528b('0x1'),_0x1ecc21[_0xf9528b('0x3a')]):_0x1ecc21[_0xf9528b('0x34')];_['isUndefined'](_0x1eb4ce[_0xf9528b('0x56')][_0x2e9738])?_0x1eb4ce['agents'][_0x2e9738]=new Agent(_0x1ecc21):_0x1eb4ce['mergeFromDatabase'](_0x1eb4ce['agents'][_0x2e9738],_0x1ecc21);}}return _0x1eb4ce[_0xf9528b('0x56')];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x14')]=function(){const _0x27f09e=this;return function(_0x32016f){const _0x9ca2c7=a1091_0x4744;if(_0x32016f){freeIsNotKeySip(_0x32016f,_0x27f09e[_0x9ca2c7('0x49')]);for(let _0x7c6db2=0x0,_0x144d48={};_0x7c6db2<_0x32016f[_0x9ca2c7('0x42')];_0x7c6db2+=0x1){_0x144d48=_0x32016f[_0x7c6db2],_[_0x9ca2c7('0x11')](_0x27f09e[_0x9ca2c7('0x49')][util['format'](_0x9ca2c7('0x1'),_0x144d48[_0x9ca2c7('0x3a')])])?_0x27f09e[_0x9ca2c7('0x49')][util['format']('SIP/%s',_0x144d48[_0x9ca2c7('0x3a')])]=new Telephone(_0x144d48):_0x27f09e[_0x9ca2c7('0x39')](_0x27f09e['telephones'][util['format']('SIP/%s',_0x144d48[_0x9ca2c7('0x3a')])],_0x144d48);}}return _0x27f09e['telephones'];};},Realtime['prototype']['initTrunks']=function(){const _0x534f8d=this;return function(_0x31c88e){const _0x36b947=a1091_0x4744;if(_0x31c88e){freeIsNotKeySip(_0x31c88e,_0x534f8d['trunks']);for(let _0x58f22e=0x0,_0x3436fa={};_0x58f22e<_0x31c88e[_0x36b947('0x42')];_0x58f22e+=0x1){_0x3436fa=_0x31c88e[_0x58f22e],_[_0x36b947('0x11')](_0x534f8d['trunks'][util[_0x36b947('0x3d')]('SIP/%s',_0x3436fa[_0x36b947('0x3a')])])?_0x534f8d[_0x36b947('0x3')][util['format']('SIP/%s',_0x3436fa['name'])]=new Trunk(_0x3436fa):_0x534f8d[_0x36b947('0x39')](_0x534f8d['trunks'][util[_0x36b947('0x3d')](_0x36b947('0x1'),_0x3436fa[_0x36b947('0x3a')])],_0x3436fa);}}return _0x534f8d['trunks'];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x33')]=function(){const _0x2c7abf=this;return function(_0x389d66){const _0x46eee7=a1091_0x4744;if(_0x389d66){freeIsNotKey(_0x389d66,_0x2c7abf[_0x46eee7('0x16')],_0x46eee7('0x3a'));for(let _0x586ca9=0x0,_0x227405={};_0x586ca9<_0x389d66['length'];_0x586ca9+=0x1){_0x227405=_0x389d66[_0x586ca9],_[_0x46eee7('0x11')](_0x2c7abf[_0x46eee7('0x16')][_0x227405[_0x46eee7('0x3a')]])?_0x2c7abf['voiceQueues'][_0x227405['name']]=new VoiceQueue(_0x227405):_0x2c7abf[_0x46eee7('0x39')](_0x2c7abf[_0x46eee7('0x16')][_0x227405['name']],_0x227405);}}return _0x2c7abf[_0x46eee7('0x16')];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x5d')]=function(){const _0x4b3471=this;return function(_0xa784af){const _0x112c40=a1091_0x4744;if(_0xa784af){freeIsNotKey(_0xa784af,_0x4b3471['triggers'],'id');for(let _0x407c52=0x0,_0x3004c0={};_0x407c52<_0xa784af[_0x112c40('0x42')];_0x407c52+=0x1){_0x3004c0=_0xa784af[_0x407c52],_[_0x112c40('0x11')](_0x4b3471[_0x112c40('0x2e')][_0x3004c0['id']])?_0x4b3471[_0x112c40('0x2e')][_0x3004c0['id']]=new Trigger(_0x3004c0):_0x4b3471[_0x112c40('0x39')](_0x4b3471['triggers'][_0x3004c0['id']],_0x3004c0);}}return _0x4b3471[_0x112c40('0x2e')];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0xa')]=function(){const _0x4a6a93=this;return function(_0x38950e){const _0x465223=a1091_0x4744;if(_0x38950e){freeIsNotKey(_0x38950e,_0x4a6a93[_0x465223('0x1e')],'id');for(let _0x4b926f=0x0,_0x1194ce={};_0x4b926f<_0x38950e[_0x465223('0x42')];_0x4b926f+=0x1){_0x1194ce=_0x38950e[_0x4b926f],_[_0x465223('0x11')](_0x4a6a93[_0x465223('0x1e')][_0x1194ce['id']])?_0x4a6a93[_0x465223('0x1e')][_0x1194ce['id']]=new Template(_0x1194ce):_0x4a6a93[_0x465223('0x39')](_0x4a6a93[_0x465223('0x1e')][_0x1194ce['id']],_0x1194ce);}}return _0x4a6a93[_0x465223('0x1e')];};},Realtime['prototype'][_0x2e2436('0x4b')]=function(){const _0xf87c64=this;return function(_0xca4408){const _0x34415e=a1091_0x4744;if(_0xca4408){freeIsNotKey(_0xca4408,_0xf87c64['zendeskAccounts'],'id');for(let _0x3de85c=0x0,_0x15d45a={};_0x3de85c<_0xca4408[_0x34415e('0x42')];_0x3de85c+=0x1){_0x15d45a=_0xca4408[_0x3de85c],_[_0x34415e('0x11')](_0xf87c64[_0x34415e('0x4c')][_0x15d45a['id']])?_0xf87c64[_0x34415e('0x4c')][_0x15d45a['id']]=new ZendeskAccount(_0x15d45a):_0xf87c64['mergeFromDatabase'](_0xf87c64[_0x34415e('0x4c')][_0x15d45a['id']],_0x15d45a);}}return _0xf87c64[_0x34415e('0x4c')];};},Realtime[_0x2e2436('0xc')]['initSalesforceAccounts']=function(){const _0x3c339c=this;return function(_0x3c59e6){const _0x3987d7=a1091_0x4744;if(_0x3c59e6){freeIsNotKey(_0x3c59e6,_0x3c339c[_0x3987d7('0x2')],'id');for(let _0x1e5264=0x0,_0x2ae3eb={};_0x1e5264<_0x3c59e6[_0x3987d7('0x42')];_0x1e5264+=0x1){_0x2ae3eb=_0x3c59e6[_0x1e5264],_['isUndefined'](_0x3c339c[_0x3987d7('0x2')][_0x2ae3eb['id']])?_0x3c339c[_0x3987d7('0x2')][_0x2ae3eb['id']]=new SalesforceAccount(_0x2ae3eb):_0x3c339c[_0x3987d7('0x39')](_0x3c339c[_0x3987d7('0x2')][_0x2ae3eb['id']],_0x2ae3eb);}}return _0x3c339c[_0x3987d7('0x2')];};},Realtime[_0x2e2436('0xc')]['initFreshdeskAccounts']=function(){const _0x355262=this;return function(_0x156c4d){const _0x5b0646=a1091_0x4744;if(_0x156c4d){freeIsNotKey(_0x156c4d,_0x355262[_0x5b0646('0x35')],'id');for(let _0x287de4=0x0,_0x87e130={};_0x287de4<_0x156c4d[_0x5b0646('0x42')];_0x287de4+=0x1){_0x87e130=_0x156c4d[_0x287de4],_['isUndefined'](_0x355262[_0x5b0646('0x35')][_0x87e130['id']])?_0x355262[_0x5b0646('0x35')][_0x87e130['id']]=new FreshdeskAccount(_0x87e130):_0x355262[_0x5b0646('0x39')](_0x355262[_0x5b0646('0x35')][_0x87e130['id']],_0x87e130);}}return _0x355262[_0x5b0646('0x35')];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x44')]=function(){const _0x82970d=this;return function(_0x147160){const _0x36f4e0=a1091_0x4744;if(_0x147160){freeIsNotKey(_0x147160,_0x82970d['zohoAccounts'],'id');for(let _0x58bef8=0x0,_0x279635={};_0x58bef8<_0x147160['length'];_0x58bef8+=0x1){_0x279635=_0x147160[_0x58bef8],_['isUndefined'](_0x82970d[_0x36f4e0('0xd')][_0x279635['id']])?_0x82970d[_0x36f4e0('0xd')][_0x279635['id']]=new ZohoAccount(_0x279635):_0x82970d[_0x36f4e0('0x39')](_0x82970d['zohoAccounts'][_0x279635['id']],_0x279635);}}return _0x82970d[_0x36f4e0('0xd')];};},Realtime['prototype'][_0x2e2436('0x47')]=function(){const _0x22ac88=this;return function(_0x37b22a){const _0x16de67=a1091_0x4744;if(_0x37b22a){freeIsNotKey(_0x37b22a,_0x22ac88[_0x16de67('0x13')],'id');for(let _0x5af81d=0x0,_0x4cfa4c={};_0x5af81d<_0x37b22a[_0x16de67('0x42')];_0x5af81d+=0x1){_0x4cfa4c=_0x37b22a[_0x5af81d],_[_0x16de67('0x11')](_0x22ac88[_0x16de67('0x13')][_0x4cfa4c['id']])?_0x22ac88[_0x16de67('0x13')][_0x4cfa4c['id']]=new DeskAccount(_0x4cfa4c):_0x22ac88['mergeFromDatabase'](_0x22ac88[_0x16de67('0x13')][_0x4cfa4c['id']],_0x4cfa4c);}}return _0x22ac88[_0x16de67('0x13')];};},Realtime['prototype'][_0x2e2436('0x3c')]=function(){const _0x1a7885=this;return function(_0x2f2079){const _0x7dbb92=a1091_0x4744;if(_0x2f2079){freeIsNotKey(_0x2f2079,_0x1a7885[_0x7dbb92('0x26')],'id');for(let _0x53ae91=0x0,_0x29e6b9={};_0x53ae91<_0x2f2079[_0x7dbb92('0x42')];_0x53ae91+=0x1){_0x29e6b9=_0x2f2079[_0x53ae91],_['isUndefined'](_0x1a7885['sugarcrmAccounts'][_0x29e6b9['id']])?_0x1a7885[_0x7dbb92('0x26')][_0x29e6b9['id']]=new SugarcrmAccount(_0x29e6b9):_0x1a7885[_0x7dbb92('0x39')](_0x1a7885[_0x7dbb92('0x26')][_0x29e6b9['id']],_0x29e6b9);}}return _0x1a7885[_0x7dbb92('0x26')];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x25')]=function(){const _0x17ae60=this;return function(_0x113f73){const _0x5493de=a1091_0x4744;if(_0x113f73){freeIsNotKey(_0x113f73,_0x17ae60[_0x5493de('0x22')],'id');for(let _0x511ddb=0x0,_0x3c6e1b={};_0x511ddb<_0x113f73[_0x5493de('0x42')];_0x511ddb+=0x1){_0x3c6e1b=_0x113f73[_0x511ddb],_['isUndefined'](_0x17ae60[_0x5493de('0x22')][_0x3c6e1b['id']])?_0x17ae60[_0x5493de('0x22')][_0x3c6e1b['id']]=new VtigerAccount(_0x3c6e1b):_0x17ae60[_0x5493de('0x39')](_0x17ae60[_0x5493de('0x22')][_0x3c6e1b['id']],_0x3c6e1b);}}return _0x17ae60[_0x5493de('0x22')];};},Realtime['prototype']['initServicenowAccounts']=function(){const _0x57a943=this;return function(_0xec57f1){const _0x4c3b98=a1091_0x4744;if(_0xec57f1){freeIsNotKey(_0xec57f1,_0x57a943[_0x4c3b98('0x52')],'id');for(let _0x1a3a24=0x0,_0x2838ef={};_0x1a3a24<_0xec57f1[_0x4c3b98('0x42')];_0x1a3a24+=0x1){_0x2838ef=_0xec57f1[_0x1a3a24],_['isUndefined'](_0x57a943['servicenowAccounts'][_0x2838ef['id']])?_0x57a943[_0x4c3b98('0x52')][_0x2838ef['id']]=new ServicenowAccount(_0x2838ef):_0x57a943[_0x4c3b98('0x39')](_0x57a943['servicenowAccounts'][_0x2838ef['id']],_0x2838ef);}}return _0x57a943[_0x4c3b98('0x52')];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x15')]=function(){const _0x3b13ac=this;return function(_0x267464){const _0x1f8738=a1091_0x4744;if(_0x267464){freeIsNotKey(_0x267464,_0x3b13ac['dynamics365Accounts'],'id');for(let _0x300f74=0x0,_0x4d6e6f={};_0x300f74<_0x267464[_0x1f8738('0x42')];_0x300f74+=0x1){_0x4d6e6f=_0x267464[_0x300f74],_['isUndefined'](_0x3b13ac[_0x1f8738('0x51')][_0x4d6e6f['id']])?_0x3b13ac[_0x1f8738('0x51')][_0x4d6e6f['id']]=new Dynamics365Account(_0x4d6e6f):_0x3b13ac[_0x1f8738('0x39')](_0x3b13ac[_0x1f8738('0x51')][_0x4d6e6f['id']],_0x4d6e6f);}}return _0x3b13ac[_0x1f8738('0x51')];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x3b')]=function(){const _0x552540=this;return function(_0x41a897){const _0x4a6ed3=a1091_0x4744;if(_0x41a897){freeIsNotKey(_0x41a897,_0x552540['freshsalesAccounts'],'id');for(let _0x49dcd0=0x0,_0xae381e={};_0x49dcd0<_0x41a897[_0x4a6ed3('0x42')];_0x49dcd0+=0x1){_0xae381e=_0x41a897[_0x49dcd0],_[_0x4a6ed3('0x11')](_0x552540[_0x4a6ed3('0x19')][_0xae381e['id']])?_0x552540[_0x4a6ed3('0x19')][_0xae381e['id']]=new FreshsalesAccount(_0xae381e):_0x552540[_0x4a6ed3('0x39')](_0x552540[_0x4a6ed3('0x19')][_0xae381e['id']],_0xae381e);}}return _0x552540['freshsalesAccounts'];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x66')]=function(){const _0x5169ee=this;return function(_0x43be82){const _0x2d75d1=a1091_0x4744;for(let _0x4e172a=0x0;_0x4e172a<_0x43be82[_0x2d75d1('0x42')];_0x4e172a+=0x1){_['merge'](_0x5169ee[_0x2d75d1('0x16')][_0x43be82[_0x4e172a][_0x2d75d1('0x3a')]],_0x43be82[_0x4e172a]);}return _0x5169ee['voiceQueues'];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x2b')]=function(){const _0x2e7881=this;return function(_0x3ade8f){const _0x5cd9db=a1091_0x4744;clearVoiceQueues(_0x2e7881[_0x5cd9db('0x16')]);if(_0x3ade8f){_0x3ade8f=_[_0x5cd9db('0xb')](_0x3ade8f,_0x5cd9db('0x27'));for(const _0x883f4f in _0x3ade8f){if(typeof _0x3ade8f[_0x883f4f]!=='undefined')for(let _0x35987b=0x0;_0x35987b<_0x3ade8f[_0x883f4f][_0x5cd9db('0x42')];_0x35987b+=0x1){const _0x126237=_0x3ade8f[_0x883f4f][_0x35987b]['queue'];_0x2e7881[_0x5cd9db('0x16')][_0x126237]&&(_0x3ade8f[_0x883f4f][_0x35987b][_0x5cd9db('0x58')]&&(_0x2e7881[_0x5cd9db('0x16')][_0x126237][_0x5cd9db('0x45')]+=0x1),_0x3ade8f[_0x883f4f][_0x35987b]['queuecallerabandon']&&(_0x2e7881[_0x5cd9db('0x16')][_0x126237][_0x5cd9db('0x48')]+=0x1),_0x2e7881[_0x5cd9db('0x16')][_0x126237][_0x5cd9db('0x3f')]+=moment(_0x3ade8f[_0x883f4f][_0x35987b][_0x5cd9db('0x61')])[_0x5cd9db('0x21')](moment(_0x3ade8f[_0x883f4f][_0x35987b][_0x5cd9db('0x65')]),'seconds')||0x0,_0x35987b===_0x3ade8f[_0x883f4f][_0x5cd9db('0x42')]-0x1?(_0x2e7881[_0x5cd9db('0x16')][_0x126237][_0x5cd9db('0x5e')]+=moment(_0x3ade8f[_0x883f4f][_0x35987b][_0x5cd9db('0xe')]||_0x3ade8f[_0x883f4f][_0x35987b][_0x5cd9db('0x7')]||_0x3ade8f[_0x883f4f][_0x35987b][_0x5cd9db('0x36')])['diff'](moment(_0x3ade8f[_0x883f4f][_0x35987b][_0x5cd9db('0x65')]),_0x5cd9db('0x20'))||0x0,_0x2e7881['voiceQueues'][_0x126237][_0x5cd9db('0x24')]+=0x1,_0x3ade8f[_0x883f4f][_0x35987b]['queuecallercomplete']&&(_0x2e7881[_0x5cd9db('0x16')][_0x126237][_0x5cd9db('0x31')]+=0x1,_0x2e7881['voiceQueues'][_0x126237][_0x5cd9db('0x55')]+=moment(_0x3ade8f[_0x883f4f][_0x35987b]['queuecallercompleteAt'])[_0x5cd9db('0x21')](moment(_0x3ade8f[_0x883f4f][_0x35987b][_0x5cd9db('0x61')]),_0x5cd9db('0x20'))||0x0)):_0x2e7881[_0x5cd9db('0x16')][_0x126237][_0x5cd9db('0x5e')]+=_0x2e7881['voiceQueues'][_0x126237][_0x5cd9db('0x3f')]||0x0);}}}return _0x2e7881[_0x5cd9db('0x16')];};},Realtime[_0x2e2436('0xc')][_0x2e2436('0x17')]=function(){const _0x405591=this;return function(_0x37bdef){const _0x1a8fb1=a1091_0x4744;clearVoiceCallReports(_0x405591[_0x1a8fb1('0x1d')]);if(_0x37bdef)for(let _0x3b8aaa=0x0;_0x3b8aaa<_0x37bdef['length'];_0x3b8aaa+=0x1){_0x405591[_0x1a8fb1('0x1d')][_0x1a8fb1('0x24')]+=0x1,_0x405591[_0x1a8fb1('0x1d')][_0x1a8fb1('0x5e')]+=_0x37bdef[_0x3b8aaa]['duration'],_0x37bdef[_0x3b8aaa]['disposition']===_0x1a8fb1('0x4a')&&(_0x405591[_0x1a8fb1('0x1d')][_0x1a8fb1('0x31')]+=0x1,_0x405591[_0x1a8fb1('0x1d')][_0x1a8fb1('0x3f')]+=_0x37bdef[_0x3b8aaa][_0x1a8fb1('0x67')]-_0x37bdef[_0x3b8aaa]['billableseconds']||0x0,_0x405591[_0x1a8fb1('0x1d')][_0x1a8fb1('0x55')]+=_0x37bdef[_0x3b8aaa][_0x1a8fb1('0x63')]);}return _0x405591['outbound'];};},Realtime[_0x2e2436('0xc')]['initCampaigns']=function(){const _0x229b5=this;return function(_0xe5a1bf){const _0x1808fe=a1091_0x4744;if(_0xe5a1bf){freeIsNotKey(_0xe5a1bf,_0x229b5['campaigns'],_0x1808fe('0x3a'));for(let _0x4550f3=0x0,_0x29bda9={};_0x4550f3<_0xe5a1bf['length'];_0x4550f3+=0x1){_0x29bda9=_0xe5a1bf[_0x4550f3],_[_0x1808fe('0x11')](_0x229b5[_0x1808fe('0x53')][_0x29bda9['name']])?_0x229b5[_0x1808fe('0x53')][_0x29bda9['name']]=new Campaign(_0x29bda9):(_0x229b5['mergeFromDatabase'](_0x229b5[_0x1808fe('0x53')][_0x29bda9[_0x1808fe('0x3a')]],_0x29bda9),_0x229b5[_0x1808fe('0x53')][_0x29bda9['name']][_0x1808fe('0x18')]=_0x29bda9[_0x1808fe('0x69')]?_0x29bda9[_0x1808fe('0x69')][_0x1808fe('0x3a')]:undefined);}}return _0x229b5[_0x1808fe('0x53')];};},Realtime[_0x2e2436('0xc')]['initVoiceExtensions']=function(){const _0x59fead=this;return function(_0x51d3d3){const _0x5d0841=a1091_0x4744;if(_0x51d3d3){freeIsNotKey(_0x51d3d3,_0x59fead[_0x5d0841('0x0')],'id');for(let _0x10c0d9=0x0,_0x2691a0={};_0x10c0d9<_0x51d3d3[_0x5d0841('0x42')];_0x10c0d9+=0x1){_0x2691a0=_0x51d3d3[_0x10c0d9],_[_0x5d0841('0x11')](_0x59fead[_0x5d0841('0x0')][_0x2691a0['id']])?_0x59fead[_0x5d0841('0x0')][_0x2691a0['id']]=new VoiceExtension(_0x2691a0):_0x59fead[_0x5d0841('0x39')](_0x59fead['voiceExtensions'][_0x2691a0['id']],_0x2691a0);}}return _0x59fead['voiceExtensions'];};},Realtime['prototype'][_0x2e2436('0x54')]=function(){const _0x1e0112=this;return function(_0x4fa223){const _0x329ee2=a1091_0x4744;clearCampaigns(_0x1e0112['campaigns']);for(let _0x586faa=0x0;_0x586faa<_0x4fa223[_0x329ee2('0x42')];_0x586faa+=0x1){_[_0x329ee2('0x28')](_0x1e0112[_0x329ee2('0x53')][_0x4fa223[_0x586faa]['name']],_0x4fa223[_0x586faa]);}return _0x1e0112[_0x329ee2('0x53')];};},Realtime[_0x2e2436('0xc')]['initFaxAccounts']=function(){const _0x2068c6=this;return function(_0x48964d){const _0x81f5cf=a1091_0x4744;if(_0x48964d){freeIsNotKey(_0x48964d,_0x2068c6[_0x81f5cf('0x59')],'id');for(let _0x1ba249=0x0,_0x2794f1={};_0x1ba249<_0x48964d[_0x81f5cf('0x42')];_0x1ba249+=0x1){_0x2794f1=_0x48964d[_0x1ba249],_[_0x81f5cf('0x11')](_0x2068c6[_0x81f5cf('0x59')][_0x2794f1['id']])?_0x2068c6['faxAccounts'][_0x2794f1['id']]=new FaxAccount(_0x2794f1):_0x2068c6['mergeFromDatabase'](_0x2068c6['faxAccounts'][_0x2794f1['id']],_0x2794f1);}}return _0x2068c6['faxAccounts'];};},module[_0x2e2436('0x1a')]=Realtime; \ No newline at end of file +const a1092_0x1f02=['faxAccounts','outboundNoAnswerCallsDay','mergeFromDatabase','uniqueid','outboundChannels','sugarcrmAccounts','ANSWERED','total','name','../model/dynamics365Account','outboundBusyCallsDay','outboundNoSuchCallsDay','../model/zendeskAccount','outboundAnswerAgiCallsDay','queue','answered','../model/template','initVoiceQueues','exports','outboundOriginateFailureCallsDay','length','outbound','initServicenowAccounts','../model/vtigerAccount','outboundRejectCallsDay','../model/voiceQueue','voiceExtensions','channels','initZohoAccounts','isUndefined','triggers','vtigerAccounts','zohoAccounts','../model/faxAccount','templates','outboundCongestionCallsDay','queuecallerjoinAt','initSalesforceAccounts','queueChannels','util','SIP/%s','queuecallercompleteAt','../model/freshdeskAccount','freshdeskAccounts','../model/salesforceAccount','groupBy','campaigns','initAgents','ivrTotalCallsDays','salesforceAccounts','deskAccounts','initVoiceQueueHopperHistory','lodash','abandoned','queueStatusComplete','format','diff','queuecallercomplete','initSugarcrmAccounts','zendeskAccounts','sumDuration','voiceQueues','../model/freshsalesAccount','agents','unmanaged','initFreshdeskAccounts','initVoiceCallReports','initTelephones','../model/sugarcrmAccount','initFaxAccounts','dynamics365Accounts','initTrunks','../model/trigger','isEmpty','SquareProject','outboundDropCallsDayCallersExit','moment','freshsalesAccounts','outboundReCallsDay','prototype','seconds','servicenowAccounts','queuecallerabandon','initZendeskAccounts','outboundBlacklistCallsDay','../model/servicenowAccount','mapKeys','../model/voiceExtension','outboundAnswerCallsDay','telephones','sumBillable','merge','interface','../model/campaign','undefined','dialQueueProject','timers','trunks','../model/zohoAccount','initTriggers','../model/trunk','sumHoldTime','duration','initDynamics365Accounts'];(function(_0x2fd2d4,_0x1f02de){const _0x16a519=function(_0x5089c6){while(--_0x5089c6){_0x2fd2d4['push'](_0x2fd2d4['shift']());}};_0x16a519(++_0x1f02de);}(a1092_0x1f02,0xb3));const a1092_0x16a5=function(_0x2fd2d4,_0x1f02de){_0x2fd2d4=_0x2fd2d4-0x0;let _0x16a519=a1092_0x1f02[_0x2fd2d4];return _0x16a519;};const _0x228d24=a1092_0x16a5;'use strict';const util=require(_0x228d24('0x44')),_=require(_0x228d24('0x51')),moment=require(_0x228d24('0x1')),Agent=require('../model/agent'),Telephone=require('../model/telephone'),Trunk=require(_0x228d24('0x19')),VoiceQueue=require(_0x228d24('0x36')),Trigger=require(_0x228d24('0x65')),Template=require(_0x228d24('0x2d')),Campaign=require(_0x228d24('0x12')),VoiceExtension=require(_0x228d24('0xc')),ZendeskAccount=require(_0x228d24('0x29')),SalesforceAccount=require(_0x228d24('0x49')),FreshdeskAccount=require(_0x228d24('0x47')),SugarcrmAccount=require(_0x228d24('0x61')),ZohoAccount=require(_0x228d24('0x17')),DeskAccount=require('../model/deskAccount'),VtigerAccount=require(_0x228d24('0x34')),ServicenowAccount=require(_0x228d24('0xa')),Dynamics365Account=require(_0x228d24('0x26')),FreshsalesAccount=require(_0x228d24('0x5b')),FaxAccount=require(_0x228d24('0x3e')),Realtime=function(){const _0x35a200=_0x228d24;this['agents']={},this[_0x35a200('0xe')]={},this['trunks']={},this[_0x35a200('0x5a')]={},this[_0x35a200('0x3b')]={},this[_0x35a200('0x4b')]={},this[_0x35a200('0x3f')]={},this['outbound']={'total':0x0,'answered':0x0,'sumHoldTime':0x0,'sumDuration':0x0,'sumBillable':0x0},this[_0x35a200('0x37')]={},this[_0x35a200('0x38')]={},this[_0x35a200('0x43')]={},this[_0x35a200('0x21')]={},this[_0x35a200('0x15')]={},this[_0x35a200('0x58')]={},this[_0x35a200('0x4e')]={},this[_0x35a200('0x22')]={},this[_0x35a200('0x48')]={},this[_0x35a200('0x3d')]={},this[_0x35a200('0x4f')]={},this[_0x35a200('0x3c')]={},this[_0x35a200('0x6')]={},this[_0x35a200('0x63')]={},this[_0x35a200('0x2')]={},this['faxAccounts']={};};function freeIsNotKey(_0x5089c6,_0x2f8de0,_0x10eea8){const _0x509a1e=_0x228d24,_0x18b31c=_[_0x509a1e('0xb')](_0x5089c6,function(_0x25fa32){return _0x25fa32[_0x10eea8];});for(const _0x3c763e in _0x2f8de0){typeof _0x2f8de0[_0x3c763e]!=='undefined'&&(!_0x18b31c[_0x3c763e]&&delete _0x2f8de0[_0x3c763e]);}}function freeIsNotKeySip(_0x4afcba,_0x40b96a){const _0xdeed81=_0x228d24,_0x32e19d=_[_0xdeed81('0xb')](_0x4afcba,function(_0x334ede){const _0x53ef76=_0xdeed81;return util[_0x53ef76('0x54')]('SIP/%s',_0x334ede[_0x53ef76('0x25')]);});for(const _0x276e09 in _0x40b96a){typeof _0x40b96a[_0x276e09]!==_0xdeed81('0x13')&&(!_0x32e19d[_0x276e09]&&delete _0x40b96a[_0x276e09]);}}function freeIsNotKeyAgent(_0x447d17,_0x2bf81f){const _0x5ace35=_0x228d24,_0x118791=_[_0x5ace35('0xb')](_0x447d17,function(_0x389148){const _0x19ea8c=_0x5ace35,_0x160e5c=_['isNil'](_0x389148['interface'])?util[_0x19ea8c('0x54')]('SIP/%s',_0x389148[_0x19ea8c('0x25')]):_0x389148['interface'];return _0x160e5c;});for(const _0x121866 in _0x2bf81f){typeof _0x2bf81f[_0x121866]!==_0x5ace35('0x13')&&(!_0x118791[_0x121866]&&delete _0x2bf81f[_0x121866]);}}function clearVoiceCallReports(_0x28c668){const _0x26aa0b=_0x228d24;_0x28c668[_0x26aa0b('0x24')]=0x0,_0x28c668[_0x26aa0b('0x2c')]=0x0,_0x28c668[_0x26aa0b('0x1a')]=0x0,_0x28c668[_0x26aa0b('0x59')]=0x0,_0x28c668['sumBillable']=0x0;}function clearCampaigns(_0x341bb3){const _0x3a9494=_0x228d24;if(!_[_0x3a9494('0x66')](_0x341bb3))for(const _0x29cde9 in _0x341bb3){typeof _0x341bb3[_0x29cde9]!=='undefined'&&(_0x341bb3[_0x29cde9][_0x3a9494('0x4d')]=0x0,_0x341bb3[_0x29cde9]['ivrAnswerCallsDay']=0x0);}}function clearVoiceQueues(_0x3c351a){const _0x145f09=_0x228d24;if(!_['isEmpty'](_0x3c351a))for(const _0x1242a5 in _0x3c351a){typeof _0x3c351a[_0x1242a5]!==_0x145f09('0x13')&&(_0x3c351a[_0x1242a5][_0x145f09('0x24')]=0x0,_0x3c351a[_0x1242a5]['answered']=0x0,_0x3c351a[_0x1242a5]['unmanaged']=0x0,_0x3c351a[_0x1242a5]['abandoned']=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x1a')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x59')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0xf')]=0x0,_0x3c351a[_0x1242a5]['outboundAnswerAgiCallsDay']=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x1e')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x27')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x40')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x28')]=0x0,_0x3c351a[_0x1242a5]['outboundUnknownCallsDay']=0x0,_0x3c351a[_0x1242a5]['outboundDropCallsDayTimeout']=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x0')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x9')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x30')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x35')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x3')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x2a')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0xd')]=0x0,_0x3c351a[_0x1242a5][_0x145f09('0x53')]=!![]);}}Realtime[_0x228d24('0x4')][_0x228d24('0x1f')]=function(_0x1f0b58,_0x3721af){const _0x25deec=_0x228d24;for(const _0x5993a4 in _0x3721af){typeof _0x1f0b58[_0x5993a4]!==_0x25deec('0x13')&&(_0x1f0b58[_0x5993a4]=_0x3721af[_0x5993a4]);}},Realtime[_0x228d24('0x4')][_0x228d24('0x4c')]=function(){const _0x233e8f=this;return function(_0x42cbcc){const _0x4b8363=a1092_0x16a5;if(_0x42cbcc){freeIsNotKeyAgent(_0x42cbcc,_0x233e8f[_0x4b8363('0x5c')]);for(let _0x3a4d2f=0x0,_0x4a566c={};_0x3a4d2f<_0x42cbcc[_0x4b8363('0x31')];_0x3a4d2f+=0x1){_0x4a566c=_0x42cbcc[_0x3a4d2f];const _0x1c52b0=_['isNil'](_0x4a566c['interface'])?util[_0x4b8363('0x54')](_0x4b8363('0x45'),_0x4a566c[_0x4b8363('0x25')]):_0x4a566c[_0x4b8363('0x11')];_['isUndefined'](_0x233e8f[_0x4b8363('0x5c')][_0x1c52b0])?_0x233e8f[_0x4b8363('0x5c')][_0x1c52b0]=new Agent(_0x4a566c):_0x233e8f[_0x4b8363('0x1f')](_0x233e8f[_0x4b8363('0x5c')][_0x1c52b0],_0x4a566c);}}return _0x233e8f[_0x4b8363('0x5c')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x60')]=function(){const _0x448f6c=this;return function(_0x35dbea){const _0x55a54f=a1092_0x16a5;if(_0x35dbea){freeIsNotKeySip(_0x35dbea,_0x448f6c['telephones']);for(let _0x59379a=0x0,_0x2127c5={};_0x59379a<_0x35dbea[_0x55a54f('0x31')];_0x59379a+=0x1){_0x2127c5=_0x35dbea[_0x59379a],_[_0x55a54f('0x3a')](_0x448f6c['telephones'][util['format'](_0x55a54f('0x45'),_0x2127c5[_0x55a54f('0x25')])])?_0x448f6c[_0x55a54f('0xe')][util['format'](_0x55a54f('0x45'),_0x2127c5['name'])]=new Telephone(_0x2127c5):_0x448f6c[_0x55a54f('0x1f')](_0x448f6c[_0x55a54f('0xe')][util[_0x55a54f('0x54')](_0x55a54f('0x45'),_0x2127c5[_0x55a54f('0x25')])],_0x2127c5);}}return _0x448f6c[_0x55a54f('0xe')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x64')]=function(){const _0x3fecbd=this;return function(_0x40073b){const _0x5a48f6=a1092_0x16a5;if(_0x40073b){freeIsNotKeySip(_0x40073b,_0x3fecbd[_0x5a48f6('0x16')]);for(let _0x3c5061=0x0,_0x4d6842={};_0x3c5061<_0x40073b[_0x5a48f6('0x31')];_0x3c5061+=0x1){_0x4d6842=_0x40073b[_0x3c5061],_[_0x5a48f6('0x3a')](_0x3fecbd[_0x5a48f6('0x16')][util['format'](_0x5a48f6('0x45'),_0x4d6842[_0x5a48f6('0x25')])])?_0x3fecbd['trunks'][util[_0x5a48f6('0x54')](_0x5a48f6('0x45'),_0x4d6842[_0x5a48f6('0x25')])]=new Trunk(_0x4d6842):_0x3fecbd[_0x5a48f6('0x1f')](_0x3fecbd[_0x5a48f6('0x16')][util[_0x5a48f6('0x54')](_0x5a48f6('0x45'),_0x4d6842[_0x5a48f6('0x25')])],_0x4d6842);}}return _0x3fecbd[_0x5a48f6('0x16')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x2e')]=function(){const _0x1b9f9f=this;return function(_0x8bf4e2){const _0x5934ef=a1092_0x16a5;if(_0x8bf4e2){freeIsNotKey(_0x8bf4e2,_0x1b9f9f['voiceQueues'],_0x5934ef('0x25'));for(let _0x55ea2b=0x0,_0x330f69={};_0x55ea2b<_0x8bf4e2[_0x5934ef('0x31')];_0x55ea2b+=0x1){_0x330f69=_0x8bf4e2[_0x55ea2b],_[_0x5934ef('0x3a')](_0x1b9f9f['voiceQueues'][_0x330f69[_0x5934ef('0x25')]])?_0x1b9f9f[_0x5934ef('0x5a')][_0x330f69[_0x5934ef('0x25')]]=new VoiceQueue(_0x330f69):_0x1b9f9f['mergeFromDatabase'](_0x1b9f9f[_0x5934ef('0x5a')][_0x330f69[_0x5934ef('0x25')]],_0x330f69);}}return _0x1b9f9f[_0x5934ef('0x5a')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x18')]=function(){const _0x20a3d3=this;return function(_0x5244ec){const _0x2bcfac=a1092_0x16a5;if(_0x5244ec){freeIsNotKey(_0x5244ec,_0x20a3d3[_0x2bcfac('0x3b')],'id');for(let _0x804497=0x0,_0xc01fdc={};_0x804497<_0x5244ec[_0x2bcfac('0x31')];_0x804497+=0x1){_0xc01fdc=_0x5244ec[_0x804497],_['isUndefined'](_0x20a3d3[_0x2bcfac('0x3b')][_0xc01fdc['id']])?_0x20a3d3[_0x2bcfac('0x3b')][_0xc01fdc['id']]=new Trigger(_0xc01fdc):_0x20a3d3[_0x2bcfac('0x1f')](_0x20a3d3[_0x2bcfac('0x3b')][_0xc01fdc['id']],_0xc01fdc);}}return _0x20a3d3['triggers'];};},Realtime[_0x228d24('0x4')]['initTemplates']=function(){const _0x4437bf=this;return function(_0x180451){const _0x3a74df=a1092_0x16a5;if(_0x180451){freeIsNotKey(_0x180451,_0x4437bf[_0x3a74df('0x3f')],'id');for(let _0x57d315=0x0,_0x112454={};_0x57d315<_0x180451['length'];_0x57d315+=0x1){_0x112454=_0x180451[_0x57d315],_['isUndefined'](_0x4437bf['templates'][_0x112454['id']])?_0x4437bf['templates'][_0x112454['id']]=new Template(_0x112454):_0x4437bf[_0x3a74df('0x1f')](_0x4437bf['templates'][_0x112454['id']],_0x112454);}}return _0x4437bf['templates'];};},Realtime['prototype'][_0x228d24('0x8')]=function(){const _0x24d0bd=this;return function(_0x4d9d8c){const _0x181ab1=a1092_0x16a5;if(_0x4d9d8c){freeIsNotKey(_0x4d9d8c,_0x24d0bd['zendeskAccounts'],'id');for(let _0x5bfb66=0x0,_0x164580={};_0x5bfb66<_0x4d9d8c['length'];_0x5bfb66+=0x1){_0x164580=_0x4d9d8c[_0x5bfb66],_[_0x181ab1('0x3a')](_0x24d0bd[_0x181ab1('0x58')][_0x164580['id']])?_0x24d0bd[_0x181ab1('0x58')][_0x164580['id']]=new ZendeskAccount(_0x164580):_0x24d0bd[_0x181ab1('0x1f')](_0x24d0bd[_0x181ab1('0x58')][_0x164580['id']],_0x164580);}}return _0x24d0bd[_0x181ab1('0x58')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x42')]=function(){const _0x2038cd=this;return function(_0x509c44){const _0x55c031=a1092_0x16a5;if(_0x509c44){freeIsNotKey(_0x509c44,_0x2038cd[_0x55c031('0x4e')],'id');for(let _0x3d5d49=0x0,_0xfdee19={};_0x3d5d49<_0x509c44[_0x55c031('0x31')];_0x3d5d49+=0x1){_0xfdee19=_0x509c44[_0x3d5d49],_['isUndefined'](_0x2038cd[_0x55c031('0x4e')][_0xfdee19['id']])?_0x2038cd[_0x55c031('0x4e')][_0xfdee19['id']]=new SalesforceAccount(_0xfdee19):_0x2038cd[_0x55c031('0x1f')](_0x2038cd[_0x55c031('0x4e')][_0xfdee19['id']],_0xfdee19);}}return _0x2038cd['salesforceAccounts'];};},Realtime[_0x228d24('0x4')][_0x228d24('0x5e')]=function(){const _0x5d99f7=this;return function(_0x8e607d){const _0x401db7=a1092_0x16a5;if(_0x8e607d){freeIsNotKey(_0x8e607d,_0x5d99f7[_0x401db7('0x48')],'id');for(let _0x2b4b6f=0x0,_0x2ac224={};_0x2b4b6f<_0x8e607d[_0x401db7('0x31')];_0x2b4b6f+=0x1){_0x2ac224=_0x8e607d[_0x2b4b6f],_[_0x401db7('0x3a')](_0x5d99f7[_0x401db7('0x48')][_0x2ac224['id']])?_0x5d99f7[_0x401db7('0x48')][_0x2ac224['id']]=new FreshdeskAccount(_0x2ac224):_0x5d99f7[_0x401db7('0x1f')](_0x5d99f7[_0x401db7('0x48')][_0x2ac224['id']],_0x2ac224);}}return _0x5d99f7[_0x401db7('0x48')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x39')]=function(){const _0xe63bd4=this;return function(_0x4436d1){const _0xea8a88=a1092_0x16a5;if(_0x4436d1){freeIsNotKey(_0x4436d1,_0xe63bd4[_0xea8a88('0x3d')],'id');for(let _0xf9b759=0x0,_0x564c56={};_0xf9b759<_0x4436d1['length'];_0xf9b759+=0x1){_0x564c56=_0x4436d1[_0xf9b759],_[_0xea8a88('0x3a')](_0xe63bd4[_0xea8a88('0x3d')][_0x564c56['id']])?_0xe63bd4[_0xea8a88('0x3d')][_0x564c56['id']]=new ZohoAccount(_0x564c56):_0xe63bd4[_0xea8a88('0x1f')](_0xe63bd4[_0xea8a88('0x3d')][_0x564c56['id']],_0x564c56);}}return _0xe63bd4[_0xea8a88('0x3d')];};},Realtime[_0x228d24('0x4')]['initDeskAccounts']=function(){const _0x2460c7=this;return function(_0x32f721){const _0x24000b=a1092_0x16a5;if(_0x32f721){freeIsNotKey(_0x32f721,_0x2460c7[_0x24000b('0x4f')],'id');for(let _0x5cd119=0x0,_0x41875c={};_0x5cd119<_0x32f721[_0x24000b('0x31')];_0x5cd119+=0x1){_0x41875c=_0x32f721[_0x5cd119],_['isUndefined'](_0x2460c7[_0x24000b('0x4f')][_0x41875c['id']])?_0x2460c7[_0x24000b('0x4f')][_0x41875c['id']]=new DeskAccount(_0x41875c):_0x2460c7[_0x24000b('0x1f')](_0x2460c7['deskAccounts'][_0x41875c['id']],_0x41875c);}}return _0x2460c7[_0x24000b('0x4f')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x57')]=function(){const _0x161593=this;return function(_0xa770b9){const _0x566e3f=a1092_0x16a5;if(_0xa770b9){freeIsNotKey(_0xa770b9,_0x161593[_0x566e3f('0x22')],'id');for(let _0x196f6d=0x0,_0x28331c={};_0x196f6d<_0xa770b9[_0x566e3f('0x31')];_0x196f6d+=0x1){_0x28331c=_0xa770b9[_0x196f6d],_['isUndefined'](_0x161593['sugarcrmAccounts'][_0x28331c['id']])?_0x161593['sugarcrmAccounts'][_0x28331c['id']]=new SugarcrmAccount(_0x28331c):_0x161593[_0x566e3f('0x1f')](_0x161593['sugarcrmAccounts'][_0x28331c['id']],_0x28331c);}}return _0x161593[_0x566e3f('0x22')];};},Realtime[_0x228d24('0x4')]['initVtigerAccounts']=function(){const _0x33e0b6=this;return function(_0x27e78c){const _0x13db59=a1092_0x16a5;if(_0x27e78c){freeIsNotKey(_0x27e78c,_0x33e0b6['vtigerAccounts'],'id');for(let _0xa6e88f=0x0,_0x54f8d6={};_0xa6e88f<_0x27e78c['length'];_0xa6e88f+=0x1){_0x54f8d6=_0x27e78c[_0xa6e88f],_['isUndefined'](_0x33e0b6[_0x13db59('0x3c')][_0x54f8d6['id']])?_0x33e0b6[_0x13db59('0x3c')][_0x54f8d6['id']]=new VtigerAccount(_0x54f8d6):_0x33e0b6[_0x13db59('0x1f')](_0x33e0b6[_0x13db59('0x3c')][_0x54f8d6['id']],_0x54f8d6);}}return _0x33e0b6[_0x13db59('0x3c')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x33')]=function(){const _0x4f013b=this;return function(_0xdf9e1b){const _0x4adc8a=a1092_0x16a5;if(_0xdf9e1b){freeIsNotKey(_0xdf9e1b,_0x4f013b[_0x4adc8a('0x6')],'id');for(let _0xa33833=0x0,_0x307306={};_0xa33833<_0xdf9e1b[_0x4adc8a('0x31')];_0xa33833+=0x1){_0x307306=_0xdf9e1b[_0xa33833],_[_0x4adc8a('0x3a')](_0x4f013b['servicenowAccounts'][_0x307306['id']])?_0x4f013b[_0x4adc8a('0x6')][_0x307306['id']]=new ServicenowAccount(_0x307306):_0x4f013b[_0x4adc8a('0x1f')](_0x4f013b['servicenowAccounts'][_0x307306['id']],_0x307306);}}return _0x4f013b[_0x4adc8a('0x6')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x1c')]=function(){const _0x5e9608=this;return function(_0x3f2647){const _0x399754=a1092_0x16a5;if(_0x3f2647){freeIsNotKey(_0x3f2647,_0x5e9608[_0x399754('0x63')],'id');for(let _0x46ea34=0x0,_0x4008e2={};_0x46ea34<_0x3f2647['length'];_0x46ea34+=0x1){_0x4008e2=_0x3f2647[_0x46ea34],_['isUndefined'](_0x5e9608[_0x399754('0x63')][_0x4008e2['id']])?_0x5e9608[_0x399754('0x63')][_0x4008e2['id']]=new Dynamics365Account(_0x4008e2):_0x5e9608[_0x399754('0x1f')](_0x5e9608[_0x399754('0x63')][_0x4008e2['id']],_0x4008e2);}}return _0x5e9608[_0x399754('0x63')];};},Realtime[_0x228d24('0x4')]['initFreshsalesAccounts']=function(){const _0x264c47=this;return function(_0x3c0157){const _0x3526b3=a1092_0x16a5;if(_0x3c0157){freeIsNotKey(_0x3c0157,_0x264c47['freshsalesAccounts'],'id');for(let _0x9030c3=0x0,_0x85561a={};_0x9030c3<_0x3c0157[_0x3526b3('0x31')];_0x9030c3+=0x1){_0x85561a=_0x3c0157[_0x9030c3],_[_0x3526b3('0x3a')](_0x264c47[_0x3526b3('0x2')][_0x85561a['id']])?_0x264c47[_0x3526b3('0x2')][_0x85561a['id']]=new FreshsalesAccount(_0x85561a):_0x264c47[_0x3526b3('0x1f')](_0x264c47[_0x3526b3('0x2')][_0x85561a['id']],_0x85561a);}}return _0x264c47[_0x3526b3('0x2')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x50')]=function(){const _0x729982=this;return function(_0x13fc81){const _0x50457e=a1092_0x16a5;for(let _0x58ae03=0x0;_0x58ae03<_0x13fc81[_0x50457e('0x31')];_0x58ae03+=0x1){_[_0x50457e('0x10')](_0x729982[_0x50457e('0x5a')][_0x13fc81[_0x58ae03][_0x50457e('0x25')]],_0x13fc81[_0x58ae03]);}return _0x729982[_0x50457e('0x5a')];};},Realtime[_0x228d24('0x4')]['initVoiceQueueReports']=function(){const _0x2112e7=this;return function(_0x2b3e55){const _0x2da0ae=a1092_0x16a5;clearVoiceQueues(_0x2112e7[_0x2da0ae('0x5a')]);if(_0x2b3e55){_0x2b3e55=_[_0x2da0ae('0x4a')](_0x2b3e55,_0x2da0ae('0x20'));for(const _0x2d0a2f in _0x2b3e55){if(typeof _0x2b3e55[_0x2d0a2f]!==_0x2da0ae('0x13'))for(let _0x2c8694=0x0;_0x2c8694<_0x2b3e55[_0x2d0a2f][_0x2da0ae('0x31')];_0x2c8694+=0x1){const _0x4d1500=_0x2b3e55[_0x2d0a2f][_0x2c8694][_0x2da0ae('0x2b')];_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500]&&(_0x2b3e55[_0x2d0a2f][_0x2c8694]['queuecallerexit']&&(_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500][_0x2da0ae('0x5d')]+=0x1),_0x2b3e55[_0x2d0a2f][_0x2c8694][_0x2da0ae('0x7')]&&(_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500][_0x2da0ae('0x52')]+=0x1),_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500][_0x2da0ae('0x1a')]+=moment(_0x2b3e55[_0x2d0a2f][_0x2c8694]['queuecallerleaveAt'])[_0x2da0ae('0x55')](moment(_0x2b3e55[_0x2d0a2f][_0x2c8694][_0x2da0ae('0x41')]),_0x2da0ae('0x5'))||0x0,_0x2c8694===_0x2b3e55[_0x2d0a2f][_0x2da0ae('0x31')]-0x1?(_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500][_0x2da0ae('0x59')]+=moment(_0x2b3e55[_0x2d0a2f][_0x2c8694][_0x2da0ae('0x46')]||_0x2b3e55[_0x2d0a2f][_0x2c8694]['queuecallerabandonAt']||_0x2b3e55[_0x2d0a2f][_0x2c8694]['queuecallerexitAt'])['diff'](moment(_0x2b3e55[_0x2d0a2f][_0x2c8694]['queuecallerjoinAt']),_0x2da0ae('0x5'))||0x0,_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500]['total']+=0x1,_0x2b3e55[_0x2d0a2f][_0x2c8694][_0x2da0ae('0x56')]&&(_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500][_0x2da0ae('0x2c')]+=0x1,_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500]['sumBillable']+=moment(_0x2b3e55[_0x2d0a2f][_0x2c8694][_0x2da0ae('0x46')])['diff'](moment(_0x2b3e55[_0x2d0a2f][_0x2c8694]['queuecallerleaveAt']),_0x2da0ae('0x5'))||0x0)):_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500][_0x2da0ae('0x59')]+=_0x2112e7[_0x2da0ae('0x5a')][_0x4d1500][_0x2da0ae('0x1a')]||0x0);}}}return _0x2112e7[_0x2da0ae('0x5a')];};},Realtime['prototype'][_0x228d24('0x5f')]=function(){const _0x45c2d5=this;return function(_0x4e04c4){const _0x43466b=a1092_0x16a5;clearVoiceCallReports(_0x45c2d5[_0x43466b('0x32')]);if(_0x4e04c4)for(let _0x519420=0x0;_0x519420<_0x4e04c4[_0x43466b('0x31')];_0x519420+=0x1){_0x45c2d5[_0x43466b('0x32')][_0x43466b('0x24')]+=0x1,_0x45c2d5[_0x43466b('0x32')][_0x43466b('0x59')]+=_0x4e04c4[_0x519420][_0x43466b('0x1b')],_0x4e04c4[_0x519420]['disposition']===_0x43466b('0x23')&&(_0x45c2d5['outbound'][_0x43466b('0x2c')]+=0x1,_0x45c2d5['outbound']['sumHoldTime']+=_0x4e04c4[_0x519420]['duration']-_0x4e04c4[_0x519420]['billableseconds']||0x0,_0x45c2d5[_0x43466b('0x32')][_0x43466b('0xf')]+=_0x4e04c4[_0x519420]['billableseconds']);}return _0x45c2d5[_0x43466b('0x32')];};},Realtime[_0x228d24('0x4')]['initCampaigns']=function(){const _0x2954df=this;return function(_0x53cced){const _0x5c6f7d=a1092_0x16a5;if(_0x53cced){freeIsNotKey(_0x53cced,_0x2954df[_0x5c6f7d('0x4b')],_0x5c6f7d('0x25'));for(let _0x28201c=0x0,_0x46a68e={};_0x28201c<_0x53cced[_0x5c6f7d('0x31')];_0x28201c+=0x1){_0x46a68e=_0x53cced[_0x28201c],_[_0x5c6f7d('0x3a')](_0x2954df['campaigns'][_0x46a68e[_0x5c6f7d('0x25')]])?_0x2954df['campaigns'][_0x46a68e[_0x5c6f7d('0x25')]]=new Campaign(_0x46a68e):(_0x2954df[_0x5c6f7d('0x1f')](_0x2954df['campaigns'][_0x46a68e['name']],_0x46a68e),_0x2954df[_0x5c6f7d('0x4b')][_0x46a68e['name']][_0x5c6f7d('0x14')]=_0x46a68e[_0x5c6f7d('0x67')]?_0x46a68e[_0x5c6f7d('0x67')][_0x5c6f7d('0x25')]:undefined);}}return _0x2954df[_0x5c6f7d('0x4b')];};},Realtime['prototype']['initVoiceExtensions']=function(){const _0x564aef=this;return function(_0x5e43fb){const _0x12aefa=a1092_0x16a5;if(_0x5e43fb){freeIsNotKey(_0x5e43fb,_0x564aef[_0x12aefa('0x37')],'id');for(let _0x423b97=0x0,_0x21d41e={};_0x423b97<_0x5e43fb[_0x12aefa('0x31')];_0x423b97+=0x1){_0x21d41e=_0x5e43fb[_0x423b97],_[_0x12aefa('0x3a')](_0x564aef['voiceExtensions'][_0x21d41e['id']])?_0x564aef[_0x12aefa('0x37')][_0x21d41e['id']]=new VoiceExtension(_0x21d41e):_0x564aef[_0x12aefa('0x1f')](_0x564aef[_0x12aefa('0x37')][_0x21d41e['id']],_0x21d41e);}}return _0x564aef['voiceExtensions'];};},Realtime[_0x228d24('0x4')]['initCampaignHopperHistory']=function(){const _0x2d29cf=this;return function(_0x1ce495){const _0x596f89=a1092_0x16a5;clearCampaigns(_0x2d29cf[_0x596f89('0x4b')]);for(let _0x488cc4=0x0;_0x488cc4<_0x1ce495[_0x596f89('0x31')];_0x488cc4+=0x1){_[_0x596f89('0x10')](_0x2d29cf[_0x596f89('0x4b')][_0x1ce495[_0x488cc4][_0x596f89('0x25')]],_0x1ce495[_0x488cc4]);}return _0x2d29cf[_0x596f89('0x4b')];};},Realtime[_0x228d24('0x4')][_0x228d24('0x62')]=function(){const _0x556758=this;return function(_0x1efd0f){const _0x975e1c=a1092_0x16a5;if(_0x1efd0f){freeIsNotKey(_0x1efd0f,_0x556758[_0x975e1c('0x1d')],'id');for(let _0x48c611=0x0,_0x2e025d={};_0x48c611<_0x1efd0f[_0x975e1c('0x31')];_0x48c611+=0x1){_0x2e025d=_0x1efd0f[_0x48c611],_[_0x975e1c('0x3a')](_0x556758[_0x975e1c('0x1d')][_0x2e025d['id']])?_0x556758[_0x975e1c('0x1d')][_0x2e025d['id']]=new FaxAccount(_0x2e025d):_0x556758[_0x975e1c('0x1f')](_0x556758['faxAccounts'][_0x2e025d['id']],_0x2e025d);}}return _0x556758[_0x975e1c('0x1d')];};},module[_0x228d24('0x2f')]=Realtime; \ No newline at end of file diff --git a/server/services/ami/report/index.js b/server/services/ami/report/index.js index fa330f5..32258f7 100644 --- a/server/services/ami/report/index.js +++ b/server/services/ami/report/index.js @@ -1 +1 @@ -const a1092_0x3d0b=['callerid','find','sync','disabled','\x22%s\x22\x20<%s>','Local','voiceAgentReport','match','membername','queuecallercomplete','../../../config/environment','agents','voiceQueueReport','originatecalleridnum','interface','calleridnum','destinationchannel','attendedTransfer','calleridname','voiceCallReport','channel','xcally-motion-dialer','SIP/%s','type','filename','../ami','createdAt','name','../rpc/memberReport','monitors','lastdata','ANSWERED','../rpc/voiceQueueReport','queue','isArray','mobile','exten','../rpc/voiceTransferReport','lastapplication','telephones','substring','disposition','dialer','voiceDialReport','../rpc/voiceRecording','prototype','lodash','lastIndexOf','monitorFilename','../rpc/voiceAgentReport','xcally-motion-preview','realtime','assigned','xdr','create','destination','queuecallerexitAt','calleridpreview','blindTransfer','isNil','findAgent','forEach','bind','accountcode','indexOf','YYYY-MM-DD\x20HH:mm:ss','moment','from-sip','format','blindtransfer','queuecallercompleteAt','connectedlinename','length','phone','exports','connectedlinenum','context'];(function(_0x46c58e,_0x3d0b30){const _0x51b4aa=function(_0x3b1792){while(--_0x3b1792){_0x46c58e['push'](_0x46c58e['shift']());}};_0x51b4aa(++_0x3d0b30);}(a1092_0x3d0b,0x1e3));const a1092_0x51b4=function(_0x46c58e,_0x3d0b30){_0x46c58e=_0x46c58e-0x0;let _0x51b4aa=a1092_0x3d0b[_0x46c58e];return _0x51b4aa;};const _0x38d050=a1092_0x51b4;'use strict';const _=require(_0x38d050('0x19')),moment=require(_0x38d050('0x2d')),util=require('util'),config=require(_0x38d050('0x42')),ami=require(_0x38d050('0x4')),RpcVoiceAgentReport=require(_0x38d050('0x1c')),RpcVoiceCallReport=require('../rpc/voiceCallReport'),RpcVoiceDialReport=require('../rpc/voiceDialReport'),RpcMemberReport=require(_0x38d050('0x7')),RpcVoiceQueueReport=require(_0x38d050('0xb')),RpcVoiceRecording=require(_0x38d050('0x17')),RpcVoiceTransferReport=require(_0x38d050('0x10'));function Report(_0x3b1792){const _0x19201f=_0x38d050;this[_0x19201f('0x1e')]=_0x3b1792,this['agents']=_0x3b1792[_0x19201f('0x43')],this[_0x19201f('0x12')]=_0x3b1792[_0x19201f('0x12')];}Report[_0x38d050('0x18')][_0x38d050('0x3a')]=function(){const _0x125c00=_0x38d050;config[_0x125c00('0x20')]&&config['xdr'][_0x125c00('0x3b')]&&(ami['on']('custom:voiceQueueReport',this['voiceQueueReport'][_0x125c00('0x29')](this)),ami['on']('custom:voiceCallReport',this['voiceCallReport'][_0x125c00('0x29')](this)),ami['on']('custom:voiceAgentReport',this[_0x125c00('0x3e')][_0x125c00('0x29')](this)),ami['on']('custom:voiceDialReport',this['voiceDialReport'][_0x125c00('0x29')](this)),ami['on'](_0x125c00('0x30'),this['blindTransfer'][_0x125c00('0x29')](this)),ami['on']('attendedtransfer',this[_0x125c00('0x49')][_0x125c00('0x29')](this)));},Report[_0x38d050('0x18')][_0x38d050('0x27')]=function(_0x4a4c4a){const _0xd3a0bb=_0x38d050;let _0x57ff0e=undefined;_0x57ff0e=_[_0xd3a0bb('0x39')](this[_0xd3a0bb('0x43')],function(_0x48058a){const _0x490e2b=_0xd3a0bb;return _0x48058a[_0x490e2b('0x2a')]==_0x4a4c4a||_0x48058a[_0x490e2b('0x6')]==_0x4a4c4a;});if(_[_0xd3a0bb('0x26')](_0x57ff0e)){const _0x54be4f=_['find'](this[_0xd3a0bb('0x12')],function(_0x11fc9c){const _0x985759=_0xd3a0bb;return _0x11fc9c[_0x985759('0x2a')]==_0x4a4c4a||_0x11fc9c['name']==_0x4a4c4a;});_0x54be4f&&(_0x57ff0e=_[_0xd3a0bb('0x39')](this['agents'],function(_0x22660b){const _0x53901b=_0xd3a0bb;return _0x22660b['interface']==util[_0x53901b('0x2f')](_0x53901b('0x1'),_0x54be4f[_0x53901b('0x6')]);}));}return _0x57ff0e;},Report['prototype'][_0x38d050('0x44')]=function(_0x58c45c){const _0x3f1548=_0x38d050;for(let _0x61393a=0x0;_0x61393a<_0x58c45c[_0x3f1548('0x33')];_0x61393a+=0x1){const _0x87feb3=this[_0x3f1548('0x27')](_0x58c45c[_0x61393a][_0x3f1548('0x36')]);_0x87feb3&&(_0x58c45c[_0x61393a][_0x3f1548('0x2a')]=_0x87feb3[_0x3f1548('0x2a')],_0x58c45c[_0x61393a][_0x3f1548('0x1f')]=!![],_0x58c45c[_0x61393a]['lastAssignedTo']=_0x87feb3[_0x3f1548('0x6')],_0x58c45c[_0x61393a][_0x3f1548('0x46')]=_['isNil'](_0x87feb3[_0x3f1548('0x46')])?util[_0x3f1548('0x2f')](_0x3f1548('0x1'),_0x87feb3[_0x3f1548('0x6')]):_0x87feb3[_0x3f1548('0x46')],_0x58c45c[_0x61393a][_0x3f1548('0x41')]&&(_0x58c45c[_0x61393a][_0x3f1548('0x31')]=moment()[_0x3f1548('0x2f')](_0x3f1548('0x2c'))),_0x58c45c[_0x61393a]['queuecallerexit']&&(_0x58c45c[_0x61393a][_0x3f1548('0x23')]=moment()[_0x3f1548('0x2f')]('YYYY-MM-DD\x20HH:mm:ss')),RpcMemberReport[_0x3f1548('0x44')](_0x58c45c[_0x61393a])),RpcVoiceQueueReport[_0x3f1548('0x21')](_0x58c45c[_0x61393a]);}};function extractCalleridNumber(_0x1822cc){const _0x5f13fb=_0x38d050,_0x1d4eff=_0x1822cc[_0x5f13fb('0x3f')](/<(.*?)>/);return _0x1d4eff?_0x1d4eff[0x1]:_0x1822cc;}Report['prototype'][_0x38d050('0x4b')]=function(_0x2e4b6f){const _0x55a2c3=_0x38d050;_0x2e4b6f[_0x55a2c3('0x22')]=_0x2e4b6f[_0x55a2c3('0x22')]||_0x2e4b6f[_0x55a2c3('0xf')];if(_0x2e4b6f[_0x55a2c3('0x2')]==_0x55a2c3('0x15')){_0x2e4b6f[_0x55a2c3('0x11')]='queue',_0x2e4b6f[_0x55a2c3('0x9')]=_0x2e4b6f[_0x55a2c3('0xc')];if(_0x2e4b6f['context']=='from-voip-provider')_0x2e4b6f[_0x55a2c3('0x2a')]='',_0x2e4b6f[_0x55a2c3('0x22')]=extractCalleridNumber(_0x2e4b6f[_0x55a2c3('0x38')]);else _0x2e4b6f[_0x55a2c3('0x37')]==_0x55a2c3('0x2e')&&(_0x2e4b6f[_0x55a2c3('0x22')]==_0x55a2c3('0x1d')?(_0x2e4b6f[_0x55a2c3('0x22')]=extractCalleridNumber(_0x2e4b6f[_0x55a2c3('0x24')]),_0x2e4b6f[_0x55a2c3('0x47')]=_0x2e4b6f[_0x55a2c3('0x45')],_0x2e4b6f[_0x55a2c3('0x48')]=[_0x2e4b6f['channel'],_0x2e4b6f['channel']=_0x2e4b6f[_0x55a2c3('0x48')]][0x0],_0x2e4b6f[_0x55a2c3('0x38')]=_0x2e4b6f[_0x55a2c3('0x24')]):(_0x2e4b6f[_0x55a2c3('0x22')]=_0x2e4b6f[_0x55a2c3('0x47')],_0x2e4b6f[_0x55a2c3('0x47')]=_0x2e4b6f[_0x55a2c3('0x45')],_0x2e4b6f[_0x55a2c3('0x14')]==_0x55a2c3('0xa')?_0x2e4b6f[_0x55a2c3('0x2a')]=_0x2e4b6f['connectedlinenum']:_0x2e4b6f[_0x55a2c3('0x2a')]=''));}else _0x2e4b6f[_0x55a2c3('0x38')]=util[_0x55a2c3('0x2f')](_0x55a2c3('0x3c'),_0x2e4b6f[_0x55a2c3('0x4a')],_0x2e4b6f[_0x55a2c3('0x47')]);RpcVoiceCallReport[_0x55a2c3('0x21')](_0x2e4b6f);if(_0x2e4b6f['monitor'])for(let _0x1a4dd0=0x0;_0x1a4dd0<_0x2e4b6f['monitors'][_0x55a2c3('0x33')];_0x1a4dd0+=0x1){_0x2e4b6f[_0x55a2c3('0x1b')]=_0x2e4b6f[_0x55a2c3('0x8')][_0x1a4dd0][_0x55a2c3('0x3')],_0x2e4b6f[_0x55a2c3('0x5')]=_0x2e4b6f['monitors'][_0x1a4dd0][_0x55a2c3('0x5')];if(_0x2e4b6f[_0x55a2c3('0xf')]=='xcally-motion-preview')_0x2e4b6f[_0x55a2c3('0x47')]=_0x2e4b6f[_0x55a2c3('0x36')],_0x2e4b6f[_0x55a2c3('0x4a')]=_0x2e4b6f[_0x55a2c3('0x32')],_0x2e4b6f[_0x55a2c3('0x36')]=_0x2e4b6f[_0x55a2c3('0x2a')],_0x2e4b6f[_0x55a2c3('0x32')]=_0x2e4b6f[_0x55a2c3('0x40')],_0x2e4b6f[_0x55a2c3('0xf')]=_0x2e4b6f['originatecalleridnum'];else _0x2e4b6f[_0x55a2c3('0xf')]==_0x55a2c3('0x0')&&(_0x2e4b6f[_0x55a2c3('0x47')]=_0x2e4b6f[_0x55a2c3('0x22')],_0x2e4b6f['exten']=_0x2e4b6f[_0x55a2c3('0x45')]);RpcVoiceRecording[_0x55a2c3('0x21')](_0x2e4b6f);}},Report[_0x38d050('0x18')][_0x38d050('0x3e')]=function(_0x2e307f){const _0xb1b652=_0x38d050;_[_0xb1b652('0xd')](_0x2e307f)?_0x2e307f[_0xb1b652('0x28')](function(_0x320a76){RpcVoiceAgentReport['create'](_0x320a76);}):RpcVoiceAgentReport['create'](_0x2e307f);},Report['prototype'][_0x38d050('0x16')]=function(_0x300ff2){const _0x34c9ea=_0x38d050;RpcVoiceDialReport[_0x34c9ea('0x21')](_0x300ff2);let _0x1c5aee=undefined;const _0x2bcfec=_0x300ff2[_0x34c9ea('0x4c')];if(_['startsWith'](_0x2bcfec,_0x34c9ea('0x3d'))){const _0xb014ff=_0x2bcfec['substring'](_0x2bcfec[_0x34c9ea('0x2b')]('/')+0x1,_0x2bcfec['indexOf']('@'));_0x1c5aee=_[_0x34c9ea('0x39')](this['agents'],function(_0x32e086){const _0x1b074a=_0x34c9ea;return _0x32e086[_0x1b074a('0xe')]==_0xb014ff||_0x32e086[_0x1b074a('0x34')]==_0xb014ff||_0x32e086['accountcode']==_0xb014ff;});}else{const _0x1a50f9=_0x2bcfec[_0x34c9ea('0x13')](_0x2bcfec[_0x34c9ea('0x2b')]('/')+0x1,_0x2bcfec[_0x34c9ea('0x1a')]('-'));_0x1c5aee=this['findAgent'](_0x1a50f9);}_0x1c5aee&&(_0x300ff2[_0x34c9ea('0x46')]=_[_0x34c9ea('0x26')](_0x1c5aee[_0x34c9ea('0x46')])?util[_0x34c9ea('0x2f')](_0x34c9ea('0x1'),_0x1c5aee[_0x34c9ea('0x6')]):_0x1c5aee[_0x34c9ea('0x46')],_0x300ff2[_0x34c9ea('0x40')]=_0x1c5aee['name'],_0x300ff2[_0x34c9ea('0x2a')]=_0x1c5aee[_0x34c9ea('0x2a')],RpcMemberReport[_0x34c9ea('0x16')](_0x300ff2));},Report['prototype'][_0x38d050('0x25')]=function(_0x2d5702){RpcVoiceTransferReport['blindTransfer'](_0x2d5702);},Report[_0x38d050('0x18')][_0x38d050('0x49')]=function(_0x9c461e){const _0xcb855c=_0x38d050;RpcVoiceTransferReport[_0xcb855c('0x49')](_0x9c461e);},module[_0x38d050('0x35')]=Report; \ No newline at end of file +const a1093_0x4074=['disposition','from-sip','ANSWERED','callerid','realtime','../rpc/voiceAgentReport','membername','destination','isArray','interface','exports','transfers','custom:voiceDialReport','disabled','startsWith','destinationchannel','xcally-motion-preview','../rpc/voiceRecording','custom:voiceQueueReport','forEach','calleridnum','xdr','monitorFilename','../rpc/voiceDialReport','create','attendedTransfer','lodash','voiceAgentReport','connectedlinename','createdAt','lastIndexOf','Local','YYYY-MM-DD\x20HH:mm:ss','originatecalleridnum','format','name','custom:voiceAgentReport','match','voiceDialReport','SIP/%s','bind','transfereelinkedid','dialer','mobile','calleridpreview','context','exten','voiceCallReport','queuecallerexit','linkedid','assigned','substring','\x22%s\x22\x20<%s>','../rpc/voiceCallReport','../../../config/environment','monitors','length','indexOf','voiceQueueReport','find','accountcode','blindTransfer','prototype','attendedtransfer','connectedlinenum','monitor','agents','uniqueid','custom:voiceCallReport','channel','filename','findAgent','blindtransfer','isNil','telephones'];(function(_0x19cbae,_0x4074c9){const _0x3d2e76=function(_0x257539){while(--_0x257539){_0x19cbae['push'](_0x19cbae['shift']());}};_0x3d2e76(++_0x4074c9);}(a1093_0x4074,0x87));const a1093_0x3d2e=function(_0x19cbae,_0x4074c9){_0x19cbae=_0x19cbae-0x0;let _0x3d2e76=a1093_0x4074[_0x19cbae];return _0x3d2e76;};const _0x14885a=a1093_0x3d2e;'use strict';const _=require(_0x14885a('0x29')),moment=require('moment'),util=require('util'),config=require(_0x14885a('0x45')),ami=require('../ami'),RpcVoiceAgentReport=require(_0x14885a('0x14')),RpcVoiceCallReport=require(_0x14885a('0x44')),RpcVoiceDialReport=require(_0x14885a('0x26')),RpcMemberReport=require('../rpc/memberReport'),RpcVoiceQueueReport=require('../rpc/voiceQueueReport'),RpcVoiceRecording=require(_0x14885a('0x20')),RpcVoiceTransferReport=require('../rpc/voiceTransferReport');function Report(_0x257539){const _0x25fa10=_0x14885a;this[_0x25fa10('0x13')]=_0x257539,this[_0x25fa10('0x6')]=_0x257539[_0x25fa10('0x6')],this[_0x25fa10('0xe')]=_0x257539[_0x25fa10('0xe')];}Report[_0x14885a('0x2')]['sync']=function(){const _0x467bbd=_0x14885a;config['xdr']&&config[_0x467bbd('0x24')][_0x467bbd('0x1c')]&&(ami['on'](_0x467bbd('0x21'),this[_0x467bbd('0x49')][_0x467bbd('0x37')](this)),ami['on'](_0x467bbd('0x8'),this[_0x467bbd('0x3e')][_0x467bbd('0x37')](this)),ami['on'](_0x467bbd('0x33'),this[_0x467bbd('0x2a')][_0x467bbd('0x37')](this)),ami['on'](_0x467bbd('0x1b'),this['voiceDialReport']['bind'](this)),ami['on'](_0x467bbd('0xc'),this[_0x467bbd('0x1')][_0x467bbd('0x37')](this)),ami['on'](_0x467bbd('0x3'),this['attendedTransfer'][_0x467bbd('0x37')](this)));},Report[_0x14885a('0x2')][_0x14885a('0xb')]=function(_0x5f5136){const _0x48fe8f=_0x14885a;let _0x426e0c=undefined;_0x426e0c=_[_0x48fe8f('0x4a')](this[_0x48fe8f('0x6')],function(_0x244a4f){const _0x44073f=_0x48fe8f;return _0x244a4f[_0x44073f('0x0')]==_0x5f5136||_0x244a4f['name']==_0x5f5136;});if(_[_0x48fe8f('0xd')](_0x426e0c)){const _0x4219bd=_[_0x48fe8f('0x4a')](this[_0x48fe8f('0xe')],function(_0x2966c0){const _0x3043fa=_0x48fe8f;return _0x2966c0[_0x3043fa('0x0')]==_0x5f5136||_0x2966c0[_0x3043fa('0x32')]==_0x5f5136;});_0x4219bd&&(_0x426e0c=_['find'](this[_0x48fe8f('0x6')],function(_0x2090f1){const _0x5192f3=_0x48fe8f;return _0x2090f1['interface']==util[_0x5192f3('0x31')]('SIP/%s',_0x4219bd[_0x5192f3('0x32')]);}));}return _0x426e0c;},Report[_0x14885a('0x2')][_0x14885a('0x49')]=function(_0x41b2b4){const _0x913715=_0x14885a;for(let _0x45ce19=0x0;_0x45ce19<_0x41b2b4[_0x913715('0x47')];_0x45ce19+=0x1){const _0xa4a8d6=this[_0x913715('0xb')](_0x41b2b4[_0x45ce19][_0x913715('0x4')]);_0xa4a8d6&&(_0x41b2b4[_0x45ce19]['accountcode']=_0xa4a8d6['accountcode'],_0x41b2b4[_0x45ce19][_0x913715('0x41')]=!![],_0x41b2b4[_0x45ce19]['lastAssignedTo']=_0xa4a8d6[_0x913715('0x32')],_0x41b2b4[_0x45ce19][_0x913715('0x18')]=_[_0x913715('0xd')](_0xa4a8d6[_0x913715('0x18')])?util[_0x913715('0x31')](_0x913715('0x36'),_0xa4a8d6['name']):_0xa4a8d6['interface'],_0x41b2b4[_0x45ce19]['queuecallercomplete']&&(_0x41b2b4[_0x45ce19]['queuecallercompleteAt']=moment()[_0x913715('0x31')](_0x913715('0x2f'))),_0x41b2b4[_0x45ce19][_0x913715('0x3f')]&&(_0x41b2b4[_0x45ce19]['queuecallerexitAt']=moment()['format'](_0x913715('0x2f'))),RpcMemberReport[_0x913715('0x49')](_0x41b2b4[_0x45ce19])),RpcVoiceQueueReport['create'](_0x41b2b4[_0x45ce19]);}};function extractCalleridNumber(_0x2fbaf1){const _0x2f4732=_0x14885a,_0xee9ba4=_0x2fbaf1[_0x2f4732('0x34')](/<(.*?)>/);return _0xee9ba4?_0xee9ba4[0x1]:_0x2fbaf1;}Report['prototype'][_0x14885a('0x3e')]=function(_0x304b3c){const _0x4c2925=_0x14885a;_0x304b3c[_0x4c2925('0x16')]=_0x304b3c[_0x4c2925('0x16')]||_0x304b3c[_0x4c2925('0x3d')];if(_0x304b3c['type']==_0x4c2925('0x39')){_0x304b3c['lastapplication']='queue',_0x304b3c['lastdata']=_0x304b3c['queue'];if(_0x304b3c[_0x4c2925('0x3c')]=='from-voip-provider')_0x304b3c['accountcode']='',_0x304b3c[_0x4c2925('0x16')]=extractCalleridNumber(_0x304b3c['callerid']);else _0x304b3c[_0x4c2925('0x3c')]==_0x4c2925('0x10')&&(_0x304b3c[_0x4c2925('0x16')]=='xcally-motion-preview'?(_0x304b3c[_0x4c2925('0x16')]=extractCalleridNumber(_0x304b3c[_0x4c2925('0x3b')]),_0x304b3c[_0x4c2925('0x23')]=_0x304b3c[_0x4c2925('0x30')],_0x304b3c[_0x4c2925('0x1e')]=[_0x304b3c[_0x4c2925('0x9')],_0x304b3c[_0x4c2925('0x9')]=_0x304b3c[_0x4c2925('0x1e')]][0x0],_0x304b3c[_0x4c2925('0x12')]=_0x304b3c[_0x4c2925('0x3b')]):(_0x304b3c['destination']=_0x304b3c[_0x4c2925('0x23')],_0x304b3c[_0x4c2925('0x23')]=_0x304b3c[_0x4c2925('0x30')],_0x304b3c[_0x4c2925('0xf')]==_0x4c2925('0x11')?_0x304b3c[_0x4c2925('0x0')]=_0x304b3c[_0x4c2925('0x4')]:_0x304b3c['accountcode']=''));}else _0x304b3c[_0x4c2925('0x12')]=util['format'](_0x4c2925('0x43'),_0x304b3c['calleridname'],_0x304b3c[_0x4c2925('0x23')]);if(RpcVoiceTransferReport[_0x4c2925('0x1a')][_0x304b3c[_0x4c2925('0x40')]]){const _0x263b13=RpcVoiceTransferReport[_0x4c2925('0x1a')][_0x304b3c[_0x4c2925('0x40')]];_0x263b13[_0x4c2925('0x38')]=_0x304b3c[_0x4c2925('0x7')],RpcVoiceTransferReport[_0x4c2925('0x1')](_0x263b13),delete RpcVoiceTransferReport[_0x4c2925('0x1a')][_0x304b3c[_0x4c2925('0x40')]];}RpcVoiceCallReport[_0x4c2925('0x27')](_0x304b3c);if(_0x304b3c[_0x4c2925('0x5')])for(let _0xc2629c=0x0;_0xc2629c<_0x304b3c[_0x4c2925('0x46')][_0x4c2925('0x47')];_0xc2629c+=0x1){_0x304b3c[_0x4c2925('0x25')]=_0x304b3c[_0x4c2925('0x46')][_0xc2629c][_0x4c2925('0xa')],_0x304b3c[_0x4c2925('0x2c')]=_0x304b3c[_0x4c2925('0x46')][_0xc2629c][_0x4c2925('0x2c')];if(_0x304b3c[_0x4c2925('0x3d')]==_0x4c2925('0x1f'))_0x304b3c[_0x4c2925('0x23')]=_0x304b3c[_0x4c2925('0x4')],_0x304b3c['calleridname']=_0x304b3c['connectedlinename'],_0x304b3c[_0x4c2925('0x4')]=_0x304b3c['accountcode'],_0x304b3c[_0x4c2925('0x2b')]=_0x304b3c[_0x4c2925('0x15')],_0x304b3c['exten']=_0x304b3c['originatecalleridnum'];else _0x304b3c['exten']=='xcally-motion-dialer'&&(_0x304b3c[_0x4c2925('0x23')]=_0x304b3c[_0x4c2925('0x16')],_0x304b3c['exten']=_0x304b3c[_0x4c2925('0x30')]);RpcVoiceRecording['create'](_0x304b3c);}},Report[_0x14885a('0x2')]['voiceAgentReport']=function(_0x45b103){const _0x5da99c=_0x14885a;_[_0x5da99c('0x17')](_0x45b103)?_0x45b103[_0x5da99c('0x22')](function(_0x72c2de){const _0x299568=_0x5da99c;RpcVoiceAgentReport[_0x299568('0x27')](_0x72c2de);}):RpcVoiceAgentReport['create'](_0x45b103);},Report[_0x14885a('0x2')][_0x14885a('0x35')]=function(_0x1b14ea){const _0xbe7ef=_0x14885a;RpcVoiceDialReport[_0xbe7ef('0x27')](_0x1b14ea);let _0x2dc9dc=undefined;const _0x5b1763=_0x1b14ea[_0xbe7ef('0x9')];if(_[_0xbe7ef('0x1d')](_0x5b1763,_0xbe7ef('0x2e'))){const _0x483706=_0x5b1763[_0xbe7ef('0x42')](_0x5b1763[_0xbe7ef('0x48')]('/')+0x1,_0x5b1763[_0xbe7ef('0x48')]('@'));_0x2dc9dc=_[_0xbe7ef('0x4a')](this['agents'],function(_0x3316cf){const _0x3a51f8=_0xbe7ef;return _0x3316cf[_0x3a51f8('0x3a')]==_0x483706||_0x3316cf['phone']==_0x483706||_0x3316cf[_0x3a51f8('0x0')]==_0x483706;});}else{const _0x49f87a=_0x5b1763[_0xbe7ef('0x42')](_0x5b1763['indexOf']('/')+0x1,_0x5b1763[_0xbe7ef('0x2d')]('-'));_0x2dc9dc=this[_0xbe7ef('0xb')](_0x49f87a);}_0x2dc9dc&&(_0x1b14ea[_0xbe7ef('0x18')]=_[_0xbe7ef('0xd')](_0x2dc9dc[_0xbe7ef('0x18')])?util['format']('SIP/%s',_0x2dc9dc[_0xbe7ef('0x32')]):_0x2dc9dc[_0xbe7ef('0x18')],_0x1b14ea['membername']=_0x2dc9dc[_0xbe7ef('0x32')],_0x1b14ea[_0xbe7ef('0x0')]=_0x2dc9dc[_0xbe7ef('0x0')],RpcMemberReport[_0xbe7ef('0x35')](_0x1b14ea));},Report[_0x14885a('0x2')][_0x14885a('0x1')]=function(_0xc0fd0c){RpcVoiceTransferReport['transfers'][_0xc0fd0c['transfererlinkedid']]=_0xc0fd0c;},Report[_0x14885a('0x2')]['attendedTransfer']=function(_0x3ea02d){const _0x388139=_0x14885a;RpcVoiceTransferReport[_0x388139('0x28')](_0x3ea02d);},module[_0x14885a('0x19')]=Report; \ No newline at end of file diff --git a/server/services/ami/report/userReport.js b/server/services/ami/report/userReport.js index 5ef37bf..7a5b67a 100644 --- a/server/services/ami/report/userReport.js +++ b/server/services/ami/report/userReport.js @@ -1 +1 @@ -const a1093_0x950e=['catch','loopSyncRealTimeShow','[syncRegistry][UserReport]','startsWith','accountcode','peerstatus','actionSipPeerStatus','telephone:save','../../../rediscache','find','devicestatechange','toNumber','trunk:save','trunks','updateStatusRealtime','omit','syncRegistry','format','registryentry','ami','telephone:%s','peer','telephones','emit','Local','[syncDeviceState][UserReport]','event','actionid','then','local','isNotNull','trunk:%s','[syncPeerStatus][UserReport]','substring','agents','mobile','prototype','username','toLowerCase','resolve','registered','actionSipShowRegistry','address','stateTime','device','name','bind','actionDeviceStateList','error','status','[loopSyncRealTimeShow]','exports','lodash','stateRegistry','state','inspect'];(function(_0x249a5e,_0x950ef1){const _0x1562e3=function(_0x9b5553){while(--_0x9b5553){_0x249a5e['push'](_0x249a5e['shift']());}};_0x1562e3(++_0x950ef1);}(a1093_0x950e,0x97));const a1093_0x1562=function(_0x249a5e,_0x950ef1){_0x249a5e=_0x249a5e-0x0;let _0x1562e3=a1093_0x950e[_0x249a5e];return _0x1562e3;};const _0x3b0d9f=a1093_0x1562;'use strict';const _=require(_0x3b0d9f('0xd')),moment=require('moment'),util=require('util'),logger=require('../../../config/logger')(_0x3b0d9f('0x24')),ami=require('../ami'),{getSocket}=require(_0x3b0d9f('0x19')),io=getSocket();function UserReport(_0x9b5553){const _0x371f9f=_0x3b0d9f;return this['trunks']=_0x9b5553['trunks'],this[_0x371f9f('0x33')]=_0x9b5553[_0x371f9f('0x33')],this[_0x371f9f('0x27')]=_0x9b5553['telephones'],ami['on'](_0x371f9f('0x23'),this[_0x371f9f('0x21')]['bind'](this)),ami['on']('registry',this[_0x371f9f('0x21')]['bind'](this)),ami['on'](_0x371f9f('0x1b'),this['syncDeviceState']['bind'](this)),ami['on'](_0x371f9f('0x16'),this['syncPeerStatus'][_0x371f9f('0x7')](this)),this['loopSyncRealTimeShow'](),Promise[_0x371f9f('0x0')]()[_0x371f9f('0x2d')](ami[_0x371f9f('0x2')]())['then'](ami[_0x371f9f('0x8')]())[_0x371f9f('0x2d')](ami[_0x371f9f('0x17')]())['catch'](loggerCatch('[loopSyncRealTimeShow]'));}function loggerCatch(_0x2f2aeb){return function(_0x514ce7){const _0x4832a5=a1093_0x1562;logger[_0x4832a5('0x9')](_0x2f2aeb,util[_0x4832a5('0x10')](_0x514ce7,{'showHidden':![],'depth':null}));};}UserReport[_0x3b0d9f('0x35')][_0x3b0d9f('0x12')]=function(){setInterval(function(){const _0x120338=a1093_0x1562;Promise[_0x120338('0x0')]()['then'](ami['actionSipShowRegistry']())['then'](ami[_0x120338('0x8')]())[_0x120338('0x2d')](ami[_0x120338('0x17')]())[_0x120338('0x11')](loggerCatch(_0x120338('0xb')));},0x32c8);},UserReport['prototype'][_0x3b0d9f('0x2f')]=function(_0x3ffae3){return _0x3ffae3!==null&&!_['isUndefined'](_0x3ffae3);},UserReport[_0x3b0d9f('0x35')][_0x3b0d9f('0x28')]=function(_0x16ccea,_0x19b772,_0xa7eb78){io['to'](_0x16ccea)['emit'](_0x19b772,_0xa7eb78);},UserReport['prototype'][_0x3b0d9f('0x21')]=function(_0x3377d5){const _0x6bf28a=_0x3b0d9f;try{if(this[_0x6bf28a('0x2f')](_0x3377d5)){const _0x119c07=_[_0x6bf28a('0x1a')](this[_0x6bf28a('0x1e')],{'registry':_0x3377d5[_0x6bf28a('0x36')]});_0x119c07&&(_0x3377d5[_0x6bf28a('0xe')]=_0x3377d5['state'],_['merge'](_0x119c07,_[_0x6bf28a('0x20')](_0x3377d5,[_0x6bf28a('0x2b'),_0x6bf28a('0x2c'),_0x6bf28a('0x36'),_0x6bf28a('0xf')])),this[_0x6bf28a('0x28')](util[_0x6bf28a('0x22')](_0x6bf28a('0x30'),_0x119c07[_0x6bf28a('0x6')]),_0x6bf28a('0x1d'),_0x119c07));}}catch(_0x429e31){logger[_0x6bf28a('0x9')](_0x6bf28a('0x13'),util[_0x6bf28a('0x10')](_0x429e31,{'showHidden':![],'depth':null}));}},UserReport[_0x3b0d9f('0x35')]['syncDeviceState']=function(_0x676d3b){const _0x335159=_0x3b0d9f;try{if(this['isNotNull'](_0x676d3b)){if(this[_0x335159('0x33')][_0x676d3b[_0x335159('0x5')]])(!this['agents'][_0x676d3b['device']][_0x335159('0x2e')]||_0x676d3b[_0x335159('0xf')][_0x335159('0x37')]()=='inuse')&&(this[_0x335159('0x33')][_0x676d3b[_0x335159('0x5')]][_0x335159('0x2e')]=![],this[_0x335159('0x33')][_0x676d3b['device']][_0x335159('0xf')]!==_0x676d3b[_0x335159('0xf')][_0x335159('0x37')]()&&(this['agents'][_0x676d3b['device']][_0x335159('0x4')]=_['toNumber'](moment()[_0x335159('0x22')]('x'))),this[_0x335159('0x33')][_0x676d3b['device']][_0x335159('0xf')]=_0x676d3b[_0x335159('0xf')]['toLowerCase'](),this[_0x335159('0x33')][_0x676d3b[_0x335159('0x5')]][_0x335159('0x1f')](_0x676d3b));else{if(this['telephones'][_0x676d3b['device']])this[_0x335159('0x27')][_0x676d3b[_0x335159('0x5')]][_0x335159('0xf')]!==_0x676d3b[_0x335159('0xf')]['toLowerCase']()&&(this[_0x335159('0x27')][_0x676d3b['device']][_0x335159('0x4')]=_[_0x335159('0x1c')](moment()[_0x335159('0x22')]('x'))),this[_0x335159('0x27')][_0x676d3b[_0x335159('0x5')]][_0x335159('0xf')]=_0x676d3b[_0x335159('0xf')][_0x335159('0x37')](),this[_0x335159('0x28')](util[_0x335159('0x22')]('telephone:%s',this[_0x335159('0x27')][_0x676d3b[_0x335159('0x5')]][_0x335159('0x6')]),_0x335159('0x18'),this[_0x335159('0x27')][_0x676d3b[_0x335159('0x5')]]);else{if(this[_0x335159('0x1e')][_0x676d3b[_0x335159('0x5')]])this['trunks'][_0x676d3b['device']][_0x335159('0xf')]!==_0x676d3b[_0x335159('0xf')]['toLowerCase']()&&(this[_0x335159('0x1e')][_0x676d3b['device']][_0x335159('0x4')]=_['toNumber'](moment()[_0x335159('0x22')]('x'))),this[_0x335159('0x1e')][_0x676d3b[_0x335159('0x5')]][_0x335159('0xf')]=_0x676d3b[_0x335159('0xf')][_0x335159('0x37')](),this['emit'](util[_0x335159('0x22')](_0x335159('0x30'),this[_0x335159('0x1e')][_0x676d3b[_0x335159('0x5')]][_0x335159('0x6')]),_0x335159('0x1d'),this[_0x335159('0x1e')][_0x676d3b[_0x335159('0x5')]]);else{if(_[_0x335159('0x14')](_0x676d3b[_0x335159('0x5')],'Queue')){}else{if(_[_0x335159('0x14')](_0x676d3b['device'],_0x335159('0x29'))){const _0x477644=_0x676d3b[_0x335159('0x5')],_0x224495=_0x477644[_0x335159('0x32')](_0x477644['indexOf']('/')+0x1,_0x477644['indexOf']('@')),_0x3dea72=_[_0x335159('0x1a')](this[_0x335159('0x33')],function(_0x595f0e){const _0x59c0bb=_0x335159;return _0x595f0e[_0x59c0bb('0x34')]==_0x224495||_0x595f0e['phone']==_0x224495||_0x595f0e[_0x59c0bb('0x15')]==_0x224495;});_0x3dea72&&(_0x3dea72[_0x335159('0xf')]!==_0x676d3b[_0x335159('0xf')][_0x335159('0x37')]()&&(_0x3dea72[_0x335159('0x4')]=_[_0x335159('0x1c')](moment()[_0x335159('0x22')]('x'))),_0x3dea72[_0x335159('0xf')]=_0x676d3b[_0x335159('0xf')]['toLowerCase'](),_0x3dea72[_0x335159('0x2e')]=!![],_0x3dea72[_0x335159('0x1f')](_0x676d3b));}else{}}}}}}}catch(_0x20a5da){logger[_0x335159('0x9')](_0x335159('0x2a'),util['inspect'](_0x20a5da,{'showHidden':![],'depth':null}));}},UserReport[_0x3b0d9f('0x35')]['syncPeerStatus']=function(_0x1a460e){const _0x2025e2=_0x3b0d9f;try{if(this['isNotNull'](_0x1a460e)&&this[_0x2025e2('0x2f')](_0x1a460e[_0x2025e2('0x16')])){if(this['agents'][_0x1a460e[_0x2025e2('0x26')]])(!this[_0x2025e2('0x33')][_0x1a460e[_0x2025e2('0x26')]]['local']||_0x1a460e[_0x2025e2('0x16')][_0x2025e2('0x37')]()==_0x2025e2('0x1'))&&(this[_0x2025e2('0x33')][_0x1a460e['peer']][_0x2025e2('0x2e')]=![],this[_0x2025e2('0x33')][_0x1a460e['peer']][_0x2025e2('0xa')]=_0x1a460e[_0x2025e2('0x16')]['toLowerCase'](),this[_0x2025e2('0x33')][_0x1a460e['peer']][_0x2025e2('0x3')]=_0x1a460e[_0x2025e2('0x3')],this[_0x2025e2('0x33')][_0x1a460e[_0x2025e2('0x26')]][_0x2025e2('0x1f')](_0x1a460e));else{if(this[_0x2025e2('0x27')][_0x1a460e[_0x2025e2('0x26')]])this[_0x2025e2('0x27')][_0x1a460e[_0x2025e2('0x26')]]['status']=_0x1a460e[_0x2025e2('0x16')][_0x2025e2('0x37')](),this[_0x2025e2('0x27')][_0x1a460e[_0x2025e2('0x26')]][_0x2025e2('0x3')]=_0x1a460e[_0x2025e2('0x3')],this[_0x2025e2('0x28')](util[_0x2025e2('0x22')](_0x2025e2('0x25'),this[_0x2025e2('0x27')][_0x1a460e[_0x2025e2('0x26')]][_0x2025e2('0x6')]),'telephone:save',this['telephones'][_0x1a460e['peer']]);else{if(this[_0x2025e2('0x1e')][_0x1a460e['peer']])this[_0x2025e2('0x1e')][_0x1a460e[_0x2025e2('0x26')]][_0x2025e2('0xa')]=_0x1a460e[_0x2025e2('0x16')][_0x2025e2('0x37')](),this[_0x2025e2('0x1e')][_0x1a460e['peer']][_0x2025e2('0x3')]=_0x1a460e[_0x2025e2('0x3')],this[_0x2025e2('0x28')](util[_0x2025e2('0x22')]('trunk:%s',this[_0x2025e2('0x1e')][_0x1a460e[_0x2025e2('0x26')]][_0x2025e2('0x6')]),_0x2025e2('0x1d'),this[_0x2025e2('0x1e')][_0x1a460e[_0x2025e2('0x26')]]);else{}}}}}catch(_0x4f57a9){logger['error'](_0x2025e2('0x31'),util[_0x2025e2('0x10')](_0x4f57a9,{'showHidden':![],'depth':null}));}},module[_0x3b0d9f('0xc')]=UserReport; \ No newline at end of file +const a1094_0x11e5=['isNotNull','trunks','bind','format','inuse','accountcode','registry','peerstatus','status','isUndefined','../../../config/logger','[syncPeerStatus][UserReport]','phone','[syncRegistry][UserReport]','telephone:%s','catch','inspect','trunk:save','loopSyncRealTimeShow','merge','device','syncRegistry','address','mobile','name','error','emit','toNumber','syncDeviceState','../ami','[loopSyncRealTimeShow]','event','substring','stateRegistry','local','trunk:%s','startsWith','actionDeviceStateList','updateStatusRealtime','ami','telephones','Local','lodash','actionSipPeerStatus','omit','../../../rediscache','exports','resolve','username','actionid','toLowerCase','agents','util','then','registered','prototype','find','state','Queue','peer','stateTime','actionSipShowRegistry','moment','[syncDeviceState][UserReport]','telephone:save','syncPeerStatus'];(function(_0x340a94,_0x11e597){const _0x159b82=function(_0xccd9e3){while(--_0xccd9e3){_0x340a94['push'](_0x340a94['shift']());}};_0x159b82(++_0x11e597);}(a1094_0x11e5,0xf7));const a1094_0x159b=function(_0x340a94,_0x11e597){_0x340a94=_0x340a94-0x0;let _0x159b82=a1094_0x11e5[_0x340a94];return _0x159b82;};const _0xf0f75d=a1094_0x159b;'use strict';const _=require(_0xf0f75d('0x3b')),moment=require(_0xf0f75d('0xd')),util=require(_0xf0f75d('0x3')),logger=require(_0xf0f75d('0x1b'))(_0xf0f75d('0x38')),ami=require(_0xf0f75d('0x2e')),{getSocket}=require(_0xf0f75d('0x3e')),io=getSocket();function UserReport(_0xccd9e3){const _0x24a0e4=_0xf0f75d;return this[_0x24a0e4('0x12')]=_0xccd9e3[_0x24a0e4('0x12')],this[_0x24a0e4('0x2')]=_0xccd9e3[_0x24a0e4('0x2')],this['telephones']=_0xccd9e3[_0x24a0e4('0x39')],ami['on']('registryentry',this[_0x24a0e4('0x26')][_0x24a0e4('0x13')](this)),ami['on'](_0x24a0e4('0x17'),this[_0x24a0e4('0x26')][_0x24a0e4('0x13')](this)),ami['on']('devicestatechange',this[_0x24a0e4('0x2d')][_0x24a0e4('0x13')](this)),ami['on'](_0x24a0e4('0x18'),this[_0x24a0e4('0x10')]['bind'](this)),this['loopSyncRealTimeShow'](),Promise[_0x24a0e4('0x40')]()[_0x24a0e4('0x4')](ami[_0x24a0e4('0xc')]())[_0x24a0e4('0x4')](ami['actionDeviceStateList']())['then'](ami['actionSipPeerStatus']())[_0x24a0e4('0x20')](loggerCatch(_0x24a0e4('0x2f')));}function loggerCatch(_0x271765){return function(_0x4ba258){const _0x1069ab=a1094_0x159b;logger[_0x1069ab('0x2a')](_0x271765,util[_0x1069ab('0x21')](_0x4ba258,{'showHidden':![],'depth':null}));};}UserReport[_0xf0f75d('0x6')][_0xf0f75d('0x23')]=function(){setInterval(function(){const _0x48eb8c=a1094_0x159b;Promise[_0x48eb8c('0x40')]()['then'](ami[_0x48eb8c('0xc')]())['then'](ami[_0x48eb8c('0x36')]())[_0x48eb8c('0x4')](ami[_0x48eb8c('0x3c')]())['catch'](loggerCatch('[loopSyncRealTimeShow]'));},0x32c8);},UserReport[_0xf0f75d('0x6')][_0xf0f75d('0x11')]=function(_0x17f2bd){const _0x5b6f9c=_0xf0f75d;return _0x17f2bd!==null&&!_[_0x5b6f9c('0x1a')](_0x17f2bd);},UserReport[_0xf0f75d('0x6')]['emit']=function(_0x6a4734,_0x460573,_0xfb0589){const _0x24896b=_0xf0f75d;io['to'](_0x6a4734)[_0x24896b('0x2b')](_0x460573,_0xfb0589);},UserReport[_0xf0f75d('0x6')][_0xf0f75d('0x26')]=function(_0x3df725){const _0x189502=_0xf0f75d;try{if(this['isNotNull'](_0x3df725)){const _0xe16971=_[_0x189502('0x7')](this[_0x189502('0x12')],{'registry':_0x3df725[_0x189502('0x41')]});_0xe16971&&(_0x3df725[_0x189502('0x32')]=_0x3df725[_0x189502('0x8')],_[_0x189502('0x24')](_0xe16971,_[_0x189502('0x3d')](_0x3df725,[_0x189502('0x30'),_0x189502('0x0'),_0x189502('0x41'),_0x189502('0x8')])),this['emit'](util[_0x189502('0x14')]('trunk:%s',_0xe16971[_0x189502('0x29')]),_0x189502('0x22'),_0xe16971));}}catch(_0x1b6e15){logger[_0x189502('0x2a')](_0x189502('0x1e'),util[_0x189502('0x21')](_0x1b6e15,{'showHidden':![],'depth':null}));}},UserReport[_0xf0f75d('0x6')][_0xf0f75d('0x2d')]=function(_0x3d94ee){const _0x8415a7=_0xf0f75d;try{if(this[_0x8415a7('0x11')](_0x3d94ee)){if(this['agents'][_0x3d94ee[_0x8415a7('0x25')]])(!this[_0x8415a7('0x2')][_0x3d94ee['device']][_0x8415a7('0x33')]||_0x3d94ee['state']['toLowerCase']()==_0x8415a7('0x15'))&&(this['agents'][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0x33')]=![],this[_0x8415a7('0x2')][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0x8')]!==_0x3d94ee[_0x8415a7('0x8')][_0x8415a7('0x1')]()&&(this['agents'][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0xb')]=_['toNumber'](moment()[_0x8415a7('0x14')]('x'))),this[_0x8415a7('0x2')][_0x3d94ee['device']]['state']=_0x3d94ee[_0x8415a7('0x8')]['toLowerCase'](),this[_0x8415a7('0x2')][_0x3d94ee[_0x8415a7('0x25')]]['updateStatusRealtime'](_0x3d94ee));else{if(this[_0x8415a7('0x39')][_0x3d94ee[_0x8415a7('0x25')]])this[_0x8415a7('0x39')][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0x8')]!==_0x3d94ee[_0x8415a7('0x8')][_0x8415a7('0x1')]()&&(this['telephones'][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0xb')]=_['toNumber'](moment()[_0x8415a7('0x14')]('x'))),this[_0x8415a7('0x39')][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0x8')]=_0x3d94ee[_0x8415a7('0x8')][_0x8415a7('0x1')](),this['emit'](util[_0x8415a7('0x14')]('telephone:%s',this[_0x8415a7('0x39')][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0x29')]),_0x8415a7('0xf'),this[_0x8415a7('0x39')][_0x3d94ee[_0x8415a7('0x25')]]);else{if(this[_0x8415a7('0x12')][_0x3d94ee[_0x8415a7('0x25')]])this[_0x8415a7('0x12')][_0x3d94ee['device']][_0x8415a7('0x8')]!==_0x3d94ee['state'][_0x8415a7('0x1')]()&&(this['trunks'][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0xb')]=_[_0x8415a7('0x2c')](moment()['format']('x'))),this[_0x8415a7('0x12')][_0x3d94ee['device']][_0x8415a7('0x8')]=_0x3d94ee[_0x8415a7('0x8')][_0x8415a7('0x1')](),this[_0x8415a7('0x2b')](util[_0x8415a7('0x14')]('trunk:%s',this[_0x8415a7('0x12')][_0x3d94ee[_0x8415a7('0x25')]][_0x8415a7('0x29')]),'trunk:save',this[_0x8415a7('0x12')][_0x3d94ee[_0x8415a7('0x25')]]);else{if(_[_0x8415a7('0x35')](_0x3d94ee['device'],_0x8415a7('0x9'))){}else{if(_['startsWith'](_0x3d94ee[_0x8415a7('0x25')],_0x8415a7('0x3a'))){const _0x1b145b=_0x3d94ee[_0x8415a7('0x25')],_0x2f9dc3=_0x1b145b[_0x8415a7('0x31')](_0x1b145b['indexOf']('/')+0x1,_0x1b145b['indexOf']('@')),_0x4c4fc1=_[_0x8415a7('0x7')](this['agents'],function(_0x436ea2){const _0x4dd53d=_0x8415a7;return _0x436ea2[_0x4dd53d('0x28')]==_0x2f9dc3||_0x436ea2[_0x4dd53d('0x1d')]==_0x2f9dc3||_0x436ea2[_0x4dd53d('0x16')]==_0x2f9dc3;});_0x4c4fc1&&(_0x4c4fc1[_0x8415a7('0x8')]!==_0x3d94ee[_0x8415a7('0x8')][_0x8415a7('0x1')]()&&(_0x4c4fc1[_0x8415a7('0xb')]=_[_0x8415a7('0x2c')](moment()[_0x8415a7('0x14')]('x'))),_0x4c4fc1['state']=_0x3d94ee[_0x8415a7('0x8')][_0x8415a7('0x1')](),_0x4c4fc1[_0x8415a7('0x33')]=!![],_0x4c4fc1[_0x8415a7('0x37')](_0x3d94ee));}else{}}}}}}}catch(_0x30696e){logger[_0x8415a7('0x2a')](_0x8415a7('0xe'),util[_0x8415a7('0x21')](_0x30696e,{'showHidden':![],'depth':null}));}},UserReport[_0xf0f75d('0x6')][_0xf0f75d('0x10')]=function(_0x564b67){const _0x17af02=_0xf0f75d;try{if(this[_0x17af02('0x11')](_0x564b67)&&this['isNotNull'](_0x564b67[_0x17af02('0x18')])){if(this[_0x17af02('0x2')][_0x564b67[_0x17af02('0xa')]])(!this[_0x17af02('0x2')][_0x564b67[_0x17af02('0xa')]][_0x17af02('0x33')]||_0x564b67[_0x17af02('0x18')]['toLowerCase']()==_0x17af02('0x5'))&&(this['agents'][_0x564b67[_0x17af02('0xa')]]['local']=![],this['agents'][_0x564b67[_0x17af02('0xa')]][_0x17af02('0x19')]=_0x564b67[_0x17af02('0x18')][_0x17af02('0x1')](),this[_0x17af02('0x2')][_0x564b67['peer']][_0x17af02('0x27')]=_0x564b67[_0x17af02('0x27')],this[_0x17af02('0x2')][_0x564b67[_0x17af02('0xa')]][_0x17af02('0x37')](_0x564b67));else{if(this[_0x17af02('0x39')][_0x564b67[_0x17af02('0xa')]])this[_0x17af02('0x39')][_0x564b67[_0x17af02('0xa')]][_0x17af02('0x19')]=_0x564b67['peerstatus']['toLowerCase'](),this[_0x17af02('0x39')][_0x564b67['peer']]['address']=_0x564b67['address'],this[_0x17af02('0x2b')](util[_0x17af02('0x14')](_0x17af02('0x1f'),this[_0x17af02('0x39')][_0x564b67[_0x17af02('0xa')]]['name']),_0x17af02('0xf'),this['telephones'][_0x564b67['peer']]);else{if(this[_0x17af02('0x12')][_0x564b67[_0x17af02('0xa')]])this[_0x17af02('0x12')][_0x564b67[_0x17af02('0xa')]][_0x17af02('0x19')]=_0x564b67[_0x17af02('0x18')][_0x17af02('0x1')](),this[_0x17af02('0x12')][_0x564b67[_0x17af02('0xa')]][_0x17af02('0x27')]=_0x564b67[_0x17af02('0x27')],this[_0x17af02('0x2b')](util['format'](_0x17af02('0x34'),this[_0x17af02('0x12')][_0x564b67['peer']][_0x17af02('0x29')]),_0x17af02('0x22'),this['trunks'][_0x564b67[_0x17af02('0xa')]]);else{}}}}}catch(_0x176c2d){logger[_0x17af02('0x2a')](_0x17af02('0x1c'),util[_0x17af02('0x21')](_0x176c2d,{'showHidden':![],'depth':null}));}},module[_0xf0f75d('0x3f')]=UserReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceAgentReport.js b/server/services/ami/report/voiceAgentReport.js index afe504a..24c0fc0 100644 --- a/server/services/ami/report/voiceAgentReport.js +++ b/server/services/ami/report/voiceAgentReport.js @@ -1 +1 @@ -const a1094_0x2c05=['rtpaudioqosjitterbridged','pick','syncMusicOnHoldStart','user:called','includes','rejected','memberlastcall','[syncAttendedTransfer][VoiceAgentReport]','user:agentconnect','../../../config/logger','reason','agentringnoanswer','origtransfereruniqueid','bridgepeer','bind','lodash','syncBlindTransfer','isUndefined','[syncAgentRingNoAnswer][VoiceAgentReport]','ami','acwTimeout','substring','syncVarSet','[syncMusicOnHoldStart][VoiceAgentReport]','diff','agent','../ami','custom:agentcalled','custom:agentringnoanswer','syncMusicOnHoldStop','answeredelsewheredestinationuniqueid','variables','holdtime','queuecallerabandon','voiceQueues','custom:agentconnect','secondtransfereruniqueid','syncAgentCalled','inspect','[syncQueueCallerAbandon][VoiceAgentReport]','isNotNull','memberdynamic','answeredelsewheremembername','omit','agentcompleteAt','[syncAgentComplete][VoiceAgentReport]','agentcalled','destchannelstatedesc','memberrealtime','called','agentringnoanswerAt','lastIndexOf','memberpenalty','interface','seconds','moment','error','complete','emit','agentconnectAt','event','[syncVarSet][VoiceAgentReport]','syncAgentRingNoAnswer','syncAgentConnect','YYYY-MM-DD\x20HH:mm:ss','transfer','syncAttendedTransfer','format','../../../rediscache','destuniqueid','answered_elsewhere','agentconnect','connectedlinename','[syncHangup][VoiceAgentReport]','values','syncQueueCallerAbandon','type','abandoned','addVariable','varset','custom:agentansweredelsewhere','onhold','rtpaudioqosrttbridged','privilege','channel','agentacw','lastevent','sipcallid','musiconholdstart','transfereeuniqueid','value','custom:voiceAgentReport','variable','inbound','keys','queue','isNil','[syncAgentConnect][VoiceAgentReport]','prototype','util','custom:agentqueuecallerabandon','rtpaudioqoslossbridged','agentcomplete','connectedlinenum','attendedtransfer','user:%s','channels','transfereruniqueid','memberinterface','agents','destconnectedlinenum','acwtime','talktime','hangup','syncAgentComplete','uniqueid','rtpaudioqosbridged','membername','undefined'];(function(_0x1f428b,_0x2c0573){const _0x4eafb5=function(_0x36b7ba){while(--_0x36b7ba){_0x1f428b['push'](_0x1f428b['shift']());}};_0x4eafb5(++_0x2c0573);}(a1094_0x2c05,0x172));const a1094_0x4eaf=function(_0x1f428b,_0x2c0573){_0x1f428b=_0x1f428b-0x0;let _0x4eafb5=a1094_0x2c05[_0x1f428b];return _0x4eafb5;};const _0x3e6c05=a1094_0x4eaf;'use strict';const _=require(_0x3e6c05('0x2')),moment=require(_0x3e6c05('0x2a')),util=require(_0x3e6c05('0x56')),logger=require(_0x3e6c05('0x73'))(_0x3e6c05('0x6')),ami=require(_0x3e6c05('0xd')),{getSocket}=require(_0x3e6c05('0x37')),io=getSocket();function VoiceAgentReport(_0x36b7ba){const _0x552ea0=_0x3e6c05;this[_0x552ea0('0x5d')]={},this[_0x552ea0('0x15')]=_0x36b7ba[_0x552ea0('0x15')],this[_0x552ea0('0x60')]=_0x36b7ba[_0x552ea0('0x60')],this[_0x552ea0('0x12')]={},ami['on'](_0x552ea0('0x21'),this[_0x552ea0('0x18')][_0x552ea0('0x1')](this)),ami['on'](_0x552ea0('0x3a'),this[_0x552ea0('0x32')][_0x552ea0('0x1')](this)),ami['on']('agentringnoanswer',this['syncAgentRingNoAnswer']['bind'](this)),ami['on'](_0x552ea0('0x14'),this[_0x552ea0('0x3e')][_0x552ea0('0x1')](this)),ami['on'](_0x552ea0('0x59'),this['syncAgentComplete'][_0x552ea0('0x1')](this)),ami['on'](_0x552ea0('0x42'),this[_0x552ea0('0x9')][_0x552ea0('0x1')](this)),ami['on'](_0x552ea0('0x64'),this['syncHangup'][_0x552ea0('0x1')](this)),ami['on'](_0x552ea0('0x4b'),this[_0x552ea0('0x6c')][_0x552ea0('0x1')](this)),ami['on']('musiconholdstop',this[_0x552ea0('0x10')][_0x552ea0('0x1')](this)),ami['on'](_0x552ea0('0x5b'),this[_0x552ea0('0x35')][_0x552ea0('0x1')](this)),ami['on']('blindtransfer',this[_0x552ea0('0x3')]['bind'](this));}VoiceAgentReport[_0x3e6c05('0x55')]['emit']=function(_0x303e82,_0x1b0909,_0x12fb1a){const _0x5d99dc=_0x3e6c05;io['to'](_0x303e82)[_0x5d99dc('0x2d')](_0x1b0909,_0x12fb1a);},VoiceAgentReport[_0x3e6c05('0x55')][_0x3e6c05('0x1b')]=function(_0x215b2b){const _0x154042=_0x3e6c05;return _0x215b2b!==null&&!_[_0x154042('0x4')](_0x215b2b);},VoiceAgentReport['prototype'][_0x3e6c05('0x18')]=function(_0x5d8ef9){const _0x141216=_0x3e6c05;try{this['isNotNull'](_0x5d8ef9)&&(_[_0x141216('0x4')](this['channels'][_0x5d8ef9[_0x141216('0x66')]])&&(this[_0x141216('0x5d')][_0x5d8ef9[_0x141216('0x66')]]={}),_[_0x141216('0x4')](this['channels'][_0x5d8ef9[_0x141216('0x66')]][_0x5d8ef9[_0x141216('0x38')]])&&(this['channels'][_0x5d8ef9['uniqueid']][_0x5d8ef9[_0x141216('0x38')]]={'agentcalledAt':moment()[_0x141216('0x36')](_0x141216('0x33')),'lastevent':_0x141216('0x24'),'variables':this[_0x141216('0x12')][_0x5d8ef9[_0x141216('0x66')]],'type':this['voiceQueues'][_0x5d8ef9[_0x141216('0x52')]]?this[_0x141216('0x15')][_0x5d8ef9['queue']][_0x141216('0x3f')]||_0x141216('0x50'):_0x141216('0x50')}),_['merge'](this[_0x141216('0x5d')][_0x5d8ef9['uniqueid']][_0x5d8ef9[_0x141216('0x38')]],_[_0x141216('0x1e')](_0x5d8ef9,[_0x141216('0x2f'),_0x141216('0x46')])),ami[_0x141216('0x2d')](_0x141216('0xe'),this[_0x141216('0x5d')][_0x5d8ef9[_0x141216('0x66')]][_0x5d8ef9[_0x141216('0x38')]]),this['emit'](util['format'](_0x141216('0x5c'),_0x5d8ef9['membername']),_0x141216('0x6d'),this[_0x141216('0x5d')][_0x5d8ef9['uniqueid']][_0x5d8ef9[_0x141216('0x38')]]));}catch(_0x469350){logger[_0x141216('0x2b')]('[syncAgentCalled][VoiceAgentReport]',util['inspect'](_0x469350,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')][_0x3e6c05('0x32')]=function(_0x4e5b15){const _0x396bdd=_0x3e6c05;try{if(this[_0x396bdd('0x1b')](_0x4e5b15)){if(this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]])for(const _0x14df67 in this[_0x396bdd('0x5d')][_0x4e5b15['uniqueid']]){if(typeof this[_0x396bdd('0x5d')][_0x4e5b15['uniqueid']][_0x14df67]!=='undefined'){if(_0x4e5b15[_0x396bdd('0x38')]===_0x14df67)this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67][_0x396bdd('0x2e')]=moment()[_0x396bdd('0x36')](_0x396bdd('0x33')),this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67][_0x396bdd('0x49')]='connect',this['channels'][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67][_0x396bdd('0x13')]=_0x4e5b15['holdtime'],this['channels'][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67]['connectedlinenum']=_0x4e5b15[_0x396bdd('0x5a')],this[_0x396bdd('0x5d')][_0x4e5b15['uniqueid']][_0x14df67]['connectedlinename']=_0x4e5b15[_0x396bdd('0x3b')],this['channels'][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67]['destchannelstate']=_0x4e5b15['destchannelstate'],this['channels'][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67]['destchannelstatedesc']=_0x4e5b15[_0x396bdd('0x22')],_['merge'](this[_0x396bdd('0x60')][_0x4e5b15['interface']],_[_0x396bdd('0x6b')](_0x4e5b15,[_0x396bdd('0x52'),'destconnectedlinenum'])),this[_0x396bdd('0x2d')](util[_0x396bdd('0x36')](_0x396bdd('0x5c'),_0x4e5b15[_0x396bdd('0x68')]),_0x396bdd('0x72'),this[_0x396bdd('0x5d')][_0x4e5b15['uniqueid']][_0x4e5b15[_0x396bdd('0x38')]]),ami[_0x396bdd('0x2d')](_0x396bdd('0x16'),this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67]);else!this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67]['agentringnoanswer']&&!this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67][_0x396bdd('0x59')]&&(this[_0x396bdd('0x5d')][_0x4e5b15['uniqueid']][_0x14df67][_0x396bdd('0x75')]=!![],this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67][_0x396bdd('0x25')]=moment()['format'](_0x396bdd('0x33')),this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67]['reason']=_0x396bdd('0x39'),this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67][_0x396bdd('0x49')]=_0x396bdd('0x39'),this['channels'][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67][_0x396bdd('0x11')]=_0x4e5b15[_0x396bdd('0x38')],this[_0x396bdd('0x5d')][_0x4e5b15[_0x396bdd('0x66')]][_0x14df67][_0x396bdd('0x1d')]=_0x4e5b15['membername'],ami[_0x396bdd('0x2d')](_0x396bdd('0x43'),this[_0x396bdd('0x5d')][_0x4e5b15['uniqueid']][_0x14df67]));}}}}catch(_0x4bc1a3){logger[_0x396bdd('0x2b')](_0x396bdd('0x54'),util[_0x396bdd('0x19')](_0x4bc1a3,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')][_0x3e6c05('0x31')]=function(_0x4056b8){const _0x4b49c5=_0x3e6c05;try{this[_0x4b49c5('0x1b')](_0x4056b8)&&(this[_0x4b49c5('0x5d')][_0x4056b8[_0x4b49c5('0x66')]]&&this[_0x4b49c5('0x5d')][_0x4056b8['uniqueid']][_0x4056b8[_0x4b49c5('0x38')]]&&(this[_0x4b49c5('0x5d')][_0x4056b8['uniqueid']][_0x4056b8[_0x4b49c5('0x38')]][_0x4b49c5('0x75')]=!![],this[_0x4b49c5('0x5d')][_0x4056b8[_0x4b49c5('0x66')]][_0x4056b8[_0x4b49c5('0x38')]]['agentringnoanswerAt']=moment()['format'](_0x4b49c5('0x33')),this[_0x4b49c5('0x5d')][_0x4056b8[_0x4b49c5('0x66')]][_0x4056b8[_0x4b49c5('0x38')]][_0x4b49c5('0x74')]=_0x4b49c5('0x6f'),this[_0x4b49c5('0x5d')][_0x4056b8[_0x4b49c5('0x66')]][_0x4056b8[_0x4b49c5('0x38')]][_0x4b49c5('0x49')]=_0x4b49c5('0x6f'),ami[_0x4b49c5('0x2d')](_0x4b49c5('0xf'),this[_0x4b49c5('0x5d')][_0x4056b8[_0x4b49c5('0x66')]][_0x4056b8[_0x4b49c5('0x38')]])));}catch(_0x109418){logger['error'](_0x4b49c5('0x5'),util['inspect'](_0x109418,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')]['syncQueueCallerAbandon']=function(_0x5602df){const _0xeee7cc=_0x3e6c05;try{if(this[_0xeee7cc('0x1b')](_0x5602df)){if(this[_0xeee7cc('0x5d')][_0x5602df['uniqueid']])for(const _0xd77d0b in this[_0xeee7cc('0x5d')][_0x5602df[_0xeee7cc('0x66')]]){typeof this['channels'][_0x5602df['uniqueid']][_0xd77d0b]!==_0xeee7cc('0x69')&&!this[_0xeee7cc('0x5d')][_0x5602df[_0xeee7cc('0x66')]][_0xd77d0b][_0xeee7cc('0x75')]&&!this[_0xeee7cc('0x5d')][_0x5602df[_0xeee7cc('0x66')]][_0xd77d0b]['agentcomplete']&&(this[_0xeee7cc('0x5d')][_0x5602df['uniqueid']][_0xd77d0b][_0xeee7cc('0x75')]=!![],this[_0xeee7cc('0x5d')][_0x5602df[_0xeee7cc('0x66')]][_0xd77d0b][_0xeee7cc('0x25')]=moment()[_0xeee7cc('0x36')](_0xeee7cc('0x33')),this[_0xeee7cc('0x5d')][_0x5602df['uniqueid']][_0xd77d0b][_0xeee7cc('0x74')]=_0xeee7cc('0x40'),this[_0xeee7cc('0x5d')][_0x5602df['uniqueid']][_0xd77d0b][_0xeee7cc('0x49')]=_0xeee7cc('0x40'),ami[_0xeee7cc('0x2d')](_0xeee7cc('0x57'),this['channels'][_0x5602df['uniqueid']][_0xd77d0b]));}}}catch(_0x590a54){logger[_0xeee7cc('0x2b')](_0xeee7cc('0x1a'),util['inspect'](_0x590a54,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')][_0x3e6c05('0x65')]=function(_0x5c0284){const _0x2529b8=_0x3e6c05;try{if(this[_0x2529b8('0x1b')](_0x5c0284)){if(this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]])for(const _0xdd3a82 in this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]]){typeof this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82]!==_0x2529b8('0x69')&&(this['channels'][_0x5c0284['uniqueid']][_0xdd3a82][_0x2529b8('0x2e')]&&!this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82]['agentcomplete']&&(this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82][_0x2529b8('0x59')]=!![],this[_0x2529b8('0x5d')][_0x5c0284['uniqueid']][_0xdd3a82][_0x2529b8('0x1f')]=moment()[_0x2529b8('0x36')](_0x2529b8('0x33')),this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82]['lastevent']=_0x2529b8('0x2c'),this[_0x2529b8('0x5d')][_0x5c0284['uniqueid']][_0xdd3a82][_0x2529b8('0x63')]=_0x5c0284[_0x2529b8('0x63')],this['channels'][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82][_0x2529b8('0x74')]=_0x5c0284[_0x2529b8('0x74')]==_0x2529b8('0x34')?_0x2529b8('0xc'):_0x5c0284[_0x2529b8('0x74')],this[_0x2529b8('0x15')][_0x5c0284[_0x2529b8('0x52')]]&&this[_0x2529b8('0x15')][_0x5c0284[_0x2529b8('0x52')]]['acw']&&(this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82][_0x2529b8('0x48')]=!![],this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82][_0x2529b8('0x62')]=this[_0x2529b8('0x15')][_0x5c0284[_0x2529b8('0x52')]][_0x2529b8('0x7')]),this['agents'][_0x5c0284[_0x2529b8('0x28')]]=_[_0x2529b8('0x1e')](this[_0x2529b8('0x60')][_0x5c0284['interface']],[_0x2529b8('0x52'),_0x2529b8('0x61')]),this[_0x2529b8('0x2d')](util[_0x2529b8('0x36')](_0x2529b8('0x5c'),_0x5c0284[_0x2529b8('0x68')]),'user:agentcomplete',this['channels'][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82]),ami['emit']('custom:agentcomplete',this[_0x2529b8('0x5d')][_0x5c0284[_0x2529b8('0x66')]][_0xdd3a82])));}}}catch(_0xcad131){logger[_0x2529b8('0x2b')](_0x2529b8('0x20'),util[_0x2529b8('0x19')](_0xcad131,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')]['syncVarSet']=function(_0x5a8eec){const _0xdf7d74=_0x3e6c05;try{if(this[_0xdf7d74('0x1b')](_0x5a8eec)){this[_0xdf7d74('0x41')](_0x5a8eec['uniqueid'],_[_0xdf7d74('0x51')](_0x5a8eec[_0xdf7d74('0x4f')])[0x0],_0x5a8eec[_0xdf7d74('0x4d')]);if(this[_0xdf7d74('0x5d')][_0x5a8eec[_0xdf7d74('0x66')]])for(const _0x56db6b in this[_0xdf7d74('0x5d')][_0x5a8eec[_0xdf7d74('0x66')]]){typeof this[_0xdf7d74('0x5d')][_0x5a8eec['uniqueid']][_0x56db6b]!=='undefined'&&(_[_0xdf7d74('0x4')](this[_0xdf7d74('0x5d')][_0x5a8eec[_0xdf7d74('0x66')]][_0x56db6b][_0xdf7d74('0x12')])&&(this[_0xdf7d74('0x5d')][_0x5a8eec[_0xdf7d74('0x66')]][_0x56db6b][_0xdf7d74('0x12')]={}),this['channels'][_0x5a8eec[_0xdf7d74('0x66')]][_0x56db6b][_0xdf7d74('0x12')]=this[_0xdf7d74('0x12')][_0x5a8eec[_0xdf7d74('0x66')]]);}}}catch(_0x11ff2c){logger['error'](_0xdf7d74('0x30'),util[_0xdf7d74('0x19')](_0x11ff2c,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')]['addVariable']=function(_0x35ba7f,_0x2b8f26,_0x58ab5c){const _0x1740c3=_0x3e6c05,_0x5b6d8c=['rtpaudioqos',_0x1740c3('0x67'),'rtpaudioqosjitter',_0x1740c3('0x6a'),'rtpaudioqosloss',_0x1740c3('0x58'),'rtpaudioqosrtt',_0x1740c3('0x45'),_0x1740c3('0x4a'),'sipuri',_0x1740c3('0x0'),'bridgepvtcallid','membercalls',_0x1740c3('0x1c'),_0x1740c3('0x5f'),_0x1740c3('0x70'),_0x1740c3('0x68'),_0x1740c3('0x27'),_0x1740c3('0x23')];!_[_0x1740c3('0x53')](_0x2b8f26)&&!_[_0x1740c3('0x6e')](_0x5b6d8c,_0x2b8f26)&&(_['isUndefined'](this['variables'][_0x35ba7f])&&(this[_0x1740c3('0x12')][_0x35ba7f]={}),this[_0x1740c3('0x12')][_0x35ba7f][_0x2b8f26]=_0x58ab5c);},VoiceAgentReport[_0x3e6c05('0x55')]['syncHangup']=function(_0x4e9410){const _0x5f4ca7=_0x3e6c05;try{if(this['isNotNull'](_0x4e9410)){if(this[_0x5f4ca7('0x5d')][_0x4e9410['uniqueid']]){for(const _0x4fdd6a in this[_0x5f4ca7('0x5d')][_0x4e9410['uniqueid']]){typeof this[_0x5f4ca7('0x5d')][_0x4e9410[_0x5f4ca7('0x66')]][_0x4fdd6a]!==_0x5f4ca7('0x69')&&(this[_0x5f4ca7('0x5d')][_0x4e9410[_0x5f4ca7('0x66')]][_0x4fdd6a][_0x5f4ca7('0x74')]=='transfer'&&this[_0x5f4ca7('0x5d')][_0x4e9410['uniqueid']][_0x4fdd6a]['agentcomplete']&&(this['channels'][_0x4e9410['uniqueid']][_0x4fdd6a][_0x5f4ca7('0x1f')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss')));}ami[_0x5f4ca7('0x2d')](_0x5f4ca7('0x4e'),_[_0x5f4ca7('0x3d')](this[_0x5f4ca7('0x5d')][_0x4e9410[_0x5f4ca7('0x66')]])),delete this[_0x5f4ca7('0x5d')][_0x4e9410[_0x5f4ca7('0x66')]];}this[_0x5f4ca7('0x12')][_0x4e9410[_0x5f4ca7('0x66')]]&&delete this[_0x5f4ca7('0x12')][_0x4e9410[_0x5f4ca7('0x66')]];}}catch(_0x3d1ed7){logger[_0x5f4ca7('0x2b')](_0x5f4ca7('0x3c'),util['inspect'](_0x3d1ed7,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x3e6c05('0x35')]=function(_0x3a6b0a){const _0x13d1c2=_0x3e6c05;try{if(this[_0x13d1c2('0x1b')](_0x3a6b0a)){if(this['channels'][_0x3a6b0a[_0x13d1c2('0x4c')]])for(const _0x507bf8 in this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x4c')]]){if(typeof this[_0x13d1c2('0x5d')][_0x3a6b0a['transfereeuniqueid']][_0x507bf8]!==_0x13d1c2('0x69')){if(_0x3a6b0a[_0x13d1c2('0x76')]===_0x507bf8){const _0x346e6d=moment();this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x4c')]][_0x507bf8][_0x13d1c2('0x59')]=!![],this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x4c')]][_0x507bf8][_0x13d1c2('0x1f')]=moment()['format'](_0x13d1c2('0x33')),this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x4c')]][_0x507bf8][_0x13d1c2('0x74')]=_0x13d1c2('0x34'),this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x4c')]][_0x507bf8][_0x13d1c2('0x49')]=_0x13d1c2('0x2c'),this[_0x13d1c2('0x5d')][_0x3a6b0a['transfereeuniqueid']][_0x507bf8]['talktime']=_0x346e6d[_0x13d1c2('0xb')](this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x4c')]][_0x507bf8][_0x13d1c2('0x2e')],'seconds');}}}if(this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x17')]]){const _0x5db1b3=this[_0x13d1c2('0x5d')][_0x3a6b0a['secondtransfereruniqueid']];this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x17')]]=this[_0x13d1c2('0x5d')][_0x3a6b0a[_0x13d1c2('0x4c')]],this[_0x13d1c2('0x5d')][_0x3a6b0a['transfereeuniqueid']]=_0x5db1b3;}}}catch(_0x2def0b){logger[_0x13d1c2('0x2b')](_0x13d1c2('0x71'),util[_0x13d1c2('0x19')](_0x2def0b,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')]['syncBlindTransfer']=function(_0x463304){const _0x2028e7=_0x3e6c05;try{if(this[_0x2028e7('0x1b')](_0x463304)){if(this[_0x2028e7('0x5d')][_0x463304[_0x2028e7('0x4c')]])for(const _0x341bdd in this[_0x2028e7('0x5d')][_0x463304['transfereeuniqueid']]){if(typeof this[_0x2028e7('0x5d')][_0x463304[_0x2028e7('0x4c')]][_0x341bdd]!==_0x2028e7('0x69')){if(_0x463304[_0x2028e7('0x5e')]===_0x341bdd){const _0x5b0fa8=moment();this[_0x2028e7('0x5d')][_0x463304[_0x2028e7('0x4c')]][_0x341bdd][_0x2028e7('0x59')]=!![],this[_0x2028e7('0x5d')][_0x463304[_0x2028e7('0x4c')]][_0x341bdd][_0x2028e7('0x1f')]=_0x5b0fa8,this['channels'][_0x463304['transfereeuniqueid']][_0x341bdd][_0x2028e7('0x74')]=_0x2028e7('0x34'),this['channels'][_0x463304[_0x2028e7('0x4c')]][_0x341bdd][_0x2028e7('0x49')]=_0x2028e7('0x2c'),this['channels'][_0x463304[_0x2028e7('0x4c')]][_0x341bdd]['talktime']=_0x5b0fa8['diff'](this[_0x2028e7('0x5d')][_0x463304[_0x2028e7('0x4c')]][_0x341bdd][_0x2028e7('0x2e')],_0x2028e7('0x29'));}}}}}catch(_0x522af6){logger[_0x2028e7('0x2b')]('[syncBlindTransfer][VoiceAgentReport]',util['inspect'](_0x522af6,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')][_0x3e6c05('0x6c')]=function(_0x204481){const _0x39a3ef=_0x3e6c05;let _0x4fccbb='';try{this['isNotNull'](_0x204481)&&(_0x204481[_0x39a3ef('0x47')]&&(_0x4fccbb=_0x204481[_0x39a3ef('0x47')][_0x39a3ef('0x8')](0x0,_0x204481[_0x39a3ef('0x47')][_0x39a3ef('0x26')]('-')),this['agents'][_0x4fccbb]&&(this[_0x39a3ef('0x60')][_0x4fccbb][_0x39a3ef('0x44')]=!![])));}catch(_0x15395c){logger[_0x39a3ef('0x2b')](_0x39a3ef('0xa'),util[_0x39a3ef('0x19')](_0x15395c,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x3e6c05('0x55')][_0x3e6c05('0x10')]=function(_0x3b3759){const _0x5a6967=_0x3e6c05;let _0x2b89b2='';try{this['isNotNull'](_0x3b3759)&&(_0x3b3759[_0x5a6967('0x47')]&&(_0x2b89b2=_0x3b3759[_0x5a6967('0x47')][_0x5a6967('0x8')](0x0,_0x3b3759[_0x5a6967('0x47')][_0x5a6967('0x26')]('-')),this['agents'][_0x2b89b2]&&(this[_0x5a6967('0x60')][_0x2b89b2][_0x5a6967('0x44')]=![])));}catch(_0xa5f480){logger[_0x5a6967('0x2b')]('[syncMusicOnHoldStop][VoiceAgentReport]',util[_0x5a6967('0x19')](_0xa5f480,{'showHidden':![],'depth':null}));}},module['exports']=VoiceAgentReport; \ No newline at end of file +const a1095_0x1ae8=['custom:agentcalled','syncAgentConnect','syncHangup','pick','custom:agentcomplete','util','connectedlinename','../ami','agentcompleteAt','abandoned','custom:agentansweredelsewhere','sipcallid','inbound','[syncVarSet][VoiceAgentReport]','uniqueid','attendedtransfer','substring','syncMusicOnHoldStop','rtpaudioqos','agents','error','agentringnoanswer','values','memberdynamic','[syncMusicOnHoldStart][VoiceAgentReport]','syncBlindTransfer','agentringnoanswerAt','isNotNull','channels','user:%s','syncAgentRingNoAnswer','variable','rtpaudioqoslossbridged','transfereeuniqueid','includes','syncMusicOnHoldStart','format','value','user:called','memberinterface','bridgepeer','custom:agentringnoanswer','rejected','exports','../../../rediscache','lastIndexOf','[syncBlindTransfer][VoiceAgentReport]','event','syncAgentCalled','holdtime','answeredelsewheremembername','musiconholdstart','destchannelstatedesc','acwtime','transfereruniqueid','agentcomplete','connectedlinenum','YYYY-MM-DD\x20HH:mm:ss','queuecallerabandon','[syncAttendedTransfer][VoiceAgentReport]','syncAgentComplete','inspect','diff','custom:voiceAgentReport','isUndefined','ami','secondtransfereruniqueid','memberlastcall','destuniqueid','memberpenalty','musiconholdstop','bind','prototype','merge','syncQueueCallerAbandon','interface','lastevent','custom:agentqueuecallerabandon','rtpaudioqosjitterbridged','agentconnectAt','answeredelsewheredestinationuniqueid','reason','membername','destchannelstate','undefined','complete','talktime','omit','voiceQueues','channel','user:agentcomplete','moment','queue','lodash','rtpaudioqosrtt','keys','answered_elsewhere','syncAttendedTransfer','memberrealtime','isNil','transfer','syncVarSet','addVariable','[syncAgentCalled][VoiceAgentReport]','variables','agent','emit','[syncAgentRingNoAnswer][VoiceAgentReport]'];(function(_0x4bae6d,_0x1ae849){const _0x25de65=function(_0x5e8ca8){while(--_0x5e8ca8){_0x4bae6d['push'](_0x4bae6d['shift']());}};_0x25de65(++_0x1ae849);}(a1095_0x1ae8,0x98));const a1095_0x25de=function(_0x4bae6d,_0x1ae849){_0x4bae6d=_0x4bae6d-0x0;let _0x25de65=a1095_0x1ae8[_0x4bae6d];return _0x25de65;};const _0x32d436=a1095_0x25de;'use strict';const _=require(_0x32d436('0x31')),moment=require(_0x32d436('0x2f')),util=require(_0x32d436('0x45')),logger=require('../../../config/logger')(_0x32d436('0x15')),ami=require(_0x32d436('0x47')),{getSocket}=require(_0x32d436('0x0')),io=getSocket();function VoiceAgentReport(_0x5e8ca8){const _0x5b4e75=_0x32d436;this[_0x5b4e75('0x5c')]={},this[_0x5b4e75('0x2c')]=_0x5e8ca8['voiceQueues'],this['agents']=_0x5e8ca8[_0x5b4e75('0x53')],this['variables']={},ami['on']('agentcalled',this[_0x5b4e75('0x4')][_0x5b4e75('0x1b')](this)),ami['on']('agentconnect',this['syncAgentConnect'][_0x5b4e75('0x1b')](this)),ami['on'](_0x5b4e75('0x55'),this[_0x5b4e75('0x5e')][_0x5b4e75('0x1b')](this)),ami['on'](_0x5b4e75('0xe'),this[_0x5b4e75('0x1e')][_0x5b4e75('0x1b')](this)),ami['on'](_0x5b4e75('0xb'),this['syncAgentComplete'][_0x5b4e75('0x1b')](this)),ami['on']('varset',this[_0x5b4e75('0x39')][_0x5b4e75('0x1b')](this)),ami['on']('hangup',this[_0x5b4e75('0x42')][_0x5b4e75('0x1b')](this)),ami['on'](_0x5b4e75('0x7'),this[_0x5b4e75('0x63')][_0x5b4e75('0x1b')](this)),ami['on'](_0x5b4e75('0x1a'),this['syncMusicOnHoldStop'][_0x5b4e75('0x1b')](this)),ami['on'](_0x5b4e75('0x4f'),this[_0x5b4e75('0x35')][_0x5b4e75('0x1b')](this)),ami['on']('blindtransfer',this[_0x5b4e75('0x59')][_0x5b4e75('0x1b')](this));}VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x3e')]=function(_0x2843e5,_0x11440d,_0xb833e4){const _0x4c697f=_0x32d436;io['to'](_0x2843e5)[_0x4c697f('0x3e')](_0x11440d,_0xb833e4);},VoiceAgentReport[_0x32d436('0x1c')]['isNotNull']=function(_0x7ecaf9){return _0x7ecaf9!==null&&!_['isUndefined'](_0x7ecaf9);},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x4')]=function(_0x56e0c7){const _0x4ecfb0=_0x32d436;try{this['isNotNull'](_0x56e0c7)&&(_[_0x4ecfb0('0x14')](this[_0x4ecfb0('0x5c')][_0x56e0c7['uniqueid']])&&(this[_0x4ecfb0('0x5c')][_0x56e0c7[_0x4ecfb0('0x4e')]]={}),_[_0x4ecfb0('0x14')](this[_0x4ecfb0('0x5c')][_0x56e0c7[_0x4ecfb0('0x4e')]][_0x56e0c7[_0x4ecfb0('0x18')]])&&(this[_0x4ecfb0('0x5c')][_0x56e0c7['uniqueid']][_0x56e0c7[_0x4ecfb0('0x18')]]={'agentcalledAt':moment()[_0x4ecfb0('0x64')](_0x4ecfb0('0xd')),'lastevent':'called','variables':this['variables'][_0x56e0c7['uniqueid']],'type':this['voiceQueues'][_0x56e0c7['queue']]?this[_0x4ecfb0('0x2c')][_0x56e0c7[_0x4ecfb0('0x30')]]['type']||_0x4ecfb0('0x4c'):_0x4ecfb0('0x4c')}),_[_0x4ecfb0('0x1d')](this[_0x4ecfb0('0x5c')][_0x56e0c7[_0x4ecfb0('0x4e')]][_0x56e0c7[_0x4ecfb0('0x18')]],_[_0x4ecfb0('0x2b')](_0x56e0c7,[_0x4ecfb0('0x3'),'privilege'])),ami[_0x4ecfb0('0x3e')](_0x4ecfb0('0x40'),this[_0x4ecfb0('0x5c')][_0x56e0c7[_0x4ecfb0('0x4e')]][_0x56e0c7[_0x4ecfb0('0x18')]]),this[_0x4ecfb0('0x3e')](util['format'](_0x4ecfb0('0x5d'),_0x56e0c7['membername']),_0x4ecfb0('0x66'),this[_0x4ecfb0('0x5c')][_0x56e0c7[_0x4ecfb0('0x4e')]][_0x56e0c7[_0x4ecfb0('0x18')]]));}catch(_0x4b91a0){logger['error'](_0x4ecfb0('0x3b'),util[_0x4ecfb0('0x11')](_0x4b91a0,{'showHidden':![],'depth':null}));}},VoiceAgentReport['prototype'][_0x32d436('0x41')]=function(_0x45f83b){const _0x53e7a5=_0x32d436;try{if(this[_0x53e7a5('0x5b')](_0x45f83b)){if(this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]])for(const _0x2ba191 in this['channels'][_0x45f83b[_0x53e7a5('0x4e')]]){if(typeof this['channels'][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191]!==_0x53e7a5('0x28')){if(_0x45f83b[_0x53e7a5('0x18')]===_0x2ba191)this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191]['agentconnectAt']=moment()[_0x53e7a5('0x64')](_0x53e7a5('0xd')),this[_0x53e7a5('0x5c')][_0x45f83b['uniqueid']][_0x2ba191][_0x53e7a5('0x20')]='connect',this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191][_0x53e7a5('0x5')]=_0x45f83b[_0x53e7a5('0x5')],this['channels'][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191][_0x53e7a5('0xc')]=_0x45f83b[_0x53e7a5('0xc')],this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191][_0x53e7a5('0x46')]=_0x45f83b[_0x53e7a5('0x46')],this['channels'][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191]['destchannelstate']=_0x45f83b[_0x53e7a5('0x27')],this[_0x53e7a5('0x5c')][_0x45f83b['uniqueid']][_0x2ba191][_0x53e7a5('0x8')]=_0x45f83b[_0x53e7a5('0x8')],_[_0x53e7a5('0x1d')](this[_0x53e7a5('0x53')][_0x45f83b[_0x53e7a5('0x1f')]],_[_0x53e7a5('0x43')](_0x45f83b,[_0x53e7a5('0x30'),'destconnectedlinenum'])),this[_0x53e7a5('0x3e')](util[_0x53e7a5('0x64')]('user:%s',_0x45f83b[_0x53e7a5('0x26')]),'user:agentconnect',this['channels'][_0x45f83b[_0x53e7a5('0x4e')]][_0x45f83b['destuniqueid']]),ami[_0x53e7a5('0x3e')]('custom:agentconnect',this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191]);else!this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191][_0x53e7a5('0x55')]&&!this[_0x53e7a5('0x5c')][_0x45f83b['uniqueid']][_0x2ba191][_0x53e7a5('0xb')]&&(this['channels'][_0x45f83b['uniqueid']][_0x2ba191][_0x53e7a5('0x55')]=!![],this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191][_0x53e7a5('0x5a')]=moment()[_0x53e7a5('0x64')](_0x53e7a5('0xd')),this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191]['reason']=_0x53e7a5('0x34'),this['channels'][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191][_0x53e7a5('0x20')]='answered_elsewhere',this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191][_0x53e7a5('0x24')]=_0x45f83b[_0x53e7a5('0x18')],this[_0x53e7a5('0x5c')][_0x45f83b[_0x53e7a5('0x4e')]][_0x2ba191][_0x53e7a5('0x6')]=_0x45f83b[_0x53e7a5('0x26')],ami[_0x53e7a5('0x3e')](_0x53e7a5('0x4a'),this[_0x53e7a5('0x5c')][_0x45f83b['uniqueid']][_0x2ba191]));}}}}catch(_0x23108f){logger[_0x53e7a5('0x54')]('[syncAgentConnect][VoiceAgentReport]',util[_0x53e7a5('0x11')](_0x23108f,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x5e')]=function(_0x5c0f13){const _0x1dc4c0=_0x32d436;try{this[_0x1dc4c0('0x5b')](_0x5c0f13)&&(this[_0x1dc4c0('0x5c')][_0x5c0f13[_0x1dc4c0('0x4e')]]&&this[_0x1dc4c0('0x5c')][_0x5c0f13[_0x1dc4c0('0x4e')]][_0x5c0f13['destuniqueid']]&&(this['channels'][_0x5c0f13[_0x1dc4c0('0x4e')]][_0x5c0f13[_0x1dc4c0('0x18')]]['agentringnoanswer']=!![],this[_0x1dc4c0('0x5c')][_0x5c0f13[_0x1dc4c0('0x4e')]][_0x5c0f13[_0x1dc4c0('0x18')]][_0x1dc4c0('0x5a')]=moment()[_0x1dc4c0('0x64')](_0x1dc4c0('0xd')),this[_0x1dc4c0('0x5c')][_0x5c0f13[_0x1dc4c0('0x4e')]][_0x5c0f13['destuniqueid']]['reason']=_0x1dc4c0('0x6a'),this[_0x1dc4c0('0x5c')][_0x5c0f13[_0x1dc4c0('0x4e')]][_0x5c0f13['destuniqueid']][_0x1dc4c0('0x20')]='rejected',ami[_0x1dc4c0('0x3e')](_0x1dc4c0('0x69'),this[_0x1dc4c0('0x5c')][_0x5c0f13[_0x1dc4c0('0x4e')]][_0x5c0f13['destuniqueid']])));}catch(_0x55cfe6){logger['error'](_0x1dc4c0('0x3f'),util['inspect'](_0x55cfe6,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x1e')]=function(_0x5686a9){const _0x5e3377=_0x32d436;try{if(this[_0x5e3377('0x5b')](_0x5686a9)){if(this['channels'][_0x5686a9[_0x5e3377('0x4e')]])for(const _0x5e94f8 in this[_0x5e3377('0x5c')][_0x5686a9[_0x5e3377('0x4e')]]){typeof this[_0x5e3377('0x5c')][_0x5686a9['uniqueid']][_0x5e94f8]!==_0x5e3377('0x28')&&!this[_0x5e3377('0x5c')][_0x5686a9['uniqueid']][_0x5e94f8][_0x5e3377('0x55')]&&!this[_0x5e3377('0x5c')][_0x5686a9['uniqueid']][_0x5e94f8][_0x5e3377('0xb')]&&(this[_0x5e3377('0x5c')][_0x5686a9['uniqueid']][_0x5e94f8]['agentringnoanswer']=!![],this[_0x5e3377('0x5c')][_0x5686a9['uniqueid']][_0x5e94f8][_0x5e3377('0x5a')]=moment()[_0x5e3377('0x64')](_0x5e3377('0xd')),this['channels'][_0x5686a9[_0x5e3377('0x4e')]][_0x5e94f8][_0x5e3377('0x25')]='abandoned',this['channels'][_0x5686a9[_0x5e3377('0x4e')]][_0x5e94f8][_0x5e3377('0x20')]=_0x5e3377('0x49'),ami[_0x5e3377('0x3e')](_0x5e3377('0x21'),this['channels'][_0x5686a9['uniqueid']][_0x5e94f8]));}}}catch(_0x12a11c){logger[_0x5e3377('0x54')]('[syncQueueCallerAbandon][VoiceAgentReport]',util[_0x5e3377('0x11')](_0x12a11c,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x10')]=function(_0x32b194){const _0xfb71e1=_0x32d436;try{if(this['isNotNull'](_0x32b194)){if(this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]])for(const _0x8df85b in this['channels'][_0x32b194['uniqueid']]){typeof this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b]!==_0xfb71e1('0x28')&&(this['channels'][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b][_0xfb71e1('0x23')]&&!this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b]['agentcomplete']&&(this['channels'][_0x32b194['uniqueid']][_0x8df85b][_0xfb71e1('0xb')]=!![],this[_0xfb71e1('0x5c')][_0x32b194['uniqueid']][_0x8df85b][_0xfb71e1('0x48')]=moment()['format'](_0xfb71e1('0xd')),this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b][_0xfb71e1('0x20')]=_0xfb71e1('0x29'),this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b][_0xfb71e1('0x2a')]=_0x32b194[_0xfb71e1('0x2a')],this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b][_0xfb71e1('0x25')]=_0x32b194[_0xfb71e1('0x25')]=='transfer'?_0xfb71e1('0x3d'):_0x32b194[_0xfb71e1('0x25')],this[_0xfb71e1('0x2c')][_0x32b194[_0xfb71e1('0x30')]]&&this[_0xfb71e1('0x2c')][_0x32b194[_0xfb71e1('0x30')]]['acw']&&(this[_0xfb71e1('0x5c')][_0x32b194['uniqueid']][_0x8df85b]['agentacw']=!![],this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b][_0xfb71e1('0x9')]=this[_0xfb71e1('0x2c')][_0x32b194[_0xfb71e1('0x30')]]['acwTimeout']),this[_0xfb71e1('0x53')][_0x32b194['interface']]=_[_0xfb71e1('0x2b')](this['agents'][_0x32b194[_0xfb71e1('0x1f')]],[_0xfb71e1('0x30'),'destconnectedlinenum']),this['emit'](util[_0xfb71e1('0x64')]('user:%s',_0x32b194[_0xfb71e1('0x26')]),_0xfb71e1('0x2e'),this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b]),ami[_0xfb71e1('0x3e')](_0xfb71e1('0x44'),this[_0xfb71e1('0x5c')][_0x32b194[_0xfb71e1('0x4e')]][_0x8df85b])));}}}catch(_0x1f7926){logger[_0xfb71e1('0x54')]('[syncAgentComplete][VoiceAgentReport]',util[_0xfb71e1('0x11')](_0x1f7926,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x39')]=function(_0x26071e){const _0x2c477e=_0x32d436;try{if(this['isNotNull'](_0x26071e)){this[_0x2c477e('0x3a')](_0x26071e[_0x2c477e('0x4e')],_[_0x2c477e('0x33')](_0x26071e[_0x2c477e('0x5f')])[0x0],_0x26071e[_0x2c477e('0x65')]);if(this[_0x2c477e('0x5c')][_0x26071e[_0x2c477e('0x4e')]])for(const _0x543999 in this[_0x2c477e('0x5c')][_0x26071e[_0x2c477e('0x4e')]]){typeof this[_0x2c477e('0x5c')][_0x26071e['uniqueid']][_0x543999]!==_0x2c477e('0x28')&&(_[_0x2c477e('0x14')](this['channels'][_0x26071e[_0x2c477e('0x4e')]][_0x543999][_0x2c477e('0x3c')])&&(this['channels'][_0x26071e['uniqueid']][_0x543999]['variables']={}),this['channels'][_0x26071e['uniqueid']][_0x543999]['variables']=this[_0x2c477e('0x3c')][_0x26071e[_0x2c477e('0x4e')]]);}}}catch(_0x335246){logger[_0x2c477e('0x54')](_0x2c477e('0x4d'),util[_0x2c477e('0x11')](_0x335246,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')]['addVariable']=function(_0x2da25d,_0x2c0183,_0x1914b5){const _0x3adfa8=_0x32d436,_0x517c4a=[_0x3adfa8('0x52'),'rtpaudioqosbridged','rtpaudioqosjitter',_0x3adfa8('0x22'),'rtpaudioqosloss',_0x3adfa8('0x60'),_0x3adfa8('0x32'),'rtpaudioqosrttbridged',_0x3adfa8('0x4b'),'sipuri',_0x3adfa8('0x68'),'bridgepvtcallid','membercalls',_0x3adfa8('0x57'),_0x3adfa8('0x67'),_0x3adfa8('0x17'),_0x3adfa8('0x26'),_0x3adfa8('0x19'),_0x3adfa8('0x36')];!_[_0x3adfa8('0x37')](_0x2c0183)&&!_[_0x3adfa8('0x62')](_0x517c4a,_0x2c0183)&&(_[_0x3adfa8('0x14')](this[_0x3adfa8('0x3c')][_0x2da25d])&&(this[_0x3adfa8('0x3c')][_0x2da25d]={}),this['variables'][_0x2da25d][_0x2c0183]=_0x1914b5);},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x42')]=function(_0x16383a){const _0x5912b9=_0x32d436;try{if(this[_0x5912b9('0x5b')](_0x16383a)){if(this['channels'][_0x16383a[_0x5912b9('0x4e')]]){for(const _0x13b653 in this[_0x5912b9('0x5c')][_0x16383a['uniqueid']]){typeof this[_0x5912b9('0x5c')][_0x16383a['uniqueid']][_0x13b653]!=='undefined'&&(this['channels'][_0x16383a[_0x5912b9('0x4e')]][_0x13b653][_0x5912b9('0x25')]=='transfer'&&this[_0x5912b9('0x5c')][_0x16383a[_0x5912b9('0x4e')]][_0x13b653][_0x5912b9('0xb')]&&(this['channels'][_0x16383a[_0x5912b9('0x4e')]][_0x13b653][_0x5912b9('0x48')]=moment()[_0x5912b9('0x64')](_0x5912b9('0xd'))));}ami[_0x5912b9('0x3e')](_0x5912b9('0x13'),_[_0x5912b9('0x56')](this['channels'][_0x16383a[_0x5912b9('0x4e')]])),delete this[_0x5912b9('0x5c')][_0x16383a[_0x5912b9('0x4e')]];}this['variables'][_0x16383a[_0x5912b9('0x4e')]]&&delete this['variables'][_0x16383a['uniqueid']];}}catch(_0x141d0a){logger['error']('[syncHangup][VoiceAgentReport]',util['inspect'](_0x141d0a,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x35')]=function(_0x227fe3){const _0x37cb98=_0x32d436;try{if(this[_0x37cb98('0x5b')](_0x227fe3)){if(this['channels'][_0x227fe3['transfereeuniqueid']])for(const _0x40fcea in this[_0x37cb98('0x5c')][_0x227fe3[_0x37cb98('0x61')]]){if(typeof this[_0x37cb98('0x5c')][_0x227fe3['transfereeuniqueid']][_0x40fcea]!==_0x37cb98('0x28')){if(_0x227fe3['origtransfereruniqueid']===_0x40fcea){const _0x49b1be=moment();this[_0x37cb98('0x5c')][_0x227fe3[_0x37cb98('0x61')]][_0x40fcea][_0x37cb98('0xb')]=!![],this['channels'][_0x227fe3['transfereeuniqueid']][_0x40fcea][_0x37cb98('0x48')]=moment()[_0x37cb98('0x64')]('YYYY-MM-DD\x20HH:mm:ss'),this['channels'][_0x227fe3['transfereeuniqueid']][_0x40fcea][_0x37cb98('0x25')]=_0x37cb98('0x38'),this[_0x37cb98('0x5c')][_0x227fe3[_0x37cb98('0x61')]][_0x40fcea][_0x37cb98('0x20')]=_0x37cb98('0x29'),this[_0x37cb98('0x5c')][_0x227fe3['transfereeuniqueid']][_0x40fcea][_0x37cb98('0x2a')]=_0x49b1be[_0x37cb98('0x12')](this['channels'][_0x227fe3[_0x37cb98('0x61')]][_0x40fcea][_0x37cb98('0x23')],'seconds');}}}if(this[_0x37cb98('0x5c')][_0x227fe3[_0x37cb98('0x16')]]){const _0x3779da=this['channels'][_0x227fe3[_0x37cb98('0x16')]];this[_0x37cb98('0x5c')][_0x227fe3[_0x37cb98('0x16')]]=this[_0x37cb98('0x5c')][_0x227fe3[_0x37cb98('0x61')]],this[_0x37cb98('0x5c')][_0x227fe3[_0x37cb98('0x61')]]=_0x3779da;}}}catch(_0x1a2ed0){logger[_0x37cb98('0x54')](_0x37cb98('0xf'),util[_0x37cb98('0x11')](_0x1a2ed0,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x59')]=function(_0x4f2fcf){const _0x17bd66=_0x32d436;try{if(this[_0x17bd66('0x5b')](_0x4f2fcf)){if(this[_0x17bd66('0x5c')][_0x4f2fcf['transfereeuniqueid']])for(const _0xb7f915 in this[_0x17bd66('0x5c')][_0x4f2fcf[_0x17bd66('0x61')]]){if(typeof this[_0x17bd66('0x5c')][_0x4f2fcf[_0x17bd66('0x61')]][_0xb7f915]!==_0x17bd66('0x28')){if(_0x4f2fcf[_0x17bd66('0xa')]===_0xb7f915){const _0x57eece=moment();this['channels'][_0x4f2fcf['transfereeuniqueid']][_0xb7f915]['agentcomplete']=!![],this[_0x17bd66('0x5c')][_0x4f2fcf[_0x17bd66('0x61')]][_0xb7f915][_0x17bd66('0x48')]=_0x57eece,this[_0x17bd66('0x5c')][_0x4f2fcf[_0x17bd66('0x61')]][_0xb7f915][_0x17bd66('0x25')]=_0x17bd66('0x38'),this[_0x17bd66('0x5c')][_0x4f2fcf[_0x17bd66('0x61')]][_0xb7f915]['lastevent']=_0x17bd66('0x29'),this[_0x17bd66('0x5c')][_0x4f2fcf[_0x17bd66('0x61')]][_0xb7f915][_0x17bd66('0x2a')]=_0x57eece[_0x17bd66('0x12')](this[_0x17bd66('0x5c')][_0x4f2fcf['transfereeuniqueid']][_0xb7f915][_0x17bd66('0x23')],'seconds');}}}}}catch(_0x209945){logger[_0x17bd66('0x54')](_0x17bd66('0x2'),util[_0x17bd66('0x11')](_0x209945,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x63')]=function(_0x5d8df7){const _0x2dc3d9=_0x32d436;let _0x44fcdd='';try{this['isNotNull'](_0x5d8df7)&&(_0x5d8df7['channel']&&(_0x44fcdd=_0x5d8df7['channel'][_0x2dc3d9('0x50')](0x0,_0x5d8df7['channel'][_0x2dc3d9('0x1')]('-')),this[_0x2dc3d9('0x53')][_0x44fcdd]&&(this['agents'][_0x44fcdd]['onhold']=!![])));}catch(_0x3cf3f9){logger[_0x2dc3d9('0x54')](_0x2dc3d9('0x58'),util[_0x2dc3d9('0x11')](_0x3cf3f9,{'showHidden':![],'depth':null}));}},VoiceAgentReport[_0x32d436('0x1c')][_0x32d436('0x51')]=function(_0x511e5a){const _0x144507=_0x32d436;let _0x4c19a9='';try{this[_0x144507('0x5b')](_0x511e5a)&&(_0x511e5a['channel']&&(_0x4c19a9=_0x511e5a[_0x144507('0x2d')][_0x144507('0x50')](0x0,_0x511e5a[_0x144507('0x2d')]['lastIndexOf']('-')),this[_0x144507('0x53')][_0x4c19a9]&&(this[_0x144507('0x53')][_0x4c19a9]['onhold']=![])));}catch(_0x5dfa2e){logger['error']('[syncMusicOnHoldStop][VoiceAgentReport]',util[_0x144507('0x11')](_0x5dfa2e,{'showHidden':![],'depth':null}));}},module[_0x32d436('0x6b')]=VoiceAgentReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceCallReport.js b/server/services/ami/report/voiceCallReport.js index e9dc46a..bc4a673 100644 --- a/server/services/ami/report/voiceCallReport.js +++ b/server/services/ami/report/voiceCallReport.js @@ -1 +1 @@ -const a1095_0x1c78=['application','xmd-callerid-preview','transfertargetcalleridnum','toNumber','transferconnectedlinenum','.WAV','accountcode','cdr(','pick','[syncHangup][VoiceCallReport]','YYYY-MM-DD\x20HH:mm:ss','sipcallid','name','merge','includes','prototype','channel','lastapplication','syncNewState','../../../rediscache','syncNewExten','diff','[syncBlindTransfer][VoiceCallReport]','user:%s','[syncAttendedTransfer][VoiceCallReport]','transfertargetuniqueid','sipcalluniqueid','agents','starttime','channelstate','blindtransfer','user:agentcomplete','agi','transfererchannel','transfereeuniqueid','billableseconds','parse','appdata','BlindTransfer','inspect','holdtime','[syncNewChannel][VoiceCallReport]','connectedlinename','../ami','BUSY','split','catch','destconnectedlinenum','../../../config/logger','emit','exten','FAILED','type','milliseconds','find','moment','sipcalllinkedid','../model/channel','OutgoingSpoolFailed','log','syncMixMonitorFilename','answered','xmd-phone','seconds','secondtransfereruniqueid','musiconholdstart','membername','monitors','resolve','linkedid','disposition','from-sip','xmd-queue','queue','syncVarSet','applicationdata','ami','path','lodash','calleridname','origtransferercalleridnum','endtime','syncMusicOnHoldStop','origtransfereruniqueid','monitor','variable','then','destinationchannel','dial','mixmonitor_filename','isUndefined','calleridnum','replace','xmcs-queue','syncNewCallerId','exports','transfercalleridnum','newexten','channels','musiconholdstop','isNotNull','format','[syncNewCallerId][VoiceCallReport]','lastdata','user:agentconnect','transfereecalleridnum','syncAttendedTransfer','mohstarttime','answertime','isNil','hangup','context','uniqueid','newstate','.wav49','originatecalleridnum','destination','voicemail','duration','extension','keys','monitorFilename','newcallerid','custom:voiceCallReport','syncMusicOnHoldStart','calleridpreview','syncHangup','error','[syncVarSet][VoiceCallReport]','coreshowchannel','toLowerCase','bind','rec','NO\x20ANSWER','value','xmd-destination','endsWith','callerid','push','mohtime','UserId','syncBlindTransfer'];(function(_0x10ffbe,_0x1c7896){const _0x4cc4b0=function(_0x48c318){while(--_0x48c318){_0x10ffbe['push'](_0x10ffbe['shift']());}};_0x4cc4b0(++_0x1c7896);}(a1095_0x1c78,0xa9));const a1095_0x4cc4=function(_0x10ffbe,_0x1c7896){_0x10ffbe=_0x10ffbe-0x0;let _0x4cc4b0=a1095_0x1c78[_0x10ffbe];return _0x4cc4b0;};const _0x26c603=a1095_0x4cc4;'use strict';const _=require(_0x26c603('0x33')),moment=require(_0x26c603('0x1c')),util=require('util'),path=require(_0x26c603('0x32')),logger=require(_0x26c603('0x15'))(_0x26c603('0x31')),ami=require(_0x26c603('0x10')),Channel=require(_0x26c603('0x1e')),applications=['set',_0x26c603('0x2e'),_0x26c603('0x5'),_0x26c603('0x3d'),'playback',_0x26c603('0x5a')],dispositions=[_0x26c603('0x6a'),_0x26c603('0x18'),_0x26c603('0x18'),_0x26c603('0x6a'),_0x26c603('0x6a'),_0x26c603('0x6a'),'ANSWERED',_0x26c603('0x11'),'FAILED',_0x26c603('0x18'),'FAILED'],{getSocket}=require(_0x26c603('0x86')),io=getSocket();function VoiceCallReport(_0x48c318){const _0x3a188d=_0x26c603;return this[_0x3a188d('0x47')]=_0x48c318[_0x3a188d('0x47')],this['agents']=_0x48c318[_0x3a188d('0x0')],ami['on'](_0x3a188d('0x66'),this[_0x3a188d('0x87')][_0x3a188d('0x68')](this)),ami['on'](_0x3a188d('0x46'),this[_0x3a188d('0x87')][_0x3a188d('0x68')](this)),ami['on']('newchannel',this['syncNewChannel'][_0x3a188d('0x68')](this)),ami['on'](_0x3a188d('0x56'),this[_0x3a188d('0x85')]['bind'](this)),ami['on']('varset',this[_0x3a188d('0x2f')][_0x3a188d('0x68')](this)),ami['on'](_0x3a188d('0x53'),this[_0x3a188d('0x63')][_0x3a188d('0x68')](this)),ami['on'](_0x3a188d('0x5f'),this[_0x3a188d('0x43')][_0x3a188d('0x68')](this)),ami['on']('attendedtransfer',this[_0x3a188d('0x4f')][_0x3a188d('0x68')](this)),ami['on'](_0x3a188d('0x3'),this[_0x3a188d('0x72')]['bind'](this)),ami['on'](_0x3a188d('0x26'),this[_0x3a188d('0x61')][_0x3a188d('0x68')](this)),ami['on'](_0x3a188d('0x48'),this[_0x3a188d('0x37')][_0x3a188d('0x68')](this)),Promise[_0x3a188d('0x29')]()[_0x3a188d('0x3b')](ami['actionCoreShowChannels']())[_0x3a188d('0x13')](function(_0x55676d){const _0x1866f0=_0x3a188d;console[_0x1866f0('0x20')](_0x55676d);});}VoiceCallReport[_0x26c603('0x82')][_0x26c603('0x49')]=function(_0x8461fa){const _0x2bd4b0=_0x26c603;return _0x8461fa!==null&&!_[_0x2bd4b0('0x3f')](_0x8461fa);},VoiceCallReport['prototype'][_0x26c603('0x16')]=function(_0x21c688,_0x2949af,_0x3f7e7e){io['to'](_0x21c688)['emit'](_0x2949af,_0x3f7e7e);},VoiceCallReport[_0x26c603('0x82')]['syncNewCallerId']=function(_0x3d3a53){const _0x1180ba=_0x26c603;try{this[_0x1180ba('0x49')](_0x3d3a53)&&(_0x3d3a53[_0x1180ba('0x55')]===_0x3d3a53[_0x1180ba('0x2a')]&&(!_[_0x1180ba('0x3f')](this[_0x1180ba('0x47')][_0x3d3a53[_0x1180ba('0x55')]])&&_[_0x1180ba('0x80')](this[_0x1180ba('0x47')][_0x3d3a53['uniqueid']],_[_0x1180ba('0x7b')](_0x3d3a53,_[_0x1180ba('0x5d')](this['channels'][_0x3d3a53[_0x1180ba('0x55')]])))));}catch(_0x45c919){logger[_0x1180ba('0x64')](_0x1180ba('0x4b'),util[_0x1180ba('0xc')](_0x45c919,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x26c603('0x82')]['syncNewChannel']=function(_0x112f65){const _0x3fca62=_0x26c603;try{this['isNotNull'](_0x112f65)&&(_0x112f65[_0x3fca62('0x55')]===_0x112f65[_0x3fca62('0x2a')]&&_0x112f65[_0x3fca62('0x83')]!=_0x3fca62('0x1f')&&(_['isUndefined'](this[_0x3fca62('0x47')][_0x112f65[_0x3fca62('0x55')]])&&(this['channels'][_0x112f65[_0x3fca62('0x55')]]=new Channel(),this['channels'][_0x112f65[_0x3fca62('0x55')]][_0x3fca62('0x1')]=moment()[_0x3fca62('0x4a')](_0x3fca62('0x7d')),this['channels'][_0x112f65['uniqueid']][_0x3fca62('0x2b')]=dispositions[_[_0x3fca62('0x76')](_0x112f65['channelstate'])],_['merge'](this[_0x3fca62('0x47')][_0x112f65['uniqueid']],_[_0x3fca62('0x7b')](_0x112f65,_[_0x3fca62('0x5d')](this[_0x3fca62('0x47')][_0x112f65['uniqueid']]))),_0x112f65[_0x3fca62('0x54')]===_0x3fca62('0x2c')&&(this[_0x3fca62('0x0')][_0x112f65['channel'][_0x3fca62('0x12')]('-')[0x0]]&&(this[_0x3fca62('0x0')][_0x112f65['channel'][_0x3fca62('0x12')]('-')[0x0]][_0x3fca62('0x14')]=_0x112f65[_0x3fca62('0x17')],this[_0x3fca62('0x16')](util[_0x3fca62('0x4a')](_0x3fca62('0x8a'),this['agents'][_0x112f65[_0x3fca62('0x83')][_0x3fca62('0x12')]('-')[0x0]][_0x3fca62('0x7f')]),_0x3fca62('0x4d'),{'destaccountcode':this['agents'][_0x112f65[_0x3fca62('0x83')][_0x3fca62('0x12')]('-')[0x0]][_0x3fca62('0x79')],'destconnectedlinenum':_0x112f65[_0x3fca62('0x17')]}))))));}catch(_0x59ae32){logger['error'](_0x3fca62('0xe'),util['inspect'](_0x59ae32,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x26c603('0x82')][_0x26c603('0x87')]=function(_0x4e18e2){const _0x58cf3e=_0x26c603;try{if(this[_0x58cf3e('0x49')](_0x4e18e2)){if(_0x4e18e2[_0x58cf3e('0x55')]===_0x4e18e2[_0x58cf3e('0x2a')]&&_0x4e18e2[_0x58cf3e('0x17')]!='h'&&_0x4e18e2[_0x58cf3e('0x83')]!=_0x58cf3e('0x1f')){_0x4e18e2['application']=_0x4e18e2[_0x58cf3e('0x73')][_0x58cf3e('0x67')](),_0x4e18e2[_0x58cf3e('0x30')]=(_0x4e18e2[_0x58cf3e('0xa')]||_0x4e18e2[_0x58cf3e('0x30')])[_0x58cf3e('0x67')]();_[_0x58cf3e('0x3f')](this[_0x58cf3e('0x47')][_0x4e18e2['uniqueid']])&&(this[_0x58cf3e('0x47')][_0x4e18e2[_0x58cf3e('0x55')]]=new Channel(),this[_0x58cf3e('0x47')][_0x4e18e2[_0x58cf3e('0x55')]][_0x58cf3e('0x1')]=_0x4e18e2[_0x58cf3e('0x5b')]?moment()['subtract'](moment[_0x58cf3e('0x5b')](_0x4e18e2[_0x58cf3e('0x5b')])[_0x58cf3e('0x24')](),_0x58cf3e('0x24'))['format'](_0x58cf3e('0x7d')):moment()['format'](_0x58cf3e('0x7d')),this['channels'][_0x4e18e2[_0x58cf3e('0x55')]][_0x58cf3e('0x2b')]=_0x58cf3e('0x6a'));_[_0x58cf3e('0x80')](this[_0x58cf3e('0x47')][_0x4e18e2[_0x58cf3e('0x55')]],_[_0x58cf3e('0x7b')](_0x4e18e2,_[_0x58cf3e('0x5d')](this[_0x58cf3e('0x47')][_0x4e18e2['uniqueid']])));if(_[_0x58cf3e('0x81')](applications,_0x4e18e2[_0x58cf3e('0x73')])){this[_0x58cf3e('0x47')][_0x4e18e2['uniqueid']][_0x58cf3e('0x84')]=_0x4e18e2[_0x58cf3e('0x73')],this[_0x58cf3e('0x47')][_0x4e18e2['uniqueid']][_0x58cf3e('0x4c')]=_0x4e18e2[_0x58cf3e('0x30')];if(_0x4e18e2[_0x58cf3e('0x73')]==='set'&&_['startsWith'](_0x4e18e2[_0x58cf3e('0x30')],_0x58cf3e('0x7a'))){const _0x52c90b=_0x4e18e2['applicationdata'][_0x58cf3e('0x12')]('='),_0xa00d19=_0x52c90b[0x0]['match'](/cdr\((.*)\)/);_0xa00d19&&(this[_0x58cf3e('0x47')][_0x4e18e2[_0x58cf3e('0x55')]][_0xa00d19[0x1]]=_0x52c90b[0x1]);}else _0x4e18e2[_0x58cf3e('0x73')]===_0x58cf3e('0x2e')&&(this[_0x58cf3e('0x47')][_0x4e18e2[_0x58cf3e('0x55')]][_0x58cf3e('0x2e')]=_0x4e18e2[_0x58cf3e('0x30')][_0x58cf3e('0x12')](',')[0x0]);}}}}catch(_0x455113){logger[_0x58cf3e('0x64')]('[syncNewExten][VoiceCallReport]',util[_0x58cf3e('0xc')](_0x455113,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x26c603('0x82')][_0x26c603('0x85')]=function(_0x576828){const _0x5675ad=_0x26c603;try{if(this[_0x5675ad('0x49')](_0x576828)){if(_0x576828[_0x5675ad('0x55')]!==_0x576828[_0x5675ad('0x2a')]){if(this['channels'][_0x576828[_0x5675ad('0x2a')]]){if(_0x576828[_0x5675ad('0x2')]==='6'){if(!this[_0x5675ad('0x47')][_0x576828['linkedid']][_0x5675ad('0x22')]){const _0x55899d=moment();this[_0x5675ad('0x47')][_0x576828['linkedid']][_0x5675ad('0x22')]=!![],this[_0x5675ad('0x47')][_0x576828['linkedid']][_0x5675ad('0x51')]=_0x55899d[_0x5675ad('0x4a')](_0x5675ad('0x7d')),this['channels'][_0x576828['linkedid']][_0x5675ad('0x1')]&&(this[_0x5675ad('0x47')][_0x576828[_0x5675ad('0x2a')]][_0x5675ad('0xd')]=_0x55899d[_0x5675ad('0x88')](this[_0x5675ad('0x47')][_0x576828['linkedid']]['starttime'],_0x5675ad('0x24')));}this[_0x5675ad('0x47')][_0x576828[_0x5675ad('0x2a')]][_0x5675ad('0x2a')]=_0x576828[_0x5675ad('0x55')],_0x576828[_0x5675ad('0x40')]!=='xcally-motion-preview'&&(this[_0x5675ad('0x47')][_0x576828['linkedid']]['connectedlinenum']=_0x576828[_0x5675ad('0x40')]),this[_0x5675ad('0x47')][_0x576828[_0x5675ad('0x2a')]][_0x5675ad('0xf')]=_0x576828[_0x5675ad('0x34')],this[_0x5675ad('0x47')][_0x576828['linkedid']][_0x5675ad('0x3c')]=_0x576828['channel'],this[_0x5675ad('0x47')][_0x576828[_0x5675ad('0x2a')]][_0x5675ad('0x2b')]=dispositions[_[_0x5675ad('0x76')](_0x576828['channelstate'])],this[_0x5675ad('0x0')][_0x576828['channel'][_0x5675ad('0x12')]('-')[0x0]]&&(this[_0x5675ad('0x47')][_0x576828['linkedid']][_0x5675ad('0x71')]=this['agents'][_0x576828['channel'][_0x5675ad('0x12')]('-')[0x0]]['id'],this[_0x5675ad('0x47')][_0x576828[_0x5675ad('0x2a')]][_0x5675ad('0x27')]=this[_0x5675ad('0x0')][_0x576828[_0x5675ad('0x83')][_0x5675ad('0x12')]('-')[0x0]]['name']);}}}else this[_0x5675ad('0x47')][_0x576828[_0x5675ad('0x55')]]&&(_0x576828[_0x5675ad('0x2')]==='6'&&(this[_0x5675ad('0x0')][_0x576828[_0x5675ad('0x83')][_0x5675ad('0x12')]('-')[0x0]]&&(this[_0x5675ad('0x47')][_0x576828['uniqueid']]['UserId']=this[_0x5675ad('0x0')][_0x576828[_0x5675ad('0x83')][_0x5675ad('0x12')]('-')[0x0]]['id'],this[_0x5675ad('0x47')][_0x576828[_0x5675ad('0x55')]][_0x5675ad('0x27')]=this['agents'][_0x576828[_0x5675ad('0x83')][_0x5675ad('0x12')]('-')[0x0]][_0x5675ad('0x7f')])));}}catch(_0x2218f6){logger['error']('[syncNewState][VoiceCallReport]',util[_0x5675ad('0xc')](_0x2218f6,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x26c603('0x82')][_0x26c603('0x21')]=function(_0x322e5a,_0x461ddd){const _0x12078e=_0x26c603;if(this['channels'][_0x322e5a]){this[_0x12078e('0x47')][_0x322e5a][_0x12078e('0x39')]=!![];_[_0x12078e('0x6d')](_0x461ddd,_0x12078e('0x57'))&&(_0x461ddd=_0x461ddd[_0x12078e('0x41')](_0x12078e('0x57'),_0x12078e('0x78')));this[_0x12078e('0x47')][_0x322e5a][_0x12078e('0x5e')]=_0x461ddd;const _0xd76ae4=_[_0x12078e('0x1b')](this['channels'][_0x322e5a]['monitors'],{'filename':_0x461ddd});_['isNil'](_0xd76ae4)&&this[_0x12078e('0x47')][_0x322e5a][_0x12078e('0x28')][_0x12078e('0x6f')]({'filename':_0x461ddd,'createdAt':moment()[_0x12078e('0x4a')](_0x12078e('0x7d')),'mixmonitorid':'','status':_0x12078e('0x69')});}},VoiceCallReport['prototype'][_0x26c603('0x2f')]=function(_0x5acae8){const _0x2bcda8=_0x26c603;try{if(this['isNotNull'](_0x5acae8)){if(this['channels'][_0x5acae8['uniqueid']]&&_0x5acae8[_0x2bcda8('0x83')]!=_0x2bcda8('0x1f')){if(this['isNotNull'](_0x5acae8[_0x2bcda8('0x3a')])){if(this['isNotNull'](_0x5acae8['variable'][_0x2bcda8('0x3e')]))this['syncMixMonitorFilename'](_0x5acae8[_0x2bcda8('0x55')],_0x5acae8[_0x2bcda8('0x6b')]);else{if(this['isNotNull'](_0x5acae8['variable'][_0x2bcda8('0x23')]))this['channels'][_0x5acae8['uniqueid']][_0x2bcda8('0x40')]=_0x5acae8[_0x2bcda8('0x6b')];else{if(this[_0x2bcda8('0x49')](_0x5acae8['variable']['xmd-callerid']))this['channels'][_0x5acae8[_0x2bcda8('0x55')]][_0x2bcda8('0x6e')]=_0x5acae8[_0x2bcda8('0x6b')];else{if(this[_0x2bcda8('0x49')](_0x5acae8[_0x2bcda8('0x3a')]['xmd-cdrtype']))this[_0x2bcda8('0x47')][_0x5acae8[_0x2bcda8('0x55')]][_0x2bcda8('0x19')]=_0x5acae8[_0x2bcda8('0x6b')];else{if(this[_0x2bcda8('0x49')](_0x5acae8[_0x2bcda8('0x3a')][_0x2bcda8('0x2d')]))this[_0x2bcda8('0x47')][_0x5acae8[_0x2bcda8('0x55')]]['queue']=_0x5acae8[_0x2bcda8('0x6b')]['split'](',')[0x0];else{if(this[_0x2bcda8('0x49')](_0x5acae8[_0x2bcda8('0x3a')]['xmd-originatecalleridnum']))this[_0x2bcda8('0x47')][_0x5acae8[_0x2bcda8('0x55')]][_0x2bcda8('0x58')]=_0x5acae8[_0x2bcda8('0x6b')];else{if(this['isNotNull'](_0x5acae8[_0x2bcda8('0x3a')][_0x2bcda8('0x6c')]))this[_0x2bcda8('0x47')][_0x5acae8[_0x2bcda8('0x55')]][_0x2bcda8('0x59')]=_0x5acae8[_0x2bcda8('0x6b')];else{if(this[_0x2bcda8('0x49')](_0x5acae8[_0x2bcda8('0x3a')][_0x2bcda8('0x74')]))this[_0x2bcda8('0x47')][_0x5acae8[_0x2bcda8('0x55')]][_0x2bcda8('0x62')]=_0x5acae8[_0x2bcda8('0x6b')];else{if(this[_0x2bcda8('0x49')](_0x5acae8[_0x2bcda8('0x3a')][_0x2bcda8('0x42')]))this[_0x2bcda8('0x47')][_0x5acae8[_0x2bcda8('0x55')]][_0x2bcda8('0x2e')]=_0x5acae8['value'];else this['isNotNull'](_0x5acae8[_0x2bcda8('0x3a')][_0x2bcda8('0x7e')])&&(this['channels'][_0x5acae8[_0x2bcda8('0x55')]][_0x2bcda8('0x8d')]=_0x5acae8[_0x2bcda8('0x6b')]);}}}}}}}}}}else{if(this['isNotNull'](_0x5acae8['variable'][_0x2bcda8('0x3e')])){if(_0x5acae8[_0x2bcda8('0x6b')]){const _0x3f7101=path[_0x2bcda8('0x9')](_0x5acae8[_0x2bcda8('0x6b')])[_0x2bcda8('0x7f')];this['syncMixMonitorFilename'](_0x3f7101,_0x5acae8[_0x2bcda8('0x6b')]);}}else this[_0x2bcda8('0x47')][_0x5acae8[_0x2bcda8('0x2a')]]&&(this[_0x2bcda8('0x49')](_0x5acae8['variable'])&&(this['isNotNull'](_0x5acae8['variable'][_0x2bcda8('0x7e')])&&(this['channels'][_0x5acae8['linkedid']][_0x2bcda8('0x1d')]=_0x5acae8['value'])));}}}catch(_0x53aba7){logger[_0x2bcda8('0x64')](_0x2bcda8('0x65'),util[_0x2bcda8('0xc')](_0x53aba7,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x26c603('0x82')]['syncHangup']=function(_0x1072a6){const _0x458bfc=_0x26c603;try{if(this['isNotNull'](_0x1072a6)){if(this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]]){const _0x4548a5=moment();this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]][_0x458bfc('0x36')]=_0x4548a5[_0x458bfc('0x4a')](_0x458bfc('0x7d')),this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]][_0x458bfc('0x5b')]=_0x4548a5[_0x458bfc('0x88')](this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]][_0x458bfc('0x1')],_0x458bfc('0x24')),this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]]['answered']&&(this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]][_0x458bfc('0x8')]=_0x4548a5['diff'](this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]][_0x458bfc('0x51')],'seconds'),this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]][_0x458bfc('0xd')]=this[_0x458bfc('0x47')][_0x1072a6[_0x458bfc('0x55')]][_0x458bfc('0x5b')]-this['channels'][_0x1072a6['uniqueid']][_0x458bfc('0x8')]),_0x1072a6[_0x458bfc('0x54')]==='from-sip'&&(this[_0x458bfc('0x0')][_0x1072a6[_0x458bfc('0x83')][_0x458bfc('0x12')]('-')[0x0]]&&(this['agents'][_0x1072a6['channel'][_0x458bfc('0x12')]('-')[0x0]]=_['omit'](this[_0x458bfc('0x0')][_0x1072a6[_0x458bfc('0x83')][_0x458bfc('0x12')]('-')[0x0]],['destconnectedlinenum']),this[_0x458bfc('0x16')](util['format'](_0x458bfc('0x8a'),this[_0x458bfc('0x0')][_0x1072a6[_0x458bfc('0x83')][_0x458bfc('0x12')]('-')[0x0]][_0x458bfc('0x7f')]),_0x458bfc('0x4'),{'destaccountcode':this[_0x458bfc('0x0')][_0x1072a6[_0x458bfc('0x83')]['split']('-')[0x0]][_0x458bfc('0x79')]}))),ami[_0x458bfc('0x16')](_0x458bfc('0x60'),this[_0x458bfc('0x47')][_0x1072a6['uniqueid']]),delete this['channels'][_0x1072a6['uniqueid']];}}}catch(_0x514f16){logger[_0x458bfc('0x64')](_0x458bfc('0x7c'),util['inspect'](_0x514f16,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x26c603('0x82')][_0x26c603('0x4f')]=function(_0x1dc279){const _0x4320ae=_0x26c603;try{if(this[_0x4320ae('0x49')](_0x1dc279)){if(this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x7')]]){this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x7')]][_0x4320ae('0x45')]=_0x1dc279['origtransferercalleridnum'],this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x7')]][_0x4320ae('0x77')]=_0x1dc279[_0x4320ae('0x75')];if(this['channels'][_0x1dc279[_0x4320ae('0x25')]]){const _0x1aa355=this['channels'][_0x1dc279[_0x4320ae('0x25')]];this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x25')]]=this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x7')]],this[_0x4320ae('0x47')][_0x1dc279['transfereeuniqueid']]=_0x1aa355;}}else{if(this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x8c')]]){this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x8c')]][_0x4320ae('0x45')]=_0x1dc279[_0x4320ae('0x35')],this['channels'][_0x1dc279[_0x4320ae('0x8c')]][_0x4320ae('0x77')]=_0x1dc279['transfertargetcalleridnum'];if(this[_0x4320ae('0x47')][_0x1dc279['origtransfereruniqueid']]){const _0x12f85c=this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x38')]];this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x38')]]=this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x8c')]],this[_0x4320ae('0x47')][_0x1dc279[_0x4320ae('0x8c')]]=_0x12f85c;}}}}}catch(_0x461d3a){logger[_0x4320ae('0x64')](_0x4320ae('0x8b'),util[_0x4320ae('0xc')](_0x461d3a,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x26c603('0x72')]=function(_0x40a458){const _0x1134ed=_0x26c603;try{this['isNotNull'](_0x40a458)&&(this[_0x1134ed('0x47')][_0x40a458['transfereeuniqueid']]&&(this['channels'][_0x40a458['transfereeuniqueid']][_0x1134ed('0x45')]=_0x40a458[_0x1134ed('0x4e')],this[_0x1134ed('0x47')][_0x40a458[_0x1134ed('0x7')]][_0x1134ed('0x77')]=_0x40a458[_0x1134ed('0x5c')],this['syncHangup']({'event':_0x1134ed('0xb'),'uniqueid':_0x40a458[_0x1134ed('0x7')],'context':_0x40a458['context'],'channel':_0x40a458[_0x1134ed('0x6')]})));}catch(_0x46d22b){logger[_0x1134ed('0x64')](_0x1134ed('0x89'),util['inspect'](_0x46d22b,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x26c603('0x82')][_0x26c603('0x61')]=function(_0x3fb4e7){const _0x1b7e3f=_0x26c603;try{this['isNotNull'](_0x3fb4e7)&&(this[_0x1b7e3f('0x47')][_0x3fb4e7[_0x1b7e3f('0x55')]]&&(!_['isNil'](this['channels'][_0x3fb4e7['uniqueid']]['answertime'])&&(this[_0x1b7e3f('0x47')][_0x3fb4e7[_0x1b7e3f('0x55')]][_0x1b7e3f('0x50')]=moment()[_0x1b7e3f('0x4a')]('YYYY-MM-DD\x20HH:mm:ss'))));}catch(_0x2e15c3){logger['error']('[syncMusicOnHoldStart][VoiceCallReport]',util[_0x1b7e3f('0xc')](_0x2e15c3,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x26c603('0x82')][_0x26c603('0x37')]=function(_0xc1172e){const _0x3e7060=_0x26c603;try{this['isNotNull'](_0xc1172e)&&(this[_0x3e7060('0x47')][_0xc1172e[_0x3e7060('0x55')]]&&(!_[_0x3e7060('0x52')](this[_0x3e7060('0x47')][_0xc1172e['uniqueid']][_0x3e7060('0x50')])&&(this[_0x3e7060('0x47')][_0xc1172e[_0x3e7060('0x55')]][_0x3e7060('0x70')]+=moment()[_0x3e7060('0x1a')](0x0)[_0x3e7060('0x88')](this[_0x3e7060('0x47')][_0xc1172e[_0x3e7060('0x55')]][_0x3e7060('0x50')],_0x3e7060('0x24')),delete this[_0x3e7060('0x47')][_0xc1172e['uniqueid']][_0x3e7060('0x50')])));}catch(_0x143537){logger[_0x3e7060('0x64')]('[syncMusicOnHoldStop][VoiceCallReport]',util[_0x3e7060('0xc')](_0x143537,{'showHidden':![],'depth':null}));}},module[_0x26c603('0x44')]=VoiceCallReport; \ No newline at end of file +const a1096_0x5b8e=['sipcalllinkedid','transferconnectedlinenum','monitor','mixmonitor_filename','match','rec','isNil','pick','isNotNull','[syncBlindTransfer][VoiceCallReport]','transfertargetcalleridnum','from-sip','billableseconds','includes','merge','prototype','answered','parse','set','secondtransfereruniqueid','log','xcally-motion-preview','lastapplication','emit','[syncNewChannel][VoiceCallReport]','[syncMusicOnHoldStop][VoiceCallReport]','mohtime','toNumber','syncMusicOnHoldStop','calleridpreview','applicationdata','type','syncNewChannel','connectedlinename','monitors','value','agents','sipcallid','OutgoingSpoolFailed','.WAV','util','mohstarttime','starttime','monitorFilename','lodash','syncNewExten','replace','keys','variable','disposition','BUSY','xmd-cdrtype','transfereecalleridnum','bind','syncVarSet','seconds','destconnectedlinenum','format','context','accountcode','syncBlindTransfer','name','then','resolve','xmd-queue','error','sipcalluniqueid','toLowerCase','hangup','cdr(','syncMixMonitorFilename','transfertargetuniqueid','calleridnum','queue','FAILED','[syncVarSet][VoiceCallReport]','linkedid','.wav49','actionCoreShowChannels','moment','syncHangup','inspect','answertime','split','NO\x20ANSWER','syncAttendedTransfer','[syncHangup][VoiceCallReport]','appdata','[syncMusicOnHoldStart][VoiceCallReport]','channel','xmd-destination','BlindTransfer','path','syncNewState','push','newstate','application','varset','milliseconds','voicemail','extension','[syncNewState][VoiceCallReport]','origtransfereruniqueid','uniqueid','newexten','blindTransfers','xmd-callerid-preview','user:%s','YYYY-MM-DD\x20HH:mm:ss','blindtransfer','endsWith','isUndefined','xmd-phone','origtransferercalleridnum','ANSWERED','endtime','lastdata','outbound','diff','transfereeuniqueid','../model/channel','[syncAttendedTransfer][VoiceCallReport]','syncNewCallerId','xmcs-queue','user:agentconnect','exten','channels','omit','transfererchannel','user:agentcomplete','duration','transfercalleridnum','playback','holdtime','channelstate','xmd-callerid','originatecalleridnum'];(function(_0x5978a1,_0x5b8eb9){const _0x33ade4=function(_0x38c9d2){while(--_0x38c9d2){_0x5978a1['push'](_0x5978a1['shift']());}};_0x33ade4(++_0x5b8eb9);}(a1096_0x5b8e,0x1ca));const a1096_0x33ad=function(_0x5978a1,_0x5b8eb9){_0x5978a1=_0x5978a1-0x0;let _0x33ade4=a1096_0x5b8e[_0x5978a1];return _0x33ade4;};const _0x3d4628=a1096_0x33ad;'use strict';const _=require(_0x3d4628('0x86')),moment=require(_0x3d4628('0x20')),util=require(_0x3d4628('0x82')),path=require(_0x3d4628('0x2d')),logger=require('../../../config/logger')('ami'),ami=require('../ami'),Channel=require(_0x3d4628('0x49')),applications=[_0x3d4628('0x6c'),_0x3d4628('0x1a'),'agi','dial',_0x3d4628('0x55'),_0x3d4628('0x34')],dispositions=['NO\x20ANSWER',_0x3d4628('0x1b'),_0x3d4628('0x1b'),_0x3d4628('0x25'),_0x3d4628('0x25'),_0x3d4628('0x25'),_0x3d4628('0x43'),_0x3d4628('0x3'),_0x3d4628('0x1b'),'FAILED',_0x3d4628('0x1b')],{getSocket}=require('../../../rediscache'),io=getSocket();function VoiceCallReport(_0x38c9d2){const _0x1451fd=_0x3d4628;return this[_0x1451fd('0x4f')]=_0x38c9d2[_0x1451fd('0x4f')],this[_0x1451fd('0x7e')]=_0x38c9d2[_0x1451fd('0x7e')],this[_0x1451fd('0x3a')]={},ami['on']('coreshowchannel',this['syncNewExten'][_0x1451fd('0x6')](this)),ami['on'](_0x1451fd('0x39'),this[_0x1451fd('0x87')][_0x1451fd('0x6')](this)),ami['on']('newchannel',this[_0x1451fd('0x7a')][_0x1451fd('0x6')](this)),ami['on'](_0x1451fd('0x30'),this[_0x1451fd('0x2e')][_0x1451fd('0x6')](this)),ami['on'](_0x1451fd('0x32'),this[_0x1451fd('0x7')][_0x1451fd('0x6')](this)),ami['on'](_0x1451fd('0x15'),this['syncHangup']['bind'](this)),ami['on']('newcallerid',this[_0x1451fd('0x4b')]['bind'](this)),ami['on']('attendedtransfer',this[_0x1451fd('0x26')][_0x1451fd('0x6')](this)),ami['on'](_0x1451fd('0x3e'),this[_0x1451fd('0xd')]['bind'](this)),ami['on']('musiconholdstart',this['syncMusicOnHoldStart'][_0x1451fd('0x6')](this)),ami['on']('musiconholdstop',this[_0x1451fd('0x76')][_0x1451fd('0x6')](this)),Promise[_0x1451fd('0x10')]()[_0x1451fd('0xf')](ami[_0x1451fd('0x1f')]())['catch'](function(_0x48c651){const _0x48394c=_0x1451fd;console[_0x48394c('0x6e')](_0x48c651);});}VoiceCallReport['prototype'][_0x3d4628('0x62')]=function(_0xaf798d){const _0x133299=_0x3d4628;return _0xaf798d!==null&&!_[_0x133299('0x40')](_0xaf798d);},VoiceCallReport[_0x3d4628('0x69')][_0x3d4628('0x71')]=function(_0x3706ba,_0x5ede49,_0x45ff52){const _0x71004e=_0x3d4628;io['to'](_0x3706ba)[_0x71004e('0x71')](_0x5ede49,_0x45ff52);},VoiceCallReport[_0x3d4628('0x69')][_0x3d4628('0x4b')]=function(_0x12437f){const _0xe10fa=_0x3d4628;try{this['isNotNull'](_0x12437f)&&(_0x12437f[_0xe10fa('0x38')]===_0x12437f[_0xe10fa('0x1d')]&&(!_[_0xe10fa('0x40')](this[_0xe10fa('0x4f')][_0x12437f[_0xe10fa('0x38')]])&&_[_0xe10fa('0x68')](this[_0xe10fa('0x4f')][_0x12437f[_0xe10fa('0x38')]],_[_0xe10fa('0x61')](_0x12437f,_[_0xe10fa('0x0')](this['channels'][_0x12437f['uniqueid']])))));}catch(_0x41e0d2){logger['error']('[syncNewCallerId][VoiceCallReport]',util[_0xe10fa('0x22')](_0x41e0d2,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x3d4628('0x69')]['syncNewChannel']=function(_0x432a44){const _0x52a84c=_0x3d4628;try{this[_0x52a84c('0x62')](_0x432a44)&&(_0x432a44[_0x52a84c('0x38')]===_0x432a44[_0x52a84c('0x1d')]&&_0x432a44[_0x52a84c('0x2a')]!='OutgoingSpoolFailed'&&(_[_0x52a84c('0x40')](this[_0x52a84c('0x4f')][_0x432a44[_0x52a84c('0x38')]])&&(this[_0x52a84c('0x4f')][_0x432a44['uniqueid']]=new Channel(),this[_0x52a84c('0x4f')][_0x432a44[_0x52a84c('0x38')]][_0x52a84c('0x84')]=moment()[_0x52a84c('0xa')](_0x52a84c('0x3d')),this[_0x52a84c('0x4f')][_0x432a44[_0x52a84c('0x38')]][_0x52a84c('0x2')]=dispositions[_[_0x52a84c('0x75')](_0x432a44[_0x52a84c('0x57')])],_[_0x52a84c('0x68')](this['channels'][_0x432a44[_0x52a84c('0x38')]],_[_0x52a84c('0x61')](_0x432a44,_[_0x52a84c('0x0')](this[_0x52a84c('0x4f')][_0x432a44['uniqueid']]))),_0x432a44[_0x52a84c('0xb')]===_0x52a84c('0x65')&&(this[_0x52a84c('0x7e')][_0x432a44[_0x52a84c('0x2a')]['split']('-')[0x0]]&&(this[_0x52a84c('0x7e')][_0x432a44[_0x52a84c('0x2a')]['split']('-')[0x0]]['destconnectedlinenum']=_0x432a44[_0x52a84c('0x4e')],this[_0x52a84c('0x71')](util[_0x52a84c('0xa')](_0x52a84c('0x3c'),this['agents'][_0x432a44[_0x52a84c('0x2a')]['split']('-')[0x0]][_0x52a84c('0xe')]),_0x52a84c('0x4d'),{'destaccountcode':this[_0x52a84c('0x7e')][_0x432a44[_0x52a84c('0x2a')][_0x52a84c('0x24')]('-')[0x0]]['accountcode'],'destconnectedlinenum':_0x432a44['exten']}))))));}catch(_0x3c8cef){logger[_0x52a84c('0x12')](_0x52a84c('0x72'),util[_0x52a84c('0x22')](_0x3c8cef,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x3d4628('0x69')][_0x3d4628('0x87')]=function(_0x43ffd8){const _0x1e5d2b=_0x3d4628;try{if(this[_0x1e5d2b('0x62')](_0x43ffd8)){if(_0x43ffd8[_0x1e5d2b('0x38')]===_0x43ffd8[_0x1e5d2b('0x1d')]&&_0x43ffd8[_0x1e5d2b('0x4e')]!='h'&&_0x43ffd8[_0x1e5d2b('0x2a')]!=_0x1e5d2b('0x80')){_0x43ffd8[_0x1e5d2b('0x31')]=_0x43ffd8[_0x1e5d2b('0x31')]['toLowerCase'](),_0x43ffd8['applicationdata']=(_0x43ffd8[_0x1e5d2b('0x28')]||_0x43ffd8[_0x1e5d2b('0x78')])[_0x1e5d2b('0x14')]();_[_0x1e5d2b('0x40')](this[_0x1e5d2b('0x4f')][_0x43ffd8['uniqueid']])&&(this[_0x1e5d2b('0x4f')][_0x43ffd8['uniqueid']]=new Channel(),this['channels'][_0x43ffd8[_0x1e5d2b('0x38')]][_0x1e5d2b('0x84')]=_0x43ffd8[_0x1e5d2b('0x53')]?moment()['subtract'](moment['duration'](_0x43ffd8[_0x1e5d2b('0x53')])[_0x1e5d2b('0x8')](),_0x1e5d2b('0x8'))['format'](_0x1e5d2b('0x3d')):moment()[_0x1e5d2b('0xa')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x1e5d2b('0x4f')][_0x43ffd8[_0x1e5d2b('0x38')]]['disposition']='NO\x20ANSWER');_[_0x1e5d2b('0x68')](this[_0x1e5d2b('0x4f')][_0x43ffd8[_0x1e5d2b('0x38')]],_[_0x1e5d2b('0x61')](_0x43ffd8,_['keys'](this[_0x1e5d2b('0x4f')][_0x43ffd8[_0x1e5d2b('0x38')]])));if(_[_0x1e5d2b('0x67')](applications,_0x43ffd8[_0x1e5d2b('0x31')])){this['channels'][_0x43ffd8[_0x1e5d2b('0x38')]][_0x1e5d2b('0x70')]=_0x43ffd8['application'],this[_0x1e5d2b('0x4f')][_0x43ffd8[_0x1e5d2b('0x38')]][_0x1e5d2b('0x45')]=_0x43ffd8[_0x1e5d2b('0x78')];if(_0x43ffd8[_0x1e5d2b('0x31')]===_0x1e5d2b('0x6c')&&_['startsWith'](_0x43ffd8['applicationdata'],_0x1e5d2b('0x16'))){const _0x6262aa=_0x43ffd8['applicationdata'][_0x1e5d2b('0x24')]('='),_0x2ffb7c=_0x6262aa[0x0][_0x1e5d2b('0x5e')](/cdr\((.*)\)/);_0x2ffb7c&&(this[_0x1e5d2b('0x4f')][_0x43ffd8[_0x1e5d2b('0x38')]][_0x2ffb7c[0x1]]=_0x6262aa[0x1]);}else _0x43ffd8[_0x1e5d2b('0x31')]==='queue'&&(this['channels'][_0x43ffd8['uniqueid']][_0x1e5d2b('0x1a')]=_0x43ffd8[_0x1e5d2b('0x78')]['split'](',')[0x0]);}}}}catch(_0x52717a){logger['error']('[syncNewExten][VoiceCallReport]',util[_0x1e5d2b('0x22')](_0x52717a,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x3d4628('0x69')][_0x3d4628('0x2e')]=function(_0x52299b){const _0xdcd023=_0x3d4628;try{if(this[_0xdcd023('0x62')](_0x52299b)){if(_0x52299b['uniqueid']!==_0x52299b[_0xdcd023('0x1d')]){if(this['channels'][_0x52299b['linkedid']]){if(_0x52299b[_0xdcd023('0x57')]==='6'){if(!this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x1d')]][_0xdcd023('0x6a')]){const _0x599607=moment();this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x1d')]]['answered']=!![],this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x1d')]][_0xdcd023('0x23')]=_0x599607[_0xdcd023('0xa')](_0xdcd023('0x3d')),this[_0xdcd023('0x4f')][_0x52299b['linkedid']][_0xdcd023('0x84')]&&(this[_0xdcd023('0x4f')][_0x52299b['linkedid']]['holdtime']=_0x599607[_0xdcd023('0x47')](this['channels'][_0x52299b['linkedid']][_0xdcd023('0x84')],_0xdcd023('0x8')));}this['channels'][_0x52299b[_0xdcd023('0x1d')]][_0xdcd023('0x1d')]=_0x52299b[_0xdcd023('0x38')],_0x52299b[_0xdcd023('0x19')]!==_0xdcd023('0x6f')&&(this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x1d')]]['connectedlinenum']=_0x52299b[_0xdcd023('0x19')]),this['channels'][_0x52299b[_0xdcd023('0x1d')]][_0xdcd023('0x7b')]=_0x52299b['calleridname'],this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x1d')]]['destinationchannel']=_0x52299b[_0xdcd023('0x2a')],this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x1d')]][_0xdcd023('0x2')]=dispositions[_[_0xdcd023('0x75')](_0x52299b['channelstate'])],this[_0xdcd023('0x7e')][_0x52299b[_0xdcd023('0x2a')]['split']('-')[0x0]]&&(this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x1d')]]['UserId']=this['agents'][_0x52299b['channel'][_0xdcd023('0x24')]('-')[0x0]]['id'],this['channels'][_0x52299b['linkedid']]['membername']=this[_0xdcd023('0x7e')][_0x52299b[_0xdcd023('0x2a')][_0xdcd023('0x24')]('-')[0x0]]['name']);}}}else this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x38')]]&&(_0x52299b[_0xdcd023('0x57')]==='6'&&(this[_0xdcd023('0x7e')][_0x52299b[_0xdcd023('0x2a')][_0xdcd023('0x24')]('-')[0x0]]&&(this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x38')]]['UserId']=this[_0xdcd023('0x7e')][_0x52299b[_0xdcd023('0x2a')][_0xdcd023('0x24')]('-')[0x0]]['id'],this[_0xdcd023('0x4f')][_0x52299b[_0xdcd023('0x38')]]['membername']=this[_0xdcd023('0x7e')][_0x52299b[_0xdcd023('0x2a')][_0xdcd023('0x24')]('-')[0x0]][_0xdcd023('0xe')])));}}catch(_0x12ca05){logger[_0xdcd023('0x12')](_0xdcd023('0x36'),util[_0xdcd023('0x22')](_0x12ca05,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x3d4628('0x69')][_0x3d4628('0x17')]=function(_0x5d8bb2,_0x2fc3a3){const _0x35f2f3=_0x3d4628;if(this[_0x35f2f3('0x4f')][_0x5d8bb2]){this[_0x35f2f3('0x4f')][_0x5d8bb2][_0x35f2f3('0x5c')]=!![];_[_0x35f2f3('0x3f')](_0x2fc3a3,_0x35f2f3('0x1e'))&&(_0x2fc3a3=_0x2fc3a3[_0x35f2f3('0x88')](_0x35f2f3('0x1e'),_0x35f2f3('0x81')));this[_0x35f2f3('0x4f')][_0x5d8bb2][_0x35f2f3('0x85')]=_0x2fc3a3;const _0xad0cd6=_['find'](this[_0x35f2f3('0x4f')][_0x5d8bb2][_0x35f2f3('0x7c')],{'filename':_0x2fc3a3});_[_0x35f2f3('0x60')](_0xad0cd6)&&this['channels'][_0x5d8bb2][_0x35f2f3('0x7c')][_0x35f2f3('0x2f')]({'filename':_0x2fc3a3,'createdAt':moment()[_0x35f2f3('0xa')](_0x35f2f3('0x3d')),'mixmonitorid':'','status':_0x35f2f3('0x5f')});}},VoiceCallReport['prototype'][_0x3d4628('0x7')]=function(_0x4193e9){const _0x2ae801=_0x3d4628;try{if(this['isNotNull'](_0x4193e9)){if(this[_0x2ae801('0x4f')][_0x4193e9[_0x2ae801('0x38')]]&&_0x4193e9[_0x2ae801('0x2a')]!=_0x2ae801('0x80')){if(this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')])){if(this['isNotNull'](_0x4193e9['variable'][_0x2ae801('0x5d')]))this[_0x2ae801('0x17')](_0x4193e9[_0x2ae801('0x38')],_0x4193e9[_0x2ae801('0x7d')]);else{if(this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')][_0x2ae801('0x41')]))this[_0x2ae801('0x4f')][_0x4193e9[_0x2ae801('0x38')]]['calleridnum']=_0x4193e9[_0x2ae801('0x7d')];else{if(this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')][_0x2ae801('0x58')]))this['channels'][_0x4193e9[_0x2ae801('0x38')]]['callerid']=_0x4193e9[_0x2ae801('0x7d')];else{if(this['isNotNull'](_0x4193e9[_0x2ae801('0x1')][_0x2ae801('0x4')]))this['channels'][_0x4193e9[_0x2ae801('0x38')]][_0x2ae801('0x79')]=_0x4193e9[_0x2ae801('0x7d')];else{if(this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')][_0x2ae801('0x11')]))this[_0x2ae801('0x4f')][_0x4193e9[_0x2ae801('0x38')]][_0x2ae801('0x1a')]=_0x4193e9[_0x2ae801('0x7d')]['split'](',')[0x0];else{if(this['isNotNull'](_0x4193e9['variable']['xmd-originatecalleridnum']))this[_0x2ae801('0x4f')][_0x4193e9[_0x2ae801('0x38')]][_0x2ae801('0x59')]=_0x4193e9['value'];else{if(this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')][_0x2ae801('0x2b')]))this[_0x2ae801('0x4f')][_0x4193e9[_0x2ae801('0x38')]]['destination']=_0x4193e9[_0x2ae801('0x7d')];else{if(this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')][_0x2ae801('0x3b')]))this['channels'][_0x4193e9['uniqueid']][_0x2ae801('0x77')]=_0x4193e9[_0x2ae801('0x7d')];else{if(this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')][_0x2ae801('0x4c')]))this[_0x2ae801('0x4f')][_0x4193e9['uniqueid']]['queue']=_0x4193e9[_0x2ae801('0x7d')];else this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')]['sipcallid'])&&(this[_0x2ae801('0x4f')][_0x4193e9[_0x2ae801('0x38')]][_0x2ae801('0x13')]=_0x4193e9[_0x2ae801('0x7d')]);}}}}}}}}}}else{if(this['isNotNull'](_0x4193e9['variable']['mixmonitor_filename'])){if(_0x4193e9[_0x2ae801('0x7d')]){const _0x486a90=path[_0x2ae801('0x6b')](_0x4193e9['value'])['name'];this[_0x2ae801('0x17')](_0x486a90,_0x4193e9[_0x2ae801('0x7d')]);}}else this['channels'][_0x4193e9[_0x2ae801('0x1d')]]&&(this[_0x2ae801('0x62')](_0x4193e9[_0x2ae801('0x1')])&&(this[_0x2ae801('0x62')](_0x4193e9['variable'][_0x2ae801('0x7f')])&&(this[_0x2ae801('0x4f')][_0x4193e9[_0x2ae801('0x1d')]][_0x2ae801('0x5a')]=_0x4193e9['value'])));}}}catch(_0x2ce1fd){logger[_0x2ae801('0x12')](_0x2ae801('0x1c'),util[_0x2ae801('0x22')](_0x2ce1fd,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x3d4628('0x69')][_0x3d4628('0x21')]=function(_0x4db877){const _0xa77a9c=_0x3d4628;try{if(this['isNotNull'](_0x4db877)){if(this['channels'][_0x4db877[_0xa77a9c('0x38')]]){const _0x427e16=moment();this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]][_0xa77a9c('0x44')]=_0x427e16['format']('YYYY-MM-DD\x20HH:mm:ss'),this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]][_0xa77a9c('0x53')]=_0x427e16[_0xa77a9c('0x47')](this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]]['starttime'],_0xa77a9c('0x8')),this[_0xa77a9c('0x4f')][_0x4db877['uniqueid']][_0xa77a9c('0x6a')]&&(this[_0xa77a9c('0x4f')][_0x4db877['uniqueid']]['billableseconds']=_0x427e16[_0xa77a9c('0x47')](this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]]['answertime'],_0xa77a9c('0x8')),this['channels'][_0x4db877[_0xa77a9c('0x38')]][_0xa77a9c('0x56')]=this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]][_0xa77a9c('0x53')]-this[_0xa77a9c('0x4f')][_0x4db877['uniqueid']][_0xa77a9c('0x66')]),_0x4db877[_0xa77a9c('0xb')]===_0xa77a9c('0x65')&&(this['agents'][_0x4db877[_0xa77a9c('0x2a')][_0xa77a9c('0x24')]('-')[0x0]]&&(this['agents'][_0x4db877[_0xa77a9c('0x2a')]['split']('-')[0x0]]=_[_0xa77a9c('0x50')](this[_0xa77a9c('0x7e')][_0x4db877[_0xa77a9c('0x2a')]['split']('-')[0x0]],[_0xa77a9c('0x9')]),this['emit'](util[_0xa77a9c('0xa')](_0xa77a9c('0x3c'),this[_0xa77a9c('0x7e')][_0x4db877[_0xa77a9c('0x2a')][_0xa77a9c('0x24')]('-')[0x0]][_0xa77a9c('0xe')]),_0xa77a9c('0x52'),{'destaccountcode':this[_0xa77a9c('0x7e')][_0x4db877[_0xa77a9c('0x2a')][_0xa77a9c('0x24')]('-')[0x0]][_0xa77a9c('0xc')]}))),_0x4db877['event']===_0xa77a9c('0x2c')?this[_0xa77a9c('0x3a')][_0x4db877[_0xa77a9c('0x38')]]=this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]]:this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]][_0xa77a9c('0x79')]===_0xa77a9c('0x46')&&this[_0xa77a9c('0x3a')][_0x4db877[_0xa77a9c('0x38')]]&&(this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]][_0xa77a9c('0x38')]=[this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]][_0xa77a9c('0x1d')],this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]]['linkedid']=this[_0xa77a9c('0x4f')][_0x4db877['uniqueid']][_0xa77a9c('0x38')]][0x0],delete this['blindTransfers'][_0x4db877[_0xa77a9c('0x38')]]),ami[_0xa77a9c('0x71')]('custom:voiceCallReport',this[_0xa77a9c('0x4f')][_0x4db877[_0xa77a9c('0x38')]]),delete this['channels'][_0x4db877[_0xa77a9c('0x38')]];}}}catch(_0x57fd50){logger[_0xa77a9c('0x12')](_0xa77a9c('0x27'),util[_0xa77a9c('0x22')](_0x57fd50,{'showHidden':![],'depth':null}));}},VoiceCallReport['prototype'][_0x3d4628('0x26')]=function(_0x16b8b2){const _0x3a4586=_0x3d4628;try{if(this[_0x3a4586('0x62')](_0x16b8b2)){if(this[_0x3a4586('0x4f')][_0x16b8b2[_0x3a4586('0x48')]]){this['channels'][_0x16b8b2[_0x3a4586('0x48')]][_0x3a4586('0x54')]=_0x16b8b2[_0x3a4586('0x42')],this[_0x3a4586('0x4f')][_0x16b8b2[_0x3a4586('0x48')]][_0x3a4586('0x5b')]=_0x16b8b2[_0x3a4586('0x64')];if(this[_0x3a4586('0x4f')][_0x16b8b2['secondtransfereruniqueid']]){const _0x595ec6=this['channels'][_0x16b8b2[_0x3a4586('0x6d')]];this['channels'][_0x16b8b2[_0x3a4586('0x6d')]]=this[_0x3a4586('0x4f')][_0x16b8b2[_0x3a4586('0x48')]],this['channels'][_0x16b8b2['transfereeuniqueid']]=_0x595ec6;}}else{if(this[_0x3a4586('0x4f')][_0x16b8b2[_0x3a4586('0x18')]]){this['channels'][_0x16b8b2[_0x3a4586('0x18')]]['transfercalleridnum']=_0x16b8b2[_0x3a4586('0x42')],this['channels'][_0x16b8b2[_0x3a4586('0x18')]]['transferconnectedlinenum']=_0x16b8b2['transfertargetcalleridnum'];if(this[_0x3a4586('0x4f')][_0x16b8b2[_0x3a4586('0x37')]]){const _0x56c695=this[_0x3a4586('0x4f')][_0x16b8b2[_0x3a4586('0x37')]];this[_0x3a4586('0x4f')][_0x16b8b2[_0x3a4586('0x37')]]=this[_0x3a4586('0x4f')][_0x16b8b2['transfertargetuniqueid']],this[_0x3a4586('0x4f')][_0x16b8b2[_0x3a4586('0x18')]]=_0x56c695;}}}}}catch(_0x3d9432){logger['error'](_0x3a4586('0x4a'),util[_0x3a4586('0x22')](_0x3d9432,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x3d4628('0x69')][_0x3d4628('0xd')]=function(_0x597d18){const _0x26024d=_0x3d4628;try{this['isNotNull'](_0x597d18)&&(this[_0x26024d('0x4f')][_0x597d18['transfereeuniqueid']]&&(this['channels'][_0x597d18[_0x26024d('0x48')]][_0x26024d('0x54')]=_0x597d18[_0x26024d('0x5')],this['channels'][_0x597d18[_0x26024d('0x48')]][_0x26024d('0x5b')]=_0x597d18[_0x26024d('0x35')],this['syncHangup']({'event':_0x26024d('0x2c'),'uniqueid':_0x597d18[_0x26024d('0x48')],'context':_0x597d18['context'],'channel':_0x597d18[_0x26024d('0x51')]})));}catch(_0x4ab6f6){logger[_0x26024d('0x12')](_0x26024d('0x63'),util['inspect'](_0x4ab6f6,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x3d4628('0x69')]['syncMusicOnHoldStart']=function(_0xafc625){const _0x1f94f7=_0x3d4628;try{this['isNotNull'](_0xafc625)&&(this['channels'][_0xafc625[_0x1f94f7('0x38')]]&&(!_[_0x1f94f7('0x60')](this[_0x1f94f7('0x4f')][_0xafc625[_0x1f94f7('0x38')]]['answertime'])&&(this['channels'][_0xafc625[_0x1f94f7('0x38')]][_0x1f94f7('0x83')]=moment()[_0x1f94f7('0xa')](_0x1f94f7('0x3d')))));}catch(_0x2abbe7){logger['error'](_0x1f94f7('0x29'),util[_0x1f94f7('0x22')](_0x2abbe7,{'showHidden':![],'depth':null}));}},VoiceCallReport[_0x3d4628('0x69')]['syncMusicOnHoldStop']=function(_0x3bdd01){const _0x61ed80=_0x3d4628;try{this[_0x61ed80('0x62')](_0x3bdd01)&&(this['channels'][_0x3bdd01[_0x61ed80('0x38')]]&&(!_[_0x61ed80('0x60')](this[_0x61ed80('0x4f')][_0x3bdd01[_0x61ed80('0x38')]][_0x61ed80('0x83')])&&(this[_0x61ed80('0x4f')][_0x3bdd01['uniqueid']][_0x61ed80('0x74')]+=moment()[_0x61ed80('0x33')](0x0)[_0x61ed80('0x47')](this['channels'][_0x3bdd01[_0x61ed80('0x38')]][_0x61ed80('0x83')],_0x61ed80('0x8')),delete this[_0x61ed80('0x4f')][_0x3bdd01[_0x61ed80('0x38')]][_0x61ed80('0x83')])));}catch(_0x8c7f21){logger[_0x61ed80('0x12')](_0x61ed80('0x73'),util[_0x61ed80('0x22')](_0x8c7f21,{'showHidden':![],'depth':null}));}},module['exports']=VoiceCallReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceDialReport.js b/server/services/ami/report/voiceDialReport.js index b43a8eb..102b5df 100644 --- a/server/services/ami/report/voiceDialReport.js +++ b/server/services/ami/report/voiceDialReport.js @@ -1 +1 @@ -const a1096_0x11e3=['duration','addVariable','channels','lastevent','syncDialEnd','hangup','dialbegin','voice_outbound_channel:remove','rtpaudioqosloss','bind','varset','sipuri','variable','billableseconds','[syncVarSet][VoiceDialReport]','custom:dialconnect','connectedlinename','[syncDialEnd][VoiceDialReport]','memberinterface','custom:dialend','custom:dialbegin','voice:outbound','bridgepvtcallid','syncDialBegin','error','outboundrouteid','voice_outbound:save','outboundChannels','custom:voiceDialReport','endtime','rtpaudioqoslossbridged','rtpaudioqosrtt','lastIndexOf','channel','rtpaudioqos','rtpaudioqosjitter','total','ami','syncHangup','memberpenalty','voice_outbound_channel:save','dialstatus','merge','seconds','util','isNotNull','info','rtpaudioqosbridged','holdtime','variables','diff','format','../../../config/logger','answered','bridgepeer','../../../rediscache','keys','value','answertime','connect','exports','called','rtpaudioqosrttbridged','emit','sipcallid','prototype','starttime','sumDuration','connectedlinenum','YYYY-MM-DD\x20HH:mm:ss','outbound','isUndefined','[syncDialBegin][VoiceDialReport]','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','ANSWER','includes','membername','memberlastcall','sumHoldTime','lodash','syncVarSet','uniqueid','inspect','memberdynamic'];(function(_0x137220,_0x11e311){const _0x3f95ae=function(_0x4966ba){while(--_0x4966ba){_0x137220['push'](_0x137220['shift']());}};_0x3f95ae(++_0x11e311);}(a1096_0x11e3,0x7f));const a1096_0x3f95=function(_0x137220,_0x11e311){_0x137220=_0x137220-0x0;let _0x3f95ae=a1096_0x11e3[_0x137220];return _0x3f95ae;};const _0xf07a66=a1096_0x3f95;'use strict';const _=require(_0xf07a66('0x24')),moment=require('moment'),util=require(_0xf07a66('0x1')),logger=require(_0xf07a66('0x9'))(_0xf07a66('0x4e')),ami=require('../ami'),{getSocket}=require(_0xf07a66('0xc')),io=getSocket();function VoiceDialReport(_0x4966ba){const _0x405b47=_0xf07a66;this[_0x405b47('0x2b')]=_0x4966ba[_0x405b47('0x44')],this[_0x405b47('0x1b')]=_0x4966ba['outbound'],this[_0x405b47('0x6')]={},ami['on'](_0x405b47('0x2f'),this[_0x405b47('0x40')][_0x405b47('0x32')](this)),ami['on']('dialend',this[_0x405b47('0x2d')][_0x405b47('0x32')](this)),ami['on'](_0x405b47('0x33'),this['syncVarSet'][_0x405b47('0x32')](this)),ami['on'](_0x405b47('0x2e'),this[_0x405b47('0x4f')][_0x405b47('0x32')](this));}VoiceDialReport[_0xf07a66('0x16')][_0xf07a66('0x2')]=function(_0x457f5f){const _0x44d69b=_0xf07a66;return _0x457f5f!==null&&!_[_0x44d69b('0x1c')](_0x457f5f);},VoiceDialReport[_0xf07a66('0x16')][_0xf07a66('0x14')]=function(_0x3a24fc,_0x53c997,_0x2c029b){const _0xccf118=_0xf07a66;io['to'](_0x3a24fc)[_0xccf118('0x14')](_0x53c997,_0x2c029b);},VoiceDialReport[_0xf07a66('0x16')][_0xf07a66('0x40')]=function(_0x4f53a0){const _0x47022f=_0xf07a66;try{this['isNotNull'](_0x4f53a0)&&(this[_0x47022f('0x2b')][_0x4f53a0[_0x47022f('0x26')]]&&(_[_0x47022f('0x53')](this[_0x47022f('0x2b')][_0x4f53a0[_0x47022f('0x26')]],{'starttime':moment()[_0x47022f('0x8')](_0x47022f('0x1a')),'lastevent':_0x47022f('0x12'),'interface':_0x4f53a0[_0x47022f('0x4a')]['substring'](0x0,_0x4f53a0[_0x47022f('0x4a')]['lastIndexOf']('-')),'membername':_0x4f53a0[_0x47022f('0x4a')]['substring'](_0x4f53a0[_0x47022f('0x4a')][_0x47022f('0x49')]('/')+0x1,_0x4f53a0[_0x47022f('0x4a')][_0x47022f('0x49')]('-'))},_['omit'](_0x4f53a0,['event','privilege'])),this[_0x47022f('0x14')](_0x47022f('0x3e'),_0x47022f('0x51'),this['channels'][_0x4f53a0['uniqueid']]),ami[_0x47022f('0x14')](_0x47022f('0x3d'),this['channels'][_0x4f53a0['uniqueid']])));}catch(_0x4f35cc){logger['error'](_0x47022f('0x1d'),util[_0x47022f('0x27')](_0x4f35cc,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0xf07a66('0x16')][_0xf07a66('0x2d')]=function(_0x3c75c9){const _0x5dbef8=_0xf07a66;try{this[_0x5dbef8('0x2')](_0x3c75c9)&&(this[_0x5dbef8('0x2b')][_0x3c75c9[_0x5dbef8('0x26')]]&&(this[_0x5dbef8('0x2b')][_0x3c75c9[_0x5dbef8('0x26')]][_0x5dbef8('0x52')]=_0x3c75c9['dialstatus'],_0x3c75c9[_0x5dbef8('0x52')]===_0x5dbef8('0x1f')&&(this[_0x5dbef8('0x2b')][_0x3c75c9['uniqueid']]['connectedlinenum']=_0x3c75c9[_0x5dbef8('0x19')],this[_0x5dbef8('0x2b')][_0x3c75c9[_0x5dbef8('0x26')]][_0x5dbef8('0x39')]=_0x3c75c9[_0x5dbef8('0x39')],this[_0x5dbef8('0x2b')][_0x3c75c9[_0x5dbef8('0x26')]]['answertime']=moment()[_0x5dbef8('0x8')](_0x5dbef8('0x1a')),this[_0x5dbef8('0x2b')][_0x3c75c9[_0x5dbef8('0x26')]]['lastevent']=_0x5dbef8('0x10'),ami[_0x5dbef8('0x14')](_0x5dbef8('0x38'),this[_0x5dbef8('0x2b')][_0x3c75c9[_0x5dbef8('0x26')]])),this['emit'](_0x5dbef8('0x3e'),'voice_outbound_channel:save',this[_0x5dbef8('0x2b')][_0x3c75c9[_0x5dbef8('0x26')]])));}catch(_0x297c39){logger[_0x5dbef8('0x41')](_0x5dbef8('0x3a'),util[_0x5dbef8('0x27')](_0x297c39,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0xf07a66('0x16')][_0xf07a66('0x25')]=function(_0x5e5437){const _0x1f8582=_0xf07a66;try{this[_0x1f8582('0x2')](_0x5e5437)&&(this[_0x1f8582('0x2a')](_0x5e5437[_0x1f8582('0x26')],_[_0x1f8582('0xd')](_0x5e5437[_0x1f8582('0x35')])[0x0],_0x5e5437['value']),this[_0x1f8582('0x2')](_0x5e5437['variable'])&&this[_0x1f8582('0x2')](_0x5e5437['variable'][_0x1f8582('0x42')])&&(_['isUndefined'](this[_0x1f8582('0x2b')][_0x5e5437[_0x1f8582('0x26')]])&&(this[_0x1f8582('0x2b')][_0x5e5437[_0x1f8582('0x26')]]={'routeId':_0x5e5437[_0x1f8582('0xe')],'variables':this[_0x1f8582('0x6')][_0x5e5437[_0x1f8582('0x26')]]},this['emit'](_0x1f8582('0x3e'),_0x1f8582('0x51'),this[_0x1f8582('0x2b')][_0x5e5437[_0x1f8582('0x26')]]))));}catch(_0x2a705d){logger[_0x1f8582('0x41')](_0x1f8582('0x37'),util['inspect'](_0x2a705d,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0xf07a66('0x16')][_0xf07a66('0x2a')]=function(_0x6efe16,_0x32a00e,_0x446002){const _0x4a3575=_0xf07a66,_0x491407=[_0x4a3575('0x4b'),_0x4a3575('0x4'),_0x4a3575('0x4c'),'rtpaudioqosjitterbridged',_0x4a3575('0x31'),_0x4a3575('0x47'),_0x4a3575('0x48'),_0x4a3575('0x13'),_0x4a3575('0x15'),_0x4a3575('0x34'),_0x4a3575('0xb'),_0x4a3575('0x3f'),'membercalls',_0x4a3575('0x28'),_0x4a3575('0x3b'),_0x4a3575('0x22'),_0x4a3575('0x21'),_0x4a3575('0x50'),'memberrealtime'];!_['isNil'](_0x32a00e)&&!_[_0x4a3575('0x20')](_0x491407,_0x32a00e)&&(_[_0x4a3575('0x1c')](this[_0x4a3575('0x6')][_0x6efe16])&&(this['variables'][_0x6efe16]={}),this[_0x4a3575('0x6')][_0x6efe16][_0x32a00e]=_0x446002);},VoiceDialReport[_0xf07a66('0x16')][_0xf07a66('0x4f')]=function(_0x4c43d9){const _0x263cea=_0xf07a66;try{this[_0x263cea('0x2')](_0x4c43d9)&&(this['channels'][_0x4c43d9[_0x263cea('0x26')]]&&(this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0x46')]=moment()[_0x263cea('0x8')](_0x263cea('0x1a')),this[_0x263cea('0x2b')][_0x4c43d9['uniqueid']][_0x263cea('0x29')]=moment(this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0x46')])[_0x263cea('0x7')](this['channels'][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0x17')],'seconds'),this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0x2c')]='complete',this[_0x263cea('0x1b')][_0x263cea('0x4d')]+=0x1,this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0xf')]&&(this['outbound'][_0x263cea('0xa')]+=0x1,this[_0x263cea('0x2b')][_0x4c43d9['uniqueid']][_0x263cea('0x5')]=moment(this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0xf')])['diff'](this['channels'][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0x17')],'seconds'),this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]]['billableseconds']=moment(this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0x46')])['diff'](this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0xf')],_0x263cea('0x0')),this[_0x263cea('0x1b')][_0x263cea('0x23')]+=this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]]['holdtime']||0x0,this[_0x263cea('0x1b')]['sumBillable']+=this['channels'][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0x36')]),this[_0x263cea('0x1b')][_0x263cea('0x18')]+=this['channels'][_0x4c43d9[_0x263cea('0x26')]][_0x263cea('0x29')],ami[_0x263cea('0x14')](_0x263cea('0x45'),this[_0x263cea('0x2b')][_0x4c43d9['uniqueid']]),ami[_0x263cea('0x14')](_0x263cea('0x3c'),this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]]),this[_0x263cea('0x14')](_0x263cea('0x3e'),_0x263cea('0x43'),this[_0x263cea('0x1b')]),logger[_0x263cea('0x3')](_0x263cea('0x1e'),JSON['stringify'](this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]])),this['emit'](_0x263cea('0x3e'),_0x263cea('0x30'),this[_0x263cea('0x2b')][_0x4c43d9['uniqueid']]),delete this[_0x263cea('0x2b')][_0x4c43d9[_0x263cea('0x26')]]),this[_0x263cea('0x6')][_0x4c43d9[_0x263cea('0x26')]]&&delete this['variables'][_0x4c43d9[_0x263cea('0x26')]]);}catch(_0x104a8d){logger[_0x263cea('0x41')]('[syncHangup][VoiceDialReport]',util['inspect'](_0x104a8d,{'showHidden':![],'depth':null}));}},module[_0xf07a66('0x11')]=VoiceDialReport; \ No newline at end of file +const a1097_0x271d=['billableseconds','lodash','complete','outboundChannels','substring','membercalls','sipuri','[syncHangup][VoiceDialReport]','variables','syncDialEnd','rtpaudioqosjitter','dialend','sumBillable','connectedlinenum','rtpaudioqoslossbridged','endtime','uniqueid','varset','voice_outbound:save','voice_outbound_channel:save','../ami','value','error','rtpaudioqosbridged','custom:dialbegin','ANSWER','holdtime','inspect','exports','rtpaudioqosjitterbridged','isUndefined','prototype','isNotNull','emit','seconds','called','sipcallid','diff','syncHangup','custom:voiceDialReport','omit','total','../../../rediscache','outboundrouteid','includes','channels','voice:outbound','outbound','rtpaudioqosrttbridged','rtpaudioqosloss','moment','bind','variable','rtpaudioqos','lastevent','memberdynamic','syncVarSet','memberinterface','dialstatus','channel','[syncDialEnd][VoiceDialReport]','sumHoldTime','YYYY-MM-DD\x20HH:mm:ss','addVariable','linkedid','ami','custom:dialend','lastIndexOf','[syncVarSet][VoiceDialReport]','format','duration','keys','[DEBUG]\x20Emit\x20voice_outbound_channel:remove\x20event','answertime','starttime','syncDialBegin','isNil','bridgepeer','event','memberlastcall','connectedlinename'];(function(_0x4a28ec,_0x271de6){const _0x1f3e11=function(_0x12ce51){while(--_0x12ce51){_0x4a28ec['push'](_0x4a28ec['shift']());}};_0x1f3e11(++_0x271de6);}(a1097_0x271d,0xf6));const a1097_0x1f3e=function(_0x4a28ec,_0x271de6){_0x4a28ec=_0x4a28ec-0x0;let _0x1f3e11=a1097_0x271d[_0x4a28ec];return _0x1f3e11;};const _0xef273=a1097_0x1f3e;'use strict';const _=require(_0xef273('0x4f')),moment=require(_0xef273('0x2f')),util=require('util'),logger=require('../../../config/logger')(_0xef273('0x3e')),ami=require(_0xef273('0x11')),{getSocket}=require(_0xef273('0x27')),io=getSocket();function VoiceDialReport(_0x12ce51){const _0x28d30a=_0xef273;this[_0x28d30a('0x2a')]=_0x12ce51[_0x28d30a('0x0')],this[_0x28d30a('0x2c')]=_0x12ce51[_0x28d30a('0x2c')],this['variables']={},ami['on']('dialbegin',this[_0x28d30a('0x48')][_0x28d30a('0x30')](this)),ami['on'](_0x28d30a('0x8'),this['syncDialEnd']['bind'](this)),ami['on'](_0x28d30a('0xe'),this['syncVarSet'][_0x28d30a('0x30')](this)),ami['on']('hangup',this[_0x28d30a('0x23')][_0x28d30a('0x30')](this));}VoiceDialReport['prototype'][_0xef273('0x1d')]=function(_0x5f5738){const _0xf2cdaf=_0xef273;return _0x5f5738!==null&&!_[_0xf2cdaf('0x1b')](_0x5f5738);},VoiceDialReport[_0xef273('0x1c')][_0xef273('0x1e')]=function(_0x1a14c4,_0x29effc,_0x55c46d){const _0xf4c460=_0xef273;io['to'](_0x1a14c4)[_0xf4c460('0x1e')](_0x29effc,_0x55c46d);},VoiceDialReport[_0xef273('0x1c')][_0xef273('0x48')]=function(_0x4e7e51){const _0x57ca07=_0xef273;try{this[_0x57ca07('0x1d')](_0x4e7e51)&&(this[_0x57ca07('0x2a')][_0x4e7e51[_0x57ca07('0xd')]]&&(_['merge'](this[_0x57ca07('0x2a')][_0x4e7e51[_0x57ca07('0xd')]],{'starttime':moment()[_0x57ca07('0x42')](_0x57ca07('0x3b')),'lastevent':_0x57ca07('0x20'),'interface':_0x4e7e51[_0x57ca07('0x38')][_0x57ca07('0x1')](0x0,_0x4e7e51[_0x57ca07('0x38')][_0x57ca07('0x40')]('-')),'membername':_0x4e7e51['channel'][_0x57ca07('0x1')](_0x4e7e51[_0x57ca07('0x38')][_0x57ca07('0x40')]('/')+0x1,_0x4e7e51[_0x57ca07('0x38')][_0x57ca07('0x40')]('-'))},_[_0x57ca07('0x25')](_0x4e7e51,[_0x57ca07('0x4b'),'privilege'])),this[_0x57ca07('0x1e')](_0x57ca07('0x2b'),_0x57ca07('0x10'),this[_0x57ca07('0x2a')][_0x4e7e51[_0x57ca07('0xd')]]),ami['emit'](_0x57ca07('0x15'),this[_0x57ca07('0x2a')][_0x4e7e51[_0x57ca07('0xd')]])));}catch(_0x1849e7){logger[_0x57ca07('0x13')]('[syncDialBegin][VoiceDialReport]',util[_0x57ca07('0x18')](_0x1849e7,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][_0xef273('0x6')]=function(_0xf7c4d5){const _0x58a97b=_0xef273;try{this[_0x58a97b('0x1d')](_0xf7c4d5)&&(this[_0x58a97b('0x2a')][_0xf7c4d5['uniqueid']]&&(this['channels'][_0xf7c4d5[_0x58a97b('0xd')]][_0x58a97b('0x37')]=_0xf7c4d5[_0x58a97b('0x37')],_0xf7c4d5[_0x58a97b('0x37')]===_0x58a97b('0x16')&&(this['channels'][_0xf7c4d5[_0x58a97b('0xd')]][_0x58a97b('0xa')]=_0xf7c4d5[_0x58a97b('0xa')],this[_0x58a97b('0x2a')][_0xf7c4d5['uniqueid']][_0x58a97b('0x4d')]=_0xf7c4d5[_0x58a97b('0x4d')],this[_0x58a97b('0x2a')][_0xf7c4d5[_0x58a97b('0xd')]][_0x58a97b('0x46')]=moment()[_0x58a97b('0x42')](_0x58a97b('0x3b')),this[_0x58a97b('0x2a')][_0xf7c4d5[_0x58a97b('0xd')]][_0x58a97b('0x33')]='connect',ami[_0x58a97b('0x1e')]('custom:dialconnect',this['channels'][_0xf7c4d5['uniqueid']])),this[_0x58a97b('0x1e')](_0x58a97b('0x2b'),_0x58a97b('0x10'),this[_0x58a97b('0x2a')][_0xf7c4d5[_0x58a97b('0xd')]])));}catch(_0x5d365e){logger['error'](_0x58a97b('0x39'),util['inspect'](_0x5d365e,{'showHidden':![],'depth':null}));}},VoiceDialReport[_0xef273('0x1c')][_0xef273('0x35')]=function(_0x4a1b10){const _0x4bcbcd=_0xef273;try{this[_0x4bcbcd('0x1d')](_0x4a1b10)&&(this['addVariable'](_0x4a1b10[_0x4bcbcd('0xd')],_[_0x4bcbcd('0x44')](_0x4a1b10[_0x4bcbcd('0x31')])[0x0],_0x4a1b10['value']),this[_0x4bcbcd('0x1d')](_0x4a1b10['variable'])&&this[_0x4bcbcd('0x1d')](_0x4a1b10['variable'][_0x4bcbcd('0x28')])&&(_[_0x4bcbcd('0x1b')](this[_0x4bcbcd('0x2a')][_0x4a1b10[_0x4bcbcd('0xd')]])&&(this[_0x4bcbcd('0x2a')][_0x4a1b10[_0x4bcbcd('0xd')]]={'routeId':_0x4a1b10[_0x4bcbcd('0x12')],'variables':this[_0x4bcbcd('0x5')][_0x4a1b10[_0x4bcbcd('0xd')]]},this[_0x4bcbcd('0x1e')](_0x4bcbcd('0x2b'),_0x4bcbcd('0x10'),this['channels'][_0x4a1b10[_0x4bcbcd('0xd')]]))));}catch(_0x5f22ab){logger['error'](_0x4bcbcd('0x41'),util[_0x4bcbcd('0x18')](_0x5f22ab,{'showHidden':![],'depth':null}));}},VoiceDialReport['prototype'][_0xef273('0x3c')]=function(_0x51d40a,_0x2d08eb,_0x5e04e8){const _0x3941ff=_0xef273,_0x525164=[_0x3941ff('0x32'),_0x3941ff('0x14'),_0x3941ff('0x7'),_0x3941ff('0x1a'),_0x3941ff('0x2e'),_0x3941ff('0xb'),'rtpaudioqosrtt',_0x3941ff('0x2d'),_0x3941ff('0x21'),_0x3941ff('0x3'),_0x3941ff('0x4a'),'bridgepvtcallid',_0x3941ff('0x2'),_0x3941ff('0x34'),_0x3941ff('0x36'),_0x3941ff('0x4c'),'membername','memberpenalty','memberrealtime'];!_[_0x3941ff('0x49')](_0x2d08eb)&&!_[_0x3941ff('0x29')](_0x525164,_0x2d08eb)&&(_[_0x3941ff('0x1b')](this[_0x3941ff('0x5')][_0x51d40a])&&(this[_0x3941ff('0x5')][_0x51d40a]={}),this[_0x3941ff('0x5')][_0x51d40a][_0x2d08eb]=_0x5e04e8);},VoiceDialReport['prototype'][_0xef273('0x23')]=function(_0x1a1b97){const _0x127f50=_0xef273;try{if(this[_0x127f50('0x1d')](_0x1a1b97)){if(this['channels'][_0x1a1b97[_0x127f50('0xd')]])this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0xc')]=moment()[_0x127f50('0x42')](_0x127f50('0x3b')),this['channels'][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x43')]=moment(this[_0x127f50('0x2a')][_0x1a1b97['uniqueid']]['endtime'])[_0x127f50('0x22')](this['channels'][_0x1a1b97['uniqueid']]['starttime'],_0x127f50('0x1f')),this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]]['lastevent']=_0x127f50('0x50'),this[_0x127f50('0x2c')][_0x127f50('0x26')]+=0x1,this['channels'][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x46')]&&(this[_0x127f50('0x2c')]['answered']+=0x1,this['channels'][_0x1a1b97['uniqueid']][_0x127f50('0x17')]=moment(this['channels'][_0x1a1b97['uniqueid']]['answertime'])[_0x127f50('0x22')](this['channels'][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x47')],_0x127f50('0x1f')),this[_0x127f50('0x2a')][_0x1a1b97['uniqueid']]['billableseconds']=moment(this[_0x127f50('0x2a')][_0x1a1b97['uniqueid']]['endtime'])[_0x127f50('0x22')](this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x46')],_0x127f50('0x1f')),this[_0x127f50('0x2c')][_0x127f50('0x3a')]+=this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x17')]||0x0,this['outbound'][_0x127f50('0x9')]+=this['channels'][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x4e')]),this[_0x127f50('0x2c')]['sumDuration']+=this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]][_0x127f50('0x43')],ami[_0x127f50('0x1e')](_0x127f50('0x24'),this['channels'][_0x1a1b97[_0x127f50('0xd')]]),ami[_0x127f50('0x1e')](_0x127f50('0x3f'),this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]]),this[_0x127f50('0x1e')]('voice:outbound',_0x127f50('0xf'),this[_0x127f50('0x2c')]),logger['info'](_0x127f50('0x45'),JSON['stringify'](this[_0x127f50('0x2a')][_0x1a1b97['uniqueid']])),this[_0x127f50('0x1e')](_0x127f50('0x2b'),'voice_outbound_channel:remove',this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]]),delete this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0xd')]];else this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0x3d')]]&&(this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0x3d')]][_0x127f50('0xd')]=this[_0x127f50('0x2a')][_0x1a1b97[_0x127f50('0x3d')]]['destuniqueid']);this[_0x127f50('0x5')][_0x1a1b97[_0x127f50('0xd')]]&&delete this[_0x127f50('0x5')][_0x1a1b97['uniqueid']];}}catch(_0x4d6d9b){logger[_0x127f50('0x13')](_0x127f50('0x4'),util[_0x127f50('0x18')](_0x4d6d9b,{'showHidden':![],'depth':null}));}},module[_0xef273('0x19')]=VoiceDialReport; \ No newline at end of file diff --git a/server/services/ami/report/voiceQueueReport.js b/server/services/ami/report/voiceQueueReport.js index d300b5b..7c6adcb 100644 --- a/server/services/ami/report/voiceQueueReport.js +++ b/server/services/ami/report/voiceQueueReport.js @@ -1 +1 @@ -const a1097_0x1909=['secondtransfererexten','queueposition','clearZombieChannels','voice_queue_channel:save','queuecallerexitAt','milliseconds','bind','includes','context','isNotNull','Trunk','../ami','custom:queuesummary','voice_queue:save','Interval','syncAgentConnect','syncAgentComplete','../../../rediscache','inbound','CONTINUE','total','local/','channels','syncQueueCallerJoin','syncFullyBooted','queuestatus','isUndefined','[voiceQueueReport][checkQueueReport]','finally','transferuniqueid','loggedIn','toUpperCase','flagQueueSummary','util','hangup','queuecallerabandon','origtransfereruniqueid','linkedid','[syncQueueCallerJoin][VoiceQueueReport]','custom:queuecallerunmanaged','startsWith','transfertype','abandoned','agents','add','active','membercalls','rtpaudioqosrtt','syncQueueSummary','sumHoldTime','[syncBlindTransfer][VoiceQueueReport]','lastAssignedTo','sumDuration','emitVoiceQueueChannelRemove','syncMusicOnHoldStart','[FullyBooted]\x20clear\x20realtime','assigned','No\x20such\x20channel','queuecallerabandonAt','blindtransfer','transfereeuniqueid','queuecallerleaveAt','unmanaged','memberdynamic','memberlastcall','queuesummary','keys','ABANDONED','md5','secondtransfereruniqueid','[syncQueueCallerAbandon][VoiceQueueReport]','ATTENDEDTRANSFER','rtpaudioqosjitterbridged','type','Action','queuecallerjoinAt','push','value','memberpenalty','strategy','then','variables','connectedlinename','syncMusicOnHoldStop','queuecallerleave','[queuesummary]','loggedin','extension','switch','mohtime','FORWARDTRANSFER','enqueue','transfertargetuniqueid','transfererchannel','BLINDTRANSFER','rtpaudioqosloss','inspect','addVariable','[syncAgentComplete][VoiceQueueReport]','emitVoiceQueueChannelSave','loopQueueShow','[syncVarSet][VoiceQueueReport]','toLowerCase','FORWARD','[syncMusicOnHoldStart][VoiceQueueReport]','available','mohstarttime','syncQueueCallerLeave','timeout','EXITWITHKEY','YYYY-MM-DD\x20HH:mm:ss','musiconholdstop','stringify','emit','[syncHangup][VoiceQueueReport]','exports','queuecallerexit','originated','length','COMPLETEDBY','rtpaudioqosjitter','error','ATTENDED','loopQueueSummary','undefined','queueChannels','merge','syncQueueCallerAbandon','sumBillable','lodash','queue','[queues]','diff','[syncMusicOnHoldStop][VoiceQueueReport]','../../../config/logger','destexten','transfer','[syncQueueSummary][VoiceQueueReport]','catch','moment','[DEBUG]\x20Emit\x20voice_queue_channel:remove\x20event','syncQueueSummaryComplete','name','toNumber','callers','../model/queueReport','last','lastevent','prototype','queuecallerexitreason','bridgepvtcallid','clearQueueReport','emitVoiceQueueSummary','seconds','talking','[voiceQueueReport][checkVariables]','transferexten','originalposition','voice:queue:%s','syncVarSet','uniqueid','queuecallercomplete','position','reason','unlockRR','BLIND','agentconnect','waiting','syncHangup','queueReports','syncAttendedTransfer','[syncQueueCallerLeave][VoiceQueueReport]','sipuri','count','voiceQueues','variable','tail','sipcallid','pTalking','isEmpty','rtpaudioqosrttbridged','custom:voiceQueueReport','answered','holdtime','rtpaudioqosbridged','isNil','format','channel','queues','countBy','campaigns','callerid','connectedlinenum','queueStatusComplete','queuecallercompleteAt','COMPLETED','BlindTransfer'];(function(_0x38a590,_0x1909cb){const _0x2de880=function(_0x1d9ad2){while(--_0x1d9ad2){_0x38a590['push'](_0x38a590['shift']());}};_0x2de880(++_0x1909cb);}(a1097_0x1909,0xdb));const a1097_0x2de8=function(_0x38a590,_0x1909cb){_0x38a590=_0x38a590-0x0;let _0x2de880=a1097_0x1909[_0x38a590];return _0x2de880;};const _0x34549b=a1097_0x2de8;'use strict';const _=require(_0x34549b('0x6b')),moment=require(_0x34549b('0x75')),util=require(_0x34549b('0xb')),md5=require(_0x34549b('0x2e')),logger=require(_0x34549b('0x70'))('ami'),ami=require(_0x34549b('0xba')),QueueReport=require(_0x34549b('0x7b')),{getSocket}=require(_0x34549b('0xc0')),io=getSocket(),Sequence=function(){};Sequence[_0x34549b('0x7e')][_0x34549b('0x45')]=function(_0x1d9ad2){const _0x3703e7=_0x34549b;this[_0x3703e7('0x9a')]=this[_0x3703e7('0x9a')]?this['tail'][_0x3703e7('0x6')](_0x1d9ad2):_0x1d9ad2();};function VoiceQueueReport(_0x55dde7){const _0x43ed91=_0x34549b;this['sequence']=new Sequence(),this[_0x43ed91('0x93')]={},this[_0x43ed91('0x15')]=_0x55dde7[_0x43ed91('0x15')],this[_0x43ed91('0x0')]=_0x55dde7[_0x43ed91('0x67')],this[_0x43ed91('0x98')]=_0x55dde7[_0x43ed91('0x98')],this[_0x43ed91('0xa')]=!![],this['campaigns']=_0x55dde7[_0x43ed91('0xa8')],this[_0x43ed91('0x3b')]={},ami['on'](_0x43ed91('0x2b'),this[_0x43ed91('0x1a')][_0x43ed91('0xb5')](this)),ami['on']('queuesummarycomplete',this[_0x43ed91('0x77')]['bind'](this)),ami['on']('queuecallerjoin',this[_0x43ed91('0x1')][_0x43ed91('0xb5')](this)),ami['on'](_0x43ed91('0xd'),this[_0x43ed91('0x69')][_0x43ed91('0xb5')](this)),ami['on'](_0x43ed91('0x3e'),this[_0x43ed91('0x55')]['bind'](this)),ami['on']('agentcomplete',this[_0x43ed91('0xbf')]['bind'](this)),ami['on'](_0x43ed91('0x90'),this[_0x43ed91('0xbe')]['bind'](this)),ami['on']('varset',this[_0x43ed91('0x89')][_0x43ed91('0xb5')](this)),ami['on'](_0x43ed91('0xc'),this[_0x43ed91('0x92')][_0x43ed91('0xb5')](this)),ami['on']('fullybooted',this[_0x43ed91('0x2')][_0x43ed91('0xb5')](this)),ami['on']('musiconholdstart',this[_0x43ed91('0x20')][_0x43ed91('0xb5')](this)),ami['on'](_0x43ed91('0x59'),this[_0x43ed91('0x3d')][_0x43ed91('0xb5')](this)),ami['on']('attendedtransfer',this['syncAttendedTransfer'][_0x43ed91('0xb5')](this)),ami['on'](_0x43ed91('0x25'),this['syncBlindTransfer'][_0x43ed91('0xb5')](this)),this[_0x43ed91('0x65')](),this[_0x43ed91('0x4e')]();}function clearChannels(_0x193fa5){const _0x1ef71b=_0x34549b;if(!_[_0x1ef71b('0x9d')](_0x193fa5))for(const _0x35a348 in _0x193fa5){typeof _0x193fa5[_0x35a348]!==_0x1ef71b('0x66')&&delete _0x193fa5[_0x35a348];}}function clearCampaigns(_0x22feed){const _0x2217a9=_0x34549b;if(!_[_0x2217a9('0x9d')](_0x22feed))for(const _0x4cd082 in _0x22feed){typeof _0x22feed[_0x4cd082]!=='undefined'&&(_0x22feed[_0x4cd082][_0x2217a9('0x5f')]=0x0);}}function clearVoiceQueues(_0x2fada8){const _0xe97444=_0x34549b;if(!_[_0xe97444('0x9d')](_0x2fada8))for(const _0x505280 in _0x2fada8){typeof _0x2fada8[_0x505280]!==_0xe97444('0x66')&&(_0x2fada8[_0x505280][_0xe97444('0x5f')]=0x0,_0x2fada8[_0x505280][_0xe97444('0x84')]=0x0,_0x2fada8[_0x505280][_0xe97444('0x9c')]=0x0,_0x2fada8[_0x505280]['waiting']=0x0,_0x2fada8[_0x505280][_0xe97444('0xab')]=!![]);}}function clearAgentBooked(_0x1cf5c5){const _0x3e3e5e=_0x34549b;if(!_['isEmpty'](_0x1cf5c5))for(const _0x3476d9 in _0x1cf5c5){typeof _0x1cf5c5[_0x3476d9]!==_0x3e3e5e('0x66')&&(_0x1cf5c5[_0x3476d9][_0x3e3e5e('0x8e')]=!![]);}}VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0xb1')]=function(){const _0x4ef7b8=_0x34549b,_0x76ca3f=this;for(const _0x14304e in this[_0x4ef7b8('0x0')]){typeof this[_0x4ef7b8('0x0')][_0x14304e]!==_0x4ef7b8('0x66')&&!this[_0x4ef7b8('0x0')][_0x14304e][_0x4ef7b8('0x42')]&&this['sequence'][_0x4ef7b8('0x45')](function(){const _0x56ef05=_0x4ef7b8;if(!_['isNil'](_0x76ca3f['channels'][_0x14304e]))return ami[_0x56ef05('0x34')]({'action':'status','channel':_0x76ca3f[_0x56ef05('0x0')][_0x14304e][_0x56ef05('0xa5')]})['catch'](function(_0x55ddf4){const _0xc11384=_0x56ef05;_0x55ddf4['message']===_0xc11384('0x23')&&setTimeout(function(){const _0x9650af=_0xc11384;_0x76ca3f[_0x9650af('0x0')][_0x14304e]&&(delete _0x76ca3f['channels'][_0x14304e],logger[_0x9650af('0x63')]('[voiceQueueReport][checkChannel]',_0x14304e)),_0x76ca3f['queueReports'][_0x14304e]&&(delete _0x76ca3f[_0x9650af('0x93')][_0x14304e],logger[_0x9650af('0x63')](_0x9650af('0x5'),_0x14304e)),_0x76ca3f['variables'][_0x14304e]&&(delete _0x76ca3f[_0x9650af('0x3b')][_0x14304e],logger[_0x9650af('0x63')](_0x9650af('0x85'),_0x14304e));},0x1f40);});});}},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x2')]=function(){const _0x5099d2=_0x34549b;logger[_0x5099d2('0x63')](_0x5099d2('0x21')),clearChannels(this[_0x5099d2('0x0')]),this['clearQueueReport'](this[_0x5099d2('0x93')]),clearAgentBooked(this[_0x5099d2('0x15')]),clearVoiceQueues(this['voiceQueues']),clearCampaigns(this['campaigns']);},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x81')]=function(_0x1f7e7d){const _0x3e4eb3=_0x34549b,_0x531d10=this;if(!_['isEmpty'](_0x1f7e7d))for(const _0x49c134 in _0x1f7e7d){typeof _0x1f7e7d[_0x49c134]!==_0x3e4eb3('0x66')&&(_0x531d10[_0x3e4eb3('0x1f')](_0x1f7e7d[_0x49c134]),delete _0x1f7e7d[_0x49c134]);}};function loggerCatch(_0x180925){return function(_0x378185){const _0x1f9c45=a1097_0x2de8;logger[_0x1f9c45('0x63')](_0x180925,util[_0x1f9c45('0x4a')](_0x378185,{'showHidden':![],'depth':null}));};}VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x5b')]=function(_0x1cdf4a,_0x4ce32f,_0x13592c){const _0x410d4b=_0x34549b;io['to'](_0x1cdf4a)[_0x410d4b('0x5b')](_0x4ce32f,_0x13592c);},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x4d')]=function(_0x5e6fe3){const _0x3c7865=_0x34549b;this['emit'](util['format'](_0x3c7865('0x88'),_0x5e6fe3['name']),_0x3c7865('0xb2'),_0x5e6fe3);},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x1f')]=function(_0x20ed14){const _0x54a2b7=_0x34549b;logger['info'](_0x54a2b7('0x76'),JSON[_0x54a2b7('0x5a')](_0x20ed14)),this[_0x54a2b7('0x5b')](util[_0x54a2b7('0xa4')](_0x54a2b7('0x88'),_0x20ed14['name']),'voice_queue_channel:remove',_0x20ed14);},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x82')]=function(_0x3c0039){const _0x1d8949=_0x34549b;if(_0x3c0039[_0x1d8949('0x33')]===_0x1d8949('0xc1')){const _0x42631f={'id':_0x3c0039['id'],'name':_0x3c0039[_0x1d8949('0x78')],'strategy':_0x3c0039[_0x1d8949('0x39')],'answered':_0x3c0039[_0x1d8949('0xa0')],'available':_0x3c0039['available'],'loggedIn':_0x3c0039[_0x1d8949('0x8')],'pTalking':_0x3c0039[_0x1d8949('0x9c')],'sumBillable':_0x3c0039[_0x1d8949('0x6a')],'sumDuration':_0x3c0039[_0x1d8949('0x1e')],'sumHoldTime':_0x3c0039[_0x1d8949('0x1b')]||0x0,'talking':_0x3c0039['talking'],'total':_0x3c0039['total'],'type':_0x3c0039['type'],'unmanaged':_0x3c0039[_0x1d8949('0x28')],'abandoned':_0x3c0039['abandoned'],'waiting':_0x3c0039['waiting']};_0x3c0039[_0x1d8949('0xb9')]&&(_0x42631f[_0x1d8949('0xb9')]={'id':_0x3c0039['Trunk']['id'],'name':_0x3c0039[_0x1d8949('0xb9')][_0x1d8949('0x78')],'active':_0x3c0039['Trunk'][_0x1d8949('0x17')],'callerid':_0x3c0039['Trunk'][_0x1d8949('0xa9')]});_0x3c0039['Interval']&&(_0x42631f[_0x1d8949('0xbd')]={'id':_0x3c0039[_0x1d8949('0xbd')]['id'],'name':_0x3c0039[_0x1d8949('0xbd')][_0x1d8949('0x78')]});const _0x14deec=md5(JSON[_0x1d8949('0x5a')](_0x42631f));_0x3c0039[_0x1d8949('0x2e')]!==_0x14deec&&(_0x3c0039[_0x1d8949('0x2e')]=_0x14deec,this[_0x1d8949('0x5b')](util['format']('voice:queue:%s',_0x42631f[_0x1d8949('0x78')]),_0x1d8949('0xbc'),_0x42631f));}},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0xb8')]=function(_0x5d9e6e){const _0xf47826=_0x34549b;return _0x5d9e6e!==null&&!_[_0xf47826('0x4')](_0x5d9e6e);},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x4e')]=function(){const _0x15c964=this;setInterval(function(){const _0x4092d5=a1097_0x2de8;_0x15c964['clearZombieChannels'](),ami[_0x4092d5('0x34')]({'action':_0x4092d5('0xa6')})[_0x4092d5('0x74')](loggerCatch(_0x4092d5('0x6d')));},0x2710);},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x65')]=function(){const _0x1bdff3=this;setInterval(function(){const _0xc0c756=a1097_0x2de8;if(_0x1bdff3['flagQueueSummary'])return ami[_0xc0c756('0x34')]({'action':_0xc0c756('0x2b')})[_0xc0c756('0x3a')](function(){const _0xaec05a=_0xc0c756;_0x1bdff3[_0xaec05a('0xa')]=![];})[_0xc0c756('0x74')](loggerCatch(_0xc0c756('0x3f')));},0x3e8);},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x1a')]=function(_0xda86dc){const _0x671bbb=_0x34549b;try{if(this['isNotNull'](_0xda86dc)&&this[_0x671bbb('0xb8')](_0xda86dc[_0x671bbb('0x6c')])){if(this[_0x671bbb('0x98')][_0xda86dc[_0x671bbb('0x6c')]]){const _0x1fa7b4=_[_0x671bbb('0xa7')](this[_0x671bbb('0x0')],'queue')[_0xda86dc[_0x671bbb('0x6c')]]||0x0,_0x17bb54=_0x1fa7b4-_0xda86dc[_0x671bbb('0x7a')];(this[_0x671bbb('0x98')][_0xda86dc[_0x671bbb('0x6c')]][_0x671bbb('0x91')]!==_[_0x671bbb('0x79')](_0xda86dc[_0x671bbb('0x7a')])||this[_0x671bbb('0x98')][_0xda86dc['queue']][_0x671bbb('0x8')]!==_['toNumber'](_0xda86dc[_0x671bbb('0x40')])||this[_0x671bbb('0x98')][_0xda86dc[_0x671bbb('0x6c')]][_0x671bbb('0x53')]!==_[_0x671bbb('0x79')](_0xda86dc[_0x671bbb('0x53')])||this[_0x671bbb('0x98')][_0xda86dc[_0x671bbb('0x6c')]]['talking']!==_0x17bb54)&&(this[_0x671bbb('0x98')][_0xda86dc['queue']][_0x671bbb('0x91')]=_['toNumber'](_0xda86dc[_0x671bbb('0x7a')]),this[_0x671bbb('0x98')][_0xda86dc[_0x671bbb('0x6c')]][_0x671bbb('0x8')]=_[_0x671bbb('0x79')](_0xda86dc['loggedin']),this[_0x671bbb('0x98')][_0xda86dc['queue']][_0x671bbb('0x53')]=_[_0x671bbb('0x79')](_0xda86dc['available']),this[_0x671bbb('0x98')][_0xda86dc[_0x671bbb('0x6c')]][_0x671bbb('0x84')]=_0x17bb54>0x0?_0x17bb54:0x0,this['voiceQueues'][_0xda86dc[_0x671bbb('0x6c')]]['talking']=this[_0x671bbb('0x98')][_0xda86dc[_0x671bbb('0x6c')]][_0x671bbb('0x84')]>_[_0x671bbb('0x79')](_0xda86dc['loggedin'])?_['toNumber'](_0xda86dc[_0x671bbb('0x40')]):this['voiceQueues'][_0xda86dc[_0x671bbb('0x6c')]][_0x671bbb('0x84')],this[_0x671bbb('0x82')](this[_0x671bbb('0x98')][_0xda86dc['queue']])),ami['emit'](_0x671bbb('0xbb'),this['voiceQueues'][_0xda86dc[_0x671bbb('0x6c')]]);}}}catch(_0x3466fd){logger['error'](_0x671bbb('0x73'),util[_0x671bbb('0x4a')](_0x3466fd,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x34549b('0x77')]=function(){const _0x423f79=_0x34549b;this[_0x423f79('0xa')]=!![];},VoiceQueueReport[_0x34549b('0x7e')]['syncNewExten']=function(){},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x1')]=function(_0x430fb9){const _0x5a3364=_0x34549b;try{if(this['isNotNull'](_0x430fb9)){_[_0x5a3364('0x4')](this[_0x5a3364('0x93')][_0x430fb9['uniqueid']])&&(this['queueReports'][_0x430fb9['uniqueid']]=[],this['channels'][_0x430fb9[_0x5a3364('0x8a')]]={});const _0x119717=new QueueReport();_0x119717[_0x5a3364('0x78')]=_0x430fb9[_0x5a3364('0x6c')],_0x119717['type']=this['voiceQueues'][_0x119717[_0x5a3364('0x78')]]&&this[_0x5a3364('0x98')][_0x119717[_0x5a3364('0x78')]][_0x5a3364('0x33')]?this[_0x5a3364('0x98')][_0x119717[_0x5a3364('0x78')]][_0x5a3364('0x33')]||'inbound':_0x5a3364('0xc1'),_0x119717['queue']=_0x430fb9[_0x5a3364('0x6c')],_0x119717[_0x5a3364('0x35')]=moment()['format'](_0x5a3364('0x58')),_0x119717[_0x5a3364('0x8c')]=_0x430fb9[_0x5a3364('0x8c')],_0x119717[_0x5a3364('0x97')]=_0x430fb9[_0x5a3364('0x97')],_[_0x5a3364('0x68')](_0x119717,_['pick'](_0x430fb9,_['keys'](_0x119717))),this['queueReports'][_0x430fb9[_0x5a3364('0x8a')]][_0x5a3364('0x36')](_0x119717),this[_0x5a3364('0x0')][_0x430fb9[_0x5a3364('0x8a')]]=_0x119717,this[_0x5a3364('0x4d')](_0x119717);}}catch(_0x52c080){logger['error'](_0x5a3364('0x10'),util[_0x5a3364('0x4a')](_0x52c080,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x69')]=function(_0x4ad046){const _0x350049=_0x34549b;try{if(this['isNotNull'](_0x4ad046)){if(this[_0x350049('0x93')][_0x4ad046['uniqueid']]){const _0x598d84=_[_0x350049('0x7c')](this[_0x350049('0x93')][_0x4ad046['uniqueid']]);_0x598d84[_0x350049('0x8b')]=![],_0x598d84[_0x350049('0xac')]=null,_0x598d84[_0x350049('0xa1')]=_0x4ad046[_0x350049('0xa1')],_0x598d84[_0x350049('0x87')]=_0x4ad046[_0x350049('0x87')],_0x598d84[_0x350049('0xd')]=!![],_0x598d84[_0x350049('0x24')]=moment()[_0x350049('0xa4')]('YYYY-MM-DD\x20HH:mm:ss'),_0x598d84[_0x350049('0x7f')]=_0x350049('0x2d'),_0x598d84[_0x350049('0x1d')]=null,this[_0x350049('0x0')][_0x4ad046[_0x350049('0x8a')]]=_0x598d84,this[_0x350049('0x1f')](_0x598d84);}}}catch(_0x18d6e1){logger['error'](_0x350049('0x30'),util['inspect'](_0x18d6e1,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x55')]=function(_0x1fa708){const _0x530fa3=_0x34549b;try{if(this['isNotNull'](_0x1fa708)){if(this['queueReports'][_0x1fa708[_0x530fa3('0x8a')]]){const _0x157662=_[_0x530fa3('0x7c')](this[_0x530fa3('0x93')][_0x1fa708[_0x530fa3('0x8a')]]);_0x157662[_0x530fa3('0x27')]=moment()[_0x530fa3('0xa4')](_0x530fa3('0x58')),_0x157662[_0x530fa3('0xaa')]=_0x1fa708['connectedlinenum'],_0x157662[_0x530fa3('0x3c')]=_0x1fa708['connectedlinename'],this[_0x530fa3('0x0')][_0x1fa708[_0x530fa3('0x8a')]]=_0x157662,this[_0x530fa3('0x4d')](_0x157662);}}}catch(_0x3d5c62){logger[_0x530fa3('0x63')](_0x530fa3('0x95'),util[_0x530fa3('0x4a')](_0x3d5c62,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0xbe')]=function(_0x46b5cd){const _0x1b3092=_0x34549b;try{if(this[_0x1b3092('0xb8')](_0x46b5cd)){if(this['queueReports'][_0x46b5cd[_0x1b3092('0x8a')]]){const _0x3f2637=_['last'](this[_0x1b3092('0x93')][_0x46b5cd[_0x1b3092('0x8a')]]);_0x3f2637[_0x1b3092('0x8b')]=!![],_0x3f2637['queuecallerexitreason']='COMPLETEDBYAGENT';}}}catch(_0x6e1ca4){logger['error']('[syncAgentConnect][VoiceQueueReport]',util[_0x1b3092('0x4a')](_0x6e1ca4,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x34549b('0x7e')]['syncAgentComplete']=function(_0x1b807f){const _0x1b18fa=_0x34549b;try{if(this['isNotNull'](_0x1b807f)){if(this[_0x1b18fa('0x93')][_0x1b807f[_0x1b18fa('0x8a')]]){const _0x3b31a7=_[_0x1b18fa('0x7c')](this[_0x1b18fa('0x93')][_0x1b807f[_0x1b18fa('0x8a')]]);_0x3b31a7['queuecallerabandon']=![],_0x3b31a7[_0x1b18fa('0x24')]=null,_0x3b31a7[_0x1b18fa('0x22')]=!![],_0x3b31a7[_0x1b18fa('0x1d')]=_0x1b807f['membername'],_0x3b31a7['holdtime']=_0x1b807f[_0x1b18fa('0xa1')],_0x3b31a7[_0x1b18fa('0x8b')]=!![],_0x3b31a7[_0x1b18fa('0x5e')]=![],_0x3b31a7[_0x1b18fa('0xb3')]=null;if(!_0x3b31a7['transfer']){if(_0x1b807f[_0x1b18fa('0x8d')]==_0x1b18fa('0x72'))_0x3b31a7[_0x1b18fa('0x7f')]=_0x1b18fa('0xad');else{if(_[_0x1b18fa('0x12')](_0x1b807f[_0x1b18fa('0xa5')][_0x1b18fa('0x50')](),_0x1b18fa('0xc4'))){if(this['queueReports'][_0x1b807f['linkedid']]){const _0x2d8731=_[_0x1b18fa('0x7c')](this[_0x1b18fa('0x93')][_0x1b807f['linkedid']]);_0x2d8731[_0x1b18fa('0x8b')]=![],_0x2d8731['queuecallerexit']=!![],_0x2d8731[_0x1b18fa('0xb3')]=moment(_0x3b31a7[_0x1b18fa('0x35')])[_0x1b18fa('0x16')](_0x1b807f[_0x1b18fa('0xa1')],'seconds')['format'](_0x1b18fa('0x58')),_0x2d8731[_0x1b18fa('0x7f')]=_0x1b18fa('0x44'),_0x2d8731[_0x1b18fa('0x72')]=!![],_0x2d8731[_0x1b18fa('0x13')]=_0x1b18fa('0x51'),_0x2d8731['transferexten']=_0x1b807f[_0x1b18fa('0x71')],_0x2d8731['transferuniqueid']=_0x1b807f['uniqueid'];const _0x4ce05e=this[_0x1b18fa('0x93')][_0x1b807f['linkedid']];this[_0x1b18fa('0x93')][_0x1b807f[_0x1b18fa('0xf')]]=this[_0x1b18fa('0x93')][_0x1b807f['uniqueid']],this[_0x1b18fa('0x93')][_0x1b807f[_0x1b18fa('0x8a')]]=_0x4ce05e;}}else _0x3b31a7[_0x1b18fa('0x7f')]=_0x1b18fa('0x61')+_0x1b807f['reason'][_0x1b18fa('0x9')]();}}this[_0x1b18fa('0x0')][_0x1b807f['uniqueid']]=_0x3b31a7,this['emitVoiceQueueChannelRemove'](_0x3b31a7);}}}catch(_0x2e23b3){logger[_0x1b18fa('0x63')](_0x1b18fa('0x4c'),util[_0x1b18fa('0x4a')](_0x2e23b3,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype']['syncVarSet']=function(_0x45dce7){const _0x1f3a11=_0x34549b;try{if(this[_0x1f3a11('0xb8')](_0x45dce7)){this['addVariable'](_0x45dce7[_0x1f3a11('0x8a')],_[_0x1f3a11('0x2c')](_0x45dce7[_0x1f3a11('0x99')])[0x0],_0x45dce7['value']);if(this[_0x1f3a11('0x93')][_0x45dce7[_0x1f3a11('0x8a')]]){const _0x2508d9=_[_0x1f3a11('0x7c')](this['queueReports'][_0x45dce7[_0x1f3a11('0x8a')]]);if(_0x2508d9){if(this[_0x1f3a11('0xb8')](_0x45dce7[_0x1f3a11('0x99')])&&this[_0x1f3a11('0xb8')](_0x45dce7[_0x1f3a11('0x99')][_0x1f3a11('0x3')])){switch(_0x45dce7[_0x1f3a11('0x37')]){case _0x1f3a11('0xc2'):_0x2508d9[_0x1f3a11('0x5e')]=![],_0x2508d9[_0x1f3a11('0xb3')]=null;break;case'TIMEOUT':_0x2508d9[_0x1f3a11('0x7d')]=_0x1f3a11('0x56'),ami[_0x1f3a11('0x5b')]('custom:timeout',_0x2508d9);break;default:_0x2508d9[_0x1f3a11('0x5e')]=!![],_0x2508d9[_0x1f3a11('0xb3')]=moment()[_0x1f3a11('0xa4')](_0x1f3a11('0x58')),_0x2508d9[_0x1f3a11('0x27')]=moment()[_0x1f3a11('0xa4')](_0x1f3a11('0x58'));}_0x2508d9[_0x1f3a11('0xd')]=![],_0x2508d9[_0x1f3a11('0x24')]=null,_0x2508d9[_0x1f3a11('0x7f')]=_0x45dce7[_0x1f3a11('0x37')],this['channels'][_0x45dce7[_0x1f3a11('0x8a')]]=_0x2508d9,this[_0x1f3a11('0x1f')](_0x2508d9);}else this[_0x1f3a11('0xb8')](_0x45dce7[_0x1f3a11('0x99')])&&this['isNotNull'](_0x45dce7['variable'][_0x1f3a11('0xb0')])&&(!_0x2508d9[_0x1f3a11('0xd')]&&(_0x2508d9['queuecallerexit']=!![],_0x2508d9[_0x1f3a11('0xb3')]=moment()[_0x1f3a11('0xa4')](_0x1f3a11('0x58')),_0x2508d9[_0x1f3a11('0x7f')]=_0x1f3a11('0x57'),_0x2508d9[_0x1f3a11('0x27')]=moment()[_0x1f3a11('0xa4')]('YYYY-MM-DD\x20HH:mm:ss'),this[_0x1f3a11('0x0')][_0x45dce7[_0x1f3a11('0x8a')]]=_0x2508d9));_0x2508d9[_0x1f3a11('0x3b')]=this[_0x1f3a11('0x3b')][_0x45dce7['uniqueid']];}}}}catch(_0xb3df02){logger[_0x1f3a11('0x63')](_0x1f3a11('0x4f'),util['inspect'](_0xb3df02,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x4b')]=function(_0xd23c17,_0x4c910c,_0x1b37f6){const _0x2c7113=_0x34549b,_0x3ac4d7=['rtpaudioqos',_0x2c7113('0xa2'),_0x2c7113('0x62'),_0x2c7113('0x32'),_0x2c7113('0x49'),'rtpaudioqoslossbridged',_0x2c7113('0x19'),_0x2c7113('0x9e'),_0x2c7113('0x9b'),_0x2c7113('0x96'),'bridgepeer',_0x2c7113('0x80'),_0x2c7113('0x18'),_0x2c7113('0x29'),'memberinterface',_0x2c7113('0x2a'),'membername',_0x2c7113('0x38'),'memberrealtime'];!_[_0x2c7113('0xa3')](_0x4c910c)&&!_[_0x2c7113('0xb6')](_0x3ac4d7,_0x4c910c)&&(_['isUndefined'](this[_0x2c7113('0x3b')][_0xd23c17])&&(this[_0x2c7113('0x3b')][_0xd23c17]={}),this[_0x2c7113('0x3b')][_0xd23c17][_0x4c910c]=_0x1b37f6);},VoiceQueueReport[_0x34549b('0x7e')][_0x34549b('0x92')]=function(_0x55fc92){const _0xba6589=_0x34549b;try{if(this[_0xba6589('0xb8')](_0x55fc92)){if(this[_0xba6589('0x93')][_0x55fc92[_0xba6589('0x8a')]]){for(let _0x315b06=0x0,_0x2ad1aa={};_0x315b060x0?_0x29d621:0x0,this[_0x1ba0bb('0x5c')][_0x3f2379[_0x1ba0bb('0xa4')]][_0x1ba0bb('0xb7')]=this['voiceQueues'][_0x3f2379['queue']][_0x1ba0bb('0xb7')]>_[_0x1ba0bb('0x31')](_0x3f2379[_0x1ba0bb('0xba')])?_[_0x1ba0bb('0x31')](_0x3f2379[_0x1ba0bb('0xba')]):this['voiceQueues'][_0x3f2379[_0x1ba0bb('0xa4')]][_0x1ba0bb('0xb7')],this[_0x1ba0bb('0x3c')](this['voiceQueues'][_0x3f2379[_0x1ba0bb('0xa4')]])),ami[_0x1ba0bb('0x5d')]('custom:queuesummary',this[_0x1ba0bb('0x5c')][_0x3f2379[_0x1ba0bb('0xa4')]]);}}}catch(_0x111ea2){logger['error'](_0x1ba0bb('0x9'),util[_0x1ba0bb('0x37')](_0x111ea2,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x4b8143('0xaa')]['syncQueueSummaryComplete']=function(){this['flagQueueSummary']=!![];},VoiceQueueReport[_0x4b8143('0xaa')][_0x4b8143('0x98')]=function(){},VoiceQueueReport['prototype'][_0x4b8143('0x1b')]=function(_0x1e097b){const _0x2bf933=_0x4b8143;try{if(this['isNotNull'](_0x1e097b)){_[_0x2bf933('0x12')](this[_0x2bf933('0xa8')][_0x1e097b[_0x2bf933('0x6f')]])&&(this[_0x2bf933('0xa8')][_0x1e097b[_0x2bf933('0x6f')]]=[],this[_0x2bf933('0xa0')][_0x1e097b[_0x2bf933('0x6f')]]={});const _0x4af7b5=new QueueReport();_0x4af7b5['name']=_0x1e097b[_0x2bf933('0xa4')],_0x4af7b5[_0x2bf933('0x3d')]=this[_0x2bf933('0x5c')][_0x4af7b5[_0x2bf933('0x53')]]&&this[_0x2bf933('0x5c')][_0x4af7b5[_0x2bf933('0x53')]][_0x2bf933('0x3d')]?this[_0x2bf933('0x5c')][_0x4af7b5[_0x2bf933('0x53')]][_0x2bf933('0x3d')]||'inbound':_0x2bf933('0x41'),_0x4af7b5['queue']=_0x1e097b[_0x2bf933('0xa4')],_0x4af7b5[_0x2bf933('0x79')]=moment()[_0x2bf933('0x9b')](_0x2bf933('0x59')),_0x4af7b5['position']=_0x1e097b['position'],_0x4af7b5[_0x2bf933('0x38')]=_0x1e097b['count'],_[_0x2bf933('0x45')](_0x4af7b5,_[_0x2bf933('0x8d')](_0x1e097b,_[_0x2bf933('0x1')](_0x4af7b5))),this[_0x2bf933('0xa8')][_0x1e097b['uniqueid']]['push'](_0x4af7b5),this['channels'][_0x1e097b['uniqueid']]=_0x4af7b5,this[_0x2bf933('0x91')](_0x4af7b5);}}catch(_0x2531aa){logger['error'](_0x2bf933('0x4'),util[_0x2bf933('0x37')](_0x2531aa,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x4b8143('0xaa')][_0x4b8143('0xb9')]=function(_0x76255d){const _0x52cc3f=_0x4b8143;try{if(this[_0x52cc3f('0xbb')](_0x76255d)){if(this[_0x52cc3f('0xa8')][_0x76255d[_0x52cc3f('0x6f')]]){const _0x47bdc9=_[_0x52cc3f('0x4b')](this[_0x52cc3f('0xa8')][_0x76255d[_0x52cc3f('0x6f')]]);_0x47bdc9['queuecallercomplete']=![],_0x47bdc9['queuecallercompleteAt']=null,_0x47bdc9[_0x52cc3f('0x92')]=_0x76255d['holdtime'],_0x47bdc9['originalposition']=_0x76255d['originalposition'],_0x47bdc9[_0x52cc3f('0x80')]=!![],_0x47bdc9[_0x52cc3f('0x2b')]=moment()[_0x52cc3f('0x9b')]('YYYY-MM-DD\x20HH:mm:ss'),_0x47bdc9[_0x52cc3f('0x6e')]='ABANDONED',_0x47bdc9[_0x52cc3f('0x77')]=null,this[_0x52cc3f('0xa0')][_0x76255d[_0x52cc3f('0x6f')]]=_0x47bdc9,this[_0x52cc3f('0x2d')](_0x47bdc9);}}}catch(_0x24fc48){logger[_0x52cc3f('0x19')]('[syncQueueCallerAbandon][VoiceQueueReport]',util[_0x52cc3f('0x37')](_0x24fc48,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x4b8143('0xaa')][_0x4b8143('0x13')]=function(_0x463971){const _0x46752f=_0x4b8143;try{if(this['isNotNull'](_0x463971)){if(this['queueReports'][_0x463971[_0x46752f('0x6f')]]){const _0x1cb61f=_['last'](this[_0x46752f('0xa8')][_0x463971[_0x46752f('0x6f')]]);_0x1cb61f[_0x46752f('0x65')]=moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),_0x1cb61f[_0x46752f('0x4c')]=_0x463971[_0x46752f('0x4c')],_0x1cb61f[_0x46752f('0x10')]=_0x463971[_0x46752f('0x10')],this[_0x46752f('0xa0')][_0x463971[_0x46752f('0x6f')]]=_0x1cb61f,this[_0x46752f('0x91')](_0x1cb61f);}}}catch(_0x1e9304){logger[_0x46752f('0x19')]('[syncQueueCallerLeave][VoiceQueueReport]',util[_0x46752f('0x37')](_0x1e9304,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x4b8143('0xaa')][_0x4b8143('0x5')]=function(_0x2bd795){const _0xa66375=_0x4b8143;try{if(this['isNotNull'](_0x2bd795)){if(this[_0xa66375('0xa8')][_0x2bd795[_0xa66375('0x6f')]]){const _0x55f1b0=_[_0xa66375('0x4b')](this[_0xa66375('0xa8')][_0x2bd795[_0xa66375('0x6f')]]);_0x55f1b0['queuecallercomplete']=!![],_0x55f1b0['queuecallerexitreason']=_0xa66375('0x17');}}}catch(_0x35b5a1){logger[_0xa66375('0x19')]('[syncAgentConnect][VoiceQueueReport]',util['inspect'](_0x35b5a1,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x4b8143('0xaa')][_0x4b8143('0x74')]=function(_0x553192){const _0xfd3793=_0x4b8143;try{if(this[_0xfd3793('0xbb')](_0x553192)){if(this['queueReports'][_0x553192[_0xfd3793('0x6f')]]){const _0x30e019=_[_0xfd3793('0x4b')](this[_0xfd3793('0xa8')][_0x553192[_0xfd3793('0x6f')]]);_0x30e019['queuecallerabandon']=![],_0x30e019['queuecallerabandonAt']=null,_0x30e019[_0xfd3793('0x7b')]=!![],_0x30e019['lastAssignedTo']=_0x553192[_0xfd3793('0x86')],_0x30e019[_0xfd3793('0x92')]=_0x553192[_0xfd3793('0x92')],_0x30e019[_0xfd3793('0x61')]=!![],_0x30e019[_0xfd3793('0x1d')]=![],_0x30e019['queuecallerexitAt']=null;if(!_0x30e019[_0xfd3793('0xb2')]){if(_0x553192['reason']==_0xfd3793('0xb2'))_0x30e019[_0xfd3793('0x6e')]=_0xfd3793('0x63');else{if(_[_0xfd3793('0xa9')](_0x553192[_0xfd3793('0x14')]['toLowerCase'](),_0xfd3793('0x90'))){if(this[_0xfd3793('0xa8')][_0x553192[_0xfd3793('0x94')]]){const _0x3edac1=_[_0xfd3793('0x4b')](this[_0xfd3793('0xa8')][_0x553192[_0xfd3793('0x94')]]);_0x3edac1['queuecallercomplete']=![],_0x3edac1['queuecallerexit']=!![],_0x3edac1[_0xfd3793('0xb4')]=moment(_0x30e019[_0xfd3793('0x79')])['add'](_0x553192[_0xfd3793('0x92')],_0xfd3793('0xb0'))[_0xfd3793('0x9b')](_0xfd3793('0x59')),_0x3edac1[_0xfd3793('0x6e')]=_0xfd3793('0xb1'),_0x3edac1[_0xfd3793('0xb2')]=!![],_0x3edac1['transfertype']='FORWARD',_0x3edac1[_0xfd3793('0x9a')]=_0x553192['destexten'],_0x3edac1[_0xfd3793('0x85')]=_0x553192['uniqueid'];const _0x42a812=this['queueReports'][_0x553192['linkedid']];this[_0xfd3793('0xa8')][_0x553192['linkedid']]=this[_0xfd3793('0xa8')][_0x553192[_0xfd3793('0x6f')]],this[_0xfd3793('0xa8')][_0x553192[_0xfd3793('0x6f')]]=_0x42a812;}}else _0x30e019[_0xfd3793('0x6e')]=_0xfd3793('0xae')+_0x553192[_0xfd3793('0x16')]['toUpperCase']();}}this[_0xfd3793('0xa0')][_0x553192[_0xfd3793('0x6f')]]=_0x30e019,this[_0xfd3793('0x2d')](_0x30e019);}}}catch(_0xcb89ad){logger[_0xfd3793('0x19')]('[syncAgentComplete][VoiceQueueReport]',util[_0xfd3793('0x37')](_0xcb89ad,{'showHidden':![],'depth':null}));}},VoiceQueueReport[_0x4b8143('0xaa')][_0x4b8143('0x7f')]=function(_0x14f6a9){const _0x22f646=_0x4b8143;try{if(this[_0x22f646('0xbb')](_0x14f6a9)){this[_0x22f646('0x3b')](_0x14f6a9['uniqueid'],_[_0x22f646('0x1')](_0x14f6a9[_0x22f646('0x22')])[0x0],_0x14f6a9[_0x22f646('0x64')]);if(this[_0x22f646('0xa8')][_0x14f6a9[_0x22f646('0x6f')]]){const _0x5d1913=_['last'](this['queueReports'][_0x14f6a9[_0x22f646('0x6f')]]);if(_0x5d1913){if(this[_0x22f646('0xbb')](_0x14f6a9[_0x22f646('0x22')])&&this['isNotNull'](_0x14f6a9[_0x22f646('0x22')][_0x22f646('0xab')])){switch(_0x14f6a9['value']){case _0x22f646('0x6b'):_0x5d1913[_0x22f646('0x1d')]=![],_0x5d1913['queuecallerexitAt']=null;break;case _0x22f646('0x46'):_0x5d1913['lastevent']=_0x22f646('0x9d'),ami[_0x22f646('0x5d')](_0x22f646('0x28'),_0x5d1913);break;default:_0x5d1913[_0x22f646('0x1d')]=!![],_0x5d1913[_0x22f646('0xb4')]=moment()[_0x22f646('0x9b')](_0x22f646('0x59')),_0x5d1913[_0x22f646('0x65')]=moment()[_0x22f646('0x9b')](_0x22f646('0x59'));}_0x5d1913[_0x22f646('0x80')]=![],_0x5d1913[_0x22f646('0x2b')]=null,_0x5d1913['queuecallerexitreason']=_0x14f6a9[_0x22f646('0x64')],this[_0x22f646('0xa0')][_0x14f6a9[_0x22f646('0x6f')]]=_0x5d1913,this['emitVoiceQueueChannelRemove'](_0x5d1913);}else this[_0x22f646('0xbb')](_0x14f6a9[_0x22f646('0x22')])&&this[_0x22f646('0xbb')](_0x14f6a9['variable']['queueposition'])&&(!_0x5d1913['queuecallerabandon']&&(_0x5d1913[_0x22f646('0x1d')]=!![],_0x5d1913[_0x22f646('0xb4')]=moment()[_0x22f646('0x9b')]('YYYY-MM-DD\x20HH:mm:ss'),_0x5d1913[_0x22f646('0x6e')]='EXITWITHKEY',_0x5d1913[_0x22f646('0x65')]=moment()['format'](_0x22f646('0x59')),this[_0x22f646('0xa0')][_0x14f6a9[_0x22f646('0x6f')]]=_0x5d1913));_0x5d1913['variables']=this[_0x22f646('0x82')][_0x14f6a9['uniqueid']];}}}}catch(_0x455f45){logger['error'](_0x22f646('0x5b'),util[_0x22f646('0x37')](_0x455f45,{'showHidden':![],'depth':null}));}},VoiceQueueReport['prototype'][_0x4b8143('0x3b')]=function(_0x56effc,_0x2d2859,_0xa7a872){const _0x4808d7=_0x4b8143,_0x5aeb83=[_0x4808d7('0x1a'),_0x4808d7('0x6a'),'rtpaudioqosjitter',_0x4808d7('0x42'),'rtpaudioqosloss',_0x4808d7('0x89'),_0x4808d7('0x2c'),_0x4808d7('0x32'),'sipcallid',_0x4808d7('0x8c'),_0x4808d7('0x0'),_0x4808d7('0x4d'),'membercalls','memberdynamic',_0x4808d7('0x23'),_0x4808d7('0x48'),_0x4808d7('0x86'),_0x4808d7('0x72'),_0x4808d7('0x2e')];!_[_0x4808d7('0x78')](_0x2d2859)&&!_[_0x4808d7('0xa1')](_0x5aeb83,_0x2d2859)&&(_[_0x4808d7('0x12')](this[_0x4808d7('0x82')][_0x56effc])&&(this['variables'][_0x56effc]={}),this[_0x4808d7('0x82')][_0x56effc][_0x2d2859]=_0xa7a872);},VoiceQueueReport['prototype'][_0x4b8143('0xd')]=function(_0x39ee42){const _0x326c16=_0x4b8143;try{if(this[_0x326c16('0xbb')](_0x39ee42)){if(this[_0x326c16('0xa8')][_0x39ee42['uniqueid']]){for(let _0x591caf=0x0,_0x38f6cb={};_0x591caf=0x0?moment(_0x345b74[_0x7c873a('0x19')])[_0x7c873a('0x3')](_0x345b74[_0x7c873a('0xd')],_0x7c873a('0x13')):null,'data1':_0x7c873a('0x10'),'data2':_0x345b74[_0x7c873a('0x6')],'data3':_0x345b74[_0x7c873a('0x0')],'data4':_0x345b74[_0x7c873a('0x12')]||null,'role':_0x7c873a('0x1b'),'internal':_0x345b74[_0x7c873a('0x6')]?_[_0x7c873a('0x18')](_0x345b74[_0x7c873a('0x6')]):undefined,'uniqueid':_0x345b74[_0x7c873a('0xc')]},'log':_0x7c873a('0x1a')});}; \ No newline at end of file +const a1119_0x13d6=['starttime','voiceDialReport','queue','interface','dialstring','toNumber','outbound','Request','queuecallerleaveAt','calleridnum','endtime','voice','seconds','exten','moment','membername','accountcode','queuecallerexitAt','agent','../client','diff','TALKING','lastAssignedTo','format','uniqueid','isNil','lodash','CreateMemberReport','inbound','SIP/%s'];(function(_0x2f6ee3,_0x13d6d0){const _0x17fd8d=function(_0x148a9e){while(--_0x148a9e){_0x2f6ee3['push'](_0x2f6ee3['shift']());}};_0x17fd8d(++_0x13d6d0);}(a1119_0x13d6,0x1cf));const a1119_0x17fd=function(_0x2f6ee3,_0x13d6d0){_0x2f6ee3=_0x2f6ee3-0x0;let _0x17fd8d=a1119_0x13d6[_0x2f6ee3];return _0x17fd8d;};const _0x36d63b=a1119_0x17fd;'use strict';const moment=require(_0x36d63b('0x1')),_=require(_0x36d63b('0xd')),util=require('util'),client=require(_0x36d63b('0x6'));exports['voiceQueueReport']=function(_0x148a9e){const _0x2c581f=_0x36d63b,_0x323686=_0x148a9e['queuecallercompleteAt']||_0x148a9e[_0x2c581f('0x4')];return client['Request'](_0x2c581f('0xe'),{'body':{'channel':_0x2c581f('0x1c'),'membername':_0x148a9e[_0x2c581f('0x9')],'interface':_[_0x2c581f('0xc')](_0x148a9e[_0x2c581f('0x14')])?util[_0x2c581f('0xa')](_0x2c581f('0x10'),_0x148a9e['lastAssignedTo']):_0x148a9e[_0x2c581f('0x14')],'type':_0x2c581f('0x8'),'enterAt':_0x148a9e[_0x2c581f('0x19')],'exitAt':_0x323686,'duration':moment(_0x323686)[_0x2c581f('0x7')](_0x148a9e[_0x2c581f('0x19')],_0x2c581f('0x1d')),'data1':_0x2c581f('0xf'),'data2':_0x148a9e[_0x2c581f('0x1a')],'data3':_0x148a9e['exten'],'data4':null,'data5':_0x148a9e[_0x2c581f('0x13')],'role':_0x2c581f('0x5'),'internal':_0x148a9e[_0x2c581f('0x3')]?_[_0x2c581f('0x16')](_0x148a9e[_0x2c581f('0x3')]):undefined,'uniqueid':_0x148a9e[_0x2c581f('0xb')]},'log':_0x2c581f('0xe')});},exports[_0x36d63b('0x12')]=function(_0xfa498b){const _0x467849=_0x36d63b;return client[_0x467849('0x18')]('CreateMemberReport',{'body':{'channel':_0x467849('0x1c'),'membername':_0xfa498b[_0x467849('0x2')],'interface':_0xfa498b['interface'],'type':'TALKING','enterAt':_0xfa498b[_0x467849('0x11')],'exitAt':_0xfa498b['endtime'],'duration':moment(_0xfa498b[_0x467849('0x1b')])[_0x467849('0x7')](_0xfa498b[_0x467849('0x11')],_0x467849('0x1d'))>=0x0?moment(_0xfa498b[_0x467849('0x1b')])[_0x467849('0x7')](_0xfa498b[_0x467849('0x11')],_0x467849('0x1d')):null,'data1':_0x467849('0x17'),'data2':_0xfa498b[_0x467849('0x3')],'data3':_0xfa498b[_0x467849('0x0')],'data4':_0xfa498b[_0x467849('0x15')]||null,'role':_0x467849('0x5'),'internal':_0xfa498b[_0x467849('0x3')]?_[_0x467849('0x16')](_0xfa498b['accountcode']):undefined,'uniqueid':_0xfa498b['uniqueid']},'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 fc55922..cce56e3 100644 --- a/server/services/ami/rpc/template.js +++ b/server/services/ami/rpc/template.js @@ -1 +1 @@ -const a1119_0x2ee2=['GetTemplate','getTemplates','html','../client','Request','name'];(function(_0x22bc3a,_0x2ee2e1){const _0x324349=function(_0x41ae1c){while(--_0x41ae1c){_0x22bc3a['push'](_0x22bc3a['shift']());}};_0x324349(++_0x2ee2e1);}(a1119_0x2ee2,0x1b9));const a1119_0x3243=function(_0x22bc3a,_0x2ee2e1){_0x22bc3a=_0x22bc3a-0x0;let _0x324349=a1119_0x2ee2[_0x22bc3a];return _0x324349;};const _0x15bb07=a1119_0x3243;'use strict';const client=require(_0x15bb07('0x0'));exports[_0x15bb07('0x4')]=function(){return function(){const _0x2b6b71=a1119_0x3243;return client[_0x2b6b71('0x1')](_0x2b6b71('0x3'),{'options':{'raw':!![],'attributes':['id',_0x2b6b71('0x2'),_0x2b6b71('0x5')]},'log':_0x2b6b71('0x3')});};}; \ No newline at end of file +const a1120_0x4868=['name','GetTemplate','html','Request'];(function(_0x59bed8,_0x4868e7){const _0x5f56ee=function(_0x528c6a){while(--_0x528c6a){_0x59bed8['push'](_0x59bed8['shift']());}};_0x5f56ee(++_0x4868e7);}(a1120_0x4868,0x12d));const a1120_0x5f56=function(_0x59bed8,_0x4868e7){_0x59bed8=_0x59bed8-0x0;let _0x5f56ee=a1120_0x4868[_0x59bed8];return _0x5f56ee;};'use strict';const client=require('../client');exports['getTemplates']=function(){return function(){const _0x226936=a1120_0x5f56;return client[_0x226936('0x2')](_0x226936('0x0'),{'options':{'raw':!![],'attributes':['id',_0x226936('0x3'),_0x226936('0x1')]},'log':_0x226936('0x0')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/trigger.js b/server/services/ami/rpc/trigger.js index a2a19d3..7a03a5a 100644 --- a/server/services/ami/rpc/trigger.js +++ b/server/services/ami/rpc/trigger.js @@ -1 +1 @@ -const a1120_0x4337=['data6','action','data1','Condition','value','data7','../client','data3','channel','Request','data5','data4','data2','field','name','status','operator','GetTrigger','getTriggers'];(function(_0xceef95,_0x4337fb){const _0x3f93f9=function(_0x343092){while(--_0x343092){_0xceef95['push'](_0xceef95['shift']());}};_0x3f93f9(++_0x4337fb);}(a1120_0x4337,0x12a));const a1120_0x3f93=function(_0xceef95,_0x4337fb){_0xceef95=_0xceef95-0x0;let _0x3f93f9=a1120_0x4337[_0xceef95];return _0x3f93f9;};const _0x3da8dc=a1120_0x3f93;'use strict';const client=require(_0x3da8dc('0xc'));exports[_0x3da8dc('0x5')]=function(){return function(){const _0x3a64b5=a1120_0x3f93;return client[_0x3a64b5('0xf')]('GetTrigger',{'options':{'raw':![],'attributes':['id',_0x3a64b5('0x1'),_0x3a64b5('0xe'),_0x3a64b5('0x2')],'include':[{'model':_0x3a64b5('0x9'),'as':'AllConditions','attributes':['id',_0x3a64b5('0x0'),_0x3a64b5('0x3'),'value']},{'model':_0x3a64b5('0x9'),'as':'AnyConditions','attributes':['id',_0x3a64b5('0x0'),_0x3a64b5('0x3'),_0x3a64b5('0xa')]},{'model':'Action','as':'Actions','attributes':['id',_0x3a64b5('0x7'),_0x3a64b5('0x8'),_0x3a64b5('0x12'),_0x3a64b5('0xd'),_0x3a64b5('0x11'),_0x3a64b5('0x10'),_0x3a64b5('0x6'),_0x3a64b5('0xb')]}]},'log':_0x3a64b5('0x4')});};}; \ No newline at end of file +const a1121_0x4b62=['Condition','data7','value','name','AnyConditions','Action','action','GetTrigger','data4','data3','../client','data5','operator','Actions','channel','data2','field','AllConditions','data1'];(function(_0x417068,_0x4b625d){const _0x60d544=function(_0x5933f7){while(--_0x5933f7){_0x417068['push'](_0x417068['shift']());}};_0x60d544(++_0x4b625d);}(a1121_0x4b62,0x11d));const a1121_0x60d5=function(_0x417068,_0x4b625d){_0x417068=_0x417068-0x0;let _0x60d544=a1121_0x4b62[_0x417068];return _0x60d544;};const _0x25e19a=a1121_0x60d5;'use strict';const client=require(_0x25e19a('0xa'));exports['getTriggers']=function(){return function(){const _0x5e1913=a1121_0x60d5;return client['Request'](_0x5e1913('0x7'),{'options':{'raw':![],'attributes':['id',_0x5e1913('0x3'),_0x5e1913('0xe'),'status'],'include':[{'model':_0x5e1913('0x0'),'as':_0x5e1913('0x11'),'attributes':['id',_0x5e1913('0x10'),_0x5e1913('0xc'),'value']},{'model':'Condition','as':_0x5e1913('0x4'),'attributes':['id','field',_0x5e1913('0xc'),_0x5e1913('0x2')]},{'model':_0x5e1913('0x5'),'as':_0x5e1913('0xd'),'attributes':['id',_0x5e1913('0x6'),_0x5e1913('0x12'),_0x5e1913('0xf'),_0x5e1913('0x9'),_0x5e1913('0x8'),_0x5e1913('0xb'),'data6',_0x5e1913('0x1')]}]},'log':'GetTrigger'});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/trunk.js b/server/services/ami/rpc/trunk.js index be0b4e7..b39a55c 100644 --- a/server/services/ami/rpc/trunk.js +++ b/server/services/ami/rpc/trunk.js @@ -1 +1 @@ -const a1121_0x20d2=['GetTrunk','name','../client','getTrunks','registry','Request'];(function(_0x5b7883,_0x20d2fb){const _0x2b29a8=function(_0x46d948){while(--_0x46d948){_0x5b7883['push'](_0x5b7883['shift']());}};_0x2b29a8(++_0x20d2fb);}(a1121_0x20d2,0x1e2));const a1121_0x2b29=function(_0x5b7883,_0x20d2fb){_0x5b7883=_0x5b7883-0x0;let _0x2b29a8=a1121_0x20d2[_0x5b7883];return _0x2b29a8;};const _0x199f93=a1121_0x2b29;'use strict';const client=require(_0x199f93('0x0'));exports[_0x199f93('0x1')]=function(){return function(){const _0xfedf=a1121_0x2b29;return client[_0xfedf('0x3')](_0xfedf('0x4'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xfedf('0x5'),_0xfedf('0x2')]},'log':_0xfedf('0x4')});};}; \ No newline at end of file +const a1122_0xf039=['name','getTrunks','GetTrunk'];(function(_0x123bc8,_0xf039b8){const _0x5284a4=function(_0x520107){while(--_0x520107){_0x123bc8['push'](_0x123bc8['shift']());}};_0x5284a4(++_0xf039b8);}(a1122_0xf039,0x145));const a1122_0x5284=function(_0x123bc8,_0xf039b8){_0x123bc8=_0x123bc8-0x0;let _0x5284a4=a1122_0xf039[_0x123bc8];return _0x5284a4;};const _0xcc8759=a1122_0x5284;'use strict';const client=require('../client');exports[_0xcc8759('0x0')]=function(){return function(){const _0xa49248=a1122_0x5284;return client['Request'](_0xa49248('0x1'),{'options':{'raw':!![],'where':{'active':0x1},'attributes':['id',_0xa49248('0x2'),'registry']},'log':_0xa49248('0x1')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/user.js b/server/services/ami/rpc/user.js index fa5c28a..58329ef 100644 --- a/server/services/ami/rpc/user.js +++ b/server/services/ami/rpc/user.js @@ -1 +1 @@ -const a1122_0x5f3e=['getAgents','agent','interface','Request','UnpauseUser','online','name','voicePause','internal','lastLoginAt','fullname','pauseType','telephone','email','accountcode','ShowUser','savePause','lastPauseAt','phone','getAgent','GetUser','mobile'];(function(_0x194c17,_0x5f3e99){const _0x3a1a09=function(_0x40f35c){while(--_0x40f35c){_0x194c17['push'](_0x194c17['shift']());}};_0x3a1a09(++_0x5f3e99);}(a1122_0x5f3e,0x1d6));const a1122_0x3a1a=function(_0x194c17,_0x5f3e99){_0x194c17=_0x194c17-0x0;let _0x3a1a09=a1122_0x5f3e[_0x194c17];return _0x3a1a09;};const _0x21fa69=a1122_0x3a1a;'use strict';const client=require('../client');exports[_0x21fa69('0xe')]=function(){return function(){const _0x547c69=a1122_0x3a1a;return client[_0x547c69('0x11')](_0x547c69('0xc'),{'options':{'raw':![],'where':{'role':_0x547c69('0xf')},'attributes':['id',_0x547c69('0x14'),_0x547c69('0x5'),_0x547c69('0x6'),_0x547c69('0x2'),_0x547c69('0x13'),_0x547c69('0x1'),_0x547c69('0x3'),_0x547c69('0x9'),_0x547c69('0x15'),_0x547c69('0xa'),_0x547c69('0xd'),'interface']},'log':'getAgents'});};},exports['getTelephones']=function(){return function(){const _0x2aa03f=a1122_0x3a1a;return client[_0x2aa03f('0x11')](_0x2aa03f('0xc'),{'options':{'raw':!![],'where':{'role':_0x2aa03f('0x4')},'attributes':['id','name',_0x2aa03f('0x6'),_0x2aa03f('0x0')]},'log':'getTelephones'});};},exports[_0x21fa69('0x8')]=function(_0x40f35c,_0x3434b4,_0x1ee1d3){const _0x32ee5a=_0x21fa69;return client[_0x32ee5a('0x11')]('PauseUser',{'body':{'type':_0x3434b4,'uniqueid':_0x1ee1d3},'options':{'where':{'id':_0x40f35c['id']}},'log':_0x32ee5a('0x8')});},exports['saveUnpause']=function(_0x3d05a1){const _0x4ea064=_0x21fa69;return client['Request'](_0x4ea064('0x12'),{'body':{},'options':{'where':{'id':_0x3d05a1['id']}},'log':_0x4ea064('0x8')});},exports[_0x21fa69('0xb')]=function(_0x27501f){const _0x26a897=_0x21fa69;return client[_0x26a897('0x11')](_0x26a897('0x7'),{'options':{'raw':![],'where':{'role':_0x26a897('0xf'),'id':_0x27501f},'attributes':['id',_0x26a897('0x14'),_0x26a897('0x5'),'accountcode',_0x26a897('0x2'),_0x26a897('0x13'),_0x26a897('0x1'),_0x26a897('0x3'),_0x26a897('0x9'),_0x26a897('0x15'),_0x26a897('0x10')]},'log':'getAgent'});}; \ No newline at end of file +const a1123_0x2a6a=['GetUser','getAgents','mobile','email','voicePause','accountcode','name','lastPauseAt','telephone','pauseType','agent','interface','phone','ShowUser','lastLoginAt','../client','savePause','UnpauseUser','getAgent','saveUnpause','Request','PauseUser'];(function(_0x51aba4,_0x2a6a9b){const _0x59a32a=function(_0x3459d3){while(--_0x3459d3){_0x51aba4['push'](_0x51aba4['shift']());}};_0x59a32a(++_0x2a6a9b);}(a1123_0x2a6a,0xdd));const a1123_0x59a3=function(_0x51aba4,_0x2a6a9b){_0x51aba4=_0x51aba4-0x0;let _0x59a32a=a1123_0x2a6a[_0x51aba4];return _0x59a32a;};const _0x507254=a1123_0x59a3;'use strict';const client=require(_0x507254('0xe'));exports[_0x507254('0x0')]=function(){return function(){const _0x2717a2=a1123_0x59a3;return client[_0x2717a2('0x13')](_0x2717a2('0x15'),{'options':{'raw':![],'where':{'role':_0x2717a2('0x9')},'attributes':['id',_0x2717a2('0x5'),'email',_0x2717a2('0x4'),'fullname','online',_0x2717a2('0xd'),'pauseType',_0x2717a2('0x6'),'voicePause',_0x2717a2('0xb'),_0x2717a2('0x1'),_0x2717a2('0xa')]},'log':_0x2717a2('0x0')});};},exports['getTelephones']=function(){return function(){const _0x528ae3=a1123_0x59a3;return client[_0x528ae3('0x13')](_0x528ae3('0x15'),{'options':{'raw':!![],'where':{'role':_0x528ae3('0x7')},'attributes':['id',_0x528ae3('0x5'),_0x528ae3('0x4'),'internal']},'log':'getTelephones'});};},exports[_0x507254('0xf')]=function(_0x3459d3,_0x1ba851,_0x50d787){const _0x59d6a1=_0x507254;return client[_0x59d6a1('0x13')](_0x59d6a1('0x14'),{'body':{'type':_0x1ba851,'uniqueid':_0x50d787},'options':{'where':{'id':_0x3459d3['id']}},'log':_0x59d6a1('0xf')});},exports[_0x507254('0x12')]=function(_0x4eeb68){const _0x364926=_0x507254;return client['Request'](_0x364926('0x10'),{'body':{},'options':{'where':{'id':_0x4eeb68['id']}},'log':_0x364926('0xf')});},exports[_0x507254('0x11')]=function(_0x28f76a){const _0x353253=_0x507254;return client[_0x353253('0x13')](_0x353253('0xc'),{'options':{'raw':![],'where':{'role':_0x353253('0x9'),'id':_0x28f76a},'attributes':['id','name',_0x353253('0x2'),_0x353253('0x4'),'fullname','online',_0x353253('0xd'),_0x353253('0x8'),_0x353253('0x6'),_0x353253('0x3'),'interface']},'log':_0x353253('0x11')});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceAgentReport.js b/server/services/ami/rpc/voiceAgentReport.js index b250d04..5834241 100644 --- a/server/services/ami/rpc/voiceAgentReport.js +++ b/server/services/ami/rpc/voiceAgentReport.js @@ -1 +1 @@ -const a1123_0x179f=['UpdateVoiceAgentReport','update','Request','create','../client','CreateVoiceAgentReport'];(function(_0xe79902,_0x179f57){const _0x3c7bab=function(_0x14f72f){while(--_0x14f72f){_0xe79902['push'](_0xe79902['shift']());}};_0x3c7bab(++_0x179f57);}(a1123_0x179f,0x1e6));const a1123_0x3c7b=function(_0xe79902,_0x179f57){_0xe79902=_0xe79902-0x0;let _0x3c7bab=a1123_0x179f[_0xe79902];return _0x3c7bab;};const _0x412e1e=a1123_0x3c7b;'use strict';const client=require(_0x412e1e('0x4'));exports[_0x412e1e('0x3')]=function(_0x14f72f){const _0x3cf85c=_0x412e1e;return client[_0x3cf85c('0x2')](_0x3cf85c('0x5'),{'body':_0x14f72f,'log':'CreateVoiceAgentReport'});},exports[_0x412e1e('0x1')]=function(_0x1f7040,_0x2eb637,_0x4acf12){const _0x17367a=_0x412e1e;return client[_0x17367a('0x2')](_0x17367a('0x0'),{'body':_0x1f7040,'options':{'where':{'uniqueid':_0x2eb637,'interface':_0x4acf12,'agentcomplete':!![]}},'log':'UpdateVoiceAgentReport'});}; \ No newline at end of file +const a1124_0x12d8=['UpdateVoiceAgentReport','update','create','../client','CreateVoiceAgentReport','Request'];(function(_0x7cda3c,_0x12d82d){const _0x425d62=function(_0x4df205){while(--_0x4df205){_0x7cda3c['push'](_0x7cda3c['shift']());}};_0x425d62(++_0x12d82d);}(a1124_0x12d8,0x12a));const a1124_0x425d=function(_0x7cda3c,_0x12d82d){_0x7cda3c=_0x7cda3c-0x0;let _0x425d62=a1124_0x12d8[_0x7cda3c];return _0x425d62;};const _0x5b06ea=a1124_0x425d;'use strict';const client=require(_0x5b06ea('0x5'));exports[_0x5b06ea('0x4')]=function(_0x4df205){const _0xb65e5=_0x5b06ea;return client[_0xb65e5('0x1')](_0xb65e5('0x0'),{'body':_0x4df205,'log':_0xb65e5('0x0')});},exports[_0x5b06ea('0x3')]=function(_0x19ab18,_0x73018b,_0x5dbd89){const _0x286693=_0x5b06ea;return client[_0x286693('0x1')]('UpdateVoiceAgentReport',{'body':_0x19ab18,'options':{'where':{'uniqueid':_0x73018b,'interface':_0x5dbd89,'agentcomplete':!![]}},'log':_0x286693('0x2')});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceCallReport.js b/server/services/ami/rpc/voiceCallReport.js index d598b03..c0c133d 100644 --- a/server/services/ami/rpc/voiceCallReport.js +++ b/server/services/ami/rpc/voiceCallReport.js @@ -1 +1 @@ -const a1124_0x4cb3=['outbound','callerid','Request','context','create','getVoiceCallReports','merge','type','YYYY-MM-DD\x20HH:mm:ss','endOf','lodash','DOCUMENTATION','duration','CreateVoiceCallReport','../client','format','day','billableseconds','moment','disposition','GetVoiceCallReport','startOf','GetVoiceCallReports','calleridnum'];(function(_0x517640,_0x4cb392){const _0x53415b=function(_0xcd7509){while(--_0xcd7509){_0x517640['push'](_0x517640['shift']());}};_0x53415b(++_0x4cb392);}(a1124_0x4cb3,0x6d));const a1124_0x5341=function(_0x517640,_0x4cb392){_0x517640=_0x517640-0x0;let _0x53415b=a1124_0x4cb3[_0x517640];return _0x53415b;};const _0x12b944=a1124_0x5341;'use strict';const moment=require(_0x12b944('0x5')),_=require(_0x12b944('0x15')),client=require(_0x12b944('0x1'));exports[_0x12b944('0xf')]=function(_0xcd7509){const _0x307ea4=_0x12b944;return client[_0x307ea4('0xd')](_0x307ea4('0x0'),{'body':_[_0x307ea4('0x11')](_0xcd7509,{'source':_0xcd7509[_0x307ea4('0xa')],'destinationcontext':_0xcd7509[_0x307ea4('0xe')],'callerid':_0xcd7509[_0x307ea4('0xc')],'amaflags':_0x307ea4('0x16')}),'log':_0x307ea4('0x0')});},exports[_0x12b944('0x10')]=function(){return function(){const _0x1405f8=a1124_0x5341;return client[_0x1405f8('0xd')](_0x1405f8('0x7'),{'options':{'where':{'type':[_0x1405f8('0xb')],'createdAt':{'$between':[moment()[_0x1405f8('0x8')](_0x1405f8('0x3'))[_0x1405f8('0x2')](_0x1405f8('0x13')),moment()[_0x1405f8('0x14')](_0x1405f8('0x3'))[_0x1405f8('0x2')](_0x1405f8('0x13'))]}},'attributes':[_0x1405f8('0x12'),_0x1405f8('0x6'),_0x1405f8('0x17'),_0x1405f8('0x4')]},'log':_0x1405f8('0x9')});};}; \ No newline at end of file +const a1125_0x48e5=['disposition','calleridnum','GetVoiceCallReports','../client','merge','billableseconds','create','duration','context','endOf','getVoiceCallReports','CreateVoiceCallReport','DOCUMENTATION','moment','Request','lodash','YYYY-MM-DD\x20HH:mm:ss','startOf','GetVoiceCallReport','day','format'];(function(_0x64debc,_0x48e50e){const _0x52e90c=function(_0x5010f0){while(--_0x5010f0){_0x64debc['push'](_0x64debc['shift']());}};_0x52e90c(++_0x48e50e);}(a1125_0x48e5,0x14a));const a1125_0x52e9=function(_0x64debc,_0x48e50e){_0x64debc=_0x64debc-0x0;let _0x52e90c=a1125_0x48e5[_0x64debc];return _0x52e90c;};const _0x4b5c25=a1125_0x52e9;'use strict';const moment=require(_0x4b5c25('0x13')),_=require(_0x4b5c25('0x0')),client=require(_0x4b5c25('0x9'));exports[_0x4b5c25('0xc')]=function(_0x5010f0){const _0x15bcad=_0x4b5c25;return client[_0x15bcad('0x14')](_0x15bcad('0x11'),{'body':_[_0x15bcad('0xa')](_0x5010f0,{'source':_0x5010f0[_0x15bcad('0x7')],'destinationcontext':_0x5010f0[_0x15bcad('0xe')],'callerid':_0x5010f0['callerid'],'amaflags':_0x15bcad('0x12')}),'log':_0x15bcad('0x11')});},exports[_0x4b5c25('0x10')]=function(){return function(){const _0x537555=a1125_0x52e9;return client[_0x537555('0x14')](_0x537555('0x3'),{'options':{'where':{'type':['outbound'],'createdAt':{'$between':[moment()[_0x537555('0x2')](_0x537555('0x4'))[_0x537555('0x5')](_0x537555('0x1')),moment()[_0x537555('0xf')](_0x537555('0x4'))[_0x537555('0x5')](_0x537555('0x1'))]}},'attributes':['type',_0x537555('0x6'),_0x537555('0xd'),_0x537555('0xb')]},'log':_0x537555('0x8')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceDialReport.js b/server/services/ami/rpc/voiceDialReport.js index 452a438..37acf5b 100644 --- a/server/services/ami/rpc/voiceDialReport.js +++ b/server/services/ami/rpc/voiceDialReport.js @@ -1 +1 @@ -const a1125_0x34cf=['CreateVoiceDialReport','create'];(function(_0x3e16ba,_0x34cf50){const _0x328914=function(_0x21a28b){while(--_0x21a28b){_0x3e16ba['push'](_0x3e16ba['shift']());}};_0x328914(++_0x34cf50);}(a1125_0x34cf,0x171));const a1125_0x3289=function(_0x3e16ba,_0x34cf50){_0x3e16ba=_0x3e16ba-0x0;let _0x328914=a1125_0x34cf[_0x3e16ba];return _0x328914;};const _0x1f9950=a1125_0x3289;'use strict';const client=require('../client');exports[_0x1f9950('0x0')]=function(_0x21a28b){const _0x4e987b=_0x1f9950;return client['Request'](_0x4e987b('0x1'),{'body':_0x21a28b,'log':_0x4e987b('0x1')});}; \ No newline at end of file +const a1126_0x3c4b=['../client','CreateVoiceDialReport'];(function(_0x3eba72,_0x3c4b7a){const _0x293a20=function(_0x2cedee){while(--_0x2cedee){_0x3eba72['push'](_0x3eba72['shift']());}};_0x293a20(++_0x3c4b7a);}(a1126_0x3c4b,0x1ac));const a1126_0x293a=function(_0x3eba72,_0x3c4b7a){_0x3eba72=_0x3eba72-0x0;let _0x293a20=a1126_0x3c4b[_0x3eba72];return _0x293a20;};const _0x3f7d19=a1126_0x293a;'use strict';const client=require(_0x3f7d19('0x0'));exports['create']=function(_0x2cedee){const _0x3b3d03=_0x3f7d19;return client['Request'](_0x3b3d03('0x1'),{'body':_0x2cedee,'log':_0x3b3d03('0x1')});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceExtension.js b/server/services/ami/rpc/voiceExtension.js index 58805ba..ca9999f 100644 --- a/server/services/ami/rpc/voiceExtension.js +++ b/server/services/ami/rpc/voiceExtension.js @@ -1 +1 @@ -const a1126_0x22bb=['GetVoiceExtension','Request','../client','exten','recordingFormat','getVoiceExtensions'];(function(_0x1c20fe,_0x22bb7a){const _0x384576=function(_0x3edc38){while(--_0x3edc38){_0x1c20fe['push'](_0x1c20fe['shift']());}};_0x384576(++_0x22bb7a);}(a1126_0x22bb,0x164));const a1126_0x3845=function(_0x1c20fe,_0x22bb7a){_0x1c20fe=_0x1c20fe-0x0;let _0x384576=a1126_0x22bb[_0x1c20fe];return _0x384576;};const _0x2605a2=a1126_0x3845;'use strict';const client=require(_0x2605a2('0x0'));exports[_0x2605a2('0x3')]=function(){return function(){const _0x16cb87=a1126_0x3845;return client[_0x16cb87('0x5')](_0x16cb87('0x4'),{'options':{'raw':!![],'attributes':['id',_0x16cb87('0x1'),_0x16cb87('0x2')],'where':{'VoiceExtensionId':null}},'log':_0x16cb87('0x3')});};}; \ No newline at end of file +const a1127_0x1994=['getVoiceExtensions','GetVoiceExtension','Request','../client','recordingFormat'];(function(_0x32efc6,_0x199467){const _0x9a26b5=function(_0x16f33d){while(--_0x16f33d){_0x32efc6['push'](_0x32efc6['shift']());}};_0x9a26b5(++_0x199467);}(a1127_0x1994,0x1ac));const a1127_0x9a26=function(_0x32efc6,_0x199467){_0x32efc6=_0x32efc6-0x0;let _0x9a26b5=a1127_0x1994[_0x32efc6];return _0x9a26b5;};const _0x19166c=a1127_0x9a26;'use strict';const client=require(_0x19166c('0x0'));exports[_0x19166c('0x2')]=function(){return function(){const _0x39fd76=a1127_0x9a26;return client[_0x39fd76('0x4')](_0x39fd76('0x3'),{'options':{'raw':!![],'attributes':['id','exten',_0x39fd76('0x1')],'where':{'VoiceExtensionId':null}},'log':'getVoiceExtensions'});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueue.js b/server/services/ami/rpc/voiceQueue.js index a98a3bb..8d1d6fc 100644 --- a/server/services/ami/rpc/voiceQueue.js +++ b/server/services/ami/rpc/voiceQueue.js @@ -1 +1 @@ -const a1127_0x5890=['monitor_format','Trunk','dialAgentRejectRetryFrequency','dialOrderByScheduledAt','dialAMDInitialSilence','dialMachineRetryFrequency','dialAMDTotalAnalysisTime','Request','dialActive','dialQueueProject2','dialCongestionRetryFrequency','dialMachineMaxRetry','dialPredictiveIntervalMinThreshold','dialPredictiveInterval','timeout','acw','dialAMDSilenceThreshold','callerid','Interval','dialDropRetryFrequency','mandatoryDisposition','dialAMDMinWordLength','TrunkBackup','type','dialCheckDuplicateType','getVoiceQueues','dialQueueOptions','dialMethod','dialNoSuchNumberMaxRetry','dialRecallInQueue','GetVoiceQueue','active','dialRecallMeTimeout','dialAbandonedRetryFrequency','dialGlobalInterval','mandatoryDispositionPause','dialPrefix','dialGlobalMaxRetry','dialAbandonedMaxRetry','dialPowerLevel','dialLimitChannel','Pause','dialNoSuchNumberRetryFrequency','name','dialNoAnswerMaxRetry','dialRandomLastDigitCallerIdNumber','dialAgiAfterHangupAgent','dialAMDAfterGreetingSilence','dialPredictiveIntervalMaxThreshold','acwTimeout','../client','dialAMDMaximumNumberOfWords','dialOriginateCallerIdNumber','dialPredictiveOptimization','dialTimezone'];(function(_0x21c23e,_0x589043){const _0x4710c5=function(_0x3aa078){while(--_0x3aa078){_0x21c23e['push'](_0x21c23e['shift']());}};_0x4710c5(++_0x589043);}(a1127_0x5890,0x18e));const a1127_0x4710=function(_0x21c23e,_0x589043){_0x21c23e=_0x21c23e-0x0;let _0x4710c5=a1127_0x5890[_0x21c23e];return _0x4710c5;};const _0x244d2c=a1127_0x4710;'use strict';const client=require(_0x244d2c('0x25'));exports[_0x244d2c('0xc')]=function(){return function(){const _0x50b681=a1127_0x4710;return client[_0x50b681('0x31')](_0x50b681('0x11'),{'options':{'raw':![],'attributes':['id',_0x50b681('0x1e'),_0x50b681('0x2'),_0x50b681('0x24'),'autopause',_0x50b681('0x2a'),_0x50b681('0xa'),_0x50b681('0x32'),_0x50b681('0xe'),_0x50b681('0x1b'),'dialLimitQueue',_0x50b681('0x1a'),_0x50b681('0x28'),'dialPredictiveOptimizationPercentage',_0x50b681('0x0'),'dialOriginateCallerIdName',_0x50b681('0x27'),'dialOriginateTimeout',_0x50b681('0xd'),'dialQueueTimeout','dialQueueProject','dialCongestionMaxRetry',_0x50b681('0x34'),'dialBusyMaxRetry','dialBusyRetryFrequency',_0x50b681('0x1f'),'dialNoAnswerRetryFrequency',_0x50b681('0x18'),_0x50b681('0x29'),_0x50b681('0x15'),_0x50b681('0x17'),_0x50b681('0xb'),'dialAMDActive',_0x50b681('0x2e'),'dialAMDGreeting',_0x50b681('0x22'),_0x50b681('0x30'),_0x50b681('0x8'),'dialAMDBetweenWordsSilence',_0x50b681('0x26'),_0x50b681('0x3'),'dialAMDMaximumWordLength',_0x50b681('0x1'),_0x50b681('0x13'),_0x50b681('0x10'),_0x50b681('0x2d'),_0x50b681('0x21'),'dialAgiAfterHangupClient',_0x50b681('0x33'),'monitor_format','strategy',_0x50b681('0x20'),'dialCutDigit',_0x50b681('0xf'),_0x50b681('0x1d'),'dialDropMaxRetry',_0x50b681('0x6'),_0x50b681('0x19'),_0x50b681('0x14'),_0x50b681('0x35'),_0x50b681('0x2f'),'dialAgentRejectMaxRetry',_0x50b681('0x2c'),_0x50b681('0x7'),_0x50b681('0x23'),_0x50b681('0x36')],'include':[{'model':_0x50b681('0x2b'),'as':'Trunk','attributes':['id',_0x50b681('0x1e'),_0x50b681('0x4'),_0x50b681('0x12')]},{'model':_0x50b681('0x1c'),'as':_0x50b681('0x16'),'attributes':['id',_0x50b681('0x1e')]},{'model':'Trunk','as':_0x50b681('0x9'),'attributes':['id',_0x50b681('0x1e'),_0x50b681('0x4'),_0x50b681('0x12')]},{'model':_0x50b681('0x5'),'as':_0x50b681('0x5'),'attributes':['id',_0x50b681('0x1e')],'include':[{'model':_0x50b681('0x5'),'as':'Intervals','attributes':['id',_0x50b681('0x1e'),'interval']}]}]},'log':_0x50b681('0xc')});};}; \ No newline at end of file +const a1128_0x51dc=['acwTimeout','timeout','dialMethod','dialAgentRejectMaxRetry','name','dialNoSuchNumberRetryFrequency','dialAMDMinWordLength','autopause','Interval','dialAgentRejectRetryFrequency','dialCongestionRetryFrequency','dialNoAnswerMaxRetry','dialPredictiveIntervalMaxThreshold','dialOriginateCallerIdNumber','dialMachineMaxRetry','dialPredictiveOptimizationPercentage','../client','dialAbandonedMaxRetry','interval','dialDropRetryFrequency','dialOriginateCallerIdName','dialAMDInitialSilence','dialDropMaxRetry','dialQueueOptions','getVoiceQueues','dialAgiAfterHangupClient','monitor_format','dialAgiAfterHangupAgent','dialCongestionMaxRetry','dialCutDigit','dialActive','strategy','dialAMDGreeting','callerid','dialAMDMaximumNumberOfWords','Intervals','dialBusyMaxRetry','acw','mandatoryDisposition','dialPowerLevel','dialAMDAfterGreetingSilence','GetVoiceQueue','dialRandomLastDigitCallerIdNumber','dialAMDBetweenWordsSilence','dialQueueProject2','dialOriginateTimeout','dialNoSuchNumberMaxRetry','dialQueueProject','Trunk','dialRecallMeTimeout','dialPredictiveOptimization','Request','mandatoryDispositionPause','dialTimezone','dialOrderByScheduledAt','type','dialLimitQueue','active','dialCheckDuplicateType','dialLimitChannel'];(function(_0x1938d4,_0x51dc3a){const _0x2f2492=function(_0x273bdc){while(--_0x273bdc){_0x1938d4['push'](_0x1938d4['shift']());}};_0x2f2492(++_0x51dc3a);}(a1128_0x51dc,0x1e7));const a1128_0x2f24=function(_0x1938d4,_0x51dc3a){_0x1938d4=_0x1938d4-0x0;let _0x2f2492=a1128_0x51dc[_0x1938d4];return _0x2f2492;};const _0x36909f=a1128_0x2f24;'use strict';const client=require(_0x36909f('0x9'));exports[_0x36909f('0x11')]=function(){return function(){const _0x10f4ac=a1128_0x2f24;return client[_0x10f4ac('0x2c')](_0x10f4ac('0x22'),{'options':{'raw':![],'attributes':['id','name',_0x10f4ac('0x1e'),_0x10f4ac('0x35'),_0x10f4ac('0x0'),_0x10f4ac('0x13'),_0x10f4ac('0x30'),_0x10f4ac('0x17'),_0x10f4ac('0x37'),_0x10f4ac('0x34'),_0x10f4ac('0x31'),_0x10f4ac('0x20'),_0x10f4ac('0x2b'),_0x10f4ac('0x8'),'dialPredictiveInterval',_0x10f4ac('0xd'),_0x10f4ac('0x6'),_0x10f4ac('0x26'),_0x10f4ac('0x10'),'dialQueueTimeout',_0x10f4ac('0x28'),_0x10f4ac('0x15'),_0x10f4ac('0x3'),_0x10f4ac('0x1d'),'dialBusyRetryFrequency',_0x10f4ac('0x4'),'dialNoAnswerRetryFrequency','dialGlobalMaxRetry',_0x10f4ac('0x2e'),'dialGlobalInterval','dialPrefix',_0x10f4ac('0x33'),'dialAMDActive',_0x10f4ac('0xe'),_0x10f4ac('0x19'),_0x10f4ac('0x21'),'dialAMDTotalAnalysisTime',_0x10f4ac('0x3b'),_0x10f4ac('0x24'),_0x10f4ac('0x1b'),'dialAMDSilenceThreshold','dialAMDMaximumWordLength',_0x10f4ac('0x36'),_0x10f4ac('0x2a'),'dialRecallInQueue',_0x10f4ac('0x2f'),_0x10f4ac('0x14'),_0x10f4ac('0x12'),_0x10f4ac('0x25'),_0x10f4ac('0x13'),_0x10f4ac('0x18'),_0x10f4ac('0x23'),_0x10f4ac('0x16'),_0x10f4ac('0x27'),_0x10f4ac('0x3a'),_0x10f4ac('0xf'),_0x10f4ac('0xc'),_0x10f4ac('0xa'),'dialAbandonedRetryFrequency',_0x10f4ac('0x7'),'dialMachineRetryFrequency',_0x10f4ac('0x38'),_0x10f4ac('0x2'),_0x10f4ac('0x1f'),_0x10f4ac('0x5'),'dialPredictiveIntervalMinThreshold'],'include':[{'model':_0x10f4ac('0x29'),'as':_0x10f4ac('0x29'),'attributes':['id',_0x10f4ac('0x39'),_0x10f4ac('0x1a'),_0x10f4ac('0x32')]},{'model':'Pause','as':_0x10f4ac('0x2d'),'attributes':['id',_0x10f4ac('0x39')]},{'model':_0x10f4ac('0x29'),'as':'TrunkBackup','attributes':['id','name',_0x10f4ac('0x1a'),_0x10f4ac('0x32')]},{'model':_0x10f4ac('0x1'),'as':_0x10f4ac('0x1'),'attributes':['id',_0x10f4ac('0x39')],'include':[{'model':_0x10f4ac('0x1'),'as':_0x10f4ac('0x1c'),'attributes':['id',_0x10f4ac('0x39'),_0x10f4ac('0xb')]}]}]},'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 7b71b54..4d64035 100644 --- a/server/services/ami/rpc/voiceQueueReport.js +++ b/server/services/ami/rpc/voiceQueueReport.js @@ -1 +1 @@ -const a1128_0xeff1=['GetVoiceQueueReports','YYYY-MM-DD\x20HH:mm:ss','queuecallercomplete','queuecallerleaveAt','moment','format','queuecallerabandon','GetVoiceQueueReport','startOf','queuecallerabandonAt','../client','Request','day','queuecallerjoinAt','queue','endOf'];(function(_0xbc0cc0,_0xeff13a){const _0x28232c=function(_0x4fefe7){while(--_0x4fefe7){_0xbc0cc0['push'](_0xbc0cc0['shift']());}};_0x28232c(++_0xeff13a);}(a1128_0xeff1,0x1a1));const a1128_0x2823=function(_0xbc0cc0,_0xeff13a){_0xbc0cc0=_0xbc0cc0-0x0;let _0x28232c=a1128_0xeff1[_0xbc0cc0];return _0x28232c;};const _0x494ac3=a1128_0x2823;'use strict';const moment=require(_0x494ac3('0x3')),client=require(_0x494ac3('0x9'));exports['create']=function(_0x4fefe7){return client['Request']('CreateVoiceQueueReport',{'body':_0x4fefe7,'log':'CreateVoiceQueueReport'});},exports['getVoiceQueueReports']=function(){return function(){const _0xd7e9bf=a1128_0x2823;return client[_0xd7e9bf('0xa')](_0xd7e9bf('0x6'),{'options':{'where':{'createdAt':{'$between':[moment()[_0xd7e9bf('0x7')]('day')[_0xd7e9bf('0x4')](_0xd7e9bf('0x0')),moment()[_0xd7e9bf('0xe')](_0xd7e9bf('0xb'))['format'](_0xd7e9bf('0x0'))]}},'attributes':['uniqueid',_0xd7e9bf('0xd'),_0xd7e9bf('0xc'),_0xd7e9bf('0x2'),_0xd7e9bf('0x1'),'queuecallercompleteAt','queuecallerexit','queuecallerexitAt',_0xd7e9bf('0x5'),_0xd7e9bf('0x8')]},'log':_0xd7e9bf('0xf')});};}; \ No newline at end of file +const a1129_0x3da4=['uniqueid','queuecallerleaveAt','create','moment','day','getVoiceQueueReports','endOf','queuecallerexitAt','queuecallerjoinAt','CreateVoiceQueueReport','format','queuecallerabandon','YYYY-MM-DD\x20HH:mm:ss','queuecallerabandonAt','Request','queue'];(function(_0x131c96,_0x3da402){const _0x58b169=function(_0x53cec0){while(--_0x53cec0){_0x131c96['push'](_0x131c96['shift']());}};_0x58b169(++_0x3da402);}(a1129_0x3da4,0x7d));const a1129_0x58b1=function(_0x131c96,_0x3da402){_0x131c96=_0x131c96-0x0;let _0x58b169=a1129_0x3da4[_0x131c96];return _0x58b169;};const _0x3ff959=a1129_0x58b1;'use strict';const moment=require(_0x3ff959('0x6')),client=require('../client');exports[_0x3ff959('0x5')]=function(_0x53cec0){const _0xbe347a=_0x3ff959;return client[_0xbe347a('0x1')](_0xbe347a('0xc'),{'body':_0x53cec0,'log':_0xbe347a('0xc')});},exports[_0x3ff959('0x8')]=function(){return function(){const _0x3e2a1e=a1129_0x58b1;return client[_0x3e2a1e('0x1')]('GetVoiceQueueReport',{'options':{'where':{'createdAt':{'$between':[moment()['startOf']('day')['format'](_0x3e2a1e('0xf')),moment()[_0x3e2a1e('0x9')](_0x3e2a1e('0x7'))[_0x3e2a1e('0xd')]('YYYY-MM-DD\x20HH:mm:ss')]}},'attributes':[_0x3e2a1e('0x3'),_0x3e2a1e('0x2'),_0x3e2a1e('0xb'),_0x3e2a1e('0x4'),'queuecallercomplete','queuecallercompleteAt','queuecallerexit',_0x3e2a1e('0xa'),_0x3e2a1e('0xe'),_0x3e2a1e('0x0')]},'log':'GetVoiceQueueReports'});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceQueueRt.js b/server/services/ami/rpc/voiceQueueRt.js index f35021b..77a9c28 100644 --- a/server/services/ami/rpc/voiceQueueRt.js +++ b/server/services/ami/rpc/voiceQueueRt.js @@ -1 +1 @@ -const a1129_0x1c76=['getVoiceQueueRtPauses','../client','GetVoiceQueueRtPauses','Request'];(function(_0x4874e4,_0x1c7604){const _0x529ee5=function(_0x5cc41a){while(--_0x5cc41a){_0x4874e4['push'](_0x4874e4['shift']());}};_0x529ee5(++_0x1c7604);}(a1129_0x1c76,0x16b));const a1129_0x529e=function(_0x4874e4,_0x1c7604){_0x4874e4=_0x4874e4-0x0;let _0x529ee5=a1129_0x1c76[_0x4874e4];return _0x529ee5;};const _0x1139b5=a1129_0x529e;'use strict';const client=require(_0x1139b5('0x2'));exports[_0x1139b5('0x1')]=function(_0x5cc41a){return function(){const _0x3df7bd=a1129_0x529e;return client[_0x3df7bd('0x0')](_0x3df7bd('0x3'),{'options':{'where':{'VoiceQueueId':_0x5cc41a,'paused':!![]},'raw':!![]},'log':'getVoiceQueueRtPauses'});};}; \ No newline at end of file +const a1130_0x422b=['../client','getVoiceQueueRtPauses','Request','GetVoiceQueueRtPauses'];(function(_0xcc1014,_0x422b36){const _0x927868=function(_0x5269af){while(--_0x5269af){_0xcc1014['push'](_0xcc1014['shift']());}};_0x927868(++_0x422b36);}(a1130_0x422b,0xcb));const a1130_0x9278=function(_0xcc1014,_0x422b36){_0xcc1014=_0xcc1014-0x0;let _0x927868=a1130_0x422b[_0xcc1014];return _0x927868;};const _0x34a693=a1130_0x9278;'use strict';const client=require(_0x34a693('0x1'));exports[_0x34a693('0x2')]=function(_0x5269af){return function(){const _0x61d30=a1130_0x9278;return client[_0x61d30('0x3')](_0x61d30('0x0'),{'options':{'where':{'VoiceQueueId':_0x5269af,'paused':!![]},'raw':!![]},'log':_0x61d30('0x2')});};}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceRecording.js b/server/services/ami/rpc/voiceRecording.js index 1347b52..8e21a7c 100644 --- a/server/services/ami/rpc/voiceRecording.js +++ b/server/services/ami/rpc/voiceRecording.js @@ -1 +1 @@ -const a1130_0x5a35=['create','Request','lodash','merge','monitorFilename','CreateVoiceRecording'];(function(_0x43eedc,_0x5a356f){const _0xb72311=function(_0x42fd38){while(--_0x42fd38){_0x43eedc['push'](_0x43eedc['shift']());}};_0xb72311(++_0x5a356f);}(a1130_0x5a35,0x12f));const a1130_0xb723=function(_0x43eedc,_0x5a356f){_0x43eedc=_0x43eedc-0x0;let _0xb72311=a1130_0x5a35[_0x43eedc];return _0xb72311;};const _0xc42697=a1130_0xb723;'use strict';const _=require(_0xc42697('0x5')),client=require('../client');exports[_0xc42697('0x3')]=function(_0x42fd38){const _0x9ff672=_0xc42697;return client[_0x9ff672('0x4')]('CreateVoiceRecording',{'body':_[_0x9ff672('0x0')](_0x42fd38,{'value':_0x42fd38[_0x9ff672('0x1')]}),'log':_0x9ff672('0x2')});}; \ No newline at end of file +const a1131_0x4546=['../client','monitorFilename','CreateVoiceRecording','create','merge'];(function(_0x50d925,_0x454643){const _0x31cc07=function(_0x1f8d8d){while(--_0x1f8d8d){_0x50d925['push'](_0x50d925['shift']());}};_0x31cc07(++_0x454643);}(a1131_0x4546,0xe6));const a1131_0x31cc=function(_0x50d925,_0x454643){_0x50d925=_0x50d925-0x0;let _0x31cc07=a1131_0x4546[_0x50d925];return _0x31cc07;};const _0x22f736=a1131_0x31cc;'use strict';const _=require('lodash'),client=require(_0x22f736('0x0'));exports[_0x22f736('0x3')]=function(_0x1f8d8d){const _0x5036a5=_0x22f736;return client['Request'](_0x5036a5('0x2'),{'body':_[_0x5036a5('0x4')](_0x1f8d8d,{'value':_0x1f8d8d[_0x5036a5('0x1')]}),'log':'CreateVoiceRecording'});}; \ No newline at end of file diff --git a/server/services/ami/rpc/voiceTransferReport.js b/server/services/ami/rpc/voiceTransferReport.js index 1373f07..0a280f3 100644 --- a/server/services/ami/rpc/voiceTransferReport.js +++ b/server/services/ami/rpc/voiceTransferReport.js @@ -1 +1 @@ -const a1131_0x225c=['transfereechannel','transfertargetaccountcode','transfertargetlinkedid','secondtransfererconnectedlinename','transfererchannel','blind','origtransfererlinkedid','origtransfereraccountcode','origtransferercalleridname','transfereelinkedid','extension','attendedTransfer','transfereeconnectedlinename','result','transfertargetexten','blindTransfer','origtransfererchannel','transfereecalleridnum','Request','CreateVoiceTransferReport','transfererlinkedid','transfereeaccountcode','secondtransfererexten','attended','transfererconnectedlinenum','transferercalleridnum','origtransfererexten','origtransferercalleridnum','transfereeexten','secondtransferercontext','transfereecontext','transfereeconnectedlinenum','transfertargetconnectedlinename','transferercalleridname','transfererconnectedlinename','transferercontext','isexternal'];(function(_0x3a2c4b,_0x225c6b){const _0x637891=function(_0x534fe9){while(--_0x534fe9){_0x3a2c4b['push'](_0x3a2c4b['shift']());}};_0x637891(++_0x225c6b);}(a1131_0x225c,0xd3));const a1131_0x6378=function(_0x3a2c4b,_0x225c6b){_0x3a2c4b=_0x3a2c4b-0x0;let _0x637891=a1131_0x225c[_0x3a2c4b];return _0x637891;};const _0x3c71fd=a1131_0x6378;'use strict';const client=require('../client');exports[_0x3c71fd('0x1a')]=function(_0x534fe9){const _0x4c5d36=_0x3c71fd;return client[_0x4c5d36('0x1d')](_0x4c5d36('0x1e'),{'body':{'result':_0x534fe9[_0x4c5d36('0x18')],'transfererchannel':_0x534fe9[_0x4c5d36('0xf')],'transferercalleridnum':_0x534fe9[_0x4c5d36('0x24')],'transferercalleridname':_0x534fe9[_0x4c5d36('0x7')],'transfererconnectedlinenum':_0x534fe9[_0x4c5d36('0x23')],'transfererconnectedlinename':_0x534fe9[_0x4c5d36('0x8')],'transfereraccountcode':_0x534fe9['transfereraccountcode'],'transferercontext':_0x534fe9[_0x4c5d36('0x9')],'transfererexten':_0x534fe9['transfererexten'],'transfererlinkedid':_0x534fe9[_0x4c5d36('0x1f')],'transfereechannel':_0x534fe9[_0x4c5d36('0xb')],'transfereecalleridnum':_0x534fe9[_0x4c5d36('0x1c')],'transfereecalleridname':_0x534fe9['transfereecalleridname'],'transfereeconnectedlinenum':_0x534fe9[_0x4c5d36('0x5')],'transfereeconnectedlinename':_0x534fe9[_0x4c5d36('0x17')],'transfereeaccountcode':_0x534fe9[_0x4c5d36('0x20')],'transfereecontext':_0x534fe9[_0x4c5d36('0x4')],'transfereeexten':_0x534fe9[_0x4c5d36('0x2')],'transfereelinkedid':_0x534fe9[_0x4c5d36('0x14')],'isexternal':_0x534fe9[_0x4c5d36('0xa')],'context':_0x534fe9['context'],'extension':_0x534fe9[_0x4c5d36('0x15')],'type':_0x4c5d36('0x10')},'log':_0x4c5d36('0x1e')});},exports[_0x3c71fd('0x16')]=function(_0x1a12c0){const _0x54e26d=_0x3c71fd;return client[_0x54e26d('0x1d')](_0x54e26d('0x1e'),{'body':{'result':_0x1a12c0['result'],'transfererchannel':_0x1a12c0[_0x54e26d('0x1b')],'transferercalleridnum':_0x1a12c0[_0x54e26d('0x1')],'transferercalleridname':_0x1a12c0[_0x54e26d('0x13')],'transfererconnectedlinenum':_0x1a12c0['secondtransfererconnectedlinenum'],'transfererconnectedlinename':_0x1a12c0[_0x54e26d('0xe')],'transfereraccountcode':_0x1a12c0[_0x54e26d('0x12')],'transferercontext':_0x1a12c0[_0x54e26d('0x3')],'transfererexten':_0x1a12c0[_0x54e26d('0x21')],'transfererlinkedid':_0x1a12c0[_0x54e26d('0x11')],'transfereechannel':_0x1a12c0['transfertargetchannel'],'transfereecalleridnum':_0x1a12c0['transfertargetcalleridnum'],'transfereecalleridname':_0x1a12c0['transfertargetcalleridname'],'transfereeconnectedlinenum':_0x1a12c0['transfertargetconnectedlinenum'],'transfereeconnectedlinename':_0x1a12c0[_0x54e26d('0x6')],'transfereeaccountcode':_0x1a12c0[_0x54e26d('0xc')],'transfereecontext':_0x1a12c0['transfertargetcontext'],'transfereeexten':_0x1a12c0[_0x54e26d('0x19')],'transfereelinkedid':_0x1a12c0[_0x54e26d('0xd')],'isexternal':_0x1a12c0[_0x54e26d('0xa')],'context':_0x1a12c0['origtransferercontext'],'extension':_0x1a12c0[_0x54e26d('0x0')],'type':_0x54e26d('0x22')},'log':_0x54e26d('0x1e')});}; \ No newline at end of file +const a1132_0x5393=['transfererexten','transfererconnectedlinenum','transfertargetconnectedlinenum','transfereeaccountcode','transfereeconnectedlinename','CreateVoiceTransferReport','transfereeexten','extension','transfertargetaccountcode','../client','transfertargetconnectedlinename','blindTransfer','origtransfererlinkedid','transfererlinkedid','context','secondtransfererconnectedlinenum','origtransfererexten','transfereecalleridname','transfertargetchannel','blind','secondtransfererconnectedlinename','transfereeconnectedlinenum','transfertargetcontext','transfereecalleridnum','transfertargetexten','secondtransferercontext','transfertargetcalleridname','transfererchannel','transferercontext','transfereraccountcode','origtransfereraccountcode','transferercalleridnum','Request','isexternal','transfererconnectedlinename','transfertargetlinkedid','result','transfertargetcalleridnum','transfers','origtransferercalleridnum','transfereecontext','attendedTransfer'];(function(_0x2e6f79,_0x5393d3){const _0x1340ce=function(_0x59d6f6){while(--_0x59d6f6){_0x2e6f79['push'](_0x2e6f79['shift']());}};_0x1340ce(++_0x5393d3);}(a1132_0x5393,0x1e6));const a1132_0x1340=function(_0x2e6f79,_0x5393d3){_0x2e6f79=_0x2e6f79-0x0;let _0x1340ce=a1132_0x5393[_0x2e6f79];return _0x1340ce;};const _0x2cca18=a1132_0x1340;'use strict';const client=require(_0x2cca18('0x1b'));exports[_0x2cca18('0xe')]={},exports[_0x2cca18('0x1d')]=function(_0x59d6f6){const _0x22fe69=_0x2cca18;return client[_0x22fe69('0x8')]('CreateVoiceTransferReport',{'body':{'result':_0x59d6f6[_0x22fe69('0xc')],'transfererchannel':_0x59d6f6[_0x22fe69('0x3')],'transferercalleridnum':_0x59d6f6[_0x22fe69('0x7')],'transferercalleridname':_0x59d6f6['transferercalleridname'],'transfererconnectedlinenum':_0x59d6f6[_0x22fe69('0x13')],'transfererconnectedlinename':_0x59d6f6[_0x22fe69('0xa')],'transfereraccountcode':_0x59d6f6[_0x22fe69('0x5')],'transferercontext':_0x59d6f6[_0x22fe69('0x4')],'transfererexten':_0x59d6f6[_0x22fe69('0x12')],'transfererlinkedid':_0x59d6f6[_0x22fe69('0x1f')],'transfereechannel':_0x59d6f6['transfereechannel'],'transfereecalleridnum':_0x59d6f6[_0x22fe69('0x29')],'transfereecalleridname':_0x59d6f6[_0x22fe69('0x23')],'transfereeconnectedlinenum':_0x59d6f6[_0x22fe69('0x27')],'transfereeconnectedlinename':_0x59d6f6[_0x22fe69('0x16')],'transfereeaccountcode':_0x59d6f6[_0x22fe69('0x15')],'transfereecontext':_0x59d6f6[_0x22fe69('0x10')],'transfereeexten':_0x59d6f6[_0x22fe69('0x18')],'transfereelinkedid':_0x59d6f6['transfereelinkedid'],'isexternal':_0x59d6f6['isexternal'],'context':_0x59d6f6[_0x22fe69('0x20')],'extension':_0x59d6f6[_0x22fe69('0x19')],'type':_0x22fe69('0x25')},'log':_0x22fe69('0x17')});},exports[_0x2cca18('0x11')]=function(_0x244d53){const _0x24af37=_0x2cca18;return client['Request'](_0x24af37('0x17'),{'body':{'result':_0x244d53[_0x24af37('0xc')],'transfererchannel':_0x244d53['origtransfererchannel'],'transferercalleridnum':_0x244d53[_0x24af37('0xf')],'transferercalleridname':_0x244d53['origtransferercalleridname'],'transfererconnectedlinenum':_0x244d53[_0x24af37('0x21')],'transfererconnectedlinename':_0x244d53[_0x24af37('0x26')],'transfereraccountcode':_0x244d53[_0x24af37('0x6')],'transferercontext':_0x244d53[_0x24af37('0x1')],'transfererexten':_0x244d53['secondtransfererexten'],'transfererlinkedid':_0x244d53[_0x24af37('0x1e')],'transfereechannel':_0x244d53[_0x24af37('0x24')],'transfereecalleridnum':_0x244d53[_0x24af37('0xd')],'transfereecalleridname':_0x244d53[_0x24af37('0x2')],'transfereeconnectedlinenum':_0x244d53[_0x24af37('0x14')],'transfereeconnectedlinename':_0x244d53[_0x24af37('0x1c')],'transfereeaccountcode':_0x244d53[_0x24af37('0x1a')],'transfereecontext':_0x244d53[_0x24af37('0x28')],'transfereeexten':_0x244d53[_0x24af37('0x0')],'transfereelinkedid':_0x244d53[_0x24af37('0xb')],'isexternal':_0x244d53[_0x24af37('0x9')],'context':_0x244d53['origtransferercontext'],'extension':_0x244d53[_0x24af37('0x22')],'type':'attended'},'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 89ca5b3..5d50820 100644 --- a/server/services/ami/server/index.js +++ b/server/services/ami/server/index.js @@ -1 +1 @@ -const a1132_0x41b4=['abandoned','ai(mixmonitorid)','/var/spool/asterisk/monitor/','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','outboundBlacklistCallsDay','voicequeuechannel','outboundChannels','Command','predictiveIntervalPauses','values','context','RPC\x20listening\x20on\x20port:','emit','uniqueid','isConnected','SIP','StopMixMonitor\x20Success','sumBillable','message','then','listen','startPredictive','predictiveIntervalMultiplicativeFactor','mixmonitorid','log','outboundBusyCallsDay','predictiveIntervalHitRate','sumDuration','outbound','dialActive','wav','action','pause','predictiveIntervalErlangCallsDroppedCalls','custom:','outboundNoAnswerCallsDay','QueuePause','telephones','validate','Channel\x20doesn\x27t\x20exist','updateStatusRealtime','loggedIn','push','outboundCongestionCallsDay','stop','available','asterisk','erlangBusyFactor','predictiveIntervalAvgTalktime','pTalking','rec','waiting','%s/%s','predictiveIntervalDroppedCallsCallersExit','voicequeuechannelhangup','content','lodash','dialMethod','Interval','channels','status','find','Action','predictiveIntervalErlangCalls','predictiveIntervalAvailable','Redirect','monitors','erlangCalls','queueChannels','../../../config/environment','map','undefined','Event\x20name\x20mandatory','module','format','answered','run','catch','resolve','outboundUnknownCallsDay','timers','%s.%s','127.0.0.1','trunks','callerid','Reload','voiceQueues','erlangAbandonmentRate','erlangCallToSecond','outboundDropCallsDayCallersExit','outboundAnswerCallsDay','../properties','keys','util','dialOriginateCallerIdName','outboundReCallsDay','predictiveIntervalDroppedCallsTimeout','Trunk','faxAccounts','MixMonitor','toLowerCase','campaigns','command','pick','name','active','outboundNoSuchCallsDay','moment','startProgressive','unmanaged','destinationchannel','outboundDropCallsDayTimeout','outboundRejectCallsDay','timer','length','outboundDropCallsDayACS','server','voicequeuechannelredirect','send','checkAfterSend','agents','join','predictiveIntervalTotalCalls','strategy','ami\x20disconnected','outboundAnswerAgiCallsDay','../ami','username','error','channel','talking','StopMixMonitor','event','voicechannel','dialPrefix','http','dialOriginateCallerIdNumber','Hangup','predictiveIntervalAvgHoldtime','exten'];(function(_0x207a05,_0x41b43c){const _0x43d785=function(_0x2e0129){while(--_0x2e0129){_0x207a05['push'](_0x207a05['shift']());}};_0x43d785(++_0x41b43c);}(a1132_0x41b4,0x173));const a1132_0x43d7=function(_0x207a05,_0x41b43c){_0x207a05=_0x207a05-0x0;let _0x43d785=a1132_0x41b4[_0x207a05];return _0x43d785;};const _0x5efa2e=a1132_0x43d7;'use strict';const _=require(_0x5efa2e('0x69')),util=require(_0x5efa2e('0x2')),jayson=require('jayson/promise'),schema=require(_0x5efa2e('0x57')),moment=require(_0x5efa2e('0x10')),config=require(_0x5efa2e('0x76')),properties=require(_0x5efa2e('0x0')),ami=require(_0x5efa2e('0x23'));exports[_0x5efa2e('0x45')]=function(_0x2e0129,_0x16f55c,_0x3015d5){return new Promise(function(_0x56082f,_0x250be4){const _0xdfb9e7=a1132_0x43d7,_0x35e9a0={'QueuePause':function(_0x12463e){return new Promise(function(_0x1c2768){const _0x3ccbe7=a1132_0x43d7,_0x5dd81a=util[_0x3ccbe7('0x7b')](_0x3ccbe7('0x65'),_0x3ccbe7('0x40'),_0x12463e[_0x3ccbe7('0xd')]);_0x2e0129[_0x3ccbe7('0x81')]&&_0x2e0129['timers'][_0x5dd81a]&&_0x2e0129['timers'][_0x5dd81a][_0x3ccbe7('0x16')]&&_0x2e0129[_0x3ccbe7('0x81')][_0x5dd81a]['updateAcw'](),_0x2e0129[_0x3ccbe7('0x1d')][_0x5dd81a]&&_0x2e0129[_0x3ccbe7('0x1d')][_0x5dd81a][_0x3ccbe7('0x59')]({'statePause':_0x12463e[_0x3ccbe7('0x51')]?!![]:![]}),_0x1c2768({'code':0xc8,'message':_0x3ccbe7('0x55')});});},'Reload':function(_0x428a82){const _0xf7ce2a=this;return new Promise(function(_0x2d17bc,_0x33c588){const _0x769f25=a1132_0x43d7;if(ami[_0x769f25('0x3f')]()==![])return _0x33c588(_0xf7ce2a[_0x769f25('0x25')](0x1f4,[config[_0x769f25('0x5f')]['ip'],config[_0x769f25('0x5f')][_0x769f25('0x24')],_0x769f25('0x21')]['join']('\x20')));return _0x428a82=_[_0x769f25('0xc')](_0x428a82,_[_0x769f25('0x1')](properties[_0x769f25('0x7a')])),_0x428a82[_0x769f25('0x50')]=_0x769f25('0x86'),ami[_0x769f25('0x6f')](_0x428a82)[_0x769f25('0x44')](function(_0x461468){const _0x23ca3e=_0x769f25;_0x2d17bc({'code':0xc8,'message':_0x461468[_0x23ca3e('0x43')]});})[_0x769f25('0x7e')](function(_0x354df0){const _0x45ac69=_0x769f25;_0x33c588(_0xf7ce2a[_0x45ac69('0x25')](0x1f5,_0x354df0[_0x45ac69('0x43')]));});});},'Command':function(_0x1d35b1){const _0x558763=this;return new Promise(function(_0x10ff34,_0x3885d4){const _0x2186a1=a1132_0x43d7;if(ami[_0x2186a1('0x3f')]()==![])return _0x3885d4(_0x558763[_0x2186a1('0x25')](0x1f4,[config['asterisk']['ip'],config['asterisk'][_0x2186a1('0x24')],_0x2186a1('0x21')][_0x2186a1('0x1e')]('\x20')));return _0x1d35b1=_[_0x2186a1('0xc')](_0x1d35b1,_0x2186a1('0xb')),_0x1d35b1[_0x2186a1('0x50')]=_0x2186a1('0x38'),ami[_0x2186a1('0x6f')](_0x1d35b1)[_0x2186a1('0x44')](function(_0x5e0d6a){const _0x2d72a9=_0x2186a1;_0x10ff34({'code':0xc8,'message':_0x5e0d6a[_0x2d72a9('0x68')]});})[_0x2186a1('0x7e')](function(_0x41ab14){const _0x52de08=_0x2186a1;_0x3885d4(_0x558763[_0x52de08('0x25')](0x1f5,_0x41ab14[_0x52de08('0x43')]));});});},'VoiceQueues':function(){return new Promise(function(_0x190fc4){const _0x11afa1=a1132_0x43d7,_0x1b5b3a=[];for(const _0x599a97 in _0x2e0129[_0x11afa1('0x87')]){if(typeof _0x2e0129['voiceQueues'][_0x599a97]!==_0x11afa1('0x78')){const _0x57c296=_0x2e0129[_0x11afa1('0x87')][_0x599a97],_0x25c80c={'id':_0x57c296['id'],'name':_0x57c296[_0x11afa1('0xd')],'strategy':_0x57c296[_0x11afa1('0x20')],'answered':_0x57c296[_0x11afa1('0x7c')],'available':_0x57c296[_0x11afa1('0x5e')],'loggedIn':_0x57c296[_0x11afa1('0x5a')],'pTalking':_0x57c296[_0x11afa1('0x62')],'sumBillable':_0x57c296[_0x11afa1('0x42')],'sumDuration':_0x57c296[_0x11afa1('0x4c')],'sumHoldTime':_0x57c296['sumHoldTime']||0x0,'talking':_0x57c296[_0x11afa1('0x27')],'total':_0x57c296['total'],'type':_0x57c296['type'],'unmanaged':_0x57c296[_0x11afa1('0x12')],'abandoned':_0x57c296[_0x11afa1('0x31')],'waiting':_0x57c296[_0x11afa1('0x64')],'loggedInDb':_0x57c296['loggedInDb']};_0x57c296['type']==='outbound'&&(_0x25c80c['dialActive']=_0x57c296[_0x11afa1('0x4e')],_0x25c80c[_0x11afa1('0x6a')]=_0x57c296[_0x11afa1('0x6a')],_0x25c80c[_0x11afa1('0x3')]=_0x57c296[_0x11afa1('0x3')],_0x25c80c[_0x11afa1('0x2d')]=_0x57c296[_0x11afa1('0x2d')],_0x25c80c['dialOriginateTimeout']=_0x57c296['dialOriginateTimeout'],_0x25c80c[_0x11afa1('0x2b')]=_0x57c296[_0x11afa1('0x2b')],_0x25c80c[_0x11afa1('0x22')]=_0x57c296['outboundAnswerAgiCallsDay'],_0x25c80c['outboundAnswerCallsDay']=_0x57c296[_0x11afa1('0x8b')],_0x25c80c[_0x11afa1('0x35')]=_0x57c296['outboundBlacklistCallsDay'],_0x25c80c[_0x11afa1('0x4a')]=_0x57c296[_0x11afa1('0x4a')],_0x25c80c[_0x11afa1('0x5c')]=_0x57c296[_0x11afa1('0x5c')],_0x25c80c[_0x11afa1('0x18')]=_0x57c296[_0x11afa1('0x18')],_0x25c80c[_0x11afa1('0x8a')]=_0x57c296[_0x11afa1('0x8a')],_0x25c80c['outboundDropCallsDayTimeout']=_0x57c296[_0x11afa1('0x14')],_0x25c80c[_0x11afa1('0x54')]=_0x57c296[_0x11afa1('0x54')],_0x25c80c[_0x11afa1('0xf')]=_0x57c296[_0x11afa1('0xf')],_0x25c80c['outboundOriginateFailureCallsDay']=_0x57c296['outboundOriginateFailureCallsDay'],_0x25c80c[_0x11afa1('0x4')]=_0x57c296['outboundReCallsDay'],_0x25c80c['outboundRejectCallsDay']=_0x57c296[_0x11afa1('0x15')],_0x25c80c[_0x11afa1('0x80')]=_0x57c296[_0x11afa1('0x80')],_0x25c80c['predictiveIntervalAnsweredCalls']=_0x57c296['predictiveIntervalAnsweredCalls'],_0x25c80c[_0x11afa1('0x2f')]=_0x57c296[_0x11afa1('0x2f')],_0x25c80c[_0x11afa1('0x61')]=_0x57c296[_0x11afa1('0x61')],_0x25c80c[_0x11afa1('0x66')]=_0x57c296['predictiveIntervalDroppedCallsCallersExit'],_0x25c80c[_0x11afa1('0x5')]=_0x57c296[_0x11afa1('0x5')],_0x25c80c[_0x11afa1('0x70')]=_0x57c296[_0x11afa1('0x70')],_0x25c80c[_0x11afa1('0x52')]=_0x57c296[_0x11afa1('0x52')],_0x25c80c[_0x11afa1('0x4b')]=_0x57c296[_0x11afa1('0x4b')],_0x25c80c[_0x11afa1('0x47')]=_0x57c296[_0x11afa1('0x47')],_0x25c80c[_0x11afa1('0x39')]=_0x57c296['predictiveIntervalPauses'],_0x25c80c[_0x11afa1('0x71')]=_0x57c296[_0x11afa1('0x71')],_0x25c80c[_0x11afa1('0x1f')]=_0x57c296['predictiveIntervalTotalCalls'],_0x25c80c[_0x11afa1('0x43')]=_0x57c296[_0x11afa1('0x43')],_0x25c80c['originated']=_0x57c296['originated'],_0x25c80c[_0x11afa1('0x74')]=_0x57c296['erlangCalls'],_0x25c80c[_0x11afa1('0x89')]=_0x57c296[_0x11afa1('0x89')],_0x25c80c[_0x11afa1('0x88')]=_0x57c296[_0x11afa1('0x88')],_0x25c80c[_0x11afa1('0x60')]=_0x57c296['erlangBusyFactor'],_0x25c80c[_0x11afa1('0x46')]=_0x57c296[_0x11afa1('0x46')],_0x25c80c[_0x11afa1('0x11')]=_0x57c296[_0x11afa1('0x11')]),_0x57c296['Trunk']&&(_0x25c80c[_0x11afa1('0x6')]={'id':_0x57c296['Trunk']['id'],'name':_0x57c296[_0x11afa1('0x6')][_0x11afa1('0xd')],'active':_0x57c296[_0x11afa1('0x6')][_0x11afa1('0xe')],'callerid':_0x57c296[_0x11afa1('0x6')][_0x11afa1('0x85')]}),_0x57c296[_0x11afa1('0x6b')]&&(_0x25c80c[_0x11afa1('0x6b')]={'id':_0x57c296['Interval']['id'],'name':_0x57c296[_0x11afa1('0x6b')]['name']}),_0x1b5b3a[_0x11afa1('0x5b')](_0x25c80c);}}_0x190fc4({'count':_0x1b5b3a[_0x11afa1('0x17')],'rows':_0x1b5b3a});});},'VoiceChannels':function(){return new Promise(function(_0x329a9b){const _0x33e1d9=a1132_0x43d7,_0x4b4373=_['values'](_0x2e0129['channels']);_0x329a9b({'count':_0x4b4373[_0x33e1d9('0x17')],'rows':_0x4b4373});});},'VoiceChannelMixMonitor':function(_0x237df7){const _0x43e814=this;return new Promise(function(_0x4df972,_0x6343d7){const _0x34578f=a1132_0x43d7;if(ami['isConnected']()==![])return _0x6343d7(_0x43e814[_0x34578f('0x25')](0x1f4,[config['asterisk']['ip'],config[_0x34578f('0x5f')][_0x34578f('0x24')],_0x34578f('0x21')][_0x34578f('0x1e')]('\x20')));const _0x79cde2=schema(properties[_0x34578f('0x2a')])[_0x34578f('0x57')](_0x237df7);if(_0x79cde2[_0x34578f('0x17')]>0x0)return _0x6343d7(_0x43e814[_0x34578f('0x25')](0x1f4,_[_0x34578f('0x77')](_0x79cde2,_0x34578f('0x43'))['join'](',\x20')));const _0x35c1f8=_['find'](_0x2e0129[_0x34578f('0x6c')],{'uniqueid':_0x237df7[_0x34578f('0x3e')]});if(_0x35c1f8&&_0x35c1f8[_0x34578f('0x26')]){const _0x120068=util[_0x34578f('0x7b')](_0x34578f('0x82'),_0x237df7['filename']||_0x237df7['uniqueid'],_0x237df7[_0x34578f('0x7b')]||_0x34578f('0x4f'));return ami[_0x34578f('0x6f')]({'action':_0x34578f('0x8'),'channel':_0x35c1f8[_0x34578f('0x26')],'file':_0x120068,'options':_0x34578f('0x32')})['then'](function(_0xae4e2d){const _0x137eee=_0x34578f,_0x590e28=_[_0x137eee('0x6e')](_0x35c1f8[_0x137eee('0x73')],{'filename':'/var/spool/asterisk/monitor/'+_0x120068['toLowerCase']()});_['isNil'](_0x590e28)?_0x35c1f8['monitors'][_0x137eee('0x5b')]({'filename':'/var/spool/asterisk/monitor/'+_0x120068['toLowerCase'](),'createdAt':moment()[_0x137eee('0x7b')]('YYYY-MM-DD\x20HH:mm:ss'),'mixmonitorid':_0xae4e2d[_0x137eee('0x48')],'status':_0x137eee('0x63')}):(_0x590e28[_0x137eee('0x48')]=_0xae4e2d[_0x137eee('0x48')],_0x590e28[_0x137eee('0x6d')]='rec'),_0x4df972({'code':0xc8,'message':[_0x237df7[_0x137eee('0x3e')],'MixMonitor\x20Success',_0xae4e2d['mixmonitorid']]['join']('\x20'),'mixmonitorid':_0xae4e2d[_0x137eee('0x48')]});})[_0x34578f('0x7e')](function(_0x532a97){const _0x501af2=_0x34578f;_0x6343d7(_0x43e814['error'](0x1f5,[_0x237df7[_0x501af2('0x3e')],_0x532a97[_0x501af2('0x43')][_0x501af2('0x9')]()][_0x501af2('0x1e')]('\x20')));});}else return _0x6343d7(_0x43e814['error'](0x1f5,_0x34578f('0x58')));});},'VoiceChannelStopMixMonitor':function(_0x3cadef){const _0x2680c7=this;return new Promise(function(_0x261d2a,_0x216165){const _0x5c8c3b=a1132_0x43d7;if(ami[_0x5c8c3b('0x3f')]()==![])return _0x216165(_0x2680c7[_0x5c8c3b('0x25')](0x1f4,[config[_0x5c8c3b('0x5f')]['ip'],config['asterisk'][_0x5c8c3b('0x24')],'ami\x20disconnected']['join']('\x20')));const _0x1795f6=schema(properties[_0x5c8c3b('0x2a')])[_0x5c8c3b('0x57')](_0x3cadef);if(_0x1795f6[_0x5c8c3b('0x17')]>0x0)return _0x216165(_0x2680c7['error'](0x1f4,_['map'](_0x1795f6,'message')[_0x5c8c3b('0x1e')](',\x20')));const _0x36863d=_[_0x5c8c3b('0x6e')](_0x2e0129[_0x5c8c3b('0x6c')],{'uniqueid':_0x3cadef[_0x5c8c3b('0x3e')]});return _0x36863d?Promise[_0x5c8c3b('0x7f')]()[_0x5c8c3b('0x44')](function(){const _0x2a9ba9=_0x5c8c3b;if(_0x36863d[_0x2a9ba9('0x26')])return ami[_0x2a9ba9('0x6f')]({'action':_0x2a9ba9('0x28'),'channel':_0x36863d['channel'],'mixmonitorid':_0x3cadef[_0x2a9ba9('0x48')]})[_0x2a9ba9('0x7e')](function(){});})['then'](function(){const _0x19cb2c=_0x5c8c3b;if(_0x36863d[_0x19cb2c('0x13')])return ami['Action']({'action':_0x19cb2c('0x28'),'channel':_0x36863d[_0x19cb2c('0x13')],'mixmonitorid':_0x3cadef[_0x19cb2c('0x48')]})[_0x19cb2c('0x7e')](function(){});})[_0x5c8c3b('0x44')](function(){const _0x2d922e=_0x5c8c3b,_0x53dbb4=_[_0x2d922e('0x6e')](_0x36863d[_0x2d922e('0x73')],{'mixmonitorid':_0x3cadef[_0x2d922e('0x48')]});_0x53dbb4&&(_0x53dbb4[_0x2d922e('0x6d')]='stop');})['then'](function(){const _0x2aac9b=_0x5c8c3b,_0x5e22f5=util[_0x2aac9b('0x7b')](_0x2aac9b('0x82'),_0x3cadef['filename']||_0x3cadef[_0x2aac9b('0x3e')],_0x3cadef[_0x2aac9b('0x7b')]||_0x2aac9b('0x4f')),_0x2e37df=_['find'](_0x36863d[_0x2aac9b('0x73')],{'filename':_0x2aac9b('0x33')+_0x5e22f5[_0x2aac9b('0x9')]()});_0x2e37df&&(_0x2e37df['status']=_0x2aac9b('0x5d'));})[_0x5c8c3b('0x44')](function(){const _0x277239=_0x5c8c3b;_0x261d2a({'code':0xc8,'message':[_0x3cadef[_0x277239('0x3e')],_0x277239('0x41')][_0x277239('0x1e')]('\x20')});})[_0x5c8c3b('0x7e')](function(_0x4a4192){const _0x176c82=_0x5c8c3b;_0x216165(_0x2680c7[_0x176c82('0x25')](0x1f5,[_0x3cadef[_0x176c82('0x3e')],_0x4a4192[_0x176c82('0x43')]['toLowerCase']()][_0x176c82('0x1e')]('\x20')));}):_0x216165(_0x2680c7[_0x5c8c3b('0x25')](0x1f5,_0x5c8c3b('0x58')));});},'VoiceQueuesChannels':function(){return new Promise(function(_0x3fc66e){const _0x13bad6=a1132_0x43d7,_0x44dd28=_[_0x13bad6('0x3a')](_0x2e0129[_0x13bad6('0x75')]);_0x3fc66e({'count':_0x44dd28['length'],'rows':_0x44dd28});});},'VoiceQueuesChannel':function(_0x3d8924){const _0x29a53f=this;return new Promise(function(_0x22e6bf,_0x3fd500){const _0x47e546=a1132_0x43d7,_0x494b78=schema(properties[_0x47e546('0x36')])[_0x47e546('0x57')](_0x3d8924);if(_0x494b78[_0x47e546('0x17')]>0x0)return _0x3fd500(_0x29a53f[_0x47e546('0x25')](0x1f4,_['map'](_0x494b78,_0x47e546('0x43'))[_0x47e546('0x1e')](',\x20')));const _0x663bdf=_['find'](_0x2e0129[_0x47e546('0x75')],{'uniqueid':_0x3d8924[_0x47e546('0x3e')]});if(_0x663bdf)_0x22e6bf(_0x663bdf);else return _0x3fd500(_0x29a53f['error'](0x1f5,_0x47e546('0x58')));});},'VoiceQueuesChannelHangup':function(_0xfdb47a){const _0x4084c1=this;return new Promise(function(_0x29dee3,_0x20ee4f){const _0x3d5306=a1132_0x43d7;if(ami['isConnected']()==![])return _0x20ee4f(_0x4084c1[_0x3d5306('0x25')](0x1f4,[config[_0x3d5306('0x5f')]['ip'],config['asterisk'][_0x3d5306('0x24')],'ami\x20disconnected'][_0x3d5306('0x1e')]('\x20')));const _0x12d88c=schema(properties[_0x3d5306('0x67')])[_0x3d5306('0x57')](_0xfdb47a);if(_0x12d88c[_0x3d5306('0x17')]>0x0)return _0x20ee4f(_0x4084c1[_0x3d5306('0x25')](0x1f4,_['map'](_0x12d88c,_0x3d5306('0x43'))[_0x3d5306('0x1e')](',\x20')));const _0x5004e4=_[_0x3d5306('0x6e')](_0x2e0129[_0x3d5306('0x75')],{'uniqueid':_0xfdb47a[_0x3d5306('0x3e')]});return _0x5004e4&&_0x5004e4[_0x3d5306('0x26')]?ami[_0x3d5306('0x6f')]({'action':_0x3d5306('0x2e'),'channel':_0x5004e4['channel']})[_0x3d5306('0x44')](function(_0x2b75a3){const _0x30c0f6=_0x3d5306;_0x29dee3({'code':0xc8,'message':[_0xfdb47a[_0x30c0f6('0x3e')],_0x2b75a3[_0x30c0f6('0x43')][_0x30c0f6('0x9')]()][_0x30c0f6('0x1e')]('\x20')});})['catch'](function(_0x40b483){const _0xf64068=_0x3d5306;_0x20ee4f(_0x4084c1['error'](0x1f5,[_0xfdb47a[_0xf64068('0x3e')],_0x40b483['message'][_0xf64068('0x9')]()][_0xf64068('0x1e')]('\x20')));}):_0x20ee4f(_0x4084c1[_0x3d5306('0x25')](0x1f5,'Channel\x20doesn\x27t\x20exist'));});},'VoiceQueuesChannelRedirect':function(_0x171521){const _0x345b1c=this;return new Promise(function(_0x503a82,_0x4e4a67){const _0x579e0d=a1132_0x43d7;if(ami['isConnected']()==![])return _0x4e4a67(_0x345b1c[_0x579e0d('0x25')](0x1f4,[config[_0x579e0d('0x5f')]['ip'],config[_0x579e0d('0x5f')]['username'],'ami\x20disconnected'][_0x579e0d('0x1e')]('\x20')));const _0x4602c7=schema(properties[_0x579e0d('0x1a')])[_0x579e0d('0x57')](_0x171521);if(_0x4602c7[_0x579e0d('0x17')]>0x0)return _0x4e4a67(_0x345b1c[_0x579e0d('0x25')](0x1f4,_[_0x579e0d('0x77')](_0x4602c7,_0x579e0d('0x43'))['join'](',\x20')));const _0x2538e2=_[_0x579e0d('0x6e')](_0x2e0129[_0x579e0d('0x75')],{'uniqueid':_0x171521['uniqueid']});return _0x2538e2&&_0x2538e2['channel']?ami[_0x579e0d('0x6f')]({'action':_0x579e0d('0x72'),'channel':_0x2538e2[_0x579e0d('0x26')],'exten':_0x171521[_0x579e0d('0x30')],'context':_0x171521['context']||_0x2538e2[_0x579e0d('0x3b')],'priority':0x1})[_0x579e0d('0x44')](function(_0xbe9526){const _0x3efc5e=_0x579e0d;_0x503a82({'code':0xc8,'message':[_0x171521[_0x3efc5e('0x3e')],_0xbe9526[_0x3efc5e('0x43')][_0x3efc5e('0x9')]()][_0x3efc5e('0x1e')]('\x20')});})[_0x579e0d('0x7e')](function(_0x43f1e1){const _0x2f512e=_0x579e0d;_0x4e4a67(_0x345b1c[_0x2f512e('0x25')](0x1f5,[_0x171521[_0x2f512e('0x3e')],_0x43f1e1[_0x2f512e('0x43')][_0x2f512e('0x9')]()][_0x2f512e('0x1e')]('\x20')));}):_0x4e4a67(_0x345b1c['error'](0x1f5,_0x579e0d('0x58')));});},'Agents':function(){return new Promise(function(_0x7ab96a){const _0x4988a4=a1132_0x43d7,_0x1aa064=_[_0x4988a4('0x3a')](_0x2e0129[_0x4988a4('0x1d')]);_0x7ab96a({'count':_0x1aa064[_0x4988a4('0x17')],'rows':_0x1aa064});});},'Telephones':function(){return new Promise(function(_0x150fe6){const _0x3211b2=a1132_0x43d7,_0x289525=_[_0x3211b2('0x3a')](_0x2e0129[_0x3211b2('0x56')]);_0x150fe6({'count':_0x289525['length'],'rows':_0x289525});});},'Trunks':function(){return new Promise(function(_0x220891){const _0x190665=a1132_0x43d7,_0x2ae8d3=_[_0x190665('0x3a')](_0x2e0129[_0x190665('0x84')]);_0x220891({'count':_0x2ae8d3[_0x190665('0x17')],'rows':_0x2ae8d3});});},'OutboundChannels':function(){return new Promise(function(_0x102fd3){const _0x2da2c9=a1132_0x43d7,_0x325798=_[_0x2da2c9('0x3a')](_0x2e0129[_0x2da2c9('0x37')]);_0x102fd3({'count':_0x325798[_0x2da2c9('0x17')],'rows':_0x325798});});},'Outbound':function(){return new Promise(function(_0x4956cd){const _0x9a512f=a1132_0x43d7;_0x4956cd(_0x2e0129[_0x9a512f('0x4d')]);});},'Campaigns':function(){return new Promise(function(_0x4186c9){const _0x22cb5c=a1132_0x43d7,_0x3d3761=_[_0x22cb5c('0x3a')](_0x2e0129[_0x22cb5c('0xa')]);_0x4186c9({'count':_0x3d3761[_0x22cb5c('0x17')],'rows':_0x3d3761});});},'VoiceQueuesPreview':function(_0x4c2f88){const _0x261281=this;return new Promise(function(_0x305c03,_0x33902d){const _0x4b752a=a1132_0x43d7;_0x16f55c[_0x4b752a('0x7d')](_0x4c2f88['id'])[_0x4b752a('0x44')](function(_0x37981f){const _0x39bf7c=_0x4b752a;_0x305c03({'code':0xc8,'message':_0x37981f[_0x39bf7c('0x43')]});})['catch'](function(_0x230ea5){const _0x395514=_0x4b752a;_0x33902d(_0x261281[_0x395514('0x25')](0x1f4,_0x230ea5[_0x395514('0x43')]));});});},'EventManager':function(_0x142f0c){const _0x80bfea=this;return new Promise(function(_0x1e8cba,_0x18263f){const _0xfca78a=a1132_0x43d7;if(!_0x142f0c[_0xfca78a('0x29')])return _0x18263f(_0x80bfea['error'](0x1f4,_0xfca78a('0x79')));ami[_0xfca78a('0x3d')](_0xfca78a('0x53')+_0x142f0c[_0xfca78a('0x29')],_0x142f0c[_0xfca78a('0x43')]),_0x1e8cba({'code':0xc8,'message':_0x142f0c});});},'FaxAccounts':function(){return new Promise(function(_0x5bb94a){const _0xf80ad8=a1132_0x43d7,_0x33bcd2=_[_0xf80ad8('0x3a')](_0x2e0129[_0xf80ad8('0x7')]);_0x5bb94a({'count':_0x33bcd2[_0xf80ad8('0x17')],'rows':_0x33bcd2});});},'SendFax':function(_0x2f4465){const _0x349fe9=this;return new Promise(function(_0x4b72a7,_0x109ab3){const _0x4920fe=a1132_0x43d7;_0x3015d5[_0x4920fe('0x1b')](_0x2f4465)[_0x4920fe('0x44')](function(_0x59d06b){_0x4b72a7({'code':0xc8,'message':_0x59d06b['message']});})[_0x4920fe('0x7e')](function(_0x2d0dbd){const _0xc09d7f=_0x4920fe;_0x109ab3(_0x349fe9[_0xc09d7f('0x25')](0x1f4,_0x2d0dbd[_0xc09d7f('0x43')]));});});},'CheckAfterSend':function(_0x5a642f){const _0x3e97d0=this;return new Promise(function(_0x369b3c,_0x43fc99){const _0xb51e92=a1132_0x43d7;_0x3015d5[_0xb51e92('0x1c')](_0x5a642f)[_0xb51e92('0x44')](function(_0x53ba3e){const _0x5eef9a=_0xb51e92;_0x369b3c({'code':0xc8,'message':_0x53ba3e[_0x5eef9a('0x43')]});})[_0xb51e92('0x7e')](function(_0x347d70){const _0x327a73=_0xb51e92;_0x43fc99(_0x3e97d0[_0x327a73('0x25')](0x1f4,_0x347d70[_0x327a73('0x43')]));});});}},_0x4ece68=jayson[_0xdfb9e7('0x19')](_0x35e9a0)[_0xdfb9e7('0x2c')]();_0x4ece68['on'](_0xdfb9e7('0x25'),function(_0x361dfa){return _0x250be4(_0x361dfa);}),_0x4ece68[_0xdfb9e7('0x45')](0x232a,_0xdfb9e7('0x83'),function(){const _0x1c311c=_0xdfb9e7;return console[_0x1c311c('0x49')](_0x1c311c('0x34'),0x232a),_0x56082f(_0x1c311c('0x3c')+0x232a);});});}; \ No newline at end of file +const a1133_0x596e=['message','StopMixMonitor','predictiveIntervalAvgHoldtime','username','event','strategy','erlangCalls','dialOriginateCallerIdNumber','outbound','StopMixMonitor\x20Success','status','sumDuration','find','dialOriginateCallerIdName','MixMonitor\x20Success','stop','agents','destinationchannel','sumBillable','campaigns','map','predictiveIntervalPauses','content','outboundAnswerAgiCallsDay','dialMethod','Interval','keys','asterisk','predictiveIntervalAvailable','util','predictiveIntervalHitRate','http','%s.%s','loggedInDb','values','outboundAnswerCallsDay','emit','pTalking','originated','module','queueChannels','outboundDropCallsDayTimeout','outboundCongestionCallsDay','wav','Channel\x20doesn\x27t\x20exist','../../../config/environment','undefined','abandoned','../properties','ai(mixmonitorid)','toLowerCase','outboundReCallsDay','pick','run','outboundNoAnswerCallsDay','voiceQueues','join','%s/%s','catch','AMI\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','timers','erlangCallToSecond','Trunk','isConnected','predictiveIntervalAnsweredCalls','log','QueuePause','outboundNoSuchCallsDay','erlangAbandonmentRate','isNil','voicequeuechannelhangup','mixmonitorid','outboundDropCallsDayACS','predictiveIntervalMultiplicativeFactor','updateStatusRealtime','predictiveIntervalDroppedCallsCallersExit','custom:','dialPrefix','server','format','SIP','Hangup','erlangBusyFactor','Redirect','push','predictiveIntervalDroppedCallsTimeout','Event\x20name\x20mandatory','outboundChannels','validate','Reload','Action','Command','../ami','startPredictive','then','outboundOriginateFailureCallsDay','updateAcw','length','outboundUnknownCallsDay','listen','outboundDropCallsDayCallersExit','monitors','total','waiting','timer','error','uniqueid','exten','MixMonitor','lodash','available','predictiveIntervalErlangCalls','dialOriginateTimeout','channels','predictiveIntervalAvgTalktime','command','outboundRejectCallsDay','filename','jayson/promise','unmanaged','callerid','channel','/var/spool/asterisk/monitor/','127.0.0.1','send','ami\x20disconnected','telephones','dialActive','talking','voicechannel','predictiveIntervalErlangCallsDroppedCalls','outboundBusyCallsDay','action','type','active','moment','predictiveIntervalTotalCalls','rec','name'];(function(_0x18d085,_0x596e02){const _0x56a1e7=function(_0x548b9d){while(--_0x548b9d){_0x18d085['push'](_0x18d085['shift']());}};_0x56a1e7(++_0x596e02);}(a1133_0x596e,0x188));const a1133_0x56a1=function(_0x18d085,_0x596e02){_0x18d085=_0x18d085-0x0;let _0x56a1e7=a1133_0x596e[_0x18d085];return _0x56a1e7;};const _0x4fd068=a1133_0x56a1;'use strict';const _=require(_0x4fd068('0x86')),util=require(_0x4fd068('0x36')),jayson=require(_0x4fd068('0x4')),schema=require('validate'),moment=require(_0x4fd068('0x15')),config=require(_0x4fd068('0x46')),properties=require(_0x4fd068('0x49')),ami=require(_0x4fd068('0x75'));exports[_0x4fd068('0x7c')]=function(_0x548b9d,_0x12227f,_0x1f9340){return new Promise(function(_0x477b99,_0x40f7ee){const _0xd9c349=a1133_0x56a1,_0x314207={'QueuePause':function(_0x52f07f){return new Promise(function(_0x2fc4a5){const _0x2412a2=a1133_0x56a1,_0x220a26=util[_0x2412a2('0x68')](_0x2412a2('0x52'),_0x2412a2('0x69'),_0x52f07f[_0x2412a2('0x18')]);_0x548b9d[_0x2412a2('0x55')]&&_0x548b9d[_0x2412a2('0x55')][_0x220a26]&&_0x548b9d[_0x2412a2('0x55')][_0x220a26][_0x2412a2('0x81')]&&_0x548b9d['timers'][_0x220a26][_0x2412a2('0x79')](),_0x548b9d[_0x2412a2('0x29')][_0x220a26]&&_0x548b9d[_0x2412a2('0x29')][_0x220a26][_0x2412a2('0x63')]({'statePause':_0x52f07f['pause']?!![]:![]}),_0x2fc4a5({'code':0xc8,'message':_0x2412a2('0x5b')});});},'Reload':function(_0x4fa348){const _0xc735ca=this;return new Promise(function(_0x20b6d8,_0x5da38a){const _0xfc1ef1=a1133_0x56a1;if(ami[_0xfc1ef1('0x58')]()==![])return _0x5da38a(_0xc735ca[_0xfc1ef1('0x82')](0x1f4,[config['asterisk']['ip'],config[_0xfc1ef1('0x34')][_0xfc1ef1('0x1c')],_0xfc1ef1('0xb')][_0xfc1ef1('0x51')]('\x20')));return _0x4fa348=_[_0xfc1ef1('0x4d')](_0x4fa348,_[_0xfc1ef1('0x33')](properties[_0xfc1ef1('0x40')])),_0x4fa348[_0xfc1ef1('0x12')]=_0xfc1ef1('0x72'),ami[_0xfc1ef1('0x73')](_0x4fa348)[_0xfc1ef1('0x77')](function(_0x14400d){_0x20b6d8({'code':0xc8,'message':_0x14400d['message']});})['catch'](function(_0x2e3dbd){_0x5da38a(_0xc735ca['error'](0x1f5,_0x2e3dbd['message']));});});},'Command':function(_0x3b1a4f){const _0x558320=this;return new Promise(function(_0x38c9e1,_0x199617){const _0x2d82c4=a1133_0x56a1;if(ami[_0x2d82c4('0x58')]()==![])return _0x199617(_0x558320[_0x2d82c4('0x82')](0x1f4,[config[_0x2d82c4('0x34')]['ip'],config['asterisk'][_0x2d82c4('0x1c')],_0x2d82c4('0xb')]['join']('\x20')));return _0x3b1a4f=_['pick'](_0x3b1a4f,_0x2d82c4('0x1')),_0x3b1a4f[_0x2d82c4('0x12')]=_0x2d82c4('0x74'),ami['Action'](_0x3b1a4f)[_0x2d82c4('0x77')](function(_0x52563d){const _0x4b49ec=_0x2d82c4;_0x38c9e1({'code':0xc8,'message':_0x52563d[_0x4b49ec('0x2f')]});})[_0x2d82c4('0x53')](function(_0x44efb8){const _0x49d8aa=_0x2d82c4;_0x199617(_0x558320['error'](0x1f5,_0x44efb8[_0x49d8aa('0x19')]));});});},'VoiceQueues':function(){return new Promise(function(_0x27984d){const _0x23559c=a1133_0x56a1,_0x375f98=[];for(const _0x473149 in _0x548b9d['voiceQueues']){if(typeof _0x548b9d[_0x23559c('0x50')][_0x473149]!==_0x23559c('0x47')){const _0x2a80ca=_0x548b9d[_0x23559c('0x50')][_0x473149],_0x5f5d54={'id':_0x2a80ca['id'],'name':_0x2a80ca[_0x23559c('0x18')],'strategy':_0x2a80ca[_0x23559c('0x1e')],'answered':_0x2a80ca['answered'],'available':_0x2a80ca[_0x23559c('0x87')],'loggedIn':_0x2a80ca['loggedIn'],'pTalking':_0x2a80ca[_0x23559c('0x3e')],'sumBillable':_0x2a80ca[_0x23559c('0x2b')],'sumDuration':_0x2a80ca[_0x23559c('0x24')],'sumHoldTime':_0x2a80ca['sumHoldTime']||0x0,'talking':_0x2a80ca[_0x23559c('0xe')],'total':_0x2a80ca[_0x23559c('0x7f')],'type':_0x2a80ca[_0x23559c('0x13')],'unmanaged':_0x2a80ca[_0x23559c('0x5')],'abandoned':_0x2a80ca[_0x23559c('0x48')],'waiting':_0x2a80ca[_0x23559c('0x80')],'loggedInDb':_0x2a80ca[_0x23559c('0x3a')]};_0x2a80ca[_0x23559c('0x13')]===_0x23559c('0x21')&&(_0x5f5d54[_0x23559c('0xd')]=_0x2a80ca[_0x23559c('0xd')],_0x5f5d54[_0x23559c('0x31')]=_0x2a80ca[_0x23559c('0x31')],_0x5f5d54[_0x23559c('0x26')]=_0x2a80ca[_0x23559c('0x26')],_0x5f5d54[_0x23559c('0x20')]=_0x2a80ca[_0x23559c('0x20')],_0x5f5d54[_0x23559c('0x89')]=_0x2a80ca[_0x23559c('0x89')],_0x5f5d54[_0x23559c('0x66')]=_0x2a80ca[_0x23559c('0x66')],_0x5f5d54[_0x23559c('0x30')]=_0x2a80ca[_0x23559c('0x30')],_0x5f5d54[_0x23559c('0x3c')]=_0x2a80ca[_0x23559c('0x3c')],_0x5f5d54['outboundBlacklistCallsDay']=_0x2a80ca['outboundBlacklistCallsDay'],_0x5f5d54['outboundBusyCallsDay']=_0x2a80ca[_0x23559c('0x11')],_0x5f5d54[_0x23559c('0x43')]=_0x2a80ca['outboundCongestionCallsDay'],_0x5f5d54[_0x23559c('0x61')]=_0x2a80ca['outboundDropCallsDayACS'],_0x5f5d54[_0x23559c('0x7d')]=_0x2a80ca[_0x23559c('0x7d')],_0x5f5d54['outboundDropCallsDayTimeout']=_0x2a80ca[_0x23559c('0x42')],_0x5f5d54['outboundNoAnswerCallsDay']=_0x2a80ca[_0x23559c('0x4f')],_0x5f5d54['outboundNoSuchCallsDay']=_0x2a80ca[_0x23559c('0x5c')],_0x5f5d54[_0x23559c('0x78')]=_0x2a80ca[_0x23559c('0x78')],_0x5f5d54[_0x23559c('0x4c')]=_0x2a80ca[_0x23559c('0x4c')],_0x5f5d54[_0x23559c('0x2')]=_0x2a80ca[_0x23559c('0x2')],_0x5f5d54[_0x23559c('0x7b')]=_0x2a80ca[_0x23559c('0x7b')],_0x5f5d54[_0x23559c('0x59')]=_0x2a80ca[_0x23559c('0x59')],_0x5f5d54['predictiveIntervalAvgHoldtime']=_0x2a80ca[_0x23559c('0x1b')],_0x5f5d54[_0x23559c('0x0')]=_0x2a80ca['predictiveIntervalAvgTalktime'],_0x5f5d54[_0x23559c('0x64')]=_0x2a80ca[_0x23559c('0x64')],_0x5f5d54[_0x23559c('0x6e')]=_0x2a80ca[_0x23559c('0x6e')],_0x5f5d54[_0x23559c('0x88')]=_0x2a80ca[_0x23559c('0x88')],_0x5f5d54[_0x23559c('0x10')]=_0x2a80ca['predictiveIntervalErlangCallsDroppedCalls'],_0x5f5d54['predictiveIntervalHitRate']=_0x2a80ca[_0x23559c('0x37')],_0x5f5d54[_0x23559c('0x62')]=_0x2a80ca['predictiveIntervalMultiplicativeFactor'],_0x5f5d54['predictiveIntervalPauses']=_0x2a80ca[_0x23559c('0x2e')],_0x5f5d54['predictiveIntervalAvailable']=_0x2a80ca[_0x23559c('0x35')],_0x5f5d54[_0x23559c('0x16')]=_0x2a80ca[_0x23559c('0x16')],_0x5f5d54[_0x23559c('0x19')]=_0x2a80ca[_0x23559c('0x19')],_0x5f5d54[_0x23559c('0x3f')]=_0x2a80ca[_0x23559c('0x3f')],_0x5f5d54['erlangCalls']=_0x2a80ca[_0x23559c('0x1f')],_0x5f5d54['erlangCallToSecond']=_0x2a80ca[_0x23559c('0x56')],_0x5f5d54[_0x23559c('0x5d')]=_0x2a80ca['erlangAbandonmentRate'],_0x5f5d54['erlangBusyFactor']=_0x2a80ca[_0x23559c('0x6b')],_0x5f5d54[_0x23559c('0x76')]=_0x2a80ca[_0x23559c('0x76')],_0x5f5d54['startProgressive']=_0x2a80ca['startProgressive']),_0x2a80ca[_0x23559c('0x57')]&&(_0x5f5d54[_0x23559c('0x57')]={'id':_0x2a80ca[_0x23559c('0x57')]['id'],'name':_0x2a80ca[_0x23559c('0x57')]['name'],'active':_0x2a80ca['Trunk'][_0x23559c('0x14')],'callerid':_0x2a80ca[_0x23559c('0x57')][_0x23559c('0x6')]}),_0x2a80ca[_0x23559c('0x32')]&&(_0x5f5d54[_0x23559c('0x32')]={'id':_0x2a80ca[_0x23559c('0x32')]['id'],'name':_0x2a80ca['Interval'][_0x23559c('0x18')]}),_0x375f98[_0x23559c('0x6d')](_0x5f5d54);}}_0x27984d({'count':_0x375f98[_0x23559c('0x7a')],'rows':_0x375f98});});},'VoiceChannels':function(){return new Promise(function(_0x1945d9){const _0x2360bc=a1133_0x56a1,_0x1cd2bd=_[_0x2360bc('0x3b')](_0x548b9d['channels']);_0x1945d9({'count':_0x1cd2bd['length'],'rows':_0x1cd2bd});});},'VoiceChannelMixMonitor':function(_0x3f2bef){const _0x371bd8=this;return new Promise(function(_0x4cda9e,_0x353206){const _0x4bef99=a1133_0x56a1;if(ami[_0x4bef99('0x58')]()==![])return _0x353206(_0x371bd8[_0x4bef99('0x82')](0x1f4,[config['asterisk']['ip'],config[_0x4bef99('0x34')][_0x4bef99('0x1c')],_0x4bef99('0xb')][_0x4bef99('0x51')]('\x20')));const _0x3a5541=schema(properties[_0x4bef99('0xf')])[_0x4bef99('0x71')](_0x3f2bef);if(_0x3a5541[_0x4bef99('0x7a')]>0x0)return _0x353206(_0x371bd8[_0x4bef99('0x82')](0x1f4,_[_0x4bef99('0x2d')](_0x3a5541,'message')[_0x4bef99('0x51')](',\x20')));const _0x3ab522=_[_0x4bef99('0x25')](_0x548b9d[_0x4bef99('0x8a')],{'uniqueid':_0x3f2bef['uniqueid']});if(_0x3ab522&&_0x3ab522['channel']){const _0x5c3038=util[_0x4bef99('0x68')](_0x4bef99('0x39'),_0x3f2bef[_0x4bef99('0x3')]||_0x3f2bef[_0x4bef99('0x83')],_0x3f2bef[_0x4bef99('0x68')]||_0x4bef99('0x44'));return ami[_0x4bef99('0x73')]({'action':_0x4bef99('0x85'),'channel':_0x3ab522[_0x4bef99('0x7')],'file':_0x5c3038,'options':_0x4bef99('0x4a')})[_0x4bef99('0x77')](function(_0x119aa7){const _0x271fe0=_0x4bef99,_0x2671f3=_['find'](_0x3ab522[_0x271fe0('0x7e')],{'filename':'/var/spool/asterisk/monitor/'+_0x5c3038[_0x271fe0('0x4b')]()});_[_0x271fe0('0x5e')](_0x2671f3)?_0x3ab522[_0x271fe0('0x7e')][_0x271fe0('0x6d')]({'filename':_0x271fe0('0x8')+_0x5c3038[_0x271fe0('0x4b')](),'createdAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'mixmonitorid':_0x119aa7[_0x271fe0('0x60')],'status':'rec'}):(_0x2671f3[_0x271fe0('0x60')]=_0x119aa7['mixmonitorid'],_0x2671f3['status']=_0x271fe0('0x17')),_0x4cda9e({'code':0xc8,'message':[_0x3f2bef[_0x271fe0('0x83')],_0x271fe0('0x27'),_0x119aa7['mixmonitorid']]['join']('\x20'),'mixmonitorid':_0x119aa7[_0x271fe0('0x60')]});})[_0x4bef99('0x53')](function(_0x447560){const _0xafcce8=_0x4bef99;_0x353206(_0x371bd8[_0xafcce8('0x82')](0x1f5,[_0x3f2bef[_0xafcce8('0x83')],_0x447560[_0xafcce8('0x19')][_0xafcce8('0x4b')]()][_0xafcce8('0x51')]('\x20')));});}else return _0x353206(_0x371bd8[_0x4bef99('0x82')](0x1f5,_0x4bef99('0x45')));});},'VoiceChannelStopMixMonitor':function(_0x30da45){const _0x417a9a=this;return new Promise(function(_0x1b72cd,_0x3e85fb){const _0x4c68c2=a1133_0x56a1;if(ami['isConnected']()==![])return _0x3e85fb(_0x417a9a['error'](0x1f4,[config['asterisk']['ip'],config[_0x4c68c2('0x34')]['username'],_0x4c68c2('0xb')][_0x4c68c2('0x51')]('\x20')));const _0x4f9a10=schema(properties[_0x4c68c2('0xf')])[_0x4c68c2('0x71')](_0x30da45);if(_0x4f9a10[_0x4c68c2('0x7a')]>0x0)return _0x3e85fb(_0x417a9a['error'](0x1f4,_['map'](_0x4f9a10,'message')[_0x4c68c2('0x51')](',\x20')));const _0x5551a7=_[_0x4c68c2('0x25')](_0x548b9d[_0x4c68c2('0x8a')],{'uniqueid':_0x30da45[_0x4c68c2('0x83')]});return _0x5551a7?Promise['resolve']()[_0x4c68c2('0x77')](function(){const _0x36a9bf=_0x4c68c2;if(_0x5551a7[_0x36a9bf('0x7')])return ami['Action']({'action':'StopMixMonitor','channel':_0x5551a7[_0x36a9bf('0x7')],'mixmonitorid':_0x30da45[_0x36a9bf('0x60')]})[_0x36a9bf('0x53')](function(){});})[_0x4c68c2('0x77')](function(){const _0x43ba30=_0x4c68c2;if(_0x5551a7['destinationchannel'])return ami[_0x43ba30('0x73')]({'action':_0x43ba30('0x1a'),'channel':_0x5551a7[_0x43ba30('0x2a')],'mixmonitorid':_0x30da45[_0x43ba30('0x60')]})[_0x43ba30('0x53')](function(){});})['then'](function(){const _0x48b02a=_0x4c68c2,_0x1c6882=_['find'](_0x5551a7[_0x48b02a('0x7e')],{'mixmonitorid':_0x30da45[_0x48b02a('0x60')]});_0x1c6882&&(_0x1c6882[_0x48b02a('0x23')]=_0x48b02a('0x28'));})[_0x4c68c2('0x77')](function(){const _0x10b8d8=_0x4c68c2,_0x373efe=util[_0x10b8d8('0x68')]('%s.%s',_0x30da45['filename']||_0x30da45[_0x10b8d8('0x83')],_0x30da45[_0x10b8d8('0x68')]||_0x10b8d8('0x44')),_0x4d2ddd=_['find'](_0x5551a7[_0x10b8d8('0x7e')],{'filename':'/var/spool/asterisk/monitor/'+_0x373efe['toLowerCase']()});_0x4d2ddd&&(_0x4d2ddd[_0x10b8d8('0x23')]='stop');})[_0x4c68c2('0x77')](function(){const _0x2c99ef=_0x4c68c2;_0x1b72cd({'code':0xc8,'message':[_0x30da45[_0x2c99ef('0x83')],_0x2c99ef('0x22')][_0x2c99ef('0x51')]('\x20')});})[_0x4c68c2('0x53')](function(_0xaa98f7){const _0x4e804c=_0x4c68c2;_0x3e85fb(_0x417a9a['error'](0x1f5,[_0x30da45[_0x4e804c('0x83')],_0xaa98f7[_0x4e804c('0x19')][_0x4e804c('0x4b')]()][_0x4e804c('0x51')]('\x20')));}):_0x3e85fb(_0x417a9a[_0x4c68c2('0x82')](0x1f5,_0x4c68c2('0x45')));});},'VoiceQueuesChannels':function(){return new Promise(function(_0x1e1638){const _0x88746c=a1133_0x56a1,_0x46c350=_[_0x88746c('0x3b')](_0x548b9d[_0x88746c('0x41')]);_0x1e1638({'count':_0x46c350[_0x88746c('0x7a')],'rows':_0x46c350});});},'VoiceQueuesChannel':function(_0xc0bc72){const _0x4c22c6=this;return new Promise(function(_0x2ccd5e,_0x396736){const _0x37a220=a1133_0x56a1,_0x27d86f=schema(properties['voicequeuechannel'])[_0x37a220('0x71')](_0xc0bc72);if(_0x27d86f[_0x37a220('0x7a')]>0x0)return _0x396736(_0x4c22c6[_0x37a220('0x82')](0x1f4,_[_0x37a220('0x2d')](_0x27d86f,_0x37a220('0x19'))[_0x37a220('0x51')](',\x20')));const _0x748a6d=_[_0x37a220('0x25')](_0x548b9d[_0x37a220('0x41')],{'uniqueid':_0xc0bc72[_0x37a220('0x83')]});if(_0x748a6d)_0x2ccd5e(_0x748a6d);else return _0x396736(_0x4c22c6[_0x37a220('0x82')](0x1f5,_0x37a220('0x45')));});},'VoiceQueuesChannelHangup':function(_0x13b635){const _0x467a79=this;return new Promise(function(_0x58a576,_0x5d60eb){const _0x3ad3b3=a1133_0x56a1;if(ami['isConnected']()==![])return _0x5d60eb(_0x467a79[_0x3ad3b3('0x82')](0x1f4,[config[_0x3ad3b3('0x34')]['ip'],config[_0x3ad3b3('0x34')][_0x3ad3b3('0x1c')],_0x3ad3b3('0xb')]['join']('\x20')));const _0x1733e3=schema(properties[_0x3ad3b3('0x5f')])['validate'](_0x13b635);if(_0x1733e3[_0x3ad3b3('0x7a')]>0x0)return _0x5d60eb(_0x467a79[_0x3ad3b3('0x82')](0x1f4,_[_0x3ad3b3('0x2d')](_0x1733e3,_0x3ad3b3('0x19'))[_0x3ad3b3('0x51')](',\x20')));const _0x13545b=_['find'](_0x548b9d[_0x3ad3b3('0x41')],{'uniqueid':_0x13b635[_0x3ad3b3('0x83')]});return _0x13545b&&_0x13545b[_0x3ad3b3('0x7')]?ami[_0x3ad3b3('0x73')]({'action':_0x3ad3b3('0x6a'),'channel':_0x13545b[_0x3ad3b3('0x7')]})[_0x3ad3b3('0x77')](function(_0x279c6e){const _0x2261a3=_0x3ad3b3;_0x58a576({'code':0xc8,'message':[_0x13b635[_0x2261a3('0x83')],_0x279c6e[_0x2261a3('0x19')][_0x2261a3('0x4b')]()][_0x2261a3('0x51')]('\x20')});})[_0x3ad3b3('0x53')](function(_0x4a7030){const _0x56d85c=_0x3ad3b3;_0x5d60eb(_0x467a79['error'](0x1f5,[_0x13b635[_0x56d85c('0x83')],_0x4a7030[_0x56d85c('0x19')][_0x56d85c('0x4b')]()][_0x56d85c('0x51')]('\x20')));}):_0x5d60eb(_0x467a79[_0x3ad3b3('0x82')](0x1f5,_0x3ad3b3('0x45')));});},'VoiceQueuesChannelRedirect':function(_0x449b02){const _0x570284=this;return new Promise(function(_0x221212,_0x24be48){const _0x50d058=a1133_0x56a1;if(ami[_0x50d058('0x58')]()==![])return _0x24be48(_0x570284['error'](0x1f4,[config[_0x50d058('0x34')]['ip'],config['asterisk'][_0x50d058('0x1c')],'ami\x20disconnected'][_0x50d058('0x51')]('\x20')));const _0x47a34e=schema(properties['voicequeuechannelredirect'])[_0x50d058('0x71')](_0x449b02);if(_0x47a34e['length']>0x0)return _0x24be48(_0x570284[_0x50d058('0x82')](0x1f4,_['map'](_0x47a34e,'message')['join'](',\x20')));const _0x1c6e2d=_[_0x50d058('0x25')](_0x548b9d[_0x50d058('0x41')],{'uniqueid':_0x449b02['uniqueid']});return _0x1c6e2d&&_0x1c6e2d[_0x50d058('0x7')]?ami[_0x50d058('0x73')]({'action':_0x50d058('0x6c'),'channel':_0x1c6e2d['channel'],'exten':_0x449b02[_0x50d058('0x84')],'context':_0x449b02['context']||_0x1c6e2d['context'],'priority':0x1})[_0x50d058('0x77')](function(_0xf134df){const _0x14660f=_0x50d058;_0x221212({'code':0xc8,'message':[_0x449b02[_0x14660f('0x83')],_0xf134df[_0x14660f('0x19')][_0x14660f('0x4b')]()]['join']('\x20')});})[_0x50d058('0x53')](function(_0x69c4c1){const _0x38ccef=_0x50d058;_0x24be48(_0x570284[_0x38ccef('0x82')](0x1f5,[_0x449b02[_0x38ccef('0x83')],_0x69c4c1['message'][_0x38ccef('0x4b')]()]['join']('\x20')));}):_0x24be48(_0x570284['error'](0x1f5,_0x50d058('0x45')));});},'Agents':function(){return new Promise(function(_0xd168c6){const _0x349647=a1133_0x56a1,_0x4ba515=_[_0x349647('0x3b')](_0x548b9d[_0x349647('0x29')]);_0xd168c6({'count':_0x4ba515[_0x349647('0x7a')],'rows':_0x4ba515});});},'Telephones':function(){return new Promise(function(_0xacd677){const _0x2aaa70=a1133_0x56a1,_0x18cc8a=_[_0x2aaa70('0x3b')](_0x548b9d[_0x2aaa70('0xc')]);_0xacd677({'count':_0x18cc8a[_0x2aaa70('0x7a')],'rows':_0x18cc8a});});},'Trunks':function(){return new Promise(function(_0x32fdc4){const _0x598da9=a1133_0x56a1,_0x1032c8=_[_0x598da9('0x3b')](_0x548b9d['trunks']);_0x32fdc4({'count':_0x1032c8[_0x598da9('0x7a')],'rows':_0x1032c8});});},'OutboundChannels':function(){return new Promise(function(_0x12b32a){const _0x557d35=a1133_0x56a1,_0x57629c=_[_0x557d35('0x3b')](_0x548b9d[_0x557d35('0x70')]);_0x12b32a({'count':_0x57629c[_0x557d35('0x7a')],'rows':_0x57629c});});},'Outbound':function(){return new Promise(function(_0x2ec7dc){const _0x46a049=a1133_0x56a1;_0x2ec7dc(_0x548b9d[_0x46a049('0x21')]);});},'Campaigns':function(){return new Promise(function(_0x55a104){const _0x297dc2=a1133_0x56a1,_0x5f12e9=_[_0x297dc2('0x3b')](_0x548b9d[_0x297dc2('0x2c')]);_0x55a104({'count':_0x5f12e9[_0x297dc2('0x7a')],'rows':_0x5f12e9});});},'VoiceQueuesPreview':function(_0x59bebf){const _0x158dee=this;return new Promise(function(_0x54b72b,_0x3d3811){const _0x58350d=a1133_0x56a1;_0x12227f[_0x58350d('0x4e')](_0x59bebf['id'])[_0x58350d('0x77')](function(_0x3d8bff){const _0x1f8355=_0x58350d;_0x54b72b({'code':0xc8,'message':_0x3d8bff[_0x1f8355('0x19')]});})[_0x58350d('0x53')](function(_0x28fb51){const _0x1e1276=_0x58350d;_0x3d3811(_0x158dee['error'](0x1f4,_0x28fb51[_0x1e1276('0x19')]));});});},'EventManager':function(_0x3e03ad){const _0x733368=this;return new Promise(function(_0x38144d,_0x28b57d){const _0x978ecf=a1133_0x56a1;if(!_0x3e03ad[_0x978ecf('0x1d')])return _0x28b57d(_0x733368[_0x978ecf('0x82')](0x1f4,_0x978ecf('0x6f')));ami[_0x978ecf('0x3d')](_0x978ecf('0x65')+_0x3e03ad[_0x978ecf('0x1d')],_0x3e03ad[_0x978ecf('0x19')]),_0x38144d({'code':0xc8,'message':_0x3e03ad});});},'FaxAccounts':function(){return new Promise(function(_0x37eb34){const _0x1c807b=a1133_0x56a1,_0x32b83c=_[_0x1c807b('0x3b')](_0x548b9d['faxAccounts']);_0x37eb34({'count':_0x32b83c['length'],'rows':_0x32b83c});});},'SendFax':function(_0xe1b7db){const _0x4e5591=this;return new Promise(function(_0x5bab24,_0x3e0efb){const _0x10a836=a1133_0x56a1;_0x1f9340[_0x10a836('0xa')](_0xe1b7db)[_0x10a836('0x77')](function(_0x394476){const _0x10123e=_0x10a836;_0x5bab24({'code':0xc8,'message':_0x394476[_0x10123e('0x19')]});})[_0x10a836('0x53')](function(_0xaf14f0){const _0x48a224=_0x10a836;_0x3e0efb(_0x4e5591[_0x48a224('0x82')](0x1f4,_0xaf14f0['message']));});});},'CheckAfterSend':function(_0x33e16b){const _0x1dc1b2=this;return new Promise(function(_0x2278e0,_0x29f41f){const _0x2e84a8=a1133_0x56a1;_0x1f9340['checkAfterSend'](_0x33e16b)[_0x2e84a8('0x77')](function(_0x53b47){const _0x34527d=_0x2e84a8;_0x2278e0({'code':0xc8,'message':_0x53b47[_0x34527d('0x19')]});})[_0x2e84a8('0x53')](function(_0x46662c){const _0x41f733=_0x2e84a8;_0x29f41f(_0x1dc1b2[_0x41f733('0x82')](0x1f4,_0x46662c[_0x41f733('0x19')]));});});}},_0x1c6359=jayson[_0xd9c349('0x67')](_0x314207)[_0xd9c349('0x38')]();_0x1c6359['on']('error',function(_0x13a54a){return _0x40f7ee(_0x13a54a);}),_0x1c6359[_0xd9c349('0x7c')](0x232a,_0xd9c349('0x9'),function(){const _0x555de9=_0xd9c349;return console[_0x555de9('0x5a')](_0x555de9('0x54'),0x232a),_0x477b99('RPC\x20listening\x20on\x20port:'+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 b51422d..345eddb 100644 --- a/server/services/ami/trigger/cmContact/index.js +++ b/server/services/ami/trigger/cmContact/index.js @@ -1 +1 @@ -const a1133_0x4093=['calleridname','Unknown','trigger','','data2','[CM][%s][%s]\x20Autocreate\x20enabled','sequelize','length','mobile','toLowerCase','fax','emit','format','[CM][%s][%s]','exec','isNil','data4','scheduledAt','firstName','destcalleridnum','lastName','routeId','stringify','../../../../config/logger','../../../../rediscache','info','isEmpty','createdAt','map','[CM][%s][%s]\x20Contact\x20found:%s','lodash','ListId','union','user:%s','phone','then','resolve','data3','name','[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]','trigger:%s','destcalleridname','xmd-contactid2','util','uniqueid'];(function(_0x5e4e34,_0x4093a1){const _0x358bfb=function(_0x2b4f01){while(--_0x2b4f01){_0x5e4e34['push'](_0x5e4e34['shift']());}};_0x358bfb(++_0x4093a1);}(a1133_0x4093,0xdd));const a1133_0x358b=function(_0x5e4e34,_0x4093a1){_0x5e4e34=_0x5e4e34-0x0;let _0x358bfb=a1133_0x4093[_0x5e4e34];return _0x358bfb;};const _0x1a706d=a1133_0x358b;'use strict';const util=require(_0x1a706d('0x2')),_=require(_0x1a706d('0x22')),logger=require(_0x1a706d('0x1b'))(_0x1a706d('0x6')),cmContactRpc=require('../../rpc/cmContact'),{Op}=require(_0x1a706d('0xa')),{getSocket}=require(_0x1a706d('0x1c')),io=getSocket();function emit(_0x2b4f01,_0x15168f,_0xa75477,_0x5f1dcc,_0x135543){const _0x3c7d0f=_0x1a706d;logger[_0x3c7d0f('0x1d')](_0x3c7d0f('0x11'),_0x2b4f01,_0x15168f['id'],_0xa75477,_0x5f1dcc,JSON[_0x3c7d0f('0x1a')](_0x135543)),io['to'](_0xa75477)[_0x3c7d0f('0xf')](_0x5f1dcc,_0x135543);}exports[_0x1a706d('0x12')]=function(_0x426367,_0x3f3612,_0x328095,_0x148389){const _0x5c9951=_0x1a706d;let _0x46834d,_0x2f1503;const _0x3fa80b={},_0x53d046=Number(_0x328095['data1']),_0x216148=_0x328095[_0x5c9951('0x8')]?Boolean(Number(_0x328095[_0x5c9951('0x8')])):![];let _0x3cd72d=[];if(_0x148389[_0x5c9951('0x1')]&&!_['isEmpty'](_0x148389[_0x5c9951('0x1')]))_0x3fa80b['id']=_0x148389[_0x5c9951('0x1')];!_0x3fa80b['id']&&(_0x3fa80b[_0x5c9951('0x23')]=_0x53d046,_0x3cd72d=_0x328095[_0x5c9951('0x29')]&&_0x328095[_0x5c9951('0x29')]!=='0'?_0x328095['data3']['split'](','):[_0x5c9951('0x26')],_0x3fa80b[Op['or']]=_[_0x5c9951('0x20')](_0x3cd72d,function(_0x455c06){const _0x418444=_0x5c9951,_0x5a9188={};return _0x5a9188[_0x455c06]=_0x148389[_0x418444('0x19')]?_0x148389['destcalleridnum']:_0x148389['calleridnum'],_0x5a9188;}));const _0x4816a7=['id','firstName',_0x5c9951('0x18'),_0x5c9951('0x26'),_0x5c9951('0xc'),_0x5c9951('0xe'),_0x5c9951('0x23'),_0x5c9951('0x1f'),_0x5c9951('0x15'),'updatedAt'],_0x163e2e=_[_0x5c9951('0x24')](_0x4816a7,_0x3cd72d);Promise[_0x5c9951('0x28')]()[_0x5c9951('0x27')](cmContactRpc['getContacts']({'attributes':_0x163e2e,'where':_0x3fa80b}))['then'](function(_0x2669c0){const _0x32c3cb=_0x5c9951;_0x2f1503=_0x2669c0;if(!_[_0x32c3cb('0x1e')](_0x2f1503)){_0x2f1503[_0x32c3cb('0xb')]===0x1?(_0x46834d=_0x2f1503[0x0],logger['info'](_0x32c3cb('0x21'),_0x148389['uniqueid'],_0x3f3612['id'],_0x46834d['id'])):logger[_0x32c3cb('0x1d')](_0x32c3cb('0x2b'),_0x148389[_0x32c3cb('0x3')],_0x3f3612['id'],_[_0x32c3cb('0x20')](_0x2f1503,'id')['join'](','));return;}else{logger[_0x32c3cb('0x1d')]('[CM][%s][%s]\x20Contact\x20not\x20found',_0x148389[_0x32c3cb('0x3')],_0x3f3612['id']);if(_0x216148){logger[_0x32c3cb('0x1d')](_0x32c3cb('0x9'),_0x148389['uniqueid'],_0x3f3612['id']);const _0x443659=_0x328095[_0x32c3cb('0x14')]&&_0x328095[_0x32c3cb('0x14')]!=='0'?_0x328095['data4']:_0x32c3cb('0x26'),_0x35cf7f={'ListId':_0x53d046};return _0x35cf7f[_0x443659]=_['isNil'](_0x148389[_0x32c3cb('0x19')])?_0x148389['calleridnum']:_0x148389[_0x32c3cb('0x17')],_[_0x32c3cb('0x13')](_0x148389[_0x32c3cb('0x19')])?_0x35cf7f[_0x32c3cb('0x16')]=_0x148389[_0x32c3cb('0x4')]&&_0x148389['calleridname']!==_0x32c3cb('0x7')?_0x148389[_0x32c3cb('0x4')]:'Unknown':_0x35cf7f[_0x32c3cb('0x16')]=_0x148389[_0x32c3cb('0x0')]&&_0x148389[_0x32c3cb('0x0')]!==_0x32c3cb('0x7')?_0x148389['destcalleridname']:_0x32c3cb('0x5'),Promise['resolve']()[_0x32c3cb('0x27')](cmContactRpc['createContact'](_0x35cf7f))[_0x32c3cb('0x27')](function(_0x578afe){const _0x42f9a1=_0x32c3cb;_0x46834d=_0x578afe;_0x46834d&&logger[_0x42f9a1('0x1d')]('[CM][%s][%s]\x20Contact\x20created:%s',_0x148389[_0x42f9a1('0x3')],_0x3f3612['id'],_0x46834d['id']);return;});}else{logger[_0x32c3cb('0x1d')]('[CM][%s][%s]\x20Autocreate\x20disabled',_0x148389[_0x32c3cb('0x3')],_0x3f3612['id']);return;}}})[_0x5c9951('0x27')](function(){const _0x25fdec=_0x5c9951;_0x426367&&emit(_0x148389[_0x25fdec('0x3')],_0x3f3612,util[_0x25fdec('0x10')](_0x25fdec('0x25'),_0x426367[_0x25fdec('0x2a')]),util[_0x25fdec('0x10')](_0x25fdec('0x2c'),_0x328095['action'][_0x25fdec('0xd')]()),{'evt':_['merge'](_0x148389,{'autoCreate':_0x216148}),'contact':_0x46834d,'contacts':!_0x46834d?_0x2f1503:undefined});});}; \ No newline at end of file +const a1134_0x2d21=['toLowerCase','[CM][%s][%s]\x20Contact\x20created:%s','calleridnum','[CM][%s][%s]\x20Multiple\x20contacts\x20found:[%s]','isEmpty','join','then','stringify','name','mobile','getContacts','data1','../../../../config/logger','destcalleridname','user:%s','calleridname','scheduledAt','format','destcalleridnum','data4','../../../../rediscache','Unknown','split','[CM][%s][%s]\x20Autocreate\x20enabled','','createContact','emit','data3','resolve','createdAt','sequelize','uniqueid','union','[CM][%s][%s]','../../rpc/cmContact','[CM][%s][%s]\x20Autocreate\x20disabled','data2','util','firstName','info','phone','[CM][%s][%s]\x20Contact\x20found:%s','routeId','xmd-contactid2','action'];(function(_0x3cd568,_0x2d214c){const _0x5454e2=function(_0x46cde2){while(--_0x46cde2){_0x3cd568['push'](_0x3cd568['shift']());}};_0x5454e2(++_0x2d214c);}(a1134_0x2d21,0x149));const a1134_0x5454=function(_0x3cd568,_0x2d214c){_0x3cd568=_0x3cd568-0x0;let _0x5454e2=a1134_0x2d21[_0x3cd568];return _0x5454e2;};const _0x26a486=a1134_0x5454;'use strict';const util=require(_0x26a486('0x17')),_=require('lodash'),logger=require(_0x26a486('0x2b'))('trigger'),cmContactRpc=require(_0x26a486('0x14')),{Op}=require(_0x26a486('0x10')),{getSocket}=require(_0x26a486('0x6')),io=getSocket();function emit(_0x46cde2,_0x3be78f,_0x5af7ff,_0xa21ab2,_0xacca03){const _0x5c0577=_0x26a486;logger['info'](_0x5c0577('0x13'),_0x46cde2,_0x3be78f['id'],_0x5af7ff,_0xa21ab2,JSON[_0x5c0577('0x26')](_0xacca03)),io['to'](_0x5af7ff)[_0x5c0577('0xc')](_0xa21ab2,_0xacca03);}exports['exec']=function(_0x59a29d,_0x111040,_0x4b3a1d,_0x4c528c){const _0x57d642=_0x26a486;let _0x13d2f8,_0x1422ec;const _0x80f593={},_0x58d49e=Number(_0x4b3a1d[_0x57d642('0x2a')]),_0x6b8de0=_0x4b3a1d['data2']?Boolean(Number(_0x4b3a1d[_0x57d642('0x16')])):![];let _0x22af26=[];if(_0x4c528c[_0x57d642('0x1d')]&&!_[_0x57d642('0x23')](_0x4c528c['xmd-contactid2']))_0x80f593['id']=_0x4c528c['xmd-contactid2'];!_0x80f593['id']&&(_0x80f593['ListId']=_0x58d49e,_0x22af26=_0x4b3a1d[_0x57d642('0xd')]&&_0x4b3a1d[_0x57d642('0xd')]!=='0'?_0x4b3a1d[_0x57d642('0xd')][_0x57d642('0x8')](','):[_0x57d642('0x1a')],_0x80f593[Op['or']]=_['map'](_0x22af26,function(_0x4ad164){const _0x450954=_0x57d642,_0x1b362e={};return _0x1b362e[_0x4ad164]=_0x4c528c['routeId']?_0x4c528c[_0x450954('0x4')]:_0x4c528c[_0x450954('0x21')],_0x1b362e;}));const _0x40fad2=['id',_0x57d642('0x18'),'lastName',_0x57d642('0x1a'),_0x57d642('0x28'),'fax','ListId',_0x57d642('0xf'),_0x57d642('0x2'),'updatedAt'],_0x330aa7=_[_0x57d642('0x12')](_0x40fad2,_0x22af26);Promise[_0x57d642('0xe')]()[_0x57d642('0x25')](cmContactRpc[_0x57d642('0x29')]({'attributes':_0x330aa7,'where':_0x80f593}))[_0x57d642('0x25')](function(_0x2cacdc){const _0xc1b12a=_0x57d642;_0x1422ec=_0x2cacdc;if(!_[_0xc1b12a('0x23')](_0x1422ec)){_0x1422ec['length']===0x1?(_0x13d2f8=_0x1422ec[0x0],logger[_0xc1b12a('0x19')](_0xc1b12a('0x1b'),_0x4c528c['uniqueid'],_0x111040['id'],_0x13d2f8['id'])):logger['info'](_0xc1b12a('0x22'),_0x4c528c[_0xc1b12a('0x11')],_0x111040['id'],_['map'](_0x1422ec,'id')[_0xc1b12a('0x24')](','));return;}else{logger[_0xc1b12a('0x19')]('[CM][%s][%s]\x20Contact\x20not\x20found',_0x4c528c[_0xc1b12a('0x11')],_0x111040['id']);if(_0x6b8de0){logger[_0xc1b12a('0x19')](_0xc1b12a('0x9'),_0x4c528c['uniqueid'],_0x111040['id']);const _0x464d73=_0x4b3a1d[_0xc1b12a('0x5')]&&_0x4b3a1d[_0xc1b12a('0x5')]!=='0'?_0x4b3a1d[_0xc1b12a('0x5')]:_0xc1b12a('0x1a'),_0x568331={'ListId':_0x58d49e};return _0x568331[_0x464d73]=_['isNil'](_0x4c528c[_0xc1b12a('0x1c')])?_0x4c528c[_0xc1b12a('0x21')]:_0x4c528c[_0xc1b12a('0x4')],_['isNil'](_0x4c528c['routeId'])?_0x568331[_0xc1b12a('0x18')]=_0x4c528c[_0xc1b12a('0x1')]&&_0x4c528c[_0xc1b12a('0x1')]!==_0xc1b12a('0xa')?_0x4c528c['calleridname']:_0xc1b12a('0x7'):_0x568331['firstName']=_0x4c528c[_0xc1b12a('0x2c')]&&_0x4c528c[_0xc1b12a('0x2c')]!==_0xc1b12a('0xa')?_0x4c528c['destcalleridname']:_0xc1b12a('0x7'),Promise['resolve']()['then'](cmContactRpc[_0xc1b12a('0xb')](_0x568331))[_0xc1b12a('0x25')](function(_0x12e8f6){const _0x1408cd=_0xc1b12a;_0x13d2f8=_0x12e8f6;_0x13d2f8&&logger[_0x1408cd('0x19')](_0x1408cd('0x20'),_0x4c528c[_0x1408cd('0x11')],_0x111040['id'],_0x13d2f8['id']);return;});}else{logger[_0xc1b12a('0x19')](_0xc1b12a('0x15'),_0x4c528c[_0xc1b12a('0x11')],_0x111040['id']);return;}}})[_0x57d642('0x25')](function(){const _0x1b5b78=_0x57d642;_0x59a29d&&emit(_0x4c528c[_0x1b5b78('0x11')],_0x111040,util[_0x1b5b78('0x3')](_0x1b5b78('0x0'),_0x59a29d[_0x1b5b78('0x27')]),util[_0x1b5b78('0x3')]('trigger:%s',_0x4b3a1d[_0x1b5b78('0x1e')][_0x1b5b78('0x1f')]()),{'evt':_['merge'](_0x4c528c,{'autoCreate':_0x6b8de0}),'contact':_0x13d2f8,'contacts':!_0x13d2f8?_0x1422ec:undefined});});}; \ No newline at end of file diff --git a/server/services/ami/trigger/index.js b/server/services/ami/trigger/index.js index 6489880..aeaf83e 100644 --- a/server/services/ami/trigger/index.js +++ b/server/services/ami/trigger/index.js @@ -1 +1 @@ -const a1134_0x11ae=['voiceExtensions','prototype','accounts','some','checkTriggers','trigger:%s','interaction','isNil','parse','queue','ChatWebsiteId','uri','chat','deskAccounts','../../../rediscache','freshdeskAccounts','value','membername','./integration','600','data2','data5','winArguments','checkTrigger','render','popup','action','event','AccountId','exports','every','AllConditions','html','custom:agentreject','operator','trigger:%s:%s','custom:acceptmessage','salesforceAccounts','windowWidth','custom:dialend','templates','custom:agentconnect','template\x20not\x20found','toLowerCase','mustache','zohoAccounts','lodash','data3','browser','routeId','account','upperFirst','custom:agentcongestion','./script','custom:closedinteraction','winApplication','info','length','800','jscripty','custom:rejectmessage','./cmContact','custom:agentnoanswer','user:%s','../ami','field','trigger','urlforward','name','search','url','variables','exec','query','custom:newinteraction','custom:agentbusy','location','custom:incomingmessage','stringify','dynamics365Accounts','custom:timeout','./urlforward','emit','zendeskAccounts','winapp','data4','format','custom:dialconnect','undefined','custom:outgoingmessage','Actions','bind','checkConditions','motionbar','custom:agentringnoanswer','agents','syncCustomEvent','contactmanager','data6','merge','triggers','freshsalesAccounts','custom:agentcalled','lastevent','windowHeight','syncAgentDial','data1','AnyConditions','channel','voiceQueues','vtigerAccounts','status','sugarcrmAccounts','interface','servicenowAccounts'];(function(_0x4e38be,_0x11aed8){const _0x6854bc=function(_0x5d392c){while(--_0x5d392c){_0x4e38be['push'](_0x4e38be['shift']());}};_0x6854bc(++_0x11aed8);}(a1134_0x11ae,0x1e6));const a1134_0x6854=function(_0x4e38be,_0x11aed8){_0x4e38be=_0x4e38be-0x0;let _0x6854bc=a1134_0x11ae[_0x4e38be];return _0x6854bc;};const _0x28bd53=a1134_0x6854;'use strict';const util=require('util'),_=require(_0x28bd53('0x14')),url=require('url'),Mustache=require(_0x28bd53('0x12')),urlforward=require(_0x28bd53('0x37')),integration=require(_0x28bd53('0x6b')),cmContact=require(_0x28bd53('0x23')),script=require(_0x28bd53('0x1b')),logger=require('../../../config/logger')(_0x28bd53('0x28')),ami=require(_0x28bd53('0x26')),{getSocket}=require(_0x28bd53('0x67')),io=getSocket(),operators={'equals':function(_0x5d392c,_0x54bb40){return _0x5d392c==_0x54bb40;},'not_equals':function(_0x1599f5,_0x323843){return _0x1599f5!=_0x323843;}},barAndWebActions=[_0x28bd53('0x72'),_0x28bd53('0x2c'),'winapp'];function Trigger(_0x28fc40){const _0x57f997=_0x28bd53;this[_0x57f997('0x4a')]=_0x28fc40[_0x57f997('0x4a')],this[_0x57f997('0x45')]=_0x28fc40[_0x57f997('0x45')],this[_0x57f997('0x53')]=_0x28fc40['voiceQueues'],this[_0x57f997('0xe')]=_0x28fc40[_0x57f997('0xe')],this['voiceExtensions']=_0x28fc40[_0x57f997('0x59')],this[_0x57f997('0x39')]=_0x28fc40['zendeskAccounts'],this[_0x57f997('0x68')]=_0x28fc40['freshdeskAccounts'],this[_0x57f997('0xb')]=_0x28fc40[_0x57f997('0xb')],this[_0x57f997('0x56')]=_0x28fc40[_0x57f997('0x56')],this[_0x57f997('0x13')]=_0x28fc40[_0x57f997('0x13')],this[_0x57f997('0x66')]=_0x28fc40[_0x57f997('0x66')],this[_0x57f997('0x54')]=_0x28fc40[_0x57f997('0x54')],this[_0x57f997('0x58')]=_0x28fc40[_0x57f997('0x58')],this[_0x57f997('0x35')]=_0x28fc40[_0x57f997('0x35')],this['freshsalesAccounts']=_0x28fc40[_0x57f997('0x4b')],this[_0x57f997('0x5b')]={'zendesk':this['zendeskAccounts'],'salesforce':this[_0x57f997('0xb')],'freshdesk':this['freshdeskAccounts'],'sugarcrm':this['sugarcrmAccounts'],'zoho':this[_0x57f997('0x13')],'desk':this[_0x57f997('0x66')],'vtiger':this[_0x57f997('0x54')],'dynamics365':this['dynamics365Accounts'],'freshsales':this['freshsalesAccounts'],'servicenow':this['servicenowAccounts']},ami['on'](_0x57f997('0x4c'),this[_0x57f997('0x46')][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0xf'),this[_0x57f997('0x46')][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x44'),this[_0x57f997('0x46')]['bind'](this)),ami['on']('custom:agentcomplete',this[_0x57f997('0x46')][_0x57f997('0x41')](this)),ami['on']('custom:agentnosuchnumber',this[_0x57f997('0x46')][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x24'),this[_0x57f997('0x46')][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x31'),this['syncCustomEvent'][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x1a'),this['syncCustomEvent'][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x7'),this['syncCustomEvent'][_0x57f997('0x41')](this)),ami['on']('custom:queuecallerabandon',this[_0x57f997('0x46')][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x36'),this[_0x57f997('0x46')][_0x57f997('0x41')](this)),ami['on']('custom:dialbegin',this[_0x57f997('0x4f')][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x3d'),this['syncAgentDial'][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0xd'),this['syncAgentDial'][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x30'),this['syncCustomEvent']['bind'](this)),ami['on'](_0x57f997('0x1c'),this[_0x57f997('0x46')]['bind'](this)),ami['on'](_0x57f997('0x33'),this['syncCustomEvent'][_0x57f997('0x41')](this)),ami['on'](_0x57f997('0x3f'),this[_0x57f997('0x46')]['bind'](this)),ami['on'](_0x57f997('0xa'),this[_0x57f997('0x46')]['bind'](this)),ami['on'](_0x57f997('0x22'),this['syncCustomEvent'][_0x57f997('0x41')](this));}Trigger[_0x28bd53('0x5a')][_0x28bd53('0x38')]=function(_0x42803c,_0x26649d,_0x530ecb){const _0x1649c9=_0x28bd53;logger[_0x1649c9('0x1e')](_0x42803c,_0x26649d,JSON[_0x1649c9('0x34')](_0x530ecb)),io['to'](_0x42803c)[_0x1649c9('0x38')](_0x26649d,_0x530ecb);},Trigger[_0x28bd53('0x5a')][_0x28bd53('0x46')]=function(_0x2ec02f){const _0x4acdb3=_0x28bd53,_0x1c2687=_['clone'](_0x2ec02f);this[_0x4acdb3('0x5d')](_0x1c2687);},Trigger['prototype']['syncAgentDial']=function(_0x295ff5){const _0x286e3a=_0x28bd53;this['agents'][_0x295ff5['interface']]&&this[_0x286e3a('0x46')](_0x295ff5);},Trigger['prototype'][_0x28bd53('0x5d')]=function(_0x9f88a8){const _0x5199b8=_0x28bd53;let _0x2a992d;for(const _0x3a67de in this['triggers']){if(typeof this[_0x5199b8('0x4a')][_0x3a67de]!==_0x5199b8('0x3e')){if(this[_0x5199b8('0x4a')][_0x3a67de][_0x5199b8('0x55')]){_0x2a992d=this['checkTrigger'](this[_0x5199b8('0x4a')][_0x3a67de],_0x9f88a8);if(_0x2a992d){_[_0x5199b8('0x49')](_0x9f88a8,_0x9f88a8[_0x5199b8('0x2d')]);for(let _0x2df46f=0x0,_0x3f4f49;_0x2df46f0x0&&(_0x404329=_[_0x3cbd4c('0x63')](_0x2e3804,_0x3e58b6)),_0x404329;}function getCustomFields(_0x44cb90,_0x2b49ff){const _0x800a2b=_0x44d753,_0x282a4a={'custom_fields':{}};return _0x44cb90[_0x800a2b('0x4c')]>0x0&&_['forEach'](_0x44cb90,function(_0x2d1bac){const _0x4ebd25=_0x800a2b;if(_0x2d1bac['type']===_0x4ebd25('0x53')&&_0x2d1bac['nameField']&&!_0x2d1bac[_0x4ebd25('0x54')])_0x282a4a[_0x2d1bac[_0x4ebd25('0x41')][_0x4ebd25('0x3b')]()]=_0x2d1bac[_0x4ebd25('0x58')][_0x4ebd25('0x7')]();else{if(_0x2d1bac[_0x4ebd25('0x64')]==='string'&&_0x2d1bac[_0x4ebd25('0x5e')]&&_0x2d1bac['customField'])_0x282a4a[_0x4ebd25('0x5b')][_0x2d1bac[_0x4ebd25('0x5e')]]=_0x2d1bac[_0x4ebd25('0x58')][_0x4ebd25('0x7')]();else{if(_0x2d1bac[_0x4ebd25('0x64')]===_0x4ebd25('0x46')&&_0x2d1bac[_0x4ebd25('0x37')]&&_0x2d1bac[_0x4ebd25('0x5e')]&&_0x2d1bac[_0x4ebd25('0x54')])_0x2b49ff[_0x2d1bac[_0x4ebd25('0x37')]]&&(_0x282a4a[_0x4ebd25('0x5b')][_0x2d1bac[_0x4ebd25('0x5e')]]=_0x2b49ff[_0x2d1bac[_0x4ebd25('0x37')]]['toString']());else _0x2d1bac['type']==='customVariable'&&_0x2d1bac[_0x4ebd25('0x21')]&&_0x2d1bac[_0x4ebd25('0x21')][_0x4ebd25('0x18')]&&_0x2d1bac['idField']&&_0x2d1bac['customField']&&(_0x2b49ff[_0x2d1bac[_0x4ebd25('0x21')][_0x4ebd25('0x18')][_0x4ebd25('0x3b')]()]&&(_0x282a4a[_0x4ebd25('0x5b')][_0x2d1bac[_0x4ebd25('0x5e')]]=_0x2b49ff[_0x2d1bac[_0x4ebd25('0x21')][_0x4ebd25('0x18')][_0x4ebd25('0x3b')]()][_0x4ebd25('0x7')]()));}}}),_0x282a4a[_0x800a2b('0x48')]&&(_0x282a4a[_0x800a2b('0x48')]=Number(_0x282a4a[_0x800a2b('0x48')])),_0x282a4a;}function getTicket(_0xfad68c,_0x1d6c3f,_0x117da5,_0xc31923,_0x1759e3){const _0x58323d=_0x44d753;logger['info']('Creating\x20new\x20ticket...');const _0x55f98a=_[_0x58323d('0x5')]({'subject':intUtil[_0x58323d('0x2')](_0xc31923['Subjects'],_0x1759e3,'\x20'),'type':_0x58323d('0x10'),'status':_0x58323d('0xd'),'labels':[_0x58323d('0x26'),_0x58323d('0x25'),_0x58323d('0x19')][_0x58323d('0x3')](getTags(_0xc31923['Tags'],'name')),'description':intUtil['getString'](_0xc31923[_0x58323d('0x33')],_0x1759e3,'\x0a'),'_links':{'assigned_user':{'href':util[_0x58323d('0x42')](_0x58323d('0x27'),_0x1d6c3f['id']),'class':_0x58323d('0x24')}},'message':{'direction':'in','body':intUtil[_0x58323d('0x2')](_0xc31923[_0x58323d('0x33')],_0x1759e3,'\x0a')}},getCustomFields(_0xc31923[_0x58323d('0x32')],_0x1759e3));return request({'uri':util['format'](_0x58323d('0x6'),_0xfad68c[_0x58323d('0x3a')],_0x117da5['id']),'method':_0x58323d('0x55'),'body':_0x55f98a});}exports[_0x44d753('0x60')]=function(_0x21d5a,_0x286b58,_0x29c20f,_0x3145ad,_0x56a20a,_0x3a1f4c){const _0x7e1619=_0x44d753;let _0x291a64,_0x33b54c;return _0x3a1f4c['remoteUri']=intUtil[_0x7e1619('0x1d')](_0x3a1f4c[_0x7e1619('0x3a')]),_0x3a1f4c['serverUrl']=intUtil[_0x7e1619('0x1d')](_0x3a1f4c[_0x7e1619('0x57')]),_0x56a20a&&_0x56a20a['monitor_format']?(logger['info'](_0x7e1619('0xb'),'Recording\x20is\x20enabled!'),_0x286b58[_0x7e1619('0xe')]=util['format'](_0x7e1619('0x51'),_0x3a1f4c[_0x7e1619('0x57')],_0x286b58[_0x7e1619('0x3f')],md5(_0x286b58['uniqueid']))):_0x286b58[_0x7e1619('0xe')]='',headers[_0x7e1619('0x38')]=getAuth(_0x3a1f4c),getUser(_0x3a1f4c,_0x3145ad[_0x7e1619('0x16')])[_0x7e1619('0x23')](function(_0x34627f){const _0xa3cd6a=_0x7e1619;return _0x291a64=_0x34627f,logger['info']('The\x20User\x20ID\x20is:',_0x291a64['id']),getEndUser(_0x3a1f4c,_0x286b58[_0xa3cd6a('0x35')],_0x286b58['calleridnum']);})[_0x7e1619('0x23')](function(_0x503f21){const _0x19aeef=_0x7e1619;return _0x33b54c=_0x503f21,logger[_0x19aeef('0x31')](_0x19aeef('0x5f'),_0x33b54c['id']),getTicket(_0x3a1f4c,_0x291a64,_0x33b54c,_0x29c20f,_0x286b58);})['then'](function(_0x3c5462){const _0x448fe9=_0x7e1619;if(_0x3c5462){logger[_0x448fe9('0x31')]('Ticket\x20created!'),logger[_0x448fe9('0x31')]('The\x20Ticket\x20ID\x20is:',_0x3c5462['id']);switch(_0x3a1f4c[_0x448fe9('0x64')]){case _0x448fe9('0x22'):logger[_0x448fe9('0x31')](_0x448fe9('0xb'),'Displaying\x20ticket\x20to\x20agent...'),emit(util['format'](_0x448fe9('0x2f'),_0x3145ad[_0x448fe9('0x18')]),_0x448fe9('0x4f'),{'recordId':_0x3c5462['id']});break;case _0x448fe9('0x8'):logger[_0x448fe9('0x31')](_0x448fe9('0xb'),_0x448fe9('0x1e')),emit(util[_0x448fe9('0x42')]('user:%s',_0x3145ad[_0x448fe9('0x18')]),_0x448fe9('0x50'),{'uri':util[_0x448fe9('0x42')](_0x448fe9('0x5d'),_0x3c5462['id'])});break;default:logger[_0x448fe9('0xc')](_0x448fe9('0xb'),_0x448fe9('0x1a'));}}})[_0x7e1619('0x4a')](function(_0x14e5f0){const _0x2589b1=_0x7e1619;console[_0x2589b1('0xc')](_0x14e5f0),logger[_0x2589b1('0xc')](_0x2589b1('0xb'),JSON[_0x2589b1('0xa')](_0x14e5f0));});},exports[_0x44d753('0x12')]=function(_0x46785e,_0x326418,_0x20eec3,_0x4e5500,_0x541780,_0x8aef22,_0x9dbd5a){const _0x41befc=_0x44d753;let _0x5eacd7,_0x516e71;return _0x8aef22[_0x41befc('0x3a')]=intUtil[_0x41befc('0x1d')](_0x8aef22[_0x41befc('0x3a')]),_0x8aef22[_0x41befc('0x57')]=intUtil[_0x41befc('0x1d')](_0x8aef22[_0x41befc('0x57')]),_0x9dbd5a&&_0x9dbd5a[_0x41befc('0x2c')]&&_0x9dbd5a[_0x41befc('0x2c')]!==_0x41befc('0x4e')&&(logger['info'](_0x41befc('0x3e'),'Recording\x20is\x20enabled!'),_0x326418[_0x41befc('0xe')]=util[_0x41befc('0x42')](_0x41befc('0x51'),_0x8aef22[_0x41befc('0x57')],_0x326418[_0x41befc('0x3f')],md5(_0x326418[_0x41befc('0x3f')]))),headers[_0x41befc('0x38')]=getAuth(_0x8aef22),getUser(_0x8aef22,_0x4e5500[_0x41befc('0x16')])[_0x41befc('0x23')](function(_0x297566){const _0x4ba70c=_0x41befc;return _0x5eacd7=_0x297566,logger[_0x4ba70c('0x31')](_0x4ba70c('0x56'),_0x5eacd7['id']),getEndUser(_0x8aef22,_0x326418[_0x4ba70c('0x5a')],_0x326418[_0x4ba70c('0x9')]);})['then'](function(_0x133a5c){const _0xa373d1=_0x41befc;return _0x516e71=_0x133a5c,logger[_0xa373d1('0x31')]('The\x20Enduser\x20ID\x20is:',_0x516e71['id']),getTicket(_0x8aef22,_0x5eacd7,_0x516e71,_0x20eec3,_0x326418);})['then'](function(_0x1d8e78){const _0x149b0d=_0x41befc;if(_0x1d8e78){logger[_0x149b0d('0x31')](_0x149b0d('0x36')),logger[_0x149b0d('0x31')](_0x149b0d('0x44'),_0x1d8e78['id']);switch(_0x8aef22['type']){case _0x149b0d('0x22'):logger['info'](_0x149b0d('0xb'),_0x149b0d('0x39')),emit(util[_0x149b0d('0x42')](_0x149b0d('0x2f'),_0x4e5500['name']),'trigger:desk:display',{'recordId':_0x1d8e78['id']});break;case'newTab':logger[_0x149b0d('0x31')]('[QUEUE]','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x149b0d('0x42')](_0x149b0d('0x2f'),_0x4e5500[_0x149b0d('0x18')]),'trigger:browser:url',{'uri':util[_0x149b0d('0x42')](_0x149b0d('0x4'),_0x8aef22[_0x149b0d('0x3a')],_0x1d8e78['id'])});break;default:logger[_0x149b0d('0xc')](_0x149b0d('0x3e'),_0x149b0d('0x1a'));}}})['catch'](function(_0x5aae4d){const _0x7e259=_0x41befc;logger[_0x7e259('0xc')](_0x7e259('0x3e'),JSON[_0x7e259('0xa')](_0x5aae4d));});},exports['unmanaged']=function(_0x2e49e5,_0x1693ee,_0x2fbcae,_0x1499ad,_0x3d5bb9,_0x296bb2){const _0x330535=_0x44d753;let _0x1d47b5,_0x46a8c6;return _0x296bb2[_0x330535('0x3a')]=intUtil[_0x330535('0x1d')](_0x296bb2[_0x330535('0x3a')]),_0x296bb2['serverUrl']=intUtil['stripTrailingSlash'](_0x296bb2[_0x330535('0x57')]),_0x3d5bb9&&_0x3d5bb9[_0x330535('0x40')]?(logger[_0x330535('0x31')]('['+_0x1693ee[_0x330535('0x45')][_0x330535('0x5c')]()+']',_0x330535('0x49')),_0x1693ee[_0x330535('0xe')]=util[_0x330535('0x42')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x296bb2[_0x330535('0x57')],_0x1693ee[_0x330535('0x3f')],md5(_0x1693ee[_0x330535('0x3f')]))):_0x1693ee[_0x330535('0xe')]='',headers[_0x330535('0x38')]=getAuth(_0x296bb2),getUser(_0x296bb2)['then'](function(_0x38f34b){const _0x17fa08=_0x330535;return _0x1d47b5=_0x38f34b,logger['info'](_0x17fa08('0x56'),_0x1d47b5['id']),getEndUser(_0x296bb2,_0x1693ee[_0x17fa08('0x35')],_0x1693ee['calleridnum']);})[_0x330535('0x23')](function(_0x2a3546){const _0x4083b3=_0x330535;return _0x46a8c6=_0x2a3546,logger[_0x4083b3('0x31')](_0x4083b3('0x5f'),_0x46a8c6['id']),getTicket(_0x296bb2,_0x1d47b5,_0x46a8c6,_0x2fbcae,_0x1693ee);})[_0x330535('0x23')](function(_0x4a51a5){const _0x396087=_0x330535;_0x4a51a5&&(logger['info'](_0x396087('0x36')),logger[_0x396087('0x31')]('The\x20Ticket\x20ID\x20is:',_0x4a51a5['id']));})[_0x330535('0x4a')](function(_0x1b5d37){const _0x521853=_0x330535;logger[_0x521853('0xc')]('['+_0x1693ee['lastevent']['toUpperCase']()+']',JSON['stringify'](_0x1b5d37));});}; \ No newline at end of file +const a1136_0x5b1f=['authType','idField','customField','Tags','CTI','phone','Authorization','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','then','forEach','/api/v2/users/%d','trigger:desk:display','concat','toUpperCase','uniqueid','base64','catch','user','[HTTP]','error','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','stringify','calleridname','work','unmanaged','The\x20User\x20ID\x20is:','The\x20Ticket\x20ID\x20is:','name','length','lastevent','Recording\x20is\x20enabled!','md5','%s/customers/search','xCALLY','remoteUri','token','%s/customers/%d/cases','defaults','merge','Fields','toString','toLowerCase','The\x20Enduser\x20ID\x20is:','Basic\x20%s','validateEmail','util','newTab','recordingURL','stripTrailingSlash','info','Desk\x20account\x20type\x20not\x20recognized','email','GET','calleridnum','debug','https://xcally.desk.com/web/agent/case/%d','type','destcalleridname','[QUEUE]','serverUrl','password','Enduser\x20found!','%s:%s','new','Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!','POST','monitor_format','Agent\x20found!','priority','../../../../rediscache','find','from','integrationTab','Creating\x20new\x20ticket...','format','lodash','string','destcalleridnum','user:%s','variableName','%s/users','Descriptions','Ticket\x20created!','application/json','total_entries','%s/agent/tickets/%s','getString','Motion','[OUTBOUND]','emit','custom_fields','entries','Getting\x20agent\x20with\x20email','Displaying\x20ticket\x20to\x20agent...','../../../../config/logger','_embedded','none','content','trigger:browser:url','%s/users/me','Variable','desk'];(function(_0x128493,_0x5b1f3f){const _0xb7e3f2=function(_0x57daf4){while(--_0x57daf4){_0x128493['push'](_0x128493['shift']());}};_0xb7e3f2(++_0x5b1f3f);}(a1136_0x5b1f,0x167));const a1136_0xb7e3=function(_0x128493,_0x5b1f3f){_0x128493=_0x128493-0x0;let _0xb7e3f2=a1136_0x5b1f[_0x128493];return _0xb7e3f2;};const _0x420dbd=a1136_0xb7e3;'use strict';const _=require(_0x420dbd('0x16')),rp=require('request-promise-native'),md5=require(_0x420dbd('0x50')),util=require(_0x420dbd('0x5e')),intUtil=require('./util'),logger=require(_0x420dbd('0x29'))(_0x420dbd('0x30')),{getSocket}=require(_0x420dbd('0x10')),io=getSocket();function emit(_0x57daf4,_0x38a6a1,_0x3f9202){const _0x6e9ea6=_0x420dbd;io['to'](_0x57daf4)[_0x6e9ea6('0x24')](_0x38a6a1,_0x3f9202);}const headers={'Content-Type':'application/json','Accept':_0x420dbd('0x1e')};function getUser(_0x2b6741,_0x100c12){const _0xe967e2=_0x420dbd;return intUtil[_0xe967e2('0x5d')](_0x100c12)===!![]?(logger['info'](_0xe967e2('0x27'),_0x100c12),request({'uri':util[_0xe967e2('0x15')](_0xe967e2('0x1b'),_0x2b6741[_0xe967e2('0x53')])})['then'](function(_0x3f2753){const _0x476281=_0xe967e2;if(_0x3f2753[_0x476281('0x1f')])return _[_0x476281('0x11')](_0x3f2753[_0x476281('0x2a')]['entries'],{'email':_0x100c12});})['then'](function(_0x37bc3b){const _0x42e275=_0xe967e2;return _0x37bc3b?(logger[_0x42e275('0x62')](_0x42e275('0xe')),_0x37bc3b):(logger[_0x42e275('0x62')](_0x42e275('0x38')),request({'uri':util[_0x42e275('0x15')](_0x42e275('0x2e'),_0x2b6741[_0x42e275('0x53')])}));})):(logger['info'](_0xe967e2('0xb')),request({'uri':util[_0xe967e2('0x15')](_0xe967e2('0x2e'),_0x2b6741[_0xe967e2('0x53')])}));}function request(_0x3fe2bc){const _0x35827c=_0x420dbd;return logger[_0x35827c('0x1')](_0x35827c('0x43'),JSON[_0x35827c('0x46')](_0x3fe2bc)),rp(_[_0x35827c('0x56')](_0x3fe2bc,{'method':_0x35827c('0x65'),'headers':headers,'json':!![]}));}function getAuth(_0x18c259){const _0x38171f=_0x420dbd;let _0x1a4fd1;if(_0x18c259[_0x38171f('0x31')]==='basic')_0x1a4fd1=util[_0x38171f('0x15')](_0x38171f('0x9'),_0x18c259['username'],_0x18c259[_0x38171f('0x7')]);else _0x18c259['authType']===_0x38171f('0x54')&&(_0x1a4fd1=util[_0x38171f('0x15')]('%s/token:%s',_0x18c259['username'],_0x18c259['token']));return util[_0x38171f('0x15')](_0x38171f('0x5c'),Buffer[_0x38171f('0x12')](_0x1a4fd1)[_0x38171f('0x59')](_0x38171f('0x40')));}function getEndUser(_0x4fdcbd,_0x565b2f,_0x45c7a4){const _0x3e9a17=_0x420dbd;return logger[_0x3e9a17('0x62')]('Searching\x20enduser\x20with\x20phone',_0x45c7a4),request({'uri':util[_0x3e9a17('0x15')](_0x3e9a17('0x51'),_0x4fdcbd[_0x3e9a17('0x53')]),'qs':{'phone':_0x45c7a4}})[_0x3e9a17('0x39')](function(_0x28ed1e){const _0x1554af=_0x3e9a17;return _0x28ed1e[_0x1554af('0x1f')]?(logger[_0x1554af('0x62')](_0x1554af('0x8')),_0x28ed1e[_0x1554af('0x2a')][_0x1554af('0x26')][0x0]):(logger[_0x1554af('0x62')]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'uri':util[_0x1554af('0x15')]('%s/customers',_0x4fdcbd[_0x1554af('0x53')]),'method':_0x1554af('0xc'),'body':{'first_name':_0x565b2f,'title':_0x565b2f,'phone_numbers':[{'type':_0x1554af('0x48'),'value':_0x45c7a4}]}}));});}function getTags(_0x4871c0,_0xadc8ab){const _0x1245e1=_0x420dbd;let _0x4d15ca=[];return _0x4871c0&&_0x4871c0[_0x1245e1('0x4d')]>0x0&&(_0x4d15ca=_['map'](_0x4871c0,_0xadc8ab)),_0x4d15ca;}function getCustomFields(_0x523255,_0x5ae6e6){const _0x37884c=_0x420dbd,_0x29833f={'custom_fields':{}};return _0x523255['length']>0x0&&_[_0x37884c('0x3a')](_0x523255,function(_0xd6cf9f){const _0x6a42d2=_0x37884c;if(_0xd6cf9f[_0x6a42d2('0x3')]===_0x6a42d2('0x17')&&_0xd6cf9f['nameField']&&!_0xd6cf9f['customField'])_0x29833f[_0xd6cf9f['nameField'][_0x6a42d2('0x5a')]()]=_0xd6cf9f['content'][_0x6a42d2('0x59')]();else{if(_0xd6cf9f['type']===_0x6a42d2('0x17')&&_0xd6cf9f[_0x6a42d2('0x32')]&&_0xd6cf9f[_0x6a42d2('0x33')])_0x29833f[_0x6a42d2('0x25')][_0xd6cf9f[_0x6a42d2('0x32')]]=_0xd6cf9f[_0x6a42d2('0x2c')][_0x6a42d2('0x59')]();else{if(_0xd6cf9f[_0x6a42d2('0x3')]==='variable'&&_0xd6cf9f[_0x6a42d2('0x1a')]&&_0xd6cf9f[_0x6a42d2('0x32')]&&_0xd6cf9f[_0x6a42d2('0x33')])_0x5ae6e6[_0xd6cf9f[_0x6a42d2('0x1a')]]&&(_0x29833f[_0x6a42d2('0x25')][_0xd6cf9f['idField']]=_0x5ae6e6[_0xd6cf9f[_0x6a42d2('0x1a')]][_0x6a42d2('0x59')]());else _0xd6cf9f[_0x6a42d2('0x3')]==='customVariable'&&_0xd6cf9f[_0x6a42d2('0x2f')]&&_0xd6cf9f[_0x6a42d2('0x2f')][_0x6a42d2('0x4c')]&&_0xd6cf9f['idField']&&_0xd6cf9f['customField']&&(_0x5ae6e6[_0xd6cf9f[_0x6a42d2('0x2f')][_0x6a42d2('0x4c')][_0x6a42d2('0x5a')]()]&&(_0x29833f[_0x6a42d2('0x25')][_0xd6cf9f[_0x6a42d2('0x32')]]=_0x5ae6e6[_0xd6cf9f['Variable']['name'][_0x6a42d2('0x5a')]()][_0x6a42d2('0x59')]()));}}}),_0x29833f[_0x37884c('0xf')]&&(_0x29833f[_0x37884c('0xf')]=Number(_0x29833f['priority'])),_0x29833f;}function getTicket(_0x5b6017,_0x2fd882,_0x2740c3,_0x556e12,_0xe05291){const _0x3207d6=_0x420dbd;logger[_0x3207d6('0x62')](_0x3207d6('0x14'));const _0x5e7b73=_[_0x3207d6('0x57')]({'subject':intUtil[_0x3207d6('0x21')](_0x556e12['Subjects'],_0xe05291,'\x20'),'type':_0x3207d6('0x36'),'status':_0x3207d6('0xa'),'labels':[_0x3207d6('0x52'),_0x3207d6('0x22'),_0x3207d6('0x35')][_0x3207d6('0x3d')](getTags(_0x556e12[_0x3207d6('0x34')],'name')),'description':intUtil[_0x3207d6('0x21')](_0x556e12[_0x3207d6('0x1c')],_0xe05291,'\x0a'),'_links':{'assigned_user':{'href':util[_0x3207d6('0x15')](_0x3207d6('0x3b'),_0x2fd882['id']),'class':_0x3207d6('0x42')}},'message':{'direction':'in','body':intUtil[_0x3207d6('0x21')](_0x556e12[_0x3207d6('0x1c')],_0xe05291,'\x0a')}},getCustomFields(_0x556e12[_0x3207d6('0x58')],_0xe05291));return request({'uri':util['format'](_0x3207d6('0x55'),_0x5b6017[_0x3207d6('0x53')],_0x2740c3['id']),'method':_0x3207d6('0xc'),'body':_0x5e7b73});}exports['queue']=function(_0x502b76,_0x8d2930,_0x136010,_0x2dea59,_0x36d62f,_0x785b70){const _0xe725cf=_0x420dbd;let _0x473df2,_0x27de01;return _0x785b70[_0xe725cf('0x53')]=intUtil[_0xe725cf('0x61')](_0x785b70[_0xe725cf('0x53')]),_0x785b70[_0xe725cf('0x6')]=intUtil[_0xe725cf('0x61')](_0x785b70['serverUrl']),_0x36d62f&&_0x36d62f['monitor_format']?(logger[_0xe725cf('0x62')](_0xe725cf('0x5'),_0xe725cf('0x4f')),_0x8d2930[_0xe725cf('0x60')]=util[_0xe725cf('0x15')](_0xe725cf('0x45'),_0x785b70[_0xe725cf('0x6')],_0x8d2930[_0xe725cf('0x3f')],md5(_0x8d2930[_0xe725cf('0x3f')]))):_0x8d2930['recordingURL']='',headers[_0xe725cf('0x37')]=getAuth(_0x785b70),getUser(_0x785b70,_0x2dea59[_0xe725cf('0x64')])[_0xe725cf('0x39')](function(_0x14d189){const _0x323155=_0xe725cf;return _0x473df2=_0x14d189,logger[_0x323155('0x62')](_0x323155('0x4a'),_0x473df2['id']),getEndUser(_0x785b70,_0x8d2930[_0x323155('0x47')],_0x8d2930[_0x323155('0x0')]);})[_0xe725cf('0x39')](function(_0x14d26e){const _0x481d73=_0xe725cf;return _0x27de01=_0x14d26e,logger[_0x481d73('0x62')](_0x481d73('0x5b'),_0x27de01['id']),getTicket(_0x785b70,_0x473df2,_0x27de01,_0x136010,_0x8d2930);})['then'](function(_0x1a145d){const _0xb2a023=_0xe725cf;if(_0x1a145d){logger[_0xb2a023('0x62')](_0xb2a023('0x1d')),logger[_0xb2a023('0x62')](_0xb2a023('0x4b'),_0x1a145d['id']);switch(_0x785b70[_0xb2a023('0x3')]){case _0xb2a023('0x13'):logger[_0xb2a023('0x62')](_0xb2a023('0x5'),_0xb2a023('0x28')),emit(util['format'](_0xb2a023('0x19'),_0x2dea59[_0xb2a023('0x4c')]),'trigger:desk:display',{'recordId':_0x1a145d['id']});break;case _0xb2a023('0x5f'):logger[_0xb2a023('0x62')](_0xb2a023('0x5'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util['format']('user:%s',_0x2dea59['name']),_0xb2a023('0x2d'),{'uri':util[_0xb2a023('0x15')](_0xb2a023('0x2'),_0x1a145d['id'])});break;default:logger[_0xb2a023('0x44')](_0xb2a023('0x5'),_0xb2a023('0x63'));}}})[_0xe725cf('0x41')](function(_0x6d4753){const _0x5acf6d=_0xe725cf;console[_0x5acf6d('0x44')](_0x6d4753),logger[_0x5acf6d('0x44')]('[QUEUE]',JSON['stringify'](_0x6d4753));});},exports['outbound']=function(_0x471bb4,_0x2487d9,_0x1ff461,_0x1cfe31,_0x348a0c,_0x4174f4,_0x14fbf1){const _0x2a76f4=_0x420dbd;let _0x455d5e,_0x514da8;return _0x4174f4[_0x2a76f4('0x53')]=intUtil['stripTrailingSlash'](_0x4174f4[_0x2a76f4('0x53')]),_0x4174f4[_0x2a76f4('0x6')]=intUtil[_0x2a76f4('0x61')](_0x4174f4['serverUrl']),_0x14fbf1&&_0x14fbf1['recordingFormat']&&_0x14fbf1['recordingFormat']!==_0x2a76f4('0x2b')&&(logger[_0x2a76f4('0x62')](_0x2a76f4('0x23'),_0x2a76f4('0x4f')),_0x2487d9[_0x2a76f4('0x60')]=util[_0x2a76f4('0x15')](_0x2a76f4('0x45'),_0x4174f4[_0x2a76f4('0x6')],_0x2487d9['uniqueid'],md5(_0x2487d9[_0x2a76f4('0x3f')]))),headers[_0x2a76f4('0x37')]=getAuth(_0x4174f4),getUser(_0x4174f4,_0x1cfe31[_0x2a76f4('0x64')])[_0x2a76f4('0x39')](function(_0x3ee65e){const _0x41db15=_0x2a76f4;return _0x455d5e=_0x3ee65e,logger[_0x41db15('0x62')](_0x41db15('0x4a'),_0x455d5e['id']),getEndUser(_0x4174f4,_0x2487d9[_0x41db15('0x4')],_0x2487d9[_0x41db15('0x18')]);})[_0x2a76f4('0x39')](function(_0x317eae){const _0xc355d7=_0x2a76f4;return _0x514da8=_0x317eae,logger['info'](_0xc355d7('0x5b'),_0x514da8['id']),getTicket(_0x4174f4,_0x455d5e,_0x514da8,_0x1ff461,_0x2487d9);})[_0x2a76f4('0x39')](function(_0x171433){const _0x2e97da=_0x2a76f4;if(_0x171433){logger[_0x2e97da('0x62')](_0x2e97da('0x1d')),logger[_0x2e97da('0x62')]('The\x20Ticket\x20ID\x20is:',_0x171433['id']);switch(_0x4174f4[_0x2e97da('0x3')]){case _0x2e97da('0x13'):logger['info'](_0x2e97da('0x5'),_0x2e97da('0x28')),emit(util[_0x2e97da('0x15')](_0x2e97da('0x19'),_0x1cfe31[_0x2e97da('0x4c')]),_0x2e97da('0x3c'),{'recordId':_0x171433['id']});break;case _0x2e97da('0x5f'):logger[_0x2e97da('0x62')](_0x2e97da('0x5'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x2e97da('0x15')]('user:%s',_0x1cfe31['name']),_0x2e97da('0x2d'),{'uri':util[_0x2e97da('0x15')](_0x2e97da('0x20'),_0x4174f4[_0x2e97da('0x53')],_0x171433['id'])});break;default:logger[_0x2e97da('0x44')]('[OUTBOUND]','Desk\x20account\x20type\x20not\x20recognized');}}})[_0x2a76f4('0x41')](function(_0x17fbe6){const _0x21e1b6=_0x2a76f4;logger[_0x21e1b6('0x44')](_0x21e1b6('0x23'),JSON['stringify'](_0x17fbe6));});},exports[_0x420dbd('0x49')]=function(_0x3e9fc5,_0x1fdd9c,_0x5a19cf,_0x39546e,_0xd1d62e,_0x50d0d7){const _0xe81d71=_0x420dbd;let _0x4d758d,_0x106c66;return _0x50d0d7[_0xe81d71('0x53')]=intUtil[_0xe81d71('0x61')](_0x50d0d7['remoteUri']),_0x50d0d7['serverUrl']=intUtil[_0xe81d71('0x61')](_0x50d0d7[_0xe81d71('0x6')]),_0xd1d62e&&_0xd1d62e[_0xe81d71('0xd')]?(logger[_0xe81d71('0x62')]('['+_0x1fdd9c['lastevent'][_0xe81d71('0x3e')]()+']',_0xe81d71('0x4f')),_0x1fdd9c[_0xe81d71('0x60')]=util[_0xe81d71('0x15')](_0xe81d71('0x45'),_0x50d0d7[_0xe81d71('0x6')],_0x1fdd9c[_0xe81d71('0x3f')],md5(_0x1fdd9c[_0xe81d71('0x3f')]))):_0x1fdd9c['recordingURL']='',headers[_0xe81d71('0x37')]=getAuth(_0x50d0d7),getUser(_0x50d0d7)[_0xe81d71('0x39')](function(_0xa9b837){const _0x574010=_0xe81d71;return _0x4d758d=_0xa9b837,logger[_0x574010('0x62')](_0x574010('0x4a'),_0x4d758d['id']),getEndUser(_0x50d0d7,_0x1fdd9c['calleridname'],_0x1fdd9c[_0x574010('0x0')]);})[_0xe81d71('0x39')](function(_0x4ade25){const _0x1366c6=_0xe81d71;return _0x106c66=_0x4ade25,logger[_0x1366c6('0x62')](_0x1366c6('0x5b'),_0x106c66['id']),getTicket(_0x50d0d7,_0x4d758d,_0x106c66,_0x5a19cf,_0x1fdd9c);})[_0xe81d71('0x39')](function(_0x376ed2){const _0x49ed04=_0xe81d71;_0x376ed2&&(logger[_0x49ed04('0x62')](_0x49ed04('0x1d')),logger[_0x49ed04('0x62')](_0x49ed04('0x4b'),_0x376ed2['id']));})['catch'](function(_0x106ef5){const _0x2912c8=_0xe81d71;logger[_0x2912c8('0x44')]('['+_0x1fdd9c[_0x2912c8('0x4e')][_0x2912c8('0x3e')]()+']',JSON[_0x2912c8('0x46')](_0x106ef5));});}; \ 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 ea78f2e..4b6ec35 100644 --- a/server/services/ami/trigger/integration/dynamics365.js +++ b/server/services/ami/trigger/integration/dynamics365.js @@ -1 +1 @@ -const a1136_0x1a9a=['dynamics365','incidents','content','callDirection','userEmail','toUpperCase','Recording\x20is\x20enabled!',']\x20The\x20Enduser\x20phone\x20is:','clientId','contactid','enduserId','username','getString','remoteUri','phonecalls','isNil','unmanaged','lodash','tenantId','ticketId','%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s','incident','destcalleridnum','trigger:browser:url','recordingURL','request-promise-native','name','error','md5','outbound','info','telephone1','%s/api/data/v9.0/','substring','message','then','toLowerCase','validateEmail','value','clientSecret',']\x20Error\x20running\x20Dynamics365\x20integration','length','type','string','lastIndexOf','inspect','Descriptions',']\x20Agent\x20found\x20','../../../../config/logger','isdisabled','forEach','/systemusers(','Subjects','Bearer\x20',']\x20Enduser\x20Created!','assign','nameField','userId','contacts','/contacts(','emit','4.0','[QUEUE]','serverUrl','systemuserid','headers','stripTrailingSlash','calleridnum',']\x20The\x20User\x20ID\x20is:',']\x20The\x20User\x20email\x20is:','./util','phonecall','indexOf','uniqueid','ticketType','GET','format','internalemailaddress','queue','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',']\x20Wrong\x20credentials!','util','Fields','odata-entityid','[OUTBOUND]','email','user:%s','POST','catch',']\x20The\x20%s\x20ID\x20is:\x20%s','monitor_format'];(function(_0x1ea216,_0x1a9a2d){const _0xb01d03=function(_0x5019fd){while(--_0x5019fd){_0x1ea216['push'](_0x1ea216['shift']());}};_0xb01d03(++_0x1a9a2d);}(a1136_0x1a9a,0x7d));const a1136_0xb01d=function(_0x1ea216,_0x1a9a2d){_0x1ea216=_0x1ea216-0x0;let _0xb01d03=a1136_0x1a9a[_0x1ea216];return _0xb01d03;};const _0x3e3beb=a1136_0xb01d;'use strict';const _=require(_0x3e3beb('0x4a')),rp=require(_0x3e3beb('0x52')),util=require(_0x3e3beb('0x2f')),intUtil=require(_0x3e3beb('0x24')),md5=require(_0x3e3beb('0x55')),logger=require(_0x3e3beb('0xe'))(_0x3e3beb('0x39')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAuthToken(_0x5019fd,_0x886724,_0x29f66c){const _0x5f0d1c=_0x3e3beb,_0x2e0c2f={'method':_0x5f0d1c('0x35'),'uri':_0x886724,'form':{'client_id':_0x5019fd[_0x5f0d1c('0x41')],'resource':_0x5019fd[_0x5f0d1c('0x46')],'username':_0x5019fd[_0x5f0d1c('0x44')],'password':_0x5019fd['password'],'grant_type':'password','client_secret':_0x5019fd[_0x5f0d1c('0x5')]},'json':!![]};return rp(_0x2e0c2f)['then'](function(_0x4fed90){return _0x4fed90['access_token'];})[_0x5f0d1c('0x36')](function(_0x353339){const _0x57ce0d=_0x5f0d1c;return logger[_0x57ce0d('0x54')]('['+[_0x29f66c[_0x57ce0d('0x3e')]()]+_0x57ce0d('0x2e')),_0x353339['message'];});}function getUser(_0x5cdbd5,_0x5b77be,_0x4ae428,_0x1881a0,_0x4dc8f1,_0x27771c){return new Promise(function(_0x11b683,_0x3194d2){const _0x2db2a5=a1136_0xb01d;return getAuthToken(_0x5b77be,_0x1881a0,_0x27771c)[_0x2db2a5('0x1')](function(_0x5992a5){const _0x56bdab=_0x2db2a5,_0x2443d2={'method':_0x56bdab('0x29'),'uri':_0x4dc8f1+'systemusers?$select=internalemailaddress,isdisabled,systemuserid','headers':{'Authorization':_0x56bdab('0x13')+_0x5992a5,'OData-Version':_0x56bdab('0x1b')},'json':!![]};return rp(_0x2443d2);})[_0x2db2a5('0x1')](function(_0x27c352){const _0x3f02f4=_0x2db2a5,_0x373beb=_0x27c352[_0x3f02f4('0x4')];let _0x15ea42=![],_0x3b0968=null;if(!_[_0x3f02f4('0x48')](_0x4ae428)){if(intUtil[_0x3f02f4('0x3')](_0x4ae428[_0x3f02f4('0x33')])){_0x5cdbd5[_0x3f02f4('0x3d')]=_0x4ae428[_0x3f02f4('0x33')];for(_0x3b0968=0x0;_0x3b0968<_0x373beb[_0x3f02f4('0x7')];_0x3b0968++){_0x373beb[_0x3b0968]['internalemailaddress']===_0x4ae428['email']&&!_0x373beb[_0x3b0968][_0x3f02f4('0xf')]&&(_0x15ea42=!![],logger[_0x3f02f4('0x57')]('['+[_0x27771c[_0x3f02f4('0x3e')]()]+_0x3f02f4('0xd')+_0x373beb[_0x3b0968][_0x3f02f4('0x1e')]+'!'),_0x5cdbd5[_0x3f02f4('0x17')]=_0x373beb[_0x3b0968][_0x3f02f4('0x1e')]);}}}if(!_0x15ea42){logger['info']('['+[_0x27771c[_0x3f02f4('0x3e')]()]+']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),_0x5cdbd5[_0x3f02f4('0x3d')]=_0x5b77be[_0x3f02f4('0x44')];for(_0x3b0968=0x0;_0x3b0968<_0x373beb['length'];_0x3b0968++){_0x373beb[_0x3b0968][_0x3f02f4('0x2b')]===_0x5b77be['username']&&(_0x5cdbd5[_0x3f02f4('0x17')]=_0x373beb[_0x3b0968][_0x3f02f4('0x1e')]);}}_0x11b683(_0x5cdbd5);})['catch'](function(_0x5c4870){_0x3194d2(_0x5c4870['message']);});});}function createEndUser(_0x4974d5,_0x27bb45,_0x7ca2dc,_0x311dac,_0x992ceb,_0x49f495){return new Promise(function(_0x468c3e,_0x209c20){const _0xec5830=a1136_0xb01d;return getAuthToken(_0x27bb45,_0x7ca2dc,_0x49f495)[_0xec5830('0x1')](function(_0x4eeb6d){const _0x14819e=_0xec5830,_0x32d29e=_0x49f495[_0x14819e('0x2')]()==='outbound'?_0x992ceb[_0x14819e('0x4f')]:_0x992ceb[_0x14819e('0x21')],_0x568d4a={'method':'POST','uri':_0x311dac+_0x14819e('0x18'),'body':{'telephone1':_0x32d29e,'fullname':_0x32d29e,'firstname':_0x32d29e,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x14819e('0x11')+_0x4974d5[_0x14819e('0x17')]+')'},'headers':{'Authorization':_0x14819e('0x13')+_0x4eeb6d,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x568d4a);})[_0xec5830('0x1')](function(_0x1b81a3){const _0x3e8591=_0xec5830,_0x390850=_0x1b81a3['headers'][_0x3e8591('0x31')],_0x400c05=_0x390850[_0x3e8591('0x5a')](_0x390850[_0x3e8591('0xa')]('(')+0x1,_0x390850[_0x3e8591('0xa')](')'));_0x4974d5[_0x3e8591('0x43')]=_0x400c05,_0x468c3e(_0x4974d5);})[_0xec5830('0x36')](function(_0x187a2c){const _0xb9b7a5=_0xec5830;_0x209c20(_0x187a2c[_0xb9b7a5('0x0')]);});});}function getEndUser(_0x225292,_0x4c24f7,_0x11129e,_0x26078d,_0x485ca0,_0x265ee8){return new Promise(function(_0xcecb70){const _0x408332=a1136_0xb01d;return getAuthToken(_0x4c24f7,_0x11129e,_0x265ee8)[_0x408332('0x1')](function(_0x102ef5){const _0x6c3bd=_0x408332,_0x43237a={'method':_0x6c3bd('0x29'),'uri':_0x26078d+'contacts?$select=telephone1','headers':{'Authorization':_0x6c3bd('0x13')+_0x102ef5,'If-None-Match':null,'OData-Version':_0x6c3bd('0x1b')},'json':!![]};return rp(_0x43237a);})['then'](function(_0x4ead1a){const _0x49ecc5=_0x408332;let _0x207945=null;if(_0x4ead1a){const _0x274652=_0x4ead1a[_0x49ecc5('0x4')];let _0x386ca7=![];for(_0x207945=0x0;_0x207945<_0x274652[_0x49ecc5('0x7')];_0x207945++){const _0x387c32=_0x265ee8[_0x49ecc5('0x2')]()===_0x49ecc5('0x56')?_0x485ca0['destcalleridnum']:_0x485ca0['calleridnum'];_0x274652[_0x207945][_0x49ecc5('0x58')]===_0x387c32&&(_0x386ca7=!![],_0x225292[_0x49ecc5('0x43')]=_0x274652[_0x207945][_0x49ecc5('0x42')]);}if(_0x386ca7)_0xcecb70(_0x225292);else return createEndUser(_0x225292,_0x4c24f7,_0x11129e,_0x26078d,_0x485ca0,_0x265ee8)[_0x49ecc5('0x1')](function(_0x4b67b1){const _0x1b24b6=_0x49ecc5;logger[_0x1b24b6('0x57')]('['+[_0x265ee8['toUpperCase']()]+']\x20Enduser\x20created!',_0x4b67b1['enduserId']),_0xcecb70(_0x4b67b1);});}else return createEndUser(_0x225292,_0x4c24f7,_0x11129e,_0x26078d,_0x485ca0,_0x265ee8)[_0x49ecc5('0x1')](function(_0xfefd03){const _0x4226d3=_0x49ecc5;logger[_0x4226d3('0x57')]('['+[_0x265ee8['toUpperCase']()]+_0x4226d3('0x14'),_0xfefd03[_0x4226d3('0x43')]),_0xcecb70(_0xfefd03);});});});}function getCustomFields(_0x82c444,_0x5c4c60,_0x193b40){const _0x2d14df=_0x3e3beb,_0x3d93aa={};return _0x82c444[_0x2d14df('0x7')]>0x0&&_[_0x2d14df('0x10')](_0x82c444,function(_0x5e3854){const _0x2d7749=_0x2d14df;if(_0x5e3854[_0x2d7749('0x8')]===_0x2d7749('0x9')&&_0x5e3854[_0x2d7749('0x16')]&&!_0x5e3854['customField']){const _0x11e011=_0x5e3854['idField'][_0x2d7749('0x2')](),_0x498d81=_0x11e011['substring'](0x0,_0x11e011[_0x2d7749('0x26')]('_')),_0x4439a1=_0x11e011[_0x2d7749('0x5a')](_0x11e011[_0x2d7749('0x26')]('_')+0x1);_0x498d81===_0x193b40&&(_0x3d93aa[_0x4439a1]=_0x5e3854[_0x2d7749('0x3b')]);}}),_0x3d93aa;}function getTicket(_0x30b6f2,_0x17be0a,_0x2eaf53,_0x3cbdc5,_0x130191,_0x2d66ef,_0x1a7bd3){return new Promise(function(_0x3aa445,_0x157ef5){const _0x25171b=a1136_0xb01d;let _0x40e436;return getAuthToken(_0x17be0a,_0x2eaf53,_0x1a7bd3)['then'](function(_0x20c851){const _0x4cccfe=a1136_0xb01d;return _0x2d66ef[_0x4cccfe('0x28')]===_0x4cccfe('0x4e')&&(_0x40e436={'method':_0x4cccfe('0x35'),'uri':_0x3cbdc5+_0x4cccfe('0x3a'),'body':Object[_0x4cccfe('0x15')]({},{'title':intUtil[_0x4cccfe('0x45')](_0x2d66ef['Subjects'],_0x130191,'\x20'),'description':intUtil[_0x4cccfe('0x45')](_0x2d66ef[_0x4cccfe('0xc')],_0x130191,'\x0a'),'customerid_contact@odata.bind':_0x4cccfe('0x19')+_0x30b6f2['enduserId']+')','ownerid@odata.bind':'/systemusers('+_0x30b6f2['userId']+')','caseorigincode':'1'},getCustomFields(_0x2d66ef[_0x4cccfe('0x30')],_0x130191,_0x2d66ef[_0x4cccfe('0x28')])),'headers':{'Authorization':_0x4cccfe('0x13')+_0x20c851,'OData-Version':_0x4cccfe('0x1b')},'json':!![],'resolveWithFullResponse':!![]}),_0x2d66ef[_0x4cccfe('0x28')]===_0x4cccfe('0x25')&&(_0x40e436={'method':_0x4cccfe('0x35'),'uri':_0x3cbdc5+_0x4cccfe('0x47'),'body':Object['assign']({},{'subject':intUtil['getString'](_0x2d66ef[_0x4cccfe('0x12')],_0x130191,'\x20'),'phonenumber':String(_0x130191[_0x4cccfe('0x21')]),'description':intUtil['getString'](_0x2d66ef['Descriptions'],_0x130191,'\x0a'),'regardingobjectid_contact@odata.bind':_0x4cccfe('0x19')+_0x30b6f2[_0x4cccfe('0x43')]+')','ownerid@odata.bind':'/systemusers('+_0x30b6f2['userId']+')','directioncode':_0x30b6f2['callDirection']==='queue'?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':_0x4cccfe('0x11')+_0x30b6f2['userId']+')','participationtypemask':_0x30b6f2['callDirection']===_0x4cccfe('0x2c')?0x2:0x1},{'partyid_contact@odata.bind':_0x4cccfe('0x19')+_0x30b6f2[_0x4cccfe('0x43')]+')','participationtypemask':_0x30b6f2[_0x4cccfe('0x3c')]===_0x4cccfe('0x2c')?0x1:0x2}]},getCustomFields(_0x2d66ef[_0x4cccfe('0x30')],_0x130191,_0x2d66ef[_0x4cccfe('0x28')])),'headers':{'Authorization':_0x4cccfe('0x13')+_0x20c851,'OData-Version':_0x4cccfe('0x1b')},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x40e436);})[_0x25171b('0x1')](function(_0x240035){const _0x24aff9=_0x25171b,_0x3f743e=_0x240035[_0x24aff9('0x1f')]['odata-entityid'],_0x1ab249=_0x3f743e[_0x24aff9('0x5a')](_0x3f743e[_0x24aff9('0xa')]('(')+0x1,_0x3f743e['lastIndexOf'](')'));_0x30b6f2[_0x24aff9('0x4c')]=_0x1ab249,_0x3aa445(_0x30b6f2);})[_0x25171b('0x36')](function(_0x264e52){const _0x598e0a=_0x25171b;_0x157ef5(_0x264e52[_0x598e0a('0x0')]);});});}function emit(_0x4aa004,_0x2bd069,_0x374a41,_0x3e5913){const _0x587959=_0x3e3beb,_0x5c226d={'uri':util[_0x587959('0x2a')](_0x587959('0x4d'),_0x4aa004,_0x374a41,_0x3e5913)};io['to'](util[_0x587959('0x2a')](_0x587959('0x34'),_0x2bd069))[_0x587959('0x1a')](_0x587959('0x50'),_0x5c226d);}exports['cs']=function(_0xfecc9,_0x1542c6,_0x953aca,_0x132a25,_0x3a919e,_0x55744a,_0x58087b,_0x781459){const _0x3d68bf=_0x3e3beb,_0x2e9480={};_0x55744a[_0x3d68bf('0x46')]=intUtil[_0x3d68bf('0x20')](_0x55744a[_0x3d68bf('0x46')]),_0x55744a['serverUrl']=intUtil[_0x3d68bf('0x20')](_0x55744a[_0x3d68bf('0x1d')]),_0x2e9480[_0x3d68bf('0x3c')]=_0x781459==='queue'||_0x781459===_0x3d68bf('0x49')?_0x3d68bf('0x2c'):_0x3d68bf('0x56');const _0x2f0238=util[_0x3d68bf('0x2a')](_0x3d68bf('0x59'),_0x55744a[_0x3d68bf('0x46')]),_0x120ab1=util[_0x3d68bf('0x2a')]('https://login.microsoftonline.com/%s/oauth2/token',_0x55744a[_0x3d68bf('0x4b')]),_0x15e54c=util[_0x3d68bf('0x2a')](_0x3d68bf('0x2d'),_0x55744a[_0x3d68bf('0x1d')],_0x1542c6[_0x3d68bf('0x27')],md5(_0x1542c6['uniqueid']));if(_0x3a919e&&_0x3a919e[_0x3d68bf('0x38')])logger['info'](_0x3d68bf('0x1c'),_0x3d68bf('0x3f')),_0x1542c6[_0x3d68bf('0x51')]=_0x15e54c;else _0x58087b&&_0x58087b['recordingFormat']&&_0x58087b['recordingFormat']!=='none'?(logger[_0x3d68bf('0x57')](_0x3d68bf('0x32'),'Recording\x20is\x20enabled!'),_0x1542c6[_0x3d68bf('0x51')]=_0x15e54c):_0x1542c6['recordingURL']='';return getUser(_0x2e9480,_0x55744a,_0x132a25,_0x120ab1,_0x2f0238,_0x781459)[_0x3d68bf('0x1')](function(_0x5cc592){const _0x542b11=_0x3d68bf;return logger[_0x542b11('0x57')]('['+_0x781459[_0x542b11('0x3e')]()+_0x542b11('0x22'),_0x5cc592[_0x542b11('0x17')]),logger[_0x542b11('0x57')]('['+_0x781459[_0x542b11('0x3e')]()+_0x542b11('0x23'),_0x5cc592[_0x542b11('0x3d')]),getEndUser(_0x5cc592,_0x55744a,_0x120ab1,_0x2f0238,_0x1542c6,_0x781459);})[_0x3d68bf('0x1')](function(_0x5f4cae){const _0x5767f9=_0x3d68bf;return logger['info']('['+_0x781459['toUpperCase']()+']\x20The\x20Enduser\x20ID\x20is:',_0x5f4cae[_0x5767f9('0x43')]),logger[_0x5767f9('0x57')]('['+_0x781459[_0x5767f9('0x3e')]()+_0x5767f9('0x40'),_0x1542c6[_0x5767f9('0x21')]),getTicket(_0x5f4cae,_0x55744a,_0x120ab1,_0x2f0238,_0x1542c6,_0x953aca,_0x781459);})['then'](function(_0x3a20b7){const _0x463227=_0x3d68bf;logger[_0x463227('0x57')](util[_0x463227('0x2a')]('['+_0x781459['toUpperCase']()+_0x463227('0x37'),_0x953aca[_0x463227('0x28')],_0x3a20b7[_0x463227('0x4c')])),logger['info'](util[_0x463227('0x2a')]('['+_0x781459['toUpperCase']()+']\x20Call\x20direction:\x20%s',_0x781459)),_0x781459!==_0x463227('0x49')&&(logger[_0x463227('0x57')]('['+_0x781459['toUpperCase']()+']','Displaying\x20call\x20in\x20a\x20new\x20tab...'),emit(_0x55744a[_0x463227('0x46')],_0x132a25[_0x463227('0x53')],_0x953aca[_0x463227('0x28')],_0x3a20b7[_0x463227('0x4c')]));})[_0x3d68bf('0x36')](function(_0x3732d1){const _0x45aeb7=_0x3d68bf;logger[_0x45aeb7('0x54')]('['+_0x781459['toUpperCase']()+_0x45aeb7('0x6'),util[_0x45aeb7('0xb')](_0x3732d1,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1137_0x5c89=['indexOf','Bearer\x20','headers',']\x20The\x20User\x20ID\x20is:','message','enduserId','uniqueid','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','clientId','isNil',']\x20The\x20User\x20email\x20is:','contactid','tenantId','getString','assign','info','password','[QUEUE]','access_token','odata-entityid','queue','then','emit','customField','contacts','Descriptions','unmanaged',']\x20The\x20%s\x20ID\x20is:\x20%s','internalemailaddress',']\x20The\x20Enduser\x20ID\x20is:',']\x20Enduser\x20Created!','systemuserid','ticketType','destcalleridnum',']\x20Enduser\x20created!','length','dynamics365','contacts?$select=telephone1','/contacts(','substring','string',']\x20Wrong\x20credentials!','recordingFormat','Fields','callDirection','/systemusers(','Displaying\x20call\x20in\x20a\x20new\x20tab...','validateEmail','toUpperCase','outbound','userId',']\x20Call\x20direction:\x20%s',']\x20Agent\x20found\x20','content','userEmail','monitor_format','recordingURL','incident','calleridnum','user:%s','ticketId','Subjects','%s/main.aspx?pagetype=entityrecord&etn=%s&id=%s','format','nameField','error','clientSecret','forEach','[OUTBOUND]','inspect','POST',']\x20Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','toLowerCase','incidents','email','%s/api/data/v9.0/','Recording\x20is\x20enabled!','username','GET','trigger:browser:url','telephone1','remoteUri','value','./util','phonecall','../../../../config/logger','lastIndexOf','../../../../rediscache','lodash',']\x20The\x20Enduser\x20phone\x20is:','4.0','serverUrl','catch','util'];(function(_0x206dc3,_0x5c89fc){const _0x43baf6=function(_0x48b3d1){while(--_0x48b3d1){_0x206dc3['push'](_0x206dc3['shift']());}};_0x43baf6(++_0x5c89fc);}(a1137_0x5c89,0x1ee));const a1137_0x43ba=function(_0x206dc3,_0x5c89fc){_0x206dc3=_0x206dc3-0x0;let _0x43baf6=a1137_0x5c89[_0x206dc3];return _0x43baf6;};const _0x319529=a1137_0x43ba;'use strict';const _=require(_0x319529('0x40')),rp=require('request-promise-native'),util=require(_0x319529('0x45')),intUtil=require(_0x319529('0x3b')),md5=require('md5'),logger=require(_0x319529('0x3d'))(_0x319529('0xc')),{getSocket}=require(_0x319529('0x3f')),io=getSocket();function getAuthToken(_0x48b3d1,_0x43427c,_0xf6638c){const _0x4ceb5f=_0x319529,_0x415be5={'method':_0x4ceb5f('0x2e'),'uri':_0x43427c,'form':{'client_id':_0x48b3d1[_0x4ceb5f('0x4e')],'resource':_0x48b3d1[_0x4ceb5f('0x39')],'username':_0x48b3d1[_0x4ceb5f('0x35')],'password':_0x48b3d1[_0x4ceb5f('0x56')],'grant_type':_0x4ceb5f('0x56'),'client_secret':_0x48b3d1[_0x4ceb5f('0x2a')]},'json':!![]};return rp(_0x415be5)['then'](function(_0x2fa88e){const _0x432755=_0x4ceb5f;return _0x2fa88e[_0x432755('0x58')];})[_0x4ceb5f('0x44')](function(_0xb63663){const _0x375938=_0x4ceb5f;return logger[_0x375938('0x29')]('['+[_0xf6638c[_0x375938('0x18')]()]+_0x375938('0x11')),_0xb63663[_0x375938('0x4a')];});}function getUser(_0x251fee,_0x1a3bb5,_0x488c48,_0x2d2005,_0x41f52a,_0x297b1b){return new Promise(function(_0x490527,_0x39fbf6){const _0x48ec9f=a1137_0x43ba;return getAuthToken(_0x1a3bb5,_0x2d2005,_0x297b1b)[_0x48ec9f('0x5b')](function(_0x16fe92){const _0x1b7d9b=_0x48ec9f,_0x46b165={'method':_0x1b7d9b('0x36'),'uri':_0x41f52a+'systemusers?$select=internalemailaddress,isdisabled,systemuserid','headers':{'Authorization':'Bearer\x20'+_0x16fe92,'OData-Version':_0x1b7d9b('0x42')},'json':!![]};return rp(_0x46b165);})['then'](function(_0x37592f){const _0xa9920d=_0x48ec9f,_0x136bb9=_0x37592f['value'];let _0x130e30=![],_0x3f333e=null;if(!_[_0xa9920d('0x4f')](_0x488c48)){if(intUtil[_0xa9920d('0x17')](_0x488c48['email'])){_0x251fee['userEmail']=_0x488c48[_0xa9920d('0x32')];for(_0x3f333e=0x0;_0x3f333e<_0x136bb9['length'];_0x3f333e++){_0x136bb9[_0x3f333e][_0xa9920d('0x4')]===_0x488c48[_0xa9920d('0x32')]&&!_0x136bb9[_0x3f333e]['isdisabled']&&(_0x130e30=!![],logger[_0xa9920d('0x55')]('['+[_0x297b1b[_0xa9920d('0x18')]()]+_0xa9920d('0x1c')+_0x136bb9[_0x3f333e][_0xa9920d('0x7')]+'!'),_0x251fee[_0xa9920d('0x1a')]=_0x136bb9[_0x3f333e]['systemuserid']);}}}if(!_0x130e30){logger[_0xa9920d('0x55')]('['+[_0x297b1b[_0xa9920d('0x18')]()]+_0xa9920d('0x2f')),_0x251fee[_0xa9920d('0x1e')]=_0x1a3bb5['username'];for(_0x3f333e=0x0;_0x3f333e<_0x136bb9[_0xa9920d('0xb')];_0x3f333e++){_0x136bb9[_0x3f333e][_0xa9920d('0x4')]===_0x1a3bb5[_0xa9920d('0x35')]&&(_0x251fee[_0xa9920d('0x1a')]=_0x136bb9[_0x3f333e][_0xa9920d('0x7')]);}}_0x490527(_0x251fee);})[_0x48ec9f('0x44')](function(_0x53181f){const _0x2fb021=_0x48ec9f;_0x39fbf6(_0x53181f[_0x2fb021('0x4a')]);});});}function createEndUser(_0xca2f6e,_0x19ea64,_0x3fc67e,_0x30d2fb,_0x138e6c,_0x574899){return new Promise(function(_0x4ea139,_0x494fb6){const _0x360d07=a1137_0x43ba;return getAuthToken(_0x19ea64,_0x3fc67e,_0x574899)[_0x360d07('0x5b')](function(_0x3ee906){const _0x318e67=_0x360d07,_0x59b3f8=_0x574899[_0x318e67('0x30')]()===_0x318e67('0x19')?_0x138e6c['destcalleridnum']:_0x138e6c[_0x318e67('0x22')],_0x1eb8cf={'method':'POST','uri':_0x30d2fb+_0x318e67('0x0'),'body':{'telephone1':_0x59b3f8,'fullname':_0x59b3f8,'firstname':_0x59b3f8,'lastname':'_','mobilephone':null,'address1_telephone1':null,'ownerid@odata.bind':_0x318e67('0x15')+_0xca2f6e[_0x318e67('0x1a')]+')'},'headers':{'Authorization':'Bearer\x20'+_0x3ee906,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]};return rp(_0x1eb8cf);})[_0x360d07('0x5b')](function(_0x1ba569){const _0x9fb832=_0x360d07,_0x4d19ec=_0x1ba569[_0x9fb832('0x48')][_0x9fb832('0x59')],_0x13fb9f=_0x4d19ec[_0x9fb832('0xf')](_0x4d19ec[_0x9fb832('0x3e')]('(')+0x1,_0x4d19ec[_0x9fb832('0x3e')](')'));_0xca2f6e[_0x9fb832('0x4b')]=_0x13fb9f,_0x4ea139(_0xca2f6e);})[_0x360d07('0x44')](function(_0x5a3504){const _0x9817c4=_0x360d07;_0x494fb6(_0x5a3504[_0x9817c4('0x4a')]);});});}function getEndUser(_0x52ddf2,_0x5c653d,_0x5c48dd,_0x1864aa,_0x58898f,_0x58e98a){return new Promise(function(_0x1fd500){const _0x12c42d=a1137_0x43ba;return getAuthToken(_0x5c653d,_0x5c48dd,_0x58e98a)[_0x12c42d('0x5b')](function(_0x3e5687){const _0x22ac5c=_0x12c42d,_0x1a3d9a={'method':_0x22ac5c('0x36'),'uri':_0x1864aa+_0x22ac5c('0xd'),'headers':{'Authorization':_0x22ac5c('0x47')+_0x3e5687,'If-None-Match':null,'OData-Version':'4.0'},'json':!![]};return rp(_0x1a3d9a);})[_0x12c42d('0x5b')](function(_0x340b58){const _0x585125=_0x12c42d;let _0x49f9e9=null;if(_0x340b58){const _0x3001ba=_0x340b58[_0x585125('0x3a')];let _0x5be652=![];for(_0x49f9e9=0x0;_0x49f9e9<_0x3001ba['length'];_0x49f9e9++){const _0x4e717f=_0x58e98a['toLowerCase']()===_0x585125('0x19')?_0x58898f[_0x585125('0x9')]:_0x58898f[_0x585125('0x22')];_0x3001ba[_0x49f9e9][_0x585125('0x38')]===_0x4e717f&&(_0x5be652=!![],_0x52ddf2[_0x585125('0x4b')]=_0x3001ba[_0x49f9e9][_0x585125('0x51')]);}if(_0x5be652)_0x1fd500(_0x52ddf2);else return createEndUser(_0x52ddf2,_0x5c653d,_0x5c48dd,_0x1864aa,_0x58898f,_0x58e98a)[_0x585125('0x5b')](function(_0x5efe91){const _0x2bdd48=_0x585125;logger[_0x2bdd48('0x55')]('['+[_0x58e98a['toUpperCase']()]+_0x2bdd48('0xa'),_0x5efe91['enduserId']),_0x1fd500(_0x5efe91);});}else return createEndUser(_0x52ddf2,_0x5c653d,_0x5c48dd,_0x1864aa,_0x58898f,_0x58e98a)[_0x585125('0x5b')](function(_0x3e29dd){const _0x29fe5c=_0x585125;logger[_0x29fe5c('0x55')]('['+[_0x58e98a['toUpperCase']()]+_0x29fe5c('0x6'),_0x3e29dd['enduserId']),_0x1fd500(_0x3e29dd);});});});}function getCustomFields(_0x23f242,_0x5945f0,_0x552279){const _0x4eff28=_0x319529,_0x2807ba={};return _0x23f242[_0x4eff28('0xb')]>0x0&&_[_0x4eff28('0x2b')](_0x23f242,function(_0xeb6ae9){const _0x56b531=_0x4eff28;if(_0xeb6ae9['type']===_0x56b531('0x10')&&_0xeb6ae9[_0x56b531('0x28')]&&!_0xeb6ae9[_0x56b531('0x5d')]){const _0x2c5b1c=_0xeb6ae9['idField'][_0x56b531('0x30')](),_0x3d8802=_0x2c5b1c[_0x56b531('0xf')](0x0,_0x2c5b1c[_0x56b531('0x46')]('_')),_0x10abe0=_0x2c5b1c['substring'](_0x2c5b1c[_0x56b531('0x46')]('_')+0x1);_0x3d8802===_0x552279&&(_0x2807ba[_0x10abe0]=_0xeb6ae9[_0x56b531('0x1d')]);}}),_0x2807ba;}function getTicket(_0x4b2dd1,_0x153a22,_0x43a68f,_0x3b3ec9,_0x46e3f9,_0x42ff39,_0x2ebdf4){return new Promise(function(_0x4b05de,_0x5a0c12){const _0x30e797=a1137_0x43ba;let _0x58fe44;return getAuthToken(_0x153a22,_0x43a68f,_0x2ebdf4)[_0x30e797('0x5b')](function(_0x1bca8f){const _0x125180=_0x30e797;return _0x42ff39[_0x125180('0x8')]===_0x125180('0x21')&&(_0x58fe44={'method':_0x125180('0x2e'),'uri':_0x3b3ec9+_0x125180('0x31'),'body':Object[_0x125180('0x54')]({},{'title':intUtil[_0x125180('0x53')](_0x42ff39[_0x125180('0x25')],_0x46e3f9,'\x20'),'description':intUtil[_0x125180('0x53')](_0x42ff39[_0x125180('0x1')],_0x46e3f9,'\x0a'),'customerid_contact@odata.bind':_0x125180('0xe')+_0x4b2dd1['enduserId']+')','ownerid@odata.bind':_0x125180('0x15')+_0x4b2dd1[_0x125180('0x1a')]+')','caseorigincode':'1'},getCustomFields(_0x42ff39[_0x125180('0x13')],_0x46e3f9,_0x42ff39[_0x125180('0x8')])),'headers':{'Authorization':_0x125180('0x47')+_0x1bca8f,'OData-Version':'4.0'},'json':!![],'resolveWithFullResponse':!![]}),_0x42ff39[_0x125180('0x8')]===_0x125180('0x3c')&&(_0x58fe44={'method':_0x125180('0x2e'),'uri':_0x3b3ec9+'phonecalls','body':Object[_0x125180('0x54')]({},{'subject':intUtil[_0x125180('0x53')](_0x42ff39[_0x125180('0x25')],_0x46e3f9,'\x20'),'phonenumber':String(_0x46e3f9['calleridnum']),'description':intUtil[_0x125180('0x53')](_0x42ff39[_0x125180('0x1')],_0x46e3f9,'\x0a'),'regardingobjectid_contact@odata.bind':_0x125180('0xe')+_0x4b2dd1[_0x125180('0x4b')]+')','ownerid@odata.bind':_0x125180('0x15')+_0x4b2dd1['userId']+')','directioncode':_0x4b2dd1[_0x125180('0x14')]===_0x125180('0x5a')?![]:!![],'phonecall_activity_parties':[{'partyid_systemuser@odata.bind':'/systemusers('+_0x4b2dd1['userId']+')','participationtypemask':_0x4b2dd1[_0x125180('0x14')]===_0x125180('0x5a')?0x2:0x1},{'partyid_contact@odata.bind':_0x125180('0xe')+_0x4b2dd1[_0x125180('0x4b')]+')','participationtypemask':_0x4b2dd1[_0x125180('0x14')]==='queue'?0x1:0x2}]},getCustomFields(_0x42ff39[_0x125180('0x13')],_0x46e3f9,_0x42ff39['ticketType'])),'headers':{'Authorization':_0x125180('0x47')+_0x1bca8f,'OData-Version':_0x125180('0x42')},'json':!![],'resolveWithFullResponse':!![]}),rp(_0x58fe44);})['then'](function(_0x1a2b89){const _0x26b477=_0x30e797,_0x31896c=_0x1a2b89['headers'][_0x26b477('0x59')],_0x2d3d18=_0x31896c[_0x26b477('0xf')](_0x31896c[_0x26b477('0x3e')]('(')+0x1,_0x31896c[_0x26b477('0x3e')](')'));_0x4b2dd1[_0x26b477('0x24')]=_0x2d3d18,_0x4b05de(_0x4b2dd1);})[_0x30e797('0x44')](function(_0x2a27a7){const _0xa982a2=_0x30e797;_0x5a0c12(_0x2a27a7[_0xa982a2('0x4a')]);});});}function emit(_0x4667c7,_0x5bb46d,_0x1754f0,_0x199602){const _0x18aeed=_0x319529,_0x17f40a={'uri':util['format'](_0x18aeed('0x26'),_0x4667c7,_0x1754f0,_0x199602)};io['to'](util[_0x18aeed('0x27')](_0x18aeed('0x23'),_0x5bb46d))[_0x18aeed('0x5c')](_0x18aeed('0x37'),_0x17f40a);}exports['cs']=function(_0x52df15,_0x1998e0,_0xe56049,_0x2115d4,_0x348634,_0x126dec,_0x52d80b,_0x5256fd){const _0x468d9d=_0x319529,_0x9fb038={};_0x126dec[_0x468d9d('0x39')]=intUtil['stripTrailingSlash'](_0x126dec['remoteUri']),_0x126dec[_0x468d9d('0x43')]=intUtil['stripTrailingSlash'](_0x126dec[_0x468d9d('0x43')]),_0x9fb038[_0x468d9d('0x14')]=_0x5256fd===_0x468d9d('0x5a')||_0x5256fd===_0x468d9d('0x2')?_0x468d9d('0x5a'):'outbound';const _0x51f2ec=util['format'](_0x468d9d('0x33'),_0x126dec[_0x468d9d('0x39')]),_0x37f30a=util[_0x468d9d('0x27')]('https://login.microsoftonline.com/%s/oauth2/token',_0x126dec[_0x468d9d('0x52')]),_0x44e273=util[_0x468d9d('0x27')](_0x468d9d('0x4d'),_0x126dec[_0x468d9d('0x43')],_0x1998e0[_0x468d9d('0x4c')],md5(_0x1998e0[_0x468d9d('0x4c')]));if(_0x348634&&_0x348634[_0x468d9d('0x1f')])logger[_0x468d9d('0x55')](_0x468d9d('0x57'),_0x468d9d('0x34')),_0x1998e0[_0x468d9d('0x20')]=_0x44e273;else _0x52d80b&&_0x52d80b[_0x468d9d('0x12')]&&_0x52d80b[_0x468d9d('0x12')]!=='none'?(logger[_0x468d9d('0x55')](_0x468d9d('0x2c'),'Recording\x20is\x20enabled!'),_0x1998e0['recordingURL']=_0x44e273):_0x1998e0['recordingURL']='';return getUser(_0x9fb038,_0x126dec,_0x2115d4,_0x37f30a,_0x51f2ec,_0x5256fd)[_0x468d9d('0x5b')](function(_0xc4d2f1){const _0x32e520=_0x468d9d;return logger['info']('['+_0x5256fd[_0x32e520('0x18')]()+_0x32e520('0x49'),_0xc4d2f1[_0x32e520('0x1a')]),logger[_0x32e520('0x55')]('['+_0x5256fd[_0x32e520('0x18')]()+_0x32e520('0x50'),_0xc4d2f1[_0x32e520('0x1e')]),getEndUser(_0xc4d2f1,_0x126dec,_0x37f30a,_0x51f2ec,_0x1998e0,_0x5256fd);})[_0x468d9d('0x5b')](function(_0x1ae5be){const _0x3c8e03=_0x468d9d;return logger[_0x3c8e03('0x55')]('['+_0x5256fd[_0x3c8e03('0x18')]()+_0x3c8e03('0x5'),_0x1ae5be['enduserId']),logger[_0x3c8e03('0x55')]('['+_0x5256fd[_0x3c8e03('0x18')]()+_0x3c8e03('0x41'),_0x1998e0[_0x3c8e03('0x22')]),getTicket(_0x1ae5be,_0x126dec,_0x37f30a,_0x51f2ec,_0x1998e0,_0xe56049,_0x5256fd);})['then'](function(_0x274cf8){const _0x4cba0f=_0x468d9d;logger[_0x4cba0f('0x55')](util[_0x4cba0f('0x27')]('['+_0x5256fd[_0x4cba0f('0x18')]()+_0x4cba0f('0x3'),_0xe56049[_0x4cba0f('0x8')],_0x274cf8[_0x4cba0f('0x24')])),logger[_0x4cba0f('0x55')](util['format']('['+_0x5256fd['toUpperCase']()+_0x4cba0f('0x1b'),_0x5256fd)),_0x5256fd!==_0x4cba0f('0x2')&&(logger[_0x4cba0f('0x55')]('['+_0x5256fd[_0x4cba0f('0x18')]()+']',_0x4cba0f('0x16')),emit(_0x126dec['remoteUri'],_0x2115d4['name'],_0xe56049[_0x4cba0f('0x8')],_0x274cf8['ticketId']));})[_0x468d9d('0x44')](function(_0x412e66){const _0x497e1e=_0x468d9d;logger['error']('['+_0x5256fd['toUpperCase']()+']\x20Error\x20running\x20Dynamics365\x20integration',util[_0x497e1e('0x2d')](_0x412e66,{'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 6d6b571..bfb7990 100644 --- a/server/services/ami/trigger/integration/freshdesk.js +++ b/server/services/ami/trigger/integration/freshdesk.js @@ -1 +1 @@ -const a1137_0x59c3=['toString','type','calleridnum','GET','outbound','trigger:browser:url','find','application/json','lastevent','variable','emit','none','content','nameField','destcalleridname','uniqueid','contact','format','%s/helpdesk/tickets/%d','%s/api/v2/agents/me','[QUEUE]','customField','Caller\x20-\x20%s','from','queue','Creating\x20new\x20ticket...','monitor_format','idField','base64','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','[OUTBOUND]','error','The\x20Enduser\x20ID\x20is:','The\x20User\x20ID\x20is:','The\x20Ticket\x20ID\x20is:','Enduser\x20created.','info','Agent\x20found!','validateEmail','map','then','catch','Ticket\x20created!','Admin\x20account\x20selected.','stringify','apiKey','Variable','string','value','toLowerCase','serverUrl','length','Enduser\x20found!','calleridname','user:%s','recordingURL','Basic\x20%s','util','freshdesk','recordingFormat','forEach','../../../../config/logger','custom_fields','Authorization','push','variableName','customVariable','toUpperCase','lodash','Recording\x20is\x20enabled!','email','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','remoteUri','getString','%s/api/v2/tickets','merge','stripTrailingSlash','request-promise-native','name','Fields','%s/api/v2/contacts'];(function(_0x5aeab5,_0x59c3a0){const _0x145749=function(_0x251f4b){while(--_0x251f4b){_0x5aeab5['push'](_0x5aeab5['shift']());}};_0x145749(++_0x59c3a0);}(a1137_0x59c3,0x183));const a1137_0x1457=function(_0x5aeab5,_0x59c3a0){_0x5aeab5=_0x5aeab5-0x0;let _0x145749=a1137_0x59c3[_0x5aeab5];return _0x145749;};const _0x45b65e=a1137_0x1457;'use strict';const _=require(_0x45b65e('0x5')),rp=require(_0x45b65e('0xe')),md5=require('md5'),util=require(_0x45b65e('0x4b')),intUtil=require('./util'),logger=require(_0x45b65e('0x4f'))(_0x45b65e('0x4c')),{getSocket}=require('../../../../rediscache'),io=getSocket(),headers={'Content-Type':'application/json','Accept':_0x45b65e('0x19')};function emit(_0x251f4b,_0x6fc8e7,_0x65ec68){const _0x58ab2a=_0x45b65e;io['to'](_0x251f4b)[_0x58ab2a('0x1c')](_0x6fc8e7,_0x65ec68);}function getTicket(_0x2ff248,_0xb76447,_0x313ca9,_0x1db952,_0x1cb251){const _0x3e46fe=_0x45b65e;logger['info'](_0x3e46fe('0x2b'));const _0x304346=_[_0x3e46fe('0xc')]({'responder_id':_0xb76447['id'],'requester_id':_0x313ca9['id'],'name':util[_0x3e46fe('0x23')](_0x3e46fe('0x28'),_0x1cb251['calleridname']),'phone':_0x1cb251[_0x3e46fe('0x14')],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0x3e46fe('0xa')](_0x1db952['Subjects'],_0x1cb251,'\x20'),'description':intUtil[_0x3e46fe('0xa')](_0x1db952['Descriptions'],_0x1cb251,'
'),'tags':getTags(_0x1db952['Tags'],_0x3e46fe('0xf'))},getCustomFields(_0x1db952[_0x3e46fe('0x10')],_0x1cb251));return _0x304346[_0x3e46fe('0x50')]=_['mapValues'](_['keyBy'](_0x304346[_0x3e46fe('0x50')],'id'),_0x3e46fe('0x42')),request({'uri':util[_0x3e46fe('0x23')](_0x3e46fe('0xb'),_0x2ff248[_0x3e46fe('0x9')]),'method':'POST','body':_0x304346})[_0x3e46fe('0x3a')](function(_0x182eef){const _0x414db1=_0x3e46fe;return logger[_0x414db1('0x36')]('Ticket\x20created!'),_0x182eef;});}function getUser(_0x581876,_0x1cf5e3){const _0x399747=_0x45b65e;return intUtil[_0x399747('0x38')](_0x1cf5e3)?request({'uri':util[_0x399747('0x23')]('%s/api/v2/agents',_0x581876[_0x399747('0x9')]),'qs':{'email':_0x1cf5e3}})[_0x399747('0x3a')](function(_0x49519d){const _0x5320b4=_0x399747;return _0x49519d[_0x5320b4('0x45')]?(logger[_0x5320b4('0x36')](_0x5320b4('0x37')),_[_0x5320b4('0x18')](_0x49519d,function(_0x18fc1b){const _0x14676b=_0x5320b4;return _0x18fc1b[_0x14676b('0x22')][_0x14676b('0x7')]===_0x1cf5e3;})):(logger[_0x5320b4('0x36')]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),request({'uri':util[_0x5320b4('0x23')](_0x5320b4('0x25'),_0x581876[_0x5320b4('0x9')])})[_0x5320b4('0x3a')](function(_0x4abe68){const _0x201733=_0x5320b4;return logger['info'](_0x201733('0x3d')),_0x4abe68;}));}):(logger[_0x399747('0x36')]('Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!'),request({'uri':util['format'](_0x399747('0x25'),_0x581876[_0x399747('0x9')])})[_0x399747('0x3a')](function(_0x7f6759){const _0x763acc=_0x399747;return logger[_0x763acc('0x36')](_0x763acc('0x3d')),_0x7f6759;}));}function getEndUser(_0x4cc0b7,_0x295a29,_0xce983a){const _0x2ec118=_0x45b65e;return logger[_0x2ec118('0x36')]('Searching\x20enduser\x20with\x20phone',_0xce983a),request({'uri':util[_0x2ec118('0x23')](_0x2ec118('0x11'),_0x4cc0b7[_0x2ec118('0x9')]),'qs':{'phone':_0xce983a}})[_0x2ec118('0x3a')](function(_0x481081){const _0x49a156=_0x2ec118;return _0x481081['length']?(logger[_0x49a156('0x36')](_0x49a156('0x46')),_[_0x49a156('0x18')](_0x481081,{'phone':_0xce983a})):(logger[_0x49a156('0x36')]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'uri':util[_0x49a156('0x23')](_0x49a156('0x11'),_0x4cc0b7[_0x49a156('0x9')]),'method':'POST','body':{'name':_0x295a29,'phone':_0xce983a}})[_0x49a156('0x3a')](function(_0x731707){const _0x3a3353=_0x49a156;return logger['info'](_0x3a3353('0x35')),_0x731707;}));});}function getAuth(_0x44a9ce){const _0x31307d=_0x45b65e;return util[_0x31307d('0x23')](_0x31307d('0x4a'),Buffer[_0x31307d('0x29')](_0x44a9ce[_0x31307d('0x3f')]+':X')['toString'](_0x31307d('0x2e')));}function request(_0x4f209a){const _0x401fe5=_0x45b65e;return logger['debug']('[HTTP]',JSON[_0x401fe5('0x3e')](_0x4f209a)),rp(_['defaults'](_0x4f209a,{'method':_0x401fe5('0x15'),'headers':headers,'json':!![]}));}function getTags(_0x3d3f02,_0x36ff65){const _0x41dad8=_0x45b65e;let _0xf91b1=[];return _0x3d3f02&&_0x3d3f02[_0x41dad8('0x45')]>0x0&&(_0xf91b1=_[_0x41dad8('0x39')](_0x3d3f02,_0x36ff65)),_0xf91b1;}function getCustomFields(_0xffcfbd,_0x43cd78){const _0x22d246=_0x45b65e,_0x478f3b={'custom_fields':[]};return _0xffcfbd[_0x22d246('0x45')]>0x0&&_[_0x22d246('0x4e')](_0xffcfbd,function(_0x1c9065){const _0x96a73c=_0x22d246;if(_0x1c9065[_0x96a73c('0x13')]===_0x96a73c('0x41')&&_0x1c9065['nameField']&&!_0x1c9065[_0x96a73c('0x27')])_0x478f3b[_0x1c9065[_0x96a73c('0x1f')]['toLowerCase']()]=_0x1c9065[_0x96a73c('0x1e')][_0x96a73c('0x12')]();else{if(_0x1c9065[_0x96a73c('0x13')]===_0x96a73c('0x41')&&_0x1c9065['idField']&&_0x1c9065['customField'])_0x478f3b[_0x96a73c('0x50')][_0x96a73c('0x1')]({'id':_0x1c9065[_0x96a73c('0x2d')],'value':_0x1c9065[_0x96a73c('0x1e')][_0x96a73c('0x12')]()});else{if(_0x1c9065[_0x96a73c('0x13')]===_0x96a73c('0x1b')&&_0x1c9065[_0x96a73c('0x2')]&&_0x1c9065[_0x96a73c('0x2d')]&&_0x1c9065[_0x96a73c('0x27')])_0x43cd78[_0x1c9065[_0x96a73c('0x2')]]&&_0x478f3b[_0x96a73c('0x50')]['push']({'id':_0x1c9065[_0x96a73c('0x2d')],'value':_0x43cd78[_0x1c9065[_0x96a73c('0x2')]][_0x96a73c('0x12')]()});else _0x1c9065[_0x96a73c('0x13')]===_0x96a73c('0x3')&&_0x1c9065[_0x96a73c('0x40')]&&_0x1c9065['Variable'][_0x96a73c('0xf')]&&_0x1c9065[_0x96a73c('0x2d')]&&_0x1c9065[_0x96a73c('0x27')]&&(_0x43cd78[_0x1c9065[_0x96a73c('0x40')][_0x96a73c('0xf')][_0x96a73c('0x43')]()]&&_0x478f3b[_0x96a73c('0x50')][_0x96a73c('0x1')]({'id':_0x1c9065['idField'],'value':_0x43cd78[_0x1c9065[_0x96a73c('0x40')]['name'][_0x96a73c('0x43')]()][_0x96a73c('0x12')]()}));}}}),_0x478f3b;}exports[_0x45b65e('0x2a')]=function(_0x189251,_0x341a4e,_0x2c05bd,_0x25b84a,_0x20dca8,_0x3bae54){const _0x1c1e71=_0x45b65e;let _0x463366,_0x48a7ae;return _0x3bae54[_0x1c1e71('0x9')]=intUtil[_0x1c1e71('0xd')](_0x3bae54[_0x1c1e71('0x9')]),_0x3bae54[_0x1c1e71('0x44')]=intUtil[_0x1c1e71('0xd')](_0x3bae54[_0x1c1e71('0x44')]),_0x20dca8&&_0x20dca8[_0x1c1e71('0x2c')]?(logger['info'](_0x1c1e71('0x26'),_0x1c1e71('0x6')),_0x341a4e[_0x1c1e71('0x49')]=util[_0x1c1e71('0x23')](_0x1c1e71('0x8'),_0x3bae54[_0x1c1e71('0x44')],_0x341a4e[_0x1c1e71('0x21')],md5(_0x341a4e[_0x1c1e71('0x21')]))):_0x341a4e[_0x1c1e71('0x49')]='',headers['Authorization']=getAuth(_0x3bae54),getUser(_0x3bae54,_0x25b84a[_0x1c1e71('0x7')])[_0x1c1e71('0x3a')](function(_0x530e80){const _0x48e3d9=_0x1c1e71;return _0x463366=_0x530e80,logger[_0x48e3d9('0x36')](_0x48e3d9('0x33'),_0x463366['id']),getEndUser(_0x3bae54,_0x341a4e[_0x48e3d9('0x47')],_0x341a4e[_0x48e3d9('0x14')]);})[_0x1c1e71('0x3a')](function(_0x53bce8){const _0x561735=_0x1c1e71;return _0x48a7ae=_0x53bce8,logger['info'](_0x561735('0x32'),_0x48a7ae['id']),getTicket(_0x3bae54,_0x463366,_0x48a7ae,_0x2c05bd,_0x341a4e);})[_0x1c1e71('0x3a')](function(_0x59811b){const _0xddbb03=_0x1c1e71;_0x59811b&&_0x59811b['id']&&(logger[_0xddbb03('0x36')](_0xddbb03('0x3c')),logger[_0xddbb03('0x36')](_0xddbb03('0x34'),_0x59811b['id']),logger[_0xddbb03('0x36')](_0xddbb03('0x26'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0xddbb03('0x23')](_0xddbb03('0x48'),_0x25b84a[_0xddbb03('0xf')]),_0xddbb03('0x17'),{'uri':util[_0xddbb03('0x23')](_0xddbb03('0x24'),_0x3bae54[_0xddbb03('0x9')],_0x59811b['id'])}));})[_0x1c1e71('0x3b')](function(_0x1c9071){const _0x34630a=_0x1c1e71;logger[_0x34630a('0x31')](_0x34630a('0x26'),JSON[_0x34630a('0x3e')](_0x1c9071));});},exports[_0x45b65e('0x16')]=function(_0x25d3dc,_0x9611d,_0x13857b,_0x345116,_0xf040c4,_0x3a117e,_0x3c8801){const _0x236dcd=_0x45b65e;let _0x3a818c,_0x1e0c33;return _0x3a117e[_0x236dcd('0x9')]=intUtil[_0x236dcd('0xd')](_0x3a117e[_0x236dcd('0x9')]),_0x3a117e[_0x236dcd('0x44')]=intUtil[_0x236dcd('0xd')](_0x3a117e[_0x236dcd('0x44')]),_0x3c8801&&_0x3c8801[_0x236dcd('0x4d')]&&_0x3c8801[_0x236dcd('0x4d')]!==_0x236dcd('0x1d')&&(logger['info'](_0x236dcd('0x30'),_0x236dcd('0x6')),_0x9611d[_0x236dcd('0x49')]=util['format'](_0x236dcd('0x8'),_0x3a117e[_0x236dcd('0x44')],_0x9611d[_0x236dcd('0x21')],md5(_0x9611d[_0x236dcd('0x21')]))),headers[_0x236dcd('0x0')]=getAuth(_0x3a117e),getUser(_0x3a117e,_0x345116['email'])['then'](function(_0x173dba){const _0x1dddb2=_0x236dcd;return _0x3a818c=_0x173dba,logger[_0x1dddb2('0x36')](_0x1dddb2('0x33'),_0x3a818c['id']),getEndUser(_0x3a117e,_0x9611d[_0x1dddb2('0x20')],_0x9611d['destcalleridnum']);})[_0x236dcd('0x3a')](function(_0x1102bb){return _0x1e0c33=_0x1102bb,logger['info']('The\x20Enduser\x20ID\x20is:',_0x1e0c33['id']),getTicket(_0x3a117e,_0x3a818c,_0x1e0c33,_0x13857b,_0x9611d);})[_0x236dcd('0x3a')](function(_0x57c1cb){const _0x39b94a=_0x236dcd;_0x57c1cb&&_0x57c1cb['id']&&(logger[_0x39b94a('0x36')]('Ticket\x20created!'),logger[_0x39b94a('0x36')]('The\x20Ticket\x20ID\x20is:',_0x57c1cb['id']),logger[_0x39b94a('0x36')](_0x39b94a('0x30'),_0x39b94a('0x2f')),emit(util[_0x39b94a('0x23')]('user:%s',_0x345116[_0x39b94a('0xf')]),_0x39b94a('0x17'),{'uri':util[_0x39b94a('0x23')](_0x39b94a('0x24'),_0x3a117e[_0x39b94a('0x9')],_0x57c1cb['id'])}));})[_0x236dcd('0x3b')](function(_0x31da4e){const _0x32f8db=_0x236dcd;logger[_0x32f8db('0x31')](_0x32f8db('0x30'),JSON[_0x32f8db('0x3e')](_0x31da4e));});},exports['unmanaged']=function(_0x41fa3d,_0x147608,_0x38bb12,_0x1fb3f1,_0x149663,_0x48f679){const _0x31203f=_0x45b65e;let _0x2cfd00,_0x2a22dd;return _0x48f679[_0x31203f('0x9')]=intUtil[_0x31203f('0xd')](_0x48f679[_0x31203f('0x9')]),_0x48f679[_0x31203f('0x44')]=intUtil[_0x31203f('0xd')](_0x48f679['serverUrl']),_0x149663&&_0x149663[_0x31203f('0x2c')]?(logger[_0x31203f('0x36')]('['+_0x147608[_0x31203f('0x1a')][_0x31203f('0x4')]()+']',_0x31203f('0x6')),_0x147608[_0x31203f('0x49')]=util[_0x31203f('0x23')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x48f679[_0x31203f('0x44')],_0x147608[_0x31203f('0x21')],md5(_0x147608[_0x31203f('0x21')]))):_0x147608[_0x31203f('0x49')]='',headers[_0x31203f('0x0')]=getAuth(_0x48f679),getUser(_0x48f679,'')[_0x31203f('0x3a')](function(_0x4bca6b){const _0x257b92=_0x31203f;return _0x2cfd00=_0x4bca6b,logger[_0x257b92('0x36')](_0x257b92('0x33'),_0x2cfd00['id']),getEndUser(_0x48f679,_0x147608['calleridname'],_0x147608[_0x257b92('0x14')]);})[_0x31203f('0x3a')](function(_0x1e2161){const _0x2697cd=_0x31203f;return _0x2a22dd=_0x1e2161,logger[_0x2697cd('0x36')](_0x2697cd('0x32'),_0x2a22dd['id']),getTicket(_0x48f679,_0x2cfd00,_0x2a22dd,_0x38bb12,_0x147608);})['then'](function(_0x238bfe){const _0x472c0f=_0x31203f;_0x238bfe&&(logger['info'](_0x472c0f('0x3c')),logger[_0x472c0f('0x36')]('The\x20Ticket\x20ID\x20is:',_0x238bfe['id']));})['catch'](function(_0x1db373){const _0x1ba13d=_0x31203f;logger[_0x1ba13d('0x31')]('['+_0x147608[_0x1ba13d('0x1a')][_0x1ba13d('0x4')]()+']',JSON['stringify'](_0x1db373));});}; \ No newline at end of file +const a1138_0x3e20=['stringify','find','custom_fields','then','user:%s','Basic\x20%s','emit','request-promise-native','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','length','Ticket\x20created!','mapValues','apiKey','info','email','../../../../config/logger','map','content','base64','name','md5','Enduser\x20created.','calleridnum','calleridname','contact','Fields','The\x20Ticket\x20ID\x20is:','toLowerCase','format','string','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','forEach','uniqueid','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','from','customVariable','GET','destcalleridnum','%s/api/v2/agents','toUpperCase','stripTrailingSlash','[HTTP]','remoteUri','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','idField','Recording\x20is\x20enabled!','Authorization','Variable','lastevent','%s/api/v2/contacts','keyBy','type','error','destcalleridname','toString','merge','%s/helpdesk/tickets/%d','The\x20Enduser\x20ID\x20is:','%s/api/v2/tickets','defaults','
','Tags','validateEmail','The\x20User\x20ID\x20is:','POST','Searching\x20enduser\x20with\x20phone','application/json','getString','recordingFormat','value','Admin\x20account\x20selected.','push','serverUrl','variable','Caller\x20-\x20%s','variableName','Descriptions','[QUEUE]','util','none','customField','debug','catch','nameField','[OUTBOUND]','recordingURL','Creating\x20new\x20ticket...','monitor_format'];(function(_0x3b3907,_0x3e20c2){const _0x590b55=function(_0x3f1f38){while(--_0x3f1f38){_0x3b3907['push'](_0x3b3907['shift']());}};_0x590b55(++_0x3e20c2);}(a1138_0x3e20,0x11f));const a1138_0x590b=function(_0x3b3907,_0x3e20c2){_0x3b3907=_0x3b3907-0x0;let _0x590b55=a1138_0x3e20[_0x3b3907];return _0x590b55;};const _0x522b1a=a1138_0x590b;'use strict';const _=require('lodash'),rp=require(_0x522b1a('0x48')),md5=require(_0x522b1a('0x55')),util=require(_0x522b1a('0x37')),intUtil=require('./util'),logger=require(_0x522b1a('0x50'))('freshdesk'),{getSocket}=require('../../../../rediscache'),io=getSocket(),headers={'Content-Type':_0x522b1a('0x2b'),'Accept':_0x522b1a('0x2b')};function emit(_0x3f1f38,_0x44c118,_0xc2ac5a){const _0x4a0bdd=_0x522b1a;io['to'](_0x3f1f38)[_0x4a0bdd('0x47')](_0x44c118,_0xc2ac5a);}function getTicket(_0x119dbe,_0x4addc2,_0x5f291a,_0x2ea514,_0x1a59dd){const _0x23968d=_0x522b1a;logger['info'](_0x23968d('0x3f'));const _0x20002b=_[_0x23968d('0x20')]({'responder_id':_0x4addc2['id'],'requester_id':_0x5f291a['id'],'name':util[_0x23968d('0x5')](_0x23968d('0x33'),_0x1a59dd[_0x23968d('0x0')]),'phone':_0x1a59dd[_0x23968d('0x57')],'source':0x3,'priority':0x1,'status':0x2,'subject':intUtil[_0x23968d('0x2c')](_0x2ea514['Subjects'],_0x1a59dd,'\x20'),'description':intUtil['getString'](_0x2ea514[_0x23968d('0x35')],_0x1a59dd,_0x23968d('0x25')),'tags':getTags(_0x2ea514[_0x23968d('0x26')],'name')},getCustomFields(_0x2ea514[_0x23968d('0x2')],_0x1a59dd));return _0x20002b[_0x23968d('0x43')]=_[_0x23968d('0x4c')](_[_0x23968d('0x1b')](_0x20002b[_0x23968d('0x43')],'id'),_0x23968d('0x2e')),request({'uri':util['format'](_0x23968d('0x23'),_0x119dbe[_0x23968d('0x13')]),'method':_0x23968d('0x29'),'body':_0x20002b})[_0x23968d('0x44')](function(_0x2adfdd){const _0x264686=_0x23968d;return logger[_0x264686('0x4e')](_0x264686('0x4b')),_0x2adfdd;});}function getUser(_0x128fa3,_0xcc97a5){const _0x2efb46=_0x522b1a;return intUtil[_0x2efb46('0x27')](_0xcc97a5)?request({'uri':util['format'](_0x2efb46('0xf'),_0x128fa3['remoteUri']),'qs':{'email':_0xcc97a5}})[_0x2efb46('0x44')](function(_0x11bd26){const _0xd84515=_0x2efb46;return _0x11bd26[_0xd84515('0x4a')]?(logger[_0xd84515('0x4e')]('Agent\x20found!'),_[_0xd84515('0x42')](_0x11bd26,function(_0x1a4b45){const _0xe4fe3f=_0xd84515;return _0x1a4b45[_0xe4fe3f('0x1')][_0xe4fe3f('0x4f')]===_0xcc97a5;})):(logger[_0xd84515('0x4e')](_0xd84515('0x7')),request({'uri':util[_0xd84515('0x5')]('%s/api/v2/agents/me',_0x128fa3[_0xd84515('0x13')])})['then'](function(_0x19acc7){const _0x1d4562=_0xd84515;return logger['info'](_0x1d4562('0x2f')),_0x19acc7;}));}):(logger[_0x2efb46('0x4e')]('Invalid\x20email\x20format,\x20using\x20the\x20admin\x20account!'),request({'uri':util[_0x2efb46('0x5')]('%s/api/v2/agents/me',_0x128fa3[_0x2efb46('0x13')])})[_0x2efb46('0x44')](function(_0x29a340){const _0x245011=_0x2efb46;return logger[_0x245011('0x4e')](_0x245011('0x2f')),_0x29a340;}));}function getEndUser(_0x2f6d6b,_0x17638c,_0x5d6db1){const _0x5e2118=_0x522b1a;return logger[_0x5e2118('0x4e')](_0x5e2118('0x2a'),_0x5d6db1),request({'uri':util[_0x5e2118('0x5')](_0x5e2118('0x1a'),_0x2f6d6b[_0x5e2118('0x13')]),'qs':{'phone':_0x5d6db1}})[_0x5e2118('0x44')](function(_0x151f03){const _0x724eaa=_0x5e2118;return _0x151f03[_0x724eaa('0x4a')]?(logger[_0x724eaa('0x4e')]('Enduser\x20found!'),_[_0x724eaa('0x42')](_0x151f03,{'phone':_0x5d6db1})):(logger[_0x724eaa('0x4e')](_0x724eaa('0x14')),request({'uri':util[_0x724eaa('0x5')](_0x724eaa('0x1a'),_0x2f6d6b[_0x724eaa('0x13')]),'method':_0x724eaa('0x29'),'body':{'name':_0x17638c,'phone':_0x5d6db1}})[_0x724eaa('0x44')](function(_0x484d50){const _0x3caf07=_0x724eaa;return logger[_0x3caf07('0x4e')](_0x3caf07('0x56')),_0x484d50;}));});}function getAuth(_0x4598cc){const _0x5d2fcd=_0x522b1a;return util[_0x5d2fcd('0x5')](_0x5d2fcd('0x46'),Buffer[_0x5d2fcd('0xb')](_0x4598cc[_0x5d2fcd('0x4d')]+':X')['toString'](_0x5d2fcd('0x53')));}function request(_0x10727f){const _0x55024f=_0x522b1a;return logger[_0x55024f('0x3a')](_0x55024f('0x12'),JSON[_0x55024f('0x41')](_0x10727f)),rp(_[_0x55024f('0x24')](_0x10727f,{'method':_0x55024f('0xd'),'headers':headers,'json':!![]}));}function getTags(_0x233997,_0x5df2fd){const _0x496645=_0x522b1a;let _0x1a448b=[];return _0x233997&&_0x233997['length']>0x0&&(_0x1a448b=_[_0x496645('0x51')](_0x233997,_0x5df2fd)),_0x1a448b;}function getCustomFields(_0x5ac982,_0x3ac6be){const _0x3a6691=_0x522b1a,_0x4a851e={'custom_fields':[]};return _0x5ac982[_0x3a6691('0x4a')]>0x0&&_[_0x3a6691('0x8')](_0x5ac982,function(_0x7f2317){const _0x491e3d=_0x3a6691;if(_0x7f2317[_0x491e3d('0x1c')]===_0x491e3d('0x6')&&_0x7f2317[_0x491e3d('0x3c')]&&!_0x7f2317[_0x491e3d('0x39')])_0x4a851e[_0x7f2317['nameField'][_0x491e3d('0x4')]()]=_0x7f2317[_0x491e3d('0x52')][_0x491e3d('0x1f')]();else{if(_0x7f2317['type']===_0x491e3d('0x6')&&_0x7f2317['idField']&&_0x7f2317[_0x491e3d('0x39')])_0x4a851e[_0x491e3d('0x43')][_0x491e3d('0x30')]({'id':_0x7f2317[_0x491e3d('0x15')],'value':_0x7f2317['content'][_0x491e3d('0x1f')]()});else{if(_0x7f2317[_0x491e3d('0x1c')]===_0x491e3d('0x32')&&_0x7f2317[_0x491e3d('0x34')]&&_0x7f2317[_0x491e3d('0x15')]&&_0x7f2317[_0x491e3d('0x39')])_0x3ac6be[_0x7f2317[_0x491e3d('0x34')]]&&_0x4a851e['custom_fields'][_0x491e3d('0x30')]({'id':_0x7f2317[_0x491e3d('0x15')],'value':_0x3ac6be[_0x7f2317[_0x491e3d('0x34')]]['toString']()});else _0x7f2317['type']===_0x491e3d('0xc')&&_0x7f2317[_0x491e3d('0x18')]&&_0x7f2317[_0x491e3d('0x18')][_0x491e3d('0x54')]&&_0x7f2317[_0x491e3d('0x15')]&&_0x7f2317[_0x491e3d('0x39')]&&(_0x3ac6be[_0x7f2317[_0x491e3d('0x18')]['name']['toLowerCase']()]&&_0x4a851e[_0x491e3d('0x43')][_0x491e3d('0x30')]({'id':_0x7f2317['idField'],'value':_0x3ac6be[_0x7f2317['Variable'][_0x491e3d('0x54')][_0x491e3d('0x4')]()]['toString']()}));}}}),_0x4a851e;}exports['queue']=function(_0x10c34c,_0x4adcb0,_0x2fad40,_0x2a1881,_0x2f113a,_0xeb5e1){const _0x13c1c8=_0x522b1a;let _0x184667,_0x44dc09;return _0xeb5e1['remoteUri']=intUtil[_0x13c1c8('0x11')](_0xeb5e1[_0x13c1c8('0x13')]),_0xeb5e1[_0x13c1c8('0x31')]=intUtil[_0x13c1c8('0x11')](_0xeb5e1[_0x13c1c8('0x31')]),_0x2f113a&&_0x2f113a[_0x13c1c8('0x40')]?(logger[_0x13c1c8('0x4e')](_0x13c1c8('0x36'),'Recording\x20is\x20enabled!'),_0x4adcb0['recordingURL']=util[_0x13c1c8('0x5')](_0x13c1c8('0xa'),_0xeb5e1['serverUrl'],_0x4adcb0[_0x13c1c8('0x9')],md5(_0x4adcb0[_0x13c1c8('0x9')]))):_0x4adcb0[_0x13c1c8('0x3e')]='',headers[_0x13c1c8('0x17')]=getAuth(_0xeb5e1),getUser(_0xeb5e1,_0x2a1881['email'])['then'](function(_0xb9c080){const _0x5db563=_0x13c1c8;return _0x184667=_0xb9c080,logger[_0x5db563('0x4e')]('The\x20User\x20ID\x20is:',_0x184667['id']),getEndUser(_0xeb5e1,_0x4adcb0[_0x5db563('0x0')],_0x4adcb0[_0x5db563('0x57')]);})[_0x13c1c8('0x44')](function(_0x3c4d0f){const _0x142598=_0x13c1c8;return _0x44dc09=_0x3c4d0f,logger[_0x142598('0x4e')](_0x142598('0x22'),_0x44dc09['id']),getTicket(_0xeb5e1,_0x184667,_0x44dc09,_0x2fad40,_0x4adcb0);})[_0x13c1c8('0x44')](function(_0x23d8ad){const _0x57a110=_0x13c1c8;_0x23d8ad&&_0x23d8ad['id']&&(logger[_0x57a110('0x4e')]('Ticket\x20created!'),logger[_0x57a110('0x4e')]('The\x20Ticket\x20ID\x20is:',_0x23d8ad['id']),logger['info'](_0x57a110('0x36'),_0x57a110('0x49')),emit(util['format'](_0x57a110('0x45'),_0x2a1881['name']),'trigger:browser:url',{'uri':util[_0x57a110('0x5')](_0x57a110('0x21'),_0xeb5e1[_0x57a110('0x13')],_0x23d8ad['id'])}));})[_0x13c1c8('0x3b')](function(_0x29d67e){const _0x8a96c5=_0x13c1c8;logger[_0x8a96c5('0x1d')](_0x8a96c5('0x36'),JSON['stringify'](_0x29d67e));});},exports['outbound']=function(_0x3d35c5,_0x3b5eb2,_0x1123a4,_0x57f8ce,_0x3c3bd8,_0x1b0e53,_0x215767){const _0x2dfdba=_0x522b1a;let _0x329139,_0x5dcc6f;return _0x1b0e53[_0x2dfdba('0x13')]=intUtil[_0x2dfdba('0x11')](_0x1b0e53[_0x2dfdba('0x13')]),_0x1b0e53[_0x2dfdba('0x31')]=intUtil[_0x2dfdba('0x11')](_0x1b0e53[_0x2dfdba('0x31')]),_0x215767&&_0x215767[_0x2dfdba('0x2d')]&&_0x215767[_0x2dfdba('0x2d')]!==_0x2dfdba('0x38')&&(logger[_0x2dfdba('0x4e')](_0x2dfdba('0x3d'),_0x2dfdba('0x16')),_0x3b5eb2[_0x2dfdba('0x3e')]=util[_0x2dfdba('0x5')](_0x2dfdba('0xa'),_0x1b0e53[_0x2dfdba('0x31')],_0x3b5eb2[_0x2dfdba('0x9')],md5(_0x3b5eb2[_0x2dfdba('0x9')]))),headers[_0x2dfdba('0x17')]=getAuth(_0x1b0e53),getUser(_0x1b0e53,_0x57f8ce['email'])[_0x2dfdba('0x44')](function(_0x4c67e3){const _0x3457cc=_0x2dfdba;return _0x329139=_0x4c67e3,logger[_0x3457cc('0x4e')]('The\x20User\x20ID\x20is:',_0x329139['id']),getEndUser(_0x1b0e53,_0x3b5eb2[_0x3457cc('0x1e')],_0x3b5eb2[_0x3457cc('0xe')]);})[_0x2dfdba('0x44')](function(_0x3ed5f7){const _0x732ff4=_0x2dfdba;return _0x5dcc6f=_0x3ed5f7,logger[_0x732ff4('0x4e')](_0x732ff4('0x22'),_0x5dcc6f['id']),getTicket(_0x1b0e53,_0x329139,_0x5dcc6f,_0x1123a4,_0x3b5eb2);})[_0x2dfdba('0x44')](function(_0x324f24){const _0x279a39=_0x2dfdba;_0x324f24&&_0x324f24['id']&&(logger['info']('Ticket\x20created!'),logger[_0x279a39('0x4e')](_0x279a39('0x3'),_0x324f24['id']),logger[_0x279a39('0x4e')](_0x279a39('0x3d'),_0x279a39('0x49')),emit(util[_0x279a39('0x5')](_0x279a39('0x45'),_0x57f8ce['name']),'trigger:browser:url',{'uri':util[_0x279a39('0x5')](_0x279a39('0x21'),_0x1b0e53[_0x279a39('0x13')],_0x324f24['id'])}));})[_0x2dfdba('0x3b')](function(_0x3e5b89){const _0x484101=_0x2dfdba;logger[_0x484101('0x1d')](_0x484101('0x3d'),JSON[_0x484101('0x41')](_0x3e5b89));});},exports['unmanaged']=function(_0x562991,_0x4ca71f,_0x3377b4,_0xc53bac,_0x2e378f,_0x576f36){const _0x4ea025=_0x522b1a;let _0x306210,_0x49a2cf;return _0x576f36[_0x4ea025('0x13')]=intUtil['stripTrailingSlash'](_0x576f36['remoteUri']),_0x576f36['serverUrl']=intUtil[_0x4ea025('0x11')](_0x576f36[_0x4ea025('0x31')]),_0x2e378f&&_0x2e378f['monitor_format']?(logger['info']('['+_0x4ca71f[_0x4ea025('0x19')][_0x4ea025('0x10')]()+']',_0x4ea025('0x16')),_0x4ca71f['recordingURL']=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x576f36[_0x4ea025('0x31')],_0x4ca71f['uniqueid'],md5(_0x4ca71f[_0x4ea025('0x9')]))):_0x4ca71f[_0x4ea025('0x3e')]='',headers[_0x4ea025('0x17')]=getAuth(_0x576f36),getUser(_0x576f36,'')[_0x4ea025('0x44')](function(_0x409c3d){const _0x222352=_0x4ea025;return _0x306210=_0x409c3d,logger['info'](_0x222352('0x28'),_0x306210['id']),getEndUser(_0x576f36,_0x4ca71f[_0x222352('0x0')],_0x4ca71f[_0x222352('0x57')]);})[_0x4ea025('0x44')](function(_0x5cfa21){const _0x189d7b=_0x4ea025;return _0x49a2cf=_0x5cfa21,logger[_0x189d7b('0x4e')](_0x189d7b('0x22'),_0x49a2cf['id']),getTicket(_0x576f36,_0x306210,_0x49a2cf,_0x3377b4,_0x4ca71f);})[_0x4ea025('0x44')](function(_0x4466e0){const _0x921427=_0x4ea025;_0x4466e0&&(logger[_0x921427('0x4e')](_0x921427('0x4b')),logger['info'](_0x921427('0x3'),_0x4466e0['id']));})[_0x4ea025('0x3b')](function(_0x630de5){const _0x1a3ec4=_0x4ea025;logger[_0x1a3ec4('0x1d')]('['+_0x4ca71f['lastevent'][_0x1a3ec4('0x10')]()+']',JSON[_0x1a3ec4('0x41')](_0x630de5));});}; \ 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 041e4ab..800413b 100644 --- a/server/services/ami/trigger/integration/freshsales.js +++ b/server/services/ami/trigger/integration/freshsales.js @@ -1 +1 @@ -const a1138_0x3b19=['md5','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Subjects','inspect','users','contacts','add','username','apiKey','find','work_number','Contact','user:%s','Requested\x20Resource\x20not\x20Found','message','name','monitor_format','stripTrailingSlash','forEach','adminEmail','Descriptions','remoteUri','POST','getString','/contacts/','trigger:browser:url','ticketId','outbound','info','error','task','serverUrl','format','adminId','email','Displaying\x20task\x20in\x20a\x20new\x20tab...','catch','../../../../config/logger','contactNumber','userId','moment','[QUEUE]','headers','toUpperCase','length','unmanaged','userEmail','filters','Searching\x20contact\x20with\x20phone',']\x20Error\x20running\x20Freshsales\x20integration','User\x20found:','../../../../rediscache','Contact\x20created:','/api/tasks','/api/contacts/view/','Contact\x20found:','contact','util','Getting\x20contacts\x20filter','agentEmail','Creating\x20new\x20task','lodash','/api/selector/owners','none','queue','Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact','then','Recording\x20is\x20enabled!','Getting\x20user\x20with\x20email','endUserId','recordingURL','YYYY-MM-DDTHH:mm:ss','destcalleridnum','recordingFormat','./util','GET','toLowerCase','All\x20Contacts','uniqueid','calleridnum'];(function(_0x4d6a54,_0x3b19a2){const _0x278619=function(_0x260af8){while(--_0x260af8){_0x4d6a54['push'](_0x4d6a54['shift']());}};_0x278619(++_0x3b19a2);}(a1138_0x3b19,0x1cc));const a1138_0x2786=function(_0x4d6a54,_0x3b19a2){_0x4d6a54=_0x4d6a54-0x0;let _0x278619=a1138_0x3b19[_0x4d6a54];return _0x278619;};const _0x3d4266=a1138_0x2786;'use strict';const _=require(_0x3d4266('0x1')),rp=require('request-promise-native'),md5=require(_0x3d4266('0x14')),util=require(_0x3d4266('0x4d')),moment=require(_0x3d4266('0x3c')),intUtil=require(_0x3d4266('0xe')),logger=require(_0x3d4266('0x39'))('freshsales'),{getSocket}=require(_0x3d4266('0x47')),io=getSocket();function getAdminId(_0x260af8,_0xc3ad6c,_0x7c091b,_0xdfe53a){return new Promise(function(_0x109d13,_0x197ab4){const _0x919444=a1138_0x2786;let _0x196ff9=![];const _0x1be2ae={'method':_0x919444('0xf'),'uri':_0xdfe53a+'/api/selector/owners','json':!![]};return _0x1be2ae['headers']=_0x7c091b,logger['info']('Getting\x20admin\x20information'),rp(_0x1be2ae)[_0x919444('0x6')](function(_0x3bfe9c){const _0x4929d5=_0x919444;if(_0x3bfe9c){const _0x4b2ed6=_0x3bfe9c[_0x4929d5('0x18')];let _0x11a096=null;for(_0x11a096=0x0;_0x11a096<_0x4b2ed6[_0x4929d5('0x40')];_0x11a096++){_0x4b2ed6[_0x11a096][_0x4929d5('0x36')]===_0x260af8[_0x4929d5('0x27')]&&(_0x260af8[_0x4929d5('0x35')]=_0x4b2ed6[_0x11a096]['id'],_0x196ff9=!![]);}_0x196ff9?(logger[_0x4929d5('0x30')]('Admin\x20found:',_0x260af8[_0x4929d5('0x35')]),_0x109d13(_0x260af8)):_0x197ab4({'statusCode':0x194,'message':_0x4929d5('0x21')});}else _0x197ab4({'statusCode':0x194,'message':_0x4929d5('0x21')});})[_0x919444('0x38')](function(_0x45ae7b){const _0x232156=_0x919444;logger['error']('['+[_0xc3ad6c[_0x232156('0x3f')]()]+']',_0x45ae7b[_0x232156('0x22')]),_0x197ab4(_0x45ae7b);});});}function getUser(_0x35ace3,_0x4ba125,_0x31f53c){return function(_0x14532f){return new Promise(function(_0x1d4be9,_0x59f006){const _0xc22261=a1138_0x2786,_0x1d6695={'method':_0xc22261('0xf'),'uri':_0x31f53c+_0xc22261('0x2'),'json':!![]};return _0x1d6695[_0xc22261('0x3e')]=_0x4ba125,logger[_0xc22261('0x30')]('Getting\x20user\x20list'),rp(_0x1d6695)[_0xc22261('0x6')](function(_0x38f4ea){const _0x1fc827=_0xc22261;if(_0x38f4ea){const _0xe0e56c=_0x38f4ea[_0x1fc827('0x18')];let _0x5cf8b8=![],_0x21004e=null;if(_0x14532f[_0x1fc827('0x4f')]!==null){logger['info'](_0x1fc827('0x8'),_0x14532f['agentEmail']),_0x14532f[_0x1fc827('0x42')]=_0x14532f[_0x1fc827('0x4f')];for(_0x21004e=0x0;_0x21004e<_0xe0e56c[_0x1fc827('0x40')];_0x21004e++){_0xe0e56c[_0x21004e]['email']===_0x14532f[_0x1fc827('0x4f')]&&(_0x5cf8b8=!![],_0x14532f[_0x1fc827('0x3b')]=_0xe0e56c[_0x21004e]['id'],logger[_0x1fc827('0x30')](_0x1fc827('0x46'),_0x14532f[_0x1fc827('0x3b')]));}}!_0x5cf8b8&&(logger[_0x1fc827('0x30')]('Admin\x20selected'),_0x14532f['userEmail']=_0x14532f[_0x1fc827('0x27')],_0x14532f['userId']=_0x14532f[_0x1fc827('0x35')],_0x5cf8b8=!![]),_0x5cf8b8?_0x1d4be9(_0x14532f):_0x59f006({'statusCode':0x194,'message':_0x1fc827('0x21')});}else _0x59f006({'statusCode':0x194,'message':_0x1fc827('0x21')});})['catch'](function(_0x371fbc){const _0x248152=_0xc22261;logger[_0x248152('0x31')]('['+[_0x35ace3[_0x248152('0x3f')]()]+']',_0x371fbc['message']),_0x59f006(_0x371fbc);});});};}function getEndUser(_0x19fa0d,_0x1e6f38,_0x5ae875){return function(_0x437802){return new Promise(function(_0x54c36f){const _0x860152=a1138_0x2786;let _0x3d58e4=0x0;const _0xbd625c={'method':_0x860152('0xf'),'uri':_0x5ae875+'/api/contacts/filters','json':!![]};return _0xbd625c[_0x860152('0x3e')]=_0x1e6f38,logger[_0x860152('0x30')](_0x860152('0x4e')),rp(_0xbd625c)[_0x860152('0x6')](function(_0x37de22){const _0x3f582b=_0x860152;_0x37de22[_0x3f582b('0x43')][_0x3f582b('0x26')](function(_0x2214af){const _0x4d93b7=_0x3f582b;_0x2214af['name']===_0x4d93b7('0x11')&&(_0x3d58e4=_0x2214af['id']);});})[_0x860152('0x6')](function(){const _0x531bdd=_0x860152;logger['info']('Getting\x20contact\x20list');const _0x45d13f={'method':_0x531bdd('0xf'),'uri':_0x5ae875+_0x531bdd('0x4a')+_0x3d58e4,'json':!![]};return _0x45d13f['headers']=_0x1e6f38,rp(_0x45d13f);})[_0x860152('0x6')](function(_0x583f66){const _0x555002=_0x860152;logger['info'](_0x555002('0x44'),_0x437802[_0x555002('0x3a')]);if(_0x583f66[_0x555002('0x19')][_0x555002('0x40')]>0x0){const _0xc8361e=_[_0x555002('0x1d')](_0x583f66[_0x555002('0x19')],function(_0x49763b){const _0x499c9f=_0x555002;if(_0x49763b[_0x499c9f('0x1e')]===_0x437802[_0x499c9f('0x3a')]||_0x49763b['mobile_number']===_0x437802['contactNumber'])return _0x49763b;});if(_0xc8361e)_0x437802['endUserId']=_0xc8361e['id'],logger['info'](_0x555002('0x4b'),_0x437802[_0x555002('0x9')]),_0x54c36f(_0x437802);else return createEndUser(_0x437802,_0x19fa0d,_0x1e6f38,_0x5ae875)[_0x555002('0x6')](function(_0x241005){const _0x1f1c5d=_0x555002;logger[_0x1f1c5d('0x30')](_0x1f1c5d('0x48'),_0x437802[_0x1f1c5d('0x9')]),_0x54c36f(_0x241005);});}else return createEndUser(_0x437802,_0x19fa0d,_0x1e6f38,_0x5ae875)[_0x555002('0x6')](function(_0x3c992e){const _0x369238=_0x555002;logger[_0x369238('0x30')]('Contact\x20created:',_0x437802[_0x369238('0x9')]),_0x54c36f(_0x3c992e);});})['catch'](function(_0x52ef75){const _0x1afcbf=_0x860152;throw new Error(_0x52ef75[_0x1afcbf('0x22')]);});});};}function createEndUser(_0x4664e8,_0x10afb1,_0x564229,_0x3608f7){return new Promise(function(_0x4088ce,_0x5a42fe){const _0x21a93f=a1138_0x2786,_0x213f03=moment(),_0x324b2d={'method':'POST','uri':_0x3608f7+'/api/contacts','body':{'contact':{'last_name':_0x4664e8[_0x21a93f('0x3a')],'work_number':_0x4664e8['contactNumber'],'mobile_number':_0x4664e8['contactNumber'],'owner_id':_0x4664e8['userId'],'created_at':_0x213f03[_0x21a93f('0x34')](_0x21a93f('0xb'))}},'json':!![]};return _0x324b2d[_0x21a93f('0x3e')]=_0x564229,logger['info'](_0x21a93f('0x5')),rp(_0x324b2d)[_0x21a93f('0x6')](function(_0x378b95){const _0x2e09e1=_0x21a93f;_0x4664e8['endUserId']=_0x378b95[_0x2e09e1('0x4c')]['id'],_0x4088ce(_0x4664e8);})['catch'](function(_0x507811){const _0x4e9fa4=_0x21a93f;logger[_0x4e9fa4('0x31')]('['+[_0x10afb1['toUpperCase']()]+']',_0x507811['message']),_0x5a42fe(_0x507811[_0x4e9fa4('0x22')]);});});}function getTicket(_0x2d02d9,_0x390070,_0x2b99cc,_0x30a466,_0x56cd14){return function(_0x2bf439){const _0x79b977=a1138_0x2786;return logger[_0x79b977('0x30')](_0x79b977('0x0')),new Promise(function(_0x311367,_0x470e7b){const _0x41b9fa=_0x79b977,_0x618d8a=moment(),_0x1b7e94={'method':_0x41b9fa('0x2a'),'uri':_0x2b99cc+_0x41b9fa('0x49'),'body':{'title':intUtil[_0x41b9fa('0x2b')](_0x30a466[_0x41b9fa('0x16')],_0x56cd14,'\x20'),'description':intUtil['getString'](_0x30a466[_0x41b9fa('0x28')],_0x56cd14,'\x0a'),'owner_id':_0x2bf439['userId'],'creater_id':_0x2bf439[_0x41b9fa('0x35')],'targetable_id':_0x2bf439[_0x41b9fa('0x9')],'targetable_type':_0x41b9fa('0x1f'),'created_at':_0x618d8a[_0x41b9fa('0x34')](_0x41b9fa('0xb')),'due_date':_0x618d8a[_0x41b9fa('0x1a')](0x1e,'m')[_0x41b9fa('0x34')]('YYYY-MM-DDTHH:mm:ss')},'json':!![]};return _0x1b7e94[_0x41b9fa('0x3e')]=_0x390070,rp(_0x1b7e94)['then'](function(_0x4aefa6){const _0x29aaf9=_0x41b9fa;_0x2bf439[_0x29aaf9('0x2e')]=_0x4aefa6[_0x29aaf9('0x32')]['id'],logger[_0x29aaf9('0x30')]('Task\x20created:',_0x2bf439['ticketId']),_0x311367(_0x2bf439);})['catch'](function(_0x561328){const _0x2b4eb3=_0x41b9fa;logger['error']('['+[_0x2d02d9['toUpperCase']()]+']',_0x561328[_0x2b4eb3('0x22')]),_0x470e7b(_0x561328[_0x2b4eb3('0x22')]);});});};}function emit(_0x54a030,_0x3eb1e1,_0x2d790c){const _0x384234=_0x3d4266,_0x49b180={'uri':_0x54a030+_0x384234('0x2c')+_0x2d790c};io['to'](util[_0x384234('0x34')](_0x384234('0x20'),_0x3eb1e1))['emit'](_0x384234('0x2d'),_0x49b180);}exports['cs']=function(_0x227800,_0x16e968,_0x4a8e81,_0xb7230e,_0x4ee8ae,_0x5abfc5,_0x36f2f1,_0x2be09c){const _0x5d1cef=_0x3d4266,_0x1dfacd={},_0x2e1df8={'Authorization':'Token\x20token='+_0x5abfc5[_0x5d1cef('0x1c')]};_0x5abfc5[_0x5d1cef('0x29')]=intUtil[_0x5d1cef('0x25')](_0x5abfc5['remoteUri']),_0x5abfc5['serverUrl']=intUtil[_0x5d1cef('0x25')](_0x5abfc5[_0x5d1cef('0x33')]);const _0x37634a=_0x5abfc5['remoteUri'];_0x1dfacd[_0x5d1cef('0x27')]=_0x5abfc5[_0x5d1cef('0x1b')],_0x1dfacd[_0x5d1cef('0x3a')]=_0x2be09c[_0x5d1cef('0x10')]()===_0x5d1cef('0x2f')?_0x16e968[_0x5d1cef('0xc')]:_0x16e968[_0x5d1cef('0x13')],_0x1dfacd['callDirection']=_0x2be09c===_0x5d1cef('0x4')||_0x2be09c===_0x5d1cef('0x41')?_0x5d1cef('0x4'):_0x5d1cef('0x2f');_0xb7230e&&(_0x1dfacd[_0x5d1cef('0x4f')]=_0xb7230e[_0x5d1cef('0x36')]);const _0x2c992e=util[_0x5d1cef('0x34')](_0x5d1cef('0x15'),_0x5abfc5[_0x5d1cef('0x33')],_0x16e968[_0x5d1cef('0x12')],md5(_0x16e968[_0x5d1cef('0x12')]));if(_0x4ee8ae&&_0x4ee8ae[_0x5d1cef('0x24')])logger[_0x5d1cef('0x30')](_0x5d1cef('0x3d'),_0x5d1cef('0x7')),_0x16e968['recordingURL']=_0x2c992e;else _0x36f2f1&&_0x36f2f1['recordingFormat']&&_0x36f2f1[_0x5d1cef('0xd')]!==_0x5d1cef('0x3')?(logger[_0x5d1cef('0x30')]('[OUTBOUND]',_0x5d1cef('0x7')),_0x16e968[_0x5d1cef('0xa')]=_0x2c992e):_0x16e968[_0x5d1cef('0xa')]='';return getAdminId(_0x1dfacd,_0x2be09c,_0x2e1df8,_0x37634a)['then'](getUser(_0x2be09c,_0x2e1df8,_0x37634a))[_0x5d1cef('0x6')](getEndUser(_0x2be09c,_0x2e1df8,_0x37634a))[_0x5d1cef('0x6')](getTicket(_0x2be09c,_0x2e1df8,_0x37634a,_0x4a8e81,_0x16e968))[_0x5d1cef('0x6')](function(_0x14e5d8){const _0x10a847=_0x5d1cef;logger[_0x10a847('0x30')](util['format']('The\x20ticket\x20ID\x20is:\x20%s',_0x14e5d8['ticketId'])),_0x2be09c!==_0x10a847('0x41')&&(logger['info']('['+[_0x2be09c[_0x10a847('0x3f')]()]+']',_0x10a847('0x37')),emit(_0x37634a,_0xb7230e[_0x10a847('0x23')],_0x14e5d8[_0x10a847('0x9')]));})['catch'](function(_0xc85d33){const _0x404bfb=_0x5d1cef;logger[_0x404bfb('0x31')]('['+[_0x2be09c[_0x404bfb('0x3f')]()]+_0x404bfb('0x45'),util[_0x404bfb('0x17')](_0xc85d33,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1139_0x49e6=['recordingFormat','Getting\x20contact\x20list','then','userEmail','destcalleridnum','moment','Getting\x20user\x20with\x20email','trigger:browser:url','contact','Contact\x20not\x20found,\x20creating\x20a\x20new\x20contact','[QUEUE]','Displaying\x20task\x20in\x20a\x20new\x20tab...','GET','error','monitor_format','calleridnum','[OUTBOUND]','uniqueid','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','YYYY-MM-DDTHH:mm:ss','Getting\x20admin\x20information','queue','userId','outbound','mobile_number',']\x20Error\x20running\x20Freshsales\x20integration','headers','toLowerCase','endUserId','lodash','adminId','Descriptions','remoteUri','/api/selector/owners','add','/api/contacts/view/','info','adminEmail','format','username','Getting\x20contacts\x20filter','Contact','getString','Admin\x20selected','agentEmail','emit','Task\x20created:','./util','toUpperCase','The\x20ticket\x20ID\x20is:\x20%s','stripTrailingSlash','name','Subjects','contacts','length','recordingURL','/api/contacts/filters','/api/tasks','catch','ticketId','contactNumber','freshsales','md5','serverUrl','forEach','user:%s','email','../../../../config/logger','Admin\x20found:','Contact\x20created:','Recording\x20is\x20enabled!','users','unmanaged','Token\x20token=','message','Requested\x20Resource\x20not\x20Found'];(function(_0x44dd22,_0x49e687){const _0x3b6092=function(_0x1e3b1a){while(--_0x1e3b1a){_0x44dd22['push'](_0x44dd22['shift']());}};_0x3b6092(++_0x49e687);}(a1139_0x49e6,0x16c));const a1139_0x3b60=function(_0x44dd22,_0x49e687){_0x44dd22=_0x44dd22-0x0;let _0x3b6092=a1139_0x49e6[_0x44dd22];return _0x3b6092;};const _0x2d3f9d=a1139_0x3b60;'use strict';const _=require(_0x2d3f9d('0x2d')),rp=require('request-promise-native'),md5=require(_0x2d3f9d('0x2')),util=require('util'),moment=require(_0x2d3f9d('0x15')),intUtil=require(_0x2d3f9d('0x3f')),logger=require(_0x2d3f9d('0x7'))(_0x2d3f9d('0x1')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAdminId(_0x1e3b1a,_0x3411a0,_0x3c328c,_0x261a44){return new Promise(function(_0x34192f,_0x618b77){const _0x33e519=a1139_0x3b60;let _0x55933d=![];const _0x5126a5={'method':_0x33e519('0x1c'),'uri':_0x261a44+_0x33e519('0x31'),'json':!![]};return _0x5126a5['headers']=_0x3c328c,logger[_0x33e519('0x34')](_0x33e519('0x24')),rp(_0x5126a5)[_0x33e519('0x12')](function(_0x31771d){const _0x1d662f=_0x33e519;if(_0x31771d){const _0x33cb65=_0x31771d[_0x1d662f('0xb')];let _0xbc0fc2=null;for(_0xbc0fc2=0x0;_0xbc0fc2<_0x33cb65[_0x1d662f('0x46')];_0xbc0fc2++){_0x33cb65[_0xbc0fc2][_0x1d662f('0x6')]===_0x1e3b1a['adminEmail']&&(_0x1e3b1a[_0x1d662f('0x2e')]=_0x33cb65[_0xbc0fc2]['id'],_0x55933d=!![]);}_0x55933d?(logger[_0x1d662f('0x34')](_0x1d662f('0x8'),_0x1e3b1a[_0x1d662f('0x2e')]),_0x34192f(_0x1e3b1a)):_0x618b77({'statusCode':0x194,'message':_0x1d662f('0xf')});}else _0x618b77({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});})['catch'](function(_0x3ec69f){const _0x3679a0=_0x33e519;logger[_0x3679a0('0x1d')]('['+[_0x3411a0[_0x3679a0('0x40')]()]+']',_0x3ec69f[_0x3679a0('0xe')]),_0x618b77(_0x3ec69f);});});}function getUser(_0x1c81db,_0x37e1f5,_0xccb388){return function(_0xc75260){return new Promise(function(_0x19f081,_0x1234dc){const _0x282f95=a1139_0x3b60,_0x13fd7b={'method':'GET','uri':_0xccb388+_0x282f95('0x31'),'json':!![]};return _0x13fd7b[_0x282f95('0x2a')]=_0x37e1f5,logger[_0x282f95('0x34')]('Getting\x20user\x20list'),rp(_0x13fd7b)[_0x282f95('0x12')](function(_0x316f3c){const _0x27af72=_0x282f95;if(_0x316f3c){const _0x462df2=_0x316f3c['users'];let _0x414caa=![],_0x2673e9=null;if(_0xc75260[_0x27af72('0x3c')]!==null){logger['info'](_0x27af72('0x16'),_0xc75260[_0x27af72('0x3c')]),_0xc75260[_0x27af72('0x13')]=_0xc75260[_0x27af72('0x3c')];for(_0x2673e9=0x0;_0x2673e9<_0x462df2['length'];_0x2673e9++){_0x462df2[_0x2673e9][_0x27af72('0x6')]===_0xc75260[_0x27af72('0x3c')]&&(_0x414caa=!![],_0xc75260[_0x27af72('0x26')]=_0x462df2[_0x2673e9]['id'],logger[_0x27af72('0x34')]('User\x20found:',_0xc75260[_0x27af72('0x26')]));}}!_0x414caa&&(logger['info'](_0x27af72('0x3b')),_0xc75260[_0x27af72('0x13')]=_0xc75260['adminEmail'],_0xc75260[_0x27af72('0x26')]=_0xc75260[_0x27af72('0x2e')],_0x414caa=!![]),_0x414caa?_0x19f081(_0xc75260):_0x1234dc({'statusCode':0x194,'message':'Requested\x20Resource\x20not\x20Found'});}else _0x1234dc({'statusCode':0x194,'message':_0x27af72('0xf')});})[_0x282f95('0x4a')](function(_0x122b31){const _0x3d425a=_0x282f95;logger['error']('['+[_0x1c81db[_0x3d425a('0x40')]()]+']',_0x122b31[_0x3d425a('0xe')]),_0x1234dc(_0x122b31);});});};}function getEndUser(_0x415765,_0x4aecaf,_0x2a57ad){return function(_0x3faff7){return new Promise(function(_0x193309){const _0x3d4e97=a1139_0x3b60;let _0x1a663e=0x0;const _0x1bf6e7={'method':_0x3d4e97('0x1c'),'uri':_0x2a57ad+_0x3d4e97('0x48'),'json':!![]};return _0x1bf6e7[_0x3d4e97('0x2a')]=_0x4aecaf,logger[_0x3d4e97('0x34')](_0x3d4e97('0x38')),rp(_0x1bf6e7)[_0x3d4e97('0x12')](function(_0x442d8c){const _0x1e32cd=_0x3d4e97;_0x442d8c['filters'][_0x1e32cd('0x4')](function(_0xa5cff0){_0xa5cff0['name']==='All\x20Contacts'&&(_0x1a663e=_0xa5cff0['id']);});})[_0x3d4e97('0x12')](function(){const _0xc8280c=_0x3d4e97;logger[_0xc8280c('0x34')](_0xc8280c('0x11'));const _0x13e467={'method':'GET','uri':_0x2a57ad+_0xc8280c('0x33')+_0x1a663e,'json':!![]};return _0x13e467['headers']=_0x4aecaf,rp(_0x13e467);})['then'](function(_0x3e6739){const _0x43e877=_0x3d4e97;logger[_0x43e877('0x34')]('Searching\x20contact\x20with\x20phone',_0x3faff7[_0x43e877('0x0')]);if(_0x3e6739[_0x43e877('0x45')][_0x43e877('0x46')]>0x0){const _0x4ff187=_['find'](_0x3e6739[_0x43e877('0x45')],function(_0x10aa96){const _0x3997cf=_0x43e877;if(_0x10aa96['work_number']===_0x3faff7[_0x3997cf('0x0')]||_0x10aa96[_0x3997cf('0x28')]===_0x3faff7[_0x3997cf('0x0')])return _0x10aa96;});if(_0x4ff187)_0x3faff7[_0x43e877('0x2c')]=_0x4ff187['id'],logger[_0x43e877('0x34')]('Contact\x20found:',_0x3faff7[_0x43e877('0x2c')]),_0x193309(_0x3faff7);else return createEndUser(_0x3faff7,_0x415765,_0x4aecaf,_0x2a57ad)[_0x43e877('0x12')](function(_0x31def3){const _0x588361=_0x43e877;logger[_0x588361('0x34')](_0x588361('0x9'),_0x3faff7[_0x588361('0x2c')]),_0x193309(_0x31def3);});}else return createEndUser(_0x3faff7,_0x415765,_0x4aecaf,_0x2a57ad)[_0x43e877('0x12')](function(_0x3c1483){const _0x26a73f=_0x43e877;logger[_0x26a73f('0x34')](_0x26a73f('0x9'),_0x3faff7['endUserId']),_0x193309(_0x3c1483);});})[_0x3d4e97('0x4a')](function(_0x543235){const _0x5e9fd0=_0x3d4e97;throw new Error(_0x543235[_0x5e9fd0('0xe')]);});});};}function createEndUser(_0x2604e1,_0x3f8fdd,_0x560882,_0x1e6c73){return new Promise(function(_0x1a0672,_0x508ba4){const _0x48e6dc=a1139_0x3b60,_0x563683=moment(),_0x54c7b5={'method':'POST','uri':_0x1e6c73+'/api/contacts','body':{'contact':{'last_name':_0x2604e1[_0x48e6dc('0x0')],'work_number':_0x2604e1[_0x48e6dc('0x0')],'mobile_number':_0x2604e1[_0x48e6dc('0x0')],'owner_id':_0x2604e1[_0x48e6dc('0x26')],'created_at':_0x563683[_0x48e6dc('0x36')]('YYYY-MM-DDTHH:mm:ss')}},'json':!![]};return _0x54c7b5['headers']=_0x560882,logger[_0x48e6dc('0x34')](_0x48e6dc('0x19')),rp(_0x54c7b5)[_0x48e6dc('0x12')](function(_0x5d6ee2){const _0xc7c22f=_0x48e6dc;_0x2604e1[_0xc7c22f('0x2c')]=_0x5d6ee2[_0xc7c22f('0x18')]['id'],_0x1a0672(_0x2604e1);})['catch'](function(_0x507a1a){const _0x326e75=_0x48e6dc;logger[_0x326e75('0x1d')]('['+[_0x3f8fdd['toUpperCase']()]+']',_0x507a1a[_0x326e75('0xe')]),_0x508ba4(_0x507a1a[_0x326e75('0xe')]);});});}function getTicket(_0x3ba504,_0x352929,_0x4348c1,_0x1a7109,_0x428a78){return function(_0x3bb9e0){const _0x401375=a1139_0x3b60;return logger[_0x401375('0x34')]('Creating\x20new\x20task'),new Promise(function(_0x8b6cfa,_0x38acea){const _0x149609=_0x401375,_0x65600=moment(),_0x4a5f60={'method':'POST','uri':_0x4348c1+_0x149609('0x49'),'body':{'title':intUtil['getString'](_0x1a7109[_0x149609('0x44')],_0x428a78,'\x20'),'description':intUtil[_0x149609('0x3a')](_0x1a7109[_0x149609('0x2f')],_0x428a78,'\x0a'),'owner_id':_0x3bb9e0[_0x149609('0x26')],'creater_id':_0x3bb9e0['adminId'],'targetable_id':_0x3bb9e0['endUserId'],'targetable_type':_0x149609('0x39'),'created_at':_0x65600[_0x149609('0x36')](_0x149609('0x23')),'due_date':_0x65600[_0x149609('0x32')](0x1e,'m')[_0x149609('0x36')]('YYYY-MM-DDTHH:mm:ss')},'json':!![]};return _0x4a5f60[_0x149609('0x2a')]=_0x352929,rp(_0x4a5f60)[_0x149609('0x12')](function(_0x3b7029){const _0x4824b7=_0x149609;_0x3bb9e0[_0x4824b7('0x4b')]=_0x3b7029['task']['id'],logger[_0x4824b7('0x34')](_0x4824b7('0x3e'),_0x3bb9e0[_0x4824b7('0x4b')]),_0x8b6cfa(_0x3bb9e0);})[_0x149609('0x4a')](function(_0x156fcb){const _0x2eada2=_0x149609;logger['error']('['+[_0x3ba504['toUpperCase']()]+']',_0x156fcb[_0x2eada2('0xe')]),_0x38acea(_0x156fcb[_0x2eada2('0xe')]);});});};}function emit(_0x23ad42,_0x431a5c,_0x20b416){const _0x17364e=_0x2d3f9d,_0x1060ee={'uri':_0x23ad42+'/contacts/'+_0x20b416};io['to'](util[_0x17364e('0x36')](_0x17364e('0x5'),_0x431a5c))[_0x17364e('0x3d')](_0x17364e('0x17'),_0x1060ee);}exports['cs']=function(_0x5c3f18,_0x556fb,_0x52b2d0,_0x57a622,_0x350614,_0x2f6909,_0xfd724f,_0x15eb65){const _0x5dd7e2=_0x2d3f9d,_0x4a78db={},_0x3b06af={'Authorization':_0x5dd7e2('0xd')+_0x2f6909['apiKey']};_0x2f6909['remoteUri']=intUtil[_0x5dd7e2('0x42')](_0x2f6909[_0x5dd7e2('0x30')]),_0x2f6909[_0x5dd7e2('0x3')]=intUtil[_0x5dd7e2('0x42')](_0x2f6909[_0x5dd7e2('0x3')]);const _0x3ce9ce=_0x2f6909[_0x5dd7e2('0x30')];_0x4a78db[_0x5dd7e2('0x35')]=_0x2f6909[_0x5dd7e2('0x37')],_0x4a78db[_0x5dd7e2('0x0')]=_0x15eb65[_0x5dd7e2('0x2b')]()===_0x5dd7e2('0x27')?_0x556fb[_0x5dd7e2('0x14')]:_0x556fb[_0x5dd7e2('0x1f')],_0x4a78db['callDirection']=_0x15eb65===_0x5dd7e2('0x25')||_0x15eb65===_0x5dd7e2('0xc')?'queue':_0x5dd7e2('0x27');_0x57a622&&(_0x4a78db[_0x5dd7e2('0x3c')]=_0x57a622[_0x5dd7e2('0x6')]);const _0x554fb4=util[_0x5dd7e2('0x36')](_0x5dd7e2('0x22'),_0x2f6909[_0x5dd7e2('0x3')],_0x556fb[_0x5dd7e2('0x21')],md5(_0x556fb[_0x5dd7e2('0x21')]));if(_0x350614&&_0x350614[_0x5dd7e2('0x1e')])logger[_0x5dd7e2('0x34')](_0x5dd7e2('0x1a'),_0x5dd7e2('0xa')),_0x556fb['recordingURL']=_0x554fb4;else _0xfd724f&&_0xfd724f[_0x5dd7e2('0x10')]&&_0xfd724f['recordingFormat']!=='none'?(logger[_0x5dd7e2('0x34')](_0x5dd7e2('0x20'),'Recording\x20is\x20enabled!'),_0x556fb[_0x5dd7e2('0x47')]=_0x554fb4):_0x556fb[_0x5dd7e2('0x47')]='';return getAdminId(_0x4a78db,_0x15eb65,_0x3b06af,_0x3ce9ce)['then'](getUser(_0x15eb65,_0x3b06af,_0x3ce9ce))['then'](getEndUser(_0x15eb65,_0x3b06af,_0x3ce9ce))['then'](getTicket(_0x15eb65,_0x3b06af,_0x3ce9ce,_0x52b2d0,_0x556fb))[_0x5dd7e2('0x12')](function(_0x401ed4){const _0x351e76=_0x5dd7e2;logger['info'](util[_0x351e76('0x36')](_0x351e76('0x41'),_0x401ed4['ticketId'])),_0x15eb65!==_0x351e76('0xc')&&(logger[_0x351e76('0x34')]('['+[_0x15eb65['toUpperCase']()]+']',_0x351e76('0x1b')),emit(_0x3ce9ce,_0x57a622[_0x351e76('0x43')],_0x401ed4[_0x351e76('0x2c')]));})[_0x5dd7e2('0x4a')](function(_0x20b3e1){const _0x57b902=_0x5dd7e2;logger[_0x57b902('0x1d')]('['+[_0x15eb65['toUpperCase']()]+_0x57b902('0x29'),util['inspect'](_0x20b3e1,{'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 14155b7..b585f34 100644 --- a/server/services/ami/trigger/integration/index.js +++ b/server/services/ami/trigger/integration/index.js @@ -1 +1 @@ -const a1139_0x1300=['outbound','[EXEC]','data3','servicenow','../../../../config/logger','Configurations','./vtiger','./freshdesk','log','vtiger','EVENT\x20UNKNOWN','error','util','dynamics365','data2','./dynamics365','freshsales','format','unknown\x20integration','exec','queue','zoho','desk','data1','./salesforce','zendesk','routeId','toLowerCase','freshdesk','unmanaged','salesforce','sugarcrm','./freshsales'];(function(_0x26d335,_0x1300a4){const _0x492fde=function(_0x29c314){while(--_0x29c314){_0x26d335['push'](_0x26d335['shift']());}};_0x492fde(++_0x1300a4);}(a1139_0x1300,0x138));const a1139_0x492f=function(_0x26d335,_0x1300a4){_0x26d335=_0x26d335-0x0;let _0x492fde=a1139_0x1300[_0x26d335];return _0x492fde;};const _0x4c486d=a1139_0x492f;'use strict';const _=require('lodash'),util=require(_0x4c486d('0x1e')),zendesk=require('./zendesk'),salesforce=require(_0x4c486d('0x9')),sugarcrm=require('./sugarcrm'),freshdesk=require(_0x4c486d('0x19')),zoho=require('./zoho'),desk=require('./desk'),vtiger=require(_0x4c486d('0x18')),servicenow=require('./servicenow'),dynamics365=require(_0x4c486d('0x0')),freshsales=require(_0x4c486d('0x11')),integrations=[_0x4c486d('0xa'),_0x4c486d('0xf'),_0x4c486d('0x10'),_0x4c486d('0xd'),_0x4c486d('0x6'),'desk',_0x4c486d('0x1b'),_0x4c486d('0x1f'),_0x4c486d('0x1'),_0x4c486d('0x15')];exports[_0x4c486d('0x4')]=function(_0x29c314,_0x174407,_0xa62845,_0x160f40,_0x41f723,_0x28d624){const _0x626be1=_0x4c486d;if(_0xa62845){if(_['includes'](integrations,_0x29c314['data1'][_0x626be1('0xc')]()))try{let _0x3161e6=null,_0x2cd0e5='';const _0x318e9f=_0xa62845[_0x29c314['data1']['toLowerCase']()];if(_0x318e9f){const _0x81ef7d=_0x318e9f[_0x29c314['data2']];if(_0x81ef7d){const _0x40fb63=_['find'](_0x81ef7d[_0x626be1('0x17')],{'id':parseInt(_0x29c314[_0x626be1('0x14')],0xa)});if(_0x40fb63){if(_0x160f40){if(_0x41f723&&_0x174407['queue'])_0x2cd0e5=_0x626be1('0x5');else _0x174407[_0x626be1('0xb')]?_0x2cd0e5=_0x626be1('0x12'):console['log'](_0x626be1('0x1c'),_0x174407);}else _0x2cd0e5=_0x626be1('0xe');switch(_0x29c314[_0x626be1('0x8')][_0x626be1('0xc')]()){case _0x626be1('0xa'):zendesk[_0x2cd0e5](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624);break;case _0x626be1('0xf'):salesforce[_0x2cd0e5](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624);break;case _0x626be1('0x10'):sugarcrm[_0x2cd0e5](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624);break;case'freshdesk':freshdesk[_0x2cd0e5](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624);break;case _0x626be1('0x6'):zoho[_0x2cd0e5](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624);break;case _0x626be1('0x7'):desk[_0x2cd0e5](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624);break;case _0x626be1('0x1b'):vtiger[_0x2cd0e5](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624);break;case _0x626be1('0x1'):freshsales['cs'](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624,_0x2cd0e5);break;case _0x626be1('0x15'):servicenow['cs'](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624,_0x2cd0e5);break;case _0x626be1('0x1f'):dynamics365['cs'](_0x29c314,_0x174407,_0x40fb63,_0x160f40,_0x41f723,_0x81ef7d,_0x28d624,_0x2cd0e5);break;default:console[_0x626be1('0x1a')](_0x626be1('0x3'));}}else _0x3161e6=require(_0x626be1('0x16'))(_0x29c314['data1'][_0x626be1('0xc')]()),_0x3161e6['error']('[EXEC]',util[_0x626be1('0x2')]('%s\x20configuration\x20#%s\x20not\x20found',_0x29c314[_0x626be1('0x8')][_0x626be1('0xc')](),_0x29c314[_0x626be1('0x14')]));}else _0x3161e6=require(_0x626be1('0x16'))(_0x29c314[_0x626be1('0x8')][_0x626be1('0xc')]()),_0x3161e6[_0x626be1('0x1d')](_0x626be1('0x13'),util[_0x626be1('0x2')]('%s\x20account\x20#%s\x20not\x20found',_0x29c314[_0x626be1('0x8')][_0x626be1('0xc')](),_0x29c314[_0x626be1('0x20')]));}else{}}catch(_0x3fa4d5){console['error'](_0x3fa4d5);}}}; \ No newline at end of file +const a1140_0x39a8=['./freshdesk','servicenow','data3','sugarcrm','unmanaged','exec','unknown\x20integration','EVENT\x20UNKNOWN','dynamics365','./dynamics365','freshdesk','./zendesk','./zoho','data1','routeId','./freshsales','toLowerCase','util','desk','./desk','[EXEC]','lodash','zendesk','salesforce','format','outbound','./servicenow','../../../../config/logger','data2','%s\x20configuration\x20#%s\x20not\x20found','error','%s\x20account\x20#%s\x20not\x20found','queue','./salesforce','vtiger','log','zoho','freshsales'];(function(_0x48f0e3,_0x39a829){const _0x548692=function(_0x1b0e9d){while(--_0x1b0e9d){_0x48f0e3['push'](_0x48f0e3['shift']());}};_0x548692(++_0x39a829);}(a1140_0x39a8,0x9a));const a1140_0x5486=function(_0x48f0e3,_0x39a829){_0x48f0e3=_0x48f0e3-0x0;let _0x548692=a1140_0x39a8[_0x48f0e3];return _0x548692;};const _0x2827f6=a1140_0x5486;'use strict';const _=require(_0x2827f6('0x13')),util=require(_0x2827f6('0xf')),zendesk=require(_0x2827f6('0x9')),salesforce=require(_0x2827f6('0x1f')),sugarcrm=require('./sugarcrm'),freshdesk=require(_0x2827f6('0x24')),zoho=require(_0x2827f6('0xa')),desk=require(_0x2827f6('0x11')),vtiger=require('./vtiger'),servicenow=require(_0x2827f6('0x18')),dynamics365=require(_0x2827f6('0x7')),freshsales=require(_0x2827f6('0xd')),integrations=[_0x2827f6('0x14'),_0x2827f6('0x15'),_0x2827f6('0x1'),_0x2827f6('0x8'),_0x2827f6('0x22'),'desk','vtiger',_0x2827f6('0x6'),_0x2827f6('0x23'),_0x2827f6('0x25')];exports[_0x2827f6('0x3')]=function(_0x1b0e9d,_0xa855ea,_0x2f274b,_0x1f76c6,_0x3156c0,_0x59659f){const _0x59ff03=_0x2827f6;if(_0x2f274b){if(_['includes'](integrations,_0x1b0e9d[_0x59ff03('0xb')][_0x59ff03('0xe')]()))try{let _0x4382df=null,_0xae9bbb='';const _0x3e294f=_0x2f274b[_0x1b0e9d[_0x59ff03('0xb')]['toLowerCase']()];if(_0x3e294f){const _0x35b0e0=_0x3e294f[_0x1b0e9d[_0x59ff03('0x1a')]];if(_0x35b0e0){const _0x51a5b5=_['find'](_0x35b0e0['Configurations'],{'id':parseInt(_0x1b0e9d[_0x59ff03('0x0')],0xa)});if(_0x51a5b5){if(_0x1f76c6){if(_0x3156c0&&_0xa855ea[_0x59ff03('0x1e')])_0xae9bbb='queue';else _0xa855ea[_0x59ff03('0xc')]?_0xae9bbb=_0x59ff03('0x17'):console[_0x59ff03('0x21')](_0x59ff03('0x5'),_0xa855ea);}else _0xae9bbb=_0x59ff03('0x2');switch(_0x1b0e9d[_0x59ff03('0xb')]['toLowerCase']()){case _0x59ff03('0x14'):zendesk[_0xae9bbb](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f);break;case _0x59ff03('0x15'):salesforce[_0xae9bbb](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f);break;case _0x59ff03('0x1'):sugarcrm[_0xae9bbb](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f);break;case _0x59ff03('0x8'):freshdesk[_0xae9bbb](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f);break;case'zoho':zoho[_0xae9bbb](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f);break;case _0x59ff03('0x10'):desk[_0xae9bbb](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f);break;case _0x59ff03('0x20'):vtiger[_0xae9bbb](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f);break;case'freshsales':freshsales['cs'](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f,_0xae9bbb);break;case _0x59ff03('0x25'):servicenow['cs'](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f,_0xae9bbb);break;case _0x59ff03('0x6'):dynamics365['cs'](_0x1b0e9d,_0xa855ea,_0x51a5b5,_0x1f76c6,_0x3156c0,_0x35b0e0,_0x59659f,_0xae9bbb);break;default:console[_0x59ff03('0x21')](_0x59ff03('0x4'));}}else _0x4382df=require(_0x59ff03('0x19'))(_0x1b0e9d[_0x59ff03('0xb')][_0x59ff03('0xe')]()),_0x4382df['error'](_0x59ff03('0x12'),util[_0x59ff03('0x16')](_0x59ff03('0x1b'),_0x1b0e9d[_0x59ff03('0xb')][_0x59ff03('0xe')](),_0x1b0e9d[_0x59ff03('0x0')]));}else _0x4382df=require('../../../../config/logger')(_0x1b0e9d[_0x59ff03('0xb')][_0x59ff03('0xe')]()),_0x4382df[_0x59ff03('0x1c')](_0x59ff03('0x12'),util[_0x59ff03('0x16')](_0x59ff03('0x1d'),_0x1b0e9d[_0x59ff03('0xb')][_0x59ff03('0xe')](),_0x1b0e9d[_0x59ff03('0x1a')]));}else{}}catch(_0x6bd5f8){console[_0x59ff03('0x1c')](_0x6bd5f8);}}}; \ 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 9683bc6..354ed72 100644 --- a/server/services/ami/trigger/integration/salesforce.js +++ b/server/services/ami/trigger/integration/salesforce.js @@ -1 +1 @@ -const a1140_0x860f=['moment','jsforce','upperFirst','Salesforce\x20account\x20type\x20not\x20recognized','./util','calleridname','find','info','util','validateEmail','Contact','recordingURL','content','[QUEUE]','user:%s','destcalleridname','Enduser\x20with\x20phone\x20%s\x20not\x20found.','contact_lead','toLowerCase','Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.','length','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','stringify','assign','Agent\x20%s\x20found.','integrationTab','moduleCreate','User','then','trigger:salesforce:display','[OUTBOUND]','string','Variable','isNil','https://login.salesforce.com','clientId','display_name','md5','trigger:browser:url','lastevent','lead','contact','toUpperCase','Fields','utc','Email','resolve','type','none','Connection\x20established.','remoteUri','create','Connection','variableName','Phone','identity','idField','ContactId','%s/%s/e','recordingFormat','clientSecret','securityToken','Task','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','newTab','../../../../rediscache','monitor_format','Subjects','outbound','execute','emit','catch',']\x20Integration\x20account\x20type\x20%s.','serverUrl','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','instanceUrl','calleridnum',']\x20Ticket\x20%s\x20created.','format','destcalleridnum','[QUEUE]\x20Ticket\x20%s\x20created','../../../../config/logger','email','stripTrailingSlash','Lead','toString','moduleSearch','No\x20Company','name','queue','sobject','Caller\x20-\x20%s','Name','uniqueid','Case','WhoId','Recording\x20is\x20enabled!','customVariable','error','lodash','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','ticketType','user_id'];(function(_0xd1c5a9,_0x860f12){const _0x22139b=function(_0x1914f0){while(--_0x1914f0){_0xd1c5a9['push'](_0xd1c5a9['shift']());}};_0x22139b(++_0x860f12);}(a1140_0x860f,0x12a));const a1140_0x2213=function(_0xd1c5a9,_0x860f12){_0xd1c5a9=_0xd1c5a9-0x0;let _0x22139b=a1140_0x860f[_0xd1c5a9];return _0x22139b;};const _0x5e0c73=a1140_0x2213;'use strict';const _=require(_0x5e0c73('0x7')),moment=require(_0x5e0c73('0xb')),md5=require(_0x5e0c73('0x30')),jsforce=require(_0x5e0c73('0xc')),util=require(_0x5e0c73('0x13')),intUtil=require(_0x5e0c73('0xf')),logger=require(_0x5e0c73('0x5c'))('salesforce'),{getSocket}=require(_0x5e0c73('0x4c')),io=getSocket();function emit(_0x1914f0,_0x4790e1,_0x504d80){const _0x2893ef=_0x5e0c73;io['to'](_0x1914f0)[_0x2893ef('0x51')](_0x4790e1,_0x504d80);}function getTicket(_0x3f4e44,_0x402f07,_0x958d57,_0x4cb273,_0x595749,_0x50f885,_0x54ac0b){const _0x45e8de=_0x5e0c73;let _0x44bec2={};if(_0x4cb273['ticketType']===_0x45e8de('0x49'))_0x44bec2=Object[_0x45e8de('0x22')]({},{'OwnerId':_0x402f07['id'],'ActivityDate':moment[_0x45e8de('0x37')](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil['getString'](_0x4cb273[_0x45e8de('0x4e')],_0x595749,'\x20'),'Description':intUtil['getString'](_0x4cb273['Descriptions'],_0x595749,'\x0a')},getCustomFields(_0x50f885,_0x595749)),_0x958d57&&(_0x44bec2[_0x45e8de('0x3')]=_0x958d57['id']);else _0x4cb273[_0x45e8de('0x9')]===_0x45e8de('0x2')&&(_0x44bec2=Object[_0x45e8de('0x22')]({},{'OwnerId':_0x402f07['id'],'Subject':intUtil['getString'](_0x4cb273['Subjects'],_0x595749,'\x20'),'Description':intUtil['getString'](_0x4cb273['Descriptions'],_0x595749,'\x0a')},getCustomFields(_0x50f885,_0x595749)),_0x958d57&&(_0x44bec2[_0x45e8de('0x44')]=_0x958d57['id']));return _0x54ac0b[_0x45e8de('0x65')](_0x4cb273['ticketType'])[_0x45e8de('0x3e')](_0x44bec2);}function getUser(_0x118451,_0x4b5cd3,_0x492fe9){const _0x4013bd=_0x5e0c73;if(!_[_0x4013bd('0x2c')](_0x4b5cd3)&&intUtil[_0x4013bd('0x14')](_0x4b5cd3)){const _0x4f2d3f={'Email':_0x4b5cd3},_0x458c5c={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x492fe9[_0x4013bd('0x65')](_0x4013bd('0x26'))[_0x4013bd('0x11')](_0x4f2d3f,_0x458c5c)[_0x4013bd('0x50')]()[_0x4013bd('0x27')](function(_0x88c490){const _0x258958=_0x4013bd;if(_0x88c490['length']){const _0x5c8c64=_[_0x258958('0x11')](_0x88c490,function(_0x21ca9f){const _0x1965b9=_0x258958;return _0x21ca9f[_0x1965b9('0x38')]===_0x4b5cd3;});if(_0x5c8c64)return logger['info'](_0x258958('0x23'),_0x4b5cd3),Promise[_0x258958('0x39')]({'id':_0x5c8c64['Id'],'name':_0x5c8c64[_0x258958('0x0')]});}else return logger['info'](_0x258958('0x55'),_0x4b5cd3),_0x492fe9[_0x258958('0x42')]()[_0x258958('0x27')](function(_0x29ab0d){const _0x34e8bb=_0x258958;return Promise['resolve']({'id':_0x29ab0d[_0x34e8bb('0xa')],'name':_0x29ab0d[_0x34e8bb('0x2f')]});});});}else return logger[_0x4013bd('0x12')](_0x4013bd('0x55'),_0x4b5cd3),_0x492fe9[_0x4013bd('0x42')]()[_0x4013bd('0x27')](function(_0x522976){const _0x3c6661=_0x4013bd;return Promise[_0x3c6661('0x39')]({'id':_0x522976[_0x3c6661('0xa')],'name':_0x522976[_0x3c6661('0x2f')]});});}function getEndUser(_0x31192c,_0x5810b8,_0x24cd37,_0x2ca18e,_0x1dc462){const _0x51f258=_0x5e0c73,_0x279c62={'Phone':_0x2ca18e},_0x1d3813={'Id':!![],'Name':!![],'Phone':!![]};return Promise['resolve']()['then'](function(){const _0x10722d=a1140_0x2213;if(_0x5810b8[_0x10722d('0x9')]==='Task'){logger[_0x10722d('0x12')]('Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.',_0x2ca18e,_0x5810b8[_0x10722d('0x61')]);switch(_0x5810b8[_0x10722d('0x61')]){case _0x10722d('0x1c'):return _0x1dc462['sobject']('Contact')[_0x10722d('0x11')](_0x279c62,_0x1d3813)['execute']()[_0x10722d('0x27')](function(_0x45998f){const _0x68c549=_0x10722d;return _0x45998f&&_0x45998f['length']?_0x45998f:_0x1dc462[_0x68c549('0x65')]('Lead')['find'](_0x279c62,_0x1d3813);});case _0x10722d('0x34'):return _0x1dc462[_0x10722d('0x65')](_0x10722d('0x15'))['find'](_0x279c62,_0x1d3813)[_0x10722d('0x50')]();case _0x10722d('0x33'):return _0x1dc462['sobject'](_0x10722d('0x5f'))[_0x10722d('0x11')](_0x279c62,_0x1d3813);default:return null;}}else{if(_0x5810b8['ticketType']==='Case')return logger['info'](_0x10722d('0x8'),_0x2ca18e,_0x10722d('0x34')),_0x1dc462[_0x10722d('0x65')]('Contact')[_0x10722d('0x11')](_0x279c62,_0x1d3813)[_0x10722d('0x50')]();}})[_0x51f258('0x27')](function(_0x1fc32a){const _0x2c43c3=_0x51f258;if(_0x1fc32a&&_0x1fc32a[_0x2c43c3('0x1f')]){const _0x143731=_[_0x2c43c3('0x11')](_0x1fc32a,function(_0xf31d25){const _0x4082c4=_0x2c43c3;return _0xf31d25[_0x4082c4('0x41')]===_0x2ca18e;});if(_0x143731)return Promise['resolve']({'id':_0x143731['Id'],'name':_0x143731['Name'],'phone':_0x143731[_0x2c43c3('0x41')]});}})[_0x51f258('0x27')](function(_0x327048){const _0x12ccc3=_0x51f258;if(_0x327048)return logger['info']('Enduser\x20with\x20phone\x20%s\x20found.',_0x2ca18e),Promise[_0x12ccc3('0x39')](_0x327048);else{logger[_0x12ccc3('0x12')](_0x12ccc3('0x1b'),_0x2ca18e);const _0x5f1780={'LastName':_0x24cd37!==''?_0x24cd37:util[_0x12ccc3('0x59')](_0x12ccc3('0x66'),_0x2ca18e),'Phone':_0x2ca18e};if(_0x5810b8[_0x12ccc3('0x25')]){if(_0x5810b8[_0x12ccc3('0x25')]===_0x12ccc3('0x34'))logger[_0x12ccc3('0x12')](_0x12ccc3('0x1e'),_0x2ca18e,_0x5810b8[_0x12ccc3('0x25')]);else{if(_0x5810b8[_0x12ccc3('0x25')]===_0x12ccc3('0x33')&&_0x5810b8[_0x12ccc3('0x9')]===_0x12ccc3('0x49'))logger['info'](_0x12ccc3('0x1e'),_0x2ca18e,_0x5810b8[_0x12ccc3('0x25')]),_0x5f1780['Company']=_0x12ccc3('0x62');else return null;}}return _0x1dc462[_0x12ccc3('0x65')](_[_0x12ccc3('0xd')](_0x5810b8[_0x12ccc3('0x25')]))[_0x12ccc3('0x3e')](_0x5f1780);}});}function getCustomFields(_0xb68ba9,_0x19ef9c){const _0x1dce81=_0x5e0c73,_0x44f561={};return _0xb68ba9[_0x1dce81('0x1f')]>0x0&&_['forEach'](_0xb68ba9,function(_0x14d118){const _0x3e1810=_0x1dce81;if(_0x14d118[_0x3e1810('0x3a')]===_0x3e1810('0x2a')&&_0x14d118[_0x3e1810('0x43')])_0x44f561[_0x14d118[_0x3e1810('0x43')]]=_0x14d118[_0x3e1810('0x17')][_0x3e1810('0x60')]();else{if(_0x14d118[_0x3e1810('0x3a')]==='variable'&&_0x14d118[_0x3e1810('0x40')]&&_0x14d118['idField'])_0x19ef9c[_0x14d118[_0x3e1810('0x40')]]&&(_0x44f561[_0x14d118[_0x3e1810('0x43')]]=_0x19ef9c[_0x14d118['variableName']][_0x3e1810('0x60')]());else _0x14d118[_0x3e1810('0x3a')]===_0x3e1810('0x5')&&_0x14d118[_0x3e1810('0x2b')]&&_0x14d118['Variable'][_0x3e1810('0x63')]&&_0x14d118['idField']&&(_0x19ef9c[_0x14d118[_0x3e1810('0x2b')][_0x3e1810('0x63')]['toLowerCase']()]&&(_0x44f561[_0x14d118[_0x3e1810('0x43')]]=_0x19ef9c[_0x14d118[_0x3e1810('0x2b')][_0x3e1810('0x63')][_0x3e1810('0x1d')]()][_0x3e1810('0x60')]()));}}),_0x44f561;}function getConnection(_0x4da502){const _0x8dfc33=_0x5e0c73,_0x244455=_0x4da502['password']['concat'](_0x4da502[_0x8dfc33('0x48')]),_0x200071=new jsforce[(_0x8dfc33('0x3f'))]({'oauth2':{'loginUrl':_0x4da502[_0x8dfc33('0x3d')]||_0x8dfc33('0x2d'),'clientId':_0x4da502[_0x8dfc33('0x2e')],'clientSecret':_0x4da502[_0x8dfc33('0x47')]}});return _0x200071['login'](_0x4da502['username'],_0x244455)[_0x8dfc33('0x27')](function(){const _0x2d53bc=_0x8dfc33;return logger[_0x2d53bc('0x12')](_0x2d53bc('0x3c')),_0x200071;});}exports[_0x5e0c73('0x64')]=function(_0x21b4af,_0x2428ce,_0x389217,_0x7017f0,_0x1960ce,_0x2b0d89){const _0x136037=_0x5e0c73;let _0x21a186,_0x5e92f8,_0x47553c,_0x14ab14;return _0x2b0d89[_0x136037('0x54')]=intUtil[_0x136037('0x5e')](_0x2b0d89[_0x136037('0x54')]),_0x2b0d89[_0x136037('0x3d')]=intUtil[_0x136037('0x5e')](_0x2b0d89['remoteUri']),_0x1960ce&&_0x1960ce[_0x136037('0x4d')]?(logger['info'](_0x136037('0x18'),'Recording\x20is\x20enabled!'),_0x2428ce[_0x136037('0x16')]=util[_0x136037('0x59')](_0x136037('0x20'),_0x2b0d89[_0x136037('0x54')],_0x2428ce[_0x136037('0x1')],md5(_0x2428ce[_0x136037('0x1')]))):_0x2428ce[_0x136037('0x16')]='',getConnection(_0x2b0d89)['then'](function(_0x3cfabc){const _0x22f3ad=_0x136037;return _0x14ab14=_0x3cfabc,getUser(_0x2b0d89,_0x7017f0[_0x22f3ad('0x5d')],_0x14ab14);})['then'](function(_0x309b2d){const _0x463ce9=_0x136037;return _0x21a186=_0x309b2d,getEndUser(_0x2b0d89,_0x389217,_0x2428ce[_0x463ce9('0x10')],_0x2428ce[_0x463ce9('0x57')],_0x14ab14);})[_0x136037('0x27')](function(_0x47a54b){return _0x5e92f8=_0x47a54b,getTicket(_0x2b0d89,_0x21a186,_0x5e92f8,_0x389217,_0x2428ce,_0x389217['Fields'],_0x14ab14,'queue');})['then'](function(_0x5f1cfb){const _0x177abf=_0x136037;_0x47553c=_0x5f1cfb,logger[_0x177abf('0x12')](_0x177abf('0x5b'),_0x47553c['id']),logger[_0x177abf('0x12')]('[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.',_0x47553c['id'],_0x7017f0[_0x177abf('0x63')],_0x2b0d89['type']);switch(_0x2b0d89[_0x177abf('0x3a')]){case _0x177abf('0x24'):emit(util[_0x177abf('0x59')]('user:%s',_0x7017f0[_0x177abf('0x63')]),_0x177abf('0x28'),{'recordId':_0x47553c['id']});break;case _0x177abf('0x4b'):emit(util[_0x177abf('0x59')]('user:%s',_0x7017f0['name']),_0x177abf('0x31'),{'uri':util['format'](_0x177abf('0x45'),_0x14ab14['instanceUrl'],_0x47553c['id'])});break;default:logger['error']('[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.');}})[_0x136037('0x52')](function(_0x3bae46){const _0x3272cd=_0x136037;logger[_0x3272cd('0x6')](_0x3272cd('0x18'),JSON['stringify'](_0x3bae46));});},exports[_0x5e0c73('0x4f')]=function(_0x19a3e3,_0x44d523,_0x822376,_0x2b8ca6,_0x43dce8,_0xd27a1e,_0x2d3699){const _0x362353=_0x5e0c73;let _0x470508,_0x40daf1,_0x485bb2,_0x4e2841;return _0xd27a1e['serverUrl']=intUtil[_0x362353('0x5e')](_0xd27a1e[_0x362353('0x54')]),_0xd27a1e[_0x362353('0x3d')]=intUtil[_0x362353('0x5e')](_0xd27a1e[_0x362353('0x3d')]),_0x2d3699&&_0x2d3699[_0x362353('0x46')]&&_0x2d3699[_0x362353('0x46')]!==_0x362353('0x3b')&&(logger[_0x362353('0x12')](_0x362353('0x29'),_0x362353('0x4')),_0x44d523[_0x362353('0x16')]=util['format'](_0x362353('0x20'),_0xd27a1e[_0x362353('0x54')],_0x44d523[_0x362353('0x1')],md5(_0x44d523[_0x362353('0x1')]))),getConnection(_0xd27a1e)[_0x362353('0x27')](function(_0x5eacd4){const _0x1da26b=_0x362353;return _0x4e2841=_0x5eacd4,getUser(_0xd27a1e,_0x2b8ca6[_0x1da26b('0x5d')],_0x4e2841);})[_0x362353('0x27')](function(_0xa67440){const _0x160b0c=_0x362353;return _0x470508=_0xa67440,getEndUser(_0xd27a1e,_0x822376,_0x44d523[_0x160b0c('0x1a')],_0x44d523[_0x160b0c('0x5a')],_0x4e2841);})['then'](function(_0x208d43){const _0x442bce=_0x362353;return _0x40daf1=_0x208d43,getTicket(_0xd27a1e,_0x470508,_0x40daf1,_0x822376,_0x44d523,_0x822376[_0x442bce('0x36')],_0x4e2841,'outbound');})[_0x362353('0x27')](function(_0x3d84df){const _0x452a14=_0x362353;_0x485bb2=_0x3d84df,logger[_0x452a14('0x12')]('[OUTBOUND]\x20Ticket\x20%s\x20created.',_0x485bb2['id']),logger[_0x452a14('0x12')](_0x452a14('0x4a'),_0x485bb2['id'],_0x2b8ca6[_0x452a14('0x63')],_0xd27a1e['type']);switch(_0xd27a1e[_0x452a14('0x3a')]){case _0x452a14('0x24'):emit(util[_0x452a14('0x59')](_0x452a14('0x19'),_0x2b8ca6['name']),_0x452a14('0x28'),{'recordId':_0x485bb2['id']});break;case _0x452a14('0x4b'):emit(util['format'](_0x452a14('0x19'),_0x2b8ca6[_0x452a14('0x63')]),_0x452a14('0x31'),{'uri':util[_0x452a14('0x59')](_0x452a14('0x45'),_0x4e2841[_0x452a14('0x56')],_0x485bb2['id'])});break;default:logger[_0x452a14('0x6')]('[OUTBOUND]',_0x452a14('0xe'));}})[_0x362353('0x52')](function(_0x2bde9a){const _0x507e3f=_0x362353;logger[_0x507e3f('0x6')](_0x507e3f('0x29'),JSON[_0x507e3f('0x21')](_0x2bde9a));});},exports['unmanaged']=function(_0x3adb27,_0x55cfa1,_0x1f4941,_0x433091,_0x4c814c,_0x548750){const _0x556e03=_0x5e0c73;let _0x584918,_0xed37a,_0x29852c,_0x5d3399;return _0x548750[_0x556e03('0x54')]=intUtil[_0x556e03('0x5e')](_0x548750[_0x556e03('0x54')]),_0x548750[_0x556e03('0x3d')]=intUtil[_0x556e03('0x5e')](_0x548750[_0x556e03('0x3d')]),_0x4c814c&&_0x4c814c[_0x556e03('0x4d')]?(logger[_0x556e03('0x12')]('['+_0x55cfa1[_0x556e03('0x32')][_0x556e03('0x35')]()+']',_0x556e03('0x4')),_0x55cfa1[_0x556e03('0x16')]=util[_0x556e03('0x59')](_0x556e03('0x20'),_0x548750['serverUrl'],_0x55cfa1[_0x556e03('0x1')],md5(_0x55cfa1[_0x556e03('0x1')]))):_0x55cfa1[_0x556e03('0x16')]='',getConnection(_0x548750)['then'](function(_0x350567){const _0x42a3f0=_0x556e03;return _0x5d3399=_0x350567,!_[_0x42a3f0('0x2c')](_0x433091)?getUser(_0x548750,_0x433091[_0x42a3f0('0x63')],_0x5d3399):getUser(_0x548750,null,_0x5d3399);})[_0x556e03('0x27')](function(_0x525701){const _0x50fd24=_0x556e03;return _0x584918=_0x525701,getEndUser(_0x548750,_0x1f4941,_0x55cfa1['calleridname'],_0x55cfa1[_0x50fd24('0x57')],_0x5d3399);})[_0x556e03('0x27')](function(_0x320449){const _0x422a6c=_0x556e03;return _0xed37a=_0x320449,getTicket(_0x548750,_0x584918,_0xed37a,_0x1f4941,_0x55cfa1,_0x1f4941[_0x422a6c('0x36')],_0x5d3399);})[_0x556e03('0x27')](function(_0x36578f){const _0x15f7a3=_0x556e03;_0x29852c=_0x36578f,logger[_0x15f7a3('0x12')]('['+_0x55cfa1[_0x15f7a3('0x32')][_0x15f7a3('0x35')]()+_0x15f7a3('0x58'),_0x29852c['id']),logger['info']('['+_0x55cfa1[_0x15f7a3('0x32')]['toUpperCase']()+_0x15f7a3('0x53'),_0x548750['type']);})[_0x556e03('0x52')](function(_0x438b1f){const _0xc2521a=_0x556e03;logger['error']('['+_0x55cfa1[_0xc2521a('0x32')][_0xc2521a('0x35')]()+']',JSON[_0xc2521a('0x21')](_0x438b1f));});}; \ No newline at end of file +const a1141_0x2937=['md5','remoteUri','Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','isNil','display_name','monitor_format','getString','content','uniqueid','emit','variable','salesforce','[QUEUE]\x20Ticket\x20%s\x20created','[OUTBOUND]\x20Ticket\x20%s\x20created.','length',']\x20Integration\x20account\x20type\x20%s.','Task','moduleCreate','trigger:browser:url','integrationTab','[OUTBOUND]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.','Phone','destcalleridname','util','assign','jsforce','Subjects','https://login.salesforce.com','upperFirst','WhoId','Name','resolve','Enduser\x20with\x20phone\x20%s.\x20Creating\x20method\x20used\x20%s.','ticketType','create','then','contact_lead','lastevent','lead','clientId','','execute','email','user_id','Caller\x20-\x20%s','customVariable','password','calleridnum','find','Searching\x20enduser\x20with\x20phone\x20%s.\x20Serching\x20method\x20used\x20%s.','string','Company','moment','outbound','newTab','Descriptions','toString','type','Recording\x20is\x20enabled!','Connection\x20established.','trigger:salesforce:display','No\x20Company','lodash','variableName','user:%s','none','idField','%s/%s/e','stringify','Contact','[QUEUE]','calleridname','Fields','recordingFormat','Enduser\x20with\x20phone\x20%s\x20not\x20found.','Salesforce\x20account\x20type\x20not\x20recognized','stripTrailingSlash','catch',']\x20Ticket\x20%s\x20created.','format','Email','[QUEUE]\x20Salesforce\x20account\x20type\x20not\x20recognized.','../../../../rediscache','name','queue','identity','error','serverUrl','validateEmail','Case','Variable','sobject','info','utc','username','[OUTBOUND]','moduleSearch','toUpperCase','../../../../config/logger','securityToken','contact','recordingURL','Lead','Enduser\x20with\x20phone\x20%s\x20found.','destcalleridnum','ContactId'];(function(_0x26fdbb,_0x29374a){const _0x48db3d=function(_0x4430dc){while(--_0x4430dc){_0x26fdbb['push'](_0x26fdbb['shift']());}};_0x48db3d(++_0x29374a);}(a1141_0x2937,0x151));const a1141_0x48db=function(_0x26fdbb,_0x29374a){_0x26fdbb=_0x26fdbb-0x0;let _0x48db3d=a1141_0x2937[_0x26fdbb];return _0x48db3d;};const _0x4f44fc=a1141_0x48db;'use strict';const _=require(_0x4f44fc('0x2f')),moment=require(_0x4f44fc('0x25')),md5=require(_0x4f44fc('0x5b')),jsforce=require(_0x4f44fc('0xa')),util=require(_0x4f44fc('0x8')),intUtil=require('./util'),logger=require(_0x4f44fc('0x53'))(_0x4f44fc('0x67')),{getSocket}=require(_0x4f44fc('0x43')),io=getSocket();function emit(_0x4430dc,_0x557ee0,_0x55a8b3){const _0x51ba07=_0x4f44fc;io['to'](_0x4430dc)[_0x51ba07('0x65')](_0x557ee0,_0x55a8b3);}function getTicket(_0x1f336b,_0x334f98,_0x297546,_0x4e4205,_0x49fc69,_0x44a3d8,_0x3d0691){const _0xead98e=_0x4f44fc;let _0x5e87cb={};if(_0x4e4205[_0xead98e('0x12')]===_0xead98e('0x1'))_0x5e87cb=Object[_0xead98e('0x9')]({},{'OwnerId':_0x334f98['id'],'ActivityDate':moment[_0xead98e('0x4e')](),'IsReminderSet':![],'IsRecurrence':![],'Subject':intUtil[_0xead98e('0x62')](_0x4e4205[_0xead98e('0xb')],_0x49fc69,'\x20'),'Description':intUtil[_0xead98e('0x62')](_0x4e4205[_0xead98e('0x28')],_0x49fc69,'\x0a')},getCustomFields(_0x44a3d8,_0x49fc69)),_0x297546&&(_0x5e87cb[_0xead98e('0xe')]=_0x297546['id']);else _0x4e4205[_0xead98e('0x12')]===_0xead98e('0x4a')&&(_0x5e87cb=Object['assign']({},{'OwnerId':_0x334f98['id'],'Subject':intUtil[_0xead98e('0x62')](_0x4e4205[_0xead98e('0xb')],_0x49fc69,'\x20'),'Description':intUtil[_0xead98e('0x62')](_0x4e4205['Descriptions'],_0x49fc69,'\x0a')},getCustomFields(_0x44a3d8,_0x49fc69)),_0x297546&&(_0x5e87cb[_0xead98e('0x5a')]=_0x297546['id']));return _0x3d0691[_0xead98e('0x4c')](_0x4e4205['ticketType'])[_0xead98e('0x13')](_0x5e87cb);}function getUser(_0x86d2fb,_0x676229,_0x37a880){const _0x38a491=_0x4f44fc;if(!_['isNil'](_0x676229)&&intUtil[_0x38a491('0x49')](_0x676229)){const _0x26680b={'Email':_0x676229},_0x10ba5b={'Id':!![],'Username':!![],'Name':!![],'Email':!![]};return _0x37a880[_0x38a491('0x4c')]('User')[_0x38a491('0x21')](_0x26680b,_0x10ba5b)['execute']()[_0x38a491('0x14')](function(_0x5d0006){const _0x5450f4=_0x38a491;if(_0x5d0006['length']){const _0x1a2312=_[_0x5450f4('0x21')](_0x5d0006,function(_0x21834d){const _0x1d59cd=_0x5450f4;return _0x21834d[_0x1d59cd('0x41')]===_0x676229;});if(_0x1a2312)return logger['info']('Agent\x20%s\x20found.',_0x676229),Promise[_0x5450f4('0x10')]({'id':_0x1a2312['Id'],'name':_0x1a2312['Name']});}else return logger[_0x5450f4('0x4d')](_0x5450f4('0x5d'),_0x676229),_0x37a880[_0x5450f4('0x46')]()[_0x5450f4('0x14')](function(_0xaaf038){const _0x4bfa0a=_0x5450f4;return Promise['resolve']({'id':_0xaaf038[_0x4bfa0a('0x1c')],'name':_0xaaf038[_0x4bfa0a('0x60')]});});});}else return logger[_0x38a491('0x4d')]('Agent\x20%s\x20not\x20found.\x20Switch\x20to\x20the\x20admin\x20account.',_0x676229),_0x37a880[_0x38a491('0x46')]()[_0x38a491('0x14')](function(_0x1a38e6){const _0x1d4b05=_0x38a491;return Promise[_0x1d4b05('0x10')]({'id':_0x1a38e6[_0x1d4b05('0x1c')],'name':_0x1a38e6['display_name']});});}function getEndUser(_0x67db08,_0x19f8fe,_0x3c27b3,_0x1f2734,_0x11aaaa){const _0x5485ef=_0x4f44fc,_0x3fdf39={'Phone':_0x1f2734},_0x924e1f={'Id':!![],'Name':!![],'Phone':!![]};return Promise[_0x5485ef('0x10')]()[_0x5485ef('0x14')](function(){const _0x10044c=_0x5485ef;if(_0x19f8fe[_0x10044c('0x12')]===_0x10044c('0x1')){logger[_0x10044c('0x4d')](_0x10044c('0x22'),_0x1f2734,_0x19f8fe[_0x10044c('0x51')]);switch(_0x19f8fe[_0x10044c('0x51')]){case _0x10044c('0x15'):return _0x11aaaa[_0x10044c('0x4c')](_0x10044c('0x36'))[_0x10044c('0x21')](_0x3fdf39,_0x924e1f)[_0x10044c('0x1a')]()[_0x10044c('0x14')](function(_0x106cb5){const _0xec9e0b=_0x10044c;return _0x106cb5&&_0x106cb5[_0xec9e0b('0x6a')]?_0x106cb5:_0x11aaaa['sobject'](_0xec9e0b('0x57'))[_0xec9e0b('0x21')](_0x3fdf39,_0x924e1f);});case _0x10044c('0x55'):return _0x11aaaa['sobject']('Contact')['find'](_0x3fdf39,_0x924e1f)['execute']();case _0x10044c('0x17'):return _0x11aaaa[_0x10044c('0x4c')](_0x10044c('0x57'))[_0x10044c('0x21')](_0x3fdf39,_0x924e1f);default:return null;}}else{if(_0x19f8fe[_0x10044c('0x12')]==='Case')return logger[_0x10044c('0x4d')](_0x10044c('0x22'),_0x1f2734,_0x10044c('0x55')),_0x11aaaa[_0x10044c('0x4c')](_0x10044c('0x36'))[_0x10044c('0x21')](_0x3fdf39,_0x924e1f)[_0x10044c('0x1a')]();}})[_0x5485ef('0x14')](function(_0x1a7d97){const _0x48554b=_0x5485ef;if(_0x1a7d97&&_0x1a7d97[_0x48554b('0x6a')]){const _0x4a06c5=_[_0x48554b('0x21')](_0x1a7d97,function(_0x57dc6f){const _0x989d6d=_0x48554b;return _0x57dc6f[_0x989d6d('0x6')]===_0x1f2734;});if(_0x4a06c5)return Promise[_0x48554b('0x10')]({'id':_0x4a06c5['Id'],'name':_0x4a06c5[_0x48554b('0xf')],'phone':_0x4a06c5[_0x48554b('0x6')]});}})[_0x5485ef('0x14')](function(_0x4509ff){const _0x5f3059=_0x5485ef;if(_0x4509ff)return logger[_0x5f3059('0x4d')](_0x5f3059('0x58'),_0x1f2734),Promise[_0x5f3059('0x10')](_0x4509ff);else{logger[_0x5f3059('0x4d')](_0x5f3059('0x3b'),_0x1f2734);const _0x53b061={'LastName':_0x3c27b3!==_0x5f3059('0x19')?_0x3c27b3:util[_0x5f3059('0x40')](_0x5f3059('0x1d'),_0x1f2734),'Phone':_0x1f2734};if(_0x19f8fe['moduleCreate']){if(_0x19f8fe[_0x5f3059('0x2')]===_0x5f3059('0x55'))logger['info'](_0x5f3059('0x11'),_0x1f2734,_0x19f8fe[_0x5f3059('0x2')]);else{if(_0x19f8fe[_0x5f3059('0x2')]===_0x5f3059('0x17')&&_0x19f8fe[_0x5f3059('0x12')]===_0x5f3059('0x1'))logger['info'](_0x5f3059('0x11'),_0x1f2734,_0x19f8fe[_0x5f3059('0x2')]),_0x53b061[_0x5f3059('0x24')]=_0x5f3059('0x2e');else return null;}}return _0x11aaaa[_0x5f3059('0x4c')](_[_0x5f3059('0xd')](_0x19f8fe[_0x5f3059('0x2')]))[_0x5f3059('0x13')](_0x53b061);}});}function getCustomFields(_0x4a7453,_0x4d7932){const _0x2a29a5=_0x4f44fc,_0x4d5ec7={};return _0x4a7453[_0x2a29a5('0x6a')]>0x0&&_['forEach'](_0x4a7453,function(_0x4f7f2a){const _0x17615a=_0x2a29a5;if(_0x4f7f2a[_0x17615a('0x2a')]===_0x17615a('0x23')&&_0x4f7f2a[_0x17615a('0x33')])_0x4d5ec7[_0x4f7f2a[_0x17615a('0x33')]]=_0x4f7f2a[_0x17615a('0x63')][_0x17615a('0x29')]();else{if(_0x4f7f2a['type']===_0x17615a('0x66')&&_0x4f7f2a['variableName']&&_0x4f7f2a['idField'])_0x4d7932[_0x4f7f2a[_0x17615a('0x30')]]&&(_0x4d5ec7[_0x4f7f2a[_0x17615a('0x33')]]=_0x4d7932[_0x4f7f2a[_0x17615a('0x30')]][_0x17615a('0x29')]());else _0x4f7f2a[_0x17615a('0x2a')]===_0x17615a('0x1e')&&_0x4f7f2a[_0x17615a('0x4b')]&&_0x4f7f2a[_0x17615a('0x4b')][_0x17615a('0x44')]&&_0x4f7f2a['idField']&&(_0x4d7932[_0x4f7f2a[_0x17615a('0x4b')][_0x17615a('0x44')]['toLowerCase']()]&&(_0x4d5ec7[_0x4f7f2a[_0x17615a('0x33')]]=_0x4d7932[_0x4f7f2a[_0x17615a('0x4b')]['name']['toLowerCase']()]['toString']()));}}),_0x4d5ec7;}function getConnection(_0x187389){const _0x1f8cb5=_0x4f44fc,_0x277205=_0x187389[_0x1f8cb5('0x1f')]['concat'](_0x187389[_0x1f8cb5('0x54')]),_0x54a3f4=new jsforce['Connection']({'oauth2':{'loginUrl':_0x187389[_0x1f8cb5('0x5c')]||_0x1f8cb5('0xc'),'clientId':_0x187389[_0x1f8cb5('0x18')],'clientSecret':_0x187389['clientSecret']}});return _0x54a3f4['login'](_0x187389[_0x1f8cb5('0x4f')],_0x277205)['then'](function(){const _0x30a4b7=_0x1f8cb5;return logger[_0x30a4b7('0x4d')](_0x30a4b7('0x2c')),_0x54a3f4;});}exports[_0x4f44fc('0x45')]=function(_0x1b846a,_0x57522e,_0x316f09,_0x36fe9b,_0x12a8a8,_0x3d0e95){const _0x3896bc=_0x4f44fc;let _0x96aac8,_0x491c98,_0x31e4ad,_0x14eb34;return _0x3d0e95['serverUrl']=intUtil[_0x3896bc('0x3d')](_0x3d0e95[_0x3896bc('0x48')]),_0x3d0e95[_0x3896bc('0x5c')]=intUtil['stripTrailingSlash'](_0x3d0e95[_0x3896bc('0x5c')]),_0x12a8a8&&_0x12a8a8['monitor_format']?(logger[_0x3896bc('0x4d')](_0x3896bc('0x37'),_0x3896bc('0x2b')),_0x57522e[_0x3896bc('0x56')]=util['format'](_0x3896bc('0x5e'),_0x3d0e95[_0x3896bc('0x48')],_0x57522e[_0x3896bc('0x64')],md5(_0x57522e[_0x3896bc('0x64')]))):_0x57522e[_0x3896bc('0x56')]='',getConnection(_0x3d0e95)[_0x3896bc('0x14')](function(_0x369e53){const _0x1f262c=_0x3896bc;return _0x14eb34=_0x369e53,getUser(_0x3d0e95,_0x36fe9b[_0x1f262c('0x1b')],_0x14eb34);})[_0x3896bc('0x14')](function(_0x3c4d1a){const _0x5b11c1=_0x3896bc;return _0x96aac8=_0x3c4d1a,getEndUser(_0x3d0e95,_0x316f09,_0x57522e[_0x5b11c1('0x38')],_0x57522e[_0x5b11c1('0x20')],_0x14eb34);})[_0x3896bc('0x14')](function(_0x16e70f){const _0x4e0161=_0x3896bc;return _0x491c98=_0x16e70f,getTicket(_0x3d0e95,_0x96aac8,_0x491c98,_0x316f09,_0x57522e,_0x316f09[_0x4e0161('0x39')],_0x14eb34,_0x4e0161('0x45'));})[_0x3896bc('0x14')](function(_0x56da35){const _0x1c8f19=_0x3896bc;_0x31e4ad=_0x56da35,logger['info'](_0x1c8f19('0x68'),_0x31e4ad['id']),logger['info']('[QUEUE]\x20Displaying\x20ticket\x20%s\x20to\x20agent\x20%s.\x20Integration\x20account\x20type\x20%s.',_0x31e4ad['id'],_0x36fe9b['name'],_0x3d0e95[_0x1c8f19('0x2a')]);switch(_0x3d0e95['type']){case _0x1c8f19('0x4'):emit(util['format']('user:%s',_0x36fe9b[_0x1c8f19('0x44')]),_0x1c8f19('0x2d'),{'recordId':_0x31e4ad['id']});break;case _0x1c8f19('0x27'):emit(util[_0x1c8f19('0x40')]('user:%s',_0x36fe9b[_0x1c8f19('0x44')]),_0x1c8f19('0x3'),{'uri':util[_0x1c8f19('0x40')](_0x1c8f19('0x34'),_0x14eb34['instanceUrl'],_0x31e4ad['id'])});break;default:logger[_0x1c8f19('0x47')](_0x1c8f19('0x42'));}})[_0x3896bc('0x3e')](function(_0x46b33e){const _0x5de75f=_0x3896bc;logger[_0x5de75f('0x47')](_0x5de75f('0x37'),JSON[_0x5de75f('0x35')](_0x46b33e));});},exports[_0x4f44fc('0x26')]=function(_0x52fa25,_0x51e5f0,_0x149d1d,_0xda429c,_0x39fda9,_0x1ac8a9,_0x509261){const _0x239367=_0x4f44fc;let _0x18374b,_0x173d3f,_0x18e411,_0x57ae7f;return _0x1ac8a9[_0x239367('0x48')]=intUtil[_0x239367('0x3d')](_0x1ac8a9[_0x239367('0x48')]),_0x1ac8a9[_0x239367('0x5c')]=intUtil[_0x239367('0x3d')](_0x1ac8a9[_0x239367('0x5c')]),_0x509261&&_0x509261[_0x239367('0x3a')]&&_0x509261['recordingFormat']!==_0x239367('0x32')&&(logger[_0x239367('0x4d')](_0x239367('0x50'),_0x239367('0x2b')),_0x51e5f0[_0x239367('0x56')]=util[_0x239367('0x40')](_0x239367('0x5e'),_0x1ac8a9[_0x239367('0x48')],_0x51e5f0['uniqueid'],md5(_0x51e5f0['uniqueid']))),getConnection(_0x1ac8a9)[_0x239367('0x14')](function(_0x3aa7b9){const _0xabed6a=_0x239367;return _0x57ae7f=_0x3aa7b9,getUser(_0x1ac8a9,_0xda429c[_0xabed6a('0x1b')],_0x57ae7f);})[_0x239367('0x14')](function(_0x1a8081){const _0x16d3af=_0x239367;return _0x18374b=_0x1a8081,getEndUser(_0x1ac8a9,_0x149d1d,_0x51e5f0[_0x16d3af('0x7')],_0x51e5f0[_0x16d3af('0x59')],_0x57ae7f);})['then'](function(_0x355642){const _0x5c7252=_0x239367;return _0x173d3f=_0x355642,getTicket(_0x1ac8a9,_0x18374b,_0x173d3f,_0x149d1d,_0x51e5f0,_0x149d1d[_0x5c7252('0x39')],_0x57ae7f,_0x5c7252('0x26'));})[_0x239367('0x14')](function(_0x3d0cd6){const _0x9eecf9=_0x239367;_0x18e411=_0x3d0cd6,logger[_0x9eecf9('0x4d')](_0x9eecf9('0x69'),_0x18e411['id']),logger['info'](_0x9eecf9('0x5'),_0x18e411['id'],_0xda429c['name'],_0x1ac8a9[_0x9eecf9('0x2a')]);switch(_0x1ac8a9[_0x9eecf9('0x2a')]){case _0x9eecf9('0x4'):emit(util[_0x9eecf9('0x40')]('user:%s',_0xda429c[_0x9eecf9('0x44')]),_0x9eecf9('0x2d'),{'recordId':_0x18e411['id']});break;case'newTab':emit(util[_0x9eecf9('0x40')](_0x9eecf9('0x31'),_0xda429c['name']),'trigger:browser:url',{'uri':util['format'](_0x9eecf9('0x34'),_0x57ae7f['instanceUrl'],_0x18e411['id'])});break;default:logger[_0x9eecf9('0x47')]('[OUTBOUND]',_0x9eecf9('0x3c'));}})['catch'](function(_0x27f634){const _0x232379=_0x239367;logger[_0x232379('0x47')](_0x232379('0x50'),JSON[_0x232379('0x35')](_0x27f634));});},exports['unmanaged']=function(_0x5c81ba,_0x46af2b,_0x5973a3,_0x47aea7,_0x191abe,_0x2d4f2c){const _0x2c1c54=_0x4f44fc;let _0x450a7d,_0x31a6b5,_0x181366,_0x3d51b5;return _0x2d4f2c[_0x2c1c54('0x48')]=intUtil[_0x2c1c54('0x3d')](_0x2d4f2c['serverUrl']),_0x2d4f2c[_0x2c1c54('0x5c')]=intUtil[_0x2c1c54('0x3d')](_0x2d4f2c[_0x2c1c54('0x5c')]),_0x191abe&&_0x191abe[_0x2c1c54('0x61')]?(logger['info']('['+_0x46af2b[_0x2c1c54('0x16')]['toUpperCase']()+']',_0x2c1c54('0x2b')),_0x46af2b[_0x2c1c54('0x56')]=util[_0x2c1c54('0x40')](_0x2c1c54('0x5e'),_0x2d4f2c['serverUrl'],_0x46af2b[_0x2c1c54('0x64')],md5(_0x46af2b[_0x2c1c54('0x64')]))):_0x46af2b[_0x2c1c54('0x56')]='',getConnection(_0x2d4f2c)[_0x2c1c54('0x14')](function(_0x442203){const _0x303b81=_0x2c1c54;return _0x3d51b5=_0x442203,!_[_0x303b81('0x5f')](_0x47aea7)?getUser(_0x2d4f2c,_0x47aea7['name'],_0x3d51b5):getUser(_0x2d4f2c,null,_0x3d51b5);})[_0x2c1c54('0x14')](function(_0x209f7b){const _0x110bc6=_0x2c1c54;return _0x450a7d=_0x209f7b,getEndUser(_0x2d4f2c,_0x5973a3,_0x46af2b[_0x110bc6('0x38')],_0x46af2b[_0x110bc6('0x20')],_0x3d51b5);})[_0x2c1c54('0x14')](function(_0x5c05a0){return _0x31a6b5=_0x5c05a0,getTicket(_0x2d4f2c,_0x450a7d,_0x31a6b5,_0x5973a3,_0x46af2b,_0x5973a3['Fields'],_0x3d51b5);})[_0x2c1c54('0x14')](function(_0x5a6a27){const _0x14e0af=_0x2c1c54;_0x181366=_0x5a6a27,logger[_0x14e0af('0x4d')]('['+_0x46af2b['lastevent']['toUpperCase']()+_0x14e0af('0x3f'),_0x181366['id']),logger[_0x14e0af('0x4d')]('['+_0x46af2b['lastevent'][_0x14e0af('0x52')]()+_0x14e0af('0x0'),_0x2d4f2c[_0x14e0af('0x2a')]);})['catch'](function(_0x5517e6){const _0xa247e3=_0x2c1c54;logger[_0xa247e3('0x47')]('['+_0x46af2b['lastevent'][_0xa247e3('0x52')]()+']',JSON[_0xa247e3('0x35')](_0x5517e6));});}; \ 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 1a04448..3d48977 100644 --- a/server/services/ami/trigger/integration/servicenow.js +++ b/server/services/ami/trigger/integration/servicenow.js @@ -1 +1 @@ -const a1141_0x59a2=['sysparm_limit=1',']\x20getTicket\x20input\x20crm','catch','toLowerCase','uniqueid','%255EORDERBYDESCnumber','true','%s/api/now/table/','remoteUri',']\x20getTicket\x20crm','],\x20getAdminUser\x20crm','Descriptions','sys_id','length','ticketId','POST','inspect','Fields','../../../../rediscache','format','none','Recording\x20is\x20enabled!','%26sysparm_record_target%3Dincident','message','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','serverUrl','then','],\x20getUser\x20entity','sys_user?sysparm_query=phone%3D','ticketNumber','destcalleridnum','endUserNumber','call\x20direction:\x20%s','adminEmail','],\x20getUser\x20crm','email','GET','incident','idField','userEmail','],\x20EndUser\x20schema',']\x20Error\x20running\x20ServiceNow\x20integration','The\x20ticket\x20ID\x20is:\x20%s','toString','adminId','error','Subjects','sys_user?sysparm_query=email%3D','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','],\x20createEndUser\x20crm','Variable','],\x20getUser\x20input\x20crm','monitor_format','toUpperCase','sys_user?','username','nameField','request-promise-native','number','content','userId','name','active','lodash','md5','outbound','endUserId','recordingURL','variableName','result',']\x20POST\x20incident\x20entity\x20schema','type','%26sysparm_record_list%3Dactive%253Dtrue','],\x20createEndUser\x20input\x20crm','recordingFormat','queue','/nav_to.do?uri=incident.do?sys_id%3D','getString','servicenow','user','trigger:browser:url','sysparm_display_value=true','string','System','customField','sys_user?sysparm_query=user_name%3Dadmin','info','unmanaged'];(function(_0x51c1ac,_0x59a28a){const _0x235a31=function(_0x5d3edb){while(--_0x5d3edb){_0x51c1ac['push'](_0x51c1ac['shift']());}};_0x235a31(++_0x59a28a);}(a1141_0x59a2,0x15e));const a1141_0x235a=function(_0x51c1ac,_0x59a28a){_0x51c1ac=_0x51c1ac-0x0;let _0x235a31=a1141_0x59a2[_0x51c1ac];return _0x235a31;};const _0x232b99=a1141_0x235a;'use strict';const _=require(_0x232b99('0x41')),rp=require(_0x232b99('0x3b')),util=require('util'),md5=require(_0x232b99('0x42')),intUtil=require('./util'),logger=require('../../../../config/logger')(_0x232b99('0x50')),{getSocket}=require(_0x232b99('0x14')),io=getSocket();function getAdminUser(_0x5d3edb,_0x1605d9,_0x558aa6,_0x543cfc,_0x175e80,_0x135236){return new Promise(function(_0x985e4a,_0x16a6a6){const _0xc43351=a1141_0x235a,_0x4182b6={'method':_0xc43351('0x26'),'uri':_0x543cfc+_0xc43351('0x57')+'&'+_0x175e80+'&'+_0x135236,'auth':_0x1605d9,'json':!![]};return rp(_0x4182b6)['then'](function(_0x1f6293){const _0x5bfbf6=_0xc43351;_0x1f6293[_0x5bfbf6('0x47')][_0x5bfbf6('0xf')]>0x0&&(_0x558aa6[_0x5bfbf6('0x2e')]=_0x1f6293['result'][0x0][_0x5bfbf6('0xe')]),logger[_0x5bfbf6('0x0')]('['+[_0x5d3edb[_0x5bfbf6('0x37')]()]+_0x5bfbf6('0xc'),_0x558aa6),_0x985e4a(_0x558aa6);})[_0xc43351('0x4')](function(_0x4f1082){const _0x5dc1fd=_0xc43351;logger[_0x5dc1fd('0x2f')]('['+[_0x5d3edb['toUpperCase']()]+']',_0x4f1082['message']),_0x16a6a6(_0x4f1082['message']);});});}function getUser(_0x5353e8,_0x1c2de5,_0x2c4a97,_0xdeec3e,_0x3762b0){return function(_0x3e326d){const _0x2e27e3=a1141_0x235a;return logger[_0x2e27e3('0x0')]('['+[_0x5353e8[_0x2e27e3('0x37')]()]+_0x2e27e3('0x35'),_0x3e326d),new Promise(function(_0x2f9e03,_0x1ab9f9){const _0x4e391a=_0x2e27e3;if(intUtil['validateEmail'](_0x3e326d['userEmail'])){const _0x427076={'method':_0x4e391a('0x26'),'uri':_0x2c4a97+_0x4e391a('0x31')+_0x3e326d[_0x4e391a('0x29')]+'&'+_0xdeec3e+'&'+_0x3762b0,'auth':_0x1c2de5,'json':!![]};return logger[_0x4e391a('0x0')]('['+[_0x5353e8[_0x4e391a('0x37')]()]+'],\x20getUser\x20rp\x20obj',_0x427076),rp(_0x427076)[_0x4e391a('0x1c')](function(_0x91c48){const _0x18c866=_0x4e391a;logger[_0x18c866('0x0')]('['+[_0x5353e8[_0x18c866('0x37')]()]+_0x18c866('0x1d'),_0x91c48),_0x91c48[_0x18c866('0x47')][_0x18c866('0xf')]>0x0&&String(_0x91c48[_0x18c866('0x47')][0x0][_0x18c866('0x40')])==='true'?_0x3e326d[_0x18c866('0x3e')]=_0x91c48[_0x18c866('0x47')][0x0][_0x18c866('0xe')]:(_0x3e326d['userId']=_0x3e326d[_0x18c866('0x2e')],_0x3e326d['userEmail']=_0x3e326d[_0x18c866('0x23')]),logger[_0x18c866('0x0')]('['+[_0x5353e8[_0x18c866('0x37')]()]+_0x18c866('0x24'),_0x3e326d),_0x2f9e03(_0x3e326d);})[_0x4e391a('0x4')](function(_0xa7c5b7){const _0x3b944a=_0x4e391a;logger[_0x3b944a('0x2f')]('['+[_0x5353e8[_0x3b944a('0x37')]()]+']',_0xa7c5b7[_0x3b944a('0x19')]),_0x1ab9f9(_0xa7c5b7[_0x3b944a('0x19')]);});}else logger[_0x4e391a('0x0')]('['+[_0x5353e8['toUpperCase']()]+']\x20using\x20admin\x20profile'),_0x3e326d[_0x4e391a('0x3e')]=_0x3e326d[_0x4e391a('0x2e')],_0x3e326d[_0x4e391a('0x29')]=_0x3e326d[_0x4e391a('0x23')],_0x2f9e03(_0x3e326d);});};}function createEndUser(_0x152bd3,_0x4ab27d,_0x1bb56a,_0x9b4d4b,_0x475b00){const _0x5446cf=_0x232b99;return logger[_0x5446cf('0x0')]('['+[_0x152bd3['toUpperCase']()]+_0x5446cf('0x4b'),_0x1bb56a),new Promise(function(_0x7199a8,_0x4ea0eb){const _0x1a7656=_0x5446cf,_0x308297={'method':_0x1a7656('0x11'),'uri':_0x9b4d4b+_0x1a7656('0x38')+_0x475b00,'body':{'user_name':_0x1bb56a[_0x1a7656('0x21')],'roles':_0x1a7656('0x51'),'first_name':_0x1bb56a[_0x1a7656('0x21')],'active':_0x1a7656('0x8'),'date_format':_0x1a7656('0x55'),'phone':_0x1bb56a[_0x1a7656('0x21')]},'auth':_0x4ab27d,'json':!![]};return rp(_0x308297)[_0x1a7656('0x1c')](function(_0x18af5b){const _0x317ca0=_0x1a7656;logger[_0x317ca0('0x0')]('['+[_0x152bd3[_0x317ca0('0x37')]()]+_0x317ca0('0x2a'),_0x18af5b[_0x317ca0('0x47')]),_0x1bb56a[_0x317ca0('0x44')]=_0x18af5b[_0x317ca0('0x47')]['sys_id'],_0x7199a8(_0x1bb56a);})[_0x1a7656('0x4')](function(_0x5d7ced){const _0x1f8e35=_0x1a7656;logger[_0x1f8e35('0x2f')]('['+[_0x152bd3[_0x1f8e35('0x37')]()]+']',_0x5d7ced[_0x1f8e35('0x19')]),_0x4ea0eb(_0x5d7ced['message']);});});}function getEndUser(_0x52e67f,_0x40ed0f,_0x2f04c9,_0x44d234,_0x42125f){return function(_0x1ae74){const _0x5a0ac6=a1141_0x235a;return logger['info']('['+[_0x52e67f[_0x5a0ac6('0x37')]()]+'],\x20getEndUser\x20input\x20crm',_0x1ae74),new Promise(function(_0x4185d7,_0x1c3b68){const _0x4841f8=_0x5a0ac6,_0x3e7c09={'method':'GET','uri':_0x2f04c9+_0x4841f8('0x1e')+_0x1ae74[_0x4841f8('0x21')]+'&'+_0x44d234+'&'+_0x42125f,'auth':_0x40ed0f,'json':!![]};return rp(_0x3e7c09)['then'](function(_0x1bbc79){const _0x58caa4=_0x4841f8;if(_0x1bbc79[_0x58caa4('0x47')][_0x58caa4('0xf')]>0x0)_0x1ae74[_0x58caa4('0x44')]=_0x1bbc79[_0x58caa4('0x47')][0x0][_0x58caa4('0xe')],logger['info']('['+[_0x52e67f[_0x58caa4('0x37')]()]+'],\x20getEndUser\x20crm',_0x1ae74),_0x4185d7(_0x1ae74);else return createEndUser(_0x52e67f,_0x40ed0f,_0x1ae74,_0x2f04c9,_0x44d234)['then'](function(_0x4b61e6){const _0x27f6ff=_0x58caa4;logger['info']('['+[_0x52e67f[_0x27f6ff('0x37')]()]+_0x27f6ff('0x33'),_0x4b61e6),_0x4185d7(_0x4b61e6);});})[_0x4841f8('0x4')](function(_0x48f25d){const _0x4e50b9=_0x4841f8;logger[_0x4e50b9('0x2f')]('['+[_0x52e67f['toUpperCase']()]+']',_0x48f25d[_0x4e50b9('0x19')]),_0x1c3b68(_0x48f25d[_0x4e50b9('0x19')]);});});};}function getCustomFields(_0x11e072,_0x5923c0){const _0x42fee3={};return _0x11e072['length']>0x0&&_['forEach'](_0x11e072,function(_0x5e045b){const _0x1d7468=a1141_0x235a;if(_0x5e045b['type']===_0x1d7468('0x54')&&_0x5e045b[_0x1d7468('0x3a')]&&!_0x5e045b[_0x1d7468('0x56')])_0x42fee3[_0x5e045b[_0x1d7468('0x28')][_0x1d7468('0x5')]()]=_0x5e045b['content'][_0x1d7468('0x2d')]();else{if(_0x5e045b[_0x1d7468('0x49')]===_0x1d7468('0x54')&&_0x5e045b[_0x1d7468('0x28')]&&_0x5e045b[_0x1d7468('0x56')])_0x42fee3[_0x5e045b[_0x1d7468('0x28')][_0x1d7468('0x5')]()]=_0x5e045b[_0x1d7468('0x3d')][_0x1d7468('0x2d')]();else{if(_0x5e045b[_0x1d7468('0x49')]==='variable'&&_0x5e045b['variableName']&&_0x5e045b[_0x1d7468('0x28')]&&_0x5e045b['customField'])_0x42fee3[_0x5e045b[_0x1d7468('0x28')][_0x1d7468('0x5')]()]=_0x5923c0[_0x5e045b[_0x1d7468('0x46')]][_0x1d7468('0x2d')]();else _0x5e045b[_0x1d7468('0x49')]==='customVariable'&&_0x5e045b[_0x1d7468('0x34')]&&_0x5e045b[_0x1d7468('0x34')][_0x1d7468('0x3f')]&&_0x5e045b[_0x1d7468('0x28')]&&_0x5e045b[_0x1d7468('0x56')]&&(_0x42fee3[_0x5e045b[_0x1d7468('0x28')][_0x1d7468('0x5')]()]=_0x5923c0[_0x5e045b[_0x1d7468('0x34')]['name'][_0x1d7468('0x5')]()][_0x1d7468('0x2d')]());}}}),_0x42fee3;}function getTicket(_0x36c2f7,_0x5b34ba,_0x82c107,_0x3a034d,_0x15a561,_0x55ee3d){return function(_0x5ab287){const _0x42e11f=a1141_0x235a;return logger[_0x42e11f('0x0')]('['+[_0x36c2f7[_0x42e11f('0x37')]()]+_0x42e11f('0x3'),_0x5ab287),new Promise(function(_0x5caf6f,_0x2e569a){const _0x20bd46=_0x42e11f,_0x3f0b6b=_0x36c2f7[_0x20bd46('0x5')]()===_0x20bd46('0x43')?_0x5ab287[_0x20bd46('0x3e')]:_0x5ab287['endUserId'],_0x4f0eb0={'method':_0x20bd46('0x11'),'uri':_0x82c107+_0x20bd46('0x27')+'?'+_0x55ee3d,'body':Object['assign']({},{'active':'true','caller_id':_0x3f0b6b,'assigned_to':_0x5ab287[_0x20bd46('0x3e')],'short_description':intUtil[_0x20bd46('0x4f')](_0x3a034d[_0x20bd46('0x30')],_0x15a561,'\x20'),'description':intUtil[_0x20bd46('0x4f')](_0x3a034d[_0x20bd46('0xd')],_0x15a561,'\x0a')},getCustomFields(_0x3a034d[_0x20bd46('0x13')],_0x15a561)),'auth':_0x5b34ba,'json':!![]};return rp(_0x4f0eb0)[_0x20bd46('0x1c')](function(_0x3b8754){const _0x4eb5ba=_0x20bd46;logger['info']('['+[_0x36c2f7[_0x4eb5ba('0x37')]()]+_0x4eb5ba('0x48'),_0x3b8754[_0x4eb5ba('0x47')]),_0x5ab287[_0x4eb5ba('0x10')]=_0x3b8754[_0x4eb5ba('0x47')][_0x4eb5ba('0xe')],_0x5ab287[_0x4eb5ba('0x1f')]=_0x3b8754[_0x4eb5ba('0x47')][_0x4eb5ba('0x3c')],logger[_0x4eb5ba('0x0')]('['+[_0x36c2f7[_0x4eb5ba('0x37')]()]+_0x4eb5ba('0xb'),_0x5ab287),_0x5caf6f(_0x5ab287);})['catch'](function(_0x2d4f19){const _0x4e1fe5=_0x20bd46;logger[_0x4e1fe5('0x2f')]('['+[_0x36c2f7['toUpperCase']()]+']',_0x2d4f19[_0x4e1fe5('0x19')]),_0x2e569a(_0x2d4f19['message']);});});};}function emit(_0x2d92e6,_0xb7daf6,_0x17ccb9){const _0x58b9d1=_0x232b99,_0x5d7b1b=_0x58b9d1('0x18')+_0x58b9d1('0x1a')+_0x58b9d1('0x4a')+_0x58b9d1('0x7'),_0x592f33={'uri':_0x2d92e6+_0x58b9d1('0x4e')+_0x17ccb9+_0x5d7b1b};io['to'](util[_0x58b9d1('0x15')]('user:%s',_0xb7daf6))['emit'](_0x58b9d1('0x52'),_0x592f33);}exports['cs']=function(_0x1a862a,_0x1d176a,_0x2b903c,_0x49032f,_0x506393,_0x256bb1,_0x5d7ec8,_0x3b03b0){const _0x245d27=_0x232b99,_0x4456de={},_0x14ae07={'user':_0x256bb1[_0x245d27('0x39')],'pass':_0x256bb1['password']},_0xf3bb8=_0x245d27('0x2'),_0x3ca8c2=_0x245d27('0x53');_0x256bb1[_0x245d27('0xa')]=intUtil['stripTrailingSlash'](_0x256bb1[_0x245d27('0xa')]),_0x256bb1[_0x245d27('0x1b')]=intUtil['stripTrailingSlash'](_0x256bb1['serverUrl']);const _0x348714=util[_0x245d27('0x15')](_0x245d27('0x9'),_0x256bb1[_0x245d27('0xa')]);_0x4456de[_0x245d27('0x29')]=!_['isNil'](_0x49032f)?_0x49032f[_0x245d27('0x25')]:null,_0x4456de['adminEmail']=_0x256bb1[_0x245d27('0x25')],_0x4456de['endUserNumber']=_0x3b03b0[_0x245d27('0x5')]()===_0x245d27('0x43')?_0x1d176a[_0x245d27('0x20')]:_0x1d176a['calleridnum'],_0x4456de['callDirection']=_0x3b03b0===_0x245d27('0x4d')||_0x3b03b0===_0x245d27('0x1')?_0x245d27('0x4d'):_0x245d27('0x43');const _0x37fe3d=util[_0x245d27('0x15')](_0x245d27('0x32'),_0x256bb1[_0x245d27('0x1b')],_0x1d176a['uniqueid'],md5(_0x1d176a[_0x245d27('0x6')]));if(_0x506393&&_0x506393[_0x245d27('0x36')])logger[_0x245d27('0x0')]('[QUEUE]','Recording\x20is\x20enabled!'),_0x1d176a[_0x245d27('0x45')]=_0x37fe3d;else _0x5d7ec8&&_0x5d7ec8[_0x245d27('0x4c')]&&_0x5d7ec8['recordingFormat']!==_0x245d27('0x16')?(logger[_0x245d27('0x0')]('[OUTBOUND]',_0x245d27('0x17')),_0x1d176a[_0x245d27('0x45')]=_0x37fe3d):_0x1d176a[_0x245d27('0x45')]='';return getAdminUser(_0x3b03b0,_0x14ae07,_0x4456de,_0x348714,_0x3ca8c2,_0xf3bb8)[_0x245d27('0x1c')](getUser(_0x3b03b0,_0x14ae07,_0x348714,_0x3ca8c2,_0xf3bb8))[_0x245d27('0x1c')](getEndUser(_0x3b03b0,_0x14ae07,_0x348714,_0x3ca8c2,_0xf3bb8))['then'](getTicket(_0x3b03b0,_0x14ae07,_0x348714,_0x2b903c,_0x1d176a,_0x3ca8c2))[_0x245d27('0x1c')](function(_0x1ba5d1){const _0x44c159=_0x245d27;logger[_0x44c159('0x0')](util[_0x44c159('0x15')](_0x44c159('0x2c'),_0x1ba5d1[_0x44c159('0x10')])),logger[_0x44c159('0x0')](util[_0x44c159('0x15')](_0x44c159('0x22'),_0x3b03b0)),_0x3b03b0!==_0x44c159('0x1')&&(logger['info']('['+[_0x3b03b0[_0x44c159('0x37')]()]+']','Displaying\x20call\x20in\x20a\x20new\x20tab...'),emit(_0x256bb1[_0x44c159('0xa')],_0x49032f[_0x44c159('0x3f')],_0x1ba5d1['ticketId']));})[_0x245d27('0x4')](function(_0x121f4f){const _0x35d143=_0x245d27;logger['error']('['+[_0x3b03b0[_0x35d143('0x37')]()]+_0x35d143('0x2b'),util[_0x35d143('0x12')](_0x121f4f,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1142_0x59a9=['unmanaged','%26sysparm_record_list%3Dactive%253Dtrue','],\x20createEndUser\x20input\x20crm','toLowerCase','catch','Recording\x20is\x20enabled!','recordingFormat','recordingURL','Fields','toUpperCase','true','sys_id','monitor_format','adminId','getString','../../../../config/logger','toString','email','userId','./util','%255EORDERBYDESCnumber','forEach','name','endUserId','],\x20getUser\x20entity','GET','%s/api/now/table/','],\x20getUser\x20rp\x20obj','length','callDirection','%26sysparm_record_row%3D1%26sysparm_record_rows%3D39','sys_user?','content','uniqueid','util','destcalleridnum','sys_user?sysparm_query=email%3D','customField','message','info','call\x20direction:\x20%s','],\x20getEndUser\x20input\x20crm','idField','Descriptions',']\x20POST\x20incident\x20entity\x20schema','sysparm_limit=1','trigger:browser:url','],\x20getUser\x20input\x20crm','string','then','sysparm_display_value=true','user:%s','variable','inspect','],\x20getAdminUser\x20crm','assign','queue','format','ticketId','Subjects','System','result','endUserNumber','userEmail','sys_user?sysparm_query=user_name%3Dadmin','error','],\x20getEndUser\x20crm','number','none','adminEmail','stripTrailingSlash','[QUEUE]','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','remoteUri','user',']\x20Error\x20running\x20ServiceNow\x20integration','type','servicenow','POST','variableName','[OUTBOUND]','],\x20createEndUser\x20crm','request-promise-native','customVariable','serverUrl','outbound','calleridnum',']\x20getTicket\x20crm','Variable','lodash'];(function(_0x47bfc1,_0x59a9d5){const _0x2c47ff=function(_0x20839a){while(--_0x20839a){_0x47bfc1['push'](_0x47bfc1['shift']());}};_0x2c47ff(++_0x59a9d5);}(a1142_0x59a9,0x109));const a1142_0x2c47=function(_0x47bfc1,_0x59a9d5){_0x47bfc1=_0x47bfc1-0x0;let _0x2c47ff=a1142_0x59a9[_0x47bfc1];return _0x2c47ff;};const _0xf92fb6=a1142_0x2c47;'use strict';const _=require(_0xf92fb6('0x4')),rp=require(_0xf92fb6('0x57')),util=require(_0xf92fb6('0x27')),md5=require('md5'),intUtil=require(_0xf92fb6('0x18')),logger=require(_0xf92fb6('0x14'))(_0xf92fb6('0x52')),{getSocket}=require('../../../../rediscache'),io=getSocket();function getAdminUser(_0x20839a,_0x33f004,_0x3e9005,_0x2e9753,_0x3a281b,_0xa21cf7){return new Promise(function(_0x2dcfc3,_0x5c3952){const _0x4e2084=a1142_0x2c47,_0x4ca10f={'method':'GET','uri':_0x2e9753+_0x4e2084('0x45')+'&'+_0x3a281b+'&'+_0xa21cf7,'auth':_0x33f004,'json':!![]};return rp(_0x4ca10f)[_0x4e2084('0x36')](function(_0x86dc06){const _0x4bb0c9=_0x4e2084;_0x86dc06['result'][_0x4bb0c9('0x21')]>0x0&&(_0x3e9005[_0x4bb0c9('0x12')]=_0x86dc06['result'][0x0]['sys_id']),logger[_0x4bb0c9('0x2c')]('['+[_0x20839a[_0x4bb0c9('0xe')]()]+_0x4bb0c9('0x3b'),_0x3e9005),_0x2dcfc3(_0x3e9005);})[_0x4e2084('0x9')](function(_0x2e559c){const _0x4e8591=_0x4e2084;logger['error']('['+[_0x20839a['toUpperCase']()]+']',_0x2e559c[_0x4e8591('0x2b')]),_0x5c3952(_0x2e559c[_0x4e8591('0x2b')]);});});}function getUser(_0x326a5c,_0x1ef841,_0x15b525,_0x446d06,_0x4d290e){return function(_0x22f844){const _0x5b5ab4=a1142_0x2c47;return logger[_0x5b5ab4('0x2c')]('['+[_0x326a5c['toUpperCase']()]+_0x5b5ab4('0x34'),_0x22f844),new Promise(function(_0x54650d,_0x13a885){const _0xe1a6c1=_0x5b5ab4;if(intUtil['validateEmail'](_0x22f844[_0xe1a6c1('0x44')])){const _0x546799={'method':_0xe1a6c1('0x1e'),'uri':_0x15b525+_0xe1a6c1('0x29')+_0x22f844[_0xe1a6c1('0x44')]+'&'+_0x446d06+'&'+_0x4d290e,'auth':_0x1ef841,'json':!![]};return logger[_0xe1a6c1('0x2c')]('['+[_0x326a5c[_0xe1a6c1('0xe')]()]+_0xe1a6c1('0x20'),_0x546799),rp(_0x546799)[_0xe1a6c1('0x36')](function(_0x273156){const _0x305d71=_0xe1a6c1;logger[_0x305d71('0x2c')]('['+[_0x326a5c[_0x305d71('0xe')]()]+_0x305d71('0x1d'),_0x273156),_0x273156['result'][_0x305d71('0x21')]>0x0&&String(_0x273156[_0x305d71('0x42')][0x0]['active'])===_0x305d71('0xf')?_0x22f844[_0x305d71('0x17')]=_0x273156[_0x305d71('0x42')][0x0][_0x305d71('0x10')]:(_0x22f844['userId']=_0x22f844[_0x305d71('0x12')],_0x22f844[_0x305d71('0x44')]=_0x22f844[_0x305d71('0x4a')]),logger[_0x305d71('0x2c')]('['+[_0x326a5c[_0x305d71('0xe')]()]+'],\x20getUser\x20crm',_0x22f844),_0x54650d(_0x22f844);})[_0xe1a6c1('0x9')](function(_0x30fb5c){const _0x37cc47=_0xe1a6c1;logger[_0x37cc47('0x46')]('['+[_0x326a5c[_0x37cc47('0xe')]()]+']',_0x30fb5c[_0x37cc47('0x2b')]),_0x13a885(_0x30fb5c[_0x37cc47('0x2b')]);});}else logger[_0xe1a6c1('0x2c')]('['+[_0x326a5c[_0xe1a6c1('0xe')]()]+']\x20using\x20admin\x20profile'),_0x22f844[_0xe1a6c1('0x17')]=_0x22f844[_0xe1a6c1('0x12')],_0x22f844['userEmail']=_0x22f844[_0xe1a6c1('0x4a')],_0x54650d(_0x22f844);});};}function createEndUser(_0x2228e1,_0x667bd1,_0x20a610,_0x3d2031,_0x5326c6){const _0x4f779e=_0xf92fb6;return logger[_0x4f779e('0x2c')]('['+[_0x2228e1[_0x4f779e('0xe')]()]+_0x4f779e('0x7'),_0x20a610),new Promise(function(_0x257dac,_0x944376){const _0x4a55d2=_0x4f779e,_0x35b003={'method':_0x4a55d2('0x53'),'uri':_0x3d2031+_0x4a55d2('0x24')+_0x5326c6,'body':{'user_name':_0x20a610['endUserNumber'],'roles':_0x4a55d2('0x4f'),'first_name':_0x20a610['endUserNumber'],'active':'true','date_format':_0x4a55d2('0x41'),'phone':_0x20a610[_0x4a55d2('0x43')]},'auth':_0x667bd1,'json':!![]};return rp(_0x35b003)[_0x4a55d2('0x36')](function(_0x5d0936){const _0x2c9e5d=_0x4a55d2;logger[_0x2c9e5d('0x2c')]('['+[_0x2228e1[_0x2c9e5d('0xe')]()]+'],\x20EndUser\x20schema',_0x5d0936['result']),_0x20a610[_0x2c9e5d('0x1c')]=_0x5d0936['result'][_0x2c9e5d('0x10')],_0x257dac(_0x20a610);})['catch'](function(_0xac116e){const _0x4824f2=_0x4a55d2;logger[_0x4824f2('0x46')]('['+[_0x2228e1[_0x4824f2('0xe')]()]+']',_0xac116e[_0x4824f2('0x2b')]),_0x944376(_0xac116e[_0x4824f2('0x2b')]);});});}function getEndUser(_0x297f9a,_0x1fee81,_0x207c27,_0x2827aa,_0x5d140f){return function(_0x103259){const _0x1f9352=a1142_0x2c47;return logger[_0x1f9352('0x2c')]('['+[_0x297f9a[_0x1f9352('0xe')]()]+_0x1f9352('0x2e'),_0x103259),new Promise(function(_0x5b4cd5,_0x2a60d0){const _0x13e211=_0x1f9352,_0x1d0d06={'method':_0x13e211('0x1e'),'uri':_0x207c27+'sys_user?sysparm_query=phone%3D'+_0x103259['endUserNumber']+'&'+_0x2827aa+'&'+_0x5d140f,'auth':_0x1fee81,'json':!![]};return rp(_0x1d0d06)[_0x13e211('0x36')](function(_0x3d765e){const _0x48a630=_0x13e211;if(_0x3d765e[_0x48a630('0x42')]['length']>0x0)_0x103259['endUserId']=_0x3d765e['result'][0x0][_0x48a630('0x10')],logger['info']('['+[_0x297f9a[_0x48a630('0xe')]()]+_0x48a630('0x47'),_0x103259),_0x5b4cd5(_0x103259);else return createEndUser(_0x297f9a,_0x1fee81,_0x103259,_0x207c27,_0x2827aa)['then'](function(_0x5a6186){const _0x24c92d=_0x48a630;logger['info']('['+[_0x297f9a[_0x24c92d('0xe')]()]+_0x24c92d('0x56'),_0x5a6186),_0x5b4cd5(_0x5a6186);});})[_0x13e211('0x9')](function(_0x1254d1){logger['error']('['+[_0x297f9a['toUpperCase']()]+']',_0x1254d1['message']),_0x2a60d0(_0x1254d1['message']);});});};}function getCustomFields(_0x596e55,_0x1039cf){const _0x3a68b8=_0xf92fb6,_0x7fe5e1={};return _0x596e55[_0x3a68b8('0x21')]>0x0&&_[_0x3a68b8('0x1a')](_0x596e55,function(_0x580601){const _0x4278c9=_0x3a68b8;if(_0x580601['type']===_0x4278c9('0x35')&&_0x580601['nameField']&&!_0x580601[_0x4278c9('0x2a')])_0x7fe5e1[_0x580601[_0x4278c9('0x2f')]['toLowerCase']()]=_0x580601[_0x4278c9('0x25')][_0x4278c9('0x15')]();else{if(_0x580601[_0x4278c9('0x51')]===_0x4278c9('0x35')&&_0x580601[_0x4278c9('0x2f')]&&_0x580601[_0x4278c9('0x2a')])_0x7fe5e1[_0x580601[_0x4278c9('0x2f')][_0x4278c9('0x8')]()]=_0x580601[_0x4278c9('0x25')][_0x4278c9('0x15')]();else{if(_0x580601[_0x4278c9('0x51')]===_0x4278c9('0x39')&&_0x580601[_0x4278c9('0x54')]&&_0x580601['idField']&&_0x580601[_0x4278c9('0x2a')])_0x7fe5e1[_0x580601['idField']['toLowerCase']()]=_0x1039cf[_0x580601['variableName']]['toString']();else _0x580601[_0x4278c9('0x51')]===_0x4278c9('0x58')&&_0x580601[_0x4278c9('0x3')]&&_0x580601['Variable']['name']&&_0x580601[_0x4278c9('0x2f')]&&_0x580601[_0x4278c9('0x2a')]&&(_0x7fe5e1[_0x580601[_0x4278c9('0x2f')]['toLowerCase']()]=_0x1039cf[_0x580601[_0x4278c9('0x3')][_0x4278c9('0x1b')][_0x4278c9('0x8')]()][_0x4278c9('0x15')]());}}}),_0x7fe5e1;}function getTicket(_0x5c2411,_0x2af548,_0x2953ec,_0x72bd2,_0x169fd9,_0x5546e6){return function(_0x4b7f6f){const _0x198e7a=a1142_0x2c47;return logger['info']('['+[_0x5c2411[_0x198e7a('0xe')]()]+']\x20getTicket\x20input\x20crm',_0x4b7f6f),new Promise(function(_0x4a6cac,_0x3b93a9){const _0x178d5a=_0x198e7a,_0x135492=_0x5c2411['toLowerCase']()===_0x178d5a('0x0')?_0x4b7f6f[_0x178d5a('0x17')]:_0x4b7f6f['endUserId'],_0x8ec54f={'method':'POST','uri':_0x2953ec+'incident'+'?'+_0x5546e6,'body':Object[_0x178d5a('0x3c')]({},{'active':_0x178d5a('0xf'),'caller_id':_0x135492,'assigned_to':_0x4b7f6f[_0x178d5a('0x17')],'short_description':intUtil[_0x178d5a('0x13')](_0x72bd2[_0x178d5a('0x40')],_0x169fd9,'\x20'),'description':intUtil[_0x178d5a('0x13')](_0x72bd2[_0x178d5a('0x30')],_0x169fd9,'\x0a')},getCustomFields(_0x72bd2[_0x178d5a('0xd')],_0x169fd9)),'auth':_0x2af548,'json':!![]};return rp(_0x8ec54f)[_0x178d5a('0x36')](function(_0x2f64ea){const _0x2c236e=_0x178d5a;logger[_0x2c236e('0x2c')]('['+[_0x5c2411['toUpperCase']()]+_0x2c236e('0x31'),_0x2f64ea[_0x2c236e('0x42')]),_0x4b7f6f[_0x2c236e('0x3f')]=_0x2f64ea['result'][_0x2c236e('0x10')],_0x4b7f6f['ticketNumber']=_0x2f64ea[_0x2c236e('0x42')][_0x2c236e('0x48')],logger[_0x2c236e('0x2c')]('['+[_0x5c2411[_0x2c236e('0xe')]()]+_0x2c236e('0x2'),_0x4b7f6f),_0x4a6cac(_0x4b7f6f);})[_0x178d5a('0x9')](function(_0x193f46){const _0x1aa87a=_0x178d5a;logger[_0x1aa87a('0x46')]('['+[_0x5c2411[_0x1aa87a('0xe')]()]+']',_0x193f46[_0x1aa87a('0x2b')]),_0x3b93a9(_0x193f46[_0x1aa87a('0x2b')]);});});};}function emit(_0x182e47,_0x4c9d20,_0x3a5ae0){const _0x54344b=_0xf92fb6,_0x36cfbe='%26sysparm_record_target%3Dincident'+_0x54344b('0x23')+_0x54344b('0x6')+_0x54344b('0x19'),_0x8a5430={'uri':_0x182e47+'/nav_to.do?uri=incident.do?sys_id%3D'+_0x3a5ae0+_0x36cfbe};io['to'](util['format'](_0x54344b('0x38'),_0x4c9d20))['emit'](_0x54344b('0x33'),_0x8a5430);}exports['cs']=function(_0x11a0d4,_0x3b66d9,_0x4812b2,_0x10bdea,_0x2137ea,_0x448429,_0x1d6d3a,_0x8dc94b){const _0xac95af=_0xf92fb6,_0xdafaf8={},_0x2b92af={'user':_0x448429['username'],'pass':_0x448429['password']},_0x3c0766=_0xac95af('0x32'),_0x3882ba=_0xac95af('0x37');_0x448429[_0xac95af('0x4e')]=intUtil['stripTrailingSlash'](_0x448429[_0xac95af('0x4e')]),_0x448429['serverUrl']=intUtil[_0xac95af('0x4b')](_0x448429[_0xac95af('0x59')]);const _0x47786d=util[_0xac95af('0x3e')](_0xac95af('0x1f'),_0x448429[_0xac95af('0x4e')]);_0xdafaf8[_0xac95af('0x44')]=!_['isNil'](_0x10bdea)?_0x10bdea[_0xac95af('0x16')]:null,_0xdafaf8[_0xac95af('0x4a')]=_0x448429['email'],_0xdafaf8[_0xac95af('0x43')]=_0x8dc94b['toLowerCase']()===_0xac95af('0x0')?_0x3b66d9[_0xac95af('0x28')]:_0x3b66d9[_0xac95af('0x1')],_0xdafaf8[_0xac95af('0x22')]=_0x8dc94b==='queue'||_0x8dc94b===_0xac95af('0x5')?_0xac95af('0x3d'):_0xac95af('0x0');const _0x4bedee=util[_0xac95af('0x3e')](_0xac95af('0x4d'),_0x448429['serverUrl'],_0x3b66d9[_0xac95af('0x26')],md5(_0x3b66d9[_0xac95af('0x26')]));if(_0x2137ea&&_0x2137ea[_0xac95af('0x11')])logger[_0xac95af('0x2c')](_0xac95af('0x4c'),_0xac95af('0xa')),_0x3b66d9[_0xac95af('0xc')]=_0x4bedee;else _0x1d6d3a&&_0x1d6d3a[_0xac95af('0xb')]&&_0x1d6d3a[_0xac95af('0xb')]!==_0xac95af('0x49')?(logger[_0xac95af('0x2c')](_0xac95af('0x55'),'Recording\x20is\x20enabled!'),_0x3b66d9['recordingURL']=_0x4bedee):_0x3b66d9['recordingURL']='';return getAdminUser(_0x8dc94b,_0x2b92af,_0xdafaf8,_0x47786d,_0x3882ba,_0x3c0766)[_0xac95af('0x36')](getUser(_0x8dc94b,_0x2b92af,_0x47786d,_0x3882ba,_0x3c0766))[_0xac95af('0x36')](getEndUser(_0x8dc94b,_0x2b92af,_0x47786d,_0x3882ba,_0x3c0766))[_0xac95af('0x36')](getTicket(_0x8dc94b,_0x2b92af,_0x47786d,_0x4812b2,_0x3b66d9,_0x3882ba))[_0xac95af('0x36')](function(_0x433786){const _0x15f8fe=_0xac95af;logger[_0x15f8fe('0x2c')](util[_0x15f8fe('0x3e')]('The\x20ticket\x20ID\x20is:\x20%s',_0x433786[_0x15f8fe('0x3f')])),logger['info'](util[_0x15f8fe('0x3e')](_0x15f8fe('0x2d'),_0x8dc94b)),_0x8dc94b!==_0x15f8fe('0x5')&&(logger[_0x15f8fe('0x2c')]('['+[_0x8dc94b[_0x15f8fe('0xe')]()]+']','Displaying\x20call\x20in\x20a\x20new\x20tab...'),emit(_0x448429[_0x15f8fe('0x4e')],_0x10bdea['name'],_0x433786[_0x15f8fe('0x3f')]));})[_0xac95af('0x9')](function(_0x69bc9d){const _0x54be2f=_0xac95af;logger[_0x54be2f('0x46')]('['+[_0x8dc94b['toUpperCase']()]+_0x54be2f('0x50'),util[_0x54be2f('0x3a')](_0x69bc9d,{'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 0a62b8e..fcae215 100644 --- a/server/services/ami/trigger/integration/sugarcrm.js +++ b/server/services/ami/trigger/integration/sugarcrm.js @@ -1 +1 @@ -const a1142_0x5280=['phone_home','value','Fields','charAt','variableName','format','login','Searching\x20enduser\x20with\x20phone','queue','resolve','Employees','The\x20Ticket\x20ID\x20is:','getString','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','user_name','serverUrl','stripTrailingSlash','user:%s','[QUEUE]','duration_minutes','push','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','direction','The\x20Enduser\x20ID\x20is:','JSON','unmanaged','user_id','destcalleridnum','recordingURL','lastevent','version','merge','length','../../../../config/logger','debug','Agent\x20found!','destcalleridname','xCALLY\x20Motion\x20integration','sugarcrm','then','entry_list','Outbound','Descriptions','trigger:browser:url','util','Caller\x20-\x20%s','Creating\x20new\x20ticket...','set_entry','POST','toUpperCase','date_start','[OUTBOUND]','The\x20User\x20ID\x20is:','Subjects','catch','info','parent_name','created_by','monitor_format','forEach','Contacts','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','duration_hours','users','find','first_name','./util','toISOString','Inbound','INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200','outbound','idField','request-promise-native','remoteUri','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','../../../../rediscache','uniqueid','uri','Ticket\x20created!','%s/service/v4_1/rest.php','username','Account\x20%d\x20is\x20not\x20valid','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','','contacts','error','none','name_value_list','stringify','Recording\x20is\x20enabled!','isNil','name','get_server_info','parent_type','calleridname','password','[HTTP]','slice','get_entry_list'];(function(_0x8b5c9f,_0x528045){const _0x58d6d1=function(_0x11c3a0){while(--_0x11c3a0){_0x8b5c9f['push'](_0x8b5c9f['shift']());}};_0x58d6d1(++_0x528045);}(a1142_0x5280,0x1b6));const a1142_0x58d6=function(_0x8b5c9f,_0x528045){_0x8b5c9f=_0x8b5c9f-0x0;let _0x58d6d1=a1142_0x5280[_0x8b5c9f];return _0x58d6d1;};const _0xbc60e0=a1142_0x58d6;'use strict';const _=require('lodash'),rp=require(_0xbc60e0('0x1e')),md5=require('md5'),util=require(_0xbc60e0('0x2')),intUtil=require(_0xbc60e0('0x18')),logger=require(_0xbc60e0('0x5a'))(_0xbc60e0('0x5f')),{getSocket}=require(_0xbc60e0('0x21')),io=getSocket(),def={'method':_0xbc60e0('0x6'),'json':!![]};function emit(_0x11c3a0,_0x2c8b5e,_0x277085){io['to'](_0x11c3a0)['emit'](_0x2c8b5e,_0x277085);}function getTicket(_0x4c97a4,_0x4ee184,_0x2cc306,_0x8c62d7,_0x4890b2,_0x21af0b,_0x231bb2,_0x203aa5){const _0x5d0512=_0xbc60e0;logger['info'](_0x5d0512('0x4'));const _0x162777=new Date(),_0x195f80=[{'name':'name','value':intUtil[_0x5d0512('0x45')](_0x8c62d7[_0x5d0512('0xb')],_0x4890b2,'\x20')},{'name':'assigned_user_id','value':_0x4ee184['id']},{'name':_0x5d0512('0xf'),'value':_0x4ee184['id']},{'name':'description','value':intUtil[_0x5d0512('0x45')](_0x8c62d7[_0x5d0512('0x0')],_0x4890b2,'\x0a')},{'name':_0x5d0512('0x8'),'value':_0x162777[_0x5d0512('0x19')]()[_0x5d0512('0x37')](0x0,0x13)['replace']('T','\x20')},{'name':_0x5d0512('0x14'),'value':'0'},{'name':_0x5d0512('0x4c'),'value':'15'},{'name':'parent_id','value':_0x2cc306['id']},{'name':_0x5d0512('0x33'),'value':_0x5d0512('0x12')},{'name':_0x5d0512('0xe'),'value':_0x2cc306[_0x5d0512('0x31')]},{'name':_0x5d0512('0x4f'),'value':_0x203aa5}];return _0x21af0b[_0x5d0512('0x59')]&&_[_0x5d0512('0x11')](_0x21af0b,function(_0x3dba4c){const _0x41df9f=_0x5d0512;_0x4890b2[_0x3dba4c[_0x41df9f('0x3d')]]&&_0x195f80[_0x41df9f('0x4d')]({'name':_0x3dba4c[_0x41df9f('0x1d')],'value':_0x4890b2[_0x3dba4c['variableName']]});}),request({'form':{'method':_0x5d0512('0x5'),'input_type':_0x5d0512('0x51'),'response_type':_0x5d0512('0x51'),'rest_data':JSON[_0x5d0512('0x2e')]({'session':_0x231bb2['id'],'module_name':'Calls','name_value_list':_0x195f80})}});}function getServerInfo(_0x589c8b){const _0x529ca1=_0xbc60e0;return request({'form':{'method':_0x529ca1('0x32'),'input_type':_0x529ca1('0x51'),'response_type':'JSON','rest_data':JSON[_0x529ca1('0x2e')]({'session':_0x589c8b['id']})}});}function getUser(_0x47f0f6,_0x1edc51,_0x632c11){const _0x4468a5=_0xbc60e0;return!_['isNil'](_0x1edc51)?(logger['info']('Getting\x20agent\x20with\x20name',_0x1edc51),request({'form':{'method':'get_entry_list','input_type':'JSON','response_type':_0x4468a5('0x51'),'rest_data':JSON[_0x4468a5('0x2e')]({'session':_0x632c11['id'],'module_name':_0x4468a5('0x43'),'query':util['format'](_0x4468a5('0x1b'),_0x1edc51),'order_by':'','offset':'0','select_fields':['id',_0x4468a5('0x31'),'user_name'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x4468a5('0x60')](function(_0x1f4fc0){const _0x5d691c=_0x4468a5;if(_0x1f4fc0[_0x5d691c('0x61')][_0x5d691c('0x59')]){const _0x47264c=_[_0x5d691c('0x16')](_0x1f4fc0['entry_list'],function(_0x477a7a){const _0x6227b=_0x5d691c;return _0x477a7a[_0x6227b('0x2d')][_0x6227b('0x47')]['value']===_0x1edc51;});if(_0x47264c)return logger[_0x5d691c('0xd')](_0x5d691c('0x5c')),Promise[_0x5d691c('0x42')]({'id':_0x47264c[_0x5d691c('0x2d')]['id'][_0x5d691c('0x3a')],'name':_0x47264c[_0x5d691c('0x2d')][_0x5d691c('0x31')][_0x5d691c('0x3a')]});}return logger[_0x5d691c('0xd')](_0x5d691c('0x20')),Promise[_0x5d691c('0x42')]({'id':_0x632c11[_0x5d691c('0x2d')][_0x5d691c('0x53')]['value'],'name':_0x632c11[_0x5d691c('0x2d')][_0x5d691c('0x47')][_0x5d691c('0x3a')]});})):(logger['info']('Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!'),Promise[_0x4468a5('0x42')]({'id':_0x632c11[_0x4468a5('0x2d')][_0x4468a5('0x53')]['value'],'name':_0x632c11[_0x4468a5('0x2d')][_0x4468a5('0x47')][_0x4468a5('0x3a')]}));}function getEndUser(_0xc0ae3e,_0x294be3,_0x117ba4,_0x4f1f0f){const _0x53dd53=_0xbc60e0;return logger[_0x53dd53('0xd')](_0x53dd53('0x40'),_0x117ba4),request({'form':{'method':_0x53dd53('0x38'),'input_type':'JSON','response_type':_0x53dd53('0x51'),'rest_data':JSON['stringify']({'session':_0x4f1f0f['id'],'module_name':_0x53dd53('0x12'),'query':util[_0x53dd53('0x3e')]('contacts.phone_home\x20=\x20\x22%s\x22',_0x117ba4),'order_by':'','offset':'0','select_fields':['id',_0x53dd53('0x31'),'phone_home'],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})['then'](function(_0x3cbc7a){const _0xee8ee2=_0x53dd53;if(_0x3cbc7a['entry_list']['length']){const _0x4c0e6e=_[_0xee8ee2('0x16')](_0x3cbc7a[_0xee8ee2('0x61')],function(_0x47d2b3){const _0x56b9ea=_0xee8ee2;return _0x47d2b3[_0x56b9ea('0x2d')][_0x56b9ea('0x39')][_0x56b9ea('0x3a')]===_0x117ba4;});if(_0x4c0e6e)return logger[_0xee8ee2('0xd')]('Enduser\x20found!'),Promise['resolve']({'id':_0x4c0e6e['name_value_list']['id'][_0xee8ee2('0x3a')],'name':_0x4c0e6e['name_value_list'][_0xee8ee2('0x31')][_0xee8ee2('0x3a')],'phone':_0x4c0e6e[_0xee8ee2('0x2d')][_0xee8ee2('0x39')][_0xee8ee2('0x3a')]});}else return logger[_0xee8ee2('0xd')](_0xee8ee2('0x13')),request({'form':{'method':_0xee8ee2('0x5'),'input_type':_0xee8ee2('0x51'),'response_type':'JSON','rest_data':JSON['stringify']({'session':_0x4f1f0f['id'],'module_name':_0xee8ee2('0x12'),'name_value_list':[{'name':_0xee8ee2('0x17'),'value':_0x294be3!==_0xee8ee2('0x29')?_0x294be3:util['format'](_0xee8ee2('0x3'),_0x117ba4)},{'name':_0xee8ee2('0x39'),'value':_0x117ba4}]})}})['then'](function(_0x5b37c6){const _0x42c81b=_0xee8ee2;return logger[_0x42c81b('0xd')]('Enduser\x20created.'),Promise[_0x42c81b('0x42')]({'id':_0x5b37c6['id'],'name':_0x5b37c6['entry_list']['first_name'][_0x42c81b('0x3a')],'phone':_0x5b37c6[_0x42c81b('0x61')][_0x42c81b('0x39')][_0x42c81b('0x3a')]});});});}function request(_0x401b41){const _0x6ad511=_0xbc60e0;return logger[_0x6ad511('0x5b')](_0x6ad511('0x36'),JSON[_0x6ad511('0x2e')](_0x401b41)),rp(_[_0x6ad511('0x58')](def,_0x401b41));}function getConnection(_0x479f8a){const _0x387d20=_0xbc60e0;return request({'method':_0x387d20('0x6'),'form':{'method':_0x387d20('0x3f'),'input_type':'JSON','response_type':'JSON','rest_data':JSON[_0x387d20('0x2e')]({'user_auth':{'user_name':_0x479f8a[_0x387d20('0x26')],'password':_0x479f8a[_0x387d20('0x35')],'encryption':'PLAIN'},'application':_0x387d20('0x5e')})}})[_0x387d20('0x60')](function(_0x313837){const _0x4fc963=_0x387d20,_0x595f5a=_0x313837;if(_0x595f5a['id'])return def['sessionID']=_0x595f5a['id'],Promise['resolve'](_0x595f5a);else throw new Error(util[_0x4fc963('0x3e')](_0x4fc963('0x27'),_0x479f8a['id']));});}function setRelationship(_0x51c07e,_0x53cc99,_0x507904,_0x3ca47d){const _0x1727bd=_0xbc60e0;return request({'form':{'method':'set_relationship','input_type':_0x1727bd('0x51'),'response_type':_0x1727bd('0x51'),'rest_data':JSON[_0x1727bd('0x2e')]({'session':_0x51c07e['id'],'module_name':'Calls','module_id':_0x507904['id'],'link_field_name':_0x3ca47d,'related_ids':[_0x53cc99['id']]})}});}exports[_0xbc60e0('0x41')]=function(_0x4f997b,_0x538507,_0x4554f3,_0x3c318a,_0x41ccc3,_0x4ae1ba){const _0x49dca4=_0xbc60e0;let _0x300377,_0x5b3f50,_0xb5f90a,_0xce9e78;return _0x4ae1ba[_0x49dca4('0x1f')]=intUtil['stripTrailingSlash'](_0x4ae1ba[_0x49dca4('0x1f')]),_0x4ae1ba[_0x49dca4('0x48')]=intUtil[_0x49dca4('0x49')](_0x4ae1ba[_0x49dca4('0x48')]),def[_0x49dca4('0x23')]=util[_0x49dca4('0x3e')](_0x49dca4('0x25'),_0x4ae1ba[_0x49dca4('0x1f')]),_0x41ccc3&&_0x41ccc3[_0x49dca4('0x10')]?(logger['info'](_0x49dca4('0x4b'),_0x49dca4('0x2f')),_0x538507[_0x49dca4('0x55')]=util['format'](_0x49dca4('0x28'),_0x4ae1ba[_0x49dca4('0x48')],_0x538507[_0x49dca4('0x22')],md5(_0x538507['uniqueid']))):_0x538507['recordingURL']='',getConnection(_0x4ae1ba)[_0x49dca4('0x60')](function(_0x135cc5){const _0x4a5c88=_0x49dca4;return _0xce9e78=_0x135cc5,getUser(_0x4ae1ba,_0x3c318a[_0x4a5c88('0x31')],_0xce9e78);})[_0x49dca4('0x60')](function(_0x4795c7){const _0xb134ea=_0x49dca4;return _0x300377=_0x4795c7,logger[_0xb134ea('0xd')](_0xb134ea('0xa'),_0x300377['id']),getEndUser(_0x4ae1ba,_0x538507[_0xb134ea('0x34')],_0x538507['calleridnum'],_0xce9e78);})[_0x49dca4('0x60')](function(_0x78c217){const _0x1a5bb9=_0x49dca4;return _0x5b3f50=_0x78c217,logger['info'](_0x1a5bb9('0x50'),_0x5b3f50['id']),getTicket(_0x4ae1ba,_0x300377,_0x5b3f50,_0x4554f3,_0x538507,_0x4554f3[_0x1a5bb9('0x3b')],_0xce9e78,_0x1a5bb9('0x1a'));})['then'](function(_0x35d7bd){const _0x3a0bef=_0x49dca4;return _0xb5f90a=_0x35d7bd,logger['info']('Ticket\x20created!'),logger[_0x3a0bef('0xd')](_0x3a0bef('0x44'),_0xb5f90a['id']),setRelationship(_0xce9e78,_0x300377,_0xb5f90a,_0x3a0bef('0x15'));})[_0x49dca4('0x60')](function(){const _0x479a45=_0x49dca4;return setRelationship(_0xce9e78,_0x5b3f50,_0xb5f90a,_0x479a45('0x2a'));})['then'](function(){return getServerInfo(_0xce9e78);})[_0x49dca4('0x60')](function(_0x16d82a){const _0x43c5d3=_0x49dca4,_0x16ea7c=parseInt(_0x16d82a[_0x43c5d3('0x57')][_0x43c5d3('0x3c')](0x0));let _0x500d35=util[_0x43c5d3('0x3e')]('%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s',_0x4ae1ba[_0x43c5d3('0x1f')],_0xb5f90a['id']);_0x16ea7c>0x6&&(_0x500d35=util[_0x43c5d3('0x3e')](_0x43c5d3('0x4e'),_0x4ae1ba['remoteUri'],_0xb5f90a['id'])),logger[_0x43c5d3('0xd')]('[QUEUE]','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util['format'](_0x43c5d3('0x4a'),_0x3c318a['name']),'trigger:browser:url',{'uri':_0x500d35});})[_0x49dca4('0xc')](function(_0x33ffef){const _0x1da7f9=_0x49dca4;logger[_0x1da7f9('0x2b')](_0x1da7f9('0x4b'),JSON[_0x1da7f9('0x2e')](_0x33ffef));});},exports[_0xbc60e0('0x1c')]=function(_0x3df578,_0xb2580c,_0x4ec9b8,_0x36f8a3,_0x21949b,_0x29c5cb,_0x40ee77){const _0x3f3c1d=_0xbc60e0;let _0x29d11f,_0x37e358,_0x3cc1d0,_0x398bca;return _0x29c5cb[_0x3f3c1d('0x1f')]=intUtil[_0x3f3c1d('0x49')](_0x29c5cb[_0x3f3c1d('0x1f')]),_0x29c5cb[_0x3f3c1d('0x48')]=intUtil[_0x3f3c1d('0x49')](_0x29c5cb[_0x3f3c1d('0x48')]),def[_0x3f3c1d('0x23')]=util[_0x3f3c1d('0x3e')](_0x3f3c1d('0x25'),_0x29c5cb[_0x3f3c1d('0x1f')]),_0x40ee77&&_0x40ee77['recordingFormat']&&_0x40ee77['recordingFormat']!==_0x3f3c1d('0x2c')&&(logger[_0x3f3c1d('0xd')]('[OUTBOUND]',_0x3f3c1d('0x2f')),_0xb2580c[_0x3f3c1d('0x55')]=util[_0x3f3c1d('0x3e')](_0x3f3c1d('0x28'),_0x29c5cb[_0x3f3c1d('0x48')],_0xb2580c[_0x3f3c1d('0x22')],md5(_0xb2580c[_0x3f3c1d('0x22')]))),getConnection(_0x29c5cb)['then'](function(_0x3c548f){const _0x4638fb=_0x3f3c1d;return _0x398bca=_0x3c548f,getUser(_0x29c5cb,_0x36f8a3[_0x4638fb('0x31')],_0x398bca);})['then'](function(_0x3d8337){const _0x296219=_0x3f3c1d;return _0x29d11f=_0x3d8337,logger['info'](_0x296219('0xa'),_0x29d11f['id']),getEndUser(_0x29c5cb,_0xb2580c[_0x296219('0x5d')],_0xb2580c[_0x296219('0x54')],_0x398bca);})[_0x3f3c1d('0x60')](function(_0x384b27){const _0x4ee0a1=_0x3f3c1d;return _0x37e358=_0x384b27,logger[_0x4ee0a1('0xd')]('The\x20Enduser\x20ID\x20is:',_0x37e358['id']),getTicket(_0x29c5cb,_0x29d11f,_0x37e358,_0x4ec9b8,_0xb2580c,_0x4ec9b8['Fields'],_0x398bca,_0x4ee0a1('0x62'));})[_0x3f3c1d('0x60')](function(_0x2a9181){const _0x55c292=_0x3f3c1d;return _0x3cc1d0=_0x2a9181,logger[_0x55c292('0xd')](_0x55c292('0x24')),logger[_0x55c292('0xd')](_0x55c292('0x44'),_0x3cc1d0['id']),setRelationship(_0x398bca,_0x29d11f,_0x3cc1d0,_0x55c292('0x15'));})[_0x3f3c1d('0x60')](function(){const _0x23cf63=_0x3f3c1d;return setRelationship(_0x398bca,_0x37e358,_0x3cc1d0,_0x23cf63('0x2a'));})[_0x3f3c1d('0x60')](function(){return getServerInfo(_0x398bca);})[_0x3f3c1d('0x60')](function(_0x30afa8){const _0x4d8f7c=_0x3f3c1d,_0x1a54e3=parseInt(_0x30afa8['version'][_0x4d8f7c('0x3c')](0x0));let _0x3ef73f=util[_0x4d8f7c('0x3e')]('%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s',_0x29c5cb['remoteUri'],_0x3cc1d0['id']);_0x1a54e3>0x6&&(_0x3ef73f=util['format']('%s/#bwc/index.php?module=Calls&action=EditView&record=%s',_0x29c5cb[_0x4d8f7c('0x1f')],_0x3cc1d0['id'])),logger[_0x4d8f7c('0xd')](_0x4d8f7c('0x9'),_0x4d8f7c('0x46')),emit(util['format'](_0x4d8f7c('0x4a'),_0x36f8a3[_0x4d8f7c('0x31')]),_0x4d8f7c('0x1'),{'uri':_0x3ef73f});})[_0x3f3c1d('0xc')](function(_0x22f3af){const _0x5b18cc=_0x3f3c1d;logger[_0x5b18cc('0x2b')](_0x5b18cc('0x9'),JSON[_0x5b18cc('0x2e')](_0x22f3af));});},exports[_0xbc60e0('0x52')]=function(_0x148774,_0xfc208e,_0x13473b,_0x456e63,_0x57665c,_0xbf0618){const _0x454543=_0xbc60e0;let _0x164074,_0x408076,_0x311d77,_0xee03d;return _0xbf0618['remoteUri']=intUtil[_0x454543('0x49')](_0xbf0618[_0x454543('0x1f')]),_0xbf0618[_0x454543('0x48')]=intUtil[_0x454543('0x49')](_0xbf0618[_0x454543('0x48')]),def[_0x454543('0x23')]=util[_0x454543('0x3e')](_0x454543('0x25'),_0xbf0618[_0x454543('0x1f')]),_0x57665c&&_0x57665c['monitor_format']?(logger[_0x454543('0xd')]('['+_0xfc208e[_0x454543('0x56')][_0x454543('0x7')]()+']','Recording\x20is\x20enabled!'),_0xfc208e[_0x454543('0x55')]=util[_0x454543('0x3e')](_0x454543('0x28'),_0xbf0618[_0x454543('0x48')],_0xfc208e[_0x454543('0x22')],md5(_0xfc208e[_0x454543('0x22')]))):_0xfc208e[_0x454543('0x55')]='',getConnection(_0xbf0618)[_0x454543('0x60')](function(_0x3a8be1){const _0x4f5b16=_0x454543;return _0xee03d=_0x3a8be1,!_[_0x4f5b16('0x30')](_0x456e63)?getUser(_0xbf0618,_0x456e63[_0x4f5b16('0x31')],_0xee03d):getUser(_0xbf0618,null,_0xee03d);})[_0x454543('0x60')](function(_0x3e2742){const _0x5bd64b=_0x454543;return _0x164074=_0x3e2742,logger[_0x5bd64b('0xd')](_0x5bd64b('0xa'),_0x164074['id']),getEndUser(_0xbf0618,_0xfc208e[_0x5bd64b('0x34')],_0xfc208e['calleridnum'],_0xee03d);})[_0x454543('0x60')](function(_0x24bc79){const _0x353baf=_0x454543;return _0x408076=_0x24bc79,logger['info'](_0x353baf('0x50'),_0x408076['id']),getTicket(_0xbf0618,_0x164074,_0x408076,_0x13473b,_0xfc208e,_0x13473b[_0x353baf('0x3b')],_0xee03d,_0x353baf('0x1a'));})[_0x454543('0x60')](function(_0x2e3fc3){const _0x187eb8=_0x454543;return _0x311d77=_0x2e3fc3,logger['info'](_0x187eb8('0x24')),logger[_0x187eb8('0xd')](_0x187eb8('0x44'),_0x311d77['id']),setRelationship(_0xee03d,_0x164074,_0x311d77,_0x187eb8('0x15'));})[_0x454543('0x60')](function(){return setRelationship(_0xee03d,_0x408076,_0x311d77,'contacts');})[_0x454543('0x60')](function(){return getServerInfo(_0xee03d);})[_0x454543('0xc')](function(_0x276dc9){const _0x36f904=_0x454543;logger[_0x36f904('0x2b')]('['+_0xfc208e[_0x36f904('0x56')][_0x36f904('0x7')]()+']',JSON[_0x36f904('0x2e')](_0x276dc9));});}; \ No newline at end of file +const a1143_0x16c9=['assigned_user_id','sugarcrm','[OUTBOUND]','get_entry_list','%s/index.php?action=ajaxui#ajaxUILoc=index.php%3Fmodule%3DCalls%26action%3DEditView%26record%3D%s','trigger:browser:url','contacts.phone_home\x20=\x20\x22%s\x22','util','JSON','Descriptions','unmanaged','serverUrl','recordingURL','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','[QUEUE]','toISOString','charAt','stripTrailingSlash','md5','stringify','created_by','recordingFormat','The\x20User\x20ID\x20is:','./util','PLAIN','Enduser\x20found!','Creating\x20new\x20ticket...','lodash','POST','isNil','remoteUri','length','resolve','value','password','set_relationship','xCALLY\x20Motion\x20integration','request-promise-native','queue','calleridname','outbound','catch','name_value_list','INSTR\x20(\x20users.user_name,\x20\x22%s\x22)\x20>\x200','duration_hours','version','Subjects','entry_list','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','','phone_home','../../../../rediscache','set_entry','Calls','error','Enduser\x20created.','duration_minutes','[HTTP]','Caller\x20-\x20%s','Ticket\x20created!','forEach','name','get_server_info','contacts','uniqueid','getString','The\x20Enduser\x20ID\x20is:','info','Contacts','none','slice','../../../../config/logger','merge','sessionID','format','user_name','user_id','calleridnum','username','idField','Agent\x20found!','parent_name','push','Fields','then','Account\x20%d\x20is\x20not\x20valid','uri','Recording\x20is\x20enabled!','user:%s','%s/#bwc/index.php?module=Calls&action=EditView&record=%s','find','lastevent','%s/service/v4_1/rest.php','login','users','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','parent_id','Outbound','Employees','date_start','toUpperCase','variableName','first_name','The\x20Ticket\x20ID\x20is:'];(function(_0x176b03,_0x16c9cb){const _0xf2db1a=function(_0x18056e){while(--_0x18056e){_0x176b03['push'](_0x176b03['shift']());}};_0xf2db1a(++_0x16c9cb);}(a1143_0x16c9,0x1d3));const a1143_0xf2db=function(_0x176b03,_0x16c9cb){_0x176b03=_0x176b03-0x0;let _0xf2db1a=a1143_0x16c9[_0x176b03];return _0xf2db1a;};const _0x3975d1=a1143_0xf2db;'use strict';const _=require(_0x3975d1('0x50')),rp=require(_0x3975d1('0x5a')),md5=require(_0x3975d1('0x47')),util=require(_0x3975d1('0x3c')),intUtil=require(_0x3975d1('0x4c')),logger=require(_0x3975d1('0x14'))(_0x3975d1('0x36')),{getSocket}=require(_0x3975d1('0x0')),io=getSocket(),def={'method':_0x3975d1('0x51'),'json':!![]};function emit(_0x18056e,_0x5153e7,_0x55bc4f){io['to'](_0x18056e)['emit'](_0x5153e7,_0x55bc4f);}function getTicket(_0x332ad9,_0x3fd6c0,_0x142df8,_0x5c4ea2,_0x4f0b19,_0x8e0278,_0x482740,_0x151f54){const _0x571ea9=_0x3975d1;logger[_0x571ea9('0x10')](_0x571ea9('0x4f'));const _0x1fef9f=new Date(),_0x55c0b4=[{'name':_0x571ea9('0xa'),'value':intUtil[_0x571ea9('0xe')](_0x5c4ea2[_0x571ea9('0x63')],_0x4f0b19,'\x20')},{'name':_0x571ea9('0x35'),'value':_0x3fd6c0['id']},{'name':_0x571ea9('0x49'),'value':_0x3fd6c0['id']},{'name':'description','value':intUtil['getString'](_0x5c4ea2[_0x571ea9('0x3e')],_0x4f0b19,'\x0a')},{'name':_0x571ea9('0x30'),'value':_0x1fef9f[_0x571ea9('0x44')]()[_0x571ea9('0x13')](0x0,0x13)['replace']('T','\x20')},{'name':_0x571ea9('0x61'),'value':'0'},{'name':_0x571ea9('0x5'),'value':'15'},{'name':_0x571ea9('0x2d'),'value':_0x142df8['id']},{'name':'parent_type','value':_0x571ea9('0x11')},{'name':_0x571ea9('0x1e'),'value':_0x142df8[_0x571ea9('0xa')]},{'name':'direction','value':_0x151f54}];return _0x8e0278[_0x571ea9('0x54')]&&_[_0x571ea9('0x9')](_0x8e0278,function(_0x935da7){const _0x3f712b=_0x571ea9;_0x4f0b19[_0x935da7[_0x3f712b('0x32')]]&&_0x55c0b4[_0x3f712b('0x1f')]({'name':_0x935da7[_0x3f712b('0x1c')],'value':_0x4f0b19[_0x935da7[_0x3f712b('0x32')]]});}),request({'form':{'method':'set_entry','input_type':_0x571ea9('0x3d'),'response_type':_0x571ea9('0x3d'),'rest_data':JSON['stringify']({'session':_0x482740['id'],'module_name':_0x571ea9('0x2'),'name_value_list':_0x55c0b4})}});}function getServerInfo(_0x2d2136){const _0x3d633f=_0x3975d1;return request({'form':{'method':_0x3d633f('0xb'),'input_type':_0x3d633f('0x3d'),'response_type':'JSON','rest_data':JSON[_0x3d633f('0x48')]({'session':_0x2d2136['id']})}});}function getUser(_0x62f237,_0x141fc2,_0x1d3eb2){const _0x5c9a4d=_0x3975d1;return!_['isNil'](_0x141fc2)?(logger[_0x5c9a4d('0x10')]('Getting\x20agent\x20with\x20name',_0x141fc2),request({'form':{'method':'get_entry_list','input_type':_0x5c9a4d('0x3d'),'response_type':_0x5c9a4d('0x3d'),'rest_data':JSON[_0x5c9a4d('0x48')]({'session':_0x1d3eb2['id'],'module_name':_0x5c9a4d('0x2f'),'query':util['format'](_0x5c9a4d('0x60'),_0x141fc2),'order_by':'','offset':'0','select_fields':['id',_0x5c9a4d('0xa'),_0x5c9a4d('0x18')],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x5c9a4d('0x21')](function(_0x552823){const _0x3a66d0=_0x5c9a4d;if(_0x552823[_0x3a66d0('0x64')][_0x3a66d0('0x54')]){const _0x2a43ee=_[_0x3a66d0('0x27')](_0x552823[_0x3a66d0('0x64')],function(_0x267de7){const _0x1bd826=_0x3a66d0;return _0x267de7['name_value_list'][_0x1bd826('0x18')][_0x1bd826('0x56')]===_0x141fc2;});if(_0x2a43ee)return logger[_0x3a66d0('0x10')](_0x3a66d0('0x1d')),Promise['resolve']({'id':_0x2a43ee['name_value_list']['id'][_0x3a66d0('0x56')],'name':_0x2a43ee[_0x3a66d0('0x5f')][_0x3a66d0('0xa')][_0x3a66d0('0x56')]});}return logger['info']('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),Promise['resolve']({'id':_0x1d3eb2[_0x3a66d0('0x5f')][_0x3a66d0('0x19')][_0x3a66d0('0x56')],'name':_0x1d3eb2[_0x3a66d0('0x5f')]['user_name']['value']});})):(logger['info']('Agent\x20not\x20available,\x20using\x20the\x20admin\x20account!'),Promise[_0x5c9a4d('0x55')]({'id':_0x1d3eb2['name_value_list']['user_id'][_0x5c9a4d('0x56')],'name':_0x1d3eb2[_0x5c9a4d('0x5f')][_0x5c9a4d('0x18')][_0x5c9a4d('0x56')]}));}function getEndUser(_0x584059,_0x377c83,_0x2d52b0,_0x429e14){const _0x313d4f=_0x3975d1;return logger[_0x313d4f('0x10')]('Searching\x20enduser\x20with\x20phone',_0x2d52b0),request({'form':{'method':_0x313d4f('0x38'),'input_type':_0x313d4f('0x3d'),'response_type':_0x313d4f('0x3d'),'rest_data':JSON[_0x313d4f('0x48')]({'session':_0x429e14['id'],'module_name':_0x313d4f('0x11'),'query':util[_0x313d4f('0x17')](_0x313d4f('0x3b'),_0x2d52b0),'order_by':'','offset':'0','select_fields':['id','name',_0x313d4f('0x67')],'link_name_to_fields_array':[],'max_results':-0x1,'deleted':'0'})}})[_0x313d4f('0x21')](function(_0x3db4d8){const _0x487d9d=_0x313d4f;if(_0x3db4d8[_0x487d9d('0x64')][_0x487d9d('0x54')]){const _0x3af020=_[_0x487d9d('0x27')](_0x3db4d8['entry_list'],function(_0x1a0c23){const _0x4bd3a2=_0x487d9d;return _0x1a0c23['name_value_list'][_0x4bd3a2('0x67')][_0x4bd3a2('0x56')]===_0x2d52b0;});if(_0x3af020)return logger[_0x487d9d('0x10')](_0x487d9d('0x4e')),Promise[_0x487d9d('0x55')]({'id':_0x3af020[_0x487d9d('0x5f')]['id'][_0x487d9d('0x56')],'name':_0x3af020[_0x487d9d('0x5f')][_0x487d9d('0xa')]['value'],'phone':_0x3af020[_0x487d9d('0x5f')][_0x487d9d('0x67')][_0x487d9d('0x56')]});}else return logger[_0x487d9d('0x10')](_0x487d9d('0x65')),request({'form':{'method':_0x487d9d('0x1'),'input_type':_0x487d9d('0x3d'),'response_type':_0x487d9d('0x3d'),'rest_data':JSON['stringify']({'session':_0x429e14['id'],'module_name':'Contacts','name_value_list':[{'name':'first_name','value':_0x377c83!==_0x487d9d('0x66')?_0x377c83:util[_0x487d9d('0x17')](_0x487d9d('0x7'),_0x2d52b0)},{'name':_0x487d9d('0x67'),'value':_0x2d52b0}]})}})[_0x487d9d('0x21')](function(_0x4d8af3){const _0x43e9a1=_0x487d9d;return logger[_0x43e9a1('0x10')](_0x43e9a1('0x4')),Promise[_0x43e9a1('0x55')]({'id':_0x4d8af3['id'],'name':_0x4d8af3['entry_list'][_0x43e9a1('0x33')][_0x43e9a1('0x56')],'phone':_0x4d8af3[_0x43e9a1('0x64')][_0x43e9a1('0x67')]['value']});});});}function request(_0x189693){const _0x107f51=_0x3975d1;return logger['debug'](_0x107f51('0x6'),JSON[_0x107f51('0x48')](_0x189693)),rp(_[_0x107f51('0x15')](def,_0x189693));}function getConnection(_0x226d73){const _0x24d0fa=_0x3975d1;return request({'method':_0x24d0fa('0x51'),'form':{'method':_0x24d0fa('0x2a'),'input_type':_0x24d0fa('0x3d'),'response_type':_0x24d0fa('0x3d'),'rest_data':JSON[_0x24d0fa('0x48')]({'user_auth':{'user_name':_0x226d73[_0x24d0fa('0x1b')],'password':_0x226d73[_0x24d0fa('0x57')],'encryption':_0x24d0fa('0x4d')},'application':_0x24d0fa('0x59')})}})[_0x24d0fa('0x21')](function(_0x72c204){const _0x252f46=_0x24d0fa,_0x3a7003=_0x72c204;if(_0x3a7003['id'])return def[_0x252f46('0x16')]=_0x3a7003['id'],Promise[_0x252f46('0x55')](_0x3a7003);else throw new Error(util[_0x252f46('0x17')](_0x252f46('0x22'),_0x226d73['id']));});}function setRelationship(_0x32b5c1,_0x6f9a,_0x5ed9b1,_0xddfd66){const _0x3081ce=_0x3975d1;return request({'form':{'method':_0x3081ce('0x58'),'input_type':'JSON','response_type':_0x3081ce('0x3d'),'rest_data':JSON['stringify']({'session':_0x32b5c1['id'],'module_name':_0x3081ce('0x2'),'module_id':_0x5ed9b1['id'],'link_field_name':_0xddfd66,'related_ids':[_0x6f9a['id']]})}});}exports[_0x3975d1('0x5b')]=function(_0x1b59fb,_0x501820,_0x39f98d,_0x2dcb59,_0x5f22c7,_0x355d7b){const _0x15844d=_0x3975d1;let _0x5e2389,_0x444746,_0x2cc1de,_0x1c92d5;return _0x355d7b[_0x15844d('0x53')]=intUtil[_0x15844d('0x46')](_0x355d7b[_0x15844d('0x53')]),_0x355d7b[_0x15844d('0x40')]=intUtil['stripTrailingSlash'](_0x355d7b[_0x15844d('0x40')]),def[_0x15844d('0x23')]=util[_0x15844d('0x17')](_0x15844d('0x29'),_0x355d7b[_0x15844d('0x53')]),_0x5f22c7&&_0x5f22c7['monitor_format']?(logger[_0x15844d('0x10')](_0x15844d('0x43'),_0x15844d('0x24')),_0x501820[_0x15844d('0x41')]=util[_0x15844d('0x17')](_0x15844d('0x42'),_0x355d7b[_0x15844d('0x40')],_0x501820[_0x15844d('0xd')],md5(_0x501820['uniqueid']))):_0x501820[_0x15844d('0x41')]='',getConnection(_0x355d7b)[_0x15844d('0x21')](function(_0x24c08f){const _0xbb3bc8=_0x15844d;return _0x1c92d5=_0x24c08f,getUser(_0x355d7b,_0x2dcb59[_0xbb3bc8('0xa')],_0x1c92d5);})[_0x15844d('0x21')](function(_0x47b38a){const _0x557354=_0x15844d;return _0x5e2389=_0x47b38a,logger[_0x557354('0x10')](_0x557354('0x4b'),_0x5e2389['id']),getEndUser(_0x355d7b,_0x501820[_0x557354('0x5c')],_0x501820[_0x557354('0x1a')],_0x1c92d5);})['then'](function(_0x5d3aab){const _0x3043d4=_0x15844d;return _0x444746=_0x5d3aab,logger[_0x3043d4('0x10')](_0x3043d4('0xf'),_0x444746['id']),getTicket(_0x355d7b,_0x5e2389,_0x444746,_0x39f98d,_0x501820,_0x39f98d[_0x3043d4('0x20')],_0x1c92d5,'Inbound');})[_0x15844d('0x21')](function(_0x52d68b){const _0x3eaffa=_0x15844d;return _0x2cc1de=_0x52d68b,logger[_0x3eaffa('0x10')](_0x3eaffa('0x8')),logger[_0x3eaffa('0x10')](_0x3eaffa('0x34'),_0x2cc1de['id']),setRelationship(_0x1c92d5,_0x5e2389,_0x2cc1de,'users');})[_0x15844d('0x21')](function(){const _0x3af520=_0x15844d;return setRelationship(_0x1c92d5,_0x444746,_0x2cc1de,_0x3af520('0xc'));})[_0x15844d('0x21')](function(){return getServerInfo(_0x1c92d5);})['then'](function(_0x2a4d59){const _0x1fac66=_0x15844d,_0x189d33=parseInt(_0x2a4d59[_0x1fac66('0x62')]['charAt'](0x0));let _0x1562d5=util[_0x1fac66('0x17')](_0x1fac66('0x39'),_0x355d7b[_0x1fac66('0x53')],_0x2cc1de['id']);_0x189d33>0x6&&(_0x1562d5=util[_0x1fac66('0x17')]('%s/#bwc/index.php?module=Calls&action=EditView&record=%s',_0x355d7b[_0x1fac66('0x53')],_0x2cc1de['id'])),logger['info'](_0x1fac66('0x43'),_0x1fac66('0x2c')),emit(util[_0x1fac66('0x17')](_0x1fac66('0x25'),_0x2dcb59[_0x1fac66('0xa')]),_0x1fac66('0x3a'),{'uri':_0x1562d5});})[_0x15844d('0x5e')](function(_0x50d3ee){const _0x3a5a5e=_0x15844d;logger[_0x3a5a5e('0x3')](_0x3a5a5e('0x43'),JSON['stringify'](_0x50d3ee));});},exports[_0x3975d1('0x5d')]=function(_0x206b84,_0xe2a3d7,_0x32163a,_0x29da17,_0x1bf63a,_0x4c05a1,_0x44d52b){const _0x2a43e8=_0x3975d1;let _0x213895,_0xdd01ed,_0x5581b9,_0x4ae09a;return _0x4c05a1[_0x2a43e8('0x53')]=intUtil[_0x2a43e8('0x46')](_0x4c05a1[_0x2a43e8('0x53')]),_0x4c05a1[_0x2a43e8('0x40')]=intUtil[_0x2a43e8('0x46')](_0x4c05a1['serverUrl']),def[_0x2a43e8('0x23')]=util[_0x2a43e8('0x17')](_0x2a43e8('0x29'),_0x4c05a1['remoteUri']),_0x44d52b&&_0x44d52b[_0x2a43e8('0x4a')]&&_0x44d52b[_0x2a43e8('0x4a')]!==_0x2a43e8('0x12')&&(logger[_0x2a43e8('0x10')](_0x2a43e8('0x37'),_0x2a43e8('0x24')),_0xe2a3d7[_0x2a43e8('0x41')]=util[_0x2a43e8('0x17')]('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x4c05a1[_0x2a43e8('0x40')],_0xe2a3d7[_0x2a43e8('0xd')],md5(_0xe2a3d7[_0x2a43e8('0xd')]))),getConnection(_0x4c05a1)[_0x2a43e8('0x21')](function(_0x3fdf4d){const _0x54fdae=_0x2a43e8;return _0x4ae09a=_0x3fdf4d,getUser(_0x4c05a1,_0x29da17[_0x54fdae('0xa')],_0x4ae09a);})[_0x2a43e8('0x21')](function(_0x2cdf06){const _0x354423=_0x2a43e8;return _0x213895=_0x2cdf06,logger[_0x354423('0x10')](_0x354423('0x4b'),_0x213895['id']),getEndUser(_0x4c05a1,_0xe2a3d7['destcalleridname'],_0xe2a3d7['destcalleridnum'],_0x4ae09a);})[_0x2a43e8('0x21')](function(_0x10b7d2){const _0x7d44ee=_0x2a43e8;return _0xdd01ed=_0x10b7d2,logger[_0x7d44ee('0x10')](_0x7d44ee('0xf'),_0xdd01ed['id']),getTicket(_0x4c05a1,_0x213895,_0xdd01ed,_0x32163a,_0xe2a3d7,_0x32163a[_0x7d44ee('0x20')],_0x4ae09a,_0x7d44ee('0x2e'));})[_0x2a43e8('0x21')](function(_0x5b10ae){const _0x3e360f=_0x2a43e8;return _0x5581b9=_0x5b10ae,logger['info']('Ticket\x20created!'),logger[_0x3e360f('0x10')](_0x3e360f('0x34'),_0x5581b9['id']),setRelationship(_0x4ae09a,_0x213895,_0x5581b9,_0x3e360f('0x2b'));})[_0x2a43e8('0x21')](function(){const _0x525a3d=_0x2a43e8;return setRelationship(_0x4ae09a,_0xdd01ed,_0x5581b9,_0x525a3d('0xc'));})[_0x2a43e8('0x21')](function(){return getServerInfo(_0x4ae09a);})[_0x2a43e8('0x21')](function(_0x432465){const _0xd6b962=_0x2a43e8,_0x33d92d=parseInt(_0x432465['version'][_0xd6b962('0x45')](0x0));let _0x56733d=util[_0xd6b962('0x17')](_0xd6b962('0x39'),_0x4c05a1[_0xd6b962('0x53')],_0x5581b9['id']);_0x33d92d>0x6&&(_0x56733d=util[_0xd6b962('0x17')](_0xd6b962('0x26'),_0x4c05a1[_0xd6b962('0x53')],_0x5581b9['id'])),logger[_0xd6b962('0x10')]('[OUTBOUND]',_0xd6b962('0x2c')),emit(util[_0xd6b962('0x17')](_0xd6b962('0x25'),_0x29da17['name']),_0xd6b962('0x3a'),{'uri':_0x56733d});})[_0x2a43e8('0x5e')](function(_0x292a5a){const _0x581b41=_0x2a43e8;logger[_0x581b41('0x3')](_0x581b41('0x37'),JSON['stringify'](_0x292a5a));});},exports[_0x3975d1('0x3f')]=function(_0x345d12,_0x331c9f,_0x304b85,_0x3edf0e,_0x2d5a10,_0x40a9b0){const _0x43c48a=_0x3975d1;let _0x3e2581,_0x887e64,_0x24cd93,_0x2b19f1;return _0x40a9b0['remoteUri']=intUtil['stripTrailingSlash'](_0x40a9b0['remoteUri']),_0x40a9b0['serverUrl']=intUtil[_0x43c48a('0x46')](_0x40a9b0['serverUrl']),def[_0x43c48a('0x23')]=util[_0x43c48a('0x17')](_0x43c48a('0x29'),_0x40a9b0[_0x43c48a('0x53')]),_0x2d5a10&&_0x2d5a10['monitor_format']?(logger[_0x43c48a('0x10')]('['+_0x331c9f[_0x43c48a('0x28')][_0x43c48a('0x31')]()+']',_0x43c48a('0x24')),_0x331c9f[_0x43c48a('0x41')]=util[_0x43c48a('0x17')](_0x43c48a('0x42'),_0x40a9b0[_0x43c48a('0x40')],_0x331c9f[_0x43c48a('0xd')],md5(_0x331c9f[_0x43c48a('0xd')]))):_0x331c9f[_0x43c48a('0x41')]='',getConnection(_0x40a9b0)['then'](function(_0x142fb6){const _0x521d5a=_0x43c48a;return _0x2b19f1=_0x142fb6,!_[_0x521d5a('0x52')](_0x3edf0e)?getUser(_0x40a9b0,_0x3edf0e[_0x521d5a('0xa')],_0x2b19f1):getUser(_0x40a9b0,null,_0x2b19f1);})[_0x43c48a('0x21')](function(_0x449140){const _0xda4dab=_0x43c48a;return _0x3e2581=_0x449140,logger['info'](_0xda4dab('0x4b'),_0x3e2581['id']),getEndUser(_0x40a9b0,_0x331c9f['calleridname'],_0x331c9f[_0xda4dab('0x1a')],_0x2b19f1);})[_0x43c48a('0x21')](function(_0x464c46){const _0x548a38=_0x43c48a;return _0x887e64=_0x464c46,logger['info'](_0x548a38('0xf'),_0x887e64['id']),getTicket(_0x40a9b0,_0x3e2581,_0x887e64,_0x304b85,_0x331c9f,_0x304b85[_0x548a38('0x20')],_0x2b19f1,'Inbound');})['then'](function(_0xf9689d){const _0x554de7=_0x43c48a;return _0x24cd93=_0xf9689d,logger[_0x554de7('0x10')](_0x554de7('0x8')),logger[_0x554de7('0x10')](_0x554de7('0x34'),_0x24cd93['id']),setRelationship(_0x2b19f1,_0x3e2581,_0x24cd93,'users');})[_0x43c48a('0x21')](function(){const _0x51f9a0=_0x43c48a;return setRelationship(_0x2b19f1,_0x887e64,_0x24cd93,_0x51f9a0('0xc'));})[_0x43c48a('0x21')](function(){return getServerInfo(_0x2b19f1);})[_0x43c48a('0x5e')](function(_0x3d9a0f){const _0xf50ffc=_0x43c48a;logger[_0xf50ffc('0x3')]('['+_0x331c9f['lastevent'][_0xf50ffc('0x31')]()+']',JSON['stringify'](_0x3d9a0f));});}; \ 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 73b68cb..fdcfab5 100644 --- a/server/services/ami/trigger/integration/util.js +++ b/server/services/ami/trigger/integration/util.js @@ -1 +1 @@ -const a1143_0x50a2=['type','join','variableName','test','toString','keyType','toLowerCase','%s:\x20%s','key','getString','util','lodash','push','customVariable','format','Variable','string','content','name','stripTrailingSlash','variable','isNil','length'];(function(_0x4accbe,_0x50a2e7){const _0xdb6364=function(_0xa50280){while(--_0xa50280){_0x4accbe['push'](_0x4accbe['shift']());}};_0xdb6364(++_0x50a2e7);}(a1143_0x50a2,0x1bc));const a1143_0xdb63=function(_0x4accbe,_0x50a2e7){_0x4accbe=_0x4accbe-0x0;let _0xdb6364=a1143_0x50a2[_0x4accbe];return _0xdb6364;};const _0x25d3d1=a1143_0xdb63;'use strict';const _=require(_0x25d3d1('0x4')),util=require(_0x25d3d1('0x3'));exports[_0x25d3d1('0x2')]=function(_0xa50280,_0x138d59,_0x163fc8){const _0x25e5b2=_0x25d3d1,_0x12c3bd=[];if(_0xa50280[_0x25e5b2('0xf')]>0x0){const _0x28e8c9=_['sortBy'](_0xa50280,['id']);for(let _0x211c7d=0x0;_0x211c7d<_0x28e8c9[_0x25e5b2('0xf')];_0x211c7d++){const _0x28edca=_0x28e8c9[_0x211c7d];if(_0x28edca[_0x25e5b2('0x10')]==='string')_0x12c3bd[_0x25e5b2('0x5')](_0x28edca[_0x25e5b2('0xa')]);else{if(_0x28edca[_0x25e5b2('0x10')]===_0x25e5b2('0xd')&&_0x28edca[_0x25e5b2('0x12')])_0x138d59[_0x28edca[_0x25e5b2('0x12')]]&&_0x12c3bd[_0x25e5b2('0x5')](_0x138d59[_0x28edca['variableName']][_0x25e5b2('0x14')]());else{if(_0x28edca[_0x25e5b2('0x10')]==='customVariable'&&_0x28edca[_0x25e5b2('0x8')]&&_0x28edca[_0x25e5b2('0x8')][_0x25e5b2('0xb')])_0x138d59[_0x28edca[_0x25e5b2('0x8')]['name'][_0x25e5b2('0x16')]()]&&_0x12c3bd['push'](_0x138d59[_0x28edca[_0x25e5b2('0x8')]['name']['toLowerCase']()][_0x25e5b2('0x14')]());else{if(_0x28edca[_0x25e5b2('0x10')]==='keyValue'){if(_0x28edca[_0x25e5b2('0x15')]===_0x25e5b2('0x9')&&_0x28edca[_0x25e5b2('0x1')])_0x12c3bd[_0x25e5b2('0x5')](util[_0x25e5b2('0x7')](_0x25e5b2('0x0'),_0x28edca['key'],_0x28edca['keyContent']));else{if(_0x28edca['keyType']===_0x25e5b2('0xd')&&_0x28edca[_0x25e5b2('0x12')]&&_0x28edca[_0x25e5b2('0x1')])_0x138d59[_0x28edca[_0x25e5b2('0x12')]]&&_0x12c3bd['push'](util[_0x25e5b2('0x7')](_0x25e5b2('0x0'),_0x28edca['key'],_0x138d59[_0x28edca[_0x25e5b2('0x12')]]));else _0x28edca[_0x25e5b2('0x15')]===_0x25e5b2('0x6')&&_0x28edca[_0x25e5b2('0x8')]&&_0x28edca[_0x25e5b2('0x8')][_0x25e5b2('0xb')]&&_0x28edca[_0x25e5b2('0x1')]&&(_0x138d59[_0x28edca[_0x25e5b2('0x8')][_0x25e5b2('0xb')][_0x25e5b2('0x16')]()]&&_0x12c3bd['push'](util['format']('%s:\x20%s',_0x28edca[_0x25e5b2('0x1')],_0x138d59[_0x28edca[_0x25e5b2('0x8')][_0x25e5b2('0xb')][_0x25e5b2('0x16')]()])));}}}}}}}return _0x12c3bd[_0x25e5b2('0x11')](_0x163fc8);},exports[_0x25d3d1('0xc')]=function(_0x5bc8d4){const _0x2d9784=_0x5bc8d4['slice'](-0x1);return _0x2d9784==='/'&&(_0x5bc8d4=_0x5bc8d4['substring'](0x0,_0x5bc8d4['lastIndexOf'](_0x2d9784))),_0x5bc8d4;},exports['validateEmail']=function(_0x3eb225){const _0x5451d2=_0x25d3d1;if(!_[_0x5451d2('0xe')](_0x3eb225)&&_0x3eb225!==''){const _0x2354ad=/^(([^<>()[\]\\.,;:\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 _0x2354ad[_0x5451d2('0x13')](String(_0x3eb225)[_0x5451d2('0x16')]());}else return![];}; \ No newline at end of file +const a1144_0x2437=['substring','content','variableName','util','lastIndexOf','key','toString','length','validateEmail','variable','Variable','isNil','%s:\x20%s','keyType','test','type','name','customVariable','stripTrailingSlash','toLowerCase','format','push','string','getString','keyValue','sortBy'];(function(_0x5d62ea,_0x243715){const _0x24afd1=function(_0x364aeb){while(--_0x364aeb){_0x5d62ea['push'](_0x5d62ea['shift']());}};_0x24afd1(++_0x243715);}(a1144_0x2437,0x1b2));const a1144_0x24af=function(_0x5d62ea,_0x243715){_0x5d62ea=_0x5d62ea-0x0;let _0x24afd1=a1144_0x2437[_0x5d62ea];return _0x24afd1;};const _0xd7ee95=a1144_0x24af;'use strict';const _=require('lodash'),util=require(_0xd7ee95('0xb'));exports[_0xd7ee95('0x5')]=function(_0x364aeb,_0x16df46,_0x1ee3bc){const _0x30dc2a=_0xd7ee95,_0x79ec94=[];if(_0x364aeb[_0x30dc2a('0xf')]>0x0){const _0x12903a=_[_0x30dc2a('0x7')](_0x364aeb,['id']);for(let _0x170e3d=0x0;_0x170e3d<_0x12903a[_0x30dc2a('0xf')];_0x170e3d++){const _0x4ea6ae=_0x12903a[_0x170e3d];if(_0x4ea6ae['type']==='string')_0x79ec94[_0x30dc2a('0x3')](_0x4ea6ae[_0x30dc2a('0x9')]);else{if(_0x4ea6ae['type']==='variable'&&_0x4ea6ae[_0x30dc2a('0xa')])_0x16df46[_0x4ea6ae[_0x30dc2a('0xa')]]&&_0x79ec94[_0x30dc2a('0x3')](_0x16df46[_0x4ea6ae[_0x30dc2a('0xa')]][_0x30dc2a('0xe')]());else{if(_0x4ea6ae['type']===_0x30dc2a('0x19')&&_0x4ea6ae[_0x30dc2a('0x12')]&&_0x4ea6ae['Variable'][_0x30dc2a('0x18')])_0x16df46[_0x4ea6ae[_0x30dc2a('0x12')]['name'][_0x30dc2a('0x1')]()]&&_0x79ec94['push'](_0x16df46[_0x4ea6ae['Variable'][_0x30dc2a('0x18')][_0x30dc2a('0x1')]()][_0x30dc2a('0xe')]());else{if(_0x4ea6ae[_0x30dc2a('0x17')]===_0x30dc2a('0x6')){if(_0x4ea6ae[_0x30dc2a('0x15')]===_0x30dc2a('0x4')&&_0x4ea6ae[_0x30dc2a('0xd')])_0x79ec94[_0x30dc2a('0x3')](util[_0x30dc2a('0x2')](_0x30dc2a('0x14'),_0x4ea6ae[_0x30dc2a('0xd')],_0x4ea6ae['keyContent']));else{if(_0x4ea6ae['keyType']===_0x30dc2a('0x11')&&_0x4ea6ae['variableName']&&_0x4ea6ae[_0x30dc2a('0xd')])_0x16df46[_0x4ea6ae[_0x30dc2a('0xa')]]&&_0x79ec94[_0x30dc2a('0x3')](util[_0x30dc2a('0x2')](_0x30dc2a('0x14'),_0x4ea6ae[_0x30dc2a('0xd')],_0x16df46[_0x4ea6ae[_0x30dc2a('0xa')]]));else _0x4ea6ae[_0x30dc2a('0x15')]===_0x30dc2a('0x19')&&_0x4ea6ae['Variable']&&_0x4ea6ae[_0x30dc2a('0x12')][_0x30dc2a('0x18')]&&_0x4ea6ae[_0x30dc2a('0xd')]&&(_0x16df46[_0x4ea6ae[_0x30dc2a('0x12')]['name'][_0x30dc2a('0x1')]()]&&_0x79ec94['push'](util[_0x30dc2a('0x2')]('%s:\x20%s',_0x4ea6ae[_0x30dc2a('0xd')],_0x16df46[_0x4ea6ae[_0x30dc2a('0x12')][_0x30dc2a('0x18')][_0x30dc2a('0x1')]()])));}}}}}}}return _0x79ec94['join'](_0x1ee3bc);},exports[_0xd7ee95('0x0')]=function(_0x2911df){const _0x38340a=_0xd7ee95,_0x1c5310=_0x2911df['slice'](-0x1);return _0x1c5310==='/'&&(_0x2911df=_0x2911df[_0x38340a('0x8')](0x0,_0x2911df[_0x38340a('0xc')](_0x1c5310))),_0x2911df;},exports[_0xd7ee95('0x10')]=function(_0x46b68b){const _0x54f7bb=_0xd7ee95;if(!_[_0x54f7bb('0x13')](_0x46b68b)&&_0x46b68b!==''){const _0x106b03=/^(([^<>()[\]\\.,;:\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 _0x106b03[_0x54f7bb('0x16')](String(_0x46b68b)[_0x54f7bb('0x1')]());}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 2352e45..76a68e5 100644 --- a/server/services/ami/trigger/integration/vtiger.js +++ b/server/services/ami/trigger/integration/vtiger.js @@ -1 +1 @@ -const a1144_0x1a08=['emit','phone','Contacts','last_name','statusCode','Agent\x20found!','toUpperCase','[OUTBOUND]','username','Recording\x20is\x20enabled!','queue','recordingURL','first_name','Fields','The\x20User\x20ID\x20is:','stripTrailingSlash','Open','content','Enduser\x20found!','info','catch','%s/webservice.php','unmanaged','uniqueid','[QUEUE]','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','stringify','forEach','admin','recordingFormat','../../../../config/logger','request-promise-native','util','[HTTP]','sessionName','remoteUri','token','[vTiger],\x20%s,\x20%s,\x20%s','monitor_format','email','accessKey','split','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;','POST','lastname','lodash','result','length','query','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','create','toString','idField','login','Creating\x20new\x20ticket...','GET','trigger:browser:url','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','Ticket\x20created!','variableName','user:%s','userId','Getting\x20agent\x20with\x20email','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','error','Subjects','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;','Variable','md5','createTicket','lastevent','merge','email1','variable','success','HelpDesk','./util','calleridnum','The\x20Ticket\x20ID\x20is:','Enduser\x20created.','The\x20Enduser\x20ID\x20is:','firstname','then','getString','Normal','format','toLowerCase','name','type','serverUrl','getUser','resolve','getchallenge'];(function(_0x4c591b,_0x1a089b){const _0xaacee9=function(_0x5b7756){while(--_0x5b7756){_0x4c591b['push'](_0x4c591b['shift']());}};_0xaacee9(++_0x1a089b);}(a1144_0x1a08,0x8a));const a1144_0xaace=function(_0x4c591b,_0x1a089b){_0x4c591b=_0x4c591b-0x0;let _0xaacee9=a1144_0x1a08[_0x4c591b];return _0xaacee9;};const _0x1fd3f3=a1144_0xaace;'use strict';const _=require(_0x1fd3f3('0x2')),rp=require(_0x1fd3f3('0x51')),md5=require(_0x1fd3f3('0x19')),util=require(_0x1fd3f3('0x52')),intUtil=require(_0x1fd3f3('0x21')),logger=require(_0x1fd3f3('0x50'))('vTiger'),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x5b7756,_0x4b2864,_0x4c5e2d){const _0x3a8c47=_0x1fd3f3;io['to'](_0x5b7756)[_0x3a8c47('0x32')](_0x4b2864,_0x4c5e2d);}function getCustomFields(_0x485bb7,_0x6b943c){const _0x11c306=_0x1fd3f3,_0x54e43c={};return _0x485bb7[_0x11c306('0x4')]>0x0&&_[_0x11c306('0x4d')](_0x485bb7,function(_0x5a12aa){const _0x52b9ea=_0x11c306;if(_0x5a12aa[_0x52b9ea('0x2d')]==='string'&&_0x5a12aa['idField'])_0x54e43c[_0x5a12aa[_0x52b9ea('0x9')]]=_0x5a12aa[_0x52b9ea('0x43')][_0x52b9ea('0x8')]();else{if(_0x5a12aa['type']===_0x52b9ea('0x1e')&&_0x5a12aa['variableName']&&_0x5a12aa[_0x52b9ea('0x9')]&&_0x6b943c[_0x5a12aa[_0x52b9ea('0x10')]])_0x54e43c[_0x5a12aa[_0x52b9ea('0x9')]]=_0x6b943c[_0x5a12aa[_0x52b9ea('0x10')]]['toString']();else _0x5a12aa[_0x52b9ea('0x2d')]==='customVariable'&&_0x5a12aa[_0x52b9ea('0x18')]&&_0x5a12aa[_0x52b9ea('0x18')][_0x52b9ea('0x2c')]&&_0x5a12aa[_0x52b9ea('0x9')]&&_0x6b943c[_0x5a12aa[_0x52b9ea('0x18')][_0x52b9ea('0x2c')][_0x52b9ea('0x2b')]()]&&(_0x54e43c[_0x5a12aa[_0x52b9ea('0x9')]]=_0x6b943c[_0x5a12aa['Variable'][_0x52b9ea('0x2c')][_0x52b9ea('0x2b')]()]['toString']());}}),_0x54e43c;}function createTicket(_0x22f6e4,_0xf98763,_0x4e0485,_0x5ee057,_0x3b0359,_0x15581a,_0x5a3ecf){const _0xe72c99=_0x1fd3f3;logger[_0xe72c99('0x45')](_0xe72c99('0xb'));const _0x3424e0=_[_0xe72c99('0x1c')]({'parent_id':'','assigned_user_id':_0xf98763['id'],'ticketpriorities':_0xe72c99('0x29'),'ticketstatus':_0xe72c99('0x42'),'ticket_title':intUtil[_0xe72c99('0x28')](_0x5ee057[_0xe72c99('0x16')],_0x3b0359,'\x20'),'description':intUtil[_0xe72c99('0x28')](_0x5ee057['Descriptions'],_0x3b0359,'\x0a'),'contact_id':_0x4e0485['id']},getCustomFields(_0x15581a,_0x3b0359)),_0x34d86a={'method':_0xe72c99('0x0'),'uri':util[_0xe72c99('0x2a')](_0xe72c99('0x47'),_0x22f6e4[_0xe72c99('0x55')]),'form':{'operation':_0xe72c99('0x7'),'username':_0x22f6e4[_0xe72c99('0x3a')],'sessionName':_0x5a3ecf[_0xe72c99('0x54')],'elementType':_0xe72c99('0x20'),'element':JSON[_0xe72c99('0x4c')](_0x3424e0)},'json':!![]};return request(_0x34d86a)[_0xe72c99('0x27')](function(_0x5aef3d){const _0x1a1cdb=_0xe72c99;if(_0x5aef3d['success'])return Promise[_0x1a1cdb('0x30')]({'id':_0x5aef3d['result']['id']});else throw new Error(util[_0x1a1cdb('0x2a')]('Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s',JSON[_0x1a1cdb('0x4c')](_0x5aef3d[_0x1a1cdb('0x15')])));})[_0xe72c99('0x46')](function(_0x179c24){const _0x5c0f0c=_0xe72c99,_0x1a1ba7=_0x179c24['statusCode']||0x1f4;logger[_0x5c0f0c('0x15')](_0x5c0f0c('0x57'),_0x5c0f0c('0x1a'),_0x1a1ba7,JSON[_0x5c0f0c('0x4c')](_0x179c24));});}function getUser(_0x268fad,_0x2de978,_0x227ee9){const _0x4ddbf6=_0x1fd3f3;return intUtil['validateEmail'](_0x2de978)?(logger['info'](_0x4ddbf6('0x13'),_0x2de978),request({'method':'GET','uri':util['format'](_0x4ddbf6('0x47'),_0x268fad['remoteUri']),'qs':{'operation':'query','username':_0x268fad[_0x4ddbf6('0x3a')],'sessionName':_0x227ee9[_0x4ddbf6('0x54')],'query':util[_0x4ddbf6('0x2a')](_0x4ddbf6('0x5d'),_0x2de978)},'json':!![]})[_0x4ddbf6('0x27')](function(_0x34901a){const _0x123c7e=_0x4ddbf6;return _0x34901a[_0x123c7e('0x1f')]&&_0x34901a[_0x123c7e('0x3')]['length']?(logger[_0x123c7e('0x45')](_0x123c7e('0x37')),Promise[_0x123c7e('0x30')]({'id':_0x34901a['result'][0x0]['id'],'email':_0x34901a[_0x123c7e('0x3')][0x0][_0x123c7e('0x1d')],'name':_0x34901a[_0x123c7e('0x3')][0x0][_0x123c7e('0x3e')]+'\x20'+_0x34901a[_0x123c7e('0x3')][_0x123c7e('0x35')]})):(logger['info'](_0x123c7e('0x4b')),Promise[_0x123c7e('0x30')]({'id':_0x227ee9[_0x123c7e('0x12')],'email':_0x268fad[_0x123c7e('0x3a')],'name':_0x123c7e('0x4e')}));})['catch'](function(_0x2a0ab4){const _0x1579bb=_0x4ddbf6,_0x4f1fd9=_0x2a0ab4[_0x1579bb('0x36')]||0x1f4;logger['error'](_0x1579bb('0x57'),_0x1579bb('0x2f'),_0x4f1fd9,JSON[_0x1579bb('0x4c')](_0x2a0ab4));})):(logger['info'](_0x4ddbf6('0x4b')),Promise['resolve']({'id':_0x227ee9[_0x4ddbf6('0x12')],'email':_0x268fad[_0x4ddbf6('0x3a')],'name':_0x4ddbf6('0x4e')})[_0x4ddbf6('0x46')](function(_0x456451){const _0x332512=_0x4ddbf6,_0x5eda7b=_0x456451[_0x332512('0x36')]||0x1f4;logger[_0x332512('0x15')](_0x332512('0x57'),'getUser',_0x5eda7b,JSON[_0x332512('0x4c')](_0x456451));}));}function getEndUser(_0x1dd888,_0x5f47fe,_0x2a6533,_0x5bf89c){const _0x47314f=_0x1fd3f3;return logger[_0x47314f('0x45')]('Searching\x20end\x20user\x20with\x20phone',_0x2a6533),request({'method':'GET','uri':util[_0x47314f('0x2a')](_0x47314f('0x47'),_0x1dd888[_0x47314f('0x55')]),'qs':{'operation':_0x47314f('0x5'),'username':_0x1dd888[_0x47314f('0x3a')],'sessionName':_0x5bf89c['sessionName'],'query':util[_0x47314f('0x2a')](_0x47314f('0x17'),_0x2a6533,_0x2a6533,_0x2a6533,_0x2a6533,_0x2a6533)},'json':!![]})[_0x47314f('0x27')](function(_0x2d22c8){const _0x5b573b=_0x47314f;return _0x2d22c8[_0x5b573b('0x1f')]&&_0x2d22c8[_0x5b573b('0x3')][_0x5b573b('0x4')]?(logger[_0x5b573b('0x45')](_0x5b573b('0x44')),Promise[_0x5b573b('0x30')]({'id':_0x2d22c8[_0x5b573b('0x3')][0x0]['id'],'name':_0x2d22c8[_0x5b573b('0x3')][0x0][_0x5b573b('0x26')]+'\x20'+_0x2d22c8['result'][0x0]['lastname'],'phone':_0x2a6533})):(logger['info'](_0x5b573b('0x5c')),request({'method':_0x5b573b('0x0'),'uri':util[_0x5b573b('0x2a')](_0x5b573b('0x47'),_0x1dd888['remoteUri']),'form':{'operation':_0x5b573b('0x7'),'sessionName':_0x5bf89c[_0x5b573b('0x54')],'elementType':_0x5b573b('0x34'),'element':JSON[_0x5b573b('0x4c')]({'lastname':_0x5f47fe,'phone':_0x2a6533,'assigned_user_id':'\x20'})},'json':!![]})['then'](function(_0x3e75fd){const _0x5bf88c=_0x5b573b;return logger[_0x5bf88c('0x45')](_0x5bf88c('0x24')),Promise['resolve']({'id':_0x3e75fd[_0x5bf88c('0x3')]['id'],'name':_0x3e75fd['result'][_0x5bf88c('0x1')],'phone':_0x3e75fd[_0x5bf88c('0x3')][_0x5bf88c('0x33')]});})[_0x5b573b('0x46')](function(_0x2f6f19){const _0x5e3964=_0x5b573b,_0x3a86d1=_0x2f6f19[_0x5e3964('0x36')]||0x1f4;logger[_0x5e3964('0x15')](_0x5e3964('0x57'),'getEndUser',_0x3a86d1,JSON['stringify'](_0x2f6f19));}));});}function getConnection(_0x4f3526){const _0x456c7a=_0x1fd3f3,_0x2521a4=_0x4f3526['username'],_0x50ca77=_0x4f3526[_0x456c7a('0x5a')];return request({'method':_0x456c7a('0xc'),'uri':util['format'](_0x456c7a('0x47'),_0x4f3526[_0x456c7a('0x55')]),'qs':{'operation':_0x456c7a('0x31'),'username':_0x2521a4},'json':!![]})[_0x456c7a('0x27')](function(_0x198e50){const _0x473417=_0x456c7a;if(_0x198e50[_0x473417('0x1f')])return request({'method':_0x473417('0x0'),'uri':util[_0x473417('0x2a')](_0x473417('0x47'),_0x4f3526[_0x473417('0x55')]),'form':{'operation':_0x473417('0xa'),'username':_0x2521a4,'accessKey':md5(_0x198e50[_0x473417('0x3')][_0x473417('0x56')]+_0x50ca77)},'json':!![]});})['then'](function(_0xdbb0b8){const _0x4caaef=_0x456c7a;if(_0xdbb0b8[_0x4caaef('0x1f')])return Promise[_0x4caaef('0x30')](_0xdbb0b8[_0x4caaef('0x3')]);else throw new Error(util[_0x4caaef('0x2a')]('Account\x20%d\x20is\x20not\x20valid',_0x4f3526['id']));})['catch'](function(_0x1b25a7){const _0x58fc3d=_0x456c7a,_0x5b1af5=_0x1b25a7[_0x58fc3d('0x36')]||0x1f4;logger[_0x58fc3d('0x15')]('[vTiger],\x20%s,\x20%s,\x20%s','getConnection',_0x5b1af5,JSON[_0x58fc3d('0x4c')](_0x1b25a7));});}function request(_0x14d5ff){const _0x51dbd5=_0x1fd3f3;return logger[_0x51dbd5('0x45')](_0x51dbd5('0x53'),JSON[_0x51dbd5('0x4c')](_0x14d5ff)),rp(_0x14d5ff);}exports[_0x1fd3f3('0x3c')]=function(_0x3e82a4,_0xd6d639,_0x3d69bb,_0x3efdaf,_0x5726b7,_0xcd5af4){const _0x2c1287=_0x1fd3f3;let _0x52a3e8,_0x332ba8,_0x4c8097,_0x329602;return _0xcd5af4[_0x2c1287('0x55')]=intUtil[_0x2c1287('0x41')](_0xcd5af4[_0x2c1287('0x55')]),_0x5726b7&&_0x5726b7[_0x2c1287('0x58')]?(logger[_0x2c1287('0x45')](_0x2c1287('0x4a'),_0x2c1287('0x3b')),_0xd6d639[_0x2c1287('0x3d')]=util[_0x2c1287('0x2a')](_0x2c1287('0xe'),_0xcd5af4[_0x2c1287('0x2e')],_0xd6d639[_0x2c1287('0x49')],md5(_0xd6d639[_0x2c1287('0x49')]))):_0xd6d639[_0x2c1287('0x3d')]='',getConnection(_0xcd5af4)[_0x2c1287('0x27')](function(_0x3be0ce){const _0x3d4f0a=_0x2c1287;return _0x329602=_0x3be0ce,getUser(_0xcd5af4,_0x3efdaf[_0x3d4f0a('0x59')],_0x329602);})[_0x2c1287('0x27')](function(_0x45715a){const _0x202e56=_0x2c1287;return _0x52a3e8=_0x45715a,logger[_0x202e56('0x45')](_0x202e56('0x40'),_0x52a3e8['id']),getEndUser(_0xcd5af4,_0xd6d639['calleridname'],_0xd6d639[_0x202e56('0x22')],_0x329602);})[_0x2c1287('0x27')](function(_0x5c9070){const _0x1e993e=_0x2c1287;return _0x332ba8=_0x5c9070,logger[_0x1e993e('0x45')]('The\x20Enduser\x20ID\x20is:',_0x332ba8['id']),createTicket(_0xcd5af4,_0x52a3e8,_0x332ba8,_0x3d69bb,_0xd6d639,_0x3d69bb[_0x1e993e('0x3f')],_0x329602);})[_0x2c1287('0x27')](function(_0x593277){const _0x53a068=_0x2c1287;_0x4c8097=_0x593277,logger[_0x53a068('0x45')](_0x53a068('0xf')),logger[_0x53a068('0x45')](_0x53a068('0x23'),_0x4c8097['id']);const _0x1aeaa9=util[_0x53a068('0x2a')](_0x53a068('0x14'),_0xcd5af4['remoteUri'],_[_0x53a068('0x5b')](_0x4c8097['id'],'x')[0x1]);logger[_0x53a068('0x45')](_0x53a068('0x4a'),_0x53a068('0x6')),emit(util['format']('user:%s',_0x3efdaf[_0x53a068('0x2c')]),_0x53a068('0xd'),{'uri':_0x1aeaa9});})[_0x2c1287('0x46')](function(_0x4b2834){const _0x3daa98=_0x2c1287;logger[_0x3daa98('0x15')]('[QUEUE]',JSON[_0x3daa98('0x4c')](_0x4b2834));});},exports['outbound']=function(_0x235dc8,_0x18cfc2,_0x19561b,_0x305f00,_0x286767,_0x2970ab,_0x1329d0){const _0x6e458b=_0x1fd3f3;let _0x493f8d,_0x67691c,_0x20b785,_0x299a9d;return _0x2970ab['remoteUri']=intUtil[_0x6e458b('0x41')](_0x2970ab[_0x6e458b('0x55')]),_0x2970ab[_0x6e458b('0x2e')]=intUtil[_0x6e458b('0x41')](_0x2970ab[_0x6e458b('0x2e')]),_0x1329d0&&_0x1329d0[_0x6e458b('0x4f')]&&_0x1329d0[_0x6e458b('0x4f')]!=='none'&&(logger[_0x6e458b('0x45')]('[OUTBOUND]',_0x6e458b('0x3b')),_0x18cfc2[_0x6e458b('0x3d')]=util[_0x6e458b('0x2a')](_0x6e458b('0xe'),_0x2970ab[_0x6e458b('0x2e')],_0x18cfc2[_0x6e458b('0x49')],md5(_0x18cfc2[_0x6e458b('0x49')]))),getConnection(_0x2970ab)[_0x6e458b('0x27')](function(_0xd354a7){const _0x1aebee=_0x6e458b;return _0x299a9d=_0xd354a7,getUser(_0x2970ab,_0x305f00[_0x1aebee('0x59')],_0x299a9d);})[_0x6e458b('0x27')](function(_0x5c3210){const _0x2de7f9=_0x6e458b;return _0x493f8d=_0x5c3210,logger[_0x2de7f9('0x45')](_0x2de7f9('0x40'),_0x493f8d['id']),getEndUser(_0x2970ab,_0x18cfc2['destcalleridname'],_0x18cfc2['destcalleridnum'],_0x299a9d);})[_0x6e458b('0x27')](function(_0xac559d){const _0x19bb30=_0x6e458b;return _0x67691c=_0xac559d,logger[_0x19bb30('0x45')](_0x19bb30('0x25'),_0x67691c['id']),createTicket(_0x2970ab,_0x493f8d,_0x67691c,_0x19561b,_0x18cfc2,_0x19561b[_0x19bb30('0x3f')],_0x299a9d);})[_0x6e458b('0x27')](function(_0x1b4f66){const _0x45fba7=_0x6e458b;_0x20b785=_0x1b4f66,logger[_0x45fba7('0x45')](_0x45fba7('0xf')),logger[_0x45fba7('0x45')]('The\x20Ticket\x20ID\x20is:',_0x20b785['id']);const _0x47f9af=util[_0x45fba7('0x2a')]('%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT',_0x2970ab[_0x45fba7('0x55')],_[_0x45fba7('0x5b')](_0x20b785['id'],'x')[0x1]);logger[_0x45fba7('0x45')](_0x45fba7('0x39'),_0x45fba7('0x6')),emit(util[_0x45fba7('0x2a')](_0x45fba7('0x11'),_0x305f00['name']),_0x45fba7('0xd'),{'uri':_0x47f9af});})[_0x6e458b('0x46')](function(_0x3045fe){const _0x4277a6=_0x6e458b;logger[_0x4277a6('0x15')](_0x4277a6('0x39'),JSON[_0x4277a6('0x4c')](_0x3045fe));});},exports[_0x1fd3f3('0x48')]=function(_0x5a54c6,_0x2185ac,_0x1ed569,_0x491d69,_0x3dd3fb,_0x5381ae){const _0x1661aa=_0x1fd3f3;let _0x570a2b,_0x154c19,_0x24fb1b,_0x30f3d5;return _0x5381ae[_0x1661aa('0x55')]=intUtil['stripTrailingSlash'](_0x5381ae[_0x1661aa('0x55')]),_0x5381ae[_0x1661aa('0x2e')]=intUtil[_0x1661aa('0x41')](_0x5381ae[_0x1661aa('0x2e')]),_0x3dd3fb&&_0x3dd3fb[_0x1661aa('0x58')]?(logger[_0x1661aa('0x45')]('['+_0x2185ac[_0x1661aa('0x1b')][_0x1661aa('0x38')]()+']',_0x1661aa('0x3b')),_0x2185ac[_0x1661aa('0x3d')]=util['format'](_0x1661aa('0xe'),_0x5381ae[_0x1661aa('0x2e')],_0x2185ac[_0x1661aa('0x49')],md5(_0x2185ac['uniqueid']))):_0x2185ac[_0x1661aa('0x3d')]='',getConnection(_0x5381ae)['then'](function(_0x1182a6){return _0x30f3d5=_0x1182a6,getUser(_0x5381ae,'',_0x30f3d5);})[_0x1661aa('0x27')](function(_0x552023){const _0x39e72f=_0x1661aa;return _0x570a2b=_0x552023,logger[_0x39e72f('0x45')]('The\x20User\x20ID\x20is:',_0x570a2b['id']),getEndUser(_0x5381ae,_0x2185ac['calleridname'],_0x2185ac[_0x39e72f('0x22')],_0x30f3d5);})[_0x1661aa('0x27')](function(_0x34f37b){const _0x5b1af4=_0x1661aa;return _0x154c19=_0x34f37b,logger[_0x5b1af4('0x45')](_0x5b1af4('0x25'),_0x154c19['id']),createTicket(_0x5381ae,_0x570a2b,_0x154c19,_0x1ed569,_0x2185ac,_0x1ed569[_0x5b1af4('0x3f')],_0x30f3d5);})['then'](function(_0x22fa0a){const _0x2cf1b=_0x1661aa;_0x24fb1b=_0x22fa0a,logger[_0x2cf1b('0x45')](_0x2cf1b('0xf')),logger['info'](_0x2cf1b('0x23'),_0x24fb1b['id']);})[_0x1661aa('0x46')](function(_0x2d2ca7){const _0x50152b=_0x1661aa;logger[_0x50152b('0x15')]('['+_0x2185ac['lastevent']['toUpperCase']()+']',JSON[_0x50152b('0x4c')](_0x2d2ca7));});}; \ No newline at end of file +const a1145_0x1dd5=['Variable','recordingURL','accessKey','success','outbound','type','result','recordingFormat','name','Agent\x20found!','Fields','toUpperCase','content','forEach','GET','emit','uniqueid','resolve','Ticket\x20created!','then','Getting\x20agent\x20with\x20email','phone','toLowerCase','merge','calleridname','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','serverUrl','Enduser\x20created.','getUser','validateEmail','%s/index.php?module=HelpDesk&view=Detail&record=%s&app=SUPPORT','unmanaged','email','Account\x20%d\x20is\x20not\x20valid','token','Contacts','variableName','stringify','monitor_format','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','error','destcalleridnum','username','lastevent','Descriptions','[vTiger],\x20%s,\x20%s,\x20%s','lastname','[QUEUE]','remoteUri','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;','stripTrailingSlash','queue','statusCode','none','[HTTP]','The\x20User\x20ID\x20is:','last_name','The\x20Enduser\x20ID\x20is:','customVariable','Open','email1','getchallenge','admin','The\x20Ticket\x20ID\x20is:','md5','query','%s/webservice.php','userId','firstname','../../../../rediscache','calleridnum','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','trigger:browser:url','string','create','toString','split','Recording\x20is\x20enabled!','length','sessionName','createTicket','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','util','Subjects','getString','HelpDesk','first_name','info','POST','[OUTBOUND]','format','catch','idField','request-promise-native','lodash','Creating\x20new\x20ticket...','../../../../config/logger'];(function(_0x66d49c,_0x1dd54f){const _0xa2786=function(_0x32b7d6){while(--_0x32b7d6){_0x66d49c['push'](_0x66d49c['shift']());}};_0xa2786(++_0x1dd54f);}(a1145_0x1dd5,0x1e8));const a1145_0xa278=function(_0x66d49c,_0x1dd54f){_0x66d49c=_0x66d49c-0x0;let _0xa2786=a1145_0x1dd5[_0x66d49c];return _0xa2786;};const _0x34305f=a1145_0xa278;'use strict';const _=require(_0x34305f('0x5b')),rp=require(_0x34305f('0x5a')),md5=require(_0x34305f('0x3d')),util=require(_0x34305f('0x4f')),intUtil=require('./util'),logger=require(_0x34305f('0x5d'))('vTiger'),{getSocket}=require(_0x34305f('0x42')),io=getSocket();function emit(_0x32b7d6,_0xebcec,_0x25b0ab){const _0xb8ceb9=_0x34305f;io['to'](_0x32b7d6)[_0xb8ceb9('0xc')](_0xebcec,_0x25b0ab);}function getCustomFields(_0x56e7f9,_0x3ad54a){const _0x1cb889=_0x34305f,_0x47e58c={};return _0x56e7f9[_0x1cb889('0x4b')]>0x0&&_[_0x1cb889('0xa')](_0x56e7f9,function(_0x5dedeb){const _0x592627=_0x1cb889;if(_0x5dedeb[_0x592627('0x2')]===_0x592627('0x46')&&_0x5dedeb['idField'])_0x47e58c[_0x5dedeb[_0x592627('0x59')]]=_0x5dedeb[_0x592627('0x9')]['toString']();else{if(_0x5dedeb[_0x592627('0x2')]==='variable'&&_0x5dedeb[_0x592627('0x21')]&&_0x5dedeb[_0x592627('0x59')]&&_0x3ad54a[_0x5dedeb['variableName']])_0x47e58c[_0x5dedeb[_0x592627('0x59')]]=_0x3ad54a[_0x5dedeb[_0x592627('0x21')]]['toString']();else _0x5dedeb[_0x592627('0x2')]===_0x592627('0x37')&&_0x5dedeb[_0x592627('0x5e')]&&_0x5dedeb[_0x592627('0x5e')][_0x592627('0x5')]&&_0x5dedeb[_0x592627('0x59')]&&_0x3ad54a[_0x5dedeb[_0x592627('0x5e')][_0x592627('0x5')][_0x592627('0x13')]()]&&(_0x47e58c[_0x5dedeb['idField']]=_0x3ad54a[_0x5dedeb[_0x592627('0x5e')]['name']['toLowerCase']()][_0x592627('0x48')]());}}),_0x47e58c;}function createTicket(_0x14c91e,_0x38ea8e,_0xba63b4,_0x279811,_0x46fb17,_0x3b22a8,_0x49c898){const _0x57a7af=_0x34305f;logger[_0x57a7af('0x54')](_0x57a7af('0x5c'));const _0x179b3c=_[_0x57a7af('0x14')]({'parent_id':'','assigned_user_id':_0x38ea8e['id'],'ticketpriorities':'Normal','ticketstatus':_0x57a7af('0x38'),'ticket_title':intUtil[_0x57a7af('0x51')](_0x279811[_0x57a7af('0x50')],_0x46fb17,'\x20'),'description':intUtil['getString'](_0x279811[_0x57a7af('0x29')],_0x46fb17,'\x0a'),'contact_id':_0xba63b4['id']},getCustomFields(_0x3b22a8,_0x46fb17)),_0x1fb515={'method':'POST','uri':util[_0x57a7af('0x57')](_0x57a7af('0x3f'),_0x14c91e['remoteUri']),'form':{'operation':_0x57a7af('0x47'),'username':_0x14c91e[_0x57a7af('0x27')],'sessionName':_0x49c898[_0x57a7af('0x4c')],'elementType':_0x57a7af('0x52'),'element':JSON[_0x57a7af('0x22')](_0x179b3c)},'json':!![]};return request(_0x1fb515)['then'](function(_0x119006){const _0x3dd0d7=_0x57a7af;if(_0x119006[_0x3dd0d7('0x0')])return Promise[_0x3dd0d7('0xe')]({'id':_0x119006[_0x3dd0d7('0x3')]['id']});else throw new Error(util[_0x3dd0d7('0x57')]('Ticket\x20could\x20not\x20be\x20created\x20due\x20to:\x20%s',JSON['stringify'](_0x119006['error'])));})[_0x57a7af('0x58')](function(_0x32a861){const _0x1f2698=_0x57a7af,_0x4c2ce2=_0x32a861[_0x1f2698('0x31')]||0x1f4;logger[_0x1f2698('0x25')](_0x1f2698('0x2a'),_0x1f2698('0x4d'),_0x4c2ce2,JSON[_0x1f2698('0x22')](_0x32a861));});}function getUser(_0x91b53d,_0x176eeb,_0x1bac4c){const _0x2e6b30=_0x34305f;return intUtil[_0x2e6b30('0x1a')](_0x176eeb)?(logger[_0x2e6b30('0x54')](_0x2e6b30('0x11'),_0x176eeb),request({'method':'GET','uri':util[_0x2e6b30('0x57')]('%s/webservice.php',_0x91b53d[_0x2e6b30('0x2d')]),'qs':{'operation':'query','username':_0x91b53d[_0x2e6b30('0x27')],'sessionName':_0x1bac4c[_0x2e6b30('0x4c')],'query':util[_0x2e6b30('0x57')]('SELECT\x20first_name,\x20last_name,\x20email1\x20FROM\x20Users\x20WHERE\x20email1=\x27%s\x27;',_0x176eeb)},'json':!![]})[_0x2e6b30('0x10')](function(_0x2023f6){const _0x1197b7=_0x2e6b30;return _0x2023f6['success']&&_0x2023f6[_0x1197b7('0x3')][_0x1197b7('0x4b')]?(logger['info'](_0x1197b7('0x6')),Promise['resolve']({'id':_0x2023f6[_0x1197b7('0x3')][0x0]['id'],'email':_0x2023f6[_0x1197b7('0x3')][0x0][_0x1197b7('0x39')],'name':_0x2023f6[_0x1197b7('0x3')][0x0][_0x1197b7('0x53')]+'\x20'+_0x2023f6['result'][_0x1197b7('0x35')]})):(logger[_0x1197b7('0x54')]('Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!'),Promise['resolve']({'id':_0x1bac4c['userId'],'email':_0x91b53d[_0x1197b7('0x27')],'name':_0x1197b7('0x3b')}));})[_0x2e6b30('0x58')](function(_0x1b8476){const _0xeeac1e=_0x2e6b30,_0x5167d8=_0x1b8476[_0xeeac1e('0x31')]||0x1f4;logger[_0xeeac1e('0x25')]('[vTiger],\x20%s,\x20%s,\x20%s',_0xeeac1e('0x19'),_0x5167d8,JSON[_0xeeac1e('0x22')](_0x1b8476));})):(logger['info'](_0x2e6b30('0x44')),Promise[_0x2e6b30('0xe')]({'id':_0x1bac4c[_0x2e6b30('0x40')],'email':_0x91b53d[_0x2e6b30('0x27')],'name':_0x2e6b30('0x3b')})[_0x2e6b30('0x58')](function(_0x34a2a0){const _0x1c288c=_0x2e6b30,_0x592fbf=_0x34a2a0[_0x1c288c('0x31')]||0x1f4;logger['error'](_0x1c288c('0x2a'),_0x1c288c('0x19'),_0x592fbf,JSON[_0x1c288c('0x22')](_0x34a2a0));}));}function getEndUser(_0x52685d,_0x2b6d41,_0x5e1808,_0x35268c){const _0x141a61=_0x34305f;return logger[_0x141a61('0x54')]('Searching\x20end\x20user\x20with\x20phone',_0x5e1808),request({'method':_0x141a61('0xb'),'uri':util[_0x141a61('0x57')](_0x141a61('0x3f'),_0x52685d[_0x141a61('0x2d')]),'qs':{'operation':_0x141a61('0x3e'),'username':_0x52685d[_0x141a61('0x27')],'sessionName':_0x35268c['sessionName'],'query':util[_0x141a61('0x57')](_0x141a61('0x2e'),_0x5e1808,_0x5e1808,_0x5e1808,_0x5e1808,_0x5e1808)},'json':!![]})['then'](function(_0x4e0172){const _0x51bc02=_0x141a61;return _0x4e0172[_0x51bc02('0x0')]&&_0x4e0172[_0x51bc02('0x3')][_0x51bc02('0x4b')]?(logger[_0x51bc02('0x54')]('Enduser\x20found!'),Promise[_0x51bc02('0xe')]({'id':_0x4e0172['result'][0x0]['id'],'name':_0x4e0172[_0x51bc02('0x3')][0x0][_0x51bc02('0x41')]+'\x20'+_0x4e0172[_0x51bc02('0x3')][0x0][_0x51bc02('0x2b')],'phone':_0x5e1808})):(logger['info'](_0x51bc02('0x16')),request({'method':_0x51bc02('0x55'),'uri':util[_0x51bc02('0x57')](_0x51bc02('0x3f'),_0x52685d['remoteUri']),'form':{'operation':_0x51bc02('0x47'),'sessionName':_0x35268c[_0x51bc02('0x4c')],'elementType':_0x51bc02('0x20'),'element':JSON[_0x51bc02('0x22')]({'lastname':_0x2b6d41,'phone':_0x5e1808,'assigned_user_id':'\x20'})},'json':!![]})[_0x51bc02('0x10')](function(_0x46555f){const _0x519e0e=_0x51bc02;return logger[_0x519e0e('0x54')](_0x519e0e('0x18')),Promise['resolve']({'id':_0x46555f[_0x519e0e('0x3')]['id'],'name':_0x46555f['result']['lastname'],'phone':_0x46555f[_0x519e0e('0x3')][_0x519e0e('0x12')]});})[_0x51bc02('0x58')](function(_0xb349f2){const _0x4f059d=_0x51bc02,_0x505550=_0xb349f2[_0x4f059d('0x31')]||0x1f4;logger[_0x4f059d('0x25')]('[vTiger],\x20%s,\x20%s,\x20%s','getEndUser',_0x505550,JSON[_0x4f059d('0x22')](_0xb349f2));}));});}function getConnection(_0xa94803){const _0x32b04c=_0x34305f,_0x43d0b9=_0xa94803['username'],_0x1dd5cd=_0xa94803[_0x32b04c('0x60')];return request({'method':_0x32b04c('0xb'),'uri':util[_0x32b04c('0x57')](_0x32b04c('0x3f'),_0xa94803[_0x32b04c('0x2d')]),'qs':{'operation':_0x32b04c('0x3a'),'username':_0x43d0b9},'json':!![]})[_0x32b04c('0x10')](function(_0x5ce2e6){const _0x29fab0=_0x32b04c;if(_0x5ce2e6[_0x29fab0('0x0')])return request({'method':_0x29fab0('0x55'),'uri':util[_0x29fab0('0x57')]('%s/webservice.php',_0xa94803[_0x29fab0('0x2d')]),'form':{'operation':'login','username':_0x43d0b9,'accessKey':md5(_0x5ce2e6[_0x29fab0('0x3')][_0x29fab0('0x1f')]+_0x1dd5cd)},'json':!![]});})[_0x32b04c('0x10')](function(_0x561869){const _0x33ad13=_0x32b04c;if(_0x561869[_0x33ad13('0x0')])return Promise[_0x33ad13('0xe')](_0x561869[_0x33ad13('0x3')]);else throw new Error(util[_0x33ad13('0x57')](_0x33ad13('0x1e'),_0xa94803['id']));})['catch'](function(_0xf228f4){const _0x2fbf92=_0x32b04c,_0x5ccf74=_0xf228f4[_0x2fbf92('0x31')]||0x1f4;logger[_0x2fbf92('0x25')](_0x2fbf92('0x2a'),'getConnection',_0x5ccf74,JSON[_0x2fbf92('0x22')](_0xf228f4));});}function request(_0x268557){const _0x1e10f3=_0x34305f;return logger[_0x1e10f3('0x54')](_0x1e10f3('0x33'),JSON[_0x1e10f3('0x22')](_0x268557)),rp(_0x268557);}exports[_0x34305f('0x30')]=function(_0x7a5d5c,_0x20d780,_0x58856b,_0xd3a471,_0x4a1784,_0x40a827){const _0x12944d=_0x34305f;let _0x4dc15a,_0x1d4169,_0x56134f,_0x2ad256;return _0x40a827[_0x12944d('0x2d')]=intUtil[_0x12944d('0x2f')](_0x40a827[_0x12944d('0x2d')]),_0x4a1784&&_0x4a1784[_0x12944d('0x23')]?(logger[_0x12944d('0x54')]('[QUEUE]',_0x12944d('0x4a')),_0x20d780[_0x12944d('0x5f')]=util['format'](_0x12944d('0x4e'),_0x40a827[_0x12944d('0x17')],_0x20d780[_0x12944d('0xd')],md5(_0x20d780[_0x12944d('0xd')]))):_0x20d780['recordingURL']='',getConnection(_0x40a827)[_0x12944d('0x10')](function(_0x13a24f){return _0x2ad256=_0x13a24f,getUser(_0x40a827,_0xd3a471['email'],_0x2ad256);})['then'](function(_0x5ac37e){const _0x5de51b=_0x12944d;return _0x4dc15a=_0x5ac37e,logger['info'](_0x5de51b('0x34'),_0x4dc15a['id']),getEndUser(_0x40a827,_0x20d780[_0x5de51b('0x15')],_0x20d780[_0x5de51b('0x43')],_0x2ad256);})['then'](function(_0x2e3b8a){const _0x68790c=_0x12944d;return _0x1d4169=_0x2e3b8a,logger['info'](_0x68790c('0x36'),_0x1d4169['id']),createTicket(_0x40a827,_0x4dc15a,_0x1d4169,_0x58856b,_0x20d780,_0x58856b[_0x68790c('0x7')],_0x2ad256);})[_0x12944d('0x10')](function(_0x2882d9){const _0x3980b9=_0x12944d;_0x56134f=_0x2882d9,logger['info']('Ticket\x20created!'),logger[_0x3980b9('0x54')](_0x3980b9('0x3c'),_0x56134f['id']);const _0x3fd232=util[_0x3980b9('0x57')](_0x3980b9('0x1b'),_0x40a827[_0x3980b9('0x2d')],_[_0x3980b9('0x49')](_0x56134f['id'],'x')[0x1]);logger[_0x3980b9('0x54')](_0x3980b9('0x2c'),_0x3980b9('0x24')),emit(util[_0x3980b9('0x57')]('user:%s',_0xd3a471[_0x3980b9('0x5')]),_0x3980b9('0x45'),{'uri':_0x3fd232});})['catch'](function(_0x8654fe){const _0x2a7383=_0x12944d;logger['error'](_0x2a7383('0x2c'),JSON['stringify'](_0x8654fe));});},exports[_0x34305f('0x1')]=function(_0x1a4ed3,_0x326c62,_0x333a82,_0x46dd33,_0x1fe4ab,_0x4b5fcf,_0x3b444a){const _0x3ca6ad=_0x34305f;let _0x268943,_0x4f90af,_0x145016,_0x30fb4c;return _0x4b5fcf[_0x3ca6ad('0x2d')]=intUtil[_0x3ca6ad('0x2f')](_0x4b5fcf[_0x3ca6ad('0x2d')]),_0x4b5fcf[_0x3ca6ad('0x17')]=intUtil['stripTrailingSlash'](_0x4b5fcf[_0x3ca6ad('0x17')]),_0x3b444a&&_0x3b444a[_0x3ca6ad('0x4')]&&_0x3b444a[_0x3ca6ad('0x4')]!==_0x3ca6ad('0x32')&&(logger['info'](_0x3ca6ad('0x56'),_0x3ca6ad('0x4a')),_0x326c62[_0x3ca6ad('0x5f')]=util[_0x3ca6ad('0x57')](_0x3ca6ad('0x4e'),_0x4b5fcf[_0x3ca6ad('0x17')],_0x326c62['uniqueid'],md5(_0x326c62[_0x3ca6ad('0xd')]))),getConnection(_0x4b5fcf)[_0x3ca6ad('0x10')](function(_0x1639ac){const _0x1cb6f8=_0x3ca6ad;return _0x30fb4c=_0x1639ac,getUser(_0x4b5fcf,_0x46dd33[_0x1cb6f8('0x1d')],_0x30fb4c);})[_0x3ca6ad('0x10')](function(_0x3a0418){const _0x30d50b=_0x3ca6ad;return _0x268943=_0x3a0418,logger['info'](_0x30d50b('0x34'),_0x268943['id']),getEndUser(_0x4b5fcf,_0x326c62['destcalleridname'],_0x326c62[_0x30d50b('0x26')],_0x30fb4c);})['then'](function(_0x1519ed){const _0x41e9aa=_0x3ca6ad;return _0x4f90af=_0x1519ed,logger[_0x41e9aa('0x54')](_0x41e9aa('0x36'),_0x4f90af['id']),createTicket(_0x4b5fcf,_0x268943,_0x4f90af,_0x333a82,_0x326c62,_0x333a82[_0x41e9aa('0x7')],_0x30fb4c);})[_0x3ca6ad('0x10')](function(_0x5d6d18){const _0x4e3c08=_0x3ca6ad;_0x145016=_0x5d6d18,logger[_0x4e3c08('0x54')](_0x4e3c08('0xf')),logger[_0x4e3c08('0x54')](_0x4e3c08('0x3c'),_0x145016['id']);const _0x4a9a25=util[_0x4e3c08('0x57')](_0x4e3c08('0x1b'),_0x4b5fcf[_0x4e3c08('0x2d')],_['split'](_0x145016['id'],'x')[0x1]);logger[_0x4e3c08('0x54')]('[OUTBOUND]',_0x4e3c08('0x24')),emit(util['format']('user:%s',_0x46dd33[_0x4e3c08('0x5')]),_0x4e3c08('0x45'),{'uri':_0x4a9a25});})['catch'](function(_0x1e90ec){const _0xff07a6=_0x3ca6ad;logger[_0xff07a6('0x25')]('[OUTBOUND]',JSON[_0xff07a6('0x22')](_0x1e90ec));});},exports[_0x34305f('0x1c')]=function(_0x420f25,_0x5808db,_0x2961eb,_0x3be5f8,_0x54aa5b,_0x1a4d5e){const _0x1ff6e1=_0x34305f;let _0x324ff4,_0x15f733,_0x5eb6f3,_0x5e9212;return _0x1a4d5e['remoteUri']=intUtil[_0x1ff6e1('0x2f')](_0x1a4d5e[_0x1ff6e1('0x2d')]),_0x1a4d5e[_0x1ff6e1('0x17')]=intUtil['stripTrailingSlash'](_0x1a4d5e[_0x1ff6e1('0x17')]),_0x54aa5b&&_0x54aa5b[_0x1ff6e1('0x23')]?(logger[_0x1ff6e1('0x54')]('['+_0x5808db['lastevent']['toUpperCase']()+']',_0x1ff6e1('0x4a')),_0x5808db[_0x1ff6e1('0x5f')]=util['format'](_0x1ff6e1('0x4e'),_0x1a4d5e['serverUrl'],_0x5808db[_0x1ff6e1('0xd')],md5(_0x5808db['uniqueid']))):_0x5808db[_0x1ff6e1('0x5f')]='',getConnection(_0x1a4d5e)['then'](function(_0x3da1a1){return _0x5e9212=_0x3da1a1,getUser(_0x1a4d5e,'',_0x5e9212);})[_0x1ff6e1('0x10')](function(_0x63f1fc){const _0x5b1ab4=_0x1ff6e1;return _0x324ff4=_0x63f1fc,logger[_0x5b1ab4('0x54')]('The\x20User\x20ID\x20is:',_0x324ff4['id']),getEndUser(_0x1a4d5e,_0x5808db[_0x5b1ab4('0x15')],_0x5808db[_0x5b1ab4('0x43')],_0x5e9212);})[_0x1ff6e1('0x10')](function(_0x1c3b0c){const _0xb3443d=_0x1ff6e1;return _0x15f733=_0x1c3b0c,logger[_0xb3443d('0x54')](_0xb3443d('0x36'),_0x15f733['id']),createTicket(_0x1a4d5e,_0x324ff4,_0x15f733,_0x2961eb,_0x5808db,_0x2961eb[_0xb3443d('0x7')],_0x5e9212);})[_0x1ff6e1('0x10')](function(_0x4cfd70){const _0x5d0354=_0x1ff6e1;_0x5eb6f3=_0x4cfd70,logger[_0x5d0354('0x54')]('Ticket\x20created!'),logger['info'](_0x5d0354('0x3c'),_0x5eb6f3['id']);})[_0x1ff6e1('0x58')](function(_0x4a73ae){const _0x21ea58=_0x1ff6e1;logger[_0x21ea58('0x25')]('['+_0x5808db[_0x21ea58('0x28')][_0x21ea58('0x8')]()+']',JSON[_0x21ea58('0x22')](_0x4a73ae));});}; \ 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 9dcf6c3..2919399 100644 --- a/server/services/ami/trigger/integration/zendesk.js +++ b/server/services/ami/trigger/integration/zendesk.js @@ -1 +1 @@ -const a1145_0x5767=['../../../../rediscache','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','error','destcalleridnum','\x20Error\x20running\x20Zendesk\x20integration','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','Variable','queue','map','validateEmail','The\x20User\x20ID\x20is:','recordingFormat','type:user\x20role:agent\x20email:%s','name','end-user','request-promise-native','results','filter','variableName','custom_fields','lastevent','toString','application/json','The\x20Enduser\x20ID\x20is:','Enduser\x20found!','token','../../../../config/logger','stripTrailingSlash','Recording\x20is\x20enabled!','[QUEUE]','push','destcalleridname','monitor_format','uniqueid','content','md5','%s/search.json','Descriptions','none','toUpperCase','calleridname','idField','from','Admin\x20account\x20selected.','/api/v2','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','remoteUri','then','Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!','Basic\x20%s','%s/users.json','base64','integrationTab','user:%s','toLowerCase','%s/users/me.json','Authorization','getString','type:user\x20role:end-user\x20phone:%s','length','[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration','user','password','serverUrl','nameField','[OUTBOUND]','Subjects','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','Zendesk\x20account\x20type\x20not\x20recognized','customField','Displaying\x20ticket\x20to\x20agent...','info','variable','stringify','authType','newTab','merge','find','POST','string','defaults','count','calleridnum','emit','Searching\x20enduser\x20with\x20phone','zendesk','%s/channels/voice/agents/%d/tickets/%d/display.json','trigger:browser:url','username','customVariable','%s/agent/tickets/%s','Getting\x20agent\x20with\x20email','ticket','forEach','agent','email','inspect','recordingURL','Fields','replace','The\x20Ticket\x20ID\x20is:','type','debug','Enduser\x20created.','format','catch'];(function(_0x2ab373,_0x57678a){const _0x5ec1aa=function(_0x5d93d7){while(--_0x5d93d7){_0x2ab373['push'](_0x2ab373['shift']());}};_0x5ec1aa(++_0x57678a);}(a1145_0x5767,0x1b7));const a1145_0x5ec1=function(_0x2ab373,_0x57678a){_0x2ab373=_0x2ab373-0x0;let _0x5ec1aa=a1145_0x5767[_0x2ab373];return _0x5ec1aa;};const _0x5a1567=a1145_0x5ec1;'use strict';const _=require('lodash'),rp=require(_0x5a1567('0x0')),md5=require(_0x5a1567('0x14')),util=require('util'),intUtil=require('./util'),logger=require(_0x5a1567('0xb'))(_0x5a1567('0x46')),{getSocket}=require(_0x5a1567('0x5b')),io=getSocket();function emit(_0x5d93d7,_0x13cf33,_0x5c85d3){const _0x4327ba=_0x5a1567;io['to'](_0x5d93d7)[_0x4327ba('0x44')](_0x13cf33,_0x5c85d3);}const headers={'Content-Type':'application/json','Accept':_0x5a1567('0x7')};function getTicket(_0x396989,_0x35d5d8,_0x35d14c,_0x4eb970,_0x57de1f){const _0x11b0e6=_0x5a1567;return logger[_0x11b0e6('0x38')]('Creating\x20new\x20ticket...'),request({'uri':util['format']('%s/tickets.json',_0x396989[_0x11b0e6('0x1f')]),'method':_0x11b0e6('0x3f'),'body':{'ticket':_[_0x11b0e6('0x3d')]({'requester_id':_0x35d14c['id'],'submitter_id':_0x35d5d8?_0x35d5d8['id']:undefined,'assignee_id':_0x35d5d8?_0x35d5d8['id']:undefined,'tags':getTags(_0x4eb970['Tags'],_0x11b0e6('0x68')),'subject':intUtil[_0x11b0e6('0x2a')](_0x4eb970[_0x11b0e6('0x33')],_0x57de1f,'\x20'),'description':intUtil[_0x11b0e6('0x2a')](_0x4eb970[_0x11b0e6('0x16')],_0x57de1f,'\x0a'),'comment':{'public':![],'body':intUtil['getString'](_0x4eb970[_0x11b0e6('0x16')],_0x57de1f,'\x0a')}},getCustomFields(_0x4eb970[_0x11b0e6('0x53')],_0x57de1f))}})[_0x11b0e6('0x20')](function(_0x12a120){const _0x2bbb5b=_0x11b0e6;return logger[_0x2bbb5b('0x38')]('Ticket\x20created!'),_0x12a120[_0x2bbb5b('0x4d')];});}function getUser(_0x18c83,_0x218ca3){const _0x2ed728=_0x5a1567;return intUtil[_0x2ed728('0x64')](_0x218ca3)?(logger[_0x2ed728('0x38')](_0x2ed728('0x4c'),_0x218ca3),request({'uri':util[_0x2ed728('0x59')](_0x2ed728('0x15'),_0x18c83[_0x2ed728('0x1f')]),'qs':{'query':util['format'](_0x2ed728('0x67'),_0x218ca3)}})[_0x2ed728('0x20')](function(_0x573ca6){const _0x114ec2=_0x2ed728;return _0x573ca6[_0x114ec2('0x42')]?(logger['info']('Agent\x20found!'),_[_0x114ec2('0x3e')](_0x573ca6['results'],{'email':_0x218ca3,'role':_0x114ec2('0x4f')})):(logger[_0x114ec2('0x38')](_0x114ec2('0x34')),request({'uri':util[_0x114ec2('0x59')](_0x114ec2('0x28'),_0x18c83[_0x114ec2('0x1f')])})[_0x114ec2('0x20')](function(_0x30cd89){const _0x53be38=_0x114ec2;return logger['info'](_0x53be38('0x1c')),_0x30cd89[_0x53be38('0x2e')];}));})):(logger['info'](_0x2ed728('0x34')),request({'uri':util[_0x2ed728('0x59')](_0x2ed728('0x28'),_0x18c83[_0x2ed728('0x1f')])})[_0x2ed728('0x20')](function(_0x5a75c0){const _0x32ff46=_0x2ed728;return logger[_0x32ff46('0x38')](_0x32ff46('0x1c')),_0x5a75c0['user'];}));}function getEndUser(_0x1a6bcd,_0x4f3145,_0x4c7431){const _0x268d01=_0x5a1567;return logger[_0x268d01('0x38')](_0x268d01('0x45'),_0x4c7431),request({'uri':util[_0x268d01('0x59')]('%s/search.json',_0x1a6bcd[_0x268d01('0x1f')]),'qs':{'query':util[_0x268d01('0x59')](_0x268d01('0x2b'),_0x4c7431)}})[_0x268d01('0x20')](function(_0x255105){const _0x34f7fd=_0x268d01;let _0x3da2ed;return _0x255105['results'][_0x34f7fd('0x2c')]&&(_0x255105[_0x34f7fd('0x1')]=_[_0x34f7fd('0x2')](_0x255105['results'],{'suspended':![],'role':_0x34f7fd('0x69')}),_0x255105[_0x34f7fd('0x1')][_0x34f7fd('0x2c')]&&(_0x3da2ed=_['first'](_0x255105[_0x34f7fd('0x1')]))),_0x3da2ed?(logger[_0x34f7fd('0x38')](_0x34f7fd('0x9')),_0x3da2ed):(logger[_0x34f7fd('0x38')](_0x34f7fd('0x21')),request({'uri':util['format'](_0x34f7fd('0x23'),_0x1a6bcd[_0x34f7fd('0x1f')]),'method':'POST','body':{'user':{'role':_0x34f7fd('0x69'),'name':util[_0x34f7fd('0x59')]('Caller\x20-\x20%s',_0x4f3145||_0x4c7431),'phone':_0x4c7431}}})['then'](function(_0x35f105){const _0x33d595=_0x34f7fd;return logger['info'](_0x33d595('0x58')),_0x35f105[_0x33d595('0x2e')];}));});}function getAuth(_0x478916){const _0x278c0f=_0x5a1567;let _0x5d96be;if(_0x478916[_0x278c0f('0x3b')]===_0x278c0f('0x2f'))_0x5d96be=util[_0x278c0f('0x59')]('%s:%s',_0x478916[_0x278c0f('0x49')],_0x478916[_0x278c0f('0x2f')]);else _0x478916[_0x278c0f('0x3b')]===_0x278c0f('0xa')&&(_0x5d96be=util[_0x278c0f('0x59')]('%s/token:%s',_0x478916[_0x278c0f('0x49')],_0x478916[_0x278c0f('0xa')]));return util[_0x278c0f('0x59')](_0x278c0f('0x22'),Buffer[_0x278c0f('0x1b')](_0x5d96be)['toString'](_0x278c0f('0x24')));}function request(_0x2e6959){const _0x1c662e=_0x5a1567;return logger[_0x1c662e('0x57')]('[HTTP]',JSON[_0x1c662e('0x3a')](_0x2e6959)),rp(_[_0x1c662e('0x41')](_0x2e6959,{'method':'GET','headers':headers,'json':!![]}));}function getTags(_0x28d99b,_0x533dec){const _0x517a29=_0x5a1567;let _0x210528=[];return _0x28d99b&&_0x28d99b[_0x517a29('0x2c')]>0x0&&(_0x210528=_[_0x517a29('0x63')](_0x28d99b,_0x533dec)),_0x210528;}function getCustomFields(_0x2ef72a,_0x514c77){const _0x3cfc49=_0x5a1567,_0x4382e5={'custom_fields':[]};return _0x2ef72a[_0x3cfc49('0x2c')]>0x0&&_[_0x3cfc49('0x4e')](_0x2ef72a,function(_0x234cb6){const _0x26fb27=_0x3cfc49;if(_0x234cb6[_0x26fb27('0x56')]==='string'&&_0x234cb6[_0x26fb27('0x31')]&&!_0x234cb6[_0x26fb27('0x36')])_0x4382e5[_0x234cb6[_0x26fb27('0x31')][_0x26fb27('0x27')]()]=_0x234cb6['content'][_0x26fb27('0x6')]();else{if(_0x234cb6['type']===_0x26fb27('0x40')&&_0x234cb6['idField']&&_0x234cb6[_0x26fb27('0x36')])_0x4382e5['custom_fields'][_0x26fb27('0xf')]({'id':_0x234cb6[_0x26fb27('0x1a')],'value':_0x234cb6[_0x26fb27('0x13')][_0x26fb27('0x6')]()});else{if(_0x234cb6['type']===_0x26fb27('0x39')&&_0x234cb6[_0x26fb27('0x3')]&&_0x234cb6['idField']&&_0x234cb6[_0x26fb27('0x36')])_0x514c77[_0x234cb6[_0x26fb27('0x3')]]&&_0x4382e5[_0x26fb27('0x4')][_0x26fb27('0xf')]({'id':_0x234cb6[_0x26fb27('0x1a')],'value':_0x514c77[_0x234cb6['variableName']]['toString']()});else _0x234cb6[_0x26fb27('0x56')]===_0x26fb27('0x4a')&&_0x234cb6['Variable']&&_0x234cb6['Variable']['name']&&_0x234cb6[_0x26fb27('0x1a')]&&_0x234cb6[_0x26fb27('0x36')]&&(_0x514c77[_0x234cb6['Variable'][_0x26fb27('0x68')][_0x26fb27('0x27')]()]&&_0x4382e5['custom_fields'][_0x26fb27('0xf')]({'id':_0x234cb6[_0x26fb27('0x1a')],'value':_0x514c77[_0x234cb6[_0x26fb27('0x61')]['name'][_0x26fb27('0x27')]()][_0x26fb27('0x6')]()}));}}}),_0x4382e5;}exports[_0x5a1567('0x62')]=function(_0x52d913,_0x4543c1,_0x1b0e25,_0xfa9449,_0x750991,_0x4ca685){const _0x45f831=_0x5a1567;let _0x1bf263,_0x35403e;return _0x4ca685[_0x45f831('0x1f')]=intUtil['stripTrailingSlash'](_0x4ca685['remoteUri']),_0x4ca685[_0x45f831('0x30')]=intUtil['stripTrailingSlash'](_0x4ca685['serverUrl']),_0x750991&&_0x750991[_0x45f831('0x11')]?(logger['info']('[QUEUE]',_0x45f831('0xd')),_0x4543c1[_0x45f831('0x52')]=util[_0x45f831('0x59')](_0x45f831('0x5c'),_0x4ca685['serverUrl'],_0x4543c1[_0x45f831('0x12')],md5(_0x4543c1[_0x45f831('0x12')]))):_0x4543c1[_0x45f831('0x52')]='',headers[_0x45f831('0x29')]=getAuth(_0x4ca685),getUser(_0x4ca685,_0xfa9449[_0x45f831('0x50')])[_0x45f831('0x20')](function(_0x482ee9){const _0x18dd08=_0x45f831;return _0x1bf263=_0x482ee9,logger[_0x18dd08('0x38')](_0x18dd08('0x65'),_0x1bf263['id']),getEndUser(_0x4ca685,_0x4543c1[_0x18dd08('0x19')],_0x4543c1[_0x18dd08('0x43')]);})[_0x45f831('0x20')](function(_0x5905a1){const _0x21bd27=_0x45f831;return _0x35403e=_0x5905a1,logger[_0x21bd27('0x38')](_0x21bd27('0x8'),_0x35403e['id']),getTicket(_0x4ca685,_0x1bf263,_0x35403e,_0x1b0e25,_0x4543c1);})[_0x45f831('0x20')](function(_0x5827b3){const _0x2f8012=_0x45f831;if(_0x5827b3){logger[_0x2f8012('0x38')](_0x2f8012('0x55'),_0x5827b3['id']);switch(_0x4ca685[_0x2f8012('0x56')]){case'integrationTab':logger[_0x2f8012('0x38')]('[QUEUE]',_0x2f8012('0x37'));return request({'uri':util[_0x2f8012('0x59')](_0x2f8012('0x47'),_0x4ca685[_0x2f8012('0x1f')],_0x1bf263['id'],_0x5827b3['id']),'method':'POST'});case _0x2f8012('0x3c'):logger[_0x2f8012('0x38')](_0x2f8012('0xe'),_0x2f8012('0x1e')),emit(util[_0x2f8012('0x59')](_0x2f8012('0x26'),_0xfa9449['name']),_0x2f8012('0x48'),{'uri':util[_0x2f8012('0x59')](_0x2f8012('0x4b'),_0x4ca685[_0x2f8012('0x1f')][_0x2f8012('0x54')](_0x2f8012('0x1d')),_0x5827b3['id'])});break;default:logger[_0x2f8012('0x5d')](_0x2f8012('0xe'),_0x2f8012('0x35'));}}})[_0x45f831('0x5a')](function(_0xa65042){const _0x9eee6d=_0x45f831;logger[_0x9eee6d('0x5d')](_0x9eee6d('0x60'),util[_0x9eee6d('0x51')](_0xa65042,{'showHidden':!![],'depth':null}));});},exports['outbound']=function(_0x2dfa67,_0x544be4,_0x287f42,_0x365a02,_0x481b27,_0x1d84dd,_0x4bdb82){const _0x13b809=_0x5a1567;let _0x4dcbbe,_0x167c8d;return _0x1d84dd[_0x13b809('0x1f')]=intUtil[_0x13b809('0xc')](_0x1d84dd[_0x13b809('0x1f')]),_0x1d84dd['serverUrl']=intUtil[_0x13b809('0xc')](_0x1d84dd[_0x13b809('0x30')]),_0x4bdb82&&_0x4bdb82[_0x13b809('0x66')]&&_0x4bdb82[_0x13b809('0x66')]!==_0x13b809('0x17')&&(logger[_0x13b809('0x38')](_0x13b809('0x32'),_0x13b809('0xd')),_0x544be4[_0x13b809('0x52')]=util['format'](_0x13b809('0x5c'),_0x1d84dd[_0x13b809('0x30')],_0x544be4[_0x13b809('0x12')],md5(_0x544be4['uniqueid']))),headers[_0x13b809('0x29')]=getAuth(_0x1d84dd),getUser(_0x1d84dd,_0x365a02[_0x13b809('0x50')])[_0x13b809('0x20')](function(_0x26eeab){const _0x189054=_0x13b809;return _0x4dcbbe=_0x26eeab,logger[_0x189054('0x38')](_0x189054('0x65'),_0x4dcbbe['id']),getEndUser(_0x1d84dd,_0x544be4[_0x189054('0x10')],_0x544be4[_0x189054('0x5e')]);})['then'](function(_0x269f01){const _0x16e3b2=_0x13b809;return _0x167c8d=_0x269f01,logger[_0x16e3b2('0x38')](_0x16e3b2('0x8'),_0x167c8d['id']),getTicket(_0x1d84dd,_0x4dcbbe,_0x167c8d,_0x287f42,_0x544be4);})[_0x13b809('0x20')](function(_0x2984d7){const _0x1a7fe0=_0x13b809;if(_0x2984d7){logger[_0x1a7fe0('0x38')](_0x1a7fe0('0x55'),_0x2984d7['id']);switch(_0x1d84dd[_0x1a7fe0('0x56')]){case _0x1a7fe0('0x25'):logger['info'](_0x1a7fe0('0x32'),_0x1a7fe0('0x37'));return request({'uri':util[_0x1a7fe0('0x59')](_0x1a7fe0('0x47'),_0x1d84dd[_0x1a7fe0('0x1f')],_0x4dcbbe['id'],_0x2984d7['id']),'method':_0x1a7fe0('0x3f')});case _0x1a7fe0('0x3c'):logger[_0x1a7fe0('0x38')](_0x1a7fe0('0x32'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x1a7fe0('0x59')](_0x1a7fe0('0x26'),_0x365a02['name']),_0x1a7fe0('0x48'),{'uri':util[_0x1a7fe0('0x59')](_0x1a7fe0('0x4b'),_0x1d84dd[_0x1a7fe0('0x1f')][_0x1a7fe0('0x54')](_0x1a7fe0('0x1d')),_0x2984d7['id'])});break;default:logger['error']('[OUTBOUND]',_0x1a7fe0('0x35'));}}})[_0x13b809('0x5a')](function(_0x119014){const _0x4fce2d=_0x13b809;logger[_0x4fce2d('0x5d')](_0x4fce2d('0x2d'),util[_0x4fce2d('0x51')](_0x119014,{'showHidden':!![],'depth':null}));});},exports['unmanaged']=function(_0x57381a,_0x4d5f35,_0x3116ab,_0x206b1f,_0x4d3d15,_0x220f6e){const _0x1f9078=_0x5a1567;let _0x4d6bc8,_0x9748e7;return _0x220f6e[_0x1f9078('0x1f')]=intUtil['stripTrailingSlash'](_0x220f6e[_0x1f9078('0x1f')]),_0x220f6e['serverUrl']=intUtil['stripTrailingSlash'](_0x220f6e[_0x1f9078('0x30')]),_0x4d3d15&&_0x4d3d15['monitor_format']?(logger[_0x1f9078('0x38')]('['+_0x4d5f35[_0x1f9078('0x5')][_0x1f9078('0x18')]()+']','Recording\x20is\x20enabled!'),_0x4d5f35[_0x1f9078('0x52')]=util['format']('%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s',_0x220f6e[_0x1f9078('0x30')],_0x4d5f35[_0x1f9078('0x12')],md5(_0x4d5f35[_0x1f9078('0x12')]))):_0x4d5f35[_0x1f9078('0x52')]='',headers[_0x1f9078('0x29')]=getAuth(_0x220f6e),getUser(_0x220f6e)[_0x1f9078('0x20')](function(_0x14147c){const _0x542968=_0x1f9078;return _0x4d6bc8=_0x14147c,logger[_0x542968('0x38')](_0x542968('0x65'),_0x4d6bc8['id']),getEndUser(_0x220f6e,_0x4d5f35['calleridname'],_0x4d5f35[_0x542968('0x43')]);})[_0x1f9078('0x20')](function(_0x560ce5){const _0x2d0cde=_0x1f9078;return _0x9748e7=_0x560ce5,logger[_0x2d0cde('0x38')](_0x2d0cde('0x8'),_0x9748e7['id']),getTicket(_0x220f6e,_0x4d6bc8,_0x9748e7,_0x3116ab,_0x4d5f35);})[_0x1f9078('0x20')](function(_0x733452){const _0x275b13=_0x1f9078;_0x733452&&logger[_0x275b13('0x38')](_0x275b13('0x55'),_0x733452['id']);})[_0x1f9078('0x5a')](function(_0x156b91){const _0x566bdb=_0x1f9078;logger[_0x566bdb('0x5d')]('['+_0x4d5f35[_0x566bdb('0x5')][_0x566bdb('0x18')]()+']'+_0x566bdb('0x5f'),util[_0x566bdb('0x51')](_0x156b91,{'showHidden':!![],'depth':null}));});}; \ No newline at end of file +const a1146_0x4f7e=['merge','[OUTBOUND]','end-user','recordingURL','Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...','custom_fields','catch','Subjects','outbound','monitor_format','The\x20User\x20ID\x20is:','type','results','then','../../../../rediscache','trigger:browser:url','Variable','info','destcalleridnum','%s/channels/voice/agents/%d/tickets/%d/display.json','./util','error','customVariable','username','first','defaults','Descriptions','Agent\x20not\x20found,\x20using\x20the\x20admin\x20account!','string','toUpperCase','%s/agent/tickets/%s','emit','application/json','Tags','[QUEUE]','Basic\x20%s','uniqueid','md5','idField','replace','forEach','recordingFormat','toLowerCase','ticket','remoteUri','stripTrailingSlash','debug','validateEmail','serverUrl','filter','content','newTab','%s/api/voice/recordings/%s/downloads?type=uniqueid&token=%s','lastevent','nameField','getString','Admin\x20account\x20selected.','zendesk','type:user\x20role:agent\x20email:%s','Zendesk\x20account\x20type\x20not\x20recognized','Fields','integrationTab','user','map','length','Recording\x20is\x20enabled!','count','toString','Getting\x20agent\x20with\x20email','none','Enduser\x20found!','calleridnum','%s/users.json','user:%s','name','format','Searching\x20enduser\x20with\x20phone','%s:%s','queue','inspect','%s/users/me.json','request-promise-native','lodash','from','GET','The\x20Enduser\x20ID\x20is:','variable','token','Displaying\x20ticket\x20to\x20agent...','push','stringify','variableName','Authorization','%s/search.json','calleridname','email','type:user\x20role:end-user\x20phone:%s','find','Agent\x20found!','password','unmanaged','[OUTBOUND]\x20Error\x20running\x20Zendesk\x20integration','customField','[QUEUE]\x20Error\x20running\x20Zendesk\x20integration','POST','Creating\x20new\x20ticket...','The\x20Ticket\x20ID\x20is:'];(function(_0x15d4ea,_0x4f7e12){const _0x5015f7=function(_0x4a3f64){while(--_0x4a3f64){_0x15d4ea['push'](_0x15d4ea['shift']());}};_0x5015f7(++_0x4f7e12);}(a1146_0x4f7e,0x173));const a1146_0x5015=function(_0x15d4ea,_0x4f7e12){_0x15d4ea=_0x15d4ea-0x0;let _0x5015f7=a1146_0x4f7e[_0x15d4ea];return _0x5015f7;};const _0x21a174=a1146_0x5015;'use strict';const _=require(_0x21a174('0x20')),rp=require(_0x21a174('0x1f')),md5=require(_0x21a174('0x5e')),util=require('util'),intUtil=require(_0x21a174('0x4d')),logger=require('../../../../config/logger')(_0x21a174('0x7')),{getSocket}=require(_0x21a174('0x47')),io=getSocket();function emit(_0x4a3f64,_0x3fde7a,_0x36242e){const _0x1ea217=_0x21a174;io['to'](_0x4a3f64)[_0x1ea217('0x58')](_0x3fde7a,_0x36242e);}const headers={'Content-Type':_0x21a174('0x59'),'Accept':_0x21a174('0x59')};function getTicket(_0x2da3ba,_0x334e95,_0x305663,_0x26c744,_0x3f5e34){const _0xd74786=_0x21a174;return logger[_0xd74786('0x4a')](_0xd74786('0x37')),request({'uri':util[_0xd74786('0x19')]('%s/tickets.json',_0x2da3ba[_0xd74786('0x65')]),'method':_0xd74786('0x36'),'body':{'ticket':_[_0xd74786('0x39')]({'requester_id':_0x305663['id'],'submitter_id':_0x334e95?_0x334e95['id']:undefined,'assignee_id':_0x334e95?_0x334e95['id']:undefined,'tags':getTags(_0x26c744[_0xd74786('0x5a')],_0xd74786('0x18')),'subject':intUtil[_0xd74786('0x5')](_0x26c744[_0xd74786('0x40')],_0x3f5e34,'\x20'),'description':intUtil['getString'](_0x26c744[_0xd74786('0x53')],_0x3f5e34,'\x0a'),'comment':{'public':![],'body':intUtil[_0xd74786('0x5')](_0x26c744[_0xd74786('0x53')],_0x3f5e34,'\x0a')}},getCustomFields(_0x26c744[_0xd74786('0xa')],_0x3f5e34))}})[_0xd74786('0x46')](function(_0x116c4e){const _0x3127e7=_0xd74786;return logger[_0x3127e7('0x4a')]('Ticket\x20created!'),_0x116c4e[_0x3127e7('0x64')];});}function getUser(_0x4f1b0e,_0x2f8ced){const _0x5dac77=_0x21a174;return intUtil[_0x5dac77('0x68')](_0x2f8ced)?(logger[_0x5dac77('0x4a')](_0x5dac77('0x12'),_0x2f8ced),request({'uri':util[_0x5dac77('0x19')](_0x5dac77('0x2b'),_0x4f1b0e['remoteUri']),'qs':{'query':util[_0x5dac77('0x19')](_0x5dac77('0x8'),_0x2f8ced)}})[_0x5dac77('0x46')](function(_0x3ad972){const _0x46f872=_0x5dac77;return _0x3ad972[_0x46f872('0x10')]?(logger['info'](_0x46f872('0x30')),_[_0x46f872('0x2f')](_0x3ad972['results'],{'email':_0x2f8ced,'role':'agent'})):(logger[_0x46f872('0x4a')](_0x46f872('0x54')),request({'uri':util['format'](_0x46f872('0x1e'),_0x4f1b0e[_0x46f872('0x65')])})['then'](function(_0xedcb94){const _0x4eb546=_0x46f872;return logger[_0x4eb546('0x4a')](_0x4eb546('0x6')),_0xedcb94[_0x4eb546('0xc')];}));})):(logger[_0x5dac77('0x4a')](_0x5dac77('0x54')),request({'uri':util[_0x5dac77('0x19')]('%s/users/me.json',_0x4f1b0e[_0x5dac77('0x65')])})[_0x5dac77('0x46')](function(_0x1fc60e){const _0x57a3dd=_0x5dac77;return logger[_0x57a3dd('0x4a')](_0x57a3dd('0x6')),_0x1fc60e[_0x57a3dd('0xc')];}));}function getEndUser(_0x57197f,_0x4a5df7,_0x5bd1a6){const _0xebe306=_0x21a174;return logger[_0xebe306('0x4a')](_0xebe306('0x1a'),_0x5bd1a6),request({'uri':util[_0xebe306('0x19')](_0xebe306('0x2b'),_0x57197f[_0xebe306('0x65')]),'qs':{'query':util[_0xebe306('0x19')](_0xebe306('0x2e'),_0x5bd1a6)}})[_0xebe306('0x46')](function(_0x5af4ec){const _0x2705f8=_0xebe306;let _0x28cc73;return _0x5af4ec['results'][_0x2705f8('0xe')]&&(_0x5af4ec[_0x2705f8('0x45')]=_[_0x2705f8('0x6a')](_0x5af4ec['results'],{'suspended':![],'role':_0x2705f8('0x3b')}),_0x5af4ec['results'][_0x2705f8('0xe')]&&(_0x28cc73=_[_0x2705f8('0x51')](_0x5af4ec[_0x2705f8('0x45')]))),_0x28cc73?(logger[_0x2705f8('0x4a')](_0x2705f8('0x14')),_0x28cc73):(logger[_0x2705f8('0x4a')]('Enduser\x20not\x20found,\x20creating\x20a\x20new\x20enduser!'),request({'uri':util[_0x2705f8('0x19')](_0x2705f8('0x16'),_0x57197f[_0x2705f8('0x65')]),'method':_0x2705f8('0x36'),'body':{'user':{'role':_0x2705f8('0x3b'),'name':util[_0x2705f8('0x19')]('Caller\x20-\x20%s',_0x4a5df7||_0x5bd1a6),'phone':_0x5bd1a6}}})[_0x2705f8('0x46')](function(_0x487a17){const _0x307035=_0x2705f8;return logger['info']('Enduser\x20created.'),_0x487a17[_0x307035('0xc')];}));});}function getAuth(_0x14ce24){const _0x4423e5=_0x21a174;let _0x14ced8;if(_0x14ce24['authType']===_0x4423e5('0x31'))_0x14ced8=util[_0x4423e5('0x19')](_0x4423e5('0x1b'),_0x14ce24[_0x4423e5('0x50')],_0x14ce24[_0x4423e5('0x31')]);else _0x14ce24['authType']===_0x4423e5('0x25')&&(_0x14ced8=util['format']('%s/token:%s',_0x14ce24[_0x4423e5('0x50')],_0x14ce24[_0x4423e5('0x25')]));return util[_0x4423e5('0x19')](_0x4423e5('0x5c'),Buffer[_0x4423e5('0x21')](_0x14ced8)[_0x4423e5('0x11')]('base64'));}function request(_0x28b597){const _0x251b6b=_0x21a174;return logger[_0x251b6b('0x67')]('[HTTP]',JSON[_0x251b6b('0x28')](_0x28b597)),rp(_[_0x251b6b('0x52')](_0x28b597,{'method':_0x251b6b('0x22'),'headers':headers,'json':!![]}));}function getTags(_0x32ee47,_0x285ea2){const _0x5cd110=_0x21a174;let _0x401f35=[];return _0x32ee47&&_0x32ee47['length']>0x0&&(_0x401f35=_[_0x5cd110('0xd')](_0x32ee47,_0x285ea2)),_0x401f35;}function getCustomFields(_0x4c2a2e,_0x22999d){const _0x1b561c=_0x21a174,_0x8fc567={'custom_fields':[]};return _0x4c2a2e[_0x1b561c('0xe')]>0x0&&_[_0x1b561c('0x61')](_0x4c2a2e,function(_0x3e8433){const _0x412a85=_0x1b561c;if(_0x3e8433[_0x412a85('0x44')]==='string'&&_0x3e8433[_0x412a85('0x4')]&&!_0x3e8433[_0x412a85('0x34')])_0x8fc567[_0x3e8433[_0x412a85('0x4')]['toLowerCase']()]=_0x3e8433[_0x412a85('0x0')]['toString']();else{if(_0x3e8433['type']===_0x412a85('0x55')&&_0x3e8433['idField']&&_0x3e8433[_0x412a85('0x34')])_0x8fc567[_0x412a85('0x3e')][_0x412a85('0x27')]({'id':_0x3e8433[_0x412a85('0x5f')],'value':_0x3e8433[_0x412a85('0x0')][_0x412a85('0x11')]()});else{if(_0x3e8433[_0x412a85('0x44')]===_0x412a85('0x24')&&_0x3e8433[_0x412a85('0x29')]&&_0x3e8433[_0x412a85('0x5f')]&&_0x3e8433[_0x412a85('0x34')])_0x22999d[_0x3e8433[_0x412a85('0x29')]]&&_0x8fc567['custom_fields'][_0x412a85('0x27')]({'id':_0x3e8433['idField'],'value':_0x22999d[_0x3e8433['variableName']][_0x412a85('0x11')]()});else _0x3e8433[_0x412a85('0x44')]===_0x412a85('0x4f')&&_0x3e8433[_0x412a85('0x49')]&&_0x3e8433[_0x412a85('0x49')]['name']&&_0x3e8433['idField']&&_0x3e8433[_0x412a85('0x34')]&&(_0x22999d[_0x3e8433['Variable']['name'][_0x412a85('0x63')]()]&&_0x8fc567[_0x412a85('0x3e')][_0x412a85('0x27')]({'id':_0x3e8433[_0x412a85('0x5f')],'value':_0x22999d[_0x3e8433[_0x412a85('0x49')]['name'][_0x412a85('0x63')]()][_0x412a85('0x11')]()}));}}}),_0x8fc567;}exports[_0x21a174('0x1c')]=function(_0xbae2ab,_0x572556,_0x398a1c,_0x4ce780,_0x2e30a1,_0x41640c){const _0x118765=_0x21a174;let _0xa199e4,_0x3058ed;return _0x41640c[_0x118765('0x65')]=intUtil['stripTrailingSlash'](_0x41640c['remoteUri']),_0x41640c[_0x118765('0x69')]=intUtil[_0x118765('0x66')](_0x41640c[_0x118765('0x69')]),_0x2e30a1&&_0x2e30a1[_0x118765('0x42')]?(logger[_0x118765('0x4a')](_0x118765('0x5b'),_0x118765('0xf')),_0x572556[_0x118765('0x3c')]=util[_0x118765('0x19')](_0x118765('0x2'),_0x41640c['serverUrl'],_0x572556[_0x118765('0x5d')],md5(_0x572556[_0x118765('0x5d')]))):_0x572556['recordingURL']='',headers['Authorization']=getAuth(_0x41640c),getUser(_0x41640c,_0x4ce780[_0x118765('0x2d')])[_0x118765('0x46')](function(_0x349598){const _0x10de0c=_0x118765;return _0xa199e4=_0x349598,logger[_0x10de0c('0x4a')]('The\x20User\x20ID\x20is:',_0xa199e4['id']),getEndUser(_0x41640c,_0x572556[_0x10de0c('0x2c')],_0x572556[_0x10de0c('0x15')]);})['then'](function(_0x261b89){const _0x357470=_0x118765;return _0x3058ed=_0x261b89,logger[_0x357470('0x4a')]('The\x20Enduser\x20ID\x20is:',_0x3058ed['id']),getTicket(_0x41640c,_0xa199e4,_0x3058ed,_0x398a1c,_0x572556);})['then'](function(_0x3a1227){const _0x13daf5=_0x118765;if(_0x3a1227){logger[_0x13daf5('0x4a')](_0x13daf5('0x38'),_0x3a1227['id']);switch(_0x41640c[_0x13daf5('0x44')]){case _0x13daf5('0xb'):logger[_0x13daf5('0x4a')](_0x13daf5('0x5b'),'Displaying\x20ticket\x20to\x20agent...');return request({'uri':util[_0x13daf5('0x19')](_0x13daf5('0x4c'),_0x41640c[_0x13daf5('0x65')],_0xa199e4['id'],_0x3a1227['id']),'method':'POST'});case _0x13daf5('0x1'):logger[_0x13daf5('0x4a')](_0x13daf5('0x5b'),_0x13daf5('0x3d')),emit(util[_0x13daf5('0x19')](_0x13daf5('0x17'),_0x4ce780[_0x13daf5('0x18')]),'trigger:browser:url',{'uri':util['format'](_0x13daf5('0x57'),_0x41640c[_0x13daf5('0x65')][_0x13daf5('0x60')]('/api/v2'),_0x3a1227['id'])});break;default:logger[_0x13daf5('0x4e')](_0x13daf5('0x5b'),_0x13daf5('0x9'));}}})[_0x118765('0x3f')](function(_0x51dfc2){const _0x5060ff=_0x118765;logger[_0x5060ff('0x4e')](_0x5060ff('0x35'),util['inspect'](_0x51dfc2,{'showHidden':!![],'depth':null}));});},exports[_0x21a174('0x41')]=function(_0x638c44,_0x4f7b0a,_0x5b6cd9,_0x35393c,_0x31efcd,_0x427831,_0x2fadc6){const _0x432698=_0x21a174;let _0x2b5d00,_0x11911f;return _0x427831[_0x432698('0x65')]=intUtil[_0x432698('0x66')](_0x427831[_0x432698('0x65')]),_0x427831[_0x432698('0x69')]=intUtil[_0x432698('0x66')](_0x427831[_0x432698('0x69')]),_0x2fadc6&&_0x2fadc6['recordingFormat']&&_0x2fadc6[_0x432698('0x62')]!==_0x432698('0x13')&&(logger[_0x432698('0x4a')](_0x432698('0x3a'),'Recording\x20is\x20enabled!'),_0x4f7b0a[_0x432698('0x3c')]=util[_0x432698('0x19')](_0x432698('0x2'),_0x427831[_0x432698('0x69')],_0x4f7b0a['uniqueid'],md5(_0x4f7b0a[_0x432698('0x5d')]))),headers[_0x432698('0x2a')]=getAuth(_0x427831),getUser(_0x427831,_0x35393c[_0x432698('0x2d')])['then'](function(_0x43c297){const _0x55126c=_0x432698;return _0x2b5d00=_0x43c297,logger[_0x55126c('0x4a')]('The\x20User\x20ID\x20is:',_0x2b5d00['id']),getEndUser(_0x427831,_0x4f7b0a['destcalleridname'],_0x4f7b0a[_0x55126c('0x4b')]);})['then'](function(_0x1b1c9c){const _0x29d3b2=_0x432698;return _0x11911f=_0x1b1c9c,logger[_0x29d3b2('0x4a')](_0x29d3b2('0x23'),_0x11911f['id']),getTicket(_0x427831,_0x2b5d00,_0x11911f,_0x5b6cd9,_0x4f7b0a);})[_0x432698('0x46')](function(_0x4a16ef){const _0x271cfe=_0x432698;if(_0x4a16ef){logger[_0x271cfe('0x4a')](_0x271cfe('0x38'),_0x4a16ef['id']);switch(_0x427831['type']){case'integrationTab':logger[_0x271cfe('0x4a')](_0x271cfe('0x3a'),_0x271cfe('0x26'));return request({'uri':util[_0x271cfe('0x19')](_0x271cfe('0x4c'),_0x427831['remoteUri'],_0x2b5d00['id'],_0x4a16ef['id']),'method':_0x271cfe('0x36')});case'newTab':logger[_0x271cfe('0x4a')](_0x271cfe('0x3a'),'Displaying\x20ticket\x20to\x20agent\x20in\x20a\x20new\x20tab...'),emit(util[_0x271cfe('0x19')](_0x271cfe('0x17'),_0x35393c[_0x271cfe('0x18')]),_0x271cfe('0x48'),{'uri':util['format'](_0x271cfe('0x57'),_0x427831['remoteUri'][_0x271cfe('0x60')]('/api/v2'),_0x4a16ef['id'])});break;default:logger[_0x271cfe('0x4e')](_0x271cfe('0x3a'),'Zendesk\x20account\x20type\x20not\x20recognized');}}})[_0x432698('0x3f')](function(_0x495964){const _0x1040cb=_0x432698;logger['error'](_0x1040cb('0x33'),util[_0x1040cb('0x1d')](_0x495964,{'showHidden':!![],'depth':null}));});},exports[_0x21a174('0x32')]=function(_0x4dab4d,_0x91f8b4,_0x4a901d,_0x2cb284,_0x125249,_0x35ab47){const _0x19d9a5=_0x21a174;let _0x963ccc,_0x4a7aba;return _0x35ab47[_0x19d9a5('0x65')]=intUtil[_0x19d9a5('0x66')](_0x35ab47[_0x19d9a5('0x65')]),_0x35ab47['serverUrl']=intUtil['stripTrailingSlash'](_0x35ab47[_0x19d9a5('0x69')]),_0x125249&&_0x125249[_0x19d9a5('0x42')]?(logger[_0x19d9a5('0x4a')]('['+_0x91f8b4[_0x19d9a5('0x3')][_0x19d9a5('0x56')]()+']',_0x19d9a5('0xf')),_0x91f8b4[_0x19d9a5('0x3c')]=util[_0x19d9a5('0x19')](_0x19d9a5('0x2'),_0x35ab47[_0x19d9a5('0x69')],_0x91f8b4[_0x19d9a5('0x5d')],md5(_0x91f8b4[_0x19d9a5('0x5d')]))):_0x91f8b4['recordingURL']='',headers['Authorization']=getAuth(_0x35ab47),getUser(_0x35ab47)[_0x19d9a5('0x46')](function(_0x497913){const _0x59ba5e=_0x19d9a5;return _0x963ccc=_0x497913,logger[_0x59ba5e('0x4a')](_0x59ba5e('0x43'),_0x963ccc['id']),getEndUser(_0x35ab47,_0x91f8b4[_0x59ba5e('0x2c')],_0x91f8b4[_0x59ba5e('0x15')]);})['then'](function(_0x4c473e){const _0x16d094=_0x19d9a5;return _0x4a7aba=_0x4c473e,logger[_0x16d094('0x4a')](_0x16d094('0x23'),_0x4a7aba['id']),getTicket(_0x35ab47,_0x963ccc,_0x4a7aba,_0x4a901d,_0x91f8b4);})[_0x19d9a5('0x46')](function(_0x4b579d){const _0x9394e9=_0x19d9a5;_0x4b579d&&logger[_0x9394e9('0x4a')](_0x9394e9('0x38'),_0x4b579d['id']);})[_0x19d9a5('0x3f')](function(_0xea2a66){const _0x1d5cae=_0x19d9a5;logger[_0x1d5cae('0x4e')]('['+_0x91f8b4[_0x1d5cae('0x3')][_0x1d5cae('0x56')]()+']'+'\x20Error\x20running\x20Zendesk\x20integration',util[_0x1d5cae('0x1d')](_0xea2a66,{'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 ea67ce2..b5aec60 100644 --- a/server/services/ami/trigger/integration/zoho.js +++ b/server/services/ami/trigger/integration/zoho.js @@ -1 +1 @@ -const a1146_0x36bf=['Description','Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20','https://www.zohoapis.','Recording\x20is\x20enabled!','then','/crm/v2/Calls','Owner','endtime','rejected','details','Call_Start_Time','https://accounts.zoho.com.au','Search\x20user','recordingURL','findIndex','stringify','starttime','com','Call_Duration','seconds','last_name','/crm/EntityInfo.do?module=Calls&id=','user:%s','startCase','request-promise-native','isArrayLikeObject','Answered','[OUTBOUND]','destcalleridname','/oauth/v2/token','First_Name','Subject','uri','host','Contacts','isBefore','zoho','indexOf','Outbound','The\x20User\x20ID\x20is:','isNil','lastevent','variable','uniqueid','serverUrl','access_token','administrator','toString','stripTrailingSlash','zone','Rejected','$se_module','Zoho-oauthtoken\x20','The\x20failing\x20result\x20is','./util','getString','answertime','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','toUpperCase','talktime','email','user','enduserType','Failing\x20creating\x20the\x20access_token','/api/voice/recordings/','Leads','Called','users','stack','monitor_format','https://accounts.zoho.com.cn','moduleCreate','data','idField','profile','zoho.eu','info','ActiveUsers','YYYY-MM-DDTHH:mm:ss','[QUEUE]','first_name','CREATE\x20ERROR','trigger:browser:url','connect','calleridname','/crm/v2/Contacts/search?criteria=((Phone:equals:','error','Descriptions','forEach','GET','Using\x20the\x20admin\x20account!','/crm/v2/Leads/search?criteria=((Phone:equals:','recordingFormat','SUCCESS','Creating\x20new\x20call...','customVariable','lodash','Variable','https://crm.','/crm/v2/','err','name','The\x20Call\x20ID\x20is:','role','utc','util','/downloads?type=uniqueid&token=','Call_Result','Inbound','none','unmanaged','https://www.zohoapis.%s/crm/v2/users','diff','content','Full_Name','POST','mm:ss','type','outbound','refresh_token','catch','variableName','merge','emit','toLowerCase','Last_Name','format','lead','md5','log','Fields','abandoned','code','../../../../rediscache','called','What_Id','nothing','contact','add','contact_lead','Agent\x20found!','complete','https://accounts.zoho.eu','refreshToken','length','split','calleridnum'];(function(_0x1a0741,_0x36bf76){const _0x396c12=function(_0x184cdc){while(--_0x184cdc){_0x1a0741['push'](_0x1a0741['shift']());}};_0x396c12(++_0x36bf76);}(a1146_0x36bf,0x1b2));const a1146_0x396c=function(_0x1a0741,_0x36bf76){_0x1a0741=_0x1a0741-0x0;let _0x396c12=a1146_0x36bf[_0x1a0741];return _0x396c12;};const _0x39df7f=a1146_0x396c;'use strict';const _=require(_0x39df7f('0x67')),rp=require(_0x39df7f('0x1f')),md5=require(_0x39df7f('0x87')),util=require(_0x39df7f('0x70')),intUtil=require(_0x39df7f('0x3d')),moment=require('moment'),logger=require('../../../../config/logger')(_0x39df7f('0x2b')),{getSocket}=require(_0x39df7f('0x8c')),io=getSocket();function emit(_0x184cdc,_0x132ee0,_0x1c5a46){const _0x3f6038=_0x39df7f;io['to'](_0x184cdc)[_0x3f6038('0x82')](_0x132ee0,_0x1c5a46);}function request(_0x26fbad){return logger['debug']('[HTTP]',JSON['stringify'](_0x26fbad)),rp(_0x26fbad);}function getCustomFields(_0x43e337,_0xb36de3){const _0x9ff1e4=_0x39df7f,_0x4b622c={};return _0x43e337[_0x9ff1e4('0x4')]>0x0&&_[_0x9ff1e4('0x5f')](_0x43e337,function(_0x346daf){const _0x814f77=_0x9ff1e4;if(_0x346daf[_0x814f77('0x7c')]==='string'&&_0x346daf[_0x814f77('0x50')])_0x4b622c[_0x346daf['idField']]=_0x346daf[_0x814f77('0x78')][_0x814f77('0x36')]();else{if(_0x346daf[_0x814f77('0x7c')]===_0x814f77('0x31')&&_0x346daf[_0x814f77('0x80')]&&_0x346daf[_0x814f77('0x50')]&&_0xb36de3[_0x346daf[_0x814f77('0x80')]])_0x4b622c[_0x346daf[_0x814f77('0x50')]]=_0xb36de3[_0x346daf[_0x814f77('0x80')]][_0x814f77('0x36')]();else _0x346daf[_0x814f77('0x7c')]===_0x814f77('0x66')&&_0x346daf[_0x814f77('0x68')]&&_0x346daf[_0x814f77('0x68')][_0x814f77('0x6c')]&&_0x346daf['idField']&&_0xb36de3[_0x346daf[_0x814f77('0x68')][_0x814f77('0x6c')][_0x814f77('0x83')]()]&&(_0x4b622c[_0x346daf['idField']]=_0xb36de3[_0x346daf['Variable']['name'][_0x814f77('0x83')]()][_0x814f77('0x36')]());}}),_0x4b622c;}function getName(_0x5eaf88){const _0x5bc148=_0x39df7f;if(_0x5eaf88[_0x5bc148('0x2c')]('\x20')>0x0){const _0x3f31d9=_0x5eaf88[_0x5bc148('0x5')](/ (.+)/);if(_0x3f31d9[0x1])return _0x3f31d9;}return[_0x5eaf88,_0x5eaf88];}const accountsTokens={};function getAccessToken(_0x337f5f){return new Promise(function(_0x6b6272,_0x553acb){const _0x27ee1a=a1146_0x396c;!_['isNil'](accountsTokens[_0x337f5f['id']])&&!_['isNil'](accountsTokens[_0x337f5f['id']][_0x27ee1a('0x34')])&&(moment()[_0x27ee1a('0x2a')](accountsTokens[_0x337f5f['id']]['expires_in'])&&_0x6b6272(accountsTokens[_0x337f5f['id']][_0x27ee1a('0x34')]));let _0x39f8e8;switch(_0x337f5f[_0x27ee1a('0x38')]){case'US':_0x39f8e8='https://accounts.zoho.com';break;case'AU':_0x39f8e8=_0x27ee1a('0x12');break;case'EU':_0x39f8e8=_0x27ee1a('0x2');break;case'IN':_0x39f8e8='https://accounts.zoho.in';break;case'CN':_0x39f8e8=_0x27ee1a('0x4d');break;default:_0x39f8e8='https://accounts.zoho.eu';break;}const _0x3acfef={'method':'POST','uri':_0x39f8e8+_0x27ee1a('0x24'),'qs':{'refresh_token':_0x337f5f[_0x27ee1a('0x3')],'client_id':_0x337f5f['clientId'],'client_secret':_0x337f5f['clientSecret'],'grant_type':_0x27ee1a('0x7e')},'json':!![]};return rp(_0x3acfef)[_0x27ee1a('0xb')](function(_0x871cd1){const _0x2d9cc5=_0x27ee1a;accountsTokens[_0x337f5f['id']]={'access_token':_0x871cd1['access_token'],'expires_in':moment()[_0x2d9cc5('0x91')](_0x871cd1['expires_in'],_0x2d9cc5('0x1a'))},_0x6b6272(_0x871cd1[_0x2d9cc5('0x34')]);})[_0x27ee1a('0x7f')](function(_0x3971e1){const _0xf076e4=_0x27ee1a;logger[_0xf076e4('0x5d')](_0xf076e4('0x46'),_0x3971e1[_0xf076e4('0x4b')]),_0x553acb(_0x3971e1);});});}function getUser(_0x46db18,_0x59465c,_0xbfa497,_0x500ce0){const _0x248aa8=_0x39df7f;return logger[_0x248aa8('0x53')](_0x248aa8('0x13')),request({'method':_0x248aa8('0x60'),'uri':util[_0x248aa8('0x85')](_0x248aa8('0x76'),_0x59465c),'qs':{'type':_0x248aa8('0x54')},'headers':{'Authorization':_0x248aa8('0x3b')+_0x46db18},'json':!![]})['then'](function(_0x312f03){const _0x46e85f=_0x248aa8;if(_0x312f03[_0x46e85f('0x4a')]){let _0x58ec28=-0x1;if(_[_0x46e85f('0x20')](_0x312f03[_0x46e85f('0x4a')]))return!_[_0x46e85f('0x2f')](_0x500ce0)&&(_0x58ec28=_[_0x46e85f('0x15')](_0x312f03['users'],function(_0x45da95){return _0x45da95['email']===_0x500ce0;})),_0x58ec28>=0x0?logger[_0x46e85f('0x53')](_0x46e85f('0x0')):(logger[_0x46e85f('0x53')](_0x46e85f('0x61')),_0x58ec28=_['findIndex'](_0x312f03['users'],function(_0x3b128b){const _0xd307af=_0x46e85f;return _0x3b128b[_0xd307af('0x51')][_0xd307af('0x6c')]==='Administrator';})),_0x312f03[_0x46e85f('0x4a')][_0x58ec28];else{if(_0x312f03[_0x46e85f('0x44')][_0x46e85f('0x51')]['name']==='Administrator'){logger[_0x46e85f('0x53')]('Using\x20the\x20admin\x20account!');const _0x3af404=_0x312f03[_0x46e85f('0x44')];return _0x3af404;}else{logger[_0x46e85f('0x5d')]('The\x20failing\x20result\x20is',JSON[_0x46e85f('0x16')](_0x312f03));throw new Error(_0x46e85f('0x8')+JSON[_0x46e85f('0x16')](_0x312f03));}}}else{logger['error'](_0x46e85f('0x3c'),JSON[_0x46e85f('0x16')](_0x312f03));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON[_0x46e85f('0x16')](_0x312f03));}})['catch'](function(_0x2144d6){const _0x167378=_0x248aa8;console[_0x167378('0x5d')](_0x2144d6);});}function getZohoUser(_0x5ecfeb,_0x4da483){return new Promise(function(_0x280922,_0x1204f6){const _0x39afeb=a1146_0x396c;request(_0x5ecfeb)[_0x39afeb('0xb')](function(_0x4dcfbb){const _0x1be352=_0x39afeb;let _0x2a04de=null;_0x4dcfbb&&(_0x2a04de=_0x4dcfbb[_0x1be352('0x4f')][0x0],_0x2a04de[_0x1be352('0x45')]=_0x4da483),_0x280922(_0x2a04de);})[_0x39afeb('0x7f')](function(_0x3a0187){_0x1204f6(_0x3a0187);});});}function createEndUser(_0x43e073,_0x51e207,_0x3fbf8a,_0x5042ac,_0x2188f4,_0x329747){const _0x80ddd0=_0x39df7f;return _0x3fbf8a=getName(_0x3fbf8a),request({'method':'POST','uri':_0x80ddd0('0x9')+_0x51e207+_0x80ddd0('0x6a')+_[_0x80ddd0('0x1e')](_0x329747[_0x80ddd0('0x4e')])+'s','body':{'data':[{'Last_Name':_0x3fbf8a[0x1],'First_Name':_0x3fbf8a[0x0],'Phone':_0x5042ac,'Owner':{'name':!_[_0x80ddd0('0x2f')](_0x2188f4[_0x80ddd0('0x6e')][_0x80ddd0('0x6c')])?_0x2188f4[_0x80ddd0('0x6e')][_0x80ddd0('0x6c')]:!_['isNil'](_0x2188f4[_0x80ddd0('0x57')])?_0x2188f4['first_name']+'\x20'+_0x2188f4[_0x80ddd0('0x1b')]:_0x2188f4[_0x80ddd0('0x1b')],'id':_0x2188f4['id']}}]},'headers':{'Authorization':_0x80ddd0('0x3b')+_0x43e073},'json':!![]})['then'](function(_0xa007fd){const _0x314556=_0x80ddd0;if(_0xa007fd&&_0xa007fd['data'][0x0][_0x314556('0x8b')]===_0x314556('0x64')){const _0x39697e=_0xa007fd[_0x314556('0x4f')][0x0][_0x314556('0x10')];return _0x39697e['enduserType']=_[_0x314556('0x1e')](_0x329747[_0x314556('0x4e')])+'s',_0x39697e;}const _0x5e5e39=_0xa007fd[_0x314556('0x4f')];logger[_0x314556('0x5d')]('The\x20failing\x20result\x20is',JSON['stringify'](_0x5e5e39));throw new Error('Error:\x20'+JSON[_0x314556('0x16')](_0x5e5e39));})['catch'](function(_0x305b22){const _0x26536a=_0x80ddd0;console[_0x26536a('0x88')](_0x26536a('0x58'),_0x305b22);});}function getEndUser(_0x16f13f,_0x262e0a,_0x18203c,_0x9ae9df,_0x5e614d,_0x5e78c6,_0x192f01){const _0x844114=_0x39df7f,_0x5dfd30={'method':'GET','uri':'','headers':{'Authorization':_0x844114('0x3b')+_0x16f13f},'json':!![]};switch(_0x192f01['moduleSearch']){case _0x844114('0x92'):_0x5dfd30[_0x844114('0x27')]=_0x844114('0x9')+_0x262e0a+_0x844114('0x5c')+_0x5e614d+'))';return getZohoUser(_0x5dfd30,_0x844114('0x29'))['then'](function(_0xcbfebc){const _0x328690=_0x844114;if(_0xcbfebc)return _0xcbfebc;return _0x5dfd30['uri']='https://www.zohoapis.'+_0x262e0a+_0x328690('0x62')+_0x5e614d+'))',getZohoUser(_0x5dfd30,_0x328690('0x48'))[_0x328690('0xb')](function(_0xf0373b){const _0x4e92aa=_0x328690;if(_0xf0373b)return _0xf0373b;return _0x192f01[_0x4e92aa('0x4e')]!='nothing'?createEndUser(_0x16f13f,_0x262e0a,_0x9ae9df,_0x5e614d,_0x5e78c6,_0x192f01):{};});});case _0x844114('0x90'):_0x5dfd30['uri']=_0x844114('0x9')+_0x262e0a+_0x844114('0x5c')+_0x5e614d+'))';return getZohoUser(_0x5dfd30,'Contacts')[_0x844114('0xb')](function(_0x55477c){const _0x576622=_0x844114;if(_0x55477c)return _0x55477c;return _0x192f01['moduleCreate']!=_0x576622('0x8f')?createEndUser(_0x16f13f,_0x262e0a,_0x9ae9df,_0x5e614d,_0x5e78c6,_0x192f01):{};});case _0x844114('0x86'):_0x5dfd30[_0x844114('0x27')]=_0x844114('0x9')+_0x262e0a+_0x844114('0x62')+_0x5e614d+'))';return getZohoUser(_0x5dfd30,'Leads')[_0x844114('0xb')](function(_0x240ee4){const _0x271291=_0x844114;if(_0x240ee4)return _0x240ee4;return _0x192f01[_0x271291('0x4e')]!=_0x271291('0x8f')?createEndUser(_0x16f13f,_0x262e0a,_0x9ae9df,_0x5e614d,_0x5e78c6,_0x192f01):{};});}}function getCall(_0x187a10,_0x1eae46,_0x24839a,_0x2bd5d3,_0x219837,_0x24075f,_0xbbf99c,_0x3386f8){const _0x576479=_0x39df7f;logger[_0x576479('0x53')](_0x576479('0x65'));let _0x2b813b={};_0x2b813b[_0x576479('0xd')]={'name':!_['isNil'](_0x2bd5d3[_0x576479('0x6e')][_0x576479('0x6c')])&&!_['isNil'](_0x2bd5d3['profile'][_0x576479('0x6c')])&&_0x2bd5d3['profile'][_0x576479('0x6c')]===_0x576479('0x35')?_0x2bd5d3['role']['name']:!_[_0x576479('0x2f')](_0x2bd5d3[_0x576479('0x57')])?_0x2bd5d3[_0x576479('0x57')]+'\x20'+_0x2bd5d3['last_name']:_0x2bd5d3[_0x576479('0x1b')],'id':_0x2bd5d3['id']},_0x2b813b[_0x576479('0x26')]=intUtil[_0x576479('0x3e')](_0x24075f['Subjects'],_0xbbf99c,'\x20'),_0x2b813b[_0x576479('0x7')]=intUtil[_0x576479('0x3e')](_0x24075f[_0x576479('0x5e')],_0xbbf99c,'\x0a');_0x219837['enduserType']===_0x576479('0x29')&&(_0x2b813b['Who_Id']={'name':!_[_0x576479('0x2f')](_0x219837['Full_Name'])?_0x219837[_0x576479('0x79')]:!_['isNil'](_0x219837[_0x576479('0x25')])?_0x219837[_0x576479('0x25')]+'\x20'+_0x219837[_0x576479('0x84')]:_0x219837['Last_Name'],'id':_0x219837['id']});_0x219837[_0x576479('0x45')]===_0x576479('0x48')&&(_0x2b813b[_0x576479('0x8e')]={'name':!_[_0x576479('0x2f')](_0x219837[_0x576479('0x79')])?_0x219837['Full_Name']:!_[_0x576479('0x2f')](_0x219837[_0x576479('0x25')])?_0x219837[_0x576479('0x25')]+'\x20'+_0x219837[_0x576479('0x84')]:_0x219837[_0x576479('0x84')],'id':_0x219837['id']},_0x2b813b[_0x576479('0x3a')]=_['startCase'](_0x219837[_0x576479('0x45')]));if(_0xbbf99c['talktime'])_0x2b813b[_0x576479('0x19')]=moment['utc'](parseInt(_0xbbf99c[_0x576479('0x42')])*0x3e8)['format'](_0x576479('0x7b'));else _0xbbf99c[_0x576479('0x3f')]&&_0xbbf99c[_0x576479('0xe')]&&(_0x2b813b[_0x576479('0x19')]=moment[_0x576479('0x6f')](moment(_0xbbf99c[_0x576479('0xe')],_0x576479('0x55'))[_0x576479('0x77')](moment(_0xbbf99c[_0x576479('0x17')],'YYYY-MM-DDTHH:mm:ss')))[_0x576479('0x85')](_0x576479('0x7b')));switch(_0xbbf99c[_0x576479('0x30')]){case _0x576479('0x8d'):_0x2b813b[_0x576479('0x72')]=_0x576479('0x49');break;case _0x576479('0x1'):case _0x576479('0x5a'):_0x2b813b['Call_Result']=_0x576479('0x21');break;case _0x576479('0xf'):_0x2b813b[_0x576479('0x72')]=_0x576479('0x39');break;case _0x576479('0x8a'):_0x2b813b['Call_Result']='Abandoned';break;case'timeout':_0x2b813b[_0x576479('0x72')]='Timeout';break;default:break;}return _0x2b813b[_0x576479('0x11')]=(_0x3386f8===_0x576479('0x7d')?moment(_0xbbf99c[_0x576479('0x17')])[_0x576479('0x85')](_0x576479('0x55')):moment(_0xbbf99c['agentcalledAt'])[_0x576479('0x85')](_0x576479('0x55')))||moment()[_0x576479('0x85')](_0x576479('0x55')),_0x2b813b['Call_Type']=_0x3386f8||_0x576479('0x73'),_0x2b813b=_[_0x576479('0x81')](_0x2b813b,getCustomFields(_0x24075f[_0x576479('0x89')],_0xbbf99c)),request({'method':_0x576479('0x7a'),'uri':_0x576479('0x9')+_0x1eae46+_0x576479('0xc'),'headers':{'Authorization':_0x576479('0x3b')+_0x187a10},'body':{'data':[_0x2b813b]},'json':!![]})['then'](function(_0x170315){const _0xc18a4f=_0x576479;if(_0x170315&&_0x170315['data'][0x0][_0xc18a4f('0x8b')]===_0xc18a4f('0x64'))return logger[_0xc18a4f('0x53')]('Call\x20created!'),{'id':_0x170315[_0xc18a4f('0x4f')][0x0][_0xc18a4f('0x10')]['id']};})['catch'](function(_0x352427){const _0x2fafc1=_0x576479;logger['info'](_0x2fafc1('0x6b'),_0x352427['stack']),console[_0x2fafc1('0x88')](_0x2fafc1('0x6b'),_0x352427);});}exports['queue']=function(_0x98db6f,_0x317bf1,_0x3f46ad,_0x14d8b2,_0x1318cb,_0x330e57){const _0x561222=_0x39df7f;let _0x59de56,_0x522a02,_0x591b51;_0x330e57[_0x561222('0x28')]=intUtil[_0x561222('0x37')](_0x330e57['host']),_0x330e57[_0x561222('0x33')]=intUtil[_0x561222('0x37')](_0x330e57[_0x561222('0x33')]);_0x1318cb&&_0x1318cb[_0x561222('0x4c')]?(logger['info'](_0x561222('0x56'),_0x561222('0xa')),_0x317bf1[_0x561222('0x14')]=_0x330e57[_0x561222('0x33')]+'/api/voice/recordings/'+_0x317bf1[_0x561222('0x32')]+'/downloads?type=uniqueid&token='+md5(_0x317bf1[_0x561222('0x32')])):_0x317bf1[_0x561222('0x14')]='';const _0x5ddaa1=_0x330e57[_0x561222('0x28')]==='zoho.eu'?'eu':_0x561222('0x18');return getAccessToken(_0x330e57)[_0x561222('0xb')](function(_0xea7ae4){const _0x8cc1ab=_0x561222;return _0x591b51=_0xea7ae4,getUser(_0x591b51,_0x5ddaa1,_0x330e57,_0x14d8b2[_0x8cc1ab('0x43')]);})[_0x561222('0xb')](function(_0x4a1b98){const _0x4d322=_0x561222;return _0x59de56=_0x4a1b98,logger[_0x4d322('0x53')](_0x4d322('0x2e'),_0x59de56['id']),getEndUser(_0x591b51,_0x5ddaa1,_0x330e57,_0x317bf1[_0x4d322('0x5b')],_0x317bf1[_0x4d322('0x6')],_0x59de56,_0x3f46ad);})[_0x561222('0xb')](function(_0x5e7aea){const _0xc178f4=_0x561222;return _0x522a02=_0x5e7aea,getCall(_0x591b51,_0x5ddaa1,_0x330e57,_0x59de56,_0x522a02,_0x3f46ad,_0x317bf1,_0xc178f4('0x73'));})[_0x561222('0xb')](function(_0x14851e){const _0x52128a=_0x561222;_0x14851e&&(logger[_0x52128a('0x53')]('The\x20Call\x20ID\x20is:',_0x14851e['id']),logger[_0x52128a('0x53')](_0x52128a('0x56'),_0x52128a('0x40')),emit(util['format'](_0x52128a('0x1d'),_0x14d8b2[_0x52128a('0x6c')]),'trigger:browser:url',{'uri':_0x52128a('0x69')+_0x330e57[_0x52128a('0x28')]+_0x52128a('0x1c')+_0x14851e['id']}));})[_0x561222('0x7f')](function(_0x4bddc1){const _0x219e81=_0x561222;logger[_0x219e81('0x5d')](_0x219e81('0x56'),JSON[_0x219e81('0x16')](_0x4bddc1));});},exports[_0x39df7f('0x7d')]=function(_0x4d05ed,_0x577220,_0x3f84e8,_0x35391d,_0xe7c2a2,_0x476398,_0x47694b){const _0x391e23=_0x39df7f;let _0x533865,_0x1cb13f,_0xda2845;_0x476398[_0x391e23('0x28')]=intUtil[_0x391e23('0x37')](_0x476398[_0x391e23('0x28')]),_0x476398[_0x391e23('0x33')]=intUtil[_0x391e23('0x37')](_0x476398['serverUrl']);_0x47694b&&_0x47694b[_0x391e23('0x63')]&&_0x47694b[_0x391e23('0x63')]!==_0x391e23('0x74')&&(logger[_0x391e23('0x53')](_0x391e23('0x22'),_0x391e23('0xa')),_0x577220[_0x391e23('0x14')]=_0x476398[_0x391e23('0x33')]+_0x391e23('0x47')+_0x577220[_0x391e23('0x32')]+_0x391e23('0x71')+md5(_0x577220[_0x391e23('0x32')]));const _0x340329=_0x476398[_0x391e23('0x28')]==='zoho.eu'?'eu':_0x391e23('0x18');return getAccessToken(_0x476398)[_0x391e23('0xb')](function(_0x4a1dfa){const _0x414021=_0x391e23;return _0xda2845=_0x4a1dfa,getUser(_0xda2845,_0x340329,_0x476398,_0x35391d[_0x414021('0x43')]);})['then'](function(_0x3675a2){const _0x11677b=_0x391e23;return _0x533865=_0x3675a2,logger[_0x11677b('0x53')](_0x11677b('0x2e'),_0x533865['id']),getEndUser(_0xda2845,_0x340329,_0x476398,_0x577220[_0x11677b('0x23')],_0x577220['destcalleridnum'],_0x533865,_0x3f84e8);})[_0x391e23('0xb')](function(_0x180e37){const _0x3aad4e=_0x391e23;return _0x1cb13f=_0x180e37,getCall(_0xda2845,_0x340329,_0x476398,_0x533865,_0x1cb13f,_0x3f84e8,_0x577220,_0x3aad4e('0x2d'));})[_0x391e23('0xb')](function(_0x15f2ba){const _0x242e92=_0x391e23;_0x15f2ba&&(logger[_0x242e92('0x53')]('The\x20Call\x20ID\x20is:',_0x15f2ba['id']),logger[_0x242e92('0x53')](_0x242e92('0x22'),_0x242e92('0x40')),emit(util[_0x242e92('0x85')]('user:%s',_0x35391d[_0x242e92('0x6c')]),_0x242e92('0x59'),{'uri':_0x242e92('0x69')+_0x476398[_0x242e92('0x28')]+'/crm/EntityInfo.do?module=Calls&id='+_0x15f2ba['id']}));})[_0x391e23('0x7f')](function(_0x5dad93){logger['error']('[OUTBOUND]',JSON['stringify'](_0x5dad93));});},exports[_0x39df7f('0x75')]=function(_0x5afe04,_0x2abd1e,_0x53ce9f,_0x300483,_0x2f9948,_0x1a7083){const _0x182dc6=_0x39df7f;let _0x26a7be,_0x177ea2,_0x3496b3;_0x1a7083['host']=intUtil[_0x182dc6('0x37')](_0x1a7083[_0x182dc6('0x28')]),_0x1a7083[_0x182dc6('0x33')]=intUtil[_0x182dc6('0x37')](_0x1a7083[_0x182dc6('0x33')]);_0x2f9948&&_0x2f9948[_0x182dc6('0x4c')]?(logger[_0x182dc6('0x53')]('['+_0x2abd1e[_0x182dc6('0x30')]['toUpperCase']()+']',_0x182dc6('0xa')),_0x2abd1e['recordingURL']=_0x1a7083[_0x182dc6('0x33')]+_0x182dc6('0x47')+_0x2abd1e[_0x182dc6('0x32')]+'/downloads?type=uniqueid&token='+md5(_0x2abd1e[_0x182dc6('0x32')])):_0x2abd1e[_0x182dc6('0x14')]='';const _0x365deb=_0x1a7083['host']===_0x182dc6('0x52')?'eu':_0x182dc6('0x18');return getAccessToken(_0x1a7083)[_0x182dc6('0xb')](function(_0x4f53d9){return _0x3496b3=_0x4f53d9,getUser(_0x3496b3,_0x365deb,_0x1a7083);})[_0x182dc6('0xb')](function(_0x2236a8){const _0x5b5cf=_0x182dc6;return _0x26a7be=_0x2236a8,logger['info']('The\x20User\x20ID\x20is:',_0x26a7be['id']),getEndUser(_0x3496b3,_0x365deb,_0x1a7083,_0x2abd1e[_0x5b5cf('0x5b')],_0x2abd1e[_0x5b5cf('0x6')],_0x26a7be,_0x53ce9f);})['then'](function(_0x69b0b1){const _0x31576b=_0x182dc6;return _0x177ea2=_0x69b0b1,getCall(_0x3496b3,_0x365deb,_0x1a7083,_0x26a7be,_0x177ea2,_0x53ce9f,_0x2abd1e,_0x31576b('0x73'));})[_0x182dc6('0xb')](function(_0x5a20cc){const _0x33b15d=_0x182dc6;_0x5a20cc&&logger[_0x33b15d('0x53')](_0x33b15d('0x6d'),_0x5a20cc['id']);})[_0x182dc6('0x7f')](function(_0xd20ee9){const _0xb646b9=_0x182dc6;logger['error']('['+_0x2abd1e['lastevent'][_0xb646b9('0x41')]()+']',JSON['stringify'](_0xd20ee9));});}; \ No newline at end of file +const a1147_0x501d=['refresh_token','The\x20failing\x20result\x20is','stack','zoho','type','talktime','SUCCESS','First_Name','https://www.zohoapis.%s/crm/v2/users','starttime','isNil','/crm/v2/Leads/search?criteria=((Phone:equals:','forEach','https://accounts.zoho.in','./util','https://www.zohoapis.','string','timeout','toLowerCase','Full_Name','err','last_name','Leads','Displaying\x20call\x20to\x20agent\x20in\x20a\x20new\x20tab...','com','Error:\x20','mm:ss','idField','host','Using\x20the\x20admin\x20account!','debug','The\x20Call\x20ID\x20is:','calleridnum','GET','Abandoned','/crm/v2/Calls','Contacts','moduleCreate','diff','error','Call_Duration','called','endtime','https://accounts.zoho.com','zoho.eu','contact','administrator','destcalleridnum','destcalleridname','name','Recording\x20is\x20enabled!','Inbound','Rejected','util','/crm/EntityInfo.do?module=Calls&id=','connect','$se_module','role','unmanaged','user:%s','[OUTBOUND]','Timeout','access_token','recordingURL','Variable','ActiveUsers','Zoho-oauthtoken\x20','Administrator','uri','Failing\x20creating\x20the\x20access_token','/crm/v2/Contacts/search?criteria=((Phone:equals:','users','utc','Description','catch','Call\x20created!','findIndex','info','Who_Id','seconds','calleridname','variableName','Creating\x20new\x20call...','/downloads?type=uniqueid&token=','https://accounts.zoho.eu','then','nothing','outbound','abandoned','toString','[QUEUE]','The\x20User\x20ID\x20is:','moment','add','lastevent','lead','first_name','format','toUpperCase','answertime','startCase','Answered','Call_Result','clientId','Outbound','email','log','agentcalledAt','enduserType','Fields','data','trigger:browser:url','Agent\x20found!','[HTTP]','Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20','queue','monitor_format','recordingFormat','https://accounts.zoho.com.au','../../../../config/logger','split','none','stripTrailingSlash','zone','YYYY-MM-DDTHH:mm:ss','https://crm.','customVariable','/crm/v2/','lodash','stringify','rejected','emit','uniqueid','user','/api/voice/recordings/','Call_Type','code','serverUrl','profile','Owner','/oauth/v2/token','POST','Last_Name','getString'];(function(_0x54b368,_0x501d0e){const _0xfdc77e=function(_0x441a48){while(--_0x441a48){_0x54b368['push'](_0x54b368['shift']());}};_0xfdc77e(++_0x501d0e);}(a1147_0x501d,0xee));const a1147_0xfdc7=function(_0x54b368,_0x501d0e){_0x54b368=_0x54b368-0x0;let _0xfdc77e=a1147_0x501d[_0x54b368];return _0xfdc77e;};const _0x10adb1=a1147_0xfdc7;'use strict';const _=require(_0x10adb1('0x22')),rp=require('request-promise-native'),md5=require('md5'),util=require(_0x10adb1('0x67')),intUtil=require(_0x10adb1('0x40')),moment=require(_0x10adb1('0x8e')),logger=require(_0x10adb1('0x19'))(_0x10adb1('0x35')),{getSocket}=require('../../../../rediscache'),io=getSocket();function emit(_0x441a48,_0x851d88,_0x2d77bc){const _0x2c23e7=_0x10adb1;io['to'](_0x441a48)[_0x2c23e7('0x25')](_0x851d88,_0x2d77bc);}function request(_0xf0432c){const _0x4aed2c=_0x10adb1;return logger[_0x4aed2c('0x50')](_0x4aed2c('0x13'),JSON[_0x4aed2c('0x23')](_0xf0432c)),rp(_0xf0432c);}function getCustomFields(_0x2d2be4,_0x4433cb){const _0x6cedf0=_0x10adb1,_0x285bf6={};return _0x2d2be4['length']>0x0&&_[_0x6cedf0('0x3e')](_0x2d2be4,function(_0x48e349){const _0x25a625=_0x6cedf0;if(_0x48e349[_0x25a625('0x36')]===_0x25a625('0x42')&&_0x48e349[_0x25a625('0x4d')])_0x285bf6[_0x48e349[_0x25a625('0x4d')]]=_0x48e349['content'][_0x25a625('0x8b')]();else{if(_0x48e349['type']==='variable'&&_0x48e349['variableName']&&_0x48e349[_0x25a625('0x4d')]&&_0x4433cb[_0x48e349[_0x25a625('0x83')]])_0x285bf6[_0x48e349[_0x25a625('0x4d')]]=_0x4433cb[_0x48e349[_0x25a625('0x83')]][_0x25a625('0x8b')]();else _0x48e349[_0x25a625('0x36')]===_0x25a625('0x20')&&_0x48e349[_0x25a625('0x72')]&&_0x48e349[_0x25a625('0x72')][_0x25a625('0x63')]&&_0x48e349['idField']&&_0x4433cb[_0x48e349[_0x25a625('0x72')][_0x25a625('0x63')][_0x25a625('0x44')]()]&&(_0x285bf6[_0x48e349[_0x25a625('0x4d')]]=_0x4433cb[_0x48e349['Variable'][_0x25a625('0x63')][_0x25a625('0x44')]()][_0x25a625('0x8b')]());}}),_0x285bf6;}function getName(_0xfc83c8){const _0xf9745=_0x10adb1;if(_0xfc83c8['indexOf']('\x20')>0x0){const _0x338b37=_0xfc83c8[_0xf9745('0x1a')](/ (.+)/);if(_0x338b37[0x1])return _0x338b37;}return[_0xfc83c8,_0xfc83c8];}const accountsTokens={};function getAccessToken(_0x481361){return new Promise(function(_0x1e1fff,_0x4172b8){const _0x50270a=a1147_0xfdc7;!_['isNil'](accountsTokens[_0x481361['id']])&&!_[_0x50270a('0x3c')](accountsTokens[_0x481361['id']][_0x50270a('0x70')])&&(moment()['isBefore'](accountsTokens[_0x481361['id']]['expires_in'])&&_0x1e1fff(accountsTokens[_0x481361['id']][_0x50270a('0x70')]));let _0x3e46eb;switch(_0x481361[_0x50270a('0x1d')]){case'US':_0x3e46eb=_0x50270a('0x5d');break;case'AU':_0x3e46eb=_0x50270a('0x18');break;case'EU':_0x3e46eb=_0x50270a('0x86');break;case'IN':_0x3e46eb=_0x50270a('0x3f');break;case'CN':_0x3e46eb='https://accounts.zoho.com.cn';break;default:_0x3e46eb=_0x50270a('0x86');break;}const _0x3c1cfd={'method':'POST','uri':_0x3e46eb+_0x50270a('0x2e'),'qs':{'refresh_token':_0x481361['refreshToken'],'client_id':_0x481361[_0x50270a('0x9')],'client_secret':_0x481361['clientSecret'],'grant_type':_0x50270a('0x32')},'json':!![]};return rp(_0x3c1cfd)[_0x50270a('0x87')](function(_0x3b6568){const _0x45a38a=_0x50270a;accountsTokens[_0x481361['id']]={'access_token':_0x3b6568['access_token'],'expires_in':moment()[_0x45a38a('0x8f')](_0x3b6568['expires_in'],_0x45a38a('0x81'))},_0x1e1fff(_0x3b6568[_0x45a38a('0x70')]);})[_0x50270a('0x7c')](function(_0x36e855){const _0x216938=_0x50270a;logger['error'](_0x216938('0x77'),_0x36e855[_0x216938('0x34')]),_0x4172b8(_0x36e855);});});}function getUser(_0x24fe62,_0x5bc370,_0x5e2ad6,_0x51a868){const _0x3c078c=_0x10adb1;return logger['info']('Search\x20user'),request({'method':'GET','uri':util[_0x3c078c('0x3')](_0x3c078c('0x3a'),_0x5bc370),'qs':{'type':_0x3c078c('0x73')},'headers':{'Authorization':_0x3c078c('0x74')+_0x24fe62},'json':!![]})['then'](function(_0x1c1822){const _0x336a3d=_0x3c078c;if(_0x1c1822[_0x336a3d('0x79')]){let _0x25793f=-0x1;if(_['isArrayLikeObject'](_0x1c1822[_0x336a3d('0x79')]))return!_['isNil'](_0x51a868)&&(_0x25793f=_[_0x336a3d('0x7e')](_0x1c1822[_0x336a3d('0x79')],function(_0x3030ba){return _0x3030ba['email']===_0x51a868;})),_0x25793f>=0x0?logger['info'](_0x336a3d('0x12')):(logger['info'](_0x336a3d('0x4f')),_0x25793f=_[_0x336a3d('0x7e')](_0x1c1822[_0x336a3d('0x79')],function(_0x2eb177){const _0x56c3a1=_0x336a3d;return _0x2eb177[_0x56c3a1('0x2c')][_0x56c3a1('0x63')]===_0x56c3a1('0x75');})),_0x1c1822['users'][_0x25793f];else{if(_0x1c1822[_0x336a3d('0x27')]['profile'][_0x336a3d('0x63')]===_0x336a3d('0x75')){logger[_0x336a3d('0x7f')](_0x336a3d('0x4f'));const _0x291bd9=_0x1c1822[_0x336a3d('0x27')];return _0x291bd9;}else{logger[_0x336a3d('0x59')](_0x336a3d('0x33'),JSON[_0x336a3d('0x23')](_0x1c1822));throw new Error(_0x336a3d('0x14')+JSON['stringify'](_0x1c1822));}}}else{logger[_0x336a3d('0x59')](_0x336a3d('0x33'),JSON[_0x336a3d('0x23')](_0x1c1822));throw new Error('Unable\x20to\x20retrieve\x20zoho\x20account\x20users:\x20'+JSON[_0x336a3d('0x23')](_0x1c1822));}})[_0x3c078c('0x7c')](function(_0x481b13){const _0x29ef1b=_0x3c078c;console[_0x29ef1b('0x59')](_0x481b13);});}function getZohoUser(_0xda7aa7,_0x165cbc){return new Promise(function(_0x6a19f,_0x5d4b77){const _0x200dea=a1147_0xfdc7;request(_0xda7aa7)[_0x200dea('0x87')](function(_0x515103){const _0x43a32d=_0x200dea;let _0x501c03=null;_0x515103&&(_0x501c03=_0x515103[_0x43a32d('0x10')][0x0],_0x501c03[_0x43a32d('0xe')]=_0x165cbc),_0x6a19f(_0x501c03);})[_0x200dea('0x7c')](function(_0x736868){_0x5d4b77(_0x736868);});});}function createEndUser(_0x332861,_0x589be4,_0x2a2b3e,_0x2fc25e,_0x301f65,_0x9fc072){const _0x40b330=_0x10adb1;return _0x2a2b3e=getName(_0x2a2b3e),request({'method':_0x40b330('0x2f'),'uri':_0x40b330('0x41')+_0x589be4+_0x40b330('0x21')+_[_0x40b330('0x6')](_0x9fc072[_0x40b330('0x57')])+'s','body':{'data':[{'Last_Name':_0x2a2b3e[0x1],'First_Name':_0x2a2b3e[0x0],'Phone':_0x2fc25e,'Owner':{'name':!_[_0x40b330('0x3c')](_0x301f65['role'][_0x40b330('0x63')])?_0x301f65[_0x40b330('0x6b')]['name']:!_['isNil'](_0x301f65[_0x40b330('0x2')])?_0x301f65['first_name']+'\x20'+_0x301f65['last_name']:_0x301f65[_0x40b330('0x47')],'id':_0x301f65['id']}}]},'headers':{'Authorization':_0x40b330('0x74')+_0x332861},'json':!![]})[_0x40b330('0x87')](function(_0xc9c516){const _0x4f4946=_0x40b330;if(_0xc9c516&&_0xc9c516[_0x4f4946('0x10')][0x0][_0x4f4946('0x2a')]===_0x4f4946('0x38')){const _0x42408d=_0xc9c516[_0x4f4946('0x10')][0x0]['details'];return _0x42408d[_0x4f4946('0xe')]=_[_0x4f4946('0x6')](_0x9fc072['moduleCreate'])+'s',_0x42408d;}const _0x417729=_0xc9c516[_0x4f4946('0x10')];logger[_0x4f4946('0x59')](_0x4f4946('0x33'),JSON[_0x4f4946('0x23')](_0x417729));throw new Error(_0x4f4946('0x4b')+JSON[_0x4f4946('0x23')](_0x417729));})[_0x40b330('0x7c')](function(_0x324b4d){console['log']('CREATE\x20ERROR',_0x324b4d);});}function getEndUser(_0x23ebfb,_0x19ebf9,_0x288702,_0x261465,_0x435a33,_0x203824,_0x514412){const _0x98cf59=_0x10adb1,_0x16bcf4={'method':_0x98cf59('0x53'),'uri':'','headers':{'Authorization':_0x98cf59('0x74')+_0x23ebfb},'json':!![]};switch(_0x514412['moduleSearch']){case'contact_lead':_0x16bcf4[_0x98cf59('0x76')]='https://www.zohoapis.'+_0x19ebf9+_0x98cf59('0x78')+_0x435a33+'))';return getZohoUser(_0x16bcf4,'Contacts')['then'](function(_0x258d7f){const _0x410a50=_0x98cf59;if(_0x258d7f)return _0x258d7f;return _0x16bcf4[_0x410a50('0x76')]=_0x410a50('0x41')+_0x19ebf9+_0x410a50('0x3d')+_0x435a33+'))',getZohoUser(_0x16bcf4,_0x410a50('0x48'))['then'](function(_0x4e74bc){const _0x3f1aa0=_0x410a50;if(_0x4e74bc)return _0x4e74bc;return _0x514412[_0x3f1aa0('0x57')]!=_0x3f1aa0('0x88')?createEndUser(_0x23ebfb,_0x19ebf9,_0x261465,_0x435a33,_0x203824,_0x514412):{};});});case _0x98cf59('0x5f'):_0x16bcf4[_0x98cf59('0x76')]='https://www.zohoapis.'+_0x19ebf9+_0x98cf59('0x78')+_0x435a33+'))';return getZohoUser(_0x16bcf4,_0x98cf59('0x56'))[_0x98cf59('0x87')](function(_0xab1d8){const _0x12ff97=_0x98cf59;if(_0xab1d8)return _0xab1d8;return _0x514412['moduleCreate']!=_0x12ff97('0x88')?createEndUser(_0x23ebfb,_0x19ebf9,_0x261465,_0x435a33,_0x203824,_0x514412):{};});case _0x98cf59('0x1'):_0x16bcf4['uri']=_0x98cf59('0x41')+_0x19ebf9+_0x98cf59('0x3d')+_0x435a33+'))';return getZohoUser(_0x16bcf4,_0x98cf59('0x48'))[_0x98cf59('0x87')](function(_0x3f072a){const _0x45b13f=_0x98cf59;if(_0x3f072a)return _0x3f072a;return _0x514412[_0x45b13f('0x57')]!=_0x45b13f('0x88')?createEndUser(_0x23ebfb,_0x19ebf9,_0x261465,_0x435a33,_0x203824,_0x514412):{};});}}function getCall(_0xfab346,_0x9f0893,_0x2e63d9,_0x2e824c,_0x5f1d52,_0x2c0795,_0x26d0ac,_0x476d74){const _0x5013c2=_0x10adb1;logger['info'](_0x5013c2('0x84'));let _0x5f5de3={};_0x5f5de3[_0x5013c2('0x2d')]={'name':!_[_0x5013c2('0x3c')](_0x2e824c[_0x5013c2('0x6b')][_0x5013c2('0x63')])&&!_[_0x5013c2('0x3c')](_0x2e824c['profile'][_0x5013c2('0x63')])&&_0x2e824c[_0x5013c2('0x2c')][_0x5013c2('0x63')]===_0x5013c2('0x60')?_0x2e824c[_0x5013c2('0x6b')]['name']:!_[_0x5013c2('0x3c')](_0x2e824c[_0x5013c2('0x2')])?_0x2e824c[_0x5013c2('0x2')]+'\x20'+_0x2e824c['last_name']:_0x2e824c[_0x5013c2('0x47')],'id':_0x2e824c['id']},_0x5f5de3['Subject']=intUtil[_0x5013c2('0x31')](_0x2c0795['Subjects'],_0x26d0ac,'\x20'),_0x5f5de3[_0x5013c2('0x7b')]=intUtil[_0x5013c2('0x31')](_0x2c0795['Descriptions'],_0x26d0ac,'\x0a');_0x5f1d52[_0x5013c2('0xe')]===_0x5013c2('0x56')&&(_0x5f5de3[_0x5013c2('0x80')]={'name':!_[_0x5013c2('0x3c')](_0x5f1d52[_0x5013c2('0x45')])?_0x5f1d52[_0x5013c2('0x45')]:!_[_0x5013c2('0x3c')](_0x5f1d52[_0x5013c2('0x39')])?_0x5f1d52['First_Name']+'\x20'+_0x5f1d52['Last_Name']:_0x5f1d52[_0x5013c2('0x30')],'id':_0x5f1d52['id']});_0x5f1d52[_0x5013c2('0xe')]===_0x5013c2('0x48')&&(_0x5f5de3['What_Id']={'name':!_[_0x5013c2('0x3c')](_0x5f1d52['Full_Name'])?_0x5f1d52[_0x5013c2('0x45')]:!_[_0x5013c2('0x3c')](_0x5f1d52[_0x5013c2('0x39')])?_0x5f1d52[_0x5013c2('0x39')]+'\x20'+_0x5f1d52[_0x5013c2('0x30')]:_0x5f1d52[_0x5013c2('0x30')],'id':_0x5f1d52['id']},_0x5f5de3[_0x5013c2('0x6a')]=_[_0x5013c2('0x6')](_0x5f1d52[_0x5013c2('0xe')]));if(_0x26d0ac[_0x5013c2('0x37')])_0x5f5de3[_0x5013c2('0x5a')]=moment[_0x5013c2('0x7a')](parseInt(_0x26d0ac['talktime'])*0x3e8)[_0x5013c2('0x3')](_0x5013c2('0x4c'));else _0x26d0ac[_0x5013c2('0x5')]&&_0x26d0ac['endtime']&&(_0x5f5de3[_0x5013c2('0x5a')]=moment[_0x5013c2('0x7a')](moment(_0x26d0ac[_0x5013c2('0x5c')],_0x5013c2('0x1e'))[_0x5013c2('0x58')](moment(_0x26d0ac[_0x5013c2('0x3b')],_0x5013c2('0x1e'))))[_0x5013c2('0x3')](_0x5013c2('0x4c')));switch(_0x26d0ac[_0x5013c2('0x0')]){case _0x5013c2('0x5b'):_0x5f5de3['Call_Result']='Called';break;case'complete':case _0x5013c2('0x69'):_0x5f5de3[_0x5013c2('0x8')]=_0x5013c2('0x7');break;case _0x5013c2('0x24'):_0x5f5de3[_0x5013c2('0x8')]=_0x5013c2('0x66');break;case _0x5013c2('0x8a'):_0x5f5de3[_0x5013c2('0x8')]=_0x5013c2('0x54');break;case _0x5013c2('0x43'):_0x5f5de3['Call_Result']=_0x5013c2('0x6f');break;default:break;}return _0x5f5de3['Call_Start_Time']=(_0x476d74===_0x5013c2('0x89')?moment(_0x26d0ac['starttime'])[_0x5013c2('0x3')](_0x5013c2('0x1e')):moment(_0x26d0ac[_0x5013c2('0xd')])[_0x5013c2('0x3')](_0x5013c2('0x1e')))||moment()[_0x5013c2('0x3')](_0x5013c2('0x1e')),_0x5f5de3[_0x5013c2('0x29')]=_0x476d74||'Inbound',_0x5f5de3=_['merge'](_0x5f5de3,getCustomFields(_0x2c0795[_0x5013c2('0xf')],_0x26d0ac)),request({'method':_0x5013c2('0x2f'),'uri':_0x5013c2('0x41')+_0x9f0893+_0x5013c2('0x55'),'headers':{'Authorization':_0x5013c2('0x74')+_0xfab346},'body':{'data':[_0x5f5de3]},'json':!![]})[_0x5013c2('0x87')](function(_0x25b155){const _0x28d4ab=_0x5013c2;if(_0x25b155&&_0x25b155[_0x28d4ab('0x10')][0x0][_0x28d4ab('0x2a')]==='SUCCESS')return logger['info'](_0x28d4ab('0x7d')),{'id':_0x25b155[_0x28d4ab('0x10')][0x0]['details']['id']};})['catch'](function(_0x44a464){const _0x1695ae=_0x5013c2;logger[_0x1695ae('0x7f')](_0x1695ae('0x46'),_0x44a464[_0x1695ae('0x34')]),console[_0x1695ae('0xc')]('err',_0x44a464);});}exports[_0x10adb1('0x15')]=function(_0x15316f,_0x4ee2d8,_0x4da18c,_0x545c11,_0x186210,_0x54f0c5){const _0x6bfc98=_0x10adb1;let _0x4ac058,_0x50eccc,_0x397582;_0x54f0c5[_0x6bfc98('0x4e')]=intUtil[_0x6bfc98('0x1c')](_0x54f0c5['host']),_0x54f0c5[_0x6bfc98('0x2b')]=intUtil[_0x6bfc98('0x1c')](_0x54f0c5[_0x6bfc98('0x2b')]);_0x186210&&_0x186210[_0x6bfc98('0x16')]?(logger[_0x6bfc98('0x7f')](_0x6bfc98('0x8c'),'Recording\x20is\x20enabled!'),_0x4ee2d8[_0x6bfc98('0x71')]=_0x54f0c5[_0x6bfc98('0x2b')]+_0x6bfc98('0x28')+_0x4ee2d8[_0x6bfc98('0x26')]+'/downloads?type=uniqueid&token='+md5(_0x4ee2d8[_0x6bfc98('0x26')])):_0x4ee2d8[_0x6bfc98('0x71')]='';const _0x1a817d=_0x54f0c5[_0x6bfc98('0x4e')]==='zoho.eu'?'eu':'com';return getAccessToken(_0x54f0c5)['then'](function(_0x406a5e){const _0x155af4=_0x6bfc98;return _0x397582=_0x406a5e,getUser(_0x397582,_0x1a817d,_0x54f0c5,_0x545c11[_0x155af4('0xb')]);})[_0x6bfc98('0x87')](function(_0x4ccd1a){const _0x2e48f4=_0x6bfc98;return _0x4ac058=_0x4ccd1a,logger['info'](_0x2e48f4('0x8d'),_0x4ac058['id']),getEndUser(_0x397582,_0x1a817d,_0x54f0c5,_0x4ee2d8[_0x2e48f4('0x82')],_0x4ee2d8[_0x2e48f4('0x52')],_0x4ac058,_0x4da18c);})[_0x6bfc98('0x87')](function(_0x534d3b){const _0x284209=_0x6bfc98;return _0x50eccc=_0x534d3b,getCall(_0x397582,_0x1a817d,_0x54f0c5,_0x4ac058,_0x50eccc,_0x4da18c,_0x4ee2d8,_0x284209('0x65'));})[_0x6bfc98('0x87')](function(_0x4df9eb){const _0x2b8ebf=_0x6bfc98;_0x4df9eb&&(logger[_0x2b8ebf('0x7f')](_0x2b8ebf('0x51'),_0x4df9eb['id']),logger[_0x2b8ebf('0x7f')](_0x2b8ebf('0x8c'),_0x2b8ebf('0x49')),emit(util['format'](_0x2b8ebf('0x6d'),_0x545c11[_0x2b8ebf('0x63')]),'trigger:browser:url',{'uri':_0x2b8ebf('0x1f')+_0x54f0c5[_0x2b8ebf('0x4e')]+_0x2b8ebf('0x68')+_0x4df9eb['id']}));})[_0x6bfc98('0x7c')](function(_0xbbbb9f){const _0x35ee79=_0x6bfc98;logger[_0x35ee79('0x59')]('[QUEUE]',JSON[_0x35ee79('0x23')](_0xbbbb9f));});},exports[_0x10adb1('0x89')]=function(_0x5070a5,_0xbbcbae,_0x27b183,_0x25e6d4,_0x500c45,_0x41d923,_0x12f899){const _0x48781a=_0x10adb1;let _0x1ea168,_0x5eb9a4,_0x291921;_0x41d923[_0x48781a('0x4e')]=intUtil[_0x48781a('0x1c')](_0x41d923[_0x48781a('0x4e')]),_0x41d923['serverUrl']=intUtil[_0x48781a('0x1c')](_0x41d923['serverUrl']);_0x12f899&&_0x12f899[_0x48781a('0x17')]&&_0x12f899[_0x48781a('0x17')]!==_0x48781a('0x1b')&&(logger[_0x48781a('0x7f')](_0x48781a('0x6e'),_0x48781a('0x64')),_0xbbcbae[_0x48781a('0x71')]=_0x41d923['serverUrl']+_0x48781a('0x28')+_0xbbcbae['uniqueid']+'/downloads?type=uniqueid&token='+md5(_0xbbcbae[_0x48781a('0x26')]));const _0x216a40=_0x41d923[_0x48781a('0x4e')]===_0x48781a('0x5e')?'eu':_0x48781a('0x4a');return getAccessToken(_0x41d923)['then'](function(_0x1143d8){const _0x13380e=_0x48781a;return _0x291921=_0x1143d8,getUser(_0x291921,_0x216a40,_0x41d923,_0x25e6d4[_0x13380e('0xb')]);})[_0x48781a('0x87')](function(_0x5a2764){const _0x4f61cb=_0x48781a;return _0x1ea168=_0x5a2764,logger[_0x4f61cb('0x7f')](_0x4f61cb('0x8d'),_0x1ea168['id']),getEndUser(_0x291921,_0x216a40,_0x41d923,_0xbbcbae[_0x4f61cb('0x62')],_0xbbcbae[_0x4f61cb('0x61')],_0x1ea168,_0x27b183);})['then'](function(_0x2ac765){const _0x5525a5=_0x48781a;return _0x5eb9a4=_0x2ac765,getCall(_0x291921,_0x216a40,_0x41d923,_0x1ea168,_0x5eb9a4,_0x27b183,_0xbbcbae,_0x5525a5('0xa'));})[_0x48781a('0x87')](function(_0x5d665e){const _0x15a4a5=_0x48781a;_0x5d665e&&(logger[_0x15a4a5('0x7f')](_0x15a4a5('0x51'),_0x5d665e['id']),logger['info'](_0x15a4a5('0x6e'),_0x15a4a5('0x49')),emit(util[_0x15a4a5('0x3')](_0x15a4a5('0x6d'),_0x25e6d4[_0x15a4a5('0x63')]),_0x15a4a5('0x11'),{'uri':'https://crm.'+_0x41d923[_0x15a4a5('0x4e')]+'/crm/EntityInfo.do?module=Calls&id='+_0x5d665e['id']}));})[_0x48781a('0x7c')](function(_0x5eea10){const _0xe89f3=_0x48781a;logger[_0xe89f3('0x59')](_0xe89f3('0x6e'),JSON[_0xe89f3('0x23')](_0x5eea10));});},exports[_0x10adb1('0x6c')]=function(_0x13addc,_0x2a4ae5,_0x5c7a63,_0x4b4b4c,_0x66e2e3,_0x5eaa1f){const _0x3dc60a=_0x10adb1;let _0x173d42,_0x9fd398,_0x25c39a;_0x5eaa1f['host']=intUtil['stripTrailingSlash'](_0x5eaa1f[_0x3dc60a('0x4e')]),_0x5eaa1f[_0x3dc60a('0x2b')]=intUtil[_0x3dc60a('0x1c')](_0x5eaa1f[_0x3dc60a('0x2b')]);_0x66e2e3&&_0x66e2e3['monitor_format']?(logger[_0x3dc60a('0x7f')]('['+_0x2a4ae5[_0x3dc60a('0x0')][_0x3dc60a('0x4')]()+']',_0x3dc60a('0x64')),_0x2a4ae5['recordingURL']=_0x5eaa1f[_0x3dc60a('0x2b')]+'/api/voice/recordings/'+_0x2a4ae5['uniqueid']+_0x3dc60a('0x85')+md5(_0x2a4ae5[_0x3dc60a('0x26')])):_0x2a4ae5[_0x3dc60a('0x71')]='';const _0x64974a=_0x5eaa1f[_0x3dc60a('0x4e')]===_0x3dc60a('0x5e')?'eu':_0x3dc60a('0x4a');return getAccessToken(_0x5eaa1f)['then'](function(_0x5ed07a){return _0x25c39a=_0x5ed07a,getUser(_0x25c39a,_0x64974a,_0x5eaa1f);})[_0x3dc60a('0x87')](function(_0x1fff38){const _0x1da096=_0x3dc60a;return _0x173d42=_0x1fff38,logger[_0x1da096('0x7f')]('The\x20User\x20ID\x20is:',_0x173d42['id']),getEndUser(_0x25c39a,_0x64974a,_0x5eaa1f,_0x2a4ae5[_0x1da096('0x82')],_0x2a4ae5[_0x1da096('0x52')],_0x173d42,_0x5c7a63);})[_0x3dc60a('0x87')](function(_0x4c158f){const _0x408e22=_0x3dc60a;return _0x9fd398=_0x4c158f,getCall(_0x25c39a,_0x64974a,_0x5eaa1f,_0x173d42,_0x9fd398,_0x5c7a63,_0x2a4ae5,_0x408e22('0x65'));})['then'](function(_0x2274c2){const _0x593a3b=_0x3dc60a;_0x2274c2&&logger[_0x593a3b('0x7f')]('The\x20Call\x20ID\x20is:',_0x2274c2['id']);})['catch'](function(_0x225c0c){const _0x4de82d=_0x3dc60a;logger[_0x4de82d('0x59')]('['+_0x2a4ae5['lastevent'][_0x4de82d('0x4')]()+']',JSON['stringify'](_0x225c0c));});}; \ 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 132470d..96c45f3 100644 --- a/server/services/ami/trigger/script/index.js +++ b/server/services/ami/trigger/script/index.js @@ -1 +1 @@ -const a1147_0x7906=['Script','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','../../../../config/logger','render','data3','info','exec','data2','format','shelljs'];(function(_0x4f6060,_0x79063b){const _0xdadfd=function(_0x17895f){while(--_0x17895f){_0x4f6060['push'](_0x4f6060['shift']());}};_0xdadfd(++_0x79063b);}(a1147_0x7906,0x170));const a1147_0xdadf=function(_0x4f6060,_0x79063b){_0x4f6060=_0x4f6060-0x0;let _0xdadfd=a1147_0x7906[_0x4f6060];return _0xdadfd;};const _0x364621=a1147_0xdadf;'use strict';const util=require('util'),sh=require(_0x364621('0x1')),Mustache=require('mustache'),logger=require(_0x364621('0x4'))('trigger');exports[_0x364621('0x8')]=function(_0x17895f,_0x455343){const _0x34330b=_0x364621,_0x38cbe9=_0x17895f[_0x34330b('0x9')]?_0x17895f['data2']:_0x34330b('0x2'),_0x35ee6a=_0x17895f[_0x34330b('0x6')]?Mustache[_0x34330b('0x5')](_0x17895f[_0x34330b('0x6')],_0x455343):_0x455343;sh['exec'](_0x35ee6a,function(_0x4dc592,_0x15440a,_0x323ee3){const _0x3ef66=_0x34330b;_0x4dc592!==0x0?logger['error'](util[_0x3ef66('0x0')]('%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s',_0x38cbe9,_0x35ee6a,_0x4dc592,_0x323ee3)):logger[_0x3ef66('0x7')](util[_0x3ef66('0x0')](_0x3ef66('0x3'),_0x38cbe9,_0x35ee6a,_0x15440a));});}; \ No newline at end of file +const a1148_0x3487=['%s\x20\x27%s\x27\x20failed\x20with\x20code\x20%d\x20and\x20error:\x20%s','trigger','Script','info','mustache','exec','format','error','%s\x20\x27%s\x27\x20succeeded\x20with\x20output:\x20%s','render','data2','data3'];(function(_0x2f8098,_0x348727){const _0x5301ec=function(_0x1efdbb){while(--_0x1efdbb){_0x2f8098['push'](_0x2f8098['shift']());}};_0x5301ec(++_0x348727);}(a1148_0x3487,0x199));const a1148_0x5301=function(_0x2f8098,_0x348727){_0x2f8098=_0x2f8098-0x0;let _0x5301ec=a1148_0x3487[_0x2f8098];return _0x5301ec;};const _0x22897d=a1148_0x5301;'use strict';const util=require('util'),sh=require('shelljs'),Mustache=require(_0x22897d('0x3')),logger=require('../../../../config/logger')(_0x22897d('0x0'));exports['exec']=function(_0x1efdbb,_0x54ed4b){const _0x5ece8d=_0x22897d,_0xd774e0=_0x1efdbb[_0x5ece8d('0x9')]?_0x1efdbb[_0x5ece8d('0x9')]:_0x5ece8d('0x1'),_0x28455f=_0x1efdbb[_0x5ece8d('0xa')]?Mustache[_0x5ece8d('0x8')](_0x1efdbb['data3'],_0x54ed4b):_0x54ed4b;sh[_0x5ece8d('0x4')](_0x28455f,function(_0x4892b7,_0x4e4519,_0x594581){const _0x567554=_0x5ece8d;_0x4892b7!==0x0?logger[_0x567554('0x6')](util[_0x567554('0x5')](_0x567554('0xb'),_0xd774e0,_0x28455f,_0x4892b7,_0x594581)):logger[_0x567554('0x2')](util[_0x567554('0x5')](_0x567554('0x7'),_0xd774e0,_0x28455f,_0x4e4519));});}; \ 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 a6543f8..355151b 100644 --- a/server/services/ami/trigger/urlforward/index.js +++ b/server/services/ami/trigger/urlforward/index.js @@ -1 +1 @@ -const a1148_0x1f0a=['message','data7','then','isNil','body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format','error','POST','data1','data6',',\x20request\x20body:\x20','../../../../config/logger','stack','name','exec','%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','PUT','object','toUpperCase','data2','trigger','statusCode','body','info','%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s','number','format','parse','GET','headers','render','stringify','lodash','data5'];(function(_0x653635,_0x1f0aca){const _0x51517e=function(_0x3ca465){while(--_0x3ca465){_0x653635['push'](_0x653635['shift']());}};_0x51517e(++_0x1f0aca);}(a1148_0x1f0a,0x115));const a1148_0x5151=function(_0x653635,_0x1f0aca){_0x653635=_0x653635-0x0;let _0x51517e=a1148_0x1f0a[_0x653635];return _0x51517e;};const _0x409957=a1148_0x5151;'use strict';const rp=require('request-promise-native'),util=require('util'),_=require(_0x409957('0x12')),Mustache=require('mustache'),logger=require(_0x409957('0x1e'))(_0x409957('0x6'));exports[_0x409957('0x0')]=function(_0x3ca465,_0x14dea6){const _0x26e951=_0x409957;let _0x2d9b16,_0x3b2f30;const _0x37afb7={'method':_0x3ca465[_0x26e951('0x1b')][_0x26e951('0x4')](),'uri':Mustache['render'](_0x3ca465[_0x26e951('0x5')],_0x14dea6),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x3ca465[_0x26e951('0x13')])===_0x26e951('0xb')&&parseInt(_0x3ca465[_0x26e951('0x13')])>=0x1&&parseInt(_0x3ca465['data5'])<=0xa?parseInt(_0x3ca465[_0x26e951('0x13')])*0x3e8:0x5*0x3e8};try{_0x37afb7[_0x26e951('0xf')]=_0x3ca465[_0x26e951('0x1c')]?JSON[_0x26e951('0xd')](Mustache[_0x26e951('0x10')](_0x3ca465[_0x26e951('0x1c')],_0x14dea6)):{};}catch(_0x1ca844){logger['error'](_0x1ca844[_0x26e951('0x1f')]);}switch(_0x3ca465[_0x26e951('0x1b')][_0x26e951('0x4')]()){case _0x26e951('0xe'):case'DELETE':_0x2d9b16=null,_0x37afb7['qs']=_0x14dea6;break;case _0x26e951('0x1a'):case _0x26e951('0x2'):if(_0x3ca465['data7'])try{_0x2d9b16=JSON[_0x26e951('0xd')](Mustache[_0x26e951('0x10')](_0x3ca465[_0x26e951('0x15')],_0x14dea6)),_0x37afb7[_0x26e951('0x8')]=_0x2d9b16;}catch(_0x131ff3){logger[_0x26e951('0x19')](_0x131ff3[_0x26e951('0x1f')]),logger[_0x26e951('0x19')](_0x26e951('0x18'));}else _0x2d9b16=_0x14dea6,_0x37afb7[_0x26e951('0x8')]=_0x2d9b16;break;}logger[_0x26e951('0x9')](util[_0x26e951('0xc')](_0x26e951('0x1'),_0x3ca465[_0x26e951('0x1b')],_0x3ca465[_0x26e951('0x5')],JSON[_0x26e951('0x11')](_0x37afb7))),rp(_0x37afb7)[_0x26e951('0x16')](function(_0x300ac3){const _0x4b1ef9=_0x26e951;_0x2d9b16=!_[_0x4b1ef9('0x17')](_0x2d9b16)?_0x4b1ef9('0x1d')+_0x2d9b16:'',_0x3b2f30=typeof _0x300ac3[_0x4b1ef9('0x8')]===_0x4b1ef9('0x3')?JSON[_0x4b1ef9('0x11')](_0x300ac3[_0x4b1ef9('0x8')]):_0x300ac3[_0x4b1ef9('0x8')],logger[_0x4b1ef9('0x9')](util[_0x4b1ef9('0xc')](_0x4b1ef9('0xa'),_0x3ca465[_0x4b1ef9('0x1b')],_0x3ca465[_0x4b1ef9('0x5')],_0x300ac3[_0x4b1ef9('0x7')],_0x3b2f30));})['catch'](function(_0x117571){const _0x343355=_0x26e951;logger[_0x343355('0x19')](util[_0x343355('0xc')]('%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s',_0x3ca465['data1'],_0x3ca465[_0x343355('0x5')],_0x117571[_0x343355('0x7')],_0x117571[_0x343355('0x20')],_0x117571[_0x343355('0x14')]));});}; \ No newline at end of file +const a1149_0x5dd1=['format','render','../../../../config/logger','stringify','%s\x20%s\x20failed\x20with\x20status:\x20%d\x20and\x20error:\x20%s\x20%s','data1','trigger','data6','data2','util','error','mustache','info','body\x20has\x20been\x20passed\x20to\x20URLforward\x20in\x20a\x20wrong\x20format','object','statusCode','body','exec','%s\x20%s\x20sending\x20request\x20with\x20following\x20options:\x20%s','parse','then','PUT','toUpperCase','GET','number','data7','DELETE','data5','stack','headers'];(function(_0x3fce8b,_0x5dd1e5){const _0xe3e604=function(_0x40dfc9){while(--_0x40dfc9){_0x3fce8b['push'](_0x3fce8b['shift']());}};_0xe3e604(++_0x5dd1e5);}(a1149_0x5dd1,0x123));const a1149_0xe3e6=function(_0x3fce8b,_0x5dd1e5){_0x3fce8b=_0x3fce8b-0x0;let _0xe3e604=a1149_0x5dd1[_0x3fce8b];return _0xe3e604;};const _0x147654=a1149_0xe3e6;'use strict';const rp=require('request-promise-native'),util=require(_0x147654('0x12')),_=require('lodash'),Mustache=require(_0x147654('0x14')),logger=require(_0x147654('0xb'))(_0x147654('0xf'));exports[_0x147654('0x1a')]=function(_0x40dfc9,_0x3b041d){const _0x57183e=_0x147654;let _0x50d28c,_0x5e2f4f;const _0x1774d0={'method':_0x40dfc9['data1'][_0x57183e('0x1')](),'uri':Mustache[_0x57183e('0xa')](_0x40dfc9[_0x57183e('0x11')],_0x3b041d),'json':!![],'resolveWithFullResponse':!![],'timeout':typeof parseInt(_0x40dfc9[_0x57183e('0x6')])===_0x57183e('0x3')&&parseInt(_0x40dfc9['data5'])>=0x1&&parseInt(_0x40dfc9[_0x57183e('0x6')])<=0xa?parseInt(_0x40dfc9[_0x57183e('0x6')])*0x3e8:0x5*0x3e8};try{_0x1774d0[_0x57183e('0x8')]=_0x40dfc9[_0x57183e('0x10')]?JSON[_0x57183e('0x1c')](Mustache['render'](_0x40dfc9['data6'],_0x3b041d)):{};}catch(_0x1d1403){logger[_0x57183e('0x13')](_0x1d1403[_0x57183e('0x7')]);}switch(_0x40dfc9[_0x57183e('0xe')]['toUpperCase']()){case _0x57183e('0x2'):case _0x57183e('0x5'):_0x50d28c=null,_0x1774d0['qs']=_0x3b041d;break;case'POST':case _0x57183e('0x0'):if(_0x40dfc9[_0x57183e('0x4')])try{_0x50d28c=JSON[_0x57183e('0x1c')](Mustache[_0x57183e('0xa')](_0x40dfc9[_0x57183e('0x4')],_0x3b041d)),_0x1774d0['body']=_0x50d28c;}catch(_0x594203){logger['error'](_0x594203[_0x57183e('0x7')]),logger[_0x57183e('0x13')](_0x57183e('0x16'));}else _0x50d28c=_0x3b041d,_0x1774d0[_0x57183e('0x19')]=_0x50d28c;break;}logger[_0x57183e('0x15')](util[_0x57183e('0x9')](_0x57183e('0x1b'),_0x40dfc9['data1'],_0x40dfc9[_0x57183e('0x11')],JSON[_0x57183e('0xc')](_0x1774d0))),rp(_0x1774d0)[_0x57183e('0x1d')](function(_0x237429){const _0x18f833=_0x57183e;_0x50d28c=!_['isNil'](_0x50d28c)?',\x20request\x20body:\x20'+_0x50d28c:'',_0x5e2f4f=typeof _0x237429[_0x18f833('0x19')]===_0x18f833('0x17')?JSON[_0x18f833('0xc')](_0x237429[_0x18f833('0x19')]):_0x237429[_0x18f833('0x19')],logger[_0x18f833('0x15')](util['format']('%s\x20%s\x20succeeded\x20with\x20status:\x20%d\x20and\x20response:\x20%s',_0x40dfc9[_0x18f833('0xe')],_0x40dfc9['data2'],_0x237429['statusCode'],_0x5e2f4f));})['catch'](function(_0x23f887){const _0x10e979=_0x57183e;logger[_0x10e979('0x13')](util[_0x10e979('0x9')](_0x10e979('0xd'),_0x40dfc9[_0x10e979('0xe')],_0x40dfc9[_0x10e979('0x11')],_0x23f887[_0x10e979('0x18')],_0x23f887['name'],_0x23f887['message']));});}; \ No newline at end of file diff --git a/server/services/email/client.js b/server/services/email/client.js index 637e7b0..64da809 100644 --- a/server/services/email/client.js +++ b/server/services/email/client.js @@ -1 +1 @@ -const a1149_0x1eba=['request','http','catch','debug','message','exports','Request','client','error','routing','result','rpc'];(function(_0x2aae56,_0x1eba60){const _0x503ba2=function(_0x3e4d53){while(--_0x3e4d53){_0x2aae56['push'](_0x2aae56['shift']());}};_0x503ba2(++_0x1eba60);}(a1149_0x1eba,0xeb));const a1149_0x503b=function(_0x2aae56,_0x1eba60){_0x2aae56=_0x2aae56-0x0;let _0x503ba2=a1149_0x1eba[_0x2aae56];return _0x503ba2;};const _0x1c5319=a1149_0x503b;'use strict';const jayson=require('jayson/promise'),logger=require('../../config/logger')('routing'),client=jayson[_0x1c5319('0x0')][_0x1c5319('0x6')]({'port':0x2329});client[_0x1c5319('0xb')]=function(_0x3e4d53,_0xbbfd25){return new Promise(function(_0x17c78e,_0x544b32){const _0x4808f9=a1149_0x503b;return client[_0x4808f9('0x5')](_0x3e4d53,_0xbbfd25)['then'](function(_0x454db4){const _0x3754e1=_0x4808f9;return logger[_0x3754e1('0x8')]('rpc',_0x3754e1('0x2'),_0x3e4d53,_0xbbfd25,_0x454db4),_0x454db4['error']?(logger[_0x3754e1('0x1')](_0x3754e1('0x4'),'routing',_0x3e4d53,_0x454db4[_0x3754e1('0x1')][_0x3754e1('0x9')],_0xbbfd25),_0x544b32(_0x454db4[_0x3754e1('0x1')][_0x3754e1('0x9')])):_0x17c78e(_0x454db4[_0x3754e1('0x3')]);})[_0x4808f9('0x7')](function(_0x2c7c79){const _0x371b95=_0x4808f9;return logger[_0x371b95('0x1')]('rpc','routing',_0x3e4d53,_0x2c7c79,_0xbbfd25),_0x544b32(_0x2c7c79);});});},module[_0x1c5319('0xa')]=client; \ No newline at end of file +const a1150_0xc529=['error','http','then','../../config/logger','jayson/promise','result','debug','Request','routing','catch','message','client','rpc'];(function(_0x3d07e9,_0xc5295b){const _0x47b8c2=function(_0x1f82cd){while(--_0x1f82cd){_0x3d07e9['push'](_0x3d07e9['shift']());}};_0x47b8c2(++_0xc5295b);}(a1150_0xc529,0x19e));const a1150_0x47b8=function(_0x3d07e9,_0xc5295b){_0x3d07e9=_0x3d07e9-0x0;let _0x47b8c2=a1150_0xc529[_0x3d07e9];return _0x47b8c2;};const _0x4413a6=a1150_0x47b8;'use strict';const jayson=require(_0x4413a6('0x6')),logger=require(_0x4413a6('0x5'))(_0x4413a6('0xa')),client=jayson[_0x4413a6('0x0')][_0x4413a6('0x3')]({'port':0x2329});client[_0x4413a6('0x9')]=function(_0x1f82cd,_0x230613){return new Promise(function(_0x511438,_0x193dce){const _0x114c87=a1150_0x47b8;return client['request'](_0x1f82cd,_0x230613)[_0x114c87('0x4')](function(_0x5b3672){const _0x4faf00=_0x114c87;return logger[_0x4faf00('0x8')](_0x4faf00('0x1'),_0x4faf00('0xa'),_0x1f82cd,_0x230613,_0x5b3672),_0x5b3672['error']?(logger['error'](_0x4faf00('0x1'),_0x4faf00('0xa'),_0x1f82cd,_0x5b3672['error'][_0x4faf00('0xc')],_0x230613),_0x193dce(_0x5b3672['error'][_0x4faf00('0xc')])):_0x511438(_0x5b3672[_0x4faf00('0x7')]);})[_0x114c87('0xb')](function(_0x11fc7f){const _0x46e8c4=_0x114c87;return logger[_0x46e8c4('0x2')](_0x46e8c4('0x1'),_0x46e8c4('0xa'),_0x1f82cd,_0x11fc7f,_0x230613),_0x193dce(_0x11fc7f);});});},module['exports']=client; \ No newline at end of file diff --git a/server/services/email/index.js b/server/services/email/index.js index 93525db..6d1d1e6 100644 --- a/server/services/email/index.js +++ b/server/services/email/index.js @@ -1 +1 @@ -const a1150_0x4b63=['resolve','findOne','./rpc/mailAccount','refresh','Setting','./realtime','listen','../../mysqldb','then','../../globals','loginMailFrequency','initMailAccounts','catch','./server'];(function(_0x1d5531,_0x4b6359){const _0x5af92d=function(_0x135f4c){while(--_0x135f4c){_0x1d5531['push'](_0x1d5531['shift']());}};_0x5af92d(++_0x4b6359);}(a1150_0x4b63,0x1c3));const a1150_0x5af9=function(_0x1d5531,_0x4b6359){_0x1d5531=_0x1d5531-0x0;let _0x5af92d=a1150_0x4b63[_0x1d5531];return _0x5af92d;};const _0xe5e5fa=a1150_0x5af9;'use strict';require(_0xe5e5fa('0x6'));const server=require(_0xe5e5fa('0xa')),Realtime=require(_0xe5e5fa('0x2')),EmailChannel=require('./lib/email'),mailAccount=require(_0xe5e5fa('0xd')),realtime=new Realtime(),email=new EmailChannel(realtime),db=require(_0xe5e5fa('0x4'))['db'];function initRealtime(){const _0x57cb20=_0xe5e5fa;return Promise[_0x57cb20('0xb')]()['then'](mailAccount['getMailAccounts']())[_0x57cb20('0x5')](realtime[_0x57cb20('0x8')]())[_0x57cb20('0x5')](function(){const _0x25815b=_0x57cb20;return email[_0x25815b('0x0')](realtime['mailAccounts']),realtime;});}function main(){const _0x13ecaa=_0xe5e5fa;return server[_0x13ecaa('0x3')](realtime,email)['then'](function(){return initRealtime();})[_0x13ecaa('0x5')](function(){const _0x28fc4c=_0x13ecaa;return db[_0x28fc4c('0x1')][_0x28fc4c('0xc')]({'attributes':['id','loginMailFrequency'],'raw':!![]});})[_0x13ecaa('0x5')](function(_0x135f4c){const _0x300fac=_0x13ecaa;return setInterval(initRealtime,_0x135f4c[_0x300fac('0x7')]*0x3e8);})[_0x13ecaa('0x9')](function(_0x52d77a){console['log'](_0x52d77a);});}main(); \ No newline at end of file +const a1151_0x2b52=['initMailAccounts','../../globals','./lib/email','then','mailAccounts','log','loginMailFrequency','resolve','./realtime','./server','refresh','Setting','./rpc/mailAccount','../../mysqldb','listen'];(function(_0x3f69a7,_0x2b5261){const _0x34c0c2=function(_0x45657f){while(--_0x45657f){_0x3f69a7['push'](_0x3f69a7['shift']());}};_0x34c0c2(++_0x2b5261);}(a1151_0x2b52,0x114));const a1151_0x34c0=function(_0x3f69a7,_0x2b5261){_0x3f69a7=_0x3f69a7-0x0;let _0x34c0c2=a1151_0x2b52[_0x3f69a7];return _0x34c0c2;};const _0x1d33b1=a1151_0x34c0;'use strict';require(_0x1d33b1('0xa'));const server=require(_0x1d33b1('0x3')),Realtime=require(_0x1d33b1('0x2')),EmailChannel=require(_0x1d33b1('0xb')),mailAccount=require(_0x1d33b1('0x6')),realtime=new Realtime(),email=new EmailChannel(realtime),db=require(_0x1d33b1('0x7'))['db'];function initRealtime(){const _0x3ae4b9=_0x1d33b1;return Promise[_0x3ae4b9('0x1')]()[_0x3ae4b9('0xc')](mailAccount['getMailAccounts']())[_0x3ae4b9('0xc')](realtime[_0x3ae4b9('0x9')]())['then'](function(){const _0xb015e6=_0x3ae4b9;return email[_0xb015e6('0x4')](realtime[_0xb015e6('0xd')]),realtime;});}function main(){const _0x57c746=_0x1d33b1;return server[_0x57c746('0x8')](realtime,email)[_0x57c746('0xc')](function(){return initRealtime();})['then'](function(){const _0x1e1709=_0x57c746;return db[_0x1e1709('0x5')]['findOne']({'attributes':['id',_0x1e1709('0x0')],'raw':!![]});})[_0x57c746('0xc')](function(_0x45657f){const _0x3aba25=_0x57c746;return setInterval(initRealtime,_0x45657f[_0x3aba25('0x0')]*0x3e8);})['catch'](function(_0x4dd1dc){const _0x17ddb5=_0x57c746;console[_0x17ddb5('0xe')](_0x4dd1dc);});}main(); \ No newline at end of file diff --git a/server/services/email/lib/email.js b/server/services/email/lib/email.js index bfc7f02..78f0302 100644 --- a/server/services/email/lib/email.js +++ b/server/services/email/lib/email.js @@ -1 +1 @@ -const a1151_0x577c=['emit','./imap','end','prototype','md5','lastName','imapAccounts','email','isNil','status','firstName','total','messages','box','lodash','disabled','connected','bind','Smtp','lastSync','verifySmtp','handleImapEmail','start\x20email\x20channel','messageStatus','smtp','undefined','sendMail','catch','refresh','verified','handleImapError','Mail\x20not\x20accepted\x20from\x20routing\x20%s','handleImapBox','mailAccount:update','mailAccounts','active','../../../config/logger','Imap','verify','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','stringify','error','exports','send','handleImapEnd','from','info','then','moment'];(function(_0x252282,_0x577c23){const _0x3e5517=function(_0x1c1de0){while(--_0x1c1de0){_0x252282['push'](_0x252282['shift']());}};_0x3e5517(++_0x577c23);}(a1151_0x577c,0xd8));const a1151_0x3e55=function(_0x252282,_0x577c23){_0x252282=_0x252282-0x0;let _0x3e5517=a1151_0x577c[_0x252282];return _0x3e5517;};const _0x3f3ec6=a1151_0x3e55;'use strict';const _=require(_0x3f3ec6('0x2b')),moment=require(_0x3f3ec6('0x1c')),md5=require(_0x3f3ec6('0x21')),logger=require(_0x3f3ec6('0x10'))(_0x3f3ec6('0x24')),{getSocket}=require('../../../rediscache'),io=getSocket(),EmailImap=require(_0x3f3ec6('0x1e')),EmailSmtp=require('./smtp'),mailAccount=require('../rpc/mailAccount'),md5Accounts={};function EmailChannel(_0x1c1de0){const _0x53471e=_0x3f3ec6;logger[_0x53471e('0x1a')](_0x53471e('0x2')),this[_0x53471e('0xe')]=_0x1c1de0[_0x53471e('0xe')],this[_0x53471e('0x23')]={},this[_0x53471e('0x4')]=new EmailSmtp();}EmailChannel['prototype']['emit']=function(_0x298fa0){const _0x42adee=_0x3f3ec6,_0x144c7e=this['mailAccounts'][_0x298fa0],_0x55b840={'id':_0x144c7e['id'],'name':_0x144c7e['name'],'key':_0x144c7e['key'],'active':_0x144c7e[_0x42adee('0xf')],'Imap':{'status':_0x144c7e['Imap'][_0x42adee('0x26')],'messageStatus':_0x144c7e[_0x42adee('0x11')][_0x42adee('0x3')],'total':_0x144c7e[_0x42adee('0x11')][_0x42adee('0x28')]}};_[_0x42adee('0x25')](md5Accounts[_0x298fa0])&&(md5Accounts[_0x298fa0]={});const _0x2f4144=md5(JSON[_0x42adee('0x14')](_0x55b840));md5Accounts[_0x298fa0][_0x42adee('0x21')]!==_0x2f4144&&(md5Accounts[_0x298fa0][_0x42adee('0x21')]=_0x2f4144,io[_0x42adee('0x1d')](_0x42adee('0xd'),_0x55b840));},EmailChannel[_0x3f3ec6('0x20')][_0x3f3ec6('0x8')]=function(_0x5e3ffb){const _0x2a4f24=_0x3f3ec6;for(const _0x26ca02 in _0x5e3ffb){if(typeof _0x5e3ffb[_0x26ca02]!==_0x2a4f24('0x5')){if(_0x5e3ffb[_0x26ca02][_0x2a4f24('0x11')]&&_0x5e3ffb[_0x26ca02][_0x2a4f24('0xf')]){const _0x4379d2=_0x5e3ffb[_0x26ca02]['Imap'];typeof this[_0x2a4f24('0x23')][_0x4379d2['id']]===_0x2a4f24('0x5')&&(this[_0x2a4f24('0x23')][_0x4379d2['id']]=new EmailImap(_0x4379d2,_0x5e3ffb[_0x26ca02][_0x2a4f24('0x24')]),this[_0x2a4f24('0x23')][_0x4379d2['id']]['on'](_0x2a4f24('0x2a'),this['handleImapBox'][_0x2a4f24('0x2e')](this,_0x26ca02)),this[_0x2a4f24('0x23')][_0x4379d2['id']]['on'](_0x2a4f24('0x24'),this[_0x2a4f24('0x1')][_0x2a4f24('0x2e')](this,_0x26ca02)),this[_0x2a4f24('0x23')][_0x4379d2['id']]['on'](_0x2a4f24('0x1f'),this['handleImapEnd']['bind'](this,_0x26ca02)),this['imapAccounts'][_0x4379d2['id']]['on']('error',this[_0x2a4f24('0xa')][_0x2a4f24('0x2e')](this,_0x26ca02)));}else _[_0x2a4f24('0x25')](this[_0x2a4f24('0xe')][_0x26ca02][_0x2a4f24('0x11')])&&(this[_0x2a4f24('0xe')][_0x26ca02][_0x2a4f24('0x11')]={}),this['mailAccounts'][_0x26ca02]['Imap'][_0x2a4f24('0x26')]=_0x2a4f24('0x2c'),this[_0x2a4f24('0xe')][_0x26ca02][_0x2a4f24('0x11')][_0x2a4f24('0x3')]='',this[_0x2a4f24('0x1d')](_0x26ca02);}}},EmailChannel['prototype'][_0x3f3ec6('0xc')]=function(_0x4e6bd7,_0x246776){const _0x12e444=_0x3f3ec6;if(this[_0x12e444('0xe')][_0x4e6bd7])return this['mailAccounts'][_0x4e6bd7]['Imap'][_0x12e444('0x26')]=_0x12e444('0x2d'),this[_0x12e444('0xe')][_0x4e6bd7][_0x12e444('0x11')][_0x12e444('0x3')]=_0x246776['name'],_0x246776[_0x12e444('0x29')]&&(this[_0x12e444('0xe')][_0x4e6bd7]['Imap'][_0x12e444('0x28')]=_0x246776['messages'][_0x12e444('0x28')]),this[_0x12e444('0x1d')](_0x4e6bd7);},EmailChannel[_0x3f3ec6('0x20')][_0x3f3ec6('0x1')]=function(_0x1b633d,_0xc10486){const _0x3ee67b=_0x3f3ec6;logger['info'](_0x3ee67b('0x13'),_0xc10486[_0x3ee67b('0x27')],_0xc10486[_0x3ee67b('0x22')],_0xc10486[_0x3ee67b('0x19')],_0x1b633d);if(this[_0x3ee67b('0xe')][_0x1b633d])return mailAccount['notify'](_0x1b633d,_0xc10486)['then'](function(_0x23815f){const _0x5e5172=_0x3ee67b;_0x23815f&&logger[_0x5e5172('0x1a')]('Mail\x20accepted\x20from\x20routing');})[_0x3ee67b('0x7')](function(_0x4c4f74){const _0x4af57e=_0x3ee67b;logger[_0x4af57e('0x15')](_0x4af57e('0xb'),JSON[_0x4af57e('0x14')](_0x4c4f74));});},EmailChannel[_0x3f3ec6('0x20')][_0x3f3ec6('0x18')]=function(_0x1814bf){const _0x1019ea=_0x3f3ec6;this[_0x1019ea('0xe')][_0x1814bf]&&this[_0x1019ea('0xe')][_0x1814bf][_0x1019ea('0x11')]&&(this[_0x1019ea('0x23')][this['mailAccounts'][_0x1814bf][_0x1019ea('0x11')]['id']]&&delete this[_0x1019ea('0x23')][this[_0x1019ea('0xe')][_0x1814bf]['Imap']['id']],this[_0x1019ea('0xe')][_0x1814bf][_0x1019ea('0x11')][_0x1019ea('0x30')]=moment(),this[_0x1019ea('0x1d')](_0x1814bf));},EmailChannel['prototype'][_0x3f3ec6('0xa')]=function(_0x46dca6,_0x46caa0){const _0x9a0b88=_0x3f3ec6;if(this[_0x9a0b88('0xe')][_0x46dca6])return this[_0x9a0b88('0xe')][_0x46dca6]['Imap'][_0x9a0b88('0x26')]=_0x9a0b88('0x15'),this[_0x9a0b88('0xe')][_0x46dca6]['Imap'][_0x9a0b88('0x3')]=_0x46caa0,this['emit'](_0x46dca6);},EmailChannel[_0x3f3ec6('0x20')][_0x3f3ec6('0x6')]=function(_0xf41fea,_0xcf58ae){const _0x3ca0b4=_0x3f3ec6;return this[_0x3ca0b4('0x4')][_0x3ca0b4('0x17')](_0xf41fea,_0xcf58ae);},EmailChannel[_0x3f3ec6('0x20')][_0x3f3ec6('0x0')]=function(_0x31ad36){const _0x5ca4b8=_0x3f3ec6,_0xcc3c69=this;if(this['mailAccounts'][_0x31ad36['id']])return _[_0x5ca4b8('0x25')](this[_0x5ca4b8('0xe')][_0x31ad36['id']]['Smtp'])&&(this['mailAccounts'][_0x31ad36['id']][_0x5ca4b8('0x2f')]={}),this['mailAccounts'][_0x31ad36['id']][_0x5ca4b8('0x2f')]['lastSync']=moment(),new Promise(function(_0x31b5f6,_0x3a436a){const _0x3066f7=_0x5ca4b8;return _0xcc3c69[_0x3066f7('0x4')]['verify'](_0x31ad36)[_0x3066f7('0x1b')](function(_0xbaebcc){const _0x14160a=_0x3066f7;_0xcc3c69[_0x14160a('0xe')][_0x31ad36['id']][_0x14160a('0x2f')][_0x14160a('0x26')]=_0x14160a('0x9'),_0xcc3c69[_0x14160a('0xe')][_0x31ad36['id']][_0x14160a('0x2f')]['messageStatus']='',_0xcc3c69['emit'](_0x31ad36['id']),_0x31b5f6(_0xbaebcc);})['catch'](function(_0x34b572){const _0x575cae=_0x3066f7;_0xcc3c69[_0x575cae('0xe')][_0x31ad36['id']][_0x575cae('0x2f')][_0x575cae('0x26')]=_0x575cae('0x15'),_0xcc3c69[_0x575cae('0xe')][_0x31ad36['id']][_0x575cae('0x2f')]['messageStatus']=_0x34b572,_0xcc3c69[_0x575cae('0x1d')](_0x31ad36['id']),_0x3a436a(_0x34b572);});});return this[_0x5ca4b8('0x4')][_0x5ca4b8('0x12')](_0x31ad36);},module[_0x3f3ec6('0x16')]=EmailChannel; \ No newline at end of file +const a1152_0x3e4b=['md5','./imap','info','handleImapEmail','catch','send','handleImapError','lastSync','then','../rpc/mailAccount','exports','mailAccounts','messages','../../../config/logger','key','bind','error','mailAccount:update','../../../rediscache','Imap','verify','active','firstName','handleImapBox','Mail\x20accepted\x20from\x20routing','New\x20email\x20from\x20%s\x20%s\x20%s\x20to\x20%s','verifySmtp','stringify','Smtp','./smtp','box','handleImapEnd','total','Mail\x20not\x20accepted\x20from\x20routing\x20%s','isNil','imapAccounts','emit','smtp','name','connected','prototype','email','moment','messageStatus','status','sendMail','undefined'];(function(_0x550f5d,_0x3e4bd5){const _0x163617=function(_0x11787c){while(--_0x11787c){_0x550f5d['push'](_0x550f5d['shift']());}};_0x163617(++_0x3e4bd5);}(a1152_0x3e4b,0x1a9));const a1152_0x1636=function(_0x550f5d,_0x3e4bd5){_0x550f5d=_0x550f5d-0x0;let _0x163617=a1152_0x3e4b[_0x550f5d];return _0x163617;};const _0x5ad160=a1152_0x1636;'use strict';const _=require('lodash'),moment=require(_0x5ad160('0x28')),md5=require(_0x5ad160('0x2d')),logger=require(_0x5ad160('0xb'))(_0x5ad160('0x27')),{getSocket}=require(_0x5ad160('0x10')),io=getSocket(),EmailImap=require(_0x5ad160('0x2e')),EmailSmtp=require(_0x5ad160('0x1b')),mailAccount=require(_0x5ad160('0x7')),md5Accounts={};function EmailChannel(_0x11787c){const _0x229038=_0x5ad160;logger[_0x229038('0x0')]('start\x20email\x20channel'),this[_0x229038('0x9')]=_0x11787c[_0x229038('0x9')],this['imapAccounts']={},this[_0x229038('0x23')]=new EmailSmtp();}EmailChannel['prototype'][_0x5ad160('0x22')]=function(_0x455e79){const _0x1bedff=_0x5ad160,_0x637c4c=this[_0x1bedff('0x9')][_0x455e79],_0xa6cdf4={'id':_0x637c4c['id'],'name':_0x637c4c[_0x1bedff('0x24')],'key':_0x637c4c[_0x1bedff('0xc')],'active':_0x637c4c[_0x1bedff('0x13')],'Imap':{'status':_0x637c4c[_0x1bedff('0x11')]['status'],'messageStatus':_0x637c4c['Imap']['messageStatus'],'total':_0x637c4c['Imap'][_0x1bedff('0x1e')]}};_['isNil'](md5Accounts[_0x455e79])&&(md5Accounts[_0x455e79]={});const _0xd36b0=md5(JSON[_0x1bedff('0x19')](_0xa6cdf4));md5Accounts[_0x455e79][_0x1bedff('0x2d')]!==_0xd36b0&&(md5Accounts[_0x455e79][_0x1bedff('0x2d')]=_0xd36b0,io[_0x1bedff('0x22')](_0x1bedff('0xf'),_0xa6cdf4));},EmailChannel['prototype']['refresh']=function(_0x4569f0){const _0x21601e=_0x5ad160;for(const _0x1c39b1 in _0x4569f0){if(typeof _0x4569f0[_0x1c39b1]!==_0x21601e('0x2c')){if(_0x4569f0[_0x1c39b1][_0x21601e('0x11')]&&_0x4569f0[_0x1c39b1][_0x21601e('0x13')]){const _0x8d1d1=_0x4569f0[_0x1c39b1][_0x21601e('0x11')];typeof this[_0x21601e('0x21')][_0x8d1d1['id']]===_0x21601e('0x2c')&&(this[_0x21601e('0x21')][_0x8d1d1['id']]=new EmailImap(_0x8d1d1,_0x4569f0[_0x1c39b1][_0x21601e('0x27')]),this[_0x21601e('0x21')][_0x8d1d1['id']]['on'](_0x21601e('0x1c'),this[_0x21601e('0x15')][_0x21601e('0xd')](this,_0x1c39b1)),this['imapAccounts'][_0x8d1d1['id']]['on'](_0x21601e('0x27'),this[_0x21601e('0x1')][_0x21601e('0xd')](this,_0x1c39b1)),this['imapAccounts'][_0x8d1d1['id']]['on']('end',this[_0x21601e('0x1d')]['bind'](this,_0x1c39b1)),this['imapAccounts'][_0x8d1d1['id']]['on']('error',this[_0x21601e('0x4')][_0x21601e('0xd')](this,_0x1c39b1)));}else _['isNil'](this[_0x21601e('0x9')][_0x1c39b1][_0x21601e('0x11')])&&(this['mailAccounts'][_0x1c39b1][_0x21601e('0x11')]={}),this[_0x21601e('0x9')][_0x1c39b1][_0x21601e('0x11')][_0x21601e('0x2a')]='disabled',this['mailAccounts'][_0x1c39b1][_0x21601e('0x11')][_0x21601e('0x29')]='',this[_0x21601e('0x22')](_0x1c39b1);}}},EmailChannel[_0x5ad160('0x26')][_0x5ad160('0x15')]=function(_0x4bbbe8,_0x41eb81){const _0x1f685c=_0x5ad160;if(this['mailAccounts'][_0x4bbbe8])return this['mailAccounts'][_0x4bbbe8][_0x1f685c('0x11')][_0x1f685c('0x2a')]=_0x1f685c('0x25'),this[_0x1f685c('0x9')][_0x4bbbe8][_0x1f685c('0x11')][_0x1f685c('0x29')]=_0x41eb81['name'],_0x41eb81[_0x1f685c('0xa')]&&(this[_0x1f685c('0x9')][_0x4bbbe8]['Imap'][_0x1f685c('0x1e')]=_0x41eb81[_0x1f685c('0xa')][_0x1f685c('0x1e')]),this['emit'](_0x4bbbe8);},EmailChannel[_0x5ad160('0x26')]['handleImapEmail']=function(_0xae608f,_0x218951){const _0x45431a=_0x5ad160;logger[_0x45431a('0x0')](_0x45431a('0x17'),_0x218951[_0x45431a('0x14')],_0x218951['lastName'],_0x218951['from'],_0xae608f);if(this[_0x45431a('0x9')][_0xae608f])return mailAccount['notify'](_0xae608f,_0x218951)[_0x45431a('0x6')](function(_0x44ba11){const _0x3e5f9a=_0x45431a;_0x44ba11&&logger[_0x3e5f9a('0x0')](_0x3e5f9a('0x16'));})[_0x45431a('0x2')](function(_0xbe20d2){const _0x5d4ad1=_0x45431a;logger[_0x5d4ad1('0xe')](_0x5d4ad1('0x1f'),JSON[_0x5d4ad1('0x19')](_0xbe20d2));});},EmailChannel[_0x5ad160('0x26')][_0x5ad160('0x1d')]=function(_0x48f7df){const _0x1d6a5a=_0x5ad160;this[_0x1d6a5a('0x9')][_0x48f7df]&&this[_0x1d6a5a('0x9')][_0x48f7df][_0x1d6a5a('0x11')]&&(this[_0x1d6a5a('0x21')][this[_0x1d6a5a('0x9')][_0x48f7df][_0x1d6a5a('0x11')]['id']]&&delete this['imapAccounts'][this[_0x1d6a5a('0x9')][_0x48f7df][_0x1d6a5a('0x11')]['id']],this['mailAccounts'][_0x48f7df][_0x1d6a5a('0x11')][_0x1d6a5a('0x5')]=moment(),this[_0x1d6a5a('0x22')](_0x48f7df));},EmailChannel[_0x5ad160('0x26')][_0x5ad160('0x4')]=function(_0x35ec58,_0x152cf1){const _0x18e8ba=_0x5ad160;if(this[_0x18e8ba('0x9')][_0x35ec58])return this['mailAccounts'][_0x35ec58]['Imap']['status']=_0x18e8ba('0xe'),this[_0x18e8ba('0x9')][_0x35ec58][_0x18e8ba('0x11')][_0x18e8ba('0x29')]=_0x152cf1,this[_0x18e8ba('0x22')](_0x35ec58);},EmailChannel[_0x5ad160('0x26')][_0x5ad160('0x2b')]=function(_0x35ef84,_0x5836e4){const _0x49c69e=_0x5ad160;return this[_0x49c69e('0x23')][_0x49c69e('0x3')](_0x35ef84,_0x5836e4);},EmailChannel[_0x5ad160('0x26')][_0x5ad160('0x18')]=function(_0x5818c5){const _0x4f0551=_0x5ad160,_0x1bdbdb=this;if(this[_0x4f0551('0x9')][_0x5818c5['id']])return _[_0x4f0551('0x20')](this[_0x4f0551('0x9')][_0x5818c5['id']]['Smtp'])&&(this[_0x4f0551('0x9')][_0x5818c5['id']][_0x4f0551('0x1a')]={}),this['mailAccounts'][_0x5818c5['id']]['Smtp']['lastSync']=moment(),new Promise(function(_0x3ae42b,_0x5f3015){const _0x389f84=_0x4f0551;return _0x1bdbdb['smtp']['verify'](_0x5818c5)[_0x389f84('0x6')](function(_0x37109e){const _0x3d5804=_0x389f84;_0x1bdbdb[_0x3d5804('0x9')][_0x5818c5['id']]['Smtp'][_0x3d5804('0x2a')]='verified',_0x1bdbdb[_0x3d5804('0x9')][_0x5818c5['id']][_0x3d5804('0x1a')][_0x3d5804('0x29')]='',_0x1bdbdb[_0x3d5804('0x22')](_0x5818c5['id']),_0x3ae42b(_0x37109e);})[_0x389f84('0x2')](function(_0x2f8332){const _0x4040d7=_0x389f84;_0x1bdbdb[_0x4040d7('0x9')][_0x5818c5['id']][_0x4040d7('0x1a')][_0x4040d7('0x2a')]=_0x4040d7('0xe'),_0x1bdbdb[_0x4040d7('0x9')][_0x5818c5['id']][_0x4040d7('0x1a')][_0x4040d7('0x29')]=_0x2f8332,_0x1bdbdb[_0x4040d7('0x22')](_0x5818c5['id']),_0x5f3015(_0x2f8332);});});return this['smtp'][_0x4f0551('0x12')](_0x5818c5);},module[_0x5ad160('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 8ad04aa..edc90d9 100644 --- a/server/services/email/lib/imap.js +++ b/server/services/email/lib/imap.js @@ -1 +1 @@ -const a1152_0x1559=['prototype','error','autotls','email','once','authTimeout','handleMessageEnd','handleFetchError','textCode','host','password','handleError','service','mailbox','handleEnd','events','handleMessageBody','bind','imap','end','handleFetchMessage','body','parser','account','readUnseen','./utils','closeBox','inherits','upperFirst','handleMessageAttributes','mailparser','handleFetchEnd','handleReady','box','undefined','stringify','handleOpenBox','EventEmitter','connect','anonymous@xcally.com','INBOX','authentication','emit','lodash','getAccount','user','length','Iconv','../../../config/logger','handleReadUnseen','required','isNil','handleSimpleParser','tls','exports','util','handleCloseBox','port','ready'];(function(_0x433fec,_0x15592b){const _0x4ea13f=function(_0x1a1e6d){while(--_0x1a1e6d){_0x433fec['push'](_0x433fec['shift']());}};_0x4ea13f(++_0x15592b);}(a1152_0x1559,0xa5));const a1152_0x4ea1=function(_0x433fec,_0x15592b){_0x433fec=_0x433fec-0x0;let _0x4ea13f=a1152_0x1559[_0x433fec];return _0x4ea13f;};const _0x413c3e=a1152_0x4ea1;'use strict';const util=require(_0x413c3e('0x8')),Imap=require('imap'),_=require(_0x413c3e('0x37')),simpleParser=require(_0x413c3e('0x2a'))['simpleParser'],Iconv=require('iconv')[_0x413c3e('0x0')],EventEmitter=require(_0x413c3e('0x1b'))[_0x413c3e('0x31')],utils=require(_0x413c3e('0x25')),logger=require(_0x413c3e('0x1'))(_0x413c3e('0xf'));function EmailImap(_0x1a1e6d,_0x44e5d9){const _0x1908a6=_0x413c3e;this[_0x1908a6('0x19')]=_0x1908a6('0x34'),this[_0x1908a6('0x23')]=this[_0x1908a6('0x38')](_0x1a1e6d,_0x44e5d9),this[_0x1908a6('0x1e')]=new Imap(this[_0x1908a6('0x23')]),this[_0x1908a6('0x1e')]['once'](_0x1908a6('0xb'),this[_0x1908a6('0x2c')][_0x1908a6('0x1d')](this)),this[_0x1908a6('0x1e')][_0x1908a6('0x10')](_0x1908a6('0x1f'),this[_0x1908a6('0x1a')]['bind'](this)),this[_0x1908a6('0x1e')]['on'](_0x1908a6('0xd'),this[_0x1908a6('0x17')][_0x1908a6('0x1d')](this)),this[_0x1908a6('0x1e')][_0x1908a6('0x32')]();}util[_0x413c3e('0x27')](EmailImap,EventEmitter),EmailImap['prototype'][_0x413c3e('0x38')]=function(_0x36ab84,_0x3c4ac9){const _0x1b7c98=_0x413c3e,_0xb6b0ff={'connTimeout':_0x36ab84['connTimeout']?_0x36ab84['connTimeout']*0x3e8:0x2710,'authTimeout':_0x36ab84[_0x1b7c98('0x11')]?_0x36ab84[_0x1b7c98('0x11')]*0x3e8:0x1388};return _[_0x1b7c98('0x4')](_0x36ab84[_0x1b7c98('0x18')])?(_0x36ab84[_0x1b7c98('0x35')]&&(_0xb6b0ff[_0x1b7c98('0x39')]=_0x36ab84[_0x1b7c98('0x39')],_0xb6b0ff['password']=_0x36ab84[_0x1b7c98('0x16')]),_0xb6b0ff[_0x1b7c98('0x15')]=_0x36ab84[_0x1b7c98('0x15')],_0xb6b0ff[_0x1b7c98('0xa')]=_0x36ab84[_0x1b7c98('0xa')]||0x3e1,_0x36ab84[_0x1b7c98('0x6')]?_0xb6b0ff[_0x1b7c98('0x6')]=!![]:(_0xb6b0ff[_0x1b7c98('0x6')]=![],_0xb6b0ff[_0x1b7c98('0xe')]=_0x1b7c98('0x3'))):(_0xb6b0ff[_0x1b7c98('0x39')]=_0x36ab84[_0x1b7c98('0x39')],_0xb6b0ff['password']=_0x36ab84[_0x1b7c98('0x16')],_0xb6b0ff[_0x1b7c98('0x15')]=utils['getHost'](_0x36ab84[_0x1b7c98('0x18')]),_0xb6b0ff[_0x1b7c98('0xa')]=0x3e1,_0xb6b0ff[_0x1b7c98('0x6')]=!![]),_0xb6b0ff[_0x1b7c98('0xf')]=_0x3c4ac9||_0x36ab84[_0x1b7c98('0x39')]||_0x1b7c98('0x33'),_0xb6b0ff;},EmailImap[_0x413c3e('0xc')]['handleReady']=function(){const _0x2af9f7=_0x413c3e;this[_0x2af9f7('0x1e')]['openBox'](this['mailbox'],![],this[_0x2af9f7('0x30')]['bind'](this));},EmailImap[_0x413c3e('0xc')][_0x413c3e('0x30')]=function(_0x18bdd5,_0x300a5b){const _0x14dd27=_0x413c3e;_0x18bdd5?this[_0x14dd27('0x17')](_0x18bdd5,!![]):(this['emit'](_0x14dd27('0x2d'),_0x300a5b),this[_0x14dd27('0x24')]());},EmailImap[_0x413c3e('0xc')]['handleCloseBox']=function(_0x1aeb4d){const _0x2eef1d=_0x413c3e;_0x1aeb4d?this[_0x2eef1d('0x17')](_0x1aeb4d,!![]):this['imap'][_0x2eef1d('0x1f')]();},EmailImap['prototype'][_0x413c3e('0x24')]=function(){const _0x4d8f80=_0x413c3e;this[_0x4d8f80('0x1e')]['search'](['UNSEEN'],this[_0x4d8f80('0x2')][_0x4d8f80('0x1d')](this));},EmailImap['prototype'][_0x413c3e('0x2')]=function(_0x57e822,_0x38969d){const _0x240f33=_0x413c3e;if(_0x57e822)this[_0x240f33('0x17')](_0x57e822,!![]);else{if(_0x38969d[_0x240f33('0x3a')])try{const _0x214fff=this[_0x240f33('0x1e')]['fetch'](_0x38969d,{'bodies':'','markSeen':!![]});_0x214fff['on']('message',this[_0x240f33('0x20')][_0x240f33('0x1d')](this)),_0x214fff[_0x240f33('0x10')](_0x240f33('0xd'),this[_0x240f33('0x13')]['bind'](this)),_0x214fff[_0x240f33('0x10')](_0x240f33('0x1f'),this[_0x240f33('0x2b')][_0x240f33('0x1d')](this));}catch(_0x165830){logger[_0x240f33('0xd')](_0x165830);}else this[_0x240f33('0x1e')][_0x240f33('0x26')](!![],this[_0x240f33('0x9')][_0x240f33('0x1d')](this));}},EmailImap[_0x413c3e('0xc')][_0x413c3e('0x20')]=function(_0x197499){const _0x4c79be=_0x413c3e;_0x197499['on'](_0x4c79be('0x21'),this['handleMessageBody']['bind'](this)),_0x197499[_0x4c79be('0x10')]('attributes',this[_0x4c79be('0x29')][_0x4c79be('0x1d')](this)),_0x197499['once'](_0x4c79be('0x1f'),this[_0x4c79be('0x12')][_0x4c79be('0x1d')](this));},EmailImap['prototype'][_0x413c3e('0x1c')]=function(_0x262121){const _0xeedb54=_0x413c3e;simpleParser(_0x262121,{'Iconv':Iconv},this['handleSimpleParser'][_0xeedb54('0x1d')](this));},EmailImap[_0x413c3e('0xc')][_0x413c3e('0x29')]=function(){},EmailImap[_0x413c3e('0xc')][_0x413c3e('0x12')]=function(){},EmailImap[_0x413c3e('0xc')][_0x413c3e('0x5')]=function(_0x15e9ce,_0x56a138){const _0x3e6164=_0x413c3e;if(_0x15e9ce)logger[_0x3e6164('0xd')](_0x15e9ce);else{const _0x5437d7=this;utils[_0x3e6164('0x22')](this[_0x3e6164('0x23')],_0x56a138,function(_0x51e73d){const _0x149c53=_0x3e6164;_0x5437d7[_0x149c53('0x36')](_0x149c53('0xf'),_0x51e73d);});}},EmailImap['prototype'][_0x413c3e('0x2b')]=function(){const _0x45bb9c=_0x413c3e;this[_0x45bb9c('0x1e')]['closeBox'](!![],this['handleCloseBox']['bind'](this));},EmailImap[_0x413c3e('0xc')][_0x413c3e('0x13')]=function(_0xed6579){const _0x8f4a6c=_0x413c3e;this[_0x8f4a6c('0x17')](_0xed6579),this[_0x8f4a6c('0x1e')]['closeBox'](!![],this[_0x8f4a6c('0x9')][_0x8f4a6c('0x1d')](this));},EmailImap[_0x413c3e('0xc')][_0x413c3e('0x1a')]=function(){const _0x8a2f6e=_0x413c3e;this[_0x8a2f6e('0x36')]('end');},EmailImap[_0x413c3e('0xc')]['handleError']=function(_0x42f7cd,_0x322901){const _0x2d0e57=_0x413c3e;logger['error'](_0x2d0e57('0x17'),this[_0x2d0e57('0x23')][_0x2d0e57('0xf')],JSON[_0x2d0e57('0x2f')](_0x42f7cd));let _0x13ad7d='';if(_0x42f7cd){if(_0x42f7cd[_0x2d0e57('0x14')])_0x13ad7d=_0x42f7cd[_0x2d0e57('0x14')];else for(const _0x52925e in _0x42f7cd){typeof _0x42f7cd[_0x52925e]!==_0x2d0e57('0x2e')&&(_0x13ad7d+=_[_0x2d0e57('0x28')](_0x52925e)+':\x20'+_0x42f7cd[_0x52925e]+'\x0a');}}_0x322901?this['imap'][_0x2d0e57('0x1f')]():(this[_0x2d0e57('0x36')](_0x2d0e57('0xd'),_0x13ad7d),this[_0x2d0e57('0x36')](_0x2d0e57('0x1f')));},module[_0x413c3e('0x7')]=EmailImap; \ No newline at end of file +const a1153_0x5d02=['inherits','port','getAccount','box','end','handleMessageBody','imap','password','handleFetchMessage','events','handleError','stringify','prototype','body','connTimeout','attributes','lodash','./utils','bind','INBOX','parser','email','host','handleFetchEnd','readUnseen','handleSimpleParser','handleMessageAttributes','handleOpenBox','UNSEEN','authentication','search','EventEmitter','getHost','authTimeout','account','once','textCode','tls','openBox','connect','handleEnd','ready','message','service','user','exports','autotls','fetch','error','handleReadUnseen','handleMessageEnd','mailbox','emit','iconv','handleReady','closeBox','handleCloseBox'];(function(_0x3e8e40,_0x5d027c){const _0x31143a=function(_0x204363){while(--_0x204363){_0x3e8e40['push'](_0x3e8e40['shift']());}};_0x31143a(++_0x5d027c);}(a1153_0x5d02,0xac));const a1153_0x3114=function(_0x3e8e40,_0x5d027c){_0x3e8e40=_0x3e8e40-0x0;let _0x31143a=a1153_0x5d02[_0x3e8e40];return _0x31143a;};const _0x41e451=a1153_0x3114;'use strict';const util=require('util'),Imap=require('imap'),_=require(_0x41e451('0xf')),simpleParser=require('mailparser')['simpleParser'],Iconv=require(_0x41e451('0x34'))['Iconv'],EventEmitter=require(_0x41e451('0x8'))[_0x41e451('0x1e')],utils=require(_0x41e451('0x10')),logger=require('../../../config/logger')(_0x41e451('0x14'));function EmailImap(_0x204363,_0x6582b4){const _0x5b0628=_0x41e451;this[_0x5b0628('0x32')]=_0x5b0628('0x12'),this[_0x5b0628('0x21')]=this[_0x5b0628('0x1')](_0x204363,_0x6582b4),this[_0x5b0628('0x5')]=new Imap(this['account']),this['imap'][_0x5b0628('0x22')](_0x5b0628('0x28'),this[_0x5b0628('0x35')][_0x5b0628('0x11')](this)),this[_0x5b0628('0x5')][_0x5b0628('0x22')](_0x5b0628('0x3'),this[_0x5b0628('0x27')][_0x5b0628('0x11')](this)),this['imap']['on']('error',this[_0x5b0628('0x9')][_0x5b0628('0x11')](this)),this[_0x5b0628('0x5')][_0x5b0628('0x26')]();}util[_0x41e451('0x38')](EmailImap,EventEmitter),EmailImap[_0x41e451('0xb')][_0x41e451('0x1')]=function(_0x135ab1,_0x22d3fd){const _0x355f27=_0x41e451,_0x5ef140={'connTimeout':_0x135ab1[_0x355f27('0xd')]?_0x135ab1[_0x355f27('0xd')]*0x3e8:0x2710,'authTimeout':_0x135ab1[_0x355f27('0x20')]?_0x135ab1['authTimeout']*0x3e8:0x1388};return _['isNil'](_0x135ab1[_0x355f27('0x2a')])?(_0x135ab1[_0x355f27('0x1c')]&&(_0x5ef140[_0x355f27('0x2b')]=_0x135ab1['user'],_0x5ef140['password']=_0x135ab1[_0x355f27('0x6')]),_0x5ef140['host']=_0x135ab1[_0x355f27('0x15')],_0x5ef140['port']=_0x135ab1['port']||0x3e1,_0x135ab1[_0x355f27('0x24')]?_0x5ef140[_0x355f27('0x24')]=!![]:(_0x5ef140[_0x355f27('0x24')]=![],_0x5ef140[_0x355f27('0x2d')]='required')):(_0x5ef140[_0x355f27('0x2b')]=_0x135ab1['user'],_0x5ef140[_0x355f27('0x6')]=_0x135ab1[_0x355f27('0x6')],_0x5ef140[_0x355f27('0x15')]=utils[_0x355f27('0x1f')](_0x135ab1['service']),_0x5ef140[_0x355f27('0x0')]=0x3e1,_0x5ef140[_0x355f27('0x24')]=!![]),_0x5ef140['email']=_0x22d3fd||_0x135ab1[_0x355f27('0x2b')]||'anonymous@xcally.com',_0x5ef140;},EmailImap['prototype'][_0x41e451('0x35')]=function(){const _0x1858fc=_0x41e451;this[_0x1858fc('0x5')][_0x1858fc('0x25')](this[_0x1858fc('0x32')],![],this[_0x1858fc('0x1a')][_0x1858fc('0x11')](this));},EmailImap[_0x41e451('0xb')]['handleOpenBox']=function(_0x2a2ea8,_0xbebaaf){const _0x2c199b=_0x41e451;_0x2a2ea8?this[_0x2c199b('0x9')](_0x2a2ea8,!![]):(this[_0x2c199b('0x33')](_0x2c199b('0x2'),_0xbebaaf),this[_0x2c199b('0x17')]());},EmailImap[_0x41e451('0xb')][_0x41e451('0x37')]=function(_0x5a1872){const _0x4091e1=_0x41e451;_0x5a1872?this[_0x4091e1('0x9')](_0x5a1872,!![]):this[_0x4091e1('0x5')][_0x4091e1('0x3')]();},EmailImap[_0x41e451('0xb')][_0x41e451('0x17')]=function(){const _0x279f50=_0x41e451;this['imap'][_0x279f50('0x1d')]([_0x279f50('0x1b')],this['handleReadUnseen'][_0x279f50('0x11')](this));},EmailImap[_0x41e451('0xb')][_0x41e451('0x30')]=function(_0x2bdff0,_0x4cfa6b){const _0x476e71=_0x41e451;if(_0x2bdff0)this['handleError'](_0x2bdff0,!![]);else{if(_0x4cfa6b['length'])try{const _0x2580ba=this['imap'][_0x476e71('0x2e')](_0x4cfa6b,{'bodies':'','markSeen':!![]});_0x2580ba['on'](_0x476e71('0x29'),this['handleFetchMessage'][_0x476e71('0x11')](this)),_0x2580ba[_0x476e71('0x22')](_0x476e71('0x2f'),this['handleFetchError'][_0x476e71('0x11')](this)),_0x2580ba[_0x476e71('0x22')]('end',this[_0x476e71('0x16')]['bind'](this));}catch(_0x1e7b17){logger[_0x476e71('0x2f')](_0x1e7b17);}else this[_0x476e71('0x5')][_0x476e71('0x36')](!![],this[_0x476e71('0x37')]['bind'](this));}},EmailImap[_0x41e451('0xb')][_0x41e451('0x7')]=function(_0x15385b){const _0x42e596=_0x41e451;_0x15385b['on'](_0x42e596('0xc'),this[_0x42e596('0x4')][_0x42e596('0x11')](this)),_0x15385b[_0x42e596('0x22')](_0x42e596('0xe'),this[_0x42e596('0x19')]['bind'](this)),_0x15385b[_0x42e596('0x22')](_0x42e596('0x3'),this[_0x42e596('0x31')][_0x42e596('0x11')](this));},EmailImap[_0x41e451('0xb')][_0x41e451('0x4')]=function(_0x5cc0c2){const _0x4b1b6f=_0x41e451;simpleParser(_0x5cc0c2,{'Iconv':Iconv},this[_0x4b1b6f('0x18')][_0x4b1b6f('0x11')](this));},EmailImap['prototype'][_0x41e451('0x19')]=function(){},EmailImap[_0x41e451('0xb')]['handleMessageEnd']=function(){},EmailImap[_0x41e451('0xb')][_0x41e451('0x18')]=function(_0x278fb0,_0x250892){const _0x130b49=_0x41e451;if(_0x278fb0)logger[_0x130b49('0x2f')](_0x278fb0);else{const _0x573bfa=this;utils[_0x130b49('0x13')](this[_0x130b49('0x21')],_0x250892,function(_0x565084){const _0x49fd69=_0x130b49;_0x573bfa[_0x49fd69('0x33')]('email',_0x565084);});}},EmailImap['prototype'][_0x41e451('0x16')]=function(){const _0x5d77a0=_0x41e451;this[_0x5d77a0('0x5')][_0x5d77a0('0x36')](!![],this['handleCloseBox']['bind'](this));},EmailImap[_0x41e451('0xb')]['handleFetchError']=function(_0x35646e){const _0x193478=_0x41e451;this[_0x193478('0x9')](_0x35646e),this[_0x193478('0x5')][_0x193478('0x36')](!![],this[_0x193478('0x37')][_0x193478('0x11')](this));},EmailImap['prototype'][_0x41e451('0x27')]=function(){const _0x3ef294=_0x41e451;this[_0x3ef294('0x33')]('end');},EmailImap[_0x41e451('0xb')][_0x41e451('0x9')]=function(_0x597667,_0x232740){const _0x2c3e3b=_0x41e451;logger[_0x2c3e3b('0x2f')](_0x2c3e3b('0x9'),this[_0x2c3e3b('0x21')]['email'],JSON[_0x2c3e3b('0xa')](_0x597667));let _0x1bb47c='';if(_0x597667){if(_0x597667[_0x2c3e3b('0x23')])_0x1bb47c=_0x597667[_0x2c3e3b('0x23')];else for(const _0x2c6b87 in _0x597667){typeof _0x597667[_0x2c6b87]!=='undefined'&&(_0x1bb47c+=_['upperFirst'](_0x2c6b87)+':\x20'+_0x597667[_0x2c6b87]+'\x0a');}}_0x232740?this['imap'][_0x2c3e3b('0x3')]():(this[_0x2c3e3b('0x33')](_0x2c3e3b('0x2f'),_0x1bb47c),this[_0x2c3e3b('0x33')](_0x2c3e3b('0x3')));},module[_0x41e451('0x2c')]=EmailImap; \ No newline at end of file diff --git a/server/services/email/lib/smtp.js b/server/services/email/lib/smtp.js index e1243b6..0f6d2f2 100644 --- a/server/services/email/lib/smtp.js +++ b/server/services/email/lib/smtp.js @@ -1 +1 @@ -const a1153_0x2d9a=['verify','prototype','createTransport','use','exports','compile','send','nodemailer','nodemailer-plugin-inline-base64','toString','sendMail'];(function(_0x2e0462,_0x2d9a53){const _0xd946f6=function(_0x2b3830){while(--_0x2b3830){_0x2e0462['push'](_0x2e0462['shift']());}};_0xd946f6(++_0x2d9a53);}(a1153_0x2d9a,0x1aa));const a1153_0xd946=function(_0x2e0462,_0x2d9a53){_0x2e0462=_0x2e0462-0x0;let _0xd946f6=a1153_0x2d9a[_0x2e0462];return _0xd946f6;};const _0x562d9e=a1153_0xd946;'use strict';const nodemailer=require(_0x562d9e('0xa')),inlineBase64=require(_0x562d9e('0x0'));function EmailSmtp(){}EmailSmtp[_0x562d9e('0x4')][_0x562d9e('0x9')]=function(_0x2b3830,_0x41c9a9){return new Promise(function(_0x24c175,_0x24f007){const _0x1995d0=a1153_0xd946,_0x4fe04b=nodemailer[_0x1995d0('0x5')](_0x2b3830);_0x4fe04b[_0x1995d0('0x6')](_0x1995d0('0x8'),inlineBase64()),_0x4fe04b[_0x1995d0('0x2')](_0x41c9a9,function(_0x1ea6f8,_0xab3716){const _0x459604=_0x1995d0;_0x1ea6f8?_0x24f007(_0x1ea6f8[_0x459604('0x1')]()):_0x24c175(_0xab3716);});});},EmailSmtp['prototype']['verify']=function(_0x2d25fc){return new Promise(function(_0x4e4f79,_0x99e12d){const _0x257fff=a1153_0xd946,_0x1ae083=nodemailer[_0x257fff('0x5')](_0x2d25fc);_0x1ae083[_0x257fff('0x3')](function(_0xcf0bda,_0x226727){const _0x50c0b0=_0x257fff;_0xcf0bda?_0x99e12d(_0xcf0bda[_0x50c0b0('0x1')]()):_0x226727?_0x4e4f79(_0x226727):_0x99e12d('Not\x20verifired');});});},module[_0x562d9e('0x7')]=EmailSmtp; \ No newline at end of file +const a1154_0x24a2=['compile','sendMail','toString','Not\x20verifired','nodemailer','prototype','createTransport','send','nodemailer-plugin-inline-base64'];(function(_0x1195f2,_0x24a2b9){const _0x1707bd=function(_0x11bb17){while(--_0x11bb17){_0x1195f2['push'](_0x1195f2['shift']());}};_0x1707bd(++_0x24a2b9);}(a1154_0x24a2,0xa2));const a1154_0x1707=function(_0x1195f2,_0x24a2b9){_0x1195f2=_0x1195f2-0x0;let _0x1707bd=a1154_0x24a2[_0x1195f2];return _0x1707bd;};const _0x155963=a1154_0x1707;'use strict';const nodemailer=require(_0x155963('0x4')),inlineBase64=require(_0x155963('0x8'));function EmailSmtp(){}EmailSmtp[_0x155963('0x5')][_0x155963('0x7')]=function(_0x11bb17,_0x426e40){return new Promise(function(_0x3e8f17,_0x543cee){const _0x40ec0f=a1154_0x1707,_0x164590=nodemailer[_0x40ec0f('0x6')](_0x11bb17);_0x164590['use'](_0x40ec0f('0x0'),inlineBase64()),_0x164590[_0x40ec0f('0x1')](_0x426e40,function(_0x5bb167,_0x57c1d1){_0x5bb167?_0x543cee(_0x5bb167['toString']()):_0x3e8f17(_0x57c1d1);});});},EmailSmtp[_0x155963('0x5')]['verify']=function(_0x3b60da){return new Promise(function(_0x4131d4,_0x3e7e48){const _0x3c82e6=a1154_0x1707,_0x191d77=nodemailer[_0x3c82e6('0x6')](_0x3b60da);_0x191d77['verify'](function(_0x560578,_0x834fed){const _0x43b43a=_0x3c82e6;_0x560578?_0x3e7e48(_0x560578[_0x43b43a('0x2')]()):_0x834fed?_0x4131d4(_0x834fed):_0x3e7e48(_0x43b43a('0x3'));});});},module['exports']=EmailSmtp; \ No newline at end of file diff --git a/server/services/email/lib/utils.js b/server/services/email/lib/utils.js index 28a3972..2943307 100644 --- a/server/services/email/lib/utils.js +++ b/server/services/email/lib/utils.js @@ -1 +1 @@ -const a1154_0x2e60=['address','YYYY-MM-DD\x20HH:mm:ss','parser','first','yahoo','info','Data','Anonymous','originCc','Email\x20message\x20%s\x20is\x20in\x20TNEF\x20format:\x20message\x20content\x20will\x20be\x20converted\x20by\x20the\x20system','attach','outlook.office365.com','path','split','imap-mail.outlook.com','isEmpty','files/attachments/','util','../../../config/logger','bcc','Title','%s-%s','application/ms-tnef','parseBuffer','slice','../../../config/environment','imap.mail.yahoo.com','moment','join','attachments','originTo','BodyHTML','inReplyTo','length','

Empty\x20message

','replace','root','includes','type','outlook365','writeFileSync','filter','format','getHost','head','message','0x1?_0x4224ec['pop']():'';}return'';}function getMails(_0x37739f,_0x10cbf0){const _0x2de7d3=_0x340f6c;let _0x13969a='';for(let _0xfe5f22=0x0;_0xfe5f22<_0x10cbf0['value'][_0x2de7d3('0x34')];_0xfe5f22+=0x1){_0x10cbf0[_0x2de7d3('0x1')][_0xfe5f22]['address']!==_0x37739f&&(!_[_0x2de7d3('0x22')](_0x13969a)&&(_0x13969a+=','),_0x13969a+=_0x10cbf0[_0x2de7d3('0x1')][_0xfe5f22][_0x2de7d3('0x6')]||_0x10cbf0[_0x2de7d3('0x1')][_0xfe5f22][_0x2de7d3('0x13')]||'',_0x13969a+='\x20<',_0x13969a+=_0x10cbf0[_0x2de7d3('0x1')][_0xfe5f22][_0x2de7d3('0x13')]?_0x10cbf0[_0x2de7d3('0x1')][_0xfe5f22]['address']:_0x2de7d3('0x7')+random['generate'](0x6)+_0x2de7d3('0x2'),_0x13969a+='>');}return _0x13969a;}function parseEmail(_0x5ce760,_0x5df3bf,_0x5cbd6a){const _0x33b761=_0x340f6c;if(_0x5df3bf[_0x33b761('0x4')]){const _0x2fb077=/)<[^<]*)*<\/script>/gi;while(_0x2fb077['test'](_0x5df3bf[_0x33b761('0x4')])){_0x5df3bf[_0x33b761('0x4')]=_0x5df3bf[_0x33b761('0x4')]['replace'](_0x2fb077,'');}_0x5cbd6a[_0x33b761('0x5')]=_0x5df3bf[_0x33b761('0x4')];}else _0x5cbd6a['body']=_0x5df3bf[_0x33b761('0xa')];_0x5cbd6a['body']&&(_0x5cbd6a[_0x33b761('0x5')]=_0x5cbd6a[_0x33b761('0x5')][_0x33b761('0x36')](/Empty\x20message

','message','from','info','split','messageId','inReplyTo','push','Data','imap.mail.yahoo.com','test','gmail','0x1?_0x1504ef['pop']():'';}return'';}function getMails(_0x130d88,_0x5e8dd1){const _0x227a11=_0x320b35;let _0x4c8701='';for(let _0x1305f6=0x0;_0x1305f6<_0x5e8dd1[_0x227a11('0x30')][_0x227a11('0x5')];_0x1305f6+=0x1){_0x5e8dd1[_0x227a11('0x30')][_0x1305f6][_0x227a11('0x26')]!==_0x130d88&&(!_['isEmpty'](_0x4c8701)&&(_0x4c8701+=','),_0x4c8701+=_0x5e8dd1[_0x227a11('0x30')][_0x1305f6][_0x227a11('0x36')]||_0x5e8dd1[_0x227a11('0x30')][_0x1305f6][_0x227a11('0x26')]||'',_0x4c8701+='\x20<',_0x4c8701+=_0x5e8dd1[_0x227a11('0x30')][_0x1305f6][_0x227a11('0x26')]?_0x5e8dd1[_0x227a11('0x30')][_0x1305f6][_0x227a11('0x26')]:'anonymous'+random[_0x227a11('0x3')](0x6)+_0x227a11('0x33'),_0x4c8701+='>');}return _0x4c8701;}function parseEmail(_0x38a3b1,_0x42f88b,_0x199f4f){const _0xd5fbc0=_0x320b35;if(_0x42f88b[_0xd5fbc0('0x2a')]){const _0x2b66c3=/)<[^<]*)*<\/script>/gi;while(_0x2b66c3[_0xd5fbc0('0x23')](_0x42f88b['html'])){_0x42f88b['html']=_0x42f88b['html'][_0xd5fbc0('0xa')](_0x2b66c3,'');}_0x199f4f[_0xd5fbc0('0x3b')]=_0x42f88b[_0xd5fbc0('0x2a')];}else _0x199f4f[_0xd5fbc0('0x3b')]=_0x42f88b[_0xd5fbc0('0xb')];_0x199f4f[_0xd5fbc0('0x3b')]&&(_0x199f4f[_0xd5fbc0('0x3b')]=_0x199f4f[_0xd5fbc0('0x3b')][_0xd5fbc0('0xa')](/0x0?this[_0x4108d8+_0x38ea11('0x19')]>0x0&&this[_0x4108d8+_0x38ea11('0x10')]>=this[_0x4108d8+_0x38ea11('0x19')]?_0x38ea11('0x1a'):_0x38ea11('0xa'):_0x38ea11('0x1c');},Agent[_0x48c5ef('0x11')][_0x48c5ef('0x25')]=function(){const _0x374e6c=_0x48c5ef,_0x487754=['mail',_0x374e6c('0x23'),_0x374e6c('0x18'),'fax','sms',_0x374e6c('0x4')];for(let _0x22c332=0x0;_0x22c332<_0x487754[_0x374e6c('0x1f')];_0x22c332+=0x1){const _0x319739=this[_0x374e6c('0x2d')](_0x487754[_0x22c332]);this[_0x487754[_0x22c332]+_0x374e6c('0x5')]!==_0x319739&&(this[_0x487754[_0x22c332]+_0x374e6c('0xd')]=_[_0x374e6c('0x28')](moment()['format']('x'))),this[_0x487754[_0x22c332]+'Status']=_0x319739;}const _0x3a3dc5={'id':this['id'],'name':this[_0x374e6c('0x8')],'online':this[_0x374e6c('0x15')],'voicePause':this['voicePause'],'chatPause':this[_0x374e6c('0x7')],'mailPause':this['mailPause'],'smsPause':this['smsPause'],'faxPause':this['faxPause'],'openchannelPause':this[_0x374e6c('0xe')],'chatStatus':this[_0x374e6c('0x2e')],'chatStatusTime':this[_0x374e6c('0x16')],'chatCapacity':this[_0x374e6c('0x20')],'chatCurrentCapacity':this[_0x374e6c('0x29')],'mailStatus':this[_0x374e6c('0x2')],'mailStatusTime':this[_0x374e6c('0x2c')],'mailCapacity':this['mailCapacity'],'mailCurrentCapacity':this[_0x374e6c('0xc')],'faxStatus':this[_0x374e6c('0xb')],'faxStatusTime':this[_0x374e6c('0x17')],'faxCapacity':this[_0x374e6c('0x2f')],'faxCurrentCapacity':this[_0x374e6c('0x34')],'smsStatus':this[_0x374e6c('0x1b')],'smsStatusTime':this[_0x374e6c('0x9')],'smsCapacity':this['smsCapacity'],'smsCurrentCapacity':this['smsCurrentCapacity'],'whatsappStatus':this['whatsappStatus'],'whatsappStatusTime':this[_0x374e6c('0x1d')],'whatsappCapacity':this[_0x374e6c('0x14')],'whatsappCurrentCapacity':this[_0x374e6c('0x22')],'openchannelStatus':this[_0x374e6c('0x27')],'openchannelStatusTime':this['openchannelStatusTime'],'openchannelCapacity':this[_0x374e6c('0x24')],'openchannelCurrentCapacity':this['openchannelCurrentCapacity'],'busy':this[_0x374e6c('0x35')],'busyQueue':this[_0x374e6c('0x2b')]},_0x6b1321=md5(JSON[_0x374e6c('0x13')](_0x3a3dc5));this[_0x374e6c('0x12')]!==_0x6b1321&&(this[_0x374e6c('0x12')]=_0x6b1321,io['emit'](_0x374e6c('0x2a'),_0x3a3dc5));},module[_0x48c5ef('0x30')]=Agent; \ No newline at end of file +const a1165_0x22ec=['whatsappCapacity','chatStatusTime','faxStatusTime','mail','voicePause','length','emit','mailPause','mailStatusTime','smsStatus','StatusTime','format','openchannelStatus','chatCurrentCapacity','chatCapacity','smsPause','whatsapp','user:save','mailCapacity','smsCapacity','openchannelPause','CurrentCapacity','busyQueue','openchannelCapacity','smsStatusTime','faxCapacity','lodash','working','busy','chatPause','fax','whatsappCurrentCapacity','whatsappStatus','faxCurrentCapacity','openchannel','openchannelStatusTime','prototype','faxPause','Status','chatStatus','faxStatus','mailCurrentCapacity','mailStatus','name','exports','getChannelStatus','smsCurrentCapacity','openchannelCurrentCapacity','md5','maxcapacity','unknown','online','moment','toNumber','updateRealtime'];(function(_0x24d401,_0x22ec43){const _0x3bc3f5=function(_0x42e95f){while(--_0x42e95f){_0x24d401['push'](_0x24d401['shift']());}};_0x3bc3f5(++_0x22ec43);}(a1165_0x22ec,0x100));const a1165_0x3bc3=function(_0x24d401,_0x22ec43){_0x24d401=_0x24d401-0x0;let _0x3bc3f5=a1165_0x22ec[_0x24d401];return _0x3bc3f5;};const _0x101b77=a1165_0x3bc3;'use strict';const _=require(_0x101b77('0x2d')),moment=require(_0x101b77('0x10')),md5=require(_0x101b77('0xc')),{getSocket}=require('../../../rediscache'),io=getSocket();function Agent(_0x42e95f){const _0xd12cb6=_0x101b77;this['id']=_0x42e95f['id']||0x0,this['name']=_0x42e95f['name']||'',this['online']=_0x42e95f[_0xd12cb6('0xf')]||!![],this[_0xd12cb6('0x17')]=_0x42e95f[_0xd12cb6('0x17')]||![],this['chatPause']=_0x42e95f[_0xd12cb6('0x30')]||![],this['mailPause']=_0x42e95f[_0xd12cb6('0x1a')]||![],this['faxPause']=_0x42e95f[_0xd12cb6('0x1')]||![],this['smsPause']=_0x42e95f['smsPause']||![],this[_0xd12cb6('0x27')]=_0x42e95f[_0xd12cb6('0x27')]||![],this[_0xd12cb6('0x3')]='unknown',this[_0xd12cb6('0x14')]=0x0,this[_0xd12cb6('0x21')]=_0x42e95f['chatCapacity']||0x0,this[_0xd12cb6('0x20')]=0x0,this[_0xd12cb6('0x6')]='unknown',this['mailStatusTime']=0x0,this[_0xd12cb6('0x25')]=_0x42e95f[_0xd12cb6('0x25')]||0x0,this[_0xd12cb6('0x5')]=0x0,this[_0xd12cb6('0x4')]=_0xd12cb6('0xe'),this[_0xd12cb6('0x15')]=0x0,this[_0xd12cb6('0x2c')]=_0x42e95f[_0xd12cb6('0x2c')]||0x0,this[_0xd12cb6('0x34')]=0x0,this[_0xd12cb6('0x1c')]=_0xd12cb6('0xe'),this[_0xd12cb6('0x2b')]=0x0,this[_0xd12cb6('0x26')]=_0x42e95f[_0xd12cb6('0x26')]||0x0,this[_0xd12cb6('0xa')]=0x0,this[_0xd12cb6('0x33')]=_0xd12cb6('0xe'),this['whatsappStatusTime']=0x0,this['whatsappCapacity']=_0x42e95f['whatsappCapacity']||0x0,this[_0xd12cb6('0x32')]=0x0,this['openchannelStatus']=_0xd12cb6('0xe'),this[_0xd12cb6('0x36')]=0x0,this[_0xd12cb6('0x2a')]=_0x42e95f[_0xd12cb6('0x2a')]||0x0,this['openchannelCurrentCapacity']=0x0,this[_0xd12cb6('0x2f')]=![],this[_0xd12cb6('0x29')]=undefined,this[_0xd12cb6('0xc')]='',this[_0xd12cb6('0x12')]();}Agent[_0x101b77('0x0')][_0x101b77('0x9')]=function(_0x1d6e4e){const _0x30c71e=_0x101b77;return this[_0x1d6e4e+_0x30c71e('0x28')]>0x0?this[_0x1d6e4e+'Capacity']>0x0&&this[_0x1d6e4e+_0x30c71e('0x28')]>=this[_0x1d6e4e+'Capacity']?_0x30c71e('0xd'):_0x30c71e('0x2e'):'idle';},Agent[_0x101b77('0x0')]['updateRealtime']=function(){const _0x18646d=_0x101b77,_0xb8b6d8=[_0x18646d('0x16'),'chat',_0x18646d('0x35'),_0x18646d('0x31'),'sms',_0x18646d('0x23')];for(let _0x50c45b=0x0;_0x50c45b<_0xb8b6d8[_0x18646d('0x18')];_0x50c45b+=0x1){const _0x39e297=this[_0x18646d('0x9')](_0xb8b6d8[_0x50c45b]);this[_0xb8b6d8[_0x50c45b]+'Status']!==_0x39e297&&(this[_0xb8b6d8[_0x50c45b]+_0x18646d('0x1d')]=_[_0x18646d('0x11')](moment()[_0x18646d('0x1e')]('x'))),this[_0xb8b6d8[_0x50c45b]+_0x18646d('0x2')]=_0x39e297;}const _0xbf38b1={'id':this['id'],'name':this[_0x18646d('0x7')],'online':this[_0x18646d('0xf')],'voicePause':this['voicePause'],'chatPause':this['chatPause'],'mailPause':this[_0x18646d('0x1a')],'smsPause':this[_0x18646d('0x22')],'faxPause':this[_0x18646d('0x1')],'openchannelPause':this[_0x18646d('0x27')],'chatStatus':this[_0x18646d('0x3')],'chatStatusTime':this[_0x18646d('0x14')],'chatCapacity':this[_0x18646d('0x21')],'chatCurrentCapacity':this[_0x18646d('0x20')],'mailStatus':this[_0x18646d('0x6')],'mailStatusTime':this[_0x18646d('0x1b')],'mailCapacity':this['mailCapacity'],'mailCurrentCapacity':this[_0x18646d('0x5')],'faxStatus':this[_0x18646d('0x4')],'faxStatusTime':this[_0x18646d('0x15')],'faxCapacity':this['faxCapacity'],'faxCurrentCapacity':this[_0x18646d('0x34')],'smsStatus':this[_0x18646d('0x1c')],'smsStatusTime':this['smsStatusTime'],'smsCapacity':this[_0x18646d('0x26')],'smsCurrentCapacity':this['smsCurrentCapacity'],'whatsappStatus':this['whatsappStatus'],'whatsappStatusTime':this['whatsappStatusTime'],'whatsappCapacity':this[_0x18646d('0x13')],'whatsappCurrentCapacity':this[_0x18646d('0x32')],'openchannelStatus':this[_0x18646d('0x1f')],'openchannelStatusTime':this[_0x18646d('0x36')],'openchannelCapacity':this['openchannelCapacity'],'openchannelCurrentCapacity':this[_0x18646d('0xb')],'busy':this[_0x18646d('0x2f')],'busyQueue':this[_0x18646d('0x29')]},_0xad459a=md5(JSON['stringify'](_0xbf38b1));this[_0x18646d('0xc')]!==_0xad459a&&(this['md5']=_0xad459a,io[_0x18646d('0x19')](_0x18646d('0x24'),_0xbf38b1));},module[_0x101b77('0x8')]=Agent; \ No newline at end of file diff --git a/server/services/routing/model/chatQueue.js b/server/services/routing/model/chatQueue.js index 3363a23..a72b508 100644 --- a/server/services/routing/model/chatQueue.js +++ b/server/services/routing/model/chatQueue.js @@ -1 +1 @@ -const a1165_0x27c7=['prototype','waiting','../../../rediscache','map','format','emit','loggedIn','Agents','md5','name','beepall','updateRealtime','strategy','length','online','_rr','paused','available','lodash','timeout','mapAgentsId'];(function(_0x6bfbb0,_0x27c7f3){const _0x5b7459=function(_0x4b4622){while(--_0x4b4622){_0x6bfbb0['push'](_0x6bfbb0['shift']());}};_0x5b7459(++_0x27c7f3);}(a1165_0x27c7,0x165));const a1165_0x5b74=function(_0x6bfbb0,_0x27c7f3){_0x6bfbb0=_0x6bfbb0-0x0;let _0x5b7459=a1165_0x27c7[_0x6bfbb0];return _0x5b7459;};const _0x36d5b6=a1165_0x5b74;'use strict';const _=require(_0x36d5b6('0x12')),md5=require(_0x36d5b6('0x8')),util=require('util'),{getSocket}=require(_0x36d5b6('0x2')),io=getSocket();function ChatQueue(_0x4b4622){const _0x154722=_0x36d5b6;this['id']=_0x4b4622['id']||0x0,this['name']=_0x4b4622[_0x154722('0x9')]||'',this[_0x154722('0x13')]=_0x4b4622[_0x154722('0x13')]||0xa,this[_0x154722('0xc')]=_0x4b4622[_0x154722('0xc')]||_0x154722('0xa'),this[_0x154722('0x7')]=_0x4b4622['Agents'],this[_0x154722('0x14')]={},this[_0x154722('0x1')]=0x0,this[_0x154722('0x8')]='',this['updateRouting'](),this[_0x154722('0xb')]();}ChatQueue[_0x36d5b6('0x0')]['updateRouting']=function(){const _0x43fc4e=_0x36d5b6,_0x3be136=this[_0x43fc4e('0x14')][_0x43fc4e('0xf')];this[_0x43fc4e('0x14')]=_[_0x43fc4e('0x3')](this[_0x43fc4e('0x7')],'id'),this[_0x43fc4e('0x14')][_0x43fc4e('0xf')]=_0x3be136;},ChatQueue[_0x36d5b6('0x0')][_0x36d5b6('0xb')]=function(){const _0x1b2af4=_0x36d5b6;this['loggedIn']=0x0,this[_0x1b2af4('0x10')]=0x0;for(let _0x3b1205=0x0;_0x3b1205=0x0?this['available']:0x0;const _0x5eaf4e={'id':this['id'],'available':this[_0x1b2af4('0x11')],'loggedIn':this[_0x1b2af4('0x6')],'name':this[_0x1b2af4('0x9')],'paused':this[_0x1b2af4('0x10')],'waiting':this[_0x1b2af4('0x1')]},_0x20e448=md5(JSON['stringify'](_0x5eaf4e));this[_0x1b2af4('0x8')]!==_0x20e448&&(this[_0x1b2af4('0x8')]=_0x20e448,io['to'](util[_0x1b2af4('0x4')]('chat:queue:%s',_0x5eaf4e['name']))[_0x1b2af4('0x5')]('chat_queue:save',_0x5eaf4e));},module['exports']=ChatQueue; \ No newline at end of file +const a1166_0x1789=['chat_queue:save','exports','lodash','prototype','chat:queue:%s','loggedIn','util','name','timeout','available','online','beepall','format','updateRouting','chatPause','strategy','../../../rediscache','paused','Agents','map','mapAgentsId','_rr','stringify','updateRealtime','md5'];(function(_0x2c731a,_0x1789ca){const _0x556875=function(_0x39fa4e){while(--_0x39fa4e){_0x2c731a['push'](_0x2c731a['shift']());}};_0x556875(++_0x1789ca);}(a1166_0x1789,0x158));const a1166_0x5568=function(_0x2c731a,_0x1789ca){_0x2c731a=_0x2c731a-0x0;let _0x556875=a1166_0x1789[_0x2c731a];return _0x556875;};const _0x2b4c2e=a1166_0x5568;'use strict';const _=require(_0x2b4c2e('0x8')),md5=require(_0x2b4c2e('0x5')),util=require(_0x2b4c2e('0xc')),{getSocket}=require(_0x2b4c2e('0x16')),io=getSocket();function ChatQueue(_0x39fa4e){const _0xc16813=_0x2b4c2e;this['id']=_0x39fa4e['id']||0x0,this[_0xc16813('0xd')]=_0x39fa4e[_0xc16813('0xd')]||'',this[_0xc16813('0xe')]=_0x39fa4e[_0xc16813('0xe')]||0xa,this[_0xc16813('0x15')]=_0x39fa4e[_0xc16813('0x15')]||_0xc16813('0x11'),this[_0xc16813('0x18')]=_0x39fa4e[_0xc16813('0x18')],this[_0xc16813('0x1')]={},this['waiting']=0x0,this[_0xc16813('0x5')]='',this[_0xc16813('0x13')](),this[_0xc16813('0x4')]();}ChatQueue[_0x2b4c2e('0x9')][_0x2b4c2e('0x13')]=function(){const _0xccc04b=_0x2b4c2e,_0x392c72=this[_0xccc04b('0x1')][_0xccc04b('0x2')];this[_0xccc04b('0x1')]=_[_0xccc04b('0x0')](this[_0xccc04b('0x18')],'id'),this[_0xccc04b('0x1')][_0xccc04b('0x2')]=_0x392c72;},ChatQueue[_0x2b4c2e('0x9')][_0x2b4c2e('0x4')]=function(){const _0x387e55=_0x2b4c2e;this['loggedIn']=0x0,this[_0x387e55('0x17')]=0x0;for(let _0x2edea4=0x0;_0x2edea4=0x0?this[_0x387e55('0xf')]:0x0;const _0x250830={'id':this['id'],'available':this[_0x387e55('0xf')],'loggedIn':this['loggedIn'],'name':this['name'],'paused':this[_0x387e55('0x17')],'waiting':this['waiting']},_0x543d12=md5(JSON[_0x387e55('0x3')](_0x250830));this[_0x387e55('0x5')]!==_0x543d12&&(this[_0x387e55('0x5')]=_0x543d12,io['to'](util[_0x387e55('0x12')](_0x387e55('0xa'),_0x250830[_0x387e55('0xd')]))['emit'](_0x387e55('0x6'),_0x250830));},module[_0x2b4c2e('0x7')]=ChatQueue; \ No newline at end of file diff --git a/server/services/routing/model/faxQueue.js b/server/services/routing/model/faxQueue.js index 82c5553..8515d90 100644 --- a/server/services/routing/model/faxQueue.js +++ b/server/services/routing/model/faxQueue.js @@ -1 +1 @@ -const a1166_0x2ec5=['strategy','fax_queue:save','name','prototype','beepall','stringify','available','loggedIn','updateRouting','lodash','mapAgentsId','exports','md5','_rr','emit','online','map','Agents','timeout','util','waiting','paused'];(function(_0xf025c5,_0x2ec5e0){const _0x535b88=function(_0x1c685a){while(--_0x1c685a){_0xf025c5['push'](_0xf025c5['shift']());}};_0x535b88(++_0x2ec5e0);}(a1166_0x2ec5,0x17d));const a1166_0x535b=function(_0xf025c5,_0x2ec5e0){_0xf025c5=_0xf025c5-0x0;let _0x535b88=a1166_0x2ec5[_0xf025c5];return _0x535b88;};const _0x3b3697=a1166_0x535b;'use strict';const _=require(_0x3b3697('0x2')),md5=require('md5'),util=require(_0x3b3697('0xc')),{getSocket}=require('../../../rediscache'),io=getSocket();function FaxQueue(_0x1c685a){const _0x4e01ee=_0x3b3697;this['id']=_0x1c685a['id']||0x0,this[_0x4e01ee('0x11')]=_0x1c685a[_0x4e01ee('0x11')]||'',this[_0x4e01ee('0xb')]=_0x1c685a[_0x4e01ee('0xb')]||0xa,this[_0x4e01ee('0xf')]=_0x1c685a[_0x4e01ee('0xf')]||_0x4e01ee('0x13'),this[_0x4e01ee('0xa')]=_0x1c685a['Agents'],this[_0x4e01ee('0x3')]={},this[_0x4e01ee('0xd')]=0x0,this[_0x4e01ee('0x5')]='',this[_0x4e01ee('0x1')](),this['updateRealtime']();}FaxQueue[_0x3b3697('0x12')][_0x3b3697('0x1')]=function(){const _0x5289aa=_0x3b3697,_0xd844d4=this['mapAgentsId'][_0x5289aa('0x6')];this['mapAgentsId']=_[_0x5289aa('0x9')](this[_0x5289aa('0xa')],'id'),this[_0x5289aa('0x3')][_0x5289aa('0x6')]=_0xd844d4;},FaxQueue['prototype']['updateRealtime']=function(){const _0x56420f=_0x3b3697;this[_0x56420f('0x0')]=0x0,this[_0x56420f('0xe')]=0x0;for(let _0x176e3d=0x0;_0x176e3d=0x0?this[_0x56420f('0x15')]:0x0;const _0x3a59ea={'id':this['id'],'available':this['available'],'loggedIn':this[_0x56420f('0x0')],'name':this[_0x56420f('0x11')],'paused':this[_0x56420f('0xe')],'waiting':this[_0x56420f('0xd')]},_0xf156aa=md5(JSON[_0x56420f('0x14')](_0x3a59ea));this[_0x56420f('0x5')]!==_0xf156aa&&(this['md5']=_0xf156aa,io['to'](util['format']('fax:queue:%s',_0x3a59ea[_0x56420f('0x11')]))[_0x56420f('0x7')](_0x56420f('0x10'),_0x3a59ea));},module[_0x3b3697('0x4')]=FaxQueue; \ No newline at end of file +const a1167_0x4d70=['paused','mapAgentsId','emit','prototype','updateRealtime','map','faxPause','available','beepall','stringify','_rr','updateRouting','fax:queue:%s','length','waiting','timeout','loggedIn','fax_queue:save','md5','Agents','name','online','lodash'];(function(_0x422a30,_0x4d70b6){const _0x538314=function(_0x216668){while(--_0x216668){_0x422a30['push'](_0x422a30['shift']());}};_0x538314(++_0x4d70b6);}(a1167_0x4d70,0x1e7));const a1167_0x5383=function(_0x422a30,_0x4d70b6){_0x422a30=_0x422a30-0x0;let _0x538314=a1167_0x4d70[_0x422a30];return _0x538314;};const _0x5bd07e=a1167_0x5383;'use strict';const _=require(_0x5bd07e('0x12')),md5=require(_0x5bd07e('0xe')),util=require('util'),{getSocket}=require('../../../rediscache'),io=getSocket();function FaxQueue(_0x216668){const _0x51388b=_0x5bd07e;this['id']=_0x216668['id']||0x0,this[_0x51388b('0x10')]=_0x216668[_0x51388b('0x10')]||'',this['timeout']=_0x216668[_0x51388b('0xb')]||0xa,this['strategy']=_0x216668['strategy']||_0x51388b('0x4'),this[_0x51388b('0xf')]=_0x216668['Agents'],this[_0x51388b('0x14')]={},this['waiting']=0x0,this[_0x51388b('0xe')]='',this[_0x51388b('0x7')](),this[_0x51388b('0x0')]();}FaxQueue[_0x5bd07e('0x16')][_0x5bd07e('0x7')]=function(){const _0x43b623=_0x5bd07e,_0x21794b=this[_0x43b623('0x14')][_0x43b623('0x6')];this[_0x43b623('0x14')]=_[_0x43b623('0x1')](this[_0x43b623('0xf')],'id'),this[_0x43b623('0x14')][_0x43b623('0x6')]=_0x21794b;},FaxQueue[_0x5bd07e('0x16')][_0x5bd07e('0x0')]=function(){const _0x1299c5=_0x5bd07e;this['loggedIn']=0x0,this['paused']=0x0;for(let _0x6dcfb2=0x0;_0x6dcfb2=0x0?this['available']:0x0;const _0x36ea5c={'id':this['id'],'available':this[_0x1299c5('0x3')],'loggedIn':this['loggedIn'],'name':this[_0x1299c5('0x10')],'paused':this[_0x1299c5('0x13')],'waiting':this[_0x1299c5('0xa')]},_0x472418=md5(JSON[_0x1299c5('0x5')](_0x36ea5c));this[_0x1299c5('0xe')]!==_0x472418&&(this[_0x1299c5('0xe')]=_0x472418,io['to'](util['format'](_0x1299c5('0x8'),_0x36ea5c[_0x1299c5('0x10')]))[_0x1299c5('0x15')](_0x1299c5('0xd'),_0x36ea5c));},module['exports']=FaxQueue; \ No newline at end of file diff --git a/server/services/routing/model/interval.js b/server/services/routing/model/interval.js index 332906b..15a5e9f 100644 --- a/server/services/routing/model/interval.js +++ b/server/services/routing/model/interval.js @@ -1 +1 @@ -var a1167_0x2ad1=['exports','Intervals','name'];(function(_0x164d0b,_0x2ad19e){var _0x10dc7a=function(_0x4231e8){while(--_0x4231e8){_0x164d0b['push'](_0x164d0b['shift']());}};_0x10dc7a(++_0x2ad19e);}(a1167_0x2ad1,0x189));var a1167_0x10dc=function(_0x164d0b,_0x2ad19e){_0x164d0b=_0x164d0b-0x0;var _0x10dc7a=a1167_0x2ad1[_0x164d0b];return _0x10dc7a;};var _0x1a0740=a1167_0x10dc;'use strict';function Interval(_0x4231e8){var _0x37d01f=a1167_0x10dc;this['id']=_0x4231e8['id']||0x0,this[_0x37d01f('0x2')]=_0x4231e8[_0x37d01f('0x2')]||'',this[_0x37d01f('0x1')]=_0x4231e8[_0x37d01f('0x1')]||{};}module[_0x1a0740('0x0')]=Interval; \ No newline at end of file +var a1168_0x8278=['Intervals','name','exports'];(function(_0x2db03b,_0x827873){var _0x1a3a06=function(_0x5b3b76){while(--_0x5b3b76){_0x2db03b['push'](_0x2db03b['shift']());}};_0x1a3a06(++_0x827873);}(a1168_0x8278,0x12c));var a1168_0x1a3a=function(_0x2db03b,_0x827873){_0x2db03b=_0x2db03b-0x0;var _0x1a3a06=a1168_0x8278[_0x2db03b];return _0x1a3a06;};var _0x56fed4=a1168_0x1a3a;'use strict';function Interval(_0x5b3b76){var _0x1cefe7=a1168_0x1a3a;this['id']=_0x5b3b76['id']||0x0,this['name']=_0x5b3b76[_0x1cefe7('0x1')]||'',this['Intervals']=_0x5b3b76[_0x1cefe7('0x0')]||{};}module[_0x56fed4('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 2859ac2..69b4008 100644 --- a/server/services/routing/model/mailQueue.js +++ b/server/services/routing/model/mailQueue.js @@ -1 +1 @@ -const a1168_0x2427=['waiting','mail:queue:%s','format','md5','strategy','util','beepall','mail_queue:save','Agents','lodash','loggedIn','available','length','mapAgentsId','emit','_rr','mailPause','name','updateRouting','prototype','timeout','map','stringify','updateRealtime','paused'];(function(_0x43c9d,_0x2427d0){const _0x61cf9b=function(_0x51903a){while(--_0x51903a){_0x43c9d['push'](_0x43c9d['shift']());}};_0x61cf9b(++_0x2427d0);}(a1168_0x2427,0xd6));const a1168_0x61cf=function(_0x43c9d,_0x2427d0){_0x43c9d=_0x43c9d-0x0;let _0x61cf9b=a1168_0x2427[_0x43c9d];return _0x61cf9b;};const _0x30936f=a1168_0x61cf;'use strict';const _=require(_0x30936f('0x14')),md5=require(_0x30936f('0xe')),util=require(_0x30936f('0x10')),{getSocket}=require('../../../rediscache'),io=getSocket();function MailQueue(_0x51903a){const _0x3560d9=_0x30936f;this['id']=_0x51903a['id']||0x0,this[_0x3560d9('0x3')]=_0x51903a[_0x3560d9('0x3')]||'',this['timeout']=_0x51903a[_0x3560d9('0x6')]||0xa,this[_0x3560d9('0xf')]=_0x51903a[_0x3560d9('0xf')]||_0x3560d9('0x11'),this[_0x3560d9('0x13')]=_0x51903a[_0x3560d9('0x13')],this[_0x3560d9('0x18')]={},this[_0x3560d9('0xb')]=0x0,this[_0x3560d9('0xe')]='',this[_0x3560d9('0x4')](),this[_0x3560d9('0x9')]();}MailQueue[_0x30936f('0x5')][_0x30936f('0x4')]=function(){const _0x87b683=_0x30936f,_0x226195=this[_0x87b683('0x18')]['_rr'];this[_0x87b683('0x18')]=_[_0x87b683('0x7')](this[_0x87b683('0x13')],'id'),this[_0x87b683('0x18')][_0x87b683('0x1')]=_0x226195;},MailQueue[_0x30936f('0x5')]['updateRealtime']=function(){const _0x455ffd=_0x30936f;this['loggedIn']=0x0,this['paused']=0x0;for(let _0x30a706=0x0;_0x30a706=0x0?this['available']:0x0;const _0x11160f={'id':this['id'],'available':this['available'],'loggedIn':this['loggedIn'],'name':this[_0x455ffd('0x3')],'paused':this[_0x455ffd('0xa')],'waiting':this['waiting']},_0x280fe2=md5(JSON[_0x455ffd('0x8')](_0x11160f));this[_0x455ffd('0xe')]!==_0x280fe2&&(this[_0x455ffd('0xe')]=_0x280fe2,io['to'](util[_0x455ffd('0xd')](_0x455ffd('0xc'),_0x11160f['name']))[_0x455ffd('0x0')](_0x455ffd('0x12'),_0x11160f));},module['exports']=MailQueue; \ No newline at end of file +const a1169_0x1f67=['strategy','emit','md5','paused','waiting','updateRealtime','prototype','util','updateRouting','_rr','lodash','available','beepall','length','mapAgentsId','stringify','loggedIn','name','Agents','exports','timeout','format','map','../../../rediscache'];(function(_0x28d19a,_0x1f67b7){const _0x14b3b8=function(_0x12ab08){while(--_0x12ab08){_0x28d19a['push'](_0x28d19a['shift']());}};_0x14b3b8(++_0x1f67b7);}(a1169_0x1f67,0x1f0));const a1169_0x14b3=function(_0x28d19a,_0x1f67b7){_0x28d19a=_0x28d19a-0x0;let _0x14b3b8=a1169_0x1f67[_0x28d19a];return _0x14b3b8;};const _0x1e255a=a1169_0x14b3;'use strict';const _=require(_0x1e255a('0x12')),md5=require(_0x1e255a('0xa')),util=require(_0x1e255a('0xf')),{getSocket}=require(_0x1e255a('0x7')),io=getSocket();function MailQueue(_0x12ab08){const _0x395aa0=_0x1e255a;this['id']=_0x12ab08['id']||0x0,this[_0x395aa0('0x1')]=_0x12ab08[_0x395aa0('0x1')]||'',this[_0x395aa0('0x4')]=_0x12ab08[_0x395aa0('0x4')]||0xa,this[_0x395aa0('0x8')]=_0x12ab08[_0x395aa0('0x8')]||_0x395aa0('0x14'),this[_0x395aa0('0x2')]=_0x12ab08['Agents'],this[_0x395aa0('0x16')]={},this[_0x395aa0('0xc')]=0x0,this[_0x395aa0('0xa')]='',this[_0x395aa0('0x10')](),this[_0x395aa0('0xd')]();}MailQueue['prototype']['updateRouting']=function(){const _0x3218fd=_0x1e255a,_0xba10c3=this[_0x3218fd('0x16')]['_rr'];this['mapAgentsId']=_[_0x3218fd('0x6')](this[_0x3218fd('0x2')],'id'),this[_0x3218fd('0x16')][_0x3218fd('0x11')]=_0xba10c3;},MailQueue[_0x1e255a('0xe')][_0x1e255a('0xd')]=function(){const _0x2b0550=_0x1e255a;this[_0x2b0550('0x0')]=0x0,this[_0x2b0550('0xb')]=0x0;for(let _0x2dbf9a=0x0;_0x2dbf9a=0x0?this['available']:0x0;const _0x404a53={'id':this['id'],'available':this[_0x2b0550('0x13')],'loggedIn':this[_0x2b0550('0x0')],'name':this[_0x2b0550('0x1')],'paused':this[_0x2b0550('0xb')],'waiting':this[_0x2b0550('0xc')]},_0x366a0e=md5(JSON[_0x2b0550('0x17')](_0x404a53));this[_0x2b0550('0xa')]!==_0x366a0e&&(this['md5']=_0x366a0e,io['to'](util[_0x2b0550('0x5')]('mail:queue:%s',_0x404a53[_0x2b0550('0x1')]))[_0x2b0550('0x9')]('mail_queue:save',_0x404a53));},module[_0x1e255a('0x3')]=MailQueue; \ No newline at end of file diff --git a/server/services/routing/model/openchannelQueue.js b/server/services/routing/model/openchannelQueue.js index ce2394c..62b4dfb 100644 --- a/server/services/routing/model/openchannelQueue.js +++ b/server/services/routing/model/openchannelQueue.js @@ -1 +1 @@ -const a1169_0x5658=['stringify','strategy','available','util','_rr','updateRealtime','openchannelPause','../../../rediscache','name','waiting','exports','loggedIn','Agents','online','md5','lodash','updateRouting','mapAgentsId','paused','beepall','length','prototype','timeout','emit','map','openchannel:queue:%s'];(function(_0x1e4090,_0x56588e){const _0x1bf2db=function(_0x4e16a8){while(--_0x4e16a8){_0x1e4090['push'](_0x1e4090['shift']());}};_0x1bf2db(++_0x56588e);}(a1169_0x5658,0x1a3));const a1169_0x1bf2=function(_0x1e4090,_0x56588e){_0x1e4090=_0x1e4090-0x0;let _0x1bf2db=a1169_0x5658[_0x1e4090];return _0x1bf2db;};const _0x1bd2ee=a1169_0x1bf2;'use strict';const _=require(_0x1bd2ee('0xc')),md5=require(_0x1bd2ee('0xb')),util=require(_0x1bd2ee('0x0')),{getSocket}=require(_0x1bd2ee('0x4')),io=getSocket();function OpenchannelQueue(_0x4e16a8){const _0x4a48c9=_0x1bd2ee;this['id']=_0x4e16a8['id']||0x0,this['name']=_0x4e16a8[_0x4a48c9('0x5')]||'',this[_0x4a48c9('0x13')]=_0x4e16a8[_0x4a48c9('0x13')]||0xa,this['strategy']=_0x4e16a8[_0x4a48c9('0x18')]||_0x4a48c9('0x10'),this['Agents']=_0x4e16a8[_0x4a48c9('0x9')],this[_0x4a48c9('0xe')]={},this[_0x4a48c9('0x6')]=0x0,this[_0x4a48c9('0xb')]='',this[_0x4a48c9('0xd')](),this[_0x4a48c9('0x2')]();}OpenchannelQueue['prototype'][_0x1bd2ee('0xd')]=function(){const _0x3fbf3=_0x1bd2ee,_0x1c64b4=this[_0x3fbf3('0xe')][_0x3fbf3('0x1')];this['mapAgentsId']=_[_0x3fbf3('0x15')](this[_0x3fbf3('0x9')],'id'),this['mapAgentsId'][_0x3fbf3('0x1')]=_0x1c64b4;},OpenchannelQueue[_0x1bd2ee('0x12')]['updateRealtime']=function(){const _0x33dec4=_0x1bd2ee;this[_0x33dec4('0x8')]=0x0,this[_0x33dec4('0xf')]=0x0;for(let _0x19dce4=0x0;_0x19dce4=0x0?this[_0x33dec4('0x19')]:0x0;const _0x5a37d3={'id':this['id'],'available':this['available'],'loggedIn':this[_0x33dec4('0x8')],'name':this[_0x33dec4('0x5')],'paused':this[_0x33dec4('0xf')],'waiting':this[_0x33dec4('0x6')]},_0x390cf5=md5(JSON[_0x33dec4('0x17')](_0x5a37d3));this[_0x33dec4('0xb')]!==_0x390cf5&&(this[_0x33dec4('0xb')]=_0x390cf5,io['to'](util['format'](_0x33dec4('0x16'),_0x5a37d3['name']))[_0x33dec4('0x14')]('openchannel_queue:save',_0x5a37d3));},module[_0x1bd2ee('0x7')]=OpenchannelQueue; \ No newline at end of file +const a1170_0x1507=['timeout','format','Agents','updateRouting','md5','loggedIn','length','openchannel_queue:save','beepall','updateRealtime','map','openchannel:queue:%s','mapAgentsId','paused','online','name','lodash','available','strategy','util','../../../rediscache','openchannelPause','emit','waiting','_rr'];(function(_0x296173,_0x1507a){const _0x2aaaf6=function(_0x1a1824){while(--_0x1a1824){_0x296173['push'](_0x296173['shift']());}};_0x2aaaf6(++_0x1507a);}(a1170_0x1507,0x1be));const a1170_0x2aaa=function(_0x296173,_0x1507a){_0x296173=_0x296173-0x0;let _0x2aaaf6=a1170_0x1507[_0x296173];return _0x2aaaf6;};const _0x169eec=a1170_0x2aaa;'use strict';const _=require(_0x169eec('0x14')),md5=require(_0x169eec('0x8')),util=require(_0x169eec('0x17')),{getSocket}=require(_0x169eec('0x18')),io=getSocket();function OpenchannelQueue(_0x1a1824){const _0x3345ef=_0x169eec;this['id']=_0x1a1824['id']||0x0,this[_0x3345ef('0x13')]=_0x1a1824['name']||'',this[_0x3345ef('0x4')]=_0x1a1824[_0x3345ef('0x4')]||0xa,this[_0x3345ef('0x16')]=_0x1a1824['strategy']||_0x3345ef('0xc'),this['Agents']=_0x1a1824[_0x3345ef('0x6')],this['mapAgentsId']={},this[_0x3345ef('0x2')]=0x0,this[_0x3345ef('0x8')]='',this[_0x3345ef('0x7')](),this['updateRealtime']();}OpenchannelQueue['prototype'][_0x169eec('0x7')]=function(){const _0x42250b=_0x169eec,_0xb798b1=this[_0x42250b('0x10')]['_rr'];this[_0x42250b('0x10')]=_[_0x42250b('0xe')](this[_0x42250b('0x6')],'id'),this[_0x42250b('0x10')][_0x42250b('0x3')]=_0xb798b1;},OpenchannelQueue['prototype'][_0x169eec('0xd')]=function(){const _0x130de8=_0x169eec;this[_0x130de8('0x9')]=0x0,this[_0x130de8('0x11')]=0x0;for(let _0x4d03e2=0x0;_0x4d03e2=0x0?this['available']:0x0;const _0x2e08f0={'id':this['id'],'available':this[_0x130de8('0x15')],'loggedIn':this[_0x130de8('0x9')],'name':this[_0x130de8('0x13')],'paused':this['paused'],'waiting':this[_0x130de8('0x2')]},_0x5267c1=md5(JSON['stringify'](_0x2e08f0));this['md5']!==_0x5267c1&&(this[_0x130de8('0x8')]=_0x5267c1,io['to'](util[_0x130de8('0x5')](_0x130de8('0xf'),_0x2e08f0[_0x130de8('0x13')]))[_0x130de8('0x1')](_0x130de8('0xb'),_0x2e08f0));},module['exports']=OpenchannelQueue; \ No newline at end of file diff --git a/server/services/routing/model/smsQueue.js b/server/services/routing/model/smsQueue.js index 7730169..4f6ed48 100644 --- a/server/services/routing/model/smsQueue.js +++ b/server/services/routing/model/smsQueue.js @@ -1 +1 @@ -const a1170_0x36ad=['Agents','emit','updateRouting','name','beepall','mapAgentsId','prototype','exports','_rr','md5','sms:queue:%s','smsPause','format','loggedIn','lodash','available','../../../rediscache','paused','timeout','waiting','updateRealtime','strategy'];(function(_0x397cb5,_0x36ad61){const _0x312212=function(_0x45e85f){while(--_0x45e85f){_0x397cb5['push'](_0x397cb5['shift']());}};_0x312212(++_0x36ad61);}(a1170_0x36ad,0xca));const a1170_0x3122=function(_0x397cb5,_0x36ad61){_0x397cb5=_0x397cb5-0x0;let _0x312212=a1170_0x36ad[_0x397cb5];return _0x312212;};const _0x3f8760=a1170_0x3122;'use strict';const _=require(_0x3f8760('0xa')),md5=require(_0x3f8760('0x5')),util=require('util'),{getSocket}=require(_0x3f8760('0xc')),io=getSocket();function SmsQueue(_0x45e85f){const _0x946e37=_0x3f8760;this['id']=_0x45e85f['id']||0x0,this['name']=_0x45e85f[_0x946e37('0x15')]||'',this[_0x946e37('0xe')]=_0x45e85f[_0x946e37('0xe')]||0xa,this['strategy']=_0x45e85f[_0x946e37('0x11')]||_0x946e37('0x0'),this[_0x946e37('0x12')]=_0x45e85f[_0x946e37('0x12')],this[_0x946e37('0x1')]={},this['waiting']=0x0,this[_0x946e37('0x5')]='',this[_0x946e37('0x14')](),this[_0x946e37('0x10')]();}SmsQueue[_0x3f8760('0x2')][_0x3f8760('0x14')]=function(){const _0x2ac60a=_0x3f8760,_0xfa122f=this[_0x2ac60a('0x1')][_0x2ac60a('0x4')];this['mapAgentsId']=_['map'](this[_0x2ac60a('0x12')],'id'),this[_0x2ac60a('0x1')][_0x2ac60a('0x4')]=_0xfa122f;},SmsQueue[_0x3f8760('0x2')][_0x3f8760('0x10')]=function(){const _0x2fb78c=_0x3f8760;this['loggedIn']=0x0,this['paused']=0x0;for(let _0x39a718=0x0;_0x39a718=0x0?this[_0x2fb78c('0xb')]:0x0;const _0x511eb7={'id':this['id'],'available':this[_0x2fb78c('0xb')],'loggedIn':this[_0x2fb78c('0x9')],'name':this[_0x2fb78c('0x15')],'paused':this[_0x2fb78c('0xd')],'waiting':this[_0x2fb78c('0xf')]},_0x50857e=md5(JSON['stringify'](_0x511eb7));this['md5']!==_0x50857e&&(this[_0x2fb78c('0x5')]=_0x50857e,io['to'](util[_0x2fb78c('0x8')](_0x2fb78c('0x6'),_0x511eb7['name']))[_0x2fb78c('0x13')]('sms_queue:save',_0x511eb7));},module[_0x3f8760('0x3')]=SmsQueue; \ No newline at end of file +const a1171_0x33f0=['waiting','mapAgentsId','available','exports','beepall','map','sms:queue:%s','loggedIn','name','prototype','format','stringify','updateRouting','strategy','../../../rediscache','smsPause','sms_queue:save','timeout','_rr','updateRealtime','online','md5','paused','Agents','length'];(function(_0x4d22d8,_0x33f08c){const _0xd8480f=function(_0x1be893){while(--_0x1be893){_0x4d22d8['push'](_0x4d22d8['shift']());}};_0xd8480f(++_0x33f08c);}(a1171_0x33f0,0x82));const a1171_0xd848=function(_0x4d22d8,_0x33f08c){_0x4d22d8=_0x4d22d8-0x0;let _0xd8480f=a1171_0x33f0[_0x4d22d8];return _0xd8480f;};const _0x58e7ba=a1171_0xd848;'use strict';const _=require('lodash'),md5=require(_0x58e7ba('0x10')),util=require('util'),{getSocket}=require(_0x58e7ba('0x9')),io=getSocket();function SmsQueue(_0x1be893){const _0x2d251b=_0x58e7ba;this['id']=_0x1be893['id']||0x0,this[_0x2d251b('0x3')]=_0x1be893[_0x2d251b('0x3')]||'',this[_0x2d251b('0xc')]=_0x1be893['timeout']||0xa,this[_0x2d251b('0x8')]=_0x1be893['strategy']||_0x2d251b('0x18'),this[_0x2d251b('0x12')]=_0x1be893[_0x2d251b('0x12')],this[_0x2d251b('0x15')]={},this['waiting']=0x0,this[_0x2d251b('0x10')]='',this[_0x2d251b('0x7')](),this[_0x2d251b('0xe')]();}SmsQueue[_0x58e7ba('0x4')][_0x58e7ba('0x7')]=function(){const _0x3e1bea=_0x58e7ba,_0x121266=this[_0x3e1bea('0x15')][_0x3e1bea('0xd')];this[_0x3e1bea('0x15')]=_[_0x3e1bea('0x0')](this['Agents'],'id'),this[_0x3e1bea('0x15')]['_rr']=_0x121266;},SmsQueue[_0x58e7ba('0x4')][_0x58e7ba('0xe')]=function(){const _0x431533=_0x58e7ba;this[_0x431533('0x2')]=0x0,this[_0x431533('0x11')]=0x0;for(let _0x50b297=0x0;_0x50b297=0x0?this[_0x431533('0x16')]:0x0;const _0x3c3e9b={'id':this['id'],'available':this[_0x431533('0x16')],'loggedIn':this[_0x431533('0x2')],'name':this[_0x431533('0x3')],'paused':this[_0x431533('0x11')],'waiting':this[_0x431533('0x14')]},_0x38173c=md5(JSON[_0x431533('0x6')](_0x3c3e9b));this[_0x431533('0x10')]!==_0x38173c&&(this[_0x431533('0x10')]=_0x38173c,io['to'](util[_0x431533('0x5')](_0x431533('0x1'),_0x3c3e9b[_0x431533('0x3')]))['emit'](_0x431533('0xb'),_0x3c3e9b));},module[_0x58e7ba('0x17')]=SmsQueue; \ No newline at end of file diff --git a/server/services/routing/model/whatsappQueue.js b/server/services/routing/model/whatsappQueue.js index 49c4c09..3fe4af3 100644 --- a/server/services/routing/model/whatsappQueue.js +++ b/server/services/routing/model/whatsappQueue.js @@ -1 +1 @@ -const a1171_0x3f4c=['updateRealtime','Agents','length','prototype','strategy','name','util','available','map','stringify','loggedIn','paused','whatsappPause','updateRouting','format','lodash','whatsapp_queue:save','mapAgentsId','_rr','md5','timeout','whatsapp:queue:%s','../../../rediscache','waiting'];(function(_0x1d3ace,_0x3f4ccf){const _0x29ff7f=function(_0x13cd2f){while(--_0x13cd2f){_0x1d3ace['push'](_0x1d3ace['shift']());}};_0x29ff7f(++_0x3f4ccf);}(a1171_0x3f4c,0xc7));const a1171_0x29ff=function(_0x1d3ace,_0x3f4ccf){_0x1d3ace=_0x1d3ace-0x0;let _0x29ff7f=a1171_0x3f4c[_0x1d3ace];return _0x29ff7f;};const _0x5cbb99=a1171_0x29ff;'use strict';const _=require(_0x5cbb99('0x8')),md5=require(_0x5cbb99('0xc')),util=require(_0x5cbb99('0x17')),{getSocket}=require(_0x5cbb99('0xf')),io=getSocket();function WhatsappQueue(_0x13cd2f){const _0x4b2ebe=_0x5cbb99;this['id']=_0x13cd2f['id']||0x0,this['name']=_0x13cd2f[_0x4b2ebe('0x16')]||'',this[_0x4b2ebe('0xd')]=_0x13cd2f['timeout']||0xa,this[_0x4b2ebe('0x15')]=_0x13cd2f[_0x4b2ebe('0x15')]||'beepall',this[_0x4b2ebe('0x12')]=_0x13cd2f[_0x4b2ebe('0x12')],this[_0x4b2ebe('0xa')]={},this[_0x4b2ebe('0x10')]=0x0,this[_0x4b2ebe('0xc')]='',this[_0x4b2ebe('0x6')](),this[_0x4b2ebe('0x11')]();}WhatsappQueue['prototype'][_0x5cbb99('0x6')]=function(){const _0x407aa0=_0x5cbb99,_0x44242d=this[_0x407aa0('0xa')][_0x407aa0('0xb')];this[_0x407aa0('0xa')]=_[_0x407aa0('0x1')](this['Agents'],'id'),this['mapAgentsId']['_rr']=_0x44242d;},WhatsappQueue[_0x5cbb99('0x14')][_0x5cbb99('0x11')]=function(){const _0x1f0ac4=_0x5cbb99;this['loggedIn']=0x0,this['paused']=0x0;for(let _0x41a5bf=0x0;_0x41a5bf=0x0?this[_0x1f0ac4('0x0')]:0x0;const _0x5980b8={'id':this['id'],'available':this[_0x1f0ac4('0x0')],'loggedIn':this['loggedIn'],'name':this[_0x1f0ac4('0x16')],'paused':this['paused'],'waiting':this['waiting']},_0x5cbc64=md5(JSON[_0x1f0ac4('0x2')](_0x5980b8));this[_0x1f0ac4('0xc')]!==_0x5cbc64&&(this[_0x1f0ac4('0xc')]=_0x5cbc64,io['to'](util[_0x1f0ac4('0x7')](_0x1f0ac4('0xe'),_0x5980b8[_0x1f0ac4('0x16')]))['emit'](_0x1f0ac4('0x9'),_0x5980b8));},module['exports']=WhatsappQueue; \ No newline at end of file +const a1172_0x6f87=['updateRouting','paused','prototype','updateRealtime','Agents','timeout','loggedIn','strategy','length','online','util','whatsappPause','md5','available','map','name','stringify','mapAgentsId','exports','lodash','_rr','whatsapp_queue:save','format','waiting'];(function(_0x1c41da,_0x6f878d){const _0x3bc5bb=function(_0x55e62d){while(--_0x55e62d){_0x1c41da['push'](_0x1c41da['shift']());}};_0x3bc5bb(++_0x6f878d);}(a1172_0x6f87,0x113));const a1172_0x3bc5=function(_0x1c41da,_0x6f878d){_0x1c41da=_0x1c41da-0x0;let _0x3bc5bb=a1172_0x6f87[_0x1c41da];return _0x3bc5bb;};const _0x2f939b=a1172_0x3bc5;'use strict';const _=require(_0x2f939b('0x8')),md5=require(_0x2f939b('0x1')),util=require(_0x2f939b('0x17')),{getSocket}=require('../../../rediscache'),io=getSocket();function WhatsappQueue(_0x55e62d){const _0x3bca0f=_0x2f939b;this['id']=_0x55e62d['id']||0x0,this[_0x3bca0f('0x4')]=_0x55e62d['name']||'',this[_0x3bca0f('0x12')]=_0x55e62d[_0x3bca0f('0x12')]||0xa,this[_0x3bca0f('0x14')]=_0x55e62d[_0x3bca0f('0x14')]||'beepall',this[_0x3bca0f('0x11')]=_0x55e62d[_0x3bca0f('0x11')],this[_0x3bca0f('0x6')]={},this[_0x3bca0f('0xc')]=0x0,this[_0x3bca0f('0x1')]='',this['updateRouting'](),this['updateRealtime']();}WhatsappQueue['prototype'][_0x2f939b('0xd')]=function(){const _0x557dcd=_0x2f939b,_0xdc8030=this[_0x557dcd('0x6')]['_rr'];this[_0x557dcd('0x6')]=_[_0x557dcd('0x3')](this[_0x557dcd('0x11')],'id'),this[_0x557dcd('0x6')][_0x557dcd('0x9')]=_0xdc8030;},WhatsappQueue[_0x2f939b('0xf')][_0x2f939b('0x10')]=function(){const _0x4b8808=_0x2f939b;this[_0x4b8808('0x13')]=0x0,this['paused']=0x0;for(let _0x4560cb=0x0;_0x4560cb=0x0?this[_0x4b8808('0x2')]:0x0;const _0x23a5c7={'id':this['id'],'available':this[_0x4b8808('0x2')],'loggedIn':this[_0x4b8808('0x13')],'name':this[_0x4b8808('0x4')],'paused':this[_0x4b8808('0xe')],'waiting':this[_0x4b8808('0xc')]},_0x298360=md5(JSON[_0x4b8808('0x5')](_0x23a5c7));this[_0x4b8808('0x1')]!==_0x298360&&(this[_0x4b8808('0x1')]=_0x298360,io['to'](util[_0x4b8808('0xb')]('whatsapp:queue:%s',_0x23a5c7[_0x4b8808('0x4')]))['emit'](_0x4b8808('0xa'),_0x23a5c7));},module[_0x2f939b('0x7')]=WhatsappQueue; \ No newline at end of file diff --git a/server/services/routing/realtime/index.js b/server/services/routing/realtime/index.js index 37585ee..3ddf970 100644 --- a/server/services/routing/realtime/index.js +++ b/server/services/routing/realtime/index.js @@ -1 +1 @@ -const a1172_0x2930=['initChatQueues','lodash','mapKeys','updateRealtime','initFaxQueues','undefined','updateRouting','chatQueues','intervals','prototype','length','openchannelQueues','smsQueues','initSmsQueues','initIntervals','exports','openchannelQueuesWaitingInteractions','initMailQueues','../model/whatsappQueue','mailQueuesWaitingInteractions','isUndefined','whatsappQueuesWaitingInteractions','../model/interval','faxQueues','mergeFromDatabase','faxQueuesWaitingInteractions','../model/agent','initWhatsappQueues','../model/smsQueue','agents','mailQueues','initOpenchannelQueues','../model/openchannelQueue','../model/mailQueue','whatsappQueues','../model/faxQueue','initAgents'];(function(_0x1653a7,_0x29301a){const _0x5347d7=function(_0x41781b){while(--_0x41781b){_0x1653a7['push'](_0x1653a7['shift']());}};_0x5347d7(++_0x29301a);}(a1172_0x2930,0x1c5));const a1172_0x5347=function(_0x1653a7,_0x29301a){_0x1653a7=_0x1653a7-0x0;let _0x5347d7=a1172_0x2930[_0x1653a7];return _0x5347d7;};const _0x565344=a1172_0x5347;'use strict';const _=require(_0x565344('0x1d')),Agent=require(_0x565344('0x11')),Interval=require(_0x565344('0xd')),OpenchannelQueue=require(_0x565344('0x17')),ChatQueue=require('../model/chatQueue'),SmsQueue=require(_0x565344('0x13')),MailQueue=require(_0x565344('0x18')),FaxQueue=require(_0x565344('0x1a')),WhatsappQueue=require(_0x565344('0x9')),Realtime=function(){const _0x563185=_0x565344;this[_0x563185('0x14')]={},this[_0x563185('0x24')]={},this[_0x563185('0x2')]={},this[_0x563185('0x23')]={},this['smsQueues']={},this[_0x563185('0x15')]={},this['faxQueues']={},this[_0x563185('0x19')]={},this['chatQueuesWaitingInteractions']={},this[_0x563185('0xa')]={},this[_0x563185('0x7')]={},this['smsQueuesWaitingInteractions']={},this[_0x563185('0x10')]={},this[_0x563185('0xc')]={};};function freeIsNotKey(_0x41781b,_0x4f57da,_0x44e2d8){const _0x18976d=_0x565344,_0x5e8281=_[_0x18976d('0x1e')](_0x41781b,function(_0x398735){return _0x398735[_0x44e2d8];});for(const _0x39bbdf in _0x4f57da){typeof _0x4f57da[_0x39bbdf]!==_0x18976d('0x21')&&(!_0x5e8281[_0x39bbdf]&&delete _0x4f57da[_0x39bbdf]);}}Realtime[_0x565344('0x0')]['mergeFromDatabase']=function(_0x438232,_0x4c9c6f){const _0x1021cf=_0x565344;for(const _0x2ffec8 in _0x4c9c6f){typeof _0x438232[_0x2ffec8]!==_0x1021cf('0x21')&&(_0x438232[_0x2ffec8]=_0x4c9c6f[_0x2ffec8]);}},Realtime[_0x565344('0x0')][_0x565344('0x1b')]=function(){const _0x3a52eb=this;return function(_0x496017){const _0x2cfa62=a1172_0x5347;if(_0x496017){freeIsNotKey(_0x496017,_0x3a52eb[_0x2cfa62('0x14')],'id');for(let _0x2b981b=0x0,_0x6e08c7={};_0x2b981b<_0x496017[_0x2cfa62('0x1')];_0x2b981b+=0x1){_0x6e08c7=_0x496017[_0x2b981b],_[_0x2cfa62('0xb')](_0x3a52eb['agents'][_0x6e08c7['id']])?_0x3a52eb['agents'][_0x6e08c7['id']]=new Agent(_0x6e08c7):_0x3a52eb['mergeFromDatabase'](_0x3a52eb[_0x2cfa62('0x14')][_0x6e08c7['id']],_0x6e08c7);}}return _0x3a52eb['agents'];};},Realtime[_0x565344('0x0')][_0x565344('0x5')]=function(){const _0x3fa44f=this;return function(_0x31b2c0){const _0x3f45ce=a1172_0x5347;if(_0x31b2c0){freeIsNotKey(_0x31b2c0,_0x3fa44f['intervals'],'id');for(let _0x1c5f29=0x0,_0xded23f={};_0x1c5f29<_0x31b2c0[_0x3f45ce('0x1')];_0x1c5f29+=0x1){_0xded23f=_0x31b2c0[_0x1c5f29],_[_0x3f45ce('0xb')](_0x3fa44f[_0x3f45ce('0x24')][_0xded23f['id']])?_0x3fa44f[_0x3f45ce('0x24')][_0xded23f['id']]=new Interval(_0xded23f):_0x3fa44f[_0x3f45ce('0xf')](_0x3fa44f['intervals'][_0xded23f['id']],_0xded23f);}}return _0x3fa44f['intervals'];};},Realtime[_0x565344('0x0')][_0x565344('0x16')]=function(){const _0x2ea56a=this;return function(_0x2ca78f){const _0x2c9bc5=a1172_0x5347;if(_0x2ca78f){freeIsNotKey(_0x2ca78f,_0x2ea56a[_0x2c9bc5('0x2')],'id');for(let _0x317877=0x0,_0x2fd4fd={};_0x317877<_0x2ca78f[_0x2c9bc5('0x1')];_0x317877+=0x1){_0x2fd4fd=_0x2ca78f[_0x317877],_[_0x2c9bc5('0xb')](_0x2ea56a[_0x2c9bc5('0x2')][_0x2fd4fd['id']])?_0x2ea56a[_0x2c9bc5('0x2')][_0x2fd4fd['id']]=new OpenchannelQueue(_0x2fd4fd):_0x2ea56a['mergeFromDatabase'](_0x2ea56a[_0x2c9bc5('0x2')][_0x2fd4fd['id']],_0x2fd4fd),_0x2ea56a[_0x2c9bc5('0x2')][_0x2fd4fd['id']][_0x2c9bc5('0x22')](),_0x2ea56a['openchannelQueues'][_0x2fd4fd['id']][_0x2c9bc5('0x1f')]();}}return _0x2ea56a[_0x2c9bc5('0x2')];};},Realtime['prototype'][_0x565344('0x1c')]=function(){const _0x12721b=this;return function(_0x480af7){const _0x1431cb=a1172_0x5347;if(_0x480af7){freeIsNotKey(_0x480af7,_0x12721b[_0x1431cb('0x23')],'id');for(let _0x41c8fb=0x0,_0x45f728={};_0x41c8fb<_0x480af7[_0x1431cb('0x1')];_0x41c8fb+=0x1){_0x45f728=_0x480af7[_0x41c8fb],_['isUndefined'](_0x12721b['chatQueues'][_0x45f728['id']])?_0x12721b['chatQueues'][_0x45f728['id']]=new ChatQueue(_0x45f728):_0x12721b[_0x1431cb('0xf')](_0x12721b[_0x1431cb('0x23')][_0x45f728['id']],_0x45f728),_0x12721b[_0x1431cb('0x23')][_0x45f728['id']][_0x1431cb('0x22')](),_0x12721b[_0x1431cb('0x23')][_0x45f728['id']][_0x1431cb('0x1f')]();}}return _0x12721b['chatQueues'];};},Realtime[_0x565344('0x0')][_0x565344('0x4')]=function(){const _0x6362d0=this;return function(_0x5870b4){const _0x5b8284=a1172_0x5347;if(_0x5870b4){freeIsNotKey(_0x5870b4,_0x6362d0[_0x5b8284('0x3')],'id');for(let _0x298d6e=0x0,_0x163bce={};_0x298d6e<_0x5870b4[_0x5b8284('0x1')];_0x298d6e+=0x1){_0x163bce=_0x5870b4[_0x298d6e],_[_0x5b8284('0xb')](_0x6362d0[_0x5b8284('0x3')][_0x163bce['id']])?_0x6362d0[_0x5b8284('0x3')][_0x163bce['id']]=new SmsQueue(_0x163bce):_0x6362d0[_0x5b8284('0xf')](_0x6362d0[_0x5b8284('0x3')][_0x163bce['id']],_0x163bce),_0x6362d0[_0x5b8284('0x3')][_0x163bce['id']]['updateRouting'](),_0x6362d0[_0x5b8284('0x3')][_0x163bce['id']][_0x5b8284('0x1f')]();}}return _0x6362d0[_0x5b8284('0x3')];};},Realtime[_0x565344('0x0')][_0x565344('0x8')]=function(){const _0x7e1231=this;return function(_0x3a855d){const _0x3e5e9b=a1172_0x5347;if(_0x3a855d){freeIsNotKey(_0x3a855d,_0x7e1231[_0x3e5e9b('0x15')],'id');for(let _0x5b110b=0x0,_0x1fe31d={};_0x5b110b<_0x3a855d[_0x3e5e9b('0x1')];_0x5b110b+=0x1){_0x1fe31d=_0x3a855d[_0x5b110b],_[_0x3e5e9b('0xb')](_0x7e1231[_0x3e5e9b('0x15')][_0x1fe31d['id']])?_0x7e1231[_0x3e5e9b('0x15')][_0x1fe31d['id']]=new MailQueue(_0x1fe31d):_0x7e1231[_0x3e5e9b('0xf')](_0x7e1231[_0x3e5e9b('0x15')][_0x1fe31d['id']],_0x1fe31d),_0x7e1231['mailQueues'][_0x1fe31d['id']][_0x3e5e9b('0x22')](),_0x7e1231['mailQueues'][_0x1fe31d['id']][_0x3e5e9b('0x1f')]();}}return _0x7e1231['mailQueues'];};},Realtime[_0x565344('0x0')][_0x565344('0x20')]=function(){const _0x2d2493=this;return function(_0x17bd4a){const _0xf6984c=a1172_0x5347;if(_0x17bd4a){freeIsNotKey(_0x17bd4a,_0x2d2493[_0xf6984c('0xe')],'id');for(let _0x342f29=0x0,_0x964425={};_0x342f29<_0x17bd4a[_0xf6984c('0x1')];_0x342f29+=0x1){_0x964425=_0x17bd4a[_0x342f29],_['isUndefined'](_0x2d2493['faxQueues'][_0x964425['id']])?_0x2d2493[_0xf6984c('0xe')][_0x964425['id']]=new FaxQueue(_0x964425):_0x2d2493[_0xf6984c('0xf')](_0x2d2493['faxQueues'][_0x964425['id']],_0x964425),_0x2d2493[_0xf6984c('0xe')][_0x964425['id']][_0xf6984c('0x22')](),_0x2d2493['faxQueues'][_0x964425['id']][_0xf6984c('0x1f')]();}}return _0x2d2493[_0xf6984c('0xe')];};},Realtime[_0x565344('0x0')][_0x565344('0x12')]=function(){const _0x357bbe=this;return function(_0x2b36fc){const _0x26c45d=a1172_0x5347;if(_0x2b36fc){freeIsNotKey(_0x2b36fc,_0x357bbe[_0x26c45d('0x19')],'id');for(let _0x4bc844=0x0,_0x5b262a={};_0x4bc844<_0x2b36fc[_0x26c45d('0x1')];_0x4bc844+=0x1){_0x5b262a=_0x2b36fc[_0x4bc844],_['isUndefined'](_0x357bbe['whatsappQueues'][_0x5b262a['id']])?_0x357bbe[_0x26c45d('0x19')][_0x5b262a['id']]=new WhatsappQueue(_0x5b262a):_0x357bbe[_0x26c45d('0xf')](_0x357bbe[_0x26c45d('0x19')][_0x5b262a['id']],_0x5b262a),_0x357bbe[_0x26c45d('0x19')][_0x5b262a['id']][_0x26c45d('0x22')](),_0x357bbe['whatsappQueues'][_0x5b262a['id']][_0x26c45d('0x1f')]();}}return _0x357bbe[_0x26c45d('0x19')];};},module[_0x565344('0x6')]=Realtime; \ No newline at end of file +const a1173_0x4953=['../model/mailQueue','initOpenchannelQueues','faxQueues','../model/agent','initFaxQueues','isUndefined','prototype','smsQueuesWaitingInteractions','faxQueuesWaitingInteractions','initIntervals','../model/faxQueue','lodash','exports','length','intervals','chatQueues','agents','mailQueuesWaitingInteractions','openchannelQueues','../model/interval','initMailQueues','mailQueues','updateRealtime','initAgents','updateRouting','smsQueues','openchannelQueuesWaitingInteractions','undefined','chatQueuesWaitingInteractions','mapKeys','mergeFromDatabase','../model/chatQueue','whatsappQueues'];(function(_0x3c3e07,_0x495310){const _0x1d43e7=function(_0xce553c){while(--_0xce553c){_0x3c3e07['push'](_0x3c3e07['shift']());}};_0x1d43e7(++_0x495310);}(a1173_0x4953,0x16e));const a1173_0x1d43=function(_0x3c3e07,_0x495310){_0x3c3e07=_0x3c3e07-0x0;let _0x1d43e7=a1173_0x4953[_0x3c3e07];return _0x1d43e7;};const _0x47805d=a1173_0x1d43;'use strict';const _=require(_0x47805d('0x8')),Agent=require(_0x47805d('0x0')),Interval=require(_0x47805d('0x10')),OpenchannelQueue=require('../model/openchannelQueue'),ChatQueue=require(_0x47805d('0x1c')),SmsQueue=require('../model/smsQueue'),MailQueue=require(_0x47805d('0x1e')),FaxQueue=require(_0x47805d('0x7')),WhatsappQueue=require('../model/whatsappQueue'),Realtime=function(){const _0x356e6a=_0x47805d;this[_0x356e6a('0xd')]={},this[_0x356e6a('0xb')]={},this[_0x356e6a('0xf')]={},this[_0x356e6a('0xc')]={},this[_0x356e6a('0x16')]={},this['mailQueues']={},this[_0x356e6a('0x20')]={},this['whatsappQueues']={},this[_0x356e6a('0x19')]={},this[_0x356e6a('0xe')]={},this[_0x356e6a('0x17')]={},this[_0x356e6a('0x4')]={},this[_0x356e6a('0x5')]={},this['whatsappQueuesWaitingInteractions']={};};function freeIsNotKey(_0xce553c,_0x5ca832,_0x527ee2){const _0x274f3c=_0x47805d,_0x13cb54=_[_0x274f3c('0x1a')](_0xce553c,function(_0xea380){return _0xea380[_0x527ee2];});for(const _0xeb7472 in _0x5ca832){typeof _0x5ca832[_0xeb7472]!==_0x274f3c('0x18')&&(!_0x13cb54[_0xeb7472]&&delete _0x5ca832[_0xeb7472]);}}Realtime[_0x47805d('0x3')][_0x47805d('0x1b')]=function(_0x3adb92,_0x4d5ba9){for(const _0xb15fb9 in _0x4d5ba9){typeof _0x3adb92[_0xb15fb9]!=='undefined'&&(_0x3adb92[_0xb15fb9]=_0x4d5ba9[_0xb15fb9]);}},Realtime['prototype'][_0x47805d('0x14')]=function(){const _0x57a463=this;return function(_0x3dbb0f){const _0x4b4e90=a1173_0x1d43;if(_0x3dbb0f){freeIsNotKey(_0x3dbb0f,_0x57a463[_0x4b4e90('0xd')],'id');for(let _0x4be232=0x0,_0x568725={};_0x4be232<_0x3dbb0f['length'];_0x4be232+=0x1){_0x568725=_0x3dbb0f[_0x4be232],_[_0x4b4e90('0x2')](_0x57a463['agents'][_0x568725['id']])?_0x57a463[_0x4b4e90('0xd')][_0x568725['id']]=new Agent(_0x568725):_0x57a463[_0x4b4e90('0x1b')](_0x57a463[_0x4b4e90('0xd')][_0x568725['id']],_0x568725);}}return _0x57a463[_0x4b4e90('0xd')];};},Realtime[_0x47805d('0x3')][_0x47805d('0x6')]=function(){const _0x56ee08=this;return function(_0x31bab1){const _0xbdfec5=a1173_0x1d43;if(_0x31bab1){freeIsNotKey(_0x31bab1,_0x56ee08[_0xbdfec5('0xb')],'id');for(let _0x280ff5=0x0,_0x16e062={};_0x280ff5<_0x31bab1['length'];_0x280ff5+=0x1){_0x16e062=_0x31bab1[_0x280ff5],_[_0xbdfec5('0x2')](_0x56ee08['intervals'][_0x16e062['id']])?_0x56ee08['intervals'][_0x16e062['id']]=new Interval(_0x16e062):_0x56ee08['mergeFromDatabase'](_0x56ee08[_0xbdfec5('0xb')][_0x16e062['id']],_0x16e062);}}return _0x56ee08['intervals'];};},Realtime[_0x47805d('0x3')][_0x47805d('0x1f')]=function(){const _0x8edb0a=this;return function(_0x3f22eb){const _0x2f1d1d=a1173_0x1d43;if(_0x3f22eb){freeIsNotKey(_0x3f22eb,_0x8edb0a[_0x2f1d1d('0xf')],'id');for(let _0x2b9403=0x0,_0x38bb2f={};_0x2b9403<_0x3f22eb['length'];_0x2b9403+=0x1){_0x38bb2f=_0x3f22eb[_0x2b9403],_[_0x2f1d1d('0x2')](_0x8edb0a[_0x2f1d1d('0xf')][_0x38bb2f['id']])?_0x8edb0a[_0x2f1d1d('0xf')][_0x38bb2f['id']]=new OpenchannelQueue(_0x38bb2f):_0x8edb0a[_0x2f1d1d('0x1b')](_0x8edb0a[_0x2f1d1d('0xf')][_0x38bb2f['id']],_0x38bb2f),_0x8edb0a[_0x2f1d1d('0xf')][_0x38bb2f['id']][_0x2f1d1d('0x15')](),_0x8edb0a[_0x2f1d1d('0xf')][_0x38bb2f['id']][_0x2f1d1d('0x13')]();}}return _0x8edb0a[_0x2f1d1d('0xf')];};},Realtime['prototype']['initChatQueues']=function(){const _0x374a6e=this;return function(_0x37a438){const _0x3966b8=a1173_0x1d43;if(_0x37a438){freeIsNotKey(_0x37a438,_0x374a6e[_0x3966b8('0xc')],'id');for(let _0x1ecf8f=0x0,_0x57d225={};_0x1ecf8f<_0x37a438[_0x3966b8('0xa')];_0x1ecf8f+=0x1){_0x57d225=_0x37a438[_0x1ecf8f],_[_0x3966b8('0x2')](_0x374a6e[_0x3966b8('0xc')][_0x57d225['id']])?_0x374a6e[_0x3966b8('0xc')][_0x57d225['id']]=new ChatQueue(_0x57d225):_0x374a6e[_0x3966b8('0x1b')](_0x374a6e['chatQueues'][_0x57d225['id']],_0x57d225),_0x374a6e[_0x3966b8('0xc')][_0x57d225['id']]['updateRouting'](),_0x374a6e[_0x3966b8('0xc')][_0x57d225['id']][_0x3966b8('0x13')]();}}return _0x374a6e['chatQueues'];};},Realtime[_0x47805d('0x3')]['initSmsQueues']=function(){const _0x3359fe=this;return function(_0x572366){const _0x4941b8=a1173_0x1d43;if(_0x572366){freeIsNotKey(_0x572366,_0x3359fe[_0x4941b8('0x16')],'id');for(let _0x37d3c9=0x0,_0x45953c={};_0x37d3c9<_0x572366[_0x4941b8('0xa')];_0x37d3c9+=0x1){_0x45953c=_0x572366[_0x37d3c9],_[_0x4941b8('0x2')](_0x3359fe[_0x4941b8('0x16')][_0x45953c['id']])?_0x3359fe[_0x4941b8('0x16')][_0x45953c['id']]=new SmsQueue(_0x45953c):_0x3359fe[_0x4941b8('0x1b')](_0x3359fe[_0x4941b8('0x16')][_0x45953c['id']],_0x45953c),_0x3359fe[_0x4941b8('0x16')][_0x45953c['id']][_0x4941b8('0x15')](),_0x3359fe['smsQueues'][_0x45953c['id']][_0x4941b8('0x13')]();}}return _0x3359fe['smsQueues'];};},Realtime[_0x47805d('0x3')][_0x47805d('0x11')]=function(){const _0xe2dc73=this;return function(_0x40a6a5){const _0x23582a=a1173_0x1d43;if(_0x40a6a5){freeIsNotKey(_0x40a6a5,_0xe2dc73['mailQueues'],'id');for(let _0x115ffc=0x0,_0x544352={};_0x115ffc<_0x40a6a5[_0x23582a('0xa')];_0x115ffc+=0x1){_0x544352=_0x40a6a5[_0x115ffc],_[_0x23582a('0x2')](_0xe2dc73['mailQueues'][_0x544352['id']])?_0xe2dc73[_0x23582a('0x12')][_0x544352['id']]=new MailQueue(_0x544352):_0xe2dc73[_0x23582a('0x1b')](_0xe2dc73[_0x23582a('0x12')][_0x544352['id']],_0x544352),_0xe2dc73[_0x23582a('0x12')][_0x544352['id']][_0x23582a('0x15')](),_0xe2dc73[_0x23582a('0x12')][_0x544352['id']]['updateRealtime']();}}return _0xe2dc73[_0x23582a('0x12')];};},Realtime[_0x47805d('0x3')][_0x47805d('0x1')]=function(){const _0x578948=this;return function(_0x503c21){const _0x5d469b=a1173_0x1d43;if(_0x503c21){freeIsNotKey(_0x503c21,_0x578948['faxQueues'],'id');for(let _0x1a0858=0x0,_0x5f21e6={};_0x1a0858<_0x503c21[_0x5d469b('0xa')];_0x1a0858+=0x1){_0x5f21e6=_0x503c21[_0x1a0858],_[_0x5d469b('0x2')](_0x578948[_0x5d469b('0x20')][_0x5f21e6['id']])?_0x578948['faxQueues'][_0x5f21e6['id']]=new FaxQueue(_0x5f21e6):_0x578948[_0x5d469b('0x1b')](_0x578948[_0x5d469b('0x20')][_0x5f21e6['id']],_0x5f21e6),_0x578948['faxQueues'][_0x5f21e6['id']][_0x5d469b('0x15')](),_0x578948[_0x5d469b('0x20')][_0x5f21e6['id']]['updateRealtime']();}}return _0x578948[_0x5d469b('0x20')];};},Realtime[_0x47805d('0x3')]['initWhatsappQueues']=function(){const _0x547cec=this;return function(_0x2a2b51){const _0x1f6103=a1173_0x1d43;if(_0x2a2b51){freeIsNotKey(_0x2a2b51,_0x547cec[_0x1f6103('0x1d')],'id');for(let _0x5bccb2=0x0,_0x25d46c={};_0x5bccb2<_0x2a2b51[_0x1f6103('0xa')];_0x5bccb2+=0x1){_0x25d46c=_0x2a2b51[_0x5bccb2],_[_0x1f6103('0x2')](_0x547cec[_0x1f6103('0x1d')][_0x25d46c['id']])?_0x547cec[_0x1f6103('0x1d')][_0x25d46c['id']]=new WhatsappQueue(_0x25d46c):_0x547cec['mergeFromDatabase'](_0x547cec[_0x1f6103('0x1d')][_0x25d46c['id']],_0x25d46c),_0x547cec[_0x1f6103('0x1d')][_0x25d46c['id']][_0x1f6103('0x15')](),_0x547cec[_0x1f6103('0x1d')][_0x25d46c['id']][_0x1f6103('0x13')]();}}return _0x547cec[_0x1f6103('0x1d')];};},module[_0x47805d('0x9')]=Realtime; \ No newline at end of file diff --git a/server/services/routing/rpc/chatInteraction.js b/server/services/routing/rpc/chatInteraction.js index aa4d488..fb587e5 100644 --- a/server/services/routing/rpc/chatInteraction.js +++ b/server/services/routing/rpc/chatInteraction.js @@ -1 +1 @@ -const a1173_0x2d4b=['Request','addTagsToChatInteraction','UpdateChatInteraction','../client','addTags'];(function(_0x5a16c9,_0x2d4bbd){const _0x5ca0ba=function(_0x28436a){while(--_0x28436a){_0x5a16c9['push'](_0x5a16c9['shift']());}};_0x5ca0ba(++_0x2d4bbd);}(a1173_0x2d4b,0x166));const a1173_0x5ca0=function(_0x5a16c9,_0x2d4bbd){_0x5a16c9=_0x5a16c9-0x0;let _0x5ca0ba=a1173_0x2d4b[_0x5a16c9];return _0x5ca0ba;};const _0x124fa2=a1173_0x5ca0;'use strict';const client=require(_0x124fa2('0x0'));exports['update']=function(_0x28436a,_0x4f8fbc){const _0x581ee0=_0x124fa2;return client[_0x581ee0('0x2')](_0x581ee0('0x4'),{'body':_0x4f8fbc,'options':{'where':{'id':_0x28436a}},'log':'updateChatInteraction'});},exports[_0x124fa2('0x1')]=function(_0xf77bb4,_0x2b044e){const _0x47ce59=_0x124fa2;return client[_0x47ce59('0x2')]('AddTagsToChatInteraction',{'body':_0x2b044e,'options':{'where':{'id':_0xf77bb4}},'log':_0x47ce59('0x3')});}; \ No newline at end of file +const a1174_0x30ea=['updateChatInteraction','addTagsToChatInteraction','update','Request','UpdateChatInteraction','AddTagsToChatInteraction','../client'];(function(_0x4b8735,_0x30ea33){const _0xfa3128=function(_0x57d2c9){while(--_0x57d2c9){_0x4b8735['push'](_0x4b8735['shift']());}};_0xfa3128(++_0x30ea33);}(a1174_0x30ea,0x156));const a1174_0xfa31=function(_0x4b8735,_0x30ea33){_0x4b8735=_0x4b8735-0x0;let _0xfa3128=a1174_0x30ea[_0x4b8735];return _0xfa3128;};const _0x5cf1ed=a1174_0xfa31;'use strict';const client=require(_0x5cf1ed('0x0'));exports[_0x5cf1ed('0x3')]=function(_0x57d2c9,_0x468bf1){const _0x14c70b=_0x5cf1ed;return client[_0x14c70b('0x4')](_0x14c70b('0x5'),{'body':_0x468bf1,'options':{'where':{'id':_0x57d2c9}},'log':_0x14c70b('0x1')});},exports['addTags']=function(_0x2abd2e,_0xbbfb0e){const _0x2bd3c8=_0x5cf1ed;return client['Request'](_0x2bd3c8('0x6'),{'body':_0xbbfb0e,'options':{'where':{'id':_0x2abd2e}},'log':_0x2bd3c8('0x2')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatMessage.js b/server/services/routing/rpc/chatMessage.js index 77ded23..8079ea5 100644 --- a/server/services/routing/rpc/chatMessage.js +++ b/server/services/routing/rpc/chatMessage.js @@ -1 +1 @@ -const a1174_0x150f=['CreateChatMessage','Request','createChatMessage','../client'];(function(_0x2b6b62,_0x150fcc){const _0x3eb7e0=function(_0x5c2967){while(--_0x5c2967){_0x2b6b62['push'](_0x2b6b62['shift']());}};_0x3eb7e0(++_0x150fcc);}(a1174_0x150f,0x1b1));const a1174_0x3eb7=function(_0x2b6b62,_0x150fcc){_0x2b6b62=_0x2b6b62-0x0;let _0x3eb7e0=a1174_0x150f[_0x2b6b62];return _0x3eb7e0;};const _0x96456e=a1174_0x3eb7;'use strict';const client=require(_0x96456e('0x2'));exports['create']=function(_0x5c2967){const _0x42e788=_0x96456e;return client[_0x42e788('0x0')](_0x42e788('0x3'),{'body':_0x5c2967,'log':_0x42e788('0x1')});}; \ No newline at end of file +const a1175_0x4c7a=['../client','Request','createChatMessage'];(function(_0x2bf00f,_0x4c7aaa){const _0x4399be=function(_0x57af55){while(--_0x57af55){_0x2bf00f['push'](_0x2bf00f['shift']());}};_0x4399be(++_0x4c7aaa);}(a1175_0x4c7a,0x11b));const a1175_0x4399=function(_0x2bf00f,_0x4c7aaa){_0x2bf00f=_0x2bf00f-0x0;let _0x4399be=a1175_0x4c7a[_0x2bf00f];return _0x4399be;};const _0x3f4d26=a1175_0x4399;'use strict';const client=require(_0x3f4d26('0x2'));exports['create']=function(_0x57af55){const _0x490f6a=_0x3f4d26;return client[_0x490f6a('0x0')]('CreateChatMessage',{'body':_0x57af55,'log':_0x490f6a('0x1')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatQueue.js b/server/services/routing/rpc/chatQueue.js index 3e733a8..6528cba 100644 --- a/server/services/routing/rpc/chatQueue.js +++ b/server/services/routing/rpc/chatQueue.js @@ -1 +1 @@ -const a1175_0x23fe=['timeout','online','name','User','../client','strategy','Request','getChatQueues'];(function(_0x31b75b,_0x23fef9){const _0x2f4732=function(_0x143295){while(--_0x143295){_0x31b75b['push'](_0x31b75b['shift']());}};_0x2f4732(++_0x23fef9);}(a1175_0x23fe,0x1db));const a1175_0x2f47=function(_0x31b75b,_0x23fef9){_0x31b75b=_0x31b75b-0x0;let _0x2f4732=a1175_0x23fe[_0x31b75b];return _0x2f4732;};const _0x52d25a=a1175_0x2f47;'use strict';const client=require(_0x52d25a('0x1'));exports[_0x52d25a('0x4')]=function(){return function(){const _0x46f48c=a1175_0x2f47;return client[_0x46f48c('0x3')]('GetChatQueue',{'options':{'raw':![],'attributes':['id',_0x46f48c('0x7'),_0x46f48c('0x5'),_0x46f48c('0x2')],'include':[{'model':_0x46f48c('0x0'),'as':'Agents','attributes':['id',_0x46f48c('0x7'),_0x46f48c('0x6'),'chatPause']}]},'log':_0x46f48c('0x4')});};}; \ No newline at end of file +const a1176_0x3949=['../client','getChatQueues','Agents','online','strategy','chatPause','User','GetChatQueue','Request','name'];(function(_0x32d2b3,_0x39493c){const _0x4a961a=function(_0x338c2a){while(--_0x338c2a){_0x32d2b3['push'](_0x32d2b3['shift']());}};_0x4a961a(++_0x39493c);}(a1176_0x3949,0xfd));const a1176_0x4a96=function(_0x32d2b3,_0x39493c){_0x32d2b3=_0x32d2b3-0x0;let _0x4a961a=a1176_0x3949[_0x32d2b3];return _0x4a961a;};const _0x5826a7=a1176_0x4a96;'use strict';const client=require(_0x5826a7('0x7'));exports[_0x5826a7('0x8')]=function(){return function(){const _0x51f96c=a1176_0x4a96;return client[_0x51f96c('0x5')](_0x51f96c('0x4'),{'options':{'raw':![],'attributes':['id','name','timeout',_0x51f96c('0x1')],'include':[{'model':_0x51f96c('0x3'),'as':_0x51f96c('0x9'),'attributes':['id',_0x51f96c('0x6'),_0x51f96c('0x0'),_0x51f96c('0x2')]}]},'log':_0x51f96c('0x8')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/chatQueueReport.js b/server/services/routing/rpc/chatQueueReport.js index e7a700e..6581914 100644 --- a/server/services/routing/rpc/chatQueueReport.js +++ b/server/services/routing/rpc/chatQueueReport.js @@ -1 +1 @@ -const a1176_0x3e1b=['create','CreateChatQueueReport','UpdateChatQueueReport','../client','Request'];(function(_0xef94ea,_0x3e1bba){const _0x2a724e=function(_0x500d7f){while(--_0x500d7f){_0xef94ea['push'](_0xef94ea['shift']());}};_0x2a724e(++_0x3e1bba);}(a1176_0x3e1b,0xe0));const a1176_0x2a72=function(_0xef94ea,_0x3e1bba){_0xef94ea=_0xef94ea-0x0;let _0x2a724e=a1176_0x3e1b[_0xef94ea];return _0x2a724e;};const _0x5dab5c=a1176_0x2a72;'use strict';const client=require(_0x5dab5c('0x4'));exports[_0x5dab5c('0x1')]=function(_0x500d7f){const _0x34122a=_0x5dab5c;return client[_0x34122a('0x0')](_0x34122a('0x2'),{'body':_0x500d7f,'log':_0x34122a('0x2')});},exports['update']=function(_0x381319,_0xa4801f){const _0x2f2155=_0x5dab5c;return client[_0x2f2155('0x0')]('UpdateChatQueueReport',{'body':_0xa4801f,'options':{'where':{'uniqueid':_0x381319},'order':[['id','DESC']],'limit':0x1},'log':_0x2f2155('0x3')});}; \ No newline at end of file +const a1177_0x286b=['Request','DESC','../client','CreateChatQueueReport','UpdateChatQueueReport'];(function(_0x354f2f,_0x286bcd){const _0x52049b=function(_0x454bee){while(--_0x454bee){_0x354f2f['push'](_0x354f2f['shift']());}};_0x52049b(++_0x286bcd);}(a1177_0x286b,0x1c4));const a1177_0x5204=function(_0x354f2f,_0x286bcd){_0x354f2f=_0x354f2f-0x0;let _0x52049b=a1177_0x286b[_0x354f2f];return _0x52049b;};const _0x77dbf3=a1177_0x5204;'use strict';const client=require(_0x77dbf3('0x0'));exports['create']=function(_0x454bee){const _0x813097=_0x77dbf3;return client['Request']('CreateChatQueueReport',{'body':_0x454bee,'log':_0x813097('0x1')});},exports['update']=function(_0x41c3f1,_0x5d3298){const _0x37a25e=_0x77dbf3;return client[_0x37a25e('0x3')](_0x37a25e('0x2'),{'body':_0x5d3298,'options':{'where':{'uniqueid':_0x41c3f1},'order':[['id',_0x37a25e('0x4')]],'limit':0x1},'log':_0x37a25e('0x2')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxInteraction.js b/server/services/routing/rpc/faxInteraction.js index fe4a0ed..70a10e8 100644 --- a/server/services/routing/rpc/faxInteraction.js +++ b/server/services/routing/rpc/faxInteraction.js @@ -1 +1 @@ -const a1177_0x1c48=['Request','addTags','update','UpdateFaxInteraction','AddTagsToFaxInteraction','../client','updateFaxInteraction','addTagsToFaxInteraction'];(function(_0x4fe9ad,_0x1c48b5){const _0x502505=function(_0x53f007){while(--_0x53f007){_0x4fe9ad['push'](_0x4fe9ad['shift']());}};_0x502505(++_0x1c48b5);}(a1177_0x1c48,0x14c));const a1177_0x5025=function(_0x4fe9ad,_0x1c48b5){_0x4fe9ad=_0x4fe9ad-0x0;let _0x502505=a1177_0x1c48[_0x4fe9ad];return _0x502505;};const _0x6d746d=a1177_0x5025;'use strict';const client=require(_0x6d746d('0x1'));exports[_0x6d746d('0x6')]=function(_0x53f007,_0x4748cf){const _0x41a56e=_0x6d746d;return client[_0x41a56e('0x4')](_0x41a56e('0x7'),{'body':_0x4748cf,'options':{'where':{'id':_0x53f007}},'log':_0x41a56e('0x2')});},exports[_0x6d746d('0x5')]=function(_0x37e323,_0xc64519){const _0x1333e8=_0x6d746d;return client['Request'](_0x1333e8('0x0'),{'body':_0xc64519,'options':{'where':{'id':_0x37e323}},'log':_0x1333e8('0x3')});}; \ No newline at end of file +const a1178_0x3a36=['UpdateFaxInteraction','../client','Request','update'];(function(_0x2cb418,_0x3a368e){const _0x3f84bb=function(_0x4c7d05){while(--_0x4c7d05){_0x2cb418['push'](_0x2cb418['shift']());}};_0x3f84bb(++_0x3a368e);}(a1178_0x3a36,0xe5));const a1178_0x3f84=function(_0x2cb418,_0x3a368e){_0x2cb418=_0x2cb418-0x0;let _0x3f84bb=a1178_0x3a36[_0x2cb418];return _0x3f84bb;};const _0x14ea6b=a1178_0x3f84;'use strict';const client=require(_0x14ea6b('0x0'));exports[_0x14ea6b('0x2')]=function(_0x4c7d05,_0x3f31c2){const _0x944a30=_0x14ea6b;return client[_0x944a30('0x1')](_0x944a30('0x3'),{'body':_0x3f31c2,'options':{'where':{'id':_0x4c7d05}},'log':'updateFaxInteraction'});},exports['addTags']=function(_0x25bd11,_0x1bae6e){const _0x287758=_0x14ea6b;return client[_0x287758('0x1')]('AddTagsToFaxInteraction',{'body':_0x1bae6e,'options':{'where':{'id':_0x25bd11}},'log':'addTagsToFaxInteraction'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxMessage.js b/server/services/routing/rpc/faxMessage.js index 935432f..0baa098 100644 --- a/server/services/routing/rpc/faxMessage.js +++ b/server/services/routing/rpc/faxMessage.js @@ -1 +1 @@ -const a1178_0x2335=['../client','createFaxMessage','Request','CreateFaxMessage'];(function(_0x4282c9,_0x2335da){const _0x9cd5e4=function(_0x19f09f){while(--_0x19f09f){_0x4282c9['push'](_0x4282c9['shift']());}};_0x9cd5e4(++_0x2335da);}(a1178_0x2335,0xc7));const a1178_0x9cd5=function(_0x4282c9,_0x2335da){_0x4282c9=_0x4282c9-0x0;let _0x9cd5e4=a1178_0x2335[_0x4282c9];return _0x9cd5e4;};const _0x58174f=a1178_0x9cd5;'use strict';const client=require(_0x58174f('0x1'));exports['create']=function(_0x19f09f){const _0x476689=_0x58174f;return client[_0x476689('0x3')](_0x476689('0x0'),{'body':_0x19f09f,'log':_0x476689('0x2')});}; \ No newline at end of file +const a1179_0xe5aa=['../client','createFaxMessage'];(function(_0x4c88f8,_0xe5aaa4){const _0x42bed7=function(_0x69858c){while(--_0x69858c){_0x4c88f8['push'](_0x4c88f8['shift']());}};_0x42bed7(++_0xe5aaa4);}(a1179_0xe5aa,0x1f1));const a1179_0x42be=function(_0x4c88f8,_0xe5aaa4){_0x4c88f8=_0x4c88f8-0x0;let _0x42bed7=a1179_0xe5aa[_0x4c88f8];return _0x42bed7;};const _0x4cd25f=a1179_0x42be;'use strict';const client=require(_0x4cd25f('0x1'));exports['create']=function(_0x69858c){const _0x3d6e46=_0x4cd25f;return client['Request']('CreateFaxMessage',{'body':_0x69858c,'log':_0x3d6e46('0x0')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxQueue.js b/server/services/routing/rpc/faxQueue.js index 37c0c98..d4cf179 100644 --- a/server/services/routing/rpc/faxQueue.js +++ b/server/services/routing/rpc/faxQueue.js @@ -1 +1 @@ -const a1179_0x152f=['Request','timeout','getFaxQueues','name','online','User','GetFaxQueue','faxPause','../client'];(function(_0x1e15c5,_0x152f61){const _0x44bcc8=function(_0x1633cc){while(--_0x1633cc){_0x1e15c5['push'](_0x1e15c5['shift']());}};_0x44bcc8(++_0x152f61);}(a1179_0x152f,0x170));const a1179_0x44bc=function(_0x1e15c5,_0x152f61){_0x1e15c5=_0x1e15c5-0x0;let _0x44bcc8=a1179_0x152f[_0x1e15c5];return _0x44bcc8;};const _0x54c589=a1179_0x44bc;'use strict';const client=require(_0x54c589('0x0'));exports[_0x54c589('0x3')]=function(){return function(){const _0x17d52d=a1179_0x44bc;return client[_0x17d52d('0x1')](_0x17d52d('0x7'),{'options':{'raw':![],'attributes':['id',_0x17d52d('0x4'),_0x17d52d('0x2'),'strategy'],'include':[{'model':_0x17d52d('0x6'),'as':'Agents','attributes':['id','name',_0x17d52d('0x5'),_0x17d52d('0x8')]}]},'log':'getFaxQueues'});};}; \ No newline at end of file +const a1180_0x3fce=['online','timeout','getFaxQueues','faxPause','User','Agents','strategy','Request','name','GetFaxQueue'];(function(_0x53ee58,_0x3fced4){const _0x366929=function(_0x5eb67f){while(--_0x5eb67f){_0x53ee58['push'](_0x53ee58['shift']());}};_0x366929(++_0x3fced4);}(a1180_0x3fce,0x1d6));const a1180_0x3669=function(_0x53ee58,_0x3fced4){_0x53ee58=_0x53ee58-0x0;let _0x366929=a1180_0x3fce[_0x53ee58];return _0x366929;};const _0x100775=a1180_0x3669;'use strict';const client=require('../client');exports[_0x100775('0x2')]=function(){return function(){const _0x3a5b27=a1180_0x3669;return client[_0x3a5b27('0x7')](_0x3a5b27('0x9'),{'options':{'raw':![],'attributes':['id',_0x3a5b27('0x8'),_0x3a5b27('0x1'),_0x3a5b27('0x6')],'include':[{'model':_0x3a5b27('0x4'),'as':_0x3a5b27('0x5'),'attributes':['id',_0x3a5b27('0x8'),_0x3a5b27('0x0'),_0x3a5b27('0x3')]}]},'log':_0x3a5b27('0x2')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/faxQueueReport.js b/server/services/routing/rpc/faxQueueReport.js index 2c9cd8a..ab09a5a 100644 --- a/server/services/routing/rpc/faxQueueReport.js +++ b/server/services/routing/rpc/faxQueueReport.js @@ -1 +1 @@ -const a1180_0x17f9=['../client','UpdateFaxQueueReport','update','create','CreateFaxQueueReport','DESC','Request'];(function(_0xf804ba,_0x17f9ad){const _0x29d767=function(_0x3545d4){while(--_0x3545d4){_0xf804ba['push'](_0xf804ba['shift']());}};_0x29d767(++_0x17f9ad);}(a1180_0x17f9,0x1df));const a1180_0x29d7=function(_0xf804ba,_0x17f9ad){_0xf804ba=_0xf804ba-0x0;let _0x29d767=a1180_0x17f9[_0xf804ba];return _0x29d767;};const _0xd73e88=a1180_0x29d7;'use strict';const client=require(_0xd73e88('0x4'));exports[_0xd73e88('0x0')]=function(_0x3545d4){const _0x311123=_0xd73e88;return client[_0x311123('0x3')]('CreateFaxQueueReport',{'body':_0x3545d4,'log':_0x311123('0x1')});},exports[_0xd73e88('0x6')]=function(_0x1cf976,_0x4d6fda){const _0xb1d420=_0xd73e88;return client[_0xb1d420('0x3')](_0xb1d420('0x5'),{'body':_0x4d6fda,'options':{'where':{'uniqueid':_0x1cf976},'order':[['id',_0xb1d420('0x2')]],'limit':0x1},'log':_0xb1d420('0x5')});}; \ No newline at end of file +const a1181_0x59f6=['../client','CreateFaxQueueReport','create','UpdateFaxQueueReport','Request','DESC'];(function(_0x38f749,_0x59f6cb){const _0x289d54=function(_0x4157cd){while(--_0x4157cd){_0x38f749['push'](_0x38f749['shift']());}};_0x289d54(++_0x59f6cb);}(a1181_0x59f6,0x170));const a1181_0x289d=function(_0x38f749,_0x59f6cb){_0x38f749=_0x38f749-0x0;let _0x289d54=a1181_0x59f6[_0x38f749];return _0x289d54;};const _0x4b3d38=a1181_0x289d;'use strict';const client=require(_0x4b3d38('0x4'));exports[_0x4b3d38('0x0')]=function(_0x4157cd){const _0x26c829=_0x4b3d38;return client[_0x26c829('0x2')](_0x26c829('0x5'),{'body':_0x4157cd,'log':_0x26c829('0x5')});},exports['update']=function(_0x1c0d00,_0x534ece){const _0x2cede9=_0x4b3d38;return client[_0x2cede9('0x2')](_0x2cede9('0x1'),{'body':_0x534ece,'options':{'where':{'uniqueid':_0x1c0d00},'order':[['id',_0x2cede9('0x3')]],'limit':0x1},'log':_0x2cede9('0x1')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/interval.js b/server/services/routing/rpc/interval.js index 2044737..e590d99 100644 --- a/server/services/routing/rpc/interval.js +++ b/server/services/routing/rpc/interval.js @@ -1 +1 @@ -const a1181_0x3ddb=['Request','GetInterval','../client','getIntervals','Interval','name','Intervals'];(function(_0x28e5b5,_0x3ddbff){const _0x15acfa=function(_0x2faf86){while(--_0x2faf86){_0x28e5b5['push'](_0x28e5b5['shift']());}};_0x15acfa(++_0x3ddbff);}(a1181_0x3ddb,0x16c));const a1181_0x15ac=function(_0x28e5b5,_0x3ddbff){_0x28e5b5=_0x28e5b5-0x0;let _0x15acfa=a1181_0x3ddb[_0x28e5b5];return _0x15acfa;};const _0x47505f=a1181_0x15ac;'use strict';const client=require(_0x47505f('0x2'));exports[_0x47505f('0x3')]=function(){return function(){const _0x597093=a1181_0x15ac;return client[_0x597093('0x0')](_0x597093('0x1'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id','name'],'include':[{'model':_0x597093('0x4'),'as':_0x597093('0x6'),'attributes':['id',_0x597093('0x5'),'interval']}]},'log':'getIntervals'});};}; \ No newline at end of file +const a1182_0x254d=['Intervals','../client','interval','GetInterval','Interval','getIntervals','name'];(function(_0x4b1382,_0x254d0a){const _0x34ca44=function(_0x5234da){while(--_0x5234da){_0x4b1382['push'](_0x4b1382['shift']());}};_0x34ca44(++_0x254d0a);}(a1182_0x254d,0x102));const a1182_0x34ca=function(_0x4b1382,_0x254d0a){_0x4b1382=_0x4b1382-0x0;let _0x34ca44=a1182_0x254d[_0x4b1382];return _0x34ca44;};const _0x2fb2d9=a1182_0x34ca;'use strict';const client=require(_0x2fb2d9('0x2'));exports[_0x2fb2d9('0x6')]=function(){return function(){const _0x4e0289=a1182_0x34ca;return client['Request'](_0x4e0289('0x4'),{'options':{'raw':![],'where':{'IntervalId':null},'attributes':['id',_0x4e0289('0x0')],'include':[{'model':_0x4e0289('0x5'),'as':_0x4e0289('0x1'),'attributes':['id',_0x4e0289('0x0'),_0x4e0289('0x3')]}]},'log':_0x4e0289('0x6')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailInteraction.js b/server/services/routing/rpc/mailInteraction.js index f83e5b2..25f2f12 100644 --- a/server/services/routing/rpc/mailInteraction.js +++ b/server/services/routing/rpc/mailInteraction.js @@ -1 +1 @@ -const a1182_0x2ca8=['addTagsToChatInteraction','update','addTags','Request'];(function(_0x318ee6,_0x2ca8d1){const _0x207bfb=function(_0x507761){while(--_0x507761){_0x318ee6['push'](_0x318ee6['shift']());}};_0x207bfb(++_0x2ca8d1);}(a1182_0x2ca8,0x14b));const a1182_0x207b=function(_0x318ee6,_0x2ca8d1){_0x318ee6=_0x318ee6-0x0;let _0x207bfb=a1182_0x2ca8[_0x318ee6];return _0x207bfb;};const _0x1ddd25=a1182_0x207b;'use strict';const client=require('../client');exports[_0x1ddd25('0x2')]=function(_0x507761,_0xc4b19c){const _0x590017=_0x1ddd25;return client[_0x590017('0x0')]('UpdateMailInteraction',{'body':_0xc4b19c,'options':{'where':{'id':_0x507761}},'log':'updateMailInteraction'});},exports[_0x1ddd25('0x3')]=function(_0xf6ae21,_0x23bf5c){const _0x1d5aea=_0x1ddd25;return client[_0x1d5aea('0x0')]('AddTagsToMailInteraction',{'body':_0x23bf5c,'options':{'where':{'id':_0xf6ae21}},'log':_0x1d5aea('0x1')});}; \ No newline at end of file +const a1183_0x26c5=['AddTagsToMailInteraction','addTags','Request','../client'];(function(_0xdf8bcc,_0x26c5ed){const _0x3436f9=function(_0x201160){while(--_0x201160){_0xdf8bcc['push'](_0xdf8bcc['shift']());}};_0x3436f9(++_0x26c5ed);}(a1183_0x26c5,0xfd));const a1183_0x3436=function(_0xdf8bcc,_0x26c5ed){_0xdf8bcc=_0xdf8bcc-0x0;let _0x3436f9=a1183_0x26c5[_0xdf8bcc];return _0x3436f9;};const _0x58baf9=a1183_0x3436;'use strict';const client=require(_0x58baf9('0x2'));exports['update']=function(_0x201160,_0xa5033f){const _0x1d5660=_0x58baf9;return client[_0x1d5660('0x1')]('UpdateMailInteraction',{'body':_0xa5033f,'options':{'where':{'id':_0x201160}},'log':'updateMailInteraction'});},exports[_0x58baf9('0x0')]=function(_0x1a32ab,_0x462e9b){const _0x408695=_0x58baf9;return client['Request'](_0x408695('0x3'),{'body':_0x462e9b,'options':{'where':{'id':_0x1a32ab}},'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 2b1ef5b..052e16b 100644 --- a/server/services/routing/rpc/mailMessage.js +++ b/server/services/routing/rpc/mailMessage.js @@ -1 +1 @@ -const a1183_0x4bf4=['create','createMailMessage','../client','CreateMailMessage','Request'];(function(_0x583555,_0x4bf433){const _0x3aa7e6=function(_0x164a43){while(--_0x164a43){_0x583555['push'](_0x583555['shift']());}};_0x3aa7e6(++_0x4bf433);}(a1183_0x4bf4,0x166));const a1183_0x3aa7=function(_0x583555,_0x4bf433){_0x583555=_0x583555-0x0;let _0x3aa7e6=a1183_0x4bf4[_0x583555];return _0x3aa7e6;};const _0x17be0d=a1183_0x3aa7;'use strict';const client=require(_0x17be0d('0x4'));exports[_0x17be0d('0x2')]=function(_0x164a43){const _0x4b19ba=_0x17be0d;return client[_0x4b19ba('0x1')](_0x4b19ba('0x0'),{'body':_0x164a43,'log':_0x4b19ba('0x3')});}; \ No newline at end of file +const a1184_0x568f=['../client','createMailMessage'];(function(_0x4f2e4b,_0x568ff2){const _0x1cc734=function(_0x26a544){while(--_0x26a544){_0x4f2e4b['push'](_0x4f2e4b['shift']());}};_0x1cc734(++_0x568ff2);}(a1184_0x568f,0xce));const a1184_0x1cc7=function(_0x4f2e4b,_0x568ff2){_0x4f2e4b=_0x4f2e4b-0x0;let _0x1cc734=a1184_0x568f[_0x4f2e4b];return _0x1cc734;};const _0x5505ab=a1184_0x1cc7;'use strict';const client=require(_0x5505ab('0x0'));exports['create']=function(_0x26a544){const _0x53d88b=_0x5505ab;return client['Request']('CreateMailMessage',{'body':_0x26a544,'log':_0x53d88b('0x1')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailQueue.js b/server/services/routing/rpc/mailQueue.js index 51adcb3..515c337 100644 --- a/server/services/routing/rpc/mailQueue.js +++ b/server/services/routing/rpc/mailQueue.js @@ -1 +1 @@ -const a1184_0x33c3=['timeout','getMailQueues','Agents','mailPause','online','GetMailQueue','name'];(function(_0x62f333,_0x33c38b){const _0x4af15e=function(_0x51364c){while(--_0x51364c){_0x62f333['push'](_0x62f333['shift']());}};_0x4af15e(++_0x33c38b);}(a1184_0x33c3,0x79));const a1184_0x4af1=function(_0x62f333,_0x33c38b){_0x62f333=_0x62f333-0x0;let _0x4af15e=a1184_0x33c3[_0x62f333];return _0x4af15e;};const _0x216a17=a1184_0x4af1;'use strict';const client=require('../client');exports[_0x216a17('0x6')]=function(){return function(){const _0x29c981=a1184_0x4af1;return client['Request'](_0x29c981('0x3'),{'options':{'raw':![],'attributes':['id',_0x29c981('0x4'),_0x29c981('0x5'),'strategy'],'include':[{'model':'User','as':_0x29c981('0x0'),'attributes':['id',_0x29c981('0x4'),_0x29c981('0x2'),_0x29c981('0x1')]}]},'log':_0x29c981('0x6')});};}; \ No newline at end of file +const a1185_0x1ffe=['getMailQueues','name','Request','online','../client','Agents','User'];(function(_0x3a5835,_0x1ffe6e){const _0x4cfd2e=function(_0x37cb5e){while(--_0x37cb5e){_0x3a5835['push'](_0x3a5835['shift']());}};_0x4cfd2e(++_0x1ffe6e);}(a1185_0x1ffe,0x1ca));const a1185_0x4cfd=function(_0x3a5835,_0x1ffe6e){_0x3a5835=_0x3a5835-0x0;let _0x4cfd2e=a1185_0x1ffe[_0x3a5835];return _0x4cfd2e;};const _0x3c7843=a1185_0x4cfd;'use strict';const client=require(_0x3c7843('0x1'));exports[_0x3c7843('0x4')]=function(){return function(){const _0x447843=a1185_0x4cfd;return client[_0x447843('0x6')]('GetMailQueue',{'options':{'raw':![],'attributes':['id',_0x447843('0x5'),'timeout','strategy'],'include':[{'model':_0x447843('0x3'),'as':_0x447843('0x2'),'attributes':['id',_0x447843('0x5'),_0x447843('0x0'),'mailPause']}]},'log':_0x447843('0x4')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/mailQueueReport.js b/server/services/routing/rpc/mailQueueReport.js index bb4e65a..aae1bbd 100644 --- a/server/services/routing/rpc/mailQueueReport.js +++ b/server/services/routing/rpc/mailQueueReport.js @@ -1 +1 @@ -const a1185_0x152d=['../client','UpdateMailQueueReport','create','update','Request','CreateMailQueueReport'];(function(_0xf4483d,_0x152de7){const _0x1361d8=function(_0x223d8a){while(--_0x223d8a){_0xf4483d['push'](_0xf4483d['shift']());}};_0x1361d8(++_0x152de7);}(a1185_0x152d,0x189));const a1185_0x1361=function(_0xf4483d,_0x152de7){_0xf4483d=_0xf4483d-0x0;let _0x1361d8=a1185_0x152d[_0xf4483d];return _0x1361d8;};const _0x4e4452=a1185_0x1361;'use strict';const client=require(_0x4e4452('0x3'));exports[_0x4e4452('0x5')]=function(_0x223d8a){const _0x58ae50=_0x4e4452;return client[_0x58ae50('0x1')](_0x58ae50('0x2'),{'body':_0x223d8a,'log':_0x58ae50('0x2')});},exports[_0x4e4452('0x0')]=function(_0x295d1e,_0x520686){const _0x4de4c4=_0x4e4452;return client['Request']('UpdateMailQueueReport',{'body':_0x520686,'options':{'where':{'uniqueid':_0x295d1e},'order':[['id','DESC']],'limit':0x1},'log':_0x4de4c4('0x4')});}; \ No newline at end of file +const a1186_0x48c5=['../client','CreateMailQueueReport','UpdateMailQueueReport','DESC','Request'];(function(_0x114214,_0x48c51b){const _0x21de05=function(_0x59a235){while(--_0x59a235){_0x114214['push'](_0x114214['shift']());}};_0x21de05(++_0x48c51b);}(a1186_0x48c5,0x9c));const a1186_0x21de=function(_0x114214,_0x48c51b){_0x114214=_0x114214-0x0;let _0x21de05=a1186_0x48c5[_0x114214];return _0x21de05;};const _0x16ebfa=a1186_0x21de;'use strict';const client=require(_0x16ebfa('0x4'));exports['create']=function(_0x59a235){const _0x3b2be9=_0x16ebfa;return client['Request'](_0x3b2be9('0x0'),{'body':_0x59a235,'log':_0x3b2be9('0x0')});},exports['update']=function(_0x18ef2d,_0x113746){const _0x2f7bd1=_0x16ebfa;return client[_0x2f7bd1('0x3')](_0x2f7bd1('0x1'),{'body':_0x113746,'options':{'where':{'uniqueid':_0x18ef2d},'order':[['id',_0x2f7bd1('0x2')]],'limit':0x1},'log':_0x2f7bd1('0x1')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelInteraction.js b/server/services/routing/rpc/openchannelInteraction.js index 72cc0e9..833b2a3 100644 --- a/server/services/routing/rpc/openchannelInteraction.js +++ b/server/services/routing/rpc/openchannelInteraction.js @@ -1 +1 @@ -const a1186_0x364f=['AddTagsToOpenchannelInteraction','UpdateOpenchannelInteraction','Request','update','addTagsToChatInteraction'];(function(_0x476c67,_0x364f2b){const _0x590183=function(_0x5afbe0){while(--_0x5afbe0){_0x476c67['push'](_0x476c67['shift']());}};_0x590183(++_0x364f2b);}(a1186_0x364f,0x92));const a1186_0x5901=function(_0x476c67,_0x364f2b){_0x476c67=_0x476c67-0x0;let _0x590183=a1186_0x364f[_0x476c67];return _0x590183;};const _0x2f145b=a1186_0x5901;'use strict';const client=require('../client');exports[_0x2f145b('0x2')]=function(_0x5afbe0,_0x1b2aa5){const _0x2d9381=_0x2f145b;return client[_0x2d9381('0x1')](_0x2d9381('0x0'),{'body':_0x1b2aa5,'options':{'where':{'id':_0x5afbe0}},'log':'updateOpenchannelInteraction'});},exports['addTags']=function(_0x104449,_0x54920e){const _0xee984=_0x2f145b;return client['Request'](_0xee984('0x4'),{'body':_0x54920e,'options':{'where':{'id':_0x104449}},'log':_0xee984('0x3')});}; \ No newline at end of file +const a1187_0x2eb3=['updateOpenchannelInteraction','addTagsToChatInteraction','Request','UpdateOpenchannelInteraction','update','addTags','AddTagsToOpenchannelInteraction'];(function(_0x18ef64,_0x2eb3cd){const _0x132dbf=function(_0x5d8dc2){while(--_0x5d8dc2){_0x18ef64['push'](_0x18ef64['shift']());}};_0x132dbf(++_0x2eb3cd);}(a1187_0x2eb3,0x1d2));const a1187_0x132d=function(_0x18ef64,_0x2eb3cd){_0x18ef64=_0x18ef64-0x0;let _0x132dbf=a1187_0x2eb3[_0x18ef64];return _0x132dbf;};const _0x25eabb=a1187_0x132d;'use strict';const client=require('../client');exports[_0x25eabb('0x0')]=function(_0x5d8dc2,_0x4b76b9){const _0xc0e92a=_0x25eabb;return client[_0xc0e92a('0x5')](_0xc0e92a('0x6'),{'body':_0x4b76b9,'options':{'where':{'id':_0x5d8dc2}},'log':_0xc0e92a('0x3')});},exports[_0x25eabb('0x1')]=function(_0x2668a5,_0x3719b9){const _0x3bdfc2=_0x25eabb;return client['Request'](_0x3bdfc2('0x2'),{'body':_0x3719b9,'options':{'where':{'id':_0x2668a5}},'log':_0x3bdfc2('0x4')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelMessage.js b/server/services/routing/rpc/openchannelMessage.js index 5b360e6..e6cface 100644 --- a/server/services/routing/rpc/openchannelMessage.js +++ b/server/services/routing/rpc/openchannelMessage.js @@ -1 +1 @@ -const a1187_0x368a=['CreateOpenchannelMessage','Request'];(function(_0x3510e9,_0x368a08){const _0x48b289=function(_0x3598a8){while(--_0x3598a8){_0x3510e9['push'](_0x3510e9['shift']());}};_0x48b289(++_0x368a08);}(a1187_0x368a,0xc0));const a1187_0x48b2=function(_0x3510e9,_0x368a08){_0x3510e9=_0x3510e9-0x0;let _0x48b289=a1187_0x368a[_0x3510e9];return _0x48b289;};'use strict';const client=require('../client');exports['create']=function(_0x3598a8){const _0x223f5a=a1187_0x48b2;return client[_0x223f5a('0x1')](_0x223f5a('0x0'),{'body':_0x3598a8,'log':'createOpenchannelMessage'});}; \ No newline at end of file +const a1188_0x3a03=['createOpenchannelMessage','../client','Request'];(function(_0x5401b9,_0x3a033c){const _0x440cbf=function(_0x509c47){while(--_0x509c47){_0x5401b9['push'](_0x5401b9['shift']());}};_0x440cbf(++_0x3a033c);}(a1188_0x3a03,0x70));const a1188_0x440c=function(_0x5401b9,_0x3a033c){_0x5401b9=_0x5401b9-0x0;let _0x440cbf=a1188_0x3a03[_0x5401b9];return _0x440cbf;};const _0x54b710=a1188_0x440c;'use strict';const client=require(_0x54b710('0x0'));exports['create']=function(_0x509c47){const _0x3d3d1d=_0x54b710;return client[_0x3d3d1d('0x1')]('CreateOpenchannelMessage',{'body':_0x509c47,'log':_0x3d3d1d('0x2')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelQueue.js b/server/services/routing/rpc/openchannelQueue.js index 7782575..a0ee26a 100644 --- a/server/services/routing/rpc/openchannelQueue.js +++ b/server/services/routing/rpc/openchannelQueue.js @@ -1 +1 @@ -const a1188_0x14e4=['getOpenchannelQueues','Request','../client','openchannelPause','name','Agents','GetOpenchannelQueue'];(function(_0x14769a,_0x14e485){const _0x2158e0=function(_0x22a374){while(--_0x22a374){_0x14769a['push'](_0x14769a['shift']());}};_0x2158e0(++_0x14e485);}(a1188_0x14e4,0xdc));const a1188_0x2158=function(_0x14769a,_0x14e485){_0x14769a=_0x14769a-0x0;let _0x2158e0=a1188_0x14e4[_0x14769a];return _0x2158e0;};const _0x47c991=a1188_0x2158;'use strict';const client=require(_0x47c991('0x6'));exports['getOpenchannelQueues']=function(){return function(){const _0x58ab3c=a1188_0x2158;return client[_0x58ab3c('0x5')](_0x58ab3c('0x3'),{'options':{'raw':![],'attributes':['id',_0x58ab3c('0x1'),'timeout','strategy'],'include':[{'model':'User','as':_0x58ab3c('0x2'),'attributes':['id','name','online',_0x58ab3c('0x0')]}]},'log':_0x58ab3c('0x4')});};}; \ No newline at end of file +const a1189_0x573d=['User','online','getOpenchannelQueues','openchannelPause','Request','name','../client'];(function(_0x3ddd58,_0x573d81){const _0x465489=function(_0xa7623b){while(--_0xa7623b){_0x3ddd58['push'](_0x3ddd58['shift']());}};_0x465489(++_0x573d81);}(a1189_0x573d,0x123));const a1189_0x4654=function(_0x3ddd58,_0x573d81){_0x3ddd58=_0x3ddd58-0x0;let _0x465489=a1189_0x573d[_0x3ddd58];return _0x465489;};const _0x6bedd8=a1189_0x4654;'use strict';const client=require(_0x6bedd8('0x2'));exports[_0x6bedd8('0x5')]=function(){return function(){const _0x551b2c=a1189_0x4654;return client[_0x551b2c('0x0')]('GetOpenchannelQueue',{'options':{'raw':![],'attributes':['id',_0x551b2c('0x1'),'timeout','strategy'],'include':[{'model':_0x551b2c('0x3'),'as':'Agents','attributes':['id',_0x551b2c('0x1'),_0x551b2c('0x4'),_0x551b2c('0x6')]}]},'log':_0x551b2c('0x5')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/openchannelQueueReport.js b/server/services/routing/rpc/openchannelQueueReport.js index a3cae10..2c65a38 100644 --- a/server/services/routing/rpc/openchannelQueueReport.js +++ b/server/services/routing/rpc/openchannelQueueReport.js @@ -1 +1 @@ -const a1189_0x3a55=['Request','update','../client','CreateOpenchannelQueueReport'];(function(_0x24d86b,_0x3a5552){const _0x2b9a29=function(_0x16b43a){while(--_0x16b43a){_0x24d86b['push'](_0x24d86b['shift']());}};_0x2b9a29(++_0x3a5552);}(a1189_0x3a55,0x1ee));const a1189_0x2b9a=function(_0x24d86b,_0x3a5552){_0x24d86b=_0x24d86b-0x0;let _0x2b9a29=a1189_0x3a55[_0x24d86b];return _0x2b9a29;};const _0x40b917=a1189_0x2b9a;'use strict';const client=require(_0x40b917('0x0'));exports['create']=function(_0x16b43a){const _0x439bec=_0x40b917;return client[_0x439bec('0x2')](_0x439bec('0x1'),{'body':_0x16b43a,'log':_0x439bec('0x1')});},exports[_0x40b917('0x3')]=function(_0x27d4f7,_0x4fca2a){return client['Request']('UpdateOpenchannelQueueReport',{'body':_0x4fca2a,'options':{'where':{'uniqueid':_0x27d4f7},'order':[['id','DESC']],'limit':0x1},'log':'UpdateOpenchannelQueueReport'});}; \ No newline at end of file +const a1190_0x4544=['CreateOpenchannelQueueReport','create','DESC','Request'];(function(_0x4b6e3c,_0x454456){const _0x29f71c=function(_0x1b8280){while(--_0x1b8280){_0x4b6e3c['push'](_0x4b6e3c['shift']());}};_0x29f71c(++_0x454456);}(a1190_0x4544,0xf4));const a1190_0x29f7=function(_0x4b6e3c,_0x454456){_0x4b6e3c=_0x4b6e3c-0x0;let _0x29f71c=a1190_0x4544[_0x4b6e3c];return _0x29f71c;};const _0x27f5c3=a1190_0x29f7;'use strict';const client=require('../client');exports[_0x27f5c3('0x1')]=function(_0x1b8280){const _0x1e1b7f=_0x27f5c3;return client[_0x1e1b7f('0x3')](_0x1e1b7f('0x0'),{'body':_0x1b8280,'log':_0x1e1b7f('0x0')});},exports['update']=function(_0x3d6f09,_0x50d082){const _0x43dda8=_0x27f5c3;return client['Request']('UpdateOpenchannelQueueReport',{'body':_0x50d082,'options':{'where':{'uniqueid':_0x3d6f09},'order':[['id',_0x43dda8('0x2')]],'limit':0x1},'log':'UpdateOpenchannelQueueReport'});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsInteraction.js b/server/services/routing/rpc/smsInteraction.js index 9521f07..a0e6d4b 100644 --- a/server/services/routing/rpc/smsInteraction.js +++ b/server/services/routing/rpc/smsInteraction.js @@ -1 +1 @@ -const a1190_0x3b42=['updateSmsInteraction','Request','addTagsToSmsInteraction','AddTagsToSmsInteraction','update','../client'];(function(_0xe5783c,_0x3b42b9){const _0x3f5f33=function(_0x286e63){while(--_0x286e63){_0xe5783c['push'](_0xe5783c['shift']());}};_0x3f5f33(++_0x3b42b9);}(a1190_0x3b42,0x83));const a1190_0x3f5f=function(_0xe5783c,_0x3b42b9){_0xe5783c=_0xe5783c-0x0;let _0x3f5f33=a1190_0x3b42[_0xe5783c];return _0x3f5f33;};const _0x1ff07b=a1190_0x3f5f;'use strict';const client=require(_0x1ff07b('0x0'));exports[_0x1ff07b('0x5')]=function(_0x286e63,_0xa69db6){const _0x4c1293=_0x1ff07b;return client[_0x4c1293('0x2')]('UpdateSmsInteraction',{'body':_0xa69db6,'options':{'where':{'id':_0x286e63}},'log':_0x4c1293('0x1')});},exports['addTags']=function(_0x52026a,_0xc859a0){const _0x2230f4=_0x1ff07b;return client[_0x2230f4('0x2')](_0x2230f4('0x4'),{'body':_0xc859a0,'options':{'where':{'id':_0x52026a}},'log':_0x2230f4('0x3')});}; \ No newline at end of file +const a1191_0x1044=['AddTagsToSmsInteraction','update','Request','addTagsToSmsInteraction','UpdateSmsInteraction'];(function(_0x259d87,_0x104433){const _0x28f6a7=function(_0x3521ba){while(--_0x3521ba){_0x259d87['push'](_0x259d87['shift']());}};_0x28f6a7(++_0x104433);}(a1191_0x1044,0x163));const a1191_0x28f6=function(_0x259d87,_0x104433){_0x259d87=_0x259d87-0x0;let _0x28f6a7=a1191_0x1044[_0x259d87];return _0x28f6a7;};const _0x12435a=a1191_0x28f6;'use strict';const client=require('../client');exports[_0x12435a('0x1')]=function(_0x3521ba,_0x29facf){const _0x2dba3a=_0x12435a;return client['Request'](_0x2dba3a('0x4'),{'body':_0x29facf,'options':{'where':{'id':_0x3521ba}},'log':'updateSmsInteraction'});},exports['addTags']=function(_0x20b83e,_0x21d3f5){const _0x5e40c8=_0x12435a;return client[_0x5e40c8('0x2')](_0x5e40c8('0x0'),{'body':_0x21d3f5,'options':{'where':{'id':_0x20b83e}},'log':_0x5e40c8('0x3')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsMessage.js b/server/services/routing/rpc/smsMessage.js index 4f8fe72..552dc59 100644 --- a/server/services/routing/rpc/smsMessage.js +++ b/server/services/routing/rpc/smsMessage.js @@ -1 +1 @@ -const a1191_0x4c7d=['CreateSmsMessage','createSmsMessage','../client'];(function(_0x5064c1,_0x4c7d66){const _0x3d44a0=function(_0x2c58dd){while(--_0x2c58dd){_0x5064c1['push'](_0x5064c1['shift']());}};_0x3d44a0(++_0x4c7d66);}(a1191_0x4c7d,0x75));const a1191_0x3d44=function(_0x5064c1,_0x4c7d66){_0x5064c1=_0x5064c1-0x0;let _0x3d44a0=a1191_0x4c7d[_0x5064c1];return _0x3d44a0;};const _0x258c20=a1191_0x3d44;'use strict';const client=require(_0x258c20('0x2'));exports['create']=function(_0x2c58dd){const _0x2cbcba=_0x258c20;return client['Request'](_0x2cbcba('0x0'),{'body':_0x2c58dd,'log':_0x2cbcba('0x1')});}; \ No newline at end of file +const a1192_0xf0ba=['CreateSmsMessage','Request','createSmsMessage','../client'];(function(_0x209345,_0xf0baa0){const _0x54dd0f=function(_0x956d95){while(--_0x956d95){_0x209345['push'](_0x209345['shift']());}};_0x54dd0f(++_0xf0baa0);}(a1192_0xf0ba,0x1d6));const a1192_0x54dd=function(_0x209345,_0xf0baa0){_0x209345=_0x209345-0x0;let _0x54dd0f=a1192_0xf0ba[_0x209345];return _0x54dd0f;};const _0x228581=a1192_0x54dd;'use strict';const client=require(_0x228581('0x1'));exports['create']=function(_0x956d95){const _0x3034a8=_0x228581;return client[_0x3034a8('0x3')](_0x3034a8('0x2'),{'body':_0x956d95,'log':_0x3034a8('0x0')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsQueue.js b/server/services/routing/rpc/smsQueue.js index cda8119..7517b61 100644 --- a/server/services/routing/rpc/smsQueue.js +++ b/server/services/routing/rpc/smsQueue.js @@ -1 +1 @@ -const a1192_0x38ce=['name','User','getSmsQueues','timeout','strategy','Request','online','GetSmsQueue'];(function(_0x1b60ce,_0x38ce07){const _0x3239f1=function(_0x547e8f){while(--_0x547e8f){_0x1b60ce['push'](_0x1b60ce['shift']());}};_0x3239f1(++_0x38ce07);}(a1192_0x38ce,0x7d));const a1192_0x3239=function(_0x1b60ce,_0x38ce07){_0x1b60ce=_0x1b60ce-0x0;let _0x3239f1=a1192_0x38ce[_0x1b60ce];return _0x3239f1;};const _0x41d6a8=a1192_0x3239;'use strict';const client=require('../client');exports[_0x41d6a8('0x5')]=function(){return function(){const _0x5a80dc=a1192_0x3239;return client[_0x5a80dc('0x0')](_0x5a80dc('0x2'),{'options':{'raw':![],'attributes':['id',_0x5a80dc('0x3'),_0x5a80dc('0x6'),_0x5a80dc('0x7')],'include':[{'model':_0x5a80dc('0x4'),'as':'Agents','attributes':['id',_0x5a80dc('0x3'),_0x5a80dc('0x1'),'smsPause']}]},'log':_0x5a80dc('0x5')});};}; \ No newline at end of file +const a1193_0x2297=['timeout','online','GetSmsQueue','getSmsQueues','User','Agents','Request','name','strategy'];(function(_0x50562e,_0x22978e){const _0x573834=function(_0x5d2784){while(--_0x5d2784){_0x50562e['push'](_0x50562e['shift']());}};_0x573834(++_0x22978e);}(a1193_0x2297,0x1d7));const a1193_0x5738=function(_0x50562e,_0x22978e){_0x50562e=_0x50562e-0x0;let _0x573834=a1193_0x2297[_0x50562e];return _0x573834;};const _0x55f6ff=a1193_0x5738;'use strict';const client=require('../client');exports[_0x55f6ff('0x0')]=function(){return function(){const _0x38fcd6=a1193_0x5738;return client[_0x38fcd6('0x3')](_0x38fcd6('0x8'),{'options':{'raw':![],'attributes':['id',_0x38fcd6('0x4'),_0x38fcd6('0x6'),_0x38fcd6('0x5')],'include':[{'model':_0x38fcd6('0x1'),'as':_0x38fcd6('0x2'),'attributes':['id',_0x38fcd6('0x4'),_0x38fcd6('0x7'),'smsPause']}]},'log':_0x38fcd6('0x0')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/smsQueueReport.js b/server/services/routing/rpc/smsQueueReport.js index de3200e..3fc8c94 100644 --- a/server/services/routing/rpc/smsQueueReport.js +++ b/server/services/routing/rpc/smsQueueReport.js @@ -1 +1 @@ -const a1193_0x5152=['UpdateSmsQueueReport','create','DESC','CreateSmsQueueReport','update','Request','../client'];(function(_0x35e9d0,_0x515275){const _0x56b6eb=function(_0x375012){while(--_0x375012){_0x35e9d0['push'](_0x35e9d0['shift']());}};_0x56b6eb(++_0x515275);}(a1193_0x5152,0x197));const a1193_0x56b6=function(_0x35e9d0,_0x515275){_0x35e9d0=_0x35e9d0-0x0;let _0x56b6eb=a1193_0x5152[_0x35e9d0];return _0x56b6eb;};const _0x1be7cd=a1193_0x56b6;'use strict';const client=require(_0x1be7cd('0x5'));exports[_0x1be7cd('0x0')]=function(_0x375012){const _0x4b5c5e=_0x1be7cd;return client[_0x4b5c5e('0x4')](_0x4b5c5e('0x2'),{'body':_0x375012,'log':_0x4b5c5e('0x2')});},exports[_0x1be7cd('0x3')]=function(_0x296212,_0x354bf2){const _0x5bae07=_0x1be7cd;return client[_0x5bae07('0x4')]('UpdateSmsQueueReport',{'body':_0x354bf2,'options':{'where':{'uniqueid':_0x296212},'order':[['id',_0x5bae07('0x1')]],'limit':0x1},'log':_0x5bae07('0x6')});}; \ No newline at end of file +const a1194_0x3e5c=['Request','UpdateSmsQueueReport','update','CreateSmsQueueReport','DESC','create'];(function(_0x1fd8b0,_0x3e5c11){const _0x471092=function(_0x2f652a){while(--_0x2f652a){_0x1fd8b0['push'](_0x1fd8b0['shift']());}};_0x471092(++_0x3e5c11);}(a1194_0x3e5c,0x19c));const a1194_0x4710=function(_0x1fd8b0,_0x3e5c11){_0x1fd8b0=_0x1fd8b0-0x0;let _0x471092=a1194_0x3e5c[_0x1fd8b0];return _0x471092;};const _0x522326=a1194_0x4710;'use strict';const client=require('../client');exports[_0x522326('0x1')]=function(_0x2f652a){const _0x5f1615=_0x522326;return client[_0x5f1615('0x2')](_0x5f1615('0x5'),{'body':_0x2f652a,'log':'CreateSmsQueueReport'});},exports[_0x522326('0x4')]=function(_0x68ca7c,_0x516dc8){const _0x3ffdb0=_0x522326;return client[_0x3ffdb0('0x2')](_0x3ffdb0('0x3'),{'body':_0x516dc8,'options':{'where':{'uniqueid':_0x68ca7c},'order':[['id',_0x3ffdb0('0x0')]],'limit':0x1},'log':_0x3ffdb0('0x3')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/user.js b/server/services/routing/rpc/user.js index 24ad7f8..15c2e3e 100644 --- a/server/services/routing/rpc/user.js +++ b/server/services/routing/rpc/user.js @@ -1 +1 @@ -const a1194_0x3f47=['pauseType','chatCapacity','whatsappCapacity','mailCapacity','smsPause','getAgents','whatsappPause','../client','chatPause','openchannelPause','faxCapacity','online'];(function(_0x3d999f,_0x3f47f1){const _0xedb3e0=function(_0x403406){while(--_0x403406){_0x3d999f['push'](_0x3d999f['shift']());}};_0xedb3e0(++_0x3f47f1);}(a1194_0x3f47,0xde));const a1194_0xedb3=function(_0x3d999f,_0x3f47f1){_0x3d999f=_0x3d999f-0x0;let _0xedb3e0=a1194_0x3f47[_0x3d999f];return _0xedb3e0;};const _0x4203e0=a1194_0xedb3;'use strict';const client=require(_0x4203e0('0x1'));exports[_0x4203e0('0xb')]=function(){return function(){const _0xc3f8a4=a1194_0xedb3;return client['Request']('GetUser',{'options':{'raw':!![],'where':{'role':'agent'},'attributes':['id','name',_0xc3f8a4('0x5'),_0xc3f8a4('0x6'),'lastPauseAt','voicePause',_0xc3f8a4('0x2'),'mailPause','faxPause',_0xc3f8a4('0xa'),_0xc3f8a4('0x0'),_0xc3f8a4('0x3'),_0xc3f8a4('0x7'),_0xc3f8a4('0x9'),_0xc3f8a4('0x4'),'smsCapacity',_0xc3f8a4('0x8'),'openchannelCapacity']},'log':_0xc3f8a4('0xb')});};}; \ No newline at end of file +const a1195_0x55f2=['whatsappPause','pauseType','getAgents','whatsappCapacity','GetUser','mailCapacity','smsPause','online','openchannelCapacity','openchannelPause','name','faxPause','mailPause','lastPauseAt','faxCapacity','voicePause','smsCapacity','Request'];(function(_0x174278,_0x55f217){const _0x299ed0=function(_0x54d380){while(--_0x54d380){_0x174278['push'](_0x174278['shift']());}};_0x299ed0(++_0x55f217);}(a1195_0x55f2,0x93));const a1195_0x299e=function(_0x174278,_0x55f217){_0x174278=_0x174278-0x0;let _0x299ed0=a1195_0x55f2[_0x174278];return _0x299ed0;};'use strict';const client=require('../client');exports['getAgents']=function(){return function(){const _0x1b24e4=a1195_0x299e;return client[_0x1b24e4('0xe')](_0x1b24e4('0x1'),{'options':{'raw':!![],'where':{'role':'agent'},'attributes':['id',_0x1b24e4('0x7'),_0x1b24e4('0x4'),_0x1b24e4('0x10'),_0x1b24e4('0xa'),_0x1b24e4('0xc'),'chatPause',_0x1b24e4('0x9'),_0x1b24e4('0x8'),_0x1b24e4('0x3'),_0x1b24e4('0xf'),_0x1b24e4('0x6'),'chatCapacity',_0x1b24e4('0x2'),_0x1b24e4('0xb'),_0x1b24e4('0xd'),_0x1b24e4('0x0'),_0x1b24e4('0x5')]},'log':_0x1b24e4('0x11')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappInteraction.js b/server/services/routing/rpc/whatsappInteraction.js index b9c966f..d480b4d 100644 --- a/server/services/routing/rpc/whatsappInteraction.js +++ b/server/services/routing/rpc/whatsappInteraction.js @@ -1 +1 @@ -const a1195_0x4577=['update','updateWhatsappInteraction','Request','../client','UpdateWhatsappInteraction','addTagsToWhatsappInteraction','AddTagsToWhatsappInteraction'];(function(_0x4be142,_0x45774d){const _0x57f672=function(_0x2fb283){while(--_0x2fb283){_0x4be142['push'](_0x4be142['shift']());}};_0x57f672(++_0x45774d);}(a1195_0x4577,0x1d2));const a1195_0x57f6=function(_0x4be142,_0x45774d){_0x4be142=_0x4be142-0x0;let _0x57f672=a1195_0x4577[_0x4be142];return _0x57f672;};const _0x31bc84=a1195_0x57f6;'use strict';const client=require(_0x31bc84('0x6'));exports[_0x31bc84('0x3')]=function(_0x2fb283,_0x4ef965){const _0x2dc7ce=_0x31bc84;return client[_0x2dc7ce('0x5')](_0x2dc7ce('0x0'),{'body':_0x4ef965,'options':{'where':{'id':_0x2fb283}},'log':_0x2dc7ce('0x4')});},exports['addTags']=function(_0x224f8d,_0x70e66){const _0x2a111b=_0x31bc84;return client[_0x2a111b('0x5')](_0x2a111b('0x2'),{'body':_0x70e66,'options':{'where':{'id':_0x224f8d}},'log':_0x2a111b('0x1')});}; \ No newline at end of file +const a1196_0xca59=['update','addTags','updateWhatsappInteraction','Request','addTagsToWhatsappInteraction'];(function(_0x56d310,_0xca5921){const _0x3e4ef=function(_0x298e59){while(--_0x298e59){_0x56d310['push'](_0x56d310['shift']());}};_0x3e4ef(++_0xca5921);}(a1196_0xca59,0x139));const a1196_0x3e4e=function(_0x56d310,_0xca5921){_0x56d310=_0x56d310-0x0;let _0x3e4ef=a1196_0xca59[_0x56d310];return _0x3e4ef;};const _0x34f4f7=a1196_0x3e4e;'use strict';const client=require('../client');exports[_0x34f4f7('0x2')]=function(_0x298e59,_0x5437ea){const _0x180cd4=_0x34f4f7;return client[_0x180cd4('0x0')]('UpdateWhatsappInteraction',{'body':_0x5437ea,'options':{'where':{'id':_0x298e59}},'log':_0x180cd4('0x4')});},exports[_0x34f4f7('0x3')]=function(_0x44203d,_0x4e4d86){const _0x53d454=_0x34f4f7;return client['Request']('AddTagsToWhatsappInteraction',{'body':_0x4e4d86,'options':{'where':{'id':_0x44203d}},'log':_0x53d454('0x1')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappMessage.js b/server/services/routing/rpc/whatsappMessage.js index fdd2d9b..8a85fc2 100644 --- a/server/services/routing/rpc/whatsappMessage.js +++ b/server/services/routing/rpc/whatsappMessage.js @@ -1 +1 @@ -const a1196_0x537b=['CreateWhatsappMessage','Request','../client'];(function(_0x45abf2,_0x537bb3){const _0x19f0e2=function(_0x31aa65){while(--_0x31aa65){_0x45abf2['push'](_0x45abf2['shift']());}};_0x19f0e2(++_0x537bb3);}(a1196_0x537b,0xe1));const a1196_0x19f0=function(_0x45abf2,_0x537bb3){_0x45abf2=_0x45abf2-0x0;let _0x19f0e2=a1196_0x537b[_0x45abf2];return _0x19f0e2;};const _0x4e878f=a1196_0x19f0;'use strict';const client=require(_0x4e878f('0x2'));exports['create']=function(_0x31aa65){const _0xf617b0=_0x4e878f;return client[_0xf617b0('0x1')](_0xf617b0('0x0'),{'body':_0x31aa65,'log':'createWhatsappMessage'});}; \ No newline at end of file +const a1197_0x17e9=['createWhatsappMessage','../client'];(function(_0x3dc6d5,_0x17e9ab){const _0x578fbf=function(_0xdd262a){while(--_0xdd262a){_0x3dc6d5['push'](_0x3dc6d5['shift']());}};_0x578fbf(++_0x17e9ab);}(a1197_0x17e9,0xda));const a1197_0x578f=function(_0x3dc6d5,_0x17e9ab){_0x3dc6d5=_0x3dc6d5-0x0;let _0x578fbf=a1197_0x17e9[_0x3dc6d5];return _0x578fbf;};const _0x3503b7=a1197_0x578f;'use strict';const client=require(_0x3503b7('0x1'));exports['create']=function(_0xdd262a){const _0x45f3bb=_0x3503b7;return client['Request']('CreateWhatsappMessage',{'body':_0xdd262a,'log':_0x45f3bb('0x0')});}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappQueue.js b/server/services/routing/rpc/whatsappQueue.js index 39558d3..825de4a 100644 --- a/server/services/routing/rpc/whatsappQueue.js +++ b/server/services/routing/rpc/whatsappQueue.js @@ -1 +1 @@ -const a1197_0x4b38=['whatsappPause','Request','online','name','GetWhatsappQueue','strategy','getWhatsappQueues'];(function(_0xa865a9,_0x4b385d){const _0x28abb1=function(_0x524a2b){while(--_0x524a2b){_0xa865a9['push'](_0xa865a9['shift']());}};_0x28abb1(++_0x4b385d);}(a1197_0x4b38,0x12f));const a1197_0x28ab=function(_0xa865a9,_0x4b385d){_0xa865a9=_0xa865a9-0x0;let _0x28abb1=a1197_0x4b38[_0xa865a9];return _0x28abb1;};const _0x1a7f99=a1197_0x28ab;'use strict';const client=require('../client');exports[_0x1a7f99('0x4')]=function(){return function(){const _0x143add=a1197_0x28ab;return client[_0x143add('0x6')](_0x143add('0x2'),{'options':{'raw':![],'attributes':['id',_0x143add('0x1'),'timeout',_0x143add('0x3')],'include':[{'model':'User','as':'Agents','attributes':['id','name',_0x143add('0x0'),_0x143add('0x5')]}]},'log':_0x143add('0x4')});};}; \ No newline at end of file +const a1198_0x18ad=['../client','online','name','getWhatsappQueues','whatsappPause','Request','User','Agents'];(function(_0x445a23,_0x18ad6b){const _0x5debf2=function(_0x372d88){while(--_0x372d88){_0x445a23['push'](_0x445a23['shift']());}};_0x5debf2(++_0x18ad6b);}(a1198_0x18ad,0x9f));const a1198_0x5deb=function(_0x445a23,_0x18ad6b){_0x445a23=_0x445a23-0x0;let _0x5debf2=a1198_0x18ad[_0x445a23];return _0x5debf2;};const _0x56c86f=a1198_0x5deb;'use strict';const client=require(_0x56c86f('0x1'));exports[_0x56c86f('0x4')]=function(){return function(){const _0x51a953=a1198_0x5deb;return client[_0x51a953('0x6')]('GetWhatsappQueue',{'options':{'raw':![],'attributes':['id',_0x51a953('0x3'),'timeout','strategy'],'include':[{'model':_0x51a953('0x7'),'as':_0x51a953('0x0'),'attributes':['id',_0x51a953('0x3'),_0x51a953('0x2'),_0x51a953('0x5')]}]},'log':_0x51a953('0x4')});};}; \ No newline at end of file diff --git a/server/services/routing/rpc/whatsappQueueReport.js b/server/services/routing/rpc/whatsappQueueReport.js index 4670199..eddf4ad 100644 --- a/server/services/routing/rpc/whatsappQueueReport.js +++ b/server/services/routing/rpc/whatsappQueueReport.js @@ -1 +1 @@ -const a1198_0x1e05=['DESC','UpdateWhatsappQueueReport','update','../client','CreateWhatsappQueueReport'];(function(_0xd6bc5b,_0x1e0584){const _0x5029a4=function(_0x4e8224){while(--_0x4e8224){_0xd6bc5b['push'](_0xd6bc5b['shift']());}};_0x5029a4(++_0x1e0584);}(a1198_0x1e05,0x1d3));const a1198_0x5029=function(_0xd6bc5b,_0x1e0584){_0xd6bc5b=_0xd6bc5b-0x0;let _0x5029a4=a1198_0x1e05[_0xd6bc5b];return _0x5029a4;};const _0x5aa182=a1198_0x5029;'use strict';const client=require(_0x5aa182('0x1'));exports['create']=function(_0x4e8224){const _0x26e952=_0x5aa182;return client['Request'](_0x26e952('0x2'),{'body':_0x4e8224,'log':_0x26e952('0x2')});},exports[_0x5aa182('0x0')]=function(_0x4b00a1,_0x532919){const _0x11d58e=_0x5aa182;return client['Request']('UpdateWhatsappQueueReport',{'body':_0x532919,'options':{'where':{'uniqueid':_0x4b00a1},'order':[['id',_0x11d58e('0x3')]],'limit':0x1},'log':_0x11d58e('0x4')});}; \ No newline at end of file +const a1199_0x5528=['create','UpdateWhatsappQueueReport','Request','CreateWhatsappQueueReport'];(function(_0x566bfd,_0x55286e){const _0x57513f=function(_0x236105){while(--_0x236105){_0x566bfd['push'](_0x566bfd['shift']());}};_0x57513f(++_0x55286e);}(a1199_0x5528,0x1c2));const a1199_0x5751=function(_0x566bfd,_0x55286e){_0x566bfd=_0x566bfd-0x0;let _0x57513f=a1199_0x5528[_0x566bfd];return _0x57513f;};const _0x26cf0c=a1199_0x5751;'use strict';const client=require('../client');exports[_0x26cf0c('0x2')]=function(_0x236105){const _0xfc11dc=_0x26cf0c;return client[_0xfc11dc('0x0')](_0xfc11dc('0x1'),{'body':_0x236105,'log':_0xfc11dc('0x1')});},exports['update']=function(_0x2fe40a,_0x2cf3b5){const _0x4c9d87=_0x26cf0c;return client['Request'](_0x4c9d87('0x3'),{'body':_0x2cf3b5,'options':{'where':{'uniqueid':_0x2fe40a},'order':[['id','DESC']],'limit':0x1},'log':_0x4c9d87('0x3')});}; \ No newline at end of file diff --git a/server/services/routing/server/applications/agent.js b/server/services/routing/server/applications/agent.js index 7d522d0..c454cc9 100644 --- a/server/services/routing/server/applications/agent.js +++ b/server/services/routing/server/applications/agent.js @@ -1 +1 @@ -const a1199_0x2439=['rules','seq-queue','end','format','agent','error','name','log','find','toLowerCase','[%s][AGENT][NAME:%s][STATUS:%s]','util','[%s][QUEUE]\x20%s','map','routing','message','createQueue','atimeout','consequence','START:%s','close','../../../../config/logger','agents','channel','complete','length','stop','number','lodash','info','string','timeout\x20is\x20a\x20number','validate'];(function(_0x478d4c,_0x243947){const _0x2cc972=function(_0x34430c){while(--_0x34430c){_0x478d4c['push'](_0x478d4c['shift']());}};_0x2cc972(++_0x243947);}(a1199_0x2439,0x1af));const a1199_0x2cc9=function(_0x478d4c,_0x243947){_0x478d4c=_0x478d4c-0x0;let _0x2cc972=a1199_0x2439[_0x478d4c];return _0x2cc972;};const _0x564e1b=a1199_0x2cc9;'use strict';const schema=require(_0x564e1b('0x1e')),_=require(_0x564e1b('0x1a')),util=require(_0x564e1b('0x9')),seqqueue=require(_0x564e1b('0x20')),logger=require(_0x564e1b('0x13'))(_0x564e1b('0xc')),strategy=require('./strategy'),queue=schema({'name':{'type':_0x564e1b('0x1c'),'required':!![],'message':'name\x20is\x20a\x20string\x20and\x20it\x20is\x20required'},'timeout':{'type':_0x564e1b('0x19'),'message':_0x564e1b('0x1d')}});function writeLog(_0x34430c,_0x1e87df,_0x4197af){const _0x2640f6=_0x564e1b;return logger[_0x2640f6('0x1b')](util[_0x2640f6('0x1')](_0x2640f6('0x8'),_0x34430c,_0x1e87df[_0x2640f6('0x4')],_0x4197af));}function handleFindAgent(_0x33daf1){return function(_0x3949d4){const _0x1524aa=a1199_0x2cc9;return _0x3949d4[_0x1524aa('0x4')][_0x1524aa('0x7')]()===_0x33daf1['toLowerCase']();};}exports[_0x564e1b('0x10')]=function(_0x513c74,_0x5d7412,_0x1a606a,_0x49bcb1){return function(_0x2bf486){const _0x27939e=a1199_0x2cc9;try{const _0x2f7ffa={'name':_0x5d7412[0x0],'timeout':_0x5d7412[0x1]},_0x52caf0=queue[_0x27939e('0x1e')](_0x2f7ffa,{'typecast':!![]});if(_0x52caf0[_0x27939e('0x17')])logger[_0x27939e('0x3')]('[%s][AGENT]\x20%s',_0x513c74,_[_0x27939e('0xb')](_0x52caf0,_0x27939e('0xd'))['join'](',\x20')),_0x2bf486['stop']();else{const _0xbeee3d=_[_0x27939e('0x6')](_0x1a606a[_0x27939e('0x14')],handleFindAgent(_0x2f7ffa['name']));if(_0xbeee3d){const _0x4e9b01=(_0x2f7ffa['timeout']||0xa)*0x3e8;let _0x2c4d74;const _0x481bba=seqqueue[_0x27939e('0xe')](_0x4e9b01);_0x481bba['id']=_0x513c74,_0x481bba[_0x27939e('0xf')]=_0x4e9b01,_0x481bba[_0x27939e('0x15')]=_0x49bcb1[_0x27939e('0x15')],writeLog(_0x513c74,_0xbeee3d,util['format'](_0x27939e('0x11'),_0x4e9b01)),_0x1a606a['rules'][_0x513c74]['on'](_0x27939e('0x0'),function(){const _0xc3fef3=_0x27939e;logger[_0xc3fef3('0x1b')]('[%s][AGENT]\x20ROUTING\x20STOPPED',_0x513c74),clearTimeout(_0x2c4d74),_0x2c4d74=undefined,_0x481bba[_0xc3fef3('0x12')](),_0x1a606a[_0xc3fef3('0x1f')][_0x513c74]&&delete _0x1a606a[_0xc3fef3('0x1f')][_0x513c74],_0x2bf486[_0xc3fef3('0x18')]();}),_0x1a606a[_0x27939e('0x1f')][_0x513c74]['on'](_0x27939e('0x16'),function(){const _0x170daa=_0x27939e;_0x1a606a[_0x170daa('0x1f')][_0x513c74]&&delete _0x1a606a[_0x170daa('0x1f')][_0x513c74];}),_0x2c4d74=setTimeout(function(){const _0x223d27=_0x27939e;logger[_0x223d27('0x1b')]('[%s][AGENT]\x20ROUTING\x20END',_0x513c74),clearTimeout(_0x2c4d74),_0x481bba['close'](),_0x2bf486['next']();},_0x4e9b01),strategy[_0x27939e('0x2')](_0x481bba,_0xbeee3d,_0x1a606a,_0x49bcb1);}else logger[_0x27939e('0x3')]('[%s][AGENT]\x20agent\x20not\x20found\x20%s',_0x513c74,_0x2f7ffa[_0x27939e('0x4')]),_0x2bf486[_0x27939e('0x18')]();}}catch(_0x2963e8){console[_0x27939e('0x5')](_0x2963e8),logger[_0x27939e('0x3')](_0x27939e('0xa'),_0x513c74,_0x2963e8['stack']),_0x2bf486[_0x27939e('0x18')]();}};}; \ No newline at end of file +const a1200_0x270d=['timeout\x20is\x20a\x20number','[%s][QUEUE]\x20%s','[%s][AGENT]\x20agent\x20not\x20found\x20%s','next','[%s][AGENT][NAME:%s][STATUS:%s]','length','seq-queue','routing','lodash','consequence','map','[%s][AGENT]\x20ROUTING\x20END','join','START:%s','error','agent','message','find','agents','stack','validate','channel','close','format','info','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','createQueue','[%s][AGENT]\x20ROUTING\x20STOPPED','name','../../../../config/logger','end','atimeout','stop','./strategy','string','[%s][AGENT]\x20%s','util','rules','log'];(function(_0x169471,_0x270d60){const _0x411b0a=function(_0x5e1d40){while(--_0x5e1d40){_0x169471['push'](_0x169471['shift']());}};_0x411b0a(++_0x270d60);}(a1200_0x270d,0x127));const a1200_0x411b=function(_0x169471,_0x270d60){_0x169471=_0x169471-0x0;let _0x411b0a=a1200_0x270d[_0x169471];return _0x411b0a;};const _0x26aad8=a1200_0x411b;'use strict';const schema=require(_0x26aad8('0x25')),_=require(_0x26aad8('0x19')),util=require(_0x26aad8('0xe')),seqqueue=require(_0x26aad8('0x17')),logger=require(_0x26aad8('0x7'))(_0x26aad8('0x18')),strategy=require(_0x26aad8('0xb')),queue=schema({'name':{'type':_0x26aad8('0xc'),'required':!![],'message':_0x26aad8('0x3')},'timeout':{'type':'number','message':_0x26aad8('0x11')}});function writeLog(_0x5e1d40,_0x36dc5d,_0x25a8d8){const _0xc761a=_0x26aad8;return logger[_0xc761a('0x2')](util[_0xc761a('0x1')](_0xc761a('0x15'),_0x5e1d40,_0x36dc5d[_0xc761a('0x6')],_0x25a8d8));}function handleFindAgent(_0x17f192){return function(_0x3abcca){const _0x449748=a1200_0x411b;return _0x3abcca[_0x449748('0x6')]['toLowerCase']()===_0x17f192['toLowerCase']();};}exports[_0x26aad8('0x1a')]=function(_0x2c370c,_0x1e37e1,_0x23c867,_0x5cffec){return function(_0xc71e47){const _0x1e6184=a1200_0x411b;try{const _0x5b920a={'name':_0x1e37e1[0x0],'timeout':_0x1e37e1[0x1]},_0x50a47c=queue[_0x1e6184('0x25')](_0x5b920a,{'typecast':!![]});if(_0x50a47c[_0x1e6184('0x16')])logger[_0x1e6184('0x1f')](_0x1e6184('0xd'),_0x2c370c,_[_0x1e6184('0x1b')](_0x50a47c,_0x1e6184('0x21'))[_0x1e6184('0x1d')](',\x20')),_0xc71e47['stop']();else{const _0x3ed9d4=_[_0x1e6184('0x22')](_0x23c867[_0x1e6184('0x23')],handleFindAgent(_0x5b920a[_0x1e6184('0x6')]));if(_0x3ed9d4){const _0x3709d4=(_0x5b920a['timeout']||0xa)*0x3e8;let _0x4b3732;const _0x14e275=seqqueue[_0x1e6184('0x4')](_0x3709d4);_0x14e275['id']=_0x2c370c,_0x14e275[_0x1e6184('0x9')]=_0x3709d4,_0x14e275[_0x1e6184('0x26')]=_0x5cffec[_0x1e6184('0x26')],writeLog(_0x2c370c,_0x3ed9d4,util[_0x1e6184('0x1')](_0x1e6184('0x1e'),_0x3709d4)),_0x23c867[_0x1e6184('0xf')][_0x2c370c]['on'](_0x1e6184('0x8'),function(){const _0x49bbaf=_0x1e6184;logger[_0x49bbaf('0x2')](_0x49bbaf('0x5'),_0x2c370c),clearTimeout(_0x4b3732),_0x4b3732=undefined,_0x14e275['close'](),_0x23c867['rules'][_0x2c370c]&&delete _0x23c867[_0x49bbaf('0xf')][_0x2c370c],_0xc71e47[_0x49bbaf('0xa')]();}),_0x23c867[_0x1e6184('0xf')][_0x2c370c]['on']('complete',function(){const _0x8b129f=_0x1e6184;_0x23c867[_0x8b129f('0xf')][_0x2c370c]&&delete _0x23c867['rules'][_0x2c370c];}),_0x4b3732=setTimeout(function(){const _0xa89c70=_0x1e6184;logger[_0xa89c70('0x2')](_0xa89c70('0x1c'),_0x2c370c),clearTimeout(_0x4b3732),_0x14e275[_0xa89c70('0x0')](),_0xc71e47[_0xa89c70('0x14')]();},_0x3709d4),strategy[_0x1e6184('0x20')](_0x14e275,_0x3ed9d4,_0x23c867,_0x5cffec);}else logger[_0x1e6184('0x1f')](_0x1e6184('0x13'),_0x2c370c,_0x5b920a[_0x1e6184('0x6')]),_0xc71e47['stop']();}}catch(_0x506088){console[_0x1e6184('0x10')](_0x506088),logger[_0x1e6184('0x1f')](_0x1e6184('0x12'),_0x2c370c,_0x506088[_0x1e6184('0x24')]),_0xc71e47[_0x1e6184('0xa')]();}};}; \ 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 1243818..c02fe6e 100644 --- a/server/services/routing/server/applications/amazonlex.js +++ b/server/services/routing/server/applications/amazonlex.js @@ -1 +1 @@ -const a1200_0x5c93=['message','ChatWebsiteId','isNil','created','info','amazonlex','aws-sdk','channel','finally','./utils','stringify','toString','[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','InteractionId','[%s][AMAZONLEX]\x20%s','interaction','getMustacheRender','upperFirst','chat','consequence','$LATEST','../../rpc/mailMessage','stop','../../rpc/chatMessage','AccountId','next','create','../../rpc/whatsappMessage','YYYY-MM-DD\x20HH:mm:ss','body','UserId','routing','../../rpc/faxMessage','Message','lodash','account','error','dialogState','../../rpc/smsMessage','postText','then','format','../../rpc/openchannelMessage','catch','Failed'];(function(_0x5d4b58,_0x5c9381){const _0x50ca28=function(_0x2d697a){while(--_0x2d697a){_0x5d4b58['push'](_0x5d4b58['shift']());}};_0x50ca28(++_0x5c9381);}(a1200_0x5c93,0x1c2));const a1200_0x50ca=function(_0x5d4b58,_0x5c9381){_0x5d4b58=_0x5d4b58-0x0;let _0x50ca28=a1200_0x5c93[_0x5d4b58];return _0x50ca28;};const _0x25b9ad=a1200_0x50ca;'use strict';const _=require(_0x25b9ad('0x22')),moment=require('moment'),AWS=require(_0x25b9ad('0x6')),utils=require(_0x25b9ad('0x9')),logger=require('../../../../config/logger')(_0x25b9ad('0x1f')),rpc={'chatMessage':require(_0x25b9ad('0x17')),'openchannelMessage':require(_0x25b9ad('0x2a')),'mailMessage':require(_0x25b9ad('0x15')),'smsMessage':require(_0x25b9ad('0x26')),'faxMessage':require(_0x25b9ad('0x20')),'whatsappMessage':require(_0x25b9ad('0x1b'))};exports[_0x25b9ad('0x13')]=function(_0x2d697a,_0x3fd5ed){return function(_0x1efb6b){const _0x254fcb=a1200_0x50ca;try{if(!_[_0x254fcb('0x2')](this['interaction'][_0x254fcb('0x1e')]))return logger[_0x254fcb('0x4')](_0x254fcb('0xe'),_0x2d697a,'Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.'),_0x1efb6b['next']();const _0x4a158b={'ContactId':this['contact']['id'],'sentAt':moment()[_0x254fcb('0x29')](_0x254fcb('0x1c')),'direction':'out'},_0x2b50ce=this['channel'];_0x2b50ce===_0x254fcb('0x12')?_0x4a158b[_0x254fcb('0x1')]=this[_0x254fcb('0x23')]['id']:_0x4a158b[_['upperFirst'](_0x2b50ce)+_0x254fcb('0x18')]=this[_0x254fcb('0x23')]['id'];_0x4a158b[_[_0x254fcb('0x11')](_0x2b50ce)+_0x254fcb('0xd')]=this[_0x254fcb('0xf')]['id'];if(this[_0x254fcb('0xf')][_0x254fcb('0x3')]){const _0x4e040b=_0x3fd5ed[0x4];if(!_['isEmpty'](_0x4e040b))return _0x4a158b[_0x254fcb('0x1d')]=utils[_0x254fcb('0x10')](_0x4e040b,this),rpc[_0x2b50ce+_0x254fcb('0x21')][_0x254fcb('0x1a')](_0x4a158b)['then'](function(){const _0x3ccf3c=_0x254fcb;logger[_0x3ccf3c('0x4')]('[%s][AMAZONLEX]\x20%s',_0x2d697a,_0x4a158b[_0x3ccf3c('0x1d')]);})[_0x254fcb('0x2b')](function(_0x218773){const _0x479134=_0x254fcb;logger['error'](_0x479134('0xe'),_0x2d697a,JSON[_0x479134('0xa')](_0x218773));})[_0x254fcb('0x8')](function(){const _0x3ce5e6=_0x254fcb;logger[_0x3ce5e6('0x4')]('[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!',_0x2d697a),_0x1efb6b[_0x3ce5e6('0x16')]();});else logger[_0x254fcb('0x4')](_0x254fcb('0xc'),_0x2d697a),_0x1efb6b[_0x254fcb('0x16')]();}else{const _0x230368=this,_0x3a7d9e=new AWS['LexRuntime']({'accessKeyId':_0x3fd5ed[0x0],'secretAccessKey':_0x3fd5ed[0x1],'region':_0x3fd5ed[0x2]}),_0xc50a41={'botAlias':_0x254fcb('0x14'),'botName':_0x3fd5ed[0x3],'inputText':this[_0x254fcb('0x0')]['body'],'userId':this[_0x254fcb('0x7')]+':'+this[_0x254fcb('0xf')]['id'][_0x254fcb('0xb')]()};_0x3a7d9e[_0x254fcb('0x27')](_0xc50a41,function(_0x3a97f4,_0x2c1197){const _0x2512b1=_0x254fcb;if(_0x3a97f4)logger[_0x2512b1('0x24')](_0x2512b1('0xe'),_0x2d697a,_0x3a97f4[_0x2512b1('0x0')]),_0x1efb6b[_0x2512b1('0x19')]();else{if(_0x2c1197&&_0x2c1197['message'])return _0x230368[_0x2512b1('0x1d')][_0x2512b1('0x5')]=_0x2c1197,_0x4a158b['body']=_0x2c1197[_0x2512b1('0x0')],rpc[_0x2b50ce+_0x2512b1('0x21')][_0x2512b1('0x1a')](_0x4a158b)[_0x2512b1('0x28')](function(){const _0x4a26a9=_0x2512b1;logger[_0x4a26a9('0x4')](_0x4a26a9('0xe'),_0x2d697a,_0x4a158b[_0x4a26a9('0x1d')]),_0x2c1197[_0x4a26a9('0x25')]==_0x4a26a9('0x2c')?_0x1efb6b[_0x4a26a9('0x19')]():_0x1efb6b[_0x4a26a9('0x16')]();})[_0x2512b1('0x2b')](function(_0x5c1b24){const _0x9efb5=_0x2512b1;logger[_0x9efb5('0x24')]('[%s][AMAZONLEX]\x20%s',_0x2d697a,JSON[_0x9efb5('0xa')](_0x5c1b24)),_0x1efb6b[_0x9efb5('0x19')]();});else _0x1efb6b[_0x2512b1('0x19')]();}});}}catch(_0x170d5e){logger['error'](_0x254fcb('0xe'),_0x2d697a,JSON[_0x254fcb('0xa')](_0x170d5e)),_0x1efb6b[_0x254fcb('0x16')]();}};}; \ No newline at end of file +const a1201_0xf78d=['isEmpty','../../rpc/smsMessage','account','toString','finally','body','AccountId','chat','providerResponse','amazonlex','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','[%s][AMAZONLEX]\x20Welcome\x20Message\x20has\x20been\x20sent!','create','next','stringify','channel','ChatWebsiteId','sms','Message','routing','message','[%s][AMAZONLEX]\x20%s','catch','getMustacheRender','upperFirst','../../rpc/whatsappMessage','$LATEST','phone','stop','moment','contact','whatsapp','error','Failed','out','consequence','format','interaction','LexRuntime','../../rpc/faxMessage','InteractionId','../../../../config/logger','then','info'];(function(_0xb5939,_0xf78d56){const _0x21f321=function(_0x41b674){while(--_0x41b674){_0xb5939['push'](_0xb5939['shift']());}};_0x21f321(++_0xf78d56);}(a1201_0xf78d,0xf9));const a1201_0x21f3=function(_0xb5939,_0xf78d56){_0xb5939=_0xb5939-0x0;let _0x21f321=a1201_0xf78d[_0xb5939];return _0x21f321;};const _0x1a3270=a1201_0x21f3;'use strict';const _=require('lodash'),moment=require(_0x1a3270('0x0')),AWS=require('aws-sdk'),utils=require('./utils'),logger=require(_0x1a3270('0xc'))(_0x1a3270('0x22')),rpc={'chatMessage':require('../../rpc/chatMessage'),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(_0x1a3270('0x10')),'faxMessage':require(_0x1a3270('0xa')),'whatsappMessage':require(_0x1a3270('0x28'))};exports[_0x1a3270('0x6')]=function(_0x41b674,_0xa24afe){return function(_0x17fced){const _0x44a969=a1201_0x21f3;try{if(!_['isNil'](this[_0x44a969('0x8')]['UserId']))return logger[_0x44a969('0xe')](_0x44a969('0x24'),_0x41b674,_0x44a969('0x19')),_0x17fced[_0x44a969('0x1c')]();const _0x4806a4={'ContactId':this[_0x44a969('0x1')]['id'],'sentAt':moment()[_0x44a969('0x7')]('YYYY-MM-DD\x20HH:mm:ss'),'direction':_0x44a969('0x5')};(this[_0x44a969('0x1e')]===_0x44a969('0x20')||this[_0x44a969('0x1e')]===_0x44a969('0x2'))&&(_0x4806a4[_0x44a969('0x2a')]=this[_0x44a969('0x8')][_0x44a969('0x2a')]);const _0x3c35d=this[_0x44a969('0x1e')];_0x3c35d===_0x44a969('0x16')?_0x4806a4[_0x44a969('0x1f')]=this[_0x44a969('0x11')]['id']:_0x4806a4[_[_0x44a969('0x27')](_0x3c35d)+_0x44a969('0x15')]=this[_0x44a969('0x11')]['id'];_0x4806a4[_[_0x44a969('0x27')](_0x3c35d)+_0x44a969('0xb')]=this[_0x44a969('0x8')]['id'];if(this[_0x44a969('0x8')]['created']){const _0x437f7d=_0xa24afe[0x4];if(!_[_0x44a969('0xf')](_0x437f7d))return _0x4806a4[_0x44a969('0x14')]=utils[_0x44a969('0x26')](_0x437f7d,this),rpc[_0x3c35d+_0x44a969('0x21')][_0x44a969('0x1b')](_0x4806a4)[_0x44a969('0xd')](function(){const _0x21057e=_0x44a969;logger['info']('[%s][AMAZONLEX]\x20%s',_0x41b674,_0x4806a4[_0x21057e('0x14')]);})[_0x44a969('0x25')](function(_0x13b3ec){const _0x5e9223=_0x44a969;logger['error'](_0x5e9223('0x24'),_0x41b674,JSON[_0x5e9223('0x1d')](_0x13b3ec));})[_0x44a969('0x13')](function(){const _0x14f46a=_0x44a969;logger[_0x14f46a('0xe')](_0x14f46a('0x1a'),_0x41b674),_0x17fced[_0x14f46a('0x2b')]();});else logger[_0x44a969('0xe')]('[%s][AMAZONLEX]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!',_0x41b674),_0x17fced[_0x44a969('0x2b')]();}else{const _0x1d8f5b=this,_0x1bfcbc=new AWS[(_0x44a969('0x9'))]({'accessKeyId':_0xa24afe[0x0],'secretAccessKey':_0xa24afe[0x1],'region':_0xa24afe[0x2]}),_0x2e0700={'botAlias':_0x44a969('0x29'),'botName':_0xa24afe[0x3],'inputText':this[_0x44a969('0x23')]['body'],'userId':this['channel']+':'+this[_0x44a969('0x8')]['id'][_0x44a969('0x12')]()};_0x1bfcbc['postText'](_0x2e0700,function(_0x4b1ede,_0x3d26d8){const _0x50deec=_0x44a969;if(_0x4b1ede)logger[_0x50deec('0x3')](_0x50deec('0x24'),_0x41b674,_0x4b1ede[_0x50deec('0x23')]),_0x17fced['next']();else{if(_0x3d26d8&&_0x3d26d8[_0x50deec('0x23')])return _0x1d8f5b[_0x50deec('0x14')]['amazonlex']=_0x3d26d8,_0x4806a4[_0x50deec('0x14')]=_0x3d26d8[_0x50deec('0x23')],_0x4806a4['providerName']=_0x50deec('0x18'),_0x4806a4[_0x50deec('0x17')]=JSON[_0x50deec('0x1d')](_0x3d26d8),rpc[_0x3c35d+_0x50deec('0x21')][_0x50deec('0x1b')](_0x4806a4)[_0x50deec('0xd')](function(){const _0x481581=_0x50deec;logger[_0x481581('0xe')]('[%s][AMAZONLEX]\x20%s',_0x41b674,_0x4806a4['body']),_0x3d26d8['dialogState']==_0x481581('0x4')?_0x17fced[_0x481581('0x1c')]():_0x17fced['stop']();})['catch'](function(_0x593369){const _0x27acee=_0x50deec;logger[_0x27acee('0x3')]('[%s][AMAZONLEX]\x20%s',_0x41b674,JSON[_0x27acee('0x1d')](_0x593369)),_0x17fced[_0x27acee('0x1c')]();});else _0x17fced['next']();}});}}catch(_0x4b9d94){logger['error'](_0x44a969('0x24'),_0x41b674,JSON[_0x44a969('0x1d')](_0x4b9d94)),_0x17fced[_0x44a969('0x2b')]();}};}; \ 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 c2ea248..7ac1833 100644 --- a/server/services/routing/server/applications/autoreply.js +++ b/server/services/routing/server/applications/autoreply.js @@ -1 +1 @@ -const a1201_0x4988=['../../rpc/faxMessage','body','../../rpc/chatMessage','','../../rpc/smsMessage','ChatWebsiteId','port','authentication','Smtp','moment','../../rpc/whatsappMessage','[%s][AUTOREPLY]\x20SMTP\x20SENT','stop','then','next','getMustacheRender','../../../../config/logger','pass','phone','[RPC][%s][AUTOREPLY]\x20%s','Autoreply\x20already\x20sent','subject','auth','create','inReplyTo','messageId','','interaction','service','info','catch','html','Message','channel','format','read','from','account','lodash','host','Re:','','../../rpc/mailMessage','interaction','InteractionId','read','error','Re:\x20','Re:','[%s][AUTOREPLY]\x20%s','../../mailRpc','startsWith','sendMailMessage','moment','routing','message','secure','body','finally','stringify','port','account','../../rpc/faxMessage','../../rpc/whatsappMessage','messageId','',mailRpc[_0x3b299d('0x16')](_0x2e8c8d,_0x3645f1)[_0x3b299d('0x32')](function(_0x3588d6){const _0x4b6125=_0x3b299d;return logger[_0x4b6125('0x24')](_0x4b6125('0x28'),_0x4b2fd6),_0x3645f1[_0x4b6125('0x22')]=_0x3588d6[_0x4b6125('0x19')]['messageId'],rpc[_0x1d0d3b+_0x4b6125('0x27')]['create'](_0x3645f1);})[_0x3b299d('0x32')](function(_0x1e180d){const _0x4a5fc8=_0x3b299d;logger['info'](_0x4a5fc8('0x13'),_0x4b2fd6,JSON[_0x4a5fc8('0x1d')](_0x1e180d));})['catch'](function(_0x7e1538){const _0x56636f=_0x3b299d;logger[_0x56636f('0x10')]('[RPC][%s][AUTOREPLY]\x20%s',_0x4b2fd6,JSON[_0x56636f('0x1d')](_0x7e1538));})[_0x3b299d('0x1c')](function(){const _0x4a066d=_0x3b299d;_0x19b5f0[_0x4a066d('0x5')]();});}else return rpc[this[_0x3b299d('0x9')]+_0x3b299d('0x27')]['create'](_0x3645f1)[_0x3b299d('0x32')](function(){const _0xcb2ac0=_0x3b299d;logger[_0xcb2ac0('0x24')](_0xcb2ac0('0x13'),_0x4b2fd6,_0x3645f1[_0xcb2ac0('0x1b')]);})[_0x3b299d('0x2d')](function(_0x437df4){const _0x1caff2=_0x3b299d;logger[_0x1caff2('0x10')](_0x1caff2('0x13'),_0x4b2fd6,JSON[_0x1caff2('0x1d')](_0x437df4));})['finally'](function(){const _0x354e6f=_0x3b299d;_0x19b5f0[_0x354e6f('0x5')]();});}}catch(_0xf517d0){logger[_0x3b299d('0x10')](_0x3b299d('0x13'),_0x4b2fd6,JSON[_0x3b299d('0x1d')](_0xf517d0)),_0x19b5f0['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 9a6ceec..691111a 100644 --- a/server/services/routing/server/applications/close.js +++ b/server/services/routing/server/applications/close.js @@ -1 +1 @@ -const a1202_0x3a77=['system','stringify','then','YYYY-MM-DD\x20HH:mm:ss','[%s][CLOSE]\x20reason\x20%s','../../rpc/openchannelInteraction','stop','../../rpc/mailInteraction','../../rpc/faxInteraction','routing','channel','error','format','catch','../../rpc/smsInteraction','../../rpc/whatsappInteraction','interaction','finally','consequence','Interaction','[%s][CLOSE]\x20%s','../../rpc/chatInteraction'];(function(_0x53a7d4,_0x3a77c9){const _0x177bbe=function(_0x44ad7c){while(--_0x44ad7c){_0x53a7d4['push'](_0x53a7d4['shift']());}};_0x177bbe(++_0x3a77c9);}(a1202_0x3a77,0xbd));const a1202_0x177b=function(_0x53a7d4,_0x3a77c9){_0x53a7d4=_0x53a7d4-0x0;let _0x177bbe=a1202_0x3a77[_0x53a7d4];return _0x177bbe;};const _0x21d726=a1202_0x177b;'use strict';const moment=require('moment'),logger=require('../../../../config/logger')(_0x21d726('0x12')),rpc={'chatInteraction':require(_0x21d726('0x8')),'openchannelInteraction':require(_0x21d726('0xe')),'smsInteraction':require(_0x21d726('0x1')),'mailInteraction':require(_0x21d726('0x10')),'faxInteraction':require(_0x21d726('0x11')),'whatsappInteraction':require(_0x21d726('0x2'))};exports[_0x21d726('0x5')]=function(_0x44ad7c,_0x5ab404,_0x5ea058,_0x2835ed){return function(_0x336767){const _0x4a3b72=a1202_0x177b;try{logger['info'](_0x4a3b72('0xd'),_0x44ad7c,_0x5ab404[0x0]);const _0x4dc6af={'closed':0x1,'closedAt':moment()[_0x4a3b72('0x15')](_0x4a3b72('0xc')),'closeReason':_0x4a3b72('0x9'),'disposition':_0x5ab404[0x0]};rpc[_0x2835ed[_0x4a3b72('0x13')]+_0x4a3b72('0x6')]&&rpc[_0x2835ed[_0x4a3b72('0x13')]+_0x4a3b72('0x6')]['update'](_0x2835ed[_0x4a3b72('0x3')]['id'],_0x4dc6af)[_0x4a3b72('0xb')](function(){const _0x7814ba=_0x4a3b72;logger['info']('[%s][CLOSE]\x20interaction\x20%s\x20has\x20been\x20closed!',_0x44ad7c,_0x2835ed[_0x7814ba('0x3')]['id']);})[_0x4a3b72('0x0')](function(_0x7f6f1d){const _0x10a098=_0x4a3b72;logger[_0x10a098('0x14')](_0x10a098('0x7'),_0x44ad7c,JSON[_0x10a098('0xa')](_0x7f6f1d));})[_0x4a3b72('0x4')](function(){const _0x327b1d=_0x4a3b72;_0x336767[_0x327b1d('0xf')]();});}catch(_0x3765e6){logger[_0x4a3b72('0x14')]('[%s][CLOSE]\x20%s',_0x44ad7c,JSON[_0x4a3b72('0xa')](_0x3765e6)),_0x336767[_0x4a3b72('0xf')]();}};}; \ No newline at end of file +const a1203_0x4b57=['stop','consequence','../../rpc/openchannelInteraction','../../rpc/whatsappInteraction','system','update','../../../../config/logger','moment','../../rpc/smsInteraction','[%s][CLOSE]\x20%s','format','channel','interaction','../../rpc/mailInteraction','info','[%s][CLOSE]\x20reason\x20%s','stringify','error','../../rpc/chatInteraction','../../rpc/faxInteraction','catch','Interaction','routing'];(function(_0x428620,_0x4b57d7){const _0x413b74=function(_0x25a5c5){while(--_0x25a5c5){_0x428620['push'](_0x428620['shift']());}};_0x413b74(++_0x4b57d7);}(a1203_0x4b57,0x1c4));const a1203_0x413b=function(_0x428620,_0x4b57d7){_0x428620=_0x428620-0x0;let _0x413b74=a1203_0x4b57[_0x428620];return _0x413b74;};const _0x2dc0d0=a1203_0x413b;'use strict';const moment=require(_0x2dc0d0('0xf')),logger=require(_0x2dc0d0('0xe'))(_0x2dc0d0('0x7')),rpc={'chatInteraction':require(_0x2dc0d0('0x3')),'openchannelInteraction':require(_0x2dc0d0('0xa')),'smsInteraction':require(_0x2dc0d0('0x10')),'mailInteraction':require(_0x2dc0d0('0x15')),'faxInteraction':require(_0x2dc0d0('0x4')),'whatsappInteraction':require(_0x2dc0d0('0xb'))};exports[_0x2dc0d0('0x9')]=function(_0x25a5c5,_0x1549e8,_0x49bbae,_0x37cdc4){return function(_0x253950){const _0x33f7c6=a1203_0x413b;try{logger['info'](_0x33f7c6('0x0'),_0x25a5c5,_0x1549e8[0x0]);const _0x357b98={'closed':0x1,'closedAt':moment()[_0x33f7c6('0x12')]('YYYY-MM-DD\x20HH:mm:ss'),'closeReason':_0x33f7c6('0xc'),'disposition':_0x1549e8[0x0]};rpc[_0x37cdc4[_0x33f7c6('0x13')]+'Interaction']&&rpc[_0x37cdc4['channel']+_0x33f7c6('0x6')][_0x33f7c6('0xd')](_0x37cdc4['interaction']['id'],_0x357b98)['then'](function(){const _0x30cd8b=_0x33f7c6;logger[_0x30cd8b('0x16')]('[%s][CLOSE]\x20interaction\x20%s\x20has\x20been\x20closed!',_0x25a5c5,_0x37cdc4[_0x30cd8b('0x14')]['id']);})[_0x33f7c6('0x5')](function(_0x2787d2){const _0x462051=_0x33f7c6;logger[_0x462051('0x2')](_0x462051('0x11'),_0x25a5c5,JSON[_0x462051('0x1')](_0x2787d2));})['finally'](function(){const _0x2ec132=_0x33f7c6;_0x253950[_0x2ec132('0x8')]();});}catch(_0x570c9f){logger['error'](_0x33f7c6('0x11'),_0x25a5c5,JSON[_0x33f7c6('0x1')](_0x570c9f)),_0x253950[_0x33f7c6('0x8')]();}};}; \ 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 4059a41..c3758c0 100644 --- a/server/services/routing/server/applications/dialogflow.js +++ b/server/services/routing/server/applications/dialogflow.js @@ -1 +1 @@ -const a1203_0x513e=['upperFirst','contact','finally','fulfillment','../../rpc/faxMessage','interaction','[%s][DIALOGFLOW]\x20%s','chat','dialogflow','error','../../../../config/logger','catch','created','next','../../rpc/openchannelMessage','./utils','isEmpty','info','apiai-promise','endConversation','metadata','consequence','out','../../rpc/mailMessage','then','stringify','lodash','body','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','getMustacheRender','format','Message','../../rpc/chatMessage','account','routing','moment','speech','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20has\x20been\x20sent!','create','stop','isNil','result','message','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.'];(function(_0x2c8c9a,_0x513ebf){const _0x12e1e5=function(_0x593618){while(--_0x593618){_0x2c8c9a['push'](_0x2c8c9a['shift']());}};_0x12e1e5(++_0x513ebf);}(a1203_0x513e,0x1b0));const a1203_0x12e1=function(_0x2c8c9a,_0x513ebf){_0x2c8c9a=_0x2c8c9a-0x0;let _0x12e1e5=a1203_0x513e[_0x2c8c9a];return _0x12e1e5;};const _0x2b235a=a1203_0x12e1;'use strict';const _=require(_0x2b235a('0x22')),moment=require(_0x2b235a('0x2b')),apiai=require(_0x2b235a('0x1a')),md5=require('md5'),utils=require(_0x2b235a('0x17')),logger=require(_0x2b235a('0x12'))(_0x2b235a('0x2a')),rpc={'chatMessage':require(_0x2b235a('0x28')),'openchannelMessage':require(_0x2b235a('0x16')),'mailMessage':require(_0x2b235a('0x1f')),'smsMessage':require('../../rpc/smsMessage'),'faxMessage':require(_0x2b235a('0xc')),'whatsappMessage':require('../../rpc/whatsappMessage')};exports[_0x2b235a('0x1d')]=function(_0x593618,_0x4807ae){return function(_0x3f4861){const _0x3cf530=a1203_0x12e1;try{if(!_[_0x3cf530('0x4')](this[_0x3cf530('0xd')]['UserId']))return logger[_0x3cf530('0x19')](_0x3cf530('0xe'),_0x593618,_0x3cf530('0x7')),_0x3f4861[_0x3cf530('0x15')]();const _0x240f66={'ContactId':this[_0x3cf530('0x9')]['id'],'sentAt':moment()[_0x3cf530('0x26')]('YYYY-MM-DD\x20HH:mm:ss'),'direction':_0x3cf530('0x1e')},_0x58d5b8=this['channel'];_0x58d5b8===_0x3cf530('0xf')?_0x240f66['ChatWebsiteId']=this[_0x3cf530('0x29')]['id']:_0x240f66[_[_0x3cf530('0x8')](_0x58d5b8)+'AccountId']=this[_0x3cf530('0x29')]['id'];_0x240f66[_[_0x3cf530('0x8')](_0x58d5b8)+'InteractionId']=this[_0x3cf530('0xd')]['id'];if(this[_0x3cf530('0xd')][_0x3cf530('0x14')]){const _0x4e200c=_0x4807ae[0x2];if(!_[_0x3cf530('0x18')](_0x4e200c))return _0x240f66[_0x3cf530('0x23')]=utils[_0x3cf530('0x25')](_0x4e200c,this),rpc[_0x58d5b8+_0x3cf530('0x27')][_0x3cf530('0x2')](_0x240f66)[_0x3cf530('0x20')](function(){const _0x3f3fbe=_0x3cf530;logger[_0x3f3fbe('0x19')]('[%s][DIALOGFLOW]\x20%s',_0x593618,_0x240f66['body']);})[_0x3cf530('0x13')](function(_0x5765b9){const _0x25c017=_0x3cf530;logger['error'](_0x25c017('0xe'),_0x593618,JSON[_0x25c017('0x21')](_0x5765b9));})[_0x3cf530('0xa')](function(){const _0x624785=_0x3cf530;logger['info'](_0x624785('0x1'),_0x593618),_0x3f4861[_0x624785('0x3')]();});else logger[_0x3cf530('0x19')](_0x3cf530('0x24'),_0x593618),_0x3f4861['stop']();}else{const _0x426040=this,_0x52ac21=apiai(_0x4807ae[0x0],{'language':_0x4807ae[0x1]||'en'});return _0x52ac21['textRequest'](this[_0x3cf530('0x6')]['body'],{'sessionId':md5(this[_0x3cf530('0xd')]['id'])})[_0x3cf530('0x20')](function(_0x338b38){const _0x252ad8=_0x3cf530;return _0x426040[_0x252ad8('0x23')][_0x252ad8('0x10')]=_0x338b38,_0x240f66[_0x252ad8('0x23')]=_0x338b38[_0x252ad8('0x5')][_0x252ad8('0xb')][_0x252ad8('0x0')],rpc[_0x58d5b8+'Message'][_0x252ad8('0x2')](_0x240f66)['then'](function(){const _0x391402=_0x252ad8;logger['info'](_0x391402('0xe'),_0x593618,_0x240f66[_0x391402('0x23')]),_0x338b38['result'][_0x391402('0x1c')][_0x391402('0x1b')]?_0x3f4861[_0x391402('0x15')]():_0x3f4861[_0x391402('0x3')]();})[_0x252ad8('0x13')](function(_0x5bf92c){const _0xb14326=_0x252ad8;logger[_0xb14326('0x11')]('[%s][DIALOGFLOW]\x20%s',_0x593618,JSON[_0xb14326('0x21')](_0x5bf92c)),_0x3f4861[_0xb14326('0x15')]();});})[_0x3cf530('0x13')](function(_0x1d302a){const _0x536d02=_0x3cf530;logger[_0x536d02('0x11')](_0x536d02('0xe'),_0x593618,_0x1d302a[_0x536d02('0x6')]),_0x3f4861[_0x536d02('0x15')]();});}}catch(_0x18e77e){logger[_0x3cf530('0x11')](_0x3cf530('0xe'),_0x593618,JSON[_0x3cf530('0x21')](_0x18e77e)),_0x3f4861['stop']();}};}; \ No newline at end of file +const a1204_0x31ae=['[%s][DIALOGFLOW]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!','metadata','md5','result','getMustacheRender','lodash','body','../../rpc/smsMessage','apiai-promise','speech','chat','catch','account','create','next','sms','textRequest','YYYY-MM-DD\x20HH:mm:ss','isNil','../../../../config/logger','message','consequence','format','[%s][DIALOGFLOW]\x20Welcome\x20Message\x20has\x20been\x20sent!','fulfillment','AccountId','../../rpc/whatsappMessage','[%s][DIALOGFLOW]\x20%s','info','../../rpc/faxMessage','./utils','whatsapp','dialogflow','moment','InteractionId','Message','stop','phone','stringify','routing','ChatWebsiteId','providerName','finally','channel','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','../../rpc/chatMessage','upperFirst','then','out','interaction','../../rpc/openchannelMessage','error'];(function(_0x309753,_0x31aeb6){const _0x1f3433=function(_0x5bbbf6){while(--_0x5bbbf6){_0x309753['push'](_0x309753['shift']());}};_0x1f3433(++_0x31aeb6);}(a1204_0x31ae,0x138));const a1204_0x1f34=function(_0x309753,_0x31aeb6){_0x309753=_0x309753-0x0;let _0x1f3433=a1204_0x31ae[_0x309753];return _0x1f3433;};const _0x2177aa=a1204_0x1f34;'use strict';const _=require(_0x2177aa('0x5')),moment=require(_0x2177aa('0x21')),apiai=require(_0x2177aa('0x8')),md5=require(_0x2177aa('0x2')),utils=require(_0x2177aa('0x1e')),logger=require(_0x2177aa('0x13'))(_0x2177aa('0x27')),rpc={'chatMessage':require(_0x2177aa('0x2d')),'openchannelMessage':require(_0x2177aa('0x32')),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(_0x2177aa('0x7')),'faxMessage':require(_0x2177aa('0x1d')),'whatsappMessage':require(_0x2177aa('0x1a'))};exports[_0x2177aa('0x15')]=function(_0x5bbbf6,_0x21bead){return function(_0x57a5f4){const _0x3e3503=a1204_0x1f34;try{if(!_[_0x3e3503('0x12')](this[_0x3e3503('0x31')]['UserId']))return logger[_0x3e3503('0x1c')](_0x3e3503('0x1b'),_0x5bbbf6,_0x3e3503('0x2c')),_0x57a5f4['next']();const _0x2b93f4={'ContactId':this['contact']['id'],'sentAt':moment()[_0x3e3503('0x16')](_0x3e3503('0x11')),'direction':_0x3e3503('0x30')};(this[_0x3e3503('0x2b')]===_0x3e3503('0xf')||this[_0x3e3503('0x2b')]===_0x3e3503('0x1f'))&&(_0x2b93f4[_0x3e3503('0x25')]=this[_0x3e3503('0x31')][_0x3e3503('0x25')]);const _0x38dd1f=this['channel'];_0x38dd1f===_0x3e3503('0xa')?_0x2b93f4[_0x3e3503('0x28')]=this[_0x3e3503('0xc')]['id']:_0x2b93f4[_[_0x3e3503('0x2e')](_0x38dd1f)+_0x3e3503('0x19')]=this['account']['id'];_0x2b93f4[_['upperFirst'](_0x38dd1f)+_0x3e3503('0x22')]=this['interaction']['id'];if(this['interaction']['created']){const _0x492eeb=_0x21bead[0x2];if(!_['isEmpty'](_0x492eeb))return _0x2b93f4[_0x3e3503('0x6')]=utils[_0x3e3503('0x4')](_0x492eeb,this),rpc[_0x38dd1f+'Message'][_0x3e3503('0xd')](_0x2b93f4)[_0x3e3503('0x2f')](function(){const _0x55e058=_0x3e3503;logger[_0x55e058('0x1c')](_0x55e058('0x1b'),_0x5bbbf6,_0x2b93f4['body']);})[_0x3e3503('0xb')](function(_0x151e0c){const _0x4065e5=_0x3e3503;logger[_0x4065e5('0x33')](_0x4065e5('0x1b'),_0x5bbbf6,JSON['stringify'](_0x151e0c));})[_0x3e3503('0x2a')](function(){const _0x3116ef=_0x3e3503;logger[_0x3116ef('0x1c')](_0x3116ef('0x17'),_0x5bbbf6),_0x57a5f4[_0x3116ef('0x24')]();});else logger['info'](_0x3e3503('0x0'),_0x5bbbf6),_0x57a5f4['stop']();}else{const _0x57b486=this,_0x126fbc=apiai(_0x21bead[0x0],{'language':_0x21bead[0x1]||'en'});return _0x126fbc[_0x3e3503('0x10')](this[_0x3e3503('0x14')]['body'],{'sessionId':md5(this[_0x3e3503('0x31')]['id'])})['then'](function(_0x49516f){const _0x1447f0=_0x3e3503;return _0x57b486['body'][_0x1447f0('0x20')]=_0x49516f,_0x2b93f4[_0x1447f0('0x6')]=_0x49516f[_0x1447f0('0x3')][_0x1447f0('0x18')][_0x1447f0('0x9')],_0x2b93f4[_0x1447f0('0x29')]='dialogflow',_0x2b93f4['providerResponse']=JSON[_0x1447f0('0x26')](_0x49516f),rpc[_0x38dd1f+_0x1447f0('0x23')]['create'](_0x2b93f4)[_0x1447f0('0x2f')](function(){const _0x37390e=_0x1447f0;logger['info'](_0x37390e('0x1b'),_0x5bbbf6,_0x2b93f4[_0x37390e('0x6')]),_0x49516f['result'][_0x37390e('0x1')]['endConversation']?_0x57a5f4['next']():_0x57a5f4[_0x37390e('0x24')]();})[_0x1447f0('0xb')](function(_0x5267ee){const _0x2e5e13=_0x1447f0;logger[_0x2e5e13('0x33')](_0x2e5e13('0x1b'),_0x5bbbf6,JSON[_0x2e5e13('0x26')](_0x5267ee)),_0x57a5f4[_0x2e5e13('0xe')]();});})['catch'](function(_0x17ac28){const _0x432e7e=_0x3e3503;logger[_0x432e7e('0x33')](_0x432e7e('0x1b'),_0x5bbbf6,_0x17ac28[_0x432e7e('0x14')]),_0x57a5f4[_0x432e7e('0xe')]();});}}catch(_0x479b06){logger['error']('[%s][DIALOGFLOW]\x20%s',_0x5bbbf6,JSON[_0x3e3503('0x26')](_0x479b06)),_0x57a5f4['stop']();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/dialogflowV2.js b/server/services/routing/server/applications/dialogflowV2.js new file mode 100644 index 0000000..a1eaa5e --- /dev/null +++ b/server/services/routing/server/applications/dialogflowV2.js @@ -0,0 +1 @@ +const a1205_0x3034=['detectIntent','routing','upperFirst','displayName','../../../../config/logger','diagnosticInfo','providerResponse','../../rpc/smsMessage','getMustacheRender','info','end_conversation','boolValue','AccountId','phone','filter','stop','sms','map','YYYY-MM-DD\x20HH:mm:ss','replace','body','isNil','queryResult','length','../../rpc/whatsappMessage','message','whatsapp','[%s][DIALOGFLOWV2]\x20%s','Agent\x20is\x20managing\x20the\x20interaction.\x20Go\x20to\x20next\x20application.','format','InteractionId','Message','UserId','stringify','all','providerName','next','intent','action','fields','fulfillmentText','SessionsClient','account','../../rpc/openchannelMessage','../../rpc/chatMessage','projectAgentSessionPath','contact','md5','exports','languageCode','allRequiredParamsPresent','dialogflowV2','create','interaction','created','channel','isEmpty','error','name','out','[%s][DIALOGFLOWV2]\x20Welcome\x20Message\x20is\x20empty.\x20It\x20will\x20wait\x20for\x20a\x20message\x20from\x20customer!'];(function(_0x2b96ae,_0x30340a){const _0x4a38f2=function(_0x34e6a8){while(--_0x34e6a8){_0x2b96ae['push'](_0x2b96ae['shift']());}};_0x4a38f2(++_0x30340a);}(a1205_0x3034,0x179));const a1205_0x4a38=function(_0x2b96ae,_0x30340a){_0x2b96ae=_0x2b96ae-0x0;let _0x4a38f2=a1205_0x3034[_0x2b96ae];return _0x4a38f2;};const _0x253695=a1205_0x4a38;'use strict';const _=require('lodash'),dialogflow=require('@google-cloud/dialogflow'),md5=require(_0x253695('0x24')),moment=require('moment'),logger=require(_0x253695('0x36'))(_0x253695('0x33')),utils=require('./utils'),rpc={'chatMessage':require(_0x253695('0x21')),'openchannelMessage':require(_0x253695('0x20')),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(_0x253695('0x39')),'faxMessage':require('../../rpc/faxMessage'),'whatsappMessage':require(_0x253695('0xd'))};async function createMessage(_0x34e6a8,_0x1949a5,_0x58d387,_0x1aabdd){const _0x4d0ba8=_0x253695,_0x231bb9=_['clone'](_0x58d387);_0x231bb9[_0x4d0ba8('0x9')]=_0x1aabdd;try{const _0x526e15=await rpc[_0x1949a5+_0x4d0ba8('0x14')][_0x4d0ba8('0x29')](_0x231bb9);return logger[_0x4d0ba8('0x3b')](_0x4d0ba8('0x10'),_0x34e6a8,_0x526e15['body']),_0x526e15;}catch(_0x1a5481){logger[_0x4d0ba8('0x2e')](_0x4d0ba8('0x10'),_0x34e6a8,JSON[_0x4d0ba8('0x16')](_0x1a5481));throw _0x1a5481;}}function consequence(_0x286475,_0x403168){async function _0x21cb3e(_0x95aa77){const _0x18c4d6=a1205_0x4a38;try{if(!_[_0x18c4d6('0xa')](this[_0x18c4d6('0x2a')][_0x18c4d6('0x15')]))return logger[_0x18c4d6('0x3b')]('[%s][DIALOGFLOWV2]\x20%s',_0x286475,_0x18c4d6('0x11')),_0x95aa77[_0x18c4d6('0x19')]();let _0x356573={'ContactId':this[_0x18c4d6('0x23')]['id'],'sentAt':moment()[_0x18c4d6('0x12')](_0x18c4d6('0x7')),'direction':_0x18c4d6('0x30')};(this[_0x18c4d6('0x2c')]===_0x18c4d6('0x5')||this[_0x18c4d6('0x2c')]===_0x18c4d6('0xf'))&&(_0x356573[_0x18c4d6('0x2')]=this['interaction'][_0x18c4d6('0x2')]);const _0x2131e0=this[_0x18c4d6('0x2c')];_0x2131e0==='chat'?_0x356573['ChatWebsiteId']=this[_0x18c4d6('0x1f')]['id']:_0x356573[_[_0x18c4d6('0x34')](_0x2131e0)+_0x18c4d6('0x1')]=this['account']['id'];_0x356573[_[_0x18c4d6('0x34')](_0x2131e0)+_0x18c4d6('0x13')]=this[_0x18c4d6('0x2a')]['id'];if(this[_0x18c4d6('0x2a')][_0x18c4d6('0x2b')]){const _0x1adf1d=_0x403168[0x4];if(!_[_0x18c4d6('0x2d')](_0x1adf1d))try{_0x356573[_0x18c4d6('0x9')]=utils[_0x18c4d6('0x3a')](_0x1adf1d,this),_0x356573=await rpc[_0x2131e0+_0x18c4d6('0x14')][_0x18c4d6('0x29')](_0x356573),logger['info'](_0x18c4d6('0x10'),_0x286475,_0x356573['body']);}catch(_0x1a1d74){logger[_0x18c4d6('0x2e')]('[%s][DIALOGFLOWV2]\x20%s',_0x286475,JSON['stringify'](_0x1a1d74));}finally{logger[_0x18c4d6('0x3b')]('[%s][DIALOGFLOWV2]\x20Welcome\x20Message\x20has\x20been\x20sent!',_0x286475),_0x95aa77[_0x18c4d6('0x4')]();}else logger['info'](_0x18c4d6('0x31'),_0x286475),_0x95aa77[_0x18c4d6('0x4')]();}else{const _0x34fe42=_0x403168[0x2][_0x18c4d6('0x8')](/\\n/g,'\x0a'),_0xf659d7={'credentials':{'private_key':_0x34fe42,'client_email':_0x403168[0x1]}},_0x2b6b1a=new dialogflow[(_0x18c4d6('0x1e'))](_0xf659d7),_0x466bfe=_0x2b6b1a[_0x18c4d6('0x22')](_0x403168[0x0],md5(this[_0x18c4d6('0x2a')]['id'])),_0x431b30={'session':_0x466bfe,'queryInput':{'text':{'text':this[_0x18c4d6('0xe')][_0x18c4d6('0x9')],'languageCode':_0x403168[0x3]||'en'}}};try{const _0x2944df=await _0x2b6b1a[_0x18c4d6('0x32')](_0x431b30);if(_0x2944df&&_0x2944df[_0x18c4d6('0xc')]){this[_0x18c4d6('0x9')][_0x18c4d6('0x28')]=_0x2944df;const _0x199cfc=_0x2944df[0x0],_0x240917=_0x199cfc['queryResult'][_0x18c4d6('0x37')]&&_0x199cfc[_0x18c4d6('0xb')][_0x18c4d6('0x37')][_0x18c4d6('0x1c')]?_0x199cfc['queryResult'][_0x18c4d6('0x37')][_0x18c4d6('0x1c')]['end_conversation'][_0x18c4d6('0x0')]:![];this[_0x18c4d6('0x9')]={...this[_0x18c4d6('0x9')],'DIALOGFLOWV2_ACTION':_0x199cfc[_0x18c4d6('0xb')][_0x18c4d6('0x1b')],'DIALOGFLOWV2_ALLREQUIREDPARAMSPRESENT':_0x199cfc[_0x18c4d6('0xb')][_0x18c4d6('0x27')],'DIALOGFLOWV2_ENDCONVERSATION':_0x199cfc[_0x18c4d6('0xb')]['diagnosticInfo']&&_0x199cfc[_0x18c4d6('0xb')][_0x18c4d6('0x37')]['fields']?_0x199cfc[_0x18c4d6('0xb')]['diagnosticInfo']['fields'][_0x18c4d6('0x3c')][_0x18c4d6('0x0')]:![],'DIALOGFLOWV2_INTENTNAME':_0x199cfc[_0x18c4d6('0xb')][_0x18c4d6('0x1a')][_0x18c4d6('0x2f')],'DIALOGFLOWV2_INTENTDISPLAYNAME':_0x199cfc['queryResult'][_0x18c4d6('0x1a')][_0x18c4d6('0x35')],'DIALOGFLOWV2_LANGUAGECODE':_0x199cfc['queryResult'][_0x18c4d6('0x26')],'DIALOGFLOWV2_QUERYTEXT':_0x199cfc[_0x18c4d6('0xb')]['queryText'],'DIALOGFLOWV2_SCORE':_0x199cfc[_0x18c4d6('0xb')]['intentDetectionConfidence']},_0x356573[_0x18c4d6('0x18')]=_0x18c4d6('0x28'),_0x356573[_0x18c4d6('0x38')]=JSON[_0x18c4d6('0x16')](_0x2944df);const _0x5407c5=_0x2944df[_0x18c4d6('0x6')](_0x3b1bae=>{const _0x470e51=_0x18c4d6,_0x3c0e82=_0x3b1bae&&_0x3b1bae[_0x470e51('0xb')]&&_0x3b1bae[_0x470e51('0xb')][_0x470e51('0x1d')];return _0x3c0e82?createMessage(_0x286475,_0x2131e0,_0x356573,_0x3b1bae[_0x470e51('0xb')][_0x470e51('0x1d')]):null;})[_0x18c4d6('0x3')](_0x258951=>_0x258951!==null);await Promise[_0x18c4d6('0x17')](_0x5407c5),_0x240917?_0x95aa77[_0x18c4d6('0x19')]():_0x95aa77[_0x18c4d6('0x4')]();}}catch(_0x16df11){logger[_0x18c4d6('0x2e')]('[%s][DIALOGFLOWV2]\x20%s',_0x286475,_0x16df11['message']),_0x95aa77[_0x18c4d6('0x19')]();}}}catch(_0x260c24){logger[_0x18c4d6('0x2e')](_0x18c4d6('0x10'),_0x286475,JSON[_0x18c4d6('0x16')](_0x260c24)),_0x95aa77[_0x18c4d6('0x4')]();}}return _0x21cb3e;}module[_0x253695('0x25')]={'consequence':consequence}; \ 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 9f63b40..cbf6325 100644 --- a/server/services/routing/server/applications/gotoif.js +++ b/server/services/routing/server/applications/gotoif.js @@ -1 +1 @@ -const a1204_0x10ea=['condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','priority\x20true\x20is\x20a\x20number','string','stringify','validate','error','number','findIndex','stop','routing','map','message','html-to-text','[%s][GOTOIF]\x20eval\x20error:\x20%s','consequence','condition','replace','[%s][GOTOIF]\x20%s','next','./utils','rules','priorityTrue','priority\x20false\x20is\x20a\x20number','length','lodash','info','getMustacheRender'];(function(_0xe292ca,_0x10ea91){const _0x4a322e=function(_0x41457e){while(--_0x41457e){_0xe292ca['push'](_0xe292ca['shift']());}};_0x4a322e(++_0x10ea91);}(a1204_0x10ea,0x1e2));const a1204_0x4a32=function(_0xe292ca,_0x10ea91){_0xe292ca=_0xe292ca-0x0;let _0x4a322e=a1204_0x10ea[_0xe292ca];return _0x4a322e;};const _0x144e5b=a1204_0x4a32;'use strict';const schema=require(_0x144e5b('0x1b')),_=require(_0x144e5b('0x13')),{htmlToText}=require(_0x144e5b('0x7')),utils=require(_0x144e5b('0xe')),logger=require('../../../../config/logger')(_0x144e5b('0x4')),gotoif=schema({'condition':{'type':_0x144e5b('0x19'),'required':!![],'message':_0x144e5b('0x16')},'priorityTrue':{'type':_0x144e5b('0x1'),'message':_0x144e5b('0x18')},'priorityFalse':{'type':_0x144e5b('0x1'),'message':_0x144e5b('0x11')}});exports[_0x144e5b('0x9')]=function(_0x41457e,_0x5b1daa){return function(_0xd4a18e){const _0x1ccb1f=a1204_0x4a32;try{const _0x5b89d4={'condition':htmlToText(utils[_0x1ccb1f('0x15')](_0x5b1daa[0x0],this),{'wordwrap':![]})[_0x1ccb1f('0xb')](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x5b1daa[0x1],'priorityFalse':_0x5b1daa[0x2]},_0x50e6bf=gotoif[_0x1ccb1f('0x1b')](_0x5b89d4,{'typecast':!![]});if(_0x50e6bf[_0x1ccb1f('0x12')])logger['error'](_0x1ccb1f('0xc'),_0x41457e,_[_0x1ccb1f('0x5')](_0x50e6bf,_0x1ccb1f('0x6'))['join'](',\x20')),_0xd4a18e[_0x1ccb1f('0x3')]();else try{const _0x549d47=eval('('+_0x5b89d4[_0x1ccb1f('0xa')]+')'),_0x325f03=_0x549d47?_0x5b89d4[_0x1ccb1f('0x10')]:_0x5b89d4['priorityFalse'];logger['info']('[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s',_0x41457e,_0x5b89d4[_0x1ccb1f('0xa')],_0x549d47,_0x325f03||_0x1ccb1f('0xd'));if(_0x325f03){const _0x281c2b=_[_0x1ccb1f('0x2')](_0xd4a18e[_0x1ccb1f('0xf')](),{'p':_0x325f03});_0x281c2b>=0x0?(logger['info']('[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s',_0x41457e,_0x325f03||_0x1ccb1f('0xd'),_0x281c2b),_0xd4a18e[_0x1ccb1f('0xd')](_0x281c2b)):(logger[_0x1ccb1f('0x14')](_0x1ccb1f('0x17'),_0x41457e,_0x325f03||'next'),_0xd4a18e['stop']());}else _0xd4a18e[_0x1ccb1f('0xd')]();}catch(_0x2db2bc){logger[_0x1ccb1f('0x0')](_0x1ccb1f('0x8'),_0x41457e,_0x2db2bc[_0x1ccb1f('0x6')]),_0xd4a18e[_0x1ccb1f('0x3')]();}}catch(_0x5534c4){logger[_0x1ccb1f('0x0')]('[%s][GOTOIF]\x20%s',_0x41457e,JSON[_0x1ccb1f('0x1a')](_0x5534c4)),_0xd4a18e[_0x1ccb1f('0x3')]();}};}; \ No newline at end of file +const a1206_0xad8e=['priority\x20false\x20is\x20a\x20number','next','consequence','map','condition\x20is\x20a\x20string\x20and\x20it\x20is\x20required','condition','length','error','priority\x20true\x20is\x20a\x20number','[%s][GOTOIF]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','[%s][GOTOIF]\x20condition\x20%s\x20is\x20%s\x20try\x20goto\x20priority\x20%s','[%s][GOTOIF]\x20priority\x20%s\x20not\x20found','routing','[%s][GOTOIF]\x20%s','stringify','[%s][GOTOIF]\x20eval\x20error:\x20%s','../../../../config/logger','number','stop','string','message','priorityFalse','html-to-text','./utils','replace','info'];(function(_0x23f5a1,_0xad8eae){const _0x1fde39=function(_0x4219fc){while(--_0x4219fc){_0x23f5a1['push'](_0x23f5a1['shift']());}};_0x1fde39(++_0xad8eae);}(a1206_0xad8e,0x7e));const a1206_0x1fde=function(_0x23f5a1,_0xad8eae){_0x23f5a1=_0x23f5a1-0x0;let _0x1fde39=a1206_0xad8e[_0x23f5a1];return _0x1fde39;};const _0xa8deac=a1206_0x1fde;'use strict';const schema=require('validate'),_=require('lodash'),{htmlToText}=require(_0xa8deac('0x0')),utils=require(_0xa8deac('0x1')),logger=require(_0xa8deac('0x14'))(_0xa8deac('0x10')),gotoif=schema({'condition':{'type':_0xa8deac('0x17'),'required':!![],'message':_0xa8deac('0x8')},'priorityTrue':{'type':_0xa8deac('0x15'),'message':_0xa8deac('0xc')},'priorityFalse':{'type':_0xa8deac('0x15'),'message':_0xa8deac('0x4')}});exports[_0xa8deac('0x6')]=function(_0x4219fc,_0x517e6d){return function(_0x8272ab){const _0x27427f=a1206_0x1fde;try{const _0x3d6fa4={'condition':htmlToText(utils['getMustacheRender'](_0x517e6d[0x0],this),{'wordwrap':![]})[_0x27427f('0x2')](/<\/?[^>]+(>|$)/g,''),'priorityTrue':_0x517e6d[0x1],'priorityFalse':_0x517e6d[0x2]},_0x2726f3=gotoif['validate'](_0x3d6fa4,{'typecast':!![]});if(_0x2726f3[_0x27427f('0xa')])logger[_0x27427f('0xb')](_0x27427f('0x11'),_0x4219fc,_[_0x27427f('0x7')](_0x2726f3,_0x27427f('0x18'))['join'](',\x20')),_0x8272ab[_0x27427f('0x16')]();else try{const _0x45c178=eval('('+_0x3d6fa4['condition']+')'),_0x2b1e5f=_0x45c178?_0x3d6fa4['priorityTrue']:_0x3d6fa4[_0x27427f('0x19')];logger['info'](_0x27427f('0xe'),_0x4219fc,_0x3d6fa4[_0x27427f('0x9')],_0x45c178,_0x2b1e5f||_0x27427f('0x5'));if(_0x2b1e5f){const _0x3b4e68=_['findIndex'](_0x8272ab['rules'](),{'p':_0x2b1e5f});_0x3b4e68>=0x0?(logger[_0x27427f('0x3')](_0x27427f('0xd'),_0x4219fc,_0x2b1e5f||_0x27427f('0x5'),_0x3b4e68),_0x8272ab['next'](_0x3b4e68)):(logger[_0x27427f('0x3')](_0x27427f('0xf'),_0x4219fc,_0x2b1e5f||_0x27427f('0x5')),_0x8272ab['stop']());}else _0x8272ab['next']();}catch(_0x4a2dcd){logger[_0x27427f('0xb')](_0x27427f('0x13'),_0x4219fc,_0x4a2dcd['message']),_0x8272ab[_0x27427f('0x16')]();}}catch(_0x33450e){logger[_0x27427f('0xb')](_0x27427f('0x11'),_0x4219fc,JSON[_0x27427f('0x12')](_0x33450e)),_0x8272ab[_0x27427f('0x16')]();}};}; \ 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 c25fbaa..5540f73 100644 --- a/server/services/routing/server/applications/gotop.js +++ b/server/services/routing/server/applications/gotop.js @@ -1 +1 @@ -const a1205_0x56a8=['lodash','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','findIndex','message','rules','map','routing','priority','error','next','join','[%s][GOTOP]\x20priority\x20%s','number','consequence','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','validate','length','[%s][GOTOP]\x20%s','stop'];(function(_0xd8b885,_0x56a883){const _0x16782b=function(_0x1a7fd2){while(--_0x1a7fd2){_0xd8b885['push'](_0xd8b885['shift']());}};_0x16782b(++_0x56a883);}(a1205_0x56a8,0x66));const a1205_0x1678=function(_0xd8b885,_0x56a883){_0xd8b885=_0xd8b885-0x0;let _0x16782b=a1205_0x56a8[_0xd8b885];return _0x16782b;};const _0x370ea9=a1205_0x1678;'use strict';const schema=require('validate'),_=require(_0x370ea9('0xc')),logger=require('../../../../config/logger')(_0x370ea9('0x12')),gotop=schema({'priority':{'type':_0x370ea9('0x5'),'required':!![],'message':'priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required'}});exports[_0x370ea9('0x6')]=function(_0x1a7fd2,_0x1ed32d){return function(_0x59dfd9){const _0x11be03=a1205_0x1678;try{const _0x475eab={'priority':_0x1ed32d[0x0]},_0x1b0b92=gotop[_0x11be03('0x8')](_0x475eab,{'typecast':!![]});if(_0x1b0b92[_0x11be03('0x9')])logger[_0x11be03('0x1')]('[%s][GOTOP]\x20%s',_0x1a7fd2,_[_0x11be03('0x11')](_0x1b0b92,_0x11be03('0xf'))[_0x11be03('0x3')](',\x20')),_0x59dfd9[_0x11be03('0xb')]();else{logger['info'](_0x11be03('0x4'),_0x1a7fd2,_0x475eab['priority']);if(_0x475eab[_0x11be03('0x0')]){const _0x46b52d=_[_0x11be03('0xe')](_0x59dfd9[_0x11be03('0x10')](),{'p':_0x475eab[_0x11be03('0x0')]});_0x46b52d>=0x0?(logger['info'](_0x11be03('0x7'),_0x1a7fd2,_0x475eab['priority']||_0x11be03('0x2'),_0x46b52d),_0x59dfd9[_0x11be03('0x2')](_0x46b52d)):(logger['info'](_0x11be03('0xd'),_0x1a7fd2,_0x475eab['priority']||'next'),_0x59dfd9[_0x11be03('0xb')]());}else _0x59dfd9[_0x11be03('0x2')]();}}catch(_0x435349){logger[_0x11be03('0x1')](_0x11be03('0xa'),_0x1a7fd2,JSON['stringify'](_0x435349)),_0x59dfd9[_0x11be03('0xb')]();}};}; \ No newline at end of file +const a1207_0x336b=['lodash','[%s][GOTOP]\x20priority\x20%s\x20not\x20found','next','join','findIndex','info','[%s][GOTOP]\x20priority\x20%s\x20found\x20at\x20index:\x20%s','error','validate','priority','priority\x20is\x20a\x20number\x20and\x20it\x20is\x20required','consequence','stringify','length','../../../../config/logger','stop','map','routing','[%s][GOTOP]\x20%s'];(function(_0x1968f7,_0x336be3){const _0x134f83=function(_0x4dca30){while(--_0x4dca30){_0x1968f7['push'](_0x1968f7['shift']());}};_0x134f83(++_0x336be3);}(a1207_0x336b,0x8a));const a1207_0x134f=function(_0x1968f7,_0x336be3){_0x1968f7=_0x1968f7-0x0;let _0x134f83=a1207_0x336b[_0x1968f7];return _0x134f83;};const _0x395a53=a1207_0x134f;'use strict';const schema=require('validate'),_=require(_0x395a53('0xe')),logger=require(_0x395a53('0x9'))(_0x395a53('0xc')),gotop=schema({'priority':{'type':'number','required':!![],'message':_0x395a53('0x5')}});exports[_0x395a53('0x6')]=function(_0x4dca30,_0x14e20f){return function(_0x27e1b8){const _0x30bd9b=a1207_0x134f;try{const _0x156045={'priority':_0x14e20f[0x0]},_0x4699ce=gotop[_0x30bd9b('0x3')](_0x156045,{'typecast':!![]});if(_0x4699ce[_0x30bd9b('0x8')])logger[_0x30bd9b('0x2')](_0x30bd9b('0xd'),_0x4dca30,_[_0x30bd9b('0xb')](_0x4699ce,'message')[_0x30bd9b('0x11')](',\x20')),_0x27e1b8[_0x30bd9b('0xa')]();else{logger[_0x30bd9b('0x0')]('[%s][GOTOP]\x20priority\x20%s',_0x4dca30,_0x156045['priority']);if(_0x156045[_0x30bd9b('0x4')]){const _0x3891c4=_[_0x30bd9b('0x12')](_0x27e1b8['rules'](),{'p':_0x156045[_0x30bd9b('0x4')]});_0x3891c4>=0x0?(logger[_0x30bd9b('0x0')](_0x30bd9b('0x1'),_0x4dca30,_0x156045[_0x30bd9b('0x4')]||'next',_0x3891c4),_0x27e1b8[_0x30bd9b('0x10')](_0x3891c4)):(logger['info'](_0x30bd9b('0xf'),_0x4dca30,_0x156045[_0x30bd9b('0x4')]||_0x30bd9b('0x10')),_0x27e1b8[_0x30bd9b('0xa')]());}else _0x27e1b8[_0x30bd9b('0x10')]();}}catch(_0x3b178f){logger[_0x30bd9b('0x2')](_0x30bd9b('0xd'),_0x4dca30,JSON[_0x30bd9b('0x7')](_0x3b178f)),_0x27e1b8[_0x30bd9b('0xa')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/message.js b/server/services/routing/server/applications/message.js index 9c06b62..1cb5f7f 100644 --- a/server/services/routing/server/applications/message.js +++ b/server/services/routing/server/applications/message.js @@ -1 +1 @@ -const a1206_0x47fe=['[%s][MESSAGE]\x20%s','error','AccountId','then','catch','../../rpc/whatsappMessage','lodash','body','getMustacheRender','stop','routing','ChatWebsiteId','../../rpc/mailMessage','InteractionId','contact','stringify','info','create','../../rpc/faxMessage','channel','../../rpc/chatMessage','next','account','Message'];(function(_0x473ed8,_0x47fed1){const _0x31c426=function(_0x1d6c8b){while(--_0x1d6c8b){_0x473ed8['push'](_0x473ed8['shift']());}};_0x31c426(++_0x47fed1);}(a1206_0x47fe,0x1ed));const a1206_0x31c4=function(_0x473ed8,_0x47fed1){_0x473ed8=_0x473ed8-0x0;let _0x31c426=a1206_0x47fe[_0x473ed8];return _0x31c426;};const _0x43135e=a1206_0x31c4;'use strict';const _=require(_0x43135e('0x11')),utils=require('./utils'),logger=require('../../../../config/logger')(_0x43135e('0x15')),rpc={'chatMessage':require(_0x43135e('0x7')),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require(_0x43135e('0x17')),'smsMessage':require('../../rpc/smsMessage'),'faxMessage':require(_0x43135e('0x5')),'whatsappMessage':require(_0x43135e('0x10'))};exports['consequence']=function(_0x1d6c8b,_0x3d49e9){return function(_0x423e13){const _0x24a944=a1206_0x31c4;try{const _0xb9253b={'body':utils[_0x24a944('0x13')](_0x3d49e9[0x0],this),'ContactId':this[_0x24a944('0x1')]['id']};this['channel']==='chat'?_0xb9253b[_0x24a944('0x16')]=this['account']['id']:_0xb9253b[_['upperFirst'](this[_0x24a944('0x6')])+_0x24a944('0xd')]=this[_0x24a944('0x9')]['id'];_0xb9253b[_['upperFirst'](this[_0x24a944('0x6')])+_0x24a944('0x0')]=this['interaction']['id'];if(rpc[this[_0x24a944('0x6')]+_0x24a944('0xa')])return rpc[this[_0x24a944('0x6')]+_0x24a944('0xa')][_0x24a944('0x4')](_0xb9253b)[_0x24a944('0xe')](function(){const _0x5d6650=_0x24a944;logger[_0x5d6650('0x3')]('[%s][MESSAGE]\x20%s',_0x1d6c8b,_0xb9253b[_0x5d6650('0x12')]),_0x423e13[_0x5d6650('0x8')]();})[_0x24a944('0xf')](function(_0x458f85){const _0x4534e2=_0x24a944;logger[_0x4534e2('0xc')](_0x4534e2('0xb'),_0x1d6c8b,JSON[_0x4534e2('0x2')](_0x458f85)),_0x423e13[_0x4534e2('0x14')]();});}catch(_0x28fd75){logger[_0x24a944('0xc')](_0x24a944('0xb'),_0x1d6c8b,JSON[_0x24a944('0x2')](_0x28fd75)),_0x423e13[_0x24a944('0x14')]();}};}; \ No newline at end of file +const a1208_0x41a0=['consequence','chat','lodash','./utils','../../rpc/whatsappMessage','body','Message','../../../../config/logger','then','stop','stringify','../../rpc/smsMessage','error','channel','../../rpc/faxMessage','next','contact','[%s][MESSAGE]\x20%s','InteractionId','catch','AccountId','routing','create'];(function(_0xdcece,_0x41a07e){const _0x4ba74c=function(_0xac3302){while(--_0xac3302){_0xdcece['push'](_0xdcece['shift']());}};_0x4ba74c(++_0x41a07e);}(a1208_0x41a0,0xe1));const a1208_0x4ba7=function(_0xdcece,_0x41a07e){_0xdcece=_0xdcece-0x0;let _0x4ba74c=a1208_0x41a0[_0xdcece];return _0x4ba74c;};const _0x237497=a1208_0x4ba7;'use strict';const _=require(_0x237497('0x7')),utils=require(_0x237497('0x8')),logger=require(_0x237497('0xc'))(_0x237497('0x3')),rpc={'chatMessage':require('../../rpc/chatMessage'),'openchannelMessage':require('../../rpc/openchannelMessage'),'mailMessage':require('../../rpc/mailMessage'),'smsMessage':require(_0x237497('0x10')),'faxMessage':require(_0x237497('0x13')),'whatsappMessage':require(_0x237497('0x9'))};exports[_0x237497('0x5')]=function(_0xac3302,_0x1627ea){return function(_0x4e73a1){const _0x3da7c1=a1208_0x4ba7;try{const _0x52a7de={'body':utils['getMustacheRender'](_0x1627ea[0x0],this),'ContactId':this[_0x3da7c1('0x15')]['id']};this[_0x3da7c1('0x12')]===_0x3da7c1('0x6')?_0x52a7de['ChatWebsiteId']=this['account']['id']:_0x52a7de[_['upperFirst'](this[_0x3da7c1('0x12')])+_0x3da7c1('0x2')]=this['account']['id'];_0x52a7de[_['upperFirst'](this['channel'])+_0x3da7c1('0x0')]=this['interaction']['id'];if(rpc[this['channel']+'Message'])return rpc[this['channel']+_0x3da7c1('0xb')][_0x3da7c1('0x4')](_0x52a7de)[_0x3da7c1('0xd')](function(){const _0x227e0b=_0x3da7c1;logger['info']('[%s][MESSAGE]\x20%s',_0xac3302,_0x52a7de[_0x227e0b('0xa')]),_0x4e73a1[_0x227e0b('0x14')]();})[_0x3da7c1('0x1')](function(_0x3cbaec){const _0x1c9cfd=_0x3da7c1;logger[_0x1c9cfd('0x11')](_0x1c9cfd('0x16'),_0xac3302,JSON[_0x1c9cfd('0xf')](_0x3cbaec)),_0x4e73a1[_0x1c9cfd('0xe')]();});}catch(_0x5c977d){logger[_0x3da7c1('0x11')]('[%s][MESSAGE]\x20%s',_0xac3302,JSON[_0x3da7c1('0xf')](_0x5c977d)),_0x4e73a1[_0x3da7c1('0xe')]();}};}; \ 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 95f20f7..a36dead 100644 --- a/server/services/routing/server/applications/noop.js +++ b/server/services/routing/server/applications/noop.js @@ -1 +1 @@ -const a1207_0x125e=['stringify','routing','./utils','stop','[%s][NOOP]\x20%s','error','info','next','getMustacheRender','../../../../config/logger'];(function(_0x12b887,_0x125ee8){const _0x561153=function(_0x1d541f){while(--_0x1d541f){_0x12b887['push'](_0x12b887['shift']());}};_0x561153(++_0x125ee8);}(a1207_0x125e,0x6e));const a1207_0x5611=function(_0x12b887,_0x125ee8){_0x12b887=_0x12b887-0x0;let _0x561153=a1207_0x125e[_0x12b887];return _0x561153;};const _0x38d30b=a1207_0x5611;'use strict';const utils=require(_0x38d30b('0x2')),logger=require(_0x38d30b('0x9'))(_0x38d30b('0x1'));exports['consequence']=function(_0x1d541f,_0x5ee955){return function(_0x44437b){const _0x46aafe=a1207_0x5611;try{logger[_0x46aafe('0x6')]('[%s][NOOP]\x20%s',_0x1d541f,utils[_0x46aafe('0x8')](_0x5ee955[0x0],this)),_0x44437b[_0x46aafe('0x7')]();}catch(_0x52f5eb){logger[_0x46aafe('0x5')](_0x46aafe('0x4'),_0x1d541f,JSON[_0x46aafe('0x0')](_0x52f5eb)),_0x44437b[_0x46aafe('0x3')]();}};}; \ No newline at end of file +const a1209_0x57d0=['routing','info','../../../../config/logger','error','[%s][NOOP]\x20%s','stop','getMustacheRender','consequence','./utils','stringify'];(function(_0x431be5,_0x57d06e){const _0x10ff4d=function(_0x5bb705){while(--_0x5bb705){_0x431be5['push'](_0x431be5['shift']());}};_0x10ff4d(++_0x57d06e);}(a1209_0x57d0,0xab));const a1209_0x10ff=function(_0x431be5,_0x57d06e){_0x431be5=_0x431be5-0x0;let _0x10ff4d=a1209_0x57d0[_0x431be5];return _0x10ff4d;};const _0x61d5a1=a1209_0x10ff;'use strict';const utils=require(_0x61d5a1('0x7')),logger=require(_0x61d5a1('0x1'))(_0x61d5a1('0x9'));exports[_0x61d5a1('0x6')]=function(_0x5bb705,_0x137c60){return function(_0x57c0d7){const _0x213d87=a1209_0x10ff;try{logger[_0x213d87('0x0')](_0x213d87('0x3'),_0x5bb705,utils[_0x213d87('0x5')](_0x137c60[0x0],this)),_0x57c0d7['next']();}catch(_0x4abd7a){logger[_0x213d87('0x2')](_0x213d87('0x3'),_0x5bb705,JSON[_0x213d87('0x8')](_0x4abd7a)),_0x57c0d7[_0x213d87('0x4')]();}};}; \ 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 33c1a9a..bdebd40 100644 --- a/server/services/routing/server/applications/queue.js +++ b/server/services/routing/server/applications/queue.js @@ -1 +1 @@ -const a1208_0x3703=['find','[%s][START:QUEUE][NAME:%s]','[%s][QUEUE]\x20%s','QueueReport','update','from','rrmemory','length','error','catch','[%s][QUEUE]\x20APPLICATION\x20END','MessageId','message','list','../../rpc/openchannelQueueReport','clone','body','rules','toLowerCase','Queues','lodash','queue_id','../../rpc/smsQueueReport','end','accepted','validate','queue','joinAt','contact','complete','YYYY-MM-DD\x20HH:mm:ss','beepall','pick','seq-queue','close','[%s][END:QUEUE][NAME:%s]','qtimeout','../../rpc/whatsappQueueReport','strategy','consequence','../../../../config/logger','stack','../../rpc/faxQueueReport','name','update\x20queue\x20report','channel','remove','account','../../rpc/chatQueueReport','./strategy','emit','format','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','%s:queue:%s','QueueId','save','AccountId','stop','log','waiting','info','atimeout','%sQueuesWaitingInteractions','upperFirst','[%s][STOP:QUEUE][NAME:%s]','%s_queue_waiting_interaction:%s','timeout','interaction','../../rpc/mailQueueReport','../../../../rediscache'];(function(_0x1e1c01,_0x37032b){const _0x582384=function(_0x299423){while(--_0x299423){_0x1e1c01['push'](_0x1e1c01['shift']());}};_0x582384(++_0x37032b);}(a1208_0x3703,0x10d));const a1208_0x5823=function(_0x1e1c01,_0x37032b){_0x1e1c01=_0x1e1c01-0x0;let _0x582384=a1208_0x3703[_0x1e1c01];return _0x582384;};const _0x509793=a1208_0x5823;'use strict';const schema=require('validate'),_=require(_0x509793('0x1f')),util=require('util'),seqqueue=require(_0x509793('0x2c')),moment=require('moment'),logger=require(_0x509793('0x33'))('routing'),strategy=require(_0x509793('0x3c')),{getSocket}=require(_0x509793('0xa')),io=getSocket(),attributes=['id',_0x509793('0x20'),_0x509793('0x3a'),'queue',_0x509793('0x10'),_0x509793('0x26')];function emit(_0x299423,_0x1bbb52,_0x304a7b){const _0x79c3ee=_0x509793;io['to'](_0x299423)[_0x79c3ee('0x3d')](_0x1bbb52,_0x304a7b);}function emitChannelQueueInteraction(_0x283d12,_0x31dd34,_0x431d3d,_0x179809,_0x52a2e7,_0x767ba3,_0x396f69,_0x55c1f3){const _0x3988fc=_0x509793,_0x5ae6ea=_[_0x3988fc('0x1a')](_0x431d3d);_0x5ae6ea[_0x3988fc('0x20')]=_0x55c1f3,_0x5ae6ea[_0x3988fc('0x25')]=_0x31dd34,_0x5ae6ea[_0x3988fc('0x3a')]=_0x179809,_0x5ae6ea['id']=_0x52a2e7,_0x767ba3?_0x396f69[util[_0x3988fc('0x3e')](_0x3988fc('0x3'),_0x283d12)][_0x52a2e7]=_['pick'](_0x5ae6ea,attributes):delete _0x396f69[util['format']('%sQueuesWaitingInteractions',_0x283d12)][_0x52a2e7],emit(util[_0x3988fc('0x3e')](_0x3988fc('0x40'),_0x283d12,_0x31dd34),util[_0x3988fc('0x3e')](_0x3988fc('0x6'),_0x283d12,_0x767ba3?_0x3988fc('0x42'):_0x3988fc('0x39')),_[_0x3988fc('0x2b')](_0x5ae6ea,attributes));}const rpc={'openchannelQueueReport':require(_0x509793('0x19')),'mailQueueReport':require(_0x509793('0x9')),'chatQueueReport':require(_0x509793('0x3b')),'smsQueueReport':require(_0x509793('0x21')),'faxQueueReport':require(_0x509793('0x35')),'whatsappQueueReport':require(_0x509793('0x30'))},queue=schema({'name':{'type':'string','required':!![],'message':'name\x20is\x20a\x20string\x20and\x20it\x20is\x20required'},'timeout':{'type':'number','message':'timeout\x20is\x20a\x20number'}});function startRouting(_0x1c25ca,_0x4b8aaf,_0x15d1a4,_0x537697){const _0x156966=_0x509793;if(_0x1c25ca&&_0x4b8aaf&&_0x15d1a4){_0x4b8aaf[_0x156966('0x0')]+=0x1;const _0x3f341c={'uniqueid':_0x1c25ca,'from':_0x15d1a4['body']?_0x15d1a4[_0x156966('0x1b')][_0x156966('0x10')]:'','joinAt':moment()['format']('YYYY-MM-DD\x20HH:mm:ss'),'ContactId':_0x15d1a4['contact']?_0x15d1a4[_0x156966('0x27')]['id']:null,'ListId':_0x15d1a4[_0x156966('0x18')]?_0x15d1a4[_0x156966('0x18')]['id']:null};_0x3f341c[_[_0x156966('0x4')](_0x15d1a4[_0x156966('0x38')])+_0x156966('0x41')]=_0x4b8aaf['id']||null,_0x3f341c[_[_0x156966('0x4')](_0x15d1a4[_0x156966('0x38')])+'InteractionId']=_0x15d1a4[_0x156966('0x8')]?_0x15d1a4[_0x156966('0x8')]['id']:null,_0x3f341c[_[_0x156966('0x4')](_0x15d1a4['channel'])+_0x156966('0x16')]=_0x15d1a4[_0x156966('0x17')]?_0x15d1a4[_0x156966('0x17')]['id']:null,_0x3f341c[_[_0x156966('0x4')](_0x15d1a4[_0x156966('0x38')])+(_0x15d1a4[_0x156966('0x38')]!=='chat'?_0x156966('0x43'):'WebsiteId')]=_0x15d1a4[_0x156966('0x3a')]?_0x15d1a4['account']['id']:null,logger[_0x156966('0x1')](util['format'](_0x156966('0xc'),_0x1c25ca,_0x4b8aaf[_0x156966('0x36')])),emitChannelQueueInteraction(_0x15d1a4[_0x156966('0x38')],_0x4b8aaf[_0x156966('0x36')],_0x3f341c,_0x15d1a4[_0x156966('0x3a')][_0x156966('0x36')],_0x15d1a4[_0x156966('0x17')]['id'],!![],_0x537697,_0x4b8aaf['id']);if(rpc[_0x15d1a4[_0x156966('0x38')]+_0x156966('0xe')])return rpc[_0x15d1a4['channel']+_0x156966('0xe')]['create'](_0x3f341c)[_0x156966('0x14')](function(){logger['error']('create\x20queue\x20report');});}}function stopRouting(_0x3fb58b,_0x55f82b,_0x193d75,_0x3a8977){const _0x4730dc=_0x509793;if(_0x3fb58b&&_0x55f82b){_0x55f82b[_0x4730dc('0x0')]-=0x1;const _0x435946={'leaveAt':moment()[_0x4730dc('0x3e')](_0x4730dc('0x29')),'acceptAt':moment()[_0x4730dc('0x3e')](_0x4730dc('0x29')),'reason':_0x4730dc('0x23')};logger[_0x4730dc('0x1')](util['format'](_0x4730dc('0x5'),_0x3fb58b,_0x55f82b[_0x4730dc('0x36')])),emitChannelQueueInteraction(_0x193d75[_0x4730dc('0x38')],_0x55f82b[_0x4730dc('0x36')],_0x193d75['body'],_0x193d75[_0x4730dc('0x3a')][_0x4730dc('0x36')],_0x193d75[_0x4730dc('0x17')]['id'],![],_0x3a8977,_0x55f82b['id']);if(rpc[_0x193d75['channel']+_0x4730dc('0xe')])return rpc[_0x193d75[_0x4730dc('0x38')]+_0x4730dc('0xe')][_0x4730dc('0xf')](_0x3fb58b,_0x435946)['catch'](function(){const _0x31008e=_0x4730dc;logger[_0x31008e('0x13')](_0x31008e('0x37'));});}}function endRouting(_0x5787a2,_0x6a5131,_0x37cc25,_0x2f12a3){const _0x30db6f=_0x509793;if(_0x5787a2&&_0x6a5131){_0x6a5131[_0x30db6f('0x0')]-=0x1;const _0x870c00={'leaveAt':moment()[_0x30db6f('0x3e')](_0x30db6f('0x29')),'exitAt':moment()[_0x30db6f('0x3e')]('YYYY-MM-DD\x20HH:mm:ss'),'reason':'timeout'};logger['info'](util[_0x30db6f('0x3e')](_0x30db6f('0x2e'),_0x5787a2,_0x6a5131[_0x30db6f('0x36')])),emitChannelQueueInteraction(_0x37cc25[_0x30db6f('0x38')],_0x6a5131['name'],_0x37cc25[_0x30db6f('0x1b')],_0x37cc25[_0x30db6f('0x3a')]['name'],_0x37cc25[_0x30db6f('0x17')]['id'],![],_0x2f12a3);if(rpc[_0x37cc25['channel']+'QueueReport'])return rpc[_0x37cc25[_0x30db6f('0x38')]+_0x30db6f('0xe')][_0x30db6f('0xf')](_0x5787a2,_0x870c00)['catch'](function(){const _0x338995=_0x30db6f;logger[_0x338995('0x13')]('update\x20queue\x20report');});}}function handleFindQueue(_0x43b27e){return function(_0x56196b){const _0x2ac039=a1208_0x5823;return _0x56196b[_0x2ac039('0x36')][_0x2ac039('0x1d')]()===_0x43b27e['toLowerCase']();};}exports[_0x509793('0x32')]=function(_0x1ff972,_0x519010,_0x2cb47b,_0x1f7396){return function(_0x33decc){const _0x114322=a1208_0x5823;try{const _0x63af4f={'name':_0x519010[0x0],'timeout':_0x519010[0x1]},_0x44ad38=queue[_0x114322('0x24')](_0x63af4f,{'typecast':!![]});if(_0x44ad38[_0x114322('0x12')])logger[_0x114322('0x13')](_0x114322('0xd'),_0x1ff972,_['map'](_0x44ad38,'message')['join'](',\x20')),_0x33decc['stop']();else{const _0x457e9f=_[_0x114322('0xb')](_0x2cb47b[_0x1f7396[_0x114322('0x38')]+_0x114322('0x1e')],handleFindQueue(_0x63af4f['name']));if(_0x457e9f){startRouting(_0x1ff972,_0x457e9f,_0x1f7396,_0x2cb47b);const _0x32bd23=(_0x457e9f['timeout']||0xa)*0x3e8;let _0x5b0ea5=(_0x63af4f[_0x114322('0x7')]||0x14)*0x3e8,_0x2d0b9e;_0x32bd23>_0x5b0ea5&&(_0x5b0ea5=_0x32bd23);const _0x350c49=seqqueue['createQueue'](_0x32bd23);_0x350c49['id']=_0x1ff972,_0x350c49[_0x114322('0x2')]=_0x32bd23,_0x350c49[_0x114322('0x2f')]=_0x5b0ea5,_0x350c49['channel']=_0x1f7396['channel'],_0x2cb47b[_0x114322('0x1c')][_0x1ff972]['on'](_0x114322('0x22'),function(){const _0x1713ba=_0x114322;logger['info']('[%s][QUEUE]\x20ROUTING\x20STOPPED',_0x1ff972),stopRouting(_0x1ff972,_0x457e9f,_0x1f7396,_0x2cb47b),clearTimeout(_0x2d0b9e),_0x2d0b9e=undefined,_0x350c49[_0x1713ba('0x2d')](!![]),_0x2cb47b[_0x1713ba('0x1c')][_0x1ff972]&&delete _0x2cb47b[_0x1713ba('0x1c')][_0x1ff972],_0x33decc[_0x1713ba('0x44')]();}),_0x2cb47b[_0x114322('0x1c')][_0x1ff972]['on'](_0x114322('0x28'),function(){const _0x59f9f3=_0x114322;_0x2cb47b[_0x59f9f3('0x1c')][_0x1ff972]&&delete _0x2cb47b[_0x59f9f3('0x1c')][_0x1ff972];}),_0x2d0b9e=setTimeout(function(){const _0x1959c5=_0x114322;logger[_0x1959c5('0x1')](_0x1959c5('0x15'),_0x1ff972),endRouting(_0x1ff972,_0x457e9f,_0x1f7396,_0x2cb47b),clearTimeout(_0x2d0b9e),_0x350c49[_0x1959c5('0x2d')](!![]),_0x33decc['next']();},_0x5b0ea5);switch(_0x457e9f[_0x114322('0x31')]){case _0x114322('0x11'):strategy['rrmemory'](_0x350c49,_0x457e9f,_0x2cb47b,_0x1f7396);break;default:strategy[_0x114322('0x2a')](_0x350c49,_0x457e9f,_0x2cb47b,_0x1f7396);}}else logger['error'](_0x114322('0x3f'),_0x1ff972,_0x63af4f[_0x114322('0x36')]),_0x33decc[_0x114322('0x44')]();}}catch(_0x2137fa){console[_0x114322('0x45')](_0x2137fa),logger[_0x114322('0x13')](_0x114322('0xd'),_0x1ff972,_0x2137fa[_0x114322('0x34')]),_0x33decc['stop']();}};}; \ No newline at end of file +const a1210_0x3b83=['validate','[%s][END:QUEUE][NAME:%s]','update','update\x20queue\x20report','end','name\x20is\x20a\x20string\x20and\x20it\x20is\x20required','InteractionId','contact','qtimeout','%s:queue:%s','toLowerCase','channel','next','account','list','create','[%s][QUEUE]\x20APPLICATION\x20END','error','rules','MessageId','AccountId','moment','close','[%s][QUEUE]\x20queue\x20not\x20found\x20%s','catch','queue_id','consequence','../../rpc/faxQueueReport','complete','../../rpc/smsQueueReport','%sQueuesWaitingInteractions','upperFirst','name','queue','../../rpc/mailQueueReport','message','log','strategy','Queues','save','interaction','find','from','info','format','clone','./strategy','body','timeout','seq-queue','[%s][QUEUE]\x20%s','waiting','createQueue','length','YYYY-MM-DD\x20HH:mm:ss','QueueReport','[%s][START:QUEUE][NAME:%s]','timeout\x20is\x20a\x20number','stack','../../../../config/logger','[%s][QUEUE]\x20ROUTING\x20STOPPED','lodash','map','pick','stop','../../../../rediscache','../../rpc/whatsappQueueReport','util','atimeout','chat','beepall','joinAt'];(function(_0x19f6ea,_0x3b8338){const _0x299598=function(_0x5f5ca2){while(--_0x5f5ca2){_0x19f6ea['push'](_0x19f6ea['shift']());}};_0x299598(++_0x3b8338);}(a1210_0x3b83,0x165));const a1210_0x2995=function(_0x19f6ea,_0x3b8338){_0x19f6ea=_0x19f6ea-0x0;let _0x299598=a1210_0x3b83[_0x19f6ea];return _0x299598;};const _0x1d9936=a1210_0x2995;'use strict';const schema=require(_0x1d9936('0x3')),_=require(_0x1d9936('0x40')),util=require(_0x1d9936('0x46')),seqqueue=require(_0x1d9936('0x34')),moment=require(_0x1d9936('0x18')),logger=require(_0x1d9936('0x3e'))('routing'),strategy=require(_0x1d9936('0x31')),{getSocket}=require(_0x1d9936('0x44')),io=getSocket(),attributes=['id',_0x1d9936('0x1c'),'account',_0x1d9936('0x24'),_0x1d9936('0x2d'),_0x1d9936('0x2')];function emit(_0x5f5ca2,_0x1f2a54,_0x33417b){io['to'](_0x5f5ca2)['emit'](_0x1f2a54,_0x33417b);}function emitChannelQueueInteraction(_0x5618e4,_0x37e698,_0x4628fa,_0x397bd2,_0x30f020,_0x47163c,_0x3325dd,_0x43067c){const _0x266e02=_0x1d9936,_0x22931b=_[_0x266e02('0x30')](_0x4628fa);_0x22931b[_0x266e02('0x1c')]=_0x43067c,_0x22931b[_0x266e02('0x24')]=_0x37e698,_0x22931b[_0x266e02('0x10')]=_0x397bd2,_0x22931b['id']=_0x30f020,_0x47163c?_0x3325dd[util[_0x266e02('0x2f')](_0x266e02('0x21'),_0x5618e4)][_0x30f020]=_[_0x266e02('0x42')](_0x22931b,attributes):delete _0x3325dd[util[_0x266e02('0x2f')](_0x266e02('0x21'),_0x5618e4)][_0x30f020],emit(util['format'](_0x266e02('0xc'),_0x5618e4,_0x37e698),util[_0x266e02('0x2f')]('%s_queue_waiting_interaction:%s',_0x5618e4,_0x47163c?_0x266e02('0x2a'):'remove'),_[_0x266e02('0x42')](_0x22931b,attributes));}const rpc={'openchannelQueueReport':require('../../rpc/openchannelQueueReport'),'mailQueueReport':require(_0x1d9936('0x25')),'chatQueueReport':require('../../rpc/chatQueueReport'),'smsQueueReport':require(_0x1d9936('0x20')),'faxQueueReport':require(_0x1d9936('0x1e')),'whatsappQueueReport':require(_0x1d9936('0x45'))},queue=schema({'name':{'type':'string','required':!![],'message':_0x1d9936('0x8')},'timeout':{'type':'number','message':_0x1d9936('0x3c')}});function startRouting(_0x2dfc9a,_0x562533,_0x21f7ac,_0xd13b23){const _0x1fb8d9=_0x1d9936;if(_0x2dfc9a&&_0x562533&&_0x21f7ac){_0x562533[_0x1fb8d9('0x36')]+=0x1;const _0x5ce17e={'uniqueid':_0x2dfc9a,'from':_0x21f7ac[_0x1fb8d9('0x32')]?_0x21f7ac[_0x1fb8d9('0x32')][_0x1fb8d9('0x2d')]:'','joinAt':moment()[_0x1fb8d9('0x2f')](_0x1fb8d9('0x39')),'ContactId':_0x21f7ac[_0x1fb8d9('0xa')]?_0x21f7ac[_0x1fb8d9('0xa')]['id']:null,'ListId':_0x21f7ac['list']?_0x21f7ac[_0x1fb8d9('0x11')]['id']:null};_0x5ce17e[_[_0x1fb8d9('0x22')](_0x21f7ac[_0x1fb8d9('0xe')])+'QueueId']=_0x562533['id']||null,_0x5ce17e[_[_0x1fb8d9('0x22')](_0x21f7ac[_0x1fb8d9('0xe')])+_0x1fb8d9('0x9')]=_0x21f7ac[_0x1fb8d9('0x2b')]?_0x21f7ac[_0x1fb8d9('0x2b')]['id']:null,_0x5ce17e[_[_0x1fb8d9('0x22')](_0x21f7ac[_0x1fb8d9('0xe')])+_0x1fb8d9('0x16')]=_0x21f7ac[_0x1fb8d9('0x26')]?_0x21f7ac['message']['id']:null,_0x5ce17e[_[_0x1fb8d9('0x22')](_0x21f7ac[_0x1fb8d9('0xe')])+(_0x21f7ac[_0x1fb8d9('0xe')]!==_0x1fb8d9('0x0')?_0x1fb8d9('0x17'):'WebsiteId')]=_0x21f7ac[_0x1fb8d9('0x10')]?_0x21f7ac[_0x1fb8d9('0x10')]['id']:null,logger[_0x1fb8d9('0x2e')](util[_0x1fb8d9('0x2f')](_0x1fb8d9('0x3b'),_0x2dfc9a,_0x562533[_0x1fb8d9('0x23')])),emitChannelQueueInteraction(_0x21f7ac[_0x1fb8d9('0xe')],_0x562533[_0x1fb8d9('0x23')],_0x5ce17e,_0x21f7ac[_0x1fb8d9('0x10')][_0x1fb8d9('0x23')],_0x21f7ac['message']['id'],!![],_0xd13b23,_0x562533['id']);if(rpc[_0x21f7ac[_0x1fb8d9('0xe')]+'QueueReport'])return rpc[_0x21f7ac[_0x1fb8d9('0xe')]+'QueueReport'][_0x1fb8d9('0x12')](_0x5ce17e)[_0x1fb8d9('0x1b')](function(){const _0x25382b=_0x1fb8d9;logger[_0x25382b('0x14')]('create\x20queue\x20report');});}}function stopRouting(_0x9a7fcc,_0x5017b8,_0x37b9ea,_0x48ab2b){const _0x487f09=_0x1d9936;if(_0x9a7fcc&&_0x5017b8){_0x5017b8[_0x487f09('0x36')]-=0x1;const _0x6311f2={'leaveAt':moment()['format'](_0x487f09('0x39')),'acceptAt':moment()[_0x487f09('0x2f')](_0x487f09('0x39')),'reason':'accepted'};logger[_0x487f09('0x2e')](util['format']('[%s][STOP:QUEUE][NAME:%s]',_0x9a7fcc,_0x5017b8[_0x487f09('0x23')])),emitChannelQueueInteraction(_0x37b9ea[_0x487f09('0xe')],_0x5017b8[_0x487f09('0x23')],_0x37b9ea[_0x487f09('0x32')],_0x37b9ea['account'][_0x487f09('0x23')],_0x37b9ea[_0x487f09('0x26')]['id'],![],_0x48ab2b,_0x5017b8['id']);if(rpc[_0x37b9ea[_0x487f09('0xe')]+_0x487f09('0x3a')])return rpc[_0x37b9ea[_0x487f09('0xe')]+'QueueReport'][_0x487f09('0x5')](_0x9a7fcc,_0x6311f2)[_0x487f09('0x1b')](function(){const _0x1fc8ef=_0x487f09;logger[_0x1fc8ef('0x14')](_0x1fc8ef('0x6'));});}}function endRouting(_0x161264,_0x1be179,_0x230635,_0x31ea56){const _0x290fd1=_0x1d9936;if(_0x161264&&_0x1be179){_0x1be179[_0x290fd1('0x36')]-=0x1;const _0x45935b={'leaveAt':moment()['format'](_0x290fd1('0x39')),'exitAt':moment()[_0x290fd1('0x2f')]('YYYY-MM-DD\x20HH:mm:ss'),'reason':'timeout'};logger[_0x290fd1('0x2e')](util[_0x290fd1('0x2f')](_0x290fd1('0x4'),_0x161264,_0x1be179['name'])),emitChannelQueueInteraction(_0x230635[_0x290fd1('0xe')],_0x1be179[_0x290fd1('0x23')],_0x230635['body'],_0x230635[_0x290fd1('0x10')]['name'],_0x230635[_0x290fd1('0x26')]['id'],![],_0x31ea56);if(rpc[_0x230635[_0x290fd1('0xe')]+'QueueReport'])return rpc[_0x230635[_0x290fd1('0xe')]+_0x290fd1('0x3a')]['update'](_0x161264,_0x45935b)['catch'](function(){const _0x38c904=_0x290fd1;logger['error'](_0x38c904('0x6'));});}}function handleFindQueue(_0x54fb3b){return function(_0x3b3a06){const _0x2076f1=a1210_0x2995;return _0x3b3a06[_0x2076f1('0x23')][_0x2076f1('0xd')]()===_0x54fb3b[_0x2076f1('0xd')]();};}exports[_0x1d9936('0x1d')]=function(_0x54af2c,_0x289d12,_0x3a2c99,_0x5df880){return function(_0xf2af7c){const _0x8d455c=a1210_0x2995;try{const _0x337f58={'name':_0x289d12[0x0],'timeout':_0x289d12[0x1]},_0x159428=queue[_0x8d455c('0x3')](_0x337f58,{'typecast':!![]});if(_0x159428[_0x8d455c('0x38')])logger[_0x8d455c('0x14')]('[%s][QUEUE]\x20%s',_0x54af2c,_[_0x8d455c('0x41')](_0x159428,_0x8d455c('0x26'))['join'](',\x20')),_0xf2af7c[_0x8d455c('0x43')]();else{const _0x3fe95e=_[_0x8d455c('0x2c')](_0x3a2c99[_0x5df880['channel']+_0x8d455c('0x29')],handleFindQueue(_0x337f58[_0x8d455c('0x23')]));if(_0x3fe95e){startRouting(_0x54af2c,_0x3fe95e,_0x5df880,_0x3a2c99);const _0x21c10c=(_0x3fe95e[_0x8d455c('0x33')]||0xa)*0x3e8;let _0x3295b4=(_0x337f58[_0x8d455c('0x33')]||0x14)*0x3e8,_0x4447a4;_0x21c10c>_0x3295b4&&(_0x3295b4=_0x21c10c);const _0x30e81a=seqqueue[_0x8d455c('0x37')](_0x21c10c);_0x30e81a['id']=_0x54af2c,_0x30e81a[_0x8d455c('0x47')]=_0x21c10c,_0x30e81a[_0x8d455c('0xb')]=_0x3295b4,_0x30e81a[_0x8d455c('0xe')]=_0x5df880['channel'],_0x3a2c99[_0x8d455c('0x15')][_0x54af2c]['on'](_0x8d455c('0x7'),function(){const _0x656b1b=_0x8d455c;logger[_0x656b1b('0x2e')](_0x656b1b('0x3f'),_0x54af2c),stopRouting(_0x54af2c,_0x3fe95e,_0x5df880,_0x3a2c99),clearTimeout(_0x4447a4),_0x4447a4=undefined,_0x30e81a[_0x656b1b('0x19')](!![]),_0x3a2c99[_0x656b1b('0x15')][_0x54af2c]&&delete _0x3a2c99[_0x656b1b('0x15')][_0x54af2c],_0xf2af7c[_0x656b1b('0x43')]();}),_0x3a2c99[_0x8d455c('0x15')][_0x54af2c]['on'](_0x8d455c('0x1f'),function(){const _0x5dc4b1=_0x8d455c;_0x3a2c99['rules'][_0x54af2c]&&delete _0x3a2c99[_0x5dc4b1('0x15')][_0x54af2c];}),_0x4447a4=setTimeout(function(){const _0x5db141=_0x8d455c;logger[_0x5db141('0x2e')](_0x5db141('0x13'),_0x54af2c),endRouting(_0x54af2c,_0x3fe95e,_0x5df880,_0x3a2c99),clearTimeout(_0x4447a4),_0x30e81a['close'](!![]),_0xf2af7c[_0x5db141('0xf')]();},_0x3295b4);switch(_0x3fe95e[_0x8d455c('0x28')]){case'rrmemory':strategy['rrmemory'](_0x30e81a,_0x3fe95e,_0x3a2c99,_0x5df880);break;default:strategy[_0x8d455c('0x1')](_0x30e81a,_0x3fe95e,_0x3a2c99,_0x5df880);}}else logger[_0x8d455c('0x14')](_0x8d455c('0x1a'),_0x54af2c,_0x337f58[_0x8d455c('0x23')]),_0xf2af7c['stop']();}}catch(_0x2e7836){console[_0x8d455c('0x27')](_0x2e7836),logger[_0x8d455c('0x14')](_0x8d455c('0x35'),_0x54af2c,_0x2e7836[_0x8d455c('0x3d')]),_0xf2af7c[_0x8d455c('0x43')]();}};}; \ 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 e2c2e67..32b80fc 100644 --- a/server/services/routing/server/applications/strategy/agent.js +++ b/server/services/routing/server/applications/strategy/agent.js @@ -1 +1 @@ -const a1209_0x1fbc=['info','[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available','forcedOwnership','agent','squeue','TIMEOUT','isNil','realtime','handleTimeout','writeLog','busyQueue','agents','[%s][AGENT]\x20try\x20with\x20%s','push','./util','timeout','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','exports','handleRun','[%s][AGENT]\x20timeout\x20with\x20%s','prototype','channel','showNotification','routing','handleDrained','notificationId','bind','busy',':FORCED','drained'];(function(_0x41c153,_0x1fbcda){const _0x27932b=function(_0x31b118){while(--_0x31b118){_0x41c153['push'](_0x41c153['shift']());}};_0x27932b(++_0x1fbcda);}(a1209_0x1fbc,0xeb));const a1209_0x2793=function(_0x41c153,_0x1fbcda){_0x41c153=_0x41c153-0x0;let _0x27932b=a1209_0x1fbc[_0x41c153];return _0x27932b;};const _0x21c7d7=a1209_0x2793;'use strict';const _=require('lodash'),uuid=require('uuid'),util=require(_0x21c7d7('0x13')),logger=require('../../../../../config/logger')(_0x21c7d7('0x1c')),Agent=function(_0x31b118,_0x316807,_0x49847b,_0x141dce){const _0xd388a9=_0x21c7d7;this[_0xd388a9('0x0')]=uuid['v4'](),this[_0xd388a9('0x9')]=_0x31b118,this[_0xd388a9('0x8')]=_0x316807,this['realtime']=_0x49847b,this['routing']=_0x141dce,this[_0xd388a9('0x9')][_0xd388a9('0x12')](this[_0xd388a9('0x17')][_0xd388a9('0x1')](this),this[_0xd388a9('0xd')][_0xd388a9('0x1')](this)),this['squeue']['on'](_0xd388a9('0x14'),this[_0xd388a9('0xd')][_0xd388a9('0x1')](this)),this[_0xd388a9('0x9')]['on'](_0xd388a9('0x4'),this[_0xd388a9('0x1d')][_0xd388a9('0x1')](this));};Agent['prototype'][_0x21c7d7('0x12')]=function(){const _0xd7fa50=_0x21c7d7;this[_0xd7fa50('0x9')][_0xd7fa50('0x12')](this[_0xd7fa50('0x17')]['bind'](this),this['handleTimeout'][_0xd7fa50('0x1')](this));},Agent[_0x21c7d7('0x19')][_0x21c7d7('0x1d')]=function(){this['handleTimeout'](!![]);},Agent[_0x21c7d7('0x19')]['handleRun']=function(){const _0xa7cb74=_0x21c7d7;logger[_0xa7cb74('0x5')](_0xa7cb74('0x11'),this['squeue']['id'],this[_0xa7cb74('0x8')]['id']),_[_0xa7cb74('0xb')](this['realtime']['agents'][this[_0xa7cb74('0x8')]['id']])?(logger[_0xa7cb74('0x5')](_0xa7cb74('0x15'),this['squeue']['id'],this[_0xa7cb74('0x8')]['id']),setTimeout(this[_0xa7cb74('0x12')]['bind'](this),0x3e8)):this[_0xa7cb74('0x1c')][_0xa7cb74('0x7')]||util['isAgentAvailable'](this['squeue']['id'],this[_0xa7cb74('0xc')][_0xa7cb74('0x10')][this[_0xa7cb74('0x8')]['id']],this[_0xa7cb74('0x9')][_0xa7cb74('0x1a')],![])?(this[_0xa7cb74('0xc')][_0xa7cb74('0x10')][this['agent']['id']]['busy']=!![],this[_0xa7cb74('0xc')][_0xa7cb74('0x10')][this['agent']['id']][_0xa7cb74('0xf')]=undefined,util[_0xa7cb74('0x1b')](this[_0xa7cb74('0x0')],this[_0xa7cb74('0x9')]['id'],this[_0xa7cb74('0xc')][_0xa7cb74('0x10')][this['agent']['id']],null,this[_0xa7cb74('0x1c')]),util['writeLog'](this[_0xa7cb74('0x9')]['id'],this[_0xa7cb74('0xc')][_0xa7cb74('0x10')][this['agent']['id']],'RINGING'+(this[_0xa7cb74('0x1c')]['forcedOwnership']?_0xa7cb74('0x3'):''))):(logger['info'](_0xa7cb74('0x6'),this[_0xa7cb74('0x9')]['id'],this[_0xa7cb74('0x8')]['id']),setTimeout(this[_0xa7cb74('0x12')][_0xa7cb74('0x1')](this),0x3e8));},Agent[_0x21c7d7('0x19')][_0x21c7d7('0xd')]=function(_0x80dbd){const _0x38402e=_0x21c7d7;if(_['isNil'](this[_0x38402e('0xc')][_0x38402e('0x10')][this[_0x38402e('0x8')]['id']]))return logger[_0x38402e('0x5')]('[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s',this[_0x38402e('0x9')]['id'],this[_0x38402e('0x8')]['id']);else logger['info'](_0x38402e('0x18'),this[_0x38402e('0x9')]['id'],this[_0x38402e('0x8')]['id']),util['hideNotification'](this['notificationId'],this[_0x38402e('0x9')]['id'],this['realtime'][_0x38402e('0x10')][this[_0x38402e('0x8')]['id']],null,this[_0x38402e('0x1c')]),this[_0x38402e('0xc')][_0x38402e('0x10')][this[_0x38402e('0x8')]['id']][_0x38402e('0x2')]=![],this['realtime'][_0x38402e('0x10')][this['agent']['id']][_0x38402e('0xf')]=undefined,util[_0x38402e('0xe')](this[_0x38402e('0x9')]['id'],this['realtime'][_0x38402e('0x10')][this[_0x38402e('0x8')]['id']],_0x80dbd?'STOP':_0x38402e('0xa'));!_0x80dbd&&setTimeout(this[_0x38402e('0x12')][_0x38402e('0x1')](this),0x3e8);};function agent(_0x23d189,_0x4a2fb9,_0x581703,_0x16952a){return new Agent(_0x23d189,_0x4a2fb9,_0x581703,_0x16952a);}module[_0x21c7d7('0x16')]=agent; \ No newline at end of file +const a1211_0x3ab8=['handleDrained','../../../../../config/logger','channel','writeLog','agent','bind','agents','./util','timeout','squeue','hideNotification','showNotification','push','uuid','routing','isAgentAvailable','busy','[%s][AGENT]\x20timeout\x20with\x20%s','prototype','forcedOwnership','lodash','[%s][AGENT]\x20agent\x20skipped,\x20unknown\x20id\x20%s','busyQueue','realtime','handleRun',':FORCED','handleTimeout','info','[%s][AGENT]\x20agent\x20%s\x20is\x20not\x20available','notificationId','STOP','isNil'];(function(_0x1b55e4,_0x3ab812){const _0x3e5a82=function(_0x206838){while(--_0x206838){_0x1b55e4['push'](_0x1b55e4['shift']());}};_0x3e5a82(++_0x3ab812);}(a1211_0x3ab8,0x175));const a1211_0x3e5a=function(_0x1b55e4,_0x3ab812){_0x1b55e4=_0x1b55e4-0x0;let _0x3e5a82=a1211_0x3ab8[_0x1b55e4];return _0x3e5a82;};const _0x198afe=a1211_0x3e5a;'use strict';const _=require(_0x198afe('0x1f')),uuid=require(_0x198afe('0x18')),util=require(_0x198afe('0x12')),logger=require(_0x198afe('0xc'))(_0x198afe('0x19')),Agent=function(_0x206838,_0x5c806e,_0x7632f,_0x127eb0){const _0x47e3e6=_0x198afe;this[_0x47e3e6('0x8')]=uuid['v4'](),this[_0x47e3e6('0x14')]=_0x206838,this[_0x47e3e6('0xf')]=_0x5c806e,this[_0x47e3e6('0x2')]=_0x7632f,this['routing']=_0x127eb0,this[_0x47e3e6('0x14')]['push'](this['handleRun'][_0x47e3e6('0x10')](this),this[_0x47e3e6('0x5')][_0x47e3e6('0x10')](this)),this[_0x47e3e6('0x14')]['on'](_0x47e3e6('0x13'),this[_0x47e3e6('0x5')][_0x47e3e6('0x10')](this)),this['squeue']['on']('drained',this['handleDrained'][_0x47e3e6('0x10')](this));};Agent[_0x198afe('0x1d')][_0x198afe('0x17')]=function(){const _0x34e426=_0x198afe;this[_0x34e426('0x14')]['push'](this['handleRun'][_0x34e426('0x10')](this),this[_0x34e426('0x5')][_0x34e426('0x10')](this));},Agent[_0x198afe('0x1d')][_0x198afe('0xb')]=function(){const _0x403974=_0x198afe;this[_0x403974('0x5')](!![]);},Agent['prototype'][_0x198afe('0x3')]=function(){const _0x3c8160=_0x198afe;logger[_0x3c8160('0x6')]('[%s][AGENT]\x20try\x20with\x20%s',this[_0x3c8160('0x14')]['id'],this[_0x3c8160('0xf')]['id']),_[_0x3c8160('0xa')](this[_0x3c8160('0x2')][_0x3c8160('0x11')][this['agent']['id']])?(logger[_0x3c8160('0x6')](_0x3c8160('0x0'),this[_0x3c8160('0x14')]['id'],this[_0x3c8160('0xf')]['id']),setTimeout(this['push'][_0x3c8160('0x10')](this),0x3e8)):this['routing'][_0x3c8160('0x1e')]||util[_0x3c8160('0x1a')](this[_0x3c8160('0x14')]['id'],this[_0x3c8160('0x2')]['agents'][this['agent']['id']],this[_0x3c8160('0x14')][_0x3c8160('0xd')],![])?(this[_0x3c8160('0x2')]['agents'][this[_0x3c8160('0xf')]['id']][_0x3c8160('0x1b')]=!![],this[_0x3c8160('0x2')][_0x3c8160('0x11')][this['agent']['id']][_0x3c8160('0x1')]=undefined,util[_0x3c8160('0x16')](this[_0x3c8160('0x8')],this[_0x3c8160('0x14')]['id'],this[_0x3c8160('0x2')][_0x3c8160('0x11')][this[_0x3c8160('0xf')]['id']],null,this[_0x3c8160('0x19')]),util[_0x3c8160('0xe')](this[_0x3c8160('0x14')]['id'],this['realtime'][_0x3c8160('0x11')][this['agent']['id']],'RINGING'+(this[_0x3c8160('0x19')][_0x3c8160('0x1e')]?_0x3c8160('0x4'):''))):(logger['info'](_0x3c8160('0x7'),this['squeue']['id'],this[_0x3c8160('0xf')]['id']),setTimeout(this[_0x3c8160('0x17')][_0x3c8160('0x10')](this),0x3e8));},Agent[_0x198afe('0x1d')]['handleTimeout']=function(_0x474008){const _0x39f767=_0x198afe;if(_[_0x39f767('0xa')](this[_0x39f767('0x2')][_0x39f767('0x11')][this[_0x39f767('0xf')]['id']]))return logger[_0x39f767('0x6')](_0x39f767('0x0'),this[_0x39f767('0x14')]['id'],this[_0x39f767('0xf')]['id']);else logger['info'](_0x39f767('0x1c'),this[_0x39f767('0x14')]['id'],this[_0x39f767('0xf')]['id']),util[_0x39f767('0x15')](this[_0x39f767('0x8')],this[_0x39f767('0x14')]['id'],this['realtime'][_0x39f767('0x11')][this[_0x39f767('0xf')]['id']],null,this[_0x39f767('0x19')]),this[_0x39f767('0x2')][_0x39f767('0x11')][this[_0x39f767('0xf')]['id']][_0x39f767('0x1b')]=![],this[_0x39f767('0x2')][_0x39f767('0x11')][this['agent']['id']][_0x39f767('0x1')]=undefined,util[_0x39f767('0xe')](this[_0x39f767('0x14')]['id'],this[_0x39f767('0x2')]['agents'][this['agent']['id']],_0x474008?_0x39f767('0x9'):'TIMEOUT');!_0x474008&&setTimeout(this[_0x39f767('0x17')]['bind'](this),0x3e8);};function agent(_0x198ac7,_0x1d54b3,_0x4ace5a,_0x3a773d){return new Agent(_0x198ac7,_0x1d54b3,_0x4ace5a,_0x3a773d);}module['exports']=agent; \ No newline at end of file diff --git a/server/services/routing/server/applications/strategy/beepall.js b/server/services/routing/server/applications/strategy/beepall.js index 74c2111..de64205 100644 --- a/server/services/routing/server/applications/strategy/beepall.js +++ b/server/services/routing/server/applications/strategy/beepall.js @@ -1 +1 @@ -const a1210_0x333f=['bind','prototype','isAgentAvailable','isNil','hideNotification','handleRun','TIMEOUT','realtime','handleDrained','push','exports','writeLog','agents','[%s][QUEUE]\x20agent\x20skipped,\x20unknown\x20id\x20%s','drained','lodash','Agents','../../../../../config/logger','uuid','routing','length','busyQueue','queue','squeue','[%s][QUEUE]\x20EMPTY','notificationId','info','handleTimeout','busy'];(function(_0x3ccb91,_0x333f33){const _0xf1067a=function(_0x35fba5){while(--_0x35fba5){_0x3ccb91['push'](_0x3ccb91['shift']());}};_0xf1067a(++_0x333f33);}(a1210_0x333f,0x101));const a1210_0xf106=function(_0x3ccb91,_0x333f33){_0x3ccb91=_0x3ccb91-0x0;let _0xf1067a=a1210_0x333f[_0x3ccb91];return _0xf1067a;};const _0x4a57e7=a1210_0xf106;'use strict';const _=require(_0x4a57e7('0x13')),uuid=require(_0x4a57e7('0x16')),util=require('./util'),logger=require(_0x4a57e7('0x15'))(_0x4a57e7('0x17')),Beepall=function(_0x35fba5,_0x1c3123,_0x38dbe2,_0x549169){const _0x3c9cc1=_0x4a57e7;this[_0x3c9cc1('0x0')]=uuid['v4'](),this[_0x3c9cc1('0x1b')]=_0x35fba5,this['queue']=_0x1c3123,this[_0x3c9cc1('0xb')]=_0x38dbe2,this[_0x3c9cc1('0x17')]=_0x549169,this[_0x3c9cc1('0x1b')][_0x3c9cc1('0xd')](this[_0x3c9cc1('0x9')][_0x3c9cc1('0x4')](this),this[_0x3c9cc1('0x2')][_0x3c9cc1('0x4')](this)),this[_0x3c9cc1('0x1b')]['on']('timeout',this[_0x3c9cc1('0x2')][_0x3c9cc1('0x4')](this)),this[_0x3c9cc1('0x1b')]['on'](_0x3c9cc1('0x12'),this[_0x3c9cc1('0xc')][_0x3c9cc1('0x4')](this));};Beepall[_0x4a57e7('0x5')][_0x4a57e7('0xd')]=function(){const _0x2e54f3=_0x4a57e7;this[_0x2e54f3('0x1b')][_0x2e54f3('0xd')](this[_0x2e54f3('0x9')]['bind'](this),this[_0x2e54f3('0x2')]['bind'](this));},Beepall[_0x4a57e7('0x5')][_0x4a57e7('0xc')]=function(){const _0x1d29da=_0x4a57e7;this[_0x1d29da('0x2')](!![]);},Beepall[_0x4a57e7('0x5')][_0x4a57e7('0x9')]=function(){const _0x5385b1=_0x4a57e7;let _0x2ad5f6=!![];if(!_[_0x5385b1('0x7')](this['queue'])&&!_[_0x5385b1('0x7')](this['queue'][_0x5385b1('0x14')])&&this[_0x5385b1('0x1a')][_0x5385b1('0x14')][_0x5385b1('0x18')]>0x0){for(let _0x55854c=0x0,_0x4e5a42;_0x55854c0x0){for(let _0x1abfdb=0x0,_0x69954e;_0x1abfdb0x0&&_0x58232c[_0x1a24af+_0x1d53ac('0x14')]>=_0x58232c[_0x1a24af+_0x1d53ac('0xf')])return writeLog(_0x5388a8,_0x58232c,_0x1a24af[_0x1d53ac('0xd')]()+_0x1d53ac('0xb')),![];}return!![];},exports['showNotification']=function(_0x138da1,_0x23ecf2,_0x523444,_0x57ad75,_0x3934c4){return sendNotification(!![],_0x138da1,_0x23ecf2,_0x523444,_0x57ad75,_0x3934c4);},exports[_0x588d52('0xc')]=function(_0x44ad4d,_0x4bb7b7,_0x66583d,_0x5b6545,_0x4a5608){return sendNotification(![],_0x44ad4d,_0x4bb7b7,_0x66583d,_0x5b6545,_0x4a5608);},exports[_0x588d52('0x1a')]=writeLog; \ No newline at end of file +const a1215_0x53ea=['util','user:%s','\x20interaction','getMustacheRender','notificationTemplate','queue','busy','name','CurrentCapacity','Capacity','PAUSE','OFFLINE','account','isAgentAvailable','\x20MAXCAPACITY','routing','notification:%s','BUSY','error','info','msg','../../../../../config/logger','emit','format','online','user:save','message','[%s][QUEUE][AGENT:%s][STATUS:%s]','../../../../../rediscache','body','undefined','writeLog','Pause','showNotification','remove'];(function(_0x2fca01,_0x53ea78){const _0x170112=function(_0x366d63){while(--_0x366d63){_0x2fca01['push'](_0x2fca01['shift']());}};_0x170112(++_0x53ea78);}(a1215_0x53ea,0x150));const a1215_0x1701=function(_0x2fca01,_0x53ea78){_0x2fca01=_0x2fca01-0x0;let _0x170112=a1215_0x53ea[_0x2fca01];return _0x170112;};const _0x271a54=a1215_0x1701;'use strict';const util=require(_0x271a54('0xe')),utils=require('../utils'),logger=require(_0x271a54('0x0'))(_0x271a54('0x1d')),{getSocket}=require(_0x271a54('0x7')),io=getSocket();function sendNotification(_0x366d63,_0x57b708,_0x582b62,_0x317517,_0x1a965d,_0x1c004a){const _0x4181b9=_0x271a54;io['to'](util[_0x4181b9('0x2')](_0x4181b9('0xf'),_0x317517['name']))[_0x4181b9('0x1')](_0x4181b9('0x4'),_0x317517);const _0x4edf02=_0x1c004a||{},_0x5b997e=_0x582b62['split']('.'),_0x39a954={'uniqueid':_0x57b708,'channel':_0x5b997e[0x0],'id':_0x5b997e[0x1],'title':_0x5b997e[0x0]+_0x4181b9('0x10'),'interactionId':_0x5b997e[0x2],'queue':_0x1a965d?_0x1a965d['name']:null,'sound':_0x4edf02['account']['notificationSound'],'shake':_0x4edf02[_0x4181b9('0x1a')]['notificationShake']};try{!_0x4edf02[_0x4181b9('0x8')]&&(_0x4edf02[_0x4181b9('0x8')]={});if(_0x1a965d)_0x4edf02[_0x4181b9('0x8')][_0x4181b9('0x13')]=_0x1a965d;else _0x4edf02[_0x4181b9('0x8')][_0x4181b9('0x13')]&&delete _0x4edf02[_0x4181b9('0x8')][_0x4181b9('0x13')];_0x39a954[_0x4181b9('0x22')]=utils[_0x4181b9('0x11')](_0x4edf02[_0x4181b9('0x1a')][_0x4181b9('0x12')],_0x4edf02);}catch(_0x262254){_0x39a954[_0x4181b9('0x22')]='I\x20can\x27t\x20render\x20your\x20template',logger[_0x4181b9('0x20')](util[_0x4181b9('0x2')]('[%s][QUEUE]\x20%s',_0x57b708,_0x262254[_0x4181b9('0x5')]));}io['to'](util[_0x4181b9('0x2')](_0x4181b9('0xf'),_0x317517[_0x4181b9('0x15')]))[_0x4181b9('0x1')](util[_0x4181b9('0x2')](_0x4181b9('0x1e'),_0x366d63?'save':_0x4181b9('0xd')),_0x39a954);}function writeLog(_0x2851f7,_0x18438a,_0x45a890){const _0x1e5e4b=_0x271a54;return logger[_0x1e5e4b('0x21')](util[_0x1e5e4b('0x2')](_0x1e5e4b('0x6'),_0x2851f7,_0x18438a[_0x1e5e4b('0x15')],_0x45a890));}exports[_0x271a54('0x1b')]=function(_0x33e7c9,_0xa74b05,_0x4832d8,_0x2460dd){const _0x42a892=_0x271a54;if(_0xa74b05[_0x42a892('0x14')])return writeLog(_0x33e7c9,_0xa74b05,_0x42a892('0x1f')),![];if(!_0xa74b05[_0x42a892('0x3')])return writeLog(_0x33e7c9,_0xa74b05,_0x42a892('0x19')),![];if(_0xa74b05[_0x4832d8+_0x42a892('0xb')])return writeLog(_0x33e7c9,_0xa74b05,_0x42a892('0x18')),![];if(_0x2460dd&&typeof _0xa74b05[_0x4832d8+_0x42a892('0x17')]!==_0x42a892('0x9')&&typeof _0xa74b05[_0x4832d8+_0x42a892('0x16')]!==_0x42a892('0x9')){if(_0xa74b05[_0x4832d8+_0x42a892('0x17')]>0x0&&_0xa74b05[_0x4832d8+'CurrentCapacity']>=_0xa74b05[_0x4832d8+'Capacity'])return writeLog(_0x33e7c9,_0xa74b05,_0x4832d8['toUpperCase']()+_0x42a892('0x1c')),![];}return!![];},exports[_0x271a54('0xc')]=function(_0x3796a4,_0x5df048,_0x385f1f,_0x874c45,_0x92bac9){return sendNotification(!![],_0x3796a4,_0x5df048,_0x385f1f,_0x874c45,_0x92bac9);},exports['hideNotification']=function(_0x136cb1,_0x59ef98,_0x470f42,_0x4b659c,_0x6492a5){return sendNotification(![],_0x136cb1,_0x59ef98,_0x470f42,_0x4b659c,_0x6492a5);},exports[_0x271a54('0xa')]=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 2e0620f..789d992 100644 --- a/server/services/routing/server/applications/system.js +++ b/server/services/routing/server/applications/system.js @@ -1 +1 @@ -const a1214_0x357f=['next','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','string','shelljs','body','exec','routing','[%s][SYSTEM]\x20commnad:\x20%s','error','message','getMustacheRender','consequence','info','isNil','./utils','map','[%s][SYSTEM]\x20%s','lodash','join','validate','isEmpty','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','replace','command\x20is\x20a\x20string\x20and\x20it\x20is\x20required','isObject','trim'];(function(_0x521731,_0x357f9e){const _0x17c48f=function(_0x4ffed8){while(--_0x4ffed8){_0x521731['push'](_0x521731['shift']());}};_0x17c48f(++_0x357f9e);}(a1214_0x357f,0x12c));const a1214_0x17c4=function(_0x521731,_0x357f9e){_0x521731=_0x521731-0x0;let _0x17c48f=a1214_0x357f[_0x521731];return _0x17c48f;};const _0x194330=a1214_0x17c4;'use strict';const schema=require(_0x194330('0x5')),sh=require(_0x194330('0xf')),_=require(_0x194330('0x3')),utils=require(_0x194330('0x0')),logger=require('../../../../config/logger')(_0x194330('0x12')),system=schema({'command':{'type':_0x194330('0xe'),'required':!![],'message':_0x194330('0x9')}});exports[_0x194330('0x17')]=function(_0x4ffed8,_0x4bb19f){return function(_0x135ee6){const _0x447eeb=a1214_0x17c4;try{const _0x553252={'command':_0x4bb19f[0x0]},_0x574e0d=system[_0x447eeb('0x5')](_0x553252,{'typecast':!![]});if(_0x574e0d['length'])logger['error'](_0x447eeb('0x2'),_0x4ffed8,_[_0x447eeb('0x1')](_0x574e0d,_0x447eeb('0x15'))[_0x447eeb('0x4')](',\x20')),logger[_0x447eeb('0x18')](_0x447eeb('0x7'),_0x4ffed8),_0x135ee6[_0x447eeb('0xc')]();else{const _0x2cbaab=this,_0x42974c=utils[_0x447eeb('0x16')](_0x4bb19f[0x0],this);logger[_0x447eeb('0x18')](_0x447eeb('0x13'),_0x4ffed8,_0x42974c),sh[_0x447eeb('0x11')](_[_0x447eeb('0xb')](_0x42974c),function(_0x4cf1e1,_0x67dcb1){const _0x11bbaf=_0x447eeb;logger[_0x11bbaf('0x18')]('[%s][SYSTEM]\x20result\x20code:\x20%s',_0x4ffed8,_0x4cf1e1);if(_0x4cf1e1==0x0){const _0x2fbab6=_0x67dcb1[_0x11bbaf('0x8')](/(\r\n|\n|\r)/gm,'');_[_0x11bbaf('0x19')](_0x4bb19f[0x1])||_[_0x11bbaf('0x6')](_0x4bb19f[0x1])?(logger[_0x11bbaf('0x18')]('[%s][SYSTEM]\x20no\x20variable',_0x4ffed8),_0x2cbaab[_0x11bbaf('0x10')][_0x4bb19f[0x1]]=_0x2fbab6):(logger[_0x11bbaf('0x18')](_0x11bbaf('0xd'),_0x4ffed8,_0x4bb19f[0x1],_0x2fbab6),_0x2cbaab['body'][_0x4bb19f[0x1]]=_0x2fbab6);}_0x135ee6['next']();});}}catch(_0x52458e){logger[_0x447eeb('0x14')]('[%s][SYSTEM]\x20%s',_0x4ffed8,_[_0x447eeb('0xa')](_0x52458e)?JSON['stringify'](_0x52458e):_0x52458e),logger[_0x447eeb('0x18')]('[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next',_0x4ffed8),_0x135ee6[_0x447eeb('0xc')]();}};}; \ No newline at end of file +const a1216_0x56a3=['shelljs','./utils','validate','message','trim','next','consequence','length','routing','info','[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next','[%s][SYSTEM]\x20set\x20variable\x20%s:\x20%s','body','getMustacheRender','string','../../../../config/logger','[%s][SYSTEM]\x20commnad:\x20%s','map','exec','isNil','[%s][SYSTEM]\x20%s','lodash','[%s][SYSTEM]\x20no\x20variable','[%s][SYSTEM]\x20result\x20code:\x20%s','isObject','join'];(function(_0x2592a0,_0x56a39b){const _0x42efe8=function(_0x4ec175){while(--_0x4ec175){_0x2592a0['push'](_0x2592a0['shift']());}};_0x42efe8(++_0x56a39b);}(a1216_0x56a3,0x14c));const a1216_0x42ef=function(_0x2592a0,_0x56a39b){_0x2592a0=_0x2592a0-0x0;let _0x42efe8=a1216_0x56a3[_0x2592a0];return _0x42efe8;};const _0x274dc8=a1216_0x42ef;'use strict';const schema=require(_0x274dc8('0x8')),sh=require(_0x274dc8('0x6')),_=require(_0x274dc8('0x1')),utils=require(_0x274dc8('0x7')),logger=require(_0x274dc8('0x15'))(_0x274dc8('0xe')),system=schema({'command':{'type':_0x274dc8('0x14'),'required':!![],'message':'command\x20is\x20a\x20string\x20and\x20it\x20is\x20required'}});exports[_0x274dc8('0xc')]=function(_0x4ec175,_0x2b9eb5){return function(_0x44f2e1){const _0x1c489a=a1216_0x42ef;try{const _0x3836b1={'command':_0x2b9eb5[0x0]},_0xce9e7c=system[_0x1c489a('0x8')](_0x3836b1,{'typecast':!![]});if(_0xce9e7c[_0x1c489a('0xd')])logger['error'](_0x1c489a('0x0'),_0x4ec175,_[_0x1c489a('0x17')](_0xce9e7c,_0x1c489a('0x9'))[_0x1c489a('0x5')](',\x20')),logger['info'](_0x1c489a('0x10'),_0x4ec175),_0x44f2e1['next']();else{const _0x52607c=this,_0x1098b1=utils[_0x1c489a('0x13')](_0x2b9eb5[0x0],this);logger[_0x1c489a('0xf')](_0x1c489a('0x16'),_0x4ec175,_0x1098b1),sh[_0x1c489a('0x18')](_[_0x1c489a('0xa')](_0x1098b1),function(_0x25682e,_0x44b810){const _0x466ee2=_0x1c489a;logger['info'](_0x466ee2('0x3'),_0x4ec175,_0x25682e);if(_0x25682e==0x0){const _0x272fa6=_0x44b810['replace'](/(\r\n|\n|\r)/gm,'');_[_0x466ee2('0x19')](_0x2b9eb5[0x1])||_['isEmpty'](_0x2b9eb5[0x1])?(logger[_0x466ee2('0xf')](_0x466ee2('0x2'),_0x4ec175),_0x52607c[_0x466ee2('0x12')][_0x2b9eb5[0x1]]=_0x272fa6):(logger[_0x466ee2('0xf')](_0x466ee2('0x11'),_0x4ec175,_0x2b9eb5[0x1],_0x272fa6),_0x52607c[_0x466ee2('0x12')][_0x2b9eb5[0x1]]=_0x272fa6);}_0x44f2e1[_0x466ee2('0xb')]();});}}catch(_0xba1b20){logger['error']('[%s][SYSTEM]\x20%s',_0x4ec175,_[_0x1c489a('0x4')](_0xba1b20)?JSON['stringify'](_0xba1b20):_0xba1b20),logger[_0x1c489a('0xf')]('[%s][SYSTEM]\x20no\x20command\x20executed,\x20force\x20next',_0x4ec175),_0x44f2e1[_0x1c489a('0xb')]();}};}; \ No newline at end of file diff --git a/server/services/routing/server/applications/tag.js b/server/services/routing/server/applications/tag.js index f1554b1..708a86c 100644 --- a/server/services/routing/server/applications/tag.js +++ b/server/services/routing/server/applications/tag.js @@ -1 +1 @@ -const a1215_0x30e2=['validate','../../rpc/smsInteraction','map','../../rpc/chatInteraction','channel','next','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','addTags','message','info','catch','../../rpc/openchannelInteraction','interaction','join','../../rpc/faxInteraction','length','[%s][TAG]\x20%s','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','stringify','routing','then','Interaction','[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s','isObject','number','error','consequence'];(function(_0x3d63d3,_0x30e2e4){const _0x5e70f0=function(_0x30cc19){while(--_0x30cc19){_0x3d63d3['push'](_0x3d63d3['shift']());}};_0x5e70f0(++_0x30e2e4);}(a1215_0x30e2,0xa3));const a1215_0x5e70=function(_0x3d63d3,_0x30e2e4){_0x3d63d3=_0x3d63d3-0x0;let _0x5e70f0=a1215_0x30e2[_0x3d63d3];return _0x5e70f0;};const _0xca74ef=a1215_0x5e70;'use strict';const schema=require(_0xca74ef('0x1a')),_=require('lodash'),rpc={'chatInteraction':require(_0xca74ef('0x2')),'openchannelInteraction':require(_0xca74ef('0xa')),'smsInteraction':require(_0xca74ef('0x0')),'mailInteraction':require('../../rpc/mailInteraction'),'faxInteraction':require(_0xca74ef('0xd')),'whatsappInteraction':require('../../rpc/whatsappInteraction')},logger=require('../../../../config/logger')(_0xca74ef('0x12')),tag=schema({'tag':{'type':_0xca74ef('0x17'),'required':!![],'message':_0xca74ef('0x5')}});exports[_0xca74ef('0x19')]=function(_0x30cc19,_0x446304,_0x31647f,_0x5da7a5){return function(_0x281e8b){const _0x15d042=a1215_0x5e70;try{const _0x109bed={'tag':_0x446304[0x0]},_0x32dec3=tag[_0x15d042('0x1a')](_0x109bed,{'typecast':!![]});if(_0x32dec3[_0x15d042('0xe')])logger[_0x15d042('0x18')](_0x15d042('0xf'),_0x30cc19,_[_0x15d042('0x1')](_0x32dec3,_0x15d042('0x7'))[_0x15d042('0xc')](',\x20')),logger[_0x15d042('0x8')](_0x15d042('0x10'),_0x30cc19),_0x281e8b[_0x15d042('0x4')]();else{const _0x14544e={'ids':[_0x446304[0x0]]};rpc[_0x5da7a5['channel']+_0x15d042('0x14')]&&rpc[_0x5da7a5['channel']+'Interaction'][_0x15d042('0x6')](_0x5da7a5[_0x15d042('0xb')]['id'],_0x14544e)[_0x15d042('0x13')](function(){const _0x1140b2=_0x15d042;logger[_0x1140b2('0x8')](_0x1140b2('0x15'),_0x30cc19,_0x446304[0x1],_0x5da7a5[_0x1140b2('0x3')],_0x5da7a5[_0x1140b2('0xb')]['id']);})[_0x15d042('0x9')](function(_0x3c79f4){const _0x10c34e=_0x15d042;logger[_0x10c34e('0x18')](_0x10c34e('0xf'),_0x30cc19,JSON[_0x10c34e('0x11')](_0x3c79f4)),logger[_0x10c34e('0x8')](_0x10c34e('0x10'),_0x30cc19);})['finally'](function(){const _0x11b58d=_0x15d042;_0x281e8b[_0x11b58d('0x4')]();});}}catch(_0x3b3419){logger[_0x15d042('0x18')](_0x15d042('0xf'),_0x30cc19,_[_0x15d042('0x16')](_0x3b3419)?JSON['stringify'](_0x3b3419):_0x3b3419),logger[_0x15d042('0x8')](_0x15d042('0x10'),_0x30cc19),_0x281e8b['next']();}};}; \ No newline at end of file +const a1217_0x2e0b=['interaction','finally','catch','[%s][TAG]\x20no\x20tags\x20saved,\x20force\x20next','TagId\x20is\x20a\x20string\x20and\x20it\x20is\x20required','info','consequence','../../rpc/whatsappInteraction','stringify','message','then','../../../../config/logger','../../rpc/smsInteraction','isObject','map','next','../../rpc/openchannelInteraction','lodash','Interaction','[%s][TAG]\x20%s','join','error','../../rpc/faxInteraction','validate','channel'];(function(_0x7e5957,_0x2e0b15){const _0x5c5693=function(_0x4c9fb8){while(--_0x4c9fb8){_0x7e5957['push'](_0x7e5957['shift']());}};_0x5c5693(++_0x2e0b15);}(a1217_0x2e0b,0x1ba));const a1217_0x5c56=function(_0x7e5957,_0x2e0b15){_0x7e5957=_0x7e5957-0x0;let _0x5c5693=a1217_0x2e0b[_0x7e5957];return _0x5c5693;};const _0x1b6bc8=a1217_0x5c56;'use strict';const schema=require('validate'),_=require(_0x1b6bc8('0x0')),rpc={'chatInteraction':require('../../rpc/chatInteraction'),'openchannelInteraction':require(_0x1b6bc8('0x18')),'smsInteraction':require(_0x1b6bc8('0x14')),'mailInteraction':require('../../rpc/mailInteraction'),'faxInteraction':require(_0x1b6bc8('0x5')),'whatsappInteraction':require(_0x1b6bc8('0xf'))},logger=require(_0x1b6bc8('0x13'))('routing'),tag=schema({'tag':{'type':'number','required':!![],'message':_0x1b6bc8('0xc')}});exports[_0x1b6bc8('0xe')]=function(_0x4c9fb8,_0x5e7e98,_0x25822b,_0x2552ff){return function(_0x49f6c0){const _0x11f104=a1217_0x5c56;try{const _0x1b4be5={'tag':_0x5e7e98[0x0]},_0xdc8c63=tag[_0x11f104('0x6')](_0x1b4be5,{'typecast':!![]});if(_0xdc8c63['length'])logger['error'](_0x11f104('0x2'),_0x4c9fb8,_[_0x11f104('0x16')](_0xdc8c63,_0x11f104('0x11'))[_0x11f104('0x3')](',\x20')),logger[_0x11f104('0xd')](_0x11f104('0xb'),_0x4c9fb8),_0x49f6c0['next']();else{const _0xad346b={'ids':[_0x5e7e98[0x0]]};rpc[_0x2552ff[_0x11f104('0x7')]+_0x11f104('0x1')]&&rpc[_0x2552ff['channel']+_0x11f104('0x1')]['addTags'](_0x2552ff[_0x11f104('0x8')]['id'],_0xad346b)[_0x11f104('0x12')](function(){const _0x4afd6d=_0x11f104;logger['info']('[%s][TAG]\x20tag\x20\x22%s\x22\x20added\x20to\x20%s\x20interaction\x20%s',_0x4c9fb8,_0x5e7e98[0x1],_0x2552ff[_0x4afd6d('0x7')],_0x2552ff[_0x4afd6d('0x8')]['id']);})[_0x11f104('0xa')](function(_0x190dc8){const _0x4e5dc9=_0x11f104;logger['error'](_0x4e5dc9('0x2'),_0x4c9fb8,JSON['stringify'](_0x190dc8)),logger[_0x4e5dc9('0xd')](_0x4e5dc9('0xb'),_0x4c9fb8);})[_0x11f104('0x9')](function(){const _0x58b3ad=_0x11f104;_0x49f6c0[_0x58b3ad('0x17')]();});}}catch(_0x43e7d0){logger[_0x11f104('0x4')]('[%s][TAG]\x20%s',_0x4c9fb8,_[_0x11f104('0x15')](_0x43e7d0)?JSON[_0x11f104('0x10')](_0x43e7d0):_0x43e7d0),logger[_0x11f104('0xd')](_0x11f104('0xb'),_0x4c9fb8),_0x49f6c0[_0x11f104('0x17')]();}};}; \ 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 e496f7d..4dd68ca 100644 --- a/server/services/routing/server/applications/utils.js +++ b/server/services/routing/server/applications/utils.js @@ -1 +1 @@ -const a1216_0x21bd=['lodash','mustache','account','interaction','body','merge','list','message','exports'];(function(_0x2f5858,_0x21bd54){const _0x2458ce=function(_0x1c7a27){while(--_0x1c7a27){_0x2f5858['push'](_0x2f5858['shift']());}};_0x2458ce(++_0x21bd54);}(a1216_0x21bd,0x1ca));const a1216_0x2458=function(_0x2f5858,_0x21bd54){_0x2f5858=_0x2f5858-0x0;let _0x2458ce=a1216_0x21bd[_0x2f5858];return _0x2458ce;};const _0x4dd170=a1216_0x2458;'use strict';const Mustache=require(_0x4dd170('0x2')),_=require(_0x4dd170('0x1'));module[_0x4dd170('0x0')]={'getMustacheRender':function(_0x1c7a27,_0x2b90c){const _0x50f7d3=_0x4dd170;return Mustache['render'](_0x1c7a27,_[_0x50f7d3('0x6')](_0x2b90c[_0x50f7d3('0x5')],{'contact':_0x2b90c['contact'],'message':_0x2b90c[_0x50f7d3('0x8')],'account':_0x2b90c[_0x50f7d3('0x3')],'interaction':_0x2b90c[_0x50f7d3('0x4')],'list':_0x2b90c[_0x50f7d3('0x7')]}))||'';}}; \ No newline at end of file +const a1218_0x303d=['message','list','body','merge','exports','lodash'];(function(_0x3f16ff,_0x303d0f){const _0x54c4ae=function(_0x26944b){while(--_0x26944b){_0x3f16ff['push'](_0x3f16ff['shift']());}};_0x54c4ae(++_0x303d0f);}(a1218_0x303d,0x82));const a1218_0x54c4=function(_0x3f16ff,_0x303d0f){_0x3f16ff=_0x3f16ff-0x0;let _0x54c4ae=a1218_0x303d[_0x3f16ff];return _0x54c4ae;};const _0x34647d=a1218_0x54c4;'use strict';const Mustache=require('mustache'),_=require(_0x34647d('0x1'));module[_0x34647d('0x0')]={'getMustacheRender':function(_0x26944b,_0x15e138){const _0x1ce152=_0x34647d;return Mustache['render'](_0x26944b,_[_0x1ce152('0x5')](_0x15e138[_0x1ce152('0x4')],{'contact':_0x15e138['contact'],'message':_0x15e138[_0x1ce152('0x2')],'account':_0x15e138['account'],'interaction':_0x15e138['interaction'],'list':_0x15e138[_0x1ce152('0x3')]}))||'';}}; \ No newline at end of file diff --git a/server/services/routing/server/index.js b/server/services/routing/server/index.js index d210cb6..db0bc8a 100644 --- a/server/services/routing/server/index.js +++ b/server/services/routing/server/index.js @@ -1 +1 @@ -const a1217_0x30ad=['emit','./interval','intervals','agents','mailQueues','stack','\x20|\x20','available','agent','format','whatsappQueues','catch','push','lodash','routing\x20is\x20empty','consequence','values','../lib/rule-engine','end','log','execute','./applications/','complete','server','../rpc/whatsappQueueReport','join','isArray','Please\x20create\x20a\x20new\x20file\x20under','No\x20applications\x20to\x20execute','appdata','../rpc/faxQueueReport','interaction','length','smsQueues','updateRealtime','matchPath','util','openchannelQueues','map','openchannelQueuesWaitingInteractions','isNil','Applications\x20executed','priority','Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!','rules','%s:%s:%s','app','channel','QueueReport','error','Intervals','IntervalId','tag','dialogflow','smsQueuesWaitingInteractions','waiting','toLowerCase','split','condition','CurrentCapacity','http','../rpc/smsQueueReport','name','chatQueuesWaitingInteractions','slice','undefined','paused','message','.js','agent\x20not\x20found','../../../config/logger','whatsappQueuesWaitingInteractions','chatQueues','existsSync','on\x20interval','busyQueue','autoreply','amazonlex','routing','faxQueues','busy','../rpc/mailQueueReport','info','capacity','faxQueuesWaitingInteractions','interval','loggedIn','message\x20is\x20empty','stringify','%s.%s.%s','applications','listen'];(function(_0x567194,_0x30ad61){const _0x5c6cb9=function(_0x2f51b5){while(--_0x2f51b5){_0x567194['push'](_0x567194['shift']());}};_0x5c6cb9(++_0x30ad61);}(a1217_0x30ad,0x1ca));const a1217_0x5c6c=function(_0x567194,_0x30ad61){_0x567194=_0x567194-0x0;let _0x5c6cb9=a1217_0x30ad[_0x567194];return _0x5c6cb9;};const _0x17ae27=a1217_0x5c6c;'use strict';const _=require(_0x17ae27('0xf')),util=require(_0x17ae27('0x26')),path=require('path'),fs=require('fs'),jayson=require('jayson/promise'),logger=require(_0x17ae27('0x48'))(_0x17ae27('0x50')),rpc={'openchannelQueueReport':require('../rpc/openchannelQueueReport'),'mailQueueReport':require(_0x17ae27('0x53')),'chatQueueReport':require('../rpc/chatQueueReport'),'smsQueueReport':require(_0x17ae27('0x3f')),'faxQueueReport':require(_0x17ae27('0x20')),'whatsappQueueReport':require(_0x17ae27('0x1a'))},RuleEngine=require(_0x17ae27('0x13'));function getId(_0x2f51b5,_0x21ba23,_0x121b91){const _0x3f63ec=_0x17ae27;return util[_0x3f63ec('0xb')](_0x3f63ec('0x5b'),_0x2f51b5,_0x21ba23||0x0,_0x121b91||0x0);}function getIntervals(_0x36b9af,_0x441d57){const _0x596b28=_0x17ae27;let _0x275a20=[];if(!_['isNil'](_0x441d57['IntervalId'])&&!_[_0x596b28('0x2a')](_0x36b9af[_0x441d57[_0x596b28('0x35')]])&&!_['isNil'](_0x36b9af[_0x441d57[_0x596b28('0x35')]][_0x596b28('0x34')]))_0x275a20=_[_0x596b28('0x28')](_0x36b9af[_0x441d57[_0x596b28('0x35')]][_0x596b28('0x34')],_0x596b28('0x57'));else!_[_0x596b28('0x2a')](_0x441d57['interval'])&&(_0x275a20=[_0x441d57[_0x596b28('0x57')]]);return _0x275a20;}exports[_0x17ae27('0x1')]=function(_0x1fb51e){return _0x1fb51e['rules']={},new Promise(function(_0x599613,_0x15f055){const _0x25bfd1=a1217_0x5c6c,_0x2cc4bc={'Start':function(_0x40481d){const _0x3d97b1=this;return new Promise(function(_0x5542a6,_0x13491e){const _0x367b97=a1217_0x5c6c;if(_0x40481d)try{const _0x3ef4d2=[],_0x5342d8=getId(_0x40481d['channel'],_0x40481d['message']?_0x40481d[_0x367b97('0x45')]['id']:0x0,_0x40481d['interaction']?_0x40481d['interaction']['id']:0x0);if(_0x40481d[_0x367b97('0x0')]&&_[_0x367b97('0x1c')](_0x40481d[_0x367b97('0x0')])&&_0x40481d['applications'][_0x367b97('0x22')]){for(let _0x5edddd=0x0;_0x5edddd<_0x40481d[_0x367b97('0x0')][_0x367b97('0x22')];_0x5edddd+=0x1){const _0x5c88ff=_0x40481d[_0x367b97('0x0')][_0x5edddd];if(fs[_0x367b97('0x4b')](path['join'](__dirname,_0x367b97('0x0'),_0x5c88ff[_0x367b97('0x30')]+_0x367b97('0x46')))){let _0x7842e5=[];switch(_0x5c88ff[_0x367b97('0x30')][_0x367b97('0x3a')]()){case _0x367b97('0x4e'):{const _0x2de6a3=_0x5c88ff[_0x367b97('0x1f')][_0x367b97('0x3b')](',');_0x7842e5[_0x367b97('0xe')](_0x2de6a3[0x0]),_0x7842e5[_0x367b97('0xe')](_0x2de6a3[_0x367b97('0x42')](0x1,_0x2de6a3['length'])[_0x367b97('0x1b')](','));}break;case _0x367b97('0x37'):{const _0x1f183a=_0x5c88ff[_0x367b97('0x1f')]['split'](',');_0x7842e5[_0x367b97('0xe')](_0x1f183a[0x0]),_0x7842e5[_0x367b97('0xe')](_0x1f183a[0x1]),_0x7842e5[_0x367b97('0xe')](_0x1f183a[_0x367b97('0x42')](0x2,_0x1f183a[_0x367b97('0x22')])[_0x367b97('0x1b')](','));}break;case _0x367b97('0x4f'):{const _0x1cf598=_0x5c88ff[_0x367b97('0x1f')][_0x367b97('0x3b')](',');_0x7842e5[_0x367b97('0xe')](_0x1cf598[0x0]),_0x7842e5['push'](_0x1cf598[0x1]),_0x7842e5['push'](_0x1cf598[0x2]),_0x7842e5['push'](_0x1cf598[0x3]),_0x7842e5[_0x367b97('0xe')](_0x1cf598['slice'](0x4,_0x1cf598[_0x367b97('0x22')])[_0x367b97('0x1b')](','));}break;case'message':_0x7842e5[_0x367b97('0xe')](_0x5c88ff[_0x367b97('0x1f')]);break;case _0x367b97('0x36'):_0x7842e5['push'](_0x5c88ff['TagId']),_0x7842e5['push'](_0x5c88ff['appdata']);break;default:_0x7842e5=_[_0x367b97('0x2a')](_0x5c88ff[_0x367b97('0x1f')])?[]:_0x5c88ff[_0x367b97('0x1f')][_0x367b97('0x3b')](',');}const _0x4e2b9f={'id':util[_0x367b97('0xb')](_0x367b97('0x2f'),_0x5342d8,_0x5c88ff['id'],_0x5c88ff[_0x367b97('0x30')]),'condition':require(_0x367b97('0x3'))[_0x367b97('0x3c')](_0x5342d8,getIntervals(_0x1fb51e[_0x367b97('0x4')],_0x5c88ff),_0x1fb51e),'consequence':require(_0x367b97('0x17')+_0x5c88ff['app'])[_0x367b97('0x11')](_0x5342d8,_0x7842e5,_0x1fb51e,_0x40481d),'p':_0x5c88ff[_0x367b97('0x2c')]||0x0};logger[_0x367b97('0x54')]('Push\x20new\x20rule',_0x4e2b9f['id'],_0x367b97('0x4c'),getIntervals(_0x1fb51e[_0x367b97('0x4')],_0x5c88ff)['join'](_0x367b97('0x8'))),_0x3ef4d2['push'](_0x4e2b9f);}else logger['error'](_0x367b97('0x1d'),path['join'](__dirname,_0x367b97('0x0'),_0x5c88ff[_0x367b97('0x30')]+_0x367b97('0x46')));}return _0x1fb51e[_0x367b97('0x2e')][_0x5342d8]=new RuleEngine(_0x3ef4d2),_0x1fb51e['rules'][_0x5342d8][_0x367b97('0x16')](_0x40481d,function(_0x10f9af){const _0x5ef322=_0x367b97;logger[_0x5ef322('0x54')](_0x5ef322('0x2b'),JSON[_0x5ef322('0x5a')](_0x10f9af[_0x5ef322('0x25')])),_0x1fb51e[_0x5ef322('0x2e')][_0x5342d8]&&_0x1fb51e[_0x5ef322('0x2e')][_0x5342d8][_0x5ef322('0x2')](_0x5ef322('0x18'));}),_0x5542a6({'code':0xc8,'message':_0x40481d});}else return logger['info'](_0x367b97('0x1e')),_0x5542a6({'code':0xc8,'message':_0x40481d});}catch(_0x22c065){return logger[_0x367b97('0x33')](_0x22c065[_0x367b97('0x7')]),_0x13491e(_0x3d97b1[_0x367b97('0x33')](0x1f4,_0x22c065));}return _0x13491e(_0x367b97('0x10'));});},'AcceptMessage':function(_0x31d14d){const _0xacea79=this;return new Promise(function(_0x320bbe,_0xb3a476){const _0x316dad=a1217_0x5c6c;if(_0x31d14d[_0x316dad('0x45')]&&_0x31d14d['message']['id'])try{const _0x589196=getId(_0x31d14d[_0x316dad('0x31')],_0x31d14d[_0x316dad('0x45')]?_0x31d14d[_0x316dad('0x45')]['id']:0x0,_0x31d14d[_0x316dad('0x21')]?_0x31d14d[_0x316dad('0x21')]['id']:0x0);return _0x1fb51e[_0x316dad('0x2e')][_0x589196]&&(_0x1fb51e[_0x316dad('0x2e')][_0x589196][_0x316dad('0x2')](_0x316dad('0x14')),rpc[_0x31d14d[_0x316dad('0x31')]+_0x316dad('0x32')]&&rpc[_0x31d14d[_0x316dad('0x31')]+_0x316dad('0x32')]['update'](_0x589196,{'UserId':_0x31d14d[_0x316dad('0x45')]['UserId']})[_0x316dad('0xd')](function(){logger['error']('error\x20update\x20queue\x20report');})),_0x320bbe({'code':0xc8,'message':_0x31d14d});}catch(_0x24b5b5){return logger[_0x316dad('0x33')](_0x24b5b5[_0x316dad('0x7')]),_0xb3a476(_0xacea79['error'](0x1f4,_0x24b5b5));}return logger[_0x316dad('0x33')](_0x316dad('0x59')),_0xb3a476(_0xacea79['error'](0x1f4,_0x316dad('0x59')));});},'RejectMessage':function(_0x5f2b73){const _0x5c44d7=this;return new Promise(function(_0x3b8b2b,_0x18112d){const _0x31a0ba=a1217_0x5c6c;if(_0x5f2b73[_0x31a0ba('0xa')]&&_0x5f2b73[_0x31a0ba('0xa')]['id'])try{return _0x1fb51e[_0x31a0ba('0x5')][_0x5f2b73[_0x31a0ba('0xa')]['id']]&&(_0x1fb51e[_0x31a0ba('0x5')][_0x5f2b73[_0x31a0ba('0xa')]['id']][_0x31a0ba('0x52')]=![],_0x1fb51e[_0x31a0ba('0x5')][_0x5f2b73[_0x31a0ba('0xa')]['id']][_0x31a0ba('0x4d')]=undefined),_0x3b8b2b({'code':0xc8,'message':_0x5f2b73});}catch(_0x2552ae){return logger[_0x31a0ba('0x33')](_0x2552ae[_0x31a0ba('0x7')]),_0x18112d(_0x5c44d7['error'](0x1f4,_0x2552ae));}return logger[_0x31a0ba('0x33')](_0x31a0ba('0x59')),_0x18112d(_0x5c44d7[_0x31a0ba('0x33')](0x1f4,_0x31a0ba('0x59')));});},'AbandonInteraction':function(_0x54286d){const _0x4d7ca8=this;return new Promise(function(_0x796240,_0x4856e1){const _0x4ef7aa=a1217_0x5c6c;if(_0x54286d[_0x4ef7aa('0x31')]&&_0x54286d[_0x4ef7aa('0x21')]&&_0x54286d[_0x4ef7aa('0x21')]['id'])try{const _0x241ba6=getId(_0x54286d[_0x4ef7aa('0x31')],_0x54286d[_0x4ef7aa('0x45')]?_0x54286d['message']['id']:0x0,_0x54286d[_0x4ef7aa('0x21')]?_0x54286d['interaction']['id']:0x0);return _0x1fb51e[_0x4ef7aa('0x2e')][_0x241ba6]&&_0x1fb51e[_0x4ef7aa('0x2e')][_0x241ba6][_0x4ef7aa('0x2')]('end'),_0x796240({'code':0xc8,'message':_0x54286d});}catch(_0x491bd3){return logger[_0x4ef7aa('0x33')](_0x491bd3[_0x4ef7aa('0x7')]),_0x4856e1(_0x4d7ca8['error'](0x1f4,_0x491bd3));}return logger[_0x4ef7aa('0x33')](_0x4ef7aa('0x59')),_0x4856e1(_0x4d7ca8['error'](0x1f4,_0x4ef7aa('0x59')));});},'AgentCapacity':function(_0x39ac8c){const _0x249ec8=this;return new Promise(function(_0x57d03b,_0x50b5bb){const _0x2d658b=a1217_0x5c6c;if(typeof _0x1fb51e['agents'][_0x39ac8c['id']]!=='undefined'){for(const _0xeb4875 in _0x39ac8c[_0x2d658b('0x55')]){typeof _0x39ac8c[_0x2d658b('0x55')][_0xeb4875]!==_0x2d658b('0x43')&&(typeof _0x1fb51e['agents'][_0x39ac8c['id']][_0xeb4875+'CurrentCapacity']!==_0x2d658b('0x43')&&(_0x1fb51e[_0x2d658b('0x5')][_0x39ac8c['id']][_0xeb4875+_0x2d658b('0x3d')]=parseInt(_0x39ac8c['capacity'][_0xeb4875],0xa)));}return _0x1fb51e[_0x2d658b('0x5')][_0x39ac8c['id']][_0x2d658b('0x24')](),_0x57d03b({'code':0xc8,'message':_0x1fb51e[_0x2d658b('0x5')][_0x39ac8c['id']]});}else return _0x50b5bb(_0x249ec8[_0x2d658b('0x33')](0x1f4,_0x2d658b('0x47')));});},'Agents':function(){return new Promise(function(_0x164daf){const _0x3014db=a1217_0x5c6c,_0x3ecd19=_[_0x3014db('0x12')](_0x1fb51e['agents']);_0x164daf({'count':_0x3ecd19['length'],'rows':_0x3ecd19});});},'ChatQueues':function(){return new Promise(function(_0x50bdc3){const _0x5399d2=a1217_0x5c6c,_0x1f715f=[];for(const _0x1da61d in _0x1fb51e[_0x5399d2('0x4a')]){if(typeof _0x1fb51e[_0x5399d2('0x4a')][_0x1da61d]!==_0x5399d2('0x43')){const _0x54ee75=_0x1fb51e['chatQueues'][_0x1da61d],_0x19317e={'id':_0x54ee75['id'],'available':_0x54ee75[_0x5399d2('0x9')],'loggedIn':_0x54ee75[_0x5399d2('0x58')],'name':_0x54ee75[_0x5399d2('0x40')],'paused':_0x54ee75['paused'],'waiting':_0x54ee75[_0x5399d2('0x39')]};_0x1f715f['push'](_0x19317e);}}_0x50bdc3({'count':_0x1f715f[_0x5399d2('0x22')],'rows':_0x1f715f});});},'MailQueues':function(){return new Promise(function(_0x1ab96d){const _0x462734=a1217_0x5c6c,_0x7e678e=[];for(const _0x25bce7 in _0x1fb51e[_0x462734('0x6')]){if(typeof _0x1fb51e[_0x462734('0x6')][_0x25bce7]!==_0x462734('0x43')){const _0x4aa6eb=_0x1fb51e[_0x462734('0x6')][_0x25bce7],_0x5cb0a5={'id':_0x4aa6eb['id'],'available':_0x4aa6eb[_0x462734('0x9')],'loggedIn':_0x4aa6eb[_0x462734('0x58')],'name':_0x4aa6eb[_0x462734('0x40')],'paused':_0x4aa6eb[_0x462734('0x44')],'waiting':_0x4aa6eb[_0x462734('0x39')]};_0x7e678e[_0x462734('0xe')](_0x5cb0a5);}}_0x1ab96d({'count':_0x7e678e['length'],'rows':_0x7e678e});});},'OpenchannelQueues':function(){return new Promise(function(_0x3c6879){const _0x1d28b1=a1217_0x5c6c,_0x5637e1=[];for(const _0x5cbcf2 in _0x1fb51e[_0x1d28b1('0x27')]){if(typeof _0x1fb51e['openchannelQueues'][_0x5cbcf2]!==_0x1d28b1('0x43')){const _0x222fdd=_0x1fb51e[_0x1d28b1('0x27')][_0x5cbcf2],_0x4e135b={'id':_0x222fdd['id'],'available':_0x222fdd[_0x1d28b1('0x9')],'loggedIn':_0x222fdd['loggedIn'],'name':_0x222fdd[_0x1d28b1('0x40')],'paused':_0x222fdd['paused'],'waiting':_0x222fdd[_0x1d28b1('0x39')]};_0x5637e1[_0x1d28b1('0xe')](_0x4e135b);}}_0x3c6879({'count':_0x5637e1[_0x1d28b1('0x22')],'rows':_0x5637e1});});},'SmsQueues':function(){return new Promise(function(_0x199953){const _0x2461a2=a1217_0x5c6c,_0x39fd10=[];for(const _0xf76cfd in _0x1fb51e[_0x2461a2('0x23')]){if(typeof _0x1fb51e[_0x2461a2('0x23')][_0xf76cfd]!==_0x2461a2('0x43')){const _0x3ffa05=_0x1fb51e['smsQueues'][_0xf76cfd],_0x5a1eb0={'id':_0x3ffa05['id'],'available':_0x3ffa05[_0x2461a2('0x9')],'loggedIn':_0x3ffa05['loggedIn'],'name':_0x3ffa05[_0x2461a2('0x40')],'paused':_0x3ffa05[_0x2461a2('0x44')],'waiting':_0x3ffa05[_0x2461a2('0x39')]};_0x39fd10[_0x2461a2('0xe')](_0x5a1eb0);}}_0x199953({'count':_0x39fd10[_0x2461a2('0x22')],'rows':_0x39fd10});});},'FaxQueues':function(){return new Promise(function(_0x2714d6){const _0x254a47=a1217_0x5c6c,_0x3c5af3=[];for(const _0x3cb5ea in _0x1fb51e[_0x254a47('0x51')]){if(typeof _0x1fb51e[_0x254a47('0x51')][_0x3cb5ea]!==_0x254a47('0x43')){const _0x4e848e=_0x1fb51e['faxQueues'][_0x3cb5ea],_0x2647e4={'id':_0x4e848e['id'],'available':_0x4e848e[_0x254a47('0x9')],'loggedIn':_0x4e848e[_0x254a47('0x58')],'name':_0x4e848e['name'],'paused':_0x4e848e['paused'],'waiting':_0x4e848e[_0x254a47('0x39')]};_0x3c5af3[_0x254a47('0xe')](_0x2647e4);}}_0x2714d6({'count':_0x3c5af3[_0x254a47('0x22')],'rows':_0x3c5af3});});},'WhatsappQueues':function(){return new Promise(function(_0x375529){const _0x5b76c8=a1217_0x5c6c,_0x3f8943=[];for(const _0x21f456 in _0x1fb51e[_0x5b76c8('0xc')]){if(typeof _0x1fb51e[_0x5b76c8('0xc')][_0x21f456]!==_0x5b76c8('0x43')){const _0x28ef25=_0x1fb51e[_0x5b76c8('0xc')][_0x21f456],_0x1f21cf={'id':_0x28ef25['id'],'available':_0x28ef25[_0x5b76c8('0x9')],'loggedIn':_0x28ef25[_0x5b76c8('0x58')],'name':_0x28ef25[_0x5b76c8('0x40')],'paused':_0x28ef25[_0x5b76c8('0x44')],'waiting':_0x28ef25[_0x5b76c8('0x39')]};_0x3f8943[_0x5b76c8('0xe')](_0x1f21cf);}}_0x375529({'count':_0x3f8943[_0x5b76c8('0x22')],'rows':_0x3f8943});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x19033d){const _0x231cd8=a1217_0x5c6c,_0x561096=_[_0x231cd8('0x12')](_0x1fb51e[_0x231cd8('0x41')]);_0x19033d({'count':_0x561096[_0x231cd8('0x22')],'rows':_0x561096});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x163a7b){const _0x239209=_['values'](_0x1fb51e['mailQueuesWaitingInteractions']);_0x163a7b({'count':_0x239209['length'],'rows':_0x239209});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0x24a359){const _0x3156db=a1217_0x5c6c,_0x1cd602=_[_0x3156db('0x12')](_0x1fb51e[_0x3156db('0x29')]);_0x24a359({'count':_0x1cd602[_0x3156db('0x22')],'rows':_0x1cd602});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x154174){const _0x2ef630=a1217_0x5c6c,_0x5bd260=_[_0x2ef630('0x12')](_0x1fb51e[_0x2ef630('0x38')]);_0x154174({'count':_0x5bd260[_0x2ef630('0x22')],'rows':_0x5bd260});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x51201e){const _0x3378ae=a1217_0x5c6c,_0x29719b=_[_0x3378ae('0x12')](_0x1fb51e[_0x3378ae('0x56')]);_0x51201e({'count':_0x29719b['length'],'rows':_0x29719b});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x5282b9){const _0x201169=a1217_0x5c6c,_0x186e39=_['values'](_0x1fb51e[_0x201169('0x49')]);_0x5282b9({'count':_0x186e39[_0x201169('0x22')],'rows':_0x186e39});});}},_0x1723b6=jayson[_0x25bfd1('0x19')](_0x2cc4bc)[_0x25bfd1('0x3e')]();_0x1723b6['on']('error',function(_0x204df5){const _0x13954e=_0x25bfd1;return logger[_0x13954e('0x33')](JSON[_0x13954e('0x5a')](_0x204df5)),_0x15f055(_0x204df5);}),_0x1723b6[_0x25bfd1('0x1')](0x232c,'127.0.0.1',function(){const _0x4fee60=_0x25bfd1;return console[_0x4fee60('0x15')](_0x4fee60('0x2d'),0x232c),_0x599613('RPC\x20listening\x20on\x20port:'+0x232c);});});}; \ No newline at end of file +const a1219_0x17f4=['log','app','emit','error\x20update\x20queue\x20report','end','util','../rpc/whatsappQueueReport','catch','No\x20applications\x20to\x20execute','undefined','format','routing\x20is\x20empty','condition','../rpc/openchannelQueueReport','../rpc/chatQueueReport','../../../config/logger','.js','openchannelQueuesWaitingInteractions','whatsappQueues','rules','existsSync','smsQueuesWaitingInteractions','mailQueues','execute','toLowerCase','waiting','available','complete','busy','agents','chatQueues','../rpc/smsQueueReport','loggedIn','server','slice','amazonlex','message\x20is\x20empty','\x20|\x20','agent','listen','applications','faxQueues','RPC\x20listening\x20on\x20port:','Please\x20create\x20a\x20new\x20file\x20under','interaction','intervals','matchPath','smsQueues','info','channel','../rpc/faxQueueReport','length','map','openchannelQueues','stack','stringify','on\x20interval','priority','dialogflow','../lib/rule-engine','capacity','push','TagId','lodash','consequence','paused','updateRealtime','interval','127.0.0.1','isArray','IntervalId','isNil','values','error','tag','appdata','message','join','busyQueue','whatsappQueuesWaitingInteractions','path','split','%s.%s.%s','faxQueuesWaitingInteractions','name','routing'];(function(_0x41dee9,_0x17f439){const _0x15856f=function(_0x5494b1){while(--_0x5494b1){_0x41dee9['push'](_0x41dee9['shift']());}};_0x15856f(++_0x17f439);}(a1219_0x17f4,0x77));const a1219_0x1585=function(_0x41dee9,_0x17f439){_0x41dee9=_0x41dee9-0x0;let _0x15856f=a1219_0x17f4[_0x41dee9];return _0x15856f;};const _0x13c0f9=a1219_0x1585;'use strict';const _=require(_0x13c0f9('0x1e')),util=require(_0x13c0f9('0x3a')),path=require(_0x13c0f9('0x2f')),fs=require('fs'),jayson=require('jayson/promise'),logger=require(_0x13c0f9('0x44'))(_0x13c0f9('0x34')),rpc={'openchannelQueueReport':require(_0x13c0f9('0x42')),'mailQueueReport':require('../rpc/mailQueueReport'),'chatQueueReport':require(_0x13c0f9('0x43')),'smsQueueReport':require(_0x13c0f9('0x54')),'faxQueueReport':require(_0x13c0f9('0x11')),'whatsappQueueReport':require(_0x13c0f9('0x3b'))},RuleEngine=require(_0x13c0f9('0x1a'));function getId(_0x5494b1,_0x2816b9,_0x1a7a8d){const _0x1bc467=_0x13c0f9;return util['format'](_0x1bc467('0x31'),_0x5494b1,_0x2816b9||0x0,_0x1a7a8d||0x0);}function getIntervals(_0x13bfdb,_0x410033){const _0x35b6e0=_0x13c0f9;let _0x5e9f1f=[];if(!_[_0x35b6e0('0x26')](_0x410033['IntervalId'])&&!_[_0x35b6e0('0x26')](_0x13bfdb[_0x410033['IntervalId']])&&!_[_0x35b6e0('0x26')](_0x13bfdb[_0x410033['IntervalId']]['Intervals']))_0x5e9f1f=_[_0x35b6e0('0x13')](_0x13bfdb[_0x410033[_0x35b6e0('0x25')]]['Intervals'],_0x35b6e0('0x22'));else!_[_0x35b6e0('0x26')](_0x410033[_0x35b6e0('0x22')])&&(_0x5e9f1f=[_0x410033[_0x35b6e0('0x22')]]);return _0x5e9f1f;}exports[_0x13c0f9('0x6')]=function(_0x53c332){const _0x65fc40=_0x13c0f9;return _0x53c332[_0x65fc40('0x48')]={},new Promise(function(_0x7bca9d,_0x3d16ec){const _0x4740fd=_0x65fc40,_0x3fe3be={'Start':function(_0x398caf){const _0x135c6c=this;return new Promise(function(_0x29e922,_0x17973b){const _0x57d18b=a1219_0x1585;if(_0x398caf)try{const _0x45e9b3=[],_0x1b6f0e=getId(_0x398caf['channel'],_0x398caf[_0x57d18b('0x2b')]?_0x398caf[_0x57d18b('0x2b')]['id']:0x0,_0x398caf['interaction']?_0x398caf['interaction']['id']:0x0);if(_0x398caf['applications']&&_[_0x57d18b('0x24')](_0x398caf[_0x57d18b('0x7')])&&_0x398caf['applications'][_0x57d18b('0x12')]){for(let _0x102bce=0x0;_0x102bce<_0x398caf[_0x57d18b('0x7')][_0x57d18b('0x12')];_0x102bce+=0x1){const _0x4f2376=_0x398caf[_0x57d18b('0x7')][_0x102bce];if(fs[_0x57d18b('0x49')](path[_0x57d18b('0x2c')](__dirname,_0x57d18b('0x7'),_0x4f2376['app']+_0x57d18b('0x45')))){let _0x5839e5=[];switch(_0x4f2376[_0x57d18b('0x36')][_0x57d18b('0x4d')]()){case'autoreply':{const _0x2b7c28=_0x4f2376[_0x57d18b('0x2a')]['split'](',');_0x5839e5[_0x57d18b('0x1c')](_0x2b7c28[0x0]),_0x5839e5[_0x57d18b('0x1c')](_0x2b7c28['slice'](0x1,_0x2b7c28[_0x57d18b('0x12')])[_0x57d18b('0x2c')](','));}break;case _0x57d18b('0x19'):{const _0x5ce912=_0x4f2376[_0x57d18b('0x2a')][_0x57d18b('0x30')](',');_0x5839e5[_0x57d18b('0x1c')](_0x5ce912[0x0]),_0x5839e5[_0x57d18b('0x1c')](_0x5ce912[0x1]),_0x5839e5[_0x57d18b('0x1c')](_0x5ce912[_0x57d18b('0x1')](0x2,_0x5ce912['length'])[_0x57d18b('0x2c')](','));}break;case'dialogflowv2':{const _0x5b5b71=_0x4f2376[_0x57d18b('0x2a')][_0x57d18b('0x30')](',');_0x5839e5[_0x57d18b('0x1c')](_0x5b5b71[0x0]),_0x5839e5[_0x57d18b('0x1c')](_0x5b5b71[0x1]),_0x5839e5[_0x57d18b('0x1c')](_0x5b5b71[0x2]),_0x5839e5[_0x57d18b('0x1c')](_0x5b5b71[0x3]),_0x5839e5[_0x57d18b('0x1c')](_0x5b5b71[_0x57d18b('0x1')](0x4,_0x5b5b71[_0x57d18b('0x12')])[_0x57d18b('0x2c')](','));}break;case _0x57d18b('0x2'):{const _0x1501af=_0x4f2376[_0x57d18b('0x2a')]['split'](',');_0x5839e5['push'](_0x1501af[0x0]),_0x5839e5[_0x57d18b('0x1c')](_0x1501af[0x1]),_0x5839e5[_0x57d18b('0x1c')](_0x1501af[0x2]),_0x5839e5[_0x57d18b('0x1c')](_0x1501af[0x3]),_0x5839e5[_0x57d18b('0x1c')](_0x1501af[_0x57d18b('0x1')](0x4,_0x1501af[_0x57d18b('0x12')])[_0x57d18b('0x2c')](','));}break;case'message':_0x5839e5[_0x57d18b('0x1c')](_0x4f2376[_0x57d18b('0x2a')]);break;case _0x57d18b('0x29'):_0x5839e5['push'](_0x4f2376[_0x57d18b('0x1d')]),_0x5839e5[_0x57d18b('0x1c')](_0x4f2376[_0x57d18b('0x2a')]);break;default:_0x5839e5=_[_0x57d18b('0x26')](_0x4f2376[_0x57d18b('0x2a')])?[]:_0x4f2376[_0x57d18b('0x2a')][_0x57d18b('0x30')](',');}const _0x4a325b={'id':util[_0x57d18b('0x3f')]('%s:%s:%s',_0x1b6f0e,_0x4f2376['id'],_0x4f2376['app']),'condition':require('./interval')[_0x57d18b('0x41')](_0x1b6f0e,getIntervals(_0x53c332['intervals'],_0x4f2376),_0x53c332),'consequence':require('./applications/'+_0x4f2376[_0x57d18b('0x36')])[_0x57d18b('0x1f')](_0x1b6f0e,_0x5839e5,_0x53c332,_0x398caf),'p':_0x4f2376[_0x57d18b('0x18')]||0x0};logger['info']('Push\x20new\x20rule',_0x4a325b['id'],_0x57d18b('0x17'),getIntervals(_0x53c332[_0x57d18b('0xc')],_0x4f2376)[_0x57d18b('0x2c')](_0x57d18b('0x4'))),_0x45e9b3['push'](_0x4a325b);}else logger[_0x57d18b('0x28')](_0x57d18b('0xa'),path[_0x57d18b('0x2c')](__dirname,_0x57d18b('0x7'),_0x4f2376[_0x57d18b('0x36')]+_0x57d18b('0x45')));}return _0x53c332[_0x57d18b('0x48')][_0x1b6f0e]=new RuleEngine(_0x45e9b3),_0x53c332[_0x57d18b('0x48')][_0x1b6f0e][_0x57d18b('0x4c')](_0x398caf,function(_0x271920){const _0x54af10=_0x57d18b;logger[_0x54af10('0xf')]('Applications\x20executed',JSON[_0x54af10('0x16')](_0x271920[_0x54af10('0xd')])),_0x53c332[_0x54af10('0x48')][_0x1b6f0e]&&_0x53c332[_0x54af10('0x48')][_0x1b6f0e][_0x54af10('0x37')](_0x54af10('0x50'));}),_0x29e922({'code':0xc8,'message':_0x398caf});}else return logger[_0x57d18b('0xf')](_0x57d18b('0x3d')),_0x29e922({'code':0xc8,'message':_0x398caf});}catch(_0x23e193){return logger[_0x57d18b('0x28')](_0x23e193[_0x57d18b('0x15')]),_0x17973b(_0x135c6c[_0x57d18b('0x28')](0x1f4,_0x23e193));}return _0x17973b(_0x57d18b('0x40'));});},'AcceptMessage':function(_0xc111d8){const _0x2c36ac=this;return new Promise(function(_0x32bdd1,_0x397aae){const _0x2cf56e=a1219_0x1585;if(_0xc111d8[_0x2cf56e('0x2b')]&&_0xc111d8[_0x2cf56e('0x2b')]['id'])try{const _0x4cf5a7=getId(_0xc111d8[_0x2cf56e('0x10')],_0xc111d8['message']?_0xc111d8[_0x2cf56e('0x2b')]['id']:0x0,_0xc111d8[_0x2cf56e('0xb')]?_0xc111d8['interaction']['id']:0x0);return _0x53c332[_0x2cf56e('0x48')][_0x4cf5a7]&&(_0x53c332[_0x2cf56e('0x48')][_0x4cf5a7][_0x2cf56e('0x37')](_0x2cf56e('0x39')),rpc[_0xc111d8['channel']+'QueueReport']&&rpc[_0xc111d8[_0x2cf56e('0x10')]+'QueueReport']['update'](_0x4cf5a7,{'UserId':_0xc111d8[_0x2cf56e('0x2b')]['UserId']})[_0x2cf56e('0x3c')](function(){const _0x2116eb=_0x2cf56e;logger[_0x2116eb('0x28')](_0x2116eb('0x38'));})),_0x32bdd1({'code':0xc8,'message':_0xc111d8});}catch(_0x5c74c1){return logger[_0x2cf56e('0x28')](_0x5c74c1[_0x2cf56e('0x15')]),_0x397aae(_0x2c36ac[_0x2cf56e('0x28')](0x1f4,_0x5c74c1));}return logger[_0x2cf56e('0x28')](_0x2cf56e('0x3')),_0x397aae(_0x2c36ac[_0x2cf56e('0x28')](0x1f4,_0x2cf56e('0x3')));});},'RejectMessage':function(_0x1af401){const _0x122959=this;return new Promise(function(_0x583617,_0x2e4a50){const _0x14688f=a1219_0x1585;if(_0x1af401[_0x14688f('0x5')]&&_0x1af401['agent']['id'])try{return _0x53c332['agents'][_0x1af401['agent']['id']]&&(_0x53c332[_0x14688f('0x52')][_0x1af401[_0x14688f('0x5')]['id']][_0x14688f('0x51')]=![],_0x53c332[_0x14688f('0x52')][_0x1af401[_0x14688f('0x5')]['id']][_0x14688f('0x2d')]=undefined),_0x583617({'code':0xc8,'message':_0x1af401});}catch(_0x415dec){return logger['error'](_0x415dec[_0x14688f('0x15')]),_0x2e4a50(_0x122959['error'](0x1f4,_0x415dec));}return logger[_0x14688f('0x28')](_0x14688f('0x3')),_0x2e4a50(_0x122959['error'](0x1f4,'message\x20is\x20empty'));});},'AbandonInteraction':function(_0x45e6ff){const _0x3c6506=this;return new Promise(function(_0x220aa5,_0x37ad9c){const _0x5767d2=a1219_0x1585;if(_0x45e6ff[_0x5767d2('0x10')]&&_0x45e6ff['interaction']&&_0x45e6ff[_0x5767d2('0xb')]['id'])try{const _0x1d6e94=getId(_0x45e6ff[_0x5767d2('0x10')],_0x45e6ff[_0x5767d2('0x2b')]?_0x45e6ff[_0x5767d2('0x2b')]['id']:0x0,_0x45e6ff['interaction']?_0x45e6ff[_0x5767d2('0xb')]['id']:0x0);return _0x53c332['rules'][_0x1d6e94]&&_0x53c332[_0x5767d2('0x48')][_0x1d6e94][_0x5767d2('0x37')](_0x5767d2('0x39')),_0x220aa5({'code':0xc8,'message':_0x45e6ff});}catch(_0x47e9bc){return logger[_0x5767d2('0x28')](_0x47e9bc[_0x5767d2('0x15')]),_0x37ad9c(_0x3c6506['error'](0x1f4,_0x47e9bc));}return logger[_0x5767d2('0x28')](_0x5767d2('0x3')),_0x37ad9c(_0x3c6506[_0x5767d2('0x28')](0x1f4,'message\x20is\x20empty'));});},'AgentCapacity':function(_0x1b9862){const _0xcb5935=this;return new Promise(function(_0x4541cd,_0x42abb8){const _0x3ecd3a=a1219_0x1585;if(typeof _0x53c332[_0x3ecd3a('0x52')][_0x1b9862['id']]!=='undefined'){for(const _0x1b1cf2 in _0x1b9862['capacity']){typeof _0x1b9862[_0x3ecd3a('0x1b')][_0x1b1cf2]!=='undefined'&&(typeof _0x53c332[_0x3ecd3a('0x52')][_0x1b9862['id']][_0x1b1cf2+'CurrentCapacity']!==_0x3ecd3a('0x3e')&&(_0x53c332[_0x3ecd3a('0x52')][_0x1b9862['id']][_0x1b1cf2+'CurrentCapacity']=parseInt(_0x1b9862[_0x3ecd3a('0x1b')][_0x1b1cf2],0xa)));}return _0x53c332[_0x3ecd3a('0x52')][_0x1b9862['id']][_0x3ecd3a('0x21')](),_0x4541cd({'code':0xc8,'message':_0x53c332[_0x3ecd3a('0x52')][_0x1b9862['id']]});}else return _0x42abb8(_0xcb5935[_0x3ecd3a('0x28')](0x1f4,'agent\x20not\x20found'));});},'Agents':function(){return new Promise(function(_0x4ca276){const _0x4ba0b8=a1219_0x1585,_0x4ad2f7=_[_0x4ba0b8('0x27')](_0x53c332[_0x4ba0b8('0x52')]);_0x4ca276({'count':_0x4ad2f7['length'],'rows':_0x4ad2f7});});},'ChatQueues':function(){return new Promise(function(_0x11ab35){const _0x5c310f=a1219_0x1585,_0x24ef2a=[];for(const _0x3e9e68 in _0x53c332[_0x5c310f('0x53')]){if(typeof _0x53c332[_0x5c310f('0x53')][_0x3e9e68]!==_0x5c310f('0x3e')){const _0x443062=_0x53c332[_0x5c310f('0x53')][_0x3e9e68],_0x50e10f={'id':_0x443062['id'],'available':_0x443062[_0x5c310f('0x4f')],'loggedIn':_0x443062[_0x5c310f('0x55')],'name':_0x443062[_0x5c310f('0x33')],'paused':_0x443062[_0x5c310f('0x20')],'waiting':_0x443062[_0x5c310f('0x4e')]};_0x24ef2a[_0x5c310f('0x1c')](_0x50e10f);}}_0x11ab35({'count':_0x24ef2a[_0x5c310f('0x12')],'rows':_0x24ef2a});});},'MailQueues':function(){return new Promise(function(_0x5e0c7d){const _0x17893e=a1219_0x1585,_0x2228e2=[];for(const _0x176cfa in _0x53c332[_0x17893e('0x4b')]){if(typeof _0x53c332[_0x17893e('0x4b')][_0x176cfa]!==_0x17893e('0x3e')){const _0x145d02=_0x53c332['mailQueues'][_0x176cfa],_0x481e92={'id':_0x145d02['id'],'available':_0x145d02['available'],'loggedIn':_0x145d02[_0x17893e('0x55')],'name':_0x145d02[_0x17893e('0x33')],'paused':_0x145d02[_0x17893e('0x20')],'waiting':_0x145d02[_0x17893e('0x4e')]};_0x2228e2[_0x17893e('0x1c')](_0x481e92);}}_0x5e0c7d({'count':_0x2228e2[_0x17893e('0x12')],'rows':_0x2228e2});});},'OpenchannelQueues':function(){return new Promise(function(_0x5b01fb){const _0x566f18=a1219_0x1585,_0x591a97=[];for(const _0x2280d8 in _0x53c332[_0x566f18('0x14')]){if(typeof _0x53c332[_0x566f18('0x14')][_0x2280d8]!==_0x566f18('0x3e')){const _0x247056=_0x53c332[_0x566f18('0x14')][_0x2280d8],_0x4cfd24={'id':_0x247056['id'],'available':_0x247056['available'],'loggedIn':_0x247056[_0x566f18('0x55')],'name':_0x247056[_0x566f18('0x33')],'paused':_0x247056['paused'],'waiting':_0x247056['waiting']};_0x591a97['push'](_0x4cfd24);}}_0x5b01fb({'count':_0x591a97[_0x566f18('0x12')],'rows':_0x591a97});});},'SmsQueues':function(){return new Promise(function(_0x296a0b){const _0xe3f067=a1219_0x1585,_0x590958=[];for(const _0x2177ec in _0x53c332[_0xe3f067('0xe')]){if(typeof _0x53c332[_0xe3f067('0xe')][_0x2177ec]!==_0xe3f067('0x3e')){const _0x2ca41e=_0x53c332[_0xe3f067('0xe')][_0x2177ec],_0x5a3c78={'id':_0x2ca41e['id'],'available':_0x2ca41e[_0xe3f067('0x4f')],'loggedIn':_0x2ca41e[_0xe3f067('0x55')],'name':_0x2ca41e[_0xe3f067('0x33')],'paused':_0x2ca41e['paused'],'waiting':_0x2ca41e[_0xe3f067('0x4e')]};_0x590958[_0xe3f067('0x1c')](_0x5a3c78);}}_0x296a0b({'count':_0x590958[_0xe3f067('0x12')],'rows':_0x590958});});},'FaxQueues':function(){return new Promise(function(_0x6185c1){const _0xc41289=a1219_0x1585,_0x4360f3=[];for(const _0x32b836 in _0x53c332['faxQueues']){if(typeof _0x53c332[_0xc41289('0x8')][_0x32b836]!==_0xc41289('0x3e')){const _0x56a1ce=_0x53c332['faxQueues'][_0x32b836],_0x238afd={'id':_0x56a1ce['id'],'available':_0x56a1ce['available'],'loggedIn':_0x56a1ce[_0xc41289('0x55')],'name':_0x56a1ce[_0xc41289('0x33')],'paused':_0x56a1ce[_0xc41289('0x20')],'waiting':_0x56a1ce[_0xc41289('0x4e')]};_0x4360f3[_0xc41289('0x1c')](_0x238afd);}}_0x6185c1({'count':_0x4360f3[_0xc41289('0x12')],'rows':_0x4360f3});});},'WhatsappQueues':function(){return new Promise(function(_0xe4d59f){const _0x1991a6=a1219_0x1585,_0x108470=[];for(const _0x33ed7a in _0x53c332[_0x1991a6('0x47')]){if(typeof _0x53c332['whatsappQueues'][_0x33ed7a]!==_0x1991a6('0x3e')){const _0x1c76a3=_0x53c332[_0x1991a6('0x47')][_0x33ed7a],_0x15c587={'id':_0x1c76a3['id'],'available':_0x1c76a3[_0x1991a6('0x4f')],'loggedIn':_0x1c76a3[_0x1991a6('0x55')],'name':_0x1c76a3[_0x1991a6('0x33')],'paused':_0x1c76a3[_0x1991a6('0x20')],'waiting':_0x1c76a3['waiting']};_0x108470[_0x1991a6('0x1c')](_0x15c587);}}_0xe4d59f({'count':_0x108470[_0x1991a6('0x12')],'rows':_0x108470});});},'ChatQueuesWaitingInteractions':function(){return new Promise(function(_0x2fae78){const _0x50e7b1=a1219_0x1585,_0x210c39=_[_0x50e7b1('0x27')](_0x53c332['chatQueuesWaitingInteractions']);_0x2fae78({'count':_0x210c39[_0x50e7b1('0x12')],'rows':_0x210c39});});},'MailQueuesWaitingInteractions':function(){return new Promise(function(_0x4b8293){const _0x524048=a1219_0x1585,_0x56fc6a=_['values'](_0x53c332['mailQueuesWaitingInteractions']);_0x4b8293({'count':_0x56fc6a[_0x524048('0x12')],'rows':_0x56fc6a});});},'OpenchannelQueuesWaitingInteractions':function(){return new Promise(function(_0x445165){const _0x5c37b9=a1219_0x1585,_0x7d20c0=_[_0x5c37b9('0x27')](_0x53c332[_0x5c37b9('0x46')]);_0x445165({'count':_0x7d20c0['length'],'rows':_0x7d20c0});});},'SmsQueuesWaitingInteractions':function(){return new Promise(function(_0x3efa54){const _0x3ecfa4=a1219_0x1585,_0x452401=_['values'](_0x53c332[_0x3ecfa4('0x4a')]);_0x3efa54({'count':_0x452401[_0x3ecfa4('0x12')],'rows':_0x452401});});},'FaxQueuesWaitingInteractions':function(){return new Promise(function(_0x5bfd5e){const _0x151639=a1219_0x1585,_0x556a3a=_[_0x151639('0x27')](_0x53c332[_0x151639('0x32')]);_0x5bfd5e({'count':_0x556a3a['length'],'rows':_0x556a3a});});},'WhatsappQueuesWaitingInteractions':function(){return new Promise(function(_0x650d76){const _0x474fdf=a1219_0x1585,_0x24541d=_['values'](_0x53c332[_0x474fdf('0x2e')]);_0x650d76({'count':_0x24541d[_0x474fdf('0x12')],'rows':_0x24541d});});}},_0x40b7bf=jayson[_0x4740fd('0x0')](_0x3fe3be)['http']();_0x40b7bf['on'](_0x4740fd('0x28'),function(_0x3bea5f){const _0x5437ed=_0x4740fd;return logger[_0x5437ed('0x28')](JSON[_0x5437ed('0x16')](_0x3bea5f)),_0x3d16ec(_0x3bea5f);}),_0x40b7bf[_0x4740fd('0x6')](0x232c,_0x4740fd('0x23'),function(){const _0x5b8c8e=_0x4740fd;return console[_0x5b8c8e('0x35')]('Routing\x20RPC\x20server\x20listening\x20on\x20127.0.0.1:%d!',0x232c),_0x7bca9d(_0x5b8c8e('0x9')+0x232c);});});}; \ No newline at end of file diff --git a/server/services/routing/server/interval.js b/server/services/routing/server/interval.js index ea2a0e9..d1424a9 100644 --- a/server/services/routing/server/interval.js +++ b/server/services/routing/server/interval.js @@ -1 +1 @@ -const a1218_0x58c7=['all','client','[%s][INTERVAL]\x20ROUTING\x20STOPPED','\x20|\x20','lodash','condition','stack','true','Command','rules','[%s][INTERVAL]\x20%s\x20%s','info','format','length','push','join','then','iftime\x20%s','indexOf','util','when','error','message','../../../config/logger','[%s][INTERVAL]\x20%s','catch'];(function(_0x2ea08f,_0x58c795){const _0x10aaf1=function(_0x4c37f5){while(--_0x4c37f5){_0x2ea08f['push'](_0x2ea08f['shift']());}};_0x10aaf1(++_0x58c795);}(a1218_0x58c7,0x15c));const a1218_0x10aa=function(_0x2ea08f,_0x58c795){_0x2ea08f=_0x2ea08f-0x0;let _0x10aaf1=a1218_0x58c7[_0x2ea08f];return _0x10aaf1;};const _0x2fae57=a1218_0x10aa;'use strict';const util=require(_0x2fae57('0x9')),jayson=require('jayson/promise'),_=require(_0x2fae57('0x14')),logger=require(_0x2fae57('0xd'))('routing'),client=jayson[_0x2fae57('0x11')]['http']({'port':0x232a});function request(_0x4c37f5,_0x16c785){return new Promise(function(_0x1ab445,_0x41e448){const _0x31661d=a1218_0x10aa;return client['request'](_0x4c37f5,_0x16c785)[_0x31661d('0x6')](function(_0x409201){const _0x250409=_0x31661d;return _0x409201[_0x250409('0xb')]?_0x41e448(_0x409201[_0x250409('0xb')][_0x250409('0xc')]):_0x1ab445(_0x409201['result']);})[_0x31661d('0xf')](function(_0x1bdc08){return _0x41e448(_0x1bdc08);});});}exports[_0x2fae57('0x15')]=function(_0x5849a6,_0x2cbc34,_0x12ca3d){return function(_0x5aeb43){const _0x174473=a1218_0x10aa;if(_0x12ca3d[_0x174473('0x19')]&&!_0x12ca3d[_0x174473('0x19')][_0x5849a6])return logger['info'](_0x174473('0x12'),_0x5849a6),_0x5aeb43['stop']();const _0xfee2a9=[];for(let _0x4b1194=0x0;_0x4b1194<_0x2cbc34[_0x174473('0x3')];_0x4b1194+=0x1){_0xfee2a9[_0x174473('0x4')](request(_0x174473('0x18'),{'command':util[_0x174473('0x2')](_0x174473('0x7'),_0x2cbc34[_0x4b1194])})['then'](function(_0x431597){const _0x1580c5=_0x174473;return _0x431597&&_0x431597[_0x1580c5('0xc')]&&_0x431597[_0x1580c5('0xc')][_0x1580c5('0x8')](_0x1580c5('0x17'))>=0x0?!![]:![];})[_0x174473('0xf')](function(){const _0x42c2cf=_0x174473;logger[_0x42c2cf('0xb')](_0x42c2cf('0xe'),_0x5849a6,_0x2cbc34[_0x4b1194]);}));}Promise[_0x174473('0x10')](_0xfee2a9)['then'](function(_0xd3f587){const _0x4911bd=_0x174473,_0xa6f7e9=_['some'](_0xd3f587);logger[_0x4911bd('0x1')](_0x4911bd('0x0'),_0x5849a6,_0x2cbc34['join']('\x20|\x20'),_0xa6f7e9),_0x5aeb43[_0x4911bd('0xa')](_0xa6f7e9);})['catch'](function(_0x33e3f0){const _0x176453=_0x174473;console['log'](_0x33e3f0),logger['error'](_0x176453('0x0'),_0x5849a6,_0x2cbc34[_0x176453('0x5')](_0x176453('0x13')),_0x33e3f0[_0x176453('0x16')]),_0x5aeb43['stop']();});};}; \ No newline at end of file +const a1220_0xb87e=['when','format','lodash','Command','jayson/promise','catch','error','rules','all','stack','routing','info','util','log','true','then','indexOf','../../../config/logger','result','client','join','http','message','\x20|\x20','[%s][INTERVAL]\x20ROUTING\x20STOPPED'];(function(_0xaf54b8,_0xb87e68){const _0x1d3f68=function(_0x3d0c5d){while(--_0x3d0c5d){_0xaf54b8['push'](_0xaf54b8['shift']());}};_0x1d3f68(++_0xb87e68);}(a1220_0xb87e,0x123));const a1220_0x1d3f=function(_0xaf54b8,_0xb87e68){_0xaf54b8=_0xaf54b8-0x0;let _0x1d3f68=a1220_0xb87e[_0xaf54b8];return _0x1d3f68;};const _0x2792c1=a1220_0x1d3f;'use strict';const util=require(_0x2792c1('0x15')),jayson=require(_0x2792c1('0xd')),_=require(_0x2792c1('0xb')),logger=require(_0x2792c1('0x1'))(_0x2792c1('0x13')),client=jayson[_0x2792c1('0x3')][_0x2792c1('0x5')]({'port':0x232a});function request(_0x3d0c5d,_0x40ce40){return new Promise(function(_0x3defa3,_0x33eb91){const _0x288522=a1220_0x1d3f;return client['request'](_0x3d0c5d,_0x40ce40)[_0x288522('0x18')](function(_0x2f4714){const _0x29bd27=_0x288522;return _0x2f4714[_0x29bd27('0xf')]?_0x33eb91(_0x2f4714[_0x29bd27('0xf')][_0x29bd27('0x6')]):_0x3defa3(_0x2f4714[_0x29bd27('0x2')]);})['catch'](function(_0x235c42){return _0x33eb91(_0x235c42);});});}exports['condition']=function(_0x1d5c1d,_0x8792ba,_0x32d784){return function(_0x2c3e7c){const _0x14b562=a1220_0x1d3f;if(_0x32d784[_0x14b562('0x10')]&&!_0x32d784[_0x14b562('0x10')][_0x1d5c1d])return logger['info'](_0x14b562('0x8'),_0x1d5c1d),_0x2c3e7c['stop']();const _0x22fa85=[];for(let _0x174ab4=0x0;_0x174ab4<_0x8792ba['length'];_0x174ab4+=0x1){_0x22fa85['push'](request(_0x14b562('0xc'),{'command':util[_0x14b562('0xa')]('iftime\x20%s',_0x8792ba[_0x174ab4])})['then'](function(_0x4e4ff8){const _0x3acdd9=_0x14b562;return _0x4e4ff8&&_0x4e4ff8[_0x3acdd9('0x6')]&&_0x4e4ff8[_0x3acdd9('0x6')][_0x3acdd9('0x0')](_0x3acdd9('0x17'))>=0x0?!![]:![];})[_0x14b562('0xe')](function(){const _0x20570d=_0x14b562;logger[_0x20570d('0xf')]('[%s][INTERVAL]\x20%s',_0x1d5c1d,_0x8792ba[_0x174ab4]);}));}Promise[_0x14b562('0x11')](_0x22fa85)[_0x14b562('0x18')](function(_0x516c31){const _0x47ce8e=_0x14b562,_0x4e7788=_['some'](_0x516c31);logger[_0x47ce8e('0x14')]('[%s][INTERVAL]\x20%s\x20%s',_0x1d5c1d,_0x8792ba['join']('\x20|\x20'),_0x4e7788),_0x2c3e7c[_0x47ce8e('0x9')](_0x4e7788);})[_0x14b562('0xe')](function(_0x6aaa3f){const _0x46c4a1=_0x14b562;console[_0x46c4a1('0x16')](_0x6aaa3f),logger[_0x46c4a1('0xf')]('[%s][INTERVAL]\x20%s\x20%s',_0x1d5c1d,_0x8792ba[_0x46c4a1('0x4')](_0x46c4a1('0x7')),_0x6aaa3f[_0x46c4a1('0x12')]),_0x2c3e7c['stop']();});};}; \ No newline at end of file diff --git a/server/services/xdr/agents.controller.js b/server/services/xdr/agents.controller.js index b9628e6..c815e8a 100644 --- a/server/services/xdr/agents.controller.js +++ b/server/services/xdr/agents.controller.js @@ -1 +1 @@ -const a1219_0x31c6=['agentacw','agentconnect','transferuniqueid','agent','request','destuniqueid','answered_elsewhere','talktime','clone','stack','blindtransfer','uniqueid','complete','queuecallerabandon','getVoiceQueueByName','agentringnoanswerAt','isNil','membername','lodash','cause','rejected','queue','origtransfererexten','transfer','util','calleridnum','forIn','info','acw','connect','hangup','./utils','agentringnoanswer','transfertargetuniqueid','timeout','type','ATTENDED','interface','lastevent','extension','reason','transferexten','acwtime','answeredelsewheremembername','acwTimeout','agentcomplete','transfertype','calleridname','now','connectedlinenum','format','diffTime','agentcalledAt','indexOf','transfereruniqueid','agentconnectAt','origtransfererlinkedid','transfereeuniqueid','secondtransfererexten','agentcompleteAt','error','secondtransfereruniqueid','blind','includes','splice','abandoned','channel','ringtime','secondtransfererlinkedid','agentcalled','attendedtransfer','holdtime','connectedlinename','agententerreason','origtransfereruniqueid','CreateVoiceAgentReport'];(function(_0x49b6b9,_0x31c6d4){const _0x583862=function(_0x3d3dc3){while(--_0x3d3dc3){_0x49b6b9['push'](_0x49b6b9['shift']());}};_0x583862(++_0x31c6d4);}(a1219_0x31c6,0xe5));const a1219_0x5838=function(_0x49b6b9,_0x31c6d4){_0x49b6b9=_0x49b6b9-0x0;let _0x583862=a1219_0x31c6[_0x49b6b9];return _0x583862;};const _0x3c6c69=a1219_0x5838;'use strict';const _=require(_0x3c6c69('0x11')),util=require(_0x3c6c69('0x17')),utils=require(_0x3c6c69('0x1e')),agents={},transfers={},unanswered=[];function writeDB(_0x3d3dc3,_0x7a84c4){const _0x3dee62=_0x3c6c69;utils[_0x3dee62('0x1a')](util[_0x3dee62('0x31')]('AGENT|%s|%s|%s|%s|%s|%s|%s|%s',_0x3d3dc3[_0x3dee62('0xa')],_0x3d3dc3[_0x3dee62('0x41')],_0x3d3dc3[_0x3dee62('0x14')],_0x3d3dc3[_0x3dee62('0x10')],_0x3d3dc3[_0x3dee62('0x24')],_0x3d3dc3[_0x3dee62('0x18')],_0x3d3dc3['connectedlinenum'],_0x3d3dc3[_0x3dee62('0x25')])),_0x3d3dc3[_0x3dee62('0x14')]?utils[_0x3dee62('0xd')](_0x3d3dc3['queue'])['then'](function(_0x17797b){const _0x29ff3a=_0x3dee62;_0x17797b&&(_0x3d3dc3[_0x29ff3a('0x22')]=_0x17797b[_0x29ff3a('0x22')],_0x3d3dc3[_0x29ff3a('0x4b')]=_0x3d3dc3[_0x29ff3a('0x2c')]?_0x17797b[_0x29ff3a('0x1b')]:![],_0x3d3dc3[_0x29ff3a('0x29')]=_0x3d3dc3['agentacw']?_0x17797b[_0x29ff3a('0x2b')]:0x0),utils[_0x29ff3a('0x3')](_0x29ff3a('0x4a'),_0x3d3dc3);}):utils[_0x3dee62('0x3')]('CreateVoiceAgentReport',_0x3d3dc3),_0x7a84c4?delete transfers[_0x3d3dc3['uniqueid']]:delete agents[_0x3d3dc3['destuniqueid']];}exports[_0x3c6c69('0x44')]=function(_0x29eaac){const _0x56f4f1=_0x3c6c69;try{agents[_0x29eaac[_0x56f4f1('0x4')]]=_0x29eaac,agents[_0x29eaac[_0x56f4f1('0x4')]][_0x56f4f1('0x33')]=utils[_0x56f4f1('0x2f')](),agents[_0x29eaac[_0x56f4f1('0x4')]][_0x56f4f1('0x25')]='called',agents[_0x29eaac['destuniqueid']][_0x56f4f1('0x30')]=null,agents[_0x29eaac[_0x56f4f1('0x4')]]['connectedlinename']=null;}catch(_0x192b15){utils[_0x56f4f1('0x3b')](_0x192b15[_0x56f4f1('0x8')]);}},exports[_0x3c6c69('0x1f')]=function(_0x546186){const _0x13c50b=_0x3c6c69;try{!_['isNil'](agents[_0x546186['destuniqueid']])&&(agents[_0x546186[_0x13c50b('0x4')]][_0x13c50b('0x1f')]=!![],agents[_0x546186[_0x13c50b('0x4')]][_0x13c50b('0xe')]=utils[_0x13c50b('0x2f')](),agents[_0x546186[_0x13c50b('0x4')]]['lastevent']=_0x13c50b('0x21'),agents[_0x546186[_0x13c50b('0x4')]]['reason']=_0x13c50b('0x21'),agents[_0x546186[_0x13c50b('0x4')]][_0x13c50b('0x46')]=_0x546186[_0x13c50b('0x42')]?parseInt(_0x546186['ringtime'])/0x3e8:0x0,agents[_0x546186[_0x13c50b('0x4')]]['talktime']=0x0,unanswered['push'](_0x546186[_0x13c50b('0x4')]));}catch(_0x41e111){utils[_0x13c50b('0x3b')](_0x41e111[_0x13c50b('0x8')]);}},exports[_0x3c6c69('0xc')]=function(_0x50e059){const _0x133299=_0x3c6c69;try{_[_0x133299('0x19')](agents,function(_0x36e922){const _0x150b27=_0x133299;_0x36e922[_0x150b27('0xa')]==_0x50e059[_0x150b27('0xa')]&&!_[_0x150b27('0x3e')](unanswered,_0x36e922[_0x150b27('0x4')])&&(_0x36e922[_0x150b27('0x1f')]=!![],_0x36e922['agentringnoanswerAt']=utils[_0x150b27('0x2f')](),_0x36e922[_0x150b27('0x25')]=_0x150b27('0x40'),_0x36e922[_0x150b27('0x27')]=_0x150b27('0x40'),_0x36e922[_0x150b27('0x46')]=_0x50e059['holdtime'],_0x36e922['talktime']=0x0,writeDB(_0x36e922));});}catch(_0x2e4202){utils[_0x133299('0x3b')](_0x2e4202['stack']);}},exports[_0x3c6c69('0x0')]=function(_0x52a99a){const _0x120255=_0x3c6c69;try{agents[_0x52a99a['destuniqueid']]&&(agents[_0x52a99a['destuniqueid']][_0x120255('0x36')]=utils[_0x120255('0x2f')](),agents[_0x52a99a[_0x120255('0x4')]]['connectedlinenum']=_0x52a99a['connectedlinenum'],agents[_0x52a99a[_0x120255('0x4')]][_0x120255('0x47')]=_0x52a99a[_0x120255('0x47')],agents[_0x52a99a[_0x120255('0x4')]][_0x120255('0x46')]=_0x52a99a[_0x120255('0x42')],agents[_0x52a99a[_0x120255('0x4')]]['lastevent']=_0x120255('0x1c'),_[_0x120255('0x19')](agents,function(_0x20695e){const _0x4d5026=_0x120255;_0x20695e[_0x4d5026('0x4')]!=_0x52a99a['destuniqueid']&&_0x20695e[_0x4d5026('0xa')]==_0x52a99a['uniqueid']&&(_0x20695e[_0x4d5026('0x6')]=0x0,_0x20695e[_0x4d5026('0x46')]=_0x52a99a[_0x4d5026('0x42')],_0x20695e[_0x4d5026('0x1f')]=!![],_0x20695e[_0x4d5026('0xe')]=utils[_0x4d5026('0x2f')](),_0x20695e[_0x4d5026('0x25')]=_0x4d5026('0x5'),_0x20695e[_0x4d5026('0x27')]=_0x4d5026('0x5'),_0x20695e['answeredelsewheredestinationuniqueid']=_0x52a99a[_0x4d5026('0x4')],_0x20695e[_0x4d5026('0x2a')]=_0x52a99a[_0x4d5026('0x10')],writeDB(_0x20695e));}));}catch(_0x5af62e){utils['error'](_0x5af62e[_0x120255('0x8')]);}},exports[_0x3c6c69('0x2c')]=function(_0x41de5c){const _0x5ed596=_0x3c6c69;try{!_[_0x5ed596('0xf')](agents[_0x41de5c[_0x5ed596('0x4')]])&&(agents[_0x41de5c[_0x5ed596('0x4')]][_0x5ed596('0x2c')]=!![],agents[_0x41de5c[_0x5ed596('0x4')]]['agentcompleteAt']=utils[_0x5ed596('0x2f')](),agents[_0x41de5c[_0x5ed596('0x4')]]['talktime']=utils[_0x5ed596('0x32')](agents[_0x41de5c[_0x5ed596('0x4')]][_0x5ed596('0x3a')],agents[_0x41de5c[_0x5ed596('0x4')]]['agentconnectAt']),agents[_0x41de5c[_0x5ed596('0x4')]]['reason']=_0x41de5c[_0x5ed596('0x27')],agents[_0x41de5c['destuniqueid']][_0x5ed596('0x25')]=_0x5ed596('0xb'),writeDB(agents[_0x41de5c['destuniqueid']]));}catch(_0x467b78){utils[_0x5ed596('0x3b')](_0x467b78[_0x5ed596('0x8')]);}},exports[_0x3c6c69('0x9')]=function(_0x1f47ac){const _0x1ecda9=_0x3c6c69;try{!_[_0x1ecda9('0xf')](agents[_0x1f47ac[_0x1ecda9('0x35')]])&&(agents[_0x1f47ac[_0x1ecda9('0x35')]][_0x1ecda9('0x16')]=!![],agents[_0x1f47ac['transfereruniqueid']][_0x1ecda9('0x2d')]=_0x1ecda9('0x3d'),agents[_0x1f47ac['transfereruniqueid']]['transferexten']=_0x1f47ac[_0x1ecda9('0x26')],agents[_0x1f47ac['transfereruniqueid']]['transferuniqueid']=agents[_0x1f47ac[_0x1ecda9('0x35')]][_0x1ecda9('0xa')]);}catch(_0x2ab03a){utils[_0x1ecda9('0x3b')](_0x2ab03a[_0x1ecda9('0x8')]);}},exports[_0x3c6c69('0x45')]=function(_0x1aafd3){const _0x55d627=_0x3c6c69;try{if(_0x1aafd3[_0x55d627('0x49')]==_0x1aafd3[_0x55d627('0x37')])!_['isNil'](agents[_0x1aafd3['secondtransfereruniqueid']])&&(agents[_0x1aafd3[_0x55d627('0x3c')]]['transfer']=!![],agents[_0x1aafd3[_0x55d627('0x3c')]][_0x55d627('0x2d')]=_0x55d627('0x23'),agents[_0x1aafd3[_0x55d627('0x3c')]][_0x55d627('0x28')]=_0x1aafd3[_0x55d627('0x15')],agents[_0x1aafd3[_0x55d627('0x3c')]][_0x55d627('0x1')]=_0x1aafd3[_0x55d627('0x49')]),_0x1aafd3['transfereeuniqueid']&&agents[_0x1aafd3[_0x55d627('0x38')]]&&(agents[_0x1aafd3['transfereeuniqueid']][_0x55d627('0x48')]=0x1,transfers[_0x1aafd3[_0x55d627('0x38')]]=_[_0x55d627('0x7')](agents[_0x1aafd3['transfereeuniqueid']]),transfers[_0x1aafd3['transfereeuniqueid']][_0x55d627('0x18')]=agents[_0x1aafd3[_0x55d627('0x3c')]][_0x55d627('0x18')],transfers[_0x1aafd3[_0x55d627('0x38')]][_0x55d627('0x2e')]=agents[_0x1aafd3['secondtransfereruniqueid']][_0x55d627('0x2e')],transfers[_0x1aafd3['transfereeuniqueid']][_0x55d627('0x33')]=utils['now'](),transfers[_0x1aafd3['transfereeuniqueid']][_0x55d627('0x36')]=utils[_0x55d627('0x2f')](),transfers[_0x1aafd3[_0x55d627('0x38')]][_0x55d627('0x46')]=0x0,transfers[_0x1aafd3[_0x55d627('0x38')]][_0x55d627('0x48')]=0x2);else _0x1aafd3[_0x55d627('0x3c')]==_0x1aafd3[_0x55d627('0x43')]&&(!_[_0x55d627('0xf')](agents[_0x1aafd3[_0x55d627('0x49')]])&&(agents[_0x1aafd3[_0x55d627('0x49')]][_0x55d627('0x16')]=!![],agents[_0x1aafd3['origtransfereruniqueid']]['transfertype']='ATTENDED',agents[_0x1aafd3[_0x55d627('0x49')]][_0x55d627('0x28')]=_0x1aafd3[_0x55d627('0x39')],agents[_0x1aafd3[_0x55d627('0x49')]][_0x55d627('0x1')]=_0x1aafd3[_0x55d627('0x3c')]),_0x1aafd3[_0x55d627('0x20')]&&agents[_0x1aafd3['transfertargetuniqueid']]&&(agents[_0x1aafd3['transfertargetuniqueid']]['agententerreason']=0x1,transfers[_0x1aafd3[_0x55d627('0x20')]]=_[_0x55d627('0x7')](agents[_0x1aafd3[_0x55d627('0x20')]]),transfers[_0x1aafd3['transfertargetuniqueid']][_0x55d627('0x18')]=agents[_0x1aafd3['origtransfereruniqueid']][_0x55d627('0x18')],transfers[_0x1aafd3['transfertargetuniqueid']][_0x55d627('0x2e')]=agents[_0x1aafd3[_0x55d627('0x49')]]['calleridname'],transfers[_0x1aafd3[_0x55d627('0x20')]][_0x55d627('0x33')]=utils[_0x55d627('0x2f')](),transfers[_0x1aafd3['transfertargetuniqueid']]['agentconnectAt']=utils['now'](),transfers[_0x1aafd3[_0x55d627('0x20')]][_0x55d627('0x46')]=0x0,transfers[_0x1aafd3[_0x55d627('0x20')]][_0x55d627('0x48')]=0x2));}catch(_0xc0cd1f){utils['error'](_0xc0cd1f[_0x55d627('0x8')]);}},exports[_0x3c6c69('0x1d')]=function(_0x48b42d){const _0x13d10a=_0x3c6c69;try{if(agents[_0x48b42d['uniqueid']]&&agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x27')]==='timeout'){_0x48b42d[_0x13d10a('0x12')]==='21'&&(agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x27')]=_0x13d10a('0x13'),agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x25')]=_0x13d10a('0x13'));writeDB(agents[_0x48b42d['uniqueid']]);const _0x1823ad=unanswered[_0x13d10a('0x34')](_0x48b42d[_0x13d10a('0xa')]);if(_0x1823ad>-0x1)unanswered[_0x13d10a('0x3f')](_0x1823ad,0x1);}transfers[_0x48b42d[_0x13d10a('0xa')]]&&(transfers[_0x48b42d['uniqueid']][_0x13d10a('0x2c')]=!![],transfers[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x3a')]=utils['now'](),transfers[_0x48b42d['uniqueid']][_0x13d10a('0x6')]=utils[_0x13d10a('0x32')](transfers[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x3a')],transfers[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x36')]),transfers[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x27')]=_0x13d10a('0x2'),transfers[_0x48b42d['uniqueid']][_0x13d10a('0x25')]=_0x13d10a('0xb'),writeDB(transfers[_0x48b42d[_0x13d10a('0xa')]],!![])),agents[_0x48b42d[_0x13d10a('0xa')]]&&agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x36')]&&(agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x2c')]=!![],agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x3a')]=utils[_0x13d10a('0x2f')](),agents[_0x48b42d[_0x13d10a('0xa')]]['talktime']=utils[_0x13d10a('0x32')](agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x3a')],agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x36')]),agents[_0x48b42d['uniqueid']][_0x13d10a('0x27')]=agents[_0x48b42d['uniqueid']][_0x13d10a('0x16')]?_0x13d10a('0x16'):_0x13d10a('0x2'),agents[_0x48b42d[_0x13d10a('0xa')]][_0x13d10a('0x25')]=_0x13d10a('0xb'),writeDB(agents[_0x48b42d[_0x13d10a('0xa')]]));}catch(_0x595c40){utils[_0x13d10a('0x3b')](_0x595c40[_0x13d10a('0x8')]);}}; \ No newline at end of file +const a1221_0x1fc1=['agententerreason','connectedlinenum','transfereeuniqueid','extension','secondtransfererexten','isNil','transferuniqueid','includes','push','acwtime','calleridnum','transfertype','complete','reason','AGENT|%s|%s|%s|%s|%s|%s|%s|%s','ATTENDED','agentringnoanswer','now','ringtime','then','blindtransfer','agentcalledAt','forIn','queue','timeout','abandoned','talktime','lastevent','uniqueid','stack','calleridname','error','transfereruniqueid','rejected','util','channel','blind','agentcompleteAt','hangup','indexOf','transfertargetuniqueid','called','connect','agentconnectAt','transfer','attendedtransfer','clone','membername','acwTimeout','agentacw','destuniqueid','getVoiceQueueByName','diffTime','secondtransfereruniqueid','agent','type','format','transferexten','origtransfererlinkedid','cause','CreateVoiceAgentReport','agentcomplete','agentcalled','agentringnoanswerAt','answered_elsewhere','origtransfereruniqueid','info','connectedlinename','answeredelsewheremembername','queuecallerabandon','holdtime'];(function(_0x37954c,_0x1fc1b5){const _0x14709a=function(_0x20aaec){while(--_0x20aaec){_0x37954c['push'](_0x37954c['shift']());}};_0x14709a(++_0x1fc1b5);}(a1221_0x1fc1,0xb6));const a1221_0x1470=function(_0x37954c,_0x1fc1b5){_0x37954c=_0x37954c-0x0;let _0x14709a=a1221_0x1fc1[_0x37954c];return _0x14709a;};const _0x5697ce=a1221_0x1470;'use strict';const _=require('lodash'),util=require(_0x5697ce('0x41')),utils=require('./utils'),agents={},transfers={},unanswered=[];function writeDB(_0x20aaec,_0x841f2f){const _0x4494f6=_0x5697ce;utils[_0x4494f6('0x1a')](util[_0x4494f6('0x10')](_0x4494f6('0x2d'),_0x20aaec[_0x4494f6('0x3b')],_0x20aaec[_0x4494f6('0x42')],_0x20aaec['queue'],_0x20aaec[_0x4494f6('0x7')],_0x20aaec['interface'],_0x20aaec[_0x4494f6('0x29')],_0x20aaec[_0x4494f6('0x20')],_0x20aaec[_0x4494f6('0x3a')])),_0x20aaec[_0x4494f6('0x36')]?utils[_0x4494f6('0xb')](_0x20aaec['queue'])[_0x4494f6('0x32')](function(_0x5792d5){const _0x3c8343=_0x4494f6;_0x5792d5&&(_0x20aaec[_0x3c8343('0xf')]=_0x5792d5[_0x3c8343('0xf')],_0x20aaec[_0x3c8343('0x9')]=_0x20aaec['agentcomplete']?_0x5792d5['acw']:![],_0x20aaec[_0x3c8343('0x28')]=_0x20aaec[_0x3c8343('0x9')]?_0x5792d5[_0x3c8343('0x8')]:0x0),utils['request']('CreateVoiceAgentReport',_0x20aaec);}):utils['request'](_0x4494f6('0x14'),_0x20aaec),_0x841f2f?delete transfers[_0x20aaec['uniqueid']]:delete agents[_0x20aaec['destuniqueid']];}exports[_0x5697ce('0x16')]=function(_0xd4e156){const _0xcc7503=_0x5697ce;try{agents[_0xd4e156[_0xcc7503('0xa')]]=_0xd4e156,agents[_0xd4e156['destuniqueid']]['agentcalledAt']=utils[_0xcc7503('0x30')](),agents[_0xd4e156['destuniqueid']][_0xcc7503('0x3a')]=_0xcc7503('0x1'),agents[_0xd4e156[_0xcc7503('0xa')]]['connectedlinenum']=null,agents[_0xd4e156['destuniqueid']][_0xcc7503('0x1b')]=null;}catch(_0x21be3e){utils[_0xcc7503('0x3e')](_0x21be3e[_0xcc7503('0x3c')]);}},exports[_0x5697ce('0x2f')]=function(_0x290ce2){const _0x2a6ffb=_0x5697ce;try{!_['isNil'](agents[_0x290ce2['destuniqueid']])&&(agents[_0x290ce2[_0x2a6ffb('0xa')]][_0x2a6ffb('0x2f')]=!![],agents[_0x290ce2[_0x2a6ffb('0xa')]][_0x2a6ffb('0x17')]=utils[_0x2a6ffb('0x30')](),agents[_0x290ce2['destuniqueid']]['lastevent']=_0x2a6ffb('0x37'),agents[_0x290ce2[_0x2a6ffb('0xa')]][_0x2a6ffb('0x2c')]=_0x2a6ffb('0x37'),agents[_0x290ce2[_0x2a6ffb('0xa')]][_0x2a6ffb('0x1e')]=_0x290ce2[_0x2a6ffb('0x31')]?parseInt(_0x290ce2[_0x2a6ffb('0x31')])/0x3e8:0x0,agents[_0x290ce2[_0x2a6ffb('0xa')]]['talktime']=0x0,unanswered[_0x2a6ffb('0x27')](_0x290ce2['destuniqueid']));}catch(_0x56131f){utils[_0x2a6ffb('0x3e')](_0x56131f[_0x2a6ffb('0x3c')]);}},exports[_0x5697ce('0x1d')]=function(_0xaf31dc){const _0x2eed5a=_0x5697ce;try{_[_0x2eed5a('0x35')](agents,function(_0x25aedc){const _0x19047f=_0x2eed5a;_0x25aedc['uniqueid']==_0xaf31dc[_0x19047f('0x3b')]&&!_[_0x19047f('0x26')](unanswered,_0x25aedc[_0x19047f('0xa')])&&(_0x25aedc[_0x19047f('0x2f')]=!![],_0x25aedc[_0x19047f('0x17')]=utils[_0x19047f('0x30')](),_0x25aedc[_0x19047f('0x3a')]='abandoned',_0x25aedc[_0x19047f('0x2c')]=_0x19047f('0x38'),_0x25aedc[_0x19047f('0x1e')]=_0xaf31dc['holdtime'],_0x25aedc[_0x19047f('0x39')]=0x0,writeDB(_0x25aedc));});}catch(_0x3401ea){utils[_0x2eed5a('0x3e')](_0x3401ea['stack']);}},exports['agentconnect']=function(_0x45be37){const _0x31eea1=_0x5697ce;try{agents[_0x45be37['destuniqueid']]&&(agents[_0x45be37['destuniqueid']][_0x31eea1('0x3')]=utils[_0x31eea1('0x30')](),agents[_0x45be37[_0x31eea1('0xa')]][_0x31eea1('0x20')]=_0x45be37[_0x31eea1('0x20')],agents[_0x45be37[_0x31eea1('0xa')]]['connectedlinename']=_0x45be37['connectedlinename'],agents[_0x45be37[_0x31eea1('0xa')]][_0x31eea1('0x1e')]=_0x45be37['ringtime'],agents[_0x45be37[_0x31eea1('0xa')]][_0x31eea1('0x3a')]=_0x31eea1('0x2'),_[_0x31eea1('0x35')](agents,function(_0x59e4ee){const _0xc72cac=_0x31eea1;_0x59e4ee['destuniqueid']!=_0x45be37[_0xc72cac('0xa')]&&_0x59e4ee[_0xc72cac('0x3b')]==_0x45be37['uniqueid']&&(_0x59e4ee[_0xc72cac('0x39')]=0x0,_0x59e4ee[_0xc72cac('0x1e')]=_0x45be37[_0xc72cac('0x31')],_0x59e4ee[_0xc72cac('0x2f')]=!![],_0x59e4ee[_0xc72cac('0x17')]=utils[_0xc72cac('0x30')](),_0x59e4ee[_0xc72cac('0x3a')]=_0xc72cac('0x18'),_0x59e4ee[_0xc72cac('0x2c')]=_0xc72cac('0x18'),_0x59e4ee['answeredelsewheredestinationuniqueid']=_0x45be37[_0xc72cac('0xa')],_0x59e4ee[_0xc72cac('0x1c')]=_0x45be37[_0xc72cac('0x7')],writeDB(_0x59e4ee));}));}catch(_0x42d150){utils[_0x31eea1('0x3e')](_0x42d150[_0x31eea1('0x3c')]);}},exports[_0x5697ce('0x15')]=function(_0x349e28){const _0x3ec7f1=_0x5697ce;try{!_[_0x3ec7f1('0x24')](agents[_0x349e28[_0x3ec7f1('0xa')]])&&(agents[_0x349e28[_0x3ec7f1('0xa')]]['agentcomplete']=!![],agents[_0x349e28['destuniqueid']]['agentcompleteAt']=utils['now'](),agents[_0x349e28[_0x3ec7f1('0xa')]][_0x3ec7f1('0x39')]=utils['diffTime'](agents[_0x349e28[_0x3ec7f1('0xa')]][_0x3ec7f1('0x44')],agents[_0x349e28['destuniqueid']]['agentconnectAt']),agents[_0x349e28['destuniqueid']][_0x3ec7f1('0x2c')]=_0x349e28[_0x3ec7f1('0x2c')],agents[_0x349e28[_0x3ec7f1('0xa')]][_0x3ec7f1('0x3a')]=_0x3ec7f1('0x2b'),writeDB(agents[_0x349e28[_0x3ec7f1('0xa')]]));}catch(_0x50e168){utils['error'](_0x50e168[_0x3ec7f1('0x3c')]);}},exports[_0x5697ce('0x33')]=function(_0x4e2496){const _0x5a1cbb=_0x5697ce;try{!_[_0x5a1cbb('0x24')](agents[_0x4e2496['transfereruniqueid']])&&(agents[_0x4e2496[_0x5a1cbb('0x3f')]][_0x5a1cbb('0x4')]=!![],agents[_0x4e2496['transfereruniqueid']][_0x5a1cbb('0x2a')]=_0x5a1cbb('0x43'),agents[_0x4e2496['transfereruniqueid']]['transferexten']=_0x4e2496[_0x5a1cbb('0x22')],agents[_0x4e2496[_0x5a1cbb('0x3f')]]['transferuniqueid']=agents[_0x4e2496[_0x5a1cbb('0x3f')]]['uniqueid']);}catch(_0x4f3620){utils[_0x5a1cbb('0x3e')](_0x4f3620[_0x5a1cbb('0x3c')]);}},exports[_0x5697ce('0x5')]=function(_0x4e229a){const _0x50e346=_0x5697ce;try{if(_0x4e229a[_0x50e346('0x19')]==_0x4e229a[_0x50e346('0x12')])!_[_0x50e346('0x24')](agents[_0x4e229a[_0x50e346('0xd')]])&&(agents[_0x4e229a[_0x50e346('0xd')]][_0x50e346('0x4')]=!![],agents[_0x4e229a[_0x50e346('0xd')]][_0x50e346('0x2a')]=_0x50e346('0x2e'),agents[_0x4e229a['secondtransfereruniqueid']][_0x50e346('0x11')]=_0x4e229a['origtransfererexten'],agents[_0x4e229a[_0x50e346('0xd')]][_0x50e346('0x25')]=_0x4e229a[_0x50e346('0x19')]),_0x4e229a[_0x50e346('0x21')]&&agents[_0x4e229a[_0x50e346('0x21')]]&&(agents[_0x4e229a[_0x50e346('0x21')]][_0x50e346('0x1f')]=0x1,transfers[_0x4e229a['transfereeuniqueid']]=_[_0x50e346('0x6')](agents[_0x4e229a['transfereeuniqueid']]),transfers[_0x4e229a[_0x50e346('0x21')]]['calleridnum']=agents[_0x4e229a[_0x50e346('0xd')]][_0x50e346('0x29')],transfers[_0x4e229a[_0x50e346('0x21')]][_0x50e346('0x3d')]=agents[_0x4e229a[_0x50e346('0xd')]]['calleridname'],transfers[_0x4e229a['transfereeuniqueid']][_0x50e346('0x34')]=utils[_0x50e346('0x30')](),transfers[_0x4e229a[_0x50e346('0x21')]]['agentconnectAt']=utils['now'](),transfers[_0x4e229a[_0x50e346('0x21')]][_0x50e346('0x1e')]=0x0,transfers[_0x4e229a[_0x50e346('0x21')]][_0x50e346('0x1f')]=0x2);else _0x4e229a[_0x50e346('0xd')]==_0x4e229a['secondtransfererlinkedid']&&(!_['isNil'](agents[_0x4e229a[_0x50e346('0x19')]])&&(agents[_0x4e229a[_0x50e346('0x19')]][_0x50e346('0x4')]=!![],agents[_0x4e229a[_0x50e346('0x19')]][_0x50e346('0x2a')]=_0x50e346('0x2e'),agents[_0x4e229a[_0x50e346('0x19')]][_0x50e346('0x11')]=_0x4e229a[_0x50e346('0x23')],agents[_0x4e229a[_0x50e346('0x19')]][_0x50e346('0x25')]=_0x4e229a[_0x50e346('0xd')]),_0x4e229a['transfertargetuniqueid']&&agents[_0x4e229a['transfertargetuniqueid']]&&(agents[_0x4e229a[_0x50e346('0x0')]][_0x50e346('0x1f')]=0x1,transfers[_0x4e229a['transfertargetuniqueid']]=_['clone'](agents[_0x4e229a[_0x50e346('0x0')]]),transfers[_0x4e229a[_0x50e346('0x0')]][_0x50e346('0x29')]=agents[_0x4e229a['origtransfereruniqueid']]['calleridnum'],transfers[_0x4e229a[_0x50e346('0x0')]][_0x50e346('0x3d')]=agents[_0x4e229a[_0x50e346('0x19')]][_0x50e346('0x3d')],transfers[_0x4e229a['transfertargetuniqueid']][_0x50e346('0x34')]=utils[_0x50e346('0x30')](),transfers[_0x4e229a[_0x50e346('0x0')]][_0x50e346('0x3')]=utils['now'](),transfers[_0x4e229a['transfertargetuniqueid']]['holdtime']=0x0,transfers[_0x4e229a[_0x50e346('0x0')]][_0x50e346('0x1f')]=0x2));}catch(_0x21df95){utils[_0x50e346('0x3e')](_0x21df95['stack']);}},exports[_0x5697ce('0x45')]=function(_0x155e7b){const _0x5221b2=_0x5697ce;try{if(agents[_0x155e7b['uniqueid']]&&agents[_0x155e7b[_0x5221b2('0x3b')]]['reason']===_0x5221b2('0x37')){_0x155e7b[_0x5221b2('0x13')]==='21'&&(agents[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x2c')]=_0x5221b2('0x40'),agents[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x3a')]=_0x5221b2('0x40'));writeDB(agents[_0x155e7b['uniqueid']]);const _0x18309d=unanswered[_0x5221b2('0x46')](_0x155e7b[_0x5221b2('0x3b')]);if(_0x18309d>-0x1)unanswered['splice'](_0x18309d,0x1);}transfers[_0x155e7b[_0x5221b2('0x3b')]]&&(transfers[_0x155e7b['uniqueid']][_0x5221b2('0x15')]=!![],transfers[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x44')]=utils[_0x5221b2('0x30')](),transfers[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x39')]=utils[_0x5221b2('0xc')](transfers[_0x155e7b['uniqueid']][_0x5221b2('0x44')],transfers[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x3')]),transfers[_0x155e7b['uniqueid']][_0x5221b2('0x2c')]=_0x5221b2('0xe'),transfers[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x3a')]=_0x5221b2('0x2b'),writeDB(transfers[_0x155e7b[_0x5221b2('0x3b')]],!![])),agents[_0x155e7b[_0x5221b2('0x3b')]]&&agents[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x3')]&&(agents[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x15')]=!![],agents[_0x155e7b['uniqueid']][_0x5221b2('0x44')]=utils[_0x5221b2('0x30')](),agents[_0x155e7b['uniqueid']][_0x5221b2('0x39')]=utils[_0x5221b2('0xc')](agents[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x44')],agents[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x3')]),agents[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x2c')]=agents[_0x155e7b[_0x5221b2('0x3b')]]['transfer']?'transfer':_0x5221b2('0xe'),agents[_0x155e7b[_0x5221b2('0x3b')]][_0x5221b2('0x3a')]=_0x5221b2('0x2b'),writeDB(agents[_0x155e7b[_0x5221b2('0x3b')]]));}catch(_0x710cf6){utils[_0x5221b2('0x3e')](_0x710cf6[_0x5221b2('0x3c')]);}}; \ No newline at end of file diff --git a/server/services/xdr/calls.controller.js b/server/services/xdr/calls.controller.js index 281dcb7..1ee8b33 100644 --- a/server/services/xdr/calls.controller.js +++ b/server/services/xdr/calls.controller.js @@ -1 +1 @@ -const a1220_0x5f02=['isNil','localtwolinkedid','answertime','split','NO\x20ANSWER','DOCUMENTATION','hangup','getUserByInternal','queue','uniqueid','systemanswertime','destination','info','channelstate','origtransfererchannel','./utils','CALL|%s|%s|%s|%s|%s|%s|%s|%s','attendedtransfer','routeid','transfereechannel','calleridnum','variable','channel','secondtransfererchannel','stack','lastdata','BUSY','ANSWERED','toLowerCase','\x22\x20<','xmd-queue','FAILED','includes','starttime','Queue','value','destinationchannel','newchannel','now','ContactId','diffTime','newstate','disposition','linkedid','lastapplication','application','userfield','appdata','mohtime','callerid','varset','endtime','exten','UserId','substring','noop','xmd-callerid-preview','accountcode','sipcallid','startsWith','error','_attended','xmd-callerid','context','CreateVoiceCallReport','request','set','lodash','xmd-contactid','type','musiconholdstartAt','source','outboundrouteid','musiconholdstart','xmd-cdrtype','billableseconds','execif'];(function(_0x1bfb0e,_0x5f02aa){const _0x10393e=function(_0x37b455){while(--_0x37b455){_0x1bfb0e['push'](_0x1bfb0e['shift']());}};_0x10393e(++_0x5f02aa);}(a1220_0x5f02,0x1c9));const a1220_0x1039=function(_0x1bfb0e,_0x5f02aa){_0x1bfb0e=_0x1bfb0e-0x0;let _0x10393e=a1220_0x5f02[_0x1bfb0e];return _0x10393e;};const _0x114eb9=a1220_0x1039;'use strict';const _=require(_0x114eb9('0x48')),util=require('util'),utils=require(_0x114eb9('0x14')),dispositions=[_0x114eb9('0x9'),_0x114eb9('0x24'),_0x114eb9('0x24'),'NO\x20ANSWER',_0x114eb9('0x9'),'NO\x20ANSWER','ANSWERED',_0x114eb9('0x1f'),_0x114eb9('0x24'),_0x114eb9('0x24'),'FAILED'],channels={};function writeDB(_0x37b455){const _0x1a684e=_0x114eb9;utils[_0x1a684e('0x11')](util['format'](_0x1a684e('0x15'),_0x37b455[_0x1a684e('0xe')],_0x37b455['channel'],_0x37b455['type'],_0x37b455[_0x1a684e('0x3e')],_0x37b455[_0x1a684e('0x4c')],_0x37b455[_0x1a684e('0x10')],_0x37b455['callerid'],_0x37b455[_0x1a684e('0x2f')])),_0x37b455[_0x1a684e('0x3e')]?utils[_0x1a684e('0xc')](_0x37b455[_0x1a684e('0x3e')])['then'](function(_0x314354){const _0x5be693=_0x1a684e;_0x314354&&(_0x37b455[_0x5be693('0x3a')]=_0x314354['id']),utils[_0x5be693('0x46')]('CreateVoiceCallReport',_0x37b455);}):utils[_0x1a684e('0x46')](_0x1a684e('0x45'),_0x37b455),channels[_0x37b455[_0x1a684e('0xe')]]&&delete channels[_0x37b455['uniqueid']];}exports[_0x114eb9('0x2a')]=function(_0x56a585){const _0x21e9cb=_0x114eb9;try{_0x56a585['uniqueid']==_0x56a585['linkedid']&&_0x56a585['channel']!='OutgoingSpoolFailed'&&(channels[_0x56a585[_0x21e9cb('0xe')]]={'uniqueid':_0x56a585['uniqueid'],'accountcode':_0x56a585['accountcode'],'source':_0x56a585[_0x21e9cb('0x19')],'destination':_0x56a585[_0x21e9cb('0x39')],'destinationcontext':_0x56a585[_0x21e9cb('0x44')],'channel':_0x56a585[_0x21e9cb('0x1b')],'starttime':utils['now'](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x21e9cb('0x9'),'amaflags':_0x21e9cb('0xa')});}catch(_0x4c23ac){utils[_0x21e9cb('0x41')](_0x4c23ac[_0x21e9cb('0x1d')]);}},exports[_0x114eb9('0x2e')]=function(_0x38ead6){const _0x2f3880=_0x114eb9;try{if(!_[_0x2f3880('0x5')](channels[_0x38ead6[_0x2f3880('0xe')]])&&_0x38ead6[_0x2f3880('0x12')]==0x6)_[_0x2f3880('0x5')](channels[_0x38ead6[_0x2f3880('0xe')]][_0x2f3880('0xf')])&&(channels[_0x38ead6[_0x2f3880('0xe')]]['systemanswertime']=utils[_0x2f3880('0x2b')]());else!_[_0x2f3880('0x5')](channels[_0x38ead6[_0x2f3880('0x30')]])&&_0x38ead6[_0x2f3880('0x12')]==0x6&&_0x38ead6[_0x2f3880('0x44')]!='transfer'&&(channels[_0x38ead6['linkedid']]['accountcode']=_0x38ead6['accountcode'],channels[_0x38ead6[_0x2f3880('0x30')]][_0x2f3880('0x29')]=_0x38ead6['channel'],_[_0x2f3880('0x5')](channels[_0x38ead6[_0x2f3880('0x30')]][_0x2f3880('0x7')])&&(channels[_0x38ead6[_0x2f3880('0x30')]][_0x2f3880('0x7')]=utils['now']()),channels[_0x38ead6[_0x2f3880('0x30')]][_0x2f3880('0x2f')]=dispositions[_['toNumber'](_0x38ead6['channelstate'])]||_0x2f3880('0x20'));}catch(_0x1b01f3){utils[_0x2f3880('0x41')](_0x1b01f3[_0x2f3880('0x1d')]);}},exports[_0x114eb9('0xb')]=function(_0x5b5654){const _0x54a7af=_0x114eb9;try{!_[_0x54a7af('0x5')](channels[_0x5b5654['uniqueid']])&&(_[_0x54a7af('0x5')](channels[_0x5b5654[_0x54a7af('0xe')]][_0x54a7af('0x36')])&&(channels[_0x5b5654['uniqueid']][_0x54a7af('0x36')]=_0x5b5654['calleridname']+'\x20<'+_0x5b5654[_0x54a7af('0x19')]+'>'),channels[_0x5b5654['uniqueid']][_0x54a7af('0x38')]=utils[_0x54a7af('0x2b')](),channels[_0x5b5654['uniqueid']]['duration']=utils[_0x54a7af('0x2d')](channels[_0x5b5654[_0x54a7af('0xe')]][_0x54a7af('0x38')],channels[_0x5b5654[_0x54a7af('0xe')]][_0x54a7af('0x26')]),channels[_0x5b5654[_0x54a7af('0xe')]][_0x54a7af('0x3')]=channels[_0x5b5654[_0x54a7af('0xe')]][_0x54a7af('0x7')]?utils[_0x54a7af('0x2d')](channels[_0x5b5654[_0x54a7af('0xe')]][_0x54a7af('0x38')],channels[_0x5b5654[_0x54a7af('0xe')]]['answertime']):0x0,writeDB(channels[_0x5b5654[_0x54a7af('0xe')]]));}catch(_0x4fa3c9){utils['error'](_0x4fa3c9[_0x54a7af('0x1d')]);}},exports[_0x114eb9('0x16')]=function(_0x27d23a){const _0x240be4=_0x114eb9;try{if(!_['isNil'](channels[_0x27d23a[_0x240be4('0x6')]])){if(channels[_0x27d23a[_0x240be4('0x6')]][_0x240be4('0x1b')]==_0x27d23a[_0x240be4('0x18')])channels[_0x27d23a['localtwolinkedid']][_0x240be4('0x29')]=_0x27d23a[_0x240be4('0x1c')],channels[_0x27d23a[_0x240be4('0x6')]][_0x240be4('0x33')]=_0x240be4('0x42');else(channels[_0x27d23a[_0x240be4('0x6')]][_0x240be4('0x1b')]=_0x27d23a['transfertargetchannel'])&&(channels[_0x27d23a['localtwolinkedid']]['destinationchannel']=_0x27d23a[_0x240be4('0x13')],channels[_0x27d23a[_0x240be4('0x6')]][_0x240be4('0x33')]=_0x240be4('0x42'));}}catch(_0x2b2645){utils[_0x240be4('0x41')](_0x2b2645[_0x240be4('0x1d')]);}},exports[_0x114eb9('0x1')]=function(_0x533bdf){const _0x4bc3e3=_0x114eb9;try{!_[_0x4bc3e3('0x5')](channels[_0x533bdf[_0x4bc3e3('0xe')]])&&(channels[_0x533bdf['uniqueid']]['musiconholdstartAt']=utils[_0x4bc3e3('0x2b')]());}catch(_0x52d521){utils[_0x4bc3e3('0x41')](_0x52d521['stack']);}},exports['musiconholdstop']=function(_0xb0e346){const _0x27f163=_0x114eb9;try{!_['isNil'](channels[_0xb0e346[_0x27f163('0xe')]])&&(!_[_0x27f163('0x5')](channels[_0xb0e346[_0x27f163('0xe')]][_0x27f163('0x4b')])&&(channels[_0xb0e346[_0x27f163('0xe')]][_0x27f163('0x35')]+=utils[_0x27f163('0x2d')](utils['now'](),channels[_0xb0e346[_0x27f163('0xe')]][_0x27f163('0x4b')]),delete channels[_0xb0e346[_0x27f163('0xe')]][_0x27f163('0x4b')]));}catch(_0x4ba016){utils['error'](_0x4ba016['stack']);}},exports[_0x114eb9('0x37')]=function(_0x2b1d2d){const _0x436872=_0x114eb9;try{!_[_0x436872('0x5')](channels[_0x2b1d2d[_0x436872('0xe')]])&&(!_[_0x436872('0x5')](_0x2b1d2d[_0x436872('0x1a')]['xmd-originatecalleridnum'])&&(channels[_0x2b1d2d[_0x436872('0xe')]][_0x436872('0x4c')]=_0x2b1d2d[_0x436872('0x28')]),!_[_0x436872('0x5')](_0x2b1d2d[_0x436872('0x1a')]['xmd-phone'])&&(channels[_0x2b1d2d[_0x436872('0xe')]][_0x436872('0x10')]=_0x2b1d2d[_0x436872('0x28')],channels[_0x2b1d2d[_0x436872('0xe')]][_0x436872('0x36')]='\x22'+_0x2b1d2d[_0x436872('0x28')]+_0x436872('0x22')+_0x2b1d2d[_0x436872('0x28')]+'>'),(!_[_0x436872('0x5')](_0x2b1d2d['variable'][_0x436872('0x3d')])||!_[_0x436872('0x5')](_0x2b1d2d[_0x436872('0x1a')][_0x436872('0x43')]))&&(channels[_0x2b1d2d[_0x436872('0xe')]]['callerid']=_0x2b1d2d[_0x436872('0x28')]),(!_['isNil'](_0x2b1d2d['variable'][_0x436872('0x23')])||!_['isNil'](_0x2b1d2d[_0x436872('0x1a')]['xmcs-queue']))&&(channels[_0x2b1d2d[_0x436872('0xe')]]['lastapplication']=_0x436872('0x27'),channels[_0x2b1d2d[_0x436872('0xe')]][_0x436872('0x1e')]=_0x2b1d2d[_0x436872('0x28')],channels[_0x2b1d2d['uniqueid']][_0x436872('0xd')]=!![]),!_['isNil'](_0x2b1d2d[_0x436872('0x1a')][_0x436872('0x49')])&&(channels[_0x2b1d2d[_0x436872('0xe')]][_0x436872('0x2c')]=_0x2b1d2d[_0x436872('0x28')]),!_[_0x436872('0x5')](_0x2b1d2d[_0x436872('0x1a')][_0x436872('0x2')])&&(channels[_0x2b1d2d[_0x436872('0xe')]][_0x436872('0x4a')]=_0x2b1d2d[_0x436872('0x28')]),!_[_0x436872('0x5')](_0x2b1d2d[_0x436872('0x1a')][_0x436872('0x0')])&&(channels[_0x2b1d2d['uniqueid']][_0x436872('0x17')]=_0x2b1d2d[_0x436872('0x28')]),!_['isNil'](_0x2b1d2d[_0x436872('0x1a')]['sipcallid'])&&(channels[_0x2b1d2d[_0x436872('0xe')]][_0x436872('0x3f')]=_0x2b1d2d[_0x436872('0x28')]));}catch(_0x2a8ea5){utils[_0x436872('0x41')](_0x2a8ea5['stack']);}},exports['newexten']=function(_0x19c533){const _0x2ed8f1=_0x114eb9;try{if(!_[_0x2ed8f1('0x5')](channels[_0x19c533[_0x2ed8f1('0xe')]])){if(_0x19c533[_0x2ed8f1('0x32')][_0x2ed8f1('0x21')]()==_0x2ed8f1('0x47')&&_[_0x2ed8f1('0x40')](_0x19c533[_0x2ed8f1('0x34')]['toLowerCase'](),'cdr')){const _0x1d97b4=_0x19c533['appdata'][_0x2ed8f1('0x8')]('='),_0x1ee169=_0x1d97b4[0x0][_0x2ed8f1('0x3b')](_0x1d97b4[0x0]['lastIndexOf']('(')+0x1,_0x1d97b4[0x0]['lastIndexOf'](')')),_0x42428c=_0x1d97b4[0x1];channels[_0x19c533[_0x2ed8f1('0xe')]][_0x1ee169]=_0x42428c;}!_[_0x2ed8f1('0x25')]([_0x2ed8f1('0xb'),_0x2ed8f1('0x3c'),_0x2ed8f1('0x4'),_0x2ed8f1('0x47'),'gotoif'],_0x19c533[_0x2ed8f1('0x32')][_0x2ed8f1('0x21')]())&&(channels[_0x19c533[_0x2ed8f1('0xe')]][_0x2ed8f1('0x31')]=_0x19c533[_0x2ed8f1('0x32')],channels[_0x19c533[_0x2ed8f1('0xe')]][_0x2ed8f1('0x1e')]=_0x19c533['appdata']);}}catch(_0x13accc){utils[_0x2ed8f1('0x41')](_0x13accc[_0x2ed8f1('0x1d')]);}}; \ No newline at end of file +const a1222_0x54f0=['lodash','channelstate','newstate','transfer','localtwolinkedid','endtime','channel','type','disposition','origtransfererchannel','./utils','musiconholdstart','queue','startsWith','BUSY','linkedid','includes','callerid','context','calleridname','systemanswertime','sipcallid','xmd-phone','xmd-callerid','diffTime','uniqueid','OutgoingSpoolFailed','calleridnum','userfield','execif','lastIndexOf','xmd-cdrtype','destinationchannel','format','starttime','musiconholdstartAt','then','substring','source','accountcode','application','toLowerCase','CreateVoiceCallReport','attendedtransfer','getUserByInternal','FAILED','xmcs-queue','isNil','lastapplication','error','varset','appdata','newchannel','variable','secondtransfererchannel','_attended','noop','hangup','\x22\x20<','DOCUMENTATION','destination','stack','routeid','transfereechannel','gotoif','UserId','answertime','outboundrouteid','info','NO\x20ANSWER','CALL|%s|%s|%s|%s|%s|%s|%s|%s','request','set','value','now','lastdata','xmd-originatecalleridnum','xmd-contactid','musiconholdstop','transfertargetchannel','mohtime'];(function(_0x180c64,_0x54f08e){const _0x200e64=function(_0x1b7488){while(--_0x1b7488){_0x180c64['push'](_0x180c64['shift']());}};_0x200e64(++_0x54f08e);}(a1222_0x54f0,0x7c));const a1222_0x200e=function(_0x180c64,_0x54f08e){_0x180c64=_0x180c64-0x0;let _0x200e64=a1222_0x54f0[_0x180c64];return _0x200e64;};const _0x1e0161=a1222_0x200e;'use strict';const _=require(_0x1e0161('0x26')),util=require('util'),utils=require(_0x1e0161('0x30')),dispositions=['NO\x20ANSWER','FAILED','FAILED',_0x1e0161('0x1a'),'NO\x20ANSWER','NO\x20ANSWER','ANSWERED',_0x1e0161('0x34'),_0x1e0161('0x2'),'FAILED',_0x1e0161('0x2')],channels={};function writeDB(_0x1b7488){const _0x39305b=_0x1e0161;utils[_0x39305b('0x19')](util[_0x39305b('0x47')](_0x39305b('0x1b'),_0x1b7488['uniqueid'],_0x1b7488[_0x39305b('0x2c')],_0x1b7488[_0x39305b('0x2d')],_0x1b7488[_0x39305b('0x4d')],_0x1b7488[_0x39305b('0x4c')],_0x1b7488[_0x39305b('0x11')],_0x1b7488[_0x39305b('0x37')],_0x1b7488[_0x39305b('0x2e')])),_0x1b7488[_0x39305b('0x4d')]?utils[_0x39305b('0x1')](_0x1b7488[_0x39305b('0x4d')])[_0x39305b('0x4a')](function(_0x484767){const _0x5214fe=_0x39305b;_0x484767&&(_0x1b7488[_0x5214fe('0x16')]=_0x484767['id']),utils[_0x5214fe('0x1c')](_0x5214fe('0x50'),_0x1b7488);}):utils['request'](_0x39305b('0x50'),_0x1b7488),channels[_0x1b7488[_0x39305b('0x3f')]]&&delete channels[_0x1b7488['uniqueid']];}exports[_0x1e0161('0x9')]=function(_0x2c1e22){const _0x3bba8f=_0x1e0161;try{_0x2c1e22[_0x3bba8f('0x3f')]==_0x2c1e22[_0x3bba8f('0x35')]&&_0x2c1e22[_0x3bba8f('0x2c')]!=_0x3bba8f('0x40')&&(channels[_0x2c1e22[_0x3bba8f('0x3f')]]={'uniqueid':_0x2c1e22[_0x3bba8f('0x3f')],'accountcode':_0x2c1e22[_0x3bba8f('0x4d')],'source':_0x2c1e22[_0x3bba8f('0x41')],'destination':_0x2c1e22['exten'],'destinationcontext':_0x2c1e22[_0x3bba8f('0x38')],'channel':_0x2c1e22[_0x3bba8f('0x2c')],'starttime':utils[_0x3bba8f('0x1f')](),'answertime':null,'systemanswertime':null,'mohtime':0x0,'disposition':_0x3bba8f('0x1a'),'amaflags':_0x3bba8f('0x10')});}catch(_0x517c9e){utils['error'](_0x517c9e[_0x3bba8f('0x12')]);}},exports[_0x1e0161('0x28')]=function(_0x3485ad){const _0x3f02a0=_0x1e0161;try{if(!_[_0x3f02a0('0x4')](channels[_0x3485ad[_0x3f02a0('0x3f')]])&&_0x3485ad[_0x3f02a0('0x27')]==0x6)_[_0x3f02a0('0x4')](channels[_0x3485ad[_0x3f02a0('0x3f')]][_0x3f02a0('0x3a')])&&(channels[_0x3485ad[_0x3f02a0('0x3f')]]['systemanswertime']=utils['now']());else!_[_0x3f02a0('0x4')](channels[_0x3485ad[_0x3f02a0('0x35')]])&&_0x3485ad[_0x3f02a0('0x27')]==0x6&&_0x3485ad[_0x3f02a0('0x38')]!=_0x3f02a0('0x29')&&(channels[_0x3485ad[_0x3f02a0('0x35')]][_0x3f02a0('0x4d')]=_0x3485ad[_0x3f02a0('0x4d')],channels[_0x3485ad[_0x3f02a0('0x35')]]['destinationchannel']=_0x3485ad['channel'],_[_0x3f02a0('0x4')](channels[_0x3485ad[_0x3f02a0('0x35')]]['answertime'])&&(channels[_0x3485ad[_0x3f02a0('0x35')]][_0x3f02a0('0x17')]=utils['now']()),channels[_0x3485ad[_0x3f02a0('0x35')]][_0x3f02a0('0x2e')]=dispositions[_['toNumber'](_0x3485ad[_0x3f02a0('0x27')])]||'ANSWERED');}catch(_0x3573bf){utils[_0x3f02a0('0x6')](_0x3573bf[_0x3f02a0('0x12')]);}},exports['hangup']=function(_0x35e809){const _0x30050e=_0x1e0161;try{!_[_0x30050e('0x4')](channels[_0x35e809[_0x30050e('0x3f')]])&&(_[_0x30050e('0x4')](channels[_0x35e809[_0x30050e('0x3f')]][_0x30050e('0x37')])&&(channels[_0x35e809[_0x30050e('0x3f')]][_0x30050e('0x37')]=_0x35e809[_0x30050e('0x39')]+'\x20<'+_0x35e809['calleridnum']+'>'),channels[_0x35e809['uniqueid']]['endtime']=utils[_0x30050e('0x1f')](),channels[_0x35e809['uniqueid']]['duration']=utils[_0x30050e('0x3e')](channels[_0x35e809[_0x30050e('0x3f')]][_0x30050e('0x2b')],channels[_0x35e809[_0x30050e('0x3f')]][_0x30050e('0x48')]),channels[_0x35e809[_0x30050e('0x3f')]]['billableseconds']=channels[_0x35e809[_0x30050e('0x3f')]][_0x30050e('0x17')]?utils['diffTime'](channels[_0x35e809[_0x30050e('0x3f')]][_0x30050e('0x2b')],channels[_0x35e809[_0x30050e('0x3f')]]['answertime']):0x0,writeDB(channels[_0x35e809[_0x30050e('0x3f')]]));}catch(_0x3249e8){utils[_0x30050e('0x6')](_0x3249e8[_0x30050e('0x12')]);}},exports[_0x1e0161('0x0')]=function(_0x2696b2){const _0x3b1726=_0x1e0161;try{if(!_['isNil'](channels[_0x2696b2[_0x3b1726('0x2a')]])){if(channels[_0x2696b2[_0x3b1726('0x2a')]]['channel']==_0x2696b2[_0x3b1726('0x14')])channels[_0x2696b2['localtwolinkedid']]['destinationchannel']=_0x2696b2[_0x3b1726('0xb')],channels[_0x2696b2[_0x3b1726('0x2a')]][_0x3b1726('0x42')]=_0x3b1726('0xc');else(channels[_0x2696b2[_0x3b1726('0x2a')]][_0x3b1726('0x2c')]=_0x2696b2[_0x3b1726('0x24')])&&(channels[_0x2696b2['localtwolinkedid']][_0x3b1726('0x46')]=_0x2696b2[_0x3b1726('0x2f')],channels[_0x2696b2[_0x3b1726('0x2a')]][_0x3b1726('0x42')]=_0x3b1726('0xc'));}}catch(_0x50933f){utils[_0x3b1726('0x6')](_0x50933f[_0x3b1726('0x12')]);}},exports[_0x1e0161('0x31')]=function(_0x2ac37b){const _0x2d8cdb=_0x1e0161;try{!_['isNil'](channels[_0x2ac37b[_0x2d8cdb('0x3f')]])&&(channels[_0x2ac37b[_0x2d8cdb('0x3f')]][_0x2d8cdb('0x49')]=utils['now']());}catch(_0x3f9d65){utils[_0x2d8cdb('0x6')](_0x3f9d65[_0x2d8cdb('0x12')]);}},exports[_0x1e0161('0x23')]=function(_0x2ce2f7){const _0x182bde=_0x1e0161;try{!_[_0x182bde('0x4')](channels[_0x2ce2f7[_0x182bde('0x3f')]])&&(!_[_0x182bde('0x4')](channels[_0x2ce2f7[_0x182bde('0x3f')]][_0x182bde('0x49')])&&(channels[_0x2ce2f7[_0x182bde('0x3f')]][_0x182bde('0x25')]+=utils[_0x182bde('0x3e')](utils[_0x182bde('0x1f')](),channels[_0x2ce2f7[_0x182bde('0x3f')]][_0x182bde('0x49')]),delete channels[_0x2ce2f7[_0x182bde('0x3f')]][_0x182bde('0x49')]));}catch(_0x38779f){utils[_0x182bde('0x6')](_0x38779f[_0x182bde('0x12')]);}},exports[_0x1e0161('0x7')]=function(_0x3557f7){const _0x41b6a9=_0x1e0161;try{!_['isNil'](channels[_0x3557f7['uniqueid']])&&(!_[_0x41b6a9('0x4')](_0x3557f7[_0x41b6a9('0xa')][_0x41b6a9('0x21')])&&(channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x4c')]=_0x3557f7[_0x41b6a9('0x1e')]),!_[_0x41b6a9('0x4')](_0x3557f7[_0x41b6a9('0xa')][_0x41b6a9('0x3c')])&&(channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x11')]=_0x3557f7[_0x41b6a9('0x1e')],channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x37')]='\x22'+_0x3557f7[_0x41b6a9('0x1e')]+_0x41b6a9('0xf')+_0x3557f7['value']+'>'),(!_[_0x41b6a9('0x4')](_0x3557f7['variable']['xmd-callerid-preview'])||!_['isNil'](_0x3557f7[_0x41b6a9('0xa')][_0x41b6a9('0x3d')]))&&(channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x37')]=_0x3557f7['value']),(!_[_0x41b6a9('0x4')](_0x3557f7[_0x41b6a9('0xa')]['xmd-queue'])||!_['isNil'](_0x3557f7[_0x41b6a9('0xa')][_0x41b6a9('0x3')]))&&(channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x5')]='Queue',channels[_0x3557f7['uniqueid']][_0x41b6a9('0x20')]=_0x3557f7[_0x41b6a9('0x1e')],channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x32')]=!![]),!_[_0x41b6a9('0x4')](_0x3557f7[_0x41b6a9('0xa')][_0x41b6a9('0x22')])&&(channels[_0x3557f7[_0x41b6a9('0x3f')]]['ContactId']=_0x3557f7[_0x41b6a9('0x1e')]),!_[_0x41b6a9('0x4')](_0x3557f7['variable'][_0x41b6a9('0x45')])&&(channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x2d')]=_0x3557f7[_0x41b6a9('0x1e')]),!_[_0x41b6a9('0x4')](_0x3557f7[_0x41b6a9('0xa')][_0x41b6a9('0x18')])&&(channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x13')]=_0x3557f7[_0x41b6a9('0x1e')]),!_[_0x41b6a9('0x4')](_0x3557f7[_0x41b6a9('0xa')][_0x41b6a9('0x3b')])&&(channels[_0x3557f7[_0x41b6a9('0x3f')]][_0x41b6a9('0x3b')]=_0x3557f7[_0x41b6a9('0x1e')]));}catch(_0x3ce688){utils[_0x41b6a9('0x6')](_0x3ce688['stack']);}},exports['newexten']=function(_0x15c70e){const _0x16deba=_0x1e0161;try{if(!_['isNil'](channels[_0x15c70e[_0x16deba('0x3f')]])){if(_0x15c70e['application'][_0x16deba('0x4f')]()==_0x16deba('0x1d')&&_[_0x16deba('0x33')](_0x15c70e[_0x16deba('0x8')][_0x16deba('0x4f')](),'cdr')){const _0x39365f=_0x15c70e[_0x16deba('0x8')]['split']('='),_0x4b108f=_0x39365f[0x0][_0x16deba('0x4b')](_0x39365f[0x0]['lastIndexOf']('(')+0x1,_0x39365f[0x0][_0x16deba('0x44')](')')),_0x5eef0f=_0x39365f[0x1];channels[_0x15c70e[_0x16deba('0x3f')]][_0x4b108f]=_0x5eef0f;}!_[_0x16deba('0x36')]([_0x16deba('0xe'),_0x16deba('0xd'),_0x16deba('0x43'),_0x16deba('0x1d'),_0x16deba('0x15')],_0x15c70e['application'][_0x16deba('0x4f')]())&&(channels[_0x15c70e['uniqueid']][_0x16deba('0x5')]=_0x15c70e[_0x16deba('0x4e')],channels[_0x15c70e[_0x16deba('0x3f')]][_0x16deba('0x20')]=_0x15c70e['appdata']);}}catch(_0x1aeb1e){utils['error'](_0x1aeb1e[_0x16deba('0x12')]);}}; \ No newline at end of file diff --git a/server/services/xdr/core.controller.js b/server/services/xdr/core.controller.js index 5024140..16e0da5 100644 --- a/server/services/xdr/core.controller.js +++ b/server/services/xdr/core.controller.js @@ -1 +1 @@ -const a1221_0xfa3f=['fullybooted','FULLYBOOTED','CONNECTED','CLOSE','info','./utils','SHUTDOWN','close','shutdown','error','connect'];(function(_0x2169b3,_0xfa3f68){const _0x2ed859=function(_0x451cfd){while(--_0x451cfd){_0x2169b3['push'](_0x2169b3['shift']());}};_0x2ed859(++_0xfa3f68);}(a1221_0xfa3f,0xb4));const a1221_0x2ed8=function(_0x2169b3,_0xfa3f68){_0x2169b3=_0x2169b3-0x0;let _0x2ed859=a1221_0xfa3f[_0x2169b3];return _0x2ed859;};const _0x59b7d0=a1221_0x2ed8;'use strict';const utils=require(_0x59b7d0('0x1'));exports[_0x59b7d0('0x6')]=function(){const _0x567842=_0x59b7d0;utils[_0x567842('0x0')](_0x567842('0x9'));},exports[_0x59b7d0('0x4')]=function(){const _0x30aeb1=_0x59b7d0;utils['info'](_0x30aeb1('0x2'));},exports[_0x59b7d0('0x7')]=function(){const _0x3e8e7e=_0x59b7d0;utils[_0x3e8e7e('0x0')](_0x3e8e7e('0x8'));},exports['error']=function(_0x451cfd){const _0x153b3a=_0x59b7d0;utils[_0x153b3a('0x5')](_0x451cfd);},exports[_0x59b7d0('0x3')]=function(){const _0xaa3978=_0x59b7d0;utils[_0xaa3978('0x0')](_0xaa3978('0xa'));},exports['managerevent']=function(){}; \ No newline at end of file +const a1223_0x48d8=['error','shutdown','connect','CLOSE','SHUTDOWN','info','managerevent','fullybooted','FULLYBOOTED'];(function(_0x59cc83,_0x48d880){const _0x274628=function(_0x107cae){while(--_0x107cae){_0x59cc83['push'](_0x59cc83['shift']());}};_0x274628(++_0x48d880);}(a1223_0x48d8,0xcd));const a1223_0x2746=function(_0x59cc83,_0x48d880){_0x59cc83=_0x59cc83-0x0;let _0x274628=a1223_0x48d8[_0x59cc83];return _0x274628;};const _0x2894f4=a1223_0x2746;'use strict';const utils=require('./utils');exports[_0x2894f4('0x4')]=function(){const _0x26652e=_0x2894f4;utils[_0x26652e('0x7')]('CONNECTED');},exports[_0x2894f4('0x3')]=function(){const _0x2365e0=_0x2894f4;utils[_0x2365e0('0x7')](_0x2365e0('0x6'));},exports[_0x2894f4('0x0')]=function(){const _0x1dd38a=_0x2894f4;utils[_0x1dd38a('0x7')](_0x1dd38a('0x1'));},exports[_0x2894f4('0x2')]=function(_0x107cae){const _0x4f7fe7=_0x2894f4;utils[_0x4f7fe7('0x2')](_0x107cae);},exports['close']=function(){const _0x3817db=_0x2894f4;utils[_0x3817db('0x7')](_0x3817db('0x5'));},exports[_0x2894f4('0x8')]=function(){}; \ No newline at end of file diff --git a/server/services/xdr/dials.controller.js b/server/services/xdr/dials.controller.js index 3a2475f..6536b8a 100644 --- a/server/services/xdr/dials.controller.js +++ b/server/services/xdr/dials.controller.js @@ -1 +1 @@ -const a1222_0x715d=['calleridnum','called','dialstring','diffTime','stack','ANSWER','newexten','value','assign','cdr(routeid)','connect','DIAL|%s|%s|%s|%s|%s|%s','info','complete','util','dialend','hangup','error','startsWith','starttime','uniqueid','appdata','answertime','request','isNil','billableseconds','application','./utils','lodash','toLowerCase','dialstatus','dialbegin','holdtime','format','endtime','varset'];(function(_0x427f48,_0x715d75){const _0x3c8c26=function(_0x4ec735){while(--_0x4ec735){_0x427f48['push'](_0x427f48['shift']());}};_0x3c8c26(++_0x715d75);}(a1222_0x715d,0x1b2));const a1222_0x3c8c=function(_0x427f48,_0x715d75){_0x427f48=_0x427f48-0x0;let _0x3c8c26=a1222_0x715d[_0x427f48];return _0x3c8c26;};const _0x41d28e=a1222_0x3c8c;'use strict';const _=require(_0x41d28e('0x1a')),util=require(_0x41d28e('0xc')),utils=require(_0x41d28e('0x19')),dials={};function writeDB(_0x4ec735){const _0x2944cb=_0x41d28e;utils[_0x2944cb('0xa')](util[_0x2944cb('0x1f')](_0x2944cb('0x9'),_0x4ec735['uniqueid'],_0x4ec735['channel'],_0x4ec735[_0x2944cb('0x0')],_0x4ec735[_0x2944cb('0x22')],_0x4ec735['connectedlinenum'],_0x4ec735[_0x2944cb('0x1c')])),utils[_0x2944cb('0x15')]('CreateVoiceDialReport',_0x4ec735),delete dials[_0x4ec735[_0x2944cb('0x12')]];}exports[_0x41d28e('0x4')]=function(_0x56cb1a){const _0x50d47d=_0x41d28e;try{if(_0x56cb1a[_0x50d47d('0x18')][_0x50d47d('0x1b')]()=='set'&&_[_0x50d47d('0x10')](_0x56cb1a[_0x50d47d('0x13')]['toLowerCase'](),_0x50d47d('0x7'))){const _0x223fec=_0x56cb1a[_0x50d47d('0x13')]['split']('=');dials[_0x56cb1a[_0x50d47d('0x12')]]={'routeId':_0x223fec[0x1]};}}catch(_0x1dd8bd){utils['error'](_0x1dd8bd[_0x50d47d('0x2')]);}},exports[_0x41d28e('0x21')]=function(_0x12ba8c){const _0x4dc049=_0x41d28e;try{!_[_0x4dc049('0x16')](_0x12ba8c['variable']['outboundrouteid'])&&(dials[_0x12ba8c[_0x4dc049('0x12')]]={'routeId':_0x12ba8c[_0x4dc049('0x5')]});}catch(_0x42fba2){utils[_0x4dc049('0xf')](_0x42fba2[_0x4dc049('0x2')]);}},exports[_0x41d28e('0x1d')]=function(_0x19e59d){const _0x4c34c9=_0x41d28e;try{!_[_0x4c34c9('0x16')](dials[_0x19e59d[_0x4c34c9('0x12')]])&&(dials[_0x19e59d[_0x4c34c9('0x12')]]=_[_0x4c34c9('0x6')](dials[_0x19e59d[_0x4c34c9('0x12')]],_0x19e59d),dials[_0x19e59d[_0x4c34c9('0x12')]][_0x4c34c9('0x11')]=utils['now'](),dials[_0x19e59d[_0x4c34c9('0x12')]]['lastevent']=_0x4c34c9('0x23'));}catch(_0x4201eb){utils[_0x4c34c9('0xf')](_0x4201eb['stack']);}},exports[_0x41d28e('0xd')]=function(_0x3a8e87){const _0xe3a976=_0x41d28e;try{!_['isNil'](dials[_0x3a8e87['uniqueid']])&&(dials[_0x3a8e87[_0xe3a976('0x12')]][_0xe3a976('0x1c')]=_0x3a8e87[_0xe3a976('0x1c')],_0x3a8e87['dialstatus']==_0xe3a976('0x3')&&(dials[_0x3a8e87[_0xe3a976('0x12')]]=_[_0xe3a976('0x6')](dials[_0x3a8e87[_0xe3a976('0x12')]],_0x3a8e87),dials[_0x3a8e87[_0xe3a976('0x12')]][_0xe3a976('0x14')]=utils['now'](),dials[_0x3a8e87[_0xe3a976('0x12')]]['lastevent']=_0xe3a976('0x8')));}catch(_0x1ca276){utils[_0xe3a976('0xf')](_0x1ca276[_0xe3a976('0x2')]);}},exports[_0x41d28e('0xe')]=function(_0x3c71db){const _0x2db140=_0x41d28e;try{!_[_0x2db140('0x16')](dials[_0x3c71db[_0x2db140('0x12')]])&&(dials[_0x3c71db['uniqueid']]=_[_0x2db140('0x6')](dials[_0x3c71db['uniqueid']],{'endtime':utils['now'](),'lastevent':_0x2db140('0xb')}),dials[_0x3c71db[_0x2db140('0x12')]]['duration']=utils[_0x2db140('0x1')](dials[_0x3c71db[_0x2db140('0x12')]][_0x2db140('0x20')],dials[_0x3c71db[_0x2db140('0x12')]][_0x2db140('0x11')]),dials[_0x3c71db[_0x2db140('0x12')]][_0x2db140('0x1e')]=utils[_0x2db140('0x1')](dials[_0x3c71db['uniqueid']]['answertime']||dials[_0x3c71db[_0x2db140('0x12')]][_0x2db140('0x20')],dials[_0x3c71db[_0x2db140('0x12')]]['starttime']),dials[_0x3c71db[_0x2db140('0x12')]][_0x2db140('0x17')]=dials[_0x3c71db[_0x2db140('0x12')]][_0x2db140('0x14')]?utils[_0x2db140('0x1')](dials[_0x3c71db['uniqueid']]['endtime'],dials[_0x3c71db[_0x2db140('0x12')]]['answertime']):0x0,writeDB(dials[_0x3c71db[_0x2db140('0x12')]]));}catch(_0x398f75){utils[_0x2db140('0xf')](_0x398f75[_0x2db140('0x2')]);}}; \ No newline at end of file +const a1224_0x24db=['info','answertime','endtime','starttime','now','channel','connect','DIAL|%s|%s|%s|%s|%s|%s','value','duration','split','toLowerCase','hangup','CreateVoiceDialReport','error','ANSWER','dialend','uniqueid','holdtime','dialstatus','isNil','lodash','format','lastevent','varset','appdata','stack','startsWith','complete','billableseconds','assign','calleridnum','outboundrouteid','dialstring','variable','called','util','cdr(routeid)'];(function(_0x204869,_0x24db73){const _0x43360b=function(_0x256b8a){while(--_0x256b8a){_0x204869['push'](_0x204869['shift']());}};_0x43360b(++_0x24db73);}(a1224_0x24db,0x101));const a1224_0x4336=function(_0x204869,_0x24db73){_0x204869=_0x204869-0x0;let _0x43360b=a1224_0x24db[_0x204869];return _0x43360b;};const _0x136724=a1224_0x4336;'use strict';const _=require(_0x136724('0x1e')),util=require(_0x136724('0x7')),utils=require('./utils'),dials={};function writeDB(_0x256b8a){const _0x1fcad7=_0x136724;utils[_0x1fcad7('0x9')](util[_0x1fcad7('0x1f')](_0x1fcad7('0x10'),_0x256b8a[_0x1fcad7('0x1a')],_0x256b8a[_0x1fcad7('0xe')],_0x256b8a[_0x1fcad7('0x4')],_0x256b8a[_0x1fcad7('0x2')],_0x256b8a['connectedlinenum'],_0x256b8a[_0x1fcad7('0x1c')])),utils['request'](_0x1fcad7('0x16'),_0x256b8a),delete dials[_0x256b8a[_0x1fcad7('0x1a')]];}exports['newexten']=function(_0x4706a6){const _0x3b4015=_0x136724;try{if(_0x4706a6['application']['toLowerCase']()=='set'&&_[_0x3b4015('0x24')](_0x4706a6[_0x3b4015('0x22')][_0x3b4015('0x14')](),_0x3b4015('0x8'))){const _0x449572=_0x4706a6[_0x3b4015('0x22')][_0x3b4015('0x13')]('=');dials[_0x4706a6['uniqueid']]={'routeId':_0x449572[0x1]};}}catch(_0x52cf23){utils[_0x3b4015('0x17')](_0x52cf23[_0x3b4015('0x23')]);}},exports[_0x136724('0x21')]=function(_0x489313){const _0x3fda13=_0x136724;try{!_['isNil'](_0x489313[_0x3fda13('0x5')][_0x3fda13('0x3')])&&(dials[_0x489313[_0x3fda13('0x1a')]]={'routeId':_0x489313[_0x3fda13('0x11')]});}catch(_0x5cc360){utils[_0x3fda13('0x17')](_0x5cc360[_0x3fda13('0x23')]);}},exports['dialbegin']=function(_0x5a6b7c){const _0x4f9cb8=_0x136724;try{!_[_0x4f9cb8('0x1d')](dials[_0x5a6b7c[_0x4f9cb8('0x1a')]])&&(dials[_0x5a6b7c['uniqueid']]=_[_0x4f9cb8('0x1')](dials[_0x5a6b7c[_0x4f9cb8('0x1a')]],_0x5a6b7c),dials[_0x5a6b7c[_0x4f9cb8('0x1a')]]['starttime']=utils[_0x4f9cb8('0xd')](),dials[_0x5a6b7c[_0x4f9cb8('0x1a')]][_0x4f9cb8('0x20')]=_0x4f9cb8('0x6'));}catch(_0x21000e){utils['error'](_0x21000e[_0x4f9cb8('0x23')]);}},exports[_0x136724('0x19')]=function(_0x486f37){const _0x332817=_0x136724;try{!_[_0x332817('0x1d')](dials[_0x486f37['uniqueid']])&&(dials[_0x486f37[_0x332817('0x1a')]][_0x332817('0x1c')]=_0x486f37[_0x332817('0x1c')],_0x486f37[_0x332817('0x1c')]==_0x332817('0x18')&&(dials[_0x486f37[_0x332817('0x1a')]]=_[_0x332817('0x1')](dials[_0x486f37[_0x332817('0x1a')]],_0x486f37),dials[_0x486f37[_0x332817('0x1a')]][_0x332817('0xa')]=utils[_0x332817('0xd')](),dials[_0x486f37[_0x332817('0x1a')]][_0x332817('0x20')]=_0x332817('0xf')));}catch(_0x39757d){utils['error'](_0x39757d[_0x332817('0x23')]);}},exports[_0x136724('0x15')]=function(_0x382c10){const _0x5c3bb6=_0x136724;try{!_[_0x5c3bb6('0x1d')](dials[_0x382c10[_0x5c3bb6('0x1a')]])&&(dials[_0x382c10[_0x5c3bb6('0x1a')]]=_[_0x5c3bb6('0x1')](dials[_0x382c10[_0x5c3bb6('0x1a')]],{'endtime':utils['now'](),'lastevent':_0x5c3bb6('0x25')}),dials[_0x382c10[_0x5c3bb6('0x1a')]][_0x5c3bb6('0x12')]=utils['diffTime'](dials[_0x382c10[_0x5c3bb6('0x1a')]][_0x5c3bb6('0xb')],dials[_0x382c10['uniqueid']]['starttime']),dials[_0x382c10[_0x5c3bb6('0x1a')]][_0x5c3bb6('0x1b')]=utils['diffTime'](dials[_0x382c10['uniqueid']]['answertime']||dials[_0x382c10[_0x5c3bb6('0x1a')]]['endtime'],dials[_0x382c10[_0x5c3bb6('0x1a')]][_0x5c3bb6('0xc')]),dials[_0x382c10[_0x5c3bb6('0x1a')]][_0x5c3bb6('0x0')]=dials[_0x382c10[_0x5c3bb6('0x1a')]]['answertime']?utils['diffTime'](dials[_0x382c10[_0x5c3bb6('0x1a')]]['endtime'],dials[_0x382c10[_0x5c3bb6('0x1a')]][_0x5c3bb6('0xa')]):0x0,writeDB(dials[_0x382c10[_0x5c3bb6('0x1a')]]));}catch(_0x350a26){utils[_0x5c3bb6('0x17')](_0x350a26[_0x5c3bb6('0x23')]);}}; \ No newline at end of file diff --git a/server/services/xdr/index.js b/server/services/xdr/index.js index d61b3b0..d4efe65 100644 --- a/server/services/xdr/index.js +++ b/server/services/xdr/index.js @@ -1 +1 @@ -const a1223_0x6657=['varset','agentringnoanswer','cdr','./dials.controller','newchannel','agentcomplete','./core.controller','error','queuecallerjoin','asterisk-manager','agentconnect','disabled','musiconholdstart','devicestatechange','newstate','queuecallerabandon','connect','close','newexten','fullybooted','../../config/environment','hangup','./calls.controller','asterisk','queuecallerleave','managerevent','./utils','info','./members.controller','keepConnected','dialend','dialbegin','./recordings.controller','./queues.controller','username','agentcalled','../../globals','./transfers.controller','blindtransfer','attendedtransfer','./agents.controller','musiconholdstop','xdr'];(function(_0xd1c9f5,_0x6657d7){const _0x4d09a8=function(_0x1218e5){while(--_0x1218e5){_0xd1c9f5['push'](_0xd1c9f5['shift']());}};_0x4d09a8(++_0x6657d7);}(a1223_0x6657,0x100));const a1223_0x4d09=function(_0xd1c9f5,_0x6657d7){_0xd1c9f5=_0xd1c9f5-0x0;let _0x4d09a8=a1223_0x6657[_0xd1c9f5];return _0x4d09a8;};const _0x4535f0=a1223_0x4d09;require(_0x4535f0('0x26'));const AsteriskManager=require(_0x4535f0('0xb')),config=require(_0x4535f0('0x16')),utils=require(_0x4535f0('0x1c')),ami=new AsteriskManager(config[_0x4535f0('0x19')]['port'],config[_0x4535f0('0x19')]['ip'],config[_0x4535f0('0x19')][_0x4535f0('0x24')],config['asterisk']['password'],!![]);ami[_0x4535f0('0x1f')]();if(config[_0x4535f0('0x1')]&&config[_0x4535f0('0x1')][_0x4535f0('0xd')])utils[_0x4535f0('0x1d')]('XDR\x20DISABLED');else{const agents=require(_0x4535f0('0x2a')),calls=require(_0x4535f0('0x18')),queues=require(_0x4535f0('0x23')),recordings=require(_0x4535f0('0x22')),members=require(_0x4535f0('0x1e')),dials=require(_0x4535f0('0x5')),transfers=require(_0x4535f0('0x27')),core=require(_0x4535f0('0x8'));ami['on'](_0x4535f0('0x12'),core['connect']),ami['on']('shutdown',core['shutdown']),ami['on'](_0x4535f0('0x15'),core[_0x4535f0('0x15')]),ami['on'](_0x4535f0('0x9'),core[_0x4535f0('0x9')]),ami['on'](_0x4535f0('0x13'),core[_0x4535f0('0x13')]),ami['on']('managerevent',core[_0x4535f0('0x1b')]),ami['on'](_0x4535f0('0xf'),function(_0x1218e5){const _0x1bd37f=_0x4535f0;try{members[_0x1bd37f('0xf')](_0x1218e5);}catch(_0x75db69){utils[_0x1bd37f('0x9')](_0x75db69);}}),ami['on'](_0x4535f0('0x25'),function(_0x1902bb){try{agents['agentcalled'](_0x1902bb);}catch(_0x583d4f){utils['error'](_0x583d4f);}}),ami['on']('agentringnoanswer',function(_0x3a64cd){const _0x4aa772=_0x4535f0;try{agents[_0x4aa772('0x3')](_0x3a64cd);}catch(_0x17caf0){utils[_0x4aa772('0x9')](_0x17caf0);}}),ami['on']('agentconnect',function(_0x1b7adb){const _0x128d18=_0x4535f0;try{agents[_0x128d18('0xc')](_0x1b7adb),queues['agentconnect'](_0x1b7adb);}catch(_0x1a217e){utils[_0x128d18('0x9')](_0x1a217e);}}),ami['on'](_0x4535f0('0x7'),function(_0x21261b){const _0x49d6e4=_0x4535f0;try{agents[_0x49d6e4('0x7')](_0x21261b),queues['agentcomplete'](_0x21261b),members['agentcomplete'](_0x21261b);}catch(_0x3ac4e1){utils[_0x49d6e4('0x9')](_0x3ac4e1);}}),ami['on'](_0x4535f0('0x11'),function(_0x52234a){const _0x5d8845=_0x4535f0;try{agents[_0x5d8845('0x11')](_0x52234a),queues['queuecallerabandon'](_0x52234a);}catch(_0x3c77cc){utils[_0x5d8845('0x9')](_0x3c77cc);}}),ami['on']('queuecallerjoin',function(_0x5d552e){const _0x232122=_0x4535f0;try{queues[_0x232122('0xa')](_0x5d552e),recordings[_0x232122('0xa')](_0x5d552e);}catch(_0x1da223){utils[_0x232122('0x9')](_0x1da223);}}),ami['on'](_0x4535f0('0x1a'),function(_0x1c9cf5){const _0x2111b7=_0x4535f0;try{queues[_0x2111b7('0x1a')](_0x1c9cf5);}catch(_0x58445f){utils[_0x2111b7('0x9')](_0x58445f);}}),ami['on'](_0x4535f0('0xe'),function(_0xfaa483){const _0x398177=_0x4535f0;try{queues[_0x398177('0xe')](_0xfaa483),calls[_0x398177('0xe')](_0xfaa483);}catch(_0x42ddcf){utils[_0x398177('0x9')](_0x42ddcf);}}),ami['on'](_0x4535f0('0x0'),function(_0x11a42d){const _0x1b7c61=_0x4535f0;try{queues[_0x1b7c61('0x0')](_0x11a42d),calls['musiconholdstop'](_0x11a42d);}catch(_0x57d76f){utils[_0x1b7c61('0x9')](_0x57d76f);}}),ami['on'](_0x4535f0('0x10'),function(_0x3fc571){const _0x59874a=_0x4535f0;try{calls['newstate'](_0x3fc571),recordings[_0x59874a('0x10')](_0x3fc571);}catch(_0x373c04){utils[_0x59874a('0x9')](_0x373c04);}}),ami['on'](_0x4535f0('0x17'),function(_0x2250f){const _0x1dae61=_0x4535f0;try{calls['hangup'](_0x2250f),recordings[_0x1dae61('0x17')](_0x2250f),dials[_0x1dae61('0x17')](_0x2250f),agents[_0x1dae61('0x17')](_0x2250f),queues['hangup'](_0x2250f);}catch(_0x119495){utils[_0x1dae61('0x9')](_0x119495);}}),ami['on'](_0x4535f0('0x4'),function(_0x5c03b9){const _0xb8d86a=_0x4535f0;try{members[_0xb8d86a('0x4')](_0x5c03b9);}catch(_0x13c473){utils['error'](_0x13c473);}}),ami['on']('blindtransfer',function(_0x4690fd){const _0x2bef47=_0x4535f0;try{queues[_0x2bef47('0x28')](_0x4690fd),agents['blindtransfer'](_0x4690fd),transfers[_0x2bef47('0x28')](_0x4690fd);}catch(_0x1c77ac){utils[_0x2bef47('0x9')](_0x1c77ac);}}),ami['on'](_0x4535f0('0x29'),function(_0xf542c3){const _0x58369c=_0x4535f0;try{queues[_0x58369c('0x29')](_0xf542c3),transfers['attendedtransfer'](_0xf542c3),agents[_0x58369c('0x29')](_0xf542c3),calls['attendedtransfer'](_0xf542c3);}catch(_0x349136){utils['error'](_0x349136);}}),ami['on']('varset',function(_0x5a4a55){const _0x297161=_0x4535f0;try{queues['varset'](_0x5a4a55),recordings['varset'](_0x5a4a55),calls[_0x297161('0x2')](_0x5a4a55),dials[_0x297161('0x2')](_0x5a4a55);}catch(_0x2fa84d){utils['error'](_0x2fa84d);}}),ami['on']('newexten',function(_0x356b94){const _0x3d0341=_0x4535f0;try{calls[_0x3d0341('0x14')](_0x356b94),recordings[_0x3d0341('0x14')](_0x356b94),dials[_0x3d0341('0x14')](_0x356b94);}catch(_0x271a50){utils[_0x3d0341('0x9')](_0x271a50);}}),ami['on'](_0x4535f0('0x6'),function(_0x74c288){const _0x205714=_0x4535f0;try{calls['newchannel'](_0x74c288),recordings[_0x205714('0x6')](_0x74c288);}catch(_0x1e08f3){utils[_0x205714('0x9')](_0x1e08f3);}}),ami['on'](_0x4535f0('0x21'),function(_0x3eacc9){const _0x32cb8d=_0x4535f0;try{dials[_0x32cb8d('0x21')](_0x3eacc9);}catch(_0x4cd733){utils['error'](_0x4cd733);}}),ami['on']('dialend',function(_0x14a5e6){const _0x220472=_0x4535f0;try{dials[_0x220472('0x20')](_0x14a5e6);}catch(_0x521a88){utils[_0x220472('0x9')](_0x521a88);}});} \ No newline at end of file +const a1225_0x395a=['blindtransfer','newstate','./utils','../../config/environment','error','varset','asterisk-manager','./recordings.controller','connect','./calls.controller','agentconnect','info','agentcomplete','port','shutdown','dialbegin','username','./dials.controller','musiconholdstop','./members.controller','musiconholdstart','attendedtransfer','newexten','../../globals','close','queuecallerabandon','newchannel','./transfers.controller','cdr','asterisk','fullybooted','managerevent','hangup','queuecallerleave','./queues.controller','agentcalled','keepConnected','password','queuecallerjoin','agentringnoanswer'];(function(_0x50de31,_0x395a5e){const _0x157da0=function(_0x39c2df){while(--_0x39c2df){_0x50de31['push'](_0x50de31['shift']());}};_0x157da0(++_0x395a5e);}(a1225_0x395a,0x1db));const a1225_0x157d=function(_0x50de31,_0x395a5e){_0x50de31=_0x50de31-0x0;let _0x157da0=a1225_0x395a[_0x50de31];return _0x157da0;};const _0x4ac36e=a1225_0x157d;require(_0x4ac36e('0x1c'));const AsteriskManager=require(_0x4ac36e('0xb')),config=require(_0x4ac36e('0x8')),utils=require(_0x4ac36e('0x7')),ami=new AsteriskManager(config[_0x4ac36e('0x22')][_0x4ac36e('0x12')],config[_0x4ac36e('0x22')]['ip'],config[_0x4ac36e('0x22')][_0x4ac36e('0x15')],config[_0x4ac36e('0x22')][_0x4ac36e('0x2')],!![]);ami[_0x4ac36e('0x1')]();if(config['xdr']&&config['xdr']['disabled'])utils[_0x4ac36e('0x10')]('XDR\x20DISABLED');else{const agents=require('./agents.controller'),calls=require(_0x4ac36e('0xe')),queues=require(_0x4ac36e('0x27')),recordings=require(_0x4ac36e('0xc')),members=require(_0x4ac36e('0x18')),dials=require(_0x4ac36e('0x16')),transfers=require(_0x4ac36e('0x20')),core=require('./core.controller');ami['on'](_0x4ac36e('0xd'),core[_0x4ac36e('0xd')]),ami['on']('shutdown',core[_0x4ac36e('0x13')]),ami['on'](_0x4ac36e('0x23'),core[_0x4ac36e('0x23')]),ami['on']('error',core['error']),ami['on'](_0x4ac36e('0x1d'),core[_0x4ac36e('0x1d')]),ami['on']('managerevent',core[_0x4ac36e('0x24')]),ami['on']('devicestatechange',function(_0x39c2df){try{members['devicestatechange'](_0x39c2df);}catch(_0x42b630){utils['error'](_0x42b630);}}),ami['on']('agentcalled',function(_0x587940){const _0x5e4bf4=_0x4ac36e;try{agents[_0x5e4bf4('0x0')](_0x587940);}catch(_0x79a75c){utils[_0x5e4bf4('0x9')](_0x79a75c);}}),ami['on'](_0x4ac36e('0x4'),function(_0x3946df){const _0x105756=_0x4ac36e;try{agents[_0x105756('0x4')](_0x3946df);}catch(_0xcbc2ba){utils[_0x105756('0x9')](_0xcbc2ba);}}),ami['on'](_0x4ac36e('0xf'),function(_0x32457b){const _0x27e2f5=_0x4ac36e;try{agents[_0x27e2f5('0xf')](_0x32457b),queues['agentconnect'](_0x32457b);}catch(_0x5a715e){utils[_0x27e2f5('0x9')](_0x5a715e);}}),ami['on']('agentcomplete',function(_0x1cae4c){const _0x322dfe=_0x4ac36e;try{agents['agentcomplete'](_0x1cae4c),queues[_0x322dfe('0x11')](_0x1cae4c),members[_0x322dfe('0x11')](_0x1cae4c);}catch(_0x526504){utils[_0x322dfe('0x9')](_0x526504);}}),ami['on'](_0x4ac36e('0x1e'),function(_0xc1b795){const _0x2a9931=_0x4ac36e;try{agents[_0x2a9931('0x1e')](_0xc1b795),queues[_0x2a9931('0x1e')](_0xc1b795);}catch(_0x422449){utils[_0x2a9931('0x9')](_0x422449);}}),ami['on'](_0x4ac36e('0x3'),function(_0x58ff57){const _0x338276=_0x4ac36e;try{queues['queuecallerjoin'](_0x58ff57),recordings['queuecallerjoin'](_0x58ff57);}catch(_0x5ef18f){utils[_0x338276('0x9')](_0x5ef18f);}}),ami['on']('queuecallerleave',function(_0x59c91b){const _0x41675c=_0x4ac36e;try{queues[_0x41675c('0x26')](_0x59c91b);}catch(_0x47552f){utils[_0x41675c('0x9')](_0x47552f);}}),ami['on']('musiconholdstart',function(_0x36e5c8){const _0x3c1d1c=_0x4ac36e;try{queues[_0x3c1d1c('0x19')](_0x36e5c8),calls[_0x3c1d1c('0x19')](_0x36e5c8);}catch(_0x192115){utils[_0x3c1d1c('0x9')](_0x192115);}}),ami['on'](_0x4ac36e('0x17'),function(_0x27768d){const _0x537f73=_0x4ac36e;try{queues['musiconholdstop'](_0x27768d),calls[_0x537f73('0x17')](_0x27768d);}catch(_0xefc902){utils[_0x537f73('0x9')](_0xefc902);}}),ami['on'](_0x4ac36e('0x6'),function(_0x810187){const _0x384597=_0x4ac36e;try{calls[_0x384597('0x6')](_0x810187),recordings[_0x384597('0x6')](_0x810187);}catch(_0x35ece4){utils[_0x384597('0x9')](_0x35ece4);}}),ami['on'](_0x4ac36e('0x25'),function(_0x407259){const _0x557b57=_0x4ac36e;try{calls[_0x557b57('0x25')](_0x407259),recordings['hangup'](_0x407259),dials[_0x557b57('0x25')](_0x407259),agents['hangup'](_0x407259),queues[_0x557b57('0x25')](_0x407259);}catch(_0x412a21){utils[_0x557b57('0x9')](_0x412a21);}}),ami['on'](_0x4ac36e('0x21'),function(_0x566ccd){const _0x29febe=_0x4ac36e;try{members[_0x29febe('0x21')](_0x566ccd);}catch(_0x375f9f){utils[_0x29febe('0x9')](_0x375f9f);}}),ami['on'](_0x4ac36e('0x5'),function(_0xea1a3e){const _0x4c5d19=_0x4ac36e;try{queues[_0x4c5d19('0x5')](_0xea1a3e),agents[_0x4c5d19('0x5')](_0xea1a3e),transfers[_0x4c5d19('0x5')](_0xea1a3e);}catch(_0x2d3372){utils[_0x4c5d19('0x9')](_0x2d3372);}}),ami['on'](_0x4ac36e('0x1a'),function(_0xc919bf){const _0x3acf79=_0x4ac36e;try{queues[_0x3acf79('0x1a')](_0xc919bf),transfers[_0x3acf79('0x1a')](_0xc919bf),agents[_0x3acf79('0x1a')](_0xc919bf),calls[_0x3acf79('0x1a')](_0xc919bf);}catch(_0x10f75d){utils[_0x3acf79('0x9')](_0x10f75d);}}),ami['on'](_0x4ac36e('0xa'),function(_0x3346a5){const _0x4c2ffe=_0x4ac36e;try{queues['varset'](_0x3346a5),recordings[_0x4c2ffe('0xa')](_0x3346a5),calls[_0x4c2ffe('0xa')](_0x3346a5),dials[_0x4c2ffe('0xa')](_0x3346a5);}catch(_0x51bd44){utils[_0x4c2ffe('0x9')](_0x51bd44);}}),ami['on'](_0x4ac36e('0x1b'),function(_0x4670ed){const _0x45971b=_0x4ac36e;try{calls[_0x45971b('0x1b')](_0x4670ed),recordings['newexten'](_0x4670ed),dials[_0x45971b('0x1b')](_0x4670ed);}catch(_0x3f04eb){utils[_0x45971b('0x9')](_0x3f04eb);}}),ami['on']('newchannel',function(_0x1a62bf){const _0x3954b0=_0x4ac36e;try{calls[_0x3954b0('0x1f')](_0x1a62bf),recordings[_0x3954b0('0x1f')](_0x1a62bf);}catch(_0xa8f3e7){utils[_0x3954b0('0x9')](_0xa8f3e7);}}),ami['on'](_0x4ac36e('0x14'),function(_0x2de91d){const _0x5e3752=_0x4ac36e;try{dials[_0x5e3752('0x14')](_0x2de91d);}catch(_0x2fe184){utils[_0x5e3752('0x9')](_0x2fe184);}}),ami['on']('dialend',function(_0xbb5f63){const _0x3daf3f=_0x4ac36e;try{dials['dialend'](_0xbb5f63);}catch(_0x24ea9f){utils[_0x3daf3f('0x9')](_0x24ea9f);}});} \ No newline at end of file diff --git a/server/services/xdr/members.controller.js b/server/services/xdr/members.controller.js index 82d3997..431ea12 100644 --- a/server/services/xdr/members.controller.js +++ b/server/services/xdr/members.controller.js @@ -1 +1 @@ -const a1224_0x1759=['request','state','CreateMemberReport','isNil','cdr','NOT_INUSE','exitAt','destination','device','now','TALKING','startsWith','some','devicestatechange','type','duration','voice','data2','name','assign','Queue:','split','data3','queue','agentcomplete','destinationchannel','INUSE','membername','Local/_attended@transfer','channel','then','data1','format','lodash','./utils','internal','MEMBER|%s|%s|%s|%s|%s|%s','BUSY','source','getUserByInterface','interface','uniqueid','diffTime','catch'];(function(_0x1fab28,_0x175967){const _0x268b4d=function(_0x1ae9b0){while(--_0x1ae9b0){_0x1fab28['push'](_0x1fab28['shift']());}};_0x268b4d(++_0x175967);}(a1224_0x1759,0x1d4));const a1224_0x268b=function(_0x1fab28,_0x175967){_0x1fab28=_0x1fab28-0x0;let _0x268b4d=a1224_0x1759[_0x1fab28];return _0x268b4d;};const _0x53706d=a1224_0x268b;'use strict';const _=require(_0x53706d('0x5')),util=require('util'),utils=require(_0x53706d('0x6')),members={},exclude=[_0x53706d('0x0'),_0x53706d('0x24')];function writeDB(_0x1ae9b0){const _0x4c1db0=_0x53706d;utils['info'](util[_0x4c1db0('0x4')](_0x4c1db0('0x8'),_0x1ae9b0['uniqueid'],_0x1ae9b0['interface'],_0x1ae9b0[_0x4c1db0('0x1')],_0x1ae9b0[_0x4c1db0('0x21')],_0x1ae9b0[_0x4c1db0('0x2b')],_0x1ae9b0[_0x4c1db0('0x1e')])),_0x1ae9b0[_0x4c1db0('0xc')]&&utils[_0x4c1db0('0xb')](_0x1ae9b0[_0x4c1db0('0xc')])[_0x4c1db0('0x2')](function(_0x5cf068){const _0x52b174=_0x4c1db0;_0x5cf068?(_0x1ae9b0[_0x52b174('0x2b')]=_0x5cf068[_0x52b174('0x22')],_0x1ae9b0[_0x52b174('0x7')]=_0x5cf068[_0x52b174('0x7')],utils[_0x52b174('0x10')](_0x52b174('0x12'),_0x1ae9b0)):utils['getUserByName'](_0x1ae9b0[_0x52b174('0xc')][_0x52b174('0x25')]('/')[0x1])[_0x52b174('0x2')](function(_0x489043){const _0x33a47e=_0x52b174;_0x489043&&(_0x1ae9b0[_0x33a47e('0x2b')]=_0x489043[_0x33a47e('0x22')],_0x1ae9b0[_0x33a47e('0x7')]=_0x489043[_0x33a47e('0x7')],utils[_0x33a47e('0x10')](_0x33a47e('0x12'),_0x1ae9b0));});})[_0x4c1db0('0xf')](function(_0x37f275){utils['error'](_0x37f275);}),delete members[_0x1ae9b0[_0x4c1db0('0xc')]];}function startsWith(_0x56ae77,_0x5b9f64){const _0x2c7415=_0x53706d;return _[_0x2c7415('0x1c')](_0x56ae77,function(_0x1b6fa2){const _0x3b97bc=_0x2c7415;return _[_0x3b97bc('0x1b')](_0x5b9f64,_0x1b6fa2);});}exports[_0x53706d('0x1d')]=function(_0x1d026f){const _0xc12841=_0x53706d;switch(_0x1d026f[_0xc12841('0x11')]){case _0xc12841('0x2a'):case _0xc12841('0x9'):!startsWith(exclude,_0x1d026f['device'])&&(members[_0x1d026f[_0xc12841('0x18')]]={'channel':_0xc12841('0x20'),'interface':_0x1d026f[_0xc12841('0x18')],'type':_0xc12841('0x1a'),'enterAt':utils[_0xc12841('0x19')](),'role':'agent'});break;case _0xc12841('0x15'):!_[_0xc12841('0x13')](members[_0x1d026f['device']])&&(members[_0x1d026f['device']][_0xc12841('0x16')]=utils[_0xc12841('0x19')](),members[_0x1d026f['device']][_0xc12841('0x1f')]=utils[_0xc12841('0xe')](members[_0x1d026f[_0xc12841('0x18')]][_0xc12841('0x16')],members[_0x1d026f[_0xc12841('0x18')]]['enterAt']),members[_0x1d026f[_0xc12841('0x18')]][_0xc12841('0xd')]&&writeDB(members[_0x1d026f[_0xc12841('0x18')]]));break;default:break;}},exports[_0x53706d('0x28')]=function(_0x1cf337){const _0x724526=_0x53706d;!_[_0x724526('0x13')](members[_0x1cf337[_0x724526('0xc')]])&&(members[_0x1cf337['interface']]=_['assign'](members[_0x1cf337[_0x724526('0xc')]],{'data4':_0x1cf337[_0x724526('0x27')],'uniqueid':_0x1cf337[_0x724526('0xd')]}));},exports[_0x53706d('0x14')]=function(_0x6d9f37){const _0x25a03c=_0x53706d;if(_0x6d9f37[_0x25a03c('0x1')]){const _0xf44e5=_0x6d9f37['channel'][_0x25a03c('0x25')]('-')[0x0];!_[_0x25a03c('0x13')](members[_0xf44e5])&&(members[_0xf44e5]=_[_0x25a03c('0x23')](members[_0xf44e5],{'data1':members[_0xf44e5]['data1']||_0x6d9f37[_0x25a03c('0x1e')],'data2':members[_0xf44e5]['data2']||_0x6d9f37[_0x25a03c('0xa')],'data3':members[_0xf44e5][_0x25a03c('0x26')]||_0x6d9f37[_0x25a03c('0x17')],'uniqueid':members[_0xf44e5][_0x25a03c('0xd')]||_0x6d9f37[_0x25a03c('0xd')]}),members[_0xf44e5][_0x25a03c('0x16')]&&writeDB(members[_0xf44e5]));}if(_0x6d9f37['destinationchannel']){const _0x40f809=_0x6d9f37[_0x25a03c('0x29')][_0x25a03c('0x25')]('-')[0x0];!_['isNil'](members[_0x40f809])&&(members[_0x40f809]=_[_0x25a03c('0x23')](members[_0x40f809],{'data1':members[_0x40f809][_0x25a03c('0x3')]||_0x6d9f37[_0x25a03c('0x1e')],'data2':members[_0x40f809][_0x25a03c('0x21')]||_0x6d9f37[_0x25a03c('0xa')],'data3':members[_0x40f809]['data3']||_0x6d9f37[_0x25a03c('0x17')],'uniqueid':members[_0x40f809][_0x25a03c('0xd')]||_0x6d9f37[_0x25a03c('0xd')]}),members[_0x40f809][_0x25a03c('0x16')]&&writeDB(members[_0x40f809]));}}; \ No newline at end of file +const a1226_0x8035=['lodash','CreateMemberReport','Queue:','exitAt','request','enterAt','split','NOT_INUSE','voice','channel','assign','interface','name','device','info','agentcomplete','./utils','INUSE','internal','catch','TALKING','util','type','isNil','Local/_attended@transfer','data1','diffTime','cdr','agent','source','membername','BUSY','then','data2','getUserByInterface','MEMBER|%s|%s|%s|%s|%s|%s','devicestatechange','uniqueid','queue','destination','some'];(function(_0x5d658a,_0x803509){const _0x787938=function(_0x39ddcf){while(--_0x39ddcf){_0x5d658a['push'](_0x5d658a['shift']());}};_0x787938(++_0x803509);}(a1226_0x8035,0x105));const a1226_0x7879=function(_0x5d658a,_0x803509){_0x5d658a=_0x5d658a-0x0;let _0x787938=a1226_0x8035[_0x5d658a];return _0x787938;};const _0xdd7af7=a1226_0x7879;'use strict';const _=require(_0xdd7af7('0x1a')),util=require(_0xdd7af7('0x6')),utils=require(_0xdd7af7('0x1')),members={},exclude=[_0xdd7af7('0x9'),_0xdd7af7('0x1c')];function writeDB(_0x39ddcf){const _0x213fef=_0xdd7af7;utils[_0x213fef('0x28')](util['format'](_0x213fef('0x14'),_0x39ddcf['uniqueid'],_0x39ddcf[_0x213fef('0x25')],_0x39ddcf['channel'],_0x39ddcf['data2'],_0x39ddcf[_0x213fef('0xf')],_0x39ddcf[_0x213fef('0x7')])),_0x39ddcf[_0x213fef('0x25')]&&utils[_0x213fef('0x13')](_0x39ddcf[_0x213fef('0x25')])[_0x213fef('0x11')](function(_0x42fbcd){const _0x26cf86=_0x213fef;_0x42fbcd?(_0x39ddcf['membername']=_0x42fbcd[_0x26cf86('0x26')],_0x39ddcf[_0x26cf86('0x3')]=_0x42fbcd[_0x26cf86('0x3')],utils[_0x26cf86('0x1e')](_0x26cf86('0x1b'),_0x39ddcf)):utils['getUserByName'](_0x39ddcf[_0x26cf86('0x25')]['split']('/')[0x1])['then'](function(_0x2721ca){const _0x2ed586=_0x26cf86;_0x2721ca&&(_0x39ddcf['membername']=_0x2721ca[_0x2ed586('0x26')],_0x39ddcf[_0x2ed586('0x3')]=_0x2721ca['internal'],utils[_0x2ed586('0x1e')](_0x2ed586('0x1b'),_0x39ddcf));});})[_0x213fef('0x4')](function(_0xbfd225){utils['error'](_0xbfd225);}),delete members[_0x39ddcf[_0x213fef('0x25')]];}function startsWith(_0x23970d,_0x3e0ed1){const _0x59b402=_0xdd7af7;return _[_0x59b402('0x19')](_0x23970d,function(_0x5487c6){return _['startsWith'](_0x3e0ed1,_0x5487c6);});}exports[_0xdd7af7('0x15')]=function(_0x1812f2){const _0x122ffd=_0xdd7af7;switch(_0x1812f2['state']){case _0x122ffd('0x2'):case _0x122ffd('0x10'):!startsWith(exclude,_0x1812f2[_0x122ffd('0x27')])&&(members[_0x1812f2[_0x122ffd('0x27')]]={'channel':_0x122ffd('0x22'),'interface':_0x1812f2[_0x122ffd('0x27')],'type':_0x122ffd('0x5'),'enterAt':utils['now'](),'role':_0x122ffd('0xd')});break;case _0x122ffd('0x21'):!_[_0x122ffd('0x8')](members[_0x1812f2['device']])&&(members[_0x1812f2['device']][_0x122ffd('0x1d')]=utils['now'](),members[_0x1812f2['device']]['duration']=utils[_0x122ffd('0xb')](members[_0x1812f2[_0x122ffd('0x27')]]['exitAt'],members[_0x1812f2['device']][_0x122ffd('0x1f')]),members[_0x1812f2[_0x122ffd('0x27')]]['uniqueid']&&writeDB(members[_0x1812f2[_0x122ffd('0x27')]]));break;default:break;}},exports[_0xdd7af7('0x0')]=function(_0x5cf3b9){const _0xfded25=_0xdd7af7;!_['isNil'](members[_0x5cf3b9['interface']])&&(members[_0x5cf3b9[_0xfded25('0x25')]]=_[_0xfded25('0x24')](members[_0x5cf3b9['interface']],{'data4':_0x5cf3b9[_0xfded25('0x17')],'uniqueid':_0x5cf3b9[_0xfded25('0x16')]}));},exports[_0xdd7af7('0xc')]=function(_0x47c04f){const _0x15c90a=_0xdd7af7;if(_0x47c04f[_0x15c90a('0x23')]){const _0x361d80=_0x47c04f['channel'][_0x15c90a('0x20')]('-')[0x0];!_[_0x15c90a('0x8')](members[_0x361d80])&&(members[_0x361d80]=_[_0x15c90a('0x24')](members[_0x361d80],{'data1':members[_0x361d80][_0x15c90a('0xa')]||_0x47c04f[_0x15c90a('0x7')],'data2':members[_0x361d80]['data2']||_0x47c04f[_0x15c90a('0xe')],'data3':members[_0x361d80]['data3']||_0x47c04f[_0x15c90a('0x18')],'uniqueid':members[_0x361d80][_0x15c90a('0x16')]||_0x47c04f['uniqueid']}),members[_0x361d80]['exitAt']&&writeDB(members[_0x361d80]));}if(_0x47c04f['destinationchannel']){const _0x404aa7=_0x47c04f['destinationchannel'][_0x15c90a('0x20')]('-')[0x0];!_[_0x15c90a('0x8')](members[_0x404aa7])&&(members[_0x404aa7]=_[_0x15c90a('0x24')](members[_0x404aa7],{'data1':members[_0x404aa7][_0x15c90a('0xa')]||_0x47c04f[_0x15c90a('0x7')],'data2':members[_0x404aa7][_0x15c90a('0x12')]||_0x47c04f[_0x15c90a('0xe')],'data3':members[_0x404aa7]['data3']||_0x47c04f[_0x15c90a('0x18')],'uniqueid':members[_0x404aa7][_0x15c90a('0x16')]||_0x47c04f[_0x15c90a('0x16')]}),members[_0x404aa7][_0x15c90a('0x1d')]&&writeDB(members[_0x404aa7]));}}; \ No newline at end of file diff --git a/server/services/xdr/queues.controller.js b/server/services/xdr/queues.controller.js index 8b16bf5..d555284 100644 --- a/server/services/xdr/queues.controller.js +++ b/server/services/xdr/queues.controller.js @@ -1 +1 @@ -const a1225_0x54ff=['CONTINUE','membername','transfertargetlinkedid','secondtransfererlinkedid','channel','transfereduniqueid','varset','queuecallerexit','ATTENDED','queuecallercompleteAt','./utils','variable','queuecallerleave','QUEUE|%s|%s|%s|%s|%s|%s|%s','transfereeuniqueid','queuecallerabandon','queue','now','position','musiconholdstop','calleridname','accountcode','queuestatus','reason','toUpperCase','BLIND','secondtransfereruniqueid','agentcomplete','ATTENDEDTRANSFER','calleridnum','extension','queuecallercomplete','transferexten','count','queuecallerenterreason','secondtransfererexten','assigned','format','value','transferuniqueid','connectedlinename','queuecallerleaveAt','ABANDONED','queuecallerjoinAt','transfertype','transfereelinkedid','stack','assign','diffTime','queuecallerexitAt','musiconholdstartAt','clone','transfer','hangup','destaccountcode','holdtime','TRANSFER','transfertargetuniqueid','uniqueid','mohtime','blindtransfer','CreateVoiceQueueReport','type','origtransfererlinkedid','agentconnect','queuecallerjoin','queuecallerabandonAt','attendedtransfer','then','connectedlinenum','error','request','lastAssignedTo','EXITWITHKEY','origtransfererexten','origtransfereruniqueid','COMPLETEDBYAGENT','util','getVoiceQueueByName','queuecallerexitreason','COMPLETEDBY','isNil'];(function(_0x546d32,_0x54ffc3){const _0xf7aa49=function(_0x41b7e5){while(--_0x41b7e5){_0x546d32['push'](_0x546d32['shift']());}};_0xf7aa49(++_0x54ffc3);}(a1225_0x54ff,0x1d7));const a1225_0xf7aa=function(_0x546d32,_0x54ffc3){_0x546d32=_0x546d32-0x0;let _0xf7aa49=a1225_0x54ff[_0x546d32];return _0xf7aa49;};const _0x50c5be=a1225_0xf7aa;'use strict';const _=require('lodash'),util=require(_0x50c5be('0x10')),utils=require(_0x50c5be('0x1f')),queues={};function writeDB(_0x41b7e5){const _0x4be628=_0x50c5be;utils['info'](util[_0x4be628('0x3a')](_0x4be628('0x22'),_0x41b7e5[_0x4be628('0x4f')],_0x41b7e5[_0x4be628('0x19')],_0x41b7e5[_0x4be628('0x25')],_0x41b7e5[_0x4be628('0xb')],_0x41b7e5['calleridnum'],_0x41b7e5[_0x4be628('0x2a')],_0x41b7e5[_0x4be628('0x12')])),_0x41b7e5[_0x4be628('0x25')]?utils[_0x4be628('0x11')](_0x41b7e5[_0x4be628('0x25')])[_0x4be628('0x7')](function(_0x3f6d87){const _0x5307ba=_0x4be628;_0x3f6d87&&(_0x41b7e5[_0x5307ba('0x1')]=_0x3f6d87[_0x5307ba('0x1')]),utils[_0x5307ba('0xa')](_0x5307ba('0x0'),_0x41b7e5);}):utils['request']('CreateVoiceQueueReport',_0x41b7e5),_0x41b7e5[_0x4be628('0x1a')]?delete queues[_0x41b7e5[_0x4be628('0x1a')]]:delete queues[_0x41b7e5['uniqueid']];}exports[_0x50c5be('0x4')]=function(_0x410829){const _0x53521c=_0x50c5be;queues[_0x410829[_0x53521c('0x4f')]]=_[_0x53521c('0x44')](_0x410829,{'originalposition':_0x410829[_0x53521c('0x27')],'queuecallerjoinAt':utils['now'](),'mohtime':0x0});},exports[_0x50c5be('0x4a')]=function(_0x5079c8){const _0x9bcbb2=_0x50c5be;!_[_0x9bcbb2('0x14')](queues[_0x5079c8[_0x9bcbb2('0x4f')]])&&(queues[_0x5079c8[_0x9bcbb2('0x4f')]][_0x9bcbb2('0x3e')]?(!queues[_0x5079c8[_0x9bcbb2('0x4f')]][_0x9bcbb2('0x24')]&&!queues[_0x5079c8[_0x9bcbb2('0x4f')]][_0x9bcbb2('0x1c')]&&(queues[_0x5079c8[_0x9bcbb2('0x4f')]]['queuecallercomplete']=!![],queues[_0x5079c8[_0x9bcbb2('0x4f')]]['queuecallercompleteAt']=utils[_0x9bcbb2('0x26')](),queues[_0x5079c8[_0x9bcbb2('0x4f')]][_0x9bcbb2('0x12')]=_0x9bcbb2('0xf')),writeDB(queues[_0x5079c8[_0x9bcbb2('0x4f')]])):queues[_0x5079c8[_0x9bcbb2('0x4f')]][_0x9bcbb2('0x1a')]&&(queues[queues[_0x5079c8[_0x9bcbb2('0x4f')]][_0x9bcbb2('0x1a')]]=queues[_0x5079c8[_0x9bcbb2('0x4f')]],queues[queues[_0x5079c8[_0x9bcbb2('0x4f')]][_0x9bcbb2('0x1a')]][_0x9bcbb2('0x37')]=0x2,delete queues[_0x5079c8[_0x9bcbb2('0x4f')]]));},exports[_0x50c5be('0x1b')]=function(_0x4771db){const _0x2bb7c0=_0x50c5be;if(!_[_0x2bb7c0('0x14')](_0x4771db[_0x2bb7c0('0x20')][_0x2bb7c0('0x2b')])&&_0x4771db[_0x2bb7c0('0x3b')][_0x2bb7c0('0x2d')]()!==_0x2bb7c0('0x15'))!_[_0x2bb7c0('0x14')](queues[_0x4771db[_0x2bb7c0('0x4f')]])&&(queues[_0x4771db[_0x2bb7c0('0x4f')]][_0x2bb7c0('0x24')]=![],queues[_0x4771db[_0x2bb7c0('0x4f')]][_0x2bb7c0('0x5')]=null,queues[_0x4771db[_0x2bb7c0('0x4f')]][_0x2bb7c0('0x1c')]=!![],queues[_0x4771db[_0x2bb7c0('0x4f')]][_0x2bb7c0('0x46')]=utils[_0x2bb7c0('0x26')](),queues[_0x4771db[_0x2bb7c0('0x4f')]]['queuecallerexitreason']=_0x4771db[_0x2bb7c0('0x3b')][_0x2bb7c0('0x2d')](),writeDB(queues[_0x4771db[_0x2bb7c0('0x4f')]]));else!_[_0x2bb7c0('0x14')](_0x4771db[_0x2bb7c0('0x20')]['queueposition'])&&(!_[_0x2bb7c0('0x14')](queues[_0x4771db[_0x2bb7c0('0x4f')]])&&!queues[_0x4771db[_0x2bb7c0('0x4f')]]['queuecallerabandon']&&(queues[_0x4771db[_0x2bb7c0('0x4f')]][_0x2bb7c0('0x24')]=![],queues[_0x4771db['uniqueid']][_0x2bb7c0('0x5')]=null,queues[_0x4771db[_0x2bb7c0('0x4f')]][_0x2bb7c0('0x1c')]=!![],queues[_0x4771db[_0x2bb7c0('0x4f')]]['queuecallerexitAt']=utils[_0x2bb7c0('0x26')](),queues[_0x4771db[_0x2bb7c0('0x4f')]][_0x2bb7c0('0x12')]=_0x2bb7c0('0xc')));},exports[_0x50c5be('0x24')]=function(_0x3f5a85){const _0x1e9b1e=_0x50c5be;!_[_0x1e9b1e('0x14')](queues[_0x3f5a85['uniqueid']])&&(queues[_0x3f5a85[_0x1e9b1e('0x4f')]][_0x1e9b1e('0x1c')]=![],queues[_0x3f5a85['uniqueid']][_0x1e9b1e('0x46')]=null,queues[_0x3f5a85[_0x1e9b1e('0x4f')]][_0x1e9b1e('0x24')]=!![],queues[_0x3f5a85['uniqueid']][_0x1e9b1e('0x5')]=utils[_0x1e9b1e('0x26')](),queues[_0x3f5a85[_0x1e9b1e('0x4f')]][_0x1e9b1e('0x12')]=_0x1e9b1e('0x3f'));},exports[_0x50c5be('0x21')]=function(_0x2af889){const _0x17b043=_0x50c5be;!_[_0x17b043('0x14')](queues[_0x2af889[_0x17b043('0x4f')]])&&(queues[_0x2af889[_0x17b043('0x4f')]][_0x17b043('0x21')]=!![],queues[_0x2af889['uniqueid']]['queuecallerleaveAt']=utils[_0x17b043('0x26')](),queues[_0x2af889['uniqueid']][_0x17b043('0x4c')]=utils[_0x17b043('0x45')](queues[_0x2af889[_0x17b043('0x4f')]][_0x17b043('0x3e')],queues[_0x2af889['uniqueid']][_0x17b043('0x40')]),queues[_0x2af889['uniqueid']]['position']=_0x2af889[_0x17b043('0x27')],queues[_0x2af889[_0x17b043('0x4f')]][_0x17b043('0x36')]=_0x2af889[_0x17b043('0x36')],queues[_0x2af889[_0x17b043('0x4f')]][_0x17b043('0x8')]=_0x2af889[_0x17b043('0x8')],queues[_0x2af889['uniqueid']][_0x17b043('0x3d')]=_0x2af889[_0x17b043('0x3d')]);},exports[_0x50c5be('0x3')]=function(_0x2a4cdb){const _0x2cd29d=_0x50c5be;!_[_0x2cd29d('0x14')](queues[_0x2a4cdb[_0x2cd29d('0x4f')]])&&(queues[_0x2a4cdb[_0x2cd29d('0x4f')]][_0x2cd29d('0x24')]=![],queues[_0x2a4cdb[_0x2cd29d('0x4f')]][_0x2cd29d('0x24')]=![],queues[_0x2a4cdb['uniqueid']][_0x2cd29d('0x5')]=null,queues[_0x2a4cdb[_0x2cd29d('0x4f')]][_0x2cd29d('0x1c')]=![],queues[_0x2a4cdb[_0x2cd29d('0x4f')]][_0x2cd29d('0x12')]=null,queues[_0x2a4cdb[_0x2cd29d('0x4f')]][_0x2cd29d('0x46')]=null,queues[_0x2a4cdb[_0x2cd29d('0x4f')]]['assigned']=!![],queues[_0x2a4cdb[_0x2cd29d('0x4f')]][_0x2cd29d('0x2a')]=_0x2a4cdb[_0x2cd29d('0x4b')],queues[_0x2a4cdb[_0x2cd29d('0x4f')]][_0x2cd29d('0xb')]=_0x2a4cdb[_0x2cd29d('0x16')]);},exports[_0x50c5be('0x30')]=function(_0x90dc7a){const _0x39b32d=_0x50c5be;!_[_0x39b32d('0x14')](queues[_0x90dc7a['uniqueid']])&&(queues[_0x90dc7a['uniqueid']][_0x39b32d('0x3e')]&&(queues[_0x90dc7a[_0x39b32d('0x4f')]][_0x39b32d('0x24')]=![],queues[_0x90dc7a['uniqueid']][_0x39b32d('0x24')]=![],queues[_0x90dc7a['uniqueid']]['queuecallerabandonAt']=null,queues[_0x90dc7a[_0x39b32d('0x4f')]][_0x39b32d('0x1c')]=![],queues[_0x90dc7a[_0x39b32d('0x4f')]][_0x39b32d('0x46')]=null,queues[_0x90dc7a['uniqueid']][_0x39b32d('0x39')]=!![],queues[_0x90dc7a[_0x39b32d('0x4f')]][_0x39b32d('0xb')]=_0x90dc7a[_0x39b32d('0x16')],queues[_0x90dc7a['uniqueid']][_0x39b32d('0x34')]=!![],queues[_0x90dc7a[_0x39b32d('0x4f')]][_0x39b32d('0x1e')]=utils[_0x39b32d('0x26')](),_0x90dc7a[_0x39b32d('0x2c')]==_0x39b32d('0x49')?!queues[_0x90dc7a[_0x39b32d('0x4f')]][_0x39b32d('0x49')]&&(queues[_0x90dc7a[_0x39b32d('0x4f')]][_0x39b32d('0x12')]=_0x39b32d('0x4d')):queues[_0x90dc7a[_0x39b32d('0x4f')]][_0x39b32d('0x12')]=_0x39b32d('0x13')+_0x90dc7a[_0x39b32d('0x2c')][_0x39b32d('0x2d')](),writeDB(queues[_0x90dc7a['uniqueid']])));},exports[_0x50c5be('0x51')]=function(_0x522afc){const _0x51c93f=_0x50c5be;!_['isNil'](queues[_0x522afc['transfereeuniqueid']])&&(queues[_0x522afc[_0x51c93f('0x23')]][_0x51c93f('0x49')]=!![],queues[_0x522afc['transfereeuniqueid']][_0x51c93f('0x41')]=_0x51c93f('0x2e'),queues[_0x522afc[_0x51c93f('0x23')]][_0x51c93f('0x35')]=_0x522afc[_0x51c93f('0x33')],queues[_0x522afc[_0x51c93f('0x23')]][_0x51c93f('0x3c')]=_0x522afc[_0x51c93f('0x23')],queues[_0x522afc[_0x51c93f('0x23')]][_0x51c93f('0x12')]='BLINDTRANSFER');},exports[_0x50c5be('0x6')]=function(_0x13f634){const _0x30a6ee=_0x50c5be;try{if(_0x13f634[_0x30a6ee('0xe')]==_0x13f634[_0x30a6ee('0x2')])!_[_0x30a6ee('0x14')](queues[_0x13f634[_0x30a6ee('0x18')]])&&(queues[_0x13f634[_0x30a6ee('0x18')]][_0x30a6ee('0x49')]=!![],queues[_0x13f634['secondtransfererlinkedid']]['transfertype']=_0x30a6ee('0x1d'),queues[_0x13f634[_0x30a6ee('0x18')]][_0x30a6ee('0x35')]=_0x13f634[_0x30a6ee('0xd')],queues[_0x13f634[_0x30a6ee('0x18')]][_0x30a6ee('0x3c')]=_0x13f634[_0x30a6ee('0xe')],queues[_0x13f634[_0x30a6ee('0x18')]][_0x30a6ee('0x12')]='ATTENDEDTRANSFER'),!_[_0x30a6ee('0x14')](queues[_0x13f634[_0x30a6ee('0x2')]])&&(_0x13f634['transfereelinkedid']&&queues[_0x13f634[_0x30a6ee('0x42')]]?(queues[_0x13f634[_0x30a6ee('0x42')]]['queuecallerenterreason']=0x1,queues[_0x13f634[_0x30a6ee('0x23')]]=_[_0x30a6ee('0x48')](queues[_0x13f634[_0x30a6ee('0x42')]]),queues[_0x13f634[_0x30a6ee('0x23')]][_0x30a6ee('0x1a')]=_0x13f634[_0x30a6ee('0x4e')],queues[_0x13f634[_0x30a6ee('0x23')]][_0x30a6ee('0x37')]=0x2,queues[_0x13f634[_0x30a6ee('0x23')]]['calleridnum']=queues[_0x13f634[_0x30a6ee('0x18')]][_0x30a6ee('0x32')],queues[_0x13f634['transfereeuniqueid']][_0x30a6ee('0x29')]=queues[_0x13f634[_0x30a6ee('0x18')]][_0x30a6ee('0x29')],queues[_0x13f634[_0x30a6ee('0x23')]][_0x30a6ee('0x40')]=utils['now'](),queues[_0x13f634[_0x30a6ee('0x23')]]['queuecallerleaveAt']=utils[_0x30a6ee('0x26')](),queues[_0x13f634[_0x30a6ee('0x23')]][_0x30a6ee('0x4c')]=0x0,queues[_0x13f634[_0x30a6ee('0x23')]][_0x30a6ee('0x50')]=0x0):queues[_0x13f634[_0x30a6ee('0x2')]][_0x30a6ee('0x1a')]=_0x13f634[_0x30a6ee('0x18')]);else _0x13f634['secondtransfereruniqueid']==_0x13f634['secondtransfererlinkedid']&&(!_[_0x30a6ee('0x14')](queues[_0x13f634[_0x30a6ee('0x2')]])&&(queues[_0x13f634[_0x30a6ee('0x2')]][_0x30a6ee('0x49')]=!![],queues[_0x13f634[_0x30a6ee('0x2')]][_0x30a6ee('0x41')]=_0x30a6ee('0x1d'),queues[_0x13f634[_0x30a6ee('0x2')]][_0x30a6ee('0x35')]=_0x13f634[_0x30a6ee('0x38')],queues[_0x13f634[_0x30a6ee('0x2')]]['transferuniqueid']=_0x13f634[_0x30a6ee('0x2f')],queues[_0x13f634[_0x30a6ee('0x2')]]['queuecallerexitreason']=_0x30a6ee('0x31')),!_['isNil'](queues[_0x13f634['secondtransfererlinkedid']])&&(_0x13f634[_0x30a6ee('0x17')]&&queues[_0x13f634[_0x30a6ee('0x17')]]?(queues[_0x13f634[_0x30a6ee('0x17')]]['queuecallerenterreason']=0x1,queues[_0x13f634[_0x30a6ee('0x4e')]]=_[_0x30a6ee('0x48')](queues[_0x13f634[_0x30a6ee('0x17')]]),queues[_0x13f634[_0x30a6ee('0x4e')]][_0x30a6ee('0x1a')]=_0x13f634[_0x30a6ee('0x4e')],queues[_0x13f634[_0x30a6ee('0x4e')]]['queuecallerenterreason']=0x2,queues[_0x13f634['transfertargetuniqueid']][_0x30a6ee('0x32')]=queues[_0x13f634[_0x30a6ee('0x2')]][_0x30a6ee('0x32')],queues[_0x13f634[_0x30a6ee('0x4e')]][_0x30a6ee('0x29')]=queues[_0x13f634['origtransfererlinkedid']][_0x30a6ee('0x29')],queues[_0x13f634[_0x30a6ee('0x4e')]][_0x30a6ee('0x40')]=utils[_0x30a6ee('0x26')](),queues[_0x13f634[_0x30a6ee('0x4e')]]['queuecallerleaveAt']=utils[_0x30a6ee('0x26')](),queues[_0x13f634[_0x30a6ee('0x4e')]][_0x30a6ee('0x4c')]=0x0,queues[_0x13f634['transfertargetuniqueid']][_0x30a6ee('0x50')]=0x0):queues[_0x13f634[_0x30a6ee('0x18')]][_0x30a6ee('0x1a')]=_0x13f634['origtransfererlinkedid']));}catch(_0x43799f){utils[_0x30a6ee('0x9')](_0x43799f[_0x30a6ee('0x43')]);}},exports['musiconholdstart']=function(_0x243a6d){const _0x2a5b1a=_0x50c5be;!_['isNil'](queues[_0x243a6d[_0x2a5b1a('0x4f')]])&&(queues[_0x243a6d[_0x2a5b1a('0x4f')]][_0x2a5b1a('0x47')]=utils[_0x2a5b1a('0x26')]());},exports[_0x50c5be('0x28')]=function(_0x2ac84a){const _0x381234=_0x50c5be;!_[_0x381234('0x14')](queues[_0x2ac84a[_0x381234('0x4f')]])&&(!_[_0x381234('0x14')](queues[_0x2ac84a[_0x381234('0x4f')]][_0x381234('0x47')])&&(queues[_0x2ac84a[_0x381234('0x4f')]][_0x381234('0x50')]+=utils[_0x381234('0x45')](utils[_0x381234('0x26')](),queues[_0x2ac84a[_0x381234('0x4f')]][_0x381234('0x47')]),delete queues[_0x2ac84a['uniqueid']][_0x381234('0x47')]));}; \ No newline at end of file +const a1227_0x3718=['queuecallerexitreason','calleridnum','connectedlinenum','ATTENDED','transferuniqueid','lodash','queueposition','queuecallercomplete','diffTime','then','secondtransfererexten','request','queuecallerexit','agentconnect','mohtime','type','agentcomplete','reason','queuecallerabandonAt','TRANSFER','value','transfertype','queuecallerjoinAt','BLINDTRANSFER','queue','secondtransfereruniqueid','isNil','transfereelinkedid','now','secondtransfererlinkedid','extension','holdtime','toUpperCase','getVoiceQueueByName','musiconholdstartAt','COMPLETEDBYAGENT','assign','position','origtransfererlinkedid','transfertargetlinkedid','./utils','clone','COMPLETEDBY','error','queuecallerleaveAt','blindtransfer','calleridname','BLIND','transfertargetuniqueid','transfereduniqueid','attendedtransfer','queuecallercompleteAt','connectedlinename','stack','varset','lastAssignedTo','queuecallerenterreason','queuecallerleave','musiconholdstop','QUEUE|%s|%s|%s|%s|%s|%s|%s','count','ABANDONED','queuecallerexitAt','CreateVoiceQueueReport','queuecallerabandon','destaccountcode','ATTENDEDTRANSFER','membername','hangup','variable','queuecallerjoin','uniqueid','origtransfereruniqueid','transfereeuniqueid','transferexten','assigned','format','transfer','info'];(function(_0x2e84cc,_0x371839){const _0x39597c=function(_0x1f19f1){while(--_0x1f19f1){_0x2e84cc['push'](_0x2e84cc['shift']());}};_0x39597c(++_0x371839);}(a1227_0x3718,0xd8));const a1227_0x3959=function(_0x2e84cc,_0x371839){_0x2e84cc=_0x2e84cc-0x0;let _0x39597c=a1227_0x3718[_0x2e84cc];return _0x39597c;};const _0x573ca5=a1227_0x3959;'use strict';const _=require(_0x573ca5('0x1a')),util=require('util'),utils=require(_0x573ca5('0x3d')),queues={};function writeDB(_0x1f19f1){const _0x21e74b=_0x573ca5;utils[_0x21e74b('0x14')](util[_0x21e74b('0x12')](_0x21e74b('0x1'),_0x1f19f1[_0x21e74b('0xd')],_0x1f19f1['channel'],_0x1f19f1[_0x21e74b('0x2d')],_0x1f19f1['lastAssignedTo'],_0x1f19f1[_0x21e74b('0x16')],_0x1f19f1['accountcode'],_0x1f19f1[_0x21e74b('0x15')])),_0x1f19f1[_0x21e74b('0x2d')]?utils[_0x21e74b('0x36')](_0x1f19f1[_0x21e74b('0x2d')])[_0x21e74b('0x1e')](function(_0x45d0be){const _0x2d50a4=_0x21e74b;_0x45d0be&&(_0x1f19f1[_0x2d50a4('0x24')]=_0x45d0be['type']),utils[_0x2d50a4('0x20')](_0x2d50a4('0x5'),_0x1f19f1);}):utils['request'](_0x21e74b('0x5'),_0x1f19f1),_0x1f19f1[_0x21e74b('0x46')]?delete queues[_0x1f19f1[_0x21e74b('0x46')]]:delete queues[_0x1f19f1[_0x21e74b('0xd')]];}exports[_0x573ca5('0xc')]=function(_0x2b394d){const _0xffb6e8=_0x573ca5;queues[_0x2b394d[_0xffb6e8('0xd')]]=_[_0xffb6e8('0x39')](_0x2b394d,{'originalposition':_0x2b394d[_0xffb6e8('0x3a')],'queuecallerjoinAt':utils[_0xffb6e8('0x31')](),'mohtime':0x0});},exports[_0x573ca5('0xa')]=function(_0xc2cd34){const _0x22efc4=_0x573ca5;!_[_0x22efc4('0x2f')](queues[_0xc2cd34[_0x22efc4('0xd')]])&&(queues[_0xc2cd34['uniqueid']][_0x22efc4('0x41')]?(!queues[_0xc2cd34[_0x22efc4('0xd')]]['queuecallerabandon']&&!queues[_0xc2cd34[_0x22efc4('0xd')]][_0x22efc4('0x21')]&&(queues[_0xc2cd34[_0x22efc4('0xd')]][_0x22efc4('0x1c')]=!![],queues[_0xc2cd34[_0x22efc4('0xd')]][_0x22efc4('0x48')]=utils[_0x22efc4('0x31')](),queues[_0xc2cd34[_0x22efc4('0xd')]][_0x22efc4('0x15')]=_0x22efc4('0x38')),writeDB(queues[_0xc2cd34['uniqueid']])):queues[_0xc2cd34[_0x22efc4('0xd')]][_0x22efc4('0x46')]&&(queues[queues[_0xc2cd34[_0x22efc4('0xd')]][_0x22efc4('0x46')]]=queues[_0xc2cd34[_0x22efc4('0xd')]],queues[queues[_0xc2cd34[_0x22efc4('0xd')]][_0x22efc4('0x46')]][_0x22efc4('0x4d')]=0x2,delete queues[_0xc2cd34[_0x22efc4('0xd')]]));},exports[_0x573ca5('0x4b')]=function(_0x187b25){const _0xeb632=_0x573ca5;if(!_['isNil'](_0x187b25['variable']['queuestatus'])&&_0x187b25[_0xeb632('0x29')][_0xeb632('0x35')]()!=='CONTINUE')!_[_0xeb632('0x2f')](queues[_0x187b25[_0xeb632('0xd')]])&&(queues[_0x187b25['uniqueid']][_0xeb632('0x6')]=![],queues[_0x187b25[_0xeb632('0xd')]]['queuecallerabandonAt']=null,queues[_0x187b25[_0xeb632('0xd')]]['queuecallerexit']=!![],queues[_0x187b25[_0xeb632('0xd')]][_0xeb632('0x4')]=utils[_0xeb632('0x31')](),queues[_0x187b25[_0xeb632('0xd')]][_0xeb632('0x15')]=_0x187b25['value'][_0xeb632('0x35')](),writeDB(queues[_0x187b25[_0xeb632('0xd')]]));else!_[_0xeb632('0x2f')](_0x187b25[_0xeb632('0xb')][_0xeb632('0x1b')])&&(!_['isNil'](queues[_0x187b25[_0xeb632('0xd')]])&&!queues[_0x187b25[_0xeb632('0xd')]][_0xeb632('0x6')]&&(queues[_0x187b25[_0xeb632('0xd')]][_0xeb632('0x6')]=![],queues[_0x187b25['uniqueid']][_0xeb632('0x27')]=null,queues[_0x187b25['uniqueid']][_0xeb632('0x21')]=!![],queues[_0x187b25[_0xeb632('0xd')]][_0xeb632('0x4')]=utils[_0xeb632('0x31')](),queues[_0x187b25[_0xeb632('0xd')]][_0xeb632('0x15')]='EXITWITHKEY'));},exports[_0x573ca5('0x6')]=function(_0x5a3b3b){const _0x184af7=_0x573ca5;!_[_0x184af7('0x2f')](queues[_0x5a3b3b[_0x184af7('0xd')]])&&(queues[_0x5a3b3b[_0x184af7('0xd')]][_0x184af7('0x21')]=![],queues[_0x5a3b3b[_0x184af7('0xd')]][_0x184af7('0x4')]=null,queues[_0x5a3b3b[_0x184af7('0xd')]][_0x184af7('0x6')]=!![],queues[_0x5a3b3b['uniqueid']][_0x184af7('0x27')]=utils[_0x184af7('0x31')](),queues[_0x5a3b3b[_0x184af7('0xd')]][_0x184af7('0x15')]=_0x184af7('0x3'));},exports[_0x573ca5('0x4e')]=function(_0x424215){const _0x32b77c=_0x573ca5;!_[_0x32b77c('0x2f')](queues[_0x424215[_0x32b77c('0xd')]])&&(queues[_0x424215[_0x32b77c('0xd')]][_0x32b77c('0x4e')]=!![],queues[_0x424215[_0x32b77c('0xd')]][_0x32b77c('0x41')]=utils[_0x32b77c('0x31')](),queues[_0x424215[_0x32b77c('0xd')]][_0x32b77c('0x34')]=utils[_0x32b77c('0x1d')](queues[_0x424215['uniqueid']]['queuecallerleaveAt'],queues[_0x424215[_0x32b77c('0xd')]][_0x32b77c('0x2b')]),queues[_0x424215[_0x32b77c('0xd')]][_0x32b77c('0x3a')]=_0x424215[_0x32b77c('0x3a')],queues[_0x424215[_0x32b77c('0xd')]]['count']=_0x424215[_0x32b77c('0x2')],queues[_0x424215[_0x32b77c('0xd')]][_0x32b77c('0x17')]=_0x424215[_0x32b77c('0x17')],queues[_0x424215[_0x32b77c('0xd')]][_0x32b77c('0x49')]=_0x424215[_0x32b77c('0x49')]);},exports[_0x573ca5('0x22')]=function(_0x1ab079){const _0x911bf2=_0x573ca5;!_['isNil'](queues[_0x1ab079[_0x911bf2('0xd')]])&&(queues[_0x1ab079['uniqueid']][_0x911bf2('0x6')]=![],queues[_0x1ab079[_0x911bf2('0xd')]][_0x911bf2('0x6')]=![],queues[_0x1ab079['uniqueid']]['queuecallerabandonAt']=null,queues[_0x1ab079[_0x911bf2('0xd')]][_0x911bf2('0x21')]=![],queues[_0x1ab079[_0x911bf2('0xd')]][_0x911bf2('0x15')]=null,queues[_0x1ab079[_0x911bf2('0xd')]][_0x911bf2('0x4')]=null,queues[_0x1ab079['uniqueid']][_0x911bf2('0x11')]=!![],queues[_0x1ab079['uniqueid']]['accountcode']=_0x1ab079[_0x911bf2('0x7')],queues[_0x1ab079[_0x911bf2('0xd')]]['lastAssignedTo']=_0x1ab079['membername']);},exports[_0x573ca5('0x25')]=function(_0x48d691){const _0x21f77c=_0x573ca5;!_[_0x21f77c('0x2f')](queues[_0x48d691[_0x21f77c('0xd')]])&&(queues[_0x48d691['uniqueid']][_0x21f77c('0x41')]&&(queues[_0x48d691['uniqueid']][_0x21f77c('0x6')]=![],queues[_0x48d691['uniqueid']]['queuecallerabandon']=![],queues[_0x48d691[_0x21f77c('0xd')]][_0x21f77c('0x27')]=null,queues[_0x48d691[_0x21f77c('0xd')]]['queuecallerexit']=![],queues[_0x48d691[_0x21f77c('0xd')]]['queuecallerexitAt']=null,queues[_0x48d691[_0x21f77c('0xd')]][_0x21f77c('0x11')]=!![],queues[_0x48d691[_0x21f77c('0xd')]][_0x21f77c('0x4c')]=_0x48d691[_0x21f77c('0x9')],queues[_0x48d691[_0x21f77c('0xd')]]['queuecallercomplete']=!![],queues[_0x48d691['uniqueid']]['queuecallercompleteAt']=utils[_0x21f77c('0x31')](),_0x48d691[_0x21f77c('0x26')]=='transfer'?!queues[_0x48d691[_0x21f77c('0xd')]][_0x21f77c('0x13')]&&(queues[_0x48d691[_0x21f77c('0xd')]]['queuecallerexitreason']=_0x21f77c('0x28')):queues[_0x48d691[_0x21f77c('0xd')]][_0x21f77c('0x15')]=_0x21f77c('0x3f')+_0x48d691['reason'][_0x21f77c('0x35')](),writeDB(queues[_0x48d691[_0x21f77c('0xd')]])));},exports[_0x573ca5('0x42')]=function(_0x5c8698){const _0x4e66a1=_0x573ca5;!_[_0x4e66a1('0x2f')](queues[_0x5c8698[_0x4e66a1('0xf')]])&&(queues[_0x5c8698['transfereeuniqueid']][_0x4e66a1('0x13')]=!![],queues[_0x5c8698[_0x4e66a1('0xf')]][_0x4e66a1('0x2a')]=_0x4e66a1('0x44'),queues[_0x5c8698[_0x4e66a1('0xf')]][_0x4e66a1('0x10')]=_0x5c8698[_0x4e66a1('0x33')],queues[_0x5c8698[_0x4e66a1('0xf')]][_0x4e66a1('0x19')]=_0x5c8698[_0x4e66a1('0xf')],queues[_0x5c8698[_0x4e66a1('0xf')]]['queuecallerexitreason']=_0x4e66a1('0x2c'));},exports[_0x573ca5('0x47')]=function(_0x16f6b1){const _0xba6da0=_0x573ca5;try{if(_0x16f6b1[_0xba6da0('0xe')]==_0x16f6b1[_0xba6da0('0x3b')])!_['isNil'](queues[_0x16f6b1[_0xba6da0('0x32')]])&&(queues[_0x16f6b1['secondtransfererlinkedid']][_0xba6da0('0x13')]=!![],queues[_0x16f6b1[_0xba6da0('0x32')]]['transfertype']=_0xba6da0('0x18'),queues[_0x16f6b1[_0xba6da0('0x32')]][_0xba6da0('0x10')]=_0x16f6b1['origtransfererexten'],queues[_0x16f6b1['secondtransfererlinkedid']][_0xba6da0('0x19')]=_0x16f6b1[_0xba6da0('0xe')],queues[_0x16f6b1[_0xba6da0('0x32')]][_0xba6da0('0x15')]=_0xba6da0('0x8')),!_[_0xba6da0('0x2f')](queues[_0x16f6b1[_0xba6da0('0x3b')]])&&(_0x16f6b1[_0xba6da0('0x30')]&&queues[_0x16f6b1[_0xba6da0('0x30')]]?(queues[_0x16f6b1['transfereelinkedid']][_0xba6da0('0x4d')]=0x1,queues[_0x16f6b1['transfereeuniqueid']]=_[_0xba6da0('0x3e')](queues[_0x16f6b1[_0xba6da0('0x30')]]),queues[_0x16f6b1[_0xba6da0('0xf')]]['transfereduniqueid']=_0x16f6b1['transfertargetuniqueid'],queues[_0x16f6b1[_0xba6da0('0xf')]]['queuecallerenterreason']=0x2,queues[_0x16f6b1[_0xba6da0('0xf')]]['calleridnum']=queues[_0x16f6b1['secondtransfererlinkedid']][_0xba6da0('0x16')],queues[_0x16f6b1['transfereeuniqueid']][_0xba6da0('0x43')]=queues[_0x16f6b1[_0xba6da0('0x32')]]['calleridname'],queues[_0x16f6b1['transfereeuniqueid']]['queuecallerjoinAt']=utils[_0xba6da0('0x31')](),queues[_0x16f6b1[_0xba6da0('0xf')]][_0xba6da0('0x41')]=utils[_0xba6da0('0x31')](),queues[_0x16f6b1[_0xba6da0('0xf')]]['holdtime']=0x0,queues[_0x16f6b1[_0xba6da0('0xf')]]['mohtime']=0x0):queues[_0x16f6b1['origtransfererlinkedid']][_0xba6da0('0x46')]=_0x16f6b1[_0xba6da0('0x32')]);else _0x16f6b1[_0xba6da0('0x2e')]==_0x16f6b1[_0xba6da0('0x32')]&&(!_[_0xba6da0('0x2f')](queues[_0x16f6b1['origtransfererlinkedid']])&&(queues[_0x16f6b1[_0xba6da0('0x3b')]][_0xba6da0('0x13')]=!![],queues[_0x16f6b1['origtransfererlinkedid']]['transfertype']=_0xba6da0('0x18'),queues[_0x16f6b1['origtransfererlinkedid']][_0xba6da0('0x10')]=_0x16f6b1[_0xba6da0('0x1f')],queues[_0x16f6b1[_0xba6da0('0x3b')]][_0xba6da0('0x19')]=_0x16f6b1['secondtransfereruniqueid'],queues[_0x16f6b1[_0xba6da0('0x3b')]][_0xba6da0('0x15')]=_0xba6da0('0x8')),!_['isNil'](queues[_0x16f6b1[_0xba6da0('0x32')]])&&(_0x16f6b1['transfertargetlinkedid']&&queues[_0x16f6b1['transfertargetlinkedid']]?(queues[_0x16f6b1[_0xba6da0('0x3c')]][_0xba6da0('0x4d')]=0x1,queues[_0x16f6b1[_0xba6da0('0x45')]]=_[_0xba6da0('0x3e')](queues[_0x16f6b1['transfertargetlinkedid']]),queues[_0x16f6b1['transfertargetuniqueid']][_0xba6da0('0x46')]=_0x16f6b1[_0xba6da0('0x45')],queues[_0x16f6b1[_0xba6da0('0x45')]][_0xba6da0('0x4d')]=0x2,queues[_0x16f6b1['transfertargetuniqueid']][_0xba6da0('0x16')]=queues[_0x16f6b1['origtransfererlinkedid']][_0xba6da0('0x16')],queues[_0x16f6b1[_0xba6da0('0x45')]][_0xba6da0('0x43')]=queues[_0x16f6b1[_0xba6da0('0x3b')]]['calleridname'],queues[_0x16f6b1[_0xba6da0('0x45')]]['queuecallerjoinAt']=utils['now'](),queues[_0x16f6b1[_0xba6da0('0x45')]]['queuecallerleaveAt']=utils[_0xba6da0('0x31')](),queues[_0x16f6b1['transfertargetuniqueid']][_0xba6da0('0x34')]=0x0,queues[_0x16f6b1['transfertargetuniqueid']]['mohtime']=0x0):queues[_0x16f6b1[_0xba6da0('0x32')]][_0xba6da0('0x46')]=_0x16f6b1[_0xba6da0('0x3b')]));}catch(_0x5a35f8){utils[_0xba6da0('0x40')](_0x5a35f8[_0xba6da0('0x4a')]);}},exports['musiconholdstart']=function(_0xe52499){const _0x3b45c5=_0x573ca5;!_['isNil'](queues[_0xe52499['uniqueid']])&&(queues[_0xe52499[_0x3b45c5('0xd')]][_0x3b45c5('0x37')]=utils[_0x3b45c5('0x31')]());},exports[_0x573ca5('0x0')]=function(_0x56def4){const _0x33ab39=_0x573ca5;!_[_0x33ab39('0x2f')](queues[_0x56def4[_0x33ab39('0xd')]])&&(!_[_0x33ab39('0x2f')](queues[_0x56def4[_0x33ab39('0xd')]][_0x33ab39('0x37')])&&(queues[_0x56def4[_0x33ab39('0xd')]][_0x33ab39('0x23')]+=utils[_0x33ab39('0x1d')](utils[_0x33ab39('0x31')](),queues[_0x56def4[_0x33ab39('0xd')]][_0x33ab39('0x37')]),delete queues[_0x56def4[_0x33ab39('0xd')]]['musiconholdstartAt']));}; \ No newline at end of file diff --git a/server/services/xdr/recordings.controller.js b/server/services/xdr/recordings.controller.js index edba286..e43dfd9 100644 --- a/server/services/xdr/recordings.controller.js +++ b/server/services/xdr/recordings.controller.js @@ -1 +1 @@ -const a1226_0x300e=['application','getUserByInternal','membername','channel','forEach','debug','monitors','push','substring','appdata','isNil','linkedid','queue','name','type','outbound','uniqueid','channelstate','context','connectedlinenum','endsWith','.wav49','calleridname','stack','cdr','request','accountcode','./utils','error','toLowerCase','newexten','split','newchannel','mixmonitor_filename','UserId','lodash','calleridnum','exten','CreateVoiceRecording','queuecallerjoin','transfer','variable','varset','value','startsWith','connectedlinename','newstate','lastIndexOf'];(function(_0x2b6a28,_0x300e18){const _0x105e46=function(_0x6fd200){while(--_0x6fd200){_0x2b6a28['push'](_0x2b6a28['shift']());}};_0x105e46(++_0x300e18);}(a1226_0x300e,0x178));const a1226_0x105e=function(_0x2b6a28,_0x300e18){_0x2b6a28=_0x2b6a28-0x0;let _0x105e46=a1226_0x300e[_0x2b6a28];return _0x105e46;};const _0x145ec8=a1226_0x105e;'use strict';const _=require(_0x145ec8('0x2b')),utils=require(_0x145ec8('0x23')),recordings={};function writeDB(_0x6fd200){const _0x118d49=_0x145ec8;utils[_0x118d49('0xd')](_0x6fd200),_0x6fd200[_0x118d49('0x22')]?utils[_0x118d49('0x9')](_0x6fd200[_0x118d49('0x22')])['then'](function(_0x5848f5){const _0x19dc01=_0x118d49;_0x5848f5&&(_0x6fd200[_0x19dc01('0xa')]=_0x5848f5[_0x19dc01('0x15')],_0x6fd200[_0x19dc01('0x2a')]=_0x5848f5['id']),utils[_0x19dc01('0x21')](_0x19dc01('0x2e'),_0x6fd200);}):utils[_0x118d49('0x21')](_0x118d49('0x2e'),_0x6fd200);}exports[_0x145ec8('0x28')]=function(_0x329932){const _0x37ab67=_0x145ec8;try{_0x329932[_0x37ab67('0x18')]==_0x329932['linkedid']&&(recordings[_0x329932['uniqueid']]={'uniqueid':_0x329932[_0x37ab67('0x18')],'accountcode':_0x329932[_0x37ab67('0x22')],'exten':_0x329932[_0x37ab67('0x2d')],'context':_0x329932[_0x37ab67('0x1a')],'channel':_0x329932[_0x37ab67('0xb')],'monitors':[]});}catch(_0x1035e4){utils['error'](_0x1035e4[_0x37ab67('0x1f')]);}},exports[_0x145ec8('0x6')]=function(_0xd1f12){const _0x1aa891=_0x145ec8;try{if(!_[_0x1aa891('0x12')](recordings[_0xd1f12[_0x1aa891('0x18')]])&&_0xd1f12[_0x1aa891('0x19')]==0x6){}else!_['isNil'](recordings[_0xd1f12[_0x1aa891('0x13')]])&&_0xd1f12[_0x1aa891('0x19')]==0x6&&_0xd1f12[_0x1aa891('0x1a')]!=_0x1aa891('0x0')&&(recordings[_0xd1f12[_0x1aa891('0x13')]][_0x1aa891('0x22')]=_0xd1f12[_0x1aa891('0x22')]);}catch(_0x3a076e){utils['error'](_0x3a076e[_0x1aa891('0x1f')]);}},exports[_0x145ec8('0x2')]=function(_0x79430f){const _0xb64c3e=_0x145ec8;try{if(!_[_0xb64c3e('0x12')](_0x79430f['variable'])&&!_['isNil'](_0x79430f[_0xb64c3e('0x1')][_0xb64c3e('0x29')])){_[_0xb64c3e('0x1c')](_0x79430f[_0xb64c3e('0x3')],_0xb64c3e('0x1d'))&&(_0x79430f[_0xb64c3e('0x3')]=_0x79430f[_0xb64c3e('0x3')]['replace']('.wav49','.WAV'));if(recordings[_0x79430f[_0xb64c3e('0x13')]]){const _0x326089=_['find'](recordings[_0x79430f[_0xb64c3e('0x13')]]['monitors'],{'value':_0x79430f[_0xb64c3e('0x3')]});_[_0xb64c3e('0x12')](_0x326089)&&recordings[_0x79430f[_0xb64c3e('0x13')]][_0xb64c3e('0xe')][_0xb64c3e('0xf')]({'value':_0x79430f[_0xb64c3e('0x3')]});}}}catch(_0x501d22){utils['error'](_0x501d22['stack']);}},exports['hangup']=function(_0x124aa7){const _0x4d4ffa=_0x145ec8;try{!_['isNil'](recordings[_0x124aa7['uniqueid']])&&(recordings[_0x124aa7[_0x4d4ffa('0x18')]][_0x4d4ffa('0x2c')]=_0x124aa7[_0x4d4ffa('0x2c')],recordings[_0x124aa7[_0x4d4ffa('0x18')]]['calleridname']=_0x124aa7[_0x4d4ffa('0x1e')],recordings[_0x124aa7['uniqueid']]['connectedlinenum']=_0x124aa7[_0x4d4ffa('0x1b')],recordings[_0x124aa7[_0x4d4ffa('0x18')]][_0x4d4ffa('0x5')]=_0x124aa7[_0x4d4ffa('0x5')],recordings[_0x124aa7['uniqueid']][_0x4d4ffa('0x16')]==_0x4d4ffa('0x17')&&recordings[_0x124aa7[_0x4d4ffa('0x18')]][_0x4d4ffa('0x22')]&&(recordings[_0x124aa7[_0x4d4ffa('0x18')]][_0x4d4ffa('0x1b')]=recordings[_0x124aa7[_0x4d4ffa('0x18')]][_0x4d4ffa('0x22')],recordings[_0x124aa7[_0x4d4ffa('0x18')]][_0x4d4ffa('0x5')]=''),recordings[_0x124aa7[_0x4d4ffa('0x18')]][_0x4d4ffa('0xe')][_0x4d4ffa('0xc')](_0x5f5907=>{const _0x13b855=_0x4d4ffa,_0xdc0a27=_['clone'](recordings[_0x124aa7[_0x13b855('0x18')]]);_0xdc0a27[_0x13b855('0x3')]=_0x5f5907[_0x13b855('0x3')],writeDB(_0xdc0a27);}),delete recordings[_0x124aa7[_0x4d4ffa('0x18')]]);}catch(_0x4637a3){utils['error'](_0x4637a3[_0x4d4ffa('0x1f')]);}},exports[_0x145ec8('0x26')]=function(_0x4c935f){const _0x2ba084=_0x145ec8;try{if(!_[_0x2ba084('0x12')](recordings[_0x4c935f['uniqueid']])){if(_0x4c935f[_0x2ba084('0x8')]['toLowerCase']()=='set'&&_[_0x2ba084('0x4')](_0x4c935f[_0x2ba084('0x11')][_0x2ba084('0x25')](),_0x2ba084('0x20'))){const _0x51f581=_0x4c935f[_0x2ba084('0x11')][_0x2ba084('0x27')]('='),_0x3fdc8c=_0x51f581[0x0][_0x2ba084('0x10')](_0x51f581[0x0][_0x2ba084('0x7')]('(')+0x1,_0x51f581[0x0]['lastIndexOf'](')')),_0x4c9bd0=_0x51f581[0x1];recordings[_0x4c935f['uniqueid']][_0x3fdc8c]=_0x4c9bd0;}}}catch(_0x47b134){utils[_0x2ba084('0x24')](_0x47b134[_0x2ba084('0x1f')]);}},exports[_0x145ec8('0x2f')]=function(_0x34c175){const _0x3516a3=_0x145ec8;try{!_[_0x3516a3('0x12')](recordings[_0x34c175['uniqueid']])&&(recordings[_0x34c175['uniqueid']][_0x3516a3('0x14')]=_0x34c175[_0x3516a3('0x14')]);}catch(_0x531f95){utils[_0x3516a3('0x24')](_0x531f95[_0x3516a3('0x1f')]);}}; \ No newline at end of file +const a1228_0x512b=['calleridname','request','hangup','linkedid','channelstate','application','UserId','CreateVoiceRecording','appdata','newchannel','connectedlinenum','type','variable','uniqueid','value','cdr','exten','monitors','queue','clone','startsWith','replace','endsWith','error','accountcode','./utils','isNil','varset','mixmonitor_filename','then','outbound','lodash','calleridnum','debug','membername','set','stack','getUserByInternal','queuecallerjoin','.wav49','name','context','.WAV','toLowerCase','connectedlinename','substring','lastIndexOf','find','transfer'];(function(_0x2c20a5,_0x512b63){const _0x4ba999=function(_0x4ca219){while(--_0x4ca219){_0x2c20a5['push'](_0x2c20a5['shift']());}};_0x4ba999(++_0x512b63);}(a1228_0x512b,0x9e));const a1228_0x4ba9=function(_0x2c20a5,_0x512b63){_0x2c20a5=_0x2c20a5-0x0;let _0x4ba999=a1228_0x512b[_0x2c20a5];return _0x4ba999;};const _0x17bf11=a1228_0x4ba9;'use strict';const _=require(_0x17bf11('0x14')),utils=require(_0x17bf11('0xe')),recordings={};function writeDB(_0x4ca219){const _0x3091ee=_0x17bf11;utils[_0x3091ee('0x16')](_0x4ca219),_0x4ca219[_0x3091ee('0xd')]?utils[_0x3091ee('0x1a')](_0x4ca219[_0x3091ee('0xd')])[_0x3091ee('0x12')](function(_0x47115b){const _0x3d5e7e=_0x3091ee;_0x47115b&&(_0x4ca219[_0x3d5e7e('0x17')]=_0x47115b[_0x3d5e7e('0x1d')],_0x4ca219[_0x3d5e7e('0x2c')]=_0x47115b['id']),utils[_0x3d5e7e('0x27')](_0x3d5e7e('0x2d'),_0x4ca219);}):utils['request'](_0x3091ee('0x2d'),_0x4ca219);}exports[_0x17bf11('0x2f')]=function(_0xdf662c){const _0x26471f=_0x17bf11;try{_0xdf662c[_0x26471f('0x2')]==_0xdf662c['linkedid']&&(recordings[_0xdf662c[_0x26471f('0x2')]]={'uniqueid':_0xdf662c['uniqueid'],'accountcode':_0xdf662c[_0x26471f('0xd')],'exten':_0xdf662c[_0x26471f('0x5')],'context':_0xdf662c['context'],'channel':_0xdf662c['channel'],'monitors':[]});}catch(_0x13e117){utils[_0x26471f('0xc')](_0x13e117['stack']);}},exports['newstate']=function(_0x5369f7){const _0x54e9d4=_0x17bf11;try{if(!_[_0x54e9d4('0xf')](recordings[_0x5369f7['uniqueid']])&&_0x5369f7[_0x54e9d4('0x2a')]==0x6){}else!_[_0x54e9d4('0xf')](recordings[_0x5369f7[_0x54e9d4('0x29')]])&&_0x5369f7[_0x54e9d4('0x2a')]==0x6&&_0x5369f7[_0x54e9d4('0x1e')]!=_0x54e9d4('0x25')&&(recordings[_0x5369f7[_0x54e9d4('0x29')]][_0x54e9d4('0xd')]=_0x5369f7[_0x54e9d4('0xd')]);}catch(_0x56bca8){utils['error'](_0x56bca8[_0x54e9d4('0x19')]);}},exports[_0x17bf11('0x10')]=function(_0x1a53bd){const _0x49faaa=_0x17bf11;try{if(!_[_0x49faaa('0xf')](_0x1a53bd[_0x49faaa('0x1')])&&!_['isNil'](_0x1a53bd[_0x49faaa('0x1')][_0x49faaa('0x11')])){_[_0x49faaa('0xb')](_0x1a53bd[_0x49faaa('0x3')],_0x49faaa('0x1c'))&&(_0x1a53bd[_0x49faaa('0x3')]=_0x1a53bd[_0x49faaa('0x3')][_0x49faaa('0xa')]('.wav49',_0x49faaa('0x1f')));if(recordings[_0x1a53bd[_0x49faaa('0x29')]]){const _0x8a9fd1=_[_0x49faaa('0x24')](recordings[_0x1a53bd[_0x49faaa('0x29')]][_0x49faaa('0x6')],{'value':_0x1a53bd[_0x49faaa('0x3')]});_[_0x49faaa('0xf')](_0x8a9fd1)&&recordings[_0x1a53bd[_0x49faaa('0x29')]][_0x49faaa('0x6')]['push']({'value':_0x1a53bd[_0x49faaa('0x3')]});}}}catch(_0x578e32){utils['error'](_0x578e32[_0x49faaa('0x19')]);}},exports[_0x17bf11('0x28')]=function(_0x46ee85){const _0x1b22e0=_0x17bf11;try{!_[_0x1b22e0('0xf')](recordings[_0x46ee85[_0x1b22e0('0x2')]])&&(recordings[_0x46ee85['uniqueid']]['calleridnum']=_0x46ee85[_0x1b22e0('0x15')],recordings[_0x46ee85[_0x1b22e0('0x2')]]['calleridname']=_0x46ee85[_0x1b22e0('0x26')],recordings[_0x46ee85[_0x1b22e0('0x2')]][_0x1b22e0('0x30')]=_0x46ee85['connectedlinenum'],recordings[_0x46ee85['uniqueid']][_0x1b22e0('0x21')]=_0x46ee85['connectedlinename'],recordings[_0x46ee85[_0x1b22e0('0x2')]][_0x1b22e0('0x0')]==_0x1b22e0('0x13')&&recordings[_0x46ee85[_0x1b22e0('0x2')]][_0x1b22e0('0xd')]&&(recordings[_0x46ee85['uniqueid']][_0x1b22e0('0x30')]=recordings[_0x46ee85[_0x1b22e0('0x2')]][_0x1b22e0('0xd')],recordings[_0x46ee85[_0x1b22e0('0x2')]][_0x1b22e0('0x21')]=''),recordings[_0x46ee85[_0x1b22e0('0x2')]][_0x1b22e0('0x6')]['forEach'](_0x2aa422=>{const _0x5bd8ec=_0x1b22e0,_0xabb6f9=_[_0x5bd8ec('0x8')](recordings[_0x46ee85[_0x5bd8ec('0x2')]]);_0xabb6f9[_0x5bd8ec('0x3')]=_0x2aa422[_0x5bd8ec('0x3')],writeDB(_0xabb6f9);}),delete recordings[_0x46ee85[_0x1b22e0('0x2')]]);}catch(_0x3f41a3){utils['error'](_0x3f41a3[_0x1b22e0('0x19')]);}},exports['newexten']=function(_0xe92e7a){const _0xfd61f3=_0x17bf11;try{if(!_['isNil'](recordings[_0xe92e7a[_0xfd61f3('0x2')]])){if(_0xe92e7a[_0xfd61f3('0x2b')][_0xfd61f3('0x20')]()==_0xfd61f3('0x18')&&_[_0xfd61f3('0x9')](_0xe92e7a[_0xfd61f3('0x2e')]['toLowerCase'](),_0xfd61f3('0x4'))){const _0x1cb1cb=_0xe92e7a[_0xfd61f3('0x2e')]['split']('='),_0x7b6183=_0x1cb1cb[0x0][_0xfd61f3('0x22')](_0x1cb1cb[0x0][_0xfd61f3('0x23')]('(')+0x1,_0x1cb1cb[0x0][_0xfd61f3('0x23')](')')),_0x5df4ce=_0x1cb1cb[0x1];recordings[_0xe92e7a[_0xfd61f3('0x2')]][_0x7b6183]=_0x5df4ce;}}}catch(_0x18de78){utils[_0xfd61f3('0xc')](_0x18de78[_0xfd61f3('0x19')]);}},exports[_0x17bf11('0x1b')]=function(_0x2916df){const _0x5c7a4b=_0x17bf11;try{!_['isNil'](recordings[_0x2916df[_0x5c7a4b('0x2')]])&&(recordings[_0x2916df[_0x5c7a4b('0x2')]]['queue']=_0x2916df[_0x5c7a4b('0x7')]);}catch(_0x2e8c1f){utils[_0x5c7a4b('0xc')](_0x2e8c1f[_0x5c7a4b('0x19')]);}}; \ No newline at end of file diff --git a/server/services/xdr/transfers.controller.js b/server/services/xdr/transfers.controller.js index 12e9ff9..cad704b 100644 --- a/server/services/xdr/transfers.controller.js +++ b/server/services/xdr/transfers.controller.js @@ -1 +1 @@ -const a1227_0x7ea0=['transfertargetconnectedlinenum','transfereechannel','secondtransfererexten','secondtransfererconnectedlinename','transfertargetcontext','util','blindtransfer','type','format','transfertargetchannel','transfertargetexten','error','blind','assign','transfertargetcalleridname','secondtransfererconnectedlinenum','isNil','CreateVoiceTransferReport','TRANSFER|%s','transfertargetaccountcode','stack','lodash','origtransfererchannel','origtransferercontext','secondtransferercontext'];(function(_0x35aac0,_0x7ea085){const _0x5060a9=function(_0x2e5e15){while(--_0x2e5e15){_0x35aac0['push'](_0x35aac0['shift']());}};_0x5060a9(++_0x7ea085);}(a1227_0x7ea0,0x68));const a1227_0x5060=function(_0x35aac0,_0x7ea085){_0x35aac0=_0x35aac0-0x0;let _0x5060a9=a1227_0x7ea0[_0x35aac0];return _0x5060a9;};const _0x524dbe=a1227_0x5060;'use strict';const _=require(_0x524dbe('0x11')),util=require(_0x524dbe('0x1')),utils=require('./utils');function writeDB(_0x2e5e15){const _0x2fb9f6=_0x524dbe;utils['info'](util[_0x2fb9f6('0x4')](_0x2fb9f6('0xe'),_0x2e5e15[_0x2fb9f6('0x3')])),utils['request'](_0x2fb9f6('0xd'),_0x2e5e15);}exports[_0x524dbe('0x2')]=function(_0x45a71a){const _0x594968=_0x524dbe;try{_0x45a71a['type']=_0x594968('0x8'),writeDB(_0x45a71a);}catch(_0x585e3d){utils[_0x594968('0x7')](_0x585e3d[_0x594968('0x10')]);}},exports['attendedtransfer']=function(_0xd2cfb5){const _0x57fa9a=_0x524dbe;try{_0xd2cfb5=_[_0x57fa9a('0x9')](_0xd2cfb5,{'transfererchannel':_0xd2cfb5[_0x57fa9a('0x12')],'transferercalleridnum':_0xd2cfb5['origtransferercalleridnum'],'transferercalleridname':_0xd2cfb5['origtransferercalleridname'],'transfererconnectedlinenum':_0xd2cfb5[_0x57fa9a('0xb')],'transfererconnectedlinename':_0xd2cfb5[_0x57fa9a('0x18')],'transfereraccountcode':_0xd2cfb5['origtransfereraccountcode'],'transferercontext':_0xd2cfb5[_0x57fa9a('0x14')],'transfererexten':_0xd2cfb5[_0x57fa9a('0x17')],'transfererlinkedid':_0xd2cfb5['origtransfererlinkedid'],'context':_0xd2cfb5[_0x57fa9a('0x13')],'extension':_0xd2cfb5['origtransfererexten'],'type':'attended'}),_[_0x57fa9a('0xc')](_0xd2cfb5[_0x57fa9a('0x16')])&&(_0xd2cfb5=_[_0x57fa9a('0x9')](_0xd2cfb5,{'transfereechannel':_0xd2cfb5[_0x57fa9a('0x5')],'transfereecalleridnum':_0xd2cfb5['transfertargetcalleridnum'],'transfereecalleridname':_0xd2cfb5[_0x57fa9a('0xa')],'transfereeconnectedlinenum':_0xd2cfb5[_0x57fa9a('0x15')],'transfereeconnectedlinename':_0xd2cfb5['transfertargetconnectedlinename'],'transfereeaccountcode':_0xd2cfb5[_0x57fa9a('0xf')],'transfereecontext':_0xd2cfb5[_0x57fa9a('0x0')],'transfereeexten':_0xd2cfb5[_0x57fa9a('0x6')],'transfereelinkedid':_0xd2cfb5['transfertargetlinkedid']})),writeDB(_0xd2cfb5);}catch(_0x556f19){utils['error'](_0x556f19[_0x57fa9a('0x10')]);}}; \ No newline at end of file +const a1229_0x57e8=['attendedtransfer','CreateVoiceTransferReport','request','stack','origtransfererchannel','transfertargetcontext','origtransferercontext','origtransferercalleridname','secondtransfererconnectedlinename','origtransferercalleridnum','transfertargetconnectedlinename','transfereechannel','secondtransfererconnectedlinenum','lodash','util','type','transfertargetconnectedlinenum','transfertargetcalleridname','attended','transfertargetcalleridnum','origtransfereraccountcode','assign','transfertargetchannel','format','secondtransferercontext','error','origtransfererexten','info','transfertargetexten','transfertargetaccountcode','blindtransfer'];(function(_0xc28e16,_0x57e8fe){const _0x44ab66=function(_0x4a8578){while(--_0x4a8578){_0xc28e16['push'](_0xc28e16['shift']());}};_0x44ab66(++_0x57e8fe);}(a1229_0x57e8,0x170));const a1229_0x44ab=function(_0xc28e16,_0x57e8fe){_0xc28e16=_0xc28e16-0x0;let _0x44ab66=a1229_0x57e8[_0xc28e16];return _0x44ab66;};const _0x3cc335=a1229_0x44ab;'use strict';const _=require(_0x3cc335('0x11')),util=require(_0x3cc335('0x12')),utils=require('./utils');function writeDB(_0x4a8578){const _0x58b5fb=_0x3cc335;utils[_0x58b5fb('0x0')](util[_0x58b5fb('0x1b')]('TRANSFER|%s',_0x4a8578[_0x58b5fb('0x13')])),utils[_0x58b5fb('0x6')](_0x58b5fb('0x5'),_0x4a8578);}exports[_0x3cc335('0x3')]=function(_0x44ddfc){const _0x468501=_0x3cc335;try{_0x44ddfc[_0x468501('0x13')]='blind',writeDB(_0x44ddfc);}catch(_0x4340f8){utils[_0x468501('0x1d')](_0x4340f8[_0x468501('0x7')]);}},exports[_0x3cc335('0x4')]=function(_0x3cec1a){const _0x52fc42=_0x3cc335;try{_0x3cec1a=_[_0x52fc42('0x19')](_0x3cec1a,{'transfererchannel':_0x3cec1a[_0x52fc42('0x8')],'transferercalleridnum':_0x3cec1a[_0x52fc42('0xd')],'transferercalleridname':_0x3cec1a[_0x52fc42('0xb')],'transfererconnectedlinenum':_0x3cec1a[_0x52fc42('0x10')],'transfererconnectedlinename':_0x3cec1a[_0x52fc42('0xc')],'transfereraccountcode':_0x3cec1a[_0x52fc42('0x18')],'transferercontext':_0x3cec1a[_0x52fc42('0x1c')],'transfererexten':_0x3cec1a['secondtransfererexten'],'transfererlinkedid':_0x3cec1a['origtransfererlinkedid'],'context':_0x3cec1a[_0x52fc42('0xa')],'extension':_0x3cec1a[_0x52fc42('0x1e')],'type':_0x52fc42('0x16')}),_['isNil'](_0x3cec1a[_0x52fc42('0xf')])&&(_0x3cec1a=_[_0x52fc42('0x19')](_0x3cec1a,{'transfereechannel':_0x3cec1a[_0x52fc42('0x1a')],'transfereecalleridnum':_0x3cec1a[_0x52fc42('0x17')],'transfereecalleridname':_0x3cec1a[_0x52fc42('0x15')],'transfereeconnectedlinenum':_0x3cec1a[_0x52fc42('0x14')],'transfereeconnectedlinename':_0x3cec1a[_0x52fc42('0xe')],'transfereeaccountcode':_0x3cec1a[_0x52fc42('0x2')],'transfereecontext':_0x3cec1a[_0x52fc42('0x9')],'transfereeexten':_0x3cec1a[_0x52fc42('0x1')],'transfereelinkedid':_0x3cec1a['transfertargetlinkedid']})),writeDB(_0x3cec1a);}catch(_0x39158b){utils[_0x52fc42('0x1d')](_0x39158b[_0x52fc42('0x7')]);}}; \ No newline at end of file diff --git a/server/services/xdr/utils.js b/server/services/xdr/utils.js index 57a8889..9cd8857 100644 --- a/server/services/xdr/utils.js +++ b/server/services/xdr/utils.js @@ -1 +1 @@ -const a1228_0x386e=['stringify','isAfter','acw','now','NOTFOUND','debug','FOUND','GETUSER|','getUserByName','info','jayson/promise','seconds','format','diffTime','GETVOICEQUEUEBYNAME|','diff','sumTime','internal','getUserByInterface','error','stack','YYYY-MM-DD\x20HH:mm:ss','subtract','acwTimeout','GetUser','../../config/logger','catch','add','length','getVoiceQueueByName','GetVoiceQueue','then','http','name','interface','result','isBefore'];(function(_0x367e3a,_0x386e5f){const _0xed9049=function(_0x397d4f){while(--_0x397d4f){_0x367e3a['push'](_0x367e3a['shift']());}};_0xed9049(++_0x386e5f);}(a1228_0x386e,0x160));const a1228_0xed90=function(_0x367e3a,_0x386e5f){_0x367e3a=_0x367e3a-0x0;let _0xed9049=a1228_0x386e[_0x367e3a];return _0xed9049;};const _0x4b0bfd=a1228_0xed90;'use strict';const jayson=require(_0x4b0bfd('0x1c')),moment=require('moment'),client=jayson['client'][_0x4b0bfd('0xd')]({'port':0x2329}),logger=require(_0x4b0bfd('0x6'))('xdr');exports[_0x4b0bfd('0x1b')]=function(_0x397d4f){logger['info'](_0x397d4f);},exports[_0x4b0bfd('0x17')]=function(_0x467291){logger['debug'](JSON['stringify'](_0x467291));},exports[_0x4b0bfd('0x0')]=function(_0x5e1e7d){const _0xfdc91a=_0x4b0bfd;logger[_0xfdc91a('0x0')](_0x5e1e7d['stack']);},exports['request']=function(_0x444fd8,_0x4d2de0){const _0x35c7db=_0x4b0bfd;return client['request'](_0x444fd8,{'body':_0x4d2de0})[_0x35c7db('0xc')](function(_0x5a7d6a){const _0x2e5462=_0x35c7db;logger[_0x2e5462('0x17')](JSON[_0x2e5462('0x12')](_0x5a7d6a));})[_0x35c7db('0x7')](function(_0x10ca2e){const _0x56d3cf=_0x35c7db;logger[_0x56d3cf('0x0')](_0x10ca2e[_0x56d3cf('0x1')]);});};function getUser(_0x4e7277){const _0x1a3641=_0x4b0bfd;return client['request'](_0x1a3641('0x5'),{'options':{'raw':!![],'attributes':['id',_0x1a3641('0x23'),_0x1a3641('0xe'),_0x1a3641('0xf')],'where':_0x4e7277,'limit':0x1}})['then'](function(_0x1715e3){const _0x76c1e6=_0x1a3641;return logger[_0x76c1e6('0x1b')](_0x76c1e6('0x19')+JSON[_0x76c1e6('0x12')](_0x4e7277)+'|'+(_0x1715e3[_0x76c1e6('0x10')][_0x76c1e6('0x9')]?_0x76c1e6('0x18'):_0x76c1e6('0x16'))),_0x1715e3['result'][_0x76c1e6('0x9')]?_0x1715e3['result'][0x0]:null;});}exports['getUserByInternal']=function(_0x3774ae){return new Promise(function(_0x58bd17){const _0x140616=a1228_0xed90;return _0x3774ae?getUser({'internal':_0x3774ae})[_0x140616('0xc')](function(_0x150c11){return _0x58bd17(_0x150c11);})[_0x140616('0x7')](function(_0x5acd5d){const _0x1209f4=_0x140616;return logger[_0x1209f4('0x0')](_0x5acd5d[_0x1209f4('0x1')]),_0x58bd17(null);}):_0x58bd17(null);});},exports[_0x4b0bfd('0x24')]=function(_0x3464ff){return new Promise(function(_0x3698ee){const _0x257af3=a1228_0xed90;return _0x3464ff?getUser({'interface':_0x3464ff})[_0x257af3('0xc')](function(_0x3f69ca){return _0x3698ee(_0x3f69ca);})[_0x257af3('0x7')](function(_0x15cc90){const _0x52fedc=_0x257af3;return logger['error'](_0x15cc90[_0x52fedc('0x1')]),_0x3698ee(null);}):_0x3698ee(null);});},exports[_0x4b0bfd('0x1a')]=function(_0x159fda){return new Promise(function(_0x3b9540){const _0x835738=a1228_0xed90;return _0x159fda?getUser({'name':_0x159fda})[_0x835738('0xc')](function(_0x3aa9e7){return _0x3b9540(_0x3aa9e7);})[_0x835738('0x7')](function(_0x1aee6f){const _0x37cc27=_0x835738;return logger[_0x37cc27('0x0')](_0x1aee6f[_0x37cc27('0x1')]),_0x3b9540(null);}):_0x3b9540(null);});},exports[_0x4b0bfd('0xa')]=function(_0x4191f5){return new Promise(function(_0xe109ba){const _0x2ef044=a1228_0xed90;return _0x4191f5?client['request'](_0x2ef044('0xb'),{'options':{'raw':!![],'attributes':['id',_0x2ef044('0xe'),'type',_0x2ef044('0x14'),_0x2ef044('0x4')],'where':{'name':_0x4191f5},'limit':0x1}})[_0x2ef044('0xc')](function(_0x3c6bb4){const _0x44f35a=_0x2ef044;return logger[_0x44f35a('0x1b')](_0x44f35a('0x20')+_0x4191f5+'|'+(_0x3c6bb4[_0x44f35a('0x10')][_0x44f35a('0x9')]?_0x44f35a('0x18'):'NOTFOUND')),_0xe109ba(_0x3c6bb4[_0x44f35a('0x10')][_0x44f35a('0x9')]?_0x3c6bb4[_0x44f35a('0x10')][0x0]:null);})[_0x2ef044('0x7')](function(_0x4ed795){const _0x6e726c=_0x2ef044;return logger['error'](_0x4ed795[_0x6e726c('0x1')]),_0xe109ba(null);}):_0xe109ba(null);});},exports['addTime']=function(_0x4cc443,_0x27aa28){const _0x48d769=_0x4b0bfd;return moment(_0x4cc443)[_0x48d769('0x8')](_0x27aa28,_0x48d769('0x1d'))[_0x48d769('0x1e')](_0x48d769('0x2'));},exports['subtractTime']=function(_0x36b925,_0x3f8cbf){const _0x51ca21=_0x4b0bfd;return moment(_0x36b925)[_0x51ca21('0x3')](_0x3f8cbf,_0x51ca21('0x1d'))[_0x51ca21('0x1e')]('YYYY-MM-DD\x20HH:mm:ss');},exports[_0x4b0bfd('0x1f')]=function(_0xf507e2,_0x3d4039){const _0x235392=_0x4b0bfd;return moment(_0xf507e2)[_0x235392('0x21')](moment(_0x3d4039),'seconds');},exports[_0x4b0bfd('0x22')]=function(_0x579fcf,_0x2ca2d5){return parseInt(_0x579fcf,0xa)+parseInt(_0x2ca2d5,0xa);},exports[_0x4b0bfd('0x15')]=function(){const _0x3bf39b=_0x4b0bfd;return moment()['format'](_0x3bf39b('0x2'));},exports[_0x4b0bfd('0x13')]=function(_0x6b7049,_0x3b557c){const _0x1625a0=_0x4b0bfd;return _0x3b557c?moment(_0x6b7049)[_0x1625a0('0x13')](_0x3b557c):!![];},exports['isBefore']=function(_0x306c1e,_0x1d5e46){const _0x4639a3=_0x4b0bfd;if(_0x1d5e46)return moment(_0x306c1e)[_0x4639a3('0x11')](_0x1d5e46);else return _0x306c1e?!![]:![];}; \ No newline at end of file +const a1230_0x4c49=['subtractTime','name','add','xdr','interface','FOUND','stack','jayson/promise','catch','request','debug','stringify','internal','GetVoiceQueue','length','getUserByInterface','error','GETUSER|','moment','acwTimeout','getUserByName','seconds','result','GetUser','sumTime','subtract','type','GETVOICEQUEUEBYNAME|','NOTFOUND','format','info','getVoiceQueueByName','YYYY-MM-DD\x20HH:mm:ss','isAfter','then'];(function(_0x1ef87e,_0x4c4929){const _0x20e93f=function(_0x5996a2){while(--_0x5996a2){_0x1ef87e['push'](_0x1ef87e['shift']());}};_0x20e93f(++_0x4c4929);}(a1230_0x4c49,0x18c));const a1230_0x20e9=function(_0x1ef87e,_0x4c4929){_0x1ef87e=_0x1ef87e-0x0;let _0x20e93f=a1230_0x4c49[_0x1ef87e];return _0x20e93f;};const _0x3c1009=a1230_0x20e9;'use strict';const jayson=require(_0x3c1009('0x1f')),moment=require(_0x3c1009('0x7')),client=jayson['client']['http']({'port':0x2329}),logger=require('../../config/logger')(_0x3c1009('0x1b'));exports['info']=function(_0x5996a2){const _0x17fff6=_0x3c1009;logger[_0x17fff6('0x13')](_0x5996a2);},exports['debug']=function(_0x4552c6){const _0x13ffeb=_0x3c1009;logger[_0x13ffeb('0x22')](JSON[_0x13ffeb('0x0')](_0x4552c6));},exports[_0x3c1009('0x5')]=function(_0x3971a0){logger['error'](_0x3971a0['stack']);},exports[_0x3c1009('0x21')]=function(_0x162138,_0x4e73a8){const _0x50ee61=_0x3c1009;return client[_0x50ee61('0x21')](_0x162138,{'body':_0x4e73a8})[_0x50ee61('0x17')](function(_0x137feb){const _0x13be06=_0x50ee61;logger[_0x13be06('0x22')](JSON['stringify'](_0x137feb));})[_0x50ee61('0x20')](function(_0xe651b5){const _0x12d800=_0x50ee61;logger[_0x12d800('0x5')](_0xe651b5[_0x12d800('0x1e')]);});};function getUser(_0x51c784){const _0x4673be=_0x3c1009;return client[_0x4673be('0x21')](_0x4673be('0xc'),{'options':{'raw':!![],'attributes':['id',_0x4673be('0x1'),_0x4673be('0x19'),_0x4673be('0x1c')],'where':_0x51c784,'limit':0x1}})[_0x4673be('0x17')](function(_0x133147){const _0x215551=_0x4673be;return logger[_0x215551('0x13')](_0x215551('0x6')+JSON[_0x215551('0x0')](_0x51c784)+'|'+(_0x133147[_0x215551('0xb')][_0x215551('0x3')]?_0x215551('0x1d'):_0x215551('0x11'))),_0x133147[_0x215551('0xb')][_0x215551('0x3')]?_0x133147[_0x215551('0xb')][0x0]:null;});}exports['getUserByInternal']=function(_0x3981f3){return new Promise(function(_0x140268){const _0x3aa71b=a1230_0x20e9;return _0x3981f3?getUser({'internal':_0x3981f3})[_0x3aa71b('0x17')](function(_0x21cdcc){return _0x140268(_0x21cdcc);})[_0x3aa71b('0x20')](function(_0x198e48){const _0x1cc97e=_0x3aa71b;return logger[_0x1cc97e('0x5')](_0x198e48['stack']),_0x140268(null);}):_0x140268(null);});},exports[_0x3c1009('0x4')]=function(_0x5061ae){return new Promise(function(_0x512cd8){const _0xfff5ca=a1230_0x20e9;return _0x5061ae?getUser({'interface':_0x5061ae})[_0xfff5ca('0x17')](function(_0x2ebe6b){return _0x512cd8(_0x2ebe6b);})[_0xfff5ca('0x20')](function(_0x11ab9e){const _0x502c85=_0xfff5ca;return logger['error'](_0x11ab9e[_0x502c85('0x1e')]),_0x512cd8(null);}):_0x512cd8(null);});},exports[_0x3c1009('0x9')]=function(_0x8eb76f){return new Promise(function(_0x54a9f4){const _0x4d2e4d=a1230_0x20e9;return _0x8eb76f?getUser({'name':_0x8eb76f})[_0x4d2e4d('0x17')](function(_0x527c57){return _0x54a9f4(_0x527c57);})['catch'](function(_0x512209){const _0x12958a=_0x4d2e4d;return logger[_0x12958a('0x5')](_0x512209[_0x12958a('0x1e')]),_0x54a9f4(null);}):_0x54a9f4(null);});},exports[_0x3c1009('0x14')]=function(_0x599b68){return new Promise(function(_0x56215b){const _0x377a75=a1230_0x20e9;return _0x599b68?client['request'](_0x377a75('0x2'),{'options':{'raw':!![],'attributes':['id',_0x377a75('0x19'),_0x377a75('0xf'),'acw',_0x377a75('0x8')],'where':{'name':_0x599b68},'limit':0x1}})[_0x377a75('0x17')](function(_0x412e20){const _0x43176=_0x377a75;return logger[_0x43176('0x13')](_0x43176('0x10')+_0x599b68+'|'+(_0x412e20['result'][_0x43176('0x3')]?_0x43176('0x1d'):'NOTFOUND')),_0x56215b(_0x412e20[_0x43176('0xb')][_0x43176('0x3')]?_0x412e20[_0x43176('0xb')][0x0]:null);})[_0x377a75('0x20')](function(_0x215655){const _0x5c2690=_0x377a75;return logger[_0x5c2690('0x5')](_0x215655['stack']),_0x56215b(null);}):_0x56215b(null);});},exports['addTime']=function(_0x1a089c,_0x414566){const _0x2da1d9=_0x3c1009;return moment(_0x1a089c)[_0x2da1d9('0x1a')](_0x414566,'seconds')[_0x2da1d9('0x12')]('YYYY-MM-DD\x20HH:mm:ss');},exports[_0x3c1009('0x18')]=function(_0x1b6ab8,_0x3dcd84){const _0x275a4c=_0x3c1009;return moment(_0x1b6ab8)[_0x275a4c('0xe')](_0x3dcd84,_0x275a4c('0xa'))[_0x275a4c('0x12')](_0x275a4c('0x15'));},exports['diffTime']=function(_0x5530af,_0x503e51){const _0x4c16c2=_0x3c1009;return moment(_0x5530af)['diff'](moment(_0x503e51),_0x4c16c2('0xa'));},exports[_0x3c1009('0xd')]=function(_0x3e3d40,_0x1e668d){return parseInt(_0x3e3d40,0xa)+parseInt(_0x1e668d,0xa);},exports['now']=function(){const _0x58b39b=_0x3c1009;return moment()[_0x58b39b('0x12')](_0x58b39b('0x15'));},exports[_0x3c1009('0x16')]=function(_0x11eaad,_0x389034){const _0xe9f9bd=_0x3c1009;return _0x389034?moment(_0x11eaad)[_0xe9f9bd('0x16')](_0x389034):!![];},exports['isBefore']=function(_0x442628,_0x1d38f1){if(_0x1d38f1)return moment(_0x442628)['isBefore'](_0x1d38f1);else return _0x442628?!![]:![];}; \ No newline at end of file diff --git a/server/utils/build-info.js b/server/utils/build-info.js index 51717a5..bce03d6 100644 --- a/server/utils/build-info.js +++ b/server/utils/build-info.js @@ -1 +1 @@ -const a1229_0x3700=['join','git-last-commit','../../package.json','xcally','isProduction','undefined','resolve','exports'];(function(_0x16f765,_0x370048){const _0xb2abdc=function(_0x21032a){while(--_0x21032a){_0x16f765['push'](_0x16f765['shift']());}};_0xb2abdc(++_0x370048);}(a1229_0x3700,0x18c));const a1229_0xb2ab=function(_0x16f765,_0x370048){_0x16f765=_0x16f765-0x0;let _0xb2abdc=a1229_0x3700[_0x16f765];return _0xb2abdc;};const _0x113f04=a1229_0xb2ab,{getLastCommit}=require(_0x113f04('0x5')),{getConfigService}=require('../config/config.service'),packageJson=require(_0x113f04('0x6')),cs=getConfigService();function getBuildInfo(){return new Promise((_0x21032a,_0x32d7e1)=>{getLastCommit(function(_0xfc90f4,_0x4163fd){const _0x38c701=a1229_0xb2ab;if(_0xfc90f4)_0x32d7e1(_0xfc90f4);else{const {shortHash:_0x576a45,branch:_0x2d3bbe,committedOn:_0x73b9a8,tags:_0x2f83eb}=_0x4163fd;_0x21032a({'shortHash':_0x576a45,'branch':_0x2d3bbe,'tag':_0x2f83eb[_0x38c701('0x4')](',\x20'),'committedOn':new Date(Number(_0x73b9a8)*0x3e8),'buildDate':new Date()});}});});}function readBuildInfo(){const _0x3c6229=_0x113f04;return cs[_0x3c6229('0x0')]&&typeof packageJson['xcally']!==_0x3c6229('0x1')?Promise[_0x3c6229('0x2')](packageJson[_0x3c6229('0x7')]):getBuildInfo();}module[_0x113f04('0x3')]={'getBuildInfo':getBuildInfo,'readBuildInfo':readBuildInfo}; \ No newline at end of file +const a1231_0x1681=['resolve','exports','xcally','../../package.json','join','git-last-commit','isProduction','undefined'];(function(_0x5ce93a,_0x16812c){const _0x763d23=function(_0x2b0589){while(--_0x2b0589){_0x5ce93a['push'](_0x5ce93a['shift']());}};_0x763d23(++_0x16812c);}(a1231_0x1681,0xfb));const a1231_0x763d=function(_0x5ce93a,_0x16812c){_0x5ce93a=_0x5ce93a-0x0;let _0x763d23=a1231_0x1681[_0x5ce93a];return _0x763d23;};const _0x4eaa22=a1231_0x763d,{getLastCommit}=require(_0x4eaa22('0x2')),{getConfigService}=require('../config/config.service'),packageJson=require(_0x4eaa22('0x0')),cs=getConfigService();function getBuildInfo(){return new Promise((_0x2b0589,_0x9295f7)=>{getLastCommit(function(_0x3b2a15,_0x3034ae){const _0x559d95=a1231_0x763d;if(_0x3b2a15)_0x9295f7(_0x3b2a15);else{const {shortHash:_0x1c698b,branch:_0x4bfcb4,committedOn:_0x457111,tags:_0x433781}=_0x3034ae;_0x2b0589({'shortHash':_0x1c698b,'branch':_0x4bfcb4,'tag':_0x433781[_0x559d95('0x1')](',\x20'),'committedOn':new Date(Number(_0x457111)*0x3e8),'buildDate':new Date()});}});});}function readBuildInfo(){const _0x1b107f=_0x4eaa22;return cs[_0x1b107f('0x3')]&&typeof packageJson[_0x1b107f('0x7')]!==_0x1b107f('0x4')?Promise[_0x1b107f('0x5')](packageJson[_0x1b107f('0x7')]):getBuildInfo();}module[_0x4eaa22('0x6')]={'getBuildInfo':getBuildInfo,'readBuildInfo':readBuildInfo}; \ No newline at end of file diff --git a/snippets/chat_v3.0.0-alpha/index.html b/snippets/chat_v3.0.0-alpha/index.html index 20ecdc3..d71437f 100644 --- a/snippets/chat_v3.0.0-alpha/index.html +++ b/snippets/chat_v3.0.0-alpha/index.html @@ -22,4 +22,4 @@ status != 'online' && status != 'offline' && status != 'unmanaged' - " ng-click="vm.close(); $event.stopPropagation();">
\ No newline at end of file + " ng-click="vm.close(); $event.stopPropagation();">
\ No newline at end of file